diff --git a/.gitignore b/.gitignore index 9c137b7098..4419047d6b 100644 --- a/.gitignore +++ b/.gitignore @@ -16,7 +16,6 @@ lerna-debug.log /demo/cmd/subscriptiontest/subscriptiontest .github/scripts/keycloak-22.0.4/** .github/scripts/keycloak-22.0.4.zip -/router-tests/cmd/config-validator/router-configs/** # Go workspace files go.work diff --git a/composition-go/index.global.js b/composition-go/index.global.js index 58b37b6b1e..1a517b00fd 100644 --- a/composition-go/index.global.js +++ b/composition-go/index.global.js @@ -1,31 +1,46 @@ +var self = globalThis; +var global = globalThis; + function BigInt(value) { - return value; + return value; } class URL { - constructor(url, base) { - // urlParse is provided by the runtime - const result = urlParse(url, base || ''); - for (const prop in result) { - this[prop] = result[prop] - } + constructor(url, base) { + // urlParse is provided by the runtime + const result = urlParse(url, base || ''); + for (const prop in result) { + this[prop] = result[prop]; } + } - static canParse(url, base = undefined) { - return urlCanParse(url, base || ''); - } + static canParse(url, base = undefined) { + return urlCanParse(url, base || ''); + } } -"use strict";var shim=(()=>{var Xz=Object.create;var Qd=Object.defineProperty,Zz=Object.defineProperties,eH=Object.getOwnPropertyDescriptor,tH=Object.getOwnPropertyDescriptors,nH=Object.getOwnPropertyNames,Qm=Object.getOwnPropertySymbols,rH=Object.getPrototypeOf,eI=Object.prototype.hasOwnProperty,ZR=Object.prototype.propertyIsEnumerable;var cn=Math.pow,Zy=(e,t,n)=>t in e?Qd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,M=(e,t)=>{for(var n in t||(t={}))eI.call(t,n)&&Zy(e,n,t[n]);if(Qm)for(var n of Qm(t))ZR.call(t,n)&&Zy(e,n,t[n]);return e},G=(e,t)=>Zz(e,tH(t));var eP=(e,t)=>{var n={};for(var r in e)eI.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Qm)for(var r of Qm(e))t.indexOf(r)<0&&ZR.call(e,r)&&(n[r]=e[r]);return n};var Zu=(e,t)=>()=>(e&&(t=e(e=0)),t);var F=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Ym=(e,t)=>{for(var n in t)Qd(e,n,{get:t[n],enumerable:!0})},tP=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of nH(t))!eI.call(e,i)&&i!==n&&Qd(e,i,{get:()=>t[i],enumerable:!(r=eH(t,i))||r.enumerable});return e};var Ii=(e,t,n)=>(n=e!=null?Xz(rH(e)):{},tP(t||!e||!e.__esModule?Qd(n,"default",{value:e,enumerable:!0}):n,e)),Jm=e=>tP(Qd({},"__esModule",{value:!0}),e);var g=(e,t,n)=>(Zy(e,typeof t!="symbol"?t+"":t,n),n),tI=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var nI=(e,t,n)=>(tI(e,t,"read from private field"),n?n.call(e):t.get(e)),ec=(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)},rI=(e,t,n,r)=>(tI(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);var El=(e,t,n)=>(tI(e,t,"access private method"),n);var Ui=(e,t,n)=>new Promise((r,i)=>{var a=l=>{try{u(n.next(l))}catch(d){i(d)}},o=l=>{try{u(n.throw(l))}catch(d){i(d)}},u=l=>l.done?r(l.value):Promise.resolve(l.value).then(a,o);u((n=n.apply(e,t)).next())});var m=Zu(()=>{"use strict"});var O={};Ym(O,{_debugEnd:()=>KP,_debugProcess:()=>jP,_events:()=>aF,_eventsCount:()=>sF,_exiting:()=>vP,_fatalExceptions:()=>MP,_getActiveHandles:()=>bP,_getActiveRequests:()=>DP,_kill:()=>RP,_linkedBinding:()=>gP,_maxListeners:()=>iF,_preload_modules:()=>tF,_rawDebug:()=>yP,_startProfilerIdleNotifier:()=>$P,_stopProfilerIdleNotifier:()=>GP,_tickCallback:()=>VP,abort:()=>zP,addListener:()=>oF,allowedNodeEnvironmentFlags:()=>UP,arch:()=>sP,argv:()=>cP,argv0:()=>eF,assert:()=>BP,binding:()=>mP,chdir:()=>EP,config:()=>SP,cpuUsage:()=>Wm,cwd:()=>TP,debugPort:()=>ZP,default:()=>TF,dlopen:()=>OP,domain:()=>_P,emit:()=>fF,emitWarning:()=>pP,env:()=>uP,execArgv:()=>lP,execPath:()=>XP,exit:()=>LP,features:()=>kP,hasUncaughtExceptionCaptureCallback:()=>qP,hrtime:()=>Hm,kill:()=>wP,listeners:()=>NF,memoryUsage:()=>FP,moduleLoadList:()=>IP,nextTick:()=>rP,off:()=>cF,on:()=>Ss,once:()=>uF,openStdin:()=>CP,pid:()=>HP,platform:()=>oP,ppid:()=>WP,prependListener:()=>pF,prependOnceListener:()=>mF,reallyExit:()=>AP,release:()=>hP,removeAllListeners:()=>dF,removeListener:()=>lF,resourceUsage:()=>PP,setSourceMapsEnabled:()=>nF,setUncaughtExceptionCaptureCallback:()=>xP,stderr:()=>YP,stdin:()=>JP,stdout:()=>QP,title:()=>aP,umask:()=>NP,uptime:()=>rF,version:()=>dP,versions:()=>fP});function sI(e){throw new Error("Node.js process "+e+" is not supported by JSPM core outside of Node.js")}function iH(){!hl||!tc||(hl=!1,tc.length?vs=tc.concat(vs):zm=-1,vs.length&&nP())}function nP(){if(!hl){var e=setTimeout(iH,0);hl=!0;for(var t=vs.length;t;){for(tc=vs,vs=[];++zm1)for(var n=1;n{"use strict";m();T();N();vs=[],hl=!1,zm=-1;iP.prototype.run=function(){this.fun.apply(null,this.array)};aP="browser",sP="x64",oP="browser",uP={PATH:"/usr/bin",LANG:navigator.language+".UTF-8",PWD:"/",HOME:"/home",TMP:"/tmp"},cP=["/usr/bin/node"],lP=[],dP="v16.8.0",fP={},pP=function(e,t){console.warn((t?t+": ":"")+e)},mP=function(e){sI("binding")},NP=function(e){return 0},TP=function(){return"/"},EP=function(e){},hP={name:"node",sourceUrl:"",headersUrl:"",libUrl:""};yP=wr,IP=[];_P={},vP=!1,SP={};AP=wr,RP=wr,Wm=function(){return{}},PP=Wm,FP=Wm,wP=wr,LP=wr,CP=wr,UP={};kP={inspector:!1,debug:!1,uv:!1,ipv6:!1,tls_alpn:!1,tls_sni:!1,tls_ocsp:!1,tls:!1,cached_builtins:!0},MP=wr,xP=wr;VP=wr,jP=wr,KP=wr,$P=wr,GP=wr,QP=void 0,YP=void 0,JP=void 0,zP=wr,HP=2,WP=1,XP="/bin/usr/node",ZP=9229,eF="node",tF=[],nF=wr,mu={now:typeof performance!="undefined"?performance.now.bind(performance):void 0,timing:typeof performance!="undefined"?performance.timing:void 0};mu.now===void 0&&(iI=Date.now(),mu.timing&&mu.timing.navigationStart&&(iI=mu.timing.navigationStart),mu.now=()=>Date.now()-iI);aI=1e9;Hm.bigint=function(e){var t=Hm(e);return typeof BigInt=="undefined"?t[0]*aI+t[1]:BigInt(t[0]*aI)+BigInt(t[1])};iF=10,aF={},sF=0;oF=Ss,uF=Ss,cF=Ss,lF=Ss,dF=Ss,fF=wr,pF=Ss,mF=Ss;TF={version:dP,versions:fP,arch:sP,platform:oP,release:hP,_rawDebug:yP,moduleLoadList:IP,binding:mP,_linkedBinding:gP,_events:aF,_eventsCount:sF,_maxListeners:iF,on:Ss,addListener:oF,once:uF,off:cF,removeListener:lF,removeAllListeners:dF,emit:fF,prependListener:pF,prependOnceListener:mF,listeners:NF,domain:_P,_exiting:vP,config:SP,dlopen:OP,uptime:rF,_getActiveRequests:DP,_getActiveHandles:bP,reallyExit:AP,_kill:RP,cpuUsage:Wm,resourceUsage:PP,memoryUsage:FP,kill:wP,exit:LP,openStdin:CP,allowedNodeEnvironmentFlags:UP,assert:BP,features:kP,_fatalExceptions:MP,setUncaughtExceptionCaptureCallback:xP,hasUncaughtExceptionCaptureCallback:qP,emitWarning:pP,nextTick:rP,_tickCallback:VP,_debugProcess:jP,_debugEnd:KP,_startProfilerIdleNotifier:$P,_stopProfilerIdleNotifier:GP,stdout:QP,stdin:JP,stderr:YP,abort:zP,umask:NP,chdir:EP,cwd:TP,env:uP,title:aP,argv:cP,execArgv:lP,pid:HP,ppid:WP,execPath:XP,debugPort:ZP,hrtime:Hm,argv0:eF,_preload_modules:tF,setSourceMapsEnabled:nF}});var N=Zu(()=>{"use strict";EF()});function aH(){if(hF)return Yd;hF=!0,Yd.byteLength=u,Yd.toByteArray=d,Yd.fromByteArray=h;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=R);var q=U===R?0:4-U%4;return[U,q]}function u(v){var R=o(v),U=R[0],q=R[1];return(U+q)*3/4-q}function l(v,R,U){return(R+U)*3/4-U}function d(v){var R,U=o(v),q=U[0],X=U[1],te=new n(l(v,q,X)),ae=0,me=X>0?q-4:q,ye;for(ye=0;ye>16&255,te[ae++]=R>>8&255,te[ae++]=R&255;return X===2&&(R=t[v.charCodeAt(ye)]<<2|t[v.charCodeAt(ye+1)]>>4,te[ae++]=R&255),X===1&&(R=t[v.charCodeAt(ye)]<<10|t[v.charCodeAt(ye+1)]<<4|t[v.charCodeAt(ye+2)]>>2,te[ae++]=R>>8&255,te[ae++]=R&255),te}function p(v){return e[v>>18&63]+e[v>>12&63]+e[v>>6&63]+e[v&63]}function E(v,R,U){for(var q,X=[],te=R;teme?me:ae+te));return q===1?(R=v[U-1],X.push(e[R>>2]+e[R<<4&63]+"==")):q===2&&(R=(v[U-2]<<8)+v[U-1],X.push(e[R>>10]+e[R>>4&63]+e[R<<2&63]+"=")),X.join("")}return Yd}function sH(){if(yF)return Xm;yF=!0;return Xm.read=function(e,t,n,r,i){var a,o,u=i*8-r-1,l=(1<>1,p=-7,E=n?i-1:0,h=n?-1:1,v=e[t+E];for(E+=h,a=v&(1<<-p)-1,v>>=-p,p+=u;p>0;a=a*256+e[t+E],E+=h,p-=8);for(o=a&(1<<-p)-1,a>>=-p,p+=r;p>0;o=o*256+e[t+E],E+=h,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)},Xm.write=function(e,t,n,r,i,a){var o,u,l,d=a*8-i-1,p=(1<>1,h=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,v=r?0:a-1,R=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,o=p):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),o+E>=1?t+=h/l:t+=h*Math.pow(2,1-E),t*l>=2&&(o++,l/=2),o+E>=p?(u=0,o=p):o+E>=1?(u=(t*l-1)*Math.pow(2,i),o=o+E):(u=t*Math.pow(2,E-1)*Math.pow(2,i),o=0));i>=8;e[n+v]=u&255,v+=R,u/=256,i-=8);for(o=o<0;e[n+v]=o&255,v+=R,o/=256,d-=8);e[n+v-R]|=U*128},Xm}function oH(){if(IF)return nc;IF=!0;let e=aH(),t=sH(),n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;nc.Buffer=o,nc.SlowBuffer=X,nc.INSPECT_MAX_BYTES=50;let r=2147483647;nc.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),I={foo:function(){return 42}};return Object.setPrototypeOf(I,Uint8Array.prototype),Object.setPrototypeOf(P,I),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 I=new Uint8Array(P);return Object.setPrototypeOf(I,o.prototype),I}function o(P,I,_){if(typeof P=="number"){if(typeof I=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return p(P)}return u(P,I,_)}o.poolSize=8192;function u(P,I,_){if(typeof P=="string")return E(P,I);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 R(P,I,_);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,I,_);let $=U(P);if($)return $;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof P[Symbol.toPrimitive]=="function")return o.from(P[Symbol.toPrimitive]("string"),I,_);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,I,_){return u(P,I,_)},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,I,_){return l(P),P<=0?a(P):I!==void 0?typeof _=="string"?a(P).fill(I,_):a(P).fill(I):a(P)}o.alloc=function(P,I,_){return d(P,I,_)};function p(P){return l(P),a(P<0?0:q(P)|0)}o.allocUnsafe=function(P){return p(P)},o.allocUnsafeSlow=function(P){return p(P)};function E(P,I){if((typeof I!="string"||I==="")&&(I="utf8"),!o.isEncoding(I))throw new TypeError("Unknown encoding: "+I);let _=te(P,I)|0,B=a(_),$=B.write(P,I);return $!==_&&(B=B.slice(0,$)),B}function h(P){let I=P.length<0?0:q(P.length)|0,_=a(I);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 X(P){return+P!=P&&(P=0),o.alloc(+P)}o.isBuffer=function(I){return I!=null&&I._isBuffer===!0&&I!==o.prototype},o.compare=function(I,_){if(xt(I,Uint8Array)&&(I=o.from(I,I.offset,I.byteLength)),xt(_,Uint8Array)&&(_=o.from(_,_.offset,_.byteLength)),!o.isBuffer(I)||!o.isBuffer(_))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(I===_)return 0;let B=I.length,$=_.length;for(let ee=0,ce=Math.min(B,$);ee$.length?(o.isBuffer(ce)||(ce=o.from(ce)),ce.copy($,ee)):Uint8Array.prototype.set.call($,ce,ee);else if(o.isBuffer(ce))ce.copy($,ee);else throw new TypeError('"list" argument must be an Array of Buffers');ee+=ce.length}return $};function te(P,I){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 _=P.length,B=arguments.length>2&&arguments[2]===!0;if(!B&&_===0)return 0;let $=!1;for(;;)switch(I){case"ascii":case"latin1":case"binary":return _;case"utf8":case"utf-8":return Rr(P).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _*2;case"hex":return _>>>1;case"base64":return oa(P).length;default:if($)return B?-1:Rr(P).length;I=(""+I).toLowerCase(),$=!0}}o.byteLength=te;function ae(P,I,_){let B=!1;if((I===void 0||I<0)&&(I=0),I>this.length||((_===void 0||_>this.length)&&(_=this.length),_<=0)||(_>>>=0,I>>>=0,_<=I))return"";for(P||(P="utf8");;)switch(P){case"hex":return Ar(this,I,_);case"utf8":case"utf-8":return Tn(this,I,_);case"ascii":return Ht(this,I,_);case"latin1":case"binary":return wn(this,I,_);case"base64":return sn(this,I,_);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return zn(this,I,_);default:if(B)throw new TypeError("Unknown encoding: "+P);P=(P+"").toLowerCase(),B=!0}}o.prototype._isBuffer=!0;function me(P,I,_){let B=P[I];P[I]=P[_],P[_]=B}o.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 _=0;__&&(I+=" ... "),""},n&&(o.prototype[n]=o.prototype.inspect),o.prototype.compare=function(I,_,B,$,ee){if(xt(I,Uint8Array)&&(I=o.from(I,I.offset,I.byteLength)),!o.isBuffer(I))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof I);if(_===void 0&&(_=0),B===void 0&&(B=I?I.length:0),$===void 0&&($=0),ee===void 0&&(ee=this.length),_<0||B>I.length||$<0||ee>this.length)throw new RangeError("out of range index");if($>=ee&&_>=B)return 0;if($>=ee)return-1;if(_>=B)return 1;if(_>>>=0,B>>>=0,$>>>=0,ee>>>=0,this===I)return 0;let ce=ee-$,Nt=B-_,hn=Math.min(ce,Nt),un=this.slice($,ee),yn=I.slice(_,B);for(let on=0;on2147483647?_=2147483647:_<-2147483648&&(_=-2147483648),_=+_,Hn(_)&&(_=$?0:P.length-1),_<0&&(_=P.length+_),_>=P.length){if($)return-1;_=P.length-1}else if(_<0)if($)_=0;else return-1;if(typeof I=="string"&&(I=o.from(I,B)),o.isBuffer(I))return I.length===0?-1:_e(P,I,_,B,$);if(typeof I=="number")return I=I&255,typeof Uint8Array.prototype.indexOf=="function"?$?Uint8Array.prototype.indexOf.call(P,I,_):Uint8Array.prototype.lastIndexOf.call(P,I,_):_e(P,[I],_,B,$);throw new TypeError("val must be string, number or Buffer")}function _e(P,I,_,B,$){let ee=1,ce=P.length,Nt=I.length;if(B!==void 0&&(B=String(B).toLowerCase(),B==="ucs2"||B==="ucs-2"||B==="utf16le"||B==="utf-16le")){if(P.length<2||I.length<2)return-1;ee=2,ce/=2,Nt/=2,_/=2}function hn(yn,on){return ee===1?yn[on]:yn.readUInt16BE(on*ee)}let un;if($){let yn=-1;for(un=_;unce&&(_=ce-Nt),un=_;un>=0;un--){let yn=!0;for(let on=0;on$&&(B=$)):B=$;let ee=I.length;B>ee/2&&(B=ee/2);let ce;for(ce=0;ce>>0,isFinite(B)?(B=B>>>0,$===void 0&&($="utf8")):($=B,B=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let ee=this.length-_;if((B===void 0||B>ee)&&(B=ee),I.length>0&&(B<0||_<0)||_>this.length)throw new RangeError("Attempt to write outside buffer bounds");$||($="utf8");let ce=!1;for(;;)switch($){case"hex":return Ee(this,I,_,B);case"utf8":case"utf-8":return Be(this,I,_,B);case"ascii":case"latin1":case"binary":return Z(this,I,_,B);case"base64":return ge(this,I,_,B);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return It(this,I,_,B);default:if(ce)throw new TypeError("Unknown encoding: "+$);$=(""+$).toLowerCase(),ce=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function sn(P,I,_){return I===0&&_===P.length?e.fromByteArray(P):e.fromByteArray(P.slice(I,_))}function Tn(P,I,_){_=Math.min(P.length,_);let B=[],$=I;for(;$<_;){let ee=P[$],ce=null,Nt=ee>239?4:ee>223?3:ee>191?2:1;if($+Nt<=_){let hn,un,yn,on;switch(Nt){case 1:ee<128&&(ce=ee);break;case 2:hn=P[$+1],(hn&192)===128&&(on=(ee&31)<<6|hn&63,on>127&&(ce=on));break;case 3:hn=P[$+1],un=P[$+2],(hn&192)===128&&(un&192)===128&&(on=(ee&15)<<12|(hn&63)<<6|un&63,on>2047&&(on<55296||on>57343)&&(ce=on));break;case 4:hn=P[$+1],un=P[$+2],yn=P[$+3],(hn&192)===128&&(un&192)===128&&(yn&192)===128&&(on=(ee&15)<<18|(hn&63)<<12|(un&63)<<6|yn&63,on>65535&&on<1114112&&(ce=on))}}ce===null?(ce=65533,Nt=1):ce>65535&&(ce-=65536,B.push(ce>>>10&1023|55296),ce=56320|ce&1023),B.push(ce),$+=Nt}return $t(B)}let En=4096;function $t(P){let I=P.length;if(I<=En)return String.fromCharCode.apply(String,P);let _="",B=0;for(;BB)&&(_=B);let $="";for(let ee=I;ee<_;++ee)$+=Mh[P[ee]];return $}function zn(P,I,_){let B=P.slice(I,_),$="";for(let ee=0;eeB&&(I=B),_<0?(_+=B,_<0&&(_=0)):_>B&&(_=B),__)throw new RangeError("Trying to access beyond buffer length")}o.prototype.readUintLE=o.prototype.readUIntLE=function(I,_,B){I=I>>>0,_=_>>>0,B||vt(I,_,this.length);let $=this[I],ee=1,ce=0;for(;++ce<_&&(ee*=256);)$+=this[I+ce]*ee;return $},o.prototype.readUintBE=o.prototype.readUIntBE=function(I,_,B){I=I>>>0,_=_>>>0,B||vt(I,_,this.length);let $=this[I+--_],ee=1;for(;_>0&&(ee*=256);)$+=this[I+--_]*ee;return $},o.prototype.readUint8=o.prototype.readUInt8=function(I,_){return I=I>>>0,_||vt(I,1,this.length),this[I]},o.prototype.readUint16LE=o.prototype.readUInt16LE=function(I,_){return I=I>>>0,_||vt(I,2,this.length),this[I]|this[I+1]<<8},o.prototype.readUint16BE=o.prototype.readUInt16BE=function(I,_){return I=I>>>0,_||vt(I,2,this.length),this[I]<<8|this[I+1]},o.prototype.readUint32LE=o.prototype.readUInt32LE=function(I,_){return I=I>>>0,_||vt(I,4,this.length),(this[I]|this[I+1]<<8|this[I+2]<<16)+this[I+3]*16777216},o.prototype.readUint32BE=o.prototype.readUInt32BE=function(I,_){return I=I>>>0,_||vt(I,4,this.length),this[I]*16777216+(this[I+1]<<16|this[I+2]<<8|this[I+3])},o.prototype.readBigUInt64LE=Xr(function(I){I=I>>>0,St(I,"offset");let _=this[I],B=this[I+7];(_===void 0||B===void 0)&&Et(I,this.length-8);let $=_+this[++I]*cn(2,8)+this[++I]*cn(2,16)+this[++I]*cn(2,24),ee=this[++I]+this[++I]*cn(2,8)+this[++I]*cn(2,16)+B*cn(2,24);return BigInt($)+(BigInt(ee)<>>0,St(I,"offset");let _=this[I],B=this[I+7];(_===void 0||B===void 0)&&Et(I,this.length-8);let $=_*cn(2,24)+this[++I]*cn(2,16)+this[++I]*cn(2,8)+this[++I],ee=this[++I]*cn(2,24)+this[++I]*cn(2,16)+this[++I]*cn(2,8)+B;return(BigInt($)<>>0,_=_>>>0,B||vt(I,_,this.length);let $=this[I],ee=1,ce=0;for(;++ce<_&&(ee*=256);)$+=this[I+ce]*ee;return ee*=128,$>=ee&&($-=Math.pow(2,8*_)),$},o.prototype.readIntBE=function(I,_,B){I=I>>>0,_=_>>>0,B||vt(I,_,this.length);let $=_,ee=1,ce=this[I+--$];for(;$>0&&(ee*=256);)ce+=this[I+--$]*ee;return ee*=128,ce>=ee&&(ce-=Math.pow(2,8*_)),ce},o.prototype.readInt8=function(I,_){return I=I>>>0,_||vt(I,1,this.length),this[I]&128?(255-this[I]+1)*-1:this[I]},o.prototype.readInt16LE=function(I,_){I=I>>>0,_||vt(I,2,this.length);let B=this[I]|this[I+1]<<8;return B&32768?B|4294901760:B},o.prototype.readInt16BE=function(I,_){I=I>>>0,_||vt(I,2,this.length);let B=this[I+1]|this[I]<<8;return B&32768?B|4294901760:B},o.prototype.readInt32LE=function(I,_){return I=I>>>0,_||vt(I,4,this.length),this[I]|this[I+1]<<8|this[I+2]<<16|this[I+3]<<24},o.prototype.readInt32BE=function(I,_){return I=I>>>0,_||vt(I,4,this.length),this[I]<<24|this[I+1]<<16|this[I+2]<<8|this[I+3]},o.prototype.readBigInt64LE=Xr(function(I){I=I>>>0,St(I,"offset");let _=this[I],B=this[I+7];(_===void 0||B===void 0)&&Et(I,this.length-8);let $=this[I+4]+this[I+5]*cn(2,8)+this[I+6]*cn(2,16)+(B<<24);return(BigInt($)<>>0,St(I,"offset");let _=this[I],B=this[I+7];(_===void 0||B===void 0)&&Et(I,this.length-8);let $=(_<<24)+this[++I]*cn(2,16)+this[++I]*cn(2,8)+this[++I];return(BigInt($)<>>0,_||vt(I,4,this.length),t.read(this,I,!0,23,4)},o.prototype.readFloatBE=function(I,_){return I=I>>>0,_||vt(I,4,this.length),t.read(this,I,!1,23,4)},o.prototype.readDoubleLE=function(I,_){return I=I>>>0,_||vt(I,8,this.length),t.read(this,I,!0,52,8)},o.prototype.readDoubleBE=function(I,_){return I=I>>>0,_||vt(I,8,this.length),t.read(this,I,!1,52,8)};function Ln(P,I,_,B,$,ee){if(!o.isBuffer(P))throw new TypeError('"buffer" argument must be a Buffer instance');if(I>$||IP.length)throw new RangeError("Index out of range")}o.prototype.writeUintLE=o.prototype.writeUIntLE=function(I,_,B,$){if(I=+I,_=_>>>0,B=B>>>0,!$){let Nt=Math.pow(2,8*B)-1;Ln(this,I,_,B,Nt,0)}let ee=1,ce=0;for(this[_]=I&255;++ce>>0,B=B>>>0,!$){let Nt=Math.pow(2,8*B)-1;Ln(this,I,_,B,Nt,0)}let ee=B-1,ce=1;for(this[_+ee]=I&255;--ee>=0&&(ce*=256);)this[_+ee]=I/ce&255;return _+B},o.prototype.writeUint8=o.prototype.writeUInt8=function(I,_,B){return I=+I,_=_>>>0,B||Ln(this,I,_,1,255,0),this[_]=I&255,_+1},o.prototype.writeUint16LE=o.prototype.writeUInt16LE=function(I,_,B){return I=+I,_=_>>>0,B||Ln(this,I,_,2,65535,0),this[_]=I&255,this[_+1]=I>>>8,_+2},o.prototype.writeUint16BE=o.prototype.writeUInt16BE=function(I,_,B){return I=+I,_=_>>>0,B||Ln(this,I,_,2,65535,0),this[_]=I>>>8,this[_+1]=I&255,_+2},o.prototype.writeUint32LE=o.prototype.writeUInt32LE=function(I,_,B){return I=+I,_=_>>>0,B||Ln(this,I,_,4,4294967295,0),this[_+3]=I>>>24,this[_+2]=I>>>16,this[_+1]=I>>>8,this[_]=I&255,_+4},o.prototype.writeUint32BE=o.prototype.writeUInt32BE=function(I,_,B){return I=+I,_=_>>>0,B||Ln(this,I,_,4,4294967295,0),this[_]=I>>>24,this[_+1]=I>>>16,this[_+2]=I>>>8,this[_+3]=I&255,_+4};function se(P,I,_,B,$){Lt(I,B,$,P,_,7);let ee=Number(I&BigInt(4294967295));P[_++]=ee,ee=ee>>8,P[_++]=ee,ee=ee>>8,P[_++]=ee,ee=ee>>8,P[_++]=ee;let ce=Number(I>>BigInt(32)&BigInt(4294967295));return P[_++]=ce,ce=ce>>8,P[_++]=ce,ce=ce>>8,P[_++]=ce,ce=ce>>8,P[_++]=ce,_}function Le(P,I,_,B,$){Lt(I,B,$,P,_,7);let ee=Number(I&BigInt(4294967295));P[_+7]=ee,ee=ee>>8,P[_+6]=ee,ee=ee>>8,P[_+5]=ee,ee=ee>>8,P[_+4]=ee;let ce=Number(I>>BigInt(32)&BigInt(4294967295));return P[_+3]=ce,ce=ce>>8,P[_+2]=ce,ce=ce>>8,P[_+1]=ce,ce=ce>>8,P[_]=ce,_+8}o.prototype.writeBigUInt64LE=Xr(function(I,_=0){return se(this,I,_,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeBigUInt64BE=Xr(function(I,_=0){return Le(this,I,_,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeIntLE=function(I,_,B,$){if(I=+I,_=_>>>0,!$){let hn=Math.pow(2,8*B-1);Ln(this,I,_,B,hn-1,-hn)}let ee=0,ce=1,Nt=0;for(this[_]=I&255;++ee>0)-Nt&255;return _+B},o.prototype.writeIntBE=function(I,_,B,$){if(I=+I,_=_>>>0,!$){let hn=Math.pow(2,8*B-1);Ln(this,I,_,B,hn-1,-hn)}let ee=B-1,ce=1,Nt=0;for(this[_+ee]=I&255;--ee>=0&&(ce*=256);)I<0&&Nt===0&&this[_+ee+1]!==0&&(Nt=1),this[_+ee]=(I/ce>>0)-Nt&255;return _+B},o.prototype.writeInt8=function(I,_,B){return I=+I,_=_>>>0,B||Ln(this,I,_,1,127,-128),I<0&&(I=255+I+1),this[_]=I&255,_+1},o.prototype.writeInt16LE=function(I,_,B){return I=+I,_=_>>>0,B||Ln(this,I,_,2,32767,-32768),this[_]=I&255,this[_+1]=I>>>8,_+2},o.prototype.writeInt16BE=function(I,_,B){return I=+I,_=_>>>0,B||Ln(this,I,_,2,32767,-32768),this[_]=I>>>8,this[_+1]=I&255,_+2},o.prototype.writeInt32LE=function(I,_,B){return I=+I,_=_>>>0,B||Ln(this,I,_,4,2147483647,-2147483648),this[_]=I&255,this[_+1]=I>>>8,this[_+2]=I>>>16,this[_+3]=I>>>24,_+4},o.prototype.writeInt32BE=function(I,_,B){return I=+I,_=_>>>0,B||Ln(this,I,_,4,2147483647,-2147483648),I<0&&(I=4294967295+I+1),this[_]=I>>>24,this[_+1]=I>>>16,this[_+2]=I>>>8,this[_+3]=I&255,_+4},o.prototype.writeBigInt64LE=Xr(function(I,_=0){return se(this,I,_,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),o.prototype.writeBigInt64BE=Xr(function(I,_=0){return Le(this,I,_,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function ve(P,I,_,B,$,ee){if(_+B>P.length)throw new RangeError("Index out of range");if(_<0)throw new RangeError("Index out of range")}function we(P,I,_,B,$){return I=+I,_=_>>>0,$||ve(P,I,_,4),t.write(P,I,_,B,23,4),_+4}o.prototype.writeFloatLE=function(I,_,B){return we(this,I,_,!0,B)},o.prototype.writeFloatBE=function(I,_,B){return we(this,I,_,!1,B)};function Mt(P,I,_,B,$){return I=+I,_=_>>>0,$||ve(P,I,_,8),t.write(P,I,_,B,52,8),_+8}o.prototype.writeDoubleLE=function(I,_,B){return Mt(this,I,_,!0,B)},o.prototype.writeDoubleBE=function(I,_,B){return Mt(this,I,_,!1,B)},o.prototype.copy=function(I,_,B,$){if(!o.isBuffer(I))throw new TypeError("argument should be a Buffer");if(B||(B=0),!$&&$!==0&&($=this.length),_>=I.length&&(_=I.length),_||(_=0),$>0&&$=this.length)throw new RangeError("Index out of range");if($<0)throw new RangeError("sourceEnd out of bounds");$>this.length&&($=this.length),I.length-_<$-B&&($=I.length-_+B);let ee=$-B;return this===I&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(_,B,$):Uint8Array.prototype.set.call(I,this.subarray(B,$),_),ee},o.prototype.fill=function(I,_,B,$){if(typeof I=="string"){if(typeof _=="string"?($=_,_=0,B=this.length):typeof B=="string"&&($=B,B=this.length),$!==void 0&&typeof $!="string")throw new TypeError("encoding must be a string");if(typeof $=="string"&&!o.isEncoding($))throw new TypeError("Unknown encoding: "+$);if(I.length===1){let ce=I.charCodeAt(0);($==="utf8"&&ce<128||$==="latin1")&&(I=ce)}}else typeof I=="number"?I=I&255:typeof I=="boolean"&&(I=Number(I));if(_<0||this.length<_||this.length>>0,B=B===void 0?this.length:B>>>0,I||(I=0);let ee;if(typeof I=="number")for(ee=_;eecn(2,32)?$=$e(String(_)):typeof _=="bigint"&&($=String(_),(_>cn(BigInt(2),BigInt(32))||_<-cn(BigInt(2),BigInt(32)))&&($=$e($)),$+="n"),B+=` It must be ${I}. Received ${$}`,B},RangeError);function $e(P){let I="",_=P.length,B=P[0]==="-"?1:0;for(;_>=B+4;_-=3)I=`_${P.slice(_-3,_)}${I}`;return`${P.slice(0,_)}${I}`}function He(P,I,_){St(I,"offset"),(P[I]===void 0||P[I+_]===void 0)&&Et(I,P.length-(_+1))}function Lt(P,I,_,B,$,ee){if(P>_||P3?I===0||I===BigInt(0)?Nt=`>= 0${ce} and < 2${ce} ** ${(ee+1)*8}${ce}`:Nt=`>= -(2${ce} ** ${(ee+1)*8-1}${ce}) and < 2 ** ${(ee+1)*8-1}${ce}`:Nt=`>= ${I}${ce} and <= ${_}${ce}`,new J.ERR_OUT_OF_RANGE("value",Nt,P)}He(B,$,ee)}function St(P,I){if(typeof P!="number")throw new J.ERR_INVALID_ARG_TYPE(I,"number",P)}function Et(P,I,_){throw Math.floor(P)!==P?(St(P,_),new J.ERR_OUT_OF_RANGE(_||"offset","an integer",P)):I<0?new J.ERR_BUFFER_OUT_OF_BOUNDS:new J.ERR_OUT_OF_RANGE(_||"offset",`>= ${_?1:0} and <= ${I}`,P)}let fi=/[^+/0-9A-Za-z-_]/g;function nl(P){if(P=P.split("=")[0],P=P.trim().replace(fi,""),P.length<2)return"";for(;P.length%4!==0;)P=P+"=";return P}function Rr(P,I){I=I||1/0;let _,B=P.length,$=null,ee=[];for(let ce=0;ce55295&&_<57344){if(!$){if(_>56319){(I-=3)>-1&&ee.push(239,191,189);continue}else if(ce+1===B){(I-=3)>-1&&ee.push(239,191,189);continue}$=_;continue}if(_<56320){(I-=3)>-1&&ee.push(239,191,189),$=_;continue}_=($-55296<<10|_-56320)+65536}else $&&(I-=3)>-1&&ee.push(239,191,189);if($=null,_<128){if((I-=1)<0)break;ee.push(_)}else if(_<2048){if((I-=2)<0)break;ee.push(_>>6|192,_&63|128)}else if(_<65536){if((I-=3)<0)break;ee.push(_>>12|224,_>>6&63|128,_&63|128)}else if(_<1114112){if((I-=4)<0)break;ee.push(_>>18|240,_>>12&63|128,_>>6&63|128,_&63|128)}else throw new Error("Invalid code point")}return ee}function Ku(P){let I=[];for(let _=0;_>8,$=_%256,ee.push($),ee.push(B);return ee}function oa(P){return e.toByteArray(nl(P))}function ar(P,I,_,B){let $;for($=0;$=I.length||$>=P.length);++$)I[$+_]=P[$];return $}function xt(P,I){return P instanceof I||P!=null&&P.constructor!=null&&P.constructor.name!=null&&P.constructor.name===I.name}function Hn(P){return P!==P}let Mh=function(){let P="0123456789abcdef",I=new Array(256);for(let _=0;_<16;++_){let B=_*16;for(let $=0;$<16;++$)I[B+$]=P[_]+P[$]}return I}();function Xr(P){return typeof BigInt=="undefined"?xh:P}function xh(){throw new Error("BigInt not supported")}return nc}var Yd,hF,Xm,yF,nc,IF,rc,D,hme,yme,gF=Zu(()=>{"use strict";m();T();N();Yd={},hF=!1;Xm={},yF=!1;nc={},IF=!1;rc=oH();rc.Buffer;rc.SlowBuffer;rc.INSPECT_MAX_BYTES;rc.kMaxLength;D=rc.Buffer,hme=rc.INSPECT_MAX_BYTES,yme=rc.kMaxLength});var T=Zu(()=>{"use strict";gF()});var _F=F(yl=>{"use strict";m();T();N();Object.defineProperty(yl,"__esModule",{value:!0});yl.versionInfo=yl.version=void 0;var uH="16.9.0";yl.version=uH;var cH=Object.freeze({major:16,minor:9,patch:0,preReleaseTag:null});yl.versionInfo=cH});var Gr=F(oI=>{"use strict";m();T();N();Object.defineProperty(oI,"__esModule",{value:!0});oI.devAssert=lH;function lH(e,t){if(!!!e)throw new Error(t)}});var Zm=F(uI=>{"use strict";m();T();N();Object.defineProperty(uI,"__esModule",{value:!0});uI.isPromise=dH;function dH(e){return typeof(e==null?void 0:e.then)=="function"}});var ja=F(cI=>{"use strict";m();T();N();Object.defineProperty(cI,"__esModule",{value:!0});cI.isObjectLike=fH;function fH(e){return typeof e=="object"&&e!==null}});var Lr=F(lI=>{"use strict";m();T();N();Object.defineProperty(lI,"__esModule",{value:!0});lI.invariant=pH;function pH(e,t){if(!!!e)throw new Error(t!=null?t:"Unexpected invariant triggered.")}});var eN=F(dI=>{"use strict";m();T();N();Object.defineProperty(dI,"__esModule",{value:!0});dI.getLocation=TH;var mH=Lr(),NH=/\r\n|[\n\r]/g;function TH(e,t){let n=0,r=1;for(let i of e.body.matchAll(NH)){if(typeof i.index=="number"||(0,mH.invariant)(!1),i.index>=t)break;n=i.index+i[0].length,r+=1}return{line:r,column:t+1-n}}});var fI=F(tN=>{"use strict";m();T();N();Object.defineProperty(tN,"__esModule",{value:!0});tN.printLocation=hH;tN.printSourceLocation=SF;var EH=eN();function hH(e){return SF(e.source,(0,EH.getLocation)(e.source,e.start))}function SF(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,u=t.line===1?n:0,l=t.column+u,d=`${e.name}:${o}:${l} -`,p=r.split(/\r\n|[\n\r]/g),E=p[i];if(E.length>120){let h=Math.floor(l/80),v=l%80,R=[];for(let U=0;U["|",U]),["|","^".padStart(v)],["|",R[h+1]]])}return d+vF([[`${o-1} |`,p[i-1]],[`${o} |`,E],["|","^".padStart(l)],[`${o+1} |`,p[i+1]]])}function vF(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 et=F(Il=>{"use strict";m();T();N();Object.defineProperty(Il,"__esModule",{value:!0});Il.GraphQLError=void 0;Il.formatError=_H;Il.printError=gH;var yH=ja(),OF=eN(),DF=fI();function IH(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 pI=class e extends Error{constructor(t,...n){var r,i,a;let{nodes:o,source:u,positions:l,path:d,originalError:p,extensions:E}=IH(n);super(t),this.name="GraphQLError",this.path=d!=null?d:void 0,this.originalError=p!=null?p:void 0,this.nodes=bF(Array.isArray(o)?o:o?[o]:void 0);let h=bF((r=this.nodes)===null||r===void 0?void 0:r.map(R=>R.loc).filter(R=>R!=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(R=>R.start),this.locations=l&&u?l.map(R=>(0,OF.getLocation)(u,R)):h==null?void 0:h.map(R=>(0,OF.getLocation)(R.source,R.start));let v=(0,yH.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 Moe=Object.create;var rm=Object.defineProperty,joe=Object.defineProperties,Voe=Object.getOwnPropertyDescriptor,Koe=Object.getOwnPropertyDescriptors,$oe=Object.getOwnPropertyNames,WN=Object.getOwnPropertySymbols,Goe=Object.getPrototypeOf,xS=Object.prototype.hasOwnProperty,zU=Object.prototype.propertyIsEnumerable;var HU=e=>{throw TypeError(e)},yr=Math.pow,qS=(e,t,r)=>t in e?rm(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,q=(e,t)=>{for(var r in t||(t={}))xS.call(t,r)&&qS(e,r,t[r]);if(WN)for(var r of WN(t))zU.call(t,r)&&qS(e,r,t[r]);return e},G=(e,t)=>joe(e,Koe(t));var WU=(e,t)=>{var r={};for(var n in e)xS.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&WN)for(var n of WN(e))t.indexOf(n)<0&&zU.call(e,n)&&(r[n]=e[n]);return r};var ja=(e,t)=>()=>(e&&(t=e(e=0)),t);var D=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),nm=(e,t)=>{for(var r in t)rm(e,r,{get:t[r],enumerable:!0})},XU=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of $oe(t))!xS.call(e,i)&&i!==r&&rm(e,i,{get:()=>t[i],enumerable:!(n=Voe(t,i))||n.enumerable});return e};var Vi=(e,t,r)=>(r=e!=null?Moe(Goe(e)):{},XU(t||!e||!e.__esModule?rm(r,"default",{value:e,enumerable:!0}):r,e)),im=e=>XU(rm({},"__esModule",{value:!0}),e);var S=(e,t,r)=>qS(e,typeof t!="symbol"?t+"":t,r),MS=(e,t,r)=>t.has(e)||HU("Cannot "+r);var jS=(e,t,r)=>(MS(e,t,"read from private field"),r?r.call(e):t.get(e)),Xd=(e,t,r)=>t.has(e)?HU("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),VS=(e,t,r,n)=>(MS(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),Zd=(e,t,r)=>(MS(e,t,"access private method"),r);var oa=(e,t,r)=>new Promise((n,i)=>{var a=l=>{try{u(r.next(l))}catch(m){i(m)}},o=l=>{try{u(r.throw(l))}catch(m){i(m)}},u=l=>l.done?n(l.value):Promise.resolve(l.value).then(a,o);u((r=r.apply(e,t)).next())});var d=ja(()=>{"use strict"});var E={};nm(E,{_debugEnd:()=>Mk,_debugProcess:()=>xk,_events:()=>rq,_eventsCount:()=>nq,_exiting:()=>gk,_fatalExceptions:()=>Bk,_getActiveHandles:()=>Sk,_getActiveRequests:()=>_k,_kill:()=>Dk,_linkedBinding:()=>Tk,_maxListeners:()=>tq,_preload_modules:()=>Xk,_rawDebug:()=>yk,_startProfilerIdleNotifier:()=>jk,_stopProfilerIdleNotifier:()=>Vk,_tickCallback:()=>qk,abort:()=>Qk,addListener:()=>iq,allowedNodeEnvironmentFlags:()=>Fk,arch:()=>nk,argv:()=>ok,argv0:()=>Wk,assert:()=>Lk,binding:()=>dk,chdir:()=>mk,config:()=>Ik,cpuUsage:()=>eT,cwd:()=>pk,debugPort:()=>Hk,default:()=>pq,dlopen:()=>vk,domain:()=>Ek,emit:()=>cq,emitWarning:()=>lk,env:()=>ak,execArgv:()=>sk,execPath:()=>zk,exit:()=>wk,features:()=>Ck,hasUncaughtExceptionCaptureCallback:()=>kk,hrtime:()=>ZN,kill:()=>Rk,listeners:()=>fq,memoryUsage:()=>Ak,moduleLoadList:()=>Nk,nextTick:()=>ek,off:()=>oq,on:()=>hs,once:()=>aq,openStdin:()=>Pk,pid:()=>Yk,platform:()=>ik,ppid:()=>Jk,prependListener:()=>lq,prependOnceListener:()=>dq,reallyExit:()=>Ok,release:()=>hk,removeAllListeners:()=>uq,removeListener:()=>sq,resourceUsage:()=>bk,setSourceMapsEnabled:()=>Zk,setUncaughtExceptionCaptureCallback:()=>Uk,stderr:()=>$k,stdin:()=>Gk,stdout:()=>Kk,title:()=>rk,umask:()=>fk,uptime:()=>eq,version:()=>uk,versions:()=>ck});function GS(e){throw new Error("Node.js process "+e+" is not supported by JSPM core outside of Node.js")}function Qoe(){!ef||!vl||(ef=!1,vl.length?ms=vl.concat(ms):XN=-1,ms.length&&ZU())}function ZU(){if(!ef){var e=setTimeout(Qoe,0);ef=!0;for(var t=ms.length;t;){for(vl=ms,ms=[];++XN1)for(var r=1;r{"use strict";d();p();f();ms=[],ef=!1,XN=-1;tk.prototype.run=function(){this.fun.apply(null,this.array)};rk="browser",nk="x64",ik="browser",ak={PATH:"/usr/bin",LANG:navigator.language+".UTF-8",PWD:"/",HOME:"/home",TMP:"/tmp"},ok=["/usr/bin/node"],sk=[],uk="v16.8.0",ck={},lk=function(e,t){console.warn((t?t+": ":"")+e)},dk=function(e){GS("binding")},fk=function(e){return 0},pk=function(){return"/"},mk=function(e){},hk={name:"node",sourceUrl:"",headersUrl:"",libUrl:""};yk=Wn,Nk=[];Ek={},gk=!1,Ik={};Ok=Wn,Dk=Wn,eT=function(){return{}},bk=eT,Ak=eT,Rk=Wn,wk=Wn,Pk=Wn,Fk={};Ck={inspector:!1,debug:!1,uv:!1,ipv6:!1,tls_alpn:!1,tls_sni:!1,tls_ocsp:!1,tls:!1,cached_builtins:!0},Bk=Wn,Uk=Wn;qk=Wn,xk=Wn,Mk=Wn,jk=Wn,Vk=Wn,Kk=void 0,$k=void 0,Gk=void 0,Qk=Wn,Yk=2,Jk=1,zk="/bin/usr/node",Hk=9229,Wk="node",Xk=[],Zk=Wn,Tc={now:typeof performance!="undefined"?performance.now.bind(performance):void 0,timing:typeof performance!="undefined"?performance.timing:void 0};Tc.now===void 0&&(KS=Date.now(),Tc.timing&&Tc.timing.navigationStart&&(KS=Tc.timing.navigationStart),Tc.now=()=>Date.now()-KS);$S=1e9;ZN.bigint=function(e){var t=ZN(e);return typeof BigInt=="undefined"?t[0]*$S+t[1]:BigInt(t[0]*$S)+BigInt(t[1])};tq=10,rq={},nq=0;iq=hs,aq=hs,oq=hs,sq=hs,uq=hs,cq=Wn,lq=hs,dq=hs;pq={version:uk,versions:ck,arch:nk,platform:ik,release:hk,_rawDebug:yk,moduleLoadList:Nk,binding:dk,_linkedBinding:Tk,_events:rq,_eventsCount:nq,_maxListeners:tq,on:hs,addListener:iq,once:aq,off:oq,removeListener:sq,removeAllListeners:uq,emit:cq,prependListener:lq,prependOnceListener:dq,listeners:fq,domain:Ek,_exiting:gk,config:Ik,dlopen:vk,uptime:eq,_getActiveRequests:_k,_getActiveHandles:Sk,reallyExit:Ok,_kill:Dk,cpuUsage:eT,resourceUsage:bk,memoryUsage:Ak,kill:Rk,exit:wk,openStdin:Pk,allowedNodeEnvironmentFlags:Fk,assert:Lk,features:Ck,_fatalExceptions:Bk,setUncaughtExceptionCaptureCallback:Uk,hasUncaughtExceptionCaptureCallback:kk,emitWarning:lk,nextTick:ek,_tickCallback:qk,_debugProcess:xk,_debugEnd:Mk,_startProfilerIdleNotifier:jk,_stopProfilerIdleNotifier:Vk,stdout:Kk,stdin:Gk,stderr:$k,abort:Qk,umask:fk,chdir:mk,cwd:pk,env:ak,title:rk,argv:ok,execArgv:sk,pid:Yk,ppid:Jk,execPath:zk,debugPort:Hk,hrtime:ZN,argv0:Wk,_preload_modules:Xk,setSourceMapsEnabled:Zk}});var f=ja(()=>{"use strict";mq()});function Yoe(){if(hq)return am;hq=!0,am.byteLength=u,am.toByteArray=m,am.fromByteArray=T;for(var e=[],t=[],r=typeof Uint8Array!="undefined"?Uint8Array:Array,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,a=n.length;i0)throw new Error("Invalid string. Length must be a multiple of 4");var C=O.indexOf("=");C===-1&&(C=R);var M=C===R?0:4-C%4;return[C,M]}function u(O){var R=o(O),C=R[0],M=R[1];return(C+M)*3/4-M}function l(O,R,C){return(R+C)*3/4-C}function m(O){var R,C=o(O),M=C[0],Y=C[1],ee=new r(l(O,M,Y)),ae=0,Ne=Y>0?M-4:M,_e;for(_e=0;_e>16&255,ee[ae++]=R>>8&255,ee[ae++]=R&255;return Y===2&&(R=t[O.charCodeAt(_e)]<<2|t[O.charCodeAt(_e+1)]>>4,ee[ae++]=R&255),Y===1&&(R=t[O.charCodeAt(_e)]<<10|t[O.charCodeAt(_e+1)]<<4|t[O.charCodeAt(_e+2)]>>2,ee[ae++]=R>>8&255,ee[ae++]=R&255),ee}function h(O){return e[O>>18&63]+e[O>>12&63]+e[O>>6&63]+e[O&63]}function N(O,R,C){for(var M,Y=[],ee=R;eeNe?Ne:ae+ee));return M===1?(R=O[C-1],Y.push(e[R>>2]+e[R<<4&63]+"==")):M===2&&(R=(O[C-2]<<8)+O[C-1],Y.push(e[R>>10]+e[R>>4&63]+e[R<<2&63]+"=")),Y.join("")}return am}function Joe(){if(yq)return tT;yq=!0;return tT.read=function(e,t,r,n,i){var a,o,u=i*8-n-1,l=(1<>1,h=-7,N=r?i-1:0,T=r?-1:1,O=e[t+N];for(N+=T,a=O&(1<<-h)-1,O>>=-h,h+=u;h>0;a=a*256+e[t+N],N+=T,h-=8);for(o=a&(1<<-h)-1,a>>=-h,h+=n;h>0;o=o*256+e[t+N],N+=T,h-=8);if(a===0)a=1-m;else{if(a===l)return o?NaN:(O?-1:1)*(1/0);o=o+Math.pow(2,n),a=a-m}return(O?-1:1)*o*Math.pow(2,a-n)},tT.write=function(e,t,r,n,i,a){var o,u,l,m=a*8-i-1,h=(1<>1,T=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,O=n?0:a-1,R=n?1:-1,C=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(u=isNaN(t)?1:0,o=h):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),o+N>=1?t+=T/l:t+=T*Math.pow(2,1-N),t*l>=2&&(o++,l/=2),o+N>=h?(u=0,o=h):o+N>=1?(u=(t*l-1)*Math.pow(2,i),o=o+N):(u=t*Math.pow(2,N-1)*Math.pow(2,i),o=0));i>=8;e[r+O]=u&255,O+=R,u/=256,i-=8);for(o=o<0;e[r+O]=o&255,O+=R,o/=256,m-=8);e[r+O-R]|=C*128},tT}function zoe(){if(Nq)return _l;Nq=!0;let e=Yoe(),t=Joe(),r=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;_l.Buffer=o,_l.SlowBuffer=Y,_l.INSPECT_MAX_BYTES=50;let n=2147483647;_l.kMaxLength=n,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),_={foo:function(){return 42}};return Object.setPrototypeOf(_,Uint8Array.prototype),Object.setPrototypeOf(P,_),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>n)throw new RangeError('The value "'+P+'" is invalid for option "size"');let _=new Uint8Array(P);return Object.setPrototypeOf(_,o.prototype),_}function o(P,_,b){if(typeof P=="number"){if(typeof _=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return h(P)}return u(P,_,b)}o.poolSize=8192;function u(P,_,b){if(typeof P=="string")return N(P,_);if(ArrayBuffer.isView(P))return O(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(Yt(P,ArrayBuffer)||P&&Yt(P.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(Yt(P,SharedArrayBuffer)||P&&Yt(P.buffer,SharedArrayBuffer)))return R(P,_,b);if(typeof P=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let k=P.valueOf&&P.valueOf();if(k!=null&&k!==P)return o.from(k,_,b);let $=C(P);if($)return $;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof P[Symbol.toPrimitive]=="function")return o.from(P[Symbol.toPrimitive]("string"),_,b);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,_,b){return u(P,_,b)},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 m(P,_,b){return l(P),P<=0?a(P):_!==void 0?typeof b=="string"?a(P).fill(_,b):a(P).fill(_):a(P)}o.alloc=function(P,_,b){return m(P,_,b)};function h(P){return l(P),a(P<0?0:M(P)|0)}o.allocUnsafe=function(P){return h(P)},o.allocUnsafeSlow=function(P){return h(P)};function N(P,_){if((typeof _!="string"||_==="")&&(_="utf8"),!o.isEncoding(_))throw new TypeError("Unknown encoding: "+_);let b=ee(P,_)|0,k=a(b),$=k.write(P,_);return $!==b&&(k=k.slice(0,$)),k}function T(P){let _=P.length<0?0:M(P.length)|0,b=a(_);for(let k=0;k<_;k+=1)b[k]=P[k]&255;return b}function O(P){if(Yt(P,Uint8Array)){let _=new Uint8Array(P);return R(_.buffer,_.byteOffset,_.byteLength)}return T(P)}function R(P,_,b){if(_<0||P.byteLength<_)throw new RangeError('"offset" is outside of buffer bounds');if(P.byteLength<_+(b||0))throw new RangeError('"length" is outside of buffer bounds');let k;return _===void 0&&b===void 0?k=new Uint8Array(P):b===void 0?k=new Uint8Array(P,_):k=new Uint8Array(P,_,b),Object.setPrototypeOf(k,o.prototype),k}function C(P){if(o.isBuffer(P)){let _=M(P.length)|0,b=a(_);return b.length===0||P.copy(b,0,0,_),b}if(P.length!==void 0)return typeof P.length!="number"||fn(P.length)?a(0):T(P);if(P.type==="Buffer"&&Array.isArray(P.data))return T(P.data)}function M(P){if(P>=n)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+n.toString(16)+" bytes");return P|0}function Y(P){return+P!=P&&(P=0),o.alloc(+P)}o.isBuffer=function(_){return _!=null&&_._isBuffer===!0&&_!==o.prototype},o.compare=function(_,b){if(Yt(_,Uint8Array)&&(_=o.from(_,_.offset,_.byteLength)),Yt(b,Uint8Array)&&(b=o.from(b,b.offset,b.byteLength)),!o.isBuffer(_)||!o.isBuffer(b))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(_===b)return 0;let k=_.length,$=b.length;for(let te=0,ce=Math.min(k,$);te$.length?(o.isBuffer(ce)||(ce=o.from(ce)),ce.copy($,te)):Uint8Array.prototype.set.call($,ce,te);else if(o.isBuffer(ce))ce.copy($,te);else throw new TypeError('"list" argument must be an Array of Buffers');te+=ce.length}return $};function ee(P,_){if(o.isBuffer(P))return P.length;if(ArrayBuffer.isView(P)||Yt(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 b=P.length,k=arguments.length>2&&arguments[2]===!0;if(!k&&b===0)return 0;let $=!1;for(;;)switch(_){case"ascii":case"latin1":case"binary":return b;case"utf8":case"utf-8":return Jn(P).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return b*2;case"hex":return b>>>1;case"base64":return Ba(P).length;default:if($)return k?-1:Jn(P).length;_=(""+_).toLowerCase(),$=!0}}o.byteLength=ee;function ae(P,_,b){let k=!1;if((_===void 0||_<0)&&(_=0),_>this.length||((b===void 0||b>this.length)&&(b=this.length),b<=0)||(b>>>=0,_>>>=0,b<=_))return"";for(P||(P="utf8");;)switch(P){case"hex":return Yn(this,_,b);case"utf8":case"utf-8":return ar(this,_,b);case"ascii":return tr(this,_,b);case"latin1":case"binary":return $r(this,_,b);case"base64":return pr(this,_,b);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return dn(this,_,b);default:if(k)throw new TypeError("Unknown encoding: "+P);P=(P+"").toLowerCase(),k=!0}}o.prototype._isBuffer=!0;function Ne(P,_,b){let k=P[_];P[_]=P[b],P[b]=k}o.prototype.swap16=function(){let _=this.length;if(_%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let b=0;b<_;b+=2)Ne(this,b,b+1);return this},o.prototype.swap32=function(){let _=this.length;if(_%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let b=0;b<_;b+=4)Ne(this,b,b+3),Ne(this,b+1,b+2);return this},o.prototype.swap64=function(){let _=this.length;if(_%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let b=0;b<_;b+=8)Ne(this,b,b+7),Ne(this,b+1,b+6),Ne(this,b+2,b+5),Ne(this,b+3,b+4);return this},o.prototype.toString=function(){let _=this.length;return _===0?"":arguments.length===0?ar(this,0,_):ae.apply(this,arguments)},o.prototype.toLocaleString=o.prototype.toString,o.prototype.equals=function(_){if(!o.isBuffer(_))throw new TypeError("Argument must be a Buffer");return this===_?!0:o.compare(this,_)===0},o.prototype.inspect=function(){let _="",b=_l.INSPECT_MAX_BYTES;return _=this.toString("hex",0,b).replace(/(.{2})/g,"$1 ").trim(),this.length>b&&(_+=" ... "),""},r&&(o.prototype[r]=o.prototype.inspect),o.prototype.compare=function(_,b,k,$,te){if(Yt(_,Uint8Array)&&(_=o.from(_,_.offset,_.byteLength)),!o.isBuffer(_))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof _);if(b===void 0&&(b=0),k===void 0&&(k=_?_.length:0),$===void 0&&($=0),te===void 0&&(te=this.length),b<0||k>_.length||$<0||te>this.length)throw new RangeError("out of range index");if($>=te&&b>=k)return 0;if($>=te)return-1;if(b>=k)return 1;if(b>>>=0,k>>>=0,$>>>=0,te>>>=0,this===_)return 0;let ce=te-$,gt=k-b,Or=Math.min(ce,gt),hr=this.slice($,te),Dr=_.slice(b,k);for(let dr=0;dr2147483647?b=2147483647:b<-2147483648&&(b=-2147483648),b=+b,fn(b)&&(b=$?0:P.length-1),b<0&&(b=P.length+b),b>=P.length){if($)return-1;b=P.length-1}else if(b<0)if($)b=0;else return-1;if(typeof _=="string"&&(_=o.from(_,k)),o.isBuffer(_))return _.length===0?-1:Le(P,_,b,k,$);if(typeof _=="number")return _=_&255,typeof Uint8Array.prototype.indexOf=="function"?$?Uint8Array.prototype.indexOf.call(P,_,b):Uint8Array.prototype.lastIndexOf.call(P,_,b):Le(P,[_],b,k,$);throw new TypeError("val must be string, number or Buffer")}function Le(P,_,b,k,$){let te=1,ce=P.length,gt=_.length;if(k!==void 0&&(k=String(k).toLowerCase(),k==="ucs2"||k==="ucs-2"||k==="utf16le"||k==="utf-16le")){if(P.length<2||_.length<2)return-1;te=2,ce/=2,gt/=2,b/=2}function Or(Dr,dr){return te===1?Dr[dr]:Dr.readUInt16BE(dr*te)}let hr;if($){let Dr=-1;for(hr=b;hrce&&(b=ce-gt),hr=b;hr>=0;hr--){let Dr=!0;for(let dr=0;dr$&&(k=$)):k=$;let te=_.length;k>te/2&&(k=te/2);let ce;for(ce=0;ce>>0,isFinite(k)?(k=k>>>0,$===void 0&&($="utf8")):($=k,k=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let te=this.length-b;if((k===void 0||k>te)&&(k=te),_.length>0&&(k<0||b<0)||b>this.length)throw new RangeError("Attempt to write outside buffer bounds");$||($="utf8");let ce=!1;for(;;)switch($){case"hex":return Ve(this,_,b,k);case"utf8":case"utf-8":return ot(this,_,b,k);case"ascii":case"latin1":case"binary":return Z(this,_,b,k);case"base64":return Se(this,_,b,k);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ft(this,_,b,k);default:if(ce)throw new TypeError("Unknown encoding: "+$);$=(""+$).toLowerCase(),ce=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function pr(P,_,b){return _===0&&b===P.length?e.fromByteArray(P):e.fromByteArray(P.slice(_,b))}function ar(P,_,b){b=Math.min(P.length,b);let k=[],$=_;for(;$239?4:te>223?3:te>191?2:1;if($+gt<=b){let Or,hr,Dr,dr;switch(gt){case 1:te<128&&(ce=te);break;case 2:Or=P[$+1],(Or&192)===128&&(dr=(te&31)<<6|Or&63,dr>127&&(ce=dr));break;case 3:Or=P[$+1],hr=P[$+2],(Or&192)===128&&(hr&192)===128&&(dr=(te&15)<<12|(Or&63)<<6|hr&63,dr>2047&&(dr<55296||dr>57343)&&(ce=dr));break;case 4:Or=P[$+1],hr=P[$+2],Dr=P[$+3],(Or&192)===128&&(hr&192)===128&&(Dr&192)===128&&(dr=(te&15)<<18|(Or&63)<<12|(hr&63)<<6|Dr&63,dr>65535&&dr<1114112&&(ce=dr))}}ce===null?(ce=65533,gt=1):ce>65535&&(ce-=65536,k.push(ce>>>10&1023|55296),ce=56320|ce&1023),k.push(ce),$+=gt}return mr(k)}let vr=4096;function mr(P){let _=P.length;if(_<=vr)return String.fromCharCode.apply(String,P);let b="",k=0;for(;k<_;)b+=String.fromCharCode.apply(String,P.slice(k,k+=vr));return b}function tr(P,_,b){let k="";b=Math.min(P.length,b);for(let $=_;$k)&&(b=k);let $="";for(let te=_;tek&&(_=k),b<0?(b+=k,b<0&&(b=0)):b>k&&(b=k),b<_&&(b=_);let $=this.subarray(_,b);return Object.setPrototypeOf($,o.prototype),$};function bt(P,_,b){if(P%1!==0||P<0)throw new RangeError("offset is not uint");if(P+_>b)throw new RangeError("Trying to access beyond buffer length")}o.prototype.readUintLE=o.prototype.readUIntLE=function(_,b,k){_=_>>>0,b=b>>>0,k||bt(_,b,this.length);let $=this[_],te=1,ce=0;for(;++ce>>0,b=b>>>0,k||bt(_,b,this.length);let $=this[_+--b],te=1;for(;b>0&&(te*=256);)$+=this[_+--b]*te;return $},o.prototype.readUint8=o.prototype.readUInt8=function(_,b){return _=_>>>0,b||bt(_,1,this.length),this[_]},o.prototype.readUint16LE=o.prototype.readUInt16LE=function(_,b){return _=_>>>0,b||bt(_,2,this.length),this[_]|this[_+1]<<8},o.prototype.readUint16BE=o.prototype.readUInt16BE=function(_,b){return _=_>>>0,b||bt(_,2,this.length),this[_]<<8|this[_+1]},o.prototype.readUint32LE=o.prototype.readUInt32LE=function(_,b){return _=_>>>0,b||bt(_,4,this.length),(this[_]|this[_+1]<<8|this[_+2]<<16)+this[_+3]*16777216},o.prototype.readUint32BE=o.prototype.readUInt32BE=function(_,b){return _=_>>>0,b||bt(_,4,this.length),this[_]*16777216+(this[_+1]<<16|this[_+2]<<8|this[_+3])},o.prototype.readBigUInt64LE=Ni(function(_){_=_>>>0,At(_,"offset");let b=this[_],k=this[_+7];(b===void 0||k===void 0)&&It(_,this.length-8);let $=b+this[++_]*yr(2,8)+this[++_]*yr(2,16)+this[++_]*yr(2,24),te=this[++_]+this[++_]*yr(2,8)+this[++_]*yr(2,16)+k*yr(2,24);return BigInt($)+(BigInt(te)<>>0,At(_,"offset");let b=this[_],k=this[_+7];(b===void 0||k===void 0)&&It(_,this.length-8);let $=b*yr(2,24)+this[++_]*yr(2,16)+this[++_]*yr(2,8)+this[++_],te=this[++_]*yr(2,24)+this[++_]*yr(2,16)+this[++_]*yr(2,8)+k;return(BigInt($)<>>0,b=b>>>0,k||bt(_,b,this.length);let $=this[_],te=1,ce=0;for(;++ce=te&&($-=Math.pow(2,8*b)),$},o.prototype.readIntBE=function(_,b,k){_=_>>>0,b=b>>>0,k||bt(_,b,this.length);let $=b,te=1,ce=this[_+--$];for(;$>0&&(te*=256);)ce+=this[_+--$]*te;return te*=128,ce>=te&&(ce-=Math.pow(2,8*b)),ce},o.prototype.readInt8=function(_,b){return _=_>>>0,b||bt(_,1,this.length),this[_]&128?(255-this[_]+1)*-1:this[_]},o.prototype.readInt16LE=function(_,b){_=_>>>0,b||bt(_,2,this.length);let k=this[_]|this[_+1]<<8;return k&32768?k|4294901760:k},o.prototype.readInt16BE=function(_,b){_=_>>>0,b||bt(_,2,this.length);let k=this[_+1]|this[_]<<8;return k&32768?k|4294901760:k},o.prototype.readInt32LE=function(_,b){return _=_>>>0,b||bt(_,4,this.length),this[_]|this[_+1]<<8|this[_+2]<<16|this[_+3]<<24},o.prototype.readInt32BE=function(_,b){return _=_>>>0,b||bt(_,4,this.length),this[_]<<24|this[_+1]<<16|this[_+2]<<8|this[_+3]},o.prototype.readBigInt64LE=Ni(function(_){_=_>>>0,At(_,"offset");let b=this[_],k=this[_+7];(b===void 0||k===void 0)&&It(_,this.length-8);let $=this[_+4]+this[_+5]*yr(2,8)+this[_+6]*yr(2,16)+(k<<24);return(BigInt($)<>>0,At(_,"offset");let b=this[_],k=this[_+7];(b===void 0||k===void 0)&&It(_,this.length-8);let $=(b<<24)+this[++_]*yr(2,16)+this[++_]*yr(2,8)+this[++_];return(BigInt($)<>>0,b||bt(_,4,this.length),t.read(this,_,!0,23,4)},o.prototype.readFloatBE=function(_,b){return _=_>>>0,b||bt(_,4,this.length),t.read(this,_,!1,23,4)},o.prototype.readDoubleLE=function(_,b){return _=_>>>0,b||bt(_,8,this.length),t.read(this,_,!0,52,8)},o.prototype.readDoubleBE=function(_,b){return _=_>>>0,b||bt(_,8,this.length),t.read(this,_,!1,52,8)};function Gr(P,_,b,k,$,te){if(!o.isBuffer(P))throw new TypeError('"buffer" argument must be a Buffer instance');if(_>$||_P.length)throw new RangeError("Index out of range")}o.prototype.writeUintLE=o.prototype.writeUIntLE=function(_,b,k,$){if(_=+_,b=b>>>0,k=k>>>0,!$){let gt=Math.pow(2,8*k)-1;Gr(this,_,b,k,gt,0)}let te=1,ce=0;for(this[b]=_&255;++ce>>0,k=k>>>0,!$){let gt=Math.pow(2,8*k)-1;Gr(this,_,b,k,gt,0)}let te=k-1,ce=1;for(this[b+te]=_&255;--te>=0&&(ce*=256);)this[b+te]=_/ce&255;return b+k},o.prototype.writeUint8=o.prototype.writeUInt8=function(_,b,k){return _=+_,b=b>>>0,k||Gr(this,_,b,1,255,0),this[b]=_&255,b+1},o.prototype.writeUint16LE=o.prototype.writeUInt16LE=function(_,b,k){return _=+_,b=b>>>0,k||Gr(this,_,b,2,65535,0),this[b]=_&255,this[b+1]=_>>>8,b+2},o.prototype.writeUint16BE=o.prototype.writeUInt16BE=function(_,b,k){return _=+_,b=b>>>0,k||Gr(this,_,b,2,65535,0),this[b]=_>>>8,this[b+1]=_&255,b+2},o.prototype.writeUint32LE=o.prototype.writeUInt32LE=function(_,b,k){return _=+_,b=b>>>0,k||Gr(this,_,b,4,4294967295,0),this[b+3]=_>>>24,this[b+2]=_>>>16,this[b+1]=_>>>8,this[b]=_&255,b+4},o.prototype.writeUint32BE=o.prototype.writeUInt32BE=function(_,b,k){return _=+_,b=b>>>0,k||Gr(this,_,b,4,4294967295,0),this[b]=_>>>24,this[b+1]=_>>>16,this[b+2]=_>>>8,this[b+3]=_&255,b+4};function oe(P,_,b,k,$){xt(_,k,$,P,b,7);let te=Number(_&BigInt(4294967295));P[b++]=te,te=te>>8,P[b++]=te,te=te>>8,P[b++]=te,te=te>>8,P[b++]=te;let ce=Number(_>>BigInt(32)&BigInt(4294967295));return P[b++]=ce,ce=ce>>8,P[b++]=ce,ce=ce>>8,P[b++]=ce,ce=ce>>8,P[b++]=ce,b}function Be(P,_,b,k,$){xt(_,k,$,P,b,7);let te=Number(_&BigInt(4294967295));P[b+7]=te,te=te>>8,P[b+6]=te,te=te>>8,P[b+5]=te,te=te>>8,P[b+4]=te;let ce=Number(_>>BigInt(32)&BigInt(4294967295));return P[b+3]=ce,ce=ce>>8,P[b+2]=ce,ce=ce>>8,P[b+1]=ce,ce=ce>>8,P[b]=ce,b+8}o.prototype.writeBigUInt64LE=Ni(function(_,b=0){return oe(this,_,b,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeBigUInt64BE=Ni(function(_,b=0){return Be(this,_,b,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeIntLE=function(_,b,k,$){if(_=+_,b=b>>>0,!$){let Or=Math.pow(2,8*k-1);Gr(this,_,b,k,Or-1,-Or)}let te=0,ce=1,gt=0;for(this[b]=_&255;++te>0)-gt&255;return b+k},o.prototype.writeIntBE=function(_,b,k,$){if(_=+_,b=b>>>0,!$){let Or=Math.pow(2,8*k-1);Gr(this,_,b,k,Or-1,-Or)}let te=k-1,ce=1,gt=0;for(this[b+te]=_&255;--te>=0&&(ce*=256);)_<0&>===0&&this[b+te+1]!==0&&(gt=1),this[b+te]=(_/ce>>0)-gt&255;return b+k},o.prototype.writeInt8=function(_,b,k){return _=+_,b=b>>>0,k||Gr(this,_,b,1,127,-128),_<0&&(_=255+_+1),this[b]=_&255,b+1},o.prototype.writeInt16LE=function(_,b,k){return _=+_,b=b>>>0,k||Gr(this,_,b,2,32767,-32768),this[b]=_&255,this[b+1]=_>>>8,b+2},o.prototype.writeInt16BE=function(_,b,k){return _=+_,b=b>>>0,k||Gr(this,_,b,2,32767,-32768),this[b]=_>>>8,this[b+1]=_&255,b+2},o.prototype.writeInt32LE=function(_,b,k){return _=+_,b=b>>>0,k||Gr(this,_,b,4,2147483647,-2147483648),this[b]=_&255,this[b+1]=_>>>8,this[b+2]=_>>>16,this[b+3]=_>>>24,b+4},o.prototype.writeInt32BE=function(_,b,k){return _=+_,b=b>>>0,k||Gr(this,_,b,4,2147483647,-2147483648),_<0&&(_=4294967295+_+1),this[b]=_>>>24,this[b+1]=_>>>16,this[b+2]=_>>>8,this[b+3]=_&255,b+4},o.prototype.writeBigInt64LE=Ni(function(_,b=0){return oe(this,_,b,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),o.prototype.writeBigInt64BE=Ni(function(_,b=0){return Be(this,_,b,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Ie(P,_,b,k,$,te){if(b+k>P.length)throw new RangeError("Index out of range");if(b<0)throw new RangeError("Index out of range")}function Ce(P,_,b,k,$){return _=+_,b=b>>>0,$||Ie(P,_,b,4),t.write(P,_,b,k,23,4),b+4}o.prototype.writeFloatLE=function(_,b,k){return Ce(this,_,b,!0,k)},o.prototype.writeFloatBE=function(_,b,k){return Ce(this,_,b,!1,k)};function Qt(P,_,b,k,$){return _=+_,b=b>>>0,$||Ie(P,_,b,8),t.write(P,_,b,k,52,8),b+8}o.prototype.writeDoubleLE=function(_,b,k){return Qt(this,_,b,!0,k)},o.prototype.writeDoubleBE=function(_,b,k){return Qt(this,_,b,!1,k)},o.prototype.copy=function(_,b,k,$){if(!o.isBuffer(_))throw new TypeError("argument should be a Buffer");if(k||(k=0),!$&&$!==0&&($=this.length),b>=_.length&&(b=_.length),b||(b=0),$>0&&$=this.length)throw new RangeError("Index out of range");if($<0)throw new RangeError("sourceEnd out of bounds");$>this.length&&($=this.length),_.length-b<$-k&&($=_.length-b+k);let te=$-k;return this===_&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(b,k,$):Uint8Array.prototype.set.call(_,this.subarray(k,$),b),te},o.prototype.fill=function(_,b,k,$){if(typeof _=="string"){if(typeof b=="string"?($=b,b=0,k=this.length):typeof k=="string"&&($=k,k=this.length),$!==void 0&&typeof $!="string")throw new TypeError("encoding must be a string");if(typeof $=="string"&&!o.isEncoding($))throw new TypeError("Unknown encoding: "+$);if(_.length===1){let ce=_.charCodeAt(0);($==="utf8"&&ce<128||$==="latin1")&&(_=ce)}}else typeof _=="number"?_=_&255:typeof _=="boolean"&&(_=Number(_));if(b<0||this.length>>0,k=k===void 0?this.length:k>>>0,_||(_=0);let te;if(typeof _=="number")for(te=b;teyr(2,32)?$=Je(String(b)):typeof b=="bigint"&&($=String(b),(b>yr(BigInt(2),BigInt(32))||b<-yr(BigInt(2),BigInt(32)))&&($=Je($)),$+="n"),k+=` It must be ${_}. Received ${$}`,k},RangeError);function Je(P){let _="",b=P.length,k=P[0]==="-"?1:0;for(;b>=k+4;b-=3)_=`_${P.slice(b-3,b)}${_}`;return`${P.slice(0,b)}${_}`}function nt(P,_,b){At(_,"offset"),(P[_]===void 0||P[_+b]===void 0)&&It(_,P.length-(b+1))}function xt(P,_,b,k,$,te){if(P>b||P<_){let ce=typeof _=="bigint"?"n":"",gt;throw te>3?_===0||_===BigInt(0)?gt=`>= 0${ce} and < 2${ce} ** ${(te+1)*8}${ce}`:gt=`>= -(2${ce} ** ${(te+1)*8-1}${ce}) and < 2 ** ${(te+1)*8-1}${ce}`:gt=`>= ${_}${ce} and <= ${b}${ce}`,new z.ERR_OUT_OF_RANGE("value",gt,P)}nt(k,$,te)}function At(P,_){if(typeof P!="number")throw new z.ERR_INVALID_ARG_TYPE(_,"number",P)}function It(P,_,b){throw Math.floor(P)!==P?(At(P,b),new z.ERR_OUT_OF_RANGE(b||"offset","an integer",P)):_<0?new z.ERR_BUFFER_OUT_OF_BOUNDS:new z.ERR_OUT_OF_RANGE(b||"offset",`>= ${b?1:0} and <= ${_}`,P)}let Ci=/[^+/0-9A-Za-z-_]/g;function kd(P){if(P=P.split("=")[0],P=P.trim().replace(Ci,""),P.length<2)return"";for(;P.length%4!==0;)P=P+"=";return P}function Jn(P,_){_=_||1/0;let b,k=P.length,$=null,te=[];for(let ce=0;ce55295&&b<57344){if(!$){if(b>56319){(_-=3)>-1&&te.push(239,191,189);continue}else if(ce+1===k){(_-=3)>-1&&te.push(239,191,189);continue}$=b;continue}if(b<56320){(_-=3)>-1&&te.push(239,191,189),$=b;continue}b=($-55296<<10|b-56320)+65536}else $&&(_-=3)>-1&&te.push(239,191,189);if($=null,b<128){if((_-=1)<0)break;te.push(b)}else if(b<2048){if((_-=2)<0)break;te.push(b>>6|192,b&63|128)}else if(b<65536){if((_-=3)<0)break;te.push(b>>12|224,b>>6&63|128,b&63|128)}else if(b<1114112){if((_-=4)<0)break;te.push(b>>18|240,b>>12&63|128,b>>6&63|128,b&63|128)}else throw new Error("Invalid code point")}return te}function fl(P){let _=[];for(let b=0;b>8,$=b%256,te.push($),te.push(k);return te}function Ba(P){return e.toByteArray(kd(P))}function In(P,_,b,k){let $;for($=0;$=_.length||$>=P.length);++$)_[$+b]=P[$];return $}function Yt(P,_){return P instanceof _||P!=null&&P.constructor!=null&&P.constructor.name!=null&&P.constructor.name===_.name}function fn(P){return P!==P}let __=function(){let P="0123456789abcdef",_=new Array(256);for(let b=0;b<16;++b){let k=b*16;for(let $=0;$<16;++$)_[k+$]=P[b]+P[$]}return _}();function Ni(P){return typeof BigInt=="undefined"?S_:P}function S_(){throw new Error("BigInt not supported")}return _l}var am,hq,tT,yq,_l,Nq,Sl,g,x$e,M$e,Tq=ja(()=>{"use strict";d();p();f();am={},hq=!1;tT={},yq=!1;_l={},Nq=!1;Sl=zoe();Sl.Buffer;Sl.SlowBuffer;Sl.INSPECT_MAX_BYTES;Sl.kMaxLength;g=Sl.Buffer,x$e=Sl.INSPECT_MAX_BYTES,M$e=Sl.kMaxLength});var p=ja(()=>{"use strict";Tq()});var ke=D((J$e,Eq)=>{"use strict";d();p();f();Eq.exports=TypeError});var Iq=D((X$e,gq)=>{"use strict";d();p();f();gq.exports=typeof Reflect!="undefined"&&Reflect.setPrototypeOf||null});var rT=D((rGe,vq)=>{"use strict";d();p();f();vq.exports=Object});var Sq=D((oGe,_q)=>{"use strict";d();p();f();var Hoe=rT();_q.exports=Hoe.setPrototypeOf||null});var bq=D((lGe,Dq)=>{"use strict";d();p();f();var Woe="Function.prototype.bind called on incompatible ",Xoe=Object.prototype.toString,Zoe=Math.max,ese="[object Function]",Oq=function(t,r){for(var n=[],i=0;i{"use strict";d();p();f();var nse=bq();Aq.exports=Function.prototype.bind||nse});var nT=D((TGe,Rq)=>{"use strict";d();p();f();Rq.exports=Function.prototype.call});var iT=D((vGe,wq)=>{"use strict";d();p();f();wq.exports=Function.prototype.apply});var Fq=D((DGe,Pq)=>{"use strict";d();p();f();Pq.exports=typeof Reflect!="undefined"&&Reflect&&Reflect.apply});var QS=D((wGe,Lq)=>{"use strict";d();p();f();var ise=tf(),ase=iT(),ose=nT(),sse=Fq();Lq.exports=sse||ise.call(ose,ase)});var om=D((CGe,Cq)=>{"use strict";d();p();f();var use=tf(),cse=ke(),lse=nT(),dse=QS();Cq.exports=function(t){if(t.length<1||typeof t[0]!="function")throw new cse("a function is required");return dse(use,lse,t)}});var Uq=D((qGe,Bq)=>{"use strict";d();p();f();Bq.exports=Object.getOwnPropertyDescriptor});var _o=D((VGe,kq)=>{"use strict";d();p();f();var aT=Uq();if(aT)try{aT([],"length")}catch(e){aT=null}kq.exports=aT});var jq=D((QGe,Mq)=>{"use strict";d();p();f();var fse=om(),qq=_o(),pse=ke(),xq={};try{xq.__proto__=null}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var mse=!("toString"in xq),YS=qq&&qq(Object.prototype,"__proto__");Mq.exports=mse&&(!!YS&&typeof YS.set=="function"&&fse([YS.set])||function(t,r){if(t==null)throw new pse("set Object.prototype.__proto__ called on null or undefined");return t.__proto__=r,r})});var JS=D((HGe,$q)=>{"use strict";d();p();f();var Vq=Iq(),hse=Sq(),Kq=jq(),yse=ke();$q.exports=Vq?function(t,r){if(Vq(t,r))return t;throw new yse("Reflect.setPrototypeOf: failed to set [[Prototype]]")}:hse||(Kq?function(t,r){return Kq(t,r),t}:null)});var Yr=D((e2e,Gq)=>{"use strict";d();p();f();Gq.exports=function(t){return!!t&&(typeof t=="function"||typeof t=="object")}});var zS=D((i2e,Qq)=>{"use strict";d();p();f();Qq.exports=typeof Reflect!="undefined"&&Reflect.getPrototypeOf||null});var HS=D((u2e,Yq)=>{"use strict";d();p();f();var Nse=rT();Yq.exports=Nse.getPrototypeOf||null});var Zq=D((f2e,Xq)=>{"use strict";d();p();f();var Tse=om(),Jq=_o(),Hq;try{Hq=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var WS=!!Hq&&Jq&&Jq(Object.prototype,"__proto__"),Wq=Object,zq=Wq.getPrototypeOf;Xq.exports=WS&&typeof WS.get=="function"?Tse([WS.get]):typeof zq=="function"?function(t){return zq(t==null?t:Wq(t))}:!1});var XS=D((y2e,nx)=>{"use strict";d();p();f();var ex=zS(),tx=HS(),rx=Zq();nx.exports=ex?function(t){return ex(t)}:tx?function(t){if(!t||typeof t!="object"&&typeof t!="function")throw new TypeError("getProto: not an object");return tx(t)}:rx?function(t){return rx(t)}:null});var sx=D((g2e,ox)=>{"use strict";d();p();f();var ix=ke(),Ese=Yr(),ax=XS();ox.exports=function(t){if(!Ese(t))throw new ix("Assertion failed: O must be an Object");if(!ax)throw new ix("This environment does not support fetching prototypes.");return ax(t)}});var ZS=D((S2e,ux)=>{"use strict";d();p();f();var gse=ke(),Ise=JS(),vse=Yr(),_se=sx();ux.exports=function(t,r){if(r!==null&&!vse(r))throw new gse("Assertion failed: V must be Object or Null");try{Ise(t,r)}catch(n){return!1}return _se(t)===r}});var eO=D((A2e,lx)=>{"use strict";d();p();f();var cx=Object.prototype.toString;lx.exports=function(t){var r=cx.call(t),n=r==="[object Arguments]";return n||(n=r!=="[object Array]"&&t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&cx.call(t.callee)==="[object Function]"),n}});var Ex=D((F2e,Tx)=>{"use strict";d();p();f();var Nx;Object.keys||(sm=Object.prototype.hasOwnProperty,tO=Object.prototype.toString,dx=eO(),rO=Object.prototype.propertyIsEnumerable,fx=!rO.call({toString:null},"toString"),px=rO.call(function(){},"prototype"),um=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],oT=function(e){var t=e.constructor;return t&&t.prototype===e},mx={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},hx=function(){if(typeof window=="undefined")return!1;for(var e in window)try{if(!mx["$"+e]&&sm.call(window,e)&&window[e]!==null&&typeof window[e]=="object")try{oT(window[e])}catch(t){return!0}}catch(t){return!0}return!1}(),yx=function(e){if(typeof window=="undefined"||!hx)return oT(e);try{return oT(e)}catch(t){return!1}},Nx=function(t){var r=t!==null&&typeof t=="object",n=tO.call(t)==="[object Function]",i=dx(t),a=r&&tO.call(t)==="[object String]",o=[];if(!r&&!n&&!i)throw new TypeError("Object.keys called on a non-object");var u=px&&n;if(a&&t.length>0&&!sm.call(t,0))for(var l=0;l0)for(var m=0;m{"use strict";d();p();f();var Sse=Array.prototype.slice,Ose=eO(),gx=Object.keys,sT=gx?function(t){return gx(t)}:Ex(),Ix=Object.keys;sT.shim=function(){if(Object.keys){var t=function(){var r=Object.keys(arguments);return r&&r.length===arguments.length}(1,2);t||(Object.keys=function(n){return Ose(n)?Ix(Sse.call(n)):Ix(n)})}else Object.keys=sT;return Object.keys||sT};vx.exports=sT});var rf=D((M2e,Sx)=>{"use strict";d();p();f();var uT=Object.defineProperty||!1;if(uT)try{uT({},"a",{value:1})}catch(e){uT=!1}Sx.exports=uT});var ys=D(($2e,Ox)=>{"use strict";d();p();f();Ox.exports=SyntaxError});var cT=D((J2e,Ax)=>{"use strict";d();p();f();var Dx=rf(),Dse=ys(),nf=ke(),bx=_o();Ax.exports=function(t,r,n){if(!t||typeof t!="object"&&typeof t!="function")throw new nf("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new nf("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new nf("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new nf("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new nf("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new nf("`loose`, if provided, must be a boolean");var i=arguments.length>3?arguments[3]:null,a=arguments.length>4?arguments[4]:null,o=arguments.length>5?arguments[5]:null,u=arguments.length>6?arguments[6]:!1,l=!!bx&&bx(t,r);if(Dx)Dx(t,r,{configurable:o===null&&l?l.configurable:!o,enumerable:i===null&&l?l.enumerable:!i,value:n,writable:a===null&&l?l.writable:!a});else if(u||!i&&!a&&!o)t[r]=n;else throw new Dse("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var Ol=D((X2e,wx)=>{"use strict";d();p();f();var nO=rf(),Rx=function(){return!!nO};Rx.hasArrayLengthDefineBug=function(){if(!nO)return null;try{return nO([],"length",{value:1}).length!==1}catch(t){return!0}};wx.exports=Rx});var pn=D((rQe,Cx)=>{"use strict";d();p();f();var bse=_x(),Ase=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",Rse=Object.prototype.toString,wse=Array.prototype.concat,Px=cT(),Pse=function(e){return typeof e=="function"&&Rse.call(e)==="[object Function]"},Fx=Ol()(),Fse=function(e,t,r,n){if(t in e){if(n===!0){if(e[t]===r)return}else if(!Pse(n)||!n())return}Fx?Px(e,t,r,!0):Px(e,t,r)},Lx=function(e,t){var r=arguments.length>2?arguments[2]:{},n=bse(t);Ase&&(n=wse.call(n,Object.getOwnPropertySymbols(t)));for(var i=0;i{"use strict";d();p();f();var Lse=Function.prototype.call,Cse=Object.prototype.hasOwnProperty,Bse=tf();Bx.exports=Bse.call(Lse,Cse)});function iO(){throw new Error("setTimeout has not been defined")}function aO(){throw new Error("clearTimeout has not been defined")}function qx(e){if(Es===setTimeout)return setTimeout(e,0);if((Es===iO||!Es)&&setTimeout)return Es=setTimeout,setTimeout(e,0);try{return Es(e,0)}catch(t){try{return Es.call(null,e,0)}catch(r){return Es.call(this||of,e,0)}}}function Use(){af&&Dl&&(af=!1,Dl.length?Is=Dl.concat(Is):lT=-1,Is.length&&xx())}function xx(){if(!af){var e=qx(Use);af=!0;for(var t=Is.length;t;){for(Dl=Is,Is=[];++lT{"use strict";d();p();f();of=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:global,rn=kx={};(function(){try{Es=typeof setTimeout=="function"?setTimeout:iO}catch(e){Es=iO}try{gs=typeof clearTimeout=="function"?clearTimeout:aO}catch(e){gs=aO}})();Is=[],af=!1,lT=-1;rn.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),fO(t)?r.showHidden=t:t&&le._extend(r,t),Al(r.showHidden)&&(r.showHidden=!1),Al(r.depth)&&(r.depth=2),Al(r.colors)&&(r.colors=!1),Al(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=nue),IT(r,e,r.depth)}function nue(e,t){var r=Ec.styles[t];return r?"\x1B["+Ec.colors[r][0]+"m"+e+"\x1B["+Ec.colors[r][1]+"m":e}function iue(e,t){return e}function IT(e,t,r){if(e.customInspect&&t&&NT(t.inspect)&&t.inspect!==le.inspect&&(!t.constructor||t.constructor.prototype!==t)){var n=t.inspect(r,e);return vT(n)||(n=IT(e,n,r)),n}var i=function(T,O){if(Al(O))return T.stylize("undefined","undefined");if(vT(O)){var R="'"+JSON.stringify(O).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return T.stylize(R,"string")}if(hM(O))return T.stylize(""+O,"number");if(fO(O))return T.stylize(""+O,"boolean");if(OT(O))return T.stylize("null","null")}(e,t);if(i)return i;var a=Object.keys(t),o=function(T){var O={};return T.forEach(function(R,C){O[R]=!0}),O}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(t)),dm(t)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return sO(t);if(a.length===0){if(NT(t)){var u=t.name?": "+t.name:"";return e.stylize("[Function"+u+"]","special")}if(lm(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(_T(t))return e.stylize(Date.prototype.toString.call(t),"date");if(dm(t))return sO(t)}var l,m="",h=!1,N=["{","}"];return mM(t)&&(h=!0,N=["[","]"]),NT(t)&&(m=" [Function"+(t.name?": "+t.name:"")+"]"),lm(t)&&(m=" "+RegExp.prototype.toString.call(t)),_T(t)&&(m=" "+Date.prototype.toUTCString.call(t)),dm(t)&&(m=" "+sO(t)),a.length!==0||h&&t.length!=0?r<0?lm(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),l=h?function(T,O,R,C,M){for(var Y=[],ee=0,ae=O.length;ee=0&&C++,M+Y.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?R[0]+(O===""?"":O+` + `)+" "+T.join(`, + `)+" "+R[1]:R[0]+O+" "+T.join(", ")+" "+R[1]}(l,m,N)):N[0]+m+N[1]}function sO(e){return"["+Error.prototype.toString.call(e)+"]"}function uO(e,t,r,n,i,a){var o,u,l;if((l=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?u=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(u=e.stylize("[Setter]","special")),yM(n,i)||(o="["+i+"]"),u||(e.seen.indexOf(l.value)<0?(u=OT(r)?IT(e,l.value,null):IT(e,l.value,r-1)).indexOf(` +`)>-1&&(u=a?u.split(` +`).map(function(m){return" "+m}).join(` +`).substr(2):` +`+u.split(` +`).map(function(m){return" "+m}).join(` +`)):u=e.stylize("[Circular]","special")),Al(o)){if(a&&i.match(/^\d+$/))return u;(o=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.substr(1,o.length-2),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+u}function mM(e){return Array.isArray(e)}function fO(e){return typeof e=="boolean"}function OT(e){return e===null}function hM(e){return typeof e=="number"}function vT(e){return typeof e=="string"}function Al(e){return e===void 0}function lm(e){return sf(e)&&pO(e)==="[object RegExp]"}function sf(e){return typeof e=="object"&&e!==null}function _T(e){return sf(e)&&pO(e)==="[object Date]"}function dm(e){return sf(e)&&(pO(e)==="[object Error]"||e instanceof Error)}function NT(e){return typeof e=="function"}function pO(e){return Object.prototype.toString.call(e)}function cO(e){return e<10?"0"+e.toString(10):e.toString(10)}function oue(){var e=new Date,t=[cO(e.getHours()),cO(e.getMinutes()),cO(e.getSeconds())].join(":");return[e.getDate(),aue[e.getMonth()],t].join(" ")}function yM(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function sue(e,t){if(!e){var r=new Error("Promise was rejected with a falsy value");r.reason=e,e=r}return t(e)}var kse,lO,ST,Wx,qse,xse,Mse,jse,Vse,Xx,Zx,Mx,Kse,$se,Gse,eM,Ct,Qse,Yse,Jse,tM,dO,Ki,vi,zse,kr,Wse,Xse,Zse,cm,le,So,Hx,rue,hT,pM,yT,aue,bl,DT=ja(()=>{"use strict";d();p();f();dT();kse=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",lO=Object.prototype.toString,ST=function(e){return!(kse&&e&&typeof e=="object"&&Symbol.toStringTag in e)&&lO.call(e)==="[object Arguments]"},Wx=function(e){return!!ST(e)||e!==null&&typeof e=="object"&&typeof e.length=="number"&&e.length>=0&&lO.call(e)!=="[object Array]"&&lO.call(e.callee)==="[object Function]"},qse=function(){return ST(arguments)}();ST.isLegacyArguments=Wx;xse=qse?ST:Wx,Mse=Object.prototype.toString,jse=Function.prototype.toString,Vse=/^\s*(?:function)?\*/,Xx=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",Zx=Object.getPrototypeOf,Mx=function(){if(!Xx)return!1;try{return Function("return function*() {}")()}catch(e){}}(),Kse=Mx?Zx(Mx):{},$se=function(e){return typeof e=="function"&&(!!Vse.test(jse.call(e))||(Xx?Zx(e)===Kse:Mse.call(e)==="[object GeneratorFunction]"))},Gse=typeof Object.create=="function"?function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}},eM=function(e){return e&&typeof e=="object"&&typeof e.copy=="function"&&typeof e.fill=="function"&&typeof e.readUInt8=="function"},Ct={},Qse=eM,Yse=xse,Jse=$se;tM=typeof BigInt!="undefined",dO=typeof Symbol!="undefined",Ki=dO&&Symbol.toStringTag!==void 0,vi=typeof Uint8Array!="undefined",zse=typeof ArrayBuffer!="undefined";if(vi&&Ki)var Hse=Object.getPrototypeOf(Uint8Array.prototype),sa=Rl(Object.getOwnPropertyDescriptor(Hse,Symbol.toStringTag).get);kr=Rl(Object.prototype.toString),Wse=Rl(Number.prototype.valueOf),Xse=Rl(String.prototype.valueOf),Zse=Rl(Boolean.prototype.valueOf);if(tM)var eue=Rl(BigInt.prototype.valueOf);if(dO)var tue=Rl(Symbol.prototype.valueOf);Ct.isArgumentsObject=Yse,Ct.isGeneratorFunction=Jse,Ct.isPromise=function(e){return typeof Promise!="undefined"&&e instanceof Promise||e!==null&&typeof e=="object"&&typeof e.then=="function"&&typeof e.catch=="function"},Ct.isArrayBufferView=function(e){return zse&&ArrayBuffer.isView?ArrayBuffer.isView(e):jx(e)||Kx(e)},Ct.isTypedArray=jx,Ct.isUint8Array=rM,Ct.isUint8ClampedArray=nM,Ct.isUint16Array=iM,Ct.isUint32Array=aM,Ct.isInt8Array=oM,Ct.isInt16Array=sM,Ct.isInt32Array=uM,Ct.isFloat32Array=cM,Ct.isFloat64Array=lM,Ct.isBigInt64Array=dM,Ct.isBigUint64Array=fM,fT.working=typeof Map!="undefined"&&fT(new Map),Ct.isMap=function(e){return typeof Map!="undefined"&&(fT.working?fT(e):e instanceof Map)},pT.working=typeof Set!="undefined"&&pT(new Set),Ct.isSet=function(e){return typeof Set!="undefined"&&(pT.working?pT(e):e instanceof Set)},mT.working=typeof WeakMap!="undefined"&&mT(new WeakMap),Ct.isWeakMap=function(e){return typeof WeakMap!="undefined"&&(mT.working?mT(e):e instanceof WeakMap)},oO.working=typeof WeakSet!="undefined"&&oO(new WeakSet),Ct.isWeakSet=function(e){return oO(e)},TT.working=typeof ArrayBuffer!="undefined"&&TT(new ArrayBuffer),Ct.isArrayBuffer=Vx,ET.working=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"&&ET(new DataView(new ArrayBuffer(1),0,1)),Ct.isDataView=Kx,gT.working=typeof SharedArrayBuffer!="undefined"&&gT(new SharedArrayBuffer),Ct.isSharedArrayBuffer=$x,Ct.isAsyncFunction=function(e){return kr(e)==="[object AsyncFunction]"},Ct.isMapIterator=function(e){return kr(e)==="[object Map Iterator]"},Ct.isSetIterator=function(e){return kr(e)==="[object Set Iterator]"},Ct.isGeneratorObject=function(e){return kr(e)==="[object Generator]"},Ct.isWebAssemblyCompiledModule=function(e){return kr(e)==="[object WebAssembly.Module]"},Ct.isNumberObject=Gx,Ct.isStringObject=Qx,Ct.isBooleanObject=Yx,Ct.isBigIntObject=Jx,Ct.isSymbolObject=zx,Ct.isBoxedPrimitive=function(e){return Gx(e)||Qx(e)||Yx(e)||Jx(e)||zx(e)},Ct.isAnyArrayBuffer=function(e){return vi&&(Vx(e)||$x(e))},["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(Ct,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})});cm=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:global,le={},So=Ur,Hx=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),r={},n=0;n=i)return u;switch(u){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(l){return"[Circular]"}default:return u}}),o=n[r];r{"use strict";d();p();f();DT();dT();le._extend;le.callbackify;le.debuglog;le.deprecate;le.format;le.inherits;le.inspect;le.isArray;le.isBoolean;le.isBuffer;le.isDate;le.isError;le.isFunction;le.isNull;le.isNullOrUndefined;le.isNumber;le.isObject;le.isPrimitive;le.isRegExp;le.isString;le.isSymbol;le.isUndefined;le.log;le.promisify;IQe=le._extend,vQe=le.callbackify,_Qe=le.debuglog,SQe=le.deprecate,OQe=le.format,DQe=le.inherits,bQe=le.inspect,AQe=le.isArray,RQe=le.isBoolean,wQe=le.isBuffer,PQe=le.isDate,FQe=le.isError,LQe=le.isFunction,CQe=le.isNull,BQe=le.isNullOrUndefined,UQe=le.isNumber,kQe=le.isObject,qQe=le.isPrimitive,xQe=le.isRegExp,MQe=le.isString,jQe=le.isSymbol,VQe=le.isUndefined,KQe=le.log,$Qe=le.promisify,GQe=le.types,QQe=self.TextEncoder,YQe=self.TextDecoder});var TM={};nm(TM,{TextDecoder:()=>Cue,TextEncoder:()=>Lue,_extend:()=>uue,callbackify:()=>cue,debuglog:()=>lue,default:()=>le,deprecate:()=>due,format:()=>fue,inherits:()=>pue,inspect:()=>mue,isArray:()=>hue,isBoolean:()=>yue,isBuffer:()=>Nue,isDate:()=>Tue,isError:()=>Eue,isFunction:()=>gue,isNull:()=>Iue,isNullOrUndefined:()=>vue,isNumber:()=>_ue,isObject:()=>Sue,isPrimitive:()=>Oue,isRegExp:()=>Due,isString:()=>bue,isSymbol:()=>Aue,isUndefined:()=>Rue,log:()=>wue,promisify:()=>Pue,types:()=>Fue});var uue,cue,lue,due,fue,pue,mue,hue,yue,Nue,Tue,Eue,gue,Iue,vue,_ue,Sue,Oue,Due,bue,Aue,Rue,wue,Pue,Fue,Lue,Cue,EM=ja(()=>{"use strict";d();p();f();NM();DT();DT();dT();uue=le._extend,cue=le.callbackify,lue=le.debuglog,due=le.deprecate,fue=le.format,pue=le.inherits,mue=le.inspect,hue=le.isArray,yue=le.isBoolean,Nue=le.isBuffer,Tue=le.isDate,Eue=le.isError,gue=le.isFunction,Iue=le.isNull,vue=le.isNullOrUndefined,_ue=le.isNumber,Sue=le.isObject,Oue=le.isPrimitive,Due=le.isRegExp,bue=le.isString,Aue=le.isSymbol,Rue=le.isUndefined,wue=le.log,Pue=le.promisify,Fue=le.types,Lue=le.TextEncoder=globalThis.TextEncoder,Cue=le.TextDecoder=globalThis.TextDecoder});var IM=D((aYe,gM)=>{"use strict";d();p();f();gM.exports=(EM(),im(TM)).inspect});var Do=D((cYe,jM)=>{"use strict";d();p();f();var _O=typeof Map=="function"&&Map.prototype,mO=Object.getOwnPropertyDescriptor&&_O?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,AT=_O&&mO&&typeof mO.get=="function"?mO.get:null,vM=_O&&Map.prototype.forEach,SO=typeof Set=="function"&&Set.prototype,hO=Object.getOwnPropertyDescriptor&&SO?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,RT=SO&&hO&&typeof hO.get=="function"?hO.get:null,_M=SO&&Set.prototype.forEach,Bue=typeof WeakMap=="function"&&WeakMap.prototype,mm=Bue?WeakMap.prototype.has:null,Uue=typeof WeakSet=="function"&&WeakSet.prototype,hm=Uue?WeakSet.prototype.has:null,kue=typeof WeakRef=="function"&&WeakRef.prototype,SM=kue?WeakRef.prototype.deref:null,que=Boolean.prototype.valueOf,xue=Object.prototype.toString,Mue=Function.prototype.toString,jue=String.prototype.match,OO=String.prototype.slice,gc=String.prototype.replace,Vue=String.prototype.toUpperCase,OM=String.prototype.toLowerCase,CM=RegExp.prototype.test,DM=Array.prototype.concat,Oo=Array.prototype.join,Kue=Array.prototype.slice,bM=Math.floor,TO=typeof BigInt=="function"?BigInt.prototype.valueOf:null,yO=Object.getOwnPropertySymbols,EO=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,uf=typeof Symbol=="function"&&typeof Symbol.iterator=="object",ym=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===uf||!0)?Symbol.toStringTag:null,BM=Object.prototype.propertyIsEnumerable,AM=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function RM(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||CM.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var n=e<0?-bM(-e):bM(e);if(n!==e){var i=String(n),a=OO.call(t,i.length+1);return gc.call(i,r,"$&_")+"."+gc.call(gc.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return gc.call(t,r,"$&_")}var gO=IM(),wM=gO.custom,PM=qM(wM)?wM:null,UM={__proto__:null,double:'"',single:"'"},$ue={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};jM.exports=function e(t,r,n,i){var a=r||{};if(vs(a,"quoteStyle")&&!vs(UM,a.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(vs(a,"maxStringLength")&&(typeof a.maxStringLength=="number"?a.maxStringLength<0&&a.maxStringLength!==1/0:a.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var o=vs(a,"customInspect")?a.customInspect:!0;if(typeof o!="boolean"&&o!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(vs(a,"indent")&&a.indent!==null&&a.indent!==" "&&!(parseInt(a.indent,10)===a.indent&&a.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(vs(a,"numericSeparator")&&typeof a.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var u=a.numericSeparator;if(typeof t=="undefined")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return MM(t,a);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var l=String(t);return u?RM(t,l):l}if(typeof t=="bigint"){var m=String(t)+"n";return u?RM(t,m):m}var h=typeof a.depth=="undefined"?5:a.depth;if(typeof n=="undefined"&&(n=0),n>=h&&h>0&&typeof t=="object")return IO(t)?"[Array]":"[Object]";var N=uce(a,n);if(typeof i=="undefined")i=[];else if(xM(i,t)>=0)return"[Circular]";function T(ar,vr,mr){if(vr&&(i=Kue.call(i),i.push(vr)),mr){var tr={depth:a.depth};return vs(a,"quoteStyle")&&(tr.quoteStyle=a.quoteStyle),e(ar,tr,n+1,i)}return e(ar,a,n+1,i)}if(typeof t=="function"&&!FM(t)){var O=Zue(t),R=bT(t,T);return"[Function"+(O?": "+O:" (anonymous)")+"]"+(R.length>0?" { "+Oo.call(R,", ")+" }":"")}if(qM(t)){var C=uf?gc.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):EO.call(t);return typeof t=="object"&&!uf?pm(C):C}if(ace(t)){for(var M="<"+OM.call(String(t.nodeName)),Y=t.attributes||[],ee=0;ee",M}if(IO(t)){if(t.length===0)return"[]";var ae=bT(t,T);return N&&!sce(ae)?"["+vO(ae,N)+"]":"[ "+Oo.call(ae,", ")+" ]"}if(Yue(t)){var Ne=bT(t,T);return!("cause"in Error.prototype)&&"cause"in t&&!BM.call(t,"cause")?"{ ["+String(t)+"] "+Oo.call(DM.call("[cause]: "+T(t.cause),Ne),", ")+" }":Ne.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+Oo.call(Ne,", ")+" }"}if(typeof t=="object"&&o){if(PM&&typeof t[PM]=="function"&&gO)return gO(t,{depth:h-n});if(o!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(ece(t)){var _e=[];return vM&&vM.call(t,function(ar,vr){_e.push(T(vr,t,!0)+" => "+T(ar,t))}),LM("Map",AT.call(t),_e,N)}if(nce(t)){var Le=[];return _M&&_M.call(t,function(ar){Le.push(T(ar,t))}),LM("Set",RT.call(t),Le,N)}if(tce(t))return NO("WeakMap");if(ice(t))return NO("WeakSet");if(rce(t))return NO("WeakRef");if(zue(t))return pm(T(Number(t)));if(Wue(t))return pm(T(TO.call(t)));if(Hue(t))return pm(que.call(t));if(Jue(t))return pm(T(String(t)));if(typeof window!="undefined"&&t===window)return"{ [object Window] }";if(typeof globalThis!="undefined"&&t===globalThis||typeof global!="undefined"&&t===global)return"{ [object globalThis] }";if(!Que(t)&&!FM(t)){var Ve=bT(t,T),ot=AM?AM(t)===Object.prototype:t instanceof Object||t.constructor===Object,Z=t instanceof Object?"":"null prototype",Se=!ot&&ym&&Object(t)===t&&ym in t?OO.call(Ic(t),8,-1):Z?"Object":"",Ft=ot||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",pr=Ft+(Se||Z?"["+Oo.call(DM.call([],Se||[],Z||[]),": ")+"] ":"");return Ve.length===0?pr+"{}":N?pr+"{"+vO(Ve,N)+"}":pr+"{ "+Oo.call(Ve,", ")+" }"}return String(t)};function kM(e,t,r){var n=r.quoteStyle||t,i=UM[n];return i+e+i}function Gue(e){return gc.call(String(e),/"/g,""")}function wl(e){return!ym||!(typeof e=="object"&&(ym in e||typeof e[ym]!="undefined"))}function IO(e){return Ic(e)==="[object Array]"&&wl(e)}function Que(e){return Ic(e)==="[object Date]"&&wl(e)}function FM(e){return Ic(e)==="[object RegExp]"&&wl(e)}function Yue(e){return Ic(e)==="[object Error]"&&wl(e)}function Jue(e){return Ic(e)==="[object String]"&&wl(e)}function zue(e){return Ic(e)==="[object Number]"&&wl(e)}function Hue(e){return Ic(e)==="[object Boolean]"&&wl(e)}function qM(e){if(uf)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!EO)return!1;try{return EO.call(e),!0}catch(t){}return!1}function Wue(e){if(!e||typeof e!="object"||!TO)return!1;try{return TO.call(e),!0}catch(t){}return!1}var Xue=Object.prototype.hasOwnProperty||function(e){return e in this};function vs(e,t){return Xue.call(e,t)}function Ic(e){return xue.call(e)}function Zue(e){if(e.name)return e.name;var t=jue.call(Mue.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function xM(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;rt.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return MM(OO.call(e,0,t.maxStringLength),t)+n}var i=$ue[t.quoteStyle||"single"];i.lastIndex=0;var a=gc.call(gc.call(e,i,"\\$1"),/[\x00-\x1f]/g,oce);return kM(a,"single",t)}function oce(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+Vue.call(t.toString(16))}function pm(e){return"Object("+e+")"}function NO(e){return e+" { ? }"}function LM(e,t,r,n){var i=n?vO(r,n):Oo.call(r,", ");return e+" ("+t+") {"+i+"}"}function sce(e){for(var t=0;t=0)return!1;return!0}function uce(e,t){var r;if(e.indent===" ")r=" ";else if(typeof e.indent=="number"&&e.indent>0)r=Oo.call(Array(e.indent+1)," ");else return null;return{base:r,prev:Oo.call(Array(t+1),r)}}function vO(e,t){if(e.length===0)return"";var r=` +`+t.prev+t.base;return r+Oo.call(e,","+r)+` +`+t.prev}function bT(e,t){var r=IO(e),n=[];if(r){n.length=e.length;for(var i=0;i{"use strict";d();p();f();var cce=Do(),lce=ke(),wT=function(e,t,r){for(var n=e,i;(i=n.next)!=null;n=i)if(i.key===t)return n.next=i.next,r||(i.next=e.next,e.next=i),i},dce=function(e,t){if(e){var r=wT(e,t);return r&&r.value}},fce=function(e,t,r){var n=wT(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}},pce=function(e,t){return e?!!wT(e,t):!1},mce=function(e,t){if(e)return wT(e,t,!0)};VM.exports=function(){var t,r={assert:function(n){if(!r.has(n))throw new lce("Side channel does not contain "+cce(n))},delete:function(n){var i=t&&t.next,a=mce(t,n);return a&&i&&i===a&&(t=void 0),!!a},get:function(n){return dce(t,n)},has:function(n){return pce(t,n)},set:function(n,i){t||(t={next:void 0}),fce(t,n,i)}};return r}});var GM=D((NYe,$M)=>{"use strict";d();p();f();$M.exports=Error});var YM=D((IYe,QM)=>{"use strict";d();p();f();QM.exports=EvalError});var Pl=D((OYe,JM)=>{"use strict";d();p();f();JM.exports=RangeError});var HM=D((RYe,zM)=>{"use strict";d();p();f();zM.exports=ReferenceError});var XM=D((LYe,WM)=>{"use strict";d();p();f();WM.exports=URIError});var DO=D((kYe,ZM)=>{"use strict";d();p();f();ZM.exports=Math.abs});var Nm=D((jYe,e1)=>{"use strict";d();p();f();e1.exports=Math.floor});var r1=D((GYe,t1)=>{"use strict";d();p();f();t1.exports=Math.max});var i1=D((zYe,n1)=>{"use strict";d();p();f();n1.exports=Math.min});var o1=D((ZYe,a1)=>{"use strict";d();p();f();a1.exports=Math.pow});var u1=D((nJe,s1)=>{"use strict";d();p();f();s1.exports=Math.round});var _s=D((sJe,c1)=>{"use strict";d();p();f();c1.exports=Number.isNaN||function(t){return t!==t}});var d1=D((dJe,l1)=>{"use strict";d();p();f();var hce=_s();l1.exports=function(t){return hce(t)||t===0?t:t<0?-1:1}});var bO=D((hJe,f1)=>{"use strict";d();p();f();f1.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var i=42;t[r]=i;for(var a in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var o=Object.getOwnPropertySymbols(t);if(o.length!==1||o[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var u=Object.getOwnPropertyDescriptor(t,r);if(u.value!==i||u.enumerable!==!0)return!1}return!0}});var vc=D((EJe,m1)=>{"use strict";d();p();f();var p1=typeof Symbol!="undefined"&&Symbol,yce=bO();m1.exports=function(){return typeof p1!="function"||typeof Symbol!="function"||typeof p1("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:yce()}});var Wt=D((_Je,g1)=>{"use strict";d();p();f();var Bt,Nce=rT(),Tce=GM(),Ece=YM(),gce=Pl(),Ice=HM(),ff=ys(),df=ke(),vce=XM(),_ce=DO(),Sce=Nm(),Oce=r1(),Dce=i1(),bce=o1(),Ace=u1(),Rce=d1(),T1=Function,AO=function(e){try{return T1('"use strict"; return ('+e+").constructor;")()}catch(t){}},Tm=_o(),wce=rf(),RO=function(){throw new df},Pce=Tm?function(){try{return arguments.callee,RO}catch(e){try{return Tm(arguments,"callee").get}catch(t){return RO}}}():RO,cf=vc()(),Ln=XS(),Fce=HS(),Lce=zS(),E1=iT(),Em=nT(),lf={},Cce=typeof Uint8Array=="undefined"||!Ln?Bt:Ln(Uint8Array),Fl={__proto__:null,"%AggregateError%":typeof AggregateError=="undefined"?Bt:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?Bt:ArrayBuffer,"%ArrayIteratorPrototype%":cf&&Ln?Ln([][Symbol.iterator]()):Bt,"%AsyncFromSyncIteratorPrototype%":Bt,"%AsyncFunction%":lf,"%AsyncGenerator%":lf,"%AsyncGeneratorFunction%":lf,"%AsyncIteratorPrototype%":lf,"%Atomics%":typeof Atomics=="undefined"?Bt:Atomics,"%BigInt%":typeof BigInt=="undefined"?Bt:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?Bt:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?Bt:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?Bt:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Tce,"%eval%":eval,"%EvalError%":Ece,"%Float16Array%":typeof Float16Array=="undefined"?Bt:Float16Array,"%Float32Array%":typeof Float32Array=="undefined"?Bt:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?Bt:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?Bt:FinalizationRegistry,"%Function%":T1,"%GeneratorFunction%":lf,"%Int8Array%":typeof Int8Array=="undefined"?Bt:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?Bt:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?Bt:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":cf&&Ln?Ln(Ln([][Symbol.iterator]())):Bt,"%JSON%":typeof JSON=="object"?JSON:Bt,"%Map%":typeof Map=="undefined"?Bt:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!cf||!Ln?Bt:Ln(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Nce,"%Object.getOwnPropertyDescriptor%":Tm,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?Bt:Promise,"%Proxy%":typeof Proxy=="undefined"?Bt:Proxy,"%RangeError%":gce,"%ReferenceError%":Ice,"%Reflect%":typeof Reflect=="undefined"?Bt:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?Bt:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!cf||!Ln?Bt:Ln(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?Bt:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":cf&&Ln?Ln(""[Symbol.iterator]()):Bt,"%Symbol%":cf?Symbol:Bt,"%SyntaxError%":ff,"%ThrowTypeError%":Pce,"%TypedArray%":Cce,"%TypeError%":df,"%Uint8Array%":typeof Uint8Array=="undefined"?Bt:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?Bt:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?Bt:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?Bt:Uint32Array,"%URIError%":vce,"%WeakMap%":typeof WeakMap=="undefined"?Bt:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?Bt:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?Bt:WeakSet,"%Function.prototype.call%":Em,"%Function.prototype.apply%":E1,"%Object.defineProperty%":wce,"%Object.getPrototypeOf%":Fce,"%Math.abs%":_ce,"%Math.floor%":Sce,"%Math.max%":Oce,"%Math.min%":Dce,"%Math.pow%":bce,"%Math.round%":Ace,"%Math.sign%":Rce,"%Reflect.getPrototypeOf%":Lce};if(Ln)try{null.error}catch(e){h1=Ln(Ln(e)),Fl["%Error.prototype%"]=h1}var h1,Bce=function e(t){var r;if(t==="%AsyncFunction%")r=AO("async function () {}");else if(t==="%GeneratorFunction%")r=AO("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=AO("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var i=e("%AsyncGenerator%");i&&Ln&&(r=Ln(i.prototype))}return Fl[t]=r,r},y1={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},gm=tf(),PT=Ns(),Uce=gm.call(Em,Array.prototype.concat),kce=gm.call(E1,Array.prototype.splice),N1=gm.call(Em,String.prototype.replace),FT=gm.call(Em,String.prototype.slice),qce=gm.call(Em,RegExp.prototype.exec),xce=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Mce=/\\(\\)?/g,jce=function(t){var r=FT(t,0,1),n=FT(t,-1);if(r==="%"&&n!=="%")throw new ff("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new ff("invalid intrinsic syntax, expected opening `%`");var i=[];return N1(t,xce,function(a,o,u,l){i[i.length]=u?N1(l,Mce,"$1"):o||a}),i},Vce=function(t,r){var n=t,i;if(PT(y1,n)&&(i=y1[n],n="%"+i[0]+"%"),PT(Fl,n)){var a=Fl[n];if(a===lf&&(a=Bce(n)),typeof a=="undefined"&&!r)throw new df("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:i,name:n,value:a}}throw new ff("intrinsic "+t+" does not exist!")};g1.exports=function(t,r){if(typeof t!="string"||t.length===0)throw new df("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new df('"allowMissing" argument must be a boolean');if(qce(/^%?[^%]*%?$/,t)===null)throw new ff("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=jce(t),i=n.length>0?n[0]:"",a=Vce("%"+i+"%",r),o=a.name,u=a.value,l=!1,m=a.alias;m&&(i=m[0],kce(n,Uce([0,1],m)));for(var h=1,N=!0;h=n.length){var C=Tm(u,T);N=!!C,N&&"get"in C&&!("originalValue"in C.get)?u=C.get:u=u[T]}else N=PT(u,T),u=u[T];N&&!l&&(Fl[o]=u)}}return u}});var mn=D((bJe,_1)=>{"use strict";d();p();f();var I1=Wt(),v1=om(),Kce=v1([I1("%String.prototype.indexOf%")]);_1.exports=function(t,r){var n=I1(t,!!r);return typeof n=="function"&&Kce(t,".prototype.")>-1?v1([n]):n}});var wO=D((PJe,O1)=>{"use strict";d();p();f();var $ce=Wt(),Im=mn(),Gce=Do(),Qce=ke(),S1=$ce("%Map%",!0),Yce=Im("Map.prototype.get",!0),Jce=Im("Map.prototype.set",!0),zce=Im("Map.prototype.has",!0),Hce=Im("Map.prototype.delete",!0),Wce=Im("Map.prototype.size",!0);O1.exports=!!S1&&function(){var t,r={assert:function(n){if(!r.has(n))throw new Qce("Side channel does not contain "+Gce(n))},delete:function(n){if(t){var i=Hce(t,n);return Wce(t)===0&&(t=void 0),i}return!1},get:function(n){if(t)return Yce(t,n)},has:function(n){return t?zce(t,n):!1},set:function(n,i){t||(t=new S1),Jce(t,n,i)}};return r}});var b1=D((BJe,D1)=>{"use strict";d();p();f();var Xce=Wt(),CT=mn(),Zce=Do(),LT=wO(),ele=ke(),pf=Xce("%WeakMap%",!0),tle=CT("WeakMap.prototype.get",!0),rle=CT("WeakMap.prototype.set",!0),nle=CT("WeakMap.prototype.has",!0),ile=CT("WeakMap.prototype.delete",!0);D1.exports=pf?function(){var t,r,n={assert:function(i){if(!n.has(i))throw new ele("Side channel does not contain "+Zce(i))},delete:function(i){if(pf&&i&&(typeof i=="object"||typeof i=="function")){if(t)return ile(t,i)}else if(LT&&r)return r.delete(i);return!1},get:function(i){return pf&&i&&(typeof i=="object"||typeof i=="function")&&t?tle(t,i):r&&r.get(i)},has:function(i){return pf&&i&&(typeof i=="object"||typeof i=="function")&&t?nle(t,i):!!r&&r.has(i)},set:function(i,a){pf&&i&&(typeof i=="object"||typeof i=="function")?(t||(t=new pf),rle(t,i,a)):LT&&(r||(r=LT()),r.set(i,a))}};return n}:LT});var R1=D((xJe,A1)=>{"use strict";d();p();f();var ale=ke(),ole=Do(),sle=KM(),ule=wO(),cle=b1(),lle=cle||ule||sle;A1.exports=function(){var t,r={assert:function(n){if(!r.has(n))throw new ale("Side channel does not contain "+ole(n))},delete:function(n){return!!t&&t.delete(n)},get:function(n){return t&&t.get(n)},has:function(n){return!!t&&t.has(n)},set:function(n,i){t||(t=lle()),t.set(n,i)}};return r}});var nn=D((KJe,w1)=>{"use strict";d();p();f();var dle=Ns(),vm=R1()(),Ss=ke(),PO={assert:function(e,t){if(!e||typeof e!="object"&&typeof e!="function")throw new Ss("`O` is not an object");if(typeof t!="string")throw new Ss("`slot` must be a string");if(vm.assert(e),!PO.has(e,t))throw new Ss("`"+t+"` is not present on `O`")},get:function(e,t){if(!e||typeof e!="object"&&typeof e!="function")throw new Ss("`O` is not an object");if(typeof t!="string")throw new Ss("`slot` must be a string");var r=vm.get(e);return r&&r["$"+t]},has:function(e,t){if(!e||typeof e!="object"&&typeof e!="function")throw new Ss("`O` is not an object");if(typeof t!="string")throw new Ss("`slot` must be a string");var r=vm.get(e);return!!r&&dle(r,"$"+t)},set:function(e,t,r){if(!e||typeof e!="object"&&typeof e!="function")throw new Ss("`O` is not an object");if(typeof t!="string")throw new Ss("`slot` must be a string");var n=vm.get(e);n||(n={},vm.set(e,n)),n["$"+t]=r}};Object.freeze&&Object.freeze(PO);w1.exports=PO});var FO=D((YJe,P1)=>{"use strict";d();p();f();P1.exports=JS()});var _m=D((WJe,F1)=>{"use strict";d();p();f();var fle=bO();F1.exports=function(){return fle()&&!!Symbol.toStringTag}});var UT=D((tze,C1)=>{"use strict";d();p();f();var ple=Wt(),L1=ple("%Object.defineProperty%",!0),mle=_m()(),hle=Ns(),yle=ke(),BT=mle?Symbol.toStringTag:null;C1.exports=function(t,r){var n=arguments.length>2&&!!arguments[2]&&arguments[2].force,i=arguments.length>2&&!!arguments[2]&&arguments[2].nonConfigurable;if(typeof n!="undefined"&&typeof n!="boolean"||typeof i!="undefined"&&typeof i!="boolean")throw new yle("if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans");BT&&(n||!hle(t,BT))&&(L1?L1(t,BT,{configurable:!i,enumerable:!1,value:r,writable:!1}):t[BT]=r)}});var Sm=D((aze,U1)=>{"use strict";d();p();f();var Nle=Wt(),B1=Nle("%Array%"),Tle=!B1.isArray&&mn()("Object.prototype.toString");U1.exports=B1.isArray||function(t){return Tle(t)==="[object Array]"}});var mf=D((cze,k1)=>{"use strict";d();p();f();k1.exports=Sm()});var kT=D((pze,q1)=>{"use strict";d();p();f();q1.exports=function(t,r){for(var n=0;n{"use strict";d();p();f();var LO={__proto__:null,foo:{}},Ele={__proto__:LO}.foo===LO.foo&&!(LO instanceof Object);x1.exports=function(){return Ele}});var _c=D((Ize,K1)=>{"use strict";d();p();f();var gle=Wt(),j1=gle("%Object.create%",!0),V1=ke(),Ile=ys(),vle=Yr(),_le=mf(),Sle=kT(),Ole=nn(),Dle=M1()();K1.exports=function(t){if(t!==null&&!vle(t))throw new V1("Assertion failed: `proto` must be null or an object");var r=arguments.length<2?[]:arguments[1];if(!_le(r))throw new V1("Assertion failed: `additionalInternalSlotsList` must be an Array");var n;if(Dle)n={__proto__:t};else if(j1)n=j1(t);else{if(t===null)throw new Ile("native Object.create support is required to create null objects");var i=function(){};i.prototype=t,n=new i}return r.length>0&&Sle(r,function(a){Ole.set(n,a,void 0)}),n}});var J1=D((Oze,Y1)=>{"use strict";d();p();f();var ble=Wt(),$1=cT(),Ale=Ol()(),G1=_o(),Q1=ke(),Rle=ble("%Math.floor%");Y1.exports=function(t,r){if(typeof t!="function")throw new Q1("`fn` is not a function");if(typeof r!="number"||r<0||r>4294967295||Rle(r)!==r)throw new Q1("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],i=!0,a=!0;if("length"in t&&G1){var o=G1(t,"length");o&&!o.configurable&&(i=!1),o&&!o.writable&&(a=!1)}return(i||a||!n)&&(Ale?$1(t,"length",r,!0,!0):$1(t,"length",r)),t}});var H1=D((Rze,z1)=>{"use strict";d();p();f();var wle=tf(),Ple=iT(),Fle=QS();z1.exports=function(){return Fle(wle,Ple,arguments)}});var Kn=D((Lze,qT)=>{"use strict";d();p();f();var Lle=J1(),W1=rf(),Cle=om(),X1=H1();qT.exports=function(t){var r=Cle(arguments),n=t.length-(arguments.length-1);return Lle(r,1+(n>0?n:0),!0)};W1?W1(qT.exports,"apply",{value:X1}):qT.exports.apply=X1});var xT=D((kze,Z1)=>{"use strict";d();p();f();var Ble=ke();Z1.exports=function(t){if(t==null)throw new Ble(arguments.length>0&&arguments[1]||"Cannot call method on "+t);return t}});var CO=D((jze,tj)=>{"use strict";d();p();f();var Ule=xT(),ej=mn(),kle=ej("Object.prototype.propertyIsEnumerable"),qle=ej("Array.prototype.push");tj.exports=function(t){var r=Ule(t),n=[];for(var i in r)kle(r,i)&&qle(n,[i,r[i]]);return n}});var BO=D((Gze,rj)=>{"use strict";d();p();f();var xle=CO();rj.exports=function(){return typeof Object.entries=="function"?Object.entries:xle}});var ij=D((zze,nj)=>{"use strict";d();p();f();var Mle=BO(),jle=pn();nj.exports=function(){var t=Mle();return jle(Object,{entries:t},{entries:function(){return Object.entries!==t}}),t}});var MT=D((Zze,sj)=>{"use strict";d();p();f();var Vle=pn(),Kle=Kn(),$le=CO(),aj=BO(),Gle=ij(),oj=Kle(aj(),Object);Vle(oj,{getPolyfill:aj,implementation:$le,shim:Gle});sj.exports=oj});var Om=D((nHe,lj)=>{"use strict";d();p();f();var cj=Function.prototype.toString,hf=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,kO,jT;if(typeof hf=="function"&&typeof Object.defineProperty=="function")try{kO=Object.defineProperty({},"length",{get:function(){throw jT}}),jT={},hf(function(){throw 42},null,kO)}catch(e){e!==jT&&(hf=null)}else hf=null;var Qle=/^\s*class\b/,qO=function(t){try{var r=cj.call(t);return Qle.test(r)}catch(n){return!1}},UO=function(t){try{return qO(t)?!1:(cj.call(t),!0)}catch(r){return!1}},VT=Object.prototype.toString,Yle="[object Object]",Jle="[object Function]",zle="[object GeneratorFunction]",Hle="[object HTMLAllCollection]",Wle="[object HTML document.all class]",Xle="[object HTMLCollection]",Zle=typeof Symbol=="function"&&!!Symbol.toStringTag,ede=!(0 in[,]),xO=function(){return!1};typeof document=="object"&&(uj=document.all,VT.call(uj)===VT.call(document.all)&&(xO=function(t){if((ede||!t)&&(typeof t=="undefined"||typeof t=="object"))try{var r=VT.call(t);return(r===Hle||r===Wle||r===Xle||r===Yle)&&t("")==null}catch(n){}return!1}));var uj;lj.exports=hf?function(t){if(xO(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;try{hf(t,null,kO)}catch(r){if(r!==jT)return!1}return!qO(t)&&UO(t)}:function(t){if(xO(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;if(Zle)return UO(t);if(qO(t))return!1;var r=VT.call(t);return r!==Jle&&r!==zle&&!/^\[object HTML/.test(r)?!1:UO(t)}});var KT=D((sHe,fj)=>{"use strict";d();p();f();var tde=Om(),rde=Object.prototype.toString,dj=Object.prototype.hasOwnProperty,nde=function(t,r,n){for(var i=0,a=t.length;i=3&&(i=n),ode(t)?nde(t,r,i):typeof t=="string"?ide(t,r,i):ade(t,r,i)}});var $T=D((dHe,pj)=>{"use strict";d();p();f();var sde=ke(),Dm=Ns(),ude={__proto__:null,"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};pj.exports=function(t){if(!t||typeof t!="object")return!1;for(var r in t)if(Dm(t,r)&&!ude[r])return!1;var n=Dm(t,"[[Value]]")||Dm(t,"[[Writable]]"),i=Dm(t,"[[Get]]")||Dm(t,"[[Set]]");if(n&&i)throw new sde("Property Descriptors may not be both accessor and data descriptors");return!0}});var Nj=D((hHe,yj)=>{"use strict";d();p();f();var cde=Ol(),mj=rf(),hj=cde.hasArrayLengthDefineBug(),lde=hj&&Sm(),dde=mn(),fde=dde("Object.prototype.propertyIsEnumerable");yj.exports=function(t,r,n,i,a,o){if(!mj){if(!t(o)||!o["[[Configurable]]"]||!o["[[Writable]]"]||a in i&&fde(i,a)!==!!o["[[Enumerable]]"])return!1;var u=o["[[Value]]"];return i[a]=u,r(i[a],u)}return hj&&a==="length"&&"[[Value]]"in o&&lde(i)&&i.length!==o["[[Value]]"]?(i.length=o["[[Value]]"],i.length===o["[[Value]]"]):(mj(i,a,n(o)),!0)}});var Ej=D((EHe,Tj)=>{"use strict";d();p();f();Tj.exports=function(t){if(typeof t=="undefined")return t;var r={};return"[[Value]]"in t&&(r.value=t["[[Value]]"]),"[[Writable]]"in t&&(r.writable=!!t["[[Writable]]"]),"[[Get]]"in t&&(r.get=t["[[Get]]"]),"[[Set]]"in t&&(r.set=t["[[Set]]"]),"[[Enumerable]]"in t&&(r.enumerable=!!t["[[Enumerable]]"]),"[[Configurable]]"in t&&(r.configurable=!!t["[[Configurable]]"]),r}});var Ij=D((_He,gj)=>{"use strict";d();p();f();var pde=ke(),mde=$T(),hde=Ej();gj.exports=function(t){if(typeof t!="undefined"&&!mde(t))throw new pde("Assertion failed: `Desc` must be a Property Descriptor");return hde(t)}});var Sj=D((bHe,_j)=>{"use strict";d();p();f();var yde=ke(),vj=Ns(),Nde=$T();_j.exports=function(t){if(typeof t=="undefined")return!1;if(!Nde(t))throw new yde("Assertion failed: `Desc` must be a Property Descriptor");return!(!vj(t,"[[Value]]")&&!vj(t,"[[Writable]]"))}});var Ll=D((PHe,Oj)=>{"use strict";d();p();f();Oj.exports=function(t){return typeof t=="string"||typeof t=="symbol"}});var MO=D((BHe,bj)=>{"use strict";d();p();f();var Dj=_s();bj.exports=function(t,r){return t===r?t===0?1/t===1/r:!0:Dj(t)&&Dj(r)}});var ua=D((xHe,Aj)=>{"use strict";d();p();f();Aj.exports=Om()});var yf=D((KHe,Rj)=>{"use strict";d();p();f();Rj.exports=function(t){return!!t}});var Fj=D((YHe,Pj)=>{"use strict";d();p();f();var bo=Ns(),GT=ke(),Tde=Yr(),wj=ua(),jO=yf();Pj.exports=function(t){if(!Tde(t))throw new GT("ToPropertyDescriptor requires an object");var r={};if(bo(t,"enumerable")&&(r["[[Enumerable]]"]=jO(t.enumerable)),bo(t,"configurable")&&(r["[[Configurable]]"]=jO(t.configurable)),bo(t,"value")&&(r["[[Value]]"]=t.value),bo(t,"writable")&&(r["[[Writable]]"]=jO(t.writable)),bo(t,"get")){var n=t.get;if(typeof n!="undefined"&&!wj(n))throw new GT("getter must be a function");r["[[Get]]"]=n}if(bo(t,"set")){var i=t.set;if(typeof i!="undefined"&&!wj(i))throw new GT("setter must be a function");r["[[Set]]"]=i}if((bo(r,"[[Get]]")||bo(r,"[[Set]]"))&&(bo(r,"[[Value]]")||bo(r,"[[Writable]]")))throw new GT("Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");return r}});var Nf=D((WHe,Cj)=>{"use strict";d();p();f();var VO=ke(),Ede=Yr(),Lj=$T(),gde=Nj(),Ide=Ij(),vde=Sj(),_de=Ll(),Sde=MO(),Ode=Fj();Cj.exports=function(t,r,n){if(!Ede(t))throw new VO("Assertion failed: Type(O) is not Object");if(!_de(r))throw new VO("Assertion failed: P is not a Property Key");var i=Lj(n)?n:Ode(n);if(!Lj(i))throw new VO("Assertion failed: Desc is not a valid Property Descriptor");return gde(vde,Sde,Ide,t,r,i)}});var Uj=D((t3e,Bj)=>{"use strict";d();p();f();var Dde=Yr();Bj.exports=function(t){if(t===null)return"Null";if(typeof t=="undefined")return"Undefined";if(Dde(t))return"Object";if(typeof t=="number")return"Number";if(typeof t=="boolean")return"Boolean";if(typeof t=="string")return"String"}});var ca=D((a3e,kj)=>{"use strict";d();p();f();var bde=Uj();kj.exports=function(t){return typeof t=="symbol"?"Symbol":typeof t=="bigint"?"BigInt":bde(t)}});var YT=D(QT=>{"use strict";d();p();f();var Ade=vc()(),Rde=nn(),wde=MT(),Pde=KT(),Fde=Wt(),Lde=Nf(),Cde=_c(),qj=ca(),xj=Fde("%Object.create%",!0),Bde=!({__proto__:null}instanceof Object);QT.emptyObject=function(){return xj?xj(null):Bde?{__proto__:null}:{}};QT.emulateES6construct=function(e,t,r,n){if(qj(e)!=="Object")throw new TypeError("Constructor requires `new`: "+t.name);var i=t.prototype;qj(i)!=="Object"&&(i=r);var a=Cde(i);return Pde(wde(n),function(o){var u=o[0],l=o[1];Rde.set(a,u,l)}),a};var bm=Ade&&typeof Symbol.iterator=="symbol"?Symbol.iterator:"_es6-shim iterator_";typeof[]["@@iterator"]=="function"&&(bm="@@iterator");QT.addIterator=function(e,t){var r=t||function(){return this};Lde(e,bm,{"[[Configurable]]":!0,"[[Enumerable]]":!1,"[[Value]]":r,"[[Writable]]":!0}),!e[bm]&&typeof bm=="symbol"&&(e[bm]=r)}});var Vj=D((p3e,jj)=>{"use strict";d();p();f();var Ude=pn(),kde=UT(),JT=nn(),qde=Wt(),xde=_c(),Mde=YT().addIterator,Am=function(t){JT.set(this,"[[isSetIterator]]",!0),JT.set(this,"[[it]]",t)},Mj=qde("%IteratorPrototype%",!0);Mj&&(Am.prototype=xde(Mj));Mde(Am.prototype);Ude(Am.prototype,{next:function(){if(!JT.has(this,"[[isSetIterator]]"))throw new TypeError("Not a SetIterator");return JT.get(this,"[[it]]").next()}});kde(Am.prototype,"Set Iterator");jj.exports=Am});var Rm=D((N3e,Gj)=>{"use strict";d();p();f();var Kj=Wt(),$j=Kn(),jde=$j(Kj("String.prototype.indexOf"));Gj.exports=function(t,r){var n=Kj(t,!!r);return typeof n=="function"&&jde(t,".prototype.")>-1?$j(n):n}});var $i=D((I3e,Qj)=>{"use strict";d();p();f();var Vde=Wt(),Kde=mn(),$de=ke(),Gde=mf(),Qde=Vde("%Reflect.apply%",!0)||Kde("Function.prototype.apply");Qj.exports=function(t,r){var n=arguments.length>2?arguments[2]:[];if(!Gde(n))throw new $de("Assertion failed: optional `argumentsList`, if provided, must be a List");return Qde(t,r,n)}});var KO=D((O3e,Yj)=>{"use strict";d();p();f();Yj.exports=function(t){return typeof t=="number"&&t>=55296&&t<=56319}});var $O=D((R3e,Jj)=>{"use strict";d();p();f();Jj.exports=function(t){return typeof t=="number"&&t>=56320&&t<=57343}});var Wj=D((L3e,Hj)=>{"use strict";d();p();f();var Yde=Wt(),Jde=ke(),zj=Yde("%String.fromCharCode%"),zde=KO(),Hde=$O();Hj.exports=function(t,r){if(!zde(t)||!Hde(r))throw new Jde("Assertion failed: `lead` must be a leading surrogate char code, and `trail` must be a trailing surrogate char code");return zj(t)+zj(r)}});var nV=D((k3e,rV)=>{"use strict";d();p();f();var Xj=ke(),tV=mn(),Wde=KO(),Zj=$O(),Xde=Wj(),Zde=tV("String.prototype.charAt"),eV=tV("String.prototype.charCodeAt");rV.exports=function(t,r){if(typeof t!="string")throw new Xj("Assertion failed: `string` must be a String");var n=t.length;if(r<0||r>=n)throw new Xj("Assertion failed: `position` must be >= 0, and < the length of `string`");var i=eV(t,r),a=Zde(t,r),o=Wde(i),u=Zj(i);if(!o&&!u)return{"[[CodePoint]]":a,"[[CodeUnitCount]]":1,"[[IsUnpairedSurrogate]]":!1};if(u||r+1===n)return{"[[CodePoint]]":a,"[[CodeUnitCount]]":1,"[[IsUnpairedSurrogate]]":!0};var l=eV(t,r+1);return Zj(l)?{"[[CodePoint]]":Xde(i,l),"[[CodeUnitCount]]":2,"[[IsUnpairedSurrogate]]":!1}:{"[[CodePoint]]":a,"[[CodeUnitCount]]":1,"[[IsUnpairedSurrogate]]":!0}}});var zT=D((j3e,iV)=>{"use strict";d();p();f();var efe=_s();iV.exports=function(t){return(typeof t=="number"||typeof t=="bigint")&&!efe(t)&&t!==1/0&&t!==-1/0}});var oV=D((G3e,aV)=>{"use strict";d();p();f();var tfe=DO(),rfe=Nm(),nfe=_s(),ife=zT();aV.exports=function(t){if(typeof t!="number"||nfe(t)||!ife(t))return!1;var r=tfe(t);return rfe(r)===r}});var uV=D((z3e,sV)=>{"use strict";d();p();f();sV.exports=Number.MAX_SAFE_INTEGER||9007199254740991});var lV=D((Z3e,cV)=>{"use strict";d();p();f();var afe=nV(),GO=ke(),ofe=oV(),sfe=uV();cV.exports=function(t,r,n){if(typeof t!="string")throw new GO("Assertion failed: `S` must be a String");if(!ofe(r)||r<0||r>sfe)throw new GO("Assertion failed: `length` must be an integer >= 0 and <= 2**53");if(typeof n!="boolean")throw new GO("Assertion failed: `unicode` must be a Boolean");if(!n)return r+1;var i=t.length;if(r+1>=i)return r+1;var a=afe(t,r);return r+a["[[CodeUnitCount]]"]}});var HT=D((nWe,dV)=>{"use strict";d();p();f();var ufe=ke();dV.exports=function(t,r){if(typeof r!="boolean")throw new ufe("Assertion failed: Type(done) is not Boolean");return{value:t,done:r}}});var Ao=D((sWe,pV)=>{"use strict";d();p();f();var fV=ke(),cfe=Do(),lfe=Ll(),dfe=Yr();pV.exports=function(t,r){if(!dfe(t))throw new fV("Assertion failed: Type(O) is not Object");if(!lfe(r))throw new fV("Assertion failed: P is not a Property Key, got "+cfe(r));return t[r]}});var WT=D((dWe,mV)=>{"use strict";d();p();f();var ffe=ke(),pfe=Yr(),mfe=Ao(),hfe=yf();mV.exports=function(t){if(!pfe(t))throw new ffe("Assertion failed: Type(iterResult) is not Object");return hfe(mfe(t,"done"))}});var yV=D((hWe,hV)=>{"use strict";d();p();f();var yfe=ke(),Nfe=Yr(),Tfe=Ao();hV.exports=function(t){if(!Nfe(t))throw new yfe("Assertion failed: Type(iterResult) is not Object");return Tfe(t,"value")}});var gV=D((EWe,EV)=>{"use strict";d();p();f();var Efe=Wt(),gfe=Kn(),Ife=ys(),NV=Efe("%Promise.resolve%",!0),TV=NV&&gfe(NV);EV.exports=function(t,r){if(!TV)throw new Ife("This environment does not support Promises.");return TV(t,r)}});var _V=D((_We,vV)=>{"use strict";d();p();f();var vfe=Wt(),IV=ys(),_fe=ke(),Sfe=Yr(),QO=vfe("%Promise%",!0),Ofe=mn(),Dfe=HT(),bfe=WT(),Afe=yV(),Rfe=gV(),wfe=Ofe("Promise.prototype.then",!0);vV.exports=function(t){if(!Sfe(t))throw new _fe("Assertion failed: Type(O) is not Object");if(arguments.length>1)throw new IV("although AsyncFromSyncIteratorContinuation should take a second argument, it is not used in this implementation");if(!QO)throw new IV("This environment does not support Promises.");return new QO(function(r){var n=bfe(t),i=Afe(t),a=Rfe(QO,i),o=function(u){return Dfe(u,n)};r(wfe(a,o))})}});var OV=D((bWe,SV)=>{"use strict";d();p();f();var Pfe=ke(),Ffe=Do(),Lfe=Ll();SV.exports=function(t,r){if(!Lfe(r))throw new Pfe("Assertion failed: P is not a Property Key, got "+Ffe(r));return t[r]}});var XT=D((PWe,AV)=>{"use strict";d();p();f();var DV=ke(),Cfe=OV(),Bfe=ua(),Ufe=Ll(),bV=Do();AV.exports=function(t,r){if(!Ufe(r))throw new DV("Assertion failed: P is not a Property Key");var n=Cfe(t,r);if(n!=null){if(!Bfe(n))throw new DV(bV(r)+" is not a function: "+bV(n));return n}}});var Os=D((BWe,RV)=>{"use strict";d();p();f();var YO=Ns();RV.exports=function(t){return!!t&&typeof t=="object"&&YO(t,"[[Iterator]]")&&YO(t,"[[NextMethod]]")&&YO(t,"[[Done]]")&&typeof t["[[Done]]"]=="boolean"}});var ZT=D((xWe,FV)=>{"use strict";d();p();f();var wV=ke(),kfe=Yr(),PV=$i(),qfe=Os();FV.exports=function(t){if(!qfe(t))throw new wV("Assertion failed: `iteratorRecord` must be an Iterator Record");var r;if(arguments.length<2?r=PV(t["[[NextMethod]]"],t["[[Iterator]]"]):r=PV(t["[[NextMethod]]"],t["[[Iterator]]"],[arguments[1]]),!kfe(r))throw new wV("iterator next must return an object");return r}});var qV=D((KWe,kV)=>{"use strict";d();p();f();var UV=Wt(),JO=ys(),HO=ke(),LV=Yr(),Tf=UV("%Promise%",!0),zO=_V(),Sc=$i(),xfe=HT(),Mfe=Ao(),CV=XT(),BV=ZT(),jfe=_c(),Vfe=Os(),Cl=nn(),Kfe=UV("%AsyncFromSyncIteratorPrototype%",!0)||{next:function(t){if(!Tf)throw new JO("This environment does not support Promises.");var r=this;Cl.assert(r,"[[SyncIteratorRecord]]");var n=arguments.length;return new Tf(function(i){var a=Cl.get(r,"[[SyncIteratorRecord]]"),o;n>0?o=BV(a,t):o=BV(a),i(zO(o))})},return:function(){if(!Tf)throw new JO("This environment does not support Promises.");var e=this;Cl.assert(e,"[[SyncIteratorRecord]]");var t=arguments.length>0,r=t?arguments[0]:void 0;return new Tf(function(n,i){var a=Cl.get(e,"[[SyncIteratorRecord]]")["[[Iterator]]"],o=CV(a,"return");if(typeof o=="undefined"){var u=xfe(r,!0);Sc(n,void 0,[u]);return}var l;if(t?l=Sc(o,a,[r]):l=Sc(o,a),!LV(l)){Sc(i,void 0,[new HO("Iterator `return` method returned a non-object value.")]);return}n(zO(l))})},throw:function(){if(!Tf)throw new JO("This environment does not support Promises.");var e=this;Cl.assert(e,"[[SyncIteratorRecord]]");var t=arguments.length>0,r=t?arguments[0]:void 0;return new Tf(function(n,i){var a=Cl.get(e,"[[SyncIteratorRecord]]")["[[Iterator]]"],o=CV(a,"throw");if(typeof o=="undefined"){Sc(i,void 0,[r]);return}var u;if(t?u=Sc(o,a,[r]):u=Sc(o,a),!LV(u)){Sc(i,void 0,[new HO("Iterator `throw` method returned a non-object value.")]);return}n(zO(u))})}};kV.exports=function(t){if(!Vfe(t))throw new HO("Assertion failed: `syncIteratorRecord` must be an Iterator Record");var r=jfe(Kfe);Cl.set(r,"[[SyncIteratorRecord]]",t);var n=Mfe(r,"next");return{"[[Iterator]]":r,"[[NextMethod]]":n,"[[Done]]":!1}}});var wm=D((YWe,MV)=>{"use strict";d();p();f();var xV=ke(),$fe=Yr(),Gfe=$i(),Qfe=Ao(),Yfe=ua();MV.exports=function(t,r){if(!Yfe(r))throw new xV("method must be a function");var n=Gfe(r,t);if(!$fe(n))throw new xV("iterator must return an object");var i=Qfe(n,"next");return{"[[Iterator]]":n,"[[NextMethod]]":i,"[[Done]]":!1}}});var KV=D((WWe,VV)=>{"use strict";d();p();f();var jV=mn(),Jfe=jV("String.prototype.valueOf"),zfe=function(t){try{return Jfe(t),!0}catch(r){return!1}},Hfe=jV("Object.prototype.toString"),Wfe="[object String]",Xfe=_m()();VV.exports=function(t){return typeof t=="string"?!0:!t||typeof t!="object"?!1:Xfe?zfe(t):Hfe(t)===Wfe}});var QV=D((t6e,GV)=>{"use strict";d();p();f();var Zfe=vc()(),$V=Wt(),epe=mn(),tpe=KV(),rpe=$V("%Symbol.iterator%",!0),npe=epe("String.prototype.slice"),ipe=$V("%String%"),ape=Sm();GV.exports=function(t,r){var n;return Zfe?n=t.GetMethod(r,rpe):ape(r)?n=function(){var i=-1,a=this;return{next:function(){return i+=1,{done:i>=a.length,value:a[i]}}}}:tpe(r)&&(n=function(){var i=0;return{next:function(){var a=t.AdvanceStringIndex(ipe(r),i,!0),o=npe(r,i,a);i=a;var u=a>r.length;return{done:u,value:u?void 0:o}}}}),n}});var XO=D((a6e,HV)=>{"use strict";d();p();f();var ope=Wt(),WO=ke(),YV=ope("%Symbol.asyncIterator%",!0),spe=Do(),upe=vc()(),cpe=lV(),lpe=qV(),JV=wm(),zV=XT(),dpe={AdvanceStringIndex:cpe,GetMethod:zV},fpe=QV();HV.exports=function(t,r){if(r!=="SYNC"&&r!=="ASYNC")throw new WO("Assertion failed: `kind` must be one of 'sync' or 'async', got "+spe(r));var n;if(r==="ASYNC"&&upe&&YV&&(n=zV(t,YV)),typeof n=="undefined"){var i=fpe(dpe,t);if(r==="ASYNC"){if(typeof i=="undefined")throw new WO("iterator method is `undefined`");var a=JV(t,i);return lpe(a)}n=i}if(typeof n=="undefined")throw new WO("iterator method is `undefined`");return JV(t,n)}});var ZO=D((c6e,XV)=>{"use strict";d();p();f();var WV=ys(),Oc=nn(),Pm=function e(t,r){if(!(this instanceof e))return new e(t,r);if(t!=="normal"&&t!=="break"&&t!=="continue"&&t!=="return"&&t!=="throw")throw new WV('Assertion failed: `type` must be one of "normal", "break", "continue", "return", or "throw"');Oc.set(this,"[[Type]]",t),Oc.set(this,"[[Value]]",r)};Pm.prototype.type=function(){return Oc.get(this,"[[Type]]")};Pm.prototype.value=function(){return Oc.get(this,"[[Value]]")};Pm.prototype["?"]=function(){var t=Oc.get(this,"[[Type]]"),r=Oc.get(this,"[[Value]]");if(t==="throw")throw r;return r};Pm.prototype["!"]=function(){var t=Oc.get(this,"[[Type]]");if(t!=="normal")throw new WV('Assertion failed: Completion Record is not of type "normal"');return Oc.get(this,"[[Value]]")};XV.exports=Pm});var Ef=D((p6e,tK)=>{"use strict";d();p();f();var eE=ke(),ZV=Yr(),ppe=$i(),eK=ZO(),mpe=XT(),hpe=ua(),ype=Os();tK.exports=function(t,r){if(!ype(t))throw new eE("Assertion failed: `iteratorRecord` must be an Iterator Record");if(!ZV(t["[[Iterator]]"]))throw new eE("Assertion failed: iteratorRecord.[[Iterator]] must be an Object");if(!hpe(r)&&!(r instanceof eK))throw new eE("Assertion failed: completion is not a thunk representing a Completion Record, nor a Completion Record instance");var n=r instanceof eK?function(){return r["?"]()}:r,i=t["[[Iterator]]"],a;try{a=mpe(i,"return")}catch(l){throw n(),n=null,l}if(typeof a=="undefined")return n();var o;try{o=ppe(a,i,[])}catch(l){throw n(),n=null,l}var u=n();if(n=null,!ZV(o))throw new eE("iterator .return must return an object");return u}});var tE=D((N6e,rK)=>{"use strict";d();p();f();var Npe=ke(),Tpe=WT(),Epe=ZT(),gpe=Os();rK.exports=function(t){if(!gpe(t))throw new Npe("Assertion failed: `iteratorRecord` must be an Iterator Record");var r=Epe(t),n=Tpe(r);return n===!0?!1:r}});var Dc=D((I6e,nK)=>{"use strict";d();p();f();var Ipe=Wt(),vpe=Ipe("%String%"),_pe=ke();nK.exports=function(t){if(typeof t=="symbol")throw new _pe("Cannot convert a Symbol value to a string");return vpe(t)}});var eD=D((O6e,aK)=>{"use strict";d();p();f();var iK=_s();aK.exports=function(t,r){return t===r||iK(t)&&iK(r)}});var sK=D((R6e,oK)=>{"use strict";d();p();f();var rE=function(t,r){this.key=t,this.value=r,this.next=null,this.prev=null};rE.empty={};rE.prototype.isRemoved=function(){return this.key===rE.empty};oK.exports=rE});var nE=D((L6e,uK)=>{"use strict";d();p();f();uK.exports=function(t){return t===null||typeof t!="function"&&typeof t!="object"}});var fK=D((k6e,dK)=>{"use strict";d();p();f();var lK=Wt(),Spe=lK("%Object.preventExtensions%",!0),Ope=lK("%Object.isExtensible%",!0),cK=nE();dK.exports=Spe?function(t){return!cK(t)&&Ope(t)}:function(t){return!cK(t)}});var tD=D((j6e,pK)=>{"use strict";d();p();f();var Fm=ke(),Dpe=Yr(),bpe=Nf(),Ape=fK(),Rpe=Ll();pK.exports=function(t,r,n,i){if(!Dpe(t))throw new Fm("Assertion failed: `homeObject` is not an Object");if(!Rpe(r))throw new Fm("Assertion failed: `key` is not a Property Key or a Private Name");if(typeof n!="function")throw new Fm("Assertion failed: `closure` is not a function");if(typeof i!="boolean")throw new Fm("Assertion failed: `enumerable` is not a Boolean");if(!Ape(t))throw new Fm("Assertion failed: `homeObject` is not an ordinary, extensible object, with no non-configurable properties");var a={"[[Value]]":n,"[[Writable]]":!0,"[[Enumerable]]":i,"[[Configurable]]":!0};bpe(t,r,a)}});var iE=D(rD=>{"use strict";d();p();f();var wpe=nn(),Ppe=Dc(),Fpe=ca(),mK=function(t){return wpe.has(t,"[[es6map]]")};rD.isMap=mK;rD.requireMapSlot=function(t,r){if(Fpe(t)!=="Object"||!mK(t))throw new TypeError("Method Map.prototype."+r+" called on incompatible receiver "+Ppe(t))}});var nD=D(oE=>{"use strict";d();p();f();var Lpe=vc()(),Cpe=Wt(),Bpe=nn(),Upe=MT(),kpe=KT(),qpe=tD(),xpe=_c(),aE=ca(),hK=Cpe("%Object.create%",!0),Mpe=!({__proto__:null}instanceof Object);oE.emptyObject=function(){return hK?hK(null):Mpe?{__proto__:null}:{}};oE.emulateES6construct=function(e,t,r,n){if(aE(e)!=="Object")throw new TypeError("Constructor requires `new`: "+t.name);var i=t.prototype;aE(i)!=="Object"&&(i=r);var a=xpe(i);return kpe(Upe(n),function(o){var u=o[0],l=o[1];Bpe.set(a,u,l)}),a};var Lm=Lpe&&aE(Symbol.iterator)==="Symbol"?Symbol.iterator:"_es6-shim iterator_";typeof[]["@@iterator"]=="function"&&(Lm="@@iterator");oE.addIterator=function(e,t){var r=t||function(){return this};qpe(e,Lm,r,!1),!e[Lm]&&aE(Lm)==="Symbol"&&(e[Lm]=r)}});var aD=D((Z6e,NK)=>{"use strict";d();p();f();var Va=nn(),jpe=UT(),Vpe=Wt(),iD=HT(),Kpe=tD(),$pe=_c(),Gpe=iE().requireMapSlot,Qpe=nD().addIterator,Cm=function(t,r){Gpe(t,"[[MapIterator]]"),Va.set(this,"[[isMapIterator]]",!0);var n=Va.get(t,"[[head]]");Va.set(this,"[[i]]",n),Va.set(this,"[[head]]",n),Va.set(this,"[[kind]]",r)},yK=Vpe("%IteratorPrototype%",!0);yK&&(Cm.prototype=$pe(yK));Qpe(Cm.prototype);Kpe(Cm.prototype,"next",function(){if(!Va.has(this,"[[isMapIterator]]"))throw new TypeError("Not a MapIterator");var t=Va.get(this,"[[i]]"),r=Va.get(this,"[[kind]]"),n=Va.get(this,"[[head]]");if(typeof t=="undefined")return iD(void 0,!0);for(;t.isRemoved()&&t!==n;)t=t.prev;for(var i;t.next!==n;)if(t=t.next,!t.isRemoved())return r==="key"?i=t.key:r==="value"?i=t.value:i=[t.key,t.value],Va.set(this,"[[i]]",t),iD(i,!1);return Va.set(this,"[[i]]",void 0),iD(void 0,!0)},!1);jpe(Cm.prototype,"Map Iterator");NK.exports=Cm});var oD=D((n4e,EK)=>{"use strict";d();p();f();var TK=Symbol.iterator;EK.exports=function(t){if(t!=null&&typeof t[TK]!="undefined")return t[TK]()}});var vK=D(sE=>{"use strict";d();p();f();var gK=$i(),Ype=mf(),Jpe=ua(),zpe=Ef(),Hpe=tE(),Wpe=Dc(),sD=ca(),Xpe=oD(),Zpe=aD(),eme=iE().isMap;sE.fastkey=function(t){switch(sD(t)){case"String":return"$"+t;case"Null":case"Undefined":case"Boolean":case"Number":return Wpe(t);default:return null}};var IK=function(t,r,n){for(var i=new Zpe(t,"key+value"),a=i.next();!a.done;a=i.next())typeof n=="undefined"?r(a.value[1],a.value[0],t):gK(r,n,[a.value[1],a.value[0],t])};sE.forEach=IK;sE.addIterableToMap=function(t,r){if(Ype(r)||typeof r=="string")for(var n=0;n{"use strict";d();p();f();var _K=pn(),dE=Rm(),tme=Wt(),qr=nn(),rme=MO(),uE=eD(),bc=sK(),uD=aD(),dD=vK(),fD=nD(),Ro=iE().requireMapSlot,cE=dD.fastkey,nme=dD.forEach,ime=dD.addIterableToMap,SK=fD.emptyObject,ame=fD.emulateES6construct,ome=fD.addIterator,lE=tme("%Map%",!0),sme=dE("%Map.prototype.delete%",!0),cD=dE("%Map.prototype.get%",!0),lD=dE("%Map.prototype.has%",!0),ume=dE("%Map.prototype.set%",!0),gf,OK=function e(){if(!(this instanceof e))throw new TypeError('Constructor Map requires "new"');if(this&&qr.has(this,"[[es6map]]"))throw new TypeError("Bad construction");var t=ame(this,e,gf,{"[[es6map]]":!0,"[[head]]":null,"[[map]]":lE?new lE:null,"[[size]]":0,"[[storage]]":SK()}),r=new bc(null,null);return r.next=r,r.prev=r,qr.set(t,"[[head]]",r),arguments.length>0&&ime(t,arguments[0]),t};gf=OK.prototype;_K.supportsDescriptors&&Object.defineProperty(gf,"size",{configurable:!0,enumerable:!1,get:function(){return Ro(this,"size"),qr.get(this,"[[size]]")}});_K(gf,{get:function(t){Ro(this,"get");var r,n=cE(t,!0);if(n!==null)return r=qr.get(this,"[[storage]]")[n],r?r.value:void 0;var i=qr.get(this,"[[map]]");if(i)return r=cD(i,t),r?r.value:void 0;for(var a=qr.get(this,"[[head]]"),o=a;(o=o.next)!==a;)if(uE(o.key,t))return o.value},has:function(t){Ro(this,"has");var r=cE(t,!0),n=qr.get(this,"[[storage]]");if(r!==null)return typeof n[r]!="undefined";var i=qr.get(this,"[[map]]");if(i)return lD(i,t);for(var a=qr.get(this,"[[head]]"),o=a;(o=o.next)!==a;)if(uE(o.key,t))return!0;return!1},set:function(t,r){Ro(this,"set");var n=qr.get(this,"[[head]]"),i=n,a,o=cE(t,!0);if(o!==null){var u=qr.get(this,"[[storage]]");if(typeof u[o]=="undefined")a=new bc(t,r),u[o]=a,i=n.prev;else return u[o].value=r,this}else{var l=qr.get(this,"[[map]]");l&&(lD(l,t)?cD(l,t).value=r:(a=new bc(t,r),ume(l,t,a),i=n.prev))}for(;(i=i.next)!==n;)if(uE(i.key,t))return i.value=r,this;return a=a||new bc(t,r),rme(-0,t)&&(a.key=0),a.next=n,a.prev=n.prev,a.prev.next=a,a.next.prev=a,qr.set(this,"[[size]]",qr.get(this,"[[size]]")+1),this},delete:function(e){Ro(this,"delete");var t=qr.get(this,"[[head]]"),r=t,n=cE(e,!0);if(n!==null){var i=qr.get(this,"[[storage]]");if(typeof i[n]=="undefined")return!1;r=i[n].prev,delete i[n]}else{var a=qr.get(this,"[[map]]");if(a){if(!lD(a,e))return!1;r=cD(a,e).prev,sme(a,e)}}for(;(r=r.next)!==t;)if(uE(r.key,e))return r.key=bc.empty,r.value=bc.empty,r.prev.next=r.next,r.next.prev=r.prev,qr.set(this,"[[size]]",qr.get(this,"[[size]]")-1),!0;return!1},clear:function(){Ro(this,"clear"),qr.set(this,"[[map]]",lE?new lE:null),qr.set(this,"[[size]]",0),qr.set(this,"[[storage]]",SK());for(var t=qr.get(this,"[[head]]"),r=t,n=r.next;(r=n)!==t;)r.key=bc.empty,r.value=bc.empty,n=r.next,r.next=t,r.prev=t;t.next=t,t.prev=t},keys:function(){return Ro(this,"keys"),new uD(this,"key")},values:function(){return Ro(this,"values"),new uD(this,"value")},entries:function(){return Ro(this,"entries"),new uD(this,"key+value")},forEach:function(t){Ro(this,"forEach"),nme(this,t,arguments.length>1?arguments[1]:void 0)}});ome(gf,gf.entries);DK.exports=OK});var hD=D(mD=>{"use strict";d();p();f();var cme=nn(),lme=Dc(),dme=ca(),bK=function(t){return cme.has(t,"[[es6set]]")};mD.isSet=bK;mD.requireSetSlot=function(t,r){if(dme(t)!=="Object"||!bK(t))throw new TypeError("Method Set.prototype."+r+" called on incompatible receiver "+lme(t))}});var yD=D(Bl=>{"use strict";d();p();f();var fme=Wt(),pme=Rm(),mme=Kn(),Bm=nn(),RK=$i(),hme=XO(),yme=mf(),Nme=ua(),Tme=Ef(),Eme=tE(),gme=Dc(),wK=pD(),Ime=mme(wK.prototype.forEach),AK=pme("%String.prototype.slice%"),vme=fme("%Number%"),_me=hD().isSet,PK={};Bl.SET_ITEM=PK;Bl.fastkey=function(t){switch(typeof t){case"string":return"$"+t;case"null":case"undefined":case"boolean":return gme(t);case"number":return"n"+t;default:return null}};var Sme=function(t){return t==="null"?null:t==="undefined"?void 0:t==="true"?!0:t==="false"?!1:t[0]==="$"?AK(t,1):vme(AK(t,1))},FK=function(t,r){for(var n in t)t[n]===PK&&r(n)};Bl.iterateStorage=FK;var LK=function(t){if(!Bm.get(t,"[[setData]]")){var r=new wK;FK(Bm.get(t,"[[storage]]"),function(n){var i=Sme(n);r.set(i,i)}),Bm.set(t,"[[setData]]",r)}Bm.set(t,"[[storage]]",null)};Bl.ensureSet=LK;var CK=function(t,r,n){LK(t),Ime(Bm.get(t,"[[setData]]"),function(i,a){typeof n=="undefined"?r(a,a,t):RK(r,n,[a,a,t])})};Bl.forEach=CK;Bl.addIterableToSet=function(t,r){if(yme(r)||typeof r=="string")for(var n=0;n{"use strict";d();p();f();var TD=pn(),ai=nn(),BK=FO(),UK=Vj(),vf=yD(),ED=YT(),Ac=hD().requireSetSlot,ND=vf.fastkey,Ome=vf.forEach,Dme=vf.addIterableToSet,kK=vf.SET_ITEM,If=vf.ensureSet,bme=vf.iterateStorage,qK=ED.emptyObject,Ame=ED.emulateES6construct,Rme=ED.addIterator,Ds,xK=function e(){if(!(this instanceof e))throw new TypeError('Constructor Set requires "new"');if(this&&ai.has(this,"[[es6set]]"))throw new TypeError("Bad construction");var t=Ame(this,e,Ds,{"[[es6set]]":!0,"[[setData]]":null,"[[storage]]":qK()});if(!ai.has(t,"[[es6set]]"))throw new TypeError("bad set");return arguments.length>0&&Dme(t,arguments[0]),t};Ds=xK.prototype;TD.supportsDescriptors&&Object.defineProperty(Ds,"size",{configurable:!0,enumerable:!1,get:function(){Ac(this,"size");var e=ai.get(this,"[[storage]]");if(e){var t=0;return bme(e,function(){t+=1}),t}return If(this),ai.get(this,"[[setData]]").size}});TD(Ds,{add:function(t){Ac(this,"has");var r,n=ai.get(this,"[[storage]]");return n&&(r=ND(t))!==null?n[r]!==kK&&(n[r]=kK):(If(this),ai.get(this,"[[setData]]").set(t,t)),this},has:function(t){Ac(this,"has");var r,n=ai.get(this,"[[storage]]");return n&&(r=ND(t))!==null?!!n[r]:(If(this),ai.get(this,"[[setData]]").has(t))},delete:function(e){Ac(this,"delete");var t,r=ai.get(this,"[[storage]]");if(r&&(t=ND(e))!==null){var n=!!r[t];return n&&delete r[t],n}return If(this),ai.get(this,"[[setData]]").delete(e)},clear:function(){Ac(this,"clear");var t=ai.get(this,"[[storage]]");t&&ai.set(this,"[[storage]]",qK());var r=ai.get(this,"[[setData]]");r&&r.clear()},values:function(){return Ac(this,"values"),If(this),new UK(ai.get(this,"[[setData]]").values())},entries:function(){return Ac(this,"entries"),If(this),new UK(ai.get(this,"[[setData]]").entries())},forEach:function(t){Ac(this,"forEach"),Ome(this,t,arguments.length>1?arguments[1]:void 0)}});TD(Ds,{keys:Ds.values});Rme(Ds,Ds.values);typeof Set=="function"&&BK&&BK(Ds,Set.prototype);MK.exports=xK});var gD=D((b4e,VK)=>{"use strict";d();p();f();var km=function(){return typeof function(){}.name=="string"},Um=Object.getOwnPropertyDescriptor;if(Um)try{Um([],"length")}catch(e){Um=null}km.functionsHaveConfigurableNames=function(){if(!km()||!Um)return!1;var t=Um(function(){},"name");return!!t&&!!t.configurable};var wme=Function.prototype.bind;km.boundFunctionsHaveNames=function(){return km()&&typeof wme=="function"&&function(){}.bind().name!==""};VK.exports=km});var ID=D(Rc=>{"use strict";d();p();f();var Pme=gD(),Fme=function(e){return function(){try{return e()}catch(t){return!1}}};Rc.isGoogleTranslate=function(){return!!Set.prototype.delete&&Set.prototype.remove&&Set.prototype.items&&Set.prototype.map&&Array.isArray(new Set().keys)};Rc.setUsesSameValueZero=function(){if(!Set.prototype.delete||!Set.prototype.add||!Set.prototype.has)return!1;var e=new Set([1,2,3,4]);return e.delete(0),e.add(-0),e.has(0)?(e=new Set([1,2,3,4]),e.delete(-0),e.add(0),e.has(-0)):!1};Rc.setSupportsChaining=function(){var e=new Set;return e.add(1)===e};var Lme=Fme(function(){if(!Object.setPrototypeOf)return!0;var e=function r(n){var i=new Set(n);return Object.setPrototypeOf(i,r.prototype),i};Object.setPrototypeOf(e,Set),Object.setPrototypeOf(e.prototype,Set.prototype);var t=new e([]);return t.add(1,2),t instanceof e}),Cme=function(){try{return!(Set()instanceof Set)}catch(e){return e instanceof TypeError}};Rc.setCompliantConstructor=function(){return Set.length===0&&Lme()&&Cme()};Rc.setKeysIsValues=function(){return Set.prototype.keys===Set.prototype.values};Rc.setHasCorrectName=function(){return Pme?Set.prototype.has.name==="has":!0};Rc.setHasOldFirefoxInterface=function(){return new Set().size!==0||typeof Set.prototype.values!="function"||typeof Set.prototype.forEach!="function"}});var $a=D((B4e,KK)=>{"use strict";d();p();f();var Bme=ZS(),Ume=pn(),fE=nn(),kme=jK(),qme=yD().addIterableToSet,wc=ID(),Ka;KK.exports=function(){if(typeof Set=="function"&&!wc.setCompliantConstructor()&&wc.setUsesSameValueZero()){var t=Set;if(!Ka||!(t===Ka||fE.get(Ka,"[[OrigSet]]")===t)){var r=t.prototype;Ka=function(){if(!(this instanceof Ka))throw new TypeError('Constructor Set requires "new"');if(this&&fE.has(this,"[[SetCompliantConstructorShim]]"))throw new TypeError("Bad construction");var i=new t;return fE.set(i,"[[SetCompliantConstructorShim]]",!0),arguments.length>0&&qme(i,arguments[0]),delete i.constructor,Bme(i,Ka.prototype),i},fE.set(Ka,"[[OrigSet]]",Set),Ka.prototype=r,Ume(Ka.prototype,{constructor:Ka},{constructor:function(){return!0}})}return Ka}return typeof Set!="function"||wc.isGoogleTranslate()||wc.setHasOldFirefoxInterface()||!wc.setHasCorrectName()||!wc.setKeysIsValues()||!wc.setSupportsChaining()||!wc.setUsesSameValueZero()?kme:Set}});var GK=D((x4e,$K)=>{"use strict";d();p();f();$K.exports=function(t){return t===null||typeof t!="function"&&typeof t!="object"}});var YK=D((K4e,QK)=>{"use strict";d();p();f();var xme=Date.prototype.getDay,Mme=function(t){try{return xme.call(t),!0}catch(r){return!1}},jme=Object.prototype.toString,Vme="[object Date]",Kme=_m()();QK.exports=function(t){return typeof t!="object"||t===null?!1:Kme?Mme(t):jme.call(t)===Vme}});var WK=D((Y4e,vD)=>{"use strict";d();p();f();var $me=Object.prototype.toString,Gme=vc()();Gme?(JK=Symbol.prototype.toString,zK=/^Symbol\(.*\)$/,HK=function(t){return typeof t.valueOf()!="symbol"?!1:zK.test(JK.call(t))},vD.exports=function(t){if(typeof t=="symbol")return!0;if($me.call(t)!=="[object Symbol]")return!1;try{return HK(t)}catch(r){return!1}}):vD.exports=function(t){return!1};var JK,zK,HK});var SD=D((W4e,e$)=>{"use strict";d();p();f();var Qme=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol",_D=GK(),ZK=Om(),Yme=YK(),XK=WK(),Jme=function(t,r){if(typeof t=="undefined"||t===null)throw new TypeError("Cannot call method on "+t);if(typeof r!="string"||r!=="number"&&r!=="string")throw new TypeError('hint must be "string" or "number"');var n=r==="string"?["toString","valueOf"]:["valueOf","toString"],i,a,o;for(o=0;o1&&(arguments[1]===String?r="string":arguments[1]===Number&&(r="number"));var n;if(Qme&&(Symbol.toPrimitive?n=zme(t,Symbol.toPrimitive):XK(t)&&(n=Symbol.prototype.valueOf)),typeof n!="undefined"){var i=n.call(t,r);if(_D(i))return i;throw new TypeError("unable to convert exotic object to primitive")}return r==="default"&&(Yme(t)||XK(t))&&(r="string"),Jme(t,r==="default"?"number":r)}});var n$=D((t8e,r$)=>{"use strict";d();p();f();var t$=SD();r$.exports=function(t){return arguments.length>1?t$(t,arguments[1]):t$(t)}});var c$=D((a8e,u$)=>{"use strict";d();p();f();var i$=mn(),Hme=_m()(),Wme=Ns(),Xme=_o(),bD;Hme?(a$=i$("RegExp.prototype.exec"),OD={},pE=function(){throw OD},DD={toString:pE,valueOf:pE},typeof Symbol.toPrimitive=="symbol"&&(DD[Symbol.toPrimitive]=pE),bD=function(t){if(!t||typeof t!="object")return!1;var r=Xme(t,"lastIndex"),n=r&&Wme(r,"value");if(!n)return!1;try{a$(t,DD)}catch(i){return i===OD}}):(o$=i$("Object.prototype.toString"),s$="[object RegExp]",bD=function(t){return!t||typeof t!="object"&&typeof t!="function"?!1:o$(t)===s$});var a$,OD,pE,DD,o$,s$;u$.exports=bD});var AD=D((c8e,l$)=>{"use strict";d();p();f();var Zme=mn(),ehe=c$(),the=Zme("RegExp.prototype.exec"),rhe=ke();l$.exports=function(t){if(!ehe(t))throw new rhe("`regex` must be a RegExp");return function(n){return the(t,n)!==null}}});var RD=D((p8e,p$)=>{"use strict";d();p();f();var nhe=xT(),ihe=Dc(),ahe=mn(),d$=ahe("String.prototype.replace"),f$=/^\s$/.test("\u180E"),ohe=f$?/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/:/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/,she=f$?/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/:/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/;p$.exports=function(){var t=ihe(nhe(this));return d$(d$(t,ohe,""),she,"")}});var wD=D((N8e,h$)=>{"use strict";d();p();f();var uhe=RD(),m$="\u200B",_f="\u180E";h$.exports=function(){return String.prototype.trim&&m$.trim()===m$&&_f.trim()===_f&&("_"+_f).trim()==="_"+_f&&(_f+"_").trim()===_f+"_"?String.prototype.trim:uhe}});var T$=D((I8e,N$)=>{"use strict";d();p();f();var che=Ol()(),y$=cT(),lhe=wD();N$.exports=function(){var t=lhe();return String.prototype.trim!==t&&(che?y$(String.prototype,"trim",t,!0):y$(String.prototype,"trim",t)),t}});var PD=D((O8e,I$)=>{"use strict";d();p();f();var dhe=Kn(),fhe=pn(),phe=xT(),mhe=RD(),E$=wD(),hhe=T$(),yhe=dhe(E$()),g$=function(t){return phe(t),yhe(t)};fhe(g$,{getPolyfill:E$,implementation:mhe,shim:hhe});I$.exports=g$});var D$=D((R8e,O$)=>{"use strict";d();p();f();var S$=Wt(),Nhe=S$("%RegExp%"),The=ke(),v$=S$("%parseInt%"),Ehe=mn(),mE=AD(),_$=Ehe("String.prototype.slice"),ghe=mE(/^0b[01]+$/i),Ihe=mE(/^0o[0-7]+$/i),vhe=mE(/^[-+]0x[0-9a-f]+$/i),_he=["\x85","\u200B","\uFFFE"].join(""),She=new Nhe("["+_he+"]","g"),Ohe=mE(She),Dhe=PD();O$.exports=function e(t){if(typeof t!="string")throw new The("Assertion failed: `argument` is not a String");if(ghe(t))return+v$(_$(t,2),2);if(Ihe(t))return+v$(_$(t,2),8);if(Ohe(t)||vhe(t))return NaN;var r=Dhe(t);return r!==t?e(r):+t}});var Sf=D((L8e,A$)=>{"use strict";d();p();f();var bhe=Wt(),b$=ke(),Ahe=bhe("%Number%"),Rhe=nE(),whe=n$(),Phe=D$();A$.exports=function(t){var r=Rhe(t)?t:whe(t,Ahe);if(typeof r=="symbol")throw new b$("Cannot convert a Symbol value to a number");if(typeof r=="bigint")throw new b$("Conversion from 'BigInt' to 'number' is not allowed.");return typeof r=="string"?Phe(r):+r}});var w$=D((k8e,R$)=>{"use strict";d();p();f();var Fhe=Nm();R$.exports=function(t){return typeof t=="bigint"?t:Fhe(t)}});var L$=D((j8e,F$)=>{"use strict";d();p();f();var P$=w$(),Lhe=ke();F$.exports=function(t){if(typeof t!="number"&&typeof t!="bigint")throw new Lhe("argument must be a Number or a BigInt");var r=t<0?-P$(-t):P$(t);return r===0?0:r}});var qm=D((G8e,C$)=>{"use strict";d();p();f();var Che=Sf(),Bhe=L$(),Uhe=_s(),khe=zT();C$.exports=function(t){var r=Che(t);return Uhe(r)||r===0?0:khe(r)?Bhe(r):r}});var Of=D((z8e,B$)=>{"use strict";d();p();f();B$.exports=Number.isNaN||function(t){return t!==t}});var Ga=D((Z8e,q$)=>{"use strict";d();p();f();var qhe=typeof Map=="function"&&Map.prototype?Map:null,FD=typeof Set=="function"&&Set.prototype?Set:null,hE;FD||(hE=function(t){return!1});var U$=qhe?Map.prototype.has:null,k$=FD?Set.prototype.has:null;!hE&&!k$&&(hE=function(t){return!1});q$.exports=hE||function(t){if(!t||typeof t!="object")return!1;try{if(k$.call(t),U$)try{U$.call(t)}catch(r){return!0}return t instanceof FD}catch(r){}return!1}});var Pc=D((n9e,M$)=>{"use strict";d();p();f();var xm=nn(),xhe=ys(),x$=typeof StopIteration=="object"?StopIteration:null;M$.exports=function(t){if(!x$)throw new xhe("this environment lacks StopIteration");xm.set(t,"[[Done]]",!1);var r={next:function(){var i=xm.get(this,"[[Iterator]]"),a=!!xm.get(i,"[[Done]]");try{return{done:a,value:a?void 0:i.next()}}catch(o){if(xm.set(i,"[[Done]]",!0),o!==x$)throw o;return{done:!0,value:void 0}}}};return xm.set(r,"[[Iterator]]",t),r}});var K$=D((s9e,V$)=>{"use strict";d();p();f();var Mhe=Pl(),yE=ke(),LD=Ao(),j$=ua(),jhe=qm(),Vhe=Sf(),Khe=ca(),$he=Of(),Ghe=Kn(),Qhe=Ga(),Yhe=Pc();V$.exports=function(t){if(Khe(t)!=="Object")throw new yE("obj is not an Object");var r=LD(t,"size"),n=Vhe(r);if($he(n))throw new yE("size is not a non-NaN Number");var i=jhe(n);if(i<0)throw new Mhe("set size must be non-negative");var a=LD(t,"has");if(!j$(a))throw new yE("has is not a function");var o=LD(t,"keys");if(!j$(o))throw new yE("keys is not a function");if(Qhe(t)&&typeof StopIteration=="object"){var u=Ghe(o);o=function(){return Yhe(u(this))}}return{"[[SetObject]]":t,"[[Size]]":i,"[[Has]]":a,"[[Keys]]":o}}});var NE=D((d9e,$$)=>{"use strict";d();p();f();var Jhe=ke(),zhe=Ao(),Hhe=WT(),Whe=ZT(),Xhe=Os();$$.exports=function(t){if(!Xhe(t))throw new Jhe("Assertion failed: `iteratorRecord` must be an Iterator Record");var r;try{r=Whe(t)}catch(a){throw t["[[Done]]"]=!0,a}var n;try{n=Hhe(r)}catch(a){throw t["[[Done]]"]=!0,a}if(n)return t["[[Done]]"]=!0,"DONE";var i;try{i=zhe(r,"value")}catch(a){throw t["[[Done]]"]=!0,a}return i}});var Y$=D((h9e,Q$)=>{"use strict";d();p();f();var G$=TypeError;Q$.exports=function(t){if(!t||typeof t.next!="function")throw new G$("iterator must be an object with a `next` method");if(arguments.length>1){var r=arguments[1];if(typeof r!="function")throw new G$("`callback`, if provided, must be a function")}for(var n=r||[],i;(i=t.next())&&!i.done;)r?r(i.value):n.push(i.value);if(!r)return n}});var CD=D((E9e,z$)=>{"use strict";d();p();f();var Zhe=oD(),eye=TypeError,J$=Y$();z$.exports=function(t){var r=Zhe(t);if(!r)throw new eye("non-iterable value provided");return arguments.length>1?J$(r,arguments[1]):J$(r)}});var Vm=D((_9e,iG)=>{"use strict";d();p();f();var Df=$a()(),Mm=Kn(),jm=Rm(),H$=_o(),tye=CD(),W$=jm("Set.prototype.forEach",!0),rye=Mm(Df.prototype.forEach),nG=function(e,t){if(W$)try{return W$(e,t)}catch(r){}try{return rye(e,t)}catch(r){}tye(e,t)},X$=jm("Set.prototype.add",!0),nye=Df.prototype.add&&Mm(Df.prototype.add),iye=function(e,t){if(X$)try{return X$(e,t)}catch(r){}return nye(e,t)},Z$=jm("Set.prototype.has",!0),aye=Mm(Df.prototype.has),oye=function(e,t){if(Z$)try{return Z$(e,t)}catch(r){}return aye(e,t)},eG=jm("Set.prototype.delete",!0),sye=Mm(Df.prototype.delete),uye=function(e,t){if(eG)try{return eG(e,t)}catch(r){}return sye(e,t)},tG=jm("Set.prototype.size",!0),rG=H$?Mm(H$(Df.prototype,"size").get):null,cye=function(t){var r=0;return nG(t,function(){r+=1}),r},lye=function(e){if(tG)try{return tG(e)}catch(t){}if(rG)try{return rG(e)}catch(t){}return cye(e)};iG.exports={add:iye,delete:uye,forEach:nG,has:oye,size:lye}});var lG=D((b9e,cG)=>{"use strict";d();p();f();var dye=ke(),aG=$a()(),fye=$i(),pye=wm(),mye=K$(),hye=NE(),yye=eD(),Nye=yf(),Tye=mn(),Eye=Ga(),gye=kT(),BD=Vm(),oG=BD.forEach,sG=BD.add,Iye=BD.size,vye=Tye(".Array.prototype.push"),uG={};cG.exports=function(t){var r=this;if(!Eye(r)&&!(r instanceof aG))throw new dye("Method Set.prototype.difference called on incompatible receiver "+r);var n=mye(t),i=Iye(r),a=new aG;if(i<=n["[[Size]]"])oG(r,function(h){var N=Nye(fye(n["[[Has]]"],n["[[SetObject]]"],[h]));N||sG(a,h)});else{var o=pye(n["[[SetObject]]"],n["[[Keys]]"]),u=[];oG(r,function(h){vye(u,h)});for(var l;!o["[[Done]]"];)if(l=hye(o),!o["[[Done]]"]){l===0&&(l=0);for(var m=0;m{"use strict";d();p();f();var TE=$a()(),_ye=lG();dG.exports=function(){if(typeof TE.prototype.difference=="function"){var t=!1,r={size:1/0,has:function(){},keys:function(){return t=!0,[].values()}};if(new TE([1]).difference(r),r.size=2147483648,new TE([1]).difference(r),!t)return TE.prototype.difference}return _ye}});var UD=D((B9e,pG)=>{"use strict";d();p();f();pG.exports=global});var kD=D((x9e,mG)=>{"use strict";d();p();f();var Sye=UD();mG.exports=function(){return typeof global!="object"||!global||global.Math!==Math||global.Array!==Array?Sye:global}});var yG=D((K9e,hG)=>{"use strict";d();p();f();var Oye=pn(),Dye=_o(),bye=kD();hG.exports=function(){var t=bye();if(Oye.supportsDescriptors){var r=Dye(t,"globalThis");(!r||r.configurable&&(r.enumerable||!r.writable||globalThis!==t))&&Object.defineProperty(t,"globalThis",{configurable:!0,enumerable:!1,value:t,writable:!0})}else(typeof globalThis!="object"||globalThis!==t)&&(t.globalThis=t);return t}});var qD=D((Y9e,EG)=>{"use strict";d();p();f();var Aye=pn(),Rye=UD(),NG=kD(),wye=yG(),Pye=NG(),TG=function(){return Pye};Aye(TG,{getPolyfill:NG,implementation:Rye,shim:wye});EG.exports=TG});var Gm=D((W9e,gG)=>{"use strict";d();p();f();var Km=Kn(),Fc=pn(),$m=$i(),Fye=Nf(),Lye=qD()(),Cye=Ol(),xD=Pc(),Bye=$a(),Ul=ID(),Uye=YT().addIterator,Qa=function(){return!0},kye=function(e){return Fc(Lye,{Set:e},{Set:Qa}),e};gG.exports=function(){if(typeof Set=="function"&&(Ul.isGoogleTranslate()&&(delete Set.prototype.remove,delete Set.prototype.items,delete Set.prototype.map,Fc(Set.prototype,{keys:Set.prototype.values},{keys:Qa})),Ul.setHasOldFirefoxInterface())){if(typeof new Set().size=="function"&&Cye()){var t=Km(Set.prototype.size);Fye(Set.prototype,"size",{"[[Configurable]]":!0,"[[Enumerable]]":!1,"[[Get]]":function(){return t(this)}})}var r=Km(Set.prototype.entries),n=Km(Set.prototype.values);if(Fc(Set.prototype,{entries:function(){return xD(r(this))},values:function(){return xD(n(this))}},{entries:Qa,values:Qa}),typeof Set.prototype.forEach!="function"){var i=Km(Set.prototype.iterator);Fc(Set.prototype,{forEach:function(N){for(var T=xD(i(this)),O=arguments.length>1?arguments[1]:void 0,R=Km(N,O),C=T.next();!C.done;)R(C.value,C.value,this),C=T.next()}},{forEach:Qa})}}var a=typeof Set=="function"?Set:null;(typeof Set!="function"||!Ul.setCompliantConstructor())&&(a=Bye(),kye(a));var o=a.prototype,u=o.add,l=o.has,m=o.delete;return Ul.setUsesSameValueZero()?Ul.setSupportsChaining()||Fc(a.prototype,{add:function(N){return $m(u,this,[N]),this}},{add:Qa}):Fc(a.prototype,{add:function(N){return $m(u,this,[N===0?0:N]),this},delete:function(N){return $m(m,this,[N===0?0:N])},has:function(N){return $m(l,this,[N===0?0:N])}},{add:Qa,delete:Qa,has:Qa}),Ul.setKeysIsValues()||Fc(a.prototype,{keys:a.prototype.values},{keys:Qa}),Ul.setHasCorrectName()||Fc(a.prototype,{has:function(N){return $m(l,this,N)}},{has:Qa}),Object.getPrototypeOf&&Uye(Object.getPrototypeOf(new a().values())),a}});var vG=D((t5e,IG)=>{"use strict";d();p();f();var qye=fG(),xye=pn(),Mye=Gm();IG.exports=function(){Mye();var t=qye();return xye(Set.prototype,{difference:t},{difference:function(){return Set.prototype.difference!==t}}),t}});var gE=D(EE=>{"use strict";d();p();f();var jye=vc()(),Vye=nn(),Kye=MT(),$ye=KT(),Gye=Wt(),Qye=Nf(),Yye=_c(),_G=ca(),SG=Gye("%Object.create%",!0),Jye=!({__proto__:null}instanceof Object);EE.emptyObject=function(){return SG?SG(null):Jye?{__proto__:null}:{}};EE.emulateES6construct=function(e,t,r,n){if(_G(e)!=="Object")throw new TypeError("Constructor requires `new`: "+t.name);var i=t.prototype;_G(i)!=="Object"&&(i=r);var a=Yye(i);return $ye(Kye(n),function(o){var u=o[0],l=o[1];Vye.set(a,u,l)}),a};var Qm=jye&&typeof Symbol.iterator=="symbol"?Symbol.iterator:"_es6-shim iterator_";typeof[]["@@iterator"]=="function"&&(Qm="@@iterator");EE.addIterator=function(e,t){var r=t||function(){return this};Qye(e,Qm,{"[[Configurable]]":!0,"[[Enumerable]]":!1,"[[Value]]":r,"[[Writable]]":!0}),!e[Qm]&&typeof Qm=="symbol"&&(e[Qm]=r)}});var bG=D((f5e,DG)=>{"use strict";d();p();f();var zye=pn(),Hye=UT(),IE=nn(),Wye=Wt(),Xye=_c(),Zye=gE().addIterator,Ym=function(t){IE.set(this,"[[isSetIterator]]",!0),IE.set(this,"[[it]]",t)},OG=Wye("%IteratorPrototype%",!0);OG&&(Ym.prototype=Xye(OG));Zye(Ym.prototype);zye(Ym.prototype,{next:function(){if(!IE.has(this,"[[isSetIterator]]"))throw new TypeError("Not a SetIterator");return IE.get(this,"[[it]]").next()}});Hye(Ym.prototype,"Set Iterator");DG.exports=Ym});var jD=D(MD=>{"use strict";d();p();f();var eNe=nn(),tNe=Dc(),rNe=ca(),AG=function(t){return eNe.has(t,"[[es6set]]")};MD.isSet=AG;MD.requireSetSlot=function(t,r){if(rNe(t)!=="Object"||!AG(t))throw new TypeError("Method Set.prototype."+r+" called on incompatible receiver "+tNe(t))}});var VD=D(kl=>{"use strict";d();p();f();var nNe=Wt(),iNe=mn(),aNe=Kn(),Jm=nn(),wG=$i(),oNe=XO(),sNe=mf(),uNe=ua(),cNe=Ef(),lNe=tE(),dNe=Dc(),PG=pD(),fNe=aNe(PG.prototype.forEach),RG=iNe("%String.prototype.slice%"),pNe=nNe("%Number%"),mNe=jD().isSet,FG={};kl.SET_ITEM=FG;kl.fastkey=function(t){switch(typeof t){case"string":return"$"+t;case"null":case"undefined":case"boolean":return dNe(t);case"number":return"n"+t;default:return null}};var hNe=function(t){return t==="null"?null:t==="undefined"?void 0:t==="true"?!0:t==="false"?!1:t[0]==="$"?RG(t,1):pNe(RG(t,1))},LG=function(t,r){for(var n in t)t[n]===FG&&r(n)};kl.iterateStorage=LG;var CG=function(t){if(!Jm.get(t,"[[setData]]")){var r=new PG;LG(Jm.get(t,"[[storage]]"),function(n){var i=hNe(n);r.set(i,i)}),Jm.set(t,"[[setData]]",r)}Jm.set(t,"[[storage]]",null)};kl.ensureSet=CG;var BG=function(t,r,n){CG(t),fNe(Jm.get(t,"[[setData]]"),function(i,a){typeof n=="undefined"?r(a,a,t):wG(r,n,[a,a,t])})};kl.forEach=BG;kl.addIterableToSet=function(t,r){if(sNe(r)||typeof r=="string")for(var n=0;n{"use strict";d();p();f();var $D=pn(),oi=nn(),UG=FO(),kG=bG(),Af=VD(),GD=gE(),Lc=jD().requireSetSlot,KD=Af.fastkey,yNe=Af.forEach,NNe=Af.addIterableToSet,qG=Af.SET_ITEM,bf=Af.ensureSet,TNe=Af.iterateStorage,xG=GD.emptyObject,ENe=GD.emulateES6construct,gNe=GD.addIterator,bs,MG=function e(){if(!(this instanceof e))throw new TypeError('Constructor Set requires "new"');if(this&&oi.has(this,"[[es6set]]"))throw new TypeError("Bad construction");var t=ENe(this,e,bs,{"[[es6set]]":!0,"[[setData]]":null,"[[storage]]":xG()});if(!oi.has(t,"[[es6set]]"))throw new TypeError("bad set");return arguments.length>0&&NNe(t,arguments[0]),t};bs=MG.prototype;$D.supportsDescriptors&&Object.defineProperty(bs,"size",{configurable:!0,enumerable:!1,get:function(){Lc(this,"size");var e=oi.get(this,"[[storage]]");if(e){var t=0;return TNe(e,function(){t+=1}),t}return bf(this),oi.get(this,"[[setData]]").size}});$D(bs,{add:function(t){Lc(this,"has");var r,n=oi.get(this,"[[storage]]");return n&&(r=KD(t))!==null?n[r]!==qG&&(n[r]=qG):(bf(this),oi.get(this,"[[setData]]").set(t,t)),this},has:function(t){Lc(this,"has");var r,n=oi.get(this,"[[storage]]");return n&&(r=KD(t))!==null?!!n[r]:(bf(this),oi.get(this,"[[setData]]").has(t))},delete:function(e){Lc(this,"delete");var t,r=oi.get(this,"[[storage]]");if(r&&(t=KD(e))!==null){var n=!!r[t];return n&&delete r[t],n}return bf(this),oi.get(this,"[[setData]]").delete(e)},clear:function(){Lc(this,"clear");var t=oi.get(this,"[[storage]]");t&&oi.set(this,"[[storage]]",xG());var r=oi.get(this,"[[setData]]");r&&r.clear()},values:function(){return Lc(this,"values"),bf(this),new kG(oi.get(this,"[[setData]]").values())},entries:function(){return Lc(this,"entries"),bf(this),new kG(oi.get(this,"[[setData]]").entries())},forEach:function(t){Lc(this,"forEach"),yNe(this,t,arguments.length>1?arguments[1]:void 0)}});$D(bs,{keys:bs.values});gNe(bs,bs.values);typeof Set=="function"&&UG&&UG(bs,Set.prototype);jG.exports=MG});var QD=D(Cc=>{"use strict";d();p();f();var INe=gD(),vNe=function(e){return function(){try{return e()}catch(t){return!1}}};Cc.isGoogleTranslate=function(){return!!Set.prototype.delete&&Set.prototype.remove&&Set.prototype.items&&Set.prototype.map&&Array.isArray(new Set().keys)};Cc.setUsesSameValueZero=function(){if(!Set.prototype.delete||!Set.prototype.add||!Set.prototype.has)return!1;var e=new Set([1,2,3,4]);return e.delete(0),e.add(-0),e.has(0)?(e=new Set([1,2,3,4]),e.delete(-0),e.add(0),e.has(-0)):!1};Cc.setSupportsChaining=function(){var e=new Set;return e.add(1)===e};var _Ne=vNe(function(){if(!Object.setPrototypeOf)return!0;var e=function r(n){var i=new Set(n);return Object.setPrototypeOf(i,r.prototype),i};Object.setPrototypeOf(e,Set),Object.setPrototypeOf(e.prototype,Set.prototype);var t=new e([]);return t.add(1,2),t instanceof e}),SNe=function(){try{return!(Set()instanceof Set)}catch(e){return e instanceof TypeError}};Cc.setCompliantConstructor=function(){return Set.length===0&&_Ne()&&SNe()};Cc.setKeysIsValues=function(){return Set.prototype.keys===Set.prototype.values};Cc.setHasCorrectName=function(){return INe?Set.prototype.has.name==="has":!0};Cc.setHasOldFirefoxInterface=function(){return new Set().size!==0||typeof Set.prototype.values!="function"||typeof Set.prototype.forEach!="function"}});var zm=D((F5e,KG)=>{"use strict";d();p();f();var ONe=ZS(),DNe=pn(),vE=nn(),bNe=VG(),ANe=VD().addIterableToSet,Bc=QD(),Ya;KG.exports=function(){if(typeof Set=="function"&&!Bc.setCompliantConstructor()&&Bc.setUsesSameValueZero()){var t=Set;if(!Ya||!(t===Ya||vE.get(Ya,"[[OrigSet]]")===t)){var r=t.prototype;Ya=function(){if(!(this instanceof Ya))throw new TypeError('Constructor Set requires "new"');if(this&&vE.has(this,"[[SetCompliantConstructorShim]]"))throw new TypeError("Bad construction");var i=new t;return vE.set(i,"[[SetCompliantConstructorShim]]",!0),arguments.length>0&&ANe(i,arguments[0]),delete i.constructor,ONe(i,Ya.prototype),i},vE.set(Ya,"[[OrigSet]]",Set),Ya.prototype=r,DNe(Ya.prototype,{constructor:Ya},{constructor:function(){return!0}})}return Ya}return typeof Set!="function"||Bc.isGoogleTranslate()||Bc.setHasOldFirefoxInterface()||!Bc.setHasCorrectName()||!Bc.setKeysIsValues()||!Bc.setSupportsChaining()||!Bc.setUsesSameValueZero()?bNe:Set}});var YD=D((U5e,$G)=>{"use strict";d();p();f();$G.exports=Sm()});var _E=D((M5e,GG)=>{"use strict";d();p();f();var RNe=Wt(),wNe=mn(),PNe=ke(),FNe=YD(),LNe=RNe("%Reflect.apply%",!0)||wNe("Function.prototype.apply");GG.exports=function(t,r){var n=arguments.length>2?arguments[2]:[];if(!FNe(n))throw new PNe("Assertion failed: optional `argumentsList`, if provided, must be a List");return LNe(t,r,n)}});var Hm=D(($5e,YG)=>{"use strict";d();p();f();var QG=ke(),CNe=Do(),BNe=Ll(),UNe=Yr();YG.exports=function(t,r){if(!UNe(t))throw new QG("Assertion failed: Type(O) is not Object");if(!BNe(r))throw new QG("Assertion failed: P is not a Property Key, got "+CNe(r));return t[r]}});var JD=D((J5e,JG)=>{"use strict";d();p();f();JG.exports=Om()});var WG=D((X5e,HG)=>{"use strict";d();p();f();var zG=ke(),kNe=Yr(),qNe=_E(),xNe=Hm(),MNe=JD();HG.exports=function(t,r){if(!MNe(r))throw new zG("method must be a function");var n=qNe(r,t);if(!kNe(n))throw new zG("iterator must return an object");var i=xNe(n,"next");return{"[[Iterator]]":n,"[[NextMethod]]":i,"[[Done]]":!1}}});var e2=D((rXe,ZG)=>{"use strict";d();p();f();var XG=SD();ZG.exports=function(t){return arguments.length>1?XG(t,arguments[1]):XG(t)}});var a2=D((oXe,i2)=>{"use strict";d();p();f();var n2=Wt(),jNe=n2("%RegExp%"),VNe=ke(),t2=n2("%parseInt%"),KNe=mn(),SE=AD(),r2=KNe("String.prototype.slice"),$Ne=SE(/^0b[01]+$/i),GNe=SE(/^0o[0-7]+$/i),QNe=SE(/^[-+]0x[0-9a-f]+$/i),YNe=["\x85","\u200B","\uFFFE"].join(""),JNe=new jNe("["+YNe+"]","g"),zNe=SE(JNe),HNe=PD();i2.exports=function e(t){if(typeof t!="string")throw new VNe("Assertion failed: `argument` is not a String");if($Ne(t))return+t2(r2(t,2),2);if(GNe(t))return+t2(r2(t,2),8);if(zNe(t)||QNe(t))return NaN;var r=HNe(t);return r!==t?e(r):+t}});var zD=D((lXe,s2)=>{"use strict";d();p();f();var WNe=Wt(),o2=ke(),XNe=WNe("%Number%"),ZNe=nE(),eTe=e2(),tTe=a2();s2.exports=function(t){var r=ZNe(t)?t:eTe(t,XNe);if(typeof r=="symbol")throw new o2("Cannot convert a Symbol value to a number");if(typeof r=="bigint")throw new o2("Conversion from 'BigInt' to 'number' is not allowed.");return typeof r=="string"?tTe(r):+r}});var c2=D((mXe,u2)=>{"use strict";d();p();f();var rTe=Nm();u2.exports=function(t){return typeof t=="bigint"?t:rTe(t)}});var f2=D((TXe,d2)=>{"use strict";d();p();f();var l2=c2(),nTe=ke();d2.exports=function(t){if(typeof t!="number"&&typeof t!="bigint")throw new nTe("argument must be a Number or a BigInt");var r=t<0?-l2(-t):l2(t);return r===0?0:r}});var m2=D((vXe,p2)=>{"use strict";d();p();f();var iTe=zD(),aTe=f2(),oTe=_s(),sTe=zT();p2.exports=function(t){var r=iTe(t);return oTe(r)||r===0?0:sTe(r)?aTe(r):r}});var N2=D((DXe,y2)=>{"use strict";d();p();f();var uTe=Pl(),OE=ke(),HD=Hm(),h2=JD(),cTe=m2(),lTe=zD(),dTe=Of(),fTe=Yr(),pTe=Kn(),mTe=Ga(),hTe=Pc();y2.exports=function(t){if(!fTe(t))throw new OE("obj is not an Object");var r=HD(t,"size"),n=lTe(r);if(dTe(n))throw new OE("`size` is not a non-NaN Number");var i=cTe(n);if(i<0)throw new uTe("set size must be non-negative");var a=HD(t,"has");if(!h2(a))throw new OE("has is not a function");var o=HD(t,"keys");if(!h2(o))throw new OE("keys is not a function");if(mTe(t)&&typeof StopIteration=="object"){var u=pTe(o);o=function(){return hTe(u(this))}}return{"[[SetObject]]":t,"[[Size]]":i,"[[Has]]":a,"[[Keys]]":o}}});var WD=D((wXe,T2)=>{"use strict";d();p();f();T2.exports=function(t){return!!t}});var g2=D((CXe,E2)=>{"use strict";d();p();f();var yTe=ke(),NTe=Yr(),TTe=Hm(),ETe=WD();E2.exports=function(t){if(!NTe(t))throw new yTe("Assertion failed: Type(iterResult) is not Object");return ETe(TTe(t,"done"))}});var S2=D((qXe,_2)=>{"use strict";d();p();f();var I2=ke(),gTe=Yr(),v2=_E(),ITe=Os();_2.exports=function(t){if(!ITe(t))throw new I2("Assertion failed: `iteratorRecord` must be an Iterator Record");var r;try{arguments.length<2?r=v2(t["[[NextMethod]]"],t["[[Iterator]]"]):r=v2(t["[[NextMethod]]"],t["[[Iterator]]"],[arguments[1]])}catch(n){throw t["[[Done]]"]=!0,n}if(!gTe(r))throw t["[[Done]]"]=!0,new I2("iterator next must return an object");return r}});var D2=D((VXe,O2)=>{"use strict";d();p();f();var vTe=ke(),_Te=g2(),STe=S2(),OTe=Os();O2.exports=function(t){if(!OTe(t))throw new vTe("Assertion failed: `iteratorRecord` must be an Iterator Record");var r=STe(t);try{var n=_Te(r)}catch(i){throw t["[[Done]]"]=!0,i}return n?(t["[[Done]]"]=!0,!1):r}});var A2=D((QXe,b2)=>{"use strict";d();p();f();var DTe=ke(),bTe=Yr(),ATe=Hm();b2.exports=function(t){if(!bTe(t))throw new DTe("Assertion failed: Type(iterResult) is not Object");return ATe(t,"value")}});var w2=D((HXe,R2)=>{"use strict";d();p();f();var RTe=ke(),wTe=D2(),PTe=A2(),FTe=Os();R2.exports=function(t){if(!FTe(t))throw new RTe("Assertion failed: `iteratorRecord` must be an Iterator Record");var r=wTe(t);if(!r||r==="DONE")return r;var n;try{n=PTe(r)}catch(i){throw t["[[Done]]"]=!0,i}return n}});var F2=D((e7e,P2)=>{"use strict";d();p();f();P2.exports=function(t){return t===0?0:t}});var B2=D((i7e,C2)=>{"use strict";d();p();f();var L2=_s();C2.exports=function(t,r){return t===r?t===0?1/t===1/r:!0:L2(t)&&L2(r)}});var k2=D((u7e,U2)=>{"use strict";d();p();f();U2.exports=function(t,r){for(var n=0;n{"use strict";d();p();f();var LTe=ke(),CTe=F2(),BTe=YD(),UTe=B2(),kTe=k2();q2.exports=function(t,r){if(!BTe(t)&&t!=="EMPTY")throw new LTe("Assertion failed: `setData` must be a List or ~EMPTY~");var n=CTe(r);return kTe(t,function(i){return UTe(i,n)})}});var z2=D((y7e,J2)=>{"use strict";d();p();f();var Rf=zm()(),Wm=Kn(),Xm=mn(),M2=_o(),qTe=CD(),j2=Xm("Set.prototype.forEach",!0),xTe=Wm(Rf.prototype.forEach),Y2=function(e,t){if(j2)try{return j2(e,t)}catch(r){}try{return xTe(e,t)}catch(r){}qTe(e,t)},V2=Xm("Set.prototype.add",!0),MTe=Rf.prototype.add&&Wm(Rf.prototype.add),jTe=function(e,t){if(V2)try{return V2(e,t)}catch(r){}return MTe(e,t)},K2=Xm("Set.prototype.has",!0),VTe=Wm(Rf.prototype.has),KTe=function(e,t){if(K2)try{return K2(e,t)}catch(r){}return VTe(e,t)},$2=Xm("Set.prototype.delete",!0),$Te=Wm(Rf.prototype.delete),GTe=function(e,t){if($2)try{return $2(e,t)}catch(r){}return $Te(e,t)},G2=Xm("Set.prototype.size",!0),Q2=M2?Wm(M2(Rf.prototype,"size").get):null,QTe=function(t){var r=0;return Y2(t,function(){r+=1}),r},YTe=function(e){if(G2)try{return G2(e)}catch(t){}if(Q2)try{return Q2(e)}catch(t){}return QTe(e)};J2.exports={add:jTe,delete:GTe,forEach:Y2,has:KTe,size:YTe}});var Z2=D((g7e,X2)=>{"use strict";d();p();f();var JTe=ke(),XD=zm()(),zTe=_E(),HTe=WG(),WTe=N2(),XTe=w2(),H2=x2(),ZTe=WD(),eEe=kT(),tEe=Kn(),rEe=Rm(),nEe=Ga(),ZD=z2(),iEe=ZD.forEach,aEe=ZD.add,oEe=ZD.size,W2=rEe("Array.prototype.push"),sEe=tEe(XD.prototype.has);X2.exports=function(t){var r=this;if(!nEe(r)&&!(r instanceof XD))throw new JTe("Method Set.prototype.intersection called on incompatible receiver "+r);var n=WTe(t),i=[],a=oEe(r);if(a<=n["[[Size]]"]){var o=0;iEe(r,function(T){if(o{"use strict";d();p();f();var DE=zm()(),uEe=Z2();eQ.exports=function(){if(typeof DE.prototype.intersection=="function"){var t=!1,r={size:1/0,has:function(){},keys:function(){return t=!0,[].values()}};if(new DE([1]).intersection(r),r.size=2147483648,new DE([1]).intersection(r),!t)return DE.prototype.intersection}return uEe}});var nQ=D((A7e,rQ)=>{"use strict";d();p();f();var Zm=Kn(),Uc=pn(),eh=$i(),cEe=Nf(),lEe=qD()(),dEe=Ol(),eb=Pc(),fEe=zm(),ql=QD(),pEe=gE().addIterator,Ja=function(){return!0},mEe=function(e){return Uc(lEe,{Set:e},{Set:Ja}),e};rQ.exports=function(){if(typeof Set=="function"&&(ql.isGoogleTranslate()&&(delete Set.prototype.remove,delete Set.prototype.items,delete Set.prototype.map,Uc(Set.prototype,{keys:Set.prototype.values},{keys:Ja})),ql.setHasOldFirefoxInterface())){if(typeof new Set().size=="function"&&dEe()){var t=Zm(Set.prototype.size);cEe(Set.prototype,"size",{"[[Configurable]]":!0,"[[Enumerable]]":!1,"[[Get]]":function(){return t(this)}})}var r=Zm(Set.prototype.entries),n=Zm(Set.prototype.values);if(Uc(Set.prototype,{entries:function(){return eb(r(this))},values:function(){return eb(n(this))}},{entries:Ja,values:Ja}),typeof Set.prototype.forEach!="function"){var i=Zm(Set.prototype.iterator);Uc(Set.prototype,{forEach:function(N){for(var T=eb(i(this)),O=arguments.length>1?arguments[1]:void 0,R=Zm(N,O),C=T.next();!C.done;)R(C.value,C.value,this),C=T.next()}},{forEach:Ja})}}var a=typeof Set=="function"?Set:null;(typeof Set!="function"||!ql.setCompliantConstructor())&&(a=fEe(),mEe(a));var o=a.prototype,u=o.add,l=o.has,m=o.delete;return ql.setUsesSameValueZero()?ql.setSupportsChaining()||Uc(a.prototype,{add:function(N){return eh(u,this,[N]),this}},{add:Ja}):Uc(a.prototype,{add:function(N){return eh(u,this,[N===0?0:N]),this},delete:function(N){return eh(m,this,[N===0?0:N])},has:function(N){return eh(l,this,[N===0?0:N])}},{add:Ja,delete:Ja,has:Ja}),ql.setKeysIsValues()||Uc(a.prototype,{keys:a.prototype.values},{keys:Ja}),ql.setHasCorrectName()||Uc(a.prototype,{has:function(N){return eh(l,this,N)}},{has:Ja}),Object.getPrototypeOf&&pEe(Object.getPrototypeOf(new a().values())),a}});var aQ=D((F7e,iQ)=>{"use strict";d();p();f();var hEe=tQ(),yEe=pn(),NEe=nQ();iQ.exports=function(){NEe();var t=hEe();return yEe(Set.prototype,{intersection:t},{intersection:function(){return Set.prototype.intersection!==t}}),t}});var uQ=D((x7e,sQ)=>{"use strict";d();p();f();var TEe=Pl(),bE=ke(),tb=Ao(),oQ=ua(),EEe=qm(),gEe=Sf(),IEe=ca(),vEe=Of(),_Ee=Kn(),SEe=Ga(),OEe=Pc();sQ.exports=function(t){if(IEe(t)!=="Object")throw new bE("obj is not an Object");var r=tb(t,"size"),n=gEe(r);if(vEe(n))throw new bE("size is not a non-NaN Number");var i=EEe(n);if(i<0)throw new TEe("set size must be non-negative");var a=tb(t,"has");if(!oQ(a))throw new bE("has is not a function");var o=tb(t,"keys");if(!oQ(o))throw new bE("keys is not a function");if(SEe(t)&&typeof StopIteration=="object"){var u=_Ee(o);o=function(){return OEe(u(this))}}return{"[[SetObject]]":t,"[[Size]]":i,"[[Has]]":a,"[[Keys]]":o}}});var rb=D((K7e,cQ)=>{"use strict";d();p();f();var DEe=ZO();cQ.exports=function(t){return new DEe("normal",t)}});var fQ=D((Y7e,dQ)=>{"use strict";d();p();f();var bEe=ke(),AEe=$a()(),REe=$i(),wEe=wm(),PEe=uQ(),FEe=Ef(),LEe=NE(),CEe=rb(),BEe=yf(),UEe=Ga(),nb=Vm(),kEe=nb.forEach,qEe=nb.has,lQ=nb.size;dQ.exports=function(t){var r=this;if(!UEe(r)&&!(r instanceof AEe))throw new bEe("Method Set.prototype.isDisjointFrom called on incompatible receiver "+r);var n=PEe(t),i=lQ(r);if(i<=n["[[Size]]"])try{kEe(r,function(u){var l=0;if(l{"use strict";d();p();f();var AE=$a()(),xEe=fQ();pQ.exports=function(){if(typeof AE.prototype.isDisjointFrom=="function"){var t=!1,r={size:1/0,has:function(){},keys:function(){return t=!0,[].values()}};if(new AE([1]).isDisjointFrom(r),r.size=2147483648,new AE([1]).isDisjointFrom(r),!t)return AE.prototype.isDisjointFrom}return xEe}});var yQ=D((tZe,hQ)=>{"use strict";d();p();f();var MEe=mQ(),jEe=pn(),VEe=Gm();hQ.exports=function(){VEe();var t=MEe();return jEe(Set.prototype,{isDisjointFrom:t},{isDisjointFrom:function(){return Set.prototype.isDisjointFrom!==t}}),t}});var EQ=D((uZe,TQ)=>{"use strict";d();p();f();var KEe=Pl(),RE=ke(),ib=Ao(),NQ=ua(),$Ee=qm(),GEe=Sf(),QEe=ca(),YEe=Of(),JEe=Kn(),zEe=Ga(),HEe=Pc();TQ.exports=function(t){if(QEe(t)!=="Object")throw new RE("obj is not an Object");var r=ib(t,"size"),n=GEe(r);if(YEe(n))throw new RE("size is not a non-NaN Number");var i=$Ee(n);if(i<0)throw new KEe("set size must be non-negative");var a=ib(t,"has");if(!NQ(a))throw new RE("has is not a function");var o=ib(t,"keys");if(!NQ(o))throw new RE("keys is not a function");if(zEe(t)&&typeof StopIteration=="object"){var u=JEe(o);o=function(){return HEe(u(this))}}return{"[[Set]]":t,"[[Size]]":i,"[[Has]]":a,"[[Keys]]":o}}});var _Q=D((fZe,vQ)=>{"use strict";d();p();f();var WEe=ke(),XEe=$a()(),ZEe=$i(),ege=EQ(),tge=yf(),rge=Ga(),IQ=Vm(),nge=IQ.forEach,gQ=IQ.size;vQ.exports=function(t){var r=this;if(!rge(r)&&!(r instanceof XEe))throw new WEe("Method Set.prototype.isSubsetOf called on incompatible receiver "+r);var n=ege(t),i=gQ(r);if(i>n["[[Size]]"])return!1;try{var a=0;nge(r,function(o){if(a{"use strict";d();p();f();var SQ=$a()(),ige=_Q();OQ.exports=function(){return typeof SQ.prototype.isSubsetOf=="function"?SQ.prototype.isSubsetOf:ige}});var AQ=D((gZe,bQ)=>{"use strict";d();p();f();var age=DQ(),oge=pn(),sge=Gm();bQ.exports=function(){sge();var t=age();return oge(Set.prototype,{isSubsetOf:t},{isSubsetOf:function(){return Set.prototype.isSubsetOf!==t}}),t}});var PQ=D((bZe,wQ)=>{"use strict";d();p();f();var uge=Pl(),wE=ke(),ab=Ao(),RQ=ua(),cge=qm(),lge=Sf(),dge=ca(),fge=Of(),pge=Kn(),mge=Ga(),hge=Pc();wQ.exports=function(t){if(dge(t)!=="Object")throw new wE("obj is not an Object");var r=ab(t,"size"),n=lge(r);if(fge(n))throw new wE("size is not a non-NaN Number");var i=cge(n);if(i<0)throw new uge("set size must be non-negative");var a=ab(t,"has");if(!RQ(a))throw new wE("has is not a function");var o=ab(t,"keys");if(!RQ(o))throw new wE("keys is not a function");if(mge(t)&&typeof StopIteration=="object"){var u=pge(o);o=function(){return hge(u(this))}}return{"[[Set]]":t,"[[Size]]":i,"[[Has]]":a,"[[Keys]]":o}}});var CQ=D((PZe,LQ)=>{"use strict";d();p();f();var yge=ke(),Nge=$a()(),Tge=wm(),Ege=PQ(),gge=Ef(),Ige=NE(),vge=rb(),_ge=Ga(),FQ=Vm(),Sge=FQ.has,Oge=FQ.size;LQ.exports=function(t){var r=this;if(!_ge(r)&&!(r instanceof Nge))throw new yge("Method Set.prototype.isSupersetOf called on incompatible receiver "+r);var n=Ege(t),i=Oge(r);if(i{"use strict";d();p();f();var BQ=$a()(),Dge=CQ();UQ.exports=function(){return typeof BQ.prototype.isSupersetOf=="function"?BQ.prototype.isSupersetOf:Dge}});var xQ=D((xZe,qQ)=>{"use strict";d();p();f();var bge=kQ(),Age=pn(),Rge=Gm();qQ.exports=function(){Rge();var t=bge();return Age(Set.prototype,{isSupersetOf:t},{isSupersetOf:function(){return Set.prototype.isSupersetOf!==t}}),t}});var MQ=D(wf=>{"use strict";d();p();f();Object.defineProperty(wf,"__esModule",{value:!0});wf.versionInfo=wf.version=void 0;var wge="16.9.0";wf.version=wge;var Pge=Object.freeze({major:16,minor:9,patch:0,preReleaseTag:null});wf.versionInfo=Pge});var si=D(ob=>{"use strict";d();p();f();Object.defineProperty(ob,"__esModule",{value:!0});ob.devAssert=Fge;function Fge(e,t){if(!!!e)throw new Error(t)}});var PE=D(sb=>{"use strict";d();p();f();Object.defineProperty(sb,"__esModule",{value:!0});sb.isPromise=Lge;function Lge(e){return typeof(e==null?void 0:e.then)=="function"}});var wo=D(ub=>{"use strict";d();p();f();Object.defineProperty(ub,"__esModule",{value:!0});ub.isObjectLike=Cge;function Cge(e){return typeof e=="object"&&e!==null}});var Xn=D(cb=>{"use strict";d();p();f();Object.defineProperty(cb,"__esModule",{value:!0});cb.invariant=Bge;function Bge(e,t){if(!!!e)throw new Error(t!=null?t:"Unexpected invariant triggered.")}});var FE=D(lb=>{"use strict";d();p();f();Object.defineProperty(lb,"__esModule",{value:!0});lb.getLocation=qge;var Uge=Xn(),kge=/\r\n|[\n\r]/g;function qge(e,t){let r=0,n=1;for(let i of e.body.matchAll(kge)){if(typeof i.index=="number"||(0,Uge.invariant)(!1),i.index>=t)break;r=i.index+i[0].length,n+=1}return{line:n,column:t+1-r}}});var db=D(LE=>{"use strict";d();p();f();Object.defineProperty(LE,"__esModule",{value:!0});LE.printLocation=Mge;LE.printSourceLocation=VQ;var xge=FE();function Mge(e){return VQ(e.source,(0,xge.getLocation)(e.source,e.start))}function VQ(e,t){let r=e.locationOffset.column-1,n="".padStart(r)+e.body,i=t.line-1,a=e.locationOffset.line-1,o=t.line+a,u=t.line===1?r:0,l=t.column+u,m=`${e.name}:${o}:${l} +`,h=n.split(/\r\n|[\n\r]/g),N=h[i];if(N.length>120){let T=Math.floor(l/80),O=l%80,R=[];for(let C=0;C["|",C]),["|","^".padStart(O)],["|",R[T+1]]])}return m+jQ([[`${o-1} |`,h[i-1]],[`${o} |`,N],["|","^".padStart(l)],[`${o+1} |`,h[i+1]]])}function jQ(e){let t=e.filter(([n,i])=>i!==void 0),r=Math.max(...t.map(([n])=>n.length));return t.map(([n,i])=>n.padStart(r)+(i?" "+i:"")).join(` +`)}});var at=D(Pf=>{"use strict";d();p();f();Object.defineProperty(Pf,"__esModule",{value:!0});Pf.GraphQLError=void 0;Pf.formatError=$ge;Pf.printError=Kge;var jge=wo(),KQ=FE(),$Q=db();function Vge(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 fb=class e extends Error{constructor(t,...r){var n,i,a;let{nodes:o,source:u,positions:l,path:m,originalError:h,extensions:N}=Vge(r);super(t),this.name="GraphQLError",this.path=m!=null?m:void 0,this.originalError=h!=null?h:void 0,this.nodes=GQ(Array.isArray(o)?o:o?[o]:void 0);let T=GQ((n=this.nodes)===null||n===void 0?void 0:n.map(R=>R.loc).filter(R=>R!=null));this.source=u!=null?u:T==null||(i=T[0])===null||i===void 0?void 0:i.source,this.positions=l!=null?l:T==null?void 0:T.map(R=>R.start),this.locations=l&&u?l.map(R=>(0,KQ.getLocation)(u,R)):T==null?void 0:T.map(R=>(0,KQ.getLocation)(R.source,R.start));let O=(0,jge.isObjectLike)(h==null?void 0:h.extensions)?h==null?void 0:h.extensions:void 0;this.extensions=(a=N!=null?N:O)!==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}}),h!=null&&h.stack?Object.defineProperty(this,"stack",{value:h.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 r of this.nodes)r.loc&&(t+=` -`+(0,DF.printLocation)(n.loc));else if(this.source&&this.locations)for(let n of this.locations)t+=` +`+(0,$Q.printLocation)(r.loc));else if(this.source&&this.locations)for(let r of this.locations)t+=` -`+(0,DF.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}};Il.GraphQLError=pI;function bF(e){return e===void 0||e.length===0?void 0:e}function gH(e){return e.toString()}function _H(e){return e.toJSON()}});var nN=F(mI=>{"use strict";m();T();N();Object.defineProperty(mI,"__esModule",{value:!0});mI.syntaxError=SH;var vH=et();function SH(e,t,n){return new vH.GraphQLError(`Syntax Error: ${n}`,{source:e,positions:[t]})}});var Ka=F(Bi=>{"use strict";m();T();N();Object.defineProperty(Bi,"__esModule",{value:!0});Bi.Token=Bi.QueryDocumentKeys=Bi.OperationTypeNode=Bi.Location=void 0;Bi.isNode=DH;var NI=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}}};Bi.Location=NI;var TI=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}}};Bi.Token=TI;var AF={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"]};Bi.QueryDocumentKeys=AF;var OH=new Set(Object.keys(AF));function DH(e){let t=e==null?void 0:e.kind;return typeof t=="string"&&OH.has(t)}var EI;Bi.OperationTypeNode=EI;(function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"})(EI||(Bi.OperationTypeNode=EI={}))});var gl=F(Jd=>{"use strict";m();T();N();Object.defineProperty(Jd,"__esModule",{value:!0});Jd.DirectiveLocation=void 0;var hI;Jd.DirectiveLocation=hI;(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"})(hI||(Jd.DirectiveLocation=hI={}))});var Ut=F(zd=>{"use strict";m();T();N();Object.defineProperty(zd,"__esModule",{value:!0});zd.Kind=void 0;var yI;zd.Kind=yI;(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"})(yI||(zd.Kind=yI={}))});var rN=F(ic=>{"use strict";m();T();N();Object.defineProperty(ic,"__esModule",{value:!0});ic.isDigit=RF;ic.isLetter=II;ic.isNameContinue=RH;ic.isNameStart=AH;ic.isWhiteSpace=bH;function bH(e){return e===9||e===32}function RF(e){return e>=48&&e<=57}function II(e){return e>=97&&e<=122||e>=65&&e<=90}function AH(e){return II(e)||e===95}function RH(e){return II(e)||RF(e)||e===95}});var Wd=F(Hd=>{"use strict";m();T();N();Object.defineProperty(Hd,"__esModule",{value:!0});Hd.dedentBlockStringLines=PH;Hd.isPrintableAsBlockString=wH;Hd.printBlockString=LH;var gI=rN();function PH(e){var t;let n=Number.MAX_SAFE_INTEGER,r=null,i=-1;for(let o=0;ou===0?o:o.slice(n)).slice((t=r)!==null&&t!==void 0?t:0,i+1)}function FH(e){let t=0;for(;t1&&r.slice(1).every(v=>v.length===0||(0,gI.isWhiteSpace)(v.charCodeAt(0))),o=n.endsWith('\\"""'),u=e.endsWith('"')&&!o,l=e.endsWith("\\"),d=u||l,p=!(t!=null&&t.minimize)&&(!i||e.length>70||d||a||o),E="",h=i&&(0,gI.isWhiteSpace)(e.charCodeAt(0));return(p&&!h||a)&&(E+=` -`),E+=n,(p||d)&&(E+=` -`),'"""'+E+'"""'}});var Zd=F(Xd=>{"use strict";m();T();N();Object.defineProperty(Xd,"__esModule",{value:!0});Xd.TokenKind=void 0;var _I;Xd.TokenKind=_I;(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"})(_I||(Xd.TokenKind=_I={}))});var aN=F(tf=>{"use strict";m();T();N();Object.defineProperty(tf,"__esModule",{value:!0});tf.Lexer=void 0;tf.isPunctuatorTokenKind=UH;var pa=nN(),FF=Ka(),CH=Wd(),ac=rN(),Dt=Zd(),SI=class{constructor(t){let n=new FF.Token(Dt.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!==Dt.TokenKind.EOF)do if(t.next)t=t.next;else{let n=BH(this,t.end);t.next=n,n.prev=t,t=n}while(t.kind===Dt.TokenKind.COMMENT);return t}};tf.Lexer=SI;function UH(e){return e===Dt.TokenKind.BANG||e===Dt.TokenKind.DOLLAR||e===Dt.TokenKind.AMP||e===Dt.TokenKind.PAREN_L||e===Dt.TokenKind.PAREN_R||e===Dt.TokenKind.SPREAD||e===Dt.TokenKind.COLON||e===Dt.TokenKind.EQUALS||e===Dt.TokenKind.AT||e===Dt.TokenKind.BRACKET_L||e===Dt.TokenKind.BRACKET_R||e===Dt.TokenKind.BRACE_L||e===Dt.TokenKind.PIPE||e===Dt.TokenKind.BRACE_R}function _l(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function iN(e,t){return wF(e.charCodeAt(t))&&LF(e.charCodeAt(t+1))}function wF(e){return e>=55296&&e<=56319}function LF(e){return e>=56320&&e<=57343}function sc(e,t){let n=e.source.body.codePointAt(t);if(n===void 0)return Dt.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 Wn(e,t,n,r,i){let a=e.line,o=1+n-e.lineStart;return new FF.Token(t,n,r,a,o,i)}function BH(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 jH(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,pa.syntaxError)(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function KH(e,t){let n=e.source.body,r=n.length,i=e.lineStart,a=t+3,o=a,u="",l=[];for(;a{"use strict";m();T();N();Object.defineProperty(OI,"__esModule",{value:!0});OI.inspect=QH;var GH=10,CF=2;function QH(e){return sN(e,[])}function sN(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return YH(e,t);default:return String(e)}}function YH(e,t){if(e===null)return"null";if(t.includes(e))return"[Circular]";let n=[...t,e];if(JH(e)){let r=e.toJSON();if(r!==e)return typeof r=="string"?r:sN(r,n)}else if(Array.isArray(e))return HH(e,n);return zH(e,n)}function JH(e){return typeof e.toJSON=="function"}function zH(e,t){let n=Object.entries(e);return n.length===0?"{}":t.length>CF?"["+WH(e)+"]":"{ "+n.map(([i,a])=>i+": "+sN(a,t)).join(", ")+" }"}function HH(e,t){if(e.length===0)return"[]";if(t.length>CF)return"[Array]";let n=Math.min(GH,e.length),r=e.length-n,i=[];for(let a=0;a1&&i.push(`... ${r} more items`),"["+i.join(", ")+"]"}function WH(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 nf=F(oN=>{"use strict";m();T();N();Object.defineProperty(oN,"__esModule",{value:!0});oN.instanceOf=void 0;var XH=nn(),ZH=globalThis.process&&O.env.NODE_ENV==="production",e3=ZH?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,XH.inspect)(t);throw new Error(`Cannot use ${i} "${o}" from another module or realm. +`+(0,$Q.printSourceLocation)(this.source,r);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}};Pf.GraphQLError=fb;function GQ(e){return e===void 0||e.length===0?void 0:e}function Kge(e){return e.toString()}function $ge(e){return e.toJSON()}});var CE=D(pb=>{"use strict";d();p();f();Object.defineProperty(pb,"__esModule",{value:!0});pb.syntaxError=Qge;var Gge=at();function Qge(e,t,r){return new Gge.GraphQLError(`Syntax Error: ${r}`,{source:e,positions:[t]})}});var Po=D(la=>{"use strict";d();p();f();Object.defineProperty(la,"__esModule",{value:!0});la.Token=la.QueryDocumentKeys=la.OperationTypeNode=la.Location=void 0;la.isNode=Jge;var mb=class{constructor(t,r,n){this.start=t.start,this.end=r.end,this.startToken=t,this.endToken=r,this.source=n}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}};la.Location=mb;var hb=class{constructor(t,r,n,i,a,o){this.kind=t,this.start=r,this.end=n,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}}};la.Token=hb;var QQ={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"]};la.QueryDocumentKeys=QQ;var Yge=new Set(Object.keys(QQ));function Jge(e){let t=e==null?void 0:e.kind;return typeof t=="string"&&Yge.has(t)}var yb;la.OperationTypeNode=yb;(function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"})(yb||(la.OperationTypeNode=yb={}))});var Ff=D(th=>{"use strict";d();p();f();Object.defineProperty(th,"__esModule",{value:!0});th.DirectiveLocation=void 0;var Nb;th.DirectiveLocation=Nb;(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"})(Nb||(th.DirectiveLocation=Nb={}))});var jt=D(rh=>{"use strict";d();p();f();Object.defineProperty(rh,"__esModule",{value:!0});rh.Kind=void 0;var Tb;rh.Kind=Tb;(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"})(Tb||(rh.Kind=Tb={}))});var BE=D(xl=>{"use strict";d();p();f();Object.defineProperty(xl,"__esModule",{value:!0});xl.isDigit=YQ;xl.isLetter=Eb;xl.isNameContinue=Wge;xl.isNameStart=Hge;xl.isWhiteSpace=zge;function zge(e){return e===9||e===32}function YQ(e){return e>=48&&e<=57}function Eb(e){return e>=97&&e<=122||e>=65&&e<=90}function Hge(e){return Eb(e)||e===95}function Wge(e){return Eb(e)||YQ(e)||e===95}});var ih=D(nh=>{"use strict";d();p();f();Object.defineProperty(nh,"__esModule",{value:!0});nh.dedentBlockStringLines=Xge;nh.isPrintableAsBlockString=eIe;nh.printBlockString=tIe;var gb=BE();function Xge(e){var t;let r=Number.MAX_SAFE_INTEGER,n=null,i=-1;for(let o=0;ou===0?o:o.slice(r)).slice((t=n)!==null&&t!==void 0?t:0,i+1)}function Zge(e){let t=0;for(;t1&&n.slice(1).every(O=>O.length===0||(0,gb.isWhiteSpace)(O.charCodeAt(0))),o=r.endsWith('\\"""'),u=e.endsWith('"')&&!o,l=e.endsWith("\\"),m=u||l,h=!(t!=null&&t.minimize)&&(!i||e.length>70||m||a||o),N="",T=i&&(0,gb.isWhiteSpace)(e.charCodeAt(0));return(h&&!T||a)&&(N+=` +`),N+=r,(h||m)&&(N+=` +`),'"""'+N+'"""'}});var oh=D(ah=>{"use strict";d();p();f();Object.defineProperty(ah,"__esModule",{value:!0});ah.TokenKind=void 0;var Ib;ah.TokenKind=Ib;(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"})(Ib||(ah.TokenKind=Ib={}))});var kE=D(uh=>{"use strict";d();p();f();Object.defineProperty(uh,"__esModule",{value:!0});uh.Lexer=void 0;uh.isPunctuatorTokenKind=nIe;var za=CE(),zQ=Po(),rIe=ih(),Ml=BE(),wt=oh(),_b=class{constructor(t){let r=new zQ.Token(wt.TokenKind.SOF,0,0,0,0);this.source=t,this.lastToken=r,this.token=r,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!==wt.TokenKind.EOF)do if(t.next)t=t.next;else{let r=iIe(this,t.end);t.next=r,r.prev=t,t=r}while(t.kind===wt.TokenKind.COMMENT);return t}};uh.Lexer=_b;function nIe(e){return e===wt.TokenKind.BANG||e===wt.TokenKind.DOLLAR||e===wt.TokenKind.AMP||e===wt.TokenKind.PAREN_L||e===wt.TokenKind.PAREN_R||e===wt.TokenKind.SPREAD||e===wt.TokenKind.COLON||e===wt.TokenKind.EQUALS||e===wt.TokenKind.AT||e===wt.TokenKind.BRACKET_L||e===wt.TokenKind.BRACKET_R||e===wt.TokenKind.BRACE_L||e===wt.TokenKind.PIPE||e===wt.TokenKind.BRACE_R}function Lf(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function UE(e,t){return HQ(e.charCodeAt(t))&&WQ(e.charCodeAt(t+1))}function HQ(e){return e>=55296&&e<=56319}function WQ(e){return e>=56320&&e<=57343}function jl(e,t){let r=e.source.body.codePointAt(t);if(r===void 0)return wt.TokenKind.EOF;if(r>=32&&r<=126){let n=String.fromCodePoint(r);return n==='"'?`'"'`:`"${n}"`}return"U+"+r.toString(16).toUpperCase().padStart(4,"0")}function hn(e,t,r,n,i){let a=e.line,o=1+r-e.lineStart;return new zQ.Token(t,r,n,a,o,i)}function iIe(e,t){let r=e.source.body,n=r.length,i=t;for(;i=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function lIe(e,t){let r=e.source.body;switch(r.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,za.syntaxError)(e.source,t,`Invalid character escape sequence: "${r.slice(t,t+2)}".`)}function dIe(e,t){let r=e.source.body,n=r.length,i=e.lineStart,a=t+3,o=a,u="",l=[];for(;a{"use strict";d();p();f();Object.defineProperty(Sb,"__esModule",{value:!0});Sb.inspect=mIe;var pIe=10,XQ=2;function mIe(e){return qE(e,[])}function qE(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return hIe(e,t);default:return String(e)}}function hIe(e,t){if(e===null)return"null";if(t.includes(e))return"[Circular]";let r=[...t,e];if(yIe(e)){let n=e.toJSON();if(n!==e)return typeof n=="string"?n:qE(n,r)}else if(Array.isArray(e))return TIe(e,r);return NIe(e,r)}function yIe(e){return typeof e.toJSON=="function"}function NIe(e,t){let r=Object.entries(e);return r.length===0?"{}":t.length>XQ?"["+EIe(e)+"]":"{ "+r.map(([i,a])=>i+": "+qE(a,t)).join(", ")+" }"}function TIe(e,t){if(e.length===0)return"[]";if(t.length>XQ)return"[Array]";let r=Math.min(pIe,e.length),n=e.length-r,i=[];for(let a=0;a1&&i.push(`... ${n} more items`),"["+i.join(", ")+"]"}function EIe(e){let t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if(t==="Object"&&typeof e.constructor=="function"){let r=e.constructor.name;if(typeof r=="string"&&r!=="")return r}return t}});var ch=D(xE=>{"use strict";d();p();f();Object.defineProperty(xE,"__esModule",{value:!0});xE.instanceOf=void 0;var gIe=ur(),IIe=globalThis.process&&E.env.NODE_ENV==="production",vIe=IIe?function(t,r){return t instanceof r}:function(t,r){if(t instanceof r)return!0;if(typeof t=="object"&&t!==null){var n;let i=r.prototype[Symbol.toStringTag],a=Symbol.toStringTag in t?t[Symbol.toStringTag]:(n=t.constructor)===null||n===void 0?void 0:n.name;if(i===a){let o=(0,gIe.inspect)(t);throw new Error(`Cannot use ${i} "${o}" 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,42 +51,42 @@ 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};oN.instanceOf=e3});var cN=F(rf=>{"use strict";m();T();N();Object.defineProperty(rf,"__esModule",{value:!0});rf.Source=void 0;rf.isSource=r3;var DI=Gr(),t3=nn(),n3=nf(),uN=class{constructor(t,n="GraphQL request",r={line:1,column:1}){typeof t=="string"||(0,DI.devAssert)(!1,`Body must be a string. Received: ${(0,t3.inspect)(t)}.`),this.body=t,this.name=n,this.locationOffset=r,this.locationOffset.line>0||(0,DI.devAssert)(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||(0,DI.devAssert)(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}};rf.Source=uN;function r3(e){return(0,n3.instanceOf)(e,uN)}});var vl=F(Nu=>{"use strict";m();T();N();Object.defineProperty(Nu,"__esModule",{value:!0});Nu.Parser=void 0;Nu.parse=a3;Nu.parseConstValue=o3;Nu.parseType=u3;Nu.parseValue=s3;var oc=nN(),af=Ka(),i3=gl(),ut=Ut(),BF=aN(),UF=cN(),be=Zd();function a3(e,t){return new uc(e,t).parseDocument()}function s3(e,t){let n=new uc(e,t);n.expectToken(be.TokenKind.SOF);let r=n.parseValueLiteral(!1);return n.expectToken(be.TokenKind.EOF),r}function o3(e,t){let n=new uc(e,t);n.expectToken(be.TokenKind.SOF);let r=n.parseConstValueLiteral();return n.expectToken(be.TokenKind.EOF),r}function u3(e,t){let n=new uc(e,t);n.expectToken(be.TokenKind.SOF);let r=n.parseTypeReference();return n.expectToken(be.TokenKind.EOF),r}var uc=class{constructor(t,n={}){let r=(0,UF.isSource)(t)?t:new UF.Source(t);this._lexer=new BF.Lexer(r),this._options=n,this._tokenCounter=0}parseName(){let t=this.expectToken(be.TokenKind.NAME);return this.node(t,{kind:ut.Kind.NAME,value:t.value})}parseDocument(){return this.node(this._lexer.token,{kind:ut.Kind.DOCUMENT,definitions:this.many(be.TokenKind.SOF,this.parseDefinition,be.TokenKind.EOF)})}parseDefinition(){if(this.peek(be.TokenKind.BRACE_L))return this.parseOperationDefinition();let t=this.peekDescription(),n=t?this._lexer.lookahead():this._lexer.token;if(n.kind===be.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,oc.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(be.TokenKind.BRACE_L))return this.node(t,{kind:ut.Kind.OPERATION_DEFINITION,operation:af.OperationTypeNode.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});let n=this.parseOperationType(),r;return this.peek(be.TokenKind.NAME)&&(r=this.parseName()),this.node(t,{kind:ut.Kind.OPERATION_DEFINITION,operation:n,name:r,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){let t=this.expectToken(be.TokenKind.NAME);switch(t.value){case"query":return af.OperationTypeNode.QUERY;case"mutation":return af.OperationTypeNode.MUTATION;case"subscription":return af.OperationTypeNode.SUBSCRIPTION}throw this.unexpected(t)}parseVariableDefinitions(){return this.optionalMany(be.TokenKind.PAREN_L,this.parseVariableDefinition,be.TokenKind.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:ut.Kind.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(be.TokenKind.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(be.TokenKind.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){let t=this._lexer.token;return this.expectToken(be.TokenKind.DOLLAR),this.node(t,{kind:ut.Kind.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:ut.Kind.SELECTION_SET,selections:this.many(be.TokenKind.BRACE_L,this.parseSelection,be.TokenKind.BRACE_R)})}parseSelection(){return this.peek(be.TokenKind.SPREAD)?this.parseFragment():this.parseField()}parseField(){let t=this._lexer.token,n=this.parseName(),r,i;return this.expectOptionalToken(be.TokenKind.COLON)?(r=n,i=this.parseName()):i=n,this.node(t,{kind:ut.Kind.FIELD,alias:r,name:i,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(be.TokenKind.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(t){let n=t?this.parseConstArgument:this.parseArgument;return this.optionalMany(be.TokenKind.PAREN_L,n,be.TokenKind.PAREN_R)}parseArgument(t=!1){let n=this._lexer.token,r=this.parseName();return this.expectToken(be.TokenKind.COLON),this.node(n,{kind:ut.Kind.ARGUMENT,name:r,value:this.parseValueLiteral(t)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){let t=this._lexer.token;this.expectToken(be.TokenKind.SPREAD);let n=this.expectOptionalKeyword("on");return!n&&this.peek(be.TokenKind.NAME)?this.node(t,{kind:ut.Kind.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(t,{kind:ut.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:ut.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:ut.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 be.TokenKind.BRACKET_L:return this.parseList(t);case be.TokenKind.BRACE_L:return this.parseObject(t);case be.TokenKind.INT:return this.advanceLexer(),this.node(n,{kind:ut.Kind.INT,value:n.value});case be.TokenKind.FLOAT:return this.advanceLexer(),this.node(n,{kind:ut.Kind.FLOAT,value:n.value});case be.TokenKind.STRING:case be.TokenKind.BLOCK_STRING:return this.parseStringLiteral();case be.TokenKind.NAME:switch(this.advanceLexer(),n.value){case"true":return this.node(n,{kind:ut.Kind.BOOLEAN,value:!0});case"false":return this.node(n,{kind:ut.Kind.BOOLEAN,value:!1});case"null":return this.node(n,{kind:ut.Kind.NULL});default:return this.node(n,{kind:ut.Kind.ENUM,value:n.value})}case be.TokenKind.DOLLAR:if(t)if(this.expectToken(be.TokenKind.DOLLAR),this._lexer.token.kind===be.TokenKind.NAME){let r=this._lexer.token.value;throw(0,oc.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:ut.Kind.STRING,value:t.value,block:t.kind===be.TokenKind.BLOCK_STRING})}parseList(t){let n=()=>this.parseValueLiteral(t);return this.node(this._lexer.token,{kind:ut.Kind.LIST,values:this.any(be.TokenKind.BRACKET_L,n,be.TokenKind.BRACKET_R)})}parseObject(t){let n=()=>this.parseObjectField(t);return this.node(this._lexer.token,{kind:ut.Kind.OBJECT,fields:this.any(be.TokenKind.BRACE_L,n,be.TokenKind.BRACE_R)})}parseObjectField(t){let n=this._lexer.token,r=this.parseName();return this.expectToken(be.TokenKind.COLON),this.node(n,{kind:ut.Kind.OBJECT_FIELD,name:r,value:this.parseValueLiteral(t)})}parseDirectives(t){let n=[];for(;this.peek(be.TokenKind.AT);)n.push(this.parseDirective(t));return n}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(t){let n=this._lexer.token;return this.expectToken(be.TokenKind.AT),this.node(n,{kind:ut.Kind.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(t)})}parseTypeReference(){let t=this._lexer.token,n;if(this.expectOptionalToken(be.TokenKind.BRACKET_L)){let r=this.parseTypeReference();this.expectToken(be.TokenKind.BRACKET_R),n=this.node(t,{kind:ut.Kind.LIST_TYPE,type:r})}else n=this.parseNamedType();return this.expectOptionalToken(be.TokenKind.BANG)?this.node(t,{kind:ut.Kind.NON_NULL_TYPE,type:n}):n}parseNamedType(){return this.node(this._lexer.token,{kind:ut.Kind.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(be.TokenKind.STRING)||this.peek(be.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(be.TokenKind.BRACE_L,this.parseOperationTypeDefinition,be.TokenKind.BRACE_R);return this.node(t,{kind:ut.Kind.SCHEMA_DEFINITION,description:n,directives:r,operationTypes:i})}parseOperationTypeDefinition(){let t=this._lexer.token,n=this.parseOperationType();this.expectToken(be.TokenKind.COLON);let r=this.parseNamedType();return this.node(t,{kind:ut.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:ut.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:ut.Kind.OBJECT_TYPE_DEFINITION,description:n,name:r,interfaces:i,directives:a,fields:o})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(be.TokenKind.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(be.TokenKind.BRACE_L,this.parseFieldDefinition,be.TokenKind.BRACE_R)}parseFieldDefinition(){let t=this._lexer.token,n=this.parseDescription(),r=this.parseName(),i=this.parseArgumentDefs();this.expectToken(be.TokenKind.COLON);let a=this.parseTypeReference(),o=this.parseConstDirectives();return this.node(t,{kind:ut.Kind.FIELD_DEFINITION,description:n,name:r,arguments:i,type:a,directives:o})}parseArgumentDefs(){return this.optionalMany(be.TokenKind.PAREN_L,this.parseInputValueDef,be.TokenKind.PAREN_R)}parseInputValueDef(){let t=this._lexer.token,n=this.parseDescription(),r=this.parseName();this.expectToken(be.TokenKind.COLON);let i=this.parseTypeReference(),a;this.expectOptionalToken(be.TokenKind.EQUALS)&&(a=this.parseConstValueLiteral());let o=this.parseConstDirectives();return this.node(t,{kind:ut.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:ut.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:ut.Kind.UNION_TYPE_DEFINITION,description:n,name:r,directives:i,types:a})}parseUnionMemberTypes(){return this.expectOptionalToken(be.TokenKind.EQUALS)?this.delimitedMany(be.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:ut.Kind.ENUM_TYPE_DEFINITION,description:n,name:r,directives:i,values:a})}parseEnumValuesDefinition(){return this.optionalMany(be.TokenKind.BRACE_L,this.parseEnumValueDefinition,be.TokenKind.BRACE_R)}parseEnumValueDefinition(){let t=this._lexer.token,n=this.parseDescription(),r=this.parseEnumValueName(),i=this.parseConstDirectives();return this.node(t,{kind:ut.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,oc.syntaxError)(this._lexer.source,this._lexer.token.start,`${lN(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:ut.Kind.INPUT_OBJECT_TYPE_DEFINITION,description:n,name:r,directives:i,fields:a})}parseInputFieldsDefinition(){return this.optionalMany(be.TokenKind.BRACE_L,this.parseInputValueDef,be.TokenKind.BRACE_R)}parseTypeSystemExtension(){let t=this._lexer.lookahead();if(t.kind===be.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(be.TokenKind.BRACE_L,this.parseOperationTypeDefinition,be.TokenKind.BRACE_R);if(n.length===0&&r.length===0)throw this.unexpected();return this.node(t,{kind:ut.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:ut.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:ut.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:ut.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:ut.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:ut.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:ut.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(be.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:ut.Kind.DIRECTIVE_DEFINITION,description:n,name:r,arguments:i,repeatable:a,locations:o})}parseDirectiveLocations(){return this.delimitedMany(be.TokenKind.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){let t=this._lexer.token,n=this.parseName();if(Object.prototype.hasOwnProperty.call(i3.DirectiveLocation,n.value))return n;throw this.unexpected(t)}node(t,n){return this._options.noLocation!==!0&&(n.loc=new af.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,oc.syntaxError)(this._lexer.source,n.start,`Expected ${kF(t)}, found ${lN(n)}.`)}expectOptionalToken(t){return this._lexer.token.kind===t?(this.advanceLexer(),!0):!1}expectKeyword(t){let n=this._lexer.token;if(n.kind===be.TokenKind.NAME&&n.value===t)this.advanceLexer();else throw(0,oc.syntaxError)(this._lexer.source,n.start,`Expected "${t}", found ${lN(n)}.`)}expectOptionalKeyword(t){let n=this._lexer.token;return n.kind===be.TokenKind.NAME&&n.value===t?(this.advanceLexer(),!0):!1}unexpected(t){let n=t!=null?t:this._lexer.token;return(0,oc.syntaxError)(this._lexer.source,n.start,`Unexpected ${lN(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!==be.TokenKind.EOF&&(++this._tokenCounter,this._tokenCounter>t))throw(0,oc.syntaxError)(this._lexer.source,n.start,`Document contains more that ${t} tokens. Parsing aborted.`)}};Nu.Parser=uc;function lN(e){let t=e.value;return kF(e.kind)+(t!=null?` "${t}"`:"")}function kF(e){return(0,BF.isPunctuatorTokenKind)(e)?`"${e}"`:e}});var Tu=F(bI=>{"use strict";m();T();N();Object.defineProperty(bI,"__esModule",{value:!0});bI.didYouMean=l3;var c3=5;function l3(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,c3),u=o.pop();return i+o.join(", ")+", or "+u+"?"}});var MF=F(AI=>{"use strict";m();T();N();Object.defineProperty(AI,"__esModule",{value:!0});AI.identityFunc=d3;function d3(e){return e}});var Eu=F(RI=>{"use strict";m();T();N();Object.defineProperty(RI,"__esModule",{value:!0});RI.keyMap=f3;function f3(e,t){let n=Object.create(null);for(let r of e)n[t(r)]=r;return n}});var sf=F(PI=>{"use strict";m();T();N();Object.defineProperty(PI,"__esModule",{value:!0});PI.keyValMap=p3;function p3(e,t,n){let r=Object.create(null);for(let i of e)r[t(i)]=n(i);return r}});var wI=F(FI=>{"use strict";m();T();N();Object.defineProperty(FI,"__esModule",{value:!0});FI.mapValue=m3;function m3(e,t){let n=Object.create(null);for(let r of Object.keys(e))n[r]=t(e[r],r);return n}});var of=F(CI=>{"use strict";m();T();N();Object.defineProperty(CI,"__esModule",{value:!0});CI.naturalCompare=N3;function N3(e,t){let n=0,r=0;for(;n0);let u=0;do++r,u=u*10+a-LI,a=t.charCodeAt(r);while(dN(a)&&u>0);if(ou)return 1}else{if(ia)return 1;++n,++r}}return e.length-t.length}var LI=48,T3=57;function dN(e){return!isNaN(e)&&LI<=e&&e<=T3}});var hu=F(BI=>{"use strict";m();T();N();Object.defineProperty(BI,"__esModule",{value:!0});BI.suggestionList=h3;var E3=of();function h3(e,t){let n=Object.create(null),r=new UI(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 u=n[a]-n[o];return u!==0?u:(0,E3.naturalCompare)(a,o)})}var UI=class{constructor(t){this._input=t,this._inputLowerCase=t.toLowerCase(),this._inputArray=xF(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=xF(r),a=this._inputArray;if(i.lengthn)return;let l=this._rows;for(let p=0;p<=u;p++)l[0][p]=p;for(let p=1;p<=o;p++){let E=l[(p-1)%3],h=l[p%3],v=h[0]=p;for(let R=1;R<=u;R++){let U=i[p-1]===a[R-1]?0:1,q=Math.min(E[R]+1,h[R-1]+1,E[R-1]+U);if(p>1&&R>1&&i[p-1]===a[R-2]&&i[p-2]===a[R-1]){let X=l[(p-2)%3][R-2];q=Math.min(q,X+1)}qn)return}let d=l[o%3][u];return d<=n?d:void 0}};function xF(e){let t=e.length,n=new Array(t);for(let r=0;r{"use strict";m();T();N();Object.defineProperty(kI,"__esModule",{value:!0});kI.toObjMap=y3;function y3(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 qF=F(MI=>{"use strict";m();T();N();Object.defineProperty(MI,"__esModule",{value:!0});MI.printString=I3;function I3(e){return`"${e.replace(g3,_3)}"`}var g3=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function _3(e){return v3[e.charCodeAt(0)]}var v3=["\\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 cc=F(yu=>{"use strict";m();T();N();Object.defineProperty(yu,"__esModule",{value:!0});yu.BREAK=void 0;yu.getEnterLeaveForKind=pN;yu.getVisitFn=A3;yu.visit=D3;yu.visitInParallel=b3;var S3=Gr(),O3=nn(),xI=Ka(),VF=Ut(),Sl=Object.freeze({});yu.BREAK=Sl;function D3(e,t,n=xI.QueryDocumentKeys){let r=new Map;for(let X of Object.values(VF.Kind))r.set(X,pN(t,X));let i,a=Array.isArray(e),o=[e],u=-1,l=[],d=e,p,E,h=[],v=[];do{u++;let X=u===o.length,te=X&&l.length!==0;if(X){if(p=v.length===0?void 0:h[h.length-1],d=E,E=v.pop(),te)if(a){d=d.slice();let me=0;for(let[ye,_e]of l){let Ee=ye-me;_e===null?(d.splice(Ee,1),me++):d[Ee]=_e}}else{d=Object.defineProperties({},Object.getOwnPropertyDescriptors(d));for(let[me,ye]of l)d[me]=ye}u=i.index,o=i.keys,l=i.edits,a=i.inArray,i=i.prev}else if(E){if(p=a?u:o[u],d=E[p],d==null)continue;h.push(p)}let ae;if(!Array.isArray(d)){var R,U;(0,xI.isNode)(d)||(0,S3.devAssert)(!1,`Invalid AST Node: ${(0,O3.inspect)(d)}.`);let me=X?(R=r.get(d.kind))===null||R===void 0?void 0:R.leave:(U=r.get(d.kind))===null||U===void 0?void 0:U.enter;if(ae=me==null?void 0:me.call(t,d,p,E,h,v),ae===Sl)break;if(ae===!1){if(!X){h.pop();continue}}else if(ae!==void 0&&(l.push([p,ae]),!X))if((0,xI.isNode)(ae))d=ae;else{h.pop();continue}}if(ae===void 0&&te&&l.push([p,d]),X)h.pop();else{var q;i={inArray:a,index:u,keys:o,edits:l,prev:i},a=Array.isArray(d),o=a?d:(q=n[d.kind])!==null&&q!==void 0?q:[],u=-1,l=[],E&&v.push(E),E=d}}while(i!==void 0);return l.length!==0?l[l.length-1][1]:e}function b3(e){let t=new Array(e.length).fill(null),n=Object.create(null);for(let r of Object.values(VF.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(qI,"__esModule",{value:!0});qI.print=w3;var R3=Wd(),P3=qF(),F3=cc();function w3(e){return(0,F3.visit)(e,C3)}var L3=80,C3={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>Ke(e.definitions,` +spurious results.`)}}return!1};xE.instanceOf=vIe});var jE=D(lh=>{"use strict";d();p();f();Object.defineProperty(lh,"__esModule",{value:!0});lh.Source=void 0;lh.isSource=OIe;var Ob=si(),_Ie=ur(),SIe=ch(),ME=class{constructor(t,r="GraphQL request",n={line:1,column:1}){typeof t=="string"||(0,Ob.devAssert)(!1,`Body must be a string. Received: ${(0,_Ie.inspect)(t)}.`),this.body=t,this.name=r,this.locationOffset=n,this.locationOffset.line>0||(0,Ob.devAssert)(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||(0,Ob.devAssert)(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}};lh.Source=ME;function OIe(e){return(0,SIe.instanceOf)(e,ME)}});var Cf=D(kc=>{"use strict";d();p();f();Object.defineProperty(kc,"__esModule",{value:!0});kc.Parser=void 0;kc.parse=bIe;kc.parseConstValue=RIe;kc.parseType=wIe;kc.parseValue=AIe;var Vl=CE(),dh=Po(),DIe=Ff(),mt=jt(),eY=kE(),ZQ=jE(),Oe=oh();function bIe(e,t){return new Kl(e,t).parseDocument()}function AIe(e,t){let r=new Kl(e,t);r.expectToken(Oe.TokenKind.SOF);let n=r.parseValueLiteral(!1);return r.expectToken(Oe.TokenKind.EOF),n}function RIe(e,t){let r=new Kl(e,t);r.expectToken(Oe.TokenKind.SOF);let n=r.parseConstValueLiteral();return r.expectToken(Oe.TokenKind.EOF),n}function wIe(e,t){let r=new Kl(e,t);r.expectToken(Oe.TokenKind.SOF);let n=r.parseTypeReference();return r.expectToken(Oe.TokenKind.EOF),n}var Kl=class{constructor(t,r={}){let n=(0,ZQ.isSource)(t)?t:new ZQ.Source(t);this._lexer=new eY.Lexer(n),this._options=r,this._tokenCounter=0}parseName(){let t=this.expectToken(Oe.TokenKind.NAME);return this.node(t,{kind:mt.Kind.NAME,value:t.value})}parseDocument(){return this.node(this._lexer.token,{kind:mt.Kind.DOCUMENT,definitions:this.many(Oe.TokenKind.SOF,this.parseDefinition,Oe.TokenKind.EOF)})}parseDefinition(){if(this.peek(Oe.TokenKind.BRACE_L))return this.parseOperationDefinition();let t=this.peekDescription(),r=t?this._lexer.lookahead():this._lexer.token;if(r.kind===Oe.TokenKind.NAME){switch(r.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,Vl.syntaxError)(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(r.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(r)}parseOperationDefinition(){let t=this._lexer.token;if(this.peek(Oe.TokenKind.BRACE_L))return this.node(t,{kind:mt.Kind.OPERATION_DEFINITION,operation:dh.OperationTypeNode.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});let r=this.parseOperationType(),n;return this.peek(Oe.TokenKind.NAME)&&(n=this.parseName()),this.node(t,{kind:mt.Kind.OPERATION_DEFINITION,operation:r,name:n,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){let t=this.expectToken(Oe.TokenKind.NAME);switch(t.value){case"query":return dh.OperationTypeNode.QUERY;case"mutation":return dh.OperationTypeNode.MUTATION;case"subscription":return dh.OperationTypeNode.SUBSCRIPTION}throw this.unexpected(t)}parseVariableDefinitions(){return this.optionalMany(Oe.TokenKind.PAREN_L,this.parseVariableDefinition,Oe.TokenKind.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:mt.Kind.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(Oe.TokenKind.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(Oe.TokenKind.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){let t=this._lexer.token;return this.expectToken(Oe.TokenKind.DOLLAR),this.node(t,{kind:mt.Kind.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:mt.Kind.SELECTION_SET,selections:this.many(Oe.TokenKind.BRACE_L,this.parseSelection,Oe.TokenKind.BRACE_R)})}parseSelection(){return this.peek(Oe.TokenKind.SPREAD)?this.parseFragment():this.parseField()}parseField(){let t=this._lexer.token,r=this.parseName(),n,i;return this.expectOptionalToken(Oe.TokenKind.COLON)?(n=r,i=this.parseName()):i=r,this.node(t,{kind:mt.Kind.FIELD,alias:n,name:i,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(Oe.TokenKind.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(t){let r=t?this.parseConstArgument:this.parseArgument;return this.optionalMany(Oe.TokenKind.PAREN_L,r,Oe.TokenKind.PAREN_R)}parseArgument(t=!1){let r=this._lexer.token,n=this.parseName();return this.expectToken(Oe.TokenKind.COLON),this.node(r,{kind:mt.Kind.ARGUMENT,name:n,value:this.parseValueLiteral(t)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){let t=this._lexer.token;this.expectToken(Oe.TokenKind.SPREAD);let r=this.expectOptionalKeyword("on");return!r&&this.peek(Oe.TokenKind.NAME)?this.node(t,{kind:mt.Kind.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(t,{kind:mt.Kind.INLINE_FRAGMENT,typeCondition:r?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:mt.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:mt.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 r=this._lexer.token;switch(r.kind){case Oe.TokenKind.BRACKET_L:return this.parseList(t);case Oe.TokenKind.BRACE_L:return this.parseObject(t);case Oe.TokenKind.INT:return this.advanceLexer(),this.node(r,{kind:mt.Kind.INT,value:r.value});case Oe.TokenKind.FLOAT:return this.advanceLexer(),this.node(r,{kind:mt.Kind.FLOAT,value:r.value});case Oe.TokenKind.STRING:case Oe.TokenKind.BLOCK_STRING:return this.parseStringLiteral();case Oe.TokenKind.NAME:switch(this.advanceLexer(),r.value){case"true":return this.node(r,{kind:mt.Kind.BOOLEAN,value:!0});case"false":return this.node(r,{kind:mt.Kind.BOOLEAN,value:!1});case"null":return this.node(r,{kind:mt.Kind.NULL});default:return this.node(r,{kind:mt.Kind.ENUM,value:r.value})}case Oe.TokenKind.DOLLAR:if(t)if(this.expectToken(Oe.TokenKind.DOLLAR),this._lexer.token.kind===Oe.TokenKind.NAME){let n=this._lexer.token.value;throw(0,Vl.syntaxError)(this._lexer.source,r.start,`Unexpected variable "$${n}" in constant value.`)}else throw this.unexpected(r);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:mt.Kind.STRING,value:t.value,block:t.kind===Oe.TokenKind.BLOCK_STRING})}parseList(t){let r=()=>this.parseValueLiteral(t);return this.node(this._lexer.token,{kind:mt.Kind.LIST,values:this.any(Oe.TokenKind.BRACKET_L,r,Oe.TokenKind.BRACKET_R)})}parseObject(t){let r=()=>this.parseObjectField(t);return this.node(this._lexer.token,{kind:mt.Kind.OBJECT,fields:this.any(Oe.TokenKind.BRACE_L,r,Oe.TokenKind.BRACE_R)})}parseObjectField(t){let r=this._lexer.token,n=this.parseName();return this.expectToken(Oe.TokenKind.COLON),this.node(r,{kind:mt.Kind.OBJECT_FIELD,name:n,value:this.parseValueLiteral(t)})}parseDirectives(t){let r=[];for(;this.peek(Oe.TokenKind.AT);)r.push(this.parseDirective(t));return r}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(t){let r=this._lexer.token;return this.expectToken(Oe.TokenKind.AT),this.node(r,{kind:mt.Kind.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(t)})}parseTypeReference(){let t=this._lexer.token,r;if(this.expectOptionalToken(Oe.TokenKind.BRACKET_L)){let n=this.parseTypeReference();this.expectToken(Oe.TokenKind.BRACKET_R),r=this.node(t,{kind:mt.Kind.LIST_TYPE,type:n})}else r=this.parseNamedType();return this.expectOptionalToken(Oe.TokenKind.BANG)?this.node(t,{kind:mt.Kind.NON_NULL_TYPE,type:r}):r}parseNamedType(){return this.node(this._lexer.token,{kind:mt.Kind.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(Oe.TokenKind.STRING)||this.peek(Oe.TokenKind.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){let t=this._lexer.token,r=this.parseDescription();this.expectKeyword("schema");let n=this.parseConstDirectives(),i=this.many(Oe.TokenKind.BRACE_L,this.parseOperationTypeDefinition,Oe.TokenKind.BRACE_R);return this.node(t,{kind:mt.Kind.SCHEMA_DEFINITION,description:r,directives:n,operationTypes:i})}parseOperationTypeDefinition(){let t=this._lexer.token,r=this.parseOperationType();this.expectToken(Oe.TokenKind.COLON);let n=this.parseNamedType();return this.node(t,{kind:mt.Kind.OPERATION_TYPE_DEFINITION,operation:r,type:n})}parseScalarTypeDefinition(){let t=this._lexer.token,r=this.parseDescription();this.expectKeyword("scalar");let n=this.parseName(),i=this.parseConstDirectives();return this.node(t,{kind:mt.Kind.SCALAR_TYPE_DEFINITION,description:r,name:n,directives:i})}parseObjectTypeDefinition(){let t=this._lexer.token,r=this.parseDescription();this.expectKeyword("type");let n=this.parseName(),i=this.parseImplementsInterfaces(),a=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(t,{kind:mt.Kind.OBJECT_TYPE_DEFINITION,description:r,name:n,interfaces:i,directives:a,fields:o})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(Oe.TokenKind.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(Oe.TokenKind.BRACE_L,this.parseFieldDefinition,Oe.TokenKind.BRACE_R)}parseFieldDefinition(){let t=this._lexer.token,r=this.parseDescription(),n=this.parseName(),i=this.parseArgumentDefs();this.expectToken(Oe.TokenKind.COLON);let a=this.parseTypeReference(),o=this.parseConstDirectives();return this.node(t,{kind:mt.Kind.FIELD_DEFINITION,description:r,name:n,arguments:i,type:a,directives:o})}parseArgumentDefs(){return this.optionalMany(Oe.TokenKind.PAREN_L,this.parseInputValueDef,Oe.TokenKind.PAREN_R)}parseInputValueDef(){let t=this._lexer.token,r=this.parseDescription(),n=this.parseName();this.expectToken(Oe.TokenKind.COLON);let i=this.parseTypeReference(),a;this.expectOptionalToken(Oe.TokenKind.EQUALS)&&(a=this.parseConstValueLiteral());let o=this.parseConstDirectives();return this.node(t,{kind:mt.Kind.INPUT_VALUE_DEFINITION,description:r,name:n,type:i,defaultValue:a,directives:o})}parseInterfaceTypeDefinition(){let t=this._lexer.token,r=this.parseDescription();this.expectKeyword("interface");let n=this.parseName(),i=this.parseImplementsInterfaces(),a=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(t,{kind:mt.Kind.INTERFACE_TYPE_DEFINITION,description:r,name:n,interfaces:i,directives:a,fields:o})}parseUnionTypeDefinition(){let t=this._lexer.token,r=this.parseDescription();this.expectKeyword("union");let n=this.parseName(),i=this.parseConstDirectives(),a=this.parseUnionMemberTypes();return this.node(t,{kind:mt.Kind.UNION_TYPE_DEFINITION,description:r,name:n,directives:i,types:a})}parseUnionMemberTypes(){return this.expectOptionalToken(Oe.TokenKind.EQUALS)?this.delimitedMany(Oe.TokenKind.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){let t=this._lexer.token,r=this.parseDescription();this.expectKeyword("enum");let n=this.parseName(),i=this.parseConstDirectives(),a=this.parseEnumValuesDefinition();return this.node(t,{kind:mt.Kind.ENUM_TYPE_DEFINITION,description:r,name:n,directives:i,values:a})}parseEnumValuesDefinition(){return this.optionalMany(Oe.TokenKind.BRACE_L,this.parseEnumValueDefinition,Oe.TokenKind.BRACE_R)}parseEnumValueDefinition(){let t=this._lexer.token,r=this.parseDescription(),n=this.parseEnumValueName(),i=this.parseConstDirectives();return this.node(t,{kind:mt.Kind.ENUM_VALUE_DEFINITION,description:r,name:n,directives:i})}parseEnumValueName(){if(this._lexer.token.value==="true"||this._lexer.token.value==="false"||this._lexer.token.value==="null")throw(0,Vl.syntaxError)(this._lexer.source,this._lexer.token.start,`${VE(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){let t=this._lexer.token,r=this.parseDescription();this.expectKeyword("input");let n=this.parseName(),i=this.parseConstDirectives(),a=this.parseInputFieldsDefinition();return this.node(t,{kind:mt.Kind.INPUT_OBJECT_TYPE_DEFINITION,description:r,name:n,directives:i,fields:a})}parseInputFieldsDefinition(){return this.optionalMany(Oe.TokenKind.BRACE_L,this.parseInputValueDef,Oe.TokenKind.BRACE_R)}parseTypeSystemExtension(){let t=this._lexer.lookahead();if(t.kind===Oe.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 r=this.parseConstDirectives(),n=this.optionalMany(Oe.TokenKind.BRACE_L,this.parseOperationTypeDefinition,Oe.TokenKind.BRACE_R);if(r.length===0&&n.length===0)throw this.unexpected();return this.node(t,{kind:mt.Kind.SCHEMA_EXTENSION,directives:r,operationTypes:n})}parseScalarTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");let r=this.parseName(),n=this.parseConstDirectives();if(n.length===0)throw this.unexpected();return this.node(t,{kind:mt.Kind.SCALAR_TYPE_EXTENSION,name:r,directives:n})}parseObjectTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");let r=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),a=this.parseFieldsDefinition();if(n.length===0&&i.length===0&&a.length===0)throw this.unexpected();return this.node(t,{kind:mt.Kind.OBJECT_TYPE_EXTENSION,name:r,interfaces:n,directives:i,fields:a})}parseInterfaceTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");let r=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),a=this.parseFieldsDefinition();if(n.length===0&&i.length===0&&a.length===0)throw this.unexpected();return this.node(t,{kind:mt.Kind.INTERFACE_TYPE_EXTENSION,name:r,interfaces:n,directives:i,fields:a})}parseUnionTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");let r=this.parseName(),n=this.parseConstDirectives(),i=this.parseUnionMemberTypes();if(n.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:mt.Kind.UNION_TYPE_EXTENSION,name:r,directives:n,types:i})}parseEnumTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");let r=this.parseName(),n=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();if(n.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:mt.Kind.ENUM_TYPE_EXTENSION,name:r,directives:n,values:i})}parseInputObjectTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");let r=this.parseName(),n=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();if(n.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:mt.Kind.INPUT_OBJECT_TYPE_EXTENSION,name:r,directives:n,fields:i})}parseDirectiveDefinition(){let t=this._lexer.token,r=this.parseDescription();this.expectKeyword("directive"),this.expectToken(Oe.TokenKind.AT);let n=this.parseName(),i=this.parseArgumentDefs(),a=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");let o=this.parseDirectiveLocations();return this.node(t,{kind:mt.Kind.DIRECTIVE_DEFINITION,description:r,name:n,arguments:i,repeatable:a,locations:o})}parseDirectiveLocations(){return this.delimitedMany(Oe.TokenKind.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){let t=this._lexer.token,r=this.parseName();if(Object.prototype.hasOwnProperty.call(DIe.DirectiveLocation,r.value))return r;throw this.unexpected(t)}node(t,r){return this._options.noLocation!==!0&&(r.loc=new dh.Location(t,this._lexer.lastToken,this._lexer.source)),r}peek(t){return this._lexer.token.kind===t}expectToken(t){let r=this._lexer.token;if(r.kind===t)return this.advanceLexer(),r;throw(0,Vl.syntaxError)(this._lexer.source,r.start,`Expected ${tY(t)}, found ${VE(r)}.`)}expectOptionalToken(t){return this._lexer.token.kind===t?(this.advanceLexer(),!0):!1}expectKeyword(t){let r=this._lexer.token;if(r.kind===Oe.TokenKind.NAME&&r.value===t)this.advanceLexer();else throw(0,Vl.syntaxError)(this._lexer.source,r.start,`Expected "${t}", found ${VE(r)}.`)}expectOptionalKeyword(t){let r=this._lexer.token;return r.kind===Oe.TokenKind.NAME&&r.value===t?(this.advanceLexer(),!0):!1}unexpected(t){let r=t!=null?t:this._lexer.token;return(0,Vl.syntaxError)(this._lexer.source,r.start,`Unexpected ${VE(r)}.`)}any(t,r,n){this.expectToken(t);let i=[];for(;!this.expectOptionalToken(n);)i.push(r.call(this));return i}optionalMany(t,r,n){if(this.expectOptionalToken(t)){let i=[];do i.push(r.call(this));while(!this.expectOptionalToken(n));return i}return[]}many(t,r,n){this.expectToken(t);let i=[];do i.push(r.call(this));while(!this.expectOptionalToken(n));return i}delimitedMany(t,r){this.expectOptionalToken(t);let n=[];do n.push(r.call(this));while(this.expectOptionalToken(t));return n}advanceLexer(){let{maxTokens:t}=this._options,r=this._lexer.advance();if(t!==void 0&&r.kind!==Oe.TokenKind.EOF&&(++this._tokenCounter,this._tokenCounter>t))throw(0,Vl.syntaxError)(this._lexer.source,r.start,`Document contains more that ${t} tokens. Parsing aborted.`)}};kc.Parser=Kl;function VE(e){let t=e.value;return tY(e.kind)+(t!=null?` "${t}"`:"")}function tY(e){return(0,eY.isPunctuatorTokenKind)(e)?`"${e}"`:e}});var qc=D(Db=>{"use strict";d();p();f();Object.defineProperty(Db,"__esModule",{value:!0});Db.didYouMean=FIe;var PIe=5;function FIe(e,t){let[r,n]=t?[e,t]:[void 0,e],i=" Did you mean ";r&&(i+=r+" ");let a=n.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,PIe),u=o.pop();return i+o.join(", ")+", or "+u+"?"}});var rY=D(bb=>{"use strict";d();p();f();Object.defineProperty(bb,"__esModule",{value:!0});bb.identityFunc=LIe;function LIe(e){return e}});var xc=D(Ab=>{"use strict";d();p();f();Object.defineProperty(Ab,"__esModule",{value:!0});Ab.keyMap=CIe;function CIe(e,t){let r=Object.create(null);for(let n of e)r[t(n)]=n;return r}});var fh=D(Rb=>{"use strict";d();p();f();Object.defineProperty(Rb,"__esModule",{value:!0});Rb.keyValMap=BIe;function BIe(e,t,r){let n=Object.create(null);for(let i of e)n[t(i)]=r(i);return n}});var Pb=D(wb=>{"use strict";d();p();f();Object.defineProperty(wb,"__esModule",{value:!0});wb.mapValue=UIe;function UIe(e,t){let r=Object.create(null);for(let n of Object.keys(e))r[n]=t(e[n],n);return r}});var ph=D(Lb=>{"use strict";d();p();f();Object.defineProperty(Lb,"__esModule",{value:!0});Lb.naturalCompare=kIe;function kIe(e,t){let r=0,n=0;for(;r0);let u=0;do++n,u=u*10+a-Fb,a=t.charCodeAt(n);while(KE(a)&&u>0);if(ou)return 1}else{if(ia)return 1;++r,++n}}return e.length-t.length}var Fb=48,qIe=57;function KE(e){return!isNaN(e)&&Fb<=e&&e<=qIe}});var Mc=D(Bb=>{"use strict";d();p();f();Object.defineProperty(Bb,"__esModule",{value:!0});Bb.suggestionList=MIe;var xIe=ph();function MIe(e,t){let r=Object.create(null),n=new Cb(e),i=Math.floor(e.length*.4)+1;for(let a of t){let o=n.measure(a,i);o!==void 0&&(r[a]=o)}return Object.keys(r).sort((a,o)=>{let u=r[a]-r[o];return u!==0?u:(0,xIe.naturalCompare)(a,o)})}var Cb=class{constructor(t){this._input=t,this._inputLowerCase=t.toLowerCase(),this._inputArray=nY(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,r){if(this._input===t)return 0;let n=t.toLowerCase();if(this._inputLowerCase===n)return 1;let i=nY(n),a=this._inputArray;if(i.lengthr)return;let l=this._rows;for(let h=0;h<=u;h++)l[0][h]=h;for(let h=1;h<=o;h++){let N=l[(h-1)%3],T=l[h%3],O=T[0]=h;for(let R=1;R<=u;R++){let C=i[h-1]===a[R-1]?0:1,M=Math.min(N[R]+1,T[R-1]+1,N[R-1]+C);if(h>1&&R>1&&i[h-1]===a[R-2]&&i[h-2]===a[R-1]){let Y=l[(h-2)%3][R-2];M=Math.min(M,Y+1)}Mr)return}let m=l[o%3][u];return m<=r?m:void 0}};function nY(e){let t=e.length,r=new Array(t);for(let n=0;n{"use strict";d();p();f();Object.defineProperty(Ub,"__esModule",{value:!0});Ub.toObjMap=jIe;function jIe(e){if(e==null)return Object.create(null);if(Object.getPrototypeOf(e)===null)return e;let t=Object.create(null);for(let[r,n]of Object.entries(e))t[r]=n;return t}});var iY=D(kb=>{"use strict";d();p();f();Object.defineProperty(kb,"__esModule",{value:!0});kb.printString=VIe;function VIe(e){return`"${e.replace(KIe,$Ie)}"`}var KIe=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function $Ie(e){return GIe[e.charCodeAt(0)]}var GIe=["\\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 $l=D(jc=>{"use strict";d();p();f();Object.defineProperty(jc,"__esModule",{value:!0});jc.BREAK=void 0;jc.getEnterLeaveForKind=GE;jc.getVisitFn=HIe;jc.visit=JIe;jc.visitInParallel=zIe;var QIe=si(),YIe=ur(),qb=Po(),aY=jt(),Bf=Object.freeze({});jc.BREAK=Bf;function JIe(e,t,r=qb.QueryDocumentKeys){let n=new Map;for(let Y of Object.values(aY.Kind))n.set(Y,GE(t,Y));let i,a=Array.isArray(e),o=[e],u=-1,l=[],m=e,h,N,T=[],O=[];do{u++;let Y=u===o.length,ee=Y&&l.length!==0;if(Y){if(h=O.length===0?void 0:T[T.length-1],m=N,N=O.pop(),ee)if(a){m=m.slice();let Ne=0;for(let[_e,Le]of l){let Ve=_e-Ne;Le===null?(m.splice(Ve,1),Ne++):m[Ve]=Le}}else{m=Object.defineProperties({},Object.getOwnPropertyDescriptors(m));for(let[Ne,_e]of l)m[Ne]=_e}u=i.index,o=i.keys,l=i.edits,a=i.inArray,i=i.prev}else if(N){if(h=a?u:o[u],m=N[h],m==null)continue;T.push(h)}let ae;if(!Array.isArray(m)){var R,C;(0,qb.isNode)(m)||(0,QIe.devAssert)(!1,`Invalid AST Node: ${(0,YIe.inspect)(m)}.`);let Ne=Y?(R=n.get(m.kind))===null||R===void 0?void 0:R.leave:(C=n.get(m.kind))===null||C===void 0?void 0:C.enter;if(ae=Ne==null?void 0:Ne.call(t,m,h,N,T,O),ae===Bf)break;if(ae===!1){if(!Y){T.pop();continue}}else if(ae!==void 0&&(l.push([h,ae]),!Y))if((0,qb.isNode)(ae))m=ae;else{T.pop();continue}}if(ae===void 0&&ee&&l.push([h,m]),Y)T.pop();else{var M;i={inArray:a,index:u,keys:o,edits:l,prev:i},a=Array.isArray(m),o=a?m:(M=r[m.kind])!==null&&M!==void 0?M:[],u=-1,l=[],N&&O.push(N),N=m}}while(i!==void 0);return l.length!==0?l[l.length-1][1]:e}function zIe(e){let t=new Array(e.length).fill(null),r=Object.create(null);for(let n of Object.values(aY.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";d();p();f();Object.defineProperty(xb,"__esModule",{value:!0});xb.print=eve;var WIe=ih(),XIe=iY(),ZIe=$l();function eve(e){return(0,ZIe.visit)(e,rve)}var tve=80,rve={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>Ge(e.definitions,` -`)},OperationDefinition:{leave(e){let t=Ft("(",Ke(e.variableDefinitions,", "),")"),n=Ke([e.operation,Ke([e.name,t]),Ke(e.directives," ")]," ");return(n==="query"?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r})=>e+": "+t+Ft(" = ",n)+Ft(" ",Ke(r," "))},SelectionSet:{leave:({selections:e})=>ma(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:i}){let a=Ft("",e,": ")+t,o=a+Ft("(",Ke(n,", "),")");return o.length>L3&&(o=a+Ft(`( -`,mN(Ke(n,` +`)},OperationDefinition:{leave(e){let t=kt("(",Ge(e.variableDefinitions,", "),")"),r=Ge([e.operation,Ge([e.name,t]),Ge(e.directives," ")]," ");return(r==="query"?"":r+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:r,directives:n})=>e+": "+t+kt(" = ",r)+kt(" ",Ge(n," "))},SelectionSet:{leave:({selections:e})=>Ha(e)},Field:{leave({alias:e,name:t,arguments:r,directives:n,selectionSet:i}){let a=kt("",e,": ")+t,o=a+kt("(",Ge(r,", "),")");return o.length>tve&&(o=a+kt(`( +`,QE(Ge(r,` `)),` -)`)),Ke([o,Ke(r," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+Ft(" ",Ke(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>Ke(["...",Ft("on ",e),Ke(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:i})=>`fragment ${e}${Ft("(",Ke(n,", "),")")} on ${t} ${Ft("",Ke(r," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?(0,R3.printBlockString)(e):(0,P3.printString)(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+Ke(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+Ke(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+Ft("(",Ke(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>Ft("",e,` -`)+Ke(["schema",Ke(t," "),ma(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>Ft("",e,` -`)+Ke(["scalar",t,Ke(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>Ft("",e,` -`)+Ke(["type",t,Ft("implements ",Ke(n," & ")),Ke(r," "),ma(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:r,directives:i})=>Ft("",e,` -`)+t+(jF(n)?Ft(`( -`,mN(Ke(n,` +)`)),Ge([o,Ge(n," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+kt(" ",Ge(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:r})=>Ge(["...",kt("on ",e),Ge(t," "),r]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:r,directives:n,selectionSet:i})=>`fragment ${e}${kt("(",Ge(r,", "),")")} on ${t} ${kt("",Ge(n," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?(0,WIe.printBlockString)(e):(0,XIe.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+kt("(",Ge(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:r})=>kt("",e,` +`)+Ge(["schema",Ge(t," "),Ha(r)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:r})=>kt("",e,` +`)+Ge(["scalar",t,Ge(r," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:i})=>kt("",e,` +`)+Ge(["type",t,kt("implements ",Ge(r," & ")),Ge(n," "),Ha(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:r,type:n,directives:i})=>kt("",e,` +`)+t+(oY(r)?kt(`( +`,QE(Ge(r,` `)),` -)`):Ft("(",Ke(n,", "),")"))+": "+r+Ft(" ",Ke(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:r,directives:i})=>Ft("",e,` -`)+Ke([t+": "+n,Ft("= ",r),Ke(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>Ft("",e,` -`)+Ke(["interface",t,Ft("implements ",Ke(n," & ")),Ke(r," "),ma(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:r})=>Ft("",e,` -`)+Ke(["union",t,Ke(n," "),Ft("= ",Ke(r," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:r})=>Ft("",e,` -`)+Ke(["enum",t,Ke(n," "),ma(r)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>Ft("",e,` -`)+Ke([t,Ke(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:r})=>Ft("",e,` -`)+Ke(["input",t,Ke(n," "),ma(r)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,repeatable:r,locations:i})=>Ft("",e,` -`)+"directive @"+t+(jF(n)?Ft(`( -`,mN(Ke(n,` +)`):kt("(",Ge(r,", "),")"))+": "+n+kt(" ",Ge(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:r,defaultValue:n,directives:i})=>kt("",e,` +`)+Ge([t+": "+r,kt("= ",n),Ge(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:i})=>kt("",e,` +`)+Ge(["interface",t,kt("implements ",Ge(r," & ")),Ge(n," "),Ha(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:r,types:n})=>kt("",e,` +`)+Ge(["union",t,Ge(r," "),kt("= ",Ge(n," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:r,values:n})=>kt("",e,` +`)+Ge(["enum",t,Ge(r," "),Ha(n)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:r})=>kt("",e,` +`)+Ge([t,Ge(r," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:r,fields:n})=>kt("",e,` +`)+Ge(["input",t,Ge(r," "),Ha(n)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:r,repeatable:n,locations:i})=>kt("",e,` +`)+"directive @"+t+(oY(r)?kt(`( +`,QE(Ge(r,` `)),` -)`):Ft("(",Ke(n,", "),")"))+(r?" repeatable":"")+" on "+Ke(i," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>Ke(["extend schema",Ke(e," "),ma(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>Ke(["extend scalar",e,Ke(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>Ke(["extend type",e,Ft("implements ",Ke(t," & ")),Ke(n," "),ma(r)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>Ke(["extend interface",e,Ft("implements ",Ke(t," & ")),Ke(n," "),ma(r)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>Ke(["extend union",e,Ke(t," "),Ft("= ",Ke(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>Ke(["extend enum",e,Ke(t," "),ma(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>Ke(["extend input",e,Ke(t," "),ma(n)]," ")}};function Ke(e,t=""){var n;return(n=e==null?void 0:e.filter(r=>r).join(t))!==null&&n!==void 0?n:""}function ma(e){return Ft(`{ -`,mN(Ke(e,` +)`):kt("(",Ge(r,", "),")"))+(n?" repeatable":"")+" on "+Ge(i," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>Ge(["extend schema",Ge(e," "),Ha(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>Ge(["extend scalar",e,Ge(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>Ge(["extend type",e,kt("implements ",Ge(t," & ")),Ge(r," "),Ha(n)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>Ge(["extend interface",e,kt("implements ",Ge(t," & ")),Ge(r," "),Ha(n)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:r})=>Ge(["extend union",e,Ge(t," "),kt("= ",Ge(r," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:r})=>Ge(["extend enum",e,Ge(t," "),Ha(r)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:r})=>Ge(["extend input",e,Ge(t," "),Ha(r)]," ")}};function Ge(e,t=""){var r;return(r=e==null?void 0:e.filter(n=>n).join(t))!==null&&r!==void 0?r:""}function Ha(e){return kt(`{ +`,QE(Ge(e,` `)),` -}`)}function Ft(e,t,n=""){return t!=null&&t!==""?e+t+n:""}function mN(e){return Ft(" ",e.replace(/\n/g,` - `))}function jF(e){var t;return(t=e==null?void 0:e.some(n=>n.includes(` -`)))!==null&&t!==void 0?t:!1}});var KI=F(jI=>{"use strict";m();T();N();Object.defineProperty(jI,"__esModule",{value:!0});jI.valueFromASTUntyped=VI;var U3=sf(),Os=Ut();function VI(e,t){switch(e.kind){case Os.Kind.NULL:return null;case Os.Kind.INT:return parseInt(e.value,10);case Os.Kind.FLOAT:return parseFloat(e.value);case Os.Kind.STRING:case Os.Kind.ENUM:case Os.Kind.BOOLEAN:return e.value;case Os.Kind.LIST:return e.values.map(n=>VI(n,t));case Os.Kind.OBJECT:return(0,U3.keyValMap)(e.fields,n=>n.name.value,n=>VI(n.value,t));case Os.Kind.VARIABLE:return t==null?void 0:t[e.name.value]}}});var uf=F(TN=>{"use strict";m();T();N();Object.defineProperty(TN,"__esModule",{value:!0});TN.assertEnumValueName=B3;TN.assertName=GF;var KF=Gr(),NN=et(),$F=rN();function GF(e){if(e!=null||(0,KF.devAssert)(!1,"Must provide name."),typeof e=="string"||(0,KF.devAssert)(!1,"Expected name to be a string."),e.length===0)throw new NN.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=iw;Qe.assertAbstractType=nW;Qe.assertCompositeType=tW;Qe.assertEnumType=J3;Qe.assertInputObjectType=z3;Qe.assertInputType=X3;Qe.assertInterfaceType=Q3;Qe.assertLeafType=eW;Qe.assertListType=H3;Qe.assertNamedType=sW;Qe.assertNonNullType=W3;Qe.assertNullableType=iW;Qe.assertObjectType=G3;Qe.assertOutputType=Z3;Qe.assertScalarType=$3;Qe.assertType=K3;Qe.assertUnionType=Y3;Qe.assertWrappingType=rW;Qe.defineArguments=nw;Qe.getNamedType=oW;Qe.getNullableType=aW;Qe.isAbstractType=XF;Qe.isCompositeType=WF;Qe.isEnumType=pc;Qe.isInputObjectType=lf;Qe.isInputType=$I;Qe.isInterfaceType=dc;Qe.isLeafType=HF;Qe.isListType=AN;Qe.isNamedType=ZF;Qe.isNonNullType=gu;Qe.isNullableType=QI;Qe.isObjectType=Dl;Qe.isOutputType=GI;Qe.isRequiredArgument=uW;Qe.isRequiredInputField=dW;Qe.isScalarType=lc;Qe.isType=bN;Qe.isUnionType=fc;Qe.isWrappingType=df;Qe.resolveObjMapThunk=JI;Qe.resolveReadonlyArrayThunk=YI;var Tr=Gr(),k3=Tu(),QF=MF(),Nn=nn(),Iu=nf(),M3=ja(),x3=Eu(),zF=sf(),DN=wI(),q3=hu(),$a=fN(),cf=et(),V3=Ut(),YF=gi(),j3=KI(),Ga=uf();function bN(e){return lc(e)||Dl(e)||dc(e)||fc(e)||pc(e)||lf(e)||AN(e)||gu(e)}function K3(e){if(!bN(e))throw new Error(`Expected ${(0,Nn.inspect)(e)} to be a GraphQL type.`);return e}function lc(e){return(0,Iu.instanceOf)(e,IN)}function $3(e){if(!lc(e))throw new Error(`Expected ${(0,Nn.inspect)(e)} to be a GraphQL Scalar type.`);return e}function Dl(e){return(0,Iu.instanceOf)(e,gN)}function G3(e){if(!Dl(e))throw new Error(`Expected ${(0,Nn.inspect)(e)} to be a GraphQL Object type.`);return e}function dc(e){return(0,Iu.instanceOf)(e,_N)}function Q3(e){if(!dc(e))throw new Error(`Expected ${(0,Nn.inspect)(e)} to be a GraphQL Interface type.`);return e}function fc(e){return(0,Iu.instanceOf)(e,vN)}function Y3(e){if(!fc(e))throw new Error(`Expected ${(0,Nn.inspect)(e)} to be a GraphQL Union type.`);return e}function pc(e){return(0,Iu.instanceOf)(e,SN)}function J3(e){if(!pc(e))throw new Error(`Expected ${(0,Nn.inspect)(e)} to be a GraphQL Enum type.`);return e}function lf(e){return(0,Iu.instanceOf)(e,ON)}function z3(e){if(!lf(e))throw new Error(`Expected ${(0,Nn.inspect)(e)} to be a GraphQL Input Object type.`);return e}function AN(e){return(0,Iu.instanceOf)(e,hN)}function H3(e){if(!AN(e))throw new Error(`Expected ${(0,Nn.inspect)(e)} to be a GraphQL List type.`);return e}function gu(e){return(0,Iu.instanceOf)(e,yN)}function W3(e){if(!gu(e))throw new Error(`Expected ${(0,Nn.inspect)(e)} to be a GraphQL Non-Null type.`);return e}function $I(e){return lc(e)||pc(e)||lf(e)||df(e)&&$I(e.ofType)}function X3(e){if(!$I(e))throw new Error(`Expected ${(0,Nn.inspect)(e)} to be a GraphQL input type.`);return e}function GI(e){return lc(e)||Dl(e)||dc(e)||fc(e)||pc(e)||df(e)&&GI(e.ofType)}function Z3(e){if(!GI(e))throw new Error(`Expected ${(0,Nn.inspect)(e)} to be a GraphQL output type.`);return e}function HF(e){return lc(e)||pc(e)}function eW(e){if(!HF(e))throw new Error(`Expected ${(0,Nn.inspect)(e)} to be a GraphQL leaf type.`);return e}function WF(e){return Dl(e)||dc(e)||fc(e)}function tW(e){if(!WF(e))throw new Error(`Expected ${(0,Nn.inspect)(e)} to be a GraphQL composite type.`);return e}function XF(e){return dc(e)||fc(e)}function nW(e){if(!XF(e))throw new Error(`Expected ${(0,Nn.inspect)(e)} to be a GraphQL abstract type.`);return e}var hN=class{constructor(t){bN(t)||(0,Tr.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=hN;var yN=class{constructor(t){QI(t)||(0,Tr.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=yN;function df(e){return AN(e)||gu(e)}function rW(e){if(!df(e))throw new Error(`Expected ${(0,Nn.inspect)(e)} to be a GraphQL wrapping type.`);return e}function QI(e){return bN(e)&&!gu(e)}function iW(e){if(!QI(e))throw new Error(`Expected ${(0,Nn.inspect)(e)} to be a GraphQL nullable type.`);return e}function aW(e){if(e)return gu(e)?e.ofType:e}function ZF(e){return lc(e)||Dl(e)||dc(e)||fc(e)||pc(e)||lf(e)}function sW(e){if(!ZF(e))throw new Error(`Expected ${(0,Nn.inspect)(e)} to be a GraphQL named type.`);return e}function oW(e){if(e){let t=e;for(;df(t);)t=t.ofType;return t}}function YI(e){return typeof e=="function"?e():e}function JI(e){return typeof e=="function"?e():e}var IN=class{constructor(t){var n,r,i,a;let o=(n=t.parseValue)!==null&&n!==void 0?n:QF.identityFunc;this.name=(0,Ga.assertName)(t.name),this.description=t.description,this.specifiedByURL=t.specifiedByURL,this.serialize=(r=t.serialize)!==null&&r!==void 0?r:QF.identityFunc,this.parseValue=o,this.parseLiteral=(i=t.parseLiteral)!==null&&i!==void 0?i:(u,l)=>o((0,j3.valueFromASTUntyped)(u,l)),this.extensions=(0,$a.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,Tr.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,Tr.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,Tr.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=IN;var gN=class{constructor(t){var n;this.name=(0,Ga.assertName)(t.name),this.description=t.description,this.isTypeOf=t.isTypeOf,this.extensions=(0,$a.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._fields=()=>tw(t),this._interfaces=()=>ew(t),t.isTypeOf==null||typeof t.isTypeOf=="function"||(0,Tr.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:rw(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};Qe.GraphQLObjectType=gN;function ew(e){var t;let n=YI((t=e.interfaces)!==null&&t!==void 0?t:[]);return Array.isArray(n)||(0,Tr.devAssert)(!1,`${e.name} interfaces must be an Array or a function which returns an Array.`),n}function tw(e){let t=JI(e.fields);return Ol(t)||(0,Tr.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;Ol(n)||(0,Tr.devAssert)(!1,`${e.name}.${r} field config must be an object.`),n.resolve==null||typeof n.resolve=="function"||(0,Tr.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 Ol(a)||(0,Tr.devAssert)(!1,`${e.name}.${r} args must be an object with argument names as keys.`),{name:(0,Ga.assertName)(r),description:n.description,type:n.type,args:nw(a),resolve:n.resolve,subscribe:n.subscribe,deprecationReason:n.deprecationReason,extensions:(0,$a.toObjMap)(n.extensions),astNode:n.astNode}})}function nw(e){return Object.entries(e).map(([t,n])=>({name:(0,Ga.assertName)(t),description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:(0,$a.toObjMap)(n.extensions),astNode:n.astNode}))}function Ol(e){return(0,M3.isObjectLike)(e)&&!Array.isArray(e)}function rw(e){return(0,DN.mapValue)(e,t=>({description:t.description,type:t.type,args:iw(t.args),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:t.extensions,astNode:t.astNode}))}function iw(e){return(0,zF.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 uW(e){return gu(e.type)&&e.defaultValue===void 0}var _N=class{constructor(t){var n;this.name=(0,Ga.assertName)(t.name),this.description=t.description,this.resolveType=t.resolveType,this.extensions=(0,$a.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._fields=tw.bind(void 0,t),this._interfaces=ew.bind(void 0,t),t.resolveType==null||typeof t.resolveType=="function"||(0,Tr.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:rw(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};Qe.GraphQLInterfaceType=_N;var vN=class{constructor(t){var n;this.name=(0,Ga.assertName)(t.name),this.description=t.description,this.resolveType=t.resolveType,this.extensions=(0,$a.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._types=cW.bind(void 0,t),t.resolveType==null||typeof t.resolveType=="function"||(0,Tr.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=vN;function cW(e){let t=YI(e.types);return Array.isArray(t)||(0,Tr.devAssert)(!1,`Must provide Array of types or a function which returns such an array for Union ${e.name}.`),t}var SN=class{constructor(t){var n;this.name=(0,Ga.assertName)(t.name),this.description=t.description,this.extensions=(0,$a.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:JF(this.name,t.values),this._valueLookup=null,this._nameLookup=null}get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){return typeof this._values=="function"&&(this._values=JF(this.name,this._values())),this._values}getValue(t){return this._nameLookup===null&&(this._nameLookup=(0,x3.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 cf.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 cf.GraphQLError(`Enum "${this.name}" cannot represent non-string value: ${r}.`+EN(this,r))}let n=this.getValue(t);if(n==null)throw new cf.GraphQLError(`Value "${t}" does not exist in "${this.name}" enum.`+EN(this,t));return n.value}parseLiteral(t,n){if(t.kind!==V3.Kind.ENUM){let i=(0,YF.print)(t);throw new cf.GraphQLError(`Enum "${this.name}" cannot represent non-enum value: ${i}.`+EN(this,i),{nodes:t})}let r=this.getValue(t.value);if(r==null){let i=(0,YF.print)(t);throw new cf.GraphQLError(`Value "${i}" does not exist in "${this.name}" enum.`+EN(this,i),{nodes:t})}return r.value}toConfig(){let t=(0,zF.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=SN;function EN(e,t){let n=e.getValues().map(i=>i.name),r=(0,q3.suggestionList)(t,n);return(0,k3.didYouMean)("the enum value",r)}function JF(e,t){return Ol(t)||(0,Tr.devAssert)(!1,`${e} values must be an object with value names as keys.`),Object.entries(t).map(([n,r])=>(Ol(r)||(0,Tr.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,Ga.assertEnumValueName)(n),description:r.description,value:r.value!==void 0?r.value:n,deprecationReason:r.deprecationReason,extensions:(0,$a.toObjMap)(r.extensions),astNode:r.astNode}))}var ON=class{constructor(t){var n,r;this.name=(0,Ga.assertName)(t.name),this.description=t.description,this.extensions=(0,$a.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=lW.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=ON;function lW(e){let t=JI(e.fields);return Ol(t)||(0,Tr.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,Tr.devAssert)(!1,`${e.name}.${r} field has a resolve property, but Input Types cannot define resolvers.`),{name:(0,Ga.assertName)(r),description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:(0,$a.toObjMap)(n.extensions),astNode:n.astNode}))}function dW(e){return gu(e.type)&&e.defaultValue===void 0}});var pf=F(ff=>{"use strict";m();T();N();Object.defineProperty(ff,"__esModule",{value:!0});ff.doTypesOverlap=fW;ff.isEqualType=zI;ff.isTypeSubTypeOf=RN;var Cr=Bt();function zI(e,t){return e===t?!0:(0,Cr.isNonNullType)(e)&&(0,Cr.isNonNullType)(t)||(0,Cr.isListType)(e)&&(0,Cr.isListType)(t)?zI(e.ofType,t.ofType):!1}function RN(e,t,n){return t===n?!0:(0,Cr.isNonNullType)(n)?(0,Cr.isNonNullType)(t)?RN(e,t.ofType,n.ofType):!1:(0,Cr.isNonNullType)(t)?RN(e,t.ofType,n):(0,Cr.isListType)(n)?(0,Cr.isListType)(t)?RN(e,t.ofType,n.ofType):!1:(0,Cr.isListType)(t)?!1:(0,Cr.isAbstractType)(n)&&((0,Cr.isInterfaceType)(t)||(0,Cr.isObjectType)(t))&&e.isSubType(n,t)}function fW(e,t,n){return t===n?!0:(0,Cr.isAbstractType)(t)?(0,Cr.isAbstractType)(n)?e.getPossibleTypes(t).some(r=>e.isSubType(n,r)):e.isSubType(t,n):(0,Cr.isAbstractType)(n)?e.isSubType(n,t):!1}});var Qa=F(ur=>{"use strict";m();T();N();Object.defineProperty(ur,"__esModule",{value:!0});ur.GraphQLString=ur.GraphQLInt=ur.GraphQLID=ur.GraphQLFloat=ur.GraphQLBoolean=ur.GRAPHQL_MIN_INT=ur.GRAPHQL_MAX_INT=void 0;ur.isSpecifiedScalarType=pW;ur.specifiedScalarTypes=void 0;var Na=nn(),aw=ja(),Er=et(),mc=Ut(),mf=gi(),Nf=Bt(),PN=2147483647;ur.GRAPHQL_MAX_INT=PN;var FN=-2147483648;ur.GRAPHQL_MIN_INT=FN;var sw=new Nf.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=Tf(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 Er.GraphQLError(`Int cannot represent non-integer value: ${(0,Na.inspect)(t)}`);if(n>PN||nPN||ePN||te.name===t)}function Tf(e){if((0,aw.isObjectLike)(e)){if(typeof e.valueOf=="function"){let t=e.valueOf();if(!(0,aw.isObjectLike)(t))return t}if(typeof e.toJSON=="function")return e.toJSON()}return e}});var ri=F(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=yW;jn.isDirective=pw;jn.isSpecifiedDirective=IW;jn.specifiedDirectives=void 0;var fw=Gr(),mW=nn(),NW=nf(),TW=ja(),EW=fN(),ki=gl(),hW=uf(),Ef=Bt(),wN=Qa();function pw(e){return(0,NW.instanceOf)(e,Ds)}function yW(e){if(!pw(e))throw new Error(`Expected ${(0,mW.inspect)(e)} to be a GraphQL directive.`);return e}var Ds=class{constructor(t){var n,r;this.name=(0,hW.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,EW.toObjMap)(t.extensions),this.astNode=t.astNode,Array.isArray(t.locations)||(0,fw.devAssert)(!1,`@${t.name} locations must be an Array.`);let i=(r=t.args)!==null&&r!==void 0?r:{};(0,TW.isObjectLike)(i)&&!Array.isArray(i)||(0,fw.devAssert)(!1,`@${t.name} args must be an object with argument names as keys.`),this.args=(0,Ef.defineArguments)(i)}get[Symbol.toStringTag](){return"GraphQLDirective"}toConfig(){return{name:this.name,description:this.description,locations:this.locations,args:(0,Ef.argsToArgsConfig)(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}}toString(){return"@"+this.name}toJSON(){return this.toString()}};jn.GraphQLDirective=Ds;var mw=new Ds({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[ki.DirectiveLocation.FIELD,ki.DirectiveLocation.FRAGMENT_SPREAD,ki.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new Ef.GraphQLNonNull(wN.GraphQLBoolean),description:"Included when true."}}});jn.GraphQLIncludeDirective=mw;var Nw=new Ds({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[ki.DirectiveLocation.FIELD,ki.DirectiveLocation.FRAGMENT_SPREAD,ki.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new Ef.GraphQLNonNull(wN.GraphQLBoolean),description:"Skipped when true."}}});jn.GraphQLSkipDirective=Nw;var Tw="No longer supported";jn.DEFAULT_DEPRECATION_REASON=Tw;var Ew=new Ds({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[ki.DirectiveLocation.FIELD_DEFINITION,ki.DirectiveLocation.ARGUMENT_DEFINITION,ki.DirectiveLocation.INPUT_FIELD_DEFINITION,ki.DirectiveLocation.ENUM_VALUE],args:{reason:{type:wN.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:Tw}}});jn.GraphQLDeprecatedDirective=Ew;var hw=new Ds({name:"specifiedBy",description:"Exposes a URL that specifies the behavior of this scalar.",locations:[ki.DirectiveLocation.SCALAR],args:{url:{type:new Ef.GraphQLNonNull(wN.GraphQLString),description:"The URL that specifies the behavior of this scalar."}}});jn.GraphQLSpecifiedByDirective=hw;var yw=new Ds({name:"oneOf",description:"Indicates exactly one field must be supplied and this field must not be `null`.",locations:[ki.DirectiveLocation.INPUT_OBJECT],args:{}});jn.GraphQLOneOfDirective=yw;var Iw=Object.freeze([mw,Nw,Ew,hw,yw]);jn.specifiedDirectives=Iw;function IW(e){return Iw.some(({name:t})=>t===e.name)}});var LN=F(HI=>{"use strict";m();T();N();Object.defineProperty(HI,"__esModule",{value:!0});HI.isIterableObject=gW;function gW(e){return typeof e=="object"&&typeof(e==null?void 0:e[Symbol.iterator])=="function"}});var If=F(WI=>{"use strict";m();T();N();Object.defineProperty(WI,"__esModule",{value:!0});WI.astFromValue=yf;var gw=nn(),_W=Lr(),vW=LN(),SW=ja(),Mi=Ut(),hf=Bt(),OW=Qa();function yf(e,t){if((0,hf.isNonNullType)(t)){let n=yf(e,t.ofType);return(n==null?void 0:n.kind)===Mi.Kind.NULL?null:n}if(e===null)return{kind:Mi.Kind.NULL};if(e===void 0)return null;if((0,hf.isListType)(t)){let n=t.ofType;if((0,vW.isIterableObject)(e)){let r=[];for(let i of e){let a=yf(i,n);a!=null&&r.push(a)}return{kind:Mi.Kind.LIST,values:r}}return yf(e,n)}if((0,hf.isInputObjectType)(t)){if(!(0,SW.isObjectLike)(e))return null;let n=[];for(let r of Object.values(t.getFields())){let i=yf(e[r.name],r.type);i&&n.push({kind:Mi.Kind.OBJECT_FIELD,name:{kind:Mi.Kind.NAME,value:r.name},value:i})}return{kind:Mi.Kind.OBJECT,fields:n}}if((0,hf.isLeafType)(t)){let n=t.serialize(e);if(n==null)return null;if(typeof n=="boolean")return{kind:Mi.Kind.BOOLEAN,value:n};if(typeof n=="number"&&Number.isFinite(n)){let r=String(n);return _w.test(r)?{kind:Mi.Kind.INT,value:r}:{kind:Mi.Kind.FLOAT,value:r}}if(typeof n=="string")return(0,hf.isEnumType)(t)?{kind:Mi.Kind.ENUM,value:n}:t===OW.GraphQLID&&_w.test(n)?{kind:Mi.Kind.INT,value:n}:{kind:Mi.Kind.STRING,value:n};throw new TypeError(`Cannot convert value to AST: ${(0,gw.inspect)(n)}.`)}(0,_W.invariant)(!1,"Unexpected input type: "+(0,gw.inspect)(t))}var _w=/^-?(?:0|[1-9][0-9]*)$/});var qi=F(rn=>{"use strict";m();T();N();Object.defineProperty(rn,"__esModule",{value:!0});rn.introspectionTypes=rn.__TypeKind=rn.__Type=rn.__Schema=rn.__InputValue=rn.__Field=rn.__EnumValue=rn.__DirectiveLocation=rn.__Directive=rn.TypeNameMetaFieldDef=rn.TypeMetaFieldDef=rn.TypeKind=rn.SchemaMetaFieldDef=void 0;rn.isIntrospectionType=LW;var DW=nn(),bW=Lr(),cr=gl(),AW=gi(),RW=If(),Ve=Bt(),ln=Qa(),XI=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:ln.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(xi))),resolve(e){return Object.values(e.getTypeMap())}},queryType:{description:"The type that query operations will be rooted at.",type:new Ve.GraphQLNonNull(xi),resolve:e=>e.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:xi,resolve:e=>e.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:xi,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(ZI))),resolve:e=>e.getDirectives()}})});rn.__Schema=XI;var ZI=new Ve.GraphQLObjectType({name:"__Directive",description:`A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document. +}`)}function kt(e,t,r=""){return t!=null&&t!==""?e+t+r:""}function QE(e){return kt(" ",e.replace(/\n/g,` + `))}function oY(e){var t;return(t=e==null?void 0:e.some(r=>r.includes(` +`)))!==null&&t!==void 0?t:!1}});var Vb=D(jb=>{"use strict";d();p();f();Object.defineProperty(jb,"__esModule",{value:!0});jb.valueFromASTUntyped=Mb;var nve=fh(),As=jt();function Mb(e,t){switch(e.kind){case As.Kind.NULL:return null;case As.Kind.INT:return parseInt(e.value,10);case As.Kind.FLOAT:return parseFloat(e.value);case As.Kind.STRING:case As.Kind.ENUM:case As.Kind.BOOLEAN:return e.value;case As.Kind.LIST:return e.values.map(r=>Mb(r,t));case As.Kind.OBJECT:return(0,nve.keyValMap)(e.fields,r=>r.name.value,r=>Mb(r.value,t));case As.Kind.VARIABLE:return t==null?void 0:t[e.name.value]}}});var mh=D(JE=>{"use strict";d();p();f();Object.defineProperty(JE,"__esModule",{value:!0});JE.assertEnumValueName=ive;JE.assertName=cY;var sY=si(),YE=at(),uY=BE();function cY(e){if(e!=null||(0,sY.devAssert)(!1,"Must provide name."),typeof e=="string"||(0,sY.devAssert)(!1,"Expected name to be a string."),e.length===0)throw new YE.GraphQLError("Expected name to be a non-empty string.");for(let t=1;t{"use strict";d();p();f();Object.defineProperty(He,"__esModule",{value:!0});He.GraphQLUnionType=He.GraphQLScalarType=He.GraphQLObjectType=He.GraphQLNonNull=He.GraphQLList=He.GraphQLInterfaceType=He.GraphQLInputObjectType=He.GraphQLEnumType=void 0;He.argsToArgsConfig=vY;He.assertAbstractType=Sve;He.assertCompositeType=_ve;He.assertEnumType=yve;He.assertInputObjectType=Nve;He.assertInputType=gve;He.assertInterfaceType=mve;He.assertLeafType=vve;He.assertListType=Tve;He.assertNamedType=Ave;He.assertNonNullType=Eve;He.assertNullableType=Dve;He.assertObjectType=pve;He.assertOutputType=Ive;He.assertScalarType=fve;He.assertType=dve;He.assertUnionType=hve;He.assertWrappingType=Ove;He.defineArguments=gY;He.getNamedType=Rve;He.getNullableType=bve;He.isAbstractType=yY;He.isCompositeType=hY;He.isEnumType=Jl;He.isInputObjectType=yh;He.isInputType=Kb;He.isInterfaceType=Ql;He.isLeafType=mY;He.isListType=og;He.isNamedType=NY;He.isNonNullType=Kc;He.isNullableType=Gb;He.isObjectType=kf;He.isOutputType=$b;He.isRequiredArgument=wve;He.isRequiredInputField=Lve;He.isScalarType=Gl;He.isType=ag;He.isUnionType=Yl;He.isWrappingType=Nh;He.resolveObjMapThunk=Yb;He.resolveReadonlyArrayThunk=Qb;var Cn=si(),ave=qc(),lY=rY(),Sr=ur(),Vc=ch(),ove=wo(),sve=xc(),pY=fh(),ig=Pb(),uve=Mc(),Fo=$E(),hh=at(),cve=jt(),dY=Gi(),lve=Vb(),Lo=mh();function ag(e){return Gl(e)||kf(e)||Ql(e)||Yl(e)||Jl(e)||yh(e)||og(e)||Kc(e)}function dve(e){if(!ag(e))throw new Error(`Expected ${(0,Sr.inspect)(e)} to be a GraphQL type.`);return e}function Gl(e){return(0,Vc.instanceOf)(e,XE)}function fve(e){if(!Gl(e))throw new Error(`Expected ${(0,Sr.inspect)(e)} to be a GraphQL Scalar type.`);return e}function kf(e){return(0,Vc.instanceOf)(e,ZE)}function pve(e){if(!kf(e))throw new Error(`Expected ${(0,Sr.inspect)(e)} to be a GraphQL Object type.`);return e}function Ql(e){return(0,Vc.instanceOf)(e,eg)}function mve(e){if(!Ql(e))throw new Error(`Expected ${(0,Sr.inspect)(e)} to be a GraphQL Interface type.`);return e}function Yl(e){return(0,Vc.instanceOf)(e,tg)}function hve(e){if(!Yl(e))throw new Error(`Expected ${(0,Sr.inspect)(e)} to be a GraphQL Union type.`);return e}function Jl(e){return(0,Vc.instanceOf)(e,rg)}function yve(e){if(!Jl(e))throw new Error(`Expected ${(0,Sr.inspect)(e)} to be a GraphQL Enum type.`);return e}function yh(e){return(0,Vc.instanceOf)(e,ng)}function Nve(e){if(!yh(e))throw new Error(`Expected ${(0,Sr.inspect)(e)} to be a GraphQL Input Object type.`);return e}function og(e){return(0,Vc.instanceOf)(e,HE)}function Tve(e){if(!og(e))throw new Error(`Expected ${(0,Sr.inspect)(e)} to be a GraphQL List type.`);return e}function Kc(e){return(0,Vc.instanceOf)(e,WE)}function Eve(e){if(!Kc(e))throw new Error(`Expected ${(0,Sr.inspect)(e)} to be a GraphQL Non-Null type.`);return e}function Kb(e){return Gl(e)||Jl(e)||yh(e)||Nh(e)&&Kb(e.ofType)}function gve(e){if(!Kb(e))throw new Error(`Expected ${(0,Sr.inspect)(e)} to be a GraphQL input type.`);return e}function $b(e){return Gl(e)||kf(e)||Ql(e)||Yl(e)||Jl(e)||Nh(e)&&$b(e.ofType)}function Ive(e){if(!$b(e))throw new Error(`Expected ${(0,Sr.inspect)(e)} to be a GraphQL output type.`);return e}function mY(e){return Gl(e)||Jl(e)}function vve(e){if(!mY(e))throw new Error(`Expected ${(0,Sr.inspect)(e)} to be a GraphQL leaf type.`);return e}function hY(e){return kf(e)||Ql(e)||Yl(e)}function _ve(e){if(!hY(e))throw new Error(`Expected ${(0,Sr.inspect)(e)} to be a GraphQL composite type.`);return e}function yY(e){return Ql(e)||Yl(e)}function Sve(e){if(!yY(e))throw new Error(`Expected ${(0,Sr.inspect)(e)} to be a GraphQL abstract type.`);return e}var HE=class{constructor(t){ag(t)||(0,Cn.devAssert)(!1,`Expected ${(0,Sr.inspect)(t)} to be a GraphQL type.`),this.ofType=t}get[Symbol.toStringTag](){return"GraphQLList"}toString(){return"["+String(this.ofType)+"]"}toJSON(){return this.toString()}};He.GraphQLList=HE;var WE=class{constructor(t){Gb(t)||(0,Cn.devAssert)(!1,`Expected ${(0,Sr.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()}};He.GraphQLNonNull=WE;function Nh(e){return og(e)||Kc(e)}function Ove(e){if(!Nh(e))throw new Error(`Expected ${(0,Sr.inspect)(e)} to be a GraphQL wrapping type.`);return e}function Gb(e){return ag(e)&&!Kc(e)}function Dve(e){if(!Gb(e))throw new Error(`Expected ${(0,Sr.inspect)(e)} to be a GraphQL nullable type.`);return e}function bve(e){if(e)return Kc(e)?e.ofType:e}function NY(e){return Gl(e)||kf(e)||Ql(e)||Yl(e)||Jl(e)||yh(e)}function Ave(e){if(!NY(e))throw new Error(`Expected ${(0,Sr.inspect)(e)} to be a GraphQL named type.`);return e}function Rve(e){if(e){let t=e;for(;Nh(t);)t=t.ofType;return t}}function Qb(e){return typeof e=="function"?e():e}function Yb(e){return typeof e=="function"?e():e}var XE=class{constructor(t){var r,n,i,a;let o=(r=t.parseValue)!==null&&r!==void 0?r:lY.identityFunc;this.name=(0,Lo.assertName)(t.name),this.description=t.description,this.specifiedByURL=t.specifiedByURL,this.serialize=(n=t.serialize)!==null&&n!==void 0?n:lY.identityFunc,this.parseValue=o,this.parseLiteral=(i=t.parseLiteral)!==null&&i!==void 0?i:(u,l)=>o((0,lve.valueFromASTUntyped)(u,l)),this.extensions=(0,Fo.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,Cn.devAssert)(!1,`${this.name} must provide "specifiedByURL" as a string, but got: ${(0,Sr.inspect)(t.specifiedByURL)}.`),t.serialize==null||typeof t.serialize=="function"||(0,Cn.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,Cn.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()}};He.GraphQLScalarType=XE;var ZE=class{constructor(t){var r;this.name=(0,Lo.assertName)(t.name),this.description=t.description,this.isTypeOf=t.isTypeOf,this.extensions=(0,Fo.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(r=t.extensionASTNodes)!==null&&r!==void 0?r:[],this._fields=()=>EY(t),this._interfaces=()=>TY(t),t.isTypeOf==null||typeof t.isTypeOf=="function"||(0,Cn.devAssert)(!1,`${this.name} must provide "isTypeOf" as a function, but got: ${(0,Sr.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:IY(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};He.GraphQLObjectType=ZE;function TY(e){var t;let r=Qb((t=e.interfaces)!==null&&t!==void 0?t:[]);return Array.isArray(r)||(0,Cn.devAssert)(!1,`${e.name} interfaces must be an Array or a function which returns an Array.`),r}function EY(e){let t=Yb(e.fields);return Uf(t)||(0,Cn.devAssert)(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),(0,ig.mapValue)(t,(r,n)=>{var i;Uf(r)||(0,Cn.devAssert)(!1,`${e.name}.${n} field config must be an object.`),r.resolve==null||typeof r.resolve=="function"||(0,Cn.devAssert)(!1,`${e.name}.${n} field resolver must be a function if provided, but got: ${(0,Sr.inspect)(r.resolve)}.`);let a=(i=r.args)!==null&&i!==void 0?i:{};return Uf(a)||(0,Cn.devAssert)(!1,`${e.name}.${n} args must be an object with argument names as keys.`),{name:(0,Lo.assertName)(n),description:r.description,type:r.type,args:gY(a),resolve:r.resolve,subscribe:r.subscribe,deprecationReason:r.deprecationReason,extensions:(0,Fo.toObjMap)(r.extensions),astNode:r.astNode}})}function gY(e){return Object.entries(e).map(([t,r])=>({name:(0,Lo.assertName)(t),description:r.description,type:r.type,defaultValue:r.defaultValue,deprecationReason:r.deprecationReason,extensions:(0,Fo.toObjMap)(r.extensions),astNode:r.astNode}))}function Uf(e){return(0,ove.isObjectLike)(e)&&!Array.isArray(e)}function IY(e){return(0,ig.mapValue)(e,t=>({description:t.description,type:t.type,args:vY(t.args),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:t.extensions,astNode:t.astNode}))}function vY(e){return(0,pY.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 wve(e){return Kc(e.type)&&e.defaultValue===void 0}var eg=class{constructor(t){var r;this.name=(0,Lo.assertName)(t.name),this.description=t.description,this.resolveType=t.resolveType,this.extensions=(0,Fo.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(r=t.extensionASTNodes)!==null&&r!==void 0?r:[],this._fields=EY.bind(void 0,t),this._interfaces=TY.bind(void 0,t),t.resolveType==null||typeof t.resolveType=="function"||(0,Cn.devAssert)(!1,`${this.name} must provide "resolveType" as a function, but got: ${(0,Sr.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:IY(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};He.GraphQLInterfaceType=eg;var tg=class{constructor(t){var r;this.name=(0,Lo.assertName)(t.name),this.description=t.description,this.resolveType=t.resolveType,this.extensions=(0,Fo.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(r=t.extensionASTNodes)!==null&&r!==void 0?r:[],this._types=Pve.bind(void 0,t),t.resolveType==null||typeof t.resolveType=="function"||(0,Cn.devAssert)(!1,`${this.name} must provide "resolveType" as a function, but got: ${(0,Sr.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()}};He.GraphQLUnionType=tg;function Pve(e){let t=Qb(e.types);return Array.isArray(t)||(0,Cn.devAssert)(!1,`Must provide Array of types or a function which returns such an array for Union ${e.name}.`),t}var rg=class{constructor(t){var r;this.name=(0,Lo.assertName)(t.name),this.description=t.description,this.extensions=(0,Fo.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(r=t.extensionASTNodes)!==null&&r!==void 0?r:[],this._values=typeof t.values=="function"?t.values:fY(this.name,t.values),this._valueLookup=null,this._nameLookup=null}get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){return typeof this._values=="function"&&(this._values=fY(this.name,this._values())),this._values}getValue(t){return this._nameLookup===null&&(this._nameLookup=(0,sve.keyMap)(this.getValues(),r=>r.name)),this._nameLookup[t]}serialize(t){this._valueLookup===null&&(this._valueLookup=new Map(this.getValues().map(n=>[n.value,n])));let r=this._valueLookup.get(t);if(r===void 0)throw new hh.GraphQLError(`Enum "${this.name}" cannot represent value: ${(0,Sr.inspect)(t)}`);return r.name}parseValue(t){if(typeof t!="string"){let n=(0,Sr.inspect)(t);throw new hh.GraphQLError(`Enum "${this.name}" cannot represent non-string value: ${n}.`+zE(this,n))}let r=this.getValue(t);if(r==null)throw new hh.GraphQLError(`Value "${t}" does not exist in "${this.name}" enum.`+zE(this,t));return r.value}parseLiteral(t,r){if(t.kind!==cve.Kind.ENUM){let i=(0,dY.print)(t);throw new hh.GraphQLError(`Enum "${this.name}" cannot represent non-enum value: ${i}.`+zE(this,i),{nodes:t})}let n=this.getValue(t.value);if(n==null){let i=(0,dY.print)(t);throw new hh.GraphQLError(`Value "${i}" does not exist in "${this.name}" enum.`+zE(this,i),{nodes:t})}return n.value}toConfig(){let t=(0,pY.keyValMap)(this.getValues(),r=>r.name,r=>({description:r.description,value:r.value,deprecationReason:r.deprecationReason,extensions:r.extensions,astNode:r.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()}};He.GraphQLEnumType=rg;function zE(e,t){let r=e.getValues().map(i=>i.name),n=(0,uve.suggestionList)(t,r);return(0,ave.didYouMean)("the enum value",n)}function fY(e,t){return Uf(t)||(0,Cn.devAssert)(!1,`${e} values must be an object with value names as keys.`),Object.entries(t).map(([r,n])=>(Uf(n)||(0,Cn.devAssert)(!1,`${e}.${r} must refer to an object with a "value" key representing an internal value but got: ${(0,Sr.inspect)(n)}.`),{name:(0,Lo.assertEnumValueName)(r),description:n.description,value:n.value!==void 0?n.value:r,deprecationReason:n.deprecationReason,extensions:(0,Fo.toObjMap)(n.extensions),astNode:n.astNode}))}var ng=class{constructor(t){var r,n;this.name=(0,Lo.assertName)(t.name),this.description=t.description,this.extensions=(0,Fo.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(r=t.extensionASTNodes)!==null&&r!==void 0?r:[],this.isOneOf=(n=t.isOneOf)!==null&&n!==void 0?n:!1,this._fields=Fve.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,ig.mapValue)(this.getFields(),r=>({description:r.description,type:r.type,defaultValue:r.defaultValue,deprecationReason:r.deprecationReason,extensions:r.extensions,astNode:r.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()}};He.GraphQLInputObjectType=ng;function Fve(e){let t=Yb(e.fields);return Uf(t)||(0,Cn.devAssert)(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),(0,ig.mapValue)(t,(r,n)=>(!("resolve"in r)||(0,Cn.devAssert)(!1,`${e.name}.${n} field has a resolve property, but Input Types cannot define resolvers.`),{name:(0,Lo.assertName)(n),description:r.description,type:r.type,defaultValue:r.defaultValue,deprecationReason:r.deprecationReason,extensions:(0,Fo.toObjMap)(r.extensions),astNode:r.astNode}))}function Lve(e){return Kc(e.type)&&e.defaultValue===void 0}});var Eh=D(Th=>{"use strict";d();p();f();Object.defineProperty(Th,"__esModule",{value:!0});Th.doTypesOverlap=Cve;Th.isEqualType=Jb;Th.isTypeSubTypeOf=sg;var Zn=Vt();function Jb(e,t){return e===t?!0:(0,Zn.isNonNullType)(e)&&(0,Zn.isNonNullType)(t)||(0,Zn.isListType)(e)&&(0,Zn.isListType)(t)?Jb(e.ofType,t.ofType):!1}function sg(e,t,r){return t===r?!0:(0,Zn.isNonNullType)(r)?(0,Zn.isNonNullType)(t)?sg(e,t.ofType,r.ofType):!1:(0,Zn.isNonNullType)(t)?sg(e,t.ofType,r):(0,Zn.isListType)(r)?(0,Zn.isListType)(t)?sg(e,t.ofType,r.ofType):!1:(0,Zn.isListType)(t)?!1:(0,Zn.isAbstractType)(r)&&((0,Zn.isInterfaceType)(t)||(0,Zn.isObjectType)(t))&&e.isSubType(r,t)}function Cve(e,t,r){return t===r?!0:(0,Zn.isAbstractType)(t)?(0,Zn.isAbstractType)(r)?e.getPossibleTypes(t).some(n=>e.isSubType(r,n)):e.isSubType(t,r):(0,Zn.isAbstractType)(r)?e.isSubType(r,t):!1}});var Co=D(Sn=>{"use strict";d();p();f();Object.defineProperty(Sn,"__esModule",{value:!0});Sn.GraphQLString=Sn.GraphQLInt=Sn.GraphQLID=Sn.GraphQLFloat=Sn.GraphQLBoolean=Sn.GRAPHQL_MIN_INT=Sn.GRAPHQL_MAX_INT=void 0;Sn.isSpecifiedScalarType=Bve;Sn.specifiedScalarTypes=void 0;var Wa=ur(),_Y=wo(),Bn=at(),zl=jt(),gh=Gi(),Ih=Vt(),ug=2147483647;Sn.GRAPHQL_MAX_INT=ug;var cg=-2147483648;Sn.GRAPHQL_MIN_INT=cg;var SY=new Ih.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=vh(e);if(typeof t=="boolean")return t?1:0;let r=t;if(typeof t=="string"&&t!==""&&(r=Number(t)),typeof r!="number"||!Number.isInteger(r))throw new Bn.GraphQLError(`Int cannot represent non-integer value: ${(0,Wa.inspect)(t)}`);if(r>ug||rug||eug||te.name===t)}function vh(e){if((0,_Y.isObjectLike)(e)){if(typeof e.valueOf=="function"){let t=e.valueOf();if(!(0,_Y.isObjectLike)(t))return t}if(typeof e.toJSON=="function")return e.toJSON()}return e}});var _i=D(an=>{"use strict";d();p();f();Object.defineProperty(an,"__esModule",{value:!0});an.GraphQLSpecifiedByDirective=an.GraphQLSkipDirective=an.GraphQLOneOfDirective=an.GraphQLIncludeDirective=an.GraphQLDirective=an.GraphQLDeprecatedDirective=an.DEFAULT_DEPRECATION_REASON=void 0;an.assertDirective=jve;an.isDirective=PY;an.isSpecifiedDirective=Vve;an.specifiedDirectives=void 0;var wY=si(),Uve=ur(),kve=ch(),qve=wo(),xve=$E(),da=Ff(),Mve=mh(),_h=Vt(),lg=Co();function PY(e){return(0,kve.instanceOf)(e,Rs)}function jve(e){if(!PY(e))throw new Error(`Expected ${(0,Uve.inspect)(e)} to be a GraphQL directive.`);return e}var Rs=class{constructor(t){var r,n;this.name=(0,Mve.assertName)(t.name),this.description=t.description,this.locations=t.locations,this.isRepeatable=(r=t.isRepeatable)!==null&&r!==void 0?r:!1,this.extensions=(0,xve.toObjMap)(t.extensions),this.astNode=t.astNode,Array.isArray(t.locations)||(0,wY.devAssert)(!1,`@${t.name} locations must be an Array.`);let i=(n=t.args)!==null&&n!==void 0?n:{};(0,qve.isObjectLike)(i)&&!Array.isArray(i)||(0,wY.devAssert)(!1,`@${t.name} args must be an object with argument names as keys.`),this.args=(0,_h.defineArguments)(i)}get[Symbol.toStringTag](){return"GraphQLDirective"}toConfig(){return{name:this.name,description:this.description,locations:this.locations,args:(0,_h.argsToArgsConfig)(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}}toString(){return"@"+this.name}toJSON(){return this.toString()}};an.GraphQLDirective=Rs;var FY=new Rs({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[da.DirectiveLocation.FIELD,da.DirectiveLocation.FRAGMENT_SPREAD,da.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new _h.GraphQLNonNull(lg.GraphQLBoolean),description:"Included when true."}}});an.GraphQLIncludeDirective=FY;var LY=new Rs({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[da.DirectiveLocation.FIELD,da.DirectiveLocation.FRAGMENT_SPREAD,da.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new _h.GraphQLNonNull(lg.GraphQLBoolean),description:"Skipped when true."}}});an.GraphQLSkipDirective=LY;var CY="No longer supported";an.DEFAULT_DEPRECATION_REASON=CY;var BY=new Rs({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[da.DirectiveLocation.FIELD_DEFINITION,da.DirectiveLocation.ARGUMENT_DEFINITION,da.DirectiveLocation.INPUT_FIELD_DEFINITION,da.DirectiveLocation.ENUM_VALUE],args:{reason:{type:lg.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:CY}}});an.GraphQLDeprecatedDirective=BY;var UY=new Rs({name:"specifiedBy",description:"Exposes a URL that specifies the behavior of this scalar.",locations:[da.DirectiveLocation.SCALAR],args:{url:{type:new _h.GraphQLNonNull(lg.GraphQLString),description:"The URL that specifies the behavior of this scalar."}}});an.GraphQLSpecifiedByDirective=UY;var kY=new Rs({name:"oneOf",description:"Indicates exactly one field must be supplied and this field must not be `null`.",locations:[da.DirectiveLocation.INPUT_OBJECT],args:{}});an.GraphQLOneOfDirective=kY;var qY=Object.freeze([FY,LY,BY,UY,kY]);an.specifiedDirectives=qY;function Vve(e){return qY.some(({name:t})=>t===e.name)}});var dg=D(zb=>{"use strict";d();p();f();Object.defineProperty(zb,"__esModule",{value:!0});zb.isIterableObject=Kve;function Kve(e){return typeof e=="object"&&typeof(e==null?void 0:e[Symbol.iterator])=="function"}});var Dh=D(Hb=>{"use strict";d();p();f();Object.defineProperty(Hb,"__esModule",{value:!0});Hb.astFromValue=Oh;var xY=ur(),$ve=Xn(),Gve=dg(),Qve=wo(),fa=jt(),Sh=Vt(),Yve=Co();function Oh(e,t){if((0,Sh.isNonNullType)(t)){let r=Oh(e,t.ofType);return(r==null?void 0:r.kind)===fa.Kind.NULL?null:r}if(e===null)return{kind:fa.Kind.NULL};if(e===void 0)return null;if((0,Sh.isListType)(t)){let r=t.ofType;if((0,Gve.isIterableObject)(e)){let n=[];for(let i of e){let a=Oh(i,r);a!=null&&n.push(a)}return{kind:fa.Kind.LIST,values:n}}return Oh(e,r)}if((0,Sh.isInputObjectType)(t)){if(!(0,Qve.isObjectLike)(e))return null;let r=[];for(let n of Object.values(t.getFields())){let i=Oh(e[n.name],n.type);i&&r.push({kind:fa.Kind.OBJECT_FIELD,name:{kind:fa.Kind.NAME,value:n.name},value:i})}return{kind:fa.Kind.OBJECT,fields:r}}if((0,Sh.isLeafType)(t)){let r=t.serialize(e);if(r==null)return null;if(typeof r=="boolean")return{kind:fa.Kind.BOOLEAN,value:r};if(typeof r=="number"&&Number.isFinite(r)){let n=String(r);return MY.test(n)?{kind:fa.Kind.INT,value:n}:{kind:fa.Kind.FLOAT,value:n}}if(typeof r=="string")return(0,Sh.isEnumType)(t)?{kind:fa.Kind.ENUM,value:r}:t===Yve.GraphQLID&&MY.test(r)?{kind:fa.Kind.INT,value:r}:{kind:fa.Kind.STRING,value:r};throw new TypeError(`Cannot convert value to AST: ${(0,xY.inspect)(r)}.`)}(0,$ve.invariant)(!1,"Unexpected input type: "+(0,xY.inspect)(t))}var MY=/^-?(?:0|[1-9][0-9]*)$/});var ma=D(cr=>{"use strict";d();p();f();Object.defineProperty(cr,"__esModule",{value:!0});cr.introspectionTypes=cr.__TypeKind=cr.__Type=cr.__Schema=cr.__InputValue=cr.__Field=cr.__EnumValue=cr.__DirectiveLocation=cr.__Directive=cr.TypeNameMetaFieldDef=cr.TypeMetaFieldDef=cr.TypeKind=cr.SchemaMetaFieldDef=void 0;cr.isIntrospectionType=t_e;var Jve=ur(),zve=Xn(),On=Ff(),Hve=Gi(),Wve=Dh(),Ke=Vt(),Nr=Co(),Wb=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:Nr.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(pa))),resolve(e){return Object.values(e.getTypeMap())}},queryType:{description:"The type that query operations will be rooted at.",type:new Ke.GraphQLNonNull(pa),resolve:e=>e.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:pa,resolve:e=>e.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:pa,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(Xb))),resolve:e=>e.getDirectives()}})});cr.__Schema=Wb;var Xb=new Ke.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(ln.GraphQLString),resolve:e=>e.name},description:{type:ln.GraphQLString,resolve:e=>e.description},isRepeatable:{type:new Ve.GraphQLNonNull(ln.GraphQLBoolean),resolve:e=>e.isRepeatable},locations:{type:new Ve.GraphQLNonNull(new Ve.GraphQLList(new Ve.GraphQLNonNull(eg))),resolve:e=>e.locations},args:{type:new Ve.GraphQLNonNull(new Ve.GraphQLList(new Ve.GraphQLNonNull(gf))),args:{includeDeprecated:{type:ln.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){return t?e.args:e.args.filter(n=>n.deprecationReason==null)}}})});rn.__Directive=ZI;var eg=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:cr.DirectiveLocation.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:cr.DirectiveLocation.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:cr.DirectiveLocation.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:cr.DirectiveLocation.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:cr.DirectiveLocation.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:cr.DirectiveLocation.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:cr.DirectiveLocation.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:cr.DirectiveLocation.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:cr.DirectiveLocation.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:cr.DirectiveLocation.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:cr.DirectiveLocation.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:cr.DirectiveLocation.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:cr.DirectiveLocation.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:cr.DirectiveLocation.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:cr.DirectiveLocation.UNION,description:"Location adjacent to a union definition."},ENUM:{value:cr.DirectiveLocation.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:cr.DirectiveLocation.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:cr.DirectiveLocation.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:cr.DirectiveLocation.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}});rn.__DirectiveLocation=eg;var xi=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(rg),resolve(e){if((0,Ve.isScalarType)(e))return lr.SCALAR;if((0,Ve.isObjectType)(e))return lr.OBJECT;if((0,Ve.isInterfaceType)(e))return lr.INTERFACE;if((0,Ve.isUnionType)(e))return lr.UNION;if((0,Ve.isEnumType)(e))return lr.ENUM;if((0,Ve.isInputObjectType)(e))return lr.INPUT_OBJECT;if((0,Ve.isListType)(e))return lr.LIST;if((0,Ve.isNonNullType)(e))return lr.NON_NULL;(0,bW.invariant)(!1,`Unexpected type: "${(0,DW.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 Ve.GraphQLList(new Ve.GraphQLNonNull(tg)),args:{includeDeprecated:{type:ln.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(xi)),resolve(e){if((0,Ve.isObjectType)(e)||(0,Ve.isInterfaceType)(e))return e.getInterfaces()}},possibleTypes:{type:new Ve.GraphQLList(new Ve.GraphQLNonNull(xi)),resolve(e,t,n,{schema:r}){if((0,Ve.isAbstractType)(e))return r.getPossibleTypes(e)}},enumValues:{type:new Ve.GraphQLList(new Ve.GraphQLNonNull(ng)),args:{includeDeprecated:{type:ln.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(gf)),args:{includeDeprecated:{type:ln.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:xi,resolve:e=>"ofType"in e?e.ofType:void 0},isOneOf:{type:ln.GraphQLBoolean,resolve:e=>{if((0,Ve.isInputObjectType)(e))return e.isOneOf}}})});rn.__Type=xi;var tg=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(ln.GraphQLString),resolve:e=>e.name},description:{type:ln.GraphQLString,resolve:e=>e.description},args:{type:new Ve.GraphQLNonNull(new Ve.GraphQLList(new Ve.GraphQLNonNull(gf))),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 Ve.GraphQLNonNull(xi),resolve:e=>e.type},isDeprecated:{type:new Ve.GraphQLNonNull(ln.GraphQLBoolean),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:ln.GraphQLString,resolve:e=>e.deprecationReason}})});rn.__Field=tg;var gf=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(ln.GraphQLString),resolve:e=>e.name},description:{type:ln.GraphQLString,resolve:e=>e.description},type:{type:new Ve.GraphQLNonNull(xi),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,RW.astFromValue)(n,t);return r?(0,AW.print)(r):null}},isDeprecated:{type:new Ve.GraphQLNonNull(ln.GraphQLBoolean),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:ln.GraphQLString,resolve:e=>e.deprecationReason}})});rn.__InputValue=gf;var ng=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(ln.GraphQLString),resolve:e=>e.name},description:{type:ln.GraphQLString,resolve:e=>e.description},isDeprecated:{type:new Ve.GraphQLNonNull(ln.GraphQLBoolean),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:ln.GraphQLString,resolve:e=>e.deprecationReason}})});rn.__EnumValue=ng;var lr;rn.TypeKind=lr;(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"})(lr||(rn.TypeKind=lr={}));var rg=new Ve.GraphQLEnumType({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:lr.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:lr.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:lr.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:lr.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:lr.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:lr.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:lr.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:lr.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}});rn.__TypeKind=rg;var PW={name:"__schema",type:new Ve.GraphQLNonNull(XI),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};rn.SchemaMetaFieldDef=PW;var FW={name:"__type",type:xi,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new Ve.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};rn.TypeMetaFieldDef=FW;var wW={name:"__typename",type:new Ve.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};rn.TypeNameMetaFieldDef=wW;var vw=Object.freeze([XI,ZI,eg,xi,tg,gf,ng,rg]);rn.introspectionTypes=vw;function LW(e){return vw.some(({name:t})=>e.name===t)}});var Nc=F(bl=>{"use strict";m();T();N();Object.defineProperty(bl,"__esModule",{value:!0});bl.GraphQLSchema=void 0;bl.assertSchema=MW;bl.isSchema=Ow;var CN=Gr(),ag=nn(),CW=nf(),UW=ja(),BW=fN(),ig=Ka(),Ta=Bt(),Sw=ri(),kW=qi();function Ow(e){return(0,CW.instanceOf)(e,UN)}function MW(e){if(!Ow(e))throw new Error(`Expected ${(0,ag.inspect)(e)} to be a GraphQL schema.`);return e}var UN=class{constructor(t){var n,r;this.__validationErrors=t.assumeValid===!0?[]:void 0,(0,UW.isObjectLike)(t)||(0,CN.devAssert)(!1,"Must provide configuration object."),!t.types||Array.isArray(t.types)||(0,CN.devAssert)(!1,`"types" must be Array if provided but got: ${(0,ag.inspect)(t.types)}.`),!t.directives||Array.isArray(t.directives)||(0,CN.devAssert)(!1,`"directives" must be Array if provided but got: ${(0,ag.inspect)(t.directives)}.`),this.description=t.description,this.extensions=(0,BW.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:Sw.specifiedDirectives;let i=new Set(t.types);if(t.types!=null)for(let a of t.types)i.delete(a),Ea(a,i);this._queryType!=null&&Ea(this._queryType,i),this._mutationType!=null&&Ea(this._mutationType,i),this._subscriptionType!=null&&Ea(this._subscriptionType,i);for(let a of this._directives)if((0,Sw.isDirective)(a))for(let o of a.args)Ea(o.type,i);Ea(kW.__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,CN.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,Ta.isInterfaceType)(a)){for(let u of a.getInterfaces())if((0,Ta.isInterfaceType)(u)){let l=this._implementationsMap[u.name];l===void 0&&(l=this._implementationsMap[u.name]={objects:[],interfaces:[]}),l.interfaces.push(a)}}else if((0,Ta.isObjectType)(a)){for(let u of a.getInterfaces())if((0,Ta.isInterfaceType)(u)){let l=this._implementationsMap[u.name];l===void 0&&(l=this._implementationsMap[u.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 ig.OperationTypeNode.QUERY:return this.getQueryType();case ig.OperationTypeNode.MUTATION:return this.getMutationType();case ig.OperationTypeNode.SUBSCRIPTION:return this.getSubscriptionType()}}getTypeMap(){return this._typeMap}getType(t){return this.getTypeMap()[t]}getPossibleTypes(t){return(0,Ta.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,Ta.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}}};bl.GraphQLSchema=UN;function Ea(e,t){let n=(0,Ta.getNamedType)(e);if(!t.has(n)){if(t.add(n),(0,Ta.isUnionType)(n))for(let r of n.getTypes())Ea(r,t);else if((0,Ta.isObjectType)(n)||(0,Ta.isInterfaceType)(n)){for(let r of n.getInterfaces())Ea(r,t);for(let r of Object.values(n.getFields())){Ea(r.type,t);for(let i of r.args)Ea(i.type,t)}}else if((0,Ta.isInputObjectType)(n))for(let r of Object.values(n.getFields()))Ea(r.type,t)}return t}});var vf=F(BN=>{"use strict";m();T();N();Object.defineProperty(BN,"__esModule",{value:!0});BN.assertValidSchema=jW;BN.validateSchema=Fw;var Ur=nn(),xW=et(),sg=Ka(),Dw=pf(),Un=Bt(),Pw=ri(),qW=qi(),VW=Nc();function Fw(e){if((0,VW.assertSchema)(e),e.__validationErrors)return e.__validationErrors;let t=new ug(e);KW(t),$W(t),GW(t);let n=t.getErrors();return e.__validationErrors=n,n}function jW(e){let t=Fw(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 Ke.GraphQLNonNull(Nr.GraphQLString),resolve:e=>e.name},description:{type:Nr.GraphQLString,resolve:e=>e.description},isRepeatable:{type:new Ke.GraphQLNonNull(Nr.GraphQLBoolean),resolve:e=>e.isRepeatable},locations:{type:new Ke.GraphQLNonNull(new Ke.GraphQLList(new Ke.GraphQLNonNull(Zb))),resolve:e=>e.locations},args:{type:new Ke.GraphQLNonNull(new Ke.GraphQLList(new Ke.GraphQLNonNull(bh))),args:{includeDeprecated:{type:Nr.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){return t?e.args:e.args.filter(r=>r.deprecationReason==null)}}})});cr.__Directive=Xb;var Zb=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:On.DirectiveLocation.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:On.DirectiveLocation.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:On.DirectiveLocation.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:On.DirectiveLocation.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:On.DirectiveLocation.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:On.DirectiveLocation.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:On.DirectiveLocation.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:On.DirectiveLocation.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:On.DirectiveLocation.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:On.DirectiveLocation.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:On.DirectiveLocation.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:On.DirectiveLocation.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:On.DirectiveLocation.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:On.DirectiveLocation.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:On.DirectiveLocation.UNION,description:"Location adjacent to a union definition."},ENUM:{value:On.DirectiveLocation.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:On.DirectiveLocation.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:On.DirectiveLocation.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:On.DirectiveLocation.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}});cr.__DirectiveLocation=Zb;var pa=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(r0),resolve(e){if((0,Ke.isScalarType)(e))return Dn.SCALAR;if((0,Ke.isObjectType)(e))return Dn.OBJECT;if((0,Ke.isInterfaceType)(e))return Dn.INTERFACE;if((0,Ke.isUnionType)(e))return Dn.UNION;if((0,Ke.isEnumType)(e))return Dn.ENUM;if((0,Ke.isInputObjectType)(e))return Dn.INPUT_OBJECT;if((0,Ke.isListType)(e))return Dn.LIST;if((0,Ke.isNonNullType)(e))return Dn.NON_NULL;(0,zve.invariant)(!1,`Unexpected type: "${(0,Jve.inspect)(e)}".`)}},name:{type:Nr.GraphQLString,resolve:e=>"name"in e?e.name:void 0},description:{type:Nr.GraphQLString,resolve:e=>"description"in e?e.description:void 0},specifiedByURL:{type:Nr.GraphQLString,resolve:e=>"specifiedByURL"in e?e.specifiedByURL:void 0},fields:{type:new Ke.GraphQLList(new Ke.GraphQLNonNull(e0)),args:{includeDeprecated:{type:Nr.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if((0,Ke.isObjectType)(e)||(0,Ke.isInterfaceType)(e)){let r=Object.values(e.getFields());return t?r:r.filter(n=>n.deprecationReason==null)}}},interfaces:{type:new Ke.GraphQLList(new Ke.GraphQLNonNull(pa)),resolve(e){if((0,Ke.isObjectType)(e)||(0,Ke.isInterfaceType)(e))return e.getInterfaces()}},possibleTypes:{type:new Ke.GraphQLList(new Ke.GraphQLNonNull(pa)),resolve(e,t,r,{schema:n}){if((0,Ke.isAbstractType)(e))return n.getPossibleTypes(e)}},enumValues:{type:new Ke.GraphQLList(new Ke.GraphQLNonNull(t0)),args:{includeDeprecated:{type:Nr.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if((0,Ke.isEnumType)(e)){let r=e.getValues();return t?r:r.filter(n=>n.deprecationReason==null)}}},inputFields:{type:new Ke.GraphQLList(new Ke.GraphQLNonNull(bh)),args:{includeDeprecated:{type:Nr.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if((0,Ke.isInputObjectType)(e)){let r=Object.values(e.getFields());return t?r:r.filter(n=>n.deprecationReason==null)}}},ofType:{type:pa,resolve:e=>"ofType"in e?e.ofType:void 0},isOneOf:{type:Nr.GraphQLBoolean,resolve:e=>{if((0,Ke.isInputObjectType)(e))return e.isOneOf}}})});cr.__Type=pa;var e0=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(Nr.GraphQLString),resolve:e=>e.name},description:{type:Nr.GraphQLString,resolve:e=>e.description},args:{type:new Ke.GraphQLNonNull(new Ke.GraphQLList(new Ke.GraphQLNonNull(bh))),args:{includeDeprecated:{type:Nr.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){return t?e.args:e.args.filter(r=>r.deprecationReason==null)}},type:{type:new Ke.GraphQLNonNull(pa),resolve:e=>e.type},isDeprecated:{type:new Ke.GraphQLNonNull(Nr.GraphQLBoolean),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:Nr.GraphQLString,resolve:e=>e.deprecationReason}})});cr.__Field=e0;var bh=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(Nr.GraphQLString),resolve:e=>e.name},description:{type:Nr.GraphQLString,resolve:e=>e.description},type:{type:new Ke.GraphQLNonNull(pa),resolve:e=>e.type},defaultValue:{type:Nr.GraphQLString,description:"A GraphQL-formatted string representing the default value for this input value.",resolve(e){let{type:t,defaultValue:r}=e,n=(0,Wve.astFromValue)(r,t);return n?(0,Hve.print)(n):null}},isDeprecated:{type:new Ke.GraphQLNonNull(Nr.GraphQLBoolean),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:Nr.GraphQLString,resolve:e=>e.deprecationReason}})});cr.__InputValue=bh;var t0=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(Nr.GraphQLString),resolve:e=>e.name},description:{type:Nr.GraphQLString,resolve:e=>e.description},isDeprecated:{type:new Ke.GraphQLNonNull(Nr.GraphQLBoolean),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:Nr.GraphQLString,resolve:e=>e.deprecationReason}})});cr.__EnumValue=t0;var Dn;cr.TypeKind=Dn;(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"})(Dn||(cr.TypeKind=Dn={}));var r0=new Ke.GraphQLEnumType({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:Dn.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:Dn.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:Dn.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:Dn.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:Dn.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:Dn.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:Dn.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:Dn.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}});cr.__TypeKind=r0;var Xve={name:"__schema",type:new Ke.GraphQLNonNull(Wb),description:"Access the current type schema of this server.",args:[],resolve:(e,t,r,{schema:n})=>n,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0};cr.SchemaMetaFieldDef=Xve;var Zve={name:"__type",type:pa,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new Ke.GraphQLNonNull(Nr.GraphQLString),defaultValue:void 0,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0}],resolve:(e,{name:t},r,{schema:n})=>n.getType(t),deprecationReason:void 0,extensions:Object.create(null),astNode:void 0};cr.TypeMetaFieldDef=Zve;var e_e={name:"__typename",type:new Ke.GraphQLNonNull(Nr.GraphQLString),description:"The name of the current Object type at runtime.",args:[],resolve:(e,t,r,{parentType:n})=>n.name,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0};cr.TypeNameMetaFieldDef=e_e;var jY=Object.freeze([Wb,Xb,Zb,pa,e0,bh,t0,r0]);cr.introspectionTypes=jY;function t_e(e){return jY.some(({name:t})=>e.name===t)}});var Hl=D(qf=>{"use strict";d();p();f();Object.defineProperty(qf,"__esModule",{value:!0});qf.GraphQLSchema=void 0;qf.assertSchema=o_e;qf.isSchema=KY;var fg=si(),i0=ur(),r_e=ch(),n_e=wo(),i_e=$E(),n0=Po(),Xa=Vt(),VY=_i(),a_e=ma();function KY(e){return(0,r_e.instanceOf)(e,pg)}function o_e(e){if(!KY(e))throw new Error(`Expected ${(0,i0.inspect)(e)} to be a GraphQL schema.`);return e}var pg=class{constructor(t){var r,n;this.__validationErrors=t.assumeValid===!0?[]:void 0,(0,n_e.isObjectLike)(t)||(0,fg.devAssert)(!1,"Must provide configuration object."),!t.types||Array.isArray(t.types)||(0,fg.devAssert)(!1,`"types" must be Array if provided but got: ${(0,i0.inspect)(t.types)}.`),!t.directives||Array.isArray(t.directives)||(0,fg.devAssert)(!1,`"directives" must be Array if provided but got: ${(0,i0.inspect)(t.directives)}.`),this.description=t.description,this.extensions=(0,i_e.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(r=t.extensionASTNodes)!==null&&r!==void 0?r:[],this._queryType=t.query,this._mutationType=t.mutation,this._subscriptionType=t.subscription,this._directives=(n=t.directives)!==null&&n!==void 0?n:VY.specifiedDirectives;let i=new Set(t.types);if(t.types!=null)for(let a of t.types)i.delete(a),Za(a,i);this._queryType!=null&&Za(this._queryType,i),this._mutationType!=null&&Za(this._mutationType,i),this._subscriptionType!=null&&Za(this._subscriptionType,i);for(let a of this._directives)if((0,VY.isDirective)(a))for(let o of a.args)Za(o.type,i);Za(a_e.__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,fg.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,Xa.isInterfaceType)(a)){for(let u of a.getInterfaces())if((0,Xa.isInterfaceType)(u)){let l=this._implementationsMap[u.name];l===void 0&&(l=this._implementationsMap[u.name]={objects:[],interfaces:[]}),l.interfaces.push(a)}}else if((0,Xa.isObjectType)(a)){for(let u of a.getInterfaces())if((0,Xa.isInterfaceType)(u)){let l=this._implementationsMap[u.name];l===void 0&&(l=this._implementationsMap[u.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 n0.OperationTypeNode.QUERY:return this.getQueryType();case n0.OperationTypeNode.MUTATION:return this.getMutationType();case n0.OperationTypeNode.SUBSCRIPTION:return this.getSubscriptionType()}}getTypeMap(){return this._typeMap}getType(t){return this.getTypeMap()[t]}getPossibleTypes(t){return(0,Xa.isUnionType)(t)?t.getTypes():this.getImplementations(t).objects}getImplementations(t){let r=this._implementationsMap[t.name];return r!=null?r:{objects:[],interfaces:[]}}isSubType(t,r){let n=this._subTypeMap[t.name];if(n===void 0){if(n=Object.create(null),(0,Xa.isUnionType)(t))for(let i of t.getTypes())n[i.name]=!0;else{let i=this.getImplementations(t);for(let a of i.objects)n[a.name]=!0;for(let a of i.interfaces)n[a.name]=!0}this._subTypeMap[t.name]=n}return n[r.name]!==void 0}getDirectives(){return this._directives}getDirective(t){return this.getDirectives().find(r=>r.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}}};qf.GraphQLSchema=pg;function Za(e,t){let r=(0,Xa.getNamedType)(e);if(!t.has(r)){if(t.add(r),(0,Xa.isUnionType)(r))for(let n of r.getTypes())Za(n,t);else if((0,Xa.isObjectType)(r)||(0,Xa.isInterfaceType)(r)){for(let n of r.getInterfaces())Za(n,t);for(let n of Object.values(r.getFields())){Za(n.type,t);for(let i of n.args)Za(i.type,t)}}else if((0,Xa.isInputObjectType)(r))for(let n of Object.values(r.getFields()))Za(n.type,t)}return t}});var Rh=D(mg=>{"use strict";d();p();f();Object.defineProperty(mg,"__esModule",{value:!0});mg.assertValidSchema=l_e;mg.validateSchema=zY;var ei=ur(),s_e=at(),a0=Po(),$Y=Eh(),Jr=Vt(),JY=_i(),u_e=ma(),c_e=Hl();function zY(e){if((0,c_e.assertSchema)(e),e.__validationErrors)return e.__validationErrors;let t=new s0(e);d_e(t),f_e(t),p_e(t);let r=t.getErrors();return e.__validationErrors=r,r}function l_e(e){let t=zY(e);if(t.length!==0)throw new Error(t.map(r=>r.message).join(` -`))}var ug=class{constructor(t){this._errors=[],this.schema=t}reportError(t,n){let r=Array.isArray(n)?n.filter(Boolean):n;this._errors.push(new xW.GraphQLError(t,{nodes:r}))}getErrors(){return this._errors}};function KW(e){let t=e.schema,n=t.getQueryType();if(!n)e.reportError("Query root type must be provided.",t.astNode);else if(!(0,Un.isObjectType)(n)){var r;e.reportError(`Query root type must be Object type, it cannot be ${(0,Ur.inspect)(n)}.`,(r=og(t,sg.OperationTypeNode.QUERY))!==null&&r!==void 0?r:n.astNode)}let i=t.getMutationType();if(i&&!(0,Un.isObjectType)(i)){var a;e.reportError(`Mutation root type must be Object type if provided, it cannot be ${(0,Ur.inspect)(i)}.`,(a=og(t,sg.OperationTypeNode.MUTATION))!==null&&a!==void 0?a:i.astNode)}let o=t.getSubscriptionType();if(o&&!(0,Un.isObjectType)(o)){var u;e.reportError(`Subscription root type must be Object type if provided, it cannot be ${(0,Ur.inspect)(o)}.`,(u=og(t,sg.OperationTypeNode.SUBSCRIPTION))!==null&&u!==void 0?u:o.astNode)}}function og(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 $W(e){for(let n of e.schema.getDirectives()){if(!(0,Pw.isDirective)(n)){e.reportError(`Expected directive but got: ${(0,Ur.inspect)(n)}.`,n==null?void 0:n.astNode);continue}Tc(e,n);for(let r of n.args)if(Tc(e,r),(0,Un.isInputType)(r.type)||e.reportError(`The type of @${n.name}(${r.name}:) must be Input Type but got: ${(0,Ur.inspect)(r.type)}.`,r.astNode),(0,Un.isRequiredArgument)(r)&&r.deprecationReason!=null){var t;e.reportError(`Required argument @${n.name}(${r.name}:) cannot be deprecated.`,[cg(r.astNode),(t=r.astNode)===null||t===void 0?void 0:t.type])}}}function Tc(e,t){t.name.startsWith("__")&&e.reportError(`Name "${t.name}" must not begin with "__", which is reserved by GraphQL introspection.`,t.astNode)}function GW(e){let t=XW(e),n=e.schema.getTypeMap();for(let r of Object.values(n)){if(!(0,Un.isNamedType)(r)){e.reportError(`Expected GraphQL named type but got: ${(0,Ur.inspect)(r)}.`,r.astNode);continue}(0,qW.isIntrospectionType)(r)||Tc(e,r),(0,Un.isObjectType)(r)||(0,Un.isInterfaceType)(r)?(bw(e,r),Aw(e,r)):(0,Un.isUnionType)(r)?JW(e,r):(0,Un.isEnumType)(r)?zW(e,r):(0,Un.isInputObjectType)(r)&&(HW(e,r),t(r))}}function bw(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(Tc(e,o),!(0,Un.isOutputType)(o.type)){var r;e.reportError(`The type of ${t.name}.${o.name} must be Output Type but got: ${(0,Ur.inspect)(o.type)}.`,(r=o.astNode)===null||r===void 0?void 0:r.type)}for(let u of o.args){let l=u.name;if(Tc(e,u),!(0,Un.isInputType)(u.type)){var i;e.reportError(`The type of ${t.name}.${o.name}(${l}:) must be Input Type but got: ${(0,Ur.inspect)(u.type)}.`,(i=u.astNode)===null||i===void 0?void 0:i.type)}if((0,Un.isRequiredArgument)(u)&&u.deprecationReason!=null){var a;e.reportError(`Required argument ${t.name}.${o.name}(${l}:) cannot be deprecated.`,[cg(u.astNode),(a=u.astNode)===null||a===void 0?void 0:a.type])}}}}function Aw(e,t){let n=Object.create(null);for(let r of t.getInterfaces()){if(!(0,Un.isInterfaceType)(r)){e.reportError(`Type ${(0,Ur.inspect)(t)} must only implement Interface types, it cannot implement ${(0,Ur.inspect)(r)}.`,_f(t,r));continue}if(t===r){e.reportError(`Type ${t.name} cannot implement itself because it would create a circular reference.`,_f(t,r));continue}if(n[r.name]){e.reportError(`Type ${t.name} can only implement ${r.name} once.`,_f(t,r));continue}n[r.name]=!0,YW(e,t,r),QW(e,t,r)}}function QW(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,Dw.isTypeSubTypeOf)(e.schema,p.type,l.type)){var i,a;e.reportError(`Interface field ${n.name}.${d} expects type ${(0,Ur.inspect)(l.type)} but ${t.name}.${d} is type ${(0,Ur.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 h=E.name,v=p.args.find(R=>R.name===h);if(!v){e.reportError(`Interface field argument ${n.name}.${d}(${h}:) expected but ${t.name}.${d} does not provide it.`,[E.astNode,p.astNode]);continue}if(!(0,Dw.isEqualType)(E.type,v.type)){var o,u;e.reportError(`Interface field argument ${n.name}.${d}(${h}:) expects type ${(0,Ur.inspect)(E.type)} but ${t.name}.${d}(${h}:) is type ${(0,Ur.inspect)(v.type)}.`,[(o=E.astNode)===null||o===void 0?void 0:o.type,(u=v.astNode)===null||u===void 0?void 0:u.type])}}for(let E of p.args){let h=E.name;!l.args.find(R=>R.name===h)&&(0,Un.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 YW(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}.`,[..._f(n,i),..._f(t,n)])}function JW(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.`,Rw(t,i.name));continue}r[i.name]=!0,(0,Un.isObjectType)(i)||e.reportError(`Union type ${t.name} can only include Object types, it cannot include ${(0,Ur.inspect)(i)}.`,Rw(t,String(i)))}}function zW(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)Tc(e,r)}function HW(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(Tc(e,a),!(0,Un.isInputType)(a.type)){var r;e.reportError(`The type of ${t.name}.${a.name} must be Input Type but got: ${(0,Ur.inspect)(a.type)}.`,(r=a.astNode)===null||r===void 0?void 0:r.type)}if((0,Un.isRequiredInputField)(a)&&a.deprecationReason!=null){var i;e.reportError(`Required input field ${t.name}.${a.name} cannot be deprecated.`,[cg(a.astNode),(i=a.astNode)===null||i===void 0?void 0:i.type])}t.isOneOf&&WW(t,a,e)}}function WW(e,t,n){if((0,Un.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 XW(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 u of o)if((0,Un.isNonNullType)(u.type)&&(0,Un.isInputObjectType)(u.type.ofType)){let l=u.type.ofType,d=r[l.name];if(n.push(u),d===void 0)i(l);else{let p=n.slice(d),E=p.map(h=>h.name).join(".");e.reportError(`Cannot reference Input Object "${l.name}" within itself through a series of non-null fields: "${E}".`,p.map(h=>h.astNode))}n.pop()}r[a.name]=void 0}}function _f(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 Rw(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 cg(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 Ya=F(fg=>{"use strict";m();T();N();Object.defineProperty(fg,"__esModule",{value:!0});fg.typeFromAST=dg;var lg=Ut(),ww=Bt();function dg(e,t){switch(t.kind){case lg.Kind.LIST_TYPE:{let n=dg(e,t.type);return n&&new ww.GraphQLList(n)}case lg.Kind.NON_NULL_TYPE:{let n=dg(e,t.type);return n&&new ww.GraphQLNonNull(n)}case lg.Kind.NAMED_TYPE:return e.getType(t.name.value)}}});var kN=F(Sf=>{"use strict";m();T();N();Object.defineProperty(Sf,"__esModule",{value:!0});Sf.TypeInfo=void 0;Sf.visitWithTypeInfo=t6;var ZW=Ka(),Bn=Ut(),Lw=cc(),kn=Bt(),Al=qi(),Cw=Ya(),pg=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:e6,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 Bn.Kind.SELECTION_SET:{let i=(0,kn.getNamedType)(this.getType());this._parentTypeStack.push((0,kn.isCompositeType)(i)?i:void 0);break}case Bn.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 Bn.Kind.DIRECTIVE:this._directive=n.getDirective(t.name.value);break;case Bn.Kind.OPERATION_DEFINITION:{let i=n.getRootType(t.operation);this._typeStack.push((0,kn.isObjectType)(i)?i:void 0);break}case Bn.Kind.INLINE_FRAGMENT:case Bn.Kind.FRAGMENT_DEFINITION:{let i=t.typeCondition,a=i?(0,Cw.typeFromAST)(n,i):(0,kn.getNamedType)(this.getType());this._typeStack.push((0,kn.isOutputType)(a)?a:void 0);break}case Bn.Kind.VARIABLE_DEFINITION:{let i=(0,Cw.typeFromAST)(n,t.type);this._inputTypeStack.push((0,kn.isInputType)(i)?i:void 0);break}case Bn.Kind.ARGUMENT:{var r;let i,a,o=(r=this.getDirective())!==null&&r!==void 0?r:this.getFieldDef();o&&(i=o.args.find(u=>u.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 Bn.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 Bn.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 Bn.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 Bn.Kind.SELECTION_SET:this._parentTypeStack.pop();break;case Bn.Kind.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case Bn.Kind.DIRECTIVE:this._directive=null;break;case Bn.Kind.OPERATION_DEFINITION:case Bn.Kind.INLINE_FRAGMENT:case Bn.Kind.FRAGMENT_DEFINITION:this._typeStack.pop();break;case Bn.Kind.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case Bn.Kind.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case Bn.Kind.LIST:case Bn.Kind.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case Bn.Kind.ENUM:this._enumValue=null;break;default:}}};Sf.TypeInfo=pg;function e6(e,t,n){let r=n.name.value;if(r===Al.SchemaMetaFieldDef.name&&e.getQueryType()===t)return Al.SchemaMetaFieldDef;if(r===Al.TypeMetaFieldDef.name&&e.getQueryType()===t)return Al.TypeMetaFieldDef;if(r===Al.TypeNameMetaFieldDef.name&&(0,kn.isCompositeType)(t))return Al.TypeNameMetaFieldDef;if((0,kn.isObjectType)(t)||(0,kn.isInterfaceType)(t))return t.getFields()[r]}function t6(e,t){return{enter(...n){let r=n[0];e.enter(r);let i=(0,Lw.getEnterLeaveForKind)(t,r.kind).enter;if(i){let a=i.apply(t,n);return a!==void 0&&(e.leave(r),(0,ZW.isNode)(a)&&e.enter(a)),a}},leave(...n){let r=n[0],i=(0,Lw.getEnterLeaveForKind)(t,r.kind).leave,a;return i&&(a=i.apply(t,n)),e.leave(r),a}}}});var Ec=F(Vi=>{"use strict";m();T();N();Object.defineProperty(Vi,"__esModule",{value:!0});Vi.isConstValueNode=mg;Vi.isDefinitionNode=n6;Vi.isExecutableDefinitionNode=Uw;Vi.isSelectionNode=r6;Vi.isTypeDefinitionNode=Mw;Vi.isTypeExtensionNode=qw;Vi.isTypeNode=i6;Vi.isTypeSystemDefinitionNode=kw;Vi.isTypeSystemExtensionNode=xw;Vi.isValueNode=Bw;var kt=Ut();function n6(e){return Uw(e)||kw(e)||xw(e)}function Uw(e){return e.kind===kt.Kind.OPERATION_DEFINITION||e.kind===kt.Kind.FRAGMENT_DEFINITION}function r6(e){return e.kind===kt.Kind.FIELD||e.kind===kt.Kind.FRAGMENT_SPREAD||e.kind===kt.Kind.INLINE_FRAGMENT}function Bw(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 mg(e){return Bw(e)&&(e.kind===kt.Kind.LIST?e.values.some(mg):e.kind===kt.Kind.OBJECT?e.fields.some(t=>mg(t.value)):e.kind!==kt.Kind.VARIABLE)}function i6(e){return e.kind===kt.Kind.NAMED_TYPE||e.kind===kt.Kind.LIST_TYPE||e.kind===kt.Kind.NON_NULL_TYPE}function kw(e){return e.kind===kt.Kind.SCHEMA_DEFINITION||Mw(e)||e.kind===kt.Kind.DIRECTIVE_DEFINITION}function Mw(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 xw(e){return e.kind===kt.Kind.SCHEMA_EXTENSION||qw(e)}function qw(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 Tg=F(Ng=>{"use strict";m();T();N();Object.defineProperty(Ng,"__esModule",{value:!0});Ng.ExecutableDefinitionsRule=o6;var a6=et(),Vw=Ut(),s6=Ec();function o6(e){return{Document(t){for(let n of t.definitions)if(!(0,s6.isExecutableDefinitionNode)(n)){let r=n.kind===Vw.Kind.SCHEMA_DEFINITION||n.kind===Vw.Kind.SCHEMA_EXTENSION?"schema":'"'+n.name.value+'"';e.reportError(new a6.GraphQLError(`The ${r} definition is not executable.`,{nodes:n}))}return!1}}}});var hg=F(Eg=>{"use strict";m();T();N();Object.defineProperty(Eg,"__esModule",{value:!0});Eg.FieldsOnCorrectTypeRule=d6;var jw=Tu(),u6=of(),c6=hu(),l6=et(),Of=Bt();function d6(e){return{Field(t){let n=e.getParentType();if(n&&!e.getFieldDef()){let i=e.getSchema(),a=t.name.value,o=(0,jw.didYouMean)("to use an inline fragment on",f6(i,n,a));o===""&&(o=(0,jw.didYouMean)(p6(n,a))),e.reportError(new l6.GraphQLError(`Cannot query field "${a}" on type "${n.name}".`+o,{nodes:t}))}}}}function f6(e,t,n){if(!(0,Of.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 u of o.getInterfaces()){var a;u.getFields()[n]&&(r.add(u),i[u.name]=((a=i[u.name])!==null&&a!==void 0?a:0)+1)}}return[...r].sort((o,u)=>{let l=i[u.name]-i[o.name];return l!==0?l:(0,Of.isInterfaceType)(o)&&e.isSubType(o,u)?-1:(0,Of.isInterfaceType)(u)&&e.isSubType(u,o)?1:(0,u6.naturalCompare)(o.name,u.name)}).map(o=>o.name)}function p6(e,t){if((0,Of.isObjectType)(e)||(0,Of.isInterfaceType)(e)){let n=Object.keys(e.getFields());return(0,c6.suggestionList)(t,n)}return[]}});var Ig=F(yg=>{"use strict";m();T();N();Object.defineProperty(yg,"__esModule",{value:!0});yg.FragmentsOnCompositeTypesRule=m6;var Kw=et(),$w=gi(),Gw=Bt(),Qw=Ya();function m6(e){return{InlineFragment(t){let n=t.typeCondition;if(n){let r=(0,Qw.typeFromAST)(e.getSchema(),n);if(r&&!(0,Gw.isCompositeType)(r)){let i=(0,$w.print)(n);e.reportError(new Kw.GraphQLError(`Fragment cannot condition on non composite type "${i}".`,{nodes:n}))}}},FragmentDefinition(t){let n=(0,Qw.typeFromAST)(e.getSchema(),t.typeCondition);if(n&&!(0,Gw.isCompositeType)(n)){let r=(0,$w.print)(t.typeCondition);e.reportError(new Kw.GraphQLError(`Fragment "${t.name.value}" cannot condition on non composite type "${r}".`,{nodes:t.typeCondition}))}}}}});var gg=F(MN=>{"use strict";m();T();N();Object.defineProperty(MN,"__esModule",{value:!0});MN.KnownArgumentNamesOnDirectivesRule=Hw;MN.KnownArgumentNamesRule=E6;var Yw=Tu(),Jw=hu(),zw=et(),N6=Ut(),T6=ri();function E6(e){return G(M({},Hw(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),u=(0,Jw.suggestionList)(a,o);e.reportError(new zw.GraphQLError(`Unknown argument "${a}" on field "${i.name}.${r.name}".`+(0,Yw.didYouMean)(u),{nodes:t}))}}})}function Hw(e){let t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():T6.specifiedDirectives;for(let o of r)t[o.name]=o.args.map(u=>u.name);let i=e.getDocument().definitions;for(let o of i)if(o.kind===N6.Kind.DIRECTIVE_DEFINITION){var a;let u=(a=o.arguments)!==null&&a!==void 0?a:[];t[o.name.value]=u.map(l=>l.name.value)}return{Directive(o){let u=o.name.value,l=t[u];if(o.arguments&&l)for(let d of o.arguments){let p=d.name.value;if(!l.includes(p)){let E=(0,Jw.suggestionList)(p,l);e.reportError(new zw.GraphQLError(`Unknown argument "${p}" on directive "@${u}".`+(0,Yw.didYouMean)(E),{nodes:d}))}}return!1}}}});var Og=F(Sg=>{"use strict";m();T();N();Object.defineProperty(Sg,"__esModule",{value:!0});Sg.KnownDirectivesRule=I6;var h6=nn(),_g=Lr(),Ww=et(),vg=Ka(),dr=gl(),_n=Ut(),y6=ri();function I6(e){let t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():y6.specifiedDirectives;for(let a of r)t[a.name]=a.locations;let i=e.getDocument().definitions;for(let a of i)a.kind===_n.Kind.DIRECTIVE_DEFINITION&&(t[a.name.value]=a.locations.map(o=>o.value));return{Directive(a,o,u,l,d){let p=a.name.value,E=t[p];if(!E){e.reportError(new Ww.GraphQLError(`Unknown directive "@${p}".`,{nodes:a}));return}let h=g6(d);h&&!E.includes(h)&&e.reportError(new Ww.GraphQLError(`Directive "@${p}" may not be used on ${h}.`,{nodes:a}))}}}function g6(e){let t=e[e.length-1];switch("kind"in t||(0,_g.invariant)(!1),t.kind){case _n.Kind.OPERATION_DEFINITION:return _6(t.operation);case _n.Kind.FIELD:return dr.DirectiveLocation.FIELD;case _n.Kind.FRAGMENT_SPREAD:return dr.DirectiveLocation.FRAGMENT_SPREAD;case _n.Kind.INLINE_FRAGMENT:return dr.DirectiveLocation.INLINE_FRAGMENT;case _n.Kind.FRAGMENT_DEFINITION:return dr.DirectiveLocation.FRAGMENT_DEFINITION;case _n.Kind.VARIABLE_DEFINITION:return dr.DirectiveLocation.VARIABLE_DEFINITION;case _n.Kind.SCHEMA_DEFINITION:case _n.Kind.SCHEMA_EXTENSION:return dr.DirectiveLocation.SCHEMA;case _n.Kind.SCALAR_TYPE_DEFINITION:case _n.Kind.SCALAR_TYPE_EXTENSION:return dr.DirectiveLocation.SCALAR;case _n.Kind.OBJECT_TYPE_DEFINITION:case _n.Kind.OBJECT_TYPE_EXTENSION:return dr.DirectiveLocation.OBJECT;case _n.Kind.FIELD_DEFINITION:return dr.DirectiveLocation.FIELD_DEFINITION;case _n.Kind.INTERFACE_TYPE_DEFINITION:case _n.Kind.INTERFACE_TYPE_EXTENSION:return dr.DirectiveLocation.INTERFACE;case _n.Kind.UNION_TYPE_DEFINITION:case _n.Kind.UNION_TYPE_EXTENSION:return dr.DirectiveLocation.UNION;case _n.Kind.ENUM_TYPE_DEFINITION:case _n.Kind.ENUM_TYPE_EXTENSION:return dr.DirectiveLocation.ENUM;case _n.Kind.ENUM_VALUE_DEFINITION:return dr.DirectiveLocation.ENUM_VALUE;case _n.Kind.INPUT_OBJECT_TYPE_DEFINITION:case _n.Kind.INPUT_OBJECT_TYPE_EXTENSION:return dr.DirectiveLocation.INPUT_OBJECT;case _n.Kind.INPUT_VALUE_DEFINITION:{let n=e[e.length-3];return"kind"in n||(0,_g.invariant)(!1),n.kind===_n.Kind.INPUT_OBJECT_TYPE_DEFINITION?dr.DirectiveLocation.INPUT_FIELD_DEFINITION:dr.DirectiveLocation.ARGUMENT_DEFINITION}default:(0,_g.invariant)(!1,"Unexpected kind: "+(0,h6.inspect)(t.kind))}}function _6(e){switch(e){case vg.OperationTypeNode.QUERY:return dr.DirectiveLocation.QUERY;case vg.OperationTypeNode.MUTATION:return dr.DirectiveLocation.MUTATION;case vg.OperationTypeNode.SUBSCRIPTION:return dr.DirectiveLocation.SUBSCRIPTION}}});var bg=F(Dg=>{"use strict";m();T();N();Object.defineProperty(Dg,"__esModule",{value:!0});Dg.KnownFragmentNamesRule=S6;var v6=et();function S6(e){return{FragmentSpread(t){let n=t.name.value;e.getFragment(n)||e.reportError(new v6.GraphQLError(`Unknown fragment "${n}".`,{nodes:t.name}))}}}});var Pg=F(Rg=>{"use strict";m();T();N();Object.defineProperty(Rg,"__esModule",{value:!0});Rg.KnownTypeNamesRule=P6;var O6=Tu(),D6=hu(),b6=et(),Ag=Ec(),A6=qi(),R6=Qa();function P6(e){let t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);for(let a of e.getDocument().definitions)(0,Ag.isTypeDefinitionNode)(a)&&(r[a.name.value]=!0);let i=[...Object.keys(n),...Object.keys(r)];return{NamedType(a,o,u,l,d){let p=a.name.value;if(!n[p]&&!r[p]){var E;let h=(E=d[2])!==null&&E!==void 0?E:u,v=h!=null&&F6(h);if(v&&Xw.includes(p))return;let R=(0,D6.suggestionList)(p,v?Xw.concat(i):i);e.reportError(new b6.GraphQLError(`Unknown type "${p}".`+(0,O6.didYouMean)(R),{nodes:a}))}}}}var Xw=[...R6.specifiedScalarTypes,...A6.introspectionTypes].map(e=>e.name);function F6(e){return"kind"in e&&((0,Ag.isTypeSystemDefinitionNode)(e)||(0,Ag.isTypeSystemExtensionNode)(e))}});var wg=F(Fg=>{"use strict";m();T();N();Object.defineProperty(Fg,"__esModule",{value:!0});Fg.LoneAnonymousOperationRule=C6;var w6=et(),L6=Ut();function C6(e){let t=0;return{Document(n){t=n.definitions.filter(r=>r.kind===L6.Kind.OPERATION_DEFINITION).length},OperationDefinition(n){!n.name&&t>1&&e.reportError(new w6.GraphQLError("This anonymous operation must be the only defined operation.",{nodes:n}))}}}});var Cg=F(Lg=>{"use strict";m();T();N();Object.defineProperty(Lg,"__esModule",{value:!0});Lg.LoneSchemaDefinitionRule=U6;var Zw=et();function U6(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(u){if(a){e.reportError(new Zw.GraphQLError("Cannot define a new schema within a schema extension.",{nodes:u}));return}o>0&&e.reportError(new Zw.GraphQLError("Must provide only one schema definition.",{nodes:u})),++o}}}});var Bg=F(Ug=>{"use strict";m();T();N();Object.defineProperty(Ug,"__esModule",{value:!0});Ug.MaxIntrospectionDepthRule=M6;var B6=et(),eL=Ut(),k6=3;function M6(e){function t(n,r=Object.create(null),i=0){if(n.kind===eL.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===eL.Kind.FIELD&&(n.name.value==="fields"||n.name.value==="interfaces"||n.name.value==="possibleTypes"||n.name.value==="inputFields")&&(i++,i>=k6))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 B6.GraphQLError("Maximum introspection depth exceeded",{nodes:[n]})),!1}}}});var Mg=F(kg=>{"use strict";m();T();N();Object.defineProperty(kg,"__esModule",{value:!0});kg.NoFragmentCyclesRule=q6;var x6=et();function q6(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 u=e.getFragmentSpreads(a.selectionSet);if(u.length!==0){r[o]=n.length;for(let l of u){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),h=E.slice(0,-1).map(v=>'"'+v.name.value+'"').join(", ");e.reportError(new x6.GraphQLError(`Cannot spread fragment "${d}" within itself`+(h!==""?` via ${h}.`:"."),{nodes:E}))}n.pop()}r[o]=void 0}}}});var qg=F(xg=>{"use strict";m();T();N();Object.defineProperty(xg,"__esModule",{value:!0});xg.NoUndefinedVariablesRule=j6;var V6=et();function j6(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 V6.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 jg=F(Vg=>{"use strict";m();T();N();Object.defineProperty(Vg,"__esModule",{value:!0});Vg.NoUnusedFragmentsRule=$6;var K6=et();function $6(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 K6.GraphQLError(`Fragment "${a}" is never used.`,{nodes:i}))}}}}}});var $g=F(Kg=>{"use strict";m();T();N();Object.defineProperty(Kg,"__esModule",{value:!0});Kg.NoUnusedVariablesRule=Q6;var G6=et();function Q6(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 G6.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 Yg=F(Qg=>{"use strict";m();T();N();Object.defineProperty(Qg,"__esModule",{value:!0});Qg.sortValueNode=Gg;var Y6=of(),bs=Ut();function Gg(e){switch(e.kind){case bs.Kind.OBJECT:return G(M({},e),{fields:J6(e.fields)});case bs.Kind.LIST:return G(M({},e),{values:e.values.map(Gg)});case bs.Kind.INT:case bs.Kind.FLOAT:case bs.Kind.STRING:case bs.Kind.BOOLEAN:case bs.Kind.NULL:case bs.Kind.ENUM:case bs.Kind.VARIABLE:return e}}function J6(e){return e.map(t=>G(M({},t),{value:Gg(t.value)})).sort((t,n)=>(0,Y6.naturalCompare)(t.name.value,n.name.value))}});var e_=F(Zg=>{"use strict";m();T();N();Object.defineProperty(Zg,"__esModule",{value:!0});Zg.OverlappingFieldsCanBeMergedRule=X6;var tL=nn(),z6=et(),Jg=Ut(),H6=gi(),ii=Bt(),W6=Yg(),rL=Ya();function iL(e){return Array.isArray(e)?e.map(([t,n])=>`subfields "${t}" conflict because `+iL(n)).join(" and "):e}function X6(e){let t=new Wg,n=new Map;return{SelectionSet(r){let i=Z6(e,n,t,e.getParentType(),r);for(let[[a,o],u,l]of i){let d=iL(o);e.reportError(new z6.GraphQLError(`Fields "${a}" conflict because ${d}. Use different aliases on the fields to fetch both if this was intentional.`,{nodes:u.concat(l)}))}}}}function Z6(e,t,n,r,i){let a=[],[o,u]=VN(e,t,r,i);if(t4(e,a,t,n,o),u.length!==0)for(let l=0;l1)for(let u=0;u[a.value,o]));return n.every(a=>{let o=a.value,u=i.get(a.name.value);return u===void 0?!1:nL(o)===nL(u)})}function nL(e){return(0,H6.print)((0,W6.sortValueNode)(e))}function zg(e,t){return(0,ii.isListType)(e)?(0,ii.isListType)(t)?zg(e.ofType,t.ofType):!0:(0,ii.isListType)(t)?!0:(0,ii.isNonNullType)(e)?(0,ii.isNonNullType)(t)?zg(e.ofType,t.ofType):!0:(0,ii.isNonNullType)(t)?!0:(0,ii.isLeafType)(e)||(0,ii.isLeafType)(t)?e!==t:!1}function VN(e,t,n,r){let i=t.get(r);if(i)return i;let a=Object.create(null),o=Object.create(null);sL(e,n,r,a,o);let u=[a,Object.keys(o)];return t.set(r,u),u}function Hg(e,t,n){let r=t.get(n.selectionSet);if(r)return r;let i=(0,rL.typeFromAST)(e.getSchema(),n.typeCondition);return VN(e,t,i,n.selectionSet)}function sL(e,t,n,r,i){for(let a of n.selections)switch(a.kind){case Jg.Kind.FIELD:{let o=a.name.value,u;((0,ii.isObjectType)(t)||(0,ii.isInterfaceType)(t))&&(u=t.getFields()[o]);let l=a.alias?a.alias.value:o;r[l]||(r[l]=[]),r[l].push([t,a,u]);break}case Jg.Kind.FRAGMENT_SPREAD:i[a.name.value]=!0;break;case Jg.Kind.INLINE_FRAGMENT:{let o=a.typeCondition,u=o?(0,rL.typeFromAST)(e.getSchema(),o):t;sL(e,u,a.selectionSet,r,i);break}}}function r4(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 Wg=class{constructor(){this._data=new Map}has(t,n,r){var i;let[a,o]=t{"use strict";m();T();N();Object.defineProperty(n_,"__esModule",{value:!0});n_.PossibleFragmentSpreadsRule=a4;var jN=nn(),oL=et(),t_=Bt(),uL=pf(),i4=Ya();function a4(e){return{InlineFragment(t){let n=e.getType(),r=e.getParentType();if((0,t_.isCompositeType)(n)&&(0,t_.isCompositeType)(r)&&!(0,uL.doTypesOverlap)(e.getSchema(),n,r)){let i=(0,jN.inspect)(r),a=(0,jN.inspect)(n);e.reportError(new oL.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=s4(e,n),i=e.getParentType();if(r&&i&&!(0,uL.doTypesOverlap)(e.getSchema(),r,i)){let a=(0,jN.inspect)(i),o=(0,jN.inspect)(r);e.reportError(new oL.GraphQLError(`Fragment "${n}" cannot be spread here as objects of type "${a}" can never be of type "${o}".`,{nodes:t}))}}}}function s4(e,t){let n=e.getFragment(t);if(n){let r=(0,i4.typeFromAST)(e.getSchema(),n.typeCondition);if((0,t_.isCompositeType)(r))return r}}});var a_=F(i_=>{"use strict";m();T();N();Object.defineProperty(i_,"__esModule",{value:!0});i_.PossibleTypeExtensionsRule=l4;var o4=Tu(),lL=nn(),dL=Lr(),u4=hu(),cL=et(),Sn=Ut(),c4=Ec(),Rl=Bt();function l4(e){let t=e.getSchema(),n=Object.create(null);for(let i of e.getDocument().definitions)(0,c4.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],u=t==null?void 0:t.getType(a),l;if(o?l=d4[o.kind]:u&&(l=f4(u)),l){if(l!==i.kind){let d=p4(i.kind);e.reportError(new cL.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,u4.suggestionList)(a,d);e.reportError(new cL.GraphQLError(`Cannot extend type "${a}" because it is not defined.`+(0,o4.didYouMean)(p),{nodes:i.name}))}}}var d4={[Sn.Kind.SCALAR_TYPE_DEFINITION]:Sn.Kind.SCALAR_TYPE_EXTENSION,[Sn.Kind.OBJECT_TYPE_DEFINITION]:Sn.Kind.OBJECT_TYPE_EXTENSION,[Sn.Kind.INTERFACE_TYPE_DEFINITION]:Sn.Kind.INTERFACE_TYPE_EXTENSION,[Sn.Kind.UNION_TYPE_DEFINITION]:Sn.Kind.UNION_TYPE_EXTENSION,[Sn.Kind.ENUM_TYPE_DEFINITION]:Sn.Kind.ENUM_TYPE_EXTENSION,[Sn.Kind.INPUT_OBJECT_TYPE_DEFINITION]:Sn.Kind.INPUT_OBJECT_TYPE_EXTENSION};function f4(e){if((0,Rl.isScalarType)(e))return Sn.Kind.SCALAR_TYPE_EXTENSION;if((0,Rl.isObjectType)(e))return Sn.Kind.OBJECT_TYPE_EXTENSION;if((0,Rl.isInterfaceType)(e))return Sn.Kind.INTERFACE_TYPE_EXTENSION;if((0,Rl.isUnionType)(e))return Sn.Kind.UNION_TYPE_EXTENSION;if((0,Rl.isEnumType)(e))return Sn.Kind.ENUM_TYPE_EXTENSION;if((0,Rl.isInputObjectType)(e))return Sn.Kind.INPUT_OBJECT_TYPE_EXTENSION;(0,dL.invariant)(!1,"Unexpected type: "+(0,lL.inspect)(e))}function p4(e){switch(e){case Sn.Kind.SCALAR_TYPE_EXTENSION:return"scalar";case Sn.Kind.OBJECT_TYPE_EXTENSION:return"object";case Sn.Kind.INTERFACE_TYPE_EXTENSION:return"interface";case Sn.Kind.UNION_TYPE_EXTENSION:return"union";case Sn.Kind.ENUM_TYPE_EXTENSION:return"enum";case Sn.Kind.INPUT_OBJECT_TYPE_EXTENSION:return"input object";default:(0,dL.invariant)(!1,"Unexpected kind: "+(0,lL.inspect)(e))}}});var o_=F(KN=>{"use strict";m();T();N();Object.defineProperty(KN,"__esModule",{value:!0});KN.ProvidedRequiredArgumentsOnDirectivesRule=TL;KN.ProvidedRequiredArgumentsRule=T4;var pL=nn(),fL=Eu(),mL=et(),NL=Ut(),m4=gi(),s_=Bt(),N4=ri();function T4(e){return G(M({},TL(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,s_.isRequiredArgument)(a)){let o=(0,pL.inspect)(a.type);e.reportError(new mL.GraphQLError(`Field "${r.name}" argument "${a.name}" of type "${o}" is required, but it was not provided.`,{nodes:t}))}}}})}function TL(e){var t;let n=Object.create(null),r=e.getSchema(),i=(t=r==null?void 0:r.getDirectives())!==null&&t!==void 0?t:N4.specifiedDirectives;for(let u of i)n[u.name]=(0,fL.keyMap)(u.args.filter(s_.isRequiredArgument),l=>l.name);let a=e.getDocument().definitions;for(let u of a)if(u.kind===NL.Kind.DIRECTIVE_DEFINITION){var o;let l=(o=u.arguments)!==null&&o!==void 0?o:[];n[u.name.value]=(0,fL.keyMap)(l.filter(E4),d=>d.name.value)}return{Directive:{leave(u){let l=u.name.value,d=n[l];if(d){var p;let E=(p=u.arguments)!==null&&p!==void 0?p:[],h=new Set(E.map(v=>v.name.value));for(let[v,R]of Object.entries(d))if(!h.has(v)){let U=(0,s_.isType)(R.type)?(0,pL.inspect)(R.type):(0,m4.print)(R.type);e.reportError(new mL.GraphQLError(`Directive "@${l}" argument "${v}" of type "${U}" is required, but it was not provided.`,{nodes:u}))}}}}}}function E4(e){return e.type.kind===NL.Kind.NON_NULL_TYPE&&e.defaultValue==null}});var c_=F(u_=>{"use strict";m();T();N();Object.defineProperty(u_,"__esModule",{value:!0});u_.ScalarLeafsRule=h4;var EL=nn(),hL=et(),yL=Bt();function h4(e){return{Field(t){let n=e.getType(),r=t.selectionSet;if(n){if((0,yL.isLeafType)((0,yL.getNamedType)(n))){if(r){let i=t.name.value,a=(0,EL.inspect)(n);e.reportError(new hL.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 hL.GraphQLError(`Field "${i}" of type "${a}" must have a selection of subfields. Did you mean "${i} { ... }"?`,{nodes:t}))}}}}}});var d_=F(l_=>{"use strict";m();T();N();Object.defineProperty(l_,"__esModule",{value:!0});l_.printPathArray=y4;function y4(e){return e.map(t=>typeof t=="number"?"["+t.toString()+"]":"."+t).join("")}});var Df=F($N=>{"use strict";m();T();N();Object.defineProperty($N,"__esModule",{value:!0});$N.addPath=I4;$N.pathToArray=g4;function I4(e,t,n){return{prev:e,key:t,typename:n}}function g4(e){let t=[],n=e;for(;n;)t.push(n.key),n=n.prev;return t.reverse()}});var p_=F(f_=>{"use strict";m();T();N();Object.defineProperty(f_,"__esModule",{value:!0});f_.coerceInputValue=A4;var _4=Tu(),GN=nn(),v4=Lr(),S4=LN(),O4=ja(),ha=Df(),D4=d_(),b4=hu(),As=et(),bf=Bt();function A4(e,t,n=R4){return Af(e,t,n,void 0)}function R4(e,t,n){let r="Invalid value "+(0,GN.inspect)(t);throw e.length>0&&(r+=` at "value${(0,D4.printPathArray)(e)}"`),n.message=r+": "+n.message,n}function Af(e,t,n,r){if((0,bf.isNonNullType)(t)){if(e!=null)return Af(e,t.ofType,n,r);n((0,ha.pathToArray)(r),e,new As.GraphQLError(`Expected non-nullable type "${(0,GN.inspect)(t)}" not to be null.`));return}if(e==null)return null;if((0,bf.isListType)(t)){let i=t.ofType;return(0,S4.isIterableObject)(e)?Array.from(e,(a,o)=>{let u=(0,ha.addPath)(r,o,void 0);return Af(a,i,n,u)}):[Af(e,i,n,r)]}if((0,bf.isInputObjectType)(t)){if(!(0,O4.isObjectLike)(e)){n((0,ha.pathToArray)(r),e,new As.GraphQLError(`Expected type "${t.name}" to be an object.`));return}let i={},a=t.getFields();for(let o of Object.values(a)){let u=e[o.name];if(u===void 0){if(o.defaultValue!==void 0)i[o.name]=o.defaultValue;else if((0,bf.isNonNullType)(o.type)){let l=(0,GN.inspect)(o.type);n((0,ha.pathToArray)(r),e,new As.GraphQLError(`Field "${o.name}" of required type "${l}" was not provided.`))}continue}i[o.name]=Af(u,o.type,n,(0,ha.addPath)(r,o.name,t.name))}for(let o of Object.keys(e))if(!a[o]){let u=(0,b4.suggestionList)(o,Object.keys(t.getFields()));n((0,ha.pathToArray)(r),e,new As.GraphQLError(`Field "${o}" is not defined by type "${t.name}".`+(0,_4.didYouMean)(u)))}if(t.isOneOf){let o=Object.keys(i);o.length!==1&&n((0,ha.pathToArray)(r),e,new As.GraphQLError(`Exactly one key must be specified for OneOf type "${t.name}".`));let u=o[0],l=i[u];l===null&&n((0,ha.pathToArray)(r).concat(u),l,new As.GraphQLError(`Field "${u}" must be non-null.`))}return i}if((0,bf.isLeafType)(t)){let i;try{i=t.parseValue(e)}catch(a){a instanceof As.GraphQLError?n((0,ha.pathToArray)(r),e,a):n((0,ha.pathToArray)(r),e,new As.GraphQLError(`Expected type "${t.name}". `+a.message,{originalError:a}));return}return i===void 0&&n((0,ha.pathToArray)(r),e,new As.GraphQLError(`Expected type "${t.name}".`)),i}(0,v4.invariant)(!1,"Unexpected input type: "+(0,GN.inspect)(t))}});var Pf=F(m_=>{"use strict";m();T();N();Object.defineProperty(m_,"__esModule",{value:!0});m_.valueFromAST=Rf;var P4=nn(),F4=Lr(),w4=Eu(),Pl=Ut(),hc=Bt();function Rf(e,t,n){if(e){if(e.kind===Pl.Kind.VARIABLE){let r=e.name.value;if(n==null||n[r]===void 0)return;let i=n[r];return i===null&&(0,hc.isNonNullType)(t)?void 0:i}if((0,hc.isNonNullType)(t))return e.kind===Pl.Kind.NULL?void 0:Rf(e,t.ofType,n);if(e.kind===Pl.Kind.NULL)return null;if((0,hc.isListType)(t)){let r=t.ofType;if(e.kind===Pl.Kind.LIST){let a=[];for(let o of e.values)if(IL(o,n)){if((0,hc.isNonNullType)(r))return;a.push(null)}else{let u=Rf(o,r,n);if(u===void 0)return;a.push(u)}return a}let i=Rf(e,r,n);return i===void 0?void 0:[i]}if((0,hc.isInputObjectType)(t)){if(e.kind!==Pl.Kind.OBJECT)return;let r=Object.create(null),i=(0,w4.keyMap)(e.fields,a=>a.name.value);for(let a of Object.values(t.getFields())){let o=i[a.name];if(!o||IL(o.value,n)){if(a.defaultValue!==void 0)r[a.name]=a.defaultValue;else if((0,hc.isNonNullType)(a.type))return;continue}let u=Rf(o.value,a.type,n);if(u===void 0)return;r[a.name]=u}if(t.isOneOf){let a=Object.keys(r);if(a.length!==1||r[a[0]]===null)return}return r}if((0,hc.isLeafType)(t)){let r;try{r=t.parseLiteral(e,n)}catch(i){return}return r===void 0?void 0:r}(0,F4.invariant)(!1,"Unexpected input type: "+(0,P4.inspect)(t))}}function IL(e,t){return e.kind===Pl.Kind.VARIABLE&&(t==null||t[e.name.value]===void 0)}});var Ll=F(Ff=>{"use strict";m();T();N();Object.defineProperty(Ff,"__esModule",{value:!0});Ff.getArgumentValues=SL;Ff.getDirectiveValues=x4;Ff.getVariableValues=k4;var Fl=nn(),L4=Eu(),C4=d_(),Rs=et(),gL=Ut(),_L=gi(),wl=Bt(),U4=p_(),B4=Ya(),vL=Pf();function k4(e,t,n,r){let i=[],a=r==null?void 0:r.maxErrors;try{let o=M4(e,t,n,u=>{if(a!=null&&i.length>=a)throw new Rs.GraphQLError("Too many errors processing variables, error limit reached. Execution aborted.");i.push(u)});if(i.length===0)return{coerced:o}}catch(o){i.push(o)}return{errors:i}}function M4(e,t,n,r){let i={};for(let a of t){let o=a.variable.name.value,u=(0,B4.typeFromAST)(e,a.type);if(!(0,wl.isInputType)(u)){let d=(0,_L.print)(a.type);r(new Rs.GraphQLError(`Variable "$${o}" expected value of type "${d}" which cannot be used as an input type.`,{nodes:a.type}));continue}if(!OL(n,o)){if(a.defaultValue)i[o]=(0,vL.valueFromAST)(a.defaultValue,u);else if((0,wl.isNonNullType)(u)){let d=(0,Fl.inspect)(u);r(new Rs.GraphQLError(`Variable "$${o}" of required type "${d}" was not provided.`,{nodes:a}))}continue}let l=n[o];if(l===null&&(0,wl.isNonNullType)(u)){let d=(0,Fl.inspect)(u);r(new Rs.GraphQLError(`Variable "$${o}" of non-null type "${d}" must not be null.`,{nodes:a}));continue}i[o]=(0,U4.coerceInputValue)(l,u,(d,p,E)=>{let h=`Variable "$${o}" got invalid value `+(0,Fl.inspect)(p);d.length>0&&(h+=` at "${o}${(0,C4.printPathArray)(d)}"`),r(new Rs.GraphQLError(h+"; "+E.message,{nodes:a,originalError:E}))})}return i}function SL(e,t,n){var r;let i={},a=(r=t.arguments)!==null&&r!==void 0?r:[],o=(0,L4.keyMap)(a,u=>u.name.value);for(let u of e.args){let l=u.name,d=u.type,p=o[l];if(!p){if(u.defaultValue!==void 0)i[l]=u.defaultValue;else if((0,wl.isNonNullType)(d))throw new Rs.GraphQLError(`Argument "${l}" of required type "${(0,Fl.inspect)(d)}" was not provided.`,{nodes:t});continue}let E=p.value,h=E.kind===gL.Kind.NULL;if(E.kind===gL.Kind.VARIABLE){let R=E.name.value;if(n==null||!OL(n,R)){if(u.defaultValue!==void 0)i[l]=u.defaultValue;else if((0,wl.isNonNullType)(d))throw new Rs.GraphQLError(`Argument "${l}" of required type "${(0,Fl.inspect)(d)}" was provided the variable "$${R}" which was not provided a runtime value.`,{nodes:E});continue}h=n[R]==null}if(h&&(0,wl.isNonNullType)(d))throw new Rs.GraphQLError(`Argument "${l}" of non-null type "${(0,Fl.inspect)(d)}" must not be null.`,{nodes:E});let v=(0,vL.valueFromAST)(E,d,n);if(v===void 0)throw new Rs.GraphQLError(`Argument "${l}" has invalid value ${(0,_L.print)(E)}.`,{nodes:E});i[l]=v}return i}function x4(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 SL(e,i,n)}function OL(e,t){return Object.prototype.hasOwnProperty.call(e,t)}});var JN=F(YN=>{"use strict";m();T();N();Object.defineProperty(YN,"__esModule",{value:!0});YN.collectFields=j4;YN.collectSubfields=K4;var N_=Ut(),q4=Bt(),DL=ri(),V4=Ya(),bL=Ll();function j4(e,t,n,r,i){let a=new Map;return QN(e,t,n,r,i,a,new Set),a}function K4(e,t,n,r,i){let a=new Map,o=new Set;for(let u of i)u.selectionSet&&QN(e,t,n,r,u.selectionSet,a,o);return a}function QN(e,t,n,r,i,a,o){for(let u of i.selections)switch(u.kind){case N_.Kind.FIELD:{if(!T_(n,u))continue;let l=$4(u),d=a.get(l);d!==void 0?d.push(u):a.set(l,[u]);break}case N_.Kind.INLINE_FRAGMENT:{if(!T_(n,u)||!AL(e,u,r))continue;QN(e,t,n,r,u.selectionSet,a,o);break}case N_.Kind.FRAGMENT_SPREAD:{let l=u.name.value;if(o.has(l)||!T_(n,u))continue;o.add(l);let d=t[l];if(!d||!AL(e,d,r))continue;QN(e,t,n,r,d.selectionSet,a,o);break}}}function T_(e,t){let n=(0,bL.getDirectiveValues)(DL.GraphQLSkipDirective,t,e);if((n==null?void 0:n.if)===!0)return!1;let r=(0,bL.getDirectiveValues)(DL.GraphQLIncludeDirective,t,e);return(r==null?void 0:r.if)!==!1}function AL(e,t,n){let r=t.typeCondition;if(!r)return!0;let i=(0,V4.typeFromAST)(e,r);return i===n?!0:(0,q4.isAbstractType)(i)?e.isSubType(i,n):!1}function $4(e){return e.alias?e.alias.value:e.name.value}});var h_=F(E_=>{"use strict";m();T();N();Object.defineProperty(E_,"__esModule",{value:!0});E_.SingleFieldSubscriptionsRule=Y4;var RL=et(),G4=Ut(),Q4=JN();function Y4(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(),u=Object.create(null);for(let d of o.definitions)d.kind===G4.Kind.FRAGMENT_DEFINITION&&(u[d.name.value]=d);let l=(0,Q4.collectFields)(n,u,a,r,t.selectionSet);if(l.size>1){let E=[...l.values()].slice(1).flat();e.reportError(new RL.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 RL.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 zN=F(y_=>{"use strict";m();T();N();Object.defineProperty(y_,"__esModule",{value:!0});y_.groupBy=J4;function J4(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 g_=F(I_=>{"use strict";m();T();N();Object.defineProperty(I_,"__esModule",{value:!0});I_.UniqueArgumentDefinitionNamesRule=W4;var z4=zN(),H4=et();function W4(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 u;let d=l.name.value,p=(u=l.arguments)!==null&&u!==void 0?u:[];n(`${a}.${d}`,p)}return!1}function n(r,i){let a=(0,z4.groupBy)(i,o=>o.name.value);for(let[o,u]of a)u.length>1&&e.reportError(new H4.GraphQLError(`Argument "${r}(${o}:)" can only be defined once.`,{nodes:u.map(l=>l.name)}));return!1}}});var v_=F(__=>{"use strict";m();T();N();Object.defineProperty(__,"__esModule",{value:!0});__.UniqueArgumentNamesRule=e8;var X4=zN(),Z4=et();function e8(e){return{Field:t,Directive:t};function t(n){var r;let i=(r=n.arguments)!==null&&r!==void 0?r:[],a=(0,X4.groupBy)(i,o=>o.name.value);for(let[o,u]of a)u.length>1&&e.reportError(new Z4.GraphQLError(`There can be only one argument named "${o}".`,{nodes:u.map(l=>l.name)}))}}});var O_=F(S_=>{"use strict";m();T();N();Object.defineProperty(S_,"__esModule",{value:!0});S_.UniqueDirectiveNamesRule=t8;var PL=et();function t8(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 A_=F(b_=>{"use strict";m();T();N();Object.defineProperty(b_,"__esModule",{value:!0});b_.UniqueDirectivesPerLocationRule=i8;var n8=et(),D_=Ut(),FL=Ec(),r8=ri();function i8(e){let t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():r8.specifiedDirectives;for(let u of r)t[u.name]=!u.isRepeatable;let i=e.getDocument().definitions;for(let u of i)u.kind===D_.Kind.DIRECTIVE_DEFINITION&&(t[u.name.value]=!u.repeatable);let a=Object.create(null),o=Object.create(null);return{enter(u){if(!("directives"in u)||!u.directives)return;let l;if(u.kind===D_.Kind.SCHEMA_DEFINITION||u.kind===D_.Kind.SCHEMA_EXTENSION)l=a;else if((0,FL.isTypeDefinitionNode)(u)||(0,FL.isTypeExtensionNode)(u)){let d=u.name.value;l=o[d],l===void 0&&(o[d]=l=Object.create(null))}else l=Object.create(null);for(let d of u.directives){let p=d.name.value;t[p]&&(l[p]?e.reportError(new n8.GraphQLError(`The directive "@${p}" can only be used once at this location.`,{nodes:[l[p],d]})):l[p]=d)}}}}});var P_=F(R_=>{"use strict";m();T();N();Object.defineProperty(R_,"__esModule",{value:!0});R_.UniqueEnumValueNamesRule=s8;var wL=et(),a8=Bt();function s8(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 u=a.name.value;r[u]||(r[u]=Object.create(null));let l=(o=a.values)!==null&&o!==void 0?o:[],d=r[u];for(let p of l){let E=p.name.value,h=n[u];(0,a8.isEnumType)(h)&&h.getValue(E)?e.reportError(new wL.GraphQLError(`Enum value "${u}.${E}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:p.name})):d[E]?e.reportError(new wL.GraphQLError(`Enum value "${u}.${E}" can only be defined once.`,{nodes:[d[E],p.name]})):d[E]=p.name}return!1}}});var L_=F(w_=>{"use strict";m();T();N();Object.defineProperty(w_,"__esModule",{value:!0});w_.UniqueFieldDefinitionNamesRule=o8;var LL=et(),F_=Bt();function o8(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 u=a.name.value;r[u]||(r[u]=Object.create(null));let l=(o=a.fields)!==null&&o!==void 0?o:[],d=r[u];for(let p of l){let E=p.name.value;u8(n[u],E)?e.reportError(new LL.GraphQLError(`Field "${u}.${E}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:p.name})):d[E]?e.reportError(new LL.GraphQLError(`Field "${u}.${E}" can only be defined once.`,{nodes:[d[E],p.name]})):d[E]=p.name}return!1}}function u8(e,t){return(0,F_.isObjectType)(e)||(0,F_.isInterfaceType)(e)||(0,F_.isInputObjectType)(e)?e.getFields()[t]!=null:!1}});var U_=F(C_=>{"use strict";m();T();N();Object.defineProperty(C_,"__esModule",{value:!0});C_.UniqueFragmentNamesRule=l8;var c8=et();function l8(e){let t=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(n){let r=n.name.value;return t[r]?e.reportError(new c8.GraphQLError(`There can be only one fragment named "${r}".`,{nodes:[t[r],n.name]})):t[r]=n.name,!1}}}});var k_=F(B_=>{"use strict";m();T();N();Object.defineProperty(B_,"__esModule",{value:!0});B_.UniqueInputFieldNamesRule=p8;var d8=Lr(),f8=et();function p8(e){let t=[],n=Object.create(null);return{ObjectValue:{enter(){t.push(n),n=Object.create(null)},leave(){let r=t.pop();r||(0,d8.invariant)(!1),n=r}},ObjectField(r){let i=r.name.value;n[i]?e.reportError(new f8.GraphQLError(`There can be only one input field named "${i}".`,{nodes:[n[i],r.name]})):n[i]=r.name}}}});var x_=F(M_=>{"use strict";m();T();N();Object.defineProperty(M_,"__esModule",{value:!0});M_.UniqueOperationNamesRule=N8;var m8=et();function N8(e){let t=Object.create(null);return{OperationDefinition(n){let r=n.name;return r&&(t[r.value]?e.reportError(new m8.GraphQLError(`There can be only one operation named "${r.value}".`,{nodes:[t[r.value],r]})):t[r.value]=r),!1},FragmentDefinition:()=>!1}}});var V_=F(q_=>{"use strict";m();T();N();Object.defineProperty(q_,"__esModule",{value:!0});q_.UniqueOperationTypesRule=T8;var CL=et();function T8(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 u=(o=a.operationTypes)!==null&&o!==void 0?o:[];for(let l of u){let d=l.operation,p=n[d];r[d]?e.reportError(new CL.GraphQLError(`Type for ${d} already defined in the schema. It cannot be redefined.`,{nodes:l})):p?e.reportError(new CL.GraphQLError(`There can be only one ${d} type in schema.`,{nodes:[p,l]})):n[d]=l}return!1}}});var K_=F(j_=>{"use strict";m();T();N();Object.defineProperty(j_,"__esModule",{value:!0});j_.UniqueTypeNamesRule=E8;var UL=et();function E8(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 UL.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 UL.GraphQLError(`There can be only one type named "${a}".`,{nodes:[t[a],i.name]})):t[a]=i.name,!1}}});var G_=F($_=>{"use strict";m();T();N();Object.defineProperty($_,"__esModule",{value:!0});$_.UniqueVariableNamesRule=I8;var h8=zN(),y8=et();function I8(e){return{OperationDefinition(t){var n;let r=(n=t.variableDefinitions)!==null&&n!==void 0?n:[],i=(0,h8.groupBy)(r,a=>a.variable.name.value);for(let[a,o]of i)o.length>1&&e.reportError(new y8.GraphQLError(`There can be only one variable named "$${a}".`,{nodes:o.map(u=>u.variable.name)}))}}}});var J_=F(Y_=>{"use strict";m();T();N();Object.defineProperty(Y_,"__esModule",{value:!0});Y_.ValuesOfCorrectTypeRule=S8;var g8=Tu(),wf=nn(),_8=Eu(),v8=hu(),za=et(),Q_=Ut(),HN=gi(),Ja=Bt();function S8(e){let t={};return{OperationDefinition:{enter(){t={}}},VariableDefinition(n){t[n.variable.name.value]=n},ListValue(n){let r=(0,Ja.getNullableType)(e.getParentInputType());if(!(0,Ja.isListType)(r))return yc(e,n),!1},ObjectValue(n){let r=(0,Ja.getNamedType)(e.getInputType());if(!(0,Ja.isInputObjectType)(r))return yc(e,n),!1;let i=(0,_8.keyMap)(n.fields,a=>a.name.value);for(let a of Object.values(r.getFields()))if(!i[a.name]&&(0,Ja.isRequiredInputField)(a)){let u=(0,wf.inspect)(a.type);e.reportError(new za.GraphQLError(`Field "${r.name}.${a.name}" of required type "${u}" was not provided.`,{nodes:n}))}r.isOneOf&&O8(e,n,r,i,t)},ObjectField(n){let r=(0,Ja.getNamedType)(e.getParentInputType());if(!e.getInputType()&&(0,Ja.isInputObjectType)(r)){let a=(0,v8.suggestionList)(n.name.value,Object.keys(r.getFields()));e.reportError(new za.GraphQLError(`Field "${n.name.value}" is not defined by type "${r.name}".`+(0,g8.didYouMean)(a),{nodes:n}))}},NullValue(n){let r=e.getInputType();(0,Ja.isNonNullType)(r)&&e.reportError(new za.GraphQLError(`Expected value of type "${(0,wf.inspect)(r)}", found ${(0,HN.print)(n)}.`,{nodes:n}))},EnumValue:n=>yc(e,n),IntValue:n=>yc(e,n),FloatValue:n=>yc(e,n),StringValue:n=>yc(e,n),BooleanValue:n=>yc(e,n)}}function yc(e,t){let n=e.getInputType();if(!n)return;let r=(0,Ja.getNamedType)(n);if(!(0,Ja.isLeafType)(r)){let i=(0,wf.inspect)(n);e.reportError(new za.GraphQLError(`Expected value of type "${i}", found ${(0,HN.print)(t)}.`,{nodes:t}));return}try{if(r.parseLiteral(t,void 0)===void 0){let a=(0,wf.inspect)(n);e.reportError(new za.GraphQLError(`Expected value of type "${a}", found ${(0,HN.print)(t)}.`,{nodes:t}))}}catch(i){let a=(0,wf.inspect)(n);i instanceof za.GraphQLError?e.reportError(i):e.reportError(new za.GraphQLError(`Expected value of type "${a}", found ${(0,HN.print)(t)}; `+i.message,{nodes:t,originalError:i}))}}function O8(e,t,n,r,i){var a;let o=Object.keys(r);if(o.length!==1){e.reportError(new za.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===Q_.Kind.NULL,p=(l==null?void 0:l.kind)===Q_.Kind.VARIABLE;if(d){e.reportError(new za.GraphQLError(`Field "${n.name}.${o[0]}" must be non-null.`,{nodes:[t]}));return}if(p){let E=l.name.value;i[E].type.kind!==Q_.Kind.NON_NULL_TYPE&&e.reportError(new za.GraphQLError(`Variable "${E}" must be non-nullable to be used for OneOf Input Object "${n.name}".`,{nodes:[t]}))}}});var H_=F(z_=>{"use strict";m();T();N();Object.defineProperty(z_,"__esModule",{value:!0});z_.VariablesAreInputTypesRule=P8;var D8=et(),b8=gi(),A8=Bt(),R8=Ya();function P8(e){return{VariableDefinition(t){let n=(0,R8.typeFromAST)(e.getSchema(),t.type);if(n!==void 0&&!(0,A8.isInputType)(n)){let r=t.variable.name.value,i=(0,b8.print)(t.type);e.reportError(new D8.GraphQLError(`Variable "$${r}" cannot be non-input type "${i}".`,{nodes:t.type}))}}}}});var X_=F(W_=>{"use strict";m();T();N();Object.defineProperty(W_,"__esModule",{value:!0});W_.VariablesInAllowedPositionRule=C8;var BL=nn(),F8=et(),w8=Ut(),kL=Bt(),ML=pf(),L8=Ya();function C8(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 u=i.name.value,l=t[u];if(l&&a){let d=e.getSchema(),p=(0,L8.typeFromAST)(d,l.type);if(p&&!U8(d,p,l.defaultValue,a,o)){let E=(0,BL.inspect)(p),h=(0,BL.inspect)(a);e.reportError(new F8.GraphQLError(`Variable "$${u}" of type "${E}" used in position expecting type "${h}".`,{nodes:[l,i]}))}}}}},VariableDefinition(n){t[n.variable.name.value]=n}}}function U8(e,t,n,r,i){if((0,kL.isNonNullType)(r)&&!(0,kL.isNonNullType)(t)){if(!(n!=null&&n.kind!==w8.Kind.NULL)&&!(i!==void 0))return!1;let u=r.ofType;return(0,ML.isTypeSubTypeOf)(e,t,u)}return(0,ML.isTypeSubTypeOf)(e,t,r)}});var Z_=F(_u=>{"use strict";m();T();N();Object.defineProperty(_u,"__esModule",{value:!0});_u.specifiedSDLRules=_u.specifiedRules=_u.recommendedRules=void 0;var B8=Tg(),k8=hg(),M8=Ig(),xL=gg(),qL=Og(),x8=bg(),VL=Pg(),q8=wg(),V8=Cg(),j8=Bg(),K8=Mg(),$8=qg(),G8=jg(),Q8=$g(),Y8=e_(),J8=r_(),z8=a_(),jL=o_(),H8=c_(),W8=h_(),X8=g_(),KL=v_(),Z8=O_(),$L=A_(),eX=P_(),tX=L_(),nX=U_(),GL=k_(),rX=x_(),iX=V_(),aX=K_(),sX=G_(),oX=J_(),uX=H_(),cX=X_(),QL=Object.freeze([j8.MaxIntrospectionDepthRule]);_u.recommendedRules=QL;var lX=Object.freeze([B8.ExecutableDefinitionsRule,rX.UniqueOperationNamesRule,q8.LoneAnonymousOperationRule,W8.SingleFieldSubscriptionsRule,VL.KnownTypeNamesRule,M8.FragmentsOnCompositeTypesRule,uX.VariablesAreInputTypesRule,H8.ScalarLeafsRule,k8.FieldsOnCorrectTypeRule,nX.UniqueFragmentNamesRule,x8.KnownFragmentNamesRule,G8.NoUnusedFragmentsRule,J8.PossibleFragmentSpreadsRule,K8.NoFragmentCyclesRule,sX.UniqueVariableNamesRule,$8.NoUndefinedVariablesRule,Q8.NoUnusedVariablesRule,qL.KnownDirectivesRule,$L.UniqueDirectivesPerLocationRule,xL.KnownArgumentNamesRule,KL.UniqueArgumentNamesRule,oX.ValuesOfCorrectTypeRule,jL.ProvidedRequiredArgumentsRule,cX.VariablesInAllowedPositionRule,Y8.OverlappingFieldsCanBeMergedRule,GL.UniqueInputFieldNamesRule,...QL]);_u.specifiedRules=lX;var dX=Object.freeze([V8.LoneSchemaDefinitionRule,iX.UniqueOperationTypesRule,aX.UniqueTypeNamesRule,eX.UniqueEnumValueNamesRule,tX.UniqueFieldDefinitionNamesRule,X8.UniqueArgumentDefinitionNamesRule,Z8.UniqueDirectiveNamesRule,VL.KnownTypeNamesRule,qL.KnownDirectivesRule,$L.UniqueDirectivesPerLocationRule,z8.PossibleTypeExtensionsRule,xL.KnownArgumentNamesOnDirectivesRule,KL.UniqueArgumentNamesRule,GL.UniqueInputFieldNamesRule,jL.ProvidedRequiredArgumentsOnDirectivesRule]);_u.specifiedSDLRules=dX});var nv=F(vu=>{"use strict";m();T();N();Object.defineProperty(vu,"__esModule",{value:!0});vu.ValidationContext=vu.SDLValidationContext=vu.ASTValidationContext=void 0;var YL=Ut(),fX=cc(),JL=kN(),Lf=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===YL.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===YL.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 u=o.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}};vu.ASTValidationContext=Lf;var ev=class extends Lf{constructor(t,n,r){super(t,r),this._schema=n}get[Symbol.toStringTag](){return"SDLValidationContext"}getSchema(){return this._schema}};vu.SDLValidationContext=ev;var tv=class extends Lf{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 JL.TypeInfo(this._schema);(0,fX.visit)(t,(0,JL.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()}};vu.ValidationContext=tv});var Ul=F(Cl=>{"use strict";m();T();N();Object.defineProperty(Cl,"__esModule",{value:!0});Cl.assertValidSDL=EX;Cl.assertValidSDLExtension=hX;Cl.validate=TX;Cl.validateSDL=rv;var pX=Gr(),mX=et(),WN=cc(),NX=vf(),zL=kN(),HL=Z_(),WL=nv();function TX(e,t,n=HL.specifiedRules,r,i=new zL.TypeInfo(e)){var a;let o=(a=r==null?void 0:r.maxErrors)!==null&&a!==void 0?a:100;t||(0,pX.devAssert)(!1,"Must provide document."),(0,NX.assertValidSchema)(e);let u=Object.freeze({}),l=[],d=new WL.ValidationContext(e,t,i,E=>{if(l.length>=o)throw l.push(new mX.GraphQLError("Too many validation errors, error limit reached. Validation aborted.")),u;l.push(E)}),p=(0,WN.visitInParallel)(n.map(E=>E(d)));try{(0,WN.visit)(t,(0,zL.visitWithTypeInfo)(i,p))}catch(E){if(E!==u)throw E}return l}function rv(e,t,n=HL.specifiedSDLRules){let r=[],i=new WL.SDLValidationContext(e,t,o=>{r.push(o)}),a=n.map(o=>o(i));return(0,WN.visit)(e,(0,WN.visitInParallel)(a)),r}function EX(e){let t=rv(e);if(t.length!==0)throw new Error(t.map(n=>n.message).join(` +`))}var s0=class{constructor(t){this._errors=[],this.schema=t}reportError(t,r){let n=Array.isArray(r)?r.filter(Boolean):r;this._errors.push(new s_e.GraphQLError(t,{nodes:n}))}getErrors(){return this._errors}};function d_e(e){let t=e.schema,r=t.getQueryType();if(!r)e.reportError("Query root type must be provided.",t.astNode);else if(!(0,Jr.isObjectType)(r)){var n;e.reportError(`Query root type must be Object type, it cannot be ${(0,ei.inspect)(r)}.`,(n=o0(t,a0.OperationTypeNode.QUERY))!==null&&n!==void 0?n:r.astNode)}let i=t.getMutationType();if(i&&!(0,Jr.isObjectType)(i)){var a;e.reportError(`Mutation root type must be Object type if provided, it cannot be ${(0,ei.inspect)(i)}.`,(a=o0(t,a0.OperationTypeNode.MUTATION))!==null&&a!==void 0?a:i.astNode)}let o=t.getSubscriptionType();if(o&&!(0,Jr.isObjectType)(o)){var u;e.reportError(`Subscription root type must be Object type if provided, it cannot be ${(0,ei.inspect)(o)}.`,(u=o0(t,a0.OperationTypeNode.SUBSCRIPTION))!==null&&u!==void 0?u:o.astNode)}}function o0(e,t){var r;return(r=[e.astNode,...e.extensionASTNodes].flatMap(n=>{var i;return(i=n==null?void 0:n.operationTypes)!==null&&i!==void 0?i:[]}).find(n=>n.operation===t))===null||r===void 0?void 0:r.type}function f_e(e){for(let r of e.schema.getDirectives()){if(!(0,JY.isDirective)(r)){e.reportError(`Expected directive but got: ${(0,ei.inspect)(r)}.`,r==null?void 0:r.astNode);continue}Wl(e,r);for(let n of r.args)if(Wl(e,n),(0,Jr.isInputType)(n.type)||e.reportError(`The type of @${r.name}(${n.name}:) must be Input Type but got: ${(0,ei.inspect)(n.type)}.`,n.astNode),(0,Jr.isRequiredArgument)(n)&&n.deprecationReason!=null){var t;e.reportError(`Required argument @${r.name}(${n.name}:) cannot be deprecated.`,[u0(n.astNode),(t=n.astNode)===null||t===void 0?void 0:t.type])}}}function Wl(e,t){t.name.startsWith("__")&&e.reportError(`Name "${t.name}" must not begin with "__", which is reserved by GraphQL introspection.`,t.astNode)}function p_e(e){let t=g_e(e),r=e.schema.getTypeMap();for(let n of Object.values(r)){if(!(0,Jr.isNamedType)(n)){e.reportError(`Expected GraphQL named type but got: ${(0,ei.inspect)(n)}.`,n.astNode);continue}(0,u_e.isIntrospectionType)(n)||Wl(e,n),(0,Jr.isObjectType)(n)||(0,Jr.isInterfaceType)(n)?(GY(e,n),QY(e,n)):(0,Jr.isUnionType)(n)?y_e(e,n):(0,Jr.isEnumType)(n)?N_e(e,n):(0,Jr.isInputObjectType)(n)&&(T_e(e,n),t(n))}}function GY(e,t){let r=Object.values(t.getFields());r.length===0&&e.reportError(`Type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(let o of r){if(Wl(e,o),!(0,Jr.isOutputType)(o.type)){var n;e.reportError(`The type of ${t.name}.${o.name} must be Output Type but got: ${(0,ei.inspect)(o.type)}.`,(n=o.astNode)===null||n===void 0?void 0:n.type)}for(let u of o.args){let l=u.name;if(Wl(e,u),!(0,Jr.isInputType)(u.type)){var i;e.reportError(`The type of ${t.name}.${o.name}(${l}:) must be Input Type but got: ${(0,ei.inspect)(u.type)}.`,(i=u.astNode)===null||i===void 0?void 0:i.type)}if((0,Jr.isRequiredArgument)(u)&&u.deprecationReason!=null){var a;e.reportError(`Required argument ${t.name}.${o.name}(${l}:) cannot be deprecated.`,[u0(u.astNode),(a=u.astNode)===null||a===void 0?void 0:a.type])}}}}function QY(e,t){let r=Object.create(null);for(let n of t.getInterfaces()){if(!(0,Jr.isInterfaceType)(n)){e.reportError(`Type ${(0,ei.inspect)(t)} must only implement Interface types, it cannot implement ${(0,ei.inspect)(n)}.`,Ah(t,n));continue}if(t===n){e.reportError(`Type ${t.name} cannot implement itself because it would create a circular reference.`,Ah(t,n));continue}if(r[n.name]){e.reportError(`Type ${t.name} can only implement ${n.name} once.`,Ah(t,n));continue}r[n.name]=!0,h_e(e,t,n),m_e(e,t,n)}}function m_e(e,t,r){let n=t.getFields();for(let l of Object.values(r.getFields())){let m=l.name,h=n[m];if(!h){e.reportError(`Interface field ${r.name}.${m} expected but ${t.name} does not provide it.`,[l.astNode,t.astNode,...t.extensionASTNodes]);continue}if(!(0,$Y.isTypeSubTypeOf)(e.schema,h.type,l.type)){var i,a;e.reportError(`Interface field ${r.name}.${m} expects type ${(0,ei.inspect)(l.type)} but ${t.name}.${m} is type ${(0,ei.inspect)(h.type)}.`,[(i=l.astNode)===null||i===void 0?void 0:i.type,(a=h.astNode)===null||a===void 0?void 0:a.type])}for(let N of l.args){let T=N.name,O=h.args.find(R=>R.name===T);if(!O){e.reportError(`Interface field argument ${r.name}.${m}(${T}:) expected but ${t.name}.${m} does not provide it.`,[N.astNode,h.astNode]);continue}if(!(0,$Y.isEqualType)(N.type,O.type)){var o,u;e.reportError(`Interface field argument ${r.name}.${m}(${T}:) expects type ${(0,ei.inspect)(N.type)} but ${t.name}.${m}(${T}:) is type ${(0,ei.inspect)(O.type)}.`,[(o=N.astNode)===null||o===void 0?void 0:o.type,(u=O.astNode)===null||u===void 0?void 0:u.type])}}for(let N of h.args){let T=N.name;!l.args.find(R=>R.name===T)&&(0,Jr.isRequiredArgument)(N)&&e.reportError(`Object field ${t.name}.${m} includes required argument ${T} that is missing from the Interface field ${r.name}.${m}.`,[N.astNode,l.astNode])}}}function h_e(e,t,r){let n=t.getInterfaces();for(let i of r.getInterfaces())n.includes(i)||e.reportError(i===t?`Type ${t.name} cannot implement ${r.name} because it would create a circular reference.`:`Type ${t.name} must implement ${i.name} because it is implemented by ${r.name}.`,[...Ah(r,i),...Ah(t,r)])}function y_e(e,t){let r=t.getTypes();r.length===0&&e.reportError(`Union type ${t.name} must define one or more member types.`,[t.astNode,...t.extensionASTNodes]);let n=Object.create(null);for(let i of r){if(n[i.name]){e.reportError(`Union type ${t.name} can only include type ${i.name} once.`,YY(t,i.name));continue}n[i.name]=!0,(0,Jr.isObjectType)(i)||e.reportError(`Union type ${t.name} can only include Object types, it cannot include ${(0,ei.inspect)(i)}.`,YY(t,String(i)))}}function N_e(e,t){let r=t.getValues();r.length===0&&e.reportError(`Enum type ${t.name} must define one or more values.`,[t.astNode,...t.extensionASTNodes]);for(let n of r)Wl(e,n)}function T_e(e,t){let r=Object.values(t.getFields());r.length===0&&e.reportError(`Input Object type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(let a of r){if(Wl(e,a),!(0,Jr.isInputType)(a.type)){var n;e.reportError(`The type of ${t.name}.${a.name} must be Input Type but got: ${(0,ei.inspect)(a.type)}.`,(n=a.astNode)===null||n===void 0?void 0:n.type)}if((0,Jr.isRequiredInputField)(a)&&a.deprecationReason!=null){var i;e.reportError(`Required input field ${t.name}.${a.name} cannot be deprecated.`,[u0(a.astNode),(i=a.astNode)===null||i===void 0?void 0:i.type])}t.isOneOf&&E_e(t,a,e)}}function E_e(e,t,r){if((0,Jr.isNonNullType)(t.type)){var n;r.reportError(`OneOf input field ${e.name}.${t.name} must be nullable.`,(n=t.astNode)===null||n===void 0?void 0:n.type)}t.defaultValue!==void 0&&r.reportError(`OneOf input field ${e.name}.${t.name} cannot have a default value.`,t.astNode)}function g_e(e){let t=Object.create(null),r=[],n=Object.create(null);return i;function i(a){if(t[a.name])return;t[a.name]=!0,n[a.name]=r.length;let o=Object.values(a.getFields());for(let u of o)if((0,Jr.isNonNullType)(u.type)&&(0,Jr.isInputObjectType)(u.type.ofType)){let l=u.type.ofType,m=n[l.name];if(r.push(u),m===void 0)i(l);else{let h=r.slice(m),N=h.map(T=>T.name).join(".");e.reportError(`Cannot reference Input Object "${l.name}" within itself through a series of non-null fields: "${N}".`,h.map(T=>T.astNode))}r.pop()}n[a.name]=void 0}}function Ah(e,t){let{astNode:r,extensionASTNodes:n}=e;return(r!=null?[r,...n]:n).flatMap(a=>{var o;return(o=a.interfaces)!==null&&o!==void 0?o:[]}).filter(a=>a.name.value===t.name)}function YY(e,t){let{astNode:r,extensionASTNodes:n}=e;return(r!=null?[r,...n]:n).flatMap(a=>{var o;return(o=a.types)!==null&&o!==void 0?o:[]}).filter(a=>a.name.value===t)}function u0(e){var t;return e==null||(t=e.directives)===null||t===void 0?void 0:t.find(r=>r.name.value===JY.GraphQLDeprecatedDirective.name)}});var Bo=D(d0=>{"use strict";d();p();f();Object.defineProperty(d0,"__esModule",{value:!0});d0.typeFromAST=l0;var c0=jt(),HY=Vt();function l0(e,t){switch(t.kind){case c0.Kind.LIST_TYPE:{let r=l0(e,t.type);return r&&new HY.GraphQLList(r)}case c0.Kind.NON_NULL_TYPE:{let r=l0(e,t.type);return r&&new HY.GraphQLNonNull(r)}case c0.Kind.NAMED_TYPE:return e.getType(t.name.value)}}});var hg=D(wh=>{"use strict";d();p();f();Object.defineProperty(wh,"__esModule",{value:!0});wh.TypeInfo=void 0;wh.visitWithTypeInfo=__e;var I_e=Po(),zr=jt(),WY=$l(),Hr=Vt(),xf=ma(),XY=Bo(),f0=class{constructor(t,r,n){this._schema=t,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._defaultValueStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=n!=null?n:v_e,r&&((0,Hr.isInputType)(r)&&this._inputTypeStack.push(r),(0,Hr.isCompositeType)(r)&&this._parentTypeStack.push(r),(0,Hr.isOutputType)(r)&&this._typeStack.push(r))}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 r=this._schema;switch(t.kind){case zr.Kind.SELECTION_SET:{let i=(0,Hr.getNamedType)(this.getType());this._parentTypeStack.push((0,Hr.isCompositeType)(i)?i:void 0);break}case zr.Kind.FIELD:{let i=this.getParentType(),a,o;i&&(a=this._getFieldDef(r,i,t),a&&(o=a.type)),this._fieldDefStack.push(a),this._typeStack.push((0,Hr.isOutputType)(o)?o:void 0);break}case zr.Kind.DIRECTIVE:this._directive=r.getDirective(t.name.value);break;case zr.Kind.OPERATION_DEFINITION:{let i=r.getRootType(t.operation);this._typeStack.push((0,Hr.isObjectType)(i)?i:void 0);break}case zr.Kind.INLINE_FRAGMENT:case zr.Kind.FRAGMENT_DEFINITION:{let i=t.typeCondition,a=i?(0,XY.typeFromAST)(r,i):(0,Hr.getNamedType)(this.getType());this._typeStack.push((0,Hr.isOutputType)(a)?a:void 0);break}case zr.Kind.VARIABLE_DEFINITION:{let i=(0,XY.typeFromAST)(r,t.type);this._inputTypeStack.push((0,Hr.isInputType)(i)?i:void 0);break}case zr.Kind.ARGUMENT:{var n;let i,a,o=(n=this.getDirective())!==null&&n!==void 0?n:this.getFieldDef();o&&(i=o.args.find(u=>u.name===t.name.value),i&&(a=i.type)),this._argument=i,this._defaultValueStack.push(i?i.defaultValue:void 0),this._inputTypeStack.push((0,Hr.isInputType)(a)?a:void 0);break}case zr.Kind.LIST:{let i=(0,Hr.getNullableType)(this.getInputType()),a=(0,Hr.isListType)(i)?i.ofType:i;this._defaultValueStack.push(void 0),this._inputTypeStack.push((0,Hr.isInputType)(a)?a:void 0);break}case zr.Kind.OBJECT_FIELD:{let i=(0,Hr.getNamedType)(this.getInputType()),a,o;(0,Hr.isInputObjectType)(i)&&(o=i.getFields()[t.name.value],o&&(a=o.type)),this._defaultValueStack.push(o?o.defaultValue:void 0),this._inputTypeStack.push((0,Hr.isInputType)(a)?a:void 0);break}case zr.Kind.ENUM:{let i=(0,Hr.getNamedType)(this.getInputType()),a;(0,Hr.isEnumType)(i)&&(a=i.getValue(t.value)),this._enumValue=a;break}default:}}leave(t){switch(t.kind){case zr.Kind.SELECTION_SET:this._parentTypeStack.pop();break;case zr.Kind.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case zr.Kind.DIRECTIVE:this._directive=null;break;case zr.Kind.OPERATION_DEFINITION:case zr.Kind.INLINE_FRAGMENT:case zr.Kind.FRAGMENT_DEFINITION:this._typeStack.pop();break;case zr.Kind.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case zr.Kind.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case zr.Kind.LIST:case zr.Kind.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case zr.Kind.ENUM:this._enumValue=null;break;default:}}};wh.TypeInfo=f0;function v_e(e,t,r){let n=r.name.value;if(n===xf.SchemaMetaFieldDef.name&&e.getQueryType()===t)return xf.SchemaMetaFieldDef;if(n===xf.TypeMetaFieldDef.name&&e.getQueryType()===t)return xf.TypeMetaFieldDef;if(n===xf.TypeNameMetaFieldDef.name&&(0,Hr.isCompositeType)(t))return xf.TypeNameMetaFieldDef;if((0,Hr.isObjectType)(t)||(0,Hr.isInterfaceType)(t))return t.getFields()[n]}function __e(e,t){return{enter(...r){let n=r[0];e.enter(n);let i=(0,WY.getEnterLeaveForKind)(t,n.kind).enter;if(i){let a=i.apply(t,r);return a!==void 0&&(e.leave(n),(0,I_e.isNode)(a)&&e.enter(a)),a}},leave(...r){let n=r[0],i=(0,WY.getEnterLeaveForKind)(t,n.kind).leave,a;return i&&(a=i.apply(t,r)),e.leave(n),a}}}});var Xl=D(ha=>{"use strict";d();p();f();Object.defineProperty(ha,"__esModule",{value:!0});ha.isConstValueNode=p0;ha.isDefinitionNode=S_e;ha.isExecutableDefinitionNode=ZY;ha.isSelectionNode=O_e;ha.isTypeDefinitionNode=rJ;ha.isTypeExtensionNode=iJ;ha.isTypeNode=D_e;ha.isTypeSystemDefinitionNode=tJ;ha.isTypeSystemExtensionNode=nJ;ha.isValueNode=eJ;var Kt=jt();function S_e(e){return ZY(e)||tJ(e)||nJ(e)}function ZY(e){return e.kind===Kt.Kind.OPERATION_DEFINITION||e.kind===Kt.Kind.FRAGMENT_DEFINITION}function O_e(e){return e.kind===Kt.Kind.FIELD||e.kind===Kt.Kind.FRAGMENT_SPREAD||e.kind===Kt.Kind.INLINE_FRAGMENT}function eJ(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 p0(e){return eJ(e)&&(e.kind===Kt.Kind.LIST?e.values.some(p0):e.kind===Kt.Kind.OBJECT?e.fields.some(t=>p0(t.value)):e.kind!==Kt.Kind.VARIABLE)}function D_e(e){return e.kind===Kt.Kind.NAMED_TYPE||e.kind===Kt.Kind.LIST_TYPE||e.kind===Kt.Kind.NON_NULL_TYPE}function tJ(e){return e.kind===Kt.Kind.SCHEMA_DEFINITION||rJ(e)||e.kind===Kt.Kind.DIRECTIVE_DEFINITION}function rJ(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 nJ(e){return e.kind===Kt.Kind.SCHEMA_EXTENSION||iJ(e)}function iJ(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 h0=D(m0=>{"use strict";d();p();f();Object.defineProperty(m0,"__esModule",{value:!0});m0.ExecutableDefinitionsRule=R_e;var b_e=at(),aJ=jt(),A_e=Xl();function R_e(e){return{Document(t){for(let r of t.definitions)if(!(0,A_e.isExecutableDefinitionNode)(r)){let n=r.kind===aJ.Kind.SCHEMA_DEFINITION||r.kind===aJ.Kind.SCHEMA_EXTENSION?"schema":'"'+r.name.value+'"';e.reportError(new b_e.GraphQLError(`The ${n} definition is not executable.`,{nodes:r}))}return!1}}}});var N0=D(y0=>{"use strict";d();p();f();Object.defineProperty(y0,"__esModule",{value:!0});y0.FieldsOnCorrectTypeRule=L_e;var oJ=qc(),w_e=ph(),P_e=Mc(),F_e=at(),Ph=Vt();function L_e(e){return{Field(t){let r=e.getParentType();if(r&&!e.getFieldDef()){let i=e.getSchema(),a=t.name.value,o=(0,oJ.didYouMean)("to use an inline fragment on",C_e(i,r,a));o===""&&(o=(0,oJ.didYouMean)(B_e(r,a))),e.reportError(new F_e.GraphQLError(`Cannot query field "${a}" on type "${r.name}".`+o,{nodes:t}))}}}}function C_e(e,t,r){if(!(0,Ph.isAbstractType)(t))return[];let n=new Set,i=Object.create(null);for(let o of e.getPossibleTypes(t))if(o.getFields()[r]){n.add(o),i[o.name]=1;for(let u of o.getInterfaces()){var a;u.getFields()[r]&&(n.add(u),i[u.name]=((a=i[u.name])!==null&&a!==void 0?a:0)+1)}}return[...n].sort((o,u)=>{let l=i[u.name]-i[o.name];return l!==0?l:(0,Ph.isInterfaceType)(o)&&e.isSubType(o,u)?-1:(0,Ph.isInterfaceType)(u)&&e.isSubType(u,o)?1:(0,w_e.naturalCompare)(o.name,u.name)}).map(o=>o.name)}function B_e(e,t){if((0,Ph.isObjectType)(e)||(0,Ph.isInterfaceType)(e)){let r=Object.keys(e.getFields());return(0,P_e.suggestionList)(t,r)}return[]}});var E0=D(T0=>{"use strict";d();p();f();Object.defineProperty(T0,"__esModule",{value:!0});T0.FragmentsOnCompositeTypesRule=U_e;var sJ=at(),uJ=Gi(),cJ=Vt(),lJ=Bo();function U_e(e){return{InlineFragment(t){let r=t.typeCondition;if(r){let n=(0,lJ.typeFromAST)(e.getSchema(),r);if(n&&!(0,cJ.isCompositeType)(n)){let i=(0,uJ.print)(r);e.reportError(new sJ.GraphQLError(`Fragment cannot condition on non composite type "${i}".`,{nodes:r}))}}},FragmentDefinition(t){let r=(0,lJ.typeFromAST)(e.getSchema(),t.typeCondition);if(r&&!(0,cJ.isCompositeType)(r)){let n=(0,uJ.print)(t.typeCondition);e.reportError(new sJ.GraphQLError(`Fragment "${t.name.value}" cannot condition on non composite type "${n}".`,{nodes:t.typeCondition}))}}}}});var g0=D(yg=>{"use strict";d();p();f();Object.defineProperty(yg,"__esModule",{value:!0});yg.KnownArgumentNamesOnDirectivesRule=mJ;yg.KnownArgumentNamesRule=x_e;var dJ=qc(),fJ=Mc(),pJ=at(),k_e=jt(),q_e=_i();function x_e(e){return G(q({},mJ(e)),{Argument(t){let r=e.getArgument(),n=e.getFieldDef(),i=e.getParentType();if(!r&&n&&i){let a=t.name.value,o=n.args.map(l=>l.name),u=(0,fJ.suggestionList)(a,o);e.reportError(new pJ.GraphQLError(`Unknown argument "${a}" on field "${i.name}.${n.name}".`+(0,dJ.didYouMean)(u),{nodes:t}))}}})}function mJ(e){let t=Object.create(null),r=e.getSchema(),n=r?r.getDirectives():q_e.specifiedDirectives;for(let o of n)t[o.name]=o.args.map(u=>u.name);let i=e.getDocument().definitions;for(let o of i)if(o.kind===k_e.Kind.DIRECTIVE_DEFINITION){var a;let u=(a=o.arguments)!==null&&a!==void 0?a:[];t[o.name.value]=u.map(l=>l.name.value)}return{Directive(o){let u=o.name.value,l=t[u];if(o.arguments&&l)for(let m of o.arguments){let h=m.name.value;if(!l.includes(h)){let N=(0,fJ.suggestionList)(h,l);e.reportError(new pJ.GraphQLError(`Unknown argument "${h}" on directive "@${u}".`+(0,dJ.didYouMean)(N),{nodes:m}))}}return!1}}}});var S0=D(_0=>{"use strict";d();p();f();Object.defineProperty(_0,"__esModule",{value:!0});_0.KnownDirectivesRule=V_e;var M_e=ur(),I0=Xn(),hJ=at(),v0=Po(),bn=Ff(),Rr=jt(),j_e=_i();function V_e(e){let t=Object.create(null),r=e.getSchema(),n=r?r.getDirectives():j_e.specifiedDirectives;for(let a of n)t[a.name]=a.locations;let i=e.getDocument().definitions;for(let a of i)a.kind===Rr.Kind.DIRECTIVE_DEFINITION&&(t[a.name.value]=a.locations.map(o=>o.value));return{Directive(a,o,u,l,m){let h=a.name.value,N=t[h];if(!N){e.reportError(new hJ.GraphQLError(`Unknown directive "@${h}".`,{nodes:a}));return}let T=K_e(m);T&&!N.includes(T)&&e.reportError(new hJ.GraphQLError(`Directive "@${h}" may not be used on ${T}.`,{nodes:a}))}}}function K_e(e){let t=e[e.length-1];switch("kind"in t||(0,I0.invariant)(!1),t.kind){case Rr.Kind.OPERATION_DEFINITION:return $_e(t.operation);case Rr.Kind.FIELD:return bn.DirectiveLocation.FIELD;case Rr.Kind.FRAGMENT_SPREAD:return bn.DirectiveLocation.FRAGMENT_SPREAD;case Rr.Kind.INLINE_FRAGMENT:return bn.DirectiveLocation.INLINE_FRAGMENT;case Rr.Kind.FRAGMENT_DEFINITION:return bn.DirectiveLocation.FRAGMENT_DEFINITION;case Rr.Kind.VARIABLE_DEFINITION:return bn.DirectiveLocation.VARIABLE_DEFINITION;case Rr.Kind.SCHEMA_DEFINITION:case Rr.Kind.SCHEMA_EXTENSION:return bn.DirectiveLocation.SCHEMA;case Rr.Kind.SCALAR_TYPE_DEFINITION:case Rr.Kind.SCALAR_TYPE_EXTENSION:return bn.DirectiveLocation.SCALAR;case Rr.Kind.OBJECT_TYPE_DEFINITION:case Rr.Kind.OBJECT_TYPE_EXTENSION:return bn.DirectiveLocation.OBJECT;case Rr.Kind.FIELD_DEFINITION:return bn.DirectiveLocation.FIELD_DEFINITION;case Rr.Kind.INTERFACE_TYPE_DEFINITION:case Rr.Kind.INTERFACE_TYPE_EXTENSION:return bn.DirectiveLocation.INTERFACE;case Rr.Kind.UNION_TYPE_DEFINITION:case Rr.Kind.UNION_TYPE_EXTENSION:return bn.DirectiveLocation.UNION;case Rr.Kind.ENUM_TYPE_DEFINITION:case Rr.Kind.ENUM_TYPE_EXTENSION:return bn.DirectiveLocation.ENUM;case Rr.Kind.ENUM_VALUE_DEFINITION:return bn.DirectiveLocation.ENUM_VALUE;case Rr.Kind.INPUT_OBJECT_TYPE_DEFINITION:case Rr.Kind.INPUT_OBJECT_TYPE_EXTENSION:return bn.DirectiveLocation.INPUT_OBJECT;case Rr.Kind.INPUT_VALUE_DEFINITION:{let r=e[e.length-3];return"kind"in r||(0,I0.invariant)(!1),r.kind===Rr.Kind.INPUT_OBJECT_TYPE_DEFINITION?bn.DirectiveLocation.INPUT_FIELD_DEFINITION:bn.DirectiveLocation.ARGUMENT_DEFINITION}default:(0,I0.invariant)(!1,"Unexpected kind: "+(0,M_e.inspect)(t.kind))}}function $_e(e){switch(e){case v0.OperationTypeNode.QUERY:return bn.DirectiveLocation.QUERY;case v0.OperationTypeNode.MUTATION:return bn.DirectiveLocation.MUTATION;case v0.OperationTypeNode.SUBSCRIPTION:return bn.DirectiveLocation.SUBSCRIPTION}}});var D0=D(O0=>{"use strict";d();p();f();Object.defineProperty(O0,"__esModule",{value:!0});O0.KnownFragmentNamesRule=Q_e;var G_e=at();function Q_e(e){return{FragmentSpread(t){let r=t.name.value;e.getFragment(r)||e.reportError(new G_e.GraphQLError(`Unknown fragment "${r}".`,{nodes:t.name}))}}}});var R0=D(A0=>{"use strict";d();p();f();Object.defineProperty(A0,"__esModule",{value:!0});A0.KnownTypeNamesRule=X_e;var Y_e=qc(),J_e=Mc(),z_e=at(),b0=Xl(),H_e=ma(),W_e=Co();function X_e(e){let t=e.getSchema(),r=t?t.getTypeMap():Object.create(null),n=Object.create(null);for(let a of e.getDocument().definitions)(0,b0.isTypeDefinitionNode)(a)&&(n[a.name.value]=!0);let i=[...Object.keys(r),...Object.keys(n)];return{NamedType(a,o,u,l,m){let h=a.name.value;if(!r[h]&&!n[h]){var N;let T=(N=m[2])!==null&&N!==void 0?N:u,O=T!=null&&Z_e(T);if(O&&yJ.includes(h))return;let R=(0,J_e.suggestionList)(h,O?yJ.concat(i):i);e.reportError(new z_e.GraphQLError(`Unknown type "${h}".`+(0,Y_e.didYouMean)(R),{nodes:a}))}}}}var yJ=[...W_e.specifiedScalarTypes,...H_e.introspectionTypes].map(e=>e.name);function Z_e(e){return"kind"in e&&((0,b0.isTypeSystemDefinitionNode)(e)||(0,b0.isTypeSystemExtensionNode)(e))}});var P0=D(w0=>{"use strict";d();p();f();Object.defineProperty(w0,"__esModule",{value:!0});w0.LoneAnonymousOperationRule=rSe;var eSe=at(),tSe=jt();function rSe(e){let t=0;return{Document(r){t=r.definitions.filter(n=>n.kind===tSe.Kind.OPERATION_DEFINITION).length},OperationDefinition(r){!r.name&&t>1&&e.reportError(new eSe.GraphQLError("This anonymous operation must be the only defined operation.",{nodes:r}))}}}});var L0=D(F0=>{"use strict";d();p();f();Object.defineProperty(F0,"__esModule",{value:!0});F0.LoneSchemaDefinitionRule=nSe;var NJ=at();function nSe(e){var t,r,n;let i=e.getSchema(),a=(t=(r=(n=i==null?void 0:i.astNode)!==null&&n!==void 0?n:i==null?void 0:i.getQueryType())!==null&&r!==void 0?r:i==null?void 0:i.getMutationType())!==null&&t!==void 0?t:i==null?void 0:i.getSubscriptionType(),o=0;return{SchemaDefinition(u){if(a){e.reportError(new NJ.GraphQLError("Cannot define a new schema within a schema extension.",{nodes:u}));return}o>0&&e.reportError(new NJ.GraphQLError("Must provide only one schema definition.",{nodes:u})),++o}}}});var B0=D(C0=>{"use strict";d();p();f();Object.defineProperty(C0,"__esModule",{value:!0});C0.MaxIntrospectionDepthRule=oSe;var iSe=at(),TJ=jt(),aSe=3;function oSe(e){function t(r,n=Object.create(null),i=0){if(r.kind===TJ.Kind.FRAGMENT_SPREAD){let a=r.name.value;if(n[a]===!0)return!1;let o=e.getFragment(a);if(!o)return!1;try{return n[a]=!0,t(o,n,i)}finally{n[a]=void 0}}if(r.kind===TJ.Kind.FIELD&&(r.name.value==="fields"||r.name.value==="interfaces"||r.name.value==="possibleTypes"||r.name.value==="inputFields")&&(i++,i>=aSe))return!0;if("selectionSet"in r&&r.selectionSet){for(let a of r.selectionSet.selections)if(t(a,n,i))return!0}return!1}return{Field(r){if((r.name.value==="__schema"||r.name.value==="__type")&&t(r))return e.reportError(new iSe.GraphQLError("Maximum introspection depth exceeded",{nodes:[r]})),!1}}}});var k0=D(U0=>{"use strict";d();p();f();Object.defineProperty(U0,"__esModule",{value:!0});U0.NoFragmentCyclesRule=uSe;var sSe=at();function uSe(e){let t=Object.create(null),r=[],n=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 u=e.getFragmentSpreads(a.selectionSet);if(u.length!==0){n[o]=r.length;for(let l of u){let m=l.name.value,h=n[m];if(r.push(l),h===void 0){let N=e.getFragment(m);N&&i(N)}else{let N=r.slice(h),T=N.slice(0,-1).map(O=>'"'+O.name.value+'"').join(", ");e.reportError(new sSe.GraphQLError(`Cannot spread fragment "${m}" within itself`+(T!==""?` via ${T}.`:"."),{nodes:N}))}r.pop()}n[o]=void 0}}}});var x0=D(q0=>{"use strict";d();p();f();Object.defineProperty(q0,"__esModule",{value:!0});q0.NoUndefinedVariablesRule=lSe;var cSe=at();function lSe(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(r){let n=e.getRecursiveVariableUsages(r);for(let{node:i}of n){let a=i.name.value;t[a]!==!0&&e.reportError(new cSe.GraphQLError(r.name?`Variable "$${a}" is not defined by operation "${r.name.value}".`:`Variable "$${a}" is not defined.`,{nodes:[i,r]}))}}},VariableDefinition(r){t[r.variable.name.value]=!0}}}});var j0=D(M0=>{"use strict";d();p();f();Object.defineProperty(M0,"__esModule",{value:!0});M0.NoUnusedFragmentsRule=fSe;var dSe=at();function fSe(e){let t=[],r=[];return{OperationDefinition(n){return t.push(n),!1},FragmentDefinition(n){return r.push(n),!1},Document:{leave(){let n=Object.create(null);for(let i of t)for(let a of e.getRecursivelyReferencedFragments(i))n[a.name.value]=!0;for(let i of r){let a=i.name.value;n[a]!==!0&&e.reportError(new dSe.GraphQLError(`Fragment "${a}" is never used.`,{nodes:i}))}}}}}});var K0=D(V0=>{"use strict";d();p();f();Object.defineProperty(V0,"__esModule",{value:!0});V0.NoUnusedVariablesRule=mSe;var pSe=at();function mSe(e){let t=[];return{OperationDefinition:{enter(){t=[]},leave(r){let n=Object.create(null),i=e.getRecursiveVariableUsages(r);for(let{node:a}of i)n[a.name.value]=!0;for(let a of t){let o=a.variable.name.value;n[o]!==!0&&e.reportError(new pSe.GraphQLError(r.name?`Variable "$${o}" is never used in operation "${r.name.value}".`:`Variable "$${o}" is never used.`,{nodes:a}))}}},VariableDefinition(r){t.push(r)}}}});var Q0=D(G0=>{"use strict";d();p();f();Object.defineProperty(G0,"__esModule",{value:!0});G0.sortValueNode=$0;var hSe=ph(),ws=jt();function $0(e){switch(e.kind){case ws.Kind.OBJECT:return G(q({},e),{fields:ySe(e.fields)});case ws.Kind.LIST:return G(q({},e),{values:e.values.map($0)});case ws.Kind.INT:case ws.Kind.FLOAT:case ws.Kind.STRING:case ws.Kind.BOOLEAN:case ws.Kind.NULL:case ws.Kind.ENUM:case ws.Kind.VARIABLE:return e}}function ySe(e){return e.map(t=>G(q({},t),{value:$0(t.value)})).sort((t,r)=>(0,hSe.naturalCompare)(t.name.value,r.name.value))}});var Z0=D(X0=>{"use strict";d();p();f();Object.defineProperty(X0,"__esModule",{value:!0});X0.OverlappingFieldsCanBeMergedRule=gSe;var EJ=ur(),NSe=at(),Y0=jt(),TSe=Gi(),Si=Vt(),ESe=Q0(),IJ=Bo();function vJ(e){return Array.isArray(e)?e.map(([t,r])=>`subfields "${t}" conflict because `+vJ(r)).join(" and "):e}function gSe(e){let t=new H0,r=new Map;return{SelectionSet(n){let i=ISe(e,r,t,e.getParentType(),n);for(let[[a,o],u,l]of i){let m=vJ(o);e.reportError(new NSe.GraphQLError(`Fields "${a}" conflict because ${m}. Use different aliases on the fields to fetch both if this was intentional.`,{nodes:u.concat(l)}))}}}}function ISe(e,t,r,n,i){let a=[],[o,u]=Eg(e,t,n,i);if(_Se(e,a,t,r,o),u.length!==0)for(let l=0;l1)for(let u=0;u[a.value,o]));return r.every(a=>{let o=a.value,u=i.get(a.name.value);return u===void 0?!1:gJ(o)===gJ(u)})}function gJ(e){return(0,TSe.print)((0,ESe.sortValueNode)(e))}function J0(e,t){return(0,Si.isListType)(e)?(0,Si.isListType)(t)?J0(e.ofType,t.ofType):!0:(0,Si.isListType)(t)?!0:(0,Si.isNonNullType)(e)?(0,Si.isNonNullType)(t)?J0(e.ofType,t.ofType):!0:(0,Si.isNonNullType)(t)?!0:(0,Si.isLeafType)(e)||(0,Si.isLeafType)(t)?e!==t:!1}function Eg(e,t,r,n){let i=t.get(n);if(i)return i;let a=Object.create(null),o=Object.create(null);SJ(e,r,n,a,o);let u=[a,Object.keys(o)];return t.set(n,u),u}function z0(e,t,r){let n=t.get(r.selectionSet);if(n)return n;let i=(0,IJ.typeFromAST)(e.getSchema(),r.typeCondition);return Eg(e,t,i,r.selectionSet)}function SJ(e,t,r,n,i){for(let a of r.selections)switch(a.kind){case Y0.Kind.FIELD:{let o=a.name.value,u;((0,Si.isObjectType)(t)||(0,Si.isInterfaceType)(t))&&(u=t.getFields()[o]);let l=a.alias?a.alias.value:o;n[l]||(n[l]=[]),n[l].push([t,a,u]);break}case Y0.Kind.FRAGMENT_SPREAD:i[a.name.value]=!0;break;case Y0.Kind.INLINE_FRAGMENT:{let o=a.typeCondition,u=o?(0,IJ.typeFromAST)(e.getSchema(),o):t;SJ(e,u,a.selectionSet,n,i);break}}}function OSe(e,t,r,n){if(e.length>0)return[[t,e.map(([i])=>i)],[r,...e.map(([,i])=>i).flat()],[n,...e.map(([,,i])=>i).flat()]]}var H0=class{constructor(){this._data=new Map}has(t,r,n){var i;let[a,o]=t{"use strict";d();p();f();Object.defineProperty(tA,"__esModule",{value:!0});tA.PossibleFragmentSpreadsRule=bSe;var gg=ur(),OJ=at(),eA=Vt(),DJ=Eh(),DSe=Bo();function bSe(e){return{InlineFragment(t){let r=e.getType(),n=e.getParentType();if((0,eA.isCompositeType)(r)&&(0,eA.isCompositeType)(n)&&!(0,DJ.doTypesOverlap)(e.getSchema(),r,n)){let i=(0,gg.inspect)(n),a=(0,gg.inspect)(r);e.reportError(new OJ.GraphQLError(`Fragment cannot be spread here as objects of type "${i}" can never be of type "${a}".`,{nodes:t}))}},FragmentSpread(t){let r=t.name.value,n=ASe(e,r),i=e.getParentType();if(n&&i&&!(0,DJ.doTypesOverlap)(e.getSchema(),n,i)){let a=(0,gg.inspect)(i),o=(0,gg.inspect)(n);e.reportError(new OJ.GraphQLError(`Fragment "${r}" cannot be spread here as objects of type "${a}" can never be of type "${o}".`,{nodes:t}))}}}}function ASe(e,t){let r=e.getFragment(t);if(r){let n=(0,DSe.typeFromAST)(e.getSchema(),r.typeCondition);if((0,eA.isCompositeType)(n))return n}}});var iA=D(nA=>{"use strict";d();p();f();Object.defineProperty(nA,"__esModule",{value:!0});nA.PossibleTypeExtensionsRule=FSe;var RSe=qc(),AJ=ur(),RJ=Xn(),wSe=Mc(),bJ=at(),Fr=jt(),PSe=Xl(),Mf=Vt();function FSe(e){let t=e.getSchema(),r=Object.create(null);for(let i of e.getDocument().definitions)(0,PSe.isTypeDefinitionNode)(i)&&(r[i.name.value]=i);return{ScalarTypeExtension:n,ObjectTypeExtension:n,InterfaceTypeExtension:n,UnionTypeExtension:n,EnumTypeExtension:n,InputObjectTypeExtension:n};function n(i){let a=i.name.value,o=r[a],u=t==null?void 0:t.getType(a),l;if(o?l=LSe[o.kind]:u&&(l=CSe(u)),l){if(l!==i.kind){let m=BSe(i.kind);e.reportError(new bJ.GraphQLError(`Cannot extend non-${m} type "${a}".`,{nodes:o?[o,i]:i}))}}else{let m=Object.keys(q(q({},r),t==null?void 0:t.getTypeMap())),h=(0,wSe.suggestionList)(a,m);e.reportError(new bJ.GraphQLError(`Cannot extend type "${a}" because it is not defined.`+(0,RSe.didYouMean)(h),{nodes:i.name}))}}}var LSe={[Fr.Kind.SCALAR_TYPE_DEFINITION]:Fr.Kind.SCALAR_TYPE_EXTENSION,[Fr.Kind.OBJECT_TYPE_DEFINITION]:Fr.Kind.OBJECT_TYPE_EXTENSION,[Fr.Kind.INTERFACE_TYPE_DEFINITION]:Fr.Kind.INTERFACE_TYPE_EXTENSION,[Fr.Kind.UNION_TYPE_DEFINITION]:Fr.Kind.UNION_TYPE_EXTENSION,[Fr.Kind.ENUM_TYPE_DEFINITION]:Fr.Kind.ENUM_TYPE_EXTENSION,[Fr.Kind.INPUT_OBJECT_TYPE_DEFINITION]:Fr.Kind.INPUT_OBJECT_TYPE_EXTENSION};function CSe(e){if((0,Mf.isScalarType)(e))return Fr.Kind.SCALAR_TYPE_EXTENSION;if((0,Mf.isObjectType)(e))return Fr.Kind.OBJECT_TYPE_EXTENSION;if((0,Mf.isInterfaceType)(e))return Fr.Kind.INTERFACE_TYPE_EXTENSION;if((0,Mf.isUnionType)(e))return Fr.Kind.UNION_TYPE_EXTENSION;if((0,Mf.isEnumType)(e))return Fr.Kind.ENUM_TYPE_EXTENSION;if((0,Mf.isInputObjectType)(e))return Fr.Kind.INPUT_OBJECT_TYPE_EXTENSION;(0,RJ.invariant)(!1,"Unexpected type: "+(0,AJ.inspect)(e))}function BSe(e){switch(e){case Fr.Kind.SCALAR_TYPE_EXTENSION:return"scalar";case Fr.Kind.OBJECT_TYPE_EXTENSION:return"object";case Fr.Kind.INTERFACE_TYPE_EXTENSION:return"interface";case Fr.Kind.UNION_TYPE_EXTENSION:return"union";case Fr.Kind.ENUM_TYPE_EXTENSION:return"enum";case Fr.Kind.INPUT_OBJECT_TYPE_EXTENSION:return"input object";default:(0,RJ.invariant)(!1,"Unexpected kind: "+(0,AJ.inspect)(e))}}});var oA=D(Ig=>{"use strict";d();p();f();Object.defineProperty(Ig,"__esModule",{value:!0});Ig.ProvidedRequiredArgumentsOnDirectivesRule=CJ;Ig.ProvidedRequiredArgumentsRule=qSe;var PJ=ur(),wJ=xc(),FJ=at(),LJ=jt(),USe=Gi(),aA=Vt(),kSe=_i();function qSe(e){return G(q({},CJ(e)),{Field:{leave(t){var r;let n=e.getFieldDef();if(!n)return!1;let i=new Set((r=t.arguments)===null||r===void 0?void 0:r.map(a=>a.name.value));for(let a of n.args)if(!i.has(a.name)&&(0,aA.isRequiredArgument)(a)){let o=(0,PJ.inspect)(a.type);e.reportError(new FJ.GraphQLError(`Field "${n.name}" argument "${a.name}" of type "${o}" is required, but it was not provided.`,{nodes:t}))}}}})}function CJ(e){var t;let r=Object.create(null),n=e.getSchema(),i=(t=n==null?void 0:n.getDirectives())!==null&&t!==void 0?t:kSe.specifiedDirectives;for(let u of i)r[u.name]=(0,wJ.keyMap)(u.args.filter(aA.isRequiredArgument),l=>l.name);let a=e.getDocument().definitions;for(let u of a)if(u.kind===LJ.Kind.DIRECTIVE_DEFINITION){var o;let l=(o=u.arguments)!==null&&o!==void 0?o:[];r[u.name.value]=(0,wJ.keyMap)(l.filter(xSe),m=>m.name.value)}return{Directive:{leave(u){let l=u.name.value,m=r[l];if(m){var h;let N=(h=u.arguments)!==null&&h!==void 0?h:[],T=new Set(N.map(O=>O.name.value));for(let[O,R]of Object.entries(m))if(!T.has(O)){let C=(0,aA.isType)(R.type)?(0,PJ.inspect)(R.type):(0,USe.print)(R.type);e.reportError(new FJ.GraphQLError(`Directive "@${l}" argument "${O}" of type "${C}" is required, but it was not provided.`,{nodes:u}))}}}}}}function xSe(e){return e.type.kind===LJ.Kind.NON_NULL_TYPE&&e.defaultValue==null}});var uA=D(sA=>{"use strict";d();p();f();Object.defineProperty(sA,"__esModule",{value:!0});sA.ScalarLeafsRule=MSe;var BJ=ur(),UJ=at(),kJ=Vt();function MSe(e){return{Field(t){let r=e.getType(),n=t.selectionSet;if(r){if((0,kJ.isLeafType)((0,kJ.getNamedType)(r))){if(n){let i=t.name.value,a=(0,BJ.inspect)(r);e.reportError(new UJ.GraphQLError(`Field "${i}" must not have a selection since type "${a}" has no subfields.`,{nodes:n}))}}else if(!n){let i=t.name.value,a=(0,BJ.inspect)(r);e.reportError(new UJ.GraphQLError(`Field "${i}" of type "${a}" must have a selection of subfields. Did you mean "${i} { ... }"?`,{nodes:t}))}}}}}});var lA=D(cA=>{"use strict";d();p();f();Object.defineProperty(cA,"__esModule",{value:!0});cA.printPathArray=jSe;function jSe(e){return e.map(t=>typeof t=="number"?"["+t.toString()+"]":"."+t).join("")}});var Fh=D(vg=>{"use strict";d();p();f();Object.defineProperty(vg,"__esModule",{value:!0});vg.addPath=VSe;vg.pathToArray=KSe;function VSe(e,t,r){return{prev:e,key:t,typename:r}}function KSe(e){let t=[],r=e;for(;r;)t.push(r.key),r=r.prev;return t.reverse()}});var fA=D(dA=>{"use strict";d();p();f();Object.defineProperty(dA,"__esModule",{value:!0});dA.coerceInputValue=HSe;var $Se=qc(),_g=ur(),GSe=Xn(),QSe=dg(),YSe=wo(),eo=Fh(),JSe=lA(),zSe=Mc(),Ps=at(),Lh=Vt();function HSe(e,t,r=WSe){return Ch(e,t,r,void 0)}function WSe(e,t,r){let n="Invalid value "+(0,_g.inspect)(t);throw e.length>0&&(n+=` at "value${(0,JSe.printPathArray)(e)}"`),r.message=n+": "+r.message,r}function Ch(e,t,r,n){if((0,Lh.isNonNullType)(t)){if(e!=null)return Ch(e,t.ofType,r,n);r((0,eo.pathToArray)(n),e,new Ps.GraphQLError(`Expected non-nullable type "${(0,_g.inspect)(t)}" not to be null.`));return}if(e==null)return null;if((0,Lh.isListType)(t)){let i=t.ofType;return(0,QSe.isIterableObject)(e)?Array.from(e,(a,o)=>{let u=(0,eo.addPath)(n,o,void 0);return Ch(a,i,r,u)}):[Ch(e,i,r,n)]}if((0,Lh.isInputObjectType)(t)){if(!(0,YSe.isObjectLike)(e)){r((0,eo.pathToArray)(n),e,new Ps.GraphQLError(`Expected type "${t.name}" to be an object.`));return}let i={},a=t.getFields();for(let o of Object.values(a)){let u=e[o.name];if(u===void 0){if(o.defaultValue!==void 0)i[o.name]=o.defaultValue;else if((0,Lh.isNonNullType)(o.type)){let l=(0,_g.inspect)(o.type);r((0,eo.pathToArray)(n),e,new Ps.GraphQLError(`Field "${o.name}" of required type "${l}" was not provided.`))}continue}i[o.name]=Ch(u,o.type,r,(0,eo.addPath)(n,o.name,t.name))}for(let o of Object.keys(e))if(!a[o]){let u=(0,zSe.suggestionList)(o,Object.keys(t.getFields()));r((0,eo.pathToArray)(n),e,new Ps.GraphQLError(`Field "${o}" is not defined by type "${t.name}".`+(0,$Se.didYouMean)(u)))}if(t.isOneOf){let o=Object.keys(i);o.length!==1&&r((0,eo.pathToArray)(n),e,new Ps.GraphQLError(`Exactly one key must be specified for OneOf type "${t.name}".`));let u=o[0],l=i[u];l===null&&r((0,eo.pathToArray)(n).concat(u),l,new Ps.GraphQLError(`Field "${u}" must be non-null.`))}return i}if((0,Lh.isLeafType)(t)){let i;try{i=t.parseValue(e)}catch(a){a instanceof Ps.GraphQLError?r((0,eo.pathToArray)(n),e,a):r((0,eo.pathToArray)(n),e,new Ps.GraphQLError(`Expected type "${t.name}". `+a.message,{originalError:a}));return}return i===void 0&&r((0,eo.pathToArray)(n),e,new Ps.GraphQLError(`Expected type "${t.name}".`)),i}(0,GSe.invariant)(!1,"Unexpected input type: "+(0,_g.inspect)(t))}});var Uh=D(pA=>{"use strict";d();p();f();Object.defineProperty(pA,"__esModule",{value:!0});pA.valueFromAST=Bh;var XSe=ur(),ZSe=Xn(),eOe=xc(),jf=jt(),Zl=Vt();function Bh(e,t,r){if(e){if(e.kind===jf.Kind.VARIABLE){let n=e.name.value;if(r==null||r[n]===void 0)return;let i=r[n];return i===null&&(0,Zl.isNonNullType)(t)?void 0:i}if((0,Zl.isNonNullType)(t))return e.kind===jf.Kind.NULL?void 0:Bh(e,t.ofType,r);if(e.kind===jf.Kind.NULL)return null;if((0,Zl.isListType)(t)){let n=t.ofType;if(e.kind===jf.Kind.LIST){let a=[];for(let o of e.values)if(qJ(o,r)){if((0,Zl.isNonNullType)(n))return;a.push(null)}else{let u=Bh(o,n,r);if(u===void 0)return;a.push(u)}return a}let i=Bh(e,n,r);return i===void 0?void 0:[i]}if((0,Zl.isInputObjectType)(t)){if(e.kind!==jf.Kind.OBJECT)return;let n=Object.create(null),i=(0,eOe.keyMap)(e.fields,a=>a.name.value);for(let a of Object.values(t.getFields())){let o=i[a.name];if(!o||qJ(o.value,r)){if(a.defaultValue!==void 0)n[a.name]=a.defaultValue;else if((0,Zl.isNonNullType)(a.type))return;continue}let u=Bh(o.value,a.type,r);if(u===void 0)return;n[a.name]=u}if(t.isOneOf){let a=Object.keys(n);if(a.length!==1||n[a[0]]===null)return}return n}if((0,Zl.isLeafType)(t)){let n;try{n=t.parseLiteral(e,r)}catch(i){return}return n===void 0?void 0:n}(0,ZSe.invariant)(!1,"Unexpected input type: "+(0,XSe.inspect)(t))}}function qJ(e,t){return e.kind===jf.Kind.VARIABLE&&(t==null||t[e.name.value]===void 0)}});var $f=D(kh=>{"use strict";d();p();f();Object.defineProperty(kh,"__esModule",{value:!0});kh.getArgumentValues=VJ;kh.getDirectiveValues=sOe;kh.getVariableValues=aOe;var Vf=ur(),tOe=xc(),rOe=lA(),Fs=at(),xJ=jt(),MJ=Gi(),Kf=Vt(),nOe=fA(),iOe=Bo(),jJ=Uh();function aOe(e,t,r,n){let i=[],a=n==null?void 0:n.maxErrors;try{let o=oOe(e,t,r,u=>{if(a!=null&&i.length>=a)throw new Fs.GraphQLError("Too many errors processing variables, error limit reached. Execution aborted.");i.push(u)});if(i.length===0)return{coerced:o}}catch(o){i.push(o)}return{errors:i}}function oOe(e,t,r,n){let i={};for(let a of t){let o=a.variable.name.value,u=(0,iOe.typeFromAST)(e,a.type);if(!(0,Kf.isInputType)(u)){let m=(0,MJ.print)(a.type);n(new Fs.GraphQLError(`Variable "$${o}" expected value of type "${m}" which cannot be used as an input type.`,{nodes:a.type}));continue}if(!KJ(r,o)){if(a.defaultValue)i[o]=(0,jJ.valueFromAST)(a.defaultValue,u);else if((0,Kf.isNonNullType)(u)){let m=(0,Vf.inspect)(u);n(new Fs.GraphQLError(`Variable "$${o}" of required type "${m}" was not provided.`,{nodes:a}))}continue}let l=r[o];if(l===null&&(0,Kf.isNonNullType)(u)){let m=(0,Vf.inspect)(u);n(new Fs.GraphQLError(`Variable "$${o}" of non-null type "${m}" must not be null.`,{nodes:a}));continue}i[o]=(0,nOe.coerceInputValue)(l,u,(m,h,N)=>{let T=`Variable "$${o}" got invalid value `+(0,Vf.inspect)(h);m.length>0&&(T+=` at "${o}${(0,rOe.printPathArray)(m)}"`),n(new Fs.GraphQLError(T+"; "+N.message,{nodes:a,originalError:N}))})}return i}function VJ(e,t,r){var n;let i={},a=(n=t.arguments)!==null&&n!==void 0?n:[],o=(0,tOe.keyMap)(a,u=>u.name.value);for(let u of e.args){let l=u.name,m=u.type,h=o[l];if(!h){if(u.defaultValue!==void 0)i[l]=u.defaultValue;else if((0,Kf.isNonNullType)(m))throw new Fs.GraphQLError(`Argument "${l}" of required type "${(0,Vf.inspect)(m)}" was not provided.`,{nodes:t});continue}let N=h.value,T=N.kind===xJ.Kind.NULL;if(N.kind===xJ.Kind.VARIABLE){let R=N.name.value;if(r==null||!KJ(r,R)){if(u.defaultValue!==void 0)i[l]=u.defaultValue;else if((0,Kf.isNonNullType)(m))throw new Fs.GraphQLError(`Argument "${l}" of required type "${(0,Vf.inspect)(m)}" was provided the variable "$${R}" which was not provided a runtime value.`,{nodes:N});continue}T=r[R]==null}if(T&&(0,Kf.isNonNullType)(m))throw new Fs.GraphQLError(`Argument "${l}" of non-null type "${(0,Vf.inspect)(m)}" must not be null.`,{nodes:N});let O=(0,jJ.valueFromAST)(N,m,r);if(O===void 0)throw new Fs.GraphQLError(`Argument "${l}" has invalid value ${(0,MJ.print)(N)}.`,{nodes:N});i[l]=O}return i}function sOe(e,t,r){var n;let i=(n=t.directives)===null||n===void 0?void 0:n.find(a=>a.name.value===e.name);if(i)return VJ(e,i,r)}function KJ(e,t){return Object.prototype.hasOwnProperty.call(e,t)}});var Dg=D(Og=>{"use strict";d();p();f();Object.defineProperty(Og,"__esModule",{value:!0});Og.collectFields=lOe;Og.collectSubfields=dOe;var mA=jt(),uOe=Vt(),$J=_i(),cOe=Bo(),GJ=$f();function lOe(e,t,r,n,i){let a=new Map;return Sg(e,t,r,n,i,a,new Set),a}function dOe(e,t,r,n,i){let a=new Map,o=new Set;for(let u of i)u.selectionSet&&Sg(e,t,r,n,u.selectionSet,a,o);return a}function Sg(e,t,r,n,i,a,o){for(let u of i.selections)switch(u.kind){case mA.Kind.FIELD:{if(!hA(r,u))continue;let l=fOe(u),m=a.get(l);m!==void 0?m.push(u):a.set(l,[u]);break}case mA.Kind.INLINE_FRAGMENT:{if(!hA(r,u)||!QJ(e,u,n))continue;Sg(e,t,r,n,u.selectionSet,a,o);break}case mA.Kind.FRAGMENT_SPREAD:{let l=u.name.value;if(o.has(l)||!hA(r,u))continue;o.add(l);let m=t[l];if(!m||!QJ(e,m,n))continue;Sg(e,t,r,n,m.selectionSet,a,o);break}}}function hA(e,t){let r=(0,GJ.getDirectiveValues)($J.GraphQLSkipDirective,t,e);if((r==null?void 0:r.if)===!0)return!1;let n=(0,GJ.getDirectiveValues)($J.GraphQLIncludeDirective,t,e);return(n==null?void 0:n.if)!==!1}function QJ(e,t,r){let n=t.typeCondition;if(!n)return!0;let i=(0,cOe.typeFromAST)(e,n);return i===r?!0:(0,uOe.isAbstractType)(i)?e.isSubType(i,r):!1}function fOe(e){return e.alias?e.alias.value:e.name.value}});var NA=D(yA=>{"use strict";d();p();f();Object.defineProperty(yA,"__esModule",{value:!0});yA.SingleFieldSubscriptionsRule=hOe;var YJ=at(),pOe=jt(),mOe=Dg();function hOe(e){return{OperationDefinition(t){if(t.operation==="subscription"){let r=e.getSchema(),n=r.getSubscriptionType();if(n){let i=t.name?t.name.value:null,a=Object.create(null),o=e.getDocument(),u=Object.create(null);for(let m of o.definitions)m.kind===pOe.Kind.FRAGMENT_DEFINITION&&(u[m.name.value]=m);let l=(0,mOe.collectFields)(r,u,a,n,t.selectionSet);if(l.size>1){let N=[...l.values()].slice(1).flat();e.reportError(new YJ.GraphQLError(i!=null?`Subscription "${i}" must select only one top level field.`:"Anonymous Subscription must select only one top level field.",{nodes:N}))}for(let m of l.values())m[0].name.value.startsWith("__")&&e.reportError(new YJ.GraphQLError(i!=null?`Subscription "${i}" must not select an introspection top level field.`:"Anonymous Subscription must not select an introspection top level field.",{nodes:m}))}}}}}});var bg=D(TA=>{"use strict";d();p();f();Object.defineProperty(TA,"__esModule",{value:!0});TA.groupBy=yOe;function yOe(e,t){let r=new Map;for(let n of e){let i=t(n),a=r.get(i);a===void 0?r.set(i,[n]):a.push(n)}return r}});var gA=D(EA=>{"use strict";d();p();f();Object.defineProperty(EA,"__esModule",{value:!0});EA.UniqueArgumentDefinitionNamesRule=EOe;var NOe=bg(),TOe=at();function EOe(e){return{DirectiveDefinition(n){var i;let a=(i=n.arguments)!==null&&i!==void 0?i:[];return r(`@${n.name.value}`,a)},InterfaceTypeDefinition:t,InterfaceTypeExtension:t,ObjectTypeDefinition:t,ObjectTypeExtension:t};function t(n){var i;let a=n.name.value,o=(i=n.fields)!==null&&i!==void 0?i:[];for(let l of o){var u;let m=l.name.value,h=(u=l.arguments)!==null&&u!==void 0?u:[];r(`${a}.${m}`,h)}return!1}function r(n,i){let a=(0,NOe.groupBy)(i,o=>o.name.value);for(let[o,u]of a)u.length>1&&e.reportError(new TOe.GraphQLError(`Argument "${n}(${o}:)" can only be defined once.`,{nodes:u.map(l=>l.name)}));return!1}}});var vA=D(IA=>{"use strict";d();p();f();Object.defineProperty(IA,"__esModule",{value:!0});IA.UniqueArgumentNamesRule=vOe;var gOe=bg(),IOe=at();function vOe(e){return{Field:t,Directive:t};function t(r){var n;let i=(n=r.arguments)!==null&&n!==void 0?n:[],a=(0,gOe.groupBy)(i,o=>o.name.value);for(let[o,u]of a)u.length>1&&e.reportError(new IOe.GraphQLError(`There can be only one argument named "${o}".`,{nodes:u.map(l=>l.name)}))}}});var SA=D(_A=>{"use strict";d();p();f();Object.defineProperty(_A,"__esModule",{value:!0});_A.UniqueDirectiveNamesRule=_Oe;var JJ=at();function _Oe(e){let t=Object.create(null),r=e.getSchema();return{DirectiveDefinition(n){let i=n.name.value;if(r!=null&&r.getDirective(i)){e.reportError(new JJ.GraphQLError(`Directive "@${i}" already exists in the schema. It cannot be redefined.`,{nodes:n.name}));return}return t[i]?e.reportError(new JJ.GraphQLError(`There can be only one directive named "@${i}".`,{nodes:[t[i],n.name]})):t[i]=n.name,!1}}}});var bA=D(DA=>{"use strict";d();p();f();Object.defineProperty(DA,"__esModule",{value:!0});DA.UniqueDirectivesPerLocationRule=DOe;var SOe=at(),OA=jt(),zJ=Xl(),OOe=_i();function DOe(e){let t=Object.create(null),r=e.getSchema(),n=r?r.getDirectives():OOe.specifiedDirectives;for(let u of n)t[u.name]=!u.isRepeatable;let i=e.getDocument().definitions;for(let u of i)u.kind===OA.Kind.DIRECTIVE_DEFINITION&&(t[u.name.value]=!u.repeatable);let a=Object.create(null),o=Object.create(null);return{enter(u){if(!("directives"in u)||!u.directives)return;let l;if(u.kind===OA.Kind.SCHEMA_DEFINITION||u.kind===OA.Kind.SCHEMA_EXTENSION)l=a;else if((0,zJ.isTypeDefinitionNode)(u)||(0,zJ.isTypeExtensionNode)(u)){let m=u.name.value;l=o[m],l===void 0&&(o[m]=l=Object.create(null))}else l=Object.create(null);for(let m of u.directives){let h=m.name.value;t[h]&&(l[h]?e.reportError(new SOe.GraphQLError(`The directive "@${h}" can only be used once at this location.`,{nodes:[l[h],m]})):l[h]=m)}}}}});var RA=D(AA=>{"use strict";d();p();f();Object.defineProperty(AA,"__esModule",{value:!0});AA.UniqueEnumValueNamesRule=AOe;var HJ=at(),bOe=Vt();function AOe(e){let t=e.getSchema(),r=t?t.getTypeMap():Object.create(null),n=Object.create(null);return{EnumTypeDefinition:i,EnumTypeExtension:i};function i(a){var o;let u=a.name.value;n[u]||(n[u]=Object.create(null));let l=(o=a.values)!==null&&o!==void 0?o:[],m=n[u];for(let h of l){let N=h.name.value,T=r[u];(0,bOe.isEnumType)(T)&&T.getValue(N)?e.reportError(new HJ.GraphQLError(`Enum value "${u}.${N}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:h.name})):m[N]?e.reportError(new HJ.GraphQLError(`Enum value "${u}.${N}" can only be defined once.`,{nodes:[m[N],h.name]})):m[N]=h.name}return!1}}});var FA=D(PA=>{"use strict";d();p();f();Object.defineProperty(PA,"__esModule",{value:!0});PA.UniqueFieldDefinitionNamesRule=ROe;var WJ=at(),wA=Vt();function ROe(e){let t=e.getSchema(),r=t?t.getTypeMap():Object.create(null),n=Object.create(null);return{InputObjectTypeDefinition:i,InputObjectTypeExtension:i,InterfaceTypeDefinition:i,InterfaceTypeExtension:i,ObjectTypeDefinition:i,ObjectTypeExtension:i};function i(a){var o;let u=a.name.value;n[u]||(n[u]=Object.create(null));let l=(o=a.fields)!==null&&o!==void 0?o:[],m=n[u];for(let h of l){let N=h.name.value;wOe(r[u],N)?e.reportError(new WJ.GraphQLError(`Field "${u}.${N}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:h.name})):m[N]?e.reportError(new WJ.GraphQLError(`Field "${u}.${N}" can only be defined once.`,{nodes:[m[N],h.name]})):m[N]=h.name}return!1}}function wOe(e,t){return(0,wA.isObjectType)(e)||(0,wA.isInterfaceType)(e)||(0,wA.isInputObjectType)(e)?e.getFields()[t]!=null:!1}});var CA=D(LA=>{"use strict";d();p();f();Object.defineProperty(LA,"__esModule",{value:!0});LA.UniqueFragmentNamesRule=FOe;var POe=at();function FOe(e){let t=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(r){let n=r.name.value;return t[n]?e.reportError(new POe.GraphQLError(`There can be only one fragment named "${n}".`,{nodes:[t[n],r.name]})):t[n]=r.name,!1}}}});var UA=D(BA=>{"use strict";d();p();f();Object.defineProperty(BA,"__esModule",{value:!0});BA.UniqueInputFieldNamesRule=BOe;var LOe=Xn(),COe=at();function BOe(e){let t=[],r=Object.create(null);return{ObjectValue:{enter(){t.push(r),r=Object.create(null)},leave(){let n=t.pop();n||(0,LOe.invariant)(!1),r=n}},ObjectField(n){let i=n.name.value;r[i]?e.reportError(new COe.GraphQLError(`There can be only one input field named "${i}".`,{nodes:[r[i],n.name]})):r[i]=n.name}}}});var qA=D(kA=>{"use strict";d();p();f();Object.defineProperty(kA,"__esModule",{value:!0});kA.UniqueOperationNamesRule=kOe;var UOe=at();function kOe(e){let t=Object.create(null);return{OperationDefinition(r){let n=r.name;return n&&(t[n.value]?e.reportError(new UOe.GraphQLError(`There can be only one operation named "${n.value}".`,{nodes:[t[n.value],n]})):t[n.value]=n),!1},FragmentDefinition:()=>!1}}});var MA=D(xA=>{"use strict";d();p();f();Object.defineProperty(xA,"__esModule",{value:!0});xA.UniqueOperationTypesRule=qOe;var XJ=at();function qOe(e){let t=e.getSchema(),r=Object.create(null),n=t?{query:t.getQueryType(),mutation:t.getMutationType(),subscription:t.getSubscriptionType()}:{};return{SchemaDefinition:i,SchemaExtension:i};function i(a){var o;let u=(o=a.operationTypes)!==null&&o!==void 0?o:[];for(let l of u){let m=l.operation,h=r[m];n[m]?e.reportError(new XJ.GraphQLError(`Type for ${m} already defined in the schema. It cannot be redefined.`,{nodes:l})):h?e.reportError(new XJ.GraphQLError(`There can be only one ${m} type in schema.`,{nodes:[h,l]})):r[m]=l}return!1}}});var VA=D(jA=>{"use strict";d();p();f();Object.defineProperty(jA,"__esModule",{value:!0});jA.UniqueTypeNamesRule=xOe;var ZJ=at();function xOe(e){let t=Object.create(null),r=e.getSchema();return{ScalarTypeDefinition:n,ObjectTypeDefinition:n,InterfaceTypeDefinition:n,UnionTypeDefinition:n,EnumTypeDefinition:n,InputObjectTypeDefinition:n};function n(i){let a=i.name.value;if(r!=null&&r.getType(a)){e.reportError(new ZJ.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 ZJ.GraphQLError(`There can be only one type named "${a}".`,{nodes:[t[a],i.name]})):t[a]=i.name,!1}}});var $A=D(KA=>{"use strict";d();p();f();Object.defineProperty(KA,"__esModule",{value:!0});KA.UniqueVariableNamesRule=VOe;var MOe=bg(),jOe=at();function VOe(e){return{OperationDefinition(t){var r;let n=(r=t.variableDefinitions)!==null&&r!==void 0?r:[],i=(0,MOe.groupBy)(n,a=>a.variable.name.value);for(let[a,o]of i)o.length>1&&e.reportError(new jOe.GraphQLError(`There can be only one variable named "$${a}".`,{nodes:o.map(u=>u.variable.name)}))}}}});var YA=D(QA=>{"use strict";d();p();f();Object.defineProperty(QA,"__esModule",{value:!0});QA.ValuesOfCorrectTypeRule=QOe;var KOe=qc(),qh=ur(),$Oe=xc(),GOe=Mc(),ko=at(),GA=jt(),Ag=Gi(),Uo=Vt();function QOe(e){let t={};return{OperationDefinition:{enter(){t={}}},VariableDefinition(r){t[r.variable.name.value]=r},ListValue(r){let n=(0,Uo.getNullableType)(e.getParentInputType());if(!(0,Uo.isListType)(n))return ed(e,r),!1},ObjectValue(r){let n=(0,Uo.getNamedType)(e.getInputType());if(!(0,Uo.isInputObjectType)(n))return ed(e,r),!1;let i=(0,$Oe.keyMap)(r.fields,a=>a.name.value);for(let a of Object.values(n.getFields()))if(!i[a.name]&&(0,Uo.isRequiredInputField)(a)){let u=(0,qh.inspect)(a.type);e.reportError(new ko.GraphQLError(`Field "${n.name}.${a.name}" of required type "${u}" was not provided.`,{nodes:r}))}n.isOneOf&&YOe(e,r,n,i,t)},ObjectField(r){let n=(0,Uo.getNamedType)(e.getParentInputType());if(!e.getInputType()&&(0,Uo.isInputObjectType)(n)){let a=(0,GOe.suggestionList)(r.name.value,Object.keys(n.getFields()));e.reportError(new ko.GraphQLError(`Field "${r.name.value}" is not defined by type "${n.name}".`+(0,KOe.didYouMean)(a),{nodes:r}))}},NullValue(r){let n=e.getInputType();(0,Uo.isNonNullType)(n)&&e.reportError(new ko.GraphQLError(`Expected value of type "${(0,qh.inspect)(n)}", found ${(0,Ag.print)(r)}.`,{nodes:r}))},EnumValue:r=>ed(e,r),IntValue:r=>ed(e,r),FloatValue:r=>ed(e,r),StringValue:r=>ed(e,r),BooleanValue:r=>ed(e,r)}}function ed(e,t){let r=e.getInputType();if(!r)return;let n=(0,Uo.getNamedType)(r);if(!(0,Uo.isLeafType)(n)){let i=(0,qh.inspect)(r);e.reportError(new ko.GraphQLError(`Expected value of type "${i}", found ${(0,Ag.print)(t)}.`,{nodes:t}));return}try{if(n.parseLiteral(t,void 0)===void 0){let a=(0,qh.inspect)(r);e.reportError(new ko.GraphQLError(`Expected value of type "${a}", found ${(0,Ag.print)(t)}.`,{nodes:t}))}}catch(i){let a=(0,qh.inspect)(r);i instanceof ko.GraphQLError?e.reportError(i):e.reportError(new ko.GraphQLError(`Expected value of type "${a}", found ${(0,Ag.print)(t)}; `+i.message,{nodes:t,originalError:i}))}}function YOe(e,t,r,n,i){var a;let o=Object.keys(n);if(o.length!==1){e.reportError(new ko.GraphQLError(`OneOf Input Object "${r.name}" must specify exactly one key.`,{nodes:[t]}));return}let l=(a=n[o[0]])===null||a===void 0?void 0:a.value,m=!l||l.kind===GA.Kind.NULL,h=(l==null?void 0:l.kind)===GA.Kind.VARIABLE;if(m){e.reportError(new ko.GraphQLError(`Field "${r.name}.${o[0]}" must be non-null.`,{nodes:[t]}));return}if(h){let N=l.name.value;i[N].type.kind!==GA.Kind.NON_NULL_TYPE&&e.reportError(new ko.GraphQLError(`Variable "${N}" must be non-nullable to be used for OneOf Input Object "${r.name}".`,{nodes:[t]}))}}});var zA=D(JA=>{"use strict";d();p();f();Object.defineProperty(JA,"__esModule",{value:!0});JA.VariablesAreInputTypesRule=XOe;var JOe=at(),zOe=Gi(),HOe=Vt(),WOe=Bo();function XOe(e){return{VariableDefinition(t){let r=(0,WOe.typeFromAST)(e.getSchema(),t.type);if(r!==void 0&&!(0,HOe.isInputType)(r)){let n=t.variable.name.value,i=(0,zOe.print)(t.type);e.reportError(new JOe.GraphQLError(`Variable "$${n}" cannot be non-input type "${i}".`,{nodes:t.type}))}}}}});var WA=D(HA=>{"use strict";d();p();f();Object.defineProperty(HA,"__esModule",{value:!0});HA.VariablesInAllowedPositionRule=rDe;var ez=ur(),ZOe=at(),eDe=jt(),tz=Vt(),rz=Eh(),tDe=Bo();function rDe(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(r){let n=e.getRecursiveVariableUsages(r);for(let{node:i,type:a,defaultValue:o}of n){let u=i.name.value,l=t[u];if(l&&a){let m=e.getSchema(),h=(0,tDe.typeFromAST)(m,l.type);if(h&&!nDe(m,h,l.defaultValue,a,o)){let N=(0,ez.inspect)(h),T=(0,ez.inspect)(a);e.reportError(new ZOe.GraphQLError(`Variable "$${u}" of type "${N}" used in position expecting type "${T}".`,{nodes:[l,i]}))}}}}},VariableDefinition(r){t[r.variable.name.value]=r}}}function nDe(e,t,r,n,i){if((0,tz.isNonNullType)(n)&&!(0,tz.isNonNullType)(t)){if(!(r!=null&&r.kind!==eDe.Kind.NULL)&&!(i!==void 0))return!1;let u=n.ofType;return(0,rz.isTypeSubTypeOf)(e,t,u)}return(0,rz.isTypeSubTypeOf)(e,t,n)}});var XA=D($c=>{"use strict";d();p();f();Object.defineProperty($c,"__esModule",{value:!0});$c.specifiedSDLRules=$c.specifiedRules=$c.recommendedRules=void 0;var iDe=h0(),aDe=N0(),oDe=E0(),nz=g0(),iz=S0(),sDe=D0(),az=R0(),uDe=P0(),cDe=L0(),lDe=B0(),dDe=k0(),fDe=x0(),pDe=j0(),mDe=K0(),hDe=Z0(),yDe=rA(),NDe=iA(),oz=oA(),TDe=uA(),EDe=NA(),gDe=gA(),sz=vA(),IDe=SA(),uz=bA(),vDe=RA(),_De=FA(),SDe=CA(),cz=UA(),ODe=qA(),DDe=MA(),bDe=VA(),ADe=$A(),RDe=YA(),wDe=zA(),PDe=WA(),lz=Object.freeze([lDe.MaxIntrospectionDepthRule]);$c.recommendedRules=lz;var FDe=Object.freeze([iDe.ExecutableDefinitionsRule,ODe.UniqueOperationNamesRule,uDe.LoneAnonymousOperationRule,EDe.SingleFieldSubscriptionsRule,az.KnownTypeNamesRule,oDe.FragmentsOnCompositeTypesRule,wDe.VariablesAreInputTypesRule,TDe.ScalarLeafsRule,aDe.FieldsOnCorrectTypeRule,SDe.UniqueFragmentNamesRule,sDe.KnownFragmentNamesRule,pDe.NoUnusedFragmentsRule,yDe.PossibleFragmentSpreadsRule,dDe.NoFragmentCyclesRule,ADe.UniqueVariableNamesRule,fDe.NoUndefinedVariablesRule,mDe.NoUnusedVariablesRule,iz.KnownDirectivesRule,uz.UniqueDirectivesPerLocationRule,nz.KnownArgumentNamesRule,sz.UniqueArgumentNamesRule,RDe.ValuesOfCorrectTypeRule,oz.ProvidedRequiredArgumentsRule,PDe.VariablesInAllowedPositionRule,hDe.OverlappingFieldsCanBeMergedRule,cz.UniqueInputFieldNamesRule,...lz]);$c.specifiedRules=FDe;var LDe=Object.freeze([cDe.LoneSchemaDefinitionRule,DDe.UniqueOperationTypesRule,bDe.UniqueTypeNamesRule,vDe.UniqueEnumValueNamesRule,_De.UniqueFieldDefinitionNamesRule,gDe.UniqueArgumentDefinitionNamesRule,IDe.UniqueDirectiveNamesRule,az.KnownTypeNamesRule,iz.KnownDirectivesRule,uz.UniqueDirectivesPerLocationRule,NDe.PossibleTypeExtensionsRule,nz.KnownArgumentNamesOnDirectivesRule,sz.UniqueArgumentNamesRule,cz.UniqueInputFieldNamesRule,oz.ProvidedRequiredArgumentsOnDirectivesRule]);$c.specifiedSDLRules=LDe});var tR=D(Gc=>{"use strict";d();p();f();Object.defineProperty(Gc,"__esModule",{value:!0});Gc.ValidationContext=Gc.SDLValidationContext=Gc.ASTValidationContext=void 0;var dz=jt(),CDe=$l(),fz=hg(),xh=class{constructor(t,r){this._ast=t,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=r}get[Symbol.toStringTag](){return"ASTValidationContext"}reportError(t){this._onError(t)}getDocument(){return this._ast}getFragment(t){let r;if(this._fragments)r=this._fragments;else{r=Object.create(null);for(let n of this.getDocument().definitions)n.kind===dz.Kind.FRAGMENT_DEFINITION&&(r[n.name.value]=n);this._fragments=r}return r[t]}getFragmentSpreads(t){let r=this._fragmentSpreads.get(t);if(!r){r=[];let n=[t],i;for(;i=n.pop();)for(let a of i.selections)a.kind===dz.Kind.FRAGMENT_SPREAD?r.push(a):a.selectionSet&&n.push(a.selectionSet);this._fragmentSpreads.set(t,r)}return r}getRecursivelyReferencedFragments(t){let r=this._recursivelyReferencedFragments.get(t);if(!r){r=[];let n=Object.create(null),i=[t.selectionSet],a;for(;a=i.pop();)for(let o of this.getFragmentSpreads(a)){let u=o.name.value;if(n[u]!==!0){n[u]=!0;let l=this.getFragment(u);l&&(r.push(l),i.push(l.selectionSet))}}this._recursivelyReferencedFragments.set(t,r)}return r}};Gc.ASTValidationContext=xh;var ZA=class extends xh{constructor(t,r,n){super(t,n),this._schema=r}get[Symbol.toStringTag](){return"SDLValidationContext"}getSchema(){return this._schema}};Gc.SDLValidationContext=ZA;var eR=class extends xh{constructor(t,r,n,i){super(r,i),this._schema=t,this._typeInfo=n,this._variableUsages=new Map,this._recursiveVariableUsages=new Map}get[Symbol.toStringTag](){return"ValidationContext"}getSchema(){return this._schema}getVariableUsages(t){let r=this._variableUsages.get(t);if(!r){let n=[],i=new fz.TypeInfo(this._schema);(0,CDe.visit)(t,(0,fz.visitWithTypeInfo)(i,{VariableDefinition:()=>!1,Variable(a){n.push({node:a,type:i.getInputType(),defaultValue:i.getDefaultValue()})}})),r=n,this._variableUsages.set(t,r)}return r}getRecursiveVariableUsages(t){let r=this._recursiveVariableUsages.get(t);if(!r){r=this.getVariableUsages(t);for(let n of this.getRecursivelyReferencedFragments(t))r=r.concat(this.getVariableUsages(n));this._recursiveVariableUsages.set(t,r)}return r}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()}};Gc.ValidationContext=eR});var Qf=D(Gf=>{"use strict";d();p();f();Object.defineProperty(Gf,"__esModule",{value:!0});Gf.assertValidSDL=xDe;Gf.assertValidSDLExtension=MDe;Gf.validate=qDe;Gf.validateSDL=rR;var BDe=si(),UDe=at(),Rg=$l(),kDe=Rh(),pz=hg(),mz=XA(),hz=tR();function qDe(e,t,r=mz.specifiedRules,n,i=new pz.TypeInfo(e)){var a;let o=(a=n==null?void 0:n.maxErrors)!==null&&a!==void 0?a:100;t||(0,BDe.devAssert)(!1,"Must provide document."),(0,kDe.assertValidSchema)(e);let u=Object.freeze({}),l=[],m=new hz.ValidationContext(e,t,i,N=>{if(l.length>=o)throw l.push(new UDe.GraphQLError("Too many validation errors, error limit reached. Validation aborted.")),u;l.push(N)}),h=(0,Rg.visitInParallel)(r.map(N=>N(m)));try{(0,Rg.visit)(t,(0,pz.visitWithTypeInfo)(i,h))}catch(N){if(N!==u)throw N}return l}function rR(e,t,r=mz.specifiedSDLRules){let n=[],i=new hz.SDLValidationContext(e,t,o=>{n.push(o)}),a=r.map(o=>o(i));return(0,Rg.visit)(e,(0,Rg.visitInParallel)(a)),n}function xDe(e){let t=rR(e);if(t.length!==0)throw new Error(t.map(r=>r.message).join(` -`))}function hX(e,t){let n=rv(e,t);if(n.length!==0)throw new Error(n.map(r=>r.message).join(` +`))}function MDe(e,t){let r=rR(e,t);if(r.length!==0)throw new Error(r.map(n=>n.message).join(` -`))}});var XL=F(iv=>{"use strict";m();T();N();Object.defineProperty(iv,"__esModule",{value:!0});iv.memoize3=yX;function yX(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 u=o.get(i);u===void 0&&(u=new WeakMap,o.set(i,u));let l=u.get(a);return l===void 0&&(l=e(r,i,a),u.set(a,l)),l}}});var ZL=F(av=>{"use strict";m();T();N();Object.defineProperty(av,"__esModule",{value:!0});av.promiseForObject=IX;function IX(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 eC=F(sv=>{"use strict";m();T();N();Object.defineProperty(sv,"__esModule",{value:!0});sv.promiseReduce=_X;var gX=Zm();function _X(e,t,n){let r=n;for(let i of e)r=(0,gX.isPromise)(r)?r.then(a=>t(a,i)):t(r,i);return r}});var tC=F(uv=>{"use strict";m();T();N();Object.defineProperty(uv,"__esModule",{value:!0});uv.toError=SX;var vX=nn();function SX(e){return e instanceof Error?e:new ov(e)}var ov=class extends Error{constructor(t){super("Unexpected error value: "+(0,vX.inspect)(t)),this.name="NonErrorThrown",this.thrownValue=t}}});var XN=F(cv=>{"use strict";m();T();N();Object.defineProperty(cv,"__esModule",{value:!0});cv.locatedError=bX;var OX=tC(),DX=et();function bX(e,t,n){var r;let i=(0,OX.toError)(e);return AX(i)?i:new DX.GraphQLError(i.message,{nodes:(r=i.nodes)!==null&&r!==void 0?r:t,source:i.source,positions:i.positions,path:n,originalError:i})}function AX(e){return Array.isArray(e.path)}});var Uf=F(Ki=>{"use strict";m();T();N();Object.defineProperty(Ki,"__esModule",{value:!0});Ki.assertValidExecutionArguments=cC;Ki.buildExecutionContext=lC;Ki.buildResolveInfo=fC;Ki.defaultTypeResolver=Ki.defaultFieldResolver=void 0;Ki.execute=uC;Ki.executeSync=UX;Ki.getFieldDef=mC;var dv=Gr(),Ic=nn(),RX=Lr(),PX=LN(),mv=ja(),ya=Zm(),FX=XL(),gc=Df(),nC=ZL(),wX=eC(),ji=et(),eT=XN(),lv=Ka(),rC=Ut(),Su=Bt(),Bl=qi(),LX=vf(),sC=JN(),oC=Ll(),CX=(0,FX.memoize3)((e,t,n)=>(0,sC.collectSubfields)(e.schema,e.fragments,e.variableValues,t,n));function uC(e){arguments.length<2||(0,dv.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;cC(t,n,r);let a=lC(e);if(!("schema"in a))return{errors:a};try{let{operation:o}=a,u=BX(a,o,i);return(0,ya.isPromise)(u)?u.then(l=>ZN(l,a.errors),l=>(a.errors.push(l),ZN(null,a.errors))):ZN(u,a.errors)}catch(o){return a.errors.push(o),ZN(null,a.errors)}}function UX(e){let t=uC(e);if((0,ya.isPromise)(t))throw new Error("GraphQL execution failed to complete synchronously.");return t}function ZN(e,t){return t.length===0?{data:e}:{errors:t,data:e}}function cC(e,t,n){t||(0,dv.devAssert)(!1,"Must provide document."),(0,LX.assertValidSchema)(e),n==null||(0,mv.isObjectLike)(n)||(0,dv.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 lC(e){var t,n;let{schema:r,document:i,rootValue:a,contextValue:o,variableValues:u,operationName:l,fieldResolver:d,typeResolver:p,subscribeFieldResolver:E}=e,h,v=Object.create(null);for(let q of i.definitions)switch(q.kind){case rC.Kind.OPERATION_DEFINITION:if(l==null){if(h!==void 0)return[new ji.GraphQLError("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 rC.Kind.FRAGMENT_DEFINITION:v[q.name.value]=q;break;default:}if(!h)return l!=null?[new ji.GraphQLError(`Unknown operation named "${l}".`)]:[new ji.GraphQLError("Must provide an operation.")];let R=(n=h.variableDefinitions)!==null&&n!==void 0?n:[],U=(0,oC.getVariableValues)(r,R,u!=null?u:{},{maxErrors:50});return U.errors?U.errors:{schema:r,fragments:v,rootValue:a,contextValue:o,operation:h,variableValues:U.coerced,fieldResolver:d!=null?d:pv,typeResolver:p!=null?p:pC,subscribeFieldResolver:E!=null?E:pv,errors:[]}}function BX(e,t,n){let r=e.schema.getRootType(t.operation);if(r==null)throw new ji.GraphQLError(`Schema is not configured to execute ${t.operation} operation.`,{nodes:t});let i=(0,sC.collectFields)(e.schema,e.fragments,e.variableValues,r,t.selectionSet),a=void 0;switch(t.operation){case lv.OperationTypeNode.QUERY:return tT(e,r,n,a,i);case lv.OperationTypeNode.MUTATION:return kX(e,r,n,a,i);case lv.OperationTypeNode.SUBSCRIPTION:return tT(e,r,n,a,i)}}function kX(e,t,n,r,i){return(0,wX.promiseReduce)(i.entries(),(a,[o,u])=>{let l=(0,gc.addPath)(r,o,t.name),d=dC(e,t,n,u,l);return d===void 0?a:(0,ya.isPromise)(d)?d.then(p=>(a[o]=p,a)):(a[o]=d,a)},Object.create(null))}function tT(e,t,n,r,i){let a=Object.create(null),o=!1;try{for(let[u,l]of i.entries()){let d=(0,gc.addPath)(r,u,t.name),p=dC(e,t,n,l,d);p!==void 0&&(a[u]=p,(0,ya.isPromise)(p)&&(o=!0))}}catch(u){if(o)return(0,nC.promiseForObject)(a).finally(()=>{throw u});throw u}return o?(0,nC.promiseForObject)(a):a}function dC(e,t,n,r,i){var a;let o=mC(e.schema,t,r[0]);if(!o)return;let u=o.type,l=(a=o.resolve)!==null&&a!==void 0?a:e.fieldResolver,d=fC(e,o,r,t,i);try{let p=(0,oC.getArgumentValues)(o,r[0],e.variableValues),E=e.contextValue,h=l(n,p,E,d),v;return(0,ya.isPromise)(h)?v=h.then(R=>Cf(e,u,r,d,i,R)):v=Cf(e,u,r,d,i,h),(0,ya.isPromise)(v)?v.then(void 0,R=>{let U=(0,eT.locatedError)(R,r,(0,gc.pathToArray)(i));return nT(U,u,e)}):v}catch(p){let E=(0,eT.locatedError)(p,r,(0,gc.pathToArray)(i));return nT(E,u,e)}}function fC(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 nT(e,t,n){if((0,Su.isNonNullType)(t))throw e;return n.errors.push(e),null}function Cf(e,t,n,r,i,a){if(a instanceof Error)throw a;if((0,Su.isNonNullType)(t)){let o=Cf(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,Su.isListType)(t))return MX(e,t,n,r,i,a);if((0,Su.isLeafType)(t))return xX(t,a);if((0,Su.isAbstractType)(t))return qX(e,t,n,r,i,a);if((0,Su.isObjectType)(t))return fv(e,t,n,r,i,a);(0,RX.invariant)(!1,"Cannot complete value of unexpected output type: "+(0,Ic.inspect)(t))}function MX(e,t,n,r,i,a){if(!(0,PX.isIterableObject)(a))throw new ji.GraphQLError(`Expected Iterable, but did not find one for field "${r.parentType.name}.${r.fieldName}".`);let o=t.ofType,u=!1,l=Array.from(a,(d,p)=>{let E=(0,gc.addPath)(i,p,void 0);try{let h;return(0,ya.isPromise)(d)?h=d.then(v=>Cf(e,o,n,r,E,v)):h=Cf(e,o,n,r,E,d),(0,ya.isPromise)(h)?(u=!0,h.then(void 0,v=>{let R=(0,eT.locatedError)(v,n,(0,gc.pathToArray)(E));return nT(R,o,e)})):h}catch(h){let v=(0,eT.locatedError)(h,n,(0,gc.pathToArray)(E));return nT(v,o,e)}});return u?Promise.all(l):l}function xX(e,t){let n=e.serialize(t);if(n==null)throw new Error(`Expected \`${(0,Ic.inspect)(e)}.serialize(${(0,Ic.inspect)(t)})\` to return non-nullable value, returned: ${(0,Ic.inspect)(n)}`);return n}function qX(e,t,n,r,i,a){var o;let u=(o=t.resolveType)!==null&&o!==void 0?o:e.typeResolver,l=e.contextValue,d=u(a,l,r,t);return(0,ya.isPromise)(d)?d.then(p=>fv(e,iC(p,e,t,n,r,a),n,r,i,a)):fv(e,iC(d,e,t,n,r,a),n,r,i,a)}function iC(e,t,n,r,i,a){if(e==null)throw new ji.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,Su.isObjectType)(e))throw new ji.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 ji.GraphQLError(`Abstract type "${n.name}" must resolve to an Object type at runtime for field "${i.parentType.name}.${i.fieldName}" with value ${(0,Ic.inspect)(a)}, received "${(0,Ic.inspect)(e)}".`);let o=t.schema.getType(e);if(o==null)throw new ji.GraphQLError(`Abstract type "${n.name}" was resolved to a type "${e}" that does not exist inside the schema.`,{nodes:r});if(!(0,Su.isObjectType)(o))throw new ji.GraphQLError(`Abstract type "${n.name}" was resolved to a non-object type "${e}".`,{nodes:r});if(!t.schema.isSubType(n,o))throw new ji.GraphQLError(`Runtime Object type "${o.name}" is not a possible type for "${n.name}".`,{nodes:r});return o}function fv(e,t,n,r,i,a){let o=CX(e,t,n);if(t.isTypeOf){let u=t.isTypeOf(a,e.contextValue,r);if((0,ya.isPromise)(u))return u.then(l=>{if(!l)throw aC(t,a,n);return tT(e,t,a,i,o)});if(!u)throw aC(t,a,n)}return tT(e,t,a,i,o)}function aC(e,t,n){return new ji.GraphQLError(`Expected value of type "${e.name}" but got: ${(0,Ic.inspect)(t)}.`,{nodes:n})}var pC=function(e,t,n,r){if((0,mv.isObjectLike)(e)&&typeof e.__typename=="string")return e.__typename;let i=n.schema.getPossibleTypes(r),a=[];for(let o=0;o{for(let u=0;u{"use strict";m();T();N();Object.defineProperty(rT,"__esModule",{value:!0});rT.graphql=YX;rT.graphqlSync=JX;var VX=Gr(),jX=Zm(),KX=vl(),$X=vf(),GX=Ul(),QX=Uf();function YX(e){return new Promise(t=>t(NC(e)))}function JX(e){let t=NC(e);if((0,jX.isPromise)(t))throw new Error("GraphQL execution failed to complete synchronously.");return t}function NC(e){arguments.length<2||(0,VX.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:u,typeResolver:l}=e,d=(0,$X.validateSchema)(t);if(d.length>0)return{errors:d};let p;try{p=(0,KX.parse)(n)}catch(h){return{errors:[h]}}let E=(0,GX.validate)(t,p);return E.length>0?{errors:E}:(0,QX.execute)({schema:t,document:p,rootValue:r,contextValue:i,variableValues:a,operationName:o,fieldResolver:u,typeResolver:l})}});var yC=F(he=>{"use strict";m();T();N();Object.defineProperty(he,"__esModule",{value:!0});Object.defineProperty(he,"DEFAULT_DEPRECATION_REASON",{enumerable:!0,get:function(){return Ia.DEFAULT_DEPRECATION_REASON}});Object.defineProperty(he,"GRAPHQL_MAX_INT",{enumerable:!0,get:function(){return Ps.GRAPHQL_MAX_INT}});Object.defineProperty(he,"GRAPHQL_MIN_INT",{enumerable:!0,get:function(){return Ps.GRAPHQL_MIN_INT}});Object.defineProperty(he,"GraphQLBoolean",{enumerable:!0,get:function(){return Ps.GraphQLBoolean}});Object.defineProperty(he,"GraphQLDeprecatedDirective",{enumerable:!0,get:function(){return Ia.GraphQLDeprecatedDirective}});Object.defineProperty(he,"GraphQLDirective",{enumerable:!0,get:function(){return Ia.GraphQLDirective}});Object.defineProperty(he,"GraphQLEnumType",{enumerable:!0,get:function(){return it.GraphQLEnumType}});Object.defineProperty(he,"GraphQLFloat",{enumerable:!0,get:function(){return Ps.GraphQLFloat}});Object.defineProperty(he,"GraphQLID",{enumerable:!0,get:function(){return Ps.GraphQLID}});Object.defineProperty(he,"GraphQLIncludeDirective",{enumerable:!0,get:function(){return Ia.GraphQLIncludeDirective}});Object.defineProperty(he,"GraphQLInputObjectType",{enumerable:!0,get:function(){return it.GraphQLInputObjectType}});Object.defineProperty(he,"GraphQLInt",{enumerable:!0,get:function(){return Ps.GraphQLInt}});Object.defineProperty(he,"GraphQLInterfaceType",{enumerable:!0,get:function(){return it.GraphQLInterfaceType}});Object.defineProperty(he,"GraphQLList",{enumerable:!0,get:function(){return it.GraphQLList}});Object.defineProperty(he,"GraphQLNonNull",{enumerable:!0,get:function(){return it.GraphQLNonNull}});Object.defineProperty(he,"GraphQLObjectType",{enumerable:!0,get:function(){return it.GraphQLObjectType}});Object.defineProperty(he,"GraphQLOneOfDirective",{enumerable:!0,get:function(){return Ia.GraphQLOneOfDirective}});Object.defineProperty(he,"GraphQLScalarType",{enumerable:!0,get:function(){return it.GraphQLScalarType}});Object.defineProperty(he,"GraphQLSchema",{enumerable:!0,get:function(){return Nv.GraphQLSchema}});Object.defineProperty(he,"GraphQLSkipDirective",{enumerable:!0,get:function(){return Ia.GraphQLSkipDirective}});Object.defineProperty(he,"GraphQLSpecifiedByDirective",{enumerable:!0,get:function(){return Ia.GraphQLSpecifiedByDirective}});Object.defineProperty(he,"GraphQLString",{enumerable:!0,get:function(){return Ps.GraphQLString}});Object.defineProperty(he,"GraphQLUnionType",{enumerable:!0,get:function(){return it.GraphQLUnionType}});Object.defineProperty(he,"SchemaMetaFieldDef",{enumerable:!0,get:function(){return ai.SchemaMetaFieldDef}});Object.defineProperty(he,"TypeKind",{enumerable:!0,get:function(){return ai.TypeKind}});Object.defineProperty(he,"TypeMetaFieldDef",{enumerable:!0,get:function(){return ai.TypeMetaFieldDef}});Object.defineProperty(he,"TypeNameMetaFieldDef",{enumerable:!0,get:function(){return ai.TypeNameMetaFieldDef}});Object.defineProperty(he,"__Directive",{enumerable:!0,get:function(){return ai.__Directive}});Object.defineProperty(he,"__DirectiveLocation",{enumerable:!0,get:function(){return ai.__DirectiveLocation}});Object.defineProperty(he,"__EnumValue",{enumerable:!0,get:function(){return ai.__EnumValue}});Object.defineProperty(he,"__Field",{enumerable:!0,get:function(){return ai.__Field}});Object.defineProperty(he,"__InputValue",{enumerable:!0,get:function(){return ai.__InputValue}});Object.defineProperty(he,"__Schema",{enumerable:!0,get:function(){return ai.__Schema}});Object.defineProperty(he,"__Type",{enumerable:!0,get:function(){return ai.__Type}});Object.defineProperty(he,"__TypeKind",{enumerable:!0,get:function(){return ai.__TypeKind}});Object.defineProperty(he,"assertAbstractType",{enumerable:!0,get:function(){return it.assertAbstractType}});Object.defineProperty(he,"assertCompositeType",{enumerable:!0,get:function(){return it.assertCompositeType}});Object.defineProperty(he,"assertDirective",{enumerable:!0,get:function(){return Ia.assertDirective}});Object.defineProperty(he,"assertEnumType",{enumerable:!0,get:function(){return it.assertEnumType}});Object.defineProperty(he,"assertEnumValueName",{enumerable:!0,get:function(){return hC.assertEnumValueName}});Object.defineProperty(he,"assertInputObjectType",{enumerable:!0,get:function(){return it.assertInputObjectType}});Object.defineProperty(he,"assertInputType",{enumerable:!0,get:function(){return it.assertInputType}});Object.defineProperty(he,"assertInterfaceType",{enumerable:!0,get:function(){return it.assertInterfaceType}});Object.defineProperty(he,"assertLeafType",{enumerable:!0,get:function(){return it.assertLeafType}});Object.defineProperty(he,"assertListType",{enumerable:!0,get:function(){return it.assertListType}});Object.defineProperty(he,"assertName",{enumerable:!0,get:function(){return hC.assertName}});Object.defineProperty(he,"assertNamedType",{enumerable:!0,get:function(){return it.assertNamedType}});Object.defineProperty(he,"assertNonNullType",{enumerable:!0,get:function(){return it.assertNonNullType}});Object.defineProperty(he,"assertNullableType",{enumerable:!0,get:function(){return it.assertNullableType}});Object.defineProperty(he,"assertObjectType",{enumerable:!0,get:function(){return it.assertObjectType}});Object.defineProperty(he,"assertOutputType",{enumerable:!0,get:function(){return it.assertOutputType}});Object.defineProperty(he,"assertScalarType",{enumerable:!0,get:function(){return it.assertScalarType}});Object.defineProperty(he,"assertSchema",{enumerable:!0,get:function(){return Nv.assertSchema}});Object.defineProperty(he,"assertType",{enumerable:!0,get:function(){return it.assertType}});Object.defineProperty(he,"assertUnionType",{enumerable:!0,get:function(){return it.assertUnionType}});Object.defineProperty(he,"assertValidSchema",{enumerable:!0,get:function(){return EC.assertValidSchema}});Object.defineProperty(he,"assertWrappingType",{enumerable:!0,get:function(){return it.assertWrappingType}});Object.defineProperty(he,"getNamedType",{enumerable:!0,get:function(){return it.getNamedType}});Object.defineProperty(he,"getNullableType",{enumerable:!0,get:function(){return it.getNullableType}});Object.defineProperty(he,"introspectionTypes",{enumerable:!0,get:function(){return ai.introspectionTypes}});Object.defineProperty(he,"isAbstractType",{enumerable:!0,get:function(){return it.isAbstractType}});Object.defineProperty(he,"isCompositeType",{enumerable:!0,get:function(){return it.isCompositeType}});Object.defineProperty(he,"isDirective",{enumerable:!0,get:function(){return Ia.isDirective}});Object.defineProperty(he,"isEnumType",{enumerable:!0,get:function(){return it.isEnumType}});Object.defineProperty(he,"isInputObjectType",{enumerable:!0,get:function(){return it.isInputObjectType}});Object.defineProperty(he,"isInputType",{enumerable:!0,get:function(){return it.isInputType}});Object.defineProperty(he,"isInterfaceType",{enumerable:!0,get:function(){return it.isInterfaceType}});Object.defineProperty(he,"isIntrospectionType",{enumerable:!0,get:function(){return ai.isIntrospectionType}});Object.defineProperty(he,"isLeafType",{enumerable:!0,get:function(){return it.isLeafType}});Object.defineProperty(he,"isListType",{enumerable:!0,get:function(){return it.isListType}});Object.defineProperty(he,"isNamedType",{enumerable:!0,get:function(){return it.isNamedType}});Object.defineProperty(he,"isNonNullType",{enumerable:!0,get:function(){return it.isNonNullType}});Object.defineProperty(he,"isNullableType",{enumerable:!0,get:function(){return it.isNullableType}});Object.defineProperty(he,"isObjectType",{enumerable:!0,get:function(){return it.isObjectType}});Object.defineProperty(he,"isOutputType",{enumerable:!0,get:function(){return it.isOutputType}});Object.defineProperty(he,"isRequiredArgument",{enumerable:!0,get:function(){return it.isRequiredArgument}});Object.defineProperty(he,"isRequiredInputField",{enumerable:!0,get:function(){return it.isRequiredInputField}});Object.defineProperty(he,"isScalarType",{enumerable:!0,get:function(){return it.isScalarType}});Object.defineProperty(he,"isSchema",{enumerable:!0,get:function(){return Nv.isSchema}});Object.defineProperty(he,"isSpecifiedDirective",{enumerable:!0,get:function(){return Ia.isSpecifiedDirective}});Object.defineProperty(he,"isSpecifiedScalarType",{enumerable:!0,get:function(){return Ps.isSpecifiedScalarType}});Object.defineProperty(he,"isType",{enumerable:!0,get:function(){return it.isType}});Object.defineProperty(he,"isUnionType",{enumerable:!0,get:function(){return it.isUnionType}});Object.defineProperty(he,"isWrappingType",{enumerable:!0,get:function(){return it.isWrappingType}});Object.defineProperty(he,"resolveObjMapThunk",{enumerable:!0,get:function(){return it.resolveObjMapThunk}});Object.defineProperty(he,"resolveReadonlyArrayThunk",{enumerable:!0,get:function(){return it.resolveReadonlyArrayThunk}});Object.defineProperty(he,"specifiedDirectives",{enumerable:!0,get:function(){return Ia.specifiedDirectives}});Object.defineProperty(he,"specifiedScalarTypes",{enumerable:!0,get:function(){return Ps.specifiedScalarTypes}});Object.defineProperty(he,"validateSchema",{enumerable:!0,get:function(){return EC.validateSchema}});var Nv=Nc(),it=Bt(),Ia=ri(),Ps=Qa(),ai=qi(),EC=vf(),hC=uf()});var gC=F(qt=>{"use strict";m();T();N();Object.defineProperty(qt,"__esModule",{value:!0});Object.defineProperty(qt,"BREAK",{enumerable:!0,get:function(){return Bf.BREAK}});Object.defineProperty(qt,"DirectiveLocation",{enumerable:!0,get:function(){return t5.DirectiveLocation}});Object.defineProperty(qt,"Kind",{enumerable:!0,get:function(){return WX.Kind}});Object.defineProperty(qt,"Lexer",{enumerable:!0,get:function(){return ZX.Lexer}});Object.defineProperty(qt,"Location",{enumerable:!0,get:function(){return Tv.Location}});Object.defineProperty(qt,"OperationTypeNode",{enumerable:!0,get:function(){return Tv.OperationTypeNode}});Object.defineProperty(qt,"Source",{enumerable:!0,get:function(){return zX.Source}});Object.defineProperty(qt,"Token",{enumerable:!0,get:function(){return Tv.Token}});Object.defineProperty(qt,"TokenKind",{enumerable:!0,get:function(){return XX.TokenKind}});Object.defineProperty(qt,"getEnterLeaveForKind",{enumerable:!0,get:function(){return Bf.getEnterLeaveForKind}});Object.defineProperty(qt,"getLocation",{enumerable:!0,get:function(){return HX.getLocation}});Object.defineProperty(qt,"getVisitFn",{enumerable:!0,get:function(){return Bf.getVisitFn}});Object.defineProperty(qt,"isConstValueNode",{enumerable:!0,get:function(){return Ha.isConstValueNode}});Object.defineProperty(qt,"isDefinitionNode",{enumerable:!0,get:function(){return Ha.isDefinitionNode}});Object.defineProperty(qt,"isExecutableDefinitionNode",{enumerable:!0,get:function(){return Ha.isExecutableDefinitionNode}});Object.defineProperty(qt,"isSelectionNode",{enumerable:!0,get:function(){return Ha.isSelectionNode}});Object.defineProperty(qt,"isTypeDefinitionNode",{enumerable:!0,get:function(){return Ha.isTypeDefinitionNode}});Object.defineProperty(qt,"isTypeExtensionNode",{enumerable:!0,get:function(){return Ha.isTypeExtensionNode}});Object.defineProperty(qt,"isTypeNode",{enumerable:!0,get:function(){return Ha.isTypeNode}});Object.defineProperty(qt,"isTypeSystemDefinitionNode",{enumerable:!0,get:function(){return Ha.isTypeSystemDefinitionNode}});Object.defineProperty(qt,"isTypeSystemExtensionNode",{enumerable:!0,get:function(){return Ha.isTypeSystemExtensionNode}});Object.defineProperty(qt,"isValueNode",{enumerable:!0,get:function(){return Ha.isValueNode}});Object.defineProperty(qt,"parse",{enumerable:!0,get:function(){return iT.parse}});Object.defineProperty(qt,"parseConstValue",{enumerable:!0,get:function(){return iT.parseConstValue}});Object.defineProperty(qt,"parseType",{enumerable:!0,get:function(){return iT.parseType}});Object.defineProperty(qt,"parseValue",{enumerable:!0,get:function(){return iT.parseValue}});Object.defineProperty(qt,"print",{enumerable:!0,get:function(){return e5.print}});Object.defineProperty(qt,"printLocation",{enumerable:!0,get:function(){return IC.printLocation}});Object.defineProperty(qt,"printSourceLocation",{enumerable:!0,get:function(){return IC.printSourceLocation}});Object.defineProperty(qt,"visit",{enumerable:!0,get:function(){return Bf.visit}});Object.defineProperty(qt,"visitInParallel",{enumerable:!0,get:function(){return Bf.visitInParallel}});var zX=cN(),HX=eN(),IC=fI(),WX=Ut(),XX=Zd(),ZX=aN(),iT=vl(),e5=gi(),Bf=cc(),Tv=Ka(),Ha=Ec(),t5=gl()});var _C=F(Ev=>{"use strict";m();T();N();Object.defineProperty(Ev,"__esModule",{value:!0});Ev.isAsyncIterable=n5;function n5(e){return typeof(e==null?void 0:e[Symbol.asyncIterator])=="function"}});var vC=F(hv=>{"use strict";m();T();N();Object.defineProperty(hv,"__esModule",{value:!0});hv.mapAsyncIterator=r5;function r5(e,t){let n=e[Symbol.asyncIterator]();function r(a){return Ui(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(u){}throw o}})}return{next(){return Ui(this,null,function*(){return r(yield n.next())})},return(){return Ui(this,null,function*(){return typeof n.return=="function"?r(yield n.return()):{value:void 0,done:!0}})},throw(a){return Ui(this,null,function*(){if(typeof n.throw=="function")return r(yield n.throw(a));throw a})},[Symbol.asyncIterator](){return this}}}});var bC=F(aT=>{"use strict";m();T();N();Object.defineProperty(aT,"__esModule",{value:!0});aT.createSourceEventStream=DC;aT.subscribe=l5;var i5=Gr(),a5=nn(),OC=_C(),SC=Df(),yv=et(),s5=XN(),o5=JN(),kf=Uf(),u5=vC(),c5=Ll();function l5(t){return Ui(this,arguments,function*(e){arguments.length<2||(0,i5.devAssert)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let n=yield DC(e);if(!(0,OC.isAsyncIterable)(n))return n;let r=i=>(0,kf.execute)(G(M({},e),{rootValue:i}));return(0,u5.mapAsyncIterator)(n,r)})}function d5(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 DC(...e){return Ui(this,null,function*(){let t=d5(e),{schema:n,document:r,variableValues:i}=t;(0,kf.assertValidExecutionArguments)(n,r,i);let a=(0,kf.buildExecutionContext)(t);if(!("schema"in a))return{errors:a};try{let o=yield f5(a);if(!(0,OC.isAsyncIterable)(o))throw new Error(`Subscription field must return Async Iterable. Received: ${(0,a5.inspect)(o)}.`);return o}catch(o){if(o instanceof yv.GraphQLError)return{errors:[o]};throw o}})}function f5(e){return Ui(this,null,function*(){let{schema:t,fragments:n,operation:r,variableValues:i,rootValue:a}=e,o=t.getSubscriptionType();if(o==null)throw new yv.GraphQLError("Schema is not configured to execute subscription operation.",{nodes:r});let u=(0,o5.collectFields)(t,n,i,o,r.selectionSet),[l,d]=[...u.entries()][0],p=(0,kf.getFieldDef)(t,o,d[0]);if(!p){let R=d[0].name.value;throw new yv.GraphQLError(`The subscription field "${R}" is not defined.`,{nodes:d})}let E=(0,SC.addPath)(void 0,l,o.name),h=(0,kf.buildResolveInfo)(e,p,d,o,E);try{var v;let R=(0,c5.getArgumentValues)(p,d[0],i),U=e.contextValue,X=yield((v=p.subscribe)!==null&&v!==void 0?v:e.subscribeFieldResolver)(a,R,U,h);if(X instanceof Error)throw X;return X}catch(R){throw(0,s5.locatedError)(R,d,(0,SC.pathToArray)(E))}})}});var RC=F($i=>{"use strict";m();T();N();Object.defineProperty($i,"__esModule",{value:!0});Object.defineProperty($i,"createSourceEventStream",{enumerable:!0,get:function(){return AC.createSourceEventStream}});Object.defineProperty($i,"defaultFieldResolver",{enumerable:!0,get:function(){return sT.defaultFieldResolver}});Object.defineProperty($i,"defaultTypeResolver",{enumerable:!0,get:function(){return sT.defaultTypeResolver}});Object.defineProperty($i,"execute",{enumerable:!0,get:function(){return sT.execute}});Object.defineProperty($i,"executeSync",{enumerable:!0,get:function(){return sT.executeSync}});Object.defineProperty($i,"getArgumentValues",{enumerable:!0,get:function(){return Iv.getArgumentValues}});Object.defineProperty($i,"getDirectiveValues",{enumerable:!0,get:function(){return Iv.getDirectiveValues}});Object.defineProperty($i,"getVariableValues",{enumerable:!0,get:function(){return Iv.getVariableValues}});Object.defineProperty($i,"responsePathAsArray",{enumerable:!0,get:function(){return p5.pathToArray}});Object.defineProperty($i,"subscribe",{enumerable:!0,get:function(){return AC.subscribe}});var p5=Df(),sT=Uf(),AC=bC(),Iv=Ll()});var PC=F(vv=>{"use strict";m();T();N();Object.defineProperty(vv,"__esModule",{value:!0});vv.NoDeprecatedCustomRule=m5;var gv=Lr(),Mf=et(),_v=Bt();function m5(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,gv.invariant)(!1),e.reportError(new Mf.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 Mf.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,gv.invariant)(!1),e.reportError(new Mf.GraphQLError(`Field "${a.name}.${o.name}" argument "${n.name}" is deprecated. ${r}`,{nodes:t}))}}},ObjectField(t){let n=(0,_v.getNamedType)(e.getParentInputType());if((0,_v.isInputObjectType)(n)){let r=n.getFields()[t.name.value],i=r==null?void 0:r.deprecationReason;i!=null&&e.reportError(new Mf.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,_v.getNamedType)(e.getInputType());i!=null||(0,gv.invariant)(!1),e.reportError(new Mf.GraphQLError(`The enum value "${i.name}.${n.name}" is deprecated. ${r}`,{nodes:t}))}}}}});var FC=F(Sv=>{"use strict";m();T();N();Object.defineProperty(Sv,"__esModule",{value:!0});Sv.NoSchemaIntrospectionCustomRule=h5;var N5=et(),T5=Bt(),E5=qi();function h5(e){return{Field(t){let n=(0,T5.getNamedType)(e.getType());n&&(0,E5.isIntrospectionType)(n)&&e.reportError(new N5.GraphQLError(`GraphQL introspection has been disabled, but the requested query contained the field "${t.name.value}".`,{nodes:t}))}}}});var LC=F(pt=>{"use strict";m();T();N();Object.defineProperty(pt,"__esModule",{value:!0});Object.defineProperty(pt,"ExecutableDefinitionsRule",{enumerable:!0,get:function(){return g5.ExecutableDefinitionsRule}});Object.defineProperty(pt,"FieldsOnCorrectTypeRule",{enumerable:!0,get:function(){return _5.FieldsOnCorrectTypeRule}});Object.defineProperty(pt,"FragmentsOnCompositeTypesRule",{enumerable:!0,get:function(){return v5.FragmentsOnCompositeTypesRule}});Object.defineProperty(pt,"KnownArgumentNamesRule",{enumerable:!0,get:function(){return S5.KnownArgumentNamesRule}});Object.defineProperty(pt,"KnownDirectivesRule",{enumerable:!0,get:function(){return O5.KnownDirectivesRule}});Object.defineProperty(pt,"KnownFragmentNamesRule",{enumerable:!0,get:function(){return D5.KnownFragmentNamesRule}});Object.defineProperty(pt,"KnownTypeNamesRule",{enumerable:!0,get:function(){return b5.KnownTypeNamesRule}});Object.defineProperty(pt,"LoneAnonymousOperationRule",{enumerable:!0,get:function(){return A5.LoneAnonymousOperationRule}});Object.defineProperty(pt,"LoneSchemaDefinitionRule",{enumerable:!0,get:function(){return J5.LoneSchemaDefinitionRule}});Object.defineProperty(pt,"MaxIntrospectionDepthRule",{enumerable:!0,get:function(){return Y5.MaxIntrospectionDepthRule}});Object.defineProperty(pt,"NoDeprecatedCustomRule",{enumerable:!0,get:function(){return n9.NoDeprecatedCustomRule}});Object.defineProperty(pt,"NoFragmentCyclesRule",{enumerable:!0,get:function(){return R5.NoFragmentCyclesRule}});Object.defineProperty(pt,"NoSchemaIntrospectionCustomRule",{enumerable:!0,get:function(){return r9.NoSchemaIntrospectionCustomRule}});Object.defineProperty(pt,"NoUndefinedVariablesRule",{enumerable:!0,get:function(){return P5.NoUndefinedVariablesRule}});Object.defineProperty(pt,"NoUnusedFragmentsRule",{enumerable:!0,get:function(){return F5.NoUnusedFragmentsRule}});Object.defineProperty(pt,"NoUnusedVariablesRule",{enumerable:!0,get:function(){return w5.NoUnusedVariablesRule}});Object.defineProperty(pt,"OverlappingFieldsCanBeMergedRule",{enumerable:!0,get:function(){return L5.OverlappingFieldsCanBeMergedRule}});Object.defineProperty(pt,"PossibleFragmentSpreadsRule",{enumerable:!0,get:function(){return C5.PossibleFragmentSpreadsRule}});Object.defineProperty(pt,"PossibleTypeExtensionsRule",{enumerable:!0,get:function(){return t9.PossibleTypeExtensionsRule}});Object.defineProperty(pt,"ProvidedRequiredArgumentsRule",{enumerable:!0,get:function(){return U5.ProvidedRequiredArgumentsRule}});Object.defineProperty(pt,"ScalarLeafsRule",{enumerable:!0,get:function(){return B5.ScalarLeafsRule}});Object.defineProperty(pt,"SingleFieldSubscriptionsRule",{enumerable:!0,get:function(){return k5.SingleFieldSubscriptionsRule}});Object.defineProperty(pt,"UniqueArgumentDefinitionNamesRule",{enumerable:!0,get:function(){return Z5.UniqueArgumentDefinitionNamesRule}});Object.defineProperty(pt,"UniqueArgumentNamesRule",{enumerable:!0,get:function(){return M5.UniqueArgumentNamesRule}});Object.defineProperty(pt,"UniqueDirectiveNamesRule",{enumerable:!0,get:function(){return e9.UniqueDirectiveNamesRule}});Object.defineProperty(pt,"UniqueDirectivesPerLocationRule",{enumerable:!0,get:function(){return x5.UniqueDirectivesPerLocationRule}});Object.defineProperty(pt,"UniqueEnumValueNamesRule",{enumerable:!0,get:function(){return W5.UniqueEnumValueNamesRule}});Object.defineProperty(pt,"UniqueFieldDefinitionNamesRule",{enumerable:!0,get:function(){return X5.UniqueFieldDefinitionNamesRule}});Object.defineProperty(pt,"UniqueFragmentNamesRule",{enumerable:!0,get:function(){return q5.UniqueFragmentNamesRule}});Object.defineProperty(pt,"UniqueInputFieldNamesRule",{enumerable:!0,get:function(){return V5.UniqueInputFieldNamesRule}});Object.defineProperty(pt,"UniqueOperationNamesRule",{enumerable:!0,get:function(){return j5.UniqueOperationNamesRule}});Object.defineProperty(pt,"UniqueOperationTypesRule",{enumerable:!0,get:function(){return z5.UniqueOperationTypesRule}});Object.defineProperty(pt,"UniqueTypeNamesRule",{enumerable:!0,get:function(){return H5.UniqueTypeNamesRule}});Object.defineProperty(pt,"UniqueVariableNamesRule",{enumerable:!0,get:function(){return K5.UniqueVariableNamesRule}});Object.defineProperty(pt,"ValidationContext",{enumerable:!0,get:function(){return I5.ValidationContext}});Object.defineProperty(pt,"ValuesOfCorrectTypeRule",{enumerable:!0,get:function(){return $5.ValuesOfCorrectTypeRule}});Object.defineProperty(pt,"VariablesAreInputTypesRule",{enumerable:!0,get:function(){return G5.VariablesAreInputTypesRule}});Object.defineProperty(pt,"VariablesInAllowedPositionRule",{enumerable:!0,get:function(){return Q5.VariablesInAllowedPositionRule}});Object.defineProperty(pt,"recommendedRules",{enumerable:!0,get:function(){return wC.recommendedRules}});Object.defineProperty(pt,"specifiedRules",{enumerable:!0,get:function(){return wC.specifiedRules}});Object.defineProperty(pt,"validate",{enumerable:!0,get:function(){return y5.validate}});var y5=Ul(),I5=nv(),wC=Z_(),g5=Tg(),_5=hg(),v5=Ig(),S5=gg(),O5=Og(),D5=bg(),b5=Pg(),A5=wg(),R5=Mg(),P5=qg(),F5=jg(),w5=$g(),L5=e_(),C5=r_(),U5=o_(),B5=c_(),k5=h_(),M5=v_(),x5=A_(),q5=U_(),V5=k_(),j5=x_(),K5=G_(),$5=J_(),G5=H_(),Q5=X_(),Y5=Bg(),J5=Cg(),z5=V_(),H5=K_(),W5=P_(),X5=L_(),Z5=g_(),e9=O_(),t9=a_(),n9=PC(),r9=FC()});var CC=F(_c=>{"use strict";m();T();N();Object.defineProperty(_c,"__esModule",{value:!0});Object.defineProperty(_c,"GraphQLError",{enumerable:!0,get:function(){return Ov.GraphQLError}});Object.defineProperty(_c,"formatError",{enumerable:!0,get:function(){return Ov.formatError}});Object.defineProperty(_c,"locatedError",{enumerable:!0,get:function(){return a9.locatedError}});Object.defineProperty(_c,"printError",{enumerable:!0,get:function(){return Ov.printError}});Object.defineProperty(_c,"syntaxError",{enumerable:!0,get:function(){return i9.syntaxError}});var Ov=et(),i9=nN(),a9=XN()});var bv=F(Dv=>{"use strict";m();T();N();Object.defineProperty(Dv,"__esModule",{value:!0});Dv.getIntrospectionQuery=s9;function s9(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 u=t.oneOf?"isOneOf":"";return` +`))}});var yz=D(nR=>{"use strict";d();p();f();Object.defineProperty(nR,"__esModule",{value:!0});nR.memoize3=jDe;function jDe(e){let t;return function(n,i,a){t===void 0&&(t=new WeakMap);let o=t.get(n);o===void 0&&(o=new WeakMap,t.set(n,o));let u=o.get(i);u===void 0&&(u=new WeakMap,o.set(i,u));let l=u.get(a);return l===void 0&&(l=e(n,i,a),u.set(a,l)),l}}});var Nz=D(iR=>{"use strict";d();p();f();Object.defineProperty(iR,"__esModule",{value:!0});iR.promiseForObject=VDe;function VDe(e){return Promise.all(Object.values(e)).then(t=>{let r=Object.create(null);for(let[n,i]of Object.keys(e).entries())r[i]=t[n];return r})}});var Tz=D(aR=>{"use strict";d();p();f();Object.defineProperty(aR,"__esModule",{value:!0});aR.promiseReduce=$De;var KDe=PE();function $De(e,t,r){let n=r;for(let i of e)n=(0,KDe.isPromise)(n)?n.then(a=>t(a,i)):t(n,i);return n}});var Ez=D(sR=>{"use strict";d();p();f();Object.defineProperty(sR,"__esModule",{value:!0});sR.toError=QDe;var GDe=ur();function QDe(e){return e instanceof Error?e:new oR(e)}var oR=class extends Error{constructor(t){super("Unexpected error value: "+(0,GDe.inspect)(t)),this.name="NonErrorThrown",this.thrownValue=t}}});var wg=D(uR=>{"use strict";d();p();f();Object.defineProperty(uR,"__esModule",{value:!0});uR.locatedError=zDe;var YDe=Ez(),JDe=at();function zDe(e,t,r){var n;let i=(0,YDe.toError)(e);return HDe(i)?i:new JDe.GraphQLError(i.message,{nodes:(n=i.nodes)!==null&&n!==void 0?n:t,source:i.source,positions:i.positions,path:r,originalError:i})}function HDe(e){return Array.isArray(e.path)}});var jh=D(Na=>{"use strict";d();p();f();Object.defineProperty(Na,"__esModule",{value:!0});Na.assertValidExecutionArguments=bz;Na.buildExecutionContext=Az;Na.buildResolveInfo=wz;Na.defaultTypeResolver=Na.defaultFieldResolver=void 0;Na.execute=Dz;Na.executeSync=nbe;Na.getFieldDef=Fz;var lR=si(),td=ur(),WDe=Xn(),XDe=dg(),pR=wo(),to=PE(),ZDe=yz(),rd=Fh(),gz=Nz(),ebe=Tz(),ya=at(),Fg=wg(),cR=Po(),Iz=jt(),Qc=Vt(),Yf=ma(),tbe=Rh(),Sz=Dg(),Oz=$f(),rbe=(0,ZDe.memoize3)((e,t,r)=>(0,Sz.collectSubfields)(e.schema,e.fragments,e.variableValues,t,r));function Dz(e){arguments.length<2||(0,lR.devAssert)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let{schema:t,document:r,variableValues:n,rootValue:i}=e;bz(t,r,n);let a=Az(e);if(!("schema"in a))return{errors:a};try{let{operation:o}=a,u=ibe(a,o,i);return(0,to.isPromise)(u)?u.then(l=>Pg(l,a.errors),l=>(a.errors.push(l),Pg(null,a.errors))):Pg(u,a.errors)}catch(o){return a.errors.push(o),Pg(null,a.errors)}}function nbe(e){let t=Dz(e);if((0,to.isPromise)(t))throw new Error("GraphQL execution failed to complete synchronously.");return t}function Pg(e,t){return t.length===0?{data:e}:{errors:t,data:e}}function bz(e,t,r){t||(0,lR.devAssert)(!1,"Must provide document."),(0,tbe.assertValidSchema)(e),r==null||(0,pR.isObjectLike)(r)||(0,lR.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 Az(e){var t,r;let{schema:n,document:i,rootValue:a,contextValue:o,variableValues:u,operationName:l,fieldResolver:m,typeResolver:h,subscribeFieldResolver:N}=e,T,O=Object.create(null);for(let M of i.definitions)switch(M.kind){case Iz.Kind.OPERATION_DEFINITION:if(l==null){if(T!==void 0)return[new ya.GraphQLError("Must provide operation name if query contains multiple operations.")];T=M}else((t=M.name)===null||t===void 0?void 0:t.value)===l&&(T=M);break;case Iz.Kind.FRAGMENT_DEFINITION:O[M.name.value]=M;break;default:}if(!T)return l!=null?[new ya.GraphQLError(`Unknown operation named "${l}".`)]:[new ya.GraphQLError("Must provide an operation.")];let R=(r=T.variableDefinitions)!==null&&r!==void 0?r:[],C=(0,Oz.getVariableValues)(n,R,u!=null?u:{},{maxErrors:50});return C.errors?C.errors:{schema:n,fragments:O,rootValue:a,contextValue:o,operation:T,variableValues:C.coerced,fieldResolver:m!=null?m:fR,typeResolver:h!=null?h:Pz,subscribeFieldResolver:N!=null?N:fR,errors:[]}}function ibe(e,t,r){let n=e.schema.getRootType(t.operation);if(n==null)throw new ya.GraphQLError(`Schema is not configured to execute ${t.operation} operation.`,{nodes:t});let i=(0,Sz.collectFields)(e.schema,e.fragments,e.variableValues,n,t.selectionSet),a=void 0;switch(t.operation){case cR.OperationTypeNode.QUERY:return Lg(e,n,r,a,i);case cR.OperationTypeNode.MUTATION:return abe(e,n,r,a,i);case cR.OperationTypeNode.SUBSCRIPTION:return Lg(e,n,r,a,i)}}function abe(e,t,r,n,i){return(0,ebe.promiseReduce)(i.entries(),(a,[o,u])=>{let l=(0,rd.addPath)(n,o,t.name),m=Rz(e,t,r,u,l);return m===void 0?a:(0,to.isPromise)(m)?m.then(h=>(a[o]=h,a)):(a[o]=m,a)},Object.create(null))}function Lg(e,t,r,n,i){let a=Object.create(null),o=!1;try{for(let[u,l]of i.entries()){let m=(0,rd.addPath)(n,u,t.name),h=Rz(e,t,r,l,m);h!==void 0&&(a[u]=h,(0,to.isPromise)(h)&&(o=!0))}}catch(u){if(o)return(0,gz.promiseForObject)(a).finally(()=>{throw u});throw u}return o?(0,gz.promiseForObject)(a):a}function Rz(e,t,r,n,i){var a;let o=Fz(e.schema,t,n[0]);if(!o)return;let u=o.type,l=(a=o.resolve)!==null&&a!==void 0?a:e.fieldResolver,m=wz(e,o,n,t,i);try{let h=(0,Oz.getArgumentValues)(o,n[0],e.variableValues),N=e.contextValue,T=l(r,h,N,m),O;return(0,to.isPromise)(T)?O=T.then(R=>Mh(e,u,n,m,i,R)):O=Mh(e,u,n,m,i,T),(0,to.isPromise)(O)?O.then(void 0,R=>{let C=(0,Fg.locatedError)(R,n,(0,rd.pathToArray)(i));return Cg(C,u,e)}):O}catch(h){let N=(0,Fg.locatedError)(h,n,(0,rd.pathToArray)(i));return Cg(N,u,e)}}function wz(e,t,r,n,i){return{fieldName:t.name,fieldNodes:r,returnType:t.type,parentType:n,path:i,schema:e.schema,fragments:e.fragments,rootValue:e.rootValue,operation:e.operation,variableValues:e.variableValues}}function Cg(e,t,r){if((0,Qc.isNonNullType)(t))throw e;return r.errors.push(e),null}function Mh(e,t,r,n,i,a){if(a instanceof Error)throw a;if((0,Qc.isNonNullType)(t)){let o=Mh(e,t.ofType,r,n,i,a);if(o===null)throw new Error(`Cannot return null for non-nullable field ${n.parentType.name}.${n.fieldName}.`);return o}if(a==null)return null;if((0,Qc.isListType)(t))return obe(e,t,r,n,i,a);if((0,Qc.isLeafType)(t))return sbe(t,a);if((0,Qc.isAbstractType)(t))return ube(e,t,r,n,i,a);if((0,Qc.isObjectType)(t))return dR(e,t,r,n,i,a);(0,WDe.invariant)(!1,"Cannot complete value of unexpected output type: "+(0,td.inspect)(t))}function obe(e,t,r,n,i,a){if(!(0,XDe.isIterableObject)(a))throw new ya.GraphQLError(`Expected Iterable, but did not find one for field "${n.parentType.name}.${n.fieldName}".`);let o=t.ofType,u=!1,l=Array.from(a,(m,h)=>{let N=(0,rd.addPath)(i,h,void 0);try{let T;return(0,to.isPromise)(m)?T=m.then(O=>Mh(e,o,r,n,N,O)):T=Mh(e,o,r,n,N,m),(0,to.isPromise)(T)?(u=!0,T.then(void 0,O=>{let R=(0,Fg.locatedError)(O,r,(0,rd.pathToArray)(N));return Cg(R,o,e)})):T}catch(T){let O=(0,Fg.locatedError)(T,r,(0,rd.pathToArray)(N));return Cg(O,o,e)}});return u?Promise.all(l):l}function sbe(e,t){let r=e.serialize(t);if(r==null)throw new Error(`Expected \`${(0,td.inspect)(e)}.serialize(${(0,td.inspect)(t)})\` to return non-nullable value, returned: ${(0,td.inspect)(r)}`);return r}function ube(e,t,r,n,i,a){var o;let u=(o=t.resolveType)!==null&&o!==void 0?o:e.typeResolver,l=e.contextValue,m=u(a,l,n,t);return(0,to.isPromise)(m)?m.then(h=>dR(e,vz(h,e,t,r,n,a),r,n,i,a)):dR(e,vz(m,e,t,r,n,a),r,n,i,a)}function vz(e,t,r,n,i,a){if(e==null)throw new ya.GraphQLError(`Abstract type "${r.name}" must resolve to an Object type at runtime for field "${i.parentType.name}.${i.fieldName}". Either the "${r.name}" type should provide a "resolveType" function or each possible type should provide an "isTypeOf" function.`,n);if((0,Qc.isObjectType)(e))throw new ya.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 ya.GraphQLError(`Abstract type "${r.name}" must resolve to an Object type at runtime for field "${i.parentType.name}.${i.fieldName}" with value ${(0,td.inspect)(a)}, received "${(0,td.inspect)(e)}".`);let o=t.schema.getType(e);if(o==null)throw new ya.GraphQLError(`Abstract type "${r.name}" was resolved to a type "${e}" that does not exist inside the schema.`,{nodes:n});if(!(0,Qc.isObjectType)(o))throw new ya.GraphQLError(`Abstract type "${r.name}" was resolved to a non-object type "${e}".`,{nodes:n});if(!t.schema.isSubType(r,o))throw new ya.GraphQLError(`Runtime Object type "${o.name}" is not a possible type for "${r.name}".`,{nodes:n});return o}function dR(e,t,r,n,i,a){let o=rbe(e,t,r);if(t.isTypeOf){let u=t.isTypeOf(a,e.contextValue,n);if((0,to.isPromise)(u))return u.then(l=>{if(!l)throw _z(t,a,r);return Lg(e,t,a,i,o)});if(!u)throw _z(t,a,r)}return Lg(e,t,a,i,o)}function _z(e,t,r){return new ya.GraphQLError(`Expected value of type "${e.name}" but got: ${(0,td.inspect)(t)}.`,{nodes:r})}var Pz=function(e,t,r,n){if((0,pR.isObjectLike)(e)&&typeof e.__typename=="string")return e.__typename;let i=r.schema.getPossibleTypes(n),a=[];for(let o=0;o{for(let u=0;u{"use strict";d();p();f();Object.defineProperty(Bg,"__esModule",{value:!0});Bg.graphql=hbe;Bg.graphqlSync=ybe;var cbe=si(),lbe=PE(),dbe=Cf(),fbe=Rh(),pbe=Qf(),mbe=jh();function hbe(e){return new Promise(t=>t(Lz(e)))}function ybe(e){let t=Lz(e);if((0,lbe.isPromise)(t))throw new Error("GraphQL execution failed to complete synchronously.");return t}function Lz(e){arguments.length<2||(0,cbe.devAssert)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let{schema:t,source:r,rootValue:n,contextValue:i,variableValues:a,operationName:o,fieldResolver:u,typeResolver:l}=e,m=(0,fbe.validateSchema)(t);if(m.length>0)return{errors:m};let h;try{h=(0,dbe.parse)(r)}catch(T){return{errors:[T]}}let N=(0,pbe.validate)(t,h);return N.length>0?{errors:N}:(0,mbe.execute)({schema:t,document:h,rootValue:n,contextValue:i,variableValues:a,operationName:o,fieldResolver:u,typeResolver:l})}});var kz=D(Ee=>{"use strict";d();p();f();Object.defineProperty(Ee,"__esModule",{value:!0});Object.defineProperty(Ee,"DEFAULT_DEPRECATION_REASON",{enumerable:!0,get:function(){return ro.DEFAULT_DEPRECATION_REASON}});Object.defineProperty(Ee,"GRAPHQL_MAX_INT",{enumerable:!0,get:function(){return Ls.GRAPHQL_MAX_INT}});Object.defineProperty(Ee,"GRAPHQL_MIN_INT",{enumerable:!0,get:function(){return Ls.GRAPHQL_MIN_INT}});Object.defineProperty(Ee,"GraphQLBoolean",{enumerable:!0,get:function(){return Ls.GraphQLBoolean}});Object.defineProperty(Ee,"GraphQLDeprecatedDirective",{enumerable:!0,get:function(){return ro.GraphQLDeprecatedDirective}});Object.defineProperty(Ee,"GraphQLDirective",{enumerable:!0,get:function(){return ro.GraphQLDirective}});Object.defineProperty(Ee,"GraphQLEnumType",{enumerable:!0,get:function(){return dt.GraphQLEnumType}});Object.defineProperty(Ee,"GraphQLFloat",{enumerable:!0,get:function(){return Ls.GraphQLFloat}});Object.defineProperty(Ee,"GraphQLID",{enumerable:!0,get:function(){return Ls.GraphQLID}});Object.defineProperty(Ee,"GraphQLIncludeDirective",{enumerable:!0,get:function(){return ro.GraphQLIncludeDirective}});Object.defineProperty(Ee,"GraphQLInputObjectType",{enumerable:!0,get:function(){return dt.GraphQLInputObjectType}});Object.defineProperty(Ee,"GraphQLInt",{enumerable:!0,get:function(){return Ls.GraphQLInt}});Object.defineProperty(Ee,"GraphQLInterfaceType",{enumerable:!0,get:function(){return dt.GraphQLInterfaceType}});Object.defineProperty(Ee,"GraphQLList",{enumerable:!0,get:function(){return dt.GraphQLList}});Object.defineProperty(Ee,"GraphQLNonNull",{enumerable:!0,get:function(){return dt.GraphQLNonNull}});Object.defineProperty(Ee,"GraphQLObjectType",{enumerable:!0,get:function(){return dt.GraphQLObjectType}});Object.defineProperty(Ee,"GraphQLOneOfDirective",{enumerable:!0,get:function(){return ro.GraphQLOneOfDirective}});Object.defineProperty(Ee,"GraphQLScalarType",{enumerable:!0,get:function(){return dt.GraphQLScalarType}});Object.defineProperty(Ee,"GraphQLSchema",{enumerable:!0,get:function(){return mR.GraphQLSchema}});Object.defineProperty(Ee,"GraphQLSkipDirective",{enumerable:!0,get:function(){return ro.GraphQLSkipDirective}});Object.defineProperty(Ee,"GraphQLSpecifiedByDirective",{enumerable:!0,get:function(){return ro.GraphQLSpecifiedByDirective}});Object.defineProperty(Ee,"GraphQLString",{enumerable:!0,get:function(){return Ls.GraphQLString}});Object.defineProperty(Ee,"GraphQLUnionType",{enumerable:!0,get:function(){return dt.GraphQLUnionType}});Object.defineProperty(Ee,"SchemaMetaFieldDef",{enumerable:!0,get:function(){return Oi.SchemaMetaFieldDef}});Object.defineProperty(Ee,"TypeKind",{enumerable:!0,get:function(){return Oi.TypeKind}});Object.defineProperty(Ee,"TypeMetaFieldDef",{enumerable:!0,get:function(){return Oi.TypeMetaFieldDef}});Object.defineProperty(Ee,"TypeNameMetaFieldDef",{enumerable:!0,get:function(){return Oi.TypeNameMetaFieldDef}});Object.defineProperty(Ee,"__Directive",{enumerable:!0,get:function(){return Oi.__Directive}});Object.defineProperty(Ee,"__DirectiveLocation",{enumerable:!0,get:function(){return Oi.__DirectiveLocation}});Object.defineProperty(Ee,"__EnumValue",{enumerable:!0,get:function(){return Oi.__EnumValue}});Object.defineProperty(Ee,"__Field",{enumerable:!0,get:function(){return Oi.__Field}});Object.defineProperty(Ee,"__InputValue",{enumerable:!0,get:function(){return Oi.__InputValue}});Object.defineProperty(Ee,"__Schema",{enumerable:!0,get:function(){return Oi.__Schema}});Object.defineProperty(Ee,"__Type",{enumerable:!0,get:function(){return Oi.__Type}});Object.defineProperty(Ee,"__TypeKind",{enumerable:!0,get:function(){return Oi.__TypeKind}});Object.defineProperty(Ee,"assertAbstractType",{enumerable:!0,get:function(){return dt.assertAbstractType}});Object.defineProperty(Ee,"assertCompositeType",{enumerable:!0,get:function(){return dt.assertCompositeType}});Object.defineProperty(Ee,"assertDirective",{enumerable:!0,get:function(){return ro.assertDirective}});Object.defineProperty(Ee,"assertEnumType",{enumerable:!0,get:function(){return dt.assertEnumType}});Object.defineProperty(Ee,"assertEnumValueName",{enumerable:!0,get:function(){return Uz.assertEnumValueName}});Object.defineProperty(Ee,"assertInputObjectType",{enumerable:!0,get:function(){return dt.assertInputObjectType}});Object.defineProperty(Ee,"assertInputType",{enumerable:!0,get:function(){return dt.assertInputType}});Object.defineProperty(Ee,"assertInterfaceType",{enumerable:!0,get:function(){return dt.assertInterfaceType}});Object.defineProperty(Ee,"assertLeafType",{enumerable:!0,get:function(){return dt.assertLeafType}});Object.defineProperty(Ee,"assertListType",{enumerable:!0,get:function(){return dt.assertListType}});Object.defineProperty(Ee,"assertName",{enumerable:!0,get:function(){return Uz.assertName}});Object.defineProperty(Ee,"assertNamedType",{enumerable:!0,get:function(){return dt.assertNamedType}});Object.defineProperty(Ee,"assertNonNullType",{enumerable:!0,get:function(){return dt.assertNonNullType}});Object.defineProperty(Ee,"assertNullableType",{enumerable:!0,get:function(){return dt.assertNullableType}});Object.defineProperty(Ee,"assertObjectType",{enumerable:!0,get:function(){return dt.assertObjectType}});Object.defineProperty(Ee,"assertOutputType",{enumerable:!0,get:function(){return dt.assertOutputType}});Object.defineProperty(Ee,"assertScalarType",{enumerable:!0,get:function(){return dt.assertScalarType}});Object.defineProperty(Ee,"assertSchema",{enumerable:!0,get:function(){return mR.assertSchema}});Object.defineProperty(Ee,"assertType",{enumerable:!0,get:function(){return dt.assertType}});Object.defineProperty(Ee,"assertUnionType",{enumerable:!0,get:function(){return dt.assertUnionType}});Object.defineProperty(Ee,"assertValidSchema",{enumerable:!0,get:function(){return Bz.assertValidSchema}});Object.defineProperty(Ee,"assertWrappingType",{enumerable:!0,get:function(){return dt.assertWrappingType}});Object.defineProperty(Ee,"getNamedType",{enumerable:!0,get:function(){return dt.getNamedType}});Object.defineProperty(Ee,"getNullableType",{enumerable:!0,get:function(){return dt.getNullableType}});Object.defineProperty(Ee,"introspectionTypes",{enumerable:!0,get:function(){return Oi.introspectionTypes}});Object.defineProperty(Ee,"isAbstractType",{enumerable:!0,get:function(){return dt.isAbstractType}});Object.defineProperty(Ee,"isCompositeType",{enumerable:!0,get:function(){return dt.isCompositeType}});Object.defineProperty(Ee,"isDirective",{enumerable:!0,get:function(){return ro.isDirective}});Object.defineProperty(Ee,"isEnumType",{enumerable:!0,get:function(){return dt.isEnumType}});Object.defineProperty(Ee,"isInputObjectType",{enumerable:!0,get:function(){return dt.isInputObjectType}});Object.defineProperty(Ee,"isInputType",{enumerable:!0,get:function(){return dt.isInputType}});Object.defineProperty(Ee,"isInterfaceType",{enumerable:!0,get:function(){return dt.isInterfaceType}});Object.defineProperty(Ee,"isIntrospectionType",{enumerable:!0,get:function(){return Oi.isIntrospectionType}});Object.defineProperty(Ee,"isLeafType",{enumerable:!0,get:function(){return dt.isLeafType}});Object.defineProperty(Ee,"isListType",{enumerable:!0,get:function(){return dt.isListType}});Object.defineProperty(Ee,"isNamedType",{enumerable:!0,get:function(){return dt.isNamedType}});Object.defineProperty(Ee,"isNonNullType",{enumerable:!0,get:function(){return dt.isNonNullType}});Object.defineProperty(Ee,"isNullableType",{enumerable:!0,get:function(){return dt.isNullableType}});Object.defineProperty(Ee,"isObjectType",{enumerable:!0,get:function(){return dt.isObjectType}});Object.defineProperty(Ee,"isOutputType",{enumerable:!0,get:function(){return dt.isOutputType}});Object.defineProperty(Ee,"isRequiredArgument",{enumerable:!0,get:function(){return dt.isRequiredArgument}});Object.defineProperty(Ee,"isRequiredInputField",{enumerable:!0,get:function(){return dt.isRequiredInputField}});Object.defineProperty(Ee,"isScalarType",{enumerable:!0,get:function(){return dt.isScalarType}});Object.defineProperty(Ee,"isSchema",{enumerable:!0,get:function(){return mR.isSchema}});Object.defineProperty(Ee,"isSpecifiedDirective",{enumerable:!0,get:function(){return ro.isSpecifiedDirective}});Object.defineProperty(Ee,"isSpecifiedScalarType",{enumerable:!0,get:function(){return Ls.isSpecifiedScalarType}});Object.defineProperty(Ee,"isType",{enumerable:!0,get:function(){return dt.isType}});Object.defineProperty(Ee,"isUnionType",{enumerable:!0,get:function(){return dt.isUnionType}});Object.defineProperty(Ee,"isWrappingType",{enumerable:!0,get:function(){return dt.isWrappingType}});Object.defineProperty(Ee,"resolveObjMapThunk",{enumerable:!0,get:function(){return dt.resolveObjMapThunk}});Object.defineProperty(Ee,"resolveReadonlyArrayThunk",{enumerable:!0,get:function(){return dt.resolveReadonlyArrayThunk}});Object.defineProperty(Ee,"specifiedDirectives",{enumerable:!0,get:function(){return ro.specifiedDirectives}});Object.defineProperty(Ee,"specifiedScalarTypes",{enumerable:!0,get:function(){return Ls.specifiedScalarTypes}});Object.defineProperty(Ee,"validateSchema",{enumerable:!0,get:function(){return Bz.validateSchema}});var mR=Hl(),dt=Vt(),ro=_i(),Ls=Co(),Oi=ma(),Bz=Rh(),Uz=mh()});var xz=D(Jt=>{"use strict";d();p();f();Object.defineProperty(Jt,"__esModule",{value:!0});Object.defineProperty(Jt,"BREAK",{enumerable:!0,get:function(){return Vh.BREAK}});Object.defineProperty(Jt,"DirectiveLocation",{enumerable:!0,get:function(){return _be.DirectiveLocation}});Object.defineProperty(Jt,"Kind",{enumerable:!0,get:function(){return Ebe.Kind}});Object.defineProperty(Jt,"Lexer",{enumerable:!0,get:function(){return Ibe.Lexer}});Object.defineProperty(Jt,"Location",{enumerable:!0,get:function(){return hR.Location}});Object.defineProperty(Jt,"OperationTypeNode",{enumerable:!0,get:function(){return hR.OperationTypeNode}});Object.defineProperty(Jt,"Source",{enumerable:!0,get:function(){return Nbe.Source}});Object.defineProperty(Jt,"Token",{enumerable:!0,get:function(){return hR.Token}});Object.defineProperty(Jt,"TokenKind",{enumerable:!0,get:function(){return gbe.TokenKind}});Object.defineProperty(Jt,"getEnterLeaveForKind",{enumerable:!0,get:function(){return Vh.getEnterLeaveForKind}});Object.defineProperty(Jt,"getLocation",{enumerable:!0,get:function(){return Tbe.getLocation}});Object.defineProperty(Jt,"getVisitFn",{enumerable:!0,get:function(){return Vh.getVisitFn}});Object.defineProperty(Jt,"isConstValueNode",{enumerable:!0,get:function(){return qo.isConstValueNode}});Object.defineProperty(Jt,"isDefinitionNode",{enumerable:!0,get:function(){return qo.isDefinitionNode}});Object.defineProperty(Jt,"isExecutableDefinitionNode",{enumerable:!0,get:function(){return qo.isExecutableDefinitionNode}});Object.defineProperty(Jt,"isSelectionNode",{enumerable:!0,get:function(){return qo.isSelectionNode}});Object.defineProperty(Jt,"isTypeDefinitionNode",{enumerable:!0,get:function(){return qo.isTypeDefinitionNode}});Object.defineProperty(Jt,"isTypeExtensionNode",{enumerable:!0,get:function(){return qo.isTypeExtensionNode}});Object.defineProperty(Jt,"isTypeNode",{enumerable:!0,get:function(){return qo.isTypeNode}});Object.defineProperty(Jt,"isTypeSystemDefinitionNode",{enumerable:!0,get:function(){return qo.isTypeSystemDefinitionNode}});Object.defineProperty(Jt,"isTypeSystemExtensionNode",{enumerable:!0,get:function(){return qo.isTypeSystemExtensionNode}});Object.defineProperty(Jt,"isValueNode",{enumerable:!0,get:function(){return qo.isValueNode}});Object.defineProperty(Jt,"parse",{enumerable:!0,get:function(){return Ug.parse}});Object.defineProperty(Jt,"parseConstValue",{enumerable:!0,get:function(){return Ug.parseConstValue}});Object.defineProperty(Jt,"parseType",{enumerable:!0,get:function(){return Ug.parseType}});Object.defineProperty(Jt,"parseValue",{enumerable:!0,get:function(){return Ug.parseValue}});Object.defineProperty(Jt,"print",{enumerable:!0,get:function(){return vbe.print}});Object.defineProperty(Jt,"printLocation",{enumerable:!0,get:function(){return qz.printLocation}});Object.defineProperty(Jt,"printSourceLocation",{enumerable:!0,get:function(){return qz.printSourceLocation}});Object.defineProperty(Jt,"visit",{enumerable:!0,get:function(){return Vh.visit}});Object.defineProperty(Jt,"visitInParallel",{enumerable:!0,get:function(){return Vh.visitInParallel}});var Nbe=jE(),Tbe=FE(),qz=db(),Ebe=jt(),gbe=oh(),Ibe=kE(),Ug=Cf(),vbe=Gi(),Vh=$l(),hR=Po(),qo=Xl(),_be=Ff()});var Mz=D(yR=>{"use strict";d();p();f();Object.defineProperty(yR,"__esModule",{value:!0});yR.isAsyncIterable=Sbe;function Sbe(e){return typeof(e==null?void 0:e[Symbol.asyncIterator])=="function"}});var jz=D(NR=>{"use strict";d();p();f();Object.defineProperty(NR,"__esModule",{value:!0});NR.mapAsyncIterator=Obe;function Obe(e,t){let r=e[Symbol.asyncIterator]();function n(a){return oa(this,null,function*(){if(a.done)return a;try{return{value:yield t(a.value),done:!1}}catch(o){if(typeof r.return=="function")try{yield r.return()}catch(u){}throw o}})}return{next(){return oa(this,null,function*(){return n(yield r.next())})},return(){return oa(this,null,function*(){return typeof r.return=="function"?n(yield r.return()):{value:void 0,done:!0}})},throw(a){return oa(this,null,function*(){if(typeof r.throw=="function")return n(yield r.throw(a));throw a})},[Symbol.asyncIterator](){return this}}}});var Gz=D(kg=>{"use strict";d();p();f();Object.defineProperty(kg,"__esModule",{value:!0});kg.createSourceEventStream=$z;kg.subscribe=Fbe;var Dbe=si(),bbe=ur(),Kz=Mz(),Vz=Fh(),TR=at(),Abe=wg(),Rbe=Dg(),Kh=jh(),wbe=jz(),Pbe=$f();function Fbe(t){return oa(this,arguments,function*(e){arguments.length<2||(0,Dbe.devAssert)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let r=yield $z(e);if(!(0,Kz.isAsyncIterable)(r))return r;let n=i=>(0,Kh.execute)(G(q({},e),{rootValue:i}));return(0,wbe.mapAsyncIterator)(r,n)})}function Lbe(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 $z(...e){return oa(this,null,function*(){let t=Lbe(e),{schema:r,document:n,variableValues:i}=t;(0,Kh.assertValidExecutionArguments)(r,n,i);let a=(0,Kh.buildExecutionContext)(t);if(!("schema"in a))return{errors:a};try{let o=yield Cbe(a);if(!(0,Kz.isAsyncIterable)(o))throw new Error(`Subscription field must return Async Iterable. Received: ${(0,bbe.inspect)(o)}.`);return o}catch(o){if(o instanceof TR.GraphQLError)return{errors:[o]};throw o}})}function Cbe(e){return oa(this,null,function*(){let{schema:t,fragments:r,operation:n,variableValues:i,rootValue:a}=e,o=t.getSubscriptionType();if(o==null)throw new TR.GraphQLError("Schema is not configured to execute subscription operation.",{nodes:n});let u=(0,Rbe.collectFields)(t,r,i,o,n.selectionSet),[l,m]=[...u.entries()][0],h=(0,Kh.getFieldDef)(t,o,m[0]);if(!h){let R=m[0].name.value;throw new TR.GraphQLError(`The subscription field "${R}" is not defined.`,{nodes:m})}let N=(0,Vz.addPath)(void 0,l,o.name),T=(0,Kh.buildResolveInfo)(e,h,m,o,N);try{var O;let R=(0,Pbe.getArgumentValues)(h,m[0],i),C=e.contextValue,Y=yield((O=h.subscribe)!==null&&O!==void 0?O:e.subscribeFieldResolver)(a,R,C,T);if(Y instanceof Error)throw Y;return Y}catch(R){throw(0,Abe.locatedError)(R,m,(0,Vz.pathToArray)(N))}})}});var Yz=D(Ta=>{"use strict";d();p();f();Object.defineProperty(Ta,"__esModule",{value:!0});Object.defineProperty(Ta,"createSourceEventStream",{enumerable:!0,get:function(){return Qz.createSourceEventStream}});Object.defineProperty(Ta,"defaultFieldResolver",{enumerable:!0,get:function(){return qg.defaultFieldResolver}});Object.defineProperty(Ta,"defaultTypeResolver",{enumerable:!0,get:function(){return qg.defaultTypeResolver}});Object.defineProperty(Ta,"execute",{enumerable:!0,get:function(){return qg.execute}});Object.defineProperty(Ta,"executeSync",{enumerable:!0,get:function(){return qg.executeSync}});Object.defineProperty(Ta,"getArgumentValues",{enumerable:!0,get:function(){return ER.getArgumentValues}});Object.defineProperty(Ta,"getDirectiveValues",{enumerable:!0,get:function(){return ER.getDirectiveValues}});Object.defineProperty(Ta,"getVariableValues",{enumerable:!0,get:function(){return ER.getVariableValues}});Object.defineProperty(Ta,"responsePathAsArray",{enumerable:!0,get:function(){return Bbe.pathToArray}});Object.defineProperty(Ta,"subscribe",{enumerable:!0,get:function(){return Qz.subscribe}});var Bbe=Fh(),qg=jh(),Qz=Gz(),ER=$f()});var Jz=D(vR=>{"use strict";d();p();f();Object.defineProperty(vR,"__esModule",{value:!0});vR.NoDeprecatedCustomRule=Ube;var gR=Xn(),$h=at(),IR=Vt();function Ube(e){return{Field(t){let r=e.getFieldDef(),n=r==null?void 0:r.deprecationReason;if(r&&n!=null){let i=e.getParentType();i!=null||(0,gR.invariant)(!1),e.reportError(new $h.GraphQLError(`The field ${i.name}.${r.name} is deprecated. ${n}`,{nodes:t}))}},Argument(t){let r=e.getArgument(),n=r==null?void 0:r.deprecationReason;if(r&&n!=null){let i=e.getDirective();if(i!=null)e.reportError(new $h.GraphQLError(`Directive "@${i.name}" argument "${r.name}" is deprecated. ${n}`,{nodes:t}));else{let a=e.getParentType(),o=e.getFieldDef();a!=null&&o!=null||(0,gR.invariant)(!1),e.reportError(new $h.GraphQLError(`Field "${a.name}.${o.name}" argument "${r.name}" is deprecated. ${n}`,{nodes:t}))}}},ObjectField(t){let r=(0,IR.getNamedType)(e.getParentInputType());if((0,IR.isInputObjectType)(r)){let n=r.getFields()[t.name.value],i=n==null?void 0:n.deprecationReason;i!=null&&e.reportError(new $h.GraphQLError(`The input field ${r.name}.${n.name} is deprecated. ${i}`,{nodes:t}))}},EnumValue(t){let r=e.getEnumValue(),n=r==null?void 0:r.deprecationReason;if(r&&n!=null){let i=(0,IR.getNamedType)(e.getInputType());i!=null||(0,gR.invariant)(!1),e.reportError(new $h.GraphQLError(`The enum value "${i.name}.${r.name}" is deprecated. ${n}`,{nodes:t}))}}}}});var zz=D(_R=>{"use strict";d();p();f();Object.defineProperty(_R,"__esModule",{value:!0});_R.NoSchemaIntrospectionCustomRule=Mbe;var kbe=at(),qbe=Vt(),xbe=ma();function Mbe(e){return{Field(t){let r=(0,qbe.getNamedType)(e.getType());r&&(0,xbe.isIntrospectionType)(r)&&e.reportError(new kbe.GraphQLError(`GraphQL introspection has been disabled, but the requested query contained the field "${t.name.value}".`,{nodes:t}))}}}});var Wz=D(Tt=>{"use strict";d();p();f();Object.defineProperty(Tt,"__esModule",{value:!0});Object.defineProperty(Tt,"ExecutableDefinitionsRule",{enumerable:!0,get:function(){return Kbe.ExecutableDefinitionsRule}});Object.defineProperty(Tt,"FieldsOnCorrectTypeRule",{enumerable:!0,get:function(){return $be.FieldsOnCorrectTypeRule}});Object.defineProperty(Tt,"FragmentsOnCompositeTypesRule",{enumerable:!0,get:function(){return Gbe.FragmentsOnCompositeTypesRule}});Object.defineProperty(Tt,"KnownArgumentNamesRule",{enumerable:!0,get:function(){return Qbe.KnownArgumentNamesRule}});Object.defineProperty(Tt,"KnownDirectivesRule",{enumerable:!0,get:function(){return Ybe.KnownDirectivesRule}});Object.defineProperty(Tt,"KnownFragmentNamesRule",{enumerable:!0,get:function(){return Jbe.KnownFragmentNamesRule}});Object.defineProperty(Tt,"KnownTypeNamesRule",{enumerable:!0,get:function(){return zbe.KnownTypeNamesRule}});Object.defineProperty(Tt,"LoneAnonymousOperationRule",{enumerable:!0,get:function(){return Hbe.LoneAnonymousOperationRule}});Object.defineProperty(Tt,"LoneSchemaDefinitionRule",{enumerable:!0,get:function(){return y0e.LoneSchemaDefinitionRule}});Object.defineProperty(Tt,"MaxIntrospectionDepthRule",{enumerable:!0,get:function(){return h0e.MaxIntrospectionDepthRule}});Object.defineProperty(Tt,"NoDeprecatedCustomRule",{enumerable:!0,get:function(){return S0e.NoDeprecatedCustomRule}});Object.defineProperty(Tt,"NoFragmentCyclesRule",{enumerable:!0,get:function(){return Wbe.NoFragmentCyclesRule}});Object.defineProperty(Tt,"NoSchemaIntrospectionCustomRule",{enumerable:!0,get:function(){return O0e.NoSchemaIntrospectionCustomRule}});Object.defineProperty(Tt,"NoUndefinedVariablesRule",{enumerable:!0,get:function(){return Xbe.NoUndefinedVariablesRule}});Object.defineProperty(Tt,"NoUnusedFragmentsRule",{enumerable:!0,get:function(){return Zbe.NoUnusedFragmentsRule}});Object.defineProperty(Tt,"NoUnusedVariablesRule",{enumerable:!0,get:function(){return e0e.NoUnusedVariablesRule}});Object.defineProperty(Tt,"OverlappingFieldsCanBeMergedRule",{enumerable:!0,get:function(){return t0e.OverlappingFieldsCanBeMergedRule}});Object.defineProperty(Tt,"PossibleFragmentSpreadsRule",{enumerable:!0,get:function(){return r0e.PossibleFragmentSpreadsRule}});Object.defineProperty(Tt,"PossibleTypeExtensionsRule",{enumerable:!0,get:function(){return _0e.PossibleTypeExtensionsRule}});Object.defineProperty(Tt,"ProvidedRequiredArgumentsRule",{enumerable:!0,get:function(){return n0e.ProvidedRequiredArgumentsRule}});Object.defineProperty(Tt,"ScalarLeafsRule",{enumerable:!0,get:function(){return i0e.ScalarLeafsRule}});Object.defineProperty(Tt,"SingleFieldSubscriptionsRule",{enumerable:!0,get:function(){return a0e.SingleFieldSubscriptionsRule}});Object.defineProperty(Tt,"UniqueArgumentDefinitionNamesRule",{enumerable:!0,get:function(){return I0e.UniqueArgumentDefinitionNamesRule}});Object.defineProperty(Tt,"UniqueArgumentNamesRule",{enumerable:!0,get:function(){return o0e.UniqueArgumentNamesRule}});Object.defineProperty(Tt,"UniqueDirectiveNamesRule",{enumerable:!0,get:function(){return v0e.UniqueDirectiveNamesRule}});Object.defineProperty(Tt,"UniqueDirectivesPerLocationRule",{enumerable:!0,get:function(){return s0e.UniqueDirectivesPerLocationRule}});Object.defineProperty(Tt,"UniqueEnumValueNamesRule",{enumerable:!0,get:function(){return E0e.UniqueEnumValueNamesRule}});Object.defineProperty(Tt,"UniqueFieldDefinitionNamesRule",{enumerable:!0,get:function(){return g0e.UniqueFieldDefinitionNamesRule}});Object.defineProperty(Tt,"UniqueFragmentNamesRule",{enumerable:!0,get:function(){return u0e.UniqueFragmentNamesRule}});Object.defineProperty(Tt,"UniqueInputFieldNamesRule",{enumerable:!0,get:function(){return c0e.UniqueInputFieldNamesRule}});Object.defineProperty(Tt,"UniqueOperationNamesRule",{enumerable:!0,get:function(){return l0e.UniqueOperationNamesRule}});Object.defineProperty(Tt,"UniqueOperationTypesRule",{enumerable:!0,get:function(){return N0e.UniqueOperationTypesRule}});Object.defineProperty(Tt,"UniqueTypeNamesRule",{enumerable:!0,get:function(){return T0e.UniqueTypeNamesRule}});Object.defineProperty(Tt,"UniqueVariableNamesRule",{enumerable:!0,get:function(){return d0e.UniqueVariableNamesRule}});Object.defineProperty(Tt,"ValidationContext",{enumerable:!0,get:function(){return Vbe.ValidationContext}});Object.defineProperty(Tt,"ValuesOfCorrectTypeRule",{enumerable:!0,get:function(){return f0e.ValuesOfCorrectTypeRule}});Object.defineProperty(Tt,"VariablesAreInputTypesRule",{enumerable:!0,get:function(){return p0e.VariablesAreInputTypesRule}});Object.defineProperty(Tt,"VariablesInAllowedPositionRule",{enumerable:!0,get:function(){return m0e.VariablesInAllowedPositionRule}});Object.defineProperty(Tt,"recommendedRules",{enumerable:!0,get:function(){return Hz.recommendedRules}});Object.defineProperty(Tt,"specifiedRules",{enumerable:!0,get:function(){return Hz.specifiedRules}});Object.defineProperty(Tt,"validate",{enumerable:!0,get:function(){return jbe.validate}});var jbe=Qf(),Vbe=tR(),Hz=XA(),Kbe=h0(),$be=N0(),Gbe=E0(),Qbe=g0(),Ybe=S0(),Jbe=D0(),zbe=R0(),Hbe=P0(),Wbe=k0(),Xbe=x0(),Zbe=j0(),e0e=K0(),t0e=Z0(),r0e=rA(),n0e=oA(),i0e=uA(),a0e=NA(),o0e=vA(),s0e=bA(),u0e=CA(),c0e=UA(),l0e=qA(),d0e=$A(),f0e=YA(),p0e=zA(),m0e=WA(),h0e=B0(),y0e=L0(),N0e=MA(),T0e=VA(),E0e=RA(),g0e=FA(),I0e=gA(),v0e=SA(),_0e=iA(),S0e=Jz(),O0e=zz()});var Xz=D(nd=>{"use strict";d();p();f();Object.defineProperty(nd,"__esModule",{value:!0});Object.defineProperty(nd,"GraphQLError",{enumerable:!0,get:function(){return SR.GraphQLError}});Object.defineProperty(nd,"formatError",{enumerable:!0,get:function(){return SR.formatError}});Object.defineProperty(nd,"locatedError",{enumerable:!0,get:function(){return b0e.locatedError}});Object.defineProperty(nd,"printError",{enumerable:!0,get:function(){return SR.printError}});Object.defineProperty(nd,"syntaxError",{enumerable:!0,get:function(){return D0e.syntaxError}});var SR=at(),D0e=CE(),b0e=wg()});var DR=D(OR=>{"use strict";d();p();f();Object.defineProperty(OR,"__esModule",{value:!0});OR.getIntrospectionQuery=A0e;function A0e(e){let t=q({descriptions:!0,specifiedByUrl:!1,directiveIsRepeatable:!1,schemaDescription:!1,inputValueDeprecation:!1,oneOf:!1},e),r=t.descriptions?"description":"",n=t.specifiedByUrl?"specifiedByURL":"",i=t.directiveIsRepeatable?"isRepeatable":"",a=t.schemaDescription?r:"";function o(l){return t.inputValueDeprecation?l:""}let u=t.oneOf?"isOneOf":"";return` query IntrospectionQuery { __schema { ${a} @@ -83,7 +98,7 @@ In some cases, you need to provide options to alter GraphQL's execution behavior } directives { name - ${n} + ${r} ${i} locations args${o("(includeDeprecated: true)")} { @@ -96,12 +111,12 @@ In some cases, you need to provide options to alter GraphQL's execution behavior fragment FullType on __Type { kind name - ${n} ${r} + ${n} ${u} fields(includeDeprecated: true) { name - ${n} + ${r} args${o("(includeDeprecated: true)")} { ...InputValue } @@ -119,7 +134,7 @@ In some cases, you need to provide options to alter GraphQL's execution behavior } enumValues(includeDeprecated: true) { name - ${n} + ${r} isDeprecated deprecationReason } @@ -130,7 +145,7 @@ In some cases, you need to provide options to alter GraphQL's execution behavior fragment InputValue on __InputValue { name - ${n} + ${r} type { ...TypeRef } defaultValue ${o("isDeprecated")} @@ -177,307 +192,310 @@ In some cases, you need to provide options to alter GraphQL's execution behavior } } } - `}});var UC=F(Av=>{"use strict";m();T();N();Object.defineProperty(Av,"__esModule",{value:!0});Av.getOperationAST=u9;var o9=Ut();function u9(e,t){let n=null;for(let i of e.definitions)if(i.kind===o9.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 BC=F(Rv=>{"use strict";m();T();N();Object.defineProperty(Rv,"__esModule",{value:!0});Rv.getOperationRootType=c9;var oT=et();function c9(e,t){if(t.operation==="query"){let n=e.getQueryType();if(!n)throw new oT.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 oT.GraphQLError("Schema is not configured for mutations.",{nodes:t});return n}if(t.operation==="subscription"){let n=e.getSubscriptionType();if(!n)throw new oT.GraphQLError("Schema is not configured for subscriptions.",{nodes:t});return n}throw new oT.GraphQLError("Can only have query, mutation and subscription operations.",{nodes:t})}});var kC=F(Pv=>{"use strict";m();T();N();Object.defineProperty(Pv,"__esModule",{value:!0});Pv.introspectionFromSchema=m9;var l9=Lr(),d9=vl(),f9=Uf(),p9=bv();function m9(e,t){let n=M({specifiedByUrl:!0,directiveIsRepeatable:!0,schemaDescription:!0,inputValueDeprecation:!0,oneOf:!0},t),r=(0,d9.parse)((0,p9.getIntrospectionQuery)(n)),i=(0,f9.executeSync)({schema:e,document:r});return!i.errors&&i.data||(0,l9.invariant)(!1),i.data}});var xC=F(Fv=>{"use strict";m();T();N();Object.defineProperty(Fv,"__esModule",{value:!0});Fv.buildClientSchema=g9;var N9=Gr(),_i=nn(),MC=ja(),uT=sf(),T9=vl(),vi=Bt(),E9=ri(),Wa=qi(),h9=Qa(),y9=Nc(),I9=Pf();function g9(e,t){(0,MC.isObjectLike)(e)&&(0,MC.isObjectLike)(e.__schema)||(0,N9.devAssert)(!1,`Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: ${(0,_i.inspect)(e)}.`);let n=e.__schema,r=(0,uT.keyValMap)(n.types,Z=>Z.name,Z=>h(Z));for(let Z of[...h9.specifiedScalarTypes,...Wa.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,u=n.directives?n.directives.map(Be):[];return new y9.GraphQLSchema({description:n.description,query:i,mutation:a,subscription:o,types:Object.values(r),directives:u,assumeValid:t==null?void 0:t.assumeValid});function l(Z){if(Z.kind===Wa.TypeKind.LIST){let ge=Z.ofType;if(!ge)throw new Error("Decorated type deeper than introspection query.");return new vi.GraphQLList(l(ge))}if(Z.kind===Wa.TypeKind.NON_NULL){let ge=Z.ofType;if(!ge)throw new Error("Decorated type deeper than introspection query.");let It=l(ge);return new vi.GraphQLNonNull((0,vi.assertNullableType)(It))}return d(Z)}function d(Z){let ge=Z.name;if(!ge)throw new Error(`Unknown type reference: ${(0,_i.inspect)(Z)}.`);let It=r[ge];if(!It)throw new Error(`Invalid or incomplete schema, unknown type: ${ge}. Ensure that a full introspection query is used in order to build a client schema.`);return It}function p(Z){return(0,vi.assertObjectType)(d(Z))}function E(Z){return(0,vi.assertInterfaceType)(d(Z))}function h(Z){if(Z!=null&&Z.name!=null&&Z.kind!=null)switch(Z.kind){case Wa.TypeKind.SCALAR:return v(Z);case Wa.TypeKind.OBJECT:return U(Z);case Wa.TypeKind.INTERFACE:return q(Z);case Wa.TypeKind.UNION:return X(Z);case Wa.TypeKind.ENUM:return te(Z);case Wa.TypeKind.INPUT_OBJECT:return ae(Z)}let ge=(0,_i.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: ${ge}.`)}function v(Z){return new vi.GraphQLScalarType({name:Z.name,description:Z.description,specifiedByURL:Z.specifiedByURL})}function R(Z){if(Z.interfaces===null&&Z.kind===Wa.TypeKind.INTERFACE)return[];if(!Z.interfaces){let ge=(0,_i.inspect)(Z);throw new Error(`Introspection result missing interfaces: ${ge}.`)}return Z.interfaces.map(E)}function U(Z){return new vi.GraphQLObjectType({name:Z.name,description:Z.description,interfaces:()=>R(Z),fields:()=>me(Z)})}function q(Z){return new vi.GraphQLInterfaceType({name:Z.name,description:Z.description,interfaces:()=>R(Z),fields:()=>me(Z)})}function X(Z){if(!Z.possibleTypes){let ge=(0,_i.inspect)(Z);throw new Error(`Introspection result missing possibleTypes: ${ge}.`)}return new vi.GraphQLUnionType({name:Z.name,description:Z.description,types:()=>Z.possibleTypes.map(p)})}function te(Z){if(!Z.enumValues){let ge=(0,_i.inspect)(Z);throw new Error(`Introspection result missing enumValues: ${ge}.`)}return new vi.GraphQLEnumType({name:Z.name,description:Z.description,values:(0,uT.keyValMap)(Z.enumValues,ge=>ge.name,ge=>({description:ge.description,deprecationReason:ge.deprecationReason}))})}function ae(Z){if(!Z.inputFields){let ge=(0,_i.inspect)(Z);throw new Error(`Introspection result missing inputFields: ${ge}.`)}return new vi.GraphQLInputObjectType({name:Z.name,description:Z.description,fields:()=>_e(Z.inputFields),isOneOf:Z.isOneOf})}function me(Z){if(!Z.fields)throw new Error(`Introspection result missing fields: ${(0,_i.inspect)(Z)}.`);return(0,uT.keyValMap)(Z.fields,ge=>ge.name,ye)}function ye(Z){let ge=l(Z.type);if(!(0,vi.isOutputType)(ge)){let It=(0,_i.inspect)(ge);throw new Error(`Introspection must provide output type for fields, but received: ${It}.`)}if(!Z.args){let It=(0,_i.inspect)(Z);throw new Error(`Introspection result missing field args: ${It}.`)}return{description:Z.description,deprecationReason:Z.deprecationReason,type:ge,args:_e(Z.args)}}function _e(Z){return(0,uT.keyValMap)(Z,ge=>ge.name,Ee)}function Ee(Z){let ge=l(Z.type);if(!(0,vi.isInputType)(ge)){let sn=(0,_i.inspect)(ge);throw new Error(`Introspection must provide input type for arguments, but received: ${sn}.`)}let It=Z.defaultValue!=null?(0,I9.valueFromAST)((0,T9.parseValue)(Z.defaultValue),ge):void 0;return{description:Z.description,type:ge,defaultValue:It,deprecationReason:Z.deprecationReason}}function Be(Z){if(!Z.args){let ge=(0,_i.inspect)(Z);throw new Error(`Introspection result missing directive args: ${ge}.`)}if(!Z.locations){let ge=(0,_i.inspect)(Z);throw new Error(`Introspection result missing directive locations: ${ge}.`)}return new E9.GraphQLDirective({name:Z.name,description:Z.description,isRepeatable:Z.isRepeatable,locations:Z.locations.slice(),args:_e(Z.args)})}}});var Lv=F(lT=>{"use strict";m();T();N();Object.defineProperty(lT,"__esModule",{value:!0});lT.extendSchema=b9;lT.extendSchemaImpl=YC;var _9=Gr(),v9=nn(),S9=Lr(),O9=Eu(),xf=wI(),Gi=Ut(),qC=Ec(),On=Bt(),qf=ri(),GC=qi(),QC=Qa(),VC=Nc(),D9=Ul(),wv=Ll(),jC=Pf();function b9(e,t,n){(0,VC.assertSchema)(e),t!=null&&t.kind===Gi.Kind.DOCUMENT||(0,_9.devAssert)(!1,"Must provide valid Document AST."),(n==null?void 0:n.assumeValid)!==!0&&(n==null?void 0:n.assumeValidSDL)!==!0&&(0,D9.assertValidSDLExtension)(t,e);let r=e.toConfig(),i=YC(r,t,n);return r===i?e:new VC.GraphQLSchema(i)}function YC(e,t,n){var r,i,a,o;let u=[],l=Object.create(null),d=[],p,E=[];for(let se of t.definitions)if(se.kind===Gi.Kind.SCHEMA_DEFINITION)p=se;else if(se.kind===Gi.Kind.SCHEMA_EXTENSION)E.push(se);else if((0,qC.isTypeDefinitionNode)(se))u.push(se);else if((0,qC.isTypeExtensionNode)(se)){let Le=se.name.value,ve=l[Le];l[Le]=ve?ve.concat([se]):[se]}else se.kind===Gi.Kind.DIRECTIVE_DEFINITION&&d.push(se);if(Object.keys(l).length===0&&u.length===0&&d.length===0&&E.length===0&&p==null)return e;let h=Object.create(null);for(let se of e.types)h[se.name]=te(se);for(let se of u){var v;let Le=se.name.value;h[Le]=(v=KC[Le])!==null&&v!==void 0?v:Ln(se)}let R=M(M({query:e.query&&q(e.query),mutation:e.mutation&&q(e.mutation),subscription:e.subscription&&q(e.subscription)},p&&It([p])),It(E));return G(M({description:(r=p)===null||r===void 0||(i=r.description)===null||i===void 0?void 0:i.value},R),{types:Object.values(h),directives:[...e.directives.map(X),...d.map(En)],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(se){return(0,On.isListType)(se)?new On.GraphQLList(U(se.ofType)):(0,On.isNonNullType)(se)?new On.GraphQLNonNull(U(se.ofType)):q(se)}function q(se){return h[se.name]}function X(se){let Le=se.toConfig();return new qf.GraphQLDirective(G(M({},Le),{args:(0,xf.mapValue)(Le.args,ge)}))}function te(se){if((0,GC.isIntrospectionType)(se)||(0,QC.isSpecifiedScalarType)(se))return se;if((0,On.isScalarType)(se))return ye(se);if((0,On.isObjectType)(se))return _e(se);if((0,On.isInterfaceType)(se))return Ee(se);if((0,On.isUnionType)(se))return Be(se);if((0,On.isEnumType)(se))return me(se);if((0,On.isInputObjectType)(se))return ae(se);(0,S9.invariant)(!1,"Unexpected type: "+(0,v9.inspect)(se))}function ae(se){var Le;let ve=se.toConfig(),we=(Le=l[ve.name])!==null&&Le!==void 0?Le:[];return new On.GraphQLInputObjectType(G(M({},ve),{fields:()=>M(M({},(0,xf.mapValue)(ve.fields,Mt=>G(M({},Mt),{type:U(Mt.type)}))),wn(we)),extensionASTNodes:ve.extensionASTNodes.concat(we)}))}function me(se){var Le;let ve=se.toConfig(),we=(Le=l[se.name])!==null&&Le!==void 0?Le:[];return new On.GraphQLEnumType(G(M({},ve),{values:M(M({},ve.values),Ar(we)),extensionASTNodes:ve.extensionASTNodes.concat(we)}))}function ye(se){var Le;let ve=se.toConfig(),we=(Le=l[ve.name])!==null&&Le!==void 0?Le:[],Mt=ve.specifiedByURL;for(let ie of we){var J;Mt=(J=$C(ie))!==null&&J!==void 0?J:Mt}return new On.GraphQLScalarType(G(M({},ve),{specifiedByURL:Mt,extensionASTNodes:ve.extensionASTNodes.concat(we)}))}function _e(se){var Le;let ve=se.toConfig(),we=(Le=l[ve.name])!==null&&Le!==void 0?Le:[];return new On.GraphQLObjectType(G(M({},ve),{interfaces:()=>[...se.getInterfaces().map(q),...zn(we)],fields:()=>M(M({},(0,xf.mapValue)(ve.fields,Z)),$t(we)),extensionASTNodes:ve.extensionASTNodes.concat(we)}))}function Ee(se){var Le;let ve=se.toConfig(),we=(Le=l[ve.name])!==null&&Le!==void 0?Le:[];return new On.GraphQLInterfaceType(G(M({},ve),{interfaces:()=>[...se.getInterfaces().map(q),...zn(we)],fields:()=>M(M({},(0,xf.mapValue)(ve.fields,Z)),$t(we)),extensionASTNodes:ve.extensionASTNodes.concat(we)}))}function Be(se){var Le;let ve=se.toConfig(),we=(Le=l[ve.name])!==null&&Le!==void 0?Le:[];return new On.GraphQLUnionType(G(M({},ve),{types:()=>[...se.getTypes().map(q),...vt(we)],extensionASTNodes:ve.extensionASTNodes.concat(we)}))}function Z(se){return G(M({},se),{type:U(se.type),args:se.args&&(0,xf.mapValue)(se.args,ge)})}function ge(se){return G(M({},se),{type:U(se.type)})}function It(se){let Le={};for(let we of se){var ve;let Mt=(ve=we.operationTypes)!==null&&ve!==void 0?ve:[];for(let J of Mt)Le[J.operation]=sn(J.type)}return Le}function sn(se){var Le;let ve=se.name.value,we=(Le=KC[ve])!==null&&Le!==void 0?Le:h[ve];if(we===void 0)throw new Error(`Unknown type: "${ve}".`);return we}function Tn(se){return se.kind===Gi.Kind.LIST_TYPE?new On.GraphQLList(Tn(se.type)):se.kind===Gi.Kind.NON_NULL_TYPE?new On.GraphQLNonNull(Tn(se.type)):sn(se)}function En(se){var Le;return new qf.GraphQLDirective({name:se.name.value,description:(Le=se.description)===null||Le===void 0?void 0:Le.value,locations:se.locations.map(({value:ve})=>ve),isRepeatable:se.repeatable,args:Ht(se.arguments),astNode:se})}function $t(se){let Le=Object.create(null);for(let Mt of se){var ve;let J=(ve=Mt.fields)!==null&&ve!==void 0?ve:[];for(let ie of J){var we;Le[ie.name.value]={type:Tn(ie.type),description:(we=ie.description)===null||we===void 0?void 0:we.value,args:Ht(ie.arguments),deprecationReason:cT(ie),astNode:ie}}}return Le}function Ht(se){let Le=se!=null?se:[],ve=Object.create(null);for(let Mt of Le){var we;let J=Tn(Mt.type);ve[Mt.name.value]={type:J,description:(we=Mt.description)===null||we===void 0?void 0:we.value,defaultValue:(0,jC.valueFromAST)(Mt.defaultValue,J),deprecationReason:cT(Mt),astNode:Mt}}return ve}function wn(se){let Le=Object.create(null);for(let Mt of se){var ve;let J=(ve=Mt.fields)!==null&&ve!==void 0?ve:[];for(let ie of J){var we;let $e=Tn(ie.type);Le[ie.name.value]={type:$e,description:(we=ie.description)===null||we===void 0?void 0:we.value,defaultValue:(0,jC.valueFromAST)(ie.defaultValue,$e),deprecationReason:cT(ie),astNode:ie}}}return Le}function Ar(se){let Le=Object.create(null);for(let Mt of se){var ve;let J=(ve=Mt.values)!==null&&ve!==void 0?ve:[];for(let ie of J){var we;Le[ie.name.value]={description:(we=ie.description)===null||we===void 0?void 0:we.value,deprecationReason:cT(ie),astNode:ie}}}return Le}function zn(se){return se.flatMap(Le=>{var ve,we;return(ve=(we=Le.interfaces)===null||we===void 0?void 0:we.map(sn))!==null&&ve!==void 0?ve:[]})}function vt(se){return se.flatMap(Le=>{var ve,we;return(ve=(we=Le.types)===null||we===void 0?void 0:we.map(sn))!==null&&ve!==void 0?ve:[]})}function Ln(se){var Le;let ve=se.name.value,we=(Le=l[ve])!==null&&Le!==void 0?Le:[];switch(se.kind){case Gi.Kind.OBJECT_TYPE_DEFINITION:{var Mt;let St=[se,...we];return new On.GraphQLObjectType({name:ve,description:(Mt=se.description)===null||Mt===void 0?void 0:Mt.value,interfaces:()=>zn(St),fields:()=>$t(St),astNode:se,extensionASTNodes:we})}case Gi.Kind.INTERFACE_TYPE_DEFINITION:{var J;let St=[se,...we];return new On.GraphQLInterfaceType({name:ve,description:(J=se.description)===null||J===void 0?void 0:J.value,interfaces:()=>zn(St),fields:()=>$t(St),astNode:se,extensionASTNodes:we})}case Gi.Kind.ENUM_TYPE_DEFINITION:{var ie;let St=[se,...we];return new On.GraphQLEnumType({name:ve,description:(ie=se.description)===null||ie===void 0?void 0:ie.value,values:Ar(St),astNode:se,extensionASTNodes:we})}case Gi.Kind.UNION_TYPE_DEFINITION:{var $e;let St=[se,...we];return new On.GraphQLUnionType({name:ve,description:($e=se.description)===null||$e===void 0?void 0:$e.value,types:()=>vt(St),astNode:se,extensionASTNodes:we})}case Gi.Kind.SCALAR_TYPE_DEFINITION:{var He;return new On.GraphQLScalarType({name:ve,description:(He=se.description)===null||He===void 0?void 0:He.value,specifiedByURL:$C(se),astNode:se,extensionASTNodes:we})}case Gi.Kind.INPUT_OBJECT_TYPE_DEFINITION:{var Lt;let St=[se,...we];return new On.GraphQLInputObjectType({name:ve,description:(Lt=se.description)===null||Lt===void 0?void 0:Lt.value,fields:()=>wn(St),astNode:se,extensionASTNodes:we,isOneOf:A9(se)})}}}}var KC=(0,O9.keyMap)([...QC.specifiedScalarTypes,...GC.introspectionTypes],e=>e.name);function cT(e){let t=(0,wv.getDirectiveValues)(qf.GraphQLDeprecatedDirective,e);return t==null?void 0:t.reason}function $C(e){let t=(0,wv.getDirectiveValues)(qf.GraphQLSpecifiedByDirective,e);return t==null?void 0:t.url}function A9(e){return!!(0,wv.getDirectiveValues)(qf.GraphQLOneOfDirective,e)}});var zC=F(dT=>{"use strict";m();T();N();Object.defineProperty(dT,"__esModule",{value:!0});dT.buildASTSchema=JC;dT.buildSchema=B9;var R9=Gr(),P9=Ut(),F9=vl(),w9=ri(),L9=Nc(),C9=Ul(),U9=Lv();function JC(e,t){e!=null&&e.kind===P9.Kind.DOCUMENT||(0,R9.devAssert)(!1,"Must provide valid Document AST."),(t==null?void 0:t.assumeValid)!==!0&&(t==null?void 0:t.assumeValidSDL)!==!0&&(0,C9.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,...w9.specifiedDirectives.filter(a=>r.directives.every(o=>o.name!==a.name))];return new L9.GraphQLSchema(G(M({},r),{directives:i}))}function B9(e,t){let n=(0,F9.parse)(e,{noLocation:t==null?void 0:t.noLocation,allowLegacyFragmentVariables:t==null?void 0:t.allowLegacyFragmentVariables});return JC(n,{assumeValidSDL:t==null?void 0:t.assumeValidSDL,assumeValid:t==null?void 0:t.assumeValid})}});var XC=F(Uv=>{"use strict";m();T();N();Object.defineProperty(Uv,"__esModule",{value:!0});Uv.lexicographicSortSchema=K9;var k9=nn(),M9=Lr(),x9=sf(),HC=of(),Qr=Bt(),q9=ri(),V9=qi(),j9=Nc();function K9(e){let t=e.toConfig(),n=(0,x9.keyValMap)(Cv(t.types),h=>h.name,E);return new j9.GraphQLSchema(G(M({},t),{types:Object.values(n),directives:Cv(t.directives).map(o),query:a(t.query),mutation:a(t.mutation),subscription:a(t.subscription)}));function r(h){return(0,Qr.isListType)(h)?new Qr.GraphQLList(r(h.ofType)):(0,Qr.isNonNullType)(h)?new Qr.GraphQLNonNull(r(h.ofType)):i(h)}function i(h){return n[h.name]}function a(h){return h&&i(h)}function o(h){let v=h.toConfig();return new q9.GraphQLDirective(G(M({},v),{locations:WC(v.locations,R=>R),args:u(v.args)}))}function u(h){return fT(h,v=>G(M({},v),{type:r(v.type)}))}function l(h){return fT(h,v=>G(M({},v),{type:r(v.type),args:v.args&&u(v.args)}))}function d(h){return fT(h,v=>G(M({},v),{type:r(v.type)}))}function p(h){return Cv(h).map(i)}function E(h){if((0,Qr.isScalarType)(h)||(0,V9.isIntrospectionType)(h))return h;if((0,Qr.isObjectType)(h)){let v=h.toConfig();return new Qr.GraphQLObjectType(G(M({},v),{interfaces:()=>p(v.interfaces),fields:()=>l(v.fields)}))}if((0,Qr.isInterfaceType)(h)){let v=h.toConfig();return new Qr.GraphQLInterfaceType(G(M({},v),{interfaces:()=>p(v.interfaces),fields:()=>l(v.fields)}))}if((0,Qr.isUnionType)(h)){let v=h.toConfig();return new Qr.GraphQLUnionType(G(M({},v),{types:()=>p(v.types)}))}if((0,Qr.isEnumType)(h)){let v=h.toConfig();return new Qr.GraphQLEnumType(G(M({},v),{values:fT(v.values,R=>R)}))}if((0,Qr.isInputObjectType)(h)){let v=h.toConfig();return new Qr.GraphQLInputObjectType(G(M({},v),{fields:()=>d(v.fields)}))}(0,M9.invariant)(!1,"Unexpected type: "+(0,k9.inspect)(h))}}function fT(e,t){let n=Object.create(null);for(let r of Object.keys(e).sort(HC.naturalCompare))n[r]=t(e[r]);return n}function Cv(e){return WC(e,t=>t.name)}function WC(e,t){return e.slice().sort((n,r)=>{let i=t(n),a=t(r);return(0,HC.naturalCompare)(i,a)})}});var aU=F(Vf=>{"use strict";m();T();N();Object.defineProperty(Vf,"__esModule",{value:!0});Vf.printIntrospectionSchema=H9;Vf.printSchema=z9;Vf.printType=tU;var $9=nn(),G9=Lr(),Q9=Wd(),kv=Ut(),pT=gi(),kl=Bt(),Mv=ri(),ZC=qi(),Y9=Qa(),J9=If();function z9(e){return eU(e,t=>!(0,Mv.isSpecifiedDirective)(t),W9)}function H9(e){return eU(e,Mv.isSpecifiedDirective,ZC.isIntrospectionType)}function W9(e){return!(0,Y9.isSpecifiedScalarType)(e)&&!(0,ZC.isIntrospectionType)(e)}function eU(e,t,n){let r=e.getDirectives().filter(t),i=Object.values(e.getTypeMap()).filter(n);return[X9(e),...r.map(a=>s7(a)),...i.map(a=>tU(a))].filter(Boolean).join(` + `}});var Zz=D(bR=>{"use strict";d();p();f();Object.defineProperty(bR,"__esModule",{value:!0});bR.getOperationAST=w0e;var R0e=jt();function w0e(e,t){let r=null;for(let i of e.definitions)if(i.kind===R0e.Kind.OPERATION_DEFINITION){var n;if(t==null){if(r)return null;r=i}else if(((n=i.name)===null||n===void 0?void 0:n.value)===t)return i}return r}});var eH=D(AR=>{"use strict";d();p();f();Object.defineProperty(AR,"__esModule",{value:!0});AR.getOperationRootType=P0e;var xg=at();function P0e(e,t){if(t.operation==="query"){let r=e.getQueryType();if(!r)throw new xg.GraphQLError("Schema does not define the required query root type.",{nodes:t});return r}if(t.operation==="mutation"){let r=e.getMutationType();if(!r)throw new xg.GraphQLError("Schema is not configured for mutations.",{nodes:t});return r}if(t.operation==="subscription"){let r=e.getSubscriptionType();if(!r)throw new xg.GraphQLError("Schema is not configured for subscriptions.",{nodes:t});return r}throw new xg.GraphQLError("Can only have query, mutation and subscription operations.",{nodes:t})}});var tH=D(RR=>{"use strict";d();p();f();Object.defineProperty(RR,"__esModule",{value:!0});RR.introspectionFromSchema=U0e;var F0e=Xn(),L0e=Cf(),C0e=jh(),B0e=DR();function U0e(e,t){let r=q({specifiedByUrl:!0,directiveIsRepeatable:!0,schemaDescription:!0,inputValueDeprecation:!0,oneOf:!0},t),n=(0,L0e.parse)((0,B0e.getIntrospectionQuery)(r)),i=(0,C0e.executeSync)({schema:e,document:n});return!i.errors&&i.data||(0,F0e.invariant)(!1),i.data}});var nH=D(wR=>{"use strict";d();p();f();Object.defineProperty(wR,"__esModule",{value:!0});wR.buildClientSchema=K0e;var k0e=si(),Qi=ur(),rH=wo(),Mg=fh(),q0e=Cf(),Yi=Vt(),x0e=_i(),xo=ma(),M0e=Co(),j0e=Hl(),V0e=Uh();function K0e(e,t){(0,rH.isObjectLike)(e)&&(0,rH.isObjectLike)(e.__schema)||(0,k0e.devAssert)(!1,`Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: ${(0,Qi.inspect)(e)}.`);let r=e.__schema,n=(0,Mg.keyValMap)(r.types,Z=>Z.name,Z=>T(Z));for(let Z of[...M0e.specifiedScalarTypes,...xo.introspectionTypes])n[Z.name]&&(n[Z.name]=Z);let i=r.queryType?h(r.queryType):null,a=r.mutationType?h(r.mutationType):null,o=r.subscriptionType?h(r.subscriptionType):null,u=r.directives?r.directives.map(ot):[];return new j0e.GraphQLSchema({description:r.description,query:i,mutation:a,subscription:o,types:Object.values(n),directives:u,assumeValid:t==null?void 0:t.assumeValid});function l(Z){if(Z.kind===xo.TypeKind.LIST){let Se=Z.ofType;if(!Se)throw new Error("Decorated type deeper than introspection query.");return new Yi.GraphQLList(l(Se))}if(Z.kind===xo.TypeKind.NON_NULL){let Se=Z.ofType;if(!Se)throw new Error("Decorated type deeper than introspection query.");let Ft=l(Se);return new Yi.GraphQLNonNull((0,Yi.assertNullableType)(Ft))}return m(Z)}function m(Z){let Se=Z.name;if(!Se)throw new Error(`Unknown type reference: ${(0,Qi.inspect)(Z)}.`);let Ft=n[Se];if(!Ft)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 Ft}function h(Z){return(0,Yi.assertObjectType)(m(Z))}function N(Z){return(0,Yi.assertInterfaceType)(m(Z))}function T(Z){if(Z!=null&&Z.name!=null&&Z.kind!=null)switch(Z.kind){case xo.TypeKind.SCALAR:return O(Z);case xo.TypeKind.OBJECT:return C(Z);case xo.TypeKind.INTERFACE:return M(Z);case xo.TypeKind.UNION:return Y(Z);case xo.TypeKind.ENUM:return ee(Z);case xo.TypeKind.INPUT_OBJECT:return ae(Z)}let Se=(0,Qi.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: ${Se}.`)}function O(Z){return new Yi.GraphQLScalarType({name:Z.name,description:Z.description,specifiedByURL:Z.specifiedByURL})}function R(Z){if(Z.interfaces===null&&Z.kind===xo.TypeKind.INTERFACE)return[];if(!Z.interfaces){let Se=(0,Qi.inspect)(Z);throw new Error(`Introspection result missing interfaces: ${Se}.`)}return Z.interfaces.map(N)}function C(Z){return new Yi.GraphQLObjectType({name:Z.name,description:Z.description,interfaces:()=>R(Z),fields:()=>Ne(Z)})}function M(Z){return new Yi.GraphQLInterfaceType({name:Z.name,description:Z.description,interfaces:()=>R(Z),fields:()=>Ne(Z)})}function Y(Z){if(!Z.possibleTypes){let Se=(0,Qi.inspect)(Z);throw new Error(`Introspection result missing possibleTypes: ${Se}.`)}return new Yi.GraphQLUnionType({name:Z.name,description:Z.description,types:()=>Z.possibleTypes.map(h)})}function ee(Z){if(!Z.enumValues){let Se=(0,Qi.inspect)(Z);throw new Error(`Introspection result missing enumValues: ${Se}.`)}return new Yi.GraphQLEnumType({name:Z.name,description:Z.description,values:(0,Mg.keyValMap)(Z.enumValues,Se=>Se.name,Se=>({description:Se.description,deprecationReason:Se.deprecationReason}))})}function ae(Z){if(!Z.inputFields){let Se=(0,Qi.inspect)(Z);throw new Error(`Introspection result missing inputFields: ${Se}.`)}return new Yi.GraphQLInputObjectType({name:Z.name,description:Z.description,fields:()=>Le(Z.inputFields),isOneOf:Z.isOneOf})}function Ne(Z){if(!Z.fields)throw new Error(`Introspection result missing fields: ${(0,Qi.inspect)(Z)}.`);return(0,Mg.keyValMap)(Z.fields,Se=>Se.name,_e)}function _e(Z){let Se=l(Z.type);if(!(0,Yi.isOutputType)(Se)){let Ft=(0,Qi.inspect)(Se);throw new Error(`Introspection must provide output type for fields, but received: ${Ft}.`)}if(!Z.args){let Ft=(0,Qi.inspect)(Z);throw new Error(`Introspection result missing field args: ${Ft}.`)}return{description:Z.description,deprecationReason:Z.deprecationReason,type:Se,args:Le(Z.args)}}function Le(Z){return(0,Mg.keyValMap)(Z,Se=>Se.name,Ve)}function Ve(Z){let Se=l(Z.type);if(!(0,Yi.isInputType)(Se)){let pr=(0,Qi.inspect)(Se);throw new Error(`Introspection must provide input type for arguments, but received: ${pr}.`)}let Ft=Z.defaultValue!=null?(0,V0e.valueFromAST)((0,q0e.parseValue)(Z.defaultValue),Se):void 0;return{description:Z.description,type:Se,defaultValue:Ft,deprecationReason:Z.deprecationReason}}function ot(Z){if(!Z.args){let Se=(0,Qi.inspect)(Z);throw new Error(`Introspection result missing directive args: ${Se}.`)}if(!Z.locations){let Se=(0,Qi.inspect)(Z);throw new Error(`Introspection result missing directive locations: ${Se}.`)}return new x0e.GraphQLDirective({name:Z.name,description:Z.description,isRepeatable:Z.isRepeatable,locations:Z.locations.slice(),args:Le(Z.args)})}}});var FR=D(Vg=>{"use strict";d();p();f();Object.defineProperty(Vg,"__esModule",{value:!0});Vg.extendSchema=z0e;Vg.extendSchemaImpl=dH;var $0e=si(),G0e=ur(),Q0e=Xn(),Y0e=xc(),Gh=Pb(),Ea=jt(),iH=Xl(),Lr=Vt(),Qh=_i(),cH=ma(),lH=Co(),aH=Hl(),J0e=Qf(),PR=$f(),oH=Uh();function z0e(e,t,r){(0,aH.assertSchema)(e),t!=null&&t.kind===Ea.Kind.DOCUMENT||(0,$0e.devAssert)(!1,"Must provide valid Document AST."),(r==null?void 0:r.assumeValid)!==!0&&(r==null?void 0:r.assumeValidSDL)!==!0&&(0,J0e.assertValidSDLExtension)(t,e);let n=e.toConfig(),i=dH(n,t,r);return n===i?e:new aH.GraphQLSchema(i)}function dH(e,t,r){var n,i,a,o;let u=[],l=Object.create(null),m=[],h,N=[];for(let oe of t.definitions)if(oe.kind===Ea.Kind.SCHEMA_DEFINITION)h=oe;else if(oe.kind===Ea.Kind.SCHEMA_EXTENSION)N.push(oe);else if((0,iH.isTypeDefinitionNode)(oe))u.push(oe);else if((0,iH.isTypeExtensionNode)(oe)){let Be=oe.name.value,Ie=l[Be];l[Be]=Ie?Ie.concat([oe]):[oe]}else oe.kind===Ea.Kind.DIRECTIVE_DEFINITION&&m.push(oe);if(Object.keys(l).length===0&&u.length===0&&m.length===0&&N.length===0&&h==null)return e;let T=Object.create(null);for(let oe of e.types)T[oe.name]=ee(oe);for(let oe of u){var O;let Be=oe.name.value;T[Be]=(O=sH[Be])!==null&&O!==void 0?O:Gr(oe)}let R=q(q({query:e.query&&M(e.query),mutation:e.mutation&&M(e.mutation),subscription:e.subscription&&M(e.subscription)},h&&Ft([h])),Ft(N));return G(q({description:(n=h)===null||n===void 0||(i=n.description)===null||i===void 0?void 0:i.value},R),{types:Object.values(T),directives:[...e.directives.map(Y),...m.map(vr)],extensions:Object.create(null),astNode:(a=h)!==null&&a!==void 0?a:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(N),assumeValid:(o=r==null?void 0:r.assumeValid)!==null&&o!==void 0?o:!1});function C(oe){return(0,Lr.isListType)(oe)?new Lr.GraphQLList(C(oe.ofType)):(0,Lr.isNonNullType)(oe)?new Lr.GraphQLNonNull(C(oe.ofType)):M(oe)}function M(oe){return T[oe.name]}function Y(oe){let Be=oe.toConfig();return new Qh.GraphQLDirective(G(q({},Be),{args:(0,Gh.mapValue)(Be.args,Se)}))}function ee(oe){if((0,cH.isIntrospectionType)(oe)||(0,lH.isSpecifiedScalarType)(oe))return oe;if((0,Lr.isScalarType)(oe))return _e(oe);if((0,Lr.isObjectType)(oe))return Le(oe);if((0,Lr.isInterfaceType)(oe))return Ve(oe);if((0,Lr.isUnionType)(oe))return ot(oe);if((0,Lr.isEnumType)(oe))return Ne(oe);if((0,Lr.isInputObjectType)(oe))return ae(oe);(0,Q0e.invariant)(!1,"Unexpected type: "+(0,G0e.inspect)(oe))}function ae(oe){var Be;let Ie=oe.toConfig(),Ce=(Be=l[Ie.name])!==null&&Be!==void 0?Be:[];return new Lr.GraphQLInputObjectType(G(q({},Ie),{fields:()=>q(q({},(0,Gh.mapValue)(Ie.fields,Qt=>G(q({},Qt),{type:C(Qt.type)}))),$r(Ce)),extensionASTNodes:Ie.extensionASTNodes.concat(Ce)}))}function Ne(oe){var Be;let Ie=oe.toConfig(),Ce=(Be=l[oe.name])!==null&&Be!==void 0?Be:[];return new Lr.GraphQLEnumType(G(q({},Ie),{values:q(q({},Ie.values),Yn(Ce)),extensionASTNodes:Ie.extensionASTNodes.concat(Ce)}))}function _e(oe){var Be;let Ie=oe.toConfig(),Ce=(Be=l[Ie.name])!==null&&Be!==void 0?Be:[],Qt=Ie.specifiedByURL;for(let ie of Ce){var z;Qt=(z=uH(ie))!==null&&z!==void 0?z:Qt}return new Lr.GraphQLScalarType(G(q({},Ie),{specifiedByURL:Qt,extensionASTNodes:Ie.extensionASTNodes.concat(Ce)}))}function Le(oe){var Be;let Ie=oe.toConfig(),Ce=(Be=l[Ie.name])!==null&&Be!==void 0?Be:[];return new Lr.GraphQLObjectType(G(q({},Ie),{interfaces:()=>[...oe.getInterfaces().map(M),...dn(Ce)],fields:()=>q(q({},(0,Gh.mapValue)(Ie.fields,Z)),mr(Ce)),extensionASTNodes:Ie.extensionASTNodes.concat(Ce)}))}function Ve(oe){var Be;let Ie=oe.toConfig(),Ce=(Be=l[Ie.name])!==null&&Be!==void 0?Be:[];return new Lr.GraphQLInterfaceType(G(q({},Ie),{interfaces:()=>[...oe.getInterfaces().map(M),...dn(Ce)],fields:()=>q(q({},(0,Gh.mapValue)(Ie.fields,Z)),mr(Ce)),extensionASTNodes:Ie.extensionASTNodes.concat(Ce)}))}function ot(oe){var Be;let Ie=oe.toConfig(),Ce=(Be=l[Ie.name])!==null&&Be!==void 0?Be:[];return new Lr.GraphQLUnionType(G(q({},Ie),{types:()=>[...oe.getTypes().map(M),...bt(Ce)],extensionASTNodes:Ie.extensionASTNodes.concat(Ce)}))}function Z(oe){return G(q({},oe),{type:C(oe.type),args:oe.args&&(0,Gh.mapValue)(oe.args,Se)})}function Se(oe){return G(q({},oe),{type:C(oe.type)})}function Ft(oe){let Be={};for(let Ce of oe){var Ie;let Qt=(Ie=Ce.operationTypes)!==null&&Ie!==void 0?Ie:[];for(let z of Qt)Be[z.operation]=pr(z.type)}return Be}function pr(oe){var Be;let Ie=oe.name.value,Ce=(Be=sH[Ie])!==null&&Be!==void 0?Be:T[Ie];if(Ce===void 0)throw new Error(`Unknown type: "${Ie}".`);return Ce}function ar(oe){return oe.kind===Ea.Kind.LIST_TYPE?new Lr.GraphQLList(ar(oe.type)):oe.kind===Ea.Kind.NON_NULL_TYPE?new Lr.GraphQLNonNull(ar(oe.type)):pr(oe)}function vr(oe){var Be;return new Qh.GraphQLDirective({name:oe.name.value,description:(Be=oe.description)===null||Be===void 0?void 0:Be.value,locations:oe.locations.map(({value:Ie})=>Ie),isRepeatable:oe.repeatable,args:tr(oe.arguments),astNode:oe})}function mr(oe){let Be=Object.create(null);for(let Qt of oe){var Ie;let z=(Ie=Qt.fields)!==null&&Ie!==void 0?Ie:[];for(let ie of z){var Ce;Be[ie.name.value]={type:ar(ie.type),description:(Ce=ie.description)===null||Ce===void 0?void 0:Ce.value,args:tr(ie.arguments),deprecationReason:jg(ie),astNode:ie}}}return Be}function tr(oe){let Be=oe!=null?oe:[],Ie=Object.create(null);for(let Qt of Be){var Ce;let z=ar(Qt.type);Ie[Qt.name.value]={type:z,description:(Ce=Qt.description)===null||Ce===void 0?void 0:Ce.value,defaultValue:(0,oH.valueFromAST)(Qt.defaultValue,z),deprecationReason:jg(Qt),astNode:Qt}}return Ie}function $r(oe){let Be=Object.create(null);for(let Qt of oe){var Ie;let z=(Ie=Qt.fields)!==null&&Ie!==void 0?Ie:[];for(let ie of z){var Ce;let Je=ar(ie.type);Be[ie.name.value]={type:Je,description:(Ce=ie.description)===null||Ce===void 0?void 0:Ce.value,defaultValue:(0,oH.valueFromAST)(ie.defaultValue,Je),deprecationReason:jg(ie),astNode:ie}}}return Be}function Yn(oe){let Be=Object.create(null);for(let Qt of oe){var Ie;let z=(Ie=Qt.values)!==null&&Ie!==void 0?Ie:[];for(let ie of z){var Ce;Be[ie.name.value]={description:(Ce=ie.description)===null||Ce===void 0?void 0:Ce.value,deprecationReason:jg(ie),astNode:ie}}}return Be}function dn(oe){return oe.flatMap(Be=>{var Ie,Ce;return(Ie=(Ce=Be.interfaces)===null||Ce===void 0?void 0:Ce.map(pr))!==null&&Ie!==void 0?Ie:[]})}function bt(oe){return oe.flatMap(Be=>{var Ie,Ce;return(Ie=(Ce=Be.types)===null||Ce===void 0?void 0:Ce.map(pr))!==null&&Ie!==void 0?Ie:[]})}function Gr(oe){var Be;let Ie=oe.name.value,Ce=(Be=l[Ie])!==null&&Be!==void 0?Be:[];switch(oe.kind){case Ea.Kind.OBJECT_TYPE_DEFINITION:{var Qt;let At=[oe,...Ce];return new Lr.GraphQLObjectType({name:Ie,description:(Qt=oe.description)===null||Qt===void 0?void 0:Qt.value,interfaces:()=>dn(At),fields:()=>mr(At),astNode:oe,extensionASTNodes:Ce})}case Ea.Kind.INTERFACE_TYPE_DEFINITION:{var z;let At=[oe,...Ce];return new Lr.GraphQLInterfaceType({name:Ie,description:(z=oe.description)===null||z===void 0?void 0:z.value,interfaces:()=>dn(At),fields:()=>mr(At),astNode:oe,extensionASTNodes:Ce})}case Ea.Kind.ENUM_TYPE_DEFINITION:{var ie;let At=[oe,...Ce];return new Lr.GraphQLEnumType({name:Ie,description:(ie=oe.description)===null||ie===void 0?void 0:ie.value,values:Yn(At),astNode:oe,extensionASTNodes:Ce})}case Ea.Kind.UNION_TYPE_DEFINITION:{var Je;let At=[oe,...Ce];return new Lr.GraphQLUnionType({name:Ie,description:(Je=oe.description)===null||Je===void 0?void 0:Je.value,types:()=>bt(At),astNode:oe,extensionASTNodes:Ce})}case Ea.Kind.SCALAR_TYPE_DEFINITION:{var nt;return new Lr.GraphQLScalarType({name:Ie,description:(nt=oe.description)===null||nt===void 0?void 0:nt.value,specifiedByURL:uH(oe),astNode:oe,extensionASTNodes:Ce})}case Ea.Kind.INPUT_OBJECT_TYPE_DEFINITION:{var xt;let At=[oe,...Ce];return new Lr.GraphQLInputObjectType({name:Ie,description:(xt=oe.description)===null||xt===void 0?void 0:xt.value,fields:()=>$r(At),astNode:oe,extensionASTNodes:Ce,isOneOf:H0e(oe)})}}}}var sH=(0,Y0e.keyMap)([...lH.specifiedScalarTypes,...cH.introspectionTypes],e=>e.name);function jg(e){let t=(0,PR.getDirectiveValues)(Qh.GraphQLDeprecatedDirective,e);return t==null?void 0:t.reason}function uH(e){let t=(0,PR.getDirectiveValues)(Qh.GraphQLSpecifiedByDirective,e);return t==null?void 0:t.url}function H0e(e){return!!(0,PR.getDirectiveValues)(Qh.GraphQLOneOfDirective,e)}});var pH=D(Kg=>{"use strict";d();p();f();Object.defineProperty(Kg,"__esModule",{value:!0});Kg.buildASTSchema=fH;Kg.buildSchema=iAe;var W0e=si(),X0e=jt(),Z0e=Cf(),eAe=_i(),tAe=Hl(),rAe=Qf(),nAe=FR();function fH(e,t){e!=null&&e.kind===X0e.Kind.DOCUMENT||(0,W0e.devAssert)(!1,"Must provide valid Document AST."),(t==null?void 0:t.assumeValid)!==!0&&(t==null?void 0:t.assumeValidSDL)!==!0&&(0,rAe.assertValidSDL)(e);let r={description:void 0,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:!1},n=(0,nAe.extendSchemaImpl)(r,e,t);if(n.astNode==null)for(let a of n.types)switch(a.name){case"Query":n.query=a;break;case"Mutation":n.mutation=a;break;case"Subscription":n.subscription=a;break}let i=[...n.directives,...eAe.specifiedDirectives.filter(a=>n.directives.every(o=>o.name!==a.name))];return new tAe.GraphQLSchema(G(q({},n),{directives:i}))}function iAe(e,t){let r=(0,Z0e.parse)(e,{noLocation:t==null?void 0:t.noLocation,allowLegacyFragmentVariables:t==null?void 0:t.allowLegacyFragmentVariables});return fH(r,{assumeValidSDL:t==null?void 0:t.assumeValidSDL,assumeValid:t==null?void 0:t.assumeValid})}});var yH=D(CR=>{"use strict";d();p();f();Object.defineProperty(CR,"__esModule",{value:!0});CR.lexicographicSortSchema=dAe;var aAe=ur(),oAe=Xn(),sAe=fh(),mH=ph(),ui=Vt(),uAe=_i(),cAe=ma(),lAe=Hl();function dAe(e){let t=e.toConfig(),r=(0,sAe.keyValMap)(LR(t.types),T=>T.name,N);return new lAe.GraphQLSchema(G(q({},t),{types:Object.values(r),directives:LR(t.directives).map(o),query:a(t.query),mutation:a(t.mutation),subscription:a(t.subscription)}));function n(T){return(0,ui.isListType)(T)?new ui.GraphQLList(n(T.ofType)):(0,ui.isNonNullType)(T)?new ui.GraphQLNonNull(n(T.ofType)):i(T)}function i(T){return r[T.name]}function a(T){return T&&i(T)}function o(T){let O=T.toConfig();return new uAe.GraphQLDirective(G(q({},O),{locations:hH(O.locations,R=>R),args:u(O.args)}))}function u(T){return $g(T,O=>G(q({},O),{type:n(O.type)}))}function l(T){return $g(T,O=>G(q({},O),{type:n(O.type),args:O.args&&u(O.args)}))}function m(T){return $g(T,O=>G(q({},O),{type:n(O.type)}))}function h(T){return LR(T).map(i)}function N(T){if((0,ui.isScalarType)(T)||(0,cAe.isIntrospectionType)(T))return T;if((0,ui.isObjectType)(T)){let O=T.toConfig();return new ui.GraphQLObjectType(G(q({},O),{interfaces:()=>h(O.interfaces),fields:()=>l(O.fields)}))}if((0,ui.isInterfaceType)(T)){let O=T.toConfig();return new ui.GraphQLInterfaceType(G(q({},O),{interfaces:()=>h(O.interfaces),fields:()=>l(O.fields)}))}if((0,ui.isUnionType)(T)){let O=T.toConfig();return new ui.GraphQLUnionType(G(q({},O),{types:()=>h(O.types)}))}if((0,ui.isEnumType)(T)){let O=T.toConfig();return new ui.GraphQLEnumType(G(q({},O),{values:$g(O.values,R=>R)}))}if((0,ui.isInputObjectType)(T)){let O=T.toConfig();return new ui.GraphQLInputObjectType(G(q({},O),{fields:()=>m(O.fields)}))}(0,oAe.invariant)(!1,"Unexpected type: "+(0,aAe.inspect)(T))}}function $g(e,t){let r=Object.create(null);for(let n of Object.keys(e).sort(mH.naturalCompare))r[n]=t(e[n]);return r}function LR(e){return hH(e,t=>t.name)}function hH(e,t){return e.slice().sort((r,n)=>{let i=t(r),a=t(n);return(0,mH.naturalCompare)(i,a)})}});var _H=D(Yh=>{"use strict";d();p();f();Object.defineProperty(Yh,"__esModule",{value:!0});Yh.printIntrospectionSchema=TAe;Yh.printSchema=NAe;Yh.printType=EH;var fAe=ur(),pAe=Xn(),mAe=ih(),UR=jt(),Gg=Gi(),Jf=Vt(),kR=_i(),NH=ma(),hAe=Co(),yAe=Dh();function NAe(e){return TH(e,t=>!(0,kR.isSpecifiedDirective)(t),EAe)}function TAe(e){return TH(e,kR.isSpecifiedDirective,NH.isIntrospectionType)}function EAe(e){return!(0,hAe.isSpecifiedScalarType)(e)&&!(0,NH.isIntrospectionType)(e)}function TH(e,t,r){let n=e.getDirectives().filter(t),i=Object.values(e.getTypeMap()).filter(r);return[gAe(e),...n.map(a=>AAe(a)),...i.map(a=>EH(a))].filter(Boolean).join(` -`)}function X9(e){if(e.description==null&&Z9(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}`),Qi(e)+`schema { +`)}function gAe(e){if(e.description==null&&IAe(e))return;let t=[],r=e.getQueryType();r&&t.push(` query: ${r.name}`);let n=e.getMutationType();n&&t.push(` mutation: ${n.name}`);let i=e.getSubscriptionType();return i&&t.push(` subscription: ${i.name}`),ga(e)+`schema { ${t.join(` `)} -}`}function Z9(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 tU(e){if((0,kl.isScalarType)(e))return e7(e);if((0,kl.isObjectType)(e))return t7(e);if((0,kl.isInterfaceType)(e))return n7(e);if((0,kl.isUnionType)(e))return r7(e);if((0,kl.isEnumType)(e))return i7(e);if((0,kl.isInputObjectType)(e))return a7(e);(0,G9.invariant)(!1,"Unexpected type: "+(0,$9.inspect)(e))}function e7(e){return Qi(e)+`scalar ${e.name}`+o7(e)}function nU(e){let t=e.getInterfaces();return t.length?" implements "+t.map(n=>n.name).join(" & "):""}function t7(e){return Qi(e)+`type ${e.name}`+nU(e)+rU(e)}function n7(e){return Qi(e)+`interface ${e.name}`+nU(e)+rU(e)}function r7(e){let t=e.getTypes(),n=t.length?" = "+t.join(" | "):"";return Qi(e)+"union "+e.name+n}function i7(e){let t=e.getValues().map((n,r)=>Qi(n," ",!r)+" "+n.name+qv(n.deprecationReason));return Qi(e)+`enum ${e.name}`+xv(t)}function a7(e){let t=Object.values(e.getFields()).map((n,r)=>Qi(n," ",!r)+" "+Bv(n));return Qi(e)+`input ${e.name}`+(e.isOneOf?" @oneOf":"")+xv(t)}function rU(e){let t=Object.values(e.getFields()).map((n,r)=>Qi(n," ",!r)+" "+n.name+iU(n.args," ")+": "+String(n.type)+qv(n.deprecationReason));return xv(t)}function xv(e){return e.length!==0?` { +}`}function IAe(e){let t=e.getQueryType();if(t&&t.name!=="Query")return!1;let r=e.getMutationType();if(r&&r.name!=="Mutation")return!1;let n=e.getSubscriptionType();return!(n&&n.name!=="Subscription")}function EH(e){if((0,Jf.isScalarType)(e))return vAe(e);if((0,Jf.isObjectType)(e))return _Ae(e);if((0,Jf.isInterfaceType)(e))return SAe(e);if((0,Jf.isUnionType)(e))return OAe(e);if((0,Jf.isEnumType)(e))return DAe(e);if((0,Jf.isInputObjectType)(e))return bAe(e);(0,pAe.invariant)(!1,"Unexpected type: "+(0,fAe.inspect)(e))}function vAe(e){return ga(e)+`scalar ${e.name}`+RAe(e)}function gH(e){let t=e.getInterfaces();return t.length?" implements "+t.map(r=>r.name).join(" & "):""}function _Ae(e){return ga(e)+`type ${e.name}`+gH(e)+IH(e)}function SAe(e){return ga(e)+`interface ${e.name}`+gH(e)+IH(e)}function OAe(e){let t=e.getTypes(),r=t.length?" = "+t.join(" | "):"";return ga(e)+"union "+e.name+r}function DAe(e){let t=e.getValues().map((r,n)=>ga(r," ",!n)+" "+r.name+xR(r.deprecationReason));return ga(e)+`enum ${e.name}`+qR(t)}function bAe(e){let t=Object.values(e.getFields()).map((r,n)=>ga(r," ",!n)+" "+BR(r));return ga(e)+`input ${e.name}`+(e.isOneOf?" @oneOf":"")+qR(t)}function IH(e){let t=Object.values(e.getFields()).map((r,n)=>ga(r," ",!n)+" "+r.name+vH(r.args," ")+": "+String(r.type)+xR(r.deprecationReason));return qR(t)}function qR(e){return e.length!==0?` { `+e.join(` `)+` -}`:""}function iU(e,t=""){return e.length===0?"":e.every(n=>!n.description)?"("+e.map(Bv).join(", ")+")":`( -`+e.map((n,r)=>Qi(n," "+t,!r)+" "+t+Bv(n)).join(` +}`:""}function vH(e,t=""){return e.length===0?"":e.every(r=>!r.description)?"("+e.map(BR).join(", ")+")":`( +`+e.map((r,n)=>ga(r," "+t,!n)+" "+t+BR(r)).join(` `)+` -`+t+")"}function Bv(e){let t=(0,J9.astFromValue)(e.defaultValue,e.type),n=e.name+": "+String(e.type);return t&&(n+=` = ${(0,pT.print)(t)}`),n+qv(e.deprecationReason)}function s7(e){return Qi(e)+"directive @"+e.name+iU(e.args)+(e.isRepeatable?" repeatable":"")+" on "+e.locations.join(" | ")}function qv(e){return e==null?"":e!==Mv.DEFAULT_DEPRECATION_REASON?` @deprecated(reason: ${(0,pT.print)({kind:kv.Kind.STRING,value:e})})`:" @deprecated"}function o7(e){return e.specifiedByURL==null?"":` @specifiedBy(url: ${(0,pT.print)({kind:kv.Kind.STRING,value:e.specifiedByURL})})`}function Qi(e,t="",n=!0){let{description:r}=e;if(r==null)return"";let i=(0,pT.print)({kind:kv.Kind.STRING,value:r,block:(0,Q9.isPrintableAsBlockString)(r)});return(t&&!n?` +`+t+")"}function BR(e){let t=(0,yAe.astFromValue)(e.defaultValue,e.type),r=e.name+": "+String(e.type);return t&&(r+=` = ${(0,Gg.print)(t)}`),r+xR(e.deprecationReason)}function AAe(e){return ga(e)+"directive @"+e.name+vH(e.args)+(e.isRepeatable?" repeatable":"")+" on "+e.locations.join(" | ")}function xR(e){return e==null?"":e!==kR.DEFAULT_DEPRECATION_REASON?` @deprecated(reason: ${(0,Gg.print)({kind:UR.Kind.STRING,value:e})})`:" @deprecated"}function RAe(e){return e.specifiedByURL==null?"":` @specifiedBy(url: ${(0,Gg.print)({kind:UR.Kind.STRING,value:e.specifiedByURL})})`}function ga(e,t="",r=!0){let{description:n}=e;if(n==null)return"";let i=(0,Gg.print)({kind:UR.Kind.STRING,value:n,block:(0,mAe.isPrintableAsBlockString)(n)});return(t&&!r?` `+t:t)+i.replace(/\n/g,` `+t)+` -`}});var sU=F(Vv=>{"use strict";m();T();N();Object.defineProperty(Vv,"__esModule",{value:!0});Vv.concatAST=c7;var u7=Ut();function c7(e){let t=[];for(let n of e)t.push(...n.definitions);return{kind:u7.Kind.DOCUMENT,definitions:t}}});var cU=F(jv=>{"use strict";m();T();N();Object.defineProperty(jv,"__esModule",{value:!0});jv.separateOperations=d7;var mT=Ut(),l7=cc();function d7(e){let t=[],n=Object.create(null);for(let i of e.definitions)switch(i.kind){case mT.Kind.OPERATION_DEFINITION:t.push(i);break;case mT.Kind.FRAGMENT_DEFINITION:n[i.name.value]=oU(i.selectionSet);break;default:}let r=Object.create(null);for(let i of t){let a=new Set;for(let u of oU(i.selectionSet))uU(a,n,u);let o=i.name?i.name.value:"";r[o]={kind:mT.Kind.DOCUMENT,definitions:e.definitions.filter(u=>u===i||u.kind===mT.Kind.FRAGMENT_DEFINITION&&a.has(u.name.value))}}return r}function uU(e,t,n){if(!e.has(n)){e.add(n);let r=t[n];if(r!==void 0)for(let i of r)uU(e,t,i)}}function oU(e){let t=[];return(0,l7.visit)(e,{FragmentSpread(n){t.push(n.name.value)}}),t}});var fU=F($v=>{"use strict";m();T();N();Object.defineProperty($v,"__esModule",{value:!0});$v.stripIgnoredCharacters=p7;var f7=Wd(),lU=aN(),dU=cN(),Kv=Zd();function p7(e){let t=(0,dU.isSource)(e)?e:new dU.Source(e),n=t.body,r=new lU.Lexer(t),i="",a=!1;for(;r.advance().kind!==Kv.TokenKind.EOF;){let o=r.token,u=o.kind,l=!(0,lU.isPunctuatorTokenKind)(o.kind);a&&(l||o.kind===Kv.TokenKind.SPREAD)&&(i+=" ");let d=n.slice(o.start,o.end);u===Kv.TokenKind.BLOCK_STRING?i+=(0,f7.printBlockString)(o.value,{minimize:!0}):i+=d,a=l}return i}});var mU=F(NT=>{"use strict";m();T();N();Object.defineProperty(NT,"__esModule",{value:!0});NT.assertValidName=E7;NT.isValidNameError=pU;var m7=Gr(),N7=et(),T7=uf();function E7(e){let t=pU(e);if(t)throw t;return e}function pU(e){if(typeof e=="string"||(0,m7.devAssert)(!1,"Expected name to be a string."),e.startsWith("__"))return new N7.GraphQLError(`Name "${e}" must not begin with "__", which is reserved by GraphQL introspection.`);try{(0,T7.assertName)(e)}catch(t){return t}}});var _U=F(Xa=>{"use strict";m();T();N();Object.defineProperty(Xa,"__esModule",{value:!0});Xa.DangerousChangeType=Xa.BreakingChangeType=void 0;Xa.findBreakingChanges=v7;Xa.findDangerousChanges=S7;var h7=nn(),IU=Lr(),NU=Eu(),y7=gi(),Gt=Bt(),I7=Qa(),g7=If(),_7=Yg(),Mn;Xa.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||(Xa.BreakingChangeType=Mn={}));var ga;Xa.DangerousChangeType=ga;(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"})(ga||(Xa.DangerousChangeType=ga={}));function v7(e,t){return gU(e,t).filter(n=>n.type in Mn)}function S7(e,t){return gU(e,t).filter(n=>n.type in ga)}function gU(e,t){return[...D7(e,t),...O7(e,t)]}function O7(e,t){let n=[],r=Fs(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=Fs(i.args,a.args);for(let u of o.added)(0,Gt.isRequiredArgument)(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 o.removed)n.push({type:Mn.DIRECTIVE_ARG_REMOVED,description:`${u.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 u of i.locations)a.locations.includes(u)||n.push({type:Mn.DIRECTIVE_LOCATION_REMOVED,description:`${u} was removed from ${i.name}.`})}return n}function D7(e,t){let n=[],r=Fs(Object.values(e.getTypeMap()),Object.values(t.getTypeMap()));for(let i of r.removed)n.push({type:Mn.TYPE_REMOVED,description:(0,I7.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,Gt.isEnumType)(i)&&(0,Gt.isEnumType)(a)?n.push(...R7(i,a)):(0,Gt.isUnionType)(i)&&(0,Gt.isUnionType)(a)?n.push(...A7(i,a)):(0,Gt.isInputObjectType)(i)&&(0,Gt.isInputObjectType)(a)?n.push(...b7(i,a)):(0,Gt.isObjectType)(i)&&(0,Gt.isObjectType)(a)?n.push(...EU(i,a),...TU(i,a)):(0,Gt.isInterfaceType)(i)&&(0,Gt.isInterfaceType)(a)?n.push(...EU(i,a),...TU(i,a)):i.constructor!==a.constructor&&n.push({type:Mn.TYPE_CHANGED_KIND,description:`${i.name} changed from ${hU(i)} to ${hU(a)}.`});return n}function b7(e,t){let n=[],r=Fs(Object.values(e.getFields()),Object.values(t.getFields()));for(let i of r.added)(0,Gt.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:ga.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)Kf(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 A7(e,t){let n=[],r=Fs(e.getTypes(),t.getTypes());for(let i of r.added)n.push({type:ga.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 R7(e,t){let n=[],r=Fs(e.getValues(),t.getValues());for(let i of r.added)n.push({type:ga.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 TU(e,t){let n=[],r=Fs(e.getInterfaces(),t.getInterfaces());for(let i of r.added)n.push({type:ga.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 EU(e,t){let n=[],r=Fs(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(...P7(e,i,a)),jf(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 P7(e,t,n){let r=[],i=Fs(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(!Kf(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:ga.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${a.name} defaultValue was removed.`});else{let l=yU(a.defaultValue,a.type),d=yU(o.defaultValue,o.type);l!==d&&r.push({type:ga.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,Gt.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:ga.OPTIONAL_ARG_ADDED,description:`An optional arg ${a.name} on ${e.name}.${t.name} was added.`});return r}function jf(e,t){return(0,Gt.isListType)(e)?(0,Gt.isListType)(t)&&jf(e.ofType,t.ofType)||(0,Gt.isNonNullType)(t)&&jf(e,t.ofType):(0,Gt.isNonNullType)(e)?(0,Gt.isNonNullType)(t)&&jf(e.ofType,t.ofType):(0,Gt.isNamedType)(t)&&e.name===t.name||(0,Gt.isNonNullType)(t)&&jf(e,t.ofType)}function Kf(e,t){return(0,Gt.isListType)(e)?(0,Gt.isListType)(t)&&Kf(e.ofType,t.ofType):(0,Gt.isNonNullType)(e)?(0,Gt.isNonNullType)(t)&&Kf(e.ofType,t.ofType)||!(0,Gt.isNonNullType)(t)&&Kf(e.ofType,t):(0,Gt.isNamedType)(t)&&e.name===t.name}function hU(e){if((0,Gt.isScalarType)(e))return"a Scalar type";if((0,Gt.isObjectType)(e))return"an Object type";if((0,Gt.isInterfaceType)(e))return"an Interface type";if((0,Gt.isUnionType)(e))return"a Union type";if((0,Gt.isEnumType)(e))return"an Enum type";if((0,Gt.isInputObjectType)(e))return"an Input type";(0,IU.invariant)(!1,"Unexpected type: "+(0,h7.inspect)(e))}function yU(e,t){let n=(0,g7.astFromValue)(e,t);return n!=null||(0,IU.invariant)(!1),(0,y7.print)((0,_7.sortValueNode)(n))}function Fs(e,t){let n=[],r=[],i=[],a=(0,NU.keyMap)(e,({name:u})=>u),o=(0,NU.keyMap)(t,({name:u})=>u);for(let u of e){let l=o[u.name];l===void 0?r.push(u):i.push([u,l])}for(let u of t)a[u.name]===void 0&&n.push(u);return{added:n,persisted:i,removed:r}}});var DU=F(Vt=>{"use strict";m();T();N();Object.defineProperty(Vt,"__esModule",{value:!0});Object.defineProperty(Vt,"BreakingChangeType",{enumerable:!0,get:function(){return TT.BreakingChangeType}});Object.defineProperty(Vt,"DangerousChangeType",{enumerable:!0,get:function(){return TT.DangerousChangeType}});Object.defineProperty(Vt,"TypeInfo",{enumerable:!0,get:function(){return SU.TypeInfo}});Object.defineProperty(Vt,"assertValidName",{enumerable:!0,get:function(){return OU.assertValidName}});Object.defineProperty(Vt,"astFromValue",{enumerable:!0,get:function(){return V7.astFromValue}});Object.defineProperty(Vt,"buildASTSchema",{enumerable:!0,get:function(){return vU.buildASTSchema}});Object.defineProperty(Vt,"buildClientSchema",{enumerable:!0,get:function(){return U7.buildClientSchema}});Object.defineProperty(Vt,"buildSchema",{enumerable:!0,get:function(){return vU.buildSchema}});Object.defineProperty(Vt,"coerceInputValue",{enumerable:!0,get:function(){return j7.coerceInputValue}});Object.defineProperty(Vt,"concatAST",{enumerable:!0,get:function(){return K7.concatAST}});Object.defineProperty(Vt,"doTypesOverlap",{enumerable:!0,get:function(){return Qv.doTypesOverlap}});Object.defineProperty(Vt,"extendSchema",{enumerable:!0,get:function(){return B7.extendSchema}});Object.defineProperty(Vt,"findBreakingChanges",{enumerable:!0,get:function(){return TT.findBreakingChanges}});Object.defineProperty(Vt,"findDangerousChanges",{enumerable:!0,get:function(){return TT.findDangerousChanges}});Object.defineProperty(Vt,"getIntrospectionQuery",{enumerable:!0,get:function(){return F7.getIntrospectionQuery}});Object.defineProperty(Vt,"getOperationAST",{enumerable:!0,get:function(){return w7.getOperationAST}});Object.defineProperty(Vt,"getOperationRootType",{enumerable:!0,get:function(){return L7.getOperationRootType}});Object.defineProperty(Vt,"introspectionFromSchema",{enumerable:!0,get:function(){return C7.introspectionFromSchema}});Object.defineProperty(Vt,"isEqualType",{enumerable:!0,get:function(){return Qv.isEqualType}});Object.defineProperty(Vt,"isTypeSubTypeOf",{enumerable:!0,get:function(){return Qv.isTypeSubTypeOf}});Object.defineProperty(Vt,"isValidNameError",{enumerable:!0,get:function(){return OU.isValidNameError}});Object.defineProperty(Vt,"lexicographicSortSchema",{enumerable:!0,get:function(){return k7.lexicographicSortSchema}});Object.defineProperty(Vt,"printIntrospectionSchema",{enumerable:!0,get:function(){return Gv.printIntrospectionSchema}});Object.defineProperty(Vt,"printSchema",{enumerable:!0,get:function(){return Gv.printSchema}});Object.defineProperty(Vt,"printType",{enumerable:!0,get:function(){return Gv.printType}});Object.defineProperty(Vt,"separateOperations",{enumerable:!0,get:function(){return $7.separateOperations}});Object.defineProperty(Vt,"stripIgnoredCharacters",{enumerable:!0,get:function(){return G7.stripIgnoredCharacters}});Object.defineProperty(Vt,"typeFromAST",{enumerable:!0,get:function(){return M7.typeFromAST}});Object.defineProperty(Vt,"valueFromAST",{enumerable:!0,get:function(){return x7.valueFromAST}});Object.defineProperty(Vt,"valueFromASTUntyped",{enumerable:!0,get:function(){return q7.valueFromASTUntyped}});Object.defineProperty(Vt,"visitWithTypeInfo",{enumerable:!0,get:function(){return SU.visitWithTypeInfo}});var F7=bv(),w7=UC(),L7=BC(),C7=kC(),U7=xC(),vU=zC(),B7=Lv(),k7=XC(),Gv=aU(),M7=Ya(),x7=Pf(),q7=KI(),V7=If(),SU=kN(),j7=p_(),K7=sU(),$7=cU(),G7=fU(),Qv=pf(),OU=mU(),TT=_U()});var Se=F(V=>{"use strict";m();T();N();Object.defineProperty(V,"__esModule",{value:!0});Object.defineProperty(V,"BREAK",{enumerable:!0,get:function(){return Xt.BREAK}});Object.defineProperty(V,"BreakingChangeType",{enumerable:!0,get:function(){return Zt.BreakingChangeType}});Object.defineProperty(V,"DEFAULT_DEPRECATION_REASON",{enumerable:!0,get:function(){return Ie.DEFAULT_DEPRECATION_REASON}});Object.defineProperty(V,"DangerousChangeType",{enumerable:!0,get:function(){return Zt.DangerousChangeType}});Object.defineProperty(V,"DirectiveLocation",{enumerable:!0,get:function(){return Xt.DirectiveLocation}});Object.defineProperty(V,"ExecutableDefinitionsRule",{enumerable:!0,get:function(){return yt.ExecutableDefinitionsRule}});Object.defineProperty(V,"FieldsOnCorrectTypeRule",{enumerable:!0,get:function(){return yt.FieldsOnCorrectTypeRule}});Object.defineProperty(V,"FragmentsOnCompositeTypesRule",{enumerable:!0,get:function(){return yt.FragmentsOnCompositeTypesRule}});Object.defineProperty(V,"GRAPHQL_MAX_INT",{enumerable:!0,get:function(){return Ie.GRAPHQL_MAX_INT}});Object.defineProperty(V,"GRAPHQL_MIN_INT",{enumerable:!0,get:function(){return Ie.GRAPHQL_MIN_INT}});Object.defineProperty(V,"GraphQLBoolean",{enumerable:!0,get:function(){return Ie.GraphQLBoolean}});Object.defineProperty(V,"GraphQLDeprecatedDirective",{enumerable:!0,get:function(){return Ie.GraphQLDeprecatedDirective}});Object.defineProperty(V,"GraphQLDirective",{enumerable:!0,get:function(){return Ie.GraphQLDirective}});Object.defineProperty(V,"GraphQLEnumType",{enumerable:!0,get:function(){return Ie.GraphQLEnumType}});Object.defineProperty(V,"GraphQLError",{enumerable:!0,get:function(){return $f.GraphQLError}});Object.defineProperty(V,"GraphQLFloat",{enumerable:!0,get:function(){return Ie.GraphQLFloat}});Object.defineProperty(V,"GraphQLID",{enumerable:!0,get:function(){return Ie.GraphQLID}});Object.defineProperty(V,"GraphQLIncludeDirective",{enumerable:!0,get:function(){return Ie.GraphQLIncludeDirective}});Object.defineProperty(V,"GraphQLInputObjectType",{enumerable:!0,get:function(){return Ie.GraphQLInputObjectType}});Object.defineProperty(V,"GraphQLInt",{enumerable:!0,get:function(){return Ie.GraphQLInt}});Object.defineProperty(V,"GraphQLInterfaceType",{enumerable:!0,get:function(){return Ie.GraphQLInterfaceType}});Object.defineProperty(V,"GraphQLList",{enumerable:!0,get:function(){return Ie.GraphQLList}});Object.defineProperty(V,"GraphQLNonNull",{enumerable:!0,get:function(){return Ie.GraphQLNonNull}});Object.defineProperty(V,"GraphQLObjectType",{enumerable:!0,get:function(){return Ie.GraphQLObjectType}});Object.defineProperty(V,"GraphQLOneOfDirective",{enumerable:!0,get:function(){return Ie.GraphQLOneOfDirective}});Object.defineProperty(V,"GraphQLScalarType",{enumerable:!0,get:function(){return Ie.GraphQLScalarType}});Object.defineProperty(V,"GraphQLSchema",{enumerable:!0,get:function(){return Ie.GraphQLSchema}});Object.defineProperty(V,"GraphQLSkipDirective",{enumerable:!0,get:function(){return Ie.GraphQLSkipDirective}});Object.defineProperty(V,"GraphQLSpecifiedByDirective",{enumerable:!0,get:function(){return Ie.GraphQLSpecifiedByDirective}});Object.defineProperty(V,"GraphQLString",{enumerable:!0,get:function(){return Ie.GraphQLString}});Object.defineProperty(V,"GraphQLUnionType",{enumerable:!0,get:function(){return Ie.GraphQLUnionType}});Object.defineProperty(V,"Kind",{enumerable:!0,get:function(){return Xt.Kind}});Object.defineProperty(V,"KnownArgumentNamesRule",{enumerable:!0,get:function(){return yt.KnownArgumentNamesRule}});Object.defineProperty(V,"KnownDirectivesRule",{enumerable:!0,get:function(){return yt.KnownDirectivesRule}});Object.defineProperty(V,"KnownFragmentNamesRule",{enumerable:!0,get:function(){return yt.KnownFragmentNamesRule}});Object.defineProperty(V,"KnownTypeNamesRule",{enumerable:!0,get:function(){return yt.KnownTypeNamesRule}});Object.defineProperty(V,"Lexer",{enumerable:!0,get:function(){return Xt.Lexer}});Object.defineProperty(V,"Location",{enumerable:!0,get:function(){return Xt.Location}});Object.defineProperty(V,"LoneAnonymousOperationRule",{enumerable:!0,get:function(){return yt.LoneAnonymousOperationRule}});Object.defineProperty(V,"LoneSchemaDefinitionRule",{enumerable:!0,get:function(){return yt.LoneSchemaDefinitionRule}});Object.defineProperty(V,"MaxIntrospectionDepthRule",{enumerable:!0,get:function(){return yt.MaxIntrospectionDepthRule}});Object.defineProperty(V,"NoDeprecatedCustomRule",{enumerable:!0,get:function(){return yt.NoDeprecatedCustomRule}});Object.defineProperty(V,"NoFragmentCyclesRule",{enumerable:!0,get:function(){return yt.NoFragmentCyclesRule}});Object.defineProperty(V,"NoSchemaIntrospectionCustomRule",{enumerable:!0,get:function(){return yt.NoSchemaIntrospectionCustomRule}});Object.defineProperty(V,"NoUndefinedVariablesRule",{enumerable:!0,get:function(){return yt.NoUndefinedVariablesRule}});Object.defineProperty(V,"NoUnusedFragmentsRule",{enumerable:!0,get:function(){return yt.NoUnusedFragmentsRule}});Object.defineProperty(V,"NoUnusedVariablesRule",{enumerable:!0,get:function(){return yt.NoUnusedVariablesRule}});Object.defineProperty(V,"OperationTypeNode",{enumerable:!0,get:function(){return Xt.OperationTypeNode}});Object.defineProperty(V,"OverlappingFieldsCanBeMergedRule",{enumerable:!0,get:function(){return yt.OverlappingFieldsCanBeMergedRule}});Object.defineProperty(V,"PossibleFragmentSpreadsRule",{enumerable:!0,get:function(){return yt.PossibleFragmentSpreadsRule}});Object.defineProperty(V,"PossibleTypeExtensionsRule",{enumerable:!0,get:function(){return yt.PossibleTypeExtensionsRule}});Object.defineProperty(V,"ProvidedRequiredArgumentsRule",{enumerable:!0,get:function(){return yt.ProvidedRequiredArgumentsRule}});Object.defineProperty(V,"ScalarLeafsRule",{enumerable:!0,get:function(){return yt.ScalarLeafsRule}});Object.defineProperty(V,"SchemaMetaFieldDef",{enumerable:!0,get:function(){return Ie.SchemaMetaFieldDef}});Object.defineProperty(V,"SingleFieldSubscriptionsRule",{enumerable:!0,get:function(){return yt.SingleFieldSubscriptionsRule}});Object.defineProperty(V,"Source",{enumerable:!0,get:function(){return Xt.Source}});Object.defineProperty(V,"Token",{enumerable:!0,get:function(){return Xt.Token}});Object.defineProperty(V,"TokenKind",{enumerable:!0,get:function(){return Xt.TokenKind}});Object.defineProperty(V,"TypeInfo",{enumerable:!0,get:function(){return Zt.TypeInfo}});Object.defineProperty(V,"TypeKind",{enumerable:!0,get:function(){return Ie.TypeKind}});Object.defineProperty(V,"TypeMetaFieldDef",{enumerable:!0,get:function(){return Ie.TypeMetaFieldDef}});Object.defineProperty(V,"TypeNameMetaFieldDef",{enumerable:!0,get:function(){return Ie.TypeNameMetaFieldDef}});Object.defineProperty(V,"UniqueArgumentDefinitionNamesRule",{enumerable:!0,get:function(){return yt.UniqueArgumentDefinitionNamesRule}});Object.defineProperty(V,"UniqueArgumentNamesRule",{enumerable:!0,get:function(){return yt.UniqueArgumentNamesRule}});Object.defineProperty(V,"UniqueDirectiveNamesRule",{enumerable:!0,get:function(){return yt.UniqueDirectiveNamesRule}});Object.defineProperty(V,"UniqueDirectivesPerLocationRule",{enumerable:!0,get:function(){return yt.UniqueDirectivesPerLocationRule}});Object.defineProperty(V,"UniqueEnumValueNamesRule",{enumerable:!0,get:function(){return yt.UniqueEnumValueNamesRule}});Object.defineProperty(V,"UniqueFieldDefinitionNamesRule",{enumerable:!0,get:function(){return yt.UniqueFieldDefinitionNamesRule}});Object.defineProperty(V,"UniqueFragmentNamesRule",{enumerable:!0,get:function(){return yt.UniqueFragmentNamesRule}});Object.defineProperty(V,"UniqueInputFieldNamesRule",{enumerable:!0,get:function(){return yt.UniqueInputFieldNamesRule}});Object.defineProperty(V,"UniqueOperationNamesRule",{enumerable:!0,get:function(){return yt.UniqueOperationNamesRule}});Object.defineProperty(V,"UniqueOperationTypesRule",{enumerable:!0,get:function(){return yt.UniqueOperationTypesRule}});Object.defineProperty(V,"UniqueTypeNamesRule",{enumerable:!0,get:function(){return yt.UniqueTypeNamesRule}});Object.defineProperty(V,"UniqueVariableNamesRule",{enumerable:!0,get:function(){return yt.UniqueVariableNamesRule}});Object.defineProperty(V,"ValidationContext",{enumerable:!0,get:function(){return yt.ValidationContext}});Object.defineProperty(V,"ValuesOfCorrectTypeRule",{enumerable:!0,get:function(){return yt.ValuesOfCorrectTypeRule}});Object.defineProperty(V,"VariablesAreInputTypesRule",{enumerable:!0,get:function(){return yt.VariablesAreInputTypesRule}});Object.defineProperty(V,"VariablesInAllowedPositionRule",{enumerable:!0,get:function(){return yt.VariablesInAllowedPositionRule}});Object.defineProperty(V,"__Directive",{enumerable:!0,get:function(){return Ie.__Directive}});Object.defineProperty(V,"__DirectiveLocation",{enumerable:!0,get:function(){return Ie.__DirectiveLocation}});Object.defineProperty(V,"__EnumValue",{enumerable:!0,get:function(){return Ie.__EnumValue}});Object.defineProperty(V,"__Field",{enumerable:!0,get:function(){return Ie.__Field}});Object.defineProperty(V,"__InputValue",{enumerable:!0,get:function(){return Ie.__InputValue}});Object.defineProperty(V,"__Schema",{enumerable:!0,get:function(){return Ie.__Schema}});Object.defineProperty(V,"__Type",{enumerable:!0,get:function(){return Ie.__Type}});Object.defineProperty(V,"__TypeKind",{enumerable:!0,get:function(){return Ie.__TypeKind}});Object.defineProperty(V,"assertAbstractType",{enumerable:!0,get:function(){return Ie.assertAbstractType}});Object.defineProperty(V,"assertCompositeType",{enumerable:!0,get:function(){return Ie.assertCompositeType}});Object.defineProperty(V,"assertDirective",{enumerable:!0,get:function(){return Ie.assertDirective}});Object.defineProperty(V,"assertEnumType",{enumerable:!0,get:function(){return Ie.assertEnumType}});Object.defineProperty(V,"assertEnumValueName",{enumerable:!0,get:function(){return Ie.assertEnumValueName}});Object.defineProperty(V,"assertInputObjectType",{enumerable:!0,get:function(){return Ie.assertInputObjectType}});Object.defineProperty(V,"assertInputType",{enumerable:!0,get:function(){return Ie.assertInputType}});Object.defineProperty(V,"assertInterfaceType",{enumerable:!0,get:function(){return Ie.assertInterfaceType}});Object.defineProperty(V,"assertLeafType",{enumerable:!0,get:function(){return Ie.assertLeafType}});Object.defineProperty(V,"assertListType",{enumerable:!0,get:function(){return Ie.assertListType}});Object.defineProperty(V,"assertName",{enumerable:!0,get:function(){return Ie.assertName}});Object.defineProperty(V,"assertNamedType",{enumerable:!0,get:function(){return Ie.assertNamedType}});Object.defineProperty(V,"assertNonNullType",{enumerable:!0,get:function(){return Ie.assertNonNullType}});Object.defineProperty(V,"assertNullableType",{enumerable:!0,get:function(){return Ie.assertNullableType}});Object.defineProperty(V,"assertObjectType",{enumerable:!0,get:function(){return Ie.assertObjectType}});Object.defineProperty(V,"assertOutputType",{enumerable:!0,get:function(){return Ie.assertOutputType}});Object.defineProperty(V,"assertScalarType",{enumerable:!0,get:function(){return Ie.assertScalarType}});Object.defineProperty(V,"assertSchema",{enumerable:!0,get:function(){return Ie.assertSchema}});Object.defineProperty(V,"assertType",{enumerable:!0,get:function(){return Ie.assertType}});Object.defineProperty(V,"assertUnionType",{enumerable:!0,get:function(){return Ie.assertUnionType}});Object.defineProperty(V,"assertValidName",{enumerable:!0,get:function(){return Zt.assertValidName}});Object.defineProperty(V,"assertValidSchema",{enumerable:!0,get:function(){return Ie.assertValidSchema}});Object.defineProperty(V,"assertWrappingType",{enumerable:!0,get:function(){return Ie.assertWrappingType}});Object.defineProperty(V,"astFromValue",{enumerable:!0,get:function(){return Zt.astFromValue}});Object.defineProperty(V,"buildASTSchema",{enumerable:!0,get:function(){return Zt.buildASTSchema}});Object.defineProperty(V,"buildClientSchema",{enumerable:!0,get:function(){return Zt.buildClientSchema}});Object.defineProperty(V,"buildSchema",{enumerable:!0,get:function(){return Zt.buildSchema}});Object.defineProperty(V,"coerceInputValue",{enumerable:!0,get:function(){return Zt.coerceInputValue}});Object.defineProperty(V,"concatAST",{enumerable:!0,get:function(){return Zt.concatAST}});Object.defineProperty(V,"createSourceEventStream",{enumerable:!0,get:function(){return Za.createSourceEventStream}});Object.defineProperty(V,"defaultFieldResolver",{enumerable:!0,get:function(){return Za.defaultFieldResolver}});Object.defineProperty(V,"defaultTypeResolver",{enumerable:!0,get:function(){return Za.defaultTypeResolver}});Object.defineProperty(V,"doTypesOverlap",{enumerable:!0,get:function(){return Zt.doTypesOverlap}});Object.defineProperty(V,"execute",{enumerable:!0,get:function(){return Za.execute}});Object.defineProperty(V,"executeSync",{enumerable:!0,get:function(){return Za.executeSync}});Object.defineProperty(V,"extendSchema",{enumerable:!0,get:function(){return Zt.extendSchema}});Object.defineProperty(V,"findBreakingChanges",{enumerable:!0,get:function(){return Zt.findBreakingChanges}});Object.defineProperty(V,"findDangerousChanges",{enumerable:!0,get:function(){return Zt.findDangerousChanges}});Object.defineProperty(V,"formatError",{enumerable:!0,get:function(){return $f.formatError}});Object.defineProperty(V,"getArgumentValues",{enumerable:!0,get:function(){return Za.getArgumentValues}});Object.defineProperty(V,"getDirectiveValues",{enumerable:!0,get:function(){return Za.getDirectiveValues}});Object.defineProperty(V,"getEnterLeaveForKind",{enumerable:!0,get:function(){return Xt.getEnterLeaveForKind}});Object.defineProperty(V,"getIntrospectionQuery",{enumerable:!0,get:function(){return Zt.getIntrospectionQuery}});Object.defineProperty(V,"getLocation",{enumerable:!0,get:function(){return Xt.getLocation}});Object.defineProperty(V,"getNamedType",{enumerable:!0,get:function(){return Ie.getNamedType}});Object.defineProperty(V,"getNullableType",{enumerable:!0,get:function(){return Ie.getNullableType}});Object.defineProperty(V,"getOperationAST",{enumerable:!0,get:function(){return Zt.getOperationAST}});Object.defineProperty(V,"getOperationRootType",{enumerable:!0,get:function(){return Zt.getOperationRootType}});Object.defineProperty(V,"getVariableValues",{enumerable:!0,get:function(){return Za.getVariableValues}});Object.defineProperty(V,"getVisitFn",{enumerable:!0,get:function(){return Xt.getVisitFn}});Object.defineProperty(V,"graphql",{enumerable:!0,get:function(){return AU.graphql}});Object.defineProperty(V,"graphqlSync",{enumerable:!0,get:function(){return AU.graphqlSync}});Object.defineProperty(V,"introspectionFromSchema",{enumerable:!0,get:function(){return Zt.introspectionFromSchema}});Object.defineProperty(V,"introspectionTypes",{enumerable:!0,get:function(){return Ie.introspectionTypes}});Object.defineProperty(V,"isAbstractType",{enumerable:!0,get:function(){return Ie.isAbstractType}});Object.defineProperty(V,"isCompositeType",{enumerable:!0,get:function(){return Ie.isCompositeType}});Object.defineProperty(V,"isConstValueNode",{enumerable:!0,get:function(){return Xt.isConstValueNode}});Object.defineProperty(V,"isDefinitionNode",{enumerable:!0,get:function(){return Xt.isDefinitionNode}});Object.defineProperty(V,"isDirective",{enumerable:!0,get:function(){return Ie.isDirective}});Object.defineProperty(V,"isEnumType",{enumerable:!0,get:function(){return Ie.isEnumType}});Object.defineProperty(V,"isEqualType",{enumerable:!0,get:function(){return Zt.isEqualType}});Object.defineProperty(V,"isExecutableDefinitionNode",{enumerable:!0,get:function(){return Xt.isExecutableDefinitionNode}});Object.defineProperty(V,"isInputObjectType",{enumerable:!0,get:function(){return Ie.isInputObjectType}});Object.defineProperty(V,"isInputType",{enumerable:!0,get:function(){return Ie.isInputType}});Object.defineProperty(V,"isInterfaceType",{enumerable:!0,get:function(){return Ie.isInterfaceType}});Object.defineProperty(V,"isIntrospectionType",{enumerable:!0,get:function(){return Ie.isIntrospectionType}});Object.defineProperty(V,"isLeafType",{enumerable:!0,get:function(){return Ie.isLeafType}});Object.defineProperty(V,"isListType",{enumerable:!0,get:function(){return Ie.isListType}});Object.defineProperty(V,"isNamedType",{enumerable:!0,get:function(){return Ie.isNamedType}});Object.defineProperty(V,"isNonNullType",{enumerable:!0,get:function(){return Ie.isNonNullType}});Object.defineProperty(V,"isNullableType",{enumerable:!0,get:function(){return Ie.isNullableType}});Object.defineProperty(V,"isObjectType",{enumerable:!0,get:function(){return Ie.isObjectType}});Object.defineProperty(V,"isOutputType",{enumerable:!0,get:function(){return Ie.isOutputType}});Object.defineProperty(V,"isRequiredArgument",{enumerable:!0,get:function(){return Ie.isRequiredArgument}});Object.defineProperty(V,"isRequiredInputField",{enumerable:!0,get:function(){return Ie.isRequiredInputField}});Object.defineProperty(V,"isScalarType",{enumerable:!0,get:function(){return Ie.isScalarType}});Object.defineProperty(V,"isSchema",{enumerable:!0,get:function(){return Ie.isSchema}});Object.defineProperty(V,"isSelectionNode",{enumerable:!0,get:function(){return Xt.isSelectionNode}});Object.defineProperty(V,"isSpecifiedDirective",{enumerable:!0,get:function(){return Ie.isSpecifiedDirective}});Object.defineProperty(V,"isSpecifiedScalarType",{enumerable:!0,get:function(){return Ie.isSpecifiedScalarType}});Object.defineProperty(V,"isType",{enumerable:!0,get:function(){return Ie.isType}});Object.defineProperty(V,"isTypeDefinitionNode",{enumerable:!0,get:function(){return Xt.isTypeDefinitionNode}});Object.defineProperty(V,"isTypeExtensionNode",{enumerable:!0,get:function(){return Xt.isTypeExtensionNode}});Object.defineProperty(V,"isTypeNode",{enumerable:!0,get:function(){return Xt.isTypeNode}});Object.defineProperty(V,"isTypeSubTypeOf",{enumerable:!0,get:function(){return Zt.isTypeSubTypeOf}});Object.defineProperty(V,"isTypeSystemDefinitionNode",{enumerable:!0,get:function(){return Xt.isTypeSystemDefinitionNode}});Object.defineProperty(V,"isTypeSystemExtensionNode",{enumerable:!0,get:function(){return Xt.isTypeSystemExtensionNode}});Object.defineProperty(V,"isUnionType",{enumerable:!0,get:function(){return Ie.isUnionType}});Object.defineProperty(V,"isValidNameError",{enumerable:!0,get:function(){return Zt.isValidNameError}});Object.defineProperty(V,"isValueNode",{enumerable:!0,get:function(){return Xt.isValueNode}});Object.defineProperty(V,"isWrappingType",{enumerable:!0,get:function(){return Ie.isWrappingType}});Object.defineProperty(V,"lexicographicSortSchema",{enumerable:!0,get:function(){return Zt.lexicographicSortSchema}});Object.defineProperty(V,"locatedError",{enumerable:!0,get:function(){return $f.locatedError}});Object.defineProperty(V,"parse",{enumerable:!0,get:function(){return Xt.parse}});Object.defineProperty(V,"parseConstValue",{enumerable:!0,get:function(){return Xt.parseConstValue}});Object.defineProperty(V,"parseType",{enumerable:!0,get:function(){return Xt.parseType}});Object.defineProperty(V,"parseValue",{enumerable:!0,get:function(){return Xt.parseValue}});Object.defineProperty(V,"print",{enumerable:!0,get:function(){return Xt.print}});Object.defineProperty(V,"printError",{enumerable:!0,get:function(){return $f.printError}});Object.defineProperty(V,"printIntrospectionSchema",{enumerable:!0,get:function(){return Zt.printIntrospectionSchema}});Object.defineProperty(V,"printLocation",{enumerable:!0,get:function(){return Xt.printLocation}});Object.defineProperty(V,"printSchema",{enumerable:!0,get:function(){return Zt.printSchema}});Object.defineProperty(V,"printSourceLocation",{enumerable:!0,get:function(){return Xt.printSourceLocation}});Object.defineProperty(V,"printType",{enumerable:!0,get:function(){return Zt.printType}});Object.defineProperty(V,"recommendedRules",{enumerable:!0,get:function(){return yt.recommendedRules}});Object.defineProperty(V,"resolveObjMapThunk",{enumerable:!0,get:function(){return Ie.resolveObjMapThunk}});Object.defineProperty(V,"resolveReadonlyArrayThunk",{enumerable:!0,get:function(){return Ie.resolveReadonlyArrayThunk}});Object.defineProperty(V,"responsePathAsArray",{enumerable:!0,get:function(){return Za.responsePathAsArray}});Object.defineProperty(V,"separateOperations",{enumerable:!0,get:function(){return Zt.separateOperations}});Object.defineProperty(V,"specifiedDirectives",{enumerable:!0,get:function(){return Ie.specifiedDirectives}});Object.defineProperty(V,"specifiedRules",{enumerable:!0,get:function(){return yt.specifiedRules}});Object.defineProperty(V,"specifiedScalarTypes",{enumerable:!0,get:function(){return Ie.specifiedScalarTypes}});Object.defineProperty(V,"stripIgnoredCharacters",{enumerable:!0,get:function(){return Zt.stripIgnoredCharacters}});Object.defineProperty(V,"subscribe",{enumerable:!0,get:function(){return Za.subscribe}});Object.defineProperty(V,"syntaxError",{enumerable:!0,get:function(){return $f.syntaxError}});Object.defineProperty(V,"typeFromAST",{enumerable:!0,get:function(){return Zt.typeFromAST}});Object.defineProperty(V,"validate",{enumerable:!0,get:function(){return yt.validate}});Object.defineProperty(V,"validateSchema",{enumerable:!0,get:function(){return Ie.validateSchema}});Object.defineProperty(V,"valueFromAST",{enumerable:!0,get:function(){return Zt.valueFromAST}});Object.defineProperty(V,"valueFromASTUntyped",{enumerable:!0,get:function(){return Zt.valueFromASTUntyped}});Object.defineProperty(V,"version",{enumerable:!0,get:function(){return bU.version}});Object.defineProperty(V,"versionInfo",{enumerable:!0,get:function(){return bU.versionInfo}});Object.defineProperty(V,"visit",{enumerable:!0,get:function(){return Xt.visit}});Object.defineProperty(V,"visitInParallel",{enumerable:!0,get:function(){return Xt.visitInParallel}});Object.defineProperty(V,"visitWithTypeInfo",{enumerable:!0,get:function(){return Zt.visitWithTypeInfo}});var bU=_F(),AU=TC(),Ie=yC(),Xt=gC(),Za=RC(),yt=LC(),$f=CC(),Zt=DU()});var Xn=F(A=>{"use strict";m();T();N();Object.defineProperty(A,"__esModule",{value:!0});A.FIELD=A.EXTENSIONS=A.EXTENDS=A.EXTERNAL=A.EXECUTION=A.ENUM_VALUE_UPPER=A.ENUM_VALUE=A.ENUM_UPPER=A.ENUM=A.ENTITY_UNION=A.ENTITIES_FIELD=A.ENTITIES=A.EDFS_REDIS_SUBSCRIBE=A.EDFS_REDIS_PUBLISH=A.EDFS_NATS_STREAM_CONFIGURATION=A.EDFS_PUBLISH_RESULT=A.EDFS_NATS_SUBSCRIBE=A.EDFS_NATS_REQUEST=A.EDFS_NATS_PUBLISH=A.EDFS_KAFKA_SUBSCRIBE=A.EDFS_KAFKA_PUBLISH=A.DIRECTIVE_DEFINITION=A.DESCRIPTION_OVERRIDE=A.DEPRECATED_DEFAULT_ARGUMENT_VALUE=A.DEPRECATED=A.DEFAULT_SUBSCRIPTION=A.DEFAULT_QUERY=A.DEFAULT_MUTATION=A.DEFAULT_EDFS_PROVIDER_ID=A.DEFAULT=A.COST=A.CONTEXT=A.CONNECT_FIELD_RESOLVER=A.CONSUMER_NAME=A.CONSUMER_INACTIVE_THRESHOLD=A.CONFIGURE_CHILD_DESCRIPTIONS=A.CONFIGURE_DESCRIPTION=A.CONDITION=A.COMPOSE_DIRECTIVE=A.CHANNELS=A.CHANNEL=A.BOOLEAN_SCALAR=A.BOOLEAN=A.ARGUMENT_DEFINITION_UPPER=A.AUTHENTICATED=A.ARGUMENT=A.ANY_SCALAR=A.AND_UPPER=A.ASSUMED_SIZE=A.AS=void 0;A.NON_NULLABLE_BOOLEAN=A.NON_NULLABLE_EDFS_PUBLISH_EVENT_RESULT=A.NAME=A.NOT_APPLICABLE=A.PROVIDER_TYPE_REDIS=A.PROVIDER_TYPE_NATS=A.PROVIDER_TYPE_KAFKA=A.PROPAGATE=A.MUTATION_UPPER=A.MUTATION=A.NUMBER=A.LITERAL_PERIOD=A.LITERAL_NEW_LINE=A.LITERAL_SPACE=A.LIST=A.LINK_PURPOSE=A.LINK_IMPORT=A.LIST_SIZE=A.LINK=A.LEVELS=A.LEFT_PARENTHESIS=A.KEY=A.INTERFACE_OBJECT=A.INTERFACE_UPPER=A.INTERFACE=A.INT_SCALAR=A.INPUT_VALUE=A.INPUT_OBJECT_UPPER=A.INPUT_OBJECT=A.INPUT_FIELD_DEFINITION_UPPER=A.INPUT_FIELD=A.INPUT=A.INLINE_FRAGMENT_UPPER=A.INLINE_FRAGMENT=A.INACCESSIBLE=A.IN_UPPER=A.IMPORT=A.ID_SCALAR=A.HYPHEN_JOIN=A.FROM=A.FRAGMENT_SPREAD_UPPER=A.FRAGMENT_DEFINITION_UPPER=A.FOR=A.FLOAT_SCALAR=A.FIRST_ORDINAL=A.FIELD_DEFINITION_UPPER=A.FIELDS=A.FIELD_SET_SCALAR=A.FIELD_UPPER=A.FIELD_PATH=void 0;A.SUBSCRIPTION_FILTER=A.SUBSCRIPTION_FIELD_CONDITION=A.SUBSCRIPTION=A.SUBJECTS=A.SUBJECT=A.STRING_SCALAR=A.STRING=A.STREAM_NAME=A.STREAM_CONFIGURATION=A.SPECIFIED_BY=A.SLICING_ARGUMENTS=A.SIZED_FIELDS=A.SHAREABLE=A.SERVICE_FIELD=A.SERVICE_OBJECT=A.SEMANTIC_NON_NULL=A.SELECTION_REPRESENTATION=A.SECURITY=A.SCOPE_SCALAR=A.SCOPES=A.SCHEMA_UPPER=A.SCHEMA=A.SCALAR_UPPER=A.SCALAR=A.RESOLVABLE=A.REQUIRES_SCOPES=A.REQUIRES=A.REQUIRE_ONE_SLICING_ARGUMENT=A.REQUIRE_FETCH_REASONS=A.REQUEST=A.REASON=A.QUOTATION_JOIN=A.QUERY_UPPER=A.QUERY=A.PUBLISH=A.PROVIDES=A.PROVIDER_ID=A.PARENT_EXTENSION_DATA_MAP=A.PARENT_DEFINITION_DATA_MAP=A.PARENT_DEFINITION_DATA=A.OVERRIDE=A.OR_UPPER=A.OBJECT_UPPER=A.OBJECT=A.OPERATION_TO_DEFAULT=A.ONE_OF=A.NULL=A.NOT_UPPER=A.NON_NULLABLE_STRING=A.NON_NULLABLE_INT=void 0;A.NON_REPEATABLE_PERSISTED_DIRECTIVES=A.INTERFACE_NODE_KINDS=A.OUTPUT_NODE_KINDS=A.INPUT_NODE_KINDS=A.IGNORED_FIELDS=A.INHERITABLE_DIRECTIVE_NAMES=A.PERSISTED_CLIENT_DIRECTIVES=A.AUTHORIZATION_DIRECTIVES=A.ROOT_TYPE_NAMES=A.EXECUTABLE_DIRECTIVE_LOCATIONS=A.WEIGHT=A.VARIABLE_DEFINITION_UPPER=A.VALUES=A.URL_LOWER=A.UNION_UPPER=A.UNION=A.TYPENAME=A.TOPICS=A.TOPIC=A.TAG=A.SUCCESS=A.SUBSCRIPTION_UPPER=A.SUBSCRIBE=A.SUBSCRIPTION_FILTER_VALUE=A.SUBSCRIPTION_FILTER_CONDITION=void 0;var es=Se();A.AS="as";A.ASSUMED_SIZE="assumedSize";A.AND_UPPER="AND";A.ANY_SCALAR="_Any";A.ARGUMENT="argument";A.AUTHENTICATED="authenticated";A.ARGUMENT_DEFINITION_UPPER="ARGUMENT_DEFINITION";A.BOOLEAN="boolean";A.BOOLEAN_SCALAR="Boolean";A.CHANNEL="channel";A.CHANNELS="channels";A.COMPOSE_DIRECTIVE="composeDirective";A.CONDITION="condition";A.CONFIGURE_DESCRIPTION="openfed__configureDescription";A.CONFIGURE_CHILD_DESCRIPTIONS="openfed__configureChildDescriptions";A.CONSUMER_INACTIVE_THRESHOLD="consumerInactiveThreshold";A.CONSUMER_NAME="consumerName";A.CONNECT_FIELD_RESOLVER="connect__fieldResolver";A.CONTEXT="context";A.COST="cost";A.DEFAULT="default";A.DEFAULT_EDFS_PROVIDER_ID="default";A.DEFAULT_MUTATION="Mutation";A.DEFAULT_QUERY="Query";A.DEFAULT_SUBSCRIPTION="Subscription";A.DEPRECATED="deprecated";A.DEPRECATED_DEFAULT_ARGUMENT_VALUE="No longer supported";A.DESCRIPTION_OVERRIDE="descriptionOverride";A.DIRECTIVE_DEFINITION="directive definition";A.EDFS_KAFKA_PUBLISH="edfs__kafkaPublish";A.EDFS_KAFKA_SUBSCRIBE="edfs__kafkaSubscribe";A.EDFS_NATS_PUBLISH="edfs__natsPublish";A.EDFS_NATS_REQUEST="edfs__natsRequest";A.EDFS_NATS_SUBSCRIBE="edfs__natsSubscribe";A.EDFS_PUBLISH_RESULT="edfs__PublishResult";A.EDFS_NATS_STREAM_CONFIGURATION="edfs__NatsStreamConfiguration";A.EDFS_REDIS_PUBLISH="edfs__redisPublish";A.EDFS_REDIS_SUBSCRIBE="edfs__redisSubscribe";A.ENTITIES="entities";A.ENTITIES_FIELD="_entities";A.ENTITY_UNION="_Entity";A.ENUM="Enum";A.ENUM_UPPER="ENUM";A.ENUM_VALUE="Enum Value";A.ENUM_VALUE_UPPER="ENUM_VALUE";A.EXECUTION="EXECUTION";A.EXTERNAL="external";A.EXTENDS="extends";A.EXTENSIONS="extensions";A.FIELD="field";A.FIELD_PATH="fieldPath";A.FIELD_UPPER="FIELD";A.FIELD_SET_SCALAR="openfed__FieldSet";A.FIELDS="fields";A.FIELD_DEFINITION_UPPER="FIELD_DEFINITION";A.FIRST_ORDINAL="1st";A.FLOAT_SCALAR="Float";A.FOR="for";A.FRAGMENT_DEFINITION_UPPER="FRAGMENT_DEFINITION";A.FRAGMENT_SPREAD_UPPER="FRAGMENT_SPREAD";A.FROM="from";A.HYPHEN_JOIN=` - -`;A.ID_SCALAR="ID";A.IMPORT="import";A.IN_UPPER="IN";A.INACCESSIBLE="inaccessible";A.INLINE_FRAGMENT="inlineFragment";A.INLINE_FRAGMENT_UPPER="INLINE_FRAGMENT";A.INPUT="Input";A.INPUT_FIELD="Input field";A.INPUT_FIELD_DEFINITION_UPPER="INPUT_FIELD_DEFINITION";A.INPUT_OBJECT="Input Object";A.INPUT_OBJECT_UPPER="INPUT_OBJECT";A.INPUT_VALUE="Input Value";A.INT_SCALAR="Int";A.INTERFACE="Interface";A.INTERFACE_UPPER="INTERFACE";A.INTERFACE_OBJECT="interfaceObject";A.KEY="key";A.LEFT_PARENTHESIS="(";A.LEVELS="levels";A.LINK="link";A.LIST_SIZE="listSize";A.LINK_IMPORT="link__Import";A.LINK_PURPOSE="link__Purpose";A.LIST="list";A.LITERAL_SPACE=" ";A.LITERAL_NEW_LINE=` -`;A.LITERAL_PERIOD=".";A.NUMBER="number";A.MUTATION="Mutation";A.MUTATION_UPPER="MUTATION";A.PROPAGATE="propagate";A.PROVIDER_TYPE_KAFKA="kafka";A.PROVIDER_TYPE_NATS="nats";A.PROVIDER_TYPE_REDIS="redis";A.NOT_APPLICABLE="N/A";A.NAME="name";A.NON_NULLABLE_EDFS_PUBLISH_EVENT_RESULT="edfs__PublishResult!";A.NON_NULLABLE_BOOLEAN="Boolean!";A.NON_NULLABLE_INT="Int!";A.NON_NULLABLE_STRING="String!";A.NOT_UPPER="NOT";A.NULL="Null";A.ONE_OF="oneOf";A.OPERATION_TO_DEFAULT="operationTypeNodeToDefaultType";A.OBJECT="Object";A.OBJECT_UPPER="OBJECT";A.OR_UPPER="OR";A.OVERRIDE="override";A.PARENT_DEFINITION_DATA="parentDefinitionDataByTypeName";A.PARENT_DEFINITION_DATA_MAP="parentDefinitionDataByParentTypeName";A.PARENT_EXTENSION_DATA_MAP="parentExtensionDataByParentTypeName";A.PROVIDER_ID="providerId";A.PROVIDES="provides";A.PUBLISH="publish";A.QUERY="Query";A.QUERY_UPPER="QUERY";A.QUOTATION_JOIN='", "';A.REASON="reason";A.REQUEST="request";A.REQUIRE_FETCH_REASONS="openfed__requireFetchReasons";A.REQUIRE_ONE_SLICING_ARGUMENT="requireOneSlicingArgument";A.REQUIRES="requires";A.REQUIRES_SCOPES="requiresScopes";A.RESOLVABLE="resolvable";A.SCALAR="Scalar";A.SCALAR_UPPER="SCALAR";A.SCHEMA="schema";A.SCHEMA_UPPER="SCHEMA";A.SCOPES="scopes";A.SCOPE_SCALAR="openfed__Scope";A.SECURITY="SECURITY";A.SELECTION_REPRESENTATION=" { ... }";A.SEMANTIC_NON_NULL="semanticNonNull";A.SERVICE_OBJECT="_Service";A.SERVICE_FIELD="_service";A.SHAREABLE="shareable";A.SIZED_FIELDS="sizedFields";A.SLICING_ARGUMENTS="slicingArguments";A.SPECIFIED_BY="specifiedBy";A.STREAM_CONFIGURATION="streamConfiguration";A.STREAM_NAME="streamName";A.STRING="string";A.STRING_SCALAR="String";A.SUBJECT="subject";A.SUBJECTS="subjects";A.SUBSCRIPTION="Subscription";A.SUBSCRIPTION_FIELD_CONDITION="openfed__SubscriptionFieldCondition";A.SUBSCRIPTION_FILTER="openfed__subscriptionFilter";A.SUBSCRIPTION_FILTER_CONDITION="openfed__SubscriptionFilterCondition";A.SUBSCRIPTION_FILTER_VALUE="openfed__SubscriptionFilterValue";A.SUBSCRIBE="subscribe";A.SUBSCRIPTION_UPPER="SUBSCRIPTION";A.SUCCESS="success";A.TAG="tag";A.TOPIC="topic";A.TOPICS="topics";A.TYPENAME="__typename";A.UNION="Union";A.UNION_UPPER="UNION";A.URL_LOWER="url";A.VALUES="values";A.VARIABLE_DEFINITION_UPPER="VARIABLE_DEFINITION";A.WEIGHT="weight";A.EXECUTABLE_DIRECTIVE_LOCATIONS=new Set([A.FIELD_UPPER,A.FRAGMENT_DEFINITION_UPPER,A.FRAGMENT_SPREAD_UPPER,A.INLINE_FRAGMENT_UPPER,A.MUTATION_UPPER,A.QUERY_UPPER,A.SUBSCRIPTION_UPPER]);A.ROOT_TYPE_NAMES=new Set([A.MUTATION,A.QUERY,A.SUBSCRIPTION]);A.AUTHORIZATION_DIRECTIVES=new Set([A.AUTHENTICATED,A.REQUIRES_SCOPES]);A.PERSISTED_CLIENT_DIRECTIVES=new Set([A.DEPRECATED,A.ONE_OF,A.SEMANTIC_NON_NULL]);A.INHERITABLE_DIRECTIVE_NAMES=new Set([A.EXTERNAL,A.REQUIRE_FETCH_REASONS,A.SHAREABLE]);A.IGNORED_FIELDS=new Set([A.ENTITIES_FIELD,A.SERVICE_FIELD]);A.INPUT_NODE_KINDS=new Set([es.Kind.ENUM_TYPE_DEFINITION,es.Kind.INPUT_OBJECT_TYPE_DEFINITION,es.Kind.SCALAR_TYPE_DEFINITION]);A.OUTPUT_NODE_KINDS=new Set([es.Kind.ENUM_TYPE_DEFINITION,es.Kind.INTERFACE_TYPE_DEFINITION,es.Kind.OBJECT_TYPE_DEFINITION,es.Kind.SCALAR_TYPE_DEFINITION,es.Kind.UNION_TYPE_DEFINITION]);A.INTERFACE_NODE_KINDS=new Set([es.Kind.INTERFACE_TYPE_DEFINITION,es.Kind.INTERFACE_TYPE_EXTENSION]);A.NON_REPEATABLE_PERSISTED_DIRECTIVES=new Set([A.INACCESSIBLE,A.ONE_OF,A.SEMANTIC_NON_NULL])});var Br=F(Zn=>{"use strict";m();T();N();Object.defineProperty(Zn,"__esModule",{value:!0});Zn.operationTypeNodeToDefaultType=void 0;Zn.isObjectLikeNodeEntity=Q7;Zn.isNodeInterfaceObject=Y7;Zn.stringToNameNode=hT;Zn.stringArrayToNameNodeArray=J7;Zn.setToNameNodeArray=z7;Zn.stringToNamedTypeNode=RU;Zn.setToNamedTypeNodeArray=H7;Zn.nodeKindToDirectiveLocation=W7;Zn.isKindAbstract=X7;Zn.extractExecutableDirectiveLocations=Z7;Zn.formatDescription=eZ;Zn.lexicographicallySortArgumentNodes=PU;Zn.lexicographicallySortSelectionSetNode=ET;Zn.lexicographicallySortDocumentNode=tZ;Zn.parse=FU;Zn.safeParse=nZ;var jt=Se(),An=Xn();function Q7(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 Y7(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 hT(e){return{kind:jt.Kind.NAME,value:e}}function J7(e){let t=[];for(let n of e)t.push(hT(n));return t}function z7(e){let t=[];for(let n of e)t.push(hT(n));return t}function RU(e){return{kind:jt.Kind.NAMED_TYPE,name:hT(e)}}function H7(e){let t=[];for(let n of e)t.push(RU(n));return t}function W7(e){switch(e){case jt.Kind.ARGUMENT:return An.ARGUMENT_DEFINITION_UPPER;case jt.Kind.ENUM_TYPE_DEFINITION:case jt.Kind.ENUM_TYPE_EXTENSION:return An.ENUM_UPPER;case jt.Kind.ENUM_VALUE_DEFINITION:return An.ENUM_VALUE_UPPER;case jt.Kind.FIELD_DEFINITION:return An.FIELD_DEFINITION_UPPER;case jt.Kind.FRAGMENT_DEFINITION:return An.FRAGMENT_DEFINITION_UPPER;case jt.Kind.FRAGMENT_SPREAD:return An.FRAGMENT_SPREAD_UPPER;case jt.Kind.INLINE_FRAGMENT:return An.INLINE_FRAGMENT_UPPER;case jt.Kind.INPUT_VALUE_DEFINITION:return An.INPUT_FIELD_DEFINITION_UPPER;case jt.Kind.INPUT_OBJECT_TYPE_DEFINITION:case jt.Kind.INPUT_OBJECT_TYPE_EXTENSION:return An.INPUT_OBJECT_UPPER;case jt.Kind.INTERFACE_TYPE_DEFINITION:case jt.Kind.INTERFACE_TYPE_EXTENSION:return An.INTERFACE_UPPER;case jt.Kind.OBJECT_TYPE_DEFINITION:case jt.Kind.OBJECT_TYPE_EXTENSION:return An.OBJECT_UPPER;case jt.Kind.SCALAR_TYPE_DEFINITION:case jt.Kind.SCALAR_TYPE_EXTENSION:return An.SCALAR_UPPER;case jt.Kind.SCHEMA_DEFINITION:case jt.Kind.SCHEMA_EXTENSION:return An.SCHEMA_UPPER;case jt.Kind.UNION_TYPE_DEFINITION:case jt.Kind.UNION_TYPE_EXTENSION:return An.UNION_UPPER;default:return e}}Zn.operationTypeNodeToDefaultType=new Map([[jt.OperationTypeNode.MUTATION,An.MUTATION],[jt.OperationTypeNode.QUERY,An.QUERY],[jt.OperationTypeNode.SUBSCRIPTION,An.SUBSCRIPTION]]);function X7(e){return e===jt.Kind.INTERFACE_TYPE_DEFINITION||e===jt.Kind.UNION_TYPE_DEFINITION}function Z7(e,t){for(let n of e){let r=n.value;An.EXECUTABLE_DIRECTIVE_LOCATIONS.has(r)&&t.add(r)}return t}function eZ(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 G(M({},e),{value:t,block:!0})}function PU(e){return e.arguments?e.arguments.sort((n,r)=>n.name.value.localeCompare(r.name.value)):e.arguments}function ET(e){let t=e.selections;return G(M({},e),{selections:t.sort((n,r)=>{var a,o,u,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=(u=r.typeCondition)==null?void 0:u.name.value)!=null?l:"")}).map(n=>{switch(n.kind){case jt.Kind.FIELD:return G(M({},n),{arguments:PU(n),selectionSet:n.selectionSet?ET(n.selectionSet):n.selectionSet});case jt.Kind.FRAGMENT_SPREAD:return n;case jt.Kind.INLINE_FRAGMENT:return G(M({},n),{selectionSet:ET(n.selectionSet)})}})})}function tZ(e){return G(M({},e),{definitions:e.definitions.map(t=>t.kind!==jt.Kind.OPERATION_DEFINITION?t:G(M({},t),{selectionSet:ET(t.selectionSet)}))})}function FU(e,t=!0){return(0,jt.parse)(e,{noLocation:t})}function nZ(e,t=!0){try{return{documentNode:FU(e,t)}}catch(n){return{error:n}}}});var CU=F(xl=>{"use strict";m();T();N();Object.defineProperty(xl,"__esModule",{value:!0});xl.AccumulatorMap=void 0;xl.mapValue=Ml;xl.extendSchemaImpl=rZ;var ke=Se(),ws=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)}};xl.AccumulatorMap=ws;function Ml(e,t){let n=Object.create(null);for(let r of Object.keys(e))n[r]=t(e[r],r);return n}function rZ(e,t,n){var Le,ve,we,Mt;let r=[],i=new ws,a=new ws,o=new ws,u=new ws,l=new ws,d=new ws,p=[],E,h=[],v=!1;for(let J of t.definitions){switch(J.kind){case ke.Kind.SCHEMA_DEFINITION:E=J;break;case ke.Kind.SCHEMA_EXTENSION:h.push(J);break;case ke.Kind.DIRECTIVE_DEFINITION:p.push(J);break;case ke.Kind.SCALAR_TYPE_DEFINITION:case ke.Kind.OBJECT_TYPE_DEFINITION:case ke.Kind.INTERFACE_TYPE_DEFINITION:case ke.Kind.UNION_TYPE_DEFINITION:case ke.Kind.ENUM_TYPE_DEFINITION:case ke.Kind.INPUT_OBJECT_TYPE_DEFINITION:r.push(J);break;case ke.Kind.SCALAR_TYPE_EXTENSION:i.add(J.name.value,J);break;case ke.Kind.OBJECT_TYPE_EXTENSION:a.add(J.name.value,J);break;case ke.Kind.INTERFACE_TYPE_EXTENSION:o.add(J.name.value,J);break;case ke.Kind.UNION_TYPE_EXTENSION:u.add(J.name.value,J);break;case ke.Kind.ENUM_TYPE_EXTENSION:l.add(J.name.value,J);break;case ke.Kind.INPUT_OBJECT_TYPE_EXTENSION:d.add(J.name.value,J);break;default:continue}v=!0}if(!v)return e;let R=new Map;for(let J of e.types){let ie=ae(J);ie&&R.set(J.name,ie)}for(let J of r){let ie=J.name.value;R.set(ie,(Le=wU.get(ie))!=null?Le:se(J))}for(let[J,ie]of a)R.set(J,new ke.GraphQLObjectType({name:J,interfaces:()=>vt(ie),fields:()=>Ht(ie),extensionASTNodes:ie}));if(n!=null&&n.addInvalidExtensionOrphans){for(let[J,ie]of o)R.set(J,new ke.GraphQLInterfaceType({name:J,interfaces:()=>vt(ie),fields:()=>Ht(ie),extensionASTNodes:ie}));for(let[J,ie]of l)R.set(J,new ke.GraphQLEnumType({name:J,values:zn(ie),extensionASTNodes:ie}));for(let[J,ie]of u)R.set(J,new ke.GraphQLUnionType({name:J,types:()=>Ln(ie),extensionASTNodes:ie}));for(let[J,ie]of i)R.set(J,new ke.GraphQLScalarType({name:J,extensionASTNodes:ie}));for(let[J,ie]of d)R.set(J,new ke.GraphQLInputObjectType({name:J,fields:()=>Ar(ie),extensionASTNodes:ie}))}let U=M(M({query:e.query&&X(e.query),mutation:e.mutation&&X(e.mutation),subscription:e.subscription&&X(e.subscription)},E&&sn([E])),sn(h));return G(M({description:(we=(ve=E==null?void 0:E.description)==null?void 0:ve.value)!=null?we:e.description},U),{types:Array.from(R.values()),directives:[...e.directives.map(te),...p.map($t)],extensions:e.extensions,astNode:E!=null?E:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(h),assumeValid:(Mt=n==null?void 0:n.assumeValid)!=null?Mt:!1});function q(J){return(0,ke.isListType)(J)?new ke.GraphQLList(q(J.ofType)):(0,ke.isNonNullType)(J)?new ke.GraphQLNonNull(q(J.ofType)):X(J)}function X(J){return R.get(J.name)}function te(J){if((0,ke.isSpecifiedDirective)(J))return J;let ie=J.toConfig();return new ke.GraphQLDirective(G(M({},ie),{args:Ml(ie.args,It)}))}function ae(J){if((0,ke.isIntrospectionType)(J)||(0,ke.isSpecifiedScalarType)(J))return J;if((0,ke.isScalarType)(J))return _e(J);if((0,ke.isObjectType)(J))return Ee(J);if((0,ke.isInterfaceType)(J))return Be(J);if((0,ke.isUnionType)(J))return Z(J);if((0,ke.isEnumType)(J))return ye(J);if((0,ke.isInputObjectType)(J))return me(J)}function me(J){var He;let ie=J.toConfig(),$e=(He=d.get(ie.name))!=null?He:[];return new ke.GraphQLInputObjectType(G(M({},ie),{fields:()=>M(M({},Ml(ie.fields,Lt=>G(M({},Lt),{type:q(Lt.type)}))),Ar($e)),extensionASTNodes:ie.extensionASTNodes.concat($e)}))}function ye(J){var He;let ie=J.toConfig(),$e=(He=l.get(J.name))!=null?He:[];return new ke.GraphQLEnumType(G(M({},ie),{values:M(M({},ie.values),zn($e)),extensionASTNodes:ie.extensionASTNodes.concat($e)}))}function _e(J){var Lt,St;let ie=J.toConfig(),$e=(Lt=i.get(ie.name))!=null?Lt:[],He=ie.specifiedByURL;for(let Et of $e)He=(St=LU(Et))!=null?St:He;return new ke.GraphQLScalarType(G(M({},ie),{specifiedByURL:He,extensionASTNodes:ie.extensionASTNodes.concat($e)}))}function Ee(J){var He;let ie=J.toConfig(),$e=(He=a.get(ie.name))!=null?He:[];return new ke.GraphQLObjectType(G(M({},ie),{interfaces:()=>[...J.getInterfaces().map(X),...vt($e)],fields:()=>M(M({},Ml(ie.fields,ge)),Ht($e)),extensionASTNodes:ie.extensionASTNodes.concat($e)}))}function Be(J){var He;let ie=J.toConfig(),$e=(He=o.get(ie.name))!=null?He:[];return new ke.GraphQLInterfaceType(G(M({},ie),{interfaces:()=>[...J.getInterfaces().map(X),...vt($e)],fields:()=>M(M({},Ml(ie.fields,ge)),Ht($e)),extensionASTNodes:ie.extensionASTNodes.concat($e)}))}function Z(J){var He;let ie=J.toConfig(),$e=(He=u.get(ie.name))!=null?He:[];return new ke.GraphQLUnionType(G(M({},ie),{types:()=>[...J.getTypes().map(X),...Ln($e)],extensionASTNodes:ie.extensionASTNodes.concat($e)}))}function ge(J){return G(M({},J),{type:q(J.type),args:J.args&&Ml(J.args,It)})}function It(J){return G(M({},J),{type:q(J.type)})}function sn(J){var $e;let ie={};for(let He of J){let Lt=($e=He.operationTypes)!=null?$e:[];for(let St of Lt)ie[St.operation]=Tn(St.type)}return ie}function Tn(J){var He;let ie=J.name.value,$e=(He=wU.get(ie))!=null?He:R.get(ie);if($e===void 0)throw new Error(`Unknown type: "${ie}".`);return $e}function En(J){return J.kind===ke.Kind.LIST_TYPE?new ke.GraphQLList(En(J.type)):J.kind===ke.Kind.NON_NULL_TYPE?new ke.GraphQLNonNull(En(J.type)):Tn(J)}function $t(J){var ie;return new ke.GraphQLDirective({name:J.name.value,description:(ie=J.description)==null?void 0:ie.value,locations:J.locations.map(({value:$e})=>$e),isRepeatable:J.repeatable,args:wn(J.arguments),astNode:J})}function Ht(J){var $e,He;let ie=Object.create(null);for(let Lt of J){let St=($e=Lt.fields)!=null?$e:[];for(let Et of St)ie[Et.name.value]={type:En(Et.type),description:(He=Et.description)==null?void 0:He.value,args:wn(Et.arguments),deprecationReason:yT(Et),astNode:Et}}return ie}function wn(J){var He;let ie=J!=null?J:[],$e=Object.create(null);for(let Lt of ie){let St=En(Lt.type);$e[Lt.name.value]={type:St,description:(He=Lt.description)==null?void 0:He.value,defaultValue:(0,ke.valueFromAST)(Lt.defaultValue,St),deprecationReason:yT(Lt),astNode:Lt}}return $e}function Ar(J){var $e,He;let ie=Object.create(null);for(let Lt of J){let St=($e=Lt.fields)!=null?$e:[];for(let Et of St){let fi=En(Et.type);ie[Et.name.value]={type:fi,description:(He=Et.description)==null?void 0:He.value,defaultValue:(0,ke.valueFromAST)(Et.defaultValue,fi),deprecationReason:yT(Et),astNode:Et}}}return ie}function zn(J){var $e,He;let ie=Object.create(null);for(let Lt of J){let St=($e=Lt.values)!=null?$e:[];for(let Et of St)ie[Et.name.value]={description:(He=Et.description)==null?void 0:He.value,deprecationReason:yT(Et),astNode:Et}}return ie}function vt(J){return J.flatMap(ie=>{var $e,He;return(He=($e=ie.interfaces)==null?void 0:$e.map(Tn))!=null?He:[]})}function Ln(J){return J.flatMap(ie=>{var $e,He;return(He=($e=ie.types)==null?void 0:$e.map(Tn))!=null?He:[]})}function se(J){var $e,He,Lt,St,Et,fi,nl,Rr,Ku,rl,oa,ar;let ie=J.name.value;switch(J.kind){case ke.Kind.OBJECT_TYPE_DEFINITION:{let xt=($e=a.get(ie))!=null?$e:[],Hn=[J,...xt];return a.delete(ie),new ke.GraphQLObjectType({name:ie,description:(He=J.description)==null?void 0:He.value,interfaces:()=>vt(Hn),fields:()=>Ht(Hn),astNode:J,extensionASTNodes:xt})}case ke.Kind.INTERFACE_TYPE_DEFINITION:{let xt=(Lt=o.get(ie))!=null?Lt:[],Hn=[J,...xt];return o.delete(ie),new ke.GraphQLInterfaceType({name:ie,description:(St=J.description)==null?void 0:St.value,interfaces:()=>vt(Hn),fields:()=>Ht(Hn),astNode:J,extensionASTNodes:xt})}case ke.Kind.ENUM_TYPE_DEFINITION:{let xt=(Et=l.get(ie))!=null?Et:[],Hn=[J,...xt];return l.delete(ie),new ke.GraphQLEnumType({name:ie,description:(fi=J.description)==null?void 0:fi.value,values:zn(Hn),astNode:J,extensionASTNodes:xt})}case ke.Kind.UNION_TYPE_DEFINITION:{let xt=(nl=u.get(ie))!=null?nl:[],Hn=[J,...xt];return u.delete(ie),new ke.GraphQLUnionType({name:ie,description:(Rr=J.description)==null?void 0:Rr.value,types:()=>Ln(Hn),astNode:J,extensionASTNodes:xt})}case ke.Kind.SCALAR_TYPE_DEFINITION:{let xt=(Ku=i.get(ie))!=null?Ku:[];return i.delete(ie),new ke.GraphQLScalarType({name:ie,description:(rl=J.description)==null?void 0:rl.value,specifiedByURL:LU(J),astNode:J,extensionASTNodes:xt})}case ke.Kind.INPUT_OBJECT_TYPE_DEFINITION:{let xt=(oa=d.get(ie))!=null?oa:[],Hn=[J,...xt];return d.delete(ie),new ke.GraphQLInputObjectType({name:ie,description:(ar=J.description)==null?void 0:ar.value,fields:()=>Ar(Hn),astNode:J,extensionASTNodes:xt})}}}}var wU=new Map([...ke.specifiedScalarTypes,...ke.introspectionTypes].map(e=>[e.name,e]));function yT(e){let t=(0,ke.getDirectiveValues)(ke.GraphQLDeprecatedDirective,e);return t==null?void 0:t.reason}function LU(e){let t=(0,ke.getDirectiveValues)(ke.GraphQLSpecifiedByDirective,e);return t==null?void 0:t.url}});var Jv=F(Yv=>{"use strict";m();T();N();Object.defineProperty(Yv,"__esModule",{value:!0});Yv.buildASTSchema=sZ;var UU=Se(),iZ=Ul(),aZ=CU();function sZ(e,t){(t==null?void 0:t.assumeValid)!==!0&&(t==null?void 0:t.assumeValidSDL)!==!0&&(0,iZ.assertValidSDL)(e);let n={description:void 0,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:!1},r=(0,aZ.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,...UU.specifiedDirectives.filter(a=>r.directives.every(o=>o.name!==a.name))];return new UU.GraphQLSchema(G(M({},r),{directives:i}))}});var ql=F(Ou=>{"use strict";m();T();N();Object.defineProperty(Ou,"__esModule",{value:!0});Ou.MAX_INT32=Ou.MAX_SUBSCRIPTION_FILTER_DEPTH=Ou.MAXIMUM_TYPE_NESTING=void 0;Ou.MAXIMUM_TYPE_NESTING=30;Ou.MAX_SUBSCRIPTION_FILTER_DEPTH=5;Ou.MAX_INT32=cn(2,31)-1});var kr=F(fr=>{"use strict";m();T();N();Object.defineProperty(fr,"__esModule",{value:!0});fr.getOrThrowError=uZ;fr.getEntriesNotInHashSet=cZ;fr.numberToOrdinal=lZ;fr.addIterableToSet=dZ;fr.addOptionalIterableToSet=fZ;fr.addSets=pZ;fr.kindToNodeType=mZ;fr.getValueOrDefault=NZ;fr.add=TZ;fr.generateSimpleDirective=EZ;fr.generateRequiresScopesDirective=hZ;fr.generateSemanticNonNullDirective=yZ;fr.copyObjectValueMap=IZ;fr.addNewObjectValueMapEntries=gZ;fr.copyArrayValueMap=_Z;fr.addMapEntries=vZ;fr.getFirstEntry=SZ;var Qt=Se(),hr=Xn(),oZ=Yi(),Gf=Br();function uZ(e,t,n){let r=e.get(t);if(r===void 0)throw(0,oZ.invalidKeyFatalError)(t,n);return r}function cZ(e,t){let n=[];for(let r of e)t.has(r)||n.push(r);return n}function lZ(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 dZ({source:e,target:t}){for(let n of e)t.add(n)}function fZ({source:e,target:t}){if(e)for(let n of e)t.add(n)}function pZ(e,t){let n=new Set(e);for(let r of t)n.add(r);return n}function mZ(e){switch(e){case Qt.Kind.BOOLEAN:return hr.BOOLEAN_SCALAR;case Qt.Kind.ENUM:case Qt.Kind.ENUM_TYPE_DEFINITION:return hr.ENUM;case Qt.Kind.ENUM_TYPE_EXTENSION:return"Enum extension";case Qt.Kind.ENUM_VALUE_DEFINITION:return hr.ENUM_VALUE;case Qt.Kind.FIELD_DEFINITION:return hr.FIELD;case Qt.Kind.FLOAT:return hr.FLOAT_SCALAR;case Qt.Kind.INPUT_OBJECT_TYPE_DEFINITION:return hr.INPUT_OBJECT;case Qt.Kind.INPUT_OBJECT_TYPE_EXTENSION:return"Input Object extension";case Qt.Kind.INPUT_VALUE_DEFINITION:return hr.INPUT_VALUE;case Qt.Kind.INT:return hr.INT_SCALAR;case Qt.Kind.INTERFACE_TYPE_DEFINITION:return hr.INTERFACE;case Qt.Kind.INTERFACE_TYPE_EXTENSION:return"Interface extension";case Qt.Kind.NULL:return hr.NULL;case Qt.Kind.OBJECT:case Qt.Kind.OBJECT_TYPE_DEFINITION:return hr.OBJECT;case Qt.Kind.OBJECT_TYPE_EXTENSION:return"Object extension";case Qt.Kind.STRING:return hr.STRING_SCALAR;case Qt.Kind.SCALAR_TYPE_DEFINITION:return hr.SCALAR;case Qt.Kind.SCALAR_TYPE_EXTENSION:return"Scalar extension";case Qt.Kind.UNION_TYPE_DEFINITION:return hr.UNION;case Qt.Kind.UNION_TYPE_EXTENSION:return"Union extension";default:return e}}function NZ(e,t,n){let r=e.get(t);if(r)return r;let i=n();return e.set(t,i),i}function TZ(e,t){return e.has(t)?!1:(e.add(t),!0)}function EZ(e){return{kind:Qt.Kind.DIRECTIVE,name:(0,Gf.stringToNameNode)(e)}}function hZ(e){let t=[];for(let n of e){let r=[];for(let i of n)r.push({kind:Qt.Kind.STRING,value:i});t.push({kind:Qt.Kind.LIST,values:r})}return{kind:Qt.Kind.DIRECTIVE,name:(0,Gf.stringToNameNode)(hr.REQUIRES_SCOPES),arguments:[{kind:Qt.Kind.ARGUMENT,name:(0,Gf.stringToNameNode)(hr.SCOPES),value:{kind:Qt.Kind.LIST,values:t}}]}}function yZ(e){let t=Array.from(e).sort((r,i)=>r-i),n=new Array;for(let r of t)n.push({kind:Qt.Kind.INT,value:r.toString()});return{kind:Qt.Kind.DIRECTIVE,name:(0,Gf.stringToNameNode)(hr.SEMANTIC_NON_NULL),arguments:[{kind:Qt.Kind.ARGUMENT,name:(0,Gf.stringToNameNode)(hr.LEVELS),value:{kind:Qt.Kind.LIST,values:n}}]}}function IZ(e){let t=new Map;for(let[n,r]of e)t.set(n,M({},r));return t}function gZ(e,t){for(let[n,r]of e)t.set(n,M({},r))}function _Z(e){let t=new Map;for(let[n,r]of e)t.set(n,[...r]);return t}function vZ({source:e,target:t}){for(let[n,r]of e)t.set(n,r)}function SZ(e){let{value:t,done:n}=e.values().next();if(!n)return t}});var Qf=F(IT=>{"use strict";m();T();N();Object.defineProperty(IT,"__esModule",{value:!0});IT.ExtensionType=void 0;var BU;(function(e){e[e.EXTENDS=0]="EXTENDS",e[e.NONE=1]="NONE",e[e.REAL=2]="REAL"})(BU||(IT.ExtensionType=BU={}))});var Du=F(xr=>{"use strict";m();T();N();Object.defineProperty(xr,"__esModule",{value:!0});xr.getMutableDirectiveDefinitionNode=DZ;xr.getMutableEnumNode=bZ;xr.getMutableEnumValueNode=AZ;xr.getMutableFieldNode=RZ;xr.getMutableInputObjectNode=PZ;xr.getMutableInputValueNode=FZ;xr.getMutableInterfaceNode=wZ;xr.getMutableObjectNode=LZ;xr.getMutableObjectExtensionNode=CZ;xr.getMutableScalarNode=UZ;xr.getMutableTypeNode=zv;xr.getMutableUnionNode=BZ;xr.getTypeNodeNamedTypeName=Hv;xr.getNamedTypeNode=MU;var Mr=Se(),Vl=Br(),kU=Yi(),OZ=ql();function DZ(e){return{arguments:[],kind:e.kind,locations:[],name:M({},e.name),repeatable:e.repeatable,description:(0,Vl.formatDescription)(e.description)}}function bZ(e){return{kind:Mr.Kind.ENUM_TYPE_DEFINITION,name:M({},e)}}function AZ(e){return{directives:[],kind:e.kind,name:M({},e.name),description:(0,Vl.formatDescription)(e.description)}}function RZ(e,t,n){return{arguments:[],directives:[],kind:e.kind,name:M({},e.name),type:zv(e.type,t,n),description:(0,Vl.formatDescription)(e.description)}}function PZ(e){return{kind:Mr.Kind.INPUT_OBJECT_TYPE_DEFINITION,name:M({},e)}}function FZ(e,t,n){return{directives:[],kind:e.kind,name:M({},e.name),type:zv(e.type,t,n),defaultValue:e.defaultValue,description:(0,Vl.formatDescription)(e.description)}}function wZ(e){return{kind:Mr.Kind.INTERFACE_TYPE_DEFINITION,name:M({},e)}}function LZ(e){return{kind:Mr.Kind.OBJECT_TYPE_DEFINITION,name:M({},e)}}function CZ(e){let t=e.kind===Mr.Kind.OBJECT_TYPE_DEFINITION?e.description:void 0;return{kind:Mr.Kind.OBJECT_TYPE_EXTENSION,name:M({},e.name),description:(0,Vl.formatDescription)(t)}}function UZ(e){return{kind:Mr.Kind.SCALAR_TYPE_DEFINITION,name:M({},e)}}function zv(e,t,n){let r={kind:e.kind},i=r;for(let a=0;a{"use strict";m();T();N();Object.defineProperty(jl,"__esModule",{value:!0});jl.REQUIRED_FIELDSET_TYPE_NODE=jl.REQUIRED_STRING_TYPE_NODE=void 0;var xU=Se(),qU=Br(),VU=Xn();jl.REQUIRED_STRING_TYPE_NODE={kind:xU.Kind.NON_NULL_TYPE,type:(0,qU.stringToNamedTypeNode)(VU.STRING_SCALAR)};jl.REQUIRED_FIELDSET_TYPE_NODE={kind:xU.Kind.NON_NULL_TYPE,type:(0,qU.stringToNamedTypeNode)(VU.FIELD_SET_SCALAR)}});var Yf=F(Me=>{"use strict";m();T();N();Object.defineProperty(Me,"__esModule",{value:!0});Me.TAG_DEFINITION=Me.SUBSCRIPTION_FILTER_DEFINITION=Me.SPECIFIED_BY_DEFINITION=Me.SHAREABLE_DEFINITION=Me.SEMANTIC_NON_NULL_DEFINITION=Me.REQUIRES_SCOPES_DEFINITION=Me.REQUIRES_DEFINITION=Me.REQUIRE_FETCH_REASONS_DEFINITION=Me.PROVIDES_DEFINITION=Me.OVERRIDE_DEFINITION=Me.ONE_OF_DEFINITION=Me.LIST_SIZE_DEFINITION=Me.LINK_DEFINITION=Me.KEY_DEFINITION=Me.INTERFACE_OBJECT_DEFINITION=Me.INACCESSIBLE_DEFINITION=Me.EDFS_REDIS_SUBSCRIBE_DEFINITION=Me.EDFS_REDIS_PUBLISH_DEFINITION=Me.EDFS_NATS_SUBSCRIBE_DEFINITION=Me.EDFS_NATS_REQUEST_DEFINITION=Me.EDFS_NATS_PUBLISH_DEFINITION=Me.EDFS_KAFKA_SUBSCRIBE_DEFINITION=Me.EDFS_KAFKA_PUBLISH_DEFINITION=Me.EXTERNAL_DEFINITION=Me.EXTENDS_DEFINITION=Me.DEPRECATED_DEFINITION=Me.COST_DEFINITION=Me.CONNECT_FIELD_RESOLVER_DEFINITION=Me.CONFIGURE_DESCRIPTION_DEFINITION=Me.CONFIGURE_CHILD_DESCRIPTIONS_DEFINITION=Me.COMPOSE_DIRECTIVE_DEFINITION=Me.AUTHENTICATED_DEFINITION=void 0;var le=Se(),oe=Br(),Q=Xn(),Sr=gT();Me.AUTHENTICATED_DEFINITION={kind:le.Kind.DIRECTIVE_DEFINITION,locations:(0,oe.stringArrayToNameNodeArray)([Q.ENUM_UPPER,Q.FIELD_DEFINITION_UPPER,Q.INTERFACE_UPPER,Q.OBJECT_UPPER,Q.SCALAR_UPPER]),name:(0,oe.stringToNameNode)(Q.AUTHENTICATED),repeatable:!1};Me.COMPOSE_DIRECTIVE_DEFINITION={arguments:[{kind:le.Kind.INPUT_VALUE_DEFINITION,name:(0,oe.stringToNameNode)(Q.NAME),type:Sr.REQUIRED_STRING_TYPE_NODE}],kind:le.Kind.DIRECTIVE_DEFINITION,locations:(0,oe.stringArrayToNameNodeArray)([Q.SCHEMA_UPPER]),name:(0,oe.stringToNameNode)(Q.COMPOSE_DIRECTIVE),repeatable:!0};Me.CONFIGURE_CHILD_DESCRIPTIONS_DEFINITION={arguments:[{kind:le.Kind.INPUT_VALUE_DEFINITION,name:(0,oe.stringToNameNode)(Q.PROPAGATE),type:{kind:le.Kind.NON_NULL_TYPE,type:(0,oe.stringToNamedTypeNode)(Q.BOOLEAN_SCALAR)},defaultValue:{kind:le.Kind.BOOLEAN,value:!0}}],kind:le.Kind.DIRECTIVE_DEFINITION,locations:(0,oe.stringArrayToNameNodeArray)([Q.ENUM_UPPER,Q.INPUT_OBJECT_UPPER,Q.INTERFACE_UPPER,Q.OBJECT_UPPER]),name:(0,oe.stringToNameNode)(Q.CONFIGURE_CHILD_DESCRIPTIONS),repeatable:!1};Me.CONFIGURE_DESCRIPTION_DEFINITION={arguments:[{kind:le.Kind.INPUT_VALUE_DEFINITION,name:(0,oe.stringToNameNode)(Q.PROPAGATE),type:{kind:le.Kind.NON_NULL_TYPE,type:(0,oe.stringToNamedTypeNode)(Q.BOOLEAN_SCALAR)},defaultValue:{kind:le.Kind.BOOLEAN,value:!0}},{directives:[],kind:le.Kind.INPUT_VALUE_DEFINITION,name:(0,oe.stringToNameNode)(Q.DESCRIPTION_OVERRIDE),type:(0,oe.stringToNamedTypeNode)(Q.STRING_SCALAR)}],kind:le.Kind.DIRECTIVE_DEFINITION,locations:(0,oe.stringArrayToNameNodeArray)([Q.ARGUMENT_DEFINITION_UPPER,Q.ENUM_UPPER,Q.ENUM_VALUE_UPPER,Q.FIELD_DEFINITION_UPPER,Q.INTERFACE_UPPER,Q.INPUT_OBJECT_UPPER,Q.INPUT_FIELD_DEFINITION_UPPER,Q.OBJECT_UPPER,Q.SCALAR_UPPER,Q.SCHEMA_UPPER,Q.UNION_UPPER]),name:(0,oe.stringToNameNode)(Q.CONFIGURE_DESCRIPTION),repeatable:!1};Me.CONNECT_FIELD_RESOLVER_DEFINITION={arguments:[{kind:le.Kind.INPUT_VALUE_DEFINITION,name:(0,oe.stringToNameNode)(Q.CONTEXT),type:Sr.REQUIRED_FIELDSET_TYPE_NODE}],kind:le.Kind.DIRECTIVE_DEFINITION,locations:(0,oe.stringArrayToNameNodeArray)([Q.FIELD_DEFINITION_UPPER]),name:(0,oe.stringToNameNode)(Q.CONNECT_FIELD_RESOLVER),repeatable:!1};Me.COST_DEFINITION={arguments:[{kind:le.Kind.INPUT_VALUE_DEFINITION,name:(0,oe.stringToNameNode)(Q.WEIGHT),type:{kind:le.Kind.NON_NULL_TYPE,type:(0,oe.stringToNamedTypeNode)(Q.INT_SCALAR)}}],kind:le.Kind.DIRECTIVE_DEFINITION,locations:(0,oe.stringArrayToNameNodeArray)([Q.ARGUMENT_DEFINITION_UPPER,Q.ENUM_UPPER,Q.FIELD_DEFINITION_UPPER,Q.INPUT_FIELD_DEFINITION_UPPER,Q.OBJECT_UPPER,Q.SCALAR_UPPER]),name:(0,oe.stringToNameNode)(Q.COST),repeatable:!1};Me.DEPRECATED_DEFINITION={arguments:[{kind:le.Kind.INPUT_VALUE_DEFINITION,name:(0,oe.stringToNameNode)(Q.REASON),type:(0,oe.stringToNamedTypeNode)(Q.STRING_SCALAR),defaultValue:{kind:le.Kind.STRING,value:le.DEFAULT_DEPRECATION_REASON}}],kind:le.Kind.DIRECTIVE_DEFINITION,locations:(0,oe.stringArrayToNameNodeArray)([Q.ARGUMENT_DEFINITION_UPPER,Q.ENUM_VALUE_UPPER,Q.FIELD_DEFINITION_UPPER,Q.INPUT_FIELD_DEFINITION_UPPER]),name:(0,oe.stringToNameNode)(Q.DEPRECATED),repeatable:!1};Me.EXTENDS_DEFINITION={kind:le.Kind.DIRECTIVE_DEFINITION,locations:(0,oe.stringArrayToNameNodeArray)([Q.INTERFACE_UPPER,Q.OBJECT_UPPER]),name:(0,oe.stringToNameNode)(Q.EXTENDS),repeatable:!1};Me.EXTERNAL_DEFINITION={kind:le.Kind.DIRECTIVE_DEFINITION,locations:(0,oe.stringArrayToNameNodeArray)([Q.FIELD_DEFINITION_UPPER,Q.OBJECT_UPPER]),name:(0,oe.stringToNameNode)(Q.EXTERNAL),repeatable:!1};Me.EDFS_KAFKA_PUBLISH_DEFINITION={arguments:[{kind:le.Kind.INPUT_VALUE_DEFINITION,name:(0,oe.stringToNameNode)(Q.TOPIC),type:Sr.REQUIRED_STRING_TYPE_NODE},{kind:le.Kind.INPUT_VALUE_DEFINITION,name:(0,oe.stringToNameNode)(Q.PROVIDER_ID),type:Sr.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:le.Kind.STRING,value:Q.DEFAULT_EDFS_PROVIDER_ID}}],kind:le.Kind.DIRECTIVE_DEFINITION,locations:[(0,oe.stringToNameNode)(Q.FIELD_DEFINITION_UPPER)],name:(0,oe.stringToNameNode)(Q.EDFS_KAFKA_PUBLISH),repeatable:!1};Me.EDFS_KAFKA_SUBSCRIBE_DEFINITION={arguments:[{kind:le.Kind.INPUT_VALUE_DEFINITION,name:(0,oe.stringToNameNode)(Q.TOPICS),type:{kind:le.Kind.NON_NULL_TYPE,type:{kind:le.Kind.LIST_TYPE,type:Sr.REQUIRED_STRING_TYPE_NODE}}},{kind:le.Kind.INPUT_VALUE_DEFINITION,name:(0,oe.stringToNameNode)(Q.PROVIDER_ID),type:Sr.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:le.Kind.STRING,value:Q.DEFAULT_EDFS_PROVIDER_ID}}],kind:le.Kind.DIRECTIVE_DEFINITION,locations:[(0,oe.stringToNameNode)(Q.FIELD_DEFINITION_UPPER)],name:(0,oe.stringToNameNode)(Q.EDFS_KAFKA_SUBSCRIBE),repeatable:!1};Me.EDFS_NATS_PUBLISH_DEFINITION={arguments:[{kind:le.Kind.INPUT_VALUE_DEFINITION,name:(0,oe.stringToNameNode)(Q.SUBJECT),type:Sr.REQUIRED_STRING_TYPE_NODE},{kind:le.Kind.INPUT_VALUE_DEFINITION,name:(0,oe.stringToNameNode)(Q.PROVIDER_ID),type:{kind:le.Kind.NON_NULL_TYPE,type:(0,oe.stringToNamedTypeNode)(Q.STRING_SCALAR)},defaultValue:{kind:le.Kind.STRING,value:Q.DEFAULT_EDFS_PROVIDER_ID}}],kind:le.Kind.DIRECTIVE_DEFINITION,locations:[(0,oe.stringToNameNode)(Q.FIELD_DEFINITION_UPPER)],name:(0,oe.stringToNameNode)(Q.EDFS_NATS_PUBLISH),repeatable:!1};Me.EDFS_NATS_REQUEST_DEFINITION={arguments:[{kind:le.Kind.INPUT_VALUE_DEFINITION,name:(0,oe.stringToNameNode)(Q.SUBJECT),type:{kind:le.Kind.NON_NULL_TYPE,type:(0,oe.stringToNamedTypeNode)(Q.STRING_SCALAR)}},{kind:le.Kind.INPUT_VALUE_DEFINITION,name:(0,oe.stringToNameNode)(Q.PROVIDER_ID),type:{kind:le.Kind.NON_NULL_TYPE,type:(0,oe.stringToNamedTypeNode)(Q.STRING_SCALAR)},defaultValue:{kind:le.Kind.STRING,value:Q.DEFAULT_EDFS_PROVIDER_ID}}],kind:le.Kind.DIRECTIVE_DEFINITION,locations:[(0,oe.stringToNameNode)(Q.FIELD_DEFINITION_UPPER)],name:(0,oe.stringToNameNode)(Q.EDFS_NATS_REQUEST),repeatable:!1};Me.EDFS_NATS_SUBSCRIBE_DEFINITION={arguments:[{kind:le.Kind.INPUT_VALUE_DEFINITION,name:(0,oe.stringToNameNode)(Q.SUBJECTS),type:{kind:le.Kind.NON_NULL_TYPE,type:{kind:le.Kind.LIST_TYPE,type:Sr.REQUIRED_STRING_TYPE_NODE}}},{kind:le.Kind.INPUT_VALUE_DEFINITION,name:(0,oe.stringToNameNode)(Q.PROVIDER_ID),type:Sr.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:le.Kind.STRING,value:Q.DEFAULT_EDFS_PROVIDER_ID}},{kind:le.Kind.INPUT_VALUE_DEFINITION,name:(0,oe.stringToNameNode)(Q.STREAM_CONFIGURATION),type:(0,oe.stringToNamedTypeNode)(Q.EDFS_NATS_STREAM_CONFIGURATION)}],kind:le.Kind.DIRECTIVE_DEFINITION,locations:[(0,oe.stringToNameNode)(Q.FIELD_DEFINITION_UPPER)],name:(0,oe.stringToNameNode)(Q.EDFS_NATS_SUBSCRIBE),repeatable:!1};Me.EDFS_REDIS_PUBLISH_DEFINITION={arguments:[{kind:le.Kind.INPUT_VALUE_DEFINITION,name:(0,oe.stringToNameNode)(Q.CHANNEL),type:Sr.REQUIRED_STRING_TYPE_NODE},{kind:le.Kind.INPUT_VALUE_DEFINITION,name:(0,oe.stringToNameNode)(Q.PROVIDER_ID),type:Sr.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:le.Kind.STRING,value:Q.DEFAULT_EDFS_PROVIDER_ID}}],kind:le.Kind.DIRECTIVE_DEFINITION,locations:[(0,oe.stringToNameNode)(Q.FIELD_DEFINITION_UPPER)],name:(0,oe.stringToNameNode)(Q.EDFS_REDIS_PUBLISH),repeatable:!1};Me.EDFS_REDIS_SUBSCRIBE_DEFINITION={arguments:[{kind:le.Kind.INPUT_VALUE_DEFINITION,name:(0,oe.stringToNameNode)(Q.CHANNELS),type:{kind:le.Kind.NON_NULL_TYPE,type:{kind:le.Kind.LIST_TYPE,type:Sr.REQUIRED_STRING_TYPE_NODE}}},{kind:le.Kind.INPUT_VALUE_DEFINITION,name:(0,oe.stringToNameNode)(Q.PROVIDER_ID),type:Sr.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:le.Kind.STRING,value:Q.DEFAULT_EDFS_PROVIDER_ID}}],kind:le.Kind.DIRECTIVE_DEFINITION,locations:[(0,oe.stringToNameNode)(Q.FIELD_DEFINITION_UPPER)],name:(0,oe.stringToNameNode)(Q.EDFS_REDIS_SUBSCRIBE),repeatable:!1};Me.INACCESSIBLE_DEFINITION={kind:le.Kind.DIRECTIVE_DEFINITION,locations:(0,oe.stringArrayToNameNodeArray)([Q.ARGUMENT_DEFINITION_UPPER,Q.ENUM_UPPER,Q.ENUM_VALUE_UPPER,Q.FIELD_DEFINITION_UPPER,Q.INPUT_FIELD_DEFINITION_UPPER,Q.INPUT_OBJECT_UPPER,Q.INTERFACE_UPPER,Q.OBJECT_UPPER,Q.SCALAR_UPPER,Q.UNION_UPPER]),name:(0,oe.stringToNameNode)(Q.INACCESSIBLE),repeatable:!1};Me.INTERFACE_OBJECT_DEFINITION={kind:le.Kind.DIRECTIVE_DEFINITION,locations:(0,oe.stringArrayToNameNodeArray)([Q.OBJECT_UPPER]),name:(0,oe.stringToNameNode)(Q.INTERFACE_OBJECT),repeatable:!1};Me.KEY_DEFINITION={arguments:[{kind:le.Kind.INPUT_VALUE_DEFINITION,name:(0,oe.stringToNameNode)(Q.FIELDS),type:Sr.REQUIRED_FIELDSET_TYPE_NODE},{kind:le.Kind.INPUT_VALUE_DEFINITION,name:(0,oe.stringToNameNode)(Q.RESOLVABLE),type:(0,oe.stringToNamedTypeNode)(Q.BOOLEAN_SCALAR),defaultValue:{kind:le.Kind.BOOLEAN,value:!0}}],kind:le.Kind.DIRECTIVE_DEFINITION,locations:(0,oe.stringArrayToNameNodeArray)([Q.INTERFACE_UPPER,Q.OBJECT_UPPER]),name:(0,oe.stringToNameNode)(Q.KEY),repeatable:!0};Me.LINK_DEFINITION={arguments:[{kind:le.Kind.INPUT_VALUE_DEFINITION,name:(0,oe.stringToNameNode)(Q.URL_LOWER),type:{kind:le.Kind.NON_NULL_TYPE,type:(0,oe.stringToNamedTypeNode)(Q.STRING_SCALAR)}},{kind:le.Kind.INPUT_VALUE_DEFINITION,name:(0,oe.stringToNameNode)(Q.AS),type:(0,oe.stringToNamedTypeNode)(Q.STRING_SCALAR)},{kind:le.Kind.INPUT_VALUE_DEFINITION,name:(0,oe.stringToNameNode)(Q.FOR),type:(0,oe.stringToNamedTypeNode)(Q.LINK_PURPOSE)},{kind:le.Kind.INPUT_VALUE_DEFINITION,name:(0,oe.stringToNameNode)(Q.IMPORT),type:{kind:le.Kind.LIST_TYPE,type:(0,oe.stringToNamedTypeNode)(Q.LINK_IMPORT)}}],kind:le.Kind.DIRECTIVE_DEFINITION,locations:(0,oe.stringArrayToNameNodeArray)([Q.SCHEMA_UPPER]),name:(0,oe.stringToNameNode)(Q.LINK),repeatable:!0};Me.LIST_SIZE_DEFINITION={arguments:[{kind:le.Kind.INPUT_VALUE_DEFINITION,name:(0,oe.stringToNameNode)(Q.ASSUMED_SIZE),type:(0,oe.stringToNamedTypeNode)(Q.INT_SCALAR)},{kind:le.Kind.INPUT_VALUE_DEFINITION,name:(0,oe.stringToNameNode)(Q.SLICING_ARGUMENTS),type:{kind:le.Kind.LIST_TYPE,type:{kind:le.Kind.NON_NULL_TYPE,type:(0,oe.stringToNamedTypeNode)(Q.STRING_SCALAR)}}},{kind:le.Kind.INPUT_VALUE_DEFINITION,name:(0,oe.stringToNameNode)(Q.SIZED_FIELDS),type:{kind:le.Kind.LIST_TYPE,type:{kind:le.Kind.NON_NULL_TYPE,type:(0,oe.stringToNamedTypeNode)(Q.STRING_SCALAR)}}},{kind:le.Kind.INPUT_VALUE_DEFINITION,name:(0,oe.stringToNameNode)(Q.REQUIRE_ONE_SLICING_ARGUMENT),type:(0,oe.stringToNamedTypeNode)(Q.BOOLEAN_SCALAR),defaultValue:{kind:le.Kind.BOOLEAN,value:!0}}],kind:le.Kind.DIRECTIVE_DEFINITION,locations:(0,oe.stringArrayToNameNodeArray)([Q.FIELD_DEFINITION_UPPER]),name:(0,oe.stringToNameNode)(Q.LIST_SIZE),repeatable:!1};Me.ONE_OF_DEFINITION={kind:le.Kind.DIRECTIVE_DEFINITION,locations:(0,oe.stringArrayToNameNodeArray)([Q.INPUT_OBJECT_UPPER]),name:(0,oe.stringToNameNode)(Q.ONE_OF),repeatable:!1};Me.OVERRIDE_DEFINITION={arguments:[{kind:le.Kind.INPUT_VALUE_DEFINITION,name:(0,oe.stringToNameNode)(Q.FROM),type:{kind:le.Kind.NON_NULL_TYPE,type:(0,oe.stringToNamedTypeNode)(Q.STRING_SCALAR)}}],kind:le.Kind.DIRECTIVE_DEFINITION,locations:(0,oe.stringArrayToNameNodeArray)([Q.FIELD_DEFINITION_UPPER]),name:(0,oe.stringToNameNode)(Q.OVERRIDE),repeatable:!1};Me.PROVIDES_DEFINITION={arguments:[{kind:le.Kind.INPUT_VALUE_DEFINITION,name:(0,oe.stringToNameNode)(Q.FIELDS),type:Sr.REQUIRED_FIELDSET_TYPE_NODE}],kind:le.Kind.DIRECTIVE_DEFINITION,locations:[(0,oe.stringToNameNode)(Q.FIELD_DEFINITION_UPPER)],name:(0,oe.stringToNameNode)(Q.PROVIDES),repeatable:!1};Me.REQUIRE_FETCH_REASONS_DEFINITION={kind:le.Kind.DIRECTIVE_DEFINITION,locations:(0,oe.stringArrayToNameNodeArray)([Q.FIELD_DEFINITION_UPPER,Q.INTERFACE_UPPER,Q.OBJECT_UPPER]),name:(0,oe.stringToNameNode)(Q.REQUIRE_FETCH_REASONS),repeatable:!0};Me.REQUIRES_DEFINITION={arguments:[{kind:le.Kind.INPUT_VALUE_DEFINITION,name:(0,oe.stringToNameNode)(Q.FIELDS),type:Sr.REQUIRED_FIELDSET_TYPE_NODE}],kind:le.Kind.DIRECTIVE_DEFINITION,locations:[(0,oe.stringToNameNode)(Q.FIELD_DEFINITION_UPPER)],name:(0,oe.stringToNameNode)(Q.REQUIRES),repeatable:!1};Me.REQUIRES_SCOPES_DEFINITION={arguments:[{kind:le.Kind.INPUT_VALUE_DEFINITION,name:(0,oe.stringToNameNode)(Q.SCOPES),type:{kind:le.Kind.NON_NULL_TYPE,type:{kind:le.Kind.LIST_TYPE,type:{kind:le.Kind.NON_NULL_TYPE,type:{kind:le.Kind.LIST_TYPE,type:{kind:le.Kind.NON_NULL_TYPE,type:(0,oe.stringToNamedTypeNode)(Q.SCOPE_SCALAR)}}}}}}],kind:le.Kind.DIRECTIVE_DEFINITION,locations:(0,oe.stringArrayToNameNodeArray)([Q.ENUM_UPPER,Q.FIELD_DEFINITION_UPPER,Q.INTERFACE_UPPER,Q.OBJECT_UPPER,Q.SCALAR_UPPER]),name:(0,oe.stringToNameNode)(Q.REQUIRES_SCOPES),repeatable:!1};Me.SEMANTIC_NON_NULL_DEFINITION={arguments:[{kind:le.Kind.INPUT_VALUE_DEFINITION,name:(0,oe.stringToNameNode)(Q.LEVELS),type:{kind:le.Kind.NON_NULL_TYPE,type:{kind:le.Kind.LIST_TYPE,type:{kind:le.Kind.NON_NULL_TYPE,type:(0,oe.stringToNamedTypeNode)(Q.INT_SCALAR)}}},defaultValue:{kind:le.Kind.LIST,values:[{kind:le.Kind.INT,value:"0"}]}}],kind:le.Kind.DIRECTIVE_DEFINITION,locations:[(0,oe.stringToNameNode)(Q.FIELD_DEFINITION_UPPER)],name:(0,oe.stringToNameNode)(Q.SEMANTIC_NON_NULL),repeatable:!1};Me.SHAREABLE_DEFINITION={kind:le.Kind.DIRECTIVE_DEFINITION,locations:(0,oe.stringArrayToNameNodeArray)([Q.FIELD_DEFINITION_UPPER,Q.OBJECT_UPPER]),name:(0,oe.stringToNameNode)(Q.SHAREABLE),repeatable:!0};Me.SPECIFIED_BY_DEFINITION={arguments:[{kind:le.Kind.INPUT_VALUE_DEFINITION,name:(0,oe.stringToNameNode)(Q.URL_LOWER),type:Sr.REQUIRED_STRING_TYPE_NODE}],kind:le.Kind.DIRECTIVE_DEFINITION,locations:(0,oe.stringArrayToNameNodeArray)([Q.SCALAR_UPPER]),name:(0,oe.stringToNameNode)(Q.SPECIFIED_BY),repeatable:!1};Me.SUBSCRIPTION_FILTER_DEFINITION={arguments:[{kind:le.Kind.INPUT_VALUE_DEFINITION,name:(0,oe.stringToNameNode)(Q.CONDITION),type:{kind:le.Kind.NON_NULL_TYPE,type:(0,oe.stringToNamedTypeNode)(Q.SUBSCRIPTION_FILTER_CONDITION)}}],kind:le.Kind.DIRECTIVE_DEFINITION,locations:(0,oe.stringArrayToNameNodeArray)([Q.FIELD_DEFINITION_UPPER]),name:(0,oe.stringToNameNode)(Q.SUBSCRIPTION_FILTER),repeatable:!1};Me.TAG_DEFINITION={arguments:[{kind:le.Kind.INPUT_VALUE_DEFINITION,name:(0,oe.stringToNameNode)(Q.NAME),type:{kind:le.Kind.NON_NULL_TYPE,type:(0,oe.stringToNamedTypeNode)(Q.STRING_SCALAR)}}],kind:le.Kind.DIRECTIVE_DEFINITION,locations:(0,oe.stringArrayToNameNodeArray)([Q.ARGUMENT_DEFINITION_UPPER,Q.ENUM_UPPER,Q.ENUM_VALUE_UPPER,Q.FIELD_DEFINITION_UPPER,Q.INPUT_FIELD_DEFINITION_UPPER,Q.INPUT_OBJECT_UPPER,Q.INTERFACE_UPPER,Q.OBJECT_UPPER,Q.SCALAR_UPPER,Q.UNION_UPPER]),name:(0,oe.stringToNameNode)(Q.TAG),repeatable:!0}});var bu=F(Ji=>{"use strict";m();T();N();Object.defineProperty(Ji,"__esModule",{value:!0});Ji.MAX_OR_SCOPES=Ji.EDFS_ARGS_REGEXP=Ji.V2_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME=Ji.BASE_SCALARS=Ji.DIRECTIVE_DEFINITION_BY_NAME=void 0;var ot=Xn(),_t=Yf();Ji.DIRECTIVE_DEFINITION_BY_NAME=new Map([[ot.AUTHENTICATED,_t.AUTHENTICATED_DEFINITION],[ot.COMPOSE_DIRECTIVE,_t.COMPOSE_DIRECTIVE_DEFINITION],[ot.CONFIGURE_DESCRIPTION,_t.CONFIGURE_DESCRIPTION_DEFINITION],[ot.CONFIGURE_CHILD_DESCRIPTIONS,_t.CONFIGURE_CHILD_DESCRIPTIONS_DEFINITION],[ot.CONNECT_FIELD_RESOLVER,_t.CONNECT_FIELD_RESOLVER_DEFINITION],[ot.COST,_t.COST_DEFINITION],[ot.DEPRECATED,_t.DEPRECATED_DEFINITION],[ot.EDFS_KAFKA_PUBLISH,_t.EDFS_KAFKA_PUBLISH_DEFINITION],[ot.EDFS_KAFKA_SUBSCRIBE,_t.EDFS_KAFKA_SUBSCRIBE_DEFINITION],[ot.EDFS_NATS_PUBLISH,_t.EDFS_NATS_PUBLISH_DEFINITION],[ot.EDFS_NATS_REQUEST,_t.EDFS_NATS_REQUEST_DEFINITION],[ot.EDFS_NATS_SUBSCRIBE,_t.EDFS_NATS_SUBSCRIBE_DEFINITION],[ot.EDFS_REDIS_PUBLISH,_t.EDFS_REDIS_PUBLISH_DEFINITION],[ot.EDFS_REDIS_SUBSCRIBE,_t.EDFS_REDIS_SUBSCRIBE_DEFINITION],[ot.EXTENDS,_t.EXTENDS_DEFINITION],[ot.EXTERNAL,_t.EXTERNAL_DEFINITION],[ot.INACCESSIBLE,_t.INACCESSIBLE_DEFINITION],[ot.INTERFACE_OBJECT,_t.INTERFACE_OBJECT_DEFINITION],[ot.KEY,_t.KEY_DEFINITION],[ot.LINK,_t.LINK_DEFINITION],[ot.LIST_SIZE,_t.LIST_SIZE_DEFINITION],[ot.ONE_OF,_t.ONE_OF_DEFINITION],[ot.OVERRIDE,_t.OVERRIDE_DEFINITION],[ot.PROVIDES,_t.PROVIDES_DEFINITION],[ot.REQUIRE_FETCH_REASONS,_t.REQUIRE_FETCH_REASONS_DEFINITION],[ot.REQUIRES,_t.REQUIRES_DEFINITION],[ot.REQUIRES_SCOPES,_t.REQUIRES_SCOPES_DEFINITION],[ot.SEMANTIC_NON_NULL,_t.SEMANTIC_NON_NULL_DEFINITION],[ot.SHAREABLE,_t.SHAREABLE_DEFINITION],[ot.SPECIFIED_BY,_t.SPECIFIED_BY_DEFINITION],[ot.SUBSCRIPTION_FILTER,_t.SUBSCRIPTION_FILTER_DEFINITION],[ot.TAG,_t.TAG_DEFINITION]]);Ji.BASE_SCALARS=new Set(["_Any","_Entities",ot.BOOLEAN_SCALAR,ot.FLOAT_SCALAR,ot.ID_SCALAR,ot.INT_SCALAR,ot.FIELD_SET_SCALAR,ot.SCOPE_SCALAR,ot.STRING_SCALAR]);Ji.V2_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME=new Map([[ot.AUTHENTICATED,_t.AUTHENTICATED_DEFINITION],[ot.COMPOSE_DIRECTIVE,_t.COMPOSE_DIRECTIVE_DEFINITION],[ot.INACCESSIBLE,_t.INACCESSIBLE_DEFINITION],[ot.INTERFACE_OBJECT,_t.INTERFACE_OBJECT_DEFINITION],[ot.LINK,_t.LINK_DEFINITION],[ot.OVERRIDE,_t.OVERRIDE_DEFINITION],[ot.REQUIRES_SCOPES,_t.REQUIRES_SCOPES_DEFINITION],[ot.SHAREABLE,_t.SHAREABLE_DEFINITION]]);Ji.EDFS_ARGS_REGEXP=/{{\s*args\.([a-zA-Z0-9_]+)\s*}}/g;Ji.MAX_OR_SCOPES=16});var _T=F(vc=>{"use strict";m();T();N();Object.defineProperty(vc,"__esModule",{value:!0});vc.newParentTagData=VZ;vc.newChildTagData=jZ;vc.validateImplicitFieldSets=KZ;vc.newContractTagOptionsFromArrays=$Z;vc.getDescriptionFromString=GZ;var si=Se(),kZ=Du(),MZ=bu(),xZ=Br(),jU=kr(),qZ=Xn();function VZ(e){return{childTagDataByChildName:new Map,tagNames:new Set,typeName:e}}function jZ(e){return{name:e,tagNames:new Set,tagNamesByArgumentName:new Map}}function KZ({conditionalFieldDataByCoords:e,currentSubgraphName:t,entityData:n,implicitKeys:r,objectData:i,parentDefinitionDataByTypeName:a,graphNode:o}){let u=(0,jU.getValueOrDefault)(n.keyFieldSetDatasBySubgraphName,t,()=>new Map);for(let[l,d]of n.documentNodeByKeyFieldSet){if(u.has(l))continue;let p=[i],E=[],h=[],v=-1,R=!0,U=!0;(0,si.visit)(d,{Argument:{enter(){return U=!1,si.BREAK}},Field:{enter(q){let X=p[v];if(R)return U=!1,si.BREAK;let te=q.name.value;if(te===qZ.TYPENAME)return;let ae=X.fieldDataByName.get(te);if(!ae||ae.argumentDataByName.size||E[v].has(te))return U=!1,si.BREAK;let{isUnconditionallyProvided:me}=(0,jU.getOrThrowError)(ae.externalFieldDataBySubgraphName,t,`${ae.originalParentTypeName}.${te}.externalFieldDataBySubgraphName`),ye=e.get(`${ae.renamedParentTypeName}.${te}`);if(ye){if(ye.providedBy.length>0)h.push(...ye.providedBy);else if(ye.requiredBy.length>0)return U=!1,si.BREAK}else if(!me)return U=!1,si.BREAK;E[v].add(te);let _e=(0,kZ.getTypeNodeNamedTypeName)(ae.node.type);if(MZ.BASE_SCALARS.has(_e))return;let Ee=a.get(_e);if(!Ee)return U=!1,si.BREAK;if(Ee.kind===si.Kind.OBJECT_TYPE_DEFINITION){R=!0,p.push(Ee);return}if((0,xZ.isKindAbstract)(Ee.kind))return U=!1,si.BREAK}},InlineFragment:{enter(){return U=!1,si.BREAK}},SelectionSet:{enter(){if(!R||(v+=1,R=!1,v<0||v>=p.length))return U=!1,si.BREAK;E.push(new Set)},leave(){if(R)return U=!1,si.BREAK;v-=1,p.pop(),E.pop()}}}),U&&(r.push(G(M({fieldName:"",selectionSet:l},h.length>0?{conditions:h}:{}),{disableEntityResolver:!0})),o&&o.satisfiedFieldSets.add(l))}}function $Z(e,t){return{tagNamesToExclude:new Set(e),tagNamesToInclude:new Set(t)}}function GZ(e){if(e)return{block:!0,kind:si.Kind.STRING,value:e}}});var $l=F(ct=>{"use strict";m();T();N();Object.defineProperty(ct,"__esModule",{value:!0});ct.MergeMethod=void 0;ct.newPersistedDirectivesData=YZ;ct.isNodeExternalOrShareable=JZ;ct.isTypeRequired=zZ;ct.isTypeNodeListType=$U;ct.areDefaultValuesCompatible=GU;ct.compareAndValidateInputValueDefaultValues=HZ;ct.setMutualExecutableLocations=WZ;ct.isTypeNameRootType=XZ;ct.getRenamedRootTypeName=ZZ;ct.childMapToValueArray=tee;ct.setLongestDescription=nee;ct.isParentDataRootType=QU;ct.isInterfaceDefinitionData=ree;ct.setParentDataExtensionType=iee;ct.upsertDeprecatedDirective=aee;ct.upsertTagDirectives=see;ct.propagateAuthDirectives=oee;ct.propagateFieldAuthDirectives=uee;ct.generateDeprecatedDirective=eS;ct.getClientPersistedDirectiveNodes=Xv;ct.getClientSchemaFieldNodeByFieldData=dee;ct.getNodeWithPersistedDirectivesByInputValueData=YU;ct.addValidPersistedDirectiveDefinitionNodeByData=pee;ct.newInvalidFieldNames=mee;ct.validateExternalAndShareable=Nee;ct.isTypeValidImplementation=vT;ct.isNodeDataInaccessible=JU;ct.isLeafKind=Tee;ct.getSubscriptionFilterValue=Eee;ct.getParentTypeName=hee;ct.newConditionalFieldData=yee;ct.getDefinitionDataCoords=Iee;ct.isParentDataCompositeOutputType=gee;ct.newExternalFieldData=_ee;ct.getInitialFederatedDescription=vee;ct.areKindsEqual=See;ct.isFieldData=tS;ct.isInputObjectDefinitionData=Oee;ct.isInputNodeKind=Dee;ct.isOutputNodeKind=bee;ct.isInterfaceNode=Aee;ct.isEnumData=Ree;var Xe=Se(),Wv=Qf(),Kl=Br(),Zv=Yi(),Kt=Xn(),Sc=kr(),QZ=_T();function YZ(){return{deprecatedReason:"",directivesByName:new Map,isDeprecated:!1,tagDirectiveByName:new Map}}function JZ(e,t,n){var i;let r={isExternal:n.has(Kt.EXTERNAL),isShareable:t||n.has(Kt.SHAREABLE)};if(!((i=e.directives)!=null&&i.length))return r;for(let a of e.directives){let o=a.name.value;if(o===Kt.EXTERNAL){r.isExternal=!0;continue}o===Kt.SHAREABLE&&(r.isShareable=!0)}return r}function zZ(e){return e.kind===Xe.Kind.NON_NULL_TYPE}function $U(e){switch(e.kind){case Xe.Kind.LIST_TYPE:return!0;case Xe.Kind.NON_NULL_TYPE:return $U(e.type);default:return!1}}function GU(e,t){switch(e.kind){case Xe.Kind.LIST_TYPE:return t.kind===Xe.Kind.LIST||t.kind===Xe.Kind.NULL;case Xe.Kind.NAMED_TYPE:if(t.kind===Xe.Kind.NULL)return!0;switch(e.name.value){case Kt.BOOLEAN_SCALAR:return t.kind===Xe.Kind.BOOLEAN;case Kt.FLOAT_SCALAR:return t.kind===Xe.Kind.INT||t.kind===Xe.Kind.FLOAT;case Kt.INT_SCALAR:return t.kind===Xe.Kind.INT;case Kt.STRING_SCALAR:return t.kind===Xe.Kind.STRING;default:return!0}case Xe.Kind.NON_NULL_TYPE:return t.kind===Xe.Kind.NULL?!1:GU(e.type,t)}}function HZ(e,t,n){if(!e.defaultValue)return;if(!t.defaultValue){e.includeDefaultValue=!1;return}let r=(0,Xe.print)(e.defaultValue),i=(0,Xe.print)(t.defaultValue);if(r!==i){n.push((0,Zv.incompatibleInputValueDefaultValuesError)(`${e.isArgument?Kt.ARGUMENT:Kt.INPUT_FIELD} "${e.name}"`,e.originalCoords,[...t.subgraphNames],r,i));return}}function WZ(e,t){let n=new Set;for(let r of t)e.executableLocations.has(r)&&n.add(r);e.executableLocations=n}function XZ(e,t){return Kt.ROOT_TYPE_NAMES.has(e)||t.has(e)}function ZZ(e,t){let n=t.get(e);if(!n)return e;switch(n){case Xe.OperationTypeNode.MUTATION:return Kt.MUTATION;case Xe.OperationTypeNode.SUBSCRIPTION:return Kt.SUBSCRIPTION;default:return Kt.QUERY}}function eee(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 tee(e){var n;let t=[];for(let r of e.values()){tS(r)&&eee(r);for(let[i,a]of r.directivesByName){if(i===Kt.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(G(M({},o),{arguments:[{kind:Xe.Kind.ARGUMENT,value:{kind:Xe.Kind.STRING,value:Xe.DEFAULT_DEPRECATION_REASON},name:(0,Kl.stringToNameNode)(Kt.REASON)}]}));continue}r.node.directives.push(...a)}t.push(r.node)}return t}function nee(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(Kt.REQUIRES_SCOPES,[(0,Sc.generateRequiresScopesDirective)(t.requiredScopes)]))}function uee(e,t){if(!t)return;let n=t.fieldAuthDataByFieldName.get(e.name);n&&(n.originalData.requiresAuthentication&&e.persistedDirectivesData.directivesByName.set(Kt.AUTHENTICATED,[(0,Sc.generateSimpleDirective)(Kt.AUTHENTICATED)]),n.originalData.requiredScopes.length>0&&e.persistedDirectivesData.directivesByName.set(Kt.REQUIRES_SCOPES,[(0,Sc.generateRequiresScopesDirective)(n.originalData.requiredScopes)]))}function eS(e){return{kind:Xe.Kind.DIRECTIVE,name:(0,Kl.stringToNameNode)(Kt.DEPRECATED),arguments:[{kind:Xe.Kind.ARGUMENT,name:(0,Kl.stringToNameNode)(Kt.REASON),value:{kind:Xe.Kind.STRING,value:e||Kt.DEPRECATED_DEFAULT_ARGUMENT_VALUE}}]}}function cee(e,t,n,r){let i=[];for(let[a,o]of e){let u=t.get(a);if(u){if(o.length<2){i.push(...o);continue}if(!u.repeatable){r.push((0,Zv.invalidRepeatedFederatedDirectiveErrorMessage)(a,n));continue}i.push(...o)}}return i}function lee(e,t,n){let r=[...e.persistedDirectivesData.tagDirectiveByName.values()];return e.persistedDirectivesData.isDeprecated&&r.push(eS(e.persistedDirectivesData.deprecatedReason)),r.push(...cee(e.persistedDirectivesData.directivesByName,t,e.name,n)),r}function Xv(e){var n;let t=[];e.persistedDirectivesData.isDeprecated&&t.push(eS(e.persistedDirectivesData.deprecatedReason));for(let[r,i]of e.persistedDirectivesData.directivesByName){if(r===Kt.SEMANTIC_NON_NULL&&tS(e)){t.push((0,Sc.generateSemanticNonNullDirective)((n=(0,Sc.getFirstEntry)(e.nullLevelsBySubgraphName))!=null?n:new Set([0])));continue}Kt.PERSISTED_CLIENT_DIRECTIVES.has(r)&&t.push(i[0])}return t}function dee(e){let t=Xv(e),n=[];for(let r of e.argumentDataByName.values())JU(r)||n.push(G(M({},r.node),{directives:Xv(r)}));return G(M({},e.node),{directives:t,arguments:n})}function YU(e,t,n){return e.node.name=(0,Kl.stringToNameNode)(e.name),e.node.type=e.type,e.node.description=e.description,e.node.directives=lee(e,t,n),e.includeDefaultValue&&(e.node.defaultValue=e.defaultValue),e.node}function fee(e,t,n,r,i){let a=[];for(let[o,u]of t.argumentDataByName){let l=(0,Sc.getEntriesNotInHashSet)(t.subgraphNames,u.subgraphNames);if(l.length>0){u.requiredSubgraphNames.size>0&&a.push({inputValueName:o,missingSubgraphs:l,requiredSubgraphs:[...u.requiredSubgraphNames]});continue}e.push(YU(u,n,r)),i&&i.add(o)}return a.length>0?(r.push((0,Zv.invalidRequiredInputValueError)(Kt.DIRECTIVE_DEFINITION,`@${t.name}`,a)),!1):!0}function pee(e,t,n,r){let i=[];fee(i,t,n,r)&&e.push({arguments:i,kind:Xe.Kind.DIRECTIVE_DEFINITION,locations:(0,Kl.setToNameNodeArray)(t.executableLocations),name:(0,Kl.stringToNameNode)(t.name),repeatable:t.repeatable,description:t.description})}function mee(){return{byShareable:new Set,subgraphNamesByExternalFieldName:new Map}}function Nee(e,t){let n=e.isShareableBySubgraphName.size,r=new Array,i=0;for(let[a,o]of e.isShareableBySubgraphName){let u=e.externalFieldDataBySubgraphName.get(a);if(u&&!u.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 KU;(function(e){e[e.UNION=0]="UNION",e[e.INTERSECTION=1]="INTERSECTION",e[e.CONSISTENT=2]="CONSISTENT"})(KU||(ct.MergeMethod=KU={}));function vT({concreteTypeNamesByAbstractTypeName:e,implementationType:t,interfaceImplementationTypeNamesByInterfaceTypeName:n,originalType:r}){if(r.kind===Xe.Kind.NON_NULL_TYPE)return t.kind!==Xe.Kind.NON_NULL_TYPE?!1:vT({concreteTypeNamesByAbstractTypeName:e,implementationType:t.type,interfaceImplementationTypeNamesByInterfaceTypeName:n,originalType:r.type});if(t.kind===Xe.Kind.NON_NULL_TYPE)return vT({concreteTypeNamesByAbstractTypeName:e,implementationType:t.type,interfaceImplementationTypeNamesByInterfaceTypeName:n,originalType:r});switch(r.kind){case Xe.Kind.NAMED_TYPE:if(t.kind===Xe.Kind.NAMED_TYPE){let i=r.name.value,a=t.name.value;if(i===a)return!0;let o=n.get(i),u=e.get(i);return!!(u!=null&&u.has(a)||o!=null&&o.has(a))}return!1;default:return t.kind===Xe.Kind.LIST_TYPE?vT({concreteTypeNamesByAbstractTypeName:e,implementationType:t.type,interfaceImplementationTypeNamesByInterfaceTypeName:n,originalType:r.type}):!1}}function JU(e){return e.persistedDirectivesData.directivesByName.has(Kt.INACCESSIBLE)||e.directivesByName.has(Kt.INACCESSIBLE)}function Tee(e){return e===Xe.Kind.SCALAR_TYPE_DEFINITION||e===Xe.Kind.ENUM_TYPE_DEFINITION}function Eee(e){switch(e.kind){case Xe.Kind.BOOLEAN:return e.value;case Xe.Kind.ENUM:case Xe.Kind.STRING:return e.value;case Xe.Kind.FLOAT:case Xe.Kind.INT:try{return parseFloat(e.value)}catch(t){return"NaN"}case Xe.Kind.NULL:return null}}function hee(e){return e.kind===Xe.Kind.OBJECT_TYPE_DEFINITION&&e.renamedTypeName||e.name}function yee(){return{providedBy:[],requiredBy:[]}}function Iee(e,t){switch(e.kind){case Xe.Kind.ENUM_VALUE_DEFINITION:return`${e.parentTypeName}.${e.name}`;case Xe.Kind.FIELD_DEFINITION:return`${t?e.renamedParentTypeName:e.originalParentTypeName}.${e.name}`;case Xe.Kind.ARGUMENT:case Xe.Kind.INPUT_VALUE_DEFINITION:return t?e.federatedCoords:e.originalCoords;case Xe.Kind.OBJECT_TYPE_DEFINITION:return t?e.renamedTypeName:e.name;default:return e.name}}function gee(e){return e.kind===Xe.Kind.OBJECT_TYPE_DEFINITION||e.kind===Xe.Kind.INTERFACE_TYPE_DEFINITION}function _ee(e){return{isDefinedExternal:e,isUnconditionallyProvided:!e}}function vee(e){let{value:t,done:n}=e.configureDescriptionDataBySubgraphName.values().next();if(n)return e.description;if(t.propagate)return(0,QZ.getDescriptionFromString)(t.description)||e.description}function See(e,t){return e.kind===t.kind}function tS(e){return e.kind===Xe.Kind.FIELD_DEFINITION}function Oee(e){return e.kind===Xe.Kind.INPUT_OBJECT_TYPE_DEFINITION}function Dee(e){return Kt.INPUT_NODE_KINDS.has(e)}function bee(e){return Kt.OUTPUT_NODE_KINDS.has(e)}function Aee(e){return Kt.INTERFACE_NODE_KINDS.has(e.kind)}function Ree(e){return e.kind===Xe.Kind.ENUM_TYPE_DEFINITION}});var iS={};Ym(iS,{__addDisposableResource:()=>NB,__assign:()=>ST,__asyncDelegator:()=>oB,__asyncGenerator:()=>sB,__asyncValues:()=>uB,__await:()=>Gl,__awaiter:()=>eB,__classPrivateFieldGet:()=>fB,__classPrivateFieldIn:()=>mB,__classPrivateFieldSet:()=>pB,__createBinding:()=>DT,__decorate:()=>WU,__disposeResources:()=>TB,__esDecorate:()=>Pee,__exportStar:()=>nB,__extends:()=>zU,__generator:()=>tB,__importDefault:()=>dB,__importStar:()=>lB,__makeTemplateObject:()=>cB,__metadata:()=>ZU,__param:()=>XU,__propKey:()=>wee,__read:()=>rS,__rest:()=>HU,__runInitializers:()=>Fee,__setFunctionName:()=>Lee,__spread:()=>rB,__spreadArray:()=>aB,__spreadArrays:()=>iB,__values:()=>OT,default:()=>Bee});function zU(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");nS(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function HU(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--)(o=e[u])&&(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 XU(e,t){return function(n,r){t(n,r,e)}}function Pee(e,t,n,r,i,a){function o(X){if(X!==void 0&&typeof X!="function")throw new TypeError("Function expected");return X}for(var u=r.kind,l=u==="getter"?"get":u==="setter"?"set":"value",d=!t&&e?r.static?e:e.prototype:null,p=t||(d?Object.getOwnPropertyDescriptor(d,r.name):{}),E,h=!1,v=n.length-1;v>=0;v--){var R={};for(var U in r)R[U]=U==="access"?{}:r[U];for(var U in r.access)R.access[U]=r.access[U];R.addInitializer=function(X){if(h)throw new TypeError("Cannot add initializers after decoration has completed");a.push(o(X||null))};var q=(0,n[v])(u==="accessor"?{get:p.get,set:p.set}:p[l],R);if(u==="accessor"){if(q===void 0)continue;if(q===null||typeof q!="object")throw new TypeError("Object expected");(E=o(q.get))&&(p.get=E),(E=o(q.set))&&(p.set=E),(E=o(q.init))&&i.unshift(E)}else(E=o(q))&&(u==="field"?i.unshift(E):p[l]=E)}d&&Object.defineProperty(d,r.name,p),h=!0}function Fee(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 rS(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(u){o={error:u}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}function rB(){for(var e=[],t=0;t1||u(h,v)})})}function u(h,v){try{l(r[h](v))}catch(R){E(a[0][3],R)}}function l(h){h.value instanceof Gl?Promise.resolve(h.value.v).then(d,p):E(a[0][2],h)}function d(h){u("next",h)}function p(h){u("throw",h)}function E(h,v){h(v),a.shift(),a.length&&u(a[0][0],a[0][1])}}function oB(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:Gl(e[i](o)),done:!1}:a?a(o):o}:a}}function uB(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 OT=="function"?OT(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(u,l){o=e[a](o),i(u,l,o.done,o.value)})}}function i(a,o,u,l){Promise.resolve(l).then(function(d){a({value:d,done:u})},o)}}function cB(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function lB(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 Cee(t,e),t}function dB(e){return e&&e.__esModule?e:{default:e}}function fB(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 pB(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 mB(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 NB(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 TB(e){function t(r){e.error=e.hasError?new Uee(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 nS,ST,DT,Cee,Uee,Bee,aS=Zu(()=>{"use strict";m();T();N();nS=function(e,t){return nS=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])},nS(e,t)};ST=function(){return ST=Object.assign||function(t){for(var n,r=1,i=arguments.length;rVB,__assign:()=>bT,__asyncDelegator:()=>LB,__asyncGenerator:()=>wB,__asyncValues:()=>CB,__await:()=>Ql,__awaiter:()=>DB,__classPrivateFieldGet:()=>MB,__classPrivateFieldIn:()=>qB,__classPrivateFieldSet:()=>xB,__createBinding:()=>RT,__decorate:()=>yB,__disposeResources:()=>jB,__esDecorate:()=>gB,__exportStar:()=>AB,__extends:()=>EB,__generator:()=>bB,__importDefault:()=>kB,__importStar:()=>BB,__makeTemplateObject:()=>UB,__metadata:()=>OB,__param:()=>IB,__propKey:()=>vB,__read:()=>uS,__rest:()=>hB,__rewriteRelativeImportExtension:()=>KB,__runInitializers:()=>_B,__setFunctionName:()=>SB,__spread:()=>RB,__spreadArray:()=>FB,__spreadArrays:()=>PB,__values:()=>AT,default:()=>xee});function EB(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");sS(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function hB(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--)(o=e[u])&&(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 IB(e,t){return function(n,r){t(n,r,e)}}function gB(e,t,n,r,i,a){function o(X){if(X!==void 0&&typeof X!="function")throw new TypeError("Function expected");return X}for(var u=r.kind,l=u==="getter"?"get":u==="setter"?"set":"value",d=!t&&e?r.static?e:e.prototype:null,p=t||(d?Object.getOwnPropertyDescriptor(d,r.name):{}),E,h=!1,v=n.length-1;v>=0;v--){var R={};for(var U in r)R[U]=U==="access"?{}:r[U];for(var U in r.access)R.access[U]=r.access[U];R.addInitializer=function(X){if(h)throw new TypeError("Cannot add initializers after decoration has completed");a.push(o(X||null))};var q=(0,n[v])(u==="accessor"?{get:p.get,set:p.set}:p[l],R);if(u==="accessor"){if(q===void 0)continue;if(q===null||typeof q!="object")throw new TypeError("Object expected");(E=o(q.get))&&(p.get=E),(E=o(q.set))&&(p.set=E),(E=o(q.init))&&i.unshift(E)}else(E=o(q))&&(u==="field"?i.unshift(E):p[l]=E)}d&&Object.defineProperty(d,r.name,p),h=!0}function _B(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 uS(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(u){o={error:u}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}function RB(){for(var e=[],t=0;t1||l(v,U)})},R&&(i[v]=R(i[v])))}function l(v,R){try{d(r[v](R))}catch(U){h(a[0][3],U)}}function d(v){v.value instanceof Ql?Promise.resolve(v.value.v).then(p,E):h(a[0][2],v)}function p(v){l("next",v)}function E(v){l("throw",v)}function h(v,R){v(R),a.shift(),a.length&&l(a[0][0],a[0][1])}}function LB(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:Ql(e[i](o)),done:!1}:a?a(o):o}:a}}function CB(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 AT=="function"?AT(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(u,l){o=e[a](o),i(u,l,o.done,o.value)})}}function i(a,o,u,l){Promise.resolve(l).then(function(d){a({value:d,done:u})},o)}}function UB(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function BB(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n=oS(e),r=0;r{"use strict";m();T();N();sS=function(e,t){return sS=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])},sS(e,t)};bT=function(){return bT=Object.assign||function(t){for(var n,r=1,i=arguments.length;r{"use strict";m();T();N()});var Yl=F(zi=>{"use strict";m();T();N();Object.defineProperty(zi,"__esModule",{value:!0});zi.asArray=void 0;zi.isUrl=YB;zi.isDocumentString=$ee;zi.isValidPath=Qee;zi.compareStrings=JB;zi.nodeToString=cS;zi.compareNodes=Yee;zi.isSome=Jee;zi.assertSome=zee;var qee=Se(),Vee=/^(https?|wss?|file):\/\//;function YB(e){if(typeof e!="string"||!Vee.test(e))return!1;if(URL.canParse)return URL.canParse(e);try{return!!new URL(e)}catch(t){return!1}}var jee=e=>Array.isArray(e)?e:e?[e]:[];zi.asArray=jee;var Kee=/\.[a-z0-9]+$/i;function $ee(e){if(typeof e!="string"||Kee.test(e)||YB(e))return!1;try{return(0,qee.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 Gee=/[‘“!%^<>`\n]/;function Qee(e){return typeof e=="string"&&!Gee.test(e)}function JB(e,t){return String(e)String(t)?1:0}function cS(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=cS(e),i=cS(t);return typeof n=="function"?n(r,i):JB(r,i)}function Jee(e){return e!=null}function zee(e,t="Value should be something"){if(e==null)throw new Error(t)}});var Jf=F(FT=>{"use strict";m();T();N();Object.defineProperty(FT,"__esModule",{value:!0});FT.inspect=void 0;var WB=3;function Hee(e){return PT(e,[])}FT.inspect=Hee;function PT(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return Wee(e,t);default:return String(e)}}function zB(e){return(e.name="GraphQLError")?e.toString():`${e.name}: ${e.message}; - ${e.stack}`}function Wee(e,t){if(e===null)return"null";if(e instanceof Error)return e.name==="AggregateError"?zB(e)+` -`+HB(e.errors,t):zB(e);if(t.includes(e))return"[Circular]";let n=[...t,e];if(Xee(e)){let r=e.toJSON();if(r!==e)return typeof r=="string"?r:PT(r,n)}else if(Array.isArray(e))return HB(e,n);return Zee(e,n)}function Xee(e){return typeof e.toJSON=="function"}function Zee(e,t){let n=Object.entries(e);return n.length===0?"{}":t.length>WB?"["+ete(e)+"]":"{ "+n.map(([i,a])=>i+": "+PT(a,t)).join(", ")+" }"}function HB(e,t){if(e.length===0)return"[]";if(t.length>WB)return"[Array]";let n=e.length,r=[];for(let i=0;i{"use strict";m();T();N();Object.defineProperty(wT,"__esModule",{value:!0});wT.createGraphQLError=dS;wT.relocatedError=rte;var lS=Se(),tte=["message","locations","path","nodes","source","positions","originalError","name","stack","extensions"];function nte(e){return e!=null&&typeof e=="object"&&Object.keys(e).every(t=>tte.includes(t))}function dS(e,t){return t!=null&&t.originalError&&!(t.originalError instanceof Error)&&nte(t.originalError)&&(t.originalError=dS(t.originalError.message,t.originalError)),lS.versionInfo.major>=17?new lS.GraphQLError(e,t):new lS.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 rte(e,t){return dS(e.message,{nodes:e.nodes,source:e.source,positions:e.positions,path:t==null?e.path:t,originalError:e,extensions:e.extensions})}});var zf=F(oi=>{"use strict";m();T();N();Object.defineProperty(oi,"__esModule",{value:!0});oi.isPromise=CT;oi.isActualPromise=ZB;oi.handleMaybePromise=Au;oi.fakePromise=ts;oi.createDeferredPromise=ite;oi.iterateAsync=ek;oi.iterateAsyncVoid=ek;oi.fakeRejectPromise=Oc;oi.mapMaybePromise=ate;oi.mapAsyncIterator=ste;oi.promiseLikeFinally=tk;oi.unfakePromise=nk;var UT=Symbol.for("@whatwg-node/promise-helpers/FakePromise");function CT(e){return(e==null?void 0:e.then)!=null}function ZB(e){let t=e;return t&&t.then&&t.catch&&t.finally}function Au(e,t,n,r){let i=ts().then(e).then(t,n);return r&&(i=i.finally(r)),nk(i)}function ts(e){return e&&ZB(e)?e:CT(e)?{then:(t,n)=>ts(e.then(t,n)),catch:t=>ts(e.then(n=>n,t)),finally:t=>ts(t?tk(e,t):e),[Symbol.toStringTag]:"Promise"}:{then(t){if(t)try{return ts(t(e))}catch(n){return Oc(n)}return this},catch(){return this},finally(t){if(t)try{return ts(t()).then(()=>e,()=>e)}catch(n){return Oc(n)}return this},[Symbol.toStringTag]:"Promise",__fakePromiseValue:e,[UT]:"resolved"}}function ite(){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 ek(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:u}=r.next();if(o)return;let l=!1;function d(){l=!0}return Au(function(){return t(u,d,i++)},function(E){if(E&&(n==null||n.push(E)),!l)return a()})}return a()}function Oc(e){return{then(t,n){if(n)try{return ts(n(e))}catch(r){return Oc(r)}return this},catch(t){if(t)try{return ts(t(e))}catch(n){return Oc(n)}return this},finally(t){if(t)try{t()}catch(n){return Oc(n)}return this},__fakeRejectError:e,[Symbol.toStringTag]:"Promise",[UT]:"rejected"}}function ate(e,t,n){return Au(()=>e,t,n)}function ste(e,t,n,r){Symbol.asyncIterator in e&&(e=e[Symbol.asyncIterator]());let i,a,o;if(r){let d;o=p=>(d||(d=Au(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 u(d){return d.done?o?o(d):d:Au(()=>d.value,p=>Au(()=>t(p),XB,a))}let l;if(n){let d,p=n;l=E=>(d||(d=Au(()=>E,h=>Au(()=>p(h),XB,a))),d)}return{next(){return e.next().then(u,l)},return(){let d=i?i.call(e).then(u,l):ts({value:void 0,done:!0});return o?d.then(o):d},throw(d){return typeof e.throw=="function"?e.throw(d).then(u,l):a?a(d):Oc(d)},[Symbol.asyncIterator](){return this}}}function XB(e){return{value:e,done:!1}}function ote(e){return(e==null?void 0:e[UT])==="resolved"}function ute(e){return(e==null?void 0:e[UT])==="rejected"}function tk(e,t){return"finally"in e?e.finally(t):e.then(n=>{let r=t();return CT(r)?r.then(()=>n):n},n=>{let r=t();if(CT(r))return r.then(()=>{throw n});throw n})}function nk(e){if(ote(e))return e.__fakePromiseValue;if(ute(e))throw e.__fakeRejectError;return e}});var BT=F(Ru=>{"use strict";m();T();N();Object.defineProperty(Ru,"__esModule",{value:!0});Ru.isPromise=void 0;Ru.isIterableObject=cte;Ru.isObjectLike=lte;Ru.promiseReduce=dte;Ru.hasOwnProperty=fte;var rk=zf();Object.defineProperty(Ru,"isPromise",{enumerable:!0,get:function(){return rk.isPromise}});function cte(e){return e!=null&&typeof e=="object"&&Symbol.iterator in e}function lte(e){return typeof e=="object"&&e!==null}function dte(e,t,n){let r=n;for(let i of e)r=(0,rk.handleMaybePromise)(()=>r,a=>t(a,i));return r}function fte(e,t){return Object.prototype.hasOwnProperty.call(e,t)}});var mS=F(pS=>{"use strict";m();T();N();Object.defineProperty(pS,"__esModule",{value:!0});pS.getArgumentValues=mte;var fS=Jf(),Dc=Se(),kT=LT(),pte=BT();function mte(e,t,n={}){var o;let r={},a=((o=t.arguments)!=null?o:[]).reduce((u,l)=>G(M({},u),{[l.name.value]:l}),{});for(let{name:u,type:l,defaultValue:d}of e.args){let p=a[u];if(!p){if(d!==void 0)r[u]=d;else if((0,Dc.isNonNullType)(l))throw(0,kT.createGraphQLError)(`Argument "${u}" of required type "${(0,fS.inspect)(l)}" was not provided.`,{nodes:[t]});continue}let E=p.value,h=E.kind===Dc.Kind.NULL;if(E.kind===Dc.Kind.VARIABLE){let R=E.name.value;if(n==null||!(0,pte.hasOwnProperty)(n,R)){if(d!==void 0)r[u]=d;else if((0,Dc.isNonNullType)(l))throw(0,kT.createGraphQLError)(`Argument "${u}" of required type "${(0,fS.inspect)(l)}" was provided the variable "$${R}" which was not provided a runtime value.`,{nodes:[E]});continue}h=n[R]==null}if(h&&(0,Dc.isNonNullType)(l))throw(0,kT.createGraphQLError)(`Argument "${u}" of non-null type "${(0,fS.inspect)(l)}" must not be null.`,{nodes:[E]});let v=(0,Dc.valueFromAST)(E,l,n);if(v===void 0)throw(0,kT.createGraphQLError)(`Argument "${u}" has invalid value ${(0,Dc.print)(E)}.`,{nodes:[E]});r[u]=v}return r}});var Pu=F(Ls=>{"use strict";m();T();N();Object.defineProperty(Ls,"__esModule",{value:!0});Ls.memoize1=Nte;Ls.memoize2=Tte;Ls.memoize3=Ete;Ls.memoize4=hte;Ls.memoize5=yte;Ls.memoize2of4=Ite;Ls.memoize2of5=gte;function Nte(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 Tte(e){let t=new WeakMap;return function(r,i){let a=t.get(r);if(!a){a=new WeakMap,t.set(r,a);let u=e(r,i);return a.set(i,u),u}let o=a.get(i);if(o===void 0){let u=e(r,i);return a.set(i,u),u}return o}}function Ete(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 u=o.get(i);if(!u){u=new WeakMap,o.set(i,u);let d=e(r,i,a);return u.set(a,d),d}let l=u.get(a);if(l===void 0){let d=e(r,i,a);return u.set(a,d),d}return l}}function hte(e){let t=new WeakMap;return function(r,i,a,o){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(a,h);let v=e(r,i,a,o);return h.set(o,v),v}let l=u.get(i);if(!l){l=new WeakMap,u.set(i,l);let E=new WeakMap;l.set(a,E);let h=e(r,i,a,o);return E.set(o,h),h}let d=l.get(a);if(!d){let E=new WeakMap;l.set(a,E);let h=e(r,i,a,o);return E.set(o,h),h}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 yte(e){let t=new WeakMap;return function(r,i,a,o,u){let l=t.get(r);if(!l){l=new WeakMap,t.set(r,l);let v=new WeakMap;l.set(i,v);let R=new WeakMap;v.set(a,R);let U=new WeakMap;R.set(o,U);let q=e(r,i,a,o,u);return U.set(u,q),q}let d=l.get(i);if(!d){d=new WeakMap,l.set(i,d);let v=new WeakMap;d.set(a,v);let R=new WeakMap;v.set(o,R);let U=e(r,i,a,o,u);return R.set(u,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 R=e(r,i,a,o,u);return v.set(u,R),R}let E=p.get(o);if(!E){E=new WeakMap,p.set(o,E);let v=e(r,i,a,o,u);return E.set(u,v),v}let h=E.get(u);if(h===void 0){let v=e(r,i,a,o,u);return E.set(u,v),v}return h}}function Ite(e){let t=new WeakMap;return function(r,i,a,o){let u=t.get(r);if(!u){u=new WeakMap,t.set(r,u);let d=e(r,i,a,o);return u.set(i,d),d}let l=u.get(i);if(l===void 0){let d=e(r,i,a,o);return u.set(i,d),d}return l}}function gte(e){let t=new WeakMap;return function(r,i,a,o,u){let l=t.get(r);if(!l){l=new WeakMap,t.set(r,l);let p=e(r,i,a,o,u);return l.set(i,p),p}let d=l.get(i);if(d===void 0){let p=e(r,i,a,o,u);return l.set(i,p),p}return d}}});var TS=F(NS=>{"use strict";m();T();N();Object.defineProperty(NS,"__esModule",{value:!0});NS.getDirectiveExtensions=Ste;var ik=Se(),_te=mS(),vte=Pu();function Ste(e,t,n=["directives"]){var o;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],p=l;if(Array.isArray(d))for(let E of d){let h=r[p];h||(h=[],r[p]=h),h.push(E)}else{let E=r[p];E||(E=[],r[p]=E),E.push(d)}}}let i=(0,vte.memoize1)(u=>JSON.stringify(u)),a=[];e.astNode&&a.push(e.astNode),e.extensionASTNodes&&a.push(...e.extensionASTNodes);for(let u of a)if((o=u.directives)!=null&&o.length)for(let l of u.directives){let d=l.name.value,p=r[d];p||(p=[],r[d]=p);let E=t==null?void 0:t.getDirective(d),h={};if(E&&(h=(0,_te.getArgumentValues)(E,l)),l.arguments)for(let v of l.arguments){let R=v.name.value;if(h[R]==null){let U=E==null?void 0:E.args.find(q=>q.name===R);U&&(h[R]=(0,ik.valueFromAST)(v.value,U.type))}h[R]==null&&(h[R]=(0,ik.valueFromASTUntyped)(v.value))}if(a.length>0&&p.length>0){let v=i(h);if(p.some(R=>i(R)===v))continue}p.push(h)}return r}});var ES=F(Jl=>{"use strict";m();T();N();Object.defineProperty(Jl,"__esModule",{value:!0});Jl.getDirectivesInExtensions=Ote;Jl.getDirectiveInExtensions=Dte;Jl.getDirectives=bte;Jl.getDirective=Ate;var MT=TS();function Ote(e,t=["directives"]){let n=(0,MT.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 Dte(e,t,n=["directives"]){return(0,MT.getDirectiveExtensions)(e,void 0,n)[t]}function bte(e,t,n=["directives"]){let r=(0,MT.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 Ate(e,t,n,r=["directives"]){return(0,MT.getDirectiveExtensions)(t,e,r)[n]}});var yS=F(hS=>{"use strict";m();T();N();Object.defineProperty(hS,"__esModule",{value:!0});hS.getFieldsWithDirectives=Pte;var Rte=Se();function Pte(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 u of a.fields)if(u.directives&&u.directives.length>0){let l=u.name.value,d=`${o}.${l}`,p=u.directives.map(E=>({name:E.name.value,args:(E.arguments||[]).reduce((h,v)=>G(M({},h),{[v.name.value]:(0,Rte.valueFromASTUntyped)(v.value)}),{})}));n[d]=p}}}return n}});var ak=F(gS=>{"use strict";m();T();N();Object.defineProperty(gS,"__esModule",{value:!0});gS.getArgumentsWithDirectives=wte;var IS=Se();function Fte(e){return e.kind===IS.Kind.OBJECT_TYPE_DEFINITION||e.kind===IS.Kind.OBJECT_TYPE_EXTENSION}function wte(e){var r;let t={},n=e.definitions.filter(Fte);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 u=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,h)=>G(M({},E),{[h.name.value]:(0,IS.valueFromASTUntyped)(h.value)}),{})}));u[l.name.value]=d}}return t}});var vS=F(_S=>{"use strict";m();T();N();Object.defineProperty(_S,"__esModule",{value:!0});_S.getImplementingTypes=Lte;function Lte(e,t){let n=t.getTypeMap(),r=[];for(let i in n){let a=n[i];"getInterfaces"in a&&a.getInterfaces().find(u=>u.name===e)&&r.push(a.name)}return r}});var xT=F(OS=>{"use strict";m();T();N();Object.defineProperty(OS,"__esModule",{value:!0});OS.astFromType=SS;var Cte=Jf(),bc=Se();function SS(e){if((0,bc.isNonNullType)(e)){let t=SS(e.ofType);if(t.kind===bc.Kind.NON_NULL_TYPE)throw new Error(`Invalid type node ${(0,Cte.inspect)(e)}. Inner type of non-null type cannot be a non-null type.`);return{kind:bc.Kind.NON_NULL_TYPE,type:t}}else if((0,bc.isListType)(e))return{kind:bc.Kind.LIST_TYPE,type:SS(e.ofType)};return{kind:bc.Kind.NAMED_TYPE,name:{kind:bc.Kind.NAME,value:e.name}}}});var Hf=F(DS=>{"use strict";m();T();N();Object.defineProperty(DS,"__esModule",{value:!0});DS.astFromValueUntyped=qT;var ns=Se();function qT(e){if(e===null)return{kind:ns.Kind.NULL};if(e===void 0)return null;if(Array.isArray(e)){let t=[];for(let n of e){let r=qT(n);r!=null&&t.push(r)}return{kind:ns.Kind.LIST,values:t}}if(typeof e=="object"){if(e!=null&&e.toJSON)return qT(e.toJSON());let t=[];for(let n in e){let r=e[n],i=qT(r);i&&t.push({kind:ns.Kind.OBJECT_FIELD,name:{kind:ns.Kind.NAME,value:n},value:i})}return{kind:ns.Kind.OBJECT,fields:t}}if(typeof e=="boolean")return{kind:ns.Kind.BOOLEAN,value:e};if(typeof e=="bigint")return{kind:ns.Kind.INT,value:String(e)};if(typeof e=="number"&&isFinite(e)){let t=String(e);return Ute.test(t)?{kind:ns.Kind.INT,value:t}:{kind:ns.Kind.FLOAT,value:t}}if(typeof e=="string")return{kind:ns.Kind.STRING,value:e};throw new TypeError(`Cannot convert value to AST: ${e}.`)}var Ute=/^-?(?:0|[1-9][0-9]*)$/});var ok=F(bS=>{"use strict";m();T();N();Object.defineProperty(bS,"__esModule",{value:!0});bS.astFromValue=Wf;var Bte=Jf(),Si=Se(),kte=Hf(),sk=BT();function Wf(e,t){if((0,Si.isNonNullType)(t)){let n=Wf(e,t.ofType);return(n==null?void 0:n.kind)===Si.Kind.NULL?null:n}if(e===null)return{kind:Si.Kind.NULL};if(e===void 0)return null;if((0,Si.isListType)(t)){let n=t.ofType;if((0,sk.isIterableObject)(e)){let r=[];for(let i of e){let a=Wf(i,n);a!=null&&r.push(a)}return{kind:Si.Kind.LIST,values:r}}return Wf(e,n)}if((0,Si.isInputObjectType)(t)){if(!(0,sk.isObjectLike)(e))return null;let n=[];for(let r of Object.values(t.getFields())){let i=Wf(e[r.name],r.type);i&&n.push({kind:Si.Kind.OBJECT_FIELD,name:{kind:Si.Kind.NAME,value:r.name},value:i})}return{kind:Si.Kind.OBJECT,fields:n}}if((0,Si.isLeafType)(t)){let n=t.serialize(e);return n==null?null:(0,Si.isEnumType)(t)?{kind:Si.Kind.ENUM,value:n}:t.name==="ID"&&typeof n=="string"&&Mte.test(n)?{kind:Si.Kind.INT,value:n}:(0,kte.astFromValueUntyped)(n)}console.assert(!1,"Unexpected input type: "+(0,Bte.inspect)(t))}var Mte=/^-?(?:0|[1-9][0-9]*)$/});var uk=F(AS=>{"use strict";m();T();N();Object.defineProperty(AS,"__esModule",{value:!0});AS.getDescriptionNode=qte;var xte=Se();function qte(e){var t;if((t=e.astNode)!=null&&t.description)return G(M({},e.astNode.description),{block:!0});if(e.description)return{kind:xte.Kind.STRING,value:e.description,block:!0}}});var Xf=F(Hi=>{"use strict";m();T();N();Object.defineProperty(Hi,"__esModule",{value:!0});Hi.getRootTypeMap=Hi.getRootTypes=Hi.getRootTypeNames=void 0;Hi.getDefinedRootType=jte;var Vte=LT(),RS=Pu();function jte(e,t,n){let i=(0,Hi.getRootTypeMap)(e).get(t);if(i==null)throw(0,Vte.createGraphQLError)(`Schema is not configured to execute ${t} operation.`,{nodes:n});return i}Hi.getRootTypeNames=(0,RS.memoize1)(function(t){let n=(0,Hi.getRootTypes)(t);return new Set([...n].map(r=>r.name))});Hi.getRootTypes=(0,RS.memoize1)(function(t){let n=(0,Hi.getRootTypeMap)(t);return new Set(n.values())});Hi.getRootTypeMap=(0,RS.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 CS=F(er=>{"use strict";m();T();N();Object.defineProperty(er,"__esModule",{value:!0});er.getDocumentNodeFromSchema=lk;er.printSchemaWithDirectives=Qte;er.astFromSchema=dk;er.astFromDirective=fk;er.getDirectiveNodes=_a;er.astFromArg=FS;er.astFromObjectType=pk;er.astFromInterfaceType=mk;er.astFromUnionType=Nk;er.astFromInputObjectType=Tk;er.astFromEnumType=Ek;er.astFromScalarType=hk;er.astFromField=wS;er.astFromInputField=yk;er.astFromEnumValue=Ik;er.makeDeprecatedDirective=gk;er.makeDirectiveNode=zl;er.makeDirectiveNodes=LS;var mt=Se(),Ac=xT(),PS=ok(),Kte=Hf(),Wi=uk(),ck=ES(),$te=Yl(),Gte=Xf();function lk(e,t={}){let n=t.pathToDirectivesInExtensions,r=e.getTypeMap(),i=dk(e,n),a=i!=null?[i]:[],o=e.getDirectives();for(let u of o)(0,mt.isSpecifiedDirective)(u)||a.push(fk(u,e,n));for(let u in r){let l=r[u],d=(0,mt.isSpecifiedScalarType)(l),p=(0,mt.isIntrospectionType)(l);if(!(d||p))if((0,mt.isObjectType)(l))a.push(pk(l,e,n));else if((0,mt.isInterfaceType)(l))a.push(mk(l,e,n));else if((0,mt.isUnionType)(l))a.push(Nk(l,e,n));else if((0,mt.isInputObjectType)(l))a.push(Tk(l,e,n));else if((0,mt.isEnumType)(l))a.push(Ek(l,e,n));else if((0,mt.isScalarType)(l))a.push(hk(l,e,n));else throw new Error(`Unknown type ${l}.`)}return{kind:mt.Kind.DOCUMENT,definitions:a}}function Qte(e,t={}){let n=lk(e,t);return(0,mt.print)(n)}function dk(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,Gte.getRootTypeMap)(e);for(let[d,p]of n){let E=i.get(d);if(E!=null){let h=(0,Ac.astFromType)(E);p!=null?p.type=h:n.set(d,{kind:mt.Kind.OPERATION_TYPE_DEFINITION,operation:d,type:h})}}let a=[...n.values()].filter($te.isSome),o=_a(e,e,t);if(!a.length&&!o.length)return null;let u={kind:a.length?mt.Kind.SCHEMA_DEFINITION:mt.Kind.SCHEMA_EXTENSION,operationTypes:a,directives:o},l=(0,Wi.getDescriptionNode)(e);return l&&(u.description=l),u}function fk(e,t,n){var r,i;return{kind:mt.Kind.DIRECTIVE_DEFINITION,description:(0,Wi.getDescriptionNode)(e),name:{kind:mt.Kind.NAME,value:e.name},arguments:(r=e.args)==null?void 0:r.map(a=>FS(a,t,n)),repeatable:e.isRepeatable,locations:((i=e.locations)==null?void 0:i.map(a=>({kind:mt.Kind.NAME,value:a})))||[]}}function _a(e,t,n){let r=[],i=(0,ck.getDirectivesInExtensions)(e,n),a;i!=null&&(a=LS(t,i));let o=null,u=null,l=null;if(a!=null&&(r=a.filter(d=>mt.specifiedDirectives.every(p=>p.name!==d.name.value)),o=a.find(d=>d.name.value==="deprecated"),u=a.find(d=>d.name.value==="specifiedBy"),l=a.find(d=>d.name.value==="oneOf")),e.deprecationReason!=null&&o==null&&(o=gk(e.deprecationReason)),e.specifiedByUrl!=null||e.specifiedByURL!=null&&u==null){let p={url:e.specifiedByUrl||e.specifiedByURL};u=zl("specifiedBy",p)}return e.isOneOf&&l==null&&(l=zl("oneOf")),o!=null&&r.push(o),u!=null&&r.push(u),l!=null&&r.push(l),r}function FS(e,t,n){var r;return{kind:mt.Kind.INPUT_VALUE_DEFINITION,description:(0,Wi.getDescriptionNode)(e),name:{kind:mt.Kind.NAME,value:e.name},type:(0,Ac.astFromType)(e.type),defaultValue:e.defaultValue!==void 0&&(r=(0,PS.astFromValue)(e.defaultValue,e.type))!=null?r:void 0,directives:_a(e,t,n)}}function pk(e,t,n){return{kind:mt.Kind.OBJECT_TYPE_DEFINITION,description:(0,Wi.getDescriptionNode)(e),name:{kind:mt.Kind.NAME,value:e.name},fields:Object.values(e.getFields()).map(r=>wS(r,t,n)),interfaces:Object.values(e.getInterfaces()).map(r=>(0,Ac.astFromType)(r)),directives:_a(e,t,n)}}function mk(e,t,n){let r={kind:mt.Kind.INTERFACE_TYPE_DEFINITION,description:(0,Wi.getDescriptionNode)(e),name:{kind:mt.Kind.NAME,value:e.name},fields:Object.values(e.getFields()).map(i=>wS(i,t,n)),directives:_a(e,t,n)};return"getInterfaces"in e&&(r.interfaces=Object.values(e.getInterfaces()).map(i=>(0,Ac.astFromType)(i))),r}function Nk(e,t,n){return{kind:mt.Kind.UNION_TYPE_DEFINITION,description:(0,Wi.getDescriptionNode)(e),name:{kind:mt.Kind.NAME,value:e.name},directives:_a(e,t,n),types:e.getTypes().map(r=>(0,Ac.astFromType)(r))}}function Tk(e,t,n){return{kind:mt.Kind.INPUT_OBJECT_TYPE_DEFINITION,description:(0,Wi.getDescriptionNode)(e),name:{kind:mt.Kind.NAME,value:e.name},fields:Object.values(e.getFields()).map(r=>yk(r,t,n)),directives:_a(e,t,n)}}function Ek(e,t,n){return{kind:mt.Kind.ENUM_TYPE_DEFINITION,description:(0,Wi.getDescriptionNode)(e),name:{kind:mt.Kind.NAME,value:e.name},values:Object.values(e.getValues()).map(r=>Ik(r,t,n)),directives:_a(e,t,n)}}function hk(e,t,n){let r=(0,ck.getDirectivesInExtensions)(e,n),i=LS(t,r),a=e.specifiedByUrl||e.specifiedByURL;if(a&&!i.some(o=>o.name.value==="specifiedBy")){let o={url:a};i.push(zl("specifiedBy",o))}return{kind:mt.Kind.SCALAR_TYPE_DEFINITION,description:(0,Wi.getDescriptionNode)(e),name:{kind:mt.Kind.NAME,value:e.name},directives:i}}function wS(e,t,n){return{kind:mt.Kind.FIELD_DEFINITION,description:(0,Wi.getDescriptionNode)(e),name:{kind:mt.Kind.NAME,value:e.name},arguments:e.args.map(r=>FS(r,t,n)),type:(0,Ac.astFromType)(e.type),directives:_a(e,t,n)}}function yk(e,t,n){var r;return{kind:mt.Kind.INPUT_VALUE_DEFINITION,description:(0,Wi.getDescriptionNode)(e),name:{kind:mt.Kind.NAME,value:e.name},type:(0,Ac.astFromType)(e.type),directives:_a(e,t,n),defaultValue:(r=(0,PS.astFromValue)(e.defaultValue,e.type))!=null?r:void 0}}function Ik(e,t,n){return{kind:mt.Kind.ENUM_VALUE_DEFINITION,description:(0,Wi.getDescriptionNode)(e),name:{kind:mt.Kind.NAME,value:e.name},directives:_a(e,t,n)}}function gk(e){return zl("deprecated",{reason:e},mt.GraphQLDeprecatedDirective)}function zl(e,t,n){let r=[];for(let i in t){let a=t[i],o;if(n!=null){let u=n.args.find(l=>l.name===i);u&&(o=(0,PS.astFromValue)(a,u.type))}o==null&&(o=(0,Kte.astFromValueUntyped)(a)),o!=null&&r.push({kind:mt.Kind.ARGUMENT,name:{kind:mt.Kind.NAME,value:i},value:o})}return{kind:mt.Kind.DIRECTIVE,name:{kind:mt.Kind.NAME,value:e},arguments:r}}function LS(e,t){let n=[];for(let{name:r,args:i}of t){let a=e==null?void 0:e.getDirective(r);n.push(zl(r,i,a))}return n}});var vk=F(VT=>{"use strict";m();T();N();Object.defineProperty(VT,"__esModule",{value:!0});VT.validateGraphQlDocuments=Yte;VT.createDefaultRules=_k;var Zf=Se();function Yte(e,t,n=_k()){var u;let r=new Set,i=new Map;for(let l of t)for(let d of l.definitions)d.kind===Zf.Kind.FRAGMENT_DEFINITION?i.set(d.name.value,d):r.add(d);let a={kind:Zf.Kind.DOCUMENT,definitions:Array.from([...r,...i.values()])},o=(0,Zf.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 ${(u=l.source)==null?void 0:u.name}:${d.line}:${d.column}`;return o}function _k(){let e=["NoUnusedFragmentsRule","NoUnusedVariablesRule","KnownDirectivesRule"];return Zf.versionInfo.major<15&&(e=e.map(t=>t.replace(/Rule$/,""))),Zf.specifiedRules.filter(t=>!e.includes(t.name))}});var Sk=F(US=>{"use strict";m();T();N();Object.defineProperty(US,"__esModule",{value:!0});US.parseGraphQLJSON=Wte;var Jte=Se();function zte(e){return e=e.toString(),e.charCodeAt(0)===65279&&(e=e.slice(1)),e}function Hte(e){return JSON.parse(zte(e))}function Wte(e,t,n){let r=Hte(t);if(r.data&&(r=r.data),r.kind==="Document")return{location:e,document:r};if(r.__schema){let i=(0,Jte.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 kS=F(Xi=>{"use strict";m();T();N();Object.defineProperty(Xi,"__esModule",{value:!0});Xi.resetComments=Zte;Xi.collectComment=ene;Xi.pushComment=ep;Xi.printComment=Rk;Xi.printWithComments=ine;Xi.getDescription=sne;Xi.getComment=BS;Xi.getLeadingCommentBlock=Pk;Xi.dedentBlockStringValue=Fk;Xi.getBlockStringIndentation=wk;var Ak=Se(),Xte=80,Hl={};function Zte(){Hl={}}function ene(e){var n;let t=(n=e.name)==null?void 0:n.value;if(t!=null)switch(ep(e,t),e.kind){case"EnumTypeDefinition":if(e.values)for(let r of e.values)ep(r,t,r.name.value);break;case"ObjectTypeDefinition":case"InputObjectTypeDefinition":case"InterfaceTypeDefinition":if(e.fields){for(let r of e.fields)if(ep(r,t,r.name.value),ane(r)&&r.arguments)for(let i of r.arguments)ep(i,t,r.name.value,i.name.value)}break}}function ep(e,t,n,r){let i=BS(e);if(typeof i!="string"||i.length===0)return;let a=[t];n&&(a.push(n),r&&a.push(r));let o=a.join(".");Hl[o]||(Hl[o]=[]),Hl[o].push(i)}function Rk(e){return` +`}});var SH=D(MR=>{"use strict";d();p();f();Object.defineProperty(MR,"__esModule",{value:!0});MR.concatAST=PAe;var wAe=jt();function PAe(e){let t=[];for(let r of e)t.push(...r.definitions);return{kind:wAe.Kind.DOCUMENT,definitions:t}}});var bH=D(jR=>{"use strict";d();p();f();Object.defineProperty(jR,"__esModule",{value:!0});jR.separateOperations=LAe;var Qg=jt(),FAe=$l();function LAe(e){let t=[],r=Object.create(null);for(let i of e.definitions)switch(i.kind){case Qg.Kind.OPERATION_DEFINITION:t.push(i);break;case Qg.Kind.FRAGMENT_DEFINITION:r[i.name.value]=OH(i.selectionSet);break;default:}let n=Object.create(null);for(let i of t){let a=new Set;for(let u of OH(i.selectionSet))DH(a,r,u);let o=i.name?i.name.value:"";n[o]={kind:Qg.Kind.DOCUMENT,definitions:e.definitions.filter(u=>u===i||u.kind===Qg.Kind.FRAGMENT_DEFINITION&&a.has(u.name.value))}}return n}function DH(e,t,r){if(!e.has(r)){e.add(r);let n=t[r];if(n!==void 0)for(let i of n)DH(e,t,i)}}function OH(e){let t=[];return(0,FAe.visit)(e,{FragmentSpread(r){t.push(r.name.value)}}),t}});var wH=D(KR=>{"use strict";d();p();f();Object.defineProperty(KR,"__esModule",{value:!0});KR.stripIgnoredCharacters=BAe;var CAe=ih(),AH=kE(),RH=jE(),VR=oh();function BAe(e){let t=(0,RH.isSource)(e)?e:new RH.Source(e),r=t.body,n=new AH.Lexer(t),i="",a=!1;for(;n.advance().kind!==VR.TokenKind.EOF;){let o=n.token,u=o.kind,l=!(0,AH.isPunctuatorTokenKind)(o.kind);a&&(l||o.kind===VR.TokenKind.SPREAD)&&(i+=" ");let m=r.slice(o.start,o.end);u===VR.TokenKind.BLOCK_STRING?i+=(0,CAe.printBlockString)(o.value,{minimize:!0}):i+=m,a=l}return i}});var FH=D(Yg=>{"use strict";d();p();f();Object.defineProperty(Yg,"__esModule",{value:!0});Yg.assertValidName=xAe;Yg.isValidNameError=PH;var UAe=si(),kAe=at(),qAe=mh();function xAe(e){let t=PH(e);if(t)throw t;return e}function PH(e){if(typeof e=="string"||(0,UAe.devAssert)(!1,"Expected name to be a string."),e.startsWith("__"))return new kAe.GraphQLError(`Name "${e}" must not begin with "__", which is reserved by GraphQL introspection.`);try{(0,qAe.assertName)(e)}catch(t){return t}}});var MH=D(Mo=>{"use strict";d();p();f();Object.defineProperty(Mo,"__esModule",{value:!0});Mo.DangerousChangeType=Mo.BreakingChangeType=void 0;Mo.findBreakingChanges=GAe;Mo.findDangerousChanges=QAe;var MAe=ur(),qH=Xn(),LH=xc(),jAe=Gi(),Xt=Vt(),VAe=Co(),KAe=Dh(),$Ae=Q0(),Wr;Mo.BreakingChangeType=Wr;(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"})(Wr||(Mo.BreakingChangeType=Wr={}));var no;Mo.DangerousChangeType=no;(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"})(no||(Mo.DangerousChangeType=no={}));function GAe(e,t){return xH(e,t).filter(r=>r.type in Wr)}function QAe(e,t){return xH(e,t).filter(r=>r.type in no)}function xH(e,t){return[...JAe(e,t),...YAe(e,t)]}function YAe(e,t){let r=[],n=Cs(e.getDirectives(),t.getDirectives());for(let i of n.removed)r.push({type:Wr.DIRECTIVE_REMOVED,description:`${i.name} was removed.`});for(let[i,a]of n.persisted){let o=Cs(i.args,a.args);for(let u of o.added)(0,Xt.isRequiredArgument)(u)&&r.push({type:Wr.REQUIRED_DIRECTIVE_ARG_ADDED,description:`A required arg ${u.name} on directive ${i.name} was added.`});for(let u of o.removed)r.push({type:Wr.DIRECTIVE_ARG_REMOVED,description:`${u.name} was removed from ${i.name}.`});i.isRepeatable&&!a.isRepeatable&&r.push({type:Wr.DIRECTIVE_REPEATABLE_REMOVED,description:`Repeatable flag was removed from ${i.name}.`});for(let u of i.locations)a.locations.includes(u)||r.push({type:Wr.DIRECTIVE_LOCATION_REMOVED,description:`${u} was removed from ${i.name}.`})}return r}function JAe(e,t){let r=[],n=Cs(Object.values(e.getTypeMap()),Object.values(t.getTypeMap()));for(let i of n.removed)r.push({type:Wr.TYPE_REMOVED,description:(0,VAe.isSpecifiedScalarType)(i)?`Standard scalar ${i.name} was removed because it is not referenced anymore.`:`${i.name} was removed.`});for(let[i,a]of n.persisted)(0,Xt.isEnumType)(i)&&(0,Xt.isEnumType)(a)?r.push(...WAe(i,a)):(0,Xt.isUnionType)(i)&&(0,Xt.isUnionType)(a)?r.push(...HAe(i,a)):(0,Xt.isInputObjectType)(i)&&(0,Xt.isInputObjectType)(a)?r.push(...zAe(i,a)):(0,Xt.isObjectType)(i)&&(0,Xt.isObjectType)(a)?r.push(...BH(i,a),...CH(i,a)):(0,Xt.isInterfaceType)(i)&&(0,Xt.isInterfaceType)(a)?r.push(...BH(i,a),...CH(i,a)):i.constructor!==a.constructor&&r.push({type:Wr.TYPE_CHANGED_KIND,description:`${i.name} changed from ${UH(i)} to ${UH(a)}.`});return r}function zAe(e,t){let r=[],n=Cs(Object.values(e.getFields()),Object.values(t.getFields()));for(let i of n.added)(0,Xt.isRequiredInputField)(i)?r.push({type:Wr.REQUIRED_INPUT_FIELD_ADDED,description:`A required field ${i.name} on input type ${e.name} was added.`}):r.push({type:no.OPTIONAL_INPUT_FIELD_ADDED,description:`An optional field ${i.name} on input type ${e.name} was added.`});for(let i of n.removed)r.push({type:Wr.FIELD_REMOVED,description:`${e.name}.${i.name} was removed.`});for(let[i,a]of n.persisted)zh(i.type,a.type)||r.push({type:Wr.FIELD_CHANGED_KIND,description:`${e.name}.${i.name} changed type from ${String(i.type)} to ${String(a.type)}.`});return r}function HAe(e,t){let r=[],n=Cs(e.getTypes(),t.getTypes());for(let i of n.added)r.push({type:no.TYPE_ADDED_TO_UNION,description:`${i.name} was added to union type ${e.name}.`});for(let i of n.removed)r.push({type:Wr.TYPE_REMOVED_FROM_UNION,description:`${i.name} was removed from union type ${e.name}.`});return r}function WAe(e,t){let r=[],n=Cs(e.getValues(),t.getValues());for(let i of n.added)r.push({type:no.VALUE_ADDED_TO_ENUM,description:`${i.name} was added to enum type ${e.name}.`});for(let i of n.removed)r.push({type:Wr.VALUE_REMOVED_FROM_ENUM,description:`${i.name} was removed from enum type ${e.name}.`});return r}function CH(e,t){let r=[],n=Cs(e.getInterfaces(),t.getInterfaces());for(let i of n.added)r.push({type:no.IMPLEMENTED_INTERFACE_ADDED,description:`${i.name} added to interfaces implemented by ${e.name}.`});for(let i of n.removed)r.push({type:Wr.IMPLEMENTED_INTERFACE_REMOVED,description:`${e.name} no longer implements interface ${i.name}.`});return r}function BH(e,t){let r=[],n=Cs(Object.values(e.getFields()),Object.values(t.getFields()));for(let i of n.removed)r.push({type:Wr.FIELD_REMOVED,description:`${e.name}.${i.name} was removed.`});for(let[i,a]of n.persisted)r.push(...XAe(e,i,a)),Jh(i.type,a.type)||r.push({type:Wr.FIELD_CHANGED_KIND,description:`${e.name}.${i.name} changed type from ${String(i.type)} to ${String(a.type)}.`});return r}function XAe(e,t,r){let n=[],i=Cs(t.args,r.args);for(let a of i.removed)n.push({type:Wr.ARG_REMOVED,description:`${e.name}.${t.name} arg ${a.name} was removed.`});for(let[a,o]of i.persisted)if(!zh(a.type,o.type))n.push({type:Wr.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)n.push({type:no.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${a.name} defaultValue was removed.`});else{let l=kH(a.defaultValue,a.type),m=kH(o.defaultValue,o.type);l!==m&&n.push({type:no.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${a.name} has changed defaultValue from ${l} to ${m}.`})}for(let a of i.added)(0,Xt.isRequiredArgument)(a)?n.push({type:Wr.REQUIRED_ARG_ADDED,description:`A required arg ${a.name} on ${e.name}.${t.name} was added.`}):n.push({type:no.OPTIONAL_ARG_ADDED,description:`An optional arg ${a.name} on ${e.name}.${t.name} was added.`});return n}function Jh(e,t){return(0,Xt.isListType)(e)?(0,Xt.isListType)(t)&&Jh(e.ofType,t.ofType)||(0,Xt.isNonNullType)(t)&&Jh(e,t.ofType):(0,Xt.isNonNullType)(e)?(0,Xt.isNonNullType)(t)&&Jh(e.ofType,t.ofType):(0,Xt.isNamedType)(t)&&e.name===t.name||(0,Xt.isNonNullType)(t)&&Jh(e,t.ofType)}function zh(e,t){return(0,Xt.isListType)(e)?(0,Xt.isListType)(t)&&zh(e.ofType,t.ofType):(0,Xt.isNonNullType)(e)?(0,Xt.isNonNullType)(t)&&zh(e.ofType,t.ofType)||!(0,Xt.isNonNullType)(t)&&zh(e.ofType,t):(0,Xt.isNamedType)(t)&&e.name===t.name}function UH(e){if((0,Xt.isScalarType)(e))return"a Scalar type";if((0,Xt.isObjectType)(e))return"an Object type";if((0,Xt.isInterfaceType)(e))return"an Interface type";if((0,Xt.isUnionType)(e))return"a Union type";if((0,Xt.isEnumType)(e))return"an Enum type";if((0,Xt.isInputObjectType)(e))return"an Input type";(0,qH.invariant)(!1,"Unexpected type: "+(0,MAe.inspect)(e))}function kH(e,t){let r=(0,KAe.astFromValue)(e,t);return r!=null||(0,qH.invariant)(!1),(0,jAe.print)((0,$Ae.sortValueNode)(r))}function Cs(e,t){let r=[],n=[],i=[],a=(0,LH.keyMap)(e,({name:u})=>u),o=(0,LH.keyMap)(t,({name:u})=>u);for(let u of e){let l=o[u.name];l===void 0?n.push(u):i.push([u,l])}for(let u of t)a[u.name]===void 0&&r.push(u);return{added:r,persisted:i,removed:n}}});var $H=D(zt=>{"use strict";d();p();f();Object.defineProperty(zt,"__esModule",{value:!0});Object.defineProperty(zt,"BreakingChangeType",{enumerable:!0,get:function(){return Jg.BreakingChangeType}});Object.defineProperty(zt,"DangerousChangeType",{enumerable:!0,get:function(){return Jg.DangerousChangeType}});Object.defineProperty(zt,"TypeInfo",{enumerable:!0,get:function(){return VH.TypeInfo}});Object.defineProperty(zt,"assertValidName",{enumerable:!0,get:function(){return KH.assertValidName}});Object.defineProperty(zt,"astFromValue",{enumerable:!0,get:function(){return cRe.astFromValue}});Object.defineProperty(zt,"buildASTSchema",{enumerable:!0,get:function(){return jH.buildASTSchema}});Object.defineProperty(zt,"buildClientSchema",{enumerable:!0,get:function(){return nRe.buildClientSchema}});Object.defineProperty(zt,"buildSchema",{enumerable:!0,get:function(){return jH.buildSchema}});Object.defineProperty(zt,"coerceInputValue",{enumerable:!0,get:function(){return lRe.coerceInputValue}});Object.defineProperty(zt,"concatAST",{enumerable:!0,get:function(){return dRe.concatAST}});Object.defineProperty(zt,"doTypesOverlap",{enumerable:!0,get:function(){return GR.doTypesOverlap}});Object.defineProperty(zt,"extendSchema",{enumerable:!0,get:function(){return iRe.extendSchema}});Object.defineProperty(zt,"findBreakingChanges",{enumerable:!0,get:function(){return Jg.findBreakingChanges}});Object.defineProperty(zt,"findDangerousChanges",{enumerable:!0,get:function(){return Jg.findDangerousChanges}});Object.defineProperty(zt,"getIntrospectionQuery",{enumerable:!0,get:function(){return ZAe.getIntrospectionQuery}});Object.defineProperty(zt,"getOperationAST",{enumerable:!0,get:function(){return eRe.getOperationAST}});Object.defineProperty(zt,"getOperationRootType",{enumerable:!0,get:function(){return tRe.getOperationRootType}});Object.defineProperty(zt,"introspectionFromSchema",{enumerable:!0,get:function(){return rRe.introspectionFromSchema}});Object.defineProperty(zt,"isEqualType",{enumerable:!0,get:function(){return GR.isEqualType}});Object.defineProperty(zt,"isTypeSubTypeOf",{enumerable:!0,get:function(){return GR.isTypeSubTypeOf}});Object.defineProperty(zt,"isValidNameError",{enumerable:!0,get:function(){return KH.isValidNameError}});Object.defineProperty(zt,"lexicographicSortSchema",{enumerable:!0,get:function(){return aRe.lexicographicSortSchema}});Object.defineProperty(zt,"printIntrospectionSchema",{enumerable:!0,get:function(){return $R.printIntrospectionSchema}});Object.defineProperty(zt,"printSchema",{enumerable:!0,get:function(){return $R.printSchema}});Object.defineProperty(zt,"printType",{enumerable:!0,get:function(){return $R.printType}});Object.defineProperty(zt,"separateOperations",{enumerable:!0,get:function(){return fRe.separateOperations}});Object.defineProperty(zt,"stripIgnoredCharacters",{enumerable:!0,get:function(){return pRe.stripIgnoredCharacters}});Object.defineProperty(zt,"typeFromAST",{enumerable:!0,get:function(){return oRe.typeFromAST}});Object.defineProperty(zt,"valueFromAST",{enumerable:!0,get:function(){return sRe.valueFromAST}});Object.defineProperty(zt,"valueFromASTUntyped",{enumerable:!0,get:function(){return uRe.valueFromASTUntyped}});Object.defineProperty(zt,"visitWithTypeInfo",{enumerable:!0,get:function(){return VH.visitWithTypeInfo}});var ZAe=DR(),eRe=Zz(),tRe=eH(),rRe=tH(),nRe=nH(),jH=pH(),iRe=FR(),aRe=yH(),$R=_H(),oRe=Bo(),sRe=Uh(),uRe=Vb(),cRe=Dh(),VH=hg(),lRe=fA(),dRe=SH(),fRe=bH(),pRe=wH(),GR=Eh(),KH=FH(),Jg=MH()});var ve=D(j=>{"use strict";d();p();f();Object.defineProperty(j,"__esModule",{value:!0});Object.defineProperty(j,"BREAK",{enumerable:!0,get:function(){return nr.BREAK}});Object.defineProperty(j,"BreakingChangeType",{enumerable:!0,get:function(){return ir.BreakingChangeType}});Object.defineProperty(j,"DEFAULT_DEPRECATION_REASON",{enumerable:!0,get:function(){return ge.DEFAULT_DEPRECATION_REASON}});Object.defineProperty(j,"DangerousChangeType",{enumerable:!0,get:function(){return ir.DangerousChangeType}});Object.defineProperty(j,"DirectiveLocation",{enumerable:!0,get:function(){return nr.DirectiveLocation}});Object.defineProperty(j,"ExecutableDefinitionsRule",{enumerable:!0,get:function(){return _t.ExecutableDefinitionsRule}});Object.defineProperty(j,"FieldsOnCorrectTypeRule",{enumerable:!0,get:function(){return _t.FieldsOnCorrectTypeRule}});Object.defineProperty(j,"FragmentsOnCompositeTypesRule",{enumerable:!0,get:function(){return _t.FragmentsOnCompositeTypesRule}});Object.defineProperty(j,"GRAPHQL_MAX_INT",{enumerable:!0,get:function(){return ge.GRAPHQL_MAX_INT}});Object.defineProperty(j,"GRAPHQL_MIN_INT",{enumerable:!0,get:function(){return ge.GRAPHQL_MIN_INT}});Object.defineProperty(j,"GraphQLBoolean",{enumerable:!0,get:function(){return ge.GraphQLBoolean}});Object.defineProperty(j,"GraphQLDeprecatedDirective",{enumerable:!0,get:function(){return ge.GraphQLDeprecatedDirective}});Object.defineProperty(j,"GraphQLDirective",{enumerable:!0,get:function(){return ge.GraphQLDirective}});Object.defineProperty(j,"GraphQLEnumType",{enumerable:!0,get:function(){return ge.GraphQLEnumType}});Object.defineProperty(j,"GraphQLError",{enumerable:!0,get:function(){return Hh.GraphQLError}});Object.defineProperty(j,"GraphQLFloat",{enumerable:!0,get:function(){return ge.GraphQLFloat}});Object.defineProperty(j,"GraphQLID",{enumerable:!0,get:function(){return ge.GraphQLID}});Object.defineProperty(j,"GraphQLIncludeDirective",{enumerable:!0,get:function(){return ge.GraphQLIncludeDirective}});Object.defineProperty(j,"GraphQLInputObjectType",{enumerable:!0,get:function(){return ge.GraphQLInputObjectType}});Object.defineProperty(j,"GraphQLInt",{enumerable:!0,get:function(){return ge.GraphQLInt}});Object.defineProperty(j,"GraphQLInterfaceType",{enumerable:!0,get:function(){return ge.GraphQLInterfaceType}});Object.defineProperty(j,"GraphQLList",{enumerable:!0,get:function(){return ge.GraphQLList}});Object.defineProperty(j,"GraphQLNonNull",{enumerable:!0,get:function(){return ge.GraphQLNonNull}});Object.defineProperty(j,"GraphQLObjectType",{enumerable:!0,get:function(){return ge.GraphQLObjectType}});Object.defineProperty(j,"GraphQLOneOfDirective",{enumerable:!0,get:function(){return ge.GraphQLOneOfDirective}});Object.defineProperty(j,"GraphQLScalarType",{enumerable:!0,get:function(){return ge.GraphQLScalarType}});Object.defineProperty(j,"GraphQLSchema",{enumerable:!0,get:function(){return ge.GraphQLSchema}});Object.defineProperty(j,"GraphQLSkipDirective",{enumerable:!0,get:function(){return ge.GraphQLSkipDirective}});Object.defineProperty(j,"GraphQLSpecifiedByDirective",{enumerable:!0,get:function(){return ge.GraphQLSpecifiedByDirective}});Object.defineProperty(j,"GraphQLString",{enumerable:!0,get:function(){return ge.GraphQLString}});Object.defineProperty(j,"GraphQLUnionType",{enumerable:!0,get:function(){return ge.GraphQLUnionType}});Object.defineProperty(j,"Kind",{enumerable:!0,get:function(){return nr.Kind}});Object.defineProperty(j,"KnownArgumentNamesRule",{enumerable:!0,get:function(){return _t.KnownArgumentNamesRule}});Object.defineProperty(j,"KnownDirectivesRule",{enumerable:!0,get:function(){return _t.KnownDirectivesRule}});Object.defineProperty(j,"KnownFragmentNamesRule",{enumerable:!0,get:function(){return _t.KnownFragmentNamesRule}});Object.defineProperty(j,"KnownTypeNamesRule",{enumerable:!0,get:function(){return _t.KnownTypeNamesRule}});Object.defineProperty(j,"Lexer",{enumerable:!0,get:function(){return nr.Lexer}});Object.defineProperty(j,"Location",{enumerable:!0,get:function(){return nr.Location}});Object.defineProperty(j,"LoneAnonymousOperationRule",{enumerable:!0,get:function(){return _t.LoneAnonymousOperationRule}});Object.defineProperty(j,"LoneSchemaDefinitionRule",{enumerable:!0,get:function(){return _t.LoneSchemaDefinitionRule}});Object.defineProperty(j,"MaxIntrospectionDepthRule",{enumerable:!0,get:function(){return _t.MaxIntrospectionDepthRule}});Object.defineProperty(j,"NoDeprecatedCustomRule",{enumerable:!0,get:function(){return _t.NoDeprecatedCustomRule}});Object.defineProperty(j,"NoFragmentCyclesRule",{enumerable:!0,get:function(){return _t.NoFragmentCyclesRule}});Object.defineProperty(j,"NoSchemaIntrospectionCustomRule",{enumerable:!0,get:function(){return _t.NoSchemaIntrospectionCustomRule}});Object.defineProperty(j,"NoUndefinedVariablesRule",{enumerable:!0,get:function(){return _t.NoUndefinedVariablesRule}});Object.defineProperty(j,"NoUnusedFragmentsRule",{enumerable:!0,get:function(){return _t.NoUnusedFragmentsRule}});Object.defineProperty(j,"NoUnusedVariablesRule",{enumerable:!0,get:function(){return _t.NoUnusedVariablesRule}});Object.defineProperty(j,"OperationTypeNode",{enumerable:!0,get:function(){return nr.OperationTypeNode}});Object.defineProperty(j,"OverlappingFieldsCanBeMergedRule",{enumerable:!0,get:function(){return _t.OverlappingFieldsCanBeMergedRule}});Object.defineProperty(j,"PossibleFragmentSpreadsRule",{enumerable:!0,get:function(){return _t.PossibleFragmentSpreadsRule}});Object.defineProperty(j,"PossibleTypeExtensionsRule",{enumerable:!0,get:function(){return _t.PossibleTypeExtensionsRule}});Object.defineProperty(j,"ProvidedRequiredArgumentsRule",{enumerable:!0,get:function(){return _t.ProvidedRequiredArgumentsRule}});Object.defineProperty(j,"ScalarLeafsRule",{enumerable:!0,get:function(){return _t.ScalarLeafsRule}});Object.defineProperty(j,"SchemaMetaFieldDef",{enumerable:!0,get:function(){return ge.SchemaMetaFieldDef}});Object.defineProperty(j,"SingleFieldSubscriptionsRule",{enumerable:!0,get:function(){return _t.SingleFieldSubscriptionsRule}});Object.defineProperty(j,"Source",{enumerable:!0,get:function(){return nr.Source}});Object.defineProperty(j,"Token",{enumerable:!0,get:function(){return nr.Token}});Object.defineProperty(j,"TokenKind",{enumerable:!0,get:function(){return nr.TokenKind}});Object.defineProperty(j,"TypeInfo",{enumerable:!0,get:function(){return ir.TypeInfo}});Object.defineProperty(j,"TypeKind",{enumerable:!0,get:function(){return ge.TypeKind}});Object.defineProperty(j,"TypeMetaFieldDef",{enumerable:!0,get:function(){return ge.TypeMetaFieldDef}});Object.defineProperty(j,"TypeNameMetaFieldDef",{enumerable:!0,get:function(){return ge.TypeNameMetaFieldDef}});Object.defineProperty(j,"UniqueArgumentDefinitionNamesRule",{enumerable:!0,get:function(){return _t.UniqueArgumentDefinitionNamesRule}});Object.defineProperty(j,"UniqueArgumentNamesRule",{enumerable:!0,get:function(){return _t.UniqueArgumentNamesRule}});Object.defineProperty(j,"UniqueDirectiveNamesRule",{enumerable:!0,get:function(){return _t.UniqueDirectiveNamesRule}});Object.defineProperty(j,"UniqueDirectivesPerLocationRule",{enumerable:!0,get:function(){return _t.UniqueDirectivesPerLocationRule}});Object.defineProperty(j,"UniqueEnumValueNamesRule",{enumerable:!0,get:function(){return _t.UniqueEnumValueNamesRule}});Object.defineProperty(j,"UniqueFieldDefinitionNamesRule",{enumerable:!0,get:function(){return _t.UniqueFieldDefinitionNamesRule}});Object.defineProperty(j,"UniqueFragmentNamesRule",{enumerable:!0,get:function(){return _t.UniqueFragmentNamesRule}});Object.defineProperty(j,"UniqueInputFieldNamesRule",{enumerable:!0,get:function(){return _t.UniqueInputFieldNamesRule}});Object.defineProperty(j,"UniqueOperationNamesRule",{enumerable:!0,get:function(){return _t.UniqueOperationNamesRule}});Object.defineProperty(j,"UniqueOperationTypesRule",{enumerable:!0,get:function(){return _t.UniqueOperationTypesRule}});Object.defineProperty(j,"UniqueTypeNamesRule",{enumerable:!0,get:function(){return _t.UniqueTypeNamesRule}});Object.defineProperty(j,"UniqueVariableNamesRule",{enumerable:!0,get:function(){return _t.UniqueVariableNamesRule}});Object.defineProperty(j,"ValidationContext",{enumerable:!0,get:function(){return _t.ValidationContext}});Object.defineProperty(j,"ValuesOfCorrectTypeRule",{enumerable:!0,get:function(){return _t.ValuesOfCorrectTypeRule}});Object.defineProperty(j,"VariablesAreInputTypesRule",{enumerable:!0,get:function(){return _t.VariablesAreInputTypesRule}});Object.defineProperty(j,"VariablesInAllowedPositionRule",{enumerable:!0,get:function(){return _t.VariablesInAllowedPositionRule}});Object.defineProperty(j,"__Directive",{enumerable:!0,get:function(){return ge.__Directive}});Object.defineProperty(j,"__DirectiveLocation",{enumerable:!0,get:function(){return ge.__DirectiveLocation}});Object.defineProperty(j,"__EnumValue",{enumerable:!0,get:function(){return ge.__EnumValue}});Object.defineProperty(j,"__Field",{enumerable:!0,get:function(){return ge.__Field}});Object.defineProperty(j,"__InputValue",{enumerable:!0,get:function(){return ge.__InputValue}});Object.defineProperty(j,"__Schema",{enumerable:!0,get:function(){return ge.__Schema}});Object.defineProperty(j,"__Type",{enumerable:!0,get:function(){return ge.__Type}});Object.defineProperty(j,"__TypeKind",{enumerable:!0,get:function(){return ge.__TypeKind}});Object.defineProperty(j,"assertAbstractType",{enumerable:!0,get:function(){return ge.assertAbstractType}});Object.defineProperty(j,"assertCompositeType",{enumerable:!0,get:function(){return ge.assertCompositeType}});Object.defineProperty(j,"assertDirective",{enumerable:!0,get:function(){return ge.assertDirective}});Object.defineProperty(j,"assertEnumType",{enumerable:!0,get:function(){return ge.assertEnumType}});Object.defineProperty(j,"assertEnumValueName",{enumerable:!0,get:function(){return ge.assertEnumValueName}});Object.defineProperty(j,"assertInputObjectType",{enumerable:!0,get:function(){return ge.assertInputObjectType}});Object.defineProperty(j,"assertInputType",{enumerable:!0,get:function(){return ge.assertInputType}});Object.defineProperty(j,"assertInterfaceType",{enumerable:!0,get:function(){return ge.assertInterfaceType}});Object.defineProperty(j,"assertLeafType",{enumerable:!0,get:function(){return ge.assertLeafType}});Object.defineProperty(j,"assertListType",{enumerable:!0,get:function(){return ge.assertListType}});Object.defineProperty(j,"assertName",{enumerable:!0,get:function(){return ge.assertName}});Object.defineProperty(j,"assertNamedType",{enumerable:!0,get:function(){return ge.assertNamedType}});Object.defineProperty(j,"assertNonNullType",{enumerable:!0,get:function(){return ge.assertNonNullType}});Object.defineProperty(j,"assertNullableType",{enumerable:!0,get:function(){return ge.assertNullableType}});Object.defineProperty(j,"assertObjectType",{enumerable:!0,get:function(){return ge.assertObjectType}});Object.defineProperty(j,"assertOutputType",{enumerable:!0,get:function(){return ge.assertOutputType}});Object.defineProperty(j,"assertScalarType",{enumerable:!0,get:function(){return ge.assertScalarType}});Object.defineProperty(j,"assertSchema",{enumerable:!0,get:function(){return ge.assertSchema}});Object.defineProperty(j,"assertType",{enumerable:!0,get:function(){return ge.assertType}});Object.defineProperty(j,"assertUnionType",{enumerable:!0,get:function(){return ge.assertUnionType}});Object.defineProperty(j,"assertValidName",{enumerable:!0,get:function(){return ir.assertValidName}});Object.defineProperty(j,"assertValidSchema",{enumerable:!0,get:function(){return ge.assertValidSchema}});Object.defineProperty(j,"assertWrappingType",{enumerable:!0,get:function(){return ge.assertWrappingType}});Object.defineProperty(j,"astFromValue",{enumerable:!0,get:function(){return ir.astFromValue}});Object.defineProperty(j,"buildASTSchema",{enumerable:!0,get:function(){return ir.buildASTSchema}});Object.defineProperty(j,"buildClientSchema",{enumerable:!0,get:function(){return ir.buildClientSchema}});Object.defineProperty(j,"buildSchema",{enumerable:!0,get:function(){return ir.buildSchema}});Object.defineProperty(j,"coerceInputValue",{enumerable:!0,get:function(){return ir.coerceInputValue}});Object.defineProperty(j,"concatAST",{enumerable:!0,get:function(){return ir.concatAST}});Object.defineProperty(j,"createSourceEventStream",{enumerable:!0,get:function(){return jo.createSourceEventStream}});Object.defineProperty(j,"defaultFieldResolver",{enumerable:!0,get:function(){return jo.defaultFieldResolver}});Object.defineProperty(j,"defaultTypeResolver",{enumerable:!0,get:function(){return jo.defaultTypeResolver}});Object.defineProperty(j,"doTypesOverlap",{enumerable:!0,get:function(){return ir.doTypesOverlap}});Object.defineProperty(j,"execute",{enumerable:!0,get:function(){return jo.execute}});Object.defineProperty(j,"executeSync",{enumerable:!0,get:function(){return jo.executeSync}});Object.defineProperty(j,"extendSchema",{enumerable:!0,get:function(){return ir.extendSchema}});Object.defineProperty(j,"findBreakingChanges",{enumerable:!0,get:function(){return ir.findBreakingChanges}});Object.defineProperty(j,"findDangerousChanges",{enumerable:!0,get:function(){return ir.findDangerousChanges}});Object.defineProperty(j,"formatError",{enumerable:!0,get:function(){return Hh.formatError}});Object.defineProperty(j,"getArgumentValues",{enumerable:!0,get:function(){return jo.getArgumentValues}});Object.defineProperty(j,"getDirectiveValues",{enumerable:!0,get:function(){return jo.getDirectiveValues}});Object.defineProperty(j,"getEnterLeaveForKind",{enumerable:!0,get:function(){return nr.getEnterLeaveForKind}});Object.defineProperty(j,"getIntrospectionQuery",{enumerable:!0,get:function(){return ir.getIntrospectionQuery}});Object.defineProperty(j,"getLocation",{enumerable:!0,get:function(){return nr.getLocation}});Object.defineProperty(j,"getNamedType",{enumerable:!0,get:function(){return ge.getNamedType}});Object.defineProperty(j,"getNullableType",{enumerable:!0,get:function(){return ge.getNullableType}});Object.defineProperty(j,"getOperationAST",{enumerable:!0,get:function(){return ir.getOperationAST}});Object.defineProperty(j,"getOperationRootType",{enumerable:!0,get:function(){return ir.getOperationRootType}});Object.defineProperty(j,"getVariableValues",{enumerable:!0,get:function(){return jo.getVariableValues}});Object.defineProperty(j,"getVisitFn",{enumerable:!0,get:function(){return nr.getVisitFn}});Object.defineProperty(j,"graphql",{enumerable:!0,get:function(){return QH.graphql}});Object.defineProperty(j,"graphqlSync",{enumerable:!0,get:function(){return QH.graphqlSync}});Object.defineProperty(j,"introspectionFromSchema",{enumerable:!0,get:function(){return ir.introspectionFromSchema}});Object.defineProperty(j,"introspectionTypes",{enumerable:!0,get:function(){return ge.introspectionTypes}});Object.defineProperty(j,"isAbstractType",{enumerable:!0,get:function(){return ge.isAbstractType}});Object.defineProperty(j,"isCompositeType",{enumerable:!0,get:function(){return ge.isCompositeType}});Object.defineProperty(j,"isConstValueNode",{enumerable:!0,get:function(){return nr.isConstValueNode}});Object.defineProperty(j,"isDefinitionNode",{enumerable:!0,get:function(){return nr.isDefinitionNode}});Object.defineProperty(j,"isDirective",{enumerable:!0,get:function(){return ge.isDirective}});Object.defineProperty(j,"isEnumType",{enumerable:!0,get:function(){return ge.isEnumType}});Object.defineProperty(j,"isEqualType",{enumerable:!0,get:function(){return ir.isEqualType}});Object.defineProperty(j,"isExecutableDefinitionNode",{enumerable:!0,get:function(){return nr.isExecutableDefinitionNode}});Object.defineProperty(j,"isInputObjectType",{enumerable:!0,get:function(){return ge.isInputObjectType}});Object.defineProperty(j,"isInputType",{enumerable:!0,get:function(){return ge.isInputType}});Object.defineProperty(j,"isInterfaceType",{enumerable:!0,get:function(){return ge.isInterfaceType}});Object.defineProperty(j,"isIntrospectionType",{enumerable:!0,get:function(){return ge.isIntrospectionType}});Object.defineProperty(j,"isLeafType",{enumerable:!0,get:function(){return ge.isLeafType}});Object.defineProperty(j,"isListType",{enumerable:!0,get:function(){return ge.isListType}});Object.defineProperty(j,"isNamedType",{enumerable:!0,get:function(){return ge.isNamedType}});Object.defineProperty(j,"isNonNullType",{enumerable:!0,get:function(){return ge.isNonNullType}});Object.defineProperty(j,"isNullableType",{enumerable:!0,get:function(){return ge.isNullableType}});Object.defineProperty(j,"isObjectType",{enumerable:!0,get:function(){return ge.isObjectType}});Object.defineProperty(j,"isOutputType",{enumerable:!0,get:function(){return ge.isOutputType}});Object.defineProperty(j,"isRequiredArgument",{enumerable:!0,get:function(){return ge.isRequiredArgument}});Object.defineProperty(j,"isRequiredInputField",{enumerable:!0,get:function(){return ge.isRequiredInputField}});Object.defineProperty(j,"isScalarType",{enumerable:!0,get:function(){return ge.isScalarType}});Object.defineProperty(j,"isSchema",{enumerable:!0,get:function(){return ge.isSchema}});Object.defineProperty(j,"isSelectionNode",{enumerable:!0,get:function(){return nr.isSelectionNode}});Object.defineProperty(j,"isSpecifiedDirective",{enumerable:!0,get:function(){return ge.isSpecifiedDirective}});Object.defineProperty(j,"isSpecifiedScalarType",{enumerable:!0,get:function(){return ge.isSpecifiedScalarType}});Object.defineProperty(j,"isType",{enumerable:!0,get:function(){return ge.isType}});Object.defineProperty(j,"isTypeDefinitionNode",{enumerable:!0,get:function(){return nr.isTypeDefinitionNode}});Object.defineProperty(j,"isTypeExtensionNode",{enumerable:!0,get:function(){return nr.isTypeExtensionNode}});Object.defineProperty(j,"isTypeNode",{enumerable:!0,get:function(){return nr.isTypeNode}});Object.defineProperty(j,"isTypeSubTypeOf",{enumerable:!0,get:function(){return ir.isTypeSubTypeOf}});Object.defineProperty(j,"isTypeSystemDefinitionNode",{enumerable:!0,get:function(){return nr.isTypeSystemDefinitionNode}});Object.defineProperty(j,"isTypeSystemExtensionNode",{enumerable:!0,get:function(){return nr.isTypeSystemExtensionNode}});Object.defineProperty(j,"isUnionType",{enumerable:!0,get:function(){return ge.isUnionType}});Object.defineProperty(j,"isValidNameError",{enumerable:!0,get:function(){return ir.isValidNameError}});Object.defineProperty(j,"isValueNode",{enumerable:!0,get:function(){return nr.isValueNode}});Object.defineProperty(j,"isWrappingType",{enumerable:!0,get:function(){return ge.isWrappingType}});Object.defineProperty(j,"lexicographicSortSchema",{enumerable:!0,get:function(){return ir.lexicographicSortSchema}});Object.defineProperty(j,"locatedError",{enumerable:!0,get:function(){return Hh.locatedError}});Object.defineProperty(j,"parse",{enumerable:!0,get:function(){return nr.parse}});Object.defineProperty(j,"parseConstValue",{enumerable:!0,get:function(){return nr.parseConstValue}});Object.defineProperty(j,"parseType",{enumerable:!0,get:function(){return nr.parseType}});Object.defineProperty(j,"parseValue",{enumerable:!0,get:function(){return nr.parseValue}});Object.defineProperty(j,"print",{enumerable:!0,get:function(){return nr.print}});Object.defineProperty(j,"printError",{enumerable:!0,get:function(){return Hh.printError}});Object.defineProperty(j,"printIntrospectionSchema",{enumerable:!0,get:function(){return ir.printIntrospectionSchema}});Object.defineProperty(j,"printLocation",{enumerable:!0,get:function(){return nr.printLocation}});Object.defineProperty(j,"printSchema",{enumerable:!0,get:function(){return ir.printSchema}});Object.defineProperty(j,"printSourceLocation",{enumerable:!0,get:function(){return nr.printSourceLocation}});Object.defineProperty(j,"printType",{enumerable:!0,get:function(){return ir.printType}});Object.defineProperty(j,"recommendedRules",{enumerable:!0,get:function(){return _t.recommendedRules}});Object.defineProperty(j,"resolveObjMapThunk",{enumerable:!0,get:function(){return ge.resolveObjMapThunk}});Object.defineProperty(j,"resolveReadonlyArrayThunk",{enumerable:!0,get:function(){return ge.resolveReadonlyArrayThunk}});Object.defineProperty(j,"responsePathAsArray",{enumerable:!0,get:function(){return jo.responsePathAsArray}});Object.defineProperty(j,"separateOperations",{enumerable:!0,get:function(){return ir.separateOperations}});Object.defineProperty(j,"specifiedDirectives",{enumerable:!0,get:function(){return ge.specifiedDirectives}});Object.defineProperty(j,"specifiedRules",{enumerable:!0,get:function(){return _t.specifiedRules}});Object.defineProperty(j,"specifiedScalarTypes",{enumerable:!0,get:function(){return ge.specifiedScalarTypes}});Object.defineProperty(j,"stripIgnoredCharacters",{enumerable:!0,get:function(){return ir.stripIgnoredCharacters}});Object.defineProperty(j,"subscribe",{enumerable:!0,get:function(){return jo.subscribe}});Object.defineProperty(j,"syntaxError",{enumerable:!0,get:function(){return Hh.syntaxError}});Object.defineProperty(j,"typeFromAST",{enumerable:!0,get:function(){return ir.typeFromAST}});Object.defineProperty(j,"validate",{enumerable:!0,get:function(){return _t.validate}});Object.defineProperty(j,"validateSchema",{enumerable:!0,get:function(){return ge.validateSchema}});Object.defineProperty(j,"valueFromAST",{enumerable:!0,get:function(){return ir.valueFromAST}});Object.defineProperty(j,"valueFromASTUntyped",{enumerable:!0,get:function(){return ir.valueFromASTUntyped}});Object.defineProperty(j,"version",{enumerable:!0,get:function(){return GH.version}});Object.defineProperty(j,"versionInfo",{enumerable:!0,get:function(){return GH.versionInfo}});Object.defineProperty(j,"visit",{enumerable:!0,get:function(){return nr.visit}});Object.defineProperty(j,"visitInParallel",{enumerable:!0,get:function(){return nr.visitInParallel}});Object.defineProperty(j,"visitWithTypeInfo",{enumerable:!0,get:function(){return ir.visitWithTypeInfo}});var GH=MQ(),QH=Cz(),ge=kz(),nr=xz(),jo=Yz(),_t=Wz(),Hh=Xz(),ir=$H()});var xr=D(w=>{"use strict";d();p();f();Object.defineProperty(w,"__esModule",{value:!0});w.FIELD=w.EXTENSIONS=w.EXTENDS=w.EXTERNAL=w.EXECUTION=w.ENUM_VALUE_UPPER=w.ENUM_VALUE=w.ENUM_UPPER=w.ENUM=w.ENTITY_UNION=w.ENTITIES_FIELD=w.ENTITIES=w.EDFS_REDIS_SUBSCRIBE=w.EDFS_REDIS_PUBLISH=w.EDFS_NATS_STREAM_CONFIGURATION=w.EDFS_PUBLISH_RESULT=w.EDFS_NATS_SUBSCRIBE=w.EDFS_NATS_REQUEST=w.EDFS_NATS_PUBLISH=w.EDFS_KAFKA_SUBSCRIBE=w.EDFS_KAFKA_PUBLISH=w.DIRECTIVE_DEFINITION=w.DESCRIPTION_OVERRIDE=w.DEPRECATED_DEFAULT_ARGUMENT_VALUE=w.DEPRECATED=w.DEFAULT_SUBSCRIPTION=w.DEFAULT_QUERY=w.DEFAULT_MUTATION=w.DEFAULT_EDFS_PROVIDER_ID=w.DEFAULT=w.COST=w.CONTEXT=w.CONNECT_FIELD_RESOLVER=w.CONSUMER_NAME=w.CONSUMER_INACTIVE_THRESHOLD=w.CONFIGURE_CHILD_DESCRIPTIONS=w.CONFIGURE_DESCRIPTION=w.CONDITION=w.COMPOSE_DIRECTIVE=w.CHANNELS=w.CHANNEL=w.BOOLEAN_SCALAR=w.BOOLEAN=w.ARGUMENT_DEFINITION_UPPER=w.AUTHENTICATED=w.ARGUMENT=w.ANY_SCALAR=w.AND_UPPER=w.ASSUMED_SIZE=w.AS=void 0;w.NON_NULLABLE_EDFS_PUBLISH_EVENT_RESULT=w.NAME=w.NOT_APPLICABLE=w.PROVIDER_TYPE_REDIS=w.PROVIDER_TYPE_NATS=w.PROVIDER_TYPE_KAFKA=w.PROPAGATE=w.MUTATION_UPPER=w.MUTATION=w.NUMBER=w.LITERAL_PERIOD=w.LITERAL_NEW_LINE=w.LITERAL_SPACE=w.LITERAL_AT=w.LIST=w.LINK_PURPOSE=w.LINK_IMPORT=w.LIST_SIZE=w.LINK=w.LEVELS=w.LEFT_PARENTHESIS=w.KEY=w.INTERFACE_OBJECT=w.INTERFACE_UPPER=w.INTERFACE=w.INT_SCALAR=w.INPUT_VALUE=w.INPUT_OBJECT_UPPER=w.INPUT_OBJECT=w.INPUT_FIELD_DEFINITION_UPPER=w.INPUT_FIELD=w.INPUT=w.INLINE_FRAGMENT_UPPER=w.INLINE_FRAGMENT=w.INACCESSIBLE=w.IN_UPPER=w.IMPORT=w.ID_SCALAR=w.HYPHEN_JOIN=w.FROM=w.FRAGMENT_SPREAD_UPPER=w.FRAGMENT_DEFINITION_UPPER=w.FOR=w.FLOAT_SCALAR=w.FIRST_ORDINAL=w.FIELD_DEFINITION_UPPER=w.FIELDS=w.FIELD_SET_SCALAR=w.FIELD_UPPER=w.FIELD_PATH=void 0;w.SUBSCRIPTION_FIELD_CONDITION=w.SUBSCRIPTION=w.SUBJECTS=w.SUBJECT=w.STRING_SCALAR=w.STRING=w.STREAM_NAME=w.STREAM_CONFIGURATION=w.SPECIFIED_BY=w.SLICING_ARGUMENTS=w.SIZED_FIELDS=w.SHAREABLE=w.SERVICE_FIELD=w.SERVICE_OBJECT=w.SEMANTIC_NON_NULL=w.SELECTION_REPRESENTATION=w.SECURITY=w.SCOPE_SCALAR=w.SCOPES=w.SCHEMA_UPPER=w.SCHEMA=w.SCALAR_UPPER=w.SCALAR=w.RESOLVABLE=w.REQUIRES_SCOPES=w.REQUIRES=w.REQUIRE_ONE_SLICING_ARGUMENT=w.REQUIRE_FETCH_REASONS=w.REQUEST=w.REASON=w.QUOTATION_JOIN=w.QUERY_UPPER=w.QUERY=w.PUBLISH=w.PROVIDES=w.PROVIDER_ID=w.PARENT_EXTENSION_DATA_MAP=w.PARENT_DEFINITION_DATA_MAP=w.PARENT_DEFINITION_DATA=w.OVERRIDE=w.OR_UPPER=w.OBJECT_UPPER=w.OBJECT=w.OPERATION_TO_DEFAULT=w.ONE_OF=w.NULL=w.NOT_UPPER=w.NON_NULLABLE_STRING=w.NON_NULLABLE_INT=w.NON_NULLABLE_BOOLEAN=void 0;w.NON_REPEATABLE_FEDERATED_DIRECTIVES=w.INTERFACE_NODE_KINDS=w.OUTPUT_NODE_KINDS=w.INPUT_NODE_KINDS=w.IGNORED_FIELDS=w.INHERITABLE_DIRECTIVE_NAMES=w.PERSISTED_CLIENT_DIRECTIVES=w.AUTHORIZATION_DIRECTIVES=w.ROOT_TYPE_NAMES=w.EXECUTABLE_DIRECTIVE_LOCATIONS=w.WEIGHT=w.VARIABLE_DEFINITION_UPPER=w.VALUES=w.URL_LOWER=w.UNION_UPPER=w.UNION=w.TYPENAME=w.TOPICS=w.TOPIC=w.TAG=w.SUCCESS=w.SUBSCRIPTION_UPPER=w.SUBSCRIBE=w.SUBSCRIPTION_FILTER_VALUE=w.SUBSCRIPTION_FILTER_CONDITION=w.SUBSCRIPTION_FILTER=void 0;var Vo=ve();w.AS="as";w.ASSUMED_SIZE="assumedSize";w.AND_UPPER="AND";w.ANY_SCALAR="_Any";w.ARGUMENT="argument";w.AUTHENTICATED="authenticated";w.ARGUMENT_DEFINITION_UPPER="ARGUMENT_DEFINITION";w.BOOLEAN="boolean";w.BOOLEAN_SCALAR="Boolean";w.CHANNEL="channel";w.CHANNELS="channels";w.COMPOSE_DIRECTIVE="composeDirective";w.CONDITION="condition";w.CONFIGURE_DESCRIPTION="openfed__configureDescription";w.CONFIGURE_CHILD_DESCRIPTIONS="openfed__configureChildDescriptions";w.CONSUMER_INACTIVE_THRESHOLD="consumerInactiveThreshold";w.CONSUMER_NAME="consumerName";w.CONNECT_FIELD_RESOLVER="connect__fieldResolver";w.CONTEXT="context";w.COST="cost";w.DEFAULT="default";w.DEFAULT_EDFS_PROVIDER_ID="default";w.DEFAULT_MUTATION="Mutation";w.DEFAULT_QUERY="Query";w.DEFAULT_SUBSCRIPTION="Subscription";w.DEPRECATED="deprecated";w.DEPRECATED_DEFAULT_ARGUMENT_VALUE="No longer supported";w.DESCRIPTION_OVERRIDE="descriptionOverride";w.DIRECTIVE_DEFINITION="directive definition";w.EDFS_KAFKA_PUBLISH="edfs__kafkaPublish";w.EDFS_KAFKA_SUBSCRIBE="edfs__kafkaSubscribe";w.EDFS_NATS_PUBLISH="edfs__natsPublish";w.EDFS_NATS_REQUEST="edfs__natsRequest";w.EDFS_NATS_SUBSCRIBE="edfs__natsSubscribe";w.EDFS_PUBLISH_RESULT="edfs__PublishResult";w.EDFS_NATS_STREAM_CONFIGURATION="edfs__NatsStreamConfiguration";w.EDFS_REDIS_PUBLISH="edfs__redisPublish";w.EDFS_REDIS_SUBSCRIBE="edfs__redisSubscribe";w.ENTITIES="entities";w.ENTITIES_FIELD="_entities";w.ENTITY_UNION="_Entity";w.ENUM="Enum";w.ENUM_UPPER="ENUM";w.ENUM_VALUE="Enum Value";w.ENUM_VALUE_UPPER="ENUM_VALUE";w.EXECUTION="EXECUTION";w.EXTERNAL="external";w.EXTENDS="extends";w.EXTENSIONS="extensions";w.FIELD="field";w.FIELD_PATH="fieldPath";w.FIELD_UPPER="FIELD";w.FIELD_SET_SCALAR="openfed__FieldSet";w.FIELDS="fields";w.FIELD_DEFINITION_UPPER="FIELD_DEFINITION";w.FIRST_ORDINAL="1st";w.FLOAT_SCALAR="Float";w.FOR="for";w.FRAGMENT_DEFINITION_UPPER="FRAGMENT_DEFINITION";w.FRAGMENT_SPREAD_UPPER="FRAGMENT_SPREAD";w.FROM="from";w.HYPHEN_JOIN=` + -`;w.ID_SCALAR="ID";w.IMPORT="import";w.IN_UPPER="IN";w.INACCESSIBLE="inaccessible";w.INLINE_FRAGMENT="inlineFragment";w.INLINE_FRAGMENT_UPPER="INLINE_FRAGMENT";w.INPUT="Input";w.INPUT_FIELD="Input field";w.INPUT_FIELD_DEFINITION_UPPER="INPUT_FIELD_DEFINITION";w.INPUT_OBJECT="Input Object";w.INPUT_OBJECT_UPPER="INPUT_OBJECT";w.INPUT_VALUE="Input Value";w.INT_SCALAR="Int";w.INTERFACE="Interface";w.INTERFACE_UPPER="INTERFACE";w.INTERFACE_OBJECT="interfaceObject";w.KEY="key";w.LEFT_PARENTHESIS="(";w.LEVELS="levels";w.LINK="link";w.LIST_SIZE="listSize";w.LINK_IMPORT="link__Import";w.LINK_PURPOSE="link__Purpose";w.LIST="list";w.LITERAL_AT="@";w.LITERAL_SPACE=" ";w.LITERAL_NEW_LINE=` +`;w.LITERAL_PERIOD=".";w.NUMBER="number";w.MUTATION="Mutation";w.MUTATION_UPPER="MUTATION";w.PROPAGATE="propagate";w.PROVIDER_TYPE_KAFKA="kafka";w.PROVIDER_TYPE_NATS="nats";w.PROVIDER_TYPE_REDIS="redis";w.NOT_APPLICABLE="N/A";w.NAME="name";w.NON_NULLABLE_EDFS_PUBLISH_EVENT_RESULT="edfs__PublishResult!";w.NON_NULLABLE_BOOLEAN="Boolean!";w.NON_NULLABLE_INT="Int!";w.NON_NULLABLE_STRING="String!";w.NOT_UPPER="NOT";w.NULL="Null";w.ONE_OF="oneOf";w.OPERATION_TO_DEFAULT="operationTypeNodeToDefaultType";w.OBJECT="Object";w.OBJECT_UPPER="OBJECT";w.OR_UPPER="OR";w.OVERRIDE="override";w.PARENT_DEFINITION_DATA="parentDefinitionDataByTypeName";w.PARENT_DEFINITION_DATA_MAP="parentDefinitionDataByParentTypeName";w.PARENT_EXTENSION_DATA_MAP="parentExtensionDataByParentTypeName";w.PROVIDER_ID="providerId";w.PROVIDES="provides";w.PUBLISH="publish";w.QUERY="Query";w.QUERY_UPPER="QUERY";w.QUOTATION_JOIN='", "';w.REASON="reason";w.REQUEST="request";w.REQUIRE_FETCH_REASONS="openfed__requireFetchReasons";w.REQUIRE_ONE_SLICING_ARGUMENT="requireOneSlicingArgument";w.REQUIRES="requires";w.REQUIRES_SCOPES="requiresScopes";w.RESOLVABLE="resolvable";w.SCALAR="Scalar";w.SCALAR_UPPER="SCALAR";w.SCHEMA="schema";w.SCHEMA_UPPER="SCHEMA";w.SCOPES="scopes";w.SCOPE_SCALAR="openfed__Scope";w.SECURITY="SECURITY";w.SELECTION_REPRESENTATION=" { ... }";w.SEMANTIC_NON_NULL="semanticNonNull";w.SERVICE_OBJECT="_Service";w.SERVICE_FIELD="_service";w.SHAREABLE="shareable";w.SIZED_FIELDS="sizedFields";w.SLICING_ARGUMENTS="slicingArguments";w.SPECIFIED_BY="specifiedBy";w.STREAM_CONFIGURATION="streamConfiguration";w.STREAM_NAME="streamName";w.STRING="string";w.STRING_SCALAR="String";w.SUBJECT="subject";w.SUBJECTS="subjects";w.SUBSCRIPTION="Subscription";w.SUBSCRIPTION_FIELD_CONDITION="openfed__SubscriptionFieldCondition";w.SUBSCRIPTION_FILTER="openfed__subscriptionFilter";w.SUBSCRIPTION_FILTER_CONDITION="openfed__SubscriptionFilterCondition";w.SUBSCRIPTION_FILTER_VALUE="openfed__SubscriptionFilterValue";w.SUBSCRIBE="subscribe";w.SUBSCRIPTION_UPPER="SUBSCRIPTION";w.SUCCESS="success";w.TAG="tag";w.TOPIC="topic";w.TOPICS="topics";w.TYPENAME="__typename";w.UNION="Union";w.UNION_UPPER="UNION";w.URL_LOWER="url";w.VALUES="values";w.VARIABLE_DEFINITION_UPPER="VARIABLE_DEFINITION";w.WEIGHT="weight";w.EXECUTABLE_DIRECTIVE_LOCATIONS=new Set([w.FIELD_UPPER,w.FRAGMENT_DEFINITION_UPPER,w.FRAGMENT_SPREAD_UPPER,w.INLINE_FRAGMENT_UPPER,w.MUTATION_UPPER,w.QUERY_UPPER,w.SUBSCRIPTION_UPPER]);w.ROOT_TYPE_NAMES=new Set([w.MUTATION,w.QUERY,w.SUBSCRIPTION]);w.AUTHORIZATION_DIRECTIVES=new Set([w.AUTHENTICATED,w.REQUIRES_SCOPES]);w.PERSISTED_CLIENT_DIRECTIVES=new Set([w.DEPRECATED,w.ONE_OF,w.SEMANTIC_NON_NULL]);w.INHERITABLE_DIRECTIVE_NAMES=new Set([w.EXTERNAL,w.REQUIRE_FETCH_REASONS,w.SHAREABLE]);w.IGNORED_FIELDS=new Set([w.ENTITIES_FIELD,w.SERVICE_FIELD]);w.INPUT_NODE_KINDS=new Set([Vo.Kind.ENUM_TYPE_DEFINITION,Vo.Kind.INPUT_OBJECT_TYPE_DEFINITION,Vo.Kind.SCALAR_TYPE_DEFINITION]);w.OUTPUT_NODE_KINDS=new Set([Vo.Kind.ENUM_TYPE_DEFINITION,Vo.Kind.INTERFACE_TYPE_DEFINITION,Vo.Kind.OBJECT_TYPE_DEFINITION,Vo.Kind.SCALAR_TYPE_DEFINITION,Vo.Kind.UNION_TYPE_DEFINITION]);w.INTERFACE_NODE_KINDS=new Set([Vo.Kind.INTERFACE_TYPE_DEFINITION,Vo.Kind.INTERFACE_TYPE_EXTENSION]);w.NON_REPEATABLE_FEDERATED_DIRECTIVES=new Set([w.INACCESSIBLE,w.ONE_OF,w.SEMANTIC_NON_NULL])});var Un=D(yn=>{"use strict";d();p();f();Object.defineProperty(yn,"__esModule",{value:!0});yn.operationTypeNodeToDefaultType=void 0;yn.isObjectLikeNodeEntity=mRe;yn.isNodeInterfaceObject=hRe;yn.stringToNameNode=Hg;yn.stringArrayToNameNodeArray=yRe;yn.setToNameNodeArray=NRe;yn.stringToNamedTypeNode=YH;yn.setToNamedTypeNodeArray=TRe;yn.nodeKindToDirectiveLocation=ERe;yn.isKindAbstract=gRe;yn.extractExecutableDirectiveLocations=IRe;yn.formatDescription=vRe;yn.lexicographicallySortArgumentNodes=JH;yn.lexicographicallySortSelectionSetNode=zg;yn.lexicographicallySortDocumentNode=_Re;yn.parse=zH;yn.safeParse=SRe;var Ht=ve(),Mr=xr();function mRe(e){var t;if(!((t=e.directives)!=null&&t.length))return!1;for(let r of e.directives)if(r.name.value===Mr.KEY)return!0;return!1}function hRe(e){var t;if(!((t=e.directives)!=null&&t.length))return!1;for(let r of e.directives)if(r.name.value===Mr.INTERFACE_OBJECT)return!0;return!1}function Hg(e){return{kind:Ht.Kind.NAME,value:e}}function yRe(e){let t=[];for(let r of e)t.push(Hg(r));return t}function NRe(e){let t=[];for(let r of e)t.push(Hg(r));return t}function YH(e){return{kind:Ht.Kind.NAMED_TYPE,name:Hg(e)}}function TRe(e){let t=[];for(let r of e)t.push(YH(r));return t}function ERe(e){switch(e){case Ht.Kind.ARGUMENT:return Mr.ARGUMENT_DEFINITION_UPPER;case Ht.Kind.ENUM_TYPE_DEFINITION:case Ht.Kind.ENUM_TYPE_EXTENSION:return Mr.ENUM_UPPER;case Ht.Kind.ENUM_VALUE_DEFINITION:return Mr.ENUM_VALUE_UPPER;case Ht.Kind.FIELD_DEFINITION:return Mr.FIELD_DEFINITION_UPPER;case Ht.Kind.FRAGMENT_DEFINITION:return Mr.FRAGMENT_DEFINITION_UPPER;case Ht.Kind.FRAGMENT_SPREAD:return Mr.FRAGMENT_SPREAD_UPPER;case Ht.Kind.INLINE_FRAGMENT:return Mr.INLINE_FRAGMENT_UPPER;case Ht.Kind.INPUT_VALUE_DEFINITION:return Mr.INPUT_FIELD_DEFINITION_UPPER;case Ht.Kind.INPUT_OBJECT_TYPE_DEFINITION:case Ht.Kind.INPUT_OBJECT_TYPE_EXTENSION:return Mr.INPUT_OBJECT_UPPER;case Ht.Kind.INTERFACE_TYPE_DEFINITION:case Ht.Kind.INTERFACE_TYPE_EXTENSION:return Mr.INTERFACE_UPPER;case Ht.Kind.OBJECT_TYPE_DEFINITION:case Ht.Kind.OBJECT_TYPE_EXTENSION:return Mr.OBJECT_UPPER;case Ht.Kind.SCALAR_TYPE_DEFINITION:case Ht.Kind.SCALAR_TYPE_EXTENSION:return Mr.SCALAR_UPPER;case Ht.Kind.SCHEMA_DEFINITION:case Ht.Kind.SCHEMA_EXTENSION:return Mr.SCHEMA_UPPER;case Ht.Kind.UNION_TYPE_DEFINITION:case Ht.Kind.UNION_TYPE_EXTENSION:return Mr.UNION_UPPER;default:return e}}yn.operationTypeNodeToDefaultType=new Map([[Ht.OperationTypeNode.MUTATION,Mr.MUTATION],[Ht.OperationTypeNode.QUERY,Mr.QUERY],[Ht.OperationTypeNode.SUBSCRIPTION,Mr.SUBSCRIPTION]]);function gRe(e){return e===Ht.Kind.INTERFACE_TYPE_DEFINITION||e===Ht.Kind.UNION_TYPE_DEFINITION}function IRe(e,t){for(let r of e){let n=r.value;Mr.EXECUTABLE_DIRECTIVE_LOCATIONS.has(n)&&t.add(n)}return t}function vRe(e){if(!e)return e;let t=e.value;if(e.block){let r=t.split(` +`);r.length>1&&(t=r.map(n=>n.trimStart()).join(` +`))}return G(q({},e),{value:t,block:!0})}function JH(e){return e.arguments?e.arguments.sort((r,n)=>r.name.value.localeCompare(n.name.value)):e.arguments}function zg(e){let t=e.selections;return G(q({},e),{selections:t.sort((r,n)=>{var a,o,u,l;return Mr.NAME in r?Mr.NAME in n?r.name.value.localeCompare(n.name.value):-1:Mr.NAME in n?1:((o=(a=r.typeCondition)==null?void 0:a.name.value)!=null?o:"").localeCompare((l=(u=n.typeCondition)==null?void 0:u.name.value)!=null?l:"")}).map(r=>{switch(r.kind){case Ht.Kind.FIELD:return G(q({},r),{arguments:JH(r),selectionSet:r.selectionSet?zg(r.selectionSet):r.selectionSet});case Ht.Kind.FRAGMENT_SPREAD:return r;case Ht.Kind.INLINE_FRAGMENT:return G(q({},r),{selectionSet:zg(r.selectionSet)})}})})}function _Re(e){return G(q({},e),{definitions:e.definitions.map(t=>t.kind!==Ht.Kind.OPERATION_DEFINITION?t:G(q({},t),{selectionSet:zg(t.selectionSet)}))})}function zH(e,t=!0){return(0,Ht.parse)(e,{noLocation:t})}function SRe(e,t=!0){try{return{documentNode:zH(e,t)}}catch(r){return{error:r}}}});var XH=D(Hf=>{"use strict";d();p();f();Object.defineProperty(Hf,"__esModule",{value:!0});Hf.AccumulatorMap=void 0;Hf.mapValue=zf;Hf.extendSchemaImpl=ORe;var xe=ve(),Bs=class extends Map{get[Symbol.toStringTag](){return"AccumulatorMap"}add(t,r){let n=this.get(t);n===void 0?this.set(t,[r]):n.push(r)}};Hf.AccumulatorMap=Bs;function zf(e,t){let r=Object.create(null);for(let n of Object.keys(e))r[n]=t(e[n],n);return r}function ORe(e,t,r){var Be,Ie,Ce,Qt;let n=[],i=new Bs,a=new Bs,o=new Bs,u=new Bs,l=new Bs,m=new Bs,h=[],N,T=[],O=!1;for(let z of t.definitions){switch(z.kind){case xe.Kind.SCHEMA_DEFINITION:N=z;break;case xe.Kind.SCHEMA_EXTENSION:T.push(z);break;case xe.Kind.DIRECTIVE_DEFINITION:h.push(z);break;case xe.Kind.SCALAR_TYPE_DEFINITION:case xe.Kind.OBJECT_TYPE_DEFINITION:case xe.Kind.INTERFACE_TYPE_DEFINITION:case xe.Kind.UNION_TYPE_DEFINITION:case xe.Kind.ENUM_TYPE_DEFINITION:case xe.Kind.INPUT_OBJECT_TYPE_DEFINITION:n.push(z);break;case xe.Kind.SCALAR_TYPE_EXTENSION:i.add(z.name.value,z);break;case xe.Kind.OBJECT_TYPE_EXTENSION:a.add(z.name.value,z);break;case xe.Kind.INTERFACE_TYPE_EXTENSION:o.add(z.name.value,z);break;case xe.Kind.UNION_TYPE_EXTENSION:u.add(z.name.value,z);break;case xe.Kind.ENUM_TYPE_EXTENSION:l.add(z.name.value,z);break;case xe.Kind.INPUT_OBJECT_TYPE_EXTENSION:m.add(z.name.value,z);break;default:continue}O=!0}if(!O)return e;let R=new Map;for(let z of e.types){let ie=ae(z);ie&&R.set(z.name,ie)}for(let z of n){let ie=z.name.value;R.set(ie,(Be=HH.get(ie))!=null?Be:oe(z))}for(let[z,ie]of a)R.set(z,new xe.GraphQLObjectType({name:z,interfaces:()=>bt(ie),fields:()=>tr(ie),extensionASTNodes:ie}));if(r!=null&&r.addInvalidExtensionOrphans){for(let[z,ie]of o)R.set(z,new xe.GraphQLInterfaceType({name:z,interfaces:()=>bt(ie),fields:()=>tr(ie),extensionASTNodes:ie}));for(let[z,ie]of l)R.set(z,new xe.GraphQLEnumType({name:z,values:dn(ie),extensionASTNodes:ie}));for(let[z,ie]of u)R.set(z,new xe.GraphQLUnionType({name:z,types:()=>Gr(ie),extensionASTNodes:ie}));for(let[z,ie]of i)R.set(z,new xe.GraphQLScalarType({name:z,extensionASTNodes:ie}));for(let[z,ie]of m)R.set(z,new xe.GraphQLInputObjectType({name:z,fields:()=>Yn(ie),extensionASTNodes:ie}))}let C=q(q({query:e.query&&Y(e.query),mutation:e.mutation&&Y(e.mutation),subscription:e.subscription&&Y(e.subscription)},N&&pr([N])),pr(T));return G(q({description:(Ce=(Ie=N==null?void 0:N.description)==null?void 0:Ie.value)!=null?Ce:e.description},C),{types:Array.from(R.values()),directives:[...e.directives.map(ee),...h.map(mr)],extensions:e.extensions,astNode:N!=null?N:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(T),assumeValid:(Qt=r==null?void 0:r.assumeValid)!=null?Qt:!1});function M(z){return(0,xe.isListType)(z)?new xe.GraphQLList(M(z.ofType)):(0,xe.isNonNullType)(z)?new xe.GraphQLNonNull(M(z.ofType)):Y(z)}function Y(z){return R.get(z.name)}function ee(z){if((0,xe.isSpecifiedDirective)(z))return z;let ie=z.toConfig();return new xe.GraphQLDirective(G(q({},ie),{args:zf(ie.args,Ft)}))}function ae(z){if((0,xe.isIntrospectionType)(z)||(0,xe.isSpecifiedScalarType)(z))return z;if((0,xe.isScalarType)(z))return Le(z);if((0,xe.isObjectType)(z))return Ve(z);if((0,xe.isInterfaceType)(z))return ot(z);if((0,xe.isUnionType)(z))return Z(z);if((0,xe.isEnumType)(z))return _e(z);if((0,xe.isInputObjectType)(z))return Ne(z)}function Ne(z){var nt;let ie=z.toConfig(),Je=(nt=m.get(ie.name))!=null?nt:[];return new xe.GraphQLInputObjectType(G(q({},ie),{fields:()=>q(q({},zf(ie.fields,xt=>G(q({},xt),{type:M(xt.type)}))),Yn(Je)),extensionASTNodes:ie.extensionASTNodes.concat(Je)}))}function _e(z){var nt;let ie=z.toConfig(),Je=(nt=l.get(z.name))!=null?nt:[];return new xe.GraphQLEnumType(G(q({},ie),{values:q(q({},ie.values),dn(Je)),extensionASTNodes:ie.extensionASTNodes.concat(Je)}))}function Le(z){var xt,At;let ie=z.toConfig(),Je=(xt=i.get(ie.name))!=null?xt:[],nt=ie.specifiedByURL;for(let It of Je)nt=(At=WH(It))!=null?At:nt;return new xe.GraphQLScalarType(G(q({},ie),{specifiedByURL:nt,extensionASTNodes:ie.extensionASTNodes.concat(Je)}))}function Ve(z){var nt;let ie=z.toConfig(),Je=(nt=a.get(ie.name))!=null?nt:[];return new xe.GraphQLObjectType(G(q({},ie),{interfaces:()=>[...z.getInterfaces().map(Y),...bt(Je)],fields:()=>q(q({},zf(ie.fields,Se)),tr(Je)),extensionASTNodes:ie.extensionASTNodes.concat(Je)}))}function ot(z){var nt;let ie=z.toConfig(),Je=(nt=o.get(ie.name))!=null?nt:[];return new xe.GraphQLInterfaceType(G(q({},ie),{interfaces:()=>[...z.getInterfaces().map(Y),...bt(Je)],fields:()=>q(q({},zf(ie.fields,Se)),tr(Je)),extensionASTNodes:ie.extensionASTNodes.concat(Je)}))}function Z(z){var nt;let ie=z.toConfig(),Je=(nt=u.get(ie.name))!=null?nt:[];return new xe.GraphQLUnionType(G(q({},ie),{types:()=>[...z.getTypes().map(Y),...Gr(Je)],extensionASTNodes:ie.extensionASTNodes.concat(Je)}))}function Se(z){return G(q({},z),{type:M(z.type),args:z.args&&zf(z.args,Ft)})}function Ft(z){return G(q({},z),{type:M(z.type)})}function pr(z){var Je;let ie={};for(let nt of z){let xt=(Je=nt.operationTypes)!=null?Je:[];for(let At of xt)ie[At.operation]=ar(At.type)}return ie}function ar(z){var nt;let ie=z.name.value,Je=(nt=HH.get(ie))!=null?nt:R.get(ie);if(Je===void 0)throw new Error(`Unknown type: "${ie}".`);return Je}function vr(z){return z.kind===xe.Kind.LIST_TYPE?new xe.GraphQLList(vr(z.type)):z.kind===xe.Kind.NON_NULL_TYPE?new xe.GraphQLNonNull(vr(z.type)):ar(z)}function mr(z){var ie;return new xe.GraphQLDirective({name:z.name.value,description:(ie=z.description)==null?void 0:ie.value,locations:z.locations.map(({value:Je})=>Je),isRepeatable:z.repeatable,args:$r(z.arguments),astNode:z})}function tr(z){var Je,nt;let ie=Object.create(null);for(let xt of z){let At=(Je=xt.fields)!=null?Je:[];for(let It of At)ie[It.name.value]={type:vr(It.type),description:(nt=It.description)==null?void 0:nt.value,args:$r(It.arguments),deprecationReason:Wg(It),astNode:It}}return ie}function $r(z){var nt;let ie=z!=null?z:[],Je=Object.create(null);for(let xt of ie){let At=vr(xt.type);Je[xt.name.value]={type:At,description:(nt=xt.description)==null?void 0:nt.value,defaultValue:(0,xe.valueFromAST)(xt.defaultValue,At),deprecationReason:Wg(xt),astNode:xt}}return Je}function Yn(z){var Je,nt;let ie=Object.create(null);for(let xt of z){let At=(Je=xt.fields)!=null?Je:[];for(let It of At){let Ci=vr(It.type);ie[It.name.value]={type:Ci,description:(nt=It.description)==null?void 0:nt.value,defaultValue:(0,xe.valueFromAST)(It.defaultValue,Ci),deprecationReason:Wg(It),astNode:It}}}return ie}function dn(z){var Je,nt;let ie=Object.create(null);for(let xt of z){let At=(Je=xt.values)!=null?Je:[];for(let It of At)ie[It.name.value]={description:(nt=It.description)==null?void 0:nt.value,deprecationReason:Wg(It),astNode:It}}return ie}function bt(z){return z.flatMap(ie=>{var Je,nt;return(nt=(Je=ie.interfaces)==null?void 0:Je.map(ar))!=null?nt:[]})}function Gr(z){return z.flatMap(ie=>{var Je,nt;return(nt=(Je=ie.types)==null?void 0:Je.map(ar))!=null?nt:[]})}function oe(z){var Je,nt,xt,At,It,Ci,kd,Jn,fl,qd,Ba,In;let ie=z.name.value;switch(z.kind){case xe.Kind.OBJECT_TYPE_DEFINITION:{let Yt=(Je=a.get(ie))!=null?Je:[],fn=[z,...Yt];return a.delete(ie),new xe.GraphQLObjectType({name:ie,description:(nt=z.description)==null?void 0:nt.value,interfaces:()=>bt(fn),fields:()=>tr(fn),astNode:z,extensionASTNodes:Yt})}case xe.Kind.INTERFACE_TYPE_DEFINITION:{let Yt=(xt=o.get(ie))!=null?xt:[],fn=[z,...Yt];return o.delete(ie),new xe.GraphQLInterfaceType({name:ie,description:(At=z.description)==null?void 0:At.value,interfaces:()=>bt(fn),fields:()=>tr(fn),astNode:z,extensionASTNodes:Yt})}case xe.Kind.ENUM_TYPE_DEFINITION:{let Yt=(It=l.get(ie))!=null?It:[],fn=[z,...Yt];return l.delete(ie),new xe.GraphQLEnumType({name:ie,description:(Ci=z.description)==null?void 0:Ci.value,values:dn(fn),astNode:z,extensionASTNodes:Yt})}case xe.Kind.UNION_TYPE_DEFINITION:{let Yt=(kd=u.get(ie))!=null?kd:[],fn=[z,...Yt];return u.delete(ie),new xe.GraphQLUnionType({name:ie,description:(Jn=z.description)==null?void 0:Jn.value,types:()=>Gr(fn),astNode:z,extensionASTNodes:Yt})}case xe.Kind.SCALAR_TYPE_DEFINITION:{let Yt=(fl=i.get(ie))!=null?fl:[];return i.delete(ie),new xe.GraphQLScalarType({name:ie,description:(qd=z.description)==null?void 0:qd.value,specifiedByURL:WH(z),astNode:z,extensionASTNodes:Yt})}case xe.Kind.INPUT_OBJECT_TYPE_DEFINITION:{let Yt=(Ba=m.get(ie))!=null?Ba:[],fn=[z,...Yt];return m.delete(ie),new xe.GraphQLInputObjectType({name:ie,description:(In=z.description)==null?void 0:In.value,fields:()=>Yn(fn),astNode:z,extensionASTNodes:Yt})}}}}var HH=new Map([...xe.specifiedScalarTypes,...xe.introspectionTypes].map(e=>[e.name,e]));function Wg(e){let t=(0,xe.getDirectiveValues)(xe.GraphQLDeprecatedDirective,e);return t==null?void 0:t.reason}function WH(e){let t=(0,xe.getDirectiveValues)(xe.GraphQLSpecifiedByDirective,e);return t==null?void 0:t.url}});var YR=D(QR=>{"use strict";d();p();f();Object.defineProperty(QR,"__esModule",{value:!0});QR.buildASTSchema=ARe;var ZH=ve(),DRe=Qf(),bRe=XH();function ARe(e,t){(t==null?void 0:t.assumeValid)!==!0&&(t==null?void 0:t.assumeValidSDL)!==!0&&(0,DRe.assertValidSDL)(e);let r={description:void 0,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:!1},n=(0,bRe.extendSchemaImpl)(r,e,t);if(n.astNode==null)for(let a of n.types)switch(a.name){case"Query":n.query=a;break;case"Mutation":n.mutation=a;break;case"Subscription":n.subscription=a;break}let i=[...n.directives,...ZH.specifiedDirectives.filter(a=>n.directives.every(o=>o.name!==a.name))];return new ZH.GraphQLSchema(G(q({},n),{directives:i}))}});var Xg=D(Wf=>{"use strict";d();p();f();Object.defineProperty(Wf,"__esModule",{value:!0});Wf.REQUIRED_FIELDSET_TYPE_NODE=Wf.REQUIRED_STRING_TYPE_NODE=void 0;var e3=ve(),t3=Un(),r3=xr();Wf.REQUIRED_STRING_TYPE_NODE={kind:e3.Kind.NON_NULL_TYPE,type:(0,t3.stringToNamedTypeNode)(r3.STRING_SCALAR)};Wf.REQUIRED_FIELDSET_TYPE_NODE={kind:e3.Kind.NON_NULL_TYPE,type:(0,t3.stringToNamedTypeNode)(r3.FIELD_SET_SCALAR)}});var Wh=D(Me=>{"use strict";d();p();f();Object.defineProperty(Me,"__esModule",{value:!0});Me.TAG_DEFINITION=Me.SUBSCRIPTION_FILTER_DEFINITION=Me.SPECIFIED_BY_DEFINITION=Me.SHAREABLE_DEFINITION=Me.SEMANTIC_NON_NULL_DEFINITION=Me.REQUIRES_SCOPES_DEFINITION=Me.REQUIRES_DEFINITION=Me.REQUIRE_FETCH_REASONS_DEFINITION=Me.PROVIDES_DEFINITION=Me.OVERRIDE_DEFINITION=Me.ONE_OF_DEFINITION=Me.LIST_SIZE_DEFINITION=Me.LINK_DEFINITION=Me.KEY_DEFINITION=Me.INTERFACE_OBJECT_DEFINITION=Me.INACCESSIBLE_DEFINITION=Me.EDFS_REDIS_SUBSCRIBE_DEFINITION=Me.EDFS_REDIS_PUBLISH_DEFINITION=Me.EDFS_NATS_SUBSCRIBE_DEFINITION=Me.EDFS_NATS_REQUEST_DEFINITION=Me.EDFS_NATS_PUBLISH_DEFINITION=Me.EDFS_KAFKA_SUBSCRIBE_DEFINITION=Me.EDFS_KAFKA_PUBLISH_DEFINITION=Me.EXTERNAL_DEFINITION=Me.EXTENDS_DEFINITION=Me.DEPRECATED_DEFINITION=Me.COST_DEFINITION=Me.CONNECT_FIELD_RESOLVER_DEFINITION=Me.CONFIGURE_DESCRIPTION_DEFINITION=Me.CONFIGURE_CHILD_DESCRIPTIONS_DEFINITION=Me.COMPOSE_DIRECTIVE_DEFINITION=Me.AUTHENTICATED_DEFINITION=void 0;var de=ve(),se=Un(),Q=xr(),$n=Xg();Me.AUTHENTICATED_DEFINITION={kind:de.Kind.DIRECTIVE_DEFINITION,locations:(0,se.stringArrayToNameNodeArray)([Q.ENUM_UPPER,Q.FIELD_DEFINITION_UPPER,Q.INTERFACE_UPPER,Q.OBJECT_UPPER,Q.SCALAR_UPPER]),name:(0,se.stringToNameNode)(Q.AUTHENTICATED),repeatable:!1};Me.COMPOSE_DIRECTIVE_DEFINITION={arguments:[{kind:de.Kind.INPUT_VALUE_DEFINITION,name:(0,se.stringToNameNode)(Q.NAME),type:$n.REQUIRED_STRING_TYPE_NODE}],kind:de.Kind.DIRECTIVE_DEFINITION,locations:(0,se.stringArrayToNameNodeArray)([Q.SCHEMA_UPPER]),name:(0,se.stringToNameNode)(Q.COMPOSE_DIRECTIVE),repeatable:!0};Me.CONFIGURE_CHILD_DESCRIPTIONS_DEFINITION={arguments:[{kind:de.Kind.INPUT_VALUE_DEFINITION,name:(0,se.stringToNameNode)(Q.PROPAGATE),type:{kind:de.Kind.NON_NULL_TYPE,type:(0,se.stringToNamedTypeNode)(Q.BOOLEAN_SCALAR)},defaultValue:{kind:de.Kind.BOOLEAN,value:!0}}],kind:de.Kind.DIRECTIVE_DEFINITION,locations:(0,se.stringArrayToNameNodeArray)([Q.ENUM_UPPER,Q.INPUT_OBJECT_UPPER,Q.INTERFACE_UPPER,Q.OBJECT_UPPER]),name:(0,se.stringToNameNode)(Q.CONFIGURE_CHILD_DESCRIPTIONS),repeatable:!1};Me.CONFIGURE_DESCRIPTION_DEFINITION={arguments:[{kind:de.Kind.INPUT_VALUE_DEFINITION,name:(0,se.stringToNameNode)(Q.PROPAGATE),type:{kind:de.Kind.NON_NULL_TYPE,type:(0,se.stringToNamedTypeNode)(Q.BOOLEAN_SCALAR)},defaultValue:{kind:de.Kind.BOOLEAN,value:!0}},{directives:[],kind:de.Kind.INPUT_VALUE_DEFINITION,name:(0,se.stringToNameNode)(Q.DESCRIPTION_OVERRIDE),type:(0,se.stringToNamedTypeNode)(Q.STRING_SCALAR)}],kind:de.Kind.DIRECTIVE_DEFINITION,locations:(0,se.stringArrayToNameNodeArray)([Q.ARGUMENT_DEFINITION_UPPER,Q.ENUM_UPPER,Q.ENUM_VALUE_UPPER,Q.FIELD_DEFINITION_UPPER,Q.INTERFACE_UPPER,Q.INPUT_OBJECT_UPPER,Q.INPUT_FIELD_DEFINITION_UPPER,Q.OBJECT_UPPER,Q.SCALAR_UPPER,Q.SCHEMA_UPPER,Q.UNION_UPPER]),name:(0,se.stringToNameNode)(Q.CONFIGURE_DESCRIPTION),repeatable:!1};Me.CONNECT_FIELD_RESOLVER_DEFINITION={arguments:[{kind:de.Kind.INPUT_VALUE_DEFINITION,name:(0,se.stringToNameNode)(Q.CONTEXT),type:$n.REQUIRED_FIELDSET_TYPE_NODE}],kind:de.Kind.DIRECTIVE_DEFINITION,locations:(0,se.stringArrayToNameNodeArray)([Q.FIELD_DEFINITION_UPPER]),name:(0,se.stringToNameNode)(Q.CONNECT_FIELD_RESOLVER),repeatable:!1};Me.COST_DEFINITION={arguments:[{kind:de.Kind.INPUT_VALUE_DEFINITION,name:(0,se.stringToNameNode)(Q.WEIGHT),type:{kind:de.Kind.NON_NULL_TYPE,type:(0,se.stringToNamedTypeNode)(Q.INT_SCALAR)}}],kind:de.Kind.DIRECTIVE_DEFINITION,locations:(0,se.stringArrayToNameNodeArray)([Q.ARGUMENT_DEFINITION_UPPER,Q.ENUM_UPPER,Q.FIELD_DEFINITION_UPPER,Q.INPUT_FIELD_DEFINITION_UPPER,Q.OBJECT_UPPER,Q.SCALAR_UPPER]),name:(0,se.stringToNameNode)(Q.COST),repeatable:!1};Me.DEPRECATED_DEFINITION={arguments:[{kind:de.Kind.INPUT_VALUE_DEFINITION,name:(0,se.stringToNameNode)(Q.REASON),type:(0,se.stringToNamedTypeNode)(Q.STRING_SCALAR),defaultValue:{kind:de.Kind.STRING,value:de.DEFAULT_DEPRECATION_REASON}}],kind:de.Kind.DIRECTIVE_DEFINITION,locations:(0,se.stringArrayToNameNodeArray)([Q.ARGUMENT_DEFINITION_UPPER,Q.ENUM_VALUE_UPPER,Q.FIELD_DEFINITION_UPPER,Q.INPUT_FIELD_DEFINITION_UPPER]),name:(0,se.stringToNameNode)(Q.DEPRECATED),repeatable:!1};Me.EXTENDS_DEFINITION={kind:de.Kind.DIRECTIVE_DEFINITION,locations:(0,se.stringArrayToNameNodeArray)([Q.INTERFACE_UPPER,Q.OBJECT_UPPER]),name:(0,se.stringToNameNode)(Q.EXTENDS),repeatable:!1};Me.EXTERNAL_DEFINITION={kind:de.Kind.DIRECTIVE_DEFINITION,locations:(0,se.stringArrayToNameNodeArray)([Q.FIELD_DEFINITION_UPPER,Q.OBJECT_UPPER]),name:(0,se.stringToNameNode)(Q.EXTERNAL),repeatable:!1};Me.EDFS_KAFKA_PUBLISH_DEFINITION={arguments:[{kind:de.Kind.INPUT_VALUE_DEFINITION,name:(0,se.stringToNameNode)(Q.TOPIC),type:$n.REQUIRED_STRING_TYPE_NODE},{kind:de.Kind.INPUT_VALUE_DEFINITION,name:(0,se.stringToNameNode)(Q.PROVIDER_ID),type:$n.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:de.Kind.STRING,value:Q.DEFAULT_EDFS_PROVIDER_ID}}],kind:de.Kind.DIRECTIVE_DEFINITION,locations:[(0,se.stringToNameNode)(Q.FIELD_DEFINITION_UPPER)],name:(0,se.stringToNameNode)(Q.EDFS_KAFKA_PUBLISH),repeatable:!1};Me.EDFS_KAFKA_SUBSCRIBE_DEFINITION={arguments:[{kind:de.Kind.INPUT_VALUE_DEFINITION,name:(0,se.stringToNameNode)(Q.TOPICS),type:{kind:de.Kind.NON_NULL_TYPE,type:{kind:de.Kind.LIST_TYPE,type:$n.REQUIRED_STRING_TYPE_NODE}}},{kind:de.Kind.INPUT_VALUE_DEFINITION,name:(0,se.stringToNameNode)(Q.PROVIDER_ID),type:$n.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:de.Kind.STRING,value:Q.DEFAULT_EDFS_PROVIDER_ID}}],kind:de.Kind.DIRECTIVE_DEFINITION,locations:[(0,se.stringToNameNode)(Q.FIELD_DEFINITION_UPPER)],name:(0,se.stringToNameNode)(Q.EDFS_KAFKA_SUBSCRIBE),repeatable:!1};Me.EDFS_NATS_PUBLISH_DEFINITION={arguments:[{kind:de.Kind.INPUT_VALUE_DEFINITION,name:(0,se.stringToNameNode)(Q.SUBJECT),type:$n.REQUIRED_STRING_TYPE_NODE},{kind:de.Kind.INPUT_VALUE_DEFINITION,name:(0,se.stringToNameNode)(Q.PROVIDER_ID),type:{kind:de.Kind.NON_NULL_TYPE,type:(0,se.stringToNamedTypeNode)(Q.STRING_SCALAR)},defaultValue:{kind:de.Kind.STRING,value:Q.DEFAULT_EDFS_PROVIDER_ID}}],kind:de.Kind.DIRECTIVE_DEFINITION,locations:[(0,se.stringToNameNode)(Q.FIELD_DEFINITION_UPPER)],name:(0,se.stringToNameNode)(Q.EDFS_NATS_PUBLISH),repeatable:!1};Me.EDFS_NATS_REQUEST_DEFINITION={arguments:[{kind:de.Kind.INPUT_VALUE_DEFINITION,name:(0,se.stringToNameNode)(Q.SUBJECT),type:{kind:de.Kind.NON_NULL_TYPE,type:(0,se.stringToNamedTypeNode)(Q.STRING_SCALAR)}},{kind:de.Kind.INPUT_VALUE_DEFINITION,name:(0,se.stringToNameNode)(Q.PROVIDER_ID),type:{kind:de.Kind.NON_NULL_TYPE,type:(0,se.stringToNamedTypeNode)(Q.STRING_SCALAR)},defaultValue:{kind:de.Kind.STRING,value:Q.DEFAULT_EDFS_PROVIDER_ID}}],kind:de.Kind.DIRECTIVE_DEFINITION,locations:[(0,se.stringToNameNode)(Q.FIELD_DEFINITION_UPPER)],name:(0,se.stringToNameNode)(Q.EDFS_NATS_REQUEST),repeatable:!1};Me.EDFS_NATS_SUBSCRIBE_DEFINITION={arguments:[{kind:de.Kind.INPUT_VALUE_DEFINITION,name:(0,se.stringToNameNode)(Q.SUBJECTS),type:{kind:de.Kind.NON_NULL_TYPE,type:{kind:de.Kind.LIST_TYPE,type:$n.REQUIRED_STRING_TYPE_NODE}}},{kind:de.Kind.INPUT_VALUE_DEFINITION,name:(0,se.stringToNameNode)(Q.PROVIDER_ID),type:$n.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:de.Kind.STRING,value:Q.DEFAULT_EDFS_PROVIDER_ID}},{kind:de.Kind.INPUT_VALUE_DEFINITION,name:(0,se.stringToNameNode)(Q.STREAM_CONFIGURATION),type:(0,se.stringToNamedTypeNode)(Q.EDFS_NATS_STREAM_CONFIGURATION)}],kind:de.Kind.DIRECTIVE_DEFINITION,locations:[(0,se.stringToNameNode)(Q.FIELD_DEFINITION_UPPER)],name:(0,se.stringToNameNode)(Q.EDFS_NATS_SUBSCRIBE),repeatable:!1};Me.EDFS_REDIS_PUBLISH_DEFINITION={arguments:[{kind:de.Kind.INPUT_VALUE_DEFINITION,name:(0,se.stringToNameNode)(Q.CHANNEL),type:$n.REQUIRED_STRING_TYPE_NODE},{kind:de.Kind.INPUT_VALUE_DEFINITION,name:(0,se.stringToNameNode)(Q.PROVIDER_ID),type:$n.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:de.Kind.STRING,value:Q.DEFAULT_EDFS_PROVIDER_ID}}],kind:de.Kind.DIRECTIVE_DEFINITION,locations:[(0,se.stringToNameNode)(Q.FIELD_DEFINITION_UPPER)],name:(0,se.stringToNameNode)(Q.EDFS_REDIS_PUBLISH),repeatable:!1};Me.EDFS_REDIS_SUBSCRIBE_DEFINITION={arguments:[{kind:de.Kind.INPUT_VALUE_DEFINITION,name:(0,se.stringToNameNode)(Q.CHANNELS),type:{kind:de.Kind.NON_NULL_TYPE,type:{kind:de.Kind.LIST_TYPE,type:$n.REQUIRED_STRING_TYPE_NODE}}},{kind:de.Kind.INPUT_VALUE_DEFINITION,name:(0,se.stringToNameNode)(Q.PROVIDER_ID),type:$n.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:de.Kind.STRING,value:Q.DEFAULT_EDFS_PROVIDER_ID}}],kind:de.Kind.DIRECTIVE_DEFINITION,locations:[(0,se.stringToNameNode)(Q.FIELD_DEFINITION_UPPER)],name:(0,se.stringToNameNode)(Q.EDFS_REDIS_SUBSCRIBE),repeatable:!1};Me.INACCESSIBLE_DEFINITION={kind:de.Kind.DIRECTIVE_DEFINITION,locations:(0,se.stringArrayToNameNodeArray)([Q.ARGUMENT_DEFINITION_UPPER,Q.ENUM_UPPER,Q.ENUM_VALUE_UPPER,Q.FIELD_DEFINITION_UPPER,Q.INPUT_FIELD_DEFINITION_UPPER,Q.INPUT_OBJECT_UPPER,Q.INTERFACE_UPPER,Q.OBJECT_UPPER,Q.SCALAR_UPPER,Q.UNION_UPPER]),name:(0,se.stringToNameNode)(Q.INACCESSIBLE),repeatable:!1};Me.INTERFACE_OBJECT_DEFINITION={kind:de.Kind.DIRECTIVE_DEFINITION,locations:(0,se.stringArrayToNameNodeArray)([Q.OBJECT_UPPER]),name:(0,se.stringToNameNode)(Q.INTERFACE_OBJECT),repeatable:!1};Me.KEY_DEFINITION={arguments:[{kind:de.Kind.INPUT_VALUE_DEFINITION,name:(0,se.stringToNameNode)(Q.FIELDS),type:$n.REQUIRED_FIELDSET_TYPE_NODE},{kind:de.Kind.INPUT_VALUE_DEFINITION,name:(0,se.stringToNameNode)(Q.RESOLVABLE),type:(0,se.stringToNamedTypeNode)(Q.BOOLEAN_SCALAR),defaultValue:{kind:de.Kind.BOOLEAN,value:!0}}],kind:de.Kind.DIRECTIVE_DEFINITION,locations:(0,se.stringArrayToNameNodeArray)([Q.INTERFACE_UPPER,Q.OBJECT_UPPER]),name:(0,se.stringToNameNode)(Q.KEY),repeatable:!0};Me.LINK_DEFINITION={arguments:[{kind:de.Kind.INPUT_VALUE_DEFINITION,name:(0,se.stringToNameNode)(Q.URL_LOWER),type:{kind:de.Kind.NON_NULL_TYPE,type:(0,se.stringToNamedTypeNode)(Q.STRING_SCALAR)}},{kind:de.Kind.INPUT_VALUE_DEFINITION,name:(0,se.stringToNameNode)(Q.AS),type:(0,se.stringToNamedTypeNode)(Q.STRING_SCALAR)},{kind:de.Kind.INPUT_VALUE_DEFINITION,name:(0,se.stringToNameNode)(Q.FOR),type:(0,se.stringToNamedTypeNode)(Q.LINK_PURPOSE)},{kind:de.Kind.INPUT_VALUE_DEFINITION,name:(0,se.stringToNameNode)(Q.IMPORT),type:{kind:de.Kind.LIST_TYPE,type:(0,se.stringToNamedTypeNode)(Q.LINK_IMPORT)}}],kind:de.Kind.DIRECTIVE_DEFINITION,locations:(0,se.stringArrayToNameNodeArray)([Q.SCHEMA_UPPER]),name:(0,se.stringToNameNode)(Q.LINK),repeatable:!0};Me.LIST_SIZE_DEFINITION={arguments:[{kind:de.Kind.INPUT_VALUE_DEFINITION,name:(0,se.stringToNameNode)(Q.ASSUMED_SIZE),type:(0,se.stringToNamedTypeNode)(Q.INT_SCALAR)},{kind:de.Kind.INPUT_VALUE_DEFINITION,name:(0,se.stringToNameNode)(Q.SLICING_ARGUMENTS),type:{kind:de.Kind.LIST_TYPE,type:{kind:de.Kind.NON_NULL_TYPE,type:(0,se.stringToNamedTypeNode)(Q.STRING_SCALAR)}}},{kind:de.Kind.INPUT_VALUE_DEFINITION,name:(0,se.stringToNameNode)(Q.SIZED_FIELDS),type:{kind:de.Kind.LIST_TYPE,type:{kind:de.Kind.NON_NULL_TYPE,type:(0,se.stringToNamedTypeNode)(Q.STRING_SCALAR)}}},{kind:de.Kind.INPUT_VALUE_DEFINITION,name:(0,se.stringToNameNode)(Q.REQUIRE_ONE_SLICING_ARGUMENT),type:(0,se.stringToNamedTypeNode)(Q.BOOLEAN_SCALAR),defaultValue:{kind:de.Kind.BOOLEAN,value:!0}}],kind:de.Kind.DIRECTIVE_DEFINITION,locations:(0,se.stringArrayToNameNodeArray)([Q.FIELD_DEFINITION_UPPER]),name:(0,se.stringToNameNode)(Q.LIST_SIZE),repeatable:!1};Me.ONE_OF_DEFINITION={kind:de.Kind.DIRECTIVE_DEFINITION,locations:(0,se.stringArrayToNameNodeArray)([Q.INPUT_OBJECT_UPPER]),name:(0,se.stringToNameNode)(Q.ONE_OF),repeatable:!1};Me.OVERRIDE_DEFINITION={arguments:[{kind:de.Kind.INPUT_VALUE_DEFINITION,name:(0,se.stringToNameNode)(Q.FROM),type:{kind:de.Kind.NON_NULL_TYPE,type:(0,se.stringToNamedTypeNode)(Q.STRING_SCALAR)}}],kind:de.Kind.DIRECTIVE_DEFINITION,locations:(0,se.stringArrayToNameNodeArray)([Q.FIELD_DEFINITION_UPPER]),name:(0,se.stringToNameNode)(Q.OVERRIDE),repeatable:!1};Me.PROVIDES_DEFINITION={arguments:[{kind:de.Kind.INPUT_VALUE_DEFINITION,name:(0,se.stringToNameNode)(Q.FIELDS),type:$n.REQUIRED_FIELDSET_TYPE_NODE}],kind:de.Kind.DIRECTIVE_DEFINITION,locations:[(0,se.stringToNameNode)(Q.FIELD_DEFINITION_UPPER)],name:(0,se.stringToNameNode)(Q.PROVIDES),repeatable:!1};Me.REQUIRE_FETCH_REASONS_DEFINITION={kind:de.Kind.DIRECTIVE_DEFINITION,locations:(0,se.stringArrayToNameNodeArray)([Q.FIELD_DEFINITION_UPPER,Q.INTERFACE_UPPER,Q.OBJECT_UPPER]),name:(0,se.stringToNameNode)(Q.REQUIRE_FETCH_REASONS),repeatable:!0};Me.REQUIRES_DEFINITION={arguments:[{kind:de.Kind.INPUT_VALUE_DEFINITION,name:(0,se.stringToNameNode)(Q.FIELDS),type:$n.REQUIRED_FIELDSET_TYPE_NODE}],kind:de.Kind.DIRECTIVE_DEFINITION,locations:[(0,se.stringToNameNode)(Q.FIELD_DEFINITION_UPPER)],name:(0,se.stringToNameNode)(Q.REQUIRES),repeatable:!1};Me.REQUIRES_SCOPES_DEFINITION={arguments:[{kind:de.Kind.INPUT_VALUE_DEFINITION,name:(0,se.stringToNameNode)(Q.SCOPES),type:{kind:de.Kind.NON_NULL_TYPE,type:{kind:de.Kind.LIST_TYPE,type:{kind:de.Kind.NON_NULL_TYPE,type:{kind:de.Kind.LIST_TYPE,type:{kind:de.Kind.NON_NULL_TYPE,type:(0,se.stringToNamedTypeNode)(Q.SCOPE_SCALAR)}}}}}}],kind:de.Kind.DIRECTIVE_DEFINITION,locations:(0,se.stringArrayToNameNodeArray)([Q.ENUM_UPPER,Q.FIELD_DEFINITION_UPPER,Q.INTERFACE_UPPER,Q.OBJECT_UPPER,Q.SCALAR_UPPER]),name:(0,se.stringToNameNode)(Q.REQUIRES_SCOPES),repeatable:!1};Me.SEMANTIC_NON_NULL_DEFINITION={arguments:[{kind:de.Kind.INPUT_VALUE_DEFINITION,name:(0,se.stringToNameNode)(Q.LEVELS),type:{kind:de.Kind.NON_NULL_TYPE,type:{kind:de.Kind.LIST_TYPE,type:{kind:de.Kind.NON_NULL_TYPE,type:(0,se.stringToNamedTypeNode)(Q.INT_SCALAR)}}},defaultValue:{kind:de.Kind.LIST,values:[{kind:de.Kind.INT,value:"0"}]}}],kind:de.Kind.DIRECTIVE_DEFINITION,locations:[(0,se.stringToNameNode)(Q.FIELD_DEFINITION_UPPER)],name:(0,se.stringToNameNode)(Q.SEMANTIC_NON_NULL),repeatable:!1};Me.SHAREABLE_DEFINITION={kind:de.Kind.DIRECTIVE_DEFINITION,locations:(0,se.stringArrayToNameNodeArray)([Q.FIELD_DEFINITION_UPPER,Q.OBJECT_UPPER]),name:(0,se.stringToNameNode)(Q.SHAREABLE),repeatable:!0};Me.SPECIFIED_BY_DEFINITION={arguments:[{kind:de.Kind.INPUT_VALUE_DEFINITION,name:(0,se.stringToNameNode)(Q.URL_LOWER),type:$n.REQUIRED_STRING_TYPE_NODE}],kind:de.Kind.DIRECTIVE_DEFINITION,locations:(0,se.stringArrayToNameNodeArray)([Q.SCALAR_UPPER]),name:(0,se.stringToNameNode)(Q.SPECIFIED_BY),repeatable:!1};Me.SUBSCRIPTION_FILTER_DEFINITION={arguments:[{kind:de.Kind.INPUT_VALUE_DEFINITION,name:(0,se.stringToNameNode)(Q.CONDITION),type:{kind:de.Kind.NON_NULL_TYPE,type:(0,se.stringToNamedTypeNode)(Q.SUBSCRIPTION_FILTER_CONDITION)}}],kind:de.Kind.DIRECTIVE_DEFINITION,locations:(0,se.stringArrayToNameNodeArray)([Q.FIELD_DEFINITION_UPPER]),name:(0,se.stringToNameNode)(Q.SUBSCRIPTION_FILTER),repeatable:!1};Me.TAG_DEFINITION={arguments:[{kind:de.Kind.INPUT_VALUE_DEFINITION,name:(0,se.stringToNameNode)(Q.NAME),type:{kind:de.Kind.NON_NULL_TYPE,type:(0,se.stringToNamedTypeNode)(Q.STRING_SCALAR)}}],kind:de.Kind.DIRECTIVE_DEFINITION,locations:(0,se.stringArrayToNameNodeArray)([Q.ARGUMENT_DEFINITION_UPPER,Q.ENUM_UPPER,Q.ENUM_VALUE_UPPER,Q.FIELD_DEFINITION_UPPER,Q.INPUT_FIELD_DEFINITION_UPPER,Q.INPUT_OBJECT_UPPER,Q.INTERFACE_UPPER,Q.OBJECT_UPPER,Q.SCALAR_UPPER,Q.UNION_UPPER]),name:(0,se.stringToNameNode)(Q.TAG),repeatable:!0}});var Xh=D(Zg=>{"use strict";d();p();f();Object.defineProperty(Zg,"__esModule",{value:!0});Zg.ExtensionType=void 0;var n3;(function(e){e[e.EXTENDS=0]="EXTENDS",e[e.NONE=1]="NONE",e[e.REAL=2]="REAL"})(n3||(Zg.ExtensionType=n3={}))});var Xf=D(Yc=>{"use strict";d();p();f();Object.defineProperty(Yc,"__esModule",{value:!0});Yc.MAX_INT32=Yc.MAX_SUBSCRIPTION_FILTER_DEPTH=Yc.MAXIMUM_TYPE_NESTING=void 0;Yc.MAXIMUM_TYPE_NESTING=30;Yc.MAX_SUBSCRIPTION_FILTER_DEPTH=5;Yc.MAX_INT32=yr(2,31)-1});var An=D(Nn=>{"use strict";d();p();f();Object.defineProperty(Nn,"__esModule",{value:!0});Nn.getOrThrowError=wRe;Nn.getEntriesNotInHashSet=PRe;Nn.numberToOrdinal=FRe;Nn.addIterableToSet=i3;Nn.addOptionalIterableToSet=LRe;Nn.addSets=CRe;Nn.kindToNodeType=BRe;Nn.getValueOrDefault=URe;Nn.add=kRe;Nn.generateSimpleDirective=qRe;Nn.generateRequiresScopesDirective=xRe;Nn.generateSemanticNonNullDirective=MRe;Nn.copyObjectValueMap=jRe;Nn.addNewObjectValueMapEntries=VRe;Nn.copyArrayValueMap=KRe;Nn.addMapEntries=$Re;Nn.getFirstEntry=GRe;Nn.mergeSetValueMap=QRe;var Zt=ve(),kn=xr(),RRe=Di(),Zh=Un();function wRe(e,t,r){let n=e.get(t);if(n===void 0)throw(0,RRe.invalidKeyFatalError)(t,r);return n}function PRe(e,t){let r=[];for(let n of e)t.has(n)||r.push(n);return r}function FRe(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 i3({source:e,target:t}){for(let r of e)t.add(r)}function LRe({source:e,target:t}){if(e)for(let r of e)t.add(r)}function CRe(e,t){let r=new Set(e);for(let n of t)r.add(n);return r}function BRe(e){switch(e){case Zt.Kind.BOOLEAN:return kn.BOOLEAN_SCALAR;case Zt.Kind.ENUM:case Zt.Kind.ENUM_TYPE_DEFINITION:return kn.ENUM;case Zt.Kind.ENUM_TYPE_EXTENSION:return"Enum extension";case Zt.Kind.ENUM_VALUE_DEFINITION:return kn.ENUM_VALUE;case Zt.Kind.FIELD_DEFINITION:return kn.FIELD;case Zt.Kind.FLOAT:return kn.FLOAT_SCALAR;case Zt.Kind.INPUT_OBJECT_TYPE_DEFINITION:return kn.INPUT_OBJECT;case Zt.Kind.INPUT_OBJECT_TYPE_EXTENSION:return"Input Object extension";case Zt.Kind.INPUT_VALUE_DEFINITION:return kn.INPUT_VALUE;case Zt.Kind.INT:return kn.INT_SCALAR;case Zt.Kind.INTERFACE_TYPE_DEFINITION:return kn.INTERFACE;case Zt.Kind.INTERFACE_TYPE_EXTENSION:return"Interface extension";case Zt.Kind.NULL:return kn.NULL;case Zt.Kind.OBJECT:case Zt.Kind.OBJECT_TYPE_DEFINITION:return kn.OBJECT;case Zt.Kind.OBJECT_TYPE_EXTENSION:return"Object extension";case Zt.Kind.STRING:return kn.STRING_SCALAR;case Zt.Kind.SCALAR_TYPE_DEFINITION:return kn.SCALAR;case Zt.Kind.SCALAR_TYPE_EXTENSION:return"Scalar extension";case Zt.Kind.UNION_TYPE_DEFINITION:return kn.UNION;case Zt.Kind.UNION_TYPE_EXTENSION:return"Union extension";default:return e}}function URe(e,t,r){let n=e.get(t);if(n)return n;let i=r();return e.set(t,i),i}function kRe(e,t){return e.has(t)?!1:(e.add(t),!0)}function qRe(e){return{kind:Zt.Kind.DIRECTIVE,name:(0,Zh.stringToNameNode)(e)}}function xRe(e){let t=[];for(let r of e){let n=[];for(let i of r)n.push({kind:Zt.Kind.STRING,value:i});t.push({kind:Zt.Kind.LIST,values:n})}return{kind:Zt.Kind.DIRECTIVE,name:(0,Zh.stringToNameNode)(kn.REQUIRES_SCOPES),arguments:[{kind:Zt.Kind.ARGUMENT,name:(0,Zh.stringToNameNode)(kn.SCOPES),value:{kind:Zt.Kind.LIST,values:t}}]}}function MRe(e){let t=Array.from(e).sort((n,i)=>n-i),r=new Array;for(let n of t)r.push({kind:Zt.Kind.INT,value:n.toString()});return{kind:Zt.Kind.DIRECTIVE,name:(0,Zh.stringToNameNode)(kn.SEMANTIC_NON_NULL),arguments:[{kind:Zt.Kind.ARGUMENT,name:(0,Zh.stringToNameNode)(kn.LEVELS),value:{kind:Zt.Kind.LIST,values:r}}]}}function jRe(e){let t=new Map;for(let[r,n]of e)t.set(r,q({},n));return t}function VRe(e,t){for(let[r,n]of e)t.set(r,q({},n))}function KRe(e){let t=new Map;for(let[r,n]of e)t.set(r,[...n]);return t}function $Re({source:e,target:t}){for(let[r,n]of e)t.set(r,n)}function GRe(e){let{value:t,done:r}=e.values().next();if(!r)return t}function QRe({source:e,target:t}){for(let[r,n]of e){let i=t.get(r);if(!i){t.set(r,new Set(n));continue}i3({source:n,target:i})}}});var HR={};nm(HR,{__addDisposableResource:()=>O3,__assign:()=>eI,__asyncDelegator:()=>N3,__asyncGenerator:()=>y3,__asyncValues:()=>T3,__await:()=>Zf,__awaiter:()=>l3,__classPrivateFieldGet:()=>v3,__classPrivateFieldIn:()=>S3,__classPrivateFieldSet:()=>_3,__createBinding:()=>rI,__decorate:()=>s3,__disposeResources:()=>D3,__esDecorate:()=>YRe,__exportStar:()=>f3,__extends:()=>a3,__generator:()=>d3,__importDefault:()=>I3,__importStar:()=>g3,__makeTemplateObject:()=>E3,__metadata:()=>c3,__param:()=>u3,__propKey:()=>zRe,__read:()=>zR,__rest:()=>o3,__runInitializers:()=>JRe,__setFunctionName:()=>HRe,__spread:()=>p3,__spreadArray:()=>h3,__spreadArrays:()=>m3,__values:()=>tI,default:()=>ZRe});function a3(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");JR(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}function o3(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i=0;u--)(o=e[u])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a}function u3(e,t){return function(r,n){t(r,n,e)}}function YRe(e,t,r,n,i,a){function o(Y){if(Y!==void 0&&typeof Y!="function")throw new TypeError("Function expected");return Y}for(var u=n.kind,l=u==="getter"?"get":u==="setter"?"set":"value",m=!t&&e?n.static?e:e.prototype:null,h=t||(m?Object.getOwnPropertyDescriptor(m,n.name):{}),N,T=!1,O=r.length-1;O>=0;O--){var R={};for(var C in n)R[C]=C==="access"?{}:n[C];for(var C in n.access)R.access[C]=n.access[C];R.addInitializer=function(Y){if(T)throw new TypeError("Cannot add initializers after decoration has completed");a.push(o(Y||null))};var M=(0,r[O])(u==="accessor"?{get:h.get,set:h.set}:h[l],R);if(u==="accessor"){if(M===void 0)continue;if(M===null||typeof M!="object")throw new TypeError("Object expected");(N=o(M.get))&&(h.get=N),(N=o(M.set))&&(h.set=N),(N=o(M.init))&&i.unshift(N)}else(N=o(M))&&(u==="field"?i.unshift(N):h[l]=N)}m&&Object.defineProperty(m,n.name,h),T=!0}function JRe(e,t,r){for(var n=arguments.length>2,i=0;i0&&a[a.length-1])&&(m[0]===6||m[0]===2)){r=0;continue}if(m[0]===3&&(!a||m[1]>a[0]&&m[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function zR(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(u){o={error:u}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return a}function p3(){for(var e=[],t=0;t1||u(T,O)})})}function u(T,O){try{l(n[T](O))}catch(R){N(a[0][3],R)}}function l(T){T.value instanceof Zf?Promise.resolve(T.value.v).then(m,h):N(a[0][2],T)}function m(T){u("next",T)}function h(T){u("throw",T)}function N(T,O){T(O),a.shift(),a.length&&u(a[0][0],a[0][1])}}function N3(e){var t,r;return t={},n("next"),n("throw",function(i){throw i}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(i,a){t[i]=e[i]?function(o){return(r=!r)?{value:Zf(e[i](o)),done:!1}:a?a(o):o}:a}}function T3(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof tI=="function"?tI(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(a){r[a]=e[a]&&function(o){return new Promise(function(u,l){o=e[a](o),i(u,l,o.done,o.value)})}}function i(a,o,u,l){Promise.resolve(l).then(function(m){a({value:m,done:u})},o)}}function E3(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function g3(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&rI(t,e,r);return WRe(t,e),t}function I3(e){return e&&e.__esModule?e:{default:e}}function v3(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)}function _3(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="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 n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r}function S3(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 O3(e,t,r){if(t!=null){if(typeof t!="object"&&typeof t!="function")throw new TypeError("Object expected.");var n;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(n===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose]}if(typeof n!="function")throw new TypeError("Object not disposable.");e.stack.push({value:t,dispose:n,async:r})}else r&&e.stack.push({async:!0});return t}function D3(e){function t(n){e.error=e.hasError?new XRe(n,e.error,"An error was suppressed during disposal."):n,e.hasError=!0}function r(){for(;e.stack.length;){var n=e.stack.pop();try{var i=n.dispose&&n.dispose.call(n.value);if(n.async)return Promise.resolve(i).then(r,function(a){return t(a),r()})}catch(a){t(a)}}if(e.hasError)throw e.error}return r()}var JR,eI,rI,WRe,XRe,ZRe,WR=ja(()=>{"use strict";d();p();f();JR=function(e,t){return JR=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},JR(e,t)};eI=function(){return eI=Object.assign||function(t){for(var r,n=1,i=arguments.length;nW3,__assign:()=>nI,__asyncDelegator:()=>K3,__asyncGenerator:()=>V3,__asyncValues:()=>$3,__await:()=>ep,__awaiter:()=>U3,__classPrivateFieldGet:()=>J3,__classPrivateFieldIn:()=>H3,__classPrivateFieldSet:()=>z3,__createBinding:()=>aI,__decorate:()=>R3,__disposeResources:()=>X3,__esDecorate:()=>P3,__exportStar:()=>q3,__extends:()=>b3,__generator:()=>k3,__importDefault:()=>Y3,__importStar:()=>Q3,__makeTemplateObject:()=>G3,__metadata:()=>B3,__param:()=>w3,__propKey:()=>L3,__read:()=>ew,__rest:()=>A3,__rewriteRelativeImportExtension:()=>Z3,__runInitializers:()=>F3,__setFunctionName:()=>C3,__spread:()=>x3,__spreadArray:()=>j3,__spreadArrays:()=>M3,__values:()=>iI,default:()=>rwe});function b3(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");XR(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}function A3(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i=0;u--)(o=e[u])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a}function w3(e,t){return function(r,n){t(r,n,e)}}function P3(e,t,r,n,i,a){function o(Y){if(Y!==void 0&&typeof Y!="function")throw new TypeError("Function expected");return Y}for(var u=n.kind,l=u==="getter"?"get":u==="setter"?"set":"value",m=!t&&e?n.static?e:e.prototype:null,h=t||(m?Object.getOwnPropertyDescriptor(m,n.name):{}),N,T=!1,O=r.length-1;O>=0;O--){var R={};for(var C in n)R[C]=C==="access"?{}:n[C];for(var C in n.access)R.access[C]=n.access[C];R.addInitializer=function(Y){if(T)throw new TypeError("Cannot add initializers after decoration has completed");a.push(o(Y||null))};var M=(0,r[O])(u==="accessor"?{get:h.get,set:h.set}:h[l],R);if(u==="accessor"){if(M===void 0)continue;if(M===null||typeof M!="object")throw new TypeError("Object expected");(N=o(M.get))&&(h.get=N),(N=o(M.set))&&(h.set=N),(N=o(M.init))&&i.unshift(N)}else(N=o(M))&&(u==="field"?i.unshift(N):h[l]=N)}m&&Object.defineProperty(m,n.name,h),T=!0}function F3(e,t,r){for(var n=arguments.length>2,i=0;i0&&a[a.length-1])&&(m[0]===6||m[0]===2)){r=0;continue}if(m[0]===3&&(!a||m[1]>a[0]&&m[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function ew(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(u){o={error:u}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return a}function x3(){for(var e=[],t=0;t1||l(O,C)})},R&&(i[O]=R(i[O])))}function l(O,R){try{m(n[O](R))}catch(C){T(a[0][3],C)}}function m(O){O.value instanceof ep?Promise.resolve(O.value.v).then(h,N):T(a[0][2],O)}function h(O){l("next",O)}function N(O){l("throw",O)}function T(O,R){O(R),a.shift(),a.length&&l(a[0][0],a[0][1])}}function K3(e){var t,r;return t={},n("next"),n("throw",function(i){throw i}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(i,a){t[i]=e[i]?function(o){return(r=!r)?{value:ep(e[i](o)),done:!1}:a?a(o):o}:a}}function $3(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof iI=="function"?iI(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(a){r[a]=e[a]&&function(o){return new Promise(function(u,l){o=e[a](o),i(u,l,o.done,o.value)})}}function i(a,o,u,l){Promise.resolve(l).then(function(m){a({value:m,done:u})},o)}}function G3(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function Q3(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r=ZR(e),n=0;n{"use strict";d();p();f();XR=function(e,t){return XR=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},XR(e,t)};nI=function(){return nI=Object.assign||function(t){for(var r,n=1,i=arguments.length;n{"use strict";d();p();f()});var tp=D(Ia=>{"use strict";d();p();f();Object.defineProperty(Ia,"__esModule",{value:!0});Ia.asArray=void 0;Ia.isUrl=nW;Ia.isDocumentString=swe;Ia.isValidPath=cwe;Ia.compareStrings=iW;Ia.nodeToString=tw;Ia.compareNodes=lwe;Ia.isSome=dwe;Ia.assertSome=fwe;var nwe=ve(),iwe=/^(https?|wss?|file):\/\//;function nW(e){if(typeof e!="string"||!iwe.test(e))return!1;if(URL.canParse)return URL.canParse(e);try{return!!new URL(e)}catch(t){return!1}}var awe=e=>Array.isArray(e)?e:e?[e]:[];Ia.asArray=awe;var owe=/\.[a-z0-9]+$/i;function swe(e){if(typeof e!="string"||owe.test(e)||nW(e))return!1;try{return(0,nwe.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 uwe=/[‘“!%^<>`\n]/;function cwe(e){return typeof e=="string"&&!uwe.test(e)}function iW(e,t){return String(e)String(t)?1:0}function tw(e){var r,n;let t;return"alias"in e&&(t=(r=e.alias)==null?void 0:r.value),t==null&&"name"in e&&(t=(n=e.name)==null?void 0:n.value),t==null&&(t=e.kind),t}function lwe(e,t,r){let n=tw(e),i=tw(t);return typeof r=="function"?r(n,i):iW(n,i)}function dwe(e){return e!=null}function fwe(e,t="Value should be something"){if(e==null)throw new Error(t)}});var ey=D(sI=>{"use strict";d();p();f();Object.defineProperty(sI,"__esModule",{value:!0});sI.inspect=void 0;var sW=3;function pwe(e){return oI(e,[])}sI.inspect=pwe;function oI(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return mwe(e,t);default:return String(e)}}function aW(e){return(e.name="GraphQLError")?e.toString():`${e.name}: ${e.message}; + ${e.stack}`}function mwe(e,t){if(e===null)return"null";if(e instanceof Error)return e.name==="AggregateError"?aW(e)+` +`+oW(e.errors,t):aW(e);if(t.includes(e))return"[Circular]";let r=[...t,e];if(hwe(e)){let n=e.toJSON();if(n!==e)return typeof n=="string"?n:oI(n,r)}else if(Array.isArray(e))return oW(e,r);return ywe(e,r)}function hwe(e){return typeof e.toJSON=="function"}function ywe(e,t){let r=Object.entries(e);return r.length===0?"{}":t.length>sW?"["+Nwe(e)+"]":"{ "+r.map(([i,a])=>i+": "+oI(a,t)).join(", ")+" }"}function oW(e,t){if(e.length===0)return"[]";if(t.length>sW)return"[Array]";let r=e.length,n=[];for(let i=0;i{"use strict";d();p();f();Object.defineProperty(uI,"__esModule",{value:!0});uI.createGraphQLError=nw;uI.relocatedError=gwe;var rw=ve(),Twe=["message","locations","path","nodes","source","positions","originalError","name","stack","extensions"];function Ewe(e){return e!=null&&typeof e=="object"&&Object.keys(e).every(t=>Twe.includes(t))}function nw(e,t){return t!=null&&t.originalError&&!(t.originalError instanceof Error)&&Ewe(t.originalError)&&(t.originalError=nw(t.originalError.message,t.originalError)),rw.versionInfo.major>=17?new rw.GraphQLError(e,t):new rw.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 gwe(e,t){return nw(e.message,{nodes:e.nodes,source:e.source,positions:e.positions,path:t==null?e.path:t,originalError:e,extensions:e.extensions})}});var ty=D(bi=>{"use strict";d();p();f();Object.defineProperty(bi,"__esModule",{value:!0});bi.isPromise=lI;bi.isActualPromise=cW;bi.handleMaybePromise=Jc;bi.fakePromise=Ko;bi.createDeferredPromise=Iwe;bi.iterateAsync=lW;bi.iterateAsyncVoid=lW;bi.fakeRejectPromise=id;bi.mapMaybePromise=vwe;bi.mapAsyncIterator=_we;bi.promiseLikeFinally=dW;bi.unfakePromise=fW;var dI=Symbol.for("@whatwg-node/promise-helpers/FakePromise");function lI(e){return(e==null?void 0:e.then)!=null}function cW(e){let t=e;return t&&t.then&&t.catch&&t.finally}function Jc(e,t,r,n){let i=Ko().then(e).then(t,r);return n&&(i=i.finally(n)),fW(i)}function Ko(e){return e&&cW(e)?e:lI(e)?{then:(t,r)=>Ko(e.then(t,r)),catch:t=>Ko(e.then(r=>r,t)),finally:t=>Ko(t?dW(e,t):e),[Symbol.toStringTag]:"Promise"}:{then(t){if(t)try{return Ko(t(e))}catch(r){return id(r)}return this},catch(){return this},finally(t){if(t)try{return Ko(t()).then(()=>e,()=>e)}catch(r){return id(r)}return this},[Symbol.toStringTag]:"Promise",__fakePromiseValue:e,[dI]:"resolved"}}function Iwe(){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 lW(e,t,r){if((e==null?void 0:e.length)===0)return;let n=e[Symbol.iterator](),i=0;function a(){let{done:o,value:u}=n.next();if(o)return;let l=!1;function m(){l=!0}return Jc(function(){return t(u,m,i++)},function(N){if(N&&(r==null||r.push(N)),!l)return a()})}return a()}function id(e){return{then(t,r){if(r)try{return Ko(r(e))}catch(n){return id(n)}return this},catch(t){if(t)try{return Ko(t(e))}catch(r){return id(r)}return this},finally(t){if(t)try{t()}catch(r){return id(r)}return this},__fakeRejectError:e,[Symbol.toStringTag]:"Promise",[dI]:"rejected"}}function vwe(e,t,r){return Jc(()=>e,t,r)}function _we(e,t,r,n){Symbol.asyncIterator in e&&(e=e[Symbol.asyncIterator]());let i,a,o;if(n){let m;o=h=>(m||(m=Jc(n,()=>h,()=>h)),m)}typeof e.return=="function"&&(i=e.return,a=m=>{let h=()=>{throw m};return i.call(e).then(h,h)});function u(m){return m.done?o?o(m):m:Jc(()=>m.value,h=>Jc(()=>t(h),uW,a))}let l;if(r){let m,h=r;l=N=>(m||(m=Jc(()=>N,T=>Jc(()=>h(T),uW,a))),m)}return{next(){return e.next().then(u,l)},return(){let m=i?i.call(e).then(u,l):Ko({value:void 0,done:!0});return o?m.then(o):m},throw(m){return typeof e.throw=="function"?e.throw(m).then(u,l):a?a(m):id(m)},[Symbol.asyncIterator](){return this}}}function uW(e){return{value:e,done:!1}}function Swe(e){return(e==null?void 0:e[dI])==="resolved"}function Owe(e){return(e==null?void 0:e[dI])==="rejected"}function dW(e,t){return"finally"in e?e.finally(t):e.then(r=>{let n=t();return lI(n)?n.then(()=>r):r},r=>{let n=t();if(lI(n))return n.then(()=>{throw r});throw r})}function fW(e){if(Swe(e))return e.__fakePromiseValue;if(Owe(e))throw e.__fakeRejectError;return e}});var fI=D(zc=>{"use strict";d();p();f();Object.defineProperty(zc,"__esModule",{value:!0});zc.isPromise=void 0;zc.isIterableObject=Dwe;zc.isObjectLike=bwe;zc.promiseReduce=Awe;zc.hasOwnProperty=Rwe;var pW=ty();Object.defineProperty(zc,"isPromise",{enumerable:!0,get:function(){return pW.isPromise}});function Dwe(e){return e!=null&&typeof e=="object"&&Symbol.iterator in e}function bwe(e){return typeof e=="object"&&e!==null}function Awe(e,t,r){let n=r;for(let i of e)n=(0,pW.handleMaybePromise)(()=>n,a=>t(a,i));return n}function Rwe(e,t){return Object.prototype.hasOwnProperty.call(e,t)}});var ow=D(aw=>{"use strict";d();p();f();Object.defineProperty(aw,"__esModule",{value:!0});aw.getArgumentValues=Pwe;var iw=ey(),ad=ve(),pI=cI(),wwe=fI();function Pwe(e,t,r={}){var o;let n={},a=((o=t.arguments)!=null?o:[]).reduce((u,l)=>G(q({},u),{[l.name.value]:l}),{});for(let{name:u,type:l,defaultValue:m}of e.args){let h=a[u];if(!h){if(m!==void 0)n[u]=m;else if((0,ad.isNonNullType)(l))throw(0,pI.createGraphQLError)(`Argument "${u}" of required type "${(0,iw.inspect)(l)}" was not provided.`,{nodes:[t]});continue}let N=h.value,T=N.kind===ad.Kind.NULL;if(N.kind===ad.Kind.VARIABLE){let R=N.name.value;if(r==null||!(0,wwe.hasOwnProperty)(r,R)){if(m!==void 0)n[u]=m;else if((0,ad.isNonNullType)(l))throw(0,pI.createGraphQLError)(`Argument "${u}" of required type "${(0,iw.inspect)(l)}" was provided the variable "$${R}" which was not provided a runtime value.`,{nodes:[N]});continue}T=r[R]==null}if(T&&(0,ad.isNonNullType)(l))throw(0,pI.createGraphQLError)(`Argument "${u}" of non-null type "${(0,iw.inspect)(l)}" must not be null.`,{nodes:[N]});let O=(0,ad.valueFromAST)(N,l,r);if(O===void 0)throw(0,pI.createGraphQLError)(`Argument "${u}" has invalid value ${(0,ad.print)(N)}.`,{nodes:[N]});n[u]=O}return n}});var Hc=D(Us=>{"use strict";d();p();f();Object.defineProperty(Us,"__esModule",{value:!0});Us.memoize1=Fwe;Us.memoize2=Lwe;Us.memoize3=Cwe;Us.memoize4=Bwe;Us.memoize5=Uwe;Us.memoize2of4=kwe;Us.memoize2of5=qwe;function Fwe(e){let t=new WeakMap;return function(n){let i=t.get(n);if(i===void 0){let a=e(n);return t.set(n,a),a}return i}}function Lwe(e){let t=new WeakMap;return function(n,i){let a=t.get(n);if(!a){a=new WeakMap,t.set(n,a);let u=e(n,i);return a.set(i,u),u}let o=a.get(i);if(o===void 0){let u=e(n,i);return a.set(i,u),u}return o}}function Cwe(e){let t=new WeakMap;return function(n,i,a){let o=t.get(n);if(!o){o=new WeakMap,t.set(n,o);let m=new WeakMap;o.set(i,m);let h=e(n,i,a);return m.set(a,h),h}let u=o.get(i);if(!u){u=new WeakMap,o.set(i,u);let m=e(n,i,a);return u.set(a,m),m}let l=u.get(a);if(l===void 0){let m=e(n,i,a);return u.set(a,m),m}return l}}function Bwe(e){let t=new WeakMap;return function(n,i,a,o){let u=t.get(n);if(!u){u=new WeakMap,t.set(n,u);let N=new WeakMap;u.set(i,N);let T=new WeakMap;N.set(a,T);let O=e(n,i,a,o);return T.set(o,O),O}let l=u.get(i);if(!l){l=new WeakMap,u.set(i,l);let N=new WeakMap;l.set(a,N);let T=e(n,i,a,o);return N.set(o,T),T}let m=l.get(a);if(!m){let N=new WeakMap;l.set(a,N);let T=e(n,i,a,o);return N.set(o,T),T}let h=m.get(o);if(h===void 0){let N=e(n,i,a,o);return m.set(o,N),N}return h}}function Uwe(e){let t=new WeakMap;return function(n,i,a,o,u){let l=t.get(n);if(!l){l=new WeakMap,t.set(n,l);let O=new WeakMap;l.set(i,O);let R=new WeakMap;O.set(a,R);let C=new WeakMap;R.set(o,C);let M=e(n,i,a,o,u);return C.set(u,M),M}let m=l.get(i);if(!m){m=new WeakMap,l.set(i,m);let O=new WeakMap;m.set(a,O);let R=new WeakMap;O.set(o,R);let C=e(n,i,a,o,u);return R.set(u,C),C}let h=m.get(a);if(!h){h=new WeakMap,m.set(a,h);let O=new WeakMap;h.set(o,O);let R=e(n,i,a,o,u);return O.set(u,R),R}let N=h.get(o);if(!N){N=new WeakMap,h.set(o,N);let O=e(n,i,a,o,u);return N.set(u,O),O}let T=N.get(u);if(T===void 0){let O=e(n,i,a,o,u);return N.set(u,O),O}return T}}function kwe(e){let t=new WeakMap;return function(n,i,a,o){let u=t.get(n);if(!u){u=new WeakMap,t.set(n,u);let m=e(n,i,a,o);return u.set(i,m),m}let l=u.get(i);if(l===void 0){let m=e(n,i,a,o);return u.set(i,m),m}return l}}function qwe(e){let t=new WeakMap;return function(n,i,a,o,u){let l=t.get(n);if(!l){l=new WeakMap,t.set(n,l);let h=e(n,i,a,o,u);return l.set(i,h),h}let m=l.get(i);if(m===void 0){let h=e(n,i,a,o,u);return l.set(i,h),h}return m}}});var uw=D(sw=>{"use strict";d();p();f();Object.defineProperty(sw,"__esModule",{value:!0});sw.getDirectiveExtensions=jwe;var mW=ve(),xwe=ow(),Mwe=Hc();function jwe(e,t,r=["directives"]){var o;let n={};if(e.extensions){let u=e.extensions;for(let l of r)u=u==null?void 0:u[l];if(u!=null)for(let l in u){let m=u[l],h=l;if(Array.isArray(m))for(let N of m){let T=n[h];T||(T=[],n[h]=T),T.push(N)}else{let N=n[h];N||(N=[],n[h]=N),N.push(m)}}}let i=(0,Mwe.memoize1)(u=>JSON.stringify(u)),a=[];e.astNode&&a.push(e.astNode),e.extensionASTNodes&&a.push(...e.extensionASTNodes);for(let u of a)if((o=u.directives)!=null&&o.length)for(let l of u.directives){let m=l.name.value,h=n[m];h||(h=[],n[m]=h);let N=t==null?void 0:t.getDirective(m),T={};if(N&&(T=(0,xwe.getArgumentValues)(N,l)),l.arguments)for(let O of l.arguments){let R=O.name.value;if(T[R]==null){let C=N==null?void 0:N.args.find(M=>M.name===R);C&&(T[R]=(0,mW.valueFromAST)(O.value,C.type))}T[R]==null&&(T[R]=(0,mW.valueFromASTUntyped)(O.value))}if(a.length>0&&h.length>0){let O=i(T);if(h.some(R=>i(R)===O))continue}h.push(T)}return n}});var cw=D(rp=>{"use strict";d();p();f();Object.defineProperty(rp,"__esModule",{value:!0});rp.getDirectivesInExtensions=Vwe;rp.getDirectiveInExtensions=Kwe;rp.getDirectives=$we;rp.getDirective=Gwe;var mI=uw();function Vwe(e,t=["directives"]){let r=(0,mI.getDirectiveExtensions)(e,void 0,t);return Object.entries(r).map(([n,i])=>i==null?void 0:i.map(a=>({name:n,args:a}))).flat(1/0).filter(Boolean)}function Kwe(e,t,r=["directives"]){return(0,mI.getDirectiveExtensions)(e,void 0,r)[t]}function $we(e,t,r=["directives"]){let n=(0,mI.getDirectiveExtensions)(t,e,r);return Object.entries(n).map(([i,a])=>a==null?void 0:a.map(o=>({name:i,args:o}))).flat(1/0).filter(Boolean)}function Gwe(e,t,r,n=["directives"]){return(0,mI.getDirectiveExtensions)(t,e,n)[r]}});var dw=D(lw=>{"use strict";d();p();f();Object.defineProperty(lw,"__esModule",{value:!0});lw.getFieldsWithDirectives=Ywe;var Qwe=ve();function Ywe(e,t={}){let r={},n=["ObjectTypeDefinition","ObjectTypeExtension"];t.includeInputTypes&&(n=[...n,"InputObjectTypeDefinition","InputObjectTypeExtension"]);let i=e.definitions.filter(a=>n.includes(a.kind));for(let a of i){let o=a.name.value;if(a.fields!=null){for(let u of a.fields)if(u.directives&&u.directives.length>0){let l=u.name.value,m=`${o}.${l}`,h=u.directives.map(N=>({name:N.name.value,args:(N.arguments||[]).reduce((T,O)=>G(q({},T),{[O.name.value]:(0,Qwe.valueFromASTUntyped)(O.value)}),{})}));r[m]=h}}}return r}});var hW=D(pw=>{"use strict";d();p();f();Object.defineProperty(pw,"__esModule",{value:!0});pw.getArgumentsWithDirectives=zwe;var fw=ve();function Jwe(e){return e.kind===fw.Kind.OBJECT_TYPE_DEFINITION||e.kind===fw.Kind.OBJECT_TYPE_EXTENSION}function zwe(e){var n;let t={},r=e.definitions.filter(Jwe);for(let i of r)if(i.fields!=null)for(let a of i.fields){let o=(n=a.arguments)==null?void 0:n.filter(l=>{var m;return(m=l.directives)==null?void 0:m.length});if(!(o!=null&&o.length))continue;let u=t[`${i.name.value}.${a.name.value}`]={};for(let l of o){let m=l.directives.map(h=>({name:h.name.value,args:(h.arguments||[]).reduce((N,T)=>G(q({},N),{[T.name.value]:(0,fw.valueFromASTUntyped)(T.value)}),{})}));u[l.name.value]=m}}return t}});var hw=D(mw=>{"use strict";d();p();f();Object.defineProperty(mw,"__esModule",{value:!0});mw.getImplementingTypes=Hwe;function Hwe(e,t){let r=t.getTypeMap(),n=[];for(let i in r){let a=r[i];"getInterfaces"in a&&a.getInterfaces().find(u=>u.name===e)&&n.push(a.name)}return n}});var hI=D(Nw=>{"use strict";d();p();f();Object.defineProperty(Nw,"__esModule",{value:!0});Nw.astFromType=yw;var Wwe=ey(),od=ve();function yw(e){if((0,od.isNonNullType)(e)){let t=yw(e.ofType);if(t.kind===od.Kind.NON_NULL_TYPE)throw new Error(`Invalid type node ${(0,Wwe.inspect)(e)}. Inner type of non-null type cannot be a non-null type.`);return{kind:od.Kind.NON_NULL_TYPE,type:t}}else if((0,od.isListType)(e))return{kind:od.Kind.LIST_TYPE,type:yw(e.ofType)};return{kind:od.Kind.NAMED_TYPE,name:{kind:od.Kind.NAME,value:e.name}}}});var ry=D(Tw=>{"use strict";d();p();f();Object.defineProperty(Tw,"__esModule",{value:!0});Tw.astFromValueUntyped=yI;var $o=ve();function yI(e){if(e===null)return{kind:$o.Kind.NULL};if(e===void 0)return null;if(Array.isArray(e)){let t=[];for(let r of e){let n=yI(r);n!=null&&t.push(n)}return{kind:$o.Kind.LIST,values:t}}if(typeof e=="object"){if(e!=null&&e.toJSON)return yI(e.toJSON());let t=[];for(let r in e){let n=e[r],i=yI(n);i&&t.push({kind:$o.Kind.OBJECT_FIELD,name:{kind:$o.Kind.NAME,value:r},value:i})}return{kind:$o.Kind.OBJECT,fields:t}}if(typeof e=="boolean")return{kind:$o.Kind.BOOLEAN,value:e};if(typeof e=="bigint")return{kind:$o.Kind.INT,value:String(e)};if(typeof e=="number"&&isFinite(e)){let t=String(e);return Xwe.test(t)?{kind:$o.Kind.INT,value:t}:{kind:$o.Kind.FLOAT,value:t}}if(typeof e=="string")return{kind:$o.Kind.STRING,value:e};throw new TypeError(`Cannot convert value to AST: ${e}.`)}var Xwe=/^-?(?:0|[1-9][0-9]*)$/});var NW=D(Ew=>{"use strict";d();p();f();Object.defineProperty(Ew,"__esModule",{value:!0});Ew.astFromValue=ny;var Zwe=ey(),Ji=ve(),ePe=ry(),yW=fI();function ny(e,t){if((0,Ji.isNonNullType)(t)){let r=ny(e,t.ofType);return(r==null?void 0:r.kind)===Ji.Kind.NULL?null:r}if(e===null)return{kind:Ji.Kind.NULL};if(e===void 0)return null;if((0,Ji.isListType)(t)){let r=t.ofType;if((0,yW.isIterableObject)(e)){let n=[];for(let i of e){let a=ny(i,r);a!=null&&n.push(a)}return{kind:Ji.Kind.LIST,values:n}}return ny(e,r)}if((0,Ji.isInputObjectType)(t)){if(!(0,yW.isObjectLike)(e))return null;let r=[];for(let n of Object.values(t.getFields())){let i=ny(e[n.name],n.type);i&&r.push({kind:Ji.Kind.OBJECT_FIELD,name:{kind:Ji.Kind.NAME,value:n.name},value:i})}return{kind:Ji.Kind.OBJECT,fields:r}}if((0,Ji.isLeafType)(t)){let r=t.serialize(e);return r==null?null:(0,Ji.isEnumType)(t)?{kind:Ji.Kind.ENUM,value:r}:t.name==="ID"&&typeof r=="string"&&tPe.test(r)?{kind:Ji.Kind.INT,value:r}:(0,ePe.astFromValueUntyped)(r)}console.assert(!1,"Unexpected input type: "+(0,Zwe.inspect)(t))}var tPe=/^-?(?:0|[1-9][0-9]*)$/});var TW=D(gw=>{"use strict";d();p();f();Object.defineProperty(gw,"__esModule",{value:!0});gw.getDescriptionNode=nPe;var rPe=ve();function nPe(e){var t;if((t=e.astNode)!=null&&t.description)return G(q({},e.astNode.description),{block:!0});if(e.description)return{kind:rPe.Kind.STRING,value:e.description,block:!0}}});var iy=D(va=>{"use strict";d();p();f();Object.defineProperty(va,"__esModule",{value:!0});va.getRootTypeMap=va.getRootTypes=va.getRootTypeNames=void 0;va.getDefinedRootType=aPe;var iPe=cI(),Iw=Hc();function aPe(e,t,r){let i=(0,va.getRootTypeMap)(e).get(t);if(i==null)throw(0,iPe.createGraphQLError)(`Schema is not configured to execute ${t} operation.`,{nodes:r});return i}va.getRootTypeNames=(0,Iw.memoize1)(function(t){let r=(0,va.getRootTypes)(t);return new Set([...r].map(n=>n.name))});va.getRootTypes=(0,Iw.memoize1)(function(t){let r=(0,va.getRootTypeMap)(t);return new Set(r.values())});va.getRootTypeMap=(0,Iw.memoize1)(function(t){let r=new Map,n=t.getQueryType();n&&r.set("query",n);let i=t.getMutationType();i&&r.set("mutation",i);let a=t.getSubscriptionType();return a&&r.set("subscription",a),r})});var Dw=D(Tn=>{"use strict";d();p();f();Object.defineProperty(Tn,"__esModule",{value:!0});Tn.getDocumentNodeFromSchema=gW;Tn.printSchemaWithDirectives=cPe;Tn.astFromSchema=IW;Tn.astFromDirective=vW;Tn.getDirectiveNodes=io;Tn.astFromArg=_w;Tn.astFromObjectType=_W;Tn.astFromInterfaceType=SW;Tn.astFromUnionType=OW;Tn.astFromInputObjectType=DW;Tn.astFromEnumType=bW;Tn.astFromScalarType=AW;Tn.astFromField=Sw;Tn.astFromInputField=RW;Tn.astFromEnumValue=wW;Tn.makeDeprecatedDirective=PW;Tn.makeDirectiveNode=np;Tn.makeDirectiveNodes=Ow;var Et=ve(),sd=hI(),vw=NW(),oPe=ry(),_a=TW(),EW=cw(),sPe=tp(),uPe=iy();function gW(e,t={}){let r=t.pathToDirectivesInExtensions,n=e.getTypeMap(),i=IW(e,r),a=i!=null?[i]:[],o=e.getDirectives();for(let u of o)(0,Et.isSpecifiedDirective)(u)||a.push(vW(u,e,r));for(let u in n){let l=n[u],m=(0,Et.isSpecifiedScalarType)(l),h=(0,Et.isIntrospectionType)(l);if(!(m||h))if((0,Et.isObjectType)(l))a.push(_W(l,e,r));else if((0,Et.isInterfaceType)(l))a.push(SW(l,e,r));else if((0,Et.isUnionType)(l))a.push(OW(l,e,r));else if((0,Et.isInputObjectType)(l))a.push(DW(l,e,r));else if((0,Et.isEnumType)(l))a.push(bW(l,e,r));else if((0,Et.isScalarType)(l))a.push(AW(l,e,r));else throw new Error(`Unknown type ${l}.`)}return{kind:Et.Kind.DOCUMENT,definitions:a}}function cPe(e,t={}){let r=gW(e,t);return(0,Et.print)(r)}function IW(e,t){let r=new Map([["query",void 0],["mutation",void 0],["subscription",void 0]]),n=[];if(e.astNode!=null&&n.push(e.astNode),e.extensionASTNodes!=null)for(let m of e.extensionASTNodes)n.push(m);for(let m of n)if(m.operationTypes)for(let h of m.operationTypes)r.set(h.operation,h);let i=(0,uPe.getRootTypeMap)(e);for(let[m,h]of r){let N=i.get(m);if(N!=null){let T=(0,sd.astFromType)(N);h!=null?h.type=T:r.set(m,{kind:Et.Kind.OPERATION_TYPE_DEFINITION,operation:m,type:T})}}let a=[...r.values()].filter(sPe.isSome),o=io(e,e,t);if(!a.length&&!o.length)return null;let u={kind:a.length?Et.Kind.SCHEMA_DEFINITION:Et.Kind.SCHEMA_EXTENSION,operationTypes:a,directives:o},l=(0,_a.getDescriptionNode)(e);return l&&(u.description=l),u}function vW(e,t,r){var n,i;return{kind:Et.Kind.DIRECTIVE_DEFINITION,description:(0,_a.getDescriptionNode)(e),name:{kind:Et.Kind.NAME,value:e.name},arguments:(n=e.args)==null?void 0:n.map(a=>_w(a,t,r)),repeatable:e.isRepeatable,locations:((i=e.locations)==null?void 0:i.map(a=>({kind:Et.Kind.NAME,value:a})))||[]}}function io(e,t,r){let n=[],i=(0,EW.getDirectivesInExtensions)(e,r),a;i!=null&&(a=Ow(t,i));let o=null,u=null,l=null;if(a!=null&&(n=a.filter(m=>Et.specifiedDirectives.every(h=>h.name!==m.name.value)),o=a.find(m=>m.name.value==="deprecated"),u=a.find(m=>m.name.value==="specifiedBy"),l=a.find(m=>m.name.value==="oneOf")),e.deprecationReason!=null&&o==null&&(o=PW(e.deprecationReason)),e.specifiedByUrl!=null||e.specifiedByURL!=null&&u==null){let h={url:e.specifiedByUrl||e.specifiedByURL};u=np("specifiedBy",h)}return e.isOneOf&&l==null&&(l=np("oneOf")),o!=null&&n.push(o),u!=null&&n.push(u),l!=null&&n.push(l),n}function _w(e,t,r){var n;return{kind:Et.Kind.INPUT_VALUE_DEFINITION,description:(0,_a.getDescriptionNode)(e),name:{kind:Et.Kind.NAME,value:e.name},type:(0,sd.astFromType)(e.type),defaultValue:e.defaultValue!==void 0&&(n=(0,vw.astFromValue)(e.defaultValue,e.type))!=null?n:void 0,directives:io(e,t,r)}}function _W(e,t,r){return{kind:Et.Kind.OBJECT_TYPE_DEFINITION,description:(0,_a.getDescriptionNode)(e),name:{kind:Et.Kind.NAME,value:e.name},fields:Object.values(e.getFields()).map(n=>Sw(n,t,r)),interfaces:Object.values(e.getInterfaces()).map(n=>(0,sd.astFromType)(n)),directives:io(e,t,r)}}function SW(e,t,r){let n={kind:Et.Kind.INTERFACE_TYPE_DEFINITION,description:(0,_a.getDescriptionNode)(e),name:{kind:Et.Kind.NAME,value:e.name},fields:Object.values(e.getFields()).map(i=>Sw(i,t,r)),directives:io(e,t,r)};return"getInterfaces"in e&&(n.interfaces=Object.values(e.getInterfaces()).map(i=>(0,sd.astFromType)(i))),n}function OW(e,t,r){return{kind:Et.Kind.UNION_TYPE_DEFINITION,description:(0,_a.getDescriptionNode)(e),name:{kind:Et.Kind.NAME,value:e.name},directives:io(e,t,r),types:e.getTypes().map(n=>(0,sd.astFromType)(n))}}function DW(e,t,r){return{kind:Et.Kind.INPUT_OBJECT_TYPE_DEFINITION,description:(0,_a.getDescriptionNode)(e),name:{kind:Et.Kind.NAME,value:e.name},fields:Object.values(e.getFields()).map(n=>RW(n,t,r)),directives:io(e,t,r)}}function bW(e,t,r){return{kind:Et.Kind.ENUM_TYPE_DEFINITION,description:(0,_a.getDescriptionNode)(e),name:{kind:Et.Kind.NAME,value:e.name},values:Object.values(e.getValues()).map(n=>wW(n,t,r)),directives:io(e,t,r)}}function AW(e,t,r){let n=(0,EW.getDirectivesInExtensions)(e,r),i=Ow(t,n),a=e.specifiedByUrl||e.specifiedByURL;if(a&&!i.some(o=>o.name.value==="specifiedBy")){let o={url:a};i.push(np("specifiedBy",o))}return{kind:Et.Kind.SCALAR_TYPE_DEFINITION,description:(0,_a.getDescriptionNode)(e),name:{kind:Et.Kind.NAME,value:e.name},directives:i}}function Sw(e,t,r){return{kind:Et.Kind.FIELD_DEFINITION,description:(0,_a.getDescriptionNode)(e),name:{kind:Et.Kind.NAME,value:e.name},arguments:e.args.map(n=>_w(n,t,r)),type:(0,sd.astFromType)(e.type),directives:io(e,t,r)}}function RW(e,t,r){var n;return{kind:Et.Kind.INPUT_VALUE_DEFINITION,description:(0,_a.getDescriptionNode)(e),name:{kind:Et.Kind.NAME,value:e.name},type:(0,sd.astFromType)(e.type),directives:io(e,t,r),defaultValue:(n=(0,vw.astFromValue)(e.defaultValue,e.type))!=null?n:void 0}}function wW(e,t,r){return{kind:Et.Kind.ENUM_VALUE_DEFINITION,description:(0,_a.getDescriptionNode)(e),name:{kind:Et.Kind.NAME,value:e.name},directives:io(e,t,r)}}function PW(e){return np("deprecated",{reason:e},Et.GraphQLDeprecatedDirective)}function np(e,t,r){let n=[];for(let i in t){let a=t[i],o;if(r!=null){let u=r.args.find(l=>l.name===i);u&&(o=(0,vw.astFromValue)(a,u.type))}o==null&&(o=(0,oPe.astFromValueUntyped)(a)),o!=null&&n.push({kind:Et.Kind.ARGUMENT,name:{kind:Et.Kind.NAME,value:i},value:o})}return{kind:Et.Kind.DIRECTIVE,name:{kind:Et.Kind.NAME,value:e},arguments:n}}function Ow(e,t){let r=[];for(let{name:n,args:i}of t){let a=e==null?void 0:e.getDirective(n);r.push(np(n,i,a))}return r}});var LW=D(NI=>{"use strict";d();p();f();Object.defineProperty(NI,"__esModule",{value:!0});NI.validateGraphQlDocuments=lPe;NI.createDefaultRules=FW;var ay=ve();function lPe(e,t,r=FW()){var u;let n=new Set,i=new Map;for(let l of t)for(let m of l.definitions)m.kind===ay.Kind.FRAGMENT_DEFINITION?i.set(m.name.value,m):n.add(m);let a={kind:ay.Kind.DOCUMENT,definitions:Array.from([...n,...i.values()])},o=(0,ay.validate)(e,a,r);for(let l of o)if(l.stack=l.message,l.locations)for(let m of l.locations)l.stack+=` + at ${(u=l.source)==null?void 0:u.name}:${m.line}:${m.column}`;return o}function FW(){let e=["NoUnusedFragmentsRule","NoUnusedVariablesRule","KnownDirectivesRule"];return ay.versionInfo.major<15&&(e=e.map(t=>t.replace(/Rule$/,""))),ay.specifiedRules.filter(t=>!e.includes(t.name))}});var CW=D(bw=>{"use strict";d();p();f();Object.defineProperty(bw,"__esModule",{value:!0});bw.parseGraphQLJSON=mPe;var dPe=ve();function fPe(e){return e=e.toString(),e.charCodeAt(0)===65279&&(e=e.slice(1)),e}function pPe(e){return JSON.parse(fPe(e))}function mPe(e,t,r){let n=pPe(t);if(n.data&&(n=n.data),n.kind==="Document")return{location:e,document:n};if(n.__schema){let i=(0,dPe.buildClientSchema)(n,r);return{location:e,schema:i}}else if(typeof n=="string")return{location:e,rawSDL:n};throw new Error("Not valid JSON content")}});var Rw=D(Sa=>{"use strict";d();p();f();Object.defineProperty(Sa,"__esModule",{value:!0});Sa.resetComments=yPe;Sa.collectComment=NPe;Sa.pushComment=oy;Sa.printComment=xW;Sa.printWithComments=IPe;Sa.getDescription=_Pe;Sa.getComment=Aw;Sa.getLeadingCommentBlock=MW;Sa.dedentBlockStringValue=jW;Sa.getBlockStringIndentation=VW;var qW=ve(),hPe=80,ip={};function yPe(){ip={}}function NPe(e){var r;let t=(r=e.name)==null?void 0:r.value;if(t!=null)switch(oy(e,t),e.kind){case"EnumTypeDefinition":if(e.values)for(let n of e.values)oy(n,t,n.name.value);break;case"ObjectTypeDefinition":case"InputObjectTypeDefinition":case"InterfaceTypeDefinition":if(e.fields){for(let n of e.fields)if(oy(n,t,n.name.value),vPe(n)&&n.arguments)for(let i of n.arguments)oy(i,t,n.name.value,i.name.value)}break}}function oy(e,t,r,n){let i=Aw(e);if(typeof i!="string"||i.length===0)return;let a=[t];r&&(a.push(r),n&&a.push(n));let o=a.join(".");ip[o]||(ip[o]=[]),ip[o].push(i)}function xW(e){return` # `+e.replace(/\n/g,` -# `)}function je(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 tne(e){return(t,n,r,i,a)=>{var p;let o=[],u=i.reduce((E,h)=>(["fields","arguments","values"].includes(h)&&E.name&&o.push(E.name.value),E[h]),a[0]),l=[...o,(p=u==null?void 0:u.name)==null?void 0:p.value].filter(Boolean).join("."),d=[];return t.kind.includes("Definition")&&Hl[l]&&d.push(...Hl[l]),je([...d.map(Rk),t.description,e(t,n,r,i,a)],` -`)}}function tp(e){return e&&` ${e.replace(/\n/g,` - `)}`}function va(e){return e&&e.length!==0?`{ -${tp(je(e,` +# `)}function $e(e,t){return e?e.filter(r=>r).join(t||""):""}function BW(e){var t;return(t=e==null?void 0:e.some(r=>r.includes(` +`)))!=null?t:!1}function TPe(e){return(t,r,n,i,a)=>{var h;let o=[],u=i.reduce((N,T)=>(["fields","arguments","values"].includes(T)&&N.name&&o.push(N.name.value),N[T]),a[0]),l=[...o,(h=u==null?void 0:u.name)==null?void 0:h.value].filter(Boolean).join("."),m=[];return t.kind.includes("Definition")&&ip[l]&&m.push(...ip[l]),$e([...m.map(xW),t.description,e(t,r,n,i,a)],` +`)}}function sy(e){return e&&` ${e.replace(/\n/g,` + `)}`}function ao(e){return e&&e.length!==0?`{ +${sy($e(e,` `))} -}`:""}function Rn(e,t,n){return t?e+t+(n||""):""}function nne(e,t=!1){let n=e.replace(/\\/g,"\\\\").replace(/"""/g,'\\"""');return(e[0]===" "||e[0]===" ")&&e.indexOf(` -`)===-1?`"""${n.replace(/"$/,`" +}`:""}function jr(e,t,r){return t?e+t+(r||""):""}function EPe(e,t=!1){let r=e.replace(/\\/g,"\\\\").replace(/"""/g,'\\"""');return(e[0]===" "||e[0]===" ")&&e.indexOf(` +`)===-1?`"""${r.replace(/"$/,`" `)}"""`:`""" -${t?n:tp(n)} -"""`}var Dk={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>je(e.definitions,` +${t?r:sy(r)} +"""`}var UW={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>$e(e.definitions,` -`)},OperationDefinition:{leave:e=>{let t=Rn("(",je(e.variableDefinitions,", "),")");return je([e.operation,je([e.name,t]),je(e.directives," ")]," ")+" "+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r})=>e+": "+t+Rn(" = ",n)+Rn(" ",je(r," "))},SelectionSet:{leave:({selections:e})=>va(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:i}){let a=Rn("",e,": ")+t,o=a+Rn("(",je(n,", "),")");return o.length>Xte&&(o=a+Rn(`( -`,tp(je(n,` +`)},OperationDefinition:{leave:e=>{let t=jr("(",$e(e.variableDefinitions,", "),")");return $e([e.operation,$e([e.name,t]),$e(e.directives," ")]," ")+" "+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:r,directives:n})=>e+": "+t+jr(" = ",r)+jr(" ",$e(n," "))},SelectionSet:{leave:({selections:e})=>ao(e)},Field:{leave({alias:e,name:t,arguments:r,directives:n,selectionSet:i}){let a=jr("",e,": ")+t,o=a+jr("(",$e(r,", "),")");return o.length>hPe&&(o=a+jr(`( +`,sy($e(r,` `)),` -)`)),je([o,je(r," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+Rn(" ",je(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>je(["...",Rn("on ",e),je(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:i})=>`fragment ${e}${Rn("(",je(n,", "),")")} on ${t} ${Rn("",je(r," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?nne(e):JSON.stringify(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+Rn("(",je(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({directives:e,operationTypes:t})=>je(["schema",je(e," "),va(t)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({name:e,directives:t})=>je(["scalar",e,je(t," ")]," ")},ObjectTypeDefinition:{leave:({name:e,interfaces:t,directives:n,fields:r})=>je(["type",e,Rn("implements ",je(t," & ")),je(n," "),va(r)]," ")},FieldDefinition:{leave:({name:e,arguments:t,type:n,directives:r})=>e+(Ok(t)?Rn(`( -`,tp(je(t,` +)`)),$e([o,$e(n," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+jr(" ",$e(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:r})=>$e(["...",jr("on ",e),$e(t," "),r]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:r,directives:n,selectionSet:i})=>`fragment ${e}${jr("(",$e(r,", "),")")} on ${t} ${jr("",$e(n," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?EPe(e):JSON.stringify(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+$e(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+$e(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+jr("(",$e(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({directives:e,operationTypes:t})=>$e(["schema",$e(e," "),ao(t)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({name:e,directives:t})=>$e(["scalar",e,$e(t," ")]," ")},ObjectTypeDefinition:{leave:({name:e,interfaces:t,directives:r,fields:n})=>$e(["type",e,jr("implements ",$e(t," & ")),$e(r," "),ao(n)]," ")},FieldDefinition:{leave:({name:e,arguments:t,type:r,directives:n})=>e+(BW(t)?jr(`( +`,sy($e(t,` `)),` -)`):Rn("(",je(t,", "),")"))+": "+n+Rn(" ",je(r," "))},InputValueDefinition:{leave:({name:e,type:t,defaultValue:n,directives:r})=>je([e+": "+t,Rn("= ",n),je(r," ")]," ")},InterfaceTypeDefinition:{leave:({name:e,interfaces:t,directives:n,fields:r})=>je(["interface",e,Rn("implements ",je(t," & ")),je(n," "),va(r)]," ")},UnionTypeDefinition:{leave:({name:e,directives:t,types:n})=>je(["union",e,je(t," "),Rn("= ",je(n," | "))]," ")},EnumTypeDefinition:{leave:({name:e,directives:t,values:n})=>je(["enum",e,je(t," "),va(n)]," ")},EnumValueDefinition:{leave:({name:e,directives:t})=>je([e,je(t," ")]," ")},InputObjectTypeDefinition:{leave:({name:e,directives:t,fields:n})=>je(["input",e,je(t," "),va(n)]," ")},DirectiveDefinition:{leave:({name:e,arguments:t,repeatable:n,locations:r})=>"directive @"+e+(Ok(t)?Rn(`( -`,tp(je(t,` +)`):jr("(",$e(t,", "),")"))+": "+r+jr(" ",$e(n," "))},InputValueDefinition:{leave:({name:e,type:t,defaultValue:r,directives:n})=>$e([e+": "+t,jr("= ",r),$e(n," ")]," ")},InterfaceTypeDefinition:{leave:({name:e,interfaces:t,directives:r,fields:n})=>$e(["interface",e,jr("implements ",$e(t," & ")),$e(r," "),ao(n)]," ")},UnionTypeDefinition:{leave:({name:e,directives:t,types:r})=>$e(["union",e,$e(t," "),jr("= ",$e(r," | "))]," ")},EnumTypeDefinition:{leave:({name:e,directives:t,values:r})=>$e(["enum",e,$e(t," "),ao(r)]," ")},EnumValueDefinition:{leave:({name:e,directives:t})=>$e([e,$e(t," ")]," ")},InputObjectTypeDefinition:{leave:({name:e,directives:t,fields:r})=>$e(["input",e,$e(t," "),ao(r)]," ")},DirectiveDefinition:{leave:({name:e,arguments:t,repeatable:r,locations:n})=>"directive @"+e+(BW(t)?jr(`( +`,sy($e(t,` `)),` -)`):Rn("(",je(t,", "),")"))+(n?" repeatable":"")+" on "+je(r," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>je(["extend schema",je(e," "),va(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,Rn("implements ",je(t," & ")),je(n," "),va(r)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>je(["extend interface",e,Rn("implements ",je(t," & ")),je(n," "),va(r)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>je(["extend union",e,je(t," "),Rn("= ",je(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>je(["extend enum",e,je(t," "),va(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>je(["extend input",e,je(t," "),va(n)]," ")}},rne=Object.keys(Dk).reduce((e,t)=>G(M({},e),{[t]:{leave:tne(Dk[t].leave)}}),{});function ine(e){return(0,Ak.visit)(e,rne)}function ane(e){return e.kind==="FieldDefinition"}function sne(e,t){if(e.description!=null)return e.description.value;if(t!=null&&t.commentDescriptions)return BS(e)}function BS(e){let t=Pk(e);if(t!==void 0)return Fk(` -${t}`)}function Pk(e){let t=e.loc;if(!t)return;let n=[],r=t.startToken.prev;for(;r!=null&&r.kind===Ak.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 Fk(e){let t=e.split(/\r\n|[\n\r]/g),n=wk(t);if(n!==0)for(let r=1;r0&&bk(t[0]);)t.shift();for(;t.length>0&&bk(t[t.length-1]);)t.pop();return t.join(` -`)}function wk(e){let t=null;for(let n=1;n{"use strict";m();T();N();Object.defineProperty(np,"__esModule",{value:!0});np.parseGraphQLSDL=one;np.transformCommentsToDescriptions=Uk;np.isDescribable=Bk;var Zi=Se(),Ck=kS();function one(e,t,n={}){let r;try{n.commentDescriptions&&t.includes("#")?(r=Uk(t,n),n.noLocation&&(r=(0,Zi.parse)((0,Zi.print)(r),n))):r=(0,Zi.parse)(new Zi.Source(t,e),n)}catch(i){if(i.message.includes("EOF")&&t.replace(/(\#[^*]*)/g,"").trim()==="")r={kind:Zi.Kind.DOCUMENT,definitions:[]};else throw i}return{location:e,document:r}}function Uk(e,t={}){let n=(0,Zi.parse)(e,G(M({},t),{noLocation:!1}));return(0,Zi.visit)(n,{leave:i=>{if(Bk(i)){let a=(0,Ck.getLeadingCommentBlock)(i);if(a!==void 0){let o=(0,Ck.dedentBlockStringValue)(` +)`):jr("(",$e(t,", "),")"))+(r?" repeatable":"")+" on "+$e(n," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>$e(["extend schema",$e(e," "),ao(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>$e(["extend scalar",e,$e(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>$e(["extend type",e,jr("implements ",$e(t," & ")),$e(r," "),ao(n)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>$e(["extend interface",e,jr("implements ",$e(t," & ")),$e(r," "),ao(n)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:r})=>$e(["extend union",e,$e(t," "),jr("= ",$e(r," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:r})=>$e(["extend enum",e,$e(t," "),ao(r)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:r})=>$e(["extend input",e,$e(t," "),ao(r)]," ")}},gPe=Object.keys(UW).reduce((e,t)=>G(q({},e),{[t]:{leave:TPe(UW[t].leave)}}),{});function IPe(e){return(0,qW.visit)(e,gPe)}function vPe(e){return e.kind==="FieldDefinition"}function _Pe(e,t){if(e.description!=null)return e.description.value;if(t!=null&&t.commentDescriptions)return Aw(e)}function Aw(e){let t=MW(e);if(t!==void 0)return jW(` +${t}`)}function MW(e){let t=e.loc;if(!t)return;let r=[],n=t.startToken.prev;for(;n!=null&&n.kind===qW.TokenKind.COMMENT&&n.next!=null&&n.prev!=null&&n.line+1===n.next.line&&n.line!==n.prev.line;){let i=String(n.value);r.push(i),n=n.prev}return r.length>0?r.reverse().join(` +`):void 0}function jW(e){let t=e.split(/\r\n|[\n\r]/g),r=VW(t);if(r!==0)for(let n=1;n0&&kW(t[0]);)t.shift();for(;t.length>0&&kW(t[t.length-1]);)t.pop();return t.join(` +`)}function VW(e){let t=null;for(let r=1;r{"use strict";d();p();f();Object.defineProperty(uy,"__esModule",{value:!0});uy.parseGraphQLSDL=SPe;uy.transformCommentsToDescriptions=GW;uy.isDescribable=QW;var Oa=ve(),$W=Rw();function SPe(e,t,r={}){let n;try{r.commentDescriptions&&t.includes("#")?(n=GW(t,r),r.noLocation&&(n=(0,Oa.parse)((0,Oa.print)(n),r))):n=(0,Oa.parse)(new Oa.Source(t,e),r)}catch(i){if(i.message.includes("EOF")&&t.replace(/(\#[^*]*)/g,"").trim()==="")n={kind:Oa.Kind.DOCUMENT,definitions:[]};else throw i}return{location:e,document:n}}function GW(e,t={}){let r=(0,Oa.parse)(e,G(q({},t),{noLocation:!1}));return(0,Oa.visit)(r,{leave:i=>{if(QW(i)){let a=(0,$W.getLeadingCommentBlock)(i);if(a!==void 0){let o=(0,$W.dedentBlockStringValue)(` `+a),u=o.includes(` -`);return i.description?G(M({},i),{description:G(M({},i.description),{value:i.description.value+` -`+o,block:!0})}):G(M({},i),{description:{kind:Zi.Kind.STRING,value:o,block:u}})}}}})}function Bk(e){return(0,Zi.isTypeSystemDefinitionNode)(e)||e.kind===Zi.Kind.FIELD_DEFINITION||e.kind===Zi.Kind.INPUT_VALUE_DEFINITION||e.kind===Zi.Kind.ENUM_VALUE_DEFINITION}});var Gk=F(VS=>{"use strict";m();T();N();Object.defineProperty(VS,"__esModule",{value:!0});VS.buildOperationNodeForField=cne;var dt=Se(),une=Hf(),Vk=Xf(),qS=[],jT=new Map;function jk(e){qS.push(e)}function Mk(){qS=[]}function xk(){jT=new Map}function cne({schema:e,kind:t,field:n,models:r,ignore:i=[],depthLimit:a,circularReferenceDepth:o,argNames:u,selectedFields:l=!0}){Mk(),xk();let d=(0,Vk.getRootTypeNames)(e),p=lne({schema:e,fieldName:n,kind:t,models:r||[],ignore:i,depthLimit:a||1/0,circularReferenceDepth:o||1,argNames:u,selectedFields:l,rootTypeNames:d});return p.variableDefinitions=[...qS],Mk(),xk(),p}function lne({schema:e,fieldName:t,kind:n,models:r,ignore:i,depthLimit:a,circularReferenceDepth:o,argNames:u,selectedFields:l,rootTypeNames:d}){let p=(0,Vk.getDefinedRootType)(e,n),E=p.getFields()[t],h=`${t}_${n}`;if(E.args)for(let v of E.args){let R=v.name;(!u||u.includes(R))&&jk(Kk(v,R))}return{kind:dt.Kind.OPERATION_DEFINITION,operation:n,name:{kind:dt.Kind.NAME,value:h},variableDefinitions:[],selectionSet:{kind:dt.Kind.SELECTION_SET,selections:[$k({type:p,field:E,models:r,firstCall:!0,path:[],ancestors:[],ignore:i,depthLimit:a,circularReferenceDepth:o,schema:e,depth:0,argNames:u,selectedFields:l,rootTypeNames:d})]}}}function xS({parent:e,type:t,models:n,firstCall:r,path:i,ancestors:a,ignore:o,depthLimit:u,circularReferenceDepth:l,schema:d,depth:p,argNames:E,selectedFields:h,rootTypeNames:v}){if(!(typeof h=="boolean"&&p>u)){if((0,dt.isUnionType)(t)){let R=t.getTypes();return{kind:dt.Kind.SELECTION_SET,selections:R.filter(U=>!MS([...a,U],{depth:l})).map(U=>({kind:dt.Kind.INLINE_FRAGMENT,typeCondition:{kind:dt.Kind.NAMED_TYPE,name:{kind:dt.Kind.NAME,value:U.name}},selectionSet:xS({parent:t,type:U,models:n,path:i,ancestors:a,ignore:o,depthLimit:u,circularReferenceDepth:l,schema:d,depth:p,argNames:E,selectedFields:h,rootTypeNames:v})})).filter(U=>{var q,X;return((X=(q=U==null?void 0:U.selectionSet)==null?void 0:q.selections)==null?void 0:X.length)>0})}}if((0,dt.isInterfaceType)(t)){let R=Object.values(d.getTypeMap()).filter(U=>(0,dt.isObjectType)(U)&&U.getInterfaces().includes(t));return{kind:dt.Kind.SELECTION_SET,selections:R.filter(U=>!MS([...a,U],{depth:l})).map(U=>({kind:dt.Kind.INLINE_FRAGMENT,typeCondition:{kind:dt.Kind.NAMED_TYPE,name:{kind:dt.Kind.NAME,value:U.name}},selectionSet:xS({parent:t,type:U,models:n,path:i,ancestors:a,ignore:o,depthLimit:u,circularReferenceDepth:l,schema:d,depth:p,argNames:E,selectedFields:h,rootTypeNames:v})})).filter(U=>{var q,X;return((X=(q=U==null?void 0:U.selectionSet)==null?void 0:q.selections)==null?void 0:X.length)>0})}}if((0,dt.isObjectType)(t)&&!v.has(t.name)){let R=o.includes(t.name)||o.includes(`${e.name}.${i[i.length-1]}`),U=n.includes(t.name);if(!r&&U&&!R)return{kind:dt.Kind.SELECTION_SET,selections:[{kind:dt.Kind.FIELD,name:{kind:dt.Kind.NAME,value:"id"}}]};let q=t.getFields();return{kind:dt.Kind.SELECTION_SET,selections:Object.keys(q).filter(X=>!MS([...a,(0,dt.getNamedType)(q[X].type)],{depth:l})).map(X=>{let te=typeof h=="object"?h[X]:!0;return te?$k({type:t,field:q[X],models:n,path:[...i,X],ancestors:a,ignore:o,depthLimit:u,circularReferenceDepth:l,schema:d,depth:p,argNames:E,selectedFields:te,rootTypeNames:v}):null}).filter(X=>{var te,ae;return X==null?!1:"selectionSet"in X?!!((ae=(te=X.selectionSet)==null?void 0:te.selections)!=null&&ae.length):!0})}}}}function Kk(e,t){function n(i){return(0,dt.isListType)(i)?{kind:dt.Kind.LIST_TYPE,type:n(i.ofType)}:(0,dt.isNonNullType)(i)?{kind:dt.Kind.NON_NULL_TYPE,type:n(i.ofType)}:{kind:dt.Kind.NAMED_TYPE,name:{kind:dt.Kind.NAME,value:i.name}}}let r;try{let i=(0,dt.astFromValue)(e.defaultValue,e.type);i==null?r=void 0:r=i}catch(i){let a=(0,une.astFromValueUntyped)(e.defaultValue);a==null?r=void 0:r=a}return{kind:dt.Kind.VARIABLE_DEFINITION,variable:{kind:dt.Kind.VARIABLE,name:{kind:dt.Kind.NAME,value:t||e.name}},type:n(e.type),defaultValue:r}}function qk(e,t){return[...t,e].join("_")}function $k({type:e,field:t,models:n,firstCall:r,path:i,ancestors:a,ignore:o,depthLimit:u,circularReferenceDepth:l,schema:d,depth:p,argNames:E,selectedFields:h,rootTypeNames:v}){let R=(0,dt.getNamedType)(t.type),U=[],q=!1;if(t.args&&t.args.length&&(U=t.args.map(me=>{let ye=qk(me.name,i);return E&&!E.includes(ye)?((0,dt.isNonNullType)(me.type)&&(q=!0),null):(r||jk(Kk(me,ye)),{kind:dt.Kind.ARGUMENT,name:{kind:dt.Kind.NAME,value:me.name},value:{kind:dt.Kind.VARIABLE,name:{kind:dt.Kind.NAME,value:qk(me.name,i)}}})}).filter(Boolean)),q)return null;let X=[...i,t.name],te=X.join("."),ae=t.name;return jT.has(te)&&jT.get(te)!==t.type.toString()&&(ae+=t.type.toString().replace(/!/g,"NonNull").replace(/\[/g,"List").replace(/\]/g,"")),jT.set(te,t.type.toString()),!(0,dt.isScalarType)(R)&&!(0,dt.isEnumType)(R)?G(M({kind:dt.Kind.FIELD,name:{kind:dt.Kind.NAME,value:t.name}},ae!==t.name&&{alias:{kind:dt.Kind.NAME,value:ae}}),{selectionSet:xS({parent:e,type:R,models:n,firstCall:r,path:X,ancestors:[...a,e],ignore:o,depthLimit:u,circularReferenceDepth:l,schema:d,depth:p+1,argNames:E,selectedFields:h,rootTypeNames:v})||void 0,arguments:U}):G(M({kind:dt.Kind.FIELD,name:{kind:dt.Kind.NAME,value:t.name}},ae!==t.name&&{alias:{kind:dt.Kind.NAME,value:ae}}),{arguments:U})}function MS(e,t={depth:1}){let n=e[e.length-1];return(0,dt.isScalarType)(n)?!1:e.filter(i=>i.name===n.name).length>t.depth}});var Yk=F(KT=>{"use strict";m();T();N();Object.defineProperty(KT,"__esModule",{value:!0});KT.DirectiveLocation=void 0;var Qk;(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"})(Qk||(KT.DirectiveLocation=Qk={}))});var Rc=F($T=>{"use strict";m();T();N();Object.defineProperty($T,"__esModule",{value:!0});$T.MapperKind=void 0;var Jk;(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"})(Jk||($T.MapperKind=Jk={}))});var KS=F(jS=>{"use strict";m();T();N();Object.defineProperty(jS,"__esModule",{value:!0});jS.getObjectTypeFromTypeMap=fne;var dne=Se();function fne(e,t){if(t){let n=e[t.name];if((0,dne.isObjectType)(n))return n}}});var QS=F(Wl=>{"use strict";m();T();N();Object.defineProperty(Wl,"__esModule",{value:!0});Wl.createNamedStub=$S;Wl.createStub=GS;Wl.isNamedStub=pne;Wl.getBuiltInForStub=mne;var yr=Se();function $S(e,t){let n;return t==="object"?n=yr.GraphQLObjectType:t==="interface"?n=yr.GraphQLInterfaceType:n=yr.GraphQLInputObjectType,new n({name:e,fields:{_fake:{type:yr.GraphQLString}}})}function GS(e,t){switch(e.kind){case yr.Kind.LIST_TYPE:return new yr.GraphQLList(GS(e.type,t));case yr.Kind.NON_NULL_TYPE:return new yr.GraphQLNonNull(GS(e.type,t));default:return t==="output"?$S(e.name.value,"object"):$S(e.name.value,"input")}}function pne(e){if("getFields"in e){let t=e.getFields();for(let n in t)return t[n].name==="_fake"}return!1}function mne(e){switch(e.name){case yr.GraphQLInt.name:return yr.GraphQLInt;case yr.GraphQLFloat.name:return yr.GraphQLFloat;case yr.GraphQLString.name:return yr.GraphQLString;case yr.GraphQLBoolean.name:return yr.GraphQLBoolean;case yr.GraphQLID.name:return yr.GraphQLID;default:return e}}});var GT=F(YS=>{"use strict";m();T();N();Object.defineProperty(YS,"__esModule",{value:!0});YS.rewireTypes=Nne;var tr=Se(),zk=QS();function Nne(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 v=n[h];if(v==null||h.startsWith("__"))continue;let R=v.name;if(!R.startsWith("__")){if(r[R]!=null){console.warn(`Duplicate schema type name ${R} found; keeping the existing one found in the schema`);continue}r[R]=v}}for(let h in r)r[h]=u(r[h]);let i=t.map(h=>a(h));return{typeMap:r,directives:i};function a(h){if((0,tr.isSpecifiedDirective)(h))return h;let v=h.toConfig();return v.args=o(v.args),new tr.GraphQLDirective(v)}function o(h){let v={};for(let R in h){let U=h[R],q=E(U.type);q!=null&&(U.type=q,v[R]=U)}return v}function u(h){if((0,tr.isObjectType)(h)){let v=h.toConfig(),R=G(M({},v),{fields:()=>l(v.fields),interfaces:()=>p(v.interfaces)});return new tr.GraphQLObjectType(R)}else if((0,tr.isInterfaceType)(h)){let v=h.toConfig(),R=G(M({},v),{fields:()=>l(v.fields)});return"interfaces"in R&&(R.interfaces=()=>p(v.interfaces)),new tr.GraphQLInterfaceType(R)}else if((0,tr.isUnionType)(h)){let v=h.toConfig(),R=G(M({},v),{types:()=>p(v.types)});return new tr.GraphQLUnionType(R)}else if((0,tr.isInputObjectType)(h)){let v=h.toConfig(),R=G(M({},v),{fields:()=>d(v.fields)});return new tr.GraphQLInputObjectType(R)}else if((0,tr.isEnumType)(h)){let v=h.toConfig();return new tr.GraphQLEnumType(v)}else if((0,tr.isScalarType)(h)){if((0,tr.isSpecifiedScalarType)(h))return h;let v=h.toConfig();return new tr.GraphQLScalarType(v)}throw new Error(`Unexpected schema type: ${h}`)}function l(h){let v={};for(let R in h){let U=h[R],q=E(U.type);q!=null&&U.args&&(U.type=q,U.args=o(U.args),v[R]=U)}return v}function d(h){let v={};for(let R in h){let U=h[R],q=E(U.type);q!=null&&(U.type=q,v[R]=U)}return v}function p(h){let v=[];for(let R of h){let U=E(R);U!=null&&v.push(U)}return v}function E(h){if((0,tr.isListType)(h)){let v=E(h.ofType);return v!=null?new tr.GraphQLList(v):null}else if((0,tr.isNonNullType)(h)){let v=E(h.ofType);return v!=null?new tr.GraphQLNonNull(v):null}else if((0,tr.isNamedType)(h)){let v=n[h.name];return v===void 0&&(v=(0,zk.isNamedStub)(h)?(0,zk.getBuiltInForStub)(h):u(h),r[v.name]=n[h.name]=v),v!=null?r[v.name]:null}return null}}});var JS=F(Zl=>{"use strict";m();T();N();Object.defineProperty(Zl,"__esModule",{value:!0});Zl.transformInputValue=Xl;Zl.serializeInputValue=Ene;Zl.parseInputValue=hne;Zl.parseInputValueLiteral=yne;var QT=Se(),Tne=Yl();function Xl(e,t,n=null,r=null){if(t==null)return t;let i=(0,QT.getNullableType)(e);if((0,QT.isLeafType)(i))return n!=null?n(i,t):t;if((0,QT.isListType)(i))return(0,Tne.asArray)(t).map(a=>Xl(i.ofType,a,n,r));if((0,QT.isInputObjectType)(i)){let a=i.getFields(),o={};for(let u in t){let l=a[u];l!=null&&(o[u]=Xl(l.type,t[u],n,r))}return r!=null?r(i,o):o}}function Ene(e,t){return Xl(e,t,(n,r)=>{try{return n.serialize(r)}catch(i){return r}})}function hne(e,t){return Xl(e,t,(n,r)=>{try{return n.parseValue(r)}catch(i){return r}})}function yne(e,t){return Xl(e,t,(n,r)=>n.parseLiteral(r,{}))}});var td=F(JT=>{"use strict";m();T();N();Object.defineProperty(JT,"__esModule",{value:!0});JT.mapSchema=gne;JT.correctASTNodes=rp;var at=Se(),ed=KS(),wt=Rc(),Ine=GT(),Hk=JS();function gne(e,t={}){let n=Zk(Xk(zS(Wk(vne(zS(Wk(e.getTypeMap(),e,Hk.serializeInputValue),e,t,u=>(0,at.isLeafType)(u)),e,t),e,Hk.parseInputValue),e,t,u=>!(0,at.isLeafType)(u)),e,t),e,t),r=e.getDirectives(),i=Sne(r,e,t),{typeMap:a,directives:o}=(0,Ine.rewireTypes)(n,i);return new at.GraphQLSchema(G(M({},e.toConfig()),{query:(0,ed.getObjectTypeFromTypeMap)(a,(0,ed.getObjectTypeFromTypeMap)(n,e.getQueryType())),mutation:(0,ed.getObjectTypeFromTypeMap)(a,(0,ed.getObjectTypeFromTypeMap)(n,e.getMutationType())),subscription:(0,ed.getObjectTypeFromTypeMap)(a,(0,ed.getObjectTypeFromTypeMap)(n,e.getSubscriptionType())),types:Object.values(a),directives:o}))}var _ne=["String","ID","Int","Float","Boolean"];function zS(e,t,n,r=()=>!0){let i={};for(let a in e)if(!a.startsWith("__")&&!_ne.includes(a)){let o=e[a];if(o==null||!r(o)){i[a]=o;continue}let u=Dne(t,n,a);if(u==null){i[a]=o;continue}let l=u(o,t);if(l===void 0){i[a]=o;continue}i[a]=l}return i}function vne(e,t,n){let r=Fne(n);return r?zS(e,t,{[wt.MapperKind.ENUM_TYPE]:i=>{let a=i.toConfig(),o=a.values,u={};for(let l in o){let d=o[l],p=r(d,i.name,t,l);if(p===void 0)u[l]=d;else if(Array.isArray(p)){let[E,h]=p;u[E]=h===void 0?d:h}else p!==null&&(u[l]=p)}return rp(new at.GraphQLEnumType(G(M({},a),{values:u})))}},i=>(0,at.isEnumType)(i)):e}function Wk(e,t,n){let r=Zk(e,t,{[wt.MapperKind.ARGUMENT]:i=>{if(i.defaultValue===void 0)return i;let a=YT(e,i.type);if(a!=null)return G(M({},i),{defaultValue:n(a,i.defaultValue)})}});return Xk(r,t,{[wt.MapperKind.INPUT_OBJECT_FIELD]:i=>{if(i.defaultValue===void 0)return i;let a=YT(r,i.type);if(a!=null)return G(M({},i),{defaultValue:n(a,i.defaultValue)})}})}function YT(e,t){if((0,at.isListType)(t)){let n=YT(e,t.ofType);return n!=null?new at.GraphQLList(n):null}else if((0,at.isNonNullType)(t)){let n=YT(e,t.ofType);return n!=null?new at.GraphQLNonNull(n):null}else if((0,at.isNamedType)(t)){let n=e[t.name];return n!=null?n:null}return null}function Xk(e,t,n){let r={};for(let i in e)if(!i.startsWith("__")){let a=e[i];if(!(0,at.isObjectType)(a)&&!(0,at.isInterfaceType)(a)&&!(0,at.isInputObjectType)(a)){r[i]=a;continue}let o=Ane(t,n,i);if(o==null){r[i]=a;continue}let u=a.toConfig(),l=u.fields,d={};for(let p in l){let E=l[p],h=o(E,p,i,t);if(h===void 0)d[p]=E;else if(Array.isArray(h)){let[v,R]=h;R.astNode!=null&&(R.astNode=G(M({},R.astNode),{name:G(M({},R.astNode.name),{value:v})})),d[v]=R===void 0?E:R}else h!==null&&(d[p]=h)}(0,at.isObjectType)(a)?r[i]=rp(new at.GraphQLObjectType(G(M({},u),{fields:d}))):(0,at.isInterfaceType)(a)?r[i]=rp(new at.GraphQLInterfaceType(G(M({},u),{fields:d}))):r[i]=rp(new at.GraphQLInputObjectType(G(M({},u),{fields:d})))}return r}function Zk(e,t,n){let r={};for(let i in e)if(!i.startsWith("__")){let a=e[i];if(!(0,at.isObjectType)(a)&&!(0,at.isInterfaceType)(a)){r[i]=a;continue}let o=Rne(n);if(o==null){r[i]=a;continue}let u=a.toConfig(),l=u.fields,d={};for(let p in l){let E=l[p],h=E.args;if(h==null){d[p]=E;continue}let v=Object.keys(h);if(!v.length){d[p]=E;continue}let R={};for(let U of v){let q=h[U],X=o(q,p,i,t);if(X===void 0)R[U]=q;else if(Array.isArray(X)){let[te,ae]=X;R[te]=ae}else X!==null&&(R[U]=X)}d[p]=G(M({},E),{args:R})}(0,at.isObjectType)(a)?r[i]=new at.GraphQLObjectType(G(M({},u),{fields:d})):(0,at.isInterfaceType)(a)?r[i]=new at.GraphQLInterfaceType(G(M({},u),{fields:d})):r[i]=new at.GraphQLInputObjectType(G(M({},u),{fields:d}))}return r}function Sne(e,t,n){let r=Pne(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 One(e,t){var i,a,o;let n=e.getType(t),r=[wt.MapperKind.TYPE];return(0,at.isObjectType)(n)?(r.push(wt.MapperKind.COMPOSITE_TYPE,wt.MapperKind.OBJECT_TYPE),t===((i=e.getQueryType())==null?void 0:i.name)?r.push(wt.MapperKind.ROOT_OBJECT,wt.MapperKind.QUERY):t===((a=e.getMutationType())==null?void 0:a.name)?r.push(wt.MapperKind.ROOT_OBJECT,wt.MapperKind.MUTATION):t===((o=e.getSubscriptionType())==null?void 0:o.name)&&r.push(wt.MapperKind.ROOT_OBJECT,wt.MapperKind.SUBSCRIPTION)):(0,at.isInputObjectType)(n)?r.push(wt.MapperKind.INPUT_OBJECT_TYPE):(0,at.isInterfaceType)(n)?r.push(wt.MapperKind.COMPOSITE_TYPE,wt.MapperKind.ABSTRACT_TYPE,wt.MapperKind.INTERFACE_TYPE):(0,at.isUnionType)(n)?r.push(wt.MapperKind.COMPOSITE_TYPE,wt.MapperKind.ABSTRACT_TYPE,wt.MapperKind.UNION_TYPE):(0,at.isEnumType)(n)?r.push(wt.MapperKind.ENUM_TYPE):(0,at.isScalarType)(n)&&r.push(wt.MapperKind.SCALAR_TYPE),r}function Dne(e,t,n){let r=One(e,n),i,a=[...r];for(;!i&&a.length>0;){let o=a.pop();i=t[o]}return i!=null?i:null}function bne(e,t){var i,a,o;let n=e.getType(t),r=[wt.MapperKind.FIELD];return(0,at.isObjectType)(n)?(r.push(wt.MapperKind.COMPOSITE_FIELD,wt.MapperKind.OBJECT_FIELD),t===((i=e.getQueryType())==null?void 0:i.name)?r.push(wt.MapperKind.ROOT_FIELD,wt.MapperKind.QUERY_ROOT_FIELD):t===((a=e.getMutationType())==null?void 0:a.name)?r.push(wt.MapperKind.ROOT_FIELD,wt.MapperKind.MUTATION_ROOT_FIELD):t===((o=e.getSubscriptionType())==null?void 0:o.name)&&r.push(wt.MapperKind.ROOT_FIELD,wt.MapperKind.SUBSCRIPTION_ROOT_FIELD)):(0,at.isInterfaceType)(n)?r.push(wt.MapperKind.COMPOSITE_FIELD,wt.MapperKind.INTERFACE_FIELD):(0,at.isInputObjectType)(n)&&r.push(wt.MapperKind.INPUT_OBJECT_FIELD),r}function Ane(e,t,n){let r=bne(e,n),i,a=[...r];for(;!i&&a.length>0;){let o=a.pop();i=t[o]}return i!=null?i:null}function Rne(e){let t=e[wt.MapperKind.ARGUMENT];return t!=null?t:null}function Pne(e){let t=e[wt.MapperKind.DIRECTIVE];return t!=null?t:null}function Fne(e){let t=e[wt.MapperKind.ENUM_VALUE];return t!=null?t:null}function rp(e){if((0,at.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=G(M({},t.astNode),{kind:at.Kind.OBJECT_TYPE_DEFINITION,fields:n})}return t.extensionASTNodes!=null&&(t.extensionASTNodes=t.extensionASTNodes.map(n=>G(M({},n),{kind:at.Kind.OBJECT_TYPE_EXTENSION,fields:void 0}))),new at.GraphQLObjectType(t)}else if((0,at.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=G(M({},t.astNode),{kind:at.Kind.INTERFACE_TYPE_DEFINITION,fields:n})}return t.extensionASTNodes!=null&&(t.extensionASTNodes=t.extensionASTNodes.map(n=>G(M({},n),{kind:at.Kind.INTERFACE_TYPE_EXTENSION,fields:void 0}))),new at.GraphQLInterfaceType(t)}else if((0,at.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=G(M({},t.astNode),{kind:at.Kind.INPUT_OBJECT_TYPE_DEFINITION,fields:n})}return t.extensionASTNodes!=null&&(t.extensionASTNodes=t.extensionASTNodes.map(n=>G(M({},n),{kind:at.Kind.INPUT_OBJECT_TYPE_EXTENSION,fields:void 0}))),new at.GraphQLInputObjectType(t)}else if((0,at.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=G(M({},t.astNode),{values:n})}return t.extensionASTNodes!=null&&(t.extensionASTNodes=t.extensionASTNodes.map(n=>G(M({},n),{values:void 0}))),new at.GraphQLEnumType(t)}else return e}});var eM=F(XS=>{"use strict";m();T();N();Object.defineProperty(XS,"__esModule",{value:!0});XS.filterSchema=Lne;var zT=Se(),Sa=Rc(),wne=td();function Lne({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:u=void 0,directiveFilter:l=void 0,enumValueFilter:d=void 0}){return(0,wne.mapSchema)(e,{[Sa.MapperKind.QUERY]:E=>HS(E,"Query",r,u),[Sa.MapperKind.MUTATION]:E=>HS(E,"Mutation",r,u),[Sa.MapperKind.SUBSCRIPTION]:E=>HS(E,"Subscription",r,u),[Sa.MapperKind.OBJECT_TYPE]:E=>t(E.name,E)?WS(zT.GraphQLObjectType,E,i||n,u):null,[Sa.MapperKind.INTERFACE_TYPE]:E=>t(E.name,E)?WS(zT.GraphQLInterfaceType,E,a||n,u):null,[Sa.MapperKind.INPUT_OBJECT_TYPE]:E=>t(E.name,E)?WS(zT.GraphQLInputObjectType,E,o||n):null,[Sa.MapperKind.UNION_TYPE]:E=>t(E.name,E)?void 0:null,[Sa.MapperKind.ENUM_TYPE]:E=>t(E.name,E)?void 0:null,[Sa.MapperKind.SCALAR_TYPE]:E=>t(E.name,E)?void 0:null,[Sa.MapperKind.DIRECTIVE]:E=>l&&!l(E.name,E)?null:void 0,[Sa.MapperKind.ENUM_VALUE]:(E,h,v,R)=>d&&!d(h,R,E)?null:void 0})}function HS(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 u in o.args)r(e.name,a,u,o.args[u])||delete o.args[u]}return new zT.GraphQLObjectType(i)}return e}function WS(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 u in o.args)r(t.name,a,u,o.args[u])||delete o.args[u]}return new e(i)}}});var nM=F(HT=>{"use strict";m();T();N();Object.defineProperty(HT,"__esModule",{value:!0});HT.healSchema=Cne;HT.healTypes=tM;var rs=Se();function Cne(e){return tM(e.getTypeMap(),e.getDirectives()),e}function tM(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,rs.isObjectType)(d)){i(d),a(d);return}else if((0,rs.isInterfaceType)(d)){i(d),"getInterfaces"in d&&a(d);return}else if((0,rs.isUnionType)(d)){u(d);return}else if((0,rs.isInputObjectType)(d)){o(d);return}else if((0,rs.isLeafType)(d))return;throw new Error(`Unexpected schema type: ${d}`)}function i(d){let p=d.getFields();for(let[E,h]of Object.entries(p))h.args.map(v=>(v.type=l(v.type),v.type===null?null:v)).filter(Boolean),h.type=l(h.type),h.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,h]of Object.entries(p))h.type=l(h.type),h.type===null&&delete p[E]}function u(d){let p=d.getTypes();p.push(...p.splice(0).map(E=>l(E)).filter(Boolean))}function l(d){if((0,rs.isListType)(d)){let p=l(d.ofType);return p!=null?new rs.GraphQLList(p):null}else if((0,rs.isNonNullType)(d)){let p=l(d.ofType);return p!=null?new rs.GraphQLNonNull(p):null}else if((0,rs.isNamedType)(d)){let p=e[d.name];if(p&&d!==p)return p}return d}}});var rM=F(ZS=>{"use strict";m();T();N();Object.defineProperty(ZS,"__esModule",{value:!0});ZS.getResolversFromSchema=Une;var Pc=Se();function Une(e,t){var i,a;let n=Object.create(null),r=e.getTypeMap();for(let o in r)if(!o.startsWith("__")){let u=r[o];if((0,Pc.isScalarType)(u)){if(!(0,Pc.isSpecifiedScalarType)(u)){let l=u.toConfig();delete l.astNode,n[o]=new Pc.GraphQLScalarType(l)}}else if((0,Pc.isEnumType)(u)){n[o]={};let l=u.getValues();for(let d of l)n[o][d.name]=d.value}else if((0,Pc.isInterfaceType)(u))u.resolveType!=null&&(n[o]={__resolveType:u.resolveType});else if((0,Pc.isUnionType)(u))u.resolveType!=null&&(n[o]={__resolveType:u.resolveType});else if((0,Pc.isObjectType)(u)){n[o]={},u.isTypeOf!=null&&(n[o].__isTypeOf=u.isTypeOf);let l=u.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 aM=F(eO=>{"use strict";m();T();N();Object.defineProperty(eO,"__esModule",{value:!0});eO.forEachField=Bne;var iM=Se();function Bne(e,t){let n=e.getTypeMap();for(let r in n){let i=n[r];if(!(0,iM.getNamedType)(i).name.startsWith("__")&&(0,iM.isObjectType)(i)){let a=i.getFields();for(let o in a){let u=a[o];t(u,r,o)}}}}});var sM=F(nO=>{"use strict";m();T();N();Object.defineProperty(nO,"__esModule",{value:!0});nO.forEachDefaultValue=kne;var tO=Se();function kne(e,t){let n=e.getTypeMap();for(let r in n){let i=n[r];if(!(0,tO.getNamedType)(i).name.startsWith("__")){if((0,tO.isObjectType)(i)){let a=i.getFields();for(let o in a){let u=a[o];for(let l of u.args)l.defaultValue=t(l.type,l.defaultValue)}}else if((0,tO.isInputObjectType)(i)){let a=i.getFields();for(let o in a){let u=a[o];u.defaultValue=t(u.type,u.defaultValue)}}}}}});var sO=F(aO=>{"use strict";m();T();N();Object.defineProperty(aO,"__esModule",{value:!0});aO.addTypes=xne;var rO=Se(),iO=KS(),Mne=GT();function xne(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,rO.isNamedType)(u)?r[u.name]=u:(0,rO.isDirective)(u)&&(i[u.name]=u);let{typeMap:a,directives:o}=(0,Mne.rewireTypes)(r,Object.values(i));return new rO.GraphQLSchema(G(M({},n),{query:(0,iO.getObjectTypeFromTypeMap)(a,e.getQueryType()),mutation:(0,iO.getObjectTypeFromTypeMap)(a,e.getMutationType()),subscription:(0,iO.getObjectTypeFromTypeMap)(a,e.getSubscriptionType()),types:Object.values(a),directives:o}))}});var uM=F(oO=>{"use strict";m();T();N();Object.defineProperty(oO,"__esModule",{value:!0});oO.pruneSchema=$ne;var nr=Se(),qne=vS(),Vne=Rc(),jne=td(),Kne=Xf();function $ne(e,t={}){let{skipEmptyCompositeTypePruning:n,skipEmptyUnionPruning:r,skipPruning:i,skipUnimplementedInterfacesPruning:a,skipUnusedTypesPruning:o}=t,u=[],l=e;do{let d=Gne(l);if(i){let p=[];for(let E in l.getTypeMap()){if(E.startsWith("__"))continue;let h=l.getType(E);h&&i(h)&&p.push(E)}d=oM(p,l,d)}u=[],l=(0,jne.mapSchema)(l,{[Vne.MapperKind.TYPE]:p=>!d.has(p.name)&&!(0,nr.isSpecifiedScalarType)(p)?((0,nr.isUnionType)(p)||(0,nr.isInputObjectType)(p)||(0,nr.isInterfaceType)(p)||(0,nr.isObjectType)(p)||(0,nr.isScalarType)(p))&&(o||(0,nr.isUnionType)(p)&&r&&!Object.keys(p.getTypes()).length||((0,nr.isInputObjectType)(p)||(0,nr.isInterfaceType)(p)||(0,nr.isObjectType)(p))&&n&&!Object.keys(p.getFields()).length||(0,nr.isInterfaceType)(p)&&a)?p:(u.push(p.name),d.delete(p.name),null):p})}while(u.length);return l}function Gne(e){let t=[];for(let n of(0,Kne.getRootTypes)(e))t.push(n.name);return oM(t,e)}function oM(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,nr.isUnionType)(a)&&e.push(...a.getTypes().map(o=>o.name)),(0,nr.isInterfaceType)(a)&&r[i]===!0&&(e.push(...(0,qne.getImplementingTypes)(a.name,t)),r[i]=!1),(0,nr.isEnumType)(a)&&e.push(...a.getValues().flatMap(o=>WT(t,o))),"getInterfaces"in a&&e.push(...a.getInterfaces().map(o=>o.name)),"getFields"in a){let o=a.getFields(),u=Object.entries(o);if(!u.length)continue;for(let[,l]of u){(0,nr.isObjectType)(a)&&e.push(...l.args.flatMap(p=>{let E=[(0,nr.getNamedType)(p.type).name];return E.push(...WT(t,p)),E}));let d=(0,nr.getNamedType)(l.type);e.push(d.name),e.push(...WT(t,l)),(0,nr.isInterfaceType)(d)&&!(d.name in r)&&(r[d.name]=!0)}}e.push(...WT(t,a)),n.add(i)}}return n}function WT(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 u of o.args){let l=(0,nr.getNamedType)(u.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 u of o.args){let l=(0,nr.getNamedType)(u.type);n.add(l.name)}}return[...n]}});var cO=F(uO=>{"use strict";m();T();N();Object.defineProperty(uO,"__esModule",{value:!0});uO.mergeDeep=XT;var Qne=Yl();function XT(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)=>XT(e.map(E=>E[p]),t,n,r));if(a)return e.flat(1);let u,l;t&&(l=e.find(d=>cM(d)),l&&(u==null&&(u={}),Object.setPrototypeOf(u,Object.create(Object.getPrototypeOf(l)))));for(let d of e)if(d!=null)if(cM(d)){if(l){let p=Object.getPrototypeOf(u),E=Object.getPrototypeOf(d);if(E)for(let h of Object.getOwnPropertyNames(E)){let v=Object.getOwnPropertyDescriptor(E,h);(0,Qne.isSome)(v)&&Object.defineProperty(p,h,v)}}for(let p in d)u==null&&(u={}),p in u?u[p]=XT([u[p],d[p]],t,n,r):u[p]=d[p]}else Array.isArray(d)&&Array.isArray(u)?u=XT([u,d],t,n,r):u=d;return u}function cM(e){return e&&typeof e=="object"&&!Array.isArray(e)}});var lM=F(lO=>{"use strict";m();T();N();Object.defineProperty(lO,"__esModule",{value:!0});lO.parseSelectionSet=Jne;var Yne=Se();function Jne(e,t){return(0,Yne.parse)(e,t).definitions[0].selectionSet}});var dM=F(dO=>{"use strict";m();T();N();Object.defineProperty(dO,"__esModule",{value:!0});dO.getResponseKeyFromInfo=zne;function zne(e){return e.fieldNodes[0].alias!=null?e.fieldNodes[0].alias.value:e.fieldName}});var fM=F(nd=>{"use strict";m();T();N();Object.defineProperty(nd,"__esModule",{value:!0});nd.appendObjectFields=Wne;nd.removeObjectFields=Xne;nd.selectObjectFields=Zne;nd.modifyObjectFields=ere;var ZT=Se(),Hne=sO(),eE=Rc(),Fc=td();function Wne(e,t,n){return e.getType(t)==null?(0,Hne.addTypes)(e,[new ZT.GraphQLObjectType({name:t,fields:n})]):(0,Fc.mapSchema)(e,{[eE.MapperKind.OBJECT_TYPE]:r=>{if(r.name===t){let i=r.toConfig(),a=i.fields,o={};for(let u in a)o[u]=a[u];for(let u in n)o[u]=n[u];return(0,Fc.correctASTNodes)(new ZT.GraphQLObjectType(G(M({},i),{fields:o})))}}})}function Xne(e,t,n){let r={};return[(0,Fc.mapSchema)(e,{[eE.MapperKind.OBJECT_TYPE]:a=>{if(a.name===t){let o=a.toConfig(),u=o.fields,l={};for(let d in u){let p=u[d];n(d,p)?r[d]=p:l[d]=p}return(0,Fc.correctASTNodes)(new ZT.GraphQLObjectType(G(M({},o),{fields:l})))}}}),r]}function Zne(e,t,n){let r={};return(0,Fc.mapSchema)(e,{[eE.MapperKind.OBJECT_TYPE]:i=>{if(i.name===t){let o=i.toConfig().fields;for(let u in o){let l=o[u];n(u,l)&&(r[u]=l)}}}}),r}function ere(e,t,n,r){let i={};return[(0,Fc.mapSchema)(e,{[eE.MapperKind.OBJECT_TYPE]:o=>{if(o.name===t){let u=o.toConfig(),l=u.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,Fc.correctASTNodes)(new ZT.GraphQLObjectType(G(M({},u),{fields:d})))}}}),i]}});var pM=F(fO=>{"use strict";m();T();N();Object.defineProperty(fO,"__esModule",{value:!0});fO.renameType=tre;var ea=Se();function tre(e,t){if((0,ea.isObjectType)(e))return new ea.GraphQLObjectType(G(M({},e.toConfig()),{name:t,astNode:e.astNode==null?e.astNode:G(M({},e.astNode),{name:G(M({},e.astNode.name),{value:t})}),extensionASTNodes:e.extensionASTNodes==null?e.extensionASTNodes:e.extensionASTNodes.map(n=>G(M({},n),{name:G(M({},n.name),{value:t})}))}));if((0,ea.isInterfaceType)(e))return new ea.GraphQLInterfaceType(G(M({},e.toConfig()),{name:t,astNode:e.astNode==null?e.astNode:G(M({},e.astNode),{name:G(M({},e.astNode.name),{value:t})}),extensionASTNodes:e.extensionASTNodes==null?e.extensionASTNodes:e.extensionASTNodes.map(n=>G(M({},n),{name:G(M({},n.name),{value:t})}))}));if((0,ea.isUnionType)(e))return new ea.GraphQLUnionType(G(M({},e.toConfig()),{name:t,astNode:e.astNode==null?e.astNode:G(M({},e.astNode),{name:G(M({},e.astNode.name),{value:t})}),extensionASTNodes:e.extensionASTNodes==null?e.extensionASTNodes:e.extensionASTNodes.map(n=>G(M({},n),{name:G(M({},n.name),{value:t})}))}));if((0,ea.isInputObjectType)(e))return new ea.GraphQLInputObjectType(G(M({},e.toConfig()),{name:t,astNode:e.astNode==null?e.astNode:G(M({},e.astNode),{name:G(M({},e.astNode.name),{value:t})}),extensionASTNodes:e.extensionASTNodes==null?e.extensionASTNodes:e.extensionASTNodes.map(n=>G(M({},n),{name:G(M({},n.name),{value:t})}))}));if((0,ea.isEnumType)(e))return new ea.GraphQLEnumType(G(M({},e.toConfig()),{name:t,astNode:e.astNode==null?e.astNode:G(M({},e.astNode),{name:G(M({},e.astNode.name),{value:t})}),extensionASTNodes:e.extensionASTNodes==null?e.extensionASTNodes:e.extensionASTNodes.map(n=>G(M({},n),{name:G(M({},n.name),{value:t})}))}));if((0,ea.isScalarType)(e))return new ea.GraphQLScalarType(G(M({},e.toConfig()),{name:t,astNode:e.astNode==null?e.astNode:G(M({},e.astNode),{name:G(M({},e.astNode.name),{value:t})}),extensionASTNodes:e.extensionASTNodes==null?e.extensionASTNodes:e.extensionASTNodes.map(n=>G(M({},n),{name:G(M({},n.name),{value:t})}))}));throw new Error(`Unknown type ${e}.`)}});var mM=F(tE=>{"use strict";m();T();N();Object.defineProperty(tE,"__esModule",{value:!0});tE.updateArgument=rre;tE.createVariableNameGenerator=ire;var wc=Se(),nre=xT();function rre(e,t,n,r,i,a,o){if(e[r]={kind:wc.Kind.ARGUMENT,name:{kind:wc.Kind.NAME,value:r},value:{kind:wc.Kind.VARIABLE,name:{kind:wc.Kind.NAME,value:i}}},t[i]={kind:wc.Kind.VARIABLE_DEFINITION,variable:{kind:wc.Kind.VARIABLE,name:{kind:wc.Kind.NAME,value:i}},type:(0,nre.astFromType)(a)},o!==void 0){n[i]=o;return}i in n&&delete n[i]}function ire(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 NM=F(mO=>{"use strict";m();T();N();Object.defineProperty(mO,"__esModule",{value:!0});mO.implementsAbstractType=are;var pO=Se();function are(e,t,n){return n==null||t==null?!1:t===n?!0:(0,pO.isCompositeType)(t)&&(0,pO.isCompositeType)(n)?(0,pO.doTypesOverlap)(e,t,n):!1}});var EM=F(NO=>{"use strict";m();T();N();Object.defineProperty(NO,"__esModule",{value:!0});NO.observableToAsyncIterable=sre;var TM=zf();function sre(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})},u=()=>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?u():this.return()},return(){return d(),(0,TM.fakePromise)({value:void 0,done:!0})},throw(p){return d(),(0,TM.fakeRejectPromise)(p)},[Symbol.asyncIterator](){return this}}}});var hM=F(nE=>{"use strict";m();T();N();Object.defineProperty(nE,"__esModule",{value:!0});nE.AccumulatorMap=void 0;var TO=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)}};nE.AccumulatorMap=TO});var EO=F(rd=>{"use strict";m();T();N();Object.defineProperty(rd,"__esModule",{value:!0});rd.GraphQLStreamDirective=rd.GraphQLDeferDirective=void 0;var ta=Se();rd.GraphQLDeferDirective=new ta.GraphQLDirective({name:"defer",description:"Directs the executor to defer this fragment when the `if` argument is true or undefined.",locations:[ta.DirectiveLocation.FRAGMENT_SPREAD,ta.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new ta.GraphQLNonNull(ta.GraphQLBoolean),description:"Deferred when true or undefined.",defaultValue:!0},label:{type:ta.GraphQLString,description:"Unique name"}}});rd.GraphQLStreamDirective=new ta.GraphQLDirective({name:"stream",description:"Directs the executor to stream plural fields when the `if` argument is true or undefined.",locations:[ta.DirectiveLocation.FIELD],args:{if:{type:new ta.GraphQLNonNull(ta.GraphQLBoolean),description:"Stream when true or undefined.",defaultValue:!0},label:{type:ta.GraphQLString,description:"Unique name"},initialCount:{defaultValue:0,type:ta.GraphQLInt,description:"Number of items to return immediately"}}})});var IO=F(Cs=>{"use strict";m();T();N();Object.defineProperty(Cs,"__esModule",{value:!0});Cs.collectSubFields=void 0;Cs.collectFields=cre;Cs.shouldIncludeNode=rE;Cs.doesFragmentConditionMatch=hO;Cs.getFieldEntryKey=yM;Cs.getDeferValues=yO;var is=Se(),iE=hM(),ore=EO(),ure=Pu();function id(e,t,n,r,i,a,o,u){for(let l of i.selections)switch(l.kind){case is.Kind.FIELD:{if(!rE(n,l))continue;a.add(yM(l),l);break}case is.Kind.INLINE_FRAGMENT:{if(!rE(n,l)||!hO(e,l,r))continue;let d=yO(n,l);if(d){let p=new iE.AccumulatorMap;id(e,t,n,r,l.selectionSet,p,o,u),o.push({label:d.label,fields:p})}else id(e,t,n,r,l.selectionSet,a,o,u);break}case is.Kind.FRAGMENT_SPREAD:{let d=l.name.value;if(!rE(n,l))continue;let p=yO(n,l);if(u.has(d)&&!p)continue;let E=t[d];if(!E||!hO(e,E,r))continue;if(p||u.add(d),p){let h=new iE.AccumulatorMap;id(e,t,n,r,E.selectionSet,h,o,u),o.push({label:p.label,fields:h})}else id(e,t,n,r,E.selectionSet,a,o,u);break}}}function cre(e,t,n,r,i){let a=new iE.AccumulatorMap,o=[];return id(e,t,n,r,i,a,o,new Set),{fields:a,patches:o}}function rE(e,t){let n=(0,is.getDirectiveValues)(is.GraphQLSkipDirective,t,e);if((n==null?void 0:n.if)===!0)return!1;let r=(0,is.getDirectiveValues)(is.GraphQLIncludeDirective,t,e);return(r==null?void 0:r.if)!==!1}function hO(e,t,n){let r=t.typeCondition;if(!r)return!0;let i=(0,is.typeFromAST)(e,r);return i===n?!0:(0,is.isAbstractType)(i)?e.getPossibleTypes(i).includes(n):!1}function yM(e){return e.alias?e.alias.value:e.name.value}function yO(e,t){let n=(0,is.getDirectiveValues)(ore.GraphQLDeferDirective,t,e);if(n&&n.if!==!1)return{label:typeof n.label=="string"?n.label:void 0}}Cs.collectSubFields=(0,ure.memoize5)(function(t,n,r,i,a){let o=new iE.AccumulatorMap,u=new Set,l=[],d={fields:o,patches:l};for(let p of a)p.selectionSet&&id(t,n,r,i,p.selectionSet,o,l,u);return d})});var gO=F(ip=>{"use strict";m();T();N();Object.defineProperty(ip,"__esModule",{value:!0});ip.getOperationASTFromRequest=void 0;ip.getOperationASTFromDocument=IM;var lre=Se(),dre=Pu();function IM(e,t){let n=(0,lre.getOperationAST)(e,t);if(!n)throw new Error(`Cannot infer operation ${t||""}`);return n}ip.getOperationASTFromRequest=(0,dre.memoize1)(function(t){return IM(t.document,t.operationName)})});var vM=F(ap=>{"use strict";m();T();N();Object.defineProperty(ap,"__esModule",{value:!0});ap.visitData=vO;ap.visitErrors=pre;ap.visitResult=mre;var Fu=Se(),_O=IO(),fre=gO();function vO(e,t,n){if(Array.isArray(e))return e.map(r=>vO(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:vO(a,t,n)})}return n!=null?n(r):r}return e}function pre(e,t){return e.map(n=>t(n))}function mre(e,t,n,r,i){let a=t.document.definitions.reduce((h,v)=>(v.kind===Fu.Kind.FRAGMENT_DEFINITION&&(h[v.name.value]=v),h),{}),o=t.variables||{},u={segmentInfoMap:new Map,unpathedErrors:new Set},l=e.data,d=e.errors,p=d!=null&&i!=null,E=(0,fre.getOperationASTFromRequest)(t);return l!=null&&E!=null&&(e.data=Ere(l,E,n,a,o,r,p?d:void 0,u)),d!=null&&i&&(e.errors=Nre(d,i,u)),e}function Nre(e,t,n){let r=n.segmentInfoMap,i=n.unpathedErrors,a=t.__unpathed;return e.map(o=>{let u=r.get(o),l=u==null?o:u.reduceRight((d,p)=>{let E=p.type.name,h=t[E];if(h==null)return d;let v=h[p.fieldName];return v==null?d:v(d,p.pathIndex)},o);return a&&i.has(o)?a(l):l})}function Tre(e,t){switch(t.operation){case"query":return e.getQueryType();case"mutation":return e.getMutationType();case"subscription":return e.getSubscriptionType()}}function Ere(e,t,n,r,i,a,o,u){let l=Tre(n,t),{fields:d}=(0,_O.collectFields)(n,r,i,l,t.selectionSet);return SO(e,l,d,n,r,i,a,0,o,u)}function SO(e,t,n,r,i,a,o,u,l,d){var te;let p=t.getFields(),E=o==null?void 0:o[t.name],h=E==null?void 0:E.__enter,v=h!=null?h(e):e,R,U=null;if(l!=null){R=yre(l,u),U=R.errorMap;for(let ae of R.unpathedErrors)d.unpathedErrors.add(ae)}for(let[ae,me]of n){let ye=me[0].name.value,_e=(te=p[ye])==null?void 0:te.type;if(_e==null)switch(ye){case"__typename":_e=Fu.TypeNameMetaFieldDef.type;break;case"__schema":_e=Fu.SchemaMetaFieldDef.type;break;case"__type":_e=Fu.TypeMetaFieldDef.type;break}let Ee=u+1,Be;U&&(Be=U[ae],Be!=null&&delete U[ae],Ire(t,ye,Ee,Be,d));let Z=_M(e[ae],_e,me,r,i,a,o,Ee,Be,d);gM(v,ae,Z,E,ye)}let q=v.__typename;if(q!=null&&gM(v,"__typename",q,E,"__typename"),U)for(let ae in U){let me=U[ae];for(let ye of me)d.unpathedErrors.add(ye)}let X=E==null?void 0:E.__leave;return X!=null?X(v):v}function gM(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 hre(e,t,n,r,i,a,o,u,l,d){return e.map(p=>_M(p,t,n,r,i,a,o,u+1,l,d))}function _M(e,t,n,r,i,a,o,u,l=[],d){if(e==null)return e;let p=(0,Fu.getNullableType)(t);if((0,Fu.isListType)(p))return hre(e,p.ofType,n,r,i,a,o,u,l,d);if((0,Fu.isAbstractType)(p)){let v=r.getType(e.__typename),{fields:R,patches:U}=(0,_O.collectSubFields)(r,i,a,v,n);if(U.length){R=new Map(R);for(let q of U)for(let[X,te]of q.fields){let ae=R.get(X);ae?ae.push(...te):R.set(X,te)}}return SO(e,v,R,r,i,a,o,u,l,d)}else if((0,Fu.isObjectType)(p)){let{fields:v,patches:R}=(0,_O.collectSubFields)(r,i,a,p,n);if(R.length){v=new Map(v);for(let U of R)for(let[q,X]of U.fields){let te=v.get(q);te?te.push(...X):v.set(q,X)}}return SO(e,p,v,r,i,a,o,u,l,d)}let E=o==null?void 0:o[p.name];if(E==null)return e;let h=E(e);return h===void 0?e:h}function yre(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 Ire(e,t,n,r=[],i){for(let a of r){let o={type:e,fieldName:t,pathIndex:n},u=i.segmentInfoMap.get(a);u==null?i.segmentInfoMap.set(a,[o]):u.push(o)}}});var SM=F(DO=>{"use strict";m();T();N();Object.defineProperty(DO,"__esModule",{value:!0});DO.valueMatchesCriteria=OO;function OO(e,t){return e==null?e===t:Array.isArray(e)?Array.isArray(t)&&e.every((n,r)=>OO(n,t[r])):typeof e=="object"?typeof t=="object"&&t&&Object.keys(t).every(n=>OO(e[n],t[n])):t instanceof RegExp?t.test(e):e===t}});var OM=F(bO=>{"use strict";m();T();N();Object.defineProperty(bO,"__esModule",{value:!0});bO.isAsyncIterable=gre;function gre(e){return(e==null?void 0:e[Symbol.asyncIterator])!=null}});var DM=F(AO=>{"use strict";m();T();N();Object.defineProperty(AO,"__esModule",{value:!0});AO.isDocumentNode=vre;var _re=Se();function vre(e){return e&&typeof e=="object"&&"kind"in e&&e.kind===_re.Kind.DOCUMENT}});var bM=F(()=>{"use strict";m();T();N()});var FM=F(sp=>{"use strict";m();T();N();Object.defineProperty(sp,"__esModule",{value:!0});sp.getAsyncIteratorWithCancel=RM;sp.getAsyncIterableWithCancel=PM;sp.withCancel=PM;var Sre=Pu();function Ore(e){return Ui(this,null,function*(){return{value:e,done:!0}})}var AM=(0,Sre.memoize2)(function(t,n){return function(...i){return Reflect.apply(n,t,i)}});function RM(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||Ore;return function(l){return Ui(this,null,function*(){let d=yield t(l);return Reflect.apply(o,n,[d])})}}else if(typeof a=="function")return AM(n,a);return a}})}function PM(e,t){return new Proxy(e,{get(n,r,i){let a=Reflect.get(n,r,i);return Symbol.asyncIterator===r?function(){let u=Reflect.apply(a,n,[]);return RM(u,t)}:typeof a=="function"?AM(n,a):a}})}});var wM=F(RO=>{"use strict";m();T();N();Object.defineProperty(RO,"__esModule",{value:!0});RO.fixSchemaAst=Rre;var Dre=Se(),bre=CS();function Are(e,t){let n=(0,bre.getDocumentNodeFromSchema)(e);return(0,Dre.buildASTSchema)(n,M({},t||{}))}function Rre(e,t){let n;return(!e.astNode||!e.extensionASTNodes)&&(n=Are(e,t)),!e.astNode&&(n!=null&&n.astNode)&&(e.astNode=n.astNode),!e.extensionASTNodes&&(n!=null&&n.astNode)&&(e.extensionASTNodes=n.extensionASTNodes),e}});var LM=F(PO=>{"use strict";m();T();N();Object.defineProperty(PO,"__esModule",{value:!0});PO.extractExtensionsFromSchema=wre;var Pre=Yl(),Us=Rc(),Fre=td();function Oa(e,t){e=e||{};let a=e,{directives:n}=a,r=eP(a,["directives"]),i=M({},r);if(!t&&n!=null){let o={};for(let u in n)o[u]=[...(0,Pre.asArray)(n[u])];i.directives=o}return i}function wre(e,t=!1){let n={schemaExtensions:Oa(e.extensions,t),types:{}};return(0,Fre.mapSchema)(e,{[Us.MapperKind.OBJECT_TYPE]:r=>(n.types[r.name]={fields:{},type:"object",extensions:Oa(r.extensions,t)},r),[Us.MapperKind.INTERFACE_TYPE]:r=>(n.types[r.name]={fields:{},type:"interface",extensions:Oa(r.extensions,t)},r),[Us.MapperKind.FIELD]:(r,i,a)=>{n.types[a].fields[i]={arguments:{},extensions:Oa(r.extensions,t)};let o=r.args;if(o!=null)for(let u in o)n.types[a].fields[i].arguments[u]=Oa(o[u].extensions,t);return r},[Us.MapperKind.ENUM_TYPE]:r=>(n.types[r.name]={values:{},type:"enum",extensions:Oa(r.extensions,t)},r),[Us.MapperKind.ENUM_VALUE]:(r,i,a,o)=>(n.types[i].values[o]=Oa(r.extensions,t),r),[Us.MapperKind.SCALAR_TYPE]:r=>(n.types[r.name]={type:"scalar",extensions:Oa(r.extensions,t)},r),[Us.MapperKind.UNION_TYPE]:r=>(n.types[r.name]={type:"union",extensions:Oa(r.extensions,t)},r),[Us.MapperKind.INPUT_OBJECT_TYPE]:r=>(n.types[r.name]={fields:{},type:"input",extensions:Oa(r.extensions,t)},r),[Us.MapperKind.INPUT_OBJECT_FIELD]:(r,i,a)=>(n.types[a].fields[i]={extensions:Oa(r.extensions,t)},r)}),n}});var CM=F(op=>{"use strict";m();T();N();Object.defineProperty(op,"__esModule",{value:!0});op.addPath=Lre;op.pathToArray=Cre;op.printPathArray=Ure;function Lre(e,t,n){return{prev:e,key:t,typename:n}}function Cre(e){let t=[],n=e;for(;n;)t.push(n.key),n=n.prev;return t.reverse()}function Ure(e){return e.map(t=>typeof t=="number"?"["+t.toString()+"]":"."+t).join("")}});var BM=F(wO=>{"use strict";m();T();N();Object.defineProperty(wO,"__esModule",{value:!0});wO.mergeIncrementalResult=UM;var Bre=cO();function UM({incrementalResult:e,executionResult:t}){var r;let n=["data",...(r=e.path)!=null?r:[]];if(e.items)for(let i of e.items)FO(t,n,i),n[n.length-1]++;e.data&&FO(t,n,e.data),e.errors&&(t.errors=t.errors||[],t.errors.push(...e.errors)),e.extensions&&FO(t,["extensions"],e.extensions),e.incremental&&e.incremental.forEach(i=>{UM({incrementalResult:i,executionResult:t})})}function FO(e,t,n){let r=e,i;for(i=0;i{"use strict";m();T();N();Object.defineProperty(aE,"__esModule",{value:!0});aE.debugTimerStart=kre;aE.debugTimerEnd=Mre;var kM=new Set;function kre(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))&&(kM.add(e),console.time(e))}function Mre(e){kM.has(e)&&console.timeEnd(e)}});var VM=F(up=>{"use strict";m();T();N();Object.defineProperty(up,"__esModule",{value:!0});up.getAbortPromise=void 0;up.registerAbortSignalListener=qM;var xre=zf(),xM=Pu(),qre=(0,xM.memoize1)(function(t){let n=new Set;return t.addEventListener("abort",r=>{for(let i of n)i(r)},{once:!0}),n});function qM(e,t){if(e.aborted){t();return}qre(e).add(t)}up.getAbortPromise=(0,xM.memoize1)(function(t){return t.aborted?(0,xre.fakeRejectPromise)(t.reason):new Promise((n,r)=>{if(t.aborted){r(t.reason);return}qM(t,()=>{r(t.reason)})})})});var Da=F(Ce=>{"use strict";m();T();N();Object.defineProperty(Ce,"__esModule",{value:!0});Ce.createDeferred=Ce.fakePromise=Ce.mapMaybePromise=Ce.mapAsyncIterator=Ce.inspect=void 0;var Ye=(GB(),Jm($B));Ye.__exportStar(QB(),Ce);Ye.__exportStar(Yl(),Ce);Ye.__exportStar(ES(),Ce);Ye.__exportStar(yS(),Ce);Ye.__exportStar(ak(),Ce);Ye.__exportStar(vS(),Ce);Ye.__exportStar(CS(),Ce);Ye.__exportStar(yS(),Ce);Ye.__exportStar(vk(),Ce);Ye.__exportStar(Sk(),Ce);Ye.__exportStar(kk(),Ce);Ye.__exportStar(Gk(),Ce);Ye.__exportStar(Yk(),Ce);Ye.__exportStar(eM(),Ce);Ye.__exportStar(nM(),Ce);Ye.__exportStar(rM(),Ce);Ye.__exportStar(aM(),Ce);Ye.__exportStar(sM(),Ce);Ye.__exportStar(td(),Ce);Ye.__exportStar(sO(),Ce);Ye.__exportStar(GT(),Ce);Ye.__exportStar(uM(),Ce);Ye.__exportStar(cO(),Ce);Ye.__exportStar(Rc(),Ce);Ye.__exportStar(QS(),Ce);Ye.__exportStar(lM(),Ce);Ye.__exportStar(dM(),Ce);Ye.__exportStar(fM(),Ce);Ye.__exportStar(pM(),Ce);Ye.__exportStar(JS(),Ce);Ye.__exportStar(mM(),Ce);Ye.__exportStar(xT(),Ce);Ye.__exportStar(NM(),Ce);Ye.__exportStar(LT(),Ce);Ye.__exportStar(EM(),Ce);Ye.__exportStar(vM(),Ce);Ye.__exportStar(mS(),Ce);Ye.__exportStar(SM(),Ce);Ye.__exportStar(OM(),Ce);Ye.__exportStar(DM(),Ce);Ye.__exportStar(Hf(),Ce);Ye.__exportStar(bM(),Ce);Ye.__exportStar(FM(),Ce);Ye.__exportStar(Xf(),Ce);Ye.__exportStar(kS(),Ce);Ye.__exportStar(IO(),Ce);var Vre=Jf();Object.defineProperty(Ce,"inspect",{enumerable:!0,get:function(){return Vre.inspect}});Ye.__exportStar(Pu(),Ce);Ye.__exportStar(wM(),Ce);Ye.__exportStar(gO(),Ce);Ye.__exportStar(LM(),Ce);Ye.__exportStar(CM(),Ce);Ye.__exportStar(BT(),Ce);Ye.__exportStar(EO(),Ce);Ye.__exportStar(BM(),Ce);Ye.__exportStar(MM(),Ce);Ye.__exportStar(TS(),Ce);var sE=zf();Object.defineProperty(Ce,"mapAsyncIterator",{enumerable:!0,get:function(){return sE.mapAsyncIterator}});Object.defineProperty(Ce,"mapMaybePromise",{enumerable:!0,get:function(){return sE.mapMaybePromise}});Object.defineProperty(Ce,"fakePromise",{enumerable:!0,get:function(){return sE.fakePromise}});Object.defineProperty(Ce,"createDeferred",{enumerable:!0,get:function(){return sE.createDeferredPromise}});Ye.__exportStar(VM(),Ce)});var KM=F(oE=>{"use strict";m();T();N();Object.defineProperty(oE,"__esModule",{value:!0});oE.mergeResolvers=void 0;var jre=Da();function jM(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=jM(i)),typeof i=="object"&&i&&n.push(i);let r=(0,jre.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}oE.mergeResolvers=jM});var LO=F(uE=>{"use strict";m();T();N();Object.defineProperty(uE,"__esModule",{value:!0});uE.mergeArguments=void 0;var $M=Da();function Kre(e,t,n){let r=$re([...t,...e].filter($M.isSome),n);return n&&n.sort&&r.sort($M.compareNodes),r}uE.mergeArguments=Kre;function $re(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 na=F(ad=>{"use strict";m();T();N();Object.defineProperty(ad,"__esModule",{value:!0});ad.mergeDirective=ad.mergeDirectives=void 0;var GM=Se(),Gre=Da();function Qre(e,t){return!!e.find(n=>n.name.value===t.name.value)}function QM(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 YM(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,u=r.value.values;a.value.values=Xre(o,u,(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 Jre(e,t){return e.map((n,r,i)=>{let a=i.findIndex(o=>o.name.value===n.name.value);if(a!==r&&!QM(n,t)){let o=i[a];return n.arguments=YM(n.arguments,o.arguments),null}return n}).filter(Gre.isSome)}function zre(e=[],t=[],n,r){let i=n&&n.reverseDirectives,a=i?e:t,o=i?t:e,u=Jre([...a],r);for(let l of o)if(Qre(u,l)&&!QM(l,r)){let d=u.findIndex(E=>E.name.value===l.name.value),p=u[d];u[d].arguments=YM(l.arguments||[],p.arguments||[])}else u.push(l);return u}ad.mergeDirectives=zre;function Hre(e,t){let n=(0,GM.print)(G(M({},e),{description:void 0})),r=(0,GM.print)(G(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}". +`);return i.description?G(q({},i),{description:G(q({},i.description),{value:i.description.value+` +`+o,block:!0})}):G(q({},i),{description:{kind:Oa.Kind.STRING,value:o,block:u}})}}}})}function QW(e){return(0,Oa.isTypeSystemDefinitionNode)(e)||e.kind===Oa.Kind.FIELD_DEFINITION||e.kind===Oa.Kind.INPUT_VALUE_DEFINITION||e.kind===Oa.Kind.ENUM_VALUE_DEFINITION}});var t6=D(Lw=>{"use strict";d();p();f();Object.defineProperty(Lw,"__esModule",{value:!0});Lw.buildOperationNodeForField=DPe;var yt=ve(),OPe=ry(),WW=iy(),Fw=[],TI=new Map;function XW(e){Fw.push(e)}function JW(){Fw=[]}function zW(){TI=new Map}function DPe({schema:e,kind:t,field:r,models:n,ignore:i=[],depthLimit:a,circularReferenceDepth:o,argNames:u,selectedFields:l=!0}){JW(),zW();let m=(0,WW.getRootTypeNames)(e),h=bPe({schema:e,fieldName:r,kind:t,models:n||[],ignore:i,depthLimit:a||1/0,circularReferenceDepth:o||1,argNames:u,selectedFields:l,rootTypeNames:m});return h.variableDefinitions=[...Fw],JW(),zW(),h}function bPe({schema:e,fieldName:t,kind:r,models:n,ignore:i,depthLimit:a,circularReferenceDepth:o,argNames:u,selectedFields:l,rootTypeNames:m}){let h=(0,WW.getDefinedRootType)(e,r),N=h.getFields()[t],T=`${t}_${r}`;if(N.args)for(let O of N.args){let R=O.name;(!u||u.includes(R))&&XW(ZW(O,R))}return{kind:yt.Kind.OPERATION_DEFINITION,operation:r,name:{kind:yt.Kind.NAME,value:T},variableDefinitions:[],selectionSet:{kind:yt.Kind.SELECTION_SET,selections:[e6({type:h,field:N,models:n,firstCall:!0,path:[],ancestors:[],ignore:i,depthLimit:a,circularReferenceDepth:o,schema:e,depth:0,argNames:u,selectedFields:l,rootTypeNames:m})]}}}function Pw({parent:e,type:t,models:r,firstCall:n,path:i,ancestors:a,ignore:o,depthLimit:u,circularReferenceDepth:l,schema:m,depth:h,argNames:N,selectedFields:T,rootTypeNames:O}){if(!(typeof T=="boolean"&&h>u)){if((0,yt.isUnionType)(t)){let R=t.getTypes();return{kind:yt.Kind.SELECTION_SET,selections:R.filter(C=>!ww([...a,C],{depth:l})).map(C=>({kind:yt.Kind.INLINE_FRAGMENT,typeCondition:{kind:yt.Kind.NAMED_TYPE,name:{kind:yt.Kind.NAME,value:C.name}},selectionSet:Pw({parent:t,type:C,models:r,path:i,ancestors:a,ignore:o,depthLimit:u,circularReferenceDepth:l,schema:m,depth:h,argNames:N,selectedFields:T,rootTypeNames:O})})).filter(C=>{var M,Y;return((Y=(M=C==null?void 0:C.selectionSet)==null?void 0:M.selections)==null?void 0:Y.length)>0})}}if((0,yt.isInterfaceType)(t)){let R=Object.values(m.getTypeMap()).filter(C=>(0,yt.isObjectType)(C)&&C.getInterfaces().includes(t));return{kind:yt.Kind.SELECTION_SET,selections:R.filter(C=>!ww([...a,C],{depth:l})).map(C=>({kind:yt.Kind.INLINE_FRAGMENT,typeCondition:{kind:yt.Kind.NAMED_TYPE,name:{kind:yt.Kind.NAME,value:C.name}},selectionSet:Pw({parent:t,type:C,models:r,path:i,ancestors:a,ignore:o,depthLimit:u,circularReferenceDepth:l,schema:m,depth:h,argNames:N,selectedFields:T,rootTypeNames:O})})).filter(C=>{var M,Y;return((Y=(M=C==null?void 0:C.selectionSet)==null?void 0:M.selections)==null?void 0:Y.length)>0})}}if((0,yt.isObjectType)(t)&&!O.has(t.name)){let R=o.includes(t.name)||o.includes(`${e.name}.${i[i.length-1]}`),C=r.includes(t.name);if(!n&&C&&!R)return{kind:yt.Kind.SELECTION_SET,selections:[{kind:yt.Kind.FIELD,name:{kind:yt.Kind.NAME,value:"id"}}]};let M=t.getFields();return{kind:yt.Kind.SELECTION_SET,selections:Object.keys(M).filter(Y=>!ww([...a,(0,yt.getNamedType)(M[Y].type)],{depth:l})).map(Y=>{let ee=typeof T=="object"?T[Y]:!0;return ee?e6({type:t,field:M[Y],models:r,path:[...i,Y],ancestors:a,ignore:o,depthLimit:u,circularReferenceDepth:l,schema:m,depth:h,argNames:N,selectedFields:ee,rootTypeNames:O}):null}).filter(Y=>{var ee,ae;return Y==null?!1:"selectionSet"in Y?!!((ae=(ee=Y.selectionSet)==null?void 0:ee.selections)!=null&&ae.length):!0})}}}}function ZW(e,t){function r(i){return(0,yt.isListType)(i)?{kind:yt.Kind.LIST_TYPE,type:r(i.ofType)}:(0,yt.isNonNullType)(i)?{kind:yt.Kind.NON_NULL_TYPE,type:r(i.ofType)}:{kind:yt.Kind.NAMED_TYPE,name:{kind:yt.Kind.NAME,value:i.name}}}let n;try{let i=(0,yt.astFromValue)(e.defaultValue,e.type);i==null?n=void 0:n=i}catch(i){let a=(0,OPe.astFromValueUntyped)(e.defaultValue);a==null?n=void 0:n=a}return{kind:yt.Kind.VARIABLE_DEFINITION,variable:{kind:yt.Kind.VARIABLE,name:{kind:yt.Kind.NAME,value:t||e.name}},type:r(e.type),defaultValue:n}}function HW(e,t){return[...t,e].join("_")}function e6({type:e,field:t,models:r,firstCall:n,path:i,ancestors:a,ignore:o,depthLimit:u,circularReferenceDepth:l,schema:m,depth:h,argNames:N,selectedFields:T,rootTypeNames:O}){let R=(0,yt.getNamedType)(t.type),C=[],M=!1;if(t.args&&t.args.length&&(C=t.args.map(Ne=>{let _e=HW(Ne.name,i);return N&&!N.includes(_e)?((0,yt.isNonNullType)(Ne.type)&&(M=!0),null):(n||XW(ZW(Ne,_e)),{kind:yt.Kind.ARGUMENT,name:{kind:yt.Kind.NAME,value:Ne.name},value:{kind:yt.Kind.VARIABLE,name:{kind:yt.Kind.NAME,value:HW(Ne.name,i)}}})}).filter(Boolean)),M)return null;let Y=[...i,t.name],ee=Y.join("."),ae=t.name;return TI.has(ee)&&TI.get(ee)!==t.type.toString()&&(ae+=t.type.toString().replace(/!/g,"NonNull").replace(/\[/g,"List").replace(/\]/g,"")),TI.set(ee,t.type.toString()),!(0,yt.isScalarType)(R)&&!(0,yt.isEnumType)(R)?G(q({kind:yt.Kind.FIELD,name:{kind:yt.Kind.NAME,value:t.name}},ae!==t.name&&{alias:{kind:yt.Kind.NAME,value:ae}}),{selectionSet:Pw({parent:e,type:R,models:r,firstCall:n,path:Y,ancestors:[...a,e],ignore:o,depthLimit:u,circularReferenceDepth:l,schema:m,depth:h+1,argNames:N,selectedFields:T,rootTypeNames:O})||void 0,arguments:C}):G(q({kind:yt.Kind.FIELD,name:{kind:yt.Kind.NAME,value:t.name}},ae!==t.name&&{alias:{kind:yt.Kind.NAME,value:ae}}),{arguments:C})}function ww(e,t={depth:1}){let r=e[e.length-1];return(0,yt.isScalarType)(r)?!1:e.filter(i=>i.name===r.name).length>t.depth}});var n6=D(EI=>{"use strict";d();p();f();Object.defineProperty(EI,"__esModule",{value:!0});EI.DirectiveLocation=void 0;var r6;(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"})(r6||(EI.DirectiveLocation=r6={}))});var ud=D(gI=>{"use strict";d();p();f();Object.defineProperty(gI,"__esModule",{value:!0});gI.MapperKind=void 0;var i6;(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"})(i6||(gI.MapperKind=i6={}))});var Bw=D(Cw=>{"use strict";d();p();f();Object.defineProperty(Cw,"__esModule",{value:!0});Cw.getObjectTypeFromTypeMap=RPe;var APe=ve();function RPe(e,t){if(t){let r=e[t.name];if((0,APe.isObjectType)(r))return r}}});var qw=D(ap=>{"use strict";d();p();f();Object.defineProperty(ap,"__esModule",{value:!0});ap.createNamedStub=Uw;ap.createStub=kw;ap.isNamedStub=wPe;ap.getBuiltInForStub=PPe;var qn=ve();function Uw(e,t){let r;return t==="object"?r=qn.GraphQLObjectType:t==="interface"?r=qn.GraphQLInterfaceType:r=qn.GraphQLInputObjectType,new r({name:e,fields:{_fake:{type:qn.GraphQLString}}})}function kw(e,t){switch(e.kind){case qn.Kind.LIST_TYPE:return new qn.GraphQLList(kw(e.type,t));case qn.Kind.NON_NULL_TYPE:return new qn.GraphQLNonNull(kw(e.type,t));default:return t==="output"?Uw(e.name.value,"object"):Uw(e.name.value,"input")}}function wPe(e){if("getFields"in e){let t=e.getFields();for(let r in t)return t[r].name==="_fake"}return!1}function PPe(e){switch(e.name){case qn.GraphQLInt.name:return qn.GraphQLInt;case qn.GraphQLFloat.name:return qn.GraphQLFloat;case qn.GraphQLString.name:return qn.GraphQLString;case qn.GraphQLBoolean.name:return qn.GraphQLBoolean;case qn.GraphQLID.name:return qn.GraphQLID;default:return e}}});var II=D(xw=>{"use strict";d();p();f();Object.defineProperty(xw,"__esModule",{value:!0});xw.rewireTypes=FPe;var En=ve(),a6=qw();function FPe(e,t){let r=Object.create(null);for(let T in e)r[T]=e[T];let n=Object.create(null);for(let T in r){let O=r[T];if(O==null||T.startsWith("__"))continue;let R=O.name;if(!R.startsWith("__")){if(n[R]!=null){console.warn(`Duplicate schema type name ${R} found; keeping the existing one found in the schema`);continue}n[R]=O}}for(let T in n)n[T]=u(n[T]);let i=t.map(T=>a(T));return{typeMap:n,directives:i};function a(T){if((0,En.isSpecifiedDirective)(T))return T;let O=T.toConfig();return O.args=o(O.args),new En.GraphQLDirective(O)}function o(T){let O={};for(let R in T){let C=T[R],M=N(C.type);M!=null&&(C.type=M,O[R]=C)}return O}function u(T){if((0,En.isObjectType)(T)){let O=T.toConfig(),R=G(q({},O),{fields:()=>l(O.fields),interfaces:()=>h(O.interfaces)});return new En.GraphQLObjectType(R)}else if((0,En.isInterfaceType)(T)){let O=T.toConfig(),R=G(q({},O),{fields:()=>l(O.fields)});return"interfaces"in R&&(R.interfaces=()=>h(O.interfaces)),new En.GraphQLInterfaceType(R)}else if((0,En.isUnionType)(T)){let O=T.toConfig(),R=G(q({},O),{types:()=>h(O.types)});return new En.GraphQLUnionType(R)}else if((0,En.isInputObjectType)(T)){let O=T.toConfig(),R=G(q({},O),{fields:()=>m(O.fields)});return new En.GraphQLInputObjectType(R)}else if((0,En.isEnumType)(T)){let O=T.toConfig();return new En.GraphQLEnumType(O)}else if((0,En.isScalarType)(T)){if((0,En.isSpecifiedScalarType)(T))return T;let O=T.toConfig();return new En.GraphQLScalarType(O)}throw new Error(`Unexpected schema type: ${T}`)}function l(T){let O={};for(let R in T){let C=T[R],M=N(C.type);M!=null&&C.args&&(C.type=M,C.args=o(C.args),O[R]=C)}return O}function m(T){let O={};for(let R in T){let C=T[R],M=N(C.type);M!=null&&(C.type=M,O[R]=C)}return O}function h(T){let O=[];for(let R of T){let C=N(R);C!=null&&O.push(C)}return O}function N(T){if((0,En.isListType)(T)){let O=N(T.ofType);return O!=null?new En.GraphQLList(O):null}else if((0,En.isNonNullType)(T)){let O=N(T.ofType);return O!=null?new En.GraphQLNonNull(O):null}else if((0,En.isNamedType)(T)){let O=r[T.name];return O===void 0&&(O=(0,a6.isNamedStub)(T)?(0,a6.getBuiltInForStub)(T):u(T),n[O.name]=r[T.name]=O),O!=null?n[O.name]:null}return null}}});var Mw=D(sp=>{"use strict";d();p();f();Object.defineProperty(sp,"__esModule",{value:!0});sp.transformInputValue=op;sp.serializeInputValue=CPe;sp.parseInputValue=BPe;sp.parseInputValueLiteral=UPe;var vI=ve(),LPe=tp();function op(e,t,r=null,n=null){if(t==null)return t;let i=(0,vI.getNullableType)(e);if((0,vI.isLeafType)(i))return r!=null?r(i,t):t;if((0,vI.isListType)(i))return(0,LPe.asArray)(t).map(a=>op(i.ofType,a,r,n));if((0,vI.isInputObjectType)(i)){let a=i.getFields(),o={};for(let u in t){let l=a[u];l!=null&&(o[u]=op(l.type,t[u],r,n))}return n!=null?n(i,o):o}}function CPe(e,t){return op(e,t,(r,n)=>{try{return r.serialize(n)}catch(i){return n}})}function BPe(e,t){return op(e,t,(r,n)=>{try{return r.parseValue(n)}catch(i){return n}})}function UPe(e,t){return op(e,t,(r,n)=>r.parseLiteral(n,{}))}});var cp=D(SI=>{"use strict";d();p();f();Object.defineProperty(SI,"__esModule",{value:!0});SI.mapSchema=qPe;SI.correctASTNodes=cy;var ft=ve(),up=Bw(),qt=ud(),kPe=II(),o6=Mw();function qPe(e,t={}){let r=c6(u6(jw(s6(MPe(jw(s6(e.getTypeMap(),e,o6.serializeInputValue),e,t,u=>(0,ft.isLeafType)(u)),e,t),e,o6.parseInputValue),e,t,u=>!(0,ft.isLeafType)(u)),e,t),e,t),n=e.getDirectives(),i=jPe(n,e,t),{typeMap:a,directives:o}=(0,kPe.rewireTypes)(r,i);return new ft.GraphQLSchema(G(q({},e.toConfig()),{query:(0,up.getObjectTypeFromTypeMap)(a,(0,up.getObjectTypeFromTypeMap)(r,e.getQueryType())),mutation:(0,up.getObjectTypeFromTypeMap)(a,(0,up.getObjectTypeFromTypeMap)(r,e.getMutationType())),subscription:(0,up.getObjectTypeFromTypeMap)(a,(0,up.getObjectTypeFromTypeMap)(r,e.getSubscriptionType())),types:Object.values(a),directives:o}))}var xPe=["String","ID","Int","Float","Boolean"];function jw(e,t,r,n=()=>!0){let i={};for(let a in e)if(!a.startsWith("__")&&!xPe.includes(a)){let o=e[a];if(o==null||!n(o)){i[a]=o;continue}let u=KPe(t,r,a);if(u==null){i[a]=o;continue}let l=u(o,t);if(l===void 0){i[a]=o;continue}i[a]=l}return i}function MPe(e,t,r){let n=JPe(r);return n?jw(e,t,{[qt.MapperKind.ENUM_TYPE]:i=>{let a=i.toConfig(),o=a.values,u={};for(let l in o){let m=o[l],h=n(m,i.name,t,l);if(h===void 0)u[l]=m;else if(Array.isArray(h)){let[N,T]=h;u[N]=T===void 0?m:T}else h!==null&&(u[l]=h)}return cy(new ft.GraphQLEnumType(G(q({},a),{values:u})))}},i=>(0,ft.isEnumType)(i)):e}function s6(e,t,r){let n=c6(e,t,{[qt.MapperKind.ARGUMENT]:i=>{if(i.defaultValue===void 0)return i;let a=_I(e,i.type);if(a!=null)return G(q({},i),{defaultValue:r(a,i.defaultValue)})}});return u6(n,t,{[qt.MapperKind.INPUT_OBJECT_FIELD]:i=>{if(i.defaultValue===void 0)return i;let a=_I(n,i.type);if(a!=null)return G(q({},i),{defaultValue:r(a,i.defaultValue)})}})}function _I(e,t){if((0,ft.isListType)(t)){let r=_I(e,t.ofType);return r!=null?new ft.GraphQLList(r):null}else if((0,ft.isNonNullType)(t)){let r=_I(e,t.ofType);return r!=null?new ft.GraphQLNonNull(r):null}else if((0,ft.isNamedType)(t)){let r=e[t.name];return r!=null?r:null}return null}function u6(e,t,r){let n={};for(let i in e)if(!i.startsWith("__")){let a=e[i];if(!(0,ft.isObjectType)(a)&&!(0,ft.isInterfaceType)(a)&&!(0,ft.isInputObjectType)(a)){n[i]=a;continue}let o=GPe(t,r,i);if(o==null){n[i]=a;continue}let u=a.toConfig(),l=u.fields,m={};for(let h in l){let N=l[h],T=o(N,h,i,t);if(T===void 0)m[h]=N;else if(Array.isArray(T)){let[O,R]=T;R.astNode!=null&&(R.astNode=G(q({},R.astNode),{name:G(q({},R.astNode.name),{value:O})})),m[O]=R===void 0?N:R}else T!==null&&(m[h]=T)}(0,ft.isObjectType)(a)?n[i]=cy(new ft.GraphQLObjectType(G(q({},u),{fields:m}))):(0,ft.isInterfaceType)(a)?n[i]=cy(new ft.GraphQLInterfaceType(G(q({},u),{fields:m}))):n[i]=cy(new ft.GraphQLInputObjectType(G(q({},u),{fields:m})))}return n}function c6(e,t,r){let n={};for(let i in e)if(!i.startsWith("__")){let a=e[i];if(!(0,ft.isObjectType)(a)&&!(0,ft.isInterfaceType)(a)){n[i]=a;continue}let o=QPe(r);if(o==null){n[i]=a;continue}let u=a.toConfig(),l=u.fields,m={};for(let h in l){let N=l[h],T=N.args;if(T==null){m[h]=N;continue}let O=Object.keys(T);if(!O.length){m[h]=N;continue}let R={};for(let C of O){let M=T[C],Y=o(M,h,i,t);if(Y===void 0)R[C]=M;else if(Array.isArray(Y)){let[ee,ae]=Y;R[ee]=ae}else Y!==null&&(R[C]=Y)}m[h]=G(q({},N),{args:R})}(0,ft.isObjectType)(a)?n[i]=new ft.GraphQLObjectType(G(q({},u),{fields:m})):(0,ft.isInterfaceType)(a)?n[i]=new ft.GraphQLInterfaceType(G(q({},u),{fields:m})):n[i]=new ft.GraphQLInputObjectType(G(q({},u),{fields:m}))}return n}function jPe(e,t,r){let n=YPe(r);if(n==null)return e.slice();let i=[];for(let a of e){let o=n(a,t);o===void 0?i.push(a):o!==null&&i.push(o)}return i}function VPe(e,t){var i,a,o;let r=e.getType(t),n=[qt.MapperKind.TYPE];return(0,ft.isObjectType)(r)?(n.push(qt.MapperKind.COMPOSITE_TYPE,qt.MapperKind.OBJECT_TYPE),t===((i=e.getQueryType())==null?void 0:i.name)?n.push(qt.MapperKind.ROOT_OBJECT,qt.MapperKind.QUERY):t===((a=e.getMutationType())==null?void 0:a.name)?n.push(qt.MapperKind.ROOT_OBJECT,qt.MapperKind.MUTATION):t===((o=e.getSubscriptionType())==null?void 0:o.name)&&n.push(qt.MapperKind.ROOT_OBJECT,qt.MapperKind.SUBSCRIPTION)):(0,ft.isInputObjectType)(r)?n.push(qt.MapperKind.INPUT_OBJECT_TYPE):(0,ft.isInterfaceType)(r)?n.push(qt.MapperKind.COMPOSITE_TYPE,qt.MapperKind.ABSTRACT_TYPE,qt.MapperKind.INTERFACE_TYPE):(0,ft.isUnionType)(r)?n.push(qt.MapperKind.COMPOSITE_TYPE,qt.MapperKind.ABSTRACT_TYPE,qt.MapperKind.UNION_TYPE):(0,ft.isEnumType)(r)?n.push(qt.MapperKind.ENUM_TYPE):(0,ft.isScalarType)(r)&&n.push(qt.MapperKind.SCALAR_TYPE),n}function KPe(e,t,r){let n=VPe(e,r),i,a=[...n];for(;!i&&a.length>0;){let o=a.pop();i=t[o]}return i!=null?i:null}function $Pe(e,t){var i,a,o;let r=e.getType(t),n=[qt.MapperKind.FIELD];return(0,ft.isObjectType)(r)?(n.push(qt.MapperKind.COMPOSITE_FIELD,qt.MapperKind.OBJECT_FIELD),t===((i=e.getQueryType())==null?void 0:i.name)?n.push(qt.MapperKind.ROOT_FIELD,qt.MapperKind.QUERY_ROOT_FIELD):t===((a=e.getMutationType())==null?void 0:a.name)?n.push(qt.MapperKind.ROOT_FIELD,qt.MapperKind.MUTATION_ROOT_FIELD):t===((o=e.getSubscriptionType())==null?void 0:o.name)&&n.push(qt.MapperKind.ROOT_FIELD,qt.MapperKind.SUBSCRIPTION_ROOT_FIELD)):(0,ft.isInterfaceType)(r)?n.push(qt.MapperKind.COMPOSITE_FIELD,qt.MapperKind.INTERFACE_FIELD):(0,ft.isInputObjectType)(r)&&n.push(qt.MapperKind.INPUT_OBJECT_FIELD),n}function GPe(e,t,r){let n=$Pe(e,r),i,a=[...n];for(;!i&&a.length>0;){let o=a.pop();i=t[o]}return i!=null?i:null}function QPe(e){let t=e[qt.MapperKind.ARGUMENT];return t!=null?t:null}function YPe(e){let t=e[qt.MapperKind.DIRECTIVE];return t!=null?t:null}function JPe(e){let t=e[qt.MapperKind.ENUM_VALUE];return t!=null?t:null}function cy(e){if((0,ft.isObjectType)(e)){let t=e.toConfig();if(t.astNode!=null){let r=[];for(let n in t.fields){let i=t.fields[n];i.astNode!=null&&r.push(i.astNode)}t.astNode=G(q({},t.astNode),{kind:ft.Kind.OBJECT_TYPE_DEFINITION,fields:r})}return t.extensionASTNodes!=null&&(t.extensionASTNodes=t.extensionASTNodes.map(r=>G(q({},r),{kind:ft.Kind.OBJECT_TYPE_EXTENSION,fields:void 0}))),new ft.GraphQLObjectType(t)}else if((0,ft.isInterfaceType)(e)){let t=e.toConfig();if(t.astNode!=null){let r=[];for(let n in t.fields){let i=t.fields[n];i.astNode!=null&&r.push(i.astNode)}t.astNode=G(q({},t.astNode),{kind:ft.Kind.INTERFACE_TYPE_DEFINITION,fields:r})}return t.extensionASTNodes!=null&&(t.extensionASTNodes=t.extensionASTNodes.map(r=>G(q({},r),{kind:ft.Kind.INTERFACE_TYPE_EXTENSION,fields:void 0}))),new ft.GraphQLInterfaceType(t)}else if((0,ft.isInputObjectType)(e)){let t=e.toConfig();if(t.astNode!=null){let r=[];for(let n in t.fields){let i=t.fields[n];i.astNode!=null&&r.push(i.astNode)}t.astNode=G(q({},t.astNode),{kind:ft.Kind.INPUT_OBJECT_TYPE_DEFINITION,fields:r})}return t.extensionASTNodes!=null&&(t.extensionASTNodes=t.extensionASTNodes.map(r=>G(q({},r),{kind:ft.Kind.INPUT_OBJECT_TYPE_EXTENSION,fields:void 0}))),new ft.GraphQLInputObjectType(t)}else if((0,ft.isEnumType)(e)){let t=e.toConfig();if(t.astNode!=null){let r=[];for(let n in t.values){let i=t.values[n];i.astNode!=null&&r.push(i.astNode)}t.astNode=G(q({},t.astNode),{values:r})}return t.extensionASTNodes!=null&&(t.extensionASTNodes=t.extensionASTNodes.map(r=>G(q({},r),{values:void 0}))),new ft.GraphQLEnumType(t)}else return e}});var l6=D($w=>{"use strict";d();p();f();Object.defineProperty($w,"__esModule",{value:!0});$w.filterSchema=HPe;var OI=ve(),oo=ud(),zPe=cp();function HPe({schema:e,typeFilter:t=()=>!0,fieldFilter:r=void 0,rootFieldFilter:n=void 0,objectFieldFilter:i=void 0,interfaceFieldFilter:a=void 0,inputObjectFieldFilter:o=void 0,argumentFilter:u=void 0,directiveFilter:l=void 0,enumValueFilter:m=void 0}){return(0,zPe.mapSchema)(e,{[oo.MapperKind.QUERY]:N=>Vw(N,"Query",n,u),[oo.MapperKind.MUTATION]:N=>Vw(N,"Mutation",n,u),[oo.MapperKind.SUBSCRIPTION]:N=>Vw(N,"Subscription",n,u),[oo.MapperKind.OBJECT_TYPE]:N=>t(N.name,N)?Kw(OI.GraphQLObjectType,N,i||r,u):null,[oo.MapperKind.INTERFACE_TYPE]:N=>t(N.name,N)?Kw(OI.GraphQLInterfaceType,N,a||r,u):null,[oo.MapperKind.INPUT_OBJECT_TYPE]:N=>t(N.name,N)?Kw(OI.GraphQLInputObjectType,N,o||r):null,[oo.MapperKind.UNION_TYPE]:N=>t(N.name,N)?void 0:null,[oo.MapperKind.ENUM_TYPE]:N=>t(N.name,N)?void 0:null,[oo.MapperKind.SCALAR_TYPE]:N=>t(N.name,N)?void 0:null,[oo.MapperKind.DIRECTIVE]:N=>l&&!l(N.name,N)?null:void 0,[oo.MapperKind.ENUM_VALUE]:(N,T,O,R)=>m&&!m(T,R,N)?null:void 0})}function Vw(e,t,r,n){if(r||n){let i=e.toConfig();for(let a in i.fields){let o=i.fields[a];if(r&&!r(t,a,i.fields[a]))delete i.fields[a];else if(n&&o.args)for(let u in o.args)n(e.name,a,u,o.args[u])||delete o.args[u]}return new OI.GraphQLObjectType(i)}return e}function Kw(e,t,r,n){if(r||n){let i=t.toConfig();for(let a in i.fields){let o=i.fields[a];if(r&&!r(t.name,a,i.fields[a]))delete i.fields[a];else if(n&&"args"in o)for(let u in o.args)n(t.name,a,u,o.args[u])||delete o.args[u]}return new e(i)}}});var f6=D(DI=>{"use strict";d();p();f();Object.defineProperty(DI,"__esModule",{value:!0});DI.healSchema=WPe;DI.healTypes=d6;var Go=ve();function WPe(e){return d6(e.getTypeMap(),e.getDirectives()),e}function d6(e,t){let r=Object.create(null);for(let m in e){let h=e[m];if(h==null||m.startsWith("__"))continue;let N=h.name;if(!N.startsWith("__")){if(r[N]!=null){console.warn(`Duplicate schema type name ${N} found; keeping the existing one found in the schema`);continue}r[N]=h}}for(let m in r){let h=r[m];e[m]=h}for(let m of t)m.args=m.args.filter(h=>(h.type=l(h.type),h.type!==null));for(let m in e){let h=e[m];!m.startsWith("__")&&m in r&&h!=null&&n(h)}for(let m in e)!m.startsWith("__")&&!(m in r)&&delete e[m];function n(m){if((0,Go.isObjectType)(m)){i(m),a(m);return}else if((0,Go.isInterfaceType)(m)){i(m),"getInterfaces"in m&&a(m);return}else if((0,Go.isUnionType)(m)){u(m);return}else if((0,Go.isInputObjectType)(m)){o(m);return}else if((0,Go.isLeafType)(m))return;throw new Error(`Unexpected schema type: ${m}`)}function i(m){let h=m.getFields();for(let[N,T]of Object.entries(h))T.args.map(O=>(O.type=l(O.type),O.type===null?null:O)).filter(Boolean),T.type=l(T.type),T.type===null&&delete h[N]}function a(m){if("getInterfaces"in m){let h=m.getInterfaces();h.push(...h.splice(0).map(N=>l(N)).filter(Boolean))}}function o(m){let h=m.getFields();for(let[N,T]of Object.entries(h))T.type=l(T.type),T.type===null&&delete h[N]}function u(m){let h=m.getTypes();h.push(...h.splice(0).map(N=>l(N)).filter(Boolean))}function l(m){if((0,Go.isListType)(m)){let h=l(m.ofType);return h!=null?new Go.GraphQLList(h):null}else if((0,Go.isNonNullType)(m)){let h=l(m.ofType);return h!=null?new Go.GraphQLNonNull(h):null}else if((0,Go.isNamedType)(m)){let h=e[m.name];if(h&&m!==h)return h}return m}}});var p6=D(Gw=>{"use strict";d();p();f();Object.defineProperty(Gw,"__esModule",{value:!0});Gw.getResolversFromSchema=XPe;var cd=ve();function XPe(e,t){var i,a;let r=Object.create(null),n=e.getTypeMap();for(let o in n)if(!o.startsWith("__")){let u=n[o];if((0,cd.isScalarType)(u)){if(!(0,cd.isSpecifiedScalarType)(u)){let l=u.toConfig();delete l.astNode,r[o]=new cd.GraphQLScalarType(l)}}else if((0,cd.isEnumType)(u)){r[o]={};let l=u.getValues();for(let m of l)r[o][m.name]=m.value}else if((0,cd.isInterfaceType)(u))u.resolveType!=null&&(r[o]={__resolveType:u.resolveType});else if((0,cd.isUnionType)(u))u.resolveType!=null&&(r[o]={__resolveType:u.resolveType});else if((0,cd.isObjectType)(u)){r[o]={},u.isTypeOf!=null&&(r[o].__isTypeOf=u.isTypeOf);let l=u.getFields();for(let m in l){let h=l[m];if(h.subscribe!=null&&(r[o][m]=r[o][m]||{},r[o][m].subscribe=h.subscribe),h.resolve!=null&&((i=h.resolve)==null?void 0:i.name)!=="defaultFieldResolver"){switch((a=h.resolve)==null?void 0:a.name){case"defaultMergedResolver":if(!t)continue;break;case"defaultFieldResolver":continue}r[o][m]=r[o][m]||{},r[o][m].resolve=h.resolve}}}}return r}});var h6=D(Qw=>{"use strict";d();p();f();Object.defineProperty(Qw,"__esModule",{value:!0});Qw.forEachField=ZPe;var m6=ve();function ZPe(e,t){let r=e.getTypeMap();for(let n in r){let i=r[n];if(!(0,m6.getNamedType)(i).name.startsWith("__")&&(0,m6.isObjectType)(i)){let a=i.getFields();for(let o in a){let u=a[o];t(u,n,o)}}}}});var y6=D(Jw=>{"use strict";d();p();f();Object.defineProperty(Jw,"__esModule",{value:!0});Jw.forEachDefaultValue=eFe;var Yw=ve();function eFe(e,t){let r=e.getTypeMap();for(let n in r){let i=r[n];if(!(0,Yw.getNamedType)(i).name.startsWith("__")){if((0,Yw.isObjectType)(i)){let a=i.getFields();for(let o in a){let u=a[o];for(let l of u.args)l.defaultValue=t(l.type,l.defaultValue)}}else if((0,Yw.isInputObjectType)(i)){let a=i.getFields();for(let o in a){let u=a[o];u.defaultValue=t(u.type,u.defaultValue)}}}}}});var Xw=D(Ww=>{"use strict";d();p();f();Object.defineProperty(Ww,"__esModule",{value:!0});Ww.addTypes=rFe;var zw=ve(),Hw=Bw(),tFe=II();function rFe(e,t){let r=e.toConfig(),n={};for(let u of r.types)n[u.name]=u;let i={};for(let u of r.directives)i[u.name]=u;for(let u of t)(0,zw.isNamedType)(u)?n[u.name]=u:(0,zw.isDirective)(u)&&(i[u.name]=u);let{typeMap:a,directives:o}=(0,tFe.rewireTypes)(n,Object.values(i));return new zw.GraphQLSchema(G(q({},r),{query:(0,Hw.getObjectTypeFromTypeMap)(a,e.getQueryType()),mutation:(0,Hw.getObjectTypeFromTypeMap)(a,e.getMutationType()),subscription:(0,Hw.getObjectTypeFromTypeMap)(a,e.getSubscriptionType()),types:Object.values(a),directives:o}))}});var T6=D(Zw=>{"use strict";d();p();f();Object.defineProperty(Zw,"__esModule",{value:!0});Zw.pruneSchema=sFe;var gn=ve(),nFe=hw(),iFe=ud(),aFe=cp(),oFe=iy();function sFe(e,t={}){let{skipEmptyCompositeTypePruning:r,skipEmptyUnionPruning:n,skipPruning:i,skipUnimplementedInterfacesPruning:a,skipUnusedTypesPruning:o}=t,u=[],l=e;do{let m=uFe(l);if(i){let h=[];for(let N in l.getTypeMap()){if(N.startsWith("__"))continue;let T=l.getType(N);T&&i(T)&&h.push(N)}m=N6(h,l,m)}u=[],l=(0,aFe.mapSchema)(l,{[iFe.MapperKind.TYPE]:h=>!m.has(h.name)&&!(0,gn.isSpecifiedScalarType)(h)?((0,gn.isUnionType)(h)||(0,gn.isInputObjectType)(h)||(0,gn.isInterfaceType)(h)||(0,gn.isObjectType)(h)||(0,gn.isScalarType)(h))&&(o||(0,gn.isUnionType)(h)&&n&&!Object.keys(h.getTypes()).length||((0,gn.isInputObjectType)(h)||(0,gn.isInterfaceType)(h)||(0,gn.isObjectType)(h))&&r&&!Object.keys(h.getFields()).length||(0,gn.isInterfaceType)(h)&&a)?h:(u.push(h.name),m.delete(h.name),null):h})}while(u.length);return l}function uFe(e){let t=[];for(let r of(0,oFe.getRootTypes)(e))t.push(r.name);return N6(t,e)}function N6(e,t,r=new Set){let n=new Map;for(;e.length;){let i=e.pop();if(r.has(i)&&n[i]!==!0)continue;let a=t.getType(i);if(a){if((0,gn.isUnionType)(a)&&e.push(...a.getTypes().map(o=>o.name)),(0,gn.isInterfaceType)(a)&&n[i]===!0&&(e.push(...(0,nFe.getImplementingTypes)(a.name,t)),n[i]=!1),(0,gn.isEnumType)(a)&&e.push(...a.getValues().flatMap(o=>bI(t,o))),"getInterfaces"in a&&e.push(...a.getInterfaces().map(o=>o.name)),"getFields"in a){let o=a.getFields(),u=Object.entries(o);if(!u.length)continue;for(let[,l]of u){(0,gn.isObjectType)(a)&&e.push(...l.args.flatMap(h=>{let N=[(0,gn.getNamedType)(h.type).name];return N.push(...bI(t,h)),N}));let m=(0,gn.getNamedType)(l.type);e.push(m.name),e.push(...bI(t,l)),(0,gn.isInterfaceType)(m)&&!(m.name in n)&&(n[m.name]=!0)}}e.push(...bI(t,a)),r.add(i)}}return r}function bI(e,t){var n,i;let r=new Set;if((n=t.astNode)!=null&&n.directives)for(let a of t.astNode.directives){let o=e.getDirective(a.name.value);if(o!=null&&o.args)for(let u of o.args){let l=(0,gn.getNamedType)(u.type);r.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 u of o.args){let l=(0,gn.getNamedType)(u.type);r.add(l.name)}}return[...r]}});var tP=D(eP=>{"use strict";d();p();f();Object.defineProperty(eP,"__esModule",{value:!0});eP.mergeDeep=AI;var cFe=tp();function AI(e,t=!1,r=!1,n=!1){if(e.length===0)return;if(e.length===1)return e[0];let i,a=!0,o=e.every(m=>{if(Array.isArray(m)){if(i===void 0)return i=m.length,!0;if(i===m.length)return!0}else a=!1;return!1});if(n&&o)return new Array(i).fill(null).map((m,h)=>AI(e.map(N=>N[h]),t,r,n));if(a)return e.flat(1);let u,l;t&&(l=e.find(m=>E6(m)),l&&(u==null&&(u={}),Object.setPrototypeOf(u,Object.create(Object.getPrototypeOf(l)))));for(let m of e)if(m!=null)if(E6(m)){if(l){let h=Object.getPrototypeOf(u),N=Object.getPrototypeOf(m);if(N)for(let T of Object.getOwnPropertyNames(N)){let O=Object.getOwnPropertyDescriptor(N,T);(0,cFe.isSome)(O)&&Object.defineProperty(h,T,O)}}for(let h in m)u==null&&(u={}),h in u?u[h]=AI([u[h],m[h]],t,r,n):u[h]=m[h]}else Array.isArray(m)&&Array.isArray(u)?u=AI([u,m],t,r,n):u=m;return u}function E6(e){return e&&typeof e=="object"&&!Array.isArray(e)}});var g6=D(rP=>{"use strict";d();p();f();Object.defineProperty(rP,"__esModule",{value:!0});rP.parseSelectionSet=dFe;var lFe=ve();function dFe(e,t){return(0,lFe.parse)(e,t).definitions[0].selectionSet}});var I6=D(nP=>{"use strict";d();p();f();Object.defineProperty(nP,"__esModule",{value:!0});nP.getResponseKeyFromInfo=fFe;function fFe(e){return e.fieldNodes[0].alias!=null?e.fieldNodes[0].alias.value:e.fieldName}});var v6=D(lp=>{"use strict";d();p();f();Object.defineProperty(lp,"__esModule",{value:!0});lp.appendObjectFields=mFe;lp.removeObjectFields=hFe;lp.selectObjectFields=yFe;lp.modifyObjectFields=NFe;var RI=ve(),pFe=Xw(),wI=ud(),ld=cp();function mFe(e,t,r){return e.getType(t)==null?(0,pFe.addTypes)(e,[new RI.GraphQLObjectType({name:t,fields:r})]):(0,ld.mapSchema)(e,{[wI.MapperKind.OBJECT_TYPE]:n=>{if(n.name===t){let i=n.toConfig(),a=i.fields,o={};for(let u in a)o[u]=a[u];for(let u in r)o[u]=r[u];return(0,ld.correctASTNodes)(new RI.GraphQLObjectType(G(q({},i),{fields:o})))}}})}function hFe(e,t,r){let n={};return[(0,ld.mapSchema)(e,{[wI.MapperKind.OBJECT_TYPE]:a=>{if(a.name===t){let o=a.toConfig(),u=o.fields,l={};for(let m in u){let h=u[m];r(m,h)?n[m]=h:l[m]=h}return(0,ld.correctASTNodes)(new RI.GraphQLObjectType(G(q({},o),{fields:l})))}}}),n]}function yFe(e,t,r){let n={};return(0,ld.mapSchema)(e,{[wI.MapperKind.OBJECT_TYPE]:i=>{if(i.name===t){let o=i.toConfig().fields;for(let u in o){let l=o[u];r(u,l)&&(n[u]=l)}}}}),n}function NFe(e,t,r,n){let i={};return[(0,ld.mapSchema)(e,{[wI.MapperKind.OBJECT_TYPE]:o=>{if(o.name===t){let u=o.toConfig(),l=u.fields,m={};for(let h in l){let N=l[h];r(h,N)?i[h]=N:m[h]=N}for(let h in n){let N=n[h];m[h]=N}return(0,ld.correctASTNodes)(new RI.GraphQLObjectType(G(q({},u),{fields:m})))}}}),i]}});var _6=D(iP=>{"use strict";d();p();f();Object.defineProperty(iP,"__esModule",{value:!0});iP.renameType=TFe;var Da=ve();function TFe(e,t){if((0,Da.isObjectType)(e))return new Da.GraphQLObjectType(G(q({},e.toConfig()),{name:t,astNode:e.astNode==null?e.astNode:G(q({},e.astNode),{name:G(q({},e.astNode.name),{value:t})}),extensionASTNodes:e.extensionASTNodes==null?e.extensionASTNodes:e.extensionASTNodes.map(r=>G(q({},r),{name:G(q({},r.name),{value:t})}))}));if((0,Da.isInterfaceType)(e))return new Da.GraphQLInterfaceType(G(q({},e.toConfig()),{name:t,astNode:e.astNode==null?e.astNode:G(q({},e.astNode),{name:G(q({},e.astNode.name),{value:t})}),extensionASTNodes:e.extensionASTNodes==null?e.extensionASTNodes:e.extensionASTNodes.map(r=>G(q({},r),{name:G(q({},r.name),{value:t})}))}));if((0,Da.isUnionType)(e))return new Da.GraphQLUnionType(G(q({},e.toConfig()),{name:t,astNode:e.astNode==null?e.astNode:G(q({},e.astNode),{name:G(q({},e.astNode.name),{value:t})}),extensionASTNodes:e.extensionASTNodes==null?e.extensionASTNodes:e.extensionASTNodes.map(r=>G(q({},r),{name:G(q({},r.name),{value:t})}))}));if((0,Da.isInputObjectType)(e))return new Da.GraphQLInputObjectType(G(q({},e.toConfig()),{name:t,astNode:e.astNode==null?e.astNode:G(q({},e.astNode),{name:G(q({},e.astNode.name),{value:t})}),extensionASTNodes:e.extensionASTNodes==null?e.extensionASTNodes:e.extensionASTNodes.map(r=>G(q({},r),{name:G(q({},r.name),{value:t})}))}));if((0,Da.isEnumType)(e))return new Da.GraphQLEnumType(G(q({},e.toConfig()),{name:t,astNode:e.astNode==null?e.astNode:G(q({},e.astNode),{name:G(q({},e.astNode.name),{value:t})}),extensionASTNodes:e.extensionASTNodes==null?e.extensionASTNodes:e.extensionASTNodes.map(r=>G(q({},r),{name:G(q({},r.name),{value:t})}))}));if((0,Da.isScalarType)(e))return new Da.GraphQLScalarType(G(q({},e.toConfig()),{name:t,astNode:e.astNode==null?e.astNode:G(q({},e.astNode),{name:G(q({},e.astNode.name),{value:t})}),extensionASTNodes:e.extensionASTNodes==null?e.extensionASTNodes:e.extensionASTNodes.map(r=>G(q({},r),{name:G(q({},r.name),{value:t})}))}));throw new Error(`Unknown type ${e}.`)}});var S6=D(PI=>{"use strict";d();p();f();Object.defineProperty(PI,"__esModule",{value:!0});PI.updateArgument=gFe;PI.createVariableNameGenerator=IFe;var dd=ve(),EFe=hI();function gFe(e,t,r,n,i,a,o){if(e[n]={kind:dd.Kind.ARGUMENT,name:{kind:dd.Kind.NAME,value:n},value:{kind:dd.Kind.VARIABLE,name:{kind:dd.Kind.NAME,value:i}}},t[i]={kind:dd.Kind.VARIABLE_DEFINITION,variable:{kind:dd.Kind.VARIABLE,name:{kind:dd.Kind.NAME,value:i}},type:(0,EFe.astFromType)(a)},o!==void 0){r[i]=o;return}i in r&&delete r[i]}function IFe(e){let t=0;return r=>{let n;do n=t===0?r:`_v${t.toString()}_${r}`,t++;while(n in e);return n}}});var O6=D(oP=>{"use strict";d();p();f();Object.defineProperty(oP,"__esModule",{value:!0});oP.implementsAbstractType=vFe;var aP=ve();function vFe(e,t,r){return r==null||t==null?!1:t===r?!0:(0,aP.isCompositeType)(t)&&(0,aP.isCompositeType)(r)?(0,aP.doTypesOverlap)(e,t,r):!1}});var b6=D(sP=>{"use strict";d();p();f();Object.defineProperty(sP,"__esModule",{value:!0});sP.observableToAsyncIterable=_Fe;var D6=ty();function _Fe(e){let t=[],r=[],n=!0,i=h=>{t.length!==0?t.shift()({value:h,done:!1}):r.push({value:h,done:!1})},a=h=>{t.length!==0?t.shift()({value:{errors:[h]},done:!1}):r.push({value:{errors:[h]},done:!1})},o=()=>{t.length!==0?t.shift()({done:!0}):r.push({done:!0})},u=()=>new Promise(h=>{if(r.length!==0){let N=r.shift();h(N)}else t.push(h)}),l=e.subscribe({next(h){return i(h)},error(h){return a(h)},complete(){return o()}}),m=()=>{if(n){n=!1,l.unsubscribe();for(let h of t)h({value:void 0,done:!0});t.length=0,r.length=0}};return{next(){return n?u():this.return()},return(){return m(),(0,D6.fakePromise)({value:void 0,done:!0})},throw(h){return m(),(0,D6.fakeRejectPromise)(h)},[Symbol.asyncIterator](){return this}}}});var A6=D(FI=>{"use strict";d();p();f();Object.defineProperty(FI,"__esModule",{value:!0});FI.AccumulatorMap=void 0;var uP=class extends Map{get[Symbol.toStringTag](){return"AccumulatorMap"}add(t,r){let n=this.get(t);n===void 0?this.set(t,[r]):n.push(r)}};FI.AccumulatorMap=uP});var cP=D(dp=>{"use strict";d();p();f();Object.defineProperty(dp,"__esModule",{value:!0});dp.GraphQLStreamDirective=dp.GraphQLDeferDirective=void 0;var ba=ve();dp.GraphQLDeferDirective=new ba.GraphQLDirective({name:"defer",description:"Directs the executor to defer this fragment when the `if` argument is true or undefined.",locations:[ba.DirectiveLocation.FRAGMENT_SPREAD,ba.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new ba.GraphQLNonNull(ba.GraphQLBoolean),description:"Deferred when true or undefined.",defaultValue:!0},label:{type:ba.GraphQLString,description:"Unique name"}}});dp.GraphQLStreamDirective=new ba.GraphQLDirective({name:"stream",description:"Directs the executor to stream plural fields when the `if` argument is true or undefined.",locations:[ba.DirectiveLocation.FIELD],args:{if:{type:new ba.GraphQLNonNull(ba.GraphQLBoolean),description:"Stream when true or undefined.",defaultValue:!0},label:{type:ba.GraphQLString,description:"Unique name"},initialCount:{defaultValue:0,type:ba.GraphQLInt,description:"Number of items to return immediately"}}})});var fP=D(ks=>{"use strict";d();p();f();Object.defineProperty(ks,"__esModule",{value:!0});ks.collectSubFields=void 0;ks.collectFields=DFe;ks.shouldIncludeNode=LI;ks.doesFragmentConditionMatch=lP;ks.getFieldEntryKey=R6;ks.getDeferValues=dP;var Qo=ve(),CI=A6(),SFe=cP(),OFe=Hc();function fp(e,t,r,n,i,a,o,u){for(let l of i.selections)switch(l.kind){case Qo.Kind.FIELD:{if(!LI(r,l))continue;a.add(R6(l),l);break}case Qo.Kind.INLINE_FRAGMENT:{if(!LI(r,l)||!lP(e,l,n))continue;let m=dP(r,l);if(m){let h=new CI.AccumulatorMap;fp(e,t,r,n,l.selectionSet,h,o,u),o.push({label:m.label,fields:h})}else fp(e,t,r,n,l.selectionSet,a,o,u);break}case Qo.Kind.FRAGMENT_SPREAD:{let m=l.name.value;if(!LI(r,l))continue;let h=dP(r,l);if(u.has(m)&&!h)continue;let N=t[m];if(!N||!lP(e,N,n))continue;if(h||u.add(m),h){let T=new CI.AccumulatorMap;fp(e,t,r,n,N.selectionSet,T,o,u),o.push({label:h.label,fields:T})}else fp(e,t,r,n,N.selectionSet,a,o,u);break}}}function DFe(e,t,r,n,i){let a=new CI.AccumulatorMap,o=[];return fp(e,t,r,n,i,a,o,new Set),{fields:a,patches:o}}function LI(e,t){let r=(0,Qo.getDirectiveValues)(Qo.GraphQLSkipDirective,t,e);if((r==null?void 0:r.if)===!0)return!1;let n=(0,Qo.getDirectiveValues)(Qo.GraphQLIncludeDirective,t,e);return(n==null?void 0:n.if)!==!1}function lP(e,t,r){let n=t.typeCondition;if(!n)return!0;let i=(0,Qo.typeFromAST)(e,n);return i===r?!0:(0,Qo.isAbstractType)(i)?e.getPossibleTypes(i).includes(r):!1}function R6(e){return e.alias?e.alias.value:e.name.value}function dP(e,t){let r=(0,Qo.getDirectiveValues)(SFe.GraphQLDeferDirective,t,e);if(r&&r.if!==!1)return{label:typeof r.label=="string"?r.label:void 0}}ks.collectSubFields=(0,OFe.memoize5)(function(t,r,n,i,a){let o=new CI.AccumulatorMap,u=new Set,l=[],m={fields:o,patches:l};for(let h of a)h.selectionSet&&fp(t,r,n,i,h.selectionSet,o,l,u);return m})});var pP=D(ly=>{"use strict";d();p();f();Object.defineProperty(ly,"__esModule",{value:!0});ly.getOperationASTFromRequest=void 0;ly.getOperationASTFromDocument=w6;var bFe=ve(),AFe=Hc();function w6(e,t){let r=(0,bFe.getOperationAST)(e,t);if(!r)throw new Error(`Cannot infer operation ${t||""}`);return r}ly.getOperationASTFromRequest=(0,AFe.memoize1)(function(t){return w6(t.document,t.operationName)})});var L6=D(dy=>{"use strict";d();p();f();Object.defineProperty(dy,"__esModule",{value:!0});dy.visitData=hP;dy.visitErrors=wFe;dy.visitResult=PFe;var Wc=ve(),mP=fP(),RFe=pP();function hP(e,t,r){if(Array.isArray(e))return e.map(n=>hP(n,t,r));if(typeof e=="object"){let n=t!=null?t(e):e;if(n!=null)for(let i in n){let a=n[i];Object.defineProperty(n,i,{value:hP(a,t,r)})}return r!=null?r(n):n}return e}function wFe(e,t){return e.map(r=>t(r))}function PFe(e,t,r,n,i){let a=t.document.definitions.reduce((T,O)=>(O.kind===Wc.Kind.FRAGMENT_DEFINITION&&(T[O.name.value]=O),T),{}),o=t.variables||{},u={segmentInfoMap:new Map,unpathedErrors:new Set},l=e.data,m=e.errors,h=m!=null&&i!=null,N=(0,RFe.getOperationASTFromRequest)(t);return l!=null&&N!=null&&(e.data=CFe(l,N,r,a,o,n,h?m:void 0,u)),m!=null&&i&&(e.errors=FFe(m,i,u)),e}function FFe(e,t,r){let n=r.segmentInfoMap,i=r.unpathedErrors,a=t.__unpathed;return e.map(o=>{let u=n.get(o),l=u==null?o:u.reduceRight((m,h)=>{let N=h.type.name,T=t[N];if(T==null)return m;let O=T[h.fieldName];return O==null?m:O(m,h.pathIndex)},o);return a&&i.has(o)?a(l):l})}function LFe(e,t){switch(t.operation){case"query":return e.getQueryType();case"mutation":return e.getMutationType();case"subscription":return e.getSubscriptionType()}}function CFe(e,t,r,n,i,a,o,u){let l=LFe(r,t),{fields:m}=(0,mP.collectFields)(r,n,i,l,t.selectionSet);return yP(e,l,m,r,n,i,a,0,o,u)}function yP(e,t,r,n,i,a,o,u,l,m){var ee;let h=t.getFields(),N=o==null?void 0:o[t.name],T=N==null?void 0:N.__enter,O=T!=null?T(e):e,R,C=null;if(l!=null){R=UFe(l,u),C=R.errorMap;for(let ae of R.unpathedErrors)m.unpathedErrors.add(ae)}for(let[ae,Ne]of r){let _e=Ne[0].name.value,Le=(ee=h[_e])==null?void 0:ee.type;if(Le==null)switch(_e){case"__typename":Le=Wc.TypeNameMetaFieldDef.type;break;case"__schema":Le=Wc.SchemaMetaFieldDef.type;break;case"__type":Le=Wc.TypeMetaFieldDef.type;break}let Ve=u+1,ot;C&&(ot=C[ae],ot!=null&&delete C[ae],kFe(t,_e,Ve,ot,m));let Z=F6(e[ae],Le,Ne,n,i,a,o,Ve,ot,m);P6(O,ae,Z,N,_e)}let M=O.__typename;if(M!=null&&P6(O,"__typename",M,N,"__typename"),C)for(let ae in C){let Ne=C[ae];for(let _e of Ne)m.unpathedErrors.add(_e)}let Y=N==null?void 0:N.__leave;return Y!=null?Y(O):O}function P6(e,t,r,n,i){if(n==null){e[t]=r;return}let a=n[i];if(a==null){e[t]=r;return}let o=a(r);if(o===void 0){delete e[t];return}e[t]=o}function BFe(e,t,r,n,i,a,o,u,l,m){return e.map(h=>F6(h,t,r,n,i,a,o,u+1,l,m))}function F6(e,t,r,n,i,a,o,u,l=[],m){if(e==null)return e;let h=(0,Wc.getNullableType)(t);if((0,Wc.isListType)(h))return BFe(e,h.ofType,r,n,i,a,o,u,l,m);if((0,Wc.isAbstractType)(h)){let O=n.getType(e.__typename),{fields:R,patches:C}=(0,mP.collectSubFields)(n,i,a,O,r);if(C.length){R=new Map(R);for(let M of C)for(let[Y,ee]of M.fields){let ae=R.get(Y);ae?ae.push(...ee):R.set(Y,ee)}}return yP(e,O,R,n,i,a,o,u,l,m)}else if((0,Wc.isObjectType)(h)){let{fields:O,patches:R}=(0,mP.collectSubFields)(n,i,a,h,r);if(R.length){O=new Map(O);for(let C of R)for(let[M,Y]of C.fields){let ee=O.get(M);ee?ee.push(...Y):O.set(M,Y)}}return yP(e,h,O,n,i,a,o,u,l,m)}let N=o==null?void 0:o[h.name];if(N==null)return e;let T=N(e);return T===void 0?e:T}function UFe(e,t){var i;let r=Object.create(null),n=new Set;for(let a of e){let o=(i=a.path)==null?void 0:i[t];if(o==null){n.add(a);continue}o in r?r[o].push(a):r[o]=[a]}return{errorMap:r,unpathedErrors:n}}function kFe(e,t,r,n=[],i){for(let a of n){let o={type:e,fieldName:t,pathIndex:r},u=i.segmentInfoMap.get(a);u==null?i.segmentInfoMap.set(a,[o]):u.push(o)}}});var C6=D(TP=>{"use strict";d();p();f();Object.defineProperty(TP,"__esModule",{value:!0});TP.valueMatchesCriteria=NP;function NP(e,t){return e==null?e===t:Array.isArray(e)?Array.isArray(t)&&e.every((r,n)=>NP(r,t[n])):typeof e=="object"?typeof t=="object"&&t&&Object.keys(t).every(r=>NP(e[r],t[r])):t instanceof RegExp?t.test(e):e===t}});var B6=D(EP=>{"use strict";d();p();f();Object.defineProperty(EP,"__esModule",{value:!0});EP.isAsyncIterable=qFe;function qFe(e){return(e==null?void 0:e[Symbol.asyncIterator])!=null}});var U6=D(gP=>{"use strict";d();p();f();Object.defineProperty(gP,"__esModule",{value:!0});gP.isDocumentNode=MFe;var xFe=ve();function MFe(e){return e&&typeof e=="object"&&"kind"in e&&e.kind===xFe.Kind.DOCUMENT}});var k6=D(()=>{"use strict";d();p();f()});var j6=D(fy=>{"use strict";d();p();f();Object.defineProperty(fy,"__esModule",{value:!0});fy.getAsyncIteratorWithCancel=x6;fy.getAsyncIterableWithCancel=M6;fy.withCancel=M6;var jFe=Hc();function VFe(e){return oa(this,null,function*(){return{value:e,done:!0}})}var q6=(0,jFe.memoize2)(function(t,r){return function(...i){return Reflect.apply(r,t,i)}});function x6(e,t){return new Proxy(e,{has(r,n){return n==="return"?!0:Reflect.has(r,n)},get(r,n,i){let a=Reflect.get(r,n,i);if(n==="return"){let o=a||VFe;return function(l){return oa(this,null,function*(){let m=yield t(l);return Reflect.apply(o,r,[m])})}}else if(typeof a=="function")return q6(r,a);return a}})}function M6(e,t){return new Proxy(e,{get(r,n,i){let a=Reflect.get(r,n,i);return Symbol.asyncIterator===n?function(){let u=Reflect.apply(a,r,[]);return x6(u,t)}:typeof a=="function"?q6(r,a):a}})}});var V6=D(IP=>{"use strict";d();p();f();Object.defineProperty(IP,"__esModule",{value:!0});IP.fixSchemaAst=QFe;var KFe=ve(),$Fe=Dw();function GFe(e,t){let r=(0,$Fe.getDocumentNodeFromSchema)(e);return(0,KFe.buildASTSchema)(r,q({},t||{}))}function QFe(e,t){let r;return(!e.astNode||!e.extensionASTNodes)&&(r=GFe(e,t)),!e.astNode&&(r!=null&&r.astNode)&&(e.astNode=r.astNode),!e.extensionASTNodes&&(r!=null&&r.astNode)&&(e.extensionASTNodes=r.extensionASTNodes),e}});var K6=D(vP=>{"use strict";d();p();f();Object.defineProperty(vP,"__esModule",{value:!0});vP.extractExtensionsFromSchema=zFe;var YFe=tp(),qs=ud(),JFe=cp();function so(e,t){e=e||{};let a=e,{directives:r}=a,n=WU(a,["directives"]),i=q({},n);if(!t&&r!=null){let o={};for(let u in r)o[u]=[...(0,YFe.asArray)(r[u])];i.directives=o}return i}function zFe(e,t=!1){let r={schemaExtensions:so(e.extensions,t),types:{}};return(0,JFe.mapSchema)(e,{[qs.MapperKind.OBJECT_TYPE]:n=>(r.types[n.name]={fields:{},type:"object",extensions:so(n.extensions,t)},n),[qs.MapperKind.INTERFACE_TYPE]:n=>(r.types[n.name]={fields:{},type:"interface",extensions:so(n.extensions,t)},n),[qs.MapperKind.FIELD]:(n,i,a)=>{r.types[a].fields[i]={arguments:{},extensions:so(n.extensions,t)};let o=n.args;if(o!=null)for(let u in o)r.types[a].fields[i].arguments[u]=so(o[u].extensions,t);return n},[qs.MapperKind.ENUM_TYPE]:n=>(r.types[n.name]={values:{},type:"enum",extensions:so(n.extensions,t)},n),[qs.MapperKind.ENUM_VALUE]:(n,i,a,o)=>(r.types[i].values[o]=so(n.extensions,t),n),[qs.MapperKind.SCALAR_TYPE]:n=>(r.types[n.name]={type:"scalar",extensions:so(n.extensions,t)},n),[qs.MapperKind.UNION_TYPE]:n=>(r.types[n.name]={type:"union",extensions:so(n.extensions,t)},n),[qs.MapperKind.INPUT_OBJECT_TYPE]:n=>(r.types[n.name]={fields:{},type:"input",extensions:so(n.extensions,t)},n),[qs.MapperKind.INPUT_OBJECT_FIELD]:(n,i,a)=>(r.types[a].fields[i]={extensions:so(n.extensions,t)},n)}),r}});var $6=D(py=>{"use strict";d();p();f();Object.defineProperty(py,"__esModule",{value:!0});py.addPath=HFe;py.pathToArray=WFe;py.printPathArray=XFe;function HFe(e,t,r){return{prev:e,key:t,typename:r}}function WFe(e){let t=[],r=e;for(;r;)t.push(r.key),r=r.prev;return t.reverse()}function XFe(e){return e.map(t=>typeof t=="number"?"["+t.toString()+"]":"."+t).join("")}});var Q6=D(SP=>{"use strict";d();p();f();Object.defineProperty(SP,"__esModule",{value:!0});SP.mergeIncrementalResult=G6;var ZFe=tP();function G6({incrementalResult:e,executionResult:t}){var n;let r=["data",...(n=e.path)!=null?n:[]];if(e.items)for(let i of e.items)_P(t,r,i),r[r.length-1]++;e.data&&_P(t,r,e.data),e.errors&&(t.errors=t.errors||[],t.errors.push(...e.errors)),e.extensions&&_P(t,["extensions"],e.extensions),e.incremental&&e.incremental.forEach(i=>{G6({incrementalResult:i,executionResult:t})})}function _P(e,t,r){let n=e,i;for(i=0;i{"use strict";d();p();f();Object.defineProperty(BI,"__esModule",{value:!0});BI.debugTimerStart=eLe;BI.debugTimerEnd=tLe;var Y6=new Set;function eLe(e){var r,n;let t=((n=(r=globalThis.process)==null?void 0:r.env)==null?void 0:n.DEBUG)||globalThis.DEBUG;(t==="1"||t!=null&&t.includes(e))&&(Y6.add(e),console.time(e))}function tLe(e){Y6.has(e)&&console.timeEnd(e)}});var W6=D(my=>{"use strict";d();p();f();Object.defineProperty(my,"__esModule",{value:!0});my.getAbortPromise=void 0;my.registerAbortSignalListener=H6;var rLe=ty(),z6=Hc(),nLe=(0,z6.memoize1)(function(t){let r=new Set;return t.addEventListener("abort",n=>{for(let i of r)i(n)},{once:!0}),r});function H6(e,t){if(e.aborted){t();return}nLe(e).add(t)}my.getAbortPromise=(0,z6.memoize1)(function(t){return t.aborted?(0,rLe.fakeRejectPromise)(t.reason):new Promise((r,n)=>{if(t.aborted){n(t.reason);return}H6(t,()=>{n(t.reason)})})})});var uo=D(Ue=>{"use strict";d();p();f();Object.defineProperty(Ue,"__esModule",{value:!0});Ue.createDeferred=Ue.fakePromise=Ue.mapMaybePromise=Ue.mapAsyncIterator=Ue.inspect=void 0;var Xe=(tW(),im(eW));Xe.__exportStar(rW(),Ue);Xe.__exportStar(tp(),Ue);Xe.__exportStar(cw(),Ue);Xe.__exportStar(dw(),Ue);Xe.__exportStar(hW(),Ue);Xe.__exportStar(hw(),Ue);Xe.__exportStar(Dw(),Ue);Xe.__exportStar(dw(),Ue);Xe.__exportStar(LW(),Ue);Xe.__exportStar(CW(),Ue);Xe.__exportStar(YW(),Ue);Xe.__exportStar(t6(),Ue);Xe.__exportStar(n6(),Ue);Xe.__exportStar(l6(),Ue);Xe.__exportStar(f6(),Ue);Xe.__exportStar(p6(),Ue);Xe.__exportStar(h6(),Ue);Xe.__exportStar(y6(),Ue);Xe.__exportStar(cp(),Ue);Xe.__exportStar(Xw(),Ue);Xe.__exportStar(II(),Ue);Xe.__exportStar(T6(),Ue);Xe.__exportStar(tP(),Ue);Xe.__exportStar(ud(),Ue);Xe.__exportStar(qw(),Ue);Xe.__exportStar(g6(),Ue);Xe.__exportStar(I6(),Ue);Xe.__exportStar(v6(),Ue);Xe.__exportStar(_6(),Ue);Xe.__exportStar(Mw(),Ue);Xe.__exportStar(S6(),Ue);Xe.__exportStar(hI(),Ue);Xe.__exportStar(O6(),Ue);Xe.__exportStar(cI(),Ue);Xe.__exportStar(b6(),Ue);Xe.__exportStar(L6(),Ue);Xe.__exportStar(ow(),Ue);Xe.__exportStar(C6(),Ue);Xe.__exportStar(B6(),Ue);Xe.__exportStar(U6(),Ue);Xe.__exportStar(ry(),Ue);Xe.__exportStar(k6(),Ue);Xe.__exportStar(j6(),Ue);Xe.__exportStar(iy(),Ue);Xe.__exportStar(Rw(),Ue);Xe.__exportStar(fP(),Ue);var iLe=ey();Object.defineProperty(Ue,"inspect",{enumerable:!0,get:function(){return iLe.inspect}});Xe.__exportStar(Hc(),Ue);Xe.__exportStar(V6(),Ue);Xe.__exportStar(pP(),Ue);Xe.__exportStar(K6(),Ue);Xe.__exportStar($6(),Ue);Xe.__exportStar(fI(),Ue);Xe.__exportStar(cP(),Ue);Xe.__exportStar(Q6(),Ue);Xe.__exportStar(J6(),Ue);Xe.__exportStar(uw(),Ue);var UI=ty();Object.defineProperty(Ue,"mapAsyncIterator",{enumerable:!0,get:function(){return UI.mapAsyncIterator}});Object.defineProperty(Ue,"mapMaybePromise",{enumerable:!0,get:function(){return UI.mapMaybePromise}});Object.defineProperty(Ue,"fakePromise",{enumerable:!0,get:function(){return UI.fakePromise}});Object.defineProperty(Ue,"createDeferred",{enumerable:!0,get:function(){return UI.createDeferredPromise}});Xe.__exportStar(W6(),Ue)});var Z6=D(kI=>{"use strict";d();p();f();Object.defineProperty(kI,"__esModule",{value:!0});kI.mergeResolvers=void 0;var aLe=uo();function X6(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 r=new Array;for(let i of e)Array.isArray(i)&&(i=X6(i)),typeof i=="object"&&i&&r.push(i);let n=(0,aLe.mergeDeep)(r,!0);if(t!=null&&t.exclusions)for(let i of t.exclusions){let[a,o]=i.split(".");!o||o==="*"?delete n[a]:n[a]&&delete n[a][o]}return n}kI.mergeResolvers=X6});var OP=D(qI=>{"use strict";d();p();f();Object.defineProperty(qI,"__esModule",{value:!0});qI.mergeArguments=void 0;var e4=uo();function oLe(e,t,r){let n=sLe([...t,...e].filter(e4.isSome),r);return r&&r.sort&&n.sort(e4.compareNodes),n}qI.mergeArguments=oLe;function sLe(e,t){return e.reduce((r,n)=>{let i=r.findIndex(a=>a.name.value===n.name.value);return i===-1?r.concat([n]):(t!=null&&t.reverseArguments||(r[i]=n),r)},[])}});var Aa=D(pp=>{"use strict";d();p();f();Object.defineProperty(pp,"__esModule",{value:!0});pp.mergeDirective=pp.mergeDirectives=void 0;var t4=ve(),uLe=uo();function cLe(e,t){return!!e.find(r=>r.name.value===t.name.value)}function r4(e,t){var r;return!!((r=t==null?void 0:t[e.name.value])!=null&&r.repeatable)}function lLe(e,t){return t.some(({value:r})=>r===e.value)}function n4(e,t){let r=[...t];for(let n of e){let i=r.findIndex(a=>a.name.value===n.name.value);if(i>-1){let a=r[i];if(a.value.kind==="ListValue"){let o=a.value.values,u=n.value.values;a.value.values=hLe(o,u,(l,m)=>{let h=l.value;return!h||!m.some(N=>N.value===h)})}else a.value=n.value}else r.push(n)}return r}function dLe(e,t){return e.map((r,n,i)=>{let a=i.findIndex(o=>o.name.value===r.name.value);if(a!==n&&!r4(r,t)){let o=i[a];return r.arguments=n4(r.arguments,o.arguments),null}return r}).filter(uLe.isSome)}function fLe(e=[],t=[],r,n){let i=r&&r.reverseDirectives,a=i?e:t,o=i?t:e,u=dLe([...a],n);for(let l of o)if(cLe(u,l)&&!r4(l,n)){let m=u.findIndex(N=>N.name.value===l.name.value),h=u[m];u[m].arguments=n4(l.arguments||[],h.arguments||[])}else u.push(l);return u}pp.mergeDirectives=fLe;function pLe(e,t){let r=(0,t4.print)(G(q({},e),{description:void 0})),n=(0,t4.print)(G(q({},t),{description:void 0})),i=new RegExp("(directive @w*d*)|( on .*$)","g");if(!(r.replace(i,"")===n.replace(i,"")))throw new Error(`Unable to merge GraphQL directive "${e.name.value}". Existing directive: - ${r} + ${n} Received directive: - ${n}`)}function Wre(e,t){return t?(Hre(e,t),G(M({},e),{locations:[...t.locations,...e.locations.filter(n=>!Yre(n,t.locations))]})):e}ad.mergeDirective=Wre;function Xre(e,t,n){return e.concat(t.filter(r=>n(r,e)))}});var CO=F(cE=>{"use strict";m();T();N();Object.defineProperty(cE,"__esModule",{value:!0});cE.mergeEnumValues=void 0;var Zre=na(),eie=Da();function tie(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 u=o.name.value;if(i.has(u)){let l=i.get(u);l.description=o.description||l.description,l.directives=(0,Zre.mergeDirectives)(o.directives,l.directives,r)}else i.set(u,o)}let a=[...i.values()];return n&&n.sort&&a.sort(eie.compareNodes),a}cE.mergeEnumValues=tie});var UO=F(lE=>{"use strict";m();T();N();Object.defineProperty(lE,"__esModule",{value:!0});lE.mergeEnum=void 0;var nie=Se(),rie=na(),iie=CO();function aie(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,rie.mergeDirectives)(e.directives,t.directives,n,r),values:(0,iie.mergeEnumValues)(e.values,t.values,n)}:n!=null&&n.convertExtensions?G(M({},e),{kind:nie.Kind.ENUM_TYPE_DEFINITION}):e}lE.mergeEnum=aie});var dE=F(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 cp=Se();function sie(e){return typeof e=="string"}Kn.isStringTypes=sie;function oie(e){return e instanceof cp.Source}Kn.isSourceTypes=oie;function uie(e){let t=e;for(;t.kind===cp.Kind.LIST_TYPE||t.kind==="NonNullType";)t=t.type;return t}Kn.extractType=uie;function cie(e){return e.kind!==cp.Kind.NAMED_TYPE}Kn.isWrappingTypeNode=cie;function JM(e){return e.kind===cp.Kind.LIST_TYPE}Kn.isListTypeNode=JM;function zM(e){return e.kind===cp.Kind.NON_NULL_TYPE}Kn.isNonNullTypeNode=zM;function BO(e){return JM(e)?`[${BO(e.type)}]`:zM(e)?`${BO(e.type)}!`:e.name.value}Kn.printTypeNode=BO;var Lc;(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"})(Lc=Kn.CompareVal||(Kn.CompareVal={}));function lie(e,t){return e==null&&t==null?Lc.A_EQUALS_B:e==null?Lc.A_SMALLER_THAN_B:t==null?Lc.A_GREATER_THAN_B:et?Lc.A_GREATER_THAN_B:Lc.A_EQUALS_B}Kn.defaultStringComparator=lie});var dp=F(fE=>{"use strict";m();T();N();Object.defineProperty(fE,"__esModule",{value:!0});fE.mergeFields=void 0;var ui=dE(),die=na(),fie=Da(),pie=LO();function mie(e,t){let n=e.findIndex(r=>r.name.value===t.name.value);return[n>-1?e[n]:null,n]}function Nie(e,t,n,r,i){let a=[];if(n!=null&&a.push(...n),t!=null)for(let o of t){let[u,l]=mie(a,o);if(u&&!(r!=null&&r.ignoreFieldConflicts)){let d=(r==null?void 0:r.onFieldTypeConflict)&&r.onFieldTypeConflict(u,o,e,r==null?void 0:r.throwOnConflict)||Tie(e,u,o,r==null?void 0:r.throwOnConflict);d.arguments=(0,pie.mergeArguments)(o.arguments||[],u.arguments||[],r),d.directives=(0,die.mergeDirectives)(o.directives,u.directives,r,i),d.description=o.description||u.description,a[l]=d}else a.push(o)}if(r&&r.sort&&a.sort(fie.compareNodes),r&&r.exclusions){let o=r.exclusions;return a.filter(u=>!o.includes(`${e.name.value}.${u.name.value}`))}return a}fE.mergeFields=Nie;function Tie(e,t,n,r=!1){let i=(0,ui.printTypeNode)(t.type),a=(0,ui.printTypeNode)(n.type);if(i!==a){let o=(0,ui.extractType)(t.type),u=(0,ui.extractType)(n.type);if(o.name.value!==u.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 "${u.name.value}"`);if(!lp(t.type,n.type,!r))throw new Error(`Field '${e.name.value}.${t.name.value}' changed type from '${i}' to '${a}'`)}return(0,ui.isNonNullTypeNode)(n.type)&&!(0,ui.isNonNullTypeNode)(t.type)&&(t.type=n.type),t}function lp(e,t,n=!1){if(!(0,ui.isWrappingTypeNode)(e)&&!(0,ui.isWrappingTypeNode)(t))return e.toString()===t.toString();if((0,ui.isNonNullTypeNode)(t)){let r=(0,ui.isNonNullTypeNode)(e)?e.type:e;return lp(r,t.type)}return(0,ui.isNonNullTypeNode)(e)?lp(t,e,n):(0,ui.isListTypeNode)(e)?(0,ui.isListTypeNode)(t)&&lp(e.type,t.type)||(0,ui.isNonNullTypeNode)(t)&&lp(e,t.type):!1}});var kO=F(pE=>{"use strict";m();T();N();Object.defineProperty(pE,"__esModule",{value:!0});pE.mergeInputType=void 0;var Eie=Se(),hie=dp(),yie=na();function Iie(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,hie.mergeFields)(e,e.fields,t.fields,n),directives:(0,yie.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?G(M({},e),{kind:Eie.Kind.INPUT_OBJECT_TYPE_DEFINITION}):e}pE.mergeInputType=Iie});var fp=F(mE=>{"use strict";m();T();N();Object.defineProperty(mE,"__esModule",{value:!0});mE.mergeNamedTypeArray=void 0;var gie=Da();function _ie(e,t){return!!e.find(n=>n.name.value===t.name.value)}function vie(e=[],t=[],n={}){let r=[...t,...e.filter(i=>!_ie(t,i))];return n&&n.sort&&r.sort(gie.compareNodes),r}mE.mergeNamedTypeArray=vie});var MO=F(NE=>{"use strict";m();T();N();Object.defineProperty(NE,"__esModule",{value:!0});NE.mergeInterface=void 0;var Sie=Se(),Oie=dp(),Die=na(),bie=fp();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==="InterfaceTypeDefinition"||t.kind==="InterfaceTypeDefinition"?"InterfaceTypeDefinition":"InterfaceTypeExtension",loc:e.loc,fields:(0,Oie.mergeFields)(e,e.fields,t.fields,n),directives:(0,Die.mergeDirectives)(e.directives,t.directives,n,r),interfaces:e.interfaces?(0,bie.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?G(M({},e),{kind:Sie.Kind.INTERFACE_TYPE_DEFINITION}):e}NE.mergeInterface=Aie});var xO=F(TE=>{"use strict";m();T();N();Object.defineProperty(TE,"__esModule",{value:!0});TE.mergeType=void 0;var Rie=Se(),Pie=dp(),Fie=na(),wie=fp();function Lie(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,Pie.mergeFields)(e,e.fields,t.fields,n),directives:(0,Fie.mergeDirectives)(e.directives,t.directives,n,r),interfaces:(0,wie.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?G(M({},e),{kind:Rie.Kind.OBJECT_TYPE_DEFINITION}):e}TE.mergeType=Lie});var qO=F(EE=>{"use strict";m();T();N();Object.defineProperty(EE,"__esModule",{value:!0});EE.mergeScalar=void 0;var Cie=Se(),Uie=na();function Bie(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,Uie.mergeDirectives)(e.directives,t.directives,n,r)}:n!=null&&n.convertExtensions?G(M({},e),{kind:Cie.Kind.SCALAR_TYPE_DEFINITION}):e}EE.mergeScalar=Bie});var jO=F(hE=>{"use strict";m();T();N();Object.defineProperty(hE,"__esModule",{value:!0});hE.mergeUnion=void 0;var VO=Se(),kie=na(),Mie=fp();function xie(e,t,n,r){return t?{name:e.name,description:e.description||t.description,directives:(0,kie.mergeDirectives)(e.directives,t.directives,n,r),kind:n!=null&&n.convertExtensions||e.kind==="UnionTypeDefinition"||t.kind==="UnionTypeDefinition"?VO.Kind.UNION_TYPE_DEFINITION:VO.Kind.UNION_TYPE_EXTENSION,loc:e.loc,types:(0,Mie.mergeNamedTypeArray)(e.types,t.types,n)}:n!=null&&n.convertExtensions?G(M({},e),{kind:VO.Kind.UNION_TYPE_DEFINITION}):e}hE.mergeUnion=xie});var KO=F(Cc=>{"use strict";m();T();N();Object.defineProperty(Cc,"__esModule",{value:!0});Cc.mergeSchemaDefs=Cc.DEFAULT_OPERATION_TYPE_NAME_MAP=void 0;var pp=Se(),qie=na();Cc.DEFAULT_OPERATION_TYPE_NAME_MAP={query:"Query",mutation:"Mutation",subscription:"Subscription"};function Vie(e=[],t=[]){let n=[];for(let r in Cc.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 jie(e,t,n,r){return t?{kind:e.kind===pp.Kind.SCHEMA_DEFINITION||t.kind===pp.Kind.SCHEMA_DEFINITION?pp.Kind.SCHEMA_DEFINITION:pp.Kind.SCHEMA_EXTENSION,description:e.description||t.description,directives:(0,qie.mergeDirectives)(e.directives,t.directives,n,r),operationTypes:Vie(e.operationTypes,t.operationTypes)}:n!=null&&n.convertExtensions?G(M({},e),{kind:pp.Kind.SCHEMA_DEFINITION}):e}Cc.mergeSchemaDefs=jie});var $O=F(as=>{"use strict";m();T();N();Object.defineProperty(as,"__esModule",{value:!0});as.mergeGraphQLNodes=as.isNamedDefinitionNode=as.schemaDefSymbol=void 0;var Yr=Se(),Kie=xO(),$ie=UO(),Gie=qO(),Qie=jO(),Yie=kO(),Jie=MO(),zie=na(),Hie=KO(),Wie=Da();as.schemaDefSymbol="SCHEMA_DEF_SYMBOL";function HM(e){return"name"in e}as.isNamedDefinitionNode=HM;function Xie(e,t,n={}){var i,a,o;let r=n;for(let u of e)if(HM(u)){let l=(i=u.name)==null?void 0:i.value;if(t!=null&&t.commentDescriptions&&(0,Wie.collectComment)(u),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(u.kind){case Yr.Kind.OBJECT_TYPE_DEFINITION:case Yr.Kind.OBJECT_TYPE_EXTENSION:r[l]=(0,Kie.mergeType)(u,r[l],t,n);break;case Yr.Kind.ENUM_TYPE_DEFINITION:case Yr.Kind.ENUM_TYPE_EXTENSION:r[l]=(0,$ie.mergeEnum)(u,r[l],t,n);break;case Yr.Kind.UNION_TYPE_DEFINITION:case Yr.Kind.UNION_TYPE_EXTENSION:r[l]=(0,Qie.mergeUnion)(u,r[l],t,n);break;case Yr.Kind.SCALAR_TYPE_DEFINITION:case Yr.Kind.SCALAR_TYPE_EXTENSION:r[l]=(0,Gie.mergeScalar)(u,r[l],t,n);break;case Yr.Kind.INPUT_OBJECT_TYPE_DEFINITION:case Yr.Kind.INPUT_OBJECT_TYPE_EXTENSION:r[l]=(0,Yie.mergeInputType)(u,r[l],t,n);break;case Yr.Kind.INTERFACE_TYPE_DEFINITION:case Yr.Kind.INTERFACE_TYPE_EXTENSION:r[l]=(0,Jie.mergeInterface)(u,r[l],t,n);break;case Yr.Kind.DIRECTIVE_DEFINITION:r[l]=(0,zie.mergeDirective)(u,r[l]);break}}else(u.kind===Yr.Kind.SCHEMA_DEFINITION||u.kind===Yr.Kind.SCHEMA_EXTENSION)&&(r[as.schemaDefSymbol]=(0,Hie.mergeSchemaDefs)(u,r[as.schemaDefSymbol],t));return r}as.mergeGraphQLNodes=Xie});var ZM=F(cd=>{"use strict";m();T();N();Object.defineProperty(cd,"__esModule",{value:!0});cd.mergeGraphQLTypes=cd.mergeTypeDefs=void 0;var ra=Se(),GO=dE(),sd=$O(),ud=Da(),WM=KO();function Zie(e,t){(0,ud.resetComments)();let n={kind:ra.Kind.DOCUMENT,definitions:XM(e,M({useSchemaDefinition:!0,forceSchemaDefinition:!1,throwOnConflict:!1,commentDescriptions:!1},t))},r;return t!=null&&t.commentDescriptions?r=(0,ud.printWithComments)(n):r=n,(0,ud.resetComments)(),r}cd.mergeTypeDefs=Zie;function od(e,t,n=[],r=[],i=new Set){if(e&&!i.has(e))if(i.add(e),typeof e=="function")od(e(),t,n,r,i);else if(Array.isArray(e))for(let a of e)od(a,t,n,r,i);else if((0,ra.isSchema)(e)){let a=(0,ud.getDocumentNodeFromSchema)(e,t);od(a.definitions,t,n,r,i)}else if((0,GO.isStringTypes)(e)||(0,GO.isSourceTypes)(e)){let a=(0,ra.parse)(e,t);od(a.definitions,t,n,r,i)}else if(typeof e=="object"&&(0,ra.isDefinitionNode)(e))e.kind===ra.Kind.DIRECTIVE_DEFINITION?n.push(e):r.push(e);else if((0,ud.isDocumentNode)(e))od(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 XM(e,t){var u,l,d;(0,ud.resetComments)();let{allDirectives:n,allNodes:r}=od(e,t),i=(0,sd.mergeGraphQLNodes)(n,t),a=(0,sd.mergeGraphQLNodes)(r,t,i);if(t!=null&&t.useSchemaDefinition){let p=a[sd.schemaDefSymbol]||{kind:ra.Kind.SCHEMA_DEFINITION,operationTypes:[]},E=p.operationTypes;for(let h in WM.DEFAULT_OPERATION_TYPE_NAME_MAP)if(!E.find(R=>R.operation===h)){let R=WM.DEFAULT_OPERATION_TYPE_NAME_MAP[h],U=a[R];U!=null&&U.name!=null&&E.push({kind:ra.Kind.OPERATION_TYPE_DEFINITION,type:{kind:ra.Kind.NAMED_TYPE,name:U.name},operation:h})}((u=p==null?void 0:p.operationTypes)==null?void 0:u.length)!=null&&p.operationTypes.length>0&&(a[sd.schemaDefSymbol]=p)}t!=null&&t.forceSchemaDefinition&&!((d=(l=a[sd.schemaDefSymbol])==null?void 0:l.operationTypes)!=null&&d.length)&&(a[sd.schemaDefSymbol]={kind:ra.Kind.SCHEMA_DEFINITION,operationTypes:[{kind:ra.Kind.OPERATION_TYPE_DEFINITION,operation:"query",type:{kind:ra.Kind.NAMED_TYPE,name:{kind:ra.Kind.NAME,value:"Query"}}}]});let o=Object.values(a);if(t!=null&&t.sort){let p=typeof t.sort=="function"?t.sort:GO.defaultStringComparator;o.sort((E,h)=>{var v,R;return p((v=E.name)==null?void 0:v.value,(R=h.name)==null?void 0:R.value)})}return o}cd.mergeGraphQLTypes=XM});var ex=F(qr=>{"use strict";m();T();N();Object.defineProperty(qr,"__esModule",{value:!0});var ci=(aS(),Jm(iS));ci.__exportStar(LO(),qr);ci.__exportStar(na(),qr);ci.__exportStar(CO(),qr);ci.__exportStar(UO(),qr);ci.__exportStar(dp(),qr);ci.__exportStar(kO(),qr);ci.__exportStar(MO(),qr);ci.__exportStar(fp(),qr);ci.__exportStar($O(),qr);ci.__exportStar(ZM(),qr);ci.__exportStar(qO(),qr);ci.__exportStar(xO(),qr);ci.__exportStar(jO(),qr);ci.__exportStar(dE(),qr)});var nx=F(wu=>{"use strict";m();T();N();Object.defineProperty(wu,"__esModule",{value:!0});wu.applyExtensions=wu.mergeExtensions=wu.extractExtensionsFromSchema=void 0;var tx=Da(),eae=Da();Object.defineProperty(wu,"extractExtensionsFromSchema",{enumerable:!0,get:function(){return eae.extractExtensionsFromSchema}});function tae(e){return(0,tx.mergeDeep)(e)}wu.mergeExtensions=tae;function ld(e,t){e&&(e.extensions=(0,tx.mergeDeep)([e.extensions||{},t||{}]))}function nae(e,t){ld(e,t.schemaExtensions);for(let[n,r]of Object.entries(t.types||{})){let i=e.getType(n);if(i){if(ld(i,r.extensions),r.type==="object"||r.type==="interface")for(let[a,o]of Object.entries(r.fields)){let u=i.getFields()[a];if(u){ld(u,o.extensions);for(let[l,d]of Object.entries(o.arguments))ld(u.args.find(p=>p.name===l),d)}}else if(r.type==="input")for(let[a,o]of Object.entries(r.fields)){let u=i.getFields()[a];ld(u,o.extensions)}else if(r.type==="enum")for(let[a,o]of Object.entries(r.values)){let u=i.getValue(a);ld(u,o)}}}return e}wu.applyExtensions=nae});var yE=F(mp=>{"use strict";m();T();N();Object.defineProperty(mp,"__esModule",{value:!0});var QO=(aS(),Jm(iS));QO.__exportStar(KM(),mp);QO.__exportStar(ex(),mp);QO.__exportStar(nx(),mp)});var Yi=F(W=>{"use strict";m();T();N();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=aae;W.incompatibleInputValueDefaultValueTypeError=sae;W.incompatibleMergedTypesError=oae;W.incompatibleInputValueDefaultValuesError=uae;W.incompatibleSharedEnumError=cae;W.invalidSubgraphNamesError=lae;W.duplicateDirectiveDefinitionError=dae;W.duplicateEnumValueDefinitionError=fae;W.duplicateFieldDefinitionError=pae;W.duplicateInputFieldDefinitionError=mae;W.duplicateImplementedInterfaceError=Nae;W.duplicateUnionMemberDefinitionError=Tae;W.duplicateTypeDefinitionError=Eae;W.duplicateOperationTypeDefinitionError=hae;W.noBaseDefinitionForExtensionError=yae;W.noBaseScalarDefinitionError=Iae;W.noDefinedUnionMembersError=gae;W.noDefinedEnumValuesError=_ae;W.operationDefinitionError=vae;W.invalidFieldShareabilityError=Sae;W.undefinedDirectiveError=Oae;W.undefinedTypeError=Dae;W.invalidRepeatedDirectiveErrorMessage=bae;W.invalidDirectiveError=Aae;W.invalidRepeatedFederatedDirectiveErrorMessage=Rae;W.invalidDirectiveLocationErrorMessage=Pae;W.undefinedRequiredArgumentsErrorMessage=Fae;W.unexpectedDirectiveArgumentErrorMessage=wae;W.duplicateDirectiveArgumentDefinitionsErrorMessage=Lae;W.invalidArgumentValueErrorMessage=Cae;W.maximumTypeNestingExceededError=Uae;W.unexpectedKindFatalError=Bae;W.incompatibleParentKindFatalError=kae;W.unexpectedEdgeFatalError=Mae;W.incompatibleParentTypeMergeError=qae;W.unexpectedTypeNodeKindFatalError=Vae;W.invalidKeyFatalError=jae;W.unexpectedParentKindForChildError=Kae;W.subgraphValidationError=$ae;W.invalidSubgraphNameErrorMessage=Gae;W.invalidOperationTypeDefinitionError=Qae;W.invalidRootTypeDefinitionError=Yae;W.subgraphInvalidSyntaxError=Jae;W.invalidInterfaceImplementationError=zae;W.invalidRequiredInputValueError=Hae;W.duplicateArgumentsError=Wae;W.noQueryRootTypeError=Xae;W.expectedEntityError=Zae;W.abstractTypeInKeyFieldSetErrorMessage=ese;W.unknownTypeInFieldSetErrorMessage=tse;W.invalidSelectionSetErrorMessage=nse;W.invalidSelectionSetDefinitionErrorMessage=rse;W.undefinedFieldInFieldSetErrorMessage=ise;W.unparsableFieldSetErrorMessage=ase;W.unparsableFieldSetSelectionErrorMessage=sse;W.undefinedCompositeOutputTypeError=ose;W.unexpectedArgumentErrorMessage=use;W.argumentsInKeyFieldSetErrorMessage=cse;W.invalidProvidesOrRequiresDirectivesError=lse;W.duplicateFieldInFieldSetErrorMessage=dse;W.invalidConfigurationDataErrorMessage=fse;W.incompatibleTypeWithProvidesErrorMessage=pse;W.invalidInlineFragmentTypeErrorMessage=mse;W.inlineFragmentWithoutTypeConditionErrorMessage=Nse;W.unknownInlineFragmentTypeConditionErrorMessage=Tse;W.invalidInlineFragmentTypeConditionTypeErrorMessage=Ese;W.invalidInlineFragmentTypeConditionErrorMessage=hse;W.invalidSelectionOnUnionErrorMessage=yse;W.duplicateOverriddenFieldErrorMessage=Ise;W.duplicateOverriddenFieldsError=gse;W.noFieldDefinitionsError=_se;W.noInputValueDefinitionsError=vse;W.allChildDefinitionsAreInaccessibleError=Sse;W.equivalentSourceAndTargetOverrideErrorMessage=Ose;W.undefinedEntityInterfaceImplementationsError=Dse;W.orScopesLimitError=bse;W.invalidEventDrivenGraphError=Ase;W.invalidRootTypeFieldEventsDirectivesErrorMessage=Rse;W.invalidEventDrivenMutationResponseTypeErrorMessage=Pse;W.invalidRootTypeFieldResponseTypesEventDrivenErrorMessage=Fse;W.invalidNatsStreamInputFieldsErrorMessage=wse;W.invalidKeyFieldSetsEventDrivenErrorMessage=Lse;W.nonExternalKeyFieldNamesEventDrivenErrorMessage=Cse;W.nonKeyFieldNamesEventDrivenErrorMessage=Use;W.nonEntityObjectExtensionsEventDrivenErrorMessage=Bse;W.nonKeyComposingObjectTypeNamesEventDrivenErrorMessage=kse;W.invalidEdfsDirectiveName=Mse;W.invalidImplementedTypeError=xse;W.selfImplementationError=qse;W.invalidEventSubjectErrorMessage=Vse;W.invalidEventSubjectsErrorMessage=jse;W.invalidEventSubjectsItemErrorMessage=Kse;W.invalidEventSubjectsArgumentErrorMessage=$se;W.undefinedEventSubjectsArgumentErrorMessage=Gse;W.invalidEventDirectiveError=Qse;W.invalidReferencesOfInaccessibleTypeError=Yse;W.inaccessibleRequiredInputValueError=Jse;W.invalidUnionMemberTypeError=zse;W.invalidRootTypeError=Hse;W.invalidSubscriptionFilterLocationError=Wse;W.invalidSubscriptionFilterDirectiveError=Xse;W.subscriptionFilterNamedTypeErrorMessage=Zse;W.subscriptionFilterConditionDepthExceededErrorMessage=eoe;W.subscriptionFilterConditionInvalidInputFieldNumberErrorMessage=toe;W.subscriptionFilterConditionInvalidInputFieldErrorMessage=noe;W.subscriptionFilterConditionInvalidInputFieldTypeErrorMessage=roe;W.subscriptionFilterArrayConditionInvalidItemTypeErrorMessage=ioe;W.subscriptionFilterArrayConditionInvalidLengthErrorMessage=aoe;W.invalidInputFieldTypeErrorMessage=soe;W.subscriptionFieldConditionInvalidInputFieldErrorMessage=ooe;W.subscriptionFieldConditionInvalidValuesArrayErrorMessage=uoe;W.subscriptionFieldConditionEmptyValuesArrayErrorMessage=coe;W.unknownFieldSubgraphNameError=loe;W.invalidSubscriptionFieldConditionFieldPathErrorMessage=doe;W.invalidSubscriptionFieldConditionFieldPathParentErrorMessage=foe;W.undefinedSubscriptionFieldConditionFieldPathFieldErrorMessage=poe;W.invalidSubscriptionFieldConditionFieldPathFieldErrorMessage=moe;W.inaccessibleSubscriptionFieldConditionFieldPathFieldErrorMessage=Noe;W.nonLeafSubscriptionFieldConditionFieldPathFinalFieldErrorMessage=Toe;W.unresolvablePathError=Eoe;W.allExternalFieldInstancesError=hoe;W.externalInterfaceFieldsError=yoe;W.nonExternalConditionalFieldError=Ioe;W.incompatibleFederatedFieldNamedTypeError=goe;W.unknownNamedTypeErrorMessage=ux;W.unknownNamedTypeError=_oe;W.unknownFieldDataError=voe;W.unexpectedNonCompositeOutputTypeError=Soe;W.invalidExternalDirectiveError=Ooe;W.configureDescriptionNoDescriptionError=Doe;W.configureDescriptionPropagationError=boe;W.duplicateDirectiveDefinitionArgumentErrorMessage=Aoe;W.duplicateDirectiveDefinitionLocationErrorMessage=Roe;W.invalidDirectiveDefinitionLocationErrorMessage=Poe;W.invalidDirectiveDefinitionError=Foe;W.typeNameAlreadyProvidedErrorMessage=woe;W.fieldAlreadyProvidedErrorMessage=Loe;W.invalidInterfaceObjectImplementationDefinitionsError=Coe;W.invalidNamedTypeError=Uoe;W.semanticNonNullLevelsNaNIndexErrorMessage=Boe;W.semanticNonNullLevelsIndexOutOfBoundsErrorMessage=koe;W.semanticNonNullLevelsNonNullErrorMessage=Moe;W.semanticNonNullInconsistentLevelsError=xoe;W.oneOfRequiredFieldsError=qoe;W.listSizeInvalidSlicingArgumentErrorMessage=Voe;W.listSizeSlicingArgumentNotIntErrorMessage=joe;W.listSizeSizedFieldNotFoundErrorMessage=Koe;W.listSizeSizedFieldNotListErrorMessage=$oe;W.listSizeFieldMustReturnListOrUseSizedFieldsErrorMessage=Goe;W.listSizeSizedFieldsInvalidReturnTypeErrorMessage=Qoe;W.listSizeSizedFieldsOnListsErrorMessage=Yoe;W.listSizeAssumedSizeWithRequiredSlicingArgumentErrorMessage=Joe;W.listSizeAssumedSizeSlicingArgDefaultErrorMessage=zoe;W.costOnInterfaceFieldErrorMessage=Hoe;var rx=Se(),Je=Xn(),ix=ql(),Uc=kr(),rae=$l(),iae=yE();W.minimumSubgraphRequirementError=new Error("At least one subgraph is required for federation.");function aae(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 sae(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 oae({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 uae(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 cae(e){return new Error(`Enum "${e}" was used as both an input and output but was inconsistently defined across inclusive subgraphs. To update an Enum used as both an input and output, add any new Enum values with the @inaccessible directive in the origin subgraph. Next, add those new Enum values to all other subgraphs that define the Enum\u2014this time without the @inaccessible directive. Finally, once all subgraphs have been updated, remove @inaccessible from the Enum values in the origin subgraph.`)}function lae(e,t){let n="Subgraphs to be federated must each have a unique, non-empty name.";e.length>0&&(n+=` + ${r}`)}function mLe(e,t){return t?(pLe(e,t),G(q({},e),{locations:[...t.locations,...e.locations.filter(r=>!lLe(r,t.locations))]})):e}pp.mergeDirective=mLe;function hLe(e,t,r){return e.concat(t.filter(n=>r(n,e)))}});var DP=D(xI=>{"use strict";d();p();f();Object.defineProperty(xI,"__esModule",{value:!0});xI.mergeEnumValues=void 0;var yLe=Aa(),NLe=uo();function TLe(e,t,r,n){if(r!=null&&r.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 u=o.name.value;if(i.has(u)){let l=i.get(u);l.description=o.description||l.description,l.directives=(0,yLe.mergeDirectives)(o.directives,l.directives,n)}else i.set(u,o)}let a=[...i.values()];return r&&r.sort&&a.sort(NLe.compareNodes),a}xI.mergeEnumValues=TLe});var bP=D(MI=>{"use strict";d();p();f();Object.defineProperty(MI,"__esModule",{value:!0});MI.mergeEnum=void 0;var ELe=ve(),gLe=Aa(),ILe=DP();function vLe(e,t,r,n){return t?{name:e.name,description:e.description||t.description,kind:r!=null&&r.convertExtensions||e.kind==="EnumTypeDefinition"||t.kind==="EnumTypeDefinition"?"EnumTypeDefinition":"EnumTypeExtension",loc:e.loc,directives:(0,gLe.mergeDirectives)(e.directives,t.directives,r,n),values:(0,ILe.mergeEnumValues)(e.values,t.values,r)}:r!=null&&r.convertExtensions?G(q({},e),{kind:ELe.Kind.ENUM_TYPE_DEFINITION}):e}MI.mergeEnum=vLe});var jI=D(on=>{"use strict";d();p();f();Object.defineProperty(on,"__esModule",{value:!0});on.defaultStringComparator=on.CompareVal=on.printTypeNode=on.isNonNullTypeNode=on.isListTypeNode=on.isWrappingTypeNode=on.extractType=on.isSourceTypes=on.isStringTypes=void 0;var hy=ve();function _Le(e){return typeof e=="string"}on.isStringTypes=_Le;function SLe(e){return e instanceof hy.Source}on.isSourceTypes=SLe;function OLe(e){let t=e;for(;t.kind===hy.Kind.LIST_TYPE||t.kind==="NonNullType";)t=t.type;return t}on.extractType=OLe;function DLe(e){return e.kind!==hy.Kind.NAMED_TYPE}on.isWrappingTypeNode=DLe;function i4(e){return e.kind===hy.Kind.LIST_TYPE}on.isListTypeNode=i4;function a4(e){return e.kind===hy.Kind.NON_NULL_TYPE}on.isNonNullTypeNode=a4;function AP(e){return i4(e)?`[${AP(e.type)}]`:a4(e)?`${AP(e.type)}!`:e.name.value}on.printTypeNode=AP;var fd;(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"})(fd=on.CompareVal||(on.CompareVal={}));function bLe(e,t){return e==null&&t==null?fd.A_EQUALS_B:e==null?fd.A_SMALLER_THAN_B:t==null?fd.A_GREATER_THAN_B:et?fd.A_GREATER_THAN_B:fd.A_EQUALS_B}on.defaultStringComparator=bLe});var Ny=D(VI=>{"use strict";d();p();f();Object.defineProperty(VI,"__esModule",{value:!0});VI.mergeFields=void 0;var Ai=jI(),ALe=Aa(),RLe=uo(),wLe=OP();function PLe(e,t){let r=e.findIndex(n=>n.name.value===t.name.value);return[r>-1?e[r]:null,r]}function FLe(e,t,r,n,i){let a=[];if(r!=null&&a.push(...r),t!=null)for(let o of t){let[u,l]=PLe(a,o);if(u&&!(n!=null&&n.ignoreFieldConflicts)){let m=(n==null?void 0:n.onFieldTypeConflict)&&n.onFieldTypeConflict(u,o,e,n==null?void 0:n.throwOnConflict)||LLe(e,u,o,n==null?void 0:n.throwOnConflict);m.arguments=(0,wLe.mergeArguments)(o.arguments||[],u.arguments||[],n),m.directives=(0,ALe.mergeDirectives)(o.directives,u.directives,n,i),m.description=o.description||u.description,a[l]=m}else a.push(o)}if(n&&n.sort&&a.sort(RLe.compareNodes),n&&n.exclusions){let o=n.exclusions;return a.filter(u=>!o.includes(`${e.name.value}.${u.name.value}`))}return a}VI.mergeFields=FLe;function LLe(e,t,r,n=!1){let i=(0,Ai.printTypeNode)(t.type),a=(0,Ai.printTypeNode)(r.type);if(i!==a){let o=(0,Ai.extractType)(t.type),u=(0,Ai.extractType)(r.type);if(o.name.value!==u.name.value)throw new Error(`Field "${r.name.value}" already defined with a different type. Declared as "${o.name.value}", but you tried to override with "${u.name.value}"`);if(!yy(t.type,r.type,!n))throw new Error(`Field '${e.name.value}.${t.name.value}' changed type from '${i}' to '${a}'`)}return(0,Ai.isNonNullTypeNode)(r.type)&&!(0,Ai.isNonNullTypeNode)(t.type)&&(t.type=r.type),t}function yy(e,t,r=!1){if(!(0,Ai.isWrappingTypeNode)(e)&&!(0,Ai.isWrappingTypeNode)(t))return e.toString()===t.toString();if((0,Ai.isNonNullTypeNode)(t)){let n=(0,Ai.isNonNullTypeNode)(e)?e.type:e;return yy(n,t.type)}return(0,Ai.isNonNullTypeNode)(e)?yy(t,e,r):(0,Ai.isListTypeNode)(e)?(0,Ai.isListTypeNode)(t)&&yy(e.type,t.type)||(0,Ai.isNonNullTypeNode)(t)&&yy(e,t.type):!1}});var RP=D(KI=>{"use strict";d();p();f();Object.defineProperty(KI,"__esModule",{value:!0});KI.mergeInputType=void 0;var CLe=ve(),BLe=Ny(),ULe=Aa();function kLe(e,t,r,n){if(t)try{return{name:e.name,description:e.description||t.description,kind:r!=null&&r.convertExtensions||e.kind==="InputObjectTypeDefinition"||t.kind==="InputObjectTypeDefinition"?"InputObjectTypeDefinition":"InputObjectTypeExtension",loc:e.loc,fields:(0,BLe.mergeFields)(e,e.fields,t.fields,r),directives:(0,ULe.mergeDirectives)(e.directives,t.directives,r,n)}}catch(i){throw new Error(`Unable to merge GraphQL input type "${e.name.value}": ${i.message}`)}return r!=null&&r.convertExtensions?G(q({},e),{kind:CLe.Kind.INPUT_OBJECT_TYPE_DEFINITION}):e}KI.mergeInputType=kLe});var Ty=D($I=>{"use strict";d();p();f();Object.defineProperty($I,"__esModule",{value:!0});$I.mergeNamedTypeArray=void 0;var qLe=uo();function xLe(e,t){return!!e.find(r=>r.name.value===t.name.value)}function MLe(e=[],t=[],r={}){let n=[...t,...e.filter(i=>!xLe(t,i))];return r&&r.sort&&n.sort(qLe.compareNodes),n}$I.mergeNamedTypeArray=MLe});var wP=D(GI=>{"use strict";d();p();f();Object.defineProperty(GI,"__esModule",{value:!0});GI.mergeInterface=void 0;var jLe=ve(),VLe=Ny(),KLe=Aa(),$Le=Ty();function GLe(e,t,r,n){if(t)try{return{name:e.name,description:e.description||t.description,kind:r!=null&&r.convertExtensions||e.kind==="InterfaceTypeDefinition"||t.kind==="InterfaceTypeDefinition"?"InterfaceTypeDefinition":"InterfaceTypeExtension",loc:e.loc,fields:(0,VLe.mergeFields)(e,e.fields,t.fields,r),directives:(0,KLe.mergeDirectives)(e.directives,t.directives,r,n),interfaces:e.interfaces?(0,$Le.mergeNamedTypeArray)(e.interfaces,t.interfaces,r):void 0}}catch(i){throw new Error(`Unable to merge GraphQL interface "${e.name.value}": ${i.message}`)}return r!=null&&r.convertExtensions?G(q({},e),{kind:jLe.Kind.INTERFACE_TYPE_DEFINITION}):e}GI.mergeInterface=GLe});var PP=D(QI=>{"use strict";d();p();f();Object.defineProperty(QI,"__esModule",{value:!0});QI.mergeType=void 0;var QLe=ve(),YLe=Ny(),JLe=Aa(),zLe=Ty();function HLe(e,t,r,n){if(t)try{return{name:e.name,description:e.description||t.description,kind:r!=null&&r.convertExtensions||e.kind==="ObjectTypeDefinition"||t.kind==="ObjectTypeDefinition"?"ObjectTypeDefinition":"ObjectTypeExtension",loc:e.loc,fields:(0,YLe.mergeFields)(e,e.fields,t.fields,r),directives:(0,JLe.mergeDirectives)(e.directives,t.directives,r,n),interfaces:(0,zLe.mergeNamedTypeArray)(e.interfaces,t.interfaces,r)}}catch(i){throw new Error(`Unable to merge GraphQL type "${e.name.value}": ${i.message}`)}return r!=null&&r.convertExtensions?G(q({},e),{kind:QLe.Kind.OBJECT_TYPE_DEFINITION}):e}QI.mergeType=HLe});var FP=D(YI=>{"use strict";d();p();f();Object.defineProperty(YI,"__esModule",{value:!0});YI.mergeScalar=void 0;var WLe=ve(),XLe=Aa();function ZLe(e,t,r,n){return t?{name:e.name,description:e.description||t.description,kind:r!=null&&r.convertExtensions||e.kind==="ScalarTypeDefinition"||t.kind==="ScalarTypeDefinition"?"ScalarTypeDefinition":"ScalarTypeExtension",loc:e.loc,directives:(0,XLe.mergeDirectives)(e.directives,t.directives,r,n)}:r!=null&&r.convertExtensions?G(q({},e),{kind:WLe.Kind.SCALAR_TYPE_DEFINITION}):e}YI.mergeScalar=ZLe});var CP=D(JI=>{"use strict";d();p();f();Object.defineProperty(JI,"__esModule",{value:!0});JI.mergeUnion=void 0;var LP=ve(),eCe=Aa(),tCe=Ty();function rCe(e,t,r,n){return t?{name:e.name,description:e.description||t.description,directives:(0,eCe.mergeDirectives)(e.directives,t.directives,r,n),kind:r!=null&&r.convertExtensions||e.kind==="UnionTypeDefinition"||t.kind==="UnionTypeDefinition"?LP.Kind.UNION_TYPE_DEFINITION:LP.Kind.UNION_TYPE_EXTENSION,loc:e.loc,types:(0,tCe.mergeNamedTypeArray)(e.types,t.types,r)}:r!=null&&r.convertExtensions?G(q({},e),{kind:LP.Kind.UNION_TYPE_DEFINITION}):e}JI.mergeUnion=rCe});var BP=D(pd=>{"use strict";d();p();f();Object.defineProperty(pd,"__esModule",{value:!0});pd.mergeSchemaDefs=pd.DEFAULT_OPERATION_TYPE_NAME_MAP=void 0;var Ey=ve(),nCe=Aa();pd.DEFAULT_OPERATION_TYPE_NAME_MAP={query:"Query",mutation:"Mutation",subscription:"Subscription"};function iCe(e=[],t=[]){let r=[];for(let n in pd.DEFAULT_OPERATION_TYPE_NAME_MAP){let i=e.find(a=>a.operation===n)||t.find(a=>a.operation===n);i&&r.push(i)}return r}function aCe(e,t,r,n){return t?{kind:e.kind===Ey.Kind.SCHEMA_DEFINITION||t.kind===Ey.Kind.SCHEMA_DEFINITION?Ey.Kind.SCHEMA_DEFINITION:Ey.Kind.SCHEMA_EXTENSION,description:e.description||t.description,directives:(0,nCe.mergeDirectives)(e.directives,t.directives,r,n),operationTypes:iCe(e.operationTypes,t.operationTypes)}:r!=null&&r.convertExtensions?G(q({},e),{kind:Ey.Kind.SCHEMA_DEFINITION}):e}pd.mergeSchemaDefs=aCe});var UP=D(Yo=>{"use strict";d();p();f();Object.defineProperty(Yo,"__esModule",{value:!0});Yo.mergeGraphQLNodes=Yo.isNamedDefinitionNode=Yo.schemaDefSymbol=void 0;var ci=ve(),oCe=PP(),sCe=bP(),uCe=FP(),cCe=CP(),lCe=RP(),dCe=wP(),fCe=Aa(),pCe=BP(),mCe=uo();Yo.schemaDefSymbol="SCHEMA_DEF_SYMBOL";function o4(e){return"name"in e}Yo.isNamedDefinitionNode=o4;function hCe(e,t,r={}){var i,a,o;let n=r;for(let u of e)if(o4(u)){let l=(i=u.name)==null?void 0:i.value;if(t!=null&&t.commentDescriptions&&(0,mCe.collectComment)(u),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 n[l];else switch(u.kind){case ci.Kind.OBJECT_TYPE_DEFINITION:case ci.Kind.OBJECT_TYPE_EXTENSION:n[l]=(0,oCe.mergeType)(u,n[l],t,r);break;case ci.Kind.ENUM_TYPE_DEFINITION:case ci.Kind.ENUM_TYPE_EXTENSION:n[l]=(0,sCe.mergeEnum)(u,n[l],t,r);break;case ci.Kind.UNION_TYPE_DEFINITION:case ci.Kind.UNION_TYPE_EXTENSION:n[l]=(0,cCe.mergeUnion)(u,n[l],t,r);break;case ci.Kind.SCALAR_TYPE_DEFINITION:case ci.Kind.SCALAR_TYPE_EXTENSION:n[l]=(0,uCe.mergeScalar)(u,n[l],t,r);break;case ci.Kind.INPUT_OBJECT_TYPE_DEFINITION:case ci.Kind.INPUT_OBJECT_TYPE_EXTENSION:n[l]=(0,lCe.mergeInputType)(u,n[l],t,r);break;case ci.Kind.INTERFACE_TYPE_DEFINITION:case ci.Kind.INTERFACE_TYPE_EXTENSION:n[l]=(0,dCe.mergeInterface)(u,n[l],t,r);break;case ci.Kind.DIRECTIVE_DEFINITION:n[l]=(0,fCe.mergeDirective)(u,n[l]);break}}else(u.kind===ci.Kind.SCHEMA_DEFINITION||u.kind===ci.Kind.SCHEMA_EXTENSION)&&(n[Yo.schemaDefSymbol]=(0,pCe.mergeSchemaDefs)(u,n[Yo.schemaDefSymbol],t));return n}Yo.mergeGraphQLNodes=hCe});var c4=D(Np=>{"use strict";d();p();f();Object.defineProperty(Np,"__esModule",{value:!0});Np.mergeGraphQLTypes=Np.mergeTypeDefs=void 0;var Ra=ve(),kP=jI(),mp=UP(),yp=uo(),s4=BP();function yCe(e,t){(0,yp.resetComments)();let r={kind:Ra.Kind.DOCUMENT,definitions:u4(e,q({useSchemaDefinition:!0,forceSchemaDefinition:!1,throwOnConflict:!1,commentDescriptions:!1},t))},n;return t!=null&&t.commentDescriptions?n=(0,yp.printWithComments)(r):n=r,(0,yp.resetComments)(),n}Np.mergeTypeDefs=yCe;function hp(e,t,r=[],n=[],i=new Set){if(e&&!i.has(e))if(i.add(e),typeof e=="function")hp(e(),t,r,n,i);else if(Array.isArray(e))for(let a of e)hp(a,t,r,n,i);else if((0,Ra.isSchema)(e)){let a=(0,yp.getDocumentNodeFromSchema)(e,t);hp(a.definitions,t,r,n,i)}else if((0,kP.isStringTypes)(e)||(0,kP.isSourceTypes)(e)){let a=(0,Ra.parse)(e,t);hp(a.definitions,t,r,n,i)}else if(typeof e=="object"&&(0,Ra.isDefinitionNode)(e))e.kind===Ra.Kind.DIRECTIVE_DEFINITION?r.push(e):n.push(e);else if((0,yp.isDocumentNode)(e))hp(e.definitions,t,r,n,i);else throw new Error(`typeDefs must contain only strings, documents, schemas, or functions, got ${typeof e}`);return{allDirectives:r,allNodes:n}}function u4(e,t){var u,l,m;(0,yp.resetComments)();let{allDirectives:r,allNodes:n}=hp(e,t),i=(0,mp.mergeGraphQLNodes)(r,t),a=(0,mp.mergeGraphQLNodes)(n,t,i);if(t!=null&&t.useSchemaDefinition){let h=a[mp.schemaDefSymbol]||{kind:Ra.Kind.SCHEMA_DEFINITION,operationTypes:[]},N=h.operationTypes;for(let T in s4.DEFAULT_OPERATION_TYPE_NAME_MAP)if(!N.find(R=>R.operation===T)){let R=s4.DEFAULT_OPERATION_TYPE_NAME_MAP[T],C=a[R];C!=null&&C.name!=null&&N.push({kind:Ra.Kind.OPERATION_TYPE_DEFINITION,type:{kind:Ra.Kind.NAMED_TYPE,name:C.name},operation:T})}((u=h==null?void 0:h.operationTypes)==null?void 0:u.length)!=null&&h.operationTypes.length>0&&(a[mp.schemaDefSymbol]=h)}t!=null&&t.forceSchemaDefinition&&!((m=(l=a[mp.schemaDefSymbol])==null?void 0:l.operationTypes)!=null&&m.length)&&(a[mp.schemaDefSymbol]={kind:Ra.Kind.SCHEMA_DEFINITION,operationTypes:[{kind:Ra.Kind.OPERATION_TYPE_DEFINITION,operation:"query",type:{kind:Ra.Kind.NAMED_TYPE,name:{kind:Ra.Kind.NAME,value:"Query"}}}]});let o=Object.values(a);if(t!=null&&t.sort){let h=typeof t.sort=="function"?t.sort:kP.defaultStringComparator;o.sort((N,T)=>{var O,R;return h((O=N.name)==null?void 0:O.value,(R=T.name)==null?void 0:R.value)})}return o}Np.mergeGraphQLTypes=u4});var l4=D(ti=>{"use strict";d();p();f();Object.defineProperty(ti,"__esModule",{value:!0});var Ri=(WR(),im(HR));Ri.__exportStar(OP(),ti);Ri.__exportStar(Aa(),ti);Ri.__exportStar(DP(),ti);Ri.__exportStar(bP(),ti);Ri.__exportStar(Ny(),ti);Ri.__exportStar(RP(),ti);Ri.__exportStar(wP(),ti);Ri.__exportStar(Ty(),ti);Ri.__exportStar(UP(),ti);Ri.__exportStar(c4(),ti);Ri.__exportStar(FP(),ti);Ri.__exportStar(PP(),ti);Ri.__exportStar(CP(),ti);Ri.__exportStar(jI(),ti)});var f4=D(Xc=>{"use strict";d();p();f();Object.defineProperty(Xc,"__esModule",{value:!0});Xc.applyExtensions=Xc.mergeExtensions=Xc.extractExtensionsFromSchema=void 0;var d4=uo(),NCe=uo();Object.defineProperty(Xc,"extractExtensionsFromSchema",{enumerable:!0,get:function(){return NCe.extractExtensionsFromSchema}});function TCe(e){return(0,d4.mergeDeep)(e)}Xc.mergeExtensions=TCe;function Tp(e,t){e&&(e.extensions=(0,d4.mergeDeep)([e.extensions||{},t||{}]))}function ECe(e,t){Tp(e,t.schemaExtensions);for(let[r,n]of Object.entries(t.types||{})){let i=e.getType(r);if(i){if(Tp(i,n.extensions),n.type==="object"||n.type==="interface")for(let[a,o]of Object.entries(n.fields)){let u=i.getFields()[a];if(u){Tp(u,o.extensions);for(let[l,m]of Object.entries(o.arguments))Tp(u.args.find(h=>h.name===l),m)}}else if(n.type==="input")for(let[a,o]of Object.entries(n.fields)){let u=i.getFields()[a];Tp(u,o.extensions)}else if(n.type==="enum")for(let[a,o]of Object.entries(n.values)){let u=i.getValue(a);Tp(u,o)}}}return e}Xc.applyExtensions=ECe});var Iy=D(gy=>{"use strict";d();p();f();Object.defineProperty(gy,"__esModule",{value:!0});var qP=(WR(),im(HR));qP.__exportStar(Z6(),gy);qP.__exportStar(l4(),gy);qP.__exportStar(f4(),gy)});var Di=D(K=>{"use strict";d();p();f();Object.defineProperty(K,"__esModule",{value:!0});K.noLinkDirectiveUrlError=K.semanticNonNullArgumentErrorMessage=K.invalidEventProviderIdErrorMessage=K.invalidNatsStreamConfigurationDefinitionErrorMessage=K.invalidEdfsPublishResultObjectErrorMessage=K.invalidNatsStreamInputErrorMessage=K.inlineFragmentInFieldSetErrorMessage=K.inaccessibleQueryRootTypeError=K.noSubgraphNameError=K.minimumSubgraphRequirementError=void 0;K.multipleNamedTypeDefinitionError=vCe;K.incompatibleInputValueDefaultValueTypeError=_Ce;K.incompatibleMergedTypesError=SCe;K.incompatibleInputValueDefaultValuesError=OCe;K.incompatibleSharedEnumError=DCe;K.invalidSubgraphNamesError=bCe;K.duplicateDirectiveDefinitionError=ACe;K.duplicateEnumValueDefinitionError=RCe;K.duplicateFieldDefinitionError=wCe;K.duplicateInputFieldDefinitionError=PCe;K.duplicateImplementedInterfaceError=FCe;K.duplicateUnionMemberDefinitionError=LCe;K.duplicateTypeDefinitionError=CCe;K.duplicateOperationTypeDefinitionError=BCe;K.noBaseDefinitionForExtensionError=UCe;K.noBaseScalarDefinitionError=kCe;K.noDefinedUnionMembersError=qCe;K.noDefinedEnumValuesError=xCe;K.operationDefinitionError=MCe;K.invalidFieldShareabilityError=jCe;K.undefinedDirectiveError=VCe;K.undefinedTypeError=KCe;K.invalidRepeatedDirectiveErrorMessage=$Ce;K.invalidDirectiveError=GCe;K.invalidCustomDirectiveError=QCe;K.invalidDirectiveLocationErrorMessage=YCe;K.invalidDirectiveLocationError=JCe;K.invalidRepeatedDirectiveError=zCe;K.undefinedRequiredArgumentsError=HCe;K.undefinedRequiredArgumentsErrorMessage=WCe;K.unexpectedArgumentProvisionError=XCe;K.unexpectedDirectiveArgumentErrorMessage=ZCe;K.duplicateArgumentDefinitionError=eBe;K.duplicateDirectiveArgumentDefinitionsErrorMessage=tBe;K.invalidArgumentValueError=rBe;K.invalidArgumentValueErrorMessage=nBe;K.maximumTypeNestingExceededError=iBe;K.unexpectedKindFatalError=aBe;K.incompatibleParentKindFatalError=oBe;K.unexpectedEdgeFatalError=sBe;K.incompatibleParentTypeMergeError=cBe;K.unexpectedTypeNodeKindFatalError=lBe;K.invalidKeyFatalError=dBe;K.unexpectedParentKindForChildError=fBe;K.subgraphValidationError=pBe;K.duplicateSubgraphNamesError=mBe;K.invalidOperationTypeDefinitionError=hBe;K.invalidRootTypeDefinitionError=yBe;K.subgraphInvalidSyntaxError=NBe;K.invalidInterfaceImplementationError=TBe;K.invalidRequiredInputValueError=EBe;K.duplicateArgumentsError=gBe;K.noQueryRootTypeError=IBe;K.expectedEntityError=vBe;K.abstractTypeInKeyFieldSetErrorMessage=_Be;K.unknownTypeInFieldSetErrorMessage=SBe;K.invalidSelectionSetErrorMessage=OBe;K.invalidSelectionSetDefinitionErrorMessage=DBe;K.undefinedFieldInFieldSetErrorMessage=bBe;K.unparsableFieldSetErrorMessage=ABe;K.unparsableFieldSetSelectionErrorMessage=RBe;K.undefinedCompositeOutputTypeError=wBe;K.unexpectedArgumentErrorMessage=PBe;K.argumentsInKeyFieldSetErrorMessage=FBe;K.invalidProvidesOrRequiresDirectivesError=LBe;K.duplicateFieldInFieldSetErrorMessage=CBe;K.incompatibleTypeWithProvidesErrorMessage=BBe;K.invalidInlineFragmentTypeErrorMessage=UBe;K.inlineFragmentWithoutTypeConditionErrorMessage=kBe;K.unknownInlineFragmentTypeConditionErrorMessage=qBe;K.invalidInlineFragmentTypeConditionTypeErrorMessage=xBe;K.invalidInlineFragmentTypeConditionErrorMessage=MBe;K.invalidSelectionOnUnionErrorMessage=jBe;K.duplicateOverriddenFieldErrorMessage=VBe;K.duplicateOverriddenFieldsError=KBe;K.noFieldDefinitionsError=$Be;K.noInputValueDefinitionsError=GBe;K.allChildDefinitionsAreInaccessibleError=QBe;K.equivalentSourceAndTargetOverrideErrorMessage=YBe;K.undefinedEntityInterfaceImplementationsError=JBe;K.orScopesLimitError=zBe;K.invalidEventDrivenGraphError=HBe;K.invalidRootTypeFieldEventsDirectivesErrorMessage=WBe;K.invalidEventDrivenMutationResponseTypeErrorMessage=XBe;K.invalidRootTypeFieldResponseTypesEventDrivenErrorMessage=ZBe;K.invalidNatsStreamInputFieldsErrorMessage=eUe;K.invalidKeyFieldSetsEventDrivenErrorMessage=tUe;K.nonExternalKeyFieldNamesEventDrivenErrorMessage=rUe;K.nonKeyFieldNamesEventDrivenErrorMessage=nUe;K.nonEntityObjectExtensionsEventDrivenErrorMessage=iUe;K.nonKeyComposingObjectTypeNamesEventDrivenErrorMessage=aUe;K.invalidImplementedTypeError=oUe;K.selfImplementationError=sUe;K.invalidEventSubjectErrorMessage=uUe;K.invalidEventSubjectsErrorMessage=cUe;K.invalidEventSubjectsItemErrorMessage=lUe;K.invalidEventSubjectsArgumentErrorMessage=dUe;K.undefinedEventSubjectsArgumentErrorMessage=fUe;K.invalidEventDirectiveError=pUe;K.invalidReferencesOfInaccessibleTypeError=mUe;K.inaccessibleRequiredInputValueError=hUe;K.invalidUnionMemberTypeError=yUe;K.invalidRootTypeError=NUe;K.invalidSubscriptionFilterLocationError=TUe;K.invalidSubscriptionFilterDirectiveError=EUe;K.subscriptionFilterNamedTypeErrorMessage=gUe;K.subscriptionFilterConditionDepthExceededErrorMessage=IUe;K.subscriptionFilterConditionInvalidInputFieldNumberErrorMessage=vUe;K.subscriptionFilterConditionInvalidInputFieldErrorMessage=_Ue;K.subscriptionFilterConditionInvalidInputFieldTypeErrorMessage=SUe;K.subscriptionFilterArrayConditionInvalidItemTypeErrorMessage=OUe;K.subscriptionFilterArrayConditionInvalidLengthErrorMessage=DUe;K.invalidInputFieldTypeErrorMessage=bUe;K.subscriptionFieldConditionInvalidInputFieldErrorMessage=AUe;K.subscriptionFieldConditionInvalidValuesArrayErrorMessage=RUe;K.subscriptionFieldConditionEmptyValuesArrayErrorMessage=wUe;K.unknownFieldSubgraphNameError=PUe;K.invalidSubscriptionFieldConditionFieldPathErrorMessage=FUe;K.invalidSubscriptionFieldConditionFieldPathParentErrorMessage=LUe;K.undefinedSubscriptionFieldConditionFieldPathFieldErrorMessage=CUe;K.invalidSubscriptionFieldConditionFieldPathFieldErrorMessage=BUe;K.inaccessibleSubscriptionFieldConditionFieldPathFieldErrorMessage=UUe;K.nonLeafSubscriptionFieldConditionFieldPathFinalFieldErrorMessage=kUe;K.unresolvablePathError=qUe;K.allExternalFieldInstancesError=xUe;K.externalInterfaceFieldsError=MUe;K.nonExternalConditionalFieldError=jUe;K.incompatibleFederatedFieldNamedTypeError=VUe;K.unknownNamedTypeErrorMessage=T4;K.unknownNamedTypeError=KUe;K.unknownFieldDataError=$Ue;K.unexpectedNonCompositeOutputTypeError=GUe;K.invalidExternalDirectiveError=QUe;K.configureDescriptionNoDescriptionError=YUe;K.configureDescriptionPropagationError=JUe;K.duplicateDirectiveDefinitionArgumentErrorMessage=zUe;K.duplicateDirectiveDefinitionLocationError=HUe;K.duplicateDirectiveDefinitionLocationErrorMessage=WUe;K.invalidDirectiveDefinitionLocationError=XUe;K.invalidDirectiveDefinitionLocationErrorMessage=ZUe;K.invalidDirectiveDefinitionError=eke;K.typeNameAlreadyProvidedErrorMessage=tke;K.fieldAlreadyProvidedErrorMessage=rke;K.invalidInterfaceObjectImplementationDefinitionsError=nke;K.invalidNamedTypeError=ike;K.semanticNonNullLevelsNaNIndexErrorMessage=ake;K.semanticNonNullLevelsIndexOutOfBoundsErrorMessage=oke;K.semanticNonNullLevelsNonNullErrorMessage=ske;K.semanticNonNullInconsistentLevelsError=uke;K.oneOfRequiredFieldsError=cke;K.listSizeInvalidSlicingArgumentErrorMessage=lke;K.listSizeSlicingArgumentNotIntErrorMessage=dke;K.listSizeSizedFieldNotFoundErrorMessage=fke;K.listSizeSizedFieldNotListErrorMessage=pke;K.listSizeFieldMustReturnListOrUseSizedFieldsErrorMessage=mke;K.listSizeSizedFieldsInvalidReturnTypeErrorMessage=hke;K.listSizeSizedFieldsOnListsErrorMessage=yke;K.listSizeAssumedSizeWithRequiredSlicingArgumentErrorMessage=Nke;K.listSizeAssumedSizeSlicingArgDefaultErrorMessage=Tke;K.costOnInterfaceFieldErrorMessage=Eke;K.unknownComposeDirectiveNameError=gke;K.invalidComposeDirectiveNameError=Ike;K.noLeadingAtComposeDirectiveNameError=vke;K.unimportedComposeDirectiveNameError=_ke;K.invalidLinkDirectiveUrlError=Ske;K.noPathLinkDirectiveUrlError=Oke;K.noFeatureNameLinkDirectiveUrlError=Dke;K.noVersionLinkDirectiveUrlError=bke;K.invalidVersionLinkDirectiveUrlError=Ake;K.nonIterableLinkDirectiveImportError=Rke;K.invalidFieldLinkDirectiveImportObjectError=wke;K.noNameFieldLinkDirectiveImportObjectError=Pke;K.unknownFieldLinkDirectiveImportObjectError=Fke;K.invalidLinkDirectiveImportObjectError=Lke;K.invalidSubValueLinkDirectiveImportError=Cke;K.nonEqualCoreFeatureComposeDirectiveError=Bke;K.nonEqualComposeDirectiveMajorVersionError=Uke;K.unknownSubgraphNameError=kke;var p4=ve(),We=xr(),m4=Xf(),Ep=An(),gCe=Zc(),ICe=Iy();K.minimumSubgraphRequirementError=new Error("At least one subgraph is required for federation.");function vCe(e,t,r){return new Error(`The named type "${e}" is defined as both types "${t}" and "${r}". +However, there must be only one type named "${e}".`)}function _Ce(e,t,r,n){return new Error(`The ${e} of type "${r}" defined on coords "${t}" is incompatible with the default value of "${n}".`)}function SCe({actualType:e,coords:t,expectedType:r,isArgument:n}){return new Error(`Incompatible types when merging two instances of ${n?"field argument":We.FIELD} "${t}": + Expected type "${r}" but received "${e}".`)}function OCe(e,t,r,n,i){return new Error(`Expected the ${e} defined on path "${t}" to define the default value "${n}". +"However, the default value "${i}" is defined in the following subgraph`+(r.length>1?"s":"")+`: + "`+r.join(We.QUOTATION_JOIN)+`" +If an instance defines a default value, that default value must be consistently defined across all subgraphs.`)}function DCe(e){return new Error(`Enum "${e}" was used as both an input and output but was inconsistently defined across inclusive subgraphs. To update an Enum used as both an input and output, add any new Enum values with the @inaccessible directive in the origin subgraph. Next, add those new Enum values to all other subgraphs that define the Enum\u2014this time without the @inaccessible directive. Finally, once all subgraphs have been updated, remove @inaccessible from the Enum values in the origin subgraph.`)}function bCe(e,t){let r="Subgraphs to be federated must each have a unique, non-empty name.";e.length>0&&(r+=` The following subgraph names are not unique: - "`+e.join('", "')+'"');for(let r of t)n+=` - ${r}`;return new Error(n)}function dae(e){return new Error(`The directive "${e}" must only be defined once.`)}function fae(e,t){return new Error(`The Enum "${e}" must only define the Enum value definition "${t}" once.`)}function pae(e,t,n){return new Error(`The ${e} "${t}" must only define the field definition "${n}" once.`)}function mae(e,t){return new Error(`The Input Object "${e}" must only define the Input field definition "${t}" once.`)}function Nae(e,t,n){return new Error(`The ${e} "${t}" must only implement the Interface "${n}" once.`)}function Tae(e,t){return new Error(`The Union "${e}" must only define the Union member "${t}" once.`)}function Eae(e,t){return new Error(`The ${e} "${t}" must only be defined once.`)}function hae(e,t,n){return new Error(`The operation type "${e}" cannot be defined as "${t}" because it has already been defined as "${n}".`)}function yae(e,t){return new Error(`The ${e} "${t}" is an extension, but no base ${e} definition of "${t}" is defined in any subgraph.`)}function Iae(e){return new Error(`The Scalar extension "${e}" is invalid because no base Scalar definition of "${e} is defined in the subgraph.`)}function gae(e){return new Error(`The Union "${e}" must define at least one Union member.`)}function _ae(e){return new Error(`The Enum "${e}" must define at least one Enum value.`)}function vae(e,t,n){return new Error(`Expected the response type "${e}" for operation "${t}" to be type Object but received "${n}.`)}function Sae(e,t){let n=e.name,r=[];for(let[i,a]of e.fieldDataByName){if(!t.has(i))continue;let o=[],u=[];for(let[l,d]of a.isShareableBySubgraphName)d?o.push(l):u.push(l);o.length<1?r.push(` + "`+e.join('", "')+'"');for(let n of t)r+=` + ${n}`;return new Error(r)}function ACe(e){return new Error(`The directive "${e}" must only be defined once.`)}function RCe(e,t){return new Error(`The Enum "${e}" must only define the Enum value definition "${t}" once.`)}function wCe(e,t,r){return new Error(`The ${e} "${t}" must only define the field definition "${r}" once.`)}function PCe(e,t){return new Error(`The Input Object "${e}" must only define the Input field definition "${t}" once.`)}function FCe(e,t,r){return new Error(`The ${e} "${t}" must only implement the Interface "${r}" once.`)}function LCe(e,t){return new Error(`The Union "${e}" must only define the Union member "${t}" once.`)}function CCe(e,t){return new Error(`The ${e} "${t}" must only be defined once.`)}function BCe(e,t,r){return new Error(`The operation type "${e}" cannot be defined as "${t}" because it has already been defined as "${r}".`)}function UCe(e,t){return new Error(`The ${e} "${t}" is an extension, but no base ${e} definition of "${t}" is defined in any subgraph.`)}function kCe(e){return new Error(`The Scalar extension "${e}" is invalid because no base Scalar definition of "${e} is defined in the subgraph.`)}function qCe(e){return new Error(`The Union "${e}" must define at least one Union member.`)}function xCe(e){return new Error(`The Enum "${e}" must define at least one Enum value.`)}function MCe(e,t,r){return new Error(`Expected the response type "${e}" for operation "${t}" to be type Object but received "${r}.`)}function jCe(e,t){let r=e.name,n=[];for(let[i,a]of e.fieldDataByName){if(!t.has(i))continue;let o=[],u=[];for(let[l,m]of a.isShareableBySubgraphName)m?o.push(l):u.push(l);o.length<1?n.push(` The field "${i}" is defined in the following subgraphs: "${[...a.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`+(u.length>1?"s":"")+`: "${u.join(Je.QUOTATION_JOIN)}".`)}return new Error(`The Object "${n}" defines the same fields in multiple subgraphs without the "@shareable" directive:${r.join(` -`)}`)}function Oae(e,t){return new Error(`The directive "@${e}" declared on coordinates "${t}" is not defined in the schema.`)}function Dae(e){return new Error(` The type "${e}" was referenced in the schema, but it was never defined.`)}function bae(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 Aae(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: + However, it is not declared "@shareable" in any of them.`):n.push(` + The field "${i}" is defined and declared "@shareable" in the following subgraph`+(o.length>1?"s":"")+': "'+o.join(We.QUOTATION_JOIN)+`". + However, it is not declared "@shareable" in the following subgraph`+(u.length>1?"s":"")+`: "${u.join(We.QUOTATION_JOIN)}".`)}return new Error(`The Object "${r}" defines the same fields in multiple subgraphs without the "@shareable" directive:${n.join(` +`)}`)}function VCe(e,t){return new Error(`The directive "@${e}" declared on coordinates "${t}" is not defined in the schema.`)}function KCe(e){return new Error(` The type "${e}" was referenced in the schema, but it was never defined.`)}function $Ce(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 GCe(e,t,r,n){return new Error(`The ${r} instance of the directive "@${e}" declared on coordinates "${t}" is invalid for the following reason`+(n.length>1?`s: +`:`: +`)+n.join(` +`))}function QCe({directiveCoords:e,directiveName:t,errors:r,ordinal:n}){return new Error(`The ${n} post-federation instance of the directive "@${t}" declared on coordinates "${e}" is invalid for the following reason`+(r.length>1?`s: `:`: -`)+r.join(` -`))}function Rae(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 Pae(e,t){return` The definition for "@${e}" does not define "${t}" as a valid location.`}function Fae(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 wae(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 Lae(e){return" The following argument"+(e.length>1?"s are":" is")+' defined more than once: "'+e.join(Je.QUOTATION_JOIN)+'"'}function Cae(e,t,n,r){return` The value "${e}" provided to argument "${t}(${n}: ...)" is not a valid "${r}" type.`}function Uae(e){return new Error(` The type defined at path "${e}" has more than ${ix.MAXIMUM_TYPE_NESTING} layers of nesting, or there is a cyclical error.`)}function Bae(e){return new Error(`Fatal: Unexpected type for "${e}"`)}function kae(e,t,n){return new Error(`Fatal: Expected "${e}" to be type ${(0,Uc.kindToNodeType)(t)} but received "${(0,Uc.kindToNodeType)(n)}".`)}function Mae(e,t){return new Error(`Fatal: The type "${e}" visited the following unexpected edge`+(t.length>1?"s":"")+`: - "${t.join(Je.QUOTATION_JOIN)}".`)}var xae='"Interface Object" (an "Object" type that also defines the "@interfaceObject" directive)';function qae({existingData:e,incomingNodeType:t,incomingSubgraphName:n}){let r=[...e.subgraphNames],i=t?`"${t}"`:xae;return new Error(` "${e.name}" is defined using incompatible types across subgraphs. It is defined as type "${(0,Uc.kindToNodeType)(e.kind)}" in subgraph`+(r.length>1?"s":"")+` "${r.join(Je.QUOTATION_JOIN)}" but type ${i} in subgraph "${n}".`)}function Vae(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 jae(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 Kae(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 $ae(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 Gae(e,t){return`The ${(0,Uc.numberToOrdinal)(e+1)} subgraph in the array did not define a name. Consequently, any further errors will temporarily identify this subgraph as "${t}".`}function Qae(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 Jae(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 zae(e,t,n){let r=[];for(let[i,a]of n){let o=` The implementation of Interface "${i}" by "${e}" is invalid because: + - `)+r.map(i=>i.message).join(` + - `))}function YCe(e,t){return` The definition for "@${e}" does not define "${t}" as a valid location.`}function JCe({directiveCoords:e,directiveName:t,location:r}){return new Error(`The directive "@${t}" declared on "${e}" is invalid because the directive definition for "@${t}" does not define "${r}" as a valid location.`)}function zCe({directiveCoords:e,directiveName:t}){return new Error(`The multiple instances of directive "@${t}" declared on "${e}" are invalid because the directive definition for "@${t}" does not define it as repeatable.`)}function HCe(e){return new Error(" The following "+e.length+" required argument"+(e.length>1?"s are":" is")+' not defined: "'+e.join(We.QUOTATION_JOIN)+'"')}function WCe(e,t,r){let n=` The definition for "@${e}" defines the following `+t.length+" required argument"+(t.length>1?"s: ":": ")+'"'+t.join('", "')+`". + However,`;return r.length<1?n+" no arguments are defined on this instance.":n+" the following required argument"+(r.length>1?"s are":" is")+' not defined on this instance: "'+r.join(We.QUOTATION_JOIN)+'".'}function XCe(e){return new Error("The following unexpected argument"+(e.length>1?"s are":" is")+' provided: "'+e.join(We.QUOTATION_JOIN)+'".')}function ZCe(e,t){return` The definition for "@${e}" does not define the following argument`+(t.length>1?"s that are":" that is")+' provided: "'+t.join(We.QUOTATION_JOIN)+'".'}function eBe(e){return new Error("The following argument"+(e.length>1?"s are":" is")+' defined more than once: "'+e.join(We.QUOTATION_JOIN)+'".')}function tBe(e){return" The following argument"+(e.length>1?"s are":" is")+' defined more than once: "'+e.join(We.QUOTATION_JOIN)+'"'}function rBe({argumentName:e,expectedTypeString:t,value:r}){return new Error(` The value "${r}" provided to argument "${e}" is not a valid "${t}" type.`)}function nBe(e,t,r,n){return` The value "${e}" provided to argument "${t}(${r}: ...)" is not a valid "${n}" type.`}function iBe(e){return new Error(` The type defined at path "${e}" has more than ${m4.MAXIMUM_TYPE_NESTING} layers of nesting, or there is a cyclical error.`)}function aBe(e){return new Error(`Fatal: Unexpected type for "${e}"`)}function oBe(e,t,r){return new Error(`Fatal: Expected "${e}" to be type ${(0,Ep.kindToNodeType)(t)} but received "${(0,Ep.kindToNodeType)(r)}".`)}function sBe(e,t){return new Error(`Fatal: The type "${e}" visited the following unexpected edge`+(t.length>1?"s":"")+`: + "${t.join(We.QUOTATION_JOIN)}".`)}var uBe='"Interface Object" (an "Object" type that also defines the "@interfaceObject" directive)';function cBe({existingData:e,incomingNodeType:t,incomingSubgraphName:r}){let n=[...e.subgraphNames],i=t?`"${t}"`:uBe;return new Error(` "${e.name}" is defined using incompatible types across subgraphs. It is defined as type "${(0,Ep.kindToNodeType)(e.kind)}" in subgraph`+(n.length>1?"s":"")+` "${n.join(We.QUOTATION_JOIN)}" but type ${i} in subgraph "${r}".`)}function lBe(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 dBe(e,t){return new Error(`Fatal: Expected key "${e}" to exist in the map "${t}".`)}function fBe(e,t,r,n,i){return new Error(` Expected "${e}" to be type "${t}" but received "${r}" when handling child "${n}" of type "${i}".`)}function pBe(e,t){return new Error(`The subgraph "${e}" could not be federated for the following reason`+(t.length>1?"s":"")+`: +`+t.map(r=>r.message).join(` +`))}K.noSubgraphNameError=new Error("Federation could not be attempted because at least one subgraph does not define a name.");function mBe(e){return new Error(`Federation could not be attempted because the following subgraph names are defined more than once: "${e.join(We.QUOTATION_JOIN)}".`)}function hBe(e,t,r){return new Error(`The schema definition defines the "${e}" operation as type "${t}". However, "${t}" was also used for the "${r}" operation. + If explicitly defined, each operation type must be a unique and valid Object type.`)}function yBe(e,t,r){return new Error(`The schema definition defines the "${e}" operation as type "${t}". However, the schema also defines another type named "${r}", 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 NBe(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 TBe(e,t,r){let n=[];for(let[i,a]of r){let o=` The implementation of Interface "${i}" by "${e}" is invalid because: `,u=a.unimplementedFields.length;u&&(o+=` The following field${u>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,h=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}" -`}h&&(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. +`);for(let[l,m]of a.invalidFieldImplementations){let h=m.unimplementedArguments.size,N=m.invalidImplementedArguments.length,T=m.invalidAdditionalArguments.size;if(o+=` The field "${l}" is invalid because: +`,h&&(o+=` The following argument${h>1?"s are":" is"} not implemented: "`+[...m.unimplementedArguments].join('", "')+`" +`),N){o+=` The following implemented argument${N>1?"s are":" is"} invalid: +`;for(let O of m.invalidImplementedArguments)o+=` The argument "${O.argumentName}" must define type "`+O.expectedType+`" and not "${O.actualType}" +`}T&&(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"+(m.invalidAdditionalArguments.size>1?"s are":" is")+' not defined as optional: "'+[...m.invalidAdditionalArguments].join('", "')+`" +`),m.implementedResponseType&&(o+=` The implemented response type "${m.implementedResponseType}" is not a valid subtype (equally or more restrictive) of the response type "`+m.originalResponseType+`" for "${i}.${l}". +`),m.isInaccessible&&(o+=` 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.join(` -`))}function Hae(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('", "')+`" +`)}n.push(o)}return new Error(`The ${t} "${e}" has the following Interface implementation errors: +`+n.join(` +`))}function EBe(e,t,r,n=!0){let i=n?We.ARGUMENT:We.INPUT_FIELD,a=`The ${e} "${t}" could not be federated because: +`;for(let o of r)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('", "')+`" 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 Wae(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 Xae(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(a)}function gBe(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(We.QUOTATION_JOIN)+`" +`)}function IBe(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 - }`)}W.inaccessibleQueryRootTypeError=new Error('The root query type "Query" must be present in the client schema; consequently, it must not be declared "@inaccessible".');function Zae(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 ese(e,t,n,r){return` The following field set is invalid: + }`)}K.inaccessibleQueryRootTypeError=new Error('The root query type "Query" must be present in the client schema; consequently, it must not be declared "@inaccessible".');function vBe(e){return new Error(`Expected object "${e}" to define a "key" directive, but it defines no directives.`)}K.inlineFragmentInFieldSetErrorMessage=" Inline fragments are not currently supported within a field set argument.";function _Be(e,t,r,n){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 tse(e,t,n){return` The following field set is invalid: + This is because "${t}" returns "${r}", which is type "${n}". + Fields that return abstract types (Interfaces and Unions) cannot be included in the field set of "@key" directives.`}function SBe(e,t,r){return` The following field set is invalid: "${e}" - This is because "${t}" returns the unknown type "${n}".`}function nse(e,t,n,r){return` The following field set is invalid: + This is because "${t}" returns the unknown type "${r}".`}function OBe(e,t,r,n){return` The following field set is invalid: "${e}" - This is because of the selection set corresponding to the `+IE(t,n,r)+` Composite types such as "${r}" types must define a selection set with at least one field selection.`}function rse(e,t,n,r){return` The following field set is invalid: + This is because of the selection set corresponding to the `+zI(t,r,n)+` Composite types such as "${n}" types must define a selection set with at least one field selection.`}function DBe(e,t,r,n){return` The following field set is invalid: "${e}" - This is because of the selection set corresponding to the `+IE(t,n,r)+` Non-composite types such as "${r}" cannot define a selection set.`}function ise(e,t,n){return` The following field set is invalid: + This is because of the selection set corresponding to the `+zI(t,r,n)+` Non-composite types such as "${n}" cannot define a selection set.`}function bBe(e,t,r){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 ase(e,t){let n=` The following field set is invalid: + This is because of the selection set corresponding to the field coordinates "${t}.${r}". + The type "${t}" does not define a field named "${r}".`}function ABe(e,t){let r=` 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 sse(e,t){return` The following field set is invalid: + The field set could not be parsed.`;return t&&(r+=` + The reason provided was: `+t.message),r}function RBe(e,t){return` The following field set is invalid: "${e}" - This is because the selection set defined on "${t}" could not be parsed.`}function ose(e){return new Error(` Expected an object/interface or object/interface extension named "${e}" to exist.`)}function use(e,t,n){return` The following field set is invalid: + This is because the selection set defined on "${t}" could not be parsed.`}function wBe(e){return new Error(` Expected an object/interface or object/interface extension named "${e}" to exist.`)}function PBe(e,t,r){return` The following field set is invalid: "${e}" - This is because "${t}" does not define an argument named "${n}".`}function cse(e,t){return` The following field set is invalid: + This is because "${t}" does not define an argument named "${r}".`}function FBe(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 lse(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 LBe(e,t){return new Error(`The following "${e}" directive`+(t.length>1?"s are":" is")+` invalid: `+t.join(` -`))}function dse(e,t){return` The following field set is invalid: +`))}function CBe(e,t){return` The following field set is invalid: "${e}" - This is because "${t}" was included in the field set more than once.`}function fse(e,t,n){return` Expected ConfigurationData to exist for type "${e}" when adding field "${t}" while validating field set "${n}".`}function pse({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 YO(e,t,n=!1){return e.length<1?`enclosing type name "${t}". -`:`field coordinates "${e[e.length-1]}"`+(n?` that returns "${t}"`:"")+`. -`}function IE(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 mse(e,t,n,r){return` The following field set is invalid: + This is because "${t}" was included in the field set more than once.`}function BBe({fieldCoords:e,responseType:t,subgraphName:r}){return` A "@provides" directive is declared on field "${e}" in subgraph "${r}". + However, the response type "${t}" is not an Object nor Interface.`}function xP(e,t,r=!1){return e.length<1?`enclosing type name "${t}". +`:`field coordinates "${e[e.length-1]}"`+(r?` that returns "${t}"`:"")+`. +`}function zI(e,t,r){return e.length<1?`enclosing type name "${t}", which is type "${r}". +`:`field coordinates "${e[e.length-1]}" that returns "${t}", which is type "${r}". +`}function UBe(e,t,r,n){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 `+YO(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 Nse(e,t){return` 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 `+xP(t,n,!0)+` However, "${n}" is not an abstract (Interface or Union) type. + Consequently, the only valid type condition at this selection set would be "${n}".`}function kBe(e,t){return` The following field set is invalid: "${e}" - This is because "${t}" defines an inline fragment without a type condition.`}function Tse(e,t,n,r){return` The following field set is invalid: + This is because "${t}" defines an inline fragment without a type condition.`}function qBe(e,t,r,n){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 `+YO(t,n)}function Ese(e,t,n,r,i){return` The following field set is invalid: + This is because an inline fragment with the unknown type condition "${n}" is defined on the selection set corresponding to the `+xP(t,r)}function xBe(e,t,r,n,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 `+YO(t,n)+` However, "${r}" is type "${i}" when types "Interface" or "Object" would be expected.`}function hse(e,t,n,r,i){let a=` 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 `+xP(t,r)+` However, "${n}" is type "${i}" when types "Interface" or "Object" would be expected.`}function MBe(e,t,r,n,i){let a=` 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 `+IE(t,i,r);return r===Je.INTERFACE?a+` However, "${n}" does not implement "${i}"`:a+` However, "${n}" is not a member of "${i}".`}function yse(e,t,n){return` 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 `+zI(t,i,n);return n===We.INTERFACE?a+` However, "${r}" does not implement "${i}"`:a+` However, "${r}" is not a member of "${i}".`}function jBe(e,t,r){return` The following field set is invalid: "${e}" - This is because of the selection set corresponding to the `+IE(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 Ise(e,t){return` The field "${e}" declares an @override directive in the following subgraphs: "`+t.join(Je.QUOTATION_JOIN)+'".'}function gse(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 _se(e,t){return new Error(`The ${e} "${t}" is invalid because it does not define any fields.`)}function vse(e){return new Error(`The Input Object "${e}" is invalid because it does not define any input values.`)}function Sse(e,t,n){return new Error(`The ${e} "${t}" is invalid because all its ${n} definitions are declared "@inaccessible".`)}function Ose(e,t){return`Cannot override field "${t}" because the source and target subgraph names are both "${e}"`}function Dse(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 `+zI(t,r,We.UNION)+` Union types such as "${r}" must define field selections (besides "__typename") on an inline fragment whose type condition corresponds to a constituent union member.`}function VBe(e,t){return` The field "${e}" declares an @override directive in the following subgraphs: "`+t.join(We.QUOTATION_JOIN)+'".'}function KBe(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(We.QUOTATION_JOIN)+`". +`)}function $Be(e,t){return new Error(`The ${e} "${t}" is invalid because it does not define any fields.`)}function GBe(e){return new Error(`The Input Object "${e}" is invalid because it does not define any input values.`)}function QBe(e,t,r){return new Error(`The ${e} "${t}" is invalid because all its ${r} definitions are declared "@inaccessible".`)}function YBe(e,t){return`Cannot override field "${t}" because the source and target subgraph names are both "${e}"`}function JBe(e,t){let r=`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,Uc.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)+`" - However, the definition of at least one of these implementations is missing in a subgraph that defines the entity interface "${r}": -`;for(let{subgraphName:u,definedConcreteTypeNames:l}of i){let d=(0,Uc.getEntriesNotInHashSet)(o,l);n+=` Subgraph "${u}" does not define the following implementations: "`+d.join(Je.QUOTATION_JOIN)+`" -`}}return new Error(n)}function bse(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 Ase(e){return new Error(`An "Event Driven" graph\u2014a subgraph that defines event driven directives\u2014must not define any resolvers. +`;for(let[n,i]of e){let o=(0,Ep.getOrThrowError)(t,n,"entityInterfaceFederationDataByTypeName").concreteTypeNames;r+=` Across all subgraphs, the entity interface "${n}" is implemented by the following entit`+(o.size>1?"ies":"y")+`: + "`+Array.from(o).join(We.QUOTATION_JOIN)+`" + However, the definition of at least one of these implementations is missing in a subgraph that defines the entity interface "${n}": +`;for(let{subgraphName:u,definedConcreteTypeNames:l}of i){let m=(0,Ep.getEntriesNotInHashSet)(o,l);r+=` Subgraph "${u}" does not define the following implementations: "`+m.join(We.QUOTATION_JOIN)+`" +`}}return new Error(r)}function zBe(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(We.QUOTATION_JOIN)+`" +If you require more, please contact support.`)}function HBe(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 Rse(e){let t=` Root type fields defined in an Event Driven graph must define a valid events directive: +`))}function WBe(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 Pse(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: +`;for(let[r,n]of e)n.definesDirectives?t+=` The root field path "${r}" defines the following invalid events directive`+(n.invalidDirectiveNames.length>1?"s":"")+': "@'+n.invalidDirectiveNames.join('", "@')+`" +`:t+=` The root field path "${r}" does not define any valid events directives. +`;return t}function XBe(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 Fse(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. +`;for(let[r,n]of e)t+=` The mutation field path "${r}" returns "${n}". +`;return t}function ZBe(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}W.invalidNatsStreamInputErrorMessage=`The "streamConfiguration" argument must be a valid input object with the following form: +`;for(let[r,n]of e)t+=` The root field path "${r}", which returns the invalid type "${n}" +`;return t}K.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 wse(e,t,n,r){let i=W.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+=` + }`;function eUe(e,t,r,n){let i=K.invalidNatsStreamInputErrorMessage,a=[];return e.length>0&&a.push("The following required field"+(e.length>1?"s were":" was")+' not defined: "'+e.join(We.QUOTATION_JOIN)+'".'),t.length>0&&a.push("The following required field"+(t.length>1?"s were":" was")+' defined more than once: "'+t.join(We.QUOTATION_JOIN)+'".'),r.length>0&&a.push("The following required field"+(r.length>1?"s were":" was")+' not type "String!" with a minimum length of 1: "'+r.join(We.QUOTATION_JOIN)+'".'),n.length>0&&a.push("The following field"+(n.length>1?"s are":" is")+' not part of a valid "edfs__NatsStreamConfiguration" input definition: "'+n.join(We.QUOTATION_JOIN)+'".'),i+=` However, the provided input was invalid for the following reason`+(a.length>1?"s":"")+`: `+a.join(` - `),i}function Lse(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 Cse(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 Use(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 Bse(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. + `),i}function tUe(e=new Map){let t="";for(let[r,n]of e)t+=' The following "@key" field set'+(n.length>1?"s are":" is")+` defined on the entity "${r}" without a "resolvable: false" argument: + "`+n.join(We.QUOTATION_JOIN)+`" +`;return t}function rUe(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[r,n]of e)t+=` field "${n}" defined on path "${r}" +`;return t}function nUe(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[r,n]of e)t+=` Field "${n}" defined on path "${r}" +`;return t}function iUe(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 kse(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)+`" -`}W.invalidEdfsPublishResultObjectErrorMessage=` The object "edfs__PublishResult" that was defined in the Event Driven graph is invalid and must instead have the following definition: + "`+e.join(We.QUOTATION_JOIN)+`" +`}function aUe(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(We.QUOTATION_JOIN)+`" +`}K.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! - }`;W.invalidNatsStreamConfigurationDefinitionErrorMessage=` The input object "edfs__NatsStreamConfiguration" that was defined in the Event Driven graph is invalid and must instead have the following definition: + }`;K.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 Mse(e){return new Error(`Could not retrieve definition for Event-Driven Federated Subscription directive "${e}".`)}function xse(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 qse(e){return new Error(` The interface "${e}" must not implement itself.`)}function Vse(e){return`The "${e}" argument must be string with a minimum length of one.`}function jse(e){return`The "${e}" argument must be a list of strings.`}function Kse(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 $se(e){return`An argument template references the invalid argument "${e}".`}function Gse(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 Qse(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 Jse(e,t){return new Error(`The ${e.kind===rx.Kind.ARGUMENT?"argument":"Input field"} "${e.name}" defined at coordinates "${e.federatedCoords}" is declared "@inaccessible"; however, it is a required ${e.kind===rx.Kind.ARGUMENT?"argument of field":"field of Input Object"} "${t}".`)}function zse(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 oUe(e,t){let r=` Only interfaces can be implemented. However, the type "${e}" attempts to implement the following invalid type`+(t.size>1?"s":"")+`: +`;for(let[n,i]of t)r+=` "${n}", which is type "${i}" +`;return new Error(r)}function sUe(e){return new Error(` The interface "${e}" must not implement itself.`)}function uUe(e){return`The "${e}" argument must be string with a minimum length of one.`}function cUe(e){return`The "${e}" argument must be a list of strings.`}function lUe(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 dUe(e){return`An argument template references the invalid argument "${e}".`}function fUe(e){return`An argument template references the undefined argument "${e}".`}K.invalidEventProviderIdErrorMessage='If explicitly defined, the "providerId" argument must be a string with a minimum length of one.';function pUe(e,t,r){return new Error(`The event directive "${e}" declared on "${t}" is invalid for the following reason`+(r.length>1?"s":"")+`: + `+r.join(` + `))}function mUe(e,t,r){return new Error(`The ${e} "${t}" is declared "@inaccessible"; however, the ${e} is still referenced at the following paths: + "`+r.join(We.QUOTATION_JOIN)+`" +`)}function hUe(e,t){return new Error(`The ${e.kind===p4.Kind.ARGUMENT?"argument":"Input field"} "${e.name}" defined at coordinates "${e.federatedCoords}" is declared "@inaccessible"; however, it is a required ${e.kind===p4.Kind.ARGUMENT?"argument of field":"field of Input Object"} "${t}".`)}function yUe(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 Hse(e){return new Error(`Expected type "${e}" to be a root type but could not find its respective OperationTypeNode.`)}function Wse(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 Xse(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 NUe(e){return new Error(`Expected type "${e}" to be a root type but could not find its respective OperationTypeNode.`)}function TUe(e){return new Error(`The "@${We.SUBSCRIPTION_FILTER}" directive must only be defined on a subscription root field, but it was defined on the path "${e}".`)}function EUe(e,t){return new Error(`The "@${We.SUBSCRIPTION_FILTER}" directive defined on path "${e}" is invalid for the following reason`+(t.length>1?"s":"")+`: `+t.join(` -`))}function Zse(e){return` Unknown type "${e}".`}function eoe(e){return` The input path "${e}" exceeds the maximum depth of ${ix.MAX_SUBSCRIPTION_FILTER_DEPTH} for any one filter condition. - If you require a larger maximum depth, please contact support.`}var ax=` 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 toe(e,t){return ax+` However, input path "${e}" defines ${t} fields.`}function noe(e,t){return ax+` However, input path "${e}" defines the invalid input value field "${t}".`}function roe(e,t,n){return` Expected the value of input path "${e}" to be type "${t}" but received type "${n}"`}var sx=` An AND or OR input field defined on a "${Je.SUBSCRIPTION_FILTER_CONDITION}" should define a list of 1\u20135 nested conditions. -`;function ioe(e,t){let n=t.length>1;return sx+" However, the following "+(n?"indices":"index")+` defined on input path "${e}" `+(n?"are":"is")+' not type "object": '+t.join(", ")}function aoe(e,t){return sx+` However, the list defined on input path "${e}" has a length of ${t}.`}function soe(e,t,n){return` Expected the input path "${e}" to be type "${t}" but received "${n}".`}function ooe(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}". +`))}function gUe(e){return` Unknown type "${e}".`}function IUe(e){return` The input path "${e}" exceeds the maximum depth of ${m4.MAX_SUBSCRIPTION_FILTER_DEPTH} for any one filter condition. + If you require a larger maximum depth, please contact support.`}var h4=` Each "${We.SUBSCRIPTION_FILTER_CONDITION}" input object must define exactly one of the following input value fields: "${We.AND_UPPER}", "${We.IN_UPPER}", "${We.NOT_UPPER}", or "${We.OR_UPPER}". +`;function vUe(e,t){return h4+` However, input path "${e}" defines ${t} fields.`}function _Ue(e,t){return h4+` However, input path "${e}" defines the invalid input value field "${t}".`}function SUe(e,t,r){return` Expected the value of input path "${e}" to be type "${t}" but received type "${r}"`}var y4=` An AND or OR input field defined on a "${We.SUBSCRIPTION_FILTER_CONDITION}" should define a list of 1\u20135 nested conditions. +`;function OUe(e,t){let r=t.length>1;return y4+" However, the following "+(r?"indices":"index")+` defined on input path "${e}" `+(r?"are":"is")+' not type "object": '+t.join(", ")}function DUe(e,t){return y4+` However, the list defined on input path "${e}" has a length of ${t}.`}function bUe(e,t,r){return` Expected the input path "${e}" to be type "${t}" but received "${r}".`}function AUe(e,t,r,n,i){let a=` Each "${We.SUBSCRIPTION_FIELD_CONDITION}" input object must only define the following two input value fields: "${We.FIELD_PATH}" and "${We.VALUES}". However, input path "${e}" is invalid because:`;return t.length>0&&(a+=` The following required field`+(t.length>1?"s are":" is")+` not defined: - "`+t.join(Je.QUOTATION_JOIN)+'"'),n.length>0&&(a+=` - The following required field`+(n.length>1?"s are":" is")+` defined more than once: - "`+n.join(Je.QUOTATION_JOIN)+'"'),r.length>0&&(a+=` - The following invalid field`+(r.length>1?"s are":" is")+` defined: - "`+r.join(Je.QUOTATION_JOIN)+'"'),i.length>0&&(a+=` + "`+t.join(We.QUOTATION_JOIN)+'"'),r.length>0&&(a+=` + The following required field`+(r.length>1?"s are":" is")+` defined more than once: + "`+r.join(We.QUOTATION_JOIN)+'"'),n.length>0&&(a+=` + The following invalid field`+(n.length>1?"s are":" is")+` defined: + "`+n.join(We.QUOTATION_JOIN)+'"'),i.length>0&&(a+=` `+i.join(` - `)),a}var ox=` 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 uoe(e,t){let n=t.length>1;return ox+" However, the following "+(n?"indices":"index")+` defined on input path "${e}" `+(n?"are":"is")+` not a valid "${Je.SUBSCRIPTION_FILTER_VALUE}": `+t.join(", ")}function coe(e){return ox+` However, the list defined on input path "${e}" is empty.`}function loe(e){return new Error(` Field "${e}" defined no subgraph names.`)}function doe(e,t){return` Input path "${e}" defines the value "${t}", which is not a period (.) delimited field path.`}function foe(e,t,n){return` Input path "${e}" defines the value "${t}". - However, "${n}" is not type "object"`}function poe(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 moe(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 Noe(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 Toe(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 Eoe({fieldName:e,selectionSet:t},n){let r=`The field "${e}" is unresolvable at the following path: + `)),a}var N4=` A "${We.SUBSCRIPTION_FIELD_CONDITION}" input object must define a "values" input value field with a list of at least one valid "${We.SUBSCRIPTION_FILTER_VALUE}" kind (boolean, enum, float, int, null, or string). +`;function RUe(e,t){let r=t.length>1;return N4+" However, the following "+(r?"indices":"index")+` defined on input path "${e}" `+(r?"are":"is")+` not a valid "${We.SUBSCRIPTION_FILTER_VALUE}": `+t.join(", ")}function wUe(e){return N4+` However, the list defined on input path "${e}" is empty.`}function PUe(e){return new Error(` Field "${e}" defined no subgraph names.`)}function FUe(e,t){return` Input path "${e}" defines the value "${t}", which is not a period (.) delimited field path.`}function LUe(e,t,r){return` Input path "${e}" defines the value "${t}". + However, "${r}" is not type "object"`}function CUe(e,t,r,n,i){return` Input path "${e}" defines the value "${t}". + However, the path "${r}" is invalid because no field named "${n}" exists on type "${i}".`}function BUe(e,t,r,n,i){return`Input path "${e}" defines the value "${t}". + However, only fields that are defined in the same graph as the "@${We.SUBSCRIPTION_FILTER}" directive can compose part of an "IN" condition's "fieldPath" input value field. + Consequently, the path "${r}" is invalid because field "${n}" is not defined in subgraph "${i}".`}function UUe(e,t,r,n){return` Input path "${e}" defines the value "${t}". + The path segment "${r}" is invalid because it refers to "${n}", which is declared "@inaccessible".`}function kUe(e,t,r,n,i){return` Input path "${e}" defines the value "${t}". + However, the final field "${r}" is ${n} "${i}", which is not a leaf type; therefore, it requires further selections.`}function qUe({fieldName:e,selectionSet:t},r){let n=`The field "${e}" is unresolvable at the following path: ${t} This is because: - - `+n.join(` - - `);return new Error(r)}function hoe(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 yoe(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 Ioe({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: + - `+r.join(` + - `);return new Error(n)}function xUe(e,t){let r=`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[n,i]of t)r+=` "${n}" in subgraph`+(i.length>1?"s":"")+' "'+i.join(We.QUOTATION_JOIN)+`" +`;return r+='At least one instance of a field definition must always be resolvable (and therefore not declared "@external").',new Error(r)}function MUe(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(We.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 jUe({directiveCoords:e,fieldSet:t,directiveName:r,subgraphName:n,targetCoords:i}){let a=i.split(We.LITERAL_PERIOD),o=a[a.length-1]===We.TYPENAME;return new Error(`The field "${e}" in subgraph "${n}" defines a "@${r}" directive with the following field set: "${t}".`+(o?` 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 goe(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 "${n}" and should not form part of a "@${r}" directive field set.`)}function VUe(e,t){let r=[];for(let[n,i]of t){let a=[...i];r.push(` The named type "${n}" is returned by the following subgraph`+(a.length>1?"s":"")+': "'+a.join(We.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 ux(e,t){return`The field "${e}" returns the unknown named type "${t}".`}function _oe(e,t){return new Error(ux(e,t))}function voe(e){return new Error(`Could not find FieldData for field "${e}" -.This should never happen. Please report this issue on GitHub.`)}function Soe(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 Ooe(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 Doe(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 boe(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 Aoe(e){return"- The following argument"+(e.length>1?"s are":" is")+` defined more than once: - "`+e.join(Je.QUOTATION_JOIN)+'"'}function Roe(e){return`- The location "${e}" is defined multiple times.`}function Poe(e){return`- "${e}" is not a valid directive location.`}function Foe(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 woe(e,t){return` The field "${e}" is unconditionally provided by subgraph "${t}" and should not form part of any "@provides" field set.`}function Loe(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 Coe(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 Uoe({data:e,namedTypeData:t,nodeType:n}){let r=(0,rae.isFieldData)(e),i=r?`${e.originalParentTypeName}.${e.name}`:e.originalCoords;return new Error(`The ${n} "${i}" is invalid because it defines type `+(0,iae.printTypeNode)(e.type)+`; however, ${(0,Uc.kindToNodeType)(t.kind)} "${t.name}" is not a valid `+(r?"output":"input")+" type.")}function Boe(e){return`Index "${e}" is not a valid integer.`}function koe({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 Moe({typeString:e,value:t}){return`Index "${t}" of type ${e} is non-null but must be nullable.`}W.semanticNonNullArgumentErrorMessage=`Argument "${Je.LEVELS}" validation error.`;function xoe(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 qoe({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)+'".')}function Voe(e,t){return` The "slicingArguments" value "${t}" on "${e}" does not reference a defined argument on this field.`}function joe(e,t,n){return` The "slicingArguments" value "${t}" on "${e}" references an argument of type "${n}", but slicing arguments must be of type "Int" or "Int!".`}function Koe(e,t,n){return` The "sizedFields" value "${t}" on "${e}" does not reference a defined field on the return type "${n}".`}function $oe(e,t,n,r){return` The "sizedFields" value "${t}" on "${e}" references field "${n}.${t}", which returns type "${r}". Sized fields must return a list type.`}function Goe(e,t){return` The "@listSize" directive on "${e}" is invalid because the field returns type "${t}", which is not a list type, and no "sizedFields" argument is provided.`}function Qoe(e,t){return` The "sizedFields" argument on "${e}" is invalid because the return type "${t}" is not an object or interface type.`}function Yoe(e,t){return` The "sizedFields" argument on "${e}" is invalid because the return type "${t}" must not be a list.`}function Joe(e){return` The "@listSize" directive on "${e}" defines both "assumedSize" and "slicingArguments". When both are used, "requireOneSlicingArgument" must be set to false.`}function zoe(e,t){return` The "@listSize" directive on "${e}" defines both "assumedSize" and "slicingArguments", but slicing argument "${t}" has a default value. When "assumedSize" is used as a fallback for missing slicing arguments, none of the slicing arguments may have default values.`}function Hoe(e){return` The "@cost" directive at "${e}" is not permitted on fields or arguments of an Interface type. The cost of an interface field is derived from the costs of the corresponding fields on the concrete types that implement the interface.`}});var lx=F(cx=>{"use strict";m();T();N();Object.defineProperty(cx,"__esModule",{value:!0})});var _E=F(gE=>{"use strict";m();T();N();Object.defineProperty(gE,"__esModule",{value:!0});gE.DEFAULT_CONSUMER_INACTIVE_THRESHOLD=void 0;gE.DEFAULT_CONSUMER_INACTIVE_THRESHOLD=30});var vE=F(Ir=>{"use strict";m();T();N();Object.defineProperty(Ir,"__esModule",{value:!0});Ir.SUBSCRIPTION_FILTER_VALUE_DEFINITION=Ir.SUBSCRIPTION_FILTER_CONDITION_DEFINITION=Ir.SUBSCRIPTION_FIELD_CONDITION_DEFINITION=Ir.SCOPE_SCALAR_DEFINITION=Ir.LINK_PURPOSE_DEFINITION=Ir.LINK_IMPORT_DEFINITION=Ir.FIELD_SET_SCALAR_DEFINITION=Ir.EDFS_NATS_STREAM_CONFIGURATION_DEFINITION=void 0;var an=Se(),dn=Br(),fn=Xn(),Woe=_E();Ir.EDFS_NATS_STREAM_CONFIGURATION_DEFINITION={kind:an.Kind.INPUT_OBJECT_TYPE_DEFINITION,name:(0,dn.stringToNameNode)(fn.EDFS_NATS_STREAM_CONFIGURATION),fields:[{kind:an.Kind.INPUT_VALUE_DEFINITION,name:(0,dn.stringToNameNode)(fn.CONSUMER_INACTIVE_THRESHOLD),type:{kind:an.Kind.NON_NULL_TYPE,type:(0,dn.stringToNamedTypeNode)(fn.INT_SCALAR)},defaultValue:{kind:an.Kind.INT,value:Woe.DEFAULT_CONSUMER_INACTIVE_THRESHOLD.toString()}},{kind:an.Kind.INPUT_VALUE_DEFINITION,name:(0,dn.stringToNameNode)(fn.CONSUMER_NAME),type:{kind:an.Kind.NON_NULL_TYPE,type:(0,dn.stringToNamedTypeNode)(fn.STRING_SCALAR)}},{kind:an.Kind.INPUT_VALUE_DEFINITION,name:(0,dn.stringToNameNode)(fn.STREAM_NAME),type:{kind:an.Kind.NON_NULL_TYPE,type:(0,dn.stringToNamedTypeNode)(fn.STRING_SCALAR)}}]};Ir.FIELD_SET_SCALAR_DEFINITION={kind:an.Kind.SCALAR_TYPE_DEFINITION,name:(0,dn.stringToNameNode)(fn.FIELD_SET_SCALAR)};Ir.LINK_IMPORT_DEFINITION={kind:an.Kind.SCALAR_TYPE_DEFINITION,name:(0,dn.stringToNameNode)(fn.LINK_IMPORT)};Ir.LINK_PURPOSE_DEFINITION={kind:an.Kind.ENUM_TYPE_DEFINITION,name:(0,dn.stringToNameNode)(fn.LINK_PURPOSE),values:[{directives:[],kind:an.Kind.ENUM_VALUE_DEFINITION,name:(0,dn.stringToNameNode)(fn.EXECUTION)},{directives:[],kind:an.Kind.ENUM_VALUE_DEFINITION,name:(0,dn.stringToNameNode)(fn.SECURITY)}]};Ir.SCOPE_SCALAR_DEFINITION={kind:an.Kind.SCALAR_TYPE_DEFINITION,name:(0,dn.stringToNameNode)(fn.SCOPE_SCALAR)};Ir.SUBSCRIPTION_FIELD_CONDITION_DEFINITION={fields:[{kind:an.Kind.INPUT_VALUE_DEFINITION,name:(0,dn.stringToNameNode)(fn.FIELD_PATH),type:{kind:an.Kind.NON_NULL_TYPE,type:(0,dn.stringToNamedTypeNode)(fn.STRING_SCALAR)}},{kind:an.Kind.INPUT_VALUE_DEFINITION,name:(0,dn.stringToNameNode)(fn.VALUES),type:{kind:an.Kind.NON_NULL_TYPE,type:{kind:an.Kind.LIST_TYPE,type:(0,dn.stringToNamedTypeNode)(fn.SUBSCRIPTION_FILTER_VALUE)}}}],kind:an.Kind.INPUT_OBJECT_TYPE_DEFINITION,name:(0,dn.stringToNameNode)(fn.SUBSCRIPTION_FIELD_CONDITION)};Ir.SUBSCRIPTION_FILTER_CONDITION_DEFINITION={fields:[{kind:an.Kind.INPUT_VALUE_DEFINITION,name:(0,dn.stringToNameNode)(fn.AND_UPPER),type:{kind:an.Kind.LIST_TYPE,type:{kind:an.Kind.NON_NULL_TYPE,type:(0,dn.stringToNamedTypeNode)(fn.SUBSCRIPTION_FILTER_CONDITION)}}},{kind:an.Kind.INPUT_VALUE_DEFINITION,name:(0,dn.stringToNameNode)(fn.IN_UPPER),type:(0,dn.stringToNamedTypeNode)(fn.SUBSCRIPTION_FIELD_CONDITION)},{kind:an.Kind.INPUT_VALUE_DEFINITION,name:(0,dn.stringToNameNode)(fn.OR_UPPER),type:{kind:an.Kind.LIST_TYPE,type:{kind:an.Kind.NON_NULL_TYPE,type:(0,dn.stringToNamedTypeNode)(fn.SUBSCRIPTION_FILTER_CONDITION)}}},{kind:an.Kind.INPUT_VALUE_DEFINITION,name:(0,dn.stringToNameNode)(fn.NOT_UPPER),type:(0,dn.stringToNamedTypeNode)(fn.SUBSCRIPTION_FILTER_CONDITION)}],kind:an.Kind.INPUT_OBJECT_TYPE_DEFINITION,name:(0,dn.stringToNameNode)(fn.SUBSCRIPTION_FILTER_CONDITION)};Ir.SUBSCRIPTION_FILTER_VALUE_DEFINITION={kind:an.Kind.SCALAR_TYPE_DEFINITION,name:(0,dn.stringToNameNode)(fn.SUBSCRIPTION_FILTER_VALUE)}});var dd=F(rr=>{"use strict";m();T();N();Object.defineProperty(rr,"__esModule",{value:!0});rr.CLIENT_PERSISTED_DIRECTIVE_NAMES=rr.IGNORED_FEDERATED_TYPE_NAMES=rr.DEPENDENCIES_BY_DIRECTIVE_NAME=rr.COMPOSITE_OUTPUT_NODE_KINDS=rr.SUBSCRIPTION_FILTER_LIST_INPUT_NAMES=rr.SUBSCRIPTION_FILTER_INPUT_NAMES=rr.STREAM_CONFIGURATION_FIELD_NAMES=rr.EVENT_DIRECTIVE_NAMES=rr.TYPE_SYSTEM_DIRECTIVE_LOCATIONS=void 0;var rt=Xn(),SE=Se(),ba=vE();rr.TYPE_SYSTEM_DIRECTIVE_LOCATIONS=new Set([rt.ARGUMENT_DEFINITION_UPPER,rt.ENUM_UPPER,rt.ENUM_VALUE_UPPER,rt.FIELD_DEFINITION_UPPER,rt.INPUT_FIELD_DEFINITION_UPPER,rt.INPUT_OBJECT_UPPER,rt.INTERFACE_UPPER,rt.OBJECT_UPPER,rt.SCALAR_UPPER,rt.SCHEMA_UPPER,rt.UNION_UPPER]);rr.EVENT_DIRECTIVE_NAMES=new Set([rt.EDFS_KAFKA_PUBLISH,rt.EDFS_KAFKA_SUBSCRIBE,rt.EDFS_NATS_PUBLISH,rt.EDFS_NATS_REQUEST,rt.EDFS_NATS_SUBSCRIBE,rt.EDFS_REDIS_PUBLISH,rt.EDFS_REDIS_SUBSCRIBE]);rr.STREAM_CONFIGURATION_FIELD_NAMES=new Set([rt.CONSUMER_INACTIVE_THRESHOLD,rt.CONSUMER_NAME,rt.STREAM_NAME]);rr.SUBSCRIPTION_FILTER_INPUT_NAMES=new Set([rt.AND_UPPER,rt.IN_UPPER,rt.NOT_UPPER,rt.OR_UPPER]);rr.SUBSCRIPTION_FILTER_LIST_INPUT_NAMES=new Set([rt.AND_UPPER,rt.OR_UPPER]);rr.COMPOSITE_OUTPUT_NODE_KINDS=new Set([SE.Kind.INTERFACE_TYPE_DEFINITION,SE.Kind.INTERFACE_TYPE_EXTENSION,SE.Kind.OBJECT_TYPE_DEFINITION,SE.Kind.OBJECT_TYPE_EXTENSION]);rr.DEPENDENCIES_BY_DIRECTIVE_NAME=new Map([[rt.CONNECT_FIELD_RESOLVER,[ba.FIELD_SET_SCALAR_DEFINITION]],[rt.EDFS_NATS_SUBSCRIBE,[ba.EDFS_NATS_STREAM_CONFIGURATION_DEFINITION]],[rt.KEY,[ba.FIELD_SET_SCALAR_DEFINITION]],[rt.LINK,[ba.LINK_IMPORT_DEFINITION,ba.LINK_PURPOSE_DEFINITION]],[rt.PROVIDES,[ba.FIELD_SET_SCALAR_DEFINITION]],[rt.REQUIRES,[ba.FIELD_SET_SCALAR_DEFINITION]],[rt.REQUIRES_SCOPES,[ba.SCOPE_SCALAR_DEFINITION]],[rt.SUBSCRIPTION_FILTER,[ba.SUBSCRIPTION_FIELD_CONDITION_DEFINITION,ba.SUBSCRIPTION_FILTER_CONDITION_DEFINITION,ba.SUBSCRIPTION_FILTER_VALUE_DEFINITION]]]);rr.IGNORED_FEDERATED_TYPE_NAMES=new Set([rt.BOOLEAN_SCALAR,rt.EDFS_NATS_STREAM_CONFIGURATION,rt.FIELD_SET_SCALAR,rt.ID_SCALAR,rt.INT_SCALAR,rt.FLOAT_SCALAR,rt.LINK_IMPORT,rt.LINK_PURPOSE,rt.STRING_SCALAR,rt.SUBSCRIPTION_FIELD_CONDITION,rt.SUBSCRIPTION_FILTER_CONDITION,rt.SUBSCRIPTION_FILTER_VALUE]);rr.CLIENT_PERSISTED_DIRECTIVE_NAMES=new Set([rt.DEPRECATED,rt.ONE_OF,rt.SEMANTIC_NON_NULL])});var ia=F((JO,dx)=>{"use strict";m();T();N();var Np=function(e){return e&&e.Math===Math&&e};dx.exports=Np(typeof globalThis=="object"&&globalThis)||Np(typeof window=="object"&&window)||Np(typeof self=="object"&&self)||Np(typeof global=="object"&&global)||Np(typeof JO=="object"&&JO)||function(){return this}()||Function("return this")()});var Bs=F((aFe,fx)=>{"use strict";m();T();N();fx.exports=function(e){try{return!!e()}catch(t){return!0}}});var Lu=F((cFe,px)=>{"use strict";m();T();N();var Xoe=Bs();px.exports=!Xoe(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var zO=F((pFe,mx)=>{"use strict";m();T();N();var Zoe=Bs();mx.exports=!Zoe(function(){var e=function(){}.bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var Bc=F((EFe,Nx)=>{"use strict";m();T();N();var eue=zO(),OE=Function.prototype.call;Nx.exports=eue?OE.bind(OE):function(){return OE.apply(OE,arguments)}});var yx=F(hx=>{"use strict";m();T();N();var Tx={}.propertyIsEnumerable,Ex=Object.getOwnPropertyDescriptor,tue=Ex&&!Tx.call({1:2},1);hx.f=tue?function(t){var n=Ex(this,t);return!!n&&n.enumerable}:Tx});var HO=F((OFe,Ix)=>{"use strict";m();T();N();Ix.exports=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}}});var Oi=F((RFe,vx)=>{"use strict";m();T();N();var gx=zO(),_x=Function.prototype,WO=_x.call,nue=gx&&_x.bind.bind(WO,WO);vx.exports=gx?nue:function(e){return function(){return WO.apply(e,arguments)}}});var Dx=F((LFe,Ox)=>{"use strict";m();T();N();var Sx=Oi(),rue=Sx({}.toString),iue=Sx("".slice);Ox.exports=function(e){return iue(rue(e),8,-1)}});var Ax=F((kFe,bx)=>{"use strict";m();T();N();var aue=Oi(),sue=Bs(),oue=Dx(),XO=Object,uue=aue("".split);bx.exports=sue(function(){return!XO("z").propertyIsEnumerable(0)})?function(e){return oue(e)==="String"?uue(e,""):XO(e)}:XO});var ZO=F((VFe,Rx)=>{"use strict";m();T();N();Rx.exports=function(e){return e==null}});var eD=F((GFe,Px)=>{"use strict";m();T();N();var cue=ZO(),lue=TypeError;Px.exports=function(e){if(cue(e))throw new lue("Can't call method on "+e);return e}});var DE=F((zFe,Fx)=>{"use strict";m();T();N();var due=Ax(),fue=eD();Fx.exports=function(e){return due(fue(e))}});var Aa=F((ZFe,wx)=>{"use strict";m();T();N();var tD=typeof document=="object"&&document.all;wx.exports=typeof tD=="undefined"&&tD!==void 0?function(e){return typeof e=="function"||e===tD}:function(e){return typeof e=="function"}});var fd=F((rwe,Lx)=>{"use strict";m();T();N();var pue=Aa();Lx.exports=function(e){return typeof e=="object"?e!==null:pue(e)}});var bE=F((owe,Cx)=>{"use strict";m();T();N();var nD=ia(),mue=Aa(),Nue=function(e){return mue(e)?e:void 0};Cx.exports=function(e,t){return arguments.length<2?Nue(nD[e]):nD[e]&&nD[e][t]}});var Bx=F((dwe,Ux)=>{"use strict";m();T();N();var Tue=Oi();Ux.exports=Tue({}.isPrototypeOf)});var qx=F((Nwe,xx)=>{"use strict";m();T();N();var Eue=ia(),kx=Eue.navigator,Mx=kx&&kx.userAgent;xx.exports=Mx?String(Mx):""});var Yx=F((ywe,Qx)=>{"use strict";m();T();N();var Gx=ia(),rD=qx(),Vx=Gx.process,jx=Gx.Deno,Kx=Vx&&Vx.versions||jx&&jx.version,$x=Kx&&Kx.v8,Ra,AE;$x&&(Ra=$x.split("."),AE=Ra[0]>0&&Ra[0]<4?1:+(Ra[0]+Ra[1]));!AE&&rD&&(Ra=rD.match(/Edge\/(\d+)/),(!Ra||Ra[1]>=74)&&(Ra=rD.match(/Chrome\/(\d+)/),Ra&&(AE=+Ra[1])));Qx.exports=AE});var iD=F((vwe,zx)=>{"use strict";m();T();N();var Jx=Yx(),hue=Bs(),yue=ia(),Iue=yue.String;zx.exports=!!Object.getOwnPropertySymbols&&!hue(function(){var e=Symbol("symbol detection");return!Iue(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Jx&&Jx<41})});var aD=F((bwe,Hx)=>{"use strict";m();T();N();var gue=iD();Hx.exports=gue&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var sD=F((Fwe,Wx)=>{"use strict";m();T();N();var _ue=bE(),vue=Aa(),Sue=Bx(),Oue=aD(),Due=Object;Wx.exports=Oue?function(e){return typeof e=="symbol"}:function(e){var t=_ue("Symbol");return vue(t)&&Sue(t.prototype,Due(e))}});var Zx=F((Uwe,Xx)=>{"use strict";m();T();N();var bue=String;Xx.exports=function(e){try{return bue(e)}catch(t){return"Object"}}});var RE=F((xwe,eq)=>{"use strict";m();T();N();var Aue=Aa(),Rue=Zx(),Pue=TypeError;eq.exports=function(e){if(Aue(e))return e;throw new Pue(Rue(e)+" is not a function")}});var oD=F((Kwe,tq)=>{"use strict";m();T();N();var Fue=RE(),wue=ZO();tq.exports=function(e,t){var n=e[t];return wue(n)?void 0:Fue(n)}});var rq=F((Ywe,nq)=>{"use strict";m();T();N();var uD=Bc(),cD=Aa(),lD=fd(),Lue=TypeError;nq.exports=function(e,t){var n,r;if(t==="string"&&cD(n=e.toString)&&!lD(r=uD(n,e))||cD(n=e.valueOf)&&!lD(r=uD(n,e))||t!=="string"&&cD(n=e.toString)&&!lD(r=uD(n,e)))return r;throw new Lue("Can't convert object to primitive value")}});var aq=F((Wwe,iq)=>{"use strict";m();T();N();iq.exports=!1});var PE=F((tLe,oq)=>{"use strict";m();T();N();var sq=ia(),Cue=Object.defineProperty;oq.exports=function(e,t){try{Cue(sq,e,{value:t,configurable:!0,writable:!0})}catch(n){sq[e]=t}return t}});var FE=F((aLe,lq)=>{"use strict";m();T();N();var Uue=aq(),Bue=ia(),kue=PE(),uq="__core-js_shared__",cq=lq.exports=Bue[uq]||kue(uq,{});(cq.versions||(cq.versions=[])).push({version:"3.41.0",mode:Uue?"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 dD=F((cLe,fq)=>{"use strict";m();T();N();var dq=FE();fq.exports=function(e,t){return dq[e]||(dq[e]=t||{})}});var mq=F((pLe,pq)=>{"use strict";m();T();N();var Mue=eD(),xue=Object;pq.exports=function(e){return xue(Mue(e))}});var Cu=F((ELe,Nq)=>{"use strict";m();T();N();var que=Oi(),Vue=mq(),jue=que({}.hasOwnProperty);Nq.exports=Object.hasOwn||function(t,n){return jue(Vue(t),n)}});var fD=F((gLe,Tq)=>{"use strict";m();T();N();var Kue=Oi(),$ue=0,Gue=Math.random(),Que=Kue(1 .toString);Tq.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+Que(++$ue+Gue,36)}});var yq=F((OLe,hq)=>{"use strict";m();T();N();var Yue=ia(),Jue=dD(),Eq=Cu(),zue=fD(),Hue=iD(),Wue=aD(),pd=Yue.Symbol,pD=Jue("wks"),Xue=Wue?pd.for||pd:pd&&pd.withoutSetter||zue;hq.exports=function(e){return Eq(pD,e)||(pD[e]=Hue&&Eq(pd,e)?pd[e]:Xue("Symbol."+e)),pD[e]}});var vq=F((RLe,_q)=>{"use strict";m();T();N();var Zue=Bc(),Iq=fd(),gq=sD(),ece=oD(),tce=rq(),nce=yq(),rce=TypeError,ice=nce("toPrimitive");_q.exports=function(e,t){if(!Iq(e)||gq(e))return e;var n=ece(e,ice),r;if(n){if(t===void 0&&(t="default"),r=Zue(n,e,t),!Iq(r)||gq(r))return r;throw new rce("Can't convert object to primitive value")}return t===void 0&&(t="number"),tce(e,t)}});var mD=F((LLe,Sq)=>{"use strict";m();T();N();var ace=vq(),sce=sD();Sq.exports=function(e){var t=ace(e,"string");return sce(t)?t:t+""}});var bq=F((kLe,Dq)=>{"use strict";m();T();N();var oce=ia(),Oq=fd(),ND=oce.document,uce=Oq(ND)&&Oq(ND.createElement);Dq.exports=function(e){return uce?ND.createElement(e):{}}});var TD=F((VLe,Aq)=>{"use strict";m();T();N();var cce=Lu(),lce=Bs(),dce=bq();Aq.exports=!cce&&!lce(function(){return Object.defineProperty(dce("div"),"a",{get:function(){return 7}}).a!==7})});var ED=F(Pq=>{"use strict";m();T();N();var fce=Lu(),pce=Bc(),mce=yx(),Nce=HO(),Tce=DE(),Ece=mD(),hce=Cu(),yce=TD(),Rq=Object.getOwnPropertyDescriptor;Pq.f=fce?Rq:function(t,n){if(t=Tce(t),n=Ece(n),yce)try{return Rq(t,n)}catch(r){}if(hce(t,n))return Nce(!pce(mce.f,t,n),t[n])}});var wq=F((zLe,Fq)=>{"use strict";m();T();N();var Ice=Lu(),gce=Bs();Fq.exports=Ice&&gce(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var Tp=F((ZLe,Lq)=>{"use strict";m();T();N();var _ce=fd(),vce=String,Sce=TypeError;Lq.exports=function(e){if(_ce(e))return e;throw new Sce(vce(e)+" is not an object")}});var LE=F(Uq=>{"use strict";m();T();N();var Oce=Lu(),Dce=TD(),bce=wq(),wE=Tp(),Cq=mD(),Ace=TypeError,hD=Object.defineProperty,Rce=Object.getOwnPropertyDescriptor,yD="enumerable",ID="configurable",gD="writable";Uq.f=Oce?bce?function(t,n,r){if(wE(t),n=Cq(n),wE(r),typeof t=="function"&&n==="prototype"&&"value"in r&&gD in r&&!r[gD]){var i=Rce(t,n);i&&i[gD]&&(t[n]=r.value,r={configurable:ID in r?r[ID]:i[ID],enumerable:yD in r?r[yD]:i[yD],writable:!1})}return hD(t,n,r)}:hD:function(t,n,r){if(wE(t),n=Cq(n),wE(r),Dce)try{return hD(t,n,r)}catch(i){}if("get"in r||"set"in r)throw new Ace("Accessors not supported");return"value"in r&&(t[n]=r.value),t}});var _D=F((oCe,Bq)=>{"use strict";m();T();N();var Pce=Lu(),Fce=LE(),wce=HO();Bq.exports=Pce?function(e,t,n){return Fce.f(e,t,wce(1,n))}:function(e,t,n){return e[t]=n,e}});var xq=F((dCe,Mq)=>{"use strict";m();T();N();var vD=Lu(),Lce=Cu(),kq=Function.prototype,Cce=vD&&Object.getOwnPropertyDescriptor,SD=Lce(kq,"name"),Uce=SD&&function(){}.name==="something",Bce=SD&&(!vD||vD&&Cce(kq,"name").configurable);Mq.exports={EXISTS:SD,PROPER:Uce,CONFIGURABLE:Bce}});var Vq=F((NCe,qq)=>{"use strict";m();T();N();var kce=Oi(),Mce=Aa(),OD=FE(),xce=kce(Function.toString);Mce(OD.inspectSource)||(OD.inspectSource=function(e){return xce(e)});qq.exports=OD.inspectSource});var $q=F((yCe,Kq)=>{"use strict";m();T();N();var qce=ia(),Vce=Aa(),jq=qce.WeakMap;Kq.exports=Vce(jq)&&/native code/.test(String(jq))});var Yq=F((vCe,Qq)=>{"use strict";m();T();N();var jce=dD(),Kce=fD(),Gq=jce("keys");Qq.exports=function(e){return Gq[e]||(Gq[e]=Kce(e))}});var DD=F((bCe,Jq)=>{"use strict";m();T();N();Jq.exports={}});var Xq=F((FCe,Wq)=>{"use strict";m();T();N();var $ce=$q(),Hq=ia(),Gce=fd(),Qce=_D(),bD=Cu(),AD=FE(),Yce=Yq(),Jce=DD(),zq="Object already initialized",RD=Hq.TypeError,zce=Hq.WeakMap,CE,Ep,UE,Hce=function(e){return UE(e)?Ep(e):CE(e,{})},Wce=function(e){return function(t){var n;if(!Gce(t)||(n=Ep(t)).type!==e)throw new RD("Incompatible receiver, "+e+" required");return n}};$ce||AD.state?(Pa=AD.state||(AD.state=new zce),Pa.get=Pa.get,Pa.has=Pa.has,Pa.set=Pa.set,CE=function(e,t){if(Pa.has(e))throw new RD(zq);return t.facade=e,Pa.set(e,t),t},Ep=function(e){return Pa.get(e)||{}},UE=function(e){return Pa.has(e)}):(kc=Yce("state"),Jce[kc]=!0,CE=function(e,t){if(bD(e,kc))throw new RD(zq);return t.facade=e,Qce(e,kc,t),t},Ep=function(e){return bD(e,kc)?e[kc]:{}},UE=function(e){return bD(e,kc)});var Pa,kc;Wq.exports={set:CE,get:Ep,has:UE,enforce:Hce,getterFor:Wce}});var n1=F((UCe,t1)=>{"use strict";m();T();N();var FD=Oi(),Xce=Bs(),Zce=Aa(),BE=Cu(),PD=Lu(),ele=xq().CONFIGURABLE,tle=Vq(),e1=Xq(),nle=e1.enforce,rle=e1.get,Zq=String,kE=Object.defineProperty,ile=FD("".slice),ale=FD("".replace),sle=FD([].join),ole=PD&&!Xce(function(){return kE(function(){},"length",{value:8}).length!==8}),ule=String(String).split("String"),cle=t1.exports=function(e,t,n){ile(Zq(t),0,7)==="Symbol("&&(t="["+ale(Zq(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!BE(e,"name")||ele&&e.name!==t)&&(PD?kE(e,"name",{value:t,configurable:!0}):e.name=t),ole&&n&&BE(n,"arity")&&e.length!==n.arity&&kE(e,"length",{value:n.arity});try{n&&BE(n,"constructor")&&n.constructor?PD&&kE(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(i){}var r=nle(e);return BE(r,"source")||(r.source=sle(ule,typeof t=="string"?t:"")),e};Function.prototype.toString=cle(function(){return Zce(this)&&rle(this).source||tle(this)},"toString")});var i1=F((xCe,r1)=>{"use strict";m();T();N();var lle=Aa(),dle=LE(),fle=n1(),ple=PE();r1.exports=function(e,t,n,r){r||(r={});var i=r.enumerable,a=r.name!==void 0?r.name:t;if(lle(n)&&fle(n,a,r),r.global)i?e[t]=n:ple(t,n);else{try{r.unsafe?e[t]&&(i=!0):delete e[t]}catch(o){}i?e[t]=n:dle.f(e,t,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return e}});var s1=F((KCe,a1)=>{"use strict";m();T();N();var mle=Math.ceil,Nle=Math.floor;a1.exports=Math.trunc||function(t){var n=+t;return(n>0?Nle:mle)(n)}});var ME=F((YCe,o1)=>{"use strict";m();T();N();var Tle=s1();o1.exports=function(e){var t=+e;return t!==t||t===0?0:Tle(t)}});var c1=F((WCe,u1)=>{"use strict";m();T();N();var Ele=ME(),hle=Math.max,yle=Math.min;u1.exports=function(e,t){var n=Ele(e);return n<0?hle(n+t,0):yle(n,t)}});var d1=F((tUe,l1)=>{"use strict";m();T();N();var Ile=ME(),gle=Math.min;l1.exports=function(e){var t=Ile(e);return t>0?gle(t,9007199254740991):0}});var p1=F((aUe,f1)=>{"use strict";m();T();N();var _le=d1();f1.exports=function(e){return _le(e.length)}});var T1=F((cUe,N1)=>{"use strict";m();T();N();var vle=DE(),Sle=c1(),Ole=p1(),m1=function(e){return function(t,n,r){var i=vle(t),a=Ole(i);if(a===0)return!e&&-1;var o=Sle(r,a),u;if(e&&n!==n){for(;a>o;)if(u=i[o++],u!==u)return!0}else for(;a>o;o++)if((e||o in i)&&i[o]===n)return e||o||0;return!e&&-1}};N1.exports={includes:m1(!0),indexOf:m1(!1)}});var y1=F((pUe,h1)=>{"use strict";m();T();N();var Dle=Oi(),wD=Cu(),ble=DE(),Ale=T1().indexOf,Rle=DD(),E1=Dle([].push);h1.exports=function(e,t){var n=ble(e),r=0,i=[],a;for(a in n)!wD(Rle,a)&&wD(n,a)&&E1(i,a);for(;t.length>r;)wD(n,a=t[r++])&&(~Ale(i,a)||E1(i,a));return i}});var g1=F((EUe,I1)=>{"use strict";m();T();N();I1.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var v1=F(_1=>{"use strict";m();T();N();var Ple=y1(),Fle=g1(),wle=Fle.concat("length","prototype");_1.f=Object.getOwnPropertyNames||function(t){return Ple(t,wle)}});var O1=F(S1=>{"use strict";m();T();N();S1.f=Object.getOwnPropertySymbols});var b1=F((RUe,D1)=>{"use strict";m();T();N();var Lle=bE(),Cle=Oi(),Ule=v1(),Ble=O1(),kle=Tp(),Mle=Cle([].concat);D1.exports=Lle("Reflect","ownKeys")||function(t){var n=Ule.f(kle(t)),r=Ble.f;return r?Mle(n,r(t)):n}});var P1=F((LUe,R1)=>{"use strict";m();T();N();var A1=Cu(),xle=b1(),qle=ED(),Vle=LE();R1.exports=function(e,t,n){for(var r=xle(t),i=Vle.f,a=qle.f,o=0;o{"use strict";m();T();N();var jle=Bs(),Kle=Aa(),$le=/#|\.prototype\./,hp=function(e,t){var n=Qle[Gle(e)];return n===Jle?!0:n===Yle?!1:Kle(t)?jle(t):!!t},Gle=hp.normalize=function(e){return String(e).replace($le,".").toLowerCase()},Qle=hp.data={},Yle=hp.NATIVE="N",Jle=hp.POLYFILL="P";F1.exports=hp});var LD=F((VUe,L1)=>{"use strict";m();T();N();var xE=ia(),zle=ED().f,Hle=_D(),Wle=i1(),Xle=PE(),Zle=P1(),ede=w1();L1.exports=function(e,t){var n=e.target,r=e.global,i=e.stat,a,o,u,l,d,p;if(r?o=xE:i?o=xE[n]||Xle(n,{}):o=xE[n]&&xE[n].prototype,o)for(u in t){if(d=t[u],e.dontCallGetSet?(p=zle(o,u),l=p&&p.value):l=o[u],a=ede(r?u:n+(i?".":"#")+u,e.forced),!a&&l!==void 0){if(typeof d==typeof l)continue;Zle(d,l)}(e.sham||l&&l.sham)&&Hle(d,"sham",!0),Wle(o,u,d,e)}}});var yp=F((GUe,C1)=>{"use strict";m();T();N();var CD=Oi(),qE=Set.prototype;C1.exports={Set,add:CD(qE.add),has:CD(qE.has),remove:CD(qE.delete),proto:qE}});var UD=F((zUe,U1)=>{"use strict";m();T();N();var tde=yp().has;U1.exports=function(e){return tde(e),e}});var k1=F((ZUe,B1)=>{"use strict";m();T();N();var nde=Oi(),rde=RE();B1.exports=function(e,t,n){try{return nde(rde(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(r){}}});var BD=F((rBe,M1)=>{"use strict";m();T();N();var ide=k1(),ade=yp();M1.exports=ide(ade.proto,"size","get")||function(e){return e.size}});var kD=F((oBe,x1)=>{"use strict";m();T();N();var sde=Bc();x1.exports=function(e,t,n){for(var r=n?e:e.iterator,i=e.next,a,o;!(a=sde(i,r)).done;)if(o=t(a.value),o!==void 0)return o}});var G1=F((dBe,$1)=>{"use strict";m();T();N();var q1=Oi(),ode=kD(),V1=yp(),ude=V1.Set,j1=V1.proto,cde=q1(j1.forEach),K1=q1(j1.keys),lde=K1(new ude).next;$1.exports=function(e,t,n){return n?ode({iterator:K1(e),next:lde},t):cde(e,t)}});var Y1=F((NBe,Q1)=>{"use strict";m();T();N();Q1.exports=function(e){return{iterator:e,next:e.next,done:!1}}});var MD=F((yBe,Z1)=>{"use strict";m();T();N();var J1=RE(),W1=Tp(),z1=Bc(),dde=ME(),fde=Y1(),H1="Invalid size",pde=RangeError,mde=TypeError,Nde=Math.max,X1=function(e,t){this.set=e,this.size=Nde(t,0),this.has=J1(e.has),this.keys=J1(e.keys)};X1.prototype={getIterator:function(){return fde(W1(z1(this.keys,this.set)))},includes:function(e){return z1(this.has,this.set,e)}};Z1.exports=function(e){W1(e);var t=+e.size;if(t!==t)throw new mde(H1);var n=dde(t);if(n<0)throw new pde(H1);return new X1(e,n)}});var tV=F((vBe,eV)=>{"use strict";m();T();N();var Tde=UD(),Ede=BD(),hde=G1(),yde=MD();eV.exports=function(t){var n=Tde(this),r=yde(t);return Ede(n)>r.size?!1:hde(n,function(i){if(!r.includes(i))return!1},!0)!==!1}});var xD=F((bBe,iV)=>{"use strict";m();T();N();var Ide=bE(),nV=function(e){return{size:e,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}},rV=function(e){return{size:e,has:function(){return!0},keys:function(){throw new Error("e")}}};iV.exports=function(e,t){var n=Ide("Set");try{new n()[e](nV(0));try{return new n()[e](nV(-1)),!1}catch(i){if(!t)return!0;try{return new n()[e](rV(-1/0)),!1}catch(a){var r=new n;return r.add(1),r.add(2),t(r[e](rV(1/0)))}}}catch(i){return!1}}});var aV=F(()=>{"use strict";m();T();N();var gde=LD(),_de=tV(),vde=xD(),Sde=!vde("isSubsetOf",function(e){return e});gde({target:"Set",proto:!0,real:!0,forced:Sde},{isSubsetOf:_de})});var sV=F(()=>{"use strict";m();T();N();aV()});var cV=F((VBe,uV)=>{"use strict";m();T();N();var Ode=Bc(),oV=Tp(),Dde=oD();uV.exports=function(e,t,n){var r,i;oV(e);try{if(r=Dde(e,"return"),!r){if(t==="throw")throw n;return n}r=Ode(r,e)}catch(a){i=!0,r=a}if(t==="throw")throw n;if(i)throw r;return oV(r),n}});var dV=F((GBe,lV)=>{"use strict";m();T();N();var bde=UD(),Ade=yp().has,Rde=BD(),Pde=MD(),Fde=kD(),wde=cV();lV.exports=function(t){var n=bde(this),r=Pde(t);if(Rde(n){"use strict";m();T();N();var Lde=LD(),Cde=dV(),Ude=xD(),Bde=!Ude("isSupersetOf",function(e){return!e});Lde({target:"Set",proto:!0,real:!0,forced:Bde},{isSupersetOf:Cde})});var pV=F(()=>{"use strict";m();T();N();fV()});var Ip=F(Pn=>{"use strict";m();T();N();Object.defineProperty(Pn,"__esModule",{value:!0});Pn.subtractSet=Mde;Pn.mapToArrayOfValues=xde;Pn.kindToConvertedTypeString=qde;Pn.fieldDatasToSimpleFieldDatas=Vde;Pn.isNodeLeaf=jde;Pn.newEntityInterfaceFederationData=Kde;Pn.upsertEntityInterfaceFederationData=$de;Pn.upsertEntityData=Qde;Pn.updateEntityData=mV;Pn.newFieldAuthorizationData=Yde;Pn.newAuthorizationData=Jde;Pn.addScopes=qD;Pn.mergeRequiredScopesByAND=KE;Pn.mergeRequiredScopesByOR=VD;Pn.upsertFieldAuthorizationData=NV;Pn.upsertAuthorizationData=Wde;Pn.upsertAuthorizationConfiguration=Xde;Pn.isObjectNodeKind=Zde;Pn.isCompositeOutputNodeKind=efe;Pn.isObjectDefinitionData=tfe;Pn.getNodeCoords=nfe;var Yt=Se(),li=Xn(),VE=kr(),jE=bu();sV();pV();var kde=dd();function Mde(e,t){for(let n of e)t.delete(n)}function xde(e){let t=[];for(let n of e.values())t.push(n);return t}function qde(e){switch(e){case Yt.Kind.BOOLEAN:return li.BOOLEAN_SCALAR;case Yt.Kind.ENUM:case Yt.Kind.ENUM_TYPE_DEFINITION:case Yt.Kind.ENUM_TYPE_EXTENSION:return li.ENUM;case Yt.Kind.ENUM_VALUE_DEFINITION:return li.ENUM_VALUE;case Yt.Kind.FIELD_DEFINITION:return li.FIELD;case Yt.Kind.FLOAT:return li.FLOAT_SCALAR;case Yt.Kind.INPUT_OBJECT_TYPE_DEFINITION:case Yt.Kind.INPUT_OBJECT_TYPE_EXTENSION:return li.INPUT_OBJECT;case Yt.Kind.INPUT_VALUE_DEFINITION:return li.INPUT_VALUE;case Yt.Kind.INT:return li.INT_SCALAR;case Yt.Kind.INTERFACE_TYPE_DEFINITION:case Yt.Kind.INTERFACE_TYPE_EXTENSION:return li.INTERFACE;case Yt.Kind.NULL:return li.NULL;case Yt.Kind.OBJECT:case Yt.Kind.OBJECT_TYPE_DEFINITION:case Yt.Kind.OBJECT_TYPE_EXTENSION:return li.OBJECT;case Yt.Kind.STRING:return li.STRING_SCALAR;case Yt.Kind.SCALAR_TYPE_DEFINITION:case Yt.Kind.SCALAR_TYPE_EXTENSION:return li.SCALAR;case Yt.Kind.UNION_TYPE_DEFINITION:case Yt.Kind.UNION_TYPE_EXTENSION:return li.UNION;default:return e}}function Vde(e){let t=[];for(let{name:n,namedTypeName:r}of e)t.push({name:n,namedTypeName:r});return t}function jde(e){if(!e)return!0;switch(e){case Yt.Kind.OBJECT_TYPE_DEFINITION:case Yt.Kind.INTERFACE_TYPE_DEFINITION:case Yt.Kind.UNION_TYPE_DEFINITION:return!1;default:return!0}}function Kde(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 $de(e,t,n){(0,VE.addIterableToSet)({source:t.concreteTypeNames,target:e.concreteTypeNames}),e.subgraphDataByTypeName.set(n,t),e.fieldDatasBySubgraphName.set(n,t.fieldDatas),(0,VE.addIterableToSet)({source:t.interfaceFieldNames,target:e.interfaceFieldNames}),(0,VE.addIterableToSet)({source:t.interfaceObjectFieldNames,target:e.interfaceObjectFieldNames}),t.isInterfaceObject&&e.interfaceObjectSubgraphNames.add(n)}function Gde({keyFieldSetDataByFieldSet:e,subgraphName:t,typeName:n}){let r=new Map([[t,e]]),i=new Map;for(let[a,{documentNode:o,isUnresolvable:u}]of e)u||i.set(a,o);return{keyFieldSetDatasBySubgraphName:r,documentNodeByKeyFieldSet:i,keyFieldSets:new Set,subgraphNames:new Set([t]),typeName:n}}function Qde({entityDataByTypeName:e,keyFieldSetDataByFieldSet:t,subgraphName:n,typeName:r}){let i=e.get(r);i?mV({entityData:i,keyFieldSetDataByFieldSet:t,subgraphName:n}):e.set(r,Gde({keyFieldSetDataByFieldSet:t,subgraphName:n,typeName:r}))}function mV({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 Yde(e){return{fieldName:e,inheritedData:{requiredScopes:[],requiredScopesByOR:[],requiresAuthentication:!1},originalData:{requiredScopes:[],requiresAuthentication:!1}}}function Jde(e){return{fieldAuthDataByFieldName:new Map,requiredScopes:[],requiredScopesByOR:[],requiresAuthentication:!1,typeName:e}}function qD(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 KE(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,VE.addSets)(r,i);qD(n,a)}return n}function VD(e,t){for(let n of t)qD(e,n);return e.length<=jE.MAX_OR_SCOPES}function NV(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),!VD(r.inheritedData.requiredScopesByOR,t.inheritedData.requiredScopes)||r.inheritedData.requiredScopes.length*t.inheritedData.requiredScopes.length>jE.MAX_OR_SCOPES||r.originalData.requiredScopes.length*t.originalData.requiredScopes.length>jE.MAX_OR_SCOPES?!1:(r.inheritedData.requiredScopes=KE(r.inheritedData.requiredScopes,t.inheritedData.requiredScopes),r.originalData.requiredScopes=KE(r.originalData.requiredScopes,t.originalData.requiredScopes),!0)):(e.set(n,TV(t)),!0)}function zde(e){let t=new Map;for(let[n,r]of e)t.set(n,TV(r));return t}function TV(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 Hde(e){return{fieldAuthDataByFieldName:zde(e.fieldAuthDataByFieldName),requiredScopes:[...e.requiredScopes],requiredScopesByOR:[...e.requiredScopes],requiresAuthentication:e.requiresAuthentication,typeName:e.typeName}}function Wde(e,t,n){let r=e.get(t.typeName);if(!r){e.set(t.typeName,Hde(t));return}r.requiresAuthentication||(r.requiresAuthentication=t.requiresAuthentication),!VD(r.requiredScopesByOR,t.requiredScopes)||r.requiredScopes.length*t.requiredScopes.length>jE.MAX_OR_SCOPES?n.add(t.typeName):r.requiredScopes=KE(r.requiredScopes,t.requiredScopes);for(let[i,a]of t.fieldAuthDataByFieldName)NV(r.fieldAuthDataByFieldName,a)||n.add(`${t.typeName}.${i}`)}function Xde(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(u=>[...u]),o.requiredScopesByOR=i.inheritedData.requiredScopesByOR.map(u=>[...u])):e.set(a,{argumentNames:[],typeName:n,fieldName:r,requiresAuthentication:i.inheritedData.requiresAuthentication,requiredScopes:i.inheritedData.requiredScopes.map(u=>[...u]),requiredScopesByOR:i.inheritedData.requiredScopesByOR.map(u=>[...u])})}}function Zde(e){return e===Yt.Kind.OBJECT_TYPE_DEFINITION||e===Yt.Kind.OBJECT_TYPE_EXTENSION}function efe(e){return kde.COMPOSITE_OUTPUT_NODE_KINDS.has(e)}function tfe(e){return e?e.kind===Yt.Kind.OBJECT_TYPE_DEFINITION:!1}function nfe(e){switch(e.kind){case Yt.Kind.ARGUMENT:case Yt.Kind.FIELD_DEFINITION:case Yt.Kind.INPUT_VALUE_DEFINITION:case Yt.Kind.ENUM_VALUE_DEFINITION:return e.federatedCoords;default:return e.name}}});var jD=F(xe=>{"use strict";m();T();N();Object.defineProperty(xe,"__esModule",{value:!0});xe.TAG_DEFINITION_DATA=xe.SUBSCRIPTION_FILTER_DEFINITION_DATA=xe.SHAREABLE_DEFINITION_DATA=xe.SPECIFIED_BY_DEFINITION_DATA=xe.SEMANTIC_NON_NULL_DATA=xe.REQUIRES_SCOPES_DEFINITION_DATA=xe.REQUIRE_FETCH_REASONS_DEFINITION_DATA=xe.REDIS_SUBSCRIBE_DEFINITION_DATA=xe.REDIS_PUBLISH_DEFINITION_DATA=xe.REQUIRES_DEFINITION_DATA=xe.PROVIDES_DEFINITION_DATA=xe.LIST_SIZE_DEFINITION_DATA=xe.LINK_DEFINITION_DATA=xe.KEY_DEFINITION_DATA=xe.OVERRIDE_DEFINITION_DATA=xe.ONE_OF_DEFINITION_DATA=xe.NATS_SUBSCRIBE_DEFINITION_DATA=xe.NATS_REQUEST_DEFINITION_DATA=xe.NATS_PUBLISH_DEFINITION_DATA=xe.KAFKA_SUBSCRIBE_DEFINITION_DATA=xe.KAFKA_PUBLISH_DEFINITION_DATA=xe.INTERFACE_OBJECT_DEFINITION_DATA=xe.INACCESSIBLE_DEFINITION_DATA=xe.EXTERNAL_DEFINITION_DATA=xe.EXTENDS_DEFINITION_DATA=xe.DEPRECATED_DEFINITION_DATA=xe.COST_DEFINITION_DATA=xe.CONNECT_FIELD_RESOLVER_DEFINITION_DATA=xe.CONFIGURE_CHILD_DESCRIPTIONS_DEFINITION_DATA=xe.CONFIGURE_DESCRIPTION_DEFINITION_DATA=xe.COMPOSE_DIRECTIVE_DEFINITION_DATA=xe.AUTHENTICATED_DEFINITION_DATA=void 0;var Or=Br(),bt=Se(),k=Xn(),Jt=Yf(),Fn=gT();xe.AUTHENTICATED_DEFINITION_DATA={argumentTypeNodeByName:new Map([]),isRepeatable:!1,locations:new Set([k.ENUM_UPPER,k.FIELD_DEFINITION_UPPER,k.INTERFACE_UPPER,k.OBJECT_UPPER,k.SCALAR_UPPER]),name:k.AUTHENTICATED,node:Jt.AUTHENTICATED_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set};xe.COMPOSE_DIRECTIVE_DEFINITION_DATA={argumentTypeNodeByName:new Map([[k.NAME,{name:k.NAME,typeNode:Fn.REQUIRED_STRING_TYPE_NODE}]]),isRepeatable:!0,locations:new Set([k.SCHEMA_UPPER]),name:k.COMPOSE_DIRECTIVE,node:Jt.COMPOSE_DIRECTIVE_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set([k.NAME])};xe.CONFIGURE_DESCRIPTION_DEFINITION_DATA={argumentTypeNodeByName:new Map([[k.PROPAGATE,{name:k.PROPAGATE,typeNode:{kind:bt.Kind.NON_NULL_TYPE,type:(0,Or.stringToNamedTypeNode)(k.BOOLEAN_SCALAR)},defaultValue:{kind:bt.Kind.BOOLEAN,value:!0}}],[k.DESCRIPTION_OVERRIDE,{name:k.DESCRIPTION_OVERRIDE,typeNode:(0,Or.stringToNamedTypeNode)(k.STRING_SCALAR)}]]),isRepeatable:!1,locations:new Set([k.ARGUMENT_DEFINITION_UPPER,k.ENUM_UPPER,k.ENUM_VALUE_UPPER,k.FIELD_DEFINITION_UPPER,k.INTERFACE_UPPER,k.INPUT_OBJECT_UPPER,k.INPUT_FIELD_DEFINITION_UPPER,k.OBJECT_UPPER,k.SCALAR_UPPER,k.SCHEMA_UPPER,k.UNION_UPPER]),name:k.CONFIGURE_DESCRIPTION,node:Jt.CONFIGURE_DESCRIPTION_DEFINITION,optionalArgumentNames:new Set([k.PROPAGATE,k.DESCRIPTION_OVERRIDE]),requiredArgumentNames:new Set};xe.CONFIGURE_CHILD_DESCRIPTIONS_DEFINITION_DATA={argumentTypeNodeByName:new Map([[k.PROPAGATE,{name:k.PROPAGATE,typeNode:{kind:bt.Kind.NON_NULL_TYPE,type:(0,Or.stringToNamedTypeNode)(k.BOOLEAN_SCALAR)},defaultValue:{kind:bt.Kind.BOOLEAN,value:!0}}]]),isRepeatable:!1,locations:new Set([k.ENUM_UPPER,k.INPUT_OBJECT_UPPER,k.INTERFACE_UPPER,k.OBJECT_UPPER]),name:k.CONFIGURE_CHILD_DESCRIPTIONS,node:Jt.CONFIGURE_CHILD_DESCRIPTIONS_DEFINITION,optionalArgumentNames:new Set([k.PROPAGATE]),requiredArgumentNames:new Set};xe.CONNECT_FIELD_RESOLVER_DEFINITION_DATA={argumentTypeNodeByName:new Map([[k.CONTEXT,{name:k.CONTEXT,typeNode:Fn.REQUIRED_FIELDSET_TYPE_NODE}]]),isRepeatable:!1,locations:new Set([k.FIELD_DEFINITION_UPPER]),name:k.CONNECT_FIELD_RESOLVER,node:Jt.CONNECT_FIELD_RESOLVER_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set([k.CONTEXT])};xe.COST_DEFINITION_DATA={argumentTypeNodeByName:new Map([[k.WEIGHT,{name:k.WEIGHT,typeNode:{kind:bt.Kind.NON_NULL_TYPE,type:(0,Or.stringToNamedTypeNode)(k.INT_SCALAR)}}]]),isRepeatable:!1,locations:new Set([k.ARGUMENT_DEFINITION_UPPER,k.ENUM_UPPER,k.FIELD_DEFINITION_UPPER,k.INPUT_FIELD_DEFINITION_UPPER,k.OBJECT_UPPER,k.SCALAR_UPPER]),name:k.COST,node:Jt.COST_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set([k.WEIGHT])};xe.DEPRECATED_DEFINITION_DATA={argumentTypeNodeByName:new Map([[k.REASON,{name:k.REASON,typeNode:(0,Or.stringToNamedTypeNode)(k.STRING_SCALAR),defaultValue:{kind:bt.Kind.STRING,value:bt.DEFAULT_DEPRECATION_REASON}}]]),isRepeatable:!1,locations:new Set([k.ARGUMENT_DEFINITION_UPPER,k.ENUM_VALUE_UPPER,k.FIELD_DEFINITION_UPPER,k.INPUT_FIELD_DEFINITION_UPPER]),name:k.DEPRECATED,node:Jt.DEPRECATED_DEFINITION,optionalArgumentNames:new Set([k.REASON]),requiredArgumentNames:new Set};xe.EXTENDS_DEFINITION_DATA={argumentTypeNodeByName:new Map,isRepeatable:!1,locations:new Set([k.INTERFACE_UPPER,k.OBJECT_UPPER]),name:k.EXTENDS,node:Jt.EXTENDS_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set};xe.EXTERNAL_DEFINITION_DATA={argumentTypeNodeByName:new Map,isRepeatable:!1,locations:new Set([k.FIELD_DEFINITION_UPPER,k.OBJECT_UPPER]),name:k.EXTERNAL,node:Jt.EXTERNAL_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set};xe.INACCESSIBLE_DEFINITION_DATA={argumentTypeNodeByName:new Map,isRepeatable:!1,locations:new Set([k.ARGUMENT_DEFINITION_UPPER,k.ENUM_UPPER,k.ENUM_VALUE_UPPER,k.FIELD_DEFINITION_UPPER,k.INPUT_FIELD_DEFINITION_UPPER,k.INPUT_OBJECT_UPPER,k.INTERFACE_UPPER,k.OBJECT_UPPER,k.SCALAR_UPPER,k.UNION_UPPER]),name:k.INACCESSIBLE,node:Jt.INACCESSIBLE_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set};xe.INTERFACE_OBJECT_DEFINITION_DATA={argumentTypeNodeByName:new Map,isRepeatable:!1,locations:new Set([k.OBJECT_UPPER]),name:k.INTERFACE_OBJECT,node:Jt.INTERFACE_OBJECT_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set};xe.KAFKA_PUBLISH_DEFINITION_DATA={argumentTypeNodeByName:new Map([[k.TOPIC,{name:k.TOPIC,typeNode:Fn.REQUIRED_STRING_TYPE_NODE}],[k.PROVIDER_ID,{name:k.PROVIDER_ID,typeNode:Fn.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:bt.Kind.STRING,value:k.DEFAULT_EDFS_PROVIDER_ID}}]]),isRepeatable:!1,locations:new Set([k.FIELD_DEFINITION_UPPER]),name:k.EDFS_KAFKA_PUBLISH,node:Jt.EDFS_KAFKA_PUBLISH_DEFINITION,optionalArgumentNames:new Set([k.PROVIDER_ID]),requiredArgumentNames:new Set([k.TOPIC])};xe.KAFKA_SUBSCRIBE_DEFINITION_DATA={argumentTypeNodeByName:new Map([[k.TOPICS,{name:k.TOPICS,typeNode:{kind:bt.Kind.NON_NULL_TYPE,type:{kind:bt.Kind.LIST_TYPE,type:Fn.REQUIRED_STRING_TYPE_NODE}}}],[k.PROVIDER_ID,{name:k.PROVIDER_ID,typeNode:Fn.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:bt.Kind.STRING,value:k.DEFAULT_EDFS_PROVIDER_ID}}]]),isRepeatable:!1,locations:new Set([k.FIELD_DEFINITION_UPPER]),name:k.EDFS_KAFKA_SUBSCRIBE,node:Jt.EDFS_KAFKA_SUBSCRIBE_DEFINITION,optionalArgumentNames:new Set([k.PROVIDER_ID]),requiredArgumentNames:new Set([k.TOPICS])};xe.NATS_PUBLISH_DEFINITION_DATA={argumentTypeNodeByName:new Map([[k.SUBJECT,{name:k.SUBJECT,typeNode:Fn.REQUIRED_STRING_TYPE_NODE}],[k.PROVIDER_ID,{name:k.PROVIDER_ID,typeNode:Fn.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:bt.Kind.STRING,value:k.DEFAULT_EDFS_PROVIDER_ID}}]]),isRepeatable:!1,locations:new Set([k.FIELD_DEFINITION_UPPER]),name:k.EDFS_NATS_PUBLISH,node:Jt.EDFS_NATS_PUBLISH_DEFINITION,optionalArgumentNames:new Set([k.PROVIDER_ID]),requiredArgumentNames:new Set([k.SUBJECT])};xe.NATS_REQUEST_DEFINITION_DATA={argumentTypeNodeByName:new Map([[k.SUBJECT,{name:k.SUBJECT,typeNode:Fn.REQUIRED_STRING_TYPE_NODE}],[k.PROVIDER_ID,{name:k.PROVIDER_ID,typeNode:Fn.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:bt.Kind.STRING,value:k.DEFAULT_EDFS_PROVIDER_ID}}]]),isRepeatable:!1,locations:new Set([k.FIELD_DEFINITION_UPPER]),name:k.EDFS_NATS_REQUEST,node:Jt.EDFS_NATS_REQUEST_DEFINITION,optionalArgumentNames:new Set([k.PROVIDER_ID]),requiredArgumentNames:new Set([k.SUBJECT])};xe.NATS_SUBSCRIBE_DEFINITION_DATA={argumentTypeNodeByName:new Map([[k.SUBJECTS,{name:k.SUBJECTS,typeNode:{kind:bt.Kind.NON_NULL_TYPE,type:{kind:bt.Kind.LIST_TYPE,type:Fn.REQUIRED_STRING_TYPE_NODE}}}],[k.PROVIDER_ID,{name:k.PROVIDER_ID,typeNode:Fn.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:bt.Kind.STRING,value:k.DEFAULT_EDFS_PROVIDER_ID}}],[k.STREAM_CONFIGURATION,{name:k.STREAM_CONFIGURATION,typeNode:(0,Or.stringToNamedTypeNode)(k.EDFS_NATS_STREAM_CONFIGURATION)}]]),isRepeatable:!1,locations:new Set([k.FIELD_DEFINITION_UPPER]),name:k.EDFS_NATS_SUBSCRIBE,node:Jt.EDFS_NATS_SUBSCRIBE_DEFINITION,optionalArgumentNames:new Set([k.PROVIDER_ID,k.STREAM_CONFIGURATION]),requiredArgumentNames:new Set([k.SUBJECTS])};xe.ONE_OF_DEFINITION_DATA={argumentTypeNodeByName:new Map([]),isRepeatable:!1,locations:new Set([k.INPUT_OBJECT_UPPER]),name:k.ONE_OF,node:Jt.ONE_OF_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set};xe.OVERRIDE_DEFINITION_DATA={argumentTypeNodeByName:new Map([[k.FROM,{name:k.FROM,typeNode:Fn.REQUIRED_STRING_TYPE_NODE}]]),isRepeatable:!1,locations:new Set([k.FIELD_DEFINITION_UPPER]),name:k.OVERRIDE,node:Jt.OVERRIDE_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set([k.FROM])};xe.KEY_DEFINITION_DATA={argumentTypeNodeByName:new Map([[k.FIELDS,{name:k.FIELDS,typeNode:Fn.REQUIRED_FIELDSET_TYPE_NODE}],[k.RESOLVABLE,{name:k.RESOLVABLE,typeNode:(0,Or.stringToNamedTypeNode)(k.BOOLEAN_SCALAR),defaultValue:{kind:bt.Kind.BOOLEAN,value:!0}}]]),isRepeatable:!0,locations:new Set([k.INTERFACE_UPPER,k.OBJECT_UPPER]),name:k.KEY,node:Jt.KEY_DEFINITION,optionalArgumentNames:new Set([k.RESOLVABLE]),requiredArgumentNames:new Set([k.FIELDS])};xe.LINK_DEFINITION_DATA={argumentTypeNodeByName:new Map([[k.URL_LOWER,{name:k.URL_LOWER,typeNode:Fn.REQUIRED_STRING_TYPE_NODE}],[k.AS,{name:k.AS,typeNode:(0,Or.stringToNamedTypeNode)(k.STRING_SCALAR)}],[k.FOR,{name:k.FOR,typeNode:(0,Or.stringToNamedTypeNode)(k.LINK_PURPOSE)}],[k.IMPORT,{name:k.IMPORT,typeNode:{kind:bt.Kind.LIST_TYPE,type:(0,Or.stringToNamedTypeNode)(k.LINK_IMPORT)}}]]),isRepeatable:!0,locations:new Set([k.SCHEMA_UPPER]),name:k.LINK,node:Jt.LINK_DEFINITION,optionalArgumentNames:new Set([k.AS,k.FOR,k.IMPORT]),requiredArgumentNames:new Set([k.URL_LOWER])};xe.LIST_SIZE_DEFINITION_DATA={argumentTypeNodeByName:new Map([[k.ASSUMED_SIZE,{name:k.ASSUMED_SIZE,typeNode:(0,Or.stringToNamedTypeNode)(k.INT_SCALAR)}],[k.SLICING_ARGUMENTS,{name:k.SLICING_ARGUMENTS,typeNode:{kind:bt.Kind.LIST_TYPE,type:{kind:bt.Kind.NON_NULL_TYPE,type:(0,Or.stringToNamedTypeNode)(k.STRING_SCALAR)}}}],[k.SIZED_FIELDS,{name:k.SIZED_FIELDS,typeNode:{kind:bt.Kind.LIST_TYPE,type:{kind:bt.Kind.NON_NULL_TYPE,type:(0,Or.stringToNamedTypeNode)(k.STRING_SCALAR)}}}],[k.REQUIRE_ONE_SLICING_ARGUMENT,{name:k.REQUIRE_ONE_SLICING_ARGUMENT,typeNode:(0,Or.stringToNamedTypeNode)(k.BOOLEAN_SCALAR),defaultValue:{kind:bt.Kind.BOOLEAN,value:!0}}]]),isRepeatable:!1,locations:new Set([k.FIELD_DEFINITION_UPPER]),name:k.LIST_SIZE,node:Jt.LIST_SIZE_DEFINITION,optionalArgumentNames:new Set([k.ASSUMED_SIZE,k.SLICING_ARGUMENTS,k.SIZED_FIELDS,k.REQUIRE_ONE_SLICING_ARGUMENT]),requiredArgumentNames:new Set};xe.PROVIDES_DEFINITION_DATA={argumentTypeNodeByName:new Map([[k.FIELDS,{name:k.FIELDS,typeNode:Fn.REQUIRED_FIELDSET_TYPE_NODE}]]),isRepeatable:!1,locations:new Set([k.FIELD_DEFINITION_UPPER]),name:k.PROVIDES,node:Jt.PROVIDES_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set([k.FIELDS])};xe.REQUIRES_DEFINITION_DATA={argumentTypeNodeByName:new Map([[k.FIELDS,{name:k.FIELDS,typeNode:Fn.REQUIRED_FIELDSET_TYPE_NODE}]]),isRepeatable:!1,locations:new Set([k.FIELD_DEFINITION_UPPER]),name:k.REQUIRES,node:Jt.REQUIRES_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set([k.FIELDS])};xe.REDIS_PUBLISH_DEFINITION_DATA={argumentTypeNodeByName:new Map([[k.CHANNEL,{name:k.CHANNEL,typeNode:Fn.REQUIRED_STRING_TYPE_NODE}],[k.PROVIDER_ID,{name:k.PROVIDER_ID,typeNode:Fn.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:bt.Kind.STRING,value:k.DEFAULT_EDFS_PROVIDER_ID}}]]),isRepeatable:!1,locations:new Set([k.FIELD_DEFINITION_UPPER]),name:k.EDFS_REDIS_PUBLISH,node:Jt.EDFS_REDIS_PUBLISH_DEFINITION,optionalArgumentNames:new Set([k.PROVIDER_ID]),requiredArgumentNames:new Set([k.CHANNEL])};xe.REDIS_SUBSCRIBE_DEFINITION_DATA={argumentTypeNodeByName:new Map([[k.CHANNELS,{name:k.CHANNELS,typeNode:{kind:bt.Kind.NON_NULL_TYPE,type:{kind:bt.Kind.LIST_TYPE,type:Fn.REQUIRED_STRING_TYPE_NODE}}}],[k.PROVIDER_ID,{name:k.PROVIDER_ID,typeNode:Fn.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:bt.Kind.STRING,value:k.DEFAULT_EDFS_PROVIDER_ID}}]]),isRepeatable:!1,locations:new Set([k.FIELD_DEFINITION_UPPER]),name:k.EDFS_REDIS_SUBSCRIBE,node:Jt.EDFS_REDIS_SUBSCRIBE_DEFINITION,optionalArgumentNames:new Set([k.PROVIDER_ID]),requiredArgumentNames:new Set([k.CHANNELS])};xe.REQUIRE_FETCH_REASONS_DEFINITION_DATA={argumentTypeNodeByName:new Map,isRepeatable:!0,locations:new Set([k.FIELD_DEFINITION_UPPER,k.INTERFACE_UPPER,k.OBJECT_UPPER]),name:k.REQUIRE_FETCH_REASONS,node:Jt.REQUIRE_FETCH_REASONS_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set};xe.REQUIRES_SCOPES_DEFINITION_DATA={argumentTypeNodeByName:new Map([[k.SCOPES,{name:k.SCOPES,typeNode:{kind:bt.Kind.NON_NULL_TYPE,type:{kind:bt.Kind.LIST_TYPE,type:{kind:bt.Kind.NON_NULL_TYPE,type:{kind:bt.Kind.LIST_TYPE,type:{kind:bt.Kind.NON_NULL_TYPE,type:(0,Or.stringToNamedTypeNode)(k.SCOPE_SCALAR)}}}}}}]]),isRepeatable:!1,locations:new Set([k.ENUM_UPPER,k.FIELD_DEFINITION_UPPER,k.INTERFACE_UPPER,k.OBJECT_UPPER,k.SCALAR_UPPER]),name:k.REQUIRES_SCOPES,node:Jt.REQUIRES_SCOPES_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set([k.SCOPES])};xe.SEMANTIC_NON_NULL_DATA={argumentTypeNodeByName:new Map([[k.LEVELS,{name:k.LEVELS,typeNode:{kind:bt.Kind.NON_NULL_TYPE,type:{kind:bt.Kind.LIST_TYPE,type:{kind:bt.Kind.NON_NULL_TYPE,type:(0,Or.stringToNamedTypeNode)(k.INT_SCALAR)}}},defaultValue:{kind:bt.Kind.LIST,values:[{kind:bt.Kind.INT,value:"0"}]}}]]),isRepeatable:!1,locations:new Set([k.FIELD_DEFINITION_UPPER]),name:k.SEMANTIC_NON_NULL,node:Jt.SEMANTIC_NON_NULL_DEFINITION,optionalArgumentNames:new Set([k.LEVELS]),requiredArgumentNames:new Set};xe.SPECIFIED_BY_DEFINITION_DATA={argumentTypeNodeByName:new Map([[k.URL_LOWER,{name:k.URL_LOWER,typeNode:Fn.REQUIRED_STRING_TYPE_NODE}]]),isRepeatable:!1,locations:new Set([k.SCALAR_UPPER]),name:k.SPECIFIED_BY,node:Jt.SPECIFIED_BY_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set([k.URL_LOWER])};xe.SHAREABLE_DEFINITION_DATA={argumentTypeNodeByName:new Map,isRepeatable:!0,locations:new Set([k.FIELD_DEFINITION_UPPER,k.OBJECT_UPPER]),name:k.SHAREABLE,node:Jt.SHAREABLE_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set};xe.SUBSCRIPTION_FILTER_DEFINITION_DATA={argumentTypeNodeByName:new Map([[k.CONDITION,{name:k.CONDITION,typeNode:{kind:bt.Kind.NON_NULL_TYPE,type:(0,Or.stringToNamedTypeNode)(k.SUBSCRIPTION_FILTER_CONDITION)}}]]),isRepeatable:!1,locations:new Set([k.FIELD_DEFINITION_UPPER]),name:k.SUBSCRIPTION_FILTER,node:Jt.SUBSCRIPTION_FILTER_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set([k.CONDITION])};xe.TAG_DEFINITION_DATA={argumentTypeNodeByName:new Map([[k.NAME,{name:k.NAME,typeNode:Fn.REQUIRED_STRING_TYPE_NODE}]]),isRepeatable:!0,locations:new Set([k.ARGUMENT_DEFINITION_UPPER,k.ENUM_UPPER,k.ENUM_VALUE_UPPER,k.FIELD_DEFINITION_UPPER,k.INPUT_FIELD_DEFINITION_UPPER,k.INPUT_OBJECT_UPPER,k.INTERFACE_UPPER,k.OBJECT_UPPER,k.SCALAR_UPPER,k.UNION_UPPER]),name:k.TAG,node:Jt.TAG_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set([k.NAME])}});var gp=F(Fa=>{"use strict";m();T();N();Object.defineProperty(Fa,"__esModule",{value:!0});Fa.newFieldSetData=rfe;Fa.extractFieldSetValue=ife;Fa.getNormalizedFieldSet=afe;Fa.getInitialFieldCoordsPath=sfe;Fa.validateKeyFieldSets=ofe;Fa.getConditionalFieldSetDirectiveName=ufe;Fa.isNodeQuery=cfe;Fa.validateArgumentTemplateReferences=lfe;Fa.initializeDirectiveDefinitionDatas=dfe;var $n=Se(),EV=Br(),Dr=Yi(),hV=bu(),KD=Du(),zt=jD(),Tt=Xn(),ks=kr();function rfe(){return{provides:new Map,requires:new Map}}function ife(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!==Tt.FIELDS||i.value.kind!==$n.Kind.STRING||t.set(e,i.value.value)}function afe(e){return(0,$n.print)((0,EV.lexicographicallySortDocumentNode)(e)).replaceAll(/\s+/g," ").slice(2,-2)}function sfe(e,t){return e?[t]:[]}function ofe(e,t,n){let r=e.entityInterfaceDataByTypeName.get(t.name),i=t.name,a=[],o=r?void 0:e.internalGraph.addEntityDataNode(t.name),u=e.internalGraph.addOrUpdateNode(t.name),l=0;for(let[d,{documentNode:p,isUnresolvable:E,rawFieldSet:h}]of n){r&&(r.resolvable||(r.resolvable=!E)),l+=1;let v=[],R=[t],U=[],q=[],X=new Set,te=-1,ae=!0,me="",ye=!1;if((0,$n.visit)(p,{Argument:{enter(_e){return v.push((0,Dr.unexpectedArgumentErrorMessage)(h,`${R[te].name}.${me}`,_e.name.value)),$n.BREAK}},Field:{enter(_e){let Ee=R[te],Be=Ee.name;if(ae){let $t=`${Be}.${me}`,Ht=Ee.fieldDataByName.get(me);if(!Ht)return v.push((0,Dr.undefinedFieldInFieldSetErrorMessage)(h,$t,me)),$n.BREAK;let wn=(0,KD.getTypeNodeNamedTypeName)(Ht.node.type),Ar=e.parentDefinitionDataByTypeName.get(wn),zn=Ar?Ar.kind:$n.Kind.SCALAR_TYPE_DEFINITION;return v.push((0,Dr.invalidSelectionSetErrorMessage)(h,[$t],wn,(0,ks.kindToNodeType)(zn))),$n.BREAK}let Z=_e.name.value,ge=`${Be}.${Z}`;if(me=Z,Z===Tt.TYPENAME)return;let It=Ee.fieldDataByName.get(Z);if(!It)return v.push((0,Dr.undefinedFieldInFieldSetErrorMessage)(h,Be,Z)),$n.BREAK;if(It.argumentDataByName.size)return v.push((0,Dr.argumentsInKeyFieldSetErrorMessage)(h,ge)),$n.BREAK;if(U[te].has(Z))return v.push((0,Dr.duplicateFieldInFieldSetErrorMessage)(h,ge)),$n.BREAK;let sn=It.externalFieldDataBySubgraphName.get(e.subgraphName);if(!e.isSubgraphEventDrivenGraph&&(sn!=null&&sn.isDefinedExternal)&&!sn.isUnconditionallyProvided&&!e.conditionalFieldDataByCoords.get(ge)&&!e.options.ignoreExternalKeys){ye=!0;let Ht=u.headToTailEdges.get(Z);Ht&&(Ht.isExternal=!0)}(0,ks.getValueOrDefault)((0,ks.getValueOrDefault)(e.keyFieldSetsByEntityTypeNameByFieldCoords,ge,()=>new Map),i,()=>new Set).add(d),q.push(Z),It.isShareableBySubgraphName.set(e.subgraphName,!0),U[te].add(Z),(0,ks.getValueOrDefault)(e.keyFieldNamesByParentTypeName,Be,()=>new Set).add(Z);let Tn=(0,KD.getTypeNodeNamedTypeName)(It.node.type);if(hV.BASE_SCALARS.has(Tn)){X.add(q.join(Tt.LITERAL_PERIOD)),q.pop();return}let En=e.parentDefinitionDataByTypeName.get(Tn);if(!En)return v.push((0,Dr.unknownTypeInFieldSetErrorMessage)(h,ge,Tn)),$n.BREAK;if(En.kind===$n.Kind.OBJECT_TYPE_DEFINITION){ae=!0,R.push(En);return}if((0,EV.isKindAbstract)(En.kind))return v.push((0,Dr.abstractTypeInKeyFieldSetErrorMessage)(h,ge,Tn,(0,ks.kindToNodeType)(En.kind))),$n.BREAK;X.add(q.join(Tt.LITERAL_PERIOD)),q.pop()}},InlineFragment:{enter(){return v.push(Dr.inlineFragmentInFieldSetErrorMessage),$n.BREAK}},SelectionSet:{enter(){if(!ae){let _e=R[te],Be=`${_e.name}.${me}`;if(me===Tt.TYPENAME)return v.push((0,Dr.invalidSelectionSetDefinitionErrorMessage)(h,[Be],Tt.STRING_SCALAR,(0,ks.kindToNodeType)($n.Kind.SCALAR_TYPE_DEFINITION))),$n.BREAK;let Z=_e.fieldDataByName.get(me);if(!Z)return v.push((0,Dr.undefinedFieldInFieldSetErrorMessage)(h,Be,me)),$n.BREAK;let ge=(0,KD.getTypeNodeNamedTypeName)(Z.node.type),It=e.parentDefinitionDataByTypeName.get(ge),sn=It?It.kind:$n.Kind.SCALAR_TYPE_DEFINITION;return v.push((0,Dr.invalidSelectionSetDefinitionErrorMessage)(h,[Be],ge,(0,ks.kindToNodeType)(sn))),$n.BREAK}if(te+=1,ae=!1,te<0||te>=R.length)return v.push((0,Dr.unparsableFieldSetSelectionErrorMessage)(h,me)),$n.BREAK;U.push(new Set)},leave(){if(ae){let Ee=R[te].name,Be=R[te+1],Z=`${Ee}.${me}`;v.push((0,Dr.invalidSelectionSetErrorMessage)(h,[Z],Be.name,(0,ks.kindToNodeType)(Be.kind))),ae=!1}te-=1,R.pop(),U.pop()}}}),v.length>0){e.errors.push((0,Dr.invalidDirectiveError)(Tt.KEY,i,(0,ks.numberToOrdinal)(l),v));continue}a.push(M({fieldName:"",selectionSet:d},E?{disableEntityResolver:!0}:{})),u.satisfiedFieldSets.add(d),ye&&u.externalFieldSets.add(d),!E&&(o==null||o.addTargetSubgraphByFieldSet(d,e.subgraphName))}if(a.length>0)return a}function ufe(e){return e?Tt.PROVIDES:Tt.REQUIRES}function cfe(e,t){return e===Tt.QUERY||t===$n.OperationTypeNode.QUERY}function lfe(e,t,n){let r=e.matchAll(hV.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,Dr.undefinedEventSubjectsArgumentErrorMessage)(o));for(let o of a)n.push((0,Dr.invalidEventSubjectsArgumentErrorMessage)(o))}function dfe(){return new Map([[Tt.AUTHENTICATED,zt.AUTHENTICATED_DEFINITION_DATA],[Tt.COMPOSE_DIRECTIVE,zt.COMPOSE_DIRECTIVE_DEFINITION_DATA],[Tt.CONFIGURE_DESCRIPTION,zt.CONFIGURE_DESCRIPTION_DEFINITION_DATA],[Tt.CONFIGURE_CHILD_DESCRIPTIONS,zt.CONFIGURE_CHILD_DESCRIPTIONS_DEFINITION_DATA],[Tt.CONNECT_FIELD_RESOLVER,zt.CONNECT_FIELD_RESOLVER_DEFINITION_DATA],[Tt.COST,zt.COST_DEFINITION_DATA],[Tt.DEPRECATED,zt.DEPRECATED_DEFINITION_DATA],[Tt.EDFS_KAFKA_PUBLISH,zt.KAFKA_PUBLISH_DEFINITION_DATA],[Tt.EDFS_KAFKA_SUBSCRIBE,zt.KAFKA_SUBSCRIBE_DEFINITION_DATA],[Tt.EDFS_NATS_PUBLISH,zt.NATS_PUBLISH_DEFINITION_DATA],[Tt.EDFS_NATS_REQUEST,zt.NATS_REQUEST_DEFINITION_DATA],[Tt.EDFS_NATS_SUBSCRIBE,zt.NATS_SUBSCRIBE_DEFINITION_DATA],[Tt.EDFS_REDIS_PUBLISH,zt.REDIS_PUBLISH_DEFINITION_DATA],[Tt.EDFS_REDIS_SUBSCRIBE,zt.REDIS_SUBSCRIBE_DEFINITION_DATA],[Tt.EXTENDS,zt.EXTENDS_DEFINITION_DATA],[Tt.EXTERNAL,zt.EXTERNAL_DEFINITION_DATA],[Tt.INACCESSIBLE,zt.INACCESSIBLE_DEFINITION_DATA],[Tt.INTERFACE_OBJECT,zt.INTERFACE_OBJECT_DEFINITION_DATA],[Tt.KEY,zt.KEY_DEFINITION_DATA],[Tt.LINK,zt.LINK_DEFINITION_DATA],[Tt.LIST_SIZE,zt.LIST_SIZE_DEFINITION_DATA],[Tt.ONE_OF,zt.ONE_OF_DEFINITION_DATA],[Tt.OVERRIDE,zt.OVERRIDE_DEFINITION_DATA],[Tt.PROVIDES,zt.PROVIDES_DEFINITION_DATA],[Tt.REQUIRE_FETCH_REASONS,zt.REQUIRE_FETCH_REASONS_DEFINITION_DATA],[Tt.REQUIRES,zt.REQUIRES_DEFINITION_DATA],[Tt.REQUIRES_SCOPES,zt.REQUIRES_SCOPES_DEFINITION_DATA],[Tt.SEMANTIC_NON_NULL,zt.SEMANTIC_NON_NULL_DATA],[Tt.SHAREABLE,zt.SHAREABLE_DEFINITION_DATA],[Tt.SPECIFIED_BY,zt.SPECIFIED_BY_DEFINITION_DATA],[Tt.SUBSCRIPTION_FILTER,zt.SUBSCRIPTION_FILTER_DEFINITION_DATA],[Tt.TAG,zt.TAG_DEFINITION_DATA]])}});var GD=F($D=>{"use strict";m();T();N();Object.defineProperty($D,"__esModule",{value:!0});$D.recordSubgraphName=ffe;function ffe(e,t,n){if(!t.has(e)){t.add(e);return}n.add(e)}});var YD=F($E=>{"use strict";m();T();N();Object.defineProperty($E,"__esModule",{value:!0});$E.Warning=void 0;var QD=class extends Error{constructor(n){super(n.message);g(this,"subgraph");this.name="Warning",this.subgraph=n.subgraph}};$E.Warning=QD});var _p=F(Di=>{"use strict";m();T();N();Object.defineProperty(Di,"__esModule",{value:!0});Di.invalidOverrideTargetSubgraphNameWarning=pfe;Di.externalInterfaceFieldsWarning=mfe;Di.nonExternalConditionalFieldWarning=Nfe;Di.unimplementedInterfaceOutputTypeWarning=Tfe;Di.invalidExternalFieldWarning=Efe;Di.requiresDefinedOnNonEntityFieldWarning=hfe;Di.consumerInactiveThresholdInvalidValueWarning=yfe;Di.externalEntityExtensionKeyFieldWarning=Ife;Di.fieldAlreadyProvidedWarning=gfe;Di.singleSubgraphInputFieldOneOfWarning=_fe;Di.singleFederatedInputFieldOneOfWarning=vfe;var wa=YD(),JD=Xn();function pfe(e,t,n,r){return new wa.Warning({message:`The Object type "${t}" defines the directive "@override(from: "${e}")" on the following field`+(n.length>1?"s":"")+': "'+n.join(JD.QUOTATION_JOIN)+`". +`+r.join(` +`))}function T4(e,t){return`The field "${e}" returns the unknown named type "${t}".`}function KUe(e,t){return new Error(T4(e,t))}function $Ue(e){return new Error(`Could not find FieldData for field "${e}" +.This should never happen. Please report this issue on GitHub.`)}function GUe(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 QUe(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 YUe(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 JUe(e,t){return new Error(`The coordinates "${e}" declare "@openfed__configureDescription(propagate: true)" in the following subgraphs: + "`+t.join(We.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 zUe(e){return"- The following argument"+(e.length>1?"s are":" is")+` defined more than once: + "`+e.join(We.QUOTATION_JOIN)+'"'}function HUe(e){return new Error(`The location "${e}" is defined multiple times.`)}function WUe(e){return`- The location "${e}" is defined multiple times.`}function XUe(e){return new Error(`"${e}" is not a valid directive location.`)}function ZUe(e){return`- "${e}" is not a valid directive location.`}function eke(e,t){return new Error(`The directive definition for "@${e}" is invalid for the following reason`+(t.length>1?"s":"")+`: +`+t.join(We.LITERAL_NEW_LINE)+'"')}function tke(e,t){return` The field "${e}" is unconditionally provided by subgraph "${t}" and should not form part of any "@provides" field set.`}function rke(e,t,r){return` The field "${e}" is unconditionally provided by subgraph "${t}" and should not form part of any "@${r}" 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 nke(e,t,r){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`+(r.length>1?"s":"")+` of "${e}": + "`+r.join(We.QUOTATION_JOIN)+'"')}function ike({data:e,namedTypeData:t,nodeType:r}){let n=(0,gCe.isFieldData)(e),i=n?`${e.originalParentTypeName}.${e.name}`:e.originalCoords;return new Error(`The ${r} "${i}" is invalid because it defines type `+(0,ICe.printTypeNode)(e.type)+`; however, ${(0,Ep.kindToNodeType)(t.kind)} "${t.name}" is not a valid `+(n?"output":"input")+" type.")}function ake(e){return`Index "${e}" is not a valid integer.`}function oke({maxIndex:e,typeString:t,value:r}){return`Index "${r}" is out of bounds for type ${t}; `+(e>0?`valid indices are 0-${e} inclusive.`:"the only valid index is 0.")}function ske({typeString:e,value:t}){return`Index "${t}" of type ${e} is non-null but must be nullable.`}K.semanticNonNullArgumentErrorMessage=`Argument "${We.LEVELS}" validation error.`;function uke(e){let t=`${e.renamedParentTypeName}.${e.name}`,r=`The "@semanticNonNull" directive defined on field "${t}" is invalid due to inconsistent values provided to the "levels" argument across the following subgraphs: +`;for(let[n,i]of e.nullLevelsBySubgraphName)r+=` Subgraph "${n}" defines levels ${Array.from(i).sort((a,o)=>a-o)}. +`;return r+=`The list value provided to the "levels" argument must be consistently defined across all subgraphs that define "@semanticNonNull" on field "${t}".`,new Error(r)}function cke({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(We.QUOTATION_JOIN)+'".')}function lke(e,t){return` The "slicingArguments" value "${t}" on "${e}" does not reference a defined argument on this field.`}function dke(e,t,r){return` The "slicingArguments" value "${t}" on "${e}" references an argument of type "${r}", but slicing arguments must be of type "Int" or "Int!".`}function fke(e,t,r){return` The "sizedFields" value "${t}" on "${e}" does not reference a defined field on the return type "${r}".`}function pke(e,t,r,n){return` The "sizedFields" value "${t}" on "${e}" references field "${r}.${t}", which returns type "${n}". Sized fields must return a list type.`}function mke(e,t){return` The "@listSize" directive on "${e}" is invalid because the field returns type "${t}", which is not a list type, and no "sizedFields" argument is provided.`}function hke(e,t){return` The "sizedFields" argument on "${e}" is invalid because the return type "${t}" is not an object or interface type.`}function yke(e,t){return` The "sizedFields" argument on "${e}" is invalid because the return type "${t}" must not be a list.`}function Nke(e){return` The "@listSize" directive on "${e}" defines both "assumedSize" and "slicingArguments". When both are used, "requireOneSlicingArgument" must be set to false.`}function Tke(e,t){return` The "@listSize" directive on "${e}" defines both "assumedSize" and "slicingArguments", but slicing argument "${t}" has a default value. When "assumedSize" is used as a fallback for missing slicing arguments, none of the slicing arguments may have default values.`}function Eke(e){return` The "@cost" directive at "${e}" is not permitted on fields or arguments of an Interface type. The cost of an interface field is derived from the costs of the corresponding fields on the concrete types that implement the interface.`}function gke(e){return new Error(` A "@composeDirective" directive defines the "name" argument value "${e}" without a corresponding directive definition in the schema.`)}function Ike(e){return new Error(` A "@composeDirective" directive defines the "name" argument value "${e}", which is not a custom, user-defined directive.`)}function vke(e){return new Error(`A "@composeDirective" directive defines the "name" argument value "${e}" without a leading "@".`)}function _ke(e){return new Error(` A "@composeDirective" directive defines the "name" argument value "${e}", which is not a member of a core feature (imported through a "@link" directive).`)}K.noLinkDirectiveUrlError=new Error(' A "@link" directive was defined without a "url" argument.');function Ske(e){return new Error(` A "@link" directive defines the "url" argument value with invalid URL "${e}".`)}function Oke(e){return new Error(` A "@link" directive defines the "url" argument value without a path in URL "${e}".`)}function Dke(e){return new Error(` A "@link" directive defines the "url" argument value without a feature name component in URL "${e}".`)}function bke(e){return new Error(` A "@link" directive defines the "url" argument value without a version component in URL "${e}".`)}function Ake({url:e,versionString:t}){return new Error(` A "@link" directive defines the "url" argument value with invalid version string "${t}" (not of the form "v1.2") in URL "${e}".`)}function Rke(e){return new Error(` A "@link" directive defines the "import" value with non-iterable kind "${e}"`)}function wke({fieldName:e,value:t}){return new Error(` A "@link" directive defines invalid sub-value "${t}": field "${e}" must be a string.`)}function Pke(e){return new Error(` A "@link" directive defines invalid sub-value "${e}": required field "name" is missing.`)}function Fke({fieldName:e,value:t}){return new Error(` A "@link" directive defines invalid sub-value "${t}": unknown field "${e}".`)}function Lke({name:e,rename:t}){return new Error(` A "@link" directive imports "${e}" and renames to "${t}": if an import is not a directive, neither value should begin with "@"; otherwise, both values should be referenced with a leading "@".`)}function Cke(e){return new Error(` A "@link" directive defines invalid sub-value at index ${e}: values should be either strings or input object values of the form { name: "", as: "" }.`)}function Bke(e){return new Error(` Composed directive "${e}" is not linked by the same core feature in every subgraph.`)}function Uke(e){return new Error(` Composed directive "${e}" defines a major version mismatch across subgraphs.`)}function kke(e){return new Error(`Internal Error: Expected subgraph "${e}" to be a valid record.`)}});var WI=D(HI=>{"use strict";d();p();f();Object.defineProperty(HI,"__esModule",{value:!0});HI.DEFAULT_CONSUMER_INACTIVE_THRESHOLD=void 0;HI.DEFAULT_CONSUMER_INACTIVE_THRESHOLD=30});var XI=D(xn=>{"use strict";d();p();f();Object.defineProperty(xn,"__esModule",{value:!0});xn.SUBSCRIPTION_FILTER_VALUE_DEFINITION=xn.SUBSCRIPTION_FILTER_CONDITION_DEFINITION=xn.SUBSCRIPTION_FIELD_CONDITION_DEFINITION=xn.SCOPE_SCALAR_DEFINITION=xn.LINK_PURPOSE_DEFINITION=xn.LINK_IMPORT_DEFINITION=xn.FIELD_SET_SCALAR_DEFINITION=xn.EDFS_NATS_STREAM_CONFIGURATION_DEFINITION=void 0;var lr=ve(),Tr=Un(),Er=xr(),qke=WI();xn.EDFS_NATS_STREAM_CONFIGURATION_DEFINITION={kind:lr.Kind.INPUT_OBJECT_TYPE_DEFINITION,name:(0,Tr.stringToNameNode)(Er.EDFS_NATS_STREAM_CONFIGURATION),fields:[{kind:lr.Kind.INPUT_VALUE_DEFINITION,name:(0,Tr.stringToNameNode)(Er.CONSUMER_INACTIVE_THRESHOLD),type:{kind:lr.Kind.NON_NULL_TYPE,type:(0,Tr.stringToNamedTypeNode)(Er.INT_SCALAR)},defaultValue:{kind:lr.Kind.INT,value:qke.DEFAULT_CONSUMER_INACTIVE_THRESHOLD.toString()}},{kind:lr.Kind.INPUT_VALUE_DEFINITION,name:(0,Tr.stringToNameNode)(Er.CONSUMER_NAME),type:{kind:lr.Kind.NON_NULL_TYPE,type:(0,Tr.stringToNamedTypeNode)(Er.STRING_SCALAR)}},{kind:lr.Kind.INPUT_VALUE_DEFINITION,name:(0,Tr.stringToNameNode)(Er.STREAM_NAME),type:{kind:lr.Kind.NON_NULL_TYPE,type:(0,Tr.stringToNamedTypeNode)(Er.STRING_SCALAR)}}]};xn.FIELD_SET_SCALAR_DEFINITION={kind:lr.Kind.SCALAR_TYPE_DEFINITION,name:(0,Tr.stringToNameNode)(Er.FIELD_SET_SCALAR)};xn.LINK_IMPORT_DEFINITION={kind:lr.Kind.SCALAR_TYPE_DEFINITION,name:(0,Tr.stringToNameNode)(Er.LINK_IMPORT)};xn.LINK_PURPOSE_DEFINITION={kind:lr.Kind.ENUM_TYPE_DEFINITION,name:(0,Tr.stringToNameNode)(Er.LINK_PURPOSE),values:[{directives:[],kind:lr.Kind.ENUM_VALUE_DEFINITION,name:(0,Tr.stringToNameNode)(Er.EXECUTION)},{directives:[],kind:lr.Kind.ENUM_VALUE_DEFINITION,name:(0,Tr.stringToNameNode)(Er.SECURITY)}]};xn.SCOPE_SCALAR_DEFINITION={kind:lr.Kind.SCALAR_TYPE_DEFINITION,name:(0,Tr.stringToNameNode)(Er.SCOPE_SCALAR)};xn.SUBSCRIPTION_FIELD_CONDITION_DEFINITION={fields:[{kind:lr.Kind.INPUT_VALUE_DEFINITION,name:(0,Tr.stringToNameNode)(Er.FIELD_PATH),type:{kind:lr.Kind.NON_NULL_TYPE,type:(0,Tr.stringToNamedTypeNode)(Er.STRING_SCALAR)}},{kind:lr.Kind.INPUT_VALUE_DEFINITION,name:(0,Tr.stringToNameNode)(Er.VALUES),type:{kind:lr.Kind.NON_NULL_TYPE,type:{kind:lr.Kind.LIST_TYPE,type:(0,Tr.stringToNamedTypeNode)(Er.SUBSCRIPTION_FILTER_VALUE)}}}],kind:lr.Kind.INPUT_OBJECT_TYPE_DEFINITION,name:(0,Tr.stringToNameNode)(Er.SUBSCRIPTION_FIELD_CONDITION)};xn.SUBSCRIPTION_FILTER_CONDITION_DEFINITION={fields:[{kind:lr.Kind.INPUT_VALUE_DEFINITION,name:(0,Tr.stringToNameNode)(Er.AND_UPPER),type:{kind:lr.Kind.LIST_TYPE,type:{kind:lr.Kind.NON_NULL_TYPE,type:(0,Tr.stringToNamedTypeNode)(Er.SUBSCRIPTION_FILTER_CONDITION)}}},{kind:lr.Kind.INPUT_VALUE_DEFINITION,name:(0,Tr.stringToNameNode)(Er.IN_UPPER),type:(0,Tr.stringToNamedTypeNode)(Er.SUBSCRIPTION_FIELD_CONDITION)},{kind:lr.Kind.INPUT_VALUE_DEFINITION,name:(0,Tr.stringToNameNode)(Er.OR_UPPER),type:{kind:lr.Kind.LIST_TYPE,type:{kind:lr.Kind.NON_NULL_TYPE,type:(0,Tr.stringToNamedTypeNode)(Er.SUBSCRIPTION_FILTER_CONDITION)}}},{kind:lr.Kind.INPUT_VALUE_DEFINITION,name:(0,Tr.stringToNameNode)(Er.NOT_UPPER),type:(0,Tr.stringToNamedTypeNode)(Er.SUBSCRIPTION_FILTER_CONDITION)}],kind:lr.Kind.INPUT_OBJECT_TYPE_DEFINITION,name:(0,Tr.stringToNameNode)(Er.SUBSCRIPTION_FILTER_CONDITION)};xn.SUBSCRIPTION_FILTER_VALUE_DEFINITION={kind:lr.Kind.SCALAR_TYPE_DEFINITION,name:(0,Tr.stringToNameNode)(Er.SUBSCRIPTION_FILTER_VALUE)}});var xs=D(Cr=>{"use strict";d();p();f();Object.defineProperty(Cr,"__esModule",{value:!0});Cr.IMPORT_VERSION_REGEX=Cr.CLIENT_FEDERATED_DIRECTIVE_NAMES=Cr.ROUTER_FEDERATED_DIRECTIVE_NAMES=Cr.IGNORED_FEDERATED_TYPE_NAMES=Cr.DEPENDENCIES_BY_DIRECTIVE_NAME=Cr.COMPOSITE_OUTPUT_NODE_KINDS=Cr.SUBSCRIPTION_FILTER_LIST_INPUT_NAMES=Cr.SUBSCRIPTION_FILTER_INPUT_NAMES=Cr.STREAM_CONFIGURATION_FIELD_NAMES=Cr.EVENT_DIRECTIVE_NAMES=Cr.TYPE_SYSTEM_DIRECTIVE_LOCATIONS=void 0;var Ze=xr(),ZI=ve(),co=XI();Cr.TYPE_SYSTEM_DIRECTIVE_LOCATIONS=new Set([Ze.ARGUMENT_DEFINITION_UPPER,Ze.ENUM_UPPER,Ze.ENUM_VALUE_UPPER,Ze.FIELD_DEFINITION_UPPER,Ze.INPUT_FIELD_DEFINITION_UPPER,Ze.INPUT_OBJECT_UPPER,Ze.INTERFACE_UPPER,Ze.OBJECT_UPPER,Ze.SCALAR_UPPER,Ze.SCHEMA_UPPER,Ze.UNION_UPPER]);Cr.EVENT_DIRECTIVE_NAMES=new Set([Ze.EDFS_KAFKA_PUBLISH,Ze.EDFS_KAFKA_SUBSCRIBE,Ze.EDFS_NATS_PUBLISH,Ze.EDFS_NATS_REQUEST,Ze.EDFS_NATS_SUBSCRIBE,Ze.EDFS_REDIS_PUBLISH,Ze.EDFS_REDIS_SUBSCRIBE]);Cr.STREAM_CONFIGURATION_FIELD_NAMES=new Set([Ze.CONSUMER_INACTIVE_THRESHOLD,Ze.CONSUMER_NAME,Ze.STREAM_NAME]);Cr.SUBSCRIPTION_FILTER_INPUT_NAMES=new Set([Ze.AND_UPPER,Ze.IN_UPPER,Ze.NOT_UPPER,Ze.OR_UPPER]);Cr.SUBSCRIPTION_FILTER_LIST_INPUT_NAMES=new Set([Ze.AND_UPPER,Ze.OR_UPPER]);Cr.COMPOSITE_OUTPUT_NODE_KINDS=new Set([ZI.Kind.INTERFACE_TYPE_DEFINITION,ZI.Kind.INTERFACE_TYPE_EXTENSION,ZI.Kind.OBJECT_TYPE_DEFINITION,ZI.Kind.OBJECT_TYPE_EXTENSION]);Cr.DEPENDENCIES_BY_DIRECTIVE_NAME=new Map([[Ze.CONNECT_FIELD_RESOLVER,[co.FIELD_SET_SCALAR_DEFINITION]],[Ze.EDFS_NATS_SUBSCRIBE,[co.EDFS_NATS_STREAM_CONFIGURATION_DEFINITION]],[Ze.KEY,[co.FIELD_SET_SCALAR_DEFINITION]],[Ze.LINK,[co.LINK_IMPORT_DEFINITION,co.LINK_PURPOSE_DEFINITION]],[Ze.PROVIDES,[co.FIELD_SET_SCALAR_DEFINITION]],[Ze.REQUIRES,[co.FIELD_SET_SCALAR_DEFINITION]],[Ze.REQUIRES_SCOPES,[co.SCOPE_SCALAR_DEFINITION]],[Ze.SUBSCRIPTION_FILTER,[co.SUBSCRIPTION_FIELD_CONDITION_DEFINITION,co.SUBSCRIPTION_FILTER_CONDITION_DEFINITION,co.SUBSCRIPTION_FILTER_VALUE_DEFINITION]]]);Cr.IGNORED_FEDERATED_TYPE_NAMES=new Set([Ze.BOOLEAN_SCALAR,Ze.EDFS_NATS_STREAM_CONFIGURATION,Ze.FIELD_SET_SCALAR,Ze.ID_SCALAR,Ze.INT_SCALAR,Ze.FLOAT_SCALAR,Ze.LINK_IMPORT,Ze.LINK_PURPOSE,Ze.STRING_SCALAR,Ze.SUBSCRIPTION_FIELD_CONDITION,Ze.SUBSCRIPTION_FILTER_CONDITION,Ze.SUBSCRIPTION_FILTER_VALUE]);Cr.ROUTER_FEDERATED_DIRECTIVE_NAMES=new Set([Ze.AUTHENTICATED,Ze.DEPRECATED,Ze.INACCESSIBLE,Ze.ONE_OF,Ze.REQUIRES_SCOPES,Ze.SEMANTIC_NON_NULL,Ze.TAG]);Cr.CLIENT_FEDERATED_DIRECTIVE_NAMES=new Set([Ze.DEPRECATED,Ze.ONE_OF,Ze.SEMANTIC_NON_NULL]);Cr.IMPORT_VERSION_REGEX=/^v\d+\.\d+$/});var Jo=D(li=>{"use strict";d();p();f();Object.defineProperty(li,"__esModule",{value:!0});li.getMutableEnumNode=Vke;li.getMutableEnumValueNode=Kke;li.getMutableFieldNode=$ke;li.getMutableInputObjectNode=Gke;li.getMutableInputValueNode=Qke;li.getMutableInterfaceNode=Yke;li.getMutableObjectNode=Jke;li.getMutableScalarNode=zke;li.getMutableTypeNode=MP;li.getMutableUnionNode=Hke;li.getTypeNodeNamedTypeName=jP;li.getNamedTypeNode=E4;li.extractDirectiveLocations=Wke;var wa=ve(),tv=Un(),ev=Di(),xke=Xf(),Mke=xr(),jke=xs();function Vke(e){return{kind:wa.Kind.ENUM_TYPE_DEFINITION,name:q({},e)}}function Kke(e){return{directives:[],kind:e.kind,name:q({},e.name),description:(0,tv.formatDescription)(e.description)}}function $ke(e,t,r){return{arguments:[],directives:[],kind:e.kind,name:q({},e.name),type:MP(e.type,t,r),description:(0,tv.formatDescription)(e.description)}}function Gke(e){return{kind:wa.Kind.INPUT_OBJECT_TYPE_DEFINITION,name:q({},e)}}function Qke(e,t,r){return{directives:[],kind:e.kind,name:q({},e.name),type:MP(e.type,t,r),defaultValue:e.defaultValue,description:(0,tv.formatDescription)(e.description)}}function Yke(e){return{kind:wa.Kind.INTERFACE_TYPE_DEFINITION,name:q({},e)}}function Jke(e){return{kind:wa.Kind.OBJECT_TYPE_DEFINITION,name:q({},e)}}function zke(e){return{kind:wa.Kind.SCALAR_TYPE_DEFINITION,name:q({},e)}}function MP(e,t,r){let n={kind:e.kind},i=n;for(let a=0;a{"use strict";d();p();f();Object.defineProperty(Pa,"__esModule",{value:!0});Pa.MAX_OR_SCOPES=Pa.EDFS_ARGS_REGEXP=Pa.V2_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME=Pa.BASE_SCALARS=Pa.DIRECTIVE_DEFINITION_BY_NAME=void 0;var pt=xr(),Ot=Wh();Pa.DIRECTIVE_DEFINITION_BY_NAME=new Map([[pt.AUTHENTICATED,Ot.AUTHENTICATED_DEFINITION],[pt.COMPOSE_DIRECTIVE,Ot.COMPOSE_DIRECTIVE_DEFINITION],[pt.CONFIGURE_DESCRIPTION,Ot.CONFIGURE_DESCRIPTION_DEFINITION],[pt.CONFIGURE_CHILD_DESCRIPTIONS,Ot.CONFIGURE_CHILD_DESCRIPTIONS_DEFINITION],[pt.CONNECT_FIELD_RESOLVER,Ot.CONNECT_FIELD_RESOLVER_DEFINITION],[pt.COST,Ot.COST_DEFINITION],[pt.DEPRECATED,Ot.DEPRECATED_DEFINITION],[pt.EDFS_KAFKA_PUBLISH,Ot.EDFS_KAFKA_PUBLISH_DEFINITION],[pt.EDFS_KAFKA_SUBSCRIBE,Ot.EDFS_KAFKA_SUBSCRIBE_DEFINITION],[pt.EDFS_NATS_PUBLISH,Ot.EDFS_NATS_PUBLISH_DEFINITION],[pt.EDFS_NATS_REQUEST,Ot.EDFS_NATS_REQUEST_DEFINITION],[pt.EDFS_NATS_SUBSCRIBE,Ot.EDFS_NATS_SUBSCRIBE_DEFINITION],[pt.EDFS_REDIS_PUBLISH,Ot.EDFS_REDIS_PUBLISH_DEFINITION],[pt.EDFS_REDIS_SUBSCRIBE,Ot.EDFS_REDIS_SUBSCRIBE_DEFINITION],[pt.EXTENDS,Ot.EXTENDS_DEFINITION],[pt.EXTERNAL,Ot.EXTERNAL_DEFINITION],[pt.INACCESSIBLE,Ot.INACCESSIBLE_DEFINITION],[pt.INTERFACE_OBJECT,Ot.INTERFACE_OBJECT_DEFINITION],[pt.KEY,Ot.KEY_DEFINITION],[pt.LINK,Ot.LINK_DEFINITION],[pt.LIST_SIZE,Ot.LIST_SIZE_DEFINITION],[pt.ONE_OF,Ot.ONE_OF_DEFINITION],[pt.OVERRIDE,Ot.OVERRIDE_DEFINITION],[pt.PROVIDES,Ot.PROVIDES_DEFINITION],[pt.REQUIRE_FETCH_REASONS,Ot.REQUIRE_FETCH_REASONS_DEFINITION],[pt.REQUIRES,Ot.REQUIRES_DEFINITION],[pt.REQUIRES_SCOPES,Ot.REQUIRES_SCOPES_DEFINITION],[pt.SEMANTIC_NON_NULL,Ot.SEMANTIC_NON_NULL_DEFINITION],[pt.SHAREABLE,Ot.SHAREABLE_DEFINITION],[pt.SPECIFIED_BY,Ot.SPECIFIED_BY_DEFINITION],[pt.SUBSCRIPTION_FILTER,Ot.SUBSCRIPTION_FILTER_DEFINITION],[pt.TAG,Ot.TAG_DEFINITION]]);Pa.BASE_SCALARS=new Set(["_Any","_Entities",pt.BOOLEAN_SCALAR,pt.FLOAT_SCALAR,pt.ID_SCALAR,pt.INT_SCALAR,pt.FIELD_SET_SCALAR,pt.SCOPE_SCALAR,pt.STRING_SCALAR]);Pa.V2_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME=new Map([[pt.AUTHENTICATED,Ot.AUTHENTICATED_DEFINITION],[pt.COMPOSE_DIRECTIVE,Ot.COMPOSE_DIRECTIVE_DEFINITION],[pt.INACCESSIBLE,Ot.INACCESSIBLE_DEFINITION],[pt.INTERFACE_OBJECT,Ot.INTERFACE_OBJECT_DEFINITION],[pt.LINK,Ot.LINK_DEFINITION],[pt.OVERRIDE,Ot.OVERRIDE_DEFINITION],[pt.REQUIRES_SCOPES,Ot.REQUIRES_SCOPES_DEFINITION],[pt.SHAREABLE,Ot.SHAREABLE_DEFINITION]]);Pa.EDFS_ARGS_REGEXP=/{{\s*args\.([a-zA-Z0-9_]+)\s*}}/g;Pa.MAX_OR_SCOPES=16});var rv=D(md=>{"use strict";d();p();f();Object.defineProperty(md,"__esModule",{value:!0});md.newParentTagData=rqe;md.newChildTagData=nqe;md.validateImplicitFieldSets=iqe;md.newContractTagOptionsFromArrays=aqe;md.getDescriptionFromString=oqe;var wi=ve(),Xke=Jo(),Zke=zo(),eqe=Un(),g4=An(),tqe=xr();function rqe(e){return{childTagDataByChildName:new Map,tagNames:new Set,typeName:e}}function nqe(e){return{name:e,tagNames:new Set,tagNamesByArgumentName:new Map}}function iqe({conditionalFieldDataByCoords:e,currentSubgraphName:t,entityData:r,implicitKeys:n,objectData:i,parentDefinitionDataByTypeName:a,graphNode:o}){let u=(0,g4.getValueOrDefault)(r.keyFieldSetDatasBySubgraphName,t,()=>new Map);for(let[l,m]of r.documentNodeByKeyFieldSet){if(u.has(l))continue;let h=[i],N=[],T=[],O=-1,R=!0,C=!0;(0,wi.visit)(m,{Argument:{enter(){return C=!1,wi.BREAK}},Field:{enter(M){let Y=h[O];if(R)return C=!1,wi.BREAK;let ee=M.name.value;if(ee===tqe.TYPENAME)return;let ae=Y.fieldDataByName.get(ee);if(!ae||ae.argumentDataByName.size||N[O].has(ee))return C=!1,wi.BREAK;let{isUnconditionallyProvided:Ne}=(0,g4.getOrThrowError)(ae.externalFieldDataBySubgraphName,t,`${ae.originalParentTypeName}.${ee}.externalFieldDataBySubgraphName`),_e=e.get(`${ae.renamedParentTypeName}.${ee}`);if(_e){if(_e.providedBy.length>0)T.push(..._e.providedBy);else if(_e.requiredBy.length>0)return C=!1,wi.BREAK}else if(!Ne)return C=!1,wi.BREAK;N[O].add(ee);let Le=(0,Xke.getTypeNodeNamedTypeName)(ae.node.type);if(Zke.BASE_SCALARS.has(Le))return;let Ve=a.get(Le);if(!Ve)return C=!1,wi.BREAK;if(Ve.kind===wi.Kind.OBJECT_TYPE_DEFINITION){R=!0,h.push(Ve);return}if((0,eqe.isKindAbstract)(Ve.kind))return C=!1,wi.BREAK}},InlineFragment:{enter(){return C=!1,wi.BREAK}},SelectionSet:{enter(){if(!R||(O+=1,R=!1,O<0||O>=h.length))return C=!1,wi.BREAK;N.push(new Set)},leave(){if(R)return C=!1,wi.BREAK;O-=1,h.pop(),N.pop()}}}),C&&(n.push(G(q({fieldName:"",selectionSet:l},T.length>0?{conditions:T}:{}),{disableEntityResolver:!0})),o&&o.satisfiedFieldSets.add(l))}}function aqe(e,t){return{tagNamesToExclude:new Set(e),tagNamesToInclude:new Set(t)}}function oqe(e){if(e)return{block:!0,kind:wi.Kind.STRING,value:e}}});var VP=D(_y=>{"use strict";d();p();f();Object.defineProperty(_y,"__esModule",{value:!0});_y.isArgumentValueValid=vy;_y.validateCustomDirective=_4;_y.validateDirectives=lqe;var el=Di(),sqe=Un(),I4=Jo(),uqe=Zc(),sn=ve(),Pi=xr(),cqe=Iy(),v4=An();function vy({argumentValue:e,parentDefinitionDataByTypeName:t,typeNode:r}){if(e.kind===sn.Kind.NULL)return r.kind!==sn.Kind.NON_NULL_TYPE;switch(r.kind){case sn.Kind.LIST_TYPE:{if(e.kind!==sn.Kind.LIST)return vy({argumentValue:e,parentDefinitionDataByTypeName:t,typeNode:(0,I4.getNamedTypeNode)(r.type)});for(let n of e.values)if(!vy({argumentValue:n,parentDefinitionDataByTypeName:t,typeNode:r.type}))return!1;return!0}case sn.Kind.NAMED_TYPE:switch(r.name.value){case Pi.BOOLEAN_SCALAR:return e.kind===sn.Kind.BOOLEAN;case Pi.FLOAT_SCALAR:return e.kind===sn.Kind.FLOAT||e.kind===sn.Kind.INT;case Pi.ID_SCALAR:return e.kind===sn.Kind.STRING||e.kind===sn.Kind.INT;case Pi.INT_SCALAR:return e.kind===sn.Kind.INT;case Pi.FIELD_SET_SCALAR:case Pi.SCOPE_SCALAR:case Pi.STRING_SCALAR:return e.kind===sn.Kind.STRING;case Pi.LINK_IMPORT:return!0;case Pi.LINK_PURPOSE:return e.kind!==sn.Kind.ENUM?!1:e.value===Pi.SECURITY||e.value===Pi.EXECUTION;case Pi.SUBSCRIPTION_FIELD_CONDITION:case Pi.SUBSCRIPTION_FILTER_CONDITION:return e.kind===sn.Kind.OBJECT;default:{let n=t.get(r.name.value);if(!n)return!1;if(n.kind===sn.Kind.SCALAR_TYPE_DEFINITION)return!0;if(n.kind===sn.Kind.ENUM_TYPE_DEFINITION){if(e.kind!==sn.Kind.ENUM&&e.kind!==sn.Kind.STRING)return!1;let i=n.enumValueDataByName.get(e.value);return i?!i.directivesByName.has(Pi.INACCESSIBLE):!1}return n.kind!==sn.Kind.INPUT_OBJECT_TYPE_DEFINITION?!1:e.kind===sn.Kind.OBJECT}}default:return vy({argumentValue:e,parentDefinitionDataByTypeName:t,typeNode:r.type})}}function _4({argumentDataByName:e,directiveNode:t,parentDefinitionDataByTypeName:r,requiredArgumentNames:n}){if(!t.arguments||t.arguments.length<1)return n.length<1?{success:!0}:{errors:[(0,el.undefinedRequiredArgumentsError)(n)],success:!1};let i=[],a=new Set,o=new Set,u=new Set;for(let m of t.arguments){let h=m.name.value;if(a.has(h)){o.add(h);continue}a.add(h);let N=e.get(h);if(!N){u.add(h);continue}vy({argumentValue:m.value,parentDefinitionDataByTypeName:r,typeNode:N.type})||i.push((0,el.invalidArgumentValueError)({argumentName:h,expectedTypeString:(0,cqe.printTypeNode)(N.type),value:(0,sn.print)(m.value)}))}o.size>0&&i.push((0,el.duplicateArgumentDefinitionError)([...o])),u.size>0&&i.push((0,el.unexpectedArgumentProvisionError)([...u]));let l=(0,v4.getEntriesNotInHashSet)(n,a);return l.length>0&&i.push((0,el.undefinedRequiredArgumentsError)(l)),i.length>0?{errors:i,success:!1}:{success:!0}}function lqe({data:e,directiveCoords:t,directiveDefinitionData:{argumentDataByName:r,isComposed:n,isRepeatable:i,locations:a,name:o,node:u,requiredArgumentNames:l},directiveNodes:m,parentDefinitionDataByTypeName:h}){var R;let N=[],T=(0,sqe.nodeKindToDirectiveLocation)(e.kind);a.has(T)||N.push((0,el.invalidDirectiveLocationError)({directiveCoords:t,directiveName:o,location:T})),m.length>1&&!i&&!n&&N.push((0,el.invalidRepeatedDirectiveError)({directiveCoords:t,directiveName:o}));let O=[...l];for(let C of(R=u.arguments)!=null?R:[]){if(!C.defaultValue)continue;let M=r.get(C.name.value);if(!M)continue;let Y=h.get((0,I4.getTypeNodeNamedTypeName)(M.type));Y&&(0,uqe.sanitizeDefaultValue)({data:M,namedTypeData:Y,node:C})}for(let C=0;C0?{errors:N,success:!1}:{success:!0}}});var $P=D(nv=>{"use strict";d();p();f();Object.defineProperty(nv,"__esModule",{value:!0});nv.Warning=void 0;var KP=class extends Error{constructor(r){super(r.message);S(this,"subgraph");this.name="Warning",this.subgraph=r.subgraph}};nv.Warning=KP});var hd=D(di=>{"use strict";d();p();f();Object.defineProperty(di,"__esModule",{value:!0});di.invalidOverrideTargetSubgraphNameWarning=dqe;di.externalInterfaceFieldsWarning=fqe;di.nonExternalConditionalFieldWarning=pqe;di.unimplementedInterfaceOutputTypeWarning=mqe;di.invalidExternalFieldWarning=hqe;di.requiresDefinedOnNonEntityFieldWarning=yqe;di.consumerInactiveThresholdInvalidValueWarning=Nqe;di.externalEntityExtensionKeyFieldWarning=Tqe;di.fieldAlreadyProvidedWarning=Eqe;di.singleSubgraphInputFieldOneOfWarning=gqe;di.singleFederatedInputFieldOneOfWarning=Iqe;di.composedOneOfDirectiveWarning=vqe;di.invalidRepeatedComposedDirectiveWarning=_qe;var zi=$P(),GP=xr();function dqe(e,t,r,n){return new zi.Warning({message:`The Object type "${t}" defines the directive "@override(from: "${e}")" on the following field`+(r.length>1?"s":"")+': "'+r.join(GP.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 GE(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 mfe(e,t,n){return new wa.Warning({message:GE(e)+`The Interface "${t}" is invalid because the following field definition`+(n.length>1?"s are":" is")+` declared "@external": - "`+n.join(JD.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 Nfe(e,t,n,r,i){return new wa.Warning({message:GE(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 Tfe(e,t){return new wa.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 Efe(e,t){return new wa.Warning({message:GE(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 hfe(e,t){return new wa.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 yfe(e,t=""){return new wa.Warning({message:'The "consumerInactiveThreshold" argument of type "Int" should be positive and smaller than 2,147,483,648.'+ +t?` -${t}`:"",subgraph:{name:e}})}function Ife(e,t,n,r){return new wa.Warning({message:`The entity extension "${e}" defined in subgraph "${r}" defines a "@key" directive with the field set "${t}". +If this subgraph has been recently deleted, remember to clean up unused "@override" directives that reference this subgraph.`,subgraph:{name:n}})}function iv(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 fqe(e,t,r){return new zi.Warning({message:iv(e)+`The Interface "${t}" is invalid because the following field definition`+(r.length>1?"s are":" is")+` declared "@external": + "`+r.join(GP.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 pqe(e,t,r,n,i){return new zi.Warning({message:iv(t)+`The Field "${e}" in subgraph "${t}" defines a "@${i}" directive with the following field set: + "${n}". +However, neither the field "${r}" nor any of its field set ancestors are declared @external. +Consequently, "${r}" is already provided by subgraph "${t}" and should not form part of a "@${i}" directive field set.`,subgraph:{name:t}})}function mqe(e,t){return new zi.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 hqe(e,t){return new zi.Warning({message:iv(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 yqe(e,t){return new zi.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 Nqe(e,t=""){return new zi.Warning({message:'The "consumerInactiveThreshold" argument of type "Int" should be positive and smaller than 2,147,483,648.'+ +t?` +${t}`:"",subgraph:{name:e}})}function Tqe(e,t,r,n){return new zi.Warning({message:`The entity extension "${e}" defined in subgraph "${n}" 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(JD.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 gfe(e,t,n,r){return new wa.Warning({message:GE(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 _fe({fieldName:e,subgraphName:t,typeName:n}){return new wa.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 vfe({fieldName:e,typeName:t}){return new wa.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 WD=F(YE=>{"use strict";m();T();N();Object.defineProperty(YE,"__esModule",{value:!0});YE.upsertDirectiveSchemaAndEntityDefinitions=Dfe;YE.upsertParentsAndChildren=bfe;var Gn=Se(),Uu=Yi(),HD=bu(),QE=Ip(),Nd=Br(),zD=gp(),Sfe=dd(),md=$l(),vp=Du(),Ofe=_p(),aa=Xn(),gr=kr();function Dfe(e,t){(0,Gn.visit)(t,{Directive:{enter(n){let r=n.name.value;return e.referencedDirectiveNames.add(r),Sfe.EVENT_DIRECTIVE_NAMES.has(r)&&e.edfsDirectiveReferences.add(r),HD.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,Nd.isObjectLikeNodeEntity)(n))return;let i=(0,gr.getValueOrDefault)(e.keyFieldSetDatasByTypeName,r,()=>new Map);e.extractKeyFieldSets(n,i),(0,QE.upsertEntityData)({entityDataByTypeName:e.entityDataByTypeName,keyFieldSetDataByFieldSet:i,subgraphName:e.subgraphName,typeName:r}),(0,gr.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,Nd.isObjectLikeNodeEntity)(n))return;let i=(0,gr.getValueOrDefault)(e.keyFieldSetDatasByTypeName,r,()=>new Map);e.extractKeyFieldSets(n,i),(0,QE.upsertEntityData)({entityDataByTypeName:e.entityDataByTypeName,keyFieldSetDataByFieldSet:i,subgraphName:e.subgraphName,typeName:r}),(0,gr.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,Nd.isObjectLikeNodeEntity)(n))return;let r=n.name.value;(0,Nd.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,gr.getValueOrDefault)(e.keyFieldSetDatasByTypeName,r,()=>new Map);e.extractKeyFieldSets(n,i),(0,QE.upsertEntityData)({entityDataByTypeName:e.entityDataByTypeName,keyFieldSetDataByFieldSet:i,subgraphName:e.subgraphName,typeName:r})}},ObjectTypeExtension:{enter(n){if(!(0,Nd.isObjectLikeNodeEntity)(n))return;let r=n.name.value,i=(0,gr.getValueOrDefault)(e.keyFieldSetDatasByTypeName,r,()=>new Map);e.extractKeyFieldSets(n,i),(0,QE.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,vp.getTypeNodeNamedTypeName)(n.type);if(i)return e.errors.push((0,Uu.duplicateOperationTypeDefinitionError)(r,a,(0,vp.getTypeNodeNamedTypeName)(i.type))),!1;let o=e.operationTypeNodeByTypeName.get(a);return o?(e.errors.push((0,Uu.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 bfe(e,t){let n=!1,r;(0,Gn.visit)(t,{EnumTypeDefinition:{enter(i){e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertEnumDataByNode(i)},leave(){e.originalParentTypeName="",e.lastParentNodeKind=Gn.Kind.NULL}},EnumTypeExtension:{enter(i){e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertEnumDataByNode(i,!0)},leave(){e.originalParentTypeName="",e.lastParentNodeKind=Gn.Kind.NULL}},EnumValueDefinition:{enter(i){let a=i.name.value;e.lastChildNodeKind=i.kind;let o=(0,gr.getOrThrowError)(e.parentDefinitionDataByTypeName,e.originalParentTypeName,aa.PARENT_DEFINITION_DATA);if(o.kind!==Gn.Kind.ENUM_TYPE_DEFINITION){e.errors.push((0,Uu.unexpectedParentKindForChildError)(e.originalParentTypeName,"Enum or Enum extension",(0,gr.kindToNodeType)(o.kind),a,(0,gr.kindToNodeType)(i.kind)));return}if(o.enumValueDataByName.has(a)){e.errors.push((0,Uu.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:Gn.Kind.ENUM_VALUE_DEFINITION,name:a,node:(0,vp.getMutableEnumValueNode)(i),parentTypeName:e.originalParentTypeName,persistedDirectivesData:(0,md.newPersistedDirectivesData)(),subgraphNames:new Set([e.subgraphName]),description:(0,Nd.formatDescription)(i.description)})},leave(){e.lastChildNodeKind=Gn.Kind.NULL}},FieldDefinition:{enter(i){let a=i.name.value;if(n&&aa.IGNORED_FIELDS.has(a))return!1;e.edfsDirectiveReferences.size>0&&e.validateSubscriptionFilterDirectiveLocation(i),e.lastChildNodeKind=i.kind;let o=(0,vp.getTypeNodeNamedTypeName)(i.type);(0,gr.getValueOrDefault)(e.fieldCoordsByNamedTypeName,o,()=>new Set).add(`${e.renamedParentTypeName||e.originalParentTypeName}.${a}`),r&&!r.isAbstract&&e.internalGraph.addEdge(r,e.internalGraph.addOrUpdateNode(o),a),HD.BASE_SCALARS.has(o)||e.referencedTypeNames.add(o);let u=(0,gr.getOrThrowError)(e.parentDefinitionDataByTypeName,e.originalParentTypeName,aa.PARENT_DEFINITION_DATA);if(!(0,md.isParentDataCompositeOutputType)(u)){e.errors.push((0,Uu.unexpectedParentKindForChildError)(e.originalParentTypeName,'"Object" or "Interface"',(0,gr.kindToNodeType)(u.kind),a,(0,gr.kindToNodeType)(i.kind)));return}if(u.fieldDataByName.has(a)){e.errors.push((0,Uu.duplicateFieldDefinitionError)((0,gr.kindToNodeType)(u.kind),u.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:u});let E=e.addFieldDataByNode(u.fieldDataByName,i,l,d,p);n&&e.extractEventDirectivesToConfiguration(i,l);let h=E.directivesByName.get(aa.PROVIDES),v=E.directivesByName.get(aa.REQUIRES);if(!v&&!h)return;let R=e.entityDataByTypeName.get(e.originalParentTypeName),U=(0,gr.getValueOrDefault)(e.fieldSetDataByTypeName,e.originalParentTypeName,zD.newFieldSetData);h&&(0,zD.extractFieldSetValue)(a,U.provides,h),v&&(R||e.warnings.push((0,Ofe.requiresDefinedOnNonEntityFieldWarning)(`${e.originalParentTypeName}.${a}`,e.subgraphName)),(0,zD.extractFieldSetValue)(a,U.requires,v))},leave(){e.lastChildNodeKind=Gn.Kind.NULL}},InputObjectTypeDefinition:{enter(i){e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertInputObjectByNode(i)},leave(){e.lastParentNodeKind=Gn.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=Gn.Kind.NULL}},InputValueDefinition:{enter(i){let a=i.name.value;if(e.lastParentNodeKind!==Gn.Kind.INPUT_OBJECT_TYPE_DEFINITION&&e.lastParentNodeKind!==Gn.Kind.INPUT_OBJECT_TYPE_EXTENSION){e.argumentName=a;return}e.lastChildNodeKind=i.kind;let o=(0,vp.getTypeNodeNamedTypeName)(i.type);HD.BASE_SCALARS.has(o)||e.referencedTypeNames.add(o);let u=(0,gr.getOrThrowError)(e.parentDefinitionDataByTypeName,e.originalParentTypeName,aa.PARENT_DEFINITION_DATA);if(u.kind!==Gn.Kind.INPUT_OBJECT_TYPE_DEFINITION)return e.errors.push((0,Uu.unexpectedParentKindForChildError)(e.originalParentTypeName,"input object or input object extension",(0,gr.kindToNodeType)(u.kind),a,(0,gr.kindToNodeType)(i.kind))),!1;if(u.inputValueDataByName.has(a)){e.errors.push((0,Uu.duplicateInputFieldDefinitionError)(e.originalParentTypeName,a));return}e.addInputValueDataByNode({inputValueDataByName:u.inputValueDataByName,isArgument:!1,node:i,originalParentTypeName:e.originalParentTypeName})},leave(){e.argumentName="",e.lastChildNodeKind===Gn.Kind.INPUT_VALUE_DEFINITION&&(e.lastChildNodeKind=Gn.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=Gn.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=Gn.Kind.NULL}},ObjectTypeDefinition:{enter(i){if(i.name.value===aa.SERVICE_OBJECT)return!1;e.originalParentTypeName=i.name.value,n=(0,md.isTypeNameRootType)(e.originalParentTypeName,e.operationTypeNodeByTypeName),e.renamedParentTypeName=(0,md.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=Gn.Kind.NULL,e.isParentObjectExternal=!1,e.doesParentRequireFetchReasons=!1,e.isParentObjectShareable=!1}},ObjectTypeExtension:{enter(i){if(i.name.value===aa.SERVICE_OBJECT)return!1;e.originalParentTypeName=i.name.value,n=(0,md.isTypeNameRootType)(e.originalParentTypeName,e.operationTypeNodeByTypeName),e.renamedParentTypeName=(0,md.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=Gn.Kind.NULL,e.isParentObjectExternal=!1,e.doesParentRequireFetchReasons=!1,e.isParentObjectShareable=!1}},ScalarTypeDefinition:{enter(i){if(i.name.value===aa.ANY_SCALAR)return!1;e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertScalarByNode(i)},leave(){e.originalParentTypeName="",e.lastParentNodeKind=Gn.Kind.NULL}},ScalarTypeExtension:{enter(i){if(i.name.value===aa.ANY_SCALAR)return!1;e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertScalarByNode(i,!0)},leave(){e.originalParentTypeName="",e.lastParentNodeKind=Gn.Kind.NULL}},UnionTypeDefinition:{enter(i){if(i.name.value===aa.ENTITY_UNION)return!1;e.upsertUnionByNode(i)}},UnionTypeExtension:{enter(i){if(i.name.value===aa.ENTITY_UNION)return!1;e.upsertUnionByNode(i,!0)}}})}});var nb=F(ss=>{"use strict";m();T();N();Object.defineProperty(ss,"__esModule",{value:!0});ss.EntityDataNode=ss.RootNode=ss.GraphNode=ss.Edge=void 0;var JE=kr(),XD=class{constructor(t,n,r,i=!1){g(this,"edgeName");g(this,"id");g(this,"isAbstractEdge");g(this,"isExternal",!1);g(this,"isInaccessible",!1);g(this,"node");g(this,"visitedIndices",new Set);this.edgeName=i?`... on ${r}`:r,this.id=t,this.isAbstractEdge=i,this.node=n}isEdgeInaccessible(){return this.isInaccessible||this.node.isInaccessible}};ss.Edge=XD;var ZD=class{constructor(t,n,r){g(this,"externalFieldSets",new Set);g(this,"fieldDataByName",new Map);g(this,"headToTailEdges",new Map);g(this,"entityEdges",new Array);g(this,"nodeName");g(this,"hasEntitySiblings",!1);g(this,"isAbstract");g(this,"isInaccessible",!1);g(this,"isLeaf",!1);g(this,"isRootNode",!1);g(this,"satisfiedFieldSets",new Set);g(this,"subgraphName");g(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,JE.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,JE.add)(n,r.node.nodeName)&&this.getAccessibleEntityNodeNames(r.node,n)}};ss.GraphNode=ZD;var eb=class{constructor(t){g(this,"fieldDataByName",new Map);g(this,"headToSharedTailEdges",new Map);g(this,"isAbstract",!1);g(this,"isRootNode",!0);g(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}};ss.RootNode=eb;var tb=class{constructor(t){g(this,"fieldSetsByTargetSubgraphName",new Map);g(this,"targetSubgraphNamesByFieldSet",new Map);g(this,"typeName");this.typeName=t}addTargetSubgraphByFieldSet(t,n){(0,JE.getValueOrDefault)(this.targetSubgraphNamesByFieldSet,t,()=>new Set).add(n),(0,JE.getValueOrDefault)(this.fieldSetsByTargetSubgraphName,n,()=>new Set).add(t)}};ss.EntityDataNode=tb});var rb=F(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 yV=F(zE=>{"use strict";m();T();N();Object.defineProperty(zE,"__esModule",{value:!0});zE.MAX_RESOLVABILITY_PATH_SIZE=void 0;zE.MAX_RESOLVABILITY_PATH_SIZE=5});var ob=F(La=>{"use strict";m();T();N();Object.defineProperty(La,"__esModule",{value:!0});La.newRootFieldData=Rfe;La.generateResolvabilityErrorReasons=sb;La.generateSharedResolvabilityErrorReasons=IV;La.generateSelectionSetSegments=HE;La.renderSelectionSet=WE;La.generateRootResolvabilityErrors=Lfe;La.generateEntityResolvabilityErrors=Cfe;La.generateSharedEntityResolvabilityErrors=Ufe;La.getMultipliedRelativeOriginPaths=Bfe;var ib=Yi(),ab=kr(),br=rb(),Afe=yV();function Rfe(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(br.QUOTATION_JOIN)}".`,subgraphNames:n}}function Pfe(e,t){return e.isLeaf?e.name+` <-- -`:e.name+` { <-- -`+br.LITERAL_SPACE.repeat(t+3)+`... -`+br.LITERAL_SPACE.repeat(t+2)+`} -`}function sb({entityAncestorData:e,rootFieldData:t,unresolvableFieldData:n}){let{externalSubgraphNames:r,fieldName:i,typeName:a,subgraphNames:o}=n,u=[t.message];if(r.size>0){let l=o.difference(r);u.push(`The field "${a}.${i}" is defined (and resolvable) in the following subgraph`+(l.size>1?"s":"")+`: "${[...l].join(br.QUOTATION_JOIN)}".`,`The field "${a}.${i}" is defined "@external" (and unresolvable) in the following subgraph`+(r.size>1?"s":"")+`: "${[...r].join(br.QUOTATION_JOIN)}".`)}else u.push(`The field "${a}.${i}" is defined in the following subgraph`+(o.size>1?"s":"")+`: "${[...o].join(br.QUOTATION_JOIN)}".`);if(e){let l=!1;for(let[d,p]of e.fieldSetsByTargetSubgraphName)if(o.has(d)){l=!0;for(let E of p)e.subgraphName!==d&&u.push(`The entity ancestor "${e.typeName}" in subgraph "${e.subgraphName}" does not satisfy the key field set "${E}" to access subgraph "${d}".`)}l||u.push(`The entity ancestor "${e.typeName}" in subgraph "${e.subgraphName}" has no accessible target entities (resolvable @key directives) in the subgraphs where "${a}.${i}" is defined.`),u.push(`The type "${a}" is not a descendant of any other entity ancestors that can provide a shared route to access "${i}".`)}else t.subgraphNames.size>1&&u.push(`None of the subgraphs that shares the same root type field "${t.coords}" can provide a route to access "${i}".`),u.push(`The type "${a}" is not a descendant of an entity ancestor that can provide a shared route to access "${i}".`);return a!==(e==null?void 0:e.typeName)&&u.push(`The type "${a}" has no accessible target entities (resolvable @key directives) in any other subgraph, so accessing other subgraphs is not possible.`),u}function Ffe({entityAncestors:{subgraphNames:e,typeName:t},fieldSets:n,reasons:r,targetSubgraphName:i}){for(let a of n){let o=e.filter(l=>l!==i);if(o.length<1)continue;let u=o.length>1;r.push(`The entity ancestor${u?"s":""} "${t}" in subgraph${u?"s":""} "${o.join(br.QUOTATION_JOIN)}" do${u?"":"es"} not satisfy the key field set "${a}" to access subgraph "${i}".`)}}function wfe({coords:e,entityAncestors:{sourceSubgraphNamesBySatisfiedFieldSet:t,subgraphNames:n,typeName:r},fieldSets:i,reasons:a,targetSubgraphName:o}){let u=[],l=[];for(let d of i){let p=t.get(d);if(!p){let v=n.filter(U=>U!==o),R=v.length>1;u.push(`The entity ancestor${R?"s":""} "${r}" in subgraph${R?"s":""} "${v.join(br.QUOTATION_JOIN)}" do${R?"":"es"} not satisfy the key field set "${d}" to access subgraph "${o}".`);continue}let E=p.filter(v=>v!==o);if(E.length<1)continue;let h=E.length>1;l.push(`The entity ancestor "${r}" in subgraph${h?"s":""} "${E.join(br.QUOTATION_JOIN)}" ${h?"are":"is"} able to satisfy at least one key field set to access subgraph "${o}", but this still does not provide a route to resolve "${e}".`)}a.push(...l.length>0?l:u)}function IV({entityAncestors:e,rootFieldData:t,unresolvableFieldData:n}){let{externalSubgraphNames:r,fieldName:i,typeName:a,subgraphNames:o}=n,u=`${a}.${i}`,l=[t.message];if(r.size>0){let E=o.difference(r);l.push(`The field "${a}.${i}" is defined (and resolvable) in the following subgraph`+(E.size>1?"s":"")+`: "${[...E].join(br.QUOTATION_JOIN)}".`,`The field "${a}.${i}" is defined "@external" (and unresolvable) in the following subgraph`+(r.size>1?"s":"")+`: "${[...r].join(br.QUOTATION_JOIN)}".`)}else l.push(`The field "${a}.${i}" is defined in the following subgraph`+(o.size>1?"s":"")+`: "${[...o].join(br.QUOTATION_JOIN)}".`);let d=a===e.typeName,p=!1;for(let[E,h]of e.fieldSetsByTargetSubgraphName)o.has(E)&&(p=!0,d?Ffe({coords:u,entityAncestors:e,fieldSets:h,reasons:l,targetSubgraphName:E}):wfe({coords:u,entityAncestors:e,fieldSets:h,reasons:l,targetSubgraphName:E}));if(!p){let E=e.subgraphNames.length>1;l.push(`The entity ancestor "${e.typeName}" in subgraph${E?"s":""} "${e.subgraphNames.join(br.QUOTATION_JOIN)}" has no accessible target entities (resolvable @key directives) in the subgraphs where "${u}" is defined.`)}return l.push(`The type "${a}" is not a descendant of any other entity ancestors that can provide a shared route to access "${i}".`),a!==e.typeName&&l.push(`The type "${a}" has no accessible target entities (resolvable @key directives) in any other subgraph, so accessing other subgraphs is not possible.`),l}function HE(e,t=Afe.MAX_RESOLVABILITY_PATH_SIZE){let n=e.split(new RegExp("(?<=\\w)\\.")),r="",i="",a=!1,o=n.length-t*2;t>0&&n.length>t*2+1&&(a=!0,n.splice(t+1,o-1));for(let u=0;u{"use strict";m();T();N();Object.defineProperty(XE,"__esModule",{value:!0});XE.NodeResolutionData=void 0;var _V=Yi(),Mc,cb=class cb{constructor({fieldDataByName:t,isResolved:n=!1,resolvedDescendantNames:r,resolvedFieldNames:i,typeName:a}){ec(this,Mc,!1);g(this,"fieldDataByName");g(this,"resolvedDescendantNames");g(this,"resolvedFieldNames");g(this,"typeName");rI(this,Mc,n),this.fieldDataByName=t,this.resolvedDescendantNames=new Set(r),this.resolvedFieldNames=new Set(i),this.typeName=a}addData({resolvedDescendantNames:t,resolvedFieldNames:n}){for(let r of n)this.addResolvedFieldName(r);for(let r of t)this.resolvedDescendantNames.add(r)}addResolvedFieldName(t){if(!this.fieldDataByName.has(t))throw(0,_V.unexpectedEdgeFatalError)(this.typeName,[t]);this.resolvedFieldNames.add(t)}addExternalSubgraphName({fieldName:t,subgraphName:n}){let r=this.fieldDataByName.get(t);if(!r)throw(0,_V.unexpectedEdgeFatalError)(this.typeName,[t]);r.externalSubgraphNames.add(n)}copy(){return new cb({fieldDataByName:this.fieldDataByName,isResolved:nI(this,Mc),resolvedDescendantNames:this.resolvedDescendantNames,resolvedFieldNames:this.resolvedFieldNames,typeName:this.typeName})}areDescendantsResolved(){return this.fieldDataByName.size===this.resolvedDescendantNames.size}isResolved(){if(nI(this,Mc))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 rI(this,Mc,!0),!0}};Mc=new WeakMap;var ub=cb;XE.NodeResolutionData=ub});var vV=F(eh=>{"use strict";m();T();N();Object.defineProperty(eh,"__esModule",{value:!0});eh.EntityWalker=void 0;var kfe=ZE(),os=kr(),lb=class{constructor({encounteredEntityNodeNames:t,index:n,relativeOriginPaths:r,resDataByNodeName:i,resDataByRelativeOriginPath:a,resolvedPaths:o,subgraphNameByUnresolvablePath:u,visitedEntities:l}){g(this,"encounteredEntityNodeNames");g(this,"index");g(this,"resDataByNodeName");g(this,"resDataByRelativeOriginPath");g(this,"resolvedPaths");g(this,"selectionPathByEntityNodeName",new Map);g(this,"subgraphNameByUnresolvablePath");g(this,"visitedEntities");g(this,"relativeOriginPaths");this.encounteredEntityNodeNames=t,this.index=n,this.relativeOriginPaths=r,this.resDataByNodeName=i,this.resDataByRelativeOriginPath=a,this.resolvedPaths=o,this.subgraphNameByUnresolvablePath=u,this.visitedEntities=l}getNodeResolutionData({node:{fieldDataByName:t,nodeName:n,typeName:r},selectionPath:i}){let a=(0,os.getValueOrDefault)(this.resDataByNodeName,n,()=>new kfe.NodeResolutionData({fieldDataByName:t,typeName:r}));if(!this.relativeOriginPaths||this.relativeOriginPaths.size<1)return(0,os.getValueOrDefault)(this.resDataByRelativeOriginPath,i,()=>a.copy());let o;for(let u of this.relativeOriginPaths){let l=(0,os.getValueOrDefault)(this.resDataByRelativeOriginPath,`${u}${i}`,()=>a.copy());o!=null||(o=l)}return o}visitEntityDescendantEdge({edge:t,selectionPath:n}){if(t.isEdgeInaccessible())return{visited:!1,areDescendantsResolved:!1};if(t.isExternal)return{visited:!1,areDescendantsResolved:!1,isExternal:!0};if(t.node.isLeaf)return{visited:!0,areDescendantsResolved:!0};let r=`${n}.${t.edgeName}`;return this.getNodeResolutionData({node:t.node,selectionPath:r}).areDescendantsResolved()?{visited:!0,areDescendantsResolved:!0}:(0,os.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,os.getValueOrDefault)(this.selectionPathByEntityNodeName,t.node.nodeName,()=>r),{visited:!0,areDescendantsResolved:!1}):t.node.isAbstract?this.visitEntityDescendantAbstractNode({node:t.node,selectionPath:r}):this.visitEntityDescendantConcreteNode({node:t.node,selectionPath:r}):(this.removeUnresolvablePaths({selectionPath:r,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{areDescendantsResolved:u,isExternal:l,isRevisitedNode:d,visited:p}=this.visitEntityDescendantEdge({edge:o,selectionPath:n});i!=null||(i=d),this.propagateVisitedField({areDescendantsResolved:u,data:r,fieldName:a,isExternal:l,node:t,selectionPath:n,visited:p})}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,isExternal:i,node:a,selectionPath:o,visited:u}){if(i){n.addExternalSubgraphName({fieldName:r,subgraphName:a.subgraphName});return}if(!u)return;let l=(0,os.getValueOrDefault)(this.resDataByNodeName,a.nodeName,()=>n.copy());if(n.addResolvedFieldName(r),l.addResolvedFieldName(r),t&&n.resolvedDescendantNames.add(r),this.relativeOriginPaths){for(let p of this.relativeOriginPaths){let E=(0,os.getValueOrDefault)(this.resDataByRelativeOriginPath,`${p}${o}`,()=>n.copy());E.addResolvedFieldName(r),t&&(E.resolvedDescendantNames.add(r),this.removeUnresolvablePaths({selectionPath:`.${r}`,removeDescendantPaths:!0}))}return}let d=(0,os.getValueOrDefault)(this.resDataByRelativeOriginPath,o,()=>n.copy());d.addResolvedFieldName(r),t&&d.resolvedDescendantNames.add(r)}addUnresolvablePaths({selectionPath:t,subgraphName:n}){if(!this.relativeOriginPaths){if(this.resolvedPaths.has(t))return;(0,os.getValueOrDefault)(this.subgraphNameByUnresolvablePath,t,()=>n);return}for(let r of this.relativeOriginPaths){let i=`${r}${t}`;this.resolvedPaths.has(i)||(0,os.getValueOrDefault)(this.subgraphNameByUnresolvablePath,i,()=>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),this.resolvedPaths.add(r));return}for(let r of this.relativeOriginPaths){let i=`${r}${t}`;if(this.subgraphNameByUnresolvablePath.delete(i),this.resolvedPaths.add(i),n)for(let a of this.subgraphNameByUnresolvablePath.keys())a.startsWith(i)&&(this.subgraphNameByUnresolvablePath.delete(a),this.resolvedPaths.add(a))}}};eh.EntityWalker=lb});var SV=F(nh=>{"use strict";m();T();N();Object.defineProperty(nh,"__esModule",{value:!0});nh.RootFieldWalker=void 0;var us=kr(),th=ZE(),db=class{constructor({index:t,nodeResolutionDataByNodeName:n}){g(this,"index");g(this,"resDataByNodeName");g(this,"resDataByPath",new Map);g(this,"entityNodeNamesByPath",new Map);g(this,"pathsByEntityNodeName",new Map);g(this,"unresolvablePaths",new Set);this.index=t,this.resDataByNodeName=n}visitEdge({edge:t,selectionPath:n}){return t.isEdgeInaccessible()?{visited:!1,areDescendantsResolved:!1}:t.isExternal?{visited:!1,areDescendantsResolved:!1,isExternal:!0}:t.node.isLeaf?{visited:!0,areDescendantsResolved:!0}:(0,us.add)(t.visitedIndices,this.index)?t.node.hasEntitySiblings?this.resDataByNodeName.has(t.node.nodeName)?{visited:!0,areDescendantsResolved:!0}:((0,us.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{areDescendantsResolved:u,isExternal:l,visited:d}=this.visitEdge({edge:o,selectionPath:n});this.propagateVisitedField({areDescendantsResolved:u,data:i,fieldName:a,isExternal:l,node:t,selectionPath:n,visited:d})}return i.isResolved()?this.unresolvablePaths.delete(n):this.unresolvablePaths.add(n),{visited:!0,areDescendantsResolved:i.areDescendantsResolved()}}visitSharedEdge({edge:t,selectionPath:n}){return t.isEdgeInaccessible()?{visited:!1,areDescendantsResolved:!1}:t.isExternal?{visited:!1,areDescendantsResolved:!1,isExternal:!0}:t.node.isLeaf?{visited:!0,areDescendantsResolved:!0}:(0,us.add)(t.visitedIndices,this.index)?(t.node.hasEntitySiblings&&(0,us.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:u}=this.visitSharedEdge({edge:a,selectionPath:n});this.propagateSharedVisitedField({areDescendantsResolved:u,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,us.getValueOrDefault)(this.resDataByNodeName,t.nodeName,()=>new th.NodeResolutionData({fieldDataByName:t.fieldDataByName,typeName:t.typeName}));return(0,us.getValueOrDefault)(this.resDataByPath,n,()=>r.copy()),r}getSharedNodeResolutionData({node:t,selectionPath:n}){let r=(0,us.getValueOrDefault)(this.resDataByNodeName,t.nodeName,()=>new th.NodeResolutionData({fieldDataByName:t.fieldDataByName,typeName:t.typeName}));return(0,us.getValueOrDefault)(this.resDataByPath,n,()=>r.copy())}propagateVisitedField({areDescendantsResolved:t,data:n,fieldName:r,isExternal:i,node:a,selectionPath:o,visited:u}){if(i){n.addExternalSubgraphName({fieldName:r,subgraphName:a.subgraphName});return}if(!u)return;n.addResolvedFieldName(r);let l=(0,us.getValueOrDefault)(this.resDataByPath,o,()=>new th.NodeResolutionData({fieldDataByName:a.fieldDataByName,typeName:a.typeName}));l.addResolvedFieldName(r),t&&(n.resolvedDescendantNames.add(r),l.resolvedDescendantNames.add(r))}propagateSharedVisitedField({areDescendantsResolved:t,data:n,fieldName:r,node:i,visited:a}){if(!a)return;n.addResolvedFieldName(r);let o=(0,us.getValueOrDefault)(this.resDataByNodeName,i.nodeName,()=>new th.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}}};nh.RootFieldWalker=db});var pb=F(ih=>{"use strict";m();T();N();Object.defineProperty(ih,"__esModule",{value:!0});ih.Graph=void 0;var Td=nb(),Ed=ob(),Jr=kr(),rh=rb(),Mfe=vV(),xfe=SV(),fb=class{constructor(){g(this,"edgeId",-1);g(this,"entityDataNodeByTypeName",new Map);g(this,"nodeByNodeName",new Map);g(this,"nodesByTypeName",new Map);g(this,"resolvedRootFieldNodeNames",new Set);g(this,"rootNodeByTypeName",new Map);g(this,"subgraphName",rh.NOT_APPLICABLE);g(this,"resDataByNodeName",new Map);g(this,"resDataByRelativePathByEntity",new Map);g(this,"visitedEntitiesByOriginEntity",new Map);g(this,"walkerIndex",-1)}getRootNode(t){return(0,Jr.getValueOrDefault)(this.rootNodeByTypeName,t,()=>new Td.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 Td.GraphNode(this.subgraphName,t,n);return this.nodeByNodeName.set(r,a),(0,Jr.getValueOrDefault)(this.nodesByTypeName,t,()=>[]).push(a),a}addEdge(t,n,r,i=!1){if(t.isRootNode){let u=new Td.Edge(this.getNextEdgeId(),n,r);return(0,Jr.getValueOrDefault)(t.headToSharedTailEdges,r,()=>[]).push(u),u}let a=t,o=new Td.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 Td.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(rh.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){if(a.externalFieldSets.has(o))continue;let u=r.targetSubgraphNamesByFieldSet.get(o);for(let l of u!=null?u:[]){if(l===a.subgraphName)continue;let d=this.nodeByNodeName.get(`${l}.${a.typeName}`);d&&a.entityEdges.push(new Td.Edge(this.getNextEdgeId(),d,""))}}}}}setSubgraphName(t){this.subgraphName=t}visitEntity({encounteredEntityNodeNames:t,entityNodeName:n,relativeOriginPaths:r,resDataByRelativeOriginPath:i,resolvedPaths:a,subgraphNameByUnresolvablePath:o,visitedEntities:u}){let l=this.nodeByNodeName.get(n);if(!l)throw new Error(`Fatal: Could not find entity node for "${n}".`);u.add(n);let d=this.nodesByTypeName.get(l.typeName);if(!(d!=null&&d.length))throw new Error(`Fatal: Could not find any nodes for "${n}".`);let p=new Mfe.EntityWalker({encounteredEntityNodeNames:t,index:this.getNextWalkerIndex(),relativeOriginPaths:r,resDataByNodeName:this.resDataByNodeName,resDataByRelativeOriginPath:i,resolvedPaths:a,subgraphNameByUnresolvablePath:o,visitedEntities:u}),E=l.getAllAccessibleEntityNodeNames();for(let h of d){if(h.nodeName!==l.nodeName&&!E.has(h.nodeName))continue;let{areDescendantsResolved:v}=p.visitEntityDescendantConcreteNode({node:h,selectionPath:""});if(v)return}for(let[h,v]of p.selectionPathByEntityNodeName)this.visitEntity({encounteredEntityNodeNames:t,entityNodeName:h,relativeOriginPaths:(0,Ed.getMultipliedRelativeOriginPaths)({relativeOriginPaths:r,selectionPath:v}),resDataByRelativeOriginPath:i,resolvedPaths:a,subgraphNameByUnresolvablePath:o,visitedEntities:u})}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 xfe.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 u=(0,Jr.getOrThrowError)(t.fieldDataByName,n,"fieldDataByName"),l=(0,Ed.newRootFieldData)(t.typeName,n,u.subgraphNames);if(!o)return{errors:(0,Ed.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),u=(0,Jr.getOrThrowError)(i.resDataByPath,a,"rootFieldWalker.unresolvablePaths"),l=n.get(o);if(l){if(u.addData(l),l.addData(u),!u.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,Jr.getOrThrowError)(n,a,"resDataByRelativeOriginPath"),u=`${t}${a}`,l=i.resDataByPath.get(u);l&&(o.addData(l),l.addData(o)),o.isResolved()&&r.delete(a)}}validateSharedRootFieldEntities({rootFieldData:t,walker:n}){let r=new Set;for(let[i,a]of n.entityNodeNamesByPath){if(n.unresolvablePaths.size<1)return{success:!0};let o=new Map,u=new Map;for(let l of a)this.visitEntity({encounteredEntityNodeNames:new Set,entityNodeName:l,resDataByRelativeOriginPath:u,resolvedPaths:r,subgraphNameByUnresolvablePath:o,visitedEntities:new Set});if(this.consolidateUnresolvableRootWithEntityPaths({pathFromRoot:i,resDataByRelativeOriginPath:u,subgraphNameByUnresolvablePath:o,walker:n}),!(o.size<1)&&(this.consolidateUnresolvableEntityWithRootPaths({pathFromRoot:i,resDataByRelativeOriginPath:u,subgraphNameByUnresolvablePath:o,walker:n}),!(o.size<1)))return{errors:(0,Ed.generateSharedEntityResolvabilityErrors)({entityAncestors:this.getEntityAncestorCollection(a),pathFromRoot:i,resDataByPath:u,rootFieldData:t,subgraphNameByUnresolvablePath:o}),success:!1}}return n.unresolvablePaths.size>0?{errors:(0,Ed.generateRootResolvabilityErrors)({resDataByPath:n.resDataByPath,rootFieldData:t,unresolvablePaths:n.unresolvablePaths}),success:!1}:{success:!0}}validateRootFieldEntities({rootFieldData:t,walker:n}){var i;let r=new Set;for(let[a,o]of n.pathsByEntityNodeName){let u=new Map;if(this.resDataByNodeName.has(a))continue;let l=(0,Jr.getValueOrDefault)(this.resDataByRelativePathByEntity,a,()=>new Map);if(this.visitEntity({encounteredEntityNodeNames:new Set,entityNodeName:a,resDataByRelativeOriginPath:l,resolvedPaths:r,subgraphNameByUnresolvablePath:u,visitedEntities:(0,Jr.getValueOrDefault)(this.visitedEntitiesByOriginEntity,a,()=>new Set)}),!(u.size<1))return{errors:this.getEntityResolvabilityErrors({entityNodeName:a,pathFromRoot:(i=(0,Jr.getFirstEntry)(o))!=null?i:"",rootFieldData:t,subgraphNameByUnresolvablePath:u}),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,Jr.getOrThrowError)(this.resDataByRelativePathByEntity,t,"resDataByRelativePathByEntity"),o=t.split(rh.LITERAL_PERIOD)[1],{fieldSetsByTargetSubgraphName:u}=(0,Jr.getOrThrowError)(this.entityDataNodeByTypeName,o,"entityDataNodeByTypeName");return(0,Ed.generateEntityResolvabilityErrors)({entityAncestorData:{fieldSetsByTargetSubgraphName:u,subgraphName:"",typeName:o},pathFromRoot:n,resDataByPath:a,rootFieldData:r,subgraphNameByUnresolvablePath:i})}getEntityAncestorCollection(t){let n=(0,Jr.getFirstEntry)(t).split(rh.LITERAL_PERIOD)[1],{fieldSetsByTargetSubgraphName:r}=(0,Jr.getOrThrowError)(this.entityDataNodeByTypeName,n,"entityDataNodeByTypeName"),i=new Array,a=new Map;for(let o of t){let{satisfiedFieldSets:u,subgraphName:l}=(0,Jr.getOrThrowError)(this.nodeByNodeName,o,"nodeByNodeName");for(let d of u)(0,Jr.getValueOrDefault)(a,d,()=>[]).push(l);i.push(l)}return{fieldSetsByTargetSubgraphName:r,sourceSubgraphNamesBySatisfiedFieldSet:a,subgraphNames:i,typeName:n}}};ih.Graph=fb});var mb=F(ah=>{"use strict";m();T();N();Object.defineProperty(ah,"__esModule",{value:!0});ah.newFieldSetConditionData=qfe;ah.newConfigurationData=Vfe;function qfe({fieldCoordinatesPath:e,fieldPath:t}){return{fieldCoordinatesPath:e,fieldPath:t}}function Vfe(e,t){return{fieldNames:new Set,isRootNode:e,typeName:t}}});var Eb=F(xc=>{"use strict";m();T();N();Object.defineProperty(xc,"__esModule",{value:!0});xc.NormalizationFactory=void 0;xc.normalizeSubgraphFromString=Gfe;xc.normalizeSubgraph=bV;xc.batchNormalize=Qfe;var K=Se(),Dn=Br(),di=gp(),Vr=bu(),Yn=Ip(),re=Yi(),Sp=dd(),jfe=Jv(),_r=yE(),Kfe=GD(),ls=_p(),OV=WD(),cs=Qf(),Rt=$l(),ir=Du(),Tb=pb(),sh=_E(),H=Xn(),$fe=ql(),qe=kr(),Op=mb(),DV=vE();function Gfe({noLocation:e,options:t,sdlString:n}){let{error:r,documentNode:i}=(0,Dn.safeParse)(n,e);return r||!i?{errors:[(0,re.subgraphInvalidSyntaxError)(r)],success:!1,warnings:[]}:new Dp({internalGraph:new Tb.Graph,options:t}).normalize(i)}function bV({document:e,internalGraph:t,options:n,subgraphName:r}){return new Dp({internalGraph:t||new Tb.Graph,options:n,subgraphName:r}).normalize(e)}var bp,Nb,oh,AV,Dp=class{constructor({internalGraph:t,options:n,subgraphName:r}){ec(this,bp);ec(this,oh);g(this,"argumentName","");g(this,"authorizationDataByParentTypeName",new Map);g(this,"concreteTypeNamesByAbstractTypeName",new Map);g(this,"conditionalFieldDataByCoords",new Map);g(this,"configurationDataByTypeName",new Map);g(this,"costs",{fieldWeights:new Map,listSizes:new Map,typeWeights:new Map,directiveArgumentWeights:new Map});g(this,"customDirectiveDefinitionByName",new Map);g(this,"definedDirectiveNames",new Set);g(this,"directiveDefinitionByName",new Map);g(this,"directiveDefinitionDataByName",(0,di.initializeDirectiveDefinitionDatas)());g(this,"doesParentRequireFetchReasons",!1);g(this,"edfsDirectiveReferences",new Set);g(this,"errors",new Array);g(this,"entityDataByTypeName",new Map);g(this,"entityInterfaceDataByTypeName",new Map);g(this,"eventsConfigurations",new Map);g(this,"fieldSetDataByTypeName",new Map);g(this,"interfaceImplementationTypeNamesByInterfaceTypeName",new Map);g(this,"internalGraph");g(this,"invalidConfigureDescriptionNodeDatas",[]);g(this,"invalidORScopesCoords",new Set);g(this,"invalidRepeatedDirectiveNameByCoords",new Map);g(this,"isParentObjectExternal",!1);g(this,"isParentObjectShareable",!1);g(this,"isSubgraphEventDrivenGraph",!1);g(this,"isSubgraphVersionTwo",!1);g(this,"keyFieldSetDatasByTypeName",new Map);g(this,"lastParentNodeKind",K.Kind.NULL);g(this,"lastChildNodeKind",K.Kind.NULL);g(this,"options");g(this,"parentTypeNamesWithAuthDirectives",new Set);g(this,"keyFieldSetsByEntityTypeNameByFieldCoords",new Map);g(this,"keyFieldNamesByParentTypeName",new Map);g(this,"fieldCoordsByNamedTypeName",new Map);g(this,"operationTypeNodeByTypeName",new Map);g(this,"originalParentTypeName","");g(this,"originalTypeNameByRenamedTypeName",new Map);g(this,"overridesByTargetSubgraphName",new Map);g(this,"parentDefinitionDataByTypeName",new Map);g(this,"schemaData");g(this,"referencedDirectiveNames",new Set);g(this,"referencedTypeNames",new Set);g(this,"renamedParentTypeName","");g(this,"subgraphName");g(this,"unvalidatedExternalFieldCoords",new Set);g(this,"usesEdfsNatsStreamConfiguration",!1);g(this,"warnings",[]);this.options=n!=null?n:{},this.subgraphName=r||H.NOT_APPLICABLE,this.internalGraph=t,this.internalGraph.setSubgraphName(this.subgraphName),this.schemaData={directivesByName:new Map,kind:K.Kind.SCHEMA_DEFINITION,name:H.SCHEMA,operationTypes:new Map}}sanitizeDefaultValue({data:t,namedTypeData:n,node:r}){t.defaultValue&&(0,Rt.isEnumData)(n)&&(t.defaultValue=(0,K.visit)(t.defaultValue,{StringValue:{enter(i){return{kind:K.Kind.ENUM,value:i.value}}}}),r&&(r.defaultValue=t.defaultValue))}validateArguments(t,n){for(let r of t.argumentDataByName.values()){let i=(0,ir.getTypeNodeNamedTypeName)(r.type);if(Vr.BASE_SCALARS.has(i)){r.namedTypeKind=K.Kind.SCALAR_TYPE_DEFINITION;continue}let a=this.parentDefinitionDataByTypeName.get(i);if(a){if((0,Rt.isInputNodeKind)(a.kind)){r.namedTypeKind=a.kind,this.sanitizeDefaultValue({data:r,namedTypeData:a,node:r.node});continue}this.errors.push((0,re.invalidNamedTypeError)({data:r,namedTypeData:a,nodeType:`${(0,qe.kindToNodeType)(n)} field argument`}))}}}isTypeNameRootType(t){return H.ROOT_TYPE_NAMES.has(t)||this.operationTypeNodeByTypeName.has(t)}isArgumentValueValid(t,n){if(n.kind===K.Kind.NULL)return t.kind!==K.Kind.NON_NULL_TYPE;switch(t.kind){case K.Kind.LIST_TYPE:{if(n.kind!==K.Kind.LIST)return this.isArgumentValueValid((0,ir.getNamedTypeNode)(t.type),n);for(let r of n.values)if(!this.isArgumentValueValid(t.type,r))return!1;return!0}case K.Kind.NAMED_TYPE:switch(t.name.value){case H.BOOLEAN_SCALAR:return n.kind===K.Kind.BOOLEAN;case H.FLOAT_SCALAR:return n.kind===K.Kind.FLOAT||n.kind===K.Kind.INT;case H.ID_SCALAR:return n.kind===K.Kind.STRING||n.kind===K.Kind.INT;case H.INT_SCALAR:return n.kind===K.Kind.INT;case H.FIELD_SET_SCALAR:case H.SCOPE_SCALAR:case H.STRING_SCALAR:return n.kind===K.Kind.STRING;case H.LINK_IMPORT:return!0;case H.LINK_PURPOSE:return n.kind!==K.Kind.ENUM?!1:n.value===H.SECURITY||n.value===H.EXECUTION;case H.SUBSCRIPTION_FIELD_CONDITION:case H.SUBSCRIPTION_FILTER_CONDITION:return n.kind===K.Kind.OBJECT;default:{let r=this.parentDefinitionDataByTypeName.get(t.name.value);if(!r)return!1;if(r.kind===K.Kind.SCALAR_TYPE_DEFINITION)return!0;if(r.kind===K.Kind.ENUM_TYPE_DEFINITION){if(n.kind!==K.Kind.ENUM&&n.kind!==K.Kind.STRING)return!1;let i=r.enumValueDataByName.get(n.value);return i?!i.directivesByName.has(H.INACCESSIBLE):!1}return r.kind!==K.Kind.INPUT_OBJECT_TYPE_DEFINITION?!1:n.kind===K.Kind.OBJECT}}default:return this.isArgumentValueValid(t.type,n)}}handleFieldInheritableDirectives({directivesByName:t,fieldName:n,inheritedDirectiveNames:r,parentData:i}){this.doesParentRequireFetchReasons&&!t.has(H.REQUIRE_FETCH_REASONS)&&(t.set(H.REQUIRE_FETCH_REASONS,[(0,qe.generateSimpleDirective)(H.REQUIRE_FETCH_REASONS)]),r.add(H.REQUIRE_FETCH_REASONS)),(this.doesParentRequireFetchReasons||t.has(H.REQUIRE_FETCH_REASONS))&&i.requireFetchReasonsFieldNames.add(n),(0,Yn.isObjectDefinitionData)(i)&&(this.isParentObjectExternal&&!t.has(H.EXTERNAL)&&(t.set(H.EXTERNAL,[(0,qe.generateSimpleDirective)(H.EXTERNAL)]),r.add(H.EXTERNAL)),t.has(H.EXTERNAL)&&this.unvalidatedExternalFieldCoords.add(`${i.name}.${n}`),this.isParentObjectShareable&&!t.has(H.SHAREABLE)&&(t.set(H.SHAREABLE,[(0,qe.generateSimpleDirective)(H.SHAREABLE)]),r.add(H.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===H.SHAREABLE?(0,qe.getValueOrDefault)(n,o,()=>[a]):(0,qe.getValueOrDefault)(n,o,()=>[]).push(a),r&&(this.doesParentRequireFetchReasons||(this.doesParentRequireFetchReasons=o===H.REQUIRE_FETCH_REASONS),i&&(this.isParentObjectExternal||(this.isParentObjectExternal=o===H.EXTERNAL),this.isParentObjectShareable||(this.isParentObjectShareable=o===H.SHAREABLE)))}return n}validateDirective({data:t,definitionData:n,directiveCoords:r,directiveNode:i,errorMessages:a,requiredArgumentNames:o}){let u=i.name.value,l=t.kind===K.Kind.FIELD_DEFINITION?t.renamedParentTypeName||t.originalParentTypeName:t.name,d=u===H.AUTHENTICATED,p=u===H.COST,E=(0,Rt.isFieldData)(t),h=u===H.LIST_SIZE,v=u===H.OVERRIDE,R=u===H.REQUIRES_SCOPES,U=u===H.SEMANTIC_NON_NULL;if(!i.arguments||i.arguments.length<1)return n.requiredArgumentNames.size>0&&a.push((0,re.undefinedRequiredArgumentsErrorMessage)(u,o,[])),d&&this.handleAuthenticatedDirective(t,l),E&&(U&&((0,Rt.isTypeRequired)(t.type)?a.push((0,re.semanticNonNullLevelsNonNullErrorMessage)({typeString:(0,_r.printTypeNode)(t.type),value:"0"})):t.nullLevelsBySubgraphName.set(this.subgraphName,new Set([0]))),h&&!(0,Rt.isTypeNodeListType)(t.type)&&a.push((0,re.listSizeFieldMustReturnListOrUseSizedFieldsErrorMessage)(r,(0,_r.printTypeNode)(t.type))),!p&&!h&&this.recordDirectiveWeightOnField({data:t,definitionData:n,directiveName:u,directiveNode:i})),a;let q=new Set,X=new Set,te=new Set,ae=[];for(let _e of i.arguments){let Ee=_e.name.value;if(q.has(Ee)){X.add(Ee);continue}q.add(Ee);let Be=n.argumentTypeNodeByName.get(Ee);if(!Be){te.add(Ee);continue}if(!this.isArgumentValueValid(Be.typeNode,_e.value)){a.push((0,re.invalidArgumentValueErrorMessage)((0,K.print)(_e.value),`@${u}`,Ee,(0,_r.printTypeNode)(Be.typeNode)));continue}if(v&&E){this.handleOverrideDirective({data:t,directiveCoords:r,errorMessages:a,targetSubgraphName:_e.value.value});continue}if(U&&E){this.handleSemanticNonNullDirective({data:t,directiveNode:i,errorMessages:a});continue}!R||Ee!==H.SCOPES||this.extractRequiredScopes({directiveCoords:r,orScopes:_e.value.values,requiredScopes:ae})}p?this.handleCostDirective({data:t,directiveCoords:r,directiveNode:i,errorMessages:a}):E&&(h?this.handleListSizeDirective({data:t,directiveCoords:r,directiveNode:i,errorMessages:a}):this.recordDirectiveWeightOnField({data:t,definitionData:n,directiveName:u,directiveNode:i})),X.size>0&&a.push((0,re.duplicateDirectiveArgumentDefinitionsErrorMessage)([...X])),te.size>0&&a.push((0,re.unexpectedDirectiveArgumentErrorMessage)(u,[...te]));let me=(0,qe.getEntriesNotInHashSet)(o,q);if(me.length>0&&a.push((0,re.undefinedRequiredArgumentsErrorMessage)(u,o,me)),a.length>0||!R)return a;let ye=(0,qe.getValueOrDefault)(this.authorizationDataByParentTypeName,l,()=>(0,Yn.newAuthorizationData)(l));if(t.kind!==K.Kind.FIELD_DEFINITION)this.parentTypeNamesWithAuthDirectives.add(l),ye.requiredScopes.push(...ae);else{let _e=(0,qe.getValueOrDefault)(ye.fieldAuthDataByFieldName,t.name,()=>(0,Yn.newFieldAuthorizationData)(t.name));_e.inheritedData.requiredScopes.push(...ae),_e.originalData.requiredScopes.push(...ae)}return a}validateDirectives(t,n){var i;let r=new Set;for(let[a,o]of t.directivesByName){let u=this.directiveDefinitionDataByName.get(a);if(!u){r.has(a)||(this.errors.push((0,re.undefinedDirectiveError)(a,n)),r.add(a));continue}let l=[],d=(0,Dn.nodeKindToDirectiveLocation)(t.kind);if(u.locations.has(d)||l.push((0,re.invalidDirectiveLocationErrorMessage)(a,d)),o.length>1&&!u.isRepeatable){let E=(0,qe.getValueOrDefault)(this.invalidRepeatedDirectiveNameByCoords,n,()=>new Set);E.has(a)||(E.add(a),l.push((0,re.invalidRepeatedDirectiveErrorMessage)(a)))}let p=[...u.requiredArgumentNames];for(let E of(i=u.node.arguments)!=null?i:[]){if(!E.defaultValue)continue;let h=u.argumentTypeNodeByName.get(E.name.value);if(!h)continue;let v=this.parentDefinitionDataByTypeName.get((0,ir.getTypeNodeNamedTypeName)(h.typeNode));v&&this.sanitizeDefaultValue({data:h,namedTypeData:v,node:E})}for(let E=0;E0&&this.errors.push((0,re.invalidDirectiveError)(a,n,(0,qe.numberToOrdinal)(E+1),h))}}switch(t.kind){case K.Kind.ENUM_TYPE_DEFINITION:{for(let[a,o]of t.enumValueDataByName)this.validateDirectives(o,`${t.name}.${a}`);return}case K.Kind.FIELD_DEFINITION:{for(let[a,o]of t.argumentDataByName)this.validateDirectives(o,`${t.originalParentTypeName}.${t.name}(${a}: ...)`);return}case K.Kind.INPUT_OBJECT_TYPE_DEFINITION:{for(let[a,o]of t.inputValueDataByName)this.validateDirectives(o,`${t.name}.${a}`);return}case K.Kind.INTERFACE_TYPE_DEFINITION:case K.Kind.OBJECT_TYPE_DEFINITION:{for(let[a,o]of t.fieldDataByName)this.validateDirectives(o,`${t.name}.${a}`);return}default:return}}getNodeExtensionType(t,n,r=!1){return t?cs.ExtensionType.REAL:r||!n.has(H.EXTENDS)?cs.ExtensionType.NONE:cs.ExtensionType.EXTENDS}setParentDataExtensionType(t,n){switch(t.extensionType){case cs.ExtensionType.EXTENDS:case cs.ExtensionType.NONE:{if(n===cs.ExtensionType.REAL)return;this.errors.push((0,re.duplicateTypeDefinitionError)((0,qe.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 H.PROPAGATE:{if(o.value.kind!=K.Kind.BOOLEAN)return;r.propagate=o.value.value;break}case H.DESCRIPTION_OVERRIDE:{if(o.value.kind!=K.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(H.CONFIGURE_DESCRIPTION);n&&n.length==1&&this.extractConfigureDescriptionData(t,n[0])}extractImplementedInterfaceTypeNames(t,n){if(!t.interfaces)return n;let r=(0,Rt.isInterfaceNode)(t),i=t.name.value;for(let a of t.interfaces){let o=a.name.value;if(n.has(o)){this.errors.push((0,re.duplicateImplementedInterfaceError)((0,Yn.kindToConvertedTypeString)(t.kind),i,o));continue}r&&(0,qe.getValueOrDefault)(this.interfaceImplementationTypeNamesByInterfaceTypeName,o,()=>new Set).add(i),n.add(o)}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(H.KEY)),n.isInaccessible||(n.isInaccessible=n.directivesByName.has(H.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 o;if(!((o=n.arguments)!=null&&o.length))return t;let r=n.name.value,i=`${this.originalParentTypeName}.${r}`,a=new Set;for(let u of n.arguments){let l=u.name.value;if(t.has(l)){a.add(l);continue}this.addInputValueDataByNode({fieldName:r,inputValueDataByName:t,isArgument:!0,node:u,originalParentTypeName:this.originalParentTypeName,renamedParentTypeName:this.renamedParentTypeName})}return a.size>0&&this.errors.push((0,re.duplicateArgumentsError)(i,[...a])),t}addPersistedDirectiveDefinitionDataByNode(t,n,r){let i=n.name.value,a=`@${i}`,o=new Map;for(let u of n.arguments||[])this.addInputValueDataByNode({inputValueDataByName:o,isArgument:!0,node:u,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(!H.EXECUTABLE_DIRECTIVE_LOCATIONS.has(o)&&!Sp.TYPE_SYSTEM_DIRECTIVE_LOCATIONS.has(o)){n.push((0,re.invalidDirectiveDefinitionLocationErrorMessage)(o)),i.add(o);continue}if(r.has(o)){n.push((0,re.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 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,Rt.isTypeRequired)(l.type)&&!l.defaultValue&&a.add(d),r.set(d,{name:d,typeNode:l.type,defaultValue:l.defaultValue})}return u.size>0&&n.push((0,re.duplicateDirectiveDefinitionArgumentErrorMessage)([...u])),o}extractDirectiveArgumentCosts(t){var r;if(!t.arguments)return;let n=t.name.value;for(let i of t.arguments)if(i.directives)for(let a of i.directives){if(a.name.value!==H.COST)continue;let o=(r=a.arguments)==null?void 0:r.find(l=>l.name.value===H.WEIGHT);if(!o)continue;if(o.value.kind!==K.Kind.INT){let l=`@${n}(${i.name.value}: ...)`;this.errors.push((0,re.invalidDirectiveError)(H.COST,l,"1st",[(0,re.invalidArgumentValueErrorMessage)((0,K.print)(o.value),`@${H.COST}`,H.WEIGHT,"Int!")]));continue}let u=parseInt(o.value.value,10);this.costs.directiveArgumentWeights.set(`${n}.${i.name.value}`,u)}}addDirectiveDefinitionDataByNode(t){let n=t.name.value;if(this.definedDirectiveNames.has(n))return this.errors.push((0,re.duplicateDirectiveDefinitionError)(n)),!1;this.definedDirectiveNames.add(n),this.extractDirectiveArgumentCosts(t);let r=Vr.V2_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME.get(n);if(r)return this.directiveDefinitionByName.set(n,r),this.isSubgraphVersionTwo=!0,!1;if(Vr.DIRECTIVE_DEFINITION_BY_NAME.has(n))return!1;this.directiveDefinitionByName.set(n,t);let i=[],{argumentTypeNodeByName:a,optionalArgumentNames:o,requiredArgumentNames:u}=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:u}),i.length>0&&this.errors.push((0,re.invalidDirectiveDefinitionError)(n,i)),!0}addFieldDataByNode(t,n,r,i,a=new Set){let o=n.name.value,u=this.renamedParentTypeName||this.originalParentTypeName,l=`${this.originalParentTypeName}.${o}`,{isExternal:d,isShareable:p}=(0,Rt.isNodeExternalOrShareable)(n,!this.isSubgraphVersionTwo,i),E=(0,ir.getTypeNodeNamedTypeName)(n.type),h={argumentDataByName:r,configureDescriptionDataBySubgraphName:new Map,externalFieldDataBySubgraphName:new Map([[this.subgraphName,(0,Rt.newExternalFieldData)(d)]]),federatedCoords:`${u}.${o}`,inheritedDirectiveNames:a,isInaccessible:i.has(H.INACCESSIBLE),isShareableBySubgraphName:new Map([[this.subgraphName,p]]),kind:K.Kind.FIELD_DEFINITION,name:o,namedTypeKind:Vr.BASE_SCALARS.has(E)?K.Kind.SCALAR_TYPE_DEFINITION:K.Kind.NULL,namedTypeName:E,node:(0,ir.getMutableFieldNode)(n,l,this.errors),nullLevelsBySubgraphName:new Map,originalParentTypeName:this.originalParentTypeName,persistedDirectivesData:(0,Rt.newPersistedDirectivesData)(),renamedParentTypeName:u,subgraphNames:new Set([this.subgraphName]),type:(0,ir.getMutableTypeNode)(n.type,l,this.errors),directivesByName:i,description:(0,Dn.formatDescription)(n.description)};return Vr.BASE_SCALARS.has(h.namedTypeName)||this.referencedTypeNames.add(h.namedTypeName),this.extractConfigureDescriptionsData(h),t.set(o,h),h}addInputValueDataByNode({fieldName:t,inputValueDataByName:n,isArgument:r,node:i,originalParentTypeName:a,renamedParentTypeName:o}){let u=o||a,l=i.name.value,d=r?`${a}${t?`.${t}`:""}(${l}: ...)`:`${a}.${l}`;i.defaultValue&&!(0,Rt.areDefaultValuesCompatible)(i.type,i.defaultValue)&&this.errors.push((0,re.incompatibleInputValueDefaultValueTypeError)((r?H.ARGUMENT:H.INPUT_FIELD)+` "${l}"`,d,(0,_r.printTypeNode)(i.type),(0,K.print)(i.defaultValue)));let p=r?`${u}${t?`.${t}`:""}(${l}: ...)`:`${u}.${l}`,E=(0,ir.getTypeNodeNamedTypeName)(i.type),h={configureDescriptionDataBySubgraphName:new Map,directivesByName:this.extractDirectives(i,new Map),federatedCoords:p,fieldName:t,includeDefaultValue:!!i.defaultValue,isArgument:r,kind:r?K.Kind.ARGUMENT:K.Kind.INPUT_VALUE_DEFINITION,name:l,namedTypeKind:Vr.BASE_SCALARS.has(E)?K.Kind.SCALAR_TYPE_DEFINITION:K.Kind.NULL,namedTypeName:E,node:(0,ir.getMutableInputValueNode)(i,a,this.errors),originalCoords:d,originalParentTypeName:a,persistedDirectivesData:(0,Rt.newPersistedDirectivesData)(),renamedParentTypeName:u,requiredSubgraphNames:new Set((0,Rt.isTypeRequired)(i.type)?[this.subgraphName]:[]),subgraphNames:new Set([this.subgraphName]),type:(0,ir.getMutableTypeNode)(i.type,a,this.errors),defaultValue:i.defaultValue,description:(0,Dn.formatDescription)(i.description)};this.extractConfigureDescriptionsData(h),n.set(l,h)}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),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!==K.Kind.INTERFACE_TYPE_DEFINITION){this.errors.push((0,re.multipleNamedTypeDefinitionError)(r,(0,qe.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(H.KEY),isInaccessible:a.has(H.INACCESSIBLE),kind:K.Kind.INTERFACE_TYPE_DEFINITION,name:r,node:(0,ir.getMutableInterfaceNode)(t.name),persistedDirectivesData:(0,Rt.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 K.OperationTypeNode.MUTATION:return H.MUTATION;case K.OperationTypeNode.SUBSCRIPTION:return H.SUBSCRIPTION;default:return H.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),u=this.getNodeExtensionType(n,a,o);if(this.addInterfaceObjectFieldsByNode(t),i){if(i.kind!==K.Kind.OBJECT_TYPE_DEFINITION){this.errors.push((0,re.multipleNamedTypeDefinitionError)(r,(0,qe.kindToNodeType)(i.kind),(0,Yn.kindToConvertedTypeString)(t.kind)));return}this.updateCompositeOutputDataByNode(t,i,u),a.has(H.INTERFACE_OBJECT)||this.addConcreteTypeNamesForImplementedInterfaces(i.implementedInterfaceTypeNames,r);return}let l=this.extractImplementedInterfaceTypeNames(t,new Set);a.has(H.INTERFACE_OBJECT)||this.addConcreteTypeNamesForImplementedInterfaces(l,r);let d={configureDescriptionDataBySubgraphName:new Map,directivesByName:a,extensionType:u,fieldDataByName:new Map,implementedInterfaceTypeNames:l,isEntity:a.has(H.KEY),isInaccessible:a.has(H.INACCESSIBLE),isRootType:o,kind:K.Kind.OBJECT_TYPE_DEFINITION,name:r,node:(0,ir.getMutableObjectNode)(t.name),persistedDirectivesData:(0,Rt.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!==K.Kind.ENUM_TYPE_DEFINITION){this.errors.push((0,re.multipleNamedTypeDefinitionError)(r,(0,qe.kindToNodeType)(i.kind),(0,Yn.kindToConvertedTypeString)(t.kind)));return}this.setParentDataExtensionType(i,o),i.isInaccessible||(i.isInaccessible=a.has(H.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 u={appearances:1,configureDescriptionDataBySubgraphName:new Map,directivesByName:a,extensionType:o,enumValueDataByName:new Map,isInaccessible:a.has(H.INACCESSIBLE),kind:K.Kind.ENUM_TYPE_DEFINITION,name:r,node:(0,ir.getMutableEnumNode)(t.name),persistedDirectivesData:(0,Rt.newPersistedDirectivesData)(),subgraphNames:new Set([this.subgraphName]),description:(0,Dn.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),a=this.extractDirectives(t,(i==null?void 0:i.directivesByName)||new Map),o=this.getNodeExtensionType(n,a);if(i)return i.kind!==K.Kind.INPUT_OBJECT_TYPE_DEFINITION?(this.errors.push((0,re.multipleNamedTypeDefinitionError)(r,(0,qe.kindToNodeType)(i.kind),(0,Yn.kindToConvertedTypeString)(t.kind))),{success:!1}):(this.setParentDataExtensionType(i,o),i.isInaccessible||(i.isInaccessible=a.has(H.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 u={configureDescriptionDataBySubgraphName:new Map,directivesByName:a,extensionType:o,inputValueDataByName:new Map,isInaccessible:a.has(H.INACCESSIBLE),kind:K.Kind.INPUT_OBJECT_TYPE_DEFINITION,name:r,node:(0,ir.getMutableInputObjectNode)(t.name),persistedDirectivesData:(0,Rt.newPersistedDirectivesData)(),subgraphNames:new Set([this.subgraphName]),description:(0,Dn.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),a=this.extractDirectives(t,(i==null?void 0:i.directivesByName)||new Map),o=this.getNodeExtensionType(n,a);if(i){if(i.kind!==K.Kind.SCALAR_TYPE_DEFINITION){this.errors.push((0,re.multipleNamedTypeDefinitionError)(r,(0,qe.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 u={configureDescriptionDataBySubgraphName:new Map,directivesByName:a,extensionType:o,kind:K.Kind.SCALAR_TYPE_DEFINITION,name:r,node:(0,ir.getMutableScalarNode)(t.name),persistedDirectivesData:(0,Rt.newPersistedDirectivesData)(),subgraphNames:new Set([this.subgraphName]),description:(0,Dn.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 a=i.name.value;if(n.has(a)){this.errors.push((0,re.duplicateUnionMemberDefinitionError)(r,a));continue}(0,qe.getValueOrDefault)(this.concreteTypeNamesByAbstractTypeName,r,()=>new Set).add(a),Vr.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!==K.Kind.UNION_TYPE_DEFINITION){this.errors.push((0,re.multipleNamedTypeDefinitionError)(r,(0,qe.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 u={configureDescriptionDataBySubgraphName:new Map,directivesByName:a,extensionType:o,kind:K.Kind.UNION_TYPE_DEFINITION,memberByMemberTypeName:this.extractUnionMembers(t,new Map),name:r,node:(0,ir.getMutableUnionNode)(t.name),persistedDirectivesData:(0,Rt.newPersistedDirectivesData)(),subgraphNames:new Set([this.subgraphName]),description:(0,Dn.formatDescription)("description"in t?t.description:void 0)};this.extractConfigureDescriptionsData(u),this.parentDefinitionDataByTypeName.set(r,u)}extractKeyFieldSets(t,n){var a;let r=t.name.value;if(!((a=t.directives)!=null&&a.length)){this.errors.push((0,re.expectedEntityError)(r));return}let i=0;for(let o of t.directives){if(o.name.value!==H.KEY||(i+=1,!o.arguments||o.arguments.length<1))continue;let u,l=!1;for(let v of o.arguments){if(v.name.value===H.RESOLVABLE){v.value.kind===K.Kind.BOOLEAN&&!v.value.value&&(l=!0);continue}if(v.name.value!==H.FIELDS){u=void 0;break}if(v.value.kind!==K.Kind.STRING){u=void 0;break}u=v.value.value}if(u===void 0)continue;let{error:d,documentNode:p}=(0,Dn.safeParse)("{"+u+"}");if(d||!p){this.errors.push((0,re.invalidDirectiveError)(H.KEY,r,(0,qe.numberToOrdinal)(i),[(0,re.unparsableFieldSetErrorMessage)(u,d)]));continue}let E=(0,di.getNormalizedFieldSet)(p),h=n.get(E);h?h.isUnresolvable||(h.isUnresolvable=l):n.set(E,{documentNode:p,isUnresolvable:l,normalizedFieldSet:E,rawFieldSet:u})}}getFieldSetParent(t,n,r,i){if(!t)return{fieldSetParentData:n};let a=(0,qe.getOrThrowError)(n.fieldDataByName,r,`${i}.fieldDataByFieldName`),o=(0,ir.getTypeNodeNamedTypeName)(a.node.type),u=`${i}.${r}`;if(Vr.BASE_SCALARS.has(o))return{errorString:(0,re.incompatibleTypeWithProvidesErrorMessage)({fieldCoords:u,responseType:o,subgraphName:this.subgraphName})};let l=this.parentDefinitionDataByTypeName.get(o);return l?l.kind!==K.Kind.INTERFACE_TYPE_DEFINITION&&l.kind!==K.Kind.OBJECT_TYPE_DEFINITION?{errorString:(0,re.incompatibleTypeWithProvidesErrorMessage)({fieldCoords:u,responseType:o,subgraphName:this.subgraphName})}:{fieldSetParentData:l}:{errorString:(0,re.unknownNamedTypeErrorMessage)(u,o)}}validateConditionalFieldSet(t,n,r,i,a){let{error:o,documentNode:u}=(0,Dn.safeParse)("{"+n+"}");if(o||!u)return{errorMessages:[(0,re.unparsableFieldSetErrorMessage)(n,o)]};let l=this,d=[t],p=(0,di.getConditionalFieldSetDirectiveName)(i),E=[],h=`${a}.${r}`,v=(0,di.getInitialFieldCoordsPath)(i,h),R=[r],U=new Set,q=[],X=-1,te=!0,ae=r,me=!1;return(0,K.visit)(u,{Argument:{enter(){return!1}},Field:{enter(ye){var Ht,wn;let _e=d[X],Ee=_e.name;if(_e.kind===K.Kind.UNION_TYPE_DEFINITION)return q.push((0,re.invalidSelectionOnUnionErrorMessage)(n,v,Ee)),K.BREAK;let Be=ye.name.value,Z=`${Ee}.${Be}`;if(l.unvalidatedExternalFieldCoords.delete(Z),te)return q.push((0,re.invalidSelectionSetErrorMessage)(n,v,Ee,(0,qe.kindToNodeType)(_e.kind))),K.BREAK;if(v.push(Z),R.push(Be),ae=Be,Be===H.TYPENAME){if(i)return q.push((0,re.typeNameAlreadyProvidedErrorMessage)(Z,l.subgraphName)),K.BREAK;U.size<1&&El(Ht=l,bp,Nb).call(Ht,{currentFieldCoords:Z,directiveCoords:h,directiveName:p,fieldSet:n});return}let ge=_e.fieldDataByName.get(Be);if(!ge)return q.push((0,re.undefinedFieldInFieldSetErrorMessage)(n,Ee,Be)),K.BREAK;if(E[X].has(Be))return q.push((0,re.duplicateFieldInFieldSetErrorMessage)(n,Z)),K.BREAK;E[X].add(Be);let{isDefinedExternal:It,isUnconditionallyProvided:sn}=(0,qe.getOrThrowError)(ge.externalFieldDataBySubgraphName,l.subgraphName,`${Z}.externalFieldDataBySubgraphName`),Tn=It&&!sn;sn||(me=!0);let En=(0,ir.getTypeNodeNamedTypeName)(ge.node.type),$t=l.parentDefinitionDataByTypeName.get(En);if(Vr.BASE_SCALARS.has(En)||($t==null?void 0:$t.kind)===K.Kind.SCALAR_TYPE_DEFINITION||($t==null?void 0:$t.kind)===K.Kind.ENUM_TYPE_DEFINITION){if(U.size<1&&!It){El(wn=l,bp,Nb).call(wn,{currentFieldCoords:Z,directiveCoords:h,directiveName:p,fieldSet:n});return}if(U.size<1&&sn){l.isSubgraphVersionTwo?q.push((0,re.fieldAlreadyProvidedErrorMessage)(Z,l.subgraphName,p)):l.warnings.push((0,ls.fieldAlreadyProvidedWarning)(Z,p,h,l.subgraphName));return}if(!Tn&&!i)return;let Ar=(0,qe.getValueOrDefault)(l.conditionalFieldDataByCoords,Z,Rt.newConditionalFieldData),zn=(0,Op.newFieldSetConditionData)({fieldCoordinatesPath:[...v],fieldPath:[...R]});i?Ar.providedBy.push(zn):Ar.requiredBy.push(zn);return}if(!$t)return q.push((0,re.unknownTypeInFieldSetErrorMessage)(n,Z,En)),K.BREAK;if(It&&(i&&(0,qe.getValueOrDefault)(l.conditionalFieldDataByCoords,Z,Rt.newConditionalFieldData).providedBy.push((0,Op.newFieldSetConditionData)({fieldCoordinatesPath:[...v],fieldPath:[...R]})),U.add(Z)),$t.kind===K.Kind.OBJECT_TYPE_DEFINITION||$t.kind===K.Kind.INTERFACE_TYPE_DEFINITION||$t.kind===K.Kind.UNION_TYPE_DEFINITION){te=!0,d.push($t);return}},leave(){U.delete(v.pop()||""),R.pop()}},InlineFragment:{enter(ye){let _e=d[X],Ee=_e.name,Be=v.length<1?t.name:v[v.length-1];if(!ye.typeCondition)return q.push((0,re.inlineFragmentWithoutTypeConditionErrorMessage)(n,Be)),K.BREAK;let Z=ye.typeCondition.name.value;if(Z===Ee){d.push(_e),te=!0;return}if(!(0,Dn.isKindAbstract)(_e.kind))return q.push((0,re.invalidInlineFragmentTypeErrorMessage)(n,v,Z,Ee)),K.BREAK;let ge=l.parentDefinitionDataByTypeName.get(Z);if(!ge)return q.push((0,re.unknownInlineFragmentTypeConditionErrorMessage)(n,v,Ee,Z)),K.BREAK;switch(te=!0,ge.kind){case K.Kind.INTERFACE_TYPE_DEFINITION:{if(!ge.implementedInterfaceTypeNames.has(Ee))break;d.push(ge);return}case K.Kind.OBJECT_TYPE_DEFINITION:{let It=l.concreteTypeNamesByAbstractTypeName.get(Ee);if(!It||!It.has(Z))break;d.push(ge);return}case K.Kind.UNION_TYPE_DEFINITION:{d.push(ge);return}default:return q.push((0,re.invalidInlineFragmentTypeConditionTypeErrorMessage)(n,v,Ee,Z,(0,qe.kindToNodeType)(ge.kind))),K.BREAK}return q.push((0,re.invalidInlineFragmentTypeConditionErrorMessage)(n,v,Z,(0,qe.kindToNodeType)(_e.kind),Ee)),K.BREAK}},SelectionSet:{enter(){if(!te){let ye=d[X];if(ye.kind===K.Kind.UNION_TYPE_DEFINITION)return q.push((0,re.unparsableFieldSetSelectionErrorMessage)(n,ae)),K.BREAK;if(ae===H.TYPENAME)return q.push((0,re.invalidSelectionSetDefinitionErrorMessage)(n,v,H.STRING_SCALAR,(0,qe.kindToNodeType)(K.Kind.SCALAR_TYPE_DEFINITION))),K.BREAK;let _e=ye.fieldDataByName.get(ae);if(!_e)return q.push((0,re.undefinedFieldInFieldSetErrorMessage)(n,ye.name,ae)),K.BREAK;let Ee=(0,ir.getTypeNodeNamedTypeName)(_e.node.type),Be=l.parentDefinitionDataByTypeName.get(Ee),Z=Be?Be.kind:K.Kind.SCALAR_TYPE_DEFINITION;return q.push((0,re.invalidSelectionSetDefinitionErrorMessage)(n,v,Ee,(0,qe.kindToNodeType)(Z))),K.BREAK}if(X+=1,te=!1,X<0||X>=d.length)return q.push((0,re.unparsableFieldSetSelectionErrorMessage)(n,ae)),K.BREAK;E.push(new Set)},leave(){if(te){let ye=d[X+1];q.push((0,re.invalidSelectionSetErrorMessage)(n,v,ye.name,(0,qe.kindToNodeType)(ye.kind))),te=!1}X-=1,d.pop(),E.pop()}}}),q.length>0||!me?{errorMessages:q}:{configuration:{fieldName:r,selectionSet:(0,di.getNormalizedFieldSet)(u)},errorMessages:q}}validateProvidesOrRequires(t,n,r){let i=[],a=[],o=(0,Rt.getParentTypeName)(t);for(let[u,l]of n){let{fieldSetParentData:d,errorString:p}=this.getFieldSetParent(r,t,u,o),E=`${o}.${u}`;if(p){i.push(p);continue}if(!d)continue;let{errorMessages:h,configuration:v}=this.validateConditionalFieldSet(d,l,u,r,o);if(h.length>0){i.push(` On field "${E}": - -`+h.join(H.HYPHEN_JOIN));continue}v&&a.push(v)}if(i.length>0){this.errors.push((0,re.invalidProvidesOrRequiresDirectivesError)((0,di.getConditionalFieldSetDirectiveName)(r),i));return}if(a.length>0)return a}validateInterfaceImplementations(t){if(t.implementedInterfaceTypeNames.size<1)return;let n=t.directivesByName.has(H.INACCESSIBLE),r=new Map,i=new Map,a=!1;for(let o of t.implementedInterfaceTypeNames){let u=this.parentDefinitionDataByTypeName.get(o);if(Vr.BASE_SCALARS.has(o)&&this.referencedTypeNames.add(o),!u)continue;if(u.kind!==K.Kind.INTERFACE_TYPE_DEFINITION){i.set(u.name,(0,qe.kindToNodeType)(u.kind));continue}if(t.name===u.name){a=!0;continue}let l={invalidFieldImplementations:new Map,unimplementedFields:[]},d=!1;for(let[p,E]of u.fieldDataByName){this.unvalidatedExternalFieldCoords.delete(`${t.name}.${p}`);let h=!1,v=t.fieldDataByName.get(p);if(!v){d=!0,l.unimplementedFields.push(p);continue}let R={invalidAdditionalArguments:new Set,invalidImplementedArguments:[],isInaccessible:!1,originalResponseType:(0,_r.printTypeNode)(E.node.type),unimplementedArguments:new Set};(0,Rt.isTypeValidImplementation)({concreteTypeNamesByAbstractTypeName:this.concreteTypeNamesByAbstractTypeName,implementationType:v.node.type,interfaceImplementationTypeNamesByInterfaceTypeName:this.interfaceImplementationTypeNamesByInterfaceTypeName,originalType:E.node.type})||(d=!0,h=!0,R.implementedResponseType=(0,_r.printTypeNode)(v.node.type));let U=new Set;for(let[q,X]of E.argumentDataByName){U.add(q);let te=v.argumentDataByName.get(q);if(!te){d=!0,h=!0,R.unimplementedArguments.add(q);continue}let ae=(0,_r.printTypeNode)(te.type),me=(0,_r.printTypeNode)(X.type);me!==ae&&(d=!0,h=!0,R.invalidImplementedArguments.push({actualType:ae,argumentName:q,expectedType:me}))}for(let[q,X]of v.argumentDataByName)U.has(q)||X.type.kind===K.Kind.NON_NULL_TYPE&&(d=!0,h=!0,R.invalidAdditionalArguments.add(q));!n&&v.isInaccessible&&!E.isInaccessible&&(d=!0,h=!0,R.isInaccessible=!0),h&&l.invalidFieldImplementations.set(p,R)}d&&r.set(o,l)}i.size>0&&this.errors.push((0,re.invalidImplementedTypeError)(t.name,i)),a&&this.errors.push((0,re.selfImplementationError)(t.name)),r.size>0&&this.errors.push((0,re.invalidInterfaceImplementationError)(t.name,(0,qe.kindToNodeType)(t.kind),r))}handleAuthenticatedDirective(t,n){let r=(0,qe.getValueOrDefault)(this.authorizationDataByParentTypeName,n,()=>(0,Yn.newAuthorizationData)(n));if(t.kind===K.Kind.FIELD_DEFINITION){let i=(0,qe.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,re.equivalentSourceAndTargetOverrideErrorMessage)(i,n));return}let a=(0,qe.getValueOrDefault)(this.overridesByTargetSubgraphName,i,()=>new Map);(0,qe.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 K.Kind.LIST_TYPE:{o+=1,a=a.type;break}case K.Kind.NON_NULL_TYPE:{i.add(o),a=a.type;break}default:{a=null;break}}let u=(E=n.arguments)==null?void 0:E.find(h=>h.name.value===H.LEVELS);if(!u||u.value.kind!==K.Kind.LIST){r.push(re.semanticNonNullArgumentErrorMessage);return}let l=u.value.values,d=(0,_r.printTypeNode)(t.type),p=new Set;for(let{value:h}of l){let v=parseInt(h,10);if(Number.isNaN(v)){r.push((0,re.semanticNonNullLevelsNaNIndexErrorMessage)(h));continue}if(v<0||v>o){r.push((0,re.semanticNonNullLevelsIndexOutOfBoundsErrorMessage)({maxIndex:o,typeString:d,value:h}));continue}if(!i.has(v)){p.add(v);continue}r.push((0,re.semanticNonNullLevelsNonNullErrorMessage)({typeString:d,value:h}))}t.nullLevelsBySubgraphName.set(this.subgraphName,p)}getOrCreateFieldWeight(t,n){let r=`${t}.${n}`;return(0,qe.getValueOrDefault)(this.costs.fieldWeights,r,()=>({typeName:t,fieldName:n,argumentWeights:new Map,directiveArgumentWeights:new Map}))}handleCostDirective({data:t,directiveCoords:n,directiveNode:r,errorMessages:i}){var u;let a=(u=r.arguments)==null?void 0:u.find(l=>l.name.value===H.WEIGHT);if(!a||a.value.kind!==K.Kind.INT)return;let o=parseInt(a.value.value,10);switch(t.kind){case K.Kind.OBJECT_TYPE_DEFINITION:case K.Kind.SCALAR_TYPE_DEFINITION:case K.Kind.ENUM_TYPE_DEFINITION:this.costs.typeWeights.set(t.name,o);break;case K.Kind.FIELD_DEFINITION:{let l=t.renamedParentTypeName||t.originalParentTypeName,d=this.parentDefinitionDataByTypeName.get(l);if(!d)break;if(d.kind===K.Kind.INTERFACE_TYPE_DEFINITION){i.push((0,re.costOnInterfaceFieldErrorMessage)(n));break}let p=this.getOrCreateFieldWeight(l,t.name);p.weight=o;break}case K.Kind.INPUT_VALUE_DEFINITION:case K.Kind.ARGUMENT:{let l=t;if(l.isArgument&&l.fieldName){let d=l.renamedParentTypeName||l.originalParentTypeName,p=this.parentDefinitionDataByTypeName.get(d);if(!p)break;if(p.kind===K.Kind.INTERFACE_TYPE_DEFINITION){i.push((0,re.costOnInterfaceFieldErrorMessage)(n));break}this.getOrCreateFieldWeight(d,l.fieldName).argumentWeights.set(l.name,o)}else{let d=l.renamedParentTypeName||l.originalParentTypeName,p=this.getOrCreateFieldWeight(d,l.name);p.weight=o}break}}}recordDirectiveWeightOnField({data:t,definitionData:n,directiveName:r,directiveNode:i}){var l,d;let a=t.renamedParentTypeName||t.originalParentTypeName,o=this.parentDefinitionDataByTypeName.get(a);if(!o||o.kind===K.Kind.INTERFACE_TYPE_DEFINITION)return;let u=new Map;for(let p of(l=i.arguments)!=null?l:[])u.set(p.name.value,p.value);for(let[p,E]of n.argumentTypeNodeByName){let h=`${r}.${p}`,v=this.costs.directiveArgumentWeights.get(h);if(v===void 0)continue;let R=u.get(p);if(R){if(R.kind===K.Kind.NULL)continue}else if(!E.defaultValue||E.defaultValue.kind===K.Kind.NULL)continue;let U=this.getOrCreateFieldWeight(a,t.name),q=(d=U.directiveArgumentWeights.get(h))!=null?d:0;U.directiveArgumentWeights.set(h,q+v)}}handleListSizeDirective({data:t,directiveCoords:n,directiveNode:r,errorMessages:i}){let a=r.arguments;if(!a)return;let o=!1,u=t.renamedParentTypeName||t.originalParentTypeName,l={typeName:u,fieldName:t.name,slicingArguments:[],sizedFields:[],requireOneSlicingArgument:!0};for(let p of a)switch(p.name.value){case H.ASSUMED_SIZE:p.value.kind===K.Kind.INT&&(l.assumedSize=parseInt(p.value.value,10));break;case H.REQUIRE_ONE_SLICING_ARGUMENT:p.value.kind===K.Kind.BOOLEAN&&(l.requireOneSlicingArgument=p.value.value);break;case H.SLICING_ARGUMENTS:{let h;if(p.value.kind===K.Kind.LIST)h=p.value.values;else if(p.value.kind===K.Kind.STRING)h=[p.value];else continue;for(let v of h){if(v.kind!==K.Kind.STRING)continue;let R=v.value,U=t.argumentDataByName.get(R);if(!U){i.push((0,re.listSizeInvalidSlicingArgumentErrorMessage)(n,R));continue}if((U.type.kind===K.Kind.NON_NULL_TYPE?U.type.type:U.type).kind===K.Kind.LIST_TYPE||U.namedTypeName!==H.INT_SCALAR){i.push((0,re.listSizeSlicingArgumentNotIntErrorMessage)(n,R,(0,_r.printTypeNode)(U.type)));continue}l.slicingArguments.push(R)}break}case H.SIZED_FIELDS:{let h;if(p.value.kind===K.Kind.LIST)h=p.value.values;else if(p.value.kind===K.Kind.STRING)h=[p.value];else continue;if(h.length<1)continue;o=!0;let v=t.namedTypeName,R=this.parentDefinitionDataByTypeName.get(v);if(!R||!(0,Rt.isParentDataCompositeOutputType)(R)){i.push((0,re.listSizeSizedFieldsInvalidReturnTypeErrorMessage)(n,v));continue}for(let U of h){if(U.kind!==K.Kind.STRING)continue;let q=U.value,X=R.fieldDataByName.get(q);if(!X){i.push((0,re.listSizeSizedFieldNotFoundErrorMessage)(n,q,v));continue}if(!(0,Rt.isTypeNodeListType)(X.type)){i.push((0,re.listSizeSizedFieldNotListErrorMessage)(n,q,v,(0,_r.printTypeNode)(X.type)));continue}l.sizedFields.push(q)}break}}if(!o&&!(0,Rt.isTypeNodeListType)(t.type)&&i.push((0,re.listSizeFieldMustReturnListOrUseSizedFieldsErrorMessage)(n,(0,_r.printTypeNode)(t.type))),o&&(0,Rt.isTypeNodeListType)(t.type)&&i.push((0,re.listSizeSizedFieldsOnListsErrorMessage)(n,(0,_r.printTypeNode)(t.type))),l.assumedSize!==void 0&&l.slicingArguments.length>0)if(l.requireOneSlicingArgument)i.push((0,re.listSizeAssumedSizeWithRequiredSlicingArgumentErrorMessage)(n));else for(let p of l.slicingArguments){let E=t.argumentDataByName.get(p);E!=null&&E.defaultValue&&i.push((0,re.listSizeAssumedSizeSlicingArgDefaultErrorMessage)(n,p))}let d=`${u}.${t.name}`;this.costs.listSizes.set(d,l)}extractRequiredScopes({directiveCoords:t,orScopes:n,requiredScopes:r}){if(n.length>Vr.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=H.DEFAULT_EDFS_PROVIDER_ID;for(let u of t.arguments||[])switch(u.name.value){case H.TOPIC:{if(u.value.kind!==K.Kind.STRING||u.value.value.length<1){i.push((0,re.invalidEventSubjectErrorMessage)(H.TOPIC));continue}(0,di.validateArgumentTemplateReferences)(u.value.value,n,i),a.push(u.value.value);break}case H.PROVIDER_ID:{if(u.value.kind!==K.Kind.STRING||u.value.value.length<1){i.push(re.invalidEventProviderIdErrorMessage);continue}o=u.value.value;break}}if(!(i.length>0))return{fieldName:r,providerId:o,providerType:H.PROVIDER_TYPE_KAFKA,topics:a,type:H.PUBLISH}}getKafkaSubscribeConfiguration(t,n,r,i){let a=[],o=H.DEFAULT_EDFS_PROVIDER_ID;for(let u of t.arguments||[])switch(u.name.value){case H.TOPICS:{if(u.value.kind!==K.Kind.LIST){i.push((0,re.invalidEventSubjectsErrorMessage)(H.TOPICS));continue}for(let l of u.value.values){if(l.kind!==K.Kind.STRING||l.value.length<1){i.push((0,re.invalidEventSubjectsItemErrorMessage)(H.TOPICS));break}(0,di.validateArgumentTemplateReferences)(l.value,n,i),a.push(l.value)}break}case H.PROVIDER_ID:{if(u.value.kind!==K.Kind.STRING||u.value.value.length<1){i.push(re.invalidEventProviderIdErrorMessage);continue}o=u.value.value;break}}if(!(i.length>0))return{fieldName:r,providerId:o,providerType:H.PROVIDER_TYPE_KAFKA,topics:a,type:H.SUBSCRIBE}}getNatsPublishAndRequestConfiguration(t,n,r,i,a){let o=[],u=H.DEFAULT_EDFS_PROVIDER_ID;for(let l of n.arguments||[])switch(l.name.value){case H.SUBJECT:{if(l.value.kind!==K.Kind.STRING||l.value.value.length<1){a.push((0,re.invalidEventSubjectErrorMessage)(H.SUBJECT));continue}(0,di.validateArgumentTemplateReferences)(l.value.value,r,a),o.push(l.value.value);break}case H.PROVIDER_ID:{if(l.value.kind!==K.Kind.STRING||l.value.value.length<1){a.push(re.invalidEventProviderIdErrorMessage);continue}u=l.value.value;break}}if(!(a.length>0))return{fieldName:i,providerId:u,providerType:H.PROVIDER_TYPE_NATS,subjects:o,type:t}}getNatsSubscribeConfiguration(t,n,r,i){let a=[],o=H.DEFAULT_EDFS_PROVIDER_ID,u=sh.DEFAULT_CONSUMER_INACTIVE_THRESHOLD,l="",d="";for(let p of t.arguments||[])switch(p.name.value){case H.SUBJECTS:{if(p.value.kind!==K.Kind.LIST){i.push((0,re.invalidEventSubjectsErrorMessage)(H.SUBJECTS));continue}for(let E of p.value.values){if(E.kind!==K.Kind.STRING||E.value.length<1){i.push((0,re.invalidEventSubjectsItemErrorMessage)(H.SUBJECTS));break}(0,di.validateArgumentTemplateReferences)(E.value,n,i),a.push(E.value)}break}case H.PROVIDER_ID:{if(p.value.kind!==K.Kind.STRING||p.value.value.length<1){i.push(re.invalidEventProviderIdErrorMessage);continue}o=p.value.value;break}case H.STREAM_CONFIGURATION:{if(this.usesEdfsNatsStreamConfiguration=!0,p.value.kind!==K.Kind.OBJECT||p.value.fields.length<1){i.push(re.invalidNatsStreamInputErrorMessage);continue}let E=!0,h=new Set,v=new Set(Sp.STREAM_CONFIGURATION_FIELD_NAMES),R=new Set([H.CONSUMER_NAME,H.STREAM_NAME]),U=new Set,q=new Set;for(let X of p.value.fields){let te=X.name.value;if(!Sp.STREAM_CONFIGURATION_FIELD_NAMES.has(te)){h.add(te),E=!1;continue}if(v.has(te))v.delete(te);else{U.add(te),E=!1;continue}switch(R.has(te)&&R.delete(te),te){case H.CONSUMER_NAME:if(X.value.kind!=K.Kind.STRING||X.value.value.length<1){q.add(te),E=!1;continue}l=X.value.value;break;case H.STREAM_NAME:if(X.value.kind!=K.Kind.STRING||X.value.value.length<1){q.add(te),E=!1;continue}d=X.value.value;break;case H.CONSUMER_INACTIVE_THRESHOLD:if(X.value.kind!=K.Kind.INT){i.push((0,re.invalidArgumentValueErrorMessage)((0,K.print)(X.value),"edfs__NatsStreamConfiguration","consumerInactiveThreshold",H.INT_SCALAR)),E=!1;continue}try{u=parseInt(X.value.value,10)}catch(ae){i.push((0,re.invalidArgumentValueErrorMessage)((0,K.print)(X.value),"edfs__NatsStreamConfiguration","consumerInactiveThreshold",H.INT_SCALAR)),E=!1}break}}(!E||R.size>0)&&i.push((0,re.invalidNatsStreamInputFieldsErrorMessage)([...R],[...U],[...q],[...h]))}}if(!(i.length>0))return u<0?(u=sh.DEFAULT_CONSUMER_INACTIVE_THRESHOLD,this.warnings.push((0,ls.consumerInactiveThresholdInvalidValueWarning)(this.subgraphName,`The value has been set to ${sh.DEFAULT_CONSUMER_INACTIVE_THRESHOLD}.`))):u>$fe.MAX_INT32&&(u=0,this.warnings.push((0,ls.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:H.PROVIDER_TYPE_NATS,subjects:a,type:H.SUBSCRIBE},l&&d?{streamConfiguration:{consumerInactiveThreshold:u,consumerName:l,streamName:d}}:{})}getRedisPublishConfiguration(t,n,r,i){let a=[],o=H.DEFAULT_EDFS_PROVIDER_ID;for(let u of t.arguments||[])switch(u.name.value){case H.CHANNEL:{if(u.value.kind!==K.Kind.STRING||u.value.value.length<1){i.push((0,re.invalidEventSubjectErrorMessage)(H.CHANNEL));continue}(0,di.validateArgumentTemplateReferences)(u.value.value,n,i),a.push(u.value.value);break}case H.PROVIDER_ID:{if(u.value.kind!==K.Kind.STRING||u.value.value.length<1){i.push(re.invalidEventProviderIdErrorMessage);continue}o=u.value.value;break}}if(!(i.length>0))return{fieldName:r,providerId:o,providerType:H.PROVIDER_TYPE_REDIS,channels:a,type:H.PUBLISH}}getRedisSubscribeConfiguration(t,n,r,i){let a=[],o=H.DEFAULT_EDFS_PROVIDER_ID;for(let u of t.arguments||[])switch(u.name.value){case H.CHANNELS:{if(u.value.kind!==K.Kind.LIST){i.push((0,re.invalidEventSubjectsErrorMessage)(H.CHANNELS));continue}for(let l of u.value.values){if(l.kind!==K.Kind.STRING||l.value.length<1){i.push((0,re.invalidEventSubjectsItemErrorMessage)(H.CHANNELS));break}(0,di.validateArgumentTemplateReferences)(l.value,n,i),a.push(l.value)}break}case H.PROVIDER_ID:{if(u.value.kind!==K.Kind.STRING||u.value.value.length<1){i.push(re.invalidEventProviderIdErrorMessage);continue}o=u.value.value;break}}if(!(i.length>0))return{fieldName:r,providerId:o,providerType:H.PROVIDER_TYPE_REDIS,channels:a,type:H.SUBSCRIBE}}validateSubscriptionFilterDirectiveLocation(t){if(!t.directives)return;let n=this.renamedParentTypeName||this.originalParentTypeName,r=`${n}.${t.name.value}`,i=this.getOperationTypeNodeForRootTypeName(n)===K.OperationTypeNode.SUBSCRIPTION;for(let a of t.directives)if(a.name.value===H.SUBSCRIPTION_FILTER&&!i){this.errors.push((0,re.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=[],u;switch(a.name.value){case H.EDFS_KAFKA_PUBLISH:u=this.getKafkaPublishConfiguration(a,n,r,o);break;case H.EDFS_KAFKA_SUBSCRIBE:u=this.getKafkaSubscribeConfiguration(a,n,r,o);break;case H.EDFS_NATS_PUBLISH:{u=this.getNatsPublishAndRequestConfiguration(H.PUBLISH,a,n,r,o);break}case H.EDFS_NATS_REQUEST:{u=this.getNatsPublishAndRequestConfiguration(H.REQUEST,a,n,r,o);break}case H.EDFS_NATS_SUBSCRIBE:{u=this.getNatsSubscribeConfiguration(a,n,r,o);break}case H.EDFS_REDIS_PUBLISH:{u=this.getRedisPublishConfiguration(a,n,r,o);break}case H.EDFS_REDIS_SUBSCRIBE:{u=this.getRedisSubscribeConfiguration(a,n,r,o);break}default:continue}if(o.length>0){this.errors.push((0,re.invalidEventDirectiveError)(a.name.value,i,o));continue}u&&(0,qe.getValueOrDefault)(this.eventsConfigurations,this.renamedParentTypeName||this.originalParentTypeName,()=>[]).push(u)}}getValidEventsDirectiveNamesForOperationTypeNode(t){switch(t){case K.OperationTypeNode.MUTATION:return new Set([H.EDFS_KAFKA_PUBLISH,H.EDFS_NATS_PUBLISH,H.EDFS_NATS_REQUEST,H.EDFS_REDIS_PUBLISH]);case K.OperationTypeNode.QUERY:return new Set([H.EDFS_NATS_REQUEST]);case K.OperationTypeNode.SUBSCRIPTION:return new Set([H.EDFS_KAFKA_SUBSCRIBE,H.EDFS_NATS_SUBSCRIBE,H.EDFS_REDIS_SUBSCRIBE])}}getOperationTypeNodeForRootTypeName(t){let n=this.operationTypeNodeByTypeName.get(t);if(n)return n;switch(t){case H.MUTATION:return K.OperationTypeNode.MUTATION;case H.QUERY:return K.OperationTypeNode.QUERY;case H.SUBSCRIPTION:return K.OperationTypeNode.SUBSCRIPTION;default:return}}validateEventDrivenRootType(t,n,r,i){let a=this.getOperationTypeNodeForRootTypeName(t.name);if(!a){this.errors.push((0,re.invalidRootTypeError)(t.name));return}let o=this.getValidEventsDirectiveNamesForOperationTypeNode(a);for(let[u,l]of t.fieldDataByName){let d=`${l.originalParentTypeName}.${u}`,p=new Set;for(let q of Sp.EVENT_DIRECTIVE_NAMES)l.directivesByName.has(q)&&p.add(q);let E=new Set;for(let q of p)o.has(q)||E.add(q);if((p.size<1||E.size>0)&&n.set(d,{definesDirectives:p.size>0,invalidDirectiveNames:[...E]}),a===K.OperationTypeNode.MUTATION){let q=(0,_r.printTypeNode)(l.type);q!==H.NON_NULLABLE_EDFS_PUBLISH_EVENT_RESULT&&i.set(d,q);continue}let h=(0,_r.printTypeNode)(l.type),v=l.namedTypeName+"!",R=!1,U=this.concreteTypeNamesByAbstractTypeName.get(l.namedTypeName)||new Set([l.namedTypeName]);for(let q of U)if(R||(R=this.entityDataByTypeName.has(q)),R)break;(!R||h!==v)&&r.set(d,h)}}validateEventDrivenKeyDefinition(t,n){let r=this.keyFieldSetDatasByTypeName.get(t);if(r)for(let[i,{isUnresolvable:a}]of r)a||(0,qe.getValueOrDefault)(n,t,()=>[]).push(i)}validateEventDrivenObjectFields(t,n,r,i){var a;for(let[o,u]of t){let l=`${u.originalParentTypeName}.${o}`;if(n.has(o)){(a=u.externalFieldDataBySubgraphName.get(this.subgraphName))!=null&&a.isDefinedExternal||r.set(l,o);continue}i.set(l,o)}}isEdfsPublishResultValid(){let t=this.parentDefinitionDataByTypeName.get(H.EDFS_PUBLISH_RESULT);if(!t)return!0;if(t.kind!==K.Kind.OBJECT_TYPE_DEFINITION||t.fieldDataByName.size!=1)return!1;for(let[n,r]of t.fieldDataByName)if(r.argumentDataByName.size>0||n!==H.SUCCESS||(0,_r.printTypeNode)(r.type)!==H.NON_NULLABLE_BOOLEAN)return!1;return!0}isNatsStreamConfigurationInputObjectValid(t){if(!(0,Rt.isInputObjectDefinitionData)(t)||t.inputValueDataByName.size!=3)return!1;for(let[n,r]of t.inputValueDataByName)switch(n){case H.CONSUMER_INACTIVE_THRESHOLD:{if((0,_r.printTypeNode)(r.type)!==H.NON_NULLABLE_INT||!r.defaultValue||r.defaultValue.kind!==K.Kind.INT||r.defaultValue.value!==`${sh.DEFAULT_CONSUMER_INACTIVE_THRESHOLD}`)return!1;break}case H.CONSUMER_NAME:case H.STREAM_NAME:{if((0,_r.printTypeNode)(r.type)!==H.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,u=new Map,l=new Set,d=new Set;for(let[p,E]of this.parentDefinitionDataByTypeName){if(p===H.EDFS_PUBLISH_RESULT||p===H.EDFS_NATS_STREAM_CONFIGURATION||E.kind!==K.Kind.OBJECT_TYPE_DEFINITION)continue;if(E.isRootType){this.validateEventDrivenRootType(E,n,r,i);continue}let h=this.keyFieldNamesByParentTypeName.get(p);if(!h){d.add(p);continue}this.validateEventDrivenKeyDefinition(p,a),this.validateEventDrivenObjectFields(E.fieldDataByName,h,o,u)}if(this.isEdfsPublishResultValid()||t.push(re.invalidEdfsPublishResultObjectErrorMessage),this.edfsDirectiveReferences.has(H.EDFS_NATS_SUBSCRIBE)){let p=this.parentDefinitionDataByTypeName.get(H.EDFS_NATS_STREAM_CONFIGURATION);p&&this.usesEdfsNatsStreamConfiguration&&!this.isNatsStreamConfigurationInputObjectValid(p)&&t.push(re.invalidNatsStreamConfigurationDefinitionErrorMessage),this.parentDefinitionDataByTypeName.delete(H.EDFS_NATS_STREAM_CONFIGURATION);let E=this.upsertInputObjectByNode(DV.EDFS_NATS_STREAM_CONFIGURATION_DEFINITION);if(E.success)for(let h of DV.EDFS_NATS_STREAM_CONFIGURATION_DEFINITION.fields)this.addInputValueDataByNode({fieldName:h.name.value,isArgument:!1,inputValueDataByName:E.data.inputValueDataByName,node:h,originalParentTypeName:H.EDFS_NATS_STREAM_CONFIGURATION});else return}n.size>0&&t.push((0,re.invalidRootTypeFieldEventsDirectivesErrorMessage)(n)),i.size>0&&t.push((0,re.invalidEventDrivenMutationResponseTypeErrorMessage)(i)),r.size>0&&t.push((0,re.invalidRootTypeFieldResponseTypesEventDrivenErrorMessage)(r)),a.size>0&&t.push((0,re.invalidKeyFieldSetsEventDrivenErrorMessage)(a)),o.size>0&&t.push((0,re.nonExternalKeyFieldNamesEventDrivenErrorMessage)(o)),u.size>0&&t.push((0,re.nonKeyFieldNamesEventDrivenErrorMessage)(u)),l.size>0&&t.push((0,re.nonEntityObjectExtensionsEventDrivenErrorMessage)([...l])),d.size>0&&t.push((0,re.nonKeyComposingObjectTypeNamesEventDrivenErrorMessage)([...d])),t.length>0&&this.errors.push((0,re.invalidEventDrivenGraphError)(t))}validateUnionMembers(t){if(t.memberByMemberTypeName.size<1){this.errors.push((0,re.noDefinedUnionMembersError)(t.name));return}let n=[];for(let r of t.memberByMemberTypeName.keys()){let i=this.parentDefinitionDataByTypeName.get(r);i&&i.kind!==K.Kind.OBJECT_TYPE_DEFINITION&&n.push(`"${r}", which is type "${(0,qe.kindToNodeType)(i.kind)}"`)}n.length>0&&this.errors.push((0,re.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!==K.Kind.OBJECT_TYPE_DEFINITION&&r.kind!==K.Kind.INTERFACE_TYPE_DEFINITION){this.errors.push((0,re.undefinedCompositeOutputTypeError)(t));continue}let i=(0,Rt.getParentTypeName)(r),a=(0,qe.getValueOrDefault)(this.configurationDataByTypeName,i,()=>(0,Op.newConfigurationData)(!0,i)),o=(0,di.validateKeyFieldSets)(this,r,n);o&&(a.keys=o)}}getValidFlattenedDirectiveArray(t,n,r=!1){let i=[];for(let[a,o]of t){if(r&&H.INHERITABLE_DIRECTIVE_NAMES.has(a))continue;let u=this.directiveDefinitionDataByName.get(a);if(!u)continue;if(!u.isRepeatable&&o.length>1){let p=(0,qe.getValueOrDefault)(this.invalidRepeatedDirectiveNameByCoords,n,()=>new Set);p.has(a)||(p.add(a),this.errors.push((0,re.invalidDirectiveError)(a,n,"1st",[(0,re.invalidRepeatedDirectiveErrorMessage)(a)])));continue}if(a!==H.KEY){i.push(...o);continue}let l=[],d=new Set;for(let p=0;p0)return G(M({},t.description?{description:t.description}:{}),{directives:this.getValidFlattenedDirectiveArray(t.directivesByName,t.name),kind:K.Kind.SCHEMA_DEFINITION,operationTypes:n});if(!(t.directivesByName.size<1))return{directives:this.getValidFlattenedDirectiveArray(t.directivesByName,t.name),kind:K.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!==K.Kind.OBJECT_TYPE_DEFINITION&&i.kind!==K.Kind.INTERFACE_TYPE_DEFINITION){t.push(n),this.errors.push((0,re.undefinedCompositeOutputTypeError)(n));continue}let a=this;for(let o of r.values()){let u=[i],l=new Map,d=-1,p=!0;if((0,K.visit)(o.documentNode,{Argument:{enter(){return K.BREAK}},Field:{enter(E){let h=u[d],v=h.name;if(p)return K.BREAK;let R=E.name.value,U=`${v}.${R}`;a.unvalidatedExternalFieldCoords.delete(U);let q=h.fieldDataByName.get(R);if(!q||q.argumentDataByName.size)return K.BREAK;q.isShareableBySubgraphName.set(a.subgraphName,!0);let X=q.externalFieldDataBySubgraphName.get(a.subgraphName);a.edfsDirectiveReferences.size<1&&X&&X.isDefinedExternal&&!X.isUnconditionallyProvided&&i.extensionType!==cs.ExtensionType.NONE&&(X.isUnconditionallyProvided=!0,(0,qe.getValueOrDefault)(l,o.rawFieldSet,()=>new Set).add(U)),(0,qe.getValueOrDefault)(a.keyFieldNamesByParentTypeName,v,()=>new Set).add(R);let te=(0,ir.getTypeNodeNamedTypeName)(q.node.type);if(Vr.BASE_SCALARS.has(te))return;let ae=a.parentDefinitionDataByTypeName.get(te);if(!ae)return K.BREAK;if(ae.kind===K.Kind.OBJECT_TYPE_DEFINITION){p=!0,u.push(ae);return}if((0,Dn.isKindAbstract)(ae.kind))return K.BREAK}},InlineFragment:{enter(){return K.BREAK}},SelectionSet:{enter(){if(!p||(d+=1,p=!1,d<0||d>=u.length))return K.BREAK},leave(){p&&(p=!1),d-=1,u.pop()}}}),!(l.size<1))for(let[E,h]of l)this.warnings.push((0,ls.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!==K.Kind.OBJECT_TYPE_DEFINITION&&r.kind!==K.Kind.INTERFACE_TYPE_DEFINITION){this.errors.push((0,re.undefinedCompositeOutputTypeError)(t));continue}let i=(0,Rt.getParentTypeName)(r),a=(0,qe.getValueOrDefault)(this.configurationDataByTypeName,i,()=>(0,Op.newConfigurationData)(!1,i)),o=this.validateProvidesOrRequires(r,n.provides,!0);o&&(a.provides=o);let u=this.validateProvidesOrRequires(r,n.requires,!1);u&&(a.requires=u)}}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(H.ONE_OF)?n.size>0?(this.errors.push((0,re.oneOfRequiredFieldsError)({requiredFieldNames:Array.from(n),typeName:t.name})),!1):(t.inputValueDataByName.size===1&&this.warnings.push((0,ls.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 o;(0,OV.upsertDirectiveSchemaAndEntityDefinitions)(this,t),(0,OV.upsertParentsAndChildren)(this,t);let n=[];El(this,oh,AV).call(this,n),this.validateDirectives(this.schemaData,H.SCHEMA);let r=this.getSchemaNodeByData(this.schemaData);(r==null?void 0:r.kind)===K.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,re.orScopesLimitError)(Vr.MAX_OR_SCOPES,[...this.invalidORScopesCoords]));for(let u of this.invalidConfigureDescriptionNodeDatas)u.description||this.errors.push((0,re.configureDescriptionNoDescriptionError)((0,qe.kindToNodeType)(u.kind),u.name));this.evaluateExternalKeyFields();for(let[u,l]of this.parentDefinitionDataByTypeName)switch(l.kind){case K.Kind.ENUM_TYPE_DEFINITION:{if(l.enumValueDataByName.size<1){this.errors.push((0,re.noDefinedEnumValuesError)(u));break}n.push(this.getEnumNodeByData(l));break}case K.Kind.INPUT_OBJECT_TYPE_DEFINITION:{if(l.inputValueDataByName.size<1){this.errors.push((0,re.noInputValueDefinitionsError)(u));break}let d=new Set;for(let p of l.inputValueDataByName.values()){if((0,Rt.isTypeRequired)(p.type)&&d.add(p.name),p.namedTypeKind!==K.Kind.NULL)continue;let E=this.parentDefinitionDataByTypeName.get(p.namedTypeName);if(E){if(this.sanitizeDefaultValue({data:p,namedTypeData:E,node:p.node}),!(0,Rt.isInputNodeKind)(E.kind)){this.errors.push((0,re.invalidNamedTypeError)({data:p,namedTypeData:E,nodeType:`${(0,qe.kindToNodeType)(l.kind)} field`}));continue}p.namedTypeKind=E.kind}}if(!this.validateOneOfDirective({data:l,requiredFieldNames:d}))break;u!==H.EDFS_NATS_STREAM_CONFIGURATION&&n.push(this.getInputObjectNodeByData(l));break}case K.Kind.INTERFACE_TYPE_DEFINITION:case K.Kind.OBJECT_TYPE_DEFINITION:{let d=this.entityDataByTypeName.has(u),p=this.operationTypeNodeByTypeName.get(u),E=l.kind===K.Kind.OBJECT_TYPE_DEFINITION;this.isSubgraphVersionTwo&&l.extensionType===cs.ExtensionType.EXTENDS&&(l.extensionType=cs.ExtensionType.NONE),p&&(l.fieldDataByName.delete(H.SERVICE_FIELD),l.fieldDataByName.delete(H.ENTITIES_FIELD));let h=[];for(let[X,te]of l.fieldDataByName){if(!E&&((o=te.externalFieldDataBySubgraphName.get(this.subgraphName))!=null&&o.isDefinedExternal)&&h.push(X),this.validateArguments(te,l.kind),te.namedTypeKind!==K.Kind.NULL)continue;let ae=this.parentDefinitionDataByTypeName.get(te.namedTypeName);if(ae){if(!(0,Rt.isOutputNodeKind)(ae.kind)){this.errors.push((0,re.invalidNamedTypeError)({data:te,namedTypeData:ae,nodeType:`${(0,qe.kindToNodeType)(l.kind)} field`}));continue}te.namedTypeKind=this.entityInterfaceDataByTypeName.get(ae.name)?K.Kind.INTERFACE_TYPE_DEFINITION:ae.kind}}h.length>0&&(this.isSubgraphVersionTwo?this.errors.push((0,re.externalInterfaceFieldsError)(u,h)):this.warnings.push((0,ls.externalInterfaceFieldsWarning)(this.subgraphName,u,[...h])));let v=(0,Rt.getParentTypeName)(l),R=(0,qe.getValueOrDefault)(this.configurationDataByTypeName,v,()=>(0,Op.newConfigurationData)(d,u)),U=this.entityInterfaceDataByTypeName.get(u);if(U){U.fieldDatas=(0,Yn.fieldDatasToSimpleFieldDatas)(l.fieldDataByName.values());let X=this.concreteTypeNamesByAbstractTypeName.get(u);X&&(0,qe.addIterableToSet)({source:X,target:U.concreteTypeNames}),R.isInterfaceObject=U.isInterfaceObject,R.entityInterfaceConcreteTypeNames=U.concreteTypeNames}let q=this.eventsConfigurations.get(v);q&&(R.events=q),this.addFieldNamesToConfigurationData(l.fieldDataByName,R),this.validateInterfaceImplementations(l),n.push(this.getCompositeOutputNodeByData(l)),l.fieldDataByName.size<1&&!(0,di.isNodeQuery)(u,p)&&this.errors.push((0,re.noFieldDefinitionsError)((0,qe.kindToNodeType)(l.kind),u)),l.requireFetchReasonsFieldNames.size>0&&(R.requireFetchReasonsFieldNames=[...l.requireFetchReasonsFieldNames]);break}case K.Kind.SCALAR_TYPE_DEFINITION:{if(l.extensionType===cs.ExtensionType.REAL){this.errors.push((0,re.noBaseScalarDefinitionError)(u));break}n.push(this.getScalarNodeByData(l));break}case K.Kind.UNION_TYPE_DEFINITION:{n.push(this.getUnionNodeByData(l)),this.validateUnionMembers(l);break}default:throw(0,re.unexpectedKindFatalError)(u)}this.isSubgraphEventDrivenGraph=this.edfsDirectiveReferences.size>0,this.addValidConditionalFieldSetConfigurations(),this.addValidKeyFieldSetConfigurations();for(let u of Object.values(K.OperationTypeNode)){let l=this.schemaData.operationTypes.get(u),d=(0,qe.getOrThrowError)(Dn.operationTypeNodeToDefaultType,u,H.OPERATION_TO_DEFAULT),p=l?(0,ir.getTypeNodeNamedTypeName)(l.type):d;if(Vr.BASE_SCALARS.has(p)&&this.referencedTypeNames.add(p),p!==d&&this.parentDefinitionDataByTypeName.has(d)){this.errors.push((0,re.invalidRootTypeDefinitionError)(u,p,d));continue}let E=this.parentDefinitionDataByTypeName.get(p);if(l){if(!E)continue;this.operationTypeNodeByTypeName.set(p,u)}if(!E)continue;let h=this.configurationDataByTypeName.get(d);h&&(h.isRootNode=!0,h.typeName=d),E.kind!==K.Kind.OBJECT_TYPE_DEFINITION&&this.errors.push((0,re.operationDefinitionError)(p,u,E.kind))}for(let u of this.referencedTypeNames){let l=this.parentDefinitionDataByTypeName.get(u);if(!l){this.errors.push((0,re.undefinedTypeError)(u));continue}if(l.kind!==K.Kind.INTERFACE_TYPE_DEFINITION)continue;let d=this.concreteTypeNamesByAbstractTypeName.get(u);(!d||d.size<1)&&this.warnings.push((0,ls.unimplementedInterfaceOutputTypeWarning)(this.subgraphName,u))}let i=new Map;for(let u of this.directiveDefinitionByName.values()){let l=(0,Dn.extractExecutableDirectiveLocations)(u.locations,new Set);l.size<1||this.addPersistedDirectiveDefinitionDataByNode(i,u,l)}this.isSubgraphEventDrivenGraph&&this.validateEventDrivenSubgraph();for(let u of this.unvalidatedExternalFieldCoords)this.isSubgraphVersionTwo?this.errors.push((0,re.invalidExternalDirectiveError)(u)):this.warnings.push((0,ls.invalidExternalFieldWarning)(u,this.subgraphName));if(this.errors.length>0)return{success:!1,errors:this.errors,warnings:this.warnings};let a={kind:K.Kind.DOCUMENT,definitions:n};return{authorizationDataByParentTypeName:this.authorizationDataByParentTypeName,concreteTypeNamesByAbstractTypeName:this.concreteTypeNamesByAbstractTypeName,conditionalFieldDataByCoordinates:this.conditionalFieldDataByCoords,configurationDataByTypeName:this.configurationDataByTypeName,costs:this.costs,directiveDefinitionByName:this.directiveDefinitionByName,entityDataByTypeName:this.entityDataByTypeName,entityInterfaces:this.entityInterfaceDataByTypeName,fieldCoordsByNamedTypeName:this.fieldCoordsByNamedTypeName,interfaceImplementationTypeNamesByInterfaceTypeName:this.interfaceImplementationTypeNamesByInterfaceTypeName,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,K.print)(a),schema:(0,jfe.buildASTSchema)(a,{addInvalidExtensionOrphans:!0,assumeValid:!0,assumeValidSDL:!0}),success:!0,warnings:this.warnings}}};bp=new WeakSet,Nb=function({currentFieldCoords:t,directiveCoords:n,directiveName:r,fieldSet:i}){if(this.isSubgraphVersionTwo){this.errors.push((0,re.nonExternalConditionalFieldError)({directiveCoords:n,directiveName:r,fieldSet:i,subgraphName:this.subgraphName,targetCoords:t}));return}this.warnings.push((0,ls.nonExternalConditionalFieldWarning)(n,this.subgraphName,t,i,r))},oh=new WeakSet,AV=function(t){let n=new Set;for(let r of this.referencedDirectiveNames){let i=Vr.DIRECTIVE_DEFINITION_BY_NAME.get(r);i&&(this.directiveDefinitionByName.set(r,i),(0,qe.addOptionalIterableToSet)({source:Sp.DEPENDENCIES_BY_DIRECTIVE_NAME.get(r),target:n}),t.push(i))}for(let r of this.customDirectiveDefinitionByName.values())t.push(r);t.push(...n)};xc.NormalizationFactory=Dp;function Qfe({options:e,subgraphs:t}){let n=new Map,r=new Map,i=new Map,a=new Map,o=new Map,u=new Map,l=new Map,d=new Set,p=new Map,E=new Set,h=new Set,v=[],R=new Set,U=new Map,q=[],X=[];for(let me of t)me.name&&(0,Kfe.recordSubgraphName)(me.name,E,h);let te=new Tb.Graph;for(let me=0;me0&&q.push(...Ee.warnings),!Ee.success){X.push((0,re.subgraphValidationError)(_e,Ee.errors));continue}if(!Ee){X.push((0,re.subgraphValidationError)(_e,[re.subgraphValidationFailureError]));continue}p.set(_e,Ee.parentDefinitionDataByTypeName);for(let Be of Ee.authorizationDataByParentTypeName.values())(0,Yn.upsertAuthorizationData)(n,Be,R);for(let[Be,Z]of Ee.fieldCoordsByNamedTypeName)(0,qe.addIterableToSet)({source:Z,target:(0,qe.getValueOrDefault)(U,Be,()=>new Set)});for(let[Be,Z]of Ee.concreteTypeNamesByAbstractTypeName){let ge=r.get(Be);if(!ge){r.set(Be,new Set(Z));continue}(0,qe.addIterableToSet)({source:Z,target:ge})}for(let[Be,Z]of Ee.interfaceImplementationTypeNamesByInterfaceTypeName){let ge=a.get(Be);if(!ge){a.set(Be,new Set(Z));continue}(0,qe.addIterableToSet)({source:Z,target:ge})}for(let[Be,Z]of Ee.entityDataByTypeName){let ge=Z.keyFieldSetDatasBySubgraphName.get(_e);ge&&(0,Yn.upsertEntityData)({entityDataByTypeName:i,keyFieldSetDataByFieldSet:ge,typeName:Be,subgraphName:_e})}if(ye.name&&o.set(_e,{conditionalFieldDataByCoordinates:Ee.conditionalFieldDataByCoordinates,configurationDataByTypeName:Ee.configurationDataByTypeName,costs:Ee.costs,definitions:Ee.subgraphAST,directiveDefinitionByName:Ee.directiveDefinitionByName,entityInterfaces:Ee.entityInterfaces,isVersionTwo:Ee.isVersionTwo,keyFieldNamesByParentTypeName:Ee.keyFieldNamesByParentTypeName,name:_e,operationTypes:Ee.operationTypes,overriddenFieldNamesByParentTypeName:new Map,parentDefinitionDataByTypeName:Ee.parentDefinitionDataByTypeName,persistedDirectiveDefinitionDataByDirectiveName:Ee.persistedDirectiveDefinitionDataByDirectiveName,schema:Ee.schema,schemaNode:Ee.schemaNode,url:ye.url}),!(Ee.overridesByTargetSubgraphName.size<1))for(let[Be,Z]of Ee.overridesByTargetSubgraphName){let ge=E.has(Be);for(let[It,sn]of Z){let Tn=Ee.originalTypeNameByRenamedTypeName.get(It)||It;if(!ge)q.push((0,ls.invalidOverrideTargetSubgraphNameWarning)(Be,Tn,[...sn],ye.name));else{let En=(0,qe.getValueOrDefault)(u,Be,()=>new Map),$t=(0,qe.getValueOrDefault)(En,It,()=>new Set(sn));(0,qe.addIterableToSet)({source:sn,target:$t})}for(let En of sn){let $t=`${Tn}.${En}`,Ht=l.get($t);if(!Ht){l.set($t,[_e]);continue}Ht.push(_e),d.add($t)}}}}let ae=[];if(R.size>0&&ae.push((0,re.orScopesLimitError)(Vr.MAX_OR_SCOPES,[...R])),(v.length>0||h.size>0)&&ae.push((0,re.invalidSubgraphNamesError)([...h],v)),d.size>0){let me=[];for(let ye of d){let _e=(0,qe.getOrThrowError)(l,ye,"overrideSourceSubgraphNamesByFieldPath");me.push((0,re.duplicateOverriddenFieldErrorMessage)(ye,_e))}ae.push((0,re.duplicateOverriddenFieldsError)(me))}if(ae.push(...X),ae.length>0)return{errors:ae,success:!1,warnings:q};for(let[me,ye]of u){let _e=(0,qe.getOrThrowError)(o,me,"internalSubgraphBySubgraphName");_e.overriddenFieldNamesByParentTypeName=ye;for(let[Ee,Be]of ye){let Z=_e.configurationDataByTypeName.get(Ee);Z&&((0,Yn.subtractSet)(Be,Z.fieldNames),Z.fieldNames.size<1&&_e.configurationDataByTypeName.delete(Ee))}}return{authorizationDataByParentTypeName:n,concreteTypeNamesByAbstractTypeName:r,entityDataByTypeName:i,fieldCoordsByNamedTypeName:U,interfaceImplementationTypeNamesByInterfaceTypeName:a,internalSubgraphBySubgraphName:o,internalGraph:te,success:!0,warnings:q}}});var uh=F(jc=>{"use strict";m();T();N();Object.defineProperty(jc,"__esModule",{value:!0});jc.DivergentType=void 0;jc.getLeastRestrictiveMergedTypeNode=Jfe;jc.getMostRestrictiveMergedTypeNode=zfe;jc.renameNamedTypeName=Hfe;var qc=Se(),PV=Yi(),Yfe=Du(),RV=Br(),FV=ql(),Vc;(function(e){e[e.NONE=0]="NONE",e[e.CURRENT=1]="CURRENT",e[e.OTHER=2]="OTHER"})(Vc||(jc.DivergentType=Vc={}));function wV(e,t,n,r,i){t=(0,Yfe.getMutableTypeNode)(t,n,i);let a={kind:e.kind},o=Vc.NONE,u=a;for(let l=0;l{"use strict";m();T();N();Object.defineProperty(yb,"__esModule",{value:!0});yb.renameRootTypes=Zfe;var Wfe=Se(),hb=Br(),Xfe=uh(),Bu=Xn(),Kc=kr();function Zfe(e,t){let n,r=!1,i;(0,Wfe.visit)(t.definitions,{FieldDefinition:{enter(a){let o=a.name.value;if(r&&(o===Bu.SERVICE_FIELD||o===Bu.ENTITIES_FIELD))return n.fieldDataByName.delete(o),!1;let u=n.name,l=(0,Kc.getOrThrowError)(n.fieldDataByName,o,`${u}.fieldDataByFieldName`),d=t.operationTypes.get(l.namedTypeName);if(d){let p=(0,Kc.getOrThrowError)(hb.operationTypeNodeToDefaultType,d,Bu.OPERATION_TO_DEFAULT);l.namedTypeName!==p&&(0,Xfe.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,Bu.PARENT_DEFINITION_DATA)},leave(){n=void 0}},ObjectTypeDefinition:{enter(a){let o=a.name.value,u=t.operationTypes.get(o),l=u?(0,Kc.getOrThrowError)(hb.operationTypeNodeToDefaultType,u,Bu.OPERATION_TO_DEFAULT):o;n=(0,Kc.getOrThrowError)(t.parentDefinitionDataByTypeName,o,Bu.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,u=t.operationTypes.get(o),l=u?(0,Kc.getOrThrowError)(hb.operationTypeNodeToDefaultType,u,Bu.OPERATION_TO_DEFAULT):o;n=(0,Kc.getOrThrowError)(t.parentDefinitionDataByTypeName,o,Bu.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 LV=F((hd,Ap)=>{"use strict";m();T();N();(function(){var e,t="4.18.1",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="Invalid `imports` option passed into `_.template`",u="__lodash_hash_undefined__",l=500,d="__lodash_placeholder__",p=1,E=2,h=4,v=1,R=2,U=1,q=2,X=4,te=8,ae=16,me=32,ye=64,_e=128,Ee=256,Be=512,Z=30,ge="...",It=800,sn=16,Tn=1,En=2,$t=3,Ht=1/0,wn=9007199254740991,Ar=17976931348623157e292,zn=NaN,vt=4294967295,Ln=vt-1,se=vt>>>1,Le=[["ary",_e],["bind",U],["bindKey",q],["curry",te],["curryRight",ae],["flip",Be],["partial",me],["partialRight",ye],["rearg",Ee]],ve="[object Arguments]",we="[object Array]",Mt="[object AsyncFunction]",J="[object Boolean]",ie="[object Date]",$e="[object DOMException]",He="[object Error]",Lt="[object Function]",St="[object GeneratorFunction]",Et="[object Map]",fi="[object Number]",nl="[object Null]",Rr="[object Object]",Ku="[object Promise]",rl="[object Proxy]",oa="[object RegExp]",ar="[object Set]",xt="[object String]",Hn="[object Symbol]",Mh="[object Undefined]",Xr="[object WeakMap]",xh="[object WeakSet]",P="[object ArrayBuffer]",I="[object DataView]",_="[object Float32Array]",B="[object Float64Array]",$="[object Int8Array]",ee="[object Int16Array]",ce="[object Int32Array]",Nt="[object Uint8Array]",hn="[object Uint8ClampedArray]",un="[object Uint16Array]",yn="[object Uint32Array]",on=/\b__p \+= '';/g,_K=/\b(__p \+=) '' \+/g,vK=/(__e\(.*?\)|\b__t\)) \+\n'';/g,_A=/&(?:amp|lt|gt|quot|#39);/g,vA=/[&<>"']/g,SK=RegExp(_A.source),OK=RegExp(vA.source),DK=/<%-([\s\S]+?)%>/g,bK=/<%([\s\S]+?)%>/g,SA=/<%=([\s\S]+?)%>/g,AK=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,RK=/^\w*$/,PK=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,qh=/[\\^$.*+?()[\]{}|]/g,FK=RegExp(qh.source),Vh=/^\s+/,wK=/\s/,LK=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,CK=/\{\n\/\* \[wrapped with (.+)\] \*/,UK=/,? & /,BK=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,OA=/[()=,{}\[\]\/\s]/,kK=/\\(\\)?/g,MK=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,DA=/\w*$/,xK=/^[-+]0x[0-9a-f]+$/i,qK=/^0b[01]+$/i,VK=/^\[object .+?Constructor\]$/,jK=/^0o[0-7]+$/i,KK=/^(?:0|[1-9]\d*)$/,$K=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,am=/($^)/,GK=/['\n\r\u2028\u2029\\]/g,sm="\\ud800-\\udfff",QK="\\u0300-\\u036f",YK="\\ufe20-\\ufe2f",JK="\\u20d0-\\u20ff",bA=QK+YK+JK,AA="\\u2700-\\u27bf",RA="a-z\\xdf-\\xf6\\xf8-\\xff",zK="\\xac\\xb1\\xd7\\xf7",HK="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",WK="\\u2000-\\u206f",XK=" \\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",PA="A-Z\\xc0-\\xd6\\xd8-\\xde",FA="\\ufe0e\\ufe0f",wA=zK+HK+WK+XK,jh="['\u2019]",ZK="["+sm+"]",LA="["+wA+"]",om="["+bA+"]",CA="\\d+",e$="["+AA+"]",UA="["+RA+"]",BA="[^"+sm+wA+CA+AA+RA+PA+"]",Kh="\\ud83c[\\udffb-\\udfff]",t$="(?:"+om+"|"+Kh+")",kA="[^"+sm+"]",$h="(?:\\ud83c[\\udde6-\\uddff]){2}",Gh="[\\ud800-\\udbff][\\udc00-\\udfff]",il="["+PA+"]",MA="\\u200d",xA="(?:"+UA+"|"+BA+")",n$="(?:"+il+"|"+BA+")",qA="(?:"+jh+"(?:d|ll|m|re|s|t|ve))?",VA="(?:"+jh+"(?:D|LL|M|RE|S|T|VE))?",jA=t$+"?",KA="["+FA+"]?",r$="(?:"+MA+"(?:"+[kA,$h,Gh].join("|")+")"+KA+jA+")*",i$="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",a$="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",$A=KA+jA+r$,s$="(?:"+[e$,$h,Gh].join("|")+")"+$A,o$="(?:"+[kA+om+"?",om,$h,Gh,ZK].join("|")+")",u$=RegExp(jh,"g"),c$=RegExp(om,"g"),Qh=RegExp(Kh+"(?="+Kh+")|"+o$+$A,"g"),l$=RegExp([il+"?"+UA+"+"+qA+"(?="+[LA,il,"$"].join("|")+")",n$+"+"+VA+"(?="+[LA,il+xA,"$"].join("|")+")",il+"?"+xA+"+"+qA,il+"+"+VA,a$,i$,CA,s$].join("|"),"g"),d$=RegExp("["+MA+sm+bA+FA+"]"),f$=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,p$=["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"],m$=-1,gn={};gn[_]=gn[B]=gn[$]=gn[ee]=gn[ce]=gn[Nt]=gn[hn]=gn[un]=gn[yn]=!0,gn[ve]=gn[we]=gn[P]=gn[J]=gn[I]=gn[ie]=gn[He]=gn[Lt]=gn[Et]=gn[fi]=gn[Rr]=gn[oa]=gn[ar]=gn[xt]=gn[Xr]=!1;var In={};In[ve]=In[we]=In[P]=In[I]=In[J]=In[ie]=In[_]=In[B]=In[$]=In[ee]=In[ce]=In[Et]=In[fi]=In[Rr]=In[oa]=In[ar]=In[xt]=In[Hn]=In[Nt]=In[hn]=In[un]=In[yn]=!0,In[He]=In[Lt]=In[Xr]=!1;var N$={\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"},T$={"&":"&","<":"<",">":">",'"':""","'":"'"},E$={"&":"&","<":"<",">":">",""":'"',"'":"'"},h$={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},y$=parseFloat,I$=parseInt,GA=typeof global=="object"&&global&&global.Object===Object&&global,g$=typeof self=="object"&&self&&self.Object===Object&&self,mr=GA||g$||Function("return this")(),Yh=typeof hd=="object"&&hd&&!hd.nodeType&&hd,$u=Yh&&typeof Ap=="object"&&Ap&&!Ap.nodeType&&Ap,QA=$u&&$u.exports===Yh,Jh=QA&&GA.process,Ai=function(){try{var Y=$u&&$u.require&&$u.require("util").types;return Y||Jh&&Jh.binding&&Jh.binding("util")}catch(ue){}}(),YA=Ai&&Ai.isArrayBuffer,JA=Ai&&Ai.isDate,zA=Ai&&Ai.isMap,HA=Ai&&Ai.isRegExp,WA=Ai&&Ai.isSet,XA=Ai&&Ai.isTypedArray;function pi(Y,ue,ne){switch(ne.length){case 0:return Y.call(ue);case 1:return Y.call(ue,ne[0]);case 2:return Y.call(ue,ne[0],ne[1]);case 3:return Y.call(ue,ne[0],ne[1],ne[2])}return Y.apply(ue,ne)}function _$(Y,ue,ne,Ue){for(var lt=-1,Wt=Y==null?0:Y.length;++lt-1}function zh(Y,ue,ne){for(var Ue=-1,lt=Y==null?0:Y.length;++Ue-1;);return ne}function s0(Y,ue){for(var ne=Y.length;ne--&&al(ue,Y[ne],0)>-1;);return ne}function F$(Y,ue){for(var ne=Y.length,Ue=0;ne--;)Y[ne]===ue&&++Ue;return Ue}var w$=Zh(N$),L$=Zh(T$);function C$(Y){return"\\"+h$[Y]}function U$(Y,ue){return Y==null?e:Y[ue]}function sl(Y){return d$.test(Y)}function B$(Y){return f$.test(Y)}function k$(Y){for(var ue,ne=[];!(ue=Y.next()).done;)ne.push(ue.value);return ne}function ry(Y){var ue=-1,ne=Array(Y.size);return Y.forEach(function(Ue,lt){ne[++ue]=[lt,Ue]}),ne}function o0(Y,ue){return function(ne){return Y(ue(ne))}}function su(Y,ue){for(var ne=-1,Ue=Y.length,lt=0,Wt=[];++ne-1}function SG(s,c){var f=this.__data__,y=Om(f,s);return y<0?(++this.size,f.push([s,c])):f[y][1]=c,this}Ns.prototype.clear=IG,Ns.prototype.delete=gG,Ns.prototype.get=_G,Ns.prototype.has=vG,Ns.prototype.set=SG;function Ts(s){var c=-1,f=s==null?0:s.length;for(this.clear();++c=c?s:c)),s}function Fi(s,c,f,y,S,L){var x,j=c&p,z=c&E,de=c&h;if(f&&(x=S?f(s,y,S,L):f(s)),x!==e)return x;if(!bn(s))return s;var fe=ft(s);if(fe){if(x=AQ(s),!j)return Zr(s,x)}else{var Te=Fr(s),Ae=Te==Lt||Te==St;if(pu(s))return K0(s,j);if(Te==Rr||Te==ve||Ae&&!S){if(x=z||Ae?{}:uR(s),!j)return z?EQ(s,qG(x,s)):TQ(s,y0(x,s))}else{if(!In[Te])return S?s:{};x=RQ(s,Te,j)}}L||(L=new ca);var Ge=L.get(s);if(Ge)return Ge;L.set(s,x),kR(s)?s.forEach(function(Ze){x.add(Fi(Ze,c,f,Ze,s,L))}):UR(s)&&s.forEach(function(Ze,At){x.set(At,Fi(Ze,c,f,At,s,L))});var nt=de?z?Ry:Ay:z?ti:Nr,gt=fe?e:nt(s);return mi(gt||s,function(Ze,At){gt&&(At=Ze,Ze=s[At]),kd(x,At,Fi(Ze,c,f,At,s,L))}),x}function VG(s){var c=Nr(s);return function(f){return I0(f,s,c)}}function I0(s,c,f){var y=f.length;if(s==null)return!y;for(s=mn(s);y--;){var S=f[y],L=c[S],x=s[S];if(x===e&&!(S in s)||!L(x))return!1}return!0}function g0(s,c,f){if(typeof s!="function")throw new Ri(i);return $d(function(){s.apply(e,f)},c)}function Md(s,c,f,y){var S=-1,L=um,x=!0,j=s.length,z=[],de=c.length;if(!j)return z;f&&(c=vn(c,Ni(f))),y?(L=zh,x=!1):c.length>=n&&(L=Fd,x=!1,c=new Yu(c));e:for(;++SS?0:S+f),y=y===e||y>S?S:ht(y),y<0&&(y+=S),y=f>y?0:xR(y);f0&&f(j)?c>1?vr(j,c-1,f,y,S):au(S,j):y||(S[S.length]=j)}return S}var ly=z0(),S0=z0(!0);function qa(s,c){return s&&ly(s,c,Nr)}function dy(s,c){return s&&S0(s,c,Nr)}function bm(s,c){return iu(c,function(f){return Is(s[f])})}function zu(s,c){c=du(c,s);for(var f=0,y=c.length;s!=null&&fc}function $G(s,c){return s!=null&&en.call(s,c)}function GG(s,c){return s!=null&&c in mn(s)}function QG(s,c,f){return s>=Pr(c,f)&&s=120&&fe.length>=120)?new Yu(x&&fe):e}fe=s[0];var Te=-1,Ae=j[0];e:for(;++Te-1;)j!==s&&hm.call(j,z,1),hm.call(s,z,1);return s}function U0(s,c){for(var f=s?c.length:0,y=f-1;f--;){var S=c[f];if(f==y||S!==L){var L=S;ys(S)?hm.call(s,S,1):gy(s,S)}}return s}function hy(s,c){return s+gm(N0()*(c-s+1))}function aQ(s,c,f,y){for(var S=-1,L=or(Im((c-s)/(f||1)),0),x=ne(L);L--;)x[y?L:++S]=s,s+=f;return x}function yy(s,c){var f="";if(!s||c<1||c>wn)return f;do c%2&&(f+=s),c=gm(c/2),c&&(s+=s);while(c);return f}function Ot(s,c){return By(dR(s,c,ni),s+"")}function sQ(s){return h0(Tl(s))}function oQ(s,c){var f=Tl(s);return Mm(f,Ju(c,0,f.length))}function Vd(s,c,f,y){if(!bn(s))return s;c=du(c,s);for(var S=-1,L=c.length,x=L-1,j=s;j!=null&&++SS?0:S+c),f=f>S?S:f,f<0&&(f+=S),S=c>f?0:f-c>>>0,c>>>=0;for(var L=ne(S);++y>>1,x=s[L];x!==null&&!Ei(x)&&(f?x<=c:x=n){var de=c?null:gQ(s);if(de)return lm(de);x=!1,S=Fd,z=new Yu}else z=c?[]:j;e:for(;++y=y?s:wi(s,c,f)}var j0=X$||function(s){return mr.clearTimeout(s)};function K0(s,c){if(c)return s.slice();var f=s.length,y=l0?l0(f):new s.constructor(f);return s.copy(y),y}function Oy(s){var c=new s.constructor(s.byteLength);return new Tm(c).set(new Tm(s)),c}function fQ(s,c){var f=c?Oy(s.buffer):s.buffer;return new s.constructor(f,s.byteOffset,s.byteLength)}function pQ(s){var c=new s.constructor(s.source,DA.exec(s));return c.lastIndex=s.lastIndex,c}function mQ(s){return Bd?mn(Bd.call(s)):{}}function $0(s,c){var f=c?Oy(s.buffer):s.buffer;return new s.constructor(f,s.byteOffset,s.length)}function G0(s,c){if(s!==c){var f=s!==e,y=s===null,S=s===s,L=Ei(s),x=c!==e,j=c===null,z=c===c,de=Ei(c);if(!j&&!de&&!L&&s>c||L&&x&&z&&!j&&!de||y&&x&&z||!f&&z||!S)return 1;if(!y&&!L&&!de&&s=j)return z;var de=f[y];return z*(de=="desc"?-1:1)}}return s.index-c.index}function Q0(s,c,f,y){for(var S=-1,L=s.length,x=f.length,j=-1,z=c.length,de=or(L-x,0),fe=ne(z+de),Te=!y;++j1?f[S-1]:e,x=S>2?f[2]:e;for(L=s.length>3&&typeof L=="function"?(S--,L):e,x&&Kr(f[0],f[1],x)&&(L=S<3?e:L,S=1),c=mn(c);++y-1?S[L?c[x]:x]:e}}function X0(s){return hs(function(c){var f=c.length,y=f,S=Pi.prototype.thru;for(s&&c.reverse();y--;){var L=c[y];if(typeof L!="function")throw new Ri(i);if(S&&!x&&Bm(L)=="wrapper")var x=new Pi([],!0)}for(y=x?y:f;++y1&&Ct.reverse(),fe&&zj))return!1;var de=L.get(s),fe=L.get(c);if(de&&fe)return de==c&&fe==s;var Te=-1,Ae=!0,Ge=f&R?new Yu:e;for(L.set(s,c),L.set(c,s);++Te1?"& ":"")+c[y],c=c.join(f>2?", ":" "),s.replace(LK,`{ + "`+r.join(GP.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:n}})}function Eqe(e,t,r,n){return new zi.Warning({message:iv(n)+`The field "${e}" is unconditionally provided by subgraph "${n}" and should not form part of any "@${t}" field set. +However, "${e}" forms part of the "@${t}" field set defined "${r}". +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:n}})}function gqe({fieldName:e,subgraphName:t,typeName:r}){return new zi.Warning({message:`The directive "@oneOf" is defined on Input Object "${r}", but only one optional Input field, "${e}", is defined. Consider removing "@oneOf" and changing "${e}" to a required type instead.`,subgraph:{name:t}})}function Iqe({fieldName:e,typeName:t}){return new zi.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:""}})}function vqe(e){return new zi.Warning({message:'A "@composeDirective" directive defines the "name" argument value "@oneOf". The "@oneOf" directive is now considered built-in and will be automatically included in the federated. schema. Consider removing the inclusion of "@oneOf" within any "@composeDirective" directives.',subgraph:{name:e}})}function _qe({directiveCoords:e,directiveName:t,printedDirective:r}){return new zi.Warning({message:`The definition for the composed directive "@${t}" is not defined as repeatable. However, the directive "@${t}" is declared on "${e}" multiple times with incompatible arguments. The federated graph will only propagate "${r}". Consider updating the directive definition for "${t}" to be repeatable.`,subgraph:{name:""}})}});var Zc=D(ut=>{"use strict";d();p();f();Object.defineProperty(ut,"__esModule",{value:!0});ut.MergeMethod=void 0;ut.newFederatedDirectivesData=Aqe;ut.isNodeExternalOrShareable=Rqe;ut.isTypeRequired=wqe;ut.isTypeNodeListType=D4;ut.areDefaultValuesCompatible=b4;ut.compareAndValidateInputDefaultValues=Pqe;ut.isTypeNameRootType=Fqe;ut.getRenamedRootTypeName=Lqe;ut.childMapToValueArray=Bqe;ut.setLongestDescription=Uqe;ut.isParentDataRootType=A4;ut.isInterfaceDefinitionData=kqe;ut.setParentDataExtensionType=qqe;ut.upsertDeprecatedDirective=xqe;ut.upsertTagDirectives=Mqe;ut.propagateAuthDirectives=jqe;ut.propagateFieldAuthDirectives=Vqe;ut.generateDeprecatedDirective=JP;ut.getNodeCoords=R4;ut.extractUniqueDirectiveNodes=w4;ut.getRouterSchemaDirectiveNodes=ov;ut.getClientFederatedDirectiveNodes=YP;ut.getClientSchemaFieldNodeByFieldData=Kqe;ut.routerSchemaFieldNodeFromData=$qe;ut.routerSchemaInputValueNodeFromData=P4;ut.routerSchemaNodeFromData=Gqe;ut.propagateDirectiveDefinitionNodeFromData=Yqe;ut.newInvalidFieldNames=Jqe;ut.validateExternalAndShareable=zqe;ut.isTypeValidImplementation=av;ut.isNodeDataInaccessible=F4;ut.isLeafKind=Hqe;ut.getSubscriptionFilterValue=Wqe;ut.getParentTypeName=Xqe;ut.newConditionalFieldData=Zqe;ut.getDefinitionDataCoords=exe;ut.isParentDataCompositeOutputType=txe;ut.newExternalFieldData=rxe;ut.getInitialFederatedDescription=nxe;ut.areKindsEqual=ixe;ut.isFieldData=sv;ut.isInputObjectDefinitionData=axe;ut.isInputNodeKind=oxe;ut.isOutputNodeKind=sxe;ut.isInterfaceNode=uxe;ut.isEnumData=L4;ut.sanitizeDefaultValue=cxe;var Ye=ve(),QP=Xh(),tl=Un(),O4=Di(),$t=xr(),Ms=An(),Sqe=rv(),Oqe=VP(),Dqe=hd(),bqe=xs();function Aqe(){return{deprecatedReason:"",directivesByName:new Map,isDeprecated:!1,tagDirectiveByName:new Map}}function Rqe(e,t,r){var i;let n={isExternal:r.has($t.EXTERNAL),isShareable:t||r.has($t.SHAREABLE)};if(!((i=e.directives)!=null&&i.length))return n;for(let a of e.directives){let o=a.name.value;if(o===$t.EXTERNAL){n.isExternal=!0;continue}o===$t.SHAREABLE&&(n.isShareable=!0)}return n}function wqe(e){return e.kind===Ye.Kind.NON_NULL_TYPE}function D4(e){switch(e.kind){case Ye.Kind.LIST_TYPE:return!0;case Ye.Kind.NON_NULL_TYPE:return D4(e.type);default:return!1}}function b4(e,t){switch(e.kind){case Ye.Kind.LIST_TYPE:return t.kind===Ye.Kind.LIST||t.kind===Ye.Kind.NULL;case Ye.Kind.NAMED_TYPE:if(t.kind===Ye.Kind.NULL)return!0;switch(e.name.value){case $t.BOOLEAN_SCALAR:return t.kind===Ye.Kind.BOOLEAN;case $t.FLOAT_SCALAR:return t.kind===Ye.Kind.INT||t.kind===Ye.Kind.FLOAT;case $t.INT_SCALAR:return t.kind===Ye.Kind.INT;case $t.STRING_SCALAR:return t.kind===Ye.Kind.STRING;default:return!0}case Ye.Kind.NON_NULL_TYPE:return t.kind===Ye.Kind.NULL?!1:b4(e.type,t)}}function Pqe({existingData:e,incomingData:t}){if(!e.defaultValue)return{success:!0};if(!t.defaultValue)return e.includeDefaultValue=!1,{success:!0};let r=(0,Ye.print)(e.defaultValue),n=(0,Ye.print)(t.defaultValue);return r==n?{success:!0}:{error:(0,O4.incompatibleInputValueDefaultValuesError)(`${e.kind===Ye.Kind.ARGUMENT?$t.ARGUMENT:$t.INPUT_FIELD} "${e.name}"`,e.originalCoords,[...t.subgraphNames],r,n),success:!1}}function Fqe(e,t){return $t.ROOT_TYPE_NAMES.has(e)||t.has(e)}function Lqe(e,t){let r=t.get(e);if(!r)return e;switch(r){case Ye.OperationTypeNode.MUTATION:return $t.MUTATION;case Ye.OperationTypeNode.SUBSCRIPTION:return $t.SUBSCRIPTION;default:return $t.QUERY}}function Cqe(e){for(let t of e.argumentDataByName.values()){for(let r of t.directivesByName.values())t.node.directives.push(...r);e.node.arguments.push(t.node)}}function Bqe(e){var r;let t=[];for(let n of e.values()){sv(n)&&Cqe(n);for(let[i,a]of n.directivesByName){if(i===$t.DEPRECATED){let o=a[0];if(!o)continue;if((r=o.arguments)!=null&&r.length){n.node.directives.push(o);continue}n.node.directives.push(G(q({},o),{arguments:[{kind:Ye.Kind.ARGUMENT,value:{kind:Ye.Kind.STRING,value:Ye.DEFAULT_DEPRECATION_REASON},name:(0,tl.stringToNameNode)($t.REASON)}]}));continue}n.node.directives.push(...a)}t.push(n.node)}return t}function Uqe(e,t){if(t.description){if("configureDescriptionDataBySubgraphName"in t){for(let{propagate:r}of t.configureDescriptionDataBySubgraphName.values())if(!r)return}(!e.description||e.description.value.length0&&e.federatedDirectivesData.directivesByName.set($t.REQUIRES_SCOPES,[(0,Ms.generateRequiresScopesDirective)(t.requiredScopes)]))}function Vqe(e,t){if(!t)return;let r=t.fieldAuthDataByFieldName.get(e.name);r&&(r.originalData.requiresAuthentication&&e.federatedDirectivesData.directivesByName.set($t.AUTHENTICATED,[(0,Ms.generateSimpleDirective)($t.AUTHENTICATED)]),r.originalData.requiredScopes.length>0&&e.federatedDirectivesData.directivesByName.set($t.REQUIRES_SCOPES,[(0,Ms.generateRequiresScopesDirective)(r.originalData.requiredScopes)]))}function JP(e){return{kind:Ye.Kind.DIRECTIVE,name:(0,tl.stringToNameNode)($t.DEPRECATED),arguments:[{kind:Ye.Kind.ARGUMENT,name:(0,tl.stringToNameNode)($t.REASON),value:{kind:Ye.Kind.STRING,value:e||$t.DEPRECATED_DEFAULT_ARGUMENT_VALUE}}]}}function R4(e){switch(e.kind){case Ye.Kind.ARGUMENT:case Ye.Kind.FIELD_DEFINITION:case Ye.Kind.INPUT_VALUE_DEFINITION:case Ye.Kind.ENUM_VALUE_DEFINITION:return e.federatedCoords;default:return e.name}}function w4(e){let t=[],r=new Set;for(let n of e){let i=(0,Ye.print)(n);r.has(i)||(r.add(i),t.push(n))}return t}function ov({data:e,federatedDirectiveDataByName:t,parentDefinitionDataByTypeName:r}){var u;let n=[...e.federatedDirectivesData.tagDirectiveByName.values()];e.federatedDirectivesData.isDeprecated&&n.push(JP(e.federatedDirectivesData.deprecatedReason));let i=R4(e),a=[],o=[];for(let[l,m]of e.federatedDirectivesData.directivesByName){if(l===$t.SEMANTIC_NON_NULL&&sv(e)){n.push((0,Ms.generateSemanticNonNullDirective)((u=(0,Ms.getFirstEntry)(e.nullLevelsBySubgraphName))!=null?u:new Set([0])));continue}let h=t.get(l);if(!h||!h.isComposed&&!bqe.ROUTER_FEDERATED_DIRECTIVE_NAMES.has(l)||h.isComposed&&!h.isReferenced)continue;if(m.length<2){n.push(...m);continue}let N=w4(m),T=(0,Oqe.validateDirectives)({data:e,directiveCoords:i,directiveDefinitionData:h,directiveNodes:N,parentDefinitionDataByTypeName:r});if(!T.success){a.push(...T.errors);continue}if(N.length>1&&h.isComposed&&!h.isRepeatable){o.push((0,Dqe.invalidRepeatedComposedDirectiveWarning)({directiveCoords:i,directiveName:l,printedDirective:(0,Ye.print)(N[0])})),n.push(N[0]);continue}n.push(...N)}return a.length>0?{errors:a,success:!1}:{nodes:n,success:!0,warnings:o}}function YP(e){var r;let t=[];e.federatedDirectivesData.isDeprecated&&t.push(JP(e.federatedDirectivesData.deprecatedReason));for(let[n,i]of e.federatedDirectivesData.directivesByName){if(n===$t.SEMANTIC_NON_NULL&&sv(e)){t.push((0,Ms.generateSemanticNonNullDirective)((r=(0,Ms.getFirstEntry)(e.nullLevelsBySubgraphName))!=null?r:new Set([0])));continue}$t.PERSISTED_CLIENT_DIRECTIVES.has(n)&&t.push(i[0])}return t}function Kqe(e){let t=YP(e),r=[];for(let n of e.argumentDataByName.values())F4(n)||r.push(G(q({},n.node),{directives:YP(n)}));return G(q({},e.node),{directives:t,arguments:r})}function $qe({argumentNodes:e,data:t,description:r,federatedDirectiveDataByName:n,parentDefinitionDataByTypeName:i}){t.node.arguments=e,t.node.description=r,t.node.name=(0,tl.stringToNameNode)(t.name),t.node.type=t.type;let a=ov({federatedDirectiveDataByName:n,data:t,parentDefinitionDataByTypeName:i});return a.success?(t.node.directives=a.nodes,{node:t.node,success:!0,warnings:a.warnings}):a}function P4({data:e,description:t,federatedDirectiveDataByName:r,parentDefinitionDataByTypeName:n}){e.node.description=t,e.node.name=(0,tl.stringToNameNode)(e.name),e.node.type=e.type,e.includeDefaultValue&&(e.node.defaultValue=e.defaultValue);let i=ov({data:e,federatedDirectiveDataByName:r,parentDefinitionDataByTypeName:n});return i.success?(e.node.directives=i.nodes,{node:e.node,success:!0,warnings:i.warnings}):i}function Gqe({data:e,description:t,federatedDirectiveDataByName:r,parentDefinitionDataByTypeName:n}){e.node.description=t,e.node.name=(0,tl.stringToNameNode)(e.name);let i=ov({federatedDirectiveDataByName:r,data:e,parentDefinitionDataByTypeName:n});return i.success?(e.node.directives=i.nodes,{node:e.node,success:!0,warnings:i.warnings}):i}function Qqe({data:e,federatedDirectiveDataByName:t,parentDefinitionDataByTypeName:r}){let n=[],i=[],a=[],o=[];for(let[u,l]of e.argumentDataByName){let m=(0,Ms.getEntriesNotInHashSet)(e.subgraphNames,l.subgraphNames);if(m.length>0){l.requiredSubgraphNames.size>0&&a.push({inputValueName:u,missingSubgraphs:m,requiredSubgraphs:[...l.requiredSubgraphNames]}),e.optionalArgumentNames.delete(u);continue}let h=P4({data:l,federatedDirectiveDataByName:t,parentDefinitionDataByTypeName:r});if(!h.success){n.push(...h.errors);continue}o.push(h.node),i.push(...h.warnings)}return a.length>0&&n.push((0,O4.invalidRequiredInputValueError)($t.DIRECTIVE_DEFINITION,`@${e.name}`,a)),n.length>0?{errors:n,success:!1}:{nodes:o,success:!0,warnings:i}}function Yqe({data:e,federatedDirectiveDataByName:t,parentDefinitionDataByTypeName:r}){let n=Qqe({data:e,federatedDirectiveDataByName:t,parentDefinitionDataByTypeName:r});return n.success?(e.node={arguments:n.nodes,kind:Ye.Kind.DIRECTIVE_DEFINITION,locations:(0,tl.setToNameNodeArray)(e.locations),name:(0,tl.stringToNameNode)(e.name),repeatable:e.isRepeatable,description:e.description},{success:!0}):n}function Jqe(){return{byShareable:new Set,subgraphNamesByExternalFieldName:new Map}}function zqe(e,t){let r=e.isShareableBySubgraphName.size,n=new Array,i=0;for(let[a,o]of e.isShareableBySubgraphName){let u=e.externalFieldDataBySubgraphName.get(a);if(u&&!u.isUnconditionallyProvided){n.push(a);continue}o||(i+=1)}switch(i){case 0:r===n.length&&t.subgraphNamesByExternalFieldName.set(e.name,n);return;case 1:if(r===1)return;r-n.length!==1&&t.byShareable.add(e.name);return;default:t.byShareable.add(e.name)}}var S4;(function(e){e[e.UNION=0]="UNION",e[e.INTERSECTION=1]="INTERSECTION",e[e.CONSISTENT=2]="CONSISTENT"})(S4||(ut.MergeMethod=S4={}));function av({concreteTypeNamesByAbstractTypeName:e,implementationType:t,interfaceImplementationTypeNamesByInterfaceTypeName:r,originalType:n}){if(n.kind===Ye.Kind.NON_NULL_TYPE)return t.kind!==Ye.Kind.NON_NULL_TYPE?!1:av({concreteTypeNamesByAbstractTypeName:e,implementationType:t.type,interfaceImplementationTypeNamesByInterfaceTypeName:r,originalType:n.type});if(t.kind===Ye.Kind.NON_NULL_TYPE)return av({concreteTypeNamesByAbstractTypeName:e,implementationType:t.type,interfaceImplementationTypeNamesByInterfaceTypeName:r,originalType:n});switch(n.kind){case Ye.Kind.NAMED_TYPE:if(t.kind===Ye.Kind.NAMED_TYPE){let i=n.name.value,a=t.name.value;if(i===a)return!0;let o=r.get(i),u=e.get(i);return!!(u!=null&&u.has(a)||o!=null&&o.has(a))}return!1;default:return t.kind===Ye.Kind.LIST_TYPE?av({concreteTypeNamesByAbstractTypeName:e,implementationType:t.type,interfaceImplementationTypeNamesByInterfaceTypeName:r,originalType:n.type}):!1}}function F4(e){return e.federatedDirectivesData.directivesByName.has($t.INACCESSIBLE)||e.directivesByName.has($t.INACCESSIBLE)}function Hqe(e){return e===Ye.Kind.SCALAR_TYPE_DEFINITION||e===Ye.Kind.ENUM_TYPE_DEFINITION}function Wqe(e){switch(e.kind){case Ye.Kind.BOOLEAN:return e.value;case Ye.Kind.ENUM:case Ye.Kind.STRING:return e.value;case Ye.Kind.FLOAT:case Ye.Kind.INT:try{return parseFloat(e.value)}catch(t){return"NaN"}case Ye.Kind.NULL:return null}}function Xqe(e){return e.kind===Ye.Kind.OBJECT_TYPE_DEFINITION&&e.renamedTypeName||e.name}function Zqe(){return{providedBy:[],requiredBy:[]}}function exe(e,t){switch(e.kind){case Ye.Kind.ENUM_VALUE_DEFINITION:return`${e.parentTypeName}.${e.name}`;case Ye.Kind.FIELD_DEFINITION:return`${t?e.renamedParentTypeName:e.originalParentTypeName}.${e.name}`;case Ye.Kind.ARGUMENT:case Ye.Kind.INPUT_VALUE_DEFINITION:return t?e.federatedCoords:e.originalCoords;case Ye.Kind.OBJECT_TYPE_DEFINITION:return t?e.renamedTypeName:e.name;default:return e.name}}function txe(e){return e.kind===Ye.Kind.OBJECT_TYPE_DEFINITION||e.kind===Ye.Kind.INTERFACE_TYPE_DEFINITION}function rxe(e){return{isDefinedExternal:e,isUnconditionallyProvided:!e}}function nxe(e){let{value:t,done:r}=e.configureDescriptionDataBySubgraphName.values().next();if(r)return e.description;if(t.propagate)return(0,Sqe.getDescriptionFromString)(t.description)||e.description}function ixe(e,t){return e.kind===t.kind}function sv(e){return e.kind===Ye.Kind.FIELD_DEFINITION}function axe(e){return e.kind===Ye.Kind.INPUT_OBJECT_TYPE_DEFINITION}function oxe(e){return $t.INPUT_NODE_KINDS.has(e)}function sxe(e){return $t.OUTPUT_NODE_KINDS.has(e)}function uxe(e){return $t.INTERFACE_NODE_KINDS.has(e.kind)}function L4(e){return e.kind===Ye.Kind.ENUM_TYPE_DEFINITION}function cxe({data:e,namedTypeData:t,node:r}){e.defaultValue&&L4(t)&&(e.defaultValue=(0,Ye.visit)(e.defaultValue,{StringValue:{enter(n){return{kind:Ye.Kind.ENUM,value:n.value}}}}),r&&(r.defaultValue=e.defaultValue))}});var Oy=D(Sy=>{"use strict";d();p();f();Object.defineProperty(Sy,"__esModule",{value:!0});Sy.newDirectiveArgumentData=hxe;Sy.newDirectiveDefinitionData=yxe;Sy.copyDirectiveDefinitionData=Nxe;var lxe=xr(),C4=ve(),dxe=Zc(),fxe=Jo(),pxe=Un(),mxe=An();function hxe({configureDescriptionDataBySubgraphName:e,directive:t,defaultValue:r,description:n,directivesByName:i,name:a,namedTypeKind:o,node:u,requiredSubgraphNames:l,subgraphNames:m,typeNode:h}){return{configureDescriptionDataBySubgraphName:e!=null?e:new Map,directivesByName:i!=null?i:new Map,federatedCoords:t,federatedDirectivesData:(0,dxe.newFederatedDirectivesData)(),includeDefaultValue:!!r,kind:C4.Kind.ARGUMENT,name:a,namedTypeKind:o,namedTypeName:(0,fxe.getTypeNodeNamedTypeName)(h),node:u!=null?u:{directives:[],defaultValue:r,description:n,name:(0,pxe.stringToNameNode)(a),kind:C4.Kind.INPUT_VALUE_DEFINITION,type:h},originalCoords:t,requiredSubgraphNames:l!=null?l:new Set,subgraphNames:m!=null?m:new Set,type:h,defaultValue:r,description:n}}function yxe({argumentDataByName:e,description:t,isComposed:r,isReferenced:n,isRepeatable:i,locations:a,name:o,node:u,optionalArgumentNames:l,requiredArgumentNames:m,subgraphNames:h}){return{argumentDataByName:e!=null?e:new Map,description:t,executableLocations:a.intersection(lxe.EXECUTABLE_DIRECTIVE_LOCATIONS),isComposed:!!r,isReferenced:!!n,isRepeatable:!!i,locations:a,majorVersion:-1,minorVersion:-1,name:o,optionalArgumentNames:l!=null?l:new Set,node:u,requiredArgumentNames:m!=null?m:new Set,subgraphNames:h!=null?h:new Set}}function Nxe({argumentDataByName:e,description:t,executableLocations:r,isComposed:n,isReferenced:i,isRepeatable:a,locations:o,name:u,node:l,minorVersion:m,majorVersion:h,optionalArgumentNames:N,requiredArgumentNames:T,subgraphNames:O}){return{argumentDataByName:(0,mxe.copyObjectValueMap)(e),description:t?q({},t):void 0,executableLocations:new Set(r),isComposed:n,isReferenced:i,isRepeatable:a,locations:new Set(o),majorVersion:h,minorVersion:m,name:u,node:q({},l),optionalArgumentNames:new Set(N),requiredArgumentNames:new Set(T),subgraphNames:new Set(O)}}});var uv=D(je=>{"use strict";d();p();f();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_DEFINITION_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.LIST_SIZE_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.COST_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 fi=Un(),De=ve(),B=xr(),er=Wh(),wr=Xg(),Pe=Oy();je.AUTHENTICATED_DEFINITION_DATA=(0,Pe.newDirectiveDefinitionData)({locations:new Set([B.ENUM_UPPER,B.FIELD_DEFINITION_UPPER,B.INTERFACE_UPPER,B.OBJECT_UPPER,B.SCALAR_UPPER]),name:B.AUTHENTICATED,node:er.AUTHENTICATED_DEFINITION});je.COMPOSE_DIRECTIVE_DEFINITION_DATA=(0,Pe.newDirectiveDefinitionData)({argumentDataByName:new Map([[B.NAME,(0,Pe.newDirectiveArgumentData)({directive:`@${B.COMPOSE_DIRECTIVE}`,name:B.NAME,namedTypeKind:De.Kind.SCALAR_TYPE_DEFINITION,typeNode:wr.REQUIRED_STRING_TYPE_NODE})]]),isRepeatable:!0,locations:new Set([B.SCHEMA_UPPER]),name:B.COMPOSE_DIRECTIVE,node:er.COMPOSE_DIRECTIVE_DEFINITION,requiredArgumentNames:new Set([B.NAME])});je.CONFIGURE_DESCRIPTION_DEFINITION_DATA=(0,Pe.newDirectiveDefinitionData)({argumentDataByName:new Map([[B.PROPAGATE,(0,Pe.newDirectiveArgumentData)({defaultValue:{kind:De.Kind.BOOLEAN,value:!0},directive:`@${B.CONFIGURE_DESCRIPTION}`,name:B.PROPAGATE,namedTypeKind:De.Kind.SCALAR_TYPE_DEFINITION,typeNode:{kind:De.Kind.NON_NULL_TYPE,type:(0,fi.stringToNamedTypeNode)(B.BOOLEAN_SCALAR)}})],[B.DESCRIPTION_OVERRIDE,(0,Pe.newDirectiveArgumentData)({directive:`@${B.CONFIGURE_DESCRIPTION}`,name:B.DESCRIPTION_OVERRIDE,namedTypeKind:De.Kind.SCALAR_TYPE_DEFINITION,typeNode:(0,fi.stringToNamedTypeNode)(B.STRING_SCALAR)})]]),locations:new Set([B.ARGUMENT_DEFINITION_UPPER,B.ENUM_UPPER,B.ENUM_VALUE_UPPER,B.FIELD_DEFINITION_UPPER,B.INTERFACE_UPPER,B.INPUT_OBJECT_UPPER,B.INPUT_FIELD_DEFINITION_UPPER,B.OBJECT_UPPER,B.SCALAR_UPPER,B.SCHEMA_UPPER,B.UNION_UPPER]),name:B.CONFIGURE_DESCRIPTION,node:er.CONFIGURE_DESCRIPTION_DEFINITION,optionalArgumentNames:new Set([B.PROPAGATE,B.DESCRIPTION_OVERRIDE])});je.CONFIGURE_CHILD_DESCRIPTIONS_DEFINITION_DATA=(0,Pe.newDirectiveDefinitionData)({argumentDataByName:new Map([[B.PROPAGATE,(0,Pe.newDirectiveArgumentData)({defaultValue:{kind:De.Kind.BOOLEAN,value:!0},directive:`@${B.CONFIGURE_CHILD_DESCRIPTIONS}`,name:B.PROPAGATE,namedTypeKind:De.Kind.SCALAR_TYPE_DEFINITION,typeNode:{kind:De.Kind.NON_NULL_TYPE,type:(0,fi.stringToNamedTypeNode)(B.BOOLEAN_SCALAR)}})]]),locations:new Set([B.ENUM_UPPER,B.INPUT_OBJECT_UPPER,B.INTERFACE_UPPER,B.OBJECT_UPPER]),name:B.CONFIGURE_CHILD_DESCRIPTIONS,node:er.CONFIGURE_CHILD_DESCRIPTIONS_DEFINITION,optionalArgumentNames:new Set([B.PROPAGATE])});je.CONNECT_FIELD_RESOLVER_DEFINITION_DATA=(0,Pe.newDirectiveDefinitionData)({argumentDataByName:new Map([[B.CONTEXT,(0,Pe.newDirectiveArgumentData)({directive:`@${B.CONNECT_FIELD_RESOLVER}`,name:B.CONTEXT,namedTypeKind:De.Kind.SCALAR_TYPE_DEFINITION,typeNode:wr.REQUIRED_FIELDSET_TYPE_NODE})]]),locations:new Set([B.FIELD_DEFINITION_UPPER]),name:B.CONNECT_FIELD_RESOLVER,node:er.CONNECT_FIELD_RESOLVER_DEFINITION,requiredArgumentNames:new Set([B.CONTEXT])});je.COST_DEFINITION_DATA=(0,Pe.newDirectiveDefinitionData)({argumentDataByName:new Map([[B.WEIGHT,(0,Pe.newDirectiveArgumentData)({directive:`@${B.COST}`,name:B.WEIGHT,namedTypeKind:De.Kind.SCALAR_TYPE_DEFINITION,typeNode:{kind:De.Kind.NON_NULL_TYPE,type:(0,fi.stringToNamedTypeNode)(B.INT_SCALAR)}})]]),locations:new Set([B.ARGUMENT_DEFINITION_UPPER,B.ENUM_UPPER,B.FIELD_DEFINITION_UPPER,B.INPUT_FIELD_DEFINITION_UPPER,B.OBJECT_UPPER,B.SCALAR_UPPER]),name:B.COST,node:er.COST_DEFINITION,requiredArgumentNames:new Set([B.WEIGHT])});je.DEPRECATED_DEFINITION_DATA=(0,Pe.newDirectiveDefinitionData)({argumentDataByName:new Map([[B.REASON,(0,Pe.newDirectiveArgumentData)({defaultValue:{kind:De.Kind.STRING,value:De.DEFAULT_DEPRECATION_REASON},directive:`@${B.DEPRECATED}`,name:B.REASON,namedTypeKind:De.Kind.SCALAR_TYPE_DEFINITION,typeNode:(0,fi.stringToNamedTypeNode)(B.STRING_SCALAR)})]]),locations:new Set([B.ARGUMENT_DEFINITION_UPPER,B.ENUM_VALUE_UPPER,B.FIELD_DEFINITION_UPPER,B.INPUT_FIELD_DEFINITION_UPPER]),name:B.DEPRECATED,node:er.DEPRECATED_DEFINITION,optionalArgumentNames:new Set([B.REASON])});je.EXTENDS_DEFINITION_DATA=(0,Pe.newDirectiveDefinitionData)({locations:new Set([B.INTERFACE_UPPER,B.OBJECT_UPPER]),name:B.EXTENDS,node:er.EXTENDS_DEFINITION});je.EXTERNAL_DEFINITION_DATA=(0,Pe.newDirectiveDefinitionData)({locations:new Set([B.FIELD_DEFINITION_UPPER,B.OBJECT_UPPER]),name:B.EXTERNAL,node:er.EXTERNAL_DEFINITION});je.INACCESSIBLE_DEFINITION_DATA=(0,Pe.newDirectiveDefinitionData)({locations:new Set([B.ARGUMENT_DEFINITION_UPPER,B.ENUM_UPPER,B.ENUM_VALUE_UPPER,B.FIELD_DEFINITION_UPPER,B.INPUT_FIELD_DEFINITION_UPPER,B.INPUT_OBJECT_UPPER,B.INTERFACE_UPPER,B.OBJECT_UPPER,B.SCALAR_UPPER,B.UNION_UPPER]),name:B.INACCESSIBLE,node:er.INACCESSIBLE_DEFINITION});je.INTERFACE_OBJECT_DEFINITION_DATA=(0,Pe.newDirectiveDefinitionData)({locations:new Set([B.OBJECT_UPPER]),name:B.INTERFACE_OBJECT,node:er.INTERFACE_OBJECT_DEFINITION});je.KAFKA_PUBLISH_DEFINITION_DATA=(0,Pe.newDirectiveDefinitionData)({argumentDataByName:new Map([[B.TOPIC,(0,Pe.newDirectiveArgumentData)({directive:`@${B.EDFS_KAFKA_PUBLISH}`,name:B.TOPIC,namedTypeKind:De.Kind.SCALAR_TYPE_DEFINITION,typeNode:wr.REQUIRED_STRING_TYPE_NODE})],[B.PROVIDER_ID,(0,Pe.newDirectiveArgumentData)({defaultValue:{kind:De.Kind.STRING,value:B.DEFAULT_EDFS_PROVIDER_ID},directive:`@${B.EDFS_KAFKA_PUBLISH}`,name:B.PROVIDER_ID,namedTypeKind:De.Kind.SCALAR_TYPE_DEFINITION,typeNode:wr.REQUIRED_STRING_TYPE_NODE})]]),locations:new Set([B.FIELD_DEFINITION_UPPER]),name:B.EDFS_KAFKA_PUBLISH,node:er.EDFS_KAFKA_PUBLISH_DEFINITION,optionalArgumentNames:new Set([B.PROVIDER_ID]),requiredArgumentNames:new Set([B.TOPIC])});je.KAFKA_SUBSCRIBE_DEFINITION_DATA=(0,Pe.newDirectiveDefinitionData)({argumentDataByName:new Map([[B.TOPICS,(0,Pe.newDirectiveArgumentData)({directive:`@${B.EDFS_KAFKA_SUBSCRIBE}`,name:B.TOPICS,namedTypeKind:De.Kind.SCALAR_TYPE_DEFINITION,typeNode:{kind:De.Kind.NON_NULL_TYPE,type:{kind:De.Kind.LIST_TYPE,type:wr.REQUIRED_STRING_TYPE_NODE}}})],[B.PROVIDER_ID,(0,Pe.newDirectiveArgumentData)({directive:`@${B.EDFS_KAFKA_SUBSCRIBE}`,name:B.PROVIDER_ID,namedTypeKind:De.Kind.SCALAR_TYPE_DEFINITION,typeNode:wr.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:De.Kind.STRING,value:B.DEFAULT_EDFS_PROVIDER_ID}})]]),locations:new Set([B.FIELD_DEFINITION_UPPER]),name:B.EDFS_KAFKA_SUBSCRIBE,node:er.EDFS_KAFKA_SUBSCRIBE_DEFINITION,optionalArgumentNames:new Set([B.PROVIDER_ID]),requiredArgumentNames:new Set([B.TOPICS])});je.NATS_PUBLISH_DEFINITION_DATA=(0,Pe.newDirectiveDefinitionData)({argumentDataByName:new Map([[B.SUBJECT,(0,Pe.newDirectiveArgumentData)({directive:`@${B.EDFS_NATS_PUBLISH}`,name:B.SUBJECT,namedTypeKind:De.Kind.SCALAR_TYPE_DEFINITION,typeNode:wr.REQUIRED_STRING_TYPE_NODE})],[B.PROVIDER_ID,(0,Pe.newDirectiveArgumentData)({defaultValue:{kind:De.Kind.STRING,value:B.DEFAULT_EDFS_PROVIDER_ID},directive:`@${B.EDFS_NATS_PUBLISH}`,name:B.PROVIDER_ID,namedTypeKind:De.Kind.SCALAR_TYPE_DEFINITION,typeNode:wr.REQUIRED_STRING_TYPE_NODE})]]),isComposed:!0,locations:new Set([B.FIELD_DEFINITION_UPPER]),name:B.EDFS_NATS_PUBLISH,node:er.EDFS_NATS_PUBLISH_DEFINITION,optionalArgumentNames:new Set([B.PROVIDER_ID]),requiredArgumentNames:new Set([B.SUBJECT])});je.NATS_REQUEST_DEFINITION_DATA=(0,Pe.newDirectiveDefinitionData)({argumentDataByName:new Map([[B.SUBJECT,(0,Pe.newDirectiveArgumentData)({directive:`@${B.EDFS_NATS_REQUEST}`,name:B.SUBJECT,namedTypeKind:De.Kind.SCALAR_TYPE_DEFINITION,typeNode:wr.REQUIRED_STRING_TYPE_NODE})],[B.PROVIDER_ID,(0,Pe.newDirectiveArgumentData)({defaultValue:{kind:De.Kind.STRING,value:B.DEFAULT_EDFS_PROVIDER_ID},directive:`@${B.EDFS_NATS_REQUEST}`,name:B.PROVIDER_ID,namedTypeKind:De.Kind.SCALAR_TYPE_DEFINITION,typeNode:wr.REQUIRED_STRING_TYPE_NODE})]]),locations:new Set([B.FIELD_DEFINITION_UPPER]),name:B.EDFS_NATS_REQUEST,node:er.EDFS_NATS_REQUEST_DEFINITION,optionalArgumentNames:new Set([B.PROVIDER_ID]),requiredArgumentNames:new Set([B.SUBJECT])});je.NATS_SUBSCRIBE_DEFINITION_DATA=(0,Pe.newDirectiveDefinitionData)({argumentDataByName:new Map([[B.SUBJECTS,(0,Pe.newDirectiveArgumentData)({directive:`@${B.EDFS_NATS_SUBSCRIBE}`,name:B.SUBJECTS,namedTypeKind:De.Kind.SCALAR_TYPE_DEFINITION,typeNode:{kind:De.Kind.NON_NULL_TYPE,type:{kind:De.Kind.LIST_TYPE,type:wr.REQUIRED_STRING_TYPE_NODE}}})],[B.PROVIDER_ID,(0,Pe.newDirectiveArgumentData)({directive:`@${B.EDFS_NATS_SUBSCRIBE}`,defaultValue:{kind:De.Kind.STRING,value:B.DEFAULT_EDFS_PROVIDER_ID},name:B.PROVIDER_ID,namedTypeKind:De.Kind.SCALAR_TYPE_DEFINITION,typeNode:wr.REQUIRED_STRING_TYPE_NODE})],[B.STREAM_CONFIGURATION,(0,Pe.newDirectiveArgumentData)({directive:`@${B.EDFS_NATS_SUBSCRIBE}`,name:B.STREAM_CONFIGURATION,namedTypeKind:De.Kind.INPUT_OBJECT_TYPE_DEFINITION,typeNode:(0,fi.stringToNamedTypeNode)(B.EDFS_NATS_STREAM_CONFIGURATION)})]]),locations:new Set([B.FIELD_DEFINITION_UPPER]),name:B.EDFS_NATS_SUBSCRIBE,node:er.EDFS_NATS_SUBSCRIBE_DEFINITION,optionalArgumentNames:new Set([B.PROVIDER_ID,B.STREAM_CONFIGURATION]),requiredArgumentNames:new Set([B.SUBJECTS])});je.ONE_OF_DEFINITION_DATA=(0,Pe.newDirectiveDefinitionData)({locations:new Set([B.INPUT_OBJECT_UPPER]),name:B.ONE_OF,node:er.ONE_OF_DEFINITION});je.OVERRIDE_DEFINITION_DATA=(0,Pe.newDirectiveDefinitionData)({argumentDataByName:new Map([[B.FROM,(0,Pe.newDirectiveArgumentData)({directive:`@${B.OVERRIDE}`,name:B.FROM,namedTypeKind:De.Kind.SCALAR_TYPE_DEFINITION,typeNode:wr.REQUIRED_STRING_TYPE_NODE})]]),locations:new Set([B.FIELD_DEFINITION_UPPER]),name:B.OVERRIDE,node:er.OVERRIDE_DEFINITION,requiredArgumentNames:new Set([B.FROM])});je.KEY_DEFINITION_DATA=(0,Pe.newDirectiveDefinitionData)({argumentDataByName:new Map([[B.FIELDS,(0,Pe.newDirectiveArgumentData)({directive:`@${B.KEY}`,name:B.FIELDS,namedTypeKind:De.Kind.SCALAR_TYPE_DEFINITION,typeNode:wr.REQUIRED_FIELDSET_TYPE_NODE})],[B.RESOLVABLE,(0,Pe.newDirectiveArgumentData)({defaultValue:{kind:De.Kind.BOOLEAN,value:!0},directive:`@${B.KEY}`,name:B.RESOLVABLE,namedTypeKind:De.Kind.SCALAR_TYPE_DEFINITION,typeNode:(0,fi.stringToNamedTypeNode)(B.BOOLEAN_SCALAR)})]]),isRepeatable:!0,locations:new Set([B.INTERFACE_UPPER,B.OBJECT_UPPER]),name:B.KEY,node:er.KEY_DEFINITION,optionalArgumentNames:new Set([B.RESOLVABLE]),requiredArgumentNames:new Set([B.FIELDS])});je.LINK_DEFINITION_DATA=(0,Pe.newDirectiveDefinitionData)({argumentDataByName:new Map([[B.URL_LOWER,(0,Pe.newDirectiveArgumentData)({directive:`@${B.LINK}`,name:B.URL_LOWER,namedTypeKind:De.Kind.SCALAR_TYPE_DEFINITION,typeNode:wr.REQUIRED_STRING_TYPE_NODE})],[B.AS,(0,Pe.newDirectiveArgumentData)({directive:`@${B.LINK}`,name:B.AS,namedTypeKind:De.Kind.SCALAR_TYPE_DEFINITION,typeNode:(0,fi.stringToNamedTypeNode)(B.STRING_SCALAR)})],[B.FOR,(0,Pe.newDirectiveArgumentData)({directive:`@${B.LINK}`,name:B.FOR,namedTypeKind:De.Kind.ENUM_TYPE_DEFINITION,typeNode:(0,fi.stringToNamedTypeNode)(B.LINK_PURPOSE)})],[B.IMPORT,(0,Pe.newDirectiveArgumentData)({directive:`@${B.LINK}`,name:B.IMPORT,namedTypeKind:De.Kind.SCALAR_TYPE_DEFINITION,typeNode:{kind:De.Kind.LIST_TYPE,type:(0,fi.stringToNamedTypeNode)(B.LINK_IMPORT)}})]]),isRepeatable:!0,locations:new Set([B.SCHEMA_UPPER]),name:B.LINK,node:er.LINK_DEFINITION,optionalArgumentNames:new Set([B.AS,B.FOR,B.IMPORT]),requiredArgumentNames:new Set([B.URL_LOWER])});je.LIST_SIZE_DEFINITION_DATA=(0,Pe.newDirectiveDefinitionData)({argumentDataByName:new Map([[B.ASSUMED_SIZE,(0,Pe.newDirectiveArgumentData)({directive:`@${B.LIST_SIZE}`,name:B.ASSUMED_SIZE,namedTypeKind:De.Kind.SCALAR_TYPE_DEFINITION,typeNode:(0,fi.stringToNamedTypeNode)(B.INT_SCALAR)})],[B.SLICING_ARGUMENTS,(0,Pe.newDirectiveArgumentData)({directive:`@${B.LIST_SIZE}`,name:B.SLICING_ARGUMENTS,namedTypeKind:De.Kind.SCALAR_TYPE_DEFINITION,typeNode:{kind:De.Kind.LIST_TYPE,type:wr.REQUIRED_STRING_TYPE_NODE}})],[B.SIZED_FIELDS,(0,Pe.newDirectiveArgumentData)({directive:`@${B.LIST_SIZE}`,name:B.SIZED_FIELDS,namedTypeKind:De.Kind.SCALAR_TYPE_DEFINITION,typeNode:{kind:De.Kind.LIST_TYPE,type:wr.REQUIRED_STRING_TYPE_NODE}})],[B.REQUIRE_ONE_SLICING_ARGUMENT,(0,Pe.newDirectiveArgumentData)({directive:`@${B.LIST_SIZE}`,name:B.REQUIRE_ONE_SLICING_ARGUMENT,namedTypeKind:De.Kind.SCALAR_TYPE_DEFINITION,typeNode:(0,fi.stringToNamedTypeNode)(B.BOOLEAN_SCALAR),defaultValue:{kind:De.Kind.BOOLEAN,value:!0}})]]),locations:new Set([B.FIELD_DEFINITION_UPPER]),name:B.LIST_SIZE,node:er.LIST_SIZE_DEFINITION,optionalArgumentNames:new Set([B.ASSUMED_SIZE,B.SLICING_ARGUMENTS,B.SIZED_FIELDS,B.REQUIRE_ONE_SLICING_ARGUMENT])});je.PROVIDES_DEFINITION_DATA=(0,Pe.newDirectiveDefinitionData)({argumentDataByName:new Map([[B.FIELDS,(0,Pe.newDirectiveArgumentData)({directive:`@${B.PROVIDES}`,name:B.FIELDS,namedTypeKind:De.Kind.SCALAR_TYPE_DEFINITION,typeNode:wr.REQUIRED_FIELDSET_TYPE_NODE})]]),locations:new Set([B.FIELD_DEFINITION_UPPER]),name:B.PROVIDES,node:er.PROVIDES_DEFINITION,requiredArgumentNames:new Set([B.FIELDS])});je.REQUIRES_DEFINITION_DATA=(0,Pe.newDirectiveDefinitionData)({argumentDataByName:new Map([[B.FIELDS,(0,Pe.newDirectiveArgumentData)({directive:`@${B.REQUIRES}`,name:B.FIELDS,namedTypeKind:De.Kind.SCALAR_TYPE_DEFINITION,typeNode:wr.REQUIRED_FIELDSET_TYPE_NODE})]]),locations:new Set([B.FIELD_DEFINITION_UPPER]),name:B.REQUIRES,node:er.REQUIRES_DEFINITION,requiredArgumentNames:new Set([B.FIELDS])});je.REDIS_PUBLISH_DEFINITION_DATA=(0,Pe.newDirectiveDefinitionData)({argumentDataByName:new Map([[B.CHANNEL,(0,Pe.newDirectiveArgumentData)({directive:`@${B.EDFS_REDIS_PUBLISH}`,name:B.CHANNEL,namedTypeKind:De.Kind.SCALAR_TYPE_DEFINITION,typeNode:wr.REQUIRED_STRING_TYPE_NODE})],[B.PROVIDER_ID,(0,Pe.newDirectiveArgumentData)({defaultValue:{kind:De.Kind.STRING,value:B.DEFAULT_EDFS_PROVIDER_ID},directive:`@${B.EDFS_REDIS_PUBLISH}`,name:B.PROVIDER_ID,namedTypeKind:De.Kind.SCALAR_TYPE_DEFINITION,typeNode:wr.REQUIRED_STRING_TYPE_NODE})]]),locations:new Set([B.FIELD_DEFINITION_UPPER]),name:B.EDFS_REDIS_PUBLISH,node:er.EDFS_REDIS_PUBLISH_DEFINITION,optionalArgumentNames:new Set([B.PROVIDER_ID]),requiredArgumentNames:new Set([B.CHANNEL])});je.REDIS_SUBSCRIBE_DEFINITION_DATA=(0,Pe.newDirectiveDefinitionData)({argumentDataByName:new Map([[B.CHANNELS,(0,Pe.newDirectiveArgumentData)({directive:`@${B.EDFS_REDIS_SUBSCRIBE}`,name:B.CHANNELS,namedTypeKind:De.Kind.SCALAR_TYPE_DEFINITION,typeNode:{kind:De.Kind.NON_NULL_TYPE,type:{kind:De.Kind.LIST_TYPE,type:wr.REQUIRED_STRING_TYPE_NODE}}})],[B.PROVIDER_ID,(0,Pe.newDirectiveArgumentData)({directive:`@${B.EDFS_REDIS_SUBSCRIBE}`,name:B.PROVIDER_ID,namedTypeKind:De.Kind.SCALAR_TYPE_DEFINITION,typeNode:wr.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:De.Kind.STRING,value:B.DEFAULT_EDFS_PROVIDER_ID}})]]),locations:new Set([B.FIELD_DEFINITION_UPPER]),name:B.EDFS_REDIS_SUBSCRIBE,node:er.EDFS_REDIS_SUBSCRIBE_DEFINITION,optionalArgumentNames:new Set([B.PROVIDER_ID]),requiredArgumentNames:new Set([B.CHANNELS])});je.REQUIRE_FETCH_REASONS_DEFINITION_DATA=(0,Pe.newDirectiveDefinitionData)({isRepeatable:!0,locations:new Set([B.FIELD_DEFINITION_UPPER,B.INTERFACE_UPPER,B.OBJECT_UPPER]),name:B.REQUIRE_FETCH_REASONS,node:er.REQUIRE_FETCH_REASONS_DEFINITION});je.REQUIRES_SCOPES_DEFINITION_DATA=(0,Pe.newDirectiveDefinitionData)({argumentDataByName:new Map([[B.SCOPES,(0,Pe.newDirectiveArgumentData)({directive:`@${B.REQUIRES_SCOPES}`,name:B.SCOPES,namedTypeKind:De.Kind.SCALAR_TYPE_DEFINITION,typeNode:{kind:De.Kind.NON_NULL_TYPE,type:{kind:De.Kind.LIST_TYPE,type:{kind:De.Kind.NON_NULL_TYPE,type:{kind:De.Kind.LIST_TYPE,type:{kind:De.Kind.NON_NULL_TYPE,type:(0,fi.stringToNamedTypeNode)(B.SCOPE_SCALAR)}}}}}})]]),locations:new Set([B.ENUM_UPPER,B.FIELD_DEFINITION_UPPER,B.INTERFACE_UPPER,B.OBJECT_UPPER,B.SCALAR_UPPER]),name:B.REQUIRES_SCOPES,node:er.REQUIRES_SCOPES_DEFINITION,requiredArgumentNames:new Set([B.SCOPES])});je.SEMANTIC_NON_NULL_DEFINITION_DATA=(0,Pe.newDirectiveDefinitionData)({argumentDataByName:new Map([[B.LEVELS,(0,Pe.newDirectiveArgumentData)({defaultValue:{kind:De.Kind.LIST,values:[{kind:De.Kind.INT,value:"0"}]},directive:`@${B.SEMANTIC_NON_NULL}`,name:B.LEVELS,namedTypeKind:De.Kind.SCALAR_TYPE_DEFINITION,typeNode:{kind:De.Kind.NON_NULL_TYPE,type:{kind:De.Kind.LIST_TYPE,type:{kind:De.Kind.NON_NULL_TYPE,type:(0,fi.stringToNamedTypeNode)(B.INT_SCALAR)}}}})]]),locations:new Set([B.FIELD_DEFINITION_UPPER]),name:B.SEMANTIC_NON_NULL,node:er.SEMANTIC_NON_NULL_DEFINITION,optionalArgumentNames:new Set([B.LEVELS])});je.SPECIFIED_BY_DEFINITION_DATA=(0,Pe.newDirectiveDefinitionData)({argumentDataByName:new Map([[B.URL_LOWER,(0,Pe.newDirectiveArgumentData)({directive:`@${B.SPECIFIED_BY}`,name:B.URL_LOWER,namedTypeKind:De.Kind.SCALAR_TYPE_DEFINITION,typeNode:wr.REQUIRED_STRING_TYPE_NODE})]]),locations:new Set([B.SCALAR_UPPER]),name:B.SPECIFIED_BY,node:er.SPECIFIED_BY_DEFINITION,requiredArgumentNames:new Set([B.URL_LOWER])});je.SHAREABLE_DEFINITION_DATA=(0,Pe.newDirectiveDefinitionData)({isRepeatable:!0,locations:new Set([B.FIELD_DEFINITION_UPPER,B.OBJECT_UPPER]),name:B.SHAREABLE,node:er.SHAREABLE_DEFINITION});je.SUBSCRIPTION_FILTER_DEFINITION_DATA=(0,Pe.newDirectiveDefinitionData)({argumentDataByName:new Map([[B.CONDITION,(0,Pe.newDirectiveArgumentData)({directive:`@${B.SUBSCRIPTION_FILTER}`,name:B.CONDITION,namedTypeKind:De.Kind.INPUT_OBJECT_TYPE_DEFINITION,typeNode:{kind:De.Kind.NON_NULL_TYPE,type:(0,fi.stringToNamedTypeNode)(B.SUBSCRIPTION_FILTER_CONDITION)}})]]),locations:new Set([B.FIELD_DEFINITION_UPPER]),name:B.SUBSCRIPTION_FILTER,node:er.SUBSCRIPTION_FILTER_DEFINITION,requiredArgumentNames:new Set([B.CONDITION])});je.TAG_DEFINITION_DATA=(0,Pe.newDirectiveDefinitionData)({argumentDataByName:new Map([[B.NAME,(0,Pe.newDirectiveArgumentData)({directive:`@${B.TAG}`,name:B.NAME,namedTypeKind:De.Kind.SCALAR_TYPE_DEFINITION,typeNode:wr.REQUIRED_STRING_TYPE_NODE})]]),isRepeatable:!0,locations:new Set([B.ARGUMENT_DEFINITION_UPPER,B.ENUM_UPPER,B.ENUM_VALUE_UPPER,B.FIELD_DEFINITION_UPPER,B.INPUT_FIELD_DEFINITION_UPPER,B.INPUT_OBJECT_UPPER,B.INTERFACE_UPPER,B.OBJECT_UPPER,B.SCALAR_UPPER,B.UNION_UPPER]),name:B.TAG,node:er.TAG_DEFINITION,requiredArgumentNames:new Set([B.NAME])})});var U4=D(B4=>{"use strict";d();p();f();Object.defineProperty(B4,"__esModule",{value:!0})});var q4=D(k4=>{"use strict";d();p();f();Object.defineProperty(k4,"__esModule",{value:!0})});var M4=D(x4=>{"use strict";d();p();f();Object.defineProperty(x4,"__esModule",{value:!0})});var V4=D(j4=>{"use strict";d();p();f();Object.defineProperty(j4,"__esModule",{value:!0})});var Fa=D((zP,K4)=>{"use strict";d();p();f();var Dy=function(e){return e&&e.Math===Math&&e};K4.exports=Dy(typeof globalThis=="object"&&globalThis)||Dy(typeof window=="object"&&window)||Dy(typeof self=="object"&&self)||Dy(typeof global=="object"&&global)||Dy(typeof zP=="object"&&zP)||function(){return this}()||Function("return this")()});var js=D((oTt,$4)=>{"use strict";d();p();f();$4.exports=function(e){try{return!!e()}catch(t){return!0}}});var rl=D((lTt,G4)=>{"use strict";d();p();f();var Txe=js();G4.exports=!Txe(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var HP=D((mTt,Q4)=>{"use strict";d();p();f();var Exe=js();Q4.exports=!Exe(function(){var e=function(){}.bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var yd=D((TTt,Y4)=>{"use strict";d();p();f();var gxe=HP(),cv=Function.prototype.call;Y4.exports=gxe?cv.bind(cv):function(){return cv.apply(cv,arguments)}});var W4=D(H4=>{"use strict";d();p();f();var J4={}.propertyIsEnumerable,z4=Object.getOwnPropertyDescriptor,Ixe=z4&&!J4.call({1:2},1);H4.f=Ixe?function(t){var r=z4(this,t);return!!r&&r.enumerable}:J4});var WP=D((DTt,X4)=>{"use strict";d();p();f();X4.exports=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}}});var Hi=D((wTt,t8)=>{"use strict";d();p();f();var Z4=HP(),e8=Function.prototype,XP=e8.call,vxe=Z4&&e8.bind.bind(XP,XP);t8.exports=Z4?vxe:function(e){return function(){return XP.apply(e,arguments)}}});var i8=D((CTt,n8)=>{"use strict";d();p();f();var r8=Hi(),_xe=r8({}.toString),Sxe=r8("".slice);n8.exports=function(e){return Sxe(_xe(e),8,-1)}});var o8=D((qTt,a8)=>{"use strict";d();p();f();var Oxe=Hi(),Dxe=js(),bxe=i8(),ZP=Object,Axe=Oxe("".split);a8.exports=Dxe(function(){return!ZP("z").propertyIsEnumerable(0)})?function(e){return bxe(e)==="String"?Axe(e,""):ZP(e)}:ZP});var eF=D((VTt,s8)=>{"use strict";d();p();f();s8.exports=function(e){return e==null}});var tF=D((QTt,u8)=>{"use strict";d();p();f();var Rxe=eF(),wxe=TypeError;u8.exports=function(e){if(Rxe(e))throw new wxe("Can't call method on "+e);return e}});var lv=D((HTt,c8)=>{"use strict";d();p();f();var Pxe=o8(),Fxe=tF();c8.exports=function(e){return Pxe(Fxe(e))}});var lo=D((eEt,l8)=>{"use strict";d();p();f();var rF=typeof document=="object"&&document.all;l8.exports=typeof rF=="undefined"&&rF!==void 0?function(e){return typeof e=="function"||e===rF}:function(e){return typeof e=="function"}});var gp=D((iEt,d8)=>{"use strict";d();p();f();var Lxe=lo();d8.exports=function(e){return typeof e=="object"?e!==null:Lxe(e)}});var dv=D((uEt,f8)=>{"use strict";d();p();f();var nF=Fa(),Cxe=lo(),Bxe=function(e){return Cxe(e)?e:void 0};f8.exports=function(e,t){return arguments.length<2?Bxe(nF[e]):nF[e]&&nF[e][t]}});var m8=D((fEt,p8)=>{"use strict";d();p();f();var Uxe=Hi();p8.exports=Uxe({}.isPrototypeOf)});var T8=D((yEt,N8)=>{"use strict";d();p();f();var kxe=Fa(),h8=kxe.navigator,y8=h8&&h8.userAgent;N8.exports=y8?String(y8):""});var O8=D((gEt,S8)=>{"use strict";d();p();f();var _8=Fa(),iF=T8(),E8=_8.process,g8=_8.Deno,I8=E8&&E8.versions||g8&&g8.version,v8=I8&&I8.v8,fo,fv;v8&&(fo=v8.split("."),fv=fo[0]>0&&fo[0]<4?1:+(fo[0]+fo[1]));!fv&&iF&&(fo=iF.match(/Edge\/(\d+)/),(!fo||fo[1]>=74)&&(fo=iF.match(/Chrome\/(\d+)/),fo&&(fv=+fo[1])));S8.exports=fv});var aF=D((SEt,b8)=>{"use strict";d();p();f();var D8=O8(),qxe=js(),xxe=Fa(),Mxe=xxe.String;b8.exports=!!Object.getOwnPropertySymbols&&!qxe(function(){var e=Symbol("symbol detection");return!Mxe(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&D8&&D8<41})});var oF=D((AEt,A8)=>{"use strict";d();p();f();var jxe=aF();A8.exports=jxe&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var sF=D((FEt,R8)=>{"use strict";d();p();f();var Vxe=dv(),Kxe=lo(),$xe=m8(),Gxe=oF(),Qxe=Object;R8.exports=Gxe?function(e){return typeof e=="symbol"}:function(e){var t=Vxe("Symbol");return Kxe(t)&&$xe(t.prototype,Qxe(e))}});var P8=D((UEt,w8)=>{"use strict";d();p();f();var Yxe=String;w8.exports=function(e){try{return Yxe(e)}catch(t){return"Object"}}});var pv=D((MEt,F8)=>{"use strict";d();p();f();var Jxe=lo(),zxe=P8(),Hxe=TypeError;F8.exports=function(e){if(Jxe(e))return e;throw new Hxe(zxe(e)+" is not a function")}});var uF=D(($Et,L8)=>{"use strict";d();p();f();var Wxe=pv(),Xxe=eF();L8.exports=function(e,t){var r=e[t];return Xxe(r)?void 0:Wxe(r)}});var B8=D((JEt,C8)=>{"use strict";d();p();f();var cF=yd(),lF=lo(),dF=gp(),Zxe=TypeError;C8.exports=function(e,t){var r,n;if(t==="string"&&lF(r=e.toString)&&!dF(n=cF(r,e))||lF(r=e.valueOf)&&!dF(n=cF(r,e))||t!=="string"&&lF(r=e.toString)&&!dF(n=cF(r,e)))return n;throw new Zxe("Can't convert object to primitive value")}});var k8=D((XEt,U8)=>{"use strict";d();p();f();U8.exports=!1});var mv=D((rgt,x8)=>{"use strict";d();p();f();var q8=Fa(),eMe=Object.defineProperty;x8.exports=function(e,t){try{eMe(q8,e,{value:t,configurable:!0,writable:!0})}catch(r){q8[e]=t}return t}});var hv=D((ogt,V8)=>{"use strict";d();p();f();var tMe=k8(),rMe=Fa(),nMe=mv(),M8="__core-js_shared__",j8=V8.exports=rMe[M8]||nMe(M8,{});(j8.versions||(j8.versions=[])).push({version:"3.41.0",mode:tMe?"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 fF=D((lgt,$8)=>{"use strict";d();p();f();var K8=hv();$8.exports=function(e,t){return K8[e]||(K8[e]=t||{})}});var Q8=D((mgt,G8)=>{"use strict";d();p();f();var iMe=tF(),aMe=Object;G8.exports=function(e){return aMe(iMe(e))}});var nl=D((Tgt,Y8)=>{"use strict";d();p();f();var oMe=Hi(),sMe=Q8(),uMe=oMe({}.hasOwnProperty);Y8.exports=Object.hasOwn||function(t,r){return uMe(sMe(t),r)}});var pF=D((vgt,J8)=>{"use strict";d();p();f();var cMe=Hi(),lMe=0,dMe=Math.random(),fMe=cMe(1 .toString);J8.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+fMe(++lMe+dMe,36)}});var W8=D((Dgt,H8)=>{"use strict";d();p();f();var pMe=Fa(),mMe=fF(),z8=nl(),hMe=pF(),yMe=aF(),NMe=oF(),Ip=pMe.Symbol,mF=mMe("wks"),TMe=NMe?Ip.for||Ip:Ip&&Ip.withoutSetter||hMe;H8.exports=function(e){return z8(mF,e)||(mF[e]=yMe&&z8(Ip,e)?Ip[e]:TMe("Symbol."+e)),mF[e]}});var t9=D((wgt,e9)=>{"use strict";d();p();f();var EMe=yd(),X8=gp(),Z8=sF(),gMe=uF(),IMe=B8(),vMe=W8(),_Me=TypeError,SMe=vMe("toPrimitive");e9.exports=function(e,t){if(!X8(e)||Z8(e))return e;var r=gMe(e,SMe),n;if(r){if(t===void 0&&(t="default"),n=EMe(r,e,t),!X8(n)||Z8(n))return n;throw new _Me("Can't convert object to primitive value")}return t===void 0&&(t="number"),IMe(e,t)}});var hF=D((Cgt,r9)=>{"use strict";d();p();f();var OMe=t9(),DMe=sF();r9.exports=function(e){var t=OMe(e,"string");return DMe(t)?t:t+""}});var a9=D((qgt,i9)=>{"use strict";d();p();f();var bMe=Fa(),n9=gp(),yF=bMe.document,AMe=n9(yF)&&n9(yF.createElement);i9.exports=function(e){return AMe?yF.createElement(e):{}}});var NF=D((Vgt,o9)=>{"use strict";d();p();f();var RMe=rl(),wMe=js(),PMe=a9();o9.exports=!RMe&&!wMe(function(){return Object.defineProperty(PMe("div"),"a",{get:function(){return 7}}).a!==7})});var TF=D(u9=>{"use strict";d();p();f();var FMe=rl(),LMe=yd(),CMe=W4(),BMe=WP(),UMe=lv(),kMe=hF(),qMe=nl(),xMe=NF(),s9=Object.getOwnPropertyDescriptor;u9.f=FMe?s9:function(t,r){if(t=UMe(t),r=kMe(r),xMe)try{return s9(t,r)}catch(n){}if(qMe(t,r))return BMe(!LMe(CMe.f,t,r),t[r])}});var l9=D((Hgt,c9)=>{"use strict";d();p();f();var MMe=rl(),jMe=js();c9.exports=MMe&&jMe(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var by=D((eIt,d9)=>{"use strict";d();p();f();var VMe=gp(),KMe=String,$Me=TypeError;d9.exports=function(e){if(VMe(e))return e;throw new $Me(KMe(e)+" is not an object")}});var Nv=D(p9=>{"use strict";d();p();f();var GMe=rl(),QMe=NF(),YMe=l9(),yv=by(),f9=hF(),JMe=TypeError,EF=Object.defineProperty,zMe=Object.getOwnPropertyDescriptor,gF="enumerable",IF="configurable",vF="writable";p9.f=GMe?YMe?function(t,r,n){if(yv(t),r=f9(r),yv(n),typeof t=="function"&&r==="prototype"&&"value"in n&&vF in n&&!n[vF]){var i=zMe(t,r);i&&i[vF]&&(t[r]=n.value,n={configurable:IF in n?n[IF]:i[IF],enumerable:gF in n?n[gF]:i[gF],writable:!1})}return EF(t,r,n)}:EF:function(t,r,n){if(yv(t),r=f9(r),yv(n),QMe)try{return EF(t,r,n)}catch(i){}if("get"in n||"set"in n)throw new JMe("Accessors not supported");return"value"in n&&(t[r]=n.value),t}});var _F=D((uIt,m9)=>{"use strict";d();p();f();var HMe=rl(),WMe=Nv(),XMe=WP();m9.exports=HMe?function(e,t,r){return WMe.f(e,t,XMe(1,r))}:function(e,t,r){return e[t]=r,e}});var N9=D((fIt,y9)=>{"use strict";d();p();f();var SF=rl(),ZMe=nl(),h9=Function.prototype,e1e=SF&&Object.getOwnPropertyDescriptor,OF=ZMe(h9,"name"),t1e=OF&&function(){}.name==="something",r1e=OF&&(!SF||SF&&e1e(h9,"name").configurable);y9.exports={EXISTS:OF,PROPER:t1e,CONFIGURABLE:r1e}});var E9=D((yIt,T9)=>{"use strict";d();p();f();var n1e=Hi(),i1e=lo(),DF=hv(),a1e=n1e(Function.toString);i1e(DF.inspectSource)||(DF.inspectSource=function(e){return a1e(e)});T9.exports=DF.inspectSource});var v9=D((gIt,I9)=>{"use strict";d();p();f();var o1e=Fa(),s1e=lo(),g9=o1e.WeakMap;I9.exports=s1e(g9)&&/native code/.test(String(g9))});var O9=D((SIt,S9)=>{"use strict";d();p();f();var u1e=fF(),c1e=pF(),_9=u1e("keys");S9.exports=function(e){return _9[e]||(_9[e]=c1e(e))}});var bF=D((AIt,D9)=>{"use strict";d();p();f();D9.exports={}});var w9=D((FIt,R9)=>{"use strict";d();p();f();var l1e=v9(),A9=Fa(),d1e=gp(),f1e=_F(),AF=nl(),RF=hv(),p1e=O9(),m1e=bF(),b9="Object already initialized",wF=A9.TypeError,h1e=A9.WeakMap,Tv,Ay,Ev,y1e=function(e){return Ev(e)?Ay(e):Tv(e,{})},N1e=function(e){return function(t){var r;if(!d1e(t)||(r=Ay(t)).type!==e)throw new wF("Incompatible receiver, "+e+" required");return r}};l1e||RF.state?(po=RF.state||(RF.state=new h1e),po.get=po.get,po.has=po.has,po.set=po.set,Tv=function(e,t){if(po.has(e))throw new wF(b9);return t.facade=e,po.set(e,t),t},Ay=function(e){return po.get(e)||{}},Ev=function(e){return po.has(e)}):(Nd=p1e("state"),m1e[Nd]=!0,Tv=function(e,t){if(AF(e,Nd))throw new wF(b9);return t.facade=e,f1e(e,Nd,t),t},Ay=function(e){return AF(e,Nd)?e[Nd]:{}},Ev=function(e){return AF(e,Nd)});var po,Nd;R9.exports={set:Tv,get:Ay,has:Ev,enforce:y1e,getterFor:N1e}});var C9=D((UIt,L9)=>{"use strict";d();p();f();var FF=Hi(),T1e=js(),E1e=lo(),gv=nl(),PF=rl(),g1e=N9().CONFIGURABLE,I1e=E9(),F9=w9(),v1e=F9.enforce,_1e=F9.get,P9=String,Iv=Object.defineProperty,S1e=FF("".slice),O1e=FF("".replace),D1e=FF([].join),b1e=PF&&!T1e(function(){return Iv(function(){},"length",{value:8}).length!==8}),A1e=String(String).split("String"),R1e=L9.exports=function(e,t,r){S1e(P9(t),0,7)==="Symbol("&&(t="["+O1e(P9(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!gv(e,"name")||g1e&&e.name!==t)&&(PF?Iv(e,"name",{value:t,configurable:!0}):e.name=t),b1e&&r&&gv(r,"arity")&&e.length!==r.arity&&Iv(e,"length",{value:r.arity});try{r&&gv(r,"constructor")&&r.constructor?PF&&Iv(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(i){}var n=v1e(e);return gv(n,"source")||(n.source=D1e(A1e,typeof t=="string"?t:"")),e};Function.prototype.toString=R1e(function(){return E1e(this)&&_1e(this).source||I1e(this)},"toString")});var U9=D((MIt,B9)=>{"use strict";d();p();f();var w1e=lo(),P1e=Nv(),F1e=C9(),L1e=mv();B9.exports=function(e,t,r,n){n||(n={});var i=n.enumerable,a=n.name!==void 0?n.name:t;if(w1e(r)&&F1e(r,a,n),n.global)i?e[t]=r:L1e(t,r);else{try{n.unsafe?e[t]&&(i=!0):delete e[t]}catch(o){}i?e[t]=r:P1e.f(e,t,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return e}});var q9=D(($It,k9)=>{"use strict";d();p();f();var C1e=Math.ceil,B1e=Math.floor;k9.exports=Math.trunc||function(t){var r=+t;return(r>0?B1e:C1e)(r)}});var vv=D((JIt,x9)=>{"use strict";d();p();f();var U1e=q9();x9.exports=function(e){var t=+e;return t!==t||t===0?0:U1e(t)}});var j9=D((XIt,M9)=>{"use strict";d();p();f();var k1e=vv(),q1e=Math.max,x1e=Math.min;M9.exports=function(e,t){var r=k1e(e);return r<0?q1e(r+t,0):x1e(r,t)}});var K9=D((rvt,V9)=>{"use strict";d();p();f();var M1e=vv(),j1e=Math.min;V9.exports=function(e){var t=M1e(e);return t>0?j1e(t,9007199254740991):0}});var G9=D((ovt,$9)=>{"use strict";d();p();f();var V1e=K9();$9.exports=function(e){return V1e(e.length)}});var J9=D((lvt,Y9)=>{"use strict";d();p();f();var K1e=lv(),$1e=j9(),G1e=G9(),Q9=function(e){return function(t,r,n){var i=K1e(t),a=G1e(i);if(a===0)return!e&&-1;var o=$1e(n,a),u;if(e&&r!==r){for(;a>o;)if(u=i[o++],u!==u)return!0}else for(;a>o;o++)if((e||o in i)&&i[o]===r)return e||o||0;return!e&&-1}};Y9.exports={includes:Q9(!0),indexOf:Q9(!1)}});var W9=D((mvt,H9)=>{"use strict";d();p();f();var Q1e=Hi(),LF=nl(),Y1e=lv(),J1e=J9().indexOf,z1e=bF(),z9=Q1e([].push);H9.exports=function(e,t){var r=Y1e(e),n=0,i=[],a;for(a in r)!LF(z1e,a)&&LF(r,a)&&z9(i,a);for(;t.length>n;)LF(r,a=t[n++])&&(~J1e(i,a)||z9(i,a));return i}});var Z9=D((Tvt,X9)=>{"use strict";d();p();f();X9.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var t5=D(e5=>{"use strict";d();p();f();var H1e=W9(),W1e=Z9(),X1e=W1e.concat("length","prototype");e5.f=Object.getOwnPropertyNames||function(t){return H1e(t,X1e)}});var n5=D(r5=>{"use strict";d();p();f();r5.f=Object.getOwnPropertySymbols});var a5=D((wvt,i5)=>{"use strict";d();p();f();var Z1e=dv(),eje=Hi(),tje=t5(),rje=n5(),nje=by(),ije=eje([].concat);i5.exports=Z1e("Reflect","ownKeys")||function(t){var r=tje.f(nje(t)),n=rje.f;return n?ije(r,n(t)):r}});var u5=D((Cvt,s5)=>{"use strict";d();p();f();var o5=nl(),aje=a5(),oje=TF(),sje=Nv();s5.exports=function(e,t,r){for(var n=aje(t),i=sje.f,a=oje.f,o=0;o{"use strict";d();p();f();var uje=js(),cje=lo(),lje=/#|\.prototype\./,Ry=function(e,t){var r=fje[dje(e)];return r===mje?!0:r===pje?!1:cje(t)?uje(t):!!t},dje=Ry.normalize=function(e){return String(e).replace(lje,".").toLowerCase()},fje=Ry.data={},pje=Ry.NATIVE="N",mje=Ry.POLYFILL="P";c5.exports=Ry});var CF=D((Vvt,d5)=>{"use strict";d();p();f();var _v=Fa(),hje=TF().f,yje=_F(),Nje=U9(),Tje=mv(),Eje=u5(),gje=l5();d5.exports=function(e,t){var r=e.target,n=e.global,i=e.stat,a,o,u,l,m,h;if(n?o=_v:i?o=_v[r]||Tje(r,{}):o=_v[r]&&_v[r].prototype,o)for(u in t){if(m=t[u],e.dontCallGetSet?(h=hje(o,u),l=h&&h.value):l=o[u],a=gje(n?u:r+(i?".":"#")+u,e.forced),!a&&l!==void 0){if(typeof m==typeof l)continue;Eje(m,l)}(e.sham||l&&l.sham)&&yje(m,"sham",!0),Nje(o,u,m,e)}}});var wy=D((Qvt,f5)=>{"use strict";d();p();f();var BF=Hi(),Sv=Set.prototype;f5.exports={Set,add:BF(Sv.add),has:BF(Sv.has),remove:BF(Sv.delete),proto:Sv}});var UF=D((Hvt,p5)=>{"use strict";d();p();f();var Ije=wy().has;p5.exports=function(e){return Ije(e),e}});var h5=D((e_t,m5)=>{"use strict";d();p();f();var vje=Hi(),_je=pv();m5.exports=function(e,t,r){try{return vje(_je(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(n){}}});var kF=D((i_t,y5)=>{"use strict";d();p();f();var Sje=h5(),Oje=wy();y5.exports=Sje(Oje.proto,"size","get")||function(e){return e.size}});var qF=D((u_t,N5)=>{"use strict";d();p();f();var Dje=yd();N5.exports=function(e,t,r){for(var n=r?e:e.iterator,i=e.next,a,o;!(a=Dje(i,n)).done;)if(o=t(a.value),o!==void 0)return o}});var _5=D((f_t,v5)=>{"use strict";d();p();f();var T5=Hi(),bje=qF(),E5=wy(),Aje=E5.Set,g5=E5.proto,Rje=T5(g5.forEach),I5=T5(g5.keys),wje=I5(new Aje).next;v5.exports=function(e,t,r){return r?bje({iterator:I5(e),next:wje},t):Rje(e,t)}});var O5=D((y_t,S5)=>{"use strict";d();p();f();S5.exports=function(e){return{iterator:e,next:e.next,done:!1}}});var xF=D((g_t,P5)=>{"use strict";d();p();f();var D5=pv(),R5=by(),b5=yd(),Pje=vv(),Fje=O5(),A5="Invalid size",Lje=RangeError,Cje=TypeError,Bje=Math.max,w5=function(e,t){this.set=e,this.size=Bje(t,0),this.has=D5(e.has),this.keys=D5(e.keys)};w5.prototype={getIterator:function(){return Fje(R5(b5(this.keys,this.set)))},includes:function(e){return b5(this.has,this.set,e)}};P5.exports=function(e){R5(e);var t=+e.size;if(t!==t)throw new Cje(A5);var r=Pje(t);if(r<0)throw new Lje(A5);return new w5(e,r)}});var L5=D((S_t,F5)=>{"use strict";d();p();f();var Uje=UF(),kje=kF(),qje=_5(),xje=xF();F5.exports=function(t){var r=Uje(this),n=xje(t);return kje(r)>n.size?!1:qje(r,function(i){if(!n.includes(i))return!1},!0)!==!1}});var MF=D((A_t,U5)=>{"use strict";d();p();f();var Mje=dv(),C5=function(e){return{size:e,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}},B5=function(e){return{size:e,has:function(){return!0},keys:function(){throw new Error("e")}}};U5.exports=function(e,t){var r=Mje("Set");try{new r()[e](C5(0));try{return new r()[e](C5(-1)),!1}catch(i){if(!t)return!0;try{return new r()[e](B5(-1/0)),!1}catch(a){var n=new r;return n.add(1),n.add(2),t(n[e](B5(1/0)))}}}catch(i){return!1}}});var k5=D(()=>{"use strict";d();p();f();var jje=CF(),Vje=L5(),Kje=MF(),$je=!Kje("isSubsetOf",function(e){return e});jje({target:"Set",proto:!0,real:!0,forced:$je},{isSubsetOf:Vje})});var q5=D(()=>{"use strict";d();p();f();k5()});var j5=D((V_t,M5)=>{"use strict";d();p();f();var Gje=yd(),x5=by(),Qje=uF();M5.exports=function(e,t,r){var n,i;x5(e);try{if(n=Qje(e,"return"),!n){if(t==="throw")throw r;return r}n=Gje(n,e)}catch(a){i=!0,n=a}if(t==="throw")throw r;if(i)throw n;return x5(n),r}});var K5=D((Q_t,V5)=>{"use strict";d();p();f();var Yje=UF(),Jje=wy().has,zje=kF(),Hje=xF(),Wje=qF(),Xje=j5();V5.exports=function(t){var r=Yje(this),n=Hje(t);if(zje(r){"use strict";d();p();f();var Zje=CF(),eVe=K5(),tVe=MF(),rVe=!tVe("isSupersetOf",function(e){return!e});Zje({target:"Set",proto:!0,real:!0,forced:rVe},{isSupersetOf:eVe})});var G5=D(()=>{"use strict";d();p();f();$5()});var vp=D(Xr=>{"use strict";d();p();f();Object.defineProperty(Xr,"__esModule",{value:!0});Xr.subtractSet=iVe;Xr.mapToArrayOfValues=aVe;Xr.kindToConvertedTypeString=oVe;Xr.fieldDatasToSimpleFieldDatas=sVe;Xr.isNodeLeaf=uVe;Xr.newEntityInterfaceFederationData=cVe;Xr.upsertEntityInterfaceFederationData=lVe;Xr.upsertEntityData=fVe;Xr.updateEntityData=Q5;Xr.newFieldAuthorizationData=pVe;Xr.newAuthorizationData=mVe;Xr.addScopes=jF;Xr.mergeRequiredScopesByAND=bv;Xr.mergeRequiredScopesByOR=VF;Xr.upsertFieldAuthorizationData=Y5;Xr.upsertAuthorizationData=NVe;Xr.upsertAuthorizationConfiguration=TVe;Xr.isObjectNodeKind=EVe;Xr.isCompositeOutputNodeKind=gVe;Xr.isObjectDefinitionData=IVe;var gr=ve(),Fi=xr(),Ov=An(),Dv=zo();q5();G5();var nVe=xs();function iVe(e,t){for(let r of e)t.delete(r)}function aVe(e){let t=[];for(let r of e.values())t.push(r);return t}function oVe(e){switch(e){case gr.Kind.BOOLEAN:return Fi.BOOLEAN_SCALAR;case gr.Kind.ENUM:case gr.Kind.ENUM_TYPE_DEFINITION:case gr.Kind.ENUM_TYPE_EXTENSION:return Fi.ENUM;case gr.Kind.ENUM_VALUE_DEFINITION:return Fi.ENUM_VALUE;case gr.Kind.FIELD_DEFINITION:return Fi.FIELD;case gr.Kind.FLOAT:return Fi.FLOAT_SCALAR;case gr.Kind.INPUT_OBJECT_TYPE_DEFINITION:case gr.Kind.INPUT_OBJECT_TYPE_EXTENSION:return Fi.INPUT_OBJECT;case gr.Kind.INPUT_VALUE_DEFINITION:return Fi.INPUT_VALUE;case gr.Kind.INT:return Fi.INT_SCALAR;case gr.Kind.INTERFACE_TYPE_DEFINITION:case gr.Kind.INTERFACE_TYPE_EXTENSION:return Fi.INTERFACE;case gr.Kind.NULL:return Fi.NULL;case gr.Kind.OBJECT:case gr.Kind.OBJECT_TYPE_DEFINITION:case gr.Kind.OBJECT_TYPE_EXTENSION:return Fi.OBJECT;case gr.Kind.STRING:return Fi.STRING_SCALAR;case gr.Kind.SCALAR_TYPE_DEFINITION:case gr.Kind.SCALAR_TYPE_EXTENSION:return Fi.SCALAR;case gr.Kind.UNION_TYPE_DEFINITION:case gr.Kind.UNION_TYPE_EXTENSION:return Fi.UNION;default:return e}}function sVe(e){let t=[];for(let{name:r,namedTypeName:n}of e)t.push({name:r,namedTypeName:n});return t}function uVe(e){if(!e)return!0;switch(e){case gr.Kind.OBJECT_TYPE_DEFINITION:case gr.Kind.INTERFACE_TYPE_DEFINITION:case gr.Kind.UNION_TYPE_DEFINITION:return!1;default:return!0}}function cVe(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 lVe(e,t,r){(0,Ov.addIterableToSet)({source:t.concreteTypeNames,target:e.concreteTypeNames}),e.subgraphDataByTypeName.set(r,t),e.fieldDatasBySubgraphName.set(r,t.fieldDatas),(0,Ov.addIterableToSet)({source:t.interfaceFieldNames,target:e.interfaceFieldNames}),(0,Ov.addIterableToSet)({source:t.interfaceObjectFieldNames,target:e.interfaceObjectFieldNames}),t.isInterfaceObject&&e.interfaceObjectSubgraphNames.add(r)}function dVe({keyFieldSetDataByFieldSet:e,subgraphName:t,typeName:r}){let n=new Map([[t,e]]),i=new Map;for(let[a,{documentNode:o,isUnresolvable:u}]of e)u||i.set(a,o);return{keyFieldSetDatasBySubgraphName:n,documentNodeByKeyFieldSet:i,keyFieldSets:new Set,subgraphNames:new Set([t]),typeName:r}}function fVe({entityDataByTypeName:e,keyFieldSetDataByFieldSet:t,subgraphName:r,typeName:n}){let i=e.get(n);i?Q5({entityData:i,keyFieldSetDataByFieldSet:t,subgraphName:r}):e.set(n,dVe({keyFieldSetDataByFieldSet:t,subgraphName:r,typeName:n}))}function Q5({entityData:e,keyFieldSetDataByFieldSet:t,subgraphName:r}){e.subgraphNames.add(r);let n=e.keyFieldSetDatasBySubgraphName.get(r);if(!n){e.keyFieldSetDatasBySubgraphName.set(r,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=n.get(i);if(o){o.isUnresolvable||(o.isUnresolvable=a.isUnresolvable);continue}n.set(i,a)}}function pVe(e){return{fieldName:e,inheritedData:{requiredScopes:[],requiredScopesByOR:[],requiresAuthentication:!1},originalData:{requiredScopes:[],requiresAuthentication:!1}}}function mVe(e){return{fieldAuthDataByFieldName:new Map,requiredScopes:[],requiredScopesByOR:[],requiresAuthentication:!1,typeName:e}}function jF(e,t){for(let r=e.length-1;r>-1;r--){if(e[r].isSubsetOf(t))return;e[r].isSupersetOf(t)&&e.splice(r,1)}e.push(t)}function bv(e,t){if(e.length<1||t.length<1){for(let n of t)e.push(new Set(n));return e}let r=[];for(let n of t)for(let i of e){let a=(0,Ov.addSets)(n,i);jF(r,a)}return r}function VF(e,t){for(let r of t)jF(e,r);return e.length<=Dv.MAX_OR_SCOPES}function Y5(e,t){var i,a;let r=t.fieldName,n=e.get(r);return n?((i=n.inheritedData).requiresAuthentication||(i.requiresAuthentication=t.inheritedData.requiresAuthentication),(a=n.originalData).requiresAuthentication||(a.requiresAuthentication=t.originalData.requiresAuthentication),!VF(n.inheritedData.requiredScopesByOR,t.inheritedData.requiredScopes)||n.inheritedData.requiredScopes.length*t.inheritedData.requiredScopes.length>Dv.MAX_OR_SCOPES||n.originalData.requiredScopes.length*t.originalData.requiredScopes.length>Dv.MAX_OR_SCOPES?!1:(n.inheritedData.requiredScopes=bv(n.inheritedData.requiredScopes,t.inheritedData.requiredScopes),n.originalData.requiredScopes=bv(n.originalData.requiredScopes,t.originalData.requiredScopes),!0)):(e.set(r,J5(t)),!0)}function hVe(e){let t=new Map;for(let[r,n]of e)t.set(r,J5(n));return t}function J5(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 yVe(e){return{fieldAuthDataByFieldName:hVe(e.fieldAuthDataByFieldName),requiredScopes:[...e.requiredScopes],requiredScopesByOR:[...e.requiredScopes],requiresAuthentication:e.requiresAuthentication,typeName:e.typeName}}function NVe(e,t,r){let n=e.get(t.typeName);if(!n){e.set(t.typeName,yVe(t));return}n.requiresAuthentication||(n.requiresAuthentication=t.requiresAuthentication),!VF(n.requiredScopesByOR,t.requiredScopes)||n.requiredScopes.length*t.requiredScopes.length>Dv.MAX_OR_SCOPES?r.add(t.typeName):n.requiredScopes=bv(n.requiredScopes,t.requiredScopes);for(let[i,a]of t.fieldAuthDataByFieldName)Y5(n.fieldAuthDataByFieldName,a)||r.add(`${t.typeName}.${i}`)}function TVe(e,t){let r=t.typeName;for(let[n,i]of t.fieldAuthDataByFieldName){let a=`${r}.${n}`,o=e.get(a);o?(o.requiresAuthentication=i.inheritedData.requiresAuthentication,o.requiredScopes=i.inheritedData.requiredScopes.map(u=>[...u]),o.requiredScopesByOR=i.inheritedData.requiredScopesByOR.map(u=>[...u])):e.set(a,{argumentNames:[],typeName:r,fieldName:n,requiresAuthentication:i.inheritedData.requiresAuthentication,requiredScopes:i.inheritedData.requiredScopes.map(u=>[...u]),requiredScopesByOR:i.inheritedData.requiredScopesByOR.map(u=>[...u])})}}function EVe(e){return e===gr.Kind.OBJECT_TYPE_DEFINITION||e===gr.Kind.OBJECT_TYPE_EXTENSION}function gVe(e){return nVe.COMPOSITE_OUTPUT_NODE_KINDS.has(e)}function IVe(e){return e?e.kind===gr.Kind.OBJECT_TYPE_DEFINITION:!1}});var _p=D(pi=>{"use strict";d();p();f();Object.defineProperty(pi,"__esModule",{value:!0});pi.FEDERATED_DIRECTIVE_DATAS=void 0;pi.newFieldSetData=_Ve;pi.extractFieldSetValue=SVe;pi.getNormalizedFieldSet=OVe;pi.getInitialFieldCoordsPath=DVe;pi.validateKeyFieldSets=bVe;pi.getConditionalFieldSetDirectiveName=AVe;pi.isNodeQuery=RVe;pi.validateArgumentTemplateReferences=wVe;pi.initializeDirectiveDefinitionDatas=PVe;pi.upsertFederatedDirectiveData=FVe;pi.extractLinkArgs=UVe;var fr=ve(),H5=Un(),Gt=Di(),W5=zo(),KF=Jo(),Pt=uv(),lt=xr(),Ho=An(),vVe=xs(),z5=Oy();function _Ve(){return{provides:new Map,requires:new Map}}function SVe(e,t,r){if(!r||r.length>1)return;let n=r[0].arguments;if(!n||n.length!==1)return;let i=n[0];i.name.value!==lt.FIELDS||i.value.kind!==fr.Kind.STRING||t.set(e,i.value.value)}function OVe(e){return(0,fr.print)((0,H5.lexicographicallySortDocumentNode)(e)).replaceAll(/\s+/g," ").slice(2,-2)}function DVe(e,t){return e?[t]:[]}function bVe(e,t,r){let n=e.entityInterfaceDataByTypeName.get(t.name),i=t.name,a=[],o=n?void 0:e.internalGraph.addEntityDataNode(t.name),u=e.internalGraph.addOrUpdateNode(t.name),l=0;for(let[m,{documentNode:h,isUnresolvable:N,rawFieldSet:T}]of r){n&&(n.resolvable||(n.resolvable=!N)),l+=1;let O=[],R=[t],C=[],M=[],Y=new Set,ee=-1,ae=!0,Ne="",_e=!1;if((0,fr.visit)(h,{Argument:{enter(Le){return O.push((0,Gt.unexpectedArgumentErrorMessage)(T,`${R[ee].name}.${Ne}`,Le.name.value)),fr.BREAK}},Field:{enter(Le){let Ve=R[ee],ot=Ve.name;if(ae){let mr=`${ot}.${Ne}`,tr=Ve.fieldDataByName.get(Ne);if(!tr)return O.push((0,Gt.undefinedFieldInFieldSetErrorMessage)(T,mr,Ne)),fr.BREAK;let $r=(0,KF.getTypeNodeNamedTypeName)(tr.node.type),Yn=e.parentDefinitionDataByTypeName.get($r),dn=Yn?Yn.kind:fr.Kind.SCALAR_TYPE_DEFINITION;return O.push((0,Gt.invalidSelectionSetErrorMessage)(T,[mr],$r,(0,Ho.kindToNodeType)(dn))),fr.BREAK}let Z=Le.name.value,Se=`${ot}.${Z}`;if(Ne=Z,Z===lt.TYPENAME)return;let Ft=Ve.fieldDataByName.get(Z);if(!Ft)return O.push((0,Gt.undefinedFieldInFieldSetErrorMessage)(T,ot,Z)),fr.BREAK;if(Ft.argumentDataByName.size)return O.push((0,Gt.argumentsInKeyFieldSetErrorMessage)(T,Se)),fr.BREAK;if(C[ee].has(Z))return O.push((0,Gt.duplicateFieldInFieldSetErrorMessage)(T,Se)),fr.BREAK;let pr=Ft.externalFieldDataBySubgraphName.get(e.subgraphName);if(!e.isSubgraphEventDrivenGraph&&(pr!=null&&pr.isDefinedExternal)&&!pr.isUnconditionallyProvided&&!e.conditionalFieldDataByCoords.get(Se)&&!e.options.ignoreExternalKeys){_e=!0;let tr=u.headToTailEdges.get(Z);tr&&(tr.isExternal=!0)}(0,Ho.getValueOrDefault)((0,Ho.getValueOrDefault)(e.keyFieldSetsByEntityTypeNameByFieldCoords,Se,()=>new Map),i,()=>new Set).add(m),M.push(Z),Ft.isShareableBySubgraphName.set(e.subgraphName,!0),C[ee].add(Z),(0,Ho.getValueOrDefault)(e.keyFieldNamesByParentTypeName,ot,()=>new Set).add(Z);let ar=(0,KF.getTypeNodeNamedTypeName)(Ft.node.type);if(W5.BASE_SCALARS.has(ar)){Y.add(M.join(lt.LITERAL_PERIOD)),M.pop();return}let vr=e.parentDefinitionDataByTypeName.get(ar);if(!vr)return O.push((0,Gt.unknownTypeInFieldSetErrorMessage)(T,Se,ar)),fr.BREAK;if(vr.kind===fr.Kind.OBJECT_TYPE_DEFINITION){ae=!0,R.push(vr);return}if((0,H5.isKindAbstract)(vr.kind))return O.push((0,Gt.abstractTypeInKeyFieldSetErrorMessage)(T,Se,ar,(0,Ho.kindToNodeType)(vr.kind))),fr.BREAK;Y.add(M.join(lt.LITERAL_PERIOD)),M.pop()}},InlineFragment:{enter(){return O.push(Gt.inlineFragmentInFieldSetErrorMessage),fr.BREAK}},SelectionSet:{enter(){if(!ae){let Le=R[ee],ot=`${Le.name}.${Ne}`;if(Ne===lt.TYPENAME)return O.push((0,Gt.invalidSelectionSetDefinitionErrorMessage)(T,[ot],lt.STRING_SCALAR,(0,Ho.kindToNodeType)(fr.Kind.SCALAR_TYPE_DEFINITION))),fr.BREAK;let Z=Le.fieldDataByName.get(Ne);if(!Z)return O.push((0,Gt.undefinedFieldInFieldSetErrorMessage)(T,ot,Ne)),fr.BREAK;let Se=(0,KF.getTypeNodeNamedTypeName)(Z.node.type),Ft=e.parentDefinitionDataByTypeName.get(Se),pr=Ft?Ft.kind:fr.Kind.SCALAR_TYPE_DEFINITION;return O.push((0,Gt.invalidSelectionSetDefinitionErrorMessage)(T,[ot],Se,(0,Ho.kindToNodeType)(pr))),fr.BREAK}if(ee+=1,ae=!1,ee<0||ee>=R.length)return O.push((0,Gt.unparsableFieldSetSelectionErrorMessage)(T,Ne)),fr.BREAK;C.push(new Set)},leave(){if(ae){let Ve=R[ee].name,ot=R[ee+1],Z=`${Ve}.${Ne}`;O.push((0,Gt.invalidSelectionSetErrorMessage)(T,[Z],ot.name,(0,Ho.kindToNodeType)(ot.kind))),ae=!1}ee-=1,R.pop(),C.pop()}}}),O.length>0){e.errors.push((0,Gt.invalidDirectiveError)(lt.KEY,i,(0,Ho.numberToOrdinal)(l),O));continue}a.push(q({fieldName:"",selectionSet:m},N?{disableEntityResolver:!0}:{})),u.satisfiedFieldSets.add(m),_e&&u.externalFieldSets.add(m),!N&&(o==null||o.addTargetSubgraphByFieldSet(m,e.subgraphName))}if(a.length>0)return a}function AVe(e){return e?lt.PROVIDES:lt.REQUIRES}function RVe(e,t){return e===lt.QUERY||t===fr.OperationTypeNode.QUERY}function wVe(e,t,r){let n=e.matchAll(W5.EDFS_ARGS_REGEXP),i=new Set,a=new Set;for(let o of n){if(o.length<2){a.add(o[0]);continue}t.has(o[1])||i.add(o[1])}for(let o of i)r.push((0,Gt.undefinedEventSubjectsArgumentErrorMessage)(o));for(let o of a)r.push((0,Gt.invalidEventSubjectsArgumentErrorMessage)(o))}function PVe(){return new Map([[lt.AUTHENTICATED,Pt.AUTHENTICATED_DEFINITION_DATA],[lt.COMPOSE_DIRECTIVE,Pt.COMPOSE_DIRECTIVE_DEFINITION_DATA],[lt.CONFIGURE_DESCRIPTION,Pt.CONFIGURE_DESCRIPTION_DEFINITION_DATA],[lt.CONFIGURE_CHILD_DESCRIPTIONS,Pt.CONFIGURE_CHILD_DESCRIPTIONS_DEFINITION_DATA],[lt.CONNECT_FIELD_RESOLVER,Pt.CONNECT_FIELD_RESOLVER_DEFINITION_DATA],[lt.COST,Pt.COST_DEFINITION_DATA],[lt.DEPRECATED,Pt.DEPRECATED_DEFINITION_DATA],[lt.EDFS_KAFKA_PUBLISH,Pt.KAFKA_PUBLISH_DEFINITION_DATA],[lt.EDFS_KAFKA_SUBSCRIBE,Pt.KAFKA_SUBSCRIBE_DEFINITION_DATA],[lt.EDFS_NATS_PUBLISH,Pt.NATS_PUBLISH_DEFINITION_DATA],[lt.EDFS_NATS_REQUEST,Pt.NATS_REQUEST_DEFINITION_DATA],[lt.EDFS_NATS_SUBSCRIBE,Pt.NATS_SUBSCRIBE_DEFINITION_DATA],[lt.EDFS_REDIS_PUBLISH,Pt.REDIS_PUBLISH_DEFINITION_DATA],[lt.EDFS_REDIS_SUBSCRIBE,Pt.REDIS_SUBSCRIBE_DEFINITION_DATA],[lt.EXTENDS,Pt.EXTENDS_DEFINITION_DATA],[lt.EXTERNAL,Pt.EXTERNAL_DEFINITION_DATA],[lt.INACCESSIBLE,Pt.INACCESSIBLE_DEFINITION_DATA],[lt.INTERFACE_OBJECT,Pt.INTERFACE_OBJECT_DEFINITION_DATA],[lt.KEY,Pt.KEY_DEFINITION_DATA],[lt.LINK,Pt.LINK_DEFINITION_DATA],[lt.LIST_SIZE,Pt.LIST_SIZE_DEFINITION_DATA],[lt.ONE_OF,Pt.ONE_OF_DEFINITION_DATA],[lt.OVERRIDE,Pt.OVERRIDE_DEFINITION_DATA],[lt.PROVIDES,Pt.PROVIDES_DEFINITION_DATA],[lt.REQUIRE_FETCH_REASONS,Pt.REQUIRE_FETCH_REASONS_DEFINITION_DATA],[lt.REQUIRES,Pt.REQUIRES_DEFINITION_DATA],[lt.REQUIRES_SCOPES,Pt.REQUIRES_SCOPES_DEFINITION_DATA],[lt.SEMANTIC_NON_NULL,Pt.SEMANTIC_NON_NULL_DEFINITION_DATA],[lt.SHAREABLE,Pt.SHAREABLE_DEFINITION_DATA],[lt.SPECIFIED_BY,Pt.SPECIFIED_BY_DEFINITION_DATA],[lt.SUBSCRIPTION_FILTER,Pt.SUBSCRIPTION_FILTER_DEFINITION_DATA],[lt.TAG,Pt.TAG_DEFINITION_DATA]])}pi.FEDERATED_DIRECTIVE_DATAS=[Pt.AUTHENTICATED_DEFINITION_DATA,Pt.DEPRECATED_DEFINITION_DATA,Pt.INACCESSIBLE_DEFINITION_DATA,Pt.ONE_OF_DEFINITION_DATA,Pt.REQUIRES_SCOPES_DEFINITION_DATA,Pt.SEMANTIC_NON_NULL_DEFINITION_DATA,Pt.TAG_DEFINITION_DATA];function FVe({executableDirectiveDatasByName:e,existingDataByName:t,incomingDataByName:r}){for(let[n,i]of r){let a=t.get(n),o=(0,z5.copyDirectiveDefinitionData)(i);if(!a){if(!i.isComposed){(0,Ho.getValueOrDefault)(e,n,()=>[]).push(o);continue}t.set(n,o),e.delete(n);continue}i.isComposed&&a.minorVersion0?{errors:r,success:!1}:{import:t,success:!0}}function BVe(e){let t=[],r=[];for(let n=0;n0?{errors:r,success:!1}:{imports:t,success:!0}}function UVe(e){var i;let t=[],r=new Map,n=e.get(lt.LINK);if(!n)return{success:!0,importDataByDirectiveName:r};for(let a of n){if(!a.arguments)continue;let o=[],u=-1,l=-1,m="";for(let h of a.arguments)switch(h.name.value){case lt.URL_LOWER:{let T=LVe(h);if(!T.success)return{errors:[T.error],success:!1};m=T.coreUrl,u=T.majorVersion,l=T.minorVersion;break}case lt.IMPORT:{switch(h.value.kind){case fr.Kind.STRING:{o.push({name:h.value.value,coreUrl:"",majorVersion:-1,minorVersion:-1});break}case fr.Kind.LIST:{let T=BVe(h.value.values);if(!T.success)return T;o=T.imports;break}default:return{errors:[(0,Gt.nonIterableLinkDirectiveImportError)(h.value.kind)],success:!1}}break}}if(!m)return{errors:[Gt.noLinkDirectiveUrlError],success:!1};for(let h of o)h.coreUrl=m,h.majorVersion=u,h.minorVersion=l,r.set((i=h.rename)!=null?i:h.name,h)}return t.length>0?{errors:t,success:!1}:{importDataByDirectiveName:r,success:!0}}});var Av=D(gd=>{"use strict";d();p();f();Object.defineProperty(gd,"__esModule",{value:!0});gd.DivergentType=void 0;gd.getLeastRestrictiveMergedTypeNode=qVe;gd.getMostRestrictiveMergedTypeNode=xVe;gd.renameNamedTypeName=MVe;var Td=ve(),Z5=Di(),kVe=Jo(),X5=Un(),eX=Xf(),Ed;(function(e){e[e.NONE=0]="NONE",e[e.CURRENT=1]="CURRENT",e[e.OTHER=2]="OTHER"})(Ed||(gd.DivergentType=Ed={}));function tX(e,t,r,n,i){t=(0,kVe.getMutableTypeNode)(t,r,i);let a={kind:e.kind},o=Ed.NONE,u=a;for(let l=0;l{"use strict";d();p();f();Object.defineProperty(GF,"__esModule",{value:!0});GF.renameRootTypes=KVe;var jVe=ve(),$F=Un(),VVe=Av(),il=xr(),Id=An();function KVe(e,t){let r,n=!1,i;(0,jVe.visit)(t.definitions,{FieldDefinition:{enter(a){let o=a.name.value;if(n&&(o===il.SERVICE_FIELD||o===il.ENTITIES_FIELD))return r.fieldDataByName.delete(o),!1;let u=r.name,l=(0,Id.getOrThrowError)(r.fieldDataByName,o,`${u}.fieldDataByFieldName`),m=t.operationTypes.get(l.namedTypeName);if(m){let h=(0,Id.getOrThrowError)($F.operationTypeNodeToDefaultType,m,il.OPERATION_TO_DEFAULT);l.namedTypeName!==h&&(0,VVe.renameNamedTypeName)(l,h,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;r=(0,Id.getOrThrowError)(t.parentDefinitionDataByTypeName,o,il.PARENT_DEFINITION_DATA)},leave(){r=void 0}},ObjectTypeDefinition:{enter(a){let o=a.name.value,u=t.operationTypes.get(o),l=u?(0,Id.getOrThrowError)($F.operationTypeNodeToDefaultType,u,il.OPERATION_TO_DEFAULT):o;r=(0,Id.getOrThrowError)(t.parentDefinitionDataByTypeName,o,il.PARENT_DEFINITION_DATA),n=r.isRootType,!e.entityInterfaceFederationDataByTypeName.get(o)&&(e.addValidPrimaryKeyTargetsToEntityData(o),i=t.overriddenFieldNamesByParentTypeName.get(l),o!==l&&(r.name=l,t.parentDefinitionDataByTypeName.set(l,r),t.parentDefinitionDataByTypeName.delete(o)))},leave(){r=void 0,n=!1,i=void 0}},ObjectTypeExtension:{enter(a){let o=a.name.value,u=t.operationTypes.get(o),l=u?(0,Id.getOrThrowError)($F.operationTypeNodeToDefaultType,u,il.OPERATION_TO_DEFAULT):o;r=(0,Id.getOrThrowError)(t.parentDefinitionDataByTypeName,o,il.PARENT_DEFINITION_DATA),n=r.isRootType,e.addValidPrimaryKeyTargetsToEntityData(o),i=t.overriddenFieldNamesByParentTypeName.get(o),o!==l&&(r.name=l,t.parentDefinitionDataByTypeName.set(l,r),t.parentDefinitionDataByTypeName.delete(o))},leave(){r=void 0,n=!1,i=void 0}}})}});var rX=D((Sp,Py)=>{"use strict";d();p();f();(function(){var e,t="4.18.1",r=200,n="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",i="Expected a function",a="Invalid `variable` option passed into `_.template`",o="Invalid `imports` option passed into `_.template`",u="__lodash_hash_undefined__",l=500,m="__lodash_placeholder__",h=1,N=2,T=4,O=1,R=2,C=1,M=2,Y=4,ee=8,ae=16,Ne=32,_e=64,Le=128,Ve=256,ot=512,Z=30,Se="...",Ft=800,pr=16,ar=1,vr=2,mr=3,tr=1/0,$r=9007199254740991,Yn=17976931348623157e292,dn=NaN,bt=4294967295,Gr=bt-1,oe=bt>>>1,Be=[["ary",Le],["bind",C],["bindKey",M],["curry",ee],["curryRight",ae],["flip",ot],["partial",Ne],["partialRight",_e],["rearg",Ve]],Ie="[object Arguments]",Ce="[object Array]",Qt="[object AsyncFunction]",z="[object Boolean]",ie="[object Date]",Je="[object DOMException]",nt="[object Error]",xt="[object Function]",At="[object GeneratorFunction]",It="[object Map]",Ci="[object Number]",kd="[object Null]",Jn="[object Object]",fl="[object Promise]",qd="[object Proxy]",Ba="[object RegExp]",In="[object Set]",Yt="[object String]",fn="[object Symbol]",__="[object Undefined]",Ni="[object WeakMap]",S_="[object WeakSet]",P="[object ArrayBuffer]",_="[object DataView]",b="[object Float32Array]",k="[object Float64Array]",$="[object Int8Array]",te="[object Int16Array]",ce="[object Int32Array]",gt="[object Uint8Array]",Or="[object Uint8ClampedArray]",hr="[object Uint16Array]",Dr="[object Uint32Array]",dr=/\b__p \+= '';/g,lZ=/\b(__p \+=) '' \+/g,dZ=/(__e\(.*?\)|\b__t\)) \+\n'';/g,TC=/&(?:amp|lt|gt|quot|#39);/g,EC=/[&<>"']/g,fZ=RegExp(TC.source),pZ=RegExp(EC.source),mZ=/<%-([\s\S]+?)%>/g,hZ=/<%([\s\S]+?)%>/g,gC=/<%=([\s\S]+?)%>/g,yZ=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,NZ=/^\w*$/,TZ=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,O_=/[\\^$.*+?()[\]{}|]/g,EZ=RegExp(O_.source),D_=/^\s+/,gZ=/\s/,IZ=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,vZ=/\{\n\/\* \[wrapped with (.+)\] \*/,_Z=/,? & /,SZ=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,IC=/[()=,{}\[\]\/\s]/,OZ=/\\(\\)?/g,DZ=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,vC=/\w*$/,bZ=/^[-+]0x[0-9a-f]+$/i,AZ=/^0b[01]+$/i,RZ=/^\[object .+?Constructor\]$/,wZ=/^0o[0-7]+$/i,PZ=/^(?:0|[1-9]\d*)$/,FZ=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,lN=/($^)/,LZ=/['\n\r\u2028\u2029\\]/g,dN="\\ud800-\\udfff",CZ="\\u0300-\\u036f",BZ="\\ufe20-\\ufe2f",UZ="\\u20d0-\\u20ff",_C=CZ+BZ+UZ,SC="\\u2700-\\u27bf",OC="a-z\\xdf-\\xf6\\xf8-\\xff",kZ="\\xac\\xb1\\xd7\\xf7",qZ="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",xZ="\\u2000-\\u206f",MZ=" \\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",DC="A-Z\\xc0-\\xd6\\xd8-\\xde",bC="\\ufe0e\\ufe0f",AC=kZ+qZ+xZ+MZ,b_="['\u2019]",jZ="["+dN+"]",RC="["+AC+"]",fN="["+_C+"]",wC="\\d+",VZ="["+SC+"]",PC="["+OC+"]",FC="[^"+dN+AC+wC+SC+OC+DC+"]",A_="\\ud83c[\\udffb-\\udfff]",KZ="(?:"+fN+"|"+A_+")",LC="[^"+dN+"]",R_="(?:\\ud83c[\\udde6-\\uddff]){2}",w_="[\\ud800-\\udbff][\\udc00-\\udfff]",xd="["+DC+"]",CC="\\u200d",BC="(?:"+PC+"|"+FC+")",$Z="(?:"+xd+"|"+FC+")",UC="(?:"+b_+"(?:d|ll|m|re|s|t|ve))?",kC="(?:"+b_+"(?:D|LL|M|RE|S|T|VE))?",qC=KZ+"?",xC="["+bC+"]?",GZ="(?:"+CC+"(?:"+[LC,R_,w_].join("|")+")"+xC+qC+")*",QZ="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",YZ="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",MC=xC+qC+GZ,JZ="(?:"+[VZ,R_,w_].join("|")+")"+MC,zZ="(?:"+[LC+fN+"?",fN,R_,w_,jZ].join("|")+")",HZ=RegExp(b_,"g"),WZ=RegExp(fN,"g"),P_=RegExp(A_+"(?="+A_+")|"+zZ+MC,"g"),XZ=RegExp([xd+"?"+PC+"+"+UC+"(?="+[RC,xd,"$"].join("|")+")",$Z+"+"+kC+"(?="+[RC,xd+BC,"$"].join("|")+")",xd+"?"+BC+"+"+UC,xd+"+"+kC,YZ,QZ,wC,JZ].join("|"),"g"),ZZ=RegExp("["+CC+dN+_C+bC+"]"),eee=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,tee=["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"],ree=-1,Ar={};Ar[b]=Ar[k]=Ar[$]=Ar[te]=Ar[ce]=Ar[gt]=Ar[Or]=Ar[hr]=Ar[Dr]=!0,Ar[Ie]=Ar[Ce]=Ar[P]=Ar[z]=Ar[_]=Ar[ie]=Ar[nt]=Ar[xt]=Ar[It]=Ar[Ci]=Ar[Jn]=Ar[Ba]=Ar[In]=Ar[Yt]=Ar[Ni]=!1;var br={};br[Ie]=br[Ce]=br[P]=br[_]=br[z]=br[ie]=br[b]=br[k]=br[$]=br[te]=br[ce]=br[It]=br[Ci]=br[Jn]=br[Ba]=br[In]=br[Yt]=br[fn]=br[gt]=br[Or]=br[hr]=br[Dr]=!0,br[nt]=br[xt]=br[Ni]=!1;var nee={\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"},iee={"&":"&","<":"<",">":">",'"':""","'":"'"},aee={"&":"&","<":"<",">":">",""":'"',"'":"'"},oee={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},see=parseFloat,uee=parseInt,jC=typeof global=="object"&&global&&global.Object===Object&&global,cee=typeof self=="object"&&self&&self.Object===Object&&self,Pn=jC||cee||Function("return this")(),F_=typeof Sp=="object"&&Sp&&!Sp.nodeType&&Sp,pl=F_&&typeof Py=="object"&&Py&&!Py.nodeType&&Py,VC=pl&&pl.exports===F_,L_=VC&&jC.process,Zi=function(){try{var J=pl&&pl.require&&pl.require("util").types;return J||L_&&L_.binding&&L_.binding("util")}catch(ue){}}(),KC=Zi&&Zi.isArrayBuffer,$C=Zi&&Zi.isDate,GC=Zi&&Zi.isMap,QC=Zi&&Zi.isRegExp,YC=Zi&&Zi.isSet,JC=Zi&&Zi.isTypedArray;function Bi(J,ue,re){switch(re.length){case 0:return J.call(ue);case 1:return J.call(ue,re[0]);case 2:return J.call(ue,re[0],re[1]);case 3:return J.call(ue,re[0],re[1],re[2])}return J.apply(ue,re)}function lee(J,ue,re,qe){for(var ht=-1,rr=J==null?0:J.length;++ht-1}function C_(J,ue,re){for(var qe=-1,ht=J==null?0:J.length;++qe-1;);return re}function rB(J,ue){for(var re=J.length;re--&&Md(ue,J[re],0)>-1;);return re}function Eee(J,ue){for(var re=J.length,qe=0;re--;)J[re]===ue&&++qe;return qe}var gee=q_(nee),Iee=q_(iee);function vee(J){return"\\"+oee[J]}function _ee(J,ue){return J==null?e:J[ue]}function jd(J){return ZZ.test(J)}function See(J){return eee.test(J)}function Oee(J){for(var ue,re=[];!(ue=J.next()).done;)re.push(ue.value);return re}function V_(J){var ue=-1,re=Array(J.size);return J.forEach(function(qe,ht){re[++ue]=[ht,qe]}),re}function nB(J,ue){return function(re){return J(ue(re))}}function lc(J,ue){for(var re=-1,qe=J.length,ht=0,rr=[];++re-1}function fte(s,c){var y=this.__data__,v=wN(y,s);return v<0?(++this.size,y.push([s,c])):y[v][1]=c,this}os.prototype.clear=ute,os.prototype.delete=cte,os.prototype.get=lte,os.prototype.has=dte,os.prototype.set=fte;function ss(s){var c=-1,y=s==null?0:s.length;for(this.clear();++c=c?s:c)),s}function ra(s,c,y,v,A,L){var x,V=c&h,H=c&N,fe=c&T;if(y&&(x=A?y(s,v,A,L):y(s)),x!==e)return x;if(!Br(s))return s;var pe=Nt(s);if(pe){if(x=yre(s),!V)return Ti(s,x)}else{var ye=Hn(s),be=ye==xt||ye==At;if(Nc(s))return xB(s,V);if(ye==Jn||ye==Ie||be&&!A){if(x=H||be?{}:iU(s),!V)return H?are(s,Ate(x,s)):ire(s,hB(x,s))}else{if(!br[ye])return A?s:{};x=Nre(s,ye,V)}}L||(L=new ka);var ze=L.get(s);if(ze)return ze;L.set(s,x),LU(s)?s.forEach(function(it){x.add(ra(it,c,y,it,s,L))}):PU(s)&&s.forEach(function(it,Lt){x.set(Lt,ra(it,c,y,Lt,s,L))});var ct=fe?H?mS:pS:H?gi:Fn,St=pe?e:ct(s);return Ui(St||s,function(it,Lt){St&&(Lt=it,it=s[Lt]),Yp(x,Lt,ra(it,c,y,Lt,s,L))}),x}function Rte(s){var c=Fn(s);return function(y){return yB(y,s,c)}}function yB(s,c,y){var v=y.length;if(s==null)return!v;for(s=_r(s);v--;){var A=y[v],L=c[A],x=s[A];if(x===e&&!(A in s)||!L(x))return!1}return!0}function NB(s,c,y){if(typeof s!="function")throw new ea(i);return em(function(){s.apply(e,y)},c)}function Jp(s,c,y,v){var A=-1,L=pN,x=!0,V=s.length,H=[],fe=c.length;if(!V)return H;y&&(c=Pr(c,ki(y))),v?(L=C_,x=!1):c.length>=r&&(L=jp,x=!1,c=new yl(c));e:for(;++AA?0:A+y),v=v===e||v>A?A:vt(v),v<0&&(v+=A),v=y>v?0:BU(v);y0&&y(V)?c>1?Vn(V,c-1,y,v,A):cc(A,V):v||(A[A.length]=V)}return A}var z_=GB(),gB=GB(!0);function Io(s,c){return s&&z_(s,c,Fn)}function H_(s,c){return s&&gB(s,c,Fn)}function FN(s,c){return uc(c,function(y){return ds(s[y])})}function Tl(s,c){c=hc(c,s);for(var y=0,v=c.length;s!=null&&yc}function Fte(s,c){return s!=null&&or.call(s,c)}function Lte(s,c){return s!=null&&c in _r(s)}function Cte(s,c,y){return s>=zn(c,y)&&s<_n(c,y)}function X_(s,c,y){for(var v=y?C_:pN,A=s[0].length,L=s.length,x=L,V=re(L),H=1/0,fe=[];x--;){var pe=s[x];x&&c&&(pe=Pr(pe,ki(c))),H=zn(pe.length,H),V[x]=!y&&(c||A>=120&&pe.length>=120)?new yl(x&&pe):e}pe=s[0];var ye=-1,be=V[0];e:for(;++ye-1;)V!==s&&_N.call(V,H,1),_N.call(s,H,1);return s}function PB(s,c){for(var y=s?c.length:0,v=y-1;y--;){var A=c[y];if(y==v||A!==L){var L=A;ls(A)?_N.call(s,A,1):oS(s,A)}}return s}function nS(s,c){return s+DN(dB()*(c-s+1))}function Yte(s,c,y,v){for(var A=-1,L=_n(ON((c-s)/(y||1)),0),x=re(L);L--;)x[v?L:++A]=s,s+=y;return x}function iS(s,c){var y="";if(!s||c<1||c>$r)return y;do c%2&&(y+=s),c=DN(c/2),c&&(s+=s);while(c);return y}function Rt(s,c){return IS(sU(s,c,Ii),s+"")}function Jte(s){return mB(Wd(s))}function zte(s,c){var y=Wd(s);return KN(y,Nl(c,0,y.length))}function Wp(s,c,y,v){if(!Br(s))return s;c=hc(c,s);for(var A=-1,L=c.length,x=L-1,V=s;V!=null&&++AA?0:A+c),y=y>A?A:y,y<0&&(y+=A),A=c>y?0:y-c>>>0,c>>>=0;for(var L=re(A);++v>>1,x=s[L];x!==null&&!xi(x)&&(y?x<=c:x=r){var fe=c?null:cre(s);if(fe)return hN(fe);x=!1,A=jp,H=new yl}else H=c?[]:V;e:for(;++v=v?s:na(s,c,y)}var qB=Mee||function(s){return Pn.clearTimeout(s)};function xB(s,c){if(c)return s.slice();var y=s.length,v=oB?oB(y):new s.constructor(y);return s.copy(v),v}function lS(s){var c=new s.constructor(s.byteLength);return new IN(c).set(new IN(s)),c}function ere(s,c){var y=c?lS(s.buffer):s.buffer;return new s.constructor(y,s.byteOffset,s.byteLength)}function tre(s){var c=new s.constructor(s.source,vC.exec(s));return c.lastIndex=s.lastIndex,c}function rre(s){return Qp?_r(Qp.call(s)):{}}function MB(s,c){var y=c?lS(s.buffer):s.buffer;return new s.constructor(y,s.byteOffset,s.length)}function jB(s,c){if(s!==c){var y=s!==e,v=s===null,A=s===s,L=xi(s),x=c!==e,V=c===null,H=c===c,fe=xi(c);if(!V&&!fe&&!L&&s>c||L&&x&&H&&!V&&!fe||v&&x&&H||!y&&H||!A)return 1;if(!v&&!L&&!fe&&s=V)return H;var fe=y[v];return H*(fe=="desc"?-1:1)}}return s.index-c.index}function VB(s,c,y,v){for(var A=-1,L=s.length,x=y.length,V=-1,H=c.length,fe=_n(L-x,0),pe=re(H+fe),ye=!v;++V1?y[A-1]:e,x=A>2?y[2]:e;for(L=s.length>3&&typeof L=="function"?(A--,L):e,x&&ni(y[0],y[1],x)&&(L=A<3?e:L,A=1),c=_r(c);++v-1?A[L?c[x]:x]:e}}function JB(s){return cs(function(c){var y=c.length,v=y,A=ta.prototype.thru;for(s&&c.reverse();v--;){var L=c[v];if(typeof L!="function")throw new ea(i);if(A&&!x&&jN(L)=="wrapper")var x=new ta([],!0)}for(v=x?v:y;++v1&&Mt.reverse(),pe&&HV))return!1;var fe=L.get(s),pe=L.get(c);if(fe&&pe)return fe==c&&pe==s;var ye=-1,be=!0,ze=y&R?new yl:e;for(L.set(s,c),L.set(c,s);++ye1?"& ":"")+c[v],c=c.join(y>2?", ":" "),s.replace(IZ,`{ /* [wrapped with `+c+`] */ -`)}function FQ(s){return ft(s)||Xu(s)||!!(p0&&s&&s[p0])}function ys(s,c){var f=typeof s;return c=c==null?wn:c,!!c&&(f=="number"||f!="symbol"&&KK.test(s))&&s>-1&&s%1==0&&s0){if(++c>=It)return arguments[0]}else c=0;return s.apply(e,arguments)}}function Mm(s,c){var f=-1,y=s.length,S=y-1;for(c=c===e?y:c;++f1?s[c-1]:e;return f=typeof f=="function"?(s.pop(),f):e,vR(s,f)});function SR(s){var c=w(s);return c.__chain__=!0,c}function jY(s,c){return c(s),s}function xm(s,c){return c(s)}var KY=hs(function(s){var c=s.length,f=c?s[0]:0,y=this.__wrapped__,S=function(L){return cy(L,s)};return c>1||this.__actions__.length||!(y instanceof Pt)||!ys(f)?this.thru(S):(y=y.slice(f,+f+(c?1:0)),y.__actions__.push({func:xm,args:[S],thisArg:e}),new Pi(y,this.__chain__).thru(function(L){return c&&!L.length&&L.push(e),L}))});function $Y(){return SR(this)}function GY(){return new Pi(this.value(),this.__chain__)}function QY(){this.__values__===e&&(this.__values__=MR(this.value()));var s=this.__index__>=this.__values__.length,c=s?e:this.__values__[this.__index__++];return{done:s,value:c}}function YY(){return this}function JY(s){for(var c,f=this;f instanceof Sm;){var y=ER(f);y.__index__=0,y.__values__=e,c?S.__wrapped__=y:c=y;var S=y;f=f.__wrapped__}return S.__wrapped__=s,c}function zY(){var s=this.__wrapped__;if(s instanceof Pt){var c=s;return this.__actions__.length&&(c=new Pt(this)),c=c.reverse(),c.__actions__.push({func:xm,args:[ky],thisArg:e}),new Pi(c,this.__chain__)}return this.thru(ky)}function HY(){return q0(this.__wrapped__,this.__actions__)}var WY=Fm(function(s,c,f){en.call(s,f)?++s[f]:xa(s,f,1)});function XY(s,c,f){var y=ft(s)?ZA:jG;return f&&Kr(s,c,f)&&(c=e),y(s,tt(c,3))}function ZY(s,c){var f=ft(s)?iu:v0;return f(s,tt(c,3))}var e2=W0(hR),t2=W0(yR);function n2(s,c){return vr(qm(s,c),1)}function r2(s,c){return vr(qm(s,c),Ht)}function i2(s,c,f){return f=f===e?1:ht(f),vr(qm(s,c),f)}function OR(s,c){var f=ft(s)?mi:cu;return f(s,tt(c,3))}function DR(s,c){var f=ft(s)?v$:_0;return f(s,tt(c,3))}var a2=Fm(function(s,c,f){en.call(s,f)?s[f].push(c):xa(s,f,[c])});function s2(s,c,f,y){s=ei(s)?s:Tl(s),f=f&&!y?ht(f):0;var S=s.length;return f<0&&(f=or(S+f,0)),Gm(s)?f<=S&&s.indexOf(c,f)>-1:!!S&&al(s,c,f)>-1}var o2=Ot(function(s,c,f){var y=-1,S=typeof c=="function",L=ei(s)?ne(s.length):[];return cu(s,function(x){L[++y]=S?pi(c,x,f):xd(x,c,f)}),L}),u2=Fm(function(s,c,f){xa(s,f,c)});function qm(s,c){var f=ft(s)?vn:R0;return f(s,tt(c,3))}function c2(s,c,f,y){return s==null?[]:(ft(c)||(c=c==null?[]:[c]),f=y?e:f,ft(f)||(f=f==null?[]:[f]),L0(s,c,f))}var l2=Fm(function(s,c,f){s[f?0:1].push(c)},function(){return[[],[]]});function d2(s,c,f){var y=ft(s)?Hh:r0,S=arguments.length<3;return y(s,tt(c,4),f,S,cu)}function f2(s,c,f){var y=ft(s)?S$:r0,S=arguments.length<3;return y(s,tt(c,4),f,S,_0)}function p2(s,c){var f=ft(s)?iu:v0;return f(s,Km(tt(c,3)))}function m2(s){var c=ft(s)?h0:sQ;return c(s)}function N2(s,c,f){(f?Kr(s,c,f):c===e)?c=1:c=ht(c);var y=ft(s)?kG:oQ;return y(s,c)}function T2(s){var c=ft(s)?MG:cQ;return c(s)}function E2(s){if(s==null)return 0;if(ei(s))return Gm(s)?ol(s):s.length;var c=Fr(s);return c==Et||c==ar?s.size:Ny(s).length}function h2(s,c,f){var y=ft(s)?Wh:lQ;return f&&Kr(s,c,f)&&(c=e),y(s,tt(c,3))}var y2=Ot(function(s,c){if(s==null)return[];var f=c.length;return f>1&&Kr(s,c[0],c[1])?c=[]:f>2&&Kr(c[0],c[1],c[2])&&(c=[c[0]]),L0(s,vr(c,1),[])}),Vm=Z$||function(){return mr.Date.now()};function I2(s,c){if(typeof c!="function")throw new Ri(i);return s=ht(s),function(){if(--s<1)return c.apply(this,arguments)}}function bR(s,c,f){return c=f?e:c,c=s&&c==null?s.length:c,Es(s,_e,e,e,e,e,c)}function AR(s,c){var f;if(typeof c!="function")throw new Ri(i);return s=ht(s),function(){return--s>0&&(f=c.apply(this,arguments)),s<=1&&(c=e),f}}var xy=Ot(function(s,c,f){var y=U;if(f.length){var S=su(f,ml(xy));y|=me}return Es(s,y,c,f,S)}),RR=Ot(function(s,c,f){var y=U|q;if(f.length){var S=su(f,ml(RR));y|=me}return Es(c,y,s,f,S)});function PR(s,c,f){c=f?e:c;var y=Es(s,te,e,e,e,e,e,c);return y.placeholder=PR.placeholder,y}function FR(s,c,f){c=f?e:c;var y=Es(s,ae,e,e,e,e,e,c);return y.placeholder=FR.placeholder,y}function wR(s,c,f){var y,S,L,x,j,z,de=0,fe=!1,Te=!1,Ae=!0;if(typeof s!="function")throw new Ri(i);c=Ci(c)||0,bn(f)&&(fe=!!f.leading,Te="maxWait"in f,L=Te?or(Ci(f.maxWait)||0,c):L,Ae="trailing"in f?!!f.trailing:Ae);function Ge(Vn){var fa=y,_s=S;return y=S=e,de=Vn,x=s.apply(_s,fa),x}function nt(Vn){return de=Vn,j=$d(At,c),fe?Ge(Vn):x}function gt(Vn){var fa=Vn-z,_s=Vn-de,XR=c-fa;return Te?Pr(XR,L-_s):XR}function Ze(Vn){var fa=Vn-z,_s=Vn-de;return z===e||fa>=c||fa<0||Te&&_s>=L}function At(){var Vn=Vm();if(Ze(Vn))return Ct(Vn);j=$d(At,gt(Vn))}function Ct(Vn){return j=e,Ae&&y?Ge(Vn):(y=S=e,x)}function hi(){j!==e&&j0(j),de=0,y=z=S=j=e}function $r(){return j===e?x:Ct(Vm())}function yi(){var Vn=Vm(),fa=Ze(Vn);if(y=arguments,S=this,z=Vn,fa){if(j===e)return nt(z);if(Te)return j0(j),j=$d(At,c),Ge(z)}return j===e&&(j=$d(At,c)),x}return yi.cancel=hi,yi.flush=$r,yi}var g2=Ot(function(s,c){return g0(s,1,c)}),_2=Ot(function(s,c,f){return g0(s,Ci(c)||0,f)});function v2(s){return Es(s,Be)}function jm(s,c){if(typeof s!="function"||c!=null&&typeof c!="function")throw new Ri(i);var f=function(){var y=arguments,S=c?c.apply(this,y):y[0],L=f.cache;if(L.has(S))return L.get(S);var x=s.apply(this,y);return f.cache=L.set(S,x)||L,x};return f.cache=new(jm.Cache||Ts),f}jm.Cache=Ts;function Km(s){if(typeof s!="function")throw new Ri(i);return function(){var c=arguments;switch(c.length){case 0:return!s.call(this);case 1:return!s.call(this,c[0]);case 2:return!s.call(this,c[0],c[1]);case 3:return!s.call(this,c[0],c[1],c[2])}return!s.apply(this,c)}}function S2(s){return AR(2,s)}var O2=dQ(function(s,c){c=c.length==1&&ft(c[0])?vn(c[0],Ni(tt())):vn(vr(c,1),Ni(tt()));var f=c.length;return Ot(function(y){for(var S=-1,L=Pr(y.length,f);++S=c}),Xu=D0(function(){return arguments}())?D0:function(s){return Cn(s)&&en.call(s,"callee")&&!f0.call(s,"callee")},ft=ne.isArray,q2=YA?Ni(YA):JG;function ei(s){return s!=null&&$m(s.length)&&!Is(s)}function qn(s){return Cn(s)&&ei(s)}function V2(s){return s===!0||s===!1||Cn(s)&&jr(s)==J}var pu=tG||Xy,j2=JA?Ni(JA):zG;function K2(s){return Cn(s)&&s.nodeType===1&&!Gd(s)}function $2(s){if(s==null)return!0;if(ei(s)&&(ft(s)||typeof s=="string"||typeof s.splice=="function"||pu(s)||Nl(s)||Xu(s)))return!s.length;var c=Fr(s);if(c==Et||c==ar)return!s.size;if(Kd(s))return!Ny(s).length;for(var f in s)if(en.call(s,f))return!1;return!0}function G2(s,c){return qd(s,c)}function Q2(s,c,f){f=typeof f=="function"?f:e;var y=f?f(s,c):e;return y===e?qd(s,c,e,f):!!y}function Vy(s){if(!Cn(s))return!1;var c=jr(s);return c==He||c==$e||typeof s.message=="string"&&typeof s.name=="string"&&!Gd(s)}function Y2(s){return typeof s=="number"&&m0(s)}function Is(s){if(!bn(s))return!1;var c=jr(s);return c==Lt||c==St||c==Mt||c==rl}function CR(s){return typeof s=="number"&&s==ht(s)}function $m(s){return typeof s=="number"&&s>-1&&s%1==0&&s<=wn}function bn(s){var c=typeof s;return s!=null&&(c=="object"||c=="function")}function Cn(s){return s!=null&&typeof s=="object"}var UR=zA?Ni(zA):WG;function J2(s,c){return s===c||my(s,c,Fy(c))}function z2(s,c,f){return f=typeof f=="function"?f:e,my(s,c,Fy(c),f)}function H2(s){return BR(s)&&s!=+s}function W2(s){if(CQ(s))throw new lt(r);return b0(s)}function X2(s){return s===null}function Z2(s){return s==null}function BR(s){return typeof s=="number"||Cn(s)&&jr(s)==fi}function Gd(s){if(!Cn(s)||jr(s)!=Rr)return!1;var c=Em(s);if(c===null)return!0;var f=en.call(c,"constructor")&&c.constructor;return typeof f=="function"&&f instanceof f&&pm.call(f)==z$}var jy=HA?Ni(HA):XG;function eJ(s){return CR(s)&&s>=-wn&&s<=wn}var kR=WA?Ni(WA):ZG;function Gm(s){return typeof s=="string"||!ft(s)&&Cn(s)&&jr(s)==xt}function Ei(s){return typeof s=="symbol"||Cn(s)&&jr(s)==Hn}var Nl=XA?Ni(XA):eQ;function tJ(s){return s===e}function nJ(s){return Cn(s)&&Fr(s)==Xr}function rJ(s){return Cn(s)&&jr(s)==xh}var iJ=Um(Ty),aJ=Um(function(s,c){return s<=c});function MR(s){if(!s)return[];if(ei(s))return Gm(s)?ua(s):Zr(s);if(wd&&s[wd])return k$(s[wd]());var c=Fr(s),f=c==Et?ry:c==ar?lm:Tl;return f(s)}function gs(s){if(!s)return s===0?s:0;if(s=Ci(s),s===Ht||s===-Ht){var c=s<0?-1:1;return c*Ar}return s===s?s:0}function ht(s){var c=gs(s),f=c%1;return c===c?f?c-f:c:0}function xR(s){return s?Ju(ht(s),0,vt):0}function Ci(s){if(typeof s=="number")return s;if(Ei(s))return zn;if(bn(s)){var c=typeof s.valueOf=="function"?s.valueOf():s;s=bn(c)?c+"":c}if(typeof s!="string")return s===0?s:+s;s=i0(s);var f=qK.test(s);return f||jK.test(s)?I$(s.slice(2),f?2:8):xK.test(s)?zn:+s}function qR(s){return Va(s,ti(s))}function sJ(s){return s?Ju(ht(s),-wn,wn):s===0?s:0}function tn(s){return s==null?"":Ti(s)}var oJ=fl(function(s,c){if(Kd(c)||ei(c)){Va(c,Nr(c),s);return}for(var f in c)en.call(c,f)&&kd(s,f,c[f])}),VR=fl(function(s,c){Va(c,ti(c),s)}),jR=fl(function(s,c,f,y){Va(c,ti(c),s,y)}),Ky=fl(function(s,c,f,y){Va(c,Nr(c),s,y)}),uJ=hs(cy);function cJ(s,c){var f=dl(s);return c==null?f:y0(f,c)}var lJ=Ot(function(s,c){s=mn(s);var f=-1,y=c.length,S=y>2?c[2]:e;for(S&&Kr(c[0],c[1],S)&&(y=1);++f1),L}),Va(s,Ry(s),f),y&&(f=Fi(f,p|E|h,_Q));for(var S=c.length;S--;)gy(f,c[S]);return f});function AJ(s,c){return $R(s,Km(tt(c)))}var RJ=hs(function(s,c){return s==null?{}:rQ(s,c)});function $R(s,c){if(s==null)return{};var f=vn(Ry(s),function(y){return[y]});return c=tt(c),C0(s,f,function(y,S){return c(y,S[0])})}function PJ(s,c,f){c=du(c,s);var y=-1,S=c.length;for(S||(S=1,s=e);++yc){var y=s;s=c,c=y}if(f||s%1||c%1){var S=N0();return Pr(s+S*(c-s+y$("1e-"+((S+"").length-1))),c)}return hy(s,c)}var VJ=pl(function(s,c,f){return c=c.toLowerCase(),s+(f?YR(c):c)});function YR(s){return Qy(tn(s).toLowerCase())}function JR(s){return s=tn(s),s&&s.replace($K,w$).replace(c$,"")}function jJ(s,c,f){s=tn(s),c=Ti(c);var y=s.length;f=f===e?y:Ju(ht(f),0,y);var S=f;return f-=c.length,f>=0&&s.slice(f,S)==c}function KJ(s){return s=tn(s),s&&OK.test(s)?s.replace(vA,L$):s}function $J(s){return s=tn(s),s&&FK.test(s)?s.replace(qh,"\\$&"):s}var GJ=pl(function(s,c,f){return s+(f?"-":"")+c.toLowerCase()}),QJ=pl(function(s,c,f){return s+(f?" ":"")+c.toLowerCase()}),YJ=H0("toLowerCase");function JJ(s,c,f){s=tn(s),c=ht(c);var y=c?ol(s):0;if(!c||y>=c)return s;var S=(c-y)/2;return Cm(gm(S),f)+s+Cm(Im(S),f)}function zJ(s,c,f){s=tn(s),c=ht(c);var y=c?ol(s):0;return c&&y>>0,f?(s=tn(s),s&&(typeof c=="string"||c!=null&&!jy(c))&&(c=Ti(c),!c&&sl(s))?fu(ua(s),0,f):s.split(c,f)):[]}var nz=pl(function(s,c,f){return s+(f?" ":"")+Qy(c)});function rz(s,c,f){return s=tn(s),f=f==null?0:Ju(ht(f),0,s.length),c=Ti(c),s.slice(f,f+c.length)==c}function iz(s,c,f){var y=w.templateSettings;f&&Kr(s,c,f)&&(c=e),s=tn(s),c=Ky({},c,y,rR);var S=Ky({},c.imports,y.imports,rR),L=Nr(S),x=ny(S,L);mi(L,function(Ze){if(OA.test(Ze))throw new lt(o)});var j,z,de=0,fe=c.interpolate||am,Te="__p += '",Ae=iy((c.escape||am).source+"|"+fe.source+"|"+(fe===SA?MK:am).source+"|"+(c.evaluate||am).source+"|$","g"),Ge="//# sourceURL="+(en.call(c,"sourceURL")?(c.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++m$+"]")+` -`;s.replace(Ae,function(Ze,At,Ct,hi,$r,yi){return Ct||(Ct=hi),Te+=s.slice(de,yi).replace(GK,C$),At&&(j=!0,Te+=`' + -__e(`+At+`) + -'`),$r&&(z=!0,Te+=`'; -`+$r+`; -__p += '`),Ct&&(Te+=`' + -((__t = (`+Ct+`)) == null ? '' : __t) + -'`),de=yi+Ze.length,Ze}),Te+=`'; -`;var nt=en.call(c,"variable")&&c.variable;if(!nt)Te=`with (obj) { -`+Te+` +`)}function Ere(s){return Nt(s)||Il(s)||!!(cB&&s&&s[cB])}function ls(s,c){var y=typeof s;return c=c==null?$r:c,!!c&&(y=="number"||y!="symbol"&&PZ.test(s))&&s>-1&&s%1==0&&s0){if(++c>=Ft)return arguments[0]}else c=0;return s.apply(e,arguments)}}function KN(s,c){var y=-1,v=s.length,A=v-1;for(c=c===e?v:c;++y1?s[c-1]:e;return y=typeof y=="function"?(s.pop(),y):e,EU(s,y)});function gU(s){var c=F(s);return c.__chain__=!0,c}function wne(s,c){return c(s),s}function $N(s,c){return c(s)}var Pne=cs(function(s){var c=s.length,y=c?s[0]:0,v=this.__wrapped__,A=function(L){return J_(L,s)};return c>1||this.__actions__.length||!(v instanceof Ut)||!ls(y)?this.thru(A):(v=v.slice(y,+y+(c?1:0)),v.__actions__.push({func:$N,args:[A],thisArg:e}),new ta(v,this.__chain__).thru(function(L){return c&&!L.length&&L.push(e),L}))});function Fne(){return gU(this)}function Lne(){return new ta(this.value(),this.__chain__)}function Cne(){this.__values__===e&&(this.__values__=CU(this.value()));var s=this.__index__>=this.__values__.length,c=s?e:this.__values__[this.__index__++];return{done:s,value:c}}function Bne(){return this}function Une(s){for(var c,y=this;y instanceof RN;){var v=pU(y);v.__index__=0,v.__values__=e,c?A.__wrapped__=v:c=v;var A=v;y=y.__wrapped__}return A.__wrapped__=s,c}function kne(){var s=this.__wrapped__;if(s instanceof Ut){var c=s;return this.__actions__.length&&(c=new Ut(this)),c=c.reverse(),c.__actions__.push({func:$N,args:[vS],thisArg:e}),new ta(c,this.__chain__)}return this.thru(vS)}function qne(){return UB(this.__wrapped__,this.__actions__)}var xne=UN(function(s,c,y){or.call(s,y)?++s[y]:go(s,y,1)});function Mne(s,c,y){var v=Nt(s)?zC:wte;return y&&ni(s,c,y)&&(c=e),v(s,st(c,3))}function jne(s,c){var y=Nt(s)?uc:EB;return y(s,st(c,3))}var Vne=YB(mU),Kne=YB(hU);function $ne(s,c){return Vn(GN(s,c),1)}function Gne(s,c){return Vn(GN(s,c),tr)}function Qne(s,c,y){return y=y===e?1:vt(y),Vn(GN(s,c),y)}function IU(s,c){var y=Nt(s)?Ui:pc;return y(s,st(c,3))}function vU(s,c){var y=Nt(s)?dee:TB;return y(s,st(c,3))}var Yne=UN(function(s,c,y){or.call(s,y)?s[y].push(c):go(s,y,[c])});function Jne(s,c,y,v){s=Ei(s)?s:Wd(s),y=y&&!v?vt(y):0;var A=s.length;return y<0&&(y=_n(A+y,0)),HN(s)?y<=A&&s.indexOf(c,y)>-1:!!A&&Md(s,c,y)>-1}var zne=Rt(function(s,c,y){var v=-1,A=typeof c=="function",L=Ei(s)?re(s.length):[];return pc(s,function(x){L[++v]=A?Bi(c,x,y):zp(x,c,y)}),L}),Hne=UN(function(s,c,y){go(s,y,c)});function GN(s,c){var y=Nt(s)?Pr:OB;return y(s,st(c,3))}function Wne(s,c,y,v){return s==null?[]:(Nt(c)||(c=c==null?[]:[c]),y=v?e:y,Nt(y)||(y=y==null?[]:[y]),RB(s,c,y))}var Xne=UN(function(s,c,y){s[y?0:1].push(c)},function(){return[[],[]]});function Zne(s,c,y){var v=Nt(s)?B_:ZC,A=arguments.length<3;return v(s,st(c,4),y,A,pc)}function eie(s,c,y){var v=Nt(s)?fee:ZC,A=arguments.length<3;return v(s,st(c,4),y,A,TB)}function tie(s,c){var y=Nt(s)?uc:EB;return y(s,JN(st(c,3)))}function rie(s){var c=Nt(s)?mB:Jte;return c(s)}function nie(s,c,y){(y?ni(s,c,y):c===e)?c=1:c=vt(c);var v=Nt(s)?Ote:zte;return v(s,c)}function iie(s){var c=Nt(s)?Dte:Wte;return c(s)}function aie(s){if(s==null)return 0;if(Ei(s))return HN(s)?Vd(s):s.length;var c=Hn(s);return c==It||c==In?s.size:eS(s).length}function oie(s,c,y){var v=Nt(s)?U_:Xte;return y&&ni(s,c,y)&&(c=e),v(s,st(c,3))}var sie=Rt(function(s,c){if(s==null)return[];var y=c.length;return y>1&&ni(s,c[0],c[1])?c=[]:y>2&&ni(c[0],c[1],c[2])&&(c=[c[0]]),RB(s,Vn(c,1),[])}),QN=jee||function(){return Pn.Date.now()};function uie(s,c){if(typeof c!="function")throw new ea(i);return s=vt(s),function(){if(--s<1)return c.apply(this,arguments)}}function _U(s,c,y){return c=y?e:c,c=s&&c==null?s.length:c,us(s,Le,e,e,e,e,c)}function SU(s,c){var y;if(typeof c!="function")throw new ea(i);return s=vt(s),function(){return--s>0&&(y=c.apply(this,arguments)),s<=1&&(c=e),y}}var SS=Rt(function(s,c,y){var v=C;if(y.length){var A=lc(y,zd(SS));v|=Ne}return us(s,v,c,y,A)}),OU=Rt(function(s,c,y){var v=C|M;if(y.length){var A=lc(y,zd(OU));v|=Ne}return us(c,v,s,y,A)});function DU(s,c,y){c=y?e:c;var v=us(s,ee,e,e,e,e,e,c);return v.placeholder=DU.placeholder,v}function bU(s,c,y){c=y?e:c;var v=us(s,ae,e,e,e,e,e,c);return v.placeholder=bU.placeholder,v}function AU(s,c,y){var v,A,L,x,V,H,fe=0,pe=!1,ye=!1,be=!0;if(typeof s!="function")throw new ea(i);c=aa(c)||0,Br(y)&&(pe=!!y.leading,ye="maxWait"in y,L=ye?_n(aa(y.maxWait)||0,c):L,be="trailing"in y?!!y.trailing:be);function ze(tn){var Ma=v,ps=A;return v=A=e,fe=tn,x=s.apply(ps,Ma),x}function ct(tn){return fe=tn,V=em(Lt,c),pe?ze(tn):x}function St(tn){var Ma=tn-H,ps=tn-fe,JU=c-Ma;return ye?zn(JU,L-ps):JU}function it(tn){var Ma=tn-H,ps=tn-fe;return H===e||Ma>=c||Ma<0||ye&&ps>=L}function Lt(){var tn=QN();if(it(tn))return Mt(tn);V=em(Lt,St(tn))}function Mt(tn){return V=e,be&&v?ze(tn):(v=A=e,x)}function Mi(){V!==e&&qB(V),fe=0,v=H=A=V=e}function ii(){return V===e?x:Mt(QN())}function ji(){var tn=QN(),Ma=it(tn);if(v=arguments,A=this,H=tn,Ma){if(V===e)return ct(H);if(ye)return qB(V),V=em(Lt,c),ze(H)}return V===e&&(V=em(Lt,c)),x}return ji.cancel=Mi,ji.flush=ii,ji}var cie=Rt(function(s,c){return NB(s,1,c)}),lie=Rt(function(s,c,y){return NB(s,aa(c)||0,y)});function die(s){return us(s,ot)}function YN(s,c){if(typeof s!="function"||c!=null&&typeof c!="function")throw new ea(i);var y=function(){var v=arguments,A=c?c.apply(this,v):v[0],L=y.cache;if(L.has(A))return L.get(A);var x=s.apply(this,v);return y.cache=L.set(A,x)||L,x};return y.cache=new(YN.Cache||ss),y}YN.Cache=ss;function JN(s){if(typeof s!="function")throw new ea(i);return function(){var c=arguments;switch(c.length){case 0:return!s.call(this);case 1:return!s.call(this,c[0]);case 2:return!s.call(this,c[0],c[1]);case 3:return!s.call(this,c[0],c[1],c[2])}return!s.apply(this,c)}}function fie(s){return SU(2,s)}var pie=Zte(function(s,c){c=c.length==1&&Nt(c[0])?Pr(c[0],ki(st())):Pr(Vn(c,1),ki(st()));var y=c.length;return Rt(function(v){for(var A=-1,L=zn(v.length,y);++A=c}),Il=vB(function(){return arguments}())?vB:function(s){return Qr(s)&&or.call(s,"callee")&&!uB.call(s,"callee")},Nt=re.isArray,Aie=KC?ki(KC):Ute;function Ei(s){return s!=null&&zN(s.length)&&!ds(s)}function en(s){return Qr(s)&&Ei(s)}function Rie(s){return s===!0||s===!1||Qr(s)&&ri(s)==z}var Nc=Kee||kS,wie=$C?ki($C):kte;function Pie(s){return Qr(s)&&s.nodeType===1&&!tm(s)}function Fie(s){if(s==null)return!0;if(Ei(s)&&(Nt(s)||typeof s=="string"||typeof s.splice=="function"||Nc(s)||Hd(s)||Il(s)))return!s.length;var c=Hn(s);if(c==It||c==In)return!s.size;if(Zp(s))return!eS(s).length;for(var y in s)if(or.call(s,y))return!1;return!0}function Lie(s,c){return Hp(s,c)}function Cie(s,c,y){y=typeof y=="function"?y:e;var v=y?y(s,c):e;return v===e?Hp(s,c,e,y):!!v}function DS(s){if(!Qr(s))return!1;var c=ri(s);return c==nt||c==Je||typeof s.message=="string"&&typeof s.name=="string"&&!tm(s)}function Bie(s){return typeof s=="number"&&lB(s)}function ds(s){if(!Br(s))return!1;var c=ri(s);return c==xt||c==At||c==Qt||c==qd}function wU(s){return typeof s=="number"&&s==vt(s)}function zN(s){return typeof s=="number"&&s>-1&&s%1==0&&s<=$r}function Br(s){var c=typeof s;return s!=null&&(c=="object"||c=="function")}function Qr(s){return s!=null&&typeof s=="object"}var PU=GC?ki(GC):xte;function Uie(s,c){return s===c||Z_(s,c,yS(c))}function kie(s,c,y){return y=typeof y=="function"?y:e,Z_(s,c,yS(c),y)}function qie(s){return FU(s)&&s!=+s}function xie(s){if(vre(s))throw new ht(n);return _B(s)}function Mie(s){return s===null}function jie(s){return s==null}function FU(s){return typeof s=="number"||Qr(s)&&ri(s)==Ci}function tm(s){if(!Qr(s)||ri(s)!=Jn)return!1;var c=vN(s);if(c===null)return!0;var y=or.call(c,"constructor")&&c.constructor;return typeof y=="function"&&y instanceof y&&TN.call(y)==kee}var bS=QC?ki(QC):Mte;function Vie(s){return wU(s)&&s>=-$r&&s<=$r}var LU=YC?ki(YC):jte;function HN(s){return typeof s=="string"||!Nt(s)&&Qr(s)&&ri(s)==Yt}function xi(s){return typeof s=="symbol"||Qr(s)&&ri(s)==fn}var Hd=JC?ki(JC):Vte;function Kie(s){return s===e}function $ie(s){return Qr(s)&&Hn(s)==Ni}function Gie(s){return Qr(s)&&ri(s)==S_}var Qie=MN(tS),Yie=MN(function(s,c){return s<=c});function CU(s){if(!s)return[];if(Ei(s))return HN(s)?Ua(s):Ti(s);if(Vp&&s[Vp])return Oee(s[Vp]());var c=Hn(s),y=c==It?V_:c==In?hN:Wd;return y(s)}function fs(s){if(!s)return s===0?s:0;if(s=aa(s),s===tr||s===-tr){var c=s<0?-1:1;return c*Yn}return s===s?s:0}function vt(s){var c=fs(s),y=c%1;return c===c?y?c-y:c:0}function BU(s){return s?Nl(vt(s),0,bt):0}function aa(s){if(typeof s=="number")return s;if(xi(s))return dn;if(Br(s)){var c=typeof s.valueOf=="function"?s.valueOf():s;s=Br(c)?c+"":c}if(typeof s!="string")return s===0?s:+s;s=eB(s);var y=AZ.test(s);return y||wZ.test(s)?uee(s.slice(2),y?2:8):bZ.test(s)?dn:+s}function UU(s){return vo(s,gi(s))}function Jie(s){return s?Nl(vt(s),-$r,$r):s===0?s:0}function sr(s){return s==null?"":qi(s)}var zie=Yd(function(s,c){if(Zp(c)||Ei(c)){vo(c,Fn(c),s);return}for(var y in c)or.call(c,y)&&Yp(s,y,c[y])}),kU=Yd(function(s,c){vo(c,gi(c),s)}),qU=Yd(function(s,c,y,v){vo(c,gi(c),s,v)}),AS=Yd(function(s,c,y,v){vo(c,Fn(c),s,v)}),Hie=cs(J_);function Wie(s,c){var y=Qd(s);return c==null?y:hB(y,c)}var Xie=Rt(function(s,c){s=_r(s);var y=-1,v=c.length,A=v>2?c[2]:e;for(A&&ni(c[0],c[1],A)&&(v=1);++y1),L}),vo(s,mS(s),y),v&&(y=ra(y,h|N|T,lre));for(var A=c.length;A--;)oS(y,c[A]);return y});function yae(s,c){return MU(s,JN(st(c)))}var Nae=cs(function(s,c){return s==null?{}:Gte(s,c)});function MU(s,c){if(s==null)return{};var y=Pr(mS(s),function(v){return[v]});return c=st(c),wB(s,y,function(v,A){return c(v,A[0])})}function Tae(s,c,y){c=hc(c,s);var v=-1,A=c.length;for(A||(A=1,s=e);++vc){var v=s;s=c,c=v}if(y||s%1||c%1){var A=dB();return zn(s+A*(c-s+see("1e-"+((A+"").length-1))),c)}return nS(s,c)}var Rae=Jd(function(s,c,y){return c=c.toLowerCase(),s+(y?KU(c):c)});function KU(s){return PS(sr(s).toLowerCase())}function $U(s){return s=sr(s),s&&s.replace(FZ,gee).replace(WZ,"")}function wae(s,c,y){s=sr(s),c=qi(c);var v=s.length;y=y===e?v:Nl(vt(y),0,v);var A=y;return y-=c.length,y>=0&&s.slice(y,A)==c}function Pae(s){return s=sr(s),s&&pZ.test(s)?s.replace(EC,Iee):s}function Fae(s){return s=sr(s),s&&EZ.test(s)?s.replace(O_,"\\$&"):s}var Lae=Jd(function(s,c,y){return s+(y?"-":"")+c.toLowerCase()}),Cae=Jd(function(s,c,y){return s+(y?" ":"")+c.toLowerCase()}),Bae=QB("toLowerCase");function Uae(s,c,y){s=sr(s),c=vt(c);var v=c?Vd(s):0;if(!c||v>=c)return s;var A=(c-v)/2;return xN(DN(A),y)+s+xN(ON(A),y)}function kae(s,c,y){s=sr(s),c=vt(c);var v=c?Vd(s):0;return c&&v>>0,y?(s=sr(s),s&&(typeof c=="string"||c!=null&&!bS(c))&&(c=qi(c),!c&&jd(s))?yc(Ua(s),0,y):s.split(c,y)):[]}var $ae=Jd(function(s,c,y){return s+(y?" ":"")+PS(c)});function Gae(s,c,y){return s=sr(s),y=y==null?0:Nl(vt(y),0,s.length),c=qi(c),s.slice(y,y+c.length)==c}function Qae(s,c,y){var v=F.templateSettings;y&&ni(s,c,y)&&(c=e),s=sr(s),c=AS({},c,v,ZB);var A=AS({},c.imports,v.imports,ZB),L=Fn(A),x=j_(A,L);Ui(L,function(it){if(IC.test(it))throw new ht(o)});var V,H,fe=0,pe=c.interpolate||lN,ye="__p += '",be=K_((c.escape||lN).source+"|"+pe.source+"|"+(pe===gC?DZ:lN).source+"|"+(c.evaluate||lN).source+"|$","g"),ze="//# sourceURL="+(or.call(c,"sourceURL")?(c.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ree+"]")+` +`;s.replace(be,function(it,Lt,Mt,Mi,ii,ji){return Mt||(Mt=Mi),ye+=s.slice(fe,ji).replace(LZ,vee),Lt&&(V=!0,ye+=`' + +__e(`+Lt+`) + +'`),ii&&(H=!0,ye+=`'; +`+ii+`; +__p += '`),Mt&&(ye+=`' + +((__t = (`+Mt+`)) == null ? '' : __t) + +'`),fe=ji+it.length,it}),ye+=`'; +`;var ct=or.call(c,"variable")&&c.variable;if(!ct)ye=`with (obj) { +`+ye+` } -`;else if(OA.test(nt))throw new lt(a);Te=(z?Te.replace(on,""):Te).replace(_K,"$1").replace(vK,"$1;"),Te="function("+(nt||"obj")+`) { -`+(nt?"":`obj || (obj = {}); -`)+"var __t, __p = ''"+(j?", __e = _.escape":"")+(z?`, __j = Array.prototype.join; +`;else if(IC.test(ct))throw new ht(a);ye=(H?ye.replace(dr,""):ye).replace(lZ,"$1").replace(dZ,"$1;"),ye="function("+(ct||"obj")+`) { +`+(ct?"":`obj || (obj = {}); +`)+"var __t, __p = ''"+(V?", __e = _.escape":"")+(H?`, __j = Array.prototype.join; function print() { __p += __j.call(arguments, '') } `:`; -`)+Te+`return __p -}`;var gt=HR(function(){return Wt(L,Ge+"return "+Te).apply(e,x)});if(gt.source=Te,Vy(gt))throw gt;return gt}function az(s){return tn(s).toLowerCase()}function sz(s){return tn(s).toUpperCase()}function oz(s,c,f){if(s=tn(s),s&&(f||c===e))return i0(s);if(!s||!(c=Ti(c)))return s;var y=ua(s),S=ua(c),L=a0(y,S),x=s0(y,S)+1;return fu(y,L,x).join("")}function uz(s,c,f){if(s=tn(s),s&&(f||c===e))return s.slice(0,u0(s)+1);if(!s||!(c=Ti(c)))return s;var y=ua(s),S=s0(y,ua(c))+1;return fu(y,0,S).join("")}function cz(s,c,f){if(s=tn(s),s&&(f||c===e))return s.replace(Vh,"");if(!s||!(c=Ti(c)))return s;var y=ua(s),S=a0(y,ua(c));return fu(y,S).join("")}function lz(s,c){var f=Z,y=ge;if(bn(c)){var S="separator"in c?c.separator:S;f="length"in c?ht(c.length):f,y="omission"in c?Ti(c.omission):y}s=tn(s);var L=s.length;if(sl(s)){var x=ua(s);L=x.length}if(f>=L)return s;var j=f-ol(y);if(j<1)return y;var z=x?fu(x,0,j).join(""):s.slice(0,j);if(S===e)return z+y;if(x&&(j+=z.length-j),jy(S)){if(s.slice(j).search(S)){var de,fe=z;for(S.global||(S=iy(S.source,tn(DA.exec(S))+"g")),S.lastIndex=0;de=S.exec(fe);)var Te=de.index;z=z.slice(0,Te===e?j:Te)}}else if(s.indexOf(Ti(S),j)!=j){var Ae=z.lastIndexOf(S);Ae>-1&&(z=z.slice(0,Ae))}return z+y}function dz(s){return s=tn(s),s&&SK.test(s)?s.replace(_A,V$):s}var fz=pl(function(s,c,f){return s+(f?" ":"")+c.toUpperCase()}),Qy=H0("toUpperCase");function zR(s,c,f){return s=tn(s),c=f?e:c,c===e?B$(s)?$$(s):b$(s):s.match(c)||[]}var HR=Ot(function(s,c){try{return pi(s,e,c)}catch(f){return Vy(f)?f:new lt(f)}}),pz=hs(function(s,c){return mi(c,function(f){f=la(f),xa(s,f,xy(s[f],s))}),s});function mz(s){var c=s==null?0:s.length,f=tt();return s=c?vn(s,function(y){if(typeof y[1]!="function")throw new Ri(i);return[f(y[0]),y[1]]}):[],Ot(function(y){for(var S=-1;++Swn)return[];var f=vt,y=Pr(s,vt);c=tt(c),s-=vt;for(var S=ty(y,c);++f0||c<0)?new Pt(f):(s<0?f=f.takeRight(-s):s&&(f=f.drop(s)),c!==e&&(c=ht(c),f=c<0?f.dropRight(-c):f.take(c-s)),f)},Pt.prototype.takeRightWhile=function(s){return this.reverse().takeWhile(s).reverse()},Pt.prototype.toArray=function(){return this.take(vt)},qa(Pt.prototype,function(s,c){var f=/^(?:filter|find|map|reject)|While$/.test(c),y=/^(?:head|last)$/.test(c),S=w[y?"take"+(c=="last"?"Right":""):c],L=y||/^find/.test(c);S&&(w.prototype[c]=function(){var x=this.__wrapped__,j=y?[1]:arguments,z=x instanceof Pt,de=j[0],fe=z||ft(x),Te=function(At){var Ct=S.apply(w,au([At],j));return y&&Ae?Ct[0]:Ct};fe&&f&&typeof de=="function"&&de.length!=1&&(z=fe=!1);var Ae=this.__chain__,Ge=!!this.__actions__.length,nt=L&&!Ae,gt=z&&!Ge;if(!L&&fe){x=gt?x:new Pt(this);var Ze=s.apply(x,j);return Ze.__actions__.push({func:xm,args:[Te],thisArg:e}),new Pi(Ze,Ae)}return nt&>?s.apply(this,j):(Ze=this.thru(Te),nt?y?Ze.value()[0]:Ze.value():Ze)})}),mi(["pop","push","shift","sort","splice","unshift"],function(s){var c=dm[s],f=/^(?:push|sort|unshift)$/.test(s)?"tap":"thru",y=/^(?:pop|shift)$/.test(s);w.prototype[s]=function(){var S=arguments;if(y&&!this.__chain__){var L=this.value();return c.apply(ft(L)?L:[],S)}return this[f](function(x){return c.apply(ft(x)?x:[],S)})}}),qa(Pt.prototype,function(s,c){var f=w[c];if(f){var y=f.name+"";en.call(ll,y)||(ll[y]=[]),ll[y].push({name:c,func:f})}}),ll[wm(e,q).name]=[{name:"wrapper",func:e}],Pt.prototype.clone=fG,Pt.prototype.reverse=pG,Pt.prototype.value=mG,w.prototype.at=KY,w.prototype.chain=$Y,w.prototype.commit=GY,w.prototype.next=QY,w.prototype.plant=JY,w.prototype.reverse=zY,w.prototype.toJSON=w.prototype.valueOf=w.prototype.value=HY,w.prototype.first=w.prototype.head,wd&&(w.prototype[wd]=YY),w},ou=G$();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(mr._=ou,define(function(){return ou})):$u?(($u.exports=ou)._=ou,Yh._=ou):mr._=ou}).call(hd)});var MV=F(Qc=>{"use strict";m();T();N();Object.defineProperty(Qc,"__esModule",{value:!0});Qc.FederationFactory=void 0;Qc.federateSubgraphs=ipe;Qc.federateSubgraphsWithContracts=ape;Qc.federateSubgraphsContract=spe;var Pe=Se(),CV=Du(),zr=Br(),Fe=Yi(),$c=_T(),Gc=dd(),Hr=Ip(),ch=yE(),Rp=bu(),epe=Eb(),tpe=gp(),UV=Qf(),Oe=$l(),npe=Ib(),BV=LV(),yd=uh(),De=Xn(),lh=ql(),Ne=kr(),rpe=_p(),ku=Yf(),fh,kV,dh=class{constructor({authorizationDataByParentTypeName:t,concreteTypeNamesByAbstractTypeName:n,entityDataByTypeName:r,entityInterfaceFederationDataByTypeName:i,fieldCoordsByNamedTypeName:a,interfaceImplementationTypeNamesByInterfaceTypeName:o,internalGraph:u,internalSubgraphBySubgraphName:l,options:d,warnings:p}){ec(this,fh);g(this,"authorizationDataByParentTypeName");g(this,"coordsByNamedTypeName",new Map);g(this,"directiveDefinitionByName",new Map);g(this,"clientDefinitions",[]);g(this,"currentSubgraphName","");g(this,"concreteTypeNamesByAbstractTypeName");g(this,"subgraphNamesByNamedTypeNameByFieldCoords",new Map);g(this,"entityDataByTypeName");g(this,"entityInterfaceFederationDataByTypeName");g(this,"errors",[]);g(this,"fieldConfigurationByFieldCoords",new Map);g(this,"fieldCoordsByNamedTypeName");g(this,"inaccessibleCoords",new Set);g(this,"inaccessibleRequiredInputValueErrorByCoords",new Map);g(this,"interfaceImplementationTypeNamesByInterfaceTypeName");g(this,"internalGraph");g(this,"internalSubgraphBySubgraphName");g(this,"invalidORScopesCoords",new Set);g(this,"isMaxDepth",!1);g(this,"isVersionTwo",!1);g(this,"namedInputValueTypeNames",new Set);g(this,"namedOutputTypeNames",new Set);g(this,"options");g(this,"parentDefinitionDataByTypeName",new Map);g(this,"parentTagDataByTypeName",new Map);g(this,"persistedDirectiveDefinitionByDirectiveName",new Map([[De.AUTHENTICATED,ku.AUTHENTICATED_DEFINITION],[De.DEPRECATED,ku.DEPRECATED_DEFINITION],[De.INACCESSIBLE,ku.INACCESSIBLE_DEFINITION],[De.ONE_OF,ku.ONE_OF_DEFINITION],[De.REQUIRES_SCOPES,ku.REQUIRES_SCOPES_DEFINITION],[De.SEMANTIC_NON_NULL,ku.SEMANTIC_NON_NULL_DEFINITION],[De.TAG,ku.TAG_DEFINITION]]));g(this,"potentialPersistedDirectiveDefinitionDataByDirectiveName",new Map);g(this,"referencedPersistedDirectiveNames",new Set);g(this,"routerDefinitions",[]);g(this,"subscriptionFilterDataByFieldPath",new Map);g(this,"tagNamesByCoords",new Map);g(this,"warnings");this.authorizationDataByParentTypeName=t,this.options=d!=null?d:{},this.concreteTypeNamesByAbstractTypeName=n,this.entityDataByTypeName=r,this.entityInterfaceFederationDataByTypeName=i,this.fieldCoordsByNamedTypeName=a,this.interfaceImplementationTypeNamesByInterfaceTypeName=o,this.internalGraph=u,this.internalSubgraphBySubgraphName=l,this.warnings=p}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,Oe.upsertDeprecatedDirective)(t,i[0]);break}case De.TAG:{(0,Oe.upsertTagDirectives)(t,i);break}default:{let o=t.directivesByName.get(r);if(!o){t.directivesByName.set(r,[...i]);break}if(De.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,Oe.isNodeDataInaccessible)(t),i=new Map,a=new Map;for(let u of t.implementedInterfaceTypeNames){n.push((0,zr.stringToNamedTypeNode)(u));let l=(0,Ne.getOrThrowError)(this.parentDefinitionDataByTypeName,u,De.PARENT_DEFINITION_DATA);if(l.kind!==Pe.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,h]of l.fieldDataByName){let v=!1,R=t.fieldDataByName.get(E);if(!R){p=!0,d.unimplementedFields.push(E);continue}let U={invalidAdditionalArguments:new Set,invalidImplementedArguments:[],isInaccessible:!1,originalResponseType:(0,ch.printTypeNode)(h.node.type),unimplementedArguments:new Set};(0,Oe.isTypeValidImplementation)({concreteTypeNamesByAbstractTypeName:this.concreteTypeNamesByAbstractTypeName,implementationType:R.node.type,interfaceImplementationTypeNamesByInterfaceTypeName:this.interfaceImplementationTypeNamesByInterfaceTypeName,originalType:h.node.type})||(p=!0,v=!0,U.implementedResponseType=(0,ch.printTypeNode)(R.node.type));let q=new Set;for(let[X,te]of h.argumentDataByName){let ae=te.node;q.add(X);let me=(o=R.argumentDataByName.get(X))==null?void 0:o.node;if(!me){p=!0,v=!0,U.unimplementedArguments.add(X);continue}let ye=(0,ch.printTypeNode)(me.type),_e=(0,ch.printTypeNode)(ae.type);_e!==ye&&(p=!0,v=!0,U.invalidImplementedArguments.push({actualType:ye,argumentName:X,expectedType:_e}))}for(let[X,te]of R.argumentDataByName){let ae=te.node;q.has(X)||ae.type.kind===Pe.Kind.NON_NULL_TYPE&&(p=!0,v=!0,U.invalidAdditionalArguments.add(X))}!r&&R.isInaccessible&&!h.isInaccessible&&(p=!0,v=!0,U.isInaccessible=!0),v&&d.invalidFieldImplementations.set(E,U)}p&&i.set(u,d)}return a.size>0&&this.errors.push((0,Fe.invalidImplementedTypeError)(t.name,a)),i.size>0&&this.errors.push((0,Fe.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!==Pe.Kind.OBJECT_TYPE_DEFINITION)throw(0,Fe.incompatibleParentKindFatalError)(n.typeName,Pe.Kind.OBJECT_TYPE_DEFINITION,(a==null?void 0:a.kind)||Pe.Kind.NULL);let o=r.configurationDataByTypeName.get(n.typeName);if(!o)return;let u=[],l=this.internalGraph.nodeByNodeName.get(`${this.currentSubgraphName}.${n.typeName}`);(0,$c.validateImplicitFieldSets)({conditionalFieldDataByCoords:r.conditionalFieldDataByCoordinates,currentSubgraphName:this.currentSubgraphName,entityData:n,implicitKeys:u,objectData:a,parentDefinitionDataByTypeName:i,graphNode:l});for(let[E,h]of this.entityInterfaceFederationDataByTypeName){if(!((p=h.concreteTypeNames)!=null&&p.has(n.typeName)))continue;let v=this.entityDataByTypeName.get(E);v&&(0,$c.validateImplicitFieldSets)({conditionalFieldDataByCoords:r.conditionalFieldDataByCoordinates,currentSubgraphName:this.currentSubgraphName,entityData:v,implicitKeys:u,objectData:a,parentDefinitionDataByTypeName:i,graphNode:l})}if(u.length<1)return;if(!o.keys||o.keys.length<1){o.isRootNode=!0,o.keys=u;return}let d=new Set(o.keys.map(E=>E.selectionSet));for(let E of u)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,Oe.isParentDataCompositeOutputType)(o))throw(0,Fe.incompatibleParentKindFatalError)(n,Pe.Kind.INTERFACE_TYPE_DEFINITION,(o==null?void 0:o.kind)||Pe.Kind.NULL);let u=(0,Ne.getOrThrowError)(t.configurationDataByTypeName,r.typeName,"internalSubgraph.configurationDataByTypeName"),l=[];if((0,$c.validateImplicitFieldSets)({conditionalFieldDataByCoords:t.conditionalFieldDataByCoordinates,currentSubgraphName:t.name,entityData:r,implicitKeys:l,objectData:o,parentDefinitionDataByTypeName:a,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(p=>p.selectionSet));for(let p of l)d.has(p.selectionSet)||(u.keys.push(p),d.add(p.selectionSet))}getEnumValueMergeMethod(t){return this.namedInputValueTypeNames.has(t)?this.namedOutputTypeNames.has(t)?Oe.MergeMethod.CONSISTENT:Oe.MergeMethod.INTERSECTION:Oe.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,Ne.getValueOrDefault)(this.parentTagDataByTypeName,r[0],()=>(0,$c.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,$c.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,$c.newChildTagData)(r[1])),u=(0,Ne.getValueOrDefault)(o.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),a=i||this.copyEnumValueData(n);this.extractPersistedDirectives({data:a.persistedDirectivesData,directivesByName:n.directivesByName});let o=(0,Oe.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,Oe.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,Oe.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 u=(0,yd.getMostRestrictiveMergedTypeNode)(o.type,n.type,o.originalCoords,this.errors);u.success?o.type=u.typeNode:this.errors.push((0,Fe.incompatibleMergedTypesError)({actualType:u.actualType,isArgument:a.isArgument,coords:a.federatedCoords,expectedType:u.expectedType})),(0,Oe.compareAndValidateInputValueDefaultValues)(o,n,this.errors)}handleInputValueInaccessibility(t,n,r){if(t){this.inaccessibleRequiredInputValueErrorByCoords.delete(n.federatedCoords),this.inaccessibleCoords.add(n.federatedCoords);return}if((0,Oe.isNodeDataInaccessible)(n)){if((0,Oe.isTypeRequired)(n.type)){this.inaccessibleRequiredInputValueErrorByCoords.set(n.federatedCoords,(0,Fe.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,Ne.getFirstEntry)(t.subgraphNames);if(i===void 0){this.errors.push((0,Fe.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,CV.getMutableTypeNode)(n,r,this.errors);let a={kind:t.kind},o=yd.DivergentType.NONE,u=a;for(let l=0;lnew Set)})}upsertFieldData(t,n,r){let i=t.get(n.name),a=i||this.copyFieldData(n,r||(0,Oe.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,Oe.isNodeDataInaccessible)(a);if(o&&this.inaccessibleCoords.add(a.federatedCoords),this.recordTagNamesByCoords(a,a.federatedCoords),!i){t.set(a.name,a);return}let u=this.federateOutputType({current:a.type,other:n.type,coords:a.federatedCoords,mostRestrictive:!1});if(u.success)if(a.type=u.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,Oe.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,Oe.newPersistedDirectivesData)(),directivesByName:t.directivesByName}),description:(0,Oe.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,zr.stringToNameNode)(t.name)},parentTypeName:t.parentTypeName,persistedDirectivesData:this.extractPersistedDirectives({data:(0,Oe.newPersistedDirectivesData)(),directivesByName:t.directivesByName}),subgraphNames:new Set(t.subgraphNames),description:(0,Oe.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:Pe.Kind.INPUT_VALUE_DEFINITION,name:(0,zr.stringToNameNode)(t.name),type:t.type},originalCoords:t.originalCoords,originalParentTypeName:t.originalParentTypeName,persistedDirectivesData:this.extractPersistedDirectives({data:(0,Oe.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,Oe.getInitialFederatedDescription)(t)}}copyInputValueDataByValueName(t,n,r){let i=new Map;for(let[a,o]of t){let u=this.copyInputValueData(o);this.handleInputValueInaccessibility(n,u,r),(0,Ne.getValueOrDefault)(this.coordsByNamedTypeName,u.namedTypeName,()=>new Set).add(u.federatedCoords),this.namedInputValueTypeNames.add(u.namedTypeName),this.recordTagNamesByCoords(u,`${r}.${o.name}`),i.set(a,u)}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,zr.stringToNameNode)(t.name),type:t.type},nullLevelsBySubgraphName:t.nullLevelsBySubgraphName,originalParentTypeName:t.originalParentTypeName,persistedDirectivesData:this.extractPersistedDirectives({data:(0,Oe.newPersistedDirectivesData)(),directivesByName:t.directivesByName}),renamedParentTypeName:t.renamedParentTypeName,subgraphNames:new Set(t.subgraphNames),type:t.type,description:(0,Oe.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,Oe.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,Oe.isNodeDataInaccessible)(a),u=this.copyFieldData(a,o);this.handleSubscriptionFilterDirective(u),(0,Ne.getValueOrDefault)(this.coordsByNamedTypeName,u.namedTypeName,()=>new Set).add(u.federatedCoords),this.namedOutputTypeNames.add(u.namedTypeName),this.recordTagNamesByCoords(u,u.federatedCoords),o&&this.inaccessibleCoords.add(u.federatedCoords),r.set(i,u)}return r}copyParentDefinitionData(t){let n=this.copyMutualParentDefinitionData(t);switch(t.kind){case Pe.Kind.ENUM_TYPE_DEFINITION:return G(M({},n),{appearances:t.appearances,enumValueDataByName:this.copyEnumValueDataByName(t.enumValueDataByName,t.isInaccessible),isInaccessible:t.isInaccessible,kind:t.kind,node:{kind:t.kind,name:(0,zr.stringToNameNode)(t.name)},subgraphNames:new Set(t.subgraphNames)});case Pe.Kind.INPUT_OBJECT_TYPE_DEFINITION:return G(M({},n),{inputValueDataByName:this.copyInputValueDataByValueName(t.inputValueDataByName,t.isInaccessible,t.name),isInaccessible:t.isInaccessible,kind:t.kind,node:{kind:t.kind,name:(0,zr.stringToNameNode)(t.name)},subgraphNames:new Set(t.subgraphNames)});case Pe.Kind.INTERFACE_TYPE_DEFINITION:return G(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,zr.stringToNameNode)(t.name)},requireFetchReasonsFieldNames:new Set,subgraphNames:new Set(t.subgraphNames)});case Pe.Kind.OBJECT_TYPE_DEFINITION:return G(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,zr.stringToNameNode)(t.renamedTypeName||t.name)},requireFetchReasonsFieldNames:new Set,renamedTypeName:t.renamedTypeName,subgraphNames:new Set(t.subgraphNames)});case Pe.Kind.SCALAR_TYPE_DEFINITION:return G(M({},n),{kind:t.kind,node:{kind:t.kind,name:(0,zr.stringToNameNode)(t.name)},subgraphNames:new Set(t.subgraphNames)});case Pe.Kind.UNION_TYPE_DEFINITION:return G(M({},n),{kind:t.kind,node:{kind:t.kind,name:(0,zr.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,Oe.isParentDataRootType)(r)&&(r.extensionType=UV.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,Oe.isNodeDataInaccessible)(a);if(o&&this.inaccessibleCoords.add(a.name),r&&r.interfaceObjectSubgraphNames.has(n)){if(i&&i.kind!==Pe.Kind.INTERFACE_TYPE_DEFINITION){this.errors.push((0,Fe.incompatibleParentTypeMergeError)({existingData:i,incomingSubgraphName:n}));return}a.kind=Pe.Kind.INTERFACE_TYPE_DEFINITION,a.node.kind=Pe.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!==Pe.Kind.INTERFACE_TYPE_DEFINITION||t.kind!==Pe.Kind.OBJECT_TYPE_DEFINITION)){this.errors.push((0,Fe.incompatibleParentTypeMergeError)({existingData:a,incomingNodeType:(0,Ne.kindToNodeType)(t.kind),incomingSubgraphName:n}));return}switch((0,Ne.addNewObjectValueMapEntries)(t.configureDescriptionDataBySubgraphName,a.configureDescriptionDataBySubgraphName),(0,Oe.setLongestDescription)(a,t),(0,Oe.setParentDataExtensionType)(a,t),a.kind){case Pe.Kind.ENUM_TYPE_DEFINITION:if(!(0,Oe.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 Pe.Kind.INPUT_OBJECT_TYPE_DEFINITION:if(!(0,Oe.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 Pe.Kind.INTERFACE_TYPE_DEFINITION:case Pe.Kind.OBJECT_TYPE_DEFINITION:let u=t;o&&!a.isInaccessible&&this.propagateInaccessibilityToExistingChildren(a),a.isInaccessible||(a.isInaccessible=o),(0,Ne.addIterableToSet)({source:u.implementedInterfaceTypeNames,target:a.implementedInterfaceTypeNames}),(0,Ne.addIterableToSet)({source:u.subgraphNames,target:a.subgraphNames});for(let l of u.fieldDataByName.values())this.upsertFieldData(a.fieldDataByName,l,a.isInaccessible);return;case Pe.Kind.UNION_TYPE_DEFINITION:if(!(0,Oe.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 Pe.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,Oe.setMutualExecutableLocations)(i,t.executableLocations),i.executableLocations.size<1){this.potentialPersistedDirectiveDefinitionDataByDirectiveName.delete(r);return}for(let a of t.argumentDataByName.values())this.namedInputValueTypeNames.add((0,CV.getTypeNodeNamedTypeName)(a.type)),this.upsertInputValueData(i.argumentDataByName,a,`@${i.name}`,!1);(0,Oe.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,Fe.incompatibleFederatedFieldNamedTypeError)(t,n));continue}break}case Pe.Kind.UNION_TYPE_DEFINITION:{if(l){this.errors.push((0,Fe.incompatibleFederatedFieldNamedTypeError)(t,n));continue}l=p;break}default:{this.errors.push((0,Fe.incompatibleFederatedFieldNamedTypeError)(t,n));break}}}if(o.size<1&&!l){this.errors.push((0,Fe.incompatibleFederatedFieldNamedTypeError)(t,n));continue}let d=l;if(o.size>0){if(l){this.errors.push((0,Fe.incompatibleFederatedFieldNamedTypeError)(t,n));continue}for(let p of o.keys()){d=p;for(let[E,h]of o)if(p!==E&&!h.implementedInterfaceTypeNames.has(p)){d="";break}if(d)break}}if(!this.shouldUpdateFederatedFieldAbstractNamedType(d,u)){this.errors.push((0,Fe.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,npe.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 u=this.internalGraph.addOrUpdateNode(t.typeName),l=this.internalGraph.addEntityDataNode(t.typeName);for(let p of i.satisfiedFieldSets)u.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(u,this.internalGraph.addOrUpdateNode(E),p);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,Ne.getOrThrowError)(this.parentDefinitionDataByTypeName,n,De.PARENT_DEFINITION_DATA);if(i.kind===Pe.Kind.INTERFACE_TYPE_DEFINITION)for(let a of r.interfaceObjectSubgraphNames){let o=(0,Ne.getOrThrowError)(this.internalSubgraphBySubgraphName,a,"internalSubgraphBySubgraphName"),u=o.configurationDataByTypeName,l=this.concreteTypeNamesByAbstractTypeName.get(n);if(!l)continue;let d=(0,Ne.getOrThrowError)(u,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 h of l){let v=(0,Ne.getOrThrowError)(this.parentDefinitionDataByTypeName,h,De.PARENT_DEFINITION_DATA);if(!(0,Hr.isObjectDefinitionData)(v))continue;let R=(0,Ne.getOrThrowError)(this.entityDataByTypeName,h,"entityDataByTypeName");R.subgraphNames.add(a);let U=u.get(h);if(U)if((0,Ne.addIterableToSet)({source:d.fieldNames,target:U.fieldNames}),!U.keys)U.keys=[...p];else e:for(let ae of p){for(let{selectionSet:me}of U.keys)if(ae.selectionSet===me)continue e;U.keys.push(ae)}else u.set(h,{fieldNames:new Set(d.fieldNames),isRootNode:!0,keys:[...p],typeName:h});let q=new Set;for(let ae of p.filter(me=>!me.disableEntityResolver))q.add(ae.selectionSet);let X=this.authorizationDataByParentTypeName.get(n),te=(0,Ne.getOrThrowError)(o.parentDefinitionDataByTypeName,n,"internalSubgraph.parentDefinitionDataByTypeName");if((0,Hr.isObjectDefinitionData)(te)){for(let[ae,me]of te.fieldDataByName){let ye=`${h}.${ae}`;(0,Ne.getValueOrDefault)(this.fieldCoordsByNamedTypeName,me.namedTypeName,()=>new Set).add(ye);let _e=X==null?void 0:X.fieldAuthDataByFieldName.get(ae);if(_e){let Z=(0,Ne.getValueOrDefault)(this.authorizationDataByParentTypeName,h,()=>(0,Hr.newAuthorizationData)(h));(0,Hr.upsertFieldAuthorizationData)(Z.fieldAuthDataByFieldName,_e)||this.invalidORScopesCoords.add(ye)}let Ee=v.fieldDataByName.get(ae);if(Ee){let Z=(t=me.isShareableBySubgraphName.get(a))!=null?t:!1;Ee.isShareableBySubgraphName.set(a,Z),Ee.subgraphNames.add(a);let ge=me.externalFieldDataBySubgraphName.get(a);if(!ge)continue;Ee.externalFieldDataBySubgraphName.set(a,M({},ge));continue}let Be=i.isInaccessible||v.isInaccessible||me.isInaccessible;v.fieldDataByName.set(ae,this.copyFieldData(me,Be))}this.handleInterfaceObjectForInternalGraph({internalSubgraph:o,subgraphName:a,interfaceObjectData:r,interfaceObjectNode:E,resolvableKeyFieldSets:q,entityData:R})}}}}}fieldDataToGraphFieldData(t){var n;return{externalSubgraphNames:new Set,name:t.name,namedTypeName:t.namedTypeName,isLeaf:(0,Hr.isNodeLeaf)((n=this.parentDefinitionDataByTypeName.get(t.namedTypeName))==null?void 0:n.kind),subgraphNames:t.subgraphNames}}getValidFlattenedPersistedDirectiveNodeArray(t){var i;let n=(0,Hr.getNodeCoords)(t),r=[];for(let[a,o]of t.persistedDirectivesData.directivesByName){if(a===De.SEMANTIC_NON_NULL&&(0,Oe.isFieldData)(t)){r.push((0,Ne.generateSemanticNonNullDirective)((i=(0,Ne.getFirstEntry)(t.nullLevelsBySubgraphName))!=null?i:new Set([0])));continue}let u=this.persistedDirectiveDefinitionByDirectiveName.get(a);if(u){if(o.length<2){r.push(...o);continue}if(!u.repeatable){this.errors.push((0,Fe.invalidRepeatedFederatedDirectiveErrorMessage)(a,n));continue}r.push(...o)}}return r}getRouterPersistedDirectiveNodes(t){let n=[...t.persistedDirectivesData.tagDirectiveByName.values()];return t.persistedDirectivesData.isDeprecated&&n.push((0,Oe.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,$c.getDescriptionFromString)(r);if(n.length<1)return t.description;this.errors.push((0,Fe.configureDescriptionPropagationError)((0,Oe.getDefinitionDataCoords)(t,!0),n))}getNodeForRouterSchemaByData(t){return t.node.name=(0,zr.stringToNameNode)(t.name),t.node.description=this.getFederatedGraphNodeDescription(t),t.node.directives=this.getRouterPersistedDirectiveNodes(t),t.node}getNodeWithPersistedDirectivesByInputValueData(t){return t.node.name=(0,zr.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,u]of t.argumentDataByName)t.subgraphNames.size===u.subgraphNames.size?(r.push(o),n.push(this.getNodeWithPersistedDirectivesByInputValueData(u))):(0,Oe.isTypeRequired)(u.type)&&i.push({inputValueName:o,missingSubgraphs:(0,Ne.getEntriesNotInHashSet)(t.subgraphNames,u.subgraphNames),requiredSubgraphs:[...u.requiredSubgraphNames]});return i.length>0?this.errors.push((0,Fe.invalidRequiredInputValueError)(De.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,zr.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,Fe.semanticNonNullInconsistentLevelsError)(t));return}for(let i of r)if(!n.has(i)){this.errors.push((0,Fe.semanticNonNullInconsistentLevelsError)(t));return}}}validateOneOfDirective({data:t,inputValueNodes:n,requiredFieldNames:r}){return t.directivesByName.has(De.ONE_OF)?r.size>0?(this.errors.push((0,Fe.oneOfRequiredFieldsError)({requiredFieldNames:Array.from(r),typeName:t.name})),!1):(n.length===1&&this.warnings.push((0,rpe.singleFederatedInputFieldOneOfWarning)({fieldName:n[0].name.value,typeName:t.name})),!0):!0}pushParentDefinitionDataToDocumentDefinitions(t){for(let[n,r]of this.parentDefinitionDataByTypeName)switch(r.extensionType!==UV.ExtensionType.NONE&&this.errors.push((0,Fe.noBaseDefinitionForExtensionError)((0,Ne.kindToNodeType)(r.kind),n)),r.kind){case Pe.Kind.ENUM_TYPE_DEFINITION:{if(Gc.IGNORED_FEDERATED_TYPE_NAMES.has(n))break;let i=[],a=[],o=this.getEnumValueMergeMethod(n);(0,Oe.propagateAuthDirectives)(r,this.authorizationDataByParentTypeName.get(n));for(let u of r.enumValueDataByName.values()){let l=this.getNodeForRouterSchemaByData(u),d=(0,Oe.isNodeDataInaccessible)(u),p=G(M({},u.node),{directives:(0,Oe.getClientPersistedDirectiveNodes)(u)});switch(o){case Oe.MergeMethod.CONSISTENT:!d&&r.appearances>u.appearances&&this.errors.push((0,Fe.incompatibleSharedEnumError)(n)),i.push(l),d||a.push(p);break;case Oe.MergeMethod.INTERSECTION:r.appearances===u.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,Oe.isNodeDataInaccessible)(r)){this.validateReferencesOfInaccessibleType(r),this.internalGraph.setNodeInaccessible(r.name);break}if(a.length<1){this.errors.push((0,Fe.allChildDefinitionsAreInaccessibleError)((0,Ne.kindToNodeType)(r.kind),n,De.ENUM_VALUE));break}this.clientDefinitions.push(G(M({},r.node),{directives:(0,Oe.getClientPersistedDirectiveNodes)(r),values:a}));break}case Pe.Kind.INPUT_OBJECT_TYPE_DEFINITION:{if(Gc.IGNORED_FEDERATED_TYPE_NAMES.has(n))break;let i=new Array,a=new Array,o=new Array,u=new Set;for(let[l,d]of r.inputValueDataByName)if((0,Oe.isTypeRequired)(d.type)&&u.add(l),r.subgraphNames.size===d.subgraphNames.size){if(a.push(this.getNodeWithPersistedDirectivesByInputValueData(d)),(0,Oe.isNodeDataInaccessible)(d))continue;o.push(G(M({},d.node),{directives:(0,Oe.getClientPersistedDirectiveNodes)(d)}))}else(0,Oe.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,Fe.invalidRequiredInputValueError)(De.INPUT_OBJECT,n,i,!1));break}if(!this.validateOneOfDirective({data:r,inputValueNodes:a,requiredFieldNames:u}))break;if(r.node.fields=a,this.routerDefinitions.push(this.getNodeForRouterSchemaByData(r)),(0,Oe.isNodeDataInaccessible)(r)){this.validateReferencesOfInaccessibleType(r);break}if(o.length<1){this.errors.push((0,Fe.allChildDefinitionsAreInaccessibleError)((0,Ne.kindToNodeType)(r.kind),n,"Input field"));break}this.clientDefinitions.push(G(M({},r.node),{directives:(0,Oe.getClientPersistedDirectiveNodes)(r),fields:o}));break}case Pe.Kind.INTERFACE_TYPE_DEFINITION:case Pe.Kind.OBJECT_TYPE_DEFINITION:{let i=[],a=[],o=new Map,u=(0,Oe.newInvalidFieldNames)(),l=r.kind===Pe.Kind.OBJECT_TYPE_DEFINITION,d=this.authorizationDataByParentTypeName.get(n);(0,Oe.propagateAuthDirectives)(r,d);for(let[E,h]of r.fieldDataByName){(0,Oe.propagateFieldAuthDirectives)(h,d);let v=this.getValidFieldArgumentNodes(h);l&&(0,Oe.validateExternalAndShareable)(h,u),this.validateSemanticNonNull(h),i.push(this.getNodeWithPersistedDirectivesByFieldData(h,v)),!(0,Oe.isNodeDataInaccessible)(h)&&(a.push((0,Oe.getClientSchemaFieldNodeByFieldData)(h)),o.set(E,this.fieldDataToGraphFieldData(h)))}if(l&&(u.byShareable.size>0&&this.errors.push((0,Fe.invalidFieldShareabilityError)(r,u.byShareable)),u.subgraphNamesByExternalFieldName.size>0&&this.errors.push((0,Fe.allExternalFieldInstancesError)(n,u.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,tpe.isNodeQuery)(n);if((0,Oe.isNodeDataInaccessible)(r)){if(p){this.errors.push(Fe.inaccessibleQueryRootTypeError);break}this.validateReferencesOfInaccessibleType(r),this.internalGraph.setNodeInaccessible(r.name);break}if(a.length<1){let E=p?(0,Fe.noQueryRootTypeError)(!1):(0,Fe.allChildDefinitionsAreInaccessibleError)((0,Ne.kindToNodeType)(r.kind),n,De.FIELD);this.errors.push(E);break}this.clientDefinitions.push(G(M({},r.node),{directives:(0,Oe.getClientPersistedDirectiveNodes)(r),fields:a}));break}case Pe.Kind.SCALAR_TYPE_DEFINITION:{if(Gc.IGNORED_FEDERATED_TYPE_NAMES.has(n))break;if((0,Oe.propagateAuthDirectives)(r,this.authorizationDataByParentTypeName.get(n)),this.routerDefinitions.push(this.getNodeForRouterSchemaByData(r)),(0,Oe.isNodeDataInaccessible)(r)){this.validateReferencesOfInaccessibleType(r),this.internalGraph.setNodeInaccessible(r.name);break}this.clientDefinitions.push(G(M({},r.node),{directives:(0,Oe.getClientPersistedDirectiveNodes)(r)}));break}case Pe.Kind.UNION_TYPE_DEFINITION:{if(r.node.types=(0,Hr.mapToArrayOfValues)(r.memberByMemberTypeName),this.routerDefinitions.push(this.getNodeForRouterSchemaByData(r)),(0,Oe.isNodeDataInaccessible)(r)){this.validateReferencesOfInaccessibleType(r),this.internalGraph.setNodeInaccessible(r.name);break}let i=this.getClientSchemaUnionMembers(r);if(i.length<1){this.errors.push((0,Fe.allChildDefinitionsAreInaccessibleError)(De.UNION,n,"union member type"));break}this.clientDefinitions.push(G(M({},r.node),{directives:(0,Oe.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(De.LITERAL_PERIOD);switch(o.length){case 2:{let u=(0,Ne.getValueOrDefault)(this.authorizationDataByParentTypeName,o[0],()=>(0,Hr.newAuthorizationData)(o[0])),l=(0,Ne.getValueOrDefault)(u.fieldAuthDataByFieldName,o[1],()=>(0,Hr.newFieldAuthorizationData)(o[1]));(t=l.inheritedData).requiresAuthentication||(t.requiresAuthentication=r.requiresAuthentication),l.inheritedData.requiredScopes.length*r.requiredScopes.length>Rp.MAX_OR_SCOPES?this.invalidORScopesCoords.add(a):(l.inheritedData.requiredScopesByOR=(0,Hr.mergeRequiredScopesByAND)(l.inheritedData.requiredScopesByOR,r.requiredScopesByOR),l.inheritedData.requiredScopes=(0,Hr.mergeRequiredScopesByAND)(l.inheritedData.requiredScopes,r.requiredScopes));break}default:break}}}}federateSubgraphData(){this.federateInternalSubgraphData(),this.handleEntityInterfaces(),this.generateTagData(),El(this,fh,kV).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,Oe.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,zr.stringToNamedTypeNode)(a));this.clientDefinitions.push(G(M({},n.node),{directives:(0,Oe.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 a=0;a0&&this.errors.push((0,Fe.invalidReferencesOfInaccessibleTypeError)((0,Ne.kindToNodeType)(t.kind),t.name,r))}validateQueryRootType(){let t=this.parentDefinitionDataByTypeName.get(De.QUERY);if(!t||t.kind!==Pe.Kind.OBJECT_TYPE_DEFINITION||t.fieldDataByName.size<1){this.errors.push((0,Fe.noQueryRootTypeError)());return}for(let n of t.fieldDataByName.values())if(!(0,Oe.isNodeDataInaccessible)(n))return;this.errors.push((0,Fe.noQueryRootTypeError)())}validateSubscriptionFieldConditionFieldPath(t,n,r,i,a){let o=t.split(De.LITERAL_PERIOD);if(o.length<1)return a.push((0,Fe.invalidSubscriptionFieldConditionFieldPathErrorMessage)(r,t)),[];let u=n;if(this.inaccessibleCoords.has(u.renamedTypeName))return a.push((0,Fe.inaccessibleSubscriptionFieldConditionFieldPathFieldErrorMessage)(r,t,o[0],u.renamedTypeName)),[];let l="";for(let d=0;d0?`.${p}`:p,u.kind!==Pe.Kind.OBJECT_TYPE_DEFINITION)return a.push((0,Fe.invalidSubscriptionFieldConditionFieldPathParentErrorMessage)(r,t,l)),[];let E=u.fieldDataByName.get(p);if(!E)return a.push((0,Fe.undefinedSubscriptionFieldConditionFieldPathFieldErrorMessage)(r,t,l,p,u.renamedTypeName)),[];let h=`${u.renamedTypeName}.${p}`;if(!E.subgraphNames.has(i))return a.push((0,Fe.invalidSubscriptionFieldConditionFieldPathFieldErrorMessage)(r,t,l,h,i)),[];if(this.inaccessibleCoords.has(h))return a.push((0,Fe.inaccessibleSubscriptionFieldConditionFieldPathFieldErrorMessage)(r,t,l,h)),[];if(Rp.BASE_SCALARS.has(E.namedTypeName)){u={kind:Pe.Kind.SCALAR_TYPE_DEFINITION,name:E.namedTypeName};continue}u=(0,Ne.getOrThrowError)(this.parentDefinitionDataByTypeName,E.namedTypeName,De.PARENT_DEFINITION_DATA)}return(0,Oe.isLeafKind)(u.kind)?o:(a.push((0,Fe.nonLeafSubscriptionFieldConditionFieldPathFinalFieldErrorMessage)(r,t,o[o.length-1],(0,Ne.kindToNodeType)(u.kind),u.name)),[])}validateSubscriptionFieldCondition(t,n,r,i,a,o,u){if(i>lh.MAX_SUBSCRIPTION_FILTER_DEPTH||this.isMaxDepth)return u.push((0,Fe.subscriptionFilterConditionDepthExceededErrorMessage)(a)),this.isMaxDepth=!0,!1;let l=!1,d=new Set([De.FIELD_PATH,De.VALUES]),p=new Set,E=new Set,h=[];for(let v of t.fields){let R=v.name.value,U=a+`.${R}`;switch(R){case De.FIELD_PATH:{if(d.has(De.FIELD_PATH))d.delete(De.FIELD_PATH);else{l=!0,p.add(De.FIELD_PATH);break}if(v.value.kind!==Pe.Kind.STRING){h.push((0,Fe.invalidInputFieldTypeErrorMessage)(U,De.STRING,(0,Ne.kindToNodeType)(v.value.kind))),l=!0;break}let q=this.validateSubscriptionFieldConditionFieldPath(v.value.value,r,U,o,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,p.add(De.VALUES);break}let q=v.value.kind;if(q==Pe.Kind.NULL||q==Pe.Kind.OBJECT){h.push((0,Fe.invalidInputFieldTypeErrorMessage)(U,De.LIST,(0,Ne.kindToNodeType)(v.value.kind))),l=!0;break}if(q!==Pe.Kind.LIST){n.values=[(0,Oe.getSubscriptionFilterValue)(v.value)];break}let X=new Set,te=[];for(let ae=0;ae0){h.push((0,Fe.subscriptionFieldConditionInvalidValuesArrayErrorMessage)(U,te));continue}if(X.size<1){l=!0,h.push((0,Fe.subscriptionFieldConditionEmptyValuesArrayErrorMessage)(U));continue}n.values=[...X];break}default:l=!0,E.add(R)}}return l?(u.push((0,Fe.subscriptionFieldConditionInvalidInputFieldErrorMessage)(a,[...d],[...p],[...E],h)),!1):!0}validateSubscriptionFilterCondition(t,n,r,i,a,o,u){if(i>lh.MAX_SUBSCRIPTION_FILTER_DEPTH||this.isMaxDepth)return u.push((0,Fe.subscriptionFilterConditionDepthExceededErrorMessage)(a)),this.isMaxDepth=!0,!1;if(i+=1,t.fields.length!==1)return u.push((0,Fe.subscriptionFilterConditionInvalidInputFieldNumberErrorMessage)(a,t.fields.length)),!1;let l=t.fields[0],d=l.name.value;if(!Gc.SUBSCRIPTION_FILTER_INPUT_NAMES.has(d))return u.push((0,Fe.subscriptionFilterConditionInvalidInputFieldErrorMessage)(a,d)),!1;let p=a+`.${d}`;switch(l.value.kind){case Pe.Kind.OBJECT:switch(d){case De.IN_UPPER:return n.in={fieldPath:[],values:[]},this.validateSubscriptionFieldCondition(l.value,n.in,r,i,a+".IN",o,u);case De.NOT_UPPER:return n.not={},this.validateSubscriptionFilterCondition(l.value,n.not,r,i,a+".NOT",o,u);default:return u.push((0,Fe.subscriptionFilterConditionInvalidInputFieldTypeErrorMessage)(p,De.LIST,De.OBJECT)),!1}case Pe.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,Fe.subscriptionFilterConditionInvalidInputFieldTypeErrorMessage)(p,De.OBJECT,De.LIST)),!1}let h=l.value.values.length;if(h<1||h>5)return u.push((0,Fe.subscriptionFilterArrayConditionInvalidLengthErrorMessage)(p,h)),!1;let v=!0,R=[];for(let U=0;U0?(u.push((0,Fe.subscriptionFilterArrayConditionInvalidItemTypeErrorMessage)(p,R)),!1):v}default:{let E=Gc.SUBSCRIPTION_FILTER_LIST_INPUT_NAMES.has(d)?De.LIST:De.OBJECT;return u.push((0,Fe.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 u=t.arguments[0];if(u.value.kind!==Pe.Kind.OBJECT){this.errors.push((0,Fe.invalidSubscriptionFilterDirectiveError)(r,[(0,Fe.subscriptionFilterConditionInvalidInputFieldTypeErrorMessage)(De.CONDITION,De.OBJECT,(0,Ne.kindToNodeType)(u.value.kind))]));return}let l={},d=[];if(!this.validateSubscriptionFilterCondition(u.value,l,n,0,De.CONDITION,o,d)){this.errors.push((0,Fe.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,Fe.invalidSubscriptionFilterDirectiveError)(t,[(0,Fe.subscriptionFilterNamedTypeErrorMessage)(n.fieldData.namedTypeName)]));continue}(0,Oe.isNodeDataInaccessible)(r)||r.kind===Pe.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,Fe.orScopesLimitError)(Rp.MAX_OR_SCOPES,[...this.invalidORScopesCoords]));for(let a of this.potentialPersistedDirectiveDefinitionDataByDirectiveName.values())(0,Oe.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.options.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:Pe.Kind.DOCUMENT,definitions:this.routerDefinitions},r=(0,Pe.buildASTSchema)({kind:Pe.Kind.DOCUMENT,definitions:this.clientDefinitions},{assumeValid:!0,assumeValidSDL:!0}),i=new Map;for(let{configurationDataByTypeName:a,costs:o,directiveDefinitionByName:u,isVersionTwo:l,name:d,parentDefinitionDataByTypeName:p,schema:E,schemaNode:h}of this.internalSubgraphBySubgraphName.values())i.set(d,{configurationDataByTypeName:a,costs:o,directiveDefinitionByName:u,isVersionTwo:l,parentDefinitionDataByTypeName:p,schema:E,schemaNode:h});for(let a of this.authorizationDataByParentTypeName.values())(0,Hr.upsertAuthorizationConfiguration)(this.fieldConfigurationByFieldCoords,a);return M({directiveDefinitionByName:this.directiveDefinitionByName,fieldConfigurations:Array.from(this.fieldConfigurationByFieldCoords.values()),federatedGraphAST:n,federatedGraphSchema:(0,Pe.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,u]of r){let l=(0,Ne.getOrThrowError)(n,o,`${t.name}.childDataByChildName`);if((0,Oe.isNodeDataInaccessible)(l)){a-=1;continue}i.isDisjointFrom(u.tagNames)||((0,Ne.getValueOrDefault)(l.persistedDirectivesData.directivesByName,De.INACCESSIBLE,()=>[(0,Ne.generateSimpleDirective)(De.INACCESSIBLE)]),this.inaccessibleCoords.add(`${t.name}.${o}`),a-=1)}a<1&&(t.persistedDirectivesData.directivesByName.set(De.INACCESSIBLE,[(0,Ne.generateSimpleDirective)(De.INACCESSIBLE)]),this.inaccessibleCoords.add(t.name))}handleChildTagInclusions(t,n,r,i){let a=n.size;for(let[o,u]of n){if((0,Oe.isNodeDataInaccessible)(u)){a-=1;continue}let l=r.get(o);(!l||i.isDisjointFrom(l.tagNames))&&((0,Ne.getValueOrDefault)(u.persistedDirectivesData.directivesByName,De.INACCESSIBLE,()=>[(0,Ne.generateSimpleDirective)(De.INACCESSIBLE)]),this.inaccessibleCoords.add(`${t.name}.${o}`),a-=1)}a<1&&(t.persistedDirectivesData.directivesByName.set(De.INACCESSIBLE,[(0,Ne.generateSimpleDirective)(De.INACCESSIBLE)]),this.inaccessibleCoords.add(t.name))}buildFederationContractResult(t){if(this.isVersionTwo||this.routerDefinitions.push(ku.INACCESSIBLE_DEFINITION),t.tagNamesToExclude.size>0)for(let[o,u]of this.parentTagDataByTypeName){let l=(0,Ne.getOrThrowError)(this.parentDefinitionDataByTypeName,o,De.PARENT_DEFINITION_DATA);if(!(0,Oe.isNodeDataInaccessible)(l)){if(!t.tagNamesToExclude.isDisjointFrom(u.tagNames)){l.persistedDirectivesData.directivesByName.set(De.INACCESSIBLE,[(0,Ne.generateSimpleDirective)(De.INACCESSIBLE)]),this.inaccessibleCoords.add(o);continue}if(!(u.childTagDataByChildName.size<1))switch(l.kind){case Pe.Kind.SCALAR_TYPE_DEFINITION:case Pe.Kind.UNION_TYPE_DEFINITION:break;case Pe.Kind.ENUM_TYPE_DEFINITION:{this.handleChildTagExclusions(l,l.enumValueDataByName,u.childTagDataByChildName,t.tagNamesToExclude);break}case Pe.Kind.INPUT_OBJECT_TYPE_DEFINITION:{this.handleChildTagExclusions(l,l.inputValueDataByName,u.childTagDataByChildName,t.tagNamesToExclude);break}default:{let d=l.fieldDataByName.size;for(let[p,E]of u.childTagDataByChildName){let h=(0,Ne.getOrThrowError)(l.fieldDataByName,p,`${o}.fieldDataByFieldName`);if((0,Oe.isNodeDataInaccessible)(h)){d-=1;continue}if(!t.tagNamesToExclude.isDisjointFrom(E.tagNames)){(0,Ne.getValueOrDefault)(h.persistedDirectivesData.directivesByName,De.INACCESSIBLE,()=>[(0,Ne.generateSimpleDirective)(De.INACCESSIBLE)]),this.inaccessibleCoords.add(h.federatedCoords),d-=1;continue}for(let[v,R]of E.tagNamesByArgumentName){let U=(0,Ne.getOrThrowError)(h.argumentDataByName,v,`${p}.argumentDataByArgumentName`);(0,Oe.isNodeDataInaccessible)(U)||t.tagNamesToExclude.isDisjointFrom(R)||((0,Ne.getValueOrDefault)(U.persistedDirectivesData.directivesByName,De.INACCESSIBLE,()=>[(0,Ne.generateSimpleDirective)(De.INACCESSIBLE)]),this.inaccessibleCoords.add(U.federatedCoords))}}d<1&&(l.persistedDirectivesData.directivesByName.set(De.INACCESSIBLE,[(0,Ne.generateSimpleDirective)(De.INACCESSIBLE)]),this.inaccessibleCoords.add(o))}}}}else if(t.tagNamesToInclude.size>0)for(let[o,u]of this.parentDefinitionDataByTypeName){if((0,Oe.isNodeDataInaccessible)(u))continue;let l=this.parentTagDataByTypeName.get(o);if(!l){u.persistedDirectivesData.directivesByName.set(De.INACCESSIBLE,[(0,Ne.generateSimpleDirective)(De.INACCESSIBLE)]),this.inaccessibleCoords.add(o);continue}if(t.tagNamesToInclude.isDisjointFrom(l.tagNames)){if(l.childTagDataByChildName.size<1){u.persistedDirectivesData.directivesByName.set(De.INACCESSIBLE,[(0,Ne.generateSimpleDirective)(De.INACCESSIBLE)]),this.inaccessibleCoords.add(o);continue}switch(u.kind){case Pe.Kind.SCALAR_TYPE_DEFINITION:case Pe.Kind.UNION_TYPE_DEFINITION:continue;case Pe.Kind.ENUM_TYPE_DEFINITION:this.handleChildTagInclusions(u,u.enumValueDataByName,l.childTagDataByChildName,t.tagNamesToInclude);break;case Pe.Kind.INPUT_OBJECT_TYPE_DEFINITION:this.handleChildTagInclusions(u,u.inputValueDataByName,l.childTagDataByChildName,t.tagNamesToInclude);break;default:let d=u.fieldDataByName.size;for(let[p,E]of u.fieldDataByName){if((0,Oe.isNodeDataInaccessible)(E)){d-=1;continue}let h=l.childTagDataByChildName.get(p);(!h||t.tagNamesToInclude.isDisjointFrom(h.tagNames))&&((0,Ne.getValueOrDefault)(E.persistedDirectivesData.directivesByName,De.INACCESSIBLE,()=>[(0,Ne.generateSimpleDirective)(De.INACCESSIBLE)]),this.inaccessibleCoords.add(E.federatedCoords),d-=1)}d<1&&(u.persistedDirectivesData.directivesByName.set(De.INACCESSIBLE,[(0,Ne.generateSimpleDirective)(De.INACCESSIBLE)]),this.inaccessibleCoords.add(o))}}}this.subscriptionFilterDataByFieldPath.size>0&&this.validateSubscriptionFiltersAndGenerateConfiguration();for(let o of this.potentialPersistedDirectiveDefinitionDataByDirectiveName.values())(0,Oe.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:Pe.Kind.DOCUMENT,definitions:this.routerDefinitions},i=(0,Pe.buildASTSchema)({kind:Pe.Kind.DOCUMENT,definitions:this.clientDefinitions},{assumeValid:!0,assumeValidSDL:!0}),a=new Map;for(let{configurationDataByTypeName:o,costs:u,directiveDefinitionByName:l,isVersionTwo:d,name:p,parentDefinitionDataByTypeName:E,schema:h,schemaNode:v}of this.internalSubgraphBySubgraphName.values())a.set(p,{configurationDataByTypeName:o,costs:u,directiveDefinitionByName:l,isVersionTwo:d,parentDefinitionDataByTypeName:E,schema:h,schemaNode:v});for(let o of this.authorizationDataByParentTypeName.values())(0,Hr.upsertAuthorizationConfiguration)(this.fieldConfigurationByFieldCoords,o);return M({directiveDefinitionByName:this.directiveDefinitionByName,fieldConfigurations:Array.from(this.fieldConfigurationByFieldCoords.values()),federatedGraphAST:r,federatedGraphSchema:(0,Pe.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()}};fh=new WeakSet,kV=function(){var r;let t=new Set,n=new Set;for(let i of this.referencedPersistedDirectiveNames){let a=Rp.DIRECTIVE_DEFINITION_BY_NAME.get(i);if(!a)continue;let o=(r=Gc.DEPENDENCIES_BY_DIRECTIVE_NAME.get(i))!=null?r:[];this.directiveDefinitionByName.set(i,a),Gc.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=dh;function gb({options:e,subgraphs:t}){if(t.length<1)return{errors:[Fe.minimumSubgraphRequirementError],success:!1,warnings:[]};let n=(0,epe.batchNormalize)({subgraphs:t,options:e});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,p]of l.entityInterfaces){let E=r.get(d);if(!E){r.set(d,(0,Hr.newEntityInterfaceFederationData)(p,u));continue}(0,Hr.upsertEntityInterfaceFederationData)(E,p,u)}let a=new Array,o=new Map;for(let[u,l]of r){let d=l.concreteTypeNames.size;for(let[p,E]of l.subgraphDataByTypeName){let h=(0,Ne.getValueOrDefault)(o,p,()=>new Set);if((0,Ne.addIterableToSet)({source:E.concreteTypeNames,target:h}),!E.isInterfaceObject){E.resolvable&&E.concreteTypeNames.size!==d&&(0,Ne.getValueOrDefault)(i,u,()=>new Array).push({subgraphName:p,definedConcreteTypeNames:new Set(E.concreteTypeNames),requiredConcreteTypeNames:new Set(l.concreteTypeNames)});continue}(0,Ne.addIterableToSet)({source:l.concreteTypeNames,target:h});let{parentDefinitionDataByTypeName:v}=(0,Ne.getOrThrowError)(n.internalSubgraphBySubgraphName,p,"internalSubgraphBySubgraphName"),R=[];for(let U of l.concreteTypeNames)v.has(U)&&R.push(U);R.length>0&&a.push((0,Fe.invalidInterfaceObjectImplementationDefinitionsError)(u,p,R))}}for(let[u,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 h=p.requiredConcreteTypeNames.intersection(E);p.requiredConcreteTypeNames.size!==h.size&&(p.definedConcreteTypeNames=h,d.push(p))}if(d.length>0){i.set(u,d);continue}i.delete(u)}return i.size>0&&a.push((0,Fe.undefinedEntityInterfaceImplementationsError)(i,r)),a.length>0?{errors:a,success:!1,warnings:n.warnings}:{federationFactory:new dh({authorizationDataByParentTypeName:n.authorizationDataByParentTypeName,concreteTypeNamesByAbstractTypeName:n.concreteTypeNamesByAbstractTypeName,entityDataByTypeName:n.entityDataByTypeName,entityInterfaceFederationDataByTypeName:r,fieldCoordsByNamedTypeName:n.fieldCoordsByNamedTypeName,interfaceImplementationTypeNamesByInterfaceTypeName:n.interfaceImplementationTypeNamesByInterfaceTypeName,internalSubgraphBySubgraphName:n.internalSubgraphBySubgraphName,internalGraph:n.internalGraph,options:e,warnings:n.warnings}),success:!0,warnings:n.warnings}}function ipe({options:e,subgraphs:t}){let n=gb({options:e,subgraphs:t});return n.success?n.federationFactory.federateSubgraphsInternal():{errors:n.errors,success:!1,warnings:n.warnings}}function ape({options:e,subgraphs:t,tagOptionsByContractName:n}){let r=gb({options:e,subgraphs:t});if(!r.success)return{errors:r.errors,success:!1,warnings:r.warnings};r.federationFactory.federateSubgraphData();let i=[(0,BV.cloneDeep)(r.federationFactory)],a=r.federationFactory.buildFederationResult();if(!a.success)return{errors:a.errors,success:!1,warnings:a.warnings};let o=n.size-1,u=new Map,l=0;for(let[d,p]of n){l!==o&&i.push((0,BV.cloneDeep)(i[l]));let E=i[l].buildFederationContractResult(p);u.set(d,E),l++}return G(M({},a),{federationResultByContractName:u})}function spe({contractTagOptions:e,options:t,subgraphs:n}){let r=gb({options:t,subgraphs:n});return r.success?(r.federationFactory.federateSubgraphData(),r.federationFactory.buildFederationContractResult(e)):{errors:r.errors,success:!1,warnings:r.warnings}}});var ph=F(Ms=>{"use strict";m();T();N();Object.defineProperty(Ms,"__esModule",{value:!0});Ms.LATEST_ROUTER_COMPATIBILITY_VERSION=Ms.ROUTER_COMPATIBILITY_VERSIONS=Ms.ROUTER_COMPATIBILITY_VERSION_ONE=void 0;Ms.ROUTER_COMPATIBILITY_VERSION_ONE="1";Ms.ROUTER_COMPATIBILITY_VERSIONS=new Set([Ms.ROUTER_COMPATIBILITY_VERSION_ONE]);Ms.LATEST_ROUTER_COMPATIBILITY_VERSION="1"});var xV=F(Pp=>{"use strict";m();T();N();Object.defineProperty(Pp,"__esModule",{value:!0});Pp.federateSubgraphs=ope;Pp.federateSubgraphsWithContracts=upe;Pp.federateSubgraphsContract=cpe;var _b=MV(),vb=ph();function ope({options:e,subgraphs:t,version:n=vb.ROUTER_COMPATIBILITY_VERSION_ONE}){switch(n){default:return(0,_b.federateSubgraphs)({options:e,subgraphs:t})}}function upe({options:e,subgraphs:t,tagOptionsByContractName:n,version:r=vb.ROUTER_COMPATIBILITY_VERSION_ONE}){switch(r){default:return(0,_b.federateSubgraphsWithContracts)({options:e,subgraphs:t,tagOptionsByContractName:n})}}function cpe({contractTagOptions:e,options:t,subgraphs:n,version:r=vb.ROUTER_COMPATIBILITY_VERSION_ONE}){switch(r){default:return(0,_b.federateSubgraphsContract)({contractTagOptions:e,options:t,subgraphs:n})}}});var VV=F(qV=>{"use strict";m();T();N();Object.defineProperty(qV,"__esModule",{value:!0})});var KV=F(jV=>{"use strict";m();T();N();Object.defineProperty(jV,"__esModule",{value:!0})});var $V=F(Fp=>{"use strict";m();T();N();Object.defineProperty(Fp,"__esModule",{value:!0});Fp.normalizeSubgraphFromString=lpe;Fp.normalizeSubgraph=dpe;Fp.batchNormalize=fpe;var Sb=Eb(),Ob=ph();function lpe({noLocation:e=!0,options:t,sdlString:n,version:r=Ob.ROUTER_COMPATIBILITY_VERSION_ONE}){switch(r){default:return(0,Sb.normalizeSubgraphFromString)({noLocation:e,options:t,sdlString:n})}}function dpe({document:e,internalGraph:t,options:n,subgraphName:r,version:i=Ob.ROUTER_COMPATIBILITY_VERSION_ONE}){switch(i){default:return(0,Sb.normalizeSubgraph)({document:e,internalGraph:t,options:n,subgraphName:r})}}function fpe({options:e,subgraphs:t,version:n=Ob.ROUTER_COMPATIBILITY_VERSION_ONE}){switch(n){default:return(0,Sb.batchNormalize)({options:e,subgraphs:t})}}});var QV=F(GV=>{"use strict";m();T();N();Object.defineProperty(GV,"__esModule",{value:!0})});var JV=F(YV=>{"use strict";m();T();N();Object.defineProperty(YV,"__esModule",{value:!0})});var HV=F(zV=>{"use strict";m();T();N();Object.defineProperty(zV,"__esModule",{value:!0})});var XV=F(WV=>{"use strict";m();T();N();Object.defineProperty(WV,"__esModule",{value:!0})});var ej=F(ZV=>{"use strict";m();T();N();Object.defineProperty(ZV,"__esModule",{value:!0})});var nj=F(tj=>{"use strict";m();T();N();Object.defineProperty(tj,"__esModule",{value:!0})});var ij=F(rj=>{"use strict";m();T();N();Object.defineProperty(rj,"__esModule",{value:!0})});var sj=F(aj=>{"use strict";m();T();N();Object.defineProperty(aj,"__esModule",{value:!0})});var oj=F(mh=>{"use strict";m();T();N();Object.defineProperty(mh,"__esModule",{value:!0});mh.COMPOSITION_VERSION=void 0;mh.COMPOSITION_VERSION="{{$COMPOSITION__VERSION}}"});var cj=F(uj=>{"use strict";m();T();N();Object.defineProperty(uj,"__esModule",{value:!0})});var dj=F(lj=>{"use strict";m();T();N();Object.defineProperty(lj,"__esModule",{value:!0})});var pj=F(fj=>{"use strict";m();T();N();Object.defineProperty(fj,"__esModule",{value:!0})});var Nj=F(mj=>{"use strict";m();T();N();Object.defineProperty(mj,"__esModule",{value:!0})});var Nh=F(We=>{"use strict";m();T();N();var ppe=We&&We.__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]}),st=We&&We.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&ppe(t,e,n)};Object.defineProperty(We,"__esModule",{value:!0});st(Br(),We);st(Jv(),We);st(Yi(),We);st(lx(),We);st(xV(),We);st(VV(),We);st(KV(),We);st($V(),We);st(QV(),We);st(JV(),We);st(pb(),We);st(nb(),We);st(ZE(),We);st(HV(),We);st(XV(),We);st(ob(),We);st(ph(),We);st(ej(),We);st(mb(),We);st(Du(),We);st(Qf(),We);st($l(),We);st(nj(),We);st(ij(),We);st(sj(),We);st(oj(),We);st(cj(),We);st(Xn(),We);st(dj(),We);st(kr(),We);st(YD(),We);st(bu(),We);st(Yf(),We);st(_E(),We);st(vE(),We);st(dd(),We);st(gT(),We);st(pj(),We);st(_T(),We);st(Ib(),We);st(jD(),We);st(gp(),We);st(Nj(),We);st(WD(),We);st(uh(),We);st(GD(),We);st(Ip(),We);st(_p(),We)});var lme={};Ym(lme,{buildRouterConfiguration:()=>cme,federateSubgraphs:()=>ume});m();T();N();var el=Ii(Nh());m();T();N();m();T();N();function Db(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 Tj={};m();T();N();function Ej(e){return e!=null}m();T();N();m();T();N();var Eh=Ii(Se(),1);m();T();N();m();T();N();function Mu(e){return Th(e,[])}function Th(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return mpe(e,t);default:return String(e)}}function hj(e){return(e.name="GraphQLError")?e.toString():`${e.name}: ${e.message}; - ${e.stack}`}function mpe(e,t){if(e===null)return"null";if(e instanceof Error)return e.name==="AggregateError"?hj(e)+` -`+yj(e.errors,t):hj(e);if(t.includes(e))return"[Circular]";let n=[...t,e];if(Npe(e)){let r=e.toJSON();if(r!==e)return typeof r=="string"?r:Th(r,n)}else if(Array.isArray(e))return yj(e,n);return Tpe(e,n)}function Npe(e){return typeof e.toJSON=="function"}function Tpe(e,t){let n=Object.entries(e);return n.length===0?"{}":t.length>3?"["+Epe(e)+"]":"{ "+n.map(([i,a])=>i+": "+Th(a,t)).join(", ")+" }"}function yj(e,t){if(e.length===0)return"[]";if(t.length>3)return"[Array]";let n=e.length,r=[];for(let i=0;ihpe.includes(t))}function Id(e,t){t!=null&&t.originalError&&!(t.originalError instanceof Error)&&ype(t.originalError)&&(t.originalError=Id(t.originalError.message,t.originalError));let n=wp.GraphQLError,r=wp.versionInfo.major>=16?new n(e,t):new n(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);return t!=null&&t.coordinate&&r.coordinate==null&&Object.defineProperties(r,{coordinate:{value:t.coordinate,enumerable:!0,configurable:!0}}),r}m();T();N();function Ij(e){return e!=null&&typeof e=="object"&&Symbol.iterator in e}function gj(e){return typeof e=="object"&&e!==null}function _j(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function vj(e,t,n={}){var o;let r={},a=((o=t.arguments)!=null?o:[]).reduce((u,l)=>G(M({},u),{[l.name.value]:l}),{});for(let{name:u,type:l,defaultValue:d}of e.args){let p=a[u];if(!p){if(d!==void 0)r[u]=d;else if((0,Ca.isNonNullType)(l))throw Id(`Argument "${u}" of required type "${Mu(l)}" was not provided.`,{nodes:[t]});continue}let E=p.value,h=E.kind===Ca.Kind.NULL;if(E.kind===Ca.Kind.VARIABLE){let R=E.name.value;if(n==null||!_j(n,R)){if(d!==void 0)r[u]=d;else if((0,Ca.isNonNullType)(l))throw Id(`Argument "${u}" of required type "${Mu(l)}" was provided the variable "$${R}" which was not provided a runtime value.`,{nodes:[E]});continue}h=n[R]==null}if(h&&(0,Ca.isNonNullType)(l))throw Id(`Argument "${u}" of non-null type "${Mu(l)}" must not be null.`,{nodes:[E]});let v=(0,Ca.valueFromAST)(E,l,n);if(v===void 0)throw Id(`Argument "${u}" has invalid value ${(0,Ca.print)(E)}.`,{nodes:[E]});r[u]=v}return r}m();T();N();function gd(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 Sj(e,t,n=["directives"]){var o;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],p=l;if(Array.isArray(d))for(let E of d){let h=r[p];h||(h=[],r[p]=h),h.push(E)}else{let E=r[p];E||(E=[],r[p]=E),E.push(d)}}}let i=gd(u=>JSON.stringify(u)),a=[];e.astNode&&a.push(e.astNode),e.extensionASTNodes&&a.push(...e.extensionASTNodes);for(let u of a)if((o=u.directives)!=null&&o.length)for(let l of u.directives){let d=l.name.value,p=r[d];p||(p=[],r[d]=p);let E=t==null?void 0:t.getDirective(d),h={};if(E&&(h=vj(E,l)),l.arguments)for(let v of l.arguments){let R=v.name.value;if(h[R]==null){let U=E==null?void 0:E.args.find(q=>q.name===R);U&&(h[R]=(0,Eh.valueFromAST)(v.value,U.type))}h[R]==null&&(h[R]=(0,Eh.valueFromASTUntyped)(v.value))}if(a.length>0&&p.length>0){let v=i(h);if(p.some(R=>i(R)===v))continue}p.push(h)}return r}function bb(e,t=["directives"]){let n=Sj(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)}m();T();N();var ze=Ii(Se(),1);m();T();N();var ds=Ii(Se(),1);function fs(e){if((0,ds.isNonNullType)(e)){let t=fs(e.ofType);if(t.kind===ds.Kind.NON_NULL_TYPE)throw new Error(`Invalid type node ${Mu(e)}. Inner type of non-null type cannot be a non-null type.`);return{kind:ds.Kind.NON_NULL_TYPE,type:t}}else if((0,ds.isListType)(e))return{kind:ds.Kind.LIST_TYPE,type:fs(e.ofType)};return{kind:ds.Kind.NAMED_TYPE,name:{kind:ds.Kind.NAME,value:e.name}}}m();T();N();var pr=Ii(Se(),1);m();T();N();var Ua=Ii(Se(),1);function Yc(e){if(e===null)return{kind:Ua.Kind.NULL};if(e===void 0)return null;if(Array.isArray(e)){let t=[];for(let n of e){let r=Yc(n);r!=null&&t.push(r)}return{kind:Ua.Kind.LIST,values:t}}if(typeof e=="object"){if(e!=null&&e.toJSON)return Yc(e.toJSON());let t=[];for(let n in e){let r=e[n],i=Yc(r);i&&t.push({kind:Ua.Kind.OBJECT_FIELD,name:{kind:Ua.Kind.NAME,value:n},value:i})}return{kind:Ua.Kind.OBJECT,fields:t}}if(typeof e=="boolean")return{kind:Ua.Kind.BOOLEAN,value:e};if(typeof e=="bigint")return{kind:Ua.Kind.INT,value:String(e)};if(typeof e=="number"&&isFinite(e)){let t=String(e);return Ipe.test(t)?{kind:Ua.Kind.INT,value:t}:{kind:Ua.Kind.FLOAT,value:t}}if(typeof e=="string")return{kind:Ua.Kind.STRING,value:e};throw new TypeError(`Cannot convert value to AST: ${e}.`)}var Ipe=/^-?(?:0|[1-9][0-9]*)$/;function xu(e,t){if((0,pr.isNonNullType)(t)){let n=xu(e,t.ofType);return(n==null?void 0:n.kind)===pr.Kind.NULL?null:n}if(e===null)return{kind:pr.Kind.NULL};if(e===void 0)return null;if((0,pr.isListType)(t)){let n=t.ofType;if(Ij(e)){let r=[];for(let i of e){let a=xu(i,n);a!=null&&r.push(a)}return{kind:pr.Kind.LIST,values:r}}return xu(e,n)}if((0,pr.isInputObjectType)(t)){if(!gj(e))return null;let n=[];for(let r of Object.values(t.getFields())){let i=xu(e[r.name],r.type);i&&n.push({kind:pr.Kind.OBJECT_FIELD,name:{kind:pr.Kind.NAME,value:r.name},value:i})}return{kind:pr.Kind.OBJECT,fields:n}}if((0,pr.isLeafType)(t)){let n=t.serialize(e);return n==null?null:(0,pr.isEnumType)(t)?{kind:pr.Kind.ENUM,value:n}:t.name==="ID"&&typeof n=="string"&&gpe.test(n)?{kind:pr.Kind.INT,value:n}:Yc(n)}console.assert(!1,"Unexpected input type: "+Mu(t))}var gpe=/^-?(?:0|[1-9][0-9]*)$/;m();T();N();var Oj=Ii(Se(),1);function bi(e){var t;if((t=e.astNode)!=null&&t.description)return G(M({},e.astNode.description),{block:!0});if(e.description)return{kind:Oj.Kind.STRING,value:e.description,block:!0}}m();T();N();var D1e=gd(function(t){let n=_pe(t);return new Set([...n].map(r=>r.name))}),_pe=gd(function(t){let n=Ab(t);return new Set(n.values())}),Ab=gd(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 vpe(e,t={}){let n=t.pathToDirectivesInExtensions,r=e.getTypeMap(),i=Spe(e,n),a=i!=null?[i]:[],o=e.getDirectives();for(let u of o)(0,ze.isSpecifiedDirective)(u)||a.push(Ope(u,e,n));for(let u in r){let l=r[u],d=(0,ze.isSpecifiedScalarType)(l),p=(0,ze.isIntrospectionType)(l);if(!(d||p))if((0,ze.isObjectType)(l))a.push(Dpe(l,e,n));else if((0,ze.isInterfaceType)(l))a.push(bpe(l,e,n));else if((0,ze.isUnionType)(l))a.push(Ape(l,e,n));else if((0,ze.isInputObjectType)(l))a.push(Rpe(l,e,n));else if((0,ze.isEnumType)(l))a.push(Ppe(l,e,n));else if((0,ze.isScalarType)(l))a.push(Fpe(l,e,n));else throw new Error(`Unknown type ${l}.`)}return{kind:ze.Kind.DOCUMENT,definitions:a}}function Dj(e,t={}){let n=vpe(e,t);return(0,ze.print)(n)}function Spe(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=Ab(e);for(let[d,p]of n){let E=i.get(d);if(E!=null){let h=fs(E);p!=null?p.type=h:n.set(d,{kind:ze.Kind.OPERATION_TYPE_DEFINITION,operation:d,type:h})}}let a=[...n.values()].filter(Ej),o=ps(e,e,t);if(!a.length&&!o.length)return null;let u={kind:a.length?ze.Kind.SCHEMA_DEFINITION:ze.Kind.SCHEMA_EXTENSION,operationTypes:a,directives:o},l=bi(e);return l&&(u.description=l),u}function Ope(e,t,n){var r,i;return{kind:ze.Kind.DIRECTIVE_DEFINITION,description:bi(e),name:{kind:ze.Kind.NAME,value:e.name},arguments:(r=e.args)==null?void 0:r.map(a=>bj(a,t,n)),repeatable:e.isRepeatable,locations:((i=e.locations)==null?void 0:i.map(a=>({kind:ze.Kind.NAME,value:a})))||[]}}function ps(e,t,n){let r=[],i=bb(e,n),a;i!=null&&(a=Rj(t,i));let o=null,u=null,l=null;if(a!=null&&(r=a.filter(d=>ze.specifiedDirectives.every(p=>p.name!==d.name.value)),o=a.find(d=>d.name.value==="deprecated"),u=a.find(d=>d.name.value==="specifiedBy"),l=a.find(d=>d.name.value==="oneOf")),e.deprecationReason!=null&&o==null&&(o=Cpe(e.deprecationReason)),e.specifiedByUrl!=null||e.specifiedByURL!=null&&u==null){let p={url:e.specifiedByUrl||e.specifiedByURL};u=Lp("specifiedBy",p)}return e.isOneOf&&l==null&&(l=Lp("oneOf")),o!=null&&r.push(o),u!=null&&r.push(u),l!=null&&r.push(l),r}function bj(e,t,n){var r;return{kind:ze.Kind.INPUT_VALUE_DEFINITION,description:bi(e),name:{kind:ze.Kind.NAME,value:e.name},type:fs(e.type),defaultValue:e.defaultValue!==void 0&&(r=xu(e.defaultValue,e.type))!=null?r:void 0,directives:ps(e,t,n)}}function Dpe(e,t,n){return{kind:ze.Kind.OBJECT_TYPE_DEFINITION,description:bi(e),name:{kind:ze.Kind.NAME,value:e.name},fields:Object.values(e.getFields()).map(r=>Aj(r,t,n)),interfaces:Object.values(e.getInterfaces()).map(r=>fs(r)),directives:ps(e,t,n)}}function bpe(e,t,n){let r={kind:ze.Kind.INTERFACE_TYPE_DEFINITION,description:bi(e),name:{kind:ze.Kind.NAME,value:e.name},fields:Object.values(e.getFields()).map(i=>Aj(i,t,n)),directives:ps(e,t,n)};return"getInterfaces"in e&&(r.interfaces=Object.values(e.getInterfaces()).map(i=>fs(i))),r}function Ape(e,t,n){return{kind:ze.Kind.UNION_TYPE_DEFINITION,description:bi(e),name:{kind:ze.Kind.NAME,value:e.name},directives:ps(e,t,n),types:e.getTypes().map(r=>fs(r))}}function Rpe(e,t,n){return{kind:ze.Kind.INPUT_OBJECT_TYPE_DEFINITION,description:bi(e),name:{kind:ze.Kind.NAME,value:e.name},fields:Object.values(e.getFields()).map(r=>wpe(r,t,n)),directives:ps(e,t,n)}}function Ppe(e,t,n){return{kind:ze.Kind.ENUM_TYPE_DEFINITION,description:bi(e),name:{kind:ze.Kind.NAME,value:e.name},values:Object.values(e.getValues()).map(r=>Lpe(r,t,n)),directives:ps(e,t,n)}}function Fpe(e,t,n){let r=bb(e,n),i=Rj(t,r),a=e.specifiedByUrl||e.specifiedByURL;if(a&&!i.some(o=>o.name.value==="specifiedBy")){let o={url:a};i.push(Lp("specifiedBy",o))}return{kind:ze.Kind.SCALAR_TYPE_DEFINITION,description:bi(e),name:{kind:ze.Kind.NAME,value:e.name},directives:i}}function Aj(e,t,n){return{kind:ze.Kind.FIELD_DEFINITION,description:bi(e),name:{kind:ze.Kind.NAME,value:e.name},arguments:e.args.map(r=>bj(r,t,n)),type:fs(e.type),directives:ps(e,t,n)}}function wpe(e,t,n){var r;return{kind:ze.Kind.INPUT_VALUE_DEFINITION,description:bi(e),name:{kind:ze.Kind.NAME,value:e.name},type:fs(e.type),directives:ps(e,t,n),defaultValue:(r=xu(e.defaultValue,e.type))!=null?r:void 0}}function Lpe(e,t,n){return{kind:ze.Kind.ENUM_VALUE_DEFINITION,description:bi(e),name:{kind:ze.Kind.NAME,value:e.name},directives:ps(e,t,n)}}function Cpe(e){return Lp("deprecated",{reason:e},ze.GraphQLDeprecatedDirective)}function Lp(e,t,n){let r=[];for(let i in t){let a=t[i],o;if(n!=null){let u=n.args.find(l=>l.name===i);u&&(o=xu(a,u.type))}o==null&&(o=Yc(a)),o!=null&&r.push({kind:ze.Kind.ARGUMENT,name:{kind:ze.Kind.NAME,value:i},value:o})}return{kind:ze.Kind.DIRECTIVE,name:{kind:ze.Kind.NAME,value:e},arguments:r}}function Rj(e,t){let n=[];for(let{name:r,args:i}of t){let a=e==null?void 0:e.getDirective(r);n.push(Lp(r,i,a))}return n}var Pd=Ii(Nh(),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 Upe=34028234663852886e22,Bpe=-34028234663852886e22,kpe=4294967295,Mpe=2147483647,xpe=-2147483648;function _d(e){if(typeof e!="number")throw new Error("invalid int 32: "+typeof e);if(!Number.isInteger(e)||e>Mpe||ekpe||e<0)throw new Error("invalid uint 32: "+e)}function hh(e){if(typeof e!="number")throw new Error("invalid float 32: "+typeof e);if(Number.isFinite(e)&&(e>Upe||e({no:i.no,name:i.name,localName:e[i.no]})),r)}function Pb(e,t,n){let r=Object.create(null),i=Object.create(null),a=[];for(let o of t){let u=Lj(o);a.push(u),r[o.name]=u,i[o.no]=u}return{typeName:e,values:a,findName(o){return r[o]},findNumber(o){return i[o]}}}function wj(e,t,n){let r={};for(let i of t){let a=Lj(i);r[a.localName]=a.no,r[a.no]=a.localName}return Rb(r,e,t,n),r}function Lj(e){return"localName"in e?e:Object.assign(Object.assign({},e),{localName:e.name})}m();T();N();m();T();N();var Re=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 Cj(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(u){e.util.initFields(this),e.util.initPartial(u,this)}}[a];return Object.setPrototypeOf(o.prototype,new Re),Object.assign(o,{runtime:e,typeName:t,fields:e.util.newFieldList(n),fromBinary(u,l){return new o().fromBinary(u,l)},fromJson(u,l){return new o().fromJson(u,l)},fromJsonString(u,l){return new o().fromJsonString(u,l)},equals(u,l){return e.util.equals(o,u,l)}}),o}m();T();N();m();T();N();m();T();N();m();T();N();function Bj(){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,u=!(!(o>>>7)&&t==0),l=(u?o|128:o)&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 a=3;a<31;a=a+7){let o=t>>>a,u=!!(o>>>7),l=(u?o|128:o)&255;if(n.push(l),!u)return}n.push(t>>>31&1)}}var yh=4294967296;function Fb(e){let t=e[0]==="-";t&&(e=e.slice(1));let n=1e6,r=0,i=0;function a(o,u){let l=Number(e.slice(o,u));i*=n,r=r*n+l,r>=yh&&(i=i+(r/yh|0),r=r%yh)}return a(-24,-18),a(-18,-12),a(-12,-6),a(-6),t?Mj(r,i):Lb(r,i)}function kj(e,t){let n=Lb(e,t),r=n.hi&2147483648;r&&(n=Mj(n.lo,n.hi));let i=wb(n.lo,n.hi);return r?"-"+i:i}function wb(e,t){if({lo:e,hi:t}=qpe(e,t),t<=2097151)return String(yh*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,u=i*2,l=1e7;return a>=l&&(o+=Math.floor(a/l),a%=l),o>=l&&(u+=Math.floor(o/l),o%=l),u.toString()+Uj(o)+Uj(a)}function qpe(e,t){return{lo:e>>>0,hi:t>>>0}}function Lb(e,t){return{lo:e|0,hi:t|0}}function Mj(e,t){return t=~t,e?e=~e+1:t+=1,Lb(e,t)}var Uj=e=>{let t=String(e);return"0000000".slice(t.length)+t};function Cb(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 xj(){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 Vpe(){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 O!="object"||typeof O.env!="object"||O.env.BUF_BIGINT_DISABLE!=="1")){let i=BigInt("-9223372036854775808"),a=BigInt("9223372036854775807"),o=BigInt("0"),u=BigInt("18446744073709551615");return{zero:BigInt(0),supported:!0,parse(l){let d=typeof l=="bigint"?l:BigInt(l);if(d>a||du||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),Fb(i)},uEnc(i){return typeof i!="string"&&(i=i.toString()),r(i),Fb(i)},dec(i,a){return kj(i,a)},uDec(i,a){return wb(i,a)}}}var Jn=Vpe();m();T();N();var pe;(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"})(pe||(pe={}));var Ba;(function(e){e[e.BIGINT=0]="BIGINT",e[e.STRING=1]="STRING"})(Ba||(Ba={}));function xs(e,t,n){if(t===n)return!0;if(e==pe.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(Cp(t);t>127;)this.buf.push(t&127|128),t=t>>>7;return this.buf.push(t),this}int32(t){return _d(t),Cb(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){hh(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){Cp(t);let n=new Uint8Array(4);return new DataView(n.buffer).setUint32(0,t,!0),this.raw(n)}sfixed32(t){_d(t);let n=new Uint8Array(4);return new DataView(n.buffer).setInt32(0,t,!0),this.raw(n)}sint32(t){return _d(t),t=(t<<1^t>>31)>>>0,Cb(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 Ih(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 Ih(i,a,this.buf),this}uint64(t){let n=Jn.uEnc(t);return Ih(n.lo,n.hi,this.buf),this}},vh=class{constructor(t,n){this.varint64=Bj,this.uint32=xj,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,n){let r=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 i=this.uint32();this.pos+=i;break;case xn.StartGroup:for(;;){let[a,o]=this.tag();if(o===xn.EndGroup){if(n!==void 0&&a!==n)throw new Error("invalid end group tag");break}this.skip(o,a)}break;default:throw new Error("cant skip wire type "+t)}return this.assertBounds(),this.buf.subarray(r,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 qj(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 Sh(e){let t=e.field.localName,n=Object.create(null);return n[t]=jpe(e),[n,()=>n[t]]}function jpe(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 ka(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 Vj(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 qs="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),Oh=[];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+=qs[i|r>>4],i=(r&15)<<2,n=2;break;case 2:t+=qs[i|r>>6],t+=qs[r&63],n=0;break}return n&&(t+=qs[i],t+="=",n==1&&(t+="=")),t}};m();T();N();function jj(e,t,n){$j(t,e);let r=t.runtime.bin.makeReadOptions(n),i=Vj(e.getType().runtime.bin.listUnknownFields(e),t.field),[a,o]=Sh(t);for(let u of i)t.runtime.bin.readField(a,r.readerFactory(u.data),t.field,u.wireType,r);return o()}function Kj(e,t,n,r){$j(t,e);let i=t.runtime.bin.makeReadOptions(r),a=t.runtime.bin.makeWriteOptions(r);if(Bb(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(),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,o,a);let l=i.readerFactory(o.finish());for(;l.posr.no==t.field.no)}function $j(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 Dh(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:!gh(e.T,t[n]);case"message":return t[n]!==void 0;case"map":return Object.keys(t[n]).length>0}}function kb(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?ka(e.T,e.L):void 0;break;case"message":t[n]=void 0;break}}m();T();N();m();T();N();function Ma(e,t){if(e===null||typeof e!="object"||!Object.getOwnPropertyNames(Re.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 bh(e,t){return Ma(t)||!e.fieldWrapper?t:e.fieldWrapper.wrapField(t)}var oje={"google.protobuf.DoubleValue":pe.DOUBLE,"google.protobuf.FloatValue":pe.FLOAT,"google.protobuf.Int64Value":pe.INT64,"google.protobuf.UInt64Value":pe.UINT64,"google.protobuf.Int32Value":pe.INT32,"google.protobuf.UInt32Value":pe.UINT32,"google.protobuf.BoolValue":pe.BOOL,"google.protobuf.StringValue":pe.STRING,"google.protobuf.BytesValue":pe.BYTES};var Gj={ignoreUnknownFields:!1},Qj={emitDefaultValues:!1,enumAsInteger:!1,useProtoFieldName:!1,prettySpaces:0};function Kpe(e){return e?Object.assign(Object.assign({},Gj),e):Gj}function $pe(e){return e?Object.assign(Object.assign({},Qj),e):Qj}var Ph=Symbol(),Ah=Symbol();function zj(){return{makeReadOptions:Kpe,makeWriteOptions:$pe,readMessage(e,t,n,r){if(t==null||Array.isArray(t)||typeof t!="object")throw new Error(`cannot decode message ${e.typeName} from JSON: ${ms(t)}`);r=r!=null?r:new e;let i=new Map,a=n.typeRegistry;for(let[o,u]of Object.entries(t)){let l=e.fields.findJsonName(o);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}", "${o}"`);i.set(l.oneof,o)}Yj(r,u,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,h]=Sh(p);Yj(E,u,p.field,n,p),Kj(r,p,h(),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(!Dh(i,e)){if(i.req)throw"required field not set";if(!t.emitDefaultValues||!Qpe(i))continue}let o=i.oneof?e[i.oneof.localName].value:e[i.localName],u=Jj(i,o,t);u!==void 0&&(r[t.useProtoFieldName?i.name:i.jsonName]=u)}let a=t.typeRegistry;if(a!=null&&a.findExtensionFor)for(let o of n.runtime.bin.listUnknownFields(e)){let u=a.findExtensionFor(n.typeName,o.no);if(u&&Bb(e,u)){let l=jj(e,u,t),d=Jj(u.field,l,t);d!==void 0&&(r[u.field.jsonName]=d)}}}catch(a){let o=i?`cannot encode field ${n.typeName}.${i.name} to JSON`:`cannot encode message ${n.typeName} to JSON`,u=a instanceof Error?a.message:String(a);throw new Error(o+(u.length>0?`: ${u}`:""))}return r},readScalar(e,t,n){return Up(e,t,n!=null?n:Ba.BIGINT,!0)},writeScalar(e,t,n){if(t!==void 0&&(n||gh(e,t)))return Rh(e,t)},debug:ms}}function ms(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: ${ms(t)}`);let o=e[a];for(let u of t){if(u===null)throw new Error(`cannot decode field ${i.typeName}.${n.name} from JSON: ${ms(u)}`);switch(n.kind){case"message":o.push(n.T.fromJson(u,r));break;case"enum":let l=Mb(n.T,u,r.ignoreUnknownFields,!0);l!==Ah&&o.push(l);break;case"scalar":try{o.push(Up(n.T,u,n.L,!0))}catch(d){let p=`cannot decode field ${i.typeName}.${n.name} from JSON: ${ms(u)}`;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: ${ms(t)}`);let o=e[a];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=Gpe(n.K,u)}catch(p){let E=`cannot decode map key for field ${i.typeName}.${n.name} from JSON: ${ms(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=Mb(n.V.T,l,r.ignoreUnknownFields,!0);p!==Ah&&(o[d]=p);break;case"scalar":try{o[d]=Up(n.V.T,l,Ba.BIGINT,!0)}catch(E){let h=`cannot decode map value for field ${i.typeName}.${n.name} from JSON: ${ms(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:a},a="value"),n.kind){case"message":let o=n.T;if(t===null&&o.typeName!="google.protobuf.Value")return;let u=e[a];Ma(u)?u.fromJson(t,r):(e[a]=u=o.fromJson(t,r),o.fieldWrapper&&!n.oneof&&(e[a]=o.fieldWrapper.unwrapField(u)));break;case"enum":let l=Mb(n.T,t,r.ignoreUnknownFields,!1);switch(l){case Ph:kb(n,e);break;case Ah:break;default:e[a]=l;break}break;case"scalar":try{let d=Up(n.T,t,n.L,!1);switch(d){case Ph:kb(n,e);break;default:e[a]=d;break}}catch(d){let p=`cannot decode field ${i.typeName}.${n.name} from JSON: ${ms(t)}`;throw d instanceof Error&&d.message.length>0&&(p+=`: ${d.message}`),new Error(p)}break}}function Gpe(e,t){if(e===pe.BOOL)switch(t){case"true":t=!0;break;case"false":t=!1;break}return Up(e,t,Ba.BIGINT,!0).toString()}function Up(e,t,n,r){if(t===null)return r?ka(e,n):Ph;switch(e){case pe.DOUBLE:case pe.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==pe.FLOAT&&hh(i),i;case pe.INT32:case pe.FIXED32:case pe.SFIXED32:case pe.SINT32:case pe.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==pe.UINT32||e==pe.FIXED32?Cp(a):_d(a),a;case pe.INT64:case pe.SFIXED64:case pe.SINT64:if(typeof t!="number"&&typeof t!="string")break;let o=Jn.parse(t);return n?o.toString():o;case pe.FIXED64:case pe.UINT64:if(typeof t!="number"&&typeof t!="string")break;let u=Jn.uParse(t);return n?u.toString():u;case pe.BOOL:if(typeof t!="boolean")break;return t;case pe.STRING:if(typeof t!="string")break;try{encodeURIComponent(t)}catch(l){throw new Error("invalid UTF8")}return t;case pe.BYTES:if(t==="")return new Uint8Array(0);if(typeof t!="string")break;return Ub.dec(t)}throw new Error}function Mb(e,t,n,r){if(t===null)return e.typeName=="google.protobuf.NullValue"?0:r?e.values[0].no:Ph;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 Ah;break}throw new Error(`cannot decode enum ${e.typeName} from JSON: ${ms(t)}`)}function Qpe(e){return e.repeated||e.kind=="map"?!0:!(e.oneof||e.kind=="message"||e.opt||e.req)}function Jj(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,u]of i)r[o.toString()]=Rh(e.V.T,u);break;case"message":for(let[o,u]of i)r[o.toString()]=u.toJson(n);break;case"enum":let a=e.V.T;for(let[o,u]of i)r[o.toString()]=xb(a,u,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 Rh(e.T,t);case"enum":return xb(e.T,t,n.enumAsInteger);case"message":return bh(e.T,t).toJson(n)}}function xb(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 Rh(e,t){switch(e){case pe.INT32:case pe.SFIXED32:case pe.SINT32:case pe.FIXED32:case pe.UINT32:return pn(typeof t=="number"),t;case pe.FLOAT:case pe.DOUBLE:return pn(typeof t=="number"),Number.isNaN(t)?"NaN":t===Number.POSITIVE_INFINITY?"Infinity":t===Number.NEGATIVE_INFINITY?"-Infinity":t;case pe.STRING:return pn(typeof t=="string"),t;case pe.BOOL:return pn(typeof t=="boolean"),t;case pe.UINT64:case pe.FIXED64:case pe.INT64:case pe.SFIXED64:case pe.SINT64:return pn(typeof t=="bigint"||typeof t=="string"||typeof t=="number"),t.toString();case pe.BYTES:return pn(t instanceof Uint8Array),Ub.enc(t)}}m();T();N();var vd=Symbol("@bufbuild/protobuf/unknown-fields"),Hj={readUnknownFields:!0,readerFactory:e=>new vh(e)},Wj={writeUnknownFields:!0,writerFactory:()=>new _h};function Ype(e){return e?Object.assign(Object.assign({},Hj),e):Hj}function Jpe(e){return e?Object.assign(Object.assign({},Wj),e):Wj}function tK(){return{makeReadOptions:Ype,makeWriteOptions:Jpe,listUnknownFields(e){var t;return(t=e[vd])!==null&&t!==void 0?t:[]},discardUnknownFields(e){delete e[vd]},writeUnknownFields(e,t){let r=e[vd];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[vd])||(i[vd]=[]),i[vd].push({no:t,wireType:n,data:r})},readMessage(e,t,n,r,i){let a=e.getType(),o=i?t.len:t.pos+n,u,l;for(;t.pos0&&(l=Hpe),a){let h=e[o];if(r==xn.LengthDelimited&&u!=pe.STRING&&u!=pe.BYTES){let R=t.uint32()+t.pos;for(;t.posMa(h,E)?h:new E(h));else{let h=o[i];E.fieldWrapper?E.typeName==="google.protobuf.BytesValue"?a[i]=kp(h):a[i]=h:a[i]=Ma(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],a=n[r.localName];if(r.repeated){if(i.length!==a.length)return!1;switch(r.kind){case"message":return i.every((o,u)=>r.T.equals(o,a[u]));case"scalar":return i.every((o,u)=>xs(r.T,o,a[u]));case"enum":return i.every((o,u)=>xs(pe.INT32,o,a[u]))}throw new Error(`repeated cannot contain ${r.kind}`)}switch(r.kind){case"message":return r.T.equals(i,a);case"enum":return xs(pe.INT32,i,a);case"scalar":return xs(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 xs(pe.INT32,i.value,a.value);case"scalar":return xs(o.T,i.value,a.value)}throw new Error(`oneof cannot contain ${o.kind}`);case"map":let u=Object.keys(i).concat(Object.keys(a));switch(r.V.kind){case"message":let l=r.V.T;return u.every(p=>l.equals(i[p],a[p]));case"enum":return u.every(p=>xs(pe.INT32,i[p],a[p]));case"scalar":let d=r.V.T;return u.every(p=>xs(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(Lh);else if(i.kind=="map"){o=r[i.localName];for(let[u,l]of Object.entries(a))o[u]=Lh(l)}else i.kind=="oneof"?o=i.findField(a.case)?{case:a.case,value:Lh(a.value)}:{case:void 0}:o=Lh(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 Lh(e){if(e===void 0)return e;if(Ma(e))return e.clone();if(e instanceof Uint8Array){let t=new Uint8Array(e.byteLength);return t.set(e),t}return e}function kp(e){return e instanceof Uint8Array?e:new Uint8Array(e)}function iK(e,t,n){return{syntax:e,json:zj(),bin:tK(),util:Object.assign(Object.assign({},rK()),{newFieldList:t,initFields:n}),makeMessageType(r,i,a){return Cj(this,r,i,a)},makeEnum:wj,makeEnumType:Pb,getEnumType:Fj,makeExtension(r,i,a){return qj(this,r,i,a)}}}m();T();N();var Ch=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 qb(e,t){let n=oK(e);return t?n:nme(tme(n))}function aK(e){return qb(e,!1)}var sK=oK;function oK(e){let t=!1,n=[];for(let r=0;r`${e}$`,tme=e=>eme.has(e)?uK(e):e,nme=e=>Zpe.has(e)?uK(e):e;var Uh=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=aK(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 Ch(e,t=>cK(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]=ka(t.T,t.L);break;case"message":break}}});var Sd;(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"})(Sd||(Sd={}));C.util.setEnumType(Sd,"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 Vs;(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"})(Vs||(Vs={}));C.util.setEnumType(Vs,"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 js;(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"})(js||(js={}));C.util.setEnumType(js,"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 yK=Ii(Se(),1);m();T();N();var Vb;(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"})(Vb||(Vb={}));C.util.setEnumType(Vb,"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 zc;(function(e){e[e.OBJECT_FIELD=0]="OBJECT_FIELD",e[e.FIELD_ARGUMENT=1]="FIELD_ARGUMENT"})(zc||(zc={}));C.util.setEnumType(zc,"wg.cosmo.node.v1.ArgumentSource",[{no:0,name:"OBJECT_FIELD"},{no:1,name:"FIELD_ARGUMENT"}]);var qu;(function(e){e[e.STATIC=0]="STATIC",e[e.GRAPHQL=1]="GRAPHQL",e[e.PUBSUB=2]="PUBSUB"})(qu||(qu={}));C.util.setEnumType(qu,"wg.cosmo.node.v1.DataSourceKind",[{no:0,name:"STATIC"},{no:1,name:"GRAPHQL"},{no:2,name:"PUBSUB"}]);var Mp;(function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.RESOLVE=1]="RESOLVE",e[e.REQUIRES=2]="REQUIRES"})(Mp||(Mp={}));C.util.setEnumType(Mp,"wg.cosmo.node.v1.LookupType",[{no:0,name:"LOOKUP_TYPE_UNSPECIFIED"},{no:1,name:"LOOKUP_TYPE_RESOLVE"},{no:2,name:"LOOKUP_TYPE_REQUIRES"}]);var xp;(function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.QUERY=1]="QUERY",e[e.MUTATION=2]="MUTATION",e[e.SUBSCRIPTION=3]="SUBSCRIPTION"})(xp||(xp={}));C.util.setEnumType(xp,"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 nu;(function(e){e[e.PUBLISH=0]="PUBLISH",e[e.REQUEST=1]="REQUEST",e[e.SUBSCRIBE=2]="SUBSCRIBE"})(nu||(nu={}));C.util.setEnumType(nu,"wg.cosmo.node.v1.EventType",[{no:0,name:"PUBLISH"},{no:1,name:"REQUEST"},{no:2,name:"SUBSCRIBE"}]);var Vu;(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"})(Vu||(Vu={}));C.util.setEnumType(Vu,"wg.cosmo.node.v1.ConfigurationVariableKind",[{no:0,name:"STATIC_CONFIGURATION_VARIABLE"},{no:1,name:"ENV_CONFIGURATION_VARIABLE"},{no:2,name:"PLACEHOLDER_CONFIGURATION_VARIABLE"}]);var Hc;(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"})(Hc||(Hc={}));C.util.setEnumType(Hc,"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 Ks=class Ks extends Re{constructor(n){super();g(this,"id","");g(this,"name","");g(this,"routingUrl","");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)}};g(Ks,"runtime",C),g(Ks,"typeName","wg.cosmo.node.v1.Subgraph"),g(Ks,"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 Bh=Ks,$s=class $s extends Re{constructor(n){super();g(this,"configByFeatureFlagName",{});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)}};g($s,"runtime",C),g($s,"typeName","wg.cosmo.node.v1.FeatureFlagRouterExecutionConfigs"),g($s,"fields",C.util.newFieldList(()=>[{no:1,name:"config_by_feature_flag_name",kind:"map",K:9,V:{kind:"message",T:Kb}}]));var jb=$s,Gs=class Gs extends Re{constructor(n){super();g(this,"engineConfig");g(this,"version","");g(this,"subgraphs",[]);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)}};g(Gs,"runtime",C),g(Gs,"typeName","wg.cosmo.node.v1.FeatureFlagRouterExecutionConfig"),g(Gs,"fields",C.util.newFieldList(()=>[{no:1,name:"engine_config",kind:"message",T:Od},{no:2,name:"version",kind:"scalar",T:9},{no:3,name:"subgraphs",kind:"message",T:Bh,repeated:!0}]));var Kb=Gs,Qs=class Qs extends Re{constructor(n){super();g(this,"engineConfig");g(this,"version","");g(this,"subgraphs",[]);g(this,"featureFlagConfigs");g(this,"compatibilityVersion","");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)}};g(Qs,"runtime",C),g(Qs,"typeName","wg.cosmo.node.v1.RouterConfig"),g(Qs,"fields",C.util.newFieldList(()=>[{no:1,name:"engine_config",kind:"message",T:Od},{no:2,name:"version",kind:"scalar",T:9},{no:3,name:"subgraphs",kind:"message",T:Bh,repeated:!0},{no:4,name:"feature_flag_configs",kind:"message",T:jb,opt:!0},{no:5,name:"compatibility_version",kind:"scalar",T:9}]));var qp=Qs,Ys=class Ys extends Re{constructor(n){super();g(this,"code",Sd.OK);g(this,"details");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)}};g(Ys,"runtime",C),g(Ys,"typeName","wg.cosmo.node.v1.Response"),g(Ys,"fields",C.util.newFieldList(()=>[{no:1,name:"code",kind:"enum",T:C.getEnumType(Sd)},{no:2,name:"details",kind:"scalar",T:9,opt:!0}]));var $b=Ys,Js=class Js extends Re{constructor(n){super();g(this,"code",0);g(this,"message","");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)}};g(Js,"runtime",C),g(Js,"typeName","wg.cosmo.node.v1.ResponseStatus"),g(Js,"fields",C.util.newFieldList(()=>[{no:1,name:"code",kind:"scalar",T:5},{no:2,name:"message",kind:"scalar",T:9}]));var lK=Js,zs=class zs extends Re{constructor(n){super();g(this,"accountLimits");g(this,"graphPublicKey","");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)}};g(zs,"runtime",C),g(zs,"typeName","wg.cosmo.node.v1.RegistrationInfo"),g(zs,"fields",C.util.newFieldList(()=>[{no:1,name:"account_limits",kind:"message",T:Qb},{no:2,name:"graph_public_key",kind:"scalar",T:9}]));var Gb=zs,Hs=class Hs extends Re{constructor(n){super();g(this,"traceSamplingRate",0);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)}};g(Hs,"runtime",C),g(Hs,"typeName","wg.cosmo.node.v1.AccountLimits"),g(Hs,"fields",C.util.newFieldList(()=>[{no:1,name:"trace_sampling_rate",kind:"scalar",T:2}]));var Qb=Hs,Ws=class Ws extends Re{constructor(t){super(),C.util.initPartial(t,this)}static fromBinary(t,n){return new Ws().fromBinary(t,n)}static fromJson(t,n){return new Ws().fromJson(t,n)}static fromJsonString(t,n){return new Ws().fromJsonString(t,n)}static equals(t,n){return C.util.equals(Ws,t,n)}};g(Ws,"runtime",C),g(Ws,"typeName","wg.cosmo.node.v1.SelfRegisterRequest"),g(Ws,"fields",C.util.newFieldList(()=>[]));var dK=Ws,Xs=class Xs extends Re{constructor(n){super();g(this,"response");g(this,"registrationInfo");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)}};g(Xs,"runtime",C),g(Xs,"typeName","wg.cosmo.node.v1.SelfRegisterResponse"),g(Xs,"fields",C.util.newFieldList(()=>[{no:1,name:"response",kind:"message",T:$b},{no:2,name:"registrationInfo",kind:"message",T:Gb,opt:!0}]));var fK=Xs,Zs=class Zs extends Re{constructor(n){super();g(this,"defaultFlushInterval",Jn.zero);g(this,"datasourceConfigurations",[]);g(this,"fieldConfigurations",[]);g(this,"graphqlSchema","");g(this,"typeConfigurations",[]);g(this,"stringStorage",{});g(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)}};g(Zs,"runtime",C),g(Zs,"typeName","wg.cosmo.node.v1.EngineConfiguration"),g(Zs,"fields",C.util.newFieldList(()=>[{no:1,name:"defaultFlushInterval",kind:"scalar",T:3},{no:2,name:"datasource_configurations",kind:"message",T:Vp,repeated:!0},{no:3,name:"field_configurations",kind:"message",T:Yp,repeated:!0},{no:4,name:"graphqlSchema",kind:"scalar",T:9},{no:5,name:"type_configurations",kind:"message",T:Yb,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 Od=Zs,eo=class eo extends Re{constructor(n){super();g(this,"kind",qu.STATIC);g(this,"rootNodes",[]);g(this,"childNodes",[]);g(this,"overrideFieldPathFromAlias",!1);g(this,"customGraphql");g(this,"customStatic");g(this,"directives",[]);g(this,"requestTimeoutSeconds",Jn.zero);g(this,"id","");g(this,"keys",[]);g(this,"provides",[]);g(this,"requires",[]);g(this,"customEvents");g(this,"entityInterfaces",[]);g(this,"interfaceObjects",[]);g(this,"costConfiguration");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)}};g(eo,"runtime",C),g(eo,"typeName","wg.cosmo.node.v1.DataSourceConfiguration"),g(eo,"fields",C.util.newFieldList(()=>[{no:1,name:"kind",kind:"enum",T:C.getEnumType(qu)},{no:2,name:"root_nodes",kind:"message",T:Dd,repeated:!0},{no:3,name:"child_nodes",kind:"message",T:Dd,repeated:!0},{no:4,name:"override_field_path_from_alias",kind:"scalar",T:8},{no:5,name:"custom_graphql",kind:"message",T:Hp},{no:6,name:"custom_static",kind:"message",T:sA},{no:7,name:"directives",kind:"message",T:oA,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:Jc,repeated:!0},{no:11,name:"provides",kind:"message",T:Jc,repeated:!0},{no:12,name:"requires",kind:"message",T:Jc,repeated:!0},{no:13,name:"custom_events",kind:"message",T:Xc},{no:14,name:"entity_interfaces",kind:"message",T:bd,repeated:!0},{no:15,name:"interface_objects",kind:"message",T:bd,repeated:!0},{no:16,name:"cost_configuration",kind:"message",T:jp}]));var Vp=eo,to=class to extends Re{constructor(n){super();g(this,"fieldWeights",[]);g(this,"listSizes",[]);g(this,"typeWeights",{});g(this,"directiveArgumentWeights",{});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)}};g(to,"runtime",C),g(to,"typeName","wg.cosmo.node.v1.CostConfiguration"),g(to,"fields",C.util.newFieldList(()=>[{no:1,name:"field_weights",kind:"message",T:Kp,repeated:!0},{no:2,name:"list_sizes",kind:"message",T:$p,repeated:!0},{no:3,name:"type_weights",kind:"map",K:9,V:{kind:"scalar",T:5}},{no:4,name:"directive_argument_weights",kind:"map",K:9,V:{kind:"scalar",T:5}}]));var jp=to,no=class no extends Re{constructor(n){super();g(this,"typeName","");g(this,"fieldName","");g(this,"weight");g(this,"argumentWeights",{});g(this,"directiveArgumentWeights",{});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)}};g(no,"runtime",C),g(no,"typeName","wg.cosmo.node.v1.FieldWeightConfiguration"),g(no,"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:"weight",kind:"scalar",T:5,opt:!0},{no:4,name:"argument_weights",kind:"map",K:9,V:{kind:"scalar",T:5}},{no:5,name:"directive_argument_weights",kind:"map",K:9,V:{kind:"scalar",T:5}}]));var Kp=no,ro=class ro extends Re{constructor(n){super();g(this,"typeName","");g(this,"fieldName","");g(this,"assumedSize");g(this,"slicingArguments",[]);g(this,"sizedFields",[]);g(this,"requireOneSlicingArgument");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)}};g(ro,"runtime",C),g(ro,"typeName","wg.cosmo.node.v1.FieldListSizeConfiguration"),g(ro,"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:"assumed_size",kind:"scalar",T:5,opt:!0},{no:4,name:"slicing_arguments",kind:"scalar",T:9,repeated:!0},{no:5,name:"sized_fields",kind:"scalar",T:9,repeated:!0},{no:6,name:"require_one_slicing_argument",kind:"scalar",T:8,opt:!0}]));var $p=ro,io=class io extends Re{constructor(n){super();g(this,"name","");g(this,"sourceType",zc.OBJECT_FIELD);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)}};g(io,"runtime",C),g(io,"typeName","wg.cosmo.node.v1.ArgumentConfiguration"),g(io,"fields",C.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"source_type",kind:"enum",T:C.getEnumType(zc)}]));var Gp=io,ao=class ao extends Re{constructor(n){super();g(this,"requiredAndScopes",[]);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)}};g(ao,"runtime",C),g(ao,"typeName","wg.cosmo.node.v1.Scopes"),g(ao,"fields",C.util.newFieldList(()=>[{no:1,name:"required_and_scopes",kind:"scalar",T:9,repeated:!0}]));var Wc=ao,so=class so extends Re{constructor(n){super();g(this,"requiresAuthentication",!1);g(this,"requiredOrScopes",[]);g(this,"requiredOrScopesByOr",[]);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)}};g(so,"runtime",C),g(so,"typeName","wg.cosmo.node.v1.AuthorizationConfiguration"),g(so,"fields",C.util.newFieldList(()=>[{no:1,name:"requires_authentication",kind:"scalar",T:8},{no:2,name:"required_or_scopes",kind:"message",T:Wc,repeated:!0},{no:3,name:"required_or_scopes_by_or",kind:"message",T:Wc,repeated:!0}]));var Qp=so,oo=class oo extends Re{constructor(n){super();g(this,"typeName","");g(this,"fieldName","");g(this,"argumentsConfiguration",[]);g(this,"authorizationConfiguration");g(this,"subscriptionFilterCondition");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)}};g(oo,"runtime",C),g(oo,"typeName","wg.cosmo.node.v1.FieldConfiguration"),g(oo,"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:Gp,repeated:!0},{no:4,name:"authorization_configuration",kind:"message",T:Qp},{no:5,name:"subscription_filter_condition",kind:"message",T:ju,opt:!0}]));var Yp=oo,uo=class uo extends Re{constructor(n){super();g(this,"typeName","");g(this,"renameTo","");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)}};g(uo,"runtime",C),g(uo,"typeName","wg.cosmo.node.v1.TypeConfiguration"),g(uo,"fields",C.util.newFieldList(()=>[{no:1,name:"type_name",kind:"scalar",T:9},{no:2,name:"rename_to",kind:"scalar",T:9}]));var Yb=uo,co=class co extends Re{constructor(n){super();g(this,"typeName","");g(this,"fieldNames",[]);g(this,"externalFieldNames",[]);g(this,"requireFetchReasonsFieldNames",[]);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)}};g(co,"runtime",C),g(co,"typeName","wg.cosmo.node.v1.TypeField"),g(co,"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 Dd=co,lo=class lo extends Re{constructor(n){super();g(this,"fieldName","");g(this,"typeName","");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)}};g(lo,"runtime",C),g(lo,"typeName","wg.cosmo.node.v1.FieldCoordinates"),g(lo,"fields",C.util.newFieldList(()=>[{no:1,name:"field_name",kind:"scalar",T:9},{no:2,name:"type_name",kind:"scalar",T:9}]));var Jp=lo,fo=class fo extends Re{constructor(n){super();g(this,"fieldCoordinatesPath",[]);g(this,"fieldPath",[]);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)}};g(fo,"runtime",C),g(fo,"typeName","wg.cosmo.node.v1.FieldSetCondition"),g(fo,"fields",C.util.newFieldList(()=>[{no:1,name:"field_coordinates_path",kind:"message",T:Jp,repeated:!0},{no:2,name:"field_path",kind:"scalar",T:9,repeated:!0}]));var zp=fo,po=class po extends Re{constructor(n){super();g(this,"typeName","");g(this,"fieldName","");g(this,"selectionSet","");g(this,"disableEntityResolver",!1);g(this,"conditions",[]);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)}};g(po,"runtime",C),g(po,"typeName","wg.cosmo.node.v1.RequiredField"),g(po,"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:zp,repeated:!0}]));var Jc=po,mo=class mo extends Re{constructor(n){super();g(this,"interfaceTypeName","");g(this,"concreteTypeNames",[]);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)}};g(mo,"runtime",C),g(mo,"typeName","wg.cosmo.node.v1.EntityInterfaceConfiguration"),g(mo,"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 bd=mo,No=class No extends Re{constructor(n){super();g(this,"url");g(this,"method",Hc.GET);g(this,"header",{});g(this,"body");g(this,"query",[]);g(this,"urlEncodeBody",!1);g(this,"mtls");g(this,"baseUrl");g(this,"path");g(this,"httpProxyUrl");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)}};g(No,"runtime",C),g(No,"typeName","wg.cosmo.node.v1.FetchConfiguration"),g(No,"fields",C.util.newFieldList(()=>[{no:1,name:"url",kind:"message",T:Wr},{no:2,name:"method",kind:"enum",T:C.getEnumType(Hc)},{no:3,name:"header",kind:"map",K:9,V:{kind:"message",T:cA}},{no:4,name:"body",kind:"message",T:Wr},{no:5,name:"query",kind:"message",T:uA,repeated:!0},{no:7,name:"url_encode_body",kind:"scalar",T:8},{no:8,name:"mtls",kind:"message",T:lA},{no:9,name:"base_url",kind:"message",T:Wr},{no:10,name:"path",kind:"message",T:Wr},{no:11,name:"http_proxy_url",kind:"message",T:Wr,opt:!0}]));var Jb=No,To=class To extends Re{constructor(n){super();g(this,"statusCode",Jn.zero);g(this,"typeName","");g(this,"injectStatusCodeIntoBody",!1);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)}};g(To,"runtime",C),g(To,"typeName","wg.cosmo.node.v1.StatusCodeTypeMapping"),g(To,"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 pK=To,Eo=class Eo extends Re{constructor(n){super();g(this,"fetch");g(this,"subscription");g(this,"federation");g(this,"upstreamSchema");g(this,"customScalarTypeFields",[]);g(this,"grpc");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)}};g(Eo,"runtime",C),g(Eo,"typeName","wg.cosmo.node.v1.DataSourceCustom_GraphQL"),g(Eo,"fields",C.util.newFieldList(()=>[{no:1,name:"fetch",kind:"message",T:Jb},{no:2,name:"subscription",kind:"message",T:dA},{no:3,name:"federation",kind:"message",T:fA},{no:4,name:"upstream_schema",kind:"message",T:rm},{no:6,name:"custom_scalar_type_fields",kind:"message",T:pA,repeated:!0},{no:7,name:"grpc",kind:"message",T:Ad}]));var Hp=Eo,ho=class ho extends Re{constructor(n){super();g(this,"mapping");g(this,"protoSchema","");g(this,"plugin");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)}};g(ho,"runtime",C),g(ho,"typeName","wg.cosmo.node.v1.GRPCConfiguration"),g(ho,"fields",C.util.newFieldList(()=>[{no:1,name:"mapping",kind:"message",T:Hb},{no:2,name:"proto_schema",kind:"scalar",T:9},{no:3,name:"plugin",kind:"message",T:Wp}]));var Ad=ho,yo=class yo extends Re{constructor(n){super();g(this,"repository","");g(this,"reference","");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)}};g(yo,"runtime",C),g(yo,"typeName","wg.cosmo.node.v1.ImageReference"),g(yo,"fields",C.util.newFieldList(()=>[{no:1,name:"repository",kind:"scalar",T:9},{no:2,name:"reference",kind:"scalar",T:9}]));var zb=yo,Io=class Io extends Re{constructor(n){super();g(this,"name","");g(this,"version","");g(this,"imageReference");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)}};g(Io,"runtime",C),g(Io,"typeName","wg.cosmo.node.v1.PluginConfiguration"),g(Io,"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:zb,opt:!0}]));var Wp=Io,go=class go extends Re{constructor(n){super();g(this,"enabled",!1);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)}};g(go,"runtime",C),g(go,"typeName","wg.cosmo.node.v1.SSLConfiguration"),g(go,"fields",C.util.newFieldList(()=>[{no:1,name:"enabled",kind:"scalar",T:8}]));var mK=go,_o=class _o extends Re{constructor(n){super();g(this,"version",0);g(this,"service","");g(this,"operationMappings",[]);g(this,"entityMappings",[]);g(this,"typeFieldMappings",[]);g(this,"enumMappings",[]);g(this,"resolveMappings",[]);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)}};g(_o,"runtime",C),g(_o,"typeName","wg.cosmo.node.v1.GRPCMapping"),g(_o,"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:Zb,repeated:!0},{no:4,name:"entity_mappings",kind:"message",T:eA,repeated:!0},{no:5,name:"type_field_mappings",kind:"message",T:nA,repeated:!0},{no:6,name:"enum_mappings",kind:"message",T:iA,repeated:!0},{no:7,name:"resolve_mappings",kind:"message",T:Wb,repeated:!0}]));var Hb=_o,vo=class vo extends Re{constructor(n){super();g(this,"type",Mp.UNSPECIFIED);g(this,"lookupMapping");g(this,"rpc","");g(this,"request","");g(this,"response","");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)}};g(vo,"runtime",C),g(vo,"typeName","wg.cosmo.node.v1.LookupMapping"),g(vo,"fields",C.util.newFieldList(()=>[{no:1,name:"type",kind:"enum",T:C.getEnumType(Mp)},{no:2,name:"lookup_mapping",kind:"message",T:Xb},{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 Wb=vo,So=class So extends Re{constructor(n){super();g(this,"type","");g(this,"fieldMapping");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)}};g(So,"runtime",C),g(So,"typeName","wg.cosmo.node.v1.LookupFieldMapping"),g(So,"fields",C.util.newFieldList(()=>[{no:1,name:"type",kind:"scalar",T:9},{no:2,name:"field_mapping",kind:"message",T:Xp}]));var Xb=So,Oo=class Oo extends Re{constructor(n){super();g(this,"type",xp.UNSPECIFIED);g(this,"original","");g(this,"mapped","");g(this,"request","");g(this,"response","");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)}};g(Oo,"runtime",C),g(Oo,"typeName","wg.cosmo.node.v1.OperationMapping"),g(Oo,"fields",C.util.newFieldList(()=>[{no:1,name:"type",kind:"enum",T:C.getEnumType(xp)},{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 Zb=Oo,Do=class Do extends Re{constructor(n){super();g(this,"typeName","");g(this,"kind","");g(this,"key","");g(this,"rpc","");g(this,"request","");g(this,"response","");g(this,"requiredFieldMappings",[]);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)}};g(Do,"runtime",C),g(Do,"typeName","wg.cosmo.node.v1.EntityMapping"),g(Do,"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},{no:7,name:"required_field_mappings",kind:"message",T:tA,repeated:!0}]));var eA=Do,bo=class bo extends Re{constructor(n){super();g(this,"fieldMapping");g(this,"rpc","");g(this,"request","");g(this,"response","");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)}};g(bo,"runtime",C),g(bo,"typeName","wg.cosmo.node.v1.RequiredFieldMapping"),g(bo,"fields",C.util.newFieldList(()=>[{no:1,name:"field_mapping",kind:"message",T:Xp},{no:2,name:"rpc",kind:"scalar",T:9},{no:3,name:"request",kind:"scalar",T:9},{no:4,name:"response",kind:"scalar",T:9}]));var tA=bo,Ao=class Ao extends Re{constructor(n){super();g(this,"type","");g(this,"fieldMappings",[]);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)}};g(Ao,"runtime",C),g(Ao,"typeName","wg.cosmo.node.v1.TypeFieldMapping"),g(Ao,"fields",C.util.newFieldList(()=>[{no:1,name:"type",kind:"scalar",T:9},{no:2,name:"field_mappings",kind:"message",T:Xp,repeated:!0}]));var nA=Ao,Ro=class Ro extends Re{constructor(n){super();g(this,"original","");g(this,"mapped","");g(this,"argumentMappings",[]);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)}};g(Ro,"runtime",C),g(Ro,"typeName","wg.cosmo.node.v1.FieldMapping"),g(Ro,"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:rA,repeated:!0}]));var Xp=Ro,Po=class Po extends Re{constructor(n){super();g(this,"original","");g(this,"mapped","");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)}};g(Po,"runtime",C),g(Po,"typeName","wg.cosmo.node.v1.ArgumentMapping"),g(Po,"fields",C.util.newFieldList(()=>[{no:1,name:"original",kind:"scalar",T:9},{no:2,name:"mapped",kind:"scalar",T:9}]));var rA=Po,Fo=class Fo extends Re{constructor(n){super();g(this,"type","");g(this,"values",[]);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)}};g(Fo,"runtime",C),g(Fo,"typeName","wg.cosmo.node.v1.EnumMapping"),g(Fo,"fields",C.util.newFieldList(()=>[{no:1,name:"type",kind:"scalar",T:9},{no:2,name:"values",kind:"message",T:aA,repeated:!0}]));var iA=Fo,wo=class wo extends Re{constructor(n){super();g(this,"original","");g(this,"mapped","");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)}};g(wo,"runtime",C),g(wo,"typeName","wg.cosmo.node.v1.EnumValueMapping"),g(wo,"fields",C.util.newFieldList(()=>[{no:1,name:"original",kind:"scalar",T:9},{no:2,name:"mapped",kind:"scalar",T:9}]));var aA=wo,Lo=class Lo extends Re{constructor(n){super();g(this,"consumerName","");g(this,"streamName","");g(this,"consumerInactiveThreshold",0);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)}};g(Lo,"runtime",C),g(Lo,"typeName","wg.cosmo.node.v1.NatsStreamConfiguration"),g(Lo,"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 Zp=Lo,Co=class Co extends Re{constructor(n){super();g(this,"engineEventConfiguration");g(this,"subjects",[]);g(this,"streamConfiguration");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)}};g(Co,"runtime",C),g(Co,"typeName","wg.cosmo.node.v1.NatsEventConfiguration"),g(Co,"fields",C.util.newFieldList(()=>[{no:1,name:"engine_event_configuration",kind:"message",T:ru},{no:2,name:"subjects",kind:"scalar",T:9,repeated:!0},{no:3,name:"stream_configuration",kind:"message",T:Zp}]));var em=Co,Uo=class Uo extends Re{constructor(n){super();g(this,"engineEventConfiguration");g(this,"topics",[]);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)}};g(Uo,"runtime",C),g(Uo,"typeName","wg.cosmo.node.v1.KafkaEventConfiguration"),g(Uo,"fields",C.util.newFieldList(()=>[{no:1,name:"engine_event_configuration",kind:"message",T:ru},{no:2,name:"topics",kind:"scalar",T:9,repeated:!0}]));var tm=Uo,Bo=class Bo extends Re{constructor(n){super();g(this,"engineEventConfiguration");g(this,"channels",[]);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)}};g(Bo,"runtime",C),g(Bo,"typeName","wg.cosmo.node.v1.RedisEventConfiguration"),g(Bo,"fields",C.util.newFieldList(()=>[{no:1,name:"engine_event_configuration",kind:"message",T:ru},{no:2,name:"channels",kind:"scalar",T:9,repeated:!0}]));var nm=Bo,ko=class ko extends Re{constructor(n){super();g(this,"providerId","");g(this,"type",nu.PUBLISH);g(this,"typeName","");g(this,"fieldName","");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)}};g(ko,"runtime",C),g(ko,"typeName","wg.cosmo.node.v1.EngineEventConfiguration"),g(ko,"fields",C.util.newFieldList(()=>[{no:1,name:"provider_id",kind:"scalar",T:9},{no:2,name:"type",kind:"enum",T:C.getEnumType(nu)},{no:3,name:"type_name",kind:"scalar",T:9},{no:4,name:"field_name",kind:"scalar",T:9}]));var ru=ko,Mo=class Mo extends Re{constructor(n){super();g(this,"nats",[]);g(this,"kafka",[]);g(this,"redis",[]);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)}};g(Mo,"runtime",C),g(Mo,"typeName","wg.cosmo.node.v1.DataSourceCustomEvents"),g(Mo,"fields",C.util.newFieldList(()=>[{no:1,name:"nats",kind:"message",T:em,repeated:!0},{no:2,name:"kafka",kind:"message",T:tm,repeated:!0},{no:3,name:"redis",kind:"message",T:nm,repeated:!0}]));var Xc=Mo,xo=class xo extends Re{constructor(n){super();g(this,"data");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)}};g(xo,"runtime",C),g(xo,"typeName","wg.cosmo.node.v1.DataSourceCustom_Static"),g(xo,"fields",C.util.newFieldList(()=>[{no:1,name:"data",kind:"message",T:Wr}]));var sA=xo,qo=class qo extends Re{constructor(n){super();g(this,"kind",Vu.STATIC_CONFIGURATION_VARIABLE);g(this,"staticVariableContent","");g(this,"environmentVariableName","");g(this,"environmentVariableDefaultValue","");g(this,"placeholderVariableName","");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)}};g(qo,"runtime",C),g(qo,"typeName","wg.cosmo.node.v1.ConfigurationVariable"),g(qo,"fields",C.util.newFieldList(()=>[{no:1,name:"kind",kind:"enum",T:C.getEnumType(Vu)},{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 Wr=qo,Vo=class Vo extends Re{constructor(n){super();g(this,"directiveName","");g(this,"renameTo","");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)}};g(Vo,"runtime",C),g(Vo,"typeName","wg.cosmo.node.v1.DirectiveConfiguration"),g(Vo,"fields",C.util.newFieldList(()=>[{no:1,name:"directive_name",kind:"scalar",T:9},{no:2,name:"rename_to",kind:"scalar",T:9}]));var oA=Vo,jo=class jo extends Re{constructor(n){super();g(this,"name","");g(this,"value","");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)}};g(jo,"runtime",C),g(jo,"typeName","wg.cosmo.node.v1.URLQueryConfiguration"),g(jo,"fields",C.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"value",kind:"scalar",T:9}]));var uA=jo,Ko=class Ko extends Re{constructor(n){super();g(this,"values",[]);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)}};g(Ko,"runtime",C),g(Ko,"typeName","wg.cosmo.node.v1.HTTPHeader"),g(Ko,"fields",C.util.newFieldList(()=>[{no:1,name:"values",kind:"message",T:Wr,repeated:!0}]));var cA=Ko,$o=class $o extends Re{constructor(n){super();g(this,"key");g(this,"cert");g(this,"insecureSkipVerify",!1);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)}};g($o,"runtime",C),g($o,"typeName","wg.cosmo.node.v1.MTLSConfiguration"),g($o,"fields",C.util.newFieldList(()=>[{no:1,name:"key",kind:"message",T:Wr},{no:2,name:"cert",kind:"message",T:Wr},{no:3,name:"insecureSkipVerify",kind:"scalar",T:8}]));var lA=$o,Go=class Go extends Re{constructor(n){super();g(this,"enabled",!1);g(this,"url");g(this,"useSSE");g(this,"protocol");g(this,"websocketSubprotocol");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)}};g(Go,"runtime",C),g(Go,"typeName","wg.cosmo.node.v1.GraphQLSubscriptionConfiguration"),g(Go,"fields",C.util.newFieldList(()=>[{no:1,name:"enabled",kind:"scalar",T:8},{no:2,name:"url",kind:"message",T:Wr},{no:3,name:"useSSE",kind:"scalar",T:8,opt:!0},{no:4,name:"protocol",kind:"enum",T:C.getEnumType(Vs),opt:!0},{no:5,name:"websocketSubprotocol",kind:"enum",T:C.getEnumType(js),opt:!0}]));var dA=Go,Qo=class Qo extends Re{constructor(n){super();g(this,"enabled",!1);g(this,"serviceSdl","");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)}};g(Qo,"runtime",C),g(Qo,"typeName","wg.cosmo.node.v1.GraphQLFederationConfiguration"),g(Qo,"fields",C.util.newFieldList(()=>[{no:1,name:"enabled",kind:"scalar",T:8},{no:2,name:"serviceSdl",kind:"scalar",T:9}]));var fA=Qo,Yo=class Yo extends Re{constructor(n){super();g(this,"key","");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)}};g(Yo,"runtime",C),g(Yo,"typeName","wg.cosmo.node.v1.InternedString"),g(Yo,"fields",C.util.newFieldList(()=>[{no:1,name:"key",kind:"scalar",T:9}]));var rm=Yo,Jo=class Jo extends Re{constructor(n){super();g(this,"typeName","");g(this,"fieldName","");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)}};g(Jo,"runtime",C),g(Jo,"typeName","wg.cosmo.node.v1.SingleTypeField"),g(Jo,"fields",C.util.newFieldList(()=>[{no:1,name:"type_name",kind:"scalar",T:9},{no:2,name:"field_name",kind:"scalar",T:9}]));var pA=Jo,zo=class zo extends Re{constructor(n){super();g(this,"fieldPath",[]);g(this,"json","");C.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 C.util.equals(zo,n,r)}};g(zo,"runtime",C),g(zo,"typeName","wg.cosmo.node.v1.SubscriptionFieldCondition"),g(zo,"fields",C.util.newFieldList(()=>[{no:1,name:"field_path",kind:"scalar",T:9,repeated:!0},{no:2,name:"json",kind:"scalar",T:9}]));var im=zo,sa=class sa extends Re{constructor(n){super();g(this,"and",[]);g(this,"in");g(this,"not");g(this,"or",[]);C.util.initPartial(n,this)}static fromBinary(n,r){return new sa().fromBinary(n,r)}static fromJson(n,r){return new sa().fromJson(n,r)}static fromJsonString(n,r){return new sa().fromJsonString(n,r)}static equals(n,r){return C.util.equals(sa,n,r)}};g(sa,"runtime",C),g(sa,"typeName","wg.cosmo.node.v1.SubscriptionFilterCondition"),g(sa,"fields",C.util.newFieldList(()=>[{no:1,name:"and",kind:"message",T:sa,repeated:!0},{no:2,name:"in",kind:"message",T:im,opt:!0},{no:3,name:"not",kind:"message",T:sa,opt:!0},{no:4,name:"or",kind:"message",T:sa,repeated:!0}]));var ju=sa,Ho=class Ho extends Re{constructor(n){super();g(this,"operations",[]);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)}};g(Ho,"runtime",C),g(Ho,"typeName","wg.cosmo.node.v1.CacheWarmerOperations"),g(Ho,"fields",C.util.newFieldList(()=>[{no:1,name:"operations",kind:"message",T:mA,repeated:!0}]));var NK=Ho,Wo=class Wo extends Re{constructor(n){super();g(this,"request");g(this,"client");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)}};g(Wo,"runtime",C),g(Wo,"typeName","wg.cosmo.node.v1.Operation"),g(Wo,"fields",C.util.newFieldList(()=>[{no:1,name:"request",kind:"message",T:NA},{no:2,name:"client",kind:"message",T:hA}]));var mA=Wo,Xo=class Xo extends Re{constructor(n){super();g(this,"operationName","");g(this,"query","");g(this,"extensions");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)}};g(Xo,"runtime",C),g(Xo,"typeName","wg.cosmo.node.v1.OperationRequest"),g(Xo,"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:TA}]));var NA=Xo,Zo=class Zo extends Re{constructor(n){super();g(this,"persistedQuery");C.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 C.util.equals(Zo,n,r)}};g(Zo,"runtime",C),g(Zo,"typeName","wg.cosmo.node.v1.Extension"),g(Zo,"fields",C.util.newFieldList(()=>[{no:1,name:"persisted_query",kind:"message",T:EA}]));var TA=Zo,eu=class eu extends Re{constructor(n){super();g(this,"sha256Hash","");g(this,"version",0);C.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 C.util.equals(eu,n,r)}};g(eu,"runtime",C),g(eu,"typeName","wg.cosmo.node.v1.PersistedQuery"),g(eu,"fields",C.util.newFieldList(()=>[{no:1,name:"sha256_hash",kind:"scalar",T:9},{no:2,name:"version",kind:"scalar",T:5}]));var EA=eu,tu=class tu extends Re{constructor(n){super();g(this,"name","");g(this,"version","");C.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 C.util.equals(tu,n,r)}};g(tu,"runtime",C),g(tu,"typeName","wg.cosmo.node.v1.ClientInfo"),g(tu,"fields",C.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"version",kind:"scalar",T:9}]));var hA=tu;m();T();N();function yA(e){return new Error(`Normalization failed to return a ${e}.`)}function TK(e){return new Error(`Invalid router compatibility version "${e}".`)}m();T();N();var Rd=Ii(Nh(),1);function rme(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 Jp({fieldName:a[1],typeName:a[0]}))}t.push(new zp({fieldCoordinatesPath:r,fieldPath:n.fieldPath}))}return t}function IA(e,t,n){if(e)for(let r of e){let i=rme(r);t.push(new Jc(M(M({typeName:n,fieldName:r.fieldName,selectionSet:r.selectionSet},r.disableEntityResolver?{disableEntityResolver:!0}:{}),i?{conditions:i}:{})))}}function gA(e){switch(e){case"publish":return nu.PUBLISH;case"request":return nu.REQUEST;case"subscribe":return nu.SUBSCRIBE}}function EK(e){var n;let t={rootNodes:[],childNodes:[],keys:[],provides:[],events:new Xc({nats:[],kafka:[],redis:[]}),requires:[],entityInterfaces:[],interfaceObjects:[]};for(let r of e.values()){let i=r.typeName,a=[...r.fieldNames],o=new Dd({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 bd({interfaceTypeName:i,concreteTypeNames:[...r.entityInterfaceConcreteTypeNames]});r.isInterfaceObject?t.interfaceObjects.push(p):t.entityInterfaces.push(p)}IA(r.keys,t.keys,i),IA(r.provides,t.provides,i),IA(r.requires,t.requires,i);let u=[],l=[],d=[];for(let p of(n=r.events)!=null?n:[])switch(p.providerType){case Rd.PROVIDER_TYPE_KAFKA:{l.push(new tm({engineEventConfiguration:new ru({fieldName:p.fieldName,providerId:p.providerId,type:gA(p.type),typeName:i}),topics:p.topics}));break}case Rd.PROVIDER_TYPE_NATS:{u.push(new em(M({engineEventConfiguration:new ru({fieldName:p.fieldName,providerId:p.providerId,type:gA(p.type),typeName:i}),subjects:p.subjects},p.streamConfiguration?{streamConfiguration:new Zp({consumerInactiveThreshold:p.streamConfiguration.consumerInactiveThreshold,consumerName:p.streamConfiguration.consumerName,streamName:p.streamConfiguration.streamName})}:{})));break}case Rd.PROVIDER_TYPE_REDIS:{d.push(new nm({engineEventConfiguration:new ru({fieldName:p.fieldName,providerId:p.providerId,type:gA(p.type),typeName:i}),channels:p.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 hK(e){var n,r;let t=[];for(let i of e){let a=i.argumentNames.map(p=>new Gp({name:p,sourceType:zc.FIELD_ARGUMENT})),o=new Yp({argumentsConfiguration:a,fieldName:i.fieldName,typeName:i.typeName}),u=((n=i.requiredScopes)==null?void 0:n.map(p=>new Wc({requiredAndScopes:p})))||[],l=((r=i.requiredScopesByOR)==null?void 0:r.map(p=>new Wc({requiredAndScopes:p})))||[],d=u.length>0;if((i.requiresAuthentication||d)&&(o.authorizationConfiguration=new Qp({requiresAuthentication:i.requiresAuthentication||d,requiredOrScopes:u,requiredOrScopesByOr:l})),i.subscriptionFilterCondition){let p=new ju;kh(p,i.subscriptionFilterCondition),o.subscriptionFilterCondition=p}t.push(o)}return t}function kh(e,t){if(t.and!==void 0){let n=[];for(let r of t.and){let i=new ju;kh(i,r),n.push(i)}e.and=n;return}if(t.in!==void 0){e.in=new im({fieldPath:t.in.fieldPath,json:JSON.stringify(t.in.values)});return}if(t.not!==void 0){e.not=new ju,kh(e.not,t.not);return}if(t.or!==void 0){let n=[];for(let r of t.or){let i=new ju;kh(i,r),n.push(i)}e.or=n;return}throw new Error("Fatal: Incoming SubscriptionCondition object was malformed.")}function ime(e){if(e&&!(e.fieldWeights.size===0&&e.listSizes.size===0&&e.typeWeights.size===0&&e.directiveArgumentWeights.size===0))return new jp({fieldWeights:[...e.fieldWeights.values()].map(t=>new Kp(G(M({},t),{argumentWeights:Object.fromEntries(t.argumentWeights),directiveArgumentWeights:Object.fromEntries(t.directiveArgumentWeights)}))),listSizes:[...e.listSizes.values()].map(t=>new $p(t)),typeWeights:Object.fromEntries(e.typeWeights),directiveArgumentWeights:Object.fromEntries(e.directiveArgumentWeights)})}var Zc;(function(e){e[e.Plugin=0]="Plugin",e[e.Standard=1]="Standard",e[e.GRPC=2]="GRPC"})(Zc||(Zc={}));var ame=(e,t)=>{let n=stringHash(t);return e.stringStorage[n]=t,new rm({key:n})},sme=e=>{switch(e){case"ws":return Vs.GRAPHQL_SUBSCRIPTION_PROTOCOL_WS;case"sse":return Vs.GRAPHQL_SUBSCRIPTION_PROTOCOL_SSE;case"sse_post":return Vs.GRAPHQL_SUBSCRIPTION_PROTOCOL_SSE_POST}},ome=e=>{switch(e){case"auto":return js.GRAPHQL_WEBSOCKET_SUBPROTOCOL_AUTO;case"graphql-ws":return js.GRAPHQL_WEBSOCKET_SUBPROTOCOL_WS;case"graphql-transport-ws":return js.GRAPHQL_WEBSOCKET_SUBPROTOCOL_TRANSPORT_WS}},IK=function(e){if(!Pd.ROUTER_COMPATIBILITY_VERSIONS.has(e.routerCompatibilityVersion))throw TK(e.routerCompatibilityVersion);let t=new Od({defaultFlushInterval:BigInt(500),datasourceConfigurations:[],fieldConfigurations:[],graphqlSchema:"",stringStorage:{},typeConfigurations:[]});for(let n of e.subgraphs){if(!n.configurationDataByTypeName)throw yA("ConfigurationDataByTypeName");if(!n.schema)throw yA("GraphQLSchema");let r={enabled:!0},i=ame(t,Dj((0,yK.lexicographicSortSchema)(n.schema))),{childNodes:a,entityInterfaces:o,events:u,interfaceObjects:l,keys:d,provides:p,requires:E,rootNodes:h}=EK(n.configurationDataByTypeName),v;switch(n.kind){case Zc.Standard:{r.enabled=!0,r.protocol=sme(n.subscriptionProtocol||"ws"),r.websocketSubprotocol=ome(n.websocketSubprotocol||"auto"),r.url=new Wr({kind:Vu.STATIC_CONFIGURATION_VARIABLE,staticVariableContent:n.subscriptionUrl||n.url});break}case Zc.Plugin:{v=new Ad({mapping:n.mapping,protoSchema:n.protoSchema,plugin:new Wp({name:n.name,version:n.version,imageReference:n.imageReference})});break}case Zc.GRPC:{v=new Ad({mapping:n.mapping,protoSchema:n.protoSchema});break}}let R,U,q;if(u.kafka.length>0||u.nats.length>0||u.redis.length>0){R=qu.PUBSUB,q=new Xc({kafka:u.kafka,nats:u.nats,redis:u.redis});let te=ye=>Pd.ROOT_TYPE_NAMES.has(ye.typeName),ae=0,me=0;for(;ae({id:n.id,name:n.name,routingUrl:n.url})),compatibilityVersion:`${e.routerCompatibilityVersion}:${Pd.COMPOSITION_VERSION}`})};m();T();N();var tl=Ii(Se());function gK(e){let t;try{t=(0,tl.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 ume(e){let t=(0,el.federateSubgraphs)({subgraphs:e.map(gK),version:el.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,tl.print)(t.federatedGraphAST)}}function cme(e){let t=(0,el.federateSubgraphs)({subgraphs:e.map(gK),version:el.LATEST_ROUTER_COMPATIBILITY_VERSION});if(!t.success)throw new Error(`could not federate schema: ${t.errors.map(r=>r.message).join(", ")}`);return IK({federatedClientSDL:(0,tl.printSchema)(t.federatedGraphClientSchema),federatedSDL:(0,tl.printSchema)(t.federatedGraphSchema),fieldConfigurations:t.fieldConfigurations,routerCompatibilityVersion:el.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,u=a==null?void 0:a.configurationDataByTypeName;return{kind:Zc.Standard,id:`${i}`,name:r.name,url:Db(r.url),sdl:r.schema,subscriptionUrl:Db((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:u}})}).toJsonString()}return Jm(lme);})(); +`)+ye+`return __p +}`;var St=QU(function(){return rr(L,ze+"return "+ye).apply(e,x)});if(St.source=ye,DS(St))throw St;return St}function Yae(s){return sr(s).toLowerCase()}function Jae(s){return sr(s).toUpperCase()}function zae(s,c,y){if(s=sr(s),s&&(y||c===e))return eB(s);if(!s||!(c=qi(c)))return s;var v=Ua(s),A=Ua(c),L=tB(v,A),x=rB(v,A)+1;return yc(v,L,x).join("")}function Hae(s,c,y){if(s=sr(s),s&&(y||c===e))return s.slice(0,iB(s)+1);if(!s||!(c=qi(c)))return s;var v=Ua(s),A=rB(v,Ua(c))+1;return yc(v,0,A).join("")}function Wae(s,c,y){if(s=sr(s),s&&(y||c===e))return s.replace(D_,"");if(!s||!(c=qi(c)))return s;var v=Ua(s),A=tB(v,Ua(c));return yc(v,A).join("")}function Xae(s,c){var y=Z,v=Se;if(Br(c)){var A="separator"in c?c.separator:A;y="length"in c?vt(c.length):y,v="omission"in c?qi(c.omission):v}s=sr(s);var L=s.length;if(jd(s)){var x=Ua(s);L=x.length}if(y>=L)return s;var V=y-Vd(v);if(V<1)return v;var H=x?yc(x,0,V).join(""):s.slice(0,V);if(A===e)return H+v;if(x&&(V+=H.length-V),bS(A)){if(s.slice(V).search(A)){var fe,pe=H;for(A.global||(A=K_(A.source,sr(vC.exec(A))+"g")),A.lastIndex=0;fe=A.exec(pe);)var ye=fe.index;H=H.slice(0,ye===e?V:ye)}}else if(s.indexOf(qi(A),V)!=V){var be=H.lastIndexOf(A);be>-1&&(H=H.slice(0,be))}return H+v}function Zae(s){return s=sr(s),s&&fZ.test(s)?s.replace(TC,Ree):s}var eoe=Jd(function(s,c,y){return s+(y?" ":"")+c.toUpperCase()}),PS=QB("toUpperCase");function GU(s,c,y){return s=sr(s),c=y?e:c,c===e?See(s)?Fee(s):hee(s):s.match(c)||[]}var QU=Rt(function(s,c){try{return Bi(s,e,c)}catch(y){return DS(y)?y:new ht(y)}}),toe=cs(function(s,c){return Ui(c,function(y){y=qa(y),go(s,y,SS(s[y],s))}),s});function roe(s){var c=s==null?0:s.length,y=st();return s=c?Pr(s,function(v){if(typeof v[1]!="function")throw new ea(i);return[y(v[0]),v[1]]}):[],Rt(function(v){for(var A=-1;++A$r)return[];var y=bt,v=zn(s,bt);c=st(c),s-=bt;for(var A=M_(v,c);++y0||c<0)?new Ut(y):(s<0?y=y.takeRight(-s):s&&(y=y.drop(s)),c!==e&&(c=vt(c),y=c<0?y.dropRight(-c):y.take(c-s)),y)},Ut.prototype.takeRightWhile=function(s){return this.reverse().takeWhile(s).reverse()},Ut.prototype.toArray=function(){return this.take(bt)},Io(Ut.prototype,function(s,c){var y=/^(?:filter|find|map|reject)|While$/.test(c),v=/^(?:head|last)$/.test(c),A=F[v?"take"+(c=="last"?"Right":""):c],L=v||/^find/.test(c);A&&(F.prototype[c]=function(){var x=this.__wrapped__,V=v?[1]:arguments,H=x instanceof Ut,fe=V[0],pe=H||Nt(x),ye=function(Lt){var Mt=A.apply(F,cc([Lt],V));return v&&be?Mt[0]:Mt};pe&&y&&typeof fe=="function"&&fe.length!=1&&(H=pe=!1);var be=this.__chain__,ze=!!this.__actions__.length,ct=L&&!be,St=H&&!ze;if(!L&&pe){x=St?x:new Ut(this);var it=s.apply(x,V);return it.__actions__.push({func:$N,args:[ye],thisArg:e}),new ta(it,be)}return ct&&St?s.apply(this,V):(it=this.thru(ye),ct?v?it.value()[0]:it.value():it)})}),Ui(["pop","push","shift","sort","splice","unshift"],function(s){var c=yN[s],y=/^(?:push|sort|unshift)$/.test(s)?"tap":"thru",v=/^(?:pop|shift)$/.test(s);F.prototype[s]=function(){var A=arguments;if(v&&!this.__chain__){var L=this.value();return c.apply(Nt(L)?L:[],A)}return this[y](function(x){return c.apply(Nt(x)?x:[],A)})}}),Io(Ut.prototype,function(s,c){var y=F[c];if(y){var v=y.name+"";or.call(Gd,v)||(Gd[v]=[]),Gd[v].push({name:c,func:y})}}),Gd[kN(e,M).name]=[{name:"wrapper",func:e}],Ut.prototype.clone=ete,Ut.prototype.reverse=tte,Ut.prototype.value=rte,F.prototype.at=Pne,F.prototype.chain=Fne,F.prototype.commit=Lne,F.prototype.next=Cne,F.prototype.plant=Une,F.prototype.reverse=kne,F.prototype.toJSON=F.prototype.valueOf=F.prototype.value=qne,F.prototype.first=F.prototype.head,Vp&&(F.prototype[Vp]=Bne),F},dc=Lee();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(Pn._=dc,define(function(){return dc})):pl?((pl.exports=dc)._=dc,F_._=dc):Pn._=dc}).call(Sp)});var WF=D(Wo=>{"use strict";d();p();f();Object.defineProperty(Wo,"__esModule",{value:!0});Wo.EntityDataNode=Wo.RootNode=Wo.GraphNode=Wo.Edge=void 0;var Rv=An(),YF=class{constructor(t,r,n,i=!1){S(this,"edgeName");S(this,"id");S(this,"isAbstractEdge");S(this,"isExternal",!1);S(this,"isInaccessible",!1);S(this,"node");S(this,"visitedIndices",new Set);this.edgeName=i?`... on ${n}`:n,this.id=t,this.isAbstractEdge=i,this.node=r}isEdgeInaccessible(){return this.isInaccessible||this.node.isInaccessible}};Wo.Edge=YF;var JF=class{constructor(t,r,n){S(this,"externalFieldSets",new Set);S(this,"fieldDataByName",new Map);S(this,"headToTailEdges",new Map);S(this,"entityEdges",new Array);S(this,"nodeName");S(this,"hasEntitySiblings",!1);S(this,"isAbstract");S(this,"isInaccessible",!1);S(this,"isLeaf",!1);S(this,"isRootNode",!1);S(this,"satisfiedFieldSets",new Set);S(this,"subgraphName");S(this,"typeName");this.isAbstract=!!(n!=null&&n.isAbstract),this.isLeaf=!!(n!=null&&n.isLeaf),this.nodeName=`${t}.${r}`,this.subgraphName=t,this.typeName=r}handleInaccessibleEdges(){if(this.isAbstract)return;let t=(0,Rv.getEntriesNotInHashSet)(this.headToTailEdges.keys(),this.fieldDataByName);for(let r of t){let n=this.headToTailEdges.get(r);n&&(n.isInaccessible=!0)}}getAllAccessibleEntityNodeNames(){let t=new Set([this.nodeName]);return this.getAccessibleEntityNodeNames(this,t),t.delete(this.nodeName),t}getAccessibleEntityNodeNames(t,r){for(let n of t.entityEdges)(0,Rv.add)(r,n.node.nodeName)&&this.getAccessibleEntityNodeNames(n.node,r)}};Wo.GraphNode=JF;var zF=class{constructor(t){S(this,"fieldDataByName",new Map);S(this,"headToSharedTailEdges",new Map);S(this,"isAbstract",!1);S(this,"isRootNode",!0);S(this,"typeName");this.typeName=t}removeInaccessibleEdges(t){for(let[r,n]of this.headToSharedTailEdges)if(!t.has(r))for(let i of n)i.isInaccessible=!0}};Wo.RootNode=zF;var HF=class{constructor(t){S(this,"fieldSetsByTargetSubgraphName",new Map);S(this,"targetSubgraphNamesByFieldSet",new Map);S(this,"typeName");this.typeName=t}addTargetSubgraphByFieldSet(t,r){(0,Rv.getValueOrDefault)(this.targetSubgraphNamesByFieldSet,t,()=>new Set).add(r),(0,Rv.getValueOrDefault)(this.fieldSetsByTargetSubgraphName,r,()=>new Set).add(t)}};Wo.EntityDataNode=HF});var XF=D(un=>{"use strict";d();p();f();Object.defineProperty(un,"__esModule",{value:!0});un.ROOT_TYPE_NAMES=un.QUOTATION_JOIN=un.NOT_APPLICABLE=un.LITERAL_SPACE=un.LITERAL_PERIOD=un.SUBSCRIPTION=un.QUERY=un.MUTATION=void 0;un.MUTATION="Mutation";un.QUERY="Query";un.SUBSCRIPTION="Subscription";un.LITERAL_PERIOD=".";un.LITERAL_SPACE=" ";un.NOT_APPLICABLE="N/A";un.QUOTATION_JOIN='", "';un.ROOT_TYPE_NAMES=new Set([un.MUTATION,un.QUERY,un.SUBSCRIPTION])});var nX=D(wv=>{"use strict";d();p();f();Object.defineProperty(wv,"__esModule",{value:!0});wv.MAX_RESOLVABILITY_PATH_SIZE=void 0;wv.MAX_RESOLVABILITY_PATH_SIZE=5});var rL=D(mo=>{"use strict";d();p();f();Object.defineProperty(mo,"__esModule",{value:!0});mo.newRootFieldData=GVe;mo.generateResolvabilityErrorReasons=tL;mo.generateSharedResolvabilityErrorReasons=iX;mo.generateSelectionSetSegments=Pv;mo.renderSelectionSet=Fv;mo.generateRootResolvabilityErrors=zVe;mo.generateEntityResolvabilityErrors=HVe;mo.generateSharedEntityResolvabilityErrors=WVe;mo.getMultipliedRelativeOriginPaths=XVe;var ZF=Di(),eL=An(),Gn=XF(),$Ve=nX();function GVe(e,t,r){return{coords:`${e}.${t}`,message:`The root type field "${e}.${t}" is defined in the following subgraph`+(r.size>1?"s":"")+`: "${[...r].join(Gn.QUOTATION_JOIN)}".`,subgraphNames:r}}function QVe(e,t){return e.isLeaf?e.name+` <-- +`:e.name+` { <-- +`+Gn.LITERAL_SPACE.repeat(t+3)+`... +`+Gn.LITERAL_SPACE.repeat(t+2)+`} +`}function tL({entityAncestorData:e,rootFieldData:t,unresolvableFieldData:r}){let{externalSubgraphNames:n,fieldName:i,typeName:a,subgraphNames:o}=r,u=[t.message];if(n.size>0){let l=o.difference(n);u.push(`The field "${a}.${i}" is defined (and resolvable) in the following subgraph`+(l.size>1?"s":"")+`: "${[...l].join(Gn.QUOTATION_JOIN)}".`,`The field "${a}.${i}" is defined "@external" (and unresolvable) in the following subgraph`+(n.size>1?"s":"")+`: "${[...n].join(Gn.QUOTATION_JOIN)}".`)}else u.push(`The field "${a}.${i}" is defined in the following subgraph`+(o.size>1?"s":"")+`: "${[...o].join(Gn.QUOTATION_JOIN)}".`);if(e){let l=!1;for(let[m,h]of e.fieldSetsByTargetSubgraphName)if(o.has(m)){l=!0;for(let N of h)e.subgraphName!==m&&u.push(`The entity ancestor "${e.typeName}" in subgraph "${e.subgraphName}" does not satisfy the key field set "${N}" to access subgraph "${m}".`)}l||u.push(`The entity ancestor "${e.typeName}" in subgraph "${e.subgraphName}" has no accessible target entities (resolvable @key directives) in the subgraphs where "${a}.${i}" is defined.`),u.push(`The type "${a}" is not a descendant of any other entity ancestors that can provide a shared route to access "${i}".`)}else t.subgraphNames.size>1&&u.push(`None of the subgraphs that shares the same root type field "${t.coords}" can provide a route to access "${i}".`),u.push(`The type "${a}" is not a descendant of an entity ancestor that can provide a shared route to access "${i}".`);return a!==(e==null?void 0:e.typeName)&&u.push(`The type "${a}" has no accessible target entities (resolvable @key directives) in any other subgraph, so accessing other subgraphs is not possible.`),u}function YVe({entityAncestors:{subgraphNames:e,typeName:t},fieldSets:r,reasons:n,targetSubgraphName:i}){for(let a of r){let o=e.filter(l=>l!==i);if(o.length<1)continue;let u=o.length>1;n.push(`The entity ancestor${u?"s":""} "${t}" in subgraph${u?"s":""} "${o.join(Gn.QUOTATION_JOIN)}" do${u?"":"es"} not satisfy the key field set "${a}" to access subgraph "${i}".`)}}function JVe({coords:e,entityAncestors:{sourceSubgraphNamesBySatisfiedFieldSet:t,subgraphNames:r,typeName:n},fieldSets:i,reasons:a,targetSubgraphName:o}){let u=[],l=[];for(let m of i){let h=t.get(m);if(!h){let O=r.filter(C=>C!==o),R=O.length>1;u.push(`The entity ancestor${R?"s":""} "${n}" in subgraph${R?"s":""} "${O.join(Gn.QUOTATION_JOIN)}" do${R?"":"es"} not satisfy the key field set "${m}" to access subgraph "${o}".`);continue}let N=h.filter(O=>O!==o);if(N.length<1)continue;let T=N.length>1;l.push(`The entity ancestor "${n}" in subgraph${T?"s":""} "${N.join(Gn.QUOTATION_JOIN)}" ${T?"are":"is"} able to satisfy at least one key field set to access subgraph "${o}", but this still does not provide a route to resolve "${e}".`)}a.push(...l.length>0?l:u)}function iX({entityAncestors:e,rootFieldData:t,unresolvableFieldData:r}){let{externalSubgraphNames:n,fieldName:i,typeName:a,subgraphNames:o}=r,u=`${a}.${i}`,l=[t.message];if(n.size>0){let N=o.difference(n);l.push(`The field "${a}.${i}" is defined (and resolvable) in the following subgraph`+(N.size>1?"s":"")+`: "${[...N].join(Gn.QUOTATION_JOIN)}".`,`The field "${a}.${i}" is defined "@external" (and unresolvable) in the following subgraph`+(n.size>1?"s":"")+`: "${[...n].join(Gn.QUOTATION_JOIN)}".`)}else l.push(`The field "${a}.${i}" is defined in the following subgraph`+(o.size>1?"s":"")+`: "${[...o].join(Gn.QUOTATION_JOIN)}".`);let m=a===e.typeName,h=!1;for(let[N,T]of e.fieldSetsByTargetSubgraphName)o.has(N)&&(h=!0,m?YVe({coords:u,entityAncestors:e,fieldSets:T,reasons:l,targetSubgraphName:N}):JVe({coords:u,entityAncestors:e,fieldSets:T,reasons:l,targetSubgraphName:N}));if(!h){let N=e.subgraphNames.length>1;l.push(`The entity ancestor "${e.typeName}" in subgraph${N?"s":""} "${e.subgraphNames.join(Gn.QUOTATION_JOIN)}" has no accessible target entities (resolvable @key directives) in the subgraphs where "${u}" is defined.`)}return l.push(`The type "${a}" is not a descendant of any other entity ancestors that can provide a shared route to access "${i}".`),a!==e.typeName&&l.push(`The type "${a}" has no accessible target entities (resolvable @key directives) in any other subgraph, so accessing other subgraphs is not possible.`),l}function Pv(e,t=$Ve.MAX_RESOLVABILITY_PATH_SIZE){let r=e.split(new RegExp("(?<=\\w)\\.")),n="",i="",a=!1,o=r.length-t*2;t>0&&r.length>t*2+1&&(a=!0,r.splice(t+1,o-1));for(let u=0;u{"use strict";d();p();f();Object.defineProperty(Lv,"__esModule",{value:!0});Lv.NodeResolutionData=void 0;var oX=Di(),vd,iL=class iL{constructor({fieldDataByName:t,isResolved:r=!1,resolvedDescendantNames:n,resolvedFieldNames:i,typeName:a}){Xd(this,vd,!1);S(this,"fieldDataByName");S(this,"resolvedDescendantNames");S(this,"resolvedFieldNames");S(this,"typeName");VS(this,vd,r),this.fieldDataByName=t,this.resolvedDescendantNames=new Set(n),this.resolvedFieldNames=new Set(i),this.typeName=a}addData({resolvedDescendantNames:t,resolvedFieldNames:r}){for(let n of r)this.addResolvedFieldName(n);for(let n of t)this.resolvedDescendantNames.add(n)}addResolvedFieldName(t){if(!this.fieldDataByName.has(t))throw(0,oX.unexpectedEdgeFatalError)(this.typeName,[t]);this.resolvedFieldNames.add(t)}addExternalSubgraphName({fieldName:t,subgraphName:r}){let n=this.fieldDataByName.get(t);if(!n)throw(0,oX.unexpectedEdgeFatalError)(this.typeName,[t]);n.externalSubgraphNames.add(r)}copy(){return new iL({fieldDataByName:this.fieldDataByName,isResolved:jS(this,vd),resolvedDescendantNames:this.resolvedDescendantNames,resolvedFieldNames:this.resolvedFieldNames,typeName:this.typeName})}areDescendantsResolved(){return this.fieldDataByName.size===this.resolvedDescendantNames.size}isResolved(){if(jS(this,vd))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 VS(this,vd,!0),!0}};vd=new WeakMap;var nL=iL;Lv.NodeResolutionData=nL});var sX=D(Bv=>{"use strict";d();p();f();Object.defineProperty(Bv,"__esModule",{value:!0});Bv.EntityWalker=void 0;var ZVe=Cv(),Xo=An(),aL=class{constructor({encounteredEntityNodeNames:t,index:r,relativeOriginPaths:n,resDataByNodeName:i,resDataByRelativeOriginPath:a,resolvedPaths:o,subgraphNameByUnresolvablePath:u,visitedEntities:l}){S(this,"encounteredEntityNodeNames");S(this,"index");S(this,"resDataByNodeName");S(this,"resDataByRelativeOriginPath");S(this,"resolvedPaths");S(this,"selectionPathByEntityNodeName",new Map);S(this,"subgraphNameByUnresolvablePath");S(this,"visitedEntities");S(this,"relativeOriginPaths");this.encounteredEntityNodeNames=t,this.index=r,this.relativeOriginPaths=n,this.resDataByNodeName=i,this.resDataByRelativeOriginPath=a,this.resolvedPaths=o,this.subgraphNameByUnresolvablePath=u,this.visitedEntities=l}getNodeResolutionData({node:{fieldDataByName:t,nodeName:r,typeName:n},selectionPath:i}){let a=(0,Xo.getValueOrDefault)(this.resDataByNodeName,r,()=>new ZVe.NodeResolutionData({fieldDataByName:t,typeName:n}));if(!this.relativeOriginPaths||this.relativeOriginPaths.size<1)return(0,Xo.getValueOrDefault)(this.resDataByRelativeOriginPath,i,()=>a.copy());let o;for(let u of this.relativeOriginPaths){let l=(0,Xo.getValueOrDefault)(this.resDataByRelativeOriginPath,`${u}${i}`,()=>a.copy());o!=null||(o=l)}return o}visitEntityDescendantEdge({edge:t,selectionPath:r}){if(t.isEdgeInaccessible())return{visited:!1,areDescendantsResolved:!1};if(t.isExternal)return{visited:!1,areDescendantsResolved:!1,isExternal:!0};if(t.node.isLeaf)return{visited:!0,areDescendantsResolved:!0};let n=`${r}.${t.edgeName}`;return this.getNodeResolutionData({node:t.node,selectionPath:n}).areDescendantsResolved()?{visited:!0,areDescendantsResolved:!0}:(0,Xo.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,Xo.getValueOrDefault)(this.selectionPathByEntityNodeName,t.node.nodeName,()=>n),{visited:!0,areDescendantsResolved:!1}):t.node.isAbstract?this.visitEntityDescendantAbstractNode({node:t.node,selectionPath:n}):this.visitEntityDescendantConcreteNode({node:t.node,selectionPath:n}):(this.removeUnresolvablePaths({selectionPath:n,removeDescendantPaths:!0}),{visited:!0,areDescendantsResolved:!0,isRevisitedNode:!0})}visitEntityDescendantConcreteNode({node:t,selectionPath:r}){if(t.headToTailEdges.size<1)return t.isLeaf=!0,{visited:!0,areDescendantsResolved:!0};let n=this.getNodeResolutionData({node:t,selectionPath:r});if(n.isResolved()&&n.areDescendantsResolved())return{visited:!0,areDescendantsResolved:!0};let i;for(let[a,o]of t.headToTailEdges){let{areDescendantsResolved:u,isExternal:l,isRevisitedNode:m,visited:h}=this.visitEntityDescendantEdge({edge:o,selectionPath:r});i!=null||(i=m),this.propagateVisitedField({areDescendantsResolved:u,data:n,fieldName:a,isExternal:l,node:t,selectionPath:r,visited:h})}return n.isResolved()?this.removeUnresolvablePaths({removeDescendantPaths:i,selectionPath:r}):this.addUnresolvablePaths({selectionPath:r,subgraphName:t.subgraphName}),{visited:!0,areDescendantsResolved:n.areDescendantsResolved()}}visitEntityDescendantAbstractNode({node:t,selectionPath:r}){if(t.headToTailEdges.size<1)return{visited:!0,areDescendantsResolved:!0};let n=0;for(let i of t.headToTailEdges.values())this.visitEntityDescendantEdge({edge:i,selectionPath:r}).areDescendantsResolved&&(n+=1);return{visited:!0,areDescendantsResolved:n===t.headToTailEdges.size}}propagateVisitedField({areDescendantsResolved:t,data:r,fieldName:n,isExternal:i,node:a,selectionPath:o,visited:u}){if(i){r.addExternalSubgraphName({fieldName:n,subgraphName:a.subgraphName});return}if(!u)return;let l=(0,Xo.getValueOrDefault)(this.resDataByNodeName,a.nodeName,()=>r.copy());if(r.addResolvedFieldName(n),l.addResolvedFieldName(n),t&&r.resolvedDescendantNames.add(n),this.relativeOriginPaths){for(let h of this.relativeOriginPaths){let N=(0,Xo.getValueOrDefault)(this.resDataByRelativeOriginPath,`${h}${o}`,()=>r.copy());N.addResolvedFieldName(n),t&&(N.resolvedDescendantNames.add(n),this.removeUnresolvablePaths({selectionPath:`.${n}`,removeDescendantPaths:!0}))}return}let m=(0,Xo.getValueOrDefault)(this.resDataByRelativeOriginPath,o,()=>r.copy());m.addResolvedFieldName(n),t&&m.resolvedDescendantNames.add(n)}addUnresolvablePaths({selectionPath:t,subgraphName:r}){if(!this.relativeOriginPaths){if(this.resolvedPaths.has(t))return;(0,Xo.getValueOrDefault)(this.subgraphNameByUnresolvablePath,t,()=>r);return}for(let n of this.relativeOriginPaths){let i=`${n}${t}`;this.resolvedPaths.has(i)||(0,Xo.getValueOrDefault)(this.subgraphNameByUnresolvablePath,i,()=>r)}}removeUnresolvablePaths({selectionPath:t,removeDescendantPaths:r}){if(!this.relativeOriginPaths){if(this.subgraphNameByUnresolvablePath.delete(t),r)for(let n of this.subgraphNameByUnresolvablePath.keys())n.startsWith(t)&&(this.subgraphNameByUnresolvablePath.delete(n),this.resolvedPaths.add(n));return}for(let n of this.relativeOriginPaths){let i=`${n}${t}`;if(this.subgraphNameByUnresolvablePath.delete(i),this.resolvedPaths.add(i),r)for(let a of this.subgraphNameByUnresolvablePath.keys())a.startsWith(i)&&(this.subgraphNameByUnresolvablePath.delete(a),this.resolvedPaths.add(a))}}};Bv.EntityWalker=aL});var uX=D(kv=>{"use strict";d();p();f();Object.defineProperty(kv,"__esModule",{value:!0});kv.RootFieldWalker=void 0;var Zo=An(),Uv=Cv(),oL=class{constructor({index:t,nodeResolutionDataByNodeName:r}){S(this,"index");S(this,"resDataByNodeName");S(this,"resDataByPath",new Map);S(this,"entityNodeNamesByPath",new Map);S(this,"pathsByEntityNodeName",new Map);S(this,"unresolvablePaths",new Set);this.index=t,this.resDataByNodeName=r}visitEdge({edge:t,selectionPath:r}){return t.isEdgeInaccessible()?{visited:!1,areDescendantsResolved:!1}:t.isExternal?{visited:!1,areDescendantsResolved:!1,isExternal:!0}:t.node.isLeaf?{visited:!0,areDescendantsResolved:!0}:(0,Zo.add)(t.visitedIndices,this.index)?t.node.hasEntitySiblings?this.resDataByNodeName.has(t.node.nodeName)?{visited:!0,areDescendantsResolved:!0}:((0,Zo.getValueOrDefault)(this.pathsByEntityNodeName,t.node.nodeName,()=>new Set).add(`${r}.${t.edgeName}`),{visited:!0,areDescendantsResolved:!1}):t.node.isAbstract?this.visitAbstractNode({node:t.node,selectionPath:`${r}.${t.edgeName}`}):this.visitConcreteNode({node:t.node,selectionPath:`${r}.${t.edgeName}`}):{visited:!0,areDescendantsResolved:!0}}visitAbstractNode({node:t,selectionPath:r}){if(t.headToTailEdges.size<1)return{visited:!0,areDescendantsResolved:!0};let n=0;for(let i of t.headToTailEdges.values())this.visitEdge({edge:i,selectionPath:r}).areDescendantsResolved&&(n+=1);return{visited:!0,areDescendantsResolved:n===t.headToTailEdges.size}}visitConcreteNode({node:t,selectionPath:r}){if(t.headToTailEdges.size<1)return t.isLeaf=!0,{visited:!0,areDescendantsResolved:!0};let n=this.resDataByNodeName.get(t.nodeName);if(n)return{visited:!0,areDescendantsResolved:n.areDescendantsResolved()};let i=this.getNodeResolutionData({node:t,selectionPath:r});if(i.isResolved()&&i.areDescendantsResolved())return{visited:!0,areDescendantsResolved:!0};for(let[a,o]of t.headToTailEdges){let{areDescendantsResolved:u,isExternal:l,visited:m}=this.visitEdge({edge:o,selectionPath:r});this.propagateVisitedField({areDescendantsResolved:u,data:i,fieldName:a,isExternal:l,node:t,selectionPath:r,visited:m})}return i.isResolved()?this.unresolvablePaths.delete(r):this.unresolvablePaths.add(r),{visited:!0,areDescendantsResolved:i.areDescendantsResolved()}}visitSharedEdge({edge:t,selectionPath:r}){return t.isEdgeInaccessible()?{visited:!1,areDescendantsResolved:!1}:t.isExternal?{visited:!1,areDescendantsResolved:!1,isExternal:!0}:t.node.isLeaf?{visited:!0,areDescendantsResolved:!0}:(0,Zo.add)(t.visitedIndices,this.index)?(t.node.hasEntitySiblings&&(0,Zo.getValueOrDefault)(this.entityNodeNamesByPath,`${r}.${t.edgeName}`,()=>new Set).add(t.node.nodeName),t.node.isAbstract?this.visitSharedAbstractNode({node:t.node,selectionPath:`${r}.${t.edgeName}`}):this.visitSharedConcreteNode({node:t.node,selectionPath:`${r}.${t.edgeName}`})):{visited:!0,areDescendantsResolved:!0}}visitSharedAbstractNode({node:t,selectionPath:r}){if(t.headToTailEdges.size<1)return{visited:!0,areDescendantsResolved:!0};let n=0;for(let i of t.headToTailEdges.values())this.visitSharedEdge({edge:i,selectionPath:r}).areDescendantsResolved&&(n+=1);return{visited:!0,areDescendantsResolved:n===t.headToTailEdges.size}}visitSharedConcreteNode({node:t,selectionPath:r}){if(t.headToTailEdges.size<1)return t.isLeaf=!0,{visited:!0,areDescendantsResolved:!0};let n=this.getSharedNodeResolutionData({node:t,selectionPath:r});if(n.isResolved()&&n.areDescendantsResolved())return{visited:!0,areDescendantsResolved:!0};for(let[i,a]of t.headToTailEdges){let{visited:o,areDescendantsResolved:u}=this.visitSharedEdge({edge:a,selectionPath:r});this.propagateSharedVisitedField({areDescendantsResolved:u,data:n,fieldName:i,node:t,visited:o})}return n.isResolved()?this.unresolvablePaths.delete(r):this.unresolvablePaths.add(r),{visited:!0,areDescendantsResolved:n.areDescendantsResolved()}}getNodeResolutionData({node:t,selectionPath:r}){let n=(0,Zo.getValueOrDefault)(this.resDataByNodeName,t.nodeName,()=>new Uv.NodeResolutionData({fieldDataByName:t.fieldDataByName,typeName:t.typeName}));return(0,Zo.getValueOrDefault)(this.resDataByPath,r,()=>n.copy()),n}getSharedNodeResolutionData({node:t,selectionPath:r}){let n=(0,Zo.getValueOrDefault)(this.resDataByNodeName,t.nodeName,()=>new Uv.NodeResolutionData({fieldDataByName:t.fieldDataByName,typeName:t.typeName}));return(0,Zo.getValueOrDefault)(this.resDataByPath,r,()=>n.copy())}propagateVisitedField({areDescendantsResolved:t,data:r,fieldName:n,isExternal:i,node:a,selectionPath:o,visited:u}){if(i){r.addExternalSubgraphName({fieldName:n,subgraphName:a.subgraphName});return}if(!u)return;r.addResolvedFieldName(n);let l=(0,Zo.getValueOrDefault)(this.resDataByPath,o,()=>new Uv.NodeResolutionData({fieldDataByName:a.fieldDataByName,typeName:a.typeName}));l.addResolvedFieldName(n),t&&(r.resolvedDescendantNames.add(n),l.resolvedDescendantNames.add(n))}propagateSharedVisitedField({areDescendantsResolved:t,data:r,fieldName:n,node:i,visited:a}){if(!a)return;r.addResolvedFieldName(n);let o=(0,Zo.getValueOrDefault)(this.resDataByNodeName,i.nodeName,()=>new Uv.NodeResolutionData({fieldDataByName:i.fieldDataByName,typeName:i.typeName}));o.addResolvedFieldName(n),t&&(r.resolvedDescendantNames.add(n),o.resolvedDescendantNames.add(n))}visitRootFieldEdges({edges:t,rootTypeName:r}){let n=t.length>1;for(let i of t){if(i.isInaccessible)return{visited:!1,areDescendantsResolved:!1};let a=n?this.visitSharedEdge({edge:i,selectionPath:r}):this.visitEdge({edge:i,selectionPath:r});if(a.areDescendantsResolved)return a}return{visited:!0,areDescendantsResolved:!1}}};kv.RootFieldWalker=oL});var Mv=D(xv=>{"use strict";d();p();f();Object.defineProperty(xv,"__esModule",{value:!0});xv.Graph=void 0;var Op=WF(),Dp=rL(),mi=An(),qv=XF(),eKe=sX(),tKe=uX(),sL=class{constructor(){S(this,"edgeId",-1);S(this,"entityDataNodeByTypeName",new Map);S(this,"nodeByNodeName",new Map);S(this,"nodesByTypeName",new Map);S(this,"resolvedRootFieldNodeNames",new Set);S(this,"rootNodeByTypeName",new Map);S(this,"subgraphName",qv.NOT_APPLICABLE);S(this,"resDataByNodeName",new Map);S(this,"resDataByRelativePathByEntity",new Map);S(this,"visitedEntitiesByOriginEntity",new Map);S(this,"walkerIndex",-1)}getRootNode(t){return(0,mi.getValueOrDefault)(this.rootNodeByTypeName,t,()=>new Op.RootNode(t))}addOrUpdateNode(t,r){let n=`${this.subgraphName}.${t}`,i=this.nodeByNodeName.get(n);if(i)return i.isAbstract||(i.isAbstract=!!(r!=null&&r.isAbstract)),!i.isLeaf&&(r!=null&&r.isLeaf)&&(i.isLeaf=!0),i;let a=new Op.GraphNode(this.subgraphName,t,r);return this.nodeByNodeName.set(n,a),(0,mi.getValueOrDefault)(this.nodesByTypeName,t,()=>[]).push(a),a}addEdge(t,r,n,i=!1){if(t.isRootNode){let u=new Op.Edge(this.getNextEdgeId(),r,n);return(0,mi.getValueOrDefault)(t.headToSharedTailEdges,n,()=>[]).push(u),u}let a=t,o=new Op.Edge(this.getNextEdgeId(),r,i?r.typeName:n,i);return a.headToTailEdges.set(n,o),o}addEntityDataNode(t){let r=this.entityDataNodeByTypeName.get(t);if(r)return r;let n=new Op.EntityDataNode(t);return this.entityDataNodeByTypeName.set(t,n),n}getNextEdgeId(){return this.edgeId+=1}getNextWalkerIndex(){return this.walkerIndex+=1}setNodeInaccessible(t){let r=this.nodesByTypeName.get(t);if(r)for(let n of r)n.isInaccessible=!0}initializeNode(t,r){let n=this.entityDataNodeByTypeName.get(t);if(qv.ROOT_TYPE_NAMES.has(t)){let a=this.getRootNode(t);a.removeInaccessibleEdges(r),a.fieldDataByName=r;return}let i=this.nodesByTypeName.get(t);if(i){for(let a of i)if(a.fieldDataByName=r,a.handleInaccessibleEdges(),a.isLeaf=!1,!!n){a.hasEntitySiblings=!0;for(let o of a.satisfiedFieldSets){if(a.externalFieldSets.has(o))continue;let u=n.targetSubgraphNamesByFieldSet.get(o);for(let l of u!=null?u:[]){if(l===a.subgraphName)continue;let m=this.nodeByNodeName.get(`${l}.${a.typeName}`);m&&a.entityEdges.push(new Op.Edge(this.getNextEdgeId(),m,""))}}}}}setSubgraphName(t){this.subgraphName=t}visitEntity({encounteredEntityNodeNames:t,entityNodeName:r,relativeOriginPaths:n,resDataByRelativeOriginPath:i,resolvedPaths:a,subgraphNameByUnresolvablePath:o,visitedEntities:u}){let l=this.nodeByNodeName.get(r);if(!l)throw new Error(`Fatal: Could not find entity node for "${r}".`);u.add(r);let m=this.nodesByTypeName.get(l.typeName);if(!(m!=null&&m.length))throw new Error(`Fatal: Could not find any nodes for "${r}".`);let h=new eKe.EntityWalker({encounteredEntityNodeNames:t,index:this.getNextWalkerIndex(),relativeOriginPaths:n,resDataByNodeName:this.resDataByNodeName,resDataByRelativeOriginPath:i,resolvedPaths:a,subgraphNameByUnresolvablePath:o,visitedEntities:u}),N=l.getAllAccessibleEntityNodeNames();for(let T of m){if(T.nodeName!==l.nodeName&&!N.has(T.nodeName))continue;let{areDescendantsResolved:O}=h.visitEntityDescendantConcreteNode({node:T,selectionPath:""});if(O)return}for(let[T,O]of h.selectionPathByEntityNodeName)this.visitEntity({encounteredEntityNodeNames:t,entityNodeName:T,relativeOriginPaths:(0,Dp.getMultipliedRelativeOriginPaths)({relativeOriginPaths:n,selectionPath:O}),resDataByRelativeOriginPath:i,resolvedPaths:a,subgraphNameByUnresolvablePath:o,visitedEntities:u})}validate(){for(let t of this.rootNodeByTypeName.values())for(let[r,n]of t.headToSharedTailEdges){let i=n.length>1;if(!i){let h=n[0].node.nodeName;if(this.resolvedRootFieldNodeNames.has(h))continue;this.resolvedRootFieldNodeNames.add(h)}let a=new tKe.RootFieldWalker({index:this.getNextWalkerIndex(),nodeResolutionDataByNodeName:this.resDataByNodeName});if(a.visitRootFieldEdges({edges:n,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 u=(0,mi.getOrThrowError)(t.fieldDataByName,r,"fieldDataByName"),l=(0,Dp.newRootFieldData)(t.typeName,r,u.subgraphNames);if(!o)return{errors:(0,Dp.generateRootResolvabilityErrors)({unresolvablePaths:a.unresolvablePaths,resDataByPath:a.resDataByPath,rootFieldData:l}),success:!1};let m=this.validateEntities({isSharedRootField:i,rootFieldData:l,walker:a});if(!m.success)return m}return{success:!0}}consolidateUnresolvableRootWithEntityPaths({pathFromRoot:t,resDataByRelativeOriginPath:r,subgraphNameByUnresolvablePath:n,walker:i}){for(let a of i.unresolvablePaths){if(!a.startsWith(t))continue;let o=a.slice(t.length),u=(0,mi.getOrThrowError)(i.resDataByPath,a,"rootFieldWalker.unresolvablePaths"),l=r.get(o);if(l){if(u.addData(l),l.addData(u),!u.isResolved()){i.unresolvablePaths.delete(a);continue}i.unresolvablePaths.delete(a),n.delete(o)}}}consolidateUnresolvableEntityWithRootPaths({pathFromRoot:t,resDataByRelativeOriginPath:r,subgraphNameByUnresolvablePath:n,walker:i}){for(let a of n.keys()){let o=(0,mi.getOrThrowError)(r,a,"resDataByRelativeOriginPath"),u=`${t}${a}`,l=i.resDataByPath.get(u);l&&(o.addData(l),l.addData(o)),o.isResolved()&&n.delete(a)}}validateSharedRootFieldEntities({rootFieldData:t,walker:r}){let n=new Set;for(let[i,a]of r.entityNodeNamesByPath){if(r.unresolvablePaths.size<1)return{success:!0};let o=new Map,u=new Map;for(let l of a)this.visitEntity({encounteredEntityNodeNames:new Set,entityNodeName:l,resDataByRelativeOriginPath:u,resolvedPaths:n,subgraphNameByUnresolvablePath:o,visitedEntities:new Set});if(this.consolidateUnresolvableRootWithEntityPaths({pathFromRoot:i,resDataByRelativeOriginPath:u,subgraphNameByUnresolvablePath:o,walker:r}),!(o.size<1)&&(this.consolidateUnresolvableEntityWithRootPaths({pathFromRoot:i,resDataByRelativeOriginPath:u,subgraphNameByUnresolvablePath:o,walker:r}),!(o.size<1)))return{errors:(0,Dp.generateSharedEntityResolvabilityErrors)({entityAncestors:this.getEntityAncestorCollection(a),pathFromRoot:i,resDataByPath:u,rootFieldData:t,subgraphNameByUnresolvablePath:o}),success:!1}}return r.unresolvablePaths.size>0?{errors:(0,Dp.generateRootResolvabilityErrors)({resDataByPath:r.resDataByPath,rootFieldData:t,unresolvablePaths:r.unresolvablePaths}),success:!1}:{success:!0}}validateRootFieldEntities({rootFieldData:t,walker:r}){var i;let n=new Set;for(let[a,o]of r.pathsByEntityNodeName){let u=new Map;if(this.resDataByNodeName.has(a))continue;let l=(0,mi.getValueOrDefault)(this.resDataByRelativePathByEntity,a,()=>new Map);if(this.visitEntity({encounteredEntityNodeNames:new Set,entityNodeName:a,resDataByRelativeOriginPath:l,resolvedPaths:n,subgraphNameByUnresolvablePath:u,visitedEntities:(0,mi.getValueOrDefault)(this.visitedEntitiesByOriginEntity,a,()=>new Set)}),!(u.size<1))return{errors:this.getEntityResolvabilityErrors({entityNodeName:a,pathFromRoot:(i=(0,mi.getFirstEntry)(o))!=null?i:"",rootFieldData:t,subgraphNameByUnresolvablePath:u}),success:!1}}return{success:!0}}validateEntities(t){return t.isSharedRootField?this.validateSharedRootFieldEntities(t):this.validateRootFieldEntities(t)}getEntityResolvabilityErrors({entityNodeName:t,pathFromRoot:r,rootFieldData:n,subgraphNameByUnresolvablePath:i}){let a=(0,mi.getOrThrowError)(this.resDataByRelativePathByEntity,t,"resDataByRelativePathByEntity"),o=t.split(qv.LITERAL_PERIOD)[1],{fieldSetsByTargetSubgraphName:u}=(0,mi.getOrThrowError)(this.entityDataNodeByTypeName,o,"entityDataNodeByTypeName");return(0,Dp.generateEntityResolvabilityErrors)({entityAncestorData:{fieldSetsByTargetSubgraphName:u,subgraphName:"",typeName:o},pathFromRoot:r,resDataByPath:a,rootFieldData:n,subgraphNameByUnresolvablePath:i})}getEntityAncestorCollection(t){let r=(0,mi.getFirstEntry)(t).split(qv.LITERAL_PERIOD)[1],{fieldSetsByTargetSubgraphName:n}=(0,mi.getOrThrowError)(this.entityDataNodeByTypeName,r,"entityDataNodeByTypeName"),i=new Array,a=new Map;for(let o of t){let{satisfiedFieldSets:u,subgraphName:l}=(0,mi.getOrThrowError)(this.nodeByNodeName,o,"nodeByNodeName");for(let m of u)(0,mi.getValueOrDefault)(a,m,()=>[]).push(l);i.push(l)}return{fieldSetsByTargetSubgraphName:n,sourceSubgraphNamesBySatisfiedFieldSet:a,subgraphNames:i,typeName:r}}};xv.Graph=sL});var lL=D(Vv=>{"use strict";d();p();f();Object.defineProperty(Vv,"__esModule",{value:!0});Vv.upsertDirectiveSchemaAndEntityDefinitions=iKe;Vv.upsertParentsAndChildren=aKe;var cn=ve(),al=Di(),cL=zo(),jv=vp(),Ap=Un(),uL=_p(),rKe=xs(),bp=Zc(),Fy=Jo(),nKe=hd(),La=xr(),Mn=An();function iKe(e,t){(0,cn.visit)(t,{Directive:{enter(r){let n=r.name.value;return e.referencedDirectiveNames.add(n),rKe.EVENT_DIRECTIVE_NAMES.has(n)?(e.edfsDirectiveReferences.add(n),!1):(cL.V2_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME.has(n)&&(e.isSubgraphVersionTwo=!0),!1)}},DirectiveDefinition:{enter(r){return e.addDirectiveDefinitionDataByNode(r)&&e.customDirectiveDefinitionByName.set(r.name.value,r),!1}},InterfaceTypeDefinition:{enter(r){let n=r.name.value;if(e.internalGraph.addOrUpdateNode(n,{isAbstract:!0}),!(0,Ap.isObjectLikeNodeEntity)(r))return;let i=(0,Mn.getValueOrDefault)(e.keyFieldSetDatasByTypeName,n,()=>new Map);e.extractKeyFieldSets(r,i),(0,jv.upsertEntityData)({entityDataByTypeName:e.entityDataByTypeName,keyFieldSetDataByFieldSet:i,subgraphName:e.subgraphName,typeName:n}),(0,Mn.getValueOrDefault)(e.entityInterfaceDataByTypeName,n,()=>({concreteTypeNames:new Set,fieldDatas:[],interfaceFieldNames:new Set,interfaceObjectFieldNames:new Set,isInterfaceObject:!1,resolvable:!1,typeName:n}))}},InterfaceTypeExtension:{enter(r){let n=r.name.value;if(e.internalGraph.addOrUpdateNode(n,{isAbstract:!0}),!(0,Ap.isObjectLikeNodeEntity)(r))return;let i=(0,Mn.getValueOrDefault)(e.keyFieldSetDatasByTypeName,n,()=>new Map);e.extractKeyFieldSets(r,i),(0,jv.upsertEntityData)({entityDataByTypeName:e.entityDataByTypeName,keyFieldSetDataByFieldSet:i,subgraphName:e.subgraphName,typeName:n}),(0,Mn.getValueOrDefault)(e.entityInterfaceDataByTypeName,n,()=>({concreteTypeNames:new Set,fieldDatas:[],interfaceFieldNames:new Set,interfaceObjectFieldNames:new Set,isInterfaceObject:!1,resolvable:!1,typeName:n}))}},ObjectTypeDefinition:{enter(r){if(!(0,Ap.isObjectLikeNodeEntity)(r))return;let n=r.name.value;(0,Ap.isNodeInterfaceObject)(r)&&(e.entityInterfaceDataByTypeName.set(n,{concreteTypeNames:new Set,fieldDatas:[],interfaceObjectFieldNames:new Set,interfaceFieldNames:new Set,isInterfaceObject:!0,resolvable:!1,typeName:n}),e.internalGraph.addOrUpdateNode(n,{isAbstract:!0}));let i=(0,Mn.getValueOrDefault)(e.keyFieldSetDatasByTypeName,n,()=>new Map);e.extractKeyFieldSets(r,i),(0,jv.upsertEntityData)({entityDataByTypeName:e.entityDataByTypeName,keyFieldSetDataByFieldSet:i,subgraphName:e.subgraphName,typeName:n})}},ObjectTypeExtension:{enter(r){if(!(0,Ap.isObjectLikeNodeEntity)(r))return;let n=r.name.value,i=(0,Mn.getValueOrDefault)(e.keyFieldSetDatasByTypeName,n,()=>new Map);e.extractKeyFieldSets(r,i),(0,jv.upsertEntityData)({entityDataByTypeName:e.entityDataByTypeName,keyFieldSetDataByFieldSet:i,subgraphName:e.subgraphName,typeName:n})}},OperationTypeDefinition:{enter(r){let n=r.operation,i=e.schemaData.operationTypes.get(n),a=(0,Fy.getTypeNodeNamedTypeName)(r.type);if(i)return e.errors.push((0,al.duplicateOperationTypeDefinitionError)(n,a,(0,Fy.getTypeNodeNamedTypeName)(i.type))),!1;let o=e.operationTypeNodeByTypeName.get(a);return o?(e.errors.push((0,al.invalidOperationTypeDefinitionError)(o,a,n)),!1):(e.operationTypeNodeByTypeName.set(a,n),e.schemaData.operationTypes.set(n,r),!1)}},SchemaDefinition:{enter(r){e.schemaData.description=r.description,e.extractDirectives(r,e.schemaData.directivesByName)}},SchemaExtension:{enter(r){e.extractDirectives(r,e.schemaData.directivesByName)}}})}function aKe(e,t){let r=!1,n;(0,cn.visit)(t,{EnumTypeDefinition:{enter(i){e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertEnumDataByNode(i)},leave(){e.originalParentTypeName="",e.lastParentNodeKind=cn.Kind.NULL}},EnumTypeExtension:{enter(i){e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertEnumDataByNode(i,!0)},leave(){e.originalParentTypeName="",e.lastParentNodeKind=cn.Kind.NULL}},EnumValueDefinition:{enter(i){let a=i.name.value;e.lastChildNodeKind=i.kind;let o=(0,Mn.getOrThrowError)(e.parentDefinitionDataByTypeName,e.originalParentTypeName,La.PARENT_DEFINITION_DATA);if(o.kind!==cn.Kind.ENUM_TYPE_DEFINITION){e.errors.push((0,al.unexpectedParentKindForChildError)(e.originalParentTypeName,"Enum or Enum extension",(0,Mn.kindToNodeType)(o.kind),a,(0,Mn.kindToNodeType)(i.kind)));return}if(o.enumValueDataByName.has(a)){e.errors.push((0,al.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:cn.Kind.ENUM_VALUE_DEFINITION,name:a,node:(0,Fy.getMutableEnumValueNode)(i),parentTypeName:e.originalParentTypeName,federatedDirectivesData:(0,bp.newFederatedDirectivesData)(),subgraphNames:new Set([e.subgraphName]),description:(0,Ap.formatDescription)(i.description)})},leave(){e.lastChildNodeKind=cn.Kind.NULL}},FieldDefinition:{enter(i){let a=i.name.value;if(r&&La.IGNORED_FIELDS.has(a))return!1;e.edfsDirectiveReferences.size>0&&e.validateSubscriptionFilterDirectiveLocation(i),e.lastChildNodeKind=i.kind;let o=(0,Fy.getTypeNodeNamedTypeName)(i.type);(0,Mn.getValueOrDefault)(e.fieldCoordsByNamedTypeName,o,()=>new Set).add(`${e.renamedParentTypeName||e.originalParentTypeName}.${a}`),n&&!n.isAbstract&&e.internalGraph.addEdge(n,e.internalGraph.addOrUpdateNode(o),a),cL.BASE_SCALARS.has(o)||e.referencedTypeNames.add(o);let u=(0,Mn.getOrThrowError)(e.parentDefinitionDataByTypeName,e.originalParentTypeName,La.PARENT_DEFINITION_DATA);if(!(0,bp.isParentDataCompositeOutputType)(u)){e.errors.push((0,al.unexpectedParentKindForChildError)(e.originalParentTypeName,'"Object" or "Interface"',(0,Mn.kindToNodeType)(u.kind),a,(0,Mn.kindToNodeType)(i.kind)));return}if(u.fieldDataByName.has(a)){e.errors.push((0,al.duplicateFieldDefinitionError)((0,Mn.kindToNodeType)(u.kind),u.name,a));return}let l=e.extractArguments(new Map,i),m=e.extractDirectives(i,new Map),h=new Set;e.handleFieldInheritableDirectives({directivesByName:m,fieldName:a,inheritedDirectiveNames:h,parentData:u});let N=e.addFieldDataByNode(u.fieldDataByName,i,l,m,h);r&&e.extractEventDirectivesToConfiguration(i,l);let T=N.directivesByName.get(La.PROVIDES),O=N.directivesByName.get(La.REQUIRES);if(!O&&!T)return;let R=e.entityDataByTypeName.get(e.originalParentTypeName),C=(0,Mn.getValueOrDefault)(e.fieldSetDataByTypeName,e.originalParentTypeName,uL.newFieldSetData);T&&(0,uL.extractFieldSetValue)(a,C.provides,T),O&&(R||e.warnings.push((0,nKe.requiresDefinedOnNonEntityFieldWarning)(`${e.originalParentTypeName}.${a}`,e.subgraphName)),(0,uL.extractFieldSetValue)(a,C.requires,O))},leave(){e.lastChildNodeKind=cn.Kind.NULL}},InputObjectTypeDefinition:{enter(i){e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertInputObjectByNode(i)},leave(){e.lastParentNodeKind=cn.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=cn.Kind.NULL}},InputValueDefinition:{enter(i){let a=i.name.value;if(e.lastParentNodeKind!==cn.Kind.INPUT_OBJECT_TYPE_DEFINITION&&e.lastParentNodeKind!==cn.Kind.INPUT_OBJECT_TYPE_EXTENSION){e.argumentName=a;return}e.lastChildNodeKind=i.kind;let o=(0,Fy.getTypeNodeNamedTypeName)(i.type);cL.BASE_SCALARS.has(o)||e.referencedTypeNames.add(o);let u=(0,Mn.getOrThrowError)(e.parentDefinitionDataByTypeName,e.originalParentTypeName,La.PARENT_DEFINITION_DATA);if(u.kind!==cn.Kind.INPUT_OBJECT_TYPE_DEFINITION)return e.errors.push((0,al.unexpectedParentKindForChildError)(e.originalParentTypeName,"input object or input object extension",(0,Mn.kindToNodeType)(u.kind),a,(0,Mn.kindToNodeType)(i.kind))),!1;if(u.inputValueDataByName.has(a)){e.errors.push((0,al.duplicateInputFieldDefinitionError)(e.originalParentTypeName,a));return}e.addInputValueDataByNode({inputValueDataByName:u.inputValueDataByName,isArgument:!1,node:i,originalParentTypeName:e.originalParentTypeName})},leave(){e.argumentName="",e.lastChildNodeKind===cn.Kind.INPUT_VALUE_DEFINITION&&(e.lastChildNodeKind=cn.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=cn.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=cn.Kind.NULL}},ObjectTypeDefinition:{enter(i){if(i.name.value===La.SERVICE_OBJECT)return!1;e.originalParentTypeName=i.name.value,r=(0,bp.isTypeNameRootType)(e.originalParentTypeName,e.operationTypeNodeByTypeName),e.renamedParentTypeName=(0,bp.getRenamedRootTypeName)(e.originalParentTypeName,e.operationTypeNodeByTypeName),e.originalTypeNameByRenamedTypeName.set(e.renamedParentTypeName,e.originalParentTypeName),n=r?e.internalGraph.getRootNode(e.renamedParentTypeName):e.internalGraph.addOrUpdateNode(e.renamedParentTypeName),e.lastParentNodeKind=i.kind,e.upsertObjectDataByNode(i)},leave(){n=void 0,r=!1,e.originalParentTypeName="",e.renamedParentTypeName="",e.lastParentNodeKind=cn.Kind.NULL,e.isParentObjectExternal=!1,e.doesParentRequireFetchReasons=!1,e.isParentObjectShareable=!1}},ObjectTypeExtension:{enter(i){if(i.name.value===La.SERVICE_OBJECT)return!1;e.originalParentTypeName=i.name.value,r=(0,bp.isTypeNameRootType)(e.originalParentTypeName,e.operationTypeNodeByTypeName),e.renamedParentTypeName=(0,bp.getRenamedRootTypeName)(e.originalParentTypeName,e.operationTypeNodeByTypeName),e.originalTypeNameByRenamedTypeName.set(e.renamedParentTypeName,e.originalParentTypeName),n=r?e.internalGraph.getRootNode(e.renamedParentTypeName):e.internalGraph.addOrUpdateNode(e.renamedParentTypeName),e.lastParentNodeKind=i.kind,e.upsertObjectDataByNode(i,!0)},leave(){n=void 0,r=!1,e.originalParentTypeName="",e.renamedParentTypeName="",e.lastParentNodeKind=cn.Kind.NULL,e.isParentObjectExternal=!1,e.doesParentRequireFetchReasons=!1,e.isParentObjectShareable=!1}},ScalarTypeDefinition:{enter(i){if(i.name.value===La.ANY_SCALAR)return!1;e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertScalarByNode(i)},leave(){e.originalParentTypeName="",e.lastParentNodeKind=cn.Kind.NULL}},ScalarTypeExtension:{enter(i){if(i.name.value===La.ANY_SCALAR)return!1;e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertScalarByNode(i,!0)},leave(){e.originalParentTypeName="",e.lastParentNodeKind=cn.Kind.NULL}},UnionTypeDefinition:{enter(i){if(i.name.value===La.ENTITY_UNION)return!1;e.upsertUnionByNode(i)}},UnionTypeExtension:{enter(i){if(i.name.value===La.ENTITY_UNION)return!1;e.upsertUnionByNode(i,!0)}}})}});var dL=D(Kv=>{"use strict";d();p();f();Object.defineProperty(Kv,"__esModule",{value:!0});Kv.newFieldSetConditionData=oKe;Kv.newConfigurationData=sKe;function oKe({fieldCoordinatesPath:e,fieldPath:t}){return{fieldCoordinatesPath:e,fieldPath:t}}function sKe(e,t){return{fieldNames:new Set,isRootNode:e,typeName:t}}});var pL=D(Rp=>{"use strict";d();p();f();Object.defineProperty(Rp,"__esModule",{value:!0});Rp.NormalizationFactory=void 0;Rp.normalizeSubgraphFromString=dKe;Rp.normalizeSubgraph=fKe;var W=ve(),Kr=Un(),hi=_p(),Qn=zo(),jn=vp(),ne=Di(),$v=xs(),uKe=YR(),Rn=Iy(),es=hd(),cX=lL(),ts=Xh(),Dt=Zc(),Vr=Jo(),fX=Mv(),Gv=WI(),X=xr(),cKe=Xf(),et=An(),Ly=dL(),lX=XI(),lKe=VP(),dX=Oy();function dKe({noLocation:e,options:t,sdlString:r}){let{error:n,documentNode:i}=(0,Kr.safeParse)(r,e);return n||!i?{errors:[(0,ne.subgraphInvalidSyntaxError)(n)],success:!1,warnings:[]}:new Cy({internalGraph:new fX.Graph,options:t}).normalize(i)}function fKe({document:e,internalGraph:t,options:r,subgraphName:n}){return new Cy({internalGraph:t||new fX.Graph,options:r,subgraphName:n}).normalize(e)}var _d,fL,pX,Cy=class{constructor({internalGraph:t,options:r,subgraphName:n}){Xd(this,_d);S(this,"argumentName","");S(this,"authorizationDataByParentTypeName",new Map);S(this,"concreteTypeNamesByAbstractTypeName",new Map);S(this,"conditionalFieldDataByCoords",new Map);S(this,"configurationDataByTypeName",new Map);S(this,"costs",{fieldWeights:new Map,listSizes:new Map,typeWeights:new Map,directiveArgumentWeights:new Map});S(this,"customDirectiveDefinitionByName",new Map);S(this,"definedDirectiveNames",new Set);S(this,"directiveDefinitionByName",new Map);S(this,"directiveDefinitionDataByName",(0,hi.initializeDirectiveDefinitionDatas)());S(this,"doesParentRequireFetchReasons",!1);S(this,"edfsDirectiveReferences",new Set);S(this,"errors",new Array);S(this,"entityDataByTypeName",new Map);S(this,"entityInterfaceDataByTypeName",new Map);S(this,"eventsConfigurations",new Map);S(this,"federatedDirectiveDataByName",new Map);S(this,"fieldSetDataByTypeName",new Map);S(this,"importDataByDirectiveName",new Map);S(this,"interfaceImplementationTypeNamesByInterfaceTypeName",new Map);S(this,"internalGraph");S(this,"invalidConfigureDescriptionNodeDatas",[]);S(this,"invalidORScopesCoords",new Set);S(this,"invalidRepeatedDirectiveNameByCoords",new Map);S(this,"isParentObjectExternal",!1);S(this,"isParentObjectShareable",!1);S(this,"isSubgraphEventDrivenGraph",!1);S(this,"isSubgraphVersionTwo",!1);S(this,"keyFieldSetDatasByTypeName",new Map);S(this,"lastParentNodeKind",W.Kind.NULL);S(this,"lastChildNodeKind",W.Kind.NULL);S(this,"options");S(this,"parentTypeNamesWithAuthDirectives",new Set);S(this,"keyFieldSetsByEntityTypeNameByFieldCoords",new Map);S(this,"keyFieldNamesByParentTypeName",new Map);S(this,"fieldCoordsByNamedTypeName",new Map);S(this,"operationTypeNodeByTypeName",new Map);S(this,"originalParentTypeName","");S(this,"originalTypeNameByRenamedTypeName",new Map);S(this,"overriddenFieldNamesByTypeNameByTargetSubgraphName",new Map);S(this,"parentDefinitionDataByTypeName",new Map);S(this,"referencedDirectiveNames",new Set);S(this,"referencedTypeNames",new Set);S(this,"renamedParentTypeName","");S(this,"schemaData");S(this,"subgraphName");S(this,"unvalidatedExternalFieldCoords",new Set);S(this,"usesEdfsNatsStreamConfiguration",!1);S(this,"warnings",[]);this.options=r!=null?r:{},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,r){for(let n of t.argumentDataByName.values()){let i=(0,Vr.getTypeNodeNamedTypeName)(n.type);if(Qn.BASE_SCALARS.has(i)){n.namedTypeKind=W.Kind.SCALAR_TYPE_DEFINITION;continue}let a=this.parentDefinitionDataByTypeName.get(i);if(a){if((0,Dt.isInputNodeKind)(a.kind)){n.namedTypeKind=a.kind,(0,Dt.sanitizeDefaultValue)({data:n,namedTypeData:a,node:n.node});continue}this.errors.push((0,ne.invalidNamedTypeError)({data:n,namedTypeData:a,nodeType:`${(0,et.kindToNodeType)(r)} field argument`}))}}}isTypeNameRootType(t){return X.ROOT_TYPE_NAMES.has(t)||this.operationTypeNodeByTypeName.has(t)}handleFieldInheritableDirectives({directivesByName:t,fieldName:r,inheritedDirectiveNames:n,parentData:i}){this.doesParentRequireFetchReasons&&!t.has(X.REQUIRE_FETCH_REASONS)&&(t.set(X.REQUIRE_FETCH_REASONS,[(0,et.generateSimpleDirective)(X.REQUIRE_FETCH_REASONS)]),n.add(X.REQUIRE_FETCH_REASONS)),(this.doesParentRequireFetchReasons||t.has(X.REQUIRE_FETCH_REASONS))&&i.requireFetchReasonsFieldNames.add(r),(0,jn.isObjectDefinitionData)(i)&&(this.isParentObjectExternal&&!t.has(X.EXTERNAL)&&(t.set(X.EXTERNAL,[(0,et.generateSimpleDirective)(X.EXTERNAL)]),n.add(X.EXTERNAL)),t.has(X.EXTERNAL)&&this.unvalidatedExternalFieldCoords.add(`${i.name}.${r}`),this.isParentObjectShareable&&!t.has(X.SHAREABLE)&&(t.set(X.SHAREABLE,[(0,et.generateSimpleDirective)(X.SHAREABLE)]),n.add(X.SHAREABLE)))}extractDirectives(t,r){if(!t.directives)return r;let n=(0,jn.isCompositeOutputNodeKind)(t.kind),i=(0,jn.isObjectNodeKind)(t.kind);for(let a of t.directives){let o=a.name.value;o===X.SHAREABLE?(0,et.getValueOrDefault)(r,o,()=>[a]):(0,et.getValueOrDefault)(r,o,()=>[]).push(a),n&&(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 r}validateDirective({data:t,definitionData:r,directiveCoords:n,directiveNode:i,errorMessages:a,requiredArgumentNames:o}){let u=i.name.value,l=t.kind===W.Kind.FIELD_DEFINITION?t.renamedParentTypeName||t.originalParentTypeName:t.name,m=u===X.AUTHENTICATED,h=u===X.COST,N=(0,Dt.isFieldData)(t),T=u===X.LIST_SIZE,O=u===X.OVERRIDE,R=u===X.REQUIRES_SCOPES,C=u===X.SEMANTIC_NON_NULL;if(!i.arguments||i.arguments.length<1)return r.requiredArgumentNames.size>0&&a.push((0,ne.undefinedRequiredArgumentsErrorMessage)(u,o,[])),m&&this.handleAuthenticatedDirective(t,l),N&&(C&&((0,Dt.isTypeRequired)(t.type)?a.push((0,ne.semanticNonNullLevelsNonNullErrorMessage)({typeString:(0,Rn.printTypeNode)(t.type),value:"0"})):t.nullLevelsBySubgraphName.set(this.subgraphName,new Set([0]))),T&&!(0,Dt.isTypeNodeListType)(t.type)&&a.push((0,ne.listSizeFieldMustReturnListOrUseSizedFieldsErrorMessage)(n,(0,Rn.printTypeNode)(t.type))),!h&&!T&&this.recordDirectiveWeightOnField({data:t,definitionData:r,directiveName:u,directiveNode:i})),a;let M=new Set,Y=new Set,ee=new Set,ae=[];for(let Le of i.arguments){let Ve=Le.name.value;if(M.has(Ve)){Y.add(Ve);continue}M.add(Ve);let ot=r.argumentDataByName.get(Ve);if(!ot){ee.add(Ve);continue}if(!(0,lKe.isArgumentValueValid)({argumentValue:Le.value,parentDefinitionDataByTypeName:this.parentDefinitionDataByTypeName,typeNode:ot.type})){a.push((0,ne.invalidArgumentValueErrorMessage)((0,W.print)(Le.value),`@${u}`,Ve,(0,Rn.printTypeNode)(ot.type)));continue}if(O&&N){this.handleOverrideDirective({data:t,directiveCoords:n,errorMessages:a,targetSubgraphName:Le.value.value});continue}if(C&&N){this.handleSemanticNonNullDirective({data:t,directiveNode:i,errorMessages:a});continue}!R||Ve!==X.SCOPES||this.extractRequiredScopes({directiveCoords:n,orScopes:Le.value.values,requiredScopes:ae})}h?this.handleCostDirective({data:t,directiveCoords:n,directiveNode:i,errorMessages:a}):N&&(T?this.handleListSizeDirective({data:t,directiveCoords:n,directiveNode:i,errorMessages:a}):this.recordDirectiveWeightOnField({data:t,definitionData:r,directiveName:u,directiveNode:i})),Y.size>0&&a.push((0,ne.duplicateDirectiveArgumentDefinitionsErrorMessage)([...Y])),ee.size>0&&a.push((0,ne.unexpectedDirectiveArgumentErrorMessage)(u,[...ee]));let Ne=(0,et.getEntriesNotInHashSet)(o,M);if(Ne.length>0&&a.push((0,ne.undefinedRequiredArgumentsErrorMessage)(u,o,Ne)),a.length>0||!R)return a;let _e=(0,et.getValueOrDefault)(this.authorizationDataByParentTypeName,l,()=>(0,jn.newAuthorizationData)(l));if(t.kind!==W.Kind.FIELD_DEFINITION)this.parentTypeNamesWithAuthDirectives.add(l),_e.requiredScopes.push(...ae);else{let Le=(0,et.getValueOrDefault)(_e.fieldAuthDataByFieldName,t.name,()=>(0,jn.newFieldAuthorizationData)(t.name));Le.inheritedData.requiredScopes.push(...ae),Le.originalData.requiredScopes.push(...ae)}return a}handleComposeDirective(t){let r=t.arguments[0];if(!r)return;let n=r.value.value;if(!n.startsWith(X.LITERAL_AT)){this.errors.push((0,ne.noLeadingAtComposeDirectiveNameError)(n));return}let i=n.substring(1);if(Qn.DIRECTIVE_DEFINITION_BY_NAME.has(i))if(i===X.ONE_OF)this.warnings.push((0,es.composedOneOfDirectiveWarning)(this.subgraphName));else{this.errors.push((0,ne.invalidComposeDirectiveNameError)(n));return}let a=this.directiveDefinitionDataByName.get(i);if(!a){this.errors.push((0,ne.unknownComposeDirectiveNameError)(n));return}let o=this.importDataByDirectiveName.get(n);if(!o){this.errors.push((0,ne.unimportedComposeDirectiveNameError)(n));return}a.majorVersion=o.majorVersion,a.minorVersion=o.minorVersion,a.isComposed=!0,this.federatedDirectiveDataByName.set(i,a)}handleExecutableDirectives(){for(let[t,r]of this.directiveDefinitionDataByName)r.isComposed||r.executableLocations.size<1||this.federatedDirectiveDataByName.set(t,r)}validateDirectives(t,r){var i;let n=new Set;for(let[a,o]of t.directivesByName){let u=this.directiveDefinitionDataByName.get(a);if(!u){n.has(a)||(this.errors.push((0,ne.undefinedDirectiveError)(a,r)),n.add(a));continue}u.isComposed&&(u.isReferenced=!0);let l=[],m=(0,Kr.nodeKindToDirectiveLocation)(t.kind);if(u.locations.has(m)||l.push((0,ne.invalidDirectiveLocationErrorMessage)(a,m)),o.length>1&&!u.isRepeatable){let N=(0,et.getValueOrDefault)(this.invalidRepeatedDirectiveNameByCoords,r,()=>new Set);N.has(a)||(N.add(a),l.push((0,ne.invalidRepeatedDirectiveErrorMessage)(a)))}let h=[...u.requiredArgumentNames];for(let N of(i=u.node.arguments)!=null?i:[]){if(!N.defaultValue)continue;let T=u.argumentDataByName.get(N.name.value);if(!T)continue;let O=this.parentDefinitionDataByTypeName.get((0,Vr.getTypeNodeNamedTypeName)(T.type));O&&(0,Dt.sanitizeDefaultValue)({data:T,namedTypeData:O,node:N})}for(let N=0;N0&&this.errors.push((0,ne.invalidDirectiveError)(a,r,(0,et.numberToOrdinal)(N+1),O))}}switch(t.kind){case W.Kind.ENUM_TYPE_DEFINITION:{for(let[a,o]of t.enumValueDataByName)this.validateDirectives(o,`${t.name}.${a}`);return}case W.Kind.FIELD_DEFINITION:{for(let[a,o]of t.argumentDataByName)this.validateDirectives(o,`${t.originalParentTypeName}.${t.name}(${a}: ...)`);return}case W.Kind.INPUT_OBJECT_TYPE_DEFINITION:{for(let[a,o]of t.inputValueDataByName)this.validateDirectives(o,`${t.name}.${a}`);return}case W.Kind.INTERFACE_TYPE_DEFINITION:case W.Kind.OBJECT_TYPE_DEFINITION:{for(let[a,o]of t.fieldDataByName)this.validateDirectives(o,`${t.name}.${a}`);return}default:return}}getNodeExtensionType(t,r,n=!1){return t?ts.ExtensionType.REAL:n||!r.has(X.EXTENDS)?ts.ExtensionType.NONE:ts.ExtensionType.EXTENDS}setParentDataExtensionType(t,r){switch(t.extensionType){case ts.ExtensionType.EXTENDS:case ts.ExtensionType.NONE:{if(r===ts.ExtensionType.REAL)return;this.errors.push((0,ne.duplicateTypeDefinitionError)((0,et.kindToNodeType)(t.kind),t.name));return}default:t.extensionType=r}}extractConfigureDescriptionData(t,r){var i,a;if(!r.arguments||r.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 n={propagate:!0,description:((a=t.description)==null?void 0:a.value)||""};for(let o of r.arguments)switch(o.name.value){case X.PROPAGATE:{if(o.value.kind!==W.Kind.BOOLEAN)return;n.propagate=o.value.value;break}case X.DESCRIPTION_OVERRIDE:{if(o.value.kind!==W.Kind.STRING)return;n.description=o.value.value;break}default:return}!t.description&&!n.description&&this.invalidConfigureDescriptionNodeDatas.push(t),t.configureDescriptionDataBySubgraphName.set(this.subgraphName,n)}extractConfigureDescriptionsData(t){let r=t.directivesByName.get(X.CONFIGURE_DESCRIPTION);r&&r.length==1&&this.extractConfigureDescriptionData(t,r[0])}extractImplementedInterfaceTypeNames(t,r){if(!t.interfaces)return r;let n=(0,Dt.isInterfaceNode)(t),i=t.name.value;for(let a of t.interfaces){let o=a.name.value;if(r.has(o)){this.errors.push((0,ne.duplicateImplementedInterfaceError)((0,jn.kindToConvertedTypeString)(t.kind),i,o));continue}n&&(0,et.getValueOrDefault)(this.interfaceImplementationTypeNamesByInterfaceTypeName,o,()=>new Set).add(i),r.add(o)}return r}updateCompositeOutputDataByNode(t,r,n){this.setParentDataExtensionType(r,n),this.extractImplementedInterfaceTypeNames(t,r.implementedInterfaceTypeNames),r.description||(r.description=(0,Kr.formatDescription)("description"in t?t.description:void 0)),this.extractConfigureDescriptionsData(r),r.isEntity||(r.isEntity=r.directivesByName.has(X.KEY)),r.isInaccessible||(r.isInaccessible=r.directivesByName.has(X.INACCESSIBLE)),r.subgraphNames.add(this.subgraphName)}addConcreteTypeNamesForImplementedInterfaces(t,r){for(let n of t)(0,et.getValueOrDefault)(this.concreteTypeNamesByAbstractTypeName,n,()=>new Set).add(r),this.internalGraph.addEdge(this.internalGraph.addOrUpdateNode(n,{isAbstract:!0}),this.internalGraph.addOrUpdateNode(r),r,!0)}extractArguments(t,r){var o;if(!((o=r.arguments)!=null&&o.length))return t;let n=r.name.value,i=`${this.originalParentTypeName}.${n}`,a=new Set;for(let u of r.arguments){let l=u.name.value;if(t.has(l)){a.add(l);continue}this.addInputValueDataByNode({fieldName:n,inputValueDataByName:t,isArgument:!0,node:u,originalParentTypeName:this.originalParentTypeName,renamedParentTypeName:this.renamedParentTypeName})}return a.size>0&&this.errors.push((0,ne.duplicateArgumentsError)(i,[...a])),t}extractDirectiveArgumentData({argumentNodes:t,directiveName:r,errorMessages:n}){let i=new Map,a=new Set,o=new Set,u={argumentDataByName:i,optionalArgumentNames:a,requiredArgumentNames:o};if(!t)return u;let l=new Set;for(let m of t){let h=m.name.value;if(i.has(h)){l.add(h);continue}i.set(h,this.addDirectiveArgumentDataByNode({directiveName:r,node:m,optionalArgumentNames:a,requiredArgumentNames:o}))}return l.size>0&&n.push((0,ne.duplicateDirectiveDefinitionArgumentErrorMessage)([...l])),u}extractDirectiveArgumentCosts(t){var n;if(!t.arguments)return;let r=t.name.value;for(let i of t.arguments)if(i.directives)for(let a of i.directives){if(a.name.value!==X.COST)continue;let o=(n=a.arguments)==null?void 0:n.find(l=>l.name.value===X.WEIGHT);if(!o)continue;if(o.value.kind!==W.Kind.INT){let l=`@${r}(${i.name.value}: ...)`;this.errors.push((0,ne.invalidDirectiveError)(X.COST,l,"1st",[(0,ne.invalidArgumentValueErrorMessage)((0,W.print)(o.value),`@${X.COST}`,X.WEIGHT,"Int!")]));continue}let u=parseInt(o.value.value,10);this.costs.directiveArgumentWeights.set(`${r}.${i.name.value}`,u)}}addDirectiveArgumentDataByNode({directiveName:t,node:r,optionalArgumentNames:n,requiredArgumentNames:i}){let a=r.name.value,o=`@${t}`;r.defaultValue&&!(0,Dt.areDefaultValuesCompatible)(r.type,r.defaultValue)&&this.errors.push((0,ne.incompatibleInputValueDefaultValueTypeError)(`argument "${a}"`,o,(0,Rn.printTypeNode)(r.type),(0,W.print)(r.defaultValue)));let u=(0,Dt.isTypeRequired)(r.type);r.defaultValue?n.add(a):u&&i.add(a);let l=(0,Vr.getTypeNodeNamedTypeName)(r.type),m=(0,dX.newDirectiveArgumentData)({name:a,directive:`@${t}`,directivesByName:this.extractDirectives(r,new Map),defaultValue:r.defaultValue,description:(0,Kr.formatDescription)(r.description),namedTypeKind:Qn.BASE_SCALARS.has(l)?W.Kind.SCALAR_TYPE_DEFINITION:W.Kind.NULL,node:(0,Vr.getMutableInputValueNode)(r,o,this.errors),requiredSubgraphNames:new Set(u?[this.subgraphName]:[]),subgraphNames:new Set([this.subgraphName]),typeNode:(0,Vr.getMutableTypeNode)(r.type,o,this.errors)});return this.extractConfigureDescriptionsData(m),m}addDirectiveDefinitionDataByNode(t){let r=t.name.value;if(this.definedDirectiveNames.has(r))return this.errors.push((0,ne.duplicateDirectiveDefinitionError)(r)),!1;this.definedDirectiveNames.add(r),this.extractDirectiveArgumentCosts(t);let n=Qn.V2_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME.get(r);if(n)return this.directiveDefinitionByName.set(r,n),this.isSubgraphVersionTwo=!0,!1;if(Qn.DIRECTIVE_DEFINITION_BY_NAME.has(r))return!1;this.directiveDefinitionByName.set(r,t);let i=[],{argumentDataByName:a,optionalArgumentNames:o,requiredArgumentNames:u}=this.extractDirectiveArgumentData({argumentNodes:t.arguments,directiveName:r,errorMessages:i}),{errors:l,locations:m}=(0,Vr.extractDirectiveLocations)(t);return l.length>0&&this.errors.push(...l),this.directiveDefinitionDataByName.set(r,(0,dX.newDirectiveDefinitionData)({argumentDataByName:a,description:t.description,isRepeatable:t.repeatable,locations:m,name:r,node:t,optionalArgumentNames:o,requiredArgumentNames:u,subgraphNames:new Set([this.subgraphName])})),i.length>0&&this.errors.push((0,ne.invalidDirectiveDefinitionError)(r,i)),!0}addFieldDataByNode(t,r,n,i,a=new Set){let o=r.name.value,u=this.renamedParentTypeName||this.originalParentTypeName,l=`${this.originalParentTypeName}.${o}`,{isExternal:m,isShareable:h}=(0,Dt.isNodeExternalOrShareable)(r,!this.isSubgraphVersionTwo,i),N=(0,Vr.getTypeNodeNamedTypeName)(r.type),T={argumentDataByName:n,configureDescriptionDataBySubgraphName:new Map,externalFieldDataBySubgraphName:new Map([[this.subgraphName,(0,Dt.newExternalFieldData)(m)]]),federatedCoords:`${u}.${o}`,inheritedDirectiveNames:a,isInaccessible:i.has(X.INACCESSIBLE),isShareableBySubgraphName:new Map([[this.subgraphName,h]]),kind:W.Kind.FIELD_DEFINITION,name:o,namedTypeKind:Qn.BASE_SCALARS.has(N)?W.Kind.SCALAR_TYPE_DEFINITION:W.Kind.NULL,namedTypeName:N,node:(0,Vr.getMutableFieldNode)(r,l,this.errors),nullLevelsBySubgraphName:new Map,originalParentTypeName:this.originalParentTypeName,federatedDirectivesData:(0,Dt.newFederatedDirectivesData)(),renamedParentTypeName:u,subgraphNames:new Set([this.subgraphName]),type:(0,Vr.getMutableTypeNode)(r.type,l,this.errors),directivesByName:i,description:(0,Kr.formatDescription)(r.description)};return Qn.BASE_SCALARS.has(T.namedTypeName)||this.referencedTypeNames.add(T.namedTypeName),this.extractConfigureDescriptionsData(T),t.set(o,T),T}addInputValueDataByNode({fieldName:t,inputValueDataByName:r,isArgument:n,node:i,originalParentTypeName:a,renamedParentTypeName:o}){let u=o||a,l=i.name.value,m=n?`${a}${t?`.${t}`:""}(${l}: ...)`:`${a}.${l}`;i.defaultValue&&!(0,Dt.areDefaultValuesCompatible)(i.type,i.defaultValue)&&this.errors.push((0,ne.incompatibleInputValueDefaultValueTypeError)((n?X.ARGUMENT:X.INPUT_FIELD)+` "${l}"`,m,(0,Rn.printTypeNode)(i.type),(0,W.print)(i.defaultValue)));let h=n?`${u}${t?`.${t}`:""}(${l}: ...)`:`${u}.${l}`,N=(0,Vr.getTypeNodeNamedTypeName)(i.type),T={configureDescriptionDataBySubgraphName:new Map,directivesByName:this.extractDirectives(i,new Map),federatedCoords:h,fieldName:t,includeDefaultValue:!!i.defaultValue,isArgument:n,kind:n?W.Kind.ARGUMENT:W.Kind.INPUT_VALUE_DEFINITION,name:l,namedTypeKind:Qn.BASE_SCALARS.has(N)?W.Kind.SCALAR_TYPE_DEFINITION:W.Kind.NULL,namedTypeName:N,node:(0,Vr.getMutableInputValueNode)(i,a,this.errors),originalCoords:m,originalParentTypeName:a,federatedDirectivesData:(0,Dt.newFederatedDirectivesData)(),renamedParentTypeName:u,requiredSubgraphNames:new Set((0,Dt.isTypeRequired)(i.type)?[this.subgraphName]:[]),subgraphNames:new Set([this.subgraphName]),type:(0,Vr.getMutableTypeNode)(i.type,a,this.errors),defaultValue:i.defaultValue,description:(0,Kr.formatDescription)(i.description)};this.extractConfigureDescriptionsData(T),r.set(l,T)}upsertInterfaceDataByNode(t,r=!1){let n=t.name.value,i=this.parentDefinitionDataByTypeName.get(n),a=this.extractDirectives(t,(i==null?void 0:i.directivesByName)||new Map),o=this.getNodeExtensionType(r,a),u=this.entityInterfaceDataByTypeName.get(n);if(u&&t.fields)for(let m of t.fields)u.interfaceFieldNames.add(m.name.value);if(i){if(i.kind!==W.Kind.INTERFACE_TYPE_DEFINITION){this.errors.push((0,ne.multipleNamedTypeDefinitionError)(n,(0,et.kindToNodeType)(i.kind),(0,jn.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:n,node:(0,Vr.getMutableInterfaceNode)(t.name),federatedDirectivesData:(0,Dt.newFederatedDirectivesData)(),requireFetchReasonsFieldNames:new Set,subgraphNames:new Set([this.subgraphName]),description:(0,Kr.formatDescription)("description"in t?t.description:void 0)};this.extractConfigureDescriptionsData(l),this.parentDefinitionDataByTypeName.set(n,l)}getRenamedRootTypeName(t){let r=this.operationTypeNodeByTypeName.get(t);if(!r)return t;switch(r){case W.OperationTypeNode.MUTATION:return X.MUTATION;case W.OperationTypeNode.SUBSCRIPTION:return X.SUBSCRIPTION;default:return X.QUERY}}addInterfaceObjectFieldsByNode(t){let r=t.name.value,n=this.entityInterfaceDataByTypeName.get(r);if(!(!n||!n.isInterfaceObject||!t.fields))for(let i of t.fields)n.interfaceObjectFieldNames.add(i.name.value)}upsertObjectDataByNode(t,r=!1){var h;let n=t.name.value,i=this.parentDefinitionDataByTypeName.get(n),a=this.extractDirectives(t,(h=i==null?void 0:i.directivesByName)!=null?h:new Map),o=this.isTypeNameRootType(n),u=this.getNodeExtensionType(r,a,o);if(this.addInterfaceObjectFieldsByNode(t),i){if(i.kind!==W.Kind.OBJECT_TYPE_DEFINITION){this.errors.push((0,ne.multipleNamedTypeDefinitionError)(n,(0,et.kindToNodeType)(i.kind),(0,jn.kindToConvertedTypeString)(t.kind)));return}this.updateCompositeOutputDataByNode(t,i,u),a.has(X.INTERFACE_OBJECT)||this.addConcreteTypeNamesForImplementedInterfaces(i.implementedInterfaceTypeNames,n);return}let l=this.extractImplementedInterfaceTypeNames(t,new Set);a.has(X.INTERFACE_OBJECT)||this.addConcreteTypeNamesForImplementedInterfaces(l,n);let m={configureDescriptionDataBySubgraphName:new Map,directivesByName:a,extensionType:u,fieldDataByName:new Map,implementedInterfaceTypeNames:l,isEntity:a.has(X.KEY),isInaccessible:a.has(X.INACCESSIBLE),isRootType:o,kind:W.Kind.OBJECT_TYPE_DEFINITION,name:n,node:(0,Vr.getMutableObjectNode)(t.name),federatedDirectivesData:(0,Dt.newFederatedDirectivesData)(),requireFetchReasonsFieldNames:new Set,renamedTypeName:this.getRenamedRootTypeName(n),subgraphNames:new Set([this.subgraphName]),description:(0,Kr.formatDescription)("description"in t?t.description:void 0)};this.extractConfigureDescriptionsData(m),this.parentDefinitionDataByTypeName.set(n,m)}upsertEnumDataByNode(t,r=!1){let n=t.name.value;this.internalGraph.addOrUpdateNode(n,{isLeaf:!0});let i=this.parentDefinitionDataByTypeName.get(n),a=this.extractDirectives(t,(i==null?void 0:i.directivesByName)||new Map),o=this.getNodeExtensionType(r,a);if(i){if(i.kind!==W.Kind.ENUM_TYPE_DEFINITION){this.errors.push((0,ne.multipleNamedTypeDefinitionError)(n,(0,et.kindToNodeType)(i.kind),(0,jn.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,Kr.formatDescription)("description"in t?t.description:void 0)),this.extractConfigureDescriptionsData(i);return}let u={appearances:1,configureDescriptionDataBySubgraphName:new Map,directivesByName:a,extensionType:o,enumValueDataByName:new Map,isInaccessible:a.has(X.INACCESSIBLE),kind:W.Kind.ENUM_TYPE_DEFINITION,name:n,node:(0,Vr.getMutableEnumNode)(t.name),federatedDirectivesData:(0,Dt.newFederatedDirectivesData)(),subgraphNames:new Set([this.subgraphName]),description:(0,Kr.formatDescription)("description"in t?t.description:void 0)};this.extractConfigureDescriptionsData(u),this.parentDefinitionDataByTypeName.set(n,u)}upsertInputObjectByNode(t,r=!1){let n=t.name.value,i=this.parentDefinitionDataByTypeName.get(n),a=this.extractDirectives(t,(i==null?void 0:i.directivesByName)||new Map),o=this.getNodeExtensionType(r,a);if(i)return i.kind!==W.Kind.INPUT_OBJECT_TYPE_DEFINITION?(this.errors.push((0,ne.multipleNamedTypeDefinitionError)(n,(0,et.kindToNodeType)(i.kind),(0,jn.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,Kr.formatDescription)("description"in t?t.description:void 0)),this.extractConfigureDescriptionsData(i),{success:!0,data:i});let u={configureDescriptionDataBySubgraphName:new Map,directivesByName:a,extensionType:o,inputValueDataByName:new Map,isInaccessible:a.has(X.INACCESSIBLE),kind:W.Kind.INPUT_OBJECT_TYPE_DEFINITION,name:n,node:(0,Vr.getMutableInputObjectNode)(t.name),federatedDirectivesData:(0,Dt.newFederatedDirectivesData)(),subgraphNames:new Set([this.subgraphName]),description:(0,Kr.formatDescription)("description"in t?t.description:void 0)};return this.extractConfigureDescriptionsData(u),this.parentDefinitionDataByTypeName.set(n,u),{success:!0,data:u}}upsertScalarByNode(t,r=!1){let n=t.name.value;this.internalGraph.addOrUpdateNode(n,{isLeaf:!0});let i=this.parentDefinitionDataByTypeName.get(n),a=this.extractDirectives(t,(i==null?void 0:i.directivesByName)||new Map),o=this.getNodeExtensionType(r,a);if(i){if(i.kind!==W.Kind.SCALAR_TYPE_DEFINITION){this.errors.push((0,ne.multipleNamedTypeDefinitionError)(n,(0,et.kindToNodeType)(i.kind),(0,jn.kindToConvertedTypeString)(t.kind)));return}this.setParentDataExtensionType(i,o),i.description||(i.description=(0,Kr.formatDescription)("description"in t?t.description:void 0)),i.subgraphNames.add(this.subgraphName),this.extractConfigureDescriptionsData(i);return}let u={configureDescriptionDataBySubgraphName:new Map,directivesByName:a,extensionType:o,kind:W.Kind.SCALAR_TYPE_DEFINITION,name:n,node:(0,Vr.getMutableScalarNode)(t.name),federatedDirectivesData:(0,Dt.newFederatedDirectivesData)(),subgraphNames:new Set([this.subgraphName]),description:(0,Kr.formatDescription)("description"in t?t.description:void 0)};this.extractConfigureDescriptionsData(u),this.parentDefinitionDataByTypeName.set(n,u)}extractUnionMembers(t,r){if(!t.types)return r;let n=t.name.value;for(let i of t.types){let a=i.name.value;if(r.has(a)){this.errors.push((0,ne.duplicateUnionMemberDefinitionError)(n,a));continue}(0,et.getValueOrDefault)(this.concreteTypeNamesByAbstractTypeName,n,()=>new Set).add(a),Qn.BASE_SCALARS.has(a)||this.referencedTypeNames.add(a),r.set(a,i)}return r}upsertUnionByNode(t,r=!1){let n=t.name.value,i=this.parentDefinitionDataByTypeName.get(n),a=this.extractDirectives(t,(i==null?void 0:i.directivesByName)||new Map),o=this.getNodeExtensionType(r,a);if(this.addConcreteTypeNamesForUnion(t),i){if(i.kind!==W.Kind.UNION_TYPE_DEFINITION){this.errors.push((0,ne.multipleNamedTypeDefinitionError)(n,(0,et.kindToNodeType)(i.kind),(0,jn.kindToConvertedTypeString)(t.kind)));return}this.setParentDataExtensionType(i,o),this.extractUnionMembers(t,i.memberByMemberTypeName),i.description||(i.description=(0,Kr.formatDescription)("description"in t?t.description:void 0)),i.subgraphNames.add(this.subgraphName),this.extractConfigureDescriptionsData(i);return}let u={configureDescriptionDataBySubgraphName:new Map,directivesByName:a,extensionType:o,kind:W.Kind.UNION_TYPE_DEFINITION,memberByMemberTypeName:this.extractUnionMembers(t,new Map),name:n,node:(0,Vr.getMutableUnionNode)(t.name),federatedDirectivesData:(0,Dt.newFederatedDirectivesData)(),subgraphNames:new Set([this.subgraphName]),description:(0,Kr.formatDescription)("description"in t?t.description:void 0)};this.extractConfigureDescriptionsData(u),this.parentDefinitionDataByTypeName.set(n,u)}extractKeyFieldSets(t,r){var a;let n=t.name.value;if(!((a=t.directives)!=null&&a.length)){this.errors.push((0,ne.expectedEntityError)(n));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 u,l=!1;for(let O of o.arguments){if(O.name.value===X.RESOLVABLE){O.value.kind===W.Kind.BOOLEAN&&!O.value.value&&(l=!0);continue}if(O.name.value!==X.FIELDS){u=void 0;break}if(O.value.kind!==W.Kind.STRING){u=void 0;break}u=O.value.value}if(u===void 0)continue;let{error:m,documentNode:h}=(0,Kr.safeParse)("{"+u+"}");if(m||!h){this.errors.push((0,ne.invalidDirectiveError)(X.KEY,n,(0,et.numberToOrdinal)(i),[(0,ne.unparsableFieldSetErrorMessage)(u,m)]));continue}let N=(0,hi.getNormalizedFieldSet)(h),T=r.get(N);T?T.isUnresolvable||(T.isUnresolvable=l):r.set(N,{documentNode:h,isUnresolvable:l,normalizedFieldSet:N,rawFieldSet:u})}}getFieldSetParent(t,r,n,i){if(!t)return{fieldSetParentData:r};let a=(0,et.getOrThrowError)(r.fieldDataByName,n,`${i}.fieldDataByFieldName`),o=(0,Vr.getTypeNodeNamedTypeName)(a.node.type),u=`${i}.${n}`;if(Qn.BASE_SCALARS.has(o))return{errorString:(0,ne.incompatibleTypeWithProvidesErrorMessage)({fieldCoords:u,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,ne.incompatibleTypeWithProvidesErrorMessage)({fieldCoords:u,responseType:o,subgraphName:this.subgraphName})}:{fieldSetParentData:l}:{errorString:(0,ne.unknownNamedTypeErrorMessage)(u,o)}}validateConditionalFieldSet(t,r,n,i,a){let{error:o,documentNode:u}=(0,Kr.safeParse)("{"+r+"}");if(o||!u)return{errorMessages:[(0,ne.unparsableFieldSetErrorMessage)(r,o)]};let l=this,m=[t],h=(0,hi.getConditionalFieldSetDirectiveName)(i),N=[],T=`${a}.${n}`,O=(0,hi.getInitialFieldCoordsPath)(i,T),R=[n],C=new Set,M=[],Y=-1,ee=!0,ae=n,Ne=!1;return(0,W.visit)(u,{Argument:{enter(){return!1}},Field:{enter(_e){var tr,$r;let Le=m[Y],Ve=Le.name;if(Le.kind===W.Kind.UNION_TYPE_DEFINITION)return M.push((0,ne.invalidSelectionOnUnionErrorMessage)(r,O,Ve)),W.BREAK;let ot=_e.name.value,Z=`${Ve}.${ot}`;if(l.unvalidatedExternalFieldCoords.delete(Z),ee)return M.push((0,ne.invalidSelectionSetErrorMessage)(r,O,Ve,(0,et.kindToNodeType)(Le.kind))),W.BREAK;if(O.push(Z),R.push(ot),ae=ot,ot===X.TYPENAME){if(i)return M.push((0,ne.typeNameAlreadyProvidedErrorMessage)(Z,l.subgraphName)),W.BREAK;C.size<1&&Zd(tr=l,_d,fL).call(tr,{currentFieldCoords:Z,directiveCoords:T,directiveName:h,fieldSet:r});return}let Se=Le.fieldDataByName.get(ot);if(!Se)return M.push((0,ne.undefinedFieldInFieldSetErrorMessage)(r,Ve,ot)),W.BREAK;if(N[Y].has(ot))return M.push((0,ne.duplicateFieldInFieldSetErrorMessage)(r,Z)),W.BREAK;N[Y].add(ot);let{isDefinedExternal:Ft,isUnconditionallyProvided:pr}=(0,et.getOrThrowError)(Se.externalFieldDataBySubgraphName,l.subgraphName,`${Z}.externalFieldDataBySubgraphName`),ar=Ft&&!pr;pr||(Ne=!0);let vr=(0,Vr.getTypeNodeNamedTypeName)(Se.node.type),mr=l.parentDefinitionDataByTypeName.get(vr);if(Qn.BASE_SCALARS.has(vr)||(mr==null?void 0:mr.kind)===W.Kind.SCALAR_TYPE_DEFINITION||(mr==null?void 0:mr.kind)===W.Kind.ENUM_TYPE_DEFINITION){if(C.size<1&&!Ft){Zd($r=l,_d,fL).call($r,{currentFieldCoords:Z,directiveCoords:T,directiveName:h,fieldSet:r});return}if(C.size<1&&pr){l.isSubgraphVersionTwo?M.push((0,ne.fieldAlreadyProvidedErrorMessage)(Z,l.subgraphName,h)):l.warnings.push((0,es.fieldAlreadyProvidedWarning)(Z,h,T,l.subgraphName));return}if(!ar&&!i)return;let Yn=(0,et.getValueOrDefault)(l.conditionalFieldDataByCoords,Z,Dt.newConditionalFieldData),dn=(0,Ly.newFieldSetConditionData)({fieldCoordinatesPath:[...O],fieldPath:[...R]});i?Yn.providedBy.push(dn):Yn.requiredBy.push(dn);return}if(!mr)return M.push((0,ne.unknownTypeInFieldSetErrorMessage)(r,Z,vr)),W.BREAK;if(Ft&&(i&&(0,et.getValueOrDefault)(l.conditionalFieldDataByCoords,Z,Dt.newConditionalFieldData).providedBy.push((0,Ly.newFieldSetConditionData)({fieldCoordinatesPath:[...O],fieldPath:[...R]})),C.add(Z)),mr.kind===W.Kind.OBJECT_TYPE_DEFINITION||mr.kind===W.Kind.INTERFACE_TYPE_DEFINITION||mr.kind===W.Kind.UNION_TYPE_DEFINITION){ee=!0,m.push(mr);return}},leave(){C.delete(O.pop()||""),R.pop()}},InlineFragment:{enter(_e){let Le=m[Y],Ve=Le.name,ot=O.length<1?t.name:O[O.length-1];if(!_e.typeCondition)return M.push((0,ne.inlineFragmentWithoutTypeConditionErrorMessage)(r,ot)),W.BREAK;let Z=_e.typeCondition.name.value;if(Z===Ve){m.push(Le),ee=!0;return}if(!(0,Kr.isKindAbstract)(Le.kind))return M.push((0,ne.invalidInlineFragmentTypeErrorMessage)(r,O,Z,Ve)),W.BREAK;let Se=l.parentDefinitionDataByTypeName.get(Z);if(!Se)return M.push((0,ne.unknownInlineFragmentTypeConditionErrorMessage)(r,O,Ve,Z)),W.BREAK;switch(ee=!0,Se.kind){case W.Kind.INTERFACE_TYPE_DEFINITION:{if(!Se.implementedInterfaceTypeNames.has(Ve))break;m.push(Se);return}case W.Kind.OBJECT_TYPE_DEFINITION:{let Ft=l.concreteTypeNamesByAbstractTypeName.get(Ve);if(!Ft||!Ft.has(Z))break;m.push(Se);return}case W.Kind.UNION_TYPE_DEFINITION:{m.push(Se);return}default:return M.push((0,ne.invalidInlineFragmentTypeConditionTypeErrorMessage)(r,O,Ve,Z,(0,et.kindToNodeType)(Se.kind))),W.BREAK}return M.push((0,ne.invalidInlineFragmentTypeConditionErrorMessage)(r,O,Z,(0,et.kindToNodeType)(Le.kind),Ve)),W.BREAK}},SelectionSet:{enter(){if(!ee){let _e=m[Y];if(_e.kind===W.Kind.UNION_TYPE_DEFINITION)return M.push((0,ne.unparsableFieldSetSelectionErrorMessage)(r,ae)),W.BREAK;if(ae===X.TYPENAME)return M.push((0,ne.invalidSelectionSetDefinitionErrorMessage)(r,O,X.STRING_SCALAR,(0,et.kindToNodeType)(W.Kind.SCALAR_TYPE_DEFINITION))),W.BREAK;let Le=_e.fieldDataByName.get(ae);if(!Le)return M.push((0,ne.undefinedFieldInFieldSetErrorMessage)(r,_e.name,ae)),W.BREAK;let Ve=(0,Vr.getTypeNodeNamedTypeName)(Le.node.type),ot=l.parentDefinitionDataByTypeName.get(Ve),Z=ot?ot.kind:W.Kind.SCALAR_TYPE_DEFINITION;return M.push((0,ne.invalidSelectionSetDefinitionErrorMessage)(r,O,Ve,(0,et.kindToNodeType)(Z))),W.BREAK}if(Y+=1,ee=!1,Y<0||Y>=m.length)return M.push((0,ne.unparsableFieldSetSelectionErrorMessage)(r,ae)),W.BREAK;N.push(new Set)},leave(){if(ee){let _e=m[Y+1];M.push((0,ne.invalidSelectionSetErrorMessage)(r,O,_e.name,(0,et.kindToNodeType)(_e.kind))),ee=!1}Y-=1,m.pop(),N.pop()}}}),M.length>0||!Ne?{errorMessages:M}:{configuration:{fieldName:n,selectionSet:(0,hi.getNormalizedFieldSet)(u)},errorMessages:M}}validateProvidesOrRequires(t,r,n){let i=[],a=[],o=(0,Dt.getParentTypeName)(t);for(let[u,l]of r){let{fieldSetParentData:m,errorString:h}=this.getFieldSetParent(n,t,u,o),N=`${o}.${u}`;if(h){i.push(h);continue}if(!m)continue;let{errorMessages:T,configuration:O}=this.validateConditionalFieldSet(m,l,u,n,o);if(T.length>0){i.push(` On field "${N}": + -`+T.join(X.HYPHEN_JOIN));continue}O&&a.push(O)}if(i.length>0){this.errors.push((0,ne.invalidProvidesOrRequiresDirectivesError)((0,hi.getConditionalFieldSetDirectiveName)(n),i));return}if(a.length>0)return a}validateInterfaceImplementations(t){if(t.implementedInterfaceTypeNames.size<1)return;let r=t.directivesByName.has(X.INACCESSIBLE),n=new Map,i=new Map,a=!1;for(let o of t.implementedInterfaceTypeNames){let u=this.parentDefinitionDataByTypeName.get(o);if(Qn.BASE_SCALARS.has(o)&&this.referencedTypeNames.add(o),!u)continue;if(u.kind!==W.Kind.INTERFACE_TYPE_DEFINITION){i.set(u.name,(0,et.kindToNodeType)(u.kind));continue}if(t.name===u.name){a=!0;continue}let l={invalidFieldImplementations:new Map,unimplementedFields:[]},m=!1;for(let[h,N]of u.fieldDataByName){this.unvalidatedExternalFieldCoords.delete(`${t.name}.${h}`);let T=!1,O=t.fieldDataByName.get(h);if(!O){m=!0,l.unimplementedFields.push(h);continue}let R={invalidAdditionalArguments:new Set,invalidImplementedArguments:[],isInaccessible:!1,originalResponseType:(0,Rn.printTypeNode)(N.node.type),unimplementedArguments:new Set};(0,Dt.isTypeValidImplementation)({concreteTypeNamesByAbstractTypeName:this.concreteTypeNamesByAbstractTypeName,implementationType:O.node.type,interfaceImplementationTypeNamesByInterfaceTypeName:this.interfaceImplementationTypeNamesByInterfaceTypeName,originalType:N.node.type})||(m=!0,T=!0,R.implementedResponseType=(0,Rn.printTypeNode)(O.node.type));let C=new Set;for(let[M,Y]of N.argumentDataByName){C.add(M);let ee=O.argumentDataByName.get(M);if(!ee){m=!0,T=!0,R.unimplementedArguments.add(M);continue}let ae=(0,Rn.printTypeNode)(ee.type),Ne=(0,Rn.printTypeNode)(Y.type);Ne!==ae&&(m=!0,T=!0,R.invalidImplementedArguments.push({actualType:ae,argumentName:M,expectedType:Ne}))}for(let[M,Y]of O.argumentDataByName)C.has(M)||Y.type.kind===W.Kind.NON_NULL_TYPE&&(m=!0,T=!0,R.invalidAdditionalArguments.add(M));!r&&O.isInaccessible&&!N.isInaccessible&&(m=!0,T=!0,R.isInaccessible=!0),T&&l.invalidFieldImplementations.set(h,R)}m&&n.set(o,l)}i.size>0&&this.errors.push((0,ne.invalidImplementedTypeError)(t.name,i)),a&&this.errors.push((0,ne.selfImplementationError)(t.name)),n.size>0&&this.errors.push((0,ne.invalidInterfaceImplementationError)(t.name,(0,et.kindToNodeType)(t.kind),n))}handleAuthenticatedDirective(t,r){let n=(0,et.getValueOrDefault)(this.authorizationDataByParentTypeName,r,()=>(0,jn.newAuthorizationData)(r));if(t.kind===W.Kind.FIELD_DEFINITION){let i=(0,et.getValueOrDefault)(n.fieldAuthDataByFieldName,t.name,()=>(0,jn.newFieldAuthorizationData)(t.name));i.inheritedData.requiresAuthentication=!0,i.originalData.requiresAuthentication=!0}else n.requiresAuthentication=!0,this.parentTypeNamesWithAuthDirectives.add(r)}handleOverrideDirective({data:t,directiveCoords:r,errorMessages:n,targetSubgraphName:i}){if(i===this.subgraphName){n.push((0,ne.equivalentSourceAndTargetOverrideErrorMessage)(i,r));return}let a=(0,et.getValueOrDefault)(this.overriddenFieldNamesByTypeNameByTargetSubgraphName,i,()=>new Map);(0,et.getValueOrDefault)(a,t.renamedParentTypeName,()=>new Set).add(t.name)}handleSemanticNonNullDirective({data:t,directiveNode:r,errorMessages:n}){var N;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 u=(N=r.arguments)==null?void 0:N.find(T=>T.name.value===X.LEVELS);if(!u||u.value.kind!==W.Kind.LIST){n.push(ne.semanticNonNullArgumentErrorMessage);return}let l=u.value.values,m=(0,Rn.printTypeNode)(t.type),h=new Set;for(let{value:T}of l){let O=parseInt(T,10);if(Number.isNaN(O)){n.push((0,ne.semanticNonNullLevelsNaNIndexErrorMessage)(T));continue}if(O<0||O>o){n.push((0,ne.semanticNonNullLevelsIndexOutOfBoundsErrorMessage)({maxIndex:o,typeString:m,value:T}));continue}if(!i.has(O)){h.add(O);continue}n.push((0,ne.semanticNonNullLevelsNonNullErrorMessage)({typeString:m,value:T}))}t.nullLevelsBySubgraphName.set(this.subgraphName,h)}getOrCreateFieldWeight(t,r){let n=`${t}.${r}`;return(0,et.getValueOrDefault)(this.costs.fieldWeights,n,()=>({typeName:t,fieldName:r,argumentWeights:new Map,directiveArgumentWeights:new Map}))}handleCostDirective({data:t,directiveCoords:r,directiveNode:n,errorMessages:i}){var u;let a=(u=n.arguments)==null?void 0:u.find(l=>l.name.value===X.WEIGHT);if(!a||a.value.kind!==W.Kind.INT)return;let o=parseInt(a.value.value,10);switch(t.kind){case W.Kind.OBJECT_TYPE_DEFINITION:case W.Kind.SCALAR_TYPE_DEFINITION:case W.Kind.ENUM_TYPE_DEFINITION:this.costs.typeWeights.set(t.name,o);break;case W.Kind.FIELD_DEFINITION:{let l=t.renamedParentTypeName||t.originalParentTypeName,m=this.parentDefinitionDataByTypeName.get(l);if(!m)break;if(m.kind===W.Kind.INTERFACE_TYPE_DEFINITION){i.push((0,ne.costOnInterfaceFieldErrorMessage)(r));break}let h=this.getOrCreateFieldWeight(l,t.name);h.weight=o;break}case W.Kind.INPUT_VALUE_DEFINITION:case W.Kind.ARGUMENT:{let l=t;if(l.isArgument&&l.fieldName){let m=l.renamedParentTypeName||l.originalParentTypeName,h=this.parentDefinitionDataByTypeName.get(m);if(!h)break;if(h.kind===W.Kind.INTERFACE_TYPE_DEFINITION){i.push((0,ne.costOnInterfaceFieldErrorMessage)(r));break}this.getOrCreateFieldWeight(m,l.fieldName).argumentWeights.set(l.name,o)}else{let m=l.renamedParentTypeName||l.originalParentTypeName,h=this.getOrCreateFieldWeight(m,l.name);h.weight=o}break}}}recordDirectiveWeightOnField({data:t,definitionData:r,directiveName:n,directiveNode:i}){var l,m;let a=t.renamedParentTypeName||t.originalParentTypeName,o=this.parentDefinitionDataByTypeName.get(a);if(!o||o.kind===W.Kind.INTERFACE_TYPE_DEFINITION)return;let u=new Map;for(let h of(l=i.arguments)!=null?l:[])u.set(h.name.value,h.value);for(let[h,N]of r.argumentDataByName){let T=`${n}.${h}`,O=this.costs.directiveArgumentWeights.get(T);if(O===void 0)continue;let R=u.get(h);if(R){if(R.kind===W.Kind.NULL)continue}else if(!N.defaultValue||N.defaultValue.kind===W.Kind.NULL)continue;let C=this.getOrCreateFieldWeight(a,t.name),M=(m=C.directiveArgumentWeights.get(T))!=null?m:0;C.directiveArgumentWeights.set(T,M+O)}}handleListSizeDirective({data:t,directiveCoords:r,directiveNode:n,errorMessages:i}){let a=n.arguments;if(!a)return;let o=!1,u=t.renamedParentTypeName||t.originalParentTypeName,l={typeName:u,fieldName:t.name,slicingArguments:[],sizedFields:[],requireOneSlicingArgument:!0};for(let h of a)switch(h.name.value){case X.ASSUMED_SIZE:h.value.kind===W.Kind.INT&&(l.assumedSize=parseInt(h.value.value,10));break;case X.REQUIRE_ONE_SLICING_ARGUMENT:h.value.kind===W.Kind.BOOLEAN&&(l.requireOneSlicingArgument=h.value.value);break;case X.SLICING_ARGUMENTS:{let T;if(h.value.kind===W.Kind.LIST)T=h.value.values;else if(h.value.kind===W.Kind.STRING)T=[h.value];else continue;for(let O of T){if(O.kind!==W.Kind.STRING)continue;let R=O.value,C=t.argumentDataByName.get(R);if(!C){i.push((0,ne.listSizeInvalidSlicingArgumentErrorMessage)(r,R));continue}if((C.type.kind===W.Kind.NON_NULL_TYPE?C.type.type:C.type).kind===W.Kind.LIST_TYPE||C.namedTypeName!==X.INT_SCALAR){i.push((0,ne.listSizeSlicingArgumentNotIntErrorMessage)(r,R,(0,Rn.printTypeNode)(C.type)));continue}l.slicingArguments.push(R)}break}case X.SIZED_FIELDS:{let T;if(h.value.kind===W.Kind.LIST)T=h.value.values;else if(h.value.kind===W.Kind.STRING)T=[h.value];else continue;if(T.length<1)continue;o=!0;let O=t.namedTypeName,R=this.parentDefinitionDataByTypeName.get(O);if(!R||!(0,Dt.isParentDataCompositeOutputType)(R)){i.push((0,ne.listSizeSizedFieldsInvalidReturnTypeErrorMessage)(r,O));continue}for(let C of T){if(C.kind!==W.Kind.STRING)continue;let M=C.value,Y=R.fieldDataByName.get(M);if(!Y){i.push((0,ne.listSizeSizedFieldNotFoundErrorMessage)(r,M,O));continue}if(!(0,Dt.isTypeNodeListType)(Y.type)){i.push((0,ne.listSizeSizedFieldNotListErrorMessage)(r,M,O,(0,Rn.printTypeNode)(Y.type)));continue}l.sizedFields.push(M)}break}}if(!o&&!(0,Dt.isTypeNodeListType)(t.type)&&i.push((0,ne.listSizeFieldMustReturnListOrUseSizedFieldsErrorMessage)(r,(0,Rn.printTypeNode)(t.type))),o&&(0,Dt.isTypeNodeListType)(t.type)&&i.push((0,ne.listSizeSizedFieldsOnListsErrorMessage)(r,(0,Rn.printTypeNode)(t.type))),l.assumedSize!==void 0&&l.slicingArguments.length>0)if(l.requireOneSlicingArgument)i.push((0,ne.listSizeAssumedSizeWithRequiredSlicingArgumentErrorMessage)(r));else for(let h of l.slicingArguments){let N=t.argumentDataByName.get(h);N!=null&&N.defaultValue&&i.push((0,ne.listSizeAssumedSizeSlicingArgDefaultErrorMessage)(r,h))}let m=`${u}.${t.name}`;this.costs.listSizes.set(m,l)}extractRequiredScopes({directiveCoords:t,orScopes:r,requiredScopes:n}){if(r.length>Qn.MAX_OR_SCOPES){this.invalidORScopesCoords.add(t);return}for(let i of r){let a=new Set;for(let o of i.values)a.add(o.value);a.size<1||(0,jn.addScopes)(n,a)}}getKafkaPublishConfiguration(t,r,n,i){let a=[],o=X.DEFAULT_EDFS_PROVIDER_ID;for(let u of t.arguments||[])switch(u.name.value){case X.TOPIC:{if(u.value.kind!==W.Kind.STRING||u.value.value.length<1){i.push((0,ne.invalidEventSubjectErrorMessage)(X.TOPIC));continue}(0,hi.validateArgumentTemplateReferences)(u.value.value,r,i),a.push(u.value.value);break}case X.PROVIDER_ID:{if(u.value.kind!==W.Kind.STRING||u.value.value.length<1){i.push(ne.invalidEventProviderIdErrorMessage);continue}o=u.value.value;break}}if(!(i.length>0))return{fieldName:n,providerId:o,providerType:X.PROVIDER_TYPE_KAFKA,topics:a,type:X.PUBLISH}}getKafkaSubscribeConfiguration(t,r,n,i){let a=[],o=X.DEFAULT_EDFS_PROVIDER_ID;for(let u of t.arguments||[])switch(u.name.value){case X.TOPICS:{if(u.value.kind!==W.Kind.LIST){i.push((0,ne.invalidEventSubjectsErrorMessage)(X.TOPICS));continue}for(let l of u.value.values){if(l.kind!==W.Kind.STRING||l.value.length<1){i.push((0,ne.invalidEventSubjectsItemErrorMessage)(X.TOPICS));break}(0,hi.validateArgumentTemplateReferences)(l.value,r,i),a.push(l.value)}break}case X.PROVIDER_ID:{if(u.value.kind!==W.Kind.STRING||u.value.value.length<1){i.push(ne.invalidEventProviderIdErrorMessage);continue}o=u.value.value;break}}if(!(i.length>0))return{fieldName:n,providerId:o,providerType:X.PROVIDER_TYPE_KAFKA,topics:a,type:X.SUBSCRIBE}}getNatsPublishAndRequestConfiguration(t,r,n,i,a){let o=[],u=X.DEFAULT_EDFS_PROVIDER_ID;for(let l of r.arguments||[])switch(l.name.value){case X.SUBJECT:{if(l.value.kind!==W.Kind.STRING||l.value.value.length<1){a.push((0,ne.invalidEventSubjectErrorMessage)(X.SUBJECT));continue}(0,hi.validateArgumentTemplateReferences)(l.value.value,n,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(ne.invalidEventProviderIdErrorMessage);continue}u=l.value.value;break}}if(!(a.length>0))return{fieldName:i,providerId:u,providerType:X.PROVIDER_TYPE_NATS,subjects:o,type:t}}getNatsSubscribeConfiguration(t,r,n,i){let a=[],o=X.DEFAULT_EDFS_PROVIDER_ID,u=Gv.DEFAULT_CONSUMER_INACTIVE_THRESHOLD,l="",m="";for(let h of t.arguments||[])switch(h.name.value){case X.SUBJECTS:{if(h.value.kind!==W.Kind.LIST){i.push((0,ne.invalidEventSubjectsErrorMessage)(X.SUBJECTS));continue}for(let N of h.value.values){if(N.kind!==W.Kind.STRING||N.value.length<1){i.push((0,ne.invalidEventSubjectsItemErrorMessage)(X.SUBJECTS));break}(0,hi.validateArgumentTemplateReferences)(N.value,r,i),a.push(N.value)}break}case X.PROVIDER_ID:{if(h.value.kind!==W.Kind.STRING||h.value.value.length<1){i.push(ne.invalidEventProviderIdErrorMessage);continue}o=h.value.value;break}case X.STREAM_CONFIGURATION:{if(this.usesEdfsNatsStreamConfiguration=!0,h.value.kind!==W.Kind.OBJECT||h.value.fields.length<1){i.push(ne.invalidNatsStreamInputErrorMessage);continue}let N=!0,T=new Set,O=new Set($v.STREAM_CONFIGURATION_FIELD_NAMES),R=new Set([X.CONSUMER_NAME,X.STREAM_NAME]),C=new Set,M=new Set;for(let Y of h.value.fields){let ee=Y.name.value;if(!$v.STREAM_CONFIGURATION_FIELD_NAMES.has(ee)){T.add(ee),N=!1;continue}if(O.has(ee))O.delete(ee);else{C.add(ee),N=!1;continue}switch(R.has(ee)&&R.delete(ee),ee){case X.CONSUMER_NAME:if(Y.value.kind!==W.Kind.STRING||Y.value.value.length<1){M.add(ee),N=!1;continue}l=Y.value.value;break;case X.STREAM_NAME:if(Y.value.kind!==W.Kind.STRING||Y.value.value.length<1){M.add(ee),N=!1;continue}m=Y.value.value;break;case X.CONSUMER_INACTIVE_THRESHOLD:if(Y.value.kind!==W.Kind.INT){i.push((0,ne.invalidArgumentValueErrorMessage)((0,W.print)(Y.value),"edfs__NatsStreamConfiguration","consumerInactiveThreshold",X.INT_SCALAR)),N=!1;continue}try{u=parseInt(Y.value.value,10)}catch(ae){i.push((0,ne.invalidArgumentValueErrorMessage)((0,W.print)(Y.value),"edfs__NatsStreamConfiguration","consumerInactiveThreshold",X.INT_SCALAR)),N=!1}break}}(!N||R.size>0)&&i.push((0,ne.invalidNatsStreamInputFieldsErrorMessage)([...R],[...C],[...M],[...T]))}}if(!(i.length>0))return u<0?(u=Gv.DEFAULT_CONSUMER_INACTIVE_THRESHOLD,this.warnings.push((0,es.consumerInactiveThresholdInvalidValueWarning)(this.subgraphName,`The value has been set to ${Gv.DEFAULT_CONSUMER_INACTIVE_THRESHOLD}.`))):u>cKe.MAX_INT32&&(u=0,this.warnings.push((0,es.consumerInactiveThresholdInvalidValueWarning)(this.subgraphName,"The value has been set to 0. This means the consumer will remain indefinitely active until its manual deletion."))),q({fieldName:n,providerId:o,providerType:X.PROVIDER_TYPE_NATS,subjects:a,type:X.SUBSCRIBE},l&&m?{streamConfiguration:{consumerInactiveThreshold:u,consumerName:l,streamName:m}}:{})}getRedisPublishConfiguration(t,r,n,i){let a=[],o=X.DEFAULT_EDFS_PROVIDER_ID;for(let u of t.arguments||[])switch(u.name.value){case X.CHANNEL:{if(u.value.kind!==W.Kind.STRING||u.value.value.length<1){i.push((0,ne.invalidEventSubjectErrorMessage)(X.CHANNEL));continue}(0,hi.validateArgumentTemplateReferences)(u.value.value,r,i),a.push(u.value.value);break}case X.PROVIDER_ID:{if(u.value.kind!==W.Kind.STRING||u.value.value.length<1){i.push(ne.invalidEventProviderIdErrorMessage);continue}o=u.value.value;break}}if(!(i.length>0))return{fieldName:n,providerId:o,providerType:X.PROVIDER_TYPE_REDIS,channels:a,type:X.PUBLISH}}getRedisSubscribeConfiguration(t,r,n,i){let a=[],o=X.DEFAULT_EDFS_PROVIDER_ID;for(let u of t.arguments||[])switch(u.name.value){case X.CHANNELS:{if(u.value.kind!==W.Kind.LIST){i.push((0,ne.invalidEventSubjectsErrorMessage)(X.CHANNELS));continue}for(let l of u.value.values){if(l.kind!==W.Kind.STRING||l.value.length<1){i.push((0,ne.invalidEventSubjectsItemErrorMessage)(X.CHANNELS));break}(0,hi.validateArgumentTemplateReferences)(l.value,r,i),a.push(l.value)}break}case X.PROVIDER_ID:{if(u.value.kind!==W.Kind.STRING||u.value.value.length<1){i.push(ne.invalidEventProviderIdErrorMessage);continue}o=u.value.value;break}}if(!(i.length>0))return{fieldName:n,providerId:o,providerType:X.PROVIDER_TYPE_REDIS,channels:a,type:X.SUBSCRIBE}}validateSubscriptionFilterDirectiveLocation(t){if(!t.directives)return;let r=this.renamedParentTypeName||this.originalParentTypeName,n=`${r}.${t.name.value}`,i=this.getOperationTypeNodeForRootTypeName(r)===W.OperationTypeNode.SUBSCRIPTION;for(let a of t.directives)if(a.name.value===X.SUBSCRIPTION_FILTER&&!i){this.errors.push((0,ne.invalidSubscriptionFilterLocationError)(n));return}}extractEventDirectivesToConfiguration(t,r){if(!t.directives)return;let n=t.name.value,i=`${this.renamedParentTypeName||this.originalParentTypeName}.${n}`;for(let a of t.directives){let o=[],u;switch(a.name.value){case X.EDFS_KAFKA_PUBLISH:u=this.getKafkaPublishConfiguration(a,r,n,o);break;case X.EDFS_KAFKA_SUBSCRIBE:u=this.getKafkaSubscribeConfiguration(a,r,n,o);break;case X.EDFS_NATS_PUBLISH:{u=this.getNatsPublishAndRequestConfiguration(X.PUBLISH,a,r,n,o);break}case X.EDFS_NATS_REQUEST:{u=this.getNatsPublishAndRequestConfiguration(X.REQUEST,a,r,n,o);break}case X.EDFS_NATS_SUBSCRIBE:{u=this.getNatsSubscribeConfiguration(a,r,n,o);break}case X.EDFS_REDIS_PUBLISH:{u=this.getRedisPublishConfiguration(a,r,n,o);break}case X.EDFS_REDIS_SUBSCRIBE:{u=this.getRedisSubscribeConfiguration(a,r,n,o);break}default:continue}if(o.length>0){this.errors.push((0,ne.invalidEventDirectiveError)(a.name.value,i,o));continue}u&&(0,et.getValueOrDefault)(this.eventsConfigurations,this.renamedParentTypeName||this.originalParentTypeName,()=>[]).push(u)}}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 r=this.operationTypeNodeByTypeName.get(t);if(r)return r;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,r,n,i){let a=this.getOperationTypeNodeForRootTypeName(t.name);if(!a){this.errors.push((0,ne.invalidRootTypeError)(t.name));return}let o=this.getValidEventsDirectiveNamesForOperationTypeNode(a);for(let[u,l]of t.fieldDataByName){let m=`${l.originalParentTypeName}.${u}`,h=new Set;for(let M of $v.EVENT_DIRECTIVE_NAMES)l.directivesByName.has(M)&&h.add(M);let N=new Set;for(let M of h)o.has(M)||N.add(M);if((h.size<1||N.size>0)&&r.set(m,{definesDirectives:h.size>0,invalidDirectiveNames:[...N]}),a===W.OperationTypeNode.MUTATION){let M=(0,Rn.printTypeNode)(l.type);M!==X.NON_NULLABLE_EDFS_PUBLISH_EVENT_RESULT&&i.set(m,M);continue}let T=(0,Rn.printTypeNode)(l.type),O=l.namedTypeName+"!",R=!1,C=this.concreteTypeNamesByAbstractTypeName.get(l.namedTypeName)||new Set([l.namedTypeName]);for(let M of C)if(R||(R=this.entityDataByTypeName.has(M)),R)break;(!R||T!==O)&&n.set(m,T)}}validateEventDrivenKeyDefinition(t,r){let n=this.keyFieldSetDatasByTypeName.get(t);if(n)for(let[i,{isUnresolvable:a}]of n)a||(0,et.getValueOrDefault)(r,t,()=>[]).push(i)}validateEventDrivenObjectFields(t,r,n,i){var a;for(let[o,u]of t){let l=`${u.originalParentTypeName}.${o}`;if(r.has(o)){(a=u.externalFieldDataBySubgraphName.get(this.subgraphName))!=null&&a.isDefinedExternal||n.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[r,n]of t.fieldDataByName)if(n.argumentDataByName.size>0||r!==X.SUCCESS||(0,Rn.printTypeNode)(n.type)!==X.NON_NULLABLE_BOOLEAN)return!1;return!0}isNatsStreamConfigurationInputObjectValid(t){if(!(0,Dt.isInputObjectDefinitionData)(t)||t.inputValueDataByName.size!==3)return!1;for(let[r,n]of t.inputValueDataByName)switch(r){case X.CONSUMER_INACTIVE_THRESHOLD:{if((0,Rn.printTypeNode)(n.type)!==X.NON_NULLABLE_INT||!n.defaultValue||n.defaultValue.kind!==W.Kind.INT||n.defaultValue.value!==`${Gv.DEFAULT_CONSUMER_INACTIVE_THRESHOLD}`)return!1;break}case X.CONSUMER_NAME:case X.STREAM_NAME:{if((0,Rn.printTypeNode)(n.type)!==X.NON_NULLABLE_STRING)return!1;break}default:return!1}return!0}validateEventDrivenSubgraph(){let t=[],r=new Map,n=new Map,i=new Map,a=new Map,o=new Map,u=new Map,l=new Set,m=new Set;for(let[h,N]of this.parentDefinitionDataByTypeName){if(h===X.EDFS_PUBLISH_RESULT||h===X.EDFS_NATS_STREAM_CONFIGURATION||N.kind!==W.Kind.OBJECT_TYPE_DEFINITION)continue;if(N.isRootType){this.validateEventDrivenRootType(N,r,n,i);continue}let T=this.keyFieldNamesByParentTypeName.get(h);if(!T){m.add(h);continue}this.validateEventDrivenKeyDefinition(h,a),this.validateEventDrivenObjectFields(N.fieldDataByName,T,o,u)}if(this.isEdfsPublishResultValid()||t.push(ne.invalidEdfsPublishResultObjectErrorMessage),this.edfsDirectiveReferences.has(X.EDFS_NATS_SUBSCRIBE)){let h=this.parentDefinitionDataByTypeName.get(X.EDFS_NATS_STREAM_CONFIGURATION);h&&this.usesEdfsNatsStreamConfiguration&&!this.isNatsStreamConfigurationInputObjectValid(h)&&t.push(ne.invalidNatsStreamConfigurationDefinitionErrorMessage),this.parentDefinitionDataByTypeName.delete(X.EDFS_NATS_STREAM_CONFIGURATION);let N=this.upsertInputObjectByNode(lX.EDFS_NATS_STREAM_CONFIGURATION_DEFINITION);if(N.success)for(let T of lX.EDFS_NATS_STREAM_CONFIGURATION_DEFINITION.fields)this.addInputValueDataByNode({fieldName:T.name.value,isArgument:!1,inputValueDataByName:N.data.inputValueDataByName,node:T,originalParentTypeName:X.EDFS_NATS_STREAM_CONFIGURATION});else return}r.size>0&&t.push((0,ne.invalidRootTypeFieldEventsDirectivesErrorMessage)(r)),i.size>0&&t.push((0,ne.invalidEventDrivenMutationResponseTypeErrorMessage)(i)),n.size>0&&t.push((0,ne.invalidRootTypeFieldResponseTypesEventDrivenErrorMessage)(n)),a.size>0&&t.push((0,ne.invalidKeyFieldSetsEventDrivenErrorMessage)(a)),o.size>0&&t.push((0,ne.nonExternalKeyFieldNamesEventDrivenErrorMessage)(o)),u.size>0&&t.push((0,ne.nonKeyFieldNamesEventDrivenErrorMessage)(u)),l.size>0&&t.push((0,ne.nonEntityObjectExtensionsEventDrivenErrorMessage)([...l])),m.size>0&&t.push((0,ne.nonKeyComposingObjectTypeNamesEventDrivenErrorMessage)([...m])),t.length>0&&this.errors.push((0,ne.invalidEventDrivenGraphError)(t))}validateUnionMembers(t){if(t.memberByMemberTypeName.size<1){this.errors.push((0,ne.noDefinedUnionMembersError)(t.name));return}let r=[];for(let n of t.memberByMemberTypeName.keys()){let i=this.parentDefinitionDataByTypeName.get(n);i&&i.kind!==W.Kind.OBJECT_TYPE_DEFINITION&&r.push(`"${n}", which is type "${(0,et.kindToNodeType)(i.kind)}"`)}r.length>0&&this.errors.push((0,ne.invalidUnionMemberTypeError)(t.name,r))}addConcreteTypeNamesForUnion(t){if(!t.types||t.types.length<1)return;let r=t.name.value;for(let n of t.types){let i=n.name.value;(0,et.getValueOrDefault)(this.concreteTypeNamesByAbstractTypeName,r,()=>new Set).add(i),this.internalGraph.addEdge(this.internalGraph.addOrUpdateNode(r,{isAbstract:!0}),this.internalGraph.addOrUpdateNode(i),i,!0)}}addValidKeyFieldSetConfigurations(){for(let[t,r]of this.keyFieldSetDatasByTypeName){let n=this.parentDefinitionDataByTypeName.get(t);if(!n||n.kind!==W.Kind.OBJECT_TYPE_DEFINITION&&n.kind!==W.Kind.INTERFACE_TYPE_DEFINITION){this.errors.push((0,ne.undefinedCompositeOutputTypeError)(t));continue}let i=(0,Dt.getParentTypeName)(n),a=(0,et.getValueOrDefault)(this.configurationDataByTypeName,i,()=>(0,Ly.newConfigurationData)(!0,i)),o=(0,hi.validateKeyFieldSets)(this,n,r);o&&(a.keys=o)}}getValidFlattenedDirectiveArray(t,r,n=!1){let i=[];for(let[a,o]of t){if(n&&X.INHERITABLE_DIRECTIVE_NAMES.has(a))continue;let u=this.directiveDefinitionDataByName.get(a);if(!u)continue;if(!u.isRepeatable&&o.length>1){let h=(0,et.getValueOrDefault)(this.invalidRepeatedDirectiveNameByCoords,r,()=>new Set);h.has(a)||(h.add(a),this.errors.push((0,ne.invalidDirectiveError)(a,r,"1st",[(0,ne.invalidRepeatedDirectiveErrorMessage)(a)])));continue}if(a!==X.KEY){i.push(...o);continue}let l=[],m=new Set;for(let h=0;h0?{node:G(q({},t.description?{description:t.description}:{}),{directives:this.getValidFlattenedDirectiveArray(t.directivesByName,t.name),kind:W.Kind.SCHEMA_DEFINITION,operationTypes:r}),success:!0}:t.directivesByName.size<1?{node:void 0,success:!0}:{node:{directives:this.getValidFlattenedDirectiveArray(t.directivesByName,t.name),kind:W.Kind.SCHEMA_EXTENSION},success:!0}}getUnionNodeByData(t){return t.node.description=t.description,t.node.directives=this.getValidFlattenedDirectiveArray(t.directivesByName,t.name),t.node.types=(0,jn.mapToArrayOfValues)(t.memberByMemberTypeName),t.node}evaluateExternalKeyFields(){let t=[];for(let[r,n]of this.keyFieldSetDatasByTypeName){let i=this.parentDefinitionDataByTypeName.get(r);if(!i||i.kind!==W.Kind.OBJECT_TYPE_DEFINITION&&i.kind!==W.Kind.INTERFACE_TYPE_DEFINITION){t.push(r),this.errors.push((0,ne.undefinedCompositeOutputTypeError)(r));continue}let a=this;for(let o of n.values()){let u=[i],l=new Map,m=-1,h=!0;if((0,W.visit)(o.documentNode,{Argument:{enter(){return W.BREAK}},Field:{enter(N){let T=u[m],O=T.name;if(h)return W.BREAK;let R=N.name.value,C=`${O}.${R}`;a.unvalidatedExternalFieldCoords.delete(C);let M=T.fieldDataByName.get(R);if(!M||M.argumentDataByName.size)return W.BREAK;M.isShareableBySubgraphName.set(a.subgraphName,!0);let Y=M.externalFieldDataBySubgraphName.get(a.subgraphName);a.edfsDirectiveReferences.size<1&&Y&&Y.isDefinedExternal&&!Y.isUnconditionallyProvided&&i.extensionType!==ts.ExtensionType.NONE&&(Y.isUnconditionallyProvided=!0,(0,et.getValueOrDefault)(l,o.rawFieldSet,()=>new Set).add(C)),(0,et.getValueOrDefault)(a.keyFieldNamesByParentTypeName,O,()=>new Set).add(R);let ee=(0,Vr.getTypeNodeNamedTypeName)(M.node.type);if(Qn.BASE_SCALARS.has(ee))return;let ae=a.parentDefinitionDataByTypeName.get(ee);if(!ae)return W.BREAK;if(ae.kind===W.Kind.OBJECT_TYPE_DEFINITION){h=!0,u.push(ae);return}if((0,Kr.isKindAbstract)(ae.kind))return W.BREAK}},InlineFragment:{enter(){return W.BREAK}},SelectionSet:{enter(){if(!h||(m+=1,h=!1,m<0||m>=u.length))return W.BREAK},leave(){h&&(h=!1),m-=1,u.pop()}}}),!(l.size<1))for(let[N,T]of l)this.warnings.push((0,es.externalEntityExtensionKeyFieldWarning)(i.name,N,[...T],this.subgraphName))}}for(let r of t)this.keyFieldSetDatasByTypeName.delete(r)}addValidConditionalFieldSetConfigurations(){for(let[t,r]of this.fieldSetDataByTypeName){let n=this.parentDefinitionDataByTypeName.get(t);if(!n||n.kind!==W.Kind.OBJECT_TYPE_DEFINITION&&n.kind!==W.Kind.INTERFACE_TYPE_DEFINITION){this.errors.push((0,ne.undefinedCompositeOutputTypeError)(t));continue}let i=(0,Dt.getParentTypeName)(n),a=(0,et.getValueOrDefault)(this.configurationDataByTypeName,i,()=>(0,Ly.newConfigurationData)(!1,i)),o=this.validateProvidesOrRequires(n,r.provides,!0);o&&(a.provides=o);let u=this.validateProvidesOrRequires(n,r.requires,!1);u&&(a.requires=u)}}addFieldNamesToConfigurationData(t,r){let n=new Set;for(let[i,a]of t){let o=a.externalFieldDataBySubgraphName.get(this.subgraphName);if(!o||o.isUnconditionallyProvided){r.fieldNames.add(i);continue}n.add(i),this.edfsDirectiveReferences.size>0&&r.fieldNames.add(i)}n.size>0&&(r.externalFieldNames=n)}validateOneOfDirective({data:t,requiredFieldNames:r}){var n,i;return t.directivesByName.has(X.ONE_OF)?r.size>0?(this.errors.push((0,ne.oneOfRequiredFieldsError)({requiredFieldNames:Array.from(r),typeName:t.name})),!1):(t.inputValueDataByName.size===1&&this.warnings.push((0,es.singleSubgraphInputFieldOneOfWarning)({fieldName:(i=(n=(0,et.getFirstEntry)(t.inputValueDataByName))==null?void 0:n.name)!=null?i:"unknown",subgraphName:this.subgraphName,typeName:t.name})),!0):!0}normalize(t){var a,o;(0,cX.upsertDirectiveSchemaAndEntityDefinitions)(this,t),(0,cX.upsertParentsAndChildren)(this,t);let r=[];Zd(this,_d,pX).call(this,r),this.validateDirectives(this.schemaData,X.SCHEMA);let n=this.schemaNodeFromData(this.schemaData);if(!n.success)return this.errors.push(...n.errors),{errors:this.errors,success:!1,warnings:this.warnings};((a=n.node)==null?void 0:a.kind)===W.Kind.SCHEMA_DEFINITION&&r.push(n.node);for(let[u,l]of this.parentDefinitionDataByTypeName)this.validateDirectives(l,u);this.invalidORScopesCoords.size>0&&this.errors.push((0,ne.orScopesLimitError)(Qn.MAX_OR_SCOPES,[...this.invalidORScopesCoords]));for(let u of this.invalidConfigureDescriptionNodeDatas)u.description||this.errors.push((0,ne.configureDescriptionNoDescriptionError)((0,et.kindToNodeType)(u.kind),u.name));this.evaluateExternalKeyFields();for(let[u,l]of this.parentDefinitionDataByTypeName)switch(l.kind){case W.Kind.ENUM_TYPE_DEFINITION:{if(l.enumValueDataByName.size<1){this.errors.push((0,ne.noDefinedEnumValuesError)(u));break}r.push(this.getEnumNodeByData(l));break}case W.Kind.INPUT_OBJECT_TYPE_DEFINITION:{if(l.inputValueDataByName.size<1){this.errors.push((0,ne.noInputValueDefinitionsError)(u));break}let m=new Set;for(let h of l.inputValueDataByName.values()){if((0,Dt.isTypeRequired)(h.type)&&m.add(h.name),h.namedTypeKind!==W.Kind.NULL)continue;let N=this.parentDefinitionDataByTypeName.get(h.namedTypeName);if(N){if((0,Dt.sanitizeDefaultValue)({data:h,namedTypeData:N,node:h.node}),!(0,Dt.isInputNodeKind)(N.kind)){this.errors.push((0,ne.invalidNamedTypeError)({data:h,namedTypeData:N,nodeType:`${(0,et.kindToNodeType)(l.kind)} field`}));continue}h.namedTypeKind=N.kind}}if(!this.validateOneOfDirective({data:l,requiredFieldNames:m}))break;u!==X.EDFS_NATS_STREAM_CONFIGURATION&&r.push(this.getInputObjectNodeByData(l));break}case W.Kind.INTERFACE_TYPE_DEFINITION:case W.Kind.OBJECT_TYPE_DEFINITION:{let m=this.entityDataByTypeName.has(u),h=this.operationTypeNodeByTypeName.get(u),N=l.kind===W.Kind.OBJECT_TYPE_DEFINITION;this.isSubgraphVersionTwo&&l.extensionType===ts.ExtensionType.EXTENDS&&(l.extensionType=ts.ExtensionType.NONE),h&&(l.fieldDataByName.delete(X.SERVICE_FIELD),l.fieldDataByName.delete(X.ENTITIES_FIELD));let T=[];for(let[Y,ee]of l.fieldDataByName){if(!N&&((o=ee.externalFieldDataBySubgraphName.get(this.subgraphName))!=null&&o.isDefinedExternal)&&T.push(Y),this.validateArguments(ee,l.kind),ee.namedTypeKind!==W.Kind.NULL)continue;let ae=this.parentDefinitionDataByTypeName.get(ee.namedTypeName);if(ae){if(!(0,Dt.isOutputNodeKind)(ae.kind)){this.errors.push((0,ne.invalidNamedTypeError)({data:ee,namedTypeData:ae,nodeType:`${(0,et.kindToNodeType)(l.kind)} field`}));continue}ee.namedTypeKind=this.entityInterfaceDataByTypeName.get(ae.name)?W.Kind.INTERFACE_TYPE_DEFINITION:ae.kind}}T.length>0&&(this.isSubgraphVersionTwo?this.errors.push((0,ne.externalInterfaceFieldsError)(u,T)):this.warnings.push((0,es.externalInterfaceFieldsWarning)(this.subgraphName,u,[...T])));let O=(0,Dt.getParentTypeName)(l),R=(0,et.getValueOrDefault)(this.configurationDataByTypeName,O,()=>(0,Ly.newConfigurationData)(m,u)),C=this.entityInterfaceDataByTypeName.get(u);if(C){C.fieldDatas=(0,jn.fieldDatasToSimpleFieldDatas)(l.fieldDataByName.values());let Y=this.concreteTypeNamesByAbstractTypeName.get(u);Y&&(0,et.addIterableToSet)({source:Y,target:C.concreteTypeNames}),R.isInterfaceObject=C.isInterfaceObject,R.entityInterfaceConcreteTypeNames=C.concreteTypeNames}let M=this.eventsConfigurations.get(O);M&&(R.events=M),this.addFieldNamesToConfigurationData(l.fieldDataByName,R),this.validateInterfaceImplementations(l),r.push(this.getCompositeOutputNodeByData(l)),l.fieldDataByName.size<1&&!(0,hi.isNodeQuery)(u,h)&&this.errors.push((0,ne.noFieldDefinitionsError)((0,et.kindToNodeType)(l.kind),u)),l.requireFetchReasonsFieldNames.size>0&&(R.requireFetchReasonsFieldNames=[...l.requireFetchReasonsFieldNames]);break}case W.Kind.SCALAR_TYPE_DEFINITION:{if(l.extensionType===ts.ExtensionType.REAL){this.errors.push((0,ne.noBaseScalarDefinitionError)(u));break}r.push(this.getScalarNodeByData(l));break}case W.Kind.UNION_TYPE_DEFINITION:{r.push(this.getUnionNodeByData(l)),this.validateUnionMembers(l);break}default:throw(0,ne.unexpectedKindFatalError)(u)}this.isSubgraphEventDrivenGraph=this.edfsDirectiveReferences.size>0,this.addValidConditionalFieldSetConfigurations(),this.addValidKeyFieldSetConfigurations();for(let u of Object.values(W.OperationTypeNode)){let l=this.schemaData.operationTypes.get(u),m=(0,et.getOrThrowError)(Kr.operationTypeNodeToDefaultType,u,X.OPERATION_TO_DEFAULT),h=l?(0,Vr.getTypeNodeNamedTypeName)(l.type):m;if(Qn.BASE_SCALARS.has(h)&&this.referencedTypeNames.add(h),h!==m&&this.parentDefinitionDataByTypeName.has(m)){this.errors.push((0,ne.invalidRootTypeDefinitionError)(u,h,m));continue}let N=this.parentDefinitionDataByTypeName.get(h);if(l){if(!N)continue;this.operationTypeNodeByTypeName.set(h,u)}if(!N)continue;let T=this.configurationDataByTypeName.get(m);T&&(T.isRootNode=!0,T.typeName=m),N.kind!==W.Kind.OBJECT_TYPE_DEFINITION&&this.errors.push((0,ne.operationDefinitionError)(h,u,N.kind))}for(let u of this.referencedTypeNames){let l=this.parentDefinitionDataByTypeName.get(u);if(!l){this.errors.push((0,ne.undefinedTypeError)(u));continue}if(l.kind!==W.Kind.INTERFACE_TYPE_DEFINITION)continue;let m=this.concreteTypeNamesByAbstractTypeName.get(u);(!m||m.size<1)&&this.warnings.push((0,es.unimplementedInterfaceOutputTypeWarning)(this.subgraphName,u))}this.handleExecutableDirectives(),this.isSubgraphEventDrivenGraph&&this.validateEventDrivenSubgraph();for(let u of this.unvalidatedExternalFieldCoords)this.isSubgraphVersionTwo?this.errors.push((0,ne.invalidExternalDirectiveError)(u)):this.warnings.push((0,es.invalidExternalFieldWarning)(u,this.subgraphName));if(this.errors.length>0)return{success:!1,errors:this.errors,warnings:this.warnings};let i={kind:W.Kind.DOCUMENT,definitions:r};return{authorizationDataByParentTypeName:this.authorizationDataByParentTypeName,concreteTypeNamesByAbstractTypeName:this.concreteTypeNamesByAbstractTypeName,conditionalFieldDataByCoordinates:this.conditionalFieldDataByCoords,configurationDataByTypeName:this.configurationDataByTypeName,costs:this.costs,directiveDefinitionByName:this.directiveDefinitionByName,entityDataByTypeName:this.entityDataByTypeName,entityInterfaces:this.entityInterfaceDataByTypeName,federatedDirectiveDataByName:this.federatedDirectiveDataByName,fieldCoordsByNamedTypeName:this.fieldCoordsByNamedTypeName,importDataByDirectiveName:this.importDataByDirectiveName,interfaceImplementationTypeNamesByInterfaceTypeName:this.interfaceImplementationTypeNamesByInterfaceTypeName,isEventDrivenGraph:this.isSubgraphEventDrivenGraph,isVersionTwo:this.isSubgraphVersionTwo,keyFieldNamesByParentTypeName:this.keyFieldNamesByParentTypeName,keyFieldSetsByEntityTypeNameByKeyFieldCoords:this.keyFieldSetsByEntityTypeNameByFieldCoords,operationTypes:this.operationTypeNodeByTypeName,originalTypeNameByRenamedTypeName:this.originalTypeNameByRenamedTypeName,overriddenFieldNamesByParentTypeNameByTargetSubgraphName:this.overriddenFieldNamesByTypeNameByTargetSubgraphName,parentDefinitionDataByTypeName:this.parentDefinitionDataByTypeName,schema:(0,uKe.buildASTSchema)(i,{addInvalidExtensionOrphans:!0,assumeValid:!0,assumeValidSDL:!0}),schemaNode:n.node,subgraphAST:i,subgraphString:(0,W.print)(i),success:!0,warnings:this.warnings}}};_d=new WeakSet,fL=function({currentFieldCoords:t,directiveCoords:r,directiveName:n,fieldSet:i}){if(this.isSubgraphVersionTwo){this.errors.push((0,ne.nonExternalConditionalFieldError)({directiveCoords:r,directiveName:n,fieldSet:i,subgraphName:this.subgraphName,targetCoords:t}));return}this.warnings.push((0,es.nonExternalConditionalFieldWarning)(r,this.subgraphName,t,i,n))},pX=function(t){let r=new Set;for(let n of this.referencedDirectiveNames){let i=Qn.DIRECTIVE_DEFINITION_BY_NAME.get(n);i&&(this.directiveDefinitionByName.set(n,i),(0,et.addOptionalIterableToSet)({source:$v.DEPENDENCIES_BY_DIRECTIVE_NAME.get(n),target:r}),t.push(i))}for(let n of this.customDirectiveDefinitionByName.values())t.push(n);t.push(...r)};Rp.NormalizationFactory=Cy});var mX=D(mL=>{"use strict";d();p();f();Object.defineProperty(mL,"__esModule",{value:!0});mL.internalSubgraphFromNormalization=pKe;function pKe({normalization:e,subgraphName:t}){return{conditionalFieldDataByCoords:e.conditionalFieldDataByCoordinates,configurationDataByTypeName:e.configurationDataByTypeName,costs:e.costs,definitions:e.subgraphAST,directiveDefinitionByName:e.directiveDefinitionByName,entityInterfaceSubgraphDataByTypeName:e.entityInterfaces,federatedDirectiveDataByName:e.federatedDirectiveDataByName,isVersionTwo:e.isVersionTwo,keyFieldNamesByParentTypeName:e.keyFieldNamesByParentTypeName,name:t,operationTypes:e.operationTypes,overriddenFieldNamesByParentTypeName:new Map,parentDefinitionDataByTypeName:e.parentDefinitionDataByTypeName,schema:e.schema,schemaNode:e.schemaNode}}});var NL=D(Qv=>{"use strict";d();p();f();Object.defineProperty(Qv,"__esModule",{value:!0});Qv.BatchNormalizer=void 0;var mKe=Mv(),Vs=Di(),hL=vp(),ol=An(),hKe=_p(),yKe=hd(),NKe=zo(),TKe=pL(),EKe=mX(),yL=class{constructor({options:t,subgraphs:r}){S(this,"authorizationDataByParentTypeName",new Map);S(this,"concreteTypeNamesByAbstractTypeName",new Map);S(this,"entityDataByTypeName",new Map);S(this,"errors",[]);S(this,"executableDirectiveDatasByName",new Map);S(this,"federatedDirectiveDataByName",new Map);S(this,"importDataByDirectiveName",new Map);S(this,"interfaceImplementationTypeNamesByInterfaceTypeName",new Map);S(this,"internalSubgraphBySubgraphName",new Map);S(this,"overriddenFieldNamesByParentTypeNameByTargetSubgraphName",new Map);S(this,"overrideSourceSubgraphNamesByFieldCoords",new Map);S(this,"duplicateOverriddenFieldCoords",new Set);S(this,"subgraphNames",new Set);S(this,"invalidORScopesCoords",new Set);S(this,"fieldCoordsByNamedTypeName",new Map);S(this,"subgraphs");S(this,"warnings",[]);S(this,"validationErrors",[]);S(this,"options");this.options=t,this.subgraphs=r;let n=new Set;for(let{name:i}of r){if(!i){this.errors.push(Vs.noSubgraphNameError);break}this.subgraphNames.has(i)?n.add(i):this.subgraphNames.add(i)}n.size>0&&this.errors.push((0,Vs.duplicateSubgraphNamesError)([...n]))}handleLinkImports(t){for(let[r,n]of t){let i=this.importDataByDirectiveName.get(r);if(!i){this.importDataByDirectiveName.set(r,n);continue}if(i.coreUrl!==n.coreUrl){this.errors.push((0,Vs.nonEqualCoreFeatureComposeDirectiveError)(r));continue}i.majorVersion!==n.majorVersion&&this.errors.push((0,Vs.nonEqualComposeDirectiveMajorVersionError)(r)),i.minorVersionnew Map),T=(0,ol.getValueOrDefault)(N,l,()=>new Set(m));(0,ol.addIterableToSet)({source:m,target:T})}for(let N of m){let T=`${h}.${N}`,O=this.overrideSourceSubgraphNamesByFieldCoords.get(T);if(!O){this.overrideSourceSubgraphNamesByFieldCoords.set(T,[n]);continue}O.push(n),this.duplicateOverriddenFieldCoords.add(T)}}}}handleOverrideConfigurationData(){for(let[t,r]of this.overriddenFieldNamesByParentTypeNameByTargetSubgraphName){let n=this.internalSubgraphBySubgraphName.get(t);if(!n){this.errors.push((0,Vs.unknownSubgraphNameError)(t));continue}n.overriddenFieldNamesByParentTypeName=r;for(let[i,a]of r){let o=n.configurationDataByTypeName.get(i);o&&((0,hL.subtractSet)(a,o.fieldNames),o.fieldNames.size<1&&n.configurationDataByTypeName.delete(i))}}}batchNormalize(){if(this.errors.length>0)return{errors:this.errors,success:!1,warnings:this.warnings};let t=new mKe.Graph;for(let r of this.subgraphs){let n=r.name,i=(0,TKe.normalizeSubgraph)({document:r.definitions,internalGraph:t,options:this.options,subgraphName:n});if(i.warnings.length>0&&this.warnings.push(...i.warnings),!i.success){this.validationErrors.push((0,Vs.subgraphValidationError)(n,i.errors));continue}this.handleLinkImports(i.importDataByDirectiveName);for(let a of i.authorizationDataByParentTypeName.values())(0,hL.upsertAuthorizationData)(this.authorizationDataByParentTypeName,a,this.invalidORScopesCoords);for(let[a,o]of i.fieldCoordsByNamedTypeName)(0,ol.addIterableToSet)({source:o,target:(0,ol.getValueOrDefault)(this.fieldCoordsByNamedTypeName,a,()=>new Set)});(0,ol.mergeSetValueMap)({source:i.concreteTypeNamesByAbstractTypeName,target:this.concreteTypeNamesByAbstractTypeName}),(0,ol.mergeSetValueMap)({source:i.interfaceImplementationTypeNamesByInterfaceTypeName,target:this.interfaceImplementationTypeNamesByInterfaceTypeName}),this.handleEntityData(i.entityDataByTypeName,n),(0,hKe.upsertFederatedDirectiveData)({executableDirectiveDatasByName:this.executableDirectiveDatasByName,existingDataByName:this.federatedDirectiveDataByName,incomingDataByName:i.federatedDirectiveDataByName}),this.internalSubgraphBySubgraphName.set(n,(0,EKe.internalSubgraphFromNormalization)({normalization:i,subgraphName:n})),this.handleOverrides({originalTypeNameByRenamedTypeName:i.originalTypeNameByRenamedTypeName,overriddenFieldNamesByParentTypeNameByTargetSubgraphName:i.overriddenFieldNamesByParentTypeNameByTargetSubgraphName,subgraphName:n})}if(this.invalidORScopesCoords.size>0&&this.errors.push((0,Vs.orScopesLimitError)(NKe.MAX_OR_SCOPES,[...this.invalidORScopesCoords])),this.duplicateOverriddenFieldCoords.size>0){let r=[];for(let n of this.duplicateOverriddenFieldCoords){let i=(0,ol.getOrThrowError)(this.overrideSourceSubgraphNamesByFieldCoords,n,"overrideSourceSubgraphNamesByFieldCoords");r.push((0,Vs.duplicateOverriddenFieldErrorMessage)(n,i))}this.errors.push((0,Vs.duplicateOverriddenFieldsError)(r))}for(let[r,n]of this.executableDirectiveDatasByName)(this.federatedDirectiveDataByName.has(r)||n.length!==this.subgraphNames.size)&&this.executableDirectiveDatasByName.delete(r);return this.errors.push(...this.validationErrors),this.errors.length>0?{errors:this.errors,success:!1,warnings:this.warnings}:(this.handleOverrideConfigurationData(),this.errors.length>0?{errors:this.errors,success:!1,warnings:this.warnings}:{authorizationDataByParentTypeName:this.authorizationDataByParentTypeName,concreteTypeNamesByAbstractTypeName:this.concreteTypeNamesByAbstractTypeName,entityDataByTypeName:this.entityDataByTypeName,executableDirectiveDatasByName:this.executableDirectiveDatasByName,federatedDirectiveDataByName:this.federatedDirectiveDataByName,fieldCoordsByNamedTypeName:this.fieldCoordsByNamedTypeName,interfaceImplementationTypeNamesByInterfaceTypeName:this.interfaceImplementationTypeNamesByInterfaceTypeName,internalSubgraphByName:this.internalSubgraphBySubgraphName,internalGraph:t,success:!0,warnings:this.warnings})}};Qv.BatchNormalizer=yL});var EX=D(bd=>{"use strict";d();p();f();Object.defineProperty(bd,"__esModule",{value:!0});bd.FederationFactory=void 0;bd.federateSubgraphs=OKe;bd.federateSubgraphsWithContracts=DKe;bd.federateSubgraphsContract=bKe;var Ae=ve(),gKe=Jo(),Wi=Un(),we=Di(),Sd=rv(),Od=xs(),Li=vp(),Yv=Iy(),By=zo(),hX=_p(),yX=Xh(),Te=Zc(),IKe=QF(),NX=rX(),Dd=Av(),Fe=xr(),Jv=Xf(),he=An(),vKe=hd(),_Ke=Wh(),SKe=NL(),Hv,TX,zv=class{constructor({authorizationDataByParentTypeName:t,concreteTypeNamesByAbstractTypeName:r,entityDataByTypeName:n,entityInterfaceFederationDataByTypeName:i,executableDirectiveDatasByName:a,federatedDirectiveDataByName:o,fieldCoordsByNamedTypeName:u,interfaceImplementationTypeNamesByInterfaceTypeName:l,internalGraph:m,internalSubgraphBySubgraphName:h,options:N,warnings:T}){Xd(this,Hv);S(this,"authorizationDataByParentTypeName");S(this,"coordsByNamedTypeName",new Map);S(this,"directiveDefinitionByName",new Map);S(this,"clientDefinitions",[]);S(this,"currentSubgraphName","");S(this,"concreteTypeNamesByAbstractTypeName");S(this,"subgraphNamesByNamedTypeNameByFieldCoords",new Map);S(this,"entityDataByTypeName");S(this,"entityInterfaceFederationDataByTypeName");S(this,"executableDirectiveDatasByName");S(this,"errors",[]);S(this,"federatedDirectiveDataByName");S(this,"fieldConfigurationByFieldCoords",new Map);S(this,"fieldCoordsByNamedTypeName");S(this,"inaccessibleCoords",new Set);S(this,"inaccessibleRequiredInputValueErrorByCoords",new Map);S(this,"interfaceImplementationTypeNamesByInterfaceTypeName");S(this,"internalGraph");S(this,"internalSubgraphBySubgraphName");S(this,"invalidORScopesCoords",new Set);S(this,"isMaxDepth",!1);S(this,"isVersionTwo",!1);S(this,"namedInputValueTypeNames",new Set);S(this,"namedOutputTypeNames",new Set);S(this,"options");S(this,"parentDefinitionDataByTypeName",new Map);S(this,"parentTagDataByTypeName",new Map);S(this,"referencedFederatedDirectiveNames",new Set);S(this,"routerDefinitions",[]);S(this,"subscriptionFilterDataByFieldPath",new Map);S(this,"tagNamesByCoords",new Map);S(this,"warnings");this.authorizationDataByParentTypeName=t,this.options=N!=null?N:{},this.concreteTypeNamesByAbstractTypeName=r,this.executableDirectiveDatasByName=a,this.entityDataByTypeName=n,this.entityInterfaceFederationDataByTypeName=i,this.federatedDirectiveDataByName=o;for(let O of hX.FEDERATED_DIRECTIVE_DATAS)this.federatedDirectiveDataByName.set(O.name,O);this.fieldCoordsByNamedTypeName=u,this.interfaceImplementationTypeNamesByInterfaceTypeName=l,this.internalGraph=m,this.internalSubgraphBySubgraphName=h,this.warnings=T}extractFederatedDirectives({data:t,directivesByName:r}){for(let[n,i]of r)if(this.federatedDirectiveDataByName.get(n)&&(this.referencedFederatedDirectiveNames.add(n),!(Fe.AUTHORIZATION_DIRECTIVES.has(n)||i.length<1)))switch(n){case Fe.DEPRECATED:{t.isDeprecated=!0,(0,Te.upsertDeprecatedDirective)(t,i[0]);break}case Fe.TAG:{(0,Te.upsertTagDirectives)(t,i);break}default:{let o=t.directivesByName.get(n);if(!o){t.directivesByName.set(n,[...i]);break}if(Fe.NON_REPEATABLE_FEDERATED_DIRECTIVES.has(n))break;o.push(...i)}}return t}getValidImplementedInterfaces(t){var o;let r=[];if(t.implementedInterfaceTypeNames.size<1)return r;let n=(0,Te.isNodeDataInaccessible)(t),i=new Map,a=new Map;for(let u of t.implementedInterfaceTypeNames){r.push((0,Wi.stringToNamedTypeNode)(u));let l=(0,he.getOrThrowError)(this.parentDefinitionDataByTypeName,u,Fe.PARENT_DEFINITION_DATA);if(l.kind!==Ae.Kind.INTERFACE_TYPE_DEFINITION){a.set(l.name,(0,he.kindToNodeType)(l.kind));continue}let m={invalidFieldImplementations:new Map,unimplementedFields:[]},h=!1;for(let[N,T]of l.fieldDataByName){let O=!1,R=t.fieldDataByName.get(N);if(!R){h=!0,m.unimplementedFields.push(N);continue}let C={invalidAdditionalArguments:new Set,invalidImplementedArguments:[],isInaccessible:!1,originalResponseType:(0,Yv.printTypeNode)(T.node.type),unimplementedArguments:new Set};(0,Te.isTypeValidImplementation)({concreteTypeNamesByAbstractTypeName:this.concreteTypeNamesByAbstractTypeName,implementationType:R.node.type,interfaceImplementationTypeNamesByInterfaceTypeName:this.interfaceImplementationTypeNamesByInterfaceTypeName,originalType:T.node.type})||(h=!0,O=!0,C.implementedResponseType=(0,Yv.printTypeNode)(R.node.type));let M=new Set;for(let[Y,ee]of T.argumentDataByName){let ae=ee.node;M.add(Y);let Ne=(o=R.argumentDataByName.get(Y))==null?void 0:o.node;if(!Ne){h=!0,O=!0,C.unimplementedArguments.add(Y);continue}let _e=(0,Yv.printTypeNode)(Ne.type),Le=(0,Yv.printTypeNode)(ae.type);Le!==_e&&(h=!0,O=!0,C.invalidImplementedArguments.push({actualType:_e,argumentName:Y,expectedType:Le}))}for(let[Y,ee]of R.argumentDataByName){let ae=ee.node;M.has(Y)||ae.type.kind===Ae.Kind.NON_NULL_TYPE&&(h=!0,O=!0,C.invalidAdditionalArguments.add(Y))}!n&&R.isInaccessible&&!T.isInaccessible&&(h=!0,O=!0,C.isInaccessible=!0),O&&m.invalidFieldImplementations.set(N,C)}h&&i.set(u,m)}return a.size>0&&this.errors.push((0,we.invalidImplementedTypeError)(t.name,a)),i.size>0&&this.errors.push((0,we.invalidInterfaceImplementationError)(t.node.name.value,(0,he.kindToNodeType)(t.kind),i)),r}addValidPrimaryKeyTargetsToEntityData(t){var h;let r=this.entityDataByTypeName.get(t);if(!r)return;let n=(0,he.getOrThrowError)(this.internalSubgraphBySubgraphName,this.currentSubgraphName,"internalSubgraphBySubgraphName"),i=n.parentDefinitionDataByTypeName,a=i.get(r.typeName);if(!a||a.kind!==Ae.Kind.OBJECT_TYPE_DEFINITION)throw(0,we.incompatibleParentKindFatalError)(r.typeName,Ae.Kind.OBJECT_TYPE_DEFINITION,(a==null?void 0:a.kind)||Ae.Kind.NULL);let o=n.configurationDataByTypeName.get(r.typeName);if(!o)return;let u=[],l=this.internalGraph.nodeByNodeName.get(`${this.currentSubgraphName}.${r.typeName}`);(0,Sd.validateImplicitFieldSets)({conditionalFieldDataByCoords:n.conditionalFieldDataByCoords,currentSubgraphName:this.currentSubgraphName,entityData:r,implicitKeys:u,objectData:a,parentDefinitionDataByTypeName:i,graphNode:l});for(let[N,T]of this.entityInterfaceFederationDataByTypeName){if(!((h=T.concreteTypeNames)!=null&&h.has(r.typeName)))continue;let O=this.entityDataByTypeName.get(N);O&&(0,Sd.validateImplicitFieldSets)({conditionalFieldDataByCoords:n.conditionalFieldDataByCoords,currentSubgraphName:this.currentSubgraphName,entityData:O,implicitKeys:u,objectData:a,parentDefinitionDataByTypeName:i,graphNode:l})}if(u.length<1)return;if(!o.keys||o.keys.length<1){o.isRootNode=!0,o.keys=u;return}let m=new Set(o.keys.map(N=>N.selectionSet));for(let N of u)m.has(N.selectionSet)||(o.keys.push(N),m.add(N.selectionSet))}addValidPrimaryKeyTargetsFromInterfaceObject(t,r,n,i){let a=t.parentDefinitionDataByTypeName,o=a.get(r);if(!o||!(0,Te.isParentDataCompositeOutputType)(o))throw(0,we.incompatibleParentKindFatalError)(r,Ae.Kind.INTERFACE_TYPE_DEFINITION,(o==null?void 0:o.kind)||Ae.Kind.NULL);let u=(0,he.getOrThrowError)(t.configurationDataByTypeName,n.typeName,"internalSubgraph.configurationDataByTypeName"),l=[];if((0,Sd.validateImplicitFieldSets)({conditionalFieldDataByCoords:t.conditionalFieldDataByCoords,currentSubgraphName:t.name,entityData:n,implicitKeys:l,objectData:o,parentDefinitionDataByTypeName:a,graphNode:i}),l.length<1)return;if(!u.keys||u.keys.length<1){u.isRootNode=!0,u.keys=l;return}let m=new Set(u.keys.map(h=>h.selectionSet));for(let h of l)m.has(h.selectionSet)||(u.keys.push(h),m.add(h.selectionSet))}getEnumValueMergeMethod(t){return this.namedInputValueTypeNames.has(t)?this.namedOutputTypeNames.has(t)?Te.MergeMethod.CONSISTENT:Te.MergeMethod.INTERSECTION:Te.MergeMethod.UNION}generateTagData(){for(let[t,r]of this.tagNamesByCoords){let n=t.split(Fe.LITERAL_PERIOD);if(n.length<1)continue;let i=(0,he.getValueOrDefault)(this.parentTagDataByTypeName,n[0],()=>(0,Sd.newParentTagData)(n[0]));switch(n.length){case 1:for(let l of r)i.tagNames.add(l);break;case 2:let a=(0,he.getValueOrDefault)(i.childTagDataByChildName,n[1],()=>(0,Sd.newChildTagData)(n[1]));for(let l of r)a.tagNames.add(l);break;case 3:let o=(0,he.getValueOrDefault)(i.childTagDataByChildName,n[1],()=>(0,Sd.newChildTagData)(n[1])),u=(0,he.getValueOrDefault)(o.tagNamesByArgumentName,n[2],()=>new Set);for(let l of r)u.add(l);break;default:break}}}upsertEnumValueData(t,r,n){let i=t.get(r.name),a=i||this.copyEnumValueData(r);this.extractFederatedDirectives({data:a.federatedDirectivesData,directivesByName:r.directivesByName});let o=(0,Te.isNodeDataInaccessible)(r);if((n||o)&&this.inaccessibleCoords.add(a.federatedCoords),this.recordTagNamesByCoords(a,a.federatedCoords),!i){t.set(a.name,a);return}a.appearances+=1,(0,he.addNewObjectValueMapEntries)(r.configureDescriptionDataBySubgraphName,a.configureDescriptionDataBySubgraphName),(0,Te.setLongestDescription)(a,r),(0,he.addIterableToSet)({source:r.subgraphNames,target:a.subgraphNames})}upsertDirectiveArgumentData({argumentDataByName:t,incomingData:r}){let n=t.get(r.name),i=n||this.copyDirectiveArgumentData(r);if(this.extractFederatedDirectives({data:i.federatedDirectivesData,directivesByName:r.directivesByName}),!n){this.namedInputValueTypeNames.add(i.namedTypeName),t.set(i.name,i);return}r.defaultValue||(n.includeDefaultValue=!1),(0,he.addNewObjectValueMapEntries)(r.configureDescriptionDataBySubgraphName,i.configureDescriptionDataBySubgraphName),(0,Te.setLongestDescription)(i,r),(0,he.addIterableToSet)({source:r.subgraphNames,target:i.subgraphNames}),(0,he.addIterableToSet)({source:r.requiredSubgraphNames,target:i.requiredSubgraphNames});let a=(0,Dd.getMostRestrictiveMergedTypeNode)(i.type,r.type,r.federatedCoords,this.errors);a.success?i.type=a.typeNode:this.errors.push((0,we.incompatibleMergedTypesError)({actualType:a.actualType,isArgument:!0,coords:r.federatedCoords,expectedType:a.expectedType}));let o=(0,Te.compareAndValidateInputDefaultValues)({existingData:n,incomingData:r});o.success||this.errors.push(o.error)}upsertInputValueData(t,r,n,i){let a=t.get(r.name),o=a||this.copyInputValueData(r);if(this.extractFederatedDirectives({data:o.federatedDirectivesData,directivesByName:r.directivesByName}),this.recordTagNamesByCoords(o,`${n}.${o.name}`),(0,he.getValueOrDefault)(this.coordsByNamedTypeName,o.namedTypeName,()=>new Set).add(o.federatedCoords),!a){this.namedInputValueTypeNames.add(o.namedTypeName),t.set(o.name,o);return}(0,he.addNewObjectValueMapEntries)(r.configureDescriptionDataBySubgraphName,o.configureDescriptionDataBySubgraphName),(0,Te.setLongestDescription)(o,r),(0,he.addIterableToSet)({source:r.requiredSubgraphNames,target:o.requiredSubgraphNames}),(0,he.addIterableToSet)({source:r.subgraphNames,target:o.subgraphNames}),this.handleInputValueInaccessibility(i,o,n);let u=(0,Dd.getMostRestrictiveMergedTypeNode)(o.type,r.type,o.originalCoords,this.errors);u.success?o.type=u.typeNode:this.errors.push((0,we.incompatibleMergedTypesError)({actualType:u.actualType,isArgument:a.isArgument,coords:a.federatedCoords,expectedType:u.expectedType}));let l=(0,Te.compareAndValidateInputDefaultValues)({existingData:a,incomingData:r});l.success||this.errors.push(l.error)}handleInputValueInaccessibility(t,r,n){if(t){this.inaccessibleRequiredInputValueErrorByCoords.delete(r.federatedCoords),this.inaccessibleCoords.add(r.federatedCoords);return}if((0,Te.isNodeDataInaccessible)(r)){if((0,Te.isTypeRequired)(r.type)){this.inaccessibleRequiredInputValueErrorByCoords.set(r.federatedCoords,(0,we.inaccessibleRequiredInputValueError)(r,n));return}this.inaccessibleCoords.add(r.federatedCoords)}}handleSubscriptionFilterDirective(t,r){let n=t.directivesByName.get(Fe.SUBSCRIPTION_FILTER);if(!n)return;let i=(0,he.getFirstEntry)(t.subgraphNames);if(i===void 0){this.errors.push((0,we.unknownFieldSubgraphNameError)(t.federatedCoords));return}this.subscriptionFilterDataByFieldPath.set(t.federatedCoords,{directive:n[0],fieldData:r||t,directiveSubgraphName:i})}federateOutputType({current:t,other:r,coords:n,mostRestrictive:i}){r=(0,gKe.getMutableTypeNode)(r,n,this.errors);let a={kind:t.kind},o=Dd.DivergentType.NONE,u=a;for(let l=0;lnew Set)})}upsertFieldData(t,r,n){let i=t.get(r.name),a=i||this.copyFieldData(r,n||(0,Te.isNodeDataInaccessible)(r));(0,he.getValueOrDefault)(this.coordsByNamedTypeName,r.namedTypeName,()=>new Set).add(a.federatedCoords),this.namedOutputTypeNames.add(r.namedTypeName),this.handleSubscriptionFilterDirective(r,a),this.extractFederatedDirectives({data:a.federatedDirectivesData,directivesByName:r.directivesByName});let o=n||(0,Te.isNodeDataInaccessible)(a);if(o&&this.inaccessibleCoords.add(a.federatedCoords),this.recordTagNamesByCoords(a,a.federatedCoords),!i){t.set(a.name,a);return}let u=this.federateOutputType({current:a.type,other:r.type,coords:a.federatedCoords,mostRestrictive:!1});if(u.success)if(a.type=u.typeNode,a.namedTypeName!==r.namedTypeName){let l=(0,he.getValueOrDefault)(this.subgraphNamesByNamedTypeNameByFieldCoords,a.federatedCoords,()=>new Map),m=(0,he.getValueOrDefault)(l,a.namedTypeName,()=>new Set);if(m.size<1)for(let h of a.subgraphNames)r.subgraphNames.has(h)||m.add(h);(0,he.addIterableToSet)({source:r.subgraphNames,target:(0,he.getValueOrDefault)(l,r.namedTypeName,()=>new Set)})}else this.addSubgraphNameToExistingFieldNamedTypeDisparity(r);for(let l of r.argumentDataByName.values())this.upsertInputValueData(a.argumentDataByName,l,a.federatedCoords,o);(0,he.addNewObjectValueMapEntries)(r.configureDescriptionDataBySubgraphName,i.configureDescriptionDataBySubgraphName),(0,Te.setLongestDescription)(a,r),a.isInaccessible||(a.isInaccessible=r.isInaccessible),(0,he.addNewObjectValueMapEntries)(r.externalFieldDataBySubgraphName,a.externalFieldDataBySubgraphName),(0,he.addMapEntries)({source:r.isShareableBySubgraphName,target:a.isShareableBySubgraphName}),(0,he.addMapEntries)({source:r.nullLevelsBySubgraphName,target:a.nullLevelsBySubgraphName}),(0,he.addIterableToSet)({source:r.subgraphNames,target:a.subgraphNames})}getClientSchemaUnionMembers(t){let r=[];for(let[n,i]of t.memberByMemberTypeName)this.inaccessibleCoords.has(n)||r.push(i);return r}recordTagNamesByCoords(t,r){let n=r||t.name;if(t.federatedDirectivesData.tagDirectiveByName.size<1)return;let i=(0,he.getValueOrDefault)(this.tagNamesByCoords,n,()=>new Set);for(let a of t.federatedDirectivesData.tagDirectiveByName.keys())i.add(a)}copyMutualParentDefinitionData(t){return{configureDescriptionDataBySubgraphName:(0,he.copyObjectValueMap)(t.configureDescriptionDataBySubgraphName),directivesByName:(0,he.copyArrayValueMap)(t.directivesByName),extensionType:t.extensionType,name:t.name,federatedDirectivesData:this.extractFederatedDirectives({data:(0,Te.newFederatedDirectivesData)(),directivesByName:t.directivesByName}),description:(0,Te.getInitialFederatedDescription)(t)}}copyDirectiveArgumentData(t){return{configureDescriptionDataBySubgraphName:(0,he.copyObjectValueMap)(t.configureDescriptionDataBySubgraphName),directivesByName:(0,he.copyArrayValueMap)(t.directivesByName),defaultValue:t.defaultValue,description:(0,Te.getInitialFederatedDescription)(t),federatedCoords:t.federatedCoords,federatedDirectivesData:this.extractFederatedDirectives({data:(0,Te.newFederatedDirectivesData)(),directivesByName:t.directivesByName}),includeDefaultValue:t.includeDefaultValue,kind:t.kind,name:t.name,namedTypeKind:t.namedTypeKind,namedTypeName:t.namedTypeName,node:{directives:[],kind:Ae.Kind.INPUT_VALUE_DEFINITION,name:(0,Wi.stringToNameNode)(t.name),type:t.type},originalCoords:t.originalCoords,requiredSubgraphNames:new Set(t.requiredSubgraphNames),subgraphNames:new Set(t.subgraphNames),type:t.type}}copyEnumValueData(t){return{appearances:t.appearances,configureDescriptionDataBySubgraphName:(0,he.copyObjectValueMap)(t.configureDescriptionDataBySubgraphName),federatedCoords:t.federatedCoords,directivesByName:(0,he.copyArrayValueMap)(t.directivesByName),kind:t.kind,name:t.name,node:{directives:[],kind:t.kind,name:(0,Wi.stringToNameNode)(t.name)},parentTypeName:t.parentTypeName,federatedDirectivesData:this.extractFederatedDirectives({data:(0,Te.newFederatedDirectivesData)(),directivesByName:t.directivesByName}),subgraphNames:new Set(t.subgraphNames),description:(0,Te.getInitialFederatedDescription)(t)}}copyInputValueData(t){return{configureDescriptionDataBySubgraphName:(0,he.copyObjectValueMap)(t.configureDescriptionDataBySubgraphName),directivesByName:(0,he.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:Ae.Kind.INPUT_VALUE_DEFINITION,name:(0,Wi.stringToNameNode)(t.name),type:t.type},originalCoords:t.originalCoords,originalParentTypeName:t.originalParentTypeName,federatedDirectivesData:this.extractFederatedDirectives({data:(0,Te.newFederatedDirectivesData)(),directivesByName:t.directivesByName}),renamedParentTypeName:t.renamedParentTypeName,requiredSubgraphNames:new Set(t.requiredSubgraphNames),subgraphNames:new Set(t.subgraphNames),type:t.type,defaultValue:t.defaultValue,description:(0,Te.getInitialFederatedDescription)(t)}}copyInputValueDataByValueName(t,r,n){let i=new Map;for(let[a,o]of t){let u=this.copyInputValueData(o);this.handleInputValueInaccessibility(r,u,n),(0,he.getValueOrDefault)(this.coordsByNamedTypeName,u.namedTypeName,()=>new Set).add(u.federatedCoords),this.namedInputValueTypeNames.add(u.namedTypeName),this.recordTagNamesByCoords(u,`${n}.${o.name}`),i.set(a,u)}return i}copyFieldData(t,r){return{argumentDataByName:this.copyInputValueDataByValueName(t.argumentDataByName,r,t.federatedCoords),configureDescriptionDataBySubgraphName:(0,he.copyObjectValueMap)(t.configureDescriptionDataBySubgraphName),directivesByName:(0,he.copyArrayValueMap)(t.directivesByName),externalFieldDataBySubgraphName:(0,he.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,Wi.stringToNameNode)(t.name),type:t.type},nullLevelsBySubgraphName:t.nullLevelsBySubgraphName,originalParentTypeName:t.originalParentTypeName,federatedDirectivesData:this.extractFederatedDirectives({data:(0,Te.newFederatedDirectivesData)(),directivesByName:t.directivesByName}),renamedParentTypeName:t.renamedParentTypeName,subgraphNames:new Set(t.subgraphNames),type:t.type,description:(0,Te.getInitialFederatedDescription)(t)}}copyEnumValueDataByName(t,r){let n=new Map;for(let[i,a]of t){let o=this.copyEnumValueData(a);this.recordTagNamesByCoords(o,o.federatedCoords),(r||(0,Te.isNodeDataInaccessible)(o))&&this.inaccessibleCoords.add(o.federatedCoords),n.set(i,o)}return n}copyFieldDataByName(t,r){let n=new Map;for(let[i,a]of t){let o=r||(0,Te.isNodeDataInaccessible)(a),u=this.copyFieldData(a,o);this.handleSubscriptionFilterDirective(u),(0,he.getValueOrDefault)(this.coordsByNamedTypeName,u.namedTypeName,()=>new Set).add(u.federatedCoords),this.namedOutputTypeNames.add(u.namedTypeName),this.recordTagNamesByCoords(u,u.federatedCoords),o&&this.inaccessibleCoords.add(u.federatedCoords),n.set(i,u)}return n}copyParentDefinitionData(t){let r=this.copyMutualParentDefinitionData(t);switch(t.kind){case Ae.Kind.ENUM_TYPE_DEFINITION:return G(q({},r),{appearances:t.appearances,enumValueDataByName:this.copyEnumValueDataByName(t.enumValueDataByName,t.isInaccessible),isInaccessible:t.isInaccessible,kind:t.kind,node:{kind:t.kind,name:(0,Wi.stringToNameNode)(t.name)},subgraphNames:new Set(t.subgraphNames)});case Ae.Kind.INPUT_OBJECT_TYPE_DEFINITION:return G(q({},r),{inputValueDataByName:this.copyInputValueDataByValueName(t.inputValueDataByName,t.isInaccessible,t.name),isInaccessible:t.isInaccessible,kind:t.kind,node:{kind:t.kind,name:(0,Wi.stringToNameNode)(t.name)},subgraphNames:new Set(t.subgraphNames)});case Ae.Kind.INTERFACE_TYPE_DEFINITION:return G(q({},r),{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,Wi.stringToNameNode)(t.name)},requireFetchReasonsFieldNames:new Set,subgraphNames:new Set(t.subgraphNames)});case Ae.Kind.OBJECT_TYPE_DEFINITION:return G(q({},r),{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,Wi.stringToNameNode)(t.renamedTypeName||t.name)},requireFetchReasonsFieldNames:new Set,renamedTypeName:t.renamedTypeName,subgraphNames:new Set(t.subgraphNames)});case Ae.Kind.SCALAR_TYPE_DEFINITION:return G(q({},r),{kind:t.kind,node:{kind:t.kind,name:(0,Wi.stringToNameNode)(t.name)},subgraphNames:new Set(t.subgraphNames)});case Ae.Kind.UNION_TYPE_DEFINITION:return G(q({},r),{kind:t.kind,node:{kind:t.kind,name:(0,Wi.stringToNameNode)(t.name)},memberByMemberTypeName:new Map(t.memberByMemberTypeName),subgraphNames:new Set(t.subgraphNames)})}}getParentTargetData({existingData:t,incomingData:r}){if(!t){let n=this.copyParentDefinitionData(r);return(0,Te.isParentDataRootType)(n)&&(n.extensionType=yX.ExtensionType.NONE),n}return this.extractFederatedDirectives({data:t.federatedDirectivesData,directivesByName:r.directivesByName}),t}upsertParentDefinitionData(t,r){let n=this.entityInterfaceFederationDataByTypeName.get(t.name),i=this.parentDefinitionDataByTypeName.get(t.name),a=this.getParentTargetData({existingData:i,incomingData:t});this.recordTagNamesByCoords(a);let o=(0,Te.isNodeDataInaccessible)(a);if(o&&this.inaccessibleCoords.add(a.name),n&&n.interfaceObjectSubgraphNames.has(r)){if(i&&i.kind!==Ae.Kind.INTERFACE_TYPE_DEFINITION){this.errors.push((0,we.incompatibleParentTypeMergeError)({existingData:i,incomingSubgraphName:r}));return}a.kind=Ae.Kind.INTERFACE_TYPE_DEFINITION,a.node.kind=Ae.Kind.INTERFACE_TYPE_DEFINITION}if(!i){this.parentDefinitionDataByTypeName.set(a.name,a);return}if(a.kind!==t.kind&&(!n||!n.interfaceObjectSubgraphNames.has(r)||a.kind!==Ae.Kind.INTERFACE_TYPE_DEFINITION||t.kind!==Ae.Kind.OBJECT_TYPE_DEFINITION)){this.errors.push((0,we.incompatibleParentTypeMergeError)({existingData:a,incomingNodeType:(0,he.kindToNodeType)(t.kind),incomingSubgraphName:r}));return}switch((0,he.addNewObjectValueMapEntries)(t.configureDescriptionDataBySubgraphName,a.configureDescriptionDataBySubgraphName),(0,Te.setLongestDescription)(a,t),(0,Te.setParentDataExtensionType)(a,t),a.kind){case Ae.Kind.ENUM_TYPE_DEFINITION:if(!(0,Te.areKindsEqual)(a,t))return;a.appearances+=1,a.isInaccessible||(a.isInaccessible=o),(0,he.addIterableToSet)({source:t.subgraphNames,target:a.subgraphNames});for(let l of t.enumValueDataByName.values())this.upsertEnumValueData(a.enumValueDataByName,l,o);return;case Ae.Kind.INPUT_OBJECT_TYPE_DEFINITION:if(!(0,Te.areKindsEqual)(a,t))return;o&&!a.isInaccessible&&this.propagateInaccessibilityToExistingChildren(a),a.isInaccessible||(a.isInaccessible=o),(0,he.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 Ae.Kind.INTERFACE_TYPE_DEFINITION:case Ae.Kind.OBJECT_TYPE_DEFINITION:let u=t;o&&!a.isInaccessible&&this.propagateInaccessibilityToExistingChildren(a),a.isInaccessible||(a.isInaccessible=o),(0,he.addIterableToSet)({source:u.implementedInterfaceTypeNames,target:a.implementedInterfaceTypeNames}),(0,he.addIterableToSet)({source:u.subgraphNames,target:a.subgraphNames});for(let l of u.fieldDataByName.values())this.upsertFieldData(a.fieldDataByName,l,a.isInaccessible);return;case Ae.Kind.UNION_TYPE_DEFINITION:if(!(0,Te.areKindsEqual)(a,t))return;(0,he.addMapEntries)({source:t.memberByMemberTypeName,target:a.memberByMemberTypeName}),(0,he.addIterableToSet)({source:t.subgraphNames,target:a.subgraphNames});return;default:(0,he.addIterableToSet)({source:t.subgraphNames,target:a.subgraphNames});return}}propagateInaccessibilityToExistingChildren(t){switch(t.kind){case Ae.Kind.INPUT_OBJECT_TYPE_DEFINITION:for(let r of t.inputValueDataByName.values())this.inaccessibleCoords.add(r.federatedCoords);break;default:for(let r of t.fieldDataByName.values()){this.inaccessibleCoords.add(r.federatedCoords);for(let n of r.argumentDataByName.values())this.inaccessibleCoords.add(n.federatedCoords)}}}shouldUpdateFederatedFieldAbstractNamedType(t,r){if(!t)return!1;let n=this.concreteTypeNamesByAbstractTypeName.get(t);if(!n||n.size<1)return!1;for(let i of r)if(!n.has(i))return!1;return!0}updateTypeNodeNamedType(t,r){let n=t;for(let i=0;i1){this.errors.push((0,we.incompatibleFederatedFieldNamedTypeError)(t,r));continue}break}case Ae.Kind.UNION_TYPE_DEFINITION:{if(l){this.errors.push((0,we.incompatibleFederatedFieldNamedTypeError)(t,r));continue}l=h;break}default:{this.errors.push((0,we.incompatibleFederatedFieldNamedTypeError)(t,r));break}}}if(o.size<1&&!l){this.errors.push((0,we.incompatibleFederatedFieldNamedTypeError)(t,r));continue}let m=l;if(o.size>0){if(l){this.errors.push((0,we.incompatibleFederatedFieldNamedTypeError)(t,r));continue}for(let h of o.keys()){m=h;for(let[N,T]of o)if(h!==N&&!T.implementedInterfaceTypeNames.has(h)){m="";break}if(m)break}}if(!this.shouldUpdateFederatedFieldAbstractNamedType(m,u)){this.errors.push((0,we.incompatibleFederatedFieldNamedTypeError)(t,r));continue}a.namedTypeName=m,this.updateTypeNodeNamedType(a.type,m)}}upsertExecutableDirectiveDatas(){for(let[t,r]of this.executableDirectiveDatasByName)for(let n of r){let i=this.federatedDirectiveDataByName.get(t);if(!i){let a=new Map;for(let u of n.argumentDataByName.values())this.upsertDirectiveArgumentData({argumentDataByName:a,incomingData:u});let o=new Set(n.executableLocations);this.federatedDirectiveDataByName.set(t,{argumentDataByName:a,isComposed:!1,isRepeatable:n.isRepeatable,isReferenced:n.isReferenced,executableLocations:o,locations:o,majorVersion:-1,minorVersion:-1,name:t,description:n.description,node:n.node,optionalArgumentNames:new Set(n.optionalArgumentNames),requiredArgumentNames:new Set(n.requiredArgumentNames),subgraphNames:new Set(n.subgraphNames)});continue}for(let a of n.argumentDataByName.values())this.upsertDirectiveArgumentData({argumentDataByName:i.argumentDataByName,incomingData:a});for(let a of i.executableLocations)n.executableLocations.has(a)||i.executableLocations.delete(a);if(i.executableLocations.size<1){this.federatedDirectiveDataByName.delete(t);break}(0,Te.setLongestDescription)(i,n),(0,he.addIterableToSet)({source:n.subgraphNames,target:i.subgraphNames}),i.isRepeatable&&(i.isRepeatable=n.isRepeatable)}}federateInternalSubgraphData(){this.upsertExecutableDirectiveDatas();for(let t of this.internalSubgraphBySubgraphName.values()){this.currentSubgraphName=t.name,this.isVersionTwo||(this.isVersionTwo=t.isVersionTwo),(0,IKe.renameRootTypes)(this,t);for(let r of t.parentDefinitionDataByTypeName.values())this.upsertParentDefinitionData(r,t.name)}this.handleDisparateFieldNamedTypes()}handleInterfaceObjectForInternalGraph({entityData:t,internalSubgraph:r,interfaceObjectData:n,interfaceObjectNode:i,resolvableKeyFieldSets:a,subgraphName:o}){let u=this.internalGraph.addOrUpdateNode(t.typeName),l=this.internalGraph.addEntityDataNode(t.typeName);for(let h of i.satisfiedFieldSets)u.satisfiedFieldSets.add(h),a.has(h)&&l.addTargetSubgraphByFieldSet(h,o);let m=n.fieldDatasBySubgraphName.get(o);for(let{name:h,namedTypeName:N}of m||[])this.internalGraph.addEdge(u,this.internalGraph.addOrUpdateNode(N),h);this.internalGraph.addEdge(i,u,t.typeName,!0),this.addValidPrimaryKeyTargetsFromInterfaceObject(r,i.typeName,t,u)}handleEntityInterfaces(){var t;for(let[r,n]of this.entityInterfaceFederationDataByTypeName){let i=(0,he.getOrThrowError)(this.parentDefinitionDataByTypeName,r,Fe.PARENT_DEFINITION_DATA);if(i.kind===Ae.Kind.INTERFACE_TYPE_DEFINITION)for(let a of n.interfaceObjectSubgraphNames){let o=(0,he.getOrThrowError)(this.internalSubgraphBySubgraphName,a,"internalSubgraphBySubgraphName"),u=o.configurationDataByTypeName,l=this.concreteTypeNamesByAbstractTypeName.get(r);if(!l)continue;let m=(0,he.getOrThrowError)(u,r,"configurationDataByTypeName"),h=m.keys;if(!h)continue;m.entityInterfaceConcreteTypeNames=new Set(n.concreteTypeNames),this.internalGraph.setSubgraphName(a);let N=this.internalGraph.addOrUpdateNode(r,{isAbstract:!0});for(let T of l){let O=(0,he.getOrThrowError)(this.parentDefinitionDataByTypeName,T,Fe.PARENT_DEFINITION_DATA);if(!(0,Li.isObjectDefinitionData)(O))continue;let R=(0,he.getOrThrowError)(this.entityDataByTypeName,T,"entityDataByTypeName");R.subgraphNames.add(a);let C=u.get(T);if(C)if((0,he.addIterableToSet)({source:m.fieldNames,target:C.fieldNames}),!C.keys)C.keys=[...h];else e:for(let ae of h){for(let{selectionSet:Ne}of C.keys)if(ae.selectionSet===Ne)continue e;C.keys.push(ae)}else u.set(T,{fieldNames:new Set(m.fieldNames),isRootNode:!0,keys:[...h],typeName:T});let M=new Set;for(let ae of h.filter(Ne=>!Ne.disableEntityResolver))M.add(ae.selectionSet);let Y=this.authorizationDataByParentTypeName.get(r),ee=(0,he.getOrThrowError)(o.parentDefinitionDataByTypeName,r,"internalSubgraph.parentDefinitionDataByTypeName");if((0,Li.isObjectDefinitionData)(ee)){for(let[ae,Ne]of ee.fieldDataByName){let _e=`${T}.${ae}`;(0,he.getValueOrDefault)(this.fieldCoordsByNamedTypeName,Ne.namedTypeName,()=>new Set).add(_e);let Le=Y==null?void 0:Y.fieldAuthDataByFieldName.get(ae);if(Le){let Z=(0,he.getValueOrDefault)(this.authorizationDataByParentTypeName,T,()=>(0,Li.newAuthorizationData)(T));(0,Li.upsertFieldAuthorizationData)(Z.fieldAuthDataByFieldName,Le)||this.invalidORScopesCoords.add(_e)}let Ve=O.fieldDataByName.get(ae);if(Ve){let Z=(t=Ne.isShareableBySubgraphName.get(a))!=null?t:!1;Ve.isShareableBySubgraphName.set(a,Z),Ve.subgraphNames.add(a);let Se=Ne.externalFieldDataBySubgraphName.get(a);if(!Se)continue;Ve.externalFieldDataBySubgraphName.set(a,q({},Se));continue}let ot=i.isInaccessible||O.isInaccessible||Ne.isInaccessible;O.fieldDataByName.set(ae,this.copyFieldData(Ne,ot))}this.handleInterfaceObjectForInternalGraph({internalSubgraph:o,subgraphName:a,interfaceObjectData:n,interfaceObjectNode:N,resolvableKeyFieldSets:M,entityData:R})}}}}}fieldDataToGraphFieldData(t){var r;return{externalSubgraphNames:new Set,name:t.name,namedTypeName:t.namedTypeName,isLeaf:(0,Li.isNodeLeaf)((r=this.parentDefinitionDataByTypeName.get(t.namedTypeName))==null?void 0:r.kind),subgraphNames:t.subgraphNames}}getFederatedGraphNodeDescription(t){if(t.configureDescriptionDataBySubgraphName.size<1)return t.description;let r=[],n="";for(let[i,{propagate:a,description:o}]of t.configureDescriptionDataBySubgraphName)a&&(r.push(i),n=o);if(r.length===1)return(0,Sd.getDescriptionFromString)(n);if(r.length<1)return t.description;this.errors.push((0,we.configureDescriptionPropagationError)((0,Te.getDefinitionDataCoords)(t,!0),r))}getValidFieldArgumentNodes(t){let r=[],n=[],i=[],a=`${t.renamedParentTypeName}.${t.name}`;for(let[o,u]of t.argumentDataByName)if(t.subgraphNames.size===u.subgraphNames.size){n.push(o);let l=(0,Te.routerSchemaInputValueNodeFromData)({data:u,description:this.getFederatedGraphNodeDescription(u),federatedDirectiveDataByName:this.federatedDirectiveDataByName,parentDefinitionDataByTypeName:this.parentDefinitionDataByTypeName});l.success?(r.push(l.node),this.warnings.push(...l.warnings)):this.errors.push(...l.errors)}else(0,Te.isTypeRequired)(u.type)&&i.push({inputValueName:o,missingSubgraphs:(0,he.getEntriesNotInHashSet)(t.subgraphNames,u.subgraphNames),requiredSubgraphs:[...u.requiredSubgraphNames]});return i.length>0?this.errors.push((0,we.invalidRequiredInputValueError)(Fe.FIELD,a,i)):n.length>0&&((0,he.getValueOrDefault)(this.fieldConfigurationByFieldCoords,a,()=>({argumentNames:n,fieldName:t.name,typeName:t.renamedParentTypeName})).argumentNames=n),r}validateSemanticNonNull(t){let r;for(let n of t.nullLevelsBySubgraphName.values()){if(!r){r=n;continue}if(r.size!==n.size){this.errors.push((0,we.semanticNonNullInconsistentLevelsError)(t));return}for(let i of n)if(!r.has(i)){this.errors.push((0,we.semanticNonNullInconsistentLevelsError)(t));return}}}validateOneOfDirective({data:t,inputValueNodes:r,requiredFieldNames:n}){return t.directivesByName.has(Fe.ONE_OF)?n.size>0?(this.errors.push((0,we.oneOfRequiredFieldsError)({requiredFieldNames:Array.from(n),typeName:t.name})),!1):(r.length===1&&this.warnings.push((0,vKe.singleFederatedInputFieldOneOfWarning)({fieldName:r[0].name.value,typeName:t.name})),!0):!0}pushParentDefinitionDataToDocumentDefinitions(t){for(let[r,n]of this.parentDefinitionDataByTypeName)switch(n.extensionType!==yX.ExtensionType.NONE&&this.errors.push((0,we.noBaseDefinitionForExtensionError)((0,he.kindToNodeType)(n.kind),r)),n.kind){case Ae.Kind.ENUM_TYPE_DEFINITION:{if(Od.IGNORED_FEDERATED_TYPE_NAMES.has(r))break;let i=[],a=[],o=this.getEnumValueMergeMethod(r);(0,Te.propagateAuthDirectives)(n,this.authorizationDataByParentTypeName.get(r));for(let l of n.enumValueDataByName.values()){let m=(0,Te.isNodeDataInaccessible)(l),h=G(q({},l.node),{directives:(0,Te.getClientFederatedDirectiveNodes)(l)}),N=(0,Te.routerSchemaNodeFromData)({data:l,description:this.getFederatedGraphNodeDescription(l),federatedDirectiveDataByName:this.federatedDirectiveDataByName,parentDefinitionDataByTypeName:this.parentDefinitionDataByTypeName});if(!N.success){this.errors.push(...N.errors);continue}switch(o){case Te.MergeMethod.CONSISTENT:!m&&n.appearances>l.appearances&&this.errors.push((0,we.incompatibleSharedEnumError)(r)),i.push(N.node),m||a.push(h);break;case Te.MergeMethod.INTERSECTION:n.appearances===l.appearances&&(i.push(N.node),m||a.push(h));break;default:i.push(N.node),m||a.push(h);break}}n.node.values=i;let u=(0,Te.routerSchemaNodeFromData)({data:n,description:this.getFederatedGraphNodeDescription(n),federatedDirectiveDataByName:this.federatedDirectiveDataByName,parentDefinitionDataByTypeName:this.parentDefinitionDataByTypeName});if(u.success?this.routerDefinitions.push(u.node):this.errors.push(...u.errors),(0,Te.isNodeDataInaccessible)(n)){this.validateReferencesOfInaccessibleType(n),this.internalGraph.setNodeInaccessible(n.name);break}if(a.length<1){this.errors.push((0,we.allChildDefinitionsAreInaccessibleError)((0,he.kindToNodeType)(n.kind),r,Fe.ENUM_VALUE));break}this.clientDefinitions.push(G(q({},n.node),{directives:(0,Te.getClientFederatedDirectiveNodes)(n),values:a}));break}case Ae.Kind.INPUT_OBJECT_TYPE_DEFINITION:{if(Od.IGNORED_FEDERATED_TYPE_NAMES.has(r))break;let i=new Array,a=new Array,o=new Array,u=new Set;for(let[m,h]of n.inputValueDataByName)if((0,Te.isTypeRequired)(h.type)&&u.add(m),n.subgraphNames.size===h.subgraphNames.size){let N=(0,Te.routerSchemaInputValueNodeFromData)({data:h,description:this.getFederatedGraphNodeDescription(h),federatedDirectiveDataByName:this.federatedDirectiveDataByName,parentDefinitionDataByTypeName:this.parentDefinitionDataByTypeName});if(N.success?(a.push(N.node),this.warnings.push(...N.warnings)):this.errors.push(...N.errors),(0,Te.isNodeDataInaccessible)(h))continue;o.push(G(q({},h.node),{directives:(0,Te.getClientFederatedDirectiveNodes)(h)}))}else(0,Te.isTypeRequired)(h.type)&&i.push({inputValueName:m,missingSubgraphs:(0,he.getEntriesNotInHashSet)(n.subgraphNames,h.subgraphNames),requiredSubgraphs:[...h.requiredSubgraphNames]});if(i.length>0){this.errors.push((0,we.invalidRequiredInputValueError)(Fe.INPUT_OBJECT,r,i,!1));break}if(!this.validateOneOfDirective({data:n,inputValueNodes:a,requiredFieldNames:u}))break;n.node.fields=a;let l=(0,Te.routerSchemaNodeFromData)({data:n,description:this.getFederatedGraphNodeDescription(n),federatedDirectiveDataByName:this.federatedDirectiveDataByName,parentDefinitionDataByTypeName:this.parentDefinitionDataByTypeName});if(l.success?this.routerDefinitions.push(l.node):this.errors.push(...l.errors),(0,Te.isNodeDataInaccessible)(n)){this.validateReferencesOfInaccessibleType(n);break}if(o.length<1){this.errors.push((0,we.allChildDefinitionsAreInaccessibleError)((0,he.kindToNodeType)(n.kind),r,"Input field"));break}this.clientDefinitions.push(G(q({},n.node),{directives:(0,Te.getClientFederatedDirectiveNodes)(n),fields:o}));break}case Ae.Kind.INTERFACE_TYPE_DEFINITION:case Ae.Kind.OBJECT_TYPE_DEFINITION:{let i=[],a=[],o=new Map,u=(0,Te.newInvalidFieldNames)(),l=n.kind===Ae.Kind.OBJECT_TYPE_DEFINITION,m=this.authorizationDataByParentTypeName.get(r);(0,Te.propagateAuthDirectives)(n,m);for(let[T,O]of n.fieldDataByName){(0,Te.propagateFieldAuthDirectives)(O,m);let R=this.getValidFieldArgumentNodes(O);l&&(0,Te.validateExternalAndShareable)(O,u),this.validateSemanticNonNull(O);let C=(0,Te.routerSchemaFieldNodeFromData)({argumentNodes:R,data:O,description:this.getFederatedGraphNodeDescription(O),federatedDirectiveDataByName:this.federatedDirectiveDataByName,parentDefinitionDataByTypeName:this.parentDefinitionDataByTypeName});C.success?(i.push(C.node),this.warnings.push(...C.warnings)):this.errors.push(...C.errors),!(0,Te.isNodeDataInaccessible)(O)&&(a.push((0,Te.getClientSchemaFieldNodeByFieldData)(O)),o.set(T,this.fieldDataToGraphFieldData(O)))}if(l&&(u.byShareable.size>0&&this.errors.push((0,we.invalidFieldShareabilityError)(n,u.byShareable)),u.subgraphNamesByExternalFieldName.size>0&&this.errors.push((0,we.allExternalFieldInstancesError)(r,u.subgraphNamesByExternalFieldName))),n.node.fields=i,this.internalGraph.initializeNode(r,o),n.implementedInterfaceTypeNames.size>0){t.push({data:n,clientSchemaFieldNodes:a});break}let h=(0,Te.routerSchemaNodeFromData)({data:n,description:this.getFederatedGraphNodeDescription(n),federatedDirectiveDataByName:this.federatedDirectiveDataByName,parentDefinitionDataByTypeName:this.parentDefinitionDataByTypeName});h.success?this.routerDefinitions.push(h.node):this.errors.push(...h.errors);let N=(0,hX.isNodeQuery)(r);if((0,Te.isNodeDataInaccessible)(n)){if(N){this.errors.push(we.inaccessibleQueryRootTypeError);break}this.validateReferencesOfInaccessibleType(n),this.internalGraph.setNodeInaccessible(n.name);break}if(a.length<1){let T=N?(0,we.noQueryRootTypeError)(!1):(0,we.allChildDefinitionsAreInaccessibleError)((0,he.kindToNodeType)(n.kind),r,Fe.FIELD);this.errors.push(T);break}this.clientDefinitions.push(G(q({},n.node),{directives:(0,Te.getClientFederatedDirectiveNodes)(n),fields:a}));break}case Ae.Kind.SCALAR_TYPE_DEFINITION:{if(Od.IGNORED_FEDERATED_TYPE_NAMES.has(r))break;(0,Te.propagateAuthDirectives)(n,this.authorizationDataByParentTypeName.get(r));let i=(0,Te.routerSchemaNodeFromData)({data:n,description:this.getFederatedGraphNodeDescription(n),federatedDirectiveDataByName:this.federatedDirectiveDataByName,parentDefinitionDataByTypeName:this.parentDefinitionDataByTypeName});if(i.success?this.routerDefinitions.push(i.node):this.errors.push(...i.errors),(0,Te.isNodeDataInaccessible)(n)){this.validateReferencesOfInaccessibleType(n),this.internalGraph.setNodeInaccessible(n.name);break}this.clientDefinitions.push(G(q({},n.node),{directives:(0,Te.getClientFederatedDirectiveNodes)(n)}));break}case Ae.Kind.UNION_TYPE_DEFINITION:{n.node.types=(0,Li.mapToArrayOfValues)(n.memberByMemberTypeName);let i=(0,Te.routerSchemaNodeFromData)({data:n,description:this.getFederatedGraphNodeDescription(n),federatedDirectiveDataByName:this.federatedDirectiveDataByName,parentDefinitionDataByTypeName:this.parentDefinitionDataByTypeName});if(i.success?this.routerDefinitions.push(i.node):this.errors.push(...i.errors),(0,Te.isNodeDataInaccessible)(n)){this.validateReferencesOfInaccessibleType(n),this.internalGraph.setNodeInaccessible(n.name);break}let a=this.getClientSchemaUnionMembers(n);if(a.length<1){this.errors.push((0,we.allChildDefinitionsAreInaccessibleError)(Fe.UNION,r,"union member type"));break}this.clientDefinitions.push(G(q({},n.node),{directives:(0,Te.getClientFederatedDirectiveNodes)(n),types:a}));break}}}pushNamedTypeAuthDataToFields(){var t;for(let[r,n]of this.authorizationDataByParentTypeName){if(!n.requiresAuthentication&&n.requiredScopes.length<1)continue;let i=this.fieldCoordsByNamedTypeName.get(r);if(i)for(let a of i){let o=a.split(Fe.LITERAL_PERIOD);switch(o.length){case 2:{let u=(0,he.getValueOrDefault)(this.authorizationDataByParentTypeName,o[0],()=>(0,Li.newAuthorizationData)(o[0])),l=(0,he.getValueOrDefault)(u.fieldAuthDataByFieldName,o[1],()=>(0,Li.newFieldAuthorizationData)(o[1]));(t=l.inheritedData).requiresAuthentication||(t.requiresAuthentication=n.requiresAuthentication),l.inheritedData.requiredScopes.length*n.requiredScopes.length>By.MAX_OR_SCOPES?this.invalidORScopesCoords.add(a):(l.inheritedData.requiredScopesByOR=(0,Li.mergeRequiredScopesByAND)(l.inheritedData.requiredScopesByOR,n.requiredScopesByOR),l.inheritedData.requiredScopes=(0,Li.mergeRequiredScopesByAND)(l.inheritedData.requiredScopes,n.requiredScopes));break}default:break}}}}federateSubgraphData(){this.federateInternalSubgraphData(),this.handleEntityInterfaces(),this.generateTagData(),Zd(this,Hv,TX).call(this),this.pushNamedTypeAuthDataToFields()}validateInterfaceImplementationsAndPushToDocumentDefinitions(t){for(let{data:r,clientSchemaFieldNodes:n}of t){r.node.interfaces=this.getValidImplementedInterfaces(r);let i=(0,Te.routerSchemaNodeFromData)({data:r,description:this.getFederatedGraphNodeDescription(r),federatedDirectiveDataByName:this.federatedDirectiveDataByName,parentDefinitionDataByTypeName:this.parentDefinitionDataByTypeName});if(i.success?this.routerDefinitions.push(i.node):this.errors.push(...i.errors),(0,Te.isNodeDataInaccessible)(r)){this.validateReferencesOfInaccessibleType(r),this.internalGraph.setNodeInaccessible(r.name);continue}let a=[];for(let o of r.implementedInterfaceTypeNames)this.inaccessibleCoords.has(o)||a.push((0,Wi.stringToNamedTypeNode)(o));this.clientDefinitions.push(G(q({},r.node),{directives:(0,Te.getClientFederatedDirectiveNodes)(r),fields:n,interfaces:a}))}}validatePathSegmentInaccessibility(t){if(!t)return!1;let n=t.split(Fe.LEFT_PARENTHESIS)[0].split(Fe.LITERAL_PERIOD),i=n[0];for(let a=0;a0&&this.errors.push((0,we.invalidReferencesOfInaccessibleTypeError)((0,he.kindToNodeType)(t.kind),t.name,n))}validateQueryRootType(){let t=this.parentDefinitionDataByTypeName.get(Fe.QUERY);if(!t||t.kind!==Ae.Kind.OBJECT_TYPE_DEFINITION||t.fieldDataByName.size<1){this.errors.push((0,we.noQueryRootTypeError)());return}for(let r of t.fieldDataByName.values())if(!(0,Te.isNodeDataInaccessible)(r))return;this.errors.push((0,we.noQueryRootTypeError)())}validateSubscriptionFieldConditionFieldPath(t,r,n,i,a){let o=t.split(Fe.LITERAL_PERIOD);if(o.length<1)return a.push((0,we.invalidSubscriptionFieldConditionFieldPathErrorMessage)(n,t)),[];let u=r;if(this.inaccessibleCoords.has(u.renamedTypeName))return a.push((0,we.inaccessibleSubscriptionFieldConditionFieldPathFieldErrorMessage)(n,t,o[0],u.renamedTypeName)),[];let l="";for(let m=0;m0?`.${h}`:h,u.kind!==Ae.Kind.OBJECT_TYPE_DEFINITION)return a.push((0,we.invalidSubscriptionFieldConditionFieldPathParentErrorMessage)(n,t,l)),[];let N=u.fieldDataByName.get(h);if(!N)return a.push((0,we.undefinedSubscriptionFieldConditionFieldPathFieldErrorMessage)(n,t,l,h,u.renamedTypeName)),[];let T=`${u.renamedTypeName}.${h}`;if(!N.subgraphNames.has(i))return a.push((0,we.invalidSubscriptionFieldConditionFieldPathFieldErrorMessage)(n,t,l,T,i)),[];if(this.inaccessibleCoords.has(T))return a.push((0,we.inaccessibleSubscriptionFieldConditionFieldPathFieldErrorMessage)(n,t,l,T)),[];if(By.BASE_SCALARS.has(N.namedTypeName)){u={kind:Ae.Kind.SCALAR_TYPE_DEFINITION,name:N.namedTypeName};continue}u=(0,he.getOrThrowError)(this.parentDefinitionDataByTypeName,N.namedTypeName,Fe.PARENT_DEFINITION_DATA)}return(0,Te.isLeafKind)(u.kind)?o:(a.push((0,we.nonLeafSubscriptionFieldConditionFieldPathFinalFieldErrorMessage)(n,t,o[o.length-1],(0,he.kindToNodeType)(u.kind),u.name)),[])}validateSubscriptionFieldCondition(t,r,n,i,a,o,u){if(i>Jv.MAX_SUBSCRIPTION_FILTER_DEPTH||this.isMaxDepth)return u.push((0,we.subscriptionFilterConditionDepthExceededErrorMessage)(a)),this.isMaxDepth=!0,!1;let l=!1,m=new Set([Fe.FIELD_PATH,Fe.VALUES]),h=new Set,N=new Set,T=[];for(let O of t.fields){let R=O.name.value,C=a+`.${R}`;switch(R){case Fe.FIELD_PATH:{if(m.has(Fe.FIELD_PATH))m.delete(Fe.FIELD_PATH);else{l=!0,h.add(Fe.FIELD_PATH);break}if(O.value.kind!==Ae.Kind.STRING){T.push((0,we.invalidInputFieldTypeErrorMessage)(C,Fe.STRING,(0,he.kindToNodeType)(O.value.kind))),l=!0;break}let M=this.validateSubscriptionFieldConditionFieldPath(O.value.value,n,C,o,T);if(M.length<1){l=!0;break}r.fieldPath=M;break}case Fe.VALUES:{if(m.has(Fe.VALUES))m.delete(Fe.VALUES);else{l=!0,h.add(Fe.VALUES);break}let M=O.value.kind;if(M==Ae.Kind.NULL||M==Ae.Kind.OBJECT){T.push((0,we.invalidInputFieldTypeErrorMessage)(C,Fe.LIST,(0,he.kindToNodeType)(O.value.kind))),l=!0;break}if(M!==Ae.Kind.LIST){r.values=[(0,Te.getSubscriptionFilterValue)(O.value)];break}let Y=new Set,ee=[];for(let ae=0;ae0){T.push((0,we.subscriptionFieldConditionInvalidValuesArrayErrorMessage)(C,ee));continue}if(Y.size<1){l=!0,T.push((0,we.subscriptionFieldConditionEmptyValuesArrayErrorMessage)(C));continue}r.values=[...Y];break}default:l=!0,N.add(R)}}return l?(u.push((0,we.subscriptionFieldConditionInvalidInputFieldErrorMessage)(a,[...m],[...h],[...N],T)),!1):!0}validateSubscriptionFilterCondition(t,r,n,i,a,o,u){if(i>Jv.MAX_SUBSCRIPTION_FILTER_DEPTH||this.isMaxDepth)return u.push((0,we.subscriptionFilterConditionDepthExceededErrorMessage)(a)),this.isMaxDepth=!0,!1;if(i+=1,t.fields.length!==1)return u.push((0,we.subscriptionFilterConditionInvalidInputFieldNumberErrorMessage)(a,t.fields.length)),!1;let l=t.fields[0],m=l.name.value;if(!Od.SUBSCRIPTION_FILTER_INPUT_NAMES.has(m))return u.push((0,we.subscriptionFilterConditionInvalidInputFieldErrorMessage)(a,m)),!1;let h=a+`.${m}`;switch(l.value.kind){case Ae.Kind.OBJECT:switch(m){case Fe.IN_UPPER:return r.in={fieldPath:[],values:[]},this.validateSubscriptionFieldCondition(l.value,r.in,n,i,a+".IN",o,u);case Fe.NOT_UPPER:return r.not={},this.validateSubscriptionFilterCondition(l.value,r.not,n,i,a+".NOT",o,u);default:return u.push((0,we.subscriptionFilterConditionInvalidInputFieldTypeErrorMessage)(h,Fe.LIST,Fe.OBJECT)),!1}case Ae.Kind.LIST:{let N=[];switch(m){case Fe.AND_UPPER:{r.and=N;break}case Fe.OR_UPPER:{r.or=N;break}default:return u.push((0,we.subscriptionFilterConditionInvalidInputFieldTypeErrorMessage)(h,Fe.OBJECT,Fe.LIST)),!1}let T=l.value.values.length;if(T<1||T>5)return u.push((0,we.subscriptionFilterArrayConditionInvalidLengthErrorMessage)(h,T)),!1;let O=!0,R=[];for(let C=0;C0?(u.push((0,we.subscriptionFilterArrayConditionInvalidItemTypeErrorMessage)(h,R)),!1):O}default:{let N=Od.SUBSCRIPTION_FILTER_LIST_INPUT_NAMES.has(m)?Fe.LIST:Fe.OBJECT;return u.push((0,we.subscriptionFilterConditionInvalidInputFieldTypeErrorMessage)(h,N,(0,he.kindToNodeType)(l.value.kind))),!1}}}validateSubscriptionFilterAndGenerateConfiguration(t,r,n,i,a,o){if(!t.arguments||t.arguments.length!==1)return;let u=t.arguments[0];if(u.value.kind!==Ae.Kind.OBJECT){this.errors.push((0,we.invalidSubscriptionFilterDirectiveError)(n,[(0,we.subscriptionFilterConditionInvalidInputFieldTypeErrorMessage)(Fe.CONDITION,Fe.OBJECT,(0,he.kindToNodeType)(u.value.kind))]));return}let l={},m=[];if(!this.validateSubscriptionFilterCondition(u.value,l,r,0,Fe.CONDITION,o,m)){this.errors.push((0,we.invalidSubscriptionFilterDirectiveError)(n,m)),this.isMaxDepth=!1;return}(0,he.getValueOrDefault)(this.fieldConfigurationByFieldCoords,n,()=>({argumentNames:[],fieldName:i,typeName:a})).subscriptionFilterCondition=l}validateSubscriptionFiltersAndGenerateConfiguration(){for(let[t,r]of this.subscriptionFilterDataByFieldPath){if(this.inaccessibleCoords.has(t))continue;let n=this.parentDefinitionDataByTypeName.get(r.fieldData.namedTypeName);if(!n){this.errors.push((0,we.invalidSubscriptionFilterDirectiveError)(t,[(0,we.subscriptionFilterNamedTypeErrorMessage)(r.fieldData.namedTypeName)]));continue}(0,Te.isNodeDataInaccessible)(n)||n.kind===Ae.Kind.OBJECT_TYPE_DEFINITION&&this.validateSubscriptionFilterAndGenerateConfiguration(r.directive,n,t,r.fieldData.name,r.fieldData.renamedParentTypeName,r.directiveSubgraphName)}}buildFederationResult(){this.subscriptionFilterDataByFieldPath.size>0&&this.validateSubscriptionFiltersAndGenerateConfiguration(),this.invalidORScopesCoords.size>0&&this.errors.push((0,we.orScopesLimitError)(By.MAX_OR_SCOPES,[...this.invalidORScopesCoords])),this.handleCustomDirectiveDefinitionNodes();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.options.disableResolvabilityValidation&&this.internalSubgraphBySubgraphName.size>1){let a=this.internalGraph.validate();if(!a.success)return{errors:a.errors,success:!1,warnings:this.warnings}}let r={kind:Ae.Kind.DOCUMENT,definitions:this.routerDefinitions},n=(0,Ae.buildASTSchema)({kind:Ae.Kind.DOCUMENT,definitions:this.clientDefinitions},{assumeValid:!0,assumeValidSDL:!0}),i=new Map;for(let{configurationDataByTypeName:a,costs:o,directiveDefinitionByName:u,isVersionTwo:l,name:m,parentDefinitionDataByTypeName:h,schema:N,schemaNode:T}of this.internalSubgraphBySubgraphName.values())i.set(m,{configurationDataByTypeName:a,costs:o,directiveDefinitionByName:u,isVersionTwo:l,parentDefinitionDataByTypeName:h,schema:N,schemaNode:T});for(let a of this.authorizationDataByParentTypeName.values())(0,Li.upsertAuthorizationConfiguration)(this.fieldConfigurationByFieldCoords,a);return q({directiveDefinitionByName:this.directiveDefinitionByName,fieldConfigurations:Array.from(this.fieldConfigurationByFieldCoords.values()),federatedGraphAST:r,federatedGraphSchema:(0,Ae.buildASTSchema)(r,{assumeValid:!0,assumeValidSDL:!0}),federatedGraphClientSchema:n,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,r,n,i){let a=r.size;for(let[o,u]of n){let l=(0,he.getOrThrowError)(r,o,`${t.name}.childDataByChildName`);if((0,Te.isNodeDataInaccessible)(l)){a-=1;continue}i.isDisjointFrom(u.tagNames)||((0,he.getValueOrDefault)(l.federatedDirectivesData.directivesByName,Fe.INACCESSIBLE,()=>[(0,he.generateSimpleDirective)(Fe.INACCESSIBLE)]),this.inaccessibleCoords.add(`${t.name}.${o}`),a-=1)}a<1&&(t.federatedDirectivesData.directivesByName.set(Fe.INACCESSIBLE,[(0,he.generateSimpleDirective)(Fe.INACCESSIBLE)]),this.inaccessibleCoords.add(t.name))}handleChildTagInclusions(t,r,n,i){let a=r.size;for(let[o,u]of r){if((0,Te.isNodeDataInaccessible)(u)){a-=1;continue}let l=n.get(o);(!l||i.isDisjointFrom(l.tagNames))&&((0,he.getValueOrDefault)(u.federatedDirectivesData.directivesByName,Fe.INACCESSIBLE,()=>[(0,he.generateSimpleDirective)(Fe.INACCESSIBLE)]),this.inaccessibleCoords.add(`${t.name}.${o}`),a-=1)}a<1&&(t.federatedDirectivesData.directivesByName.set(Fe.INACCESSIBLE,[(0,he.generateSimpleDirective)(Fe.INACCESSIBLE)]),this.inaccessibleCoords.add(t.name))}handleCustomDirectiveDefinitionNodes(){for(let t of this.federatedDirectiveDataByName.values()){if(!t.isComposed&&t.executableLocations.size<1)continue;let r=(0,Te.propagateDirectiveDefinitionNodeFromData)({data:t,federatedDirectiveDataByName:this.federatedDirectiveDataByName,parentDefinitionDataByTypeName:this.parentDefinitionDataByTypeName});if(!r.success){this.errors.push(...r.errors);continue}this.routerDefinitions.push(t.node)}}buildFederationContractResult(t){if(this.isVersionTwo||this.routerDefinitions.push(_Ke.INACCESSIBLE_DEFINITION),t.tagNamesToExclude.size>0)for(let[o,u]of this.parentTagDataByTypeName){let l=(0,he.getOrThrowError)(this.parentDefinitionDataByTypeName,o,Fe.PARENT_DEFINITION_DATA);if(!(0,Te.isNodeDataInaccessible)(l)){if(!t.tagNamesToExclude.isDisjointFrom(u.tagNames)){l.federatedDirectivesData.directivesByName.set(Fe.INACCESSIBLE,[(0,he.generateSimpleDirective)(Fe.INACCESSIBLE)]),this.inaccessibleCoords.add(o);continue}if(!(u.childTagDataByChildName.size<1))switch(l.kind){case Ae.Kind.SCALAR_TYPE_DEFINITION:case Ae.Kind.UNION_TYPE_DEFINITION:break;case Ae.Kind.ENUM_TYPE_DEFINITION:{this.handleChildTagExclusions(l,l.enumValueDataByName,u.childTagDataByChildName,t.tagNamesToExclude);break}case Ae.Kind.INPUT_OBJECT_TYPE_DEFINITION:{this.handleChildTagExclusions(l,l.inputValueDataByName,u.childTagDataByChildName,t.tagNamesToExclude);break}default:{let m=l.fieldDataByName.size;for(let[h,N]of u.childTagDataByChildName){let T=(0,he.getOrThrowError)(l.fieldDataByName,h,`${o}.fieldDataByFieldName`);if((0,Te.isNodeDataInaccessible)(T)){m-=1;continue}if(!t.tagNamesToExclude.isDisjointFrom(N.tagNames)){(0,he.getValueOrDefault)(T.federatedDirectivesData.directivesByName,Fe.INACCESSIBLE,()=>[(0,he.generateSimpleDirective)(Fe.INACCESSIBLE)]),this.inaccessibleCoords.add(T.federatedCoords),m-=1;continue}for(let[O,R]of N.tagNamesByArgumentName){let C=(0,he.getOrThrowError)(T.argumentDataByName,O,`${h}.argumentDataByArgumentName`);(0,Te.isNodeDataInaccessible)(C)||t.tagNamesToExclude.isDisjointFrom(R)||((0,he.getValueOrDefault)(C.federatedDirectivesData.directivesByName,Fe.INACCESSIBLE,()=>[(0,he.generateSimpleDirective)(Fe.INACCESSIBLE)]),this.inaccessibleCoords.add(C.federatedCoords))}}m<1&&(l.federatedDirectivesData.directivesByName.set(Fe.INACCESSIBLE,[(0,he.generateSimpleDirective)(Fe.INACCESSIBLE)]),this.inaccessibleCoords.add(o))}}}}else if(t.tagNamesToInclude.size>0)for(let[o,u]of this.parentDefinitionDataByTypeName){if((0,Te.isNodeDataInaccessible)(u))continue;let l=this.parentTagDataByTypeName.get(o);if(!l){u.federatedDirectivesData.directivesByName.set(Fe.INACCESSIBLE,[(0,he.generateSimpleDirective)(Fe.INACCESSIBLE)]),this.inaccessibleCoords.add(o);continue}if(t.tagNamesToInclude.isDisjointFrom(l.tagNames)){if(l.childTagDataByChildName.size<1){u.federatedDirectivesData.directivesByName.set(Fe.INACCESSIBLE,[(0,he.generateSimpleDirective)(Fe.INACCESSIBLE)]),this.inaccessibleCoords.add(o);continue}switch(u.kind){case Ae.Kind.SCALAR_TYPE_DEFINITION:case Ae.Kind.UNION_TYPE_DEFINITION:continue;case Ae.Kind.ENUM_TYPE_DEFINITION:this.handleChildTagInclusions(u,u.enumValueDataByName,l.childTagDataByChildName,t.tagNamesToInclude);break;case Ae.Kind.INPUT_OBJECT_TYPE_DEFINITION:this.handleChildTagInclusions(u,u.inputValueDataByName,l.childTagDataByChildName,t.tagNamesToInclude);break;default:let m=u.fieldDataByName.size;for(let[h,N]of u.fieldDataByName){if((0,Te.isNodeDataInaccessible)(N)){m-=1;continue}let T=l.childTagDataByChildName.get(h);(!T||t.tagNamesToInclude.isDisjointFrom(T.tagNames))&&((0,he.getValueOrDefault)(N.federatedDirectivesData.directivesByName,Fe.INACCESSIBLE,()=>[(0,he.generateSimpleDirective)(Fe.INACCESSIBLE)]),this.inaccessibleCoords.add(N.federatedCoords),m-=1)}m<1&&(u.federatedDirectivesData.directivesByName.set(Fe.INACCESSIBLE,[(0,he.generateSimpleDirective)(Fe.INACCESSIBLE)]),this.inaccessibleCoords.add(o))}}}this.subscriptionFilterDataByFieldPath.size>0&&this.validateSubscriptionFiltersAndGenerateConfiguration(),this.handleCustomDirectiveDefinitionNodes();let r=[];if(this.pushParentDefinitionDataToDocumentDefinitions(r),this.validateInterfaceImplementationsAndPushToDocumentDefinitions(r),this.validateQueryRootType(),this.errors.length>0)return{errors:this.errors,success:!1,warnings:this.warnings};let n={kind:Ae.Kind.DOCUMENT,definitions:this.routerDefinitions},i=(0,Ae.buildASTSchema)({kind:Ae.Kind.DOCUMENT,definitions:this.clientDefinitions},{assumeValid:!0,assumeValidSDL:!0}),a=new Map;for(let{configurationDataByTypeName:o,costs:u,directiveDefinitionByName:l,isVersionTwo:m,name:h,parentDefinitionDataByTypeName:N,schema:T,schemaNode:O}of this.internalSubgraphBySubgraphName.values())a.set(h,{configurationDataByTypeName:o,costs:u,directiveDefinitionByName:l,isVersionTwo:m,parentDefinitionDataByTypeName:N,schema:T,schemaNode:O});for(let o of this.authorizationDataByParentTypeName.values())(0,Li.upsertAuthorizationConfiguration)(this.fieldConfigurationByFieldCoords,o);return q({directiveDefinitionByName:this.directiveDefinitionByName,fieldConfigurations:Array.from(this.fieldConfigurationByFieldCoords.values()),federatedGraphAST:n,federatedGraphSchema:(0,Ae.buildASTSchema)(n,{assumeValid:!0,assumeValidSDL:!0}),federatedGraphClientSchema:i,parentDefinitionDataByTypeName:this.parentDefinitionDataByTypeName,subgraphConfigBySubgraphName:a,success:!0,warnings:this.warnings},this.getClientSchemaObjectBoolean())}federateSubgraphsInternal(){return this.federateSubgraphData(),this.buildFederationResult()}};Hv=new WeakSet,TX=function(){var n;let t=new Set,r=new Set;for(let i of this.referencedFederatedDirectiveNames){let a=By.DIRECTIVE_DEFINITION_BY_NAME.get(i);if(!a)continue;let o=(n=Od.DEPENDENCIES_BY_DIRECTIVE_NAME.get(i))!=null?n:[];this.directiveDefinitionByName.set(i,a),Od.CLIENT_FEDERATED_DIRECTIVE_NAMES.has(i)&&(this.clientDefinitions.push(a),(0,he.addIterableToSet)({source:o,target:t})),this.routerDefinitions.push(a),(0,he.addIterableToSet)({source:o,target:r})}this.clientDefinitions.push(...t),this.routerDefinitions.push(...r)};bd.FederationFactory=zv;function TL({options:e,subgraphs:t}){if(t.length<1)return{errors:[we.minimumSubgraphRequirementError],success:!1,warnings:[]};let r=new SKe.BatchNormalizer({subgraphs:t,options:e}).batchNormalize();if(!r.success)return{errors:r.errors,success:!1,warnings:r.warnings};let n=new Map,i=new Map;for(let[u,l]of r.internalSubgraphByName)for(let[m,h]of l.entityInterfaceSubgraphDataByTypeName){let N=n.get(m);if(!N){n.set(m,(0,Li.newEntityInterfaceFederationData)(h,u));continue}(0,Li.upsertEntityInterfaceFederationData)(N,h,u)}let a=new Array,o=new Map;for(let[u,l]of n){let m=l.concreteTypeNames.size;for(let[h,N]of l.subgraphDataByTypeName){let T=(0,he.getValueOrDefault)(o,h,()=>new Set);if((0,he.addIterableToSet)({source:N.concreteTypeNames,target:T}),!N.isInterfaceObject){N.resolvable&&N.concreteTypeNames.size!==m&&(0,he.getValueOrDefault)(i,u,()=>new Array).push({subgraphName:h,definedConcreteTypeNames:new Set(N.concreteTypeNames),requiredConcreteTypeNames:new Set(l.concreteTypeNames)});continue}(0,he.addIterableToSet)({source:l.concreteTypeNames,target:T});let{parentDefinitionDataByTypeName:O}=(0,he.getOrThrowError)(r.internalSubgraphByName,h,"internalSubgraphBySubgraphName"),R=[];for(let C of l.concreteTypeNames)O.has(C)&&R.push(C);R.length>0&&a.push((0,we.invalidInterfaceObjectImplementationDefinitionsError)(u,h,R))}}for(let[u,l]of i){let m=new Array;for(let h of l){let N=o.get(h.subgraphName);if(!N){m.push(h);continue}let T=h.requiredConcreteTypeNames.intersection(N);h.requiredConcreteTypeNames.size!==T.size&&(h.definedConcreteTypeNames=T,m.push(h))}if(m.length>0){i.set(u,m);continue}i.delete(u)}return i.size>0&&a.push((0,we.undefinedEntityInterfaceImplementationsError)(i,n)),a.length>0?{errors:a,success:!1,warnings:r.warnings}:{federationFactory:new zv({authorizationDataByParentTypeName:r.authorizationDataByParentTypeName,concreteTypeNamesByAbstractTypeName:r.concreteTypeNamesByAbstractTypeName,entityDataByTypeName:r.entityDataByTypeName,entityInterfaceFederationDataByTypeName:n,executableDirectiveDatasByName:r.executableDirectiveDatasByName,federatedDirectiveDataByName:r.federatedDirectiveDataByName,fieldCoordsByNamedTypeName:r.fieldCoordsByNamedTypeName,interfaceImplementationTypeNamesByInterfaceTypeName:r.interfaceImplementationTypeNamesByInterfaceTypeName,internalSubgraphBySubgraphName:r.internalSubgraphByName,internalGraph:r.internalGraph,options:e,warnings:r.warnings}),success:!0,warnings:r.warnings}}function OKe({options:e,subgraphs:t}){let r=TL({options:e,subgraphs:t});return r.success?r.federationFactory.federateSubgraphsInternal():{errors:r.errors,success:!1,warnings:r.warnings}}function DKe({options:e,subgraphs:t,tagOptionsByContractName:r}){let n=TL({options:e,subgraphs:t});if(!n.success)return{errors:n.errors,success:!1,warnings:n.warnings};n.federationFactory.federateSubgraphData();let i=[(0,NX.cloneDeep)(n.federationFactory)],a=n.federationFactory.buildFederationResult();if(!a.success)return{errors:a.errors,success:!1,warnings:a.warnings};let o=r.size-1,u=new Map,l=0;for(let[m,h]of r){l!==o&&i.push((0,NX.cloneDeep)(i[l]));let N=i[l].buildFederationContractResult(h);u.set(m,N),l++}return G(q({},a),{federationResultByContractName:u})}function bKe({contractTagOptions:e,options:t,subgraphs:r}){let n=TL({options:t,subgraphs:r});return n.success?(n.federationFactory.federateSubgraphData(),n.federationFactory.buildFederationContractResult(e)):{errors:n.errors,success:!1,warnings:n.warnings}}});var Wv=D(Ks=>{"use strict";d();p();f();Object.defineProperty(Ks,"__esModule",{value:!0});Ks.LATEST_ROUTER_COMPATIBILITY_VERSION=Ks.ROUTER_COMPATIBILITY_VERSIONS=Ks.ROUTER_COMPATIBILITY_VERSION_ONE=void 0;Ks.ROUTER_COMPATIBILITY_VERSION_ONE="1";Ks.ROUTER_COMPATIBILITY_VERSIONS=new Set([Ks.ROUTER_COMPATIBILITY_VERSION_ONE]);Ks.LATEST_ROUTER_COMPATIBILITY_VERSION="1"});var gX=D(Uy=>{"use strict";d();p();f();Object.defineProperty(Uy,"__esModule",{value:!0});Uy.federateSubgraphs=AKe;Uy.federateSubgraphsWithContracts=RKe;Uy.federateSubgraphsContract=wKe;var EL=EX(),gL=Wv();function AKe({options:e,subgraphs:t,version:r=gL.ROUTER_COMPATIBILITY_VERSION_ONE}){switch(r){default:return(0,EL.federateSubgraphs)({options:e,subgraphs:t})}}function RKe({options:e,subgraphs:t,tagOptionsByContractName:r,version:n=gL.ROUTER_COMPATIBILITY_VERSION_ONE}){switch(n){default:return(0,EL.federateSubgraphsWithContracts)({options:e,subgraphs:t,tagOptionsByContractName:r})}}function wKe({contractTagOptions:e,options:t,subgraphs:r,version:n=gL.ROUTER_COMPATIBILITY_VERSION_ONE}){switch(n){default:return(0,EL.federateSubgraphsContract)({contractTagOptions:e,options:t,subgraphs:r})}}});var vX=D(IX=>{"use strict";d();p();f();Object.defineProperty(IX,"__esModule",{value:!0})});var SX=D(_X=>{"use strict";d();p();f();Object.defineProperty(_X,"__esModule",{value:!0})});var bX=D(Xv=>{"use strict";d();p();f();Object.defineProperty(Xv,"__esModule",{value:!0});Xv.normalizeSubgraphFromString=PKe;Xv.normalizeSubgraph=FKe;var OX=pL(),DX=Wv();function PKe({noLocation:e=!0,options:t,sdlString:r,version:n=DX.ROUTER_COMPATIBILITY_VERSION_ONE}){switch(n){default:return(0,OX.normalizeSubgraphFromString)({noLocation:e,options:t,sdlString:r})}}function FKe({document:e,internalGraph:t,options:r,subgraphName:n,version:i=DX.ROUTER_COMPATIBILITY_VERSION_ONE}){switch(i){default:return(0,OX.normalizeSubgraph)({document:e,internalGraph:t,options:r,subgraphName:n})}}});var RX=D(AX=>{"use strict";d();p();f();Object.defineProperty(AX,"__esModule",{value:!0})});var PX=D(wX=>{"use strict";d();p();f();Object.defineProperty(wX,"__esModule",{value:!0})});var LX=D(FX=>{"use strict";d();p();f();Object.defineProperty(FX,"__esModule",{value:!0})});var BX=D(CX=>{"use strict";d();p();f();Object.defineProperty(CX,"__esModule",{value:!0})});var kX=D(UX=>{"use strict";d();p();f();Object.defineProperty(UX,"__esModule",{value:!0})});var xX=D(qX=>{"use strict";d();p();f();Object.defineProperty(qX,"__esModule",{value:!0})});var jX=D(MX=>{"use strict";d();p();f();Object.defineProperty(MX,"__esModule",{value:!0})});var KX=D(VX=>{"use strict";d();p();f();Object.defineProperty(VX,"__esModule",{value:!0})});var GX=D($X=>{"use strict";d();p();f();Object.defineProperty($X,"__esModule",{value:!0})});var YX=D(QX=>{"use strict";d();p();f();Object.defineProperty(QX,"__esModule",{value:!0})});var JX=D(Zv=>{"use strict";d();p();f();Object.defineProperty(Zv,"__esModule",{value:!0});Zv.COMPOSITION_VERSION=void 0;Zv.COMPOSITION_VERSION="{{$COMPOSITION__VERSION}}"});var HX=D(zX=>{"use strict";d();p();f();Object.defineProperty(zX,"__esModule",{value:!0})});var XX=D(WX=>{"use strict";d();p();f();Object.defineProperty(WX,"__esModule",{value:!0})});var e7=D(ZX=>{"use strict";d();p();f();Object.defineProperty(ZX,"__esModule",{value:!0})});var r7=D(t7=>{"use strict";d();p();f();Object.defineProperty(t7,"__esModule",{value:!0})});var n7=D(IL=>{"use strict";d();p();f();Object.defineProperty(IL,"__esModule",{value:!0});IL.recordSubgraphName=LKe;function LKe(e,t,r){if(!t.has(e)){t.add(e);return}r.add(e)}});var e_=D(Qe=>{"use strict";d();p();f();var CKe=Qe&&Qe.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),tt=Qe&&Qe.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&CKe(t,e,r)};Object.defineProperty(Qe,"__esModule",{value:!0});tt(Un(),Qe);tt(YR(),Qe);tt(uv(),Qe);tt(U4(),Qe);tt(q4(),Qe);tt(Oy(),Qe);tt(Di(),Qe);tt(M4(),Qe);tt(V4(),Qe);tt(gX(),Qe);tt(vX(),Qe);tt(SX(),Qe);tt(bX(),Qe);tt(RX(),Qe);tt(PX(),Qe);tt(Mv(),Qe);tt(WF(),Qe);tt(Cv(),Qe);tt(LX(),Qe);tt(BX(),Qe);tt(rL(),Qe);tt(Wv(),Qe);tt(kX(),Qe);tt(dL(),Qe);tt(Jo(),Qe);tt(xX(),Qe);tt(jX(),Qe);tt(Xh(),Qe);tt(Zc(),Qe);tt(KX(),Qe);tt(GX(),Qe);tt(YX(),Qe);tt(JX(),Qe);tt(HX(),Qe);tt(xr(),Qe);tt(XX(),Qe);tt(An(),Qe);tt($P(),Qe);tt(zo(),Qe);tt(zo(),Qe);tt(Wh(),Qe);tt(WI(),Qe);tt(XI(),Qe);tt(xs(),Qe);tt(Xg(),Qe);tt(e7(),Qe);tt(rv(),Qe);tt(QF(),Qe);tt(NL(),Qe);tt(uv(),Qe);tt(_p(),Qe);tt(r7(),Qe);tt(lL(),Qe);tt(Av(),Qe);tt(n7(),Qe);tt(vp(),Qe);tt(hd(),Qe)});var P$e={};nm(P$e,{buildRouterConfiguration:()=>w$e,federateSubgraphs:()=>R$e});d();p();f();d();p();f();vG()();d();p();f();aQ()();d();p();f();yQ()();d();p();f();AQ()();d();p();f();xQ()();var Bd=Vi(e_());d();p();f();d();p();f();function vL(e){if(!e)return e;if(!URL.canParse(e))throw new Error("Invalid URL");let t=e.indexOf("?"),r=e.indexOf("#"),n=e;return t>0?n=n.slice(0,r>0?Math.min(t,r):t):r>0&&(n=n.slice(0,r)),n}d();p();f();d();p();f();var i7={};d();p();f();function a7(e){return e!=null}d();p();f();d();p();f();var r_=Vi(ve(),1);d();p();f();d();p();f();function sl(e){return t_(e,[])}function t_(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return BKe(e,t);default:return String(e)}}function o7(e){return(e.name="GraphQLError")?e.toString():`${e.name}: ${e.message}; + ${e.stack}`}function BKe(e,t){if(e===null)return"null";if(e instanceof Error)return e.name==="AggregateError"?o7(e)+` +`+s7(e.errors,t):o7(e);if(t.includes(e))return"[Circular]";let r=[...t,e];if(UKe(e)){let n=e.toJSON();if(n!==e)return typeof n=="string"?n:t_(n,r)}else if(Array.isArray(e))return s7(e,r);return kKe(e,r)}function UKe(e){return typeof e.toJSON=="function"}function kKe(e,t){let r=Object.entries(e);return r.length===0?"{}":t.length>3?"["+qKe(e)+"]":"{ "+r.map(([i,a])=>i+": "+t_(a,t)).join(", ")+" }"}function s7(e,t){if(e.length===0)return"[]";if(t.length>3)return"[Array]";let r=e.length,n=[];for(let i=0;ixKe.includes(t))}function wp(e,t){t!=null&&t.originalError&&!(t.originalError instanceof Error)&&MKe(t.originalError)&&(t.originalError=wp(t.originalError.message,t.originalError));let r=ky.GraphQLError,n=ky.versionInfo.major>=16?new r(e,t):new r(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);return t!=null&&t.coordinate&&n.coordinate==null&&Object.defineProperties(n,{coordinate:{value:t.coordinate,enumerable:!0,configurable:!0}}),n}d();p();f();function u7(e){return e!=null&&typeof e=="object"&&Symbol.iterator in e}function c7(e){return typeof e=="object"&&e!==null}function l7(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function d7(e,t,r={}){var o;let n={},a=((o=t.arguments)!=null?o:[]).reduce((u,l)=>G(q({},u),{[l.name.value]:l}),{});for(let{name:u,type:l,defaultValue:m}of e.args){let h=a[u];if(!h){if(m!==void 0)n[u]=m;else if((0,ho.isNonNullType)(l))throw wp(`Argument "${u}" of required type "${sl(l)}" was not provided.`,{nodes:[t]});continue}let N=h.value,T=N.kind===ho.Kind.NULL;if(N.kind===ho.Kind.VARIABLE){let R=N.name.value;if(r==null||!l7(r,R)){if(m!==void 0)n[u]=m;else if((0,ho.isNonNullType)(l))throw wp(`Argument "${u}" of required type "${sl(l)}" was provided the variable "$${R}" which was not provided a runtime value.`,{nodes:[N]});continue}T=r[R]==null}if(T&&(0,ho.isNonNullType)(l))throw wp(`Argument "${u}" of non-null type "${sl(l)}" must not be null.`,{nodes:[N]});let O=(0,ho.valueFromAST)(N,l,r);if(O===void 0)throw wp(`Argument "${u}" has invalid value ${(0,ho.print)(N)}.`,{nodes:[N]});n[u]=O}return n}d();p();f();function Pp(e){let t=new WeakMap;return function(n){let i=t.get(n);if(i===void 0){let a=e(n);return t.set(n,a),a}return i}}function f7(e,t,r=["directives"]){var o;let n={};if(e.extensions){let u=e.extensions;for(let l of r)u=u==null?void 0:u[l];if(u!=null)for(let l in u){let m=u[l],h=l;if(Array.isArray(m))for(let N of m){let T=n[h];T||(T=[],n[h]=T),T.push(N)}else{let N=n[h];N||(N=[],n[h]=N),N.push(m)}}}let i=Pp(u=>JSON.stringify(u)),a=[];e.astNode&&a.push(e.astNode),e.extensionASTNodes&&a.push(...e.extensionASTNodes);for(let u of a)if((o=u.directives)!=null&&o.length)for(let l of u.directives){let m=l.name.value,h=n[m];h||(h=[],n[m]=h);let N=t==null?void 0:t.getDirective(m),T={};if(N&&(T=d7(N,l)),l.arguments)for(let O of l.arguments){let R=O.name.value;if(T[R]==null){let C=N==null?void 0:N.args.find(M=>M.name===R);C&&(T[R]=(0,r_.valueFromAST)(O.value,C.type))}T[R]==null&&(T[R]=(0,r_.valueFromASTUntyped)(O.value))}if(a.length>0&&h.length>0){let O=i(T);if(h.some(R=>i(R)===O))continue}h.push(T)}return n}function _L(e,t=["directives"]){let r=f7(e,void 0,t);return Object.entries(r).map(([n,i])=>i==null?void 0:i.map(a=>({name:n,args:a}))).flat(1/0).filter(Boolean)}d();p();f();var rt=Vi(ve(),1);d();p();f();var rs=Vi(ve(),1);function ns(e){if((0,rs.isNonNullType)(e)){let t=ns(e.ofType);if(t.kind===rs.Kind.NON_NULL_TYPE)throw new Error(`Invalid type node ${sl(e)}. Inner type of non-null type cannot be a non-null type.`);return{kind:rs.Kind.NON_NULL_TYPE,type:t}}else if((0,rs.isListType)(e))return{kind:rs.Kind.LIST_TYPE,type:ns(e.ofType)};return{kind:rs.Kind.NAMED_TYPE,name:{kind:rs.Kind.NAME,value:e.name}}}d();p();f();var wn=Vi(ve(),1);d();p();f();var yo=Vi(ve(),1);function Ad(e){if(e===null)return{kind:yo.Kind.NULL};if(e===void 0)return null;if(Array.isArray(e)){let t=[];for(let r of e){let n=Ad(r);n!=null&&t.push(n)}return{kind:yo.Kind.LIST,values:t}}if(typeof e=="object"){if(e!=null&&e.toJSON)return Ad(e.toJSON());let t=[];for(let r in e){let n=e[r],i=Ad(n);i&&t.push({kind:yo.Kind.OBJECT_FIELD,name:{kind:yo.Kind.NAME,value:r},value:i})}return{kind:yo.Kind.OBJECT,fields:t}}if(typeof e=="boolean")return{kind:yo.Kind.BOOLEAN,value:e};if(typeof e=="bigint")return{kind:yo.Kind.INT,value:String(e)};if(typeof e=="number"&&isFinite(e)){let t=String(e);return jKe.test(t)?{kind:yo.Kind.INT,value:t}:{kind:yo.Kind.FLOAT,value:t}}if(typeof e=="string")return{kind:yo.Kind.STRING,value:e};throw new TypeError(`Cannot convert value to AST: ${e}.`)}var jKe=/^-?(?:0|[1-9][0-9]*)$/;function ul(e,t){if((0,wn.isNonNullType)(t)){let r=ul(e,t.ofType);return(r==null?void 0:r.kind)===wn.Kind.NULL?null:r}if(e===null)return{kind:wn.Kind.NULL};if(e===void 0)return null;if((0,wn.isListType)(t)){let r=t.ofType;if(u7(e)){let n=[];for(let i of e){let a=ul(i,r);a!=null&&n.push(a)}return{kind:wn.Kind.LIST,values:n}}return ul(e,r)}if((0,wn.isInputObjectType)(t)){if(!c7(e))return null;let r=[];for(let n of Object.values(t.getFields())){let i=ul(e[n.name],n.type);i&&r.push({kind:wn.Kind.OBJECT_FIELD,name:{kind:wn.Kind.NAME,value:n.name},value:i})}return{kind:wn.Kind.OBJECT,fields:r}}if((0,wn.isLeafType)(t)){let r=t.serialize(e);return r==null?null:(0,wn.isEnumType)(t)?{kind:wn.Kind.ENUM,value:r}:t.name==="ID"&&typeof r=="string"&&VKe.test(r)?{kind:wn.Kind.INT,value:r}:Ad(r)}console.assert(!1,"Unexpected input type: "+sl(t))}var VKe=/^-?(?:0|[1-9][0-9]*)$/;d();p();f();var p7=Vi(ve(),1);function Xi(e){var t;if((t=e.astNode)!=null&&t.description)return G(q({},e.astNode.description),{block:!0});if(e.description)return{kind:p7.Kind.STRING,value:e.description,block:!0}}d();p();f();var P0t=Pp(function(t){let r=KKe(t);return new Set([...r].map(n=>n.name))}),KKe=Pp(function(t){let r=SL(t);return new Set(r.values())}),SL=Pp(function(t){let r=new Map,n=t.getQueryType();n&&r.set("query",n);let i=t.getMutationType();i&&r.set("mutation",i);let a=t.getSubscriptionType();return a&&r.set("subscription",a),r});function $Ke(e,t={}){let r=t.pathToDirectivesInExtensions,n=e.getTypeMap(),i=GKe(e,r),a=i!=null?[i]:[],o=e.getDirectives();for(let u of o)(0,rt.isSpecifiedDirective)(u)||a.push(QKe(u,e,r));for(let u in n){let l=n[u],m=(0,rt.isSpecifiedScalarType)(l),h=(0,rt.isIntrospectionType)(l);if(!(m||h))if((0,rt.isObjectType)(l))a.push(YKe(l,e,r));else if((0,rt.isInterfaceType)(l))a.push(JKe(l,e,r));else if((0,rt.isUnionType)(l))a.push(zKe(l,e,r));else if((0,rt.isInputObjectType)(l))a.push(HKe(l,e,r));else if((0,rt.isEnumType)(l))a.push(WKe(l,e,r));else if((0,rt.isScalarType)(l))a.push(XKe(l,e,r));else throw new Error(`Unknown type ${l}.`)}return{kind:rt.Kind.DOCUMENT,definitions:a}}function m7(e,t={}){let r=$Ke(e,t);return(0,rt.print)(r)}function GKe(e,t){let r=new Map([["query",void 0],["mutation",void 0],["subscription",void 0]]),n=[];if(e.astNode!=null&&n.push(e.astNode),e.extensionASTNodes!=null)for(let m of e.extensionASTNodes)n.push(m);for(let m of n)if(m.operationTypes)for(let h of m.operationTypes)r.set(h.operation,h);let i=SL(e);for(let[m,h]of r){let N=i.get(m);if(N!=null){let T=ns(N);h!=null?h.type=T:r.set(m,{kind:rt.Kind.OPERATION_TYPE_DEFINITION,operation:m,type:T})}}let a=[...r.values()].filter(a7),o=is(e,e,t);if(!a.length&&!o.length)return null;let u={kind:a.length?rt.Kind.SCHEMA_DEFINITION:rt.Kind.SCHEMA_EXTENSION,operationTypes:a,directives:o},l=Xi(e);return l&&(u.description=l),u}function QKe(e,t,r){var n,i;return{kind:rt.Kind.DIRECTIVE_DEFINITION,description:Xi(e),name:{kind:rt.Kind.NAME,value:e.name},arguments:(n=e.args)==null?void 0:n.map(a=>h7(a,t,r)),repeatable:e.isRepeatable,locations:((i=e.locations)==null?void 0:i.map(a=>({kind:rt.Kind.NAME,value:a})))||[]}}function is(e,t,r){let n=[],i=_L(e,r),a;i!=null&&(a=N7(t,i));let o=null,u=null,l=null;if(a!=null&&(n=a.filter(m=>rt.specifiedDirectives.every(h=>h.name!==m.name.value)),o=a.find(m=>m.name.value==="deprecated"),u=a.find(m=>m.name.value==="specifiedBy"),l=a.find(m=>m.name.value==="oneOf")),e.deprecationReason!=null&&o==null&&(o=t$e(e.deprecationReason)),e.specifiedByUrl!=null||e.specifiedByURL!=null&&u==null){let h={url:e.specifiedByUrl||e.specifiedByURL};u=qy("specifiedBy",h)}return e.isOneOf&&l==null&&(l=qy("oneOf")),o!=null&&n.push(o),u!=null&&n.push(u),l!=null&&n.push(l),n}function h7(e,t,r){var n;return{kind:rt.Kind.INPUT_VALUE_DEFINITION,description:Xi(e),name:{kind:rt.Kind.NAME,value:e.name},type:ns(e.type),defaultValue:e.defaultValue!==void 0&&(n=ul(e.defaultValue,e.type))!=null?n:void 0,directives:is(e,t,r)}}function YKe(e,t,r){return{kind:rt.Kind.OBJECT_TYPE_DEFINITION,description:Xi(e),name:{kind:rt.Kind.NAME,value:e.name},fields:Object.values(e.getFields()).map(n=>y7(n,t,r)),interfaces:Object.values(e.getInterfaces()).map(n=>ns(n)),directives:is(e,t,r)}}function JKe(e,t,r){let n={kind:rt.Kind.INTERFACE_TYPE_DEFINITION,description:Xi(e),name:{kind:rt.Kind.NAME,value:e.name},fields:Object.values(e.getFields()).map(i=>y7(i,t,r)),directives:is(e,t,r)};return"getInterfaces"in e&&(n.interfaces=Object.values(e.getInterfaces()).map(i=>ns(i))),n}function zKe(e,t,r){return{kind:rt.Kind.UNION_TYPE_DEFINITION,description:Xi(e),name:{kind:rt.Kind.NAME,value:e.name},directives:is(e,t,r),types:e.getTypes().map(n=>ns(n))}}function HKe(e,t,r){return{kind:rt.Kind.INPUT_OBJECT_TYPE_DEFINITION,description:Xi(e),name:{kind:rt.Kind.NAME,value:e.name},fields:Object.values(e.getFields()).map(n=>ZKe(n,t,r)),directives:is(e,t,r)}}function WKe(e,t,r){return{kind:rt.Kind.ENUM_TYPE_DEFINITION,description:Xi(e),name:{kind:rt.Kind.NAME,value:e.name},values:Object.values(e.getValues()).map(n=>e$e(n,t,r)),directives:is(e,t,r)}}function XKe(e,t,r){let n=_L(e,r),i=N7(t,n),a=e.specifiedByUrl||e.specifiedByURL;if(a&&!i.some(o=>o.name.value==="specifiedBy")){let o={url:a};i.push(qy("specifiedBy",o))}return{kind:rt.Kind.SCALAR_TYPE_DEFINITION,description:Xi(e),name:{kind:rt.Kind.NAME,value:e.name},directives:i}}function y7(e,t,r){return{kind:rt.Kind.FIELD_DEFINITION,description:Xi(e),name:{kind:rt.Kind.NAME,value:e.name},arguments:e.args.map(n=>h7(n,t,r)),type:ns(e.type),directives:is(e,t,r)}}function ZKe(e,t,r){var n;return{kind:rt.Kind.INPUT_VALUE_DEFINITION,description:Xi(e),name:{kind:rt.Kind.NAME,value:e.name},type:ns(e.type),directives:is(e,t,r),defaultValue:(n=ul(e.defaultValue,e.type))!=null?n:void 0}}function e$e(e,t,r){return{kind:rt.Kind.ENUM_VALUE_DEFINITION,description:Xi(e),name:{kind:rt.Kind.NAME,value:e.name},directives:is(e,t,r)}}function t$e(e){return qy("deprecated",{reason:e},rt.GraphQLDeprecatedDirective)}function qy(e,t,r){let n=[];for(let i in t){let a=t[i],o;if(r!=null){let u=r.args.find(l=>l.name===i);u&&(o=ul(a,u.type))}o==null&&(o=Ad(a)),o!=null&&n.push({kind:rt.Kind.ARGUMENT,name:{kind:rt.Kind.NAME,value:i},value:o})}return{kind:rt.Kind.DIRECTIVE,name:{kind:rt.Kind.NAME,value:e},arguments:n}}function N7(e,t){let r=[];for(let{name:n,args:i}of t){let a=e==null?void 0:e.getDirective(n);r.push(qy(n,i,a))}return r}var Mp=Vi(e_(),1);d();p();f();d();p();f();d();p();f();d();p();f();d();p();f();d();p();f();function Ir(e,t){if(!e)throw new Error(t)}var r$e=34028234663852886e22,n$e=-34028234663852886e22,i$e=4294967295,a$e=2147483647,o$e=-2147483648;function Fp(e){if(typeof e!="number")throw new Error("invalid int 32: "+typeof e);if(!Number.isInteger(e)||e>a$e||ei$e||e<0)throw new Error("invalid uint 32: "+e)}function n_(e){if(typeof e!="number")throw new Error("invalid float 32: "+typeof e);if(Number.isFinite(e)&&(e>r$e||e({no:i.no,name:i.name,localName:e[i.no]})),n)}function DL(e,t,r){let n=Object.create(null),i=Object.create(null),a=[];for(let o of t){let u=I7(o);a.push(u),n[o.name]=u,i[o.no]=u}return{typeName:e,values:a,findName(o){return n[o]},findNumber(o){return i[o]}}}function g7(e,t,r){let n={};for(let i of t){let a=I7(i);n[a.localName]=a.no,n[a.no]=a.localName}return OL(n,e,t,r),n}function I7(e){return"localName"in e?e:Object.assign(Object.assign({},e),{localName:e.name})}d();p();f();d();p();f();var Re=class{equals(t){return this.getType().runtime.util.equals(this.getType(),this,t)}clone(){return this.getType().runtime.util.clone(this)}fromBinary(t,r){let n=this.getType(),i=n.runtime.bin,a=i.makeReadOptions(r);return i.readMessage(this,a.readerFactory(t),t.byteLength,a),this}fromJson(t,r){let n=this.getType(),i=n.runtime.json,a=i.makeReadOptions(r);return i.readMessage(n,t,a,this),this}fromJsonString(t,r){let n;try{n=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(n,r)}toBinary(t){let r=this.getType(),n=r.runtime.bin,i=n.makeWriteOptions(t),a=i.writerFactory();return n.writeMessage(this,a,i),a.finish()}toJson(t){let r=this.getType(),n=r.runtime.json,i=n.makeWriteOptions(t);return n.writeMessage(this,i)}toJsonString(t){var r;let n=this.toJson(t);return JSON.stringify(n,null,(r=t==null?void 0:t.prettySpaces)!==null&&r!==void 0?r:0)}toJSON(){return this.toJson({emitDefaultValues:!0})}getType(){return Object.getPrototypeOf(this).constructor}};function v7(e,t,r,n){var i;let a=(i=n==null?void 0:n.localName)!==null&&i!==void 0?i:t.substring(t.lastIndexOf(".")+1),o={[a]:function(u){e.util.initFields(this),e.util.initPartial(u,this)}}[a];return Object.setPrototypeOf(o.prototype,new Re),Object.assign(o,{runtime:e,typeName:t,fields:e.util.newFieldList(r),fromBinary(u,l){return new o().fromBinary(u,l)},fromJson(u,l){return new o().fromJson(u,l)},fromJsonString(u,l){return new o().fromJsonString(u,l)},equals(u,l){return e.util.equals(o,u,l)}}),o}d();p();f();d();p();f();d();p();f();d();p();f();function S7(){let e=0,t=0;for(let n=0;n<28;n+=7){let i=this.buf[this.pos++];if(e|=(i&127)<>4,!(r&128))return this.assertBounds(),[e,t];for(let n=3;n<=31;n+=7){let i=this.buf[this.pos++];if(t|=(i&127)<>>a,u=!(!(o>>>7)&&t==0),l=(u?o|128:o)&255;if(r.push(l),!u)return}let n=e>>>28&15|(t&7)<<4,i=!!(t>>3);if(r.push((i?n|128:n)&255),!!i){for(let a=3;a<31;a=a+7){let o=t>>>a,u=!!(o>>>7),l=(u?o|128:o)&255;if(r.push(l),!u)return}r.push(t>>>31&1)}}var i_=4294967296;function bL(e){let t=e[0]==="-";t&&(e=e.slice(1));let r=1e6,n=0,i=0;function a(o,u){let l=Number(e.slice(o,u));i*=r,n=n*r+l,n>=i_&&(i=i+(n/i_|0),n=n%i_)}return a(-24,-18),a(-18,-12),a(-12,-6),a(-6),t?D7(n,i):RL(n,i)}function O7(e,t){let r=RL(e,t),n=r.hi&2147483648;n&&(r=D7(r.lo,r.hi));let i=AL(r.lo,r.hi);return n?"-"+i:i}function AL(e,t){if({lo:e,hi:t}=s$e(e,t),t<=2097151)return String(i_*t+e);let r=e&16777215,n=(e>>>24|t<<8)&16777215,i=t>>16&65535,a=r+n*6777216+i*6710656,o=n+i*8147497,u=i*2,l=1e7;return a>=l&&(o+=Math.floor(a/l),a%=l),o>=l&&(u+=Math.floor(o/l),o%=l),u.toString()+_7(o)+_7(a)}function s$e(e,t){return{lo:e>>>0,hi:t>>>0}}function RL(e,t){return{lo:e|0,hi:t|0}}function D7(e,t){return t=~t,e?e=~e+1:t+=1,RL(e,t)}var _7=e=>{let t=String(e);return"0000000".slice(t.length)+t};function wL(e,t){if(e>=0){for(;e>127;)t.push(e&127|128),e=e>>>7;t.push(e)}else{for(let r=0;r<9;r++)t.push(e&127|128),e=e>>7;t.push(1)}}function b7(){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 r=5;e&128&&r<10;r++)e=this.buf[this.pos++];if(e&128)throw new Error("invalid varint");return this.assertBounds(),t>>>0}function u$e(){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 E!="object"||typeof E.env!="object"||E.env.BUF_BIGINT_DISABLE!=="1")){let i=BigInt("-9223372036854775808"),a=BigInt("9223372036854775807"),o=BigInt("0"),u=BigInt("18446744073709551615");return{zero:BigInt(0),supported:!0,parse(l){let m=typeof l=="bigint"?l:BigInt(l);if(m>a||mu||mIr(/^-?[0-9]+$/.test(i),`int64 invalid: ${i}`),n=i=>Ir(/^[0-9]+$/.test(i),`uint64 invalid: ${i}`);return{zero:"0",supported:!1,parse(i){return typeof i!="string"&&(i=i.toString()),r(i),i},uParse(i){return typeof i!="string"&&(i=i.toString()),n(i),i},enc(i){return typeof i!="string"&&(i=i.toString()),r(i),bL(i)},uEnc(i){return typeof i!="string"&&(i=i.toString()),n(i),bL(i)},dec(i,a){return O7(i,a)},uDec(i,a){return AL(i,a)}}}var ln=u$e();d();p();f();var me;(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"})(me||(me={}));var No;(function(e){e[e.BIGINT=0]="BIGINT",e[e.STRING=1]="STRING"})(No||(No={}));function $s(e,t,r){if(t===r)return!0;if(e==me.BYTES){if(!(t instanceof Uint8Array)||!(r instanceof Uint8Array)||t.length!==r.length)return!1;for(let n=0;n>>0)}raw(t){return this.buf.length&&(this.chunks.push(new Uint8Array(this.buf)),this.buf=[]),this.chunks.push(t),this}uint32(t){for(xy(t);t>127;)this.buf.push(t&127|128),t=t>>>7;return this.buf.push(t),this}int32(t){return Fp(t),wL(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 r=this.textEncoder.encode(t);return this.uint32(r.byteLength),this.raw(r)}float(t){n_(t);let r=new Uint8Array(4);return new DataView(r.buffer).setFloat32(0,t,!0),this.raw(r)}double(t){let r=new Uint8Array(8);return new DataView(r.buffer).setFloat64(0,t,!0),this.raw(r)}fixed32(t){xy(t);let r=new Uint8Array(4);return new DataView(r.buffer).setUint32(0,t,!0),this.raw(r)}sfixed32(t){Fp(t);let r=new Uint8Array(4);return new DataView(r.buffer).setInt32(0,t,!0),this.raw(r)}sint32(t){return Fp(t),t=(t<<1^t>>31)>>>0,wL(t,this.buf),this}sfixed64(t){let r=new Uint8Array(8),n=new DataView(r.buffer),i=ln.enc(t);return n.setInt32(0,i.lo,!0),n.setInt32(4,i.hi,!0),this.raw(r)}fixed64(t){let r=new Uint8Array(8),n=new DataView(r.buffer),i=ln.uEnc(t);return n.setInt32(0,i.lo,!0),n.setInt32(4,i.hi,!0),this.raw(r)}int64(t){let r=ln.enc(t);return a_(r.lo,r.hi,this.buf),this}sint64(t){let r=ln.enc(t),n=r.hi>>31,i=r.lo<<1^n,a=(r.hi<<1|r.lo>>>31)^n;return a_(i,a,this.buf),this}uint64(t){let r=ln.uEnc(t);return a_(r.lo,r.hi,this.buf),this}},u_=class{constructor(t,r){this.varint64=S7,this.uint32=b7,this.buf=t,this.len=t.length,this.pos=0,this.view=new DataView(t.buffer,t.byteOffset,t.byteLength),this.textDecoder=r!=null?r:new TextDecoder}tag(){let t=this.uint32(),r=t>>>3,n=t&7;if(r<=0||n<0||n>5)throw new Error("illegal tag: field no "+r+" wire type "+n);return[r,n]}skip(t,r){let n=this.pos;switch(t){case Zr.Varint:for(;this.buf[this.pos++]&128;);break;case Zr.Bit64:this.pos+=4;case Zr.Bit32:this.pos+=4;break;case Zr.LengthDelimited:let i=this.uint32();this.pos+=i;break;case Zr.StartGroup:for(;;){let[a,o]=this.tag();if(o===Zr.EndGroup){if(r!==void 0&&a!==r)throw new Error("invalid end group tag");break}this.skip(o,a)}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 ln.dec(...this.varint64())}uint64(){return ln.uDec(...this.varint64())}sint64(){let[t,r]=this.varint64(),n=-(t&1);return t=(t>>>1|(r&1)<<31)^n,r=r>>>1^n,ln.dec(t,r)}bool(){let[t,r]=this.varint64();return t!==0||r!==0}fixed32(){return this.view.getUint32((this.pos+=4)-4,!0)}sfixed32(){return this.view.getInt32((this.pos+=4)-4,!0)}fixed64(){return ln.uDec(this.sfixed32(),this.sfixed32())}sfixed64(){return ln.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(),r=this.pos;return this.pos+=t,this.assertBounds(),this.buf.subarray(r,r+t)}string(){return this.textDecoder.decode(this.bytes())}};function A7(e,t,r,n){let i;return{typeName:t,extendee:r,get field(){if(!i){let a=typeof n=="function"?n():n;a.name=t.split(".").pop(),a.jsonName=`[${t}]`,i=e.util.newFieldList([a]).list()[0]}return i},runtime:e}}function c_(e){let t=e.field.localName,r=Object.create(null);return r[t]=c$e(e),[r,()=>r[t]]}function c$e(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 To(t.T,t.L);case"message":let r=t.T,n=new r;return r.fieldWrapper?r.fieldWrapper.unwrapField(n):n;case"map":throw"map fields are not allowed to be extensions"}}function R7(e,t){if(!t.repeated&&(t.kind=="enum"||t.kind=="scalar")){for(let r=e.length-1;r>=0;--r)if(e[r].no==t.no)return[e[r]];return[]}return e.filter(r=>r.no===t.no)}d();p();f();d();p();f();var Gs="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),l_=[];for(let e=0;e>4,o=a,i=2;break;case 2:r[n++]=(o&15)<<4|(a&60)>>2,o=a,i=3;break;case 3:r[n++]=(o&3)<<6|a,i=0;break}}if(i==1)throw Error("invalid base64 string.");return r.subarray(0,n)},enc(e){let t="",r=0,n,i=0;for(let a=0;a>2],i=(n&3)<<4,r=1;break;case 1:t+=Gs[i|n>>4],i=(n&15)<<2,r=2;break;case 2:t+=Gs[i|n>>6],t+=Gs[n&63],r=0;break}return r&&(t+=Gs[i],t+="=",r==1&&(t+="=")),t}};d();p();f();function w7(e,t,r){F7(t,e);let n=t.runtime.bin.makeReadOptions(r),i=R7(e.getType().runtime.bin.listUnknownFields(e),t.field),[a,o]=c_(t);for(let u of i)t.runtime.bin.readField(a,n.readerFactory(u.data),t.field,u.wireType,n);return o()}function P7(e,t,r,n){F7(t,e);let i=t.runtime.bin.makeReadOptions(n),a=t.runtime.bin.makeWriteOptions(n);if(FL(e,t)){let m=e.getType().runtime.bin.listUnknownFields(e).filter(h=>h.no!=t.field.no);e.getType().runtime.bin.discardUnknownFields(e);for(let h of m)e.getType().runtime.bin.onUnknownField(e,h.no,h.wireType,h.data)}let o=a.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,r,o,a);let l=i.readerFactory(o.finish());for(;l.posn.no==t.field.no)}function F7(e,t){Ir(e.extendee.typeName==t.getType().typeName,`extension ${e.typeName} can only be applied to message ${e.extendee.typeName}`)}d();p();f();function d_(e,t){let r=e.localName;if(e.repeated)return t[r].length>0;if(e.oneof)return t[e.oneof.localName].case===r;switch(e.kind){case"enum":case"scalar":return e.opt||e.req?t[r]!==void 0:e.kind=="enum"?t[r]!==e.T.values[0].no:!o_(e.T,t[r]);case"message":return t[r]!==void 0;case"map":return Object.keys(t[r]).length>0}}function LL(e,t){let r=e.localName,n=!e.opt&&!e.req;if(e.repeated)t[r]=[];else if(e.oneof)t[e.oneof.localName]={case:void 0};else switch(e.kind){case"map":t[r]={};break;case"enum":t[r]=n?e.T.values[0].no:void 0;break;case"scalar":t[r]=n?To(e.T,e.L):void 0;break;case"message":t[r]=void 0;break}}d();p();f();d();p();f();function Eo(e,t){if(e===null||typeof e!="object"||!Object.getOwnPropertyNames(Re.prototype).every(n=>n in e&&typeof e[n]=="function"))return!1;let r=e.getType();return r===null||typeof r!="function"||!("typeName"in r)||typeof r.typeName!="string"?!1:t===void 0?!0:r.typeName==t.typeName}function f_(e,t){return Eo(t)||!e.fieldWrapper?t:e.fieldWrapper.wrapField(t)}var fRt={"google.protobuf.DoubleValue":me.DOUBLE,"google.protobuf.FloatValue":me.FLOAT,"google.protobuf.Int64Value":me.INT64,"google.protobuf.UInt64Value":me.UINT64,"google.protobuf.Int32Value":me.INT32,"google.protobuf.UInt32Value":me.UINT32,"google.protobuf.BoolValue":me.BOOL,"google.protobuf.StringValue":me.STRING,"google.protobuf.BytesValue":me.BYTES};var L7={ignoreUnknownFields:!1},C7={emitDefaultValues:!1,enumAsInteger:!1,useProtoFieldName:!1,prettySpaces:0};function l$e(e){return e?Object.assign(Object.assign({},L7),e):L7}function d$e(e){return e?Object.assign(Object.assign({},C7),e):C7}var h_=Symbol(),p_=Symbol();function k7(){return{makeReadOptions:l$e,makeWriteOptions:d$e,readMessage(e,t,r,n){if(t==null||Array.isArray(t)||typeof t!="object")throw new Error(`cannot decode message ${e.typeName} from JSON: ${as(t)}`);n=n!=null?n:new e;let i=new Map,a=r.typeRegistry;for(let[o,u]of Object.entries(t)){let l=e.fields.findJsonName(o);if(l){if(l.oneof){if(u===null&&l.kind=="scalar")continue;let m=i.get(l.oneof);if(m!==void 0)throw new Error(`cannot decode message ${e.typeName} from JSON: multiple keys for oneof "${l.oneof.name}" present: "${m}", "${o}"`);i.set(l.oneof,o)}B7(n,u,l,r,e)}else{let m=!1;if(a!=null&&a.findExtension&&o.startsWith("[")&&o.endsWith("]")){let h=a.findExtension(o.substring(1,o.length-1));if(h&&h.extendee.typeName==e.typeName){m=!0;let[N,T]=c_(h);B7(N,u,h.field,r,h),P7(n,h,T(),r)}}if(!m&&!r.ignoreUnknownFields)throw new Error(`cannot decode message ${e.typeName} from JSON: key "${o}" is unknown`)}}return n},writeMessage(e,t){let r=e.getType(),n={},i;try{for(i of r.fields.byNumber()){if(!d_(i,e)){if(i.req)throw"required field not set";if(!t.emitDefaultValues||!p$e(i))continue}let o=i.oneof?e[i.oneof.localName].value:e[i.localName],u=U7(i,o,t);u!==void 0&&(n[t.useProtoFieldName?i.name:i.jsonName]=u)}let a=t.typeRegistry;if(a!=null&&a.findExtensionFor)for(let o of r.runtime.bin.listUnknownFields(e)){let u=a.findExtensionFor(r.typeName,o.no);if(u&&FL(e,u)){let l=w7(e,u,t),m=U7(u.field,l,t);m!==void 0&&(n[u.field.jsonName]=m)}}}catch(a){let o=i?`cannot encode field ${r.typeName}.${i.name} to JSON`:`cannot encode message ${r.typeName} to JSON`,u=a instanceof Error?a.message:String(a);throw new Error(o+(u.length>0?`: ${u}`:""))}return n},readScalar(e,t,r){return My(e,t,r!=null?r:No.BIGINT,!0)},writeScalar(e,t,r){if(t!==void 0&&(r||o_(e,t)))return m_(e,t)},debug:as}}function as(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 B7(e,t,r,n,i){let a=r.localName;if(r.repeated){if(Ir(r.kind!="map"),t===null)return;if(!Array.isArray(t))throw new Error(`cannot decode field ${i.typeName}.${r.name} from JSON: ${as(t)}`);let o=e[a];for(let u of t){if(u===null)throw new Error(`cannot decode field ${i.typeName}.${r.name} from JSON: ${as(u)}`);switch(r.kind){case"message":o.push(r.T.fromJson(u,n));break;case"enum":let l=CL(r.T,u,n.ignoreUnknownFields,!0);l!==p_&&o.push(l);break;case"scalar":try{o.push(My(r.T,u,r.L,!0))}catch(m){let h=`cannot decode field ${i.typeName}.${r.name} from JSON: ${as(u)}`;throw m instanceof Error&&m.message.length>0&&(h+=`: ${m.message}`),new Error(h)}break}}}else if(r.kind=="map"){if(t===null)return;if(typeof t!="object"||Array.isArray(t))throw new Error(`cannot decode field ${i.typeName}.${r.name} from JSON: ${as(t)}`);let o=e[a];for(let[u,l]of Object.entries(t)){if(l===null)throw new Error(`cannot decode field ${i.typeName}.${r.name} from JSON: map value null`);let m;try{m=f$e(r.K,u)}catch(h){let N=`cannot decode map key for field ${i.typeName}.${r.name} from JSON: ${as(t)}`;throw h instanceof Error&&h.message.length>0&&(N+=`: ${h.message}`),new Error(N)}switch(r.V.kind){case"message":o[m]=r.V.T.fromJson(l,n);break;case"enum":let h=CL(r.V.T,l,n.ignoreUnknownFields,!0);h!==p_&&(o[m]=h);break;case"scalar":try{o[m]=My(r.V.T,l,No.BIGINT,!0)}catch(N){let T=`cannot decode map value for field ${i.typeName}.${r.name} from JSON: ${as(t)}`;throw N instanceof Error&&N.message.length>0&&(T+=`: ${N.message}`),new Error(T)}break}}}else switch(r.oneof&&(e=e[r.oneof.localName]={case:a},a="value"),r.kind){case"message":let o=r.T;if(t===null&&o.typeName!="google.protobuf.Value")return;let u=e[a];Eo(u)?u.fromJson(t,n):(e[a]=u=o.fromJson(t,n),o.fieldWrapper&&!r.oneof&&(e[a]=o.fieldWrapper.unwrapField(u)));break;case"enum":let l=CL(r.T,t,n.ignoreUnknownFields,!1);switch(l){case h_:LL(r,e);break;case p_:break;default:e[a]=l;break}break;case"scalar":try{let m=My(r.T,t,r.L,!1);switch(m){case h_:LL(r,e);break;default:e[a]=m;break}}catch(m){let h=`cannot decode field ${i.typeName}.${r.name} from JSON: ${as(t)}`;throw m instanceof Error&&m.message.length>0&&(h+=`: ${m.message}`),new Error(h)}break}}function f$e(e,t){if(e===me.BOOL)switch(t){case"true":t=!0;break;case"false":t=!1;break}return My(e,t,No.BIGINT,!0).toString()}function My(e,t,r,n){if(t===null)return n?To(e,r):h_;switch(e){case me.DOUBLE:case me.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==me.FLOAT&&n_(i),i;case me.INT32:case me.FIXED32:case me.SFIXED32:case me.SINT32:case me.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==me.UINT32||e==me.FIXED32?xy(a):Fp(a),a;case me.INT64:case me.SFIXED64:case me.SINT64:if(typeof t!="number"&&typeof t!="string")break;let o=ln.parse(t);return r?o.toString():o;case me.FIXED64:case me.UINT64:if(typeof t!="number"&&typeof t!="string")break;let u=ln.uParse(t);return r?u.toString():u;case me.BOOL:if(typeof t!="boolean")break;return t;case me.STRING:if(typeof t!="string")break;try{encodeURIComponent(t)}catch(l){throw new Error("invalid UTF8")}return t;case me.BYTES:if(t==="")return new Uint8Array(0);if(typeof t!="string")break;return PL.dec(t)}throw new Error}function CL(e,t,r,n){if(t===null)return e.typeName=="google.protobuf.NullValue"?0:n?e.values[0].no:h_;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(r)return p_;break}throw new Error(`cannot decode enum ${e.typeName} from JSON: ${as(t)}`)}function p$e(e){return e.repeated||e.kind=="map"?!0:!(e.oneof||e.kind=="message"||e.opt||e.req)}function U7(e,t,r){if(e.kind=="map"){Ir(typeof t=="object"&&t!=null);let n={},i=Object.entries(t);switch(e.V.kind){case"scalar":for(let[o,u]of i)n[o.toString()]=m_(e.V.T,u);break;case"message":for(let[o,u]of i)n[o.toString()]=u.toJson(r);break;case"enum":let a=e.V.T;for(let[o,u]of i)n[o.toString()]=BL(a,u,r.enumAsInteger);break}return r.emitDefaultValues||i.length>0?n:void 0}if(e.repeated){Ir(Array.isArray(t));let n=[];switch(e.kind){case"scalar":for(let i=0;i0?n:void 0}switch(e.kind){case"scalar":return m_(e.T,t);case"enum":return BL(e.T,t,r.enumAsInteger);case"message":return f_(e.T,t).toJson(r)}}function BL(e,t,r){var n;if(Ir(typeof t=="number"),e.typeName=="google.protobuf.NullValue")return null;if(r)return t;let i=e.findNumber(t);return(n=i==null?void 0:i.name)!==null&&n!==void 0?n:t}function m_(e,t){switch(e){case me.INT32:case me.SFIXED32:case me.SINT32:case me.FIXED32:case me.UINT32:return Ir(typeof t=="number"),t;case me.FLOAT:case me.DOUBLE:return Ir(typeof t=="number"),Number.isNaN(t)?"NaN":t===Number.POSITIVE_INFINITY?"Infinity":t===Number.NEGATIVE_INFINITY?"-Infinity":t;case me.STRING:return Ir(typeof t=="string"),t;case me.BOOL:return Ir(typeof t=="boolean"),t;case me.UINT64:case me.FIXED64:case me.INT64:case me.SFIXED64:case me.SINT64:return Ir(typeof t=="bigint"||typeof t=="string"||typeof t=="number"),t.toString();case me.BYTES:return Ir(t instanceof Uint8Array),PL.enc(t)}}d();p();f();var Lp=Symbol("@bufbuild/protobuf/unknown-fields"),q7={readUnknownFields:!0,readerFactory:e=>new u_(e)},x7={writeUnknownFields:!0,writerFactory:()=>new s_};function m$e(e){return e?Object.assign(Object.assign({},q7),e):q7}function h$e(e){return e?Object.assign(Object.assign({},x7),e):x7}function K7(){return{makeReadOptions:m$e,makeWriteOptions:h$e,listUnknownFields(e){var t;return(t=e[Lp])!==null&&t!==void 0?t:[]},discardUnknownFields(e){delete e[Lp]},writeUnknownFields(e,t){let n=e[Lp];if(n)for(let i of n)t.tag(i.no,i.wireType).raw(i.data)},onUnknownField(e,t,r,n){let i=e;Array.isArray(i[Lp])||(i[Lp]=[]),i[Lp].push({no:t,wireType:r,data:n})},readMessage(e,t,r,n,i){let a=e.getType(),o=i?t.len:t.pos+r,u,l;for(;t.pos0&&(l=N$e),a){let T=e[o];if(n==Zr.LengthDelimited&&u!=me.STRING&&u!=me.BYTES){let R=t.uint32()+t.pos;for(;t.posEo(T,N)?T:new N(T));else{let T=o[i];N.fieldWrapper?N.typeName==="google.protobuf.BytesValue"?a[i]=Vy(T):a[i]=T:a[i]=Eo(T,N)?T:new N(T)}break}}},equals(e,t,r){return t===r?!0:!t||!r?!1:e.fields.byMember().every(n=>{let i=t[n.localName],a=r[n.localName];if(n.repeated){if(i.length!==a.length)return!1;switch(n.kind){case"message":return i.every((o,u)=>n.T.equals(o,a[u]));case"scalar":return i.every((o,u)=>$s(n.T,o,a[u]));case"enum":return i.every((o,u)=>$s(me.INT32,o,a[u]))}throw new Error(`repeated cannot contain ${n.kind}`)}switch(n.kind){case"message":return n.T.equals(i,a);case"enum":return $s(me.INT32,i,a);case"scalar":return $s(n.T,i,a);case"oneof":if(i.case!==a.case)return!1;let o=n.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 $s(me.INT32,i.value,a.value);case"scalar":return $s(o.T,i.value,a.value)}throw new Error(`oneof cannot contain ${o.kind}`);case"map":let u=Object.keys(i).concat(Object.keys(a));switch(n.V.kind){case"message":let l=n.V.T;return u.every(h=>l.equals(i[h],a[h]));case"enum":return u.every(h=>$s(me.INT32,i[h],a[h]));case"scalar":let m=n.V.T;return u.every(h=>$s(m,i[h],a[h]))}break}})},clone(e){let t=e.getType(),r=new t,n=r;for(let i of t.fields.byMember()){let a=e[i.localName],o;if(i.repeated)o=a.map(T_);else if(i.kind=="map"){o=n[i.localName];for(let[u,l]of Object.entries(a))o[u]=T_(l)}else i.kind=="oneof"?o=i.findField(a.case)?{case:a.case,value:T_(a.value)}:{case:void 0}:o=T_(a);n[i.localName]=o}for(let i of t.runtime.bin.listUnknownFields(e))t.runtime.bin.onUnknownField(n,i.no,i.wireType,i.data);return r}}}function T_(e){if(e===void 0)return e;if(Eo(e))return e.clone();if(e instanceof Uint8Array){let t=new Uint8Array(e.byteLength);return t.set(e),t}return e}function Vy(e){return e instanceof Uint8Array?e:new Uint8Array(e)}function Q7(e,t,r){return{syntax:e,json:k7(),bin:K7(),util:Object.assign(Object.assign({},G7()),{newFieldList:t,initFields:r}),makeMessageType(n,i,a){return v7(this,n,i,a)},makeEnum:g7,makeEnumType:DL,getEnumType:E7,makeExtension(n,i,a){return A7(this,n,i,a)}}}d();p();f();var E_=class{constructor(t,r){this._fields=t,this._normalizer=r}findJsonName(t){if(!this.jsonNames){let r={};for(let n of this.list())r[n.jsonName]=r[n.name]=n;this.jsonNames=r}return this.jsonNames[t]}find(t){if(!this.numbers){let r={};for(let n of this.list())r[n.no]=n;this.numbers=r}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,r)=>t.no-r.no)),this.numbersAsc}byMember(){if(!this.members){this.members=[];let t=this.members,r;for(let n of this.list())n.oneof?n.oneof!==r&&(r=n.oneof,t.push(r)):t.push(n)}return this.members}};d();p();f();d();p();f();d();p();f();function UL(e,t){let r=z7(e);return t?r:_$e(v$e(r))}function Y7(e){return UL(e,!1)}var J7=z7;function z7(e){let t=!1,r=[];for(let n=0;n`${e}$`,v$e=e=>I$e.has(e)?H7(e):e,_$e=e=>g$e.has(e)?H7(e):e;var g_=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=Y7(t)}addField(t){Ir(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 r=0;rnew E_(e,t=>W7(t,!0)),e=>{for(let t of e.getType().fields.byMember()){if(t.opt)continue;let r=t.localName,n=e;if(t.repeated){n[r]=[];continue}switch(t.kind){case"oneof":n[r]={case:void 0};break;case"enum":n[r]=0;break;case"map":n[r]={};break;case"scalar":n[r]=To(t.T,t.L);break;case"message":break}}});var Cp;(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"})(Cp||(Cp={}));U.util.setEnumType(Cp,"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 Qs;(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"})(Qs||(Qs={}));U.util.setEnumType(Qs,"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 Ys;(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"})(Ys||(Ys={}));U.util.setEnumType(Ys,"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 sZ=Vi(ve(),1);d();p();f();var kL;(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"})(kL||(kL={}));U.util.setEnumType(kL,"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 wd;(function(e){e[e.OBJECT_FIELD=0]="OBJECT_FIELD",e[e.FIELD_ARGUMENT=1]="FIELD_ARGUMENT"})(wd||(wd={}));U.util.setEnumType(wd,"wg.cosmo.node.v1.ArgumentSource",[{no:0,name:"OBJECT_FIELD"},{no:1,name:"FIELD_ARGUMENT"}]);var cl;(function(e){e[e.STATIC=0]="STATIC",e[e.GRAPHQL=1]="GRAPHQL",e[e.PUBSUB=2]="PUBSUB"})(cl||(cl={}));U.util.setEnumType(cl,"wg.cosmo.node.v1.DataSourceKind",[{no:0,name:"STATIC"},{no:1,name:"GRAPHQL"},{no:2,name:"PUBSUB"}]);var Ky;(function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.RESOLVE=1]="RESOLVE",e[e.REQUIRES=2]="REQUIRES"})(Ky||(Ky={}));U.util.setEnumType(Ky,"wg.cosmo.node.v1.LookupType",[{no:0,name:"LOOKUP_TYPE_UNSPECIFIED"},{no:1,name:"LOOKUP_TYPE_RESOLVE"},{no:2,name:"LOOKUP_TYPE_REQUIRES"}]);var $y;(function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.QUERY=1]="QUERY",e[e.MUTATION=2]="MUTATION",e[e.SUBSCRIPTION=3]="SUBSCRIPTION"})($y||($y={}));U.util.setEnumType($y,"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 oc;(function(e){e[e.PUBLISH=0]="PUBLISH",e[e.REQUEST=1]="REQUEST",e[e.SUBSCRIBE=2]="SUBSCRIBE"})(oc||(oc={}));U.util.setEnumType(oc,"wg.cosmo.node.v1.EventType",[{no:0,name:"PUBLISH"},{no:1,name:"REQUEST"},{no:2,name:"SUBSCRIBE"}]);var ll;(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"})(ll||(ll={}));U.util.setEnumType(ll,"wg.cosmo.node.v1.ConfigurationVariableKind",[{no:0,name:"STATIC_CONFIGURATION_VARIABLE"},{no:1,name:"ENV_CONFIGURATION_VARIABLE"},{no:2,name:"PLACEHOLDER_CONFIGURATION_VARIABLE"}]);var Pd;(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"})(Pd||(Pd={}));U.util.setEnumType(Pd,"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 Js=class Js extends Re{constructor(r){super();S(this,"id","");S(this,"name","");S(this,"routingUrl","");U.util.initPartial(r,this)}static fromBinary(r,n){return new Js().fromBinary(r,n)}static fromJson(r,n){return new Js().fromJson(r,n)}static fromJsonString(r,n){return new Js().fromJsonString(r,n)}static equals(r,n){return U.util.equals(Js,r,n)}};S(Js,"runtime",U),S(Js,"typeName","wg.cosmo.node.v1.Subgraph"),S(Js,"fields",U.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 I_=Js,zs=class zs extends Re{constructor(r){super();S(this,"configByFeatureFlagName",{});U.util.initPartial(r,this)}static fromBinary(r,n){return new zs().fromBinary(r,n)}static fromJson(r,n){return new zs().fromJson(r,n)}static fromJsonString(r,n){return new zs().fromJsonString(r,n)}static equals(r,n){return U.util.equals(zs,r,n)}};S(zs,"runtime",U),S(zs,"typeName","wg.cosmo.node.v1.FeatureFlagRouterExecutionConfigs"),S(zs,"fields",U.util.newFieldList(()=>[{no:1,name:"config_by_feature_flag_name",kind:"map",K:9,V:{kind:"message",T:xL}}]));var qL=zs,Hs=class Hs extends Re{constructor(r){super();S(this,"engineConfig");S(this,"version","");S(this,"subgraphs",[]);U.util.initPartial(r,this)}static fromBinary(r,n){return new Hs().fromBinary(r,n)}static fromJson(r,n){return new Hs().fromJson(r,n)}static fromJsonString(r,n){return new Hs().fromJsonString(r,n)}static equals(r,n){return U.util.equals(Hs,r,n)}};S(Hs,"runtime",U),S(Hs,"typeName","wg.cosmo.node.v1.FeatureFlagRouterExecutionConfig"),S(Hs,"fields",U.util.newFieldList(()=>[{no:1,name:"engine_config",kind:"message",T:Bp},{no:2,name:"version",kind:"scalar",T:9},{no:3,name:"subgraphs",kind:"message",T:I_,repeated:!0}]));var xL=Hs,Ws=class Ws extends Re{constructor(r){super();S(this,"engineConfig");S(this,"version","");S(this,"subgraphs",[]);S(this,"featureFlagConfigs");S(this,"compatibilityVersion","");U.util.initPartial(r,this)}static fromBinary(r,n){return new Ws().fromBinary(r,n)}static fromJson(r,n){return new Ws().fromJson(r,n)}static fromJsonString(r,n){return new Ws().fromJsonString(r,n)}static equals(r,n){return U.util.equals(Ws,r,n)}};S(Ws,"runtime",U),S(Ws,"typeName","wg.cosmo.node.v1.RouterConfig"),S(Ws,"fields",U.util.newFieldList(()=>[{no:1,name:"engine_config",kind:"message",T:Bp},{no:2,name:"version",kind:"scalar",T:9},{no:3,name:"subgraphs",kind:"message",T:I_,repeated:!0},{no:4,name:"feature_flag_configs",kind:"message",T:qL,opt:!0},{no:5,name:"compatibility_version",kind:"scalar",T:9}]));var Gy=Ws,Xs=class Xs extends Re{constructor(r){super();S(this,"code",Cp.OK);S(this,"details");U.util.initPartial(r,this)}static fromBinary(r,n){return new Xs().fromBinary(r,n)}static fromJson(r,n){return new Xs().fromJson(r,n)}static fromJsonString(r,n){return new Xs().fromJsonString(r,n)}static equals(r,n){return U.util.equals(Xs,r,n)}};S(Xs,"runtime",U),S(Xs,"typeName","wg.cosmo.node.v1.Response"),S(Xs,"fields",U.util.newFieldList(()=>[{no:1,name:"code",kind:"enum",T:U.getEnumType(Cp)},{no:2,name:"details",kind:"scalar",T:9,opt:!0}]));var ML=Xs,Zs=class Zs extends Re{constructor(r){super();S(this,"code",0);S(this,"message","");U.util.initPartial(r,this)}static fromBinary(r,n){return new Zs().fromBinary(r,n)}static fromJson(r,n){return new Zs().fromJson(r,n)}static fromJsonString(r,n){return new Zs().fromJsonString(r,n)}static equals(r,n){return U.util.equals(Zs,r,n)}};S(Zs,"runtime",U),S(Zs,"typeName","wg.cosmo.node.v1.ResponseStatus"),S(Zs,"fields",U.util.newFieldList(()=>[{no:1,name:"code",kind:"scalar",T:5},{no:2,name:"message",kind:"scalar",T:9}]));var X7=Zs,eu=class eu extends Re{constructor(r){super();S(this,"accountLimits");S(this,"graphPublicKey","");U.util.initPartial(r,this)}static fromBinary(r,n){return new eu().fromBinary(r,n)}static fromJson(r,n){return new eu().fromJson(r,n)}static fromJsonString(r,n){return new eu().fromJsonString(r,n)}static equals(r,n){return U.util.equals(eu,r,n)}};S(eu,"runtime",U),S(eu,"typeName","wg.cosmo.node.v1.RegistrationInfo"),S(eu,"fields",U.util.newFieldList(()=>[{no:1,name:"account_limits",kind:"message",T:VL},{no:2,name:"graph_public_key",kind:"scalar",T:9}]));var jL=eu,tu=class tu extends Re{constructor(r){super();S(this,"traceSamplingRate",0);U.util.initPartial(r,this)}static fromBinary(r,n){return new tu().fromBinary(r,n)}static fromJson(r,n){return new tu().fromJson(r,n)}static fromJsonString(r,n){return new tu().fromJsonString(r,n)}static equals(r,n){return U.util.equals(tu,r,n)}};S(tu,"runtime",U),S(tu,"typeName","wg.cosmo.node.v1.AccountLimits"),S(tu,"fields",U.util.newFieldList(()=>[{no:1,name:"trace_sampling_rate",kind:"scalar",T:2}]));var VL=tu,ru=class ru extends Re{constructor(t){super(),U.util.initPartial(t,this)}static fromBinary(t,r){return new ru().fromBinary(t,r)}static fromJson(t,r){return new ru().fromJson(t,r)}static fromJsonString(t,r){return new ru().fromJsonString(t,r)}static equals(t,r){return U.util.equals(ru,t,r)}};S(ru,"runtime",U),S(ru,"typeName","wg.cosmo.node.v1.SelfRegisterRequest"),S(ru,"fields",U.util.newFieldList(()=>[]));var Z7=ru,nu=class nu extends Re{constructor(r){super();S(this,"response");S(this,"registrationInfo");U.util.initPartial(r,this)}static fromBinary(r,n){return new nu().fromBinary(r,n)}static fromJson(r,n){return new nu().fromJson(r,n)}static fromJsonString(r,n){return new nu().fromJsonString(r,n)}static equals(r,n){return U.util.equals(nu,r,n)}};S(nu,"runtime",U),S(nu,"typeName","wg.cosmo.node.v1.SelfRegisterResponse"),S(nu,"fields",U.util.newFieldList(()=>[{no:1,name:"response",kind:"message",T:ML},{no:2,name:"registrationInfo",kind:"message",T:jL,opt:!0}]));var eZ=nu,iu=class iu extends Re{constructor(r){super();S(this,"defaultFlushInterval",ln.zero);S(this,"datasourceConfigurations",[]);S(this,"fieldConfigurations",[]);S(this,"graphqlSchema","");S(this,"typeConfigurations",[]);S(this,"stringStorage",{});S(this,"graphqlClientSchema");U.util.initPartial(r,this)}static fromBinary(r,n){return new iu().fromBinary(r,n)}static fromJson(r,n){return new iu().fromJson(r,n)}static fromJsonString(r,n){return new iu().fromJsonString(r,n)}static equals(r,n){return U.util.equals(iu,r,n)}};S(iu,"runtime",U),S(iu,"typeName","wg.cosmo.node.v1.EngineConfiguration"),S(iu,"fields",U.util.newFieldList(()=>[{no:1,name:"defaultFlushInterval",kind:"scalar",T:3},{no:2,name:"datasource_configurations",kind:"message",T:Qy,repeated:!0},{no:3,name:"field_configurations",kind:"message",T:Xy,repeated:!0},{no:4,name:"graphqlSchema",kind:"scalar",T:9},{no:5,name:"type_configurations",kind:"message",T:KL,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 Bp=iu,au=class au extends Re{constructor(r){super();S(this,"kind",cl.STATIC);S(this,"rootNodes",[]);S(this,"childNodes",[]);S(this,"overrideFieldPathFromAlias",!1);S(this,"customGraphql");S(this,"customStatic");S(this,"directives",[]);S(this,"requestTimeoutSeconds",ln.zero);S(this,"id","");S(this,"keys",[]);S(this,"provides",[]);S(this,"requires",[]);S(this,"customEvents");S(this,"entityInterfaces",[]);S(this,"interfaceObjects",[]);S(this,"costConfiguration");U.util.initPartial(r,this)}static fromBinary(r,n){return new au().fromBinary(r,n)}static fromJson(r,n){return new au().fromJson(r,n)}static fromJsonString(r,n){return new au().fromJsonString(r,n)}static equals(r,n){return U.util.equals(au,r,n)}};S(au,"runtime",U),S(au,"typeName","wg.cosmo.node.v1.DataSourceConfiguration"),S(au,"fields",U.util.newFieldList(()=>[{no:1,name:"kind",kind:"enum",T:U.getEnumType(cl)},{no:2,name:"root_nodes",kind:"message",T:Up,repeated:!0},{no:3,name:"child_nodes",kind:"message",T:Up,repeated:!0},{no:4,name:"override_field_path_from_alias",kind:"scalar",T:8},{no:5,name:"custom_graphql",kind:"message",T:tN},{no:6,name:"custom_static",kind:"message",T:rC},{no:7,name:"directives",kind:"message",T:nC,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:Rd,repeated:!0},{no:11,name:"provides",kind:"message",T:Rd,repeated:!0},{no:12,name:"requires",kind:"message",T:Rd,repeated:!0},{no:13,name:"custom_events",kind:"message",T:Ld},{no:14,name:"entity_interfaces",kind:"message",T:kp,repeated:!0},{no:15,name:"interface_objects",kind:"message",T:kp,repeated:!0},{no:16,name:"cost_configuration",kind:"message",T:Yy}]));var Qy=au,ou=class ou extends Re{constructor(r){super();S(this,"fieldWeights",[]);S(this,"listSizes",[]);S(this,"typeWeights",{});S(this,"directiveArgumentWeights",{});U.util.initPartial(r,this)}static fromBinary(r,n){return new ou().fromBinary(r,n)}static fromJson(r,n){return new ou().fromJson(r,n)}static fromJsonString(r,n){return new ou().fromJsonString(r,n)}static equals(r,n){return U.util.equals(ou,r,n)}};S(ou,"runtime",U),S(ou,"typeName","wg.cosmo.node.v1.CostConfiguration"),S(ou,"fields",U.util.newFieldList(()=>[{no:1,name:"field_weights",kind:"message",T:Jy,repeated:!0},{no:2,name:"list_sizes",kind:"message",T:zy,repeated:!0},{no:3,name:"type_weights",kind:"map",K:9,V:{kind:"scalar",T:5}},{no:4,name:"directive_argument_weights",kind:"map",K:9,V:{kind:"scalar",T:5}}]));var Yy=ou,su=class su extends Re{constructor(r){super();S(this,"typeName","");S(this,"fieldName","");S(this,"weight");S(this,"argumentWeights",{});S(this,"directiveArgumentWeights",{});U.util.initPartial(r,this)}static fromBinary(r,n){return new su().fromBinary(r,n)}static fromJson(r,n){return new su().fromJson(r,n)}static fromJsonString(r,n){return new su().fromJsonString(r,n)}static equals(r,n){return U.util.equals(su,r,n)}};S(su,"runtime",U),S(su,"typeName","wg.cosmo.node.v1.FieldWeightConfiguration"),S(su,"fields",U.util.newFieldList(()=>[{no:1,name:"type_name",kind:"scalar",T:9},{no:2,name:"field_name",kind:"scalar",T:9},{no:3,name:"weight",kind:"scalar",T:5,opt:!0},{no:4,name:"argument_weights",kind:"map",K:9,V:{kind:"scalar",T:5}},{no:5,name:"directive_argument_weights",kind:"map",K:9,V:{kind:"scalar",T:5}}]));var Jy=su,uu=class uu extends Re{constructor(r){super();S(this,"typeName","");S(this,"fieldName","");S(this,"assumedSize");S(this,"slicingArguments",[]);S(this,"sizedFields",[]);S(this,"requireOneSlicingArgument");U.util.initPartial(r,this)}static fromBinary(r,n){return new uu().fromBinary(r,n)}static fromJson(r,n){return new uu().fromJson(r,n)}static fromJsonString(r,n){return new uu().fromJsonString(r,n)}static equals(r,n){return U.util.equals(uu,r,n)}};S(uu,"runtime",U),S(uu,"typeName","wg.cosmo.node.v1.FieldListSizeConfiguration"),S(uu,"fields",U.util.newFieldList(()=>[{no:1,name:"type_name",kind:"scalar",T:9},{no:2,name:"field_name",kind:"scalar",T:9},{no:3,name:"assumed_size",kind:"scalar",T:5,opt:!0},{no:4,name:"slicing_arguments",kind:"scalar",T:9,repeated:!0},{no:5,name:"sized_fields",kind:"scalar",T:9,repeated:!0},{no:6,name:"require_one_slicing_argument",kind:"scalar",T:8,opt:!0}]));var zy=uu,cu=class cu extends Re{constructor(r){super();S(this,"name","");S(this,"sourceType",wd.OBJECT_FIELD);U.util.initPartial(r,this)}static fromBinary(r,n){return new cu().fromBinary(r,n)}static fromJson(r,n){return new cu().fromJson(r,n)}static fromJsonString(r,n){return new cu().fromJsonString(r,n)}static equals(r,n){return U.util.equals(cu,r,n)}};S(cu,"runtime",U),S(cu,"typeName","wg.cosmo.node.v1.ArgumentConfiguration"),S(cu,"fields",U.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"source_type",kind:"enum",T:U.getEnumType(wd)}]));var Hy=cu,lu=class lu extends Re{constructor(r){super();S(this,"requiredAndScopes",[]);U.util.initPartial(r,this)}static fromBinary(r,n){return new lu().fromBinary(r,n)}static fromJson(r,n){return new lu().fromJson(r,n)}static fromJsonString(r,n){return new lu().fromJsonString(r,n)}static equals(r,n){return U.util.equals(lu,r,n)}};S(lu,"runtime",U),S(lu,"typeName","wg.cosmo.node.v1.Scopes"),S(lu,"fields",U.util.newFieldList(()=>[{no:1,name:"required_and_scopes",kind:"scalar",T:9,repeated:!0}]));var Fd=lu,du=class du extends Re{constructor(r){super();S(this,"requiresAuthentication",!1);S(this,"requiredOrScopes",[]);S(this,"requiredOrScopesByOr",[]);U.util.initPartial(r,this)}static fromBinary(r,n){return new du().fromBinary(r,n)}static fromJson(r,n){return new du().fromJson(r,n)}static fromJsonString(r,n){return new du().fromJsonString(r,n)}static equals(r,n){return U.util.equals(du,r,n)}};S(du,"runtime",U),S(du,"typeName","wg.cosmo.node.v1.AuthorizationConfiguration"),S(du,"fields",U.util.newFieldList(()=>[{no:1,name:"requires_authentication",kind:"scalar",T:8},{no:2,name:"required_or_scopes",kind:"message",T:Fd,repeated:!0},{no:3,name:"required_or_scopes_by_or",kind:"message",T:Fd,repeated:!0}]));var Wy=du,fu=class fu extends Re{constructor(r){super();S(this,"typeName","");S(this,"fieldName","");S(this,"argumentsConfiguration",[]);S(this,"authorizationConfiguration");S(this,"subscriptionFilterCondition");U.util.initPartial(r,this)}static fromBinary(r,n){return new fu().fromBinary(r,n)}static fromJson(r,n){return new fu().fromJson(r,n)}static fromJsonString(r,n){return new fu().fromJsonString(r,n)}static equals(r,n){return U.util.equals(fu,r,n)}};S(fu,"runtime",U),S(fu,"typeName","wg.cosmo.node.v1.FieldConfiguration"),S(fu,"fields",U.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:Hy,repeated:!0},{no:4,name:"authorization_configuration",kind:"message",T:Wy},{no:5,name:"subscription_filter_condition",kind:"message",T:dl,opt:!0}]));var Xy=fu,pu=class pu extends Re{constructor(r){super();S(this,"typeName","");S(this,"renameTo","");U.util.initPartial(r,this)}static fromBinary(r,n){return new pu().fromBinary(r,n)}static fromJson(r,n){return new pu().fromJson(r,n)}static fromJsonString(r,n){return new pu().fromJsonString(r,n)}static equals(r,n){return U.util.equals(pu,r,n)}};S(pu,"runtime",U),S(pu,"typeName","wg.cosmo.node.v1.TypeConfiguration"),S(pu,"fields",U.util.newFieldList(()=>[{no:1,name:"type_name",kind:"scalar",T:9},{no:2,name:"rename_to",kind:"scalar",T:9}]));var KL=pu,mu=class mu extends Re{constructor(r){super();S(this,"typeName","");S(this,"fieldNames",[]);S(this,"externalFieldNames",[]);S(this,"requireFetchReasonsFieldNames",[]);U.util.initPartial(r,this)}static fromBinary(r,n){return new mu().fromBinary(r,n)}static fromJson(r,n){return new mu().fromJson(r,n)}static fromJsonString(r,n){return new mu().fromJsonString(r,n)}static equals(r,n){return U.util.equals(mu,r,n)}};S(mu,"runtime",U),S(mu,"typeName","wg.cosmo.node.v1.TypeField"),S(mu,"fields",U.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 Up=mu,hu=class hu extends Re{constructor(r){super();S(this,"fieldName","");S(this,"typeName","");U.util.initPartial(r,this)}static fromBinary(r,n){return new hu().fromBinary(r,n)}static fromJson(r,n){return new hu().fromJson(r,n)}static fromJsonString(r,n){return new hu().fromJsonString(r,n)}static equals(r,n){return U.util.equals(hu,r,n)}};S(hu,"runtime",U),S(hu,"typeName","wg.cosmo.node.v1.FieldCoordinates"),S(hu,"fields",U.util.newFieldList(()=>[{no:1,name:"field_name",kind:"scalar",T:9},{no:2,name:"type_name",kind:"scalar",T:9}]));var Zy=hu,yu=class yu extends Re{constructor(r){super();S(this,"fieldCoordinatesPath",[]);S(this,"fieldPath",[]);U.util.initPartial(r,this)}static fromBinary(r,n){return new yu().fromBinary(r,n)}static fromJson(r,n){return new yu().fromJson(r,n)}static fromJsonString(r,n){return new yu().fromJsonString(r,n)}static equals(r,n){return U.util.equals(yu,r,n)}};S(yu,"runtime",U),S(yu,"typeName","wg.cosmo.node.v1.FieldSetCondition"),S(yu,"fields",U.util.newFieldList(()=>[{no:1,name:"field_coordinates_path",kind:"message",T:Zy,repeated:!0},{no:2,name:"field_path",kind:"scalar",T:9,repeated:!0}]));var eN=yu,Nu=class Nu extends Re{constructor(r){super();S(this,"typeName","");S(this,"fieldName","");S(this,"selectionSet","");S(this,"disableEntityResolver",!1);S(this,"conditions",[]);U.util.initPartial(r,this)}static fromBinary(r,n){return new Nu().fromBinary(r,n)}static fromJson(r,n){return new Nu().fromJson(r,n)}static fromJsonString(r,n){return new Nu().fromJsonString(r,n)}static equals(r,n){return U.util.equals(Nu,r,n)}};S(Nu,"runtime",U),S(Nu,"typeName","wg.cosmo.node.v1.RequiredField"),S(Nu,"fields",U.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:eN,repeated:!0}]));var Rd=Nu,Tu=class Tu extends Re{constructor(r){super();S(this,"interfaceTypeName","");S(this,"concreteTypeNames",[]);U.util.initPartial(r,this)}static fromBinary(r,n){return new Tu().fromBinary(r,n)}static fromJson(r,n){return new Tu().fromJson(r,n)}static fromJsonString(r,n){return new Tu().fromJsonString(r,n)}static equals(r,n){return U.util.equals(Tu,r,n)}};S(Tu,"runtime",U),S(Tu,"typeName","wg.cosmo.node.v1.EntityInterfaceConfiguration"),S(Tu,"fields",U.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 kp=Tu,Eu=class Eu extends Re{constructor(r){super();S(this,"url");S(this,"method",Pd.GET);S(this,"header",{});S(this,"body");S(this,"query",[]);S(this,"urlEncodeBody",!1);S(this,"mtls");S(this,"baseUrl");S(this,"path");S(this,"httpProxyUrl");U.util.initPartial(r,this)}static fromBinary(r,n){return new Eu().fromBinary(r,n)}static fromJson(r,n){return new Eu().fromJson(r,n)}static fromJsonString(r,n){return new Eu().fromJsonString(r,n)}static equals(r,n){return U.util.equals(Eu,r,n)}};S(Eu,"runtime",U),S(Eu,"typeName","wg.cosmo.node.v1.FetchConfiguration"),S(Eu,"fields",U.util.newFieldList(()=>[{no:1,name:"url",kind:"message",T:yi},{no:2,name:"method",kind:"enum",T:U.getEnumType(Pd)},{no:3,name:"header",kind:"map",K:9,V:{kind:"message",T:aC}},{no:4,name:"body",kind:"message",T:yi},{no:5,name:"query",kind:"message",T:iC,repeated:!0},{no:7,name:"url_encode_body",kind:"scalar",T:8},{no:8,name:"mtls",kind:"message",T:oC},{no:9,name:"base_url",kind:"message",T:yi},{no:10,name:"path",kind:"message",T:yi},{no:11,name:"http_proxy_url",kind:"message",T:yi,opt:!0}]));var $L=Eu,gu=class gu extends Re{constructor(r){super();S(this,"statusCode",ln.zero);S(this,"typeName","");S(this,"injectStatusCodeIntoBody",!1);U.util.initPartial(r,this)}static fromBinary(r,n){return new gu().fromBinary(r,n)}static fromJson(r,n){return new gu().fromJson(r,n)}static fromJsonString(r,n){return new gu().fromJsonString(r,n)}static equals(r,n){return U.util.equals(gu,r,n)}};S(gu,"runtime",U),S(gu,"typeName","wg.cosmo.node.v1.StatusCodeTypeMapping"),S(gu,"fields",U.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 tZ=gu,Iu=class Iu extends Re{constructor(r){super();S(this,"fetch");S(this,"subscription");S(this,"federation");S(this,"upstreamSchema");S(this,"customScalarTypeFields",[]);S(this,"grpc");U.util.initPartial(r,this)}static fromBinary(r,n){return new Iu().fromBinary(r,n)}static fromJson(r,n){return new Iu().fromJson(r,n)}static fromJsonString(r,n){return new Iu().fromJsonString(r,n)}static equals(r,n){return U.util.equals(Iu,r,n)}};S(Iu,"runtime",U),S(Iu,"typeName","wg.cosmo.node.v1.DataSourceCustom_GraphQL"),S(Iu,"fields",U.util.newFieldList(()=>[{no:1,name:"fetch",kind:"message",T:$L},{no:2,name:"subscription",kind:"message",T:sC},{no:3,name:"federation",kind:"message",T:uC},{no:4,name:"upstream_schema",kind:"message",T:uN},{no:6,name:"custom_scalar_type_fields",kind:"message",T:cC,repeated:!0},{no:7,name:"grpc",kind:"message",T:qp}]));var tN=Iu,vu=class vu extends Re{constructor(r){super();S(this,"mapping");S(this,"protoSchema","");S(this,"plugin");U.util.initPartial(r,this)}static fromBinary(r,n){return new vu().fromBinary(r,n)}static fromJson(r,n){return new vu().fromJson(r,n)}static fromJsonString(r,n){return new vu().fromJsonString(r,n)}static equals(r,n){return U.util.equals(vu,r,n)}};S(vu,"runtime",U),S(vu,"typeName","wg.cosmo.node.v1.GRPCConfiguration"),S(vu,"fields",U.util.newFieldList(()=>[{no:1,name:"mapping",kind:"message",T:QL},{no:2,name:"proto_schema",kind:"scalar",T:9},{no:3,name:"plugin",kind:"message",T:rN}]));var qp=vu,_u=class _u extends Re{constructor(r){super();S(this,"repository","");S(this,"reference","");U.util.initPartial(r,this)}static fromBinary(r,n){return new _u().fromBinary(r,n)}static fromJson(r,n){return new _u().fromJson(r,n)}static fromJsonString(r,n){return new _u().fromJsonString(r,n)}static equals(r,n){return U.util.equals(_u,r,n)}};S(_u,"runtime",U),S(_u,"typeName","wg.cosmo.node.v1.ImageReference"),S(_u,"fields",U.util.newFieldList(()=>[{no:1,name:"repository",kind:"scalar",T:9},{no:2,name:"reference",kind:"scalar",T:9}]));var GL=_u,Su=class Su extends Re{constructor(r){super();S(this,"name","");S(this,"version","");S(this,"imageReference");U.util.initPartial(r,this)}static fromBinary(r,n){return new Su().fromBinary(r,n)}static fromJson(r,n){return new Su().fromJson(r,n)}static fromJsonString(r,n){return new Su().fromJsonString(r,n)}static equals(r,n){return U.util.equals(Su,r,n)}};S(Su,"runtime",U),S(Su,"typeName","wg.cosmo.node.v1.PluginConfiguration"),S(Su,"fields",U.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:GL,opt:!0}]));var rN=Su,Ou=class Ou extends Re{constructor(r){super();S(this,"enabled",!1);U.util.initPartial(r,this)}static fromBinary(r,n){return new Ou().fromBinary(r,n)}static fromJson(r,n){return new Ou().fromJson(r,n)}static fromJsonString(r,n){return new Ou().fromJsonString(r,n)}static equals(r,n){return U.util.equals(Ou,r,n)}};S(Ou,"runtime",U),S(Ou,"typeName","wg.cosmo.node.v1.SSLConfiguration"),S(Ou,"fields",U.util.newFieldList(()=>[{no:1,name:"enabled",kind:"scalar",T:8}]));var rZ=Ou,Du=class Du extends Re{constructor(r){super();S(this,"version",0);S(this,"service","");S(this,"operationMappings",[]);S(this,"entityMappings",[]);S(this,"typeFieldMappings",[]);S(this,"enumMappings",[]);S(this,"resolveMappings",[]);U.util.initPartial(r,this)}static fromBinary(r,n){return new Du().fromBinary(r,n)}static fromJson(r,n){return new Du().fromJson(r,n)}static fromJsonString(r,n){return new Du().fromJsonString(r,n)}static equals(r,n){return U.util.equals(Du,r,n)}};S(Du,"runtime",U),S(Du,"typeName","wg.cosmo.node.v1.GRPCMapping"),S(Du,"fields",U.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:zL,repeated:!0},{no:4,name:"entity_mappings",kind:"message",T:HL,repeated:!0},{no:5,name:"type_field_mappings",kind:"message",T:XL,repeated:!0},{no:6,name:"enum_mappings",kind:"message",T:eC,repeated:!0},{no:7,name:"resolve_mappings",kind:"message",T:YL,repeated:!0}]));var QL=Du,bu=class bu extends Re{constructor(r){super();S(this,"type",Ky.UNSPECIFIED);S(this,"lookupMapping");S(this,"rpc","");S(this,"request","");S(this,"response","");U.util.initPartial(r,this)}static fromBinary(r,n){return new bu().fromBinary(r,n)}static fromJson(r,n){return new bu().fromJson(r,n)}static fromJsonString(r,n){return new bu().fromJsonString(r,n)}static equals(r,n){return U.util.equals(bu,r,n)}};S(bu,"runtime",U),S(bu,"typeName","wg.cosmo.node.v1.LookupMapping"),S(bu,"fields",U.util.newFieldList(()=>[{no:1,name:"type",kind:"enum",T:U.getEnumType(Ky)},{no:2,name:"lookup_mapping",kind:"message",T:JL},{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 YL=bu,Au=class Au extends Re{constructor(r){super();S(this,"type","");S(this,"fieldMapping");U.util.initPartial(r,this)}static fromBinary(r,n){return new Au().fromBinary(r,n)}static fromJson(r,n){return new Au().fromJson(r,n)}static fromJsonString(r,n){return new Au().fromJsonString(r,n)}static equals(r,n){return U.util.equals(Au,r,n)}};S(Au,"runtime",U),S(Au,"typeName","wg.cosmo.node.v1.LookupFieldMapping"),S(Au,"fields",U.util.newFieldList(()=>[{no:1,name:"type",kind:"scalar",T:9},{no:2,name:"field_mapping",kind:"message",T:nN}]));var JL=Au,Ru=class Ru extends Re{constructor(r){super();S(this,"type",$y.UNSPECIFIED);S(this,"original","");S(this,"mapped","");S(this,"request","");S(this,"response","");U.util.initPartial(r,this)}static fromBinary(r,n){return new Ru().fromBinary(r,n)}static fromJson(r,n){return new Ru().fromJson(r,n)}static fromJsonString(r,n){return new Ru().fromJsonString(r,n)}static equals(r,n){return U.util.equals(Ru,r,n)}};S(Ru,"runtime",U),S(Ru,"typeName","wg.cosmo.node.v1.OperationMapping"),S(Ru,"fields",U.util.newFieldList(()=>[{no:1,name:"type",kind:"enum",T:U.getEnumType($y)},{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 zL=Ru,wu=class wu extends Re{constructor(r){super();S(this,"typeName","");S(this,"kind","");S(this,"key","");S(this,"rpc","");S(this,"request","");S(this,"response","");S(this,"requiredFieldMappings",[]);U.util.initPartial(r,this)}static fromBinary(r,n){return new wu().fromBinary(r,n)}static fromJson(r,n){return new wu().fromJson(r,n)}static fromJsonString(r,n){return new wu().fromJsonString(r,n)}static equals(r,n){return U.util.equals(wu,r,n)}};S(wu,"runtime",U),S(wu,"typeName","wg.cosmo.node.v1.EntityMapping"),S(wu,"fields",U.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},{no:7,name:"required_field_mappings",kind:"message",T:WL,repeated:!0}]));var HL=wu,Pu=class Pu extends Re{constructor(r){super();S(this,"fieldMapping");S(this,"rpc","");S(this,"request","");S(this,"response","");U.util.initPartial(r,this)}static fromBinary(r,n){return new Pu().fromBinary(r,n)}static fromJson(r,n){return new Pu().fromJson(r,n)}static fromJsonString(r,n){return new Pu().fromJsonString(r,n)}static equals(r,n){return U.util.equals(Pu,r,n)}};S(Pu,"runtime",U),S(Pu,"typeName","wg.cosmo.node.v1.RequiredFieldMapping"),S(Pu,"fields",U.util.newFieldList(()=>[{no:1,name:"field_mapping",kind:"message",T:nN},{no:2,name:"rpc",kind:"scalar",T:9},{no:3,name:"request",kind:"scalar",T:9},{no:4,name:"response",kind:"scalar",T:9}]));var WL=Pu,Fu=class Fu extends Re{constructor(r){super();S(this,"type","");S(this,"fieldMappings",[]);U.util.initPartial(r,this)}static fromBinary(r,n){return new Fu().fromBinary(r,n)}static fromJson(r,n){return new Fu().fromJson(r,n)}static fromJsonString(r,n){return new Fu().fromJsonString(r,n)}static equals(r,n){return U.util.equals(Fu,r,n)}};S(Fu,"runtime",U),S(Fu,"typeName","wg.cosmo.node.v1.TypeFieldMapping"),S(Fu,"fields",U.util.newFieldList(()=>[{no:1,name:"type",kind:"scalar",T:9},{no:2,name:"field_mappings",kind:"message",T:nN,repeated:!0}]));var XL=Fu,Lu=class Lu extends Re{constructor(r){super();S(this,"original","");S(this,"mapped","");S(this,"argumentMappings",[]);U.util.initPartial(r,this)}static fromBinary(r,n){return new Lu().fromBinary(r,n)}static fromJson(r,n){return new Lu().fromJson(r,n)}static fromJsonString(r,n){return new Lu().fromJsonString(r,n)}static equals(r,n){return U.util.equals(Lu,r,n)}};S(Lu,"runtime",U),S(Lu,"typeName","wg.cosmo.node.v1.FieldMapping"),S(Lu,"fields",U.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:ZL,repeated:!0}]));var nN=Lu,Cu=class Cu extends Re{constructor(r){super();S(this,"original","");S(this,"mapped","");U.util.initPartial(r,this)}static fromBinary(r,n){return new Cu().fromBinary(r,n)}static fromJson(r,n){return new Cu().fromJson(r,n)}static fromJsonString(r,n){return new Cu().fromJsonString(r,n)}static equals(r,n){return U.util.equals(Cu,r,n)}};S(Cu,"runtime",U),S(Cu,"typeName","wg.cosmo.node.v1.ArgumentMapping"),S(Cu,"fields",U.util.newFieldList(()=>[{no:1,name:"original",kind:"scalar",T:9},{no:2,name:"mapped",kind:"scalar",T:9}]));var ZL=Cu,Bu=class Bu extends Re{constructor(r){super();S(this,"type","");S(this,"values",[]);U.util.initPartial(r,this)}static fromBinary(r,n){return new Bu().fromBinary(r,n)}static fromJson(r,n){return new Bu().fromJson(r,n)}static fromJsonString(r,n){return new Bu().fromJsonString(r,n)}static equals(r,n){return U.util.equals(Bu,r,n)}};S(Bu,"runtime",U),S(Bu,"typeName","wg.cosmo.node.v1.EnumMapping"),S(Bu,"fields",U.util.newFieldList(()=>[{no:1,name:"type",kind:"scalar",T:9},{no:2,name:"values",kind:"message",T:tC,repeated:!0}]));var eC=Bu,Uu=class Uu extends Re{constructor(r){super();S(this,"original","");S(this,"mapped","");U.util.initPartial(r,this)}static fromBinary(r,n){return new Uu().fromBinary(r,n)}static fromJson(r,n){return new Uu().fromJson(r,n)}static fromJsonString(r,n){return new Uu().fromJsonString(r,n)}static equals(r,n){return U.util.equals(Uu,r,n)}};S(Uu,"runtime",U),S(Uu,"typeName","wg.cosmo.node.v1.EnumValueMapping"),S(Uu,"fields",U.util.newFieldList(()=>[{no:1,name:"original",kind:"scalar",T:9},{no:2,name:"mapped",kind:"scalar",T:9}]));var tC=Uu,ku=class ku extends Re{constructor(r){super();S(this,"consumerName","");S(this,"streamName","");S(this,"consumerInactiveThreshold",0);U.util.initPartial(r,this)}static fromBinary(r,n){return new ku().fromBinary(r,n)}static fromJson(r,n){return new ku().fromJson(r,n)}static fromJsonString(r,n){return new ku().fromJsonString(r,n)}static equals(r,n){return U.util.equals(ku,r,n)}};S(ku,"runtime",U),S(ku,"typeName","wg.cosmo.node.v1.NatsStreamConfiguration"),S(ku,"fields",U.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 iN=ku,qu=class qu extends Re{constructor(r){super();S(this,"engineEventConfiguration");S(this,"subjects",[]);S(this,"streamConfiguration");U.util.initPartial(r,this)}static fromBinary(r,n){return new qu().fromBinary(r,n)}static fromJson(r,n){return new qu().fromJson(r,n)}static fromJsonString(r,n){return new qu().fromJsonString(r,n)}static equals(r,n){return U.util.equals(qu,r,n)}};S(qu,"runtime",U),S(qu,"typeName","wg.cosmo.node.v1.NatsEventConfiguration"),S(qu,"fields",U.util.newFieldList(()=>[{no:1,name:"engine_event_configuration",kind:"message",T:sc},{no:2,name:"subjects",kind:"scalar",T:9,repeated:!0},{no:3,name:"stream_configuration",kind:"message",T:iN}]));var aN=qu,xu=class xu extends Re{constructor(r){super();S(this,"engineEventConfiguration");S(this,"topics",[]);U.util.initPartial(r,this)}static fromBinary(r,n){return new xu().fromBinary(r,n)}static fromJson(r,n){return new xu().fromJson(r,n)}static fromJsonString(r,n){return new xu().fromJsonString(r,n)}static equals(r,n){return U.util.equals(xu,r,n)}};S(xu,"runtime",U),S(xu,"typeName","wg.cosmo.node.v1.KafkaEventConfiguration"),S(xu,"fields",U.util.newFieldList(()=>[{no:1,name:"engine_event_configuration",kind:"message",T:sc},{no:2,name:"topics",kind:"scalar",T:9,repeated:!0}]));var oN=xu,Mu=class Mu extends Re{constructor(r){super();S(this,"engineEventConfiguration");S(this,"channels",[]);U.util.initPartial(r,this)}static fromBinary(r,n){return new Mu().fromBinary(r,n)}static fromJson(r,n){return new Mu().fromJson(r,n)}static fromJsonString(r,n){return new Mu().fromJsonString(r,n)}static equals(r,n){return U.util.equals(Mu,r,n)}};S(Mu,"runtime",U),S(Mu,"typeName","wg.cosmo.node.v1.RedisEventConfiguration"),S(Mu,"fields",U.util.newFieldList(()=>[{no:1,name:"engine_event_configuration",kind:"message",T:sc},{no:2,name:"channels",kind:"scalar",T:9,repeated:!0}]));var sN=Mu,ju=class ju extends Re{constructor(r){super();S(this,"providerId","");S(this,"type",oc.PUBLISH);S(this,"typeName","");S(this,"fieldName","");U.util.initPartial(r,this)}static fromBinary(r,n){return new ju().fromBinary(r,n)}static fromJson(r,n){return new ju().fromJson(r,n)}static fromJsonString(r,n){return new ju().fromJsonString(r,n)}static equals(r,n){return U.util.equals(ju,r,n)}};S(ju,"runtime",U),S(ju,"typeName","wg.cosmo.node.v1.EngineEventConfiguration"),S(ju,"fields",U.util.newFieldList(()=>[{no:1,name:"provider_id",kind:"scalar",T:9},{no:2,name:"type",kind:"enum",T:U.getEnumType(oc)},{no:3,name:"type_name",kind:"scalar",T:9},{no:4,name:"field_name",kind:"scalar",T:9}]));var sc=ju,Vu=class Vu extends Re{constructor(r){super();S(this,"nats",[]);S(this,"kafka",[]);S(this,"redis",[]);U.util.initPartial(r,this)}static fromBinary(r,n){return new Vu().fromBinary(r,n)}static fromJson(r,n){return new Vu().fromJson(r,n)}static fromJsonString(r,n){return new Vu().fromJsonString(r,n)}static equals(r,n){return U.util.equals(Vu,r,n)}};S(Vu,"runtime",U),S(Vu,"typeName","wg.cosmo.node.v1.DataSourceCustomEvents"),S(Vu,"fields",U.util.newFieldList(()=>[{no:1,name:"nats",kind:"message",T:aN,repeated:!0},{no:2,name:"kafka",kind:"message",T:oN,repeated:!0},{no:3,name:"redis",kind:"message",T:sN,repeated:!0}]));var Ld=Vu,Ku=class Ku extends Re{constructor(r){super();S(this,"data");U.util.initPartial(r,this)}static fromBinary(r,n){return new Ku().fromBinary(r,n)}static fromJson(r,n){return new Ku().fromJson(r,n)}static fromJsonString(r,n){return new Ku().fromJsonString(r,n)}static equals(r,n){return U.util.equals(Ku,r,n)}};S(Ku,"runtime",U),S(Ku,"typeName","wg.cosmo.node.v1.DataSourceCustom_Static"),S(Ku,"fields",U.util.newFieldList(()=>[{no:1,name:"data",kind:"message",T:yi}]));var rC=Ku,$u=class $u extends Re{constructor(r){super();S(this,"kind",ll.STATIC_CONFIGURATION_VARIABLE);S(this,"staticVariableContent","");S(this,"environmentVariableName","");S(this,"environmentVariableDefaultValue","");S(this,"placeholderVariableName","");U.util.initPartial(r,this)}static fromBinary(r,n){return new $u().fromBinary(r,n)}static fromJson(r,n){return new $u().fromJson(r,n)}static fromJsonString(r,n){return new $u().fromJsonString(r,n)}static equals(r,n){return U.util.equals($u,r,n)}};S($u,"runtime",U),S($u,"typeName","wg.cosmo.node.v1.ConfigurationVariable"),S($u,"fields",U.util.newFieldList(()=>[{no:1,name:"kind",kind:"enum",T:U.getEnumType(ll)},{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 yi=$u,Gu=class Gu extends Re{constructor(r){super();S(this,"directiveName","");S(this,"renameTo","");U.util.initPartial(r,this)}static fromBinary(r,n){return new Gu().fromBinary(r,n)}static fromJson(r,n){return new Gu().fromJson(r,n)}static fromJsonString(r,n){return new Gu().fromJsonString(r,n)}static equals(r,n){return U.util.equals(Gu,r,n)}};S(Gu,"runtime",U),S(Gu,"typeName","wg.cosmo.node.v1.DirectiveConfiguration"),S(Gu,"fields",U.util.newFieldList(()=>[{no:1,name:"directive_name",kind:"scalar",T:9},{no:2,name:"rename_to",kind:"scalar",T:9}]));var nC=Gu,Qu=class Qu extends Re{constructor(r){super();S(this,"name","");S(this,"value","");U.util.initPartial(r,this)}static fromBinary(r,n){return new Qu().fromBinary(r,n)}static fromJson(r,n){return new Qu().fromJson(r,n)}static fromJsonString(r,n){return new Qu().fromJsonString(r,n)}static equals(r,n){return U.util.equals(Qu,r,n)}};S(Qu,"runtime",U),S(Qu,"typeName","wg.cosmo.node.v1.URLQueryConfiguration"),S(Qu,"fields",U.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"value",kind:"scalar",T:9}]));var iC=Qu,Yu=class Yu extends Re{constructor(r){super();S(this,"values",[]);U.util.initPartial(r,this)}static fromBinary(r,n){return new Yu().fromBinary(r,n)}static fromJson(r,n){return new Yu().fromJson(r,n)}static fromJsonString(r,n){return new Yu().fromJsonString(r,n)}static equals(r,n){return U.util.equals(Yu,r,n)}};S(Yu,"runtime",U),S(Yu,"typeName","wg.cosmo.node.v1.HTTPHeader"),S(Yu,"fields",U.util.newFieldList(()=>[{no:1,name:"values",kind:"message",T:yi,repeated:!0}]));var aC=Yu,Ju=class Ju extends Re{constructor(r){super();S(this,"key");S(this,"cert");S(this,"insecureSkipVerify",!1);U.util.initPartial(r,this)}static fromBinary(r,n){return new Ju().fromBinary(r,n)}static fromJson(r,n){return new Ju().fromJson(r,n)}static fromJsonString(r,n){return new Ju().fromJsonString(r,n)}static equals(r,n){return U.util.equals(Ju,r,n)}};S(Ju,"runtime",U),S(Ju,"typeName","wg.cosmo.node.v1.MTLSConfiguration"),S(Ju,"fields",U.util.newFieldList(()=>[{no:1,name:"key",kind:"message",T:yi},{no:2,name:"cert",kind:"message",T:yi},{no:3,name:"insecureSkipVerify",kind:"scalar",T:8}]));var oC=Ju,zu=class zu extends Re{constructor(r){super();S(this,"enabled",!1);S(this,"url");S(this,"useSSE");S(this,"protocol");S(this,"websocketSubprotocol");U.util.initPartial(r,this)}static fromBinary(r,n){return new zu().fromBinary(r,n)}static fromJson(r,n){return new zu().fromJson(r,n)}static fromJsonString(r,n){return new zu().fromJsonString(r,n)}static equals(r,n){return U.util.equals(zu,r,n)}};S(zu,"runtime",U),S(zu,"typeName","wg.cosmo.node.v1.GraphQLSubscriptionConfiguration"),S(zu,"fields",U.util.newFieldList(()=>[{no:1,name:"enabled",kind:"scalar",T:8},{no:2,name:"url",kind:"message",T:yi},{no:3,name:"useSSE",kind:"scalar",T:8,opt:!0},{no:4,name:"protocol",kind:"enum",T:U.getEnumType(Qs),opt:!0},{no:5,name:"websocketSubprotocol",kind:"enum",T:U.getEnumType(Ys),opt:!0}]));var sC=zu,Hu=class Hu extends Re{constructor(r){super();S(this,"enabled",!1);S(this,"serviceSdl","");U.util.initPartial(r,this)}static fromBinary(r,n){return new Hu().fromBinary(r,n)}static fromJson(r,n){return new Hu().fromJson(r,n)}static fromJsonString(r,n){return new Hu().fromJsonString(r,n)}static equals(r,n){return U.util.equals(Hu,r,n)}};S(Hu,"runtime",U),S(Hu,"typeName","wg.cosmo.node.v1.GraphQLFederationConfiguration"),S(Hu,"fields",U.util.newFieldList(()=>[{no:1,name:"enabled",kind:"scalar",T:8},{no:2,name:"serviceSdl",kind:"scalar",T:9}]));var uC=Hu,Wu=class Wu extends Re{constructor(r){super();S(this,"key","");U.util.initPartial(r,this)}static fromBinary(r,n){return new Wu().fromBinary(r,n)}static fromJson(r,n){return new Wu().fromJson(r,n)}static fromJsonString(r,n){return new Wu().fromJsonString(r,n)}static equals(r,n){return U.util.equals(Wu,r,n)}};S(Wu,"runtime",U),S(Wu,"typeName","wg.cosmo.node.v1.InternedString"),S(Wu,"fields",U.util.newFieldList(()=>[{no:1,name:"key",kind:"scalar",T:9}]));var uN=Wu,Xu=class Xu extends Re{constructor(r){super();S(this,"typeName","");S(this,"fieldName","");U.util.initPartial(r,this)}static fromBinary(r,n){return new Xu().fromBinary(r,n)}static fromJson(r,n){return new Xu().fromJson(r,n)}static fromJsonString(r,n){return new Xu().fromJsonString(r,n)}static equals(r,n){return U.util.equals(Xu,r,n)}};S(Xu,"runtime",U),S(Xu,"typeName","wg.cosmo.node.v1.SingleTypeField"),S(Xu,"fields",U.util.newFieldList(()=>[{no:1,name:"type_name",kind:"scalar",T:9},{no:2,name:"field_name",kind:"scalar",T:9}]));var cC=Xu,Zu=class Zu extends Re{constructor(r){super();S(this,"fieldPath",[]);S(this,"json","");U.util.initPartial(r,this)}static fromBinary(r,n){return new Zu().fromBinary(r,n)}static fromJson(r,n){return new Zu().fromJson(r,n)}static fromJsonString(r,n){return new Zu().fromJsonString(r,n)}static equals(r,n){return U.util.equals(Zu,r,n)}};S(Zu,"runtime",U),S(Zu,"typeName","wg.cosmo.node.v1.SubscriptionFieldCondition"),S(Zu,"fields",U.util.newFieldList(()=>[{no:1,name:"field_path",kind:"scalar",T:9,repeated:!0},{no:2,name:"json",kind:"scalar",T:9}]));var cN=Zu,Ca=class Ca extends Re{constructor(r){super();S(this,"and",[]);S(this,"in");S(this,"not");S(this,"or",[]);U.util.initPartial(r,this)}static fromBinary(r,n){return new Ca().fromBinary(r,n)}static fromJson(r,n){return new Ca().fromJson(r,n)}static fromJsonString(r,n){return new Ca().fromJsonString(r,n)}static equals(r,n){return U.util.equals(Ca,r,n)}};S(Ca,"runtime",U),S(Ca,"typeName","wg.cosmo.node.v1.SubscriptionFilterCondition"),S(Ca,"fields",U.util.newFieldList(()=>[{no:1,name:"and",kind:"message",T:Ca,repeated:!0},{no:2,name:"in",kind:"message",T:cN,opt:!0},{no:3,name:"not",kind:"message",T:Ca,opt:!0},{no:4,name:"or",kind:"message",T:Ca,repeated:!0}]));var dl=Ca,ec=class ec extends Re{constructor(r){super();S(this,"operations",[]);U.util.initPartial(r,this)}static fromBinary(r,n){return new ec().fromBinary(r,n)}static fromJson(r,n){return new ec().fromJson(r,n)}static fromJsonString(r,n){return new ec().fromJsonString(r,n)}static equals(r,n){return U.util.equals(ec,r,n)}};S(ec,"runtime",U),S(ec,"typeName","wg.cosmo.node.v1.CacheWarmerOperations"),S(ec,"fields",U.util.newFieldList(()=>[{no:1,name:"operations",kind:"message",T:lC,repeated:!0}]));var nZ=ec,tc=class tc extends Re{constructor(r){super();S(this,"request");S(this,"client");U.util.initPartial(r,this)}static fromBinary(r,n){return new tc().fromBinary(r,n)}static fromJson(r,n){return new tc().fromJson(r,n)}static fromJsonString(r,n){return new tc().fromJsonString(r,n)}static equals(r,n){return U.util.equals(tc,r,n)}};S(tc,"runtime",U),S(tc,"typeName","wg.cosmo.node.v1.Operation"),S(tc,"fields",U.util.newFieldList(()=>[{no:1,name:"request",kind:"message",T:dC},{no:2,name:"client",kind:"message",T:mC}]));var lC=tc,rc=class rc extends Re{constructor(r){super();S(this,"operationName","");S(this,"query","");S(this,"extensions");U.util.initPartial(r,this)}static fromBinary(r,n){return new rc().fromBinary(r,n)}static fromJson(r,n){return new rc().fromJson(r,n)}static fromJsonString(r,n){return new rc().fromJsonString(r,n)}static equals(r,n){return U.util.equals(rc,r,n)}};S(rc,"runtime",U),S(rc,"typeName","wg.cosmo.node.v1.OperationRequest"),S(rc,"fields",U.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:fC}]));var dC=rc,nc=class nc extends Re{constructor(r){super();S(this,"persistedQuery");U.util.initPartial(r,this)}static fromBinary(r,n){return new nc().fromBinary(r,n)}static fromJson(r,n){return new nc().fromJson(r,n)}static fromJsonString(r,n){return new nc().fromJsonString(r,n)}static equals(r,n){return U.util.equals(nc,r,n)}};S(nc,"runtime",U),S(nc,"typeName","wg.cosmo.node.v1.Extension"),S(nc,"fields",U.util.newFieldList(()=>[{no:1,name:"persisted_query",kind:"message",T:pC}]));var fC=nc,ic=class ic extends Re{constructor(r){super();S(this,"sha256Hash","");S(this,"version",0);U.util.initPartial(r,this)}static fromBinary(r,n){return new ic().fromBinary(r,n)}static fromJson(r,n){return new ic().fromJson(r,n)}static fromJsonString(r,n){return new ic().fromJsonString(r,n)}static equals(r,n){return U.util.equals(ic,r,n)}};S(ic,"runtime",U),S(ic,"typeName","wg.cosmo.node.v1.PersistedQuery"),S(ic,"fields",U.util.newFieldList(()=>[{no:1,name:"sha256_hash",kind:"scalar",T:9},{no:2,name:"version",kind:"scalar",T:5}]));var pC=ic,ac=class ac extends Re{constructor(r){super();S(this,"name","");S(this,"version","");U.util.initPartial(r,this)}static fromBinary(r,n){return new ac().fromBinary(r,n)}static fromJson(r,n){return new ac().fromJson(r,n)}static fromJsonString(r,n){return new ac().fromJsonString(r,n)}static equals(r,n){return U.util.equals(ac,r,n)}};S(ac,"runtime",U),S(ac,"typeName","wg.cosmo.node.v1.ClientInfo"),S(ac,"fields",U.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"version",kind:"scalar",T:9}]));var mC=ac;d();p();f();function hC(e){return new Error(`Normalization failed to return a ${e}.`)}function iZ(e){return new Error(`Invalid router compatibility version "${e}".`)}d();p();f();var xp=Vi(e_(),1);function S$e(e){if(!e.conditions)return;let t=[];for(let r of e.conditions){let n=[];for(let i of r.fieldCoordinatesPath){let a=i.split(".");if(a.length!==2)throw new Error(`fatal: malformed conditional field coordinates "${i}" for field set "${e.selectionSet}".`);n.push(new Zy({fieldName:a[1],typeName:a[0]}))}t.push(new eN({fieldCoordinatesPath:n,fieldPath:r.fieldPath}))}return t}function yC(e,t,r){if(e)for(let n of e){let i=S$e(n);t.push(new Rd(q(q({typeName:r,fieldName:n.fieldName,selectionSet:n.selectionSet},n.disableEntityResolver?{disableEntityResolver:!0}:{}),i?{conditions:i}:{})))}}function NC(e){switch(e){case"publish":return oc.PUBLISH;case"request":return oc.REQUEST;case"subscribe":return oc.SUBSCRIBE}}function aZ(e){var r;let t={rootNodes:[],childNodes:[],keys:[],provides:[],events:new Ld({nats:[],kafka:[],redis:[]}),requires:[],entityInterfaces:[],interfaceObjects:[]};for(let n of e.values()){let i=n.typeName,a=[...n.fieldNames],o=new Up({fieldNames:a,typeName:i});if(n.externalFieldNames&&n.externalFieldNames.size>0&&(o.externalFieldNames=[...n.externalFieldNames]),n.requireFetchReasonsFieldNames&&n.requireFetchReasonsFieldNames.length>0&&(o.requireFetchReasonsFieldNames=[...n.requireFetchReasonsFieldNames]),n.isRootNode?t.rootNodes.push(o):t.childNodes.push(o),n.entityInterfaceConcreteTypeNames){let h=new kp({interfaceTypeName:i,concreteTypeNames:[...n.entityInterfaceConcreteTypeNames]});n.isInterfaceObject?t.interfaceObjects.push(h):t.entityInterfaces.push(h)}yC(n.keys,t.keys,i),yC(n.provides,t.provides,i),yC(n.requires,t.requires,i);let u=[],l=[],m=[];for(let h of(r=n.events)!=null?r:[])switch(h.providerType){case xp.PROVIDER_TYPE_KAFKA:{l.push(new oN({engineEventConfiguration:new sc({fieldName:h.fieldName,providerId:h.providerId,type:NC(h.type),typeName:i}),topics:h.topics}));break}case xp.PROVIDER_TYPE_NATS:{u.push(new aN(q({engineEventConfiguration:new sc({fieldName:h.fieldName,providerId:h.providerId,type:NC(h.type),typeName:i}),subjects:h.subjects},h.streamConfiguration?{streamConfiguration:new iN({consumerInactiveThreshold:h.streamConfiguration.consumerInactiveThreshold,consumerName:h.streamConfiguration.consumerName,streamName:h.streamConfiguration.streamName})}:{})));break}case xp.PROVIDER_TYPE_REDIS:{m.push(new sN({engineEventConfiguration:new sc({fieldName:h.fieldName,providerId:h.providerId,type:NC(h.type),typeName:i}),channels:h.channels}));break}default:throw new Error("Fatal: Unknown event provider.")}t.events.nats.push(...u),t.events.kafka.push(...l),t.events.redis.push(...m)}return t}function oZ(e){var r,n;let t=[];for(let i of e){let a=i.argumentNames.map(h=>new Hy({name:h,sourceType:wd.FIELD_ARGUMENT})),o=new Xy({argumentsConfiguration:a,fieldName:i.fieldName,typeName:i.typeName}),u=((r=i.requiredScopes)==null?void 0:r.map(h=>new Fd({requiredAndScopes:h})))||[],l=((n=i.requiredScopesByOR)==null?void 0:n.map(h=>new Fd({requiredAndScopes:h})))||[],m=u.length>0;if((i.requiresAuthentication||m)&&(o.authorizationConfiguration=new Wy({requiresAuthentication:i.requiresAuthentication||m,requiredOrScopes:u,requiredOrScopesByOr:l})),i.subscriptionFilterCondition){let h=new dl;v_(h,i.subscriptionFilterCondition),o.subscriptionFilterCondition=h}t.push(o)}return t}function v_(e,t){if(t.and!==void 0){let r=[];for(let n of t.and){let i=new dl;v_(i,n),r.push(i)}e.and=r;return}if(t.in!==void 0){e.in=new cN({fieldPath:t.in.fieldPath,json:JSON.stringify(t.in.values)});return}if(t.not!==void 0){e.not=new dl,v_(e.not,t.not);return}if(t.or!==void 0){let r=[];for(let n of t.or){let i=new dl;v_(i,n),r.push(i)}e.or=r;return}throw new Error("Fatal: Incoming SubscriptionCondition object was malformed.")}function O$e(e){if(e&&!(e.fieldWeights.size===0&&e.listSizes.size===0&&e.typeWeights.size===0&&e.directiveArgumentWeights.size===0))return new Yy({fieldWeights:[...e.fieldWeights.values()].map(t=>new Jy(G(q({},t),{argumentWeights:Object.fromEntries(t.argumentWeights),directiveArgumentWeights:Object.fromEntries(t.directiveArgumentWeights)}))),listSizes:[...e.listSizes.values()].map(t=>new zy(t)),typeWeights:Object.fromEntries(e.typeWeights),directiveArgumentWeights:Object.fromEntries(e.directiveArgumentWeights)})}var Cd;(function(e){e[e.Plugin=0]="Plugin",e[e.Standard=1]="Standard",e[e.GRPC=2]="GRPC"})(Cd||(Cd={}));var D$e=(e,t)=>{let r=stringHash(t);return e.stringStorage[r]=t,new uN({key:r})},b$e=e=>{switch(e){case"ws":return Qs.GRAPHQL_SUBSCRIPTION_PROTOCOL_WS;case"sse":return Qs.GRAPHQL_SUBSCRIPTION_PROTOCOL_SSE;case"sse_post":return Qs.GRAPHQL_SUBSCRIPTION_PROTOCOL_SSE_POST}},A$e=e=>{switch(e){case"auto":return Ys.GRAPHQL_WEBSOCKET_SUBPROTOCOL_AUTO;case"graphql-ws":return Ys.GRAPHQL_WEBSOCKET_SUBPROTOCOL_WS;case"graphql-transport-ws":return Ys.GRAPHQL_WEBSOCKET_SUBPROTOCOL_TRANSPORT_WS}},uZ=function(e){if(!Mp.ROUTER_COMPATIBILITY_VERSIONS.has(e.routerCompatibilityVersion))throw iZ(e.routerCompatibilityVersion);let t=new Bp({defaultFlushInterval:BigInt(500),datasourceConfigurations:[],fieldConfigurations:[],graphqlSchema:"",stringStorage:{},typeConfigurations:[]});for(let r of e.subgraphs){if(!r.configurationDataByTypeName)throw hC("ConfigurationDataByTypeName");if(!r.schema)throw hC("GraphQLSchema");let n={enabled:!0},i=D$e(t,m7((0,sZ.lexicographicSortSchema)(r.schema))),{childNodes:a,entityInterfaces:o,events:u,interfaceObjects:l,keys:m,provides:h,requires:N,rootNodes:T}=aZ(r.configurationDataByTypeName),O;switch(r.kind){case Cd.Standard:{n.enabled=!0,n.protocol=b$e(r.subscriptionProtocol||"ws"),n.websocketSubprotocol=A$e(r.websocketSubprotocol||"auto"),n.url=new yi({kind:ll.STATIC_CONFIGURATION_VARIABLE,staticVariableContent:r.subscriptionUrl||r.url});break}case Cd.Plugin:{O=new qp({mapping:r.mapping,protoSchema:r.protoSchema,plugin:new rN({name:r.name,version:r.version,imageReference:r.imageReference})});break}case Cd.GRPC:{O=new qp({mapping:r.mapping,protoSchema:r.protoSchema});break}}let R,C,M;if(u.kafka.length>0||u.nats.length>0||u.redis.length>0){R=cl.PUBSUB,M=new Ld({kafka:u.kafka,nats:u.nats,redis:u.redis});let ee=_e=>Mp.ROOT_TYPE_NAMES.has(_e.typeName),ae=0,Ne=0;for(;ae({id:r.id,name:r.name,routingUrl:r.url})),compatibilityVersion:`${e.routerCompatibilityVersion}:${Mp.COMPOSITION_VERSION}`})};d();p();f();var Ud=Vi(ve());function cZ(e){let t;try{t=(0,Ud.parse)(e.schema)}catch(r){throw new Error(`could not parse schema for Graph ${e.name}: ${r}`)}return{definitions:t,name:e.name,url:e.url}}function R$e(e){let t=(0,Bd.federateSubgraphs)({subgraphs:e.map(cZ),version:Bd.LATEST_ROUTER_COMPATIBILITY_VERSION});if(!t.success)throw new Error(`could not federate schema: ${t.errors.map(r=>r.message).join(", ")}`);return{fieldConfigurations:t.fieldConfigurations,sdl:(0,Ud.print)(t.federatedGraphAST)}}function w$e(e){let t=(0,Bd.federateSubgraphs)({subgraphs:e.map(cZ),version:Bd.LATEST_ROUTER_COMPATIBILITY_VERSION});if(!t.success)throw new Error(`could not federate schema: ${t.errors.map(n=>n.message).join(", ")}`);return uZ({federatedClientSDL:(0,Ud.printSchema)(t.federatedGraphClientSchema),federatedSDL:(0,Ud.printSchema)(t.federatedGraphSchema),fieldConfigurations:t.fieldConfigurations,routerCompatibilityVersion:Bd.LATEST_ROUTER_COMPATIBILITY_VERSION,schemaVersionId:"",subgraphs:e.map((n,i)=>{var l,m;let a=t.subgraphConfigBySubgraphName.get(n.name),o=a==null?void 0:a.schema,u=a==null?void 0:a.configurationDataByTypeName;return{kind:Cd.Standard,id:`${i}`,name:n.name,url:vL(n.url),sdl:n.schema,subscriptionUrl:vL((l=n.subscription_url)!=null?l:n.url),subscriptionProtocol:(m=n.subscription_protocol)!=null?m:"ws",websocketSubprotocol:n.subscription_protocol==="ws"?n.websocketSubprotocol||"auto":void 0,schema:o,configurationDataByTypeName:u}})}).toJsonString()}return im(P$e);})(); /*! Bundled license information: @jspm/core/nodelibs/browser/buffer.js: diff --git a/composition-go/shim/package.json b/composition-go/shim/package.json index 96b54fdc59..ca4c90b42d 100644 --- a/composition-go/shim/package.json +++ b/composition-go/shim/package.json @@ -18,13 +18,18 @@ "dependencies": { "@wundergraph/composition": "workspace:*", "@wundergraph/cosmo-shared": "workspace:*", - "graphql": "catalog:" + "graphql": "catalog:", + "set.prototype.difference": "^1.1.7", + "set.prototype.intersection": "^1.1.8", + "set.prototype.isdisjointfrom": "^1.1.5", + "set.prototype.issubsetof": "^1.1.4", + "set.prototype.issupersetof": "^1.1.3" }, "devDependencies": { "@types/node": "catalog:", "esbuild": "^0.25.0", "esbuild-plugin-polyfill-node": "^0.3.0", - "tsup": "^8.0.1", + "tsup": "8.3.5", "typescript": "catalog:" } } diff --git a/composition-go/shim/src/index.ts b/composition-go/shim/src/index.ts index 62f5a3ace9..8abb88d2fa 100644 --- a/composition-go/shim/src/index.ts +++ b/composition-go/shim/src/index.ts @@ -1,3 +1,8 @@ +import 'set.prototype.difference/auto'; +import 'set.prototype.intersection/auto'; +import 'set.prototype.isdisjointfrom/auto'; +import 'set.prototype.issubsetof/auto'; +import 'set.prototype.issupersetof/auto'; import { federateSubgraphs as realFederateSubgraphs, FieldConfiguration, @@ -41,7 +46,10 @@ function createFederableSubgraph(subgraph: Subgraph) { } export function federateSubgraphs(subgraphs: Subgraph[]): FederatedGraph { - const result = realFederateSubgraphs({ subgraphs: subgraphs.map(createFederableSubgraph), version: LATEST_ROUTER_COMPATIBILITY_VERSION }); + const result = realFederateSubgraphs({ + subgraphs: subgraphs.map(createFederableSubgraph), + version: LATEST_ROUTER_COMPATIBILITY_VERSION, + }); if (!result.success) { throw new Error(`could not federate schema: ${result.errors.map((e: Error) => e.message).join(', ')}`); } @@ -52,7 +60,10 @@ export function federateSubgraphs(subgraphs: Subgraph[]): FederatedGraph { } export function buildRouterConfiguration(subgraphs: Subgraph[]): string { - const result = realFederateSubgraphs({ subgraphs: subgraphs.map(createFederableSubgraph), version: LATEST_ROUTER_COMPATIBILITY_VERSION }); + const result = realFederateSubgraphs({ + subgraphs: subgraphs.map(createFederableSubgraph), + version: LATEST_ROUTER_COMPATIBILITY_VERSION, + }); if (!result.success) { throw new Error(`could not federate schema: ${result.errors.map((e: Error) => e.message).join(', ')}`); } diff --git a/composition-go/shim/src/polyfill.js b/composition-go/shim/src/polyfill.js index eea4140ac7..9d442867ed 100644 --- a/composition-go/shim/src/polyfill.js +++ b/composition-go/shim/src/polyfill.js @@ -1,17 +1,20 @@ +var self = globalThis; +var global = globalThis; + function BigInt(value) { - return value; + return value; } class URL { - constructor(url, base) { - // urlParse is provided by the runtime - const result = urlParse(url, base || ''); - for (const prop in result) { - this[prop] = result[prop] - } + constructor(url, base) { + // urlParse is provided by the runtime + const result = urlParse(url, base || ''); + for (const prop in result) { + this[prop] = result[prop]; } + } - static canParse(url, base = undefined) { - return urlCanParse(url, base || ''); - } + static canParse(url, base = undefined) { + return urlCanParse(url, base || ''); + } } diff --git a/composition/package.json b/composition/package.json index 17fe11a914..a924e3b42d 100644 --- a/composition/package.json +++ b/composition/package.json @@ -40,6 +40,7 @@ }, "devDependencies": { "@types/lodash": "catalog:", + "@types/node": "catalog:", "@vitest/coverage-v8": "catalog:", "del-cli": "catalog:", "typescript": "catalog:", diff --git a/composition/src/directive-definition-data/directive-definition-data.ts b/composition/src/directive-definition-data/directive-definition-data.ts new file mode 100644 index 0000000000..c3d8e0af4e --- /dev/null +++ b/composition/src/directive-definition-data/directive-definition-data.ts @@ -0,0 +1,947 @@ +import { stringToNamedTypeNode } from '../ast/utils'; +import { DEFAULT_DEPRECATION_REASON, Kind } from 'graphql'; +import { + ARGUMENT_DEFINITION_UPPER, + AS, + ASSUMED_SIZE, + AUTHENTICATED, + BOOLEAN_SCALAR, + CHANNEL, + CHANNELS, + COMPOSE_DIRECTIVE, + CONDITION, + CONFIGURE_CHILD_DESCRIPTIONS, + CONFIGURE_DESCRIPTION, + CONNECT_FIELD_RESOLVER, + CONTEXT, + COST, + DEFAULT_EDFS_PROVIDER_ID, + DEPRECATED, + DESCRIPTION_OVERRIDE, + EDFS_KAFKA_PUBLISH, + EDFS_KAFKA_SUBSCRIBE, + EDFS_NATS_PUBLISH, + EDFS_NATS_REQUEST, + EDFS_NATS_STREAM_CONFIGURATION, + EDFS_NATS_SUBSCRIBE, + EDFS_REDIS_PUBLISH, + EDFS_REDIS_SUBSCRIBE, + ENUM_UPPER, + ENUM_VALUE_UPPER, + EXTENDS, + EXTERNAL, + FIELD_DEFINITION_UPPER, + FIELDS, + FOR, + FROM, + IMPORT, + INACCESSIBLE, + INPUT_FIELD_DEFINITION_UPPER, + INPUT_OBJECT_UPPER, + INT_SCALAR, + INTERFACE_OBJECT, + INTERFACE_UPPER, + KEY, + LEVELS, + LINK, + LINK_IMPORT, + LINK_PURPOSE, + LIST_SIZE, + NAME, + OBJECT_UPPER, + ONE_OF, + OVERRIDE, + PROPAGATE, + PROVIDER_ID, + PROVIDES, + REASON, + REQUIRE_FETCH_REASONS, + REQUIRE_ONE_SLICING_ARGUMENT, + REQUIRES, + REQUIRES_SCOPES, + RESOLVABLE, + SCALAR_UPPER, + SCHEMA_UPPER, + SCOPE_SCALAR, + SCOPES, + SEMANTIC_NON_NULL, + SHAREABLE, + SIZED_FIELDS, + SLICING_ARGUMENTS, + SPECIFIED_BY, + STREAM_CONFIGURATION, + STRING_SCALAR, + SUBJECT, + SUBJECTS, + SUBSCRIPTION_FILTER, + SUBSCRIPTION_FILTER_CONDITION, + TAG, + TOPIC, + TOPICS, + UNION_UPPER, + URL_LOWER, + WEIGHT, +} from '../utils/string-constants'; +import { + AUTHENTICATED_DEFINITION, + COMPOSE_DIRECTIVE_DEFINITION, + CONFIGURE_CHILD_DESCRIPTIONS_DEFINITION, + CONFIGURE_DESCRIPTION_DEFINITION, + CONNECT_FIELD_RESOLVER_DEFINITION, + COST_DEFINITION, + DEPRECATED_DEFINITION, + EDFS_KAFKA_PUBLISH_DEFINITION, + EDFS_KAFKA_SUBSCRIBE_DEFINITION, + EDFS_NATS_PUBLISH_DEFINITION, + EDFS_NATS_REQUEST_DEFINITION, + EDFS_NATS_SUBSCRIBE_DEFINITION, + EDFS_REDIS_PUBLISH_DEFINITION, + EDFS_REDIS_SUBSCRIBE_DEFINITION, + EXTENDS_DEFINITION, + EXTERNAL_DEFINITION, + INACCESSIBLE_DEFINITION, + INTERFACE_OBJECT_DEFINITION, + KEY_DEFINITION, + LINK_DEFINITION, + LIST_SIZE_DEFINITION, + ONE_OF_DEFINITION, + OVERRIDE_DEFINITION, + PROVIDES_DEFINITION, + REQUIRE_FETCH_REASONS_DEFINITION, + REQUIRES_DEFINITION, + REQUIRES_SCOPES_DEFINITION, + SEMANTIC_NON_NULL_DEFINITION, + SHAREABLE_DEFINITION, + SPECIFIED_BY_DEFINITION, + SUBSCRIPTION_FILTER_DEFINITION, + TAG_DEFINITION, +} from '../v1/constants/directive-definitions'; +import { REQUIRED_FIELDSET_TYPE_NODE, REQUIRED_STRING_TYPE_NODE } from '../v1/constants/type-nodes'; +import { type ArgumentName, type DirectiveLocation } from '../types/types'; +import { newDirectiveArgumentData, newDirectiveDefinitionData } from './utils'; +import { type DirectiveArgumentData, DirectiveDefinitionData } from './types/types'; + +// Note that arguments with default values are classed as optional and should be placed into `optionalArgumentNames`. + +export const AUTHENTICATED_DEFINITION_DATA = newDirectiveDefinitionData({ + locations: new Set([ + ENUM_UPPER, + FIELD_DEFINITION_UPPER, + INTERFACE_UPPER, + OBJECT_UPPER, + SCALAR_UPPER, + ]), + name: AUTHENTICATED, + node: AUTHENTICATED_DEFINITION, +}); + +export const COMPOSE_DIRECTIVE_DEFINITION_DATA = newDirectiveDefinitionData({ + argumentDataByName: new Map([ + [ + NAME, + newDirectiveArgumentData({ + directive: `@${COMPOSE_DIRECTIVE}`, + name: NAME, + namedTypeKind: Kind.SCALAR_TYPE_DEFINITION, + typeNode: REQUIRED_STRING_TYPE_NODE, + }), + ], + ]), + isRepeatable: true, + locations: new Set([SCHEMA_UPPER]), + name: COMPOSE_DIRECTIVE, + node: COMPOSE_DIRECTIVE_DEFINITION, + requiredArgumentNames: new Set([NAME]), +}); + +export const CONFIGURE_DESCRIPTION_DEFINITION_DATA = newDirectiveDefinitionData({ + argumentDataByName: new Map([ + [ + PROPAGATE, + newDirectiveArgumentData({ + defaultValue: { + kind: Kind.BOOLEAN, + value: true, + }, + directive: `@${CONFIGURE_DESCRIPTION}`, + name: PROPAGATE, + namedTypeKind: Kind.SCALAR_TYPE_DEFINITION, + typeNode: { + kind: Kind.NON_NULL_TYPE, + type: stringToNamedTypeNode(BOOLEAN_SCALAR), + }, + }), + ], + [ + DESCRIPTION_OVERRIDE, + newDirectiveArgumentData({ + directive: `@${CONFIGURE_DESCRIPTION}`, + name: DESCRIPTION_OVERRIDE, + namedTypeKind: Kind.SCALAR_TYPE_DEFINITION, + typeNode: stringToNamedTypeNode(STRING_SCALAR), + }), + ], + ]), + locations: new Set([ + ARGUMENT_DEFINITION_UPPER, + ENUM_UPPER, + ENUM_VALUE_UPPER, + FIELD_DEFINITION_UPPER, + INTERFACE_UPPER, + INPUT_OBJECT_UPPER, + INPUT_FIELD_DEFINITION_UPPER, + OBJECT_UPPER, + SCALAR_UPPER, + SCHEMA_UPPER, + UNION_UPPER, + ]), + name: CONFIGURE_DESCRIPTION, + node: CONFIGURE_DESCRIPTION_DEFINITION, + optionalArgumentNames: new Set([PROPAGATE, DESCRIPTION_OVERRIDE]), +}); + +export const CONFIGURE_CHILD_DESCRIPTIONS_DEFINITION_DATA = newDirectiveDefinitionData({ + argumentDataByName: new Map([ + [ + PROPAGATE, + newDirectiveArgumentData({ + defaultValue: { + kind: Kind.BOOLEAN, + value: true, + }, + directive: `@${CONFIGURE_CHILD_DESCRIPTIONS}`, + name: PROPAGATE, + namedTypeKind: Kind.SCALAR_TYPE_DEFINITION, + typeNode: { + kind: Kind.NON_NULL_TYPE, + type: stringToNamedTypeNode(BOOLEAN_SCALAR), + }, + }), + ], + ]), + locations: new Set([ENUM_UPPER, INPUT_OBJECT_UPPER, INTERFACE_UPPER, OBJECT_UPPER]), + name: CONFIGURE_CHILD_DESCRIPTIONS, + node: CONFIGURE_CHILD_DESCRIPTIONS_DEFINITION, + optionalArgumentNames: new Set([PROPAGATE]), +}); + +export const CONNECT_FIELD_RESOLVER_DEFINITION_DATA = newDirectiveDefinitionData({ + argumentDataByName: new Map([ + [ + CONTEXT, + newDirectiveArgumentData({ + directive: `@${CONNECT_FIELD_RESOLVER}`, + name: CONTEXT, + namedTypeKind: Kind.SCALAR_TYPE_DEFINITION, + typeNode: REQUIRED_FIELDSET_TYPE_NODE, + }), + ], + ]), + locations: new Set([FIELD_DEFINITION_UPPER]), + name: CONNECT_FIELD_RESOLVER, + node: CONNECT_FIELD_RESOLVER_DEFINITION, + requiredArgumentNames: new Set([CONTEXT]), +}); + +export const COST_DEFINITION_DATA = newDirectiveDefinitionData({ + argumentDataByName: new Map([ + [ + WEIGHT, + newDirectiveArgumentData({ + directive: `@${COST}`, + name: WEIGHT, + namedTypeKind: Kind.SCALAR_TYPE_DEFINITION, + typeNode: { + kind: Kind.NON_NULL_TYPE, + type: stringToNamedTypeNode(INT_SCALAR), + }, + }), + ], + ]), + locations: new Set([ + ARGUMENT_DEFINITION_UPPER, + ENUM_UPPER, + FIELD_DEFINITION_UPPER, + INPUT_FIELD_DEFINITION_UPPER, + OBJECT_UPPER, + SCALAR_UPPER, + ]), + name: COST, + node: COST_DEFINITION, + requiredArgumentNames: new Set([WEIGHT]), +}); + +export const DEPRECATED_DEFINITION_DATA = newDirectiveDefinitionData({ + argumentDataByName: new Map([ + [ + REASON, + newDirectiveArgumentData({ + defaultValue: { + kind: Kind.STRING, + value: DEFAULT_DEPRECATION_REASON, + }, + directive: `@${DEPRECATED}`, + name: REASON, + namedTypeKind: Kind.SCALAR_TYPE_DEFINITION, + typeNode: stringToNamedTypeNode(STRING_SCALAR), + }), + ], + ]), + locations: new Set([ + ARGUMENT_DEFINITION_UPPER, + ENUM_VALUE_UPPER, + FIELD_DEFINITION_UPPER, + INPUT_FIELD_DEFINITION_UPPER, + ]), + name: DEPRECATED, + node: DEPRECATED_DEFINITION, + optionalArgumentNames: new Set([REASON]), +}); + +export const EXTENDS_DEFINITION_DATA = newDirectiveDefinitionData({ + locations: new Set([INTERFACE_UPPER, OBJECT_UPPER]), + name: EXTENDS, + node: EXTENDS_DEFINITION, +}); + +export const EXTERNAL_DEFINITION_DATA = newDirectiveDefinitionData({ + locations: new Set([FIELD_DEFINITION_UPPER, OBJECT_UPPER]), + name: EXTERNAL, + node: EXTERNAL_DEFINITION, +}); + +export const INACCESSIBLE_DEFINITION_DATA = newDirectiveDefinitionData({ + locations: new Set([ + ARGUMENT_DEFINITION_UPPER, + ENUM_UPPER, + ENUM_VALUE_UPPER, + FIELD_DEFINITION_UPPER, + INPUT_FIELD_DEFINITION_UPPER, + INPUT_OBJECT_UPPER, + INTERFACE_UPPER, + OBJECT_UPPER, + SCALAR_UPPER, + UNION_UPPER, + ]), + name: INACCESSIBLE, + node: INACCESSIBLE_DEFINITION, +}); + +export const INTERFACE_OBJECT_DEFINITION_DATA = newDirectiveDefinitionData({ + locations: new Set([OBJECT_UPPER]), + name: INTERFACE_OBJECT, + node: INTERFACE_OBJECT_DEFINITION, +}); + +export const KAFKA_PUBLISH_DEFINITION_DATA = newDirectiveDefinitionData({ + argumentDataByName: new Map([ + [ + TOPIC, + newDirectiveArgumentData({ + directive: `@${EDFS_KAFKA_PUBLISH}`, + name: TOPIC, + namedTypeKind: Kind.SCALAR_TYPE_DEFINITION, + typeNode: REQUIRED_STRING_TYPE_NODE, + }), + ], + [ + PROVIDER_ID, + newDirectiveArgumentData({ + defaultValue: { + kind: Kind.STRING, + value: DEFAULT_EDFS_PROVIDER_ID, + }, + directive: `@${EDFS_KAFKA_PUBLISH}`, + name: PROVIDER_ID, + namedTypeKind: Kind.SCALAR_TYPE_DEFINITION, + typeNode: REQUIRED_STRING_TYPE_NODE, + }), + ], + ]), + locations: new Set([FIELD_DEFINITION_UPPER]), + name: EDFS_KAFKA_PUBLISH, + node: EDFS_KAFKA_PUBLISH_DEFINITION, + optionalArgumentNames: new Set([PROVIDER_ID]), + requiredArgumentNames: new Set([TOPIC]), +}); + +export const KAFKA_SUBSCRIBE_DEFINITION_DATA = newDirectiveDefinitionData({ + argumentDataByName: new Map([ + [ + TOPICS, + newDirectiveArgumentData({ + directive: `@${EDFS_KAFKA_SUBSCRIBE}`, + name: TOPICS, + namedTypeKind: Kind.SCALAR_TYPE_DEFINITION, + typeNode: { + kind: Kind.NON_NULL_TYPE, + type: { + kind: Kind.LIST_TYPE, + type: REQUIRED_STRING_TYPE_NODE, + }, + }, + }), + ], + [ + PROVIDER_ID, + newDirectiveArgumentData({ + directive: `@${EDFS_KAFKA_SUBSCRIBE}`, + name: PROVIDER_ID, + namedTypeKind: Kind.SCALAR_TYPE_DEFINITION, + typeNode: REQUIRED_STRING_TYPE_NODE, + defaultValue: { + kind: Kind.STRING, + value: DEFAULT_EDFS_PROVIDER_ID, + }, + }), + ], + ]), + locations: new Set([FIELD_DEFINITION_UPPER]), + name: EDFS_KAFKA_SUBSCRIBE, + node: EDFS_KAFKA_SUBSCRIBE_DEFINITION, + optionalArgumentNames: new Set([PROVIDER_ID]), + requiredArgumentNames: new Set([TOPICS]), +}); + +export const NATS_PUBLISH_DEFINITION_DATA = newDirectiveDefinitionData({ + argumentDataByName: new Map([ + [ + SUBJECT, + newDirectiveArgumentData({ + directive: `@${EDFS_NATS_PUBLISH}`, + name: SUBJECT, + namedTypeKind: Kind.SCALAR_TYPE_DEFINITION, + typeNode: REQUIRED_STRING_TYPE_NODE, + }), + ], + [ + PROVIDER_ID, + newDirectiveArgumentData({ + defaultValue: { + kind: Kind.STRING, + value: DEFAULT_EDFS_PROVIDER_ID, + }, + directive: `@${EDFS_NATS_PUBLISH}`, + name: PROVIDER_ID, + namedTypeKind: Kind.SCALAR_TYPE_DEFINITION, + typeNode: REQUIRED_STRING_TYPE_NODE, + }), + ], + ]), + isComposed: true, + locations: new Set([FIELD_DEFINITION_UPPER]), + name: EDFS_NATS_PUBLISH, + node: EDFS_NATS_PUBLISH_DEFINITION, + optionalArgumentNames: new Set([PROVIDER_ID]), + requiredArgumentNames: new Set([SUBJECT]), +}); + +export const NATS_REQUEST_DEFINITION_DATA = newDirectiveDefinitionData({ + argumentDataByName: new Map([ + [ + SUBJECT, + newDirectiveArgumentData({ + directive: `@${EDFS_NATS_REQUEST}`, + name: SUBJECT, + namedTypeKind: Kind.SCALAR_TYPE_DEFINITION, + typeNode: REQUIRED_STRING_TYPE_NODE, + }), + ], + [ + PROVIDER_ID, + newDirectiveArgumentData({ + defaultValue: { + kind: Kind.STRING, + value: DEFAULT_EDFS_PROVIDER_ID, + }, + directive: `@${EDFS_NATS_REQUEST}`, + name: PROVIDER_ID, + namedTypeKind: Kind.SCALAR_TYPE_DEFINITION, + typeNode: REQUIRED_STRING_TYPE_NODE, + }), + ], + ]), + locations: new Set([FIELD_DEFINITION_UPPER]), + name: EDFS_NATS_REQUEST, + node: EDFS_NATS_REQUEST_DEFINITION, + optionalArgumentNames: new Set([PROVIDER_ID]), + requiredArgumentNames: new Set([SUBJECT]), +}); + +export const NATS_SUBSCRIBE_DEFINITION_DATA = newDirectiveDefinitionData({ + argumentDataByName: new Map([ + [ + SUBJECTS, + newDirectiveArgumentData({ + directive: `@${EDFS_NATS_SUBSCRIBE}`, + name: SUBJECTS, + namedTypeKind: Kind.SCALAR_TYPE_DEFINITION, + typeNode: { + kind: Kind.NON_NULL_TYPE, + type: { + kind: Kind.LIST_TYPE, + type: REQUIRED_STRING_TYPE_NODE, + }, + }, + }), + ], + [ + PROVIDER_ID, + newDirectiveArgumentData({ + directive: `@${EDFS_NATS_SUBSCRIBE}`, + defaultValue: { + kind: Kind.STRING, + value: DEFAULT_EDFS_PROVIDER_ID, + }, + name: PROVIDER_ID, + namedTypeKind: Kind.SCALAR_TYPE_DEFINITION, + typeNode: REQUIRED_STRING_TYPE_NODE, + }), + ], + [ + STREAM_CONFIGURATION, + newDirectiveArgumentData({ + directive: `@${EDFS_NATS_SUBSCRIBE}`, + name: STREAM_CONFIGURATION, + namedTypeKind: Kind.INPUT_OBJECT_TYPE_DEFINITION, + typeNode: stringToNamedTypeNode(EDFS_NATS_STREAM_CONFIGURATION), + }), + ], + ]), + locations: new Set([FIELD_DEFINITION_UPPER]), + name: EDFS_NATS_SUBSCRIBE, + node: EDFS_NATS_SUBSCRIBE_DEFINITION, + optionalArgumentNames: new Set([PROVIDER_ID, STREAM_CONFIGURATION]), + requiredArgumentNames: new Set([SUBJECTS]), +}); + +export const ONE_OF_DEFINITION_DATA = newDirectiveDefinitionData({ + locations: new Set([INPUT_OBJECT_UPPER]), + name: ONE_OF, + node: ONE_OF_DEFINITION, +}); + +export const OVERRIDE_DEFINITION_DATA = newDirectiveDefinitionData({ + argumentDataByName: new Map([ + [ + FROM, + newDirectiveArgumentData({ + directive: `@${OVERRIDE}`, + name: FROM, + namedTypeKind: Kind.SCALAR_TYPE_DEFINITION, + typeNode: REQUIRED_STRING_TYPE_NODE, + }), + ], + ]), + locations: new Set([FIELD_DEFINITION_UPPER]), + name: OVERRIDE, + node: OVERRIDE_DEFINITION, + requiredArgumentNames: new Set([FROM]), +}); + +export const KEY_DEFINITION_DATA = newDirectiveDefinitionData({ + argumentDataByName: new Map([ + [ + FIELDS, + newDirectiveArgumentData({ + directive: `@${KEY}`, + name: FIELDS, + namedTypeKind: Kind.SCALAR_TYPE_DEFINITION, + typeNode: REQUIRED_FIELDSET_TYPE_NODE, + }), + ], + [ + RESOLVABLE, + newDirectiveArgumentData({ + defaultValue: { + kind: Kind.BOOLEAN, + value: true, + }, + directive: `@${KEY}`, + name: RESOLVABLE, + namedTypeKind: Kind.SCALAR_TYPE_DEFINITION, + typeNode: stringToNamedTypeNode(BOOLEAN_SCALAR), + }), + ], + ]), + isRepeatable: true, + locations: new Set([INTERFACE_UPPER, OBJECT_UPPER]), + name: KEY, + node: KEY_DEFINITION, + optionalArgumentNames: new Set([RESOLVABLE]), + requiredArgumentNames: new Set([FIELDS]), +}); + +export const LINK_DEFINITION_DATA = newDirectiveDefinitionData({ + argumentDataByName: new Map([ + [ + URL_LOWER, + newDirectiveArgumentData({ + directive: `@${LINK}`, + name: URL_LOWER, + namedTypeKind: Kind.SCALAR_TYPE_DEFINITION, + typeNode: REQUIRED_STRING_TYPE_NODE, + }), + ], + [ + AS, + newDirectiveArgumentData({ + directive: `@${LINK}`, + name: AS, + namedTypeKind: Kind.SCALAR_TYPE_DEFINITION, + typeNode: stringToNamedTypeNode(STRING_SCALAR), + }), + ], + [ + FOR, + newDirectiveArgumentData({ + directive: `@${LINK}`, + name: FOR, + namedTypeKind: Kind.ENUM_TYPE_DEFINITION, + typeNode: stringToNamedTypeNode(LINK_PURPOSE), + }), + ], + [ + IMPORT, + newDirectiveArgumentData({ + directive: `@${LINK}`, + name: IMPORT, + namedTypeKind: Kind.SCALAR_TYPE_DEFINITION, + typeNode: { + kind: Kind.LIST_TYPE, + type: stringToNamedTypeNode(LINK_IMPORT), + }, + }), + ], + ]), + isRepeatable: true, + locations: new Set([SCHEMA_UPPER]), + name: LINK, + node: LINK_DEFINITION, + optionalArgumentNames: new Set([AS, FOR, IMPORT]), + requiredArgumentNames: new Set([URL_LOWER]), +}); + +export const LIST_SIZE_DEFINITION_DATA = newDirectiveDefinitionData({ + argumentDataByName: new Map([ + [ + ASSUMED_SIZE, + newDirectiveArgumentData({ + directive: `@${LIST_SIZE}`, + name: ASSUMED_SIZE, + namedTypeKind: Kind.SCALAR_TYPE_DEFINITION, + typeNode: stringToNamedTypeNode(INT_SCALAR), + }), + ], + [ + SLICING_ARGUMENTS, + newDirectiveArgumentData({ + directive: `@${LIST_SIZE}`, + name: SLICING_ARGUMENTS, + namedTypeKind: Kind.SCALAR_TYPE_DEFINITION, + typeNode: { + kind: Kind.LIST_TYPE, + type: REQUIRED_STRING_TYPE_NODE, + }, + }), + ], + [ + SIZED_FIELDS, + newDirectiveArgumentData({ + directive: `@${LIST_SIZE}`, + name: SIZED_FIELDS, + namedTypeKind: Kind.SCALAR_TYPE_DEFINITION, + typeNode: { + kind: Kind.LIST_TYPE, + type: REQUIRED_STRING_TYPE_NODE, + }, + }), + ], + [ + REQUIRE_ONE_SLICING_ARGUMENT, + newDirectiveArgumentData({ + directive: `@${LIST_SIZE}`, + name: REQUIRE_ONE_SLICING_ARGUMENT, + namedTypeKind: Kind.SCALAR_TYPE_DEFINITION, + typeNode: stringToNamedTypeNode(BOOLEAN_SCALAR), + defaultValue: { + kind: Kind.BOOLEAN, + value: true, + }, + }), + ], + ]), + locations: new Set([FIELD_DEFINITION_UPPER]), + name: LIST_SIZE, + node: LIST_SIZE_DEFINITION, + optionalArgumentNames: new Set([ + ASSUMED_SIZE, + SLICING_ARGUMENTS, + SIZED_FIELDS, + REQUIRE_ONE_SLICING_ARGUMENT, + ]), +}); + +export const PROVIDES_DEFINITION_DATA = newDirectiveDefinitionData({ + argumentDataByName: new Map([ + [ + FIELDS, + newDirectiveArgumentData({ + directive: `@${PROVIDES}`, + name: FIELDS, + namedTypeKind: Kind.SCALAR_TYPE_DEFINITION, + typeNode: REQUIRED_FIELDSET_TYPE_NODE, + }), + ], + ]), + locations: new Set([FIELD_DEFINITION_UPPER]), + name: PROVIDES, + node: PROVIDES_DEFINITION, + requiredArgumentNames: new Set([FIELDS]), +}); + +export const REQUIRES_DEFINITION_DATA = newDirectiveDefinitionData({ + argumentDataByName: new Map([ + [ + FIELDS, + newDirectiveArgumentData({ + directive: `@${REQUIRES}`, + name: FIELDS, + namedTypeKind: Kind.SCALAR_TYPE_DEFINITION, + typeNode: REQUIRED_FIELDSET_TYPE_NODE, + }), + ], + ]), + locations: new Set([FIELD_DEFINITION_UPPER]), + name: REQUIRES, + node: REQUIRES_DEFINITION, + requiredArgumentNames: new Set([FIELDS]), +}); + +export const REDIS_PUBLISH_DEFINITION_DATA = newDirectiveDefinitionData({ + argumentDataByName: new Map([ + [ + CHANNEL, + newDirectiveArgumentData({ + directive: `@${EDFS_REDIS_PUBLISH}`, + name: CHANNEL, + namedTypeKind: Kind.SCALAR_TYPE_DEFINITION, + typeNode: REQUIRED_STRING_TYPE_NODE, + }), + ], + [ + PROVIDER_ID, + newDirectiveArgumentData({ + defaultValue: { + kind: Kind.STRING, + value: DEFAULT_EDFS_PROVIDER_ID, + }, + directive: `@${EDFS_REDIS_PUBLISH}`, + name: PROVIDER_ID, + namedTypeKind: Kind.SCALAR_TYPE_DEFINITION, + typeNode: REQUIRED_STRING_TYPE_NODE, + }), + ], + ]), + locations: new Set([FIELD_DEFINITION_UPPER]), + name: EDFS_REDIS_PUBLISH, + node: EDFS_REDIS_PUBLISH_DEFINITION, + optionalArgumentNames: new Set([PROVIDER_ID]), + requiredArgumentNames: new Set([CHANNEL]), +}); + +export const REDIS_SUBSCRIBE_DEFINITION_DATA = newDirectiveDefinitionData({ + argumentDataByName: new Map([ + [ + CHANNELS, + newDirectiveArgumentData({ + directive: `@${EDFS_REDIS_SUBSCRIBE}`, + name: CHANNELS, + namedTypeKind: Kind.SCALAR_TYPE_DEFINITION, + typeNode: { + kind: Kind.NON_NULL_TYPE, + type: { + kind: Kind.LIST_TYPE, + type: REQUIRED_STRING_TYPE_NODE, + }, + }, + }), + ], + [ + PROVIDER_ID, + newDirectiveArgumentData({ + directive: `@${EDFS_REDIS_SUBSCRIBE}`, + name: PROVIDER_ID, + namedTypeKind: Kind.SCALAR_TYPE_DEFINITION, + typeNode: REQUIRED_STRING_TYPE_NODE, + defaultValue: { + kind: Kind.STRING, + value: DEFAULT_EDFS_PROVIDER_ID, + }, + }), + ], + ]), + locations: new Set([FIELD_DEFINITION_UPPER]), + name: EDFS_REDIS_SUBSCRIBE, + node: EDFS_REDIS_SUBSCRIBE_DEFINITION, + optionalArgumentNames: new Set([PROVIDER_ID]), + requiredArgumentNames: new Set([CHANNELS]), +}); + +export const REQUIRE_FETCH_REASONS_DEFINITION_DATA = newDirectiveDefinitionData({ + isRepeatable: true, + locations: new Set([FIELD_DEFINITION_UPPER, INTERFACE_UPPER, OBJECT_UPPER]), + name: REQUIRE_FETCH_REASONS, + node: REQUIRE_FETCH_REASONS_DEFINITION, +}); + +export const REQUIRES_SCOPES_DEFINITION_DATA = newDirectiveDefinitionData({ + argumentDataByName: new Map([ + [ + SCOPES, + newDirectiveArgumentData({ + directive: `@${REQUIRES_SCOPES}`, + name: SCOPES, + namedTypeKind: Kind.SCALAR_TYPE_DEFINITION, + typeNode: { + kind: Kind.NON_NULL_TYPE, + type: { + kind: Kind.LIST_TYPE, + type: { + kind: Kind.NON_NULL_TYPE, + type: { + kind: Kind.LIST_TYPE, + type: { + kind: Kind.NON_NULL_TYPE, + type: stringToNamedTypeNode(SCOPE_SCALAR), + }, + }, + }, + }, + }, + }), + ], + ]), + locations: new Set([ + ENUM_UPPER, + FIELD_DEFINITION_UPPER, + INTERFACE_UPPER, + OBJECT_UPPER, + SCALAR_UPPER, + ]), + name: REQUIRES_SCOPES, + node: REQUIRES_SCOPES_DEFINITION, + requiredArgumentNames: new Set([SCOPES]), +}); + +export const SEMANTIC_NON_NULL_DEFINITION_DATA = newDirectiveDefinitionData({ + argumentDataByName: new Map([ + [ + LEVELS, + newDirectiveArgumentData({ + defaultValue: { + kind: Kind.LIST, + values: [ + { + kind: Kind.INT, + value: '0', + }, + ], + }, + directive: `@${SEMANTIC_NON_NULL}`, + name: LEVELS, + namedTypeKind: Kind.SCALAR_TYPE_DEFINITION, + typeNode: { + kind: Kind.NON_NULL_TYPE, + type: { + kind: Kind.LIST_TYPE, + type: { + kind: Kind.NON_NULL_TYPE, + type: stringToNamedTypeNode(INT_SCALAR), + }, + }, + }, + }), + ], + ]), + locations: new Set([FIELD_DEFINITION_UPPER]), + name: SEMANTIC_NON_NULL, + node: SEMANTIC_NON_NULL_DEFINITION, + optionalArgumentNames: new Set([LEVELS]), +}); + +export const SPECIFIED_BY_DEFINITION_DATA = newDirectiveDefinitionData({ + argumentDataByName: new Map([ + [ + URL_LOWER, + newDirectiveArgumentData({ + directive: `@${SPECIFIED_BY}`, + name: URL_LOWER, + namedTypeKind: Kind.SCALAR_TYPE_DEFINITION, + typeNode: REQUIRED_STRING_TYPE_NODE, + }), + ], + ]), + locations: new Set([SCALAR_UPPER]), + name: SPECIFIED_BY, + node: SPECIFIED_BY_DEFINITION, + requiredArgumentNames: new Set([URL_LOWER]), +}); + +export const SHAREABLE_DEFINITION_DATA = newDirectiveDefinitionData({ + isRepeatable: true, + locations: new Set([FIELD_DEFINITION_UPPER, OBJECT_UPPER]), + name: SHAREABLE, + node: SHAREABLE_DEFINITION, +}); + +export const SUBSCRIPTION_FILTER_DEFINITION_DATA = newDirectiveDefinitionData({ + argumentDataByName: new Map([ + [ + CONDITION, + newDirectiveArgumentData({ + directive: `@${SUBSCRIPTION_FILTER}`, + name: CONDITION, + namedTypeKind: Kind.INPUT_OBJECT_TYPE_DEFINITION, + typeNode: { + kind: Kind.NON_NULL_TYPE, + type: stringToNamedTypeNode(SUBSCRIPTION_FILTER_CONDITION), + }, + }), + ], + ]), + locations: new Set([FIELD_DEFINITION_UPPER]), + name: SUBSCRIPTION_FILTER, + node: SUBSCRIPTION_FILTER_DEFINITION, + requiredArgumentNames: new Set([CONDITION]), +}); + +export const TAG_DEFINITION_DATA = newDirectiveDefinitionData({ + argumentDataByName: new Map([ + [ + NAME, + newDirectiveArgumentData({ + directive: `@${TAG}`, + name: NAME, + namedTypeKind: Kind.SCALAR_TYPE_DEFINITION, + typeNode: REQUIRED_STRING_TYPE_NODE, + }), + ], + ]), + isRepeatable: true, + locations: new Set([ + ARGUMENT_DEFINITION_UPPER, + ENUM_UPPER, + ENUM_VALUE_UPPER, + FIELD_DEFINITION_UPPER, + INPUT_FIELD_DEFINITION_UPPER, + INPUT_OBJECT_UPPER, + INTERFACE_UPPER, + OBJECT_UPPER, + SCALAR_UPPER, + UNION_UPPER, + ]), + name: TAG, + node: TAG_DEFINITION, + requiredArgumentNames: new Set([NAME]), +}); diff --git a/composition/src/directive-definition-data/types/params.ts b/composition/src/directive-definition-data/types/params.ts new file mode 100644 index 0000000000..dffc39c727 --- /dev/null +++ b/composition/src/directive-definition-data/types/params.ts @@ -0,0 +1,67 @@ +import { + type ArgumentName, + type Directive, + type DirectiveLocation, + type DirectiveName, + type SubgraphName, +} from '../../types/types'; +import { type ConfigureDescriptionData } from '../../schema-building/types/types'; +import { + type ConstDirectiveNode, + type ConstValueNode, + type DirectiveDefinitionNode, + type InputValueDefinitionNode, + type Kind, + type StringValueNode, +} from 'graphql/'; +import { type InputNodeKind } from '../../utils/types'; +import type { MutableInputValueNode, MutableTypeNode } from '../../schema-building/ast'; +import { type DirectiveArgumentData, type DirectiveDefinitionData } from './types'; + +export type UpsertFederatedDirectiveDataParams = { + executableDirectiveDatasByName: Map>; + existingDataByName: Map; + incomingDataByName: Map; +}; + +export type AddDirectiveArgumentDataByNodeParams = { + directiveName: DirectiveName; + node: InputValueDefinitionNode; + optionalArgumentNames: Set; + requiredArgumentNames: Set; +}; + +export type DirectiveArgumentDataParams = { + directive: Directive; + name: ArgumentName; + namedTypeKind: InputNodeKind | Kind.NULL; + typeNode: MutableTypeNode; + configureDescriptionDataBySubgraphName?: Map; + directivesByName?: Map>; + defaultValue?: ConstValueNode; + description?: StringValueNode; + node?: MutableInputValueNode; + requiredSubgraphNames?: Set; + subgraphNames?: Set; +}; + +export type DirectiveDefinitionDataParams = { + locations: Set; + name: DirectiveName; + node: DirectiveDefinitionNode; + // configureDescriptionDataBySubgraphName?: Map; + argumentDataByName?: Map; + description?: StringValueNode; + isComposed?: boolean; + isReferenced?: boolean; + isRepeatable?: boolean; + optionalArgumentNames?: Set; + requiredArgumentNames?: Set; + subgraphNames?: Set; +}; + +export type ExtractDirectiveArgumentDataParams = { + directiveName: DirectiveName; + errorMessages: Array; + argumentNodes?: ReadonlyArray | Array; +}; diff --git a/composition/src/directive-definition-data/types/types.ts b/composition/src/directive-definition-data/types/types.ts new file mode 100644 index 0000000000..057592774f --- /dev/null +++ b/composition/src/directive-definition-data/types/types.ts @@ -0,0 +1,48 @@ +import { + type ArgumentName, + type DirectiveLocation, + type DirectiveName, + type SubgraphName, + type TypeName, +} from '../../types/types'; +import type { ConstDirectiveNode, ConstValueNode, DirectiveDefinitionNode, Kind, StringValueNode } from 'graphql'; +import type { InputNodeKind } from '../../utils/types'; +import type { MutableInputValueNode, MutableTypeNode } from '../../schema-building/ast'; +import { type ConfigureDescriptionData, type FederatedDirectivesData } from '../../schema-building/types/types'; + +export type DirectiveArgumentData = { + configureDescriptionDataBySubgraphName: Map; + directivesByName: Map>; + federatedCoords: string; + originalCoords: string; + includeDefaultValue: boolean; + kind: Kind.ARGUMENT; + name: ArgumentName; + namedTypeKind: InputNodeKind | Kind.NULL; + namedTypeName: TypeName; + node: MutableInputValueNode; + federatedDirectivesData: FederatedDirectivesData; + requiredSubgraphNames: Set; + subgraphNames: Set; + type: MutableTypeNode; + defaultValue?: ConstValueNode; + description?: StringValueNode; +}; + +export type DirectiveDefinitionData = { + argumentDataByName: Map; + executableLocations: Set; + isComposed: boolean; + isReferenced: boolean; + isRepeatable: boolean; + locations: Set; + majorVersion: number; + minorVersion: number; + name: DirectiveName; + node: DirectiveDefinitionNode; + // required arguments with a default value are considered optional + optionalArgumentNames: Set; + requiredArgumentNames: Set; + subgraphNames: Set; + description?: StringValueNode; +}; diff --git a/composition/src/directive-definition-data/utils.ts b/composition/src/directive-definition-data/utils.ts new file mode 100644 index 0000000000..7545bd3f32 --- /dev/null +++ b/composition/src/directive-definition-data/utils.ts @@ -0,0 +1,116 @@ +import { type DirectiveArgumentDataParams, type DirectiveDefinitionDataParams } from './types/params'; +import { type ConfigureDescriptionData } from '../schema-building/types/types'; +import { type ArgumentName, type DirectiveName, type SubgraphName } from '../types/types'; +import { EXECUTABLE_DIRECTIVE_LOCATIONS } from '../utils/string-constants'; +import { type ConstDirectiveNode, Kind } from 'graphql'; +import { newFederatedDirectivesData } from '../schema-building/utils'; +import { getTypeNodeNamedTypeName } from '../schema-building/ast'; +import { stringToNameNode } from '../ast/utils'; +import { type DirectiveArgumentData, type DirectiveDefinitionData } from './types/types'; +import { copyObjectValueMap } from '../utils/utils'; + +export function newDirectiveArgumentData({ + configureDescriptionDataBySubgraphName, + directive, + defaultValue, + description, + directivesByName, + name, + namedTypeKind, + node, + requiredSubgraphNames, + subgraphNames, + typeNode, +}: DirectiveArgumentDataParams): DirectiveArgumentData { + return { + configureDescriptionDataBySubgraphName: + configureDescriptionDataBySubgraphName ?? new Map(), + directivesByName: directivesByName ?? new Map>(), + federatedCoords: directive, + federatedDirectivesData: newFederatedDirectivesData(), + includeDefaultValue: !!defaultValue, + kind: Kind.ARGUMENT, + name, + namedTypeKind, + namedTypeName: getTypeNodeNamedTypeName(typeNode), + node: node ?? { + directives: [], + defaultValue, + description, + name: stringToNameNode(name), + kind: Kind.INPUT_VALUE_DEFINITION, + type: typeNode, + }, + originalCoords: directive, + requiredSubgraphNames: requiredSubgraphNames ?? new Set(), + subgraphNames: subgraphNames ?? new Set(), + type: typeNode, + defaultValue, + description, + }; +} + +export function newDirectiveDefinitionData({ + argumentDataByName, + description, + isComposed, + isReferenced, + isRepeatable, + locations, + name, + node, + optionalArgumentNames, + requiredArgumentNames, + subgraphNames, +}: DirectiveDefinitionDataParams): DirectiveDefinitionData { + return { + argumentDataByName: argumentDataByName ?? new Map(), + description, + executableLocations: locations.intersection(EXECUTABLE_DIRECTIVE_LOCATIONS), + isComposed: !!isComposed, + isReferenced: !!isReferenced, + isRepeatable: !!isRepeatable, + locations, + majorVersion: -1, + minorVersion: -1, + name, + optionalArgumentNames: optionalArgumentNames ?? new Set(), + node, + requiredArgumentNames: requiredArgumentNames ?? new Set(), + subgraphNames: subgraphNames ?? new Set(), + }; +} + +export function copyDirectiveDefinitionData({ + argumentDataByName, + description, + executableLocations, + isComposed, + isReferenced, + isRepeatable, + locations, + name, + node, + minorVersion, + majorVersion, + optionalArgumentNames, + requiredArgumentNames, + subgraphNames, +}: DirectiveDefinitionData): DirectiveDefinitionData { + return { + argumentDataByName: copyObjectValueMap(argumentDataByName), + description: description ? { ...description } : undefined, + executableLocations: new Set(executableLocations), + isComposed, + isReferenced, + isRepeatable, + locations: new Set(locations), + majorVersion, + minorVersion, + name, + node: { ...node }, + optionalArgumentNames: new Set(optionalArgumentNames), + requiredArgumentNames: new Set(requiredArgumentNames), + subgraphNames: new Set(subgraphNames), + }; +} diff --git a/composition/src/errors/errors.ts b/composition/src/errors/errors.ts index cdbc701cf1..29359afe2f 100644 --- a/composition/src/errors/errors.ts +++ b/composition/src/errors/errors.ts @@ -4,18 +4,24 @@ import { type FieldData, type InputValueData, type ObjectDefinitionData, -} from '../schema-building/types'; +} from '../schema-building/types/types'; import { type IncompatibleMergedTypesErrorParams, type IncompatibleParentTypeMergeErrorParams, type IncompatibleTypeWithProvidesErrorMessageParams, + type InvalidArgumentValueErrorParams, + type InvalidCustomDirectiveErrorParams, + type InvalidDirectiveLocationErrorParams, + type InvalidLinkDirectiveImportObjectErrorParams, type InvalidNamedTypeErrorParams, - type InvalidRootTypeFieldEventsDirectiveData, + type InvalidRepeatedDirectiveErrorParams, + type InvalidSubValueFieldLinkDirectiveImportErrorParams, + type invalidVersionLinkDirectiveUrlErrorParams, type NonExternalConditionalFieldErrorParams, type OneOfRequiredFieldsErrorParams, type SemanticNonNullLevelsIndexOutOfBoundsErrorParams, type SemanticNonNullLevelsNonNullErrorParams, -} from './types'; +} from './types/params'; import { type UnresolvableFieldData } from '../resolvability-graph/utils/utils'; import { AND_UPPER, @@ -40,7 +46,7 @@ import { VALUES, } from '../utils/string-constants'; import { MAX_SUBSCRIPTION_FILTER_DEPTH, MAXIMUM_TYPE_NESTING } from '../utils/integer-constants'; -import { getEntriesNotInHashSet, getOrThrowError, kindToNodeType, numberToOrdinal } from '../utils/utils'; +import { getEntriesNotInHashSet, getOrThrowError, kindToNodeType } from '../utils/utils'; import { type ImplementationErrors, type InvalidEntityInterface, @@ -51,10 +57,14 @@ import { printTypeNode } from '@graphql-tools/merge'; import { type ArgumentName, type DirectiveArgumentCoords, + type DirectiveLocation, + type DirectiveName, type FieldName, type NodeType, + type SubgraphName, type TypeName, } from '../types/types'; +import { type InvalidRootTypeFieldEventsDirectiveData } from './types/types'; export const minimumSubgraphRequirementError = new Error('At least one subgraph is required for federation.'); @@ -71,12 +81,12 @@ export function multipleNamedTypeDefinitionError( export function incompatibleInputValueDefaultValueTypeError( prefix: string, - path: string, + coords: string, typeString: string, defaultValue: string, ): Error { return new Error( - `The ${prefix} of type "${typeString}" defined on path "${path}" is` + + `The ${prefix} of type "${typeString}" defined on coords "${coords}" is` + ` incompatible with the default value of "${defaultValue}".`, ); } @@ -260,10 +270,17 @@ export function invalidDirectiveError( ); } -export function invalidRepeatedFederatedDirectiveErrorMessage(directiveName: string, directiveCoords: string): Error { +export function invalidCustomDirectiveError({ + directiveCoords, + directiveName, + errors, + ordinal, +}: InvalidCustomDirectiveErrorParams) { return new Error( - `The definition for the directive "@${directiveName}" does not define it as repeatable,` + - ` but the directive has been declared on more than one instance of the type "${directiveCoords}".`, + `The ${ordinal} post-federation instance of the directive "@${directiveName}" declared on coordinates` + + ` "${directiveCoords}" is invalid for the following reason` + + (errors.length > 1 ? 's:\n' : ':\n - ') + + errors.map((error) => error.message).join('\n - '), ); } @@ -271,6 +288,39 @@ export function invalidDirectiveLocationErrorMessage(directiveName: string, loca return ` The definition for "@${directiveName}" does not define "${location}" as a valid location.`; } +export function invalidDirectiveLocationError({ + directiveCoords, + directiveName, + location, +}: InvalidDirectiveLocationErrorParams): Error { + return new Error( + `The directive "@${directiveName}" declared on "${directiveCoords}" is invalid because the` + + ` directive definition for "@${directiveName}" does not define "${location}" as a valid location.`, + ); +} + +export function invalidRepeatedDirectiveError({ + directiveCoords, + directiveName, +}: InvalidRepeatedDirectiveErrorParams): Error { + return new Error( + `The multiple instances of directive "@${directiveName}" declared on "${directiveCoords}" are invalid because` + + ` the directive definition for "@${directiveName}" does not define it as repeatable.`, + ); +} + +export function undefinedRequiredArgumentsError(requiredArgumentNames: Array): Error { + return new Error( + ` The following ` + + requiredArgumentNames.length + + ` required argument` + + (requiredArgumentNames.length > 1 ? 's are' : ' is') + + ` not defined: "` + + requiredArgumentNames.join(QUOTATION_JOIN) + + `"`, + ); +} + export function undefinedRequiredArgumentsErrorMessage( directiveName: string, requiredArgumentNames: string[], @@ -298,6 +348,16 @@ export function undefinedRequiredArgumentsErrorMessage( ); } +export function unexpectedArgumentProvisionError(argumentNames: Array): Error { + return new Error( + `The following unexpected argument` + + (argumentNames.length > 1 ? 's are' : ' is') + + ` provided: "` + + argumentNames.join(QUOTATION_JOIN) + + `".`, + ); +} + export function unexpectedDirectiveArgumentErrorMessage(directiveName: string, argumentNames: string[]): string { return ( ` The definition for "@${directiveName}" does not define the following argument` + @@ -308,6 +368,15 @@ export function unexpectedDirectiveArgumentErrorMessage(directiveName: string, a ); } +export function duplicateArgumentDefinitionError(argumentNames: Array): Error { + return new Error( + `The following argument` + + (argumentNames.length > 1 ? 's are' : ' is') + + ` defined more than once: "` + + argumentNames.join(QUOTATION_JOIN) + + `".`, + ); +} export function duplicateDirectiveArgumentDefinitionsErrorMessage(argumentNames: string[]): string { return ( ` The following argument` + @@ -318,6 +387,16 @@ export function duplicateDirectiveArgumentDefinitionsErrorMessage(argumentNames: ); } +export function invalidArgumentValueError({ + argumentName, + expectedTypeString, + value, +}: InvalidArgumentValueErrorParams): Error { + return new Error( + ` The value "${value}" provided to argument "${argumentName}" is not a valid "${expectedTypeString}" type.`, + ); +} + export function invalidArgumentValueErrorMessage( value: string, hostName: string, @@ -382,10 +461,6 @@ export function invalidKeyFatalError(key: K, mapName: string): Error { return new Error(`Fatal: Expected key "${key}" to exist in the map "${mapName}".`); } -export const subgraphValidationFailureError: Error = new Error( - ` Fatal: Subgraph validation did not return a valid AST.`, -); - export function unexpectedParentKindForChildError( parentTypeName: string, expectedTypeString: string, @@ -408,10 +483,14 @@ export function subgraphValidationError(subgraphName: string, errors: Error[]): ); } -export function invalidSubgraphNameErrorMessage(index: number, newName: string): string { - return ( - `The ${numberToOrdinal(index + 1)} subgraph in the array did not define a name.` + - ` Consequently, any further errors will temporarily identify this subgraph as "${newName}".` +export const noSubgraphNameError = new Error( + `Federation could not be attempted because at least one subgraph does not define a name.`, +); + +export function duplicateSubgraphNamesError(subgraphNames: Array): Error { + return new Error( + `Federation could not be attempted because the following subgraph names are defined more` + + ` than once: "${subgraphNames.join(QUOTATION_JOIN)}".`, ); } @@ -691,13 +770,6 @@ export function duplicateFieldInFieldSetErrorMessage(fieldSet: string, fieldPath ); } -export function invalidConfigurationDataErrorMessage(typeName: string, fieldName: string, fieldSet: string): string { - return ( - ` Expected ConfigurationData to exist for type "${typeName}" when adding field "${fieldName}"` + - ` while validating field set "${fieldSet}".` - ); -} - export function incompatibleTypeWithProvidesErrorMessage({ fieldCoords, responseType, @@ -1108,12 +1180,6 @@ export const invalidNatsStreamConfigurationDefinitionErrorMessage = ` instead have the following definition:\n input edfs__NatsStreamConfiguration {\n consumerInactiveThreshold: Int! = 30\n` + ` consumerName: String!\n streamName: String!\n }`; -export function invalidEdfsDirectiveName(directiveName: string): Error { - return new Error( - `Could not retrieve definition for Event-Driven Federated Subscription directive "${directiveName}".`, - ); -} - export function invalidImplementedTypeError( typeName: string, invalidImplementationTypeStringByTypeName: Map, @@ -1590,10 +1656,18 @@ export function duplicateDirectiveDefinitionArgumentErrorMessage(argumentNames: ); } +export function duplicateDirectiveDefinitionLocationError(location: DirectiveLocation): Error { + return new Error(`The location "${location}" is defined multiple times.`); +} + export function duplicateDirectiveDefinitionLocationErrorMessage(locationName: string): string { return `- The location "${locationName}" is defined multiple times.`; } +export function invalidDirectiveDefinitionLocationError(locationName: string): Error { + return new Error(`"${locationName}" is not a valid directive location.`); +} + export function invalidDirectiveDefinitionLocationErrorMessage(locationName: string): string { return `- "${locationName}" is not a valid directive location.`; } @@ -1800,3 +1874,113 @@ export function costOnInterfaceFieldErrorMessage(directiveCoords: DirectiveArgum ` on the concrete types that implement the interface.` ); } + +export function unknownComposeDirectiveNameError(directiveName: DirectiveName): Error { + return new Error( + ` A "@composeDirective" directive defines the "name" argument value "${directiveName}" without a` + + ` corresponding directive definition in the schema.`, + ); +} + +export function invalidComposeDirectiveNameError(directiveName: DirectiveName): Error { + return new Error( + ` A "@composeDirective" directive defines the "name" argument value "${directiveName}", which is not a` + + ` custom, user-defined directive.`, + ); +} + +export function noLeadingAtComposeDirectiveNameError(directiveName: DirectiveName) { + return new Error( + `A "@composeDirective" directive defines the "name" argument value "${directiveName}" without a leading "@".`, + ); +} + +export function unimportedComposeDirectiveNameError(directiveName: DirectiveName): Error { + return new Error( + ` A "@composeDirective" directive defines the "name" argument value "${directiveName}",` + + ` which is not a member of a core feature (imported through a "@link" directive).`, + ); +} + +export const noLinkDirectiveUrlError = new Error(` A "@link" directive was defined without a "url" argument.`); + +export function invalidLinkDirectiveUrlError(url: string): Error { + return new Error(` A "@link" directive defines the "url" argument value with invalid URL "${url}".`); +} + +export function noPathLinkDirectiveUrlError(url: string) { + return new Error(` A "@link" directive defines the "url" argument value without a path in URL "${url}".`); +} + +export function noFeatureNameLinkDirectiveUrlError(url: string): Error { + return new Error( + ` A "@link" directive defines the "url" argument value without a feature name component in URL "${url}".`, + ); +} + +export function noVersionLinkDirectiveUrlError(url: string): Error { + return new Error( + ` A "@link" directive defines the "url" argument value without a version component in URL "${url}".`, + ); +} + +export function invalidVersionLinkDirectiveUrlError({ + url, + versionString, +}: invalidVersionLinkDirectiveUrlErrorParams): Error { + return new Error( + ` A "@link" directive defines the "url" argument value with invalid version string "${versionString}"` + + ` (not of the form "v1.2") in URL "${url}".`, + ); +} + +export function nonIterableLinkDirectiveImportError(kind: Kind): Error { + return new Error(` A "@link" directive defines the "import" value with non-iterable kind "${kind}"`); +} + +export function invalidFieldLinkDirectiveImportObjectError({ + fieldName, + value, +}: InvalidSubValueFieldLinkDirectiveImportErrorParams): Error { + return new Error(` A "@link" directive defines invalid sub-value "${value}": field "${fieldName}" must be a string.`); +} + +export function noNameFieldLinkDirectiveImportObjectError(value: string): Error { + return new Error(` A "@link" directive defines invalid sub-value "${value}": required field "name" is missing.`); +} + +export function unknownFieldLinkDirectiveImportObjectError({ + fieldName, + value, +}: InvalidSubValueFieldLinkDirectiveImportErrorParams): Error { + return new Error(` A "@link" directive defines invalid sub-value "${value}": unknown field "${fieldName}".`); +} + +export function invalidLinkDirectiveImportObjectError({ + name, + rename, +}: InvalidLinkDirectiveImportObjectErrorParams): Error { + return new Error( + ` A "@link" directive imports "${name}" and renames to "${rename}": if an import is not a` + + ` directive, neither value should begin with "@"; otherwise, both values should be referenced with a leading "@".`, + ); +} + +export function invalidSubValueLinkDirectiveImportError(index: number): Error { + return new Error( + ` A "@link" directive defines invalid sub-value at index ${index}:` + + ` values should be either strings or input object values of the form { name: "", as: "" }.`, + ); +} + +export function nonEqualCoreFeatureComposeDirectiveError(directiveName: DirectiveName): Error { + return new Error(` Composed directive "${directiveName}" is not linked by the same core feature in every subgraph.`); +} + +export function nonEqualComposeDirectiveMajorVersionError(directiveName: DirectiveName): Error { + return new Error(` Composed directive "${directiveName}" defines a major version mismatch across subgraphs.`); +} + +export function unknownSubgraphNameError(subgraphName: SubgraphName): Error { + return new Error(`Internal Error: Expected subgraph "${subgraphName}" to be a valid record.`); +} diff --git a/composition/src/errors/types.ts b/composition/src/errors/types/params.ts similarity index 53% rename from composition/src/errors/types.ts rename to composition/src/errors/types/params.ts index cf2e62d127..05e060c4a6 100644 --- a/composition/src/errors/types.ts +++ b/composition/src/errors/types/params.ts @@ -1,10 +1,11 @@ -import { type FieldData, type InputValueData, type ParentDefinitionData } from '../schema-building/types'; -import { type DirectiveName, type FieldName, type SubgraphName, type TypeName } from '../types/types'; - -export type InvalidRootTypeFieldEventsDirectiveData = { - definesDirectives: boolean; - invalidDirectiveNames: Array; -}; +import { type FieldData, type InputValueData, type ParentDefinitionData } from '../../schema-building/types/types'; +import { + type ArgumentName, + type DirectiveName, + type FieldName, + type SubgraphName, + type TypeName, +} from '../../types/types'; export type IncompatibleMergedTypesErrorParams = { actualType: string; @@ -54,3 +55,42 @@ export type NonExternalConditionalFieldErrorParams = { subgraphName: SubgraphName; targetCoords: string; }; + +export type invalidVersionLinkDirectiveUrlErrorParams = { + url: string; + versionString: string; +}; + +export type InvalidSubValueFieldLinkDirectiveImportErrorParams = { + fieldName: FieldName; + value: string; +}; + +export type InvalidLinkDirectiveImportObjectErrorParams = { + name: string; + rename: string; +}; + +export type InvalidCustomDirectiveErrorParams = { + directiveCoords: string; + directiveName: DirectiveName; + errors: Array; + ordinal: string; +}; + +export type InvalidDirectiveLocationErrorParams = { + directiveCoords: string; + directiveName: DirectiveName; + location: string; +}; + +export type InvalidRepeatedDirectiveErrorParams = { + directiveCoords: string; + directiveName: DirectiveName; +}; + +export type InvalidArgumentValueErrorParams = { + argumentName: ArgumentName; + value: string; + expectedTypeString: string; +}; diff --git a/composition/src/errors/types/types.ts b/composition/src/errors/types/types.ts new file mode 100644 index 0000000000..5916bd76e9 --- /dev/null +++ b/composition/src/errors/types/types.ts @@ -0,0 +1,6 @@ +import { type DirectiveName } from '../../types/types'; + +export type InvalidRootTypeFieldEventsDirectiveData = { + definesDirectives: boolean; + invalidDirectiveNames: Array; +}; diff --git a/composition/src/federation/federation.ts b/composition/src/federation/federation.ts index b822bbccfa..cd3f5e006a 100644 --- a/composition/src/federation/federation.ts +++ b/composition/src/federation/federation.ts @@ -1,4 +1,4 @@ -import { type FederationResult, type FederationResultWithContracts } from './types'; +import { type FederationResult, type FederationResultWithContracts } from './types/types'; import { federateSubgraphs as federateSubgraphsV1, federateSubgraphsContract as federateSubgraphsContractV1, @@ -9,7 +9,7 @@ import { type FederateSubgraphsContractParams, type FederateSubgraphsParams, type FederateSubgraphsWithContractsParams, -} from './params'; +} from './types/params'; export function federateSubgraphs({ options, diff --git a/composition/src/federation/params.ts b/composition/src/federation/types/params.ts similarity index 68% rename from composition/src/federation/params.ts rename to composition/src/federation/types/params.ts index 74070075d2..aa92389ea6 100644 --- a/composition/src/federation/params.ts +++ b/composition/src/federation/types/params.ts @@ -1,7 +1,7 @@ -import { type Subgraph } from '../subgraph/types'; -import type { CompositionOptions } from '../types/params'; -import { type SupportedRouterCompatibilityVersion } from '../router-compatibility-version/router-compatibility-version'; -import type { ContractName } from '../types/types'; +import { type Subgraph } from '../../subgraph/types'; +import type { CompositionOptions } from '../../types/params'; +import { type SupportedRouterCompatibilityVersion } from '../../router-compatibility-version/router-compatibility-version'; +import type { ContractName } from '../../types/types'; import { type ContractTagOptions } from './types'; export type FederateSubgraphsParams = { diff --git a/composition/src/federation/types.ts b/composition/src/federation/types/types.ts similarity index 65% rename from composition/src/federation/types.ts rename to composition/src/federation/types/types.ts index 959f32b3d9..ca4c8d8810 100644 --- a/composition/src/federation/types.ts +++ b/composition/src/federation/types/types.ts @@ -1,4 +1,4 @@ -import { type Warning } from '../warnings/types'; +import { type Warning } from '../../warnings/types'; import { type ConstDirectiveNode, type DirectiveDefinitionNode, @@ -9,41 +9,39 @@ import { import { type ConfigureDescriptionData, type ExtensionType, + type FederatedDirectivesData, type ParentDefinitionData, - type PersistedDirectivesData, -} from '../schema-building/types'; -import { type FieldConfiguration } from '../router-configuration/types'; -import { type SubgraphConfig } from '../subgraph/types'; -import type { DirectiveName, SubgraphName, TypeName } from '../types/types'; +} from '../../schema-building/types/types'; +import { type FieldConfiguration } from '../../router-configuration/types'; +import { type SubgraphConfig } from '../../subgraph/types'; +import type { DirectiveName, SubgraphName, TypeName } from '../../types/types'; +import { type ExecutionMultiFailure, type ExecutionSuccess } from '../../types/results'; -export type FederationFailure = { +export interface FederationFailure extends ExecutionMultiFailure { errors: Array; - success: false; warnings: Array; -}; +} -export type FederationSuccess = { +export interface FederationSuccess extends ExecutionSuccess { directiveDefinitionByName: Map; fieldConfigurations: Array; federatedGraphAST: DocumentNode; federatedGraphClientSchema: GraphQLSchema; federatedGraphSchema: GraphQLSchema; - parentDefinitionDataByTypeName: Map; - subgraphConfigBySubgraphName: Map; + parentDefinitionDataByTypeName: Map; + subgraphConfigBySubgraphName: Map; shouldIncludeClientSchema?: boolean; - success: true; warnings: Array; -}; +} export type FederationResult = FederationFailure | FederationSuccess; -export type FederationResultWithContractsFailure = { - success: false; +export interface FederationResultWithContractsFailure extends ExecutionMultiFailure { errors: Array; warnings: Array; -}; +} -export type FederationResultWithContractsSuccess = { +export interface FederationResultWithContractsSuccess extends ExecutionSuccess { directiveDefinitionByName: Map; fieldConfigurations: Array; federatedGraphAST: DocumentNode; @@ -52,10 +50,9 @@ export type FederationResultWithContractsSuccess = { federationResultByContractName: Map; parentDefinitionDataByTypeName: Map; subgraphConfigBySubgraphName: Map; - success: true; warnings: Array; shouldIncludeClientSchema?: boolean; -}; +} export type FederationResultWithContracts = FederationResultWithContractsFailure | FederationResultWithContractsSuccess; @@ -69,6 +66,6 @@ export type MutualParentDefinitionData = { directivesByName: Map>; extensionType: ExtensionType; name: TypeName; - persistedDirectivesData: PersistedDirectivesData; + federatedDirectivesData: FederatedDirectivesData; description?: StringValueNode; }; diff --git a/composition/src/index.ts b/composition/src/index.ts index c9f27f9ac5..cdf5877288 100644 --- a/composition/src/index.ts +++ b/composition/src/index.ts @@ -1,10 +1,15 @@ export * from './ast/utils'; export * from './buildASTSchema/buildASTSchema'; +export * from './directive-definition-data/directive-definition-data'; +export * from './directive-definition-data/types/params'; +export * from './directive-definition-data/types/types'; +export * from './directive-definition-data/utils'; export * from './errors/errors'; -export * from './errors/types'; +export * from './errors/types/params'; +export * from './errors/types/types'; export * from './federation/federation'; -export * from './federation/params'; -export * from './federation/types'; +export * from './federation/types/params'; +export * from './federation/types/types'; export * from './normalization/normalization'; export * from './normalization/params'; export * from './normalization/types'; @@ -18,7 +23,9 @@ export * from './router-compatibility-version/router-compatibility-version'; export * from './router-configuration/types'; export * from './router-configuration/utils'; export * from './schema-building/ast'; -export * from './schema-building/types'; +export * from './schema-building/types/params'; +export * from './schema-building/types/results'; +export * from './schema-building/types/types'; export * from './schema-building/utils'; export * from './subgraph/types'; export * from './types/params'; @@ -32,17 +39,19 @@ export * from './warnings/types'; // v1 export * from './v1/constants/constants'; +export * from './v1/constants/constants'; export * from './v1/constants/directive-definitions'; export * from './v1/constants/integers'; export * from './v1/constants/non-directive-definitions'; export * from './v1/constants/strings'; export * from './v1/constants/type-nodes'; -export * from './v1/federation/params'; +export * from './v1/federation/types/params'; export * from './v1/federation/utils'; export * from './v1/federation/walkers'; -export * from './v1/normalization/directive-definition-data'; +export * from './v1/normalization/batch-normalization/batch-normalizer'; +export * from './directive-definition-data/directive-definition-data'; export * from './v1/normalization/utils'; -export * from './v1/normalization/types'; +export * from './v1/normalization/types/types'; export * from './v1/normalization/walkers'; export * from './v1/schema-building/type-merging'; export * from './v1/subgraph/subgraph'; diff --git a/composition/src/normalization/normalization.ts b/composition/src/normalization/normalization.ts index 7a6138509b..374ec4d102 100644 --- a/composition/src/normalization/normalization.ts +++ b/composition/src/normalization/normalization.ts @@ -1,15 +1,10 @@ import { - batchNormalize as batchNormalizeV1, normalizeSubgraph as normalizeSubgraphV1, normalizeSubgraphFromString as normalizeSubgraphFromStringV1, } from '../v1/normalization/normalization-factory'; import { ROUTER_COMPATIBILITY_VERSION_ONE } from '../router-compatibility-version/router-compatibility-version'; -import { type BatchNormalizationResult, type NormalizationResult } from './types'; -import { - type BatchNormalizeParams, - type NormalizeSubgraphFromStringParams, - type NormalizeSubgraphParams, -} from './params'; +import { type NormalizationResult } from './types'; +import { type NormalizeSubgraphFromStringParams, type NormalizeSubgraphParams } from './params'; export function normalizeSubgraphFromString({ noLocation = true, @@ -37,15 +32,3 @@ export function normalizeSubgraph({ } } } - -export function batchNormalize({ - options, - subgraphs, - version = ROUTER_COMPATIBILITY_VERSION_ONE, -}: BatchNormalizeParams): BatchNormalizationResult { - switch (version) { - default: { - return batchNormalizeV1({ options, subgraphs }); - } - } -} diff --git a/composition/src/normalization/types.ts b/composition/src/normalization/types.ts index 65c081845f..c0edd86fa4 100644 --- a/composition/src/normalization/types.ts +++ b/composition/src/normalization/types.ts @@ -14,44 +14,46 @@ import { type EntityData, type EntityInterfaceSubgraphData, type ParentDefinitionData, - type PersistedDirectiveDefinitionData, -} from '../schema-building/types'; +} from '../schema-building/types/types'; import { type Graph } from '../resolvability-graph/graph'; import { type InternalSubgraph } from '../subgraph/types'; import { type AbstractTypeName, type DirectiveName, + type FieldName, type InterfaceTypeName, type SubgraphName, type TypeName, } from '../types/types'; +import { type ExecutionMultiFailure } from '../types/results'; +import { type LinkImportData } from '../v1/normalization/types/types'; +import { type DirectiveDefinitionData } from '../directive-definition-data/types/types'; -export type NormalizationFailure = { - errors: Array; - success: false; +export interface NormalizationFailure extends ExecutionMultiFailure { warnings: Array; -}; +} export type NormalizationSuccess = { - authorizationDataByParentTypeName: Map; - concreteTypeNamesByAbstractTypeName: Map>; + authorizationDataByParentTypeName: Map; + concreteTypeNamesByAbstractTypeName: Map>; conditionalFieldDataByCoordinates: Map; configurationDataByTypeName: Map; costs: Costs; directiveDefinitionByName: Map; entityInterfaces: Map; - entityDataByTypeName: Map; - fieldCoordsByNamedTypeName: Map>; + entityDataByTypeName: Map; + federatedDirectiveDataByName: Map; + fieldCoordsByNamedTypeName: Map>; + importDataByDirectiveName: Map; interfaceImplementationTypeNamesByInterfaceTypeName: Map>; isEventDrivenGraph: boolean; isVersionTwo: boolean; - originalTypeNameByRenamedTypeName: Map; keyFieldNamesByParentTypeName: Map>; keyFieldSetsByEntityTypeNameByKeyFieldCoords: Map>>; operationTypes: Map; - overridesByTargetSubgraphName: Map>>; - parentDefinitionDataByTypeName: Map; - persistedDirectiveDefinitionDataByDirectiveName: Map; + originalTypeNameByRenamedTypeName: Map; + overriddenFieldNamesByParentTypeNameByTargetSubgraphName: Map>>; + parentDefinitionDataByTypeName: Map; schema: GraphQLSchema; subgraphAST: DocumentNode; subgraphString: string; @@ -62,21 +64,22 @@ export type NormalizationSuccess = { export type NormalizationResult = NormalizationFailure | NormalizationSuccess; -export type BatchNormalizationFailure = { +export interface BatchNormalizationFailure extends ExecutionMultiFailure { errors: Array; - success: false; warnings: Array; -}; +} export type BatchNormalizationSuccess = { success: true; authorizationDataByParentTypeName: Map; concreteTypeNamesByAbstractTypeName: Map>; entityDataByTypeName: Map; + executableDirectiveDatasByName: Map>; + federatedDirectiveDataByName: Map; fieldCoordsByNamedTypeName: Map>; interfaceImplementationTypeNamesByInterfaceTypeName: Map>; - internalSubgraphBySubgraphName: Map; internalGraph: Graph; + internalSubgraphByName: Map; warnings: Array; }; diff --git a/composition/src/schema-building/ast.ts b/composition/src/schema-building/ast.ts index 22d28dc253..22abf43e36 100644 --- a/composition/src/schema-building/ast.ts +++ b/composition/src/schema-building/ast.ts @@ -15,9 +15,20 @@ import { type StringValueNode, type TypeNode, } from 'graphql'; -import { formatDescription, stringToNameNode } from '../ast/utils'; -import { maximumTypeNestingExceededError, unexpectedTypeNodeKindFatalError } from '../errors/errors'; +import { extractExecutableDirectiveLocations, formatDescription, stringToNameNode } from '../ast/utils'; +import { + duplicateDirectiveDefinitionLocationError, + duplicateDirectiveDefinitionLocationErrorMessage, + invalidDirectiveDefinitionLocationError, + invalidDirectiveDefinitionLocationErrorMessage, + maximumTypeNestingExceededError, + unexpectedTypeNodeKindFatalError, +} from '../errors/errors'; import { MAXIMUM_TYPE_NESTING } from '../utils/integer-constants'; +import { EXECUTABLE_DIRECTIVE_LOCATIONS } from '../utils/string-constants'; +import { TYPE_SYSTEM_DIRECTIVE_LOCATIONS } from '../v1/constants/strings'; +import { type DirectiveLocation } from '../types/types'; +import { type ExtractDirectiveLocationsResult } from './types/results'; export type MutableDirectiveDefinitionNode = { arguments: MutableInputValueNode[]; @@ -28,17 +39,6 @@ export type MutableDirectiveDefinitionNode = { description?: StringValueNode; }; -export function getMutableDirectiveDefinitionNode(node: DirectiveDefinitionNode): MutableDirectiveDefinitionNode { - return { - arguments: [], - kind: node.kind, - locations: [], - name: { ...node.name }, - repeatable: node.repeatable, - description: formatDescription(node.description), - }; -} - export type MutableEnumNode = { kind: Kind.ENUM_TYPE_DEFINITION; name: NameNode; @@ -161,26 +161,6 @@ export function getMutableObjectNode(nameNode: NameNode): MutableObjectNode { }; } -export type MutableObjectExtensionNode = { - kind: Kind.OBJECT_TYPE_EXTENSION; - name: NameNode; - description?: StringValueNode; // @extends directive would allow for a description - directives?: ConstDirectiveNode[]; - fields?: FieldDefinitionNode[]; - interfaces?: NamedTypeNode[]; -}; - -export function getMutableObjectExtensionNode( - node: ObjectTypeDefinitionNode | ObjectTypeExtensionNode, -): MutableObjectExtensionNode { - const description = node.kind === Kind.OBJECT_TYPE_DEFINITION ? node.description : undefined; - return { - kind: Kind.OBJECT_TYPE_EXTENSION, - name: { ...node.name }, - description: formatDescription(description), - }; -} - export type MutableScalarNode = { kind: Kind.SCALAR_TYPE_DEFINITION; name: NameNode; @@ -279,21 +259,42 @@ export type CompositeOutputNode = | ObjectTypeExtensionNode; export function getTypeNodeNamedTypeName(typeNode: TypeNode): string { - switch (typeNode.kind) { - case Kind.NAMED_TYPE: - return typeNode.name.value; - case Kind.LIST_TYPE: - // intentional fallthrough - case Kind.NON_NULL_TYPE: - return getTypeNodeNamedTypeName(typeNode.type); + if (typeNode.kind === Kind.NAMED_TYPE) { + return typeNode.name.value; } + return getTypeNodeNamedTypeName(typeNode.type); } export function getNamedTypeNode(typeNode: TypeNode): TypeNode { - switch (typeNode.kind) { - case Kind.NAMED_TYPE: - return typeNode; - default: - return getNamedTypeNode(typeNode.type); + if (typeNode.kind === Kind.NAMED_TYPE) { + return typeNode; + } + return getNamedTypeNode(typeNode.type); +} + +export function extractDirectiveLocations(node: DirectiveDefinitionNode): ExtractDirectiveLocationsResult { + const errors: Array = []; + const locations = new Set(); + const handledLocations = new Set(); + for (const locationNode of node.locations) { + const locationName = locationNode.value; + if (handledLocations.has(locationName)) { + continue; + } + if (!EXECUTABLE_DIRECTIVE_LOCATIONS.has(locationName) && !TYPE_SYSTEM_DIRECTIVE_LOCATIONS.has(locationName)) { + errors.push(invalidDirectiveDefinitionLocationError(locationName)); + handledLocations.add(locationName); + continue; + } + if (locations.has(locationName)) { + errors.push(duplicateDirectiveDefinitionLocationError(locationName)); + handledLocations.add(locationName); + continue; + } + locations.add(locationName); } + return { + errors, + locations, + }; } diff --git a/composition/src/schema-building/params.ts b/composition/src/schema-building/params.ts deleted file mode 100644 index 9fb585f1f1..0000000000 --- a/composition/src/schema-building/params.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { type TypeNode } from 'graphql'; -import { type InterfaceTypeName, type TypeName } from '../types/types'; - -export type IsTypeValidImplementationParams = { - concreteTypeNamesByAbstractTypeName: Map>; - implementationType: TypeNode; - interfaceImplementationTypeNamesByInterfaceTypeName: Map>; - originalType: TypeNode; -}; diff --git a/composition/src/schema-building/types/params.ts b/composition/src/schema-building/types/params.ts new file mode 100644 index 0000000000..70f4749882 --- /dev/null +++ b/composition/src/schema-building/types/params.ts @@ -0,0 +1,69 @@ +import { type StringValueNode, type TypeNode } from 'graphql'; +import { type DirectiveName, type InterfaceTypeName, type TypeName } from '../../types/types'; +import { + type EnumValueData, + type FieldData, + type InputValueData, + type NodeData, + type ParentDefinitionData, +} from './types'; +import type { MutableInputValueNode } from '../ast'; +import { type DirectiveArgumentData, type DirectiveDefinitionData } from '../../directive-definition-data/types/types'; + +export type IsTypeValidImplementationParams = { + concreteTypeNamesByAbstractTypeName: Map>; + implementationType: TypeNode; + interfaceImplementationTypeNamesByInterfaceTypeName: Map>; + originalType: TypeNode; +}; + +export type GetRouterFederatedDirectiveNodesParams = { + data: NodeData; + federatedDirectiveDataByName: Map; + parentDefinitionDataByTypeName: Map; +}; + +export type GetValidArgumentNodesParams = { + data: DirectiveDefinitionData; + federatedDirectiveDataByName: Map; + parentDefinitionDataByTypeName: Map; +}; + +export type DirectiveDefinitionNodeFromDataParams = { + data: DirectiveDefinitionData; + federatedDirectiveDataByName: Map; + parentDefinitionDataByTypeName: Map; +}; + +export type SanitizeDefaultValueParams = { + data: DirectiveArgumentData | InputValueData; + namedTypeData: ParentDefinitionData; + node?: MutableInputValueNode; +}; + +export type RouterSchemaFieldNodeFromDataParams = { + argumentNodes: Array; + data: FieldData; + federatedDirectiveDataByName: Map; + parentDefinitionDataByTypeName: Map; + description?: StringValueNode; +}; + +export type RouterSchemaInputValueNodeFromDataParams = { + data: DirectiveArgumentData | InputValueData; + federatedDirectiveDataByName: Map; + parentDefinitionDataByTypeName: Map; + description?: StringValueNode; +}; + +export type RouterSchemaNodeFromDataParams = { + data: EnumValueData | ParentDefinitionData; + federatedDirectiveDataByName: Map; + parentDefinitionDataByTypeName: Map; + description?: StringValueNode; +}; + +export type CompareAndValidateInputDefaultValuesParams = { + existingData: DirectiveArgumentData | InputValueData; + incomingData: DirectiveArgumentData | InputValueData; +}; diff --git a/composition/src/schema-building/types/results.ts b/composition/src/schema-building/types/results.ts new file mode 100644 index 0000000000..ed1d1eb3ad --- /dev/null +++ b/composition/src/schema-building/types/results.ts @@ -0,0 +1,57 @@ +import { type ConstDirectiveNode, type DirectiveDefinitionNode } from 'graphql'; +import { type MutableEnumValueNode, type MutableFieldNode, type MutableInputValueNode } from '../ast'; +import { type ExecutionMultiFailure, type ExecutionSuccess } from '../../types/results'; +import { type MutableParentDefinitionNode } from './types'; +import { type DirectiveLocation } from '../../types/types'; +import { type Warning } from '../../warnings/types'; + +export interface GetFederatedDirectiveNodesSuccess extends ExecutionSuccess { + nodes: Array; + warnings: Array; +} + +export type GetFederatedDirectiveNodesResult = ExecutionMultiFailure | GetFederatedDirectiveNodesSuccess; + +export interface InputValueNodesSuccess extends ExecutionSuccess { + nodes: Array; + warnings: Array; +} + +export type InputValueNodesResult = ExecutionMultiFailure | InputValueNodesSuccess; + +export interface DirectiveDefinitionNodeSuccess extends ExecutionSuccess { + node: DirectiveDefinitionNode; +} + +export type DirectiveDefinitionNodeResult = ExecutionMultiFailure | DirectiveDefinitionNodeSuccess; + +export interface RouterSchemaFieldNodeFromDataSuccess extends ExecutionSuccess { + node: MutableFieldNode; + warnings: Array; +} + +export type RouterSchemaFieldNodeFromDataResult = ExecutionMultiFailure | RouterSchemaFieldNodeFromDataSuccess; + +export interface RouterSchemaInputValueNodeFromDataSuccess extends ExecutionSuccess { + node: MutableInputValueNode; + warnings: Array; +} + +export type RouterSchemaInputValueNodeFromDataResult = + | ExecutionMultiFailure + | RouterSchemaInputValueNodeFromDataSuccess; + +export interface RouterSchemaNodeFromDataSuccess + extends ExecutionSuccess { + node: T; + warnings: Array; +} + +export type RouterSchemaNodeFromDataResult = + | ExecutionMultiFailure + | RouterSchemaNodeFromDataSuccess; + +export type ExtractDirectiveLocationsResult = { + errors: Array; + locations: Set; +}; diff --git a/composition/src/schema-building/types.ts b/composition/src/schema-building/types/types.ts similarity index 83% rename from composition/src/schema-building/types.ts rename to composition/src/schema-building/types/types.ts index 7861f0e540..eec1c2b8c9 100644 --- a/composition/src/schema-building/types.ts +++ b/composition/src/schema-building/types/types.ts @@ -1,14 +1,12 @@ import { type ConstDirectiveNode, type ConstValueNode, - type DirectiveDefinitionNode, type DocumentNode, type Kind, type NamedTypeNode, type OperationTypeDefinitionNode, type OperationTypeNode, type StringValueNode, - type TypeNode, } from 'graphql'; import { type MutableEnumNode, @@ -21,34 +19,24 @@ import { type MutableScalarNode, type MutableTypeNode, type MutableUnionNode, -} from './ast'; -import { type FieldSetConditionData } from '../router-configuration/types'; -import { type KeyFieldSetData } from '../v1/normalization/types'; -import { type InputNodeKind, type OutputNodeKind } from '../utils/types'; -import { type DirectiveName, type FieldName, type SubgraphName, type TypeName } from '../types/types'; - -export type ArgumentData = { - name: string; - typeNode: TypeNode; - defaultValue?: ConstValueNode; -}; +} from '../ast'; +import { type FieldSetConditionData } from '../../router-configuration/types'; +import { type KeyFieldSetData } from '../../v1/normalization/types/types'; +import { type InputNodeKind, type OutputNodeKind } from '../../utils/types'; +import { + type ArgumentName, + type DirectiveName, + type FieldName, + type SubgraphName, + type TypeName, +} from '../../types/types'; +import { type DirectiveArgumentData, type DirectiveDefinitionData } from '../../directive-definition-data/types/types'; export type ConfigureDescriptionData = { propagate: boolean; description: string; }; -export type DirectiveDefinitionData = { - argumentTypeNodeByName: Map; - isRepeatable: boolean; - locations: Set; - name: string; - node: DirectiveDefinitionNode; - // required arguments with a default value are considered optional - optionalArgumentNames: Set; - requiredArgumentNames: Set; -}; - export enum ExtensionType { EXTENDS, NONE, @@ -65,7 +53,7 @@ export type EnumDefinitionData = { kind: Kind.ENUM_TYPE_DEFINITION; name: string; node: MutableEnumNode; - persistedDirectivesData: PersistedDirectivesData; + federatedDirectivesData: FederatedDirectivesData; subgraphNames: Set; description?: StringValueNode; }; @@ -79,7 +67,7 @@ export type EnumValueData = { name: string; node: MutableEnumValueNode; parentTypeName: TypeName; - persistedDirectivesData: PersistedDirectivesData; + federatedDirectivesData: FederatedDirectivesData; subgraphNames: Set; description?: StringValueNode; }; @@ -95,7 +83,7 @@ export type ExternalFieldData = { }; export type FieldData = { - argumentDataByName: Map; + argumentDataByName: Map; configureDescriptionDataBySubgraphName: Map; directivesByName: Map>; externalFieldDataBySubgraphName: Map; @@ -110,7 +98,7 @@ export type FieldData = { node: MutableFieldNode; nullLevelsBySubgraphName: Map>; originalParentTypeName: TypeName; - persistedDirectivesData: PersistedDirectivesData; + federatedDirectivesData: FederatedDirectivesData; renamedParentTypeName: TypeName; subgraphNames: Set; type: MutableTypeNode; @@ -126,7 +114,7 @@ export type InputObjectDefinitionData = { kind: Kind.INPUT_OBJECT_TYPE_DEFINITION; name: TypeName; node: MutableInputObjectNode; - persistedDirectivesData: PersistedDirectivesData; + federatedDirectivesData: FederatedDirectivesData; subgraphNames: Set; description?: StringValueNode; }; @@ -144,7 +132,7 @@ export type InputValueData = { node: MutableInputValueNode; originalCoords: string; originalParentTypeName: TypeName; - persistedDirectivesData: PersistedDirectivesData; + federatedDirectivesData: FederatedDirectivesData; renamedParentTypeName: TypeName; requiredSubgraphNames: Set; subgraphNames: Set; @@ -165,7 +153,7 @@ export type InterfaceDefinitionData = { kind: Kind.INTERFACE_TYPE_DEFINITION; name: TypeName; node: MutableInterfaceNode; - persistedDirectivesData: PersistedDirectivesData; + federatedDirectivesData: FederatedDirectivesData; requireFetchReasonsFieldNames: Set; subgraphNames: Set; description?: StringValueNode; @@ -183,23 +171,14 @@ export type ObjectDefinitionData = { kind: Kind.OBJECT_TYPE_DEFINITION; name: TypeName; node: MutableObjectNode; - persistedDirectivesData: PersistedDirectivesData; + federatedDirectivesData: FederatedDirectivesData; renamedTypeName: TypeName; requireFetchReasonsFieldNames: Set; subgraphNames: Set; description?: StringValueNode; }; -export type PersistedDirectiveDefinitionData = { - argumentDataByName: Map; - executableLocations: Set; - name: DirectiveName; - repeatable: boolean; - subgraphNames: Set; - description?: StringValueNode; -}; - -export type PersistedDirectivesData = { +export type FederatedDirectivesData = { deprecatedReason: string; directivesByName: Map>; isDeprecated: boolean; @@ -213,7 +192,7 @@ export type ScalarDefinitionData = { kind: Kind.SCALAR_TYPE_DEFINITION; name: TypeName; node: MutableScalarNode; - persistedDirectivesData: PersistedDirectivesData; + federatedDirectivesData: FederatedDirectivesData; subgraphNames: Set; description?: StringValueNode; }; @@ -234,7 +213,7 @@ export type UnionDefinitionData = { name: TypeName; memberByMemberTypeName: Map; node: MutableUnionNode; - persistedDirectivesData: PersistedDirectivesData; + federatedDirectivesData: FederatedDirectivesData; subgraphNames: Set; description?: StringValueNode; }; @@ -252,6 +231,8 @@ export type ChildData = EnumValueData | FieldData | InputValueData; export type CompositeOutputData = InterfaceDefinitionData | ObjectDefinitionData; export type DefinitionData = + | DirectiveArgumentData + | DirectiveDefinitionData | EnumDefinitionData | EnumValueData | FieldData @@ -259,11 +240,10 @@ export type DefinitionData = | InputValueData | InterfaceDefinitionData | ObjectDefinitionData - | PersistedDirectiveDefinitionData | ScalarDefinitionData | UnionDefinitionData; -export type NodeData = ParentDefinitionData | ChildData; +export type NodeData = ChildData | ParentDefinitionData | DirectiveArgumentData; export type EntityData = { // If propagated in documentNodeByKeyFieldSet, at least one subgraph defines a resolvable key with this field set. @@ -328,3 +308,11 @@ export type EntityInterfaceFederationData = { subgraphDataByTypeName: Map; typeName: TypeName; }; + +export type MutableParentDefinitionNode = + | MutableEnumNode + | MutableInputObjectNode + | MutableInterfaceNode + | MutableObjectNode + | MutableScalarNode + | MutableUnionNode; diff --git a/composition/src/schema-building/utils.ts b/composition/src/schema-building/utils.ts index 8d9064ba13..47440b9059 100644 --- a/composition/src/schema-building/utils.ts +++ b/composition/src/schema-building/utils.ts @@ -3,8 +3,6 @@ import { type ConstDirectiveNode, type ConstValueNode, DEFAULT_DEPRECATION_REASON, - type DefinitionNode, - type DirectiveDefinitionNode, type EnumValueDefinitionNode, type EnumValueNode, type FieldDefinitionNode, @@ -17,6 +15,7 @@ import { print, type StringValueNode, type TypeNode, + visit, } from 'graphql'; import { type AuthorizationData, @@ -25,20 +24,19 @@ import { type ConditionalFieldData, type DefinitionData, type EnumDefinitionData, + type EnumValueData, ExtensionType, type ExternalFieldData, + type FederatedDirectivesData, type FieldData, type InputObjectDefinitionData, - type InputValueData, type InterfaceDefinitionData, type NodeData, type ObjectDefinitionData, type ParentDefinitionData, - type PersistedDirectiveDefinitionData, - type PersistedDirectivesData, type SchemaData, -} from './types'; -import { type MutableDefinitionNode, type MutableFieldNode, type MutableInputValueNode } from './ast'; +} from './types/types'; +import { type MutableFieldNode, type MutableInputValueNode } from './ast'; import { type InterfaceTypeNode, type ObjectTypeNode, @@ -46,11 +44,7 @@ import { setToNameNodeArray, stringToNameNode, } from '../ast/utils'; -import { - incompatibleInputValueDefaultValuesError, - invalidRepeatedFederatedDirectiveErrorMessage, - invalidRequiredInputValueError, -} from '../errors/errors'; +import { incompatibleInputValueDefaultValuesError, invalidRequiredInputValueError } from '../errors/errors'; import { type SubscriptionFilterValue } from '../router-configuration/types'; import { ARGUMENT, @@ -88,9 +82,33 @@ import { import { type InputNodeKind, type InvalidRequiredInputValueData, type OutputNodeKind } from '../utils/types'; import { getDescriptionFromString } from '../v1/federation/utils'; import { type DirectiveName, type FieldName, type SubgraphName, type TypeName } from '../types/types'; -import { type IsTypeValidImplementationParams } from './params'; - -export function newPersistedDirectivesData(): PersistedDirectivesData { +import { + type CompareAndValidateInputDefaultValuesParams, + type DirectiveDefinitionNodeFromDataParams, + type GetRouterFederatedDirectiveNodesParams, + type GetValidArgumentNodesParams, + type IsTypeValidImplementationParams, + type RouterSchemaFieldNodeFromDataParams, + type RouterSchemaInputValueNodeFromDataParams, + type RouterSchemaNodeFromDataParams, + type SanitizeDefaultValueParams, +} from './types/params'; +import { + type GetFederatedDirectiveNodesResult, + type InputValueNodesResult, + type RouterSchemaFieldNodeFromDataResult, + type RouterSchemaInputValueNodeFromDataResult, + type RouterSchemaNodeFromDataResult, +} from './types/results'; +import { validateDirectives } from '../validation/validation'; +import { type ExecutionMultiResult, type ExecutionSingleFailureResult } from '../types/results'; +import { type DirectiveArgumentData } from '../directive-definition-data/types/types'; +import { type Warning } from '../warnings/types'; +import { invalidRepeatedComposedDirectiveWarning } from '../v1/warnings/warnings'; +import { FEDERATED_DIRECTIVE_DATAS } from '../v1/normalization/utils'; +import { ROUTER_FEDERATED_DIRECTIVE_NAMES } from '../v1/constants/strings'; + +export function newFederatedDirectivesData(): FederatedDirectivesData { return { deprecatedReason: '', directivesByName: new Map>(), @@ -173,47 +191,41 @@ export function areDefaultValuesCompatible(typeNode: TypeNode, incomingDefaultVa } } -export function compareAndValidateInputValueDefaultValues( - existingData: InputValueData, - incomingData: InputValueData, - errors: Error[], -) { +export function compareAndValidateInputDefaultValues({ + existingData, + incomingData, +}: CompareAndValidateInputDefaultValuesParams): ExecutionSingleFailureResult { if (!existingData.defaultValue) { // TODO warning if default value in incoming - return; + return { + success: true, + }; } if (!incomingData.defaultValue) { // TODO warning existingData.includeDefaultValue = false; - return; + return { + success: true, + }; } const existingDefaultValueString = print(existingData.defaultValue); const incomingDefaultValueString = print(incomingData.defaultValue); - if (existingDefaultValueString !== incomingDefaultValueString) { - errors.push( - incompatibleInputValueDefaultValuesError( - `${existingData.isArgument ? ARGUMENT : INPUT_FIELD} "${existingData.name}"`, - existingData.originalCoords, - [...incomingData.subgraphNames], - existingDefaultValueString, - incomingDefaultValueString, - ), - ); - return; + if (existingDefaultValueString == incomingDefaultValueString) { + return { + success: true, + }; } -} -export function setMutualExecutableLocations( - persistedDirectiveDefinitionData: PersistedDirectiveDefinitionData, - incomingExecutableLocations: Set, -) { - const mutualExecutableLocations = new Set(); - for (const incomingExecutableLocation of incomingExecutableLocations) { - if (persistedDirectiveDefinitionData.executableLocations.has(incomingExecutableLocation)) { - mutualExecutableLocations.add(incomingExecutableLocation); - } - } - persistedDirectiveDefinitionData.executableLocations = mutualExecutableLocations; + return { + error: incompatibleInputValueDefaultValuesError( + `${existingData.kind === Kind.ARGUMENT ? ARGUMENT : INPUT_FIELD} "${existingData.name}"`, + existingData.originalCoords, + [...incomingData.subgraphNames], + existingDefaultValueString, + incomingDefaultValueString, + ), + success: false, + }; } export function isTypeNameRootType(typeName: string, operationByTypeName: Map) { @@ -330,7 +342,7 @@ export function setParentDataExtensionType(existingData: ParentDefinitionData, i } export function upsertDeprecatedDirective( - persistedDirectivesData: PersistedDirectivesData, + federatedDirectivesData: FederatedDirectivesData, incomingDirectiveNode: ConstDirectiveNode, ) { if (!incomingDirectiveNode.arguments?.length) { @@ -338,19 +350,19 @@ export function upsertDeprecatedDirective( } // The argument was already validated in the normalization factory, so it can be safely cast const incomingReasonString = (incomingDirectiveNode.arguments[0].value as StringValueNode).value; - if (persistedDirectivesData.deprecatedReason.length < incomingReasonString.length) { - persistedDirectivesData.deprecatedReason = incomingReasonString; + if (federatedDirectivesData.deprecatedReason.length < incomingReasonString.length) { + federatedDirectivesData.deprecatedReason = incomingReasonString; } } export function upsertTagDirectives( - persistedDirectivesData: PersistedDirectivesData, + federatedDirectivesData: FederatedDirectivesData, incomingDirectiveNodes: ConstDirectiveNode[], ) { for (const incomingDirectiveNode of incomingDirectiveNodes) { // The argument was already validated in the normalization factory, so it can be safely cast const incomingNameString = (incomingDirectiveNode.arguments![0].value as StringValueNode).value; - persistedDirectivesData.tagDirectiveByName.set(incomingNameString, incomingDirectiveNode); + federatedDirectivesData.tagDirectiveByName.set(incomingNameString, incomingDirectiveNode); } } @@ -359,10 +371,10 @@ export function propagateAuthDirectives(parentData: ParentDefinitionData, authDa return; } if (authData.requiresAuthentication) { - parentData.persistedDirectivesData.directivesByName.set(AUTHENTICATED, [generateSimpleDirective(AUTHENTICATED)]); + parentData.federatedDirectivesData.directivesByName.set(AUTHENTICATED, [generateSimpleDirective(AUTHENTICATED)]); } if (authData.requiredScopes.length > 0) { - parentData.persistedDirectivesData.directivesByName.set(REQUIRES_SCOPES, [ + parentData.federatedDirectivesData.directivesByName.set(REQUIRES_SCOPES, [ generateRequiresScopesDirective(authData.requiredScopes), ]); } @@ -377,10 +389,10 @@ export function propagateFieldAuthDirectives(fieldData: FieldData, authData?: Au return; } if (fieldAuthData.originalData.requiresAuthentication) { - fieldData.persistedDirectivesData.directivesByName.set(AUTHENTICATED, [generateSimpleDirective(AUTHENTICATED)]); + fieldData.federatedDirectivesData.directivesByName.set(AUTHENTICATED, [generateSimpleDirective(AUTHENTICATED)]); } if (fieldAuthData.originalData.requiredScopes.length > 0) { - fieldData.persistedDirectivesData.directivesByName.set(REQUIRES_SCOPES, [ + fieldData.federatedDirectivesData.directivesByName.set(REQUIRES_SCOPES, [ generateRequiresScopesDirective(fieldAuthData.originalData.requiredScopes), ]); } @@ -403,57 +415,126 @@ export function generateDeprecatedDirective(reason: string): ConstDirectiveNode }; } -function getValidFlattenedPersistedDirectiveNodeArray( - directivesByName: Map>, - persistedDirectiveDefinitionByName: Map, - directiveCoords: string, - errors: Error[], -): ConstDirectiveNode[] { - const persistedDirectiveNodes: Array = []; - for (const [directiveName, directiveNodes] of directivesByName) { - const persistedDirectiveDefinition = persistedDirectiveDefinitionByName.get(directiveName); - if (!persistedDirectiveDefinition) { +export function getNodeCoords(data: NodeData): string { + switch (data.kind) { + case Kind.ARGUMENT: + // Intentional fallthrough + case Kind.FIELD_DEFINITION: + // Intentional fallthrough + case Kind.INPUT_VALUE_DEFINITION: + // Intentional fallthrough + case Kind.ENUM_VALUE_DEFINITION: { + return data.federatedCoords; + } + default: { + return data.name; + } + } +} + +export function extractUniqueDirectiveNodes(directiveNodes: Array): Array { + const nodes: Array = []; + const printedNodes = new Set(); + for (const directiveNode of directiveNodes) { + const directive = print(directiveNode); + if (printedNodes.has(directive)) { + continue; + } + printedNodes.add(directive); + nodes.push(directiveNode); + } + return nodes; +} + +export function getRouterSchemaDirectiveNodes({ + data, + federatedDirectiveDataByName, + parentDefinitionDataByTypeName, +}: GetRouterFederatedDirectiveNodesParams): GetFederatedDirectiveNodesResult { + const nodes = [...data.federatedDirectivesData.tagDirectiveByName.values()]; + if (data.federatedDirectivesData.isDeprecated) { + nodes.push(generateDeprecatedDirective(data.federatedDirectivesData.deprecatedReason)); + } + const coords = getNodeCoords(data); + const errors: Array = []; + const warnings: Array = []; + for (const [directiveName, directiveNodes] of data.federatedDirectivesData.directivesByName) { + if (directiveName === SEMANTIC_NON_NULL && isFieldData(data)) { + nodes.push( + generateSemanticNonNullDirective(getFirstEntry(data.nullLevelsBySubgraphName) ?? new Set([0])), + ); + continue; + } + const directiveData = federatedDirectiveDataByName.get(directiveName); + if (!directiveData) { + continue; + } + + // Executable directives are propagated but not their in-schema usages + if (!directiveData.isComposed && !ROUTER_FEDERATED_DIRECTIVE_NAMES.has(directiveName)) { + continue; + } + /* The Apollo behaviour is that composed directive must be referenced within at least one composing subgraph else + * no usages are propagated into the federated graph. + * It's likely this behaviour is a bug, but it's mirrored here for consistency. + */ + if (directiveData.isComposed && !directiveData.isReferenced) { continue; } + if (directiveNodes.length < 2) { - persistedDirectiveNodes.push(...directiveNodes); + nodes.push(...directiveNodes); + continue; + } + + const uniqueDirectiveNodes = extractUniqueDirectiveNodes(directiveNodes); + const validationResult = validateDirectives({ + data, + directiveCoords: coords, + directiveDefinitionData: directiveData, + directiveNodes: uniqueDirectiveNodes, + parentDefinitionDataByTypeName, + }); + if (!validationResult.success) { + errors.push(...validationResult.errors); continue; } - if (!persistedDirectiveDefinition.repeatable) { - errors.push(invalidRepeatedFederatedDirectiveErrorMessage(directiveName, directiveCoords)); + + if (uniqueDirectiveNodes.length > 1 && directiveData.isComposed && !directiveData.isRepeatable) { + warnings.push( + invalidRepeatedComposedDirectiveWarning({ + directiveCoords: coords, + directiveName, + printedDirective: print(uniqueDirectiveNodes[0]), + }), + ); + nodes.push(uniqueDirectiveNodes[0]); continue; } - persistedDirectiveNodes.push(...directiveNodes); + + nodes.push(...uniqueDirectiveNodes); } - return persistedDirectiveNodes; -} -function getRouterPersistedDirectiveNodes( - nodeData: T, - persistedDirectiveDefinitionByName: Map, - errors: Error[], -): ConstDirectiveNode[] { - const persistedDirectiveNodes = [...nodeData.persistedDirectivesData.tagDirectiveByName.values()]; - if (nodeData.persistedDirectivesData.isDeprecated) { - persistedDirectiveNodes.push(generateDeprecatedDirective(nodeData.persistedDirectivesData.deprecatedReason)); - } - persistedDirectiveNodes.push( - ...getValidFlattenedPersistedDirectiveNodeArray( - nodeData.persistedDirectivesData.directivesByName, - persistedDirectiveDefinitionByName, - nodeData.name, + if (errors.length > 0) { + return { errors, - ), - ); - return persistedDirectiveNodes; + success: false, + }; + } + + return { + nodes, + success: true, + warnings, + }; } -export function getClientPersistedDirectiveNodes(nodeData: T): ConstDirectiveNode[] { +export function getClientFederatedDirectiveNodes(nodeData: T): ConstDirectiveNode[] { const persistedDirectiveNodes: Array = []; - if (nodeData.persistedDirectivesData.isDeprecated) { - persistedDirectiveNodes.push(generateDeprecatedDirective(nodeData.persistedDirectivesData.deprecatedReason)); + if (nodeData.federatedDirectivesData.isDeprecated) { + persistedDirectiveNodes.push(generateDeprecatedDirective(nodeData.federatedDirectivesData.deprecatedReason)); } - for (const [directiveName, directiveNodes] of nodeData.persistedDirectivesData.directivesByName) { + for (const [directiveName, directiveNodes] of nodeData.federatedDirectivesData.directivesByName) { if (directiveName === SEMANTIC_NON_NULL && isFieldData(nodeData)) { persistedDirectiveNodes.push( generateSemanticNonNullDirective(getFirstEntry(nodeData.nullLevelsBySubgraphName) ?? new Set([0])), @@ -473,7 +554,7 @@ export function getClientPersistedDirectiveNodes(nodeData: T } export function getClientSchemaFieldNodeByFieldData(fieldData: FieldData): MutableFieldNode { - const directives = getClientPersistedDirectiveNodes(fieldData); + const directives = getClientFederatedDirectiveNodes(fieldData); const argumentNodes: MutableInputValueNode[] = []; for (const inputValueData of fieldData.argumentDataByName.values()) { if (isNodeDataInaccessible(inputValueData)) { @@ -481,7 +562,7 @@ export function getClientSchemaFieldNodeByFieldData(fieldData: FieldData): Mutab } argumentNodes.push({ ...inputValueData.node, - directives: getClientPersistedDirectiveNodes(inputValueData), + directives: getClientFederatedDirectiveNodes(inputValueData), }); } return { @@ -491,35 +572,102 @@ export function getClientSchemaFieldNodeByFieldData(fieldData: FieldData): Mutab }; } -export function getNodeWithPersistedDirectivesByInputValueData( - inputValueData: InputValueData, - persistedDirectiveDefinitionByDirectiveName: Map, - errors: Error[], -): MutableInputValueNode { - inputValueData.node.name = stringToNameNode(inputValueData.name); - inputValueData.node.type = inputValueData.type; - inputValueData.node.description = inputValueData.description; - inputValueData.node.directives = getRouterPersistedDirectiveNodes( - inputValueData, - persistedDirectiveDefinitionByDirectiveName, - errors, - ); - if (inputValueData.includeDefaultValue) { - inputValueData.node.defaultValue = inputValueData.defaultValue; - } - return inputValueData.node; -} - -function addValidatedArgumentNodes( - argumentNodes: MutableInputValueNode[], - hostData: PersistedDirectiveDefinitionData, - persistedDirectiveDefinitionByDirectiveName: Map, - errors: Error[], - argumentNamesForFieldConfiguration?: Set, -): boolean { - const invalidRequiredArgumentErrors: InvalidRequiredInputValueData[] = []; - for (const [argumentName, argumentData] of hostData.argumentDataByName) { - const missingSubgraphs = getEntriesNotInHashSet(hostData.subgraphNames, argumentData.subgraphNames); +export function routerSchemaFieldNodeFromData({ + argumentNodes, + data, + description, + federatedDirectiveDataByName, + parentDefinitionDataByTypeName, +}: RouterSchemaFieldNodeFromDataParams): RouterSchemaFieldNodeFromDataResult { + data.node.arguments = argumentNodes; + data.node.description = description; + data.node.name = stringToNameNode(data.name); + data.node.type = data.type; + const directivesResult = getRouterSchemaDirectiveNodes({ + federatedDirectiveDataByName, + data: data, + parentDefinitionDataByTypeName, + }); + if (!directivesResult.success) { + return directivesResult; + } + + data.node.directives = directivesResult.nodes; + + return { + node: data.node, + success: true, + warnings: directivesResult.warnings, + }; +} + +export function routerSchemaInputValueNodeFromData({ + data, + description, + federatedDirectiveDataByName, + parentDefinitionDataByTypeName, +}: RouterSchemaInputValueNodeFromDataParams): RouterSchemaInputValueNodeFromDataResult { + data.node.description = description; + data.node.name = stringToNameNode(data.name); + data.node.type = data.type; + if (data.includeDefaultValue) { + data.node.defaultValue = data.defaultValue; + } + const directivesResult = getRouterSchemaDirectiveNodes({ + data, + federatedDirectiveDataByName, + parentDefinitionDataByTypeName, + }); + if (!directivesResult.success) { + return directivesResult; + } + + data.node.directives = directivesResult.nodes; + + return { + node: data.node, + success: true, + warnings: directivesResult.warnings, + }; +} + +export function routerSchemaNodeFromData({ + data, + description, + federatedDirectiveDataByName, + parentDefinitionDataByTypeName, +}: RouterSchemaNodeFromDataParams): RouterSchemaNodeFromDataResult { + data.node.description = description; + data.node.name = stringToNameNode(data.name); + const directivesResult = getRouterSchemaDirectiveNodes({ + federatedDirectiveDataByName, + data: data, + parentDefinitionDataByTypeName, + }); + if (!directivesResult.success) { + return directivesResult; + } + + data.node.directives = directivesResult.nodes; + + return { + node: data.node, + success: true, + warnings: directivesResult.warnings, + }; +} + +function getValidFederatedDirectiveArgumentNodes({ + data, + federatedDirectiveDataByName, + parentDefinitionDataByTypeName, +}: GetValidArgumentNodesParams): InputValueNodesResult { + const errors: Array = []; + const warnings: Array = []; + const invalidRequiredArgumentErrors: Array = []; + const nodes: Array = []; + for (const [argumentName, argumentData] of data.argumentDataByName) { + const missingSubgraphs = getEntriesNotInHashSet(data.subgraphNames, argumentData.subgraphNames); if (missingSubgraphs.length > 0) { // Required arguments must be defined in all subgraphs that define the field if (argumentData.requiredSubgraphNames.size > 0) { @@ -531,42 +679,68 @@ function addValidatedArgumentNodes( } /* If the argument is always optional, but it's not defined in all subgraphs that define the field, the argument should not be included in the federated graph */ + data.optionalArgumentNames.delete(argumentName); continue; } - argumentNodes.push( - getNodeWithPersistedDirectivesByInputValueData(argumentData, persistedDirectiveDefinitionByDirectiveName, errors), - ); - if (argumentNamesForFieldConfiguration) { - argumentNamesForFieldConfiguration.add(argumentName); + + const argNodeResult = routerSchemaInputValueNodeFromData({ + data: argumentData, + federatedDirectiveDataByName, + parentDefinitionDataByTypeName, + }); + if (!argNodeResult.success) { + errors.push(...argNodeResult.errors); + continue; } + + nodes.push(argNodeResult.node); + warnings.push(...argNodeResult.warnings); } + if (invalidRequiredArgumentErrors.length > 0) { - errors.push( - invalidRequiredInputValueError(DIRECTIVE_DEFINITION, `@${hostData.name}`, invalidRequiredArgumentErrors), - ); - return false; + errors.push(invalidRequiredInputValueError(DIRECTIVE_DEFINITION, `@${data.name}`, invalidRequiredArgumentErrors)); + } + + if (errors.length > 0) { + return { + errors, + success: false, + }; } - return true; + + return { + nodes, + success: true, + warnings, + }; } -export function addValidPersistedDirectiveDefinitionNodeByData( - definitions: (MutableDefinitionNode | DefinitionNode)[], - data: PersistedDirectiveDefinitionData, - persistedDirectiveDefinitionByDirectiveName: Map, - errors: Error[], -) { - const argumentNodes: MutableInputValueNode[] = []; - if (!addValidatedArgumentNodes(argumentNodes, data, persistedDirectiveDefinitionByDirectiveName, errors)) { - return; +export function propagateDirectiveDefinitionNodeFromData({ + data, + federatedDirectiveDataByName, + parentDefinitionDataByTypeName, +}: DirectiveDefinitionNodeFromDataParams): ExecutionMultiResult { + const argumentNodesResult = getValidFederatedDirectiveArgumentNodes({ + data, + federatedDirectiveDataByName, + parentDefinitionDataByTypeName, + }); + if (!argumentNodesResult.success) { + return argumentNodesResult; } - definitions.push({ - arguments: argumentNodes, + + data.node = { + arguments: argumentNodesResult.nodes, kind: Kind.DIRECTIVE_DEFINITION, - locations: setToNameNodeArray(data.executableLocations), + locations: setToNameNodeArray(data.locations), name: stringToNameNode(data.name), - repeatable: data.repeatable, + repeatable: data.isRepeatable, description: data.description, - }); + }; + + return { + success: true, + }; } type InvalidFieldNames = { @@ -681,7 +855,7 @@ export function isTypeValidImplementation({ } export function isNodeDataInaccessible(data: NodeData): boolean { - return data.persistedDirectivesData.directivesByName.has(INACCESSIBLE) || data.directivesByName.has(INACCESSIBLE); + return data.federatedDirectivesData.directivesByName.has(INACCESSIBLE) || data.directivesByName.has(INACCESSIBLE); } export function isLeafKind(kind: Kind): boolean { @@ -764,7 +938,7 @@ export function newExternalFieldData(isDefinedExternal: boolean): ExternalFieldD }; } -export function getInitialFederatedDescription(data: NodeData): StringValueNode | undefined { +export function getInitialFederatedDescription(data: NodeData | DirectiveArgumentData): StringValueNode | undefined { const { value, done } = data.configureDescriptionDataBySubgraphName.values().next(); if (done) { return data.description; @@ -802,3 +976,28 @@ export function isInterfaceNode(node: ParentTypeNode): node is InterfaceTypeNode export function isEnumData(data: ParentDefinitionData): data is EnumDefinitionData { return data.kind === Kind.ENUM_TYPE_DEFINITION; } + +export function sanitizeDefaultValue({ data, namedTypeData, node }: SanitizeDefaultValueParams) { + if (!data.defaultValue) { + return; + } + + if (!isEnumData(namedTypeData)) { + return; + } + + data.defaultValue = visit(data.defaultValue, { + StringValue: { + enter(node) { + return { + kind: Kind.ENUM, + value: node.value, + }; + }, + }, + }); + + if (node) { + node.defaultValue = data.defaultValue; + } +} diff --git a/composition/src/subgraph/types.ts b/composition/src/subgraph/types.ts index 768916ab41..ee2b001c5f 100644 --- a/composition/src/subgraph/types.ts +++ b/composition/src/subgraph/types.ts @@ -11,9 +11,15 @@ import { type ConditionalFieldData, type EntityInterfaceSubgraphData, type ParentDefinitionData, - type PersistedDirectiveDefinitionData, -} from '../schema-building/types'; -import { type DirectiveName, type FieldName, type SubgraphName, type TypeName } from '../types/types'; +} from '../schema-building/types/types'; +import { + type AbstractTypeName, + type DirectiveName, + type FieldName, + type SubgraphName, + type TypeName, +} from '../types/types'; +import { type DirectiveDefinitionData } from '../directive-definition-data/types/types'; // Properties are sorted alphabetically, optionals are last. @@ -34,20 +40,19 @@ export type SubgraphConfig = { }; export type InternalSubgraph = { - conditionalFieldDataByCoordinates: Map; + conditionalFieldDataByCoords: Map; configurationDataByTypeName: Map; definitions: DocumentNode; directiveDefinitionByName: Map; - entityInterfaces: Map; + entityInterfaceSubgraphDataByTypeName: Map; + federatedDirectiveDataByName: Map; isVersionTwo: boolean; keyFieldNamesByParentTypeName: Map>; name: SubgraphName; operationTypes: Map; overriddenFieldNamesByParentTypeName: Map>; parentDefinitionDataByTypeName: Map; - persistedDirectiveDefinitionDataByDirectiveName: Map; schema: GraphQLSchema; - url: string; costs?: Costs; schemaNode?: SchemaDefinitionNode | SchemaExtensionNode; }; diff --git a/composition/src/subgraph/types/params.ts b/composition/src/subgraph/types/params.ts new file mode 100644 index 0000000000..b270dce3f2 --- /dev/null +++ b/composition/src/subgraph/types/params.ts @@ -0,0 +1,7 @@ +import { type NormalizationSuccess } from '../../normalization/types'; +import { type SubgraphName } from '../../types/types'; + +export type InternalSubgraphFromNormalizationParams = { + normalization: NormalizationSuccess; + subgraphName: SubgraphName; +}; diff --git a/composition/src/subgraph/utils.ts b/composition/src/subgraph/utils.ts new file mode 100644 index 0000000000..81835ae559 --- /dev/null +++ b/composition/src/subgraph/utils.ts @@ -0,0 +1,26 @@ +import { type InternalSubgraph } from './types'; +import type { FieldName, TypeName } from '../types/types'; +import { type InternalSubgraphFromNormalizationParams } from './types/params'; + +export function internalSubgraphFromNormalization({ + normalization, + subgraphName, +}: InternalSubgraphFromNormalizationParams): InternalSubgraph { + return { + conditionalFieldDataByCoords: normalization.conditionalFieldDataByCoordinates, + configurationDataByTypeName: normalization.configurationDataByTypeName, + costs: normalization.costs, + definitions: normalization.subgraphAST, + directiveDefinitionByName: normalization.directiveDefinitionByName, + entityInterfaceSubgraphDataByTypeName: normalization.entityInterfaces, + federatedDirectiveDataByName: normalization.federatedDirectiveDataByName, + isVersionTwo: normalization.isVersionTwo, + keyFieldNamesByParentTypeName: normalization.keyFieldNamesByParentTypeName, + name: subgraphName, + operationTypes: normalization.operationTypes, + overriddenFieldNamesByParentTypeName: new Map>(), + parentDefinitionDataByTypeName: normalization.parentDefinitionDataByTypeName, + schema: normalization.schema, + schemaNode: normalization.schemaNode, + }; +} diff --git a/composition/src/types/results.ts b/composition/src/types/results.ts new file mode 100644 index 0000000000..4accd80bdc --- /dev/null +++ b/composition/src/types/results.ts @@ -0,0 +1,19 @@ +export interface ExecutionFailure { + success: false; +} + +export interface ExecutionMultiFailure extends ExecutionFailure { + errors: Array; +} + +export interface ExecutionSingleFailure extends ExecutionFailure { + error: Error; +} + +export interface ExecutionSuccess { + success: true; +} + +export type ExecutionMultiResult = ExecutionMultiFailure | ExecutionSuccess; + +export type ExecutionSingleFailureResult = ExecutionSingleFailure | ExecutionSuccess; diff --git a/composition/src/types/types.ts b/composition/src/types/types.ts index ef1ae90f64..21c3a291cb 100644 --- a/composition/src/types/types.ts +++ b/composition/src/types/types.ts @@ -4,9 +4,13 @@ export type ArgumentName = string; export type ContractName = string; +export type Directive = `@${DirectiveName}`; + // {DirectiveName}.{ArgumentName} export type DirectiveArgumentCoords = string; +export type DirectiveLocation = string; + export type DirectiveName = string; export type FieldName = string; diff --git a/composition/src/utils/params.ts b/composition/src/utils/params.ts index 08d3138e98..1b67392afa 100644 --- a/composition/src/utils/params.ts +++ b/composition/src/utils/params.ts @@ -12,3 +12,8 @@ export type AddMapEntriesParams = { source: Map; target: Map; }; + +export type MergeSetValueMapParams = { + source: Map>; + target: Map>; +}; diff --git a/composition/src/utils/string-constants.ts b/composition/src/utils/string-constants.ts index 9fb84d8dbf..92dacd6029 100644 --- a/composition/src/utils/string-constants.ts +++ b/composition/src/utils/string-constants.ts @@ -1,5 +1,5 @@ import { Kind } from 'graphql'; -import { type DirectiveName } from '../types/types'; +import { type DirectiveName, type FieldName } from '../types/types'; export const AS = 'as'; export const ASSUMED_SIZE = 'assumedSize'; @@ -87,6 +87,7 @@ export const LIST_SIZE = 'listSize'; export const LINK_IMPORT = 'link__Import'; export const LINK_PURPOSE = 'link__Purpose'; export const LIST = 'list'; +export const LITERAL_AT = '@'; export const LITERAL_SPACE = ' '; export const LITERAL_NEW_LINE = '\n'; export const LITERAL_PERIOD = '.'; @@ -178,10 +179,10 @@ export const EXECUTABLE_DIRECTIVE_LOCATIONS = new Set([ ]); export const ROOT_TYPE_NAMES = new Set([MUTATION, QUERY, SUBSCRIPTION]); -export const AUTHORIZATION_DIRECTIVES = new Set([AUTHENTICATED, REQUIRES_SCOPES]); -export const PERSISTED_CLIENT_DIRECTIVES = new Set([DEPRECATED, ONE_OF, SEMANTIC_NON_NULL]); -export const INHERITABLE_DIRECTIVE_NAMES = new Set([EXTERNAL, REQUIRE_FETCH_REASONS, SHAREABLE]); -export const IGNORED_FIELDS = new Set([ENTITIES_FIELD, SERVICE_FIELD]); +export const AUTHORIZATION_DIRECTIVES = new Set([AUTHENTICATED, REQUIRES_SCOPES]); +export const PERSISTED_CLIENT_DIRECTIVES = new Set([DEPRECATED, ONE_OF, SEMANTIC_NON_NULL]); +export const INHERITABLE_DIRECTIVE_NAMES = new Set([EXTERNAL, REQUIRE_FETCH_REASONS, SHAREABLE]); +export const IGNORED_FIELDS = new Set([ENTITIES_FIELD, SERVICE_FIELD]); export const INPUT_NODE_KINDS = new Set([ Kind.ENUM_TYPE_DEFINITION, @@ -199,4 +200,4 @@ export const OUTPUT_NODE_KINDS = new Set([ export const INTERFACE_NODE_KINDS = new Set([Kind.INTERFACE_TYPE_DEFINITION, Kind.INTERFACE_TYPE_EXTENSION]); -export const NON_REPEATABLE_PERSISTED_DIRECTIVES = new Set([INACCESSIBLE, ONE_OF, SEMANTIC_NON_NULL]); +export const NON_REPEATABLE_FEDERATED_DIRECTIVES = new Set([INACCESSIBLE, ONE_OF, SEMANTIC_NON_NULL]); diff --git a/composition/src/utils/utils.ts b/composition/src/utils/utils.ts index e6d2380f6b..3880654e11 100644 --- a/composition/src/utils/utils.ts +++ b/composition/src/utils/utils.ts @@ -21,7 +21,12 @@ import { } from './string-constants'; import { invalidKeyFatalError } from '../errors/errors'; import { stringToNameNode } from '../ast/utils'; -import { type AddMapEntriesParams, type AddOptionalToSetParams, type AddToSetParams } from './params'; +import { + type AddMapEntriesParams, + type AddOptionalToSetParams, + type AddToSetParams, + type MergeSetValueMapParams, +} from './params'; export function getOrThrowError(map: Map, key: K, mapName: string): V { const value = map.get(key); @@ -265,3 +270,17 @@ export function getFirstEntry(collection: Set | Map): V | undefin } return value; } + +export function mergeSetValueMap({ source, target }: MergeSetValueMapParams): void { + for (const [key, sourceSet] of source) { + const targetSet = target.get(key); + if (!targetSet) { + target.set(key, new Set(sourceSet)); + continue; + } + addIterableToSet({ + source: sourceSet, + target: targetSet, + }); + } +} diff --git a/composition/src/v1/constants/directive-definitions.ts b/composition/src/v1/constants/directive-definitions.ts index 56429b38e6..e29992cafa 100644 --- a/composition/src/v1/constants/directive-definitions.ts +++ b/composition/src/v1/constants/directive-definitions.ts @@ -1,6 +1,3 @@ -/* directive @deprecated(reason: String = "No longer supported") on ARGUMENT_DEFINITION | ENUM_VALUE | - FIELD_DEFINITION | INPUT_FIELD_DEFINITION -*/ import { DEFAULT_DEPRECATION_REASON, type DirectiveDefinitionNode, Kind } from 'graphql'; import { stringArrayToNameNodeArray, stringToNamedTypeNode, stringToNameNode } from '../../ast/utils'; import { @@ -232,6 +229,9 @@ export const COST_DEFINITION: DirectiveDefinitionNode = { repeatable: false, }; +/* directive @deprecated(reason: String = "No longer supported") on ARGUMENT_DEFINITION | ENUM_VALUE | + FIELD_DEFINITION | INPUT_FIELD_DEFINITION +*/ export const DEPRECATED_DEFINITION: DirectiveDefinitionNode = { arguments: [ { diff --git a/composition/src/v1/constants/strings.ts b/composition/src/v1/constants/strings.ts index 379b4d669f..1905a5d9ef 100644 --- a/composition/src/v1/constants/strings.ts +++ b/composition/src/v1/constants/strings.ts @@ -1,6 +1,7 @@ import { AND_UPPER, ARGUMENT_DEFINITION_UPPER, + AUTHENTICATED, BOOLEAN_SCALAR, CONNECT_FIELD_RESOLVER, CONSUMER_INACTIVE_THRESHOLD, @@ -21,6 +22,7 @@ import { FLOAT_SCALAR, ID_SCALAR, IN_UPPER, + INACCESSIBLE, INPUT_FIELD_DEFINITION_UPPER, INPUT_OBJECT_UPPER, INT_SCALAR, @@ -45,6 +47,7 @@ import { SUBSCRIPTION_FILTER, SUBSCRIPTION_FILTER_CONDITION, SUBSCRIPTION_FILTER_VALUE, + TAG, UNION_UPPER, } from '../../utils/string-constants'; import { type DefinitionNode, Kind } from 'graphql'; @@ -141,8 +144,20 @@ export const IGNORED_FEDERATED_TYPE_NAMES: ReadonlySet = new Set = new Set([ +export const ROUTER_FEDERATED_DIRECTIVE_NAMES: ReadonlySet = new Set([ + AUTHENTICATED, DEPRECATED, + INACCESSIBLE, ONE_OF, + REQUIRES_SCOPES, SEMANTIC_NON_NULL, + TAG, ]); + +export const CLIENT_FEDERATED_DIRECTIVE_NAMES: ReadonlySet = new Set([ + DEPRECATED, + ONE_OF, + SEMANTIC_NON_NULL, +]); + +export const IMPORT_VERSION_REGEX = /^v\d+\.\d+$/; diff --git a/composition/src/v1/federation/federation-factory.ts b/composition/src/v1/federation/federation-factory.ts index c71480bff8..16e0cb93a4 100644 --- a/composition/src/v1/federation/federation-factory.ts +++ b/composition/src/v1/federation/federation-factory.ts @@ -15,7 +15,6 @@ import { } from 'graphql'; import { getMutableTypeNode, - getTypeNodeNamedTypeName, type MutableDefinitionNode, type MutableEnumValueNode, type MutableFieldNode, @@ -42,7 +41,6 @@ import { invalidInterfaceImplementationError, invalidInterfaceObjectImplementationDefinitionsError, invalidReferencesOfInaccessibleTypeError, - invalidRepeatedFederatedDirectiveErrorMessage, invalidRequiredInputValueError, invalidSubscriptionFieldConditionFieldPathErrorMessage, invalidSubscriptionFieldConditionFieldPathFieldErrorMessage, @@ -86,14 +84,13 @@ import { validateImplicitFieldSets, } from './utils'; import { - CLIENT_PERSISTED_DIRECTIVE_NAMES, + CLIENT_FEDERATED_DIRECTIVE_NAMES, DEPENDENCIES_BY_DIRECTIVE_NAME, IGNORED_FEDERATED_TYPE_NAMES, SUBSCRIPTION_FILTER_INPUT_NAMES, SUBSCRIPTION_FILTER_LIST_INPUT_NAMES, } from '../constants/strings'; import { - getNodeCoords, isNodeLeaf, isObjectDefinitionData, mapToArrayOfValues, @@ -114,16 +111,17 @@ import { type SubscriptionFilterValue, } from '../../router-configuration/types'; import { BASE_SCALARS, DIRECTIVE_DEFINITION_BY_NAME, MAX_OR_SCOPES } from '../constants/constants'; -import { batchNormalize } from '../normalization/normalization-factory'; -import { isNodeQuery } from '../normalization/utils'; +import { FEDERATED_DIRECTIVE_DATAS, isNodeQuery } from '../normalization/utils'; import { type AuthorizationData, type ChildData, type CompositeOutputData, type EntityData, type EntityInterfaceFederationData, + type EnumDefinitionData, type EnumValueData, ExtensionType, + type FederatedDirectivesData, type FieldData, type InputObjectDefinitionData, type InputValueData, @@ -131,22 +129,17 @@ import { type NodeData, type ObjectDefinitionData, type ParentDefinitionData, - type PersistedDirectiveDefinitionData, - type PersistedDirectivesData, type ScalarDefinitionData, type UnionDefinitionData, -} from '../../schema-building/types'; +} from '../../schema-building/types/types'; import { - addValidPersistedDirectiveDefinitionNodeByData, areKindsEqual, - compareAndValidateInputValueDefaultValues, - generateDeprecatedDirective, - getClientPersistedDirectiveNodes, + compareAndValidateInputDefaultValues, + getClientFederatedDirectiveNodes, getClientSchemaFieldNodeByFieldData, getDefinitionDataCoords, getInitialFederatedDescription, getSubscriptionFilterValue, - isFieldData, isLeafKind, isNodeDataInaccessible, isParentDataCompositeOutputType, @@ -154,12 +147,15 @@ import { isTypeRequired, isTypeValidImplementation, MergeMethod, + newFederatedDirectivesData, newInvalidFieldNames, - newPersistedDirectivesData, propagateAuthDirectives, + propagateDirectiveDefinitionNodeFromData, propagateFieldAuthDirectives, + routerSchemaFieldNodeFromData, + routerSchemaInputValueNodeFromData, + routerSchemaNodeFromData, setLongestDescription, - setMutualExecutableLocations, setParentDataExtensionType, upsertDeprecatedDirective, upsertTagDirectives, @@ -183,10 +179,9 @@ import { type FederationResult, type FederationResultWithContracts, type MutualParentDefinitionData, -} from '../../federation/types'; +} from '../../federation/types/types'; import { AND_UPPER, - AUTHENTICATED, AUTHORIZATION_DIRECTIVES, CONDITION, DEPRECATED, @@ -199,15 +194,13 @@ import { LEFT_PARENTHESIS, LIST, LITERAL_PERIOD, - NON_REPEATABLE_PERSISTED_DIRECTIVES, + NON_REPEATABLE_FEDERATED_DIRECTIVES, NOT_UPPER, OBJECT, ONE_OF, OR_UPPER, PARENT_DEFINITION_DATA, QUERY, - REQUIRES_SCOPES, - SEMANTIC_NON_NULL, STRING, SUBSCRIPTION_FILTER, TAG, @@ -221,7 +214,6 @@ import { addNewObjectValueMapEntries, copyArrayValueMap, copyObjectValueMap, - generateSemanticNonNullDirective, generateSimpleDirective, getEntriesNotInHashSet, getFirstEntry, @@ -239,6 +231,7 @@ import type { import { type ArgumentName, type ContractName, + type DirectiveLocation, type DirectiveName, type FieldCoords, type FieldName, @@ -247,24 +240,19 @@ import { type TypeName, } from '../../types/types'; import { singleFederatedInputFieldOneOfWarning } from '../warnings/warnings'; -import type { - ExtractPersistedDirectivesParams, - FederateSubgraphsContractV1Params, - FederateSubgraphsWithContractsV1Params, - FederationFactoryParams, - FederationParams, - ValidateOneOfDirectiveParams, -} from './params'; import { - AUTHENTICATED_DEFINITION, - DEPRECATED_DEFINITION, - INACCESSIBLE_DEFINITION, - ONE_OF_DEFINITION, - REQUIRES_SCOPES_DEFINITION, - SEMANTIC_NON_NULL_DEFINITION, - TAG_DEFINITION, -} from '../constants/directive-definitions'; + type ExtractFederatedDirectivesParams, + type FederateSubgraphsContractV1Params, + type FederateSubgraphsWithContractsV1Params, + type FederationFactoryParams, + type FederationParams, + type UpsertDirectiveArgumentDataParams, + type ValidateOneOfDirectiveParams, +} from './types/params'; +import { INACCESSIBLE_DEFINITION } from '../constants/directive-definitions'; import type { CompositionOptions } from '../../types/params'; +import { BatchNormalizer } from '../normalization/batch-normalization/batch-normalizer'; +import { type DirectiveArgumentData, type DirectiveDefinitionData } from '../../directive-definition-data/types/types'; export class FederationFactory { authorizationDataByParentTypeName: Map; @@ -273,10 +261,12 @@ export class FederationFactory { clientDefinitions: Array = []; currentSubgraphName = ''; concreteTypeNamesByAbstractTypeName: Map>; - subgraphNamesByNamedTypeNameByFieldCoords = new Map>>(); + subgraphNamesByNamedTypeNameByFieldCoords = new Map>>(); entityDataByTypeName: Map; entityInterfaceFederationDataByTypeName: Map; + executableDirectiveDatasByName: Map>; errors: Array = []; + federatedDirectiveDataByName: Map; fieldConfigurationByFieldCoords = new Map(); fieldCoordsByNamedTypeName: Map>; inaccessibleCoords = new Set(); @@ -292,17 +282,7 @@ export class FederationFactory { options: CompositionOptions; parentDefinitionDataByTypeName = new Map(); parentTagDataByTypeName = new Map(); - persistedDirectiveDefinitionByDirectiveName = new Map([ - [AUTHENTICATED, AUTHENTICATED_DEFINITION], - [DEPRECATED, DEPRECATED_DEFINITION], - [INACCESSIBLE, INACCESSIBLE_DEFINITION], - [ONE_OF, ONE_OF_DEFINITION], - [REQUIRES_SCOPES, REQUIRES_SCOPES_DEFINITION], - [SEMANTIC_NON_NULL, SEMANTIC_NON_NULL_DEFINITION], - [TAG, TAG_DEFINITION], - ]); - potentialPersistedDirectiveDefinitionDataByDirectiveName = new Map(); - referencedPersistedDirectiveNames = new Set(); + referencedFederatedDirectiveNames = new Set(); routerDefinitions: Array = []; subscriptionFilterDataByFieldPath = new Map(); tagNamesByCoords = new Map>(); @@ -313,6 +293,8 @@ export class FederationFactory { concreteTypeNamesByAbstractTypeName, entityDataByTypeName, entityInterfaceFederationDataByTypeName, + executableDirectiveDatasByName, + federatedDirectiveDataByName, fieldCoordsByNamedTypeName, interfaceImplementationTypeNamesByInterfaceTypeName, internalGraph, @@ -323,8 +305,13 @@ export class FederationFactory { this.authorizationDataByParentTypeName = authorizationDataByParentTypeName; this.options = options ?? {}; this.concreteTypeNamesByAbstractTypeName = concreteTypeNamesByAbstractTypeName; + this.executableDirectiveDatasByName = executableDirectiveDatasByName; this.entityDataByTypeName = entityDataByTypeName; this.entityInterfaceFederationDataByTypeName = entityInterfaceFederationDataByTypeName; + this.federatedDirectiveDataByName = federatedDirectiveDataByName; + for (const data of FEDERATED_DIRECTIVE_DATAS) { + this.federatedDirectiveDataByName.set(data.name, data); + } this.fieldCoordsByNamedTypeName = fieldCoordsByNamedTypeName; this.interfaceImplementationTypeNamesByInterfaceTypeName = interfaceImplementationTypeNamesByInterfaceTypeName; this.internalGraph = internalGraph; @@ -332,14 +319,15 @@ export class FederationFactory { this.warnings = warnings; } - extractPersistedDirectives({ data, directivesByName }: ExtractPersistedDirectivesParams): PersistedDirectivesData { + extractFederatedDirectives({ data, directivesByName }: ExtractFederatedDirectivesParams): FederatedDirectivesData { for (const [directiveName, directiveNodes] of directivesByName) { - const definition = this.persistedDirectiveDefinitionByDirectiveName.get(directiveName); - // @authenticated and @requiresScopes are handled differently - if (!definition) { + const federatedData = this.federatedDirectiveDataByName.get(directiveName); + if (!federatedData) { continue; } - this.referencedPersistedDirectiveNames.add(directiveName); + + this.referencedFederatedDirectiveNames.add(directiveName); + // @authenticated and @requiresScopes are handled differently if (AUTHORIZATION_DIRECTIVES.has(directiveName) || directiveNodes.length < 1) { continue; } @@ -360,7 +348,7 @@ export class FederationFactory { break; } // Only add one instance of certain directives. - if (NON_REPEATABLE_PERSISTED_DIRECTIVES.has(directiveName)) { + if (NON_REPEATABLE_FEDERATED_DIRECTIVES.has(directiveName)) { break; } existingDirectives.push(...directiveNodes); @@ -513,7 +501,7 @@ export class FederationFactory { const graphNode = this.internalGraph.nodeByNodeName.get(`${this.currentSubgraphName}.${entityData.typeName}`); // Any errors in the field sets would be caught when evaluating the explicit entities, so they are ignored here validateImplicitFieldSets({ - conditionalFieldDataByCoords: internalSubgraph.conditionalFieldDataByCoordinates, + conditionalFieldDataByCoords: internalSubgraph.conditionalFieldDataByCoords, currentSubgraphName: this.currentSubgraphName, entityData, implicitKeys, @@ -530,7 +518,7 @@ export class FederationFactory { continue; } validateImplicitFieldSets({ - conditionalFieldDataByCoords: internalSubgraph.conditionalFieldDataByCoordinates, + conditionalFieldDataByCoords: internalSubgraph.conditionalFieldDataByCoords, currentSubgraphName: this.currentSubgraphName, entityData: interfaceObjectEntityData, implicitKeys, @@ -580,7 +568,7 @@ export class FederationFactory { const implicitKeys: RequiredFieldConfiguration[] = []; // Any errors in the field sets would be caught when evaluating the explicit entities, so they are ignored here validateImplicitFieldSets({ - conditionalFieldDataByCoords: internalSubgraph.conditionalFieldDataByCoordinates, + conditionalFieldDataByCoords: internalSubgraph.conditionalFieldDataByCoords, currentSubgraphName: internalSubgraph.name, entityData, implicitKeys, @@ -666,8 +654,8 @@ export class FederationFactory { ) { const existingData = enumValueDataByName.get(incomingData.name); const targetData = existingData || this.copyEnumValueData(incomingData); - this.extractPersistedDirectives({ - data: targetData.persistedDirectivesData, + this.extractFederatedDirectives({ + data: targetData.federatedDirectivesData, directivesByName: incomingData.directivesByName, }); const isValueInaccessible = isNodeDataInaccessible(incomingData); @@ -691,25 +679,78 @@ export class FederationFactory { }); } + upsertDirectiveArgumentData({ argumentDataByName, incomingData }: UpsertDirectiveArgumentDataParams): void { + const existingData = argumentDataByName.get(incomingData.name); + const targetData = existingData || this.copyDirectiveArgumentData(incomingData); + this.extractFederatedDirectives({ + data: targetData.federatedDirectivesData, + directivesByName: incomingData.directivesByName, + }); + if (!existingData) { + this.namedInputValueTypeNames.add(targetData.namedTypeName); + argumentDataByName.set(targetData.name, targetData); + return; + } + if (!incomingData.defaultValue) { + existingData.includeDefaultValue = false; + } + addNewObjectValueMapEntries( + incomingData.configureDescriptionDataBySubgraphName, + targetData.configureDescriptionDataBySubgraphName, + ); + setLongestDescription(targetData, incomingData); + addIterableToSet({ + source: incomingData.subgraphNames, + target: targetData.subgraphNames, + }); + addIterableToSet({ + source: incomingData.requiredSubgraphNames, + target: targetData.requiredSubgraphNames, + }); + // TODO refactor type merging + const mergeResult = getMostRestrictiveMergedTypeNode( + targetData.type, + incomingData.type, + incomingData.federatedCoords, + this.errors, + ); + if (mergeResult.success) { + targetData.type = mergeResult.typeNode; + } else { + this.errors.push( + incompatibleMergedTypesError({ + actualType: mergeResult.actualType, + isArgument: true, + coords: incomingData.federatedCoords, + expectedType: mergeResult.expectedType, + }), + ); + } + const validationResult = compareAndValidateInputDefaultValues({ existingData, incomingData }); + if (!validationResult.success) { + this.errors.push(validationResult.error); + } + } + // To facilitate the splitting of tag paths, field arguments do not use the renamedPath property for tagNamesByPath upsertInputValueData( inputValueDataByValueName: Map, incomingData: InputValueData, parentCoords: string, isParentInaccessible: boolean, - ) { + ): void { const existingData = inputValueDataByValueName.get(incomingData.name); const targetData = existingData || this.copyInputValueData(incomingData); - this.extractPersistedDirectives({ - data: targetData.persistedDirectivesData, + this.extractFederatedDirectives({ + data: targetData.federatedDirectivesData, directivesByName: incomingData.directivesByName, }); this.recordTagNamesByCoords(targetData, `${parentCoords}.${targetData.name}`); - this.namedInputValueTypeNames.add(targetData.namedTypeName); getValueOrDefault(this.coordsByNamedTypeName, targetData.namedTypeName, () => new Set()).add( targetData.federatedCoords, ); if (!existingData) { + this.namedInputValueTypeNames.add(targetData.namedTypeName); inputValueDataByValueName.set(targetData.name, targetData); return; } @@ -746,7 +787,10 @@ export class FederationFactory { }), ); } - compareAndValidateInputValueDefaultValues(targetData, incomingData, this.errors); + const validationResult = compareAndValidateInputDefaultValues({ existingData, incomingData }); + if (!validationResult.success) { + this.errors.push(validationResult.error); + } } handleInputValueInaccessibility(isParentInaccessible: boolean, inputValueData: InputValueData, parentCoords: string) { @@ -890,8 +934,8 @@ export class FederationFactory { ); this.namedOutputTypeNames.add(incomingData.namedTypeName); this.handleSubscriptionFilterDirective(incomingData, targetData); - this.extractPersistedDirectives({ - data: targetData.persistedDirectivesData, + this.extractFederatedDirectives({ + data: targetData.federatedDirectivesData, directivesByName: incomingData.directivesByName, }); const isFieldInaccessible = isParentInaccessible || isNodeDataInaccessible(targetData); @@ -988,11 +1032,11 @@ export class FederationFactory { recordTagNamesByCoords(data: NodeData, coords?: string) { const path = coords || data.name; - if (data.persistedDirectivesData.tagDirectiveByName.size < 1) { + if (data.federatedDirectivesData.tagDirectiveByName.size < 1) { return; } const tagNames = getValueOrDefault(this.tagNamesByCoords, path, () => new Set()); - for (const tagName of data.persistedDirectivesData.tagDirectiveByName.keys()) { + for (const tagName of data.federatedDirectivesData.tagDirectiveByName.keys()) { tagNames.add(tagName); } } @@ -1003,14 +1047,43 @@ export class FederationFactory { directivesByName: copyArrayValueMap(sourceData.directivesByName), extensionType: sourceData.extensionType, name: sourceData.name, - persistedDirectivesData: this.extractPersistedDirectives({ - data: newPersistedDirectivesData(), + federatedDirectivesData: this.extractFederatedDirectives({ + data: newFederatedDirectivesData(), directivesByName: sourceData.directivesByName, }), description: getInitialFederatedDescription(sourceData), }; } + copyDirectiveArgumentData(sourceData: DirectiveArgumentData): DirectiveArgumentData { + return { + configureDescriptionDataBySubgraphName: copyObjectValueMap(sourceData.configureDescriptionDataBySubgraphName), + directivesByName: copyArrayValueMap(sourceData.directivesByName), + defaultValue: sourceData.defaultValue, + description: getInitialFederatedDescription(sourceData), + federatedCoords: sourceData.federatedCoords, + federatedDirectivesData: this.extractFederatedDirectives({ + data: newFederatedDirectivesData(), + directivesByName: sourceData.directivesByName, + }), + includeDefaultValue: sourceData.includeDefaultValue, + kind: sourceData.kind, + name: sourceData.name, + namedTypeKind: sourceData.namedTypeKind, + namedTypeName: sourceData.namedTypeName, + node: { + directives: [], + kind: Kind.INPUT_VALUE_DEFINITION, + name: stringToNameNode(sourceData.name), + type: sourceData.type, + }, + originalCoords: sourceData.originalCoords, + requiredSubgraphNames: new Set(sourceData.requiredSubgraphNames), + subgraphNames: new Set(sourceData.subgraphNames), + type: sourceData.type, + }; + } + copyEnumValueData(sourceData: EnumValueData): EnumValueData { return { appearances: sourceData.appearances, @@ -1025,8 +1098,8 @@ export class FederationFactory { name: stringToNameNode(sourceData.name), }, parentTypeName: sourceData.parentTypeName, - persistedDirectivesData: this.extractPersistedDirectives({ - data: newPersistedDirectivesData(), + federatedDirectivesData: this.extractFederatedDirectives({ + data: newFederatedDirectivesData(), directivesByName: sourceData.directivesByName, }), subgraphNames: new Set(sourceData.subgraphNames), @@ -1054,8 +1127,8 @@ export class FederationFactory { }, originalCoords: sourceData.originalCoords, originalParentTypeName: sourceData.originalParentTypeName, - persistedDirectivesData: this.extractPersistedDirectives({ - data: newPersistedDirectivesData(), + federatedDirectivesData: this.extractFederatedDirectives({ + data: newFederatedDirectivesData(), directivesByName: sourceData.directivesByName, }), renamedParentTypeName: sourceData.renamedParentTypeName, @@ -1114,8 +1187,8 @@ export class FederationFactory { }, nullLevelsBySubgraphName: sourceData.nullLevelsBySubgraphName, originalParentTypeName: sourceData.originalParentTypeName, - persistedDirectivesData: this.extractPersistedDirectives({ - data: newPersistedDirectivesData(), + federatedDirectivesData: this.extractFederatedDirectives({ + data: newFederatedDirectivesData(), directivesByName: sourceData.directivesByName, }), renamedParentTypeName: sourceData.renamedParentTypeName, @@ -1270,8 +1343,8 @@ export class FederationFactory { } return targetData; } - this.extractPersistedDirectives({ - data: existingData.persistedDirectivesData, + this.extractFederatedDirectives({ + data: existingData.federatedDirectivesData, directivesByName: incomingData.directivesByName, }); return existingData; @@ -1427,52 +1500,6 @@ export class FederationFactory { } } - upsertPersistedDirectiveDefinitionData(incomingData: PersistedDirectiveDefinitionData, subgraphNumber: number) { - const name = incomingData.name; - const existingData = this.potentialPersistedDirectiveDefinitionDataByDirectiveName.get(name); - if (!existingData) { - // The executable directive must be defined in all subgraphs to be persisted. - if (subgraphNumber > 1) { - return; - } - const argumentDataByArgumentName = new Map(); - for (const inputValueData of incomingData.argumentDataByName.values()) { - this.namedInputValueTypeNames.add(inputValueData.namedTypeName); - this.upsertInputValueData(argumentDataByArgumentName, inputValueData, `@${incomingData.name}`, false); - } - this.potentialPersistedDirectiveDefinitionDataByDirectiveName.set(name, { - argumentDataByName: argumentDataByArgumentName, - executableLocations: new Set(incomingData.executableLocations), - name, - repeatable: incomingData.repeatable, - subgraphNames: new Set(incomingData.subgraphNames), - description: incomingData.description, - }); - return; - } - // If the executable directive has not been defined in at least one graph, the definition should not be persisted - if (existingData.subgraphNames.size + 1 !== subgraphNumber) { - this.potentialPersistedDirectiveDefinitionDataByDirectiveName.delete(name); - return; - } - setMutualExecutableLocations(existingData, incomingData.executableLocations); - // If there are no mutually defined executable locations, the definition should not be persisted - if (existingData.executableLocations.size < 1) { - this.potentialPersistedDirectiveDefinitionDataByDirectiveName.delete(name); - return; - } - for (const inputValueData of incomingData.argumentDataByName.values()) { - this.namedInputValueTypeNames.add(getTypeNodeNamedTypeName(inputValueData.type)); - this.upsertInputValueData(existingData.argumentDataByName, inputValueData, `@${existingData.name}`, false); - } - setLongestDescription(existingData, incomingData); - existingData.repeatable &&= incomingData.repeatable; - addIterableToSet({ - source: incomingData.subgraphNames, - target: existingData.subgraphNames, - }); - } - shouldUpdateFederatedFieldAbstractNamedType(abstractTypeName: string, objectTypeNames: Set): boolean { if (!abstractTypeName) { return false; @@ -1623,39 +1650,73 @@ export class FederationFactory { this.updateTypeNodeNamedType(fieldData.type, abstractTypeName); } } + upsertExecutableDirectiveDatas() { + for (const [directiveName, definitionDatas] of this.executableDirectiveDatasByName) { + for (const data of definitionDatas) { + const existingData = this.federatedDirectiveDataByName.get(directiveName); + if (!existingData) { + const argumentDataByName = new Map(); + for (const argumentData of data.argumentDataByName.values()) { + this.upsertDirectiveArgumentData({ + argumentDataByName, + incomingData: argumentData, + }); + } + // Shared set between locations and executable locations because type-system locations are removed. + const locations = new Set(data.executableLocations); + this.federatedDirectiveDataByName.set(directiveName, { + argumentDataByName, + isComposed: false, + isRepeatable: data.isRepeatable, + isReferenced: data.isReferenced, + executableLocations: locations, + locations, + majorVersion: -1, + minorVersion: -1, + name: directiveName, + description: data.description, + node: data.node, + optionalArgumentNames: new Set(data.optionalArgumentNames), + requiredArgumentNames: new Set(data.requiredArgumentNames), + subgraphNames: new Set(data.subgraphNames), + }); + continue; + } + for (const argumentData of data.argumentDataByName.values()) { + this.upsertDirectiveArgumentData({ + argumentDataByName: existingData.argumentDataByName, + incomingData: argumentData, + }); + } + for (const executableLocation of existingData.executableLocations) { + if (!data.executableLocations.has(executableLocation)) { + existingData.executableLocations.delete(executableLocation); + } + } + if (existingData.executableLocations.size < 1) { + this.federatedDirectiveDataByName.delete(directiveName); + break; + } + setLongestDescription(existingData, data); + addIterableToSet({ source: data.subgraphNames, target: existingData.subgraphNames }); + existingData.isRepeatable &&= data.isRepeatable; + } + } + } /* federateInternalSubgraphData is responsible for merging each subgraph TypeScript representation of a GraphQL type * into a single representation. * This method is always necessary, regardless of whether federating a source graph or contract graph. * */ federateInternalSubgraphData() { - let subgraphNumber = 0; - let shouldSkipPersistedExecutableDirectives = false; + this.upsertExecutableDirectiveDatas(); for (const internalSubgraph of this.internalSubgraphBySubgraphName.values()) { - subgraphNumber += 1; this.currentSubgraphName = internalSubgraph.name; this.isVersionTwo ||= internalSubgraph.isVersionTwo; renameRootTypes(this, internalSubgraph); for (const parentDefinitionData of internalSubgraph.parentDefinitionDataByTypeName.values()) { this.upsertParentDefinitionData(parentDefinitionData, internalSubgraph.name); } - if (shouldSkipPersistedExecutableDirectives) { - continue; - } - /* If a subgraph defines no executable directives, it is not possible for any definition to be in all subgraphs. - Consequently, it is no longer necessary to check for any persisted executable directives. */ - if (!internalSubgraph.persistedDirectiveDefinitionDataByDirectiveName.size) { - shouldSkipPersistedExecutableDirectives = true; - continue; - } - for (const persistedDirectiveDefinitionData of internalSubgraph.persistedDirectiveDefinitionDataByDirectiveName.values()) { - this.upsertPersistedDirectiveDefinitionData(persistedDirectiveDefinitionData, subgraphNumber); - } - /* Invalid directive keys are deleted; if there are no entries left, it is no longer necessary to evaluate more - executable directives. */ - if (this.potentialPersistedDirectiveDefinitionDataByDirectiveName.size < 1) { - shouldSkipPersistedExecutableDirectives = true; - } } this.handleDisparateFieldNamedTypes(); } @@ -1835,47 +1896,11 @@ export class FederationFactory { }; } - getValidFlattenedPersistedDirectiveNodeArray(data: NodeData): Array { - const coords = getNodeCoords(data); - const persistedDirectiveNodes: Array = []; - for (const [directiveName, directiveNodes] of data.persistedDirectivesData.directivesByName) { - if (directiveName === SEMANTIC_NON_NULL && isFieldData(data)) { - persistedDirectiveNodes.push( - generateSemanticNonNullDirective(getFirstEntry(data.nullLevelsBySubgraphName) ?? new Set([0])), - ); - continue; - } - const persistedDirectiveDefinition = this.persistedDirectiveDefinitionByDirectiveName.get(directiveName); - if (!persistedDirectiveDefinition) { - continue; - } - if (directiveNodes.length < 2) { - persistedDirectiveNodes.push(...directiveNodes); - continue; - } - if (!persistedDirectiveDefinition.repeatable) { - this.errors.push(invalidRepeatedFederatedDirectiveErrorMessage(directiveName, coords)); - continue; - } - persistedDirectiveNodes.push(...directiveNodes); - } - return persistedDirectiveNodes; - } - - getRouterPersistedDirectiveNodes(nodeData: T): ConstDirectiveNode[] { - const persistedDirectiveNodes = [...nodeData.persistedDirectivesData.tagDirectiveByName.values()]; - if (nodeData.persistedDirectivesData.isDeprecated) { - persistedDirectiveNodes.push(generateDeprecatedDirective(nodeData.persistedDirectivesData.deprecatedReason)); - } - persistedDirectiveNodes.push(...this.getValidFlattenedPersistedDirectiveNodeArray(nodeData)); - return persistedDirectiveNodes; - } - getFederatedGraphNodeDescription(data: NodeData): StringValueNode | undefined { if (data.configureDescriptionDataBySubgraphName.size < 1) { return data.description; } - const subgraphNames: Array = []; + const subgraphNames: Array = []; let descriptionToPropagate = ''; for (const [subgraphName, { propagate, description }] of data.configureDescriptionDataBySubgraphName) { if (!propagate) { @@ -1894,33 +1919,26 @@ export class FederationFactory { this.errors.push(configureDescriptionPropagationError(getDefinitionDataCoords(data, true), subgraphNames)); } - getNodeForRouterSchemaByData(data: T): T['node'] { - data.node.name = stringToNameNode(data.name); - data.node.description = this.getFederatedGraphNodeDescription(data); - data.node.directives = this.getRouterPersistedDirectiveNodes(data); - return data.node; - } - - getNodeWithPersistedDirectivesByInputValueData(inputValueData: InputValueData): MutableInputValueNode { - inputValueData.node.name = stringToNameNode(inputValueData.name); - inputValueData.node.type = inputValueData.type; - inputValueData.node.description = this.getFederatedGraphNodeDescription(inputValueData); - inputValueData.node.directives = this.getRouterPersistedDirectiveNodes(inputValueData); - if (inputValueData.includeDefaultValue) { - inputValueData.node.defaultValue = inputValueData.defaultValue; - } - return inputValueData.node; - } - getValidFieldArgumentNodes(fieldData: FieldData): MutableInputValueNode[] { const argumentNodes: Array = []; const argumentNames: Array = []; const invalidRequiredArguments: InvalidRequiredInputValueData[] = []; - const fieldPath = `${fieldData.renamedParentTypeName}.${fieldData.name}`; + const fieldCoords = `${fieldData.renamedParentTypeName}.${fieldData.name}`; for (const [argumentName, inputValueData] of fieldData.argumentDataByName) { if (fieldData.subgraphNames.size === inputValueData.subgraphNames.size) { argumentNames.push(argumentName); - argumentNodes.push(this.getNodeWithPersistedDirectivesByInputValueData(inputValueData)); + const argumentNodeResult = routerSchemaInputValueNodeFromData({ + data: inputValueData, + description: this.getFederatedGraphNodeDescription(inputValueData), + federatedDirectiveDataByName: this.federatedDirectiveDataByName, + parentDefinitionDataByTypeName: this.parentDefinitionDataByTypeName, + }); + if (argumentNodeResult.success) { + argumentNodes.push(argumentNodeResult.node); + this.warnings.push(...argumentNodeResult.warnings); + } else { + this.errors.push(...argumentNodeResult.errors); + } } else if (isTypeRequired(inputValueData.type)) { invalidRequiredArguments.push({ inputValueName: argumentName, @@ -1930,10 +1948,10 @@ export class FederationFactory { } } if (invalidRequiredArguments.length > 0) { - this.errors.push(invalidRequiredInputValueError(FIELD, fieldPath, invalidRequiredArguments)); + this.errors.push(invalidRequiredInputValueError(FIELD, fieldCoords, invalidRequiredArguments)); } else if (argumentNames.length > 0) { // fieldConfiguration might already exist through subscriptionFilter - getValueOrDefault(this.fieldConfigurationByFieldCoords, fieldPath, () => ({ + getValueOrDefault(this.fieldConfigurationByFieldCoords, fieldCoords, () => ({ argumentNames, fieldName: fieldData.name, typeName: fieldData.renamedParentTypeName, @@ -1942,18 +1960,6 @@ export class FederationFactory { return argumentNodes; } - getNodeWithPersistedDirectivesByFieldData( - fieldData: FieldData, - argumentNodes: Array, - ): MutableFieldNode { - fieldData.node.arguments = argumentNodes; - fieldData.node.name = stringToNameNode(fieldData.name); - fieldData.node.type = fieldData.type; - fieldData.node.description = this.getFederatedGraphNodeDescription(fieldData); - fieldData.node.directives = this.getRouterPersistedDirectiveNodes(fieldData); - return fieldData.node; - } - validateSemanticNonNull(data: FieldData) { let comparison: Set | undefined; for (const levels of data.nullLevelsBySubgraphName.values()) { @@ -2014,32 +2020,41 @@ export class FederationFactory { const mergeMethod = this.getEnumValueMergeMethod(parentTypeName); propagateAuthDirectives(parentDefinitionData, this.authorizationDataByParentTypeName.get(parentTypeName)); for (const enumValueData of parentDefinitionData.enumValueDataByName.values()) { - const enumValueNode = this.getNodeForRouterSchemaByData(enumValueData); const isValueInaccessible = isNodeDataInaccessible(enumValueData); const clientEnumValueNode: MutableEnumValueNode = { ...enumValueData.node, - directives: getClientPersistedDirectiveNodes(enumValueData), + directives: getClientFederatedDirectiveNodes(enumValueData), }; + const enumValueNodeResult = routerSchemaNodeFromData({ + data: enumValueData, + description: this.getFederatedGraphNodeDescription(enumValueData), + federatedDirectiveDataByName: this.federatedDirectiveDataByName, + parentDefinitionDataByTypeName: this.parentDefinitionDataByTypeName, + }); + if (!enumValueNodeResult.success) { + this.errors.push(...enumValueNodeResult.errors); + continue; + } switch (mergeMethod) { case MergeMethod.CONSISTENT: if (!isValueInaccessible && parentDefinitionData.appearances > enumValueData.appearances) { this.errors.push(incompatibleSharedEnumError(parentTypeName)); } - enumValueNodes.push(enumValueNode); + enumValueNodes.push(enumValueNodeResult.node); if (!isValueInaccessible) { clientEnumValueNodes.push(clientEnumValueNode); } break; case MergeMethod.INTERSECTION: if (parentDefinitionData.appearances === enumValueData.appearances) { - enumValueNodes.push(enumValueNode); + enumValueNodes.push(enumValueNodeResult.node); if (!isValueInaccessible) { clientEnumValueNodes.push(clientEnumValueNode); } } break; default: - enumValueNodes.push(enumValueNode); + enumValueNodes.push(enumValueNodeResult.node); if (!isValueInaccessible) { clientEnumValueNodes.push(clientEnumValueNode); } @@ -2047,7 +2062,17 @@ export class FederationFactory { } } parentDefinitionData.node.values = enumValueNodes; - this.routerDefinitions.push(this.getNodeForRouterSchemaByData(parentDefinitionData)); + const nodeResult = routerSchemaNodeFromData({ + data: parentDefinitionData, + description: this.getFederatedGraphNodeDescription(parentDefinitionData), + federatedDirectiveDataByName: this.federatedDirectiveDataByName, + parentDefinitionDataByTypeName: this.parentDefinitionDataByTypeName, + }); + if (nodeResult.success) { + this.routerDefinitions.push(nodeResult.node); + } else { + this.errors.push(...nodeResult.errors); + } if (isNodeDataInaccessible(parentDefinitionData)) { this.validateReferencesOfInaccessibleType(parentDefinitionData); this.internalGraph.setNodeInaccessible(parentDefinitionData.name); @@ -2065,7 +2090,7 @@ export class FederationFactory { } this.clientDefinitions.push({ ...parentDefinitionData.node, - directives: getClientPersistedDirectiveNodes(parentDefinitionData), + directives: getClientFederatedDirectiveNodes(parentDefinitionData), values: clientEnumValueNodes, }); break; @@ -2083,13 +2108,24 @@ export class FederationFactory { requiredFieldNames.add(inputValueName); } if (parentDefinitionData.subgraphNames.size === inputValueData.subgraphNames.size) { - inputValueNodes.push(this.getNodeWithPersistedDirectivesByInputValueData(inputValueData)); + const inputValueNodeResult = routerSchemaInputValueNodeFromData({ + data: inputValueData, + description: this.getFederatedGraphNodeDescription(inputValueData), + federatedDirectiveDataByName: this.federatedDirectiveDataByName, + parentDefinitionDataByTypeName: this.parentDefinitionDataByTypeName, + }); + if (inputValueNodeResult.success) { + inputValueNodes.push(inputValueNodeResult.node); + this.warnings.push(...inputValueNodeResult.warnings); + } else { + this.errors.push(...inputValueNodeResult.errors); + } if (isNodeDataInaccessible(inputValueData)) { continue; } clientInputValueNodes.push({ ...inputValueData.node, - directives: getClientPersistedDirectiveNodes(inputValueData), + directives: getClientFederatedDirectiveNodes(inputValueData), }); } else if (isTypeRequired(inputValueData.type)) { invalidRequiredInputs.push({ @@ -2118,7 +2154,17 @@ export class FederationFactory { break; } parentDefinitionData.node.fields = inputValueNodes; - this.routerDefinitions.push(this.getNodeForRouterSchemaByData(parentDefinitionData)); + const inputObjectNodeResult = routerSchemaNodeFromData({ + data: parentDefinitionData, + description: this.getFederatedGraphNodeDescription(parentDefinitionData), + federatedDirectiveDataByName: this.federatedDirectiveDataByName, + parentDefinitionDataByTypeName: this.parentDefinitionDataByTypeName, + }); + if (inputObjectNodeResult.success) { + this.routerDefinitions.push(inputObjectNodeResult.node); + } else { + this.errors.push(...inputObjectNodeResult.errors); + } if (isNodeDataInaccessible(parentDefinitionData)) { this.validateReferencesOfInaccessibleType(parentDefinitionData); break; @@ -2135,7 +2181,7 @@ export class FederationFactory { } this.clientDefinitions.push({ ...parentDefinitionData.node, - directives: getClientPersistedDirectiveNodes(parentDefinitionData), + directives: getClientFederatedDirectiveNodes(parentDefinitionData), fields: clientInputValueNodes, }); break; @@ -2145,7 +2191,7 @@ export class FederationFactory { case Kind.OBJECT_TYPE_DEFINITION: { const fieldNodes: Array = []; const clientSchemaFieldNodes: Array = []; - const graphFieldDataByFieldName = new Map(); + const graphFieldDataByFieldName = new Map(); const invalidFieldNames = newInvalidFieldNames(); const isObject = parentDefinitionData.kind === Kind.OBJECT_TYPE_DEFINITION; const authData = this.authorizationDataByParentTypeName.get(parentTypeName); @@ -2157,7 +2203,19 @@ export class FederationFactory { validateExternalAndShareable(fieldData, invalidFieldNames); } this.validateSemanticNonNull(fieldData); - fieldNodes.push(this.getNodeWithPersistedDirectivesByFieldData(fieldData, argumentNodes)); + const fieldNodeResult = routerSchemaFieldNodeFromData({ + argumentNodes, + data: fieldData, + description: this.getFederatedGraphNodeDescription(fieldData), + federatedDirectiveDataByName: this.federatedDirectiveDataByName, + parentDefinitionDataByTypeName: this.parentDefinitionDataByTypeName, + }); + if (!fieldNodeResult.success) { + this.errors.push(...fieldNodeResult.errors); + } else { + fieldNodes.push(fieldNodeResult.node); + this.warnings.push(...fieldNodeResult.warnings); + } if (isNodeDataInaccessible(fieldData)) { continue; } @@ -2181,7 +2239,17 @@ export class FederationFactory { interfaceImplementations.push({ data: parentDefinitionData, clientSchemaFieldNodes }); break; } - this.routerDefinitions.push(this.getNodeForRouterSchemaByData(parentDefinitionData)); + const nodeResult = routerSchemaNodeFromData({ + data: parentDefinitionData, + description: this.getFederatedGraphNodeDescription(parentDefinitionData), + federatedDirectiveDataByName: this.federatedDirectiveDataByName, + parentDefinitionDataByTypeName: this.parentDefinitionDataByTypeName, + }); + if (nodeResult.success) { + this.routerDefinitions.push(nodeResult.node); + } else { + this.errors.push(...nodeResult.errors); + } const isQuery = isNodeQuery(parentTypeName); if (isNodeDataInaccessible(parentDefinitionData)) { if (isQuery) { @@ -2205,7 +2273,7 @@ export class FederationFactory { } this.clientDefinitions.push({ ...parentDefinitionData.node, - directives: getClientPersistedDirectiveNodes(parentDefinitionData), + directives: getClientFederatedDirectiveNodes(parentDefinitionData), fields: clientSchemaFieldNodes, }); break; @@ -2215,7 +2283,17 @@ export class FederationFactory { break; } propagateAuthDirectives(parentDefinitionData, this.authorizationDataByParentTypeName.get(parentTypeName)); - this.routerDefinitions.push(this.getNodeForRouterSchemaByData(parentDefinitionData)); + const nodeResult = routerSchemaNodeFromData({ + data: parentDefinitionData, + description: this.getFederatedGraphNodeDescription(parentDefinitionData), + federatedDirectiveDataByName: this.federatedDirectiveDataByName, + parentDefinitionDataByTypeName: this.parentDefinitionDataByTypeName, + }); + if (nodeResult.success) { + this.routerDefinitions.push(nodeResult.node); + } else { + this.errors.push(...nodeResult.errors); + } if (isNodeDataInaccessible(parentDefinitionData)) { this.validateReferencesOfInaccessibleType(parentDefinitionData); this.internalGraph.setNodeInaccessible(parentDefinitionData.name); @@ -2223,13 +2301,23 @@ export class FederationFactory { } this.clientDefinitions.push({ ...parentDefinitionData.node, - directives: getClientPersistedDirectiveNodes(parentDefinitionData), + directives: getClientFederatedDirectiveNodes(parentDefinitionData), }); break; } case Kind.UNION_TYPE_DEFINITION: { parentDefinitionData.node.types = mapToArrayOfValues(parentDefinitionData.memberByMemberTypeName); - this.routerDefinitions.push(this.getNodeForRouterSchemaByData(parentDefinitionData)); + const nodeResult = routerSchemaNodeFromData({ + data: parentDefinitionData, + description: this.getFederatedGraphNodeDescription(parentDefinitionData), + federatedDirectiveDataByName: this.federatedDirectiveDataByName, + parentDefinitionDataByTypeName: this.parentDefinitionDataByTypeName, + }); + if (nodeResult.success) { + this.routerDefinitions.push(nodeResult.node); + } else { + this.errors.push(...nodeResult.errors); + } if (isNodeDataInaccessible(parentDefinitionData)) { this.validateReferencesOfInaccessibleType(parentDefinitionData); this.internalGraph.setNodeInaccessible(parentDefinitionData.name); @@ -2242,7 +2330,7 @@ export class FederationFactory { } this.clientDefinitions.push({ ...parentDefinitionData.node, - directives: getClientPersistedDirectiveNodes(parentDefinitionData), + directives: getClientFederatedDirectiveNodes(parentDefinitionData), types: clientMembers, }); break; @@ -2312,7 +2400,17 @@ export class FederationFactory { ) { for (const { data, clientSchemaFieldNodes } of interfaceImplementations) { data.node.interfaces = this.getValidImplementedInterfaces(data); - this.routerDefinitions.push(this.getNodeForRouterSchemaByData(data)); + const nodeResult = routerSchemaNodeFromData({ + data, + description: this.getFederatedGraphNodeDescription(data), + federatedDirectiveDataByName: this.federatedDirectiveDataByName, + parentDefinitionDataByTypeName: this.parentDefinitionDataByTypeName, + }); + if (nodeResult.success) { + this.routerDefinitions.push(nodeResult.node); + } else { + this.errors.push(...nodeResult.errors); + } if (isNodeDataInaccessible(data)) { this.validateReferencesOfInaccessibleType(data); this.internalGraph.setNodeInaccessible(data.name); @@ -2330,7 +2428,7 @@ export class FederationFactory { * */ this.clientDefinitions.push({ ...data.node, - directives: getClientPersistedDirectiveNodes(data), + directives: getClientFederatedDirectiveNodes(data), fields: clientSchemaFieldNodes, interfaces: clientInterfaces, }); @@ -2340,14 +2438,14 @@ export class FederationFactory { #addDirectiveDefinitionsAndDepsToRouterAndClientSchemas() { const clientDependencies = new Set(); const routerDependencies = new Set(); - for (const directiveName of this.referencedPersistedDirectiveNames) { + for (const directiveName of this.referencedFederatedDirectiveNames) { const definition = DIRECTIVE_DEFINITION_BY_NAME.get(directiveName); if (!definition) { continue; } const dependencies = DEPENDENCIES_BY_DIRECTIVE_NAME.get(directiveName) ?? []; this.directiveDefinitionByName.set(directiveName, definition); - if (CLIENT_PERSISTED_DIRECTIVE_NAMES.has(directiveName)) { + if (CLIENT_FEDERATED_DIRECTIVE_NAMES.has(directiveName)) { this.clientDefinitions.push(definition); addIterableToSet({ source: dependencies, @@ -2858,15 +2956,8 @@ export class FederationFactory { if (this.invalidORScopesCoords.size > 0) { this.errors.push(orScopesLimitError(MAX_OR_SCOPES, [...this.invalidORScopesCoords])); } - for (const data of this.potentialPersistedDirectiveDefinitionDataByDirectiveName.values()) { - addValidPersistedDirectiveDefinitionNodeByData( - this.routerDefinitions, - data, - this.persistedDirectiveDefinitionByDirectiveName, - this.errors, - ); - } - const definitionsWithInterfaces: InterfaceImplementationData[] = []; + this.handleCustomDirectiveDefinitionNodes(); + const definitionsWithInterfaces: Array = []; this.pushParentDefinitionDataToDocumentDefinitions(definitionsWithInterfaces); this.validateInterfaceImplementationsAndPushToDocumentDefinitions(definitionsWithInterfaces); this.validateQueryRootType(); @@ -2966,7 +3057,7 @@ export class FederationFactory { continue; } if (!tagNames.isDisjointFrom(childTagData.tagNames)) { - getValueOrDefault(childData.persistedDirectivesData.directivesByName, INACCESSIBLE, () => [ + getValueOrDefault(childData.federatedDirectivesData.directivesByName, INACCESSIBLE, () => [ generateSimpleDirective(INACCESSIBLE), ]); this.inaccessibleCoords.add(`${parentDefinitionData.name}.${childName}`); @@ -2974,7 +3065,7 @@ export class FederationFactory { } } if (accessibleChildren < 1) { - parentDefinitionData.persistedDirectivesData.directivesByName.set(INACCESSIBLE, [ + parentDefinitionData.federatedDirectivesData.directivesByName.set(INACCESSIBLE, [ generateSimpleDirective(INACCESSIBLE), ]); this.inaccessibleCoords.add(parentDefinitionData.name); @@ -2995,7 +3086,7 @@ export class FederationFactory { } const childTagData = childTagDataByChildName.get(childName); if (!childTagData || tagNames.isDisjointFrom(childTagData.tagNames)) { - getValueOrDefault(childData.persistedDirectivesData.directivesByName, INACCESSIBLE, () => [ + getValueOrDefault(childData.federatedDirectivesData.directivesByName, INACCESSIBLE, () => [ generateSimpleDirective(INACCESSIBLE), ]); this.inaccessibleCoords.add(`${parentDefinitionData.name}.${childName}`); @@ -3003,13 +3094,32 @@ export class FederationFactory { } } if (accessibleChildren < 1) { - parentDefinitionData.persistedDirectivesData.directivesByName.set(INACCESSIBLE, [ + parentDefinitionData.federatedDirectivesData.directivesByName.set(INACCESSIBLE, [ generateSimpleDirective(INACCESSIBLE), ]); this.inaccessibleCoords.add(parentDefinitionData.name); } } + handleCustomDirectiveDefinitionNodes() { + for (const data of this.federatedDirectiveDataByName.values()) { + if (!data.isComposed && data.executableLocations.size < 1) { + continue; + } + const directiveNodeResult = propagateDirectiveDefinitionNodeFromData({ + data, + federatedDirectiveDataByName: this.federatedDirectiveDataByName, + parentDefinitionDataByTypeName: this.parentDefinitionDataByTypeName, + }); + if (!directiveNodeResult.success) { + this.errors.push(...directiveNodeResult.errors); + continue; + } + + this.routerDefinitions.push(data.node); + } + } + buildFederationContractResult(contractTagOptions: ContractTagOptions): FederationResult { if (!this.isVersionTwo) { /* If all the subgraphs are version one, the @inaccessible directive won't be present. @@ -3027,7 +3137,7 @@ export class FederationFactory { continue; } if (!contractTagOptions.tagNamesToExclude.isDisjointFrom(parentTagData.tagNames)) { - parentDefinitionData.persistedDirectivesData.directivesByName.set(INACCESSIBLE, [ + parentDefinitionData.federatedDirectivesData.directivesByName.set(INACCESSIBLE, [ generateSimpleDirective(INACCESSIBLE), ]); this.inaccessibleCoords.add(parentTypeName); @@ -3074,7 +3184,7 @@ export class FederationFactory { continue; } if (!contractTagOptions.tagNamesToExclude.isDisjointFrom(childTagData.tagNames)) { - getValueOrDefault(fieldData.persistedDirectivesData.directivesByName, INACCESSIBLE, () => [ + getValueOrDefault(fieldData.federatedDirectivesData.directivesByName, INACCESSIBLE, () => [ generateSimpleDirective(INACCESSIBLE), ]); this.inaccessibleCoords.add(fieldData.federatedCoords); @@ -3091,7 +3201,7 @@ export class FederationFactory { continue; } if (!contractTagOptions.tagNamesToExclude.isDisjointFrom(argTagNames)) { - getValueOrDefault(inputValueData.persistedDirectivesData.directivesByName, INACCESSIBLE, () => [ + getValueOrDefault(inputValueData.federatedDirectivesData.directivesByName, INACCESSIBLE, () => [ generateSimpleDirective(INACCESSIBLE), ]); this.inaccessibleCoords.add(inputValueData.federatedCoords); @@ -3099,7 +3209,7 @@ export class FederationFactory { } } if (accessibleFields < 1) { - parentDefinitionData.persistedDirectivesData.directivesByName.set(INACCESSIBLE, [ + parentDefinitionData.federatedDirectivesData.directivesByName.set(INACCESSIBLE, [ generateSimpleDirective(INACCESSIBLE), ]); this.inaccessibleCoords.add(parentTypeName); @@ -3114,7 +3224,7 @@ export class FederationFactory { } const parentTagData = this.parentTagDataByTypeName.get(parentTypeName); if (!parentTagData) { - parentDefinitionData.persistedDirectivesData.directivesByName.set(INACCESSIBLE, [ + parentDefinitionData.federatedDirectivesData.directivesByName.set(INACCESSIBLE, [ generateSimpleDirective(INACCESSIBLE), ]); this.inaccessibleCoords.add(parentTypeName); @@ -3125,7 +3235,7 @@ export class FederationFactory { continue; } if (parentTagData.childTagDataByChildName.size < 1) { - parentDefinitionData.persistedDirectivesData.directivesByName.set(INACCESSIBLE, [ + parentDefinitionData.federatedDirectivesData.directivesByName.set(INACCESSIBLE, [ generateSimpleDirective(INACCESSIBLE), ]); this.inaccessibleCoords.add(parentTypeName); @@ -3162,7 +3272,7 @@ export class FederationFactory { } const childTagData = parentTagData.childTagDataByChildName.get(fieldName); if (!childTagData || contractTagOptions.tagNamesToInclude.isDisjointFrom(childTagData.tagNames)) { - getValueOrDefault(fieldData.persistedDirectivesData.directivesByName, INACCESSIBLE, () => [ + getValueOrDefault(fieldData.federatedDirectivesData.directivesByName, INACCESSIBLE, () => [ generateSimpleDirective(INACCESSIBLE), ]); this.inaccessibleCoords.add(fieldData.federatedCoords); @@ -3170,7 +3280,7 @@ export class FederationFactory { } } if (accessibleFields < 1) { - parentDefinitionData.persistedDirectivesData.directivesByName.set(INACCESSIBLE, [ + parentDefinitionData.federatedDirectivesData.directivesByName.set(INACCESSIBLE, [ generateSimpleDirective(INACCESSIBLE), ]); this.inaccessibleCoords.add(parentTypeName); @@ -3181,14 +3291,7 @@ export class FederationFactory { if (this.subscriptionFilterDataByFieldPath.size > 0) { this.validateSubscriptionFiltersAndGenerateConfiguration(); } - for (const data of this.potentialPersistedDirectiveDefinitionDataByDirectiveName.values()) { - addValidPersistedDirectiveDefinitionNodeByData( - this.routerDefinitions, - data, - this.persistedDirectiveDefinitionByDirectiveName, - this.errors, - ); - } + this.handleCustomDirectiveDefinitionNodes(); const interfaceImplementations: InterfaceImplementationData[] = []; this.pushParentDefinitionDataToDocumentDefinitions(interfaceImplementations); this.validateInterfaceImplementationsAndPushToDocumentDefinitions(interfaceImplementations); @@ -3269,14 +3372,14 @@ function initializeFederationFactory({ options, subgraphs }: FederationParams): if (subgraphs.length < 1) { return { errors: [minimumSubgraphRequirementError], success: false, warnings: [] }; } - const result = batchNormalize({ subgraphs, options }); + const result = new BatchNormalizer({ subgraphs, options }).batchNormalize(); if (!result.success) { return { errors: result.errors, success: false, warnings: result.warnings }; } const entityInterfaceFederationDataByTypeName = new Map(); const invalidEntityInterfacesByTypeName = new Map>(); - for (const [subgraphName, internalSubgraph] of result.internalSubgraphBySubgraphName) { - for (const [typeName, entityInterfaceData] of internalSubgraph.entityInterfaces) { + for (const [subgraphName, internalSubgraph] of result.internalSubgraphByName) { + for (const [typeName, entityInterfaceData] of internalSubgraph.entityInterfaceSubgraphDataByTypeName) { const existingData = entityInterfaceFederationDataByTypeName.get(typeName); if (!existingData) { entityInterfaceFederationDataByTypeName.set( @@ -3321,7 +3424,7 @@ function initializeFederationFactory({ options, subgraphs }: FederationParams): target: definedConcreteTypeNames, }); const { parentDefinitionDataByTypeName } = getOrThrowError( - result.internalSubgraphBySubgraphName, + result.internalSubgraphByName, subgraphName, 'internalSubgraphBySubgraphName', ); @@ -3379,9 +3482,11 @@ function initializeFederationFactory({ options, subgraphs }: FederationParams): concreteTypeNamesByAbstractTypeName: result.concreteTypeNamesByAbstractTypeName, entityDataByTypeName: result.entityDataByTypeName, entityInterfaceFederationDataByTypeName, + executableDirectiveDatasByName: result.executableDirectiveDatasByName, + federatedDirectiveDataByName: result.federatedDirectiveDataByName, fieldCoordsByNamedTypeName: result.fieldCoordsByNamedTypeName, interfaceImplementationTypeNamesByInterfaceTypeName: result.interfaceImplementationTypeNamesByInterfaceTypeName, - internalSubgraphBySubgraphName: result.internalSubgraphBySubgraphName, + internalSubgraphBySubgraphName: result.internalSubgraphByName, internalGraph: result.internalGraph, options, warnings: result.warnings, diff --git a/composition/src/v1/federation/params.ts b/composition/src/v1/federation/types/params.ts similarity index 57% rename from composition/src/v1/federation/params.ts rename to composition/src/v1/federation/types/params.ts index 31beb8bfb2..da87cc2ce7 100644 --- a/composition/src/v1/federation/params.ts +++ b/composition/src/v1/federation/types/params.ts @@ -1,24 +1,29 @@ import type { + ArgumentName, ContractName, DirectiveName, FieldName, InterfaceTypeName, SubgraphName, TypeName, -} from '../../types/types'; -import type { - AuthorizationData, - EntityData, - EntityInterfaceFederationData, - InputObjectDefinitionData, - PersistedDirectivesData, -} from '../../schema-building/types'; +} from '../../../types/types'; +import { + type AuthorizationData, + type EntityData, + type EntityInterfaceFederationData, + type InputObjectDefinitionData, + type FederatedDirectivesData, +} from '../../../schema-building/types/types'; import type { ConstDirectiveNode, InputValueDefinitionNode } from 'graphql'; -import type { InternalSubgraph, Subgraph } from '../../subgraph/types'; -import type { ContractTagOptions } from '../../federation/types'; -import type { CompositionOptions } from '../../types/params'; -import type { Graph } from '../../resolvability-graph/graph'; -import type { Warning } from '../../warnings/types'; +import type { InternalSubgraph, Subgraph } from '../../../subgraph/types'; +import type { ContractTagOptions } from '../../../federation/types/types'; +import type { CompositionOptions } from '../../../types/params'; +import type { Graph } from '../../../resolvability-graph/graph'; +import type { Warning } from '../../../warnings/types'; +import { + type DirectiveArgumentData, + type DirectiveDefinitionData, +} from '../../../directive-definition-data/types/types'; export type ValidateOneOfDirectiveParams = { data: InputObjectDefinitionData; @@ -26,8 +31,8 @@ export type ValidateOneOfDirectiveParams = { requiredFieldNames: Set; }; -export type ExtractPersistedDirectivesParams = { - data: PersistedDirectivesData; +export type ExtractFederatedDirectivesParams = { + data: FederatedDirectivesData; directivesByName: Map>; }; @@ -53,6 +58,8 @@ export type FederationFactoryParams = { concreteTypeNamesByAbstractTypeName: Map>; entityDataByTypeName: Map; entityInterfaceFederationDataByTypeName: Map; + executableDirectiveDatasByName: Map>; + federatedDirectiveDataByName: Map; fieldCoordsByNamedTypeName: Map>; interfaceImplementationTypeNamesByInterfaceTypeName: Map>; internalGraph: Graph; @@ -60,3 +67,8 @@ export type FederationFactoryParams = { warnings: Array; options?: CompositionOptions; }; + +export type UpsertDirectiveArgumentDataParams = { + argumentDataByName: Map; + incomingData: DirectiveArgumentData; +}; diff --git a/composition/src/v1/federation/utils.ts b/composition/src/v1/federation/utils.ts index cd2a9a8166..ac9305ad24 100644 --- a/composition/src/v1/federation/utils.ts +++ b/composition/src/v1/federation/utils.ts @@ -9,15 +9,15 @@ import { type InterfaceDefinitionData, type ObjectDefinitionData, type ParentDefinitionData, -} from '../../schema-building/types'; +} from '../../schema-building/types/types'; import { getTypeNodeNamedTypeName, type MutableFieldNode } from '../../schema-building/ast'; import { BASE_SCALARS } from '../constants/constants'; import { isKindAbstract } from '../../ast/utils'; import { type GraphNode } from '../../resolvability-graph/graph-nodes'; import { type InternalSubgraph } from '../../subgraph/types'; -import { type ContractTagOptions } from '../../federation/types'; +import { type ContractTagOptions } from '../../federation/types/types'; import { getOrThrowError, getValueOrDefault } from '../../utils/utils'; -import { type KeyFieldSetData } from '../normalization/types'; +import { type KeyFieldSetData } from '../normalization/types/types'; import { type TypeName } from '../../types/types'; import { TYPENAME } from '../../utils/string-constants'; diff --git a/composition/src/v1/federation/walkers.ts b/composition/src/v1/federation/walkers.ts index 0cda3acdd1..393603b426 100644 --- a/composition/src/v1/federation/walkers.ts +++ b/composition/src/v1/federation/walkers.ts @@ -3,7 +3,7 @@ import { type CompositeOutputData, type InterfaceDefinitionData, type ObjectDefinitionData, -} from '../../schema-building/types'; +} from '../../schema-building/types/types'; import { visit } from 'graphql'; import { operationTypeNodeToDefaultType } from '../../ast/utils'; import { renameNamedTypeName } from '../schema-building/type-merging'; diff --git a/composition/src/v1/normalization/batch-normalization/batch-normalizer.ts b/composition/src/v1/normalization/batch-normalization/batch-normalizer.ts new file mode 100644 index 0000000000..33bc91080a --- /dev/null +++ b/composition/src/v1/normalization/batch-normalization/batch-normalizer.ts @@ -0,0 +1,323 @@ +import type { + AbstractTypeName, + DirectiveName, + FieldName, + InterfaceTypeName, + SubgraphName, + TypeName, +} from '../../../types/types'; +import { type AuthorizationData, type EntityData } from '../../../schema-building/types/types'; +import type { InternalSubgraph, Subgraph } from '../../../subgraph/types'; +import type { Warning } from '../../../warnings/types'; +import type { BatchNormalizeParams } from '../types/params'; +import { type CompositionOptions } from '../../../types/params'; +import type { BatchNormalizationResult } from '../../../normalization/types'; +import { Graph } from '../../../resolvability-graph/graph'; +import { + duplicateOverriddenFieldErrorMessage, + duplicateOverriddenFieldsError, + duplicateSubgraphNamesError, + nonEqualComposeDirectiveMajorVersionError, + nonEqualCoreFeatureComposeDirectiveError, + noSubgraphNameError, + orScopesLimitError, + subgraphValidationError, + unknownSubgraphNameError, +} from '../../../errors/errors'; +import { subtractSet, upsertAuthorizationData, upsertEntityData } from '../../utils/utils'; +import { addIterableToSet, getOrThrowError, getValueOrDefault, mergeSetValueMap } from '../../../utils/utils'; +import { upsertFederatedDirectiveData } from '../utils'; +import { invalidOverrideTargetSubgraphNameWarning } from '../../warnings/warnings'; +import { MAX_OR_SCOPES } from '../../constants/constants'; +import { normalizeSubgraph } from '../normalization-factory'; +import { type LinkImportData } from '../types/types'; +import { type HandleOverridesParams } from './types/params'; +import { internalSubgraphFromNormalization } from '../../../subgraph/utils'; +import { type DirectiveDefinitionData } from '../../../directive-definition-data/types/types'; + +export class BatchNormalizer { + authorizationDataByParentTypeName = new Map(); + concreteTypeNamesByAbstractTypeName = new Map>(); + entityDataByTypeName = new Map(); + errors: Array = []; + executableDirectiveDatasByName = new Map>(); + federatedDirectiveDataByName = new Map(); + importDataByDirectiveName = new Map(); + interfaceImplementationTypeNamesByInterfaceTypeName = new Map>(); + internalSubgraphBySubgraphName = new Map(); + overriddenFieldNamesByParentTypeNameByTargetSubgraphName = new Map>>(); + overrideSourceSubgraphNamesByFieldCoords = new Map>(); + duplicateOverriddenFieldCoords = new Set(); + subgraphNames = new Set(); + invalidORScopesCoords = new Set(); + fieldCoordsByNamedTypeName = new Map>(); + subgraphs: Array; + warnings: Array = []; + validationErrors: Array = []; + options?: CompositionOptions; + + constructor({ options, subgraphs }: BatchNormalizeParams) { + this.options = options; + this.subgraphs = subgraphs; + const duplicateSubgraphNames = new Set(); + for (const { name } of subgraphs) { + if (!name) { + this.errors.push(noSubgraphNameError); + break; + } + + if (this.subgraphNames.has(name)) { + duplicateSubgraphNames.add(name); + } else { + this.subgraphNames.add(name); + } + } + + if (duplicateSubgraphNames.size > 0) { + this.errors.push(duplicateSubgraphNamesError([...duplicateSubgraphNames])); + } + } + + handleLinkImports(importDataByDirectiveName: Map): void { + for (const [directiveName, importData] of importDataByDirectiveName) { + const existingData = this.importDataByDirectiveName.get(directiveName); + if (!existingData) { + this.importDataByDirectiveName.set(directiveName, importData); + continue; + } + + if (existingData.coreUrl !== importData.coreUrl) { + // TODO handle duplicates + this.errors.push(nonEqualCoreFeatureComposeDirectiveError(directiveName)); + continue; + } + + if (existingData.majorVersion !== importData.majorVersion) { + this.errors.push(nonEqualComposeDirectiveMajorVersionError(directiveName)); + } + + if (existingData.minorVersion < importData.minorVersion) { + existingData.minorVersion = importData.minorVersion; + existingData.node = importData.node; + } + } + } + + handleEntityData(entityDataByTypeName: Map, subgraphName: SubgraphName): void { + for (const [typeName, entityData] of entityDataByTypeName) { + const keyFieldSetDataByFieldSet = entityData.keyFieldSetDatasBySubgraphName.get(subgraphName); + if (!keyFieldSetDataByFieldSet) { + continue; + } + upsertEntityData({ + entityDataByTypeName: this.entityDataByTypeName, + keyFieldSetDataByFieldSet, + typeName, + subgraphName, + }); + } + } + + handleOverrides({ + originalTypeNameByRenamedTypeName, + overriddenFieldNamesByParentTypeNameByTargetSubgraphName, + subgraphName, + }: HandleOverridesParams) { + for (const [ + targetSubgraphName, + overriddenFieldNamesByTypeName, + ] of overriddenFieldNamesByParentTypeNameByTargetSubgraphName) { + const isTargetValid = this.subgraphNames.has(targetSubgraphName); + for (const [parentTypeName, fieldNames] of overriddenFieldNamesByTypeName) { + /* It's possible for a renamed root type to have a field overridden, so make sure any errors at this stage are + propagated with the original typename. */ + const originalParentTypeName = originalTypeNameByRenamedTypeName.get(parentTypeName) ?? parentTypeName; + if (!isTargetValid) { + this.warnings.push( + invalidOverrideTargetSubgraphNameWarning( + targetSubgraphName, + originalParentTypeName, + [...fieldNames], + subgraphName, + ), + ); + } else { + const existingOverriddenFieldNamesByParentTypeName = getValueOrDefault( + this.overriddenFieldNamesByParentTypeNameByTargetSubgraphName, + targetSubgraphName, + () => new Map>(), + ); + const existingFieldNames = getValueOrDefault( + existingOverriddenFieldNamesByParentTypeName, + parentTypeName, + () => new Set(fieldNames), + ); + addIterableToSet({ + source: fieldNames, + target: existingFieldNames, + }); + } + for (const fieldName of fieldNames) { + const fieldCoords = `${originalParentTypeName}.${fieldName}`; + const sourceSubgraphs = this.overrideSourceSubgraphNamesByFieldCoords.get(fieldCoords); + if (!sourceSubgraphs) { + this.overrideSourceSubgraphNamesByFieldCoords.set(fieldCoords, [subgraphName]); + continue; + } + + sourceSubgraphs.push(subgraphName); + this.duplicateOverriddenFieldCoords.add(fieldCoords); + } + } + } + } + + handleOverrideConfigurationData(): void { + for (const [targetSubgraphName, overriddenFieldNamesByParentTypeName] of this + .overriddenFieldNamesByParentTypeNameByTargetSubgraphName) { + const internalSubgraph = this.internalSubgraphBySubgraphName.get(targetSubgraphName); + if (!internalSubgraph) { + this.errors.push(unknownSubgraphNameError(targetSubgraphName)); + continue; + } + + internalSubgraph.overriddenFieldNamesByParentTypeName = overriddenFieldNamesByParentTypeName; + for (const [parentTypeName, fieldNames] of overriddenFieldNamesByParentTypeName) { + const configurationData = internalSubgraph.configurationDataByTypeName.get(parentTypeName); + if (!configurationData) { + continue; + } + + subtractSet(fieldNames, configurationData.fieldNames); + if (configurationData.fieldNames.size < 1) { + internalSubgraph.configurationDataByTypeName.delete(parentTypeName); + } + } + } + } + + batchNormalize(): BatchNormalizationResult { + // Federation is aborted due to subgraph naming errors + if (this.errors.length > 0) { + return { + errors: this.errors, + success: false, + warnings: this.warnings, + }; + } + + const internalGraph = new Graph(); + for (const subgraph of this.subgraphs) { + const subgraphName = subgraph.name; + const normalizationResult = normalizeSubgraph({ + document: subgraph.definitions, + internalGraph, + options: this.options, + subgraphName, + }); + if (normalizationResult.warnings.length > 0) { + this.warnings.push(...normalizationResult.warnings); + } + if (!normalizationResult.success) { + this.validationErrors.push(subgraphValidationError(subgraphName, normalizationResult.errors)); + continue; + } + + this.handleLinkImports(normalizationResult.importDataByDirectiveName); + + for (const authorizationData of normalizationResult.authorizationDataByParentTypeName.values()) { + upsertAuthorizationData(this.authorizationDataByParentTypeName, authorizationData, this.invalidORScopesCoords); + } + for (const [namedTypeName, fieldCoords] of normalizationResult.fieldCoordsByNamedTypeName) { + addIterableToSet({ + source: fieldCoords, + target: getValueOrDefault(this.fieldCoordsByNamedTypeName, namedTypeName, () => new Set()), + }); + } + mergeSetValueMap({ + source: normalizationResult.concreteTypeNamesByAbstractTypeName, + target: this.concreteTypeNamesByAbstractTypeName, + }); + mergeSetValueMap({ + source: normalizationResult.interfaceImplementationTypeNamesByInterfaceTypeName, + target: this.interfaceImplementationTypeNamesByInterfaceTypeName, + }); + this.handleEntityData(normalizationResult.entityDataByTypeName, subgraphName); + upsertFederatedDirectiveData({ + executableDirectiveDatasByName: this.executableDirectiveDatasByName, + existingDataByName: this.federatedDirectiveDataByName, + incomingDataByName: normalizationResult.federatedDirectiveDataByName, + }); + this.internalSubgraphBySubgraphName.set( + subgraphName, + internalSubgraphFromNormalization({ normalization: normalizationResult, subgraphName }), + ); + this.handleOverrides({ + originalTypeNameByRenamedTypeName: normalizationResult.originalTypeNameByRenamedTypeName, + overriddenFieldNamesByParentTypeNameByTargetSubgraphName: + normalizationResult.overriddenFieldNamesByParentTypeNameByTargetSubgraphName, + subgraphName, + }); + } + if (this.invalidORScopesCoords.size > 0) { + this.errors.push(orScopesLimitError(MAX_OR_SCOPES, [...this.invalidORScopesCoords])); + } + if (this.duplicateOverriddenFieldCoords.size > 0) { + const duplicateOverriddenFieldErrorMessages: string[] = []; + for (const fieldCoords of this.duplicateOverriddenFieldCoords) { + const sourceSubgraphNames = getOrThrowError( + this.overrideSourceSubgraphNamesByFieldCoords, + fieldCoords, + 'overrideSourceSubgraphNamesByFieldCoords', + ); + duplicateOverriddenFieldErrorMessages.push( + duplicateOverriddenFieldErrorMessage(fieldCoords, sourceSubgraphNames), + ); + } + this.errors.push(duplicateOverriddenFieldsError(duplicateOverriddenFieldErrorMessages)); + } + + for (const [directiveName, executableDirectiveDatas] of this.executableDirectiveDatasByName) { + if ( + this.federatedDirectiveDataByName.has(directiveName) || + executableDirectiveDatas.length !== this.subgraphNames.size + ) { + this.executableDirectiveDatasByName.delete(directiveName); + } + } + + this.errors.push(...this.validationErrors); + + if (this.errors.length > 0) { + return { + errors: this.errors, + success: false, + warnings: this.warnings, + }; + } + + this.handleOverrideConfigurationData(); + + if (this.errors.length > 0) { + return { + errors: this.errors, + success: false, + warnings: this.warnings, + }; + } + + return { + authorizationDataByParentTypeName: this.authorizationDataByParentTypeName, + concreteTypeNamesByAbstractTypeName: this.concreteTypeNamesByAbstractTypeName, + entityDataByTypeName: this.entityDataByTypeName, + executableDirectiveDatasByName: this.executableDirectiveDatasByName, + federatedDirectiveDataByName: this.federatedDirectiveDataByName, + fieldCoordsByNamedTypeName: this.fieldCoordsByNamedTypeName, + interfaceImplementationTypeNamesByInterfaceTypeName: this.interfaceImplementationTypeNamesByInterfaceTypeName, + internalSubgraphByName: this.internalSubgraphBySubgraphName, + internalGraph, + success: true, + warnings: this.warnings, + }; + } +} diff --git a/composition/src/v1/normalization/batch-normalization/types/params.ts b/composition/src/v1/normalization/batch-normalization/types/params.ts new file mode 100644 index 0000000000..af1af5d292 --- /dev/null +++ b/composition/src/v1/normalization/batch-normalization/types/params.ts @@ -0,0 +1,7 @@ +import { type FieldName, type SubgraphName, type TypeName } from '../../../../types/types'; + +export type HandleOverridesParams = { + originalTypeNameByRenamedTypeName: Map; + overriddenFieldNamesByParentTypeNameByTargetSubgraphName: Map>>; + subgraphName: SubgraphName; +}; diff --git a/composition/src/v1/normalization/directive-definition-data.ts b/composition/src/v1/normalization/directive-definition-data.ts deleted file mode 100644 index 65be30353f..0000000000 --- a/composition/src/v1/normalization/directive-definition-data.ts +++ /dev/null @@ -1,918 +0,0 @@ -import { type ArgumentData, type DirectiveDefinitionData } from '../../schema-building/types'; -import { stringToNamedTypeNode } from '../../ast/utils'; -import { DEFAULT_DEPRECATION_REASON, Kind } from 'graphql'; -import { - ARGUMENT_DEFINITION_UPPER, - AS, - ASSUMED_SIZE, - AUTHENTICATED, - BOOLEAN_SCALAR, - CHANNEL, - CHANNELS, - COMPOSE_DIRECTIVE, - CONDITION, - CONFIGURE_CHILD_DESCRIPTIONS, - CONFIGURE_DESCRIPTION, - CONNECT_FIELD_RESOLVER, - CONTEXT, - COST, - DEFAULT_EDFS_PROVIDER_ID, - DEPRECATED, - DESCRIPTION_OVERRIDE, - EDFS_KAFKA_PUBLISH, - EDFS_KAFKA_SUBSCRIBE, - EDFS_NATS_PUBLISH, - EDFS_NATS_REQUEST, - EDFS_NATS_STREAM_CONFIGURATION, - EDFS_NATS_SUBSCRIBE, - EDFS_REDIS_PUBLISH, - EDFS_REDIS_SUBSCRIBE, - ENUM_UPPER, - ENUM_VALUE_UPPER, - EXTENDS, - EXTERNAL, - FIELD_DEFINITION_UPPER, - FIELDS, - FOR, - FROM, - IMPORT, - INACCESSIBLE, - INPUT_FIELD_DEFINITION_UPPER, - INPUT_OBJECT_UPPER, - INT_SCALAR, - INTERFACE_OBJECT, - INTERFACE_UPPER, - KEY, - LEVELS, - LINK, - LINK_IMPORT, - LINK_PURPOSE, - LIST_SIZE, - NAME, - OBJECT_UPPER, - ONE_OF, - OVERRIDE, - PROPAGATE, - PROVIDER_ID, - PROVIDES, - REASON, - REQUIRE_FETCH_REASONS, - REQUIRE_ONE_SLICING_ARGUMENT, - REQUIRES, - REQUIRES_SCOPES, - RESOLVABLE, - SCALAR_UPPER, - SCHEMA_UPPER, - SCOPE_SCALAR, - SCOPES, - SEMANTIC_NON_NULL, - SHAREABLE, - SIZED_FIELDS, - SLICING_ARGUMENTS, - SPECIFIED_BY, - STREAM_CONFIGURATION, - STRING_SCALAR, - SUBJECT, - SUBJECTS, - SUBSCRIPTION_FILTER, - SUBSCRIPTION_FILTER_CONDITION, - TAG, - TOPIC, - TOPICS, - UNION_UPPER, - URL_LOWER, - WEIGHT, -} from '../../utils/string-constants'; -import { - AUTHENTICATED_DEFINITION, - COMPOSE_DIRECTIVE_DEFINITION, - CONFIGURE_CHILD_DESCRIPTIONS_DEFINITION, - CONFIGURE_DESCRIPTION_DEFINITION, - CONNECT_FIELD_RESOLVER_DEFINITION, - COST_DEFINITION, - DEPRECATED_DEFINITION, - EDFS_KAFKA_PUBLISH_DEFINITION, - EDFS_KAFKA_SUBSCRIBE_DEFINITION, - EDFS_NATS_PUBLISH_DEFINITION, - EDFS_NATS_REQUEST_DEFINITION, - EDFS_NATS_SUBSCRIBE_DEFINITION, - EDFS_REDIS_PUBLISH_DEFINITION, - EDFS_REDIS_SUBSCRIBE_DEFINITION, - EXTENDS_DEFINITION, - EXTERNAL_DEFINITION, - INACCESSIBLE_DEFINITION, - INTERFACE_OBJECT_DEFINITION, - KEY_DEFINITION, - LINK_DEFINITION, - LIST_SIZE_DEFINITION, - ONE_OF_DEFINITION, - OVERRIDE_DEFINITION, - PROVIDES_DEFINITION, - REQUIRE_FETCH_REASONS_DEFINITION, - REQUIRES_DEFINITION, - REQUIRES_SCOPES_DEFINITION, - SEMANTIC_NON_NULL_DEFINITION, - SHAREABLE_DEFINITION, - SPECIFIED_BY_DEFINITION, - SUBSCRIPTION_FILTER_DEFINITION, - TAG_DEFINITION, -} from '../constants/directive-definitions'; -import { REQUIRED_FIELDSET_TYPE_NODE, REQUIRED_STRING_TYPE_NODE } from '../constants/type-nodes'; - -// Note that arguments with default values are classed as optional and should be placed into `optionalArgumentNames`. - -export const AUTHENTICATED_DEFINITION_DATA: DirectiveDefinitionData = { - argumentTypeNodeByName: new Map([]), - isRepeatable: false, - locations: new Set([ENUM_UPPER, FIELD_DEFINITION_UPPER, INTERFACE_UPPER, OBJECT_UPPER, SCALAR_UPPER]), - name: AUTHENTICATED, - node: AUTHENTICATED_DEFINITION, - optionalArgumentNames: new Set(), - requiredArgumentNames: new Set(), -}; - -export const COMPOSE_DIRECTIVE_DEFINITION_DATA: DirectiveDefinitionData = { - argumentTypeNodeByName: new Map([ - [ - NAME, - { - name: NAME, - typeNode: REQUIRED_STRING_TYPE_NODE, - }, - ], - ]), - isRepeatable: true, - locations: new Set([SCHEMA_UPPER]), - name: COMPOSE_DIRECTIVE, - node: COMPOSE_DIRECTIVE_DEFINITION, - optionalArgumentNames: new Set(), - requiredArgumentNames: new Set([NAME]), -}; - -export const CONFIGURE_DESCRIPTION_DEFINITION_DATA: DirectiveDefinitionData = { - argumentTypeNodeByName: new Map([ - [ - PROPAGATE, - { - name: PROPAGATE, - typeNode: { - kind: Kind.NON_NULL_TYPE, - type: stringToNamedTypeNode(BOOLEAN_SCALAR), - }, - defaultValue: { - kind: Kind.BOOLEAN, - value: true, - }, - }, - ], - [ - DESCRIPTION_OVERRIDE, - { - name: DESCRIPTION_OVERRIDE, - typeNode: stringToNamedTypeNode(STRING_SCALAR), - }, - ], - ]), - isRepeatable: false, - locations: new Set([ - ARGUMENT_DEFINITION_UPPER, - ENUM_UPPER, - ENUM_VALUE_UPPER, - FIELD_DEFINITION_UPPER, - INTERFACE_UPPER, - INPUT_OBJECT_UPPER, - INPUT_FIELD_DEFINITION_UPPER, - OBJECT_UPPER, - SCALAR_UPPER, - SCHEMA_UPPER, - UNION_UPPER, - ]), - name: CONFIGURE_DESCRIPTION, - node: CONFIGURE_DESCRIPTION_DEFINITION, - optionalArgumentNames: new Set([PROPAGATE, DESCRIPTION_OVERRIDE]), - requiredArgumentNames: new Set(), -}; - -export const CONFIGURE_CHILD_DESCRIPTIONS_DEFINITION_DATA: DirectiveDefinitionData = { - argumentTypeNodeByName: new Map([ - [ - PROPAGATE, - { - name: PROPAGATE, - typeNode: { - kind: Kind.NON_NULL_TYPE, - type: stringToNamedTypeNode(BOOLEAN_SCALAR), - }, - defaultValue: { - kind: Kind.BOOLEAN, - value: true, - }, - }, - ], - ]), - isRepeatable: false, - locations: new Set([ENUM_UPPER, INPUT_OBJECT_UPPER, INTERFACE_UPPER, OBJECT_UPPER]), - name: CONFIGURE_CHILD_DESCRIPTIONS, - node: CONFIGURE_CHILD_DESCRIPTIONS_DEFINITION, - optionalArgumentNames: new Set([PROPAGATE]), - requiredArgumentNames: new Set(), -}; - -export const CONNECT_FIELD_RESOLVER_DEFINITION_DATA: DirectiveDefinitionData = { - argumentTypeNodeByName: new Map([ - [ - CONTEXT, - { - name: CONTEXT, - typeNode: REQUIRED_FIELDSET_TYPE_NODE, - }, - ], - ]), - isRepeatable: false, - locations: new Set([FIELD_DEFINITION_UPPER]), - name: CONNECT_FIELD_RESOLVER, - node: CONNECT_FIELD_RESOLVER_DEFINITION, - optionalArgumentNames: new Set(), - requiredArgumentNames: new Set([CONTEXT]), -}; - -export const COST_DEFINITION_DATA: DirectiveDefinitionData = { - argumentTypeNodeByName: new Map([ - [ - WEIGHT, - { - name: WEIGHT, - typeNode: { - kind: Kind.NON_NULL_TYPE, - type: stringToNamedTypeNode(INT_SCALAR), - }, - }, - ], - ]), - isRepeatable: false, - locations: new Set([ - ARGUMENT_DEFINITION_UPPER, - ENUM_UPPER, - FIELD_DEFINITION_UPPER, - INPUT_FIELD_DEFINITION_UPPER, - OBJECT_UPPER, - SCALAR_UPPER, - ]), - name: COST, - node: COST_DEFINITION, - optionalArgumentNames: new Set(), - requiredArgumentNames: new Set([WEIGHT]), -}; - -export const DEPRECATED_DEFINITION_DATA: DirectiveDefinitionData = { - argumentTypeNodeByName: new Map([ - [ - REASON, - { - name: REASON, - typeNode: stringToNamedTypeNode(STRING_SCALAR), - defaultValue: { - kind: Kind.STRING, - value: DEFAULT_DEPRECATION_REASON, - }, - }, - ], - ]), - isRepeatable: false, - locations: new Set([ - ARGUMENT_DEFINITION_UPPER, - ENUM_VALUE_UPPER, - FIELD_DEFINITION_UPPER, - INPUT_FIELD_DEFINITION_UPPER, - ]), - name: DEPRECATED, - node: DEPRECATED_DEFINITION, - optionalArgumentNames: new Set([REASON]), - requiredArgumentNames: new Set(), -}; - -export const EXTENDS_DEFINITION_DATA: DirectiveDefinitionData = { - argumentTypeNodeByName: new Map(), - isRepeatable: false, - locations: new Set([INTERFACE_UPPER, OBJECT_UPPER]), - name: EXTENDS, - node: EXTENDS_DEFINITION, - optionalArgumentNames: new Set(), - requiredArgumentNames: new Set(), -}; - -export const EXTERNAL_DEFINITION_DATA: DirectiveDefinitionData = { - argumentTypeNodeByName: new Map(), - isRepeatable: false, - locations: new Set([FIELD_DEFINITION_UPPER, OBJECT_UPPER]), - name: EXTERNAL, - node: EXTERNAL_DEFINITION, - optionalArgumentNames: new Set(), - requiredArgumentNames: new Set(), -}; - -export const INACCESSIBLE_DEFINITION_DATA: DirectiveDefinitionData = { - argumentTypeNodeByName: new Map(), - isRepeatable: false, - locations: new Set([ - ARGUMENT_DEFINITION_UPPER, - ENUM_UPPER, - ENUM_VALUE_UPPER, - FIELD_DEFINITION_UPPER, - INPUT_FIELD_DEFINITION_UPPER, - INPUT_OBJECT_UPPER, - INTERFACE_UPPER, - OBJECT_UPPER, - SCALAR_UPPER, - UNION_UPPER, - ]), - name: INACCESSIBLE, - node: INACCESSIBLE_DEFINITION, - optionalArgumentNames: new Set(), - requiredArgumentNames: new Set(), -}; - -export const INTERFACE_OBJECT_DEFINITION_DATA: DirectiveDefinitionData = { - argumentTypeNodeByName: new Map(), - isRepeatable: false, - locations: new Set([OBJECT_UPPER]), - name: INTERFACE_OBJECT, - node: INTERFACE_OBJECT_DEFINITION, - optionalArgumentNames: new Set(), - requiredArgumentNames: new Set(), -}; - -export const KAFKA_PUBLISH_DEFINITION_DATA: DirectiveDefinitionData = { - argumentTypeNodeByName: new Map([ - [ - TOPIC, - { - name: TOPIC, - typeNode: REQUIRED_STRING_TYPE_NODE, - }, - ], - [ - PROVIDER_ID, - { - name: PROVIDER_ID, - typeNode: REQUIRED_STRING_TYPE_NODE, - defaultValue: { - kind: Kind.STRING, - value: DEFAULT_EDFS_PROVIDER_ID, - }, - }, - ], - ]), - isRepeatable: false, - locations: new Set([FIELD_DEFINITION_UPPER]), - name: EDFS_KAFKA_PUBLISH, - node: EDFS_KAFKA_PUBLISH_DEFINITION, - optionalArgumentNames: new Set([PROVIDER_ID]), - requiredArgumentNames: new Set([TOPIC]), -}; - -export const KAFKA_SUBSCRIBE_DEFINITION_DATA: DirectiveDefinitionData = { - argumentTypeNodeByName: new Map([ - [ - TOPICS, - { - name: TOPICS, - typeNode: { - kind: Kind.NON_NULL_TYPE, - type: { - kind: Kind.LIST_TYPE, - type: REQUIRED_STRING_TYPE_NODE, - }, - }, - }, - ], - [ - PROVIDER_ID, - { - name: PROVIDER_ID, - typeNode: REQUIRED_STRING_TYPE_NODE, - defaultValue: { - kind: Kind.STRING, - value: DEFAULT_EDFS_PROVIDER_ID, - }, - }, - ], - ]), - isRepeatable: false, - locations: new Set([FIELD_DEFINITION_UPPER]), - name: EDFS_KAFKA_SUBSCRIBE, - node: EDFS_KAFKA_SUBSCRIBE_DEFINITION, - optionalArgumentNames: new Set([PROVIDER_ID]), - requiredArgumentNames: new Set([TOPICS]), -}; - -export const NATS_PUBLISH_DEFINITION_DATA: DirectiveDefinitionData = { - argumentTypeNodeByName: new Map([ - [ - SUBJECT, - { - name: SUBJECT, - typeNode: REQUIRED_STRING_TYPE_NODE, - }, - ], - [ - PROVIDER_ID, - { - name: PROVIDER_ID, - typeNode: REQUIRED_STRING_TYPE_NODE, - defaultValue: { - kind: Kind.STRING, - value: DEFAULT_EDFS_PROVIDER_ID, - }, - }, - ], - ]), - isRepeatable: false, - locations: new Set([FIELD_DEFINITION_UPPER]), - name: EDFS_NATS_PUBLISH, - node: EDFS_NATS_PUBLISH_DEFINITION, - optionalArgumentNames: new Set([PROVIDER_ID]), - requiredArgumentNames: new Set([SUBJECT]), -}; - -export const NATS_REQUEST_DEFINITION_DATA: DirectiveDefinitionData = { - argumentTypeNodeByName: new Map([ - [ - SUBJECT, - { - name: SUBJECT, - typeNode: REQUIRED_STRING_TYPE_NODE, - }, - ], - [ - PROVIDER_ID, - { - name: PROVIDER_ID, - typeNode: REQUIRED_STRING_TYPE_NODE, - defaultValue: { - kind: Kind.STRING, - value: DEFAULT_EDFS_PROVIDER_ID, - }, - }, - ], - ]), - isRepeatable: false, - locations: new Set([FIELD_DEFINITION_UPPER]), - name: EDFS_NATS_REQUEST, - node: EDFS_NATS_REQUEST_DEFINITION, - optionalArgumentNames: new Set([PROVIDER_ID]), - requiredArgumentNames: new Set([SUBJECT]), -}; - -export const NATS_SUBSCRIBE_DEFINITION_DATA: DirectiveDefinitionData = { - argumentTypeNodeByName: new Map([ - [ - SUBJECTS, - { - name: SUBJECTS, - typeNode: { - kind: Kind.NON_NULL_TYPE, - type: { - kind: Kind.LIST_TYPE, - type: REQUIRED_STRING_TYPE_NODE, - }, - }, - }, - ], - [ - PROVIDER_ID, - { - name: PROVIDER_ID, - typeNode: REQUIRED_STRING_TYPE_NODE, - defaultValue: { - kind: Kind.STRING, - value: DEFAULT_EDFS_PROVIDER_ID, - }, - }, - ], - [ - STREAM_CONFIGURATION, - { - name: STREAM_CONFIGURATION, - typeNode: stringToNamedTypeNode(EDFS_NATS_STREAM_CONFIGURATION), - }, - ], - ]), - isRepeatable: false, - locations: new Set([FIELD_DEFINITION_UPPER]), - name: EDFS_NATS_SUBSCRIBE, - node: EDFS_NATS_SUBSCRIBE_DEFINITION, - optionalArgumentNames: new Set([PROVIDER_ID, STREAM_CONFIGURATION]), - requiredArgumentNames: new Set([SUBJECTS]), -}; - -export const ONE_OF_DEFINITION_DATA: DirectiveDefinitionData = { - argumentTypeNodeByName: new Map([]), - isRepeatable: false, - locations: new Set([INPUT_OBJECT_UPPER]), - name: ONE_OF, - node: ONE_OF_DEFINITION, - optionalArgumentNames: new Set(), - requiredArgumentNames: new Set(), -}; - -export const OVERRIDE_DEFINITION_DATA: DirectiveDefinitionData = { - argumentTypeNodeByName: new Map([ - [ - FROM, - { - name: FROM, - typeNode: REQUIRED_STRING_TYPE_NODE, - }, - ], - ]), - isRepeatable: false, - locations: new Set([FIELD_DEFINITION_UPPER]), - name: OVERRIDE, - node: OVERRIDE_DEFINITION, - optionalArgumentNames: new Set(), - requiredArgumentNames: new Set([FROM]), -}; - -export const KEY_DEFINITION_DATA: DirectiveDefinitionData = { - argumentTypeNodeByName: new Map([ - [ - FIELDS, - { - name: FIELDS, - typeNode: REQUIRED_FIELDSET_TYPE_NODE, - }, - ], - [ - RESOLVABLE, - { - name: RESOLVABLE, - typeNode: stringToNamedTypeNode(BOOLEAN_SCALAR), - defaultValue: { - kind: Kind.BOOLEAN, - value: true, - }, - }, - ], - ]), - isRepeatable: true, - locations: new Set([INTERFACE_UPPER, OBJECT_UPPER]), - name: KEY, - node: KEY_DEFINITION, - optionalArgumentNames: new Set([RESOLVABLE]), - requiredArgumentNames: new Set([FIELDS]), -}; - -export const LINK_DEFINITION_DATA: DirectiveDefinitionData = { - argumentTypeNodeByName: new Map([ - [ - URL_LOWER, - { - name: URL_LOWER, - typeNode: REQUIRED_STRING_TYPE_NODE, - }, - ], - [ - AS, - { - name: AS, - typeNode: stringToNamedTypeNode(STRING_SCALAR), - }, - ], - [ - FOR, - { - name: FOR, - typeNode: stringToNamedTypeNode(LINK_PURPOSE), - }, - ], - [ - IMPORT, - { - name: IMPORT, - typeNode: { - kind: Kind.LIST_TYPE, - type: stringToNamedTypeNode(LINK_IMPORT), - }, - }, - ], - ]), - isRepeatable: true, - locations: new Set([SCHEMA_UPPER]), - name: LINK, - node: LINK_DEFINITION, - optionalArgumentNames: new Set([AS, FOR, IMPORT]), - requiredArgumentNames: new Set([URL_LOWER]), -}; - -export const LIST_SIZE_DEFINITION_DATA: DirectiveDefinitionData = { - argumentTypeNodeByName: new Map([ - [ - ASSUMED_SIZE, - { - name: ASSUMED_SIZE, - typeNode: stringToNamedTypeNode(INT_SCALAR), - }, - ], - [ - SLICING_ARGUMENTS, - { - name: SLICING_ARGUMENTS, - typeNode: { - kind: Kind.LIST_TYPE, - type: { - kind: Kind.NON_NULL_TYPE, - type: stringToNamedTypeNode(STRING_SCALAR), - }, - }, - }, - ], - [ - SIZED_FIELDS, - { - name: SIZED_FIELDS, - typeNode: { - kind: Kind.LIST_TYPE, - type: { - kind: Kind.NON_NULL_TYPE, - type: stringToNamedTypeNode(STRING_SCALAR), - }, - }, - }, - ], - [ - REQUIRE_ONE_SLICING_ARGUMENT, - { - name: REQUIRE_ONE_SLICING_ARGUMENT, - typeNode: stringToNamedTypeNode(BOOLEAN_SCALAR), - defaultValue: { - kind: Kind.BOOLEAN, - value: true, - }, - }, - ], - ]), - isRepeatable: false, - locations: new Set([FIELD_DEFINITION_UPPER]), - name: LIST_SIZE, - node: LIST_SIZE_DEFINITION, - optionalArgumentNames: new Set([ASSUMED_SIZE, SLICING_ARGUMENTS, SIZED_FIELDS, REQUIRE_ONE_SLICING_ARGUMENT]), - requiredArgumentNames: new Set(), -}; - -export const PROVIDES_DEFINITION_DATA: DirectiveDefinitionData = { - argumentTypeNodeByName: new Map([ - [ - FIELDS, - { - name: FIELDS, - typeNode: REQUIRED_FIELDSET_TYPE_NODE, - }, - ], - ]), - isRepeatable: false, - locations: new Set([FIELD_DEFINITION_UPPER]), - name: PROVIDES, - node: PROVIDES_DEFINITION, - optionalArgumentNames: new Set(), - requiredArgumentNames: new Set([FIELDS]), -}; - -export const REQUIRES_DEFINITION_DATA: DirectiveDefinitionData = { - argumentTypeNodeByName: new Map([ - [ - FIELDS, - { - name: FIELDS, - typeNode: REQUIRED_FIELDSET_TYPE_NODE, - }, - ], - ]), - isRepeatable: false, - locations: new Set([FIELD_DEFINITION_UPPER]), - name: REQUIRES, - node: REQUIRES_DEFINITION, - optionalArgumentNames: new Set(), - requiredArgumentNames: new Set([FIELDS]), -}; - -export const REDIS_PUBLISH_DEFINITION_DATA: DirectiveDefinitionData = { - argumentTypeNodeByName: new Map([ - [ - CHANNEL, - { - name: CHANNEL, - typeNode: REQUIRED_STRING_TYPE_NODE, - }, - ], - [ - PROVIDER_ID, - { - name: PROVIDER_ID, - typeNode: REQUIRED_STRING_TYPE_NODE, - defaultValue: { - kind: Kind.STRING, - value: DEFAULT_EDFS_PROVIDER_ID, - }, - }, - ], - ]), - isRepeatable: false, - locations: new Set([FIELD_DEFINITION_UPPER]), - name: EDFS_REDIS_PUBLISH, - node: EDFS_REDIS_PUBLISH_DEFINITION, - optionalArgumentNames: new Set([PROVIDER_ID]), - requiredArgumentNames: new Set([CHANNEL]), -}; - -export const REDIS_SUBSCRIBE_DEFINITION_DATA: DirectiveDefinitionData = { - argumentTypeNodeByName: new Map([ - [ - CHANNELS, - { - name: CHANNELS, - typeNode: { - kind: Kind.NON_NULL_TYPE, - type: { - kind: Kind.LIST_TYPE, - type: REQUIRED_STRING_TYPE_NODE, - }, - }, - }, - ], - [ - PROVIDER_ID, - { - name: PROVIDER_ID, - typeNode: REQUIRED_STRING_TYPE_NODE, - defaultValue: { - kind: Kind.STRING, - value: DEFAULT_EDFS_PROVIDER_ID, - }, - }, - ], - ]), - isRepeatable: false, - locations: new Set([FIELD_DEFINITION_UPPER]), - name: EDFS_REDIS_SUBSCRIBE, - node: EDFS_REDIS_SUBSCRIBE_DEFINITION, - optionalArgumentNames: new Set([PROVIDER_ID]), - requiredArgumentNames: new Set([CHANNELS]), -}; - -export const REQUIRE_FETCH_REASONS_DEFINITION_DATA: DirectiveDefinitionData = { - argumentTypeNodeByName: new Map(), - isRepeatable: true, - locations: new Set([FIELD_DEFINITION_UPPER, INTERFACE_UPPER, OBJECT_UPPER]), - name: REQUIRE_FETCH_REASONS, - node: REQUIRE_FETCH_REASONS_DEFINITION, - optionalArgumentNames: new Set(), - requiredArgumentNames: new Set(), -}; - -export const REQUIRES_SCOPES_DEFINITION_DATA: DirectiveDefinitionData = { - argumentTypeNodeByName: new Map([ - [ - SCOPES, - { - name: SCOPES, - typeNode: { - kind: Kind.NON_NULL_TYPE, - type: { - kind: Kind.LIST_TYPE, - type: { - kind: Kind.NON_NULL_TYPE, - type: { - kind: Kind.LIST_TYPE, - type: { - kind: Kind.NON_NULL_TYPE, - type: stringToNamedTypeNode(SCOPE_SCALAR), - }, - }, - }, - }, - }, - }, - ], - ]), - isRepeatable: false, - locations: new Set([ENUM_UPPER, FIELD_DEFINITION_UPPER, INTERFACE_UPPER, OBJECT_UPPER, SCALAR_UPPER]), - name: REQUIRES_SCOPES, - node: REQUIRES_SCOPES_DEFINITION, - optionalArgumentNames: new Set(), - requiredArgumentNames: new Set([SCOPES]), -}; - -export const SEMANTIC_NON_NULL_DATA: DirectiveDefinitionData = { - argumentTypeNodeByName: new Map([ - [ - LEVELS, - { - name: LEVELS, - typeNode: { - kind: Kind.NON_NULL_TYPE, - type: { - kind: Kind.LIST_TYPE, - type: { - kind: Kind.NON_NULL_TYPE, - type: stringToNamedTypeNode(INT_SCALAR), - }, - }, - }, - defaultValue: { - kind: Kind.LIST, - values: [ - { - kind: Kind.INT, - value: '0', - }, - ], - }, - }, - ], - ]), - isRepeatable: false, - locations: new Set([FIELD_DEFINITION_UPPER]), - name: SEMANTIC_NON_NULL, - node: SEMANTIC_NON_NULL_DEFINITION, - optionalArgumentNames: new Set([LEVELS]), - requiredArgumentNames: new Set(), -}; - -export const SPECIFIED_BY_DEFINITION_DATA: DirectiveDefinitionData = { - argumentTypeNodeByName: new Map([ - [ - URL_LOWER, - { - name: URL_LOWER, - typeNode: REQUIRED_STRING_TYPE_NODE, - }, - ], - ]), - isRepeatable: false, - locations: new Set([SCALAR_UPPER]), - name: SPECIFIED_BY, - node: SPECIFIED_BY_DEFINITION, - optionalArgumentNames: new Set(), - requiredArgumentNames: new Set([URL_LOWER]), -}; - -export const SHAREABLE_DEFINITION_DATA: DirectiveDefinitionData = { - argumentTypeNodeByName: new Map(), - isRepeatable: true, - locations: new Set([FIELD_DEFINITION_UPPER, OBJECT_UPPER]), - name: SHAREABLE, - node: SHAREABLE_DEFINITION, - optionalArgumentNames: new Set(), - requiredArgumentNames: new Set(), -}; - -export const SUBSCRIPTION_FILTER_DEFINITION_DATA: DirectiveDefinitionData = { - argumentTypeNodeByName: new Map([ - [ - CONDITION, - { - name: CONDITION, - typeNode: { - kind: Kind.NON_NULL_TYPE, - type: stringToNamedTypeNode(SUBSCRIPTION_FILTER_CONDITION), - }, - }, - ], - ]), - isRepeatable: false, - locations: new Set([FIELD_DEFINITION_UPPER]), - name: SUBSCRIPTION_FILTER, - node: SUBSCRIPTION_FILTER_DEFINITION, - optionalArgumentNames: new Set(), - requiredArgumentNames: new Set([CONDITION]), -}; - -export const TAG_DEFINITION_DATA: DirectiveDefinitionData = { - argumentTypeNodeByName: new Map([ - [ - NAME, - { - name: NAME, - typeNode: REQUIRED_STRING_TYPE_NODE, - }, - ], - ]), - isRepeatable: true, - locations: new Set([ - ARGUMENT_DEFINITION_UPPER, - ENUM_UPPER, - ENUM_VALUE_UPPER, - FIELD_DEFINITION_UPPER, - INPUT_FIELD_DEFINITION_UPPER, - INPUT_OBJECT_UPPER, - INTERFACE_UPPER, - OBJECT_UPPER, - SCALAR_UPPER, - UNION_UPPER, - ]), - name: TAG, - node: TAG_DEFINITION, - optionalArgumentNames: new Set(), - requiredArgumentNames: new Set([NAME]), -}; diff --git a/composition/src/v1/normalization/normalization-factory.ts b/composition/src/v1/normalization/normalization-factory.ts index 9dcedb56bb..01dd56b59f 100644 --- a/composition/src/v1/normalization/normalization-factory.ts +++ b/composition/src/v1/normalization/normalization-factory.ts @@ -16,8 +16,6 @@ import { type OperationTypeDefinitionNode, OperationTypeNode, print, - type SchemaDefinitionNode, - type SchemaExtensionNode, type StringValueNode, type TypeDefinitionNode, type TypeExtensionNode, @@ -27,7 +25,6 @@ import { } from 'graphql'; import { type EnumTypeNode, - extractExecutableDirectiveLocations, formatDescription, type InputObjectTypeNode, type InterfaceTypeNode, @@ -43,6 +40,7 @@ import { type UnionTypeNode, } from '../../ast/utils'; import { + extractLinkArgs, getConditionalFieldSetDirectiveName, getInitialFieldCoordsPath, getNormalizedFieldSet, @@ -67,9 +65,6 @@ import { mapToArrayOfValues, newAuthorizationData, newFieldAuthorizationData, - subtractSet, - upsertAuthorizationData, - upsertEntityData, } from '../utils/utils'; import { configureDescriptionNoDescriptionError, @@ -78,11 +73,8 @@ import { duplicateDirectiveArgumentDefinitionsErrorMessage, duplicateDirectiveDefinitionArgumentErrorMessage, duplicateDirectiveDefinitionError, - duplicateDirectiveDefinitionLocationErrorMessage, duplicateFieldInFieldSetErrorMessage, duplicateImplementedInterfaceError, - duplicateOverriddenFieldErrorMessage, - duplicateOverriddenFieldsError, duplicateTypeDefinitionError, duplicateUnionMemberDefinitionError, equivalentSourceAndTargetOverrideErrorMessage, @@ -93,8 +85,8 @@ import { incompatibleTypeWithProvidesErrorMessage, inlineFragmentWithoutTypeConditionErrorMessage, invalidArgumentValueErrorMessage, + invalidComposeDirectiveNameError, invalidDirectiveDefinitionError, - invalidDirectiveDefinitionLocationErrorMessage, invalidDirectiveError, invalidDirectiveLocationErrorMessage, invalidEdfsPublishResultObjectErrorMessage, @@ -125,8 +117,6 @@ import { invalidSelectionOnUnionErrorMessage, invalidSelectionSetDefinitionErrorMessage, invalidSelectionSetErrorMessage, - invalidSubgraphNameErrorMessage, - invalidSubgraphNamesError, invalidSubscriptionFilterLocationError, invalidUnionMemberTypeError, listSizeAssumedSizeSlicingArgDefaultErrorMessage, @@ -144,6 +134,7 @@ import { noDefinedUnionMembersError, noFieldDefinitionsError, noInputValueDefinitionsError, + noLeadingAtComposeDirectiveNameError, nonEntityObjectExtensionsEventDrivenErrorMessage, nonExternalConditionalFieldError, nonExternalKeyFieldNamesEventDrivenErrorMessage, @@ -158,8 +149,6 @@ import { semanticNonNullLevelsNaNIndexErrorMessage, semanticNonNullLevelsNonNullErrorMessage, subgraphInvalidSyntaxError, - subgraphValidationError, - subgraphValidationFailureError, typeNameAlreadyProvidedErrorMessage, undefinedCompositeOutputTypeError, undefinedDirectiveError, @@ -168,6 +157,8 @@ import { undefinedTypeError, unexpectedDirectiveArgumentErrorMessage, unexpectedKindFatalError, + unimportedComposeDirectiveNameError, + unknownComposeDirectiveNameError, unknownInlineFragmentTypeConditionErrorMessage, unknownNamedTypeErrorMessage, unknownTypeInFieldSetErrorMessage, @@ -178,7 +169,6 @@ import { DEPENDENCIES_BY_DIRECTIVE_NAME, EVENT_DIRECTIVE_NAMES, STREAM_CONFIGURATION_FIELD_NAMES, - TYPE_SYSTEM_DIRECTIVE_LOCATIONS, } from '../constants/strings'; import { buildASTSchema } from '../../buildASTSchema/buildASTSchema'; import { @@ -191,28 +181,25 @@ import { type RequiredFieldConfiguration, } from '../../router-configuration/types'; import { printTypeNode } from '@graphql-tools/merge'; -import { recordSubgraphName } from '../subgraph/subgraph'; import { + composedOneOfDirectiveWarning, consumerInactiveThresholdInvalidValueWarning, externalEntityExtensionKeyFieldWarning, externalInterfaceFieldsWarning, fieldAlreadyProvidedWarning, invalidExternalFieldWarning, - invalidOverrideTargetSubgraphNameWarning, nonExternalConditionalFieldWarning, singleSubgraphInputFieldOneOfWarning, unimplementedInterfaceOutputTypeWarning, } from '../warnings/warnings'; import { upsertDirectiveSchemaAndEntityDefinitions, upsertParentsAndChildren } from './walkers'; import { - type ArgumentData, type AuthorizationData, type CompositeOutputData, type ConditionalFieldData, type ConfigureDescriptionData, type EntityData, type EntityInterfaceSubgraphData, - type DirectiveDefinitionData, type EnumDefinitionData, type EnumValueData, ExtensionType, @@ -224,16 +211,14 @@ import { type NodeData, type ObjectDefinitionData, type ParentDefinitionData, - type PersistedDirectiveDefinitionData, type ScalarDefinitionData, type SchemaData, type UnionDefinitionData, -} from '../../schema-building/types'; +} from '../../schema-building/types/types'; import { areDefaultValuesCompatible, childMapToValueArray, getParentTypeName, - isEnumData, isFieldData, isInputNodeKind, isInputObjectDefinitionData, @@ -246,10 +231,12 @@ import { isTypeValidImplementation, newConditionalFieldData, newExternalFieldData, - newPersistedDirectivesData, + newFederatedDirectivesData, + sanitizeDefaultValue, } from '../../schema-building/utils'; import { type CompositeOutputNode, + extractDirectiveLocations, getMutableEnumNode, getMutableFieldNode, getMutableInputObjectNode, @@ -259,24 +246,22 @@ import { getMutableScalarNode, getMutableTypeNode, getMutableUnionNode, - getNamedTypeNode, getTypeNodeNamedTypeName, type MutableInputValueNode, type MutableTypeNode, } from '../../schema-building/ast'; -import { type InvalidRootTypeFieldEventsDirectiveData } from '../../errors/types'; +import { type InvalidRootTypeFieldEventsDirectiveData } from '../../errors/types/types'; import { Graph } from '../../resolvability-graph/graph'; import { DEFAULT_CONSUMER_INACTIVE_THRESHOLD } from '../constants/integers'; -import { type InternalSubgraph } from '../../subgraph/types'; import { type Warning } from '../../warnings/types'; -import { type BatchNormalizationResult, type NormalizationResult } from '../../normalization/types'; +import { type NormalizationResult } from '../../normalization/types'; import { ARGUMENT, ASSUMED_SIZE, AUTHENTICATED, - BOOLEAN_SCALAR, CHANNEL, CHANNELS, + COMPOSE_DIRECTIVE, CONFIGURE_DESCRIPTION, CONSUMER_INACTIVE_THRESHOLD, CONSUMER_NAME, @@ -294,14 +279,10 @@ import { EDFS_REDIS_SUBSCRIBE, ENTITIES_FIELD, EXECUTABLE_DIRECTIVE_LOCATIONS, - EXECUTION, EXTENDS, EXTERNAL, - FIELD_SET_SCALAR, FIELDS, - FLOAT_SCALAR, HYPHEN_JOIN, - ID_SCALAR, INACCESSIBLE, INHERITABLE_DIRECTIVE_NAMES, INPUT_FIELD, @@ -309,9 +290,8 @@ import { INTERFACE_OBJECT, KEY, LEVELS, - LINK_IMPORT, - LINK_PURPOSE, LIST_SIZE, + LITERAL_AT, MUTATION, NON_NULLABLE_BOOLEAN, NON_NULLABLE_EDFS_PUBLISH_EVENT_RESULT, @@ -335,9 +315,7 @@ import { RESOLVABLE, ROOT_TYPE_NAMES, SCHEMA, - SCOPE_SCALAR, SCOPES, - SECURITY, SEMANTIC_NON_NULL, SERVICE_FIELD, SHAREABLE, @@ -350,9 +328,7 @@ import { SUBJECTS, SUBSCRIBE, SUBSCRIPTION, - SUBSCRIPTION_FIELD_CONDITION, SUBSCRIPTION_FILTER, - SUBSCRIPTION_FILTER_CONDITION, SUCCESS, TOPIC, TOPICS, @@ -373,8 +349,9 @@ import { } from '../../utils/utils'; import { type AddInputValueDataByNodeParams, + type ComposeDirectiveNode, type ConditionalFieldSetValidationResult, - type ExtractArgumentDataResult, + type ExtractDirectiveArgumentDataResult, type FieldSetData, type FieldSetParentResult, type HandleCostDirectiveParams, @@ -384,13 +361,15 @@ import { type HandleRequiresScopesDirectiveParams, type HandleSemanticNonNullDirectiveParams, type KeyFieldSetData, + type LinkImportData, type UpsertInputObjectResult, type ValidateDirectiveParams, -} from './types'; +} from './types/types'; import { newConfigurationData, newFieldSetConditionData } from '../../router-configuration/utils'; import { type ImplementationErrors, type InvalidFieldImplementation } from '../../utils/types'; import { type AbstractTypeName, + type ArgumentName, type DirectiveName, type FieldName, type InterfaceTypeName, @@ -398,17 +377,23 @@ import { type TypeName, } from '../../types/types'; import { - type BatchNormalizeParams, type HandleFieldInheritableDirectivesParams, type HandleNonExternalConditionalFieldParams, type NormalizationFactoryParams, type NormalizeSubgraphFromStringParams, type NormalizeSubgraphParams, - type SanitizeDefaultValueParams, type ValidateOneOfDirectiveParams, -} from './params'; +} from './types/params'; import { EDFS_NATS_STREAM_CONFIGURATION_DEFINITION } from '../constants/non-directive-definitions'; import type { CompositionOptions } from '../../types/params'; +import { type SchemaNodeResult } from './types/results'; +import { isArgumentValueValid } from '../../validation/validation'; +import { + type AddDirectiveArgumentDataByNodeParams, + type ExtractDirectiveArgumentDataParams, +} from '../../directive-definition-data/types/params'; +import { newDirectiveArgumentData, newDirectiveDefinitionData } from '../../directive-definition-data/utils'; +import { type DirectiveArgumentData, type DirectiveDefinitionData } from '../../directive-definition-data/types/types'; export function normalizeSubgraphFromString({ noLocation, @@ -439,7 +424,7 @@ export function normalizeSubgraph({ export class NormalizationFactory { argumentName = ''; - authorizationDataByParentTypeName = new Map(); + authorizationDataByParentTypeName = new Map(); concreteTypeNamesByAbstractTypeName = new Map>(); conditionalFieldDataByCoords = new Map(); configurationDataByTypeName = new Map(); @@ -450,16 +435,18 @@ export class NormalizationFactory { directiveArgumentWeights: new Map(), }; customDirectiveDefinitionByName = new Map(); - definedDirectiveNames = new Set(); + definedDirectiveNames = new Set(); directiveDefinitionByName = new Map(); directiveDefinitionDataByName = initializeDirectiveDefinitionDatas(); doesParentRequireFetchReasons = false; edfsDirectiveReferences = new Set(); errors = new Array(); - entityDataByTypeName = new Map(); - entityInterfaceDataByTypeName = new Map(); + entityDataByTypeName = new Map(); + entityInterfaceDataByTypeName = new Map(); eventsConfigurations = new Map(); - fieldSetDataByTypeName = new Map(); + federatedDirectiveDataByName = new Map(); + fieldSetDataByTypeName = new Map(); + importDataByDirectiveName = new Map(); interfaceImplementationTypeNamesByInterfaceTypeName = new Map>(); internalGraph: Graph; invalidConfigureDescriptionNodeDatas: Array = []; @@ -473,19 +460,19 @@ export class NormalizationFactory { lastParentNodeKind: Kind = Kind.NULL; lastChildNodeKind: Kind = Kind.NULL; options: CompositionOptions; - parentTypeNamesWithAuthDirectives = new Set(); + parentTypeNamesWithAuthDirectives = new Set(); keyFieldSetsByEntityTypeNameByFieldCoords = new Map>>(); keyFieldNamesByParentTypeName = new Map>(); fieldCoordsByNamedTypeName = new Map>(); operationTypeNodeByTypeName = new Map(); originalParentTypeName = ''; - originalTypeNameByRenamedTypeName = new Map(); - overridesByTargetSubgraphName = new Map>>(); - parentDefinitionDataByTypeName = new Map(); - schemaData: SchemaData; - referencedDirectiveNames = new Set(); - referencedTypeNames = new Set(); + originalTypeNameByRenamedTypeName = new Map(); + overriddenFieldNamesByTypeNameByTargetSubgraphName = new Map>>(); + parentDefinitionDataByTypeName = new Map(); + referencedDirectiveNames = new Set(); + referencedTypeNames = new Set(); renamedParentTypeName = ''; + schemaData: SchemaData; subgraphName: SubgraphName; unvalidatedExternalFieldCoords = new Set(); usesEdfsNatsStreamConfiguration: boolean = false; @@ -504,31 +491,6 @@ export class NormalizationFactory { }; } - sanitizeDefaultValue({ data, namedTypeData, node }: SanitizeDefaultValueParams) { - if (!data.defaultValue) { - return; - } - - if (!isEnumData(namedTypeData)) { - return; - } - - data.defaultValue = visit(data.defaultValue, { - StringValue: { - enter(node) { - return { - kind: Kind.ENUM, - value: node.value, - }; - }, - }, - }); - - if (node) { - node.defaultValue = data.defaultValue; - } - } - validateArguments(fieldData: FieldData, parentKind: Kind) { for (const argumentData of fieldData.argumentDataByName.values()) { const namedTypeName = getTypeNodeNamedTypeName(argumentData.type); @@ -543,7 +505,7 @@ export class NormalizationFactory { } if (isInputNodeKind(namedTypeData.kind)) { argumentData.namedTypeKind = namedTypeData.kind; - this.sanitizeDefaultValue({ data: argumentData, namedTypeData, node: argumentData.node }); + sanitizeDefaultValue({ data: argumentData, namedTypeData, node: argumentData.node }); continue; } this.errors.push( @@ -560,90 +522,6 @@ export class NormalizationFactory { return ROOT_TYPE_NAMES.has(typeName) || this.operationTypeNodeByTypeName.has(typeName); } - isArgumentValueValid(typeNode: TypeNode, argumentValue: ConstValueNode): boolean { - if (argumentValue.kind === Kind.NULL) { - return typeNode.kind !== Kind.NON_NULL_TYPE; - } - switch (typeNode.kind) { - case Kind.LIST_TYPE: { - if (argumentValue.kind !== Kind.LIST) { - // This handles List coercion - return this.isArgumentValueValid(getNamedTypeNode(typeNode.type), argumentValue); - } - for (const value of argumentValue.values) { - if (!this.isArgumentValueValid(typeNode.type, value)) { - return false; - } - } - return true; - } - case Kind.NAMED_TYPE: { - switch (typeNode.name.value) { - case BOOLEAN_SCALAR: { - return argumentValue.kind === Kind.BOOLEAN; - } - case FLOAT_SCALAR: { - return argumentValue.kind === Kind.FLOAT || argumentValue.kind === Kind.INT; - } - case ID_SCALAR: { - return argumentValue.kind === Kind.STRING || argumentValue.kind === Kind.INT; - } - case INT_SCALAR: { - return argumentValue.kind === Kind.INT; - } - case FIELD_SET_SCALAR: - // intentional fallthrough - case SCOPE_SCALAR: - // intentional fallthrough - case STRING_SCALAR: { - return argumentValue.kind === Kind.STRING; - } - case LINK_IMPORT: { - return true; - } - case LINK_PURPOSE: { - if (argumentValue.kind !== Kind.ENUM) { - return false; - } - return argumentValue.value === SECURITY || argumentValue.value === EXECUTION; - } - case SUBSCRIPTION_FIELD_CONDITION: - // intentional fallthrough - case SUBSCRIPTION_FILTER_CONDITION: - return argumentValue.kind === Kind.OBJECT; - default: { - const parentData = this.parentDefinitionDataByTypeName.get(typeNode.name.value); - if (!parentData) { - return false; - } - if (parentData.kind === Kind.SCALAR_TYPE_DEFINITION) { - // For now, allow custom scalars to be any value kind. - return true; - } - if (parentData.kind === Kind.ENUM_TYPE_DEFINITION) { - if (argumentValue.kind !== Kind.ENUM && argumentValue.kind !== Kind.STRING) { - return false; - } - const enumValue = parentData.enumValueDataByName.get(argumentValue.value); - if (!enumValue) { - return false; - } - return !enumValue.directivesByName.has(INACCESSIBLE); - } - if (parentData.kind !== Kind.INPUT_OBJECT_TYPE_DEFINITION) { - return false; - } - // TODO deep comparison - return argumentValue.kind === Kind.OBJECT; - } - } - } - default: { - return this.isArgumentValueValid(typeNode.type, argumentValue); - } - } - } - handleFieldInheritableDirectives({ directivesByName, fieldName, @@ -690,8 +568,8 @@ export class NormalizationFactory { const isObjectKind = isObjectNodeKind(node.kind); for (const directiveNode of node.directives) { const directiveName = directiveNode.name.value; - // Don't create pointless repetitions of @shareable if (directiveName === SHAREABLE) { + // @shareable need only be propagated once getValueOrDefault(directivesByName, directiveName, () => [directiveNode]); } else { getValueOrDefault(directivesByName, directiveName, () => []).push(directiveNode); @@ -760,9 +638,9 @@ export class NormalizationFactory { } return errorMessages; } - const definedArgumentNames = new Set(); - const duplicateArgumentNames = new Set(); - const unexpectedArgumentNames = new Set(); + const definedArgumentNames = new Set(); + const duplicateArgumentNames = new Set(); + const unexpectedArgumentNames = new Set(); const requiredScopes: Array> = []; for (const argumentNode of directiveNode.arguments) { const argumentName = argumentNode.name.value; @@ -771,18 +649,24 @@ export class NormalizationFactory { continue; } definedArgumentNames.add(argumentName); - const argumentData = definitionData.argumentTypeNodeByName.get(argumentName); + const argumentData = definitionData.argumentDataByName.get(argumentName); if (!argumentData) { unexpectedArgumentNames.add(argumentName); continue; } - if (!this.isArgumentValueValid(argumentData.typeNode, argumentNode.value)) { + if ( + !isArgumentValueValid({ + argumentValue: argumentNode.value, + parentDefinitionDataByTypeName: this.parentDefinitionDataByTypeName, + typeNode: argumentData.type, + }) + ) { errorMessages.push( invalidArgumentValueErrorMessage( print(argumentNode.value), `@${directiveName}`, argumentName, - printTypeNode(argumentData.typeNode), + printTypeNode(argumentData.type), ), ); continue; @@ -858,8 +742,58 @@ export class NormalizationFactory { return errorMessages; } + handleComposeDirective(node: ComposeDirectiveNode): void { + const argNode = node.arguments[0]; + if (!argNode) { + return; + } + + const rawValue = argNode.value.value; + if (!rawValue.startsWith(LITERAL_AT)) { + this.errors.push(noLeadingAtComposeDirectiveNameError(rawValue)); + return; + } + + const directiveName = rawValue.substring(1); + if (DIRECTIVE_DEFINITION_BY_NAME.has(directiveName)) { + if (directiveName === ONE_OF) { + this.warnings.push(composedOneOfDirectiveWarning(this.subgraphName)); + } else { + this.errors.push(invalidComposeDirectiveNameError(rawValue)); + return; + } + } + + const definitionData = this.directiveDefinitionDataByName.get(directiveName); + if (!definitionData) { + this.errors.push(unknownComposeDirectiveNameError(rawValue)); + return; + } + + const importData = this.importDataByDirectiveName.get(rawValue); + if (!importData) { + this.errors.push(unimportedComposeDirectiveNameError(rawValue)); + return; + } + + definitionData.majorVersion = importData.majorVersion; + definitionData.minorVersion = importData.minorVersion; + definitionData.isComposed = true; + + this.federatedDirectiveDataByName.set(directiveName, definitionData); + } + + handleExecutableDirectives() { + for (const [directiveName, definitionData] of this.directiveDefinitionDataByName) { + if (definitionData.isComposed || definitionData.executableLocations.size < 1) { + continue; + } + this.federatedDirectiveDataByName.set(directiveName, definitionData); + } + } + validateDirectives(data: NodeData | SchemaData, directiveCoords: string) { - const undefinedDirectiveNames = new Set(); + const undefinedDirectiveNames = new Set(); for (const [directiveName, directiveNodes] of data.directivesByName) { const definitionData = this.directiveDefinitionDataByName.get(directiveName); if (!definitionData) { @@ -869,6 +803,9 @@ export class NormalizationFactory { } continue; } + if (definitionData.isComposed) { + definitionData.isReferenced = true; + } const definitionErrorMessages: Array = []; const directiveLocation = nodeKindToDirectiveLocation(data.kind); if (!definitionData.locations.has(directiveLocation)) { @@ -891,24 +828,25 @@ export class NormalizationFactory { continue; } - const argumentData = definitionData.argumentTypeNodeByName.get(argumentNode.name.value); + const argumentData = definitionData.argumentDataByName.get(argumentNode.name.value); if (!argumentData) { continue; } - const namedTypeData = this.parentDefinitionDataByTypeName.get(getTypeNodeNamedTypeName(argumentData.typeNode)); + const namedTypeData = this.parentDefinitionDataByTypeName.get(getTypeNodeNamedTypeName(argumentData.type)); // Undefined types are handled elsewhere if (!namedTypeData) { continue; } - this.sanitizeDefaultValue({ data: argumentData, namedTypeData, node: argumentNode as MutableInputValueNode }); + sanitizeDefaultValue({ data: argumentData, namedTypeData, node: argumentNode as MutableInputValueNode }); } for (let i = 0; i < directiveNodes.length; i++) { + const directiveNode = directiveNodes[i]; const errorMessages = this.validateDirective({ data, - directiveNode: directiveNodes[i], + directiveNode, definitionData, directiveCoords, errorMessages: i < 1 ? definitionErrorMessages : [], @@ -1015,14 +953,14 @@ export class NormalizationFactory { for (const argument of directiveNode.arguments) { switch (argument.name.value) { case PROPAGATE: { - if (argument.value.kind != Kind.BOOLEAN) { + if (argument.value.kind !== Kind.BOOLEAN) { return; } configureDescriptionData.propagate = argument.value.value; break; } case DESCRIPTION_OVERRIDE: { - if (argument.value.kind != Kind.STRING) { + if (argument.value.kind !== Kind.STRING) { return; } configureDescriptionData.description = argument.value.value; @@ -1134,88 +1072,33 @@ export class NormalizationFactory { return argumentDataByName; } - addPersistedDirectiveDefinitionDataByNode( - persistedDirectiveDefinitionDataByDirectiveName: Map, - node: DirectiveDefinitionNode, - executableLocations: Set, - ) { - const name = node.name.value; - const directiveName = `@${name}`; - const argumentDataByName = new Map(); - for (const argumentNode of node.arguments || []) { - this.addInputValueDataByNode({ - inputValueDataByName: argumentDataByName, - isArgument: true, - node: argumentNode, - originalParentTypeName: directiveName, - }); - } - persistedDirectiveDefinitionDataByDirectiveName.set(name, { - argumentDataByName: argumentDataByName, - executableLocations, - name, - repeatable: node.repeatable, - subgraphNames: new Set([this.subgraphName]), - description: formatDescription(node.description), - }); - } - - extractDirectiveLocations(node: DirectiveDefinitionNode, errorMessages: Array): Set { - const locations = new Set(); - const handledLocations = new Set(); - for (const locationNode of node.locations) { - const locationName = locationNode.value; - if (handledLocations.has(locationName)) { - continue; - } - if (!EXECUTABLE_DIRECTIVE_LOCATIONS.has(locationName) && !TYPE_SYSTEM_DIRECTIVE_LOCATIONS.has(locationName)) { - errorMessages.push(invalidDirectiveDefinitionLocationErrorMessage(locationName)); - handledLocations.add(locationName); - continue; - } - if (locations.has(locationName)) { - errorMessages.push(duplicateDirectiveDefinitionLocationErrorMessage(locationName)); - handledLocations.add(locationName); - continue; - } - locations.add(locationName); - } - return locations; - } - - extractArgumentData( - argumentNodes: ReadonlyArray | Array | undefined, - errorMessages: Array, - ): ExtractArgumentDataResult { - const argumentTypeNodeByName = new Map(); - const optionalArgumentNames = new Set(); - const requiredArgumentNames = new Set(); + extractDirectiveArgumentData({ + argumentNodes, + directiveName, + errorMessages, + }: ExtractDirectiveArgumentDataParams): ExtractDirectiveArgumentDataResult { + const argumentDataByName = new Map(); + const optionalArgumentNames = new Set(); + const requiredArgumentNames = new Set(); const output = { - argumentTypeNodeByName, + argumentDataByName, optionalArgumentNames, requiredArgumentNames, }; if (!argumentNodes) { return output; } - const duplicateArgumentNames = new Set(); - for (const argumentNode of argumentNodes) { - const name = argumentNode.name.value; - if (argumentTypeNodeByName.has(name)) { + const duplicateArgumentNames = new Set(); + for (const node of argumentNodes) { + const name = node.name.value; + if (argumentDataByName.has(name)) { duplicateArgumentNames.add(name); continue; } - if (argumentNode.defaultValue) { - optionalArgumentNames.add(name); - } - if (isTypeRequired(argumentNode.type) && !argumentNode.defaultValue) { - requiredArgumentNames.add(name); - } - argumentTypeNodeByName.set(name, { + argumentDataByName.set( name, - typeNode: argumentNode.type, - defaultValue: argumentNode.defaultValue, - }); + this.addDirectiveArgumentDataByNode({ directiveName, node, optionalArgumentNames, requiredArgumentNames }), + ); } if (duplicateArgumentNames.size > 0) { errorMessages.push(duplicateDirectiveDefinitionArgumentErrorMessage([...duplicateArgumentNames])); @@ -1257,6 +1140,47 @@ export class NormalizationFactory { } } + addDirectiveArgumentDataByNode({ + directiveName, + node, + optionalArgumentNames, + requiredArgumentNames, + }: AddDirectiveArgumentDataByNodeParams): DirectiveArgumentData { + const name = node.name.value; + const parentName = `@${directiveName}`; + if (node.defaultValue && !areDefaultValuesCompatible(node.type, node.defaultValue)) { + this.errors.push( + incompatibleInputValueDefaultValueTypeError( + `argument "${name}"`, + parentName, + printTypeNode(node.type), + print(node.defaultValue), + ), + ); + } + const isRequired = isTypeRequired(node.type); + if (node.defaultValue) { + optionalArgumentNames.add(name); + } else if (isRequired) { + requiredArgumentNames.add(name); + } + const namedTypeName = getTypeNodeNamedTypeName(node.type); + const argumentData = newDirectiveArgumentData({ + name, + directive: `@${directiveName}`, + directivesByName: this.extractDirectives(node, new Map()), + defaultValue: node.defaultValue, + description: formatDescription(node.description), + namedTypeKind: BASE_SCALARS.has(namedTypeName) ? Kind.SCALAR_TYPE_DEFINITION : Kind.NULL, + node: getMutableInputValueNode(node, parentName, this.errors), + requiredSubgraphNames: new Set(isRequired ? [this.subgraphName] : []), + subgraphNames: new Set([this.subgraphName]), + typeNode: getMutableTypeNode(node.type, parentName, this.errors), + }); + this.extractConfigureDescriptionsData(argumentData); + return argumentData; + } + // returns true if the directive is custom; otherwise, false addDirectiveDefinitionDataByNode(node: DirectiveDefinitionNode): boolean { const name = node.name.value; @@ -1280,20 +1204,33 @@ export class NormalizationFactory { return false; } this.directiveDefinitionByName.set(name, node); + // @TODO const errorMessages: Array = []; - const { argumentTypeNodeByName, optionalArgumentNames, requiredArgumentNames } = this.extractArgumentData( - node.arguments, + const { argumentDataByName, optionalArgumentNames, requiredArgumentNames } = this.extractDirectiveArgumentData({ + argumentNodes: node.arguments, + directiveName: name, errorMessages, - ); - this.directiveDefinitionDataByName.set(name, { - argumentTypeNodeByName: argumentTypeNodeByName, - isRepeatable: node.repeatable, - locations: this.extractDirectiveLocations(node, errorMessages), - name, - node, - optionalArgumentNames, - requiredArgumentNames, }); + const { errors, locations } = extractDirectiveLocations(node); + + // @TODO + if (errors.length > 0) { + this.errors.push(...errors); + } + this.directiveDefinitionDataByName.set( + name, + newDirectiveDefinitionData({ + argumentDataByName: argumentDataByName, + description: node.description, + isRepeatable: node.repeatable, + locations, + name, + node, + optionalArgumentNames, + requiredArgumentNames, + subgraphNames: new Set([this.subgraphName]), + }), + ); if (errorMessages.length > 0) { this.errors.push(invalidDirectiveDefinitionError(name, errorMessages)); } @@ -1301,11 +1238,11 @@ export class NormalizationFactory { } addFieldDataByNode( - fieldDataByFieldName: Map, + fieldDataByName: Map, node: FieldDefinitionNode, - argumentDataByArgumentName: Map, - directivesByName: Map, - inheritedDirectiveNames: Set = new Set(), + argumentDataByName: Map, + directivesByName: Map, + inheritedDirectiveNames = new Set(), ): FieldData { const name = node.name.value; const parentTypeName = this.renamedParentTypeName || this.originalParentTypeName; @@ -1313,9 +1250,9 @@ export class NormalizationFactory { const { isExternal, isShareable } = isNodeExternalOrShareable(node, !this.isSubgraphVersionTwo, directivesByName); const namedTypeName = getTypeNodeNamedTypeName(node.type); const fieldData: FieldData = { - argumentDataByName: argumentDataByArgumentName, + argumentDataByName: argumentDataByName, configureDescriptionDataBySubgraphName: new Map(), - externalFieldDataBySubgraphName: new Map([ + externalFieldDataBySubgraphName: new Map([ [this.subgraphName, newExternalFieldData(isExternal)], ]), federatedCoords: `${parentTypeName}.${name}`, @@ -1329,7 +1266,7 @@ export class NormalizationFactory { node: getMutableFieldNode(node, fieldCoords, this.errors), nullLevelsBySubgraphName: new Map>(), originalParentTypeName: this.originalParentTypeName, - persistedDirectivesData: newPersistedDirectivesData(), + federatedDirectivesData: newFederatedDirectivesData(), renamedParentTypeName: parentTypeName, subgraphNames: new Set([this.subgraphName]), type: getMutableTypeNode(node.type, fieldCoords, this.errors), @@ -1340,7 +1277,7 @@ export class NormalizationFactory { this.referencedTypeNames.add(fieldData.namedTypeName); } this.extractConfigureDescriptionsData(fieldData); - fieldDataByFieldName.set(name, fieldData); + fieldDataByName.set(name, fieldData); return fieldData; } @@ -1386,7 +1323,7 @@ export class NormalizationFactory { node: getMutableInputValueNode(node, originalParentTypeName, this.errors), originalCoords, originalParentTypeName: originalParentTypeName, - persistedDirectivesData: newPersistedDirectivesData(), + federatedDirectivesData: newFederatedDirectivesData(), renamedParentTypeName: federatedParentTypeName, requiredSubgraphNames: new Set(isTypeRequired(node.type) ? [this.subgraphName] : []), subgraphNames: new Set([this.subgraphName]), @@ -1437,7 +1374,7 @@ export class NormalizationFactory { kind: Kind.INTERFACE_TYPE_DEFINITION, name: typeName, node: getMutableInterfaceNode(node.name), - persistedDirectivesData: newPersistedDirectivesData(), + federatedDirectivesData: newFederatedDirectivesData(), requireFetchReasonsFieldNames: new Set(), subgraphNames: new Set([this.subgraphName]), description: formatDescription('description' in node ? node.description : undefined), @@ -1515,7 +1452,7 @@ export class NormalizationFactory { kind: Kind.OBJECT_TYPE_DEFINITION, name: typeName, node: getMutableObjectNode(node.name), - persistedDirectivesData: newPersistedDirectivesData(), + federatedDirectivesData: newFederatedDirectivesData(), requireFetchReasonsFieldNames: new Set(), renamedTypeName: this.getRenamedRootTypeName(typeName), subgraphNames: new Set([this.subgraphName]), @@ -1531,7 +1468,7 @@ export class NormalizationFactory { const parentData = this.parentDefinitionDataByTypeName.get(typeName); const directivesByName = this.extractDirectives( node, - parentData?.directivesByName || new Map(), + parentData?.directivesByName || new Map>(), ); const extensionType = this.getNodeExtensionType(isRealExtension, directivesByName); if (parentData) { @@ -1554,7 +1491,7 @@ export class NormalizationFactory { } const newParentData: EnumDefinitionData = { appearances: 1, - configureDescriptionDataBySubgraphName: new Map(), + configureDescriptionDataBySubgraphName: new Map(), directivesByName: directivesByName, extensionType, enumValueDataByName: new Map(), @@ -1562,7 +1499,7 @@ export class NormalizationFactory { kind: Kind.ENUM_TYPE_DEFINITION, name: typeName, node: getMutableEnumNode(node.name), - persistedDirectivesData: newPersistedDirectivesData(), + federatedDirectivesData: newFederatedDirectivesData(), subgraphNames: new Set([this.subgraphName]), description: formatDescription('description' in node ? node.description : undefined), }; @@ -1575,11 +1512,12 @@ export class NormalizationFactory { const parentData = this.parentDefinitionDataByTypeName.get(typeName); const directivesByName = this.extractDirectives( node, - parentData?.directivesByName || new Map(), + parentData?.directivesByName || new Map>(), ); const extensionType = this.getNodeExtensionType(isRealExtension, directivesByName); if (parentData) { if (parentData.kind !== Kind.INPUT_OBJECT_TYPE_DEFINITION) { + // TODO this.errors.push( multipleNamedTypeDefinitionError( typeName, @@ -1610,7 +1548,7 @@ export class NormalizationFactory { kind: Kind.INPUT_OBJECT_TYPE_DEFINITION, name: typeName, node: getMutableInputObjectNode(node.name), - persistedDirectivesData: newPersistedDirectivesData(), + federatedDirectivesData: newFederatedDirectivesData(), subgraphNames: new Set([this.subgraphName]), description: formatDescription('description' in node ? node.description : undefined), }; @@ -1655,7 +1593,7 @@ export class NormalizationFactory { kind: Kind.SCALAR_TYPE_DEFINITION, name: typeName, node: getMutableScalarNode(node.name), - persistedDirectivesData: newPersistedDirectivesData(), + federatedDirectivesData: newFederatedDirectivesData(), subgraphNames: new Set([this.subgraphName]), description: formatDescription('description' in node ? node.description : undefined), }; @@ -1730,7 +1668,7 @@ export class NormalizationFactory { memberByMemberTypeName: this.extractUnionMembers(node, new Map()), name: typeName, node: getMutableUnionNode(node.name), - persistedDirectivesData: newPersistedDirectivesData(), + federatedDirectivesData: newFederatedDirectivesData(), subgraphNames: new Set([this.subgraphName]), description: formatDescription('description' in node ? node.description : undefined), }; @@ -2416,7 +2354,7 @@ export class NormalizationFactory { return; } const overrideDataForSubgraph = getValueOrDefault( - this.overridesByTargetSubgraphName, + this.overriddenFieldNamesByTypeNameByTargetSubgraphName, targetSubgraphName, () => new Map>(), ); @@ -2577,7 +2515,7 @@ export class NormalizationFactory { suppliedArgNodeByName.set(arg.name.value, arg.value); } - for (const [argName, argData] of definitionData.argumentTypeNodeByName) { + for (const [argName, argData] of definitionData.argumentDataByName) { const coords = `${directiveName}.${argName}`; const argWeight = this.costs.directiveArgumentWeights.get(coords); // Bail if the argName argument does not have cost attached to it. @@ -2942,7 +2880,7 @@ export class NormalizationFactory { } switch (fieldName) { case CONSUMER_NAME: - if (field.value.kind != Kind.STRING || field.value.value.length < 1) { + if (field.value.kind !== Kind.STRING || field.value.value.length < 1) { invalidRequiredFieldNames.add(fieldName); isValid = false; continue; @@ -2950,7 +2888,7 @@ export class NormalizationFactory { consumerName = field.value.value; break; case STREAM_NAME: - if (field.value.kind != Kind.STRING || field.value.value.length < 1) { + if (field.value.kind !== Kind.STRING || field.value.value.length < 1) { invalidRequiredFieldNames.add(fieldName); isValid = false; continue; @@ -2958,7 +2896,7 @@ export class NormalizationFactory { streamName = field.value.value; break; case CONSUMER_INACTIVE_THRESHOLD: - if (field.value.kind != Kind.INT) { + if (field.value.kind !== Kind.INT) { errorMessages.push( invalidArgumentValueErrorMessage( print(field.value), @@ -3364,7 +3302,7 @@ export class NormalizationFactory { if (data.kind !== Kind.OBJECT_TYPE_DEFINITION) { return false; } - if (data.fieldDataByName.size != 1) { + if (data.fieldDataByName.size !== 1) { return false; } for (const [fieldName, fieldData] of data.fieldDataByName) { @@ -3385,7 +3323,7 @@ export class NormalizationFactory { if (!isInputObjectDefinitionData(streamConfigurationInputData)) { return false; } - if (streamConfigurationInputData.inputValueDataByName.size != 3) { + if (streamConfigurationInputData.inputValueDataByName.size !== 3) { return false; } for (const [inputValueName, inputValueData] of streamConfigurationInputData.inputValueDataByName) { @@ -3681,7 +3619,7 @@ export class NormalizationFactory { return scalarDefinitionData.node; } - getSchemaNodeByData(schemaData: SchemaData): SchemaDefinitionNode | SchemaExtensionNode | undefined { + schemaNodeFromData(schemaData: SchemaData): SchemaNodeResult { const operationTypes: Array = []; for (const [ operation, @@ -3702,23 +3640,50 @@ export class NormalizationFactory { }); } + const linkResult = extractLinkArgs(schemaData.directivesByName); + if (!linkResult.success) { + return linkResult; + } + + this.importDataByDirectiveName = linkResult.importDataByDirectiveName; + + const composeDirectives = schemaData.directivesByName.get(COMPOSE_DIRECTIVE); + for (const composeDirective of composeDirectives ?? []) { + this.handleComposeDirective(composeDirective as ComposeDirectiveNode); + } + + // If the directive is not part of @composeDirective, it is effectively ignored by federation. + for (const directiveName of this.importDataByDirectiveName.keys()) { + if (!this.federatedDirectiveDataByName.has(directiveName.substring(1))) { + this.importDataByDirectiveName.delete(directiveName); + } + } + if (operationTypes.length > 0) { - const node: SchemaDefinitionNode = { - ...(schemaData.description ? { description: schemaData.description } : {}), - directives: this.getValidFlattenedDirectiveArray(schemaData.directivesByName, schemaData.name), - kind: Kind.SCHEMA_DEFINITION, - operationTypes: operationTypes, + return { + node: { + ...(schemaData.description ? { description: schemaData.description } : {}), + directives: this.getValidFlattenedDirectiveArray(schemaData.directivesByName, schemaData.name), + kind: Kind.SCHEMA_DEFINITION, + operationTypes: operationTypes, + }, + success: true, }; - return node; } if (schemaData.directivesByName.size < 1) { - return; + return { + node: undefined, + success: true, + }; } return { - directives: this.getValidFlattenedDirectiveArray(schemaData.directivesByName, schemaData.name), - kind: Kind.SCHEMA_EXTENSION, + node: { + directives: this.getValidFlattenedDirectiveArray(schemaData.directivesByName, schemaData.name), + kind: Kind.SCHEMA_EXTENSION, + }, + success: true, }; } @@ -3982,14 +3947,22 @@ export class NormalizationFactory { const definitions: Array = []; this.#addDirectiveDefinitionsToDocument(definitions); this.validateDirectives(this.schemaData, SCHEMA); - const schemaNode = this.getSchemaNodeByData(this.schemaData); + const schemaNodeResult = this.schemaNodeFromData(this.schemaData); + if (!schemaNodeResult.success) { + this.errors.push(...schemaNodeResult.errors); + return { + errors: this.errors, + success: false, + warnings: this.warnings, + }; + } /* Schema extension orphans are not supported on old routers. * Consequently, it is a breaking change that requires a new composition version, and that composition version * would only be compatible with newer routers that support schema extension orphans. * For now, only a valid schema definition node is pushed. */ - if (schemaNode?.kind === Kind.SCHEMA_DEFINITION) { - definitions.push(schemaNode); + if (schemaNodeResult.node?.kind === Kind.SCHEMA_DEFINITION) { + definitions.push(schemaNodeResult.node); } for (const [parentTypeName, parentData] of this.parentDefinitionDataByTypeName) { this.validateDirectives(parentData, parentTypeName); @@ -4037,7 +4010,7 @@ export class NormalizationFactory { // Undefined types are handled elsewhere continue; } - this.sanitizeDefaultValue({ data: valueData, namedTypeData, node: valueData.node }); + sanitizeDefaultValue({ data: valueData, namedTypeData, node: valueData.node }); if (!isInputNodeKind(namedTypeData.kind)) { this.errors.push( invalidNamedTypeError({ @@ -4223,22 +4196,7 @@ export class NormalizationFactory { this.warnings.push(unimplementedInterfaceOutputTypeWarning(this.subgraphName, referencedTypeName)); } } - const persistedDirectiveDefinitionDataByDirectiveName = new Map(); - for (const directiveDefinitionNode of this.directiveDefinitionByName.values()) { - // TODO @composeDirective directives would also be handled here - const executableLocations = extractExecutableDirectiveLocations( - directiveDefinitionNode.locations, - new Set(), - ); - if (executableLocations.size < 1) { - continue; - } - this.addPersistedDirectiveDefinitionDataByNode( - persistedDirectiveDefinitionDataByDirectiveName, - directiveDefinitionNode, - executableLocations, - ); - } + this.handleExecutableDirectives(); if (this.isSubgraphEventDrivenGraph) { this.validateEventDrivenSubgraph(); } @@ -4258,16 +4216,19 @@ export class NormalizationFactory { }; return { authorizationDataByParentTypeName: this.authorizationDataByParentTypeName, - // configurationDataMap is map of ConfigurationData per type name. - // It is an Intermediate configuration object that will be converted to an engine configuration in the router concreteTypeNamesByAbstractTypeName: this.concreteTypeNamesByAbstractTypeName, conditionalFieldDataByCoordinates: this.conditionalFieldDataByCoords, + /* `configurationDataByTypeName` is an intermediate object that is converted + * to an engine configuration in the router + */ configurationDataByTypeName: this.configurationDataByTypeName, costs: this.costs, directiveDefinitionByName: this.directiveDefinitionByName, entityDataByTypeName: this.entityDataByTypeName, entityInterfaces: this.entityInterfaceDataByTypeName, + federatedDirectiveDataByName: this.federatedDirectiveDataByName, fieldCoordsByNamedTypeName: this.fieldCoordsByNamedTypeName, + importDataByDirectiveName: this.importDataByDirectiveName, interfaceImplementationTypeNamesByInterfaceTypeName: this.interfaceImplementationTypeNamesByInterfaceTypeName, isEventDrivenGraph: this.isSubgraphEventDrivenGraph, isVersionTwo: this.isSubgraphVersionTwo, @@ -4275,245 +4236,14 @@ export class NormalizationFactory { keyFieldSetsByEntityTypeNameByKeyFieldCoords: this.keyFieldSetsByEntityTypeNameByFieldCoords, operationTypes: this.operationTypeNodeByTypeName, originalTypeNameByRenamedTypeName: this.originalTypeNameByRenamedTypeName, - overridesByTargetSubgraphName: this.overridesByTargetSubgraphName, + overriddenFieldNamesByParentTypeNameByTargetSubgraphName: this.overriddenFieldNamesByTypeNameByTargetSubgraphName, parentDefinitionDataByTypeName: this.parentDefinitionDataByTypeName, - persistedDirectiveDefinitionDataByDirectiveName, - schemaNode, + schema: buildASTSchema(newAST, { addInvalidExtensionOrphans: true, assumeValid: true, assumeValidSDL: true }), + schemaNode: schemaNodeResult.node, subgraphAST: newAST, subgraphString: print(newAST), - schema: buildASTSchema(newAST, { addInvalidExtensionOrphans: true, assumeValid: true, assumeValidSDL: true }), success: true, warnings: this.warnings, }; } } - -export function batchNormalize({ options, subgraphs }: BatchNormalizeParams): BatchNormalizationResult { - const authorizationDataByParentTypeName = new Map(); - const concreteTypeNamesByAbstractTypeName = new Map>(); - const entityDataByTypeName = new Map(); - const interfaceImplementationTypeNamesByInterfaceTypeName = new Map>(); - const internalSubgraphBySubgraphName = new Map(); - const allOverridesByTargetSubgraphName = new Map>>(); - const overrideSourceSubgraphNamesByFieldPath = new Map>(); - const duplicateOverriddenFieldPaths = new Set(); - const parentDefinitionDataMapsBySubgraphName = new Map>(); - const subgraphNames = new Set(); - const nonUniqueSubgraphNames = new Set(); - const invalidNameErrorMessages: Array = []; - const invalidORScopesCoords = new Set(); - const fieldCoordsByNamedTypeName = new Map>(); - const warnings: Array = []; - const validationErrors: Array = []; - // Record the subgraph names first, so that subgraph references can be validated - for (const subgraph of subgraphs) { - if (subgraph.name) { - recordSubgraphName(subgraph.name, subgraphNames, nonUniqueSubgraphNames); - } - } - const internalGraph = new Graph(); - for (let i = 0; i < subgraphs.length; i++) { - const subgraph = subgraphs[i]; - const subgraphName = subgraph.name || `subgraph-${i}-${Date.now()}`; - if (!subgraph.name) { - invalidNameErrorMessages.push(invalidSubgraphNameErrorMessage(i, subgraphName)); - } - const normalizationResult = normalizeSubgraph({ - document: subgraph.definitions, - internalGraph, - options, - subgraphName, - }); - if (normalizationResult.warnings.length > 0) { - warnings.push(...normalizationResult.warnings); - } - if (!normalizationResult.success) { - validationErrors.push(subgraphValidationError(subgraphName, normalizationResult.errors)); - continue; - } - if (!normalizationResult) { - validationErrors.push(subgraphValidationError(subgraphName, [subgraphValidationFailureError])); - continue; - } - - parentDefinitionDataMapsBySubgraphName.set(subgraphName, normalizationResult.parentDefinitionDataByTypeName); - - for (const authorizationData of normalizationResult.authorizationDataByParentTypeName.values()) { - upsertAuthorizationData(authorizationDataByParentTypeName, authorizationData, invalidORScopesCoords); - } - for (const [namedTypeName, fieldCoords] of normalizationResult.fieldCoordsByNamedTypeName) { - addIterableToSet({ - source: fieldCoords, - target: getValueOrDefault(fieldCoordsByNamedTypeName, namedTypeName, () => new Set()), - }); - } - for (const [ - abstractTypeName, - incomingConcreteTypeNames, - ] of normalizationResult.concreteTypeNamesByAbstractTypeName) { - const existingConcreteTypeNames = concreteTypeNamesByAbstractTypeName.get(abstractTypeName); - if (!existingConcreteTypeNames) { - concreteTypeNamesByAbstractTypeName.set(abstractTypeName, new Set(incomingConcreteTypeNames)); - continue; - } - addIterableToSet({ - source: incomingConcreteTypeNames, - target: existingConcreteTypeNames, - }); - } - for (const [ - interfaceTypeName, - incomingInterfaceTypeNames, - ] of normalizationResult.interfaceImplementationTypeNamesByInterfaceTypeName) { - const existingInterfaceTypeNames = interfaceImplementationTypeNamesByInterfaceTypeName.get(interfaceTypeName); - if (!existingInterfaceTypeNames) { - interfaceImplementationTypeNamesByInterfaceTypeName.set( - interfaceTypeName, - new Set(incomingInterfaceTypeNames), - ); - continue; - } - addIterableToSet({ - source: incomingInterfaceTypeNames, - target: existingInterfaceTypeNames, - }); - } - for (const [typeName, entityData] of normalizationResult.entityDataByTypeName) { - const keyFieldSetDataByFieldSet = entityData.keyFieldSetDatasBySubgraphName.get(subgraphName); - if (!keyFieldSetDataByFieldSet) { - continue; - } - upsertEntityData({ - entityDataByTypeName, - keyFieldSetDataByFieldSet, - typeName, - subgraphName, - }); - } - if (subgraph.name) { - internalSubgraphBySubgraphName.set(subgraphName, { - conditionalFieldDataByCoordinates: normalizationResult.conditionalFieldDataByCoordinates, - configurationDataByTypeName: normalizationResult.configurationDataByTypeName, - costs: normalizationResult.costs, - definitions: normalizationResult.subgraphAST, - directiveDefinitionByName: normalizationResult.directiveDefinitionByName, - entityInterfaces: normalizationResult.entityInterfaces, - isVersionTwo: normalizationResult.isVersionTwo, - keyFieldNamesByParentTypeName: normalizationResult.keyFieldNamesByParentTypeName, - name: subgraphName, - operationTypes: normalizationResult.operationTypes, - overriddenFieldNamesByParentTypeName: new Map>(), - parentDefinitionDataByTypeName: normalizationResult.parentDefinitionDataByTypeName, - persistedDirectiveDefinitionDataByDirectiveName: - normalizationResult.persistedDirectiveDefinitionDataByDirectiveName, - schema: normalizationResult.schema, - schemaNode: normalizationResult.schemaNode, - url: subgraph.url, - }); - } - if (normalizationResult.overridesByTargetSubgraphName.size < 1) { - continue; - } - for (const [targetSubgraphName, overridesData] of normalizationResult.overridesByTargetSubgraphName) { - const isTargetValid = subgraphNames.has(targetSubgraphName); - for (const [parentTypeName, fieldNames] of overridesData) { - /* It's possible for a renamed root type to have a field overridden, so make sure any errors at this stage are - propagated with the original typename. */ - const originalParentTypeName = - normalizationResult.originalTypeNameByRenamedTypeName.get(parentTypeName) || parentTypeName; - if (!isTargetValid) { - warnings.push( - invalidOverrideTargetSubgraphNameWarning( - targetSubgraphName, - originalParentTypeName, - [...fieldNames], - subgraph.name, - ), - ); - } else { - const overridesData = getValueOrDefault( - allOverridesByTargetSubgraphName, - targetSubgraphName, - () => new Map>(), - ); - const existingFieldNames = getValueOrDefault( - overridesData, - parentTypeName, - () => new Set(fieldNames), - ); - addIterableToSet({ - source: fieldNames, - target: existingFieldNames, - }); - } - for (const fieldName of fieldNames) { - const fieldCoords = `${originalParentTypeName}.${fieldName}`; - const sourceSubgraphs = overrideSourceSubgraphNamesByFieldPath.get(fieldCoords); - if (!sourceSubgraphs) { - overrideSourceSubgraphNamesByFieldPath.set(fieldCoords, [subgraphName]); - continue; - } - sourceSubgraphs.push(subgraphName); - duplicateOverriddenFieldPaths.add(fieldCoords); - } - } - } - } - const allErrors: Array = []; - if (invalidORScopesCoords.size > 0) { - allErrors.push(orScopesLimitError(MAX_OR_SCOPES, [...invalidORScopesCoords])); - } - if (invalidNameErrorMessages.length > 0 || nonUniqueSubgraphNames.size > 0) { - allErrors.push(invalidSubgraphNamesError([...nonUniqueSubgraphNames], invalidNameErrorMessages)); - } - if (duplicateOverriddenFieldPaths.size > 0) { - const duplicateOverriddenFieldErrorMessages: string[] = []; - for (const fieldPath of duplicateOverriddenFieldPaths) { - const sourceSubgraphNames = getOrThrowError( - overrideSourceSubgraphNamesByFieldPath, - fieldPath, - 'overrideSourceSubgraphNamesByFieldPath', - ); - duplicateOverriddenFieldErrorMessages.push(duplicateOverriddenFieldErrorMessage(fieldPath, sourceSubgraphNames)); - } - allErrors.push(duplicateOverriddenFieldsError(duplicateOverriddenFieldErrorMessages)); - } - allErrors.push(...validationErrors); - if (allErrors.length > 0) { - return { - errors: allErrors, - success: false, - warnings, - }; - } - for (const [targetSubgraphName, overridesData] of allOverridesByTargetSubgraphName) { - const internalSubgraph = getOrThrowError( - internalSubgraphBySubgraphName, - targetSubgraphName, - 'internalSubgraphBySubgraphName', - ); - internalSubgraph.overriddenFieldNamesByParentTypeName = overridesData; - for (const [parentTypeName, fieldNames] of overridesData) { - const configurationData = internalSubgraph.configurationDataByTypeName.get(parentTypeName); - if (!configurationData) { - continue; - } - subtractSet(fieldNames, configurationData.fieldNames); - if (configurationData.fieldNames.size < 1) { - internalSubgraph.configurationDataByTypeName.delete(parentTypeName); - } - } - } - - return { - authorizationDataByParentTypeName, - concreteTypeNamesByAbstractTypeName, - entityDataByTypeName, - fieldCoordsByNamedTypeName, - interfaceImplementationTypeNamesByInterfaceTypeName, - internalSubgraphBySubgraphName: internalSubgraphBySubgraphName, - internalGraph, - success: true, - warnings, - }; -} diff --git a/composition/src/v1/normalization/params.ts b/composition/src/v1/normalization/types/params.ts similarity index 58% rename from composition/src/v1/normalization/params.ts rename to composition/src/v1/normalization/types/params.ts index 555965d603..6d22240970 100644 --- a/composition/src/v1/normalization/params.ts +++ b/composition/src/v1/normalization/types/params.ts @@ -1,16 +1,9 @@ -import type { DirectiveName, FieldName, SubgraphName } from '../../types/types'; -import type { - ArgumentData, - CompositeOutputData, - InputObjectDefinitionData, - InputValueData, - ParentDefinitionData, -} from '../../schema-building/types'; -import type { ConstDirectiveNode, DocumentNode, InputValueDefinitionNode } from 'graphql'; -import type { Subgraph } from '../../subgraph/types'; -import type { CompositionOptions } from '../../types/params'; -import type { Graph } from '../../resolvability-graph/graph'; -import { type MutableInputValueNode } from '../../schema-building/ast'; +import { type DirectiveName, type FieldName, type SubgraphName } from '../../../types/types'; +import { type CompositeOutputData, type InputObjectDefinitionData } from '../../../schema-building/types/types'; +import { type ConstDirectiveNode, type DocumentNode } from 'graphql'; +import type { Subgraph } from '../../../subgraph/types'; +import type { CompositionOptions } from '../../../types/params'; +import type { Graph } from '../../../resolvability-graph/graph'; export type ValidateOneOfDirectiveParams = { data: InputObjectDefinitionData; @@ -54,9 +47,3 @@ export type NormalizeSubgraphFromStringParams = { sdlString: string; options?: CompositionOptions; }; - -export type SanitizeDefaultValueParams = { - data: ArgumentData | InputValueData; - namedTypeData: ParentDefinitionData; - node?: MutableInputValueNode; -}; diff --git a/composition/src/v1/normalization/types/results.ts b/composition/src/v1/normalization/types/results.ts new file mode 100644 index 0000000000..7f92921b37 --- /dev/null +++ b/composition/src/v1/normalization/types/results.ts @@ -0,0 +1,36 @@ +import { type DirectiveName } from '../../../types/types'; +import { type ExecutionMultiFailure, type ExecutionSingleFailure, type ExecutionSuccess } from '../../../types/results'; +import { type SchemaDefinitionNode, type SchemaExtensionNode } from 'graphql'; +import { type LinkImportData } from './types'; + +export interface ExtractLinkArgsSuccess extends ExecutionSuccess { + importDataByDirectiveName: Map; +} + +export type ExtractLinkArgsResult = ExecutionMultiFailure | ExtractLinkArgsSuccess; + +export interface ExtractImportUrlVersionSuccess extends ExecutionSuccess { + coreUrl: string; + majorVersion: number; + minorVersion: number; +} + +export type ExtractImportUrlSegmentsResult = ExecutionSingleFailure | ExtractImportUrlVersionSuccess; + +export interface SchemaNodeSuccess extends ExecutionSuccess { + node?: SchemaDefinitionNode | SchemaExtensionNode; +} + +export type SchemaNodeResult = ExecutionMultiFailure | SchemaNodeSuccess; + +export interface ExtractLinkImportsSuccess extends ExecutionSuccess { + imports: Array; +} + +export type ExtractLinkImportsResult = ExecutionMultiFailure | ExtractLinkImportsSuccess; + +export interface ExtractLinkImportObjectSuccess extends ExecutionSuccess { + import: LinkImportData; +} + +export type ExtractLinkImportObjectResult = ExecutionMultiFailure | ExtractLinkImportObjectSuccess; diff --git a/composition/src/v1/normalization/types.ts b/composition/src/v1/normalization/types/types.ts similarity index 55% rename from composition/src/v1/normalization/types.ts rename to composition/src/v1/normalization/types/types.ts index 7c2fe5487b..a40b958767 100644 --- a/composition/src/v1/normalization/types.ts +++ b/composition/src/v1/normalization/types/types.ts @@ -1,16 +1,35 @@ import { - type ArgumentData, type CompositeOutputData, - type DirectiveDefinitionData, type FieldData, type InputObjectDefinitionData, type InputValueData, type NodeData, type SchemaData, -} from '../../schema-building/types'; -import { type ConstDirectiveNode, type DocumentNode, type InputValueDefinitionNode, type ValueNode } from 'graphql'; -import { type RequiredFieldConfiguration } from '../../router-configuration/types'; -import { type DirectiveArgumentCoords, type DirectiveName, type SubgraphName } from '../../types/types'; +} from '../../../schema-building/types/types'; +import { + type ConstDirectiveNode, + type DocumentNode, + type InputValueDefinitionNode, + type Kind, + type Location, + type NameNode, + type StringValueNode, + type ValueNode, +} from 'graphql'; +import { type RequiredFieldConfiguration } from '../../../router-configuration/types'; +import { + type ArgumentName, + type DirectiveArgumentCoords, + type DirectiveName, + type FieldName, + type SubgraphName, + type TypeName, +} from '../../../types/types'; +import { type ExecutionFailure, type ExecutionSuccess } from '../../../types/results'; +import { + type DirectiveArgumentData, + type DirectiveDefinitionData, +} from '../../../directive-definition-data/types/types'; export type KeyFieldSetData = { documentNode: DocumentNode; @@ -34,10 +53,10 @@ export type FieldSetParentResult = { fieldSetParentData?: CompositeOutputData; }; -export type ExtractArgumentDataResult = { - argumentTypeNodeByName: Map; - optionalArgumentNames: Set; - requiredArgumentNames: Set; +export type ExtractDirectiveArgumentDataResult = { + argumentDataByName: Map; + optionalArgumentNames: Set; + requiredArgumentNames: Set; }; export type ValidateDirectiveParams = { @@ -46,7 +65,7 @@ export type ValidateDirectiveParams = { directiveCoords: string; directiveNode: ConstDirectiveNode; errorMessages: Array; - requiredArgumentNames: Array; + requiredArgumentNames: Array; }; export type HandleOverrideDirectiveParams = { @@ -90,21 +109,39 @@ export type RecordDirectiveWeightOnFieldParams = { }; export type AddInputValueDataByNodeParams = { - inputValueDataByName: Map; + inputValueDataByName: Map; isArgument: boolean; node: InputValueDefinitionNode; - originalParentTypeName: string; - fieldName?: string; - renamedParentTypeName?: string; + originalParentTypeName: TypeName; + fieldName?: FieldName; + renamedParentTypeName?: TypeName; }; -export type ExecutionFailure = { - success: false; +export interface UpsertInputObjectSuccess extends ExecutionSuccess { + data: InputObjectDefinitionData; +} + +export type UpsertInputObjectResult = ExecutionFailure | UpsertInputObjectSuccess; + +export type ComposeDirectiveNode = { + readonly arguments: ReadonlyArray; + readonly kind: Kind.DIRECTIVE; + readonly name: NameNode; + readonly loc?: Location; }; -export type UpsertInputObjectSuccess = { - data: InputObjectDefinitionData; - success: true; +export type ComposeDirectiveArgumentNode = { + readonly kind: Kind.ARGUMENT; + readonly name: NameNode; + readonly value: StringValueNode; + readonly loc?: Location; }; -export type UpsertInputObjectResult = ExecutionFailure | UpsertInputObjectSuccess; +export type LinkImportData = { + name: DirectiveName; + coreUrl: string; + majorVersion: number; + minorVersion: number; + node?: ConstDirectiveNode; + rename?: DirectiveName; +}; diff --git a/composition/src/v1/normalization/utils.ts b/composition/src/v1/normalization/utils.ts index 10b4504e61..62b77eeac3 100644 --- a/composition/src/v1/normalization/utils.ts +++ b/composition/src/v1/normalization/utils.ts @@ -1,4 +1,15 @@ -import { BREAK, type ConstDirectiveNode, type DocumentNode, Kind, OperationTypeNode, print, visit } from 'graphql'; +import { + BREAK, + type ConstArgumentNode, + type ConstDirectiveNode, + type ConstObjectValueNode, + type ConstValueNode, + type DocumentNode, + Kind, + OperationTypeNode, + print, + visit, +} from 'graphql'; import { isKindAbstract, lexicographicallySortDocumentNode } from '../../ast/utils'; import { type NormalizationFactory } from './normalization-factory'; import { @@ -8,21 +19,29 @@ import { inlineFragmentInFieldSetErrorMessage, invalidDirectiveError, invalidEventSubjectsArgumentErrorMessage, + invalidFieldLinkDirectiveImportObjectError, + invalidLinkDirectiveImportObjectError, + invalidLinkDirectiveUrlError, invalidSelectionSetDefinitionErrorMessage, invalidSelectionSetErrorMessage, + invalidSubValueLinkDirectiveImportError, + invalidVersionLinkDirectiveUrlError, + noFeatureNameLinkDirectiveUrlError, + noLinkDirectiveUrlError, + noNameFieldLinkDirectiveImportObjectError, + nonIterableLinkDirectiveImportError, + noPathLinkDirectiveUrlError, + noVersionLinkDirectiveUrlError, undefinedEventSubjectsArgumentErrorMessage, undefinedFieldInFieldSetErrorMessage, unexpectedArgumentErrorMessage, + unknownFieldLinkDirectiveImportObjectError, unknownTypeInFieldSetErrorMessage, unparsableFieldSetSelectionErrorMessage, } from '../../errors/errors'; import { BASE_SCALARS, EDFS_ARGS_REGEXP } from '../constants/constants'; import { type RequiredFieldConfiguration } from '../../router-configuration/types'; -import { - type CompositeOutputData, - type DirectiveDefinitionData, - type InputValueData, -} from '../../schema-building/types'; +import { type CompositeOutputData, type InputValueData } from '../../schema-building/types/types'; import { getTypeNodeNamedTypeName } from '../../schema-building/ast'; import { AUTHENTICATED_DEFINITION_DATA, @@ -52,13 +71,14 @@ import { REQUIRE_FETCH_REASONS_DEFINITION_DATA, REQUIRES_DEFINITION_DATA, REQUIRES_SCOPES_DEFINITION_DATA, - SEMANTIC_NON_NULL_DATA, + SEMANTIC_NON_NULL_DEFINITION_DATA, SHAREABLE_DEFINITION_DATA, SPECIFIED_BY_DEFINITION_DATA, SUBSCRIPTION_FILTER_DEFINITION_DATA, TAG_DEFINITION_DATA, -} from './directive-definition-data'; +} from '../../directive-definition-data/directive-definition-data'; import { + AS, AUTHENTICATED, COMPOSE_DIRECTIVE, CONFIGURE_CHILD_DESCRIPTIONS, @@ -76,12 +96,15 @@ import { EXTENDS, EXTERNAL, FIELDS, + IMPORT, INACCESSIBLE, INTERFACE_OBJECT, KEY, LINK, LIST_SIZE, + LITERAL_AT, LITERAL_PERIOD, + NAME, ONE_OF, OVERRIDE, PROVIDES, @@ -96,9 +119,21 @@ import { SUBSCRIPTION_FILTER, TAG, TYPENAME, + URL_LOWER, } from '../../utils/string-constants'; import { getValueOrDefault, kindToNodeType, numberToOrdinal } from '../../utils/utils'; -import { type FieldSetData, type KeyFieldSetData } from './types'; +import { type FieldSetData, type KeyFieldSetData, type LinkImportData } from './types/types'; +import { type DirectiveName } from '../../types/types'; +import { + type ExtractImportUrlSegmentsResult, + type ExtractLinkArgsResult, + type ExtractLinkImportObjectResult, + type ExtractLinkImportsResult, +} from './types/results'; +import { IMPORT_VERSION_REGEX } from '../constants/strings'; +import { type UpsertFederatedDirectiveDataParams } from '../../directive-definition-data/types/params'; +import { type DirectiveDefinitionData } from '../../directive-definition-data/types/types'; +import { copyDirectiveDefinitionData } from '../../directive-definition-data/utils'; export function newFieldSetData(): FieldSetData { return { @@ -459,10 +494,344 @@ export function initializeDirectiveDefinitionDatas(): Map = [ + AUTHENTICATED_DEFINITION_DATA, + DEPRECATED_DEFINITION_DATA, + INACCESSIBLE_DEFINITION_DATA, + ONE_OF_DEFINITION_DATA, + REQUIRES_SCOPES_DEFINITION_DATA, + SEMANTIC_NON_NULL_DEFINITION_DATA, + TAG_DEFINITION_DATA, +]; + +export function upsertFederatedDirectiveData({ + executableDirectiveDatasByName, + existingDataByName, + incomingDataByName, +}: UpsertFederatedDirectiveDataParams): void { + for (const [directiveName, directiveData] of incomingDataByName) { + const existingData = existingDataByName.get(directiveName); + const copiedData = copyDirectiveDefinitionData(directiveData); + if (!existingData) { + if (!directiveData.isComposed) { + getValueOrDefault(executableDirectiveDatasByName, directiveName, () => []).push(copiedData); + continue; + } + existingDataByName.set(directiveName, copiedData); + executableDirectiveDatasByName.delete(directiveName); + continue; + } + + // If a directive is not composed in a subgraph, it is effectively ignored. + if (!directiveData.isComposed) { + continue; + } + + /* If at least one subgraph includes the directive name in a `@composeDirective` directive, the definition of + * the custom directive should be propagated in the federated graph. + * The directive itself must be referenced in at least once in one of those subgraphs to propagate also the usages + * of the custom directive to the federated graph (in addition to the definition). + * + * Moreover, only the highest version of the directive is propagated; this means a directive definition description + * could be set in one one subgraph and removed in another subgraph with a imported higher version. + */ + if (existingData.minorVersion < directiveData.minorVersion) { + existingDataByName.set(directiveName, copyDirectiveDefinitionData(directiveData)); + } + } +} + +// This function aims to mirror Apollo functionality +function extractLinkUrlSegments(argNode: ConstArgumentNode): ExtractImportUrlSegmentsResult { + if (argNode.value.kind !== Kind.STRING) { + return { + error: invalidLinkDirectiveUrlError(''), + success: false, + }; + } + + const urlString = argNode.value.value; + const url = URL.parse(urlString); + + if (!url) { + return { + error: invalidLinkDirectiveUrlError(urlString), + success: false, + }; + } + + const segments = url.pathname.split('/'); + const versionString = segments.at(-1); + if (segments.length < 3 && !versionString) { + return { + error: noPathLinkDirectiveUrlError(urlString), + success: false, + }; + } + + if (!versionString) { + return { + error: noVersionLinkDirectiveUrlError(urlString), + success: false, + }; + } + + if (!IMPORT_VERSION_REGEX.test(versionString)) { + return { + error: invalidVersionLinkDirectiveUrlError({ url: urlString, versionString }), + success: false, + }; + } + + if (segments.length < 3) { + return { + error: noFeatureNameLinkDirectiveUrlError(urlString), + success: false, + }; + } + + try { + const versionSegments = versionString.substring(1).split(LITERAL_PERIOD); + if (versionSegments.length !== 2) { + return { + error: invalidVersionLinkDirectiveUrlError({ url: urlString, versionString }), + success: false, + }; + } + const majorVersion = parseInt(versionSegments[0]); + const minorVersion = parseInt(versionSegments[1]); + + const featureName = segments.at(-2); + if (!featureName) { + return { + error: noFeatureNameLinkDirectiveUrlError(urlString), + success: false, + }; + } + + return { + coreUrl: urlString.substring(0, urlString.length - versionString.length), + success: true, + majorVersion, + minorVersion, + }; + } catch { + // Should never happen + return { + error: invalidVersionLinkDirectiveUrlError({ url: urlString, versionString: versionString }), + success: false, + }; + } +} + +function extractLinkImportObject(value: ConstObjectValueNode): ExtractLinkImportObjectResult { + const data: LinkImportData = { + name: '', + coreUrl: '', + majorVersion: -1, + minorVersion: -1, + }; + const errors: Array = []; + const valueString = print(value); + for (const field of value.fields) { + const fieldName = field.name.value; + switch (fieldName) { + case AS: { + if (field.value.kind !== Kind.STRING) { + errors.push(invalidFieldLinkDirectiveImportObjectError({ fieldName, value: valueString })); + break; + } + data.rename = field.value.value; + break; + } + case NAME: { + if (field.value.kind !== Kind.STRING) { + errors.push(invalidFieldLinkDirectiveImportObjectError({ fieldName, value: valueString })); + break; + } + data.name = field.value.value; + break; + } + default: { + errors.push(unknownFieldLinkDirectiveImportObjectError({ fieldName, value: valueString })); + break; + } + } + } + + if (!data.name) { + errors.push(noNameFieldLinkDirectiveImportObjectError(valueString)); + } else if (data.rename) { + const nameIsDirective = data.name.startsWith(LITERAL_AT); + const renamedIsDirective = data.rename.startsWith(LITERAL_AT); + if (nameIsDirective !== renamedIsDirective) { + errors.push( + invalidLinkDirectiveImportObjectError({ + name: data.name, + rename: data.rename, + }), + ); + } + } + + if (errors.length > 0) { + return { + errors, + success: false, + }; + } + + return { + import: data, + success: true, + }; +} + +function extractLinkImports(values: ReadonlyArray): ExtractLinkImportsResult { + const imports: Array = []; + const errors: Array = []; + for (let i = 0; i < values.length; i++) { + const value = values[i]; + switch (value.kind) { + case Kind.STRING: { + imports.push({ + name: value.value, + coreUrl: '', + majorVersion: -1, + minorVersion: -1, + }); + break; + } + case Kind.OBJECT: { + const objectResult = extractLinkImportObject(value); + if (!objectResult.success) { + errors.push(...objectResult.errors); + break; + } + imports.push(objectResult.import); + break; + } + default: { + errors.push(invalidSubValueLinkDirectiveImportError(i)); + break; + } + } + } + + if (errors.length > 0) { + return { + errors, + success: false, + }; + } + + return { + imports, + success: true, + }; +} + +export function extractLinkArgs( + directivesByName: Map>, +): ExtractLinkArgsResult { + const errors: Array = []; + const importDataByDirectiveName = new Map(); + const linkDirectives = directivesByName.get(LINK); + if (!linkDirectives) { + return { + success: true, + importDataByDirectiveName, + }; + } + + for (const directive of linkDirectives) { + if (!directive.arguments) { + continue; + } + + let imports: Array = []; + let majorVersion = -1; + let minorVersion = -1; + let coreUrl = ''; + for (const arg of directive.arguments) { + const argName = arg.name.value; + switch (argName) { + case URL_LOWER: { + const urlResult = extractLinkUrlSegments(arg); + if (!urlResult.success) { + return { + errors: [urlResult.error], + success: false, + }; + } + coreUrl = urlResult.coreUrl; + majorVersion = urlResult.majorVersion; + minorVersion = urlResult.minorVersion; + break; + } + case IMPORT: { + switch (arg.value.kind) { + case Kind.STRING: { + imports.push({ + name: arg.value.value, + coreUrl: '', + majorVersion: -1, + minorVersion: -1, + }); + break; + } + case Kind.LIST: { + const importsResult = extractLinkImports(arg.value.values); + if (!importsResult.success) { + return importsResult; + } + imports = importsResult.imports; + break; + } + default: { + return { + errors: [nonIterableLinkDirectiveImportError(arg.value.kind)], + success: false, + }; + } + } + break; + } + } + } + // Should be caught in earlier validation + if (!coreUrl) { + return { + errors: [noLinkDirectiveUrlError], + success: false, + }; + } + + for (const value of imports) { + value.coreUrl = coreUrl; + value.majorVersion = majorVersion; + value.minorVersion = minorVersion; + importDataByDirectiveName.set(value.rename ?? value.name, value); + } + } + + if (errors.length > 0) { + return { + errors, + success: false, + }; + } + + return { + importDataByDirectiveName, + success: true, + }; +} diff --git a/composition/src/v1/normalization/walkers.ts b/composition/src/v1/normalization/walkers.ts index da658bf78c..2286e4f2b1 100644 --- a/composition/src/v1/normalization/walkers.ts +++ b/composition/src/v1/normalization/walkers.ts @@ -17,14 +17,15 @@ import { getRenamedRootTypeName, isParentDataCompositeOutputType, isTypeNameRootType, - newPersistedDirectivesData, + newFederatedDirectivesData, } from '../../schema-building/utils'; -import { type ConfigureDescriptionData, type InputValueData } from '../../schema-building/types'; +import { type ConfigureDescriptionData, type InputValueData } from '../../schema-building/types/types'; import { getMutableEnumValueNode, getTypeNodeNamedTypeName } from '../../schema-building/ast'; import { type GraphNode, type RootNode } from '../../resolvability-graph/graph-nodes'; import { requiresDefinedOnNonEntityFieldWarning } from '../warnings/warnings'; import { ANY_SCALAR, + COMPOSE_DIRECTIVE, ENTITY_UNION, IGNORED_FIELDS, PARENT_DEFINITION_DATA, @@ -34,7 +35,7 @@ import { } from '../../utils/string-constants'; import { type RootTypeName } from '../../utils/types'; import { getOrThrowError, getValueOrDefault, kindToNodeType } from '../../utils/utils'; -import { type KeyFieldSetData } from './types'; +import { type KeyFieldSetData } from './types/types'; import { type FieldName, type TypeName } from '../../types/types'; /* Walker to collect schema definition, directive definitions, and entities. @@ -48,6 +49,7 @@ export function upsertDirectiveSchemaAndEntityDefinitions(nf: NormalizationFacto nf.referencedDirectiveNames.add(name); if (EVENT_DIRECTIVE_NAMES.has(name)) { nf.edfsDirectiveReferences.add(name); + return false; } if (V2_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME.has(name)) { nf.isSubgraphVersionTwo = true; @@ -274,7 +276,7 @@ export function upsertParentsAndChildren(nf: NormalizationFactory, document: Doc name, node: getMutableEnumValueNode(node), parentTypeName: nf.originalParentTypeName, - persistedDirectivesData: newPersistedDirectivesData(), + federatedDirectivesData: newFederatedDirectivesData(), subgraphNames: new Set([nf.subgraphName]), description: formatDescription(node.description), }); diff --git a/composition/src/v1/schema-building/type-merging.ts b/composition/src/v1/schema-building/type-merging.ts index 701ec7dbf9..f73fb6aaf4 100644 --- a/composition/src/v1/schema-building/type-merging.ts +++ b/composition/src/v1/schema-building/type-merging.ts @@ -2,7 +2,7 @@ import { Kind, type ListTypeNode, type NamedTypeNode, type NonNullTypeNode, type import { maximumTypeNestingExceededError } from '../../errors/errors'; import { getMutableTypeNode, type MutableIntermediateTypeNode } from '../../schema-building/ast'; import { stringToNameNode } from '../../ast/utils'; -import { type FieldData } from '../../schema-building/types'; +import { type FieldData } from '../../schema-building/types/types'; import { MAXIMUM_TYPE_NESTING } from '../../utils/integer-constants'; export enum DivergentType { diff --git a/composition/src/v1/utils/utils.ts b/composition/src/v1/utils/utils.ts index 92d90b45f0..454b856c4b 100644 --- a/composition/src/v1/utils/utils.ts +++ b/composition/src/v1/utils/utils.ts @@ -11,7 +11,7 @@ import type { ObjectDefinitionData, ParentDefinitionData, SimpleFieldData, -} from '../../schema-building/types'; +} from '../../schema-building/types/types'; import { BOOLEAN_SCALAR, ENUM, @@ -29,7 +29,7 @@ import { UNION, } from '../../utils/string-constants'; import { addIterableToSet, addSets } from '../../utils/utils'; -import type { KeyFieldSetData } from '../normalization/types'; +import type { KeyFieldSetData } from '../normalization/types/types'; import { MAX_OR_SCOPES } from '../constants/constants'; import 'core-js/modules/esnext.set.is-subset-of.v2'; import 'core-js/modules/esnext.set.is-superset-of.v2'; @@ -459,20 +459,3 @@ export function isObjectDefinitionData(data?: ParentDefinitionData): data is Obj } return data.kind === Kind.OBJECT_TYPE_DEFINITION; } - -export function getNodeCoords(data: NodeData): string { - switch (data.kind) { - case Kind.ARGUMENT: - // Intentional fallthrough - case Kind.FIELD_DEFINITION: - // Intentional fallthrough - case Kind.INPUT_VALUE_DEFINITION: - // Intentional fallthrough - case Kind.ENUM_VALUE_DEFINITION: { - return data.federatedCoords; - } - default: { - return data.name; - } - } -} diff --git a/composition/src/v1/warnings/params.ts b/composition/src/v1/warnings/params.ts index d9383dfd0f..5e5b5ece75 100644 --- a/composition/src/v1/warnings/params.ts +++ b/composition/src/v1/warnings/params.ts @@ -1,4 +1,4 @@ -import { type FieldName, type SubgraphName, type TypeName } from '../../types/types'; +import { type DirectiveName, type FieldName, type SubgraphName, type TypeName } from '../../types/types'; export type SingleSubgraphInputFieldOneOfWarningParams = { fieldName: FieldName; @@ -10,3 +10,9 @@ export type SingleFederatedInputFieldOneOfWarningParams = { fieldName: FieldName; typeName: TypeName; }; + +export type InvalidRepeatedComposedDirectiveWarningParams = { + directiveCoords: string; + directiveName: DirectiveName; + printedDirective: string; +}; diff --git a/composition/src/v1/warnings/warnings.ts b/composition/src/v1/warnings/warnings.ts index 9e8ee44cdc..4089288f94 100644 --- a/composition/src/v1/warnings/warnings.ts +++ b/composition/src/v1/warnings/warnings.ts @@ -1,9 +1,11 @@ import { Warning } from '../../warnings/types'; import { QUOTATION_JOIN } from '../../utils/string-constants'; import { + type InvalidRepeatedComposedDirectiveWarningParams, type SingleFederatedInputFieldOneOfWarningParams, type SingleSubgraphInputFieldOneOfWarningParams, } from './params'; +import { type SubgraphName } from '../../types/types'; export function invalidOverrideTargetSubgraphNameWarning( targetSubgraphName: string, @@ -205,3 +207,32 @@ export function singleFederatedInputFieldOneOfWarning({ }, }); } + +export function composedOneOfDirectiveWarning(subgraphName: SubgraphName): Warning { + return new Warning({ + message: + `A "@composeDirective" directive defines the "name" argument value "@oneOf".` + + ` The "@oneOf" directive is now considered built-in and will be automatically included in the federated.` + + ` schema. Consider removing the inclusion of "@oneOf" within any "@composeDirective" directives.`, + subgraph: { + name: subgraphName, + }, + }); +} + +export function invalidRepeatedComposedDirectiveWarning({ + directiveCoords, + directiveName, + printedDirective, +}: InvalidRepeatedComposedDirectiveWarningParams): Warning { + return new Warning({ + message: + `The definition for the composed directive "@${directiveName}" is not defined as repeatable.` + + ` However, the directive "@${directiveName}" is declared on "${directiveCoords}" multiple times with` + + ` incompatible arguments. The federated graph will only propagate "${printedDirective}".` + + ` Consider updating the directive definition for "${directiveName}" to be repeatable.`, + subgraph: { + name: '', + }, + }); +} diff --git a/composition/src/validation/types/params.ts b/composition/src/validation/types/params.ts new file mode 100644 index 0000000000..a7f8d22767 --- /dev/null +++ b/composition/src/validation/types/params.ts @@ -0,0 +1,25 @@ +import { type NodeData, type ParentDefinitionData, type SchemaData } from '../../schema-building/types/types'; +import type { ArgumentName, DirectiveName, TypeName } from '../../types/types'; +import type { ConstDirectiveNode, ConstValueNode, TypeNode } from 'graphql'; +import { type DirectiveArgumentData, type DirectiveDefinitionData } from '../../directive-definition-data/types/types'; + +export type IsArgumentValueValidParams = { + argumentValue: ConstValueNode; + parentDefinitionDataByTypeName: Map; + typeNode: TypeNode; +}; + +export type ValidateCustomDirectiveParams = { + argumentDataByName: Map; + directiveNode: ConstDirectiveNode; + parentDefinitionDataByTypeName: Map; + requiredArgumentNames: Array; +}; + +export type ValidateDirectivesParams = { + data: NodeData | SchemaData; + directiveCoords: string; + directiveDefinitionData: DirectiveDefinitionData; + directiveNodes: Array; + parentDefinitionDataByTypeName: Map; +}; diff --git a/composition/src/validation/validation.ts b/composition/src/validation/validation.ts new file mode 100644 index 0000000000..704d92002d --- /dev/null +++ b/composition/src/validation/validation.ts @@ -0,0 +1,280 @@ +import { + duplicateArgumentDefinitionError, + invalidArgumentValueError, + invalidCustomDirectiveError, + invalidDirectiveLocationError, + invalidRepeatedDirectiveError, + undefinedRequiredArgumentsError, + unexpectedArgumentProvisionError, +} from '../errors/errors'; +import { nodeKindToDirectiveLocation } from '../ast/utils'; +import { getNamedTypeNode, getTypeNodeNamedTypeName, type MutableInputValueNode } from '../schema-building/ast'; +import { sanitizeDefaultValue } from '../schema-building/utils'; +import { + type IsArgumentValueValidParams, + type ValidateCustomDirectiveParams, + type ValidateDirectivesParams, +} from './types/params'; +import { Kind, print } from 'graphql'; +import { + BOOLEAN_SCALAR, + EXECUTION, + FIELD_SET_SCALAR, + FLOAT_SCALAR, + ID_SCALAR, + INACCESSIBLE, + INT_SCALAR, + LINK_IMPORT, + LINK_PURPOSE, + SCOPE_SCALAR, + SECURITY, + STRING_SCALAR, + SUBSCRIPTION_FIELD_CONDITION, + SUBSCRIPTION_FILTER_CONDITION, +} from '../utils/string-constants'; +import { printTypeNode } from '@graphql-tools/merge'; +import { type ArgumentName } from '../types/types'; +import { getEntriesNotInHashSet, numberToOrdinal } from '../utils/utils'; +import { type ExecutionMultiResult } from '../types/results'; + +export function isArgumentValueValid({ + argumentValue, + parentDefinitionDataByTypeName, + typeNode, +}: IsArgumentValueValidParams): boolean { + if (argumentValue.kind === Kind.NULL) { + return typeNode.kind !== Kind.NON_NULL_TYPE; + } + switch (typeNode.kind) { + case Kind.LIST_TYPE: { + if (argumentValue.kind !== Kind.LIST) { + // This handles List coercion + return isArgumentValueValid({ + argumentValue, + parentDefinitionDataByTypeName, + typeNode: getNamedTypeNode(typeNode.type), + }); + } + for (const value of argumentValue.values) { + if (!isArgumentValueValid({ argumentValue: value, parentDefinitionDataByTypeName, typeNode: typeNode.type })) { + return false; + } + } + return true; + } + case Kind.NAMED_TYPE: { + switch (typeNode.name.value) { + case BOOLEAN_SCALAR: { + return argumentValue.kind === Kind.BOOLEAN; + } + case FLOAT_SCALAR: { + return argumentValue.kind === Kind.FLOAT || argumentValue.kind === Kind.INT; + } + case ID_SCALAR: { + return argumentValue.kind === Kind.STRING || argumentValue.kind === Kind.INT; + } + case INT_SCALAR: { + return argumentValue.kind === Kind.INT; + } + case FIELD_SET_SCALAR: + // intentional fallthrough + case SCOPE_SCALAR: + // intentional fallthrough + case STRING_SCALAR: { + return argumentValue.kind === Kind.STRING; + } + case LINK_IMPORT: { + return true; + } + case LINK_PURPOSE: { + if (argumentValue.kind !== Kind.ENUM) { + return false; + } + return argumentValue.value === SECURITY || argumentValue.value === EXECUTION; + } + case SUBSCRIPTION_FIELD_CONDITION: + // intentional fallthrough + case SUBSCRIPTION_FILTER_CONDITION: + return argumentValue.kind === Kind.OBJECT; + default: { + const parentData = parentDefinitionDataByTypeName.get(typeNode.name.value); + if (!parentData) { + return false; + } + if (parentData.kind === Kind.SCALAR_TYPE_DEFINITION) { + // For now, allow custom scalars to be any value kind. + return true; + } + if (parentData.kind === Kind.ENUM_TYPE_DEFINITION) { + if (argumentValue.kind !== Kind.ENUM && argumentValue.kind !== Kind.STRING) { + return false; + } + const enumValue = parentData.enumValueDataByName.get(argumentValue.value); + if (!enumValue) { + return false; + } + return !enumValue.directivesByName.has(INACCESSIBLE); + } + if (parentData.kind !== Kind.INPUT_OBJECT_TYPE_DEFINITION) { + return false; + } + // TODO deep comparison + return argumentValue.kind === Kind.OBJECT; + } + } + } + default: { + return isArgumentValueValid({ argumentValue, parentDefinitionDataByTypeName, typeNode: typeNode.type }); + } + } +} + +export function validateCustomDirective({ + argumentDataByName, + directiveNode, + parentDefinitionDataByTypeName, + requiredArgumentNames, +}: ValidateCustomDirectiveParams): ExecutionMultiResult { + if (!directiveNode.arguments || directiveNode.arguments.length < 1) { + if (requiredArgumentNames.length < 1) { + return { + success: true, + }; + } + + return { + errors: [undefinedRequiredArgumentsError(requiredArgumentNames)], + success: false, + }; + } + + const errors: Array = []; + const definedArgumentNames = new Set(); + const duplicateArgumentNames = new Set(); + const unexpectedArgumentNames = new Set(); + for (const argumentNode of directiveNode.arguments) { + const argumentName = argumentNode.name.value; + if (definedArgumentNames.has(argumentName)) { + duplicateArgumentNames.add(argumentName); + continue; + } + definedArgumentNames.add(argumentName); + const argumentData = argumentDataByName.get(argumentName); + if (!argumentData) { + unexpectedArgumentNames.add(argumentName); + continue; + } + if ( + !isArgumentValueValid({ + argumentValue: argumentNode.value, + parentDefinitionDataByTypeName, + typeNode: argumentData.type, + }) + ) { + errors.push( + invalidArgumentValueError({ + argumentName, + expectedTypeString: printTypeNode(argumentData.type), + value: print(argumentNode.value), + }), + ); + } + } + + if (duplicateArgumentNames.size > 0) { + errors.push(duplicateArgumentDefinitionError([...duplicateArgumentNames])); + } + if (unexpectedArgumentNames.size > 0) { + errors.push(unexpectedArgumentProvisionError([...unexpectedArgumentNames])); + } + const undefinedArgumentNames = getEntriesNotInHashSet(requiredArgumentNames, definedArgumentNames); + if (undefinedArgumentNames.length > 0) { + errors.push(undefinedRequiredArgumentsError(undefinedArgumentNames)); + } + + if (errors.length > 0) { + return { + errors, + success: false, + }; + } + + return { + success: true, + }; +} + +export function validateDirectives({ + data, + directiveCoords, + directiveDefinitionData: { + argumentDataByName, + isComposed, + isRepeatable, + locations, + name, + node, + requiredArgumentNames, + }, + directiveNodes, + parentDefinitionDataByTypeName, +}: ValidateDirectivesParams): ExecutionMultiResult { + const errors: Array = []; + const directiveLocation = nodeKindToDirectiveLocation(data.kind); + if (!locations.has(directiveLocation)) { + errors.push(invalidDirectiveLocationError({ directiveCoords, directiveName: name, location: directiveLocation })); + } + if (directiveNodes.length > 1 && !isRepeatable && !isComposed) { + errors.push(invalidRepeatedDirectiveError({ directiveCoords, directiveName: name })); + } + const requiredArgumentNamesArray = [...requiredArgumentNames]; + for (const argumentNode of node.arguments ?? []) { + if (!argumentNode.defaultValue) { + continue; + } + + const argumentData = argumentDataByName.get(argumentNode.name.value); + if (!argumentData) { + continue; + } + + const namedTypeData = parentDefinitionDataByTypeName.get(getTypeNodeNamedTypeName(argumentData.type)); + // Undefined types are handled elsewhere + if (!namedTypeData) { + continue; + } + + sanitizeDefaultValue({ data: argumentData, namedTypeData, node: argumentNode as MutableInputValueNode }); + } + + for (let i = 0; i < directiveNodes.length; i++) { + const directiveNode = directiveNodes[i]; + const validationResult = validateCustomDirective({ + argumentDataByName, + directiveNode, + parentDefinitionDataByTypeName, + requiredArgumentNames: requiredArgumentNamesArray, + }); + if (!validationResult.success) { + errors.push( + invalidCustomDirectiveError({ + directiveCoords, + directiveName: name, + errors: validationResult.errors, + ordinal: numberToOrdinal(i + 1), + }), + ); + } + } + + if (errors.length > 0) { + return { + errors, + success: false, + }; + } + + return { + success: true, + }; +} diff --git a/composition/tests/v1/directives/compose-directive.test.ts b/composition/tests/v1/directives/compose-directive.test.ts new file mode 100644 index 0000000000..aa61472b84 --- /dev/null +++ b/composition/tests/v1/directives/compose-directive.test.ts @@ -0,0 +1,1037 @@ +import { describe, expect, test } from 'vitest'; +import { + createSubgraph, + federateSubgraphsFailure, + federateSubgraphsSuccess, + normalizeString, + normalizeSubgraphFailure, + normalizeSubgraphSuccess, + schemaToSortedNormalizedString, +} from '../../utils/utils'; +import { + invalidCustomDirectiveError, + invalidLinkDirectiveImportObjectError, + invalidLinkDirectiveUrlError, + invalidRepeatedComposedDirectiveWarning, + invalidSubValueLinkDirectiveImportError, + invalidVersionLinkDirectiveUrlError, + noFeatureNameLinkDirectiveUrlError, + noLeadingAtComposeDirectiveNameError, + noNameFieldLinkDirectiveImportObjectError, + nonEqualComposeDirectiveMajorVersionError, + nonEqualCoreFeatureComposeDirectiveError, + noPathLinkDirectiveUrlError, + noVersionLinkDirectiveUrlError, + ROUTER_COMPATIBILITY_VERSION_ONE, + undefinedRequiredArgumentsError, + unimportedComposeDirectiveNameError, + unknownFieldLinkDirectiveImportObjectError, +} from '../../../src'; +import { SCHEMA_QUERY_DEFINITION } from '../utils/utils'; + +describe('@composeDirective tests', () => { + describe('Normalization tests', () => { + test('that a valid custom directive can be provided successfully', () => { + const aaaaa = createSubgraph( + 'aaaaa', + ` + schema + @link(import: ["@a"], url: "https://a/a/v1.0") + @composeDirective(name: "@a") { + query: Query + } + + directive @a on FIELD_DEFINITION + + type Query { + a: ID @a + } + `, + ); + const { schema } = normalizeSubgraphSuccess(aaaaa, ROUTER_COMPATIBILITY_VERSION_ONE); + expect(schemaToSortedNormalizedString(schema)).toBe( + normalizeString(` + schema + @link(import: ["@a"], url: "https://a/a/v1.0") + @composeDirective(name: "@a") { + query: Query + } + + directive @a on FIELD_DEFINITION + + directive @composeDirective(name: String!) repeatable on SCHEMA + + directive @link(as: String, for: link__Purpose, import: [link__Import], url: String!) repeatable on SCHEMA + + type Query { + a: ID @a + } + + scalar link__Import + + enum link__Purpose { + EXECUTION + SECURITY + } + `), + ); + }); + + test('that an error is returned if a feature URL does not defines an invalid URL', () => { + const aaaaa = createSubgraph( + 'aaaaa', + ` + schema + @link(import: ["@a"], url: "test") + @composeDirective(name: "@a") { + query: Query + } + + directive @a on FIELD_DEFINITION + + type Query { + a: ID @a + } + `, + ); + const { errors, warnings } = normalizeSubgraphFailure(aaaaa, ROUTER_COMPATIBILITY_VERSION_ONE); + expect(errors).toHaveLength(1); + expect(errors).toStrictEqual([invalidLinkDirectiveUrlError('test')]); + expect(warnings).toHaveLength(0); + }); + + test('that an error is returned if a feature URL does not define a path component #1', () => { + const aaaaa = createSubgraph( + 'aaaaa', + ` + schema + @link(import: ["@a"], url: "https://a") + @composeDirective(name: "@a") { + query: Query + } + + directive @a on FIELD_DEFINITION + + type Query { + a: ID @a + } + `, + ); + const { errors, warnings } = normalizeSubgraphFailure(aaaaa, ROUTER_COMPATIBILITY_VERSION_ONE); + expect(errors).toHaveLength(1); + expect(errors).toStrictEqual([noPathLinkDirectiveUrlError('https://a')]); + expect(warnings).toHaveLength(0); + }); + + test('that an error is returned if a feature URL does not define a path component #2', () => { + const aaaaa = createSubgraph( + 'aaaaa', + ` + schema + @link(import: ["@a"], url: "https://a/") + @composeDirective(name: "@a") { + query: Query + } + + directive @a on FIELD_DEFINITION + + type Query { + a: ID @a + } + `, + ); + const { errors, warnings } = normalizeSubgraphFailure(aaaaa, ROUTER_COMPATIBILITY_VERSION_ONE); + expect(errors).toHaveLength(1); + expect(errors).toStrictEqual([noPathLinkDirectiveUrlError('https://a/')]); + expect(warnings).toHaveLength(0); + }); + + test('that an error is returned if a feature URL does not define a feature name component #1', () => { + const aaaaa = createSubgraph( + 'aaaaa', + ` + schema + @link(import: ["@a"], url: "https://a//v1.0") + @composeDirective(name: "@a") { + query: Query + } + + directive @a on FIELD_DEFINITION + + type Query { + a: ID @a + } + `, + ); + const { errors, warnings } = normalizeSubgraphFailure(aaaaa, ROUTER_COMPATIBILITY_VERSION_ONE); + expect(errors).toHaveLength(1); + expect(errors).toStrictEqual([noFeatureNameLinkDirectiveUrlError('https://a//v1.0')]); + expect(warnings).toHaveLength(0); + }); + + test('that an error is returned if a feature URL does not define a feature name component #2', () => { + const aaaaa = createSubgraph( + 'aaaaa', + ` + schema + @link(import: ["@a"], url: "https://a/v1.0") + @composeDirective(name: "@a") { + query: Query + } + + directive @a on FIELD_DEFINITION + + type Query { + a: ID @a + } + `, + ); + const { errors, warnings } = normalizeSubgraphFailure(aaaaa, ROUTER_COMPATIBILITY_VERSION_ONE); + expect(errors).toHaveLength(1); + expect(errors).toStrictEqual([noFeatureNameLinkDirectiveUrlError('https://a/v1.0')]); + expect(warnings).toHaveLength(0); + }); + + test('that an error is returned if a feature URL does not define version string', () => { + const aaaaa = createSubgraph( + 'aaaaa', + ` + schema + @link(import: ["@a"], url: "https://a/a/") + @composeDirective(name: "@a") { + query: Query + } + + directive @a on FIELD_DEFINITION + + type Query { + a: ID @a + } + `, + ); + const { errors, warnings } = normalizeSubgraphFailure(aaaaa, ROUTER_COMPATIBILITY_VERSION_ONE); + expect(errors).toHaveLength(1); + expect(errors).toStrictEqual([noVersionLinkDirectiveUrlError('https://a/a/')]); + expect(warnings).toHaveLength(0); + }); + + test('that an error is returned if a feature URL ends with an invalid version #1', () => { + const aaaaa = createSubgraph( + 'aaaaa', + ` + schema + @link(import: ["@a"], url: "https://a/a") + @composeDirective(name: "@a") { + query: Query + } + + directive @a on FIELD_DEFINITION + + type Query { + a: ID @a + } + `, + ); + const { errors, warnings } = normalizeSubgraphFailure(aaaaa, ROUTER_COMPATIBILITY_VERSION_ONE); + expect(errors).toHaveLength(1); + expect(errors).toStrictEqual([invalidVersionLinkDirectiveUrlError({ url: 'https://a/a', versionString: 'a' })]); + expect(warnings).toHaveLength(0); + }); + + test('that an error is returned if a feature URL ends with an invalid version #2', () => { + const aaaaa = createSubgraph( + 'aaaaa', + ` + schema + @link(import: ["@a"], url: "https://a/a/v1") + @composeDirective(name: "@a") { + query: Query + } + + directive @a on FIELD_DEFINITION + + type Query { + a: ID @a + } + `, + ); + const { errors, warnings } = normalizeSubgraphFailure(aaaaa, ROUTER_COMPATIBILITY_VERSION_ONE); + expect(errors).toHaveLength(1); + expect(errors).toStrictEqual([ + invalidVersionLinkDirectiveUrlError({ url: 'https://a/a/v1', versionString: 'v1' }), + ]); + expect(warnings).toHaveLength(0); + }); + + test('that an error is returned if a feature URL ends with an invalid version #3', () => { + const aaaaa = createSubgraph( + 'aaaaa', + ` + schema + @link(import: ["@a"], url: "https://a/a/v1.0.0") + @composeDirective(name: "@a") { + query: Query + } + + directive @a on FIELD_DEFINITION + + type Query { + a: ID @a + } + `, + ); + const { errors, warnings } = normalizeSubgraphFailure(aaaaa, ROUTER_COMPATIBILITY_VERSION_ONE); + expect(errors).toHaveLength(1); + expect(errors).toStrictEqual([ + invalidVersionLinkDirectiveUrlError({ url: 'https://a/a/v1.0.0', versionString: 'v1.0.0' }), + ]); + expect(warnings).toHaveLength(0); + }); + + test('that an error is returned if a directive is imported with an invalid import object', () => { + const aaaaa = createSubgraph( + 'aaaaa', + ` + schema + @link(import: [{ a: "a" }], url: "https://a/a/v1.0") + @composeDirective(name: "@a") { + query: Query + } + + directive @a on FIELD_DEFINITION + + type Query { + a: ID @a + } + `, + ); + const { errors, warnings } = normalizeSubgraphFailure(aaaaa, ROUTER_COMPATIBILITY_VERSION_ONE); + expect(errors).toHaveLength(2); + expect(errors).toStrictEqual([ + unknownFieldLinkDirectiveImportObjectError({ fieldName: 'a', value: '{a: "a"}' }), + noNameFieldLinkDirectiveImportObjectError('{a: "a"}'), + ]); + expect(warnings).toHaveLength(0); + }); + + test('that an error is returned if a directive is renamed to a non-directive', () => { + const aaaaa = createSubgraph( + 'aaaaa', + ` + schema + @link(import: [{ name: "@a", as: "b" }], url: "https://a/a/v1.0") + @composeDirective(name: "@a") { + query: Query + } + + directive @a on FIELD_DEFINITION + + type Query { + a: ID @a + } + `, + ); + const { errors, warnings } = normalizeSubgraphFailure(aaaaa, ROUTER_COMPATIBILITY_VERSION_ONE); + expect(errors).toHaveLength(1); + expect(errors).toStrictEqual([invalidLinkDirectiveImportObjectError({ name: '@a', rename: 'b' })]); + expect(warnings).toHaveLength(0); + }); + + test('that an error is returned if a non-directive is renamed to a directive', () => { + const aaaaa = createSubgraph( + 'aaaaa', + ` + schema + @link(import: [{ name: "a", as: "@b" }], url: "https://a/a/v1.0") + @composeDirective(name: "@a") { + query: Query + } + + directive @a on FIELD_DEFINITION + + type Query { + a: ID @a + } + `, + ); + const { errors, warnings } = normalizeSubgraphFailure(aaaaa, ROUTER_COMPATIBILITY_VERSION_ONE); + expect(errors).toHaveLength(1); + expect(errors).toStrictEqual([invalidLinkDirectiveImportObjectError({ name: 'a', rename: '@b' })]); + expect(warnings).toHaveLength(0); + }); + + test('that an error is returned if an import sub-value is not a string nor object', () => { + const aaaaa = createSubgraph( + 'aaaaa', + ` + schema + @link(import: ["@a", { name: "@b", as: "@z" }, 1, true, "@c"], url: "https://a/a/v1.0.0") + @composeDirective(name: "@a") { + query: Query + } + + directive @a on FIELD_DEFINITION + + type Query { + a: ID @a + } + `, + ); + const { errors, warnings } = normalizeSubgraphFailure(aaaaa, ROUTER_COMPATIBILITY_VERSION_ONE); + expect(errors).toHaveLength(2); + expect(errors).toStrictEqual([ + invalidSubValueLinkDirectiveImportError(2), + invalidSubValueLinkDirectiveImportError(3), + ]); + expect(warnings).toHaveLength(0); + }); + + test('that an error is returned if a non-directive is composed', () => { + const aaaaa = createSubgraph( + 'aaaaa', + ` + schema + @link(import: ["@a"], url: "https://a/a/v1.0") + @composeDirective(name: "a") { + query: Query + } + + directive @a on FIELD_DEFINITION + + type Query { + a: ID @a + } + `, + ); + const { errors, warnings } = normalizeSubgraphFailure(aaaaa, ROUTER_COMPATIBILITY_VERSION_ONE); + expect(errors).toHaveLength(1); + expect(errors).toStrictEqual([noLeadingAtComposeDirectiveNameError('a')]); + expect(warnings).toHaveLength(0); + }); + + test('that an error is returned if a directive is composed without an import', () => { + const aaaaa = createSubgraph( + 'aaaaa', + ` + schema + @composeDirective(name: "@a") { + query: Query + } + + directive @a on FIELD_DEFINITION + + type Query { + a: ID @a + } + `, + ); + const { errors, warnings } = normalizeSubgraphFailure(aaaaa, ROUTER_COMPATIBILITY_VERSION_ONE); + expect(errors).toHaveLength(1); + expect(errors).toStrictEqual([unimportedComposeDirectiveNameError('@a')]); + expect(warnings).toHaveLength(0); + }); + }); + + describe('Federation tests', () => { + test('that a custom directive is propagated in the federated graph successfully (schema)', () => { + const aaaaa = createSubgraph( + 'aaaaa', + ` + schema + @link(import: ["@a"], url: "https://a/a/v1.0") + @composeDirective(name: "@a") { + query: Query + } + + directive @a on FIELD_DEFINITION + + type Query { + a: ID @a + } + `, + ); + const { federatedGraphClientSchema, federatedGraphSchema, warnings } = federateSubgraphsSuccess( + [aaaaa], + ROUTER_COMPATIBILITY_VERSION_ONE, + ); + expect(schemaToSortedNormalizedString(federatedGraphClientSchema)).toBe( + normalizeString( + SCHEMA_QUERY_DEFINITION + + ` + + type Query { + a: ID + } + `, + ), + ); + expect(schemaToSortedNormalizedString(federatedGraphSchema)).toBe( + normalizeString( + SCHEMA_QUERY_DEFINITION + + ` + directive @a on FIELD_DEFINITION + + type Query { + a: ID @a + } + `, + ), + ); + expect(warnings).toHaveLength(0); + }); + + test('that a custom directive is propagated in the federated graph successfully (extend schema)', () => { + const aaaaa = createSubgraph( + 'aaaaa', + ` + extend schema + @link(import: ["@a"], url: "https://a/a/v1.0") + @composeDirective(name: "@a") { + query: Query + } + + directive @a on FIELD_DEFINITION + + type Query { + a: ID @a + } + `, + ); + const { federatedGraphSchema, warnings } = federateSubgraphsSuccess([aaaaa], ROUTER_COMPATIBILITY_VERSION_ONE); + expect(schemaToSortedNormalizedString(federatedGraphSchema)).toBe( + normalizeString( + SCHEMA_QUERY_DEFINITION + + ` + directive @a on FIELD_DEFINITION + + type Query { + a: ID @a + } + `, + ), + ); + expect(warnings).toHaveLength(0); + }); + + test('that a custom directive is propagated in the federated graph successfully (extend schema #2)', () => { + const aaaaa = createSubgraph( + 'aaaaa', + ` + extend schema + @link(import: ["@a"], url: "https://a/a/v1.0") + @composeDirective(name: "@a") + + directive @a on FIELD_DEFINITION + + type Object { + a: ID @a + } + `, + ); + const aaaab = createSubgraph( + 'aaaab', + ` + type Query { + a: ID + } + `, + ); + const { federatedGraphSchema, warnings } = federateSubgraphsSuccess( + [aaaaa, aaaab], + ROUTER_COMPATIBILITY_VERSION_ONE, + ); + expect(schemaToSortedNormalizedString(federatedGraphSchema)).toBe( + normalizeString( + SCHEMA_QUERY_DEFINITION + + ` + directive @a on FIELD_DEFINITION + + type Object { + a: ID @a + } + + type Query { + a: ID + } + `, + ), + ); + expect(warnings).toHaveLength(0); + }); + + test('that equivalent directives defined on the same coordinates are not repeated', () => { + const aaaaa = createSubgraph( + 'aaaaa', + ` + schema + @link(import: ["@a"], url: "https://a/a/v1.0") + @composeDirective(name: "@a") { + query: Query + } + + directive @a(a: String!) on FIELD_DEFINITION + + type Query @shareable { + a: ID @a(a: "a") + } + `, + ); + const aaaab = createSubgraph( + 'aaaab', + ` + schema + @link(import: ["@a"], url: "https://a/a/v1.0") + @composeDirective(name: "@a") { + query: Query + } + + """ + a + """ + directive @a(a: String!) on FIELD_DEFINITION + + type Query @shareable { + a: ID @a(a: "a") + } + `, + ); + const { federatedGraphSchema, warnings } = federateSubgraphsSuccess( + [aaaaa, aaaab], + ROUTER_COMPATIBILITY_VERSION_ONE, + ); + expect(schemaToSortedNormalizedString(federatedGraphSchema)).toBe( + normalizeString( + SCHEMA_QUERY_DEFINITION + + ` + directive @a(a: String!) on FIELD_DEFINITION + + type Query { + a: ID @a(a: "a") + } + `, + ), + ); + expect(warnings).toHaveLength(0); + }); + + test('that different core features can import the same named directive if only one is composed #1', () => { + const aaaaa = createSubgraph( + 'aaaaa', + ` + schema + @link(import: ["@a"], url: "https://a/a/v1.0") + @composeDirective(name: "@a") { + query: Query + } + + """ + a + """ + directive @a(a: String!) on FIELD_DEFINITION + + type Query @shareable { + a: ID @a(a: "a") + } + `, + ); + const aaaab = createSubgraph( + 'aaaab', + ` + schema + @link(import: ["@a"], url: "https://a/b/v1.0") { + query: Query + } + + directive @a(a: String!) on FIELD_DEFINITION + + type Query @shareable { + a: ID @a(a: "a") + } + `, + ); + const { federatedGraphSchema, warnings } = federateSubgraphsSuccess( + [aaaaa, aaaab], + ROUTER_COMPATIBILITY_VERSION_ONE, + ); + expect(schemaToSortedNormalizedString(federatedGraphSchema)).toBe( + normalizeString( + SCHEMA_QUERY_DEFINITION + + ` + """a""" + directive @a(a: String!) on FIELD_DEFINITION + + type Query { + a: ID @a(a: "a") + } + `, + ), + ); + expect(warnings).toHaveLength(0); + }); + + test('that different core features can import the same named directive if only one is composed #2', () => { + const aaaaa = createSubgraph( + 'aaaaa', + ` + schema + @link(import: ["@a"], url: "https://a/a/v1.0") + @composeDirective(name: "@a") { + query: Query + } + + """ + a + """ + directive @a(a: String!) on FIELD_DEFINITION + + type Query @shareable { + a: ID @a(a: "a") + } + `, + ); + const aaaab = createSubgraph( + 'aaaab', + ` + schema + @link(import: ["@a"], url: "https://a/b/v1.0") { + query: Query + } + + directive @a(a: String!) on FIELD_DEFINITION + + type Query @shareable { + a: ID @a(a: "b") + } + `, + ); + const { federatedGraphSchema, warnings } = federateSubgraphsSuccess( + [aaaaa, aaaab], + ROUTER_COMPATIBILITY_VERSION_ONE, + ); + expect(schemaToSortedNormalizedString(federatedGraphSchema)).toBe( + normalizeString( + SCHEMA_QUERY_DEFINITION + + ` + """a""" + directive @a(a: String!) on FIELD_DEFINITION + + type Query { + a: ID @a(a: "a") + } + `, + ), + ); + expect(warnings).toHaveLength(1); + expect(warnings).toStrictEqual([ + invalidRepeatedComposedDirectiveWarning({ + directiveCoords: 'Query.a', + directiveName: 'a', + printedDirective: '@a(a: "a")', + }), + ]); + }); + + test('that different core features can import the same named directive if only one is composed #3', () => { + const aaaaa = createSubgraph( + 'aaaaa', + ` + schema + @link(import: ["@a"], url: "https://a/a/v1.0") + @composeDirective(name: "@a") { + query: Query + } + + """ + a + """ + directive @a(a: String!) repeatable on FIELD_DEFINITION + + type Query @shareable { + a: ID @a(a: "a") + } + `, + ); + const aaaab = createSubgraph( + 'aaaab', + ` + schema + @link(import: ["@a"], url: "https://a/b/v1.0") { + query: Query + } + + directive @a(a: String!) on FIELD_DEFINITION + + type Query @shareable { + a: ID @a(a: "b") + } + `, + ); + const { federatedGraphSchema, warnings } = federateSubgraphsSuccess( + [aaaaa, aaaab], + ROUTER_COMPATIBILITY_VERSION_ONE, + ); + expect(schemaToSortedNormalizedString(federatedGraphSchema)).toBe( + normalizeString( + SCHEMA_QUERY_DEFINITION + + ` + """a""" + directive @a(a: String!) repeatable on FIELD_DEFINITION + + type Query { + a: ID @a(a: "a") @a(a: "b") + } + `, + ), + ); + expect(warnings).toHaveLength(0); + }); + + test('that an error is returned if a directive is composed with different core features', () => { + const aaaaa = createSubgraph( + 'aaaaa', + ` + extend schema + @link(import: ["@a"], url: "https://a/a/v1.0") + @composeDirective(name: "@a") + + directive @a on FIELD_DEFINITION + + type Query @shareable{ + a: ID @a + } + `, + ); + const aaaab = createSubgraph( + 'aaaab', + ` + extend schema + @link(import: ["@a"], url: "https://a/b/v1.0") + @composeDirective(name: "@a") + + directive @a on FIELD_DEFINITION + + type Query @shareable{ + a: ID @a + } + `, + ); + const { errors, warnings } = federateSubgraphsFailure([aaaaa, aaaab], ROUTER_COMPATIBILITY_VERSION_ONE); + expect(errors).toHaveLength(1); + expect(errors).toStrictEqual([nonEqualCoreFeatureComposeDirectiveError('@a')]); + expect(warnings).toHaveLength(0); + }); + + test('that an error is returned if a composed directive does not conform to the highest minor version definition', () => { + const aaaaa = createSubgraph( + 'aaaaa', + ` + extend schema + @link(import: ["@a"], url: "https://a/a/v1.1") + @composeDirective(name: "@a") + + directive @a(a: ID!) on FIELD_DEFINITION + + type Query @shareable{ + a: ID @a(a: "a") + } + `, + ); + const aaaab = createSubgraph( + 'aaaab', + ` + extend schema + @link(import: ["@a"], url: "https://a/a/v1.0") + @composeDirective(name: "@a") + + directive @a on FIELD_DEFINITION + + type Query @shareable{ + a: ID @a + } + `, + ); + const { errors, warnings } = federateSubgraphsFailure([aaaaa, aaaab], ROUTER_COMPATIBILITY_VERSION_ONE); + expect(errors).toHaveLength(1); + expect(errors).toStrictEqual([ + invalidCustomDirectiveError({ + directiveCoords: 'Query.a', + directiveName: 'a', + errors: [undefinedRequiredArgumentsError(['a'])], + ordinal: '2nd', + }), + ]); + expect(warnings).toHaveLength(0); + }); + + test('that an error is returned if a composed directive defines different major versions across subgraphs', () => { + const aaaaa = createSubgraph( + 'aaaaa', + ` + extend schema + @link(import: ["@a"], url: "https://a/a/v2.0") + @composeDirective(name: "@a") + + directive @a on FIELD_DEFINITION + + type Query @shareable{ + a: ID @a + } + `, + ); + const aaaab = createSubgraph( + 'aaaab', + ` + extend schema + @link(import: ["@a"], url: "https://a/a/v1.0") + @composeDirective(name: "@a") + + directive @a on FIELD_DEFINITION + + type Query @shareable{ + a: ID @a + } + `, + ); + const { errors, warnings } = federateSubgraphsFailure([aaaaa, aaaab], ROUTER_COMPATIBILITY_VERSION_ONE); + expect(errors).toHaveLength(1); + expect(errors).toStrictEqual([nonEqualComposeDirectiveMajorVersionError('@a')]); + expect(warnings).toHaveLength(0); + }); + + test('that @composeDirective does not treat an executable location differently', () => { + const aaaaa = createSubgraph( + 'aaaaa', + ` + extend schema + @link(import: ["@a"], url: "https://a/a/v2.0") + @composeDirective(name: "@a") + + directive @a on FIELD | FIELD_DEFINITION + + type Query @shareable { + a: ID @a + } + `, + ); + const aaaab = createSubgraph( + 'aaaab', + ` + directive @a on FIELD | FIELD_DEFINITION + + type Query @shareable { + a: ID @a + } + `, + ); + const { federatedGraphSchema, warnings } = federateSubgraphsSuccess( + [aaaaa, aaaab], + ROUTER_COMPATIBILITY_VERSION_ONE, + ); + expect(schemaToSortedNormalizedString(federatedGraphSchema)).toBe( + normalizeString( + SCHEMA_QUERY_DEFINITION + + ` + directive @a on FIELD | FIELD_DEFINITION + + type Query { + a: ID @a + } + `, + ), + ); + expect(warnings).toHaveLength(0); + }); + + test('that @composeDirective propagates the definition but no usages of a directive if there are no references to the directive within the composing subgraphs', () => { + const aaaaa = createSubgraph( + 'aaaaa', + ` + extend schema + @link(import: ["@a"], url: "https://a/a/v1.0") + @composeDirective(name: "@a") + + directive @a on FIELD | FIELD_DEFINITION + + type Query @shareable { + a: ID + } + `, + ); + const aaaab = createSubgraph( + 'aaaab', + ` + directive @a on FIELD | FIELD_DEFINITION + + type Query @shareable { + a: ID @a + } + `, + ); + const { federatedGraphSchema, warnings } = federateSubgraphsSuccess( + [aaaaa, aaaab], + ROUTER_COMPATIBILITY_VERSION_ONE, + ); + expect(schemaToSortedNormalizedString(federatedGraphSchema)).toBe( + normalizeString( + SCHEMA_QUERY_DEFINITION + + ` + directive @a on FIELD | FIELD_DEFINITION + + type Query { + a: ID + } + `, + ), + ); + expect(warnings).toHaveLength(0); + }); + + test('that @composeDirective propagates the highest version of the directive only', () => { + const aaaaa = createSubgraph( + 'aaaaa', + ` + extend schema + @link(import: ["@a"], url: "https://a/a/v1.10") + @composeDirective(name: "@a") + + directive @a(a: Int!) repeatable on FIELD | FIELD_DEFINITION + + type Query @shareable { + a: ID @a(a: 1) + } + `, + ); + const aaaab = createSubgraph( + 'aaaab', + ` + extend schema + @link(import: ["@a"], url: "https://a/a/v1.9") + @composeDirective(name: "@a") + + directive @a(a: Int) on FIELD | FIELD_DEFINITION + + type Query @shareable { + a: ID @a(a: 2) + } + `, + ); + const { federatedGraphSchema, warnings } = federateSubgraphsSuccess( + [aaaaa, aaaab], + ROUTER_COMPATIBILITY_VERSION_ONE, + ); + expect(schemaToSortedNormalizedString(federatedGraphSchema)).toBe( + normalizeString( + SCHEMA_QUERY_DEFINITION + + ` + directive @a(a: Int!) repeatable on FIELD | FIELD_DEFINITION + + type Query { + a: ID @a(a: 1) @a(a: 2) + } + `, + ), + ); + expect(warnings).toHaveLength(0); + }); + }); +}); diff --git a/composition/tests/v1/directives/override.test.ts b/composition/tests/v1/directives/override.test.ts index bdf175d8af..5d3447204c 100644 --- a/composition/tests/v1/directives/override.test.ts +++ b/composition/tests/v1/directives/override.test.ts @@ -21,7 +21,6 @@ import { type TypeName, } from '../../../src'; import { SCHEMA_QUERY_DEFINITION } from '../utils/utils'; -import { batchNormalize } from '../../../src/v1/normalization/normalization-factory'; import { federateSubgraphsFailure, federateSubgraphsSuccess, @@ -29,6 +28,7 @@ import { normalizeSubgraphFailure, schemaToSortedNormalizedString, } from '../../utils/utils'; +import { BatchNormalizer } from '../../../src'; describe('@override directive tests', () => { describe('normalization tests', () => { @@ -43,13 +43,15 @@ describe('@override directive tests', () => { }); test('that @override produces the correct engine configuration', () => { - const result = batchNormalize({ subgraphs: [subgraphA, subgraphE, subgraphF] }) as BatchNormalizationSuccess; + const result = new BatchNormalizer({ + subgraphs: [subgraphA, subgraphE, subgraphF], + }).batchNormalize() as BatchNormalizationSuccess; expect(result.success).toBe(true); - const a = result.internalSubgraphBySubgraphName.get('subgraph-a'); + const a = result.internalSubgraphByName.get('subgraph-a'); expect(a).toBeDefined(); - const e = result.internalSubgraphBySubgraphName.get('subgraph-e'); + const e = result.internalSubgraphByName.get('subgraph-e'); expect(e).toBeDefined(); - const g = result.internalSubgraphBySubgraphName.get('subgraph-f'); + const g = result.internalSubgraphByName.get('subgraph-f'); expect(g).toBeDefined(); expect(a!.configurationDataByTypeName).toStrictEqual( new Map([ diff --git a/composition/tests/v1/events.test.ts b/composition/tests/v1/events.test.ts index 745a99890b..d350a15ccc 100644 --- a/composition/tests/v1/events.test.ts +++ b/composition/tests/v1/events.test.ts @@ -18,7 +18,6 @@ import { invalidKeyFieldSetsEventDrivenErrorMessage, invalidNatsStreamConfigurationDefinitionErrorMessage, invalidNatsStreamInputFieldsErrorMessage, - type InvalidRootTypeFieldEventsDirectiveData, invalidRootTypeFieldEventsDirectivesErrorMessage, invalidRootTypeFieldResponseTypesEventDrivenErrorMessage, noBaseDefinitionForExtensionError, @@ -60,6 +59,7 @@ import { normalizeSubgraphSuccess, schemaToSortedNormalizedString, } from '../utils/utils'; +import { type InvalidRootTypeFieldEventsDirectiveData } from '../../src/errors/types/types'; describe('events Configuration tests', () => { describe('Normalization tests', () => { diff --git a/composition/tests/v1/federation-factory.test.ts b/composition/tests/v1/federation-factory.test.ts index 8c61d68f64..d48044fa50 100644 --- a/composition/tests/v1/federation-factory.test.ts +++ b/composition/tests/v1/federation-factory.test.ts @@ -1,11 +1,12 @@ import { + duplicateSubgraphNamesError, incompatibleParentTypeMergeError, INPUT_OBJECT, type InputObjectDefinitionData, - invalidSubgraphNamesError, KEY, noBaseDefinitionForExtensionError, noQueryRootTypeError, + noSubgraphNameError, OBJECT, type ObjectDefinitionData, parse, @@ -45,53 +46,32 @@ const __dirname = path.dirname(__filename); describe('FederationFactory tests', () => { test('that trying to federate with non-unique subgraph names returns an error', () => { - const result = federateSubgraphsFailure([pandas, pandas, users, users], ROUTER_COMPATIBILITY_VERSION_ONE); - expect(result.errors).toHaveLength(1); - expect(result.errors[0]).toStrictEqual(invalidSubgraphNamesError([pandas.name, users.name], [])); + const { errors } = federateSubgraphsFailure([pandas, pandas, users, users], ROUTER_COMPATIBILITY_VERSION_ONE); + expect(errors).toHaveLength(1); + expect(errors).toStrictEqual([duplicateSubgraphNamesError([pandas.name, users.name])]); }); test('that trying to federate with empty subgraph names returns an error', () => { - const result = federateSubgraphsFailure([emptySubgraph, emptySubgraph], ROUTER_COMPATIBILITY_VERSION_ONE); - expect(result.errors).toHaveLength(1); - const errorMessage = result.errors![0].message; - expect(errorMessage).contains( - `Subgraphs to be federated must each have a unique, non-empty name.\n` + - ` The 1st subgraph in the array did not define a name.`, - ); - expect(errorMessage).contains( - ` The 2nd subgraph in the array did not define a name.` + - ` Consequently, any further errors will temporarily identify this subgraph as "`, - ); + const { errors } = federateSubgraphsFailure([emptySubgraph, emptySubgraph], ROUTER_COMPATIBILITY_VERSION_ONE); + expect(errors).toHaveLength(1); + expect(errors).toStrictEqual([noSubgraphNameError]); }); test('that trying to federate with both non-unique and empty subgraph names returns an error', () => { - const result = federateSubgraphsFailure( + const { errors } = federateSubgraphsFailure( [users, users, pandas, pandas, emptySubgraph, emptySubgraph, emptySubgraph], ROUTER_COMPATIBILITY_VERSION_ONE, ); - expect(result.errors).toHaveLength(1); - const errorMessage = result.errors![0].message; - expect(errorMessage).contains( - `Subgraphs to be federated must each have a unique, non-empty name.\n` + - ` The following subgraph names are not unique:\n "users", "pandas"\n` + - ` The 5th subgraph in the array did not define a name.` + - ` Consequently, any further errors will temporarily identify this subgraph as "`, - ); - expect(errorMessage).contains( - ` The 6th subgraph in the array did not define a name.` + - ` Consequently, any further errors will temporarily identify this subgraph as "`, - ); - expect(errorMessage).contains( - ` The 7th subgraph in the array did not define a name.` + - ` Consequently, any further errors will temporarily identify this subgraph as "`, - ); + expect(errors).toHaveLength(2); + expect(errors).toStrictEqual([noSubgraphNameError, duplicateSubgraphNamesError([users.name, pandas.name])]); }); test('that the demo subgraphs federate to generate the correct federated graph', () => { - const { federatedGraphSchema } = federateSubgraphsSuccess( + const { federatedGraphAST, federatedGraphSchema } = federateSubgraphsSuccess( [demoEmployees, demoFamily, demoHobbies, demoProducts], ROUTER_COMPATIBILITY_VERSION_ONE, ); + expect(federatedGraphAST.definitions).toHaveLength(58); expect(schemaToSortedNormalizedString(federatedGraphSchema)).toBe( normalizeString( SCHEMA_ALL_ROOTS_DEFINITION + @@ -819,7 +799,7 @@ describe('FederationFactory tests', () => { ); }); - test('that valid executable directives are merged and persisted in the federated graph', () => { + test('that valid executable directives are merged and persisted in the federated graph #1', () => { const result = federateSubgraphsSuccess([subgraphK, subgraphL], ROUTER_COMPATIBILITY_VERSION_ONE); expect(schemaToSortedNormalizedString(result.federatedGraphSchema)).toBe( normalizeString( @@ -835,6 +815,22 @@ describe('FederationFactory tests', () => { ); }); + test('that valid executable directives are merged and persisted in the federated graph #2', () => { + const result = federateSubgraphsSuccess([aaaaa, aaaab], ROUTER_COMPATIBILITY_VERSION_ONE); + expect(schemaToSortedNormalizedString(result.federatedGraphSchema)).toBe( + normalizeString( + SCHEMA_QUERY_DEFINITION + + ` + directive @executableDirective on FIELD + + type Query { + a: ID + } + `, + ), + ); + }); + test('that all nested entity keys are considered to be shareable', () => { const { federatedGraphSchema } = federateSubgraphsSuccess([subgraphM, subgraphN], ROUTER_COMPATIBILITY_VERSION_ONE); expect(schemaToSortedNormalizedString(federatedGraphSchema)).toBe( @@ -1752,3 +1748,23 @@ const subgraphX: Subgraph = { } `), }; + +const aaaaa: Subgraph = { + name: 'aaaaa', + url: '', + definitions: parse(` + directive @executableDirective on FIELD | FIELD_DEFINITION + + type Query { + a: ID @executableDirective + } + `), +}; + +const aaaab: Subgraph = { + name: 'aaaab', + url: '', + definitions: parse(` + directive @executableDirective on FIELD | FIELD_DEFINITION + `), +}; diff --git a/composition/tests/v1/router-configuration.test.ts b/composition/tests/v1/router-configuration.test.ts index dbf449df97..c2900bd14d 100644 --- a/composition/tests/v1/router-configuration.test.ts +++ b/composition/tests/v1/router-configuration.test.ts @@ -1,7 +1,7 @@ import { describe, expect, test } from 'vitest'; import { type BatchNormalizationSuccess, - batchNormalize, + BatchNormalizer, type ConfigurationData, ROUTER_COMPATIBILITY_VERSION_ONE, type Subgraph, @@ -675,9 +675,11 @@ describe('Router Configuration tests', () => { }); test('that the router configuration is correctly generated', () => { - const result = batchNormalize({ subgraphs: [monolith, reviews, users] }) as BatchNormalizationSuccess; + const result = new BatchNormalizer({ + subgraphs: [monolith, reviews, users], + }).batchNormalize() as BatchNormalizationSuccess; expect(result.success).toBe(true); - expect(result.internalSubgraphBySubgraphName.get('monolith')!.configurationDataByTypeName).toStrictEqual( + expect(result.internalSubgraphByName.get('monolith')!.configurationDataByTypeName).toStrictEqual( new Map([ [ 'Query', @@ -689,7 +691,7 @@ describe('Router Configuration tests', () => { ], ]), ); - expect(result.internalSubgraphBySubgraphName.get('reviews')!.configurationDataByTypeName).toStrictEqual( + expect(result.internalSubgraphByName.get('reviews')!.configurationDataByTypeName).toStrictEqual( new Map([ [ 'Query', @@ -717,7 +719,7 @@ describe('Router Configuration tests', () => { ], ]), ); - expect(result.internalSubgraphBySubgraphName.get('users')!.configurationDataByTypeName).toStrictEqual( + expect(result.internalSubgraphByName.get('users')!.configurationDataByTypeName).toStrictEqual( new Map([ [ 'Query', diff --git a/controlplane/test/graphql/federationV2/composedFederatedV2Graph.graphql b/controlplane/test/graphql/federationV2/composedFederatedV2Graph.graphql index a4f08b0d02..c9bb46c3dc 100644 --- a/controlplane/test/graphql/federationV2/composedFederatedV2Graph.graphql +++ b/controlplane/test/graphql/federationV2/composedFederatedV2Graph.graphql @@ -8,6 +8,10 @@ directive @tag( directive @inaccessible on ARGUMENT_DEFINITION | ENUM | ENUM_VALUE | FIELD_DEFINITION | INPUT_FIELD_DEFINITION | INPUT_OBJECT | INTERFACE | OBJECT | SCALAR | UNION +directive @myDirective(a: String!) on FIELD_DEFINITION + +directive @hello on FIELD_DEFINITION + type Query { allPandas: [Panda] panda(name: ID!): Panda @@ -69,7 +73,7 @@ interface ProductItf implements SkuItf { type Product implements ProductItf & SkuItf { id: ID! @tag(name: "hi-from-products") sku: String - name: String + name: String @hello package: String variation: ProductVariation dimensions: ProductDimension diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 31d3541d0b..6276655b64 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -85,8 +85,8 @@ catalogs: specifier: ^4.16.0 version: 4.19.4 typescript: - specifier: 5.5.2 - version: 5.5.2 + specifier: 5.6.2 + version: 5.6.2 vitest: specifier: ^3.2.4 version: 3.2.4 @@ -157,7 +157,7 @@ importers: version: 1.10.0(@bufbuild/protobuf@1.10.0) '@commitlint/cli': specifier: 19.8.0 - version: 19.8.0(@types/node@22.17.0)(typescript@5.5.2) + version: 19.8.0(@types/node@22.17.0)(typescript@5.6.2) '@commitlint/config-conventional': specifier: 19.8.0 version: 19.8.0 @@ -190,10 +190,10 @@ importers: version: 3.6.2 ts-node: specifier: ^10.9.2 - version: 10.9.2(@types/node@22.17.0)(typescript@5.5.2) + version: 10.9.2(@types/node@22.17.0)(typescript@5.6.2) typescript: specifier: 'catalog:' - version: 5.5.2 + version: 5.6.2 vitest: specifier: 'catalog:' version: 3.2.4(@types/debug@4.1.12)(@types/node@22.17.0)(jsdom@27.2.0)(terser@5.44.1) @@ -221,7 +221,7 @@ importers: version: 4.19.4 typescript: specifier: 'catalog:' - version: 5.5.2 + version: 5.6.2 aws-lambda-router: {} @@ -251,13 +251,13 @@ importers: version: 8.57.1 eslint-config-unjs: specifier: 'catalog:' - version: 0.2.1(eslint@8.57.1)(typescript@5.5.2) + version: 0.2.1(eslint@8.57.1)(typescript@5.6.2) tsx: specifier: 'catalog:' version: 4.19.4 typescript: specifier: 'catalog:' - version: 5.5.2 + version: 5.6.2 cdn-server/cdn: dependencies: @@ -273,10 +273,10 @@ importers: version: 8.57.1 eslint-config-unjs: specifier: 'catalog:' - version: 0.2.1(eslint@8.57.1)(typescript@5.5.2) + version: 0.2.1(eslint@8.57.1)(typescript@5.6.2) typescript: specifier: 'catalog:' - version: 5.5.2 + version: 5.6.2 vitest: specifier: 'catalog:' version: 3.2.4(@types/debug@4.1.12)(@types/node@22.17.0)(jsdom@27.2.0)(terser@5.44.1) @@ -460,7 +460,7 @@ importers: version: 8.57.1 eslint-config-unjs: specifier: 'catalog:' - version: 0.2.1(eslint@8.57.1)(typescript@5.5.2) + version: 0.2.1(eslint@8.57.1)(typescript@5.6.2) eslint-plugin-require-extensions: specifier: 'catalog:' version: 0.1.3(eslint@8.57.1) @@ -469,7 +469,7 @@ importers: version: 4.19.4 typescript: specifier: 'catalog:' - version: 5.5.2 + version: 5.6.2 vitest: specifier: 'catalog:' version: 3.2.4(@types/debug@4.1.12)(@types/node@22.17.0)(jsdom@27.2.0)(terser@5.44.1) @@ -501,6 +501,9 @@ importers: '@types/lodash': specifier: 'catalog:' version: 4.17.24 + '@types/node': + specifier: 'catalog:' + version: 22.17.0 '@vitest/coverage-v8': specifier: 'catalog:' version: 3.2.4(vitest@3.2.4(@types/debug@4.1.12)(@types/node@22.17.0)(jsdom@27.2.0)(terser@5.44.1)) @@ -509,7 +512,7 @@ importers: version: 5.1.0 typescript: specifier: 'catalog:' - version: 5.5.2 + version: 5.6.2 vitest: specifier: 'catalog:' version: 3.2.4(@types/debug@4.1.12)(@types/node@22.17.0)(jsdom@27.2.0)(terser@5.44.1) @@ -525,6 +528,21 @@ importers: graphql: specifier: 16.9.0 version: 16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly) + set.prototype.difference: + specifier: ^1.1.7 + version: 1.1.7 + set.prototype.intersection: + specifier: ^1.1.8 + version: 1.1.8 + set.prototype.isdisjointfrom: + specifier: ^1.1.5 + version: 1.1.5 + set.prototype.issubsetof: + specifier: ^1.1.4 + version: 1.1.4 + set.prototype.issupersetof: + specifier: ^1.1.3 + version: 1.1.3 devDependencies: '@types/node': specifier: 'catalog:' @@ -536,11 +554,11 @@ importers: specifier: ^0.3.0 version: 0.3.0(esbuild@0.25.1) tsup: - specifier: ^8.0.1 - version: 8.0.1(@microsoft/api-extractor@7.58.2(@types/node@22.17.0))(postcss@8.5.6)(ts-node@10.9.2(@types/node@22.17.0)(typescript@5.5.2))(typescript@5.5.2) + specifier: 8.3.5 + version: 8.3.5(@microsoft/api-extractor@7.58.2(@types/node@22.17.0))(jiti@2.4.2)(postcss@8.5.6)(tsx@4.19.4)(typescript@5.6.2)(yaml@2.8.2) typescript: specifier: 'catalog:' - version: 5.5.2 + version: 5.6.2 connect: dependencies: @@ -556,7 +574,7 @@ importers: version: 5.1.0 typescript: specifier: 'catalog:' - version: 5.5.2 + version: 5.6.2 controlplane: dependencies: @@ -773,7 +791,7 @@ importers: version: 9.0.8 '@vitest/coverage-v8': specifier: 'catalog:' - version: 3.2.4(vitest@3.2.4(@types/debug@4.1.12)(@types/node@22.17.0)(jsdom@27.2.0)(msw@2.2.11(typescript@5.5.2))(terser@5.44.1)) + version: 3.2.4(vitest@3.2.4(@types/debug@4.1.12)(@types/node@22.17.0)(jsdom@27.2.0)(msw@2.2.11(typescript@5.6.2))(terser@5.44.1)) del-cli: specifier: 'catalog:' version: 5.1.0 @@ -782,7 +800,7 @@ importers: version: 0.26.2 eslint-config-unjs: specifier: 'catalog:' - version: 0.2.1(eslint@8.57.1)(typescript@5.5.2) + version: 0.2.1(eslint@8.57.1)(typescript@5.6.2) eslint-plugin-local-rules: specifier: ^3.0.2 version: 3.0.2 @@ -791,7 +809,7 @@ importers: version: 0.1.3(eslint@8.57.1) msw: specifier: ^2.2.11 - version: 2.2.11(typescript@5.5.2) + version: 2.2.11(typescript@5.6.2) pino-pretty: specifier: ^10.3.1 version: 10.3.1 @@ -800,10 +818,10 @@ importers: version: 4.19.4 typescript: specifier: 'catalog:' - version: 5.5.2 + version: 5.6.2 vitest: specifier: 'catalog:' - version: 3.2.4(@types/debug@4.1.12)(@types/node@22.17.0)(jsdom@27.2.0)(msw@2.2.11(typescript@5.5.2))(terser@5.44.1) + version: 3.2.4(@types/debug@4.1.12)(@types/node@22.17.0)(jsdom@27.2.0)(msw@2.2.11(typescript@5.6.2))(terser@5.44.1) controlplane/emails: devDependencies: @@ -931,7 +949,7 @@ importers: devDependencies: '@tailwindcss/typography': specifier: ^0.5.10 - version: 0.5.13(tailwindcss@3.4.15(ts-node@10.9.2(@types/node@22.17.0)(typescript@5.5.2))) + version: 0.5.13(tailwindcss@3.4.15(ts-node@10.9.2(@types/node@22.17.0)(typescript@5.6.2))) '@types/crypto-js': specifier: ^4.2.2 version: 4.2.2 @@ -967,22 +985,22 @@ importers: version: 2.0.0 tailwind-scrollbar: specifier: ^3.1.0 - version: 3.1.0(tailwindcss@3.4.15(ts-node@10.9.2(@types/node@22.17.0)(typescript@5.5.2))) + version: 3.1.0(tailwindcss@3.4.15(ts-node@10.9.2(@types/node@22.17.0)(typescript@5.6.2))) tailwindcss: specifier: ^3.4.15 - version: 3.4.15(ts-node@10.9.2(@types/node@22.17.0)(typescript@5.5.2)) + version: 3.4.15(ts-node@10.9.2(@types/node@22.17.0)(typescript@5.6.2)) tailwindcss-animate: specifier: ^1.0.7 - version: 1.0.7(tailwindcss@3.4.15(ts-node@10.9.2(@types/node@22.17.0)(typescript@5.5.2))) + version: 1.0.7(tailwindcss@3.4.15(ts-node@10.9.2(@types/node@22.17.0)(typescript@5.6.2))) typescript: specifier: 'catalog:' - version: 5.5.2 + version: 5.6.2 vite: specifier: ^5.4.21 version: 5.4.21(@types/node@22.17.0)(terser@5.44.1) vite-plugin-dts: specifier: 4.5.4 - version: 4.5.4(@types/node@22.17.0)(rollup@4.59.0)(typescript@5.5.2)(vite@5.4.21(@types/node@22.17.0)(terser@5.44.1)) + version: 4.5.4(@types/node@22.17.0)(rollup@4.59.0)(typescript@5.6.2)(vite@5.4.21(@types/node@22.17.0)(terser@5.44.1)) vite-plugin-html: specifier: ^3.2.2 version: 3.2.2(vite@5.4.21(@types/node@22.17.0)(terser@5.44.1)) @@ -1025,13 +1043,13 @@ importers: version: 8.57.1 eslint-config-unjs: specifier: 'catalog:' - version: 0.2.1(eslint@8.57.1)(typescript@5.5.2) + version: 0.2.1(eslint@8.57.1)(typescript@5.6.2) eslint-plugin-require-extensions: specifier: 'catalog:' version: 0.1.3(eslint@8.57.1) typescript: specifier: 'catalog:' - version: 5.5.2 + version: 5.6.2 vitest: specifier: 'catalog:' version: 3.2.4(@types/debug@4.1.12)(@types/node@22.17.0)(jsdom@27.2.0)(terser@5.44.1) @@ -1075,7 +1093,7 @@ importers: version: 4.19.4 typescript: specifier: 'catalog:' - version: 5.5.2 + version: 5.6.2 vitest: specifier: 'catalog:' version: 3.2.4(@types/debug@4.1.12)(@types/node@22.17.0)(jsdom@27.2.0)(terser@5.44.1) @@ -1186,7 +1204,7 @@ importers: version: 2.2.2 '@t3-oss/env-nextjs': specifier: ^0.4.1 - version: 0.4.1(typescript@5.5.2)(zod@3.25.76) + version: 0.4.1(typescript@5.6.2)(zod@3.25.76) '@tanstack/react-query': specifier: ^5.37.1 version: 5.37.1(react@18.3.1) @@ -1348,13 +1366,13 @@ importers: version: 2.0.0 tailwind-scrollbar: specifier: ^3.1.0 - version: 3.1.0(tailwindcss@3.4.15(ts-node@10.9.2(@types/node@22.17.0)(typescript@5.5.2))) + version: 3.1.0(tailwindcss@3.4.15(ts-node@10.9.2(@types/node@22.17.0)(typescript@5.6.2))) tailwindcss: specifier: ^3.4.15 - version: 3.4.15(ts-node@10.9.2(@types/node@22.17.0)(typescript@5.5.2)) + version: 3.4.15(ts-node@10.9.2(@types/node@22.17.0)(typescript@5.6.2)) tailwindcss-animate: specifier: ^1.0.7 - version: 1.0.7(tailwindcss@3.4.15(ts-node@10.9.2(@types/node@22.17.0)(typescript@5.5.2))) + version: 1.0.7(tailwindcss@3.4.15(ts-node@10.9.2(@types/node@22.17.0)(typescript@5.6.2))) tiptap-markdown: specifier: ^0.8.8 version: 0.8.8(@tiptap/core@2.4.0(@tiptap/pm@2.1.13)) @@ -1370,7 +1388,7 @@ importers: devDependencies: '@tailwindcss/typography': specifier: ^0.5.9 - version: 0.5.9(tailwindcss@3.4.15(ts-node@10.9.2(@types/node@22.17.0)(typescript@5.5.2))) + version: 0.5.9(tailwindcss@3.4.15(ts-node@10.9.2(@types/node@22.17.0)(typescript@5.6.2))) '@testing-library/react': specifier: ^14.1.2 version: 14.1.2(react-dom@18.3.1(react@18.3.1))(react@18.3.1) @@ -1418,7 +1436,7 @@ importers: version: 8.57.1 eslint-config-next: specifier: 13.4.7 - version: 13.4.7(eslint@8.57.1)(typescript@5.5.2) + version: 13.4.7(eslint@8.57.1)(typescript@5.6.2) jsdom: specifier: ^23.2.0 version: 23.2.0 @@ -1430,7 +1448,7 @@ importers: version: 0.5.6(prettier@3.6.2) typescript: specifier: 'catalog:' - version: 5.5.2 + version: 5.6.2 vitest: specifier: 'catalog:' version: 3.2.4(@types/debug@4.1.12)(@types/node@22.17.0)(jsdom@23.2.0)(terser@5.44.1) @@ -2754,6 +2772,12 @@ packages: cpu: [ppc64] os: [aix] + '@esbuild/aix-ppc64@0.24.2': + resolution: {integrity: sha512-thpVCb/rhxE/BnMLQ7GReQLLN8q9qbHmI55F4489/ByVg2aQaQ6kbcLb6FHkocZzQhxc4gx0sCk0tJkKBFzDhA==} + engines: {node: '>=18'} + cpu: [ppc64] + os: [aix] + '@esbuild/aix-ppc64@0.25.0': resolution: {integrity: sha512-O7vun9Sf8DFjH2UtqK8Ku3LkquL9SZL8OLY1T5NZkA34+wG3OQF7cl4Ql8vdNzM6fzBbYfLaiRLIOZ+2FOCgBQ==} engines: {node: '>=18'} @@ -2790,6 +2814,12 @@ packages: cpu: [arm64] os: [android] + '@esbuild/android-arm64@0.24.2': + resolution: {integrity: sha512-cNLgeqCqV8WxfcTIOeL4OAtSmL8JjcN6m09XIgro1Wi7cF4t/THaWEa7eL5CMoMBdjoHOTh/vwTO/o2TRXIyzg==} + engines: {node: '>=18'} + cpu: [arm64] + os: [android] + '@esbuild/android-arm64@0.25.0': resolution: {integrity: sha512-grvv8WncGjDSyUBjN9yHXNt+cq0snxXbDxy5pJtzMKGmmpPxeAmAhWxXI+01lU5rwZomDgD3kJwulEnhTRUd6g==} engines: {node: '>=18'} @@ -2826,6 +2856,12 @@ packages: cpu: [arm] os: [android] + '@esbuild/android-arm@0.24.2': + resolution: {integrity: sha512-tmwl4hJkCfNHwFB3nBa8z1Uy3ypZpxqxfTQOcHX+xRByyYgunVbZ9MzUUfb0RxaHIMnbHagwAxuTL+tnNM+1/Q==} + engines: {node: '>=18'} + cpu: [arm] + os: [android] + '@esbuild/android-arm@0.25.0': resolution: {integrity: sha512-PTyWCYYiU0+1eJKmw21lWtC+d08JDZPQ5g+kFyxP0V+es6VPPSUhM6zk8iImp2jbV6GwjX4pap0JFbUQN65X1g==} engines: {node: '>=18'} @@ -2862,6 +2898,12 @@ packages: cpu: [x64] os: [android] + '@esbuild/android-x64@0.24.2': + resolution: {integrity: sha512-B6Q0YQDqMx9D7rvIcsXfmJfvUYLoP722bgfBlO5cGvNVb5V/+Y7nhBE3mHV9OpxBf4eAS2S68KZztiPaWq4XYw==} + engines: {node: '>=18'} + cpu: [x64] + os: [android] + '@esbuild/android-x64@0.25.0': resolution: {integrity: sha512-m/ix7SfKG5buCnxasr52+LI78SQ+wgdENi9CqyCXwjVR2X4Jkz+BpC3le3AoBPYTC9NHklwngVXvbJ9/Akhrfg==} engines: {node: '>=18'} @@ -2898,6 +2940,12 @@ packages: cpu: [arm64] os: [darwin] + '@esbuild/darwin-arm64@0.24.2': + resolution: {integrity: sha512-kj3AnYWc+CekmZnS5IPu9D+HWtUI49hbnyqk0FLEJDbzCIQt7hg7ucF1SQAilhtYpIujfaHr6O0UHlzzSPdOeA==} + engines: {node: '>=18'} + cpu: [arm64] + os: [darwin] + '@esbuild/darwin-arm64@0.25.0': resolution: {integrity: sha512-mVwdUb5SRkPayVadIOI78K7aAnPamoeFR2bT5nszFUZ9P8UpK4ratOdYbZZXYSqPKMHfS1wdHCJk1P1EZpRdvw==} engines: {node: '>=18'} @@ -2934,6 +2982,12 @@ packages: cpu: [x64] os: [darwin] + '@esbuild/darwin-x64@0.24.2': + resolution: {integrity: sha512-WeSrmwwHaPkNR5H3yYfowhZcbriGqooyu3zI/3GGpF8AyUdsrrP0X6KumITGA9WOyiJavnGZUwPGvxvwfWPHIA==} + engines: {node: '>=18'} + cpu: [x64] + os: [darwin] + '@esbuild/darwin-x64@0.25.0': resolution: {integrity: sha512-DgDaYsPWFTS4S3nWpFcMn/33ZZwAAeAFKNHNa1QN0rI4pUjgqf0f7ONmXf6d22tqTY+H9FNdgeaAa+YIFUn2Rg==} engines: {node: '>=18'} @@ -2970,6 +3024,12 @@ packages: cpu: [arm64] os: [freebsd] + '@esbuild/freebsd-arm64@0.24.2': + resolution: {integrity: sha512-UN8HXjtJ0k/Mj6a9+5u6+2eZ2ERD7Edt1Q9IZiB5UZAIdPnVKDoG7mdTVGhHJIeEml60JteamR3qhsr1r8gXvg==} + engines: {node: '>=18'} + cpu: [arm64] + os: [freebsd] + '@esbuild/freebsd-arm64@0.25.0': resolution: {integrity: sha512-VN4ocxy6dxefN1MepBx/iD1dH5K8qNtNe227I0mnTRjry8tj5MRk4zprLEdG8WPyAPb93/e4pSgi1SoHdgOa4w==} engines: {node: '>=18'} @@ -3006,6 +3066,12 @@ packages: cpu: [x64] os: [freebsd] + '@esbuild/freebsd-x64@0.24.2': + resolution: {integrity: sha512-TvW7wE/89PYW+IevEJXZ5sF6gJRDY/14hyIGFXdIucxCsbRmLUcjseQu1SyTko+2idmCw94TgyaEZi9HUSOe3Q==} + engines: {node: '>=18'} + cpu: [x64] + os: [freebsd] + '@esbuild/freebsd-x64@0.25.0': resolution: {integrity: sha512-mrSgt7lCh07FY+hDD1TxiTyIHyttn6vnjesnPoVDNmDfOmggTLXRv8Id5fNZey1gl/V2dyVK1VXXqVsQIiAk+A==} engines: {node: '>=18'} @@ -3042,6 +3108,12 @@ packages: cpu: [arm64] os: [linux] + '@esbuild/linux-arm64@0.24.2': + resolution: {integrity: sha512-7HnAD6074BW43YvvUmE/35Id9/NB7BeX5EoNkK9obndmZBUk8xmJJeU7DwmUeN7tkysslb2eSl6CTrYz6oEMQg==} + engines: {node: '>=18'} + cpu: [arm64] + os: [linux] + '@esbuild/linux-arm64@0.25.0': resolution: {integrity: sha512-9QAQjTWNDM/Vk2bgBl17yWuZxZNQIF0OUUuPZRKoDtqF2k4EtYbpyiG5/Dk7nqeK6kIJWPYldkOcBqjXjrUlmg==} engines: {node: '>=18'} @@ -3078,6 +3150,12 @@ packages: cpu: [arm] os: [linux] + '@esbuild/linux-arm@0.24.2': + resolution: {integrity: sha512-n0WRM/gWIdU29J57hJyUdIsk0WarGd6To0s+Y+LwvlC55wt+GT/OgkwoXCXvIue1i1sSNWblHEig00GBWiJgfA==} + engines: {node: '>=18'} + cpu: [arm] + os: [linux] + '@esbuild/linux-arm@0.25.0': resolution: {integrity: sha512-vkB3IYj2IDo3g9xX7HqhPYxVkNQe8qTK55fraQyTzTX/fxaDtXiEnavv9geOsonh2Fd2RMB+i5cbhu2zMNWJwg==} engines: {node: '>=18'} @@ -3114,6 +3192,12 @@ packages: cpu: [ia32] os: [linux] + '@esbuild/linux-ia32@0.24.2': + resolution: {integrity: sha512-sfv0tGPQhcZOgTKO3oBE9xpHuUqguHvSo4jl+wjnKwFpapx+vUDcawbwPNuBIAYdRAvIDBfZVvXprIj3HA+Ugw==} + engines: {node: '>=18'} + cpu: [ia32] + os: [linux] + '@esbuild/linux-ia32@0.25.0': resolution: {integrity: sha512-43ET5bHbphBegyeqLb7I1eYn2P/JYGNmzzdidq/w0T8E2SsYL1U6un2NFROFRg1JZLTzdCoRomg8Rvf9M6W6Gg==} engines: {node: '>=18'} @@ -3150,6 +3234,12 @@ packages: cpu: [loong64] os: [linux] + '@esbuild/linux-loong64@0.24.2': + resolution: {integrity: sha512-CN9AZr8kEndGooS35ntToZLTQLHEjtVB5n7dl8ZcTZMonJ7CCfStrYhrzF97eAecqVbVJ7APOEe18RPI4KLhwQ==} + engines: {node: '>=18'} + cpu: [loong64] + os: [linux] + '@esbuild/linux-loong64@0.25.0': resolution: {integrity: sha512-fC95c/xyNFueMhClxJmeRIj2yrSMdDfmqJnyOY4ZqsALkDrrKJfIg5NTMSzVBr5YW1jf+l7/cndBfP3MSDpoHw==} engines: {node: '>=18'} @@ -3186,6 +3276,12 @@ packages: cpu: [mips64el] os: [linux] + '@esbuild/linux-mips64el@0.24.2': + resolution: {integrity: sha512-iMkk7qr/wl3exJATwkISxI7kTcmHKE+BlymIAbHO8xanq/TjHaaVThFF6ipWzPHryoFsesNQJPE/3wFJw4+huw==} + engines: {node: '>=18'} + cpu: [mips64el] + os: [linux] + '@esbuild/linux-mips64el@0.25.0': resolution: {integrity: sha512-nkAMFju7KDW73T1DdH7glcyIptm95a7Le8irTQNO/qtkoyypZAnjchQgooFUDQhNAy4iu08N79W4T4pMBwhPwQ==} engines: {node: '>=18'} @@ -3222,6 +3318,12 @@ packages: cpu: [ppc64] os: [linux] + '@esbuild/linux-ppc64@0.24.2': + resolution: {integrity: sha512-shsVrgCZ57Vr2L8mm39kO5PPIb+843FStGt7sGGoqiiWYconSxwTiuswC1VJZLCjNiMLAMh34jg4VSEQb+iEbw==} + engines: {node: '>=18'} + cpu: [ppc64] + os: [linux] + '@esbuild/linux-ppc64@0.25.0': resolution: {integrity: sha512-NhyOejdhRGS8Iwv+KKR2zTq2PpysF9XqY+Zk77vQHqNbo/PwZCzB5/h7VGuREZm1fixhs4Q/qWRSi5zmAiO4Fw==} engines: {node: '>=18'} @@ -3258,6 +3360,12 @@ packages: cpu: [riscv64] os: [linux] + '@esbuild/linux-riscv64@0.24.2': + resolution: {integrity: sha512-4eSFWnU9Hhd68fW16GD0TINewo1L6dRrB+oLNNbYyMUAeOD2yCK5KXGK1GH4qD/kT+bTEXjsyTCiJGHPZ3eM9Q==} + engines: {node: '>=18'} + cpu: [riscv64] + os: [linux] + '@esbuild/linux-riscv64@0.25.0': resolution: {integrity: sha512-5S/rbP5OY+GHLC5qXp1y/Mx//e92L1YDqkiBbO9TQOvuFXM+iDqUNG5XopAnXoRH3FjIUDkeGcY1cgNvnXp/kA==} engines: {node: '>=18'} @@ -3294,6 +3402,12 @@ packages: cpu: [s390x] os: [linux] + '@esbuild/linux-s390x@0.24.2': + resolution: {integrity: sha512-S0Bh0A53b0YHL2XEXC20bHLuGMOhFDO6GN4b3YjRLK//Ep3ql3erpNcPlEFed93hsQAjAQDNsvcK+hV90FubSw==} + engines: {node: '>=18'} + cpu: [s390x] + os: [linux] + '@esbuild/linux-s390x@0.25.0': resolution: {integrity: sha512-XM2BFsEBz0Fw37V0zU4CXfcfuACMrppsMFKdYY2WuTS3yi8O1nFOhil/xhKTmE1nPmVyvQJjJivgDT+xh8pXJA==} engines: {node: '>=18'} @@ -3330,6 +3444,12 @@ packages: cpu: [x64] os: [linux] + '@esbuild/linux-x64@0.24.2': + resolution: {integrity: sha512-8Qi4nQcCTbLnK9WoMjdC9NiTG6/E38RNICU6sUNqK0QFxCYgoARqVqxdFmWkdonVsvGqWhmm7MO0jyTqLqwj0Q==} + engines: {node: '>=18'} + cpu: [x64] + os: [linux] + '@esbuild/linux-x64@0.25.0': resolution: {integrity: sha512-9yl91rHw/cpwMCNytUDxwj2XjFpxML0y9HAOH9pNVQDpQrBxHy01Dx+vaMu0N1CKa/RzBD2hB4u//nfc+Sd3Cw==} engines: {node: '>=18'} @@ -3348,6 +3468,12 @@ packages: cpu: [x64] os: [linux] + '@esbuild/netbsd-arm64@0.24.2': + resolution: {integrity: sha512-wuLK/VztRRpMt9zyHSazyCVdCXlpHkKm34WUyinD2lzK07FAHTq0KQvZZlXikNWkDGoT6x3TD51jKQ7gMVpopw==} + engines: {node: '>=18'} + cpu: [arm64] + os: [netbsd] + '@esbuild/netbsd-arm64@0.25.0': resolution: {integrity: sha512-RuG4PSMPFfrkH6UwCAqBzauBWTygTvb1nxWasEJooGSJ/NwRw7b2HOwyRTQIU97Hq37l3npXoZGYMy3b3xYvPw==} engines: {node: '>=18'} @@ -3384,6 +3510,12 @@ packages: cpu: [x64] os: [netbsd] + '@esbuild/netbsd-x64@0.24.2': + resolution: {integrity: sha512-VefFaQUc4FMmJuAxmIHgUmfNiLXY438XrL4GDNV1Y1H/RW3qow68xTwjZKfj/+Plp9NANmzbH5R40Meudu8mmw==} + engines: {node: '>=18'} + cpu: [x64] + os: [netbsd] + '@esbuild/netbsd-x64@0.25.0': resolution: {integrity: sha512-jl+qisSB5jk01N5f7sPCsBENCOlPiS/xptD5yxOx2oqQfyourJwIKLRA2yqWdifj3owQZCL2sn6o08dBzZGQzA==} engines: {node: '>=18'} @@ -3402,6 +3534,12 @@ packages: cpu: [x64] os: [netbsd] + '@esbuild/openbsd-arm64@0.24.2': + resolution: {integrity: sha512-YQbi46SBct6iKnszhSvdluqDmxCJA+Pu280Av9WICNwQmMxV7nLRHZfjQzwbPs3jeWnuAhE9Jy0NrnJ12Oz+0A==} + engines: {node: '>=18'} + cpu: [arm64] + os: [openbsd] + '@esbuild/openbsd-arm64@0.25.0': resolution: {integrity: sha512-21sUNbq2r84YE+SJDfaQRvdgznTD8Xc0oc3p3iW/a1EVWeNj/SdUCbm5U0itZPQYRuRTW20fPMWMpcrciH2EJw==} engines: {node: '>=18'} @@ -3438,6 +3576,12 @@ packages: cpu: [x64] os: [openbsd] + '@esbuild/openbsd-x64@0.24.2': + resolution: {integrity: sha512-+iDS6zpNM6EnJyWv0bMGLWSWeXGN/HTaF/LXHXHwejGsVi+ooqDfMCCTerNFxEkM3wYVcExkeGXNqshc9iMaOA==} + engines: {node: '>=18'} + cpu: [x64] + os: [openbsd] + '@esbuild/openbsd-x64@0.25.0': resolution: {integrity: sha512-2gwwriSMPcCFRlPlKx3zLQhfN/2WjJ2NSlg5TKLQOJdV0mSxIcYNTMhk3H3ulL/cak+Xj0lY1Ym9ysDV1igceg==} engines: {node: '>=18'} @@ -3480,6 +3624,12 @@ packages: cpu: [x64] os: [sunos] + '@esbuild/sunos-x64@0.24.2': + resolution: {integrity: sha512-hTdsW27jcktEvpwNHJU4ZwWFGkz2zRJUz8pvddmXPtXDzVKTTINmlmga3ZzwcuMpUvLw7JkLy9QLKyGpD2Yxig==} + engines: {node: '>=18'} + cpu: [x64] + os: [sunos] + '@esbuild/sunos-x64@0.25.0': resolution: {integrity: sha512-bxI7ThgLzPrPz484/S9jLlvUAHYMzy6I0XiU1ZMeAEOBcS0VePBFxh1JjTQt3Xiat5b6Oh4x7UC7IwKQKIJRIg==} engines: {node: '>=18'} @@ -3516,6 +3666,12 @@ packages: cpu: [arm64] os: [win32] + '@esbuild/win32-arm64@0.24.2': + resolution: {integrity: sha512-LihEQ2BBKVFLOC9ZItT9iFprsE9tqjDjnbulhHoFxYQtQfai7qfluVODIYxt1PgdoyQkz23+01rzwNwYfutxUQ==} + engines: {node: '>=18'} + cpu: [arm64] + os: [win32] + '@esbuild/win32-arm64@0.25.0': resolution: {integrity: sha512-ZUAc2YK6JW89xTbXvftxdnYy3m4iHIkDtK3CLce8wg8M2L+YZhIvO1DKpxrd0Yr59AeNNkTiic9YLf6FTtXWMw==} engines: {node: '>=18'} @@ -3552,6 +3708,12 @@ packages: cpu: [ia32] os: [win32] + '@esbuild/win32-ia32@0.24.2': + resolution: {integrity: sha512-q+iGUwfs8tncmFC9pcnD5IvRHAzmbwQ3GPS5/ceCyHdjXubwQWI12MKWSNSMYLJMq23/IUCvJMS76PDqXe1fxA==} + engines: {node: '>=18'} + cpu: [ia32] + os: [win32] + '@esbuild/win32-ia32@0.25.0': resolution: {integrity: sha512-eSNxISBu8XweVEWG31/JzjkIGbGIJN/TrRoiSVZwZ6pkC6VX4Im/WV2cz559/TXLcYbcrDN8JtKgd9DJVIo8GA==} engines: {node: '>=18'} @@ -3588,6 +3750,12 @@ packages: cpu: [x64] os: [win32] + '@esbuild/win32-x64@0.24.2': + resolution: {integrity: sha512-7VTgWzgMGvup6aSqDPLiW5zHaxYJGTO4OokMjIlrCtf+VpEL+cXKtCvg723iguPYI5oaUNdS+/V7OU2gvXVWEg==} + engines: {node: '>=18'} + cpu: [x64] + os: [win32] + '@esbuild/win32-x64@0.25.0': resolution: {integrity: sha512-ZENoHJBxA20C2zFzh6AI4fT6RraMzjYw4xKWemRTRmRVtN9c5DcH9r/f2ihEkMjOW5eGgrwCslG/+Y/3bL+DHQ==} engines: {node: '>=18'} @@ -4096,47 +4264,22 @@ packages: '@jridgewell/gen-mapping@0.3.13': resolution: {integrity: sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==} - '@jridgewell/gen-mapping@0.3.3': - resolution: {integrity: sha512-HLhSWOLRi875zjjMG/r+Nv0oCW8umGb0BgEhyX3dDX3egwZtB8PqLnjz3yedt8R5StBrzcg4aBpnh8UA9D1BoQ==} - engines: {node: '>=6.0.0'} - - '@jridgewell/gen-mapping@0.3.5': - resolution: {integrity: sha512-IzL8ZoEDIBRWEzlCcRhOaCupYyN5gdIK+Q6fbFdPDg6HqX6jpkItn7DFIpW9LQzXG6Df9sA7+OKnq0qlz/GaQg==} - engines: {node: '>=6.0.0'} - '@jridgewell/resolve-uri@3.1.2': resolution: {integrity: sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==} engines: {node: '>=6.0.0'} - '@jridgewell/set-array@1.1.2': - resolution: {integrity: sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==} - engines: {node: '>=6.0.0'} - - '@jridgewell/set-array@1.2.1': - resolution: {integrity: sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==} - engines: {node: '>=6.0.0'} - '@jridgewell/source-map@0.3.11': resolution: {integrity: sha512-ZMp1V8ZFcPG5dIWnQLr3NSI1MiCU7UETdS/A0G8V/XWHvJv3ZsFqutJn1Y5RPmAPX6F3BiE397OqveU/9NCuIA==} '@jridgewell/source-map@0.3.6': resolution: {integrity: sha512-1ZJTZebgqllO79ue2bm3rIGud/bOe0pP5BjSRCRxxYkEZS8STV7zN84UBbiYu7jy+eCKSnVIUgoWWE/tt+shMQ==} - '@jridgewell/sourcemap-codec@1.4.15': - resolution: {integrity: sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==} - - '@jridgewell/sourcemap-codec@1.5.0': - resolution: {integrity: sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ==} - '@jridgewell/sourcemap-codec@1.5.4': resolution: {integrity: sha512-VT2+G1VQs/9oz078bLrYbecdZKs912zQlkelYpuf+SXF+QvZDYJlbx/LSx+meSAwdDFnF8FVXW92AVjjkVmgFw==} '@jridgewell/sourcemap-codec@1.5.5': resolution: {integrity: sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==} - '@jridgewell/trace-mapping@0.3.25': - resolution: {integrity: sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==} - '@jridgewell/trace-mapping@0.3.31': resolution: {integrity: sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==} @@ -8283,6 +8426,10 @@ packages: array-buffer-byte-length@1.0.0: resolution: {integrity: sha512-LPuwb2P+NrQw3XhxGc36+XSvuBPopovXYTR9Ew++Du9Yb/bx5AzBfrIsBoj0EZUifjQU+sHL21sseZ3jerWO/A==} + array-buffer-byte-length@1.0.2: + resolution: {integrity: sha512-LHE+8BuR7RYGDKvnrmcuSq3tDcKv9OFEXQt/HpbZhY7V6h0zlUXutnAD82GiFx9rdieCMjkvtcsPqBwgUl1Iiw==} + engines: {node: '>= 0.4'} + array-ify@1.0.0: resolution: {integrity: sha512-c5AMf34bKdvPhQ7tBGhqkgKNUzMr4WUs+WDtC2ZUGOUncbxKMTvqxYctiseW3+L4bA8ec+GcZ6/A/FW4m8ukng==} @@ -8309,6 +8456,10 @@ packages: resolution: {integrity: sha512-09x0ZWFEjj4WD8PDbykUwo3t9arLn8NIzmmYEJFpYekOAQjpkGSyrQhNoRTcwwcFRu+ycWF78QZ63oWTqSjBcw==} engines: {node: '>= 0.4'} + arraybuffer.prototype.slice@1.0.4: + resolution: {integrity: sha512-BNoCY6SXXPQ7gF2opIP4GBE+Xw7U+pHMYKuzjgCN3GwiaIR09UUeKfheyIry77QtrCBlC0KK0q5/TER/tYh3PQ==} + engines: {node: '>= 0.4'} + arrify@1.0.1: resolution: {integrity: sha512-3CYzex9M9FGQjCGMGyi6/31c8GJbgb0qGyrx5HWxPd0aCwh4cB2YjMb2Xf9UuoogrMrlO9cTqnB5rI5GHZTcUA==} engines: {node: '>=0.10.0'} @@ -8327,6 +8478,10 @@ packages: ast-v8-to-istanbul@0.3.8: resolution: {integrity: sha512-szgSZqUxI5T8mLKvS7WTjF9is+MVbOeLADU73IseOcrqhxr/VAvy6wfoVE39KnKzA7JRhjF5eUagNlHwvZPlKQ==} + async-function@1.0.0: + resolution: {integrity: sha512-hsU18Ae8CDTR6Kgu9DYf0EbCr/a5iGL0rytQDobUcdpYOKokk8LEjVphnXkDkgpi0wYVsqrXuP0bZxJaTqdgoA==} + engines: {node: '>= 0.4'} + async@3.2.5: resolution: {integrity: sha512-baNZyqaaLhyLVKm/DlvdW051MSgO6b8eVfIezl9E5PqWxFgzLm/wQntEW4zOytVburDEr0JlALEpdOFwvErLsg==} @@ -8463,10 +8618,6 @@ packages: resolution: {integrity: sha512-h+DEnpVvxmfVefa4jFbCf5HdH5YMDXRsmKflpf1pILZWRFlTbJpxeU55nJl4Smt5HQaGzg1o6RHFPJaOqnmBDg==} engines: {node: 18 || 20 || >=22} - braces@3.0.2: - resolution: {integrity: sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==} - engines: {node: '>=8'} - braces@3.0.3: resolution: {integrity: sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==} engines: {node: '>=8'} @@ -8527,11 +8678,11 @@ packages: resolution: {integrity: sha512-PKA4BeSvBpQKQ8iPOGCSiell+N8P+Tf1DlwqmYhpe2gAhKPHn8EYOxVT+ShuGmhg8lN8XiSlS80yiExKXrURlw==} engines: {node: '>=12'} - bundle-require@4.0.1: - resolution: {integrity: sha512-9NQkRHlNdNpDBGmLpngF3EFDcwodhMUuLz9PaWYciVcQF9SE4LFjM2DB/xV1Li5JiuDMv7ZUWuC3rGbqR0MAXQ==} + bundle-require@5.1.0: + resolution: {integrity: sha512-3WrrOuZiyaaZPWiEt4G3+IffISVC9HYlWueJEBWED4ZH4aIAC2PnkdnuRrR94M+w6yGWn4AglWtJtBI8YqvgoA==} engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} peerDependencies: - esbuild: '>=0.17' + esbuild: '>=0.18' busboy@1.6.0: resolution: {integrity: sha512-8SFQbg/0hQ9xy3UNTB0YEnsNBbWfhf7RtnzpL7TkBiTBRfrQ9Fxcnz7VJsleJpyp6rVLvXiuORqjlHi5q+PYuA==} @@ -8562,17 +8713,14 @@ packages: resolution: {integrity: sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==} engines: {node: '>= 0.4'} - call-bind@1.0.2: - resolution: {integrity: sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==} - - call-bind@1.0.7: - resolution: {integrity: sha512-GHTSNSYICQ7scH7sZ+M2rFopRoLh8t2bLSW6BbgrtLsahOIB5iyAVJf9GjWK3cYTDaMj4XdBpM1cA6pIS0Kv2w==} - engines: {node: '>= 0.4'} - call-bind@1.0.8: resolution: {integrity: sha512-oKlSFMcMwpUg2ednkhQ454wfWiU/ul3CkJe/PEHcTKuiX6RpbehUiFMXu13HalGZxfUwCQzZG747YXBn1im9ww==} engines: {node: '>= 0.4'} + call-bind@1.0.9: + resolution: {integrity: sha512-a/hy+pNsFUTR+Iz8TCJvXudKVLAnz/DyeSUo10I5yvFDQJBFU2s9uqQpoSrJlroHUKoKqzg+epxyP9lqFdzfBQ==} + engines: {node: '>= 0.4'} + call-bound@1.0.4: resolution: {integrity: sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==} engines: {node: '>= 0.4'} @@ -8674,10 +8822,6 @@ packages: resolution: {integrity: sha512-OAlb+T7V4Op9OwdkjmguYRqncdlx5JiofwOAUkmTF+jNdHwzTaTs4sRAGpzLF3oOz5xAyDGrPgeIDFQmDOTiJw==} engines: {node: '>= 16'} - chokidar@3.5.3: - resolution: {integrity: sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==} - engines: {node: '>= 8.10.0'} - chokidar@3.6.0: resolution: {integrity: sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==} engines: {node: '>= 8.10.0'} @@ -8893,6 +9037,10 @@ packages: consola@2.15.3: resolution: {integrity: sha512-9vAdYbHj6x2fLKC4+oPH0kFzY/orMZyG2Aj+kNylHxKGJ/Ed4dpNyAQYwJOdqO4zdM7XpVHmyejQDcQHrnuXbw==} + consola@3.4.2: + resolution: {integrity: sha512-5IKcdX0nnYavi6G7TtOhwkYzyjfJlatbjMjuLSfE2kYT5pMDOilZ4OvMhi637CcDICTmz3wARPoyhqyX1Y+XvA==} + engines: {node: ^14.18.0 || >=16.10.0} + constant-case@3.0.4: resolution: {integrity: sha512-I2hSBi7Vvs7BEuJDr5dDHfzb/Ruj3FyvFyh7KLilAjNQw3Be+xgqUBA2W6scVEcL0hL1dwPRtIqEPVUCKkSsyQ==} @@ -9149,6 +9297,18 @@ packages: resolution: {integrity: sha512-euIQENZg6x8mj3fO6o9+fOW8MimUI4PpD/fZBhJfeioZVy9TUpM4UY7KjQNVZFlqwJ0UdzRDzkycB997HEq1BQ==} engines: {node: '>=20'} + data-view-buffer@1.0.2: + resolution: {integrity: sha512-EmKO5V3OLXh1rtK2wgXRansaK1/mtVdTUEiEI0W8RkvgT05kfxaH29PliLnpLP73yYO6142Q72QNa8Wx/A5CqQ==} + engines: {node: '>= 0.4'} + + data-view-byte-length@1.0.2: + resolution: {integrity: sha512-tuhGbE6CfTM9+5ANGf+oQb72Ky/0+s3xKUpHvShfiz2RxMFgFPjsXuRLBVMtvMs15awe45SRb83D6wH4ew6wlQ==} + engines: {node: '>= 0.4'} + + data-view-byte-offset@1.0.1: + resolution: {integrity: sha512-BS8PfmtDGnrgYdOonGZQdLZslWIeCGFP9tpan0hi1Co2Zr2NKADsvGYA8XxuG/4UWgJ6Cjtv+YJnB6MM69QGlQ==} + engines: {node: '>= 0.4'} + dataloader@2.2.2: resolution: {integrity: sha512-8YnDaaf7N3k/q5HnTJVuzSyLETjoZjVmHc4AeKAzOvKHEFQKcn64OKBfzHYtE9zGjctNM7V9I0MfnUVLpi7M5g==} @@ -9279,10 +9439,6 @@ packages: resolution: {integrity: sha512-N+MeXYoqr3pOgn8xfyRPREN7gHakLYjhsHhWGT3fWAiL4IkAt0iDw14QiiEm2bE30c5XX5q0FtAA3CK5f9/BUg==} engines: {node: '>=12'} - define-properties@1.2.0: - resolution: {integrity: sha512-xvqAVKGfT1+UAvPwKTVw/njhdQ8ZhXK4lI0bCIuCMrp2up9nPnaDftrLtmpTazqd1o+UY4zgzU+avtMbDP+ldA==} - engines: {node: '>= 0.4'} - define-properties@1.2.1: resolution: {integrity: sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg==} engines: {node: '>= 0.4'} @@ -9614,6 +9770,10 @@ packages: resolution: {integrity: sha512-ioRRcXMO6OFyRpyzV3kE1IIBd4WG5/kltnzdxSCqoP8CMGs/Li+M1uF5o7lOkZVFjDs+NLesthnF66Pg/0q0Lw==} engines: {node: '>= 0.4'} + es-abstract@1.24.2: + resolution: {integrity: sha512-2FpH9Q5i2RRwyEP1AylXe6nYLR5OhaJTZwmlcP0dL/+JCbgg7yyEo/sEK6HeGZRf3dFpWwThaRHVApXSkW3xeg==} + engines: {node: '>= 0.4'} + es-define-property@1.0.1: resolution: {integrity: sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==} engines: {node: '>= 0.4'} @@ -9625,6 +9785,10 @@ packages: es-get-iterator@1.1.3: resolution: {integrity: sha512-sPZmqHBe6JIiTfN5q2pEi//TwxmAFHwj/XEuYjTuse78i8KxaqMTTzxPoFKuzRpDpTJ+0NAbpfenkmH2rePtuw==} + es-map@1.0.6: + resolution: {integrity: sha512-JWn54TeYJe93WHhduTh9MUqEkjhbCjU8vqq1q9FyCrOle/utr1i8PmzK2vXnP6BeLsBLvb1zV4fSkpVnT4LW1A==} + engines: {node: '>= 0.4'} + es-module-lexer@1.7.0: resolution: {integrity: sha512-jEQoCwk8hyb2AZziIOLhDqpm5+2ww5uIE6lkO/6jcOCusfk6LhMHpXXfBLXTZ7Ydyt0j4VoUQv6uGNYbdW+kBA==} @@ -9636,6 +9800,14 @@ packages: resolution: {integrity: sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==} engines: {node: '>= 0.4'} + es-set@1.1.2: + resolution: {integrity: sha512-tGLC1yArXhXwZTm3D6xbu1JL4S3cUtRRggbFWHhqTxpPc975fmcLL1VB0QOnAY8q5TBdul7YTjfEOT2VpUGcCg==} + engines: {node: '>= 0.4'} + + es-set@2.0.1: + resolution: {integrity: sha512-w2EDjbgK6Xl23Bxob5Jgrcd+x7e51HxGssmP9GYZ0NbNLhtg9mHiVY9RxO7UsHHn0v10nt5cq2iFJ4GzibAP1Q==} + engines: {node: '>= 0.4'} + es-shim-unscopables@1.0.0: resolution: {integrity: sha512-Jm6GPcCdC30eMLbZ2x8z2WuRwAws3zTBBKuusffYVUrNj/GVSUAZ+xKMaUpfNDR5IbyNA5LJbaecoUVbmUcB1w==} @@ -9643,6 +9815,10 @@ packages: resolution: {integrity: sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==} engines: {node: '>= 0.4'} + es-to-primitive@1.3.0: + resolution: {integrity: sha512-w+5mJ3GuFL+NjVtJlvydShqE1eN3h3PbI7/5LAsYJP/2qtuMXjfL2LpHSRqo4b4eSF5K/DH1JXKUAHSB2UW50g==} + engines: {node: '>= 0.4'} + esbuild-plugin-polyfill-node@0.3.0: resolution: {integrity: sha512-SHG6CKUfWfYyYXGpW143NEZtcVVn8S/WHcEOxk62LuDXnY4Zpmc+WmxJKN6GMTgTClXJXhEM5KQlxKY6YjbucQ==} peerDependencies: @@ -9668,6 +9844,11 @@ packages: engines: {node: '>=12'} hasBin: true + esbuild@0.24.2: + resolution: {integrity: sha512-+9egpBW8I3CD5XPe0n6BfT5fxLzxrlDzqydF3aviG+9ni1lDC/OvMHcxqEFV0+LANZG5R1bFMWfUrjVsdwxJvA==} + engines: {node: '>=18'} + hasBin: true + esbuild@0.25.0: resolution: {integrity: sha512-BXq5mqc8ltbaN34cDqWuYKyNhX8D/Z0J1xdtdQ8UcIIIyJyz+ZMKUt58tF3SrZ85jcfN/PZYhjR5uDQAYNVbuw==} engines: {node: '>=18'} @@ -10199,10 +10380,6 @@ packages: resolution: {integrity: sha512-dKx12eRCVIzqCxFGplyFKJMPvLEWgmNtUrpTiJIR5u97zEhRG8ySrtboPHZXx7daLxQVrl643cTzbab2tkQjxg==} engines: {node: '>= 0.4'} - foreground-child@3.1.1: - 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'} @@ -10296,6 +10473,10 @@ packages: resolution: {integrity: sha512-uN7m/BzVKQnCUF/iW8jYea67v++2u7m5UgENbHRtdDVclOUP+FMPlCNdmk0h/ysGyo2tavMJEDqJAkJdRa1vMA==} engines: {node: '>= 0.4'} + function.prototype.name@1.1.8: + resolution: {integrity: sha512-e5iwyodOHhbMr/yNrc7fDYG4qlbIvI5gajyzPnb5TCwyhjApznQh1BMFou9b30SevY43gCJKXycoCBjMbsuW0Q==} + engines: {node: '>= 0.4'} + functions-have-names@1.2.3: resolution: {integrity: sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==} @@ -10303,6 +10484,10 @@ packages: resolution: {integrity: sha512-14F4hBIxqKvD4Zz/XjDc3y94mNZN6pRv3U13Udo0lNLCWRBUsrMv2xwcF/y/Z5sV6+FQW+/ow68cHpm4sunt8Q==} engines: {node: '>=10'} + generator-function@2.0.1: + resolution: {integrity: sha512-SFdFmIJi+ybC0vjlHN0ZGVGHc3lgE0DxPAT0djjVg+kjOnSqclqmj0KQ7ykTOLP6YxoqOvuAODGdcHJn+43q3g==} + engines: {node: '>= 0.4'} + gensync@1.0.0-beta.2: resolution: {integrity: sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==} engines: {node: '>=6.9.0'} @@ -10347,6 +10532,10 @@ packages: resolution: {integrity: sha512-2EmdH1YvIQiZpltCNgkuiUnyukzxM/R6NDJX31Ke3BG1Nq5b0S2PhX59UKi9vZpPDQVdqn+1IcaAwnzTT5vCjw==} engines: {node: '>= 0.4'} + get-symbol-description@1.1.0: + resolution: {integrity: sha512-w9UMqWwJxHNOvoNzSJ2oPF5wvYcvP7jUvYzhp67yEhTi17ZDBBC1z9pTdGuzjD+EFIqLSYRweZjqfiPzQ06Ebg==} + engines: {node: '>= 0.4'} + get-tsconfig@4.10.1: resolution: {integrity: sha512-auHyJ4AgMz7vgS8Hp3N6HXSmlMdUyhSUrfBF16w153rxtLIEOE+HGqaBppczZvnHLqQJfiHotCYpNhl0lUROFQ==} @@ -10382,15 +10571,13 @@ packages: glob@10.4.5: resolution: {integrity: sha512-7Bv8RF0k6xjo7d4A/PxYLbUCfb6c+Vpd2/mB2yRDlew7Jb5hEXiCD9ibfO7wpk8i4sevK6DFny9h7EYbM3/sHg==} + deprecated: Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me hasBin: true glob@13.0.6: resolution: {integrity: sha512-Wjlyrolmm8uDpm/ogGyXZXb1Z+Ca2B8NbJwqBVg0axK9GbBeoS7yGV6vjXnYdGm6X53iehEuxxbyiKp8QmN4Vw==} engines: {node: 18 || 20 || >=22} - glob@7.1.6: - resolution: {integrity: sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==} - glob@7.1.7: resolution: {integrity: sha512-OvD9ENzPLbegENnYP5UUfJIirTg4+XwMWGaQfQTY0JenxNvvIKP3U3/tAQSPIu/lHxXYSZmpXlUHeqAIdKzBLQ==} @@ -10401,6 +10588,7 @@ packages: glob@9.3.5: resolution: {integrity: sha512-e1LleDykUz2Iu+MTYdkSsuWX8lvAjAcs0Xef0lNIu0S2wOAzuTxCJtcd9S3cijlwYF18EsU3rzb8jPVobxDh9Q==} engines: {node: '>=16 || 14 >=14.17'} + deprecated: Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me global-directory@4.0.1: resolution: {integrity: sha512-wHTUcDUoZ1H5/0iVqEudYW4/kAlN5cZ3j/bXn0Dpbizl9iaUVeWSHqiOjsgk6OW2bkLclbBjzewBz6weQ1zA2Q==} @@ -10418,6 +10606,10 @@ packages: resolution: {integrity: sha512-sFdI5LyBiNTHjRd7cGPWapiHWMOXKyuBNX/cWJ3NfzrZQVa8GI/8cofCl74AOVqq9W5kNmguTIzJ/1s2gyI9wA==} engines: {node: '>= 0.4'} + globalthis@1.0.4: + resolution: {integrity: sha512-DpLKbNU4WylpxJykQujfCcwYWiV/Jhm50Goo0wrVILAv5jOr9d+H+UR3PhSCD2rCCEIg0uc+G+muBTwD54JhDQ==} + engines: {node: '>= 0.4'} + globby@11.1.0: resolution: {integrity: sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==} engines: {node: '>=10'} @@ -10547,9 +10739,6 @@ packages: resolution: {integrity: sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==} engines: {node: '>=8'} - has-property-descriptors@1.0.0: - resolution: {integrity: sha512-62DVLZGoiEBDHQyqG4w9xCuZ7eJEwNmJRWw2VY84Oedb7WFcA27fiEVe8oUQx9hAUJ4ekurquucTGwsyO1XGdQ==} - has-property-descriptors@1.0.2: resolution: {integrity: sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==} @@ -10557,6 +10746,10 @@ packages: resolution: {integrity: sha512-7qE+iP+O+bgF9clE5+UoBFzE65mlBiVj3tKCrlNQ0Ogwm0BjpT/gK4SlLYDMybDh5I3TCTKnPPa0oMG7JDYrhg==} engines: {node: '>= 0.4'} + has-proto@1.2.0: + resolution: {integrity: sha512-KIL7eQPfHQRC8+XluaIw7BHUwwqL19bQn4hzNgdr+1wXoU0KKj6rufu47lhY7KbJR2C6T6+PfyN0Ea7wkSS+qQ==} + engines: {node: '>= 0.4'} + has-symbols@1.1.0: resolution: {integrity: sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==} engines: {node: '>= 0.4'} @@ -10876,12 +11069,24 @@ packages: is-array-buffer@3.0.2: resolution: {integrity: sha512-y+FyyR/w8vfIRq4eQcM1EYgSTnmHXPqaF+IgzgraytCFq5Xh8lllDVmAZolPJiZttZLeFSINPYMaEJ7/vWUa1w==} + is-array-buffer@3.0.5: + resolution: {integrity: sha512-DDfANUiiG2wC1qawP66qlTugJeL5HyzMpfr8lLK+jMQirGzNod0B12cFB/9q838Ru27sBwfw78/rdoU7RERz6A==} + engines: {node: '>= 0.4'} + is-arrayish@0.2.1: resolution: {integrity: sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==} + is-async-function@2.1.1: + resolution: {integrity: sha512-9dgM/cZBnNvjzaMYHVoxxfPj2QXt22Ev7SuuPrs+xav0ukGB0S6d4ydZdEiM48kLx5kDV+QBPrpVnFyefL8kkQ==} + engines: {node: '>= 0.4'} + is-bigint@1.0.4: resolution: {integrity: sha512-zB9CruMamjym81i2JZ3UMn54PKGsQzsJeo6xvN3HJJ4CAsQNB6iRutp2To77OfCNuoxspsIhzaPoO1zyCEhFOg==} + is-bigint@1.1.0: + resolution: {integrity: sha512-n4ZT37wG78iz03xPRKJrHTdZbe3IicyucEtdRsV5yglwc3GyUfbAfpSeD0FJ41NbUNSt5wbhqfp1fS+BgnvDFQ==} + engines: {node: '>= 0.4'} + is-binary-path@2.1.0: resolution: {integrity: sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==} engines: {node: '>=8'} @@ -10890,6 +11095,10 @@ packages: resolution: {integrity: sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA==} engines: {node: '>= 0.4'} + is-boolean-object@1.2.2: + resolution: {integrity: sha512-wa56o2/ElJMYqjCjGkXri7it5FbebW5usLw/nPmCMs5DeZ7eziSYZhSmPRn0txqeW4LnAmQQU7FgqLpsEFKM4A==} + engines: {node: '>= 0.4'} + is-builtin-module@3.2.1: resolution: {integrity: sha512-BSLE3HnV2syZ0FK0iMA/yUGplUeMmNz4AW5fnTunbCIqZi4vG3WjJT9FHMy5D69xmAYBHXQhJdALdpwVxV501A==} engines: {node: '>=6'} @@ -10908,10 +11117,18 @@ packages: resolution: {integrity: sha512-UfoeMA6fIJ8wTYFEUjelnaGI67v6+N7qXJEvQuIGa99l4xsCruSYOVSQ0uPANn4dAzm8lkYPaKLrrijLq7x23w==} engines: {node: '>= 0.4'} + is-data-view@1.0.2: + resolution: {integrity: sha512-RKtWF8pGmS87i2D6gqQu/l7EYRlVdfzemCJN/P3UOs//x1QE7mfhvzHIApBTRf7axvT6DMGwSwBXYCT0nfB9xw==} + engines: {node: '>= 0.4'} + is-date-object@1.0.5: resolution: {integrity: sha512-9YQaSxsAiSwcvS33MBk3wTCVnWK+HhF8VZR2jRxehM16QcVOdHqPn4VPHmRK4lSr38n9JriurInLcP90xsYNfQ==} engines: {node: '>= 0.4'} + is-date-object@1.1.0: + resolution: {integrity: sha512-PwwhEakHVKTdRNVOw+/Gyh0+MzlCl4R6qKvkhuvLtPMggI1WAHt9sOwZxQLSGpUaDnrdyDsomoRgNnCfKNSXXg==} + engines: {node: '>= 0.4'} + is-decimal@2.0.1: resolution: {integrity: sha512-AAB9hiomQs5DXWcRB1rqsxGUstbRroFOPPVAomNk/3XHR5JyEZChOyTWe2oayKnsSsr/kcGqF+z6yuH6HHpN0A==} @@ -10929,6 +11146,10 @@ packages: resolution: {integrity: sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==} engines: {node: '>=0.10.0'} + is-finalizationregistry@1.1.1: + resolution: {integrity: sha512-1pC6N8qWJbWoPtEjgcL2xyhQOP491EQjeUo3qTKcmV8YSDDJrOepfG8pcC7h/QgnQHYSv0mJ3Z/ZWxmatVrysg==} + engines: {node: '>= 0.4'} + is-fullwidth-code-point@3.0.0: resolution: {integrity: sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==} engines: {node: '>=8'} @@ -10937,6 +11158,10 @@ packages: resolution: {integrity: sha512-O4L094N2/dZ7xqVdrXhh9r1KODPJpFms8B5sGdJLPy664AgvXsreZUyCQQNItZRDlYug4xStLjNp/sz3HvBowQ==} engines: {node: '>=12'} + is-generator-function@1.1.2: + resolution: {integrity: sha512-upqt1SkGkODW9tsGNG5mtXTXtECizwtS2kA161M+gJPc1xdb/Ax629af6YrTwcOeQHbewrPNlE5Dx7kzvXTizA==} + engines: {node: '>= 0.4'} + is-glob@4.0.3: resolution: {integrity: sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==} engines: {node: '>=0.10.0'} @@ -10968,6 +11193,10 @@ packages: resolution: {integrity: sha512-dqJvarLawXsFbNDeJW7zAz8ItJ9cd28YufuuFzh0G8pNHjJMnY08Dv7sYX2uF5UpQOwieAeOExEYAWWfu7ZZUA==} engines: {node: '>= 0.4'} + is-negative-zero@2.0.3: + resolution: {integrity: sha512-5KoIu2Ngpyek75jXodFvnafB6DJgr3u8uuK0LEZJjrU19DrMD3EVERaR8sjz8CCGgpZvxPl9SuE1GMVPFHx1mw==} + engines: {node: '>= 0.4'} + is-network-error@1.1.0: resolution: {integrity: sha512-tUdRRAnhT+OtCZR/LxZelH/C7QtjtFrTu5tXCA8pl55eTUElUHT+GPYV8MBMBvea/j+NxQqVt3LbWMRir7Gx9g==} engines: {node: '>=16'} @@ -10979,6 +11208,10 @@ packages: resolution: {integrity: sha512-k1U0IRzLMo7ZlYIfzRu23Oh6MiIFasgpb9X76eqfFZAqwH44UI4KTBvBYIZ1dSL9ZzChTB9ShHfLkR4pdW5krQ==} engines: {node: '>= 0.4'} + is-number-object@1.1.1: + resolution: {integrity: sha512-lZhclumE1G6VYD8VHe35wFaIif+CTy5SJIi5+3y4psDgWu4wPDoBhF8NxUOinEc7pHgiTsT6MaBb92rKhhD+Xw==} + engines: {node: '>= 0.4'} + is-number@7.0.0: resolution: {integrity: sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==} engines: {node: '>=0.12.0'} @@ -11028,6 +11261,10 @@ packages: resolution: {integrity: sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==} engines: {node: '>= 0.4'} + is-regex@1.2.1: + resolution: {integrity: sha512-MjYsKHO5O7mCsmRGxWcLWheFqN9DJ/2TmngvjKXihe6efViPqc274+Fx/4fYj/r03+ESvBdTXK0V6tA3rgez1g==} + engines: {node: '>= 0.4'} + is-retry-allowed@2.2.0: resolution: {integrity: sha512-XVm7LOeLpTW4jV19QSH38vkswxoLud8sQ57YwJVTPWdiaI9I8keEhGFpBlslyVsgdQy4Opg8QOLb8YRgsyZiQg==} engines: {node: '>=10'} @@ -11039,6 +11276,10 @@ packages: is-shared-array-buffer@1.0.2: resolution: {integrity: sha512-sqN2UDu1/0y6uvXyStCOzyhAjCSlHceFoMKJW8W9EU9cvic/QdsZ0kEU93HEy3IUEFZIiH/3w+AH/UQbPHNdhA==} + is-shared-array-buffer@1.0.4: + resolution: {integrity: sha512-ISWac8drv4ZGfwKl5slpHG9OwPNty4jOWPRIhBpxOoD+hqITiwuipOQ2bNthAzwA3B4fIjO4Nln74N0S9byq8A==} + engines: {node: '>= 0.4'} + is-ssh@1.4.0: resolution: {integrity: sha512-x7+VxdxOdlV3CYpjvRLBv5Lo9OJerlYanjwFrPR9fuGPjCiNiCzFgAWpiLAohSbsnH4ZAys3SBh+hq5rJosxUQ==} @@ -11062,10 +11303,18 @@ packages: resolution: {integrity: sha512-tE2UXzivje6ofPW7l23cjDOMa09gb7xlAqG6jG5ej6uPV32TlWP3NKPigtaGeHNu9fohccRYvIiZMfOOnOYUtg==} engines: {node: '>= 0.4'} + is-string@1.1.1: + resolution: {integrity: sha512-BtEeSsoaQjlSPBemMQIrY1MY0uM6vnS1g5fmufYOtnxLGUZM2178PKbhsk7Ffv58IX+ZtcvoGwccYsh0PglkAA==} + engines: {node: '>= 0.4'} + is-symbol@1.0.4: resolution: {integrity: sha512-C/CPBqKWnvdcxqIARxyOh4v1UUEOCHpgDa0WYgpKDFMszcrPcffg5uhwSgPCLD2WWxmq6isisz87tzT01tuGhg==} engines: {node: '>= 0.4'} + is-symbol@1.1.1: + resolution: {integrity: sha512-9gGx6GTtCQM73BgmHQXfDmLtfjjTUDSyoxTCbp5WtoixAhfgsDirWIcVQ/IHpvI5Vgd5i/J5F7B9cN/WlVbC/w==} + engines: {node: '>= 0.4'} + is-text-path@2.0.0: resolution: {integrity: sha512-+oDTluR6WEjdXEJMnC2z6A4FRwFoYuvShVVEGsS7ewc0UTi2QtAKMDJuL4BDEVt+5T7MjFo12RP8ghOM75oKJw==} engines: {node: '>=8'} @@ -11074,6 +11323,10 @@ packages: resolution: {integrity: sha512-Z14TF2JNG8Lss5/HMqt0//T9JeHXttXy5pH/DBU4vi98ozO2btxzq9MwYDZYnKwU8nRsz/+GVFVRDq3DkVuSPg==} engines: {node: '>= 0.4'} + is-typed-array@1.1.15: + resolution: {integrity: sha512-p3EcsicXjit7SaskXHs1hA91QxgTw46Fv6EFKKGS5DRFLD8yKnohjF3hxoju94b/OcMZoQukzpPpBE9uLVKzgQ==} + engines: {node: '>= 0.4'} + is-unicode-supported@0.1.0: resolution: {integrity: sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw==} engines: {node: '>=10'} @@ -11093,6 +11346,10 @@ packages: is-weakref@1.0.2: resolution: {integrity: sha512-qctsuLZmIQ0+vSSMfoVvyFe2+GSEvnmZ2ezTup1SBse9+twCCeial6EEi3Nc2KFcf6+qz2FBPnjXsk8xhKSaPQ==} + is-weakref@1.1.1: + resolution: {integrity: sha512-6i9mGWSlqzNMEqpCp93KwRS1uUOodk2OJ6b+sq7ZPDSy2WuI5NFIxp/254TytR8ftefexkWn5xNiHUNpPOfSew==} + engines: {node: '>= 0.4'} + is-weakset@2.0.4: resolution: {integrity: sha512-mfcwb6IzQyOKTs84CQMrOwW4gQcaTOAWJ0zzJCl2WSPDrWk/OzDaImWFH3djXhb24g4eudZfLRozAvPGw4d9hQ==} engines: {node: '>= 0.4'} @@ -11143,6 +11400,12 @@ packages: resolution: {integrity: sha512-HGYWWS/ehqTV3xN10i23tkPkpH46MLCIMFNCaaKNavAXTF1RkqxawEPtnjnGZ6XKSInBKkiOA5BKS+aZiY3AvA==} engines: {node: '>=8'} + iterate-iterator@1.0.2: + resolution: {integrity: sha512-t91HubM4ZDQ70M9wqp+pcNpu8OyJ9UAtXntT/Bcsvp5tZMnz9vRa+IunKXeI8AnfZMTv0jNuVEmGeLSMjVvfPw==} + + iterate-value@1.0.2: + resolution: {integrity: sha512-A6fMAio4D2ot2r/TYzr4yUWrmwNdsN5xL7+HUiyACE4DXm+q8HtPcnFTp+NnW3k4N05tZ7FVYFFb2CR13NxyHQ==} + jackspeak@2.3.6: resolution: {integrity: sha512-N3yCS/NegsOBokc8GAdM8UcmfsKiSS8cipheD/nivzr700H+nsMOxJjQnvwOcRYVuFkdH0wGUvW2WbXGmrZGbQ==} engines: {node: '>=14'} @@ -12119,10 +12382,18 @@ packages: resolution: {integrity: sha512-1mxKf0e58bvyjSCtKYY4sRe9itRk3PJpquJOjeIkz885CczcI4IvJJDLPS72oowuSh+pBxUFROpX+TU++hxhZQ==} engines: {node: '>= 0.4'} + object.assign@4.1.7: + resolution: {integrity: sha512-nK28WOo+QIjBkDduTINE4JkF/UJJKyf2EJxvJKfblDpyg0Q+pkOHNTL0Qwy6NP6FhE/EnzV73BxxqcJaXY9anw==} + engines: {node: '>= 0.4'} + object.entries@1.1.6: resolution: {integrity: sha512-leTPzo4Zvg3pmbQ3rDK69Rl8GQvIqMWubrkxONG9/ojtFE2rD9fjMKfSI5BxW3osRH1m6VdzmqK8oAY9aT4x5w==} engines: {node: '>= 0.4'} + object.entries@1.1.9: + resolution: {integrity: sha512-8u/hfXFRBD1O0hPUjioLhoWFHRmt6tKA4/vZPyckBr18l1KE9uHrFaFaUi8MDRTpi4uak2goyPTSNJLXX2k2Hw==} + engines: {node: '>= 0.4'} + object.fromentries@2.0.6: resolution: {integrity: sha512-VciD13dswC4j1Xt5394WR4MzmAQmlgN72phd/riNp9vtD7tp4QQWJ0R4wvclXcafgcYK8veHRed2W6XeGBvcfg==} engines: {node: '>= 0.4'} @@ -12201,6 +12472,10 @@ packages: outvariant@1.4.2: resolution: {integrity: sha512-Ou3dJ6bA/UJ5GVHxah4LnqDwZRwAmWxrG3wtrHrbGnP4RnLCtA64A4F+ae7Y8ww660JaddSoArUR5HjipWSHAQ==} + own-keys@1.0.1: + resolution: {integrity: sha512-qFOyK5PjiWZd+QQIh+1jhdb9LpxTF0qs7Pm8o5QHYZ0M3vKqSqzsZaEB6oWlxZ+q2sJBMI/Ktgd2N5ZwQoRHfg==} + engines: {node: '>= 0.4'} + p-limit@2.3.0: resolution: {integrity: sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==} engines: {node: '>=6'} @@ -12518,8 +12793,8 @@ packages: peerDependencies: postcss: ^8.4.21 - postcss-load-config@4.0.1: - resolution: {integrity: sha512-vEJIc8RdiBRu3oRAI0ymerOn+7rPuMvRXslTvZUKZonDHFIczxztIyJ1urxM1x9JXEikvpWWTUUqal5j/8QgvA==} + postcss-load-config@4.0.2: + resolution: {integrity: sha512-bSVhyJGL00wMVoPUzAVAnbEoWyqRxkjv64tUl427SKnPrENtq6hJwUojroMz2VB+Q1edmi4IfrAPpami5VVgMQ==} engines: {node: '>= 14'} peerDependencies: postcss: '>=8.0.9' @@ -12530,16 +12805,22 @@ packages: ts-node: optional: true - postcss-load-config@4.0.2: - resolution: {integrity: sha512-bSVhyJGL00wMVoPUzAVAnbEoWyqRxkjv64tUl427SKnPrENtq6hJwUojroMz2VB+Q1edmi4IfrAPpami5VVgMQ==} - engines: {node: '>= 14'} + postcss-load-config@6.0.1: + resolution: {integrity: sha512-oPtTM4oerL+UXmx+93ytZVN82RrlY/wPUV8IeDxFrzIjXOLF1pN+EmKPLbubvKHT2HC20xXsCAH2Z+CKV6Oz/g==} + engines: {node: '>= 18'} peerDependencies: + jiti: '>=1.21.0' postcss: '>=8.0.9' - ts-node: '>=9.0.0' + tsx: ^4.8.1 + yaml: ^2.4.2 peerDependenciesMeta: + jiti: + optional: true postcss: optional: true - ts-node: + tsx: + optional: true + yaml: optional: true postcss-nested@6.2.0: @@ -13169,6 +13450,10 @@ packages: resolution: {integrity: sha512-DJnGAeenTdpMEH6uAJRK/uiyEIH9WVsUmoLwzudwGJUwZPp80PDBWPHXSAGNPwNvIXAbe7MSUB1zQFugFml66A==} engines: {node: '>=4'} + reflect.getprototypeof@1.0.10: + resolution: {integrity: sha512-00o4I+DVrefhv+nX0ulyi3biSHCPDe+yLv5o/p6d/UVlirijB8E16FtfwSAi4g3tcqrQ4lRAqQSoFEZJehYEcw==} + engines: {node: '>= 0.4'} + regexp-tree@0.1.27: resolution: {integrity: sha512-iETxpjK6YoRWJG5o6hXLwvjYAoW+FEZn9os0PD/b6AP6xQwsa/Y7lCVgIixBbUPMfhu+i2LtdeAqVTgGlQarfA==} hasBin: true @@ -13181,6 +13466,10 @@ packages: resolution: {integrity: sha512-sy6TXMN+hnP/wMy+ISxg3krXx7BAtWVO4UouuCN/ziM9UEne0euamVNafDfvC83bRNr95y0V5iijeDQFUNpvrg==} engines: {node: '>= 0.4'} + regexp.prototype.flags@1.5.4: + resolution: {integrity: sha512-dYqgNSZbDwkaJ2ceRd9ojCGjBq+mOm9LmtXnAnEGyHhN/5R7iDW2TRw3h+o/jCFxus3P2LfWIIiwowAjANm7IA==} + engines: {node: '>= 0.4'} + regexpp@3.2.0: resolution: {integrity: sha512-pq2bWo9mVD43nbts2wGv17XLiNLya+GklZ8kaDLV2Z08gDCsGpnKn9BFMepvWuHCbyVvY7J5o5+BVvoQbmlJLg==} engines: {node: '>=8'} @@ -13343,15 +13632,27 @@ packages: resolution: {integrity: sha512-9dVEFruWIsnie89yym+xWTAYASdpw3CJV7Li/6zBewGf9z2i1j31rP6jnY0pHEO4QZh6N0K11bFjWmdR8UGdPQ==} engines: {node: '>=0.4'} + safe-array-concat@1.1.4: + resolution: {integrity: sha512-wtZlHyOje6OZTGqAoaDKxFkgRtkF9CnHAVnCHKfuj200wAgL+bSJhdsCD2l0Qx/2ekEXjPWcyKkfGb5CPboslg==} + engines: {node: '>=0.4'} + safe-buffer@5.1.2: resolution: {integrity: sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==} safe-buffer@5.2.1: resolution: {integrity: sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==} + safe-push-apply@1.0.0: + resolution: {integrity: sha512-iKE9w/Z7xCzUMIZqdBsp6pEQvwuEebH4vdpjcDWnyzaI6yl6O9FHvVpmGelvEHNsoY6wGblkxR6Zty/h00WiSA==} + engines: {node: '>= 0.4'} + safe-regex-test@1.0.0: resolution: {integrity: sha512-JBUUzyOgEwXQY1NuPtvcj/qcBDbDmEvWufhlnXZIm75DEHp+afM1r1ujJpJsV/gSM4t59tpDyPi1sd6ZaPFfsA==} + safe-regex-test@1.1.0: + resolution: {integrity: sha512-x/+Cz4YrimQxQccJf5mKEbIa1NzeCRNI5Ecl/ekmlYaampdNLPalVyIcCZNNH3MvmqBugV5TMYZXv0ljslUlaw==} + engines: {node: '>= 0.4'} + safe-regex2@2.0.0: resolution: {integrity: sha512-PaUSFsUaNNuKwkBijoAPHAK6/eM6VirvyPWlZ7BAQy4D+hCvh4B6lIG+nPdhbFfIbP+gTGBcrdsOaUs0F+ZBOQ==} @@ -13438,10 +13739,38 @@ packages: resolution: {integrity: sha512-tMNCiqYVkXIZgc2Hnoy2IvC/f8ezc5koaRFkCjrpWzGpCd3qbZXPzVy9MAZzK1ch/X0jvSkojys3oqJN0qCmdA==} engines: {node: '>= 0.4'} + set-function-name@2.0.2: + resolution: {integrity: sha512-7PGFlmtwsEADb0WYyvCMa1t+yke6daIG4Wirafur5kcf+MhUnPms1UeR0CKQdTZD81yESwMHbtn+TR+dMviakQ==} + engines: {node: '>= 0.4'} + + set-proto@1.0.0: + resolution: {integrity: sha512-RJRdvCo6IAnPdsvP/7m6bsQqNnn1FCBX5ZNtFL98MmFF/4xAIJTIg1YbHW5DC2W5SKZanrC6i4HsJqlajw/dZw==} + engines: {node: '>= 0.4'} + set-value@4.1.0: resolution: {integrity: sha512-zTEg4HL0RwVrqcWs3ztF+x1vkxfm0lP+MQQFPiMJTKVceBwEV0A569Ou8l9IYQG8jOZdMVI1hGsc0tmeD2o/Lw==} engines: {node: '>=11.0'} + set.prototype.difference@1.1.7: + resolution: {integrity: sha512-u6NOoxMovg0cqKd9wa5JoZ9F/5SF5wCdO0w3zKNjKps3VJ594mCQJDGXYtKaJUpwlIZFiZGEbtsNzkWlcr6GLA==} + engines: {node: '>= 0.4'} + + set.prototype.intersection@1.1.8: + resolution: {integrity: sha512-82gd4NY6itPLCy66L0zxLN0k0IfKRjfGwrQKxCdyedmy1eNt1AkfG00EqAQd7XBdtG7AwLb+uJ8J5HxI6RJ1Ww==} + engines: {node: '>= 0.4'} + + set.prototype.isdisjointfrom@1.1.5: + resolution: {integrity: sha512-QvZwq9JSevhYdoSiXjuLJ6a4W4EAxZZWoYR6qNeWmHPvDhraDICB/mj/J0U6X97UMA92QvemlWwoq0HxqgIu/g==} + engines: {node: '>= 0.4'} + + set.prototype.issubsetof@1.1.4: + resolution: {integrity: sha512-m7paZD4cLQAXj5TLpdvpyX6gQ62onRV65zxjUH4qpZX5BouTBcL89X8BQ3QDhcFKwO2eZql8yTtNKsEmCOb1Tw==} + engines: {node: '>= 0.4'} + + set.prototype.issupersetof@1.1.3: + resolution: {integrity: sha512-BAIJyClr9rkdackK2mX6A/A/AMdb0lU+hrBQ7c1W/gISRsiYaG1SE0UScscwFklNhUif+aFypzWSckTIkDDYKA==} + engines: {node: '>= 0.4'} + setprototypeof@1.2.0: resolution: {integrity: sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==} @@ -13578,6 +13907,7 @@ packages: source-map@0.8.0-beta.0: resolution: {integrity: sha512-2ymg6oRBpebeZi9UUNsgQ89bhx01TcTkmNTGnNO88imTmbSgy4nfujrgVEFKWpMTEGA11EDkTt7mqObTPdigIA==} engines: {node: '>= 8'} + deprecated: The work that was done in this beta branch won't be included in future versions space-separated-tokens@2.0.2: resolution: {integrity: sha512-PEGlAwrG8yXGXRjW32fGbg66JAlOAwbObuqVoJpv/mRgoWDQfgH1wDPvtzWyUSNAXBGSk8h755YDbbcEy3SH2Q==} @@ -13684,6 +14014,10 @@ packages: string.prototype.matchall@4.0.8: resolution: {integrity: sha512-6zOCOcJ+RJAQshcTvXPHoxoQGONa3e/Lqx90wUA+wEzX78sg5Bo+1tQo4N0pohS0erG9qtCqJDjNCQBjeWVxyg==} + string.prototype.trim@1.2.10: + resolution: {integrity: sha512-Rs66F0P/1kedk5lyYyH9uBzuiI/kNRmwJAR9quK6VOtIpZ2G+hMZd+HQbbv25MgCA6gEffoMZYxlTod4WcdrKA==} + engines: {node: '>= 0.4'} + string.prototype.trim@1.2.7: resolution: {integrity: sha512-p6TmeT1T3411M8Cgg9wBTMRtY2q9+PNy9EV1i2lIXUN/btt763oIfxwN3RR8VU6wHX8j/1CFy0L+YuThm6bgOg==} engines: {node: '>= 0.4'} @@ -13691,9 +14025,17 @@ packages: string.prototype.trimend@1.0.6: resolution: {integrity: sha512-JySq+4mrPf9EsDBEDYMOb/lM7XQLulwg5R/m1r0PXEFqrV0qHvl58sdTilSXtKOflCsK2E8jxf+GKC0T07RWwQ==} + string.prototype.trimend@1.0.9: + resolution: {integrity: sha512-G7Ok5C6E/j4SGfyLCloXTrngQIQU3PWtXGst3yM7Bea9FRURf1S42ZHlZZtsNque2FN2PoUhfZXYLNWwEr4dLQ==} + engines: {node: '>= 0.4'} + string.prototype.trimstart@1.0.6: resolution: {integrity: sha512-omqjMDaY92pbn5HOX7f9IccLA+U1tA9GvtU4JrodiXFfYB7jPzzHpRzpglLAjtUV6bB557zwClJezTqnAiYnQA==} + string.prototype.trimstart@1.0.8: + resolution: {integrity: sha512-UXSH262CSZY1tfu3G3Secr6uGLCFVPMhIqHjlgCUtCCcgihYc/xKs9djMTMUOb2j1mVSeU8EU6NWc/iQKU6Gfg==} + engines: {node: '>= 0.4'} + string_decoder@1.1.1: resolution: {integrity: sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==} @@ -13777,11 +14119,6 @@ packages: stylis@4.2.0: resolution: {integrity: sha512-Orov6g6BB1sDfYgzWfTHDOxamtX1bE/zo104Dh9e6fqJ3PooipYyfJ0pUmrZO2wAvO8YbEyeFrkV91XTsGMSrw==} - sucrase@3.34.0: - resolution: {integrity: sha512-70/LQEZ07TEcxiU2dz51FKaE6hCTWC6vr7FOk3Gr0U60C3shtAN+H+BFr9XlYe5xqf3RA8nrc+VIwzCfnxuXJw==} - engines: {node: '>=8'} - hasBin: true - sucrase@3.35.0: resolution: {integrity: sha512-8EbVDiu9iN/nESwxeSxDKe0dunta1GOlHufmSSXxMD2z2/tMZpDMpvXQGsc+ajGo8y2uYUmixaSRUc/QPoQ0GA==} engines: {node: '>=16 || 14 >=14.17'} @@ -14067,8 +14404,8 @@ packages: tslib@2.8.1: resolution: {integrity: sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==} - tsup@8.0.1: - resolution: {integrity: sha512-hvW7gUSG96j53ZTSlT4j/KL0q1Q2l6TqGBFc6/mu/L46IoNWqLLUzLRLP1R8Q7xrJTmkDxxDoojV5uCVs1sVOg==} + tsup@8.3.5: + resolution: {integrity: sha512-Tunf6r6m6tnZsG9GYWndg0z8dEV7fD733VBFzFJ5Vcm1FtlXB8xBD/rtrBi2a3YKEV7hHtxiZtW5EAVADoe1pA==} engines: {node: '>=18'} hasBin: true peerDependencies: @@ -14149,24 +14486,40 @@ packages: resolution: {integrity: sha512-Y8KTSIglk9OZEr8zywiIHG/kmQ7KWyjseXs1CbSo8vC42w7hg2HgYTxSWwP0+is7bWDc1H+Fo026CpHFwm8tkw==} engines: {node: '>= 0.4'} + typed-array-buffer@1.0.3: + resolution: {integrity: sha512-nAYYwfY3qnzX30IkA6AQZjVbtK6duGontcQm1WSG1MD94YLqK0515GNApXkoxKOWMusVssAHWLh9SeaoefYFGw==} + engines: {node: '>= 0.4'} + typed-array-byte-length@1.0.0: resolution: {integrity: sha512-Or/+kvLxNpeQ9DtSydonMxCx+9ZXOswtwJn17SNLvhptaXYDJvkFFP5zbfU/uLmvnBJlI4yrnXRxpdWH/M5tNA==} engines: {node: '>= 0.4'} + typed-array-byte-length@1.0.3: + resolution: {integrity: sha512-BaXgOuIxz8n8pIq3e7Atg/7s+DpiYrxn4vdot3w9KbnBhcRQq6o3xemQdIfynqSeXeDrF32x+WvfzmOjPiY9lg==} + engines: {node: '>= 0.4'} + typed-array-byte-offset@1.0.0: resolution: {integrity: sha512-RD97prjEt9EL8YgAgpOkf3O4IF9lhJFr9g0htQkm0rchFp/Vx7LW5Q8fSXXub7BXAODyUQohRMyOc3faCPd0hg==} engines: {node: '>= 0.4'} + typed-array-byte-offset@1.0.4: + resolution: {integrity: sha512-bTlAFB/FBYMcuX81gbL4OcpH5PmlFHqlCCpAl8AlEzMz5k53oNDvN8p1PNOWLEmI2x4orp3raOFB51tv9X+MFQ==} + engines: {node: '>= 0.4'} + typed-array-length@1.0.4: resolution: {integrity: sha512-KjZypGq+I/H7HI5HlOoGHkWUUGq+Q0TPhQurLbyrVrvnKTBgzLhIJ7j6J/XTQOi0d1RjyZ0wdas8bKs2p0x3Ng==} + typed-array-length@1.0.7: + resolution: {integrity: sha512-3KS2b+kL7fsuk/eJZ7EQdnEmQoaho/r6KUef7hxvltNA5DR8NAUM+8wJMbJyZ4G9/7i3v5zPBIMN5aybAh2/Jg==} + engines: {node: '>= 0.4'} + typescript@4.5.2: resolution: {integrity: sha512-5BlMof9H1yGt0P8/WF+wPNw6GfctgGjXp5hkblpyT+8rkASSmkUKMXrxR0Xg8ThVCi/JnHQiKXeBaEwCeQwMFw==} engines: {node: '>=4.2.0'} hasBin: true - typescript@5.5.2: - resolution: {integrity: sha512-NcRtPEOsPFFWjobJEtfihkLCZCXZt/os3zf8nTxjVH3RvTSxjrCamJpbExGvYOF+tFHc3pA65qpdwPbzjohhew==} + typescript@5.6.2: + resolution: {integrity: sha512-NW8ByodCSNCwZeghjN3o+JX5OFH0Ojg6sadjEKY4huZ52TqbJTJnDo5+Tw98lSy63NZvi4n+ez5m2u5d4PkZyw==} engines: {node: '>=14.17'} hasBin: true @@ -14193,6 +14546,10 @@ packages: unbox-primitive@1.0.2: resolution: {integrity: sha512-61pPlCD9h51VoreyJ0BReideM3MDKMKnh6+V9L08331ipq6Q8OFXZYiqP6n/tbHx4s5I9uRhcye6BrbkizkBDw==} + unbox-primitive@1.1.0: + resolution: {integrity: sha512-nWJ91DjeOkej/TA8pXQ3myruKpKEYgqvpw9lz4OPHj/NWFNluYrjbz9j01CJ8yKQd2g4jFoOkINCTW2I5LEEyw==} + engines: {node: '>= 0.4'} + unbzip2-stream@1.4.3: resolution: {integrity: sha512-mlExGW4w71ebDJviH16lQLtZS32VKqsSfk80GCfUlwT/4/hNRFsoscrF/c++9xinkMzECL1uL9DDwXqFWkruPg==} @@ -14617,6 +14974,14 @@ packages: which-boxed-primitive@1.0.2: resolution: {integrity: sha512-bwZdv0AKLpplFY2KZRX6TvyuN7ojjr7lwkg6ml0roIy9YeuSr7JS372qlNW18UQYzgYK9ziGcerWqZOmEn9VNg==} + which-boxed-primitive@1.1.1: + resolution: {integrity: sha512-TbX3mj8n0odCBFVlY8AxkqcHASw3L60jIuF8jFP78az3C2YhmGvqbHBpAjTRH2/xqYunrJ9g1jSyjCjpoWzIAA==} + engines: {node: '>= 0.4'} + + which-builtin-type@1.2.1: + resolution: {integrity: sha512-6iBczoX+kDQ7a3+YJBnh3T+KZRxM/iYNPXicqk66/Qfm1b93iu+yOImkg0zHbj5LNOcNv1TEADiZ0xa34B4q6Q==} + engines: {node: '>= 0.4'} + which-collection@1.0.2: resolution: {integrity: sha512-K4jVyjnBdgvc86Y6BkaLZEN933SwYOuBFkdmBu9ZfkcAbdVbpITnDmjvZ/aQjRXQrv5EPkTnD1s39GiiqbngCw==} engines: {node: '>= 0.4'} @@ -14782,10 +15147,6 @@ packages: resolution: {integrity: sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==} engines: {node: '>= 6'} - yaml@2.3.1: - resolution: {integrity: sha512-2eHWfjaoXgTBC2jNM1LRef62VQa0umtvRiDSk6HSzW7RvS5YtkabJrwYLLEKWBc8a5U2PTSCs+dJjUTJdlHsWQ==} - engines: {node: '>= 14'} - yaml@2.5.1: resolution: {integrity: sha512-bLQOjaX/ADgQ20isPJRvF0iRUHIxVhYvr53Of7wGcWlO2jvtUlH5m87DsmulFVxRpNLOnI4tB6p/oh8D7kpn9Q==} engines: {node: '>= 14'} @@ -15487,7 +15848,7 @@ snapshots: dependencies: '@babel/helper-validator-identifier': 7.28.5 js-tokens: 4.0.0 - picocolors: 1.1.1 + picocolors: 1.0.0 '@babel/code-frame@7.27.1': dependencies: @@ -15520,7 +15881,7 @@ snapshots: '@babel/generator@7.23.6': dependencies: '@babel/types': 7.29.0 - '@jridgewell/gen-mapping': 0.3.3 + '@jridgewell/gen-mapping': 0.3.13 '@jridgewell/trace-mapping': 0.3.31 jsesc: 2.5.2 @@ -16551,11 +16912,11 @@ snapshots: '@colors/colors@1.5.0': optional: true - '@commitlint/cli@19.8.0(@types/node@22.17.0)(typescript@5.5.2)': + '@commitlint/cli@19.8.0(@types/node@22.17.0)(typescript@5.6.2)': dependencies: '@commitlint/format': 19.8.1 '@commitlint/lint': 19.8.1 - '@commitlint/load': 19.8.1(@types/node@22.17.0)(typescript@5.5.2) + '@commitlint/load': 19.8.1(@types/node@22.17.0)(typescript@5.6.2) '@commitlint/read': 19.8.1 '@commitlint/types': 19.8.1 tinyexec: 0.3.2 @@ -16602,15 +16963,15 @@ snapshots: '@commitlint/rules': 19.8.1 '@commitlint/types': 19.8.1 - '@commitlint/load@19.8.1(@types/node@22.17.0)(typescript@5.5.2)': + '@commitlint/load@19.8.1(@types/node@22.17.0)(typescript@5.6.2)': dependencies: '@commitlint/config-validator': 19.8.1 '@commitlint/execute-rule': 19.8.1 '@commitlint/resolve-extends': 19.8.1 '@commitlint/types': 19.8.1 chalk: 5.6.2 - cosmiconfig: 9.0.0(typescript@5.5.2) - cosmiconfig-typescript-loader: 6.1.0(@types/node@22.17.0)(cosmiconfig@9.0.0(typescript@5.5.2))(typescript@5.5.2) + cosmiconfig: 9.0.0(typescript@5.6.2) + cosmiconfig-typescript-loader: 6.1.0(@types/node@22.17.0)(cosmiconfig@9.0.0(typescript@5.6.2))(typescript@5.6.2) lodash.isplainobject: 4.0.6 lodash.merge: 4.6.2 lodash.uniq: 4.5.0 @@ -16892,6 +17253,9 @@ snapshots: '@esbuild/aix-ppc64@0.21.5': optional: true + '@esbuild/aix-ppc64@0.24.2': + optional: true + '@esbuild/aix-ppc64@0.25.0': optional: true @@ -16910,6 +17274,9 @@ snapshots: '@esbuild/android-arm64@0.21.5': optional: true + '@esbuild/android-arm64@0.24.2': + optional: true + '@esbuild/android-arm64@0.25.0': optional: true @@ -16928,6 +17295,9 @@ snapshots: '@esbuild/android-arm@0.21.5': optional: true + '@esbuild/android-arm@0.24.2': + optional: true + '@esbuild/android-arm@0.25.0': optional: true @@ -16946,6 +17316,9 @@ snapshots: '@esbuild/android-x64@0.21.5': optional: true + '@esbuild/android-x64@0.24.2': + optional: true + '@esbuild/android-x64@0.25.0': optional: true @@ -16964,6 +17337,9 @@ snapshots: '@esbuild/darwin-arm64@0.21.5': optional: true + '@esbuild/darwin-arm64@0.24.2': + optional: true + '@esbuild/darwin-arm64@0.25.0': optional: true @@ -16982,6 +17358,9 @@ snapshots: '@esbuild/darwin-x64@0.21.5': optional: true + '@esbuild/darwin-x64@0.24.2': + optional: true + '@esbuild/darwin-x64@0.25.0': optional: true @@ -17000,6 +17379,9 @@ snapshots: '@esbuild/freebsd-arm64@0.21.5': optional: true + '@esbuild/freebsd-arm64@0.24.2': + optional: true + '@esbuild/freebsd-arm64@0.25.0': optional: true @@ -17018,6 +17400,9 @@ snapshots: '@esbuild/freebsd-x64@0.21.5': optional: true + '@esbuild/freebsd-x64@0.24.2': + optional: true + '@esbuild/freebsd-x64@0.25.0': optional: true @@ -17036,6 +17421,9 @@ snapshots: '@esbuild/linux-arm64@0.21.5': optional: true + '@esbuild/linux-arm64@0.24.2': + optional: true + '@esbuild/linux-arm64@0.25.0': optional: true @@ -17054,6 +17442,9 @@ snapshots: '@esbuild/linux-arm@0.21.5': optional: true + '@esbuild/linux-arm@0.24.2': + optional: true + '@esbuild/linux-arm@0.25.0': optional: true @@ -17072,6 +17463,9 @@ snapshots: '@esbuild/linux-ia32@0.21.5': optional: true + '@esbuild/linux-ia32@0.24.2': + optional: true + '@esbuild/linux-ia32@0.25.0': optional: true @@ -17090,6 +17484,9 @@ snapshots: '@esbuild/linux-loong64@0.21.5': optional: true + '@esbuild/linux-loong64@0.24.2': + optional: true + '@esbuild/linux-loong64@0.25.0': optional: true @@ -17108,6 +17505,9 @@ snapshots: '@esbuild/linux-mips64el@0.21.5': optional: true + '@esbuild/linux-mips64el@0.24.2': + optional: true + '@esbuild/linux-mips64el@0.25.0': optional: true @@ -17126,6 +17526,9 @@ snapshots: '@esbuild/linux-ppc64@0.21.5': optional: true + '@esbuild/linux-ppc64@0.24.2': + optional: true + '@esbuild/linux-ppc64@0.25.0': optional: true @@ -17144,6 +17547,9 @@ snapshots: '@esbuild/linux-riscv64@0.21.5': optional: true + '@esbuild/linux-riscv64@0.24.2': + optional: true + '@esbuild/linux-riscv64@0.25.0': optional: true @@ -17162,6 +17568,9 @@ snapshots: '@esbuild/linux-s390x@0.21.5': optional: true + '@esbuild/linux-s390x@0.24.2': + optional: true + '@esbuild/linux-s390x@0.25.0': optional: true @@ -17180,6 +17589,9 @@ snapshots: '@esbuild/linux-x64@0.21.5': optional: true + '@esbuild/linux-x64@0.24.2': + optional: true + '@esbuild/linux-x64@0.25.0': optional: true @@ -17189,6 +17601,9 @@ snapshots: '@esbuild/linux-x64@0.25.9': optional: true + '@esbuild/netbsd-arm64@0.24.2': + optional: true + '@esbuild/netbsd-arm64@0.25.0': optional: true @@ -17207,6 +17622,9 @@ snapshots: '@esbuild/netbsd-x64@0.21.5': optional: true + '@esbuild/netbsd-x64@0.24.2': + optional: true + '@esbuild/netbsd-x64@0.25.0': optional: true @@ -17216,6 +17634,9 @@ snapshots: '@esbuild/netbsd-x64@0.25.9': optional: true + '@esbuild/openbsd-arm64@0.24.2': + optional: true + '@esbuild/openbsd-arm64@0.25.0': optional: true @@ -17234,6 +17655,9 @@ snapshots: '@esbuild/openbsd-x64@0.21.5': optional: true + '@esbuild/openbsd-x64@0.24.2': + optional: true + '@esbuild/openbsd-x64@0.25.0': optional: true @@ -17255,6 +17679,9 @@ snapshots: '@esbuild/sunos-x64@0.21.5': optional: true + '@esbuild/sunos-x64@0.24.2': + optional: true + '@esbuild/sunos-x64@0.25.0': optional: true @@ -17273,6 +17700,9 @@ snapshots: '@esbuild/win32-arm64@0.21.5': optional: true + '@esbuild/win32-arm64@0.24.2': + optional: true + '@esbuild/win32-arm64@0.25.0': optional: true @@ -17291,6 +17721,9 @@ snapshots: '@esbuild/win32-ia32@0.21.5': optional: true + '@esbuild/win32-ia32@0.24.2': + optional: true + '@esbuild/win32-ia32@0.25.0': optional: true @@ -17309,6 +17742,9 @@ snapshots: '@esbuild/win32-x64@0.21.5': optional: true + '@esbuild/win32-x64@0.24.2': + optional: true + '@esbuild/win32-x64@0.25.0': optional: true @@ -17863,7 +18299,7 @@ snapshots: run-async: 3.0.0 signal-exit: 4.1.0 strip-ansi: 6.0.1 - wrap-ansi: 6.2.0 + wrap-ansi: 8.1.0 '@inquirer/expand@4.0.23(@types/node@22.17.0)': dependencies: @@ -17922,24 +18358,8 @@ snapshots: '@jridgewell/sourcemap-codec': 1.5.5 '@jridgewell/trace-mapping': 0.3.31 - '@jridgewell/gen-mapping@0.3.3': - dependencies: - '@jridgewell/set-array': 1.1.2 - '@jridgewell/sourcemap-codec': 1.4.15 - '@jridgewell/trace-mapping': 0.3.25 - - '@jridgewell/gen-mapping@0.3.5': - dependencies: - '@jridgewell/set-array': 1.2.1 - '@jridgewell/sourcemap-codec': 1.5.0 - '@jridgewell/trace-mapping': 0.3.25 - '@jridgewell/resolve-uri@3.1.2': {} - '@jridgewell/set-array@1.1.2': {} - - '@jridgewell/set-array@1.2.1': {} - '@jridgewell/source-map@0.3.11': dependencies: '@jridgewell/gen-mapping': 0.3.13 @@ -17950,19 +18370,10 @@ snapshots: '@jridgewell/gen-mapping': 0.3.13 '@jridgewell/trace-mapping': 0.3.31 - '@jridgewell/sourcemap-codec@1.4.15': {} - - '@jridgewell/sourcemap-codec@1.5.0': {} - '@jridgewell/sourcemap-codec@1.5.4': {} '@jridgewell/sourcemap-codec@1.5.5': {} - '@jridgewell/trace-mapping@0.3.25': - dependencies: - '@jridgewell/resolve-uri': 3.1.2 - '@jridgewell/sourcemap-codec': 1.5.0 - '@jridgewell/trace-mapping@0.3.31': dependencies: '@jridgewell/resolve-uri': 3.1.2 @@ -18350,7 +18761,7 @@ snapshots: agent-base: 7.1.4 http-proxy-agent: 7.0.2 https-proxy-agent: 7.0.5 - lru-cache: 11.2.4 + lru-cache: 11.2.6 socks-proxy-agent: 8.0.5 transitivePeerDependencies: - supports-color @@ -18403,7 +18814,7 @@ snapshots: '@gar/promise-retry': 1.0.2 '@npmcli/promise-spawn': 9.0.1 ini: 6.0.0 - lru-cache: 11.2.4 + lru-cache: 11.2.6 npm-pick-manifest: 11.0.3 proc-log: 6.1.0 semver: 7.7.1 @@ -21949,32 +22360,32 @@ snapshots: dependencies: tslib: 2.8.1 - '@t3-oss/env-core@0.4.1(typescript@5.5.2)(zod@3.25.76)': + '@t3-oss/env-core@0.4.1(typescript@5.6.2)(zod@3.25.76)': dependencies: - typescript: 5.5.2 + typescript: 5.6.2 zod: 3.25.76 - '@t3-oss/env-nextjs@0.4.1(typescript@5.5.2)(zod@3.25.76)': + '@t3-oss/env-nextjs@0.4.1(typescript@5.6.2)(zod@3.25.76)': dependencies: - '@t3-oss/env-core': 0.4.1(typescript@5.5.2)(zod@3.25.76) - typescript: 5.5.2 + '@t3-oss/env-core': 0.4.1(typescript@5.6.2)(zod@3.25.76) + typescript: 5.6.2 zod: 3.25.76 - '@tailwindcss/typography@0.5.13(tailwindcss@3.4.15(ts-node@10.9.2(@types/node@22.17.0)(typescript@5.5.2)))': + '@tailwindcss/typography@0.5.13(tailwindcss@3.4.15(ts-node@10.9.2(@types/node@22.17.0)(typescript@5.6.2)))': dependencies: lodash.castarray: 4.4.0 lodash.isplainobject: 4.0.6 lodash.merge: 4.6.2 postcss-selector-parser: 6.0.10 - tailwindcss: 3.4.15(ts-node@10.9.2(@types/node@22.17.0)(typescript@5.5.2)) + tailwindcss: 3.4.15(ts-node@10.9.2(@types/node@22.17.0)(typescript@5.6.2)) - '@tailwindcss/typography@0.5.9(tailwindcss@3.4.15(ts-node@10.9.2(@types/node@22.17.0)(typescript@5.5.2)))': + '@tailwindcss/typography@0.5.9(tailwindcss@3.4.15(ts-node@10.9.2(@types/node@22.17.0)(typescript@5.6.2)))': dependencies: lodash.castarray: 4.4.0 lodash.isplainobject: 4.0.6 lodash.merge: 4.6.2 postcss-selector-parser: 6.0.10 - tailwindcss: 3.4.15(ts-node@10.9.2(@types/node@22.17.0)(typescript@5.5.2)) + tailwindcss: 3.4.15(ts-node@10.9.2(@types/node@22.17.0)(typescript@5.6.2)) '@tanstack/query-core@5.36.1': {} @@ -22617,34 +23028,34 @@ snapshots: dependencies: '@types/node': 22.17.0 - '@typescript-eslint/eslint-plugin@5.62.0(@typescript-eslint/parser@5.62.0(eslint@8.57.1)(typescript@5.5.2))(eslint@8.57.1)(typescript@5.5.2)': + '@typescript-eslint/eslint-plugin@5.62.0(@typescript-eslint/parser@5.62.0(eslint@8.57.1)(typescript@5.6.2))(eslint@8.57.1)(typescript@5.6.2)': dependencies: '@eslint-community/regexpp': 4.11.0 - '@typescript-eslint/parser': 5.62.0(eslint@8.57.1)(typescript@5.5.2) + '@typescript-eslint/parser': 5.62.0(eslint@8.57.1)(typescript@5.6.2) '@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) + '@typescript-eslint/type-utils': 5.62.0(eslint@8.57.1)(typescript@5.6.2) + '@typescript-eslint/utils': 5.62.0(eslint@8.57.1)(typescript@5.6.2) debug: 4.4.1 eslint: 8.57.1 graphemer: 1.4.0 ignore: 5.3.1 natural-compare-lite: 1.4.0 semver: 7.7.1 - tsutils: 3.21.0(typescript@5.5.2) + tsutils: 3.21.0(typescript@5.6.2) optionalDependencies: - typescript: 5.5.2 + typescript: 5.6.2 transitivePeerDependencies: - supports-color - '@typescript-eslint/parser@5.62.0(eslint@8.57.1)(typescript@5.5.2)': + '@typescript-eslint/parser@5.62.0(eslint@8.57.1)(typescript@5.6.2)': dependencies: '@typescript-eslint/scope-manager': 5.62.0 '@typescript-eslint/types': 5.62.0 - '@typescript-eslint/typescript-estree': 5.62.0(typescript@5.5.2) + '@typescript-eslint/typescript-estree': 5.62.0(typescript@5.6.2) debug: 4.4.1 eslint: 8.57.1 optionalDependencies: - typescript: 5.5.2 + typescript: 5.6.2 transitivePeerDependencies: - supports-color @@ -22653,21 +23064,21 @@ snapshots: '@typescript-eslint/types': 5.62.0 '@typescript-eslint/visitor-keys': 5.62.0 - '@typescript-eslint/type-utils@5.62.0(eslint@8.57.1)(typescript@5.5.2)': + '@typescript-eslint/type-utils@5.62.0(eslint@8.57.1)(typescript@5.6.2)': 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) + '@typescript-eslint/typescript-estree': 5.62.0(typescript@5.6.2) + '@typescript-eslint/utils': 5.62.0(eslint@8.57.1)(typescript@5.6.2) debug: 4.4.1 eslint: 8.57.1 - tsutils: 3.21.0(typescript@5.5.2) + tsutils: 3.21.0(typescript@5.6.2) optionalDependencies: - typescript: 5.5.2 + typescript: 5.6.2 transitivePeerDependencies: - supports-color '@typescript-eslint/types@5.62.0': {} - '@typescript-eslint/typescript-estree@5.62.0(typescript@5.5.2)': + '@typescript-eslint/typescript-estree@5.62.0(typescript@5.6.2)': dependencies: '@typescript-eslint/types': 5.62.0 '@typescript-eslint/visitor-keys': 5.62.0 @@ -22675,20 +23086,20 @@ snapshots: globby: 11.1.0 is-glob: 4.0.3 semver: 7.7.1 - tsutils: 3.21.0(typescript@5.5.2) + tsutils: 3.21.0(typescript@5.6.2) optionalDependencies: - typescript: 5.5.2 + typescript: 5.6.2 transitivePeerDependencies: - supports-color - '@typescript-eslint/utils@5.62.0(eslint@8.57.1)(typescript@5.5.2)': + '@typescript-eslint/utils@5.62.0(eslint@8.57.1)(typescript@5.6.2)': dependencies: '@eslint-community/eslint-utils': 4.4.0(eslint@8.57.1) '@types/json-schema': 7.0.15 '@types/semver': 7.7.0 '@typescript-eslint/scope-manager': 5.62.0 '@typescript-eslint/types': 5.62.0 - '@typescript-eslint/typescript-estree': 5.62.0(typescript@5.5.2) + '@typescript-eslint/typescript-estree': 5.62.0(typescript@5.6.2) eslint: 8.57.1 eslint-scope: 5.1.1 semver: 7.7.1 @@ -22750,7 +23161,7 @@ snapshots: transitivePeerDependencies: - supports-color - '@vitest/coverage-v8@3.2.4(vitest@3.2.4(@types/debug@4.1.12)(@types/node@22.17.0)(jsdom@27.2.0)(msw@2.2.11(typescript@5.5.2))(terser@5.44.1))': + '@vitest/coverage-v8@3.2.4(vitest@3.2.4(@types/debug@4.1.12)(@types/node@22.17.0)(jsdom@27.2.0)(msw@2.2.11(typescript@5.6.2))(terser@5.44.1))': dependencies: '@ampproject/remapping': 2.3.0 '@bcoe/v8-coverage': 1.0.2 @@ -22765,7 +23176,7 @@ snapshots: std-env: 3.9.0 test-exclude: 7.0.1 tinyrainbow: 2.0.0 - vitest: 3.2.4(@types/debug@4.1.12)(@types/node@22.17.0)(jsdom@27.2.0)(msw@2.2.11(typescript@5.5.2))(terser@5.44.1) + vitest: 3.2.4(@types/debug@4.1.12)(@types/node@22.17.0)(jsdom@27.2.0)(msw@2.2.11(typescript@5.6.2))(terser@5.44.1) transitivePeerDependencies: - supports-color @@ -22796,13 +23207,13 @@ snapshots: chai: 5.2.1 tinyrainbow: 2.0.0 - '@vitest/mocker@3.2.4(msw@2.2.11(typescript@5.5.2))(vite@5.4.21(@types/node@22.17.0)(terser@5.44.1))': + '@vitest/mocker@3.2.4(msw@2.2.11(typescript@5.6.2))(vite@5.4.21(@types/node@22.17.0)(terser@5.44.1))': dependencies: '@vitest/spy': 3.2.4 estree-walker: 3.0.3 magic-string: 0.30.17 optionalDependencies: - msw: 2.2.11(typescript@5.5.2) + msw: 2.2.11(typescript@5.6.2) vite: 5.4.21(@types/node@22.17.0)(terser@5.44.1) '@vitest/mocker@3.2.4(vite@5.4.21(@types/node@22.17.0)(terser@5.44.1))': @@ -22869,7 +23280,7 @@ snapshots: de-indent: 1.0.2 he: 1.2.0 - '@vue/language-core@2.2.0(typescript@5.5.2)': + '@vue/language-core@2.2.0(typescript@5.6.2)': dependencies: '@volar/language-core': 2.4.28 '@vue/compiler-dom': 3.5.32 @@ -22880,7 +23291,7 @@ snapshots: muggle-string: 0.4.1 path-browserify: 1.0.1 optionalDependencies: - typescript: 5.5.2 + typescript: 5.6.2 '@vue/shared@3.5.32': {} @@ -23164,15 +23575,20 @@ snapshots: array-buffer-byte-length@1.0.0: dependencies: - call-bind: 1.0.2 + call-bind: 1.0.8 is-array-buffer: 3.0.2 + array-buffer-byte-length@1.0.2: + dependencies: + call-bound: 1.0.4 + is-array-buffer: 3.0.5 + array-ify@1.0.0: {} array-includes@3.1.6: dependencies: - call-bind: 1.0.2 - define-properties: 1.2.0 + call-bind: 1.0.8 + define-properties: 1.2.1 es-abstract: 1.22.1 get-intrinsic: 1.3.0 is-string: 1.0.7 @@ -23181,22 +23597,22 @@ snapshots: array.prototype.flat@1.3.1: dependencies: - call-bind: 1.0.2 - define-properties: 1.2.0 + call-bind: 1.0.8 + define-properties: 1.2.1 es-abstract: 1.22.1 es-shim-unscopables: 1.0.0 array.prototype.flatmap@1.3.1: dependencies: - call-bind: 1.0.2 - define-properties: 1.2.0 + call-bind: 1.0.8 + define-properties: 1.2.1 es-abstract: 1.22.1 es-shim-unscopables: 1.0.0 array.prototype.tosorted@1.1.1: dependencies: - call-bind: 1.0.2 - define-properties: 1.2.0 + call-bind: 1.0.8 + define-properties: 1.2.1 es-abstract: 1.22.1 es-shim-unscopables: 1.0.0 get-intrinsic: 1.3.0 @@ -23204,12 +23620,22 @@ snapshots: arraybuffer.prototype.slice@1.0.1: dependencies: array-buffer-byte-length: 1.0.0 - call-bind: 1.0.2 - define-properties: 1.2.0 + call-bind: 1.0.8 + define-properties: 1.2.1 get-intrinsic: 1.3.0 is-array-buffer: 3.0.2 is-shared-array-buffer: 1.0.2 + arraybuffer.prototype.slice@1.0.4: + dependencies: + array-buffer-byte-length: 1.0.2 + call-bind: 1.0.8 + define-properties: 1.2.1 + es-abstract: 1.24.2 + es-errors: 1.3.0 + get-intrinsic: 1.3.0 + is-array-buffer: 3.0.5 + arrify@1.0.1: {} asn1js@3.0.5: @@ -23228,6 +23654,8 @@ snapshots: estree-walker: 3.0.3 js-tokens: 9.0.1 + async-function@1.0.0: {} + async@3.2.5: {} asynckit@0.4.0: {} @@ -23387,10 +23815,6 @@ snapshots: dependencies: balanced-match: 4.0.4 - braces@3.0.2: - dependencies: - fill-range: 7.1.1 - braces@3.0.3: dependencies: fill-range: 7.1.1 @@ -23472,9 +23896,9 @@ snapshots: dependencies: run-applescript: 5.0.0 - bundle-require@4.0.1(esbuild@0.19.11): + bundle-require@5.1.0(esbuild@0.24.2): dependencies: - esbuild: 0.19.11 + esbuild: 0.24.2 load-tsconfig: 0.2.5 busboy@1.6.0: @@ -23492,7 +23916,7 @@ snapshots: '@npmcli/fs': 5.0.0 fs-minipass: 3.0.3 glob: 13.0.6 - lru-cache: 11.2.4 + lru-cache: 11.2.6 minipass: 7.1.3 minipass-collect: 2.0.1 minipass-flush: 1.0.5 @@ -23506,20 +23930,14 @@ snapshots: es-errors: 1.3.0 function-bind: 1.1.2 - call-bind@1.0.2: - dependencies: - function-bind: 1.1.2 - get-intrinsic: 1.3.0 - - call-bind@1.0.7: + call-bind@1.0.8: dependencies: + call-bind-apply-helpers: 1.0.2 es-define-property: 1.0.1 - es-errors: 1.3.0 - function-bind: 1.1.2 get-intrinsic: 1.3.0 set-function-length: 1.2.2 - call-bind@1.0.8: + call-bind@1.0.9: dependencies: call-bind-apply-helpers: 1.0.2 es-define-property: 1.0.1 @@ -23628,18 +24046,6 @@ snapshots: check-error@2.1.1: {} - chokidar@3.5.3: - dependencies: - anymatch: 3.1.3 - braces: 3.0.2 - glob-parent: 5.1.2 - is-binary-path: 2.1.0 - is-glob: 4.0.3 - normalize-path: 3.0.0 - readdirp: 3.6.0 - optionalDependencies: - fsevents: 2.3.3 - chokidar@3.6.0: dependencies: anymatch: 3.1.3 @@ -23727,7 +24133,7 @@ snapshots: dependencies: string-width: 4.2.3 strip-ansi: 6.0.1 - wrap-ansi: 7.0.0 + wrap-ansi: 8.1.0 cliui@9.0.1: dependencies: @@ -23822,6 +24228,8 @@ snapshots: consola@2.15.3: {} + consola@3.4.2: {} + constant-case@3.0.4: dependencies: no-case: 3.0.4 @@ -23915,12 +24323,12 @@ snapshots: object-assign: 4.1.1 vary: 1.1.2 - cosmiconfig-typescript-loader@6.1.0(@types/node@22.17.0)(cosmiconfig@9.0.0(typescript@5.5.2))(typescript@5.5.2): + cosmiconfig-typescript-loader@6.1.0(@types/node@22.17.0)(cosmiconfig@9.0.0(typescript@5.6.2))(typescript@5.6.2): dependencies: '@types/node': 22.17.0 - cosmiconfig: 9.0.0(typescript@5.5.2) + cosmiconfig: 9.0.0(typescript@5.6.2) jiti: 2.4.2 - typescript: 5.5.2 + typescript: 5.6.2 cosmiconfig@7.1.0: dependencies: @@ -23937,14 +24345,14 @@ snapshots: parse-json: 5.2.0 path-type: 4.0.0 - cosmiconfig@9.0.0(typescript@5.5.2): + cosmiconfig@9.0.0(typescript@5.6.2): dependencies: env-paths: 2.2.1 import-fresh: 3.3.1 js-yaml: 4.1.1 parse-json: 5.2.0 optionalDependencies: - typescript: 5.5.2 + typescript: 5.6.2 create-require@1.1.1: {} @@ -24093,6 +24501,24 @@ snapshots: whatwg-mimetype: 5.0.0 whatwg-url: 15.1.0 + data-view-buffer@1.0.2: + dependencies: + call-bound: 1.0.4 + es-errors: 1.3.0 + is-data-view: 1.0.2 + + data-view-byte-length@1.0.2: + dependencies: + call-bound: 1.0.4 + es-errors: 1.3.0 + is-data-view: 1.0.2 + + data-view-byte-offset@1.0.1: + dependencies: + call-bound: 1.0.4 + es-errors: 1.3.0 + is-data-view: 1.0.2 + dataloader@2.2.2: {} date-fns-tz@3.1.3(date-fns@3.6.0): @@ -24229,11 +24655,6 @@ snapshots: define-lazy-prop@3.0.0: {} - define-properties@1.2.0: - dependencies: - has-property-descriptors: 1.0.0 - object-keys: 1.1.1 - define-properties@1.2.1: dependencies: define-data-property: 1.1.4 @@ -24479,7 +24900,7 @@ snapshots: array-buffer-byte-length: 1.0.0 arraybuffer.prototype.slice: 1.0.1 available-typed-arrays: 1.0.5 - call-bind: 1.0.2 + call-bind: 1.0.8 es-set-tostringtag: 2.1.0 es-to-primitive: 1.2.1 function.prototype.name: 1.1.5 @@ -24488,10 +24909,10 @@ snapshots: globalthis: 1.0.3 gopd: 1.2.0 has: 1.0.3 - has-property-descriptors: 1.0.0 + has-property-descriptors: 1.0.2 has-proto: 1.0.1 has-symbols: 1.1.0 - internal-slot: 1.0.5 + internal-slot: 1.1.0 is-array-buffer: 3.0.2 is-callable: 1.2.7 is-negative-zero: 2.0.2 @@ -24516,6 +24937,63 @@ snapshots: unbox-primitive: 1.0.2 which-typed-array: 1.1.11 + es-abstract@1.24.2: + dependencies: + array-buffer-byte-length: 1.0.2 + arraybuffer.prototype.slice: 1.0.4 + available-typed-arrays: 1.0.7 + call-bind: 1.0.8 + call-bound: 1.0.4 + data-view-buffer: 1.0.2 + data-view-byte-length: 1.0.2 + data-view-byte-offset: 1.0.1 + es-define-property: 1.0.1 + es-errors: 1.3.0 + es-object-atoms: 1.1.1 + es-set-tostringtag: 2.1.0 + es-to-primitive: 1.3.0 + function.prototype.name: 1.1.8 + get-intrinsic: 1.3.0 + get-proto: 1.0.1 + get-symbol-description: 1.1.0 + globalthis: 1.0.4 + gopd: 1.2.0 + has-property-descriptors: 1.0.2 + has-proto: 1.2.0 + has-symbols: 1.1.0 + hasown: 2.0.2 + internal-slot: 1.1.0 + is-array-buffer: 3.0.5 + is-callable: 1.2.7 + is-data-view: 1.0.2 + is-negative-zero: 2.0.3 + is-regex: 1.2.1 + is-set: 2.0.3 + is-shared-array-buffer: 1.0.4 + is-string: 1.1.1 + is-typed-array: 1.1.15 + is-weakref: 1.1.1 + math-intrinsics: 1.1.0 + object-inspect: 1.13.4 + object-keys: 1.1.1 + object.assign: 4.1.7 + own-keys: 1.0.1 + regexp.prototype.flags: 1.5.4 + safe-array-concat: 1.1.4 + safe-push-apply: 1.0.0 + safe-regex-test: 1.1.0 + set-proto: 1.0.0 + stop-iteration-iterator: 1.1.0 + string.prototype.trim: 1.2.10 + string.prototype.trimend: 1.0.9 + string.prototype.trimstart: 1.0.8 + typed-array-buffer: 1.0.3 + typed-array-byte-length: 1.0.3 + typed-array-byte-offset: 1.0.4 + typed-array-length: 1.0.7 + unbox-primitive: 1.1.0 + which-typed-array: 1.1.19 + es-define-property@1.0.1: {} es-errors@1.3.0: {} @@ -24532,6 +25010,20 @@ snapshots: isarray: 2.0.5 stop-iteration-iterator: 1.1.0 + es-map@1.0.6: + dependencies: + call-bind: 1.0.8 + define-properties: 1.2.1 + es-abstract: 1.24.2 + es-get-iterator: 1.1.3 + es-set-tostringtag: 2.1.0 + for-each: 0.3.5 + get-intrinsic: 1.3.0 + globalthis: 1.0.4 + has-symbols: 1.1.0 + internal-slot: 1.1.0 + object.entries: 1.1.9 + es-module-lexer@1.7.0: {} es-object-atoms@1.1.1: @@ -24545,6 +25037,45 @@ snapshots: has-tostringtag: 1.0.2 hasown: 2.0.2 + es-set@1.1.2: + dependencies: + call-bind: 1.0.8 + define-properties: 1.2.1 + es-abstract: 1.24.2 + es-map: 1.0.6 + es-set-tostringtag: 2.1.0 + for-each: 0.3.5 + functions-have-names: 1.2.3 + get-intrinsic: 1.3.0 + globalthis: 1.0.4 + gopd: 1.2.0 + has-property-descriptors: 1.0.2 + has-symbols: 1.1.0 + internal-slot: 1.1.0 + iterate-value: 1.0.2 + object.entries: 1.1.9 + stop-iteration-iterator: 1.1.0 + + es-set@2.0.1: + dependencies: + call-bind: 1.0.8 + call-bound: 1.0.4 + define-properties: 1.2.1 + es-abstract: 1.24.2 + es-map: 1.0.6 + es-set-tostringtag: 2.1.0 + for-each: 0.3.5 + functions-have-names: 1.2.3 + get-intrinsic: 1.3.0 + globalthis: 1.0.4 + gopd: 1.2.0 + has-property-descriptors: 1.0.2 + has-symbols: 1.1.0 + internal-slot: 1.1.0 + iterate-value: 1.0.2 + object.entries: 1.1.9 + stop-iteration-iterator: 1.1.0 + es-shim-unscopables@1.0.0: dependencies: has: 1.0.3 @@ -24555,6 +25086,12 @@ snapshots: is-date-object: 1.0.5 is-symbol: 1.0.4 + es-to-primitive@1.3.0: + dependencies: + is-callable: 1.2.7 + is-date-object: 1.0.5 + is-symbol: 1.0.4 + esbuild-plugin-polyfill-node@0.3.0(esbuild@0.25.1): dependencies: '@jspm/core': 2.0.1 @@ -24645,6 +25182,34 @@ snapshots: '@esbuild/win32-ia32': 0.21.5 '@esbuild/win32-x64': 0.21.5 + esbuild@0.24.2: + optionalDependencies: + '@esbuild/aix-ppc64': 0.24.2 + '@esbuild/android-arm': 0.24.2 + '@esbuild/android-arm64': 0.24.2 + '@esbuild/android-x64': 0.24.2 + '@esbuild/darwin-arm64': 0.24.2 + '@esbuild/darwin-x64': 0.24.2 + '@esbuild/freebsd-arm64': 0.24.2 + '@esbuild/freebsd-x64': 0.24.2 + '@esbuild/linux-arm': 0.24.2 + '@esbuild/linux-arm64': 0.24.2 + '@esbuild/linux-ia32': 0.24.2 + '@esbuild/linux-loong64': 0.24.2 + '@esbuild/linux-mips64el': 0.24.2 + '@esbuild/linux-ppc64': 0.24.2 + '@esbuild/linux-riscv64': 0.24.2 + '@esbuild/linux-s390x': 0.24.2 + '@esbuild/linux-x64': 0.24.2 + '@esbuild/netbsd-arm64': 0.24.2 + '@esbuild/netbsd-x64': 0.24.2 + '@esbuild/openbsd-arm64': 0.24.2 + '@esbuild/openbsd-x64': 0.24.2 + '@esbuild/sunos-x64': 0.24.2 + '@esbuild/win32-arm64': 0.24.2 + '@esbuild/win32-ia32': 0.24.2 + '@esbuild/win32-x64': 0.24.2 + esbuild@0.25.0: optionalDependencies: '@esbuild/aix-ppc64': 0.25.0 @@ -24751,20 +25316,20 @@ snapshots: eslint: 8.57.1 semver: 7.7.1 - eslint-config-next@13.4.7(eslint@8.57.1)(typescript@5.5.2): + eslint-config-next@13.4.7(eslint@8.57.1)(typescript@5.6.2): dependencies: '@next/eslint-plugin-next': 13.4.7 '@rushstack/eslint-patch': 1.3.2 - '@typescript-eslint/parser': 5.62.0(eslint@8.57.1)(typescript@5.5.2) + '@typescript-eslint/parser': 5.62.0(eslint@8.57.1)(typescript@5.6.2) eslint: 8.57.1 eslint-import-resolver-node: 0.3.7 - 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) - eslint-plugin-import: 2.27.5(@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) + eslint-import-resolver-typescript: 3.5.5(@typescript-eslint/parser@5.62.0(eslint@8.57.1)(typescript@5.6.2))(eslint-import-resolver-node@0.3.7)(eslint-plugin-import@2.27.5(eslint@8.57.1))(eslint@8.57.1) + eslint-plugin-import: 2.27.5(@typescript-eslint/parser@5.62.0(eslint@8.57.1)(typescript@5.6.2))(eslint-import-resolver-typescript@3.5.5)(eslint@8.57.1) eslint-plugin-jsx-a11y: 6.7.1(eslint@8.57.1) eslint-plugin-react: 7.33.0(eslint@8.57.1) eslint-plugin-react-hooks: 4.6.0(eslint@8.57.1) optionalDependencies: - typescript: 5.5.2 + typescript: 5.6.2 transitivePeerDependencies: - eslint-import-resolver-webpack - supports-color @@ -24776,24 +25341,24 @@ snapshots: eslint-config-standard@17.1.0(eslint-plugin-import@2.27.5)(eslint-plugin-n@16.6.2(eslint@8.57.1))(eslint-plugin-promise@6.6.0(eslint@8.57.1))(eslint@8.57.1): dependencies: eslint: 8.57.1 - eslint-plugin-import: 2.27.5(@typescript-eslint/parser@5.62.0(eslint@8.57.1)(typescript@5.5.2))(eslint@8.57.1) + eslint-plugin-import: 2.27.5(@typescript-eslint/parser@5.62.0(eslint@8.57.1)(typescript@5.6.2))(eslint@8.57.1) eslint-plugin-n: 16.6.2(eslint@8.57.1) eslint-plugin-promise: 6.6.0(eslint@8.57.1) - eslint-config-unjs@0.2.1(eslint@8.57.1)(typescript@5.5.2): + eslint-config-unjs@0.2.1(eslint@8.57.1)(typescript@5.6.2): dependencies: - '@typescript-eslint/eslint-plugin': 5.62.0(@typescript-eslint/parser@5.62.0(eslint@8.57.1)(typescript@5.5.2))(eslint@8.57.1)(typescript@5.5.2) - '@typescript-eslint/parser': 5.62.0(eslint@8.57.1)(typescript@5.5.2) + '@typescript-eslint/eslint-plugin': 5.62.0(@typescript-eslint/parser@5.62.0(eslint@8.57.1)(typescript@5.6.2))(eslint@8.57.1)(typescript@5.6.2) + '@typescript-eslint/parser': 5.62.0(eslint@8.57.1)(typescript@5.6.2) eslint: 8.57.1 eslint-config-prettier: 8.10.0(eslint@8.57.1) eslint-config-standard: 17.1.0(eslint-plugin-import@2.27.5)(eslint-plugin-n@16.6.2(eslint@8.57.1))(eslint-plugin-promise@6.6.0(eslint@8.57.1))(eslint@8.57.1) - 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) - eslint-plugin-import: 2.27.5(@typescript-eslint/parser@5.62.0(eslint@8.57.1)(typescript@5.5.2))(eslint@8.57.1) + eslint-import-resolver-typescript: 3.5.5(@typescript-eslint/parser@5.62.0(eslint@8.57.1)(typescript@5.6.2))(eslint-plugin-import@2.27.5)(eslint@8.57.1) + eslint-plugin-import: 2.27.5(@typescript-eslint/parser@5.62.0(eslint@8.57.1)(typescript@5.6.2))(eslint@8.57.1) eslint-plugin-n: 16.6.2(eslint@8.57.1) eslint-plugin-node: 11.1.0(eslint@8.57.1) eslint-plugin-promise: 6.6.0(eslint@8.57.1) eslint-plugin-unicorn: 47.0.0(eslint@8.57.1) - typescript: 5.5.2 + typescript: 5.6.2 transitivePeerDependencies: - eslint-import-resolver-node - eslint-import-resolver-webpack @@ -24807,13 +25372,13 @@ snapshots: transitivePeerDependencies: - supports-color - 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): + eslint-import-resolver-typescript@3.5.5(@typescript-eslint/parser@5.62.0(eslint@8.57.1)(typescript@5.6.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.4.1 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) - eslint-plugin-import: 2.27.5(@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) + eslint-module-utils: 2.8.0(@typescript-eslint/parser@5.62.0(eslint@8.57.1)(typescript@5.6.2))(eslint-import-resolver-node@0.3.7)(eslint-import-resolver-typescript@3.5.5)(eslint@8.57.1) + eslint-plugin-import: 2.27.5(@typescript-eslint/parser@5.62.0(eslint@8.57.1)(typescript@5.6.2))(eslint-import-resolver-typescript@3.5.5)(eslint@8.57.1) get-tsconfig: 4.10.1 globby: 13.2.2 is-core-module: 2.12.1 @@ -24825,13 +25390,13 @@ snapshots: - eslint-import-resolver-webpack - supports-color - 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): + eslint-import-resolver-typescript@3.5.5(@typescript-eslint/parser@5.62.0(eslint@8.57.1)(typescript@5.6.2))(eslint-plugin-import@2.27.5)(eslint@8.57.1): dependencies: debug: 4.4.1 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) - eslint-plugin-import: 2.27.5(@typescript-eslint/parser@5.62.0(eslint@8.57.1)(typescript@5.5.2))(eslint@8.57.1) + eslint-module-utils: 2.8.0(@typescript-eslint/parser@5.62.0(eslint@8.57.1)(typescript@5.6.2))(eslint-import-resolver-typescript@3.5.5)(eslint@8.57.1) + eslint-plugin-import: 2.27.5(@typescript-eslint/parser@5.62.0(eslint@8.57.1)(typescript@5.6.2))(eslint@8.57.1) get-tsconfig: 4.10.1 globby: 13.2.2 is-core-module: 2.12.1 @@ -24843,24 +25408,24 @@ snapshots: - eslint-import-resolver-webpack - supports-color - 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): + eslint-module-utils@2.8.0(@typescript-eslint/parser@5.62.0(eslint@8.57.1)(typescript@5.6.2))(eslint-import-resolver-node@0.3.7)(eslint-import-resolver-typescript@3.5.5)(eslint@8.57.1): dependencies: debug: 4.4.1 optionalDependencies: - '@typescript-eslint/parser': 5.62.0(eslint@8.57.1)(typescript@5.5.2) + '@typescript-eslint/parser': 5.62.0(eslint@8.57.1)(typescript@5.6.2) eslint: 8.57.1 eslint-import-resolver-node: 0.3.7 - 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) + eslint-import-resolver-typescript: 3.5.5(@typescript-eslint/parser@5.62.0(eslint@8.57.1)(typescript@5.6.2))(eslint-plugin-import@2.27.5)(eslint@8.57.1) transitivePeerDependencies: - supports-color - 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): + eslint-module-utils@2.8.0(@typescript-eslint/parser@5.62.0(eslint@8.57.1)(typescript@5.6.2))(eslint-import-resolver-typescript@3.5.5)(eslint@8.57.1): dependencies: debug: 4.4.1 optionalDependencies: - '@typescript-eslint/parser': 5.62.0(eslint@8.57.1)(typescript@5.5.2) + '@typescript-eslint/parser': 5.62.0(eslint@8.57.1)(typescript@5.6.2) eslint: 8.57.1 - 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) + eslint-import-resolver-typescript: 3.5.5(@typescript-eslint/parser@5.62.0(eslint@8.57.1)(typescript@5.6.2))(eslint-plugin-import@2.27.5)(eslint@8.57.1) transitivePeerDependencies: - supports-color @@ -24877,7 +25442,7 @@ snapshots: eslint-utils: 2.1.0 regexpp: 3.2.0 - eslint-plugin-import@2.27.5(@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): + eslint-plugin-import@2.27.5(@typescript-eslint/parser@5.62.0(eslint@8.57.1)(typescript@5.6.2))(eslint-import-resolver-typescript@3.5.5)(eslint@8.57.1): dependencies: array-includes: 3.1.6 array.prototype.flat: 1.3.1 @@ -24886,7 +25451,7 @@ snapshots: doctrine: 2.1.0 eslint: 8.57.1 eslint-import-resolver-node: 0.3.7 - 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) + eslint-module-utils: 2.8.0(@typescript-eslint/parser@5.62.0(eslint@8.57.1)(typescript@5.6.2))(eslint-import-resolver-node@0.3.7)(eslint-import-resolver-typescript@3.5.5)(eslint@8.57.1) has: 1.0.3 is-core-module: 2.12.1 is-glob: 4.0.3 @@ -24896,13 +25461,13 @@ snapshots: semver: 6.3.1 tsconfig-paths: 3.14.2 optionalDependencies: - '@typescript-eslint/parser': 5.62.0(eslint@8.57.1)(typescript@5.5.2) + '@typescript-eslint/parser': 5.62.0(eslint@8.57.1)(typescript@5.6.2) transitivePeerDependencies: - eslint-import-resolver-typescript - eslint-import-resolver-webpack - supports-color - eslint-plugin-import@2.27.5(@typescript-eslint/parser@5.62.0(eslint@8.57.1)(typescript@5.5.2))(eslint@8.57.1): + eslint-plugin-import@2.27.5(@typescript-eslint/parser@5.62.0(eslint@8.57.1)(typescript@5.6.2))(eslint@8.57.1): dependencies: array-includes: 3.1.6 array.prototype.flat: 1.3.1 @@ -24911,7 +25476,7 @@ snapshots: doctrine: 2.1.0 eslint: 8.57.1 eslint-import-resolver-node: 0.3.7 - 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) + eslint-module-utils: 2.8.0(@typescript-eslint/parser@5.62.0(eslint@8.57.1)(typescript@5.6.2))(eslint-import-resolver-node@0.3.7)(eslint-import-resolver-typescript@3.5.5)(eslint@8.57.1) has: 1.0.3 is-core-module: 2.12.1 is-glob: 4.0.3 @@ -24921,7 +25486,7 @@ snapshots: semver: 6.3.1 tsconfig-paths: 3.14.2 optionalDependencies: - '@typescript-eslint/parser': 5.62.0(eslint@8.57.1)(typescript@5.5.2) + '@typescript-eslint/parser': 5.62.0(eslint@8.57.1)(typescript@5.6.2) transitivePeerDependencies: - eslint-import-resolver-typescript - eslint-import-resolver-webpack @@ -25478,11 +26043,6 @@ snapshots: dependencies: is-callable: 1.2.7 - foreground-child@3.1.1: - dependencies: - cross-spawn: 7.0.6 - signal-exit: 4.1.0 - foreground-child@3.3.1: dependencies: cross-spawn: 7.0.6 @@ -25583,15 +26143,26 @@ snapshots: function.prototype.name@1.1.5: dependencies: - call-bind: 1.0.2 - define-properties: 1.2.0 + call-bind: 1.0.8 + define-properties: 1.2.1 es-abstract: 1.22.1 functions-have-names: 1.2.3 + function.prototype.name@1.1.8: + dependencies: + call-bind: 1.0.8 + call-bound: 1.0.4 + define-properties: 1.2.1 + functions-have-names: 1.2.3 + hasown: 2.0.2 + is-callable: 1.2.7 + functions-have-names@1.2.3: {} fuse.js@7.0.0: {} + generator-function@2.0.1: {} + gensync@1.0.0-beta.2: {} get-caller-file@2.0.5: {} @@ -25634,7 +26205,13 @@ snapshots: get-symbol-description@1.0.0: dependencies: - call-bind: 1.0.2 + call-bind: 1.0.8 + get-intrinsic: 1.3.0 + + get-symbol-description@1.1.0: + dependencies: + call-bound: 1.0.4 + es-errors: 1.3.0 get-intrinsic: 1.3.0 get-tsconfig@4.10.1: @@ -25680,10 +26257,10 @@ snapshots: glob@10.4.5: dependencies: - foreground-child: 3.1.1 + foreground-child: 3.3.1 jackspeak: 3.4.3 minimatch: 9.0.7 - minipass: 7.1.2 + minipass: 7.1.3 package-json-from-dist: 1.0.0 path-scurry: 1.11.1 @@ -25693,15 +26270,6 @@ snapshots: minipass: 7.1.3 path-scurry: 2.0.2 - glob@7.1.6: - dependencies: - fs.realpath: 1.0.0 - inflight: 1.0.6 - inherits: 2.0.4 - minimatch: 3.1.4 - once: 1.4.0 - path-is-absolute: 1.0.1 - glob@7.1.7: dependencies: fs.realpath: 1.0.0 @@ -25739,7 +26307,12 @@ snapshots: globalthis@1.0.3: dependencies: - define-properties: 1.2.0 + define-properties: 1.2.1 + + globalthis@1.0.4: + dependencies: + define-properties: 1.2.1 + gopd: 1.2.0 globby@11.1.0: dependencies: @@ -25872,16 +26445,16 @@ snapshots: has-flag@4.0.0: {} - has-property-descriptors@1.0.0: - dependencies: - get-intrinsic: 1.3.0 - has-property-descriptors@1.0.2: dependencies: es-define-property: 1.0.1 has-proto@1.0.1: {} + has-proto@1.2.0: + dependencies: + dunder-proto: 1.0.1 + has-symbols@1.1.0: {} has-tostringtag@1.0.2: @@ -26010,7 +26583,7 @@ snapshots: hosted-git-info@9.0.2: dependencies: - lru-cache: 11.2.4 + lru-cache: 11.2.6 html-encoding-sniffer@4.0.0: dependencies: @@ -26288,23 +26861,46 @@ snapshots: is-array-buffer@3.0.2: dependencies: - call-bind: 1.0.2 + call-bind: 1.0.8 get-intrinsic: 1.3.0 is-typed-array: 1.1.12 + is-array-buffer@3.0.5: + dependencies: + call-bind: 1.0.8 + call-bound: 1.0.4 + get-intrinsic: 1.3.0 + is-arrayish@0.2.1: {} + is-async-function@2.1.1: + dependencies: + async-function: 1.0.0 + call-bound: 1.0.4 + get-proto: 1.0.1 + has-tostringtag: 1.0.2 + safe-regex-test: 1.1.0 + is-bigint@1.0.4: dependencies: has-bigints: 1.0.2 + is-bigint@1.1.0: + dependencies: + has-bigints: 1.0.2 + is-binary-path@2.1.0: dependencies: binary-extensions: 2.3.0 is-boolean-object@1.1.2: dependencies: - call-bind: 1.0.2 + call-bind: 1.0.8 + has-tostringtag: 1.0.2 + + is-boolean-object@1.2.2: + dependencies: + call-bound: 1.0.4 has-tostringtag: 1.0.2 is-builtin-module@3.2.1: @@ -26325,10 +26921,21 @@ snapshots: dependencies: hasown: 2.0.2 + is-data-view@1.0.2: + dependencies: + call-bound: 1.0.4 + get-intrinsic: 1.3.0 + is-typed-array: 1.1.15 + is-date-object@1.0.5: dependencies: has-tostringtag: 1.0.2 + is-date-object@1.1.0: + dependencies: + call-bound: 1.0.4 + has-tostringtag: 1.0.2 + is-decimal@2.0.1: {} is-docker@2.2.1: {} @@ -26337,10 +26944,22 @@ snapshots: is-extglob@2.1.1: {} + is-finalizationregistry@1.1.1: + dependencies: + call-bound: 1.0.4 + is-fullwidth-code-point@3.0.0: {} is-fullwidth-code-point@4.0.0: {} + is-generator-function@1.1.2: + dependencies: + call-bound: 1.0.4 + generator-function: 2.0.1 + get-proto: 1.0.1 + has-tostringtag: 1.0.2 + safe-regex-test: 1.1.0 + is-glob@4.0.3: dependencies: is-extglob: 2.1.1 @@ -26361,6 +26980,8 @@ snapshots: is-negative-zero@2.0.2: {} + is-negative-zero@2.0.3: {} + is-network-error@1.1.0: {} is-node-process@1.2.0: {} @@ -26369,6 +26990,11 @@ snapshots: dependencies: has-tostringtag: 1.0.2 + is-number-object@1.1.1: + dependencies: + call-bound: 1.0.4 + has-tostringtag: 1.0.2 + is-number@7.0.0: {} is-obj@2.0.0: {} @@ -26399,8 +27025,15 @@ snapshots: is-regex@1.1.4: dependencies: - call-bind: 1.0.2 + call-bind: 1.0.8 + has-tostringtag: 1.0.2 + + is-regex@1.2.1: + dependencies: + call-bound: 1.0.4 + gopd: 1.2.0 has-tostringtag: 1.0.2 + hasown: 2.0.2 is-retry-allowed@2.2.0: {} @@ -26408,7 +27041,11 @@ snapshots: is-shared-array-buffer@1.0.2: dependencies: - call-bind: 1.0.2 + call-bind: 1.0.8 + + is-shared-array-buffer@1.0.4: + dependencies: + call-bound: 1.0.4 is-ssh@1.4.0: dependencies: @@ -26426,10 +27063,21 @@ snapshots: dependencies: has-tostringtag: 1.0.2 + is-string@1.1.1: + dependencies: + call-bound: 1.0.4 + has-tostringtag: 1.0.2 + is-symbol@1.0.4: dependencies: has-symbols: 1.1.0 + is-symbol@1.1.1: + dependencies: + call-bound: 1.0.4 + has-symbols: 1.1.0 + safe-regex-test: 1.1.0 + is-text-path@2.0.0: dependencies: text-extensions: 2.4.0 @@ -26438,6 +27086,10 @@ snapshots: dependencies: which-typed-array: 1.1.11 + is-typed-array@1.1.15: + dependencies: + which-typed-array: 1.1.19 + is-unicode-supported@0.1.0: {} is-unicode-supported@1.3.0: {} @@ -26448,7 +27100,11 @@ snapshots: is-weakref@1.0.2: dependencies: - call-bind: 1.0.2 + call-bind: 1.0.8 + + is-weakref@1.1.1: + dependencies: + call-bound: 1.0.4 is-weakset@2.0.4: dependencies: @@ -26508,6 +27164,13 @@ snapshots: html-escaper: 2.0.2 istanbul-lib-report: 3.0.1 + iterate-iterator@1.0.2: {} + + iterate-value@1.0.2: + dependencies: + es-get-iterator: 1.1.3 + iterate-iterator: 1.0.2 + jackspeak@2.3.6: dependencies: '@isaacs/cliui': 8.0.2 @@ -26879,7 +27542,7 @@ snapshots: magic-string@0.30.8: dependencies: - '@jridgewell/sourcemap-codec': 1.5.0 + '@jridgewell/sourcemap-codec': 1.5.5 magicast@0.3.5: dependencies: @@ -27464,7 +28127,7 @@ snapshots: optionalDependencies: msgpackr-extract: 3.0.2 - msw@2.2.11(typescript@5.5.2): + msw@2.2.11(typescript@5.6.2): dependencies: '@bundled-es-modules/cookie': 2.0.0 '@bundled-es-modules/statuses': 1.0.1 @@ -27484,7 +28147,7 @@ snapshots: type-fest: 4.13.1 yargs: 17.7.2 optionalDependencies: - typescript: 5.5.2 + typescript: 5.6.2 muggle-string@0.4.1: {} @@ -27738,32 +28401,48 @@ snapshots: object.assign@4.1.4: dependencies: - call-bind: 1.0.2 - define-properties: 1.2.0 + call-bind: 1.0.8 + define-properties: 1.2.1 + has-symbols: 1.1.0 + object-keys: 1.1.1 + + object.assign@4.1.7: + dependencies: + call-bind: 1.0.8 + call-bound: 1.0.4 + define-properties: 1.2.1 + es-object-atoms: 1.1.1 has-symbols: 1.1.0 object-keys: 1.1.1 object.entries@1.1.6: dependencies: - call-bind: 1.0.2 - define-properties: 1.2.0 + call-bind: 1.0.8 + define-properties: 1.2.1 es-abstract: 1.22.1 + object.entries@1.1.9: + dependencies: + call-bind: 1.0.8 + call-bound: 1.0.4 + define-properties: 1.2.1 + es-object-atoms: 1.1.1 + object.fromentries@2.0.6: dependencies: - call-bind: 1.0.2 - define-properties: 1.2.0 + call-bind: 1.0.8 + define-properties: 1.2.1 es-abstract: 1.22.1 object.hasown@1.1.2: dependencies: - define-properties: 1.2.0 + define-properties: 1.2.1 es-abstract: 1.22.1 object.values@1.1.6: dependencies: - call-bind: 1.0.2 - define-properties: 1.2.0 + call-bind: 1.0.8 + define-properties: 1.2.1 es-abstract: 1.22.1 obliterator@2.0.4: {} @@ -27864,6 +28543,12 @@ snapshots: outvariant@1.4.2: {} + own-keys@1.0.1: + dependencies: + get-intrinsic: 1.3.0 + object-keys: 1.1.1 + safe-push-apply: 1.0.0 + p-limit@2.3.0: dependencies: p-try: 2.2.0 @@ -28041,11 +28726,11 @@ snapshots: path-scurry@1.11.1: dependencies: lru-cache: 10.4.3 - minipass: 7.1.2 + minipass: 7.1.3 path-scurry@2.0.2: dependencies: - lru-cache: 11.2.4 + lru-cache: 11.2.6 minipass: 7.1.3 path-to-regexp@6.2.1: {} @@ -28206,21 +28891,22 @@ snapshots: camelcase-css: 2.0.1 postcss: 8.4.49 - postcss-load-config@4.0.1(postcss@8.5.6)(ts-node@10.9.2(@types/node@22.17.0)(typescript@5.5.2)): - dependencies: - lilconfig: 2.1.0 - yaml: 2.3.1 - optionalDependencies: - postcss: 8.5.6 - ts-node: 10.9.2(@types/node@22.17.0)(typescript@5.5.2) - - postcss-load-config@4.0.2(postcss@8.4.49)(ts-node@10.9.2(@types/node@22.17.0)(typescript@5.5.2)): + postcss-load-config@4.0.2(postcss@8.4.49)(ts-node@10.9.2(@types/node@22.17.0)(typescript@5.6.2)): dependencies: lilconfig: 3.1.2 yaml: 2.6.1 optionalDependencies: postcss: 8.4.49 - ts-node: 10.9.2(@types/node@22.17.0)(typescript@5.5.2) + ts-node: 10.9.2(@types/node@22.17.0)(typescript@5.6.2) + + postcss-load-config@6.0.1(jiti@2.4.2)(postcss@8.5.6)(tsx@4.19.4)(yaml@2.8.2): + dependencies: + lilconfig: 3.1.3 + optionalDependencies: + jiti: 2.4.2 + postcss: 8.5.6 + tsx: 4.19.4 + yaml: 2.8.2 postcss-nested@6.2.0(postcss@8.4.49): dependencies: @@ -28908,20 +29594,40 @@ snapshots: dependencies: redis-errors: 1.2.0 + reflect.getprototypeof@1.0.10: + dependencies: + call-bind: 1.0.8 + define-properties: 1.2.1 + es-abstract: 1.24.2 + es-errors: 1.3.0 + es-object-atoms: 1.1.1 + get-intrinsic: 1.3.0 + get-proto: 1.0.1 + which-builtin-type: 1.2.1 + regexp-tree@0.1.27: {} regexp.prototype.flags@1.5.0: dependencies: - call-bind: 1.0.2 - define-properties: 1.2.0 + call-bind: 1.0.8 + define-properties: 1.2.1 functions-have-names: 1.2.3 regexp.prototype.flags@1.5.1: dependencies: - call-bind: 1.0.7 - define-properties: 1.2.0 + call-bind: 1.0.8 + define-properties: 1.2.1 set-function-name: 2.0.1 + regexp.prototype.flags@1.5.4: + dependencies: + call-bind: 1.0.8 + define-properties: 1.2.1 + es-errors: 1.3.0 + get-proto: 1.0.1 + gopd: 1.2.0 + set-function-name: 2.0.2 + regexpp@3.2.0: {} regjsparser@0.10.0: @@ -29126,7 +29832,15 @@ snapshots: safe-array-concat@1.0.0: dependencies: - call-bind: 1.0.2 + call-bind: 1.0.8 + get-intrinsic: 1.3.0 + has-symbols: 1.1.0 + isarray: 2.0.5 + + safe-array-concat@1.1.4: + dependencies: + call-bind: 1.0.9 + call-bound: 1.0.4 get-intrinsic: 1.3.0 has-symbols: 1.1.0 isarray: 2.0.5 @@ -29135,12 +29849,23 @@ snapshots: safe-buffer@5.2.1: {} + safe-push-apply@1.0.0: + dependencies: + es-errors: 1.3.0 + isarray: 2.0.5 + safe-regex-test@1.0.0: dependencies: - call-bind: 1.0.2 + call-bind: 1.0.8 get-intrinsic: 1.3.0 is-regex: 1.1.4 + safe-regex-test@1.1.0: + dependencies: + call-bound: 1.0.4 + es-errors: 1.3.0 + is-regex: 1.2.1 + safe-regex2@2.0.0: dependencies: ret: 0.2.2 @@ -29242,11 +29967,75 @@ snapshots: functions-have-names: 1.2.3 has-property-descriptors: 1.0.2 + set-function-name@2.0.2: + dependencies: + define-data-property: 1.1.4 + es-errors: 1.3.0 + functions-have-names: 1.2.3 + has-property-descriptors: 1.0.2 + + set-proto@1.0.0: + dependencies: + dunder-proto: 1.0.1 + es-errors: 1.3.0 + es-object-atoms: 1.1.1 + set-value@4.1.0: dependencies: is-plain-object: 2.0.4 is-primitive: 3.0.1 + set.prototype.difference@1.1.7: + dependencies: + call-bind: 1.0.8 + call-bound: 1.0.4 + define-properties: 1.2.1 + es-abstract: 1.24.2 + es-errors: 1.3.0 + es-set: 1.1.2 + is-set: 2.0.3 + stop-iteration-iterator: 1.1.0 + + set.prototype.intersection@1.1.8: + dependencies: + call-bind: 1.0.8 + define-properties: 1.2.1 + es-abstract: 1.24.2 + es-errors: 1.3.0 + es-set: 2.0.1 + is-set: 2.0.3 + stop-iteration-iterator: 1.1.0 + + set.prototype.isdisjointfrom@1.1.5: + dependencies: + call-bind: 1.0.8 + define-properties: 1.2.1 + es-abstract: 1.24.2 + es-errors: 1.3.0 + es-set: 1.1.2 + is-set: 2.0.3 + stop-iteration-iterator: 1.1.0 + + set.prototype.issubsetof@1.1.4: + dependencies: + call-bind: 1.0.8 + define-properties: 1.2.1 + es-abstract: 1.24.2 + es-errors: 1.3.0 + es-set: 1.1.2 + is-set: 2.0.3 + stop-iteration-iterator: 1.1.0 + + set.prototype.issupersetof@1.1.3: + dependencies: + call-bind: 1.0.8 + define-properties: 1.2.1 + es-abstract: 1.24.2 + es-errors: 1.3.0 + es-set: 1.1.2 + is-set: 2.0.3 + stop-iteration-iterator: 1.1.0 + setprototypeof@1.2.0: {} shallow-equal@1.2.1: {} @@ -29528,8 +30317,8 @@ snapshots: string.prototype.matchall@4.0.8: dependencies: - call-bind: 1.0.7 - define-properties: 1.2.0 + call-bind: 1.0.8 + define-properties: 1.2.1 es-abstract: 1.22.1 get-intrinsic: 1.3.0 has-symbols: 1.1.0 @@ -29537,24 +30326,47 @@ snapshots: regexp.prototype.flags: 1.5.1 side-channel: 1.1.0 + string.prototype.trim@1.2.10: + dependencies: + call-bind: 1.0.8 + call-bound: 1.0.4 + define-data-property: 1.1.4 + define-properties: 1.2.1 + es-abstract: 1.24.2 + es-object-atoms: 1.1.1 + has-property-descriptors: 1.0.2 + string.prototype.trim@1.2.7: dependencies: - call-bind: 1.0.2 - define-properties: 1.2.0 + call-bind: 1.0.8 + define-properties: 1.2.1 es-abstract: 1.22.1 string.prototype.trimend@1.0.6: dependencies: - call-bind: 1.0.2 - define-properties: 1.2.0 + call-bind: 1.0.8 + define-properties: 1.2.1 es-abstract: 1.22.1 + string.prototype.trimend@1.0.9: + dependencies: + call-bind: 1.0.8 + call-bound: 1.0.4 + define-properties: 1.2.1 + es-object-atoms: 1.1.1 + string.prototype.trimstart@1.0.6: dependencies: - call-bind: 1.0.2 - define-properties: 1.2.0 + call-bind: 1.0.8 + define-properties: 1.2.1 es-abstract: 1.22.1 + string.prototype.trimstart@1.0.8: + dependencies: + call-bind: 1.0.8 + define-properties: 1.2.1 + es-object-atoms: 1.1.1 + string_decoder@1.1.1: dependencies: safe-buffer: 5.1.2 @@ -29637,19 +30449,9 @@ snapshots: stylis@4.2.0: {} - sucrase@3.34.0: - dependencies: - '@jridgewell/gen-mapping': 0.3.3 - commander: 4.1.1 - glob: 7.1.6 - lines-and-columns: 1.2.4 - mz: 2.7.0 - pirates: 4.0.6 - ts-interface-checker: 0.1.13 - sucrase@3.35.0: dependencies: - '@jridgewell/gen-mapping': 0.3.5 + '@jridgewell/gen-mapping': 0.3.13 commander: 4.1.1 glob: 10.4.5 lines-and-columns: 1.2.4 @@ -29676,15 +30478,15 @@ snapshots: dependencies: '@babel/runtime': 7.27.1 - tailwind-scrollbar@3.1.0(tailwindcss@3.4.15(ts-node@10.9.2(@types/node@22.17.0)(typescript@5.5.2))): + tailwind-scrollbar@3.1.0(tailwindcss@3.4.15(ts-node@10.9.2(@types/node@22.17.0)(typescript@5.6.2))): dependencies: - tailwindcss: 3.4.15(ts-node@10.9.2(@types/node@22.17.0)(typescript@5.5.2)) + tailwindcss: 3.4.15(ts-node@10.9.2(@types/node@22.17.0)(typescript@5.6.2)) - tailwindcss-animate@1.0.7(tailwindcss@3.4.15(ts-node@10.9.2(@types/node@22.17.0)(typescript@5.5.2))): + tailwindcss-animate@1.0.7(tailwindcss@3.4.15(ts-node@10.9.2(@types/node@22.17.0)(typescript@5.6.2))): dependencies: - tailwindcss: 3.4.15(ts-node@10.9.2(@types/node@22.17.0)(typescript@5.5.2)) + tailwindcss: 3.4.15(ts-node@10.9.2(@types/node@22.17.0)(typescript@5.6.2)) - tailwindcss@3.4.15(ts-node@10.9.2(@types/node@22.17.0)(typescript@5.5.2)): + tailwindcss@3.4.15(ts-node@10.9.2(@types/node@22.17.0)(typescript@5.6.2)): dependencies: '@alloc/quick-lru': 5.2.0 arg: 5.0.2 @@ -29703,7 +30505,7 @@ snapshots: postcss: 8.4.49 postcss-import: 15.1.0(postcss@8.4.49) postcss-js: 4.0.1(postcss@8.4.49) - postcss-load-config: 4.0.2(postcss@8.4.49)(ts-node@10.9.2(@types/node@22.17.0)(typescript@5.5.2)) + postcss-load-config: 4.0.2(postcss@8.4.49)(ts-node@10.9.2(@types/node@22.17.0)(typescript@5.6.2)) postcss-nested: 6.2.0(postcss@8.4.49) postcss-selector-parser: 6.1.2 resolve: 1.22.8 @@ -29894,7 +30696,7 @@ snapshots: ts-interface-checker@0.1.13: {} - ts-node@10.9.2(@types/node@22.17.0)(typescript@5.5.2): + ts-node@10.9.2(@types/node@22.17.0)(typescript@5.6.2): dependencies: '@cspotcode/source-map-support': 0.8.1 '@tsconfig/node10': 1.0.11 @@ -29908,7 +30710,7 @@ snapshots: create-require: 1.1.1 diff: 4.0.2 make-error: 1.3.6 - typescript: 5.5.2 + typescript: 5.6.2 v8-compile-cache-lib: 3.0.1 yn: 3.1.1 @@ -29929,34 +30731,38 @@ snapshots: tslib@2.8.1: {} - tsup@8.0.1(@microsoft/api-extractor@7.58.2(@types/node@22.17.0))(postcss@8.5.6)(ts-node@10.9.2(@types/node@22.17.0)(typescript@5.5.2))(typescript@5.5.2): + tsup@8.3.5(@microsoft/api-extractor@7.58.2(@types/node@22.17.0))(jiti@2.4.2)(postcss@8.5.6)(tsx@4.19.4)(typescript@5.6.2)(yaml@2.8.2): dependencies: - bundle-require: 4.0.1(esbuild@0.19.11) + bundle-require: 5.1.0(esbuild@0.24.2) cac: 6.7.14 - chokidar: 3.5.3 - debug: 4.3.7 - esbuild: 0.19.11 - execa: 5.1.1 - globby: 11.1.0 + chokidar: 4.0.3 + consola: 3.4.2 + debug: 4.4.1 + esbuild: 0.24.2 joycon: 3.1.1 - postcss-load-config: 4.0.1(postcss@8.5.6)(ts-node@10.9.2(@types/node@22.17.0)(typescript@5.5.2)) + picocolors: 1.1.1 + postcss-load-config: 6.0.1(jiti@2.4.2)(postcss@8.5.6)(tsx@4.19.4)(yaml@2.8.2) resolve-from: 5.0.0 rollup: 4.59.0 source-map: 0.8.0-beta.0 - sucrase: 3.34.0 + sucrase: 3.35.0 + tinyexec: 0.3.2 + tinyglobby: 0.2.15 tree-kill: 1.2.2 optionalDependencies: '@microsoft/api-extractor': 7.58.2(@types/node@22.17.0) postcss: 8.5.6 - typescript: 5.5.2 + typescript: 5.6.2 transitivePeerDependencies: + - jiti - supports-color - - ts-node + - tsx + - yaml - tsutils@3.21.0(typescript@5.5.2): + tsutils@3.21.0(typescript@5.6.2): dependencies: tslib: 1.14.1 - typescript: 5.5.2 + typescript: 5.6.2 tsx@4.19.4: dependencies: @@ -30003,34 +30809,67 @@ snapshots: typed-array-buffer@1.0.0: dependencies: - call-bind: 1.0.2 + call-bind: 1.0.8 get-intrinsic: 1.3.0 is-typed-array: 1.1.12 + typed-array-buffer@1.0.3: + dependencies: + call-bound: 1.0.4 + es-errors: 1.3.0 + is-typed-array: 1.1.15 + typed-array-byte-length@1.0.0: dependencies: - call-bind: 1.0.2 + call-bind: 1.0.8 for-each: 0.3.3 has-proto: 1.0.1 is-typed-array: 1.1.12 + typed-array-byte-length@1.0.3: + dependencies: + call-bind: 1.0.8 + for-each: 0.3.5 + gopd: 1.2.0 + has-proto: 1.2.0 + is-typed-array: 1.1.15 + typed-array-byte-offset@1.0.0: dependencies: available-typed-arrays: 1.0.5 - call-bind: 1.0.2 + call-bind: 1.0.8 for-each: 0.3.3 has-proto: 1.0.1 is-typed-array: 1.1.12 + typed-array-byte-offset@1.0.4: + dependencies: + available-typed-arrays: 1.0.7 + call-bind: 1.0.8 + for-each: 0.3.5 + gopd: 1.2.0 + has-proto: 1.2.0 + is-typed-array: 1.1.15 + reflect.getprototypeof: 1.0.10 + typed-array-length@1.0.4: dependencies: - call-bind: 1.0.2 + call-bind: 1.0.8 for-each: 0.3.3 is-typed-array: 1.1.12 + typed-array-length@1.0.7: + dependencies: + call-bind: 1.0.8 + for-each: 0.3.5 + gopd: 1.2.0 + is-typed-array: 1.1.15 + possible-typed-array-names: 1.1.0 + reflect.getprototypeof: 1.0.10 + typescript@4.5.2: {} - typescript@5.5.2: {} + typescript@5.6.2: {} typescript@5.9.3: {} @@ -30047,11 +30886,18 @@ snapshots: unbox-primitive@1.0.2: dependencies: - call-bind: 1.0.2 + call-bind: 1.0.8 has-bigints: 1.0.2 has-symbols: 1.1.0 which-boxed-primitive: 1.0.2 + unbox-primitive@1.1.0: + dependencies: + call-bound: 1.0.4 + has-bigints: 1.0.2 + has-symbols: 1.1.0 + which-boxed-primitive: 1.1.1 + unbzip2-stream@1.4.3: dependencies: buffer: 5.7.1 @@ -30304,18 +31150,18 @@ snapshots: - supports-color - terser - vite-plugin-dts@4.5.4(@types/node@22.17.0)(rollup@4.59.0)(typescript@5.5.2)(vite@5.4.21(@types/node@22.17.0)(terser@5.44.1)): + vite-plugin-dts@4.5.4(@types/node@22.17.0)(rollup@4.59.0)(typescript@5.6.2)(vite@5.4.21(@types/node@22.17.0)(terser@5.44.1)): dependencies: '@microsoft/api-extractor': 7.58.2(@types/node@22.17.0) '@rollup/pluginutils': 5.3.0(rollup@4.59.0) '@volar/typescript': 2.4.28 - '@vue/language-core': 2.2.0(typescript@5.5.2) + '@vue/language-core': 2.2.0(typescript@5.6.2) compare-versions: 6.1.1 debug: 4.4.1 kolorist: 1.8.0 local-pkg: 1.1.2 magic-string: 0.30.17 - typescript: 5.5.2 + typescript: 5.6.2 optionalDependencies: vite: 5.4.21(@types/node@22.17.0)(terser@5.44.1) transitivePeerDependencies: @@ -30395,11 +31241,11 @@ snapshots: - supports-color - terser - vitest@3.2.4(@types/debug@4.1.12)(@types/node@22.17.0)(jsdom@27.2.0)(msw@2.2.11(typescript@5.5.2))(terser@5.44.1): + vitest@3.2.4(@types/debug@4.1.12)(@types/node@22.17.0)(jsdom@27.2.0)(msw@2.2.11(typescript@5.6.2))(terser@5.44.1): dependencies: '@types/chai': 5.2.2 '@vitest/expect': 3.2.4 - '@vitest/mocker': 3.2.4(msw@2.2.11(typescript@5.5.2))(vite@5.4.21(@types/node@22.17.0)(terser@5.44.1)) + '@vitest/mocker': 3.2.4(msw@2.2.11(typescript@5.6.2))(vite@5.4.21(@types/node@22.17.0)(terser@5.44.1)) '@vitest/pretty-format': 3.2.4 '@vitest/runner': 3.2.4 '@vitest/snapshot': 3.2.4 @@ -30593,6 +31439,30 @@ snapshots: is-string: 1.0.7 is-symbol: 1.0.4 + which-boxed-primitive@1.1.1: + dependencies: + is-bigint: 1.1.0 + is-boolean-object: 1.2.2 + is-number-object: 1.1.1 + is-string: 1.1.1 + is-symbol: 1.1.1 + + which-builtin-type@1.2.1: + dependencies: + call-bound: 1.0.4 + function.prototype.name: 1.1.8 + has-tostringtag: 1.0.2 + is-async-function: 2.1.1 + is-date-object: 1.1.0 + is-finalizationregistry: 1.1.1 + is-generator-function: 1.1.2 + is-regex: 1.2.1 + is-weakref: 1.1.1 + isarray: 2.0.5 + which-boxed-primitive: 1.1.1 + which-collection: 1.0.2 + which-typed-array: 1.1.19 + which-collection@1.0.2: dependencies: is-map: 2.0.3 @@ -30603,7 +31473,7 @@ snapshots: which-typed-array@1.1.11: dependencies: available-typed-arrays: 1.0.5 - call-bind: 1.0.2 + call-bind: 1.0.8 for-each: 0.3.3 gopd: 1.2.0 has-tostringtag: 1.0.2 @@ -30723,8 +31593,6 @@ snapshots: yaml@1.10.2: {} - yaml@2.3.1: {} - yaml@2.5.1: {} yaml@2.6.1: {} diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index dfda311a18..6fb6bea214 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -21,7 +21,7 @@ packages: catalog: # Build/test tooling - typescript: 5.5.2 + typescript: 5.6.2 vitest: ^3.2.4 '@vitest/coverage-v8': 3.2.4 tsx: ^4.16.0 diff --git a/router-tests/.gitignore b/router-tests/.gitignore new file mode 100644 index 0000000000..de1f717048 --- /dev/null +++ b/router-tests/.gitignore @@ -0,0 +1,3 @@ +testdata/main/**/* +cmd/config-validator/router-configs/**/* +cmd/config-validator/routerconfigs/**/* \ No newline at end of file