PageSourceSearch

https://static.finda.co.kr/common-web/4.038.10/_next/static/chunks/4725.0fee09af17e8ea2b.js

js finda.co.kr collected 2026-10-02 03:28:41 UTC 331,242 bytes, 144 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4725],{2812:e=>{function t(e,t,n,r){return Math.round(e/n)+" "+r+(t>=1.5*n?"s":"")}e.exports=function(e,n){n=n||{};var r,i,o,a,s=typeof e;if("string"===s&&e.length>0){var l=e;if(!((l=String(l)).length>100)){var u=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(l);if(u){var c=parseFloat(u[1]);switch((u[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*c;case"weeks":case"week":case"w":return 6048e5*c;case"days":case"day":case"d":return 864e5*c;case"hours":case"hour":case"hrs":case"hr":case"h":return 36e5*c;case"minutes":case"minute":case"mins":case"min":case"m":return 6e4*c;case"seconds":case"second":case"secs":case"sec":case"s":return 1e3*c;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:break}}}return}if("number"===s&&isFinite(e)){return n.long?(i=Math.abs(r=e))>=864e5?t(r,i,864e5,"day"):i>=36e5?t(r,i,36e5,"hour"):i>=6e4?t(r,i,6e4,"minute"):i>=1e3?t(r,i,1e3,"second"):r+" ms":(a=Math.abs(o=e))>=864e5?Math.round(o/864e5)+"d":a>=36e5?Math.round(o/36e5)+"h":a>=6e4?Math.round(o/6e4)+"m":a>=1e3?Math.round(o/1e3)+"s":o+"ms"}throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},7999:(e,t,n)=>{"use strict";var r=n(9378),i=n(97262),o=n(86657),a=n(97210);function s(e){return e.call.bind(e)}var l="undefined"!=typeof BigInt,u="undefined"!=typeof Symbol,c=s(Object.prototype.toString),p=s(Number.prototype.valueOf),f=s(String.prototype.valueOf),d=s(Boolean.prototype.valueOf);if(l)var h=s(BigInt.prototype.valueOf);if(u)var y=s(Symbol.prototype.valueOf);function m(e,t){if("object"!=typeof e)return!1;try{return t(e),!0}catch(e){return!1}}function v(e){return"[object Map]"===c(e)}function g(e){return"[object Set]"===c(e)}function E(e){return"[object WeakMap]"===c(e)}function b(e){return"[object WeakSet]"===c(e)}function T(e){return"[object ArrayBuffer]"===c(e)}function N(e){return"undefined"!=typeof ArrayBuffer&&(T.working?T(e):e instanceof ArrayBuffer)}function w(e){return"[object DataView]"===c(e)}function I(e){return"undefined"!=typeof DataView&&(w.working?w(e):e instanceof DataView)}t.isArgumentsObject=r,t.isGeneratorFunction=i,t.isTypedArray=a,t.isPromise=function(e){return"undefined"!=typeof Promise&&e instanceof Promise||null!==e&&"object"==typeof e&&"function"==typeof e.then&&"function"==typeof e.catch},t.isArrayBufferView=function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):a(e)||I(e)},t.isUint8Array=function(e){return"Uint8Array"===o(e)},t.isUint8ClampedArray=function(e){return"Uint8ClampedArray"===o(e)},t.isUint16Array=function(e){return"Uint16Array"===o(e)},t.isUint32Array=function(e){return"Uint32Array"===o(e)},t.isInt8Array=function(e){return"Int8Array"===o(e)},t.isInt16Array=function(e){return"Int16Array"===o(e)},t.isInt32Array=function(e){return"Int32Array"===o(e)},t.isFloat32Array=function(e){return"Float32Array"===o(e)},t.isFloat64Array=function(e){return"Float64Array"===o(e)},t.isBigInt64Array=function(e){return"BigInt64Array"===o(e)},t.isBigUint64Array=function(e){return"BigUint64Array"===o(e)},v.working="undefined"!=typeof Map&&v(new Map),t.isMap=function(e){return"undefined"!=typeof Map&&(v.working?v(e):e instanceof Map)},g.working="undefined"!=typeof Set&&g(new Set),t.isSet=function(e){return"undefined"!=typeof Set&&(g.working?g(e):e instanceof Set)},E.working="undefined"!=typeof WeakMap&&E(new WeakMap),t.isWeakMap=function(e){return"undefined"!=typeof WeakMap&&(E.working?E(e):e instanceof WeakMap)},b.working="undefined"!=typeof WeakSet&&b(new WeakSet),t.isWeakSet=function(e){return b(e)},T.working="undefined"!=typeof ArrayBuffer&&T(new ArrayBuffer),t.isArrayBuffer=N,w.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&w(new DataView(new ArrayBuffer(1),0,1)),t.isDataView=I;var _="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function O(e){return"[object SharedArrayBuffer]"===c(e)}function S(e){return void 0!==_&&(void 0===O.working&&(O.working=O(new _)),O.working?O(e):e instanceof _)}function A(e){return m(e,p)}function x(e){return m(e,f)}function D(e){return m(e,d)}function R(e){return l&&m(e,h)}function C(e){return u&&m(e,y)}t.isSharedArrayBuffer=S,t.isAsyncFunction=function(e){return"[object AsyncFunction]"===c(e)},t.isMapIterator=function(e){return"[object Map Iterator]"===c(e)},t.isSetIterator=function(e){return"[object Set Iterator]"===c(e)},t.isGeneratorObject=function(e){return"[object Generator]"===c(e)},t.isWebAssemblyCompiledModule=function(e){return"[object WebAssembly.Module]"===c(e)},t.isNumberObject=A,t.isStringObject=x,t.isBooleanObject=D,t.isBigIntObject=R,t.isSymbolObject=C,t.isBoxedPrimitive=function(e){return A(e)||x(e)||D(e)||R(e)||C(e)},t.isAnyArrayBuffer=function(e){return"undefined"!=typeof Uint8Array&&(N(e)||S(e))},["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(t,e,{enumerable:!1,value:function(){throw Error(e+" is not supported in userland")}})})},9092:(e,t,n)=>{"use strict";var r=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw Error("unable to locate global object")}();e.exports=t=r.fetch,r.fetch&&(t.default=r.fetch.bind(r)),t.Headers=r.Headers,t.Request=r.Request,t.Response=r.Response},9378:(e,t,n)=>{"use strict";var r=n(25971)(),i=n(81368)("Object.prototype.toString"),o=function(e){return(!r||!e||"object"!=typeof e||!(Symbol.toStringTag in e))&&"[object Arguments]"===i(e)},a=function(e){return!!o(e)||null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==i(e)&&"[object Function]"===i(e.callee)},s=function(){return o(arguments)}();o.isLegacyArguments=a,e.exports=s?o:a},9957:(e,t)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.nextTickAsync=t.nextTick=void 0,t.nextTick=function(e){setTimeout(e,0)},t.nextTickAsync=function(e){return new Promise(function(t){setTimeout(function(){t(e())},0)})}},10315:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IS_PATCHED_MODULE=void 0,t.IS_PATCHED_MODULE=Symbol("isPatchedModule")},13376:(e,t,n)=>{"use strict";var r=n(40529),i=Object.prototype.toString,o=Object.prototype.hasOwnProperty,a=function(e,t,n){for(var r=0,i=e.length;r<i;r++)o.call(e,r)&&(null==n?t(e[r],r,e):t.call(n,e[r],r,e))},s=function(e,t,n){for(var r=0,i=e.length;r<i;r++)null==n?t(e.charAt(r),r,e):t.call(n,e.charAt(r),r,e)},l=function(e,t,n){for(var r in e)o.call(e,r)&&(null==n?t(e[r],r,e):t.call(n,e[r],r,e))};e.exports=function(e,t,n){var o;if(!r(t))throw TypeError("iterator must be a function");arguments.length>=3&&(o=n),"[object Array]"===i.call(e)?a(e,t,o):"string"==typeof e?s(e,t,o):l(e,t,o)}},14362:(e,t,n)=>{"use strict";var r=Function.prototype.call,i=Object.prototype.hasOwnProperty;e.exports=n(38763).call(r,i)},14725:(e,t,n)=>{"use strict";var r=Object.create,i=Object.defineProperty,o=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,s=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,u=(e,t)=>{for(var n in t)i(e,n,{get:t[n],enumerable:!0})},c=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let s of a(t))l.call(e,s)||s===n||i(e,s,{get:()=>t[s],enumerable:!(r=o(t,s))||r.enumerable});return e},p=(e,t,n)=>(n=null!=e?r(s(e)):{},c(!t&&e&&e.__esModule?n:i(n,"default",{value:e,enumerable:!0}),e)),f={};u(f,{GraphQLHandler:()=>eY,MockedRequest:()=>ec,RESTMethods:()=>eM,RequestHandler:()=>ej,RestHandler:()=>eV,SetupApi:()=>te,SetupWorkerApi:()=>tt,cleanUrl:()=>eO,compose:()=>ex,context:()=>d,createResponseComposition:()=>eC,defaultContext:()=>eP,defaultResponse:()=>eD,graphql:()=>ts,graphqlContext:()=>eG,handleRequest:()=>eJ,matchRequestUrl:()=>eS,response:()=>eL,rest:()=>ti,restContext:()=>e$,setupWorker:()=>tn}),e.exports=c(i({},"__esModule",{value:!0}),f);var d={};u(d,{body:()=>b,cookie:()=>E,data:()=>_,delay:()=>x,errors:()=>D,extensions:()=>O,fetch:()=>F,json:()=>I,set:()=>v,status:()=>y,text:()=>P,xml:()=>j});var h={100:"Continue",101:"Switching Protocols",102:"Processing",103:"Early Hints",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a Teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Too Early",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"},y=(e,t)=>n=>(n.status=e,n.statusText=t||h[String(e)],n),m=n(57299);function v(...e){return t=>{let[n,r]=e;return"string"==typeof n?t.headers.append(n,r):(0,m.objectToHeaders)(n).forEach((e,n)=>{t.headers.append(n,e)}),t}}var g=p(n(77789)),E=(e,t,n)=>r=>{let i=g.serialize(e,t,n);return r.headers.append("Set-Cookie",i),"undefined"!=typeof document&&(document.cookie=i),r},b=e=>t=>(t.body=e,t);function T(e){try{return JSON.parse(e)}catch(e){return}}function N(e){return null!=e&&"object"==typeof e&&!Array.isArray(e)}function w(e,t){return Object.entries(t).reduce((e,[t,n])=>{let r=e[t];return Array.isArray(r)&&Array.isArray(n)?e[t]=r.concat(n):N(r)&&N(n)?e[t]=w(r,n):e[t]=n,e},Object.assign({},e))}var I=e=>t=>(t.headers.set("Content-Type","application/json"),t.body=JSON.stringify(e),t),_=e=>t=>I(w(T(t.body)||{},{data:e}))(t),O=e=>t=>I(w(T(t.body)||{},{extensions:e}))(t),S=n(23747),A=()=>(0,S.isNodeProcess)()?5:Math.floor(300*Math.random()+100),x=e=>t=>{let n;if("string"==typeof e)switch(e){case"infinite":n=0x7fffffff;break;case"real":n=A();break;default:throw Error(`Failed to delay a response: unknown delay mode "${e}". Please make sure you provide one of the supported modes ("real", "infinite") or a number to "ctx.delay".`)}else if(void 0===e)n=A();else{if(e>0x7fffffff)throw Error(`Failed to delay a response: provided delay duration (${e}) exceeds the maximum allowed duration for "setTimeout" (2147483647). This will cause the response to be returned immediately. Please use a number within the allowed range to delay the response by exact duration, or consider the "infinite" delay mode to delay the response indefinitely.`);n=e}return t.delay=n,t},D=e=>t=>null==e?t:I(w(T(t.body)||{},{errors:e}))(t),R=n(23747),C=n(57299),L=(0,R.isNodeProcess)()?(e,t)=>Promise.resolve().then(()=>p(n(9092))).then(({default:n})=>n(e,t)):globalThis.fetch,k=e=>{let t=new C.Headers(e.headers);return t.set("x-msw-bypass","true"),{...e,headers:t.all()}},F=(e,t={})=>
1{if("string"==typeof e)return L(e,k(t));let n=k((e=>{let{body:t,method:n}=e,r={...e,body:void 0};return["GET","HEAD"].includes(n)||("object"==typeof t||"number"==typeof t||"boolean"==typeof t?r.body=JSON.stringify(t):r.body=t),r})(e));return L(e.url.href,n)},P=e=>t=>(t.headers.set("Content-Type","text/plain"),t.body=e,t),j=e=>t=>(t.headers.set("Content-Type","text/xml"),t.body=e,t),M=n(73910),$=n(73910);function U(e,...t){let n=(0,$.format)(e,...t);return`[MSW] ${n}`}var V={formatMessage:U,warn:function(e,...t){console.warn(U(e,...t))},error:function(e,...t){console.error(U(e,...t))}},B=n(73910),q=n(23747),G=n(99567),H=n(99567);function Y(e,t,n){return[e.active,e.installing,e.waiting].filter(e=>null!=e).find(e=>n(e.scriptURL,t))||null}var Q=async(e,t={},n)=>{let r=new URL(e,location.href).href,i=await navigator.serviceWorker.getRegistrations().then(e=>e.filter(e=>Y(e,r,n)));!navigator.serviceWorker.controller&&i.length>0&&location.reload();let[o]=i;if(o)return o.update().then(()=>[Y(o,r,n),o]);let[a,s]=await (0,H.until)(async()=>{let i=await navigator.serviceWorker.register(e,t);return[Y(i,r,n),i]});if(a){if(a.message.includes("(404)")){let e=new URL((null==t?void 0:t.scope)||"/",location.href);throw Error(V.formatMessage(`Failed to register a Service Worker for scope ('${e.href}') with script ('${r}'): Service Worker script does not exist at the given path.
2
3Did you forget to run "npx msw init <PUBLIC_DIR>"?
4
5Learn more about creating the Service Worker script: https://mswjs.io/docs/cli/init`))}throw Error(V.formatMessage("Failed to register the Service Worker:\n\n%s",a.message))}return s};function J(e={}){if(e.quiet)return;let t=e.message||"Mocking enabled.";console.groupCollapsed(`%c${V.formatMessage(t)}`,"color:orangered;font-weight:bold;"),console.log("%cDocumentation: %chttps://mswjs.io/docs","font-weight:bold","font-weight:normal"),console.log("Found an issue? https://github.com/mswjs/msw/issues"),e.workerUrl&&console.log("Worker script URL:",e.workerUrl),e.workerScope&&console.log("Worker scope:",e.workerScope),console.groupEnd()}async function W(e,t){var n,r;if(e.workerChannel.send("MOCK_ACTIVATE"),await e.events.once("MOCKING_ENABLED"),e.isMockingEnabled)return void V.warn('Found a redundant "worker.start()" call. Note that starting the worker while mocking is already enabled will have no effect. Consider removing this "worker.start()" call.');e.isMockingEnabled=!0,J({quiet:t.quiet,workerScope:null==(n=e.registration)?void 0:n.scope,workerUrl:null==(r=e.worker)?void 0:r.scriptURL})}var X=class{constructor(e){this.port=e}postMessage(e,...t){let[n,r]=t;this.port.postMessage({type:e,data:n},{transfer:r})}},z=class extends Error{constructor(e){super(e),this.name="NetworkError"}},K=n(37105),Z=n(57299),ee=p(n(77789)),et=n(15009),en=n(37105),er=n(41176),ei=n(57299),eo=p(n(77789));function ea(){return eo.parse(document.cookie)}var es=n(57299);function el(e,t){var n;if(!e)return e;let r=(null==(n=null==t?void 0:t.get("content-type"))?void 0:n.toLowerCase())||"";return r.startsWith("multipart/form-data")&&"object"!=typeof e?function(e,t){let n=null==t?void 0:t.get("content-type");if(!n)return;let[,...r]=n.split(/; */),i=r.filter(e=>e.startsWith("boundary=")).map(e=>e.replace(/^boundary=/,""))[0];if(!i)return;let o=RegExp(`--+${i}`),a=e.split(o).filter(e=>e.startsWith("\r\n")&&e.endsWith("\r\n")).map(e=>e.trimStart().replace(/\r\n$/,""));if(!a.length)return;let s={};try{for(let e of a){let[t,...n]=e.split("\r\n\r\n"),r=n.join("\r\n\r\n"),{contentType:i,filename:o,name:a}=function(e){var t,n;let r=(0,es.stringToHeaders)(e),i=r.get("content-type")||"text/plain",o=r.get("content-disposition");if(!o)throw Error('"Content-Disposition" header is required.');let a=o.split(";").reduce((e,t)=>{let[n,...r]=t.trim().split("=");return e[n]=r.join("="),e},{});return{name:null==(t=a.name)?void 0:t.slice(1,-1),filename:null==(n=a.filename)?void 0:n.slice(1,-1),contentType:i}}(t),l=void 0===o?r:new File([r],o,{type:i}),u=s[a];void 0===u?s[a]=l:Array.isArray(u)?s[a]=[...u,l]:s[a]=[u,l]}return s}catch(e){return}}(e.toString(),t)||e:r.includes("json")&&"object"!=typeof e&&T(e.toString())||e}function eu(e,t){return e.toLowerCase()===t.toLowerCase()}var ec=class extends en.IsomorphicRequest{constructor(e,t={}){super(e,t),t.id&&(this.id=t.id),this.cache=t.cache||"default",this.destination=t.destination||"",this.integrity=t.integrity||"",this.keepalive=t.keepalive||!1,this.mode=t.mode||"cors",this.priority=t.priority||"auto",this.redirect=t.redirect||"follow",this.referrer=t.referrer||"",this.referrerPolicy=t.referrerPolicy||"no-referrer",this.cookies=t.cookies||this.getCookies()}get body(){let e=el((0,er.decodeBuffer)(this._body),this.headers);if(!eu(this.method,"GET")||""!==e)return e}passthrough(){return{status:101,statusText:"Continue",headers:new ei.Headers,body:null,passthrough:!0,once:!1}}getCookies(){var e;let t=this.headers.get("cookie"),n=t?ee.parse(t):{};et.store.hydrate();let r=Array.from(null==(e=et.store.get({...this,url:this.url.href}))?void 0:e.entries()).reduce((e,[t,{value:n}])=>Object.assign(e,{[t.trim()]:n}),{}),i={...function(e){if("undefined"==typeof document||"undefined"==typeof location)return{};switch(e.credentials){case"same-origin":return location.origin===e.url.origin?ea():{};case"include":return ea();default:return{}}}(this),...r};for(let[e,t]of Object.entries(i))this.headers.append("cookie",`${e}=${t}`);return{...i,...n}}},ep=n(99567),ef=async(e,t,n)=>{let r=t.filter(t=>t.test(e,n));if(0===r.length)return{handler:void 0,response:void 0};let i=await r.reduce(async(t,r)=>{let i=await t;if(null==i?void 0:i.response)return t;let o=await r.run(e,n);return null===o||o.handler.shouldSkip?null:o.response?(o.response.once&&r.markAsSkipped(!0),o):{request:o.request,handler:o.handler,response:void 0,parsedResult:o.parsedResult}},Promise.resolve(null));return i?{handler:i.handler,publicRequest:i.request,parsedRequest:i.parsedResult,response:i.response}:{handler:void 0,response:void 0}},ed=p(n(60037)),eh=n(59840),ey=e=>e.referrer.startsWith(e.url.origin)?e.url.pathname:new URL(e.url.pathname,`${e.url.protocol}//${e.url.host}`).href;function em(e){var t;let n=e.definitions.find(e=>"OperationDefinition"===e.kind);return{operationType:null==n?void 0:n.operation,operationName:null==(t=null==n?void 0:n.name)?void 0:t.value}}function ev(e){let t=function(e){var t,n;switch(e.method){case"GET":return{query:e.url.searchParams.get("query"),variables:T(e.url.searchParams.get("variables")||"")};case"POST":if(null==(t=e.body)?void 0:t.query){let{query:t,variables:n}=e.body;return{query:t,variables:n}}if(null==(n=e.body)?void 0:n.operations){let{operations:t,map:n,...r}=e.body,i=T(t)||{};if(!i.query)return null;let o=T(n||"")||{},a=i.variables?function(e,t,n){let r={variables:e};for(let[e,i]of Object.entries(t)){if(!(e in n))throw Error(`Given files do not have a key '${e}' .`);for(let t of i){let[i,...o]=t.split(".").reverse(),a=o.reverse(),s=r;for(let e of a){if(!(e in s))throw Error(`Property '${a}' is not in operations.`);s=s[e]}s[i]=n[e]}}return r.variables}(i.variables,o,r):{};return{query:i.query,variables:a}}default:return null}}(e);if(!t||!t.query)return;let{query:n,variables:r}=t,i=function(e){try{let t=(0,eh.parse)(e);return em(t)}catch(e){return e}}(n);if(i instanceof Error){let t=ey(e);throw Error(V.formatMessage('Failed to intercept a GraphQL request to "%s %s": cannot parse query. See the error message from the parser below.\n\n%s',e.method,t,i.message))}return{operationType:i.operationType,operationName:i.operationName,variables:r}}function eg(e){return e<300?"#69AB32":e<400?"#F0BB4B":"#E95F5D"}function eE(){let e=new Date;return[e.getHours(),e.getMinutes(),e.getSeconds()].map(String).map(e=>e.slice(0,2)).map(e=>e.padStart(2,"0")).join(":")}function eb(e){return{...e,body:e.body,headers:e.headers.all()}}var eT=n(57299);function eN(e){let t=(0,eT.objectToHeaders)(e.headers);return{...e,body:el(e.body,t)}}var ew=n(96366),eI=n(79837),e_=/[\?|#].*$/g;function eO(e){return e.replace(e_,"")}
5function eS(e,t,n){let r=t instanceof RegExp?t:eO(function(e,t){if(/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)||e.startsWith("*"))return e;let n=t||"undefined"!=typeof document&&document.baseURI;return n?decodeURI(new URL(encodeURI(e),n).href):e}(t,n)),i="string"==typeof r?r.replace(/([:a-zA-Z_-]*)(\*{1,2})+/g,(e,t,n)=>{let r="(.*)";return t?t.startsWith(":")?`${t}${n}`:`${t}${r}`:r}).replace(/([^\/])(:)(?=\d+)/,"$1\\$2").replace(/^([^\/]+)(:)(?=\/\/)/,"$1\\$2"):r,o=(0,eI.getCleanUrl)(e),a=(0,ew.match)(i,{decode:decodeURIComponent})(o),s=a&&a.params||{};return{matches:!1!==a,params:s}}n(57299);var eA=n(57299);function ex(...e){return(...t)=>e.reduceRight((e,t)=>e instanceof Promise?Promise.resolve(e).then(t):t(e),t[0])}var eD={status:200,statusText:"OK",body:null,delay:0,once:!1,passthrough:!1},eR=[];function eC(e,t=eR){return async(...n)=>{let r=Object.assign({},eD,{headers:new eA.Headers({"x-powered-by":"msw"})},e),i=[...t,...n].filter(Boolean);return i.length>0?ex(...i)(r):r}}var eL=Object.assign(eC(),{once:eC({once:!0}),networkError(e){throw new z(e)}}),ek=/[\/\\]msw[\/\\]src[\/\\](.+)/,eF=/(node_modules)?[\/\\]lib[\/\\](umd|esm|iief|cjs)[\/\\]|^[^\/\\]*$/,eP={status:y,set:v,delay:x,fetch:F},ej=class{constructor(e){this.shouldSkip=!1,this.ctx=e.ctx||eP,this.resolver=e.resolver;let t=function(e){let t=e.stack;if(!t)return;let n=t.split("\n").slice(1).find(e=>!(ek.test(e)||eF.test(e)));if(n)return n.replace(/\s*at [^()]*\(([^)]+)\)/,"$1").replace(/^@/,"")}(Error());this.info={...e.info,callFrame:t}}parse(e,t){return null}test(e,t){return this.predicate(e,this.parse(e,t),t)}getPublicRequest(e,t){return e}markAsSkipped(e=!0){this.shouldSkip=e}async run(e,t){if(this.shouldSkip)return null;let n=this.parse(e,t);if(!this.predicate(e,n,t))return null;let r=this.getPublicRequest(e,n),i=this.wrapResolver(this.resolver),o=await i(r,eL,this.ctx);return this.createExecutionResult(n,r,o)}wrapResolver(e){return async(t,n,r)=>{let i=this.resolverGenerator||await e(t,n,r);if(i&&"function"==typeof i[Symbol.iterator]){let{value:e,done:t}=i[Symbol.iterator]().next(),n=await e;return!n&&t?this.resolverGeneratorResult:(this.resolverGenerator||(this.resolverGenerator=i),this.resolverGeneratorResult=n,n)}return i}}createExecutionResult(e,t,n){return{handler:this,parsedResult:e||null,request:t,response:n||null}}},eM=(e=>(e.HEAD="HEAD",e.GET="GET",e.POST="POST",e.PUT="PUT",e.PATCH="PATCH",e.OPTIONS="OPTIONS",e.DELETE="DELETE",e))(eM||{}),e$={...eP,cookie:E,body:b,text:P,json:I,xml:j},eU=class extends ec{constructor(e,t){super(e.url,{...e,body:e._body}),this.params=t,this.id=e.id}},eV=class extends ej{constructor(e,t,n){super({info:{header:`${e} ${t}`,path:t,method:e},ctx:e$,resolver:n}),this.checkRedundantQueryParameters()}checkRedundantQueryParameters(){let{method:e,path:t}=this.info;if(t instanceof RegExp||eO(t)===t)return;let n=new URL(`/${t}`,"http://localhost").searchParams,r=[];n.forEach((e,t)=>{r.push(t)}),V.warn(`Found a redundant usage of query parameters in the request handler URL for "${e} ${t}". Please match against a path instead and access query parameters in the response resolver function using "req.url.searchParams".`)}parse(e,t){return eS(e.url,this.info.path,null==t?void 0:t.baseUrl)}getPublicRequest(e,t){return new eU(e,t.params||{})}predicate(e,t){return(this.info.method instanceof RegExp?this.info.method.test(e.method):eu(this.info.method,e.method))&&t.matches}log(e,t){let n=ey(e),r=eb(e),i=eN(t),o=eg(t.status);console.groupCollapsed(V.formatMessage("%s %s %s (%c%s%c)"),eE(),e.method,n,`color:${o}`,`${t.status} ${t.statusText}`,"color:inherit"),console.log("Request",r),console.log("Handler:",this),console.log("Response",i),console.groupEnd()}},eB=n(73910);function eq(e,t){try{return e()}catch(e){null==t||t(e)}}var eG={...eP,data:_,extensions:O,errors:D,cookie:E,field:(e,t)=>n=>((function(e){(0,eB.invariant)(""!==e.trim(),V.formatMessage("Failed to set a custom field on a GraphQL response: field name cannot be empty.")),(0,eB.invariant)("data"!==e,V.formatMessage('Failed to set a custom "%s" field on a mocked GraphQL response: forbidden field name. Did you mean to call "ctx.data()" instead?',e)),(0,eB.invariant)("errors"!==e,V.formatMessage('Failed to set a custom "%s" field on a mocked GraphQL response: forbidden field name. Did you mean to call "ctx.errors()" instead?',e)),(0,eB.invariant)("extensions"!==e,V.formatMessage('Failed to set a custom "%s" field on a mocked GraphQL response: forbidden field name. Did you mean to call "ctx.extensions()" instead?',e))})(e),I(w(T(n.body)||{},{[e]:t}))(n))},eH=class extends ec{constructor(e,t,n){super(e.url,{...e,body:e._body}),this.variables=t,this.operationName=n}},eY=class extends ej{constructor(e,t,n,r){let i=t;if(function(e){return null!=e&&"object"==typeof e&&"kind"in e&&"definitions"in e}(t)){let n=em(t);if(n.operationType!==e)throw Error(`Failed to create a GraphQL handler: provided a DocumentNode with a mismatched operation type (expected "${e}", but got "${n.operationType}").`);if(!n.operationName)throw Error("Failed to create a GraphQL handler: provided a DocumentNode with no operation name.");i=n.operationName}super({info:{header:"all"===e?`${e} (origin: ${n.toString()})`:`${e} ${i} (origin: ${n.toString()})`,operationType:e,operationName:i},ctx:eG,resolver:r}),this.endpoint=n}parse(e){return eq(()=>ev(e),e=>console.error(e.message))}getPublicRequest(e,t){var n,r;return new eH(e,null!=(n=null==t?void 0:t.variables)?n:{},null!=(r=null==t?void 0:t.operationName)?r:"")}predicate(e,t){if(!t)return!1;if(!t.operationName&&"all"!==this.info.operationType){let t=ey(e);return V.warn(`Failed to intercept a GraphQL request at "${e.method} ${t}": anonymous GraphQL operations are not supported.
6
7Consider naming this operation or using "graphql.operation()" request handler to intercept GraphQL requests regardless of their operation name/type. Read more: https://mswjs.io/docs/api/graphql/operation      `),!1}let n=eS(e.url,this.endpoint),r="all"===this.info.operationType||t.operationType===this.info.operationType,i=this.info.operationName instanceof RegExp?this.info.operationName.test(t.operationName||""):t.operationName===this.info.operationName;return n.matches&&r&&i}log(e,t,n){let r=eb(e),i=eN(t),o=eg(t.status),a=(null==n?void 0:n.operationName)?`${null==n?void 0:n.operationType} ${null==n?void 0:n.operationName}`:`anonymous ${null==n?void 0:n.operationType}`;console.groupCollapsed(V.formatMessage("%s %s (%c%s%c)"),eE(),`${a}`,`color:${o}`,`${t.status} ${t.statusText}`,"color:inherit"),console.log("Request:",r),console.log("Handler:",this),console.log("Response:",i),console.groupEnd()}},eQ=n(15009);async function eJ(e,t,n,r,i){var o,a,s,l,u,c;if(r.emit("request:start",e),"true"===e.headers.get("x-msw-bypass")){r.emit("request:end",e),null==(o=null==i?void 0:i.onPassthroughResponse)||o.call(i,e);return}let[p,f]=await (0,ep.until)(()=>ef(e,t,null==i?void 0:i.resolutionContext));if(p)throw r.emit("unhandledException",p,e),p;let{handler:d,response:h}=f;if(!d){!function(e,t,n="warn"){let r=eq(()=>ev(e));function i(n){let i=function(){let n=ey(e),i=r?`${r.operationType} ${r.operationName} (${e.method} ${n})`:`${e.method} ${n}`;return["captured a request without a matching request handler:",`  \u2022 ${i}`,function(){var n;let i=t.reduce((e,t)=>
7(t instanceof eV&&e.rest.push(t),t instanceof eY&&e.graphql.push(t),e),{rest:[],graphql:[]}),o=r?i.graphql:i.rest,a=(n=r?(e,t)=>{if(void 0===r.operationName)return 1/0;let{operationType:n,operationName:i}=t.info;if("string"!=typeof i)return 1/0;let o=r.operationType===n;return(0,ed.default)(r.operationName,i)-.5*!!o}:(e,t)=>{let{path:n,method:r}=t.info;if(n instanceof RegExp||r instanceof RegExp)return 1/0;let i=eu(e.method,r),o=ey(e);return(0,ed.default)(o,n)-.5*!!i},o.reduce((t,r)=>{let i=n(e,r);return t.concat([[i,r]])},[]).sort(([e],[t])=>e-t).filter(([e])=>e<=3).slice(0,4).map(([,e])=>e));return a.length>0?a.length>1?`Did you mean to request one of the following resources instead?
8
9${a.map(e=>`  \u2022 ${e.info.header}`).join("\n")}`:`Did you mean to request "${a[0].info.header}" instead?`:""}(),`If you still wish to intercept this unhandled request, please create a request handler for it.
10Read more: https://mswjs.io/docs/getting-started/mocks`].filter(Boolean).join("\n\n")}();switch(n){case"error":throw V.error("Error: %s",i),Error(V.formatMessage('Cannot bypass a request when using the "error" strategy for the "onUnhandledRequest" option.'));case"warn":V.warn("Warning: %s",i);break;case"bypass":break;default:throw Error(V.formatMessage('Failed to react to an unhandled request: unknown strategy "%s". Please provide one of the supported strategies ("bypass", "warn", "error") or a custom callback function as the value of the "onUnhandledRequest" option.',n))}}if("function"==typeof n)return n(e,{warning:i.bind(null,"warn"),error:i.bind(null,"error")});i(n)}(e,t,n.onUnhandledRequest),r.emit("request:unhandled",e),r.emit("request:end",e),null==(a=null==i?void 0:i.onPassthroughResponse)||a.call(i,e);return}if(!h){V.warn(`Expected response resolver to return a mocked response Object, but got %s. The original response is going to be used instead.
11
12  \u2022 %s
13    %s`,h,d.info.header,d.info.callFrame),r.emit("request:end",e),null==(s=null==i?void 0:i.onPassthroughResponse)||s.call(i,e);return}if(h.passthrough){r.emit("request:end",e),null==(l=null==i?void 0:i.onPassthroughResponse)||l.call(i,e);return}eQ.store.add({...e,url:e.url.toString()},h),eQ.store.persist(),r.emit("request:match",e);let y=(null==(u=null==i?void 0:i.transformResponse)?void 0:u.call(i,h))||h;return null==(c=null==i?void 0:i.onMockedResponse)||c.call(i,y,f),r.emit("request:end",e),y}var eW=n(57299);function eX(e){return{status:e.status,statusText:e.statusText,headers:(0,eW.flattenHeadersObject)((0,eW.headersToObject)(e.headers)),body:e.body}}function ez(e){return{status:e.status,statusText:e.statusText,headers:e.headers.all(),body:e.body,delay:e.delay}}async function eK(e,t){e.workerChannel.send("INTEGRITY_CHECK_REQUEST");let{payload:n}=await e.events.once("INTEGRITY_CHECK_RESPONSE");if("3d6b9f06410d179a7f7404d4bf4c3c70"!==n)throw Error(`Currently active Service Worker (${n}) is behind the latest published one (3d6b9f06410d179a7f7404d4bf4c3c70).`);return t}var eZ=n(99567);function e0(e={}){e.quiet||console.log(`%c${V.formatMessage("Mocking disabled.")}`,"color:orangered;font-weight:bold;")}var e1={serviceWorker:{url:"/mockServiceWorker.js",options:null},quiet:!1,waitUntilReady:!0,onUnhandledRequest:"warn",findWorker:(e,t)=>e===t},e3=n(37105),e2=n(24051),e9=n(15189),e6=n(37105),e4=()=>{throw Error("Not implemented")},e7=n(73910),e8=n(96555);function e5(e){let t=[...e];return Object.freeze(t),t}var te=class{constructor(...e){this.validateHandlers(...e),this.initialHandlers=e5(e),this.currentHandlers=[...e],this.emitter=new e8.Emitter,this.publicEmitter=new e8.Emitter,function(e,t){let n=e.emit;n._isPiped||(e.emit=function(e,...r){return t.emit(e,...r),n.call(this,e,...r)},e.emit._isPiped=!0)}(this.emitter,this.publicEmitter),this.events=this.createLifeCycleEvents()}validateHandlers(...e){for(let t of e)(0,e7.invariant)(!Array.isArray(t),V.formatMessage('Failed to construct "%s" given an Array of request handlers. Make sure you spread the request handlers when calling the respective setup function.'),this.constructor.name)}dispose(){this.emitter.removeAllListeners(),this.publicEmitter.removeAllListeners()}use(...e){this.currentHandlers.unshift(...e)}
13restoreHandlers(){this.currentHandlers.forEach(e=>{e.markAsSkipped(!1)})}resetHandlers(...e){this.currentHandlers=e.length>0?[...e]:[...this.initialHandlers]}listHandlers(){return e5(this.currentHandlers)}createLifeCycleEvents(){return{on:(...e)=>this.publicEmitter.on(...e),removeListener:(...e)=>this.publicEmitter.removeListener(...e),removeAllListeners:(...e)=>this.publicEmitter.removeAllListeners(...e)}}},tt=class extends te{constructor(...e){super(...e),this.startHandler=null,this.stopHandler=null,(0,B.invariant)(!(0,q.isNodeProcess)(),V.formatMessage("Failed to execute `setupWorker` in a non-browser environment. Consider using `setupServer` for Node.js environment instead.")),this.listeners=[],this.context=this.createWorkerContext()}createWorkerContext(){let e={isMockingEnabled:!1,startOptions:null,worker:null,registration:null,requestHandlers:this.currentHandlers,emitter:this.emitter,workerChannel:{on:(e,t)=>{this.context.events.addListener(navigator.serviceWorker,"message",n=>{if(n.source!==this.context.worker)return;let r=n.data;r&&r.type===e&&t(n,r)})},send:e=>{var t;null==(t=this.context.worker)||t.postMessage(e)}},events:{addListener:(e,t,n)=>(e.addEventListener(t,n),this.listeners.push({eventType:t,target:e,callback:n}),()=>{e.removeEventListener(t,n)}),removeAllListeners:()=>{for(let{target:e,eventType:t,callback:n}of this.listeners)e.removeEventListener(t,n);this.listeners=[]},once:e=>{let t=[];return new Promise((n,r)=>{t.push(this.context.events.addListener(navigator.serviceWorker,"message",t=>{try{let r=t.data;r.type===e&&n(r)}catch(e){r(e)}}),this.context.events.addListener(navigator.serviceWorker,"messageerror",r))}).finally(()=>{t.forEach(e=>e())})}},useFallbackMode:!("serviceWorker"in navigator)||"file:"===location.protocol};return Object.defineProperties(e,{requestHandlers:{get:()=>this.currentHandlers}}),this.startHandler=e.useFallbackMode?async function(t){e.fallbackInterceptor=function(e,t){let n=new e3.BatchInterceptor({name:"fallback",interceptors:[new e2.FetchInterceptor,new e9.XMLHttpRequestInterceptor]});return n.on("request",async n=>{let r=new ec(n.url,{...n,body:await n.arrayBuffer()}),i=await eJ(r,e.requestHandlers,t,e.emitter,{transformResponse:e=>({status:e.status,statusText:e.statusText,headers:e.headers.all(),body:e.body,delay:e.delay}),onMockedResponse(n,{handler:r,publicRequest:i,parsedRequest:o}){t.quiet||e.emitter.once("response:mocked",e=>{r.log(i,eX(e),o)})}});i&&n.respondWith(i)}),n.on("response",(t,n)=>{if(!t.id)return;let r={...n,ok:n.status>=200&&n.status<300,url:"",type:"default",status:n.status,statusText:n.statusText,headers:n.headers,body:new ReadableStream,redirected:null!=n.headers.get("Location"),text:async()=>n.body||"",json:async()=>JSON.parse(n.body||""),arrayBuffer:async()=>(0,e6.encodeBuffer)(n.body||""),bodyUsed:!1,formData:e4,blob:e4,clone:e4};"msw"===n.headers.get("x-powered-by")?e.emitter.emit("response:mocked",r,t.id):e.emitter.emit("response:bypass",r,t.id)}),n.apply(),n}(e,t),J({message:"Mocking enabled (fallback mode).",quiet:t.quiet})}:function(t,n){let r=(async()=>{var r;e.events.removeAllListeners(),e.workerChannel.on("REQUEST",async(n,r)=>{var i;let o=new X(n.ports[0]),a=function(e){let t=new URL(e.url),n=new Z.Headers(e.headers);return new ec(t,{...e,body:(0,K.encodeBuffer)(e.body||""),headers:n})}(r.payload);try{await eJ(a,e.requestHandlers,t,e.emitter,{transformResponse:ez,onPassthroughResponse(){o.postMessage("NOT_FOUND")},async onMockedResponse(n,{handler:r,publicRequest:i,parsedRequest:a}){if(n.body instanceof ReadableStream)throw Error(V.formatMessage('Failed to construct a mocked response with a "ReadableStream" body: mocked streams are not supported. Follow https://github.com/mswjs/msw/issues/1336 for more details.'));let s=new Response(n.body,n),l=await s.arrayBuffer(),u=null==n.body?null:l;o.postMessage("MOCK_RESPONSE",{...n,body:u},[l]),t.quiet||e.emitter.once("response:mocked",e=>{r.log(i,eX(e),a)})}})}catch(e){if(e instanceof z)return void o.postMessage("NETWORK_ERROR",{name:e.name,message:e.message});e instanceof Error&&(V.error(`Uncaught exception in the request handler for "%s %s":
14
15%s
16
17This exception has been gracefully handled as a 500 response, however, it's strongly recommended to resolve this error, as it indicates a mistake in your code. If you wish to mock an error response, please see this guide: https://mswjs.io/docs/recipes/mocking-error-responses`,a.method,a.url,null!=(i=e.stack)?i:e),o.postMessage("MOCK_RESPONSE",{status:500,statusText:"Request Handler Error",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:e.name,message:e.message,stack:e.stack})}))}}),e.workerChannel.on("RESPONSE",(t,n)=>{var r;let{payload:i}=n;if(null==(r=i.type)?void 0:r.includes("opaque"))return;let o=new Response(i.body||null,i);"msw"===o.headers.get("x-powered-by")?e.emitter.emit("response:mocked",o,i.requestId):e.emitter.emit("response:bypass",o,i.requestId)});let[i,o]=await Q(t.serviceWorker.url,t.serviceWorker.options,t.findWorker);if(!i)throw Error((null==n?void 0:n.findWorker)?V.formatMessage(`Failed to locate the Service Worker registration using a custom "findWorker" predicate.
18
19Please ensure that the custom predicate properly locates the Service Worker registration at "%s".
20More details: https://mswjs.io/docs/api/setup-worker/start#findworker
21`,t.serviceWorker.url):V.formatMessage(`Failed to locate the Service Worker registration.
22
23This most likely means that the worker script URL "%s" cannot resolve against the actual public hostname (%s). This may happen if your application runs behind a proxy, or has a dynamic hostname.
24
25Please consider using a custom "serviceWorker.url" option to point to the actual worker script location, or a custom "findWorker" option to resolve the Service Worker registration manually. More details: https://mswjs.io/docs/api/setup-worker/start`,t.serviceWorker.url,location.host));e.worker=i,e.registration=o,e.events.addListener(window,"beforeunload",()=>{"redundant"!==i.state&&e.workerChannel.send("CLIENT_CLOSED"),window.clearInterval(e.keepAliveInterval)});let[a]=await (0,G.until)(()=>eK(e,i));return a&&V.error(`Detected outdated Service Worker: ${a.message}
26
27The mocking is still enabled, but it's highly recommended that you update your Service Worker by running:
28
29$ npx msw init <PUBLIC_DIR>
30
31This is necessary to ensure that the Service Worker is in sync with the library to guarantee its stability.
32If this message still persists after updating, please report an issue: https://github.com/open-draft/msw/issues      `),e.keepAliveInterval=window.setInterval(()=>e.workerChannel.send("KEEPALIVE_REQUEST"),5e3),(null==(r=e.startOptions)?void 0:r.quiet)||location.href.startsWith(o.scope)||V.warn(`Cannot intercept requests on this page because it's outside of the worker's scope ("${o.scope}"). If you wish to mock API requests on this page, you must resolve this scope issue.
33
34- (Recommended) Register the worker at the root level ("/") of your application.
35- Set the "Service-Worker-Allowed" response header to allow out-of-scope workers.`),o})().then(async n=>{let r=n.installing||n.waiting;return r&&await new Promise(e=>{r.addEventListener("statechange",()=>{if("activated"===r.state)return e()})}),await W(e,t).catch(e=>{throw Error(`Failed to enable mocking: ${null==e?void 0:e.message}`)}),n});return t.waitUntilReady&&function(e){let t=window.XMLHttpRequest.prototype.send;window.XMLHttpRequest.prototype.send=function(...n){(0,eZ.until)(()=>e).then(()=>{window.XMLHttpRequest.prototype.send=t,this.send(...n)})};let n=window.fetch;window.fetch=async(...t)=>(await (0,eZ.until)(()=>e),window.fetch=n,window.fetch(...t))}(r),r},this.stopHandler=e.useFallbackMode?function(){var t,n;null==(t=e.fallbackInterceptor)||t.dispose(),e0({quiet:null==(n=e.startOptions)?void 0:n.quiet})}:function(){var t;if(!e.isMockingEnabled)return void V.warn('Found a redundant "worker.stop()" call. Note that stopping the worker while mocking already stopped has no effect. Consider removing this "worker.stop()" call.');e.workerChannel.send("MOCK_DEACTIVATE"),e.isMockingEnabled=!1,window.clearInterval(e.keepAliveInterval),e0({quiet:null==(t=e.startOptions)?void 0:t.quiet})},e}async start(e={}){return this.context.startOptions=w(e1,e),await this.startHandler(this.context.startOptions,e)}printHandlers(){this.listHandlers().forEach(e=>{let{header:t,callFrame:n}=e.info,r=e.info.hasOwnProperty("operationType")?"[graphql]":"[rest]";console.groupCollapsed(`${r} ${t}`),n&&console.log(`Declaration: ${n}`),console.log("Handler:",e),console.groupEnd()})}stop(){super.dispose(),this.context.events.removeAllListeners(),this.context.emitter.removeAllListeners(),this.stopHandler()}};function tn(...e){return new tt(...e)}function tr(e){return(t,n)=>new eV(e,t,n)}var ti={all:tr(/.+/),head:tr("HEAD"),get:tr("GET"),post:tr("POST"),put:tr("PUT"),delete:tr("DELETE"),patch:tr("PATCH"),options:tr("OPTIONS")};function to(e,t){return(n,r)=>new eY(e,n,t,r)}function ta(e){return t=>new eY("all",RegExp(".*"),e,t)}var ts={...{operation:ta("*"),query:to("query","*"),mutation:to("mutation","*")},link:function(e){return{operation:ta(e),query:to("query",e),mutation:to("mutation",e)}}};(0,M.invariant)("undefined"!=typeof URL,V.formatMessage('Global "URL" class is not defined. This likely means that you\'re running MSW in an environment that doesn\'t support all Node.js standard API (e.g. React Native). If that\'s the case, please use an appropriate polyfill for the "URL" class, like "react-native-url-polyfill".'))},15009:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(33812),t)},15189:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});
35Object.defineProperty(t,"__esModule",{value:!0}),t.XMLHttpRequestInterceptor=void 0;var o=n(73910),a=n(10315),s=n(84610),l=n(57933);t.XMLHttpRequestInterceptor=function(e){function t(){return e.call(this,t.symbol)||this}return i(t,e),t.prototype.checkEnvironment=function(){return"undefined"!=typeof window&&void 0!==window.XMLHttpRequest},t.prototype.setup=function(){var e=this.log.extend("setup");e('patching "XMLHttpRequest" module...');var t=window.XMLHttpRequest;o.invariant(!t[a.IS_PATCHED_MODULE],'Failed to patch the "XMLHttpRequest" module: already patched.'),window.XMLHttpRequest=l.createXMLHttpRequestOverride({XMLHttpRequest:t,emitter:this.emitter,log:this.log}),e('native "XMLHttpRequest" module patched!',window.XMLHttpRequest.name),Object.defineProperty(window.XMLHttpRequest,a.IS_PATCHED_MODULE,{enumerable:!0,configurable:!0,value:!0}),this.subscriptions.push(function(){Object.defineProperty(window.XMLHttpRequest,a.IS_PATCHED_MODULE,{value:void 0}),window.XMLHttpRequest=t,e('native "XMLHttpRequest" module restored!',window.XMLHttpRequest.name)})},t.symbol=Symbol("xhr"),t}(s.Interceptor)},15897:(e,t,n)=>{var r=n(67298).freeze;t.XML_ENTITIES=r({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),t.HTML_ENTITIES=r({lt:"<",gt:">",amp:"&",quot:'"',apos:"'",Agrave:"\xc0",Aacute:"\xc1",Acirc:"\xc2",Atilde:"\xc3",Auml:"\xc4",Aring:"\xc5",AElig:"\xc6",Ccedil:"\xc7",Egrave:"\xc8",Eacute:"\xc9",Ecirc:"\xca",Euml:"\xcb",Igrave:"\xcc",Iacute:"\xcd",Icirc:"\xce",Iuml:"\xcf",ETH:"\xd0",Ntilde:"\xd1",Ograve:"\xd2",Oacute:"\xd3",Ocirc:"\xd4",Otilde:"\xd5",Ouml:"\xd6",Oslash:"\xd8",Ugrave:"\xd9",Uacute:"\xda",Ucirc:"\xdb",Uuml:"\xdc",Yacute:"\xdd",THORN:"\xde",szlig:"\xdf",agrave:"\xe0",aacute:"\xe1",acirc:"\xe2",atilde:"\xe3",auml:"\xe4",aring:"\xe5",aelig:"\xe6",ccedil:"\xe7",egrave:"\xe8",eacute:"\xe9",ecirc:"\xea",euml:"\xeb",igrave:"\xec",iacute:"\xed",icirc:"\xee",iuml:"\xef",eth:"\xf0",ntilde:"\xf1",ograve:"\xf2",oacute:"\xf3",ocirc:"\xf4",otilde:"\xf5",ouml:"\xf6",oslash:"\xf8",ugrave:"\xf9",uacute:"\xfa",ucirc:"\xfb",uuml:"\xfc",yacute:"\xfd",thorn:"\xfe",yuml:"\xff",nbsp:"\xa0",iexcl:"\xa1",cent:"\xa2",pound:"\xa3",curren:"\xa4",yen:"\xa5",brvbar:"\xa6",sect:"\xa7",uml:"\xa8",copy:"\xa9",ordf:"\xaa",laquo:"\xab",not:"\xac",shy:"\xad\xad",reg:"\xae",macr:"\xaf",deg:"\xb0",plusmn:"\xb1",sup2:"\xb2",sup3:"\xb3",acute:"\xb4",micro:"\xb5",para:"\xb6",middot:"\xb7",cedil:"\xb8",sup1:"\xb9",ordm:"\xba",raquo:"\xbb",frac14:"\xbc",frac12:"\xbd",frac34:"\xbe",iquest:"\xbf",times:"\xd7",divide:"\xf7",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub
35:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",euro:"€",trade:"™",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"}),t.entityMap=t.HTML_ENTITIES},16846:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.uuidv4=void 0,t.uuidv4=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)})}},23747:(e,t,n)=>{var r=n(12399),i=Object.defineProperty,o=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,l={};function u(){if("undefined"!=typeof navigator&&"ReactNative"===navigator.product)return!0;if(void 0!==r){let e=r.type;return"renderer"!==e&&"worker"!==e&&!!(r.versions&&r.versions.node)}return!1}((e,t)=>{for(var n in t)i(e,n,{get:t[n],enumerable:!0})})(l,{isNodeProcess:()=>u}),e.exports=((e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let l of a(t))s.call(e,l)||l===n||i(e,l,{get:()=>t[l],enumerable:!(r=o(t,l))||r.enumerable});return e})(i({},"__esModule",{value:!0}),l)},24051:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__assign||function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},a=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((r=r.apply(e,t||[])).next())})},s=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){var l=[o,s];if(n)throw TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&l[0]?r.return:l[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,l[1])).done)return i;switch(r=0,i&&(l=[2&l[0],i.value]),l[0]){case 0:case 1:i=l;break;case 4:return a.label++,{value:l[1],done:!1};case 5:a.label++,r=l[1],l=[0];continue;case 7:l=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===l[0]||2===l[0])){a=0;continue}if(3===l[0]&&(!i||l[1]>i[0]&&l[1]<i[3])){a.label=l[1];break}if(6===l[0]&&a.label<i[1]){a.label=i[1],i=l;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(l);break}i[2]&&a.ops.pop(),a.trys.pop();continue}l=t.call(e,a)}catch(e){l=[6,e],r=0}finally{n=i=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}},l=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a};
35Object.defineProperty(t,"__esModule",{value:!0}),t.FetchInterceptor=void 0;var u=n(57299),c=n(73910),p=n(99567),f=n(48871),d=n(10315),h=n(84610),y=n(52450),m=n(42925);t.FetchInterceptor=function(e){function t(){return e.call(this,t.symbol)||this}return i(t,e),t.prototype.checkEnvironment=function(){return"undefined"!=typeof globalThis&&void 0!==globalThis.fetch},t.prototype.setup=function(){var e=this,t=globalThis.fetch;c.invariant(!t[d.IS_PATCHED_MODULE],'Failed to patch the "fetch" module: already patched.'),globalThis.fetch=function(n,r){return a(e,void 0,void 0,function(){var e,i,c,d,h,v,g,E,b,T,N,w,I=this;return s(this,function(_){switch(_.label){case 0:return e=new Request(n,r),i="string"==typeof n?n:n.url,c=e.method,this.log("[%s] %s",c,i),[4,e.clone().arrayBuffer()];case 1:return d=_.sent(),h=new URL(i,"undefined"!=typeof location?location.origin:void 0),v=new f.IsomorphicRequest(h,{body:d,method:c,headers:new u.Headers(e.headers),credentials:e.credentials}),g=new m.InteractiveIsomorphicRequest(v),this.log("isomorphic request",g),this.log('emitting the "request" event for %d listener(s)...',this.emitter.listenerCount("request")),this.emitter.emit("request",g),this.log("awaiting for the mocked response..."),[4,p.until(function(){return a(I,void 0,void 0,function(){var e;return s(this,function(t){switch(t.label){case 0:return[4,this.emitter.untilIdle("request",function(e){return l(e.args,1)[0].id===g.id})];case 1:return t.sent(),this.log("all request listeners have been resolved!"),[4,g.respondWith.invoked()];case 2:return e=l.apply(void 0,[t.sent(),1])[0],this.log("event.respondWith called with:",e),[2,e]}})})})];case 2:if(b=(E=l.apply(void 0,[_.sent(),2]))[0],T=E[1],b)return console.error(e.method+" "+e.url+" net::ERR_FAILED"),[2,Promise.reject(Object.assign(TypeError("Failed to fetch"),{cause:b}))];if(T)return this.log("received mocked response:",T),N=y.toIsoResponse(T),this.log("derived isomorphic response:",N),this.emitter.emit("response",g,N),Object.defineProperty(w=new Response(T.body,o(o({},N),{headers:u.flattenHeadersObject(T.headers||{})})),"url",{writable:!1,enumerable:!0,configurable:!1,value:g.url.href}),[2,w];return this.log("no mocked response received!"),[2,t(e).then(function(e){return a(I,void 0,void 0,function(){var t,n,r,i;return s(this,function(o){switch(o.label){case 0:return t=e.clone(),this.log("original fetch performed",t),r=(n=this.emitter).emit,i=["response",g],[4,function(e){return a(this,void 0,void 0,function(){var t;return s(this,function(n){switch(n.label){case 0:return t={status:e.status,statusText:e.statusText,headers:u.objectToHeaders(u.headersToObject(e.headers))},[4,e.text()];case 1:return[2,(t.body=n.sent(),t)]}})})}(t)];case 1:return r.apply(n,i.concat([o.sent()])),[2,e]}})})})]}})})},Object.defineProperty(globalThis.fetch,d.IS_PATCHED_MODULE,{enumerable:!0,configurable:!0,value:!0}),this.subscriptions.push(function(){Object.defineProperty(globalThis.fetch,d.IS_PATCHED_MODULE,{value:void 0}),globalThis.fetch=t,e.log('restored native "globalThis.fetch"!',globalThis.fetch.name)})},t.symbol=Symbol("fetch"),t}(h.Interceptor)},25971:(e,t,n)=>{"use strict";var r=n(87617);e.exports=function(){return r()&&!!Symbol.toStringTag}},27287:(e,t,n)=>{"use strict";var r,i=SyntaxError,o=Function,a=TypeError,s=function(e){try{return o('"use strict"; return ('+e+").constructor;")()}catch(e){}},l=Object.getOwnPropertyDescriptor;if(l)try{l({},"")}catch(e){l=null}var u=function(){throw new a},c=l?function(){try{return arguments.callee,u}catch(e){try{return l(arguments,"callee").get}catch(e){return u}}}():u,p=n(38199)(),f=n(66175)(),d=Object.getPrototypeOf||(f?function(e){return e.__proto__}:null),h={},y="undefined"!=typeof Uint8Array&&d?d(Uint8Array):r,m={"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":p&&d?d([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":h,"%AsyncGenerator%":h,"%AsyncGeneratorFunction%":h,"%AsyncIteratorPrototype%":h,"%Atomics%":"undefined"==typeof Atomics?r:Atom
vendor: 7,298 bytes, line 35
35ics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":o,"%GeneratorFunction%":h,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":p&&d?d(d([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&p&&d?d(new Map()[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&p&&d?d(new Set()[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":p&&d?d(""[Symbol.iterator]()):r,"%Symbol%":p?Symbol:r,"%SyntaxError%":i,"%ThrowTypeError%":c,"%TypedArray%":y,"%TypeError%":a,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet};if(d)try{null.error}catch(e){var v=d(d(e));m["%Error.prototype%"]=v}var g=function e(t){var n;if("%AsyncFunction%"===t)n=s("async function () {}");else if("%GeneratorFunction%"===t)n=s("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=s("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&d&&(n=d(i.prototype))}return m[t]=n,n},E={"%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"]},b=n(38763),T=n(14362),N=b.call(Function.call,Array.prototype.concat),w=b.call(Function.apply,Array.prototype.splice),I=b.call(Function.call,String.prototype.replace),_=b.call(Function.call,String.prototype.slice),O=b.call(Function.call,RegExp.prototype.exec),S=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,A=/\\(\\)?/g,x=function(e){var t=_(e,0,1),n=_(e,-1);if("%"===t&&"%"!==n)throw new i("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new i("invalid intrinsic syntax, expected opening `%`");var r=[];return I(e,S,function(e,t,n,i){r[r.length]=n?I(i,A,"$1"):t||e}),r},D=function(e,t){var n,r=e;if(T(E,r)&&(r="%"+(n=E[r])[0]+"%"),T(m,r)){var o=m[r];if(o===h&&(o=g(r)),void 0===o&&!t)throw new a("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:o}}throw new i("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new a('"allowMissing" argument must be a boolean');if(null===O(/^%?[^%]*%?$/,e))throw new i("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=x(e),r=n.length>0?n[0]:"",o=D("%"+r+"%",t),s=o.name,u=o.value,c=!1,p=o.alias;p&&(r=p[0],w(n,N([0,1],p)));for(var f=1,d=!0;f<n.length;f+=1){var h=n[f],y=_(h,0,1),v=_(h,-1);if(('"'===y||"'"===y||"`"===y||'"'===v||"'"===v||"`"===v)&&y!==v)throw new i("property names with quotes must have matching quotes");if("constructor"!==h&&d||(c=!0),r+="."+h,T(m,s="%"+r+"%"))u=m[s];else if(null!=u){if(!(h in u)){if(!t)throw new a("base intrinsic for "+e+" exists, but the property is not available.");return}if(l&&f+1>=n.length){var g=l(u,h);u=(d=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:u[h]}else d=T(u,h),u=u[h];d&&!c&&(m[s]=u)}}return u}},28288:function(e,t){"use strict";var n=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Prom
35ise))(function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((r=r.apply(e,t||[])).next())})},r=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){var l=[o,s];if(n)throw TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&l[0]?r.return:l[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,l[1])).done)return i;switch(r=0,i&&(l=[2&l[0],i.value]),l[0]){case 0:case 1:i=l;break;case 4:return a.label++,{value:l[1],done:!1};case 5:a.label++,r=l[1],l=[0];continue;case 7:l=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===l[0]||2===l[0])){a=0;continue}if(3===l[0]&&(!i||l[1]>i[0]&&l[1]<i[3])){a.label=l[1];break}if(6===l[0]&&a.label<i[1]){a.label=i[1],i=l;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(l);break}i[2]&&a.ops.pop(),a.trys.pop();continue}l=t.call(e,a)}catch(e){l=[6,e],r=0}finally{n=i=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}};Object.defineProperty(t,"__esModule",{value:!0}),t.createLazyCallback=void 0,t.createLazyCallback=function(e){var t,i,o=this;void 0===e&&(e={});var a=0,s=new Promise(function(e){i=e}).finally(function(){clearTimeout(t)}),l=function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];e.maxCalls&&a>=e.maxCalls&&(null==(t=e.maxCallsCallback)||t.call(e)),i(n),a++};return l.invoked=function(){return n(o,void 0,void 0,function(){return r(this,function(e){return t=setTimeout(function(){i([])},0),[2,s]})})},l}},28374:(e,t,n)=>{"use strict";var r=n(27287),i=n(76777),o=n(80391)(),a=n(70868),s=r("%TypeError%"),l=r("%Math.floor%");e.exports=function(e,t){if("function"!=typeof e)throw new s("`fn` is not a function");if("number"!=typeof t||t<0||t>0xffffffff||l(t)!==t)throw new s("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],r=!0,u=!0;if("length"in e&&a){var c=a(e,"length");c&&!c.configurable&&(r=!1),c&&!c.writable&&(u=!1)}return(r||u||!n)&&(o?i(e,"length",t,!0,!0):i(e,"length",t)),e}},29586:(e,t,n)=>{var r=n(67298),i=r.find,o=r.NAMESPACE;function a(e){return""!==e}function s(e,t){return e.hasOwnProperty(t)||(e[t]=!0),e}function l(e){return e?Object.keys((e?e.split(/[\t\n\f\r ]+/).filter(a):[]).reduce(s,{})):[]}function u(e,t){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}function c(e,t){var n=e.prototype;if(!(n instanceof t)){function r(){}r.prototype=t.prototype,u(n,r=new r),e.prototype=n=r}n.constructor!=e&&("function"!=typeof e&&console.error("unknown Class:"+e),n.constructor=e)}var p={},f=p.ELEMENT_NODE=1,d=p.ATTRIBUTE_NODE=2,h=p.TEXT_NODE=3,y=p.CDATA_SECTION_NODE=4,m=p.ENTITY_REFERENCE_NODE=5,v=p.ENTITY_NODE=6,g=p.PROCESSING_INSTRUCTION_NODE=7,E=p.COMMENT_NODE=8,b=p.DOCUMENT_NODE=9,T=p.DOCUMENT_TYPE_NODE=10,N=p.DOCUMENT_FRAGMENT_NODE=11,w=p.NOTATION_NODE=12,I={},_={};_[1]="Index size error",I.INDEX_SIZE_ERR=1,_[2]="DOMString size error",I.DOMSTRING_SIZE_ERR=2;var O=(_[3]="Hierarchy request error",I.HIERARCHY_REQUEST_ERR=3);_[4]="Wrong document",I.WRONG_DOCUMENT_ERR=4,_[5]="Invalid character",I.INVALID_CHARACTER_ERR=5,_[6]="No data allowed",I.NO_DATA_ALLOWED_ERR=6,_[7]="No modification allowed",I.NO_MODIFICATION_ALLOWED_ERR=7;var S=(_[8]="Not found",I.NOT_FOUND_ERR=8);_[9]="Not supported",I.NOT_SUPPORTED_ERR=9;var A=(_[10]="Attribute in use",I.INUSE_ATTRIBUTE_ERR=10);function x(e,t){if(t instanceof Error)var n=t;else n=this,Error.call(this,_[e]),this.message=_[e],Error.captureStackTrace&&Error.captureStackTrace(this,x);return n.code=e,t&&(this.message=this.message+": "+t),n}function D(){}function R(e,t){this._node=e,this._refresh=t,C(this)}function C(e){var t=e._node._inc||e._node.ownerDocument._inc;if(e._inc!=t){var n=e._refresh(e._node);ey(e,"length",n.length),u(n,e),e._inc=t}}function L(){}function k(e,t){for(var n=e.length;n--;)if(e[n]===t)return n}function F(e,t,n,r){if(r?t[k(t,r)]=n:t[t.length++]=n,e){n.ownerElement=e;var i,a,s,l=e.ownerDocument;l&&(r&&B(l,e,r),i=l,a=e,s=n,i&&i._inc++,s.namespaceURI===o.XMLNS&&(a._nsMap[s.prefix?s.localName:""]=s.value))}}function P(e,t,n){var r=k(t,n);if(r>=0){for(var i=t.length-1;r<i;)t[r]=t[++r];
35if(t.length=i,e){var o=e.ownerDocument;o&&(B(o,e,n),n.ownerElement=null)}}else throw new x(S,Error(e.tagName+"@"+n))}function j(){}function M(){}function $(e){return"<"==e&&"&lt;"||">"==e&&"&gt;"||"&"==e&&"&amp;"||'"'==e&&"&quot;"||"&#"+e.charCodeAt()+";"}function U(e,t){if(t(e))return!0;if(e=e.firstChild)do if(U(e,t))return!0;while(e=e.nextSibling)}function V(){this.ownerDocument=this}function B(e,t,n,r){e&&e._inc++,n.namespaceURI===o.XMLNS&&delete t._nsMap[n.prefix?n.localName:""]}function q(e,t,n){if(e&&e._inc){e._inc++;var r=t.childNodes;if(n)r[r.length++]=n;else{for(var i=t.firstChild,o=0;i;)r[o++]=i,i=i.nextSibling;r.length=o,delete r[r.length]}}}function G(e,t){var n=t.previousSibling,r=t.nextSibling;return n?n.nextSibling=r:e.firstChild=r,r?r.previousSibling=n:e.lastChild=n,t.parentNode=null,t.previousSibling=null,t.nextSibling=null,q(e.ownerDocument,e),t}function H(e){return e&&e.nodeType===M.DOCUMENT_TYPE_NODE}function Y(e){return e&&e.nodeType===M.ELEMENT_NODE}function Q(e){return e&&e.nodeType===M.TEXT_NODE}function J(e,t){var n=e.childNodes||[];if(i(n,Y)||H(t))return!1;var r=i(n,H);return!(t&&r&&n.indexOf(r)>n.indexOf(t))}function W(e,t){var n=e.childNodes||[];if(i(n,function(e){return Y(e)&&e!==t}))return!1;var r=i(n,H);return!(t&&r&&n.indexOf(r)>n.indexOf(t))}function X(e,t,n){var r=e.childNodes||[],o=t.childNodes||[];
35if(t.nodeType===M.DOCUMENT_FRAGMENT_NODE){var a=o.filter(Y);if(a.length>1||i(o,Q))throw new x(O,"More than one element or text in fragment");if(1===a.length&&!W(e,n))throw new x(O,"Element in fragment can not be inserted before doctype")}if(Y(t)&&!W(e,n))throw new x(O,"Only one element can be added and only after doctype");if(H(t)){if(i(r,function(e){return H(e)&&e!==n}))throw new x(O,"Only one doctype is allowed");var s=i(r,Y);if(n&&r.indexOf(s)<r.indexOf(n))throw new x(O,"Doctype can only be inserted before an element")}}function z(e,t,n,r){if(!(e&&(e.nodeType===M.DOCUMENT_NODE||e.nodeType===M.DOCUMENT_FRAGMENT_NODE||e.nodeType===M.ELEMENT_NODE)))throw new x(O,"Unexpected parent node type "+e.nodeType);if(n&&n.parentNode!==e)throw new x(S,"child not in parent");if(!(t&&(Y(t)||Q(t)||H(t)||t.nodeType===M.DOCUMENT_FRAGMENT_NODE||t.nodeType===M.COMMENT_NODE||t.nodeType===M.PROCESSING_INSTRUCTION_NODE))||H(t)&&e.nodeType!==M.DOCUMENT_NODE)throw new x(O,"Unexpected node type "+t.nodeType+" for parent node type "+e.nodeType);e.nodeType===M.DOCUMENT_NODE&&(r||function(e,t,n){var r=e.childNodes||[],o=t.childNodes||[];
vendor: 5,154 bytes, line 35
35if(t.nodeType===M.DOCUMENT_FRAGMENT_NODE){var a=o.filter(Y);if(a.length>1||i(o,Q))throw new x(O,"More than one element or text in fragment");if(1===a.length&&!J(e,n))throw new x(O,"Element in fragment can not be inserted before doctype")}if(Y(t)&&!J(e,n))throw new x(O,"Only one element can be added and only after doctype");if(H(t)){if(i(r,H))throw new x(O,"Only one doctype is allowed");var s=i(r,Y);if(n&&r.indexOf(s)<r.indexOf(n))throw new x(O,"Doctype can only be inserted before an element");if(!n&&s)throw new x(O,"Doctype can not be appended since element is present")}})(e,t,n);var o=t.parentNode;if(o&&o.removeChild(t),t.nodeType===N){var a=t.firstChild;if(null==a)return t;var s=t.lastChild}else a=s=t;var l=n?n.previousSibling:e.lastChild;a.previousSibling=l,s.nextSibling=n,l?l.nextSibling=a:e.firstChild=a,null==n?e.lastChild=s:n.previousSibling=s;do a.parentNode=e;while(a!==s&&(a=a.nextSibling));return q(e.ownerDocument||e,e),t.nodeType==N&&(t.firstChild=t.lastChild=null),t}function K(){this._nsMap={}}function Z(){}function ee(){}function et(){}function en(){}function er(){}function ei(){}function eo(){}function ea(){}function es(){}function el(){}function eu(){}function ec(){}function ep(e,t){var n=[],r=9==this.nodeType&&this.documentElement||this,i=r.prefix,o=r.namespaceURI;if(o&&null==i){var i=r.lookupPrefix(o);if(null==i)var a=[{namespace:o,prefix:null}]}return eh(this,n,e,t,a),n.join("")}function ef(e,t,n){var r=e.prefix||"",i=e.namespaceURI;if(!i||"xml"===r&&i===o.XML||i===o.XMLNS)return!1;for(var a=n.length;a--;){var s=n[a];if(s.prefix===r)return s.namespace!==i}return!0}function ed(e,t,n){e.push(" ",t,'="',n.replace(/[<>&"\t\n\r]/g,$),'"')}function eh(e,t,n,r,i){if(i||(i=[]),r){if(!(e=r(e)))return;if("string"==typeof e)return void t.push(e)}switch(e.nodeType){case f:var a,s=e.attributes,l=s.length,u=e.firstChild,c=e.tagName;n=o.isHTML(e.namespaceURI)||n;var p=c;if(!n&&!e.prefix&&e.namespaceURI){for(var v=0;v<s.length;v++)if("xmlns"===s.item(v).name){a=s.item(v).value;break}if(!a)for(var w=i.length-1;w>=0;w--){var I=i[w];if(""===I.prefix&&I.namespace===e.namespaceURI){a=I.namespace;break}}if(a!==e.namespaceURI)for(var w=i.length-1;w>=0;w--){var I=i[w];if(I.namespace===e.namespaceURI){I.prefix&&(p=I.prefix+":"+c);break}}}t.push("<",p);for(var _=0;_<l;_++){var O=s.item(_);"xmlns"==O.prefix?i.push({prefix:O.localName,namespace:O.value}):"xmlns"==O.nodeName&&i.push({prefix:"",namespace:O.value})}for(var _=0;_<l;_++){var O=s.item(_);if(ef(O,n,i)){var S=O.prefix||"",A=O.namespaceURI;ed(t,S?"xmlns:"+S:"xmlns",A),i.push({prefix:S,namespace:A})}eh(O,t,n,r,i)}if(c===p&&ef(e,n,i)){var S=e.prefix||"",A=e.namespaceURI;ed(t,S?"xmlns:"+S:"xmlns",A),i.push({prefix:S,namespace:A})}if(u||n&&!/^(?:meta|link|img|br|hr|input)$/i.test(c)){if(t.push(">"),n&&/^script$/i.test(c))for(;u;)u.data?t.push(u.data):eh(u,t,n,r,i.slice()),u=u.nextSibling;else for(;u;)eh(u,t,n,r,i.slice()),u=u.nextSibling;t.push("</",p,">")}else t.push("/>");return;case b:case N:for(var u=e.firstChild;u;)eh(u,t,n,r,i.slice()),u=u.nextSibling;return;case d:return ed(t,e.name,e.value);case h:return t.push(e.data.replace(/[<&>]/g,$));case y:return t.push("<![CDATA[",e.data,"]]>");case E:return t.push("\x3c!--",e.data,"--\x3e");case T:var x=e.publicId,D=e.systemId;if(t.push("<!DOCTYPE ",e.name),x)t.push(" PUBLIC ",x),D&&"."!=D&&t.push(" ",D),t.push(">");else if(D&&"."!=D)t.push(" SYSTEM ",D,">");else{var R=e.internalSubset;R&&t.push(" [",R,"]"),t.push(">")}return;case g:return t.push("<?",e.target," ",e.data,"?>");case m:return t.push("&",e.nodeName,";");default:t.push("??",e.nodeName)}}function ey(e,t,n){e[t]=n}_[11]="Invalid state",I.INVALID_STATE_ERR=11,_[12]="Syntax error",I.SYNTAX_ERR=12,_[13]="Invalid modification",I.INVALID_MODIFICATION_ERR=13,_[14]="Invalid namespace",I.NAMESPACE_ERR=14,_[15]="Invalid access",I.INVALID_ACCESS_ERR=15,x.prototype=Error.prototype,u(I,x),D.prototype={length:0,item:function(e){return this[e]||null},toString:function(e,t){for(var n=[],r=0;r<this.length;r++)eh(this[r],n,e,t);return n.join("")},filter:function(e){return Array.prototype.filter.call(this,e)},indexOf:function(e){return Array.prototype.indexOf.call(this,e)}},R.prototype.item=function(e){return C(this),this[e]},c(R,D),L.prototype={length:0,item:D.prototype.item,getNamedItem:function(e){for(var t=this.length;t--;){var n=this[t];if(n.nodeName==e)return n}},setNamedItem:function(e){var t=e.ownerElement;if(t&&t!=this._ownerElement)throw new x(A);var n=this.getNamedItem(e.nodeName);return F(this._ownerElement,this,e,n),n},setNamedItemNS:function(e){var t,n=e.ownerElement;if(n&&n!=this._ownerElement)throw new x(A);return t=this.getNamedItemNS(e.namespaceURI,e.localName),F(this._ownerElement,this,e,t),t},removeNamedItem:function(e){var t=this.getNamedItem(e);return P(this._ownerElement,this,t),t},removeNamedItemNS:function(e,t){var n=this.getNamedItemNS(e,t);return P(this._ownerElement,this,n),n},getNamedItemNS:function(e,t){for(var n=this.length;n--;){var r=this[n];if(r.localName==t&&r.namespaceURI==e)return r}return null}},j.prototype={hasFeature:function(e,t){return!0},createDocument:function(e,t,n){var r=new V;
35if(r.implementation=this,r.childNodes=new D,r.doctype=n||null,n&&r.appendChild(n),t){var i=r.createElementNS(e,t);r.appendChild(i)}return r},createDocumentType:function(e,t,n){var r=new ei;return r.name=e,r.nodeName=e,r.publicId=t||"",r.systemId=n||"",r}},M.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function(e,t){return z(this,e,t)},replaceChild:function(e,t){z(this,e,t,X),t&&this.removeChild(t)},removeChild:function(e){return G(this,e)},appendChild:function(e){return this.insertBefore(e,null)},hasChildNodes:function(){return null!=this.firstChild},cloneNode:function(e){return function e(t,n,r){var i=new n.constructor;for(var o in n)if(Object.prototype.hasOwnProperty.call(n,o)){var a=n[o];"object"!=typeof a&&a!=i[o]&&(i[o]=a)}switch(n.childNodes&&(i.childNodes=new D),i.ownerDocument=t,i.nodeType){case f:var s=n.attributes,l=i.attributes=new L,u=s.length;l._ownerElement=i;for(var c=0;c<u;c++)i.setAttributeNode(e(t,s.item(c),!0));break;case d:r=!0}if(r)for(var p=n.firstChild;p;)i.appendChild(e(t,p,r)),p=p.nextSibling;return i}(this.ownerDocument||this,this,e)},normalize:function(){for(var e=this.firstChild;e;){var t=e.nextSibling;t&&t.nodeType==h&&e.nodeType==h?(this.removeChild(t),e.appendData(t.data)):(e.normalize(),e=t)}},isSupported:function(e,t){return this.ownerDocument.implementation.hasFeature(e,t)},hasAttributes:function(){return this.attributes.length>0},lookupPrefix:function(e){for(var t=this;t;){var n=t._nsMap;if(n){for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)&&n[r]===e)return r}t=t.nodeType==d?t.ownerDocument:t.parentNode}return null},lookupNamespaceURI:function(e){for(var t=this;t;){var n=t._nsMap;if(n&&Object.prototype.hasOwnProperty.call(n,e))return n[e];t=t.nodeType==d?t.ownerDocument:t.parentNode}return null},isDefaultNamespace:function(e){return null==this.lookupPrefix(e)}},u(p,M),u(p,M.prototype),V.prototype={nodeName:"#document",nodeType:b,doctype:null,documentElement:null,_inc:1,insertBefore:function(e,t){if(e.nodeType==N){for(var n=e.firstChild;n;){var r=n.nextSibling;this.insertBefore(n,t),n=r}return e}return z(this,e,t),e.ownerDocument=this,null===this.documentElement&&e.nodeType===f&&(this.documentElement=e),e},removeChild:function(e){return this.documentElement==e&&(this.documentElement=null),G(this,e)},replaceChild:function(e,t){z(this,e,t,X),e.ownerDocument=this,t&&this.removeChild(t),Y(e)&&(this.documentElement=e)},importNode:function(e,t){return function e(t,n,r){var i;switch(n.nodeType){case f:(i=n.cloneNode(!1)).ownerDocument=t;case N:break;case d:r=!0}if(i||(i=n.cloneNode(!1)),i.ownerDocument=t,i.parentNode=null,r)for(var o=n.firstChild;o;)i.appendChild(e(t,o,r)),o=o.nextSibling;return i}(this,e,t)},getElementById:function(e){var t=null;return U(this.documentElement,function(n){if(n.nodeType==f&&n.getAttribute("id")==e)return t=n,!0}),t},getElementsByClassName:function(e){var t=l(e);return new R(this,function(n){var r=[];return t.length>0&&U(n.documentElement,function(i){if(i!==n&&i.nodeType===f){var o=i.getAttribute("class");if(o){var a=e===o;if(!a){var s=l(o);a=t.every(function(e){return s&&-1!==s.indexOf(e)})}a&&r.push(i)}}}),r})},createElement:function(e){var t=new K;return t.ownerDocument=this,t.nodeName=e,t.tagName=e,t.localName=e,t.childNodes=new D,(t.attributes=new L)._ownerElement=t,t},createDocumentFragment:function(){var e=new el;return e.ownerDocument=this,e.childNodes=new D,e},createTextNode:function(e){var t=new et;return t.ownerDocument=this,t.appendData(e),t},createComment:function(e){var t=new en;return t.ownerDocument=this,t.appendData(e),t},createCDATASection:function(e){var t=new er;return t.ownerDocument=this,t.appendData(e),t},createProcessingInstruction:function(e,t){var n=new eu;return n.ownerDocument=this,n.tagName=n.target=e,n.nodeValue=n.data=t,n},createAttribute:function(e){var t=new Z;return t.ownerDocument=this,t.name=e,t.nodeName=e,t.localName=e,t.specified=!0,t},createEntityReference:function(e){var t=new es;return t.ownerDocument=this,t.nodeName=e,t},createElementNS:function(e,t){var n=new K,r=t.split(":"),i=n.attributes=new L;return n.childNodes=new D,n.ownerDocument=this,n.nodeName=t,n.tagName=t,n.namespaceURI=e,2==r.length?(n.prefix=r[0],n.localName=r[1]):n.localName=t,i._ownerElement=n,n},createAttributeNS:function(e,t){var n=new Z,r=t.split(":");return n.ownerDocument=this,n.nodeName=t,n.name=t,n.namespaceURI=e,n.specified=!0,2==r.length?(n.prefix=r[0],n.localName=r[1]):n.localName=t,n}},c(V,M),K.prototype={nodeType:f,hasAttribute:function(e){return null!=this.getAttributeNode(e)},getAttribute:function(e){var t=this.getAttributeNode(e);return t&&t.value||""},getAttributeNode:function(e){return this.attributes.getNamedItem(e)},setAttribute:function(e,t){var n=this.ownerDocument.createAttribute(e);n.value=n.nodeValue=""+t,this.setAttributeNode(n)},removeAttribute:function(e){var t=this.getAttributeNode(e);t&&this.removeAttributeNode(t)}
35,appendChild:function(e){return e.nodeType===N?this.insertBefore(e,null):(e.parentNode&&e.parentNode.removeChild(e),e.parentNode=this,e.previousSibling=this.lastChild,e.nextSibling=null,e.previousSibling?e.previousSibling.nextSibling=e:this.firstChild=e,this.lastChild=e,q(this.ownerDocument,this,e),e)},setAttributeNode:function(e){return this.attributes.setNamedItem(e)},setAttributeNodeNS:function(e){return this.attributes.setNamedItemNS(e)},removeAttributeNode:function(e){return this.attributes.removeNamedItem(e.nodeName)},removeAttributeNS:function(e,t){var n=this.getAttributeNodeNS(e,t);n&&this.removeAttributeNode(n)},hasAttributeNS:function(e,t){return null!=this.getAttributeNodeNS(e,t)},getAttributeNS:function(e,t){var n=this.getAttributeNodeNS(e,t);return n&&n.value||""},setAttributeNS:function(e,t,n){var r=this.ownerDocument.createAttributeNS(e,t);r.value=r.nodeValue=""+n,this.setAttributeNode(r)},getAttributeNodeNS:function(e,t){return this.attributes.getNamedItemNS(e,t)},getElementsByTagName:function(e){return new R(this,function(t){var n=[];return U(t,function(r){r!==t&&r.nodeType==f&&("*"===e||r.tagName==e)&&n.push(r)}),n})},getElementsByTagNameNS:function(e,t){return new R(this,function(n){var r=[];return U(n,function(i){i!==n&&i.nodeType===f&&("*"===e||i.namespaceURI===e)&&("*"===t||i.localName==t)&&r.push(i)}),r})}},V.prototype.getElementsByTagName=K.prototype.getElementsByTagName,V.prototype.getElementsByTagNameNS=K.prototype.getElementsByTagNameNS,c(K,M),Z.prototype.nodeType=d,c(Z,M),ee.prototype={data:"",substringData:function(e,t){return this.data.substring(e,e+t)},appendData:function(e){e=this.data+e,this.nodeValue=this.data=e,this.length=e.length},insertData:function(e,t){this.replaceData(e,0,t)},appendChild:function(e){throw Error(_[O])},deleteData:function(e,t){this.replaceData(e,t,"")},replaceData:function(e,t,n){n=this.data.substring(0,e)+n+this.data.substring(e+t),this.nodeValue=this.data=n,this.length=n.length}},c(ee,M),et.prototype={nodeName:"#text",nodeType:h,splitText:function(e){var t=this.data,n=t.substring(e);t=t.substring(0,e),this.data=this.nodeValue=t,this.length=t.length;var r=this.ownerDocument.createTextNode(n);return this.parentNode&&this.parentNode.insertBefore(r,this.nextSibling),r}},c(et,ee),en.prototype={nodeName:"#comment",nodeType:E},c(en,ee),er.prototype={nodeName:"#cdata-section",nodeType:y},c(er,ee),ei.prototype.nodeType=T,c(ei,M),eo.prototype.nodeType=w,c(eo,M),ea.prototype.nodeType=v,c(ea,M),es.prototype.nodeType=m,c(es,M),el.prototype.nodeName="#document-fragment",el.prototype.nodeType=N,c(el,M),eu.prototype.nodeType=g,c(eu,M),ec.prototype.serializeToString=function(e,t,n){return ep.call(e,t,n)},M.prototype.toString=ep;try{Object.defineProperty&&(Object.defineProperty(R.prototype,"length",{get:function(){return C(this),this.$$length}}),Object.defineProperty(M.prototype,"textContent",{get:function(){return function e(t){switch(t.nodeType){case f:case N:var n=[];for(t=t.firstChild;t;)7!==t.nodeType&&8!==t.nodeType&&n.push(e(t)),t=t.nextSibling;return n.join("");default:return t.nodeValue}}(this)},set:function(e){switch(this.nodeType){case f:case N:for(;this.firstChild;)this.removeChild(this.firstChild);(e||String(e))&&this.appendChild(this.ownerDocument.createTextNode(e));break;default:this.data=e,this.value=e,this.nodeValue=e}}}),ey=function(e,t,n){e["$$"+t]=n})}catch(e){}t.DocumentType=ei,t.DOMException=x,t.DOMImplementation=j,t.Element=K,t.Node=M,t.NodeList=D,t.XMLSerializer=ec},30092:(e,t,n)=>{"use strict";t.TextEncoder="undefined"!=typeof TextEncoder?TextEncoder:n(96362).TextEncoder,t.TextDecoder="undefined"!=typeof TextDecoder?TextDecoder:n(96362).TextDecoder},33026:(e,t,n)=>{var r=n(29586);t.DOMImplementation=r.DOMImplementation,t.XMLSerializer=r.XMLSerializer,t.DOMParser=n(80770).DOMParser},33812:function(e,t,n){"use strict";var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};
35Object.defineProperty(t,"__esModule",{value:!0}),t.store=t.PERSISTENCY_KEY=void 0;let i=n(70997);function o(){try{if(null==localStorage)return!1;let e=t.PERSISTENCY_KEY+"_test";return localStorage.setItem(e,"test"),localStorage.getItem(e),localStorage.removeItem(e),!0}catch(e){return!1}}t.PERSISTENCY_KEY="MSW_COOKIE_STORE";class a{constructor(){this.store=new Map}add(e,t){if("omit"===e.credentials)return;let n=new URL(e.url),o=t.headers.get("set-cookie");if(!o)return;let a=Date.now(),s=i.parse(o).map(e=>{var{maxAge:t}=e,n=r(e,["maxAge"]);return Object.assign(Object.assign({},n),{expires:void 0===t?n.expires:new Date(a+1e3*t),maxAge:t})}),l=this.store.get(n.origin)||new Map;s.forEach(e=>{this.store.set(n.origin,l.set(e.name,e))})}get(e){this.deleteExpiredCookies();let t=new URL(e.url),n=this.store.get(t.origin)||new Map;switch(e.credentials){case"include":if("undefined"==typeof document)return n;return i.parse(document.cookie).forEach(e=>{n.set(e.name,e)}),n;case"same-origin":return n;default:return new Map}}getAll(){return this.deleteExpiredCookies(),this.store}deleteAll(e){let t=new URL(e.url);this.store.delete(t.origin)}clear(){this.store.clear()}hydrate(){if(!o())return;let e=localStorage.getItem(t.PERSISTENCY_KEY);if(e)try{JSON.parse(e).forEach(([e,t])=>{this.store.set(e,new Map(t.map(e=>{var[t,n]=e,{expires:i}=n,o=r(n,["expires"]);return[t,void 0===i?o:Object.assign(Object.assign({},o),{expires:new Date(i)})]})))})}catch(e){console.warn(`
36[virtual-cookie] Failed to parse a stored cookie from the localStorage (key "${t.PERSISTENCY_KEY}").
37
38Stored value:
39${localStorage.getItem(t.PERSISTENCY_KEY)}
40
41Thrown exception:
42${e}
43
44Invalid value has been removed from localStorage to prevent subsequent failed parsing attempts.`),localStorage.removeItem(t.PERSISTENCY_KEY)}}persist(){if(!o())return;let e=Array.from(this.store.entries()).map(([e,t])=>[e,Array.from(t.entries())]);localStorage.setItem(t.PERSISTENCY_KEY,JSON.stringify(e))}deleteExpiredCookies(){let e=Date.now();this.store.forEach((t,n)=>{t.forEach(({expires:n,name:r})=>{void 0!==n&&n.getTime()<=e&&t.delete(r)}),0===t.size&&this.store.delete(n)})}}t.store=new a},37105:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.decodeBuffer=t.encodeBuffer=t.getCleanUrl=void 0,i(n(10315),t),i(n(84610),t),i(n(63616),t),i(n(48871),t),i(n(42925),t);var o=n(79837);Object.defineProperty(t,"getCleanUrl",{enumerable:!0,get:function(){return o.getCleanUrl}});var a=n(41176);Object.defineProperty(t,"encodeBuffer",{enumerable:!0,get:function(){return a.encodeBuffer}}),Object.defineProperty(t,"decodeBuffer",{enumerable:!0,get:function(){return a.decodeBuffer}})},38199:(e,t,n)=>{"use strict";var r="undefined"!=typeof Symbol&&Symbol,i=n(87617);e.exports=function(){return"function"==typeof r&&"function"==typeof Symbol&&"symbol"==typeof r("foo")&&"symbol"==typeof Symbol("bar")&&i()}},38763:(e,t,n)=>{"use strict";var r=n(71347);e.exports=Function.prototype.bind||r},40529:e=>{"use strict";var t,n,r=Function.prototype.toString,i="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof i&&"function"==typeof Object.defineProperty)try{t=Object.defineProperty({},"length",{get:function(){throw n}}),n={},i(function(){throw 42},null,t)}catch(e){e!==n&&(i=null)}else i=null;var o=/^\s*class\b/,a=function(e){try{var t=r.call(e);return o.test(t)}catch(e){return!1}},s=function(e){try{if(a(e))return!1;return r.call(e),!0}catch(e){return!1}},l=Object.prototype.toString,u="function"==typeof Symbol&&!!Symbol.toStringTag,c=!(0 in[,]),p=function(){return!1};if("object"==typeof document){var f=document.all;l.call(f)===l.call(document.all)&&(p=function(e){if((c||!e)&&(void 0===e||"object"==typeof e))try{var t=l.call(e);return("[object HTMLAllCollection]"===t||"[object HTML document.all class]"===t||"[object HTMLCollection]"===t||"[object Object]"===t)&&null==e("")}catch(e){}return!1})}
44e.exports=i?function(e){if(p(e))return!0;if(!e||"function"!=typeof e&&"object"!=typeof e)return!1;try{i(e,null,t)}catch(e){if(e!==n)return!1}return!a(e)&&s(e)}:function(e){if(p(e))return!0;if(!e||"function"!=typeof e&&"object"!=typeof e)return!1;if(u)return s(e);if(a(e))return!1;var t=l.call(e);return("[object Function]"===t||"[object GeneratorFunction]"===t||!!/^\[object HTML/.test(t))&&s(e)}},41176:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getArrayBuffer=t.decodeBuffer=t.encodeBuffer=void 0;var r=n(30092);function i(e){return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)}t.encodeBuffer=function(e){return i(new r.TextEncoder().encode(e))},t.decodeBuffer=function(e,t){return new r.TextDecoder(t).decode(e)},t.getArrayBuffer=i},42925:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.InteractiveIsomorphicRequest=void 0;var o=n(73910),a=n(48871),s=n(28288);t.InteractiveIsomorphicRequest=function(e){function t(t){var n=e.call(this,t)||this;return n.respondWith=s.createLazyCallback({maxCalls:1,maxCallsCallback:function(){o.invariant(!1,'Failed to respond to "%s %s" request: the "request" event has already been responded to.',n.method,n.url.href)}}),n}return i(t,e),t}(a.IsomorphicRequest)},43157:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MemoryLeakError=void 0;class n extends Error{constructor(e,t,n){super(`Possible EventEmitter memory leak detected. ${n} ${t.toString()} listeners added. Use emitter.setMaxListeners() to increase limit`),this.emitter=e,this.type=t,this.count=n,this.name="MaxListenersExceededWarning"}}t.MemoryLeakError=n},48149:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EventPolyfill=void 0,t.EventPolyfill=function(){function e(e,t){this.AT_TARGET=0,this.BUBBLING_PHASE=0,this.CAPTURING_PHASE=0,this.NONE=0,this.type="",this.srcElement=null,this.currentTarget=null,this.eventPhase=0,this.isTrusted=!0,this.composed=!1,this.cancelable=!0,this.defaultPrevented=!1,this.bubbles=!0,this.lengthComputable=!0,this.loaded=0,this.total=0,this.cancelBubble=!1,this.returnValue=!0,this.type=e,this.target=(null==t?void 0:t.target)||null,this.currentTarget=(null==t?void 0:t.currentTarget)||null,this.timeStamp=Date.now()}return e.prototype.composedPath=function(){return[]},e.prototype.initEvent=function(e,t,n){this.type=e,this.bubbles=!!t,this.cancelable=!!n},e.prototype.preventDefault=function(){this.defaultPrevented=!0},e.prototype.stopPropagation=function(){},e.prototype.stopImmediatePropagation=function(){},e}()},48211:(e,t,n)=>{"use strict";var r=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],i="undefined"==typeof globalThis?n.g:globalThis;e.exports=function(){for(var e=[],t=0;t<r.length;t++)"function"==typeof i[r[t]]&&(e[e.length]=r[t]);return e}},48380:(e,t,n)=>{e.exports=function(e){function t(e){let n,i,o,a=null;function s(...e){if(!s.enabled)return;let r=Number(new Date);s.diff=r-(n||r),s.prev=n,s.curr=r,n=r,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let i=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(n,r)=>{if("%%"===n)return"%";i++;let o=t.formatters[r];if("function"==typeof o){let t=e[i];n=o.call(s,t),e.splice(i,1),i--}return n}),t.formatArgs.call(s,e),(s.log||t.log).apply(s,e)}return s.namespace=e,s.useColors=t.useColors(),s.color=t.selectColor(e),s.extend=r,s.destroy=t.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==a?a:(i!==t.namespaces&&(i=t.namespaces,o=t.enabled(e)),o),set:e=>{a=e}}),"function"==typeof t.init&&t.init(s),s}function r(e,n){let r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function i(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){let e=[...t.names.map(i),...t.skips.map(i).map(e=>"-"+e)].join(",");return t.enable(""),e},t.enable=function(e){let n;t.save(e),t.namespaces=e,t.names=[],t.skips=[];let r=("string"==typeof e?e:"").split(/[\s,]+/),i=r.length;for(n=0;n<i;n++)r[n]&&("-"===(e=r[n].replace(/\*/g,".*?"))[0]?t.skips.push(RegExp("^"+e.slice(1)+"$")):t.names.push(RegExp("^"+e+"$")))},t.enabled=function(e){let n,r;if("*"===e[e.length-1])return!0;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(2812),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach(n=>{t[n]=e[n]}),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t)|0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}},48871:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Prom
44ise))(function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((r=r.apply(e,t||[])).next())})},i=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){var l=[o,s];if(n)throw TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&l[0]?r.return:l[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,l[1])).done)return i;switch(r=0,i&&(l=[2&l[0],i.value]),l[0]){case 0:case 1:i=l;break;case 4:return a.label++,{value:l[1],done:!1};case 5:a.label++,r=l[1],l=[0];continue;case 7:l=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===l[0]||2===l[0])){a=0;continue}if(3===l[0]&&(!i||l[1]>i[0]&&l[1]<i[3])){a.label=l[1];break}if(6===l[0]&&a.label<i[1]){a.label=i[1],i=l;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(l);break}i[2]&&a.ops.pop(),a.trys.pop();continue}l=t.call(e,a)}catch(e){l=[6,e],r=0}finally{n=i=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}};Object.defineProperty(t,"__esModule",{value:!0}),t.IsomorphicRequest=void 0;var o=n(57299),a=n(73910),s=n(41176),l=n(16846);t.IsomorphicRequest=function(){function e(t,n){void 0===n&&(n={});var r=new ArrayBuffer(0);if(this._bodyUsed=!1,t instanceof e){this.id=t.id,this.url=t.url,this.method=t.method,this.headers=t.headers,this.credentials=t.credentials,this._body=t._body||r;return}this.id=l.uuidv4(),this.url=t,this.method=n.method||"GET",this.headers=new o.Headers(n.headers),this.credentials=n.credentials||"same-origin",this._body=n.body||r}return Object.defineProperty(e.prototype,"bodyUsed",{get:function(){return this._bodyUsed},enumerable:!1,configurable:!0}),e.prototype.text=function(){return r(this,void 0,void 0,function(){return i(this,function(e){return a.invariant(!this.bodyUsed,'Failed to execute "text" on "IsomorphicRequest": body buffer already read'),this._bodyUsed=!0,[2,s.decodeBuffer(this._body)]})})},e.prototype.json=function(){return r(this,void 0,void 0,function(){return i(this,function(e){return a.invariant(!this.bodyUsed,'Failed to execute "json" on "IsomorphicRequest": body buffer already read'),this._bodyUsed=!0,[2,JSON.parse(s.decodeBuffer(this._body))]})})},e.prototype.arrayBuffer=function(){return r(this,void 0,void 0,function(){return i(this,function(e){return a.invariant(!this.bodyUsed,'Failed to execute "arrayBuffer" on "IsomorphicRequest": body buffer already read'),this._bodyUsed=!0,[2,this._body]})})},e.prototype.clone=function(){return new e(this)},e}()},52450:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toIsoResponse=void 0;var r=n(57299);t.toIsoResponse=function(e){var t;return{status:null!=(t=e.status)?t:200,statusText:e.statusText||"OK",headers:r.objectToHeaders(e.headers||{}),body:e.body}}},56709:function(e,t,n){"use strict";var r,i,o,a=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((r=r.apply(e,t||[])).next())})},l=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){var l=[o,s];if(n)throw TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&l[0]?r.return:l[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,l[1])).done)return i;switch(r=0,i&&(l=[2&l[0],i.value]),l[0]){case 0:case 1:i=l;break;case 4:return a.label++,{value:l[1],done:!1};case 5:a.label++,r=l[1],l=[0];continue;case 7:l=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===l[0]||2===l[0])){a=0;continue}if(3===l[0]&&(!i||l[1]>i[0]&&l[1]<i[3])){a.label=l[1];break}if(6===l[0]&&a.label<i[1]){a.label=i[1],i=l;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(l);break}i[2]&&a.ops.pop(),a.trys.pop();continue}l=t.call(e,a)}catch(e){l=[6,e],r=0}finally{n=i=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}},u=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},c=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};
44Object.defineProperty(t,"__esModule",{value:!0}),t.AsyncEventEmitter=t.AsyncEventEmitterReadyState=void 0;var p=n(69259),f=n(60172),d=n(9957);(r=o=t.AsyncEventEmitterReadyState||(t.AsyncEventEmitterReadyState={})).ACTIVE="ACTIVE",r.DEACTIVATED="DEACTIVATED",t.AsyncEventEmitter=function(e){function t(){var t=e.call(this)||this;return t.log=p.debug("async-event-emitter"),t.queue=new Map,t.readyState=o.ACTIVE,t}return a(t,e),t.prototype.on=function(t,n){var r=this,i=this.log.extend("on");return(i('adding "%s" listener...',t),this.readyState===o.DEACTIVATED)?(i("the emitter is destroyed, skipping!"),this):e.prototype.on.call(this,t,function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return s(r,void 0,void 0,function(){var r,o=this;return l(this,function(a){return r=this.openListenerQueue(t),i('awaiting the "%s" listener...',t),r.push({args:e,done:new Promise(function(r,a){return s(o,void 0,void 0,function(){var o;return l(this,function(s){switch(s.label){case 0:return s.trys.push([0,2,,3]),[4,n.apply(void 0,c([],u(e)))];case 1:return s.sent(),r(),i('"%s" listener has resolved!',t),[3,3];case 2:return i('"%s" listener has rejected!',o=s.sent()),a(o),[3,3];case 3:return[2]}})})})}),[2]})})})},t.prototype.emit=function(t){for(var n=this,r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];var a=this.log.extend("emit");return(a('emitting "%s" event...',t),this.readyState===o.DEACTIVATED)?(a("the emitter is destroyed, skipping!"),!1):(this.openListenerQueue(t),a('appending a one-time cleanup "%s" listener...',t),this.once(t,function(){d.nextTick(function(){n.queue.delete(t),a('cleaned up "%s" listeners queue!',t)})}),e.prototype.emit.apply(this,c([t],u(r))))},t.prototype.untilIdle=function(e,t){return void 0===t&&(t=function(){return!0}),s(this,void 0,void 0,function(){var n=this;return l(this,function(r){switch(r.label){case 0:return[4,Promise.all((this.queue.get(e)||[]).filter(t).map(function(e){return e.done})).finally(function(){n.queue.delete(e)})];case 1:return r.sent(),[2]}})})},t.prototype.openListenerQueue=function(e){var t=this.log.extend("openListenerQueue");t('opening "%s" listeners queue...',e);var n=this.queue.get(e);return n?(t("returning an exising queue:",n),n):(t("no queue found, creating one..."),this.queue.set(e,[]),[])},t.prototype.removeAllListeners=function(t){var n=this.log.extend("removeAllListeners");return n("event:",t),t?(this.queue.delete(t),n('cleared the "%s" listeners queue!',t,this.queue.get(t))):(this.queue.clear(),n("cleared the listeners queue!",this.queue)),e.prototype.removeAllListeners.call(this,t)},t.prototype.activate=function(){var e=this.log.extend("activate");this.readyState=o.ACTIVE,e("set state to:",this.readyState)},t.prototype.deactivate=function(){var e=this.log.extend("deactivate");e("removing all listeners..."),this.removeAllListeners(),this.readyState=o.DEACTIVATED,e("set state to:",this.readyState)},t}(f.StrictEventEmitter)},57299:e=>{var t,n,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,a=Object.prototype.hasOwnProperty,s={};((e,t)=>{for(var n in t)r(e,n,{get:t[n],enumerable:!0})})(s,{Headers:()=>f,flattenHeadersList:()=>T,flattenHeadersObject:()=>N,headersToList:()=>d,headersToObject:()=>m,headersToString:()=>h,listToHeaders:()=>g,objectToHeaders:()=>b,reduceHeadersObject:()=>E,stringToHeaders:()=>v}),e.exports=((e,t,n,s)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let l of o(t))a.call(e,l)||l===n||r(e,l,{get:()=>t[l],enumerable:!(s=i(t,l))||s.enumerable});return e})(r({},"__esModule",{value:!0}),s);var l=/[^a-z0-9\-#$%&'*+.^_`|~]/i;function u(e){if("string"!=typeof e&&(e=String(e)),l.test(e)||""===e.trim())throw TypeError("Invalid character in header field name");return e.toLowerCase()}var c=Symbol("normalizedHeaders"),p=Symbol("rawHeaderNames"),f=class{constructor(e){this[t]={},this[n]=new Map,["Headers","HeadersPolyfill"].includes(null==e?void 0:e.constructor.name)||e instanceof f?e.forEach((e,t)=>{this.append(t,e)},this):Array.isArray(e)?e.forEach(([e,t])=>{this.append(e,Array.isArray(t)?t.join(", "):t)}):e&&Object.getOwnPropertyNames(e).forEach(t=>{let n=e[t];this.append(t,Array.isArray(n)?n.join(", "):n)})}[(t=c,n=p,Symbol.iterator)](){return this.entries()}*keys(){for(let e of Object.keys(this[c]))yield e}*values(){for(let e of Object.values(this[c]))yield e}*entries(){for(let e of Object.keys(this[c]))yield[e,this.get(e)]}get(e){return this[c][u(e)]||null}set(e,t){var n;let r=u(e);this[c][r]=("string"!=typeof(n=t)&&(n=String(n)),n),this[p].set(r,e)}append(e,t){let n=u(e),r=this.has(n)?`${this.get(n)}, ${t}`:t;this.set(e,r)}delete(e){if(!this.has(e))return;let t=u(e);delete this[c][t],this[p].delete(t)}all(){return this[c]}raw(){let e={};for(let[t,n]of this.entries())e[this[p].get(t)]=n;return e}has(e){return this[c].hasOwnProperty(u(e))}forEach(e,t){for(let n in this[c])this[c].hasOwnProperty(n)&&e.call(t,this[c][n],n,this)}};function d(e){let t=[];return e.forEach((e,n)=>{let r=e.includes(",")?e.split(",").map(e=>e.trim()):e;t.push([n,r])}),t}function h(e){return d(e).map(([e,t])=>{let n=[].concat(t);return`${e}: ${n.join(", ")}`}).join("\r\n")}var y=["user-agent"];function m(e){let t={};return e.forEach((e,n)=>{let r=!y.includes(n.toLowerCase())&&e.includes(",");t[n]=r?e.split(",").map(e=>e.trim()):e}),t}function v(e){return e.trim().split(/[\r\n]+/).reduce((e,t)=>
44{if(""===t.trim())return e;let n=t.split(": "),r=n.shift(),i=n.join(": ");return e.append(r,i),e},new f)}function g(e){let t=new f;return e.forEach(([e,n])=>{[].concat(n).forEach(n=>{t.append(e,n)})}),t}function E(e,t,n){return Object.keys(e).reduce((n,r)=>t(n,r,e[r]),n)}function b(e){return E(e,(e,t,n)=>([].concat(n).filter(Boolean).forEach(n=>{e.append(t,n)}),e),new f)}function T(e){return e.map(([e,t])=>[e,[].concat(t).join(", ")])}function N(e){return E(e,(e,t,n)=>(e[t]=[].concat(n).join(", "),e),{})}},57933:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((r=r.apply(e,t||[])).next())})},i=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){var l=[o,s];if(n)throw TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&l[0]?r.return:l[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,l[1])).done)return i;switch(r=0,i&&(l=[2&l[0],i.value]),l[0]){case 0:case 1:i=l;break;case 4:return a.label++,{value:l[1],done:!1};case 5:a.label++,r=l[1],l=[0];continue;case 7:l=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===l[0]||2===l[0])){a=0;continue}if(3===l[0]&&(!i||l[1]>i[0]&&l[1]<i[3])){a.label=l[1];break}if(6===l[0]&&a.label<i[1]){a.label=i[1],i=l;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(l);break}i[2]&&a.ops.pop(),a.trys.pop();continue}l=t.call(e,a)}catch(e){l=[6,e],r=0}finally{n=i=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}},o=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},a=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a};Object.defineProperty(t,"__esModule",{value:!0}),t.createXMLHttpRequestOverride=void 0;var s=n(99567),l=n(57299),u=n(33026),c=n(84078),p=n(52450),f=n(93507),d=n(94883),h=n(48871),y=n(41176),m=n(42925);t.createXMLHttpRequestOverride=function(e){var t,n=e.XMLHttpRequest,v=e.emitter,g=e.log;return(t=function(){function e(){this._events=[],this.log=g,this.UNSENT=0,this.OPENED=1,this.HEADERS_RECEIVED=2,this.LOADING=3,this.DONE=4,this.onreadystatechange=null,this.onabort=null,this.onerror=null,this.onload=null,this.onloadend=null,this.onloadstart=null,this.onprogress=null,this.ontimeout=null,this.url="",this.method="GET",this.readyState=this.UNSENT,this.withCredentials=!1,this.status=200,this.statusText="OK",this.response="",this.responseType="text",this.responseText="",this.responseXML=null,this.responseURL="",this.upload={},this.timeout=0,this._requestHeaders=new l.Headers,this._responseHeaders=new l.Headers}return e.prototype.setReadyState=function(e){e!==this.readyState&&(this.log("readyState change %d -> %d",this.readyState,e),this.readyState=e,e!==this.UNSENT&&(this.log("triggering readystate change..."),this.trigger("readystatechange")))},e.prototype.trigger=function(e,t){this.log('trigger "%s" (%d)',e,this.readyState),this.log('resolve listener for event "%s"',e);var n,r,i=this["on"+e];null==i||i.call(this,d.createEvent(this,e,t));try{for(var a=o(this._events),s=a.next();!s.done;s=a.next()){var l=s.value;l.name===e&&(g('calling mock event listener "%s" (%d)',e,this.readyState),l.listener.call(this,d.createEvent(this,e,t)))}}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return this},e.prototype.reset=function(){this.log("reset"),this.setReadyState(this.UNSENT),this.status=200,this.statusText="OK",this.response=null,this.responseText=null,this.responseXML=null,this._requestHeaders=new l.Headers,this._responseHeaders=new l.Headers},e.prototype.open=function(e,t,n,o,a){return void 0===n&&(n=!0),r(this,void 0,void 0,function(){return i(this,function(r){return this.log=this.log.extend("request "+e+" "+t),this.log("open",{method:e,url:t,async:n,user:o,password:a}
44),this.reset(),this.setReadyState(this.OPENED),void 0===t?(this.url=e,this.method="GET"):(this.url=t,this.method=e,this.async=n,this.user=o,this.password=a),[2]})})},e.prototype.send=function(e){var t,o,u=this;this.log("send %s %s",this.method,this.url),t="string"==typeof e?y.encodeBuffer(e):e||new ArrayBuffer(0);try{o=new URL(this.url)}catch(e){o=new URL(this.url,window.location.href)}this.log("request headers",this._requestHeaders);var c=new h.IsomorphicRequest(o,{body:t,method:this.method,headers:this._requestHeaders,credentials:this.withCredentials?"include":"omit"}),d=new m.InteractiveIsomorphicRequest(c);this.log('emitting the "request" event for %d listener(s)...',v.listenerCount("request")),v.emit("request",d),this.log("awaiting mocked response..."),Promise.resolve(s.until(function(){return r(u,void 0,void 0,function(){var e;return i(this,function(t){switch(t.label){case 0:return[4,v.untilIdle("request",function(e){return a(e.args,1)[0].id===d.id})];case 1:return t.sent(),this.log("all request listeners have been resolved!"),[4,d.respondWith.invoked()];case 2:return e=a.apply(void 0,[t.sent(),1])[0],this.log("event.respondWith called with:",e),[2,e]}})})})).then(function(t){var r,i,o=a(t,2),s=o[0],d=o[1];if(s){u.log("middleware function threw an exception!",s),u.trigger("error"),u.abort();return}if(d){if(u.log("received mocked response",d),u.trigger("loadstart"),u.status=null!=(r=d.status)?r:200,u.statusText=d.statusText||"OK",u._responseHeaders=d.headers?l.objectToHeaders(d.headers):new l.Headers,u.log("set response status",u.status,u.statusText),u.log("set response headers",u._responseHeaders),u.setReadyState(u.HEADERS_RECEIVED),u.log("response type",u.responseType),u.response=u.getResponseBody(d.body),u.responseURL=u.url,u.responseText=d.body||"",u.responseXML=u.getResponseXML(),u.log("set response body",u.response),d.body&&u.response){u.setReadyState(u.LOADING);var h=f.bufferFrom(d.body);u.trigger("progress",{loaded:h.length,total:h.length})}u.setReadyState(u.DONE),u.trigger("load"),u.trigger("loadend"),v.emit("response",c,p.toIsoResponse(d))}else{u.log("no mocked response received!");var y=new n;u.log("opening an original request %s %s",u.method,u.url),y.open(u.method,u.url,null==(i=u.async)||i,u.user,u.password),y.addEventListener("load",function(){u.log('original "onload"'),u.status=y.status,u.statusText=y.statusText,u.responseURL=y.responseURL,u.responseType=y.responseType,u.response=y.response,u.responseText=y.responseText,u.responseXML=y.responseXML,u.log("set mock request readyState to DONE"),u.setReadyState(u.DONE),u.log("received original response",u.status,u.statusText),u.log("original response body:",u.response);var e=y.getAllResponseHeaders();u.log("original response headers:\n",e),u._responseHeaders=l.stringToHeaders(e),u.log("original response headers (normalized)",u._responseHeaders),u.log("original response finished"),v.emit("response",c,{status:y.status,statusText:y.statusText,headers:u._responseHeaders,body:y.response})}),u.propagateCallbacks(y),u.propagateListeners(y),u.propagateHeaders(y,u._requestHeaders),u.async&&(y.timeout=u.timeout),u.log("send",e),y.send(e)}})},e.prototype.abort=function(){this.log("abort"),this.readyState>this.UNSENT&&this.readyState<this.DONE&&(this.setReadyState(this.UNSENT),this.trigger("abort"))},e.prototype.dispatchEvent=function(){return!1},e.prototype.setRequestHeader=function(e,t){this.log('set request header "%s" to "%s"',e,t),this._requestHeaders.append(e,t)},e.prototype.getResponseHeader=function(e){if(this.log('get response header "%s"',e),this.readyState<this.HEADERS_RECEIVED)return this.log("cannot return a header: headers not received (state: %s)",this.readyState),null;var t=this._responseHeaders.get(e);return this.log('resolved response header "%s" to "%s"',e,t,this._responseHeaders),t},e.prototype.getAllResponseHeaders=function(){return(this.log("get all response headers"),this.readyState<this.HEADERS_RECEIVED)?(this.log("cannot return headers: headers not received (state: %s)",this.readyState),""):l.headersToString(this._responseHeaders)},e.prototype.addEventListener=function(e,t){this.log("addEventListener",e,t),this._events.push({name:e,listener:t})},e.prototype.removeEventListener=function(e,t){this.log("removeEventListener",e,t),this._events=this._events.filter(function(n){return n.name!==e&&n.listener!==t})},e.prototype.overrideMimeType=function(){},e.prototype.getResponseBody=function(e){var t=null!=e?e:"";switch(this.log("coerced response body to",t),this.responseType){case"json":return this.log("resolving response body as JSON"),c.parseJson(t);case"blob":var n=this.getResponseHeader("content-type")||"text/plain";return this.log("resolving response body as Blob",{type:n}),new Blob([t],{type:n});case"arraybuffer":return this.log("resolving response body as ArrayBuffer"),f.bufferFrom(t);default:return t}},e.prototype.getResponseXML=function(){var e=this.getResponseHeader("Content-Type");return"application/xml"===e||"text/xml"===e?new u.DOMParser().parseFromString(this.responseText,e):null},e.prototype.propagateCallbacks=function(e){var t,n;this.log("propagating request callbacks to the original request");try{for(var r=o(["abort","onerror","ontimeout","onload","onloadstart","onloadend","onprogress","onreadystatechange"]),i=r.next();!i.done;i=r.next()){var a=i.value,s=this[a];s&&(e[a]=this[a],this.log('propagated the "%s" callback',a,s))}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}e.onabort=this.abort,e.onerror=this.onerror,e.ontimeout=this.ontimeout,e.onload=this.onload,e.onloadstart=this.onloadstart,e.onloadend=this.onloadend,e.onprogress=this.onprogress,e.onreadystatechange=this.onreadystatechange},e.prototype.propagateListeners=function(e){this.log("propagating request listeners (%d) to the original request",this._events.length,this._events),this._events.forEac
44h(function(t){var n=t.name,r=t.listener;e.addEventListener(n,r)})},e.prototype.propagateHeaders=function(e,t){var n=this;this.log("propagating request headers to the original request",t),Object.entries(t.raw()).forEach(function(t){var r=a(t,2),i=r[0],o=r[1];n.log('setting "%s" (%s) header on the original request',i,o),e.setRequestHeader(i,o)})},e}()).UNSENT=0,t.OPENED=1,t.HEADERS_RECEIVED=2,t.LOADING=3,t.DONE=4,t}},58027:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.until=async e=>{try{let t=await e().catch(e=>{throw e});return[null,t]}catch(e){return[e,null]}}},59840:(e,t,n)=>{"use strict";var r,i,o,a,s,l,u;n.r(t),n.d(t,{BREAK:()=>eE,BreakingChangeType:()=>l,DEFAULT_DEPRECATION_REASON:()=>tH,DangerousChangeType:()=>u,DirectiveLocation:()=>i,ExecutableDefinitionsRule:()=>nS,FieldsOnCorrectTypeRule:()=>nA,FragmentsOnCompositeTypesRule:()=>nx,GRAPHQL_MAX_INT:()=>tD,GRAPHQL_MIN_INT:()=>tR,GraphQLBoolean:()=>tF,GraphQLDeprecatedDirective:()=>tY,GraphQLDirective:()=>tB,GraphQLEnumType:()=>tN,GraphQLError:()=>T,GraphQLFloat:()=>tL,GraphQLID:()=>tP,GraphQLIncludeDirective:()=>tq,GraphQLInputObjectType:()=>tI,GraphQLInt:()=>tC,GraphQLInterfaceType:()=>tE,GraphQLList:()=>e8,GraphQLNonNull:()=>e5,GraphQLObjectType:()=>tp,GraphQLScalarType:()=>tc,GraphQLSchema:()=>ni,GraphQLSkipDirective:()=>tG,GraphQLSpecifiedByDirective:()=>tQ,GraphQLString:()=>tk,GraphQLUnionType:()=>tb,Kind:()=>o,KnownArgumentNamesRule:()=>nD,KnownDirectivesRule:()=>nC,KnownFragmentNamesRule:()=>nL,KnownTypeNamesRule:()=>nk,Lexer:()=>j,Location:()=>O,LoneAnonymousOperationRule:()=>nP,LoneSchemaDefinitionRule:()=>nj,NoDeprecatedCustomRule:()=>r7,NoFragmentCyclesRule:()=>nM,NoSchemaIntrospectionCustomRule:()=>r8,NoUndefinedVariablesRule:()=>n$,NoUnusedFragmentsRule:()=>nU,NoUnusedVariablesRule:()=>nV,OperationTypeNode:()=>r,OverlappingFieldsCanBeMergedRule:()=>nq,PossibleFragmentSpreadsRule:()=>nK,PossibleTypeExtensionsRule:()=>nZ,ProvidedRequiredArgumentsRule:()=>n1,ScalarLeafsRule:()=>n9,SchemaMetaFieldDef:()=>t7,SingleFieldSubscriptionsRule:()=>rc,Source:()=>X,Token:()=>S,TokenKind:()=>a,TypeInfo:()=>ny,TypeKind:()=>s,TypeMetaFieldDef:()=>t8,TypeNameMetaFieldDef:()=>t5,UniqueArgumentDefinitionNamesRule:()=>rf,UniqueArgumentNamesRule:()=>rd,UniqueDirectiveNamesRule:()=>rh,UniqueDirectivesPerLocationRule:()=>ry,UniqueEnumValueNamesRule:()=>rm,UniqueFieldDefinitionNamesRule:()=>rv,UniqueFragmentNamesRule:()=>rg,UniqueInputFieldNamesRule:()=>rE,UniqueOperationNamesRule:()=>rb,UniqueOperationTypesRule:()=>rT,UniqueTypeNamesRule:()=>rN,UniqueVariableNamesRule:()=>rw,ValidationContext:()=>rC,ValuesOfCorrectTypeRule:()=>rI,VariablesAreInputTypesRule:()=>rO,VariablesInAllowedPositionRule:()=>rS,__Directive:()=>t0,__DirectiveLocation:()=>t1,__EnumValue:()=>t6,__Field:()=>t2,__InputValue:()=>t9,__Schema:()=>tZ,__Type:()=>t3,__TypeKind:()=>t4,assertAbstractType:()=>e7,assertCompositeType:()=>e6,assertDirective:()=>tV,assertEnumType:()=>eH,assertEnumValueName:()=>eL,assertInputObjectType:()=>eQ,assertInputType:()=>eZ,assertInterfaceType:()=>eV,assertLeafType:()=>e2,assertListType:()=>eW,assertName:()=>eC,assertNamedType:()=>ta,assertNonNullType:()=>ez,assertNullableType:()=>tr,assertObjectType:()=>e$,assertOutputType:()=>e1,assertScalarType:()=>ej,assertSchema:()=>nr,assertType:()=>eF,assertUnionType:()=>eq,assertValidName:()=>iL,assertValidSchema:()=>ns,assertWrappingType:()=>tt,astFromValue:()=>tz,buildASTSchema:()=>ic,buildClientSchema:()=>ii,buildSchema:()=>ip,coerceInputValue:()=>n8,concatAST:()=>ix,createSourceEventStream:()=>r6,defaultFieldResolver:()=>rK,defaultTypeResolver:()=>rz,doTypesOverlap:()=>tx,execute:()=>rM,executeSync:()=>r$,extendSchema:()=>io,findBreakingChanges:()=>iF,findDangerousChanges:()=>iP,formatError:()=>I,getArgumentValues:()=>rr,getDirectiveValues:()=>ri,getEnterLeaveForKind:()=>eN,getIntrospectionQuery:()=>r5,getLocation:()=>v,getNamedType:()=>ts,getNullableType:()=>ti,getOperationAST:()=>ie,getOperationRootType:()=>it,getVariableValues:()=>rn,getVisitFn:()=>ew,graphql:()=>r0,graphqlSync:()=>r1,introspectionFromSchema:()=>ir,introspectionTypes:()=>ne,isAbstractType:()=>e4,isCompositeType:()=>e9,isConstValueNode:()=>function e(t){return nT(t)&&(t.kind===o.LIST?t.values.some(e):t.kind===o.OBJECT?t.fields.some(t=>e(t.value)):t.kind!==o.VARIABLE)},isDefinitionNode:()=>ng,isDirective:()=>tU,isEnumType:()=>eG,isEqualType:()=>tS,isExecutableDefinitionNode:()=>nE,isInputObjectType:()=>eY,isInputType:()=>
44eK,isInterfaceType:()=>eU,isIntrospectionType:()=>nt,isLeafType:()=>e3,isListType:()=>eJ,isNamedType:()=>to,isNonNullType:()=>eX,isNullableType:()=>tn,isObjectType:()=>eM,isOutputType:()=>e0,isRequiredArgument:()=>tg,isRequiredInputField:()=>tO,isScalarType:()=>eP,isSchema:()=>nn,isSelectionNode:()=>nb,isSpecifiedDirective:()=>tW,isSpecifiedScalarType:()=>tM,isType:()=>ek,isTypeDefinitionNode:()=>nI,isTypeExtensionNode:()=>nO,isTypeNode:()=>nN,isTypeSubTypeOf:()=>tA,isTypeSystemDefinitionNode:()=>nw,isTypeSystemExtensionNode:()=>n_,isUnionType:()=>eB,isValidNameError:()=>ik,isValueNode:()=>nT,isWrappingType:()=>te,lexicographicSortSchema:()=>id,locatedError:()=>rP,parse:()=>z,parseConstValue:()=>Z,parseType:()=>ee,parseValue:()=>K,print:()=>eI,printError:()=>w,printIntrospectionSchema:()=>ig,printLocation:()=>g,printSchema:()=>iv,printSourceLocation:()=>E,printType:()=>iT,resolveObjMapThunk:()=>tu,resolveReadonlyArrayThunk:()=>tl,responsePathAsArray:()=>n7,separateOperations:()=>iD,specifiedDirectives:()=>tJ,specifiedRules:()=>rA,specifiedScalarTypes:()=>tj,stripIgnoredCharacters:()=>iC,subscribe:()=>r9,syntaxError:()=>_,typeFromAST:()=>nh,validate:()=>rL,validateSchema:()=>na,valueFromAST:()=>re,valueFromASTUntyped:()=>eR,version:()=>c,versionInfo:()=>p,visit:()=>eb,visitInParallel:()=>eT,visitWithTypeInfo:()=>nv});let c="16.6.0",p=Object.freeze({major:16,minor:6,patch:0,preReleaseTag:null});function f(e,t){if(!e)throw Error(t)}function d(e){return"function"==typeof(null==e?void 0:e.then)}function h(e){return"object"==typeof e&&null!==e}function y(e,t){if(!e)throw Error(null!=t?t:"Unexpected invariant triggered.")}let m=/\r\n|[\n\r]/g;function v(e,t){let n=0,r=1;for(let i of e.body.matchAll(m)){if("number"==typeof i.index||y(!1),i.index>=t)break;n=i.index+i[0].length,r+=1}return{line:r,column:t+1-n}}function g(e){return E(e.source,v(e.source,e.start))}function E(e,t){let n=e.locationOffset.column-1,r="".padStart(n)+e.body,i=t.line-1,o=e.locationOffset.line-1,a=t.line+o,s=1===t.line?n:0,l=t.column+s,u=`${e.name}:${a}:${l}
45`,c=r.split(/\r\n|[\n\r]/g),p=c[i];if(p.length>120){let e=Math.floor(l/80),t=[];for(let e=0;e<p.length;e+=80)t.push(p.slice(e,e+80));return u+b([[`${a} |`,t[0]],...t.slice(1,e+1).map(e=>["|",e]),["|","^".padStart(l%80)],["|",t[e+1]]])}return u+b([[`${a-1} |`,c[i-1]],[`${a} |`,p],["|","^".padStart(l)],[`${a+1} |`,c[i+1]]])}function b(e){let t=e.filter(([e,t])=>void 0!==t),n=Math.max(...t.map(([e])=>e.length));return t.map(([e,t])=>e.padStart(n)+(t?" "+t:"")).join("\n")}class T extends Error{constructor(e,...t){var n,r,i;let{nodes:o,source:a,positions:s,path:l,originalError:u,extensions:c}=function(e){let t=e[0];return null==t||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}(t);super(e),this.name="GraphQLError",this.path=null!=l?l:void 0,this.originalError=null!=u?u:void 0,this.nodes=N(Array.isArray(o)?o:o?[o]:void 0);let p=N(null==(n=this.nodes)?void 0:n.map(e=>e.loc).filter(e=>null!=e));this.source=null!=a?a:null==p||null==(r=p[0])?void 0:r.source,this.positions=null!=s?s:null==p?void 0:p.map(e=>e.start),this.locations=s&&a?s.map(e=>v(a,e)):null==p?void 0:p.map(e=>v(e.source,e.start));let f=h(null==u?void 0:u.extensions)?null==u?void 0:u.extensions:void 0;this.extensions=null!=(i=null!=c?c:f)?i: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}}),null!=u&&u.stack?Object.defineProperty(this,"stack",{value:u.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,T):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes)for(let t of this.nodes)t.loc&&(e+="\n\n"+g(t.loc));else if(this.source&&this.locations)for(let t of this.locations)e+="\n\n"+E(this.source,t);return e}toJSON(){let e={message:this.message};return null!=this.locations&&(e.locations=this.locations),null!=this.path&&(e.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}function N(e){return void 0===e||0===e.length?void 0:e}function w(e){return e.toString()}function I(e){return e.toJSON()}function _(e,t,n){return new T(`Syntax Error: ${n}`,{source:e,positions:[t]})}class O{constructor(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class S{constructor(e,t,n,r,i,o){this.kind=e,this.start=t,this.end=n,this.line=r,this.column=i,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}}}let A={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:[],Float
45Value:[],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"]},x=new Set(Object.keys(A));function D(e){let t=null==e?void 0:e.kind;return"string"==typeof t&&x.has(t)}function R(e){return 9===e||32===e}function C(e){return e>=48&&e<=57}function L(e){return e>=97&&e<=122||e>=65&&e<=90}function k(e){return L(e)||95===e}function F(e){return L(e)||C(e)||95===e}function P(e,t){let n=e.replace(/"""/g,'\\"""'),r=n.split(/\r\n|[\n\r]/g),i=1===r.length,o=r.length>1&&r.slice(1).every(e=>0===e.length||R(e.charCodeAt(0))),a=n.endsWith('\\"""'),s=e.endsWith('"')&&!a,l=e.endsWith("\\"),u=s||l,c=!(null!=t&&t.minimize)&&(!i||e.length>70||u||o||a),p="",f=i&&R(e.charCodeAt(0));return(c&&!f||o)&&(p+="\n"),p+=n,(c||u)&&(p+="\n"),'"""'+p+'"""'}!function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"}(r||(r={})),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"}(i||(i={})),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"}(o||(o={})),!function(e){e.SOF="<SOF>",e.EOF="<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="}
45",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"}(a||(a={}));class j{constructor(e){let t=new S(a.SOF,0,0,0,0);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==a.EOF)do if(e.next)e=e.next;else{let t=function(e,t){let n=e.source.body,r=n.length,i=t;for(;i<r;){let t=n.charCodeAt(i);switch(t){case 65279:case 9:case 32:case 44:++i;continue;case 10:++i,++e.line,e.lineStart=i;continue;case 13:10===n.charCodeAt(i+1)?i+=2:++i,++e.line,e.lineStart=i;continue;case 35:return function(e,t){let n=e.source.body,r=n.length,i=t+1;for(;i<r;){let e=n.charCodeAt(i);if(10===e||13===e)break;if($(e))++i;else if(U(n,i))i+=2;else break}return G(e,a.COMMENT,t,i,n.slice(t+1,i))}(e,i);case 33:return G(e,a.BANG,i,i+1);case 36:return G(e,a.DOLLAR,i,i+1);case 38:return G(e,a.AMP,i,i+1);case 40:return G(e,a.PAREN_L,i,i+1);case 41:return G(e,a.PAREN_R,i,i+1);case 46:if(46===n.charCodeAt(i+1)&&46===n.charCodeAt(i+2))return G(e,a.SPREAD,i,i+3);break;case 58:return G(e,a.COLON,i,i+1);case 61:return G(e,a.EQUALS,i,i+1);case 64:return G(e,a.AT,i,i+1);case 91:return G(e,a.BRACKET_L,i,i+1);case 93:return G(e,a.BRACKET_R,i,i+1);case 123:return G(e,a.BRACE_L,i,i+1);case 124:return G(e,a.PIPE,i,i+1);case 125:return G(e,a.BRACE_R,i,i+1);case 34:if(34===n.charCodeAt(i+1)&&34===n.charCodeAt(i+2))return function(e,t){let n=e.source.body,r=n.length,i=e.lineStart,o=t+3,s=o,l="",u=[];for(;o<r;){let r=n.charCodeAt(o);if(34===r&&34===n.charCodeAt(o+1)&&34===n.charCodeAt(o+2)){l+=n.slice(s,o),u.push(l);let r=G(e,a.BLOCK_STRING,t,o+3,(function(e){var t,n;let r=Number.MAX_SAFE_INTEGER,i=null,o=-1;for(let t=0;t<e.length;++t){let a=e[t],s=function(e){let t=0;for(;t<e.length&&R(e.charCodeAt(t));)++t;return t}(a);s!==a.length&&(i=null!=(n=i)?n:t,o=t,0!==t&&s<r&&(r=s))}return e.map((e,t)=>0===t?e:e.slice(r)).slice(null!=(t=i)?t:0,o+1)})(u).join("\n"));return e.line+=u.length-1,e.lineStart=i,r}if(92===r&&34===n.charCodeAt(o+1)&&34===n.charCodeAt(o+2)&&34===n.charCodeAt(o+3)){l+=n.slice(s,o),s=o+1,o+=4;continue}if(10===r||13===r){l+=n.slice(s,o),u.push(l),13===r&&10===n.charCodeAt(o+1)?o+=2:++o,l="",s=o,i=o;continue}if($(r))++o;else if(U(n,o))o+=2;else throw _(e.source,o,`Invalid character within String: ${q(e,o)}.`)}throw _(e.source,o,"Unterminated string.")}(e,i);return function(e,t){let n=e.source.body,r=n.length,i=t+1,o=i,s="";for(;i<r;){let r=n.charCodeAt(i);if(34===r)return s+=n.slice(o,i),G(e,a.STRING,t,i+1,s);if(92===r){s+=n.slice(o,i);let t=117===n.charCodeAt(i+1)?123===n.charCodeAt(i+2)?function(e,t){let n=e.source.body,r=0,i=3;for(;i<12;){let e=n.charCodeAt(t+i++);if(125===e){if(i<5||!$(r))break;return{value:String.fromCodePoint(r),size:i}}if((r=r<<4|Q(e))<0)break}throw _(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+i)}".`)}(e,i):function(e,t){let n=e.source.body,r=Y(n,t+2);if($(r))return{value:String.fromCodePoint(r),size:6};if(V(r)&&92===n.charCodeAt(t+6)&&117===n.charCodeAt(t+7)){let e=Y(n,t+8);if(B(e))return{value:String.fromCodePoint(r,e),size:12}}throw _(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+6)}".`)}(e,i):function(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:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:"	",size:2}}throw _(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}(e,i);s+=t.value,i+=t.size,o=i;continue}if(10===r||13===r)break;if($(r))++i;else if(U(n,i))i+=2;else throw _(e.source,i,`Invalid character within String: ${q(e,i)}.`)}throw _(e.source,i,"Unterminated string.")}(e,i)}if(C(t)||45===t)return function(e,t,n){let r=e.source.body,i=t,o=n,s=!1;if(45===o&&(o=r.charCodeAt(++i)),48===o){if(C(o=r.charCodeAt(++i)))throw _(e.source,i,`Invalid number, unexpected digit after 0: ${q(e,i)}.`)}else i=H(e,i,o),o=r.charCodeAt(i);if(46===o&&(s=!0,o=r.charCodeAt(++i),i=H(e,i,o),o=r.charCodeAt(i)),(69===o||101===o)&&(s=!0,(43===(o=r.charCodeAt(++i))||45===o)&&(o=r.charCodeAt(++i)),i=H(e,i,o),o=r.charCodeAt(i)),46===o||k(o))throw _(e.source,i,`Invalid number, expected digit but got: ${q(e,i)}.`);return G(e,s?a.FLOAT:a.INT,t,i,r.slice(t,i))}(e,i,t);if(k(t))return function(e,t){let n=e.source.body,r=n.length,i=t+1;for(;i<r;)if(F(n.charCodeAt(i)))++i;else break;return G(e,a.NAME,t,i,n.slice(t,i))}(e,i);throw _(e.source,i,39===t?"Unexpected single quote character ('), did you mean to use a double quote (\")?":$(t)||U(n,i)?`Unexpected character: ${q(e,i)}.`:`Invalid character: ${q(e,i)}.`)}return G(e,a.EOF,r,r)}(this,e.end);e.next=t,t.prev=e,e=t}while(e.kind===a.COMMENT);return e}}function M(e){return e===a.BANG||e===a.DOLLAR||e===a.AMP||e===a.PAREN_L||e===a.PAREN_R||e===a.SPREAD||e===a.COLON||e===a.EQUALS||e===a.AT||e===a.BRACKET_L||e===a.BRACKET_R||e===a.BRACE_L||e===a.PIPE||e===a.BRACE_R}function $(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function U(e,t){return V(e.charCodeAt(t))&&B(e.charCodeAt(t+1))}function V(e){return e>=55296&&e<=56319}function B(e){return e>=56320&&e<=57343}function q(e,t){let n=e.source.body.codePointAt(t);if(void 0===n)return a.EOF;if(n>=32&&n<=126){let e=String.fromCodePoint(n);return'"'===e?"'\"'":`"${e}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function G(e,t,n,r,i){let o=e.line,a=1+n-e.lineStart;return new S(t,n,r,o,a,i)}function H(e,t,n){if(!C(n))throw _(e.source,t,`Invalid number, expected digit but got: ${q(e,t)}.`);let r=e.source.body,i=t+1;for(;C(r.charCodeAt(i));)++i;return i}function Y(e,t){return Q(e.charCodeAt(t))<<12|Q(e.charCodeAt(t+1))<<8|Q(e.charCodeAt(t+2))<<4|Q(e.charCodeAt(t+3))}function Q(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function J(e){return function e(t,n){switch(typeof t){case"string":return JSON.stringify(t);case"function":return t.name?`[function ${t.name}]`:"[function]";case"object":return function(t,n){if(null===t)return"null";if(n.includes(t))return"[Circular]";let r=[...n,t];if("function"==typeof t.toJSON){let n=t.toJSON();if(n!==t)return"string"==typeof n?n:e(n,r)}else if(Array.isArray(t)){var i=t,o=r;if(0===i.length)return"[]";if(o.length>2)return"[Array]";let n=Math.min(10,i.length),a=i.length-n,s=[];for(let t=0;t<n;++t)s.push(e(i[t],o));return 1===a?s.push("... 1 more item"):a>1&&s.push(`... ${a} more items`),"["+s.join(", ")+"]"}var a=t,s=r;let l=Object.entries(a);return 0===l.length?"{}":s.length>2?"["+function(e){let t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){let t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return t}(a)+"]":"{ "+l.map(([t,n])=>t+": "+e(n,s)).join(", ")+" }"}(t,n);default:return String(t)}}(e,[])}let W=function(e,t){return e instanceof t};class X{constructor(e,t="GraphQL request",n={line:1,column:1}){"string"==typeof e||f(!1,`Body must be a string. Received: ${J(e)}.`),this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||f(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||f(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}function z(e,t){return new et(e,t).parseDocument()}function K(e,t){let n=new et(e,t);n.expectToken(a.SOF);let r=n.parseValueLiteral(!1);return n.expectToken(a.EOF),r}function Z(e,t){let n=new et(e,t);n.expectToken(a.SOF);let r=n.parseConstValueLiteral();return n.expectToken(a.EOF),r}function ee(e,t){let n=new et(e,t);n.expectToken(a.SOF);let r=n.parseTypeReference();return n.expectToken(a.EOF),r}class et{constructor(e,t={}){let n=W(e,X)?e:new X(e);this._lexer=new j(n),this._options=t,this._tokenCounter=0}parseName(){let e=this.expectToken(a.NAME);return this.node(e,{kind:o.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:o.DOCUMENT,definitions:this.many(a.SOF,this.parseDefinition,a.EOF)})}parseDefinition(){if(this.peek(a.BRACE_L))return this.parseOperationDefinition();let e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(t.kind===a.NAME){switch(t.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(e)throw _(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(t)}parseOperationDefinition(){let e,t=this._lexer.token;if(this.peek(a.BRACE_L))return this.node(t,{kind:o.OPERATION_DEFINITION,operation:r.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});let n=this.parseOperationType();return this.peek(a.NAME)&&(e=this.parseName()),this.node(t,{kind:o.OPERATION_DEFINITION,operation:n,name:e,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){let e=this.expectToken(a.NAME);switch(e.value){case"query":return r.QUERY;case"mutation":return r.MUTATION;case"subscription":return r.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(a.PAREN_L,this.parseVariableDefinition,a.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:o.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(a.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(a.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){let e=this._lexer.token;return this.expectToken(a.DOLLAR),this.node(e,{kind:o.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:o.SELECTION_SET,selections:this.many(a.BRACE_L,this.parseSelection,a.BRACE_R)})}parseSelection(){return this.peek(a.SPREAD)?this.parseFragment():this.parseField()}parseField(){let e,t,n=this._lexer.token,r=this.parseName();return this.expectOptionalToken(a.COLON)?(e=r,t=this.parseName()):t=r,this.node(n,{kind:o.FIELD,alias:e,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(a.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){let t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(a.PAREN_L,t,a.PAREN_R)}parseArgument(e=!1){let t=this._lexer.token,n=this.parseName();return this.expectToken(a.COLON),this.node(t,{kind:o.ARGUMENT,name:n,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){let e=this._lexer.token;this.expectToken(a.SPREAD);let t=this.expectOptionalKeyword("on");return!t&&this.peek(a.NAME)?this.node(e,{kind:o.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:o.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){let e=this._lexer.token;return(this.expectKeyword("fragment"),!0===this._options.allowLegacyFragmentVariables)?this.node(e,{kind:o.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:o.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(e){let t=this._lexer.token;switch(t.kind){case a.BRACKET_L:return this.parseList(e);case a.BRACE_L:return this.parseObject(e);case a.INT:return this.advanceLexer(),this.node(t,{kind:o.INT,value:t.value});case a.FLOAT:return this.advanceLexer(),this.node(t,{kind:o.FLOAT,value:t.value});case a.STRING:case a.BLOCK_STRING:return this.parseStringLiteral();case a.NAME:switch(this.advanceLexer(),t.value){case"true":return this.node(t,{kind:o.BOOLEAN,value:!0});case"false":return this.node(t,{kind:o.BOOLEAN,value:!1});case"null":return this.node(t,{kind:o.NULL});default:return this.node(t,{kind:o.ENUM,value:t.value})}case a.DOLLAR:if(e){if(this.expectToken(a.DOLLAR),this._lexer.token.kind===a.NAME){let e=this._lexer.token.value;throw _(this._lexer.source,t.start,`Unexpected variable "$${e}" in constant value.`)}throw this.unexpected(t)}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){let e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:o.STRING,value:e.value,block:e.kind===a.BLOCK_STRING})}parseList(e){let t=()=>this.parseValueLiteral(e);return this.node(this._lexer.token,{kind:o.LIST,values:this.any(a.BRACKET_L,t,a.BRACKET_R)})}parseObject(e){let t=()=>this.parseObjectField(e);return this.node(this._lexer.token,{kind:o.OBJECT,fields:this.any(a.BRACE_L,t,a.BRACE_R)})}parseObjectField(e){let t=this._lexer.token,n=this.parseName();return this.expectToken(a.COLON),this.node(t,{kind:o.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e)})}parseDirectives(e){let t=[];for(;this.peek(a.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){let t=this._lexer.token;return this.expectToken(a.AT),this.node(t,{kind:o.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){let e,t=this._lexer.token;if(this.expectOptionalToken(a.BRACKET_L)){let n=this.parseTypeReference();this.expectToken(a.BRACKET_R),e=this.node(t,{kind:o.LIST_TYPE,type:n})}else e=this.parseNamedType();return this.expectOptionalToken(a.BANG)?this.node(t,{kind:o.NON_NULL_TYPE,type:e}):e}parseNamedType(){return this.node(this._lexer.token,{kind:o.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(a.STRING)||this.peek(a.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");let n=this.parseConstDirectives(),r=this.many(a.BRACE_L,this.parseOperationTypeDefinition,a.BRACE_R);return this.node(e,{kind:o.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:r})}parseOperationTypeDefinition(){let e=this._lexer.token,t=this.parseOperationType();this.expectToken(a.COLON);let n=this.parseNamedType();return this.node(e,{kind:o.OPERATION_TYPE_DEFINITION,operation:t,type:n})}parseScalarTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");let n=this.parseName(),r=this.parseConstDirectives();return this.node(e,{kind:o.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:r})}parseObjectTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");let n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(e,{kind:o.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:a})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(a.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(a.BRACE_L,this.parseFieldDefinition,a.BRACE_R)}parseFieldDefinition(){let e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseArgumentDefs();this.expectToken(a.COLON);let i=this.parseTypeReference(),s=this.parseConstDirectives();return this.node(e,{kind:o.FIELD_DEFINITION,description:t,name
45:n,arguments:r,type:i,directives:s})}parseArgumentDefs(){return this.optionalMany(a.PAREN_L,this.parseInputValueDef,a.PAREN_R)}parseInputValueDef(){let e,t=this._lexer.token,n=this.parseDescription(),r=this.parseName();this.expectToken(a.COLON);let i=this.parseTypeReference();this.expectOptionalToken(a.EQUALS)&&(e=this.parseConstValueLiteral());let s=this.parseConstDirectives();return this.node(t,{kind:o.INPUT_VALUE_DEFINITION,description:n,name:r,type:i,defaultValue:e,directives:s})}parseInterfaceTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");let n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(e,{kind:o.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:a})}parseUnionTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");let n=this.parseName(),r=this.parseConstDirectives(),i=this.parseUnionMemberTypes();return this.node(e,{kind:o.UNION_TYPE_DEFINITION,description:t,name:n,directives:r,types:i})}parseUnionMemberTypes(){return this.expectOptionalToken(a.EQUALS)?this.delimitedMany(a.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");let n=this.parseName(),r=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();return this.node(e,{kind:o.ENUM_TYPE_DEFINITION,description:t,name:n,directives:r,values:i})}parseEnumValuesDefinition(){return this.optionalMany(a.BRACE_L,this.parseEnumValueDefinition,a.BRACE_R)}parseEnumValueDefinition(){let e=this._lexer.token,t=this.parseDescription(),n=this.parseEnumValueName(),r=this.parseConstDirectives();return this.node(e,{kind:o.ENUM_VALUE_DEFINITION,description:t,name:n,directives:r})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw _(this._lexer.source,this._lexer.token.start,`${en(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");let n=this.parseName(),r=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();return this.node(e,{kind:o.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:r,fields:i})}parseInputFieldsDefinition(){return this.optionalMany(a.BRACE_L,this.parseInputValueDef,a.BRACE_R)}parseTypeSystemExtension(){let e=this._lexer.lookahead();if(e.kind===a.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)}parseSchemaExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");let t=this.parseConstDirectives(),n=this.optionalMany(a.BRACE_L,this.parseOperationTypeDefinition,a.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:o.SCHEMA_EXTENSION,directives:t,operationTypes:n})}parseScalarTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");let t=this.parseName(),n=this.parseConstDirectives();if(0===n.length)throw this.unexpected();return this.node(e,{kind:o.SCALAR_TYPE_EXTENSION,name:t,directives:n})}parseObjectTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");let t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:o.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i})}parseInterfaceTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");let t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:o.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i})}parseUnionTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");let t=this.parseName(),n=this.parseConstDirectives(),r=this.parseUnionMemberTypes();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:o.UNION_TYPE_EXTENSION,name:t,directives:n,types:r})}parseEnumTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");let t=this.parseName(),n=this.parseConstDirectives(),r=this.parseEnumValuesDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:o.ENUM_TYPE_EXTENSION,name:t,directives:n,values:r})}parseInputObjectTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");let t=this.parseName(),n=this.parseConstDirectives(),r=this.parseInputFieldsDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:o.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:r})}parseDirectiveDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(a.AT);let n=this.parseName(),r=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");let s=this.parseDirectiveLocations();return this.node(e,{kind:o.DIRECTIVE_DEFINITION,description:t,name:n,arguments:r,repeatable:i,locations:s})}parseDirectiveLocations(){return this.delimitedMany(a.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){let e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(i,t.value))return t;throw this.unexpected(e)}node(e,t){return!0!==this._options.noLocation&&(t.loc=new O(e,this._lexer.lastToken,this._lexer.source)),t}peek(e){return this._lexer.token.kind===e}expectToken(e){let t=this._lexer.token;if(t.kind===e)return this.advanceLexer(),t;throw _(this._lexer.source,t.start,`Expected ${er(e)}, found ${en(t)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e&&(this.advanceLexer(),!0)}expectKeyword(e){let t=this._lexer.token;if(t.kind===a.NAME&&t.value===e)this.advanceLexer();else throw _(this._lexer.source,t.start,`Expected "${e}", found ${en(t)}.`)}expectOptionalKeyword(e){let t=this._lexer.token;return t.kind===a.NAME&&t.value===e&&(this.advanceLexer(),!0)}unexpected(e){let t=null!=e?e:this._lexer.token;return _(this._lexer.source,t.start,`Unexpected ${en(t)}.`)}any(e,t,n){this.expectToken(e);let r=[];for(;!this.expectOptionalToken(n);)r.push(t.call(this));return r}optionalMany(e,t,n){if(this.expectOptionalToken(e)){let e=[];do e.push(t.call(this));while(!this.expectOptionalToken(n));return e}return[]}many(e,t,n){this.expectToken(e);let r=[];do r.push(t.call(this));while(!this.expectOptionalToken(n));return r}delimitedMany(e,t){this.expectOptionalToken(e);let n=[];do n.push(t.call(this));while(this.expectOptionalToken(e));return n}advanceLexer(){let{maxTokens:e}=this._options,t=this._lexer.advance();if(void 0!==e&&t.kind!==a.EOF&&(++this._tokenCounter,this._tokenCounter>e))throw _(this._lexer.source,t.start,`Document contains more that ${e} tokens. Parsing aborted.`)}}function en(e){let t=e.value;return er(e.kind)+(null!=t?` "${t}"`:"")}function er(e){return M(e)?`"${e}"`:e}
45function ei(e,t){let[n,r]=t?[e,t]:[void 0,e],i=" Did you mean ";n&&(i+=n+" ");let o=r.map(e=>`"${e}"`);switch(o.length){case 0:return"";case 1:return i+o[0]+"?";case 2:return i+o[0]+" or "+o[1]+"?"}let a=o.slice(0,5),s=a.pop();return i+a.join(", ")+", or "+s+"?"}function eo(e){return e}function ea(e,t){let n=Object.create(null);for(let r of e)n[t(r)]=r;return n}function es(e,t,n){let r=Object.create(null);for(let i of e)r[t(i)]=n(i);return r}function el(e,t){let n=Object.create(null);for(let r of Object.keys(e))n[r]=t(e[r],r);return n}function eu(e,t){let n=0,r=0;for(;n<e.length&&r<t.length;){let i=e.charCodeAt(n),o=t.charCodeAt(r);if(ep(i)&&ep(o)){let a=0;do++n,a=10*a+i-ec,i=e.charCodeAt(n);while(ep(i)&&a>0);let s=0;do++r,s=10*s+o-ec,o=t.charCodeAt(r);while(ep(o)&&s>0);if(a<s)return -1;if(a>s)return 1}else{if(i<o)return -1;if(i>o)return 1;++n,++r}}return e.length-t.length}let ec=48;function ep(e){return!isNaN(e)&&ec<=e&&e<=57}function ef(e,t){let n=Object.create(null),r=new ed(e),i=Math.floor(.4*e.length)+1;for(let e of t){let t=r.measure(e,i);void 0!==t&&(n[e]=t)}return Object.keys(n).sort((e,t)=>{let r=n[e]-n[t];return 0!==r?r:eu(e,t)})}class ed{constructor(e){this._input=e,this._inputLowerCase=e.toLowerCase(),this._inputArray=eh(this._inputLowerCase),this._rows=[Array(e.length+1).fill(0),Array(e.length+1).fill(0),Array(e.length+1).fill(0)]}measure(e,t){if(this._input===e)return 0;let n=e.toLowerCase();if(this._inputLowerCase===n)return 1;let r=eh(n),i=this._inputArray;if(r.length<i.length){let e=r;r=i,i=e}let o=r.length,a=i.length;if(o-a>t)return;let s=this._rows;for(let e=0;e<=a;e++)s[0][e]=e;for(let e=1;e<=o;e++){let n=s[(e-1)%3],o=s[e%3],l=o[0]=e;for(let t=1;t<=a;t++){let a=+(r[e-1]!==i[t-1]),u=Math.min(n[t]+1,o[t-1]+1,n[t-1]+a);e>1&&t>1&&r[e-1]===i[t-2]&&r[e-2]===i[t-1]&&(u=Math.min(u,s[(e-2)%3][t-2]+1)),u<l&&(l=u),o[t]=u}if(l>t)return}let l=s[o%3][a];return l<=t?l:void 0}}function eh(e){let t=e.length,n=Array(t);for(let r=0;r<t;++r)n[r]=e.charCodeAt(r);return n}function ey(e){if(null==e)return Object.create(null);if(null===Object.getPrototypeOf(e))return e;let t=Object.create(null);for(let[n,r]of Object.entries(e))t[n]=r;return t}let em=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function ev(e){return eg[e.charCodeAt(0)]}let eg=["\\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"],eE=Object.freeze({});function eb(e,t,n=A){let r,i,a,s=new Map;for(let e of Object.values(o))s.set(e,eN(t,e));let l=Array.isArray(e),u=[e],c=-1,p=[],d=e,h=[],y=[];do{var m,v,g;let e,o=++c===u.length,E=o&&0!==p.length;if(o){if(i=0===y.length?void 0:h[h.length-1],d=a,a=y.pop(),E)if(l){d=d.slice();let e=0;for(let[t,n]of p){let r=t-e;null===n?(d.splice(r,1),e++):d[r]=n}}else for(let[e,t]of(d=Object.defineProperties({},Object.getOwnPropertyDescriptors(d)),p))d[e]=t;c=r.index,u=r.keys,p=r.edits,l=r.inArray,r=r.prev}else if(a){if(null==(d=a[i=l?c:u[c]]))continue;h.push(i)}if(!Array.isArray(d)){D(d)||f(!1,`Invalid AST Node: ${J(d)}.`);let n=o?null==(m=s.get(d.kind))?void 0:m.leave:null==(v=s.get(d.kind))?void 0:v.enter;if((e=null==n?void 0:n.call(t,d,i,a,h,y))===eE)break;if(!1===e){if(!o){h.pop();continue}}else if(void 0!==e&&(p.push([i,e]),!o))if(D(e))d=e;else{h.pop();continue}}void 0===e&&E&&p.push([i,d]),o?h.pop():(r={inArray:l,index:c,keys:u,edits:p,prev:r},u=(l=Array.isArray(d))?d:null!=(g=n[d.kind])?g:[],c=-1,p=[],a&&y.push(a),a=d)}while(void 0!==r);return 0!==p.length?p[p.length-1][1]:e}function eT(e){let t=Array(e.length).fill(null),n=Object.create(null);for(let r of Object.values(o)){let i=!1,o=Array(e.length).fill(void 0),a=Array(e.length).fill(void 0);for(let t=0;t<e.length;++t){let{enter:n,leave:s}=eN(e[t],r);i||(i=null!=n||null!=s),o[t]=n,a[t]=s}if(!i)continue;let s={enter(...n){let r=n[0];for(let a=0;a<e.length;a++)if(null===t[a]){var i;let s=null==(i=o[a])?void 0:i.apply(e[a],n);if(!1===s)t[a]=r;else if(s===eE)t[a]=eE;else if(void 0!==s)return s}},leave(...n){let r=n[0];for(let o=0;o<e.length;o++)if(null===t[o]){var i;let r=null==(i=a[o])?void 0:i.apply(e[o],n);if(r===eE)t[o]=eE;else if(void 0!==r&&!1!==r)return r}else t[o]===r&&(t[o]=null)}};n[r]=s}return n}function eN(e,t){let n=e[t];return"object"==typeof n?n:"function"==typeof n?{enter:n,leave:void 0}:{enter:e.enter,leave:e.leave}}
45function ew(e,t,n){let{enter:r,leave:i}=eN(e,t);return n?i:r}function eI(e){return eb(e,e_)}let e_={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>eO(e.definitions,"\n\n")},OperationDefinition:{leave(e){let t=eA("(",eO(e.variableDefinitions,", "),")"),n=eO([e.operation,eO([e.name,t]),eO(e.directives," ")]," ");return("query"===n?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r})=>e+": "+t+eA(" = ",n)+eA(" ",eO(r," "))},SelectionSet:{leave:({selections:e})=>eS(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:i}){let o=eA("",e,": ")+t,a=o+eA("(",eO(n,", "),")");return a.length>80&&(a=o+eA("(\n",ex(eO(n,"\n")),"\n)")),eO([a,eO(r," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+eA(" ",eO(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>eO(["...",eA("on ",e),eO(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:i})=>`fragment ${e}${eA("(",eO(n,", "),")")} on ${t} ${eA("",eO(r," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?P(e):`"${e.replace(em,ev)}"`},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+eO(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+eO(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+eA("(",eO(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>eA("",e,"\n")+eO(["schema",eO(t," "),eS(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>eA("",e,"\n")+eO(["scalar",t,eO(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>eA("",e,"\n")+eO(["type",t,eA("implements ",eO(n," & ")),eO(r," "),eS(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:r,directives:i})=>eA("",e,"\n")+t+(eD(n)?eA("(\n",ex(eO(n,"\n")),"\n)"):eA("(",eO(n,", "),")"))+": "+r+eA(" ",eO(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:r,directives:i})=>eA("",e,"\n")+eO([t+": "+n,eA("= ",r),eO(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>eA("",e,"\n")+eO(["interface",t,eA("implements ",eO(n," & ")),eO(r," "),eS(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:r})=>eA("",e,"\n")+eO(["union",t,eO(n," "),eA("= ",eO(r," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:r})=>eA("",e,"\n")+eO(["enum",t,eO(n," "),eS(r)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>eA("",e,"\n")+eO([t,eO(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:r})=>eA("",e,"\n")+eO(["input",t,eO(n," "),eS(r)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,repeatable:r,locations:i})=>eA("",e,"\n")+"directive @"+t+(eD(n)?eA("(\n",ex(eO(n,"\n")),"\n)"):eA("(",eO(n,", "),")"))+(r?" repeatable":"")+" on "+eO(i," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>eO(["extend schema",eO(e," "),eS(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>eO(["extend scalar",e,eO(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>eO(["extend type",e,eA("implements ",eO(t," & ")),eO(n," "),eS(r)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>eO(["extend interface",e,eA("implements ",eO(t," & ")),eO(n," "),eS(r)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>eO(["extend union",e,eO(t," "),eA("= ",eO(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>eO(["extend enum",e,eO(t," "),eS(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>eO(["extend input",e,eO(t," "),eS(n)]," ")}};function eO(e,t=""){var n;return null!=(n=null==e?void 0:e.filter(e=>e).join(t))?n:""}function eS(e){return eA("{\n",ex(eO(e,"\n")),"\n}")}function eA(e,t,n=""){return null!=t&&""!==t?e+t+n:""}function ex(e){return eA("  ",e.replace(/\n/g,"\n  "))}function eD(e){var t;return null!=(t=null==e?void 0:e.some(e=>e.includes("\n")))&&t}function eR(e,t){switch(e.kind){case o.NULL:return null;case o.INT:return parseInt(e.value,10);case o.FLOAT:return parseFloat(e.value);case o.STRING:case o.ENUM:case o.BOOLEAN:return e.value;case o.LIST:return e.values.map(e=>eR(e,t));case o.OBJECT:return es(e.fields,e=>e.name.value,e=>eR(e.value,t));case o.VARIABLE:return null==t?void 0:t[e.name.value]}}function eC(e){if(null!=e||f(!1,"Must provide name."),"string"==typeof e||f(!1,"Expected name to be a string."),0===e.length)throw new T("Expected name to be a non-empty string.");for(let t=1;t<e.length;++t)if(!F(e.charCodeAt(t)))throw new T(`Names must only contain [_a-zA-Z0-9] but "${e}" does not.`);if(!k(e.charCodeAt(0)))throw new T(`Names must start with [_a-zA-Z] but "${e}" does not.`);return e}function eL(e){if("true"===e||"false"===e||"null"===e)throw new T(`Enum values cannot be named: ${e}`);return eC(e)}function ek(e){return eP(e)||eM(e)||eU(e)||eB(e)||eG(e)||eY(e)||eJ(e)||eX(e)}function eF(e){if(!ek(e))throw Error(`Expected ${J(e)} to be a GraphQL type.`);return e}function eP(e){return W(e,tc)}function ej(e){if(!eP(e))throw Error(`Expected ${J(e)} to be a GraphQL Scalar type.`);return e}function eM(e){return W(e,tp)}function e$(e){if(!eM(e))throw Error(`Expected ${J(e)} to be a GraphQL Object type.`);return e}function eU(e){return W(e,tE)}function eV(e){if(!eU(e))throw Error(`Expected ${J(e)} to be a GraphQL Interface type.`);return e}function eB(e){return W(e,tb)}function eq(e){if(!eB(e))throw Error(`Expected ${J(e)} to be a GraphQL Union type.`);return e}function eG(e){return W(e,tN)}function eH(e){if(!eG(e))throw Error(`Expected ${J(e)} to be a GraphQL Enum type.`);return e}function eY(e){return W(e,tI)}function eQ(e){if(!eY(e))throw Error(`Expected ${J(e)} to be a GraphQL Input Object type.`);return e}function eJ(e){return W(e,e8)}function eW(e){if(!eJ(e))throw Error(`Expected ${J(e)} to be a GraphQL List type.`);return e}function eX(e){return W(e,e5)}function ez(e){if(!eX(e))throw Error(`Expected ${J(e)} to be a GraphQL Non-Null type.`);return e}function eK(e){return eP(e)||eG(e)||eY(e)||te(e)&&eK(e.ofType)}function eZ(e){if(!eK(e))throw Error(`Expected ${J(e)} to be a GraphQL input type.`);return e}function e0(e){return eP(e)||eM(e)||eU(e)||eB(e)||eG(e)||te(e)&&e0(e.ofType)}function e1(e){if(!e0(e))throw Error(`Expected ${J(e)} to be a GraphQL output type.`);return e}function e3(e){return eP(e)||eG(e)}function e2(e){if(!e3(e))throw Error(`Expected ${J(e)} to be a GraphQL leaf type.`);return e}function e9(e){return eM(e)||eU(e)||eB(e)}function e6(e){if(!e9(e))throw Error(`Expected ${J(e)} to be a GraphQL composite type.`);return e}function e4(e){return eU(e)||eB(e)}function e7(e){if(!e4(e))throw Error(`Expected ${J(e)} to be a GraphQL abstract type.`);return e}class e8{constructor(e){ek(e)||f(!1,`Expected ${J(e)} to be a GraphQL type.`),this.ofType=e}get[Symbol.toStringTag](){return"GraphQLList"}toString(){return"["+String(this.ofType)+"]"}toJSON(){return this.toString()}}class e5{constructor(e){tn(e)||f(!1,`Expected ${J(e)} to be a GraphQL nullable type.`),this.ofType=e}get[Symbol.toStringTag](){return"GraphQLNonNull"}toString(){return String(this.ofType)+"!"}toJSON(){return this.toString()}}function te(e){return eJ(e)||eX(e)}function tt(e){if(!te(e))throw Error(`Expected ${J(e)} to be a GraphQL wrapping type.`);return e}function tn(e){return ek(e)&&!eX(e)}function tr(e){if(!tn(e))throw Error(`Expected ${J(e)} to be a GraphQL nullable type.`);return e}function ti(e){if(e)return eX(e)?e.ofType:e}function to(e){return eP(e)||eM(e)||eU(e)||eB(e)||eG(e)||eY(e)}function ta(e){if(!to(e))throw Error(`Expected ${J(e)} to be a GraphQL named type.`);return e}function ts(e){if(e){let t=e;for(;te(t);)t=t.ofType;return t}}function tl(e){return"function"==typeof e?e():e}function tu(e){return"function"==typeof e?e():e}class tc{constructor(e){var t,n,r,i;let o=null!=(t=e.parseValue)?t:eo;this.name=eC(e.name),this.description=e.description,this.specifiedByURL=e.specifiedByURL,this.serialize=null!=(n=e.serialize)?n:eo,this.parseValue=o,this.parseLiteral=null!=(r=e.parseLiteral)?r:(e,t)=>o(eR(e,t)),this.extensions=ey(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!=(i=e.extensionASTNodes)?i:[],null==e.specifiedByURL||"string"==typeof e.specifiedByURL||f(!1,`${this.name} must provide "specifiedByURL" as a string, but got: ${J(e.specifiedByURL)}.`),null==e.serialize||"function"==typeof e.serialize||f(!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.`),e.parseLiteral&&("function"==typeof e.parseValue&&"function"==typeof e.parseLiteral||f(!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()}}class tp{constructor(e){var t;this.name=eC(e.name),this.description=e.description,this.isTypeOf=e.isTypeOf,this.extensions=ey(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!=(t=e.extensionASTNodes)?t:[],this._fields=()=>td(e),this._interfaces=()=>tf(e),null==e.isTypeOf||"function"==typeof e.isTypeOf||f(!1,`${this.name} must provide "isTypeOf" as a function, but got: ${J(e.isTypeOf)}.`)}get[Symbol.toStringTag](){return"GraphQLObjectType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}
45getInterfaces(){return"function"==typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:tm(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function tf(e){var t;let n=tl(null!=(t=e.interfaces)?t:[]);return Array.isArray(n)||f(!1,`${e.name} interfaces must be an Array or a function which returns an Array.`),n}function td(e){let t=tu(e.fields);return ty(t)||f(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),el(t,(t,n)=>{var r;ty(t)||f(!1,`${e.name}.${n} field config must be an object.`),null==t.resolve||"function"==typeof t.resolve||f(!1,`${e.name}.${n} field resolver must be a function if provided, but got: ${J(t.resolve)}.`);let i=null!=(r=t.args)?r:{};return ty(i)||f(!1,`${e.name}.${n} args must be an object with argument names as keys.`),{name:eC(n),description:t.description,type:t.type,args:th(i),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:ey(t.extensions),astNode:t.astNode}})}function th(e){return Object.entries(e).map(([e,t])=>({name:eC(e),description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:ey(t.extensions),astNode:t.astNode}))}function ty(e){return h(e)&&!Array.isArray(e)}function tm(e){return el(e,e=>({description:e.description,type:e.type,args:tv(e.args),resolve:e.resolve,subscribe:e.subscribe,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}))}function tv(e){return es(e,e=>e.name,e=>({description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}))}function tg(e){return eX(e.type)&&void 0===e.defaultValue}class tE{constructor(e){var t;this.name=eC(e.name),this.description=e.description,this.resolveType=e.resolveType,this.extensions=ey(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!=(t=e.extensionASTNodes)?t:[],this._fields=td.bind(void 0,e),this._interfaces=tf.bind(void 0,e),null==e.resolveType||"function"==typeof e.resolveType||f(!1,`${this.name} must provide "resolveType" as a function, but got: ${J(e.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLInterfaceType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}getInterfaces(){return"function"==typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:tm(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}class tb{constructor(e){var t;this.name=eC(e.name),this.description=e.description,this.resolveType=e.resolveType,this.extensions=ey(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!=(t=e.extensionASTNodes)?t:[],this._types=tT.bind(void 0,e),null==e.resolveType||"function"==typeof e.resolveType||f(!1,`${this.name} must provide "resolveType" as a function, but got: ${J(e.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLUnionType"}getTypes(){return"function"==typeof this._types&&(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()}}function tT(e){let t=tl(e.types);return Array.isArray(t)||f(!1,`Must provide Array of types or a function which returns such an array for Union ${e.name}.`),t}class tN{constructor(e){var t;this.name=eC(e.name),this.description=e.description,this.extensions=ey(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!=(t=e.extensionASTNodes)?t:[],this._values=function(e,t){return ty(t)||f(!1,`${e} values must be an object with value names as keys.`),Object.entries(t).map(([t,n])=>(ty(n)||f(!1,`${e}.${t} must refer to an object with a "value" key representing an internal value but got: ${J(n)}.`),{name:eL(t),description:n.description,value:void 0!==n.value?n.value:t,deprecationReason:n.deprecationReason,extensions:ey(n.extensions),astNode:n.astNode}))}(this.name,e.values),this._valueLookup=new Map(this._values.map(e=>[e.value,e])),this._nameLookup=ea(this._values,e=>e.name)}
45get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){return this._values}getValue(e){return this._nameLookup[e]}serialize(e){let t=this._valueLookup.get(e);if(void 0===t)throw new T(`Enum "${this.name}" cannot represent value: ${J(e)}`);return t.name}parseValue(e){if("string"!=typeof e){let t=J(e);throw new T(`Enum "${this.name}" cannot represent non-string value: ${t}.`+tw(this,t))}let t=this.getValue(e);if(null==t)throw new T(`Value "${e}" does not exist in "${this.name}" enum.`+tw(this,e));return t.value}parseLiteral(e,t){if(e.kind!==o.ENUM){let t=eI(e);throw new T(`Enum "${this.name}" cannot represent non-enum value: ${t}.`+tw(this,t),{nodes:e})}let n=this.getValue(e.value);if(null==n){let t=eI(e);throw new T(`Value "${t}" does not exist in "${this.name}" enum.`+tw(this,t),{nodes:e})}return n.value}toConfig(){let e=es(this.getValues(),e=>e.name,e=>({description:e.description,value:e.value,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}));return{name:this.name,description:this.description,values:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function tw(e,t){return ei("the enum value",ef(t,e.getValues().map(e=>e.name)))}class tI{constructor(e){var t;this.name=eC(e.name),this.description=e.description,this.extensions=ey(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!=(t=e.extensionASTNodes)?t:[],this._fields=t_.bind(void 0,e)}get[Symbol.toStringTag](){return"GraphQLInputObjectType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}toConfig(){let e=el(this.getFields(),e=>({description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}));return{name:this.name,description:this.description,fields:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function t_(e){let t=tu(e.fields);return ty(t)||f(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),el(t,(t,n)=>("resolve"in t&&f(!1,`${e.name}.${n} field has a resolve property, but Input Types cannot define resolvers.`),{name:eC(n),description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:ey(t.extensions),astNode:t.astNode}))}function tO(e){return eX(e.type)&&void 0===e.defaultValue}function tS(e,t){return e===t||!!(eX(e)&&eX(t)||eJ(e)&&eJ(t))&&tS(e.ofType,t.ofType)}function tA(e,t,n){return t===n||(eX(n)?!!eX(t)&&tA(e,t.ofType,n.ofType):eX(t)?tA(e,t.ofType,n):eJ(n)?!!eJ(t)&&tA(e,t.ofType,n.ofType):!eJ(t)&&e4(n)&&(eU(t)||eM(t))&&e.isSubType(n,t))}function tx(e,t,n){return t===n||(e4(t)?e4(n)?e.getPossibleTypes(t).some(t=>e.isSubType(n,t)):e.isSubType(t,n):!!e4(n)&&e.isSubType(n,t))}let tD=0x7fffffff,tR=-0x80000000,tC=new tc({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=t$(e);if("boolean"==typeof t)return+!!t;let n=t;if("string"==typeof t&&""!==t&&(n=Number(t)),"number"!=typeof n||!Number.isInteger(n))throw new T(`Int cannot represent non-integer value: ${J(t)}`);if(n>tD||n<tR)throw new T("Int cannot represent non 32-bit signed integer value: "+J(t));return n},parseValue(e){if("number"!=typeof e||!Number.isInteger(e))throw new T(`Int cannot represent non-integer value: ${J(e)}`);if(e>tD||e<tR)throw new T(`Int cannot represent non 32-bit signed integer value: ${e}`);return e},parseLiteral(e){if(e.kind!==o.INT)throw new T(`Int cannot represent non-integer value: ${eI(e)}`,{nodes:e});let t=parseInt(e.value,10);if(t>tD||t<tR)throw new T(`Int cannot represent non 32-bit signed integer value: ${e.value}`,{nodes:e});return t}}),tL=new tc({name:"Float",description:"The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point).",serialize(e){let t=t$(e);if("boolean"==typeof t)return+!!t;let n=t;if("string"==typeof t&&""!==t&&(n=Number(t)),"number"!=typeof n||!Number.isFinite(n))throw new T(`Float cannot represent non numeric value: ${J(t)}`);return n},parseValue(e){if("number"!=typeof e||!Number.isFinite(e))throw new T(`Float cannot represent non numeric value: ${J(e)}`);return e},parseLiteral(e){if(e.kind!==o.FLOAT&&e.kind!==o.INT)throw new T(`Float cannot represent non numeric value: ${eI(e)}`,e);return parseFloat(e.value)}}),tk=new tc({name:"String",description:"The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.",serialize(e){let t=t$(e);if("string"==typeof t)return t;if("boolean"==typeof t)return t?"true":"false";if("number"==typeof t&&Number.isFinite(t))return t.toString();throw new T(`String cannot represent value: ${J(e)}`)},parseValue(e){if("string"!=typeof e)throw new T(`String cannot represent a non string value: ${J(e)}`);return e},parseLiteral(e){if(e.kind!==o.STRING)throw new T(`String cannot represent a non string value: ${eI(e)}`,{nodes:e});return e.value}}),tF=new tc({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize(e){let t=t$(e);if("boolean"==typeof t)return t;if(Number.isFinite(t))return 0!==t;throw new T(`Boolean cannot represent a non boolean value: ${J(t)}`)},parseValue(e){if("boolean"!=typeof e)throw new T(`Boolean cannot represent a non boolean value: ${J(e)}`);return e},parseLiteral(e){if(e.kind!==o.BOOLEAN)throw new T(`Boolean cannot represent a non boolean value: ${eI(e)}`,{nodes:e});return e.value}}),tP=new tc({name:"ID",description:'The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `"4"`) or integer (such as `4`) input value will be accepted as an ID.',serialize(e){let t=t$(e);if("string"==typeof t)return t;if(Number.isInteger(t))return String(t);throw new T(`ID cannot represent value: ${J(e)}`)},parseValue(e){if("string"==typeof e)return e;if("number"==typeof e&&Number.isInteger(e))return e.toString();throw new T(`ID cannot represent value: ${J(e)}`)},parseLiteral(e){if(e.kind!==o.STRING&&e.kind!==o.INT)throw new T("ID cannot represent a non-string and non-integer value: "+eI(e),{nodes:e});return e.value}}),tj=Object.freeze([tk,tC,tL,tF,tP]);function tM(e){return tj.some(({name:t})=>e.name===t)}function t$(e){if(h(e)){if("function"==typeof e.valueOf){let t=e.valueOf();if(!h(t))return t}if("function"==typeof e.toJSON)return e.toJSON()}return e}function tU(e){return W(e,tB)}function tV(e){if(!tU(e))throw Error(`Expected ${J(e)} to be a GraphQL directive.`);return e}class tB{constructor(e){var t,n;this.name=eC(e.name),this.description=e.description,this.locations=e.locations,this.isRepeatable=null!=(t=e.isRepeatable)&&t,this.extensions=ey(e.extensions),this.astNode=e.astNode,Array.isArray(e.locations)||f(!1,`@${e.name} locations must be an Array.`);let r=null!=(n=e.args)?n:{};h(r)&&!Array.isArray(r)||f(!1,`@${e.name} args must be an object with argument names as keys.`),this.args=th(r)}get[Symbol.toStringTag](){return"GraphQLDirective"}toConfig(){return{name:this.name,description:this.description,locations:this.locations,args:tv(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}}toString(){return"@"+this.name}toJSON(){return this.toString()}}let tq=new tB({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[i.FIELD,i.FRAGMENT_SPREAD,i.INLINE_FRAGMENT],args:{if:{type:new e5(tF),description:"Included when true."}}}),tG=new tB({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[i.FIELD,i.FRAGMENT_SPREAD,i.INLINE_FRAGMENT],args:{if:{type:new e5(tF),description:"Skipped when true."}}}),tH="No longer supported",tY=new tB({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[i.FIELD_DEFINITION,i.ARGUMENT_DEFINITION,i.INPUT_FIELD_DEFINITION,i.ENUM_VALUE],args:{reason:{type:tk,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:tH}}}),tQ=new tB({name:"specifiedBy",description:"Exposes a URL that specifies the behavior of this scalar.",locations:[i.SCALAR],args:{url:{type:new e5(tk),description:"The URL that specifies the behavior of this scalar."}}}),tJ=Object.freeze([tq,tG,tY,tQ]);function tW(e){return tJ.some(({name:t})=>t===e.name)}function tX(e){return"object"==typeof e&&"function"==typeof(null==e?void 0:e[Symbol.iterator])}function tz(e,t){if(eX(t)){let n=tz(e,t.ofType);return(null==n?void 0:n.kind)===o.NULL?null:n}if(null===e)return{kind:o.NULL};if(void 0===e)return null;if(eJ(t)){let n=t.ofType;if(tX(e)){let t=[];for(let r of e){let e=tz(r,n);null!=e&&t.push(e)}return{kind:o.LIST,values:t}}return tz(e,n)}if(eY(t)){if(!h(e))return null;let n=[];for(let r of Object.values(t.getFields())){let t=tz(e[r.name],r.type);t&&n.push({kind:o.OBJECT_FIELD,name:{kind:o.NAME,value:r.name},value:t})}return{kind:o.OBJECT,fields:n}}if(e3(t)){let n=t.serialize(e);if(null==n)return null;if("boolean"==typeof n)return{kind:o.BOOLEAN,value:n};if("number"==typeof n&&Number.isFinite(n)){let e=String(n);return tK.test(e)?{kind:o.INT,value:e}:{kind:o.FLOAT,value:e}}if("string"==typeof n)return eG(t)?{kind:o.ENUM,value:n}:t===tP&&tK.test(n)?{kind:o.INT,value:n}:{kind:o.STRING,value:n};throw TypeError(`Cannot convert value to AST: ${J(n)}.`)}y(!1,"Unexpected input type: "+J(t))}let tK=/^-?(?:0|[1-9][0-9]*)$/,tZ=new tp({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:tk,resolve:e=>e.description}
45,types:{description:"A list of all types supported by this server.",type:new e5(new e8(new e5(t3))),resolve:e=>Object.values(e.getTypeMap())},queryType:{description:"The type that query operations will be rooted at.",type:new e5(t3),resolve:e=>e.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:t3,resolve:e=>e.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:t3,resolve:e=>e.getSubscriptionType()},directives:{description:"A list of all directives supported by this server.",type:new e5(new e8(new e5(t0))),resolve:e=>e.getDirectives()}})}),t0=new tp({name:"__Directive",description:"A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.\n\nIn 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 e5(tk),resolve:e=>e.name},description:{type:tk,resolve:e=>e.description},isRepeatable:{type:new e5(tF),resolve:e=>e.isRepeatable},locations:{type:new e5(new e8(new e5(t1))),resolve:e=>e.locations},args:{type:new e5(new e8(new e5(t9))),args:{includeDeprecated:{type:tF,defaultValue:!1}},resolve:(e,{includeDeprecated:t})=>t?e.args:e.args.filter(e=>null==e.deprecationReason)}})}),t1=new tN({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:i.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:i.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:i.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:i.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:i.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:i.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:i.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:i.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:i.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:i.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:i.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:i.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:i.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:i.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:i.UNION,description:"Location adjacent to a union definition."},ENUM:{value:i.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:i.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:i.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:i.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}}),t3=new tp({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 e5(t4),resolve:e=>
45eP(e)?s.SCALAR:eM(e)?s.OBJECT:eU(e)?s.INTERFACE:eB(e)?s.UNION:eG(e)?s.ENUM:eY(e)?s.INPUT_OBJECT:eJ(e)?s.LIST:eX(e)?s.NON_NULL:void y(!1,`Unexpected type: "${J(e)}".`)},name:{type:tk,resolve:e=>"name"in e?e.name:void 0},description:{type:tk,resolve:e=>"description"in e?e.description:void 0},specifiedByURL:{type:tk,resolve:e=>"specifiedByURL"in e?e.specifiedByURL:void 0},fields:{type:new e8(new e5(t2)),args:{includeDeprecated:{type:tF,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(eM(e)||eU(e)){let n=Object.values(e.getFields());return t?n:n.filter(e=>null==e.deprecationReason)}}},interfaces:{type:new e8(new e5(t3)),resolve(e){if(eM(e)||eU(e))return e.getInterfaces()}},possibleTypes:{type:new e8(new e5(t3)),resolve(e,t,n,{schema:r}){if(e4(e))return r.getPossibleTypes(e)}},enumValues:{type:new e8(new e5(t6)),args:{includeDeprecated:{type:tF,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(eG(e)){let n=e.getValues();return t?n:n.filter(e=>null==e.deprecationReason)}}},inputFields:{type:new e8(new e5(t9)),args:{includeDeprecated:{type:tF,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(eY(e)){let n=Object.values(e.getFields());return t?n:n.filter(e=>null==e.deprecationReason)}}},ofType:{type:t3,resolve:e=>"ofType"in e?e.ofType:void 0}})}),t2=new tp({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 e5(tk),resolve:e=>e.name},description:{type:tk,resolve:e=>e.description},args:{type:new e5(new e8(new e5(t9))),args:{includeDeprecated:{type:tF,defaultValue:!1}},resolve:(e,{includeDeprecated:t})=>t?e.args:e.args.filter(e=>null==e.deprecationReason)},type:{type:new e5(t3),resolve:e=>e.type},isDeprecated:{type:new e5(tF),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:tk,resolve:e=>e.deprecationReason}})}),t9=new tp({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 e5(tk),resolve:e=>e.name},description:{type:tk,resolve:e=>e.description},type:{type:new e5(t3),resolve:e=>e.type},defaultValue:{type:tk,description:"A GraphQL-formatted string representing the default value for this input value.",resolve(e){let{type:t,defaultValue:n}=e,r=tz(n,t);return r?eI(r):null}},isDeprecated:{type:new e5(tF),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:tk,resolve:e=>e.deprecationReason}})}),t6=new tp({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 e5(tk),resolve:e=>e.name},description:{type:tk,resolve:e=>e.description},isDeprecated:{type:new e5(tF),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:tk,resolve:e=>e.deprecationReason}})});!function(e){e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.INPUT_OBJECT="INPUT_OBJECT",e.LIST="LIST",e.NON_NULL="NON_NULL"}(s||(s={}));let t4=new tN({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:s.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:s.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:s.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:s.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:s.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:s.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:s.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:s.NON_NULL,description:"Indicates this type is a 
45non-null. `ofType` is a valid field."}}}),t7={name:"__schema",type:new e5(tZ),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},t8={name:"__type",type:t3,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new e5(tk),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},t5={name:"__typename",type:new e5(tk),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},ne=Object.freeze([tZ,t0,t1,t3,t2,t9,t6,t4]);function nt(e){return ne.some(({name:t})=>e.name===t)}function nn(e){return W(e,ni)}function nr(e){if(!nn(e))throw Error(`Expected ${J(e)} to be a GraphQL schema.`);return e}class ni{constructor(e){var t,n;this.__validationErrors=!0===e.assumeValid?[]:void 0,h(e)||f(!1,"Must provide configuration object."),!e.types||Array.isArray(e.types)||f(!1,`"types" must be Array if provided but got: ${J(e.types)}.`),!e.directives||Array.isArray(e.directives)||f(!1,`"directives" must be Array if provided but got: ${J(e.directives)}.`),this.description=e.description,this.extensions=ey(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!=(t=e.extensionASTNodes)?t:[],this._queryType=e.query,this._mutationType=e.mutation,this._subscriptionType=e.subscription,this._directives=null!=(n=e.directives)?n:tJ;let r=new Set(e.types);if(null!=e.types)for(let t of e.types)r.delete(t),no(t,r);for(let e of(null!=this._queryType&&no(this._queryType,r),null!=this._mutationType&&no(this._mutationType,r),null!=this._subscriptionType&&no(this._subscriptionType,r),this._directives))if(tU(e))for(let t of e.args)no(t.type,r);for(let e of(no(tZ,r),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null),r)){if(null==e)continue;let t=e.name;if(t||f(!1,"One of the provided types for building the Schema is missing a name."),void 0!==this._typeMap[t])throw Error(`Schema must contain uniquely named types but contains multiple types named "${t}".`);if(this._typeMap[t]=e,eU(e)){for(let t of e.getInterfaces())if(eU(t)){let n=this._implementationsMap[t.name];void 0===n&&(n=this._implementationsMap[t.name]={objects:[],interfaces:[]}),n.interfaces.push(e)}}else if(eM(e)){for(let t of e.getInterfaces())if(eU(t)){let n=this._implementationsMap[t.name];void 0===n&&(n=this._implementationsMap[t.name]={objects:[],interfaces:[]}),n.objects.push(e)}}}}get[Symbol.toStringTag](){return"GraphQLSchema"}getQueryType(){return this._queryType}getMutationType(){return this._mutationType}getSubscriptionType(){return this._subscriptionType}getRootType(e){switch(e){case r.QUERY:return this.getQueryType();case r.MUTATION:return this.getMutationType();case r.SUBSCRIPTION:return this.getSubscriptionType()}}getTypeMap(){return this._typeMap}getType(e){return this.getTypeMap()[e]}getPossibleTypes(e){return eB(e)?e.getTypes():this.getImplementations(e).objects}getImplementations(e){let t=this._implementationsMap[e.name];return null!=t?t:{objects:[],interfaces:[]}}isSubType(e,t){let n=this._subTypeMap[e.name];if(void 0===n){if(n=Object.create(null),eB(e))for(let t of e.getTypes())n[t.name]=!0;else{let t=this.getImplementations(e);for(let e of t.objects)n[e.name]=!0;for(let e of t.interfaces)n[e.name]=!0}this._subTypeMap[e.name]=n}return void 0!==n[t.name]}getDirectives(){return this._directives}getDirective(e){return this.getDirectives().find(t=>t.name===e)}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:void 0!==this.__validationErrors}}}function no(e,t){let n=ts(e);if(!t.has(n)){if(t.add(n),eB(n))for(let e of n.getTypes())no(e,t);else if(eM(n)||eU(n)){for(let e of n.getInterfaces())no(e,t);for(let e of Object.values(n.getFields()))for(let n of(no(e.type,t),e.args))no(n.type,t)}else if(eY(n))for(let e of Object.values(n.getFields()))no(e.type,t)}return t}function na(e){if(nr(e),e.__validationErrors)return e.__validationErrors;let t=new nl(e);(function(e){var t,n,i;let o=e.schema,a=o.getQueryType();a?eM(a)||e.reportError(`Query root type must be Object type, it cannot be ${J(a)}.`,null!=(t=nu(o,r.QUERY))?t:a.astNode):e.reportError("Query root type must be provided.",o.astNode);let s=o.getMutationType();s&&!eM(s)&&e.reportError(`Mutation root type must be Object type if provided, it cannot be ${J(s)}.`,null!=(n=nu(o,r.MUTATION))?n:s.astNode);let l=o.getSubscriptionType();l&&!eM(l)&&e.reportError(`Subscription root type must be Object type if provided, it cannot be ${J(l)}.`,null!=(i=nu(o,r.SUBSCRIPTION))?i:l.astNode)})(t),function(e){for(let n of e.schema.getDirectives()){if(!tU(n)){e.reportError(`Expected directive but got: ${J(n)}.`,null==n?void 0:n.astNode);continue}for(let r of(nc(e,n),n.args))if(nc(e,r),eK(r.type)||e.reportError(`The type of @${n.name}(${r.name}:) must be Input Type but got: ${J(r.type)}.`,r.astNode),tg(r)&&null!=r.deprecationReason){var t;e.reportError(`Required argument @${n.name}(${r.name}:) cannot be deprecated.`,[nd(r.astNode),null==(t=r.astNode)?void 0:t.type])}}}(t),function(e){let t=function(e){let t=Object.create(null),n=[],r=Object.create(null);return function i(o){if(!t[o.name]){for(let a of(t[o.name]=!0,r[o.name]=n.length,Object.values(o.getFields())))if(eX(a.type)&&eY(a.type.ofType)){let t=a.type.ofType,o=r[t.name];if(n.push(a),void 0===o)i(t);else{let r=n.slice(o),i=r.map(e=>e.name).join(".");e.reportError(`Cannot reference Input Object "${t.name}" within itself through a series of non-null fields: "${i}".`,r.map(e=>e.astNode))}n.pop()}r[o.name]=void 0}}}(e);for(let n of Object.values(e.schema.getTypeMap())){if(!to(n)){e.reportError(`Expected GraphQL named type but got: ${J(n)}.`,n.astNode);continue}nt(n)||nc(e,n),eM(n)||eU(n)?(function(e,t){let n=Object.values(t.getFields());for(let a of(0===n.length&&e.reportError(`Type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]),n)){var r,i,o;for(let n of(nc(e,a),e0(a.type)||e.reportError(`The type of ${t.name}.${a.name} must be Output Type but got: ${J(a.type)}
45.`,null==(r=a.astNode)?void 0:r.type),a.args)){let r=n.name;nc(e,n),eK(n.type)||e.reportError(`The type of ${t.name}.${a.name}(${r}:) must be Input Type but got: ${J(n.type)}.`,null==(i=n.astNode)?void 0:i.type),tg(n)&&null!=n.deprecationReason&&e.reportError(`Required argument ${t.name}.${a.name}(${r}:) cannot be deprecated.`,[nd(n.astNode),null==(o=n.astNode)?void 0:o.type])}}}(e,n),function(e,t){let n=Object.create(null);for(let r of t.getInterfaces()){if(!eU(r)){e.reportError(`Type ${J(t)} must only implement Interface types, it cannot implement ${J(r)}.`,np(t,r));continue}if(t===r){e.reportError(`Type ${t.name} cannot implement itself because it would create a circular reference.`,np(t,r));continue}if(n[r.name]){e.reportError(`Type ${t.name} can only implement ${r.name} once.`,np(t,r));continue}n[r.name]=!0,function(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}.`,[...np(n,i),...np(t,n)])}(e,t,r),function(e,t,n){let r=t.getFields();for(let l of Object.values(n.getFields())){var i,o,a,s;let u=l.name,c=r[u];if(!c){e.reportError(`Interface field ${n.name}.${u} expected but ${t.name} does not provide it.`,[l.astNode,t.astNode,...t.extensionASTNodes]);continue}for(let r of(tA(e.schema,c.type,l.type)||e.reportError(`Interface field ${n.name}.${u} expects type ${J(l.type)} but ${t.name}.${u} is type ${J(c.type)}.`,[null==(i=l.astNode)?void 0:i.type,null==(o=c.astNode)?void 0:o.type]),l.args)){let i=r.name,o=c.args.find(e=>e.name===i);if(!o){e.reportError(`Interface field argument ${n.name}.${u}(${i}:) expected but ${t.name}.${u} does not provide it.`,[r.astNode,c.astNode]);continue}tS(r.type,o.type)||e.reportError(`Interface field argument ${n.name}.${u}(${i}:) expects type ${J(r.type)} but ${t.name}.${u}(${i}:) is type ${J(o.type)}.`,[null==(a=r.astNode)?void 0:a.type,null==(s=o.astNode)?void 0:s.type])}for(let r of c.args){let i=r.name;!l.args.find(e=>e.name===i)&&tg(r)&&e.reportError(`Object field ${t.name}.${u} includes required argument ${i} that is missing from the Interface field ${n.name}.${u}.`,[r.astNode,l.astNode])}}}(e,t,r)}}(e,n)):eB(n)?function(e,t){let n=t.getTypes();0===n.length&&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.`,nf(t,i.name));continue}r[i.name]=!0,eM(i)||e.reportError(`Union type ${t.name} can only include Object types, it cannot include ${J(i)}.`,nf(t,String(i)))}}(e,n):eG(n)?function(e,t){let n=t.getValues();for(let r of(0===n.length&&e.reportError(`Enum type ${t.name} must define one or more values.`,[t.astNode,...t.extensionASTNodes]),n))nc(e,r)}(e,n):eY(n)&&(function(e,t){let n=Object.values(t.getFields());for(let o of(0===n.length&&e.reportError(`Input Object type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]),n)){var r,i;nc(e,o),eK(o.type)||e.reportError(`The type of ${t.name}.${o.name} must be Input Type but got: ${J(o.type)}.`,null==(r=o.astNode)?void 0:r.type),tO(o)&&null!=o.deprecationReason&&e.reportError(`Required input field ${t.name}.${o.name} cannot be deprecated.`,[nd(o.astNode),null==(i=o.astNode)?void 0:i.type])}}(e,n),t(n))}}(t);let n=t.getErrors();return e.__validationErrors=n,n}function ns(e){let t=na(e);if(0!==t.length)throw Error(t.map(e=>e.message).join("\n\n"))}class nl{constructor(e){this._errors=[],this.schema=e}reportError(e,t){let n=Array.isArray(t)?t.filter(Boolean):t;this._errors.push(new T(e,{nodes:n}))}getErrors(){return this._errors}}function nu(e,t){var n;return null==(n=[e.astNode,...e.extensionASTNodes].flatMap(e=>{var t;return null!=(t=null==e?void 0:e.operationTypes)?t:[]}).find(e=>e.operation===t))?void 0:n.type}function nc(e,t){t.name.startsWith("__")&&e.reportError(`Name "${t.name}" must not begin with "__", which is reserved by GraphQL introspection.`,t.astNode)}function np(e,t){let{astNode:n,extensionASTNodes:r}=e;return(null!=n?[n,...r]:r).flatMap(e=>{var t;return null!=(t=e.interfaces)?t:[]}).filter(e=>e.name.value===t.name)}function nf(e,t){let{astNode:n,extensionASTNodes:r}=e;return(null!=n?[n,...r]:r).flatMap(e=>{var t;return null!=(t=e.types)?t:[]}).filter(e=>e.name.value===t)}
45function nd(e){var t;return null==e||null==(t=e.directives)?void 0:t.find(e=>e.name.value===tY.name)}function nh(e,t){switch(t.kind){case o.LIST_TYPE:{let n=nh(e,t.type);return n&&new e8(n)}case o.NON_NULL_TYPE:{let n=nh(e,t.type);return n&&new e5(n)}case o.NAMED_TYPE:return e.getType(t.name.value)}}class ny{constructor(e,t,n){this._schema=e,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._defaultValueStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=null!=n?n:nm,t&&(eK(t)&&this._inputTypeStack.push(t),e9(t)&&this._parentTypeStack.push(t),e0(t)&&this._typeStack.push(t))}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(e){let t=this._schema;switch(e.kind){case o.SELECTION_SET:{let e=ts(this.getType());this._parentTypeStack.push(e9(e)?e:void 0);break}case o.FIELD:{let n,r,i=this.getParentType();i&&(n=this._getFieldDef(t,i,e))&&(r=n.type),this._fieldDefStack.push(n),this._typeStack.push(e0(r)?r:void 0);break}case o.DIRECTIVE:this._directive=t.getDirective(e.name.value);break;case o.OPERATION_DEFINITION:{let n=t.getRootType(e.operation);this._typeStack.push(eM(n)?n:void 0);break}case o.INLINE_FRAGMENT:case o.FRAGMENT_DEFINITION:{let n=e.typeCondition,r=n?nh(t,n):ts(this.getType());this._typeStack.push(e0(r)?r:void 0);break}case o.VARIABLE_DEFINITION:{let n=nh(t,e.type);this._inputTypeStack.push(eK(n)?n:void 0);break}case o.ARGUMENT:{var n;let t,r,i=null!=(n=this.getDirective())?n:this.getFieldDef();i&&(t=i.args.find(t=>t.name===e.name.value))&&(r=t.type),this._argument=t,this._defaultValueStack.push(t?t.defaultValue:void 0),this._inputTypeStack.push(eK(r)?r:void 0);break}case o.LIST:{let e=ti(this.getInputType()),t=eJ(e)?e.ofType:e;this._defaultValueStack.push(void 0),this._inputTypeStack.push(eK(t)?t:void 0);break}case o.OBJECT_FIELD:{let t,n,r=ts(this.getInputType());eY(r)&&(n=r.getFields()[e.name.value])&&(t=n.type),this._defaultValueStack.push(n?n.defaultValue:void 0),this._inputTypeStack.push(eK(t)?t:void 0);break}case o.ENUM:{let t,n=ts(this.getInputType());eG(n)&&(t=n.getValue(e.value)),this._enumValue=t}}}leave(e){switch(e.kind){case o.SELECTION_SET:this._parentTypeStack.pop();break;case o.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case o.DIRECTIVE:this._directive=null;break;case o.OPERATION_DEFINITION:case o.INLINE_FRAGMENT:case o.FRAGMENT_DEFINITION:this._typeStack.pop();break;case o.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case o.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case o.LIST:case o.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case o.ENUM:this._enumValue=null}}}function nm(e,t,n){let r=n.name.value;return r===t7.name&&e.getQueryType()===t?t7:r===t8.name&&e.getQueryType()===t?t8:r===t5.name&&e9(t)?t5:eM(t)||eU(t)?t.getFields()[r]:void 0}function nv(e,t){return{enter(...n){let r=n[0];e.enter(r);let i=eN(t,r.kind).enter;if(i){let o=i.apply(t,n);return void 0!==o&&(e.leave(r),D(o)&&e.enter(o)),o}},leave(...n){let r,i=n[0],o=eN(t,i.kind).leave;return o&&(r=o.apply(t,n)),e.leave(i),r}}}function ng(e){return nE(e)||nw(e)||n_(e)}function nE(e){return e.kind===o.OPERATION_DEFINITION||e.kind===o.FRAGMENT_DEFINITION}function nb(e){return e.kind===o.FIELD||e.kind===o.FRAGMENT_SPREAD||e.kind===o.INLINE_FRAGMENT}function nT(e){return e.kind===o.VARIABLE||e.kind===o.INT||e.kind===o.FLOAT||e.kind===o.STRING||e.kind===o.BOOLEAN||e.kind===o.NULL||e.kind===o.ENUM||e.kind===o.LIST||e.kind===o.OBJECT}function nN(e){return e.kind===o.NAMED_TYPE||e.kind===o.LIST_TYPE||e.kind===o.NON_NULL_TYPE}function nw(e){return e.kind===o.SCHEMA_DEFINITION||nI(e)||e.kind===o.DIRECTIVE_DEFINITION}function nI(e){return e.kind===o.SCALAR_TYPE_DEFINITION||e.kind===o.OBJECT_TYPE_DEFINITION||e.kind===o.INTERFACE_TYPE_DEFINITION||e.kind===o.UNION_TYPE_DEFINITION||e.kind===o.ENUM_TYPE_DEFINITION||e.kind===o.INPUT_OBJECT_TYPE_DEFINITION}function n_(e){return e.kind===o.SCHEMA_EXTENSION||nO(e)}function nO(e){return e.kind===o.SCALAR_TYPE_EXTENSION||e.kind===o.OBJECT_TYPE_EXTENSION||e.kind===o.INTERFACE_TYPE_EXTENSION||e.kind===o.UNION_TYPE_EXTENSION||e.kind===o.ENUM_TYPE_EXTENSION||e.kind===o.INPUT_OBJECT_TYPE_EXTENSION}function nS(e){return{Document(t){for(let n of t.definitions)if(!nE(n)){let t=n.kind===o.SCHEMA_DEFINITION||n.kind===o.SCHEMA_EXTENSION?"schema":'"'+n.name.value+'"';e.reportError(new T(`The ${t} definition is not executable.`,{nodes:n}))}return!1}}}function nA(e){return{Field(t){let n=e.getParentType();if(n&&!e.getFieldDef()){var r,i;let o=e.getSchema(),a=t.name.value,s=ei("to use an inline fragment on",function(e,t,n){if(!e4(t))return[];let r=new Set,i=Object.create(null);for(let a of e.getPossibleTypes(t))if(a.getFields()[n])for(let e of(r.add(a),i[a.name]=1,a.getInterfaces())){var o;e.getFields()[n]&&(r.add(e),i[e.name]=(null!=(o=i[e.name])?o:0)+1)}return[...r].sort((t,n)=>{let r=i[n.name]-i[t.name];return 0!==r?r:eU(t)&&e.isSubType(t,n)?-1:eU(n)&&e.isSubType(n,t)?1:eu(t.name,n.name)}).map(e=>e.name)}
45(o,n,a));""===s&&(s=ei((r=n,i=a,eM(r)||eU(r)?ef(i,Object.keys(r.getFields())):[]))),e.reportError(new T(`Cannot query field "${a}" on type "${n.name}".`+s,{nodes:t}))}}}}function nx(e){return{InlineFragment(t){let n=t.typeCondition;if(n){let t=nh(e.getSchema(),n);if(t&&!e9(t)){let t=eI(n);e.reportError(new T(`Fragment cannot condition on non composite type "${t}".`,{nodes:n}))}}},FragmentDefinition(t){let n=nh(e.getSchema(),t.typeCondition);if(n&&!e9(n)){let n=eI(t.typeCondition);e.reportError(new T(`Fragment "${t.name.value}" cannot condition on non composite type "${n}".`,{nodes:t.typeCondition}))}}}}function nD(e){return{...nR(e),Argument(t){let n=e.getArgument(),r=e.getFieldDef(),i=e.getParentType();if(!n&&r&&i){let n=t.name.value,o=ef(n,r.args.map(e=>e.name));e.reportError(new T(`Unknown argument "${n}" on field "${i.name}.${r.name}".`+ei(o),{nodes:t}))}}}}function nR(e){let t=Object.create(null),n=e.getSchema();for(let e of n?n.getDirectives():tJ)t[e.name]=e.args.map(e=>e.name);for(let n of e.getDocument().definitions)if(n.kind===o.DIRECTIVE_DEFINITION){var r;let e=null!=(r=n.arguments)?r:[];t[n.name.value]=e.map(e=>e.name.value)}return{Directive(n){let r=n.name.value,i=t[r];if(n.arguments&&i)for(let t of n.arguments){let n=t.name.value;if(!i.includes(n)){let o=ef(n,i);e.reportError(new T(`Unknown argument "${n}" on directive "@${r}".`+ei(o),{nodes:t}))}}return!1}}}function nC(e){let t=Object.create(null),n=e.getSchema();for(let e of n?n.getDirectives():tJ)t[e.name]=e.locations;for(let n of e.getDocument().definitions)n.kind===o.DIRECTIVE_DEFINITION&&(t[n.name.value]=n.locations.map(e=>e.value));return{Directive(n,a,s,l,u){let c=n.name.value,p=t[c];if(!p)return void e.reportError(new T(`Unknown directive "@${c}".`,{nodes:n}));let f=function(e){let t=e[e.length-1];switch("kind"in t||y(!1),t.kind){case o.OPERATION_DEFINITION:var n=t.operation;switch(n){case r.QUERY:return i.QUERY;case r.MUTATION:return i.MUTATION;case r.SUBSCRIPTION:return i.SUBSCRIPTION}return;case o.FIELD:return i.FIELD;case o.FRAGMENT_SPREAD:return i.FRAGMENT_SPREAD;case o.INLINE_FRAGMENT:return i.INLINE_FRAGMENT;case o.FRAGMENT_DEFINITION:return i.FRAGMENT_DEFINITION;case o.VARIABLE_DEFINITION:return i.VARIABLE_DEFINITION;case o.SCHEMA_DEFINITION:case o.SCHEMA_EXTENSION:return i.SCHEMA;case o.SCALAR_TYPE_DEFINITION:case o.SCALAR_TYPE_EXTENSION:return i.SCALAR;case o.OBJECT_TYPE_DEFINITION:case o.OBJECT_TYPE_EXTENSION:return i.OBJECT;case o.FIELD_DEFINITION:return i.FIELD_DEFINITION;case o.INTERFACE_TYPE_DEFINITION:case o.INTERFACE_TYPE_EXTENSION:return i.INTERFACE;case o.UNION_TYPE_DEFINITION:case o.UNION_TYPE_EXTENSION:return i.UNION;case o.ENUM_TYPE_DEFINITION:case o.ENUM_TYPE_EXTENSION:return i.ENUM;case o.ENUM_VALUE_DEFINITION:return i.ENUM_VALUE;case o.INPUT_OBJECT_TYPE_DEFINITION:case o.INPUT_OBJECT_TYPE_EXTENSION:return i.INPUT_OBJECT;case o.INPUT_VALUE_DEFINITION:{let t=e[e.length-3];return"kind"in t||y(!1),t.kind===o.INPUT_OBJECT_TYPE_DEFINITION?i.INPUT_FIELD_DEFINITION:i.ARGUMENT_DEFINITION}default:y(!1,"Unexpected kind: "+J(t.kind))}}(u);f&&!p.includes(f)&&e.reportError(new T(`Directive "@${c}" may not be used on ${f}.`,{nodes:n}))}}}function nL(e){return{FragmentSpread(t){let n=t.name.value;e.getFragment(n)||e.reportError(new T(`Unknown fragment "${n}".`,{nodes:t.name}))}}}function nk(e){let t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);for(let t of e.getDocument().definitions)nI(t)&&(r[t.name.value]=!0);let i=[...Object.keys(n),...Object.keys(r)];return{NamedType(t,o,a,s,l){let u=t.name.value;if(!n[u]&&!r[u]){var c,p;let n=null!=(c=l[2])?c:a,r=null!=n&&"kind"in(p=n)&&(nw(p)||n_(p));if(r&&nF.includes(u))return;let o=ef(u,r?nF.concat(i):i);e.reportError(new T(`Unknown type "${u}".`+ei(o),{nodes:t}))}}}}let nF=[...tj,...ne].map(e=>e.name);function nP(e){let t=0;return{Document(e){t=e.definitions.filter(e=>e.kind===o.OPERATION_DEFINITION).length},OperationDefinition(n){!n.name&&t>1&&e.reportError(new T("This anonymous operation must be the only defined operation.",{nodes:n}))}}}function nj(e){var t,n,r;let i=e.getSchema(),o=null!=(t=null!=(n=null!=(r=null==i?void 0:i.astNode)?r:null==i?void 0:i.getQueryType())?n:null==i?void 0:i.getMutationType())?t:null==i?void 0:i.getSubscriptionType(),a=0;return{SchemaDefinition(t){if(o)return void e.reportError(new T("Cannot define a new schema within a schema extension.",{nodes:t}));a>
450&&e.reportError(new T("Must provide only one schema definition.",{nodes:t})),++a}}}function nM(e){let t=Object.create(null),n=[],r=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition:i=>((function i(o){if(t[o.name.value])return;let a=o.name.value;t[a]=!0;let s=e.getFragmentSpreads(o.selectionSet);if(0!==s.length){for(let t of(r[a]=n.length,s)){let o=t.name.value,a=r[o];if(n.push(t),void 0===a){let t=e.getFragment(o);t&&i(t)}else{let t=n.slice(a),r=t.slice(0,-1).map(e=>'"'+e.name.value+'"').join(", ");e.reportError(new T(`Cannot spread fragment "${o}" within itself`+(""!==r?` via ${r}.`:"."),{nodes:t}))}n.pop()}r[a]=void 0}})(i),!1)}}function n$(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(n){for(let{node:r}of e.getRecursiveVariableUsages(n)){let i=r.name.value;!0!==t[i]&&e.reportError(new T(n.name?`Variable "$${i}" is not defined by operation "${n.name.value}".`:`Variable "$${i}" is not defined.`,{nodes:[r,n]}))}}},VariableDefinition(e){t[e.variable.name.value]=!0}}}function nU(e){let t=[],n=[];return{OperationDefinition:e=>(t.push(e),!1),FragmentDefinition:e=>(n.push(e),!1),Document:{leave(){let r=Object.create(null);for(let n of t)for(let t of e.getRecursivelyReferencedFragments(n))r[t.name.value]=!0;for(let t of n){let n=t.name.value;!0!==r[n]&&e.reportError(new T(`Fragment "${n}" is never used.`,{nodes:t}))}}}}}function nV(e){let t=[];return{OperationDefinition:{enter(){t=[]},leave(n){let r=Object.create(null);for(let{node:t}of e.getRecursiveVariableUsages(n))r[t.name.value]=!0;for(let i of t){let t=i.variable.name.value;!0!==r[t]&&e.reportError(new T(n.name?`Variable "$${t}" is never used in operation "${n.name.value}".`:`Variable "$${t}" is never used.`,{nodes:i}))}}},VariableDefinition(e){t.push(e)}}}function nB(e){switch(e.kind){case o.OBJECT:return{...e,fields:e.fields.map(e=>({...e,value:nB(e.value)})).sort((e,t)=>eu(e.name.value,t.name.value))};case o.LIST:return{...e,values:e.values.map(nB)};case o.INT:case o.FLOAT:case o.STRING:case o.BOOLEAN:case o.NULL:case o.ENUM:case o.VARIABLE:return e}}function nq(e){let t=new nz,n=new Map;return{SelectionSet(r){for(let[[i,o],a,s]of function(e,t,n,r,i){let o=[],[a,s]=nW(e,t,r,i);if(function(e,t,n,r,i){for(let[o,a]of Object.entries(i))if(a.length>1)for(let i=0;i<a.length;i++)for(let s=i+1;s<a.length;s++){let l=nQ(e,n,r,!1,o,a[i],a[s]);l&&t.push(l)}}(e,o,t,n,a),0!==s.length)for(let r=0;r<s.length;r++){nG(e,o,t,n,!1,a,s[r]);for(let i=r+1;i<s.length;i++)nH(e,o,t,n,!1,s[r],s[i])}return o}(e,n,t,e.getParentType(),r)){let t=function e(t){return Array.isArray(t)?t.map(([t,n])=>`subfields "${t}" conflict because `+e(n)).join(" and "):t}(o);e.reportError(new T(`Fields "${i}" conflict because ${t}. Use different aliases on the fields to fetch both if this was intentional.`,{nodes:a.concat(s)}))}}}}function nG(e,t,n,r,i,o,a){let s=e.getFragment(a);if(!s)return;let[l,u]=nX(e,n,s);if(o!==l)for(let s of(nY(e,t,n,r,i,o,l),u))r.has(s,a,i)||(r.add(s,a,i),nG(e,t,n,r,i,o,s))}function nH(e,t,n,r,i,o,a){if(o===a||r.has(o,a,i))return;r.add(o,a,i);let s=e.getFragment(o),l=e.getFragment(a);if(!s||!l)return;let[u,c]=nX(e,n,s),[p,f]=nX(e,n,l);for(let a of(nY(e,t,n,r,i,u,p),f))nH(e,t,n,r,i,o,a);for(let o of c)nH(e,t,n,r,i,o,a)}function nY(e,t,n,r,i,o,a){for(let[s,l]of Object.entries(o)){let o=a[s];if(o)for(let a of l)for(let l of o){let o=nQ(e,n,r,i,s,a,l);o&&t.push(o)}}}function nQ(e,t,n,r,i,o,a){let[s,l,u]=o,[c,p,f]=a,d=r||s!==c&&eM(s)&&eM(c);if(!d){let e=l.name.value,t=p.name.value;if(e!==t)return[[i,`"${e}" and "${t}" are different fields`],[l],[p]];
45if(nJ(l)!==nJ(p))return[[i,"they have differing arguments"],[l],[p]]}let h=null==u?void 0:u.type,y=null==f?void 0:f.type;if(h&&y&&function e(t,n){return eJ(t)?!eJ(n)||e(t.ofType,n.ofType):!!eJ(n)||(eX(t)?!eX(n)||e(t.ofType,n.ofType):!!eX(n)||!!(e3(t)||e3(n))&&t!==n)}(h,y))return[[i,`they return conflicting types "${J(h)}" and "${J(y)}"`],[l],[p]];let m=l.selectionSet,v=p.selectionSet;if(m&&v){var g=function(e,t,n,r,i,o,a,s){let l=[],[u,c]=nW(e,t,i,o),[p,f]=nW(e,t,a,s);for(let i of(nY(e,l,t,n,r,u,p),f))nG(e,l,t,n,r,u,i);for(let i of c)nG(e,l,t,n,r,p,i);for(let i of c)for(let o of f)nH(e,l,t,n,r,i,o);return l}(e,t,n,d,ts(h),m,ts(y),v),E=i,b=l,T=p;return g.length>0?[[E,g.map(([e])=>e)],[b,...g.map(([,e])=>e).flat()],[T,...g.map(([,,e])=>e).flat()]]:void 0}}function nJ(e){var t;let n=null!=(t=e.arguments)?t:[];return eI(nB({kind:o.OBJECT,fields:n.map(e=>({kind:o.OBJECT_FIELD,name:e.name,value:e.value}))}))}function nW(e,t,n,r){let i=t.get(r);if(i)return i;let a=Object.create(null),s=Object.create(null);!function e(t,n,r,i,a){for(let s of r.selections)switch(s.kind){case o.FIELD:{let e,t=s.name.value;(eM(n)||eU(n))&&(e=n.getFields()[t]);let r=s.alias?s.alias.value:t;i[r]||(i[r]=[]),i[r].push([n,s,e]);break}case o.FRAGMENT_SPREAD:a[s.name.value]=!0;break;case o.INLINE_FRAGMENT:{let r=s.typeCondition,o=r?nh(t.getSchema(),r):n;e(t,o,s.selectionSet,i,a)}}}(e,n,r,a,s);let l=[a,Object.keys(s)];return t.set(r,l),l}function nX(e,t,n){let r=t.get(n.selectionSet);if(r)return r;let i=nh(e.getSchema(),n.typeCondition);return nW(e,t,i,n.selectionSet)}class nz{constructor(){this._data=new Map}has(e,t,n){var r;let[i,o]=e<t?[e,t]:[t,e],a=null==(r=this._data.get(i))?void 0:r.get(o);return void 0!==a&&(!!n||n===a)}add(e,t,n){let[r,i]=e<t?[e,t]:[t,e],o=this._data.get(r);void 0===o?this._data.set(r,new Map([[i,n]])):o.set(i,n)}}function nK(e){return{InlineFragment(t){let n=e.getType(),r=e.getParentType();if(e9(n)&&e9(r)&&!tx(e.getSchema(),n,r)){let i=J(r),o=J(n);e.reportError(new T(`Fragment cannot be spread here as objects of type "${i}" can never be of type "${o}".`,{nodes:t}))}},FragmentSpread(t){let n=t.name.value,r=function(e,t){let n=e.getFragment(t);if(n){let t=nh(e.getSchema(),n.typeCondition);if(e9(t))return t}}(e,n),i=e.getParentType();if(r&&i&&!tx(e.getSchema(),r,i)){let o=J(i),a=J(r);e.reportError(new T(`Fragment "${n}" cannot be spread here as objects of type "${o}" can never be of type "${a}".`,{nodes:t}))}}}}function nZ(e){let t=e.getSchema(),n=Object.create(null);for(let t of e.getDocument().definitions)nI(t)&&(n[t.name.value]=t);return{ScalarTypeExtension:r,ObjectTypeExtension:r,InterfaceTypeExtension:r,UnionTypeExtension:r,EnumTypeExtension:r,InputObjectTypeExtension:r};function r(r){var i;let a,s=r.name.value,l=n[s],u=null==t?void 0:t.getType(s);if(l?a=n0[l.kind]:u&&(a=eP(i=u)?o.SCALAR_TYPE_EXTENSION:eM(i)?o.OBJECT_TYPE_EXTENSION:eU(i)?o.INTERFACE_TYPE_EXTENSION:eB(i)?o.UNION_TYPE_EXTENSION:eG(i)?o.ENUM_TYPE_EXTENSION:eY(i)?o.INPUT_OBJECT_TYPE_EXTENSION:void y(!1,"Unexpected type: "+J(i))),a){if(a!==r.kind){let t=function(e){switch(e){case o.SCALAR_TYPE_EXTENSION:return"scalar";case o.OBJECT_TYPE_EXTENSION:return"object";case o.INTERFACE_TYPE_EXTENSION:return"interface";case o.UNION_TYPE_EXTENSION:return"union";case o.ENUM_TYPE_EXTENSION:return"enum";case o.INPUT_OBJECT_TYPE_EXTENSION:return"input object";default:y(!1,"Unexpected kind: "+J(e))}}(r.kind);e.reportError(new T(`Cannot extend non-${t} type "${s}".`,{nodes:l?[l,r]:r}))}}else{let i=ef(s,Object.keys({...n,...null==t?void 0:t.getTypeMap()}));e.reportError(new T(`Cannot extend type "${s}" because it is not defined.`+ei(i),{nodes:r.name}))}}}let n0={[o.SCALAR_TYPE_DEFINITION]:o.SCALAR_TYPE_EXTENSION,[o.OBJECT_TYPE_DEFINITION]:o.OBJECT_TYPE_EXTENSION,[o.INTERFACE_TYPE_DEFINITION]:o.INTERFACE_TYPE_EXTENSION,[o.UNION_TYPE_DEFINITION]:o.UNION_TYPE_EXTENSION,[o.ENUM_TYPE_DEFINITION]:o.ENUM_TYPE_EXTENSION,[o.INPUT_OBJECT_TYPE_DEFINITION]:o.INPUT_OBJECT_TYPE_EXTENSION};function n1(e){return{...n3(e),Field:{leave(t){var n;let r=e.getFieldDef();if(!r)return!1;let i=new Set(null==(n=t.arguments)?void 0:n.map(e=>e.name.value));for(let n of r.args)if(!i.has(n.name)&&tg(n)){let i=J(n.type);e.reportError(new T(`Field "${r.name}" argument "${n.name}" of type "${i}" is required, but it was not provided.`,{nodes:t}))}}}}}function n3(e){var t,n;let r=Object.create(null),i=e.getSchema();for(let e of null!=(t=null==i?void 0:i.getDirectives())?t:tJ)r[e.name]=ea(e.args.filter(tg),e=>e.name);for(let t of e.getDocument().definitions)if(t.kind===o.DIRECTIVE_DEFINITION){let e=null!=(n=t.arguments)?n:[];r[t.name.value]=ea(e.filter(n2),e=>e.name.value)}return{Directive:{leave(t){let n=t.name.value,i=r[n];if(i){var o;let r=new Set((null!=(o=t.arguments)?o:[]).map(e=>e.name.value));
45for(let[o,a]of Object.entries(i))if(!r.has(o)){let r=ek(a.type)?J(a.type):eI(a.type);e.reportError(new T(`Directive "@${n}" argument "${o}" of type "${r}" is required, but it was not provided.`,{nodes:t}))}}}}}}function n2(e){return e.type.kind===o.NON_NULL_TYPE&&null==e.defaultValue}function n9(e){return{Field(t){let n=e.getType(),r=t.selectionSet;if(n){if(e3(ts(n))){if(r){let i=t.name.value,o=J(n);e.reportError(new T(`Field "${i}" must not have a selection since type "${o}" has no subfields.`,{nodes:r}))}}else if(!r){let r=t.name.value,i=J(n);e.reportError(new T(`Field "${r}" of type "${i}" must have a selection of subfields. Did you mean "${r} { ... }"?`,{nodes:t}))}}}}}function n6(e){return e.map(e=>"number"==typeof e?"["+e.toString()+"]":"."+e).join("")}function n4(e,t,n){return{prev:e,key:t,typename:n}}function n7(e){let t=[],n=e;for(;n;)t.push(n.key),n=n.prev;return t.reverse()}function n8(e,t,n=n5){return function e(t,n,r,i){if(eX(n))return null!=t?e(t,n.ofType,r,i):void r(n7(i),t,new T(`Expected non-nullable type "${J(n)}" not to be null.`));if(null==t)return null;if(eJ(n)){let o=n.ofType;return tX(t)?Array.from(t,(t,n)=>e(t,o,r,n4(i,n,void 0))):[e(t,o,r,i)]}if(eY(n)){if(!h(t))return void r(n7(i),t,new T(`Expected type "${n.name}" to be an object.`));let o={},a=n.getFields();for(let s of Object.values(a)){let a=t[s.name];if(void 0===a){if(void 0!==s.defaultValue)o[s.name]=s.defaultValue;else if(eX(s.type)){let e=J(s.type);r(n7(i),t,new T(`Field "${s.name}" of required type "${e}" was not provided.`))}continue}o[s.name]=e(a,s.type,r,n4(i,s.name,n.name))}for(let e of Object.keys(t))if(!a[e]){let o=ef(e,Object.keys(n.getFields()));r(n7(i),t,new T(`Field "${e}" is not defined by type "${n.name}".`+ei(o)))}return o}if(e3(n)){let e;try{e=n.parseValue(t)}catch(e){e instanceof T?r(n7(i),t,e):r(n7(i),t,new T(`Expected type "${n.name}". `+e.message,{originalError:e}));return}return void 0===e&&r(n7(i),t,new T(`Expected type "${n.name}".`)),e}y(!1,"Unexpected input type: "+J(n))}(e,t,n,void 0)}function n5(e,t,n){let r="Invalid value "+J(t);throw e.length>0&&(r+=` at "value${n6(e)}"`),n.message=r+": "+n.message,n}function re(e,t,n){if(e){if(e.kind===o.VARIABLE){let r=e.name.value;if(null==n||void 0===n[r])return;let i=n[r];if(null===i&&eX(t))return;return i}if(eX(t)){if(e.kind===o.NULL)return;return re(e,t.ofType,n)}if(e.kind===o.NULL)return null;if(eJ(t)){let r=t.ofType;if(e.kind===o.LIST){let t=[];for(let i of e.values)if(rt(i,n)){if(eX(r))return;t.push(null)}else{let e=re(i,r,n);if(void 0===e)return;t.push(e)}return t}let i=re(e,r,n);if(void 0===i)return;return[i]}if(eY(t)){if(e.kind!==o.OBJECT)return;let r=Object.create(null),i=ea(e.fields,e=>e.name.value);for(let e of Object.values(t.getFields())){let t=i[e.name];if(!t||rt(t.value,n)){if(void 0!==e.defaultValue)r[e.name]=e.defaultValue;else if(eX(e.type))return;continue}let o=re(t.value,e.type,n);if(void 0===o)return;r[e.name]=o}return r}if(e3(t)){let r;try{r=t.parseLiteral(e,n)}catch(e){return}if(void 0===r)return;return r}y(!1,"Unexpected input type: "+J(t))}}function rt(e,t){return e.kind===o.VARIABLE&&(null==t||void 0===t[e.name.value])}function rn(e,t,n,r){let i=[],o=null==r?void 0:r.maxErrors;try{let r=function(e,t,n,r){let i={};for(let o of t){let t=o.variable.name.value,a=nh(e,o.type);if(!eK(a)){let e=eI(o.type);r(new T(`Variable "$${t}" expected value of type "${e}" which cannot be used as an input type.`,{nodes:o.type}));continue}if(!ro(n,t)){if(o.defaultValue)i[t]=re(o.defaultValue,a);else if(eX(a)){let e=J(a);r(new T(`Variable "$${t}" of required type "${e}" was not provided.`,{nodes:o}))}continue}let s=n[t];if(null===s&&eX(a)){let e=J(a);r(new T(`Variable "$${t}" of non-null type "${e}" must not be null.`,{nodes:o}));continue}i[t]=n8(s,a,(e,n,i)=>{let a=`Variable "$${t}" got invalid value `+J(n);e.length>0&&(a+=` at "${t}${n6(e)}"`),r(new T(a+"; "+i.message,{nodes:o,originalError:i.originalError}))})}return i}(e,t,n,e=>{if(null!=o&&i.length>=o)throw new T("Too many errors processing variables, error limit reached. Execution aborted.");i.push(e)});if(0===i.length)return{coerced:r}}catch(e){i.push(e)}return{errors:i}}function rr(e,t,n){var r;let i={},a=ea(null!=(r=t.arguments)?r:[],e=>e.name.value);for(let r of e.args){let e=r.name,s=r.type,l=a[e];if(!l){if(void 0!==r.defaultValue)i[e]=r.defaultValue;else if(eX(s))throw new T(`Argument "${e}" of required type "${J(s)}" was not provided.`,{nodes:t});continue}let u=l.value,c=u.kind===o.NULL;if(u.kind===o.VARIABLE){let t=u.name.value;if(null==n||!ro(n,t)){if(void 0!==r.defaultValue)i[e]=r.defaultValue;else if(eX(s))throw new T(`Argument "${e}" of required type "${J(s)}" was provided the variable "$${t}" which was not provided a runtime value.`,{nodes:u});continue}c=null==n[t]}if(c&&eX(s))throw new T(`Argument "${e}" of non-null type "${J(s)}" must not be null.`,{nodes:u});let p=re(u,s,n);if(void 0===p)throw new T(`Argument "${e}
45" has invalid value ${eI(u)}.`,{nodes:u});i[e]=p}return i}function ri(e,t,n){var r;let i=null==(r=t.directives)?void 0:r.find(t=>t.name.value===e.name);if(i)return rr(e,i,n)}function ro(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function ra(e,t,n,r,i){let o=new Map;return rs(e,t,n,r,i,o,new Set),o}function rs(e,t,n,r,i,a,s){for(let u of i.selections)switch(u.kind){case o.FIELD:{var l;if(!rl(n,u))continue;let e=(l=u).alias?l.alias.value:l.name.value,t=a.get(e);void 0!==t?t.push(u):a.set(e,[u]);break}case o.INLINE_FRAGMENT:if(!rl(n,u)||!ru(e,u,r))continue;rs(e,t,n,r,u.selectionSet,a,s);break;case o.FRAGMENT_SPREAD:{let i=u.name.value;if(s.has(i)||!rl(n,u))continue;s.add(i);let o=t[i];if(!o||!ru(e,o,r))continue;rs(e,t,n,r,o.selectionSet,a,s)}}}function rl(e,t){let n=ri(tG,t,e);if((null==n?void 0:n.if)===!0)return!1;let r=ri(tq,t,e);return(null==r?void 0:r.if)!==!1}function ru(e,t,n){let r=t.typeCondition;if(!r)return!0;let i=nh(e,r);return i===n||!!e4(i)&&e.isSubType(i,n)}function rc(e){return{OperationDefinition(t){if("subscription"===t.operation){let n=e.getSchema(),r=n.getSubscriptionType();if(r){let i=t.name?t.name.value:null,a=Object.create(null),s=e.getDocument(),l=Object.create(null);for(let e of s.definitions)e.kind===o.FRAGMENT_DEFINITION&&(l[e.name.value]=e);let u=ra(n,l,a,r,t.selectionSet);if(u.size>1){let t=[...u.values()].slice(1).flat();e.reportError(new T(null!=i?`Subscription "${i}" must select only one top level field.`:"Anonymous Subscription must select only one top level field.",{nodes:t}))}for(let t of u.values())t[0].name.value.startsWith("__")&&e.reportError(new T(null!=i?`Subscription "${i}" must not select an introspection top level field.`:"Anonymous Subscription must not select an introspection top level field.",{nodes:t}))}}}}}function rp(e,t){let n=new Map;for(let r of e){let e=t(r),i=n.get(e);void 0===i?n.set(e,[r]):i.push(r)}return n}function rf(e){return{DirectiveDefinition(e){var t;let r=null!=(t=e.arguments)?t:[];return n(`@${e.name.value}`,r)},InterfaceTypeDefinition:t,InterfaceTypeExtension:t,ObjectTypeDefinition:t,ObjectTypeExtension:t};function t(e){var t,r;let i=e.name.value;for(let o of null!=(t=e.fields)?t:[]){let e=o.name.value;n(`${i}.${e}`,null!=(r=o.arguments)?r:[])}return!1}function n(t,n){for(let[r,i]of rp(n,e=>e.name.value))i.length>1&&e.reportError(new T(`Argument "${t}(${r}:)" can only be defined once.`,{nodes:i.map(e=>e.name)}));return!1}}function rd(e){return{Field:t,Directive:t};function t(t){var n;for(let[r,i]of rp(null!=(n=t.arguments)?n:[],e=>e.name.value))i.length>1&&e.reportError(new T(`There can be only one argument named "${r}".`,{nodes:i.map(e=>e.name)}))}}function rh(e){let t=Object.create(null),n=e.getSchema();return{DirectiveDefinition(r){let i=r.name.value;return null!=n&&n.getDirective(i)?void e.reportError(new T(`Directive "@${i}" already exists in the schema. It cannot be redefined.`,{nodes:r.name})):(t[i]?e.reportError(new T(`There can be only one directive named "@${i}".`,{nodes:[t[i],r.name]})):t[i]=r.name,!1)}}}function ry(e){let t=Object.create(null),n=e.getSchema();for(let e of n?n.getDirectives():tJ)t[e.name]=!e.isRepeatable;for(let n of e.getDocument().definitions)n.kind===o.DIRECTIVE_DEFINITION&&(t[n.name.value]=!n.repeatable);let r=Object.create(null),i=Object.create(null);return{enter(n){let a;if("directives"in n&&n.directives){if(n.kind===o.SCHEMA_DEFINITION||n.kind===o.SCHEMA_EXTENSION)a=r;else if(nI(n)||nO(n)){let e=n.name.value;void 0===(a=i[e])&&(i[e]=a=Object.create(null))}else a=Object.create(null);for(let r of n.directives){let n=r.name.value;t[n]&&(a[n]?e.reportError(new T(`The directive "@${n}" can only be used once at this location.`,{nodes:[a[n],r]})):a[n]=r)}}}}}function rm(e){let t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);return{EnumTypeDefinition:i,EnumTypeExtension:i};function i(t){var i;let o=t.name.value;r[o]||(r[o]=Object.create(null));let a=null!=(i=t.values)?i:[],s=r[o];for(let t of a){let r=t.name.value,i=n[o];eG(i)&&i.getValue(r)?e.reportError(new T(`Enum value "${o}.${r}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:t.name})):s[r]?e.reportError(new T(`Enum value "${o}.${r}" can only be defined once.`,{nodes:[s[r],t.name]})):s[r]=t.name}return!1}}function rv(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(t){var i,o,a;let s=t.name.value;r[s]||(r[s]=Object.create(null));let l=null!=(i=t.fields)?i:[],u=r[s];for(let t of l){let r=t.name.value;(o=n[s],a=r,(eM(o)||eU(o)||eY(o))&&null!=o.getFields()[a])?e.reportError(new T(`Field "${s}.${r}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:t.name})):u[r]?e.reportError(new T(`Field "${s}.${r}" can only be defined once.`,{nodes:[u[r],t.name]})):u[r]=t.name}return!1}}function rg(e){let t=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(n){let r=n.name.value;return t[r]?e.reportError(new T(`There can be only one fragment named "${r}".`,{nodes:[t[r],n.name]})):t[r]=n.name,!1}}}function rE(e){let t=[],n=Object.create(null);return{ObjectValue:{enter(){t.push(n),n=Object.create(null)},leave(){let e=t.pop();e||y(!1),n=e}},ObjectField(t){let r=t.name.value;n[r]?e.reportError(new T(`There can be only one input field named "${r}".`,{nodes:[n[r],t.name]})):n[r]=t.name}}}function rb(e){let t=Object.create(null);return{OperationDefinition(n){let r=n.name;return r&&(t[r.value]?e.reportError(new T(`There can be only one operation named "${r.value}".`,{nodes:[t[r.value],r]})):t[r.value]=r),!1},FragmentDefinition:()=>!1}}function rT(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(t){var i;
45for(let o of null!=(i=t.operationTypes)?i:[]){let t=o.operation,i=n[t];r[t]?e.reportError(new T(`Type for ${t} already defined in the schema. It cannot be redefined.`,{nodes:o})):i?e.reportError(new T(`There can be only one ${t} type in schema.`,{nodes:[i,o]})):n[t]=o}return!1}}function rN(e){let t=Object.create(null),n=e.getSchema();return{ScalarTypeDefinition:r,ObjectTypeDefinition:r,InterfaceTypeDefinition:r,UnionTypeDefinition:r,EnumTypeDefinition:r,InputObjectTypeDefinition:r};function r(r){let i=r.name.value;return null!=n&&n.getType(i)?void e.reportError(new T(`Type "${i}" already exists in the schema. It cannot also be defined in this type definition.`,{nodes:r.name})):(t[i]?e.reportError(new T(`There can be only one type named "${i}".`,{nodes:[t[i],r.name]})):t[i]=r.name,!1)}}function rw(e){return{OperationDefinition(t){var n;for(let[r,i]of rp(null!=(n=t.variableDefinitions)?n:[],e=>e.variable.name.value))i.length>1&&e.reportError(new T(`There can be only one variable named "$${r}".`,{nodes:i.map(e=>e.variable.name)}))}}}function rI(e){return{ListValue(t){if(!eJ(ti(e.getParentInputType())))return r_(e,t),!1},ObjectValue(t){let n=ts(e.getInputType());if(!eY(n))return r_(e,t),!1;let r=ea(t.fields,e=>e.name.value);for(let i of Object.values(n.getFields()))if(!r[i.name]&&tO(i)){let r=J(i.type);e.reportError(new T(`Field "${n.name}.${i.name}" of required type "${r}" was not provided.`,{nodes:t}))}},ObjectField(t){let n=ts(e.getParentInputType());if(!e.getInputType()&&eY(n)){let r=ef(t.name.value,Object.keys(n.getFields()));e.reportError(new T(`Field "${t.name.value}" is not defined by type "${n.name}".`+ei(r),{nodes:t}))}},NullValue(t){let n=e.getInputType();eX(n)&&e.reportError(new T(`Expected value of type "${J(n)}", found ${eI(t)}.`,{nodes:t}))},EnumValue:t=>r_(e,t),IntValue:t=>r_(e,t),FloatValue:t=>r_(e,t),StringValue:t=>r_(e,t),BooleanValue:t=>r_(e,t)}}function r_(e,t){let n=e.getInputType();if(!n)return;let r=ts(n);if(!e3(r)){let r=J(n);e.reportError(new T(`Expected value of type "${r}", found ${eI(t)}.`,{nodes:t}));return}try{let i=r.parseLiteral(t,void 0);if(void 0===i){let r=J(n);e.reportError(new T(`Expected value of type "${r}", found ${eI(t)}.`,{nodes:t}))}}catch(i){let r=J(n);i instanceof T?e.reportError(i):e.reportError(new T(`Expected value of type "${r}", found ${eI(t)}; `+i.message,{nodes:t,originalError:i}))}}function rO(e){return{VariableDefinition(t){let n=nh(e.getSchema(),t.type);if(void 0!==n&&!eK(n)){let n=t.variable.name.value,r=eI(t.type);e.reportError(new T(`Variable "$${n}" cannot be non-input type "${r}".`,{nodes:t.type}))}}}}function rS(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(n){for(let{node:u,type:c,defaultValue:p}of e.getRecursiveVariableUsages(n)){let n=u.name.value,f=t[n];if(f&&c){var r,i,a,s,l;let t=e.getSchema(),d=nh(t,f.type);if(d&&(r=t,i=d,a=f.defaultValue,s=c,l=p,eX(s)&&!eX(i)?!((null!=a&&a.kind!==o.NULL||void 0!==l)&&tA(r,i,s.ofType)):!tA(r,i,s))){let t=J(d),r=J(c);e.reportError(new T(`Variable "$${n}" of type "${t}" used in position expecting type "${r}".`,{nodes:[f,u]}))}}}}},VariableDefinition(e){t[e.variable.name.value]=e}}}let rA=Object.freeze([nS,rb,nP,rc,nk,nx,rO,n9,nA,rg,nL,nU,nK,nM,rw,n$,nV,nC,ry,nD,rd,rI,n1,rS,nq,rE]),rx=Object.freeze([nj,rT,rN,rm,rv,rf,rh,nk,nC,ry,nZ,nR,rd,rE,n3]);class rD{constructor(e,t){this._ast=e,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=t}get[Symbol.toStringTag](){return"ASTValidationContext"}reportError(e){this._onError(e)}getDocument(){return this._ast}getFragment(e){let t;if(this._fragments)t=this._fragments;else{for(let e of(t=Object.create(null),this.getDocument().definitions))e.kind===o.FRAGMENT_DEFINITION&&(t[e.name.value]=e);this._fragments=t}return t[e]}getFragmentSpreads(e){let t=this._fragmentSpreads.get(e);if(!t){let n;t=[];let r=[e];for(;n=r.pop();)for(let e of n.selections)e.kind===o.FRAGMENT_SPREAD?t.push(e):e.selectionSet&&r.push(e.selectionSet);this._fragmentSpreads.set(e,t)}return t}getRecursivelyReferencedFragments(e){let t=this._recursivelyReferencedFragments.get(e);if(!t){let n;t=[];let r=Object.create(null),i=[e.selectionSet];for(;n=i.pop();)for(let e of this.getFragmentSpreads(n)){let n=e.name.value;if(!0!==r[n]){r[n]=!0;let e=this.getFragment(n);e&&(t.push(e),i.push(e.selectionSet))}}this._recursivelyReferencedFragments.set(e,t)}return t}}class rR extends rD{constructor(e,t,n){super(e,n),this._schema=t}get[Symbol.toStringTag](){return"SDLValidationContext"}getSchema(){return this._schema}}class rC extends rD{constructor(e,t,n,r){super(t,r),this._schema=e,this._typeInfo=n,this._variableUsages=new Map,this._recursiveVariableUsages=new Map}get[Symbol.toStringTag](){return"ValidationContext"}getSchema(){return this._schema}getVariableUsages(e){let t=this._variableUsages.get(e);if(!t){let n=[],r=new ny(this._schema);eb(e,nv(r,{VariableDefinition:()=>!1,Variable(e){n.push({node:e,type:r.getInputType(),defaultValue:r.getDefaultValue()})}})),t=n,this._variableUsages.set(e,t)}return t}getRecursiveVariableUsages(e){let t=this._recursiveVariableUsages.get(e);if(!t){for(let n of(t=this.getVariableUsages(e),this.getRecursivelyReferencedFragments(e)))t=t.concat(this.getVariableUsages(n));this._recursiveVariableUsages.set(e,t)}return t}getType(){return this._typeInfo.getType()}getParentType(){return this._typeInfo.getParentType()}getInputType(){return this._typeInfo.getInputType()}getParentInputType(){return this._typeInfo.getParentInputType()}getFieldDef(){return this._typeInfo.getFieldDef()}getDirective(){return this._typeInfo.getDirective()}getArgument(){return this._typeInfo.getArgument()}getEnumValue(){return this._typeInfo.getEnumValue()}}function rL(e,t,n=rA,r,i=new ny(e)){var o;let a=null!=(o=null==r?void 0:r.maxErrors)?o:100;t||f(!1,"Must provide document."),ns(e);let s=Object.freeze({}),l=[],u=new rC(e,t,i,e=>{if(l.length>=a)throw l.push(new T("Too many validation errors, error limit reached. Validation aborted.")),s;l.push(e)}),c=eT(n.map(e=>e(u)));
45try{eb(t,nv(i,c))}catch(e){if(e!==s)throw e}return l}function rk(e,t,n=rx){let r=[],i=new rR(e,t,e=>{r.push(e)});return eb(e,eT(n.map(e=>e(i)))),r}class rF extends Error{constructor(e){super("Unexpected error value: "+J(e)),this.name="NonErrorThrown",this.thrownValue=e}}function rP(e,t,n){var r;let i=e instanceof Error?e:new rF(e);return Array.isArray(i.path)?i:new T(i.message,{nodes:null!=(r=i.nodes)?r:t,source:i.source,positions:i.positions,path:n,originalError:i})}let rj=function(e){let t;return function(n,r,i){void 0===t&&(t=new WeakMap);let o=t.get(n);void 0===o&&(o=new WeakMap,t.set(n,o));let a=o.get(r);void 0===a&&(a=new WeakMap,o.set(r,a));let s=a.get(i);return void 0===s&&(s=e(n,r,i),a.set(i,s)),s}}((e,t,n)=>(function(e,t,n,r,i){let o=new Map,a=new Set;for(let s of i)s.selectionSet&&rs(e,t,n,r,s.selectionSet,o,a);return o})(e.schema,e.fragments,e.variableValues,t,n));function rM(e){arguments.length<2||f(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let{schema:t,document:n,variableValues:i,rootValue:o}=e;rV(t,n,i);let a=rB(e);if(!("schema"in a))return{errors:a};try{let{operation:e}=a,t=function(e,t,n){let i=e.schema.getRootType(t.operation);if(null==i)throw new T(`Schema is not configured to execute ${t.operation} operation.`,{nodes:t});let o=ra(e.schema,e.fragments,e.variableValues,i,t.selectionSet),a=void 0;switch(t.operation){case r.QUERY:return rq(e,i,n,a,o);case r.MUTATION:var s,l,u,c,p;return s=e,l=i,u=n,c=a,p=o,function(e,t,n){let r=n;for(let n of e)r=d(r)?r.then(e=>t(e,n)):t(r,n);return r}(p.entries(),(e,[t,n])=>{let r=n4(c,t,l.name),i=rG(s,l,u,n,r);return void 0===i?e:d(i)?i.then(n=>(e[t]=n,e)):(e[t]=i,e)},Object.create(null));case r.SUBSCRIPTION:return rq(e,i,n,a,o)}}(a,e,o);if(d(t))return t.then(e=>rU(e,a.errors),e=>(a.errors.push(e),rU(null,a.errors)));return rU(t,a.errors)}catch(e){return a.errors.push(e),rU(null,a.errors)}}function r$(e){let t=rM(e);if(d(t))throw Error("GraphQL execution failed to complete synchronously.");return t}function rU(e,t){return 0===t.length?{data:e}:{errors:t,data:e}}function rV(e,t,n){t||f(!1,"Must provide document."),ns(e),null==n||h(n)||f(!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 rB(e){var t,n;let r,{schema:i,document:a,rootValue:s,contextValue:l,variableValues:u,operationName:c,fieldResolver:p,typeResolver:f,subscribeFieldResolver:d}=e,h=Object.create(null);for(let e of a.definitions)switch(e.kind){case o.OPERATION_DEFINITION:if(null==c){if(void 0!==r)return[new T("Must provide operation name if query contains multiple operations.")];r=e}else(null==(t=e.name)?void 0:t.value)===c&&(r=e);break;case o.FRAGMENT_DEFINITION:h[e.name.value]=e}if(!r)return null!=c?[new T(`Unknown operation named "${c}".`)]:[new T("Must provide an operation.")];let y=rn(i,null!=(n=r.variableDefinitions)?n:[],null!=u?u:{},{maxErrors:50});return y.errors?y.errors:{schema:i,fragments:h,rootValue:s,contextValue:l,operation:r,variableValues:y.coerced,fieldResolver:null!=p?p:rK,typeResolver:null!=f?f:rz,subscribeFieldResolver:null!=d?d:rK,errors:[]}}function rq(e,t,n,r,i){let o=Object.create(null),a=!1;for(let[s,l]of i.entries()){let i=n4(r,s,t.name),u=rG(e,t,n,l,i);void 0!==u&&(o[s]=u,d(u)&&(a=!0))}return a?Promise.all(Object.values(o)).then(e=>{let t=Object.create(null);for(let[n,r]of Object.keys(o).entries())t[r]=e[n];return t}):o}function rG(e,t,n,r,i){var o;let a=rZ(e.schema,t,r[0]);if(!a)return;let s=a.type,l=null!=(o=a.resolve)?o:e.fieldResolver,u=rH(e,a,r,t,i);try{let t,o=rr(a,r[0],e.variableValues),c=e.contextValue,p=l(n,o,c,u);if(t=d(p)?p.then(t=>rQ(e,s,r,u,i,t)):rQ(e,s,r,u,i,p),d(t))return t.then(void 0,t=>{let n=rP(t,r,n7(i));return rY(n,s,e)});return t}catch(t){return rY(rP(t,r,n7(i)),s,e)}}function rH(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 rY(e,t,n){if(eX(t))throw e;return n.errors.push(e),null}function rQ(e,t,n,r,i,o){if(o instanceof Error)throw o;if(eX(t)){let a=rQ(e,t.ofType,n,r,i,o);if(null===a)throw Error(`Cannot return null for non-nullable field ${r.parentType.name}.${r.fieldName}.`);return a}return null==o?null:eJ(t)?function(e,t,n,r,i,o){if(!tX(o))throw new T(`Expected Iterable, but did not find one for field "${r.parentType.name}.${r.fieldName}".`);let a=t.ofType,s=!1,l=Array.from(o,(t,o)=>{let l=n4(i,o,void 0);try{let i;if(i=d(t)?t.then(t=>rQ(e,a,n,r,l,t)):rQ(e,a,n,r,l,t),d(i))return s=!0,i.then(void 0,t=>{let r=rP(t,n,n7(l));return rY(r,a,e)});return i}catch(t){return rY(rP(t,n,n7(l)),a,e)}});return s?Promise.all(l):l}(e,t,n,r,i,o):e3(t)?function(e,t){let n=e.serialize(t);if(null==n)throw Error(`Expected \`${J(e)}.serialize(${J(t)})\` to return non-nullable value, returned: ${J(n)}`);return n}(t,o):e4(t)?function(e,t,n,r,i,o){var a;let s=(null!=(a=t.resolveType)?a:e.typeResolver)(o,e.contextValue,r,t);return d(s)?s.then(a=>rW(e,rJ(a,e,t,n,r,o),n,r,i,o)):rW(e,rJ(s,e,t,n,r,o),n,r,i,o)}(e,t,n,r,i,o):eM(t)?rW(e,t,n,r,i,o):void y(!1,"Cannot complete value of unexpected output type: "+J(t))}function rJ(e,t,n,r,i,o){if(null==e)throw new T(`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(eM(e))throw new T("Support for returning GraphQLObjectType from resolveType was removed in [email protected] please return type name instead.");if("string"!=typeof e)throw new T(`Abstract type "${n.name}" must resolve to an Object type at runtime for field "${i.parentType.name}.${i.fieldName}" with value ${J(o)}, received "${J(e)}".`);let a=t.schema.getType(e);if(null==a)throw new T(`Abstract type "${n.name}" was resolved to a type "${e}" that does not exist inside the schema.`,{nodes:r});if(!eM(a))throw new T(`Abstract type "${n.name}" was resolved to a non-object type "${e}".`,{nodes:r});if(!t.schema.isSubType(n,a))throw new T(`Runtime Object type "${a.name}" is not a possible type for "${n.name}".`,{nodes:r});return a}
45function rW(e,t,n,r,i,o){let a=rj(e,t,n);if(t.isTypeOf){let s=t.isTypeOf(o,e.contextValue,r);if(d(s))return s.then(r=>{if(!r)throw rX(t,o,n);return rq(e,t,o,i,a)});if(!s)throw rX(t,o,n)}return rq(e,t,o,i,a)}function rX(e,t,n){return new T(`Expected value of type "${e.name}" but got: ${J(t)}.`,{nodes:n})}let rz=function(e,t,n,r){if(h(e)&&"string"==typeof e.__typename)return e.__typename;let i=n.schema.getPossibleTypes(r),o=[];for(let r=0;r<i.length;r++){let a=i[r];if(a.isTypeOf){let i=a.isTypeOf(e,t,n);if(d(i))o[r]=i;else if(i)return a.name}}if(o.length)return Promise.all(o).then(e=>{for(let t=0;t<e.length;t++)if(e[t])return i[t].name})},rK=function(e,t,n,r){if(h(e)||"function"==typeof e){let i=e[r.fieldName];return"function"==typeof i?e[r.fieldName](t,n,r):i}};function rZ(e,t,n){let r=n.name.value;return r===t7.name&&e.getQueryType()===t?t7:r===t8.name&&e.getQueryType()===t?t8:r===t5.name?t5:t.getFields()[r]}function r0(e){return new Promise(t=>t(r3(e)))}function r1(e){let t=r3(e);if(d(t))throw Error("GraphQL execution failed to complete synchronously.");return t}function r3(e){let t;arguments.length<2||f(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let{schema:n,source:r,rootValue:i,contextValue:o,variableValues:a,operationName:s,fieldResolver:l,typeResolver:u}=e,c=na(n);if(c.length>0)return{errors:c};try{t=z(r)}catch(e){return{errors:[e]}}let p=rL(n,t);return p.length>0?{errors:p}:rM({schema:n,document:t,rootValue:i,contextValue:o,variableValues:a,operationName:s,fieldResolver:l,typeResolver:u})}function r2(e){return"function"==typeof(null==e?void 0:e[Symbol.asyncIterator])}async function r9(e){arguments.length<2||f(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let t=await r6(e);if(!r2(t))return t;let n=t[Symbol.asyncIterator]();async function r(t){if(t.done)return t;try{let n;return{value:await (n=t.value,rM({...e,rootValue:n})),done:!1}}catch(e){if("function"==typeof n.return)try{await n.return()}catch(e){}throw e}}return{next:async()=>r(await n.next()),return:async()=>"function"==typeof n.return?r(await n.return()):{value:void 0,done:!0},async throw(e){if("function"==typeof n.throw)return r(await n.throw(e));throw e},[Symbol.asyncIterator](){return this}}}async function r6(...e){let t=function(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]}}(e),{schema:n,document:r,variableValues:i}=t;rV(n,r,i);let o=rB(t);if(!("schema"in o))return{errors:o};try{let e=await r4(o);if(!r2(e))throw Error(`Subscription field must return Async Iterable. Received: ${J(e)}.`);return e}catch(e){if(e instanceof T)return{errors:[e]};throw e}}async function r4(e){let{schema:t,fragments:n,operation:r,variableValues:i,rootValue:o}=e,a=t.getSubscriptionType();if(null==a)throw new T("Schema is not configured to execute subscription operation.",{nodes:r});let[s,l]=[...ra(t,n,i,a,r.selectionSet).entries()][0],u=rZ(t,a,l[0]);if(!u){let e=l[0].name.value;throw new T(`The subscription field "${e}" is not defined.`,{nodes:l})}let c=n4(void 0,s,a.name),p=rH(e,u,l,a,c);try{var f;let t=rr(u,l[0],i),n=e.contextValue,r=null!=(f=u.subscribe)?f:e.subscribeFieldResolver,a=await r(o,t,n,p);if(a instanceof Error)throw a;return a}catch(e){throw rP(e,l,n7(c))}}function r7(e){return{Field(t){let n=e.getFieldDef(),r=null==n?void 0:n.deprecationReason;if(n&&null!=r){let i=e.getParentType();null!=i||y(!1),e.reportError(new T(`The field ${i.name}.${n.name} is deprecated. ${r}`,{nodes:t}))}},Argument(t){let n=e.getArgument(),r=null==n?void 0:n.deprecationReason;if(n&&null!=r){let i=e.getDirective();if(null!=i)e.reportError(new T(`Directive "@${i.name}" argument "${n.name}" is deprecated. ${r}`,{nodes:t}));else{let i=e.getParentType(),o=e.getFieldDef();null!=i&&null!=o||y(!1),e.reportError(new T(`Field "${i.name}.${o.name}" argument "${n.name}" is deprecated. ${r}`,{nodes:t}))}}},ObjectField(t){let n=ts(e.getParentInputType());if(eY(n)){let r=n.getFields()[t.name.value],i=null==r?void 0:r.deprecationReason;null!=i&&e.reportError(new T(`The input field ${n.name}.${r.name} is deprecated. ${i}`,{nodes:t}))}},EnumValue(t){let n=e.getEnumValue(),r=null==n?void 0:n.deprecationReason;if(n&&null!=r){let i=ts(e.getInputType());null!=i||y(!1),e.reportError(new T(`The enum value "${i.name}.${n.name}" is deprecated. ${r}`,{nodes:t}))}}}}function r8(e){return{Field(t){let n=ts(e.getType());n&&nt(n)&&e.reportError(new T(`GraphQL introspection has been disabled, but the requested query contained the field "${t.name.value}".`,{nodes:t}))}}}
45function r5(e){let t={descriptions:!0,specifiedByUrl:!1,directiveIsRepeatable:!1,schemaDescription:!1,inputValueDeprecation:!1,...e},n=t.descriptions?"description":"",r=t.specifiedByUrl?"specifiedByURL":"",i=t.directiveIsRepeatable?"isRepeatable":"",o=t.schemaDescription?n:"";function a(e){return t.inputValueDeprecation?e:""}return`
46    query IntrospectionQuery {
47      __schema {
48        ${o}
49        queryType { name }
50        mutationType { name }
51        subscriptionType { name }
52        types {
53          ...FullType
54        }
55        directives {
56          name
57          ${n}
58          ${i}
59          locations
60          args${a("(includeDeprecated: true)")} {
61            ...InputValue
62          }
63        }
64      }
65    }
66
67    fragment FullType on __Type {
68      kind
69      name
70      ${n}
71      ${r}
72      fields(includeDeprecated: true) {
73        name
74        ${n}
75        args${a("(includeDeprecated: true)")} {
76          ...InputValue
77        }
78        type {
79          ...TypeRef
80        }
81        isDeprecated
82        deprecationReason
83      }
84      inputFields${a("(includeDeprecated: true)")} {
85        ...InputValue
86      }
87      interfaces {
88        ...TypeRef
89      }
90      enumValues(includeDeprecated: true) {
91        name
92        ${n}
93        isDeprecated
94        deprecationReason
95      }
96      possibleTypes {
97        ...TypeRef
98      }
99    }
100
101    fragment InputValue on __InputValue {
102      name
103      ${n}
104      type { ...TypeRef }
105      defaultValue
106      ${a("isDeprecated")}
107      ${a("deprecationReason")}
108    }
109
110    fragment TypeRef on __Type {
111      kind
112      name
113      ofType {
114        kind
115        name
116        ofType {
117          kind
118          name
119          ofType {
120            kind
121            name
122            ofType {
123              kind
124              name
125              ofType {
126                kind
127                name
128                ofType {
129                  kind
130                  name
131                  ofType {
132                    kind
133                    name
134                  }
135                }
136              }
137            }
138          }
139        }
140      }
141    }
142  `}function ie(e,t){let n=null;for(let i of e.definitions)if(i.kind===o.OPERATION_DEFINITION){var r;if(null==t){if(n)return null;n=i}else if((null==(r=i.name)?void 0:r.value)===t)return i}return n}function it(e,t){if("query"===t.operation){let n=e.getQueryType();if(!n)throw new T("Schema does not define the required query root type.",{nodes:t});return n}if("mutation"===t.operation){let n=e.getMutationType();if(!n)throw new T("Schema is not configured for mutations.",{nodes:t});return n}if("subscription"===t.operation){let n=e.getSubscriptionType();if(!n)throw new T("Schema is not configured for subscriptions.",{nodes:t});return n}throw new T("Can only have query, mutation and subscription operations.",{nodes:t})}function ir(e,t){let n=r$({schema:e,document:z(r5({specifiedByUrl:!0,directiveIsRepeatable:!0,schemaDescription:!0,inputValueDeprecation:!0,...t}))});return!n.errors&&n.data||y(!1),n.data}function ii(e,t){h(e)&&h(e.__schema)||f(!1,`Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: ${J(e)}.`);let n=e.__schema,r=es(n.types,e=>e.name,e=>(function(e){if(null!=e&&null!=e.name&&null!=e.kind)switch(e.kind){case s.SCALAR:return new tc({name:(t=e).name,description:t.description,specifiedByURL:t.specifiedByURL});case s.OBJECT:return new tp({name:(n=e).name,description:n.description,interfaces:()=>y(n),fields:()=>m(n)});case s.INTERFACE:return new tE({name:(r=e).name,description:r.description,interfaces:()=>y(r),fields:()=>m(r)});case s.UNION:var t,n,r,i=e;if(!i.possibleTypes){let e=J(i);throw Error(`Introspection result missing possibleTypes: ${e}.`)}return new tb({name:i.name,description:i.description,types:()=>i.possibleTypes.map(p)});case s.ENUM:var o=e;if(!o.enumValues){let e=J(o);throw Error(`Introspection result missing enumValues: ${e}.`)}return new tN({name:o.name,description:o.description,values:es(o.enumValues,e=>e.name,e=>({description:e.description,deprecationReason:e.deprecationReason}))});case s.INPUT_OBJECT:var a=e;if(!a.inputFields){let e=J(a);throw Error(`Introspection result missing inputFields: ${e}.`)}return new tI({name:a.name,description:a.description,fields:()=>g(a.inputFields)})}let l=J(e);throw Error(`Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ${l}.`)})(e));for(let e of[...tj,...ne])r[e.name]&&(r[e.name]=e);let i=n.queryType?p(n.queryType):null,o=n.mutationType?p(n.mutationType):null,a=n.subscriptionType?p(n.subscriptionType):null,l=n.directives?n.directives.map(function(e){if(!e.args){let t=J(e);throw Error(`Introspection result missing directive args: ${t}.`)}if(!e.locations){let t=J(e);throw Error(`Introspection result missing directive locations: ${t}.`)}return new tB({name:e.name,description:e.description,isRepeatable:e.isRepeatable,locations:e.locations.slice(),args:g(e.args)})}):[];return new ni({description:n.description,query:i,mutation:o,subscription:a,types:Object.values(r),directives:l,assumeValid:null==t?void 0:t.assumeValid});function u(e){if(e.kind===s.LIST){let t=e.ofType;
142if(!t)throw Error("Decorated type deeper than introspection query.");return new e8(u(t))}if(e.kind===s.NON_NULL){let t=e.ofType;if(!t)throw Error("Decorated type deeper than introspection query.");return new e5(tr(u(t)))}return c(e)}function c(e){let t=e.name;if(!t)throw Error(`Unknown type reference: ${J(e)}.`);let n=r[t];if(!n)throw Error(`Invalid or incomplete schema, unknown type: ${t}. Ensure that a full introspection query is used in order to build a client schema.`);return n}function p(e){return e$(c(e))}function d(e){return eV(c(e))}function y(e){if(null===e.interfaces&&e.kind===s.INTERFACE)return[];if(!e.interfaces){let t=J(e);throw Error(`Introspection result missing interfaces: ${t}.`)}return e.interfaces.map(d)}function m(e){if(!e.fields)throw Error(`Introspection result missing fields: ${J(e)}.`);return es(e.fields,e=>e.name,v)}function v(e){let t=u(e.type);if(!e0(t)){let e=J(t);throw Error(`Introspection must provide output type for fields, but received: ${e}.`)}if(!e.args){let t=J(e);throw Error(`Introspection result missing field args: ${t}.`)}return{description:e.description,deprecationReason:e.deprecationReason,type:t,args:g(e.args)}}function g(e){return es(e,e=>e.name,E)}function E(e){let t=u(e.type);if(!eK(t)){let e=J(t);throw Error(`Introspection must provide input type for arguments, but received: ${e}.`)}let n=null!=e.defaultValue?re(K(e.defaultValue),t):void 0;return{description:e.description,type:t,defaultValue:n,deprecationReason:e.deprecationReason}}}function io(e,t,n){nr(e),null!=t&&t.kind===o.DOCUMENT||f(!1,"Must provide valid Document AST."),(null==n?void 0:n.assumeValid)!==!0&&(null==n?void 0:n.assumeValidSDL)!==!0&&function(e,t){let n=rk(e,t);if(0!==n.length)throw Error(n.map(e=>e.message).join("\n\n"))}(t,e);let r=e.toConfig(),i=ia(r,t,n);return r===i?e:new ni(i)}function ia(e,t,n){var r,i,a,s,l,u;let c,p=[],f=Object.create(null),d=[],h=[];for(let e of t.definitions)if(e.kind===o.SCHEMA_DEFINITION)c=e;else if(e.kind===o.SCHEMA_EXTENSION)h.push(e);else if(nI(e))p.push(e);else if(nO(e)){let t=e.name.value,n=f[t];f[t]=n?n.concat([e]):[e]}else e.kind===o.DIRECTIVE_DEFINITION&&d.push(e);if(0===Object.keys(f).length&&0===p.length&&0===d.length&&0===h.length&&null==c)return e;let m=Object.create(null);for(let t of e.types){m[t.name]=nt(u=t)||tM(u)?u:eP(u)?function(e){var t,n;let r=e.toConfig(),i=null!=(t=f[r.name])?t:[],o=r.specifiedByURL;for(let e of i)o=null!=(n=iu(e))?n:o;return new tc({...r,specifiedByURL:o,extensionASTNodes:r.extensionASTNodes.concat(i)})}(u):eM(u)?function(e){var t;let n=e.toConfig(),r=null!=(t=f[n.name])?t:[];return new tp({...n,interfaces:()=>[...e.getInterfaces().map(E),...x(r)],fields:()=>({...el(n.fields,b),..._(r)}),extensionASTNodes:n.extensionASTNodes.concat(r)})}(u):eU(u)?function(e){var t;let n=e.toConfig(),r=null!=(t=f[n.name])?t:[];return new tE({...n,interfaces:()=>[...e.getInterfaces().map(E),...x(r)],fields:()=>({...el(n.fields,b),..._(r)}),extensionASTNodes:n.extensionASTNodes.concat(r)})}(u):eB(u)?function(e){var t;let n=e.toConfig(),r=null!=(t=f[n.name])?t:[];return new tb({...n,types:()=>[...e.getTypes().map(E),...D(r)],extensionASTNodes:n.extensionASTNodes.concat(r)})}(u):eG(u)?function(e){var t;let n=e.toConfig(),r=null!=(t=f[e.name])?t:[];return new tN({...n,values:{...n.values,...A(r)},extensionASTNodes:n.extensionASTNodes.concat(r)})}(u):eY(u)?function(e){var t;let n=e.toConfig(),r=null!=(t=f[n.name])?t:[];return new tI({...n,fields:()=>({...el(n.fields,e=>({...e,type:g(e.type)})),...S(r)}),extensionASTNodes:n.extensionASTNodes.concat(r)})}(u):void y(!1,"Unexpected type: "+J(u))}for(let e of p){let t=e.name.value;m[t]=null!=(l=is[t])?l:function(e){var t,n,r,i,a,s,l;let u=e.name.value,c=null!=(t=f[u])?t:[];switch(e.kind){case o.OBJECT_TYPE_DEFINITION:{let t=[e,...c];return new tp({name:u,description:null==(n=e.description)?void 0:n.value,interfaces:()=>x(t),fields:()=>_(t),astNode:e,extensionASTNodes:c})}case o.INTERFACE_TYPE_DEFINITION:{let t=[e,...c];return new tE({name:u,description:null==(r=e.description)?void 0:r.value,interfaces:()=>x(t),fields:()=>_(t),astNode:e,extensionASTNodes:c})}case o.ENUM_TYPE_DEFINITION:{let t=[e,...c];return new tN({name:u,description:null==(i=e.description)?void 0:i.value,values:A(t),astNode:e,extensionASTNodes:c})}case o.UNION_TYPE_DEFINITION:{let t=[e,...c];return new tb({name:u,description:null==(a=e.description)?void 0:a.value,types:()=>D(t),astNode:e,extensionASTNodes:c})}case o.SCALAR_TYPE_DEFINITION:return new tc({name:u,description:null==(s=e.description)?void 0:s.value,specifiedByURL:iu(e),astNode:e,extensionASTNodes:c});case o.INPUT_OBJECT_TYPE_DEFINITION:{let t=[e,...c];return new tI({name:u,description:null==(l=e.description)?void 0:l.value,fields:()=>S(t),astNode:e,extensionASTNodes:c})}}}(e)}let v={query:e.query&&E(e.query),mutation:e.mutation&&E(e.mutation),subscription:e.subscription&&E(e.subscription),...c&&N([c]),...N(h)};return{description:null==(r=c)||null==(i=r.description)?void 0:i.value,...v,types:Object.values(m),directives:[...e.directives.map(function(e){let t=e.toConfig();return new tB({...t,args:el(t.args,T)})}),...d.map(function(e){var t;return new tB({name:e.name.value,description:null==(t=e.description)?void 0:t.value,locations:e.locations.map(({value:e})=>e),isRepeatable:e.repeatable,args:O(e.arguments),astNode:e})})],extensions:Object.create(null),astNode:null!=(a=c)?a:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(h),assumeValid:null!=(s=null==n?void 0:n.assumeValid)&&s};function g(e){return eJ(e)?new e8(g(e.ofType)):eX(e)?new e5(g(e.ofType)):E(e)}function E(e){return m[e.name]}function b(e){return{...e,type:g(e.type),args:e.args&&el(e.args,T)}}function T(e){return{...e,type:g(e.type)}}function N(e){let t={};for(let r of e){var n;for(let e of null!=(n=r.operationTypes)?n:[])t[e.operation]=w(e.type)}return t}function w(e){var t;let n=e.name.value,r=null!=(t=is[n])?t:m[n];if(void 0===r)throw Error(`Unknown type: "${n}".`);return r}function I(e){return e.kind===o.LIST_TYPE?new e8(I(e.type)):e.kind===o.NON_NULL_TYPE?new e5(I(e.type)):w(e)}function _(e){let t=Object.create(null);for(let i of e){var n,r;for(let e of null!=(n=i.fields)?n:[])t[e.name.value]={type:I(e.type),description:null==(r=e.description)?void 0:r.value,args:O(e.arguments),deprecationReason:il(e),astNode:e}}return t}function O(e){let t=Object.create(null);for(let r of null!=e?e:[]){var n;let e=I(r.type);t[r.name.value]={type:e,description:null==(n=r.description)?void 0:n.value,defaultValue:re(r.defaultValue,e),deprecationReason:il(r),astNode:r}}return t}function S(e){let t=Object.create(null);for(let i of e){var n,r;for(let e of null!=(n=i.fields)?n:[]){let n=I(e.type);t[e.name.value]={type:n,description:null==(r=e.description)?void 0:r.value,defaultValue:re(e.defaultValue,n),deprecationReason:il(e),astNode:e}}}return t}function A(e){let t=Object.create(null);for(let i of e){var n,r;for(let e of null!=(n=i.values)?n:[])t[e.name.value]={description:null==(r=e.description)?void 0:r.value,deprecationReason:il(e),astNode:e}}return t}function x(e){return e.flatMap(e=>{var t,n;return null!=(t=null==(n=e.interfaces)?void 0:n.map(w))?t:[]})}function D(e){return e.flatMap(e=>{var t,n;return null!=(t=null==(n=e.types)?void 0:n.map(w))?t:[]})}}let is=ea([...tj,...ne],e=>e.name);function il(e){let t=ri(tY,e);return null==t?void 0:t.reason}function iu(e){let t=ri(tQ,e);return null==t?void 0:t.url}function ic(e,t){null!=e&&e.kind===o.DOCUMENT||f(!1,"Must provide valid Document AST."),(null==t?void 0:t.assumeValid)!==!0&&(null==t?void 0:t.assumeValidSDL)!==!0&&function(e){let t=rk(e);if(0!==t.length)throw Error(t.map(e=>e.message).join("\n\n"))}(e);let n=ia({description:void 0,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:!1},e,t);if(null==n.astNode)for(let e of n.types)switch(e.name){case"Query":n.query=e;break;case"Mutation":n.mutation=e;break;case"Subscription":n.subscription=e}let r=[...n.directives,...tJ.filter(e=>n.directives.every(t=>t.name!==e.name))];return new ni({...n,directives:r})}function ip(e,t){return ic(z(e,{noLocation:null==t?void 0:t.noLocation,allowLegacyFragmentVariables:null==t?void 0:t.allowLegacyFragmentVariables}),{assumeValidSDL:null==t?void 0:t.assumeValidSDL,assumeValid:null==t?void 0:t.assumeValid})}function id(e){var t,n,r;let i=e.toConfig(),o=es(iy(i.types),e=>e.name,function(e){if(eP(e)||nt(e))return e;if(eM(e)){let t=e.toConfig();return new tp({...t,interfaces:()=>c(t.interfaces),fields:()=>u(t.fields)})}if(eU(e)){let t=e.toConfig();return new tE({...t,interfaces:()=>c(t.interfaces),fields:()=>u(t.fields)})}if(eB(e)){let t=e.toConfig();return new tb({...t,types:()=>c(t.types)})}if(eG(e)){let t=e.toConfig();return new tN({...t,values:ih(t.values,e=>e)})}if(eY(e)){let t=e.toConfig();return new tI({...t,fields:()=>ih(t.fields,e=>({...e,type:a(e.type)}))})}y(!1,"Unexpected type: "+J(e))});return new ni({...i,types:Object.values(o),directives:iy(i.directives).map(function(e){let t=e.toConfig();return new tB({...t,locations:im(t.locations,e=>e),args:l(t.args)})}),query:(t=i.query)&&s(t),mutation:(n=i.mutation)&&s(n),subscription:(r=i.subscription)&&s(r)});function a(e){return eJ(e)?new e8(a(e.ofType)):eX(e)?new e5(a(e.ofType)):s(e)}function s(e){return o[e.name]}function l(e){return ih(e,e=>({...e,type:a(e.type)}))}function u(e){return ih(e,e=>({...e,type:a(e.type),args:e.args&&l(e.args)}))}function c(e){return iy(e).map(s)}}function ih(e,t){let n=Object.create(null);for(let r of Object.keys(e).sort(eu))n[r]=t(e[r]);return n}function iy(e){return im(e,e=>e.name)}
142function im(e,t){return e.slice().sort((e,n)=>eu(t(e),t(n)))}function iv(e){return ib(e,e=>!tW(e),iE)}function ig(e){return ib(e,tW,nt)}function iE(e){return!tM(e)&&!nt(e)}function ib(e,t,n){let r=e.getDirectives().filter(t),i=Object.values(e.getTypeMap()).filter(n);return[function(e){if(null==e.description&&function(e){let t=e.getQueryType();if(t&&"Query"!==t.name)return!1;let n=e.getMutationType();if(n&&"Mutation"!==n.name)return!1;let r=e.getSubscriptionType();return!r||"Subscription"===r.name}(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}`),iA(e)+`schema {
143${t.join("\n")}
144}`}(e),...r.map(e=>{var t;return iA(t=e)+"directive @"+t.name+i_(t.args)+(t.isRepeatable?" repeatable":"")+" on "+t.locations.join(" | ")}),...i.map(e=>iT(e))].filter(Boolean).join("\n\n")}function iT(e){var t,n,r;return eP(e)?iA(t=e)+`scalar ${t.name}`+function(e){if(null==e.specifiedByURL)return"";let t=eI({kind:o.STRING,value:e.specifiedByURL});return` @specifiedBy(url: ${t})`}(t):eM(e)?iA(n=e)+`type ${n.name}`+iN(n)+iw(n):eU(e)?iA(r=e)+`interface ${r.name}`+iN(r)+iw(r):eB(e)?function(e){let t=e.getTypes(),n=t.length?" = "+t.join(" | "):"";return iA(e)+"union "+e.name+n}(e):eG(e)?function(e){let t=e.getValues().map((e,t)=>iA(e,"  ",!t)+"  "+e.name+iS(e.deprecationReason));return iA(e)+`enum ${e.name}`+iI(t)}(e):eY(e)?function(e){let t=Object.values(e.getFields()).map((e,t)=>iA(e,"  ",!t)+"  "+iO(e));return iA(e)+`input ${e.name}`+iI(t)}(e):void y(!1,"Unexpected type: "+J(e))}function iN(e){let t=e.getInterfaces();return t.length?" implements "+t.map(e=>e.name).join(" & "):""}function iw(e){return iI(Object.values(e.getFields()).map((e,t)=>iA(e,"  ",!t)+"  "+e.name+i_(e.args,"  ")+": "+String(e.type)+iS(e.deprecationReason)))}function iI(e){return 0!==e.length?" {\n"+e.join("\n")+"\n}":""}function i_(e,t=""){return 0===e.length?"":e.every(e=>!e.description)?"("+e.map(iO).join(", ")+")":"(\n"+e.map((e,n)=>iA(e,"  "+t,!n)+"  "+t+iO(e)).join("\n")+"\n"+t+")"}function iO(e){let t=tz(e.defaultValue,e.type),n=e.name+": "+String(e.type);return t&&(n+=` = ${eI(t)}`),n+iS(e.deprecationReason)}function iS(e){if(null==e)return"";if(e!==tH){let t=eI({kind:o.STRING,value:e});return` @deprecated(reason: ${t})`}return" @deprecated"}function iA(e,t="",n=!0){let{description:r}=e;return null==r?"":(t&&!n?"\n"+t:t)+eI({kind:o.STRING,value:r,block:function(e){if(""===e)return!0;let t=!0,n=!1,r=!0,i=!1;for(let o=0;o<e.length;++o)switch(e.codePointAt(o)){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 11:case 12:case 14:case 15:case 13:return!1;case 10:if(t&&!i)return!1;i=!0,t=!0,n=!1;break;case 9:case 32:n||(n=t);break;default:r&&(r=n),t=!1}return!t&&(!r||!i)}(r)}).replace(/\n/g,"\n"+t)+"\n"}function ix(e){let t=[];for(let n of e)t.push(...n.definitions);return{kind:o.DOCUMENT,definitions:t}}function iD(e){let t=[],n=Object.create(null);for(let r of e.definitions)switch(r.kind){case o.OPERATION_DEFINITION:t.push(r);break;case o.FRAGMENT_DEFINITION:n[r.name.value]=iR(r.selectionSet)}let r=Object.create(null);for(let i of t){let t=new Set;for(let e of iR(i.selectionSet))!function e(t,n,r){if(!t.has(r)){t.add(r);let i=n[r];if(void 0!==i)for(let r of i)e(t,n,r)}}(t,n,e);r[i.name?i.name.value:""]={kind:o.DOCUMENT,definitions:e.definitions.filter(e=>e===i||e.kind===o.FRAGMENT_DEFINITION&&t.has(e.name.value))}}return r}function iR(e){let t=[];return eb(e,{FragmentSpread(e){t.push(e.name.value)}}),t}function iC(e){let t=W(e,X)?e:new X(e),n=t.body,r=new j(t),i="",o=!1;for(;r.advance().kind!==a.EOF;){let e=r.token,t=e.kind,s=!M(e.kind);o&&(s||e.kind===a.SPREAD)&&(i+=" ");let l=n.slice(e.start,e.end);t===a.BLOCK_STRING?i+=P(e.value,{minimize:!0}):i+=l,o=s}return i}function iL(e){let t=ik(e);if(t)throw t;return e}function ik(e){if("string"==typeof e||f(!1,"Expected name to be a string."),e.startsWith("__"))return new T(`Name "${e}" must not begin with "__", which is reserved by GraphQL introspection.`);try{eC(e)}catch(e){return e}}function iF(e,t){return ij(e,t).filter(e=>e.type in l)}function iP(e,t){return ij(e,t).filter(e=>e.type in u)}function ij(e,t){return[...function(e,t){let n=[],r=iV(Object.values(e.getTypeMap()),Object.values(t.getTypeMap()));for(let e of r.removed)n.push({type:l.TYPE_REMOVED,description:tM(e)?`Standard scalar ${e.name} was removed because it is not referenced anymore.`:`${e.name} was removed.`});for(let[e,t]of r.persisted)eG(e)&&eG(t)?n.push(...function(e,t){let n=[],r=iV(e.getValues(),t.getValues());for(let t of r.added)n.push({type:u.VALUE_ADDED_TO_ENUM,description:`${t.name} was added to enum type ${e.name}.`});for(let t of r.removed)n.push({type:l.VALUE_REMOVED_FROM_ENUM,description:`${t.name} was removed from enum type ${e.name}.`});return n}(e,t)):eB(e)&&eB(t)?n.push(...function(e,t){let n=[],r=iV(e.getTypes(),t.getTypes());for(let t of r.added)n.push({type:u.TYPE_ADDED_TO_UNION,description:`${t.name} was added to union type ${e.name}.`});for(let t of r.removed)n.push({type:l.TYPE_REMOVED_FROM_UNION,description:`${t.name} was removed from union type ${e.name}.`});return n}(e,t)):eY(e)&&eY(t)?n.push(...function(e,t){let n=[],r=iV(Object.values(e.getFields()),Object.values(t.getFields()));for(let t of r.added)tO(t)?n.push({type:l.REQUIRED_INPUT_FIELD_ADDED,description:`A required field ${t.name} on input type ${e.name} was added.`}):n.push({type:u.OPTIONAL_INPUT_FIELD_ADDED,description:`An optional field ${t.name} on input type ${e.name} was added.`});for(let t of r.removed)n.push({type:l.FIELD_REMOVED,description:`${e.name}.${t.name} was removed.`});for(let[t,i]of r.persisted)iM(t.type,i.type)||n.push({type:l.FIELD_CHANGED_KIND,description:`${e.name}.${t.name} changed type from ${String(t.type)} to ${String(i.type)}.`});return n}(e,t)):eM(e)&&eM(t)||eU(e)&&eU(t)?n.push(...function(e,t){let n=[],r=iV(Object.values(e.getFields()),Object.values(t.getFields()));for(let t of r.removed)n.push({type:l.FIELD_REMOVED,description:`${e.name}.${t.name} was removed.`});for(let[t,i]of r.persisted)n.push(...function(e,t,n){let r=[],i=iV(t.args,n.args);for(let n of i.removed)r.push({type:l.ARG_REMOVED,description:`${e.name}.${t.name} arg ${n.name} was removed.`});for(let[n,o]of i.persisted)if(iM(n.type,o.type)){if(void 0!==n.defaultValue)if(void 0===o.defaultValue)r.push({type:u.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${n.name} defaultValue was removed.`});else{let i=iU(n.defaultValue,n.type),a=iU(o.defaultValue,o.type);i!==a&&r.push({type:u.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${n.name} has changed defaultValue from ${i} to ${a}.`})}}else r.push({type:l.ARG_CHANGED_KIND,description:`${e.name}.${t.name} arg ${n.name} has changed type from ${String(n.type)} to ${String(o.type)}.`});
144for(let n of i.added)tg(n)?r.push({type:l.REQUIRED_ARG_ADDED,description:`A required arg ${n.name} on ${e.name}.${t.name} was added.`}):r.push({type:u.OPTIONAL_ARG_ADDED,description:`An optional arg ${n.name} on ${e.name}.${t.name} was added.`});return r}(e,t,i)),!function e(t,n){return eJ(t)?eJ(n)&&e(t.ofType,n.ofType)||eX(n)&&e(t,n.ofType):eX(t)?eX(n)&&e(t.ofType,n.ofType):to(n)&&t.name===n.name||eX(n)&&e(t,n.ofType)}(t.type,i.type)&&n.push({type:l.FIELD_CHANGED_KIND,description:`${e.name}.${t.name} changed type from ${String(t.type)} to ${String(i.type)}.`});return n}(e,t),...function(e,t){let n=[],r=iV(e.getInterfaces(),t.getInterfaces());for(let t of r.added)n.push({type:u.IMPLEMENTED_INTERFACE_ADDED,description:`${t.name} added to interfaces implemented by ${e.name}.`});for(let t of r.removed)n.push({type:l.IMPLEMENTED_INTERFACE_REMOVED,description:`${e.name} no longer implements interface ${t.name}.`});return n}(e,t)):e.constructor!==t.constructor&&n.push({type:l.TYPE_CHANGED_KIND,description:`${e.name} changed from ${i$(e)} to ${i$(t)}.`});return n}(e,t),...function(e,t){let n=[],r=iV(e.getDirectives(),t.getDirectives());for(let e of r.removed)n.push({type:l.DIRECTIVE_REMOVED,description:`${e.name} was removed.`});for(let[e,t]of r.persisted){let r=iV(e.args,t.args);for(let t of r.added)tg(t)&&n.push({type:l.REQUIRED_DIRECTIVE_ARG_ADDED,description:`A required arg ${t.name} on directive ${e.name} was added.`});for(let t of r.removed)n.push({type:l.DIRECTIVE_ARG_REMOVED,description:`${t.name} was removed from ${e.name}.`});for(let r of(e.isRepeatable&&!t.isRepeatable&&n.push({type:l.DIRECTIVE_REPEATABLE_REMOVED,description:`Repeatable flag was removed from ${e.name}.`}),e.locations))t.locations.includes(r)||n.push({type:l.DIRECTIVE_LOCATION_REMOVED,description:`${r} was removed from ${e.name}.`})}return n}(e,t)]}!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"}(l||(l={})),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"}(u||(u={}));function iM(e,t){return eJ(e)?eJ(t)&&iM(e.ofType,t.ofType):eX(e)?eX(t)&&iM(e.ofType,t.ofType)||!eX(t)&&iM(e.ofType,t):to(t)&&e.name===t.name}function i$(e){return eP(e)?"a Scalar type":eM(e)?"an Object type":eU(e)?"an Interface type":eB(e)?"a Union type":eG(e)?"an Enum type":eY(e)?"an Input type":void y(!1,"Unexpected type: "+J(e))}function iU(e,t){let n=tz(e,t);return null!=n||y(!1),eI(nB(n))}function iV(e,t){let n=[],r=[],i=[],o=ea(e,({name:e})=>e),a=ea(t,({name:e})=>e);for(let t of e){let e=a[t.name];void 0===e?r.push(t):i.push([t,e])}for(let e of t)void 0===o[e.name]&&n.push(e);return{added:n,persisted:i,removed:r}}},60037:e=>{"use strict";e.exports=function(){function e(e,t,n,r,i){return e<t||n<t?e>n?n+1:e+1:r===i?t:t+1}return function(t,n){if(t===n)return 0;if(t.length>n.length){var r,i,o,a,s,l,u,c,p,f,d,h,y=t;t=n,n=y}for(var m=t.length,v=n.length;m>0&&t.charCodeAt(m-1)===n.charCodeAt(v-1);)m--,v--;for(var g=0;g<m&&t.charCodeAt(g)===n.charCodeAt(g);)g++;if(m-=g,v-=g,0===m||v<3)return v;var E=0,b=[];for(r=0;r<m;r++)b.push(r+1),b.push(t.charCodeAt(g+r));for(var T=b.length-1;E<v-3;)for(r=0,p=n.charCodeAt(g+(i=E)),f=n.charCodeAt(g+(o=E+1)),d=n.charCodeAt(g+(a=E+2)),h=n.charCodeAt(g+(s=E+3)),l=E+=4;r<T;
144r+=2)i=e(u=b[r],i,o,p,c=b[r+1]),o=e(i,o,a,f,c),a=e(o,a,s,d,c),l=e(a,s,l,h,c),b[r]=l,s=a,a=o,o=i,i=u;for(;E<v;)for(r=0,p=n.charCodeAt(g+(i=E)),l=++E;r<T;r+=2)u=b[r],b[r]=l=e(u,i,l,p,b[r+1]),i=u;return l}}()},60172:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};t.__esModule=!0,i(n(86127),t)},61304:e=>{"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},63616:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.BatchInterceptor=void 0,t.BatchInterceptor=function(e){function t(n){var r=this;return t.symbol=Symbol(n.name),(r=e.call(this,t.symbol)||this).interceptors=n.interceptors,r}return i(t,e),t.prototype.setup=function(){var e,t,n=this.log.extend("setup");n("applying all %d interceptors...",this.interceptors.length);var r=function(e){n('applying "%s" interceptor...',e.constructor.name),e.a
144pply(),n("adding interceptor dispose subscription"),i.subscriptions.push(function(){return e.dispose()})},i=this;try{for(var a=o(this.interceptors),s=a.next();!s.done;s=a.next()){var l=s.value;r(l)}}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}},t.prototype.on=function(e,t){this.interceptors.forEach(function(n){n.on(e,t)})},t}(n(84610).Interceptor)},66175:e=>{"use strict";var t={foo:{}},n=Object;e.exports=function(){return({__proto__:t}).foo===t.foo&&!(({__proto__:null})instanceof n)}},67298:(e,t)=>{"use strict";function n(e,t){return void 0===t&&(t=Object),t&&"function"==typeof t.freeze?t.freeze(e):e}var r=n({HTML:"text/html",isHTML:function(e){return e===r.HTML},XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),i=n({HTML:"http://www.w3.org/1999/xhtml",isHTML:function(e){return e===i.HTML},SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"});t.assign=function(e,t){if(null===e||"object"!=typeof e)throw TypeError("target is not an object");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},t.find=function(e,t,n){if(void 0===n&&(n=Array.prototype),e&&"function"==typeof n.find)return n.find.call(e,t);for(var r=0;r<e.length;r++)if(Object.prototype.hasOwnProperty.call(e,r)){var i=e[r];if(t.call(void 0,i,r,e))return i}},t.freeze=n,t.MIME_TYPE=r,t.NAMESPACE=i},68357:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Emitter=void 0;let r=n(43157);class i{constructor(){this.events=new Map,this.maxListeners=i.defaultMaxListeners,this.hasWarnedAboutPotentialMemoryLeak=!1}static listenerCount(e,t){return e.listenerCount(t)}_emitInternalEvent(e,t,n){this.emit(e,t,n)}_getListeners(e){return this.events.get(e)||[]}_removeListener(e,t){let n=e.indexOf(t);return n>-1&&e.splice(n,1),[]}_wrapOnceListener(e,t){let n=(...r)=>{this.removeListener(e,n),t.apply(this,r)};return n}setMaxListeners(e){return this.maxListeners=e,this}getMaxListeners(){return this.maxListeners}eventNames(){return Array.from(this.events.keys())}emit(e,...t){let n=this._getListeners(e);return n.forEach(e=>{e.apply(this,t)}),n.length>0}addListener(e,t){this._emitInternalEvent("newListener",e,t);let n=this._getListeners(e).concat(t);return this.events.set(e,n),this.maxListeners>0&&this.listenerCount(e)>this.maxListeners&&!this.hasWarnedAboutPotentialMemoryLeak&&(this.hasWarnedAboutPotentialMemoryLeak=!0,console.warn(new r.MemoryLeakError(this,e,this.listenerCount(e)))),this}on(e,t){return this.addListener(e,t)}once(e,t){return this.addListener(e,this._wrapOnceListener(e,t))}prependListener(e,t){let n=this._getListeners(e);if(n.length>0){let r=[t].concat(n);this.events.set(e,r)}else this.events.set(e,n.concat(t));return this}prependOnceListener(e,t){return this.prependListener(e,this._wrapOnceListener(e,t))}removeListener(e,t){let n=this._getListeners(e);return n.length>0&&(this._removeListener(n,t),this.events.set(e,n),this._emitInternalEvent("removeListener",e,t)),this}off(e,t){return this.removeListener(e,t)}removeAllListeners(e){return e?this.events.delete(e):this.events.clear(),this}listeners(e){return Array.from(this._getListeners(e))}listenerCount(e){return this._getListeners(e).length}rawListeners(e){return this.listeners(e)}}t.Emitter=i,i.defaultMaxListeners=10},69259:(e,t,n)=>{var r=n(12399);t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;let n="color: "+this.color;t.splice(1,0,n,"color: inherit");let r=0,i=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(r++,"%c"===e&&(i=r))}),t.splice(i,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}return!e&&void 0!==r&&"env"in r&&(e=r.env.DEBUG),e},t.useColors=function(){return"undefined"!=typeof window&&!!window.process&&("renderer"===window.process.type||!!window.process.__nwjs)||!("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&
144("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=n(48380)(t);let{formatters:i}=e.exports;i.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},70868:(e,t,n)=>{"use strict";var r=n(27287)("%Object.getOwnPropertyDescriptor%",!0);if(r)try{r([],"length")}catch(e){r=null}e.exports=r},70997:e=>{"use strict";var t={decodeValues:!0,map:!1,silent:!1};function n(e){return"string"==typeof e&&!!e.trim()}function r(e,r){var i,o,a,s,l=e.split(";").filter(n),u=(i=l.shift(),o="",a="",(s=i.split("=")).length>1?(o=s.shift(),a=s.join("=")):a=i,{name:o,value:a}),c=u.name,p=u.value;r=r?Object.assign({},t,r):t;try{p=r.decodeValues?decodeURIComponent(p):p}catch(e){console.error("set-cookie-parser encountered an error while decoding a cookie with value '"+p+"'. Set options.decodeValues to false to disable this feature.",e)}var f={name:c,value:p};return l.forEach(function(e){var t=e.split("="),n=t.shift().trimLeft().toLowerCase(),r=t.join("=");"expires"===n?f.expires=new Date(r):"max-age"===n?f.maxAge=parseInt(r,10):"secure"===n?f.secure=!0:"httponly"===n?f.httpOnly=!0:"samesite"===n?f.sameSite=r:f[n]=r}),f}function i(e,i){if(i=i?Object.assign({},t,i):t,!e)if(!i.map)return[];else return{};if(e.headers&&e.headers["set-cookie"])e=e.headers["set-cookie"];else if(e.headers){var o=e.headers[Object.keys(e.headers).find(function(e){return"set-cookie"===e.toLowerCase()})];o||!e.headers.cookie||i.silent||console.warn("Warning: set-cookie-parser appears to have been called on a request object. It is designed to parse Set-Cookie headers from responses, not Cookie headers from requests. Set the option {silent: true} to suppress this warning."),e=o}return(Array.isArray(e)||(e=[e]),(i=i?Object.assign({},t,i):t).map)?e.filter(n).reduce(function(e,t){var n=r(t,i);return e[n.name]=n,e},{}):e.filter(n).map(function(e){return r(e,i)})}e.exports=i,e.exports.parse=i,e.exports.parseString=r,e.exports.splitCookiesString=function(e){if(Array.isArray(e))return e;if("string"!=typeof e)return[];var t,n,r,i,o,a=[],s=0;function l(){for(;s<e.length&&/\s/.test(e.charAt(s));)s+=1;return s<e.length}for(;s<e.length;){for(t=s,o=!1;l();)if(","===(n=e.charAt(s))){for(r=s,s+=1,l(),i=s;s<e.length&&"="!==(n=e.charAt(s))&&";"!==n&&","!==n;)s+=1;s<e.length&&"="===e.charAt(s)?(o=!0,s=i,a.push(e.substring(t,r)),t=s):s=r+1}else s+=1;(!o||s>=e.length)&&a.push(e.substring(t,e.length))}return a}},71347:e=>{"use strict";var t=Object.prototype.toString,n=Math.max,r=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var i=0;i<t.length;i+=1)n[i+e.length]=t[i];return n},i=function(e,t){for(var n=[],r=t||0,i=0;r<e.length;r+=1,i+=1)n[i]=e[r];return n},o=function(e,t){for(var n="",r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n};e.exports=function(e){var a,s=this;if("function"!=typeof s||"[object Function]"!==t.apply(s))throw TypeError("Function.prototype.bind called on incompatible "+s);
144for(var l=i(arguments,1),u=n(0,s.length-l.length),c=[],p=0;p<u;p++)c[p]="$"+p;if(a=Function("binder","return function ("+o(c,",")+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof a){var t=s.apply(this,r(l,arguments));return Object(t)===t?t:this}return s.apply(e,r(l,arguments))}),s.prototype){var f=function(){};f.prototype=s.prototype,a.prototype=new f,f.prototype=null}return a}},73910:e=>{"use strict";var t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.prototype.hasOwnProperty,o={};((e,n)=>{for(var r in n)t(e,r,{get:n[r],enumerable:!0})})(o,{InvariantError:()=>l,format:()=>s,invariant:()=>u}),e.exports=((e,o,a,s)=>{if(o&&"object"==typeof o||"function"==typeof o)for(let l of r(o))i.call(e,l)||l===a||t(e,l,{get:()=>o[l],enumerable:!(s=n(o,l))||s.enumerable});return e})(t({},"__esModule",{value:!0}),o);var a=/(%?)(%([sdjo]))/g;function s(e,...t){if(0===t.length)return e;let n=0,r=e.replace(a,(e,r,i,o)=>{let a=function(e,t){switch(t){case"s":return e;case"d":case"i":return Number(e);case"j":return JSON.stringify(e);case"o":{if("string"==typeof e)return e;let t=JSON.stringify(e);if("{}"===t||"[]"===t||/^\[object .+?\]$/.test(t))return e;return t}}}(t[n],o);return r?e:(n++,a)});return n<t.length&&(r+=` ${t.slice(n).join(" ")}`),r=r.replace(/%{2,2}/g,"%")}var l=class extends Error{constructor(e,...t){super(e),this.message=e,this.name="Invariant Violation",this.message=s(e,...t),function(e){if(!e.stack)return;let t=e.stack.split("\n");t.splice(1,2),e.stack=t.join("\n")}(this)}},u=(e,t,...n)=>{if(!e)throw new l(t,...n)};u.as=(e,t,n,...r)=>{if(!t)throw null!=e.prototype.name?new e(s(n,r)):e(s(n,r))}},76777:(e,t,n)=>{"use strict";var r=n(80391)(),i=n(27287),o=r&&i("%Object.defineProperty%",!0);if(o)try{o({},"a",{value:1})}catch(e){o=!1}var a=i("%SyntaxError%"),s=i("%TypeError%"),l=n(70868);e.exports=function(e,t,n){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new s("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new s("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new s("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new s("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new s("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new s("`loose`, if provided, must be a boolean");var r=arguments.length>3?arguments[3]:null,i=arguments.length>4?arguments[4]:null,u=arguments.length>5?arguments[5]:null,c=arguments.length>6&&arguments[6],p=!!l&&l(e,t);if(o)o(e,t,{configurable:null===u&&p?p.configurable:!u,enumerable:null===r&&p?p.enumerable:!r,value:n,writable:null===i&&p?p.writable:!i});else if(!c&&(r||i||u))throw new a("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");else e[t]=n}},77789:(e,t)=>
144{"use strict";t.parse=function(e,t){if("string"!=typeof e)throw TypeError("argument str must be a string");for(var r={},i=e.split(";"),o=(t||{}).decode||n,a=0;a<i.length;a++){var s=i[a],l=s.indexOf("=");if(!(l<0)){var u=s.substring(0,l).trim();if(void 0==r[u]){var c=s.substring(l+1,s.length).trim();'"'===c[0]&&(c=c.slice(1,-1)),r[u]=function(e,t){try{return t(e)}catch(t){return e}}(c,o)}}}return r},t.serialize=function(e,t,n){var o=n||{},a=o.encode||r;if("function"!=typeof a)throw TypeError("option encode is invalid");if(!i.test(e))throw TypeError("argument name is invalid");var s=a(t);if(s&&!i.test(s))throw TypeError("argument val is invalid");var l=e+"="+s;if(null!=o.maxAge){var u=o.maxAge-0;if(isNaN(u)||!isFinite(u))throw TypeError("option maxAge is invalid");l+="; Max-Age="+Math.floor(u)}if(o.domain){if(!i.test(o.domain))throw TypeError("option domain is invalid");l+="; Domain="+o.domain}if(o.path){if(!i.test(o.path))throw TypeError("option path is invalid");l+="; Path="+o.path}if(o.expires){if("function"!=typeof o.expires.toUTCString)throw TypeError("option expires is invali
144d");l+="; Expires="+o.expires.toUTCString()}if(o.httpOnly&&(l+="; HttpOnly"),o.secure&&(l+="; Secure"),o.sameSite)switch("string"==typeof o.sameSite?o.sameSite.toLowerCase():o.sameSite){case!0:case"strict":l+="; SameSite=Strict";break;case"lax":l+="; SameSite=Lax";break;case"none":l+="; SameSite=None";break;default:throw TypeError("option sameSite is invalid")}return l};var n=decodeURIComponent,r=encodeURIComponent,i=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/},79837:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getCleanUrl=void 0,t.getCleanUrl=function(e,t){return void 0===t&&(t=!0),[t&&e.origin,e.pathname].filter(Boolean).join("")}},80391:(e,t,n)=>{"use strict";var r=n(27287)("%Object.defineProperty%",!0),i=function(){if(r)try{return r({},"a",{value:1}),!0}catch(e){}return!1};i.hasArrayLengthDefineBug=function(){if(!i())return null;try{return 1!==r([],"length",{value:1}).length}catch(e){return!0}},e.exports=i},80770:(e,t,n)=>{var r=n(67298),i=n(29586),o=n(15897),a=n(87222),s=i.DOMImplementation,l=r.NAMESPACE,u=a.ParseError,c=a.XMLReader;function p(e){return e.replace(/\r[\n\u0085]/g,"\n").replace(/[\r\u0085\u2028]/g,"\n")}function f(e){this.options=e||{locator:{}}}function d(){this.cdata=!1}function h(e,t){t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber}function y(e){if(e)return"\n@"+(e.systemId||"")+"#[line:"+e.lineNumber+",col:"+e.columnNumber+"]"}function m(e,t,n){return"string"==typeof e?e.substr(t,n):e.length>=t+n||t?new java.lang.String(e,t,n)+"":e}function v(e,t){e.currentElement?e.currentElement.appendChild(t):e.doc.appendChild(t)}f.prototype.parseFromString=function(e,t){var n=this.options,r=new c,i=n.domBuilder||new d,a=n.errorHandler,s=n.locator,u=n.xmlns||{},f=/\/x?html?$/.test(t),h=f?o.HTML_ENTITIES:o.XML_ENTITIES;s&&i.setDocumentLocator(s),r.errorHandler=function(e,t,n){if(!e){if(t instanceof d)return t;e=t}var r={},i=e instanceof Function;function o(t){var o=e[t];!o&&i&&(o=2==e.length?function(n){e(t,n)}:e),r[t]=o&&function(e){o("[xmldom "+t+"]	"+e+y(n))}||function(){}}return n=n||{},o("warning"),o("error"),o("fatalError"),r}(a,i,s),r.domBuilder=n.domBuilder||i,f&&(u[""]=l.HTML),u.xml=u.xml||l.XML;var m=n.normalizeLineEndings||p;return e&&"string"==typeof e?r.parse(m(e),u,h):r.errorHandler.error("invalid doc source"),i.doc},d.prototype={startDocument:function(){this.doc=new s().createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(e,t,n,r){var i=this.doc,o=i.createElementNS(e,n||t),a=r.length;v(this,o),this.currentElement=o,this.locator&&h(this.locator,o);for(var s=0;s<a;s++){var e=r.getURI(s),l=r.getValue(s),n=r.getQName(s),u=i.createAttributeNS(e,n);this.locator&&h(r.getLocator(s),u),u.value=u.nodeValue=l,o.setAttributeNode(u)}},endElement:function(e,t,n){var r=this.currentElement;r.tagName,this.currentElement=r.parentNode},startPrefixMapping:function(e,t){},endPrefixMapping:function(e){},processingInstruction:function(e,t){var n=this.doc.createProcessingInstruction(e,t);this.locator&&h(this.locator,n),v(this,n)},ignorableWhitespace:function(e,t,n){},characters:function(e,t,n){if(e=m.apply(this,arguments)){if(this.cdata)var r=this.doc.createCDATASection(e);else var r=this.doc.createTextNode(e);this.currentElement?this.currentElement.appendChild(r):/^\s*$/.test(e)&&this.doc.appendChild(r),this.locator&&h(this.locator,r)}},skippedEntity:function(e){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(e){(this.locator=e)&&(e.lineNumber=0)},comment:function(e,t,n){e=m.apply(this,arguments);var r=this.doc.createComment(e);this.locator&&h(this.locator,r),v(this,r)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(e,t,n){var r=this.doc.implementation;if(r&&r.createDocumentType){var i=r.createDocumentType(e,t,n);this.locator&&h(this.locator,i),v(this,i),this.doc.doctype=i}},warning:function(e){console.warn("[xmldom warning]	"+e,y(this.locator))},error:function(e){console.error("[xmldom error]	"+e,y(this.locator))},fatalError:function(e){throw new u(e,this.locator)}},"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(e){d.prototype[e]=function(){return null}}),t.DOMParser=f},81368:(e,t,n)=>{"use strict";var r=n(27287),i=n(92040),o=i(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&o(e,".prototype.")>-1?i(n):n}},82900:e=>{e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},83428:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]}
144)instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ProgressEventPolyfill=void 0,t.ProgressEventPolyfill=function(e){function t(t,n){var r=e.call(this,t)||this;return r.lengthComputable=(null==n?void 0:n.lengthComputable)||!1,r.composed=(null==n?void 0:n.composed)||!1,r.loaded=(null==n?void 0:n.loaded)||0,r.total=(null==n?void 0:n.total)||0,r}return i(t,e),t}(n(48149).EventPolyfill)},84078:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseJson=void 0,t.parseJson=function(e){try{return JSON.parse(e)}catch(e){return null}}},84610:function(e,t,n){"use strict";var r,i,o=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.Interceptor=t.InterceptorReadyState=t.deleteGlobalSymbol=t.getGlobalSymbol=void 0;var a=n(69259),s=n(56709),l=n(9957);function u(e){return globalThis[e]||void 0}function c(e){delete globalThis[e]}t.getGlobalSymbol=u,t.deleteGlobalSymbol=c,(r=i=t.InterceptorReadyState||(t.InterceptorReadyState={})).IDLE="IDLE",r.APPLYING="APPLYING",r.APPLIED="APPLIED",r.DISPOSING="DISPOSING",r.DISPOSED="DISPOSED",t.Interceptor=function(){function e(e){this.symbol=e,this.readyState=i.IDLE,this.emitter=new s.AsyncEventEmitter,this.subscriptions=[],this.log=a.debug(e.description),this.emitter.setMaxListeners(0),this.log("constructing the interceptor...")}return e.prototype.checkEnvironment=function(){return!0},e.prototype.apply=function(){var e=this,t=this.log.extend("apply");if(t("applying the interceptor..."),this.readyState===i.APPLIED)return void t("intercepted already applied!");if(!this.checkEnvironment())return void t("the interceptor cannot be applied in this environment!");this.readyState=i.APPLYING,this.emitter.activate(),t("activated the emiter!",this.emitter.readyState);var n=this.getInstance();if(n){t("found a running instance, reusing..."),this.on=function(r,i){t('proxying the "%s" listener',r),n.emitter.addListener(r,i),e.subscriptions.push(function(){n.emitter.removeListener(r,i),t('removed proxied "%s" listener!',r)})},l.nextTick(function(){e.readyState=i.APPLIED});return}t("no running instance found, setting up a new instance..."),this.setup(),this.setInstance(),l.nextTick(function(){e.readyState=i.APPLIED})},e.prototype.setup=function(){},e.prototype.on=function(e,t){var n=this.log.extend("on");if(this.readyState===i.DISPOSING||this.readyState===i.DISPOSED)return void n("cannot listen to events, already disposed!");n('adding "%s" event listener:',e,t.name),this.emitter.on(e,t)},e.prototype.dispose=function(){var e,t,n=this,r=this.log.extend("dispose");if(this.readyState===i.DISPOSED)return void r("cannot dispose, already disposed!");if(r("disposing the interceptor..."),this.readyState=i.DISPOSING,!this.getInstance())return void r("no interceptors running, skipping dispose...");if(this.clearInstance(),r("global symbol deleted:",u(this.symbol)),this.subscriptions.length>0){r("disposing of %d subscriptions...",this.subscriptions.length);try{for(var a=o(this.subscriptions),s=a.next();!s.done;s=a.next())(0,s.value)()}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}this.subscriptions=[],r("disposed of all subscriptions!",this.subscriptions.length)}this.emitter.deactivate(),r("destroyed the listener!"),l.nextTick(function(){n.readyState=i.DISPOSED})},e.prototype.getInstance=function(){var e,t=u(this.symbol);return this.log("retrieved global instance:",null==(e=null==t?void 0:t.constructor)?void 0:e.name),t},e.prototype.setInstance=function(){var e;e=this.symbol,globalThis[e]=this,this.log("set global instance!",this.symbol.description)},e.prototype.clearInstance=function(){c(this.symbol),this.log("cleared global instance!",this.symbol.description)},e}()},86127:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]}
144)instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r};t.__esModule=!0,t.StrictEventEmitter=void 0,t.StrictEventEmitter=function(e){function t(){return e.call(this)||this}return i(t,e),t.prototype.on=function(t,n){return e.prototype.on.call(this,t.toString(),n)},t.prototype.once=function(t,n){return e.prototype.once.call(this,t.toString(),n)},t.prototype.off=function(t,n){return e.prototype.off.call(this,t.toString(),n)},t.prototype.emit=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return e.prototype.emit.apply(this,o([t.toString()],n))},t.prototype.addListener=function(t,n){return e.prototype.addListener.call(this,t.toString(),n)},t.prototype.prependListener=function(t,n){return e.prototype.prependListener.call(this,t.toString(),n)},t.prototype.prependOnceListener=function(t,n){return e.prototype.prependOnceListener.call(this,t.toString(),n)},t.prototype.removeListener=function(t,n){return e.prototype.removeListener.call(this,t.toString(),n)},t.prototype.removeAllListeners=function(t){return t?e.prototype.removeAllListeners.call(this,t.toString()):e.prototype.removeAllListeners.call(this)},t.prototype.eventNames=function(){return e.prototype.eventNames.call(this)},t.prototype.listeners=function(t){return e.prototype.listeners.call(this,t.toString())},t.prototype.rawListeners=function(t){return e.prototype.rawListeners.call(this,t.toString())},t.prototype.listenerCount=function(t){return e.prototype.listenerCount.call(this,t.toString())},t}(n(93614).EventEmitter)},86657:(e,t,n)=>{"use strict";var r=n(13376),i=n(48211),o=n(92040),a=n(81368),s=n(70868),l=a("Object.prototype.toString"),u=n(25971)(),c="undefined"==typeof globalThis?n.g:globalThis,p=i(),f=a("String.prototype.slice"),d=Object.getPrototypeOf,h=a("Array.prototype.indexOf",!0)||function(e,t){for(var n=0;n<e.length;n+=1)if(e[n]===t)return n;return -1},y={__proto__:null};u&&s&&d?r(p,function(e){var t=new c[e];if(Symbol.toStringTag in t){var n=d(t),r=s(n,Symbol.toStringTag);r||(r=s(d(n),Symbol.toStringTag)),y["$"+e]=o(r.get)}}):r(p,function(e){var t=new c[e],n=t.slice||t.set;n&&(y["$"+e]=o(n))});var m=function(e){var t=!1;return r(y,function(n,r){if(!t)try{"$"+n(e)===r&&(t=f(r,1))}catch(e){}}),t},v=function(e){var t=!1;return r(y,function(n,r){if(!t)try{n(e),t=f(r,1)}catch(e){}}),t};e.exports=function(e){if(!e||"object"!=typeof e)return!1;if(!u){var t=f(l(e),8,-1);return h(p,t)>-1?t:"Object"===t&&v(e)}return s?m(e):null}},87222:(e,t,n)=>{var r=n(67298).NAMESPACE,i=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,o=RegExp("[\\-\\.0-9"+i.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),a=RegExp("^"+i.source+o.source+"*(?::"+i.source+o.source+"*)?$");function s(e,t){this.message=e,this.locator=t,Error.captureStackTrace&&Error.captureStackTrace(this,s)}function l(){}function u(e,t){return t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber,t}function c(e,t,n){for(var i=e.tagName,o=null,a=e.length;a--;){var s=e[a],l=s.qName,u=s.value,c=l.indexOf(":");if(c>0)var f=s.prefix=l.slice(0,c),d=l.slice(c+1),h="xmlns"===f&&d;else d=l,f=null,h="xmlns"===l&&"";s.localName=d,!1!==h&&(null==o&&(o={},p(n,n={})),n[h]=o[h]=u,s.uri=r.XMLNS,t.startPrefixMapping(h,u))}for(var a=e.length;a--;){var f=(s=e[a]).prefix;f&&("xml"===f&&(s.uri=r.XML),"xmlns"!==f&&(s.uri=n[f||""]))}var c=i.indexOf(":");c>0?(f=e.prefix=i.slice(0,c),d=e.localName=i.slice(c+1)):(f=null,d=e.localName=i);var y=e.uri=n[f||""];if(t.startElement(y,d,i,e),!e.closed)return e.currentNSMap=n,e.localNSMap=o,!0;if(t.endElement(y,d,i),o)for(f in o)Object.prototype.hasOwnProperty.call(o,f)&&t.endPrefixMapping(f)}function p(e,t){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}function f(){this.attributeNames={}}s.prototype=Error(),s.prototype.name=s.name,l.prototype={parse:function(e,t,n){var i=this.domBuilder;i.startDocument(),p(t,t={}),function(e,t,n,i,o){function a(e){var t,r=e.slice(1,-1);return Object.hasOwnProperty.call(n,r)?n[r]:"#"===r.charAt(0)?(t=parseInt(r.substr(1).replace("x","0x")))>65535?String.fromCharCode(55296+((t-=65536)>>
14410),56320+(1023&t)):String.fromCharCode(t):(o.error("entity not found:"+e),e)}function l(t){if(t>E){var n=e.substring(E,t).replace(/&#?\w+;/g,a);m&&p(E),i.characters(n,0,t-E),E=t}}function p(t,n){for(;t>=h&&(n=y.exec(e));)h=(d=n.index)+n[0].length,m.lineNumber++;m.columnNumber=t-d+1}for(var d=0,h=0,y=/.*(?:\r\n?|\n)|.*$/g,m=i.locator,v=[{currentNSMap:t}],g={},E=0;;){try{var b=e.indexOf("<",E);if(b<0){if(!e.substr(E).match(/^\s*$/)){var T=i.doc,N=T.createTextNode(e.substr(E));T.appendChild(N),i.currentElement=N}return}switch(b>E&&l(b),e.charAt(b+1)){case"/":var w=e.indexOf(">",b+3),I=e.substring(b+2,w).replace(/[ \t\n\r]+$/g,""),_=v.pop();w<0?(I=e.substring(b+2).replace(/[\s<].*/,""),o.error("end tag name: "+I+" is not complete:"+_.tagName),w=b+1+I.length):I.match(/\s</)&&(I=I.replace(/[\s<].*/,""),o.error("end tag name: "+I+" maybe not complete"),w=b+1+I.length);var O=_.localNSMap,S=_.tagName==I;if(S||_.tagName&&_.tagName.toLowerCase()==I.toLowerCase()){if(i.endElement(_.uri,_.localName,I),O)for(var A in O)Object.prototype.hasOwnProperty.call(O,A)&&i.endPrefixMapping(A);S||o.fatalError("end tag name: "+I+" is not match the current start tagName:"+_.tagName)}else v.push(_);w++;break;case"?":m&&p(b),w=function(e,t,n){var r=e.indexOf("?>",t);if(r){var i=e.substring(t,r).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);if(i)return i[0].length,n.processingInstruction(i[1],i[2]),r+2}return -1}(e,b,i);break;case"!":m&&p(b),w=function(e,t,n,r){if("-"===e.charAt(t+2)){if("-"===e.charAt(t+3)){var i=e.indexOf("--\x3e",t+4);if(i>t)return n.comment(e,t+4,i-t-4),i+3;r.error("Unclosed comment")}}else{if("CDATA["==e.substr(t+3,6)){var i=e.indexOf("]]>",t+9);return n.startCDATA(),n.characters(e,t+9,i-t-9),n.endCDATA(),i+3}var o=function(e,t){var n,r=[],i=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(i.lastIndex=t,i.exec(e);n=i.exec(e);)if(r.push(n),n[1])return r}(e,t),a=o.length;if(a>1&&/!doctype/i.test(o[0][0])){var s=o[1][0],l=!1,u=!1;a>3&&(/^public$/i.test(o[2][0])?(l=o[3][0],u=a>4&&o[4][0]):/^system$/i.test(o[2][0])&&(u=o[3][0]));var c=o[a-1];return n.startDTD(s,l,u),n.endDTD(),c.index+c[0].length}}return -1}(e,b,i,o);break;default:m&&p(b);var x=new f,D=v[v.length-1].currentNSMap,w=function(e,t,n,i,o,a){function s(e,t,r){n.attributeNames.hasOwnProperty(e)&&a.fatalError("Attribute "+e+" redefined"),n.addValue(e,t.replace(/[\t\n\r]/g," ").replace(/&#?\w+;/g,o),r)}for(var l,u,c=++t,p=0;;){var f=e.charAt(c);switch(f){case"=":if(1===p)l=e.slice(t,c),p=3;else if(2===p)p=3;else throw Error("attribute equal must after attrName");break;case"'":case'"':if(3===p||1===p)if(1===p&&(a.warning('attribute value must after "="'),l=e.slice(t,c)),t=c+1,(c=e.indexOf(f,t))>0)s(l,u=e.slice(t,c),t-1),p=5;else throw Error("attribute value no end '"+f+"' match");else if(4==p)s(l,u=e.slice(t,c),t),a.warning('attribute "'+l+'" missed start quot('+f+")!!"),t=c+1,p=5;else throw Error('attribute value must after "="');break;case"/":switch(p){case 0:n.setTagName(e.slice(t,c));case 5:case 6:case 7:p=7,n.closed=!0;case 4:case 1:case 2:break;default:throw Error("attribute invalid close char('/')")}break;case"":return a.error("unexpected end of input"),0==p&&n.setTagName(e.slice(t,c)),c;case">":switch(p){case 0:n.setTagName(e.slice(t,c));case 5:case 6:case 7:break;case 4:case 1:"/"===(u=e.slice(t,c)).slice(-1)&&(n.closed=!0,u=u.slice(0,-1));case 2:2===p&&(u=l),4==p?(a.warning('attribute "'+u+'" missed quot(")!'),s(l,u,t)):(r.isHTML(i[""])&&u.match(/^(?:disabled|checked|selected)$/i)||a.warning('attribute "'+u+'" missed value!! "'+u+'" instead!!'),s(u,u,t));break;case 3:throw Error("attribute value missed!!")}return c;case"\x80":f=" ";default:if(f<=" ")switch(p){case 0:n.setTagName(e.slice(t,c)),p=6;break;case 1:l=e.slice(t,c),p=2;break;case 4:var u=e.slice(t,c);a.warning('attribute "'+u+'" missed quot(")!!'),s(l,u,t);case 5:p=6}else switch(p){case 2:n.tagName,r.isHTML(i[""])&&l.match(/^(?:disabled|checked|selected)$/i)||a.warning('attribute "'+l+'" missed value!! "'+l+'" instead2!!'),s(l,l,t),t=c,p=1;break;case 5:a.warning('attribute space is required"'+l+'"!!');case 6:p=1,t=c;break;case 3:p=4,t=c;break;case 7:throw Error("elements closed character '/' and '>' must be connected to")}}c++}}(e,b,x,D,a,o),R=x.length;if(!x.closed&&function(e,t,n,r){var i=r[n];return null==i&&((i=e.lastIndexOf("</"+n+">"))<t&&(i=e.lastIndexOf("</"+n)),r[n]=i),i<t}(e,w,x.tagName,g)&&(x.closed=!0,n.nbsp||o.warning("unclosed xml attribute")),m&&R){for(var C=u(m,{}),L=0;L<R;L++){var k=x[L];p(k.offset),k.locator=u(m,{})}i.locator=C,c(x,i,D)&&v.push(x),i.locator=m}else c(x,i,D)&&v.push(x);r.isHTML(x.uri)&&!x.closed?w=function(e,t,n,r,i){if(/^(?:script|textarea)$/i.test(n)){var o=e.indexOf("</"+n+">",t),a=e.substring(t+1,o);if(/[&<]/.test(a))return/^script$/i.test(n)||(a=a.replace(/&#?\w+;/g,r)),i.characters(a,0,a.length),o}return t+1}(e,w,x.tagName,a,i):w++}}catch(e){if(e instanceof s)throw e;o.error("element parse error: "+e),w=-1}w>E?E=w:l(Math.max(b,E)+1)}}(e,t,n,i,this.errorHandler),i.endDocument()}},f.prototype={setTagName:function(e){if(!a.test(e))throw Error("invalid tagName:"+e);this.tagName=e},addValue:function(e,t,n){if(!a.test(e))throw Error("invalid attribute:"+e);this.attributeNames[e]=this.length,this[this.length++]={qName:e,value:t,offset:n}},length:0,getLocalName:function(e){return this[e].localName},getLocator:function(e){return this[e].locator},getQName:function(e){return this[e].qName},getURI:function(e){return this[e].uri},getValue:function(e){return this[e].value}},t.XMLReader=l,t.ParseError=s},87617:e=>{"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t||"[object Symbol]"!==Object.prototype.toString.call(t)||"[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},92040:(e,t,n)=>{"use strict";var r=n(38763),i=n(27287),o=n(28374),a=i("%TypeError%"),s=i("%Function.prototype.apply%"),l=i("%Function.prototype.call%"),u=i("%Reflect.apply%",!0)||r.call(l,s),c=i("%Object.defineProperty%",!0),p=i("%Math.max%");if(c)try{c({},"a",{value:1})}catch(e){c=null}e.exports=function(e){if("function"!=typeof e)throw new a("a function is required");var t=u(r,l,arguments);return o(t,1+p(0,e.length-(arguments.length-1)),!0)};var f=function(){return u(r,s,arguments)};c?c(e.exports,"apply",{value:f}):e.exports.apply=f},93507:(e,t)=>{"use strict";
144Object.defineProperty(t,"__esModule",{value:!0}),t.bufferFrom=void 0,t.bufferFrom=function(e){var t=encodeURIComponent(e).replace(/%([0-9A-F]{2})/g,function(e,t){return String.fromCharCode("0x"+t)}),n=new Uint8Array(t.length);return Array.prototype.forEach.call(t,function(e,t){n[t]=e.charCodeAt(0)}),n}},93614:e=>{"use strict";var t,n="object"==typeof Reflect?Reflect:null,r=n&&"function"==typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var i=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,e.exports.once=function(e,t){return new Promise(function(n,r){var i,o,a;function s(n){e.removeListener(t,l),r(n)}function l(){"function"==typeof e.removeListener&&e.removeListener("error",s),n([].slice.call(arguments))}y(e,t,l,{once:!0}),"error"!==t&&(i=e,o=s,a={once:!0},"function"==typeof i.on&&y(i,"error",o,a))})},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var a=10;function s(e){if("function"!=typeof e)throw TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function l(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function u(e,t,n,r){if(s(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),a=o[t]),void 0===a)a=o[t]=n,++e._eventsCount;else if("function"==typeof a?a=o[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(i=l(e))>0&&a.length>i&&!a.warned){a.warned=!0;var i,o,a,u=Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=a.length,console&&console.warn&&console.warn(u)}return e}function c(){if(!this.fired)return(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0==arguments.length)?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=c.bind(r);return i.listener=n,r.wrapFn=i,i}function f(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(i):h(i,i.length)}function d(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function h(e,t){for(var n=Array(t),r=0;r<t;++r)n[r]=e[r];return n}function y(e,t,n,r){if("function"==typeof e.on)r.once?e.once(t,n):e.on(t,n);else if("function"==typeof e.addEventListener)e.addEventListener(t,function i(o){r.once&&e.removeEventListener(t,i),n(o)});else throw TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e)}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return a}
144,set:function(e){if("number"!=typeof e||e<0||i(e))throw RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");a=e}}),o.init=function(){(void 0===this._events||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||i(e))throw RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},o.prototype.getMaxListeners=function(){return l(this)},o.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var i="error"===e,o=this._events;if(void 0!==o)i=i&&void 0===o.error;else if(!i)return!1;if(i){if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var a,s=Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var l=o[e];if(void 0===l)return!1;if("function"==typeof l)r(l,this,t);else for(var u=l.length,c=h(l,u),n=0;n<u;++n)r(c[n],this,t);return!0},o.prototype.addListener=function(e,t){return u(this,e,t,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(e,t){return u(this,e,t,!0)},o.prototype.once=function(e,t){return s(t),this.on(e,p(this,e,t)),this},o.prototype.prependOnceListener=function(e,t){return s(t),this.prependListener(e,p(this,e,t)),this},o.prototype.removeListener=function(e,t){var n,r,i,o,a;if(s(t),void 0===(r=this._events)||void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(i=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){a=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,i),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,a||t)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0==arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0==arguments.length){var i,o=Object.keys(n);for(r=0;r<o.length;++r)"removeListener"!==(i=o[r])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},o.prototype.listeners=function(e){return f(this,e,!0)},o.prototype.rawListeners=function(e){return f(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):d.call(e,t)},o.prototype.listenerCount=d,o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},94883:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createEvent=void 0;var r=n(48149),i=n(83428),o="undefined"!=typeof ProgressEvent;t.createEvent=function(e,t,n){var a=o?ProgressEvent:i.ProgressEventPolyfill;return["error","progress","loadstart","loadend","load","timeout","abort"].includes(t)?new a(t,{lengthComputable:!0,loaded:(null==n?void 0:n.loaded)||0,total:(null==n?void 0:n.total)||0}):new r.EventPolyfill(t,{target:e,currentTarget:e})}},96362:(e,t,n)=>{var r=n(12399),i=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++)n[t[r]]=Object.getOwnPropertyDescriptor(e,t[r]);return n},o=/%[sdj%]/g;t.format=function(e){if(!E(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(u(arguments[n]));return t.join(" ")}for(var n=1,r=arguments,i=r.length,a=String(e).replace(o,function(e){if("%%"===e)return"%";if(n>=i)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}}),s=r[n];n<i;s=r[++n])v(s)||!N(s)?a+=" "+s:a+=" "+u(s);return a},t.deprecate=function(e,n){if(void 0!==r&&!0===r.noDeprecation)return e;if(void 0===r)return function(){return t.deprecate(e,n).apply(this,arguments)};var i=!1;return function(){if(!i){if(r.throwDeprecation)throw Error(n);r.traceDeprecation?console.trace(n):console.error(n),i=!0}return e.apply(this,arguments)}};var a={},s=/^$/;if(r.env.NODE_DEBUG){var l=r.env.NODE_DEBUG;s=RegExp("^"+(l=l.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase())+"$","i")}function u(e,n){var r={seen:[],stylize:p};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),m(n)?r.showHidden=n:n&&t._extend(r,n),b(r.showHidden)&&(r.showHidden=!1),b(r.depth)&&(r.depth=2),b(r.colors)&&(r.colors=!1),b(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=c),f(r,e,r.depth)}function c(e,t){var n=u.styles[t];return n?"\x1b["+u.colors[n][0]+"m"+e+"\x1b["+u.colors[n][1]+"m":e}function p(e,t){return e}function f(e,n,r){if(e.customInspect&&n&&_(n.inspect)&&n.inspect!==t.inspect&&!(n.constructor&&n.constructor.prototype===n)){var i,o,a,s,l,u,c=n.inspect(r,e);return E(c)||(c=f(e,c,r)),c}var p=function(e,t){if(b(t))return e.stylize("undefined","undefined");if(E(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return g(t)?e.stylize(""+t,"number"):m(t)?e.stylize(""+t,"boolean"):v(t)?e.stylize("null","null"):void 0}(e,n);if(p)return p;var N=Object.keys(n),O=(l={}
144,N.forEach(function(e,t){l[e]=!0}),l);if(e.showHidden&&(N=Object.getOwnPropertyNames(n)),I(n)&&(N.indexOf("message")>=0||N.indexOf("description")>=0))return d(n);if(0===N.length){if(_(n)){var S=n.name?": "+n.name:"";return e.stylize("[Function"+S+"]","special")}if(T(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(w(n))return e.stylize(Date.prototype.toString.call(n),"date");if(I(n))return d(n)}var A="",D=!1,R=["{","}"];if(y(n)&&(D=!0,R=["[","]"]),_(n)&&(A=" [Function"+(n.name?": "+n.name:"")+"]"),T(n)&&(A=" "+RegExp.prototype.toString.call(n)),w(n)&&(A=" "+Date.prototype.toUTCString.call(n)),I(n)&&(A=" "+d(n)),0===N.length&&(!D||0==n.length))return R[0]+A+R[1];if(r<0)if(T(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");else return e.stylize("[Object]","special");return e.seen.push(n),u=D?function(e,t,n,r,i){for(var o=[],a=0,s=t.length;a<s;++a)x(t,String(a))?o.push(h(e,t,n,r,String(a),!0)):o.push("");return i.forEach(function(i){i.match(/^\d+$/)||o.push(h(e,t,n,r,i,!0))}),o}(e,n,r,O,N):N.map(function(t){return h(e,n,r,O,t,D)}),e.seen.pop(),i=u,o=A,a=R,s=0,i.reduce(function(e,t){return s++,t.indexOf("\n")>=0&&s++,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?a[0]+(""===o?"":o+"\n ")+" "+i.join(",\n  ")+" "+a[1]:a[0]+o+" "+i.join(", ")+" "+a[1]}function d(e){return"["+Error.prototype.toString.call(e)+"]"}function h(e,t,n,r,i,o){var a,s,l;if((l=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(s=e.stylize("[Setter]","special")),x(r,i)||(a="["+i+"]"),!s&&(0>e.seen.indexOf(l.value)?(s=v(n)?f(e,l.value,null):f(e,l.value,n-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map(function(e){return"  "+e}).join("\n").slice(2):"\n"+s.split("\n").map(function(e){return"   "+e}).join("\n")):s=e.stylize("[Circular]","special")),b(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.slice(1,-1),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function y(e){return Array.isArray(e)}function m(e){return"boolean"==typeof e}function v(e){return null===e}function g(e){return"number"==typeof e}function E(e){return"string"==typeof e}function b(e){return void 0===e}function T(e){return N(e)&&"[object RegExp]"===O(e)}function N(e){return"object"==typeof e&&null!==e}function w(e){return N(e)&&"[object Date]"===O(e)}function I(e){return N(e)&&("[object Error]"===O(e)||e instanceof Error)}function _(e){return"function"==typeof e}function O(e){return Object.prototype.toString.call(e)}function S(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(!a[e=e.toUpperCase()])if(s.test(e)){var n=r.pid;a[e]=function(){var r=t.format.apply(t,arguments);console.error("%s %d: %s",e,n,r)}}else a[e]=function(){};return a[e]},t.inspect=u,u.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},u.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.types=n(7999),t.isArray=y,t.isBoolean=m,t.isNull=v,t.isNullOrUndefined=function(e){return null==e},t.isNumber=g,t.isString=E,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=b,t.isRegExp=T,t.types.isRegExp=T,t.isObject=N,t.isDate=w,t.types.isDate=w,t.isError=I,t.types.isNativeError=I,t.isFunction=_,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=n(82900);var A=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function x(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){var e,n;console.log("%s - %s",(n=[S((e=new Date).getHours()),S(e.getMinutes()),S(e.getSeconds())].join(":"),[e.getDate(),A[e.getMonth()],n].join(" ")),t.format.apply(t,arguments))},t.inherits=n(61304),t._extend=function(e,t){if(!t||!N(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e};var D="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function R(e,t){if(!e){var n=Error("Promise was rejected with a falsy value");n.reason=e,e=n}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw TypeError('The "original" argument must be of type Function');if(D&&e[D]){var t=e[D];if("function"!=typeof t)throw TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,D,{value:t,enumerable:!1,writable:!1,
144configurable:!0}),t}function t(){for(var t,n,r=new Promise(function(e,r){t=e,n=r}),i=[],o=0;o<arguments.length;o++)i.push(arguments[o]);i.push(function(e,r){e?n(e):t(r)});try{e.apply(this,i)}catch(e){n(e)}return r}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),D&&Object.defineProperty(t,D,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,i(e))},t.promisify.custom=D,t.callbackify=function(e){if("function"!=typeof e)throw TypeError('The "original" argument must be of type Function');function t(){for(var t=[],n=0;n<arguments.length;n++)t.push(arguments[n]);var i=t.pop();if("function"!=typeof i)throw TypeError("The last argument must be of type Function");var o=this,a=function(){return i.apply(o,arguments)};e.apply(this,t).then(function(e){r.nextTick(a.bind(null,null,e))},function(e){r.nextTick(R.bind(null,e,a))})}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,i(e)),t}},96366:(e,t,n)=>{"use strict";function r(e,t){void 0===t&&(t={});for(var n=function(e){for(var t=[],n=0;n<e.length;){var r=e[n];if("*"===r||"+"===r||"?"===r){t.push({type:"MODIFIER",index:n,value:e[n++]});continue}if("\\"===r){t.push({type:"ESCAPED_CHAR",index:n++,value:e[n++]});continue}if("{"===r){t.push({type:"OPEN",index:n,value:e[n++]});continue}if("}"===r){t.push({type:"CLOSE",index:n,value:e[n++]});continue}if(":"===r){for(var i="",o=n+1;o<e.length;){var a=e.charCodeAt(o);if(a>=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122||95===a){i+=e[o++];continue}break}if(!i)throw TypeError("Missing parameter name at ".concat(n));t.push({type:"NAME",index:n,value:i}),n=o;continue}if("("===r){var s=1,l="",o=n+1;if("?"===e[o])throw TypeError('Pattern cannot start with "?" at '.concat(o));for(;o<e.length;){if("\\"===e[o]){l+=e[o++]+e[o++];continue}if(")"===e[o]){if(0==--s){o++;break}}else if("("===e[o]&&(s++,"?"!==e[o+1]))throw TypeError("Capturing groups are not allowed at ".concat(o));l+=e[o++]}if(s)throw TypeError("Unbalanced pattern at ".concat(n));if(!l)throw TypeError("Missing pattern at ".concat(n));t.push({type:"PATTERN",index:n,value:l}),n=o;continue}t.push({type:"CHAR",index:n,value:e[n++]})}return t.push({type:"END",index:n,value:""}),t}(e),r=t.prefixes,i=void 0===r?"./":r,o="[^".concat(l(t.delimiter||"/#?"),"]+?"),a=[],s=0,u=0,c="",p=function(e){if(u<n.length&&n[u].type===e)return n[u++].value},f=function(e){var t=p(e);if(void 0!==t)return t;var r=n[u],i=r.type,o=r.index;throw TypeError("Unexpected ".concat(i," at ").concat(o,", expected ").concat(e))},d=function(){for(var e,t="";e=p("CHAR")||p("ESCAPED_CHAR");)t+=e;return t};u<n.length;){var h=p("CHAR"),y=p("NAME"),m=p("PATTERN");if(y||m){var v=h||"";-1===i.indexOf(v)&&(c+=v,v=""),c&&(a.push(c),c=""),a.push({name:y||s++,prefix:v,suffix:"",pattern:m||o,modifier:p("MODIFIER")||""});continue}var g=h||p("ESCAPED_CHAR");if(g){c+=g;continue}if(c&&(a.push(c),c=""),p("OPEN")){var v=d(),E=p("NAME")||"",b=p("PATTERN")||"",T=d();f("CLOSE"),a.push({name:E||(b?s++:""),pattern:E&&!b?o:b,prefix:v,suffix:T,modifier:p("MODIFIER")||""});continue}f("END")}return a}function i(e,t){return o(r(e,t),t)}function o(e,t){void 0===t&&(t={});var n=u(t),r=t.encode,i=void 0===r?function(e){return e}:r,o=t.validate,a=void 0===o||o,s=e.map(function(e){if("object"==typeof e)return new RegExp("^(?:".concat(e.pattern,")$"),n)});return function(t){for(var n="",r=0;r<e.length;r++){var o=e[r];if("string"==typeof o){n+=o;continue}var l=t?t[o.name]:void 0,u="?"===o.modifier||"*"===o.modifier,c="*"===o.modifier||"+"===o.modifier;if(Array.isArray(l)){if(!c)throw TypeError('Expected "'.concat(o.name,'" to not repeat, but got an array'));if(0===l.length){if(u)continue;throw TypeError('Expected "'.concat(o.name,'" to not be empty'))}for(var p=0;p<l.length;p++){var f=i(l[p],o);if(a&&!s[r].test(f))throw TypeError('Expected all "'.concat(o.name,'" to match "').concat(o.pattern,'", but got "').concat(f,'"'));n+=o.prefix+f+o.suffix}continue}if("string"==typeof l||"number"==typeof l){var f=i(String(l),o);if(a&&!s[r].test(f))throw TypeError('Expected "'.concat(o.name,'" to match "').concat(o.pattern,'", but got "').concat(f,'"'));n+=o.prefix+f+o.suffix;continue}if(!u){var d=c?"an array":"a string";throw TypeError('Expected "'.concat(o.name,'" to be ').concat(d))}}return n}}function a(e,t){var n=[];return s(p(e,n,t),n,t)}function s(e,t,n){void 0===n&&(n={});var r=n.decode,i=void 0===r?function(e){return e}:r;return function(n){var r=e.exec(n);if(!r)return!1;for(var o=r[0],a=r.index,s=Object.create(null),l=1;l<r.length;l++)!function(e){if(void 0!==r[e]){var n=t[e-1];"*"===n.modifier||"+"===n.modifier?s[n.name]=r[e].split(n.prefix+n.suffix
144).map(function(e){return i(e,n)}):s[n.name]=i(r[e],n)}}(l);return{path:o,index:a,params:s}}}function l(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function u(e){return e&&e.sensitive?"":"i"}function c(e,t,n){void 0===n&&(n={});for(var r=n.strict,i=void 0!==r&&r,o=n.start,a=n.end,s=n.encode,c=void 0===s?function(e){return e}:s,p=n.delimiter,f=n.endsWith,d="[".concat(l(void 0===f?"":f),"]|$"),h="[".concat(l(void 0===p?"/#?":p),"]"),y=void 0===o||o?"^":"",m=0;m<e.length;m++){var v=e[m];if("string"==typeof v)y+=l(c(v));else{var g=l(c(v.prefix)),E=l(c(v.suffix));if(v.pattern)if(t&&t.push(v),g||E)if("+"===v.modifier||"*"===v.modifier){var b="*"===v.modifier?"?":"";y+="(?:".concat(g,"((?:").concat(v.pattern,")(?:").concat(E).concat(g,"(?:").concat(v.pattern,"))*)").concat(E,")").concat(b)}else y+="(?:".concat(g,"(").concat(v.pattern,")").concat(E,")").concat(v.modifier);else"+"===v.modifier||"*"===v.modifier?y+="((?:".concat(v.pattern,")").concat(v.modifier,")"):y+="(".concat(v.pattern,")").concat(v.modifier);else y+="(?:".concat(g).concat(E,")").concat(v.modifier)}}if(void 0===a||a)i||(y+="".concat(h,"?")),y+=n.endsWith?"(?=".concat(d,")"):"$";else{var T=e[e.length-1],N="string"==typeof T?h.indexOf(T[T.length-1])>-1:void 0===T;i||(y+="(?:".concat(h,"(?=").concat(d,"))?")),N||(y+="(?=".concat(h,"|").concat(d,")"))}return new RegExp(y,u(n))}function p(e,t,n){if(e instanceof RegExp){var i;if(!t)return e;for(var o=/\((?:\?<(.*?)>)?(?!\?)/g,a=0,s=o.exec(e.source);s;)t.push({name:s[1]||a++,prefix:"",suffix:"",modifier:"",pattern:""}),s=o.exec(e.source);return e}return Array.isArray(e)?(i=e.map(function(e){return p(e,t,n).source}),new RegExp("(?:".concat(i.join("|"),")"),u(n))):c(r(e,n),t,n)}n.r(t),n.d(t,{compile:()=>i,match:()=>a,parse:()=>r,pathToRegexp:()=>p,regexpToFunction:()=>s,tokensToFunction:()=>o,tokensToRegexp:()=>c})},96555:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(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){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(68357),t),i(n(43157),t)},97210:(e,t,n)=>{"use strict";var r=n(86657);e.exports=function(e){return!!r(e)}},97262:(e,t,n)=>{"use strict";var r,i=Object.prototype.toString,o=Function.prototype.toString,a=/^\s*(?:function)?\*/,s=n(25971)(),l=Object.getPrototypeOf,u=function(){if(!s)return!1;try{return Function("return function*() {}")()}catch(e){}};e.exports=function(e){if("function"!=typeof e)return!1;if(a.test(o.call(e)))return!0;if(!s)return"[object GeneratorFunction]"===i.call(e);if(!l)return!1;if(void 0===r){var t=u();r=!!t&&l(t)}
144return l(e)===r}},99567:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.until=n(58027).until}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.