@yuntijs/arcadia-bff-sdk 1.0.67 → 1.0.68

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"file":"index.min.js","mappings":"CAAA,SAA2CA,EAAMC,GAC1B,iBAAZC,SAA0C,iBAAXC,OACxCA,OAAOD,QAAUD,IACQ,mBAAXG,QAAyBA,OAAOC,IAC9CD,OAAO,GAAIH,GACe,iBAAZC,QACdA,QAAuB,cAAID,IAE3BD,EAAoB,cAAIC,GACzB,CATD,CASGK,MAAM,WACT,O,eCTIC,EADAC,E,qBCAJ,IAAIC,EAAyB,oBAATH,KAAuBA,KAAOI,KAC9CC,EAAY,WAChB,SAASC,IACTF,KAAKG,OAAQ,EACbH,KAAKI,aAAeL,EAAOK,YAC3B,CAEA,OADAF,EAAEG,UAAYN,EACP,IAAIG,CACX,CAPgB,IAQhB,SAAUN,IAEQ,SAAUJ,GAE1B,IAAIc,EACY,oBAAqBV,EADjCU,EAEQ,WAAYV,GAAQ,aAAcW,OAF1CD,EAIA,eAAgBV,GAChB,SAAUA,GACT,WACC,IAEE,OADA,IAAIY,MACG,CAGT,CAFE,MAAOC,GACP,OAAO,CACT,CACF,CAPC,GANDH,EAcQ,aAAcV,EAdtBU,EAeW,gBAAiBV,EAOhC,GAAIU,EACF,IAAII,EAAc,CAChB,qBACA,sBACA,6BACA,sBACA,uBACA,sBACA,uBACA,wBACA,yBAGEC,EACFC,YAAYC,QACZ,SAASC,GACP,OAAOA,GAAOJ,EAAYK,QAAQC,OAAOX,UAAUY,SAASC,KAAKJ,KAAS,CAC5E,EAGJ,SAASK,EAAcC,GAIrB,GAHoB,iBAATA,IACTA,EAAOC,OAAOD,IAEZ,4BAA4BE,KAAKF,GACnC,MAAM,IAAIG,UAAU,0CAEtB,OAAOH,EAAKI,aACd,CAEA,SAASC,EAAeC,GAItB,MAHqB,iBAAVA,IACTA,EAAQL,OAAOK,IAEVA,CAC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A,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,OACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,WCrKWC,GAAQhwB,OAAO4T,OAAO,CAAC,GAgU7B,SAASqc,GAAqBC,EAAS9T,GAC5C,IAAM+T,EAAcD,EAAQ9T,GAE5B,MAA2B,WAAvBpM,EAAOmgB,GAEFA,EACyB,mBAAhBA,EAET,CACLC,MAAOD,EACPE,WAAOpvB,GAIJ,CACLmvB,MAAOF,EAAQE,MACfC,MAAOH,EAAQG,MAEnB,CCnVO,SAASC,GAAMC,GACpB,ODgFK,SAAejyB,EAAM4xB,GAG1B,IAHoE,IAAjCM,EAAWtkB,UAAA1H,OAAA,QAAAvD,IAAAiL,UAAA,GAAAA,UAAA,GAAGmQ,EAC3CoU,EAAgB,IAAIhc,IAE1Bic,EAAA,EAAAC,EAAmB3wB,OAAOyF,OAAOmW,GAAK8U,EAAAC,EAAAnsB,OAAAksB,IAAE,CAAnC,IAAMtU,EAAIuU,EAAAD,GACbD,EAAcvtB,IAAIkZ,EAAM6T,GAAqBC,EAAS9T,GACxD,CAGA,IAAI1U,OAAQzG,EACR2vB,EAAUrvB,MAAMC,QAAQlD,GACxBi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AAY,CAAEC,WAAW,EAAMhhD,IAAAA,EAAK80B,cAAAA,IACjD,OAAOosB,CACT,EAOaG,GAAS,WAA8B,IAA7BxhD,EAAmBoG,UAAA1H,OAAA,QAAAvD,IAAAiL,UAAA,GAAAA,UAAA,GAAG,CAAC,EACpCjG,EAAuBH,EAAvBG,IAAK80B,EAAkBj1B,EAAlBi1B,cACb,OAAO4X,EAAAA,GAAAA,UACL,kBAAM0U,GAAiB,CAAEphD,IAAAA,EAAK80B,cAAAA,GAAgB,GAC9C,CAAC90B,EAAK80B,GAEV,C","sources":["webpack://ArcadiaBffSDK/webpack/universalModuleDefinition","webpack://ArcadiaBffSDK/webpack/runtime/create fake namespace object","webpack://ArcadiaBffSDK/./node_modules/.pnpm/cross-fetch@3.1.8/node_modules/cross-fetch/dist/browser-ponyfill.js","webpack://ArcadiaBffSDK/./node_modules/.pnpm/use-sync-external-store@1.2.0_react@18.2.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.min.js","webpack://ArcadiaBffSDK/./node_modules/.pnpm/use-sync-external-store@1.2.0_react@18.2.0/node_modules/use-sync-external-store/shim/index.js","webpack://ArcadiaBffSDK/external var \"window.React\"","webpack://ArcadiaBffSDK/./node_modules/.pnpm/@babel+runtime@7.23.2/node_modules/@babel/runtime/helpers/arrayLikeToArray.js","webpack://ArcadiaBffSDK/./node_modules/.pnpm/@babel+runtime@7.23.2/node_modules/@babel/runtime/helpers/arrayWithHoles.js","webpack://ArcadiaBffSDK/./node_modules/.pnpm/@babel+runtime@7.23.2/node_modules/@babel/runtime/helpers/arrayWithoutHoles.js","webpack://ArcadiaBffSDK/./node_modules/.pnpm/@babel+runtime@7.23.2/node_modules/@babel/runtime/helpers/assertThisInitialized.js","webpack://ArcadiaBffSDK/./node_modules/.pnpm/@babel+runtime@7.23.2/node_modules/@babel/runtime/helpers/asyncToGenerator.js","webpack://ArcadiaBffSDK/./node_modules/.pnpm/@babel+runtime@7.23.2/node_modules/@babel/runtime/helpers/classCallCheck.js","webpack://ArcadiaBffSDK/./node_modules/.pnpm/@babel+runtime@7.23.2/node_modules/@babel/runtime/helpers/construct.js","webpack://ArcadiaBffSDK/./node_modules/.pnpm/@babel+runtime@7.23.2/node_modules/@babel/runtime/helpers/createClass.js","webpack://ArcadiaBffSDK/./node_modules/.pnpm/@babel+runtime@7.23.2/node_modules/@babel/runtime/helpers/createForOfIteratorHelper.js","webpack://ArcadiaBffSDK/./node_modules/.pnpm/@babel+runtime@7.23.2/node_modules/@babel/runtime/helpers/createSuper.js","webpack://ArcadiaBffSDK/./node_modules/.pnpm/@babel+runtime@7.23.2/node_modules/@babel/runtime/helpers/defineProperty.js","webpack://ArcadiaBffSDK/./node_modules/.pnpm/@babel+runtime@7.23.2/node_modules/@babel/runtime/helpers/getPrototypeOf.js","webpack://ArcadiaBffSDK/./node_modules/.pnpm/@babel+runtime@7.23.2/node_modules/@babel/runtime/helpers/inherits.js","webpack://ArcadiaBffSDK/./node_modules/.pnpm/@babel+runtime@7.23.2/node_modules/@babel/runtime/helpers/isNativeFunction.js","webpack://ArcadiaBffSDK/./node_modules/.pnpm/@babel+runtime@7.23.2/node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js","webpack://ArcadiaBffSDK/./node_modules/.pnpm/@babel+runtime@7.23.2/node_modules/@babel/runtime/helpers/iterableToArray.js","webpack://ArcadiaBffSDK/./node_modules/.pnpm/@babel+runtime@7.23.2/node_modules/@babel/runtime/helpers/iterableToArrayLimit.js","webpack://ArcadiaBffSDK/./node_modules/.pnpm/@babel+runtime@7.23.2/node_modules/@babel/runtime/helpers/nonIterableRest.js","webpack://ArcadiaBffSDK/./node_modules/.pnpm/@babel+runtime@7.23.2/node_modules/@babel/runtime/helpers/nonIterableSpread.js","webpack://ArcadiaBffSDK/./node_modules/.pnpm/@babel+runtime@7.23.2/node_modules/@babel/runtime/helpers/objectSpread2.js","webpack://ArcadiaBffSDK/./node_modules/.pnpm/@babel+runtime@7.23.2/node_modules/@babel/runtime/helpers/objectWithoutProperties.js","webpack://ArcadiaBffSDK/./node_modules/.pnpm/@babel+runtime@7.23.2/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","webpack://ArcadiaBffSDK/./node_modules/.pnpm/@babel+runtime@7.23.2/node_modules/@babel/runtime/helpers/possibleConstructorReturn.js","webpack://ArcadiaBffSDK/./node_modules/.pnpm/@babel+runtime@7.23.2/node_modules/@babel/runtime/helpers/regeneratorRuntime.js","webpack://ArcadiaBffSDK/./node_modules/.pnpm/@babel+runtime@7.23.2/node_modules/@babel/runtime/helpers/setPrototypeOf.js","webpack://ArcadiaBffSDK/./node_modules/.pnpm/@babel+runtime@7.23.2/node_modules/@babel/runtime/helpers/slicedToArray.js","webpack://ArcadiaBffSDK/./node_modules/.pnpm/@babel+runtime@7.23.2/node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js","webpack://ArcadiaBffSDK/./node_modules/.pnpm/@babel+runtime@7.23.2/node_modules/@babel/runtime/helpers/toConsumableArray.js","webpack://ArcadiaBffSDK/./node_modules/.pnpm/@babel+runtime@7.23.2/node_modules/@babel/runtime/helpers/toPrimitive.js","webpack://ArcadiaBffSDK/./node_modules/.pnpm/@babel+runtime@7.23.2/node_modules/@babel/runtime/helpers/toPropertyKey.js","webpack://ArcadiaBffSDK/./node_modules/.pnpm/@babel+runtime@7.23.2/node_modules/@babel/runtime/helpers/typeof.js","webpack://ArcadiaBffSDK/./node_modules/.pnpm/@babel+runtime@7.23.2/node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js","webpack://ArcadiaBffSDK/./node_modules/.pnpm/@babel+runtime@7.23.2/node_modules/@babel/runtime/helpers/wrapNativeSuper.js","webpack://ArcadiaBffSDK/webpack/bootstrap","webpack://ArcadiaBffSDK/webpack/runtime/compat get default export","webpack://ArcadiaBffSDK/webpack/runtime/define property getters","webpack://ArcadiaBffSDK/webpack/runtime/hasOwnProperty shorthand","webpack://ArcadiaBffSDK/webpack/runtime/make namespace object","webpack://ArcadiaBffSDK/../../src/defaultJsonSerializer.ts","webpack://ArcadiaBffSDK/../../src/parseArgs.ts","webpack://ArcadiaBffSDK/./node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/jsutils/isObjectLike.mjs","webpack://ArcadiaBffSDK/./node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/jsutils/invariant.mjs","webpack://ArcadiaBffSDK/./node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/language/location.mjs","webpack://ArcadiaBffSDK/./node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/language/printLocation.mjs","webpack://ArcadiaBffSDK/./node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/error/GraphQLError.mjs","webpack://ArcadiaBffSDK/./node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/error/syntaxError.mjs","webpack://ArcadiaBffSDK/./node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/language/ast.mjs","webpack://ArcadiaBffSDK/./node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/language/directiveLocation.mjs","webpack://ArcadiaBffSDK/./node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/language/kinds.mjs","webpack://ArcadiaBffSDK/./node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/language/tokenKind.mjs","webpack://ArcadiaBffSDK/./node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/language/characterClasses.mjs","webpack://ArcadiaBffSDK/./node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/language/blockString.mjs","webpack://ArcadiaBffSDK/./node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/language/lexer.mjs","webpack://ArcadiaBffSDK/./node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/jsutils/devAssert.mjs","webpack://ArcadiaBffSDK/./node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/jsutils/inspect.mjs","webpack://ArcadiaBffSDK/./node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/jsutils/instanceOf.mjs","webpack://ArcadiaBffSDK/./node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/language/source.mjs","webpack://ArcadiaBffSDK/./node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/language/parser.mjs","webpack://ArcadiaBffSDK/./node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/language/printString.mjs","webpack://ArcadiaBffSDK/./node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/language/visitor.mjs","webpack://ArcadiaBffSDK/./node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/language/printer.mjs","webpack://ArcadiaBffSDK/../../src/resolveRequestDocument.ts","webpack://ArcadiaBffSDK/../../src/types.ts","webpack://ArcadiaBffSDK/../../src/graphql-ws.ts","webpack://ArcadiaBffSDK/../../src/index.ts","webpack://ArcadiaBffSDK/../../src/helpers.ts","webpack://ArcadiaBffSDK/./node_modules/.pnpm/decode-uri-component@0.4.1/node_modules/decode-uri-component/index.js","webpack://ArcadiaBffSDK/./node_modules/.pnpm/split-on-first@3.0.0/node_modules/split-on-first/index.js","webpack://ArcadiaBffSDK/./node_modules/.pnpm/filter-obj@5.1.0/node_modules/filter-obj/index.js","webpack://ArcadiaBffSDK/./node_modules/.pnpm/query-string@8.1.0/node_modules/query-string/base.js","webpack://ArcadiaBffSDK/./node_modules/.pnpm/query-string@8.1.0/node_modules/query-string/index.js","webpack://ArcadiaBffSDK/./src/errors/modal.ts","webpack://ArcadiaBffSDK/external var \"window.antd\"","webpack://ArcadiaBffSDK/external var \"window.TenxUiMaterials\"","webpack://ArcadiaBffSDK/./src/errors/notification.ts","webpack://ArcadiaBffSDK/./src/errors/handler.ts","webpack://ArcadiaBffSDK/./node_modules/.pnpm/tslib@2.6.2/node_modules/tslib/tslib.es6.mjs","webpack://ArcadiaBffSDK/../src/index.ts","webpack://ArcadiaBffSDK/./node_modules/.pnpm/swr@2.2.4_react@18.2.0/node_modules/swr/_internal/dist/index.mjs","webpack://ArcadiaBffSDK/./node_modules/.pnpm/swr@2.2.4_react@18.2.0/node_modules/swr/core/dist/index.mjs","webpack://ArcadiaBffSDK/./src/useSWR.ts","webpack://ArcadiaBffSDK/./src/sdk.ts","webpack://ArcadiaBffSDK/./src/index.ts"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"ArcadiaBffSDK\"] = factory();\n\telse\n\t\troot[\"ArcadiaBffSDK\"] = factory();\n})(self, function() {\nreturn ","var getProto = Object.getPrototypeOf ? function(obj) { return Object.getPrototypeOf(obj); } : function(obj) { return obj.__proto__; };\nvar leafPrototypes;\n// create a fake namespace object\n// mode & 1: value is a module id, require it\n// mode & 2: merge all properties of value into the ns\n// mode & 4: return value when already ns object\n// mode & 16: return value when it's Promise-like\n// mode & 8|1: behave like require\n__webpack_require__.t = function(value, mode) {\n\tif(mode & 1) value = this(value);\n\tif(mode & 8) return value;\n\tif(typeof value === 'object' && value) {\n\t\tif((mode & 4) && value.__esModule) return value;\n\t\tif((mode & 16) && typeof value.then === 'function') return value;\n\t}\n\tvar ns = Object.create(null);\n\t__webpack_require__.r(ns);\n\tvar def = {};\n\tleafPrototypes = leafPrototypes || [null, getProto({}), getProto([]), getProto(getProto)];\n\tfor(var current = mode & 2 && value; typeof current == 'object' && !~leafPrototypes.indexOf(current); current = getProto(current)) {\n\t\tObject.getOwnPropertyNames(current).forEach(function(key) { def[key] = function() { return value[key]; }; });\n\t}\n\tdef['default'] = function() { return value; };\n\t__webpack_require__.d(ns, def);\n\treturn ns;\n};","var global = typeof self !== 'undefined' ? self : this;\nvar __self__ = (function () {\nfunction F() {\nthis.fetch = false;\nthis.DOMException = global.DOMException\n}\nF.prototype = global;\nreturn new F();\n})();\n(function(self) {\n\nvar irrelevant = (function (exports) {\n\n var support = {\n searchParams: 'URLSearchParams' in self,\n iterable: 'Symbol' in self && 'iterator' in Symbol,\n blob:\n 'FileReader' in self &&\n 'Blob' in self &&\n (function() {\n try {\n new Blob();\n return true\n } catch (e) {\n return false\n }\n })(),\n formData: 'FormData' in self,\n arrayBuffer: 'ArrayBuffer' in self\n };\n\n function isDataView(obj) {\n return obj && DataView.prototype.isPrototypeOf(obj)\n }\n\n if (support.arrayBuffer) {\n var viewClasses = [\n '[object Int8Array]',\n '[object Uint8Array]',\n '[object Uint8ClampedArray]',\n '[object Int16Array]',\n '[object Uint16Array]',\n '[object Int32Array]',\n '[object Uint32Array]',\n '[object Float32Array]',\n '[object Float64Array]'\n ];\n\n var isArrayBufferView =\n ArrayBuffer.isView ||\n function(obj) {\n return obj && viewClasses.indexOf(Object.prototype.toString.call(obj)) > -1\n };\n }\n\n function normalizeName(name) {\n if (typeof name !== 'string') {\n name = String(name);\n }\n if (/[^a-z0-9\\-#$%&'*+.^_`|~]/i.test(name)) {\n throw new TypeError('Invalid character in header field name')\n }\n return name.toLowerCase()\n }\n\n function normalizeValue(value) {\n if (typeof value !== 'string') {\n value = String(value);\n }\n return value\n }\n\n // Build a destructive iterator for the value list\n function iteratorFor(items) {\n var iterator = {\n next: function() {\n var value = items.shift();\n return {done: value === undefined, value: value}\n }\n };\n\n if (support.iterable) {\n iterator[Symbol.iterator] = function() {\n return iterator\n };\n }\n\n return iterator\n }\n\n function Headers(headers) {\n this.map = {};\n\n if (headers instanceof Headers) {\n headers.forEach(function(value, name) {\n this.append(name, value);\n }, this);\n } else if (Array.isArray(headers)) {\n headers.forEach(function(header) {\n this.append(header[0], header[1]);\n }, this);\n } else if (headers) {\n Object.getOwnPropertyNames(headers).forEach(function(name) {\n this.append(name, headers[name]);\n }, this);\n }\n }\n\n Headers.prototype.append = function(name, value) {\n name = normalizeName(name);\n value = normalizeValue(value);\n var oldValue = this.map[name];\n this.map[name] = oldValue ? oldValue + ', ' + value : value;\n };\n\n Headers.prototype['delete'] = function(name) {\n delete this.map[normalizeName(name)];\n };\n\n Headers.prototype.get = function(name) {\n name = normalizeName(name);\n return this.has(name) ? this.map[name] : null\n };\n\n Headers.prototype.has = function(name) {\n return this.map.hasOwnProperty(normalizeName(name))\n };\n\n Headers.prototype.set = function(name, value) {\n this.map[normalizeName(name)] = normalizeValue(value);\n };\n\n Headers.prototype.forEach = function(callback, thisArg) {\n for (var name in this.map) {\n if (this.map.hasOwnProperty(name)) {\n callback.call(thisArg, this.map[name], name, this);\n }\n }\n };\n\n Headers.prototype.keys = function() {\n var items = [];\n this.forEach(function(value, name) {\n items.push(name);\n });\n return iteratorFor(items)\n };\n\n Headers.prototype.values = function() {\n var items = [];\n this.forEach(function(value) {\n items.push(value);\n });\n return iteratorFor(items)\n };\n\n Headers.prototype.entries = function() {\n var items = [];\n this.forEach(function(value, name) {\n items.push([name, value]);\n });\n return iteratorFor(items)\n };\n\n if (support.iterable) {\n Headers.prototype[Symbol.iterator] = Headers.prototype.entries;\n }\n\n function consumed(body) {\n if (body.bodyUsed) {\n return Promise.reject(new TypeError('Already read'))\n }\n body.bodyUsed = true;\n }\n\n function fileReaderReady(reader) {\n return new Promise(function(resolve, reject) {\n reader.onload = function() {\n resolve(reader.result);\n };\n reader.onerror = function() {\n reject(reader.error);\n };\n })\n }\n\n function readBlobAsArrayBuffer(blob) {\n var reader = new FileReader();\n var promise = fileReaderReady(reader);\n reader.readAsArrayBuffer(blob);\n return promise\n }\n\n function readBlobAsText(blob) {\n var reader = new FileReader();\n var promise = fileReaderReady(reader);\n reader.readAsText(blob);\n return promise\n }\n\n function readArrayBufferAsText(buf) {\n var view = new Uint8Array(buf);\n var chars = new Array(view.length);\n\n for (var i = 0; i < view.length; i++) {\n chars[i] = String.fromCharCode(view[i]);\n }\n return chars.join('')\n }\n\n function bufferClone(buf) {\n if (buf.slice) {\n return buf.slice(0)\n } else {\n var view = new Uint8Array(buf.byteLength);\n view.set(new Uint8Array(buf));\n return view.buffer\n }\n }\n\n function Body() {\n this.bodyUsed = false;\n\n this._initBody = function(body) {\n this._bodyInit = body;\n if (!body) {\n this._bodyText = '';\n } else if (typeof body === 'string') {\n this._bodyText = body;\n } else if (support.blob && Blob.prototype.isPrototypeOf(body)) {\n this._bodyBlob = body;\n } else if (support.formData && FormData.prototype.isPrototypeOf(body)) {\n this._bodyFormData = body;\n } else if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body)) {\n this._bodyText = body.toString();\n } else if (support.arrayBuffer && support.blob && isDataView(body)) {\n this._bodyArrayBuffer = bufferClone(body.buffer);\n // IE 10-11 can't handle a DataView body.\n this._bodyInit = new Blob([this._bodyArrayBuffer]);\n } else if (support.arrayBuffer && (ArrayBuffer.prototype.isPrototypeOf(body) || isArrayBufferView(body))) {\n this._bodyArrayBuffer = bufferClone(body);\n } else {\n this._bodyText = body = Object.prototype.toString.call(body);\n }\n\n if (!this.headers.get('content-type')) {\n if (typeof body === 'string') {\n this.headers.set('content-type', 'text/plain;charset=UTF-8');\n } else if (this._bodyBlob && this._bodyBlob.type) {\n this.headers.set('content-type', this._bodyBlob.type);\n } else if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body)) {\n this.headers.set('content-type', 'application/x-www-form-urlencoded;charset=UTF-8');\n }\n }\n };\n\n if (support.blob) {\n this.blob = function() {\n var rejected = consumed(this);\n if (rejected) {\n return rejected\n }\n\n if (this._bodyBlob) {\n return Promise.resolve(this._bodyBlob)\n } else if (this._bodyArrayBuffer) {\n return Promise.resolve(new Blob([this._bodyArrayBuffer]))\n } else if (this._bodyFormData) {\n throw new Error('could not read FormData body as blob')\n } else {\n return Promise.resolve(new Blob([this._bodyText]))\n }\n };\n\n this.arrayBuffer = function() {\n if (this._bodyArrayBuffer) {\n return consumed(this) || Promise.resolve(this._bodyArrayBuffer)\n } else {\n return this.blob().then(readBlobAsArrayBuffer)\n }\n };\n }\n\n this.text = function() {\n var rejected = consumed(this);\n if (rejected) {\n return rejected\n }\n\n if (this._bodyBlob) {\n return readBlobAsText(this._bodyBlob)\n } else if (this._bodyArrayBuffer) {\n return Promise.resolve(readArrayBufferAsText(this._bodyArrayBuffer))\n } else if (this._bodyFormData) {\n throw new Error('could not read FormData body as text')\n } else {\n return Promise.resolve(this._bodyText)\n }\n };\n\n if (support.formData) {\n this.formData = function() {\n return this.text().then(decode)\n };\n }\n\n this.json = function() {\n return this.text().then(JSON.parse)\n };\n\n return this\n }\n\n // HTTP methods whose capitalization should be normalized\n var methods = ['DELETE', 'GET', 'HEAD', 'OPTIONS', 'POST', 'PUT'];\n\n function normalizeMethod(method) {\n var upcased = method.toUpperCase();\n return methods.indexOf(upcased) > -1 ? upcased : method\n }\n\n function Request(input, options) {\n options = options || {};\n var body = options.body;\n\n if (input instanceof Request) {\n if (input.bodyUsed) {\n throw new TypeError('Already read')\n }\n this.url = input.url;\n this.credentials = input.credentials;\n if (!options.headers) {\n this.headers = new Headers(input.headers);\n }\n this.method = input.method;\n this.mode = input.mode;\n this.signal = input.signal;\n if (!body && input._bodyInit != null) {\n body = input._bodyInit;\n input.bodyUsed = true;\n }\n } else {\n this.url = String(input);\n }\n\n this.credentials = options.credentials || this.credentials || 'same-origin';\n if (options.headers || !this.headers) {\n this.headers = new Headers(options.headers);\n }\n this.method = normalizeMethod(options.method || this.method || 'GET');\n this.mode = options.mode || this.mode || null;\n this.signal = options.signal || this.signal;\n this.referrer = null;\n\n if ((this.method === 'GET' || this.method === 'HEAD') && body) {\n throw new TypeError('Body not allowed for GET or HEAD requests')\n }\n this._initBody(body);\n }\n\n Request.prototype.clone = function() {\n return new Request(this, {body: this._bodyInit})\n };\n\n function decode(body) {\n var form = new FormData();\n body\n .trim()\n .split('&')\n .forEach(function(bytes) {\n if (bytes) {\n var split = bytes.split('=');\n var name = split.shift().replace(/\\+/g, ' ');\n var value = split.join('=').replace(/\\+/g, ' ');\n form.append(decodeURIComponent(name), decodeURIComponent(value));\n }\n });\n return form\n }\n\n function parseHeaders(rawHeaders) {\n var headers = new Headers();\n // Replace instances of \\r\\n and \\n followed by at least one space or horizontal tab with a space\n // https://tools.ietf.org/html/rfc7230#section-3.2\n var preProcessedHeaders = rawHeaders.replace(/\\r?\\n[\\t ]+/g, ' ');\n preProcessedHeaders.split(/\\r?\\n/).forEach(function(line) {\n var parts = line.split(':');\n var key = parts.shift().trim();\n if (key) {\n var value = parts.join(':').trim();\n headers.append(key, value);\n }\n });\n return headers\n }\n\n Body.call(Request.prototype);\n\n function Response(bodyInit, options) {\n if (!options) {\n options = {};\n }\n\n this.type = 'default';\n this.status = options.status === undefined ? 200 : options.status;\n this.ok = this.status >= 200 && this.status < 300;\n this.statusText = 'statusText' in options ? options.statusText : 'OK';\n this.headers = new Headers(options.headers);\n this.url = options.url || '';\n this._initBody(bodyInit);\n }\n\n Body.call(Response.prototype);\n\n Response.prototype.clone = function() {\n return new Response(this._bodyInit, {\n status: this.status,\n statusText: this.statusText,\n headers: new Headers(this.headers),\n url: this.url\n })\n };\n\n Response.error = function() {\n var response = new Response(null, {status: 0, statusText: ''});\n response.type = 'error';\n return response\n };\n\n var redirectStatuses = [301, 302, 303, 307, 308];\n\n Response.redirect = function(url, status) {\n if (redirectStatuses.indexOf(status) === -1) {\n throw new RangeError('Invalid status code')\n }\n\n return new Response(null, {status: status, headers: {location: url}})\n };\n\n exports.DOMException = self.DOMException;\n try {\n new exports.DOMException();\n } catch (err) {\n exports.DOMException = function(message, name) {\n this.message = message;\n this.name = name;\n var error = Error(message);\n this.stack = error.stack;\n };\n exports.DOMException.prototype = Object.create(Error.prototype);\n exports.DOMException.prototype.constructor = exports.DOMException;\n }\n\n function fetch(input, init) {\n return new Promise(function(resolve, reject) {\n var request = new Request(input, init);\n\n if (request.signal && request.signal.aborted) {\n return reject(new exports.DOMException('Aborted', 'AbortError'))\n }\n\n var xhr = new XMLHttpRequest();\n\n function abortXhr() {\n xhr.abort();\n }\n\n xhr.onload = function() {\n var options = {\n status: xhr.status,\n statusText: xhr.statusText,\n headers: parseHeaders(xhr.getAllResponseHeaders() || '')\n };\n options.url = 'responseURL' in xhr ? xhr.responseURL : options.headers.get('X-Request-URL');\n var body = 'response' in xhr ? xhr.response : xhr.responseText;\n resolve(new Response(body, options));\n };\n\n xhr.onerror = function() {\n reject(new TypeError('Network request failed'));\n };\n\n xhr.ontimeout = function() {\n reject(new TypeError('Network request failed'));\n };\n\n xhr.onabort = function() {\n reject(new exports.DOMException('Aborted', 'AbortError'));\n };\n\n xhr.open(request.method, request.url, true);\n\n if (request.credentials === 'include') {\n xhr.withCredentials = true;\n } else if (request.credentials === 'omit') {\n xhr.withCredentials = false;\n }\n\n if ('responseType' in xhr && support.blob) {\n xhr.responseType = 'blob';\n }\n\n request.headers.forEach(function(value, name) {\n xhr.setRequestHeader(name, value);\n });\n\n if (request.signal) {\n request.signal.addEventListener('abort', abortXhr);\n\n xhr.onreadystatechange = function() {\n // DONE (success or failure)\n if (xhr.readyState === 4) {\n request.signal.removeEventListener('abort', abortXhr);\n }\n };\n }\n\n xhr.send(typeof request._bodyInit === 'undefined' ? null : request._bodyInit);\n })\n }\n\n fetch.polyfill = true;\n\n if (!self.fetch) {\n self.fetch = fetch;\n self.Headers = Headers;\n self.Request = Request;\n self.Response = Response;\n }\n\n exports.Headers = Headers;\n exports.Request = Request;\n exports.Response = Response;\n exports.fetch = fetch;\n\n Object.defineProperty(exports, '__esModule', { value: true });\n\n return exports;\n\n})({});\n})(__self__);\n__self__.fetch.ponyfill = true;\n// Remove \"polyfill\" property added by whatwg-fetch\ndelete __self__.fetch.polyfill;\n// Choose between native implementation (global) or custom implementation (__self__)\n// var ctx = global.fetch ? global : __self__;\nvar ctx = __self__; // this line disable service worker support temporarily\nexports = ctx.fetch // To enable: import fetch from 'cross-fetch'\nexports.default = ctx.fetch // For TypeScript consumers without esModuleInterop.\nexports.fetch = ctx.fetch // To enable: import {fetch} from 'cross-fetch'\nexports.Headers = ctx.Headers\nexports.Request = ctx.Request\nexports.Response = ctx.Response\nmodule.exports = exports\n","/**\n * @license React\n * use-sync-external-store-shim.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';var e=require(\"react\");function h(a,b){return a===b&&(0!==a||1/a===1/b)||a!==a&&b!==b}var k=\"function\"===typeof Object.is?Object.is:h,l=e.useState,m=e.useEffect,n=e.useLayoutEffect,p=e.useDebugValue;function q(a,b){var d=b(),f=l({inst:{value:d,getSnapshot:b}}),c=f[0].inst,g=f[1];n(function(){c.value=d;c.getSnapshot=b;r(c)&&g({inst:c})},[a,d,b]);m(function(){r(c)&&g({inst:c});return a(function(){r(c)&&g({inst:c})})},[a]);p(d);return d}\nfunction r(a){var b=a.getSnapshot;a=a.value;try{var d=b();return!k(a,d)}catch(f){return!0}}function t(a,b){return b()}var u=\"undefined\"===typeof window||\"undefined\"===typeof window.document||\"undefined\"===typeof window.document.createElement?t:q;exports.useSyncExternalStore=void 0!==e.useSyncExternalStore?e.useSyncExternalStore:u;\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('../cjs/use-sync-external-store-shim.production.min.js');\n} else {\n module.exports = require('../cjs/use-sync-external-store-shim.development.js');\n}\n","module.exports = window.React;","function _arrayLikeToArray(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];\n return arr2;\n}\nmodule.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _arrayWithHoles(arr) {\n if (Array.isArray(arr)) return arr;\n}\nmodule.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var arrayLikeToArray = require(\"./arrayLikeToArray.js\");\nfunction _arrayWithoutHoles(arr) {\n if (Array.isArray(arr)) return arrayLikeToArray(arr);\n}\nmodule.exports = _arrayWithoutHoles, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _assertThisInitialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n return self;\n}\nmodule.exports = _assertThisInitialized, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {\n try {\n var info = gen[key](arg);\n var value = info.value;\n } catch (error) {\n reject(error);\n return;\n }\n if (info.done) {\n resolve(value);\n } else {\n Promise.resolve(value).then(_next, _throw);\n }\n}\nfunction _asyncToGenerator(fn) {\n return function () {\n var self = this,\n args = arguments;\n return new Promise(function (resolve, reject) {\n var gen = fn.apply(self, args);\n function _next(value) {\n asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value);\n }\n function _throw(err) {\n asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err);\n }\n _next(undefined);\n });\n };\n}\nmodule.exports = _asyncToGenerator, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\nmodule.exports = _classCallCheck, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var setPrototypeOf = require(\"./setPrototypeOf.js\");\nvar isNativeReflectConstruct = require(\"./isNativeReflectConstruct.js\");\nfunction _construct(Parent, args, Class) {\n if (isNativeReflectConstruct()) {\n module.exports = _construct = Reflect.construct.bind(), module.exports.__esModule = true, module.exports[\"default\"] = module.exports;\n } else {\n module.exports = _construct = function _construct(Parent, args, Class) {\n var a = [null];\n a.push.apply(a, args);\n var Constructor = Function.bind.apply(Parent, a);\n var instance = new Constructor();\n if (Class) setPrototypeOf(instance, Class.prototype);\n return instance;\n }, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;\n }\n return _construct.apply(null, arguments);\n}\nmodule.exports = _construct, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var toPropertyKey = require(\"./toPropertyKey.js\");\nfunction _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, toPropertyKey(descriptor.key), descriptor);\n }\n}\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n Object.defineProperty(Constructor, \"prototype\", {\n writable: false\n });\n return Constructor;\n}\nmodule.exports = _createClass, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var unsupportedIterableToArray = require(\"./unsupportedIterableToArray.js\");\nfunction _createForOfIteratorHelper(o, allowArrayLike) {\n var it = typeof Symbol !== \"undefined\" && o[Symbol.iterator] || o[\"@@iterator\"];\n if (!it) {\n if (Array.isArray(o) || (it = unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === \"number\") {\n if (it) o = it;\n var i = 0;\n var F = function F() {};\n return {\n s: F,\n n: function n() {\n if (i >= o.length) return {\n done: true\n };\n return {\n done: false,\n value: o[i++]\n };\n },\n e: function e(_e) {\n throw _e;\n },\n f: F\n };\n }\n throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n }\n var normalCompletion = true,\n didErr = false,\n err;\n return {\n s: function s() {\n it = it.call(o);\n },\n n: function n() {\n var step = it.next();\n normalCompletion = step.done;\n return step;\n },\n e: function e(_e2) {\n didErr = true;\n err = _e2;\n },\n f: function f() {\n try {\n if (!normalCompletion && it[\"return\"] != null) it[\"return\"]();\n } finally {\n if (didErr) throw err;\n }\n }\n };\n}\nmodule.exports = _createForOfIteratorHelper, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var getPrototypeOf = require(\"./getPrototypeOf.js\");\nvar isNativeReflectConstruct = require(\"./isNativeReflectConstruct.js\");\nvar possibleConstructorReturn = require(\"./possibleConstructorReturn.js\");\nfunction _createSuper(Derived) {\n var hasNativeReflectConstruct = isNativeReflectConstruct();\n return function _createSuperInternal() {\n var Super = getPrototypeOf(Derived),\n result;\n if (hasNativeReflectConstruct) {\n var NewTarget = getPrototypeOf(this).constructor;\n result = Reflect.construct(Super, arguments, NewTarget);\n } else {\n result = Super.apply(this, arguments);\n }\n return possibleConstructorReturn(this, result);\n };\n}\nmodule.exports = _createSuper, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var toPropertyKey = require(\"./toPropertyKey.js\");\nfunction _defineProperty(obj, key, value) {\n key = toPropertyKey(key);\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n}\nmodule.exports = _defineProperty, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _getPrototypeOf(o) {\n module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {\n return o.__proto__ || Object.getPrototypeOf(o);\n }, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;\n return _getPrototypeOf(o);\n}\nmodule.exports = _getPrototypeOf, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var setPrototypeOf = require(\"./setPrototypeOf.js\");\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n Object.defineProperty(subClass, \"prototype\", {\n writable: false\n });\n if (superClass) setPrototypeOf(subClass, superClass);\n}\nmodule.exports = _inherits, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _isNativeFunction(fn) {\n try {\n return Function.toString.call(fn).indexOf(\"[native code]\") !== -1;\n } catch (e) {\n return typeof fn === \"function\";\n }\n}\nmodule.exports = _isNativeFunction, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _isNativeReflectConstruct() {\n if (typeof Reflect === \"undefined\" || !Reflect.construct) return false;\n if (Reflect.construct.sham) return false;\n if (typeof Proxy === \"function\") return true;\n try {\n Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));\n return true;\n } catch (e) {\n return false;\n }\n}\nmodule.exports = _isNativeReflectConstruct, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _iterableToArray(iter) {\n if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter);\n}\nmodule.exports = _iterableToArray, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _iterableToArrayLimit(r, l) {\n var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"];\n if (null != t) {\n var e,\n n,\n i,\n u,\n a = [],\n f = !0,\n o = !1;\n try {\n if (i = (t = t.call(r)).next, 0 === l) {\n if (Object(t) !== t) return;\n f = !1;\n } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);\n } catch (r) {\n o = !0, n = r;\n } finally {\n try {\n if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return;\n } finally {\n if (o) throw n;\n }\n }\n return a;\n }\n}\nmodule.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _nonIterableRest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\nmodule.exports = _nonIterableRest, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _nonIterableSpread() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\nmodule.exports = _nonIterableSpread, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var defineProperty = require(\"./defineProperty.js\");\nfunction ownKeys(e, r) {\n var t = Object.keys(e);\n if (Object.getOwnPropertySymbols) {\n var o = Object.getOwnPropertySymbols(e);\n r && (o = o.filter(function (r) {\n return Object.getOwnPropertyDescriptor(e, r).enumerable;\n })), t.push.apply(t, o);\n }\n return t;\n}\nfunction _objectSpread2(e) {\n for (var r = 1; r < arguments.length; r++) {\n var t = null != arguments[r] ? arguments[r] : {};\n r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {\n defineProperty(e, r, t[r]);\n }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {\n Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));\n });\n }\n return e;\n}\nmodule.exports = _objectSpread2, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var objectWithoutPropertiesLoose = require(\"./objectWithoutPropertiesLoose.js\");\nfunction _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n var target = objectWithoutPropertiesLoose(source, excluded);\n var key, i;\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n for (i = 0; i < sourceSymbolKeys.length; i++) {\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n return target;\n}\nmodule.exports = _objectWithoutProperties, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n return target;\n}\nmodule.exports = _objectWithoutPropertiesLoose, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var _typeof = require(\"./typeof.js\")[\"default\"];\nvar assertThisInitialized = require(\"./assertThisInitialized.js\");\nfunction _possibleConstructorReturn(self, call) {\n if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) {\n return call;\n } else if (call !== void 0) {\n throw new TypeError(\"Derived constructors may only return object or undefined\");\n }\n return assertThisInitialized(self);\n}\nmodule.exports = _possibleConstructorReturn, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var _typeof = require(\"./typeof.js\")[\"default\"];\nfunction _regeneratorRuntime() {\n \"use strict\"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */\n module.exports = _regeneratorRuntime = function _regeneratorRuntime() {\n return e;\n }, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;\n var t,\n e = {},\n r = Object.prototype,\n n = r.hasOwnProperty,\n o = Object.defineProperty || function (t, e, r) {\n t[e] = r.value;\n },\n i = \"function\" == typeof Symbol ? Symbol : {},\n a = i.iterator || \"@@iterator\",\n c = i.asyncIterator || \"@@asyncIterator\",\n u = i.toStringTag || \"@@toStringTag\";\n function define(t, e, r) {\n return Object.defineProperty(t, e, {\n value: r,\n enumerable: !0,\n configurable: !0,\n writable: !0\n }), t[e];\n }\n try {\n define({}, \"\");\n } catch (t) {\n define = function define(t, e, r) {\n return t[e] = r;\n };\n }\n function wrap(t, e, r, n) {\n var i = e && e.prototype instanceof Generator ? e : Generator,\n a = Object.create(i.prototype),\n c = new Context(n || []);\n return o(a, \"_invoke\", {\n value: makeInvokeMethod(t, r, c)\n }), a;\n }\n function tryCatch(t, e, r) {\n try {\n return {\n type: \"normal\",\n arg: t.call(e, r)\n };\n } catch (t) {\n return {\n type: \"throw\",\n arg: t\n };\n }\n }\n e.wrap = wrap;\n var h = \"suspendedStart\",\n l = \"suspendedYield\",\n f = \"executing\",\n s = \"completed\",\n y = {};\n function Generator() {}\n function GeneratorFunction() {}\n function GeneratorFunctionPrototype() {}\n var p = {};\n define(p, a, function () {\n return this;\n });\n var d = Object.getPrototypeOf,\n v = d && d(d(values([])));\n v && v !== r && n.call(v, a) && (p = v);\n var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);\n function defineIteratorMethods(t) {\n [\"next\", \"throw\", \"return\"].forEach(function (e) {\n define(t, e, function (t) {\n return this._invoke(e, t);\n });\n });\n }\n function AsyncIterator(t, e) {\n function invoke(r, o, i, a) {\n var c = tryCatch(t[r], t, o);\n if (\"throw\" !== c.type) {\n var u = c.arg,\n h = u.value;\n return h && \"object\" == _typeof(h) && n.call(h, \"__await\") ? e.resolve(h.__await).then(function (t) {\n invoke(\"next\", t, i, a);\n }, function (t) {\n invoke(\"throw\", t, i, a);\n }) : e.resolve(h).then(function (t) {\n u.value = t, i(u);\n }, function (t) {\n return invoke(\"throw\", t, i, a);\n });\n }\n a(c.arg);\n }\n var r;\n o(this, \"_invoke\", {\n value: function value(t, n) {\n function callInvokeWithMethodAndArg() {\n return new e(function (e, r) {\n invoke(t, n, e, r);\n });\n }\n return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();\n }\n });\n }\n function makeInvokeMethod(e, r, n) {\n var o = h;\n return function (i, a) {\n if (o === f) throw new Error(\"Generator is already running\");\n if (o === s) {\n if (\"throw\" === i) throw a;\n return {\n value: t,\n done: !0\n };\n }\n for (n.method = i, n.arg = a;;) {\n var c = n.delegate;\n if (c) {\n var u = maybeInvokeDelegate(c, n);\n if (u) {\n if (u === y) continue;\n return u;\n }\n }\n if (\"next\" === n.method) n.sent = n._sent = n.arg;else if (\"throw\" === n.method) {\n if (o === h) throw o = s, n.arg;\n n.dispatchException(n.arg);\n } else \"return\" === n.method && n.abrupt(\"return\", n.arg);\n o = f;\n var p = tryCatch(e, r, n);\n if (\"normal\" === p.type) {\n if (o = n.done ? s : l, p.arg === y) continue;\n return {\n value: p.arg,\n done: n.done\n };\n }\n \"throw\" === p.type && (o = s, n.method = \"throw\", n.arg = p.arg);\n }\n };\n }\n function maybeInvokeDelegate(e, r) {\n var n = r.method,\n o = e.iterator[n];\n if (o === t) return r.delegate = null, \"throw\" === n && e.iterator[\"return\"] && (r.method = \"return\", r.arg = t, maybeInvokeDelegate(e, r), \"throw\" === r.method) || \"return\" !== n && (r.method = \"throw\", r.arg = new TypeError(\"The iterator does not provide a '\" + n + \"' method\")), y;\n var i = tryCatch(o, e.iterator, r.arg);\n if (\"throw\" === i.type) return r.method = \"throw\", r.arg = i.arg, r.delegate = null, y;\n var a = i.arg;\n return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, \"return\" !== r.method && (r.method = \"next\", r.arg = t), r.delegate = null, y) : a : (r.method = \"throw\", r.arg = new TypeError(\"iterator result is not an object\"), r.delegate = null, y);\n }\n function pushTryEntry(t) {\n var e = {\n tryLoc: t[0]\n };\n 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);\n }\n function resetTryEntry(t) {\n var e = t.completion || {};\n e.type = \"normal\", delete e.arg, t.completion = e;\n }\n function Context(t) {\n this.tryEntries = [{\n tryLoc: \"root\"\n }], t.forEach(pushTryEntry, this), this.reset(!0);\n }\n function values(e) {\n if (e || \"\" === e) {\n var r = e[a];\n if (r) return r.call(e);\n if (\"function\" == typeof e.next) return e;\n if (!isNaN(e.length)) {\n var o = -1,\n i = function next() {\n for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;\n return next.value = t, next.done = !0, next;\n };\n return i.next = i;\n }\n }\n throw new TypeError(_typeof(e) + \" is not iterable\");\n }\n return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, \"constructor\", {\n value: GeneratorFunctionPrototype,\n configurable: !0\n }), o(GeneratorFunctionPrototype, \"constructor\", {\n value: GeneratorFunction,\n configurable: !0\n }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, \"GeneratorFunction\"), e.isGeneratorFunction = function (t) {\n var e = \"function\" == typeof t && t.constructor;\n return !!e && (e === GeneratorFunction || \"GeneratorFunction\" === (e.displayName || e.name));\n }, e.mark = function (t) {\n return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, \"GeneratorFunction\")), t.prototype = Object.create(g), t;\n }, e.awrap = function (t) {\n return {\n __await: t\n };\n }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {\n return this;\n }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {\n void 0 === i && (i = Promise);\n var a = new AsyncIterator(wrap(t, r, n, o), i);\n return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {\n return t.done ? t.value : a.next();\n });\n }, defineIteratorMethods(g), define(g, u, \"Generator\"), define(g, a, function () {\n return this;\n }), define(g, \"toString\", function () {\n return \"[object Generator]\";\n }), e.keys = function (t) {\n var e = Object(t),\n r = [];\n for (var n in e) r.push(n);\n return r.reverse(), function next() {\n for (; r.length;) {\n var t = r.pop();\n if (t in e) return next.value = t, next.done = !1, next;\n }\n return next.done = !0, next;\n };\n }, e.values = values, Context.prototype = {\n constructor: Context,\n reset: function reset(e) {\n if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = \"next\", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) \"t\" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);\n },\n stop: function stop() {\n this.done = !0;\n var t = this.tryEntries[0].completion;\n if (\"throw\" === t.type) throw t.arg;\n return this.rval;\n },\n dispatchException: function dispatchException(e) {\n if (this.done) throw e;\n var r = this;\n function handle(n, o) {\n return a.type = \"throw\", a.arg = e, r.next = n, o && (r.method = \"next\", r.arg = t), !!o;\n }\n for (var o = this.tryEntries.length - 1; o >= 0; --o) {\n var i = this.tryEntries[o],\n a = i.completion;\n if (\"root\" === i.tryLoc) return handle(\"end\");\n if (i.tryLoc <= this.prev) {\n var c = n.call(i, \"catchLoc\"),\n u = n.call(i, \"finallyLoc\");\n if (c && u) {\n if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);\n if (this.prev < i.finallyLoc) return handle(i.finallyLoc);\n } else if (c) {\n if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);\n } else {\n if (!u) throw new Error(\"try statement without catch or finally\");\n if (this.prev < i.finallyLoc) return handle(i.finallyLoc);\n }\n }\n }\n },\n abrupt: function abrupt(t, e) {\n for (var r = this.tryEntries.length - 1; r >= 0; --r) {\n var o = this.tryEntries[r];\n if (o.tryLoc <= this.prev && n.call(o, \"finallyLoc\") && this.prev < o.finallyLoc) {\n var i = o;\n break;\n }\n }\n i && (\"break\" === t || \"continue\" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);\n var a = i ? i.completion : {};\n return a.type = t, a.arg = e, i ? (this.method = \"next\", this.next = i.finallyLoc, y) : this.complete(a);\n },\n complete: function complete(t, e) {\n if (\"throw\" === t.type) throw t.arg;\n return \"break\" === t.type || \"continue\" === t.type ? this.next = t.arg : \"return\" === t.type ? (this.rval = this.arg = t.arg, this.method = \"return\", this.next = \"end\") : \"normal\" === t.type && e && (this.next = e), y;\n },\n finish: function finish(t) {\n for (var e = this.tryEntries.length - 1; e >= 0; --e) {\n var r = this.tryEntries[e];\n if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;\n }\n },\n \"catch\": function _catch(t) {\n for (var e = this.tryEntries.length - 1; e >= 0; --e) {\n var r = this.tryEntries[e];\n if (r.tryLoc === t) {\n var n = r.completion;\n if (\"throw\" === n.type) {\n var o = n.arg;\n resetTryEntry(r);\n }\n return o;\n }\n }\n throw new Error(\"illegal catch attempt\");\n },\n delegateYield: function delegateYield(e, r, n) {\n return this.delegate = {\n iterator: values(e),\n resultName: r,\n nextLoc: n\n }, \"next\" === this.method && (this.arg = t), y;\n }\n }, e;\n}\nmodule.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _setPrototypeOf(o, p) {\n module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n }, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;\n return _setPrototypeOf(o, p);\n}\nmodule.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var arrayWithHoles = require(\"./arrayWithHoles.js\");\nvar iterableToArrayLimit = require(\"./iterableToArrayLimit.js\");\nvar unsupportedIterableToArray = require(\"./unsupportedIterableToArray.js\");\nvar nonIterableRest = require(\"./nonIterableRest.js\");\nfunction _slicedToArray(arr, i) {\n return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest();\n}\nmodule.exports = _slicedToArray, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _taggedTemplateLiteral(strings, raw) {\n if (!raw) {\n raw = strings.slice(0);\n }\n return Object.freeze(Object.defineProperties(strings, {\n raw: {\n value: Object.freeze(raw)\n }\n }));\n}\nmodule.exports = _taggedTemplateLiteral, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var arrayWithoutHoles = require(\"./arrayWithoutHoles.js\");\nvar iterableToArray = require(\"./iterableToArray.js\");\nvar unsupportedIterableToArray = require(\"./unsupportedIterableToArray.js\");\nvar nonIterableSpread = require(\"./nonIterableSpread.js\");\nfunction _toConsumableArray(arr) {\n return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread();\n}\nmodule.exports = _toConsumableArray, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var _typeof = require(\"./typeof.js\")[\"default\"];\nfunction _toPrimitive(input, hint) {\n if (_typeof(input) !== \"object\" || input === null) return input;\n var prim = input[Symbol.toPrimitive];\n if (prim !== undefined) {\n var res = prim.call(input, hint || \"default\");\n if (_typeof(res) !== \"object\") return res;\n throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n }\n return (hint === \"string\" ? String : Number)(input);\n}\nmodule.exports = _toPrimitive, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var _typeof = require(\"./typeof.js\")[\"default\"];\nvar toPrimitive = require(\"./toPrimitive.js\");\nfunction _toPropertyKey(arg) {\n var key = toPrimitive(arg, \"string\");\n return _typeof(key) === \"symbol\" ? key : String(key);\n}\nmodule.exports = _toPropertyKey, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _typeof(o) {\n \"@babel/helpers - typeof\";\n\n return (module.exports = _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) {\n return typeof o;\n } : function (o) {\n return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o;\n }, module.exports.__esModule = true, module.exports[\"default\"] = module.exports), _typeof(o);\n}\nmodule.exports = _typeof, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var arrayLikeToArray = require(\"./arrayLikeToArray.js\");\nfunction _unsupportedIterableToArray(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return arrayLikeToArray(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(o);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);\n}\nmodule.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var getPrototypeOf = require(\"./getPrototypeOf.js\");\nvar setPrototypeOf = require(\"./setPrototypeOf.js\");\nvar isNativeFunction = require(\"./isNativeFunction.js\");\nvar construct = require(\"./construct.js\");\nfunction _wrapNativeSuper(Class) {\n var _cache = typeof Map === \"function\" ? new Map() : undefined;\n module.exports = _wrapNativeSuper = function _wrapNativeSuper(Class) {\n if (Class === null || !isNativeFunction(Class)) return Class;\n if (typeof Class !== \"function\") {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n if (typeof _cache !== \"undefined\") {\n if (_cache.has(Class)) return _cache.get(Class);\n _cache.set(Class, Wrapper);\n }\n function Wrapper() {\n return construct(Class, arguments, getPrototypeOf(this).constructor);\n }\n Wrapper.prototype = Object.create(Class.prototype, {\n constructor: {\n value: Wrapper,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n return setPrototypeOf(Wrapper, Class);\n }, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;\n return _wrapNativeSuper(Class);\n}\nmodule.exports = _wrapNativeSuper, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = function(module) {\n\tvar getter = module && module.__esModule ?\n\t\tfunction() { return module['default']; } :\n\t\tfunction() { return module; };\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","// define __esModule on exports\n__webpack_require__.r = function(exports) {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};",null,null,"/**\n * Return true if `value` is object-like. A value is object-like if it's not\n * `null` and has a `typeof` result of \"object\".\n */\nexport function isObjectLike(value) {\n return typeof value == 'object' && value !== null;\n}\n","export function invariant(condition, message) {\n const booleanCondition = Boolean(condition);\n\n if (!booleanCondition) {\n throw new Error(\n message != null ? message : 'Unexpected invariant triggered.',\n );\n }\n}\n","import { invariant } from '../jsutils/invariant.mjs';\nconst LineRegExp = /\\r\\n|[\\n\\r]/g;\n/**\n * Represents a location in a Source.\n */\n\n/**\n * Takes a Source and a UTF-8 character offset, and returns the corresponding\n * line and column as a SourceLocation.\n */\nexport function getLocation(source, position) {\n let lastLineStart = 0;\n let line = 1;\n\n for (const match of source.body.matchAll(LineRegExp)) {\n typeof match.index === 'number' || invariant(false);\n\n if (match.index >= position) {\n break;\n }\n\n lastLineStart = match.index + match[0].length;\n line += 1;\n }\n\n return {\n line,\n column: position + 1 - lastLineStart,\n };\n}\n","import { getLocation } from './location.mjs';\n\n/**\n * Render a helpful description of the location in the GraphQL Source document.\n */\nexport function printLocation(location) {\n return printSourceLocation(\n location.source,\n getLocation(location.source, location.start),\n );\n}\n/**\n * Render a helpful description of the location in the GraphQL Source document.\n */\n\nexport function printSourceLocation(source, sourceLocation) {\n const firstLineColumnOffset = source.locationOffset.column - 1;\n const body = ''.padStart(firstLineColumnOffset) + source.body;\n const lineIndex = sourceLocation.line - 1;\n const lineOffset = source.locationOffset.line - 1;\n const lineNum = sourceLocation.line + lineOffset;\n const columnOffset = sourceLocation.line === 1 ? firstLineColumnOffset : 0;\n const columnNum = sourceLocation.column + columnOffset;\n const locationStr = `${source.name}:${lineNum}:${columnNum}\\n`;\n const lines = body.split(/\\r\\n|[\\n\\r]/g);\n const locationLine = lines[lineIndex]; // Special case for minified documents\n\n if (locationLine.length > 120) {\n const subLineIndex = Math.floor(columnNum / 80);\n const subLineColumnNum = columnNum % 80;\n const subLines = [];\n\n for (let i = 0; i < locationLine.length; i += 80) {\n subLines.push(locationLine.slice(i, i + 80));\n }\n\n return (\n locationStr +\n printPrefixedLines([\n [`${lineNum} |`, subLines[0]],\n ...subLines.slice(1, subLineIndex + 1).map((subLine) => ['|', subLine]),\n ['|', '^'.padStart(subLineColumnNum)],\n ['|', subLines[subLineIndex + 1]],\n ])\n );\n }\n\n return (\n locationStr +\n printPrefixedLines([\n // Lines specified like this: [\"prefix\", \"string\"],\n [`${lineNum - 1} |`, lines[lineIndex - 1]],\n [`${lineNum} |`, locationLine],\n ['|', '^'.padStart(columnNum)],\n [`${lineNum + 1} |`, lines[lineIndex + 1]],\n ])\n );\n}\n\nfunction printPrefixedLines(lines) {\n const existingLines = lines.filter(([_, line]) => line !== undefined);\n const padLen = Math.max(...existingLines.map(([prefix]) => prefix.length));\n return existingLines\n .map(([prefix, line]) => prefix.padStart(padLen) + (line ? ' ' + line : ''))\n .join('\\n');\n}\n","import { isObjectLike } from '../jsutils/isObjectLike.mjs';\nimport { getLocation } from '../language/location.mjs';\nimport {\n printLocation,\n printSourceLocation,\n} from '../language/printLocation.mjs';\n\nfunction toNormalizedOptions(args) {\n const firstArg = args[0];\n\n if (firstArg == null || 'kind' in firstArg || 'length' in firstArg) {\n return {\n nodes: firstArg,\n source: args[1],\n positions: args[2],\n path: args[3],\n originalError: args[4],\n extensions: args[5],\n };\n }\n\n return firstArg;\n}\n/**\n * A GraphQLError describes an Error found during the parse, validate, or\n * execute phases of performing a GraphQL operation. In addition to a message\n * and stack trace, it also includes information about the locations in a\n * GraphQL document and/or execution result that correspond to the Error.\n */\n\nexport class GraphQLError extends Error {\n /**\n * An array of `{ line, column }` locations within the source GraphQL document\n * which correspond to this error.\n *\n * Errors during validation often contain multiple locations, for example to\n * point out two things with the same name. Errors during execution include a\n * single location, the field which produced the error.\n *\n * Enumerable, and appears in the result of JSON.stringify().\n */\n\n /**\n * An array describing the JSON-path into the execution response which\n * corresponds to this error. Only included for errors during execution.\n *\n * Enumerable, and appears in the result of JSON.stringify().\n */\n\n /**\n * An array of GraphQL AST Nodes corresponding to this error.\n */\n\n /**\n * The source GraphQL document for the first location of this error.\n *\n * Note that if this Error represents more than one node, the source may not\n * represent nodes after the first node.\n */\n\n /**\n * An array of character offsets within the source GraphQL document\n * which correspond to this error.\n */\n\n /**\n * The original error thrown from a field resolver during execution.\n */\n\n /**\n * Extension fields to add to the formatted error.\n */\n\n /**\n * @deprecated Please use the `GraphQLErrorOptions` constructor overload instead.\n */\n constructor(message, ...rawArgs) {\n var _this$nodes, _nodeLocations$, _ref;\n\n const { nodes, source, positions, path, originalError, extensions } =\n toNormalizedOptions(rawArgs);\n super(message);\n this.name = 'GraphQLError';\n this.path = path !== null && path !== void 0 ? path : undefined;\n this.originalError =\n originalError !== null && originalError !== void 0\n ? originalError\n : undefined; // Compute list of blame nodes.\n\n this.nodes = undefinedIfEmpty(\n Array.isArray(nodes) ? nodes : nodes ? [nodes] : undefined,\n );\n const nodeLocations = undefinedIfEmpty(\n (_this$nodes = this.nodes) === null || _this$nodes === void 0\n ? void 0\n : _this$nodes.map((node) => node.loc).filter((loc) => loc != null),\n ); // Compute locations in the source for the given nodes/positions.\n\n this.source =\n source !== null && source !== void 0\n ? source\n : nodeLocations === null || nodeLocations === void 0\n ? void 0\n : (_nodeLocations$ = nodeLocations[0]) === null ||\n _nodeLocations$ === void 0\n ? void 0\n : _nodeLocations$.source;\n this.positions =\n positions !== null && positions !== void 0\n ? positions\n : nodeLocations === null || nodeLocations === void 0\n ? void 0\n : nodeLocations.map((loc) => loc.start);\n this.locations =\n positions && source\n ? positions.map((pos) => getLocation(source, pos))\n : nodeLocations === null || nodeLocations === void 0\n ? void 0\n : nodeLocations.map((loc) => getLocation(loc.source, loc.start));\n const originalExtensions = isObjectLike(\n originalError === null || originalError === void 0\n ? void 0\n : originalError.extensions,\n )\n ? originalError === null || originalError === void 0\n ? void 0\n : originalError.extensions\n : undefined;\n this.extensions =\n (_ref =\n extensions !== null && extensions !== void 0\n ? extensions\n : originalExtensions) !== null && _ref !== void 0\n ? _ref\n : Object.create(null); // Only properties prescribed by the spec should be enumerable.\n // Keep the rest as non-enumerable.\n\n Object.defineProperties(this, {\n message: {\n writable: true,\n enumerable: true,\n },\n name: {\n enumerable: false,\n },\n nodes: {\n enumerable: false,\n },\n source: {\n enumerable: false,\n },\n positions: {\n enumerable: false,\n },\n originalError: {\n enumerable: false,\n },\n }); // Include (non-enumerable) stack trace.\n\n /* c8 ignore start */\n // FIXME: https://github.com/graphql/graphql-js/issues/2317\n\n if (\n originalError !== null &&\n originalError !== void 0 &&\n originalError.stack\n ) {\n Object.defineProperty(this, 'stack', {\n value: originalError.stack,\n writable: true,\n configurable: true,\n });\n } else if (Error.captureStackTrace) {\n Error.captureStackTrace(this, GraphQLError);\n } else {\n Object.defineProperty(this, 'stack', {\n value: Error().stack,\n writable: true,\n configurable: true,\n });\n }\n /* c8 ignore stop */\n }\n\n get [Symbol.toStringTag]() {\n return 'GraphQLError';\n }\n\n toString() {\n let output = this.message;\n\n if (this.nodes) {\n for (const node of this.nodes) {\n if (node.loc) {\n output += '\\n\\n' + printLocation(node.loc);\n }\n }\n } else if (this.source && this.locations) {\n for (const location of this.locations) {\n output += '\\n\\n' + printSourceLocation(this.source, location);\n }\n }\n\n return output;\n }\n\n toJSON() {\n const formattedError = {\n message: this.message,\n };\n\n if (this.locations != null) {\n formattedError.locations = this.locations;\n }\n\n if (this.path != null) {\n formattedError.path = this.path;\n }\n\n if (this.extensions != null && Object.keys(this.extensions).length > 0) {\n formattedError.extensions = this.extensions;\n }\n\n return formattedError;\n }\n}\n\nfunction undefinedIfEmpty(array) {\n return array === undefined || array.length === 0 ? undefined : array;\n}\n/**\n * See: https://spec.graphql.org/draft/#sec-Errors\n */\n\n/**\n * Prints a GraphQLError to a string, representing useful location information\n * about the error's position in the source.\n *\n * @deprecated Please use `error.toString` instead. Will be removed in v17\n */\nexport function printError(error) {\n return error.toString();\n}\n/**\n * Given a GraphQLError, format it according to the rules described by the\n * Response Format, Errors section of the GraphQL Specification.\n *\n * @deprecated Please use `error.toJSON` instead. Will be removed in v17\n */\n\nexport function formatError(error) {\n return error.toJSON();\n}\n","import { GraphQLError } from './GraphQLError.mjs';\n/**\n * Produces a GraphQLError representing a syntax error, containing useful\n * descriptive information about the syntax error's position in the source.\n */\n\nexport function syntaxError(source, position, description) {\n return new GraphQLError(`Syntax Error: ${description}`, {\n source,\n positions: [position],\n });\n}\n","/**\n * Contains a range of UTF-8 character offsets and token references that\n * identify the region of the source from which the AST derived.\n */\nexport class Location {\n /**\n * The character offset at which this Node begins.\n */\n\n /**\n * The character offset at which this Node ends.\n */\n\n /**\n * The Token at which this Node begins.\n */\n\n /**\n * The Token at which this Node ends.\n */\n\n /**\n * The Source document the AST represents.\n */\n constructor(startToken, endToken, source) {\n this.start = startToken.start;\n this.end = endToken.end;\n this.startToken = startToken;\n this.endToken = endToken;\n this.source = source;\n }\n\n get [Symbol.toStringTag]() {\n return 'Location';\n }\n\n toJSON() {\n return {\n start: this.start,\n end: this.end,\n };\n }\n}\n/**\n * Represents a range of characters represented by a lexical token\n * within a Source.\n */\n\nexport class Token {\n /**\n * The kind of Token.\n */\n\n /**\n * The character offset at which this Node begins.\n */\n\n /**\n * The character offset at which this Node ends.\n */\n\n /**\n * The 1-indexed line number on which this Token appears.\n */\n\n /**\n * The 1-indexed column number at which this Token begins.\n */\n\n /**\n * For non-punctuation tokens, represents the interpreted value of the token.\n *\n * Note: is undefined for punctuation tokens, but typed as string for\n * convenience in the parser.\n */\n\n /**\n * Tokens exist as nodes in a double-linked-list amongst all tokens\n * including ignored tokens. <SOF> is always the first node and <EOF>\n * the last.\n */\n constructor(kind, start, end, line, column, value) {\n this.kind = kind;\n this.start = start;\n this.end = end;\n this.line = line;\n this.column = column; // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n\n this.value = value;\n this.prev = null;\n this.next = null;\n }\n\n get [Symbol.toStringTag]() {\n return 'Token';\n }\n\n toJSON() {\n return {\n kind: this.kind,\n value: this.value,\n line: this.line,\n column: this.column,\n };\n }\n}\n/**\n * The list of all possible AST node types.\n */\n\n/**\n * @internal\n */\nexport const QueryDocumentKeys = {\n Name: [],\n Document: ['definitions'],\n OperationDefinition: [\n 'name',\n 'variableDefinitions',\n 'directives',\n 'selectionSet',\n ],\n VariableDefinition: ['variable', 'type', 'defaultValue', 'directives'],\n Variable: ['name'],\n SelectionSet: ['selections'],\n Field: ['alias', 'name', 'arguments', 'directives', 'selectionSet'],\n Argument: ['name', 'value'],\n FragmentSpread: ['name', 'directives'],\n InlineFragment: ['typeCondition', 'directives', 'selectionSet'],\n FragmentDefinition: [\n 'name', // Note: fragment variable definitions are deprecated and will removed in v17.0.0\n 'variableDefinitions',\n 'typeCondition',\n 'directives',\n 'selectionSet',\n ],\n IntValue: [],\n FloatValue: [],\n StringValue: [],\n BooleanValue: [],\n NullValue: [],\n EnumValue: [],\n ListValue: ['values'],\n ObjectValue: ['fields'],\n ObjectField: ['name', 'value'],\n Directive: ['name', 'arguments'],\n NamedType: ['name'],\n ListType: ['type'],\n NonNullType: ['type'],\n SchemaDefinition: ['description', 'directives', 'operationTypes'],\n OperationTypeDefinition: ['type'],\n ScalarTypeDefinition: ['description', 'name', 'directives'],\n ObjectTypeDefinition: [\n 'description',\n 'name',\n 'interfaces',\n 'directives',\n 'fields',\n ],\n FieldDefinition: ['description', 'name', 'arguments', 'type', 'directives'],\n InputValueDefinition: [\n 'description',\n 'name',\n 'type',\n 'defaultValue',\n 'directives',\n ],\n InterfaceTypeDefinition: [\n 'description',\n 'name',\n 'interfaces',\n 'directives',\n 'fields',\n ],\n UnionTypeDefinition: ['description', 'name', 'directives', 'types'],\n EnumTypeDefinition: ['description', 'name', 'directives', 'values'],\n EnumValueDefinition: ['description', 'name', 'directives'],\n InputObjectTypeDefinition: ['description', 'name', 'directives', 'fields'],\n DirectiveDefinition: ['description', 'name', 'arguments', 'locations'],\n SchemaExtension: ['directives', 'operationTypes'],\n ScalarTypeExtension: ['name', 'directives'],\n ObjectTypeExtension: ['name', 'interfaces', 'directives', 'fields'],\n InterfaceTypeExtension: ['name', 'interfaces', 'directives', 'fields'],\n UnionTypeExtension: ['name', 'directives', 'types'],\n EnumTypeExtension: ['name', 'directives', 'values'],\n InputObjectTypeExtension: ['name', 'directives', 'fields'],\n};\nconst kindValues = new Set(Object.keys(QueryDocumentKeys));\n/**\n * @internal\n */\n\nexport function isNode(maybeNode) {\n const maybeKind =\n maybeNode === null || maybeNode === void 0 ? void 0 : maybeNode.kind;\n return typeof maybeKind === 'string' && kindValues.has(maybeKind);\n}\n/** Name */\n\nvar OperationTypeNode;\n\n(function (OperationTypeNode) {\n OperationTypeNode['QUERY'] = 'query';\n OperationTypeNode['MUTATION'] = 'mutation';\n OperationTypeNode['SUBSCRIPTION'] = 'subscription';\n})(OperationTypeNode || (OperationTypeNode = {}));\n\nexport { OperationTypeNode };\n","/**\n * The set of allowed directive location values.\n */\nvar DirectiveLocation;\n\n(function (DirectiveLocation) {\n DirectiveLocation['QUERY'] = 'QUERY';\n DirectiveLocation['MUTATION'] = 'MUTATION';\n DirectiveLocation['SUBSCRIPTION'] = 'SUBSCRIPTION';\n DirectiveLocation['FIELD'] = 'FIELD';\n DirectiveLocation['FRAGMENT_DEFINITION'] = 'FRAGMENT_DEFINITION';\n DirectiveLocation['FRAGMENT_SPREAD'] = 'FRAGMENT_SPREAD';\n DirectiveLocation['INLINE_FRAGMENT'] = 'INLINE_FRAGMENT';\n DirectiveLocation['VARIABLE_DEFINITION'] = 'VARIABLE_DEFINITION';\n DirectiveLocation['SCHEMA'] = 'SCHEMA';\n DirectiveLocation['SCALAR'] = 'SCALAR';\n DirectiveLocation['OBJECT'] = 'OBJECT';\n DirectiveLocation['FIELD_DEFINITION'] = 'FIELD_DEFINITION';\n DirectiveLocation['ARGUMENT_DEFINITION'] = 'ARGUMENT_DEFINITION';\n DirectiveLocation['INTERFACE'] = 'INTERFACE';\n DirectiveLocation['UNION'] = 'UNION';\n DirectiveLocation['ENUM'] = 'ENUM';\n DirectiveLocation['ENUM_VALUE'] = 'ENUM_VALUE';\n DirectiveLocation['INPUT_OBJECT'] = 'INPUT_OBJECT';\n DirectiveLocation['INPUT_FIELD_DEFINITION'] = 'INPUT_FIELD_DEFINITION';\n})(DirectiveLocation || (DirectiveLocation = {}));\n\nexport { DirectiveLocation };\n/**\n * The enum type representing the directive location values.\n *\n * @deprecated Please use `DirectiveLocation`. Will be remove in v17.\n */\n","/**\n * The set of allowed kind values for AST nodes.\n */\nvar Kind;\n\n(function (Kind) {\n Kind['NAME'] = 'Name';\n Kind['DOCUMENT'] = 'Document';\n Kind['OPERATION_DEFINITION'] = 'OperationDefinition';\n Kind['VARIABLE_DEFINITION'] = 'VariableDefinition';\n Kind['SELECTION_SET'] = 'SelectionSet';\n Kind['FIELD'] = 'Field';\n Kind['ARGUMENT'] = 'Argument';\n Kind['FRAGMENT_SPREAD'] = 'FragmentSpread';\n Kind['INLINE_FRAGMENT'] = 'InlineFragment';\n Kind['FRAGMENT_DEFINITION'] = 'FragmentDefinition';\n Kind['VARIABLE'] = 'Variable';\n Kind['INT'] = 'IntValue';\n Kind['FLOAT'] = 'FloatValue';\n Kind['STRING'] = 'StringValue';\n Kind['BOOLEAN'] = 'BooleanValue';\n Kind['NULL'] = 'NullValue';\n Kind['ENUM'] = 'EnumValue';\n Kind['LIST'] = 'ListValue';\n Kind['OBJECT'] = 'ObjectValue';\n Kind['OBJECT_FIELD'] = 'ObjectField';\n Kind['DIRECTIVE'] = 'Directive';\n Kind['NAMED_TYPE'] = 'NamedType';\n Kind['LIST_TYPE'] = 'ListType';\n Kind['NON_NULL_TYPE'] = 'NonNullType';\n Kind['SCHEMA_DEFINITION'] = 'SchemaDefinition';\n Kind['OPERATION_TYPE_DEFINITION'] = 'OperationTypeDefinition';\n Kind['SCALAR_TYPE_DEFINITION'] = 'ScalarTypeDefinition';\n Kind['OBJECT_TYPE_DEFINITION'] = 'ObjectTypeDefinition';\n Kind['FIELD_DEFINITION'] = 'FieldDefinition';\n Kind['INPUT_VALUE_DEFINITION'] = 'InputValueDefinition';\n Kind['INTERFACE_TYPE_DEFINITION'] = 'InterfaceTypeDefinition';\n Kind['UNION_TYPE_DEFINITION'] = 'UnionTypeDefinition';\n Kind['ENUM_TYPE_DEFINITION'] = 'EnumTypeDefinition';\n Kind['ENUM_VALUE_DEFINITION'] = 'EnumValueDefinition';\n Kind['INPUT_OBJECT_TYPE_DEFINITION'] = 'InputObjectTypeDefinition';\n Kind['DIRECTIVE_DEFINITION'] = 'DirectiveDefinition';\n Kind['SCHEMA_EXTENSION'] = 'SchemaExtension';\n Kind['SCALAR_TYPE_EXTENSION'] = 'ScalarTypeExtension';\n Kind['OBJECT_TYPE_EXTENSION'] = 'ObjectTypeExtension';\n Kind['INTERFACE_TYPE_EXTENSION'] = 'InterfaceTypeExtension';\n Kind['UNION_TYPE_EXTENSION'] = 'UnionTypeExtension';\n Kind['ENUM_TYPE_EXTENSION'] = 'EnumTypeExtension';\n Kind['INPUT_OBJECT_TYPE_EXTENSION'] = 'InputObjectTypeExtension';\n})(Kind || (Kind = {}));\n\nexport { Kind };\n/**\n * The enum type representing the possible kind values of AST nodes.\n *\n * @deprecated Please use `Kind`. Will be remove in v17.\n */\n","/**\n * An exported enum describing the different kinds of tokens that the\n * lexer emits.\n */\nvar TokenKind;\n\n(function (TokenKind) {\n TokenKind['SOF'] = '<SOF>';\n TokenKind['EOF'] = '<EOF>';\n TokenKind['BANG'] = '!';\n TokenKind['DOLLAR'] = '$';\n TokenKind['AMP'] = '&';\n TokenKind['PAREN_L'] = '(';\n TokenKind['PAREN_R'] = ')';\n TokenKind['SPREAD'] = '...';\n TokenKind['COLON'] = ':';\n TokenKind['EQUALS'] = '=';\n TokenKind['AT'] = '@';\n TokenKind['BRACKET_L'] = '[';\n TokenKind['BRACKET_R'] = ']';\n TokenKind['BRACE_L'] = '{';\n TokenKind['PIPE'] = '|';\n TokenKind['BRACE_R'] = '}';\n TokenKind['NAME'] = 'Name';\n TokenKind['INT'] = 'Int';\n TokenKind['FLOAT'] = 'Float';\n TokenKind['STRING'] = 'String';\n TokenKind['BLOCK_STRING'] = 'BlockString';\n TokenKind['COMMENT'] = 'Comment';\n})(TokenKind || (TokenKind = {}));\n\nexport { TokenKind };\n/**\n * The enum type representing the token kinds values.\n *\n * @deprecated Please use `TokenKind`. Will be remove in v17.\n */\n","/**\n * ```\n * WhiteSpace ::\n * - \"Horizontal Tab (U+0009)\"\n * - \"Space (U+0020)\"\n * ```\n * @internal\n */\nexport function isWhiteSpace(code) {\n return code === 0x0009 || code === 0x0020;\n}\n/**\n * ```\n * Digit :: one of\n * - `0` `1` `2` `3` `4` `5` `6` `7` `8` `9`\n * ```\n * @internal\n */\n\nexport function isDigit(code) {\n return code >= 0x0030 && code <= 0x0039;\n}\n/**\n * ```\n * Letter :: one of\n * - `A` `B` `C` `D` `E` `F` `G` `H` `I` `J` `K` `L` `M`\n * - `N` `O` `P` `Q` `R` `S` `T` `U` `V` `W` `X` `Y` `Z`\n * - `a` `b` `c` `d` `e` `f` `g` `h` `i` `j` `k` `l` `m`\n * - `n` `o` `p` `q` `r` `s` `t` `u` `v` `w` `x` `y` `z`\n * ```\n * @internal\n */\n\nexport function isLetter(code) {\n return (\n (code >= 0x0061 && code <= 0x007a) || // A-Z\n (code >= 0x0041 && code <= 0x005a) // a-z\n );\n}\n/**\n * ```\n * NameStart ::\n * - Letter\n * - `_`\n * ```\n * @internal\n */\n\nexport function isNameStart(code) {\n return isLetter(code) || code === 0x005f;\n}\n/**\n * ```\n * NameContinue ::\n * - Letter\n * - Digit\n * - `_`\n * ```\n * @internal\n */\n\nexport function isNameContinue(code) {\n return isLetter(code) || isDigit(code) || code === 0x005f;\n}\n","import { isWhiteSpace } from './characterClasses.mjs';\n/**\n * Produces the value of a block string from its parsed raw value, similar to\n * CoffeeScript's block string, Python's docstring trim or Ruby's strip_heredoc.\n *\n * This implements the GraphQL spec's BlockStringValue() static algorithm.\n *\n * @internal\n */\n\nexport function dedentBlockStringLines(lines) {\n var _firstNonEmptyLine2;\n\n let commonIndent = Number.MAX_SAFE_INTEGER;\n let firstNonEmptyLine = null;\n let lastNonEmptyLine = -1;\n\n for (let i = 0; i < lines.length; ++i) {\n var _firstNonEmptyLine;\n\n const line = lines[i];\n const indent = leadingWhitespace(line);\n\n if (indent === line.length) {\n continue; // skip empty lines\n }\n\n firstNonEmptyLine =\n (_firstNonEmptyLine = firstNonEmptyLine) !== null &&\n _firstNonEmptyLine !== void 0\n ? _firstNonEmptyLine\n : i;\n lastNonEmptyLine = i;\n\n if (i !== 0 && indent < commonIndent) {\n commonIndent = indent;\n }\n }\n\n return lines // Remove common indentation from all lines but first.\n .map((line, i) => (i === 0 ? line : line.slice(commonIndent))) // Remove leading and trailing blank lines.\n .slice(\n (_firstNonEmptyLine2 = firstNonEmptyLine) !== null &&\n _firstNonEmptyLine2 !== void 0\n ? _firstNonEmptyLine2\n : 0,\n lastNonEmptyLine + 1,\n );\n}\n\nfunction leadingWhitespace(str) {\n let i = 0;\n\n while (i < str.length && isWhiteSpace(str.charCodeAt(i))) {\n ++i;\n }\n\n return i;\n}\n/**\n * @internal\n */\n\nexport function isPrintableAsBlockString(value) {\n if (value === '') {\n return true; // empty string is printable\n }\n\n let isEmptyLine = true;\n let hasIndent = false;\n let hasCommonIndent = true;\n let seenNonEmptyLine = false;\n\n for (let i = 0; i < value.length; ++i) {\n switch (value.codePointAt(i)) {\n case 0x0000:\n case 0x0001:\n case 0x0002:\n case 0x0003:\n case 0x0004:\n case 0x0005:\n case 0x0006:\n case 0x0007:\n case 0x0008:\n case 0x000b:\n case 0x000c:\n case 0x000e:\n case 0x000f:\n return false;\n // Has non-printable characters\n\n case 0x000d:\n // \\r\n return false;\n // Has \\r or \\r\\n which will be replaced as \\n\n\n case 10:\n // \\n\n if (isEmptyLine && !seenNonEmptyLine) {\n return false; // Has leading new line\n }\n\n seenNonEmptyLine = true;\n isEmptyLine = true;\n hasIndent = false;\n break;\n\n case 9: // \\t\n\n case 32:\n // <space>\n hasIndent || (hasIndent = isEmptyLine);\n break;\n\n default:\n hasCommonIndent && (hasCommonIndent = hasIndent);\n isEmptyLine = false;\n }\n }\n\n if (isEmptyLine) {\n return false; // Has trailing empty lines\n }\n\n if (hasCommonIndent && seenNonEmptyLine) {\n return false; // Has internal indent\n }\n\n return true;\n}\n/**\n * Print a block string in the indented block form by adding a leading and\n * trailing blank line. However, if a block string starts with whitespace and is\n * a single-line, adding a leading blank line would strip that whitespace.\n *\n * @internal\n */\n\nexport function printBlockString(value, options) {\n const escapedValue = value.replace(/\"\"\"/g, '\\\\\"\"\"'); // Expand a block string's raw value into independent lines.\n\n const lines = escapedValue.split(/\\r\\n|[\\n\\r]/g);\n const isSingleLine = lines.length === 1; // If common indentation is found we can fix some of those cases by adding leading new line\n\n const forceLeadingNewLine =\n lines.length > 1 &&\n lines\n .slice(1)\n .every((line) => line.length === 0 || isWhiteSpace(line.charCodeAt(0))); // Trailing triple quotes just looks confusing but doesn't force trailing new line\n\n const hasTrailingTripleQuotes = escapedValue.endsWith('\\\\\"\"\"'); // Trailing quote (single or double) or slash forces trailing new line\n\n const hasTrailingQuote = value.endsWith('\"') && !hasTrailingTripleQuotes;\n const hasTrailingSlash = value.endsWith('\\\\');\n const forceTrailingNewline = hasTrailingQuote || hasTrailingSlash;\n const printAsMultipleLines =\n !(options !== null && options !== void 0 && options.minimize) && // add leading and trailing new lines only if it improves readability\n (!isSingleLine ||\n value.length > 70 ||\n forceTrailingNewline ||\n forceLeadingNewLine ||\n hasTrailingTripleQuotes);\n let result = ''; // Format a multi-line block quote to account for leading space.\n\n const skipLeadingNewLine = isSingleLine && isWhiteSpace(value.charCodeAt(0));\n\n if ((printAsMultipleLines && !skipLeadingNewLine) || forceLeadingNewLine) {\n result += '\\n';\n }\n\n result += escapedValue;\n\n if (printAsMultipleLines || forceTrailingNewline) {\n result += '\\n';\n }\n\n return '\"\"\"' + result + '\"\"\"';\n}\n","import { syntaxError } from '../error/syntaxError.mjs';\nimport { Token } from './ast.mjs';\nimport { dedentBlockStringLines } from './blockString.mjs';\nimport { isDigit, isNameContinue, isNameStart } from './characterClasses.mjs';\nimport { TokenKind } from './tokenKind.mjs';\n/**\n * Given a Source object, creates a Lexer for that source.\n * A Lexer is a stateful stream generator in that every time\n * it is advanced, it returns the next token in the Source. Assuming the\n * source lexes, the final Token emitted by the lexer will be of kind\n * EOF, after which the lexer will repeatedly return the same EOF token\n * whenever called.\n */\n\nexport class Lexer {\n /**\n * The previously focused non-ignored token.\n */\n\n /**\n * The currently focused non-ignored token.\n */\n\n /**\n * The (1-indexed) line containing the current token.\n */\n\n /**\n * The character offset at which the current line begins.\n */\n constructor(source) {\n const startOfFileToken = new Token(TokenKind.SOF, 0, 0, 0, 0);\n this.source = source;\n this.lastToken = startOfFileToken;\n this.token = startOfFileToken;\n this.line = 1;\n this.lineStart = 0;\n }\n\n get [Symbol.toStringTag]() {\n return 'Lexer';\n }\n /**\n * Advances the token stream to the next non-ignored token.\n */\n\n advance() {\n this.lastToken = this.token;\n const token = (this.token = this.lookahead());\n return token;\n }\n /**\n * Looks ahead and returns the next non-ignored token, but does not change\n * the state of Lexer.\n */\n\n lookahead() {\n let token = this.token;\n\n if (token.kind !== TokenKind.EOF) {\n do {\n if (token.next) {\n token = token.next;\n } else {\n // Read the next token and form a link in the token linked-list.\n const nextToken = readNextToken(this, token.end); // @ts-expect-error next is only mutable during parsing.\n\n token.next = nextToken; // @ts-expect-error prev is only mutable during parsing.\n\n nextToken.prev = token;\n token = nextToken;\n }\n } while (token.kind === TokenKind.COMMENT);\n }\n\n return token;\n }\n}\n/**\n * @internal\n */\n\nexport function isPunctuatorTokenKind(kind) {\n return (\n kind === TokenKind.BANG ||\n kind === TokenKind.DOLLAR ||\n kind === TokenKind.AMP ||\n kind === TokenKind.PAREN_L ||\n kind === TokenKind.PAREN_R ||\n kind === TokenKind.SPREAD ||\n kind === TokenKind.COLON ||\n kind === TokenKind.EQUALS ||\n kind === TokenKind.AT ||\n kind === TokenKind.BRACKET_L ||\n kind === TokenKind.BRACKET_R ||\n kind === TokenKind.BRACE_L ||\n kind === TokenKind.PIPE ||\n kind === TokenKind.BRACE_R\n );\n}\n/**\n * A Unicode scalar value is any Unicode code point except surrogate code\n * points. In other words, the inclusive ranges of values 0x0000 to 0xD7FF and\n * 0xE000 to 0x10FFFF.\n *\n * SourceCharacter ::\n * - \"Any Unicode scalar value\"\n */\n\nfunction isUnicodeScalarValue(code) {\n return (\n (code >= 0x0000 && code <= 0xd7ff) || (code >= 0xe000 && code <= 0x10ffff)\n );\n}\n/**\n * The GraphQL specification defines source text as a sequence of unicode scalar\n * values (which Unicode defines to exclude surrogate code points). However\n * JavaScript defines strings as a sequence of UTF-16 code units which may\n * include surrogates. A surrogate pair is a valid source character as it\n * encodes a supplementary code point (above U+FFFF), but unpaired surrogate\n * code points are not valid source characters.\n */\n\nfunction isSupplementaryCodePoint(body, location) {\n return (\n isLeadingSurrogate(body.charCodeAt(location)) &&\n isTrailingSurrogate(body.charCodeAt(location + 1))\n );\n}\n\nfunction isLeadingSurrogate(code) {\n return code >= 0xd800 && code <= 0xdbff;\n}\n\nfunction isTrailingSurrogate(code) {\n return code >= 0xdc00 && code <= 0xdfff;\n}\n/**\n * Prints the code point (or end of file reference) at a given location in a\n * source for use in error messages.\n *\n * Printable ASCII is printed quoted, while other points are printed in Unicode\n * code point form (ie. U+1234).\n */\n\nfunction printCodePointAt(lexer, location) {\n const code = lexer.source.body.codePointAt(location);\n\n if (code === undefined) {\n return TokenKind.EOF;\n } else if (code >= 0x0020 && code <= 0x007e) {\n // Printable ASCII\n const char = String.fromCodePoint(code);\n return char === '\"' ? \"'\\\"'\" : `\"${char}\"`;\n } // Unicode code point\n\n return 'U+' + code.toString(16).toUpperCase().padStart(4, '0');\n}\n/**\n * Create a token with line and column location information.\n */\n\nfunction createToken(lexer, kind, start, end, value) {\n const line = lexer.line;\n const col = 1 + start - lexer.lineStart;\n return new Token(kind, start, end, line, col, value);\n}\n/**\n * Gets the next token from the source starting at the given position.\n *\n * This skips over whitespace until it finds the next lexable token, then lexes\n * punctuators immediately or calls the appropriate helper function for more\n * complicated tokens.\n */\n\nfunction readNextToken(lexer, start) {\n const body = lexer.source.body;\n const bodyLength = body.length;\n let position = start;\n\n while (position < bodyLength) {\n const code = body.charCodeAt(position); // SourceCharacter\n\n switch (code) {\n // Ignored ::\n // - UnicodeBOM\n // - WhiteSpace\n // - LineTerminator\n // - Comment\n // - Comma\n //\n // UnicodeBOM :: \"Byte Order Mark (U+FEFF)\"\n //\n // WhiteSpace ::\n // - \"Horizontal Tab (U+0009)\"\n // - \"Space (U+0020)\"\n //\n // Comma :: ,\n case 0xfeff: // <BOM>\n\n case 0x0009: // \\t\n\n case 0x0020: // <space>\n\n case 0x002c:\n // ,\n ++position;\n continue;\n // LineTerminator ::\n // - \"New Line (U+000A)\"\n // - \"Carriage Return (U+000D)\" [lookahead != \"New Line (U+000A)\"]\n // - \"Carriage Return (U+000D)\" \"New Line (U+000A)\"\n\n case 0x000a:\n // \\n\n ++position;\n ++lexer.line;\n lexer.lineStart = position;\n continue;\n\n case 0x000d:\n // \\r\n if (body.charCodeAt(position + 1) === 0x000a) {\n position += 2;\n } else {\n ++position;\n }\n\n ++lexer.line;\n lexer.lineStart = position;\n continue;\n // Comment\n\n case 0x0023:\n // #\n return readComment(lexer, position);\n // Token ::\n // - Punctuator\n // - Name\n // - IntValue\n // - FloatValue\n // - StringValue\n //\n // Punctuator :: one of ! $ & ( ) ... : = @ [ ] { | }\n\n case 0x0021:\n // !\n return createToken(lexer, TokenKind.BANG, position, position + 1);\n\n case 0x0024:\n // $\n return createToken(lexer, TokenKind.DOLLAR, position, position + 1);\n\n case 0x0026:\n // &\n return createToken(lexer, TokenKind.AMP, position, position + 1);\n\n case 0x0028:\n // (\n return createToken(lexer, TokenKind.PAREN_L, position, position + 1);\n\n case 0x0029:\n // )\n return createToken(lexer, TokenKind.PAREN_R, position, position + 1);\n\n case 0x002e:\n // .\n if (\n body.charCodeAt(position + 1) === 0x002e &&\n body.charCodeAt(position + 2) === 0x002e\n ) {\n return createToken(lexer, TokenKind.SPREAD, position, position + 3);\n }\n\n break;\n\n case 0x003a:\n // :\n return createToken(lexer, TokenKind.COLON, position, position + 1);\n\n case 0x003d:\n // =\n return createToken(lexer, TokenKind.EQUALS, position, position + 1);\n\n case 0x0040:\n // @\n return createToken(lexer, TokenKind.AT, position, position + 1);\n\n case 0x005b:\n // [\n return createToken(lexer, TokenKind.BRACKET_L, position, position + 1);\n\n case 0x005d:\n // ]\n return createToken(lexer, TokenKind.BRACKET_R, position, position + 1);\n\n case 0x007b:\n // {\n return createToken(lexer, TokenKind.BRACE_L, position, position + 1);\n\n case 0x007c:\n // |\n return createToken(lexer, TokenKind.PIPE, position, position + 1);\n\n case 0x007d:\n // }\n return createToken(lexer, TokenKind.BRACE_R, position, position + 1);\n // StringValue\n\n case 0x0022:\n // \"\n if (\n body.charCodeAt(position + 1) === 0x0022 &&\n body.charCodeAt(position + 2) === 0x0022\n ) {\n return readBlockString(lexer, position);\n }\n\n return readString(lexer, position);\n } // IntValue | FloatValue (Digit | -)\n\n if (isDigit(code) || code === 0x002d) {\n return readNumber(lexer, position, code);\n } // Name\n\n if (isNameStart(code)) {\n return readName(lexer, position);\n }\n\n throw syntaxError(\n lexer.source,\n position,\n code === 0x0027\n ? 'Unexpected single quote character (\\'), did you mean to use a double quote (\")?'\n : isUnicodeScalarValue(code) || isSupplementaryCodePoint(body, position)\n ? `Unexpected character: ${printCodePointAt(lexer, position)}.`\n : `Invalid character: ${printCodePointAt(lexer, position)}.`,\n );\n }\n\n return createToken(lexer, TokenKind.EOF, bodyLength, bodyLength);\n}\n/**\n * Reads a comment token from the source file.\n *\n * ```\n * Comment :: # CommentChar* [lookahead != CommentChar]\n *\n * CommentChar :: SourceCharacter but not LineTerminator\n * ```\n */\n\nfunction readComment(lexer, start) {\n const body = lexer.source.body;\n const bodyLength = body.length;\n let position = start + 1;\n\n while (position < bodyLength) {\n const code = body.charCodeAt(position); // LineTerminator (\\n | \\r)\n\n if (code === 0x000a || code === 0x000d) {\n break;\n } // SourceCharacter\n\n if (isUnicodeScalarValue(code)) {\n ++position;\n } else if (isSupplementaryCodePoint(body, position)) {\n position += 2;\n } else {\n break;\n }\n }\n\n return createToken(\n lexer,\n TokenKind.COMMENT,\n start,\n position,\n body.slice(start + 1, position),\n );\n}\n/**\n * Reads a number token from the source file, either a FloatValue or an IntValue\n * depending on whether a FractionalPart or ExponentPart is encountered.\n *\n * ```\n * IntValue :: IntegerPart [lookahead != {Digit, `.`, NameStart}]\n *\n * IntegerPart ::\n * - NegativeSign? 0\n * - NegativeSign? NonZeroDigit Digit*\n *\n * NegativeSign :: -\n *\n * NonZeroDigit :: Digit but not `0`\n *\n * FloatValue ::\n * - IntegerPart FractionalPart ExponentPart [lookahead != {Digit, `.`, NameStart}]\n * - IntegerPart FractionalPart [lookahead != {Digit, `.`, NameStart}]\n * - IntegerPart ExponentPart [lookahead != {Digit, `.`, NameStart}]\n *\n * FractionalPart :: . Digit+\n *\n * ExponentPart :: ExponentIndicator Sign? Digit+\n *\n * ExponentIndicator :: one of `e` `E`\n *\n * Sign :: one of + -\n * ```\n */\n\nfunction readNumber(lexer, start, firstCode) {\n const body = lexer.source.body;\n let position = start;\n let code = firstCode;\n let isFloat = false; // NegativeSign (-)\n\n if (code === 0x002d) {\n code = body.charCodeAt(++position);\n } // Zero (0)\n\n if (code === 0x0030) {\n code = body.charCodeAt(++position);\n\n if (isDigit(code)) {\n throw syntaxError(\n lexer.source,\n position,\n `Invalid number, unexpected digit after 0: ${printCodePointAt(\n lexer,\n position,\n )}.`,\n );\n }\n } else {\n position = readDigits(lexer, position, code);\n code = body.charCodeAt(position);\n } // Full stop (.)\n\n if (code === 0x002e) {\n isFloat = true;\n code = body.charCodeAt(++position);\n position = readDigits(lexer, position, code);\n code = body.charCodeAt(position);\n } // E e\n\n if (code === 0x0045 || code === 0x0065) {\n isFloat = true;\n code = body.charCodeAt(++position); // + -\n\n if (code === 0x002b || code === 0x002d) {\n code = body.charCodeAt(++position);\n }\n\n position = readDigits(lexer, position, code);\n code = body.charCodeAt(position);\n } // Numbers cannot be followed by . or NameStart\n\n if (code === 0x002e || isNameStart(code)) {\n throw syntaxError(\n lexer.source,\n position,\n `Invalid number, expected digit but got: ${printCodePointAt(\n lexer,\n position,\n )}.`,\n );\n }\n\n return createToken(\n lexer,\n isFloat ? TokenKind.FLOAT : TokenKind.INT,\n start,\n position,\n body.slice(start, position),\n );\n}\n/**\n * Returns the new position in the source after reading one or more digits.\n */\n\nfunction readDigits(lexer, start, firstCode) {\n if (!isDigit(firstCode)) {\n throw syntaxError(\n lexer.source,\n start,\n `Invalid number, expected digit but got: ${printCodePointAt(\n lexer,\n start,\n )}.`,\n );\n }\n\n const body = lexer.source.body;\n let position = start + 1; // +1 to skip first firstCode\n\n while (isDigit(body.charCodeAt(position))) {\n ++position;\n }\n\n return position;\n}\n/**\n * Reads a single-quote string token from the source file.\n *\n * ```\n * StringValue ::\n * - `\"\"` [lookahead != `\"`]\n * - `\"` StringCharacter+ `\"`\n *\n * StringCharacter ::\n * - SourceCharacter but not `\"` or `\\` or LineTerminator\n * - `\\u` EscapedUnicode\n * - `\\` EscapedCharacter\n *\n * EscapedUnicode ::\n * - `{` HexDigit+ `}`\n * - HexDigit HexDigit HexDigit HexDigit\n *\n * EscapedCharacter :: one of `\"` `\\` `/` `b` `f` `n` `r` `t`\n * ```\n */\n\nfunction readString(lexer, start) {\n const body = lexer.source.body;\n const bodyLength = body.length;\n let position = start + 1;\n let chunkStart = position;\n let value = '';\n\n while (position < bodyLength) {\n const code = body.charCodeAt(position); // Closing Quote (\")\n\n if (code === 0x0022) {\n value += body.slice(chunkStart, position);\n return createToken(lexer, TokenKind.STRING, start, position + 1, value);\n } // Escape Sequence (\\)\n\n if (code === 0x005c) {\n value += body.slice(chunkStart, position);\n const escape =\n body.charCodeAt(position + 1) === 0x0075 // u\n ? body.charCodeAt(position + 2) === 0x007b // {\n ? readEscapedUnicodeVariableWidth(lexer, position)\n : readEscapedUnicodeFixedWidth(lexer, position)\n : readEscapedCharacter(lexer, position);\n value += escape.value;\n position += escape.size;\n chunkStart = position;\n continue;\n } // LineTerminator (\\n | \\r)\n\n if (code === 0x000a || code === 0x000d) {\n break;\n } // SourceCharacter\n\n if (isUnicodeScalarValue(code)) {\n ++position;\n } else if (isSupplementaryCodePoint(body, position)) {\n position += 2;\n } else {\n throw syntaxError(\n lexer.source,\n position,\n `Invalid character within String: ${printCodePointAt(\n lexer,\n position,\n )}.`,\n );\n }\n }\n\n throw syntaxError(lexer.source, position, 'Unterminated string.');\n} // The string value and lexed size of an escape sequence.\n\nfunction readEscapedUnicodeVariableWidth(lexer, position) {\n const body = lexer.source.body;\n let point = 0;\n let size = 3; // Cannot be larger than 12 chars (\\u{00000000}).\n\n while (size < 12) {\n const code = body.charCodeAt(position + size++); // Closing Brace (})\n\n if (code === 0x007d) {\n // Must be at least 5 chars (\\u{0}) and encode a Unicode scalar value.\n if (size < 5 || !isUnicodeScalarValue(point)) {\n break;\n }\n\n return {\n value: String.fromCodePoint(point),\n size,\n };\n } // Append this hex digit to the code point.\n\n point = (point << 4) | readHexDigit(code);\n\n if (point < 0) {\n break;\n }\n }\n\n throw syntaxError(\n lexer.source,\n position,\n `Invalid Unicode escape sequence: \"${body.slice(\n position,\n position + size,\n )}\".`,\n );\n}\n\nfunction readEscapedUnicodeFixedWidth(lexer, position) {\n const body = lexer.source.body;\n const code = read16BitHexCode(body, position + 2);\n\n if (isUnicodeScalarValue(code)) {\n return {\n value: String.fromCodePoint(code),\n size: 6,\n };\n } // GraphQL allows JSON-style surrogate pair escape sequences, but only when\n // a valid pair is formed.\n\n if (isLeadingSurrogate(code)) {\n // \\u\n if (\n body.charCodeAt(position + 6) === 0x005c &&\n body.charCodeAt(position + 7) === 0x0075\n ) {\n const trailingCode = read16BitHexCode(body, position + 8);\n\n if (isTrailingSurrogate(trailingCode)) {\n // JavaScript defines strings as a sequence of UTF-16 code units and\n // encodes Unicode code points above U+FFFF using a surrogate pair of\n // code units. Since this is a surrogate pair escape sequence, just\n // include both codes into the JavaScript string value. Had JavaScript\n // not been internally based on UTF-16, then this surrogate pair would\n // be decoded to retrieve the supplementary code point.\n return {\n value: String.fromCodePoint(code, trailingCode),\n size: 12,\n };\n }\n }\n }\n\n throw syntaxError(\n lexer.source,\n position,\n `Invalid Unicode escape sequence: \"${body.slice(position, position + 6)}\".`,\n );\n}\n/**\n * Reads four hexadecimal characters and returns the positive integer that 16bit\n * hexadecimal string represents. For example, \"000f\" will return 15, and \"dead\"\n * will return 57005.\n *\n * Returns a negative number if any char was not a valid hexadecimal digit.\n */\n\nfunction read16BitHexCode(body, position) {\n // readHexDigit() returns -1 on error. ORing a negative value with any other\n // value always produces a negative value.\n return (\n (readHexDigit(body.charCodeAt(position)) << 12) |\n (readHexDigit(body.charCodeAt(position + 1)) << 8) |\n (readHexDigit(body.charCodeAt(position + 2)) << 4) |\n readHexDigit(body.charCodeAt(position + 3))\n );\n}\n/**\n * Reads a hexadecimal character and returns its positive integer value (0-15).\n *\n * '0' becomes 0, '9' becomes 9\n * 'A' becomes 10, 'F' becomes 15\n * 'a' becomes 10, 'f' becomes 15\n *\n * Returns -1 if the provided character code was not a valid hexadecimal digit.\n *\n * HexDigit :: one of\n * - `0` `1` `2` `3` `4` `5` `6` `7` `8` `9`\n * - `A` `B` `C` `D` `E` `F`\n * - `a` `b` `c` `d` `e` `f`\n */\n\nfunction readHexDigit(code) {\n return code >= 0x0030 && code <= 0x0039 // 0-9\n ? code - 0x0030\n : code >= 0x0041 && code <= 0x0046 // A-F\n ? code - 0x0037\n : code >= 0x0061 && code <= 0x0066 // a-f\n ? code - 0x0057\n : -1;\n}\n/**\n * | Escaped Character | Code Point | Character Name |\n * | ----------------- | ---------- | ---------------------------- |\n * | `\"` | U+0022 | double quote |\n * | `\\` | U+005C | reverse solidus (back slash) |\n * | `/` | U+002F | solidus (forward slash) |\n * | `b` | U+0008 | backspace |\n * | `f` | U+000C | form feed |\n * | `n` | U+000A | line feed (new line) |\n * | `r` | U+000D | carriage return |\n * | `t` | U+0009 | horizontal tab |\n */\n\nfunction readEscapedCharacter(lexer, position) {\n const body = lexer.source.body;\n const code = body.charCodeAt(position + 1);\n\n switch (code) {\n case 0x0022:\n // \"\n return {\n value: '\\u0022',\n size: 2,\n };\n\n case 0x005c:\n // \\\n return {\n value: '\\u005c',\n size: 2,\n };\n\n case 0x002f:\n // /\n return {\n value: '\\u002f',\n size: 2,\n };\n\n case 0x0062:\n // b\n return {\n value: '\\u0008',\n size: 2,\n };\n\n case 0x0066:\n // f\n return {\n value: '\\u000c',\n size: 2,\n };\n\n case 0x006e:\n // n\n return {\n value: '\\u000a',\n size: 2,\n };\n\n case 0x0072:\n // r\n return {\n value: '\\u000d',\n size: 2,\n };\n\n case 0x0074:\n // t\n return {\n value: '\\u0009',\n size: 2,\n };\n }\n\n throw syntaxError(\n lexer.source,\n position,\n `Invalid character escape sequence: \"${body.slice(\n position,\n position + 2,\n )}\".`,\n );\n}\n/**\n * Reads a block string token from the source file.\n *\n * ```\n * StringValue ::\n * - `\"\"\"` BlockStringCharacter* `\"\"\"`\n *\n * BlockStringCharacter ::\n * - SourceCharacter but not `\"\"\"` or `\\\"\"\"`\n * - `\\\"\"\"`\n * ```\n */\n\nfunction readBlockString(lexer, start) {\n const body = lexer.source.body;\n const bodyLength = body.length;\n let lineStart = lexer.lineStart;\n let position = start + 3;\n let chunkStart = position;\n let currentLine = '';\n const blockLines = [];\n\n while (position < bodyLength) {\n const code = body.charCodeAt(position); // Closing Triple-Quote (\"\"\")\n\n if (\n code === 0x0022 &&\n body.charCodeAt(position + 1) === 0x0022 &&\n body.charCodeAt(position + 2) === 0x0022\n ) {\n currentLine += body.slice(chunkStart, position);\n blockLines.push(currentLine);\n const token = createToken(\n lexer,\n TokenKind.BLOCK_STRING,\n start,\n position + 3, // Return a string of the lines joined with U+000A.\n dedentBlockStringLines(blockLines).join('\\n'),\n );\n lexer.line += blockLines.length - 1;\n lexer.lineStart = lineStart;\n return token;\n } // Escaped Triple-Quote (\\\"\"\")\n\n if (\n code === 0x005c &&\n body.charCodeAt(position + 1) === 0x0022 &&\n body.charCodeAt(position + 2) === 0x0022 &&\n body.charCodeAt(position + 3) === 0x0022\n ) {\n currentLine += body.slice(chunkStart, position);\n chunkStart = position + 1; // skip only slash\n\n position += 4;\n continue;\n } // LineTerminator\n\n if (code === 0x000a || code === 0x000d) {\n currentLine += body.slice(chunkStart, position);\n blockLines.push(currentLine);\n\n if (code === 0x000d && body.charCodeAt(position + 1) === 0x000a) {\n position += 2;\n } else {\n ++position;\n }\n\n currentLine = '';\n chunkStart = position;\n lineStart = position;\n continue;\n } // SourceCharacter\n\n if (isUnicodeScalarValue(code)) {\n ++position;\n } else if (isSupplementaryCodePoint(body, position)) {\n position += 2;\n } else {\n throw syntaxError(\n lexer.source,\n position,\n `Invalid character within String: ${printCodePointAt(\n lexer,\n position,\n )}.`,\n );\n }\n }\n\n throw syntaxError(lexer.source, position, 'Unterminated string.');\n}\n/**\n * Reads an alphanumeric + underscore name from the source.\n *\n * ```\n * Name ::\n * - NameStart NameContinue* [lookahead != NameContinue]\n * ```\n */\n\nfunction readName(lexer, start) {\n const body = lexer.source.body;\n const bodyLength = body.length;\n let position = start + 1;\n\n while (position < bodyLength) {\n const code = body.charCodeAt(position);\n\n if (isNameContinue(code)) {\n ++position;\n } else {\n break;\n }\n }\n\n return createToken(\n lexer,\n TokenKind.NAME,\n start,\n position,\n body.slice(start, position),\n );\n}\n","export function devAssert(condition, message) {\n const booleanCondition = Boolean(condition);\n\n if (!booleanCondition) {\n throw new Error(message);\n }\n}\n","const MAX_ARRAY_LENGTH = 10;\nconst MAX_RECURSIVE_DEPTH = 2;\n/**\n * Used to print values in error messages.\n */\n\nexport function inspect(value) {\n return formatValue(value, []);\n}\n\nfunction formatValue(value, seenValues) {\n switch (typeof value) {\n case 'string':\n return JSON.stringify(value);\n\n case 'function':\n return value.name ? `[function ${value.name}]` : '[function]';\n\n case 'object':\n return formatObjectValue(value, seenValues);\n\n default:\n return String(value);\n }\n}\n\nfunction formatObjectValue(value, previouslySeenValues) {\n if (value === null) {\n return 'null';\n }\n\n if (previouslySeenValues.includes(value)) {\n return '[Circular]';\n }\n\n const seenValues = [...previouslySeenValues, value];\n\n if (isJSONable(value)) {\n const jsonValue = value.toJSON(); // check for infinite recursion\n\n if (jsonValue !== value) {\n return typeof jsonValue === 'string'\n ? jsonValue\n : formatValue(jsonValue, seenValues);\n }\n } else if (Array.isArray(value)) {\n return formatArray(value, seenValues);\n }\n\n return formatObject(value, seenValues);\n}\n\nfunction isJSONable(value) {\n return typeof value.toJSON === 'function';\n}\n\nfunction formatObject(object, seenValues) {\n const entries = Object.entries(object);\n\n if (entries.length === 0) {\n return '{}';\n }\n\n if (seenValues.length > MAX_RECURSIVE_DEPTH) {\n return '[' + getObjectTag(object) + ']';\n }\n\n const properties = entries.map(\n ([key, value]) => key + ': ' + formatValue(value, seenValues),\n );\n return '{ ' + properties.join(', ') + ' }';\n}\n\nfunction formatArray(array, seenValues) {\n if (array.length === 0) {\n return '[]';\n }\n\n if (seenValues.length > MAX_RECURSIVE_DEPTH) {\n return '[Array]';\n }\n\n const len = Math.min(MAX_ARRAY_LENGTH, array.length);\n const remaining = array.length - len;\n const items = [];\n\n for (let i = 0; i < len; ++i) {\n items.push(formatValue(array[i], seenValues));\n }\n\n if (remaining === 1) {\n items.push('... 1 more item');\n } else if (remaining > 1) {\n items.push(`... ${remaining} more items`);\n }\n\n return '[' + items.join(', ') + ']';\n}\n\nfunction getObjectTag(object) {\n const tag = Object.prototype.toString\n .call(object)\n .replace(/^\\[object /, '')\n .replace(/]$/, '');\n\n if (tag === 'Object' && typeof object.constructor === 'function') {\n const name = object.constructor.name;\n\n if (typeof name === 'string' && name !== '') {\n return name;\n }\n }\n\n return tag;\n}\n","import { inspect } from './inspect.mjs';\n/**\n * A replacement for instanceof which includes an error warning when multi-realm\n * constructors are detected.\n * See: https://expressjs.com/en/advanced/best-practice-performance.html#set-node_env-to-production\n * See: https://webpack.js.org/guides/production/\n */\n\nexport const instanceOf =\n /* c8 ignore next 6 */\n // FIXME: https://github.com/graphql/graphql-js/issues/2317\n globalThis.process && globalThis.process.env.NODE_ENV === 'production'\n ? function instanceOf(value, constructor) {\n return value instanceof constructor;\n }\n : function instanceOf(value, constructor) {\n if (value instanceof constructor) {\n return true;\n }\n\n if (typeof value === 'object' && value !== null) {\n var _value$constructor;\n\n // Prefer Symbol.toStringTag since it is immune to minification.\n const className = constructor.prototype[Symbol.toStringTag];\n const valueClassName = // We still need to support constructor's name to detect conflicts with older versions of this library.\n Symbol.toStringTag in value // @ts-expect-error TS bug see, https://github.com/microsoft/TypeScript/issues/38009\n ? value[Symbol.toStringTag]\n : (_value$constructor = value.constructor) === null ||\n _value$constructor === void 0\n ? void 0\n : _value$constructor.name;\n\n if (className === valueClassName) {\n const stringifiedValue = inspect(value);\n throw new Error(`Cannot use ${className} \"${stringifiedValue}\" from another module or realm.\n\nEnsure that there is only one instance of \"graphql\" in the node_modules\ndirectory. If different versions of \"graphql\" are the dependencies of other\nrelied on modules, use \"resolutions\" to ensure only one version is installed.\n\nhttps://yarnpkg.com/en/docs/selective-version-resolutions\n\nDuplicate \"graphql\" modules cannot be used at the same time since different\nversions may have different capabilities and behavior. The data from one\nversion used in the function from another could produce confusing and\nspurious results.`);\n }\n }\n\n return false;\n };\n","import { devAssert } from '../jsutils/devAssert.mjs';\nimport { inspect } from '../jsutils/inspect.mjs';\nimport { instanceOf } from '../jsutils/instanceOf.mjs';\n\n/**\n * A representation of source input to GraphQL. The `name` and `locationOffset` parameters are\n * optional, but they are useful for clients who store GraphQL documents in source files.\n * For example, if the GraphQL input starts at line 40 in a file named `Foo.graphql`, it might\n * be useful for `name` to be `\"Foo.graphql\"` and location to be `{ line: 40, column: 1 }`.\n * The `line` and `column` properties in `locationOffset` are 1-indexed.\n */\nexport class Source {\n constructor(\n body,\n name = 'GraphQL request',\n locationOffset = {\n line: 1,\n column: 1,\n },\n ) {\n typeof body === 'string' ||\n devAssert(false, `Body must be a string. Received: ${inspect(body)}.`);\n this.body = body;\n this.name = name;\n this.locationOffset = locationOffset;\n this.locationOffset.line > 0 ||\n devAssert(\n false,\n 'line in locationOffset is 1-indexed and must be positive.',\n );\n this.locationOffset.column > 0 ||\n devAssert(\n false,\n 'column in locationOffset is 1-indexed and must be positive.',\n );\n }\n\n get [Symbol.toStringTag]() {\n return 'Source';\n }\n}\n/**\n * Test if the given value is a Source object.\n *\n * @internal\n */\n\nexport function isSource(source) {\n return instanceOf(source, Source);\n}\n","import { syntaxError } from '../error/syntaxError.mjs';\nimport { Location, OperationTypeNode } from './ast.mjs';\nimport { DirectiveLocation } from './directiveLocation.mjs';\nimport { Kind } from './kinds.mjs';\nimport { isPunctuatorTokenKind, Lexer } from './lexer.mjs';\nimport { isSource, Source } from './source.mjs';\nimport { TokenKind } from './tokenKind.mjs';\n/**\n * Configuration options to control parser behavior\n */\n\n/**\n * Given a GraphQL source, parses it into a Document.\n * Throws GraphQLError if a syntax error is encountered.\n */\nexport function parse(source, options) {\n const parser = new Parser(source, options);\n return parser.parseDocument();\n}\n/**\n * Given a string containing a GraphQL value (ex. `[42]`), parse the AST for\n * that value.\n * Throws GraphQLError if a syntax error is encountered.\n *\n * This is useful within tools that operate upon GraphQL Values directly and\n * in isolation of complete GraphQL documents.\n *\n * Consider providing the results to the utility function: valueFromAST().\n */\n\nexport function parseValue(source, options) {\n const parser = new Parser(source, options);\n parser.expectToken(TokenKind.SOF);\n const value = parser.parseValueLiteral(false);\n parser.expectToken(TokenKind.EOF);\n return value;\n}\n/**\n * Similar to parseValue(), but raises a parse error if it encounters a\n * variable. The return type will be a constant value.\n */\n\nexport function parseConstValue(source, options) {\n const parser = new Parser(source, options);\n parser.expectToken(TokenKind.SOF);\n const value = parser.parseConstValueLiteral();\n parser.expectToken(TokenKind.EOF);\n return value;\n}\n/**\n * Given a string containing a GraphQL Type (ex. `[Int!]`), parse the AST for\n * that type.\n * Throws GraphQLError if a syntax error is encountered.\n *\n * This is useful within tools that operate upon GraphQL Types directly and\n * in isolation of complete GraphQL documents.\n *\n * Consider providing the results to the utility function: typeFromAST().\n */\n\nexport function parseType(source, options) {\n const parser = new Parser(source, options);\n parser.expectToken(TokenKind.SOF);\n const type = parser.parseTypeReference();\n parser.expectToken(TokenKind.EOF);\n return type;\n}\n/**\n * This class is exported only to assist people in implementing their own parsers\n * without duplicating too much code and should be used only as last resort for cases\n * such as experimental syntax or if certain features could not be contributed upstream.\n *\n * It is still part of the internal API and is versioned, so any changes to it are never\n * considered breaking changes. If you still need to support multiple versions of the\n * library, please use the `versionInfo` variable for version detection.\n *\n * @internal\n */\n\nexport class Parser {\n constructor(source, options = {}) {\n const sourceObj = isSource(source) ? source : new Source(source);\n this._lexer = new Lexer(sourceObj);\n this._options = options;\n this._tokenCounter = 0;\n }\n /**\n * Converts a name lex token into a name parse node.\n */\n\n parseName() {\n const token = this.expectToken(TokenKind.NAME);\n return this.node(token, {\n kind: Kind.NAME,\n value: token.value,\n });\n } // Implements the parsing rules in the Document section.\n\n /**\n * Document : Definition+\n */\n\n parseDocument() {\n return this.node(this._lexer.token, {\n kind: Kind.DOCUMENT,\n definitions: this.many(\n TokenKind.SOF,\n this.parseDefinition,\n TokenKind.EOF,\n ),\n });\n }\n /**\n * Definition :\n * - ExecutableDefinition\n * - TypeSystemDefinition\n * - TypeSystemExtension\n *\n * ExecutableDefinition :\n * - OperationDefinition\n * - FragmentDefinition\n *\n * TypeSystemDefinition :\n * - SchemaDefinition\n * - TypeDefinition\n * - DirectiveDefinition\n *\n * TypeDefinition :\n * - ScalarTypeDefinition\n * - ObjectTypeDefinition\n * - InterfaceTypeDefinition\n * - UnionTypeDefinition\n * - EnumTypeDefinition\n * - InputObjectTypeDefinition\n */\n\n parseDefinition() {\n if (this.peek(TokenKind.BRACE_L)) {\n return this.parseOperationDefinition();\n } // Many definitions begin with a description and require a lookahead.\n\n const hasDescription = this.peekDescription();\n const keywordToken = hasDescription\n ? this._lexer.lookahead()\n : this._lexer.token;\n\n if (keywordToken.kind === TokenKind.NAME) {\n switch (keywordToken.value) {\n case 'schema':\n return this.parseSchemaDefinition();\n\n case 'scalar':\n return this.parseScalarTypeDefinition();\n\n case 'type':\n return this.parseObjectTypeDefinition();\n\n case 'interface':\n return this.parseInterfaceTypeDefinition();\n\n case 'union':\n return this.parseUnionTypeDefinition();\n\n case 'enum':\n return this.parseEnumTypeDefinition();\n\n case 'input':\n return this.parseInputObjectTypeDefinition();\n\n case 'directive':\n return this.parseDirectiveDefinition();\n }\n\n if (hasDescription) {\n throw syntaxError(\n this._lexer.source,\n this._lexer.token.start,\n 'Unexpected description, descriptions are supported only on type definitions.',\n );\n }\n\n switch (keywordToken.value) {\n case 'query':\n case 'mutation':\n case 'subscription':\n return this.parseOperationDefinition();\n\n case 'fragment':\n return this.parseFragmentDefinition();\n\n case 'extend':\n return this.parseTypeSystemExtension();\n }\n }\n\n throw this.unexpected(keywordToken);\n } // Implements the parsing rules in the Operations section.\n\n /**\n * OperationDefinition :\n * - SelectionSet\n * - OperationType Name? VariableDefinitions? Directives? SelectionSet\n */\n\n parseOperationDefinition() {\n const start = this._lexer.token;\n\n if (this.peek(TokenKind.BRACE_L)) {\n return this.node(start, {\n kind: Kind.OPERATION_DEFINITION,\n operation: OperationTypeNode.QUERY,\n name: undefined,\n variableDefinitions: [],\n directives: [],\n selectionSet: this.parseSelectionSet(),\n });\n }\n\n const operation = this.parseOperationType();\n let name;\n\n if (this.peek(TokenKind.NAME)) {\n name = this.parseName();\n }\n\n return this.node(start, {\n kind: Kind.OPERATION_DEFINITION,\n operation,\n name,\n variableDefinitions: this.parseVariableDefinitions(),\n directives: this.parseDirectives(false),\n selectionSet: this.parseSelectionSet(),\n });\n }\n /**\n * OperationType : one of query mutation subscription\n */\n\n parseOperationType() {\n const operationToken = this.expectToken(TokenKind.NAME);\n\n switch (operationToken.value) {\n case 'query':\n return OperationTypeNode.QUERY;\n\n case 'mutation':\n return OperationTypeNode.MUTATION;\n\n case 'subscription':\n return OperationTypeNode.SUBSCRIPTION;\n }\n\n throw this.unexpected(operationToken);\n }\n /**\n * VariableDefinitions : ( VariableDefinition+ )\n */\n\n parseVariableDefinitions() {\n return this.optionalMany(\n TokenKind.PAREN_L,\n this.parseVariableDefinition,\n TokenKind.PAREN_R,\n );\n }\n /**\n * VariableDefinition : Variable : Type DefaultValue? Directives[Const]?\n */\n\n parseVariableDefinition() {\n return this.node(this._lexer.token, {\n kind: Kind.VARIABLE_DEFINITION,\n variable: this.parseVariable(),\n type: (this.expectToken(TokenKind.COLON), this.parseTypeReference()),\n defaultValue: this.expectOptionalToken(TokenKind.EQUALS)\n ? this.parseConstValueLiteral()\n : undefined,\n directives: this.parseConstDirectives(),\n });\n }\n /**\n * Variable : $ Name\n */\n\n parseVariable() {\n const start = this._lexer.token;\n this.expectToken(TokenKind.DOLLAR);\n return this.node(start, {\n kind: Kind.VARIABLE,\n name: this.parseName(),\n });\n }\n /**\n * ```\n * SelectionSet : { Selection+ }\n * ```\n */\n\n parseSelectionSet() {\n return this.node(this._lexer.token, {\n kind: Kind.SELECTION_SET,\n selections: this.many(\n TokenKind.BRACE_L,\n this.parseSelection,\n TokenKind.BRACE_R,\n ),\n });\n }\n /**\n * Selection :\n * - Field\n * - FragmentSpread\n * - InlineFragment\n */\n\n parseSelection() {\n return this.peek(TokenKind.SPREAD)\n ? this.parseFragment()\n : this.parseField();\n }\n /**\n * Field : Alias? Name Arguments? Directives? SelectionSet?\n *\n * Alias : Name :\n */\n\n parseField() {\n const start = this._lexer.token;\n const nameOrAlias = this.parseName();\n let alias;\n let name;\n\n if (this.expectOptionalToken(TokenKind.COLON)) {\n alias = nameOrAlias;\n name = this.parseName();\n } else {\n name = nameOrAlias;\n }\n\n return this.node(start, {\n kind: Kind.FIELD,\n alias,\n name,\n arguments: this.parseArguments(false),\n directives: this.parseDirectives(false),\n selectionSet: this.peek(TokenKind.BRACE_L)\n ? this.parseSelectionSet()\n : undefined,\n });\n }\n /**\n * Arguments[Const] : ( Argument[?Const]+ )\n */\n\n parseArguments(isConst) {\n const item = isConst ? this.parseConstArgument : this.parseArgument;\n return this.optionalMany(TokenKind.PAREN_L, item, TokenKind.PAREN_R);\n }\n /**\n * Argument[Const] : Name : Value[?Const]\n */\n\n parseArgument(isConst = false) {\n const start = this._lexer.token;\n const name = this.parseName();\n this.expectToken(TokenKind.COLON);\n return this.node(start, {\n kind: Kind.ARGUMENT,\n name,\n value: this.parseValueLiteral(isConst),\n });\n }\n\n parseConstArgument() {\n return this.parseArgument(true);\n } // Implements the parsing rules in the Fragments section.\n\n /**\n * Corresponds to both FragmentSpread and InlineFragment in the spec.\n *\n * FragmentSpread : ... FragmentName Directives?\n *\n * InlineFragment : ... TypeCondition? Directives? SelectionSet\n */\n\n parseFragment() {\n const start = this._lexer.token;\n this.expectToken(TokenKind.SPREAD);\n const hasTypeCondition = this.expectOptionalKeyword('on');\n\n if (!hasTypeCondition && this.peek(TokenKind.NAME)) {\n return this.node(start, {\n kind: Kind.FRAGMENT_SPREAD,\n name: this.parseFragmentName(),\n directives: this.parseDirectives(false),\n });\n }\n\n return this.node(start, {\n kind: Kind.INLINE_FRAGMENT,\n typeCondition: hasTypeCondition ? this.parseNamedType() : undefined,\n directives: this.parseDirectives(false),\n selectionSet: this.parseSelectionSet(),\n });\n }\n /**\n * FragmentDefinition :\n * - fragment FragmentName on TypeCondition Directives? SelectionSet\n *\n * TypeCondition : NamedType\n */\n\n parseFragmentDefinition() {\n const start = this._lexer.token;\n this.expectKeyword('fragment'); // Legacy support for defining variables within fragments changes\n // the grammar of FragmentDefinition:\n // - fragment FragmentName VariableDefinitions? on TypeCondition Directives? SelectionSet\n\n if (this._options.allowLegacyFragmentVariables === true) {\n return this.node(start, {\n kind: Kind.FRAGMENT_DEFINITION,\n name: this.parseFragmentName(),\n variableDefinitions: this.parseVariableDefinitions(),\n typeCondition: (this.expectKeyword('on'), this.parseNamedType()),\n directives: this.parseDirectives(false),\n selectionSet: this.parseSelectionSet(),\n });\n }\n\n return this.node(start, {\n kind: Kind.FRAGMENT_DEFINITION,\n name: this.parseFragmentName(),\n typeCondition: (this.expectKeyword('on'), this.parseNamedType()),\n directives: this.parseDirectives(false),\n selectionSet: this.parseSelectionSet(),\n });\n }\n /**\n * FragmentName : Name but not `on`\n */\n\n parseFragmentName() {\n if (this._lexer.token.value === 'on') {\n throw this.unexpected();\n }\n\n return this.parseName();\n } // Implements the parsing rules in the Values section.\n\n /**\n * Value[Const] :\n * - [~Const] Variable\n * - IntValue\n * - FloatValue\n * - StringValue\n * - BooleanValue\n * - NullValue\n * - EnumValue\n * - ListValue[?Const]\n * - ObjectValue[?Const]\n *\n * BooleanValue : one of `true` `false`\n *\n * NullValue : `null`\n *\n * EnumValue : Name but not `true`, `false` or `null`\n */\n\n parseValueLiteral(isConst) {\n const token = this._lexer.token;\n\n switch (token.kind) {\n case TokenKind.BRACKET_L:\n return this.parseList(isConst);\n\n case TokenKind.BRACE_L:\n return this.parseObject(isConst);\n\n case TokenKind.INT:\n this.advanceLexer();\n return this.node(token, {\n kind: Kind.INT,\n value: token.value,\n });\n\n case TokenKind.FLOAT:\n this.advanceLexer();\n return this.node(token, {\n kind: Kind.FLOAT,\n value: token.value,\n });\n\n case TokenKind.STRING:\n case TokenKind.BLOCK_STRING:\n return this.parseStringLiteral();\n\n case TokenKind.NAME:\n this.advanceLexer();\n\n switch (token.value) {\n case 'true':\n return this.node(token, {\n kind: Kind.BOOLEAN,\n value: true,\n });\n\n case 'false':\n return this.node(token, {\n kind: Kind.BOOLEAN,\n value: false,\n });\n\n case 'null':\n return this.node(token, {\n kind: Kind.NULL,\n });\n\n default:\n return this.node(token, {\n kind: Kind.ENUM,\n value: token.value,\n });\n }\n\n case TokenKind.DOLLAR:\n if (isConst) {\n this.expectToken(TokenKind.DOLLAR);\n\n if (this._lexer.token.kind === TokenKind.NAME) {\n const varName = this._lexer.token.value;\n throw syntaxError(\n this._lexer.source,\n token.start,\n `Unexpected variable \"$${varName}\" in constant value.`,\n );\n } else {\n throw this.unexpected(token);\n }\n }\n\n return this.parseVariable();\n\n default:\n throw this.unexpected();\n }\n }\n\n parseConstValueLiteral() {\n return this.parseValueLiteral(true);\n }\n\n parseStringLiteral() {\n const token = this._lexer.token;\n this.advanceLexer();\n return this.node(token, {\n kind: Kind.STRING,\n value: token.value,\n block: token.kind === TokenKind.BLOCK_STRING,\n });\n }\n /**\n * ListValue[Const] :\n * - [ ]\n * - [ Value[?Const]+ ]\n */\n\n parseList(isConst) {\n const item = () => this.parseValueLiteral(isConst);\n\n return this.node(this._lexer.token, {\n kind: Kind.LIST,\n values: this.any(TokenKind.BRACKET_L, item, TokenKind.BRACKET_R),\n });\n }\n /**\n * ```\n * ObjectValue[Const] :\n * - { }\n * - { ObjectField[?Const]+ }\n * ```\n */\n\n parseObject(isConst) {\n const item = () => this.parseObjectField(isConst);\n\n return this.node(this._lexer.token, {\n kind: Kind.OBJECT,\n fields: this.any(TokenKind.BRACE_L, item, TokenKind.BRACE_R),\n });\n }\n /**\n * ObjectField[Const] : Name : Value[?Const]\n */\n\n parseObjectField(isConst) {\n const start = this._lexer.token;\n const name = this.parseName();\n this.expectToken(TokenKind.COLON);\n return this.node(start, {\n kind: Kind.OBJECT_FIELD,\n name,\n value: this.parseValueLiteral(isConst),\n });\n } // Implements the parsing rules in the Directives section.\n\n /**\n * Directives[Const] : Directive[?Const]+\n */\n\n parseDirectives(isConst) {\n const directives = [];\n\n while (this.peek(TokenKind.AT)) {\n directives.push(this.parseDirective(isConst));\n }\n\n return directives;\n }\n\n parseConstDirectives() {\n return this.parseDirectives(true);\n }\n /**\n * ```\n * Directive[Const] : @ Name Arguments[?Const]?\n * ```\n */\n\n parseDirective(isConst) {\n const start = this._lexer.token;\n this.expectToken(TokenKind.AT);\n return this.node(start, {\n kind: Kind.DIRECTIVE,\n name: this.parseName(),\n arguments: this.parseArguments(isConst),\n });\n } // Implements the parsing rules in the Types section.\n\n /**\n * Type :\n * - NamedType\n * - ListType\n * - NonNullType\n */\n\n parseTypeReference() {\n const start = this._lexer.token;\n let type;\n\n if (this.expectOptionalToken(TokenKind.BRACKET_L)) {\n const innerType = this.parseTypeReference();\n this.expectToken(TokenKind.BRACKET_R);\n type = this.node(start, {\n kind: Kind.LIST_TYPE,\n type: innerType,\n });\n } else {\n type = this.parseNamedType();\n }\n\n if (this.expectOptionalToken(TokenKind.BANG)) {\n return this.node(start, {\n kind: Kind.NON_NULL_TYPE,\n type,\n });\n }\n\n return type;\n }\n /**\n * NamedType : Name\n */\n\n parseNamedType() {\n return this.node(this._lexer.token, {\n kind: Kind.NAMED_TYPE,\n name: this.parseName(),\n });\n } // Implements the parsing rules in the Type Definition section.\n\n peekDescription() {\n return this.peek(TokenKind.STRING) || this.peek(TokenKind.BLOCK_STRING);\n }\n /**\n * Description : StringValue\n */\n\n parseDescription() {\n if (this.peekDescription()) {\n return this.parseStringLiteral();\n }\n }\n /**\n * ```\n * SchemaDefinition : Description? schema Directives[Const]? { OperationTypeDefinition+ }\n * ```\n */\n\n parseSchemaDefinition() {\n const start = this._lexer.token;\n const description = this.parseDescription();\n this.expectKeyword('schema');\n const directives = this.parseConstDirectives();\n const operationTypes = this.many(\n TokenKind.BRACE_L,\n this.parseOperationTypeDefinition,\n TokenKind.BRACE_R,\n );\n return this.node(start, {\n kind: Kind.SCHEMA_DEFINITION,\n description,\n directives,\n operationTypes,\n });\n }\n /**\n * OperationTypeDefinition : OperationType : NamedType\n */\n\n parseOperationTypeDefinition() {\n const start = this._lexer.token;\n const operation = this.parseOperationType();\n this.expectToken(TokenKind.COLON);\n const type = this.parseNamedType();\n return this.node(start, {\n kind: Kind.OPERATION_TYPE_DEFINITION,\n operation,\n type,\n });\n }\n /**\n * ScalarTypeDefinition : Description? scalar Name Directives[Const]?\n */\n\n parseScalarTypeDefinition() {\n const start = this._lexer.token;\n const description = this.parseDescription();\n this.expectKeyword('scalar');\n const name = this.parseName();\n const directives = this.parseConstDirectives();\n return this.node(start, {\n kind: Kind.SCALAR_TYPE_DEFINITION,\n description,\n name,\n directives,\n });\n }\n /**\n * ObjectTypeDefinition :\n * Description?\n * type Name ImplementsInterfaces? Directives[Const]? FieldsDefinition?\n */\n\n parseObjectTypeDefinition() {\n const start = this._lexer.token;\n const description = this.parseDescription();\n this.expectKeyword('type');\n const name = this.parseName();\n const interfaces = this.parseImplementsInterfaces();\n const directives = this.parseConstDirectives();\n const fields = this.parseFieldsDefinition();\n return this.node(start, {\n kind: Kind.OBJECT_TYPE_DEFINITION,\n description,\n name,\n interfaces,\n directives,\n fields,\n });\n }\n /**\n * ImplementsInterfaces :\n * - implements `&`? NamedType\n * - ImplementsInterfaces & NamedType\n */\n\n parseImplementsInterfaces() {\n return this.expectOptionalKeyword('implements')\n ? this.delimitedMany(TokenKind.AMP, this.parseNamedType)\n : [];\n }\n /**\n * ```\n * FieldsDefinition : { FieldDefinition+ }\n * ```\n */\n\n parseFieldsDefinition() {\n return this.optionalMany(\n TokenKind.BRACE_L,\n this.parseFieldDefinition,\n TokenKind.BRACE_R,\n );\n }\n /**\n * FieldDefinition :\n * - Description? Name ArgumentsDefinition? : Type Directives[Const]?\n */\n\n parseFieldDefinition() {\n const start = this._lexer.token;\n const description = this.parseDescription();\n const name = this.parseName();\n const args = this.parseArgumentDefs();\n this.expectToken(TokenKind.COLON);\n const type = this.parseTypeReference();\n const directives = this.parseConstDirectives();\n return this.node(start, {\n kind: Kind.FIELD_DEFINITION,\n description,\n name,\n arguments: args,\n type,\n directives,\n });\n }\n /**\n * ArgumentsDefinition : ( InputValueDefinition+ )\n */\n\n parseArgumentDefs() {\n return this.optionalMany(\n TokenKind.PAREN_L,\n this.parseInputValueDef,\n TokenKind.PAREN_R,\n );\n }\n /**\n * InputValueDefinition :\n * - Description? Name : Type DefaultValue? Directives[Const]?\n */\n\n parseInputValueDef() {\n const start = this._lexer.token;\n const description = this.parseDescription();\n const name = this.parseName();\n this.expectToken(TokenKind.COLON);\n const type = this.parseTypeReference();\n let defaultValue;\n\n if (this.expectOptionalToken(TokenKind.EQUALS)) {\n defaultValue = this.parseConstValueLiteral();\n }\n\n const directives = this.parseConstDirectives();\n return this.node(start, {\n kind: Kind.INPUT_VALUE_DEFINITION,\n description,\n name,\n type,\n defaultValue,\n directives,\n });\n }\n /**\n * InterfaceTypeDefinition :\n * - Description? interface Name Directives[Const]? FieldsDefinition?\n */\n\n parseInterfaceTypeDefinition() {\n const start = this._lexer.token;\n const description = this.parseDescription();\n this.expectKeyword('interface');\n const name = this.parseName();\n const interfaces = this.parseImplementsInterfaces();\n const directives = this.parseConstDirectives();\n const fields = this.parseFieldsDefinition();\n return this.node(start, {\n kind: Kind.INTERFACE_TYPE_DEFINITION,\n description,\n name,\n interfaces,\n directives,\n fields,\n });\n }\n /**\n * UnionTypeDefinition :\n * - Description? union Name Directives[Const]? UnionMemberTypes?\n */\n\n parseUnionTypeDefinition() {\n const start = this._lexer.token;\n const description = this.parseDescription();\n this.expectKeyword('union');\n const name = this.parseName();\n const directives = this.parseConstDirectives();\n const types = this.parseUnionMemberTypes();\n return this.node(start, {\n kind: Kind.UNION_TYPE_DEFINITION,\n description,\n name,\n directives,\n types,\n });\n }\n /**\n * UnionMemberTypes :\n * - = `|`? NamedType\n * - UnionMemberTypes | NamedType\n */\n\n parseUnionMemberTypes() {\n return this.expectOptionalToken(TokenKind.EQUALS)\n ? this.delimitedMany(TokenKind.PIPE, this.parseNamedType)\n : [];\n }\n /**\n * EnumTypeDefinition :\n * - Description? enum Name Directives[Const]? EnumValuesDefinition?\n */\n\n parseEnumTypeDefinition() {\n const start = this._lexer.token;\n const description = this.parseDescription();\n this.expectKeyword('enum');\n const name = this.parseName();\n const directives = this.parseConstDirectives();\n const values = this.parseEnumValuesDefinition();\n return this.node(start, {\n kind: Kind.ENUM_TYPE_DEFINITION,\n description,\n name,\n directives,\n values,\n });\n }\n /**\n * ```\n * EnumValuesDefinition : { EnumValueDefinition+ }\n * ```\n */\n\n parseEnumValuesDefinition() {\n return this.optionalMany(\n TokenKind.BRACE_L,\n this.parseEnumValueDefinition,\n TokenKind.BRACE_R,\n );\n }\n /**\n * EnumValueDefinition : Description? EnumValue Directives[Const]?\n */\n\n parseEnumValueDefinition() {\n const start = this._lexer.token;\n const description = this.parseDescription();\n const name = this.parseEnumValueName();\n const directives = this.parseConstDirectives();\n return this.node(start, {\n kind: Kind.ENUM_VALUE_DEFINITION,\n description,\n name,\n directives,\n });\n }\n /**\n * EnumValue : Name but not `true`, `false` or `null`\n */\n\n parseEnumValueName() {\n if (\n this._lexer.token.value === 'true' ||\n this._lexer.token.value === 'false' ||\n this._lexer.token.value === 'null'\n ) {\n throw syntaxError(\n this._lexer.source,\n this._lexer.token.start,\n `${getTokenDesc(\n this._lexer.token,\n )} is reserved and cannot be used for an enum value.`,\n );\n }\n\n return this.parseName();\n }\n /**\n * InputObjectTypeDefinition :\n * - Description? input Name Directives[Const]? InputFieldsDefinition?\n */\n\n parseInputObjectTypeDefinition() {\n const start = this._lexer.token;\n const description = this.parseDescription();\n this.expectKeyword('input');\n const name = this.parseName();\n const directives = this.parseConstDirectives();\n const fields = this.parseInputFieldsDefinition();\n return this.node(start, {\n kind: Kind.INPUT_OBJECT_TYPE_DEFINITION,\n description,\n name,\n directives,\n fields,\n });\n }\n /**\n * ```\n * InputFieldsDefinition : { InputValueDefinition+ }\n * ```\n */\n\n parseInputFieldsDefinition() {\n return this.optionalMany(\n TokenKind.BRACE_L,\n this.parseInputValueDef,\n TokenKind.BRACE_R,\n );\n }\n /**\n * TypeSystemExtension :\n * - SchemaExtension\n * - TypeExtension\n *\n * TypeExtension :\n * - ScalarTypeExtension\n * - ObjectTypeExtension\n * - InterfaceTypeExtension\n * - UnionTypeExtension\n * - EnumTypeExtension\n * - InputObjectTypeDefinition\n */\n\n parseTypeSystemExtension() {\n const keywordToken = this._lexer.lookahead();\n\n if (keywordToken.kind === TokenKind.NAME) {\n switch (keywordToken.value) {\n case 'schema':\n return this.parseSchemaExtension();\n\n case 'scalar':\n return this.parseScalarTypeExtension();\n\n case 'type':\n return this.parseObjectTypeExtension();\n\n case 'interface':\n return this.parseInterfaceTypeExtension();\n\n case 'union':\n return this.parseUnionTypeExtension();\n\n case 'enum':\n return this.parseEnumTypeExtension();\n\n case 'input':\n return this.parseInputObjectTypeExtension();\n }\n }\n\n throw this.unexpected(keywordToken);\n }\n /**\n * ```\n * SchemaExtension :\n * - extend schema Directives[Const]? { OperationTypeDefinition+ }\n * - extend schema Directives[Const]\n * ```\n */\n\n parseSchemaExtension() {\n const start = this._lexer.token;\n this.expectKeyword('extend');\n this.expectKeyword('schema');\n const directives = this.parseConstDirectives();\n const operationTypes = this.optionalMany(\n TokenKind.BRACE_L,\n this.parseOperationTypeDefinition,\n TokenKind.BRACE_R,\n );\n\n if (directives.length === 0 && operationTypes.length === 0) {\n throw this.unexpected();\n }\n\n return this.node(start, {\n kind: Kind.SCHEMA_EXTENSION,\n directives,\n operationTypes,\n });\n }\n /**\n * ScalarTypeExtension :\n * - extend scalar Name Directives[Const]\n */\n\n parseScalarTypeExtension() {\n const start = this._lexer.token;\n this.expectKeyword('extend');\n this.expectKeyword('scalar');\n const name = this.parseName();\n const directives = this.parseConstDirectives();\n\n if (directives.length === 0) {\n throw this.unexpected();\n }\n\n return this.node(start, {\n kind: Kind.SCALAR_TYPE_EXTENSION,\n name,\n directives,\n });\n }\n /**\n * ObjectTypeExtension :\n * - extend type Name ImplementsInterfaces? Directives[Const]? FieldsDefinition\n * - extend type Name ImplementsInterfaces? Directives[Const]\n * - extend type Name ImplementsInterfaces\n */\n\n parseObjectTypeExtension() {\n const start = this._lexer.token;\n this.expectKeyword('extend');\n this.expectKeyword('type');\n const name = this.parseName();\n const interfaces = this.parseImplementsInterfaces();\n const directives = this.parseConstDirectives();\n const fields = this.parseFieldsDefinition();\n\n if (\n interfaces.length === 0 &&\n directives.length === 0 &&\n fields.length === 0\n ) {\n throw this.unexpected();\n }\n\n return this.node(start, {\n kind: Kind.OBJECT_TYPE_EXTENSION,\n name,\n interfaces,\n directives,\n fields,\n });\n }\n /**\n * InterfaceTypeExtension :\n * - extend interface Name ImplementsInterfaces? Directives[Const]? FieldsDefinition\n * - extend interface Name ImplementsInterfaces? Directives[Const]\n * - extend interface Name ImplementsInterfaces\n */\n\n parseInterfaceTypeExtension() {\n const start = this._lexer.token;\n this.expectKeyword('extend');\n this.expectKeyword('interface');\n const name = this.parseName();\n const interfaces = this.parseImplementsInterfaces();\n const directives = this.parseConstDirectives();\n const fields = this.parseFieldsDefinition();\n\n if (\n interfaces.length === 0 &&\n directives.length === 0 &&\n fields.length === 0\n ) {\n throw this.unexpected();\n }\n\n return this.node(start, {\n kind: Kind.INTERFACE_TYPE_EXTENSION,\n name,\n interfaces,\n directives,\n fields,\n });\n }\n /**\n * UnionTypeExtension :\n * - extend union Name Directives[Const]? UnionMemberTypes\n * - extend union Name Directives[Const]\n */\n\n parseUnionTypeExtension() {\n const start = this._lexer.token;\n this.expectKeyword('extend');\n this.expectKeyword('union');\n const name = this.parseName();\n const directives = this.parseConstDirectives();\n const types = this.parseUnionMemberTypes();\n\n if (directives.length === 0 && types.length === 0) {\n throw this.unexpected();\n }\n\n return this.node(start, {\n kind: Kind.UNION_TYPE_EXTENSION,\n name,\n directives,\n types,\n });\n }\n /**\n * EnumTypeExtension :\n * - extend enum Name Directives[Const]? EnumValuesDefinition\n * - extend enum Name Directives[Const]\n */\n\n parseEnumTypeExtension() {\n const start = this._lexer.token;\n this.expectKeyword('extend');\n this.expectKeyword('enum');\n const name = this.parseName();\n const directives = this.parseConstDirectives();\n const values = this.parseEnumValuesDefinition();\n\n if (directives.length === 0 && values.length === 0) {\n throw this.unexpected();\n }\n\n return this.node(start, {\n kind: Kind.ENUM_TYPE_EXTENSION,\n name,\n directives,\n values,\n });\n }\n /**\n * InputObjectTypeExtension :\n * - extend input Name Directives[Const]? InputFieldsDefinition\n * - extend input Name Directives[Const]\n */\n\n parseInputObjectTypeExtension() {\n const start = this._lexer.token;\n this.expectKeyword('extend');\n this.expectKeyword('input');\n const name = this.parseName();\n const directives = this.parseConstDirectives();\n const fields = this.parseInputFieldsDefinition();\n\n if (directives.length === 0 && fields.length === 0) {\n throw this.unexpected();\n }\n\n return this.node(start, {\n kind: Kind.INPUT_OBJECT_TYPE_EXTENSION,\n name,\n directives,\n fields,\n });\n }\n /**\n * ```\n * DirectiveDefinition :\n * - Description? directive @ Name ArgumentsDefinition? `repeatable`? on DirectiveLocations\n * ```\n */\n\n parseDirectiveDefinition() {\n const start = this._lexer.token;\n const description = this.parseDescription();\n this.expectKeyword('directive');\n this.expectToken(TokenKind.AT);\n const name = this.parseName();\n const args = this.parseArgumentDefs();\n const repeatable = this.expectOptionalKeyword('repeatable');\n this.expectKeyword('on');\n const locations = this.parseDirectiveLocations();\n return this.node(start, {\n kind: Kind.DIRECTIVE_DEFINITION,\n description,\n name,\n arguments: args,\n repeatable,\n locations,\n });\n }\n /**\n * DirectiveLocations :\n * - `|`? DirectiveLocation\n * - DirectiveLocations | DirectiveLocation\n */\n\n parseDirectiveLocations() {\n return this.delimitedMany(TokenKind.PIPE, this.parseDirectiveLocation);\n }\n /*\n * DirectiveLocation :\n * - ExecutableDirectiveLocation\n * - TypeSystemDirectiveLocation\n *\n * ExecutableDirectiveLocation : one of\n * `QUERY`\n * `MUTATION`\n * `SUBSCRIPTION`\n * `FIELD`\n * `FRAGMENT_DEFINITION`\n * `FRAGMENT_SPREAD`\n * `INLINE_FRAGMENT`\n *\n * TypeSystemDirectiveLocation : one of\n * `SCHEMA`\n * `SCALAR`\n * `OBJECT`\n * `FIELD_DEFINITION`\n * `ARGUMENT_DEFINITION`\n * `INTERFACE`\n * `UNION`\n * `ENUM`\n * `ENUM_VALUE`\n * `INPUT_OBJECT`\n * `INPUT_FIELD_DEFINITION`\n */\n\n parseDirectiveLocation() {\n const start = this._lexer.token;\n const name = this.parseName();\n\n if (Object.prototype.hasOwnProperty.call(DirectiveLocation, name.value)) {\n return name;\n }\n\n throw this.unexpected(start);\n } // Core parsing utility functions\n\n /**\n * Returns a node that, if configured to do so, sets a \"loc\" field as a\n * location object, used to identify the place in the source that created a\n * given parsed object.\n */\n\n node(startToken, node) {\n if (this._options.noLocation !== true) {\n node.loc = new Location(\n startToken,\n this._lexer.lastToken,\n this._lexer.source,\n );\n }\n\n return node;\n }\n /**\n * Determines if the next token is of a given kind\n */\n\n peek(kind) {\n return this._lexer.token.kind === kind;\n }\n /**\n * If the next token is of the given kind, return that token after advancing the lexer.\n * Otherwise, do not change the parser state and throw an error.\n */\n\n expectToken(kind) {\n const token = this._lexer.token;\n\n if (token.kind === kind) {\n this.advanceLexer();\n return token;\n }\n\n throw syntaxError(\n this._lexer.source,\n token.start,\n `Expected ${getTokenKindDesc(kind)}, found ${getTokenDesc(token)}.`,\n );\n }\n /**\n * If the next token is of the given kind, return \"true\" after advancing the lexer.\n * Otherwise, do not change the parser state and return \"false\".\n */\n\n expectOptionalToken(kind) {\n const token = this._lexer.token;\n\n if (token.kind === kind) {\n this.advanceLexer();\n return true;\n }\n\n return false;\n }\n /**\n * If the next token is a given keyword, advance the lexer.\n * Otherwise, do not change the parser state and throw an error.\n */\n\n expectKeyword(value) {\n const token = this._lexer.token;\n\n if (token.kind === TokenKind.NAME && token.value === value) {\n this.advanceLexer();\n } else {\n throw syntaxError(\n this._lexer.source,\n token.start,\n `Expected \"${value}\", found ${getTokenDesc(token)}.`,\n );\n }\n }\n /**\n * If the next token is a given keyword, return \"true\" after advancing the lexer.\n * Otherwise, do not change the parser state and return \"false\".\n */\n\n expectOptionalKeyword(value) {\n const token = this._lexer.token;\n\n if (token.kind === TokenKind.NAME && token.value === value) {\n this.advanceLexer();\n return true;\n }\n\n return false;\n }\n /**\n * Helper function for creating an error when an unexpected lexed token is encountered.\n */\n\n unexpected(atToken) {\n const token =\n atToken !== null && atToken !== void 0 ? atToken : this._lexer.token;\n return syntaxError(\n this._lexer.source,\n token.start,\n `Unexpected ${getTokenDesc(token)}.`,\n );\n }\n /**\n * Returns a possibly empty list of parse nodes, determined by the parseFn.\n * This list begins with a lex token of openKind and ends with a lex token of closeKind.\n * Advances the parser to the next lex token after the closing token.\n */\n\n any(openKind, parseFn, closeKind) {\n this.expectToken(openKind);\n const nodes = [];\n\n while (!this.expectOptionalToken(closeKind)) {\n nodes.push(parseFn.call(this));\n }\n\n return nodes;\n }\n /**\n * Returns a list of parse nodes, determined by the parseFn.\n * It can be empty only if open token is missing otherwise it will always return non-empty list\n * that begins with a lex token of openKind and ends with a lex token of closeKind.\n * Advances the parser to the next lex token after the closing token.\n */\n\n optionalMany(openKind, parseFn, closeKind) {\n if (this.expectOptionalToken(openKind)) {\n const nodes = [];\n\n do {\n nodes.push(parseFn.call(this));\n } while (!this.expectOptionalToken(closeKind));\n\n return nodes;\n }\n\n return [];\n }\n /**\n * Returns a non-empty list of parse nodes, determined by the parseFn.\n * This list begins with a lex token of openKind and ends with a lex token of closeKind.\n * Advances the parser to the next lex token after the closing token.\n */\n\n many(openKind, parseFn, closeKind) {\n this.expectToken(openKind);\n const nodes = [];\n\n do {\n nodes.push(parseFn.call(this));\n } while (!this.expectOptionalToken(closeKind));\n\n return nodes;\n }\n /**\n * Returns a non-empty list of parse nodes, determined by the parseFn.\n * This list may begin with a lex token of delimiterKind followed by items separated by lex tokens of tokenKind.\n * Advances the parser to the next lex token after last item in the list.\n */\n\n delimitedMany(delimiterKind, parseFn) {\n this.expectOptionalToken(delimiterKind);\n const nodes = [];\n\n do {\n nodes.push(parseFn.call(this));\n } while (this.expectOptionalToken(delimiterKind));\n\n return nodes;\n }\n\n advanceLexer() {\n const { maxTokens } = this._options;\n\n const token = this._lexer.advance();\n\n if (maxTokens !== undefined && token.kind !== TokenKind.EOF) {\n ++this._tokenCounter;\n\n if (this._tokenCounter > maxTokens) {\n throw syntaxError(\n this._lexer.source,\n token.start,\n `Document contains more that ${maxTokens} tokens. Parsing aborted.`,\n );\n }\n }\n }\n}\n/**\n * A helper function to describe a token as a string for debugging.\n */\n\nfunction getTokenDesc(token) {\n const value = token.value;\n return getTokenKindDesc(token.kind) + (value != null ? ` \"${value}\"` : '');\n}\n/**\n * A helper function to describe a token kind as a string for debugging.\n */\n\nfunction getTokenKindDesc(kind) {\n return isPunctuatorTokenKind(kind) ? `\"${kind}\"` : kind;\n}\n","/**\n * Prints a string as a GraphQL StringValue literal. Replaces control characters\n * and excluded characters (\" U+0022 and \\\\ U+005C) with escape sequences.\n */\nexport function printString(str) {\n return `\"${str.replace(escapedRegExp, escapedReplacer)}\"`;\n} // eslint-disable-next-line no-control-regex\n\nconst escapedRegExp = /[\\x00-\\x1f\\x22\\x5c\\x7f-\\x9f]/g;\n\nfunction escapedReplacer(str) {\n return escapeSequences[str.charCodeAt(0)];\n} // prettier-ignore\n\nconst escapeSequences = [\n '\\\\u0000',\n '\\\\u0001',\n '\\\\u0002',\n '\\\\u0003',\n '\\\\u0004',\n '\\\\u0005',\n '\\\\u0006',\n '\\\\u0007',\n '\\\\b',\n '\\\\t',\n '\\\\n',\n '\\\\u000B',\n '\\\\f',\n '\\\\r',\n '\\\\u000E',\n '\\\\u000F',\n '\\\\u0010',\n '\\\\u0011',\n '\\\\u0012',\n '\\\\u0013',\n '\\\\u0014',\n '\\\\u0015',\n '\\\\u0016',\n '\\\\u0017',\n '\\\\u0018',\n '\\\\u0019',\n '\\\\u001A',\n '\\\\u001B',\n '\\\\u001C',\n '\\\\u001D',\n '\\\\u001E',\n '\\\\u001F',\n '',\n '',\n '\\\\\"',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '', // 2F\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '', // 3F\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '', // 4F\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '\\\\\\\\',\n '',\n '',\n '', // 5F\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '', // 6F\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '\\\\u007F',\n '\\\\u0080',\n '\\\\u0081',\n '\\\\u0082',\n '\\\\u0083',\n '\\\\u0084',\n '\\\\u0085',\n '\\\\u0086',\n '\\\\u0087',\n '\\\\u0088',\n '\\\\u0089',\n '\\\\u008A',\n '\\\\u008B',\n '\\\\u008C',\n '\\\\u008D',\n '\\\\u008E',\n '\\\\u008F',\n '\\\\u0090',\n '\\\\u0091',\n '\\\\u0092',\n '\\\\u0093',\n '\\\\u0094',\n '\\\\u0095',\n '\\\\u0096',\n '\\\\u0097',\n '\\\\u0098',\n '\\\\u0099',\n '\\\\u009A',\n '\\\\u009B',\n '\\\\u009C',\n '\\\\u009D',\n '\\\\u009E',\n '\\\\u009F',\n];\n","import { devAssert } from '../jsutils/devAssert.mjs';\nimport { inspect } from '../jsutils/inspect.mjs';\nimport { isNode, QueryDocumentKeys } from './ast.mjs';\nimport { Kind } from './kinds.mjs';\n/**\n * A visitor is provided to visit, it contains the collection of\n * relevant functions to be called during the visitor's traversal.\n */\n\nexport const BREAK = Object.freeze({});\n/**\n * visit() will walk through an AST using a depth-first traversal, calling\n * the visitor's enter function at each node in the traversal, and calling the\n * leave function after visiting that node and all of its child nodes.\n *\n * By returning different values from the enter and leave functions, the\n * behavior of the visitor can be altered, including skipping over a sub-tree of\n * the AST (by returning false), editing the AST by returning a value or null\n * to remove the value, or to stop the whole traversal by returning BREAK.\n *\n * When using visit() to edit an AST, the original AST will not be modified, and\n * a new version of the AST with the changes applied will be returned from the\n * visit function.\n *\n * ```ts\n * const editedAST = visit(ast, {\n * enter(node, key, parent, path, ancestors) {\n * // @return\n * // undefined: no action\n * // false: skip visiting this node\n * // visitor.BREAK: stop visiting altogether\n * // null: delete this node\n * // any value: replace this node with the returned value\n * },\n * leave(node, key, parent, path, ancestors) {\n * // @return\n * // undefined: no action\n * // false: no action\n * // visitor.BREAK: stop visiting altogether\n * // null: delete this node\n * // any value: replace this node with the returned value\n * }\n * });\n * ```\n *\n * Alternatively to providing enter() and leave() functions, a visitor can\n * instead provide functions named the same as the kinds of AST nodes, or\n * enter/leave visitors at a named key, leading to three permutations of the\n * visitor API:\n *\n * 1) Named visitors triggered when entering a node of a specific kind.\n *\n * ```ts\n * visit(ast, {\n * Kind(node) {\n * // enter the \"Kind\" node\n * }\n * })\n * ```\n *\n * 2) Named visitors that trigger upon entering and leaving a node of a specific kind.\n *\n * ```ts\n * visit(ast, {\n * Kind: {\n * enter(node) {\n * // enter the \"Kind\" node\n * }\n * leave(node) {\n * // leave the \"Kind\" node\n * }\n * }\n * })\n * ```\n *\n * 3) Generic visitors that trigger upon entering and leaving any node.\n *\n * ```ts\n * visit(ast, {\n * enter(node) {\n * // enter any node\n * },\n * leave(node) {\n * // leave any node\n * }\n * })\n * ```\n */\n\nexport function visit(root, visitor, visitorKeys = QueryDocumentKeys) {\n const enterLeaveMap = new Map();\n\n for (const kind of Object.values(Kind)) {\n enterLeaveMap.set(kind, getEnterLeaveForKind(visitor, kind));\n }\n /* eslint-disable no-undef-init */\n\n let stack = undefined;\n let inArray = Array.isArray(root);\n let keys = [root];\n let index = -1;\n let edits = [];\n let node = root;\n let key = undefined;\n let parent = undefined;\n const path = [];\n const ancestors = [];\n /* eslint-enable no-undef-init */\n\n do {\n index++;\n const isLeaving = index === keys.length;\n const isEdited = isLeaving && edits.length !== 0;\n\n if (isLeaving) {\n key = ancestors.length === 0 ? undefined : path[path.length - 1];\n node = parent;\n parent = ancestors.pop();\n\n if (isEdited) {\n if (inArray) {\n node = node.slice();\n let editOffset = 0;\n\n for (const [editKey, editValue] of edits) {\n const arrayKey = editKey - editOffset;\n\n if (editValue === null) {\n node.splice(arrayKey, 1);\n editOffset++;\n } else {\n node[arrayKey] = editValue;\n }\n }\n } else {\n node = Object.defineProperties(\n {},\n Object.getOwnPropertyDescriptors(node),\n );\n\n for (const [editKey, editValue] of edits) {\n node[editKey] = editValue;\n }\n }\n }\n\n index = stack.index;\n keys = stack.keys;\n edits = stack.edits;\n inArray = stack.inArray;\n stack = stack.prev;\n } else if (parent) {\n key = inArray ? index : keys[index];\n node = parent[key];\n\n if (node === null || node === undefined) {\n continue;\n }\n\n path.push(key);\n }\n\n let result;\n\n if (!Array.isArray(node)) {\n var _enterLeaveMap$get, _enterLeaveMap$get2;\n\n isNode(node) || devAssert(false, `Invalid AST Node: ${inspect(node)}.`);\n const visitFn = isLeaving\n ? (_enterLeaveMap$get = enterLeaveMap.get(node.kind)) === null ||\n _enterLeaveMap$get === void 0\n ? void 0\n : _enterLeaveMap$get.leave\n : (_enterLeaveMap$get2 = enterLeaveMap.get(node.kind)) === null ||\n _enterLeaveMap$get2 === void 0\n ? void 0\n : _enterLeaveMap$get2.enter;\n result =\n visitFn === null || visitFn === void 0\n ? void 0\n : visitFn.call(visitor, node, key, parent, path, ancestors);\n\n if (result === BREAK) {\n break;\n }\n\n if (result === false) {\n if (!isLeaving) {\n path.pop();\n continue;\n }\n } else if (result !== undefined) {\n edits.push([key, result]);\n\n if (!isLeaving) {\n if (isNode(result)) {\n node = result;\n } else {\n path.pop();\n continue;\n }\n }\n }\n }\n\n if (result === undefined && isEdited) {\n edits.push([key, node]);\n }\n\n if (isLeaving) {\n path.pop();\n } else {\n var _node$kind;\n\n stack = {\n inArray,\n index,\n keys,\n edits,\n prev: stack,\n };\n inArray = Array.isArray(node);\n keys = inArray\n ? node\n : (_node$kind = visitorKeys[node.kind]) !== null &&\n _node$kind !== void 0\n ? _node$kind\n : [];\n index = -1;\n edits = [];\n\n if (parent) {\n ancestors.push(parent);\n }\n\n parent = node;\n }\n } while (stack !== undefined);\n\n if (edits.length !== 0) {\n // New root\n return edits[edits.length - 1][1];\n }\n\n return root;\n}\n/**\n * Creates a new visitor instance which delegates to many visitors to run in\n * parallel. Each visitor will be visited for each node before moving on.\n *\n * If a prior visitor edits a node, no following visitors will see that node.\n */\n\nexport function visitInParallel(visitors) {\n const skipping = new Array(visitors.length).fill(null);\n const mergedVisitor = Object.create(null);\n\n for (const kind of Object.values(Kind)) {\n let hasVisitor = false;\n const enterList = new Array(visitors.length).fill(undefined);\n const leaveList = new Array(visitors.length).fill(undefined);\n\n for (let i = 0; i < visitors.length; ++i) {\n const { enter, leave } = getEnterLeaveForKind(visitors[i], kind);\n hasVisitor || (hasVisitor = enter != null || leave != null);\n enterList[i] = enter;\n leaveList[i] = leave;\n }\n\n if (!hasVisitor) {\n continue;\n }\n\n const mergedEnterLeave = {\n enter(...args) {\n const node = args[0];\n\n for (let i = 0; i < visitors.length; i++) {\n if (skipping[i] === null) {\n var _enterList$i;\n\n const result =\n (_enterList$i = enterList[i]) === null || _enterList$i === void 0\n ? void 0\n : _enterList$i.apply(visitors[i], args);\n\n if (result === false) {\n skipping[i] = node;\n } else if (result === BREAK) {\n skipping[i] = BREAK;\n } else if (result !== undefined) {\n return result;\n }\n }\n }\n },\n\n leave(...args) {\n const node = args[0];\n\n for (let i = 0; i < visitors.length; i++) {\n if (skipping[i] === null) {\n var _leaveList$i;\n\n const result =\n (_leaveList$i = leaveList[i]) === null || _leaveList$i === void 0\n ? void 0\n : _leaveList$i.apply(visitors[i], args);\n\n if (result === BREAK) {\n skipping[i] = BREAK;\n } else if (result !== undefined && result !== false) {\n return result;\n }\n } else if (skipping[i] === node) {\n skipping[i] = null;\n }\n }\n },\n };\n mergedVisitor[kind] = mergedEnterLeave;\n }\n\n return mergedVisitor;\n}\n/**\n * Given a visitor instance and a node kind, return EnterLeaveVisitor for that kind.\n */\n\nexport function getEnterLeaveForKind(visitor, kind) {\n const kindVisitor = visitor[kind];\n\n if (typeof kindVisitor === 'object') {\n // { Kind: { enter() {}, leave() {} } }\n return kindVisitor;\n } else if (typeof kindVisitor === 'function') {\n // { Kind() {} }\n return {\n enter: kindVisitor,\n leave: undefined,\n };\n } // { enter() {}, leave() {} }\n\n return {\n enter: visitor.enter,\n leave: visitor.leave,\n };\n}\n/**\n * Given a visitor instance, if it is leaving or not, and a node kind, return\n * the function the visitor runtime should call.\n *\n * @deprecated Please use `getEnterLeaveForKind` instead. Will be removed in v17\n */\n\n/* c8 ignore next 8 */\n\nexport function getVisitFn(visitor, kind, isLeaving) {\n const { enter, leave } = getEnterLeaveForKind(visitor, kind);\n return isLeaving ? leave : enter;\n}\n","import { printBlockString } from './blockString.mjs';\nimport { printString } from './printString.mjs';\nimport { visit } from './visitor.mjs';\n/**\n * Converts an AST into a string, using one set of reasonable\n * formatting rules.\n */\n\nexport function print(ast) {\n return visit(ast, printDocASTReducer);\n}\nconst MAX_LINE_LENGTH = 80;\nconst printDocASTReducer = {\n Name: {\n leave: (node) => node.value,\n },\n Variable: {\n leave: (node) => '$' + node.name,\n },\n // Document\n Document: {\n leave: (node) => join(node.definitions, '\\n\\n'),\n },\n OperationDefinition: {\n leave(node) {\n const varDefs = wrap('(', join(node.variableDefinitions, ', '), ')');\n const prefix = join(\n [\n node.operation,\n join([node.name, varDefs]),\n join(node.directives, ' '),\n ],\n ' ',\n ); // Anonymous queries with no directives or variable definitions can use\n // the query short form.\n\n return (prefix === 'query' ? '' : prefix + ' ') + node.selectionSet;\n },\n },\n VariableDefinition: {\n leave: ({ variable, type, defaultValue, directives }) =>\n variable +\n ': ' +\n type +\n wrap(' = ', defaultValue) +\n wrap(' ', join(directives, ' ')),\n },\n SelectionSet: {\n leave: ({ selections }) => block(selections),\n },\n Field: {\n leave({ alias, name, arguments: args, directives, selectionSet }) {\n const prefix = wrap('', alias, ': ') + name;\n let argsLine = prefix + wrap('(', join(args, ', '), ')');\n\n if (argsLine.length > MAX_LINE_LENGTH) {\n argsLine = prefix + wrap('(\\n', indent(join(args, '\\n')), '\\n)');\n }\n\n return join([argsLine, join(directives, ' '), selectionSet], ' ');\n },\n },\n Argument: {\n leave: ({ name, value }) => name + ': ' + value,\n },\n // Fragments\n FragmentSpread: {\n leave: ({ name, directives }) =>\n '...' + name + wrap(' ', join(directives, ' ')),\n },\n InlineFragment: {\n leave: ({ typeCondition, directives, selectionSet }) =>\n join(\n [\n '...',\n wrap('on ', typeCondition),\n join(directives, ' '),\n selectionSet,\n ],\n ' ',\n ),\n },\n FragmentDefinition: {\n leave: (\n { name, typeCondition, variableDefinitions, directives, selectionSet }, // Note: fragment variable definitions are experimental and may be changed\n ) =>\n // or removed in the future.\n `fragment ${name}${wrap('(', join(variableDefinitions, ', '), ')')} ` +\n `on ${typeCondition} ${wrap('', join(directives, ' '), ' ')}` +\n selectionSet,\n },\n // Value\n IntValue: {\n leave: ({ value }) => value,\n },\n FloatValue: {\n leave: ({ value }) => value,\n },\n StringValue: {\n leave: ({ value, block: isBlockString }) =>\n isBlockString ? printBlockString(value) : printString(value),\n },\n BooleanValue: {\n leave: ({ value }) => (value ? 'true' : 'false'),\n },\n NullValue: {\n leave: () => 'null',\n },\n EnumValue: {\n leave: ({ value }) => value,\n },\n ListValue: {\n leave: ({ values }) => '[' + join(values, ', ') + ']',\n },\n ObjectValue: {\n leave: ({ fields }) => '{' + join(fields, ', ') + '}',\n },\n ObjectField: {\n leave: ({ name, value }) => name + ': ' + value,\n },\n // Directive\n Directive: {\n leave: ({ name, arguments: args }) =>\n '@' + name + wrap('(', join(args, ', '), ')'),\n },\n // Type\n NamedType: {\n leave: ({ name }) => name,\n },\n ListType: {\n leave: ({ type }) => '[' + type + ']',\n },\n NonNullType: {\n leave: ({ type }) => type + '!',\n },\n // Type System Definitions\n SchemaDefinition: {\n leave: ({ description, directives, operationTypes }) =>\n wrap('', description, '\\n') +\n join(['schema', join(directives, ' '), block(operationTypes)], ' '),\n },\n OperationTypeDefinition: {\n leave: ({ operation, type }) => operation + ': ' + type,\n },\n ScalarTypeDefinition: {\n leave: ({ description, name, directives }) =>\n wrap('', description, '\\n') +\n join(['scalar', name, join(directives, ' ')], ' '),\n },\n ObjectTypeDefinition: {\n leave: ({ description, name, interfaces, directives, fields }) =>\n wrap('', description, '\\n') +\n join(\n [\n 'type',\n name,\n wrap('implements ', join(interfaces, ' & ')),\n join(directives, ' '),\n block(fields),\n ],\n ' ',\n ),\n },\n FieldDefinition: {\n leave: ({ description, name, arguments: args, type, directives }) =>\n wrap('', description, '\\n') +\n name +\n (hasMultilineItems(args)\n ? wrap('(\\n', indent(join(args, '\\n')), '\\n)')\n : wrap('(', join(args, ', '), ')')) +\n ': ' +\n type +\n wrap(' ', join(directives, ' ')),\n },\n InputValueDefinition: {\n leave: ({ description, name, type, defaultValue, directives }) =>\n wrap('', description, '\\n') +\n join(\n [name + ': ' + type, wrap('= ', defaultValue), join(directives, ' ')],\n ' ',\n ),\n },\n InterfaceTypeDefinition: {\n leave: ({ description, name, interfaces, directives, fields }) =>\n wrap('', description, '\\n') +\n join(\n [\n 'interface',\n name,\n wrap('implements ', join(interfaces, ' & ')),\n join(directives, ' '),\n block(fields),\n ],\n ' ',\n ),\n },\n UnionTypeDefinition: {\n leave: ({ description, name, directives, types }) =>\n wrap('', description, '\\n') +\n join(\n ['union', name, join(directives, ' '), wrap('= ', join(types, ' | '))],\n ' ',\n ),\n },\n EnumTypeDefinition: {\n leave: ({ description, name, directives, values }) =>\n wrap('', description, '\\n') +\n join(['enum', name, join(directives, ' '), block(values)], ' '),\n },\n EnumValueDefinition: {\n leave: ({ description, name, directives }) =>\n wrap('', description, '\\n') + join([name, join(directives, ' ')], ' '),\n },\n InputObjectTypeDefinition: {\n leave: ({ description, name, directives, fields }) =>\n wrap('', description, '\\n') +\n join(['input', name, join(directives, ' '), block(fields)], ' '),\n },\n DirectiveDefinition: {\n leave: ({ description, name, arguments: args, repeatable, locations }) =>\n wrap('', description, '\\n') +\n 'directive @' +\n name +\n (hasMultilineItems(args)\n ? wrap('(\\n', indent(join(args, '\\n')), '\\n)')\n : wrap('(', join(args, ', '), ')')) +\n (repeatable ? ' repeatable' : '') +\n ' on ' +\n join(locations, ' | '),\n },\n SchemaExtension: {\n leave: ({ directives, operationTypes }) =>\n join(\n ['extend schema', join(directives, ' '), block(operationTypes)],\n ' ',\n ),\n },\n ScalarTypeExtension: {\n leave: ({ name, directives }) =>\n join(['extend scalar', name, join(directives, ' ')], ' '),\n },\n ObjectTypeExtension: {\n leave: ({ name, interfaces, directives, fields }) =>\n join(\n [\n 'extend type',\n name,\n wrap('implements ', join(interfaces, ' & ')),\n join(directives, ' '),\n block(fields),\n ],\n ' ',\n ),\n },\n InterfaceTypeExtension: {\n leave: ({ name, interfaces, directives, fields }) =>\n join(\n [\n 'extend interface',\n name,\n wrap('implements ', join(interfaces, ' & ')),\n join(directives, ' '),\n block(fields),\n ],\n ' ',\n ),\n },\n UnionTypeExtension: {\n leave: ({ name, directives, types }) =>\n join(\n [\n 'extend union',\n name,\n join(directives, ' '),\n wrap('= ', join(types, ' | ')),\n ],\n ' ',\n ),\n },\n EnumTypeExtension: {\n leave: ({ name, directives, values }) =>\n join(['extend enum', name, join(directives, ' '), block(values)], ' '),\n },\n InputObjectTypeExtension: {\n leave: ({ name, directives, fields }) =>\n join(['extend input', name, join(directives, ' '), block(fields)], ' '),\n },\n};\n/**\n * Given maybeArray, print an empty string if it is null or empty, otherwise\n * print all items together separated by separator if provided\n */\n\nfunction join(maybeArray, separator = '') {\n var _maybeArray$filter$jo;\n\n return (_maybeArray$filter$jo =\n maybeArray === null || maybeArray === void 0\n ? void 0\n : maybeArray.filter((x) => x).join(separator)) !== null &&\n _maybeArray$filter$jo !== void 0\n ? _maybeArray$filter$jo\n : '';\n}\n/**\n * Given array, print each item on its own line, wrapped in an indented `{ }` block.\n */\n\nfunction block(array) {\n return wrap('{\\n', indent(join(array, '\\n')), '\\n}');\n}\n/**\n * If maybeString is not null or empty, then wrap with start and end, otherwise print an empty string.\n */\n\nfunction wrap(start, maybeString, end = '') {\n return maybeString != null && maybeString !== ''\n ? start + maybeString + end\n : '';\n}\n\nfunction indent(str) {\n return wrap(' ', str.replace(/\\n/g, '\\n '));\n}\n\nfunction hasMultilineItems(maybeArray) {\n var _maybeArray$some;\n\n // FIXME: https://github.com/graphql/graphql-js/issues/2203\n\n /* c8 ignore next */\n return (_maybeArray$some =\n maybeArray === null || maybeArray === void 0\n ? void 0\n : maybeArray.some((str) => str.includes('\\n'))) !== null &&\n _maybeArray$some !== void 0\n ? _maybeArray$some\n : false;\n}\n",null,null,null,null,null,"const token = '%[a-f0-9]{2}';\nconst singleMatcher = new RegExp('(' + token + ')|([^%]+?)', 'gi');\nconst multiMatcher = new RegExp('(' + token + ')+', 'gi');\n\nfunction decodeComponents(components, split) {\n\ttry {\n\t\t// Try to decode the entire string first\n\t\treturn [decodeURIComponent(components.join(''))];\n\t} catch {\n\t\t// Do nothing\n\t}\n\n\tif (components.length === 1) {\n\t\treturn components;\n\t}\n\n\tsplit = split || 1;\n\n\t// Split the array in 2 parts\n\tconst left = components.slice(0, split);\n\tconst right = components.slice(split);\n\n\treturn Array.prototype.concat.call([], decodeComponents(left), decodeComponents(right));\n}\n\nfunction decode(input) {\n\ttry {\n\t\treturn decodeURIComponent(input);\n\t} catch {\n\t\tlet tokens = input.match(singleMatcher) || [];\n\n\t\tfor (let i = 1; i < tokens.length; i++) {\n\t\t\tinput = decodeComponents(tokens, i).join('');\n\n\t\t\ttokens = input.match(singleMatcher) || [];\n\t\t}\n\n\t\treturn input;\n\t}\n}\n\nfunction customDecodeURIComponent(input) {\n\t// Keep track of all the replacements and prefill the map with the `BOM`\n\tconst replaceMap = {\n\t\t'%FE%FF': '\\uFFFD\\uFFFD',\n\t\t'%FF%FE': '\\uFFFD\\uFFFD',\n\t};\n\n\tlet match = multiMatcher.exec(input);\n\twhile (match) {\n\t\ttry {\n\t\t\t// Decode as big chunks as possible\n\t\t\treplaceMap[match[0]] = decodeURIComponent(match[0]);\n\t\t} catch {\n\t\t\tconst result = decode(match[0]);\n\n\t\t\tif (result !== match[0]) {\n\t\t\t\treplaceMap[match[0]] = result;\n\t\t\t}\n\t\t}\n\n\t\tmatch = multiMatcher.exec(input);\n\t}\n\n\t// Add `%C2` at the end of the map to make sure it does not replace the combinator before everything else\n\treplaceMap['%C2'] = '\\uFFFD';\n\n\tconst entries = Object.keys(replaceMap);\n\n\tfor (const key of entries) {\n\t\t// Replace all decoded components\n\t\tinput = input.replace(new RegExp(key, 'g'), replaceMap[key]);\n\t}\n\n\treturn input;\n}\n\nexport default function decodeUriComponent(encodedURI) {\n\tif (typeof encodedURI !== 'string') {\n\t\tthrow new TypeError('Expected `encodedURI` to be of type `string`, got `' + typeof encodedURI + '`');\n\t}\n\n\ttry {\n\t\t// Try the built in decoder first\n\t\treturn decodeURIComponent(encodedURI);\n\t} catch {\n\t\t// Fallback to a more advanced decoder\n\t\treturn customDecodeURIComponent(encodedURI);\n\t}\n}\n","export default function splitOnFirst(string, separator) {\n\tif (!(typeof string === 'string' && typeof separator === 'string')) {\n\t\tthrow new TypeError('Expected the arguments to be of type `string`');\n\t}\n\n\tif (string === '' || separator === '') {\n\t\treturn [];\n\t}\n\n\tconst separatorIndex = string.indexOf(separator);\n\n\tif (separatorIndex === -1) {\n\t\treturn [];\n\t}\n\n\treturn [\n\t\tstring.slice(0, separatorIndex),\n\t\tstring.slice(separatorIndex + separator.length)\n\t];\n}\n","export function includeKeys(object, predicate) {\n\tconst result = {};\n\n\tif (Array.isArray(predicate)) {\n\t\tfor (const key of predicate) {\n\t\t\tconst descriptor = Object.getOwnPropertyDescriptor(object, key);\n\t\t\tif (descriptor?.enumerable) {\n\t\t\t\tObject.defineProperty(result, key, descriptor);\n\t\t\t}\n\t\t}\n\t} else {\n\t\t// `Reflect.ownKeys()` is required to retrieve symbol properties\n\t\tfor (const key of Reflect.ownKeys(object)) {\n\t\t\tconst descriptor = Object.getOwnPropertyDescriptor(object, key);\n\t\t\tif (descriptor.enumerable) {\n\t\t\t\tconst value = object[key];\n\t\t\t\tif (predicate(key, value, object)) {\n\t\t\t\t\tObject.defineProperty(result, key, descriptor);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn result;\n}\n\nexport function excludeKeys(object, predicate) {\n\tif (Array.isArray(predicate)) {\n\t\tconst set = new Set(predicate);\n\t\treturn includeKeys(object, key => !set.has(key));\n\t}\n\n\treturn includeKeys(object, (key, value, object) => !predicate(key, value, object));\n}\n","import decodeComponent from 'decode-uri-component';\nimport splitOnFirst from 'split-on-first';\nimport {includeKeys} from 'filter-obj';\n\nconst isNullOrUndefined = value => value === null || value === undefined;\n\n// eslint-disable-next-line unicorn/prefer-code-point\nconst strictUriEncode = string => encodeURIComponent(string).replace(/[!'()*]/g, x => `%${x.charCodeAt(0).toString(16).toUpperCase()}`);\n\nconst encodeFragmentIdentifier = Symbol('encodeFragmentIdentifier');\n\nfunction encoderForArrayFormat(options) {\n\tswitch (options.arrayFormat) {\n\t\tcase 'index': {\n\t\t\treturn key => (result, value) => {\n\t\t\t\tconst index = result.length;\n\n\t\t\t\tif (\n\t\t\t\t\tvalue === undefined\n\t\t\t\t\t|| (options.skipNull && value === null)\n\t\t\t\t\t|| (options.skipEmptyString && value === '')\n\t\t\t\t) {\n\t\t\t\t\treturn result;\n\t\t\t\t}\n\n\t\t\t\tif (value === null) {\n\t\t\t\t\treturn [\n\t\t\t\t\t\t...result, [encode(key, options), '[', index, ']'].join(''),\n\t\t\t\t\t];\n\t\t\t\t}\n\n\t\t\t\treturn [\n\t\t\t\t\t...result,\n\t\t\t\t\t[encode(key, options), '[', encode(index, options), ']=', encode(value, options)].join(''),\n\t\t\t\t];\n\t\t\t};\n\t\t}\n\n\t\tcase 'bracket': {\n\t\t\treturn key => (result, value) => {\n\t\t\t\tif (\n\t\t\t\t\tvalue === undefined\n\t\t\t\t\t|| (options.skipNull && value === null)\n\t\t\t\t\t|| (options.skipEmptyString && value === '')\n\t\t\t\t) {\n\t\t\t\t\treturn result;\n\t\t\t\t}\n\n\t\t\t\tif (value === null) {\n\t\t\t\t\treturn [\n\t\t\t\t\t\t...result,\n\t\t\t\t\t\t[encode(key, options), '[]'].join(''),\n\t\t\t\t\t];\n\t\t\t\t}\n\n\t\t\t\treturn [\n\t\t\t\t\t...result,\n\t\t\t\t\t[encode(key, options), '[]=', encode(value, options)].join(''),\n\t\t\t\t];\n\t\t\t};\n\t\t}\n\n\t\tcase 'colon-list-separator': {\n\t\t\treturn key => (result, value) => {\n\t\t\t\tif (\n\t\t\t\t\tvalue === undefined\n\t\t\t\t\t|| (options.skipNull && value === null)\n\t\t\t\t\t|| (options.skipEmptyString && value === '')\n\t\t\t\t) {\n\t\t\t\t\treturn result;\n\t\t\t\t}\n\n\t\t\t\tif (value === null) {\n\t\t\t\t\treturn [\n\t\t\t\t\t\t...result,\n\t\t\t\t\t\t[encode(key, options), ':list='].join(''),\n\t\t\t\t\t];\n\t\t\t\t}\n\n\t\t\t\treturn [\n\t\t\t\t\t...result,\n\t\t\t\t\t[encode(key, options), ':list=', encode(value, options)].join(''),\n\t\t\t\t];\n\t\t\t};\n\t\t}\n\n\t\tcase 'comma':\n\t\tcase 'separator':\n\t\tcase 'bracket-separator': {\n\t\t\tconst keyValueSep = options.arrayFormat === 'bracket-separator'\n\t\t\t\t? '[]='\n\t\t\t\t: '=';\n\n\t\t\treturn key => (result, value) => {\n\t\t\t\tif (\n\t\t\t\t\tvalue === undefined\n\t\t\t\t\t|| (options.skipNull && value === null)\n\t\t\t\t\t|| (options.skipEmptyString && value === '')\n\t\t\t\t) {\n\t\t\t\t\treturn result;\n\t\t\t\t}\n\n\t\t\t\t// Translate null to an empty string so that it doesn't serialize as 'null'\n\t\t\t\tvalue = value === null ? '' : value;\n\n\t\t\t\tif (result.length === 0) {\n\t\t\t\t\treturn [[encode(key, options), keyValueSep, encode(value, options)].join('')];\n\t\t\t\t}\n\n\t\t\t\treturn [[result, encode(value, options)].join(options.arrayFormatSeparator)];\n\t\t\t};\n\t\t}\n\n\t\tdefault: {\n\t\t\treturn key => (result, value) => {\n\t\t\t\tif (\n\t\t\t\t\tvalue === undefined\n\t\t\t\t\t|| (options.skipNull && value === null)\n\t\t\t\t\t|| (options.skipEmptyString && value === '')\n\t\t\t\t) {\n\t\t\t\t\treturn result;\n\t\t\t\t}\n\n\t\t\t\tif (value === null) {\n\t\t\t\t\treturn [\n\t\t\t\t\t\t...result,\n\t\t\t\t\t\tencode(key, options),\n\t\t\t\t\t];\n\t\t\t\t}\n\n\t\t\t\treturn [\n\t\t\t\t\t...result,\n\t\t\t\t\t[encode(key, options), '=', encode(value, options)].join(''),\n\t\t\t\t];\n\t\t\t};\n\t\t}\n\t}\n}\n\nfunction parserForArrayFormat(options) {\n\tlet result;\n\n\tswitch (options.arrayFormat) {\n\t\tcase 'index': {\n\t\t\treturn (key, value, accumulator) => {\n\t\t\t\tresult = /\\[(\\d*)]$/.exec(key);\n\n\t\t\t\tkey = key.replace(/\\[\\d*]$/, '');\n\n\t\t\t\tif (!result) {\n\t\t\t\t\taccumulator[key] = value;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tif (accumulator[key] === undefined) {\n\t\t\t\t\taccumulator[key] = {};\n\t\t\t\t}\n\n\t\t\t\taccumulator[key][result[1]] = value;\n\t\t\t};\n\t\t}\n\n\t\tcase 'bracket': {\n\t\t\treturn (key, value, accumulator) => {\n\t\t\t\tresult = /(\\[])$/.exec(key);\n\t\t\t\tkey = key.replace(/\\[]$/, '');\n\n\t\t\t\tif (!result) {\n\t\t\t\t\taccumulator[key] = value;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tif (accumulator[key] === undefined) {\n\t\t\t\t\taccumulator[key] = [value];\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\taccumulator[key] = [...accumulator[key], value];\n\t\t\t};\n\t\t}\n\n\t\tcase 'colon-list-separator': {\n\t\t\treturn (key, value, accumulator) => {\n\t\t\t\tresult = /(:list)$/.exec(key);\n\t\t\t\tkey = key.replace(/:list$/, '');\n\n\t\t\t\tif (!result) {\n\t\t\t\t\taccumulator[key] = value;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tif (accumulator[key] === undefined) {\n\t\t\t\t\taccumulator[key] = [value];\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\taccumulator[key] = [...accumulator[key], value];\n\t\t\t};\n\t\t}\n\n\t\tcase 'comma':\n\t\tcase 'separator': {\n\t\t\treturn (key, value, accumulator) => {\n\t\t\t\tconst isArray = typeof value === 'string' && value.includes(options.arrayFormatSeparator);\n\t\t\t\tconst isEncodedArray = (typeof value === 'string' && !isArray && decode(value, options).includes(options.arrayFormatSeparator));\n\t\t\t\tvalue = isEncodedArray ? decode(value, options) : value;\n\t\t\t\tconst newValue = isArray || isEncodedArray ? value.split(options.arrayFormatSeparator).map(item => decode(item, options)) : (value === null ? value : decode(value, options));\n\t\t\t\taccumulator[key] = newValue;\n\t\t\t};\n\t\t}\n\n\t\tcase 'bracket-separator': {\n\t\t\treturn (key, value, accumulator) => {\n\t\t\t\tconst isArray = /(\\[])$/.test(key);\n\t\t\t\tkey = key.replace(/\\[]$/, '');\n\n\t\t\t\tif (!isArray) {\n\t\t\t\t\taccumulator[key] = value ? decode(value, options) : value;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tconst arrayValue = value === null\n\t\t\t\t\t? []\n\t\t\t\t\t: value.split(options.arrayFormatSeparator).map(item => decode(item, options));\n\n\t\t\t\tif (accumulator[key] === undefined) {\n\t\t\t\t\taccumulator[key] = arrayValue;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\taccumulator[key] = [...accumulator[key], ...arrayValue];\n\t\t\t};\n\t\t}\n\n\t\tdefault: {\n\t\t\treturn (key, value, accumulator) => {\n\t\t\t\tif (accumulator[key] === undefined) {\n\t\t\t\t\taccumulator[key] = value;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\taccumulator[key] = [...[accumulator[key]].flat(), value];\n\t\t\t};\n\t\t}\n\t}\n}\n\nfunction validateArrayFormatSeparator(value) {\n\tif (typeof value !== 'string' || value.length !== 1) {\n\t\tthrow new TypeError('arrayFormatSeparator must be single character string');\n\t}\n}\n\nfunction encode(value, options) {\n\tif (options.encode) {\n\t\treturn options.strict ? strictUriEncode(value) : encodeURIComponent(value);\n\t}\n\n\treturn value;\n}\n\nfunction decode(value, options) {\n\tif (options.decode) {\n\t\treturn decodeComponent(value);\n\t}\n\n\treturn value;\n}\n\nfunction keysSorter(input) {\n\tif (Array.isArray(input)) {\n\t\treturn input.sort();\n\t}\n\n\tif (typeof input === 'object') {\n\t\treturn keysSorter(Object.keys(input))\n\t\t\t.sort((a, b) => Number(a) - Number(b))\n\t\t\t.map(key => input[key]);\n\t}\n\n\treturn input;\n}\n\nfunction removeHash(input) {\n\tconst hashStart = input.indexOf('#');\n\tif (hashStart !== -1) {\n\t\tinput = input.slice(0, hashStart);\n\t}\n\n\treturn input;\n}\n\nfunction getHash(url) {\n\tlet hash = '';\n\tconst hashStart = url.indexOf('#');\n\tif (hashStart !== -1) {\n\t\thash = url.slice(hashStart);\n\t}\n\n\treturn hash;\n}\n\nfunction parseValue(value, options) {\n\tif (options.parseNumbers && !Number.isNaN(Number(value)) && (typeof value === 'string' && value.trim() !== '')) {\n\t\tvalue = Number(value);\n\t} else if (options.parseBooleans && value !== null && (value.toLowerCase() === 'true' || value.toLowerCase() === 'false')) {\n\t\tvalue = value.toLowerCase() === 'true';\n\t}\n\n\treturn value;\n}\n\nexport function extract(input) {\n\tinput = removeHash(input);\n\tconst queryStart = input.indexOf('?');\n\tif (queryStart === -1) {\n\t\treturn '';\n\t}\n\n\treturn input.slice(queryStart + 1);\n}\n\nexport function parse(query, options) {\n\toptions = {\n\t\tdecode: true,\n\t\tsort: true,\n\t\tarrayFormat: 'none',\n\t\tarrayFormatSeparator: ',',\n\t\tparseNumbers: false,\n\t\tparseBooleans: false,\n\t\t...options,\n\t};\n\n\tvalidateArrayFormatSeparator(options.arrayFormatSeparator);\n\n\tconst formatter = parserForArrayFormat(options);\n\n\t// Create an object with no prototype\n\tconst returnValue = Object.create(null);\n\n\tif (typeof query !== 'string') {\n\t\treturn returnValue;\n\t}\n\n\tquery = query.trim().replace(/^[?#&]/, '');\n\n\tif (!query) {\n\t\treturn returnValue;\n\t}\n\n\tfor (const parameter of query.split('&')) {\n\t\tif (parameter === '') {\n\t\t\tcontinue;\n\t\t}\n\n\t\tconst parameter_ = options.decode ? parameter.replace(/\\+/g, ' ') : parameter;\n\n\t\tlet [key, value] = splitOnFirst(parameter_, '=');\n\n\t\tif (key === undefined) {\n\t\t\tkey = parameter_;\n\t\t}\n\n\t\t// Missing `=` should be `null`:\n\t\t// http://w3.org/TR/2012/WD-url-20120524/#collect-url-parameters\n\t\tvalue = value === undefined ? null : (['comma', 'separator', 'bracket-separator'].includes(options.arrayFormat) ? value : decode(value, options));\n\t\tformatter(decode(key, options), value, returnValue);\n\t}\n\n\tfor (const [key, value] of Object.entries(returnValue)) {\n\t\tif (typeof value === 'object' && value !== null) {\n\t\t\tfor (const [key2, value2] of Object.entries(value)) {\n\t\t\t\tvalue[key2] = parseValue(value2, options);\n\t\t\t}\n\t\t} else {\n\t\t\treturnValue[key] = parseValue(value, options);\n\t\t}\n\t}\n\n\tif (options.sort === false) {\n\t\treturn returnValue;\n\t}\n\n\t// TODO: Remove the use of `reduce`.\n\t// eslint-disable-next-line unicorn/no-array-reduce\n\treturn (options.sort === true ? Object.keys(returnValue).sort() : Object.keys(returnValue).sort(options.sort)).reduce((result, key) => {\n\t\tconst value = returnValue[key];\n\t\tif (Boolean(value) && typeof value === 'object' && !Array.isArray(value)) {\n\t\t\t// Sort object keys, not values\n\t\t\tresult[key] = keysSorter(value);\n\t\t} else {\n\t\t\tresult[key] = value;\n\t\t}\n\n\t\treturn result;\n\t}, Object.create(null));\n}\n\nexport function stringify(object, options) {\n\tif (!object) {\n\t\treturn '';\n\t}\n\n\toptions = {encode: true,\n\t\tstrict: true,\n\t\tarrayFormat: 'none',\n\t\tarrayFormatSeparator: ',', ...options};\n\n\tvalidateArrayFormatSeparator(options.arrayFormatSeparator);\n\n\tconst shouldFilter = key => (\n\t\t(options.skipNull && isNullOrUndefined(object[key]))\n\t\t|| (options.skipEmptyString && object[key] === '')\n\t);\n\n\tconst formatter = encoderForArrayFormat(options);\n\n\tconst objectCopy = {};\n\n\tfor (const [key, value] of Object.entries(object)) {\n\t\tif (!shouldFilter(key)) {\n\t\t\tobjectCopy[key] = value;\n\t\t}\n\t}\n\n\tconst keys = Object.keys(objectCopy);\n\n\tif (options.sort !== false) {\n\t\tkeys.sort(options.sort);\n\t}\n\n\treturn keys.map(key => {\n\t\tconst value = object[key];\n\n\t\tif (value === undefined) {\n\t\t\treturn '';\n\t\t}\n\n\t\tif (value === null) {\n\t\t\treturn encode(key, options);\n\t\t}\n\n\t\tif (Array.isArray(value)) {\n\t\t\tif (value.length === 0 && options.arrayFormat === 'bracket-separator') {\n\t\t\t\treturn encode(key, options) + '[]';\n\t\t\t}\n\n\t\t\treturn value\n\t\t\t\t.reduce(formatter(key), [])\n\t\t\t\t.join('&');\n\t\t}\n\n\t\treturn encode(key, options) + '=' + encode(value, options);\n\t}).filter(x => x.length > 0).join('&');\n}\n\nexport function parseUrl(url, options) {\n\toptions = {\n\t\tdecode: true,\n\t\t...options,\n\t};\n\n\tlet [url_, hash] = splitOnFirst(url, '#');\n\n\tif (url_ === undefined) {\n\t\turl_ = url;\n\t}\n\n\treturn {\n\t\turl: url_?.split('?')?.[0] ?? '',\n\t\tquery: parse(extract(url), options),\n\t\t...(options && options.parseFragmentIdentifier && hash ? {fragmentIdentifier: decode(hash, options)} : {}),\n\t};\n}\n\nexport function stringifyUrl(object, options) {\n\toptions = {\n\t\tencode: true,\n\t\tstrict: true,\n\t\t[encodeFragmentIdentifier]: true,\n\t\t...options,\n\t};\n\n\tconst url = removeHash(object.url).split('?')[0] || '';\n\tconst queryFromUrl = extract(object.url);\n\n\tconst query = {\n\t\t...parse(queryFromUrl, {sort: false}),\n\t\t...object.query,\n\t};\n\n\tlet queryString = stringify(query, options);\n\tif (queryString) {\n\t\tqueryString = `?${queryString}`;\n\t}\n\n\tlet hash = getHash(object.url);\n\tif (object.fragmentIdentifier) {\n\t\tconst urlObjectForFragmentEncode = new URL(url);\n\t\turlObjectForFragmentEncode.hash = object.fragmentIdentifier;\n\t\thash = options[encodeFragmentIdentifier] ? urlObjectForFragmentEncode.hash : `#${object.fragmentIdentifier}`;\n\t}\n\n\treturn `${url}${queryString}${hash}`;\n}\n\nexport function pick(input, filter, options) {\n\toptions = {\n\t\tparseFragmentIdentifier: true,\n\t\t[encodeFragmentIdentifier]: false,\n\t\t...options,\n\t};\n\n\tconst {url, query, fragmentIdentifier} = parseUrl(input, options);\n\n\treturn stringifyUrl({\n\t\turl,\n\t\tquery: includeKeys(query, filter),\n\t\tfragmentIdentifier,\n\t}, options);\n}\n\nexport function exclude(input, filter, options) {\n\tconst exclusionFilter = Array.isArray(filter) ? key => !filter.includes(key) : (key, value) => !filter(key, value);\n\n\treturn pick(input, exclusionFilter, options);\n}\n","import * as queryString from './base.js';\n\nexport default queryString;\n","import { Modal, ModalFuncProps } from \"antd\";\nimport { GraphQLError } from \"graphql-request/src/types\";\n\nexport const logout = () => {\n window.location.href = \"/logout\";\n};\n\nlet InvalidTokenModal:\n | undefined\n | {\n destroy: () => void;\n update: (\n configUpdate:\n | ModalFuncProps\n | ((prevConfig: ModalFuncProps) => ModalFuncProps),\n ) => void;\n };\n\nconst onInvalidTokenModalCancel = () => {\n InvalidTokenModal?.destroy();\n InvalidTokenModal = undefined;\n};\n\nexport const showInvalidTokenModal = (error: GraphQLError) => {\n if (InvalidTokenModal) {\n return;\n }\n InvalidTokenModal = Modal.warn({\n okText: \"确定\",\n content: \"用户凭证可能已失效,点击确定重新登录\",\n onOk: logout,\n onCancel: onInvalidTokenModalCancel,\n });\n};\n","var __WEBPACK_NAMESPACE_OBJECT__ = window.antd;","var __WEBPACK_NAMESPACE_OBJECT__ = window.TenxUiMaterials;","import { notification } from \"@tenx-ui/materials\";\nimport { GraphQLError } from \"graphql-request/src/types\";\n\nconst VERBS_MAP = {\n create: \"创建\",\n delete: \"删除\",\n update: \"更新\",\n patch: \"更新\",\n get: \"获取\",\n list: \"列取\",\n watch: \"监听\",\n};\nexport const showForbiddenNotification = (error: GraphQLError) => {\n const { name, kind, verb } = error.extensions?.exception?.details || {};\n let description = \"当前用户没有权限\";\n description += `${VERBS_MAP[verb] || \"操作\"}`;\n if (kind) {\n description += ` ${kind}`;\n }\n if (name) {\n description += ` ${name}`;\n }\n notification.warn({\n message: \"当前操作未被授权\",\n description,\n detail: error,\n });\n};\n\nexport const showGlobalErrorNotification = (error: GraphQLError) => {\n const { message } = error || {};\n\n notification.warn({\n message: \"请求错误\",\n description: message,\n detail: error,\n });\n};\n","import { GraphQLError } from \"graphql-request/src/types\";\nimport { showInvalidTokenModal } from \"./modal\";\nimport {\n showForbiddenNotification,\n showGlobalErrorNotification,\n} from \"./notification\";\n\nexport const errorsHandler = (errors: GraphQLError[]) => {\n const gqlErrors = errors.filter(\n (e) => typeof e.extensions?.code !== \"undefined\",\n );\n if (gqlErrors.length === 0) {\n console.warn(\"uncaught errors\", errors);\n return;\n }\n gqlErrors.forEach((e) => {\n switch (e.extensions.code) {\n case \"InvalidToken\":\n showInvalidTokenModal(e);\n break;\n case \"Forbidden\":\n showForbiddenNotification(e);\n break;\n default:\n // showGlobalErrorNotification(e);\n break;\n }\n });\n};\n\nexport default errorsHandler;\n","/******************************************************************************\nCopyright (c) Microsoft Corporation.\n\nPermission to use, copy, modify, and/or distribute this software for any\npurpose with or without fee is hereby granted.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\nPERFORMANCE OF THIS SOFTWARE.\n***************************************************************************** */\n/* global Reflect, Promise, SuppressedError, Symbol */\n\nvar extendStatics = function(d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n};\n\nexport function __extends(d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n}\n\nexport var __assign = function() {\n __assign = Object.assign || function __assign(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n return t;\n }\n return __assign.apply(this, arguments);\n}\n\nexport function __rest(s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n}\n\nexport function __decorate(decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n}\n\nexport function __param(paramIndex, decorator) {\n return function (target, key) { decorator(target, key, paramIndex); }\n}\n\nexport function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {\n function accept(f) { if (f !== void 0 && typeof f !== \"function\") throw new TypeError(\"Function expected\"); return f; }\n var kind = contextIn.kind, key = kind === \"getter\" ? \"get\" : kind === \"setter\" ? \"set\" : \"value\";\n var target = !descriptorIn && ctor ? contextIn[\"static\"] ? ctor : ctor.prototype : null;\n var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});\n var _, done = false;\n for (var i = decorators.length - 1; i >= 0; i--) {\n var context = {};\n for (var p in contextIn) context[p] = p === \"access\" ? {} : contextIn[p];\n for (var p in contextIn.access) context.access[p] = contextIn.access[p];\n context.addInitializer = function (f) { if (done) throw new TypeError(\"Cannot add initializers after decoration has completed\"); extraInitializers.push(accept(f || null)); };\n var result = (0, decorators[i])(kind === \"accessor\" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);\n if (kind === \"accessor\") {\n if (result === void 0) continue;\n if (result === null || typeof result !== \"object\") throw new TypeError(\"Object expected\");\n if (_ = accept(result.get)) descriptor.get = _;\n if (_ = accept(result.set)) descriptor.set = _;\n if (_ = accept(result.init)) initializers.unshift(_);\n }\n else if (_ = accept(result)) {\n if (kind === \"field\") initializers.unshift(_);\n else descriptor[key] = _;\n }\n }\n if (target) Object.defineProperty(target, contextIn.name, descriptor);\n done = true;\n};\n\nexport function __runInitializers(thisArg, initializers, value) {\n var useValue = arguments.length > 2;\n for (var i = 0; i < initializers.length; i++) {\n value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);\n }\n return useValue ? value : void 0;\n};\n\nexport function __propKey(x) {\n return typeof x === \"symbol\" ? x : \"\".concat(x);\n};\n\nexport function __setFunctionName(f, name, prefix) {\n if (typeof name === \"symbol\") name = name.description ? \"[\".concat(name.description, \"]\") : \"\";\n return Object.defineProperty(f, \"name\", { configurable: true, value: prefix ? \"\".concat(prefix, \" \", name) : name });\n};\n\nexport function __metadata(metadataKey, metadataValue) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\n}\n\nexport function __awaiter(thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n}\n\nexport function __generator(thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n}\n\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n});\n\nexport function __exportStar(m, o) {\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\n}\n\nexport function __values(o) {\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === \"number\") return {\n next: function () {\n if (o && i >= o.length) o = void 0;\n return { value: o && o[i++], done: !o };\n }\n };\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\n}\n\nexport function __read(o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n}\n\n/** @deprecated */\nexport function __spread() {\n for (var ar = [], i = 0; i < arguments.length; i++)\n ar = ar.concat(__read(arguments[i]));\n return ar;\n}\n\n/** @deprecated */\nexport function __spreadArrays() {\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\n r[k] = a[j];\n return r;\n}\n\nexport function __spreadArray(to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n}\n\nexport function __await(v) {\n return this instanceof __await ? (this.v = v, this) : new __await(v);\n}\n\nexport function __asyncGenerator(thisArg, _arguments, generator) {\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\n function fulfill(value) { resume(\"next\", value); }\n function reject(value) { resume(\"throw\", value); }\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\n}\n\nexport function __asyncDelegator(o) {\n var i, p;\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }\n}\n\nexport function __asyncValues(o) {\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\n var m = o[Symbol.asyncIterator], i;\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\n}\n\nexport function __makeTemplateObject(cooked, raw) {\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\n return cooked;\n};\n\nvar __setModuleDefault = Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n};\n\nexport function __importStar(mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n}\n\nexport function __importDefault(mod) {\n return (mod && mod.__esModule) ? mod : { default: mod };\n}\n\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\n}\n\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\n}\n\nexport function __classPrivateFieldIn(state, receiver) {\n if (receiver === null || (typeof receiver !== \"object\" && typeof receiver !== \"function\")) throw new TypeError(\"Cannot use 'in' operator on non-object\");\n return typeof state === \"function\" ? receiver === state : state.has(receiver);\n}\n\nexport function __addDisposableResource(env, value, async) {\n if (value !== null && value !== void 0) {\n if (typeof value !== \"object\" && typeof value !== \"function\") throw new TypeError(\"Object expected.\");\n var dispose;\n if (async) {\n if (!Symbol.asyncDispose) throw new TypeError(\"Symbol.asyncDispose is not defined.\");\n dispose = value[Symbol.asyncDispose];\n }\n if (dispose === void 0) {\n if (!Symbol.dispose) throw new TypeError(\"Symbol.dispose is not defined.\");\n dispose = value[Symbol.dispose];\n }\n if (typeof dispose !== \"function\") throw new TypeError(\"Object not disposable.\");\n env.stack.push({ value: value, dispose: dispose, async: async });\n }\n else if (async) {\n env.stack.push({ async: true });\n }\n return value;\n}\n\nvar _SuppressedError = typeof SuppressedError === \"function\" ? SuppressedError : function (error, suppressed, message) {\n var e = new Error(message);\n return e.name = \"SuppressedError\", e.error = error, e.suppressed = suppressed, e;\n};\n\nexport function __disposeResources(env) {\n function fail(e) {\n env.error = env.hasError ? new _SuppressedError(e, env.error, \"An error was suppressed during disposal.\") : e;\n env.hasError = true;\n }\n function next() {\n while (env.stack.length) {\n var rec = env.stack.pop();\n try {\n var result = rec.dispose && rec.dispose.call(rec.value);\n if (rec.async) return Promise.resolve(result).then(next, function(e) { fail(e); return next(); });\n }\n catch (e) {\n fail(e);\n }\n }\n if (env.hasError) throw env.error;\n }\n return next();\n}\n\nexport default {\n __extends,\n __assign,\n __rest,\n __decorate,\n __param,\n __metadata,\n __awaiter,\n __generator,\n __createBinding,\n __exportStar,\n __values,\n __read,\n __spread,\n __spreadArrays,\n __spreadArray,\n __await,\n __asyncGenerator,\n __asyncDelegator,\n __asyncValues,\n __makeTemplateObject,\n __importStar,\n __importDefault,\n __classPrivateFieldGet,\n __classPrivateFieldSet,\n __classPrivateFieldIn,\n __addDisposableResource,\n __disposeResources,\n};\n",null,"import React, { useEffect, useLayoutEffect, createContext, useContext, useMemo, useRef, createElement } from 'react';\n\n// Shared state between server components and client components\nconst noop = ()=>{};\n// Using noop() as the undefined value as undefined can be replaced\n// by something else. Prettier ignore and extra parentheses are necessary here\n// to ensure that tsc doesn't remove the __NOINLINE__ comment.\n// prettier-ignore\nconst UNDEFINED = /*#__NOINLINE__*/ noop();\nconst OBJECT = Object;\nconst isUndefined = (v)=>v === UNDEFINED;\nconst isFunction = (v)=>typeof v == 'function';\nconst mergeObjects = (a, b)=>({\n ...a,\n ...b\n });\nconst isPromiseLike = (x)=>isFunction(x.then);\n\n// use WeakMap to store the object->key mapping\n// so the objects can be garbage collected.\n// WeakMap uses a hashtable under the hood, so the lookup\n// complexity is almost O(1).\nconst table = new WeakMap();\n// counter of the key\nlet counter = 0;\n// A stable hash implementation that supports:\n// - Fast and ensures unique hash properties\n// - Handles unserializable values\n// - Handles object key ordering\n// - Generates short results\n//\n// This is not a serialization function, and the result is not guaranteed to be\n// parsable.\nconst stableHash = (arg)=>{\n const type = typeof arg;\n const constructor = arg && arg.constructor;\n const isDate = constructor == Date;\n let result;\n let index;\n if (OBJECT(arg) === arg && !isDate && constructor != RegExp) {\n // Object/function, not null/date/regexp. Use WeakMap to store the id first.\n // If it's already hashed, directly return the result.\n result = table.get(arg);\n if (result) return result;\n // Store the hash first for circular reference detection before entering the\n // recursive `stableHash` calls.\n // For other objects like set and map, we use this id directly as the hash.\n result = ++counter + '~';\n table.set(arg, result);\n if (constructor == Array) {\n // Array.\n result = '@';\n for(index = 0; index < arg.length; index++){\n result += stableHash(arg[index]) + ',';\n }\n table.set(arg, result);\n }\n if (constructor == OBJECT) {\n // Object, sort keys.\n result = '#';\n const keys = OBJECT.keys(arg).sort();\n while(!isUndefined(index = keys.pop())){\n if (!isUndefined(arg[index])) {\n result += index + ':' + stableHash(arg[index]) + ',';\n }\n }\n table.set(arg, result);\n }\n } else {\n result = isDate ? arg.toJSON() : type == 'symbol' ? arg.toString() : type == 'string' ? JSON.stringify(arg) : '' + arg;\n }\n return result;\n};\n\n// Global state used to deduplicate requests and store listeners\nconst SWRGlobalState = new WeakMap();\n\nconst EMPTY_CACHE = {};\nconst INITIAL_CACHE = {};\nconst STR_UNDEFINED = 'undefined';\n// NOTE: Use the function to guarantee it's re-evaluated between jsdom and node runtime for tests.\nconst isWindowDefined = typeof window != STR_UNDEFINED;\nconst isDocumentDefined = typeof document != STR_UNDEFINED;\nconst hasRequestAnimationFrame = ()=>isWindowDefined && typeof window['requestAnimationFrame'] != STR_UNDEFINED;\nconst createCacheHelper = (cache, key)=>{\n const state = SWRGlobalState.get(cache);\n return [\n // Getter\n ()=>!isUndefined(key) && cache.get(key) || EMPTY_CACHE,\n // Setter\n (info)=>{\n if (!isUndefined(key)) {\n const prev = cache.get(key);\n // Before writing to the store, we keep the value in the initial cache\n // if it's not there yet.\n if (!(key in INITIAL_CACHE)) {\n INITIAL_CACHE[key] = prev;\n }\n state[5](key, mergeObjects(prev, info), prev || EMPTY_CACHE);\n }\n },\n // Subscriber\n state[6],\n // Get server cache snapshot\n ()=>{\n if (!isUndefined(key)) {\n // If the cache was updated on the client, we return the stored initial value.\n if (key in INITIAL_CACHE) return INITIAL_CACHE[key];\n }\n // If we haven't done any client-side updates, we return the current value.\n return !isUndefined(key) && cache.get(key) || EMPTY_CACHE;\n }\n ];\n} // export { UNDEFINED, OBJECT, isUndefined, isFunction, mergeObjects, isPromiseLike }\n;\n\n/**\n * Due to the bug https://bugs.chromium.org/p/chromium/issues/detail?id=678075,\n * it's not reliable to detect if the browser is currently online or offline\n * based on `navigator.onLine`.\n * As a workaround, we always assume it's online on the first load, and change\n * the status upon `online` or `offline` events.\n */ let online = true;\nconst isOnline = ()=>online;\n// For node and React Native, `add/removeEventListener` doesn't exist on window.\nconst [onWindowEvent, offWindowEvent] = isWindowDefined && window.addEventListener ? [\n window.addEventListener.bind(window),\n window.removeEventListener.bind(window)\n] : [\n noop,\n noop\n];\nconst isVisible = ()=>{\n const visibilityState = isDocumentDefined && document.visibilityState;\n return isUndefined(visibilityState) || visibilityState !== 'hidden';\n};\nconst initFocus = (callback)=>{\n // focus revalidate\n if (isDocumentDefined) {\n document.addEventListener('visibilitychange', callback);\n }\n onWindowEvent('focus', callback);\n return ()=>{\n if (isDocumentDefined) {\n document.removeEventListener('visibilitychange', callback);\n }\n offWindowEvent('focus', callback);\n };\n};\nconst initReconnect = (callback)=>{\n // revalidate on reconnected\n const onOnline = ()=>{\n online = true;\n callback();\n };\n // nothing to revalidate, just update the status\n const onOffline = ()=>{\n online = false;\n };\n onWindowEvent('online', onOnline);\n onWindowEvent('offline', onOffline);\n return ()=>{\n offWindowEvent('online', onOnline);\n offWindowEvent('offline', onOffline);\n };\n};\nconst preset = {\n isOnline,\n isVisible\n};\nconst defaultConfigOptions = {\n initFocus,\n initReconnect\n};\n\nconst IS_REACT_LEGACY = !React.useId;\nconst IS_SERVER = !isWindowDefined || 'Deno' in window;\n// Polyfill requestAnimationFrame\nconst rAF = (f)=>hasRequestAnimationFrame() ? window['requestAnimationFrame'](f) : setTimeout(f, 1);\n// React currently throws a warning when using useLayoutEffect on the server.\n// To get around it, we can conditionally useEffect on the server (no-op) and\n// useLayoutEffect in the browser.\nconst useIsomorphicLayoutEffect = IS_SERVER ? useEffect : useLayoutEffect;\n// This assignment is to extend the Navigator type to use effectiveType.\nconst navigatorConnection = typeof navigator !== 'undefined' && navigator.connection;\n// Adjust the config based on slow connection status (<= 70Kbps).\nconst slowConnection = !IS_SERVER && navigatorConnection && ([\n 'slow-2g',\n '2g'\n].includes(navigatorConnection.effectiveType) || navigatorConnection.saveData);\n\nconst serialize = (key)=>{\n if (isFunction(key)) {\n try {\n key = key();\n } catch (err) {\n // dependencies not ready\n key = '';\n }\n }\n // Use the original key as the argument of fetcher. This can be a string or an\n // array of values.\n const args = key;\n // If key is not falsy, or not an empty array, hash it.\n key = typeof key == 'string' ? key : (Array.isArray(key) ? key.length : key) ? stableHash(key) : '';\n return [\n key,\n args\n ];\n};\n\n// Global timestamp.\nlet __timestamp = 0;\nconst getTimestamp = ()=>++__timestamp;\n\nconst FOCUS_EVENT = 0;\nconst RECONNECT_EVENT = 1;\nconst MUTATE_EVENT = 2;\nconst ERROR_REVALIDATE_EVENT = 3;\n\nvar events = {\n __proto__: null,\n ERROR_REVALIDATE_EVENT: ERROR_REVALIDATE_EVENT,\n FOCUS_EVENT: FOCUS_EVENT,\n MUTATE_EVENT: MUTATE_EVENT,\n RECONNECT_EVENT: RECONNECT_EVENT\n};\n\nasync function internalMutate(...args) {\n const [cache, _key, _data, _opts] = args;\n // When passing as a boolean, it's explicitly used to disable/enable\n // revalidation.\n const options = mergeObjects({\n populateCache: true,\n throwOnError: true\n }, typeof _opts === 'boolean' ? {\n revalidate: _opts\n } : _opts || {});\n let populateCache = options.populateCache;\n const rollbackOnErrorOption = options.rollbackOnError;\n let optimisticData = options.optimisticData;\n const revalidate = options.revalidate !== false;\n const rollbackOnError = (error)=>{\n return typeof rollbackOnErrorOption === 'function' ? rollbackOnErrorOption(error) : rollbackOnErrorOption !== false;\n };\n const throwOnError = options.throwOnError;\n // If the second argument is a key filter, return the mutation results for all\n // filtered keys.\n if (isFunction(_key)) {\n const keyFilter = _key;\n const matchedKeys = [];\n const it = cache.keys();\n for (const key of it){\n if (// Skip the special useSWRInfinite and useSWRSubscription keys.\n !/^\\$(inf|sub)\\$/.test(key) && keyFilter(cache.get(key)._k)) {\n matchedKeys.push(key);\n }\n }\n return Promise.all(matchedKeys.map(mutateByKey));\n }\n return mutateByKey(_key);\n async function mutateByKey(_k) {\n // Serialize key\n const [key] = serialize(_k);\n if (!key) return;\n const [get, set] = createCacheHelper(cache, key);\n const [EVENT_REVALIDATORS, MUTATION, FETCH, PRELOAD] = SWRGlobalState.get(cache);\n const startRevalidate = ()=>{\n const revalidators = EVENT_REVALIDATORS[key];\n if (revalidate) {\n // Invalidate the key by deleting the concurrent request markers so new\n // requests will not be deduped.\n delete FETCH[key];\n delete PRELOAD[key];\n if (revalidators && revalidators[0]) {\n return revalidators[0](MUTATE_EVENT).then(()=>get().data);\n }\n }\n return get().data;\n };\n // If there is no new data provided, revalidate the key with current state.\n if (args.length < 3) {\n // Revalidate and broadcast state.\n return startRevalidate();\n }\n let data = _data;\n let error;\n // Update global timestamps.\n const beforeMutationTs = getTimestamp();\n MUTATION[key] = [\n beforeMutationTs,\n 0\n ];\n const hasOptimisticData = !isUndefined(optimisticData);\n const state = get();\n // `displayedData` is the current value on screen. It could be the optimistic value\n // that is going to be overridden by a `committedData`, or get reverted back.\n // `committedData` is the validated value that comes from a fetch or mutation.\n const displayedData = state.data;\n const currentData = state._c;\n const committedData = isUndefined(currentData) ? displayedData : currentData;\n // Do optimistic data update.\n if (hasOptimisticData) {\n optimisticData = isFunction(optimisticData) ? optimisticData(committedData, displayedData) : optimisticData;\n // When we set optimistic data, backup the current committedData data in `_c`.\n set({\n data: optimisticData,\n _c: committedData\n });\n }\n if (isFunction(data)) {\n // `data` is a function, call it passing current cache value.\n try {\n data = data(committedData);\n } catch (err) {\n // If it throws an error synchronously, we shouldn't update the cache.\n error = err;\n }\n }\n // `data` is a promise/thenable, resolve the final data first.\n if (data && isPromiseLike(data)) {\n // This means that the mutation is async, we need to check timestamps to\n // avoid race conditions.\n data = await data.catch((err)=>{\n error = err;\n });\n // Check if other mutations have occurred since we've started this mutation.\n // If there's a race we don't update cache or broadcast the change,\n // just return the data.\n if (beforeMutationTs !== MUTATION[key][0]) {\n if (error) throw error;\n return data;\n } else if (error && hasOptimisticData && rollbackOnError(error)) {\n // Rollback. Always populate the cache in this case but without\n // transforming the data.\n populateCache = true;\n // Reset data to be the latest committed data, and clear the `_c` value.\n set({\n data: committedData,\n _c: UNDEFINED\n });\n }\n }\n // If we should write back the cache after request.\n if (populateCache) {\n if (!error) {\n // Transform the result into data.\n if (isFunction(populateCache)) {\n const populateCachedData = populateCache(data, committedData);\n set({\n data: populateCachedData,\n error: UNDEFINED,\n _c: UNDEFINED\n });\n } else {\n // Only update cached data and reset the error if there's no error. Data can be `undefined` here.\n set({\n data,\n error: UNDEFINED,\n _c: UNDEFINED\n });\n }\n }\n }\n // Reset the timestamp to mark the mutation has ended.\n MUTATION[key][1] = getTimestamp();\n // Update existing SWR Hooks' internal states:\n Promise.resolve(startRevalidate()).then(()=>{\n // The mutation and revalidation are ended, we can clear it since the data is\n // not an optimistic value anymore.\n set({\n _c: UNDEFINED\n });\n });\n // Throw error or return data\n if (error) {\n if (throwOnError) throw error;\n return;\n }\n return data;\n }\n}\n\nconst revalidateAllKeys = (revalidators, type)=>{\n for(const key in revalidators){\n if (revalidators[key][0]) revalidators[key][0](type);\n }\n};\nconst initCache = (provider, options)=>{\n // The global state for a specific provider will be used to deduplicate\n // requests and store listeners. As well as a mutate function that is bound to\n // the cache.\n // The provider's global state might be already initialized. Let's try to get the\n // global state associated with the provider first.\n if (!SWRGlobalState.has(provider)) {\n const opts = mergeObjects(defaultConfigOptions, options);\n // If there's no global state bound to the provider, create a new one with the\n // new mutate function.\n const EVENT_REVALIDATORS = {};\n const mutate = internalMutate.bind(UNDEFINED, provider);\n let unmount = noop;\n const subscriptions = {};\n const subscribe = (key, callback)=>{\n const subs = subscriptions[key] || [];\n subscriptions[key] = subs;\n subs.push(callback);\n return ()=>subs.splice(subs.indexOf(callback), 1);\n };\n const setter = (key, value, prev)=>{\n provider.set(key, value);\n const subs = subscriptions[key];\n if (subs) {\n for (const fn of subs){\n fn(value, prev);\n }\n }\n };\n const initProvider = ()=>{\n if (!SWRGlobalState.has(provider)) {\n // Update the state if it's new, or if the provider has been extended.\n SWRGlobalState.set(provider, [\n EVENT_REVALIDATORS,\n {},\n {},\n {},\n mutate,\n setter,\n subscribe\n ]);\n if (!IS_SERVER) {\n // When listening to the native events for auto revalidations,\n // we intentionally put a delay (setTimeout) here to make sure they are\n // fired after immediate JavaScript executions, which can be\n // React's state updates.\n // This avoids some unnecessary revalidations such as\n // https://github.com/vercel/swr/issues/1680.\n const releaseFocus = opts.initFocus(setTimeout.bind(UNDEFINED, revalidateAllKeys.bind(UNDEFINED, EVENT_REVALIDATORS, FOCUS_EVENT)));\n const releaseReconnect = opts.initReconnect(setTimeout.bind(UNDEFINED, revalidateAllKeys.bind(UNDEFINED, EVENT_REVALIDATORS, RECONNECT_EVENT)));\n unmount = ()=>{\n releaseFocus && releaseFocus();\n releaseReconnect && releaseReconnect();\n // When un-mounting, we need to remove the cache provider from the state\n // storage too because it's a side-effect. Otherwise, when re-mounting we\n // will not re-register those event listeners.\n SWRGlobalState.delete(provider);\n };\n }\n }\n };\n initProvider();\n // This is a new provider, we need to initialize it and setup DOM events\n // listeners for `focus` and `reconnect` actions.\n // We might want to inject an extra layer on top of `provider` in the future,\n // such as key serialization, auto GC, etc.\n // For now, it's just a `Map` interface without any modifications.\n return [\n provider,\n mutate,\n initProvider,\n unmount\n ];\n }\n return [\n provider,\n SWRGlobalState.get(provider)[4]\n ];\n};\n\n// error retry\nconst onErrorRetry = (_, __, config, revalidate, opts)=>{\n const maxRetryCount = config.errorRetryCount;\n const currentRetryCount = opts.retryCount;\n // Exponential backoff\n const timeout = ~~((Math.random() + 0.5) * (1 << (currentRetryCount < 8 ? currentRetryCount : 8))) * config.errorRetryInterval;\n if (!isUndefined(maxRetryCount) && currentRetryCount > maxRetryCount) {\n return;\n }\n setTimeout(revalidate, timeout, opts);\n};\nconst compare = (currentData, newData)=>stableHash(currentData) == stableHash(newData);\n// Default cache provider\nconst [cache, mutate] = initCache(new Map());\n// Default config\nconst defaultConfig = mergeObjects({\n // events\n onLoadingSlow: noop,\n onSuccess: noop,\n onError: noop,\n onErrorRetry,\n onDiscarded: noop,\n // switches\n revalidateOnFocus: true,\n revalidateOnReconnect: true,\n revalidateIfStale: true,\n shouldRetryOnError: true,\n // timeouts\n errorRetryInterval: slowConnection ? 10000 : 5000,\n focusThrottleInterval: 5 * 1000,\n dedupingInterval: 2 * 1000,\n loadingTimeout: slowConnection ? 5000 : 3000,\n // providers\n compare,\n isPaused: ()=>false,\n cache,\n mutate,\n fallback: {}\n}, // use web preset by default\npreset);\n\nconst mergeConfigs = (a, b)=>{\n // Need to create a new object to avoid mutating the original here.\n const v = mergeObjects(a, b);\n // If two configs are provided, merge their `use` and `fallback` options.\n if (b) {\n const { use: u1, fallback: f1 } = a;\n const { use: u2, fallback: f2 } = b;\n if (u1 && u2) {\n v.use = u1.concat(u2);\n }\n if (f1 && f2) {\n v.fallback = mergeObjects(f1, f2);\n }\n }\n return v;\n};\n\nconst SWRConfigContext = createContext({});\nconst SWRConfig = (props)=>{\n const { value } = props;\n const parentConfig = useContext(SWRConfigContext);\n const isFunctionalConfig = isFunction(value);\n const config = useMemo(()=>isFunctionalConfig ? value(parentConfig) : value, [\n isFunctionalConfig,\n parentConfig,\n value\n ]);\n // Extend parent context values and middleware.\n const extendedConfig = useMemo(()=>isFunctionalConfig ? config : mergeConfigs(parentConfig, config), [\n isFunctionalConfig,\n parentConfig,\n config\n ]);\n // Should not use the inherited provider.\n const provider = config && config.provider;\n // initialize the cache only on first access.\n const cacheContextRef = useRef(UNDEFINED);\n if (provider && !cacheContextRef.current) {\n cacheContextRef.current = initCache(provider(extendedConfig.cache || cache), config);\n }\n const cacheContext = cacheContextRef.current;\n // Override the cache if a new provider is given.\n if (cacheContext) {\n extendedConfig.cache = cacheContext[0];\n extendedConfig.mutate = cacheContext[1];\n }\n // Unsubscribe events.\n useIsomorphicLayoutEffect(()=>{\n if (cacheContext) {\n cacheContext[2] && cacheContext[2]();\n return cacheContext[3];\n }\n }, []);\n return createElement(SWRConfigContext.Provider, mergeObjects(props, {\n value: extendedConfig\n }));\n};\n\nconst INFINITE_PREFIX = '$inf$';\n\n// @ts-expect-error\nconst enableDevtools = isWindowDefined && window.__SWR_DEVTOOLS_USE__;\nconst use = enableDevtools ? window.__SWR_DEVTOOLS_USE__ : [];\nconst setupDevTools = ()=>{\n if (enableDevtools) {\n // @ts-expect-error\n window.__SWR_DEVTOOLS_REACT__ = React;\n }\n};\n\nconst normalize = (args)=>{\n return isFunction(args[1]) ? [\n args[0],\n args[1],\n args[2] || {}\n ] : [\n args[0],\n null,\n (args[1] === null ? args[2] : args[1]) || {}\n ];\n};\n\nconst useSWRConfig = ()=>{\n return mergeObjects(defaultConfig, useContext(SWRConfigContext));\n};\n\nconst preload = (key_, fetcher)=>{\n const [key, fnArg] = serialize(key_);\n const [, , , PRELOAD] = SWRGlobalState.get(cache);\n // Prevent preload to be called multiple times before used.\n if (PRELOAD[key]) return PRELOAD[key];\n const req = fetcher(fnArg);\n PRELOAD[key] = req;\n return req;\n};\nconst middleware = (useSWRNext)=>(key_, fetcher_, config)=>{\n // fetcher might be a sync function, so this should not be an async function\n const fetcher = fetcher_ && ((...args)=>{\n const [key] = serialize(key_);\n const [, , , PRELOAD] = SWRGlobalState.get(cache);\n if (key.startsWith(INFINITE_PREFIX)) {\n // we want the infinite fetcher to be called.\n // handling of the PRELOAD cache happens there.\n return fetcher_(...args);\n }\n const req = PRELOAD[key];\n if (isUndefined(req)) return fetcher_(...args);\n delete PRELOAD[key];\n return req;\n });\n return useSWRNext(key_, fetcher, config);\n };\n\nconst BUILT_IN_MIDDLEWARE = use.concat(middleware);\n\n// It's tricky to pass generic types as parameters, so we just directly override\n// the types here.\nconst withArgs = (hook)=>{\n return function useSWRArgs(...args) {\n // Get the default and inherited configuration.\n const fallbackConfig = useSWRConfig();\n // Normalize arguments.\n const [key, fn, _config] = normalize(args);\n // Merge configurations.\n const config = mergeConfigs(fallbackConfig, _config);\n // Apply middleware\n let next = hook;\n const { use } = config;\n const middleware = (use || []).concat(BUILT_IN_MIDDLEWARE);\n for(let i = middleware.length; i--;){\n next = middleware[i](next);\n }\n return next(key, fn || config.fetcher || null, config);\n };\n};\n\n// Add a callback function to a list of keyed callback functions and return\n// the unsubscribe function.\nconst subscribeCallback = (key, callbacks, callback)=>{\n const keyedRevalidators = callbacks[key] || (callbacks[key] = []);\n keyedRevalidators.push(callback);\n return ()=>{\n const index = keyedRevalidators.indexOf(callback);\n if (index >= 0) {\n // O(1): faster than splice\n keyedRevalidators[index] = keyedRevalidators[keyedRevalidators.length - 1];\n keyedRevalidators.pop();\n }\n };\n};\n\n// Create a custom hook with a middleware\nconst withMiddleware = (useSWR, middleware)=>{\n return (...args)=>{\n const [key, fn, config] = normalize(args);\n const uses = (config.use || []).concat(middleware);\n return useSWR(key, fn, {\n ...config,\n use: uses\n });\n };\n};\n\nsetupDevTools();\n\nexport { INFINITE_PREFIX, IS_REACT_LEGACY, IS_SERVER, OBJECT, SWRConfig, SWRGlobalState, UNDEFINED, cache, compare, createCacheHelper, defaultConfig, defaultConfigOptions, getTimestamp, hasRequestAnimationFrame, initCache, internalMutate, isDocumentDefined, isFunction, isPromiseLike, isUndefined, isWindowDefined, mergeConfigs, mergeObjects, mutate, noop, normalize, preload, preset, rAF, events as revalidateEvents, serialize, slowConnection, stableHash, subscribeCallback, useIsomorphicLayoutEffect, useSWRConfig, withArgs, withMiddleware };\n","import 'client-only';\nimport ReactExports, { useRef, useMemo, useCallback, useDebugValue } from 'react';\nimport { useSyncExternalStore } from 'use-sync-external-store/shim/index.js';\nimport { serialize, OBJECT, SWRConfig as SWRConfig$1, defaultConfig, withArgs, SWRGlobalState, createCacheHelper, isUndefined, getTimestamp, UNDEFINED, isFunction, revalidateEvents, internalMutate, useIsomorphicLayoutEffect, subscribeCallback, IS_SERVER, rAF, IS_REACT_LEGACY, mergeObjects } from 'swr/_internal';\nexport { mutate, preload, useSWRConfig } from 'swr/_internal';\n\nconst unstable_serialize = (key)=>serialize(key)[0];\n\n/// <reference types=\"react/experimental\" />\nconst use = ReactExports.use || ((promise)=>{\n if (promise.status === 'pending') {\n throw promise;\n } else if (promise.status === 'fulfilled') {\n return promise.value;\n } else if (promise.status === 'rejected') {\n throw promise.reason;\n } else {\n promise.status = 'pending';\n promise.then((v)=>{\n promise.status = 'fulfilled';\n promise.value = v;\n }, (e)=>{\n promise.status = 'rejected';\n promise.reason = e;\n });\n throw promise;\n }\n});\nconst WITH_DEDUPE = {\n dedupe: true\n};\nconst useSWRHandler = (_key, fetcher, config)=>{\n const { cache, compare, suspense, fallbackData, revalidateOnMount, revalidateIfStale, refreshInterval, refreshWhenHidden, refreshWhenOffline, keepPreviousData } = config;\n const [EVENT_REVALIDATORS, MUTATION, FETCH, PRELOAD] = SWRGlobalState.get(cache);\n // `key` is the identifier of the SWR internal state,\n // `fnArg` is the argument/arguments parsed from the key, which will be passed\n // to the fetcher.\n // All of them are derived from `_key`.\n const [key, fnArg] = serialize(_key);\n // If it's the initial render of this hook.\n const initialMountedRef = useRef(false);\n // If the hook is unmounted already. This will be used to prevent some effects\n // to be called after unmounting.\n const unmountedRef = useRef(false);\n // Refs to keep the key and config.\n const keyRef = useRef(key);\n const fetcherRef = useRef(fetcher);\n const configRef = useRef(config);\n const getConfig = ()=>configRef.current;\n const isActive = ()=>getConfig().isVisible() && getConfig().isOnline();\n const [getCache, setCache, subscribeCache, getInitialCache] = createCacheHelper(cache, key);\n const stateDependencies = useRef({}).current;\n const fallback = isUndefined(fallbackData) ? config.fallback[key] : fallbackData;\n const isEqual = (prev, current)=>{\n for(const _ in stateDependencies){\n const t = _;\n if (t === 'data') {\n if (!compare(prev[t], current[t])) {\n if (!isUndefined(prev[t])) {\n return false;\n }\n if (!compare(returnedData, current[t])) {\n return false;\n }\n }\n } else {\n if (current[t] !== prev[t]) {\n return false;\n }\n }\n }\n return true;\n };\n const getSnapshot = useMemo(()=>{\n const shouldStartRequest = (()=>{\n if (!key) return false;\n if (!fetcher) return false;\n // If `revalidateOnMount` is set, we take the value directly.\n if (!isUndefined(revalidateOnMount)) return revalidateOnMount;\n // If it's paused, we skip revalidation.\n if (getConfig().isPaused()) return false;\n if (suspense) return false;\n if (!isUndefined(revalidateIfStale)) return revalidateIfStale;\n return true;\n })();\n // Get the cache and merge it with expected states.\n const getSelectedCache = (state)=>{\n // We only select the needed fields from the state.\n const snapshot = mergeObjects(state);\n delete snapshot._k;\n if (!shouldStartRequest) {\n return snapshot;\n }\n return {\n isValidating: true,\n isLoading: true,\n ...snapshot\n };\n };\n const cachedData = getCache();\n const initialData = getInitialCache();\n const clientSnapshot = getSelectedCache(cachedData);\n const serverSnapshot = cachedData === initialData ? clientSnapshot : getSelectedCache(initialData);\n // To make sure that we are returning the same object reference to avoid\n // unnecessary re-renders, we keep the previous snapshot and use deep\n // comparison to check if we need to return a new one.\n let memorizedSnapshot = clientSnapshot;\n return [\n ()=>{\n const newSnapshot = getSelectedCache(getCache());\n const compareResult = isEqual(newSnapshot, memorizedSnapshot);\n if (compareResult) {\n // Mentally, we should always return the `memorizedSnapshot` here\n // as there's no change between the new and old snapshots.\n // However, since the `isEqual` function only compares selected fields,\n // the values of the unselected fields might be changed. That's\n // simply because we didn't track them.\n // To support the case in https://github.com/vercel/swr/pull/2576,\n // we need to update these fields in the `memorizedSnapshot` too\n // with direct mutations to ensure the snapshot is always up-to-date\n // even for the unselected fields, but only trigger re-renders when\n // the selected fields are changed.\n memorizedSnapshot.data = newSnapshot.data;\n memorizedSnapshot.isLoading = newSnapshot.isLoading;\n memorizedSnapshot.isValidating = newSnapshot.isValidating;\n memorizedSnapshot.error = newSnapshot.error;\n return memorizedSnapshot;\n } else {\n memorizedSnapshot = newSnapshot;\n return newSnapshot;\n }\n },\n ()=>serverSnapshot\n ];\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [\n cache,\n key\n ]);\n // Get the current state that SWR should return.\n const cached = useSyncExternalStore(useCallback((callback)=>subscribeCache(key, (current, prev)=>{\n if (!isEqual(prev, current)) callback();\n }), // eslint-disable-next-line react-hooks/exhaustive-deps\n [\n cache,\n key\n ]), getSnapshot[0], getSnapshot[1]);\n const isInitialMount = !initialMountedRef.current;\n const hasRevalidator = EVENT_REVALIDATORS[key] && EVENT_REVALIDATORS[key].length > 0;\n const cachedData = cached.data;\n const data = isUndefined(cachedData) ? fallback : cachedData;\n const error = cached.error;\n // Use a ref to store previously returned data. Use the initial data as its initial value.\n const laggyDataRef = useRef(data);\n const returnedData = keepPreviousData ? isUndefined(cachedData) ? laggyDataRef.current : cachedData : data;\n // - Suspense mode and there's stale data for the initial render.\n // - Not suspense mode and there is no fallback data and `revalidateIfStale` is enabled.\n // - `revalidateIfStale` is enabled but `data` is not defined.\n const shouldDoInitialRevalidation = (()=>{\n // if a key already has revalidators and also has error, we should not trigger revalidation\n if (hasRevalidator && !isUndefined(error)) return false;\n // If `revalidateOnMount` is set, we take the value directly.\n if (isInitialMount && !isUndefined(revalidateOnMount)) return revalidateOnMount;\n // If it's paused, we skip revalidation.\n if (getConfig().isPaused()) return false;\n // Under suspense mode, it will always fetch on render if there is no\n // stale data so no need to revalidate immediately mount it again.\n // If data exists, only revalidate if `revalidateIfStale` is true.\n if (suspense) return isUndefined(data) ? false : revalidateIfStale;\n // If there is no stale data, we need to revalidate when mount;\n // If `revalidateIfStale` is set to true, we will always revalidate.\n return isUndefined(data) || revalidateIfStale;\n })();\n // Resolve the default validating state:\n // If it's able to validate, and it should revalidate when mount, this will be true.\n const defaultValidatingState = !!(key && fetcher && isInitialMount && shouldDoInitialRevalidation);\n const isValidating = isUndefined(cached.isValidating) ? defaultValidatingState : cached.isValidating;\n const isLoading = isUndefined(cached.isLoading) ? defaultValidatingState : cached.isLoading;\n // The revalidation function is a carefully crafted wrapper of the original\n // `fetcher`, to correctly handle the many edge cases.\n const revalidate = useCallback(async (revalidateOpts)=>{\n const currentFetcher = fetcherRef.current;\n if (!key || !currentFetcher || unmountedRef.current || getConfig().isPaused()) {\n return false;\n }\n let newData;\n let startAt;\n let loading = true;\n const opts = revalidateOpts || {};\n // If there is no ongoing concurrent request, or `dedupe` is not set, a\n // new request should be initiated.\n const shouldStartNewRequest = !FETCH[key] || !opts.dedupe;\n /*\n For React 17\n Do unmount check for calls:\n If key has changed during the revalidation, or the component has been\n unmounted, old dispatch and old event callbacks should not take any\n effect\n\n For React 18\n only check if key has changed\n https://github.com/reactwg/react-18/discussions/82\n */ const callbackSafeguard = ()=>{\n if (IS_REACT_LEGACY) {\n return !unmountedRef.current && key === keyRef.current && initialMountedRef.current;\n }\n return key === keyRef.current;\n };\n // The final state object when the request finishes.\n const finalState = {\n isValidating: false,\n isLoading: false\n };\n const finishRequestAndUpdateState = ()=>{\n setCache(finalState);\n };\n const cleanupState = ()=>{\n // Check if it's still the same request before deleting it.\n const requestInfo = FETCH[key];\n if (requestInfo && requestInfo[1] === startAt) {\n delete FETCH[key];\n }\n };\n // Start fetching. Change the `isValidating` state, update the cache.\n const initialState = {\n isValidating: true\n };\n // It is in the `isLoading` state, if and only if there is no cached data.\n // This bypasses fallback data and laggy data.\n if (isUndefined(getCache().data)) {\n initialState.isLoading = true;\n }\n try {\n if (shouldStartNewRequest) {\n setCache(initialState);\n // If no cache is being rendered currently (it shows a blank page),\n // we trigger the loading slow event.\n if (config.loadingTimeout && isUndefined(getCache().data)) {\n setTimeout(()=>{\n if (loading && callbackSafeguard()) {\n getConfig().onLoadingSlow(key, config);\n }\n }, config.loadingTimeout);\n }\n // Start the request and save the timestamp.\n // Key must be truthy if entering here.\n FETCH[key] = [\n currentFetcher(fnArg),\n getTimestamp()\n ];\n }\n [newData, startAt] = FETCH[key];\n newData = await newData;\n if (shouldStartNewRequest) {\n // If the request isn't interrupted, clean it up after the\n // deduplication interval.\n setTimeout(cleanupState, config.dedupingInterval);\n }\n // If there're other ongoing request(s), started after the current one,\n // we need to ignore the current one to avoid possible race conditions:\n // req1------------------>res1 (current one)\n // req2---------------->res2\n // the request that fired later will always be kept.\n // The timestamp maybe be `undefined` or a number\n if (!FETCH[key] || FETCH[key][1] !== startAt) {\n if (shouldStartNewRequest) {\n if (callbackSafeguard()) {\n getConfig().onDiscarded(key);\n }\n }\n return false;\n }\n // Clear error.\n finalState.error = UNDEFINED;\n // If there're other mutations(s), that overlapped with the current revalidation:\n // case 1:\n // req------------------>res\n // mutate------>end\n // case 2:\n // req------------>res\n // mutate------>end\n // case 3:\n // req------------------>res\n // mutate-------...---------->\n // we have to ignore the revalidation result (res) because it's no longer fresh.\n // meanwhile, a new revalidation should be triggered when the mutation ends.\n const mutationInfo = MUTATION[key];\n if (!isUndefined(mutationInfo) && // case 1\n (startAt <= mutationInfo[0] || // case 2\n startAt <= mutationInfo[1] || // case 3\n mutationInfo[1] === 0)) {\n finishRequestAndUpdateState();\n if (shouldStartNewRequest) {\n if (callbackSafeguard()) {\n getConfig().onDiscarded(key);\n }\n }\n return false;\n }\n // Deep compare with the latest state to avoid extra re-renders.\n // For local state, compare and assign.\n const cacheData = getCache().data;\n // Since the compare fn could be custom fn\n // cacheData might be different from newData even when compare fn returns True\n finalState.data = compare(cacheData, newData) ? cacheData : newData;\n // Trigger the successful callback if it's the original request.\n if (shouldStartNewRequest) {\n if (callbackSafeguard()) {\n getConfig().onSuccess(newData, key, config);\n }\n }\n } catch (err) {\n cleanupState();\n const currentConfig = getConfig();\n const { shouldRetryOnError } = currentConfig;\n // Not paused, we continue handling the error. Otherwise, discard it.\n if (!currentConfig.isPaused()) {\n // Get a new error, don't use deep comparison for errors.\n finalState.error = err;\n // Error event and retry logic. Only for the actual request, not\n // deduped ones.\n if (shouldStartNewRequest && callbackSafeguard()) {\n currentConfig.onError(err, key, currentConfig);\n if (shouldRetryOnError === true || isFunction(shouldRetryOnError) && shouldRetryOnError(err)) {\n if (isActive()) {\n // If it's inactive, stop. It will auto-revalidate when\n // refocusing or reconnecting.\n // When retrying, deduplication is always enabled.\n currentConfig.onErrorRetry(err, key, currentConfig, (_opts)=>{\n const revalidators = EVENT_REVALIDATORS[key];\n if (revalidators && revalidators[0]) {\n revalidators[0](revalidateEvents.ERROR_REVALIDATE_EVENT, _opts);\n }\n }, {\n retryCount: (opts.retryCount || 0) + 1,\n dedupe: true\n });\n }\n }\n }\n }\n }\n // Mark loading as stopped.\n loading = false;\n // Update the current hook's state.\n finishRequestAndUpdateState();\n return true;\n }, // `setState` is immutable, and `eventsCallback`, `fnArg`, and\n // `keyValidating` are depending on `key`, so we can exclude them from\n // the deps array.\n //\n // FIXME:\n // `fn` and `config` might be changed during the lifecycle,\n // but they might be changed every render like this.\n // `useSWR('key', () => fetch('/api/'), { suspense: true })`\n // So we omit the values from the deps array\n // even though it might cause unexpected behaviors.\n // eslint-disable-next-line react-hooks/exhaustive-deps\n [\n key,\n cache\n ]);\n // Similar to the global mutate but bound to the current cache and key.\n // `cache` isn't allowed to change during the lifecycle.\n // eslint-disable-next-line react-hooks/exhaustive-deps\n const boundMutate = useCallback(// Use callback to make sure `keyRef.current` returns latest result every time\n (...args)=>{\n return internalMutate(cache, keyRef.current, ...args);\n }, // eslint-disable-next-line react-hooks/exhaustive-deps\n []);\n // The logic for updating refs.\n useIsomorphicLayoutEffect(()=>{\n fetcherRef.current = fetcher;\n configRef.current = config;\n // Handle laggy data updates. If there's cached data of the current key,\n // it'll be the correct reference.\n if (!isUndefined(cachedData)) {\n laggyDataRef.current = cachedData;\n }\n });\n // After mounted or key changed.\n useIsomorphicLayoutEffect(()=>{\n if (!key) return;\n const softRevalidate = revalidate.bind(UNDEFINED, WITH_DEDUPE);\n // Expose revalidators to global event listeners. So we can trigger\n // revalidation from the outside.\n let nextFocusRevalidatedAt = 0;\n const onRevalidate = (type, opts = {})=>{\n if (type == revalidateEvents.FOCUS_EVENT) {\n const now = Date.now();\n if (getConfig().revalidateOnFocus && now > nextFocusRevalidatedAt && isActive()) {\n nextFocusRevalidatedAt = now + getConfig().focusThrottleInterval;\n softRevalidate();\n }\n } else if (type == revalidateEvents.RECONNECT_EVENT) {\n if (getConfig().revalidateOnReconnect && isActive()) {\n softRevalidate();\n }\n } else if (type == revalidateEvents.MUTATE_EVENT) {\n return revalidate();\n } else if (type == revalidateEvents.ERROR_REVALIDATE_EVENT) {\n return revalidate(opts);\n }\n return;\n };\n const unsubEvents = subscribeCallback(key, EVENT_REVALIDATORS, onRevalidate);\n // Mark the component as mounted and update corresponding refs.\n unmountedRef.current = false;\n keyRef.current = key;\n initialMountedRef.current = true;\n // Keep the original key in the cache.\n setCache({\n _k: fnArg\n });\n // Trigger a revalidation\n if (shouldDoInitialRevalidation) {\n if (isUndefined(data) || IS_SERVER) {\n // Revalidate immediately.\n softRevalidate();\n } else {\n // Delay the revalidate if we have data to return so we won't block\n // rendering.\n rAF(softRevalidate);\n }\n }\n return ()=>{\n // Mark it as unmounted.\n unmountedRef.current = true;\n unsubEvents();\n };\n }, [\n key\n ]);\n // Polling\n useIsomorphicLayoutEffect(()=>{\n let timer;\n function next() {\n // Use the passed interval\n // ...or invoke the function with the updated data to get the interval\n const interval = isFunction(refreshInterval) ? refreshInterval(getCache().data) : refreshInterval;\n // We only start the next interval if `refreshInterval` is not 0, and:\n // - `force` is true, which is the start of polling\n // - or `timer` is not 0, which means the effect wasn't canceled\n if (interval && timer !== -1) {\n timer = setTimeout(execute, interval);\n }\n }\n function execute() {\n // Check if it's OK to execute:\n // Only revalidate when the page is visible, online, and not errored.\n if (!getCache().error && (refreshWhenHidden || getConfig().isVisible()) && (refreshWhenOffline || getConfig().isOnline())) {\n revalidate(WITH_DEDUPE).then(next);\n } else {\n // Schedule the next interval to check again.\n next();\n }\n }\n next();\n return ()=>{\n if (timer) {\n clearTimeout(timer);\n timer = -1;\n }\n };\n }, [\n refreshInterval,\n refreshWhenHidden,\n refreshWhenOffline,\n key\n ]);\n // Display debug info in React DevTools.\n useDebugValue(returnedData);\n // In Suspense mode, we can't return the empty `data` state.\n // If there is an `error`, the `error` needs to be thrown to the error boundary.\n // If there is no `error`, the `revalidation` promise needs to be thrown to\n // the suspense boundary.\n if (suspense && isUndefined(data) && key) {\n // SWR should throw when trying to use Suspense on the server with React 18,\n // without providing any initial data. See:\n // https://github.com/vercel/swr/issues/1832\n if (!IS_REACT_LEGACY && IS_SERVER) {\n throw new Error('Fallback data is required when using suspense in SSR.');\n }\n // Always update fetcher and config refs even with the Suspense mode.\n fetcherRef.current = fetcher;\n configRef.current = config;\n unmountedRef.current = false;\n const req = PRELOAD[key];\n if (!isUndefined(req)) {\n const promise = boundMutate(req);\n use(promise);\n }\n if (isUndefined(error)) {\n const promise = revalidate(WITH_DEDUPE);\n if (!isUndefined(returnedData)) {\n promise.status = 'fulfilled';\n promise.value = true;\n }\n use(promise);\n } else {\n throw error;\n }\n }\n return {\n mutate: boundMutate,\n get data () {\n stateDependencies.data = true;\n return returnedData;\n },\n get error () {\n stateDependencies.error = true;\n return error;\n },\n get isValidating () {\n stateDependencies.isValidating = true;\n return isValidating;\n },\n get isLoading () {\n stateDependencies.isLoading = true;\n return isLoading;\n }\n };\n};\nconst SWRConfig = OBJECT.defineProperty(SWRConfig$1, 'defaultValue', {\n value: defaultConfig\n});\n/**\n * A hook to fetch data.\n *\n * @link https://swr.vercel.app\n * @example\n * ```jsx\n * import useSWR from 'swr'\n * function Profile() {\n * const { data, error, isLoading } = useSWR('/api/user', fetcher)\n * if (error) return <div>failed to load</div>\n * if (isLoading) return <div>loading...</div>\n * return <div>hello {data.name}!</div>\n * }\n * ```\n */ const useSWR = withArgs(useSWRHandler);\n\nexport { SWRConfig, useSWR as default, unstable_serialize };\n","import { ClientError } from \"graphql-request\";\nimport type { Fetcher, Key, SWRConfiguration, SWRResponse } from \"swr\";\nimport __useSWR from \"swr\";\n\nexport interface SWRResponsePro<Data = any, Error = any>\n extends SWRResponse<Data, Error> {\n loading: boolean;\n}\n\nconst SWR_ONFOCUS = \"swr_revalidateOnFocus\"; // 聚焦时重新请求\nconst SWR_IFSTALE = \"swr_revalidateIfStale\"; // 控制SWR在挂载并且存在陈旧数据时重新请求\nconst SWR_ONRECONNECT = \"swr_revalidateOnReconnect\"; // 重新连接时重新请求\nconst defaultConfig = {\n revalidateOnFocus: window.localStorage.getItem(SWR_ONFOCUS) !== \"false\",\n revalidateIfStale: window.localStorage.getItem(SWR_IFSTALE) !== \"false\",\n revalidateOnReconnect:\n window.localStorage.getItem(SWR_ONRECONNECT) !== \"false\",\n};\n\nexport const useSWR = <\n Data = any,\n Error = ClientError,\n SWRKey extends Key = null,\n>(\n key: SWRKey,\n fetcher: Fetcher<Data, SWRKey> | null,\n config: SWRConfiguration<Data, Error, Fetcher<Data, SWRKey>> | undefined,\n): SWRResponsePro<Data, Error> => {\n const res = __useSWR<Data, Error, SWRKey>(key, fetcher, {\n ...defaultConfig,\n ...(config || {}),\n });\n const { error, data } = res;\n\n const hasObjectData =\n data &&\n Object.prototype.toString.call(data) === \"[object Object]\" &&\n Object.keys(data || {}).length > 0;\n return {\n ...res,\n data: hasObjectData ? data : error?.response?.data || data,\n loading: !data && !error,\n };\n};\n\nexport const genKey = <\n V extends Record<string, unknown> = Record<string, unknown>,\n>(\n name: string,\n object: V = {} as V,\n): Key => [\n name,\n ...Object.keys(object)\n .sort()\n .map((key) => object[key]),\n];\n\nexport default useSWR;\n","import { GraphQLClient } from 'graphql-request';\nimport { GraphQLClientRequestHeaders } from 'graphql-request/build/cjs/types';\nimport gql from 'graphql-tag';\nimport { ClientError } from 'graphql-request/src/types';\nimport useSWR from './useSWR';\nimport { SWRConfiguration as SWRConfigInterface, Key as SWRKeyInterface } from 'swr';\nexport type Maybe<T> = T | null;\nexport type InputMaybe<T> = Maybe<T>;\nexport type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };\nexport type MakeOptional<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]?: Maybe<T[SubKey]> };\nexport type MakeMaybe<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]: Maybe<T[SubKey]> };\nexport type MakeEmpty<T extends { [key: string]: unknown }, K extends keyof T> = { [_ in K]?: never };\nexport type Incremental<T> = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never };\n/** All built-in and custom scalars, mapped to their actual values */\nexport type Scalars = {\n ID: { input: string; output: string; }\n String: { input: string; output: string; }\n Boolean: { input: boolean; output: boolean; }\n Int: { input: number; output: number; }\n Float: { input: number; output: number; }\n Int64: { input: any; output: any; }\n Map: { input: any; output: any; }\n Time: { input: any; output: any; }\n Void: { input: any; output: any; }\n};\n\nexport type AddDataProcessInput = {\n bucket_name: Scalars['String']['input'];\n creator: Scalars['String']['input'];\n data_process_config_info?: InputMaybe<Array<DataProcessConfigItem>>;\n file_names?: InputMaybe<Array<FileItem>>;\n file_type: Scalars['String']['input'];\n name: Scalars['String']['input'];\n namespace: Scalars['String']['input'];\n post_data_set_name: Scalars['String']['input'];\n post_data_set_version: Scalars['String']['input'];\n pre_data_set_name: Scalars['String']['input'];\n pre_data_set_version: Scalars['String']['input'];\n version_data_set_name: Scalars['String']['input'];\n};\n\nexport type AllDataProcessListByCountInput = {\n keyword: Scalars['String']['input'];\n namespace: Scalars['String']['input'];\n};\n\nexport type AllDataProcessListByPageInput = {\n keyword: Scalars['String']['input'];\n namespace: Scalars['String']['input'];\n pageIndex: Scalars['Int']['input'];\n pageSize: Scalars['Int']['input'];\n};\n\n/**\n * Application\n * 应用完整信息\n */\nexport type Application = {\n __typename?: 'Application';\n /** conversionWindowSize 对话轮次 */\n conversionWindowSize?: Maybe<Scalars['Int']['output']>;\n /** docNullReturn 空搜索回复 */\n docNullReturn?: Maybe<Scalars['String']['output']>;\n /** knowledgebase 指当前知识库应用使用的知识库,即 Kind 为 KnowledgeBase 的 CR 的名称,目前一个应用只支持0或1个知识库 */\n knowledgebase?: Maybe<Scalars['String']['output']>;\n /** llm 指当前知识库应用使用的模型服务,即 Kind 为 LLM 的 CR 的名称 */\n llm: Scalars['String']['output'];\n /** maxLength 最大响应长度 */\n maxLength?: Maybe<Scalars['Int']['output']>;\n metadata?: Maybe<ApplicationMetadata>;\n /** model 指具体使用的模型名称,比如 gpt-3.5-turbo 或者 chatglm_turbo */\n model?: Maybe<Scalars['String']['output']>;\n /** numDocuments 引用上限 */\n numDocuments?: Maybe<Scalars['Int']['output']>;\n /** 对话开场白 */\n prologue?: Maybe<Scalars['String']['output']>;\n /** scoreThreshold 最低相似度 */\n scoreThreshold?: Maybe<Scalars['Float']['output']>;\n /** showNextGuide 下一步引导,是否显示下一步引导 */\n showNextGuid?: Maybe<Scalars['Boolean']['output']>;\n /** temperature 温度 */\n temperature?: Maybe<Scalars['Float']['output']>;\n /** userPrompt 用户级别的 Prompt */\n userPrompt?: Maybe<Scalars['String']['output']>;\n};\n\n/**\n * Application\n * 应用 Metadata\n */\nexport type ApplicationMetadata = {\n __typename?: 'ApplicationMetadata';\n /** 添加一些辅助性记录信息 */\n annotations?: Maybe<Scalars['Map']['output']>;\n /** 创建时间 */\n creationTimestamp?: Maybe<Scalars['Time']['output']>;\n /**\n * 创建者,为当前用户的用户名\n * 规则: webhook启用后自动添加,默认为空\n */\n creator?: Maybe<Scalars['String']['output']>;\n /** 描述信息 */\n description?: Maybe<Scalars['String']['output']>;\n /** 展示名,别名 */\n displayName?: Maybe<Scalars['String']['output']>;\n /** Icon,应用头像, base64格式的图片 */\n icon?: Maybe<Scalars['String']['output']>;\n /** 应用id,为CR资源中的metadata.uid */\n id?: Maybe<Scalars['String']['output']>;\n /** IsPublic, 是否发布,即是否公开提供服务 */\n isPublic?: Maybe<Scalars['Boolean']['output']>;\n /** 一些用于标记,选择的的标签 */\n labels?: Maybe<Scalars['Map']['output']>;\n /**\n * 应用名称\n * 规则: 遵循 k8s 命名\n */\n name: Scalars['String']['output'];\n /**\n * 应用所在的 namespace\n * 规则: 非空\n */\n namespace: Scalars['String']['output'];\n /** 应用状态 */\n status?: Maybe<Scalars['String']['output']>;\n /** 更新时间 */\n updateTimestamp?: Maybe<Scalars['Time']['output']>;\n};\n\nexport type ApplicationMutation = {\n __typename?: 'ApplicationMutation';\n createApplication: ApplicationMetadata;\n deleteApplication?: Maybe<Scalars['Void']['output']>;\n updateApplication: ApplicationMetadata;\n updateApplicationConfig: Application;\n};\n\n\nexport type ApplicationMutationCreateApplicationArgs = {\n input: CreateApplicationMetadataInput;\n};\n\n\nexport type ApplicationMutationDeleteApplicationArgs = {\n input: DeleteCommonInput;\n};\n\n\nexport type ApplicationMutationUpdateApplicationArgs = {\n input: UpdateApplicationMetadataInput;\n};\n\n\nexport type ApplicationMutationUpdateApplicationConfigArgs = {\n input: UpdateApplicationConfigInput;\n};\n\nexport type ApplicationQuery = {\n __typename?: 'ApplicationQuery';\n getApplication: Application;\n listApplicationMetadata: PaginatedResult;\n};\n\n\nexport type ApplicationQueryGetApplicationArgs = {\n name: Scalars['String']['input'];\n namespace: Scalars['String']['input'];\n};\n\n\nexport type ApplicationQueryListApplicationMetadataArgs = {\n input: ListCommonInput;\n};\n\nexport type CheckDataProcessTaskNameInput = {\n name: Scalars['String']['input'];\n namespace: Scalars['String']['input'];\n};\n\nexport type CountDataProcessItem = {\n __typename?: 'CountDataProcessItem';\n data: Scalars['Int']['output'];\n message: Scalars['String']['output'];\n status: Scalars['Int']['output'];\n};\n\nexport type CreateApplicationMetadataInput = {\n /** 添加一些辅助性记录信息 */\n annotations?: InputMaybe<Scalars['Map']['input']>;\n /** 描述信息 */\n description?: InputMaybe<Scalars['String']['input']>;\n /** 展示名,别名 */\n displayName: Scalars['String']['input'];\n /** Icon,应用头像, base64格式的图片 */\n icon: Scalars['String']['input'];\n /** IsPublic, 是否发布,即是否公开提供服务 */\n isPublic?: InputMaybe<Scalars['Boolean']['input']>;\n /** 一些用于标记,选择的的标签 */\n labels?: InputMaybe<Scalars['Map']['input']>;\n /**\n * 应用名称\n * 规则: 遵循 k8s 命名\n */\n name: Scalars['String']['input'];\n /**\n * 应用所在的namespace\n * 规则: 非空\n */\n namespace: Scalars['String']['input'];\n};\n\n/** 数据集创建的输入 */\nexport type CreateDatasetInput = {\n /** 一些备注用的注视信息,或者记录一个简单的配置 */\n annotations?: InputMaybe<Scalars['Map']['input']>;\n /** 数据集里面的数据的类型,文本,视频,图片 */\n contentType: Scalars['String']['input'];\n /** 描述信息,可以不写 */\n description?: InputMaybe<Scalars['String']['input']>;\n /** 展示名称 */\n displayName?: InputMaybe<Scalars['String']['input']>;\n /**\n * 应用场景,可以为空\n * 规则: enum{ xx xx } (非固定字段,以产品为准)\n */\n filed?: InputMaybe<Scalars['String']['input']>;\n /** 一些标签选择信息,可以不添加 */\n labels?: InputMaybe<Scalars['Map']['input']>;\n /**\n * 数据集的名字\n * 规则: k8s的名称规则\n * 规则: 非空\n */\n name: Scalars['String']['input'];\n /**\n * 数据集的命名空间\n * 规则: 非空\n */\n namespace: Scalars['String']['input'];\n};\n\n/** 新增数据源时输入条件 */\nexport type CreateDatasourceInput = {\n /** 数据源资源注释 */\n annotations?: InputMaybe<Scalars['Map']['input']>;\n /** 数据源资源描述 */\n description?: InputMaybe<Scalars['String']['input']>;\n /** 数据源资源展示名称作为显示,并提供编辑 */\n displayName?: InputMaybe<Scalars['String']['input']>;\n /** 数据源的访问信息输入 */\n endpointinput: EndpointInput;\n /** 数据源资源标签 */\n labels?: InputMaybe<Scalars['Map']['input']>;\n /**\n * 名字\n * 规则: k8s的名称规则\n * 规则: 非空\n */\n name: Scalars['String']['input'];\n /**\n * 数据源的命名空间\n * 规则: 非空\n */\n namespace: Scalars['String']['input'];\n /** 数据源为对象存储类型时的输入 */\n ossinput?: InputMaybe<OssInput>;\n};\n\nexport type CreateEmbedderInput = {\n /** 模型服务资源注释 */\n annotations?: InputMaybe<Scalars['Map']['input']>;\n /** 模型服务资源描述 */\n description?: InputMaybe<Scalars['String']['input']>;\n /** 模型服务资源展示名称作为显示,并提供编辑 */\n displayName?: InputMaybe<Scalars['String']['input']>;\n /** 模型服务访问信息(必填) */\n endpointinput: EndpointInput;\n /** 模型服务资源标签 */\n labels?: InputMaybe<Scalars['Map']['input']>;\n /** 模型服务资源名称(不可同名) */\n name: Scalars['String']['input'];\n /** 模型服务创建命名空间 */\n namespace: Scalars['String']['input'];\n /**\n * 向量化模型服务接口类型\n * 规则: 目前支持 zhipuai,openai两种接口类型\n */\n type?: InputMaybe<Scalars['String']['input']>;\n};\n\n/** 创建知识库的输入 */\nexport type CreateKnowledgeBaseInput = {\n /** 知识库资源注释 */\n annotations?: InputMaybe<Scalars['Map']['input']>;\n /** 知识库资源描述 */\n description?: InputMaybe<Scalars['String']['input']>;\n /** 知识库资源展示名称作为显示,并提供编辑 */\n displayName?: InputMaybe<Scalars['String']['input']>;\n /** embedder指当前知识库使用的embedding向量化模型 */\n embedder: Scalars['String']['input'];\n /** 知识库文件 */\n fileGroups?: InputMaybe<Array<Filegroupinput>>;\n /** 知识库资源标签 */\n labels?: InputMaybe<Scalars['Map']['input']>;\n /** 知识库资源名称(不可同名) */\n name: Scalars['String']['input'];\n /** 知识库创建命名空间 */\n namespace: Scalars['String']['input'];\n /** \"向量数据库(目前不需要填写,直接使用系统默认的向量数据库) */\n vectorStore?: InputMaybe<TypedObjectReferenceInput>;\n};\n\nexport type CreateLlmInput = {\n /** 模型服务资源注释 */\n annotations?: InputMaybe<Scalars['Map']['input']>;\n /** 模型服务资源描述 */\n description?: InputMaybe<Scalars['String']['input']>;\n /** 模型服务资源展示名称作为显示,并提供编辑 */\n displayName?: InputMaybe<Scalars['String']['input']>;\n /** 模型服务访问信息(必填) */\n endpointinput: EndpointInput;\n /** 模型服务资源标签 */\n labels?: InputMaybe<Scalars['Map']['input']>;\n /** 模型服务资源名称(不可同名) */\n name: Scalars['String']['input'];\n /** 模型服务创建命名空间 */\n namespace: Scalars['String']['input'];\n /**\n * 模型服务接口类型\n * 规则: 目前支持 zhipuai,openai两种接口类型\n */\n type?: InputMaybe<Scalars['String']['input']>;\n};\n\n/** 创建模型的输入 */\nexport type CreateModelInput = {\n /** 模型资源描述 */\n description?: InputMaybe<Scalars['String']['input']>;\n /** 模型资源展示名称作为显示,并提供编辑 */\n displayName?: InputMaybe<Scalars['String']['input']>;\n /** 模型资源名称(不可同名) */\n name: Scalars['String']['input'];\n /** 模型创建命名空间 */\n namespace: Scalars['String']['input'];\n /**\n * 模型类型\n * 规则: 目前支持 llm和embedding两种模型类型\n * 规则: 如果该模型支持多种模型类型,则可多选。多选后组成的字段通过逗号隔开。如 \"llm,embedding\"\n */\n types: Scalars['String']['input'];\n};\n\nexport type CreateModelServiceInput = {\n /** 模型资源注释 */\n annotations?: InputMaybe<Scalars['Map']['input']>;\n /**\n * 模型服务 API 类型\n * 规则:支持 openai, zhipuai 两种类型\n */\n apiType?: InputMaybe<Scalars['String']['input']>;\n /** 模型资源描述 */\n description?: InputMaybe<Scalars['String']['input']>;\n /** 模型资源展示名称作为显示,并提供编辑 */\n displayName?: InputMaybe<Scalars['String']['input']>;\n /**\n * 模型服务的Embedding模型列表\n * 规则;如果不填或者为空,则按照模型的API类型获取默认的模型列表\n */\n embeddingModels?: InputMaybe<Array<Scalars['String']['input']>>;\n /** 模型服务终端输入 */\n endpoint: EndpointInput;\n /** 模型资源标签 */\n labels?: InputMaybe<Scalars['Map']['input']>;\n /**\n * 模型服务的大语言模型列表\n * 规则;如果不填或者为空,则按照模型的API类型获取默认的模型列表\n */\n llmModels?: InputMaybe<Array<Scalars['String']['input']>>;\n /** 模型服务资源名称(不可同名) */\n name: Scalars['String']['input'];\n /** 模型服务创建命名空间 */\n namespace: Scalars['String']['input'];\n /**\n * 模型服务能力类型,支持 llm 和 embedding 两种模型类型\n * 规则: 如果该模型支持多种模型类型,则可多选。多选后组成的字段通过逗号隔开。如 \"llm,embedding\"\n */\n types?: InputMaybe<Scalars['String']['input']>;\n};\n\nexport type CreateVersionedDatasetInput = {\n /** 一些备注用的注视信息,或者记录一个简单的配置 */\n annotations?: InputMaybe<Scalars['Map']['input']>;\n /**\n * dataset的名字,需要根据这个名字,\n * 判断是否最新版本不包含任何文件(产品要求,有一个不包含任何文件的版本,不允许创建新的版本)\n */\n datasetName: Scalars['String']['input'];\n /** 描述信息,可以不写 */\n description?: InputMaybe<Scalars['String']['input']>;\n /** 展示名称,用于展示在界面上的,必须填写 */\n displayName?: InputMaybe<Scalars['String']['input']>;\n /** 从数据源要上传的文件,目前以及不用了 */\n fileGrups?: InputMaybe<Array<InputMaybe<FileGroup>>>;\n /** 界面上创建新版本选择从某个版本集成的时候,填写version字段 */\n inheritedFrom?: InputMaybe<Scalars['String']['input']>;\n /** 一些标签选择信息,可以不添加 */\n labels?: InputMaybe<Scalars['Map']['input']>;\n /** 数据集的CR名字,要满足k8s的名称规则 */\n name: Scalars['String']['input'];\n namespace: Scalars['String']['input'];\n /** 是否发布,0是未发布,1是已经发布,创建一个版本的时候默认传递0就可以 */\n released: Scalars['Int']['input'];\n /** 数据集里面的数据的类型,文本,视频,图片 */\n version: Scalars['String']['input'];\n};\n\n/** 创建模型服务worker的输入 */\nexport type CreateWorkerInput = {\n /** worker运行配置的环境变量 */\n additionalEnvs?: InputMaybe<Scalars['Map']['input']>;\n /** 模型资源描述 */\n description?: InputMaybe<Scalars['String']['input']>;\n /** 模型资源展示名称作为显示,并提供编辑 */\n displayName?: InputMaybe<Scalars['String']['input']>;\n /** 模型服务的节点亲合度配置 */\n matchExpressions?: InputMaybe<Array<InputMaybe<NodeSelectorRequirementInput>>>;\n /**\n * worker对应的模型\n * 规则: 必须指定模型准确的namespace\n * 规则: 必填\n */\n model: TypedObjectReferenceInput;\n /** 模型资源名称(不可同名) */\n name: Scalars['String']['input'];\n /** 模型创建命名空间 */\n namespace: Scalars['String']['input'];\n /**\n * worker运行所需的资源\n * 规则: 必填\n */\n resources: ResourcesInput;\n /**\n * Worker类型\n * 支持两种类型:\n * - \"fastchat\" : fastchat提供的通用的推理服务模式\n * - \"fastchat-vllm\" : fastchat提供的采用VLLM推理加速的推理服务模式\n * 规则: 如果为空,则默认为 \"fastchat\"\n */\n type?: InputMaybe<Scalars['String']['input']>;\n};\n\nexport type DataProcessConfig = {\n __typename?: 'DataProcessConfig';\n children?: Maybe<Array<Maybe<DataProcessConfigChildren>>>;\n description: Scalars['String']['output'];\n file_num: Scalars['Int']['output'];\n name: Scalars['String']['output'];\n status: Scalars['String']['output'];\n};\n\nexport type DataProcessConfigChildren = {\n __typename?: 'DataProcessConfigChildren';\n description?: Maybe<Scalars['String']['output']>;\n enable?: Maybe<Scalars['String']['output']>;\n file_progress?: Maybe<Array<Maybe<DataProcessConfigpreFileProgress>>>;\n llm_config?: Maybe<LlmConfig>;\n name?: Maybe<Scalars['String']['output']>;\n preview?: Maybe<Array<Maybe<DataProcessConfigpreView>>>;\n zh_name?: Maybe<Scalars['String']['output']>;\n};\n\nexport type DataProcessConfigItem = {\n llm_config?: InputMaybe<LlmConfigItem>;\n type: Scalars['String']['input'];\n};\n\nexport type DataProcessConfigpreFileProgress = {\n __typename?: 'DataProcessConfigpreFileProgress';\n end_time?: Maybe<Scalars['String']['output']>;\n file_name?: Maybe<Scalars['String']['output']>;\n id?: Maybe<Scalars['String']['output']>;\n progress?: Maybe<Scalars['String']['output']>;\n start_time?: Maybe<Scalars['String']['output']>;\n status?: Maybe<Scalars['String']['output']>;\n};\n\nexport type DataProcessConfigpreView = {\n __typename?: 'DataProcessConfigpreView';\n content?: Maybe<Array<Maybe<DataProcessConfigpreViewContent>>>;\n file_name?: Maybe<Scalars['String']['output']>;\n};\n\nexport type DataProcessConfigpreViewContent = {\n __typename?: 'DataProcessConfigpreViewContent';\n post?: Maybe<Scalars['String']['output']>;\n pre?: Maybe<Scalars['String']['output']>;\n};\n\nexport type DataProcessDetails = {\n __typename?: 'DataProcessDetails';\n data: DataProcessDetailsItem;\n message: Scalars['String']['output'];\n status: Scalars['Int']['output'];\n};\n\nexport type DataProcessDetailsInput = {\n id: Scalars['String']['input'];\n};\n\nexport type DataProcessDetailsItem = {\n __typename?: 'DataProcessDetailsItem';\n config?: Maybe<Array<DataProcessConfig>>;\n creator: Scalars['String']['output'];\n end_time: Scalars['String']['output'];\n error_msg?: Maybe<Scalars['String']['output']>;\n file_num: Scalars['Int']['output'];\n file_type: Scalars['String']['output'];\n id: Scalars['String']['output'];\n name: Scalars['String']['output'];\n post_dataset_name: Scalars['String']['output'];\n post_dataset_version: Scalars['String']['output'];\n pre_dataset_name: Scalars['String']['output'];\n pre_dataset_version: Scalars['String']['output'];\n start_time: Scalars['String']['output'];\n status: Scalars['String']['output'];\n};\n\nexport type DataProcessFileLogInput = {\n file_name: Scalars['String']['input'];\n id: Scalars['String']['input'];\n type: Scalars['String']['input'];\n};\n\nexport type DataProcessItem = {\n __typename?: 'DataProcessItem';\n error_msg?: Maybe<Scalars['String']['output']>;\n id: Scalars['String']['output'];\n name: Scalars['String']['output'];\n post_data_set_name: Scalars['String']['output'];\n post_data_set_version?: Maybe<Scalars['String']['output']>;\n pre_data_set_name: Scalars['String']['output'];\n pre_data_set_version: Scalars['String']['output'];\n start_datetime: Scalars['String']['output'];\n status: Scalars['String']['output'];\n};\n\nexport type DataProcessMutation = {\n __typename?: 'DataProcessMutation';\n createDataProcessTask?: Maybe<DataProcessResponse>;\n deleteDataProcessTask?: Maybe<DataProcessResponse>;\n};\n\n\nexport type DataProcessMutationCreateDataProcessTaskArgs = {\n input?: InputMaybe<AddDataProcessInput>;\n};\n\n\nexport type DataProcessMutationDeleteDataProcessTaskArgs = {\n input?: InputMaybe<DeleteDataProcessInput>;\n};\n\nexport type DataProcessQuery = {\n __typename?: 'DataProcessQuery';\n allDataProcessListByCount?: Maybe<CountDataProcessItem>;\n allDataProcessListByPage?: Maybe<PaginatedDataProcessItem>;\n checkDataProcessTaskName?: Maybe<DataProcessResponse>;\n dataProcessDetails?: Maybe<DataProcessDetails>;\n dataProcessLogInfoByFileName?: Maybe<DataProcessResponse>;\n dataProcessRetry?: Maybe<DataProcessResponse>;\n dataProcessSupportType?: Maybe<DataProcessSupportType>;\n getLogInfo?: Maybe<DataProcessResponse>;\n};\n\n\nexport type DataProcessQueryAllDataProcessListByCountArgs = {\n input?: InputMaybe<AllDataProcessListByCountInput>;\n};\n\n\nexport type DataProcessQueryAllDataProcessListByPageArgs = {\n input?: InputMaybe<AllDataProcessListByPageInput>;\n};\n\n\nexport type DataProcessQueryCheckDataProcessTaskNameArgs = {\n input?: InputMaybe<CheckDataProcessTaskNameInput>;\n};\n\n\nexport type DataProcessQueryDataProcessDetailsArgs = {\n input?: InputMaybe<DataProcessDetailsInput>;\n};\n\n\nexport type DataProcessQueryDataProcessLogInfoByFileNameArgs = {\n input?: InputMaybe<DataProcessFileLogInput>;\n};\n\n\nexport type DataProcessQueryDataProcessRetryArgs = {\n input?: InputMaybe<DataProcessRetryInput>;\n};\n\n\nexport type DataProcessQueryGetLogInfoArgs = {\n input?: InputMaybe<DataProcessDetailsInput>;\n};\n\nexport type DataProcessResponse = {\n __typename?: 'DataProcessResponse';\n data: Scalars['String']['output'];\n message: Scalars['String']['output'];\n status: Scalars['Int']['output'];\n};\n\nexport type DataProcessRetryInput = {\n creator: Scalars['String']['input'];\n id: Scalars['String']['input'];\n};\n\nexport type DataProcessSupportType = {\n __typename?: 'DataProcessSupportType';\n data?: Maybe<Array<DataProcessSupportTypeItem>>;\n message: Scalars['String']['output'];\n status: Scalars['Int']['output'];\n};\n\nexport type DataProcessSupportTypeChildren = {\n __typename?: 'DataProcessSupportTypeChildren';\n description: Scalars['String']['output'];\n enable: Scalars['String']['output'];\n name: Scalars['String']['output'];\n zh_name: Scalars['String']['output'];\n};\n\nexport type DataProcessSupportTypeItem = {\n __typename?: 'DataProcessSupportTypeItem';\n children?: Maybe<Array<DataProcessSupportTypeChildren>>;\n description: Scalars['String']['output'];\n name: Scalars['String']['output'];\n};\n\n/**\n * Dataset\n * 数据集代表用户纳管的一组相似属性的文件,采用相同的方式进行数据处理并用于后续的\n * 1. 模型训练\n * 2. 知识库\n *\n * 支持多种类型数据:\n * - 文本\n * - 图片\n * - 视频\n *\n * 单个数据集仅允许包含同一类型文件,不同类型文件将被忽略\n * 数据集允许有多个版本,数据处理针对单个版本进行\n * 数据集某个版本完成数据处理后,数据处理服务需要将处理后的存储回 版本数据集\n */\nexport type Dataset = {\n __typename?: 'Dataset';\n /** 添加一些辅助性记录信息 */\n annotations?: Maybe<Scalars['Map']['output']>;\n /**\n * 数据集类型,文本,图片,视频\n * 规则: enum{ text image video}\n * 规则: 非空\n */\n contentType: Scalars['String']['output'];\n /** 创建时间 */\n creationTimestamp?: Maybe<Scalars['Time']['output']>;\n /**\n * 创建者,为当前用户的用户名\n * 规则: webhook启用后自动添加,默认为空\n */\n creator?: Maybe<Scalars['String']['output']>;\n /** 描述信息 */\n description?: Maybe<Scalars['String']['output']>;\n /** 展示名 */\n displayName?: Maybe<Scalars['String']['output']>;\n /**\n * 应用场景\n * 规则: enum{ xx xx } (非固定字段,以产品为准)\n */\n field?: Maybe<Scalars['String']['output']>;\n /** 一些用于标记,选择的的标签 */\n labels?: Maybe<Scalars['Map']['output']>;\n /**\n * 名称\n * 规则: 遵循k8s命名\n */\n name: Scalars['String']['output'];\n /**\n * 所在的namespace(文件上传时作为bucket)\n * 规则: 获取当前项目对应的命名空间\n * 规则: 非空\n */\n namespace: Scalars['String']['output'];\n /** 更新时间, 这里更新指文件同步,或者数据处理完成后,做的更新操作的时间 */\n updateTimestamp?: Maybe<Scalars['Time']['output']>;\n /**\n * 数据集下面的版本列表。\n * 规则: 支持对名字,类型的完全匹配过滤。\n * 规则: 支持通过标签(somelabel=abc),字段(metadata.name=abc)进行过滤\n */\n versions: PaginatedResult;\n};\n\n\n/**\n * Dataset\n * 数据集代表用户纳管的一组相似属性的文件,采用相同的方式进行数据处理并用于后续的\n * 1. 模型训练\n * 2. 知识库\n *\n * 支持多种类型数据:\n * - 文本\n * - 图片\n * - 视频\n *\n * 单个数据集仅允许包含同一类型文件,不同类型文件将被忽略\n * 数据集允许有多个版本,数据处理针对单个版本进行\n * 数据集某个版本完成数据处理后,数据处理服务需要将处理后的存储回 版本数据集\n */\nexport type DatasetVersionsArgs = {\n input: ListVersionedDatasetInput;\n};\n\n/** 数据集更新 */\nexport type DatasetMutation = {\n __typename?: 'DatasetMutation';\n /** 创建数据集 */\n createDataset: Dataset;\n /**\n * 删除数据集\n * 规则: 支持删除一个名称列表中包含的所有数据集\n * 规则: 支持通过标签选择器,将满足标签的dataset全部删除\n * 规则: 如果提供了这两个参数,以名字列表为主。\n */\n deleteDatasets?: Maybe<Scalars['Void']['output']>;\n /** 更新数据集 */\n updateDataset: Dataset;\n};\n\n\n/** 数据集更新 */\nexport type DatasetMutationCreateDatasetArgs = {\n input?: InputMaybe<CreateDatasetInput>;\n};\n\n\n/** 数据集更新 */\nexport type DatasetMutationDeleteDatasetsArgs = {\n input?: InputMaybe<DeleteCommonInput>;\n};\n\n\n/** 数据集更新 */\nexport type DatasetMutationUpdateDatasetArgs = {\n input?: InputMaybe<UpdateDatasetInput>;\n};\n\n/** 数据集查询 */\nexport type DatasetQuery = {\n __typename?: 'DatasetQuery';\n /** 根据名字获取某个具体的数据集 */\n getDataset: Dataset;\n /**\n * 获取数据集列表\n * 规则: 支持通过标签和字段进行选择。如下:\n * labelSelector: aa=bbb\n * fieldSelector= metadata.name=somename\n */\n listDatasets: PaginatedResult;\n};\n\n\n/** 数据集查询 */\nexport type DatasetQueryGetDatasetArgs = {\n name: Scalars['String']['input'];\n namespace: Scalars['String']['input'];\n};\n\n\n/** 数据集查询 */\nexport type DatasetQueryListDatasetsArgs = {\n input?: InputMaybe<ListDatasetInput>;\n};\n\n/** 数据源: 定义了对某一个具备数据存储能力服务的访问信息,供后续向该数据源获取数据使用 */\nexport type Datasource = {\n __typename?: 'Datasource';\n annotations?: Maybe<Scalars['Map']['output']>;\n /** 创建时间 */\n creationTimestamp?: Maybe<Scalars['Time']['output']>;\n /**\n * 创建者,为当前用户的用户名\n * 规则: webhook启用后自动添加,默认为空\n */\n creator?: Maybe<Scalars['String']['output']>;\n /** 描述信息 */\n description?: Maybe<Scalars['String']['output']>;\n /** 展示名 */\n displayName?: Maybe<Scalars['String']['output']>;\n /** 终端访问信息 */\n endpoint?: Maybe<Endpoint>;\n /** 模型id,为CR资源中的metadata.uid */\n id?: Maybe<Scalars['String']['output']>;\n labels?: Maybe<Scalars['Map']['output']>;\n message?: Maybe<Scalars['String']['output']>;\n /**\n * 名称\n * 规则: 遵循k8s命名\n * 规则: 非空\n */\n name: Scalars['String']['output'];\n /**\n * 命名空间\n * 规则: 非空\n */\n namespace: Scalars['String']['output'];\n /**\n * 对象存储访问信息\n * 规则: 非空代表当前数据源为对象存储数据源\n */\n oss?: Maybe<Oss>;\n /** 数据源连接状态 */\n status?: Maybe<Scalars['String']['output']>;\n /** 更新时间, 这里更新指文件同步,或者数据处理完成后,做的更新操作的时间 */\n updateTimestamp?: Maybe<Scalars['Time']['output']>;\n};\n\nexport type DatasourceMutation = {\n __typename?: 'DatasourceMutation';\n createDatasource: Datasource;\n deleteDatasources?: Maybe<Scalars['Void']['output']>;\n updateDatasource: Datasource;\n};\n\n\nexport type DatasourceMutationCreateDatasourceArgs = {\n input: CreateDatasourceInput;\n};\n\n\nexport type DatasourceMutationDeleteDatasourcesArgs = {\n input?: InputMaybe<DeleteCommonInput>;\n};\n\n\nexport type DatasourceMutationUpdateDatasourceArgs = {\n input?: InputMaybe<UpdateDatasourceInput>;\n};\n\nexport type DatasourceQuery = {\n __typename?: 'DatasourceQuery';\n checkDatasource: Datasource;\n getDatasource: Datasource;\n listDatasources: PaginatedResult;\n};\n\n\nexport type DatasourceQueryCheckDatasourceArgs = {\n input: CreateDatasourceInput;\n};\n\n\nexport type DatasourceQueryGetDatasourceArgs = {\n name: Scalars['String']['input'];\n namespace: Scalars['String']['input'];\n};\n\n\nexport type DatasourceQueryListDatasourcesArgs = {\n input: ListCommonInput;\n};\n\nexport type DeleteCommonInput = {\n /** 字段选择器 */\n fieldSelector?: InputMaybe<Scalars['String']['input']>;\n /** 标签选择器 */\n labelSelector?: InputMaybe<Scalars['String']['input']>;\n name?: InputMaybe<Scalars['String']['input']>;\n namespace: Scalars['String']['input'];\n};\n\nexport type DeleteDataProcessInput = {\n id: Scalars['String']['input'];\n};\n\nexport type DeleteVersionedDatasetInput = {\n fieldSelector?: InputMaybe<Scalars['String']['input']>;\n labelSelector?: InputMaybe<Scalars['String']['input']>;\n name?: InputMaybe<Scalars['String']['input']>;\n namespace: Scalars['String']['input'];\n};\n\nexport type Embedder = {\n __typename?: 'Embedder';\n annotations?: Maybe<Scalars['Map']['output']>;\n /** 服务地址 */\n baseUrl: Scalars['String']['output'];\n creationTimestamp?: Maybe<Scalars['Time']['output']>;\n creator?: Maybe<Scalars['String']['output']>;\n description?: Maybe<Scalars['String']['output']>;\n displayName?: Maybe<Scalars['String']['output']>;\n id?: Maybe<Scalars['String']['output']>;\n labels?: Maybe<Scalars['Map']['output']>;\n message?: Maybe<Scalars['String']['output']>;\n /** 此LLM支持调用的模型列表 */\n models?: Maybe<Array<Scalars['String']['output']>>;\n name: Scalars['String']['output'];\n namespace: Scalars['String']['output'];\n /**\n * Embedder供应商类型:\n * 规则: 分为两类: worker 或者 3rd_party\n */\n provider?: Maybe<Scalars['String']['output']>;\n status?: Maybe<Scalars['String']['output']>;\n type?: Maybe<Scalars['String']['output']>;\n updateTimestamp?: Maybe<Scalars['Time']['output']>;\n};\n\nexport type EmbedderMutation = {\n __typename?: 'EmbedderMutation';\n createEmbedder: Embedder;\n deleteEmbedders?: Maybe<Scalars['Void']['output']>;\n updateEmbedder: Embedder;\n};\n\n\nexport type EmbedderMutationCreateEmbedderArgs = {\n input: CreateEmbedderInput;\n};\n\n\nexport type EmbedderMutationDeleteEmbeddersArgs = {\n input?: InputMaybe<DeleteCommonInput>;\n};\n\n\nexport type EmbedderMutationUpdateEmbedderArgs = {\n input?: InputMaybe<UpdateEmbedderInput>;\n};\n\nexport type EmbedderQuery = {\n __typename?: 'EmbedderQuery';\n getEmbedder: Embedder;\n listEmbedders: PaginatedResult;\n};\n\n\nexport type EmbedderQueryGetEmbedderArgs = {\n name: Scalars['String']['input'];\n namespace: Scalars['String']['input'];\n};\n\n\nexport type EmbedderQueryListEmbeddersArgs = {\n input: ListCommonInput;\n};\n\n/** 终端的访问信息 */\nexport type Endpoint = {\n __typename?: 'Endpoint';\n /** 终端访问的密钥信息,保存在k8s secret中 */\n authSecret?: Maybe<TypedObjectReference>;\n /** 是否通过非安全方式访问,默认为false,即安全模式访问 */\n insecure?: Maybe<Scalars['Boolean']['output']>;\n /** url地址 */\n url?: Maybe<Scalars['String']['output']>;\n};\n\n/** 对象存储终端输入 */\nexport type EndpointInput = {\n /** secret验证密码 */\n auth?: InputMaybe<Scalars['Map']['input']>;\n /** 默认true */\n insecure?: InputMaybe<Scalars['Boolean']['input']>;\n /** 地址(必填) */\n url: Scalars['String']['input'];\n};\n\n/**\n * File\n * 展示某个版本的所有文件。\n */\nexport type F = {\n __typename?: 'F';\n /** 数据量 */\n count?: Maybe<Scalars['String']['output']>;\n /** 文件创建时间 */\n creationTimestamp?: Maybe<Scalars['Time']['output']>;\n /** 文件类型 */\n fileType: Scalars['String']['output'];\n /** 文件在数据源中的路径,a/b/c.txt或者d.txt */\n path: Scalars['String']['output'];\n /** 文件大小 */\n size?: Maybe<Scalars['String']['output']>;\n /** 文件更新时间,如果没有导入成功,这个字段为空 */\n time?: Maybe<Scalars['Time']['output']>;\n};\n\n/** 根据条件顾虑版本内的文件,只支持关键词搜索 */\nexport type FileFilter = {\n /** 根据关键词搜索文件,strings.Container(fileName, keyword) */\n keyword?: InputMaybe<Scalars['String']['input']>;\n /** 页 */\n page?: InputMaybe<Scalars['Int']['input']>;\n /** 页内容数量 */\n pageSize?: InputMaybe<Scalars['Int']['input']>;\n /** 根据文件名字或者更新时间排序, file, time */\n sortBy?: InputMaybe<Scalars['String']['input']>;\n};\n\nexport type FileGroup = {\n /** 用到的文件路径,注意⚠️ 一定不要加bucket的名字 */\n paths?: InputMaybe<Array<Scalars['String']['input']>>;\n /** 数据源的基础信息 */\n source: TypedObjectReferenceInput;\n};\n\nexport type FileItem = {\n name: Scalars['String']['input'];\n};\n\n/** 知识库 */\nexport type KnowledgeBase = {\n __typename?: 'KnowledgeBase';\n /** 添加一些辅助性记录信息 */\n annotations?: Maybe<Scalars['Map']['output']>;\n /** 创建时间 */\n creationTimestamp?: Maybe<Scalars['Time']['output']>;\n /**\n * 创建者,为当前用户的用户名\n * 规则: webhook启用后自动添加,默认为空\n */\n creator?: Maybe<Scalars['String']['output']>;\n /** 描述信息 */\n description?: Maybe<Scalars['String']['output']>;\n /** 展示名 */\n displayName?: Maybe<Scalars['String']['output']>;\n /** embedder指当前知识库使用的embedding向量化模型,即 Kind 为 Embedder */\n embedder?: Maybe<TypedObjectReference>;\n /** fileGroupDetails为知识库中所处理的文件组的详细内容和状态 */\n fileGroupDetails?: Maybe<Array<Maybe<Filegroupdetail>>>;\n /** 知识库id,为CR资源中的metadata.uid */\n id?: Maybe<Scalars['String']['output']>;\n /** 一些用于标记,选择的的标签 */\n labels?: Maybe<Scalars['Map']['output']>;\n /** 知识库状态的原因的详细内容 */\n message?: Maybe<Scalars['String']['output']>;\n /**\n * 名称\n * 规则: 遵循k8s命名\n */\n name: Scalars['String']['output'];\n /**\n * 所在的namespace(文件上传时作为bucket)\n * 规则: 获取当前项目对应的命名空间\n * 规则: 非空\n */\n namespace: Scalars['String']['output'];\n /** 知识库状态的原因 */\n reason?: Maybe<Scalars['String']['output']>;\n /**\n * 知识库整体连接状态\n * 规则: True 代表正常 False代表异常\n * 规则: Deleting 代表删除中\n */\n status?: Maybe<Scalars['String']['output']>;\n /** 更新时间 */\n updateTimestamp?: Maybe<Scalars['Time']['output']>;\n /** vectorStore指当前知识库使用的向量数据库服务,即 Kind 为 VectorStore */\n vectorStore?: Maybe<TypedObjectReference>;\n};\n\nexport type KnowledgeBaseMutation = {\n __typename?: 'KnowledgeBaseMutation';\n createKnowledgeBase: KnowledgeBase;\n deleteKnowledgeBase?: Maybe<Scalars['Void']['output']>;\n updateKnowledgeBase: KnowledgeBase;\n};\n\n\nexport type KnowledgeBaseMutationCreateKnowledgeBaseArgs = {\n input: CreateKnowledgeBaseInput;\n};\n\n\nexport type KnowledgeBaseMutationDeleteKnowledgeBaseArgs = {\n input?: InputMaybe<DeleteCommonInput>;\n};\n\n\nexport type KnowledgeBaseMutationUpdateKnowledgeBaseArgs = {\n input?: InputMaybe<UpdateKnowledgeBaseInput>;\n};\n\nexport type KnowledgeBaseQuery = {\n __typename?: 'KnowledgeBaseQuery';\n getKnowledgeBase: KnowledgeBase;\n listKnowledgeBases: PaginatedResult;\n};\n\n\nexport type KnowledgeBaseQueryGetKnowledgeBaseArgs = {\n name: Scalars['String']['input'];\n namespace: Scalars['String']['input'];\n};\n\n\nexport type KnowledgeBaseQueryListKnowledgeBasesArgs = {\n input: ListKnowledgeBaseInput;\n};\n\nexport type Llm = {\n __typename?: 'LLM';\n annotations?: Maybe<Scalars['Map']['output']>;\n /** 服务地址 */\n baseUrl: Scalars['String']['output'];\n creationTimestamp?: Maybe<Scalars['Time']['output']>;\n creator?: Maybe<Scalars['String']['output']>;\n description?: Maybe<Scalars['String']['output']>;\n displayName?: Maybe<Scalars['String']['output']>;\n id?: Maybe<Scalars['String']['output']>;\n labels?: Maybe<Scalars['Map']['output']>;\n message?: Maybe<Scalars['String']['output']>;\n /** 此LLM支持调用的模型列表 */\n models?: Maybe<Array<Scalars['String']['output']>>;\n name: Scalars['String']['output'];\n namespace: Scalars['String']['output'];\n /**\n * LLM供应商类型:\n * 规则: 分为两类: worker 或者 3rd_party\n */\n provider?: Maybe<Scalars['String']['output']>;\n status?: Maybe<Scalars['String']['output']>;\n type?: Maybe<Scalars['String']['output']>;\n updateTimestamp?: Maybe<Scalars['Time']['output']>;\n};\n\nexport type LlmConfig = {\n __typename?: 'LLMConfig';\n max_tokens?: Maybe<Scalars['String']['output']>;\n model?: Maybe<Scalars['String']['output']>;\n name?: Maybe<Scalars['String']['output']>;\n namespace?: Maybe<Scalars['String']['output']>;\n prompt_template?: Maybe<Scalars['String']['output']>;\n provider?: Maybe<Scalars['String']['output']>;\n temperature?: Maybe<Scalars['String']['output']>;\n top_p?: Maybe<Scalars['String']['output']>;\n};\n\nexport type LlmConfigItem = {\n max_tokens?: InputMaybe<Scalars['String']['input']>;\n model?: InputMaybe<Scalars['String']['input']>;\n name?: InputMaybe<Scalars['String']['input']>;\n namespace?: InputMaybe<Scalars['String']['input']>;\n prompt_template?: InputMaybe<Scalars['String']['input']>;\n provider?: InputMaybe<Scalars['String']['input']>;\n temperature?: InputMaybe<Scalars['String']['input']>;\n top_p?: InputMaybe<Scalars['String']['input']>;\n};\n\nexport type LlmQuery = {\n __typename?: 'LLMQuery';\n getLLM: Llm;\n listLLMs: PaginatedResult;\n};\n\n\nexport type LlmQueryGetLlmArgs = {\n name: Scalars['String']['input'];\n namespace: Scalars['String']['input'];\n};\n\n\nexport type LlmQueryListLlMsArgs = {\n input: ListCommonInput;\n};\n\nexport type ListCommonInput = {\n /** 字段选择器 */\n fieldSelector?: InputMaybe<Scalars['String']['input']>;\n /** 关键词: 模糊匹配 */\n keyword?: InputMaybe<Scalars['String']['input']>;\n /** 标签选择器 */\n labelSelector?: InputMaybe<Scalars['String']['input']>;\n namespace: Scalars['String']['input'];\n /**\n * 分页页码,\n * 规则: 从1开始,默认是1\n */\n page?: InputMaybe<Scalars['Int']['input']>;\n /**\n * 每页数量,\n * 规则: 默认10\n */\n pageSize?: InputMaybe<Scalars['Int']['input']>;\n};\n\n/** 数据集分页列表查询的输入 */\nexport type ListDatasetInput = {\n /** 展示名 */\n displayName?: InputMaybe<Scalars['String']['input']>;\n /** 字段选择器 */\n fieldSelector?: InputMaybe<Scalars['String']['input']>;\n /**\n * 关键词: 模糊匹配\n * 规则: namespace,name,displayName,contentType,annotations中如果包含该字段则返回\n */\n keyword?: InputMaybe<Scalars['String']['input']>;\n /** 标签选择器 */\n labelSelector?: InputMaybe<Scalars['String']['input']>;\n /** name用来唯一确定资源 */\n name?: InputMaybe<Scalars['String']['input']>;\n /**\n * namespace用来确定资源\n * 规则: 必填\n */\n namespace: Scalars['String']['input'];\n /**\n * 分页页码,\n * 规则: 从1开始,默认是1\n */\n page?: InputMaybe<Scalars['Int']['input']>;\n /**\n * 每页数量,\n * 规则: 默认10\n */\n pageSize?: InputMaybe<Scalars['Int']['input']>;\n};\n\n/** 知识库分页列表查询的输入 */\nexport type ListKnowledgeBaseInput = {\n displayName?: InputMaybe<Scalars['String']['input']>;\n /** 字段选择器 */\n fieldSelector?: InputMaybe<Scalars['String']['input']>;\n /**\n * 关键词: 模糊匹配\n * 规则: name,displayName中如果包含该字段则返回\n */\n keyword?: InputMaybe<Scalars['String']['input']>;\n /** 标签选择器 */\n labelSelector?: InputMaybe<Scalars['String']['input']>;\n name?: InputMaybe<Scalars['String']['input']>;\n namespace: Scalars['String']['input'];\n /**\n * 分页页码,\n * 规则: 从1开始,默认是1\n */\n page?: InputMaybe<Scalars['Int']['input']>;\n /**\n * 每页数量,\n * 规则: 默认10\n */\n pageSize?: InputMaybe<Scalars['Int']['input']>;\n};\n\nexport type ListModelInput = {\n /** 字段选择器 */\n fieldSelector?: InputMaybe<Scalars['String']['input']>;\n /** 关键词: 模糊匹配 */\n keyword?: InputMaybe<Scalars['String']['input']>;\n /** 标签选择器 */\n labelSelector?: InputMaybe<Scalars['String']['input']>;\n namespace: Scalars['String']['input'];\n /**\n * 分页页码,\n * 规则: 从1开始,默认是1\n */\n page?: InputMaybe<Scalars['Int']['input']>;\n /**\n * 每页数量,\n * 规则: 默认10\n */\n pageSize?: InputMaybe<Scalars['Int']['input']>;\n /**\n * 是否包含系统提供的模型\n * 规则: 为true时,代表将同时获取系统提供的模型\n * 规则: 默认为false\n */\n systemModel?: InputMaybe<Scalars['Boolean']['input']>;\n};\n\nexport type ListModelServiceInput = {\n /**\n * 模型服务供应商类型\n * 规则:\n * - 为空默认不过滤\n * - openai 则仅返回接口类型类型为openai的模型服务\n * - zhipuai 则仅返回接口类型类型为zhipuai的模型服务\n */\n apiType?: InputMaybe<Scalars['String']['input']>;\n /** 关键词搜索 */\n keyword?: InputMaybe<Scalars['String']['input']>;\n namespace: Scalars['String']['input'];\n page?: InputMaybe<Scalars['Int']['input']>;\n pageSize?: InputMaybe<Scalars['Int']['input']>;\n /**\n * 模型服务供应商类型\n * 规则:\n * - 为空默认不过滤\n * - worker 则仅返回本地模型服务\n * - 3rd_party 则仅返回第三方模型服务\n */\n providerType?: InputMaybe<Scalars['String']['input']>;\n /**\n * 模型服务的类型\n * 规则:\n * - 为空默认不过滤\n * - llm 则仅返回LLM模型服务\n * - embedding 则仅返回Embedding模型服务\n * - llm,embedding 则返回同时提供LLM和Embedding能力的模型服务\n */\n types?: InputMaybe<Scalars['String']['input']>;\n};\n\nexport type ListVersionedDatasetInput = {\n displayName?: InputMaybe<Scalars['String']['input']>;\n fieldSelector?: InputMaybe<Scalars['String']['input']>;\n keyword?: InputMaybe<Scalars['String']['input']>;\n labelSelector?: InputMaybe<Scalars['String']['input']>;\n name?: InputMaybe<Scalars['String']['input']>;\n namespace?: InputMaybe<Scalars['String']['input']>;\n /** 分页页码,从1开始,默认是1 */\n page?: InputMaybe<Scalars['Int']['input']>;\n /** 每页数量,默认10 */\n pageSize?: InputMaybe<Scalars['Int']['input']>;\n};\n\nexport type ListWorkerInput = {\n /** 字段选择器 */\n fieldSelector?: InputMaybe<Scalars['String']['input']>;\n /** 关键词: 模糊匹配 */\n keyword?: InputMaybe<Scalars['String']['input']>;\n /** 标签选择器 */\n labelSelector?: InputMaybe<Scalars['String']['input']>;\n /**\n * worker对应的模型类型\n * 规则: 模型分为embedding和llm两大类。如果两者都有,则通过逗号隔开,如: \"embedding,llm\"\n */\n modelTypes?: InputMaybe<Scalars['String']['input']>;\n namespace: Scalars['String']['input'];\n /**\n * 分页页码,\n * 规则: 从1开始,默认是1\n */\n page?: InputMaybe<Scalars['Int']['input']>;\n /**\n * 每页数量,\n * 规则: 默认10\n */\n pageSize?: InputMaybe<Scalars['Int']['input']>;\n};\n\n/** 模型 */\nexport type Model = {\n __typename?: 'Model';\n /** 添加一些辅助性记录信息 */\n annotations?: Maybe<Scalars['Map']['output']>;\n /** 创建时间 */\n creationTimestamp?: Maybe<Scalars['Time']['output']>;\n /**\n * 创建者,为当前用户的用户名\n * 规则: webhook启用后自动添加,默认为空\n */\n creator?: Maybe<Scalars['String']['output']>;\n /** 描述信息 */\n description?: Maybe<Scalars['String']['output']>;\n /** 展示名 */\n displayName?: Maybe<Scalars['String']['output']>;\n /** 模型包含文件列表 */\n files: PaginatedResult;\n /** 模型id,为CR资源中的metadata.uid */\n id?: Maybe<Scalars['String']['output']>;\n /** 一些用于标记,选择的的标签 */\n labels?: Maybe<Scalars['Map']['output']>;\n /** 详细信息 */\n message?: Maybe<Scalars['String']['output']>;\n /**\n * 名称\n * 规则: 遵循k8s命名\n */\n name: Scalars['String']['output'];\n /**\n * 所在的namespace(文件上传时作为bucket)\n * 规则: 获取当前项目对应的命名空间\n * 规则: 非空\n */\n namespace: Scalars['String']['output'];\n /** 状态 */\n status?: Maybe<Scalars['String']['output']>;\n /**\n * 模型是否是由系统提供\n * 规则: 如果为true,则是系统系统的。\n * 规则: 如果是系统提供的模型,不允许修改\n */\n systemModel?: Maybe<Scalars['Boolean']['output']>;\n /**\n * 模型类型\n * 规则: 目前支持 llm和embedding两种模型类型\n * 规则: 如果该模型支持多种模型类型,则可多选。多选后组成的字段通过逗号隔开。如 \"llm,embedding\"\n */\n types: Scalars['String']['output'];\n /** 更新时间 */\n updateTimestamp?: Maybe<Scalars['Time']['output']>;\n};\n\n\n/** 模型 */\nexport type ModelFilesArgs = {\n input?: InputMaybe<FileFilter>;\n};\n\nexport type ModelMutation = {\n __typename?: 'ModelMutation';\n createModel: Model;\n deleteModels?: Maybe<Scalars['Void']['output']>;\n updateModel: Model;\n};\n\n\nexport type ModelMutationCreateModelArgs = {\n input: CreateModelInput;\n};\n\n\nexport type ModelMutationDeleteModelsArgs = {\n input?: InputMaybe<DeleteCommonInput>;\n};\n\n\nexport type ModelMutationUpdateModelArgs = {\n input?: InputMaybe<UpdateModelInput>;\n};\n\nexport type ModelQuery = {\n __typename?: 'ModelQuery';\n getModel: Model;\n listModels: PaginatedResult;\n};\n\n\nexport type ModelQueryGetModelArgs = {\n name: Scalars['String']['input'];\n namespace: Scalars['String']['input'];\n};\n\n\nexport type ModelQueryListModelsArgs = {\n input: ListModelInput;\n};\n\nexport type ModelService = {\n __typename?: 'ModelService';\n annotations?: Maybe<Scalars['Map']['output']>;\n /**\n * 模型服务 API 类型\n * 规则:支持 openai, zhipuai 两种类型\n */\n apiType?: Maybe<Scalars['String']['output']>;\n /** 服务地址: 仅针对第三方模型服务 */\n baseUrl: Scalars['String']['output'];\n /** 模型服务的创建和更新时间 */\n creationTimestamp?: Maybe<Scalars['Time']['output']>;\n creator?: Maybe<Scalars['String']['output']>;\n description?: Maybe<Scalars['String']['output']>;\n displayName?: Maybe<Scalars['String']['output']>;\n /**\n * 模型服务的Embedding模型列表\n * 规则;如果不填或者为空,则按照模型的API类型获取默认的模型列表\n */\n embeddingModels?: Maybe<Array<Scalars['String']['output']>>;\n id?: Maybe<Scalars['String']['output']>;\n labels?: Maybe<Scalars['Map']['output']>;\n /**\n * 模型服务的大语言模型列表\n * 规则;如果不填或者为空,则按照模型的API类型获取默认的模型列表\n */\n llmModels?: Maybe<Array<Scalars['String']['output']>>;\n /** 详细的状态消息描述 */\n message?: Maybe<Scalars['String']['output']>;\n name: Scalars['String']['output'];\n namespace: Scalars['String']['output'];\n /**\n * 模型服务供应商的类型\n * 规则: 3rd_party 第三方\n * 规则: worker 本地\n */\n providerType?: Maybe<Scalars['String']['output']>;\n /**\n * 状态\n * 规则: 目前分为六种状态\n * - True: 正常 (第三方模型服务)\n * - False: 异常 (第三方模型服务)\n * - Unknown: 未知 (本地模型服务)\n * - Pending: 发布中 (本地模型服务)\n * - Running: 已发布 (本地模型服务)\n * - Error: 异常 (本地模型服务)\n */\n status?: Maybe<Scalars['String']['output']>;\n /**\n * 模型服务能力类型,支持 llm 和 embedding 两种模型类型\n * 规则: 如果该模型支持多种模型类型,则可多选。多选后组成的字段通过逗号隔开。如 \"llm,embedding\"\n */\n types?: Maybe<Scalars['String']['output']>;\n updateTimestamp?: Maybe<Scalars['Time']['output']>;\n};\n\nexport type ModelServiceMutation = {\n __typename?: 'ModelServiceMutation';\n createModelService: ModelService;\n deleteModelService?: Maybe<Scalars['Void']['output']>;\n updateModelService: ModelService;\n};\n\n\nexport type ModelServiceMutationCreateModelServiceArgs = {\n input: CreateModelServiceInput;\n};\n\n\nexport type ModelServiceMutationDeleteModelServiceArgs = {\n input?: InputMaybe<DeleteCommonInput>;\n};\n\n\nexport type ModelServiceMutationUpdateModelServiceArgs = {\n input?: InputMaybe<UpdateModelServiceInput>;\n};\n\nexport type ModelServiceQuery = {\n __typename?: 'ModelServiceQuery';\n checkModelService: ModelService;\n getModelService: ModelService;\n listModelServices: PaginatedResult;\n};\n\n\nexport type ModelServiceQueryCheckModelServiceArgs = {\n input: CreateModelServiceInput;\n};\n\n\nexport type ModelServiceQueryGetModelServiceArgs = {\n name: Scalars['String']['input'];\n namespace: Scalars['String']['input'];\n};\n\n\nexport type ModelServiceQueryListModelServicesArgs = {\n input?: InputMaybe<ListModelServiceInput>;\n};\n\nexport type Mutation = {\n __typename?: 'Mutation';\n Application?: Maybe<ApplicationMutation>;\n Dataset?: Maybe<DatasetMutation>;\n Datasource?: Maybe<DatasourceMutation>;\n Embedder?: Maybe<EmbedderMutation>;\n KnowledgeBase?: Maybe<KnowledgeBaseMutation>;\n Model?: Maybe<ModelMutation>;\n ModelService?: Maybe<ModelServiceMutation>;\n VersionedDataset?: Maybe<VersionedDatasetMutation>;\n Worker?: Maybe<WorkerMutation>;\n dataProcess?: Maybe<DataProcessMutation>;\n hello: Scalars['String']['output'];\n};\n\n\nexport type MutationHelloArgs = {\n name: Scalars['String']['input'];\n};\n\nexport type NodeSelectorRequirement = {\n __typename?: 'NodeSelectorRequirement';\n key: Scalars['String']['output'];\n operator: Scalars['String']['output'];\n values: Array<Scalars['String']['output']>;\n};\n\nexport type NodeSelectorRequirementInput = {\n key: Scalars['String']['input'];\n operator: Scalars['String']['input'];\n values: Array<Scalars['String']['input']>;\n};\n\n/** 对象存储的使用信息 */\nexport type Oss = {\n __typename?: 'Oss';\n /** 所用的bucket名称 */\n bucket?: Maybe<Scalars['String']['output']>;\n /** 所用的object路径(可为前缀) */\n object?: Maybe<Scalars['String']['output']>;\n};\n\n/** 文件输入 */\nexport type OssInput = {\n bucket: Scalars['String']['input'];\n object?: InputMaybe<Scalars['String']['input']>;\n};\n\nexport type PageNode = ApplicationMetadata | Dataset | Datasource | Embedder | F | KnowledgeBase | Llm | Model | ModelService | RayCluster | VersionedDataset | Worker;\n\nexport type PaginatedDataProcessItem = {\n __typename?: 'PaginatedDataProcessItem';\n data?: Maybe<Array<DataProcessItem>>;\n message: Scalars['String']['output'];\n status: Scalars['Int']['output'];\n};\n\nexport type PaginatedResult = {\n __typename?: 'PaginatedResult';\n hasNextPage: Scalars['Boolean']['output'];\n nodes?: Maybe<Array<PageNode>>;\n page?: Maybe<Scalars['Int']['output']>;\n pageSize?: Maybe<Scalars['Int']['output']>;\n totalCount: Scalars['Int']['output'];\n};\n\nexport type Query = {\n __typename?: 'Query';\n Application?: Maybe<ApplicationQuery>;\n Dataset?: Maybe<DatasetQuery>;\n Datasource?: Maybe<DatasourceQuery>;\n Embedder?: Maybe<EmbedderQuery>;\n KnowledgeBase?: Maybe<KnowledgeBaseQuery>;\n LLM?: Maybe<LlmQuery>;\n Model?: Maybe<ModelQuery>;\n ModelService?: Maybe<ModelServiceQuery>;\n RayCluster?: Maybe<RayClusterQuery>;\n VersionedDataset?: Maybe<VersionedDatasetQuery>;\n Worker?: Maybe<WorkerQuery>;\n dataProcess?: Maybe<DataProcessQuery>;\n hello: Scalars['String']['output'];\n};\n\n\nexport type QueryHelloArgs = {\n name: Scalars['String']['input'];\n};\n\n/** RayCluster集群 */\nexport type RayCluster = {\n __typename?: 'RayCluster';\n /** Ray集群dashboard的地址 */\n dashboardHost?: Maybe<Scalars['String']['output']>;\n /**\n * Ray集群head节点的地址\n * 规则: 遵循k8s命名\n */\n headAddress?: Maybe<Scalars['String']['output']>;\n /** Ray集群的索引 */\n index: Scalars['Int']['output'];\n /**\n * 名称\n * 规则: 遵循k8s命名\n */\n name: Scalars['String']['output'];\n /** Ray集群应用要求的python版本 */\n pythonVersion?: Maybe<Scalars['String']['output']>;\n};\n\nexport type RayClusterQuery = {\n __typename?: 'RayClusterQuery';\n listRayClusters: PaginatedResult;\n};\n\n\nexport type RayClusterQueryListRayClustersArgs = {\n input: ListCommonInput;\n};\n\n/** 模型服务worker节点的资源(limits) */\nexport type Resources = {\n __typename?: 'Resources';\n cpu?: Maybe<Scalars['String']['output']>;\n memory?: Maybe<Scalars['String']['output']>;\n nvidiaGPU?: Maybe<Scalars['String']['output']>;\n};\n\n/** 资源配置的输入 */\nexport type ResourcesInput = {\n /**\n * cpu配置\n * 规则: 必填\n */\n cpu: Scalars['String']['input'];\n /**\n * memory配置\n * 规则: 必填\n */\n memory: Scalars['String']['input'];\n /** gpu配置 */\n nvidiaGPU?: InputMaybe<Scalars['String']['input']>;\n};\n\nexport type TypedObjectReference = {\n __typename?: 'TypedObjectReference';\n apiGroup?: Maybe<Scalars['String']['output']>;\n kind: Scalars['String']['output'];\n name: Scalars['String']['output'];\n namespace?: Maybe<Scalars['String']['output']>;\n};\n\nexport type TypedObjectReferenceInput = {\n apiGroup?: InputMaybe<Scalars['String']['input']>;\n kind: Scalars['String']['input'];\n name: Scalars['String']['input'];\n namespace?: InputMaybe<Scalars['String']['input']>;\n};\n\nexport type UpdateApplicationConfigInput = {\n /** conversionWindowSize 对话轮次 */\n conversionWindowSize?: InputMaybe<Scalars['Int']['input']>;\n /** docNullReturn 空搜索回复 */\n docNullReturn?: InputMaybe<Scalars['String']['input']>;\n /** knowledgebase 指当前知识库应用使用的知识库,即 Kind 为 KnowledgeBase 的 CR 的名称,目前一个应用只支持0或1个知识库 */\n knowledgebase?: InputMaybe<Scalars['String']['input']>;\n /** llm 指当前知识库应用使用的模型服务,即 Kind 为 LLM 的 CR 的名称 */\n llm: Scalars['String']['input'];\n /** maxLength 最大响应长度 */\n maxLength?: InputMaybe<Scalars['Int']['input']>;\n /** model 指具体使用的模型名称,比如 gpt-3.5-turbo 或者 chatglm_turbo */\n model?: InputMaybe<Scalars['String']['input']>;\n /**\n * 应用名称, 用于确定要更新哪个应用\n * 规则: 遵循 k8s 命名\n */\n name: Scalars['String']['input'];\n /**\n * 应用所在的 namespace, 用于确定要更新哪个应用\n * 规则: 非空\n */\n namespace: Scalars['String']['input'];\n /** numDocuments 引用上限 */\n numDocuments?: InputMaybe<Scalars['Int']['input']>;\n /** 对话开场白 */\n prologue?: InputMaybe<Scalars['String']['input']>;\n /** scoreThreshold 最低相似度 */\n scoreThreshold?: InputMaybe<Scalars['Float']['input']>;\n /** showNextGuide 下一步引导,是否显示下一步引导 */\n showNextGuid?: InputMaybe<Scalars['Boolean']['input']>;\n /** temperature 温度 */\n temperature?: InputMaybe<Scalars['Float']['input']>;\n /** userPrompt 用户级别的 Prompt */\n userPrompt?: InputMaybe<Scalars['String']['input']>;\n};\n\nexport type UpdateApplicationMetadataInput = {\n /** 添加一些辅助性记录信息,如果要更新,请传递完整内容 */\n annotations?: InputMaybe<Scalars['Map']['input']>;\n /** 描述信息 */\n description?: InputMaybe<Scalars['String']['input']>;\n /** 展示名,别名 */\n displayName: Scalars['String']['input'];\n /** Icon,应用头像, base64格式的图片 */\n icon: Scalars['String']['input'];\n /** IsPublic, 是否发布,即是否公开提供服务 */\n isPublic?: InputMaybe<Scalars['Boolean']['input']>;\n /** 一些用于标记,选择的的标签,如果要更新,请传递完整内容 */\n labels?: InputMaybe<Scalars['Map']['input']>;\n /**\n * 应用名称, 用于确定要更新哪个应用\n * 规则: 遵循 k8s 命名\n */\n name: Scalars['String']['input'];\n /**\n * 应用所在的 namespace, 用于确定要更新哪个应用\n * 规则: 非空\n */\n namespace: Scalars['String']['input'];\n};\n\n/** 数据集更新的输入 */\nexport type UpdateDatasetInput = {\n annotations?: InputMaybe<Scalars['Map']['input']>;\n /** 如不更新,则为空 */\n description?: InputMaybe<Scalars['String']['input']>;\n /** 如不更新,则为空 */\n displayName?: InputMaybe<Scalars['String']['input']>;\n /**\n * 更新的的标签信息,这里涉及到增加或者删除标签,\n * 规则: 不允许修改的。将原数据传递回来即可。\n * 如果标签有任何改动,传递完整的label。\n * 例如之前的标齐是: abc:def 新增一个标签aa:bb, 那么传递 abc:def, aa:bb\n */\n labels?: InputMaybe<Scalars['Map']['input']>;\n /**\n * name, namespace用来确定资源\n * 规则: 不允许修改的。将原数据传递回来即可。\n */\n name: Scalars['String']['input'];\n namespace: Scalars['String']['input'];\n};\n\n/** 更新数据源的输入 */\nexport type UpdateDatasourceInput = {\n annotations?: InputMaybe<Scalars['Map']['input']>;\n /** 如不更新,则为空 */\n description?: InputMaybe<Scalars['String']['input']>;\n /** 如不更新,则为空 */\n displayName?: InputMaybe<Scalars['String']['input']>;\n /** 数据源的访问信息输入 */\n endpointinput?: InputMaybe<EndpointInput>;\n /**\n * 更新的的标签信息,这里涉及到增加或者删除标签,\n * 规则: 不允许修改的。将原数据传递回来即可。\n * 如果标签有任何改动,传递完整的label。\n * 例如之前的标齐是: abc:def 新增一个标签aa:bb, 那么传递 abc:def, aa:bb\n */\n labels?: InputMaybe<Scalars['Map']['input']>;\n /**\n * name, namespace用来确定资源\n * 规则: 不允许修改的。将原数据传递回来即可。\n */\n name: Scalars['String']['input'];\n namespace: Scalars['String']['input'];\n /** 数据源为对象存储类型时的输入 */\n ossinput?: InputMaybe<OssInput>;\n};\n\nexport type UpdateEmbedderInput = {\n /** 模型服务资源注释 */\n annotations?: InputMaybe<Scalars['Map']['input']>;\n /** 模型服务资源描述 */\n description?: InputMaybe<Scalars['String']['input']>;\n /** 模型服务资源展示名称作为显示,并提供编辑 */\n displayName?: InputMaybe<Scalars['String']['input']>;\n /** 模型服务访问信息 */\n endpointinput?: InputMaybe<EndpointInput>;\n /** 模型服务资源标签 */\n labels?: InputMaybe<Scalars['Map']['input']>;\n /** 待修改模型服务资源名称(必填) */\n name: Scalars['String']['input'];\n /** 待修改模型服务创建命名空间(必填) */\n namespace: Scalars['String']['input'];\n /**\n * 向量化模型服务接口类型\n * 规则: 目前支持 zhipuai,openai两种接口类型\n */\n type?: InputMaybe<Scalars['String']['input']>;\n};\n\n/** 知识库更新的输入 */\nexport type UpdateKnowledgeBaseInput = {\n /** 知识库资源注释 */\n annotations?: InputMaybe<Scalars['Map']['input']>;\n /** 如不更新,则为空 */\n description?: InputMaybe<Scalars['String']['input']>;\n /** 如不更新,则为空 */\n displayName?: InputMaybe<Scalars['String']['input']>;\n /** 更新知识库文件 */\n fileGroups?: InputMaybe<Array<Filegroupinput>>;\n /** 知识库资源标签 */\n labels?: InputMaybe<Scalars['Map']['input']>;\n /** 知识库资源名称(不可同名) */\n name: Scalars['String']['input'];\n /** 知识库创建命名空间 */\n namespace: Scalars['String']['input'];\n};\n\nexport type UpdateLlmInput = {\n /** 模型服务资源注释 */\n annotations?: InputMaybe<Scalars['Map']['input']>;\n /** 模型服务资源描述 */\n description?: InputMaybe<Scalars['String']['input']>;\n /** 模型服务资源展示名称作为显示,并提供编辑 */\n displayName?: InputMaybe<Scalars['String']['input']>;\n /** 模型服务访问信息 */\n endpointinput?: InputMaybe<EndpointInput>;\n /** 模型服务资源标签 */\n labels?: InputMaybe<Scalars['Map']['input']>;\n /** 待修改模型服务资源名称(必填) */\n name: Scalars['String']['input'];\n /** 待修改模型服务创建命名空间(必填) */\n namespace: Scalars['String']['input'];\n /**\n * 模型服务接口类型\n * 规则: 目前支持 zhipuai,openai两种接口类型\n */\n type?: InputMaybe<Scalars['String']['input']>;\n};\n\n/** 模型更新的输入 */\nexport type UpdateModelInput = {\n /** 模型资源注释 */\n annotations?: InputMaybe<Scalars['Map']['input']>;\n /** 模型资源描述 */\n description?: InputMaybe<Scalars['String']['input']>;\n /** 模型资源展示名称作为显示,并提供编辑 */\n displayName?: InputMaybe<Scalars['String']['input']>;\n /** 模型资标签 */\n labels?: InputMaybe<Scalars['Map']['input']>;\n /** 模型资源名称(不可同名) */\n name: Scalars['String']['input'];\n /** 模型创建命名空间 */\n namespace: Scalars['String']['input'];\n /**\n * 模型类型\n * 规则: 目前支持 llm和embedding两种模型类型\n * 规则: 如果该模型支持多种模型类型,则可多选。多选后组成的字段通过逗号隔开。如 \"llm,embedding\"\n */\n types?: InputMaybe<Scalars['String']['input']>;\n};\n\nexport type UpdateModelServiceInput = {\n /** 模型资源注释 */\n annotations?: InputMaybe<Scalars['Map']['input']>;\n /**\n * 模型服务 API 类型\n * 规则:支持 openai, zhipuai 两种类型\n */\n apiType?: InputMaybe<Scalars['String']['input']>;\n /** 模型资源描述 */\n description?: InputMaybe<Scalars['String']['input']>;\n /** 模型资源展示名称作为显示,并提供编辑 */\n displayName?: InputMaybe<Scalars['String']['input']>;\n /**\n * 模型服务的Embedding模型列表\n * 规则;如果不填或者为空,则按照模型的API类型获取默认的模型列表\n */\n embeddingModels?: InputMaybe<Array<Scalars['String']['input']>>;\n /** 模型服务终端输入 */\n endpoint: EndpointInput;\n /** 模型资标签 */\n labels?: InputMaybe<Scalars['Map']['input']>;\n /**\n * 模型服务的大语言模型列表\n * 规则;如果不填或者为空,则按照模型的API类型获取默认的模型列表\n */\n llmModels?: InputMaybe<Array<Scalars['String']['input']>>;\n /** 模型资源名称(不可同名) */\n name: Scalars['String']['input'];\n /** 模型创建命名空间 */\n namespace: Scalars['String']['input'];\n /**\n * 模型服务能力类型,支持 llm 和 embedding 两种模型类型\n * 规则: 如果该模型支持多种模型类型,则可多选。多选后组成的字段通过逗号隔开。如 \"llm,embedding\"\n */\n types?: InputMaybe<Scalars['String']['input']>;\n};\n\nexport type UpdateVersionedDatasetInput = {\n /** 传递方式同label */\n annotations?: InputMaybe<Scalars['Map']['input']>;\n description?: InputMaybe<Scalars['String']['input']>;\n displayName?: InputMaybe<Scalars['String']['input']>;\n /**\n * 更新,删除数据集版本中的文件,传递方式于label相同,完全传递。\n * 如果传递一个空的数组过去,认为是删除全部文件。\n */\n fileGroups?: InputMaybe<Array<FileGroup>>;\n /**\n * 更新的的标签信息,这里涉及到增加或者删除标签,\n * 所以,如果标签有任何改动,传递完整的label。\n * 例如之前的标齐是: abc:def 新增一个标签aa:bb, 那么传递 abc:def, aa:bb\n */\n labels?: InputMaybe<Scalars['Map']['input']>;\n /**\n * 这个名字就是metadat.name, 根据name和namespace确定资源\n * name,namespac是不可以更新的。\n */\n name: Scalars['String']['input'];\n namespace: Scalars['String']['input'];\n /** 修改数据集版本发布状态 */\n released?: InputMaybe<Scalars['Int']['input']>;\n};\n\n/** 模型更新的输入 */\nexport type UpdateWorkerInput = {\n /** worker运行配置的环境变量 */\n additionalEnvs?: InputMaybe<Scalars['Map']['input']>;\n /** 模型资源注释 */\n annotations?: InputMaybe<Scalars['Map']['input']>;\n /** 模型资源描述 */\n description?: InputMaybe<Scalars['String']['input']>;\n /** 模型资源展示名称作为显示,并提供编辑 */\n displayName?: InputMaybe<Scalars['String']['input']>;\n /** 模型资标签 */\n labels?: InputMaybe<Scalars['Map']['input']>;\n /** 模型服务的节点亲合度配置 */\n matchExpressions?: InputMaybe<Array<InputMaybe<NodeSelectorRequirementInput>>>;\n /** 模型资源名称(不可同名) */\n name: Scalars['String']['input'];\n /** 模型创建命名空间 */\n namespace: Scalars['String']['input'];\n replicas?: InputMaybe<Scalars['String']['input']>;\n /** worker运行所需的资源 */\n resources?: InputMaybe<ResourcesInput>;\n /**\n * Worker类型\n * 支持两种类型:\n * - \"fastchat\" : fastchat提供的通用的推理服务模式\n * - \"fastchat-vllm\" : fastchat提供的采用VLLM推理加速的推理服务模式\n * 规则: 如果为空,则不更新;如果type类型与当前类型相同,则不更新\n */\n type?: InputMaybe<Scalars['String']['input']>;\n};\n\n/**\n * VersionedDataset\n * 数据集的版本信息。\n * 主要记录版本名字,数据的来源,以及文件的同步状态\n */\nexport type VersionedDataset = {\n __typename?: 'VersionedDataset';\n /** 添加一些辅助性记录信息 */\n annotations?: Maybe<Scalars['Map']['output']>;\n creationTimestamp: Scalars['Time']['output'];\n /** 创建者,正查给你这个字段是不需要人写的,自动添加 */\n creator?: Maybe<Scalars['String']['output']>;\n /** 数据处理信息,如果版本数据处理状态失败时,显示失败原因 */\n dataProcessMsg?: Maybe<Scalars['String']['output']>;\n /** 数据处理状态,如果为空,表示还没有开始,processing 处理中,process_fail处理失败,process_complete处理完成 */\n dataProcessStatus?: Maybe<Scalars['String']['output']>;\n /** 所属的数据集 */\n dataset: TypedObjectReference;\n /** 描述 */\n description?: Maybe<Scalars['String']['output']>;\n /** 展示名字, 与metadat.name不一样,这个展示名字是可以用中文的 */\n displayName?: Maybe<Scalars['String']['output']>;\n /** 数据集所包含的文件,对于文件需要支持过滤和分页 */\n files: PaginatedResult;\n /** 版本数据集id,为CR资源中的metadata.uid */\n id?: Maybe<Scalars['String']['output']>;\n /** 一些用于标记,选择的的标签 */\n labels?: Maybe<Scalars['Map']['output']>;\n /** 数据集名称, 这个应该是前端随机生成就可以,没有实际用途 */\n name: Scalars['String']['output'];\n /** 数据集所在的namespace,也是后续桶的名字 */\n namespace: Scalars['String']['output'];\n /** 该版本是否已经发布, 0是未发布,1是已经发布 */\n released: Scalars['Int']['output'];\n /** 文件同步状态信息,表示同步的错误信息 */\n syncMsg?: Maybe<Scalars['String']['output']>;\n /** 文件的同步状态, Processing或者'' 表示文件正在同步,Succeede 文件同步成功,Failed 存在文件同步失败 */\n syncStatus?: Maybe<Scalars['String']['output']>;\n /** 更新时间, 这里更新指文件同步,或者数据处理完成后,做的更新操作的时间 */\n updateTimestamp?: Maybe<Scalars['Time']['output']>;\n /** 版本名称 */\n version: Scalars['String']['output'];\n};\n\n\n/**\n * VersionedDataset\n * 数据集的版本信息。\n * 主要记录版本名字,数据的来源,以及文件的同步状态\n */\nexport type VersionedDatasetFilesArgs = {\n input?: InputMaybe<FileFilter>;\n};\n\nexport type VersionedDatasetMutation = {\n __typename?: 'VersionedDatasetMutation';\n createVersionedDataset: VersionedDataset;\n deleteVersionedDatasets?: Maybe<Scalars['Void']['output']>;\n updateVersionedDataset: VersionedDataset;\n};\n\n\nexport type VersionedDatasetMutationCreateVersionedDatasetArgs = {\n input: CreateVersionedDatasetInput;\n};\n\n\nexport type VersionedDatasetMutationDeleteVersionedDatasetsArgs = {\n input: DeleteVersionedDatasetInput;\n};\n\n\nexport type VersionedDatasetMutationUpdateVersionedDatasetArgs = {\n input: UpdateVersionedDatasetInput;\n};\n\nexport type VersionedDatasetQuery = {\n __typename?: 'VersionedDatasetQuery';\n getVersionedDataset: VersionedDataset;\n listVersionedDatasets: PaginatedResult;\n};\n\n\nexport type VersionedDatasetQueryGetVersionedDatasetArgs = {\n name: Scalars['String']['input'];\n namespace: Scalars['String']['input'];\n};\n\n\nexport type VersionedDatasetQueryListVersionedDatasetsArgs = {\n input: ListVersionedDatasetInput;\n};\n\n/** 本地模型服务节点 */\nexport type Worker = {\n __typename?: 'Worker';\n /** worker运行配置的环境变量 */\n additionalEnvs?: Maybe<Scalars['Map']['output']>;\n /** 添加一些辅助性记录信息 */\n annotations?: Maybe<Scalars['Map']['output']>;\n /** 模型服务的api地址 */\n api?: Maybe<Scalars['String']['output']>;\n /** 创建时间 */\n creationTimestamp?: Maybe<Scalars['Time']['output']>;\n /**\n * 创建者,为当前用户的用户名\n * 规则: webhook启用后自动添加,默认为空\n */\n creator?: Maybe<Scalars['String']['output']>;\n /** 描述信息 */\n description?: Maybe<Scalars['String']['output']>;\n /** 展示名 */\n displayName?: Maybe<Scalars['String']['output']>;\n /** 模型id,为CR资源中的metadata.uid */\n id?: Maybe<Scalars['String']['output']>;\n /** 一些用于标记,选择的的标签 */\n labels?: Maybe<Scalars['Map']['output']>;\n /** 模型服务的节点亲合度配置 */\n matchExpressions?: Maybe<Array<Maybe<NodeSelectorRequirement>>>;\n /** 详细的状态消息描述 */\n message?: Maybe<Scalars['String']['output']>;\n /**\n * worker对应的模型\n * 规则: 相同namespace下的模型名称\n * 规则: 必填\n */\n model: TypedObjectReference;\n /** worker对应的模型类型 */\n modelTypes: Scalars['String']['output'];\n /**\n * 名称\n * 规则: 遵循k8s命名\n */\n name: Scalars['String']['output'];\n /**\n * 所在的namespace(文件上传时作为bucket)\n * 规则: 获取当前项目对应的命名空间\n * 规则: 非空\n */\n namespace: Scalars['String']['output'];\n /**\n * worker运行的Pod副本数量\n * 规则: 默认为1,最大值为1\n * 规则: 为0时,即下线\n */\n replicas?: Maybe<Scalars['String']['output']>;\n /**\n * worker运行所需的资源\n * 规则: 必填\n */\n resources: Resources;\n /**\n * 状态\n * 规则: 目前分为四种状态\n * - Unknown: 未知\n * - Pending: 发布中\n * - Running: 已发布\n * - Error: 异常\n */\n status?: Maybe<Scalars['String']['output']>;\n /**\n * Worker类型\n * 支持两种类型:\n * - \"fastchat\" : fastchat提供的通用的推理服务模式\n * - \"fastchat-vllm\" : fastchat提供的采用VLLM推理加速的推理服务模式\n * 规则: 如果为空,则默认为 \"fastchat\"\n */\n type?: Maybe<Scalars['String']['output']>;\n /** 更新时间 */\n updateTimestamp?: Maybe<Scalars['Time']['output']>;\n};\n\nexport type WorkerMutation = {\n __typename?: 'WorkerMutation';\n createWorker: Worker;\n deleteWorkers?: Maybe<Scalars['Void']['output']>;\n updateWorker: Worker;\n};\n\n\nexport type WorkerMutationCreateWorkerArgs = {\n input: CreateWorkerInput;\n};\n\n\nexport type WorkerMutationDeleteWorkersArgs = {\n input?: InputMaybe<DeleteCommonInput>;\n};\n\n\nexport type WorkerMutationUpdateWorkerArgs = {\n input?: InputMaybe<UpdateWorkerInput>;\n};\n\nexport type WorkerQuery = {\n __typename?: 'WorkerQuery';\n getWorker: Worker;\n listWorkers: PaginatedResult;\n};\n\n\nexport type WorkerQueryGetWorkerArgs = {\n name: Scalars['String']['input'];\n namespace: Scalars['String']['input'];\n};\n\n\nexport type WorkerQueryListWorkersArgs = {\n input: ListWorkerInput;\n};\n\n/**\n * 文件详情\n * 描述: 文件在知识库中的详细状态\n */\nexport type Filedetail = {\n __typename?: 'filedetail';\n /** 文件中的数据条目总数 */\n count: Scalars['String']['output'];\n /**\n * 文件类型\n * 规则: enum { QA }\n */\n fileType: Scalars['String']['output'];\n /** 文件路径 */\n path: Scalars['String']['output'];\n /**\n * 文件处理的阶段\n * 规则: enum { Pending , Processing , Succeeded, Failed, Skipped}\n */\n phase: Scalars['String']['output'];\n /** 文件大小 */\n size: Scalars['String']['output'];\n /** 最新处理时间 */\n updateTimestamp?: Maybe<Scalars['Time']['output']>;\n};\n\n/**\n * 文件组\n * 规则: 属于同一个源(数据集)的文件要放在同一个filegroup中\n * 规则: path直接读取文件里表中的文件路径即可\n */\nexport type Filegroup = {\n __typename?: 'filegroup';\n /** 路径数组 */\n path?: Maybe<Array<Scalars['String']['output']>>;\n /** 源;目前仅支持版本数据集,即 Kind为 VersionedDataset */\n source?: Maybe<TypedObjectReference>;\n};\n\n/**\n * 文件组详情\n * 描述: 文件组在知识库中的状态\n */\nexport type Filegroupdetail = {\n __typename?: 'filegroupdetail';\n /**\n * 文件详情\n * 规则;数组。具体文件详情参考 filedetail描述\n */\n filedetails?: Maybe<Array<Maybe<Filedetail>>>;\n /** 源;目前仅支持版本数据集,即 Kind为 VersionedDataset */\n source?: Maybe<TypedObjectReference>;\n};\n\n/** 源文件输入 */\nexport type Filegroupinput = {\n /** 路径 */\n path?: InputMaybe<Array<Scalars['String']['input']>>;\n /** 数据源字段 */\n source: TypedObjectReferenceInput;\n};\n\nexport type CreateApplicationMutationVariables = Exact<{\n input: CreateApplicationMetadataInput;\n}>;\n\n\nexport type CreateApplicationMutation = { __typename?: 'Mutation', Application?: { __typename?: 'ApplicationMutation', createApplication: { __typename?: 'ApplicationMetadata', name: string, namespace: string, id?: string | null, labels?: any | null, annotations?: any | null, displayName?: string | null, description?: string | null, icon?: string | null } } | null };\n\nexport type UpdateApplicationMutationVariables = Exact<{\n input: UpdateApplicationMetadataInput;\n}>;\n\n\nexport type UpdateApplicationMutation = { __typename?: 'Mutation', Application?: { __typename?: 'ApplicationMutation', updateApplication: { __typename?: 'ApplicationMetadata', name: string, namespace: string, id?: string | null, labels?: any | null, annotations?: any | null, displayName?: string | null, description?: string | null, icon?: string | null, isPublic?: boolean | null } } | null };\n\nexport type DeleteApplicationMutationVariables = Exact<{\n input: DeleteCommonInput;\n}>;\n\n\nexport type DeleteApplicationMutation = { __typename?: 'Mutation', Application?: { __typename?: 'ApplicationMutation', deleteApplication?: any | null } | null };\n\nexport type UpdateApplicationConfigMutationVariables = Exact<{\n input: UpdateApplicationConfigInput;\n}>;\n\n\nexport type UpdateApplicationConfigMutation = { __typename?: 'Mutation', Application?: { __typename?: 'ApplicationMutation', updateApplicationConfig: { __typename?: 'Application', prologue?: string | null, model?: string | null, llm: string, temperature?: number | null, maxLength?: number | null, conversionWindowSize?: number | null, knowledgebase?: string | null, scoreThreshold?: number | null, numDocuments?: number | null, docNullReturn?: string | null, userPrompt?: string | null, showNextGuid?: boolean | null, metadata?: { __typename?: 'ApplicationMetadata', name: string, namespace: string, id?: string | null, labels?: any | null, annotations?: any | null, displayName?: string | null, description?: string | null, icon?: string | null, creator?: string | null, creationTimestamp?: any | null, updateTimestamp?: any | null, isPublic?: boolean | null, status?: string | null } | null } } | null };\n\nexport type GetApplicationQueryVariables = Exact<{\n name: Scalars['String']['input'];\n namespace: Scalars['String']['input'];\n}>;\n\n\nexport type GetApplicationQuery = { __typename?: 'Query', Application?: { __typename?: 'ApplicationQuery', getApplication: { __typename?: 'Application', prologue?: string | null, model?: string | null, llm: string, temperature?: number | null, maxLength?: number | null, conversionWindowSize?: number | null, knowledgebase?: string | null, scoreThreshold?: number | null, numDocuments?: number | null, docNullReturn?: string | null, userPrompt?: string | null, showNextGuid?: boolean | null, metadata?: { __typename?: 'ApplicationMetadata', name: string, namespace: string, id?: string | null, labels?: any | null, annotations?: any | null, displayName?: string | null, description?: string | null, icon?: string | null, creator?: string | null, creationTimestamp?: any | null, updateTimestamp?: any | null, isPublic?: boolean | null, status?: string | null } | null } } | null };\n\nexport type ListApplicationsQueryVariables = Exact<{\n input: ListCommonInput;\n}>;\n\n\nexport type ListApplicationsQuery = { __typename?: 'Query', Application?: { __typename?: 'ApplicationQuery', listApplicationMetadata: { __typename?: 'PaginatedResult', page?: number | null, pageSize?: number | null, totalCount: number, hasNextPage: boolean, nodes?: Array<{ __typename?: 'ApplicationMetadata', name: string, namespace: string, id?: string | null, labels?: any | null, annotations?: any | null, displayName?: string | null, description?: string | null, icon?: string | null, isPublic?: boolean | null } | { __typename?: 'Dataset' } | { __typename?: 'Datasource' } | { __typename?: 'Embedder' } | { __typename?: 'F' } | { __typename?: 'KnowledgeBase' } | { __typename?: 'LLM' } | { __typename?: 'Model' } | { __typename?: 'ModelService' } | { __typename?: 'RayCluster' } | { __typename?: 'VersionedDataset' } | { __typename?: 'Worker' }> | null } } | null };\n\nexport type AllDataProcessListByPageQueryVariables = Exact<{\n input: AllDataProcessListByPageInput;\n}>;\n\n\nexport type AllDataProcessListByPageQuery = { __typename?: 'Query', dataProcess?: { __typename?: 'DataProcessQuery', allDataProcessListByPage?: { __typename?: 'PaginatedDataProcessItem', status: number, message: string, data?: Array<{ __typename?: 'DataProcessItem', id: string, name: string, status: string, pre_data_set_name: string, pre_data_set_version: string, post_data_set_name: string, post_data_set_version?: string | null, start_datetime: string, error_msg?: string | null }> | null } | null } | null };\n\nexport type AllDataProcessListByCountQueryVariables = Exact<{\n input: AllDataProcessListByCountInput;\n}>;\n\n\nexport type AllDataProcessListByCountQuery = { __typename?: 'Query', dataProcess?: { __typename?: 'DataProcessQuery', allDataProcessListByCount?: { __typename?: 'CountDataProcessItem', status: number, data: number, message: string } | null } | null };\n\nexport type DataProcessSupportTypeQueryVariables = Exact<{ [key: string]: never; }>;\n\n\nexport type DataProcessSupportTypeQuery = { __typename?: 'Query', dataProcess?: { __typename?: 'DataProcessQuery', dataProcessSupportType?: { __typename?: 'DataProcessSupportType', status: number, message: string, data?: Array<{ __typename?: 'DataProcessSupportTypeItem', name: string, description: string, children?: Array<{ __typename?: 'DataProcessSupportTypeChildren', name: string, zh_name: string, description: string, enable: string }> | null }> | null } | null } | null };\n\nexport type DataProcessDetailsQueryVariables = Exact<{\n input?: InputMaybe<DataProcessDetailsInput>;\n}>;\n\n\nexport type DataProcessDetailsQuery = { __typename?: 'Query', dataProcess?: { __typename?: 'DataProcessQuery', dataProcessDetails?: { __typename?: 'DataProcessDetails', status: number, message: string, data: { __typename?: 'DataProcessDetailsItem', id: string, status: string, name: string, file_type: string, pre_dataset_name: string, pre_dataset_version: string, post_dataset_name: string, post_dataset_version: string, file_num: number, start_time: string, end_time: string, creator: string, error_msg?: string | null, config?: Array<{ __typename?: 'DataProcessConfig', name: string, description: string, file_num: number, status: string, children?: Array<{ __typename?: 'DataProcessConfigChildren', name?: string | null, enable?: string | null, zh_name?: string | null, description?: string | null, llm_config?: { __typename?: 'LLMConfig', name?: string | null, namespace?: string | null, model?: string | null, temperature?: string | null, top_p?: string | null, max_tokens?: string | null, prompt_template?: string | null, provider?: string | null } | null, preview?: Array<{ __typename?: 'DataProcessConfigpreView', file_name?: string | null, content?: Array<{ __typename?: 'DataProcessConfigpreViewContent', pre?: string | null, post?: string | null } | null> | null } | null> | null, file_progress?: Array<{ __typename?: 'DataProcessConfigpreFileProgress', id?: string | null, file_name?: string | null, status?: string | null, start_time?: string | null, end_time?: string | null, progress?: string | null } | null> | null } | null> | null }> | null } } | null } | null };\n\nexport type CheckDataProcessTaskNameQueryVariables = Exact<{\n input?: InputMaybe<CheckDataProcessTaskNameInput>;\n}>;\n\n\nexport type CheckDataProcessTaskNameQuery = { __typename?: 'Query', dataProcess?: { __typename?: 'DataProcessQuery', checkDataProcessTaskName?: { __typename?: 'DataProcessResponse', status: number, data: string, message: string } | null } | null };\n\nexport type GetLogInfoQueryVariables = Exact<{\n input?: InputMaybe<DataProcessDetailsInput>;\n}>;\n\n\nexport type GetLogInfoQuery = { __typename?: 'Query', dataProcess?: { __typename?: 'DataProcessQuery', getLogInfo?: { __typename?: 'DataProcessResponse', status: number, data: string, message: string } | null } | null };\n\nexport type DataProcessLogInfoByFileNameQueryVariables = Exact<{\n input?: InputMaybe<DataProcessFileLogInput>;\n}>;\n\n\nexport type DataProcessLogInfoByFileNameQuery = { __typename?: 'Query', dataProcess?: { __typename?: 'DataProcessQuery', dataProcessLogInfoByFileName?: { __typename?: 'DataProcessResponse', status: number, data: string, message: string } | null } | null };\n\nexport type DataProcessRetryQueryVariables = Exact<{\n input?: InputMaybe<DataProcessRetryInput>;\n}>;\n\n\nexport type DataProcessRetryQuery = { __typename?: 'Query', dataProcess?: { __typename?: 'DataProcessQuery', dataProcessRetry?: { __typename?: 'DataProcessResponse', status: number, data: string, message: string } | null } | null };\n\nexport type CreateDataProcessTaskMutationVariables = Exact<{\n input?: InputMaybe<AddDataProcessInput>;\n}>;\n\n\nexport type CreateDataProcessTaskMutation = { __typename?: 'Mutation', dataProcess?: { __typename?: 'DataProcessMutation', createDataProcessTask?: { __typename?: 'DataProcessResponse', status: number, data: string, message: string } | null } | null };\n\nexport type DeleteDataProcessTaskMutationVariables = Exact<{\n input?: InputMaybe<DeleteDataProcessInput>;\n}>;\n\n\nexport type DeleteDataProcessTaskMutation = { __typename?: 'Mutation', dataProcess?: { __typename?: 'DataProcessMutation', deleteDataProcessTask?: { __typename?: 'DataProcessResponse', status: number, data: string, message: string } | null } | null };\n\nexport type ListDatasetsQueryVariables = Exact<{\n input?: InputMaybe<ListDatasetInput>;\n versionsInput: ListVersionedDatasetInput;\n filesInput?: InputMaybe<FileFilter>;\n}>;\n\n\nexport type ListDatasetsQuery = { __typename?: 'Query', Dataset?: { __typename?: 'DatasetQuery', listDatasets: { __typename?: 'PaginatedResult', totalCount: number, hasNextPage: boolean, nodes?: Array<{ __typename?: 'ApplicationMetadata' } | { __typename?: 'Dataset', name: string, namespace: string, creator?: string | null, displayName?: string | null, updateTimestamp?: any | null, creationTimestamp?: any | null, contentType: string, field?: string | null, versions: { __typename?: 'PaginatedResult', totalCount: number, hasNextPage: boolean, nodes?: Array<{ __typename?: 'ApplicationMetadata' } | { __typename?: 'Dataset' } | { __typename?: 'Datasource' } | { __typename?: 'Embedder' } | { __typename?: 'F' } | { __typename?: 'KnowledgeBase' } | { __typename?: 'LLM' } | { __typename?: 'Model' } | { __typename?: 'ModelService' } | { __typename?: 'RayCluster' } | { __typename?: 'VersionedDataset', name: string, namespace: string, displayName?: string | null, description?: string | null, syncStatus?: string | null, released: number, dataProcessStatus?: string | null, updateTimestamp?: any | null, version: string, files: { __typename?: 'PaginatedResult', totalCount: number } } | { __typename?: 'Worker' }> | null } } | { __typename?: 'Datasource' } | { __typename?: 'Embedder' } | { __typename?: 'F' } | { __typename?: 'KnowledgeBase' } | { __typename?: 'LLM' } | { __typename?: 'Model' } | { __typename?: 'ModelService' } | { __typename?: 'RayCluster' } | { __typename?: 'VersionedDataset' } | { __typename?: 'Worker' }> | null } } | null };\n\nexport type GetDatasetQueryVariables = Exact<{\n name: Scalars['String']['input'];\n namespace: Scalars['String']['input'];\n versionsInput: ListVersionedDatasetInput;\n filesInput?: InputMaybe<FileFilter>;\n}>;\n\n\nexport type GetDatasetQuery = { __typename?: 'Query', Dataset?: { __typename?: 'DatasetQuery', getDataset: { __typename?: 'Dataset', name: string, namespace: string, creator?: string | null, displayName?: string | null, updateTimestamp?: any | null, creationTimestamp?: any | null, contentType: string, field?: string | null, versions: { __typename?: 'PaginatedResult', totalCount: number, hasNextPage: boolean, nodes?: Array<{ __typename?: 'ApplicationMetadata' } | { __typename?: 'Dataset' } | { __typename?: 'Datasource' } | { __typename?: 'Embedder' } | { __typename?: 'F' } | { __typename?: 'KnowledgeBase' } | { __typename?: 'LLM' } | { __typename?: 'Model' } | { __typename?: 'ModelService' } | { __typename?: 'RayCluster' } | { __typename?: 'VersionedDataset', name: string, namespace: string, displayName?: string | null, description?: string | null, syncStatus?: string | null, released: number, dataProcessStatus?: string | null, updateTimestamp?: any | null, version: string, files: { __typename?: 'PaginatedResult', totalCount: number } } | { __typename?: 'Worker' }> | null } } } | null };\n\nexport type CreateDatasetMutationVariables = Exact<{\n input?: InputMaybe<CreateDatasetInput>;\n}>;\n\n\nexport type CreateDatasetMutation = { __typename?: 'Mutation', Dataset?: { __typename?: 'DatasetMutation', createDataset: { __typename?: 'Dataset', name: string, displayName?: string | null, labels?: any | null } } | null };\n\nexport type UpdateDatasetMutationVariables = Exact<{\n input?: InputMaybe<UpdateDatasetInput>;\n}>;\n\n\nexport type UpdateDatasetMutation = { __typename?: 'Mutation', Dataset?: { __typename?: 'DatasetMutation', updateDataset: { __typename?: 'Dataset', name: string, displayName?: string | null, labels?: any | null } } | null };\n\nexport type DeleteDatasetsMutationVariables = Exact<{\n input?: InputMaybe<DeleteCommonInput>;\n}>;\n\n\nexport type DeleteDatasetsMutation = { __typename?: 'Mutation', Dataset?: { __typename?: 'DatasetMutation', deleteDatasets?: any | null } | null };\n\nexport type CreateDatasourceMutationVariables = Exact<{\n input: CreateDatasourceInput;\n}>;\n\n\nexport type CreateDatasourceMutation = { __typename?: 'Mutation', Datasource?: { __typename?: 'DatasourceMutation', createDatasource: { __typename?: 'Datasource', id?: string | null, name: string, namespace: string, creator?: string | null, displayName?: string | null, description?: string | null, creationTimestamp?: any | null, updateTimestamp?: any | null, status?: string | null, message?: string | null, endpoint?: { __typename?: 'Endpoint', url?: string | null, insecure?: boolean | null, authSecret?: { __typename?: 'TypedObjectReference', kind: string, name: string } | null } | null, oss?: { __typename?: 'Oss', bucket?: string | null, object?: string | null } | null } } | null };\n\nexport type UpdateDatasourceMutationVariables = Exact<{\n input?: InputMaybe<UpdateDatasourceInput>;\n}>;\n\n\nexport type UpdateDatasourceMutation = { __typename?: 'Mutation', Datasource?: { __typename?: 'DatasourceMutation', updateDatasource: { __typename?: 'Datasource', id?: string | null, name: string, namespace: string, creator?: string | null, displayName?: string | null, description?: string | null, creationTimestamp?: any | null, updateTimestamp?: any | null, status?: string | null, message?: string | null, endpoint?: { __typename?: 'Endpoint', url?: string | null, insecure?: boolean | null, authSecret?: { __typename?: 'TypedObjectReference', kind: string, name: string } | null } | null, oss?: { __typename?: 'Oss', bucket?: string | null, object?: string | null } | null } } | null };\n\nexport type DeleteDatasourcesMutationVariables = Exact<{\n input: DeleteCommonInput;\n}>;\n\n\nexport type DeleteDatasourcesMutation = { __typename?: 'Mutation', Datasource?: { __typename?: 'DatasourceMutation', deleteDatasources?: any | null } | null };\n\nexport type ListDatasourcesQueryVariables = Exact<{\n input: ListCommonInput;\n}>;\n\n\nexport type ListDatasourcesQuery = { __typename?: 'Query', Datasource?: { __typename?: 'DatasourceQuery', listDatasources: { __typename?: 'PaginatedResult', totalCount: number, hasNextPage: boolean, nodes?: Array<{ __typename: 'ApplicationMetadata' } | { __typename: 'Dataset' } | { __typename: 'Datasource', id?: string | null, name: string, namespace: string, creator?: string | null, displayName?: string | null, description?: string | null, creationTimestamp?: any | null, updateTimestamp?: any | null, status?: string | null, message?: string | null, endpoint?: { __typename?: 'Endpoint', url?: string | null, insecure?: boolean | null, authSecret?: { __typename?: 'TypedObjectReference', kind: string, name: string } | null } | null, oss?: { __typename?: 'Oss', bucket?: string | null, object?: string | null } | null } | { __typename: 'Embedder' } | { __typename: 'F' } | { __typename: 'KnowledgeBase' } | { __typename: 'LLM' } | { __typename: 'Model' } | { __typename: 'ModelService' } | { __typename: 'RayCluster' } | { __typename: 'VersionedDataset' } | { __typename: 'Worker' }> | null } } | null };\n\nexport type GetDatasourceQueryVariables = Exact<{\n name: Scalars['String']['input'];\n namespace: Scalars['String']['input'];\n}>;\n\n\nexport type GetDatasourceQuery = { __typename?: 'Query', Datasource?: { __typename?: 'DatasourceQuery', getDatasource: { __typename?: 'Datasource', id?: string | null, name: string, namespace: string, creator?: string | null, displayName?: string | null, description?: string | null, creationTimestamp?: any | null, updateTimestamp?: any | null, status?: string | null, message?: string | null, endpoint?: { __typename?: 'Endpoint', url?: string | null, insecure?: boolean | null, authSecret?: { __typename?: 'TypedObjectReference', kind: string, name: string } | null } | null, oss?: { __typename?: 'Oss', bucket?: string | null, object?: string | null } | null } } | null };\n\nexport type CheckDatasourceQueryVariables = Exact<{\n input: CreateDatasourceInput;\n}>;\n\n\nexport type CheckDatasourceQuery = { __typename?: 'Query', Datasource?: { __typename?: 'DatasourceQuery', checkDatasource: { __typename?: 'Datasource', name: string, namespace: string, status?: string | null, message?: string | null } } | null };\n\nexport type CreateEmbedderMutationVariables = Exact<{\n input: CreateEmbedderInput;\n}>;\n\n\nexport type CreateEmbedderMutation = { __typename?: 'Mutation', Embedder?: { __typename?: 'EmbedderMutation', createEmbedder: { __typename?: 'Embedder', name: string, namespace: string, labels?: any | null, annotations?: any | null, displayName?: string | null, description?: string | null, type?: string | null, baseUrl: string, models?: Array<string> | null, provider?: string | null, updateTimestamp?: any | null, status?: string | null, message?: string | null } } | null };\n\nexport type UpdateEmbedderMutationVariables = Exact<{\n input?: InputMaybe<UpdateEmbedderInput>;\n}>;\n\n\nexport type UpdateEmbedderMutation = { __typename?: 'Mutation', Embedder?: { __typename?: 'EmbedderMutation', updateEmbedder: { __typename?: 'Embedder', name: string, namespace: string, labels?: any | null, annotations?: any | null, displayName?: string | null, description?: string | null, baseUrl: string, models?: Array<string> | null, provider?: string | null, type?: string | null, updateTimestamp?: any | null, status?: string | null, message?: string | null } } | null };\n\nexport type DeleteEmbeddersMutationVariables = Exact<{\n input: DeleteCommonInput;\n}>;\n\n\nexport type DeleteEmbeddersMutation = { __typename?: 'Mutation', Embedder?: { __typename?: 'EmbedderMutation', deleteEmbedders?: any | null } | null };\n\nexport type ListEmbeddersQueryVariables = Exact<{\n input: ListCommonInput;\n}>;\n\n\nexport type ListEmbeddersQuery = { __typename?: 'Query', Embedder?: { __typename?: 'EmbedderQuery', listEmbedders: { __typename?: 'PaginatedResult', totalCount: number, hasNextPage: boolean, nodes?: Array<{ __typename?: 'ApplicationMetadata' } | { __typename?: 'Dataset' } | { __typename?: 'Datasource' } | { __typename?: 'Embedder', name: string, namespace: string, labels?: any | null, annotations?: any | null, displayName?: string | null, description?: string | null, baseUrl: string, models?: Array<string> | null, provider?: string | null, type?: string | null, updateTimestamp?: any | null, status?: string | null, message?: string | null } | { __typename?: 'F' } | { __typename?: 'KnowledgeBase' } | { __typename?: 'LLM' } | { __typename?: 'Model' } | { __typename?: 'ModelService' } | { __typename?: 'RayCluster' } | { __typename?: 'VersionedDataset' } | { __typename?: 'Worker' }> | null } } | null };\n\nexport type GetEmbedderQueryVariables = Exact<{\n name: Scalars['String']['input'];\n namespace: Scalars['String']['input'];\n}>;\n\n\nexport type GetEmbedderQuery = { __typename?: 'Query', Embedder?: { __typename?: 'EmbedderQuery', getEmbedder: { __typename?: 'Embedder', name: string, namespace: string, labels?: any | null, annotations?: any | null, displayName?: string | null, description?: string | null, baseUrl: string, models?: Array<string> | null, provider?: string | null, type?: string | null, updateTimestamp?: any | null } } | null };\n\nexport type ListKnowledgeBasesQueryVariables = Exact<{\n input: ListKnowledgeBaseInput;\n}>;\n\n\nexport type ListKnowledgeBasesQuery = { __typename?: 'Query', KnowledgeBase?: { __typename?: 'KnowledgeBaseQuery', listKnowledgeBases: { __typename?: 'PaginatedResult', totalCount: number, hasNextPage: boolean, nodes?: Array<{ __typename?: 'ApplicationMetadata' } | { __typename?: 'Dataset' } | { __typename?: 'Datasource' } | { __typename?: 'Embedder' } | { __typename?: 'F' } | { __typename?: 'KnowledgeBase', id?: string | null, creationTimestamp?: any | null, name: string, namespace: string, labels?: any | null, annotations?: any | null, creator?: string | null, displayName?: string | null, description?: string | null, status?: string | null, reason?: string | null, message?: string | null, updateTimestamp?: any | null, embedder?: { __typename?: 'TypedObjectReference', kind: string, name: string } | null, vectorStore?: { __typename?: 'TypedObjectReference', kind: string, name: string } | null, fileGroupDetails?: Array<{ __typename?: 'filegroupdetail', source?: { __typename?: 'TypedObjectReference', kind: string, name: string } | null, filedetails?: Array<{ __typename?: 'filedetail', path: string, phase: string, fileType: string, count: string, size: string, updateTimestamp?: any | null } | null> | null } | null> | null } | { __typename?: 'LLM' } | { __typename?: 'Model' } | { __typename?: 'ModelService' } | { __typename?: 'RayCluster' } | { __typename?: 'VersionedDataset' } | { __typename?: 'Worker' }> | null } } | null };\n\nexport type GetKnowledgeBaseQueryVariables = Exact<{\n name: Scalars['String']['input'];\n namespace: Scalars['String']['input'];\n}>;\n\n\nexport type GetKnowledgeBaseQuery = { __typename?: 'Query', KnowledgeBase?: { __typename?: 'KnowledgeBaseQuery', getKnowledgeBase: { __typename?: 'KnowledgeBase', id?: string | null, creationTimestamp?: any | null, name: string, namespace: string, labels?: any | null, annotations?: any | null, creator?: string | null, displayName?: string | null, description?: string | null, status?: string | null, reason?: string | null, message?: string | null, updateTimestamp?: any | null, embedder?: { __typename?: 'TypedObjectReference', kind: string, name: string } | null, vectorStore?: { __typename?: 'TypedObjectReference', kind: string, name: string } | null, fileGroupDetails?: Array<{ __typename?: 'filegroupdetail', source?: { __typename?: 'TypedObjectReference', kind: string, name: string } | null, filedetails?: Array<{ __typename?: 'filedetail', path: string, phase: string, fileType: string, count: string, size: string, updateTimestamp?: any | null } | null> | null } | null> | null } } | null };\n\nexport type CreateKnowledgeBaseMutationVariables = Exact<{\n input: CreateKnowledgeBaseInput;\n}>;\n\n\nexport type CreateKnowledgeBaseMutation = { __typename?: 'Mutation', KnowledgeBase?: { __typename?: 'KnowledgeBaseMutation', createKnowledgeBase: { __typename?: 'KnowledgeBase', id?: string | null, creationTimestamp?: any | null, name: string, namespace: string, labels?: any | null, annotations?: any | null, creator?: string | null, displayName?: string | null, description?: string | null, status?: string | null, reason?: string | null, message?: string | null, updateTimestamp?: any | null, embedder?: { __typename?: 'TypedObjectReference', kind: string, name: string } | null, vectorStore?: { __typename?: 'TypedObjectReference', kind: string, name: string } | null, fileGroupDetails?: Array<{ __typename?: 'filegroupdetail', source?: { __typename?: 'TypedObjectReference', kind: string, name: string } | null, filedetails?: Array<{ __typename?: 'filedetail', path: string, phase: string, fileType: string, count: string, size: string, updateTimestamp?: any | null } | null> | null } | null> | null } } | null };\n\nexport type UpdateKnowledgeBaseMutationVariables = Exact<{\n input?: InputMaybe<UpdateKnowledgeBaseInput>;\n}>;\n\n\nexport type UpdateKnowledgeBaseMutation = { __typename?: 'Mutation', KnowledgeBase?: { __typename?: 'KnowledgeBaseMutation', updateKnowledgeBase: { __typename?: 'KnowledgeBase', id?: string | null, creationTimestamp?: any | null, name: string, namespace: string, labels?: any | null, annotations?: any | null, creator?: string | null, displayName?: string | null, description?: string | null, status?: string | null, reason?: string | null, message?: string | null, updateTimestamp?: any | null, embedder?: { __typename?: 'TypedObjectReference', kind: string, name: string } | null, vectorStore?: { __typename?: 'TypedObjectReference', kind: string, name: string } | null, fileGroupDetails?: Array<{ __typename?: 'filegroupdetail', source?: { __typename?: 'TypedObjectReference', kind: string, name: string } | null, filedetails?: Array<{ __typename?: 'filedetail', path: string, phase: string, fileType: string, count: string, size: string, updateTimestamp?: any | null } | null> | null } | null> | null } } | null };\n\nexport type DeleteKnowledgeBaseMutationVariables = Exact<{\n input?: InputMaybe<DeleteCommonInput>;\n}>;\n\n\nexport type DeleteKnowledgeBaseMutation = { __typename?: 'Mutation', KnowledgeBase?: { __typename?: 'KnowledgeBaseMutation', deleteKnowledgeBase?: any | null } | null };\n\nexport type ListLlMsQueryVariables = Exact<{\n input: ListCommonInput;\n}>;\n\n\nexport type ListLlMsQuery = { __typename?: 'Query', LLM?: { __typename?: 'LLMQuery', listLLMs: { __typename?: 'PaginatedResult', totalCount: number, hasNextPage: boolean, nodes?: Array<{ __typename?: 'ApplicationMetadata' } | { __typename?: 'Dataset' } | { __typename?: 'Datasource' } | { __typename?: 'Embedder' } | { __typename?: 'F' } | { __typename?: 'KnowledgeBase' } | { __typename?: 'LLM', name: string, namespace: string, labels?: any | null, annotations?: any | null, displayName?: string | null, description?: string | null, baseUrl: string, models?: Array<string> | null, provider?: string | null, type?: string | null, updateTimestamp?: any | null, status?: string | null, message?: string | null } | { __typename?: 'Model' } | { __typename?: 'ModelService' } | { __typename?: 'RayCluster' } | { __typename?: 'VersionedDataset' } | { __typename?: 'Worker' }> | null } } | null };\n\nexport type GetLlmQueryVariables = Exact<{\n name: Scalars['String']['input'];\n namespace: Scalars['String']['input'];\n}>;\n\n\nexport type GetLlmQuery = { __typename?: 'Query', LLM?: { __typename?: 'LLMQuery', getLLM: { __typename?: 'LLM', name: string, namespace: string, labels?: any | null, annotations?: any | null, displayName?: string | null, description?: string | null, baseUrl: string, models?: Array<string> | null, provider?: string | null, type?: string | null, updateTimestamp?: any | null, status?: string | null, message?: string | null } } | null };\n\nexport type ListModelsQueryVariables = Exact<{\n input: ListModelInput;\n filesInput?: InputMaybe<FileFilter>;\n}>;\n\n\nexport type ListModelsQuery = { __typename?: 'Query', Model?: { __typename?: 'ModelQuery', listModels: { __typename?: 'PaginatedResult', totalCount: number, hasNextPage: boolean, nodes?: Array<{ __typename: 'ApplicationMetadata' } | { __typename: 'Dataset' } | { __typename: 'Datasource' } | { __typename: 'Embedder' } | { __typename: 'F' } | { __typename: 'KnowledgeBase' } | { __typename: 'LLM' } | { __typename: 'Model', id?: string | null, creationTimestamp?: any | null, name: string, namespace: string, systemModel?: boolean | null, labels?: any | null, annotations?: any | null, creator?: string | null, displayName?: string | null, description?: string | null, status?: string | null, message?: string | null, types: string, updateTimestamp?: any | null, files: { __typename?: 'PaginatedResult', totalCount: number, hasNextPage: boolean, nodes?: Array<{ __typename?: 'ApplicationMetadata' } | { __typename?: 'Dataset' } | { __typename?: 'Datasource' } | { __typename?: 'Embedder' } | { __typename?: 'F', path: string, time?: any | null, fileType: string, count?: string | null, size?: string | null, creationTimestamp?: any | null } | { __typename?: 'KnowledgeBase' } | { __typename?: 'LLM' } | { __typename?: 'Model' } | { __typename?: 'ModelService' } | { __typename?: 'RayCluster' } | { __typename?: 'VersionedDataset' } | { __typename?: 'Worker' }> | null } } | { __typename: 'ModelService' } | { __typename: 'RayCluster' } | { __typename: 'VersionedDataset' } | { __typename: 'Worker' }> | null } } | null };\n\nexport type GetModelQueryVariables = Exact<{\n name: Scalars['String']['input'];\n namespace: Scalars['String']['input'];\n filesInput?: InputMaybe<FileFilter>;\n}>;\n\n\nexport type GetModelQuery = { __typename?: 'Query', Model?: { __typename?: 'ModelQuery', getModel: { __typename?: 'Model', id?: string | null, creationTimestamp?: any | null, name: string, namespace: string, systemModel?: boolean | null, labels?: any | null, annotations?: any | null, creator?: string | null, displayName?: string | null, description?: string | null, status?: string | null, message?: string | null, types: string, updateTimestamp?: any | null, files: { __typename?: 'PaginatedResult', totalCount: number, hasNextPage: boolean, nodes?: Array<{ __typename?: 'ApplicationMetadata' } | { __typename?: 'Dataset' } | { __typename?: 'Datasource' } | { __typename?: 'Embedder' } | { __typename?: 'F', path: string, time?: any | null, fileType: string, count?: string | null, size?: string | null, creationTimestamp?: any | null } | { __typename?: 'KnowledgeBase' } | { __typename?: 'LLM' } | { __typename?: 'Model' } | { __typename?: 'ModelService' } | { __typename?: 'RayCluster' } | { __typename?: 'VersionedDataset' } | { __typename?: 'Worker' }> | null } } } | null };\n\nexport type CreateModelMutationVariables = Exact<{\n input: CreateModelInput;\n}>;\n\n\nexport type CreateModelMutation = { __typename?: 'Mutation', Model?: { __typename?: 'ModelMutation', createModel: { __typename?: 'Model', id?: string | null, creationTimestamp?: any | null, name: string, namespace: string, systemModel?: boolean | null, labels?: any | null, annotations?: any | null, creator?: string | null, displayName?: string | null, description?: string | null, status?: string | null, message?: string | null, types: string, updateTimestamp?: any | null } } | null };\n\nexport type UpdateModelMutationVariables = Exact<{\n input?: InputMaybe<UpdateModelInput>;\n}>;\n\n\nexport type UpdateModelMutation = { __typename?: 'Mutation', Model?: { __typename?: 'ModelMutation', updateModel: { __typename?: 'Model', id?: string | null, creationTimestamp?: any | null, name: string, namespace: string, systemModel?: boolean | null, labels?: any | null, annotations?: any | null, creator?: string | null, displayName?: string | null, description?: string | null, status?: string | null, message?: string | null, types: string, updateTimestamp?: any | null } } | null };\n\nexport type DeleteModelsMutationVariables = Exact<{\n input?: InputMaybe<DeleteCommonInput>;\n}>;\n\n\nexport type DeleteModelsMutation = { __typename?: 'Mutation', Model?: { __typename?: 'ModelMutation', deleteModels?: any | null } | null };\n\nexport type CreateModelServiceMutationVariables = Exact<{\n input: CreateModelServiceInput;\n}>;\n\n\nexport type CreateModelServiceMutation = { __typename?: 'Mutation', ModelService?: { __typename?: 'ModelServiceMutation', createModelService: { __typename?: 'ModelService', id?: string | null, name: string, namespace: string, labels?: any | null, annotations?: any | null, creator?: string | null, displayName?: string | null, description?: string | null, providerType?: string | null, types?: string | null, apiType?: string | null, llmModels?: Array<string> | null, embeddingModels?: Array<string> | null, creationTimestamp?: any | null, updateTimestamp?: any | null, status?: string | null, message?: string | null, baseUrl: string } } | null };\n\nexport type UpdateModelServiceMutationVariables = Exact<{\n input?: InputMaybe<UpdateModelServiceInput>;\n}>;\n\n\nexport type UpdateModelServiceMutation = { __typename?: 'Mutation', ModelService?: { __typename?: 'ModelServiceMutation', updateModelService: { __typename?: 'ModelService', id?: string | null, name: string, namespace: string, labels?: any | null, annotations?: any | null, creator?: string | null, displayName?: string | null, description?: string | null, providerType?: string | null, types?: string | null, apiType?: string | null, llmModels?: Array<string> | null, embeddingModels?: Array<string> | null, creationTimestamp?: any | null, updateTimestamp?: any | null, status?: string | null, message?: string | null, baseUrl: string } } | null };\n\nexport type DeleteModelServicesMutationVariables = Exact<{\n input?: InputMaybe<DeleteCommonInput>;\n}>;\n\n\nexport type DeleteModelServicesMutation = { __typename?: 'Mutation', ModelService?: { __typename?: 'ModelServiceMutation', deleteModelService?: any | null } | null };\n\nexport type GetModelServiceQueryVariables = Exact<{\n name: Scalars['String']['input'];\n namespace: Scalars['String']['input'];\n}>;\n\n\nexport type GetModelServiceQuery = { __typename?: 'Query', ModelService?: { __typename?: 'ModelServiceQuery', getModelService: { __typename?: 'ModelService', id?: string | null, name: string, namespace: string, labels?: any | null, annotations?: any | null, creator?: string | null, displayName?: string | null, description?: string | null, providerType?: string | null, types?: string | null, apiType?: string | null, llmModels?: Array<string> | null, embeddingModels?: Array<string> | null, creationTimestamp?: any | null, updateTimestamp?: any | null, status?: string | null, message?: string | null, baseUrl: string } } | null };\n\nexport type ListModelServicesQueryVariables = Exact<{\n input?: InputMaybe<ListModelServiceInput>;\n}>;\n\n\nexport type ListModelServicesQuery = { __typename?: 'Query', ModelService?: { __typename?: 'ModelServiceQuery', listModelServices: { __typename?: 'PaginatedResult', totalCount: number, hasNextPage: boolean, nodes?: Array<{ __typename: 'ApplicationMetadata' } | { __typename: 'Dataset' } | { __typename: 'Datasource' } | { __typename: 'Embedder' } | { __typename: 'F' } | { __typename: 'KnowledgeBase' } | { __typename: 'LLM' } | { __typename: 'Model' } | { __typename: 'ModelService', id?: string | null, name: string, namespace: string, labels?: any | null, annotations?: any | null, creator?: string | null, displayName?: string | null, description?: string | null, providerType?: string | null, types?: string | null, apiType?: string | null, llmModels?: Array<string> | null, embeddingModels?: Array<string> | null, creationTimestamp?: any | null, updateTimestamp?: any | null, status?: string | null, message?: string | null, baseUrl: string } | { __typename: 'RayCluster' } | { __typename: 'VersionedDataset' } | { __typename: 'Worker' }> | null } } | null };\n\nexport type CheckModelServiceQueryVariables = Exact<{\n input: CreateModelServiceInput;\n}>;\n\n\nexport type CheckModelServiceQuery = { __typename?: 'Query', ModelService?: { __typename?: 'ModelServiceQuery', checkModelService: { __typename?: 'ModelService', name: string, namespace: string, apiType?: string | null, description?: string | null } } | null };\n\nexport type ListRayClustersQueryVariables = Exact<{\n input: ListCommonInput;\n}>;\n\n\nexport type ListRayClustersQuery = { __typename?: 'Query', RayCluster?: { __typename?: 'RayClusterQuery', listRayClusters: { __typename?: 'PaginatedResult', totalCount: number, hasNextPage: boolean, nodes?: Array<{ __typename: 'ApplicationMetadata' } | { __typename: 'Dataset' } | { __typename: 'Datasource' } | { __typename: 'Embedder' } | { __typename: 'F' } | { __typename: 'KnowledgeBase' } | { __typename: 'LLM' } | { __typename: 'Model' } | { __typename: 'ModelService' } | { __typename: 'RayCluster', index: number, name: string, headAddress?: string | null, dashboardHost?: string | null, pythonVersion?: string | null } | { __typename: 'VersionedDataset' } | { __typename: 'Worker' }> | null } } | null };\n\nexport type CreateVersionedDatasetMutationVariables = Exact<{\n input: CreateVersionedDatasetInput;\n}>;\n\n\nexport type CreateVersionedDatasetMutation = { __typename?: 'Mutation', VersionedDataset?: { __typename?: 'VersionedDatasetMutation', createVersionedDataset: { __typename?: 'VersionedDataset', name: string, displayName?: string | null, creator?: string | null, namespace: string, version: string, updateTimestamp?: any | null, creationTimestamp: any, released: number, syncStatus?: string | null, dataProcessStatus?: string | null } } | null };\n\nexport type UpdateVersionedDatasetMutationVariables = Exact<{\n input: UpdateVersionedDatasetInput;\n}>;\n\n\nexport type UpdateVersionedDatasetMutation = { __typename?: 'Mutation', VersionedDataset?: { __typename?: 'VersionedDatasetMutation', updateVersionedDataset: { __typename?: 'VersionedDataset', name: string, displayName?: string | null } } | null };\n\nexport type DeleteVersionedDatasetsMutationVariables = Exact<{\n input: DeleteVersionedDatasetInput;\n}>;\n\n\nexport type DeleteVersionedDatasetsMutation = { __typename?: 'Mutation', VersionedDataset?: { __typename?: 'VersionedDatasetMutation', deleteVersionedDatasets?: any | null } | null };\n\nexport type GetVersionedDatasetQueryVariables = Exact<{\n name: Scalars['String']['input'];\n namespace: Scalars['String']['input'];\n fileInput?: InputMaybe<FileFilter>;\n}>;\n\n\nexport type GetVersionedDatasetQuery = { __typename?: 'Query', VersionedDataset?: { __typename?: 'VersionedDatasetQuery', getVersionedDataset: { __typename?: 'VersionedDataset', id?: string | null, name: string, displayName?: string | null, description?: string | null, creator?: string | null, namespace: string, version: string, updateTimestamp?: any | null, creationTimestamp: any, released: number, syncStatus?: string | null, syncMsg?: string | null, dataProcessStatus?: string | null, dataProcessMsg?: string | null, files: { __typename?: 'PaginatedResult', totalCount: number, hasNextPage: boolean, nodes?: Array<{ __typename?: 'ApplicationMetadata' } | { __typename?: 'Dataset' } | { __typename?: 'Datasource' } | { __typename?: 'Embedder' } | { __typename?: 'F', path: string, time?: any | null, fileType: string, count?: string | null, size?: string | null, creationTimestamp?: any | null } | { __typename?: 'KnowledgeBase' } | { __typename?: 'LLM' } | { __typename?: 'Model' } | { __typename?: 'ModelService' } | { __typename?: 'RayCluster' } | { __typename?: 'VersionedDataset' } | { __typename?: 'Worker' }> | null } } } | null };\n\nexport type ListVersionedDatasetsQueryVariables = Exact<{\n input: ListVersionedDatasetInput;\n fileInput?: InputMaybe<FileFilter>;\n}>;\n\n\nexport type ListVersionedDatasetsQuery = { __typename?: 'Query', VersionedDataset?: { __typename?: 'VersionedDatasetQuery', listVersionedDatasets: { __typename?: 'PaginatedResult', totalCount: number, hasNextPage: boolean, nodes?: Array<{ __typename?: 'ApplicationMetadata' } | { __typename?: 'Dataset' } | { __typename?: 'Datasource' } | { __typename?: 'Embedder' } | { __typename?: 'F' } | { __typename?: 'KnowledgeBase' } | { __typename?: 'LLM' } | { __typename?: 'Model' } | { __typename?: 'ModelService' } | { __typename?: 'RayCluster' } | { __typename?: 'VersionedDataset', id?: string | null, name: string, displayName?: string | null, description?: string | null, creator?: string | null, namespace: string, version: string, updateTimestamp?: any | null, creationTimestamp: any, released: number, syncStatus?: string | null, syncMsg?: string | null, dataProcessStatus?: string | null, dataProcessMsg?: string | null, files: { __typename?: 'PaginatedResult', totalCount: number, hasNextPage: boolean, nodes?: Array<{ __typename?: 'ApplicationMetadata' } | { __typename?: 'Dataset' } | { __typename?: 'Datasource' } | { __typename?: 'Embedder' } | { __typename?: 'F', path: string, time?: any | null, fileType: string, count?: string | null, size?: string | null, creationTimestamp?: any | null } | { __typename?: 'KnowledgeBase' } | { __typename?: 'LLM' } | { __typename?: 'Model' } | { __typename?: 'ModelService' } | { __typename?: 'RayCluster' } | { __typename?: 'VersionedDataset' } | { __typename?: 'Worker' }> | null } } | { __typename?: 'Worker' }> | null } } | null };\n\nexport type ListWorkersQueryVariables = Exact<{\n input: ListWorkerInput;\n}>;\n\n\nexport type ListWorkersQuery = { __typename?: 'Query', Worker?: { __typename?: 'WorkerQuery', listWorkers: { __typename?: 'PaginatedResult', totalCount: number, hasNextPage: boolean, nodes?: Array<{ __typename: 'ApplicationMetadata' } | { __typename: 'Dataset' } | { __typename: 'Datasource' } | { __typename: 'Embedder' } | { __typename: 'F' } | { __typename: 'KnowledgeBase' } | { __typename: 'LLM' } | { __typename: 'Model' } | { __typename: 'ModelService' } | { __typename: 'RayCluster' } | { __typename: 'VersionedDataset' } | { __typename: 'Worker', id?: string | null, creationTimestamp?: any | null, name: string, namespace: string, labels?: any | null, annotations?: any | null, creator?: string | null, displayName?: string | null, description?: string | null, status?: string | null, message?: string | null, updateTimestamp?: any | null, type?: string | null, api?: string | null, modelTypes: string, replicas?: string | null, additionalEnvs?: any | null, model: { __typename?: 'TypedObjectReference', name: string, namespace?: string | null, kind: string, apiGroup?: string | null }, resources: { __typename?: 'Resources', cpu?: string | null, memory?: string | null, nvidiaGPU?: string | null }, matchExpressions?: Array<{ __typename?: 'NodeSelectorRequirement', key: string, operator: string, values: Array<string> } | null> | null }> | null } } | null };\n\nexport type GetWorkerQueryVariables = Exact<{\n name: Scalars['String']['input'];\n namespace: Scalars['String']['input'];\n}>;\n\n\nexport type GetWorkerQuery = { __typename?: 'Query', Worker?: { __typename?: 'WorkerQuery', getWorker: { __typename?: 'Worker', id?: string | null, creationTimestamp?: any | null, name: string, namespace: string, labels?: any | null, annotations?: any | null, creator?: string | null, displayName?: string | null, description?: string | null, type?: string | null, status?: string | null, message?: string | null, updateTimestamp?: any | null, api?: string | null, modelTypes: string, replicas?: string | null, additionalEnvs?: any | null, model: { __typename?: 'TypedObjectReference', name: string, namespace?: string | null, kind: string, apiGroup?: string | null }, resources: { __typename?: 'Resources', cpu?: string | null, memory?: string | null, nvidiaGPU?: string | null }, matchExpressions?: Array<{ __typename?: 'NodeSelectorRequirement', key: string, operator: string, values: Array<string> } | null> | null } } | null };\n\nexport type CreateWorkerMutationVariables = Exact<{\n input: CreateWorkerInput;\n}>;\n\n\nexport type CreateWorkerMutation = { __typename?: 'Mutation', Worker?: { __typename?: 'WorkerMutation', createWorker: { __typename?: 'Worker', id?: string | null, creationTimestamp?: any | null, name: string, namespace: string, labels?: any | null, annotations?: any | null, creator?: string | null, displayName?: string | null, description?: string | null, type?: string | null, status?: string | null, message?: string | null, updateTimestamp?: any | null, api?: string | null, modelTypes: string, replicas?: string | null, additionalEnvs?: any | null, model: { __typename?: 'TypedObjectReference', name: string, namespace?: string | null, kind: string, apiGroup?: string | null }, resources: { __typename?: 'Resources', cpu?: string | null, memory?: string | null, nvidiaGPU?: string | null }, matchExpressions?: Array<{ __typename?: 'NodeSelectorRequirement', key: string, operator: string, values: Array<string> } | null> | null } } | null };\n\nexport type UpdateWorkerMutationVariables = Exact<{\n input?: InputMaybe<UpdateWorkerInput>;\n}>;\n\n\nexport type UpdateWorkerMutation = { __typename?: 'Mutation', Worker?: { __typename?: 'WorkerMutation', updateWorker: { __typename?: 'Worker', id?: string | null, creationTimestamp?: any | null, name: string, namespace: string, labels?: any | null, annotations?: any | null, creator?: string | null, displayName?: string | null, description?: string | null, type?: string | null, status?: string | null, message?: string | null, updateTimestamp?: any | null, replicas?: string | null, api?: string | null, modelTypes: string, additionalEnvs?: any | null, resources: { __typename?: 'Resources', cpu?: string | null, memory?: string | null, nvidiaGPU?: string | null }, model: { __typename?: 'TypedObjectReference', name: string, namespace?: string | null, kind: string, apiGroup?: string | null }, matchExpressions?: Array<{ __typename?: 'NodeSelectorRequirement', key: string, operator: string, values: Array<string> } | null> | null } } | null };\n\nexport type DeleteWorkersMutationVariables = Exact<{\n input?: InputMaybe<DeleteCommonInput>;\n}>;\n\n\nexport type DeleteWorkersMutation = { __typename?: 'Mutation', Worker?: { __typename?: 'WorkerMutation', deleteWorkers?: any | null } | null };\n\n\nexport const CreateApplicationDocument = gql`\n mutation createApplication($input: CreateApplicationMetadataInput!) {\n Application {\n createApplication(input: $input) {\n name\n namespace\n id\n labels\n annotations\n displayName\n description\n icon\n }\n }\n}\n `;\nexport const UpdateApplicationDocument = gql`\n mutation updateApplication($input: UpdateApplicationMetadataInput!) {\n Application {\n updateApplication(input: $input) {\n name\n namespace\n id\n labels\n annotations\n displayName\n description\n icon\n isPublic\n }\n }\n}\n `;\nexport const DeleteApplicationDocument = gql`\n mutation deleteApplication($input: DeleteCommonInput!) {\n Application {\n deleteApplication(input: $input)\n }\n}\n `;\nexport const UpdateApplicationConfigDocument = gql`\n mutation updateApplicationConfig($input: UpdateApplicationConfigInput!) {\n Application {\n updateApplicationConfig(input: $input) {\n metadata {\n name\n namespace\n id\n labels\n annotations\n displayName\n description\n icon\n creator\n creationTimestamp\n updateTimestamp\n isPublic\n status\n }\n prologue\n model\n llm\n temperature\n maxLength\n conversionWindowSize\n knowledgebase\n scoreThreshold\n numDocuments\n docNullReturn\n userPrompt\n showNextGuid\n }\n }\n}\n `;\nexport const GetApplicationDocument = gql`\n query getApplication($name: String!, $namespace: String!) {\n Application {\n getApplication(name: $name, namespace: $namespace) {\n metadata {\n name\n namespace\n id\n labels\n annotations\n displayName\n description\n icon\n creator\n creationTimestamp\n updateTimestamp\n isPublic\n status\n }\n prologue\n model\n llm\n temperature\n maxLength\n conversionWindowSize\n knowledgebase\n scoreThreshold\n numDocuments\n docNullReturn\n userPrompt\n showNextGuid\n }\n }\n}\n `;\nexport const ListApplicationsDocument = gql`\n query listApplications($input: ListCommonInput!) {\n Application {\n listApplicationMetadata(input: $input) {\n page\n pageSize\n totalCount\n hasNextPage\n nodes {\n ... on ApplicationMetadata {\n name\n namespace\n id\n labels\n annotations\n displayName\n description\n icon\n isPublic\n }\n }\n }\n }\n}\n `;\nexport const AllDataProcessListByPageDocument = gql`\n query allDataProcessListByPage($input: AllDataProcessListByPageInput!) {\n dataProcess {\n allDataProcessListByPage(input: $input) {\n status\n data {\n id\n name\n status\n pre_data_set_name\n pre_data_set_version\n post_data_set_name\n post_data_set_version\n start_datetime\n error_msg\n }\n message\n }\n }\n}\n `;\nexport const AllDataProcessListByCountDocument = gql`\n query allDataProcessListByCount($input: AllDataProcessListByCountInput!) {\n dataProcess {\n allDataProcessListByCount(input: $input) {\n status\n data\n message\n }\n }\n}\n `;\nexport const DataProcessSupportTypeDocument = gql`\n query dataProcessSupportType {\n dataProcess {\n dataProcessSupportType {\n status\n data {\n name\n description\n children {\n name\n zh_name\n description\n enable\n }\n }\n message\n }\n }\n}\n `;\nexport const DataProcessDetailsDocument = gql`\n query dataProcessDetails($input: DataProcessDetailsInput) {\n dataProcess {\n dataProcessDetails(input: $input) {\n status\n data {\n id\n status\n name\n file_type\n pre_dataset_name\n pre_dataset_version\n post_dataset_name\n post_dataset_version\n file_num\n start_time\n end_time\n creator\n error_msg\n config {\n name\n description\n file_num\n status\n children {\n name\n enable\n zh_name\n description\n llm_config {\n name\n namespace\n model\n temperature\n top_p\n max_tokens\n prompt_template\n provider\n }\n preview {\n file_name\n content {\n pre\n post\n }\n }\n file_progress {\n id\n file_name\n status\n start_time\n end_time\n progress\n }\n }\n }\n }\n message\n }\n }\n}\n `;\nexport const CheckDataProcessTaskNameDocument = gql`\n query checkDataProcessTaskName($input: CheckDataProcessTaskNameInput) {\n dataProcess {\n checkDataProcessTaskName(input: $input) {\n status\n data\n message\n }\n }\n}\n `;\nexport const GetLogInfoDocument = gql`\n query getLogInfo($input: DataProcessDetailsInput) {\n dataProcess {\n getLogInfo(input: $input) {\n status\n data\n message\n }\n }\n}\n `;\nexport const DataProcessLogInfoByFileNameDocument = gql`\n query dataProcessLogInfoByFileName($input: DataProcessFileLogInput) {\n dataProcess {\n dataProcessLogInfoByFileName(input: $input) {\n status\n data\n message\n }\n }\n}\n `;\nexport const DataProcessRetryDocument = gql`\n query dataProcessRetry($input: DataProcessRetryInput) {\n dataProcess {\n dataProcessRetry(input: $input) {\n status\n data\n message\n }\n }\n}\n `;\nexport const CreateDataProcessTaskDocument = gql`\n mutation createDataProcessTask($input: AddDataProcessInput) {\n dataProcess {\n createDataProcessTask(input: $input) {\n status\n data\n message\n }\n }\n}\n `;\nexport const DeleteDataProcessTaskDocument = gql`\n mutation deleteDataProcessTask($input: DeleteDataProcessInput) {\n dataProcess {\n deleteDataProcessTask(input: $input) {\n status\n data\n message\n }\n }\n}\n `;\nexport const ListDatasetsDocument = gql`\n query listDatasets($input: ListDatasetInput, $versionsInput: ListVersionedDatasetInput!, $filesInput: FileFilter) {\n Dataset {\n listDatasets(input: $input) {\n totalCount\n hasNextPage\n nodes {\n ... on Dataset {\n name\n namespace\n creator\n displayName\n updateTimestamp\n creationTimestamp\n contentType\n field\n versions(input: $versionsInput) {\n totalCount\n hasNextPage\n nodes {\n ... on VersionedDataset {\n name\n namespace\n displayName\n description\n syncStatus\n released\n dataProcessStatus\n updateTimestamp\n version\n files(input: $filesInput) {\n totalCount\n }\n }\n }\n }\n }\n }\n }\n }\n}\n `;\nexport const GetDatasetDocument = gql`\n query getDataset($name: String!, $namespace: String!, $versionsInput: ListVersionedDatasetInput!, $filesInput: FileFilter) {\n Dataset {\n getDataset(name: $name, namespace: $namespace) {\n name\n namespace\n creator\n displayName\n updateTimestamp\n creationTimestamp\n contentType\n field\n versions(input: $versionsInput) {\n totalCount\n hasNextPage\n nodes {\n ... on VersionedDataset {\n name\n namespace\n displayName\n description\n syncStatus\n released\n dataProcessStatus\n updateTimestamp\n version\n files(input: $filesInput) {\n totalCount\n }\n }\n }\n }\n }\n }\n}\n `;\nexport const CreateDatasetDocument = gql`\n mutation createDataset($input: CreateDatasetInput) {\n Dataset {\n createDataset(input: $input) {\n name\n displayName\n labels\n }\n }\n}\n `;\nexport const UpdateDatasetDocument = gql`\n mutation updateDataset($input: UpdateDatasetInput) {\n Dataset {\n updateDataset(input: $input) {\n name\n displayName\n labels\n }\n }\n}\n `;\nexport const DeleteDatasetsDocument = gql`\n mutation deleteDatasets($input: DeleteCommonInput) {\n Dataset {\n deleteDatasets(input: $input)\n }\n}\n `;\nexport const CreateDatasourceDocument = gql`\n mutation createDatasource($input: CreateDatasourceInput!) {\n Datasource {\n createDatasource(input: $input) {\n id\n name\n namespace\n creator\n displayName\n description\n endpoint {\n url\n authSecret {\n kind\n name\n }\n insecure\n }\n oss {\n bucket\n object\n }\n creationTimestamp\n updateTimestamp\n status\n message\n }\n }\n}\n `;\nexport const UpdateDatasourceDocument = gql`\n mutation updateDatasource($input: UpdateDatasourceInput) {\n Datasource {\n updateDatasource(input: $input) {\n id\n name\n namespace\n creator\n displayName\n description\n endpoint {\n url\n authSecret {\n kind\n name\n }\n insecure\n }\n oss {\n bucket\n object\n }\n creationTimestamp\n updateTimestamp\n status\n message\n }\n }\n}\n `;\nexport const DeleteDatasourcesDocument = gql`\n mutation deleteDatasources($input: DeleteCommonInput!) {\n Datasource {\n deleteDatasources(input: $input)\n }\n}\n `;\nexport const ListDatasourcesDocument = gql`\n query listDatasources($input: ListCommonInput!) {\n Datasource {\n listDatasources(input: $input) {\n totalCount\n hasNextPage\n nodes {\n __typename\n ... on Datasource {\n id\n name\n namespace\n creator\n displayName\n description\n endpoint {\n url\n authSecret {\n kind\n name\n }\n insecure\n }\n oss {\n bucket\n object\n }\n creationTimestamp\n updateTimestamp\n status\n message\n }\n }\n }\n }\n}\n `;\nexport const GetDatasourceDocument = gql`\n query getDatasource($name: String!, $namespace: String!) {\n Datasource {\n getDatasource(name: $name, namespace: $namespace) {\n id\n name\n namespace\n creator\n displayName\n description\n endpoint {\n url\n authSecret {\n kind\n name\n }\n insecure\n }\n oss {\n bucket\n object\n }\n creationTimestamp\n updateTimestamp\n status\n message\n }\n }\n}\n `;\nexport const CheckDatasourceDocument = gql`\n query checkDatasource($input: CreateDatasourceInput!) {\n Datasource {\n checkDatasource(input: $input) {\n name\n namespace\n status\n message\n }\n }\n}\n `;\nexport const CreateEmbedderDocument = gql`\n mutation createEmbedder($input: CreateEmbedderInput!) {\n Embedder {\n createEmbedder(input: $input) {\n name\n namespace\n labels\n annotations\n displayName\n description\n type\n baseUrl\n models\n provider\n updateTimestamp\n status\n message\n }\n }\n}\n `;\nexport const UpdateEmbedderDocument = gql`\n mutation updateEmbedder($input: UpdateEmbedderInput) {\n Embedder {\n updateEmbedder(input: $input) {\n name\n namespace\n labels\n annotations\n displayName\n description\n baseUrl\n models\n provider\n type\n updateTimestamp\n status\n message\n }\n }\n}\n `;\nexport const DeleteEmbeddersDocument = gql`\n mutation deleteEmbedders($input: DeleteCommonInput!) {\n Embedder {\n deleteEmbedders(input: $input)\n }\n}\n `;\nexport const ListEmbeddersDocument = gql`\n query listEmbedders($input: ListCommonInput!) {\n Embedder {\n listEmbedders(input: $input) {\n totalCount\n hasNextPage\n nodes {\n ... on Embedder {\n name\n namespace\n labels\n annotations\n displayName\n description\n baseUrl\n models\n provider\n type\n updateTimestamp\n status\n message\n }\n }\n }\n }\n}\n `;\nexport const GetEmbedderDocument = gql`\n query getEmbedder($name: String!, $namespace: String!) {\n Embedder {\n getEmbedder(name: $name, namespace: $namespace) {\n name\n namespace\n labels\n annotations\n displayName\n description\n baseUrl\n models\n provider\n type\n updateTimestamp\n }\n }\n}\n `;\nexport const ListKnowledgeBasesDocument = gql`\n query listKnowledgeBases($input: ListKnowledgeBaseInput!) {\n KnowledgeBase {\n listKnowledgeBases(input: $input) {\n totalCount\n hasNextPage\n nodes {\n ... on KnowledgeBase {\n id\n creationTimestamp\n name\n namespace\n labels\n annotations\n creator\n displayName\n description\n status\n reason\n message\n updateTimestamp\n embedder {\n kind\n name\n }\n vectorStore {\n kind\n name\n }\n fileGroupDetails {\n source {\n kind\n name\n }\n filedetails {\n path\n phase\n fileType\n count\n size\n updateTimestamp\n }\n }\n }\n }\n }\n }\n}\n `;\nexport const GetKnowledgeBaseDocument = gql`\n query getKnowledgeBase($name: String!, $namespace: String!) {\n KnowledgeBase {\n getKnowledgeBase(name: $name, namespace: $namespace) {\n id\n creationTimestamp\n name\n namespace\n labels\n annotations\n creator\n displayName\n description\n status\n reason\n message\n updateTimestamp\n embedder {\n kind\n name\n }\n vectorStore {\n kind\n name\n }\n fileGroupDetails {\n source {\n kind\n name\n }\n filedetails {\n path\n phase\n fileType\n count\n size\n updateTimestamp\n }\n }\n }\n }\n}\n `;\nexport const CreateKnowledgeBaseDocument = gql`\n mutation createKnowledgeBase($input: CreateKnowledgeBaseInput!) {\n KnowledgeBase {\n createKnowledgeBase(input: $input) {\n id\n creationTimestamp\n name\n namespace\n labels\n annotations\n creator\n displayName\n description\n status\n reason\n message\n updateTimestamp\n embedder {\n kind\n name\n }\n vectorStore {\n kind\n name\n }\n fileGroupDetails {\n source {\n kind\n name\n }\n filedetails {\n path\n phase\n fileType\n count\n size\n updateTimestamp\n }\n }\n }\n }\n}\n `;\nexport const UpdateKnowledgeBaseDocument = gql`\n mutation updateKnowledgeBase($input: UpdateKnowledgeBaseInput) {\n KnowledgeBase {\n updateKnowledgeBase(input: $input) {\n id\n creationTimestamp\n name\n namespace\n labels\n annotations\n creator\n displayName\n description\n status\n reason\n message\n updateTimestamp\n embedder {\n kind\n name\n }\n vectorStore {\n kind\n name\n }\n fileGroupDetails {\n source {\n kind\n name\n }\n filedetails {\n path\n phase\n fileType\n count\n size\n updateTimestamp\n }\n }\n }\n }\n}\n `;\nexport const DeleteKnowledgeBaseDocument = gql`\n mutation deleteKnowledgeBase($input: DeleteCommonInput) {\n KnowledgeBase {\n deleteKnowledgeBase(input: $input)\n }\n}\n `;\nexport const ListLlMsDocument = gql`\n query listLLMs($input: ListCommonInput!) {\n LLM {\n listLLMs(input: $input) {\n totalCount\n hasNextPage\n nodes {\n ... on LLM {\n name\n namespace\n labels\n annotations\n displayName\n description\n baseUrl\n models\n provider\n type\n updateTimestamp\n status\n message\n }\n }\n }\n }\n}\n `;\nexport const GetLlmDocument = gql`\n query getLLM($name: String!, $namespace: String!) {\n LLM {\n getLLM(name: $name, namespace: $namespace) {\n name\n namespace\n labels\n annotations\n displayName\n description\n baseUrl\n models\n provider\n type\n updateTimestamp\n status\n message\n }\n }\n}\n `;\nexport const ListModelsDocument = gql`\n query listModels($input: ListModelInput!, $filesInput: FileFilter) {\n Model {\n listModels(input: $input) {\n totalCount\n hasNextPage\n nodes {\n __typename\n ... on Model {\n id\n creationTimestamp\n name\n namespace\n systemModel\n labels\n annotations\n creator\n displayName\n description\n status\n message\n types\n updateTimestamp\n files(input: $filesInput) {\n totalCount\n hasNextPage\n nodes {\n ... on F {\n path\n time\n fileType\n count\n size\n creationTimestamp\n }\n }\n }\n }\n }\n }\n }\n}\n `;\nexport const GetModelDocument = gql`\n query getModel($name: String!, $namespace: String!, $filesInput: FileFilter) {\n Model {\n getModel(name: $name, namespace: $namespace) {\n id\n creationTimestamp\n name\n namespace\n systemModel\n labels\n annotations\n creator\n displayName\n description\n status\n message\n types\n updateTimestamp\n files(input: $filesInput) {\n totalCount\n hasNextPage\n nodes {\n ... on F {\n path\n time\n fileType\n count\n size\n creationTimestamp\n }\n }\n }\n }\n }\n}\n `;\nexport const CreateModelDocument = gql`\n mutation createModel($input: CreateModelInput!) {\n Model {\n createModel(input: $input) {\n id\n creationTimestamp\n name\n namespace\n systemModel\n labels\n annotations\n creator\n displayName\n description\n status\n message\n types\n updateTimestamp\n }\n }\n}\n `;\nexport const UpdateModelDocument = gql`\n mutation updateModel($input: UpdateModelInput) {\n Model {\n updateModel(input: $input) {\n id\n creationTimestamp\n name\n namespace\n systemModel\n labels\n annotations\n creator\n displayName\n description\n status\n message\n types\n updateTimestamp\n }\n }\n}\n `;\nexport const DeleteModelsDocument = gql`\n mutation deleteModels($input: DeleteCommonInput) {\n Model {\n deleteModels(input: $input)\n }\n}\n `;\nexport const CreateModelServiceDocument = gql`\n mutation createModelService($input: CreateModelServiceInput!) {\n ModelService {\n createModelService(input: $input) {\n id\n name\n namespace\n labels\n annotations\n creator\n displayName\n description\n providerType\n types\n apiType\n llmModels\n embeddingModels\n creationTimestamp\n updateTimestamp\n status\n message\n baseUrl\n }\n }\n}\n `;\nexport const UpdateModelServiceDocument = gql`\n mutation updateModelService($input: UpdateModelServiceInput) {\n ModelService {\n updateModelService(input: $input) {\n id\n name\n namespace\n labels\n annotations\n creator\n displayName\n description\n providerType\n types\n apiType\n llmModels\n embeddingModels\n creationTimestamp\n updateTimestamp\n status\n message\n baseUrl\n }\n }\n}\n `;\nexport const DeleteModelServicesDocument = gql`\n mutation deleteModelServices($input: DeleteCommonInput) {\n ModelService {\n deleteModelService(input: $input)\n }\n}\n `;\nexport const GetModelServiceDocument = gql`\n query getModelService($name: String!, $namespace: String!) {\n ModelService {\n getModelService(name: $name, namespace: $namespace) {\n id\n name\n namespace\n labels\n annotations\n creator\n displayName\n description\n providerType\n types\n apiType\n llmModels\n embeddingModels\n creationTimestamp\n updateTimestamp\n status\n message\n baseUrl\n }\n }\n}\n `;\nexport const ListModelServicesDocument = gql`\n query listModelServices($input: ListModelServiceInput) {\n ModelService {\n listModelServices(input: $input) {\n totalCount\n hasNextPage\n nodes {\n __typename\n ... on ModelService {\n id\n name\n namespace\n labels\n annotations\n creator\n displayName\n description\n providerType\n types\n apiType\n llmModels\n embeddingModels\n creationTimestamp\n updateTimestamp\n status\n message\n baseUrl\n }\n }\n }\n }\n}\n `;\nexport const CheckModelServiceDocument = gql`\n query checkModelService($input: CreateModelServiceInput!) {\n ModelService {\n checkModelService(input: $input) {\n name\n namespace\n apiType\n description\n }\n }\n}\n `;\nexport const ListRayClustersDocument = gql`\n query listRayClusters($input: ListCommonInput!) {\n RayCluster {\n listRayClusters(input: $input) {\n totalCount\n hasNextPage\n nodes {\n __typename\n ... on RayCluster {\n index\n name\n headAddress\n dashboardHost\n pythonVersion\n }\n }\n }\n }\n}\n `;\nexport const CreateVersionedDatasetDocument = gql`\n mutation createVersionedDataset($input: CreateVersionedDatasetInput!) {\n VersionedDataset {\n createVersionedDataset(input: $input) {\n name\n displayName\n creator\n namespace\n version\n updateTimestamp\n creationTimestamp\n released\n syncStatus\n dataProcessStatus\n }\n }\n}\n `;\nexport const UpdateVersionedDatasetDocument = gql`\n mutation updateVersionedDataset($input: UpdateVersionedDatasetInput!) {\n VersionedDataset {\n updateVersionedDataset(input: $input) {\n name\n displayName\n }\n }\n}\n `;\nexport const DeleteVersionedDatasetsDocument = gql`\n mutation deleteVersionedDatasets($input: DeleteVersionedDatasetInput!) {\n VersionedDataset {\n deleteVersionedDatasets(input: $input)\n }\n}\n `;\nexport const GetVersionedDatasetDocument = gql`\n query getVersionedDataset($name: String!, $namespace: String!, $fileInput: FileFilter) {\n VersionedDataset {\n getVersionedDataset(name: $name, namespace: $namespace) {\n id\n name\n displayName\n description\n creator\n namespace\n version\n updateTimestamp\n creationTimestamp\n released\n syncStatus\n syncMsg\n dataProcessStatus\n dataProcessMsg\n files(input: $fileInput) {\n totalCount\n hasNextPage\n nodes {\n ... on F {\n path\n time\n fileType\n count\n size\n creationTimestamp\n }\n }\n }\n }\n }\n}\n `;\nexport const ListVersionedDatasetsDocument = gql`\n query listVersionedDatasets($input: ListVersionedDatasetInput!, $fileInput: FileFilter) {\n VersionedDataset {\n listVersionedDatasets(input: $input) {\n totalCount\n hasNextPage\n nodes {\n ... on VersionedDataset {\n id\n name\n displayName\n description\n creator\n namespace\n version\n updateTimestamp\n creationTimestamp\n released\n syncStatus\n syncMsg\n dataProcessStatus\n dataProcessMsg\n files(input: $fileInput) {\n totalCount\n hasNextPage\n nodes {\n ... on F {\n path\n time\n fileType\n count\n size\n creationTimestamp\n }\n }\n }\n }\n }\n }\n }\n}\n `;\nexport const ListWorkersDocument = gql`\n query listWorkers($input: ListWorkerInput!) {\n Worker {\n listWorkers(input: $input) {\n totalCount\n hasNextPage\n nodes {\n __typename\n ... on Worker {\n id\n creationTimestamp\n name\n namespace\n labels\n annotations\n creator\n displayName\n description\n status\n message\n updateTimestamp\n type\n model {\n name\n namespace\n kind\n apiGroup\n }\n api\n modelTypes\n replicas\n resources {\n cpu\n memory\n nvidiaGPU\n }\n matchExpressions {\n key\n operator\n values\n }\n additionalEnvs\n }\n }\n }\n }\n}\n `;\nexport const GetWorkerDocument = gql`\n query getWorker($name: String!, $namespace: String!) {\n Worker {\n getWorker(name: $name, namespace: $namespace) {\n id\n creationTimestamp\n name\n namespace\n labels\n annotations\n creator\n displayName\n description\n type\n status\n message\n updateTimestamp\n model {\n name\n namespace\n kind\n apiGroup\n }\n api\n modelTypes\n replicas\n resources {\n cpu\n memory\n nvidiaGPU\n }\n matchExpressions {\n key\n operator\n values\n }\n additionalEnvs\n }\n }\n}\n `;\nexport const CreateWorkerDocument = gql`\n mutation createWorker($input: CreateWorkerInput!) {\n Worker {\n createWorker(input: $input) {\n id\n creationTimestamp\n name\n namespace\n labels\n annotations\n creator\n displayName\n description\n type\n status\n message\n updateTimestamp\n model {\n name\n namespace\n kind\n apiGroup\n }\n api\n modelTypes\n replicas\n resources {\n cpu\n memory\n nvidiaGPU\n }\n matchExpressions {\n key\n operator\n values\n }\n additionalEnvs\n }\n }\n}\n `;\nexport const UpdateWorkerDocument = gql`\n mutation updateWorker($input: UpdateWorkerInput) {\n Worker {\n updateWorker(input: $input) {\n id\n creationTimestamp\n name\n namespace\n labels\n annotations\n creator\n displayName\n description\n type\n status\n message\n updateTimestamp\n replicas\n resources {\n cpu\n memory\n nvidiaGPU\n }\n api\n model {\n name\n namespace\n kind\n apiGroup\n }\n modelTypes\n matchExpressions {\n key\n operator\n values\n }\n additionalEnvs\n }\n }\n}\n `;\nexport const DeleteWorkersDocument = gql`\n mutation deleteWorkers($input: DeleteCommonInput) {\n Worker {\n deleteWorkers(input: $input)\n }\n}\n `;\n\nexport type SdkFunctionWrapper = <T>(action: (requestHeaders?:Record<string, string>) => Promise<T>, operationName: string, operationType?: string) => Promise<T>;\n\n\nconst defaultWrapper: SdkFunctionWrapper = (action, _operationName, _operationType) => action();\n\nexport function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper = defaultWrapper) {\n return {\n createApplication(variables: CreateApplicationMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<CreateApplicationMutation> {\n return withWrapper((wrappedRequestHeaders) => client.request<CreateApplicationMutation>(CreateApplicationDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'createApplication', 'mutation');\n },\n updateApplication(variables: UpdateApplicationMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<UpdateApplicationMutation> {\n return withWrapper((wrappedRequestHeaders) => client.request<UpdateApplicationMutation>(UpdateApplicationDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'updateApplication', 'mutation');\n },\n deleteApplication(variables: DeleteApplicationMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<DeleteApplicationMutation> {\n return withWrapper((wrappedRequestHeaders) => client.request<DeleteApplicationMutation>(DeleteApplicationDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'deleteApplication', 'mutation');\n },\n updateApplicationConfig(variables: UpdateApplicationConfigMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<UpdateApplicationConfigMutation> {\n return withWrapper((wrappedRequestHeaders) => client.request<UpdateApplicationConfigMutation>(UpdateApplicationConfigDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'updateApplicationConfig', 'mutation');\n },\n getApplication(variables: GetApplicationQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<GetApplicationQuery> {\n return withWrapper((wrappedRequestHeaders) => client.request<GetApplicationQuery>(GetApplicationDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'getApplication', 'query');\n },\n listApplications(variables: ListApplicationsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<ListApplicationsQuery> {\n return withWrapper((wrappedRequestHeaders) => client.request<ListApplicationsQuery>(ListApplicationsDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'listApplications', 'query');\n },\n allDataProcessListByPage(variables: AllDataProcessListByPageQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<AllDataProcessListByPageQuery> {\n return withWrapper((wrappedRequestHeaders) => client.request<AllDataProcessListByPageQuery>(AllDataProcessListByPageDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'allDataProcessListByPage', 'query');\n },\n allDataProcessListByCount(variables: AllDataProcessListByCountQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<AllDataProcessListByCountQuery> {\n return withWrapper((wrappedRequestHeaders) => client.request<AllDataProcessListByCountQuery>(AllDataProcessListByCountDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'allDataProcessListByCount', 'query');\n },\n dataProcessSupportType(variables?: DataProcessSupportTypeQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<DataProcessSupportTypeQuery> {\n return withWrapper((wrappedRequestHeaders) => client.request<DataProcessSupportTypeQuery>(DataProcessSupportTypeDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'dataProcessSupportType', 'query');\n },\n dataProcessDetails(variables?: DataProcessDetailsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<DataProcessDetailsQuery> {\n return withWrapper((wrappedRequestHeaders) => client.request<DataProcessDetailsQuery>(DataProcessDetailsDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'dataProcessDetails', 'query');\n },\n checkDataProcessTaskName(variables?: CheckDataProcessTaskNameQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<CheckDataProcessTaskNameQuery> {\n return withWrapper((wrappedRequestHeaders) => client.request<CheckDataProcessTaskNameQuery>(CheckDataProcessTaskNameDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'checkDataProcessTaskName', 'query');\n },\n getLogInfo(variables?: GetLogInfoQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<GetLogInfoQuery> {\n return withWrapper((wrappedRequestHeaders) => client.request<GetLogInfoQuery>(GetLogInfoDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'getLogInfo', 'query');\n },\n dataProcessLogInfoByFileName(variables?: DataProcessLogInfoByFileNameQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<DataProcessLogInfoByFileNameQuery> {\n return withWrapper((wrappedRequestHeaders) => client.request<DataProcessLogInfoByFileNameQuery>(DataProcessLogInfoByFileNameDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'dataProcessLogInfoByFileName', 'query');\n },\n dataProcessRetry(variables?: DataProcessRetryQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<DataProcessRetryQuery> {\n return withWrapper((wrappedRequestHeaders) => client.request<DataProcessRetryQuery>(DataProcessRetryDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'dataProcessRetry', 'query');\n },\n createDataProcessTask(variables?: CreateDataProcessTaskMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<CreateDataProcessTaskMutation> {\n return withWrapper((wrappedRequestHeaders) => client.request<CreateDataProcessTaskMutation>(CreateDataProcessTaskDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'createDataProcessTask', 'mutation');\n },\n deleteDataProcessTask(variables?: DeleteDataProcessTaskMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<DeleteDataProcessTaskMutation> {\n return withWrapper((wrappedRequestHeaders) => client.request<DeleteDataProcessTaskMutation>(DeleteDataProcessTaskDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'deleteDataProcessTask', 'mutation');\n },\n listDatasets(variables: ListDatasetsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<ListDatasetsQuery> {\n return withWrapper((wrappedRequestHeaders) => client.request<ListDatasetsQuery>(ListDatasetsDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'listDatasets', 'query');\n },\n getDataset(variables: GetDatasetQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<GetDatasetQuery> {\n return withWrapper((wrappedRequestHeaders) => client.request<GetDatasetQuery>(GetDatasetDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'getDataset', 'query');\n },\n createDataset(variables?: CreateDatasetMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<CreateDatasetMutation> {\n return withWrapper((wrappedRequestHeaders) => client.request<CreateDatasetMutation>(CreateDatasetDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'createDataset', 'mutation');\n },\n updateDataset(variables?: UpdateDatasetMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<UpdateDatasetMutation> {\n return withWrapper((wrappedRequestHeaders) => client.request<UpdateDatasetMutation>(UpdateDatasetDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'updateDataset', 'mutation');\n },\n deleteDatasets(variables?: DeleteDatasetsMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<DeleteDatasetsMutation> {\n return withWrapper((wrappedRequestHeaders) => client.request<DeleteDatasetsMutation>(DeleteDatasetsDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'deleteDatasets', 'mutation');\n },\n createDatasource(variables: CreateDatasourceMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<CreateDatasourceMutation> {\n return withWrapper((wrappedRequestHeaders) => client.request<CreateDatasourceMutation>(CreateDatasourceDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'createDatasource', 'mutation');\n },\n updateDatasource(variables?: UpdateDatasourceMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<UpdateDatasourceMutation> {\n return withWrapper((wrappedRequestHeaders) => client.request<UpdateDatasourceMutation>(UpdateDatasourceDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'updateDatasource', 'mutation');\n },\n deleteDatasources(variables: DeleteDatasourcesMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<DeleteDatasourcesMutation> {\n return withWrapper((wrappedRequestHeaders) => client.request<DeleteDatasourcesMutation>(DeleteDatasourcesDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'deleteDatasources', 'mutation');\n },\n listDatasources(variables: ListDatasourcesQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<ListDatasourcesQuery> {\n return withWrapper((wrappedRequestHeaders) => client.request<ListDatasourcesQuery>(ListDatasourcesDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'listDatasources', 'query');\n },\n getDatasource(variables: GetDatasourceQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<GetDatasourceQuery> {\n return withWrapper((wrappedRequestHeaders) => client.request<GetDatasourceQuery>(GetDatasourceDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'getDatasource', 'query');\n },\n checkDatasource(variables: CheckDatasourceQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<CheckDatasourceQuery> {\n return withWrapper((wrappedRequestHeaders) => client.request<CheckDatasourceQuery>(CheckDatasourceDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'checkDatasource', 'query');\n },\n createEmbedder(variables: CreateEmbedderMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<CreateEmbedderMutation> {\n return withWrapper((wrappedRequestHeaders) => client.request<CreateEmbedderMutation>(CreateEmbedderDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'createEmbedder', 'mutation');\n },\n updateEmbedder(variables?: UpdateEmbedderMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<UpdateEmbedderMutation> {\n return withWrapper((wrappedRequestHeaders) => client.request<UpdateEmbedderMutation>(UpdateEmbedderDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'updateEmbedder', 'mutation');\n },\n deleteEmbedders(variables: DeleteEmbeddersMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<DeleteEmbeddersMutation> {\n return withWrapper((wrappedRequestHeaders) => client.request<DeleteEmbeddersMutation>(DeleteEmbeddersDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'deleteEmbedders', 'mutation');\n },\n listEmbedders(variables: ListEmbeddersQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<ListEmbeddersQuery> {\n return withWrapper((wrappedRequestHeaders) => client.request<ListEmbeddersQuery>(ListEmbeddersDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'listEmbedders', 'query');\n },\n getEmbedder(variables: GetEmbedderQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<GetEmbedderQuery> {\n return withWrapper((wrappedRequestHeaders) => client.request<GetEmbedderQuery>(GetEmbedderDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'getEmbedder', 'query');\n },\n listKnowledgeBases(variables: ListKnowledgeBasesQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<ListKnowledgeBasesQuery> {\n return withWrapper((wrappedRequestHeaders) => client.request<ListKnowledgeBasesQuery>(ListKnowledgeBasesDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'listKnowledgeBases', 'query');\n },\n getKnowledgeBase(variables: GetKnowledgeBaseQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<GetKnowledgeBaseQuery> {\n return withWrapper((wrappedRequestHeaders) => client.request<GetKnowledgeBaseQuery>(GetKnowledgeBaseDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'getKnowledgeBase', 'query');\n },\n createKnowledgeBase(variables: CreateKnowledgeBaseMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<CreateKnowledgeBaseMutation> {\n return withWrapper((wrappedRequestHeaders) => client.request<CreateKnowledgeBaseMutation>(CreateKnowledgeBaseDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'createKnowledgeBase', 'mutation');\n },\n updateKnowledgeBase(variables?: UpdateKnowledgeBaseMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<UpdateKnowledgeBaseMutation> {\n return withWrapper((wrappedRequestHeaders) => client.request<UpdateKnowledgeBaseMutation>(UpdateKnowledgeBaseDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'updateKnowledgeBase', 'mutation');\n },\n deleteKnowledgeBase(variables?: DeleteKnowledgeBaseMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<DeleteKnowledgeBaseMutation> {\n return withWrapper((wrappedRequestHeaders) => client.request<DeleteKnowledgeBaseMutation>(DeleteKnowledgeBaseDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'deleteKnowledgeBase', 'mutation');\n },\n listLLMs(variables: ListLlMsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<ListLlMsQuery> {\n return withWrapper((wrappedRequestHeaders) => client.request<ListLlMsQuery>(ListLlMsDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'listLLMs', 'query');\n },\n getLLM(variables: GetLlmQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<GetLlmQuery> {\n return withWrapper((wrappedRequestHeaders) => client.request<GetLlmQuery>(GetLlmDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'getLLM', 'query');\n },\n listModels(variables: ListModelsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<ListModelsQuery> {\n return withWrapper((wrappedRequestHeaders) => client.request<ListModelsQuery>(ListModelsDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'listModels', 'query');\n },\n getModel(variables: GetModelQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<GetModelQuery> {\n return withWrapper((wrappedRequestHeaders) => client.request<GetModelQuery>(GetModelDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'getModel', 'query');\n },\n createModel(variables: CreateModelMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<CreateModelMutation> {\n return withWrapper((wrappedRequestHeaders) => client.request<CreateModelMutation>(CreateModelDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'createModel', 'mutation');\n },\n updateModel(variables?: UpdateModelMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<UpdateModelMutation> {\n return withWrapper((wrappedRequestHeaders) => client.request<UpdateModelMutation>(UpdateModelDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'updateModel', 'mutation');\n },\n deleteModels(variables?: DeleteModelsMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<DeleteModelsMutation> {\n return withWrapper((wrappedRequestHeaders) => client.request<DeleteModelsMutation>(DeleteModelsDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'deleteModels', 'mutation');\n },\n createModelService(variables: CreateModelServiceMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<CreateModelServiceMutation> {\n return withWrapper((wrappedRequestHeaders) => client.request<CreateModelServiceMutation>(CreateModelServiceDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'createModelService', 'mutation');\n },\n updateModelService(variables?: UpdateModelServiceMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<UpdateModelServiceMutation> {\n return withWrapper((wrappedRequestHeaders) => client.request<UpdateModelServiceMutation>(UpdateModelServiceDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'updateModelService', 'mutation');\n },\n deleteModelServices(variables?: DeleteModelServicesMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<DeleteModelServicesMutation> {\n return withWrapper((wrappedRequestHeaders) => client.request<DeleteModelServicesMutation>(DeleteModelServicesDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'deleteModelServices', 'mutation');\n },\n getModelService(variables: GetModelServiceQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<GetModelServiceQuery> {\n return withWrapper((wrappedRequestHeaders) => client.request<GetModelServiceQuery>(GetModelServiceDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'getModelService', 'query');\n },\n listModelServices(variables?: ListModelServicesQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<ListModelServicesQuery> {\n return withWrapper((wrappedRequestHeaders) => client.request<ListModelServicesQuery>(ListModelServicesDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'listModelServices', 'query');\n },\n checkModelService(variables: CheckModelServiceQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<CheckModelServiceQuery> {\n return withWrapper((wrappedRequestHeaders) => client.request<CheckModelServiceQuery>(CheckModelServiceDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'checkModelService', 'query');\n },\n listRayClusters(variables: ListRayClustersQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<ListRayClustersQuery> {\n return withWrapper((wrappedRequestHeaders) => client.request<ListRayClustersQuery>(ListRayClustersDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'listRayClusters', 'query');\n },\n createVersionedDataset(variables: CreateVersionedDatasetMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<CreateVersionedDatasetMutation> {\n return withWrapper((wrappedRequestHeaders) => client.request<CreateVersionedDatasetMutation>(CreateVersionedDatasetDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'createVersionedDataset', 'mutation');\n },\n updateVersionedDataset(variables: UpdateVersionedDatasetMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<UpdateVersionedDatasetMutation> {\n return withWrapper((wrappedRequestHeaders) => client.request<UpdateVersionedDatasetMutation>(UpdateVersionedDatasetDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'updateVersionedDataset', 'mutation');\n },\n deleteVersionedDatasets(variables: DeleteVersionedDatasetsMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<DeleteVersionedDatasetsMutation> {\n return withWrapper((wrappedRequestHeaders) => client.request<DeleteVersionedDatasetsMutation>(DeleteVersionedDatasetsDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'deleteVersionedDatasets', 'mutation');\n },\n getVersionedDataset(variables: GetVersionedDatasetQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<GetVersionedDatasetQuery> {\n return withWrapper((wrappedRequestHeaders) => client.request<GetVersionedDatasetQuery>(GetVersionedDatasetDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'getVersionedDataset', 'query');\n },\n listVersionedDatasets(variables: ListVersionedDatasetsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<ListVersionedDatasetsQuery> {\n return withWrapper((wrappedRequestHeaders) => client.request<ListVersionedDatasetsQuery>(ListVersionedDatasetsDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'listVersionedDatasets', 'query');\n },\n listWorkers(variables: ListWorkersQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<ListWorkersQuery> {\n return withWrapper((wrappedRequestHeaders) => client.request<ListWorkersQuery>(ListWorkersDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'listWorkers', 'query');\n },\n getWorker(variables: GetWorkerQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<GetWorkerQuery> {\n return withWrapper((wrappedRequestHeaders) => client.request<GetWorkerQuery>(GetWorkerDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'getWorker', 'query');\n },\n createWorker(variables: CreateWorkerMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<CreateWorkerMutation> {\n return withWrapper((wrappedRequestHeaders) => client.request<CreateWorkerMutation>(CreateWorkerDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'createWorker', 'mutation');\n },\n updateWorker(variables?: UpdateWorkerMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<UpdateWorkerMutation> {\n return withWrapper((wrappedRequestHeaders) => client.request<UpdateWorkerMutation>(UpdateWorkerDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'updateWorker', 'mutation');\n },\n deleteWorkers(variables?: DeleteWorkersMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<DeleteWorkersMutation> {\n return withWrapper((wrappedRequestHeaders) => client.request<DeleteWorkersMutation>(DeleteWorkersDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'deleteWorkers', 'mutation');\n }\n };\n}\nexport type Sdk = ReturnType<typeof getSdk>;\nexport function getSdkWithHooks(client: GraphQLClient, withWrapper: SdkFunctionWrapper = defaultWrapper) {\n const sdk = getSdk(client, withWrapper);\n const genKey = <V extends Record<string, unknown> = Record<string, unknown>>(name: string, object: V = {} as V): SWRKeyInterface => [name, ...Object.keys(object).sort().map(key => object[key])];\n return {\n ...sdk,\n useGetApplication(variables: GetApplicationQueryVariables, config?: SWRConfigInterface<GetApplicationQuery, ClientError>) {\n return useSWR<GetApplicationQuery, ClientError>(genKey<GetApplicationQueryVariables>('GetApplication', variables), () => sdk.getApplication(variables), config);\n },\n useListApplications(variables: ListApplicationsQueryVariables, config?: SWRConfigInterface<ListApplicationsQuery, ClientError>) {\n return useSWR<ListApplicationsQuery, ClientError>(genKey<ListApplicationsQueryVariables>('ListApplications', variables), () => sdk.listApplications(variables), config);\n },\n useAllDataProcessListByPage(variables: AllDataProcessListByPageQueryVariables, config?: SWRConfigInterface<AllDataProcessListByPageQuery, ClientError>) {\n return useSWR<AllDataProcessListByPageQuery, ClientError>(genKey<AllDataProcessListByPageQueryVariables>('AllDataProcessListByPage', variables), () => sdk.allDataProcessListByPage(variables), config);\n },\n useAllDataProcessListByCount(variables: AllDataProcessListByCountQueryVariables, config?: SWRConfigInterface<AllDataProcessListByCountQuery, ClientError>) {\n return useSWR<AllDataProcessListByCountQuery, ClientError>(genKey<AllDataProcessListByCountQueryVariables>('AllDataProcessListByCount', variables), () => sdk.allDataProcessListByCount(variables), config);\n },\n useDataProcessSupportType(variables?: DataProcessSupportTypeQueryVariables, config?: SWRConfigInterface<DataProcessSupportTypeQuery, ClientError>) {\n return useSWR<DataProcessSupportTypeQuery, ClientError>(genKey<DataProcessSupportTypeQueryVariables>('DataProcessSupportType', variables), () => sdk.dataProcessSupportType(variables), config);\n },\n useDataProcessDetails(variables?: DataProcessDetailsQueryVariables, config?: SWRConfigInterface<DataProcessDetailsQuery, ClientError>) {\n return useSWR<DataProcessDetailsQuery, ClientError>(genKey<DataProcessDetailsQueryVariables>('DataProcessDetails', variables), () => sdk.dataProcessDetails(variables), config);\n },\n useCheckDataProcessTaskName(variables?: CheckDataProcessTaskNameQueryVariables, config?: SWRConfigInterface<CheckDataProcessTaskNameQuery, ClientError>) {\n return useSWR<CheckDataProcessTaskNameQuery, ClientError>(genKey<CheckDataProcessTaskNameQueryVariables>('CheckDataProcessTaskName', variables), () => sdk.checkDataProcessTaskName(variables), config);\n },\n useGetLogInfo(variables?: GetLogInfoQueryVariables, config?: SWRConfigInterface<GetLogInfoQuery, ClientError>) {\n return useSWR<GetLogInfoQuery, ClientError>(genKey<GetLogInfoQueryVariables>('GetLogInfo', variables), () => sdk.getLogInfo(variables), config);\n },\n useDataProcessLogInfoByFileName(variables?: DataProcessLogInfoByFileNameQueryVariables, config?: SWRConfigInterface<DataProcessLogInfoByFileNameQuery, ClientError>) {\n return useSWR<DataProcessLogInfoByFileNameQuery, ClientError>(genKey<DataProcessLogInfoByFileNameQueryVariables>('DataProcessLogInfoByFileName', variables), () => sdk.dataProcessLogInfoByFileName(variables), config);\n },\n useDataProcessRetry(variables?: DataProcessRetryQueryVariables, config?: SWRConfigInterface<DataProcessRetryQuery, ClientError>) {\n return useSWR<DataProcessRetryQuery, ClientError>(genKey<DataProcessRetryQueryVariables>('DataProcessRetry', variables), () => sdk.dataProcessRetry(variables), config);\n },\n useListDatasets(variables: ListDatasetsQueryVariables, config?: SWRConfigInterface<ListDatasetsQuery, ClientError>) {\n return useSWR<ListDatasetsQuery, ClientError>(genKey<ListDatasetsQueryVariables>('ListDatasets', variables), () => sdk.listDatasets(variables), config);\n },\n useGetDataset(variables: GetDatasetQueryVariables, config?: SWRConfigInterface<GetDatasetQuery, ClientError>) {\n return useSWR<GetDatasetQuery, ClientError>(genKey<GetDatasetQueryVariables>('GetDataset', variables), () => sdk.getDataset(variables), config);\n },\n useListDatasources(variables: ListDatasourcesQueryVariables, config?: SWRConfigInterface<ListDatasourcesQuery, ClientError>) {\n return useSWR<ListDatasourcesQuery, ClientError>(genKey<ListDatasourcesQueryVariables>('ListDatasources', variables), () => sdk.listDatasources(variables), config);\n },\n useGetDatasource(variables: GetDatasourceQueryVariables, config?: SWRConfigInterface<GetDatasourceQuery, ClientError>) {\n return useSWR<GetDatasourceQuery, ClientError>(genKey<GetDatasourceQueryVariables>('GetDatasource', variables), () => sdk.getDatasource(variables), config);\n },\n useCheckDatasource(variables: CheckDatasourceQueryVariables, config?: SWRConfigInterface<CheckDatasourceQuery, ClientError>) {\n return useSWR<CheckDatasourceQuery, ClientError>(genKey<CheckDatasourceQueryVariables>('CheckDatasource', variables), () => sdk.checkDatasource(variables), config);\n },\n useListEmbedders(variables: ListEmbeddersQueryVariables, config?: SWRConfigInterface<ListEmbeddersQuery, ClientError>) {\n return useSWR<ListEmbeddersQuery, ClientError>(genKey<ListEmbeddersQueryVariables>('ListEmbedders', variables), () => sdk.listEmbedders(variables), config);\n },\n useGetEmbedder(variables: GetEmbedderQueryVariables, config?: SWRConfigInterface<GetEmbedderQuery, ClientError>) {\n return useSWR<GetEmbedderQuery, ClientError>(genKey<GetEmbedderQueryVariables>('GetEmbedder', variables), () => sdk.getEmbedder(variables), config);\n },\n useListKnowledgeBases(variables: ListKnowledgeBasesQueryVariables, config?: SWRConfigInterface<ListKnowledgeBasesQuery, ClientError>) {\n return useSWR<ListKnowledgeBasesQuery, ClientError>(genKey<ListKnowledgeBasesQueryVariables>('ListKnowledgeBases', variables), () => sdk.listKnowledgeBases(variables), config);\n },\n useGetKnowledgeBase(variables: GetKnowledgeBaseQueryVariables, config?: SWRConfigInterface<GetKnowledgeBaseQuery, ClientError>) {\n return useSWR<GetKnowledgeBaseQuery, ClientError>(genKey<GetKnowledgeBaseQueryVariables>('GetKnowledgeBase', variables), () => sdk.getKnowledgeBase(variables), config);\n },\n useListLlMs(variables: ListLlMsQueryVariables, config?: SWRConfigInterface<ListLlMsQuery, ClientError>) {\n return useSWR<ListLlMsQuery, ClientError>(genKey<ListLlMsQueryVariables>('ListLlMs', variables), () => sdk.listLLMs(variables), config);\n },\n useGetLlm(variables: GetLlmQueryVariables, config?: SWRConfigInterface<GetLlmQuery, ClientError>) {\n return useSWR<GetLlmQuery, ClientError>(genKey<GetLlmQueryVariables>('GetLlm', variables), () => sdk.getLLM(variables), config);\n },\n useListModels(variables: ListModelsQueryVariables, config?: SWRConfigInterface<ListModelsQuery, ClientError>) {\n return useSWR<ListModelsQuery, ClientError>(genKey<ListModelsQueryVariables>('ListModels', variables), () => sdk.listModels(variables), config);\n },\n useGetModel(variables: GetModelQueryVariables, config?: SWRConfigInterface<GetModelQuery, ClientError>) {\n return useSWR<GetModelQuery, ClientError>(genKey<GetModelQueryVariables>('GetModel', variables), () => sdk.getModel(variables), config);\n },\n useGetModelService(variables: GetModelServiceQueryVariables, config?: SWRConfigInterface<GetModelServiceQuery, ClientError>) {\n return useSWR<GetModelServiceQuery, ClientError>(genKey<GetModelServiceQueryVariables>('GetModelService', variables), () => sdk.getModelService(variables), config);\n },\n useListModelServices(variables?: ListModelServicesQueryVariables, config?: SWRConfigInterface<ListModelServicesQuery, ClientError>) {\n return useSWR<ListModelServicesQuery, ClientError>(genKey<ListModelServicesQueryVariables>('ListModelServices', variables), () => sdk.listModelServices(variables), config);\n },\n useCheckModelService(variables: CheckModelServiceQueryVariables, config?: SWRConfigInterface<CheckModelServiceQuery, ClientError>) {\n return useSWR<CheckModelServiceQuery, ClientError>(genKey<CheckModelServiceQueryVariables>('CheckModelService', variables), () => sdk.checkModelService(variables), config);\n },\n useListRayClusters(variables: ListRayClustersQueryVariables, config?: SWRConfigInterface<ListRayClustersQuery, ClientError>) {\n return useSWR<ListRayClustersQuery, ClientError>(genKey<ListRayClustersQueryVariables>('ListRayClusters', variables), () => sdk.listRayClusters(variables), config);\n },\n useGetVersionedDataset(variables: GetVersionedDatasetQueryVariables, config?: SWRConfigInterface<GetVersionedDatasetQuery, ClientError>) {\n return useSWR<GetVersionedDatasetQuery, ClientError>(genKey<GetVersionedDatasetQueryVariables>('GetVersionedDataset', variables), () => sdk.getVersionedDataset(variables), config);\n },\n useListVersionedDatasets(variables: ListVersionedDatasetsQueryVariables, config?: SWRConfigInterface<ListVersionedDatasetsQuery, ClientError>) {\n return useSWR<ListVersionedDatasetsQuery, ClientError>(genKey<ListVersionedDatasetsQueryVariables>('ListVersionedDatasets', variables), () => sdk.listVersionedDatasets(variables), config);\n },\n useListWorkers(variables: ListWorkersQueryVariables, config?: SWRConfigInterface<ListWorkersQuery, ClientError>) {\n return useSWR<ListWorkersQuery, ClientError>(genKey<ListWorkersQueryVariables>('ListWorkers', variables), () => sdk.listWorkers(variables), config);\n },\n useGetWorker(variables: GetWorkerQueryVariables, config?: SWRConfigInterface<GetWorkerQuery, ClientError>) {\n return useSWR<GetWorkerQuery, ClientError>(genKey<GetWorkerQueryVariables>('GetWorker', variables), () => sdk.getWorker(variables), config);\n }\n };\n}\nexport type SdkWithHooks = ReturnType<typeof getSdkWithHooks>;","import { GraphQLClient } from \"graphql-request\";\nimport type {\n RequestConfig,\n RequestMiddleware,\n Response,\n} from \"graphql-request/src/types\";\nimport type { RequestInit } from \"graphql-request/src/types.dom\";\nimport qs from \"query-string\";\nimport { useMemo } from \"react\";\nimport { errorsHandler } from \"./errors\";\nimport { getSdk, getSdkWithHooks } from \"./sdk\";\n\nexport * from \"graphql-request\";\nexport * from \"./errors\";\nexport * from \"./sdk\";\n\nconst AUTH_DATA = \"authData\";\nconst getAuthData = () => {\n try {\n const authData = JSON.parse(window.localStorage.getItem(AUTH_DATA) || \"{}\");\n return authData;\n } catch (error) {\n console.warn(\"getAuthData failed\", error);\n return {};\n }\n};\n\nexport interface RequestOptions extends RequestInit {\n url: string;\n}\n\nexport const requestMiddleware: RequestMiddleware<any> = (request) => {\n const { url, operationName, ...otherRequest } = request;\n const [host, search] = url.split(\"?\");\n const query = qs.parse(search);\n // query 中增加操作名,便于定位问题\n if (operationName) {\n query.o = operationName;\n }\n const authData = getAuthData();\n const { token_type, id_token } = authData.token || {};\n const Authorization = token_type && id_token && `${token_type} ${id_token}`;\n return {\n url: `${host}?${qs.stringify(query)}`,\n operationName,\n credentials: \"include\",\n ...otherRequest,\n headers: Authorization\n ? { ...request.headers, Authorization }\n : { ...request.headers },\n };\n};\n\nexport const responseMiddleware = (response: Response<unknown> | Error) => {\n const errors: Error[] = response.errors || response.response?.errors;\n if (errors) {\n errorsHandler(errors);\n }\n};\n\nexport const client = new GraphQLClient(\"/kubeagi-apis/bff\", {\n requestMiddleware,\n responseMiddleware,\n});\nexport const sdk = getSdkWithHooks(client);\n\n/** 初始化 sdk 的配置项 */\ninterface SdkBaseOptions {\n /** api 地址,默认为 `'/bff'` */\n url?: string;\n /** 是否返回 hooks 相关函数,默认为 `false` */\n withHooks?: boolean;\n /** 请求配置项 */\n requestConfig?: RequestConfig;\n}\n\nexport type SdkOptions = Pick<SdkBaseOptions, \"url\" | \"requestConfig\">;\n\n/**\n * 初始化 GraphQL client 实例\n *\n * @param {string} url api 地址,默认为 `'/bff'`\n * @param {RequestConfig} [requestConfig] 请求配置项\n * @return {GraphQLClient} GraphQL client 实例\n */\nexport const initGraphQLClient = (\n url?: string,\n requestConfig?: RequestConfig,\n) => {\n if (!requestConfig) {\n requestConfig = {};\n }\n if (!requestConfig.requestMiddleware) {\n requestConfig.requestMiddleware = requestMiddleware;\n } else {\n requestConfig.requestMiddleware = async (request) => {\n const newReq = await requestConfig!.requestMiddleware!(request);\n return requestMiddleware(newReq);\n };\n }\n if (!requestConfig.responseMiddleware) {\n requestConfig.responseMiddleware = responseMiddleware;\n }\n return new GraphQLClient(url || endpoint, requestConfig);\n};\n\nconst initSdkBase = (options: SdkBaseOptions = {}) => {\n const { url, withHooks, requestConfig } = options;\n\n const _client = initGraphQLClient(url, requestConfig);\n const _sdk = withHooks ? getSdkWithHooks(_client) : getSdk(_client);\n return _sdk;\n};\n\n/**\n * 初始化 sdk 实例\n *\n * @param {SdkOptions} options 配置项\n */\nexport const initSdk = (options: SdkOptions = {}) => {\n const { url, requestConfig } = options;\n const _sdk = initSdkBase({ withHooks: false, url, requestConfig });\n return _sdk;\n};\n\n/**\n * 初始化 sdk 实例 (包含 hooks)\n *\n * @param {SdkOptions} options 配置项\n */\nexport const initSdkWithHooks = (options: SdkOptions = {}) => {\n const { url, requestConfig } = options;\n const _sdk = initSdkBase({ withHooks: true, url, requestConfig });\n return _sdk as ReturnType<typeof getSdkWithHooks>;\n};\n\n/**\n * hook 的方式获取 sdk 实例\n *\n * @param {SdkOptions} options 配置项\n */\nexport const useSdk = (options: SdkOptions = {}) => {\n const { url, requestConfig } = options;\n return useMemo(\n () => initSdkWithHooks({ url, requestConfig }),\n [url, requestConfig],\n );\n};\n"],"names":["root","factory","exports","module","define","amd","self","leafPrototypes","getProto","global","this","__self__","F","fetch","DOMException","prototype","support","Symbol","Blob","e","viewClasses","isArrayBufferView","ArrayBuffer","isView","obj","indexOf","Object","toString","call","normalizeName","name","String","test","TypeError","toLowerCase","normalizeValue","value","iteratorFor","items","iterator","next","shift","done","undefined","Headers","headers","map","forEach","append","Array","isArray","header","getOwnPropertyNames","consumed","body","bodyUsed","Promise","reject","fileReaderReady","reader","resolve","onload","result","onerror","error","readBlobAsArrayBuffer","blob","FileReader","promise","readAsArrayBuffer","bufferClone","buf","slice","view","Uint8Array","byteLength","set","buffer","Body","_initBody","_bodyInit","_bodyText","isPrototypeOf","_bodyBlob","FormData","_bodyFormData","URLSearchParams","DataView","_bodyArrayBuffer","get","type","rejected","Error","arrayBuffer","then","text","readAsText","chars","length","i","fromCharCode","join","readArrayBufferAsText","formData","decode","json","JSON","parse","oldValue","has","hasOwnProperty","callback","thisArg","keys","push","values","entries","methods","Request","input","options","method","upcased","url","credentials","mode","signal","toUpperCase","referrer","form","trim","split","bytes","replace","decodeURIComponent","Response","bodyInit","status","ok","statusText","clone","response","redirectStatuses","redirect","RangeError","location","err","message","stack","create","constructor","init","request","aborted","xhr","XMLHttpRequest","abortXhr","abort","rawHeaders","getAllResponseHeaders","line","parts","key","responseURL","responseText","ontimeout","onabort","open","withCredentials","responseType","setRequestHeader","addEventListener","onreadystatechange","readyState","removeEventListener","send","polyfill","defineProperty","ponyfill","ctx","require","k","is","a","b","l","useState","m","useEffect","n","useLayoutEffect","p","useDebugValue","r","getSnapshot","d","f","u","window","document","createElement","inst","c","g","useSyncExternalStore","React","arr","len","arr2","__esModule","arrayLikeToArray","ReferenceError","asyncGeneratorStep","gen","_next","_throw","arg","info","fn","args","arguments","apply","instance","Constructor","setPrototypeOf","isNativeReflectConstruct","_construct","Parent","Class","Reflect","construct","bind","Function","toPropertyKey","_defineProperties","target","props","descriptor","enumerable","configurable","writable","protoProps","staticProps","unsupportedIterableToArray","o","allowArrayLike","it","s","_e","normalCompletion","didErr","step","_e2","getPrototypeOf","possibleConstructorReturn","Derived","hasNativeReflectConstruct","Super","NewTarget","_getPrototypeOf","__proto__","subClass","superClass","sham","Proxy","Boolean","valueOf","iter","from","t","ownKeys","getOwnPropertySymbols","filter","getOwnPropertyDescriptor","getOwnPropertyDescriptors","defineProperties","objectWithoutPropertiesLoose","source","excluded","sourceSymbolKeys","propertyIsEnumerable","sourceKeys","_typeof","assertThisInitialized","_regeneratorRuntime","asyncIterator","toStringTag","wrap","Generator","Context","makeInvokeMethod","tryCatch","h","y","GeneratorFunction","GeneratorFunctionPrototype","v","defineIteratorMethods","_invoke","AsyncIterator","invoke","__await","callInvokeWithMethodAndArg","delegate","maybeInvokeDelegate","sent","_sent","dispatchException","abrupt","resultName","nextLoc","pushTryEntry","tryLoc","catchLoc","finallyLoc","afterLoc","tryEntries","resetTryEntry","completion","reset","isNaN","displayName","isGeneratorFunction","mark","awrap","async","reverse","pop","prev","charAt","stop","rval","handle","complete","finish","delegateYield","_setPrototypeOf","arrayWithHoles","iterableToArrayLimit","nonIterableRest","strings","raw","freeze","arrayWithoutHoles","iterableToArray","nonIterableSpread","hint","prim","toPrimitive","res","Number","minLen","isNativeFunction","_wrapNativeSuper","_cache","Map","Wrapper","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","__webpack_modules__","getter","ns","def","current","definition","prop","defaultJsonSerializer","parseRequestArgs","documentOrOptions","variables","requestHeaders","parseRawRequestArgs","queryOrOptions","query","parseRequestExtendedArgs","urlOrOptions","_len","variablesAndRequestHeaders","_key","parseRawRequestExtendedArgs","_len2","_key2","isObjectLike","invariant","condition","LineRegExp","getLocation","position","_step","lastLineStart","_iterator","_createForOfIteratorHelper","matchAll","match","index","column","printLocation","printSourceLocation","start","sourceLocation","firstLineColumnOffset","locationOffset","padStart","lineIndex","lineOffset","lineNum","columnOffset","columnNum","locationStr","concat","lines","locationLine","subLineIndex","Math","floor","subLineColumnNum","subLines","printPrefixedLines","_toConsumableArray","subLine","existingLines","_ref","_ref2","_slicedToArray","padLen","max","_ref3","_ref5","_ref6","prefix","toNormalizedOptions","firstArg","nodes","positions","path","originalError","extensions","GraphQLError","_Error","_Symbol$toStringTag","_inherits","_super","_createSuper","_this","_this$nodes","_nodeLocations$","_classCallCheck","rawArgs","_toNormalizedOptions","undefinedIfEmpty","nodeLocations","node","loc","locations","pos","originalExtensions","_assertThisInitialized","captureStackTrace","_createClass","output","_step2","_iterator2","formattedError","array","syntaxError","description","OperationTypeNode","DirectiveLocation","Kind","TokenKind","Location","startToken","endToken","end","Token","_Symbol$toStringTag2","kind","QueryDocumentKeys","Name","Document","OperationDefinition","VariableDefinition","Variable","SelectionSet","Field","Argument","FragmentSpread","InlineFragment","FragmentDefinition","IntValue","FloatValue","StringValue","BooleanValue","NullValue","EnumValue","ListValue","ObjectValue","ObjectField","Directive","NamedType","ListType","NonNullType","SchemaDefinition","OperationTypeDefinition","ScalarTypeDefinition","ObjectTypeDefinition","FieldDefinition","InputValueDefinition","InterfaceTypeDefinition","UnionTypeDefinition","EnumTypeDefinition","EnumValueDefinition","InputObjectTypeDefinition","DirectiveDefinition","SchemaExtension","ScalarTypeExtension","ObjectTypeExtension","InterfaceTypeExtension","UnionTypeExtension","EnumTypeExtension","InputObjectTypeExtension","kindValues","Set","isNode","maybeNode","maybeKind","isWhiteSpace","code","isDigit","isLetter","isNameStart","isNameContinue","dedentBlockStringLines","_firstNonEmptyLine2","commonIndent","MAX_SAFE_INTEGER","firstNonEmptyLine","lastNonEmptyLine","_firstNonEmptyLine","indent","leadingWhitespace","str","charCodeAt","Lexer","startOfFileToken","SOF","lastToken","token","lineStart","lookahead","EOF","nextToken","readNextToken","COMMENT","isUnicodeScalarValue","isSupplementaryCodePoint","isLeadingSurrogate","isTrailingSurrogate","printCodePointAt","lexer","codePointAt","char","fromCodePoint","createToken","col","bodyLength","readComment","BANG","DOLLAR","AMP","PAREN_L","PAREN_R","SPREAD","COLON","EQUALS","AT","BRACKET_L","BRACKET_R","BRACE_L","PIPE","BRACE_R","readBlockString","readString","readNumber","readName","firstCode","isFloat","readDigits","FLOAT","INT","chunkStart","STRING","escape","readEscapedUnicodeVariableWidth","readEscapedUnicodeFixedWidth","readEscapedCharacter","size","point","readHexDigit","read16BitHexCode","trailingCode","currentLine","blockLines","BLOCK_STRING","NAME","devAssert","inspect","formatValue","seenValues","stringify","previouslySeenValues","includes","toJSON","isJSONable","jsonValue","min","remaining","formatArray","object","tag","getObjectTag","properties","formatObject","formatObjectValue","instanceOf","globalThis","process","env","NODE_ENV","_value$constructor","className","stringifiedValue","Source","isSource","Parser","parseDocument","sourceObj","_lexer","_options","_tokenCounter","expectToken","DOCUMENT","definitions","many","parseDefinition","peek","parseOperationDefinition","hasDescription","peekDescription","keywordToken","parseSchemaDefinition","parseScalarTypeDefinition","parseObjectTypeDefinition","parseInterfaceTypeDefinition","parseUnionTypeDefinition","parseEnumTypeDefinition","parseInputObjectTypeDefinition","parseDirectiveDefinition","parseFragmentDefinition","parseTypeSystemExtension","unexpected","OPERATION_DEFINITION","operation","QUERY","variableDefinitions","directives","selectionSet","parseSelectionSet","parseOperationType","parseName","parseVariableDefinitions","parseDirectives","operationToken","MUTATION","SUBSCRIPTION","optionalMany","parseVariableDefinition","VARIABLE_DEFINITION","variable","parseVariable","parseTypeReference","defaultValue","expectOptionalToken","parseConstValueLiteral","parseConstDirectives","VARIABLE","SELECTION_SET","selections","parseSelection","parseFragment","parseField","alias","nameOrAlias","FIELD","parseArguments","isConst","item","parseConstArgument","parseArgument","ARGUMENT","parseValueLiteral","hasTypeCondition","expectOptionalKeyword","FRAGMENT_SPREAD","parseFragmentName","INLINE_FRAGMENT","typeCondition","parseNamedType","expectKeyword","allowLegacyFragmentVariables","FRAGMENT_DEFINITION","parseList","parseObject","advanceLexer","parseStringLiteral","BOOLEAN","NULL","ENUM","varName","block","LIST","any","_this2","OBJECT","fields","parseObjectField","OBJECT_FIELD","parseDirective","DIRECTIVE","innerType","LIST_TYPE","NON_NULL_TYPE","NAMED_TYPE","parseDescription","operationTypes","parseOperationTypeDefinition","SCHEMA_DEFINITION","OPERATION_TYPE_DEFINITION","SCALAR_TYPE_DEFINITION","interfaces","parseImplementsInterfaces","parseFieldsDefinition","OBJECT_TYPE_DEFINITION","delimitedMany","parseFieldDefinition","parseArgumentDefs","FIELD_DEFINITION","parseInputValueDef","INPUT_VALUE_DEFINITION","INTERFACE_TYPE_DEFINITION","types","parseUnionMemberTypes","UNION_TYPE_DEFINITION","parseEnumValuesDefinition","ENUM_TYPE_DEFINITION","parseEnumValueDefinition","parseEnumValueName","ENUM_VALUE_DEFINITION","getTokenDesc","parseInputFieldsDefinition","INPUT_OBJECT_TYPE_DEFINITION","parseSchemaExtension","parseScalarTypeExtension","parseObjectTypeExtension","parseInterfaceTypeExtension","parseUnionTypeExtension","parseEnumTypeExtension","parseInputObjectTypeExtension","SCHEMA_EXTENSION","SCALAR_TYPE_EXTENSION","OBJECT_TYPE_EXTENSION","INTERFACE_TYPE_EXTENSION","UNION_TYPE_EXTENSION","ENUM_TYPE_EXTENSION","INPUT_OBJECT_TYPE_EXTENSION","repeatable","parseDirectiveLocations","DIRECTIVE_DEFINITION","parseDirectiveLocation","noLocation","getTokenKindDesc","atToken","openKind","parseFn","closeKind","delimiterKind","maxTokens","advance","isPunctuatorTokenKind","escapedRegExp","escapedReplacer","escapeSequences","BREAK","getEnterLeaveForKind","visitor","kindVisitor","enter","leave","print","ast","visitorKeys","enterLeaveMap","_i","_Object$values","inArray","edits","parent","ancestors","isLeaving","isEdited","editOffset","_step$value","editKey","editValue","arrayKey","splice","_step2$value","_node$kind","_enterLeaveMap$get","_enterLeaveMap$get2","visitFn","visit","printDocASTReducer","varDefs","argsLine","_ref4","_ref7","_ref8","_ref9","_ref10","escapedValue","isSingleLine","forceLeadingNewLine","every","hasTrailingTripleQuotes","endsWith","hasTrailingQuote","hasTrailingSlash","forceTrailingNewline","printAsMultipleLines","minimize","skipLeadingNewLine","printBlockString","_ref11","_ref12","_ref13","_ref14","_ref15","_ref16","_ref17","_ref18","_ref19","_ref20","_ref21","_ref22","_ref23","_ref24","hasMultilineItems","_ref25","_ref26","_ref27","_ref28","_ref29","_ref30","_ref31","_ref32","_ref33","_ref34","_ref35","_ref36","_ref37","_ref38","maybeArray","_maybeArray$filter$jo","separator","x","maybeString","_maybeArray$some","some","extractOperationName","_operationDefinitions","operationName","operationDefinitions","resolveRequestDocument","parsedDocument","ClientError","extractMessage","_response$errors$0$me","_response$errors","errors","PING","PONG","SUBSCRIBE","COMPLETE","GraphQLWebSocketMessage","payload","id","_type","_payload","_id","data","_JSON$parse","GraphQLWebSocketClient","socket","onInit","onAcknowledged","onPing","onPong","socketState","acknowledged","lastRequestId","subscriptions","_asyncToGenerator","_callee","_context","t0","t1","ConnectionInit","t2","t3","t4","_x","console","parseMessage","warn","Pong","_this$socketState$sub","subscriber","_objectSpread","close","subscriptionId","Complete","_this3","rawSubscribe","_this4","subscribe","_resolveRequestDocume","makeSubscribe","Ping","PROTOCOL","resolveHeaders","oHeaders","CrossFetch","HeadersInstanceToPlainObject","cleanQuery","buildRequestConfig","params","params_","search","encodeURIComponent","jsonSerializer","reduce","acc","currentQuery","createHttpMethodFetcher","fetchOptions","middleware","queryParams","_fetchOptions$jsonSer","urlResolved","initResolved","urlNew","initNew","createRequestBody","_objectWithoutProperties","_excluded","GraphQLClient","requestConfig","rawRequest","_callee2","rawRequestOptions","_this$requestConfig","_this$requestConfig$f","_this$requestConfig$m","requestMiddleware","responseMiddleware","_args2","_context2","crossFetch","_excluded2","makeRequest","callOrIdentity","_request","_callee3","requestOptions","_this$requestConfig2","_this$requestConfig2$","_this$requestConfig2$2","_resolveRequestDocume2","_args3","_context3","_excluded3","_x2","documentsOrOptions","_this$requestConfig$f2","batchRequestOptions","documents","parseBatchRequestArgs","_this$requestConfig3","_excluded4","queries","_defineProperty","_callee4","_params$method","_fetchOptions$jsonSer2","fetcher","isBatchingQuery","successfullyReceivedData","successfullyPassedErrorPolicy","rest","dataEnvelope","errorResult","_context4","getResult","errorPolicy","_excluded5","_x3","_callee5","_len3","_key3","client","_args5","_context5","_x4","_x5","_request2","_callee8","_len4","_key4","_args8","_context8","batchRequests","_callee6","_len5","_key5","_args6","_context6","parseBatchRequestsArgsExtended","jsonSerializer_","_callee7","contentType","_context7","startsWith","_x6","_x7","gql","chunks","_len6","_key6","chunk","singleMatcher","RegExp","multiMatcher","decodeComponents","components","_unused","left","right","_unused2","tokens","decodeUriComponent","encodedURI","_unused4","replaceMap","exec","_unused3","_entries","customDecodeURIComponent","splitOnFirst","string","separatorIndex","includeKeys","predicate","encodeFragmentIdentifier","validateArrayFormatSeparator","encode","strict","decodeComponent","keysSorter","sort","removeHash","hashStart","parseValue","parseNumbers","parseBooleans","extract","queryStart","arrayFormat","arrayFormatSeparator","formatter","accumulator","isEncodedArray","newValue","arrayValue","flat","parserForArrayFormat","returnValue","parameter","parameter_","_splitOnFirst","_splitOnFirst2","_Object$entries","_Object$entries$_i","_i2","_Object$entries2","_Object$entries2$_i","key2","value2","shouldFilter","skipNull","isNullOrUndefined","skipEmptyString","keyValueSep","encoderForArrayFormat","objectCopy","_i3","_Object$entries3","_Object$entries3$_i","parseUrl","_url_$split$","_url_","_splitOnFirst3","_splitOnFirst4","url_","hash","parseFragmentIdentifier","fragmentIdentifier","stringifyUrl","queryFromUrl","queryString","getHash","urlObjectForFragmentEncode","URL","pick","_parseUrl","exclude","InvalidTokenModal","antd","logout","href","onInvalidTokenModalCancel","_InvalidTokenModal","destroy","TenxUiMaterials","VERBS_MAP","delete","update","patch","list","watch","errorsHandler","gqlErrors","_e$extensions","Modal","okText","content","onOk","onCancel","_error$extensions","exception","details","verb","notification","detail","showForbiddenNotification","__assign","assign","SuppressedError","docCache","fragmentSourceMap","printFragmentWarnings","experimentalFragmentVariables","normalize","processFragments","seenKeys","fragmentDefinition","fragmentName","sourceKey","substring","sourceKeySet","add","cacheKey","parsed","doc","workSet","stripLoc","literals","gql_1","extras","clear","resetCaches","disableFragmentWarnings","enableExperimentalFragmentVariables","disableExperimentalFragmentVariables","noop","UNDEFINED","isUndefined","isFunction","mergeObjects","isPromiseLike","table","WeakMap","counter","stableHash","isDate","Date","SWRGlobalState","EMPTY_CACHE","INITIAL_CACHE","STR_UNDEFINED","isWindowDefined","isDocumentDefined","createCacheHelper","cache","state","online","onWindowEvent","offWindowEvent","preset","isOnline","isVisible","visibilityState","defaultConfigOptions","initFocus","initReconnect","onOnline","onOffline","IS_REACT_LEGACY","IS_SERVER","rAF","setTimeout","useIsomorphicLayoutEffect","navigatorConnection","navigator","connection","slowConnection","effectiveType","saveData","serialize","__timestamp","getTimestamp","events","internalMutate","_internalMutate","_data","_opts","populateCache","rollbackOnErrorOption","optimisticData","revalidate","rollbackOnError","throwOnError","keyFilter","matchedKeys","mutateByKey","_mutateByKey","_k","_serialize5","_serialize6","_createCacheHelper","_createCacheHelper2","_SWRGlobalState$get5","_SWRGlobalState$get6","EVENT_REVALIDATORS","FETCH","PRELOAD","startRevalidate","beforeMutationTs","hasOptimisticData","displayedData","currentData","committedData","populateCachedData","revalidators","_c","all","revalidateAllKeys","initCache","provider","opts","mutate","unmount","subs","setter","initProvider","releaseFocus","releaseReconnect","_initCache","_initCache2","defaultConfig","onLoadingSlow","onSuccess","onError","onErrorRetry","_","__","config","maxRetryCount","errorRetryCount","currentRetryCount","retryCount","timeout","random","errorRetryInterval","onDiscarded","revalidateOnFocus","revalidateOnReconnect","revalidateIfStale","shouldRetryOnError","focusThrottleInterval","dedupingInterval","loadingTimeout","compare","newData","isPaused","fallback","mergeConfigs","u1","use","f1","u2","f2","SWRConfigContext","createContext","INFINITE_PREFIX","enableDevtools","__SWR_DEVTOOLS_USE__","useSWRConfig","useContext","BUILT_IN_MIDDLEWARE","useSWRNext","key_","fetcher_","_serialize3","_serialize4","_SWRGlobalState$get3","_SWRGlobalState$get4","req","__SWR_DEVTOOLS_REACT__","hook","ReactExports","reason","WITH_DEDUPE","dedupe","useSWR","parentConfig","isFunctionalConfig","useMemo","extendedConfig","cacheContextRef","useRef","cacheContext","Provider","suspense","fallbackData","revalidateOnMount","refreshInterval","refreshWhenHidden","refreshWhenOffline","keepPreviousData","_SWRGlobalState$get","_SWRGlobalState$get2","_serialize","_serialize2","fnArg","initialMountedRef","unmountedRef","keyRef","fetcherRef","configRef","getConfig","isActive","getCache","setCache","subscribeCache","getInitialCache","stateDependencies","isEqual","returnedData","shouldStartRequest","getSelectedCache","snapshot","isValidating","isLoading","cachedData","initialData","clientSnapshot","serverSnapshot","memorizedSnapshot","newSnapshot","cached","useCallback","isInitialMount","hasRevalidator","laggyDataRef","shouldDoInitialRevalidation","defaultValidatingState","revalidateOpts","currentFetcher","startAt","loading","shouldStartNewRequest","callbackSafeguard","finalState","finishRequestAndUpdateState","cleanupState","initialState","_FETCH$key","mutationInfo","cacheData","currentConfig","requestInfo","revalidateEvents","boundMutate","softRevalidate","nextFocusRevalidatedAt","unsubEvents","callbacks","keyedRevalidators","subscribeCallback","now","timer","interval","execute","clearTimeout","fallbackConfig","_normalize","_normalize2","_config","localStorage","getItem","_error$response","__useSWR","hasObjectData","CreateApplicationDocument","_templateObject","_taggedTemplateLiteral","UpdateApplicationDocument","_templateObject2","DeleteApplicationDocument","_templateObject3","UpdateApplicationConfigDocument","_templateObject4","GetApplicationDocument","_templateObject5","ListApplicationsDocument","_templateObject6","AllDataProcessListByPageDocument","_templateObject7","AllDataProcessListByCountDocument","_templateObject8","DataProcessSupportTypeDocument","_templateObject9","DataProcessDetailsDocument","_templateObject10","CheckDataProcessTaskNameDocument","_templateObject11","GetLogInfoDocument","_templateObject12","DataProcessLogInfoByFileNameDocument","_templateObject13","DataProcessRetryDocument","_templateObject14","CreateDataProcessTaskDocument","_templateObject15","DeleteDataProcessTaskDocument","_templateObject16","ListDatasetsDocument","_templateObject17","GetDatasetDocument","_templateObject18","CreateDatasetDocument","_templateObject19","UpdateDatasetDocument","_templateObject20","DeleteDatasetsDocument","_templateObject21","CreateDatasourceDocument","_templateObject22","UpdateDatasourceDocument","_templateObject23","DeleteDatasourcesDocument","_templateObject24","ListDatasourcesDocument","_templateObject25","GetDatasourceDocument","_templateObject26","CheckDatasourceDocument","_templateObject27","CreateEmbedderDocument","_templateObject28","UpdateEmbedderDocument","_templateObject29","DeleteEmbeddersDocument","_templateObject30","ListEmbeddersDocument","_templateObject31","GetEmbedderDocument","_templateObject32","ListKnowledgeBasesDocument","_templateObject33","GetKnowledgeBaseDocument","_templateObject34","CreateKnowledgeBaseDocument","_templateObject35","UpdateKnowledgeBaseDocument","_templateObject36","DeleteKnowledgeBaseDocument","_templateObject37","ListLlMsDocument","_templateObject38","GetLlmDocument","_templateObject39","ListModelsDocument","_templateObject40","GetModelDocument","_templateObject41","CreateModelDocument","_templateObject42","UpdateModelDocument","_templateObject43","DeleteModelsDocument","_templateObject44","CreateModelServiceDocument","_templateObject45","UpdateModelServiceDocument","_templateObject46","DeleteModelServicesDocument","_templateObject47","GetModelServiceDocument","_templateObject48","ListModelServicesDocument","_templateObject49","CheckModelServiceDocument","_templateObject50","ListRayClustersDocument","_templateObject51","CreateVersionedDatasetDocument","_templateObject52","UpdateVersionedDatasetDocument","_templateObject53","DeleteVersionedDatasetsDocument","_templateObject54","GetVersionedDatasetDocument","_templateObject55","ListVersionedDatasetsDocument","_templateObject56","ListWorkersDocument","_templateObject57","GetWorkerDocument","_templateObject58","CreateWorkerDocument","_templateObject59","UpdateWorkerDocument","_templateObject60","DeleteWorkersDocument","_templateObject61","defaultWrapper","action","_operationName","_operationType","getSdk","withWrapper","createApplication","wrappedRequestHeaders","updateApplication","deleteApplication","updateApplicationConfig","getApplication","listApplications","allDataProcessListByPage","allDataProcessListByCount","dataProcessSupportType","dataProcessDetails","checkDataProcessTaskName","getLogInfo","dataProcessLogInfoByFileName","dataProcessRetry","createDataProcessTask","deleteDataProcessTask","listDatasets","getDataset","createDataset","updateDataset","deleteDatasets","createDatasource","updateDatasource","deleteDatasources","listDatasources","getDatasource","checkDatasource","createEmbedder","updateEmbedder","deleteEmbedders","listEmbedders","getEmbedder","listKnowledgeBases","getKnowledgeBase","createKnowledgeBase","updateKnowledgeBase","deleteKnowledgeBase","listLLMs","getLLM","listModels","getModel","createModel","updateModel","deleteModels","createModelService","updateModelService","deleteModelServices","getModelService","listModelServices","checkModelService","listRayClusters","createVersionedDataset","updateVersionedDataset","deleteVersionedDatasets","getVersionedDataset","listVersionedDatasets","listWorkers","getWorker","createWorker","updateWorker","deleteWorkers","getSdkWithHooks","sdk","genKey","useGetApplication","useListApplications","useAllDataProcessListByPage","useAllDataProcessListByCount","useDataProcessSupportType","useDataProcessDetails","useCheckDataProcessTaskName","useGetLogInfo","useDataProcessLogInfoByFileName","useDataProcessRetry","useListDatasets","useGetDataset","useListDatasources","useGetDatasource","useCheckDatasource","useListEmbedders","useGetEmbedder","useListKnowledgeBases","useGetKnowledgeBase","useListLlMs","useGetLlm","useListModels","useGetModel","useGetModelService","useListModelServices","useCheckModelService","useListRayClusters","useGetVersionedDataset","useListVersionedDatasets","useListWorkers","useGetWorker","otherRequest","_url$split","_url$split2","host","qs","getAuthData","token_type","id_token","Authorization","_response$response","initGraphQLClient","newReq","endpoint","initSdkBase","withHooks","_client","_sdk","initSdk","initSdkWithHooks","useSdk"],"sourceRoot":""}
1
+ {"version":3,"file":"index.min.js","mappings":"CAAA,SAA2CA,EAAMC,GAC1B,iBAAZC,SAA0C,iBAAXC,OACxCA,OAAOD,QAAUD,IACQ,mBAAXG,QAAyBA,OAAOC,IAC9CD,OAAO,GAAIH,GACe,iBAAZC,QACdA,QAAuB,cAAID,IAE3BD,EAAoB,cAAIC,GACzB,CATD,CASGK,MAAM,WACT,O,eCTIC,EADAC,E,qBCAJ,IAAIC,EAAyB,oBAATH,KAAuBA,KAAOI,KAC9CC,EAAY,WAChB,SAASC,IACTF,KAAKG,OAAQ,EACbH,KAAKI,aAAeL,EAAOK,YAC3B,CAEA,OADAF,EAAEG,UAAYN,EACP,IAAIG,CACX,CAPgB,IAQhB,SAAUN,IAEQ,SAAUJ,GAE1B,IAAIc,EACY,oBAAqBV,EADjCU,EAEQ,WAAYV,GAAQ,aAAcW,OAF1CD,EAIA,eAAgBV,GAChB,SAAUA,GACT,WACC,IAEE,OADA,IAAIY,MACG,CAGT,CAFE,MAAOC,GACP,OAAO,CACT,CACF,CAPC,GANDH,EAcQ,aAAcV,EAdtBU,EAeW,gBAAiBV,EAOhC,GAAIU,EACF,IAAII,EAAc,CAChB,qBACA,sBACA,6BACA,sBACA,uBACA,sBACA,uBACA,wBACA,yBAGEC,EACFC,YAAYC,QACZ,SAASC,GACP,OAAOA,GAAOJ,EAAYK,QAAQC,OAAOX,UAAUY,SAASC,KAAKJ,KAAS,CAC5E,EAGJ,SAASK,EAAcC,GAIrB,GAHoB,iBAATA,IACTA,EAAOC,OAA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MACA,MACA,UACA,MACA,MACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,GACA,GACA,MACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,OACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,WCrKWC,GAAQhwB,OAAO4T,OAAO,CAAC,GAgU7B,SAASqc,GAAqBC,EAAS9T,GAC5C,IAAM+T,EAAcD,EAAQ9T,GAE5B,MAA2B,WAAvBpM,EAAOmgB,GAEFA,EACyB,mBAAhBA,EAET,CACLC,MAAOD,EACPE,WAAOpvB,GAIJ,CACLmvB,MAAOF,EAAQE,MACfC,MAAOH,EAAQG,MAEnB,CCnVO,SAASC,GAAMC,GACpB,ODgFK,SAAejyB,EAAM4xB,GAG1B,IAHoE,IAAjCM,EAAWtkB,UAAA1H,OAAA,QAAAvD,IAAAiL,UAAA,GAAAA,UAAA,GAAGmQ,EAC3CoU,EAAgB,IAAIhc,IAE1Bic,EAAA,EAAAC,EAAmB3wB,OAAOyF,OAAOmW,GAAK8U,EAAAC,EAAAnsB,OAAAksB,IAAE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vhD,EAAmBoG,UAAA1H,OAAA,QAAAvD,IAAAiL,UAAA,GAAAA,UAAA,GAAG,CAAC,EAC9CjG,EAAuBH,EAAvBG,IAAK80B,EAAkBj1B,EAAlBi1B,cACPosB,EAAOH,GAAY,CAAEC,WAAW,EAAMhhD,IAAAA,EAAK80B,cAAAA,IACjD,OAAOosB,CACT,EAOaG,GAAS,WAA8B,IAA7BxhD,EAAmBoG,UAAA1H,OAAA,QAAAvD,IAAAiL,UAAA,GAAAA,UAAA,GAAG,CAAC,EACpCjG,EAAuBH,EAAvBG,IAAK80B,EAAkBj1B,EAAlBi1B,cACb,OAAO4X,EAAAA,GAAAA,UACL,kBAAM0U,GAAiB,CAAEphD,IAAAA,EAAK80B,cAAAA,GAAgB,GAC9C,CAAC90B,EAAK80B,GAEV,C","sources":["webpack://ArcadiaBffSDK/webpack/universalModuleDefinition","webpack://ArcadiaBffSDK/webpack/runtime/create fake namespace object","webpack://ArcadiaBffSDK/./node_modules/.pnpm/cross-fetch@3.1.8/node_modules/cross-fetch/dist/browser-ponyfill.js","webpack://ArcadiaBffSDK/./node_modules/.pnpm/use-sync-external-store@1.2.0_react@18.2.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.min.js","webpack://ArcadiaBffSDK/./node_modules/.pnpm/use-sync-external-store@1.2.0_react@18.2.0/node_modules/use-sync-external-store/shim/index.js","webpack://ArcadiaBffSDK/external var \"window.React\"","webpack://ArcadiaBffSDK/./node_modules/.pnpm/@babel+runtime@7.23.2/node_modules/@babel/runtime/helpers/arrayLikeToArray.js","webpack://ArcadiaBffSDK/./node_modules/.pnpm/@babel+runtime@7.23.2/node_modules/@babel/runtime/helpers/arrayWithHoles.js","webpack://ArcadiaBffSDK/./node_modules/.pnpm/@babel+runtime@7.23.2/node_modules/@babel/runtime/helpers/arrayWithoutHoles.js","webpack://ArcadiaBffSDK/./node_modules/.pnpm/@babel+runtime@7.23.2/node_modules/@babel/runtime/helpers/assertThisInitialized.js","webpack://ArcadiaBffSDK/./node_modules/.pnpm/@babel+runtime@7.23.2/node_modules/@babel/runtime/helpers/asyncToGenerator.js","webpack://ArcadiaBffSDK/./node_modules/.pnpm/@babel+runtime@7.23.2/node_modules/@babel/runtime/helpers/classCallCheck.js","webpack://ArcadiaBffSDK/./node_modules/.pnpm/@babel+runtime@7.23.2/node_modules/@babel/runtime/helpers/construct.js","webpack://ArcadiaBffSDK/./node_modules/.pnpm/@babel+runtime@7.23.2/node_modules/@babel/runtime/helpers/createClass.js","webpack://ArcadiaBffSDK/./node_modules/.pnpm/@babel+runtime@7.23.2/node_modules/@babel/runtime/helpers/createForOfIteratorHelper.js","webpack://ArcadiaBffSDK/./node_modules/.pnpm/@babel+runtime@7.23.2/node_modules/@babel/runtime/helpers/createSuper.js","webpack://ArcadiaBffSDK/./node_modules/.pnpm/@babel+runtime@7.23.2/node_modules/@babel/runtime/helpers/defineProperty.js","webpack://ArcadiaBffSDK/./node_modules/.pnpm/@babel+runtime@7.23.2/node_modules/@babel/runtime/helpers/getPrototypeOf.js","webpack://ArcadiaBffSDK/./node_modules/.pnpm/@babel+runtime@7.23.2/node_modules/@babel/runtime/helpers/inherits.js","webpack://ArcadiaBffSDK/./node_modules/.pnpm/@babel+runtime@7.23.2/node_modules/@babel/runtime/helpers/isNativeFunction.js","webpack://ArcadiaBffSDK/./node_modules/.pnpm/@babel+runtime@7.23.2/node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js","webpack://ArcadiaBffSDK/./node_modules/.pnpm/@babel+runtime@7.23.2/node_modules/@babel/runtime/helpers/iterableToArray.js","webpack://ArcadiaBffSDK/./node_modules/.pnpm/@babel+runtime@7.23.2/node_modules/@babel/runtime/helpers/iterableToArrayLimit.js","webpack://ArcadiaBffSDK/./node_modules/.pnpm/@babel+runtime@7.23.2/node_modules/@babel/runtime/helpers/nonIterableRest.js","webpack://ArcadiaBffSDK/./node_modules/.pnpm/@babel+runtime@7.23.2/node_modules/@babel/runtime/helpers/nonIterableSpread.js","webpack://ArcadiaBffSDK/./node_modules/.pnpm/@babel+runtime@7.23.2/node_modules/@babel/runtime/helpers/objectSpread2.js","webpack://ArcadiaBffSDK/./node_modules/.pnpm/@babel+runtime@7.23.2/node_modules/@babel/runtime/helpers/objectWithoutProperties.js","webpack://ArcadiaBffSDK/./node_modules/.pnpm/@babel+runtime@7.23.2/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","webpack://ArcadiaBffSDK/./node_modules/.pnpm/@babel+runtime@7.23.2/node_modules/@babel/runtime/helpers/possibleConstructorReturn.js","webpack://ArcadiaBffSDK/./node_modules/.pnpm/@babel+runtime@7.23.2/node_modules/@babel/runtime/helpers/regeneratorRuntime.js","webpack://ArcadiaBffSDK/./node_modules/.pnpm/@babel+runtime@7.23.2/node_modules/@babel/runtime/helpers/setPrototypeOf.js","webpack://ArcadiaBffSDK/./node_modules/.pnpm/@babel+runtime@7.23.2/node_modules/@babel/runtime/helpers/slicedToArray.js","webpack://ArcadiaBffSDK/./node_modules/.pnpm/@babel+runtime@7.23.2/node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js","webpack://ArcadiaBffSDK/./node_modules/.pnpm/@babel+runtime@7.23.2/node_modules/@babel/runtime/helpers/toConsumableArray.js","webpack://ArcadiaBffSDK/./node_modules/.pnpm/@babel+runtime@7.23.2/node_modules/@babel/runtime/helpers/toPrimitive.js","webpack://ArcadiaBffSDK/./node_modules/.pnpm/@babel+runtime@7.23.2/node_modules/@babel/runtime/helpers/toPropertyKey.js","webpack://ArcadiaBffSDK/./node_modules/.pnpm/@babel+runtime@7.23.2/node_modules/@babel/runtime/helpers/typeof.js","webpack://ArcadiaBffSDK/./node_modules/.pnpm/@babel+runtime@7.23.2/node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js","webpack://ArcadiaBffSDK/./node_modules/.pnpm/@babel+runtime@7.23.2/node_modules/@babel/runtime/helpers/wrapNativeSuper.js","webpack://ArcadiaBffSDK/webpack/bootstrap","webpack://ArcadiaBffSDK/webpack/runtime/compat get default export","webpack://ArcadiaBffSDK/webpack/runtime/define property getters","webpack://ArcadiaBffSDK/webpack/runtime/hasOwnProperty shorthand","webpack://ArcadiaBffSDK/webpack/runtime/make namespace object","webpack://ArcadiaBffSDK/../../src/defaultJsonSerializer.ts","webpack://ArcadiaBffSDK/../../src/parseArgs.ts","webpack://ArcadiaBffSDK/./node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/jsutils/isObjectLike.mjs","webpack://ArcadiaBffSDK/./node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/jsutils/invariant.mjs","webpack://ArcadiaBffSDK/./node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/language/location.mjs","webpack://ArcadiaBffSDK/./node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/language/printLocation.mjs","webpack://ArcadiaBffSDK/./node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/error/GraphQLError.mjs","webpack://ArcadiaBffSDK/./node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/error/syntaxError.mjs","webpack://ArcadiaBffSDK/./node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/language/ast.mjs","webpack://ArcadiaBffSDK/./node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/language/directiveLocation.mjs","webpack://ArcadiaBffSDK/./node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/language/kinds.mjs","webpack://ArcadiaBffSDK/./node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/language/tokenKind.mjs","webpack://ArcadiaBffSDK/./node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/language/characterClasses.mjs","webpack://ArcadiaBffSDK/./node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/language/blockString.mjs","webpack://ArcadiaBffSDK/./node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/language/lexer.mjs","webpack://ArcadiaBffSDK/./node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/jsutils/devAssert.mjs","webpack://ArcadiaBffSDK/./node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/jsutils/inspect.mjs","webpack://ArcadiaBffSDK/./node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/jsutils/instanceOf.mjs","webpack://ArcadiaBffSDK/./node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/language/source.mjs","webpack://ArcadiaBffSDK/./node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/language/parser.mjs","webpack://ArcadiaBffSDK/./node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/language/printString.mjs","webpack://ArcadiaBffSDK/./node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/language/visitor.mjs","webpack://ArcadiaBffSDK/./node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/language/printer.mjs","webpack://ArcadiaBffSDK/../../src/resolveRequestDocument.ts","webpack://ArcadiaBffSDK/../../src/types.ts","webpack://ArcadiaBffSDK/../../src/graphql-ws.ts","webpack://ArcadiaBffSDK/../../src/index.ts","webpack://ArcadiaBffSDK/../../src/helpers.ts","webpack://ArcadiaBffSDK/./node_modules/.pnpm/decode-uri-component@0.4.1/node_modules/decode-uri-component/index.js","webpack://ArcadiaBffSDK/./node_modules/.pnpm/split-on-first@3.0.0/node_modules/split-on-first/index.js","webpack://ArcadiaBffSDK/./node_modules/.pnpm/filter-obj@5.1.0/node_modules/filter-obj/index.js","webpack://ArcadiaBffSDK/./node_modules/.pnpm/query-string@8.1.0/node_modules/query-string/base.js","webpack://ArcadiaBffSDK/./node_modules/.pnpm/query-string@8.1.0/node_modules/query-string/index.js","webpack://ArcadiaBffSDK/./src/errors/modal.ts","webpack://ArcadiaBffSDK/external var \"window.antd\"","webpack://ArcadiaBffSDK/external var \"window.TenxUiMaterials\"","webpack://ArcadiaBffSDK/./src/errors/notification.ts","webpack://ArcadiaBffSDK/./src/errors/handler.ts","webpack://ArcadiaBffSDK/./node_modules/.pnpm/tslib@2.6.2/node_modules/tslib/tslib.es6.mjs","webpack://ArcadiaBffSDK/../src/index.ts","webpack://ArcadiaBffSDK/./node_modules/.pnpm/swr@2.2.4_react@18.2.0/node_modules/swr/_internal/dist/index.mjs","webpack://ArcadiaBffSDK/./node_modules/.pnpm/swr@2.2.4_react@18.2.0/node_modules/swr/core/dist/index.mjs","webpack://ArcadiaBffSDK/./src/useSWR.ts","webpack://ArcadiaBffSDK/./src/sdk.ts","webpack://ArcadiaBffSDK/./src/index.ts"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"ArcadiaBffSDK\"] = factory();\n\telse\n\t\troot[\"ArcadiaBffSDK\"] = factory();\n})(self, function() {\nreturn ","var getProto = Object.getPrototypeOf ? function(obj) { return Object.getPrototypeOf(obj); } : function(obj) { return obj.__proto__; };\nvar leafPrototypes;\n// create a fake namespace object\n// mode & 1: value is a module id, require it\n// mode & 2: merge all properties of value into the ns\n// mode & 4: return value when already ns object\n// mode & 16: return value when it's Promise-like\n// mode & 8|1: behave like require\n__webpack_require__.t = function(value, mode) {\n\tif(mode & 1) value = this(value);\n\tif(mode & 8) return value;\n\tif(typeof value === 'object' && value) {\n\t\tif((mode & 4) && value.__esModule) return value;\n\t\tif((mode & 16) && typeof value.then === 'function') return value;\n\t}\n\tvar ns = Object.create(null);\n\t__webpack_require__.r(ns);\n\tvar def = {};\n\tleafPrototypes = leafPrototypes || [null, getProto({}), getProto([]), getProto(getProto)];\n\tfor(var current = mode & 2 && value; typeof current == 'object' && !~leafPrototypes.indexOf(current); current = getProto(current)) {\n\t\tObject.getOwnPropertyNames(current).forEach(function(key) { def[key] = function() { return value[key]; }; });\n\t}\n\tdef['default'] = function() { return value; };\n\t__webpack_require__.d(ns, def);\n\treturn ns;\n};","var global = typeof self !== 'undefined' ? self : this;\nvar __self__ = (function () {\nfunction F() {\nthis.fetch = false;\nthis.DOMException = global.DOMException\n}\nF.prototype = global;\nreturn new F();\n})();\n(function(self) {\n\nvar irrelevant = (function (exports) {\n\n var support = {\n searchParams: 'URLSearchParams' in self,\n iterable: 'Symbol' in self && 'iterator' in Symbol,\n blob:\n 'FileReader' in self &&\n 'Blob' in self &&\n (function() {\n try {\n new Blob();\n return true\n } catch (e) {\n return false\n }\n })(),\n formData: 'FormData' in self,\n arrayBuffer: 'ArrayBuffer' in self\n };\n\n function isDataView(obj) {\n return obj && DataView.prototype.isPrototypeOf(obj)\n }\n\n if (support.arrayBuffer) {\n var viewClasses = [\n '[object Int8Array]',\n '[object Uint8Array]',\n '[object Uint8ClampedArray]',\n '[object Int16Array]',\n '[object Uint16Array]',\n '[object Int32Array]',\n '[object Uint32Array]',\n '[object Float32Array]',\n '[object Float64Array]'\n ];\n\n var isArrayBufferView =\n ArrayBuffer.isView ||\n function(obj) {\n return obj && viewClasses.indexOf(Object.prototype.toString.call(obj)) > -1\n };\n }\n\n function normalizeName(name) {\n if (typeof name !== 'string') {\n name = String(name);\n }\n if (/[^a-z0-9\\-#$%&'*+.^_`|~]/i.test(name)) {\n throw new TypeError('Invalid character in header field name')\n }\n return name.toLowerCase()\n }\n\n function normalizeValue(value) {\n if (typeof value !== 'string') {\n value = String(value);\n }\n return value\n }\n\n // Build a destructive iterator for the value list\n function iteratorFor(items) {\n var iterator = {\n next: function() {\n var value = items.shift();\n return {done: value === undefined, value: value}\n }\n };\n\n if (support.iterable) {\n iterator[Symbol.iterator] = function() {\n return iterator\n };\n }\n\n return iterator\n }\n\n function Headers(headers) {\n this.map = {};\n\n if (headers instanceof Headers) {\n headers.forEach(function(value, name) {\n this.append(name, value);\n }, this);\n } else if (Array.isArray(headers)) {\n headers.forEach(function(header) {\n this.append(header[0], header[1]);\n }, this);\n } else if (headers) {\n Object.getOwnPropertyNames(headers).forEach(function(name) {\n this.append(name, headers[name]);\n }, this);\n }\n }\n\n Headers.prototype.append = function(name, value) {\n name = normalizeName(name);\n value = normalizeValue(value);\n var oldValue = this.map[name];\n this.map[name] = oldValue ? oldValue + ', ' + value : value;\n };\n\n Headers.prototype['delete'] = function(name) {\n delete this.map[normalizeName(name)];\n };\n\n Headers.prototype.get = function(name) {\n name = normalizeName(name);\n return this.has(name) ? this.map[name] : null\n };\n\n Headers.prototype.has = function(name) {\n return this.map.hasOwnProperty(normalizeName(name))\n };\n\n Headers.prototype.set = function(name, value) {\n this.map[normalizeName(name)] = normalizeValue(value);\n };\n\n Headers.prototype.forEach = function(callback, thisArg) {\n for (var name in this.map) {\n if (this.map.hasOwnProperty(name)) {\n callback.call(thisArg, this.map[name], name, this);\n }\n }\n };\n\n Headers.prototype.keys = function() {\n var items = [];\n this.forEach(function(value, name) {\n items.push(name);\n });\n return iteratorFor(items)\n };\n\n Headers.prototype.values = function() {\n var items = [];\n this.forEach(function(value) {\n items.push(value);\n });\n return iteratorFor(items)\n };\n\n Headers.prototype.entries = function() {\n var items = [];\n this.forEach(function(value, name) {\n items.push([name, value]);\n });\n return iteratorFor(items)\n };\n\n if (support.iterable) {\n Headers.prototype[Symbol.iterator] = Headers.prototype.entries;\n }\n\n function consumed(body) {\n if (body.bodyUsed) {\n return Promise.reject(new TypeError('Already read'))\n }\n body.bodyUsed = true;\n }\n\n function fileReaderReady(reader) {\n return new Promise(function(resolve, reject) {\n reader.onload = function() {\n resolve(reader.result);\n };\n reader.onerror = function() {\n reject(reader.error);\n };\n })\n }\n\n function readBlobAsArrayBuffer(blob) {\n var reader = new FileReader();\n var promise = fileReaderReady(reader);\n reader.readAsArrayBuffer(blob);\n return promise\n }\n\n function readBlobAsText(blob) {\n var reader = new FileReader();\n var promise = fileReaderReady(reader);\n reader.readAsText(blob);\n return promise\n }\n\n function readArrayBufferAsText(buf) {\n var view = new Uint8Array(buf);\n var chars = new Array(view.length);\n\n for (var i = 0; i < view.length; i++) {\n chars[i] = String.fromCharCode(view[i]);\n }\n return chars.join('')\n }\n\n function bufferClone(buf) {\n if (buf.slice) {\n return buf.slice(0)\n } else {\n var view = new Uint8Array(buf.byteLength);\n view.set(new Uint8Array(buf));\n return view.buffer\n }\n }\n\n function Body() {\n this.bodyUsed = false;\n\n this._initBody = function(body) {\n this._bodyInit = body;\n if (!body) {\n this._bodyText = '';\n } else if (typeof body === 'string') {\n this._bodyText = body;\n } else if (support.blob && Blob.prototype.isPrototypeOf(body)) {\n this._bodyBlob = body;\n } else if (support.formData && FormData.prototype.isPrototypeOf(body)) {\n this._bodyFormData = body;\n } else if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body)) {\n this._bodyText = body.toString();\n } else if (support.arrayBuffer && support.blob && isDataView(body)) {\n this._bodyArrayBuffer = bufferClone(body.buffer);\n // IE 10-11 can't handle a DataView body.\n this._bodyInit = new Blob([this._bodyArrayBuffer]);\n } else if (support.arrayBuffer && (ArrayBuffer.prototype.isPrototypeOf(body) || isArrayBufferView(body))) {\n this._bodyArrayBuffer = bufferClone(body);\n } else {\n this._bodyText = body = Object.prototype.toString.call(body);\n }\n\n if (!this.headers.get('content-type')) {\n if (typeof body === 'string') {\n this.headers.set('content-type', 'text/plain;charset=UTF-8');\n } else if (this._bodyBlob && this._bodyBlob.type) {\n this.headers.set('content-type', this._bodyBlob.type);\n } else if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body)) {\n this.headers.set('content-type', 'application/x-www-form-urlencoded;charset=UTF-8');\n }\n }\n };\n\n if (support.blob) {\n this.blob = function() {\n var rejected = consumed(this);\n if (rejected) {\n return rejected\n }\n\n if (this._bodyBlob) {\n return Promise.resolve(this._bodyBlob)\n } else if (this._bodyArrayBuffer) {\n return Promise.resolve(new Blob([this._bodyArrayBuffer]))\n } else if (this._bodyFormData) {\n throw new Error('could not read FormData body as blob')\n } else {\n return Promise.resolve(new Blob([this._bodyText]))\n }\n };\n\n this.arrayBuffer = function() {\n if (this._bodyArrayBuffer) {\n return consumed(this) || Promise.resolve(this._bodyArrayBuffer)\n } else {\n return this.blob().then(readBlobAsArrayBuffer)\n }\n };\n }\n\n this.text = function() {\n var rejected = consumed(this);\n if (rejected) {\n return rejected\n }\n\n if (this._bodyBlob) {\n return readBlobAsText(this._bodyBlob)\n } else if (this._bodyArrayBuffer) {\n return Promise.resolve(readArrayBufferAsText(this._bodyArrayBuffer))\n } else if (this._bodyFormData) {\n throw new Error('could not read FormData body as text')\n } else {\n return Promise.resolve(this._bodyText)\n }\n };\n\n if (support.formData) {\n this.formData = function() {\n return this.text().then(decode)\n };\n }\n\n this.json = function() {\n return this.text().then(JSON.parse)\n };\n\n return this\n }\n\n // HTTP methods whose capitalization should be normalized\n var methods = ['DELETE', 'GET', 'HEAD', 'OPTIONS', 'POST', 'PUT'];\n\n function normalizeMethod(method) {\n var upcased = method.toUpperCase();\n return methods.indexOf(upcased) > -1 ? upcased : method\n }\n\n function Request(input, options) {\n options = options || {};\n var body = options.body;\n\n if (input instanceof Request) {\n if (input.bodyUsed) {\n throw new TypeError('Already read')\n }\n this.url = input.url;\n this.credentials = input.credentials;\n if (!options.headers) {\n this.headers = new Headers(input.headers);\n }\n this.method = input.method;\n this.mode = input.mode;\n this.signal = input.signal;\n if (!body && input._bodyInit != null) {\n body = input._bodyInit;\n input.bodyUsed = true;\n }\n } else {\n this.url = String(input);\n }\n\n this.credentials = options.credentials || this.credentials || 'same-origin';\n if (options.headers || !this.headers) {\n this.headers = new Headers(options.headers);\n }\n this.method = normalizeMethod(options.method || this.method || 'GET');\n this.mode = options.mode || this.mode || null;\n this.signal = options.signal || this.signal;\n this.referrer = null;\n\n if ((this.method === 'GET' || this.method === 'HEAD') && body) {\n throw new TypeError('Body not allowed for GET or HEAD requests')\n }\n this._initBody(body);\n }\n\n Request.prototype.clone = function() {\n return new Request(this, {body: this._bodyInit})\n };\n\n function decode(body) {\n var form = new FormData();\n body\n .trim()\n .split('&')\n .forEach(function(bytes) {\n if (bytes) {\n var split = bytes.split('=');\n var name = split.shift().replace(/\\+/g, ' ');\n var value = split.join('=').replace(/\\+/g, ' ');\n form.append(decodeURIComponent(name), decodeURIComponent(value));\n }\n });\n return form\n }\n\n function parseHeaders(rawHeaders) {\n var headers = new Headers();\n // Replace instances of \\r\\n and \\n followed by at least one space or horizontal tab with a space\n // https://tools.ietf.org/html/rfc7230#section-3.2\n var preProcessedHeaders = rawHeaders.replace(/\\r?\\n[\\t ]+/g, ' ');\n preProcessedHeaders.split(/\\r?\\n/).forEach(function(line) {\n var parts = line.split(':');\n var key = parts.shift().trim();\n if (key) {\n var value = parts.join(':').trim();\n headers.append(key, value);\n }\n });\n return headers\n }\n\n Body.call(Request.prototype);\n\n function Response(bodyInit, options) {\n if (!options) {\n options = {};\n }\n\n this.type = 'default';\n this.status = options.status === undefined ? 200 : options.status;\n this.ok = this.status >= 200 && this.status < 300;\n this.statusText = 'statusText' in options ? options.statusText : 'OK';\n this.headers = new Headers(options.headers);\n this.url = options.url || '';\n this._initBody(bodyInit);\n }\n\n Body.call(Response.prototype);\n\n Response.prototype.clone = function() {\n return new Response(this._bodyInit, {\n status: this.status,\n statusText: this.statusText,\n headers: new Headers(this.headers),\n url: this.url\n })\n };\n\n Response.error = function() {\n var response = new Response(null, {status: 0, statusText: ''});\n response.type = 'error';\n return response\n };\n\n var redirectStatuses = [301, 302, 303, 307, 308];\n\n Response.redirect = function(url, status) {\n if (redirectStatuses.indexOf(status) === -1) {\n throw new RangeError('Invalid status code')\n }\n\n return new Response(null, {status: status, headers: {location: url}})\n };\n\n exports.DOMException = self.DOMException;\n try {\n new exports.DOMException();\n } catch (err) {\n exports.DOMException = function(message, name) {\n this.message = message;\n this.name = name;\n var error = Error(message);\n this.stack = error.stack;\n };\n exports.DOMException.prototype = Object.create(Error.prototype);\n exports.DOMException.prototype.constructor = exports.DOMException;\n }\n\n function fetch(input, init) {\n return new Promise(function(resolve, reject) {\n var request = new Request(input, init);\n\n if (request.signal && request.signal.aborted) {\n return reject(new exports.DOMException('Aborted', 'AbortError'))\n }\n\n var xhr = new XMLHttpRequest();\n\n function abortXhr() {\n xhr.abort();\n }\n\n xhr.onload = function() {\n var options = {\n status: xhr.status,\n statusText: xhr.statusText,\n headers: parseHeaders(xhr.getAllResponseHeaders() || '')\n };\n options.url = 'responseURL' in xhr ? xhr.responseURL : options.headers.get('X-Request-URL');\n var body = 'response' in xhr ? xhr.response : xhr.responseText;\n resolve(new Response(body, options));\n };\n\n xhr.onerror = function() {\n reject(new TypeError('Network request failed'));\n };\n\n xhr.ontimeout = function() {\n reject(new TypeError('Network request failed'));\n };\n\n xhr.onabort = function() {\n reject(new exports.DOMException('Aborted', 'AbortError'));\n };\n\n xhr.open(request.method, request.url, true);\n\n if (request.credentials === 'include') {\n xhr.withCredentials = true;\n } else if (request.credentials === 'omit') {\n xhr.withCredentials = false;\n }\n\n if ('responseType' in xhr && support.blob) {\n xhr.responseType = 'blob';\n }\n\n request.headers.forEach(function(value, name) {\n xhr.setRequestHeader(name, value);\n });\n\n if (request.signal) {\n request.signal.addEventListener('abort', abortXhr);\n\n xhr.onreadystatechange = function() {\n // DONE (success or failure)\n if (xhr.readyState === 4) {\n request.signal.removeEventListener('abort', abortXhr);\n }\n };\n }\n\n xhr.send(typeof request._bodyInit === 'undefined' ? null : request._bodyInit);\n })\n }\n\n fetch.polyfill = true;\n\n if (!self.fetch) {\n self.fetch = fetch;\n self.Headers = Headers;\n self.Request = Request;\n self.Response = Response;\n }\n\n exports.Headers = Headers;\n exports.Request = Request;\n exports.Response = Response;\n exports.fetch = fetch;\n\n Object.defineProperty(exports, '__esModule', { value: true });\n\n return exports;\n\n})({});\n})(__self__);\n__self__.fetch.ponyfill = true;\n// Remove \"polyfill\" property added by whatwg-fetch\ndelete __self__.fetch.polyfill;\n// Choose between native implementation (global) or custom implementation (__self__)\n// var ctx = global.fetch ? global : __self__;\nvar ctx = __self__; // this line disable service worker support temporarily\nexports = ctx.fetch // To enable: import fetch from 'cross-fetch'\nexports.default = ctx.fetch // For TypeScript consumers without esModuleInterop.\nexports.fetch = ctx.fetch // To enable: import {fetch} from 'cross-fetch'\nexports.Headers = ctx.Headers\nexports.Request = ctx.Request\nexports.Response = ctx.Response\nmodule.exports = exports\n","/**\n * @license React\n * use-sync-external-store-shim.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';var e=require(\"react\");function h(a,b){return a===b&&(0!==a||1/a===1/b)||a!==a&&b!==b}var k=\"function\"===typeof Object.is?Object.is:h,l=e.useState,m=e.useEffect,n=e.useLayoutEffect,p=e.useDebugValue;function q(a,b){var d=b(),f=l({inst:{value:d,getSnapshot:b}}),c=f[0].inst,g=f[1];n(function(){c.value=d;c.getSnapshot=b;r(c)&&g({inst:c})},[a,d,b]);m(function(){r(c)&&g({inst:c});return a(function(){r(c)&&g({inst:c})})},[a]);p(d);return d}\nfunction r(a){var b=a.getSnapshot;a=a.value;try{var d=b();return!k(a,d)}catch(f){return!0}}function t(a,b){return b()}var u=\"undefined\"===typeof window||\"undefined\"===typeof window.document||\"undefined\"===typeof window.document.createElement?t:q;exports.useSyncExternalStore=void 0!==e.useSyncExternalStore?e.useSyncExternalStore:u;\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('../cjs/use-sync-external-store-shim.production.min.js');\n} else {\n module.exports = require('../cjs/use-sync-external-store-shim.development.js');\n}\n","module.exports = window.React;","function _arrayLikeToArray(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];\n return arr2;\n}\nmodule.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _arrayWithHoles(arr) {\n if (Array.isArray(arr)) return arr;\n}\nmodule.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var arrayLikeToArray = require(\"./arrayLikeToArray.js\");\nfunction _arrayWithoutHoles(arr) {\n if (Array.isArray(arr)) return arrayLikeToArray(arr);\n}\nmodule.exports = _arrayWithoutHoles, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _assertThisInitialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n return self;\n}\nmodule.exports = _assertThisInitialized, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {\n try {\n var info = gen[key](arg);\n var value = info.value;\n } catch (error) {\n reject(error);\n return;\n }\n if (info.done) {\n resolve(value);\n } else {\n Promise.resolve(value).then(_next, _throw);\n }\n}\nfunction _asyncToGenerator(fn) {\n return function () {\n var self = this,\n args = arguments;\n return new Promise(function (resolve, reject) {\n var gen = fn.apply(self, args);\n function _next(value) {\n asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value);\n }\n function _throw(err) {\n asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err);\n }\n _next(undefined);\n });\n };\n}\nmodule.exports = _asyncToGenerator, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\nmodule.exports = _classCallCheck, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var setPrototypeOf = require(\"./setPrototypeOf.js\");\nvar isNativeReflectConstruct = require(\"./isNativeReflectConstruct.js\");\nfunction _construct(Parent, args, Class) {\n if (isNativeReflectConstruct()) {\n module.exports = _construct = Reflect.construct.bind(), module.exports.__esModule = true, module.exports[\"default\"] = module.exports;\n } else {\n module.exports = _construct = function _construct(Parent, args, Class) {\n var a = [null];\n a.push.apply(a, args);\n var Constructor = Function.bind.apply(Parent, a);\n var instance = new Constructor();\n if (Class) setPrototypeOf(instance, Class.prototype);\n return instance;\n }, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;\n }\n return _construct.apply(null, arguments);\n}\nmodule.exports = _construct, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var toPropertyKey = require(\"./toPropertyKey.js\");\nfunction _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, toPropertyKey(descriptor.key), descriptor);\n }\n}\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n Object.defineProperty(Constructor, \"prototype\", {\n writable: false\n });\n return Constructor;\n}\nmodule.exports = _createClass, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var unsupportedIterableToArray = require(\"./unsupportedIterableToArray.js\");\nfunction _createForOfIteratorHelper(o, allowArrayLike) {\n var it = typeof Symbol !== \"undefined\" && o[Symbol.iterator] || o[\"@@iterator\"];\n if (!it) {\n if (Array.isArray(o) || (it = unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === \"number\") {\n if (it) o = it;\n var i = 0;\n var F = function F() {};\n return {\n s: F,\n n: function n() {\n if (i >= o.length) return {\n done: true\n };\n return {\n done: false,\n value: o[i++]\n };\n },\n e: function e(_e) {\n throw _e;\n },\n f: F\n };\n }\n throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n }\n var normalCompletion = true,\n didErr = false,\n err;\n return {\n s: function s() {\n it = it.call(o);\n },\n n: function n() {\n var step = it.next();\n normalCompletion = step.done;\n return step;\n },\n e: function e(_e2) {\n didErr = true;\n err = _e2;\n },\n f: function f() {\n try {\n if (!normalCompletion && it[\"return\"] != null) it[\"return\"]();\n } finally {\n if (didErr) throw err;\n }\n }\n };\n}\nmodule.exports = _createForOfIteratorHelper, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var getPrototypeOf = require(\"./getPrototypeOf.js\");\nvar isNativeReflectConstruct = require(\"./isNativeReflectConstruct.js\");\nvar possibleConstructorReturn = require(\"./possibleConstructorReturn.js\");\nfunction _createSuper(Derived) {\n var hasNativeReflectConstruct = isNativeReflectConstruct();\n return function _createSuperInternal() {\n var Super = getPrototypeOf(Derived),\n result;\n if (hasNativeReflectConstruct) {\n var NewTarget = getPrototypeOf(this).constructor;\n result = Reflect.construct(Super, arguments, NewTarget);\n } else {\n result = Super.apply(this, arguments);\n }\n return possibleConstructorReturn(this, result);\n };\n}\nmodule.exports = _createSuper, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var toPropertyKey = require(\"./toPropertyKey.js\");\nfunction _defineProperty(obj, key, value) {\n key = toPropertyKey(key);\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n}\nmodule.exports = _defineProperty, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _getPrototypeOf(o) {\n module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {\n return o.__proto__ || Object.getPrototypeOf(o);\n }, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;\n return _getPrototypeOf(o);\n}\nmodule.exports = _getPrototypeOf, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var setPrototypeOf = require(\"./setPrototypeOf.js\");\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n Object.defineProperty(subClass, \"prototype\", {\n writable: false\n });\n if (superClass) setPrototypeOf(subClass, superClass);\n}\nmodule.exports = _inherits, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _isNativeFunction(fn) {\n try {\n return Function.toString.call(fn).indexOf(\"[native code]\") !== -1;\n } catch (e) {\n return typeof fn === \"function\";\n }\n}\nmodule.exports = _isNativeFunction, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _isNativeReflectConstruct() {\n if (typeof Reflect === \"undefined\" || !Reflect.construct) return false;\n if (Reflect.construct.sham) return false;\n if (typeof Proxy === \"function\") return true;\n try {\n Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));\n return true;\n } catch (e) {\n return false;\n }\n}\nmodule.exports = _isNativeReflectConstruct, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _iterableToArray(iter) {\n if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter);\n}\nmodule.exports = _iterableToArray, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _iterableToArrayLimit(r, l) {\n var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"];\n if (null != t) {\n var e,\n n,\n i,\n u,\n a = [],\n f = !0,\n o = !1;\n try {\n if (i = (t = t.call(r)).next, 0 === l) {\n if (Object(t) !== t) return;\n f = !1;\n } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);\n } catch (r) {\n o = !0, n = r;\n } finally {\n try {\n if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return;\n } finally {\n if (o) throw n;\n }\n }\n return a;\n }\n}\nmodule.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _nonIterableRest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\nmodule.exports = _nonIterableRest, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _nonIterableSpread() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\nmodule.exports = _nonIterableSpread, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var defineProperty = require(\"./defineProperty.js\");\nfunction ownKeys(e, r) {\n var t = Object.keys(e);\n if (Object.getOwnPropertySymbols) {\n var o = Object.getOwnPropertySymbols(e);\n r && (o = o.filter(function (r) {\n return Object.getOwnPropertyDescriptor(e, r).enumerable;\n })), t.push.apply(t, o);\n }\n return t;\n}\nfunction _objectSpread2(e) {\n for (var r = 1; r < arguments.length; r++) {\n var t = null != arguments[r] ? arguments[r] : {};\n r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {\n defineProperty(e, r, t[r]);\n }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {\n Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));\n });\n }\n return e;\n}\nmodule.exports = _objectSpread2, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var objectWithoutPropertiesLoose = require(\"./objectWithoutPropertiesLoose.js\");\nfunction _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n var target = objectWithoutPropertiesLoose(source, excluded);\n var key, i;\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n for (i = 0; i < sourceSymbolKeys.length; i++) {\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n return target;\n}\nmodule.exports = _objectWithoutProperties, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n return target;\n}\nmodule.exports = _objectWithoutPropertiesLoose, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var _typeof = require(\"./typeof.js\")[\"default\"];\nvar assertThisInitialized = require(\"./assertThisInitialized.js\");\nfunction _possibleConstructorReturn(self, call) {\n if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) {\n return call;\n } else if (call !== void 0) {\n throw new TypeError(\"Derived constructors may only return object or undefined\");\n }\n return assertThisInitialized(self);\n}\nmodule.exports = _possibleConstructorReturn, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var _typeof = require(\"./typeof.js\")[\"default\"];\nfunction _regeneratorRuntime() {\n \"use strict\"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */\n module.exports = _regeneratorRuntime = function _regeneratorRuntime() {\n return e;\n }, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;\n var t,\n e = {},\n r = Object.prototype,\n n = r.hasOwnProperty,\n o = Object.defineProperty || function (t, e, r) {\n t[e] = r.value;\n },\n i = \"function\" == typeof Symbol ? Symbol : {},\n a = i.iterator || \"@@iterator\",\n c = i.asyncIterator || \"@@asyncIterator\",\n u = i.toStringTag || \"@@toStringTag\";\n function define(t, e, r) {\n return Object.defineProperty(t, e, {\n value: r,\n enumerable: !0,\n configurable: !0,\n writable: !0\n }), t[e];\n }\n try {\n define({}, \"\");\n } catch (t) {\n define = function define(t, e, r) {\n return t[e] = r;\n };\n }\n function wrap(t, e, r, n) {\n var i = e && e.prototype instanceof Generator ? e : Generator,\n a = Object.create(i.prototype),\n c = new Context(n || []);\n return o(a, \"_invoke\", {\n value: makeInvokeMethod(t, r, c)\n }), a;\n }\n function tryCatch(t, e, r) {\n try {\n return {\n type: \"normal\",\n arg: t.call(e, r)\n };\n } catch (t) {\n return {\n type: \"throw\",\n arg: t\n };\n }\n }\n e.wrap = wrap;\n var h = \"suspendedStart\",\n l = \"suspendedYield\",\n f = \"executing\",\n s = \"completed\",\n y = {};\n function Generator() {}\n function GeneratorFunction() {}\n function GeneratorFunctionPrototype() {}\n var p = {};\n define(p, a, function () {\n return this;\n });\n var d = Object.getPrototypeOf,\n v = d && d(d(values([])));\n v && v !== r && n.call(v, a) && (p = v);\n var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);\n function defineIteratorMethods(t) {\n [\"next\", \"throw\", \"return\"].forEach(function (e) {\n define(t, e, function (t) {\n return this._invoke(e, t);\n });\n });\n }\n function AsyncIterator(t, e) {\n function invoke(r, o, i, a) {\n var c = tryCatch(t[r], t, o);\n if (\"throw\" !== c.type) {\n var u = c.arg,\n h = u.value;\n return h && \"object\" == _typeof(h) && n.call(h, \"__await\") ? e.resolve(h.__await).then(function (t) {\n invoke(\"next\", t, i, a);\n }, function (t) {\n invoke(\"throw\", t, i, a);\n }) : e.resolve(h).then(function (t) {\n u.value = t, i(u);\n }, function (t) {\n return invoke(\"throw\", t, i, a);\n });\n }\n a(c.arg);\n }\n var r;\n o(this, \"_invoke\", {\n value: function value(t, n) {\n function callInvokeWithMethodAndArg() {\n return new e(function (e, r) {\n invoke(t, n, e, r);\n });\n }\n return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();\n }\n });\n }\n function makeInvokeMethod(e, r, n) {\n var o = h;\n return function (i, a) {\n if (o === f) throw new Error(\"Generator is already running\");\n if (o === s) {\n if (\"throw\" === i) throw a;\n return {\n value: t,\n done: !0\n };\n }\n for (n.method = i, n.arg = a;;) {\n var c = n.delegate;\n if (c) {\n var u = maybeInvokeDelegate(c, n);\n if (u) {\n if (u === y) continue;\n return u;\n }\n }\n if (\"next\" === n.method) n.sent = n._sent = n.arg;else if (\"throw\" === n.method) {\n if (o === h) throw o = s, n.arg;\n n.dispatchException(n.arg);\n } else \"return\" === n.method && n.abrupt(\"return\", n.arg);\n o = f;\n var p = tryCatch(e, r, n);\n if (\"normal\" === p.type) {\n if (o = n.done ? s : l, p.arg === y) continue;\n return {\n value: p.arg,\n done: n.done\n };\n }\n \"throw\" === p.type && (o = s, n.method = \"throw\", n.arg = p.arg);\n }\n };\n }\n function maybeInvokeDelegate(e, r) {\n var n = r.method,\n o = e.iterator[n];\n if (o === t) return r.delegate = null, \"throw\" === n && e.iterator[\"return\"] && (r.method = \"return\", r.arg = t, maybeInvokeDelegate(e, r), \"throw\" === r.method) || \"return\" !== n && (r.method = \"throw\", r.arg = new TypeError(\"The iterator does not provide a '\" + n + \"' method\")), y;\n var i = tryCatch(o, e.iterator, r.arg);\n if (\"throw\" === i.type) return r.method = \"throw\", r.arg = i.arg, r.delegate = null, y;\n var a = i.arg;\n return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, \"return\" !== r.method && (r.method = \"next\", r.arg = t), r.delegate = null, y) : a : (r.method = \"throw\", r.arg = new TypeError(\"iterator result is not an object\"), r.delegate = null, y);\n }\n function pushTryEntry(t) {\n var e = {\n tryLoc: t[0]\n };\n 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);\n }\n function resetTryEntry(t) {\n var e = t.completion || {};\n e.type = \"normal\", delete e.arg, t.completion = e;\n }\n function Context(t) {\n this.tryEntries = [{\n tryLoc: \"root\"\n }], t.forEach(pushTryEntry, this), this.reset(!0);\n }\n function values(e) {\n if (e || \"\" === e) {\n var r = e[a];\n if (r) return r.call(e);\n if (\"function\" == typeof e.next) return e;\n if (!isNaN(e.length)) {\n var o = -1,\n i = function next() {\n for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;\n return next.value = t, next.done = !0, next;\n };\n return i.next = i;\n }\n }\n throw new TypeError(_typeof(e) + \" is not iterable\");\n }\n return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, \"constructor\", {\n value: GeneratorFunctionPrototype,\n configurable: !0\n }), o(GeneratorFunctionPrototype, \"constructor\", {\n value: GeneratorFunction,\n configurable: !0\n }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, \"GeneratorFunction\"), e.isGeneratorFunction = function (t) {\n var e = \"function\" == typeof t && t.constructor;\n return !!e && (e === GeneratorFunction || \"GeneratorFunction\" === (e.displayName || e.name));\n }, e.mark = function (t) {\n return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, \"GeneratorFunction\")), t.prototype = Object.create(g), t;\n }, e.awrap = function (t) {\n return {\n __await: t\n };\n }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {\n return this;\n }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {\n void 0 === i && (i = Promise);\n var a = new AsyncIterator(wrap(t, r, n, o), i);\n return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {\n return t.done ? t.value : a.next();\n });\n }, defineIteratorMethods(g), define(g, u, \"Generator\"), define(g, a, function () {\n return this;\n }), define(g, \"toString\", function () {\n return \"[object Generator]\";\n }), e.keys = function (t) {\n var e = Object(t),\n r = [];\n for (var n in e) r.push(n);\n return r.reverse(), function next() {\n for (; r.length;) {\n var t = r.pop();\n if (t in e) return next.value = t, next.done = !1, next;\n }\n return next.done = !0, next;\n };\n }, e.values = values, Context.prototype = {\n constructor: Context,\n reset: function reset(e) {\n if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = \"next\", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) \"t\" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);\n },\n stop: function stop() {\n this.done = !0;\n var t = this.tryEntries[0].completion;\n if (\"throw\" === t.type) throw t.arg;\n return this.rval;\n },\n dispatchException: function dispatchException(e) {\n if (this.done) throw e;\n var r = this;\n function handle(n, o) {\n return a.type = \"throw\", a.arg = e, r.next = n, o && (r.method = \"next\", r.arg = t), !!o;\n }\n for (var o = this.tryEntries.length - 1; o >= 0; --o) {\n var i = this.tryEntries[o],\n a = i.completion;\n if (\"root\" === i.tryLoc) return handle(\"end\");\n if (i.tryLoc <= this.prev) {\n var c = n.call(i, \"catchLoc\"),\n u = n.call(i, \"finallyLoc\");\n if (c && u) {\n if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);\n if (this.prev < i.finallyLoc) return handle(i.finallyLoc);\n } else if (c) {\n if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);\n } else {\n if (!u) throw new Error(\"try statement without catch or finally\");\n if (this.prev < i.finallyLoc) return handle(i.finallyLoc);\n }\n }\n }\n },\n abrupt: function abrupt(t, e) {\n for (var r = this.tryEntries.length - 1; r >= 0; --r) {\n var o = this.tryEntries[r];\n if (o.tryLoc <= this.prev && n.call(o, \"finallyLoc\") && this.prev < o.finallyLoc) {\n var i = o;\n break;\n }\n }\n i && (\"break\" === t || \"continue\" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);\n var a = i ? i.completion : {};\n return a.type = t, a.arg = e, i ? (this.method = \"next\", this.next = i.finallyLoc, y) : this.complete(a);\n },\n complete: function complete(t, e) {\n if (\"throw\" === t.type) throw t.arg;\n return \"break\" === t.type || \"continue\" === t.type ? this.next = t.arg : \"return\" === t.type ? (this.rval = this.arg = t.arg, this.method = \"return\", this.next = \"end\") : \"normal\" === t.type && e && (this.next = e), y;\n },\n finish: function finish(t) {\n for (var e = this.tryEntries.length - 1; e >= 0; --e) {\n var r = this.tryEntries[e];\n if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;\n }\n },\n \"catch\": function _catch(t) {\n for (var e = this.tryEntries.length - 1; e >= 0; --e) {\n var r = this.tryEntries[e];\n if (r.tryLoc === t) {\n var n = r.completion;\n if (\"throw\" === n.type) {\n var o = n.arg;\n resetTryEntry(r);\n }\n return o;\n }\n }\n throw new Error(\"illegal catch attempt\");\n },\n delegateYield: function delegateYield(e, r, n) {\n return this.delegate = {\n iterator: values(e),\n resultName: r,\n nextLoc: n\n }, \"next\" === this.method && (this.arg = t), y;\n }\n }, e;\n}\nmodule.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _setPrototypeOf(o, p) {\n module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n }, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;\n return _setPrototypeOf(o, p);\n}\nmodule.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var arrayWithHoles = require(\"./arrayWithHoles.js\");\nvar iterableToArrayLimit = require(\"./iterableToArrayLimit.js\");\nvar unsupportedIterableToArray = require(\"./unsupportedIterableToArray.js\");\nvar nonIterableRest = require(\"./nonIterableRest.js\");\nfunction _slicedToArray(arr, i) {\n return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest();\n}\nmodule.exports = _slicedToArray, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _taggedTemplateLiteral(strings, raw) {\n if (!raw) {\n raw = strings.slice(0);\n }\n return Object.freeze(Object.defineProperties(strings, {\n raw: {\n value: Object.freeze(raw)\n }\n }));\n}\nmodule.exports = _taggedTemplateLiteral, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var arrayWithoutHoles = require(\"./arrayWithoutHoles.js\");\nvar iterableToArray = require(\"./iterableToArray.js\");\nvar unsupportedIterableToArray = require(\"./unsupportedIterableToArray.js\");\nvar nonIterableSpread = require(\"./nonIterableSpread.js\");\nfunction _toConsumableArray(arr) {\n return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread();\n}\nmodule.exports = _toConsumableArray, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var _typeof = require(\"./typeof.js\")[\"default\"];\nfunction _toPrimitive(input, hint) {\n if (_typeof(input) !== \"object\" || input === null) return input;\n var prim = input[Symbol.toPrimitive];\n if (prim !== undefined) {\n var res = prim.call(input, hint || \"default\");\n if (_typeof(res) !== \"object\") return res;\n throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n }\n return (hint === \"string\" ? String : Number)(input);\n}\nmodule.exports = _toPrimitive, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var _typeof = require(\"./typeof.js\")[\"default\"];\nvar toPrimitive = require(\"./toPrimitive.js\");\nfunction _toPropertyKey(arg) {\n var key = toPrimitive(arg, \"string\");\n return _typeof(key) === \"symbol\" ? key : String(key);\n}\nmodule.exports = _toPropertyKey, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _typeof(o) {\n \"@babel/helpers - typeof\";\n\n return (module.exports = _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) {\n return typeof o;\n } : function (o) {\n return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o;\n }, module.exports.__esModule = true, module.exports[\"default\"] = module.exports), _typeof(o);\n}\nmodule.exports = _typeof, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var arrayLikeToArray = require(\"./arrayLikeToArray.js\");\nfunction _unsupportedIterableToArray(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return arrayLikeToArray(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(o);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);\n}\nmodule.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var getPrototypeOf = require(\"./getPrototypeOf.js\");\nvar setPrototypeOf = require(\"./setPrototypeOf.js\");\nvar isNativeFunction = require(\"./isNativeFunction.js\");\nvar construct = require(\"./construct.js\");\nfunction _wrapNativeSuper(Class) {\n var _cache = typeof Map === \"function\" ? new Map() : undefined;\n module.exports = _wrapNativeSuper = function _wrapNativeSuper(Class) {\n if (Class === null || !isNativeFunction(Class)) return Class;\n if (typeof Class !== \"function\") {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n if (typeof _cache !== \"undefined\") {\n if (_cache.has(Class)) return _cache.get(Class);\n _cache.set(Class, Wrapper);\n }\n function Wrapper() {\n return construct(Class, arguments, getPrototypeOf(this).constructor);\n }\n Wrapper.prototype = Object.create(Class.prototype, {\n constructor: {\n value: Wrapper,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n return setPrototypeOf(Wrapper, Class);\n }, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;\n return _wrapNativeSuper(Class);\n}\nmodule.exports = _wrapNativeSuper, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = function(module) {\n\tvar getter = module && module.__esModule ?\n\t\tfunction() { return module['default']; } :\n\t\tfunction() { return module; };\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","// define __esModule on exports\n__webpack_require__.r = function(exports) {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};",null,null,"/**\n * Return true if `value` is object-like. A value is object-like if it's not\n * `null` and has a `typeof` result of \"object\".\n */\nexport function isObjectLike(value) {\n return typeof value == 'object' && value !== null;\n}\n","export function invariant(condition, message) {\n const booleanCondition = Boolean(condition);\n\n if (!booleanCondition) {\n throw new Error(\n message != null ? message : 'Unexpected invariant triggered.',\n );\n }\n}\n","import { invariant } from '../jsutils/invariant.mjs';\nconst LineRegExp = /\\r\\n|[\\n\\r]/g;\n/**\n * Represents a location in a Source.\n */\n\n/**\n * Takes a Source and a UTF-8 character offset, and returns the corresponding\n * line and column as a SourceLocation.\n */\nexport function getLocation(source, position) {\n let lastLineStart = 0;\n let line = 1;\n\n for (const match of source.body.matchAll(LineRegExp)) {\n typeof match.index === 'number' || invariant(false);\n\n if (match.index >= position) {\n break;\n }\n\n lastLineStart = match.index + match[0].length;\n line += 1;\n }\n\n return {\n line,\n column: position + 1 - lastLineStart,\n };\n}\n","import { getLocation } from './location.mjs';\n\n/**\n * Render a helpful description of the location in the GraphQL Source document.\n */\nexport function printLocation(location) {\n return printSourceLocation(\n location.source,\n getLocation(location.source, location.start),\n );\n}\n/**\n * Render a helpful description of the location in the GraphQL Source document.\n */\n\nexport function printSourceLocation(source, sourceLocation) {\n const firstLineColumnOffset = source.locationOffset.column - 1;\n const body = ''.padStart(firstLineColumnOffset) + source.body;\n const lineIndex = sourceLocation.line - 1;\n const lineOffset = source.locationOffset.line - 1;\n const lineNum = sourceLocation.line + lineOffset;\n const columnOffset = sourceLocation.line === 1 ? firstLineColumnOffset : 0;\n const columnNum = sourceLocation.column + columnOffset;\n const locationStr = `${source.name}:${lineNum}:${columnNum}\\n`;\n const lines = body.split(/\\r\\n|[\\n\\r]/g);\n const locationLine = lines[lineIndex]; // Special case for minified documents\n\n if (locationLine.length > 120) {\n const subLineIndex = Math.floor(columnNum / 80);\n const subLineColumnNum = columnNum % 80;\n const subLines = [];\n\n for (let i = 0; i < locationLine.length; i += 80) {\n subLines.push(locationLine.slice(i, i + 80));\n }\n\n return (\n locationStr +\n printPrefixedLines([\n [`${lineNum} |`, subLines[0]],\n ...subLines.slice(1, subLineIndex + 1).map((subLine) => ['|', subLine]),\n ['|', '^'.padStart(subLineColumnNum)],\n ['|', subLines[subLineIndex + 1]],\n ])\n );\n }\n\n return (\n locationStr +\n printPrefixedLines([\n // Lines specified like this: [\"prefix\", \"string\"],\n [`${lineNum - 1} |`, lines[lineIndex - 1]],\n [`${lineNum} |`, locationLine],\n ['|', '^'.padStart(columnNum)],\n [`${lineNum + 1} |`, lines[lineIndex + 1]],\n ])\n );\n}\n\nfunction printPrefixedLines(lines) {\n const existingLines = lines.filter(([_, line]) => line !== undefined);\n const padLen = Math.max(...existingLines.map(([prefix]) => prefix.length));\n return existingLines\n .map(([prefix, line]) => prefix.padStart(padLen) + (line ? ' ' + line : ''))\n .join('\\n');\n}\n","import { isObjectLike } from '../jsutils/isObjectLike.mjs';\nimport { getLocation } from '../language/location.mjs';\nimport {\n printLocation,\n printSourceLocation,\n} from '../language/printLocation.mjs';\n\nfunction toNormalizedOptions(args) {\n const firstArg = args[0];\n\n if (firstArg == null || 'kind' in firstArg || 'length' in firstArg) {\n return {\n nodes: firstArg,\n source: args[1],\n positions: args[2],\n path: args[3],\n originalError: args[4],\n extensions: args[5],\n };\n }\n\n return firstArg;\n}\n/**\n * A GraphQLError describes an Error found during the parse, validate, or\n * execute phases of performing a GraphQL operation. In addition to a message\n * and stack trace, it also includes information about the locations in a\n * GraphQL document and/or execution result that correspond to the Error.\n */\n\nexport class GraphQLError extends Error {\n /**\n * An array of `{ line, column }` locations within the source GraphQL document\n * which correspond to this error.\n *\n * Errors during validation often contain multiple locations, for example to\n * point out two things with the same name. Errors during execution include a\n * single location, the field which produced the error.\n *\n * Enumerable, and appears in the result of JSON.stringify().\n */\n\n /**\n * An array describing the JSON-path into the execution response which\n * corresponds to this error. Only included for errors during execution.\n *\n * Enumerable, and appears in the result of JSON.stringify().\n */\n\n /**\n * An array of GraphQL AST Nodes corresponding to this error.\n */\n\n /**\n * The source GraphQL document for the first location of this error.\n *\n * Note that if this Error represents more than one node, the source may not\n * represent nodes after the first node.\n */\n\n /**\n * An array of character offsets within the source GraphQL document\n * which correspond to this error.\n */\n\n /**\n * The original error thrown from a field resolver during execution.\n */\n\n /**\n * Extension fields to add to the formatted error.\n */\n\n /**\n * @deprecated Please use the `GraphQLErrorOptions` constructor overload instead.\n */\n constructor(message, ...rawArgs) {\n var _this$nodes, _nodeLocations$, _ref;\n\n const { nodes, source, positions, path, originalError, extensions } =\n toNormalizedOptions(rawArgs);\n super(message);\n this.name = 'GraphQLError';\n this.path = path !== null && path !== void 0 ? path : undefined;\n this.originalError =\n originalError !== null && originalError !== void 0\n ? originalError\n : undefined; // Compute list of blame nodes.\n\n this.nodes = undefinedIfEmpty(\n Array.isArray(nodes) ? nodes : nodes ? [nodes] : undefined,\n );\n const nodeLocations = undefinedIfEmpty(\n (_this$nodes = this.nodes) === null || _this$nodes === void 0\n ? void 0\n : _this$nodes.map((node) => node.loc).filter((loc) => loc != null),\n ); // Compute locations in the source for the given nodes/positions.\n\n this.source =\n source !== null && source !== void 0\n ? source\n : nodeLocations === null || nodeLocations === void 0\n ? void 0\n : (_nodeLocations$ = nodeLocations[0]) === null ||\n _nodeLocations$ === void 0\n ? void 0\n : _nodeLocations$.source;\n this.positions =\n positions !== null && positions !== void 0\n ? positions\n : nodeLocations === null || nodeLocations === void 0\n ? void 0\n : nodeLocations.map((loc) => loc.start);\n this.locations =\n positions && source\n ? positions.map((pos) => getLocation(source, pos))\n : nodeLocations === null || nodeLocations === void 0\n ? void 0\n : nodeLocations.map((loc) => getLocation(loc.source, loc.start));\n const originalExtensions = isObjectLike(\n originalError === null || originalError === void 0\n ? void 0\n : originalError.extensions,\n )\n ? originalError === null || originalError === void 0\n ? void 0\n : originalError.extensions\n : undefined;\n this.extensions =\n (_ref =\n extensions !== null && extensions !== void 0\n ? extensions\n : originalExtensions) !== null && _ref !== void 0\n ? _ref\n : Object.create(null); // Only properties prescribed by the spec should be enumerable.\n // Keep the rest as non-enumerable.\n\n Object.defineProperties(this, {\n message: {\n writable: true,\n enumerable: true,\n },\n name: {\n enumerable: false,\n },\n nodes: {\n enumerable: false,\n },\n source: {\n enumerable: false,\n },\n positions: {\n enumerable: false,\n },\n originalError: {\n enumerable: false,\n },\n }); // Include (non-enumerable) stack trace.\n\n /* c8 ignore start */\n // FIXME: https://github.com/graphql/graphql-js/issues/2317\n\n if (\n originalError !== null &&\n originalError !== void 0 &&\n originalError.stack\n ) {\n Object.defineProperty(this, 'stack', {\n value: originalError.stack,\n writable: true,\n configurable: true,\n });\n } else if (Error.captureStackTrace) {\n Error.captureStackTrace(this, GraphQLError);\n } else {\n Object.defineProperty(this, 'stack', {\n value: Error().stack,\n writable: true,\n configurable: true,\n });\n }\n /* c8 ignore stop */\n }\n\n get [Symbol.toStringTag]() {\n return 'GraphQLError';\n }\n\n toString() {\n let output = this.message;\n\n if (this.nodes) {\n for (const node of this.nodes) {\n if (node.loc) {\n output += '\\n\\n' + printLocation(node.loc);\n }\n }\n } else if (this.source && this.locations) {\n for (const location of this.locations) {\n output += '\\n\\n' + printSourceLocation(this.source, location);\n }\n }\n\n return output;\n }\n\n toJSON() {\n const formattedError = {\n message: this.message,\n };\n\n if (this.locations != null) {\n formattedError.locations = this.locations;\n }\n\n if (this.path != null) {\n formattedError.path = this.path;\n }\n\n if (this.extensions != null && Object.keys(this.extensions).length > 0) {\n formattedError.extensions = this.extensions;\n }\n\n return formattedError;\n }\n}\n\nfunction undefinedIfEmpty(array) {\n return array === undefined || array.length === 0 ? undefined : array;\n}\n/**\n * See: https://spec.graphql.org/draft/#sec-Errors\n */\n\n/**\n * Prints a GraphQLError to a string, representing useful location information\n * about the error's position in the source.\n *\n * @deprecated Please use `error.toString` instead. Will be removed in v17\n */\nexport function printError(error) {\n return error.toString();\n}\n/**\n * Given a GraphQLError, format it according to the rules described by the\n * Response Format, Errors section of the GraphQL Specification.\n *\n * @deprecated Please use `error.toJSON` instead. Will be removed in v17\n */\n\nexport function formatError(error) {\n return error.toJSON();\n}\n","import { GraphQLError } from './GraphQLError.mjs';\n/**\n * Produces a GraphQLError representing a syntax error, containing useful\n * descriptive information about the syntax error's position in the source.\n */\n\nexport function syntaxError(source, position, description) {\n return new GraphQLError(`Syntax Error: ${description}`, {\n source,\n positions: [position],\n });\n}\n","/**\n * Contains a range of UTF-8 character offsets and token references that\n * identify the region of the source from which the AST derived.\n */\nexport class Location {\n /**\n * The character offset at which this Node begins.\n */\n\n /**\n * The character offset at which this Node ends.\n */\n\n /**\n * The Token at which this Node begins.\n */\n\n /**\n * The Token at which this Node ends.\n */\n\n /**\n * The Source document the AST represents.\n */\n constructor(startToken, endToken, source) {\n this.start = startToken.start;\n this.end = endToken.end;\n this.startToken = startToken;\n this.endToken = endToken;\n this.source = source;\n }\n\n get [Symbol.toStringTag]() {\n return 'Location';\n }\n\n toJSON() {\n return {\n start: this.start,\n end: this.end,\n };\n }\n}\n/**\n * Represents a range of characters represented by a lexical token\n * within a Source.\n */\n\nexport class Token {\n /**\n * The kind of Token.\n */\n\n /**\n * The character offset at which this Node begins.\n */\n\n /**\n * The character offset at which this Node ends.\n */\n\n /**\n * The 1-indexed line number on which this Token appears.\n */\n\n /**\n * The 1-indexed column number at which this Token begins.\n */\n\n /**\n * For non-punctuation tokens, represents the interpreted value of the token.\n *\n * Note: is undefined for punctuation tokens, but typed as string for\n * convenience in the parser.\n */\n\n /**\n * Tokens exist as nodes in a double-linked-list amongst all tokens\n * including ignored tokens. <SOF> is always the first node and <EOF>\n * the last.\n */\n constructor(kind, start, end, line, column, value) {\n this.kind = kind;\n this.start = start;\n this.end = end;\n this.line = line;\n this.column = column; // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n\n this.value = value;\n this.prev = null;\n this.next = null;\n }\n\n get [Symbol.toStringTag]() {\n return 'Token';\n }\n\n toJSON() {\n return {\n kind: this.kind,\n value: this.value,\n line: this.line,\n column: this.column,\n };\n }\n}\n/**\n * The list of all possible AST node types.\n */\n\n/**\n * @internal\n */\nexport const QueryDocumentKeys = {\n Name: [],\n Document: ['definitions'],\n OperationDefinition: [\n 'name',\n 'variableDefinitions',\n 'directives',\n 'selectionSet',\n ],\n VariableDefinition: ['variable', 'type', 'defaultValue', 'directives'],\n Variable: ['name'],\n SelectionSet: ['selections'],\n Field: ['alias', 'name', 'arguments', 'directives', 'selectionSet'],\n Argument: ['name', 'value'],\n FragmentSpread: ['name', 'directives'],\n InlineFragment: ['typeCondition', 'directives', 'selectionSet'],\n FragmentDefinition: [\n 'name', // Note: fragment variable definitions are deprecated and will removed in v17.0.0\n 'variableDefinitions',\n 'typeCondition',\n 'directives',\n 'selectionSet',\n ],\n IntValue: [],\n FloatValue: [],\n StringValue: [],\n BooleanValue: [],\n NullValue: [],\n EnumValue: [],\n ListValue: ['values'],\n ObjectValue: ['fields'],\n ObjectField: ['name', 'value'],\n Directive: ['name', 'arguments'],\n NamedType: ['name'],\n ListType: ['type'],\n NonNullType: ['type'],\n SchemaDefinition: ['description', 'directives', 'operationTypes'],\n OperationTypeDefinition: ['type'],\n ScalarTypeDefinition: ['description', 'name', 'directives'],\n ObjectTypeDefinition: [\n 'description',\n 'name',\n 'interfaces',\n 'directives',\n 'fields',\n ],\n FieldDefinition: ['description', 'name', 'arguments', 'type', 'directives'],\n InputValueDefinition: [\n 'description',\n 'name',\n 'type',\n 'defaultValue',\n 'directives',\n ],\n InterfaceTypeDefinition: [\n 'description',\n 'name',\n 'interfaces',\n 'directives',\n 'fields',\n ],\n UnionTypeDefinition: ['description', 'name', 'directives', 'types'],\n EnumTypeDefinition: ['description', 'name', 'directives', 'values'],\n EnumValueDefinition: ['description', 'name', 'directives'],\n InputObjectTypeDefinition: ['description', 'name', 'directives', 'fields'],\n DirectiveDefinition: ['description', 'name', 'arguments', 'locations'],\n SchemaExtension: ['directives', 'operationTypes'],\n ScalarTypeExtension: ['name', 'directives'],\n ObjectTypeExtension: ['name', 'interfaces', 'directives', 'fields'],\n InterfaceTypeExtension: ['name', 'interfaces', 'directives', 'fields'],\n UnionTypeExtension: ['name', 'directives', 'types'],\n EnumTypeExtension: ['name', 'directives', 'values'],\n InputObjectTypeExtension: ['name', 'directives', 'fields'],\n};\nconst kindValues = new Set(Object.keys(QueryDocumentKeys));\n/**\n * @internal\n */\n\nexport function isNode(maybeNode) {\n const maybeKind =\n maybeNode === null || maybeNode === void 0 ? void 0 : maybeNode.kind;\n return typeof maybeKind === 'string' && kindValues.has(maybeKind);\n}\n/** Name */\n\nvar OperationTypeNode;\n\n(function (OperationTypeNode) {\n OperationTypeNode['QUERY'] = 'query';\n OperationTypeNode['MUTATION'] = 'mutation';\n OperationTypeNode['SUBSCRIPTION'] = 'subscription';\n})(OperationTypeNode || (OperationTypeNode = {}));\n\nexport { OperationTypeNode };\n","/**\n * The set of allowed directive location values.\n */\nvar DirectiveLocation;\n\n(function (DirectiveLocation) {\n DirectiveLocation['QUERY'] = 'QUERY';\n DirectiveLocation['MUTATION'] = 'MUTATION';\n DirectiveLocation['SUBSCRIPTION'] = 'SUBSCRIPTION';\n DirectiveLocation['FIELD'] = 'FIELD';\n DirectiveLocation['FRAGMENT_DEFINITION'] = 'FRAGMENT_DEFINITION';\n DirectiveLocation['FRAGMENT_SPREAD'] = 'FRAGMENT_SPREAD';\n DirectiveLocation['INLINE_FRAGMENT'] = 'INLINE_FRAGMENT';\n DirectiveLocation['VARIABLE_DEFINITION'] = 'VARIABLE_DEFINITION';\n DirectiveLocation['SCHEMA'] = 'SCHEMA';\n DirectiveLocation['SCALAR'] = 'SCALAR';\n DirectiveLocation['OBJECT'] = 'OBJECT';\n DirectiveLocation['FIELD_DEFINITION'] = 'FIELD_DEFINITION';\n DirectiveLocation['ARGUMENT_DEFINITION'] = 'ARGUMENT_DEFINITION';\n DirectiveLocation['INTERFACE'] = 'INTERFACE';\n DirectiveLocation['UNION'] = 'UNION';\n DirectiveLocation['ENUM'] = 'ENUM';\n DirectiveLocation['ENUM_VALUE'] = 'ENUM_VALUE';\n DirectiveLocation['INPUT_OBJECT'] = 'INPUT_OBJECT';\n DirectiveLocation['INPUT_FIELD_DEFINITION'] = 'INPUT_FIELD_DEFINITION';\n})(DirectiveLocation || (DirectiveLocation = {}));\n\nexport { DirectiveLocation };\n/**\n * The enum type representing the directive location values.\n *\n * @deprecated Please use `DirectiveLocation`. Will be remove in v17.\n */\n","/**\n * The set of allowed kind values for AST nodes.\n */\nvar Kind;\n\n(function (Kind) {\n Kind['NAME'] = 'Name';\n Kind['DOCUMENT'] = 'Document';\n Kind['OPERATION_DEFINITION'] = 'OperationDefinition';\n Kind['VARIABLE_DEFINITION'] = 'VariableDefinition';\n Kind['SELECTION_SET'] = 'SelectionSet';\n Kind['FIELD'] = 'Field';\n Kind['ARGUMENT'] = 'Argument';\n Kind['FRAGMENT_SPREAD'] = 'FragmentSpread';\n Kind['INLINE_FRAGMENT'] = 'InlineFragment';\n Kind['FRAGMENT_DEFINITION'] = 'FragmentDefinition';\n Kind['VARIABLE'] = 'Variable';\n Kind['INT'] = 'IntValue';\n Kind['FLOAT'] = 'FloatValue';\n Kind['STRING'] = 'StringValue';\n Kind['BOOLEAN'] = 'BooleanValue';\n Kind['NULL'] = 'NullValue';\n Kind['ENUM'] = 'EnumValue';\n Kind['LIST'] = 'ListValue';\n Kind['OBJECT'] = 'ObjectValue';\n Kind['OBJECT_FIELD'] = 'ObjectField';\n Kind['DIRECTIVE'] = 'Directive';\n Kind['NAMED_TYPE'] = 'NamedType';\n Kind['LIST_TYPE'] = 'ListType';\n Kind['NON_NULL_TYPE'] = 'NonNullType';\n Kind['SCHEMA_DEFINITION'] = 'SchemaDefinition';\n Kind['OPERATION_TYPE_DEFINITION'] = 'OperationTypeDefinition';\n Kind['SCALAR_TYPE_DEFINITION'] = 'ScalarTypeDefinition';\n Kind['OBJECT_TYPE_DEFINITION'] = 'ObjectTypeDefinition';\n Kind['FIELD_DEFINITION'] = 'FieldDefinition';\n Kind['INPUT_VALUE_DEFINITION'] = 'InputValueDefinition';\n Kind['INTERFACE_TYPE_DEFINITION'] = 'InterfaceTypeDefinition';\n Kind['UNION_TYPE_DEFINITION'] = 'UnionTypeDefinition';\n Kind['ENUM_TYPE_DEFINITION'] = 'EnumTypeDefinition';\n Kind['ENUM_VALUE_DEFINITION'] = 'EnumValueDefinition';\n Kind['INPUT_OBJECT_TYPE_DEFINITION'] = 'InputObjectTypeDefinition';\n Kind['DIRECTIVE_DEFINITION'] = 'DirectiveDefinition';\n Kind['SCHEMA_EXTENSION'] = 'SchemaExtension';\n Kind['SCALAR_TYPE_EXTENSION'] = 'ScalarTypeExtension';\n Kind['OBJECT_TYPE_EXTENSION'] = 'ObjectTypeExtension';\n Kind['INTERFACE_TYPE_EXTENSION'] = 'InterfaceTypeExtension';\n Kind['UNION_TYPE_EXTENSION'] = 'UnionTypeExtension';\n Kind['ENUM_TYPE_EXTENSION'] = 'EnumTypeExtension';\n Kind['INPUT_OBJECT_TYPE_EXTENSION'] = 'InputObjectTypeExtension';\n})(Kind || (Kind = {}));\n\nexport { Kind };\n/**\n * The enum type representing the possible kind values of AST nodes.\n *\n * @deprecated Please use `Kind`. Will be remove in v17.\n */\n","/**\n * An exported enum describing the different kinds of tokens that the\n * lexer emits.\n */\nvar TokenKind;\n\n(function (TokenKind) {\n TokenKind['SOF'] = '<SOF>';\n TokenKind['EOF'] = '<EOF>';\n TokenKind['BANG'] = '!';\n TokenKind['DOLLAR'] = '$';\n TokenKind['AMP'] = '&';\n TokenKind['PAREN_L'] = '(';\n TokenKind['PAREN_R'] = ')';\n TokenKind['SPREAD'] = '...';\n TokenKind['COLON'] = ':';\n TokenKind['EQUALS'] = '=';\n TokenKind['AT'] = '@';\n TokenKind['BRACKET_L'] = '[';\n TokenKind['BRACKET_R'] = ']';\n TokenKind['BRACE_L'] = '{';\n TokenKind['PIPE'] = '|';\n TokenKind['BRACE_R'] = '}';\n TokenKind['NAME'] = 'Name';\n TokenKind['INT'] = 'Int';\n TokenKind['FLOAT'] = 'Float';\n TokenKind['STRING'] = 'String';\n TokenKind['BLOCK_STRING'] = 'BlockString';\n TokenKind['COMMENT'] = 'Comment';\n})(TokenKind || (TokenKind = {}));\n\nexport { TokenKind };\n/**\n * The enum type representing the token kinds values.\n *\n * @deprecated Please use `TokenKind`. Will be remove in v17.\n */\n","/**\n * ```\n * WhiteSpace ::\n * - \"Horizontal Tab (U+0009)\"\n * - \"Space (U+0020)\"\n * ```\n * @internal\n */\nexport function isWhiteSpace(code) {\n return code === 0x0009 || code === 0x0020;\n}\n/**\n * ```\n * Digit :: one of\n * - `0` `1` `2` `3` `4` `5` `6` `7` `8` `9`\n * ```\n * @internal\n */\n\nexport function isDigit(code) {\n return code >= 0x0030 && code <= 0x0039;\n}\n/**\n * ```\n * Letter :: one of\n * - `A` `B` `C` `D` `E` `F` `G` `H` `I` `J` `K` `L` `M`\n * - `N` `O` `P` `Q` `R` `S` `T` `U` `V` `W` `X` `Y` `Z`\n * - `a` `b` `c` `d` `e` `f` `g` `h` `i` `j` `k` `l` `m`\n * - `n` `o` `p` `q` `r` `s` `t` `u` `v` `w` `x` `y` `z`\n * ```\n * @internal\n */\n\nexport function isLetter(code) {\n return (\n (code >= 0x0061 && code <= 0x007a) || // A-Z\n (code >= 0x0041 && code <= 0x005a) // a-z\n );\n}\n/**\n * ```\n * NameStart ::\n * - Letter\n * - `_`\n * ```\n * @internal\n */\n\nexport function isNameStart(code) {\n return isLetter(code) || code === 0x005f;\n}\n/**\n * ```\n * NameContinue ::\n * - Letter\n * - Digit\n * - `_`\n * ```\n * @internal\n */\n\nexport function isNameContinue(code) {\n return isLetter(code) || isDigit(code) || code === 0x005f;\n}\n","import { isWhiteSpace } from './characterClasses.mjs';\n/**\n * Produces the value of a block string from its parsed raw value, similar to\n * CoffeeScript's block string, Python's docstring trim or Ruby's strip_heredoc.\n *\n * This implements the GraphQL spec's BlockStringValue() static algorithm.\n *\n * @internal\n */\n\nexport function dedentBlockStringLines(lines) {\n var _firstNonEmptyLine2;\n\n let commonIndent = Number.MAX_SAFE_INTEGER;\n let firstNonEmptyLine = null;\n let lastNonEmptyLine = -1;\n\n for (let i = 0; i < lines.length; ++i) {\n var _firstNonEmptyLine;\n\n const line = lines[i];\n const indent = leadingWhitespace(line);\n\n if (indent === line.length) {\n continue; // skip empty lines\n }\n\n firstNonEmptyLine =\n (_firstNonEmptyLine = firstNonEmptyLine) !== null &&\n _firstNonEmptyLine !== void 0\n ? _firstNonEmptyLine\n : i;\n lastNonEmptyLine = i;\n\n if (i !== 0 && indent < commonIndent) {\n commonIndent = indent;\n }\n }\n\n return lines // Remove common indentation from all lines but first.\n .map((line, i) => (i === 0 ? line : line.slice(commonIndent))) // Remove leading and trailing blank lines.\n .slice(\n (_firstNonEmptyLine2 = firstNonEmptyLine) !== null &&\n _firstNonEmptyLine2 !== void 0\n ? _firstNonEmptyLine2\n : 0,\n lastNonEmptyLine + 1,\n );\n}\n\nfunction leadingWhitespace(str) {\n let i = 0;\n\n while (i < str.length && isWhiteSpace(str.charCodeAt(i))) {\n ++i;\n }\n\n return i;\n}\n/**\n * @internal\n */\n\nexport function isPrintableAsBlockString(value) {\n if (value === '') {\n return true; // empty string is printable\n }\n\n let isEmptyLine = true;\n let hasIndent = false;\n let hasCommonIndent = true;\n let seenNonEmptyLine = false;\n\n for (let i = 0; i < value.length; ++i) {\n switch (value.codePointAt(i)) {\n case 0x0000:\n case 0x0001:\n case 0x0002:\n case 0x0003:\n case 0x0004:\n case 0x0005:\n case 0x0006:\n case 0x0007:\n case 0x0008:\n case 0x000b:\n case 0x000c:\n case 0x000e:\n case 0x000f:\n return false;\n // Has non-printable characters\n\n case 0x000d:\n // \\r\n return false;\n // Has \\r or \\r\\n which will be replaced as \\n\n\n case 10:\n // \\n\n if (isEmptyLine && !seenNonEmptyLine) {\n return false; // Has leading new line\n }\n\n seenNonEmptyLine = true;\n isEmptyLine = true;\n hasIndent = false;\n break;\n\n case 9: // \\t\n\n case 32:\n // <space>\n hasIndent || (hasIndent = isEmptyLine);\n break;\n\n default:\n hasCommonIndent && (hasCommonIndent = hasIndent);\n isEmptyLine = false;\n }\n }\n\n if (isEmptyLine) {\n return false; // Has trailing empty lines\n }\n\n if (hasCommonIndent && seenNonEmptyLine) {\n return false; // Has internal indent\n }\n\n return true;\n}\n/**\n * Print a block string in the indented block form by adding a leading and\n * trailing blank line. However, if a block string starts with whitespace and is\n * a single-line, adding a leading blank line would strip that whitespace.\n *\n * @internal\n */\n\nexport function printBlockString(value, options) {\n const escapedValue = value.replace(/\"\"\"/g, '\\\\\"\"\"'); // Expand a block string's raw value into independent lines.\n\n const lines = escapedValue.split(/\\r\\n|[\\n\\r]/g);\n const isSingleLine = lines.length === 1; // If common indentation is found we can fix some of those cases by adding leading new line\n\n const forceLeadingNewLine =\n lines.length > 1 &&\n lines\n .slice(1)\n .every((line) => line.length === 0 || isWhiteSpace(line.charCodeAt(0))); // Trailing triple quotes just looks confusing but doesn't force trailing new line\n\n const hasTrailingTripleQuotes = escapedValue.endsWith('\\\\\"\"\"'); // Trailing quote (single or double) or slash forces trailing new line\n\n const hasTrailingQuote = value.endsWith('\"') && !hasTrailingTripleQuotes;\n const hasTrailingSlash = value.endsWith('\\\\');\n const forceTrailingNewline = hasTrailingQuote || hasTrailingSlash;\n const printAsMultipleLines =\n !(options !== null && options !== void 0 && options.minimize) && // add leading and trailing new lines only if it improves readability\n (!isSingleLine ||\n value.length > 70 ||\n forceTrailingNewline ||\n forceLeadingNewLine ||\n hasTrailingTripleQuotes);\n let result = ''; // Format a multi-line block quote to account for leading space.\n\n const skipLeadingNewLine = isSingleLine && isWhiteSpace(value.charCodeAt(0));\n\n if ((printAsMultipleLines && !skipLeadingNewLine) || forceLeadingNewLine) {\n result += '\\n';\n }\n\n result += escapedValue;\n\n if (printAsMultipleLines || forceTrailingNewline) {\n result += '\\n';\n }\n\n return '\"\"\"' + result + '\"\"\"';\n}\n","import { syntaxError } from '../error/syntaxError.mjs';\nimport { Token } from './ast.mjs';\nimport { dedentBlockStringLines } from './blockString.mjs';\nimport { isDigit, isNameContinue, isNameStart } from './characterClasses.mjs';\nimport { TokenKind } from './tokenKind.mjs';\n/**\n * Given a Source object, creates a Lexer for that source.\n * A Lexer is a stateful stream generator in that every time\n * it is advanced, it returns the next token in the Source. Assuming the\n * source lexes, the final Token emitted by the lexer will be of kind\n * EOF, after which the lexer will repeatedly return the same EOF token\n * whenever called.\n */\n\nexport class Lexer {\n /**\n * The previously focused non-ignored token.\n */\n\n /**\n * The currently focused non-ignored token.\n */\n\n /**\n * The (1-indexed) line containing the current token.\n */\n\n /**\n * The character offset at which the current line begins.\n */\n constructor(source) {\n const startOfFileToken = new Token(TokenKind.SOF, 0, 0, 0, 0);\n this.source = source;\n this.lastToken = startOfFileToken;\n this.token = startOfFileToken;\n this.line = 1;\n this.lineStart = 0;\n }\n\n get [Symbol.toStringTag]() {\n return 'Lexer';\n }\n /**\n * Advances the token stream to the next non-ignored token.\n */\n\n advance() {\n this.lastToken = this.token;\n const token = (this.token = this.lookahead());\n return token;\n }\n /**\n * Looks ahead and returns the next non-ignored token, but does not change\n * the state of Lexer.\n */\n\n lookahead() {\n let token = this.token;\n\n if (token.kind !== TokenKind.EOF) {\n do {\n if (token.next) {\n token = token.next;\n } else {\n // Read the next token and form a link in the token linked-list.\n const nextToken = readNextToken(this, token.end); // @ts-expect-error next is only mutable during parsing.\n\n token.next = nextToken; // @ts-expect-error prev is only mutable during parsing.\n\n nextToken.prev = token;\n token = nextToken;\n }\n } while (token.kind === TokenKind.COMMENT);\n }\n\n return token;\n }\n}\n/**\n * @internal\n */\n\nexport function isPunctuatorTokenKind(kind) {\n return (\n kind === TokenKind.BANG ||\n kind === TokenKind.DOLLAR ||\n kind === TokenKind.AMP ||\n kind === TokenKind.PAREN_L ||\n kind === TokenKind.PAREN_R ||\n kind === TokenKind.SPREAD ||\n kind === TokenKind.COLON ||\n kind === TokenKind.EQUALS ||\n kind === TokenKind.AT ||\n kind === TokenKind.BRACKET_L ||\n kind === TokenKind.BRACKET_R ||\n kind === TokenKind.BRACE_L ||\n kind === TokenKind.PIPE ||\n kind === TokenKind.BRACE_R\n );\n}\n/**\n * A Unicode scalar value is any Unicode code point except surrogate code\n * points. In other words, the inclusive ranges of values 0x0000 to 0xD7FF and\n * 0xE000 to 0x10FFFF.\n *\n * SourceCharacter ::\n * - \"Any Unicode scalar value\"\n */\n\nfunction isUnicodeScalarValue(code) {\n return (\n (code >= 0x0000 && code <= 0xd7ff) || (code >= 0xe000 && code <= 0x10ffff)\n );\n}\n/**\n * The GraphQL specification defines source text as a sequence of unicode scalar\n * values (which Unicode defines to exclude surrogate code points). However\n * JavaScript defines strings as a sequence of UTF-16 code units which may\n * include surrogates. A surrogate pair is a valid source character as it\n * encodes a supplementary code point (above U+FFFF), but unpaired surrogate\n * code points are not valid source characters.\n */\n\nfunction isSupplementaryCodePoint(body, location) {\n return (\n isLeadingSurrogate(body.charCodeAt(location)) &&\n isTrailingSurrogate(body.charCodeAt(location + 1))\n );\n}\n\nfunction isLeadingSurrogate(code) {\n return code >= 0xd800 && code <= 0xdbff;\n}\n\nfunction isTrailingSurrogate(code) {\n return code >= 0xdc00 && code <= 0xdfff;\n}\n/**\n * Prints the code point (or end of file reference) at a given location in a\n * source for use in error messages.\n *\n * Printable ASCII is printed quoted, while other points are printed in Unicode\n * code point form (ie. U+1234).\n */\n\nfunction printCodePointAt(lexer, location) {\n const code = lexer.source.body.codePointAt(location);\n\n if (code === undefined) {\n return TokenKind.EOF;\n } else if (code >= 0x0020 && code <= 0x007e) {\n // Printable ASCII\n const char = String.fromCodePoint(code);\n return char === '\"' ? \"'\\\"'\" : `\"${char}\"`;\n } // Unicode code point\n\n return 'U+' + code.toString(16).toUpperCase().padStart(4, '0');\n}\n/**\n * Create a token with line and column location information.\n */\n\nfunction createToken(lexer, kind, start, end, value) {\n const line = lexer.line;\n const col = 1 + start - lexer.lineStart;\n return new Token(kind, start, end, line, col, value);\n}\n/**\n * Gets the next token from the source starting at the given position.\n *\n * This skips over whitespace until it finds the next lexable token, then lexes\n * punctuators immediately or calls the appropriate helper function for more\n * complicated tokens.\n */\n\nfunction readNextToken(lexer, start) {\n const body = lexer.source.body;\n const bodyLength = body.length;\n let position = start;\n\n while (position < bodyLength) {\n const code = body.charCodeAt(position); // SourceCharacter\n\n switch (code) {\n // Ignored ::\n // - UnicodeBOM\n // - WhiteSpace\n // - LineTerminator\n // - Comment\n // - Comma\n //\n // UnicodeBOM :: \"Byte Order Mark (U+FEFF)\"\n //\n // WhiteSpace ::\n // - \"Horizontal Tab (U+0009)\"\n // - \"Space (U+0020)\"\n //\n // Comma :: ,\n case 0xfeff: // <BOM>\n\n case 0x0009: // \\t\n\n case 0x0020: // <space>\n\n case 0x002c:\n // ,\n ++position;\n continue;\n // LineTerminator ::\n // - \"New Line (U+000A)\"\n // - \"Carriage Return (U+000D)\" [lookahead != \"New Line (U+000A)\"]\n // - \"Carriage Return (U+000D)\" \"New Line (U+000A)\"\n\n case 0x000a:\n // \\n\n ++position;\n ++lexer.line;\n lexer.lineStart = position;\n continue;\n\n case 0x000d:\n // \\r\n if (body.charCodeAt(position + 1) === 0x000a) {\n position += 2;\n } else {\n ++position;\n }\n\n ++lexer.line;\n lexer.lineStart = position;\n continue;\n // Comment\n\n case 0x0023:\n // #\n return readComment(lexer, position);\n // Token ::\n // - Punctuator\n // - Name\n // - IntValue\n // - FloatValue\n // - StringValue\n //\n // Punctuator :: one of ! $ & ( ) ... : = @ [ ] { | }\n\n case 0x0021:\n // !\n return createToken(lexer, TokenKind.BANG, position, position + 1);\n\n case 0x0024:\n // $\n return createToken(lexer, TokenKind.DOLLAR, position, position + 1);\n\n case 0x0026:\n // &\n return createToken(lexer, TokenKind.AMP, position, position + 1);\n\n case 0x0028:\n // (\n return createToken(lexer, TokenKind.PAREN_L, position, position + 1);\n\n case 0x0029:\n // )\n return createToken(lexer, TokenKind.PAREN_R, position, position + 1);\n\n case 0x002e:\n // .\n if (\n body.charCodeAt(position + 1) === 0x002e &&\n body.charCodeAt(position + 2) === 0x002e\n ) {\n return createToken(lexer, TokenKind.SPREAD, position, position + 3);\n }\n\n break;\n\n case 0x003a:\n // :\n return createToken(lexer, TokenKind.COLON, position, position + 1);\n\n case 0x003d:\n // =\n return createToken(lexer, TokenKind.EQUALS, position, position + 1);\n\n case 0x0040:\n // @\n return createToken(lexer, TokenKind.AT, position, position + 1);\n\n case 0x005b:\n // [\n return createToken(lexer, TokenKind.BRACKET_L, position, position + 1);\n\n case 0x005d:\n // ]\n return createToken(lexer, TokenKind.BRACKET_R, position, position + 1);\n\n case 0x007b:\n // {\n return createToken(lexer, TokenKind.BRACE_L, position, position + 1);\n\n case 0x007c:\n // |\n return createToken(lexer, TokenKind.PIPE, position, position + 1);\n\n case 0x007d:\n // }\n return createToken(lexer, TokenKind.BRACE_R, position, position + 1);\n // StringValue\n\n case 0x0022:\n // \"\n if (\n body.charCodeAt(position + 1) === 0x0022 &&\n body.charCodeAt(position + 2) === 0x0022\n ) {\n return readBlockString(lexer, position);\n }\n\n return readString(lexer, position);\n } // IntValue | FloatValue (Digit | -)\n\n if (isDigit(code) || code === 0x002d) {\n return readNumber(lexer, position, code);\n } // Name\n\n if (isNameStart(code)) {\n return readName(lexer, position);\n }\n\n throw syntaxError(\n lexer.source,\n position,\n code === 0x0027\n ? 'Unexpected single quote character (\\'), did you mean to use a double quote (\")?'\n : isUnicodeScalarValue(code) || isSupplementaryCodePoint(body, position)\n ? `Unexpected character: ${printCodePointAt(lexer, position)}.`\n : `Invalid character: ${printCodePointAt(lexer, position)}.`,\n );\n }\n\n return createToken(lexer, TokenKind.EOF, bodyLength, bodyLength);\n}\n/**\n * Reads a comment token from the source file.\n *\n * ```\n * Comment :: # CommentChar* [lookahead != CommentChar]\n *\n * CommentChar :: SourceCharacter but not LineTerminator\n * ```\n */\n\nfunction readComment(lexer, start) {\n const body = lexer.source.body;\n const bodyLength = body.length;\n let position = start + 1;\n\n while (position < bodyLength) {\n const code = body.charCodeAt(position); // LineTerminator (\\n | \\r)\n\n if (code === 0x000a || code === 0x000d) {\n break;\n } // SourceCharacter\n\n if (isUnicodeScalarValue(code)) {\n ++position;\n } else if (isSupplementaryCodePoint(body, position)) {\n position += 2;\n } else {\n break;\n }\n }\n\n return createToken(\n lexer,\n TokenKind.COMMENT,\n start,\n position,\n body.slice(start + 1, position),\n );\n}\n/**\n * Reads a number token from the source file, either a FloatValue or an IntValue\n * depending on whether a FractionalPart or ExponentPart is encountered.\n *\n * ```\n * IntValue :: IntegerPart [lookahead != {Digit, `.`, NameStart}]\n *\n * IntegerPart ::\n * - NegativeSign? 0\n * - NegativeSign? NonZeroDigit Digit*\n *\n * NegativeSign :: -\n *\n * NonZeroDigit :: Digit but not `0`\n *\n * FloatValue ::\n * - IntegerPart FractionalPart ExponentPart [lookahead != {Digit, `.`, NameStart}]\n * - IntegerPart FractionalPart [lookahead != {Digit, `.`, NameStart}]\n * - IntegerPart ExponentPart [lookahead != {Digit, `.`, NameStart}]\n *\n * FractionalPart :: . Digit+\n *\n * ExponentPart :: ExponentIndicator Sign? Digit+\n *\n * ExponentIndicator :: one of `e` `E`\n *\n * Sign :: one of + -\n * ```\n */\n\nfunction readNumber(lexer, start, firstCode) {\n const body = lexer.source.body;\n let position = start;\n let code = firstCode;\n let isFloat = false; // NegativeSign (-)\n\n if (code === 0x002d) {\n code = body.charCodeAt(++position);\n } // Zero (0)\n\n if (code === 0x0030) {\n code = body.charCodeAt(++position);\n\n if (isDigit(code)) {\n throw syntaxError(\n lexer.source,\n position,\n `Invalid number, unexpected digit after 0: ${printCodePointAt(\n lexer,\n position,\n )}.`,\n );\n }\n } else {\n position = readDigits(lexer, position, code);\n code = body.charCodeAt(position);\n } // Full stop (.)\n\n if (code === 0x002e) {\n isFloat = true;\n code = body.charCodeAt(++position);\n position = readDigits(lexer, position, code);\n code = body.charCodeAt(position);\n } // E e\n\n if (code === 0x0045 || code === 0x0065) {\n isFloat = true;\n code = body.charCodeAt(++position); // + -\n\n if (code === 0x002b || code === 0x002d) {\n code = body.charCodeAt(++position);\n }\n\n position = readDigits(lexer, position, code);\n code = body.charCodeAt(position);\n } // Numbers cannot be followed by . or NameStart\n\n if (code === 0x002e || isNameStart(code)) {\n throw syntaxError(\n lexer.source,\n position,\n `Invalid number, expected digit but got: ${printCodePointAt(\n lexer,\n position,\n )}.`,\n );\n }\n\n return createToken(\n lexer,\n isFloat ? TokenKind.FLOAT : TokenKind.INT,\n start,\n position,\n body.slice(start, position),\n );\n}\n/**\n * Returns the new position in the source after reading one or more digits.\n */\n\nfunction readDigits(lexer, start, firstCode) {\n if (!isDigit(firstCode)) {\n throw syntaxError(\n lexer.source,\n start,\n `Invalid number, expected digit but got: ${printCodePointAt(\n lexer,\n start,\n )}.`,\n );\n }\n\n const body = lexer.source.body;\n let position = start + 1; // +1 to skip first firstCode\n\n while (isDigit(body.charCodeAt(position))) {\n ++position;\n }\n\n return position;\n}\n/**\n * Reads a single-quote string token from the source file.\n *\n * ```\n * StringValue ::\n * - `\"\"` [lookahead != `\"`]\n * - `\"` StringCharacter+ `\"`\n *\n * StringCharacter ::\n * - SourceCharacter but not `\"` or `\\` or LineTerminator\n * - `\\u` EscapedUnicode\n * - `\\` EscapedCharacter\n *\n * EscapedUnicode ::\n * - `{` HexDigit+ `}`\n * - HexDigit HexDigit HexDigit HexDigit\n *\n * EscapedCharacter :: one of `\"` `\\` `/` `b` `f` `n` `r` `t`\n * ```\n */\n\nfunction readString(lexer, start) {\n const body = lexer.source.body;\n const bodyLength = body.length;\n let position = start + 1;\n let chunkStart = position;\n let value = '';\n\n while (position < bodyLength) {\n const code = body.charCodeAt(position); // Closing Quote (\")\n\n if (code === 0x0022) {\n value += body.slice(chunkStart, position);\n return createToken(lexer, TokenKind.STRING, start, position + 1, value);\n } // Escape Sequence (\\)\n\n if (code === 0x005c) {\n value += body.slice(chunkStart, position);\n const escape =\n body.charCodeAt(position + 1) === 0x0075 // u\n ? body.charCodeAt(position + 2) === 0x007b // {\n ? readEscapedUnicodeVariableWidth(lexer, position)\n : readEscapedUnicodeFixedWidth(lexer, position)\n : readEscapedCharacter(lexer, position);\n value += escape.value;\n position += escape.size;\n chunkStart = position;\n continue;\n } // LineTerminator (\\n | \\r)\n\n if (code === 0x000a || code === 0x000d) {\n break;\n } // SourceCharacter\n\n if (isUnicodeScalarValue(code)) {\n ++position;\n } else if (isSupplementaryCodePoint(body, position)) {\n position += 2;\n } else {\n throw syntaxError(\n lexer.source,\n position,\n `Invalid character within String: ${printCodePointAt(\n lexer,\n position,\n )}.`,\n );\n }\n }\n\n throw syntaxError(lexer.source, position, 'Unterminated string.');\n} // The string value and lexed size of an escape sequence.\n\nfunction readEscapedUnicodeVariableWidth(lexer, position) {\n const body = lexer.source.body;\n let point = 0;\n let size = 3; // Cannot be larger than 12 chars (\\u{00000000}).\n\n while (size < 12) {\n const code = body.charCodeAt(position + size++); // Closing Brace (})\n\n if (code === 0x007d) {\n // Must be at least 5 chars (\\u{0}) and encode a Unicode scalar value.\n if (size < 5 || !isUnicodeScalarValue(point)) {\n break;\n }\n\n return {\n value: String.fromCodePoint(point),\n size,\n };\n } // Append this hex digit to the code point.\n\n point = (point << 4) | readHexDigit(code);\n\n if (point < 0) {\n break;\n }\n }\n\n throw syntaxError(\n lexer.source,\n position,\n `Invalid Unicode escape sequence: \"${body.slice(\n position,\n position + size,\n )}\".`,\n );\n}\n\nfunction readEscapedUnicodeFixedWidth(lexer, position) {\n const body = lexer.source.body;\n const code = read16BitHexCode(body, position + 2);\n\n if (isUnicodeScalarValue(code)) {\n return {\n value: String.fromCodePoint(code),\n size: 6,\n };\n } // GraphQL allows JSON-style surrogate pair escape sequences, but only when\n // a valid pair is formed.\n\n if (isLeadingSurrogate(code)) {\n // \\u\n if (\n body.charCodeAt(position + 6) === 0x005c &&\n body.charCodeAt(position + 7) === 0x0075\n ) {\n const trailingCode = read16BitHexCode(body, position + 8);\n\n if (isTrailingSurrogate(trailingCode)) {\n // JavaScript defines strings as a sequence of UTF-16 code units and\n // encodes Unicode code points above U+FFFF using a surrogate pair of\n // code units. Since this is a surrogate pair escape sequence, just\n // include both codes into the JavaScript string value. Had JavaScript\n // not been internally based on UTF-16, then this surrogate pair would\n // be decoded to retrieve the supplementary code point.\n return {\n value: String.fromCodePoint(code, trailingCode),\n size: 12,\n };\n }\n }\n }\n\n throw syntaxError(\n lexer.source,\n position,\n `Invalid Unicode escape sequence: \"${body.slice(position, position + 6)}\".`,\n );\n}\n/**\n * Reads four hexadecimal characters and returns the positive integer that 16bit\n * hexadecimal string represents. For example, \"000f\" will return 15, and \"dead\"\n * will return 57005.\n *\n * Returns a negative number if any char was not a valid hexadecimal digit.\n */\n\nfunction read16BitHexCode(body, position) {\n // readHexDigit() returns -1 on error. ORing a negative value with any other\n // value always produces a negative value.\n return (\n (readHexDigit(body.charCodeAt(position)) << 12) |\n (readHexDigit(body.charCodeAt(position + 1)) << 8) |\n (readHexDigit(body.charCodeAt(position + 2)) << 4) |\n readHexDigit(body.charCodeAt(position + 3))\n );\n}\n/**\n * Reads a hexadecimal character and returns its positive integer value (0-15).\n *\n * '0' becomes 0, '9' becomes 9\n * 'A' becomes 10, 'F' becomes 15\n * 'a' becomes 10, 'f' becomes 15\n *\n * Returns -1 if the provided character code was not a valid hexadecimal digit.\n *\n * HexDigit :: one of\n * - `0` `1` `2` `3` `4` `5` `6` `7` `8` `9`\n * - `A` `B` `C` `D` `E` `F`\n * - `a` `b` `c` `d` `e` `f`\n */\n\nfunction readHexDigit(code) {\n return code >= 0x0030 && code <= 0x0039 // 0-9\n ? code - 0x0030\n : code >= 0x0041 && code <= 0x0046 // A-F\n ? code - 0x0037\n : code >= 0x0061 && code <= 0x0066 // a-f\n ? code - 0x0057\n : -1;\n}\n/**\n * | Escaped Character | Code Point | Character Name |\n * | ----------------- | ---------- | ---------------------------- |\n * | `\"` | U+0022 | double quote |\n * | `\\` | U+005C | reverse solidus (back slash) |\n * | `/` | U+002F | solidus (forward slash) |\n * | `b` | U+0008 | backspace |\n * | `f` | U+000C | form feed |\n * | `n` | U+000A | line feed (new line) |\n * | `r` | U+000D | carriage return |\n * | `t` | U+0009 | horizontal tab |\n */\n\nfunction readEscapedCharacter(lexer, position) {\n const body = lexer.source.body;\n const code = body.charCodeAt(position + 1);\n\n switch (code) {\n case 0x0022:\n // \"\n return {\n value: '\\u0022',\n size: 2,\n };\n\n case 0x005c:\n // \\\n return {\n value: '\\u005c',\n size: 2,\n };\n\n case 0x002f:\n // /\n return {\n value: '\\u002f',\n size: 2,\n };\n\n case 0x0062:\n // b\n return {\n value: '\\u0008',\n size: 2,\n };\n\n case 0x0066:\n // f\n return {\n value: '\\u000c',\n size: 2,\n };\n\n case 0x006e:\n // n\n return {\n value: '\\u000a',\n size: 2,\n };\n\n case 0x0072:\n // r\n return {\n value: '\\u000d',\n size: 2,\n };\n\n case 0x0074:\n // t\n return {\n value: '\\u0009',\n size: 2,\n };\n }\n\n throw syntaxError(\n lexer.source,\n position,\n `Invalid character escape sequence: \"${body.slice(\n position,\n position + 2,\n )}\".`,\n );\n}\n/**\n * Reads a block string token from the source file.\n *\n * ```\n * StringValue ::\n * - `\"\"\"` BlockStringCharacter* `\"\"\"`\n *\n * BlockStringCharacter ::\n * - SourceCharacter but not `\"\"\"` or `\\\"\"\"`\n * - `\\\"\"\"`\n * ```\n */\n\nfunction readBlockString(lexer, start) {\n const body = lexer.source.body;\n const bodyLength = body.length;\n let lineStart = lexer.lineStart;\n let position = start + 3;\n let chunkStart = position;\n let currentLine = '';\n const blockLines = [];\n\n while (position < bodyLength) {\n const code = body.charCodeAt(position); // Closing Triple-Quote (\"\"\")\n\n if (\n code === 0x0022 &&\n body.charCodeAt(position + 1) === 0x0022 &&\n body.charCodeAt(position + 2) === 0x0022\n ) {\n currentLine += body.slice(chunkStart, position);\n blockLines.push(currentLine);\n const token = createToken(\n lexer,\n TokenKind.BLOCK_STRING,\n start,\n position + 3, // Return a string of the lines joined with U+000A.\n dedentBlockStringLines(blockLines).join('\\n'),\n );\n lexer.line += blockLines.length - 1;\n lexer.lineStart = lineStart;\n return token;\n } // Escaped Triple-Quote (\\\"\"\")\n\n if (\n code === 0x005c &&\n body.charCodeAt(position + 1) === 0x0022 &&\n body.charCodeAt(position + 2) === 0x0022 &&\n body.charCodeAt(position + 3) === 0x0022\n ) {\n currentLine += body.slice(chunkStart, position);\n chunkStart = position + 1; // skip only slash\n\n position += 4;\n continue;\n } // LineTerminator\n\n if (code === 0x000a || code === 0x000d) {\n currentLine += body.slice(chunkStart, position);\n blockLines.push(currentLine);\n\n if (code === 0x000d && body.charCodeAt(position + 1) === 0x000a) {\n position += 2;\n } else {\n ++position;\n }\n\n currentLine = '';\n chunkStart = position;\n lineStart = position;\n continue;\n } // SourceCharacter\n\n if (isUnicodeScalarValue(code)) {\n ++position;\n } else if (isSupplementaryCodePoint(body, position)) {\n position += 2;\n } else {\n throw syntaxError(\n lexer.source,\n position,\n `Invalid character within String: ${printCodePointAt(\n lexer,\n position,\n )}.`,\n );\n }\n }\n\n throw syntaxError(lexer.source, position, 'Unterminated string.');\n}\n/**\n * Reads an alphanumeric + underscore name from the source.\n *\n * ```\n * Name ::\n * - NameStart NameContinue* [lookahead != NameContinue]\n * ```\n */\n\nfunction readName(lexer, start) {\n const body = lexer.source.body;\n const bodyLength = body.length;\n let position = start + 1;\n\n while (position < bodyLength) {\n const code = body.charCodeAt(position);\n\n if (isNameContinue(code)) {\n ++position;\n } else {\n break;\n }\n }\n\n return createToken(\n lexer,\n TokenKind.NAME,\n start,\n position,\n body.slice(start, position),\n );\n}\n","export function devAssert(condition, message) {\n const booleanCondition = Boolean(condition);\n\n if (!booleanCondition) {\n throw new Error(message);\n }\n}\n","const MAX_ARRAY_LENGTH = 10;\nconst MAX_RECURSIVE_DEPTH = 2;\n/**\n * Used to print values in error messages.\n */\n\nexport function inspect(value) {\n return formatValue(value, []);\n}\n\nfunction formatValue(value, seenValues) {\n switch (typeof value) {\n case 'string':\n return JSON.stringify(value);\n\n case 'function':\n return value.name ? `[function ${value.name}]` : '[function]';\n\n case 'object':\n return formatObjectValue(value, seenValues);\n\n default:\n return String(value);\n }\n}\n\nfunction formatObjectValue(value, previouslySeenValues) {\n if (value === null) {\n return 'null';\n }\n\n if (previouslySeenValues.includes(value)) {\n return '[Circular]';\n }\n\n const seenValues = [...previouslySeenValues, value];\n\n if (isJSONable(value)) {\n const jsonValue = value.toJSON(); // check for infinite recursion\n\n if (jsonValue !== value) {\n return typeof jsonValue === 'string'\n ? jsonValue\n : formatValue(jsonValue, seenValues);\n }\n } else if (Array.isArray(value)) {\n return formatArray(value, seenValues);\n }\n\n return formatObject(value, seenValues);\n}\n\nfunction isJSONable(value) {\n return typeof value.toJSON === 'function';\n}\n\nfunction formatObject(object, seenValues) {\n const entries = Object.entries(object);\n\n if (entries.length === 0) {\n return '{}';\n }\n\n if (seenValues.length > MAX_RECURSIVE_DEPTH) {\n return '[' + getObjectTag(object) + ']';\n }\n\n const properties = entries.map(\n ([key, value]) => key + ': ' + formatValue(value, seenValues),\n );\n return '{ ' + properties.join(', ') + ' }';\n}\n\nfunction formatArray(array, seenValues) {\n if (array.length === 0) {\n return '[]';\n }\n\n if (seenValues.length > MAX_RECURSIVE_DEPTH) {\n return '[Array]';\n }\n\n const len = Math.min(MAX_ARRAY_LENGTH, array.length);\n const remaining = array.length - len;\n const items = [];\n\n for (let i = 0; i < len; ++i) {\n items.push(formatValue(array[i], seenValues));\n }\n\n if (remaining === 1) {\n items.push('... 1 more item');\n } else if (remaining > 1) {\n items.push(`... ${remaining} more items`);\n }\n\n return '[' + items.join(', ') + ']';\n}\n\nfunction getObjectTag(object) {\n const tag = Object.prototype.toString\n .call(object)\n .replace(/^\\[object /, '')\n .replace(/]$/, '');\n\n if (tag === 'Object' && typeof object.constructor === 'function') {\n const name = object.constructor.name;\n\n if (typeof name === 'string' && name !== '') {\n return name;\n }\n }\n\n return tag;\n}\n","import { inspect } from './inspect.mjs';\n/**\n * A replacement for instanceof which includes an error warning when multi-realm\n * constructors are detected.\n * See: https://expressjs.com/en/advanced/best-practice-performance.html#set-node_env-to-production\n * See: https://webpack.js.org/guides/production/\n */\n\nexport const instanceOf =\n /* c8 ignore next 6 */\n // FIXME: https://github.com/graphql/graphql-js/issues/2317\n globalThis.process && globalThis.process.env.NODE_ENV === 'production'\n ? function instanceOf(value, constructor) {\n return value instanceof constructor;\n }\n : function instanceOf(value, constructor) {\n if (value instanceof constructor) {\n return true;\n }\n\n if (typeof value === 'object' && value !== null) {\n var _value$constructor;\n\n // Prefer Symbol.toStringTag since it is immune to minification.\n const className = constructor.prototype[Symbol.toStringTag];\n const valueClassName = // We still need to support constructor's name to detect conflicts with older versions of this library.\n Symbol.toStringTag in value // @ts-expect-error TS bug see, https://github.com/microsoft/TypeScript/issues/38009\n ? value[Symbol.toStringTag]\n : (_value$constructor = value.constructor) === null ||\n _value$constructor === void 0\n ? void 0\n : _value$constructor.name;\n\n if (className === valueClassName) {\n const stringifiedValue = inspect(value);\n throw new Error(`Cannot use ${className} \"${stringifiedValue}\" from another module or realm.\n\nEnsure that there is only one instance of \"graphql\" in the node_modules\ndirectory. If different versions of \"graphql\" are the dependencies of other\nrelied on modules, use \"resolutions\" to ensure only one version is installed.\n\nhttps://yarnpkg.com/en/docs/selective-version-resolutions\n\nDuplicate \"graphql\" modules cannot be used at the same time since different\nversions may have different capabilities and behavior. The data from one\nversion used in the function from another could produce confusing and\nspurious results.`);\n }\n }\n\n return false;\n };\n","import { devAssert } from '../jsutils/devAssert.mjs';\nimport { inspect } from '../jsutils/inspect.mjs';\nimport { instanceOf } from '../jsutils/instanceOf.mjs';\n\n/**\n * A representation of source input to GraphQL. The `name` and `locationOffset` parameters are\n * optional, but they are useful for clients who store GraphQL documents in source files.\n * For example, if the GraphQL input starts at line 40 in a file named `Foo.graphql`, it might\n * be useful for `name` to be `\"Foo.graphql\"` and location to be `{ line: 40, column: 1 }`.\n * The `line` and `column` properties in `locationOffset` are 1-indexed.\n */\nexport class Source {\n constructor(\n body,\n name = 'GraphQL request',\n locationOffset = {\n line: 1,\n column: 1,\n },\n ) {\n typeof body === 'string' ||\n devAssert(false, `Body must be a string. Received: ${inspect(body)}.`);\n this.body = body;\n this.name = name;\n this.locationOffset = locationOffset;\n this.locationOffset.line > 0 ||\n devAssert(\n false,\n 'line in locationOffset is 1-indexed and must be positive.',\n );\n this.locationOffset.column > 0 ||\n devAssert(\n false,\n 'column in locationOffset is 1-indexed and must be positive.',\n );\n }\n\n get [Symbol.toStringTag]() {\n return 'Source';\n }\n}\n/**\n * Test if the given value is a Source object.\n *\n * @internal\n */\n\nexport function isSource(source) {\n return instanceOf(source, Source);\n}\n","import { syntaxError } from '../error/syntaxError.mjs';\nimport { Location, OperationTypeNode } from './ast.mjs';\nimport { DirectiveLocation } from './directiveLocation.mjs';\nimport { Kind } from './kinds.mjs';\nimport { isPunctuatorTokenKind, Lexer } from './lexer.mjs';\nimport { isSource, Source } from './source.mjs';\nimport { TokenKind } from './tokenKind.mjs';\n/**\n * Configuration options to control parser behavior\n */\n\n/**\n * Given a GraphQL source, parses it into a Document.\n * Throws GraphQLError if a syntax error is encountered.\n */\nexport function parse(source, options) {\n const parser = new Parser(source, options);\n return parser.parseDocument();\n}\n/**\n * Given a string containing a GraphQL value (ex. `[42]`), parse the AST for\n * that value.\n * Throws GraphQLError if a syntax error is encountered.\n *\n * This is useful within tools that operate upon GraphQL Values directly and\n * in isolation of complete GraphQL documents.\n *\n * Consider providing the results to the utility function: valueFromAST().\n */\n\nexport function parseValue(source, options) {\n const parser = new Parser(source, options);\n parser.expectToken(TokenKind.SOF);\n const value = parser.parseValueLiteral(false);\n parser.expectToken(TokenKind.EOF);\n return value;\n}\n/**\n * Similar to parseValue(), but raises a parse error if it encounters a\n * variable. The return type will be a constant value.\n */\n\nexport function parseConstValue(source, options) {\n const parser = new Parser(source, options);\n parser.expectToken(TokenKind.SOF);\n const value = parser.parseConstValueLiteral();\n parser.expectToken(TokenKind.EOF);\n return value;\n}\n/**\n * Given a string containing a GraphQL Type (ex. `[Int!]`), parse the AST for\n * that type.\n * Throws GraphQLError if a syntax error is encountered.\n *\n * This is useful within tools that operate upon GraphQL Types directly and\n * in isolation of complete GraphQL documents.\n *\n * Consider providing the results to the utility function: typeFromAST().\n */\n\nexport function parseType(source, options) {\n const parser = new Parser(source, options);\n parser.expectToken(TokenKind.SOF);\n const type = parser.parseTypeReference();\n parser.expectToken(TokenKind.EOF);\n return type;\n}\n/**\n * This class is exported only to assist people in implementing their own parsers\n * without duplicating too much code and should be used only as last resort for cases\n * such as experimental syntax or if certain features could not be contributed upstream.\n *\n * It is still part of the internal API and is versioned, so any changes to it are never\n * considered breaking changes. If you still need to support multiple versions of the\n * library, please use the `versionInfo` variable for version detection.\n *\n * @internal\n */\n\nexport class Parser {\n constructor(source, options = {}) {\n const sourceObj = isSource(source) ? source : new Source(source);\n this._lexer = new Lexer(sourceObj);\n this._options = options;\n this._tokenCounter = 0;\n }\n /**\n * Converts a name lex token into a name parse node.\n */\n\n parseName() {\n const token = this.expectToken(TokenKind.NAME);\n return this.node(token, {\n kind: Kind.NAME,\n value: token.value,\n });\n } // Implements the parsing rules in the Document section.\n\n /**\n * Document : Definition+\n */\n\n parseDocument() {\n return this.node(this._lexer.token, {\n kind: Kind.DOCUMENT,\n definitions: this.many(\n TokenKind.SOF,\n this.parseDefinition,\n TokenKind.EOF,\n ),\n });\n }\n /**\n * Definition :\n * - ExecutableDefinition\n * - TypeSystemDefinition\n * - TypeSystemExtension\n *\n * ExecutableDefinition :\n * - OperationDefinition\n * - FragmentDefinition\n *\n * TypeSystemDefinition :\n * - SchemaDefinition\n * - TypeDefinition\n * - DirectiveDefinition\n *\n * TypeDefinition :\n * - ScalarTypeDefinition\n * - ObjectTypeDefinition\n * - InterfaceTypeDefinition\n * - UnionTypeDefinition\n * - EnumTypeDefinition\n * - InputObjectTypeDefinition\n */\n\n parseDefinition() {\n if (this.peek(TokenKind.BRACE_L)) {\n return this.parseOperationDefinition();\n } // Many definitions begin with a description and require a lookahead.\n\n const hasDescription = this.peekDescription();\n const keywordToken = hasDescription\n ? this._lexer.lookahead()\n : this._lexer.token;\n\n if (keywordToken.kind === TokenKind.NAME) {\n switch (keywordToken.value) {\n case 'schema':\n return this.parseSchemaDefinition();\n\n case 'scalar':\n return this.parseScalarTypeDefinition();\n\n case 'type':\n return this.parseObjectTypeDefinition();\n\n case 'interface':\n return this.parseInterfaceTypeDefinition();\n\n case 'union':\n return this.parseUnionTypeDefinition();\n\n case 'enum':\n return this.parseEnumTypeDefinition();\n\n case 'input':\n return this.parseInputObjectTypeDefinition();\n\n case 'directive':\n return this.parseDirectiveDefinition();\n }\n\n if (hasDescription) {\n throw syntaxError(\n this._lexer.source,\n this._lexer.token.start,\n 'Unexpected description, descriptions are supported only on type definitions.',\n );\n }\n\n switch (keywordToken.value) {\n case 'query':\n case 'mutation':\n case 'subscription':\n return this.parseOperationDefinition();\n\n case 'fragment':\n return this.parseFragmentDefinition();\n\n case 'extend':\n return this.parseTypeSystemExtension();\n }\n }\n\n throw this.unexpected(keywordToken);\n } // Implements the parsing rules in the Operations section.\n\n /**\n * OperationDefinition :\n * - SelectionSet\n * - OperationType Name? VariableDefinitions? Directives? SelectionSet\n */\n\n parseOperationDefinition() {\n const start = this._lexer.token;\n\n if (this.peek(TokenKind.BRACE_L)) {\n return this.node(start, {\n kind: Kind.OPERATION_DEFINITION,\n operation: OperationTypeNode.QUERY,\n name: undefined,\n variableDefinitions: [],\n directives: [],\n selectionSet: this.parseSelectionSet(),\n });\n }\n\n const operation = this.parseOperationType();\n let name;\n\n if (this.peek(TokenKind.NAME)) {\n name = this.parseName();\n }\n\n return this.node(start, {\n kind: Kind.OPERATION_DEFINITION,\n operation,\n name,\n variableDefinitions: this.parseVariableDefinitions(),\n directives: this.parseDirectives(false),\n selectionSet: this.parseSelectionSet(),\n });\n }\n /**\n * OperationType : one of query mutation subscription\n */\n\n parseOperationType() {\n const operationToken = this.expectToken(TokenKind.NAME);\n\n switch (operationToken.value) {\n case 'query':\n return OperationTypeNode.QUERY;\n\n case 'mutation':\n return OperationTypeNode.MUTATION;\n\n case 'subscription':\n return OperationTypeNode.SUBSCRIPTION;\n }\n\n throw this.unexpected(operationToken);\n }\n /**\n * VariableDefinitions : ( VariableDefinition+ )\n */\n\n parseVariableDefinitions() {\n return this.optionalMany(\n TokenKind.PAREN_L,\n this.parseVariableDefinition,\n TokenKind.PAREN_R,\n );\n }\n /**\n * VariableDefinition : Variable : Type DefaultValue? Directives[Const]?\n */\n\n parseVariableDefinition() {\n return this.node(this._lexer.token, {\n kind: Kind.VARIABLE_DEFINITION,\n variable: this.parseVariable(),\n type: (this.expectToken(TokenKind.COLON), this.parseTypeReference()),\n defaultValue: this.expectOptionalToken(TokenKind.EQUALS)\n ? this.parseConstValueLiteral()\n : undefined,\n directives: this.parseConstDirectives(),\n });\n }\n /**\n * Variable : $ Name\n */\n\n parseVariable() {\n const start = this._lexer.token;\n this.expectToken(TokenKind.DOLLAR);\n return this.node(start, {\n kind: Kind.VARIABLE,\n name: this.parseName(),\n });\n }\n /**\n * ```\n * SelectionSet : { Selection+ }\n * ```\n */\n\n parseSelectionSet() {\n return this.node(this._lexer.token, {\n kind: Kind.SELECTION_SET,\n selections: this.many(\n TokenKind.BRACE_L,\n this.parseSelection,\n TokenKind.BRACE_R,\n ),\n });\n }\n /**\n * Selection :\n * - Field\n * - FragmentSpread\n * - InlineFragment\n */\n\n parseSelection() {\n return this.peek(TokenKind.SPREAD)\n ? this.parseFragment()\n : this.parseField();\n }\n /**\n * Field : Alias? Name Arguments? Directives? SelectionSet?\n *\n * Alias : Name :\n */\n\n parseField() {\n const start = this._lexer.token;\n const nameOrAlias = this.parseName();\n let alias;\n let name;\n\n if (this.expectOptionalToken(TokenKind.COLON)) {\n alias = nameOrAlias;\n name = this.parseName();\n } else {\n name = nameOrAlias;\n }\n\n return this.node(start, {\n kind: Kind.FIELD,\n alias,\n name,\n arguments: this.parseArguments(false),\n directives: this.parseDirectives(false),\n selectionSet: this.peek(TokenKind.BRACE_L)\n ? this.parseSelectionSet()\n : undefined,\n });\n }\n /**\n * Arguments[Const] : ( Argument[?Const]+ )\n */\n\n parseArguments(isConst) {\n const item = isConst ? this.parseConstArgument : this.parseArgument;\n return this.optionalMany(TokenKind.PAREN_L, item, TokenKind.PAREN_R);\n }\n /**\n * Argument[Const] : Name : Value[?Const]\n */\n\n parseArgument(isConst = false) {\n const start = this._lexer.token;\n const name = this.parseName();\n this.expectToken(TokenKind.COLON);\n return this.node(start, {\n kind: Kind.ARGUMENT,\n name,\n value: this.parseValueLiteral(isConst),\n });\n }\n\n parseConstArgument() {\n return this.parseArgument(true);\n } // Implements the parsing rules in the Fragments section.\n\n /**\n * Corresponds to both FragmentSpread and InlineFragment in the spec.\n *\n * FragmentSpread : ... FragmentName Directives?\n *\n * InlineFragment : ... TypeCondition? Directives? SelectionSet\n */\n\n parseFragment() {\n const start = this._lexer.token;\n this.expectToken(TokenKind.SPREAD);\n const hasTypeCondition = this.expectOptionalKeyword('on');\n\n if (!hasTypeCondition && this.peek(TokenKind.NAME)) {\n return this.node(start, {\n kind: Kind.FRAGMENT_SPREAD,\n name: this.parseFragmentName(),\n directives: this.parseDirectives(false),\n });\n }\n\n return this.node(start, {\n kind: Kind.INLINE_FRAGMENT,\n typeCondition: hasTypeCondition ? this.parseNamedType() : undefined,\n directives: this.parseDirectives(false),\n selectionSet: this.parseSelectionSet(),\n });\n }\n /**\n * FragmentDefinition :\n * - fragment FragmentName on TypeCondition Directives? SelectionSet\n *\n * TypeCondition : NamedType\n */\n\n parseFragmentDefinition() {\n const start = this._lexer.token;\n this.expectKeyword('fragment'); // Legacy support for defining variables within fragments changes\n // the grammar of FragmentDefinition:\n // - fragment FragmentName VariableDefinitions? on TypeCondition Directives? SelectionSet\n\n if (this._options.allowLegacyFragmentVariables === true) {\n return this.node(start, {\n kind: Kind.FRAGMENT_DEFINITION,\n name: this.parseFragmentName(),\n variableDefinitions: this.parseVariableDefinitions(),\n typeCondition: (this.expectKeyword('on'), this.parseNamedType()),\n directives: this.parseDirectives(false),\n selectionSet: this.parseSelectionSet(),\n });\n }\n\n return this.node(start, {\n kind: Kind.FRAGMENT_DEFINITION,\n name: this.parseFragmentName(),\n typeCondition: (this.expectKeyword('on'), this.parseNamedType()),\n directives: this.parseDirectives(false),\n selectionSet: this.parseSelectionSet(),\n });\n }\n /**\n * FragmentName : Name but not `on`\n */\n\n parseFragmentName() {\n if (this._lexer.token.value === 'on') {\n throw this.unexpected();\n }\n\n return this.parseName();\n } // Implements the parsing rules in the Values section.\n\n /**\n * Value[Const] :\n * - [~Const] Variable\n * - IntValue\n * - FloatValue\n * - StringValue\n * - BooleanValue\n * - NullValue\n * - EnumValue\n * - ListValue[?Const]\n * - ObjectValue[?Const]\n *\n * BooleanValue : one of `true` `false`\n *\n * NullValue : `null`\n *\n * EnumValue : Name but not `true`, `false` or `null`\n */\n\n parseValueLiteral(isConst) {\n const token = this._lexer.token;\n\n switch (token.kind) {\n case TokenKind.BRACKET_L:\n return this.parseList(isConst);\n\n case TokenKind.BRACE_L:\n return this.parseObject(isConst);\n\n case TokenKind.INT:\n this.advanceLexer();\n return this.node(token, {\n kind: Kind.INT,\n value: token.value,\n });\n\n case TokenKind.FLOAT:\n this.advanceLexer();\n return this.node(token, {\n kind: Kind.FLOAT,\n value: token.value,\n });\n\n case TokenKind.STRING:\n case TokenKind.BLOCK_STRING:\n return this.parseStringLiteral();\n\n case TokenKind.NAME:\n this.advanceLexer();\n\n switch (token.value) {\n case 'true':\n return this.node(token, {\n kind: Kind.BOOLEAN,\n value: true,\n });\n\n case 'false':\n return this.node(token, {\n kind: Kind.BOOLEAN,\n value: false,\n });\n\n case 'null':\n return this.node(token, {\n kind: Kind.NULL,\n });\n\n default:\n return this.node(token, {\n kind: Kind.ENUM,\n value: token.value,\n });\n }\n\n case TokenKind.DOLLAR:\n if (isConst) {\n this.expectToken(TokenKind.DOLLAR);\n\n if (this._lexer.token.kind === TokenKind.NAME) {\n const varName = this._lexer.token.value;\n throw syntaxError(\n this._lexer.source,\n token.start,\n `Unexpected variable \"$${varName}\" in constant value.`,\n );\n } else {\n throw this.unexpected(token);\n }\n }\n\n return this.parseVariable();\n\n default:\n throw this.unexpected();\n }\n }\n\n parseConstValueLiteral() {\n return this.parseValueLiteral(true);\n }\n\n parseStringLiteral() {\n const token = this._lexer.token;\n this.advanceLexer();\n return this.node(token, {\n kind: Kind.STRING,\n value: token.value,\n block: token.kind === TokenKind.BLOCK_STRING,\n });\n }\n /**\n * ListValue[Const] :\n * - [ ]\n * - [ Value[?Const]+ ]\n */\n\n parseList(isConst) {\n const item = () => this.parseValueLiteral(isConst);\n\n return this.node(this._lexer.token, {\n kind: Kind.LIST,\n values: this.any(TokenKind.BRACKET_L, item, TokenKind.BRACKET_R),\n });\n }\n /**\n * ```\n * ObjectValue[Const] :\n * - { }\n * - { ObjectField[?Const]+ }\n * ```\n */\n\n parseObject(isConst) {\n const item = () => this.parseObjectField(isConst);\n\n return this.node(this._lexer.token, {\n kind: Kind.OBJECT,\n fields: this.any(TokenKind.BRACE_L, item, TokenKind.BRACE_R),\n });\n }\n /**\n * ObjectField[Const] : Name : Value[?Const]\n */\n\n parseObjectField(isConst) {\n const start = this._lexer.token;\n const name = this.parseName();\n this.expectToken(TokenKind.COLON);\n return this.node(start, {\n kind: Kind.OBJECT_FIELD,\n name,\n value: this.parseValueLiteral(isConst),\n });\n } // Implements the parsing rules in the Directives section.\n\n /**\n * Directives[Const] : Directive[?Const]+\n */\n\n parseDirectives(isConst) {\n const directives = [];\n\n while (this.peek(TokenKind.AT)) {\n directives.push(this.parseDirective(isConst));\n }\n\n return directives;\n }\n\n parseConstDirectives() {\n return this.parseDirectives(true);\n }\n /**\n * ```\n * Directive[Const] : @ Name Arguments[?Const]?\n * ```\n */\n\n parseDirective(isConst) {\n const start = this._lexer.token;\n this.expectToken(TokenKind.AT);\n return this.node(start, {\n kind: Kind.DIRECTIVE,\n name: this.parseName(),\n arguments: this.parseArguments(isConst),\n });\n } // Implements the parsing rules in the Types section.\n\n /**\n * Type :\n * - NamedType\n * - ListType\n * - NonNullType\n */\n\n parseTypeReference() {\n const start = this._lexer.token;\n let type;\n\n if (this.expectOptionalToken(TokenKind.BRACKET_L)) {\n const innerType = this.parseTypeReference();\n this.expectToken(TokenKind.BRACKET_R);\n type = this.node(start, {\n kind: Kind.LIST_TYPE,\n type: innerType,\n });\n } else {\n type = this.parseNamedType();\n }\n\n if (this.expectOptionalToken(TokenKind.BANG)) {\n return this.node(start, {\n kind: Kind.NON_NULL_TYPE,\n type,\n });\n }\n\n return type;\n }\n /**\n * NamedType : Name\n */\n\n parseNamedType() {\n return this.node(this._lexer.token, {\n kind: Kind.NAMED_TYPE,\n name: this.parseName(),\n });\n } // Implements the parsing rules in the Type Definition section.\n\n peekDescription() {\n return this.peek(TokenKind.STRING) || this.peek(TokenKind.BLOCK_STRING);\n }\n /**\n * Description : StringValue\n */\n\n parseDescription() {\n if (this.peekDescription()) {\n return this.parseStringLiteral();\n }\n }\n /**\n * ```\n * SchemaDefinition : Description? schema Directives[Const]? { OperationTypeDefinition+ }\n * ```\n */\n\n parseSchemaDefinition() {\n const start = this._lexer.token;\n const description = this.parseDescription();\n this.expectKeyword('schema');\n const directives = this.parseConstDirectives();\n const operationTypes = this.many(\n TokenKind.BRACE_L,\n this.parseOperationTypeDefinition,\n TokenKind.BRACE_R,\n );\n return this.node(start, {\n kind: Kind.SCHEMA_DEFINITION,\n description,\n directives,\n operationTypes,\n });\n }\n /**\n * OperationTypeDefinition : OperationType : NamedType\n */\n\n parseOperationTypeDefinition() {\n const start = this._lexer.token;\n const operation = this.parseOperationType();\n this.expectToken(TokenKind.COLON);\n const type = this.parseNamedType();\n return this.node(start, {\n kind: Kind.OPERATION_TYPE_DEFINITION,\n operation,\n type,\n });\n }\n /**\n * ScalarTypeDefinition : Description? scalar Name Directives[Const]?\n */\n\n parseScalarTypeDefinition() {\n const start = this._lexer.token;\n const description = this.parseDescription();\n this.expectKeyword('scalar');\n const name = this.parseName();\n const directives = this.parseConstDirectives();\n return this.node(start, {\n kind: Kind.SCALAR_TYPE_DEFINITION,\n description,\n name,\n directives,\n });\n }\n /**\n * ObjectTypeDefinition :\n * Description?\n * type Name ImplementsInterfaces? Directives[Const]? FieldsDefinition?\n */\n\n parseObjectTypeDefinition() {\n const start = this._lexer.token;\n const description = this.parseDescription();\n this.expectKeyword('type');\n const name = this.parseName();\n const interfaces = this.parseImplementsInterfaces();\n const directives = this.parseConstDirectives();\n const fields = this.parseFieldsDefinition();\n return this.node(start, {\n kind: Kind.OBJECT_TYPE_DEFINITION,\n description,\n name,\n interfaces,\n directives,\n fields,\n });\n }\n /**\n * ImplementsInterfaces :\n * - implements `&`? NamedType\n * - ImplementsInterfaces & NamedType\n */\n\n parseImplementsInterfaces() {\n return this.expectOptionalKeyword('implements')\n ? this.delimitedMany(TokenKind.AMP, this.parseNamedType)\n : [];\n }\n /**\n * ```\n * FieldsDefinition : { FieldDefinition+ }\n * ```\n */\n\n parseFieldsDefinition() {\n return this.optionalMany(\n TokenKind.BRACE_L,\n this.parseFieldDefinition,\n TokenKind.BRACE_R,\n );\n }\n /**\n * FieldDefinition :\n * - Description? Name ArgumentsDefinition? : Type Directives[Const]?\n */\n\n parseFieldDefinition() {\n const start = this._lexer.token;\n const description = this.parseDescription();\n const name = this.parseName();\n const args = this.parseArgumentDefs();\n this.expectToken(TokenKind.COLON);\n const type = this.parseTypeReference();\n const directives = this.parseConstDirectives();\n return this.node(start, {\n kind: Kind.FIELD_DEFINITION,\n description,\n name,\n arguments: args,\n type,\n directives,\n });\n }\n /**\n * ArgumentsDefinition : ( InputValueDefinition+ )\n */\n\n parseArgumentDefs() {\n return this.optionalMany(\n TokenKind.PAREN_L,\n this.parseInputValueDef,\n TokenKind.PAREN_R,\n );\n }\n /**\n * InputValueDefinition :\n * - Description? Name : Type DefaultValue? Directives[Const]?\n */\n\n parseInputValueDef() {\n const start = this._lexer.token;\n const description = this.parseDescription();\n const name = this.parseName();\n this.expectToken(TokenKind.COLON);\n const type = this.parseTypeReference();\n let defaultValue;\n\n if (this.expectOptionalToken(TokenKind.EQUALS)) {\n defaultValue = this.parseConstValueLiteral();\n }\n\n const directives = this.parseConstDirectives();\n return this.node(start, {\n kind: Kind.INPUT_VALUE_DEFINITION,\n description,\n name,\n type,\n defaultValue,\n directives,\n });\n }\n /**\n * InterfaceTypeDefinition :\n * - Description? interface Name Directives[Const]? FieldsDefinition?\n */\n\n parseInterfaceTypeDefinition() {\n const start = this._lexer.token;\n const description = this.parseDescription();\n this.expectKeyword('interface');\n const name = this.parseName();\n const interfaces = this.parseImplementsInterfaces();\n const directives = this.parseConstDirectives();\n const fields = this.parseFieldsDefinition();\n return this.node(start, {\n kind: Kind.INTERFACE_TYPE_DEFINITION,\n description,\n name,\n interfaces,\n directives,\n fields,\n });\n }\n /**\n * UnionTypeDefinition :\n * - Description? union Name Directives[Const]? UnionMemberTypes?\n */\n\n parseUnionTypeDefinition() {\n const start = this._lexer.token;\n const description = this.parseDescription();\n this.expectKeyword('union');\n const name = this.parseName();\n const directives = this.parseConstDirectives();\n const types = this.parseUnionMemberTypes();\n return this.node(start, {\n kind: Kind.UNION_TYPE_DEFINITION,\n description,\n name,\n directives,\n types,\n });\n }\n /**\n * UnionMemberTypes :\n * - = `|`? NamedType\n * - UnionMemberTypes | NamedType\n */\n\n parseUnionMemberTypes() {\n return this.expectOptionalToken(TokenKind.EQUALS)\n ? this.delimitedMany(TokenKind.PIPE, this.parseNamedType)\n : [];\n }\n /**\n * EnumTypeDefinition :\n * - Description? enum Name Directives[Const]? EnumValuesDefinition?\n */\n\n parseEnumTypeDefinition() {\n const start = this._lexer.token;\n const description = this.parseDescription();\n this.expectKeyword('enum');\n const name = this.parseName();\n const directives = this.parseConstDirectives();\n const values = this.parseEnumValuesDefinition();\n return this.node(start, {\n kind: Kind.ENUM_TYPE_DEFINITION,\n description,\n name,\n directives,\n values,\n });\n }\n /**\n * ```\n * EnumValuesDefinition : { EnumValueDefinition+ }\n * ```\n */\n\n parseEnumValuesDefinition() {\n return this.optionalMany(\n TokenKind.BRACE_L,\n this.parseEnumValueDefinition,\n TokenKind.BRACE_R,\n );\n }\n /**\n * EnumValueDefinition : Description? EnumValue Directives[Const]?\n */\n\n parseEnumValueDefinition() {\n const start = this._lexer.token;\n const description = this.parseDescription();\n const name = this.parseEnumValueName();\n const directives = this.parseConstDirectives();\n return this.node(start, {\n kind: Kind.ENUM_VALUE_DEFINITION,\n description,\n name,\n directives,\n });\n }\n /**\n * EnumValue : Name but not `true`, `false` or `null`\n */\n\n parseEnumValueName() {\n if (\n this._lexer.token.value === 'true' ||\n this._lexer.token.value === 'false' ||\n this._lexer.token.value === 'null'\n ) {\n throw syntaxError(\n this._lexer.source,\n this._lexer.token.start,\n `${getTokenDesc(\n this._lexer.token,\n )} is reserved and cannot be used for an enum value.`,\n );\n }\n\n return this.parseName();\n }\n /**\n * InputObjectTypeDefinition :\n * - Description? input Name Directives[Const]? InputFieldsDefinition?\n */\n\n parseInputObjectTypeDefinition() {\n const start = this._lexer.token;\n const description = this.parseDescription();\n this.expectKeyword('input');\n const name = this.parseName();\n const directives = this.parseConstDirectives();\n const fields = this.parseInputFieldsDefinition();\n return this.node(start, {\n kind: Kind.INPUT_OBJECT_TYPE_DEFINITION,\n description,\n name,\n directives,\n fields,\n });\n }\n /**\n * ```\n * InputFieldsDefinition : { InputValueDefinition+ }\n * ```\n */\n\n parseInputFieldsDefinition() {\n return this.optionalMany(\n TokenKind.BRACE_L,\n this.parseInputValueDef,\n TokenKind.BRACE_R,\n );\n }\n /**\n * TypeSystemExtension :\n * - SchemaExtension\n * - TypeExtension\n *\n * TypeExtension :\n * - ScalarTypeExtension\n * - ObjectTypeExtension\n * - InterfaceTypeExtension\n * - UnionTypeExtension\n * - EnumTypeExtension\n * - InputObjectTypeDefinition\n */\n\n parseTypeSystemExtension() {\n const keywordToken = this._lexer.lookahead();\n\n if (keywordToken.kind === TokenKind.NAME) {\n switch (keywordToken.value) {\n case 'schema':\n return this.parseSchemaExtension();\n\n case 'scalar':\n return this.parseScalarTypeExtension();\n\n case 'type':\n return this.parseObjectTypeExtension();\n\n case 'interface':\n return this.parseInterfaceTypeExtension();\n\n case 'union':\n return this.parseUnionTypeExtension();\n\n case 'enum':\n return this.parseEnumTypeExtension();\n\n case 'input':\n return this.parseInputObjectTypeExtension();\n }\n }\n\n throw this.unexpected(keywordToken);\n }\n /**\n * ```\n * SchemaExtension :\n * - extend schema Directives[Const]? { OperationTypeDefinition+ }\n * - extend schema Directives[Const]\n * ```\n */\n\n parseSchemaExtension() {\n const start = this._lexer.token;\n this.expectKeyword('extend');\n this.expectKeyword('schema');\n const directives = this.parseConstDirectives();\n const operationTypes = this.optionalMany(\n TokenKind.BRACE_L,\n this.parseOperationTypeDefinition,\n TokenKind.BRACE_R,\n );\n\n if (directives.length === 0 && operationTypes.length === 0) {\n throw this.unexpected();\n }\n\n return this.node(start, {\n kind: Kind.SCHEMA_EXTENSION,\n directives,\n operationTypes,\n });\n }\n /**\n * ScalarTypeExtension :\n * - extend scalar Name Directives[Const]\n */\n\n parseScalarTypeExtension() {\n const start = this._lexer.token;\n this.expectKeyword('extend');\n this.expectKeyword('scalar');\n const name = this.parseName();\n const directives = this.parseConstDirectives();\n\n if (directives.length === 0) {\n throw this.unexpected();\n }\n\n return this.node(start, {\n kind: Kind.SCALAR_TYPE_EXTENSION,\n name,\n directives,\n });\n }\n /**\n * ObjectTypeExtension :\n * - extend type Name ImplementsInterfaces? Directives[Const]? FieldsDefinition\n * - extend type Name ImplementsInterfaces? Directives[Const]\n * - extend type Name ImplementsInterfaces\n */\n\n parseObjectTypeExtension() {\n const start = this._lexer.token;\n this.expectKeyword('extend');\n this.expectKeyword('type');\n const name = this.parseName();\n const interfaces = this.parseImplementsInterfaces();\n const directives = this.parseConstDirectives();\n const fields = this.parseFieldsDefinition();\n\n if (\n interfaces.length === 0 &&\n directives.length === 0 &&\n fields.length === 0\n ) {\n throw this.unexpected();\n }\n\n return this.node(start, {\n kind: Kind.OBJECT_TYPE_EXTENSION,\n name,\n interfaces,\n directives,\n fields,\n });\n }\n /**\n * InterfaceTypeExtension :\n * - extend interface Name ImplementsInterfaces? Directives[Const]? FieldsDefinition\n * - extend interface Name ImplementsInterfaces? Directives[Const]\n * - extend interface Name ImplementsInterfaces\n */\n\n parseInterfaceTypeExtension() {\n const start = this._lexer.token;\n this.expectKeyword('extend');\n this.expectKeyword('interface');\n const name = this.parseName();\n const interfaces = this.parseImplementsInterfaces();\n const directives = this.parseConstDirectives();\n const fields = this.parseFieldsDefinition();\n\n if (\n interfaces.length === 0 &&\n directives.length === 0 &&\n fields.length === 0\n ) {\n throw this.unexpected();\n }\n\n return this.node(start, {\n kind: Kind.INTERFACE_TYPE_EXTENSION,\n name,\n interfaces,\n directives,\n fields,\n });\n }\n /**\n * UnionTypeExtension :\n * - extend union Name Directives[Const]? UnionMemberTypes\n * - extend union Name Directives[Const]\n */\n\n parseUnionTypeExtension() {\n const start = this._lexer.token;\n this.expectKeyword('extend');\n this.expectKeyword('union');\n const name = this.parseName();\n const directives = this.parseConstDirectives();\n const types = this.parseUnionMemberTypes();\n\n if (directives.length === 0 && types.length === 0) {\n throw this.unexpected();\n }\n\n return this.node(start, {\n kind: Kind.UNION_TYPE_EXTENSION,\n name,\n directives,\n types,\n });\n }\n /**\n * EnumTypeExtension :\n * - extend enum Name Directives[Const]? EnumValuesDefinition\n * - extend enum Name Directives[Const]\n */\n\n parseEnumTypeExtension() {\n const start = this._lexer.token;\n this.expectKeyword('extend');\n this.expectKeyword('enum');\n const name = this.parseName();\n const directives = this.parseConstDirectives();\n const values = this.parseEnumValuesDefinition();\n\n if (directives.length === 0 && values.length === 0) {\n throw this.unexpected();\n }\n\n return this.node(start, {\n kind: Kind.ENUM_TYPE_EXTENSION,\n name,\n directives,\n values,\n });\n }\n /**\n * InputObjectTypeExtension :\n * - extend input Name Directives[Const]? InputFieldsDefinition\n * - extend input Name Directives[Const]\n */\n\n parseInputObjectTypeExtension() {\n const start = this._lexer.token;\n this.expectKeyword('extend');\n this.expectKeyword('input');\n const name = this.parseName();\n const directives = this.parseConstDirectives();\n const fields = this.parseInputFieldsDefinition();\n\n if (directives.length === 0 && fields.length === 0) {\n throw this.unexpected();\n }\n\n return this.node(start, {\n kind: Kind.INPUT_OBJECT_TYPE_EXTENSION,\n name,\n directives,\n fields,\n });\n }\n /**\n * ```\n * DirectiveDefinition :\n * - Description? directive @ Name ArgumentsDefinition? `repeatable`? on DirectiveLocations\n * ```\n */\n\n parseDirectiveDefinition() {\n const start = this._lexer.token;\n const description = this.parseDescription();\n this.expectKeyword('directive');\n this.expectToken(TokenKind.AT);\n const name = this.parseName();\n const args = this.parseArgumentDefs();\n const repeatable = this.expectOptionalKeyword('repeatable');\n this.expectKeyword('on');\n const locations = this.parseDirectiveLocations();\n return this.node(start, {\n kind: Kind.DIRECTIVE_DEFINITION,\n description,\n name,\n arguments: args,\n repeatable,\n locations,\n });\n }\n /**\n * DirectiveLocations :\n * - `|`? DirectiveLocation\n * - DirectiveLocations | DirectiveLocation\n */\n\n parseDirectiveLocations() {\n return this.delimitedMany(TokenKind.PIPE, this.parseDirectiveLocation);\n }\n /*\n * DirectiveLocation :\n * - ExecutableDirectiveLocation\n * - TypeSystemDirectiveLocation\n *\n * ExecutableDirectiveLocation : one of\n * `QUERY`\n * `MUTATION`\n * `SUBSCRIPTION`\n * `FIELD`\n * `FRAGMENT_DEFINITION`\n * `FRAGMENT_SPREAD`\n * `INLINE_FRAGMENT`\n *\n * TypeSystemDirectiveLocation : one of\n * `SCHEMA`\n * `SCALAR`\n * `OBJECT`\n * `FIELD_DEFINITION`\n * `ARGUMENT_DEFINITION`\n * `INTERFACE`\n * `UNION`\n * `ENUM`\n * `ENUM_VALUE`\n * `INPUT_OBJECT`\n * `INPUT_FIELD_DEFINITION`\n */\n\n parseDirectiveLocation() {\n const start = this._lexer.token;\n const name = this.parseName();\n\n if (Object.prototype.hasOwnProperty.call(DirectiveLocation, name.value)) {\n return name;\n }\n\n throw this.unexpected(start);\n } // Core parsing utility functions\n\n /**\n * Returns a node that, if configured to do so, sets a \"loc\" field as a\n * location object, used to identify the place in the source that created a\n * given parsed object.\n */\n\n node(startToken, node) {\n if (this._options.noLocation !== true) {\n node.loc = new Location(\n startToken,\n this._lexer.lastToken,\n this._lexer.source,\n );\n }\n\n return node;\n }\n /**\n * Determines if the next token is of a given kind\n */\n\n peek(kind) {\n return this._lexer.token.kind === kind;\n }\n /**\n * If the next token is of the given kind, return that token after advancing the lexer.\n * Otherwise, do not change the parser state and throw an error.\n */\n\n expectToken(kind) {\n const token = this._lexer.token;\n\n if (token.kind === kind) {\n this.advanceLexer();\n return token;\n }\n\n throw syntaxError(\n this._lexer.source,\n token.start,\n `Expected ${getTokenKindDesc(kind)}, found ${getTokenDesc(token)}.`,\n );\n }\n /**\n * If the next token is of the given kind, return \"true\" after advancing the lexer.\n * Otherwise, do not change the parser state and return \"false\".\n */\n\n expectOptionalToken(kind) {\n const token = this._lexer.token;\n\n if (token.kind === kind) {\n this.advanceLexer();\n return true;\n }\n\n return false;\n }\n /**\n * If the next token is a given keyword, advance the lexer.\n * Otherwise, do not change the parser state and throw an error.\n */\n\n expectKeyword(value) {\n const token = this._lexer.token;\n\n if (token.kind === TokenKind.NAME && token.value === value) {\n this.advanceLexer();\n } else {\n throw syntaxError(\n this._lexer.source,\n token.start,\n `Expected \"${value}\", found ${getTokenDesc(token)}.`,\n );\n }\n }\n /**\n * If the next token is a given keyword, return \"true\" after advancing the lexer.\n * Otherwise, do not change the parser state and return \"false\".\n */\n\n expectOptionalKeyword(value) {\n const token = this._lexer.token;\n\n if (token.kind === TokenKind.NAME && token.value === value) {\n this.advanceLexer();\n return true;\n }\n\n return false;\n }\n /**\n * Helper function for creating an error when an unexpected lexed token is encountered.\n */\n\n unexpected(atToken) {\n const token =\n atToken !== null && atToken !== void 0 ? atToken : this._lexer.token;\n return syntaxError(\n this._lexer.source,\n token.start,\n `Unexpected ${getTokenDesc(token)}.`,\n );\n }\n /**\n * Returns a possibly empty list of parse nodes, determined by the parseFn.\n * This list begins with a lex token of openKind and ends with a lex token of closeKind.\n * Advances the parser to the next lex token after the closing token.\n */\n\n any(openKind, parseFn, closeKind) {\n this.expectToken(openKind);\n const nodes = [];\n\n while (!this.expectOptionalToken(closeKind)) {\n nodes.push(parseFn.call(this));\n }\n\n return nodes;\n }\n /**\n * Returns a list of parse nodes, determined by the parseFn.\n * It can be empty only if open token is missing otherwise it will always return non-empty list\n * that begins with a lex token of openKind and ends with a lex token of closeKind.\n * Advances the parser to the next lex token after the closing token.\n */\n\n optionalMany(openKind, parseFn, closeKind) {\n if (this.expectOptionalToken(openKind)) {\n const nodes = [];\n\n do {\n nodes.push(parseFn.call(this));\n } while (!this.expectOptionalToken(closeKind));\n\n return nodes;\n }\n\n return [];\n }\n /**\n * Returns a non-empty list of parse nodes, determined by the parseFn.\n * This list begins with a lex token of openKind and ends with a lex token of closeKind.\n * Advances the parser to the next lex token after the closing token.\n */\n\n many(openKind, parseFn, closeKind) {\n this.expectToken(openKind);\n const nodes = [];\n\n do {\n nodes.push(parseFn.call(this));\n } while (!this.expectOptionalToken(closeKind));\n\n return nodes;\n }\n /**\n * Returns a non-empty list of parse nodes, determined by the parseFn.\n * This list may begin with a lex token of delimiterKind followed by items separated by lex tokens of tokenKind.\n * Advances the parser to the next lex token after last item in the list.\n */\n\n delimitedMany(delimiterKind, parseFn) {\n this.expectOptionalToken(delimiterKind);\n const nodes = [];\n\n do {\n nodes.push(parseFn.call(this));\n } while (this.expectOptionalToken(delimiterKind));\n\n return nodes;\n }\n\n advanceLexer() {\n const { maxTokens } = this._options;\n\n const token = this._lexer.advance();\n\n if (maxTokens !== undefined && token.kind !== TokenKind.EOF) {\n ++this._tokenCounter;\n\n if (this._tokenCounter > maxTokens) {\n throw syntaxError(\n this._lexer.source,\n token.start,\n `Document contains more that ${maxTokens} tokens. Parsing aborted.`,\n );\n }\n }\n }\n}\n/**\n * A helper function to describe a token as a string for debugging.\n */\n\nfunction getTokenDesc(token) {\n const value = token.value;\n return getTokenKindDesc(token.kind) + (value != null ? ` \"${value}\"` : '');\n}\n/**\n * A helper function to describe a token kind as a string for debugging.\n */\n\nfunction getTokenKindDesc(kind) {\n return isPunctuatorTokenKind(kind) ? `\"${kind}\"` : kind;\n}\n","/**\n * Prints a string as a GraphQL StringValue literal. Replaces control characters\n * and excluded characters (\" U+0022 and \\\\ U+005C) with escape sequences.\n */\nexport function printString(str) {\n return `\"${str.replace(escapedRegExp, escapedReplacer)}\"`;\n} // eslint-disable-next-line no-control-regex\n\nconst escapedRegExp = /[\\x00-\\x1f\\x22\\x5c\\x7f-\\x9f]/g;\n\nfunction escapedReplacer(str) {\n return escapeSequences[str.charCodeAt(0)];\n} // prettier-ignore\n\nconst escapeSequences = [\n '\\\\u0000',\n '\\\\u0001',\n '\\\\u0002',\n '\\\\u0003',\n '\\\\u0004',\n '\\\\u0005',\n '\\\\u0006',\n '\\\\u0007',\n '\\\\b',\n '\\\\t',\n '\\\\n',\n '\\\\u000B',\n '\\\\f',\n '\\\\r',\n '\\\\u000E',\n '\\\\u000F',\n '\\\\u0010',\n '\\\\u0011',\n '\\\\u0012',\n '\\\\u0013',\n '\\\\u0014',\n '\\\\u0015',\n '\\\\u0016',\n '\\\\u0017',\n '\\\\u0018',\n '\\\\u0019',\n '\\\\u001A',\n '\\\\u001B',\n '\\\\u001C',\n '\\\\u001D',\n '\\\\u001E',\n '\\\\u001F',\n '',\n '',\n '\\\\\"',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '', // 2F\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '', // 3F\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '', // 4F\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '\\\\\\\\',\n '',\n '',\n '', // 5F\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '', // 6F\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '\\\\u007F',\n '\\\\u0080',\n '\\\\u0081',\n '\\\\u0082',\n '\\\\u0083',\n '\\\\u0084',\n '\\\\u0085',\n '\\\\u0086',\n '\\\\u0087',\n '\\\\u0088',\n '\\\\u0089',\n '\\\\u008A',\n '\\\\u008B',\n '\\\\u008C',\n '\\\\u008D',\n '\\\\u008E',\n '\\\\u008F',\n '\\\\u0090',\n '\\\\u0091',\n '\\\\u0092',\n '\\\\u0093',\n '\\\\u0094',\n '\\\\u0095',\n '\\\\u0096',\n '\\\\u0097',\n '\\\\u0098',\n '\\\\u0099',\n '\\\\u009A',\n '\\\\u009B',\n '\\\\u009C',\n '\\\\u009D',\n '\\\\u009E',\n '\\\\u009F',\n];\n","import { devAssert } from '../jsutils/devAssert.mjs';\nimport { inspect } from '../jsutils/inspect.mjs';\nimport { isNode, QueryDocumentKeys } from './ast.mjs';\nimport { Kind } from './kinds.mjs';\n/**\n * A visitor is provided to visit, it contains the collection of\n * relevant functions to be called during the visitor's traversal.\n */\n\nexport const BREAK = Object.freeze({});\n/**\n * visit() will walk through an AST using a depth-first traversal, calling\n * the visitor's enter function at each node in the traversal, and calling the\n * leave function after visiting that node and all of its child nodes.\n *\n * By returning different values from the enter and leave functions, the\n * behavior of the visitor can be altered, including skipping over a sub-tree of\n * the AST (by returning false), editing the AST by returning a value or null\n * to remove the value, or to stop the whole traversal by returning BREAK.\n *\n * When using visit() to edit an AST, the original AST will not be modified, and\n * a new version of the AST with the changes applied will be returned from the\n * visit function.\n *\n * ```ts\n * const editedAST = visit(ast, {\n * enter(node, key, parent, path, ancestors) {\n * // @return\n * // undefined: no action\n * // false: skip visiting this node\n * // visitor.BREAK: stop visiting altogether\n * // null: delete this node\n * // any value: replace this node with the returned value\n * },\n * leave(node, key, parent, path, ancestors) {\n * // @return\n * // undefined: no action\n * // false: no action\n * // visitor.BREAK: stop visiting altogether\n * // null: delete this node\n * // any value: replace this node with the returned value\n * }\n * });\n * ```\n *\n * Alternatively to providing enter() and leave() functions, a visitor can\n * instead provide functions named the same as the kinds of AST nodes, or\n * enter/leave visitors at a named key, leading to three permutations of the\n * visitor API:\n *\n * 1) Named visitors triggered when entering a node of a specific kind.\n *\n * ```ts\n * visit(ast, {\n * Kind(node) {\n * // enter the \"Kind\" node\n * }\n * })\n * ```\n *\n * 2) Named visitors that trigger upon entering and leaving a node of a specific kind.\n *\n * ```ts\n * visit(ast, {\n * Kind: {\n * enter(node) {\n * // enter the \"Kind\" node\n * }\n * leave(node) {\n * // leave the \"Kind\" node\n * }\n * }\n * })\n * ```\n *\n * 3) Generic visitors that trigger upon entering and leaving any node.\n *\n * ```ts\n * visit(ast, {\n * enter(node) {\n * // enter any node\n * },\n * leave(node) {\n * // leave any node\n * }\n * })\n * ```\n */\n\nexport function visit(root, visitor, visitorKeys = QueryDocumentKeys) {\n const enterLeaveMap = new Map();\n\n for (const kind of Object.values(Kind)) {\n enterLeaveMap.set(kind, getEnterLeaveForKind(visitor, kind));\n }\n /* eslint-disable no-undef-init */\n\n let stack = undefined;\n let inArray = Array.isArray(root);\n let keys = [root];\n let index = -1;\n let edits = [];\n let node = root;\n let key = undefined;\n let parent = undefined;\n const path = [];\n const ancestors = [];\n /* eslint-enable no-undef-init */\n\n do {\n index++;\n const isLeaving = index === keys.length;\n const isEdited = isLeaving && edits.length !== 0;\n\n if (isLeaving) {\n key = ancestors.length === 0 ? undefined : path[path.length - 1];\n node = parent;\n parent = ancestors.pop();\n\n if (isEdited) {\n if (inArray) {\n node = node.slice();\n let editOffset = 0;\n\n for (const [editKey, editValue] of edits) {\n const arrayKey = editKey - editOffset;\n\n if (editValue === null) {\n node.splice(arrayKey, 1);\n editOffset++;\n } else {\n node[arrayKey] = editValue;\n }\n }\n } else {\n node = Object.defineProperties(\n {},\n Object.getOwnPropertyDescriptors(node),\n );\n\n for (const [editKey, editValue] of edits) {\n node[editKey] = editValue;\n }\n }\n }\n\n index = stack.index;\n keys = stack.keys;\n edits = stack.edits;\n inArray = stack.inArray;\n stack = stack.prev;\n } else if (parent) {\n key = inArray ? index : keys[index];\n node = parent[key];\n\n if (node === null || node === undefined) {\n continue;\n }\n\n path.push(key);\n }\n\n let result;\n\n if (!Array.isArray(node)) {\n var _enterLeaveMap$get, _enterLeaveMap$get2;\n\n isNode(node) || devAssert(false, `Invalid AST Node: ${inspect(node)}.`);\n const visitFn = isLeaving\n ? (_enterLeaveMap$get = enterLeaveMap.get(node.kind)) === null ||\n _enterLeaveMap$get === void 0\n ? void 0\n : _enterLeaveMap$get.leave\n : (_enterLeaveMap$get2 = enterLeaveMap.get(node.kind)) === null ||\n _enterLeaveMap$get2 === void 0\n ? void 0\n : _enterLeaveMap$get2.enter;\n result =\n visitFn === null || visitFn === void 0\n ? void 0\n : visitFn.call(visitor, node, key, parent, path, ancestors);\n\n if (result === BREAK) {\n break;\n }\n\n if (result === false) {\n if (!isLeaving) {\n path.pop();\n continue;\n }\n } else if (result !== undefined) {\n edits.push([key, result]);\n\n if (!isLeaving) {\n if (isNode(result)) {\n node = result;\n } else {\n path.pop();\n continue;\n }\n }\n }\n }\n\n if (result === undefined && isEdited) {\n edits.push([key, node]);\n }\n\n if (isLeaving) {\n path.pop();\n } else {\n var _node$kind;\n\n stack = {\n inArray,\n index,\n keys,\n edits,\n prev: stack,\n };\n inArray = Array.isArray(node);\n keys = inArray\n ? node\n : (_node$kind = visitorKeys[node.kind]) !== null &&\n _node$kind !== void 0\n ? _node$kind\n : [];\n index = -1;\n edits = [];\n\n if (parent) {\n ancestors.push(parent);\n }\n\n parent = node;\n }\n } while (stack !== undefined);\n\n if (edits.length !== 0) {\n // New root\n return edits[edits.length - 1][1];\n }\n\n return root;\n}\n/**\n * Creates a new visitor instance which delegates to many visitors to run in\n * parallel. Each visitor will be visited for each node before moving on.\n *\n * If a prior visitor edits a node, no following visitors will see that node.\n */\n\nexport function visitInParallel(visitors) {\n const skipping = new Array(visitors.length).fill(null);\n const mergedVisitor = Object.create(null);\n\n for (const kind of Object.values(Kind)) {\n let hasVisitor = false;\n const enterList = new Array(visitors.length).fill(undefined);\n const leaveList = new Array(visitors.length).fill(undefined);\n\n for (let i = 0; i < visitors.length; ++i) {\n const { enter, leave } = getEnterLeaveForKind(visitors[i], kind);\n hasVisitor || (hasVisitor = enter != null || leave != null);\n enterList[i] = enter;\n leaveList[i] = leave;\n }\n\n if (!hasVisitor) {\n continue;\n }\n\n const mergedEnterLeave = {\n enter(...args) {\n const node = args[0];\n\n for (let i = 0; i < visitors.length; i++) {\n if (skipping[i] === null) {\n var _enterList$i;\n\n const result =\n (_enterList$i = enterList[i]) === null || _enterList$i === void 0\n ? void 0\n : _enterList$i.apply(visitors[i], args);\n\n if (result === false) {\n skipping[i] = node;\n } else if (result === BREAK) {\n skipping[i] = BREAK;\n } else if (result !== undefined) {\n return result;\n }\n }\n }\n },\n\n leave(...args) {\n const node = args[0];\n\n for (let i = 0; i < visitors.length; i++) {\n if (skipping[i] === null) {\n var _leaveList$i;\n\n const result =\n (_leaveList$i = leaveList[i]) === null || _leaveList$i === void 0\n ? void 0\n : _leaveList$i.apply(visitors[i], args);\n\n if (result === BREAK) {\n skipping[i] = BREAK;\n } else if (result !== undefined && result !== false) {\n return result;\n }\n } else if (skipping[i] === node) {\n skipping[i] = null;\n }\n }\n },\n };\n mergedVisitor[kind] = mergedEnterLeave;\n }\n\n return mergedVisitor;\n}\n/**\n * Given a visitor instance and a node kind, return EnterLeaveVisitor for that kind.\n */\n\nexport function getEnterLeaveForKind(visitor, kind) {\n const kindVisitor = visitor[kind];\n\n if (typeof kindVisitor === 'object') {\n // { Kind: { enter() {}, leave() {} } }\n return kindVisitor;\n } else if (typeof kindVisitor === 'function') {\n // { Kind() {} }\n return {\n enter: kindVisitor,\n leave: undefined,\n };\n } // { enter() {}, leave() {} }\n\n return {\n enter: visitor.enter,\n leave: visitor.leave,\n };\n}\n/**\n * Given a visitor instance, if it is leaving or not, and a node kind, return\n * the function the visitor runtime should call.\n *\n * @deprecated Please use `getEnterLeaveForKind` instead. Will be removed in v17\n */\n\n/* c8 ignore next 8 */\n\nexport function getVisitFn(visitor, kind, isLeaving) {\n const { enter, leave } = getEnterLeaveForKind(visitor, kind);\n return isLeaving ? leave : enter;\n}\n","import { printBlockString } from './blockString.mjs';\nimport { printString } from './printString.mjs';\nimport { visit } from './visitor.mjs';\n/**\n * Converts an AST into a string, using one set of reasonable\n * formatting rules.\n */\n\nexport function print(ast) {\n return visit(ast, printDocASTReducer);\n}\nconst MAX_LINE_LENGTH = 80;\nconst printDocASTReducer = {\n Name: {\n leave: (node) => node.value,\n },\n Variable: {\n leave: (node) => '$' + node.name,\n },\n // Document\n Document: {\n leave: (node) => join(node.definitions, '\\n\\n'),\n },\n OperationDefinition: {\n leave(node) {\n const varDefs = wrap('(', join(node.variableDefinitions, ', '), ')');\n const prefix = join(\n [\n node.operation,\n join([node.name, varDefs]),\n join(node.directives, ' '),\n ],\n ' ',\n ); // Anonymous queries with no directives or variable definitions can use\n // the query short form.\n\n return (prefix === 'query' ? '' : prefix + ' ') + node.selectionSet;\n },\n },\n VariableDefinition: {\n leave: ({ variable, type, defaultValue, directives }) =>\n variable +\n ': ' +\n type +\n wrap(' = ', defaultValue) +\n wrap(' ', join(directives, ' ')),\n },\n SelectionSet: {\n leave: ({ selections }) => block(selections),\n },\n Field: {\n leave({ alias, name, arguments: args, directives, selectionSet }) {\n const prefix = wrap('', alias, ': ') + name;\n let argsLine = prefix + wrap('(', join(args, ', '), ')');\n\n if (argsLine.length > MAX_LINE_LENGTH) {\n argsLine = prefix + wrap('(\\n', indent(join(args, '\\n')), '\\n)');\n }\n\n return join([argsLine, join(directives, ' '), selectionSet], ' ');\n },\n },\n Argument: {\n leave: ({ name, value }) => name + ': ' + value,\n },\n // Fragments\n FragmentSpread: {\n leave: ({ name, directives }) =>\n '...' + name + wrap(' ', join(directives, ' ')),\n },\n InlineFragment: {\n leave: ({ typeCondition, directives, selectionSet }) =>\n join(\n [\n '...',\n wrap('on ', typeCondition),\n join(directives, ' '),\n selectionSet,\n ],\n ' ',\n ),\n },\n FragmentDefinition: {\n leave: (\n { name, typeCondition, variableDefinitions, directives, selectionSet }, // Note: fragment variable definitions are experimental and may be changed\n ) =>\n // or removed in the future.\n `fragment ${name}${wrap('(', join(variableDefinitions, ', '), ')')} ` +\n `on ${typeCondition} ${wrap('', join(directives, ' '), ' ')}` +\n selectionSet,\n },\n // Value\n IntValue: {\n leave: ({ value }) => value,\n },\n FloatValue: {\n leave: ({ value }) => value,\n },\n StringValue: {\n leave: ({ value, block: isBlockString }) =>\n isBlockString ? printBlockString(value) : printString(value),\n },\n BooleanValue: {\n leave: ({ value }) => (value ? 'true' : 'false'),\n },\n NullValue: {\n leave: () => 'null',\n },\n EnumValue: {\n leave: ({ value }) => value,\n },\n ListValue: {\n leave: ({ values }) => '[' + join(values, ', ') + ']',\n },\n ObjectValue: {\n leave: ({ fields }) => '{' + join(fields, ', ') + '}',\n },\n ObjectField: {\n leave: ({ name, value }) => name + ': ' + value,\n },\n // Directive\n Directive: {\n leave: ({ name, arguments: args }) =>\n '@' + name + wrap('(', join(args, ', '), ')'),\n },\n // Type\n NamedType: {\n leave: ({ name }) => name,\n },\n ListType: {\n leave: ({ type }) => '[' + type + ']',\n },\n NonNullType: {\n leave: ({ type }) => type + '!',\n },\n // Type System Definitions\n SchemaDefinition: {\n leave: ({ description, directives, operationTypes }) =>\n wrap('', description, '\\n') +\n join(['schema', join(directives, ' '), block(operationTypes)], ' '),\n },\n OperationTypeDefinition: {\n leave: ({ operation, type }) => operation + ': ' + type,\n },\n ScalarTypeDefinition: {\n leave: ({ description, name, directives }) =>\n wrap('', description, '\\n') +\n join(['scalar', name, join(directives, ' ')], ' '),\n },\n ObjectTypeDefinition: {\n leave: ({ description, name, interfaces, directives, fields }) =>\n wrap('', description, '\\n') +\n join(\n [\n 'type',\n name,\n wrap('implements ', join(interfaces, ' & ')),\n join(directives, ' '),\n block(fields),\n ],\n ' ',\n ),\n },\n FieldDefinition: {\n leave: ({ description, name, arguments: args, type, directives }) =>\n wrap('', description, '\\n') +\n name +\n (hasMultilineItems(args)\n ? wrap('(\\n', indent(join(args, '\\n')), '\\n)')\n : wrap('(', join(args, ', '), ')')) +\n ': ' +\n type +\n wrap(' ', join(directives, ' ')),\n },\n InputValueDefinition: {\n leave: ({ description, name, type, defaultValue, directives }) =>\n wrap('', description, '\\n') +\n join(\n [name + ': ' + type, wrap('= ', defaultValue), join(directives, ' ')],\n ' ',\n ),\n },\n InterfaceTypeDefinition: {\n leave: ({ description, name, interfaces, directives, fields }) =>\n wrap('', description, '\\n') +\n join(\n [\n 'interface',\n name,\n wrap('implements ', join(interfaces, ' & ')),\n join(directives, ' '),\n block(fields),\n ],\n ' ',\n ),\n },\n UnionTypeDefinition: {\n leave: ({ description, name, directives, types }) =>\n wrap('', description, '\\n') +\n join(\n ['union', name, join(directives, ' '), wrap('= ', join(types, ' | '))],\n ' ',\n ),\n },\n EnumTypeDefinition: {\n leave: ({ description, name, directives, values }) =>\n wrap('', description, '\\n') +\n join(['enum', name, join(directives, ' '), block(values)], ' '),\n },\n EnumValueDefinition: {\n leave: ({ description, name, directives }) =>\n wrap('', description, '\\n') + join([name, join(directives, ' ')], ' '),\n },\n InputObjectTypeDefinition: {\n leave: ({ description, name, directives, fields }) =>\n wrap('', description, '\\n') +\n join(['input', name, join(directives, ' '), block(fields)], ' '),\n },\n DirectiveDefinition: {\n leave: ({ description, name, arguments: args, repeatable, locations }) =>\n wrap('', description, '\\n') +\n 'directive @' +\n name +\n (hasMultilineItems(args)\n ? wrap('(\\n', indent(join(args, '\\n')), '\\n)')\n : wrap('(', join(args, ', '), ')')) +\n (repeatable ? ' repeatable' : '') +\n ' on ' +\n join(locations, ' | '),\n },\n SchemaExtension: {\n leave: ({ directives, operationTypes }) =>\n join(\n ['extend schema', join(directives, ' '), block(operationTypes)],\n ' ',\n ),\n },\n ScalarTypeExtension: {\n leave: ({ name, directives }) =>\n join(['extend scalar', name, join(directives, ' ')], ' '),\n },\n ObjectTypeExtension: {\n leave: ({ name, interfaces, directives, fields }) =>\n join(\n [\n 'extend type',\n name,\n wrap('implements ', join(interfaces, ' & ')),\n join(directives, ' '),\n block(fields),\n ],\n ' ',\n ),\n },\n InterfaceTypeExtension: {\n leave: ({ name, interfaces, directives, fields }) =>\n join(\n [\n 'extend interface',\n name,\n wrap('implements ', join(interfaces, ' & ')),\n join(directives, ' '),\n block(fields),\n ],\n ' ',\n ),\n },\n UnionTypeExtension: {\n leave: ({ name, directives, types }) =>\n join(\n [\n 'extend union',\n name,\n join(directives, ' '),\n wrap('= ', join(types, ' | ')),\n ],\n ' ',\n ),\n },\n EnumTypeExtension: {\n leave: ({ name, directives, values }) =>\n join(['extend enum', name, join(directives, ' '), block(values)], ' '),\n },\n InputObjectTypeExtension: {\n leave: ({ name, directives, fields }) =>\n join(['extend input', name, join(directives, ' '), block(fields)], ' '),\n },\n};\n/**\n * Given maybeArray, print an empty string if it is null or empty, otherwise\n * print all items together separated by separator if provided\n */\n\nfunction join(maybeArray, separator = '') {\n var _maybeArray$filter$jo;\n\n return (_maybeArray$filter$jo =\n maybeArray === null || maybeArray === void 0\n ? void 0\n : maybeArray.filter((x) => x).join(separator)) !== null &&\n _maybeArray$filter$jo !== void 0\n ? _maybeArray$filter$jo\n : '';\n}\n/**\n * Given array, print each item on its own line, wrapped in an indented `{ }` block.\n */\n\nfunction block(array) {\n return wrap('{\\n', indent(join(array, '\\n')), '\\n}');\n}\n/**\n * If maybeString is not null or empty, then wrap with start and end, otherwise print an empty string.\n */\n\nfunction wrap(start, maybeString, end = '') {\n return maybeString != null && maybeString !== ''\n ? start + maybeString + end\n : '';\n}\n\nfunction indent(str) {\n return wrap(' ', str.replace(/\\n/g, '\\n '));\n}\n\nfunction hasMultilineItems(maybeArray) {\n var _maybeArray$some;\n\n // FIXME: https://github.com/graphql/graphql-js/issues/2203\n\n /* c8 ignore next */\n return (_maybeArray$some =\n maybeArray === null || maybeArray === void 0\n ? void 0\n : maybeArray.some((str) => str.includes('\\n'))) !== null &&\n _maybeArray$some !== void 0\n ? _maybeArray$some\n : false;\n}\n",null,null,null,null,null,"const token = '%[a-f0-9]{2}';\nconst singleMatcher = new RegExp('(' + token + ')|([^%]+?)', 'gi');\nconst multiMatcher = new RegExp('(' + token + ')+', 'gi');\n\nfunction decodeComponents(components, split) {\n\ttry {\n\t\t// Try to decode the entire string first\n\t\treturn [decodeURIComponent(components.join(''))];\n\t} catch {\n\t\t// Do nothing\n\t}\n\n\tif (components.length === 1) {\n\t\treturn components;\n\t}\n\n\tsplit = split || 1;\n\n\t// Split the array in 2 parts\n\tconst left = components.slice(0, split);\n\tconst right = components.slice(split);\n\n\treturn Array.prototype.concat.call([], decodeComponents(left), decodeComponents(right));\n}\n\nfunction decode(input) {\n\ttry {\n\t\treturn decodeURIComponent(input);\n\t} catch {\n\t\tlet tokens = input.match(singleMatcher) || [];\n\n\t\tfor (let i = 1; i < tokens.length; i++) {\n\t\t\tinput = decodeComponents(tokens, i).join('');\n\n\t\t\ttokens = input.match(singleMatcher) || [];\n\t\t}\n\n\t\treturn input;\n\t}\n}\n\nfunction customDecodeURIComponent(input) {\n\t// Keep track of all the replacements and prefill the map with the `BOM`\n\tconst replaceMap = {\n\t\t'%FE%FF': '\\uFFFD\\uFFFD',\n\t\t'%FF%FE': '\\uFFFD\\uFFFD',\n\t};\n\n\tlet match = multiMatcher.exec(input);\n\twhile (match) {\n\t\ttry {\n\t\t\t// Decode as big chunks as possible\n\t\t\treplaceMap[match[0]] = decodeURIComponent(match[0]);\n\t\t} catch {\n\t\t\tconst result = decode(match[0]);\n\n\t\t\tif (result !== match[0]) {\n\t\t\t\treplaceMap[match[0]] = result;\n\t\t\t}\n\t\t}\n\n\t\tmatch = multiMatcher.exec(input);\n\t}\n\n\t// Add `%C2` at the end of the map to make sure it does not replace the combinator before everything else\n\treplaceMap['%C2'] = '\\uFFFD';\n\n\tconst entries = Object.keys(replaceMap);\n\n\tfor (const key of entries) {\n\t\t// Replace all decoded components\n\t\tinput = input.replace(new RegExp(key, 'g'), replaceMap[key]);\n\t}\n\n\treturn input;\n}\n\nexport default function decodeUriComponent(encodedURI) {\n\tif (typeof encodedURI !== 'string') {\n\t\tthrow new TypeError('Expected `encodedURI` to be of type `string`, got `' + typeof encodedURI + '`');\n\t}\n\n\ttry {\n\t\t// Try the built in decoder first\n\t\treturn decodeURIComponent(encodedURI);\n\t} catch {\n\t\t// Fallback to a more advanced decoder\n\t\treturn customDecodeURIComponent(encodedURI);\n\t}\n}\n","export default function splitOnFirst(string, separator) {\n\tif (!(typeof string === 'string' && typeof separator === 'string')) {\n\t\tthrow new TypeError('Expected the arguments to be of type `string`');\n\t}\n\n\tif (string === '' || separator === '') {\n\t\treturn [];\n\t}\n\n\tconst separatorIndex = string.indexOf(separator);\n\n\tif (separatorIndex === -1) {\n\t\treturn [];\n\t}\n\n\treturn [\n\t\tstring.slice(0, separatorIndex),\n\t\tstring.slice(separatorIndex + separator.length)\n\t];\n}\n","export function includeKeys(object, predicate) {\n\tconst result = {};\n\n\tif (Array.isArray(predicate)) {\n\t\tfor (const key of predicate) {\n\t\t\tconst descriptor = Object.getOwnPropertyDescriptor(object, key);\n\t\t\tif (descriptor?.enumerable) {\n\t\t\t\tObject.defineProperty(result, key, descriptor);\n\t\t\t}\n\t\t}\n\t} else {\n\t\t// `Reflect.ownKeys()` is required to retrieve symbol properties\n\t\tfor (const key of Reflect.ownKeys(object)) {\n\t\t\tconst descriptor = Object.getOwnPropertyDescriptor(object, key);\n\t\t\tif (descriptor.enumerable) {\n\t\t\t\tconst value = object[key];\n\t\t\t\tif (predicate(key, value, object)) {\n\t\t\t\t\tObject.defineProperty(result, key, descriptor);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn result;\n}\n\nexport function excludeKeys(object, predicate) {\n\tif (Array.isArray(predicate)) {\n\t\tconst set = new Set(predicate);\n\t\treturn includeKeys(object, key => !set.has(key));\n\t}\n\n\treturn includeKeys(object, (key, value, object) => !predicate(key, value, object));\n}\n","import decodeComponent from 'decode-uri-component';\nimport splitOnFirst from 'split-on-first';\nimport {includeKeys} from 'filter-obj';\n\nconst isNullOrUndefined = value => value === null || value === undefined;\n\n// eslint-disable-next-line unicorn/prefer-code-point\nconst strictUriEncode = string => encodeURIComponent(string).replace(/[!'()*]/g, x => `%${x.charCodeAt(0).toString(16).toUpperCase()}`);\n\nconst encodeFragmentIdentifier = Symbol('encodeFragmentIdentifier');\n\nfunction encoderForArrayFormat(options) {\n\tswitch (options.arrayFormat) {\n\t\tcase 'index': {\n\t\t\treturn key => (result, value) => {\n\t\t\t\tconst index = result.length;\n\n\t\t\t\tif (\n\t\t\t\t\tvalue === undefined\n\t\t\t\t\t|| (options.skipNull && value === null)\n\t\t\t\t\t|| (options.skipEmptyString && value === '')\n\t\t\t\t) {\n\t\t\t\t\treturn result;\n\t\t\t\t}\n\n\t\t\t\tif (value === null) {\n\t\t\t\t\treturn [\n\t\t\t\t\t\t...result, [encode(key, options), '[', index, ']'].join(''),\n\t\t\t\t\t];\n\t\t\t\t}\n\n\t\t\t\treturn [\n\t\t\t\t\t...result,\n\t\t\t\t\t[encode(key, options), '[', encode(index, options), ']=', encode(value, options)].join(''),\n\t\t\t\t];\n\t\t\t};\n\t\t}\n\n\t\tcase 'bracket': {\n\t\t\treturn key => (result, value) => {\n\t\t\t\tif (\n\t\t\t\t\tvalue === undefined\n\t\t\t\t\t|| (options.skipNull && value === null)\n\t\t\t\t\t|| (options.skipEmptyString && value === '')\n\t\t\t\t) {\n\t\t\t\t\treturn result;\n\t\t\t\t}\n\n\t\t\t\tif (value === null) {\n\t\t\t\t\treturn [\n\t\t\t\t\t\t...result,\n\t\t\t\t\t\t[encode(key, options), '[]'].join(''),\n\t\t\t\t\t];\n\t\t\t\t}\n\n\t\t\t\treturn [\n\t\t\t\t\t...result,\n\t\t\t\t\t[encode(key, options), '[]=', encode(value, options)].join(''),\n\t\t\t\t];\n\t\t\t};\n\t\t}\n\n\t\tcase 'colon-list-separator': {\n\t\t\treturn key => (result, value) => {\n\t\t\t\tif (\n\t\t\t\t\tvalue === undefined\n\t\t\t\t\t|| (options.skipNull && value === null)\n\t\t\t\t\t|| (options.skipEmptyString && value === '')\n\t\t\t\t) {\n\t\t\t\t\treturn result;\n\t\t\t\t}\n\n\t\t\t\tif (value === null) {\n\t\t\t\t\treturn [\n\t\t\t\t\t\t...result,\n\t\t\t\t\t\t[encode(key, options), ':list='].join(''),\n\t\t\t\t\t];\n\t\t\t\t}\n\n\t\t\t\treturn [\n\t\t\t\t\t...result,\n\t\t\t\t\t[encode(key, options), ':list=', encode(value, options)].join(''),\n\t\t\t\t];\n\t\t\t};\n\t\t}\n\n\t\tcase 'comma':\n\t\tcase 'separator':\n\t\tcase 'bracket-separator': {\n\t\t\tconst keyValueSep = options.arrayFormat === 'bracket-separator'\n\t\t\t\t? '[]='\n\t\t\t\t: '=';\n\n\t\t\treturn key => (result, value) => {\n\t\t\t\tif (\n\t\t\t\t\tvalue === undefined\n\t\t\t\t\t|| (options.skipNull && value === null)\n\t\t\t\t\t|| (options.skipEmptyString && value === '')\n\t\t\t\t) {\n\t\t\t\t\treturn result;\n\t\t\t\t}\n\n\t\t\t\t// Translate null to an empty string so that it doesn't serialize as 'null'\n\t\t\t\tvalue = value === null ? '' : value;\n\n\t\t\t\tif (result.length === 0) {\n\t\t\t\t\treturn [[encode(key, options), keyValueSep, encode(value, options)].join('')];\n\t\t\t\t}\n\n\t\t\t\treturn [[result, encode(value, options)].join(options.arrayFormatSeparator)];\n\t\t\t};\n\t\t}\n\n\t\tdefault: {\n\t\t\treturn key => (result, value) => {\n\t\t\t\tif (\n\t\t\t\t\tvalue === undefined\n\t\t\t\t\t|| (options.skipNull && value === null)\n\t\t\t\t\t|| (options.skipEmptyString && value === '')\n\t\t\t\t) {\n\t\t\t\t\treturn result;\n\t\t\t\t}\n\n\t\t\t\tif (value === null) {\n\t\t\t\t\treturn [\n\t\t\t\t\t\t...result,\n\t\t\t\t\t\tencode(key, options),\n\t\t\t\t\t];\n\t\t\t\t}\n\n\t\t\t\treturn [\n\t\t\t\t\t...result,\n\t\t\t\t\t[encode(key, options), '=', encode(value, options)].join(''),\n\t\t\t\t];\n\t\t\t};\n\t\t}\n\t}\n}\n\nfunction parserForArrayFormat(options) {\n\tlet result;\n\n\tswitch (options.arrayFormat) {\n\t\tcase 'index': {\n\t\t\treturn (key, value, accumulator) => {\n\t\t\t\tresult = /\\[(\\d*)]$/.exec(key);\n\n\t\t\t\tkey = key.replace(/\\[\\d*]$/, '');\n\n\t\t\t\tif (!result) {\n\t\t\t\t\taccumulator[key] = value;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tif (accumulator[key] === undefined) {\n\t\t\t\t\taccumulator[key] = {};\n\t\t\t\t}\n\n\t\t\t\taccumulator[key][result[1]] = value;\n\t\t\t};\n\t\t}\n\n\t\tcase 'bracket': {\n\t\t\treturn (key, value, accumulator) => {\n\t\t\t\tresult = /(\\[])$/.exec(key);\n\t\t\t\tkey = key.replace(/\\[]$/, '');\n\n\t\t\t\tif (!result) {\n\t\t\t\t\taccumulator[key] = value;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tif (accumulator[key] === undefined) {\n\t\t\t\t\taccumulator[key] = [value];\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\taccumulator[key] = [...accumulator[key], value];\n\t\t\t};\n\t\t}\n\n\t\tcase 'colon-list-separator': {\n\t\t\treturn (key, value, accumulator) => {\n\t\t\t\tresult = /(:list)$/.exec(key);\n\t\t\t\tkey = key.replace(/:list$/, '');\n\n\t\t\t\tif (!result) {\n\t\t\t\t\taccumulator[key] = value;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tif (accumulator[key] === undefined) {\n\t\t\t\t\taccumulator[key] = [value];\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\taccumulator[key] = [...accumulator[key], value];\n\t\t\t};\n\t\t}\n\n\t\tcase 'comma':\n\t\tcase 'separator': {\n\t\t\treturn (key, value, accumulator) => {\n\t\t\t\tconst isArray = typeof value === 'string' && value.includes(options.arrayFormatSeparator);\n\t\t\t\tconst isEncodedArray = (typeof value === 'string' && !isArray && decode(value, options).includes(options.arrayFormatSeparator));\n\t\t\t\tvalue = isEncodedArray ? decode(value, options) : value;\n\t\t\t\tconst newValue = isArray || isEncodedArray ? value.split(options.arrayFormatSeparator).map(item => decode(item, options)) : (value === null ? value : decode(value, options));\n\t\t\t\taccumulator[key] = newValue;\n\t\t\t};\n\t\t}\n\n\t\tcase 'bracket-separator': {\n\t\t\treturn (key, value, accumulator) => {\n\t\t\t\tconst isArray = /(\\[])$/.test(key);\n\t\t\t\tkey = key.replace(/\\[]$/, '');\n\n\t\t\t\tif (!isArray) {\n\t\t\t\t\taccumulator[key] = value ? decode(value, options) : value;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tconst arrayValue = value === null\n\t\t\t\t\t? []\n\t\t\t\t\t: value.split(options.arrayFormatSeparator).map(item => decode(item, options));\n\n\t\t\t\tif (accumulator[key] === undefined) {\n\t\t\t\t\taccumulator[key] = arrayValue;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\taccumulator[key] = [...accumulator[key], ...arrayValue];\n\t\t\t};\n\t\t}\n\n\t\tdefault: {\n\t\t\treturn (key, value, accumulator) => {\n\t\t\t\tif (accumulator[key] === undefined) {\n\t\t\t\t\taccumulator[key] = value;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\taccumulator[key] = [...[accumulator[key]].flat(), value];\n\t\t\t};\n\t\t}\n\t}\n}\n\nfunction validateArrayFormatSeparator(value) {\n\tif (typeof value !== 'string' || value.length !== 1) {\n\t\tthrow new TypeError('arrayFormatSeparator must be single character string');\n\t}\n}\n\nfunction encode(value, options) {\n\tif (options.encode) {\n\t\treturn options.strict ? strictUriEncode(value) : encodeURIComponent(value);\n\t}\n\n\treturn value;\n}\n\nfunction decode(value, options) {\n\tif (options.decode) {\n\t\treturn decodeComponent(value);\n\t}\n\n\treturn value;\n}\n\nfunction keysSorter(input) {\n\tif (Array.isArray(input)) {\n\t\treturn input.sort();\n\t}\n\n\tif (typeof input === 'object') {\n\t\treturn keysSorter(Object.keys(input))\n\t\t\t.sort((a, b) => Number(a) - Number(b))\n\t\t\t.map(key => input[key]);\n\t}\n\n\treturn input;\n}\n\nfunction removeHash(input) {\n\tconst hashStart = input.indexOf('#');\n\tif (hashStart !== -1) {\n\t\tinput = input.slice(0, hashStart);\n\t}\n\n\treturn input;\n}\n\nfunction getHash(url) {\n\tlet hash = '';\n\tconst hashStart = url.indexOf('#');\n\tif (hashStart !== -1) {\n\t\thash = url.slice(hashStart);\n\t}\n\n\treturn hash;\n}\n\nfunction parseValue(value, options) {\n\tif (options.parseNumbers && !Number.isNaN(Number(value)) && (typeof value === 'string' && value.trim() !== '')) {\n\t\tvalue = Number(value);\n\t} else if (options.parseBooleans && value !== null && (value.toLowerCase() === 'true' || value.toLowerCase() === 'false')) {\n\t\tvalue = value.toLowerCase() === 'true';\n\t}\n\n\treturn value;\n}\n\nexport function extract(input) {\n\tinput = removeHash(input);\n\tconst queryStart = input.indexOf('?');\n\tif (queryStart === -1) {\n\t\treturn '';\n\t}\n\n\treturn input.slice(queryStart + 1);\n}\n\nexport function parse(query, options) {\n\toptions = {\n\t\tdecode: true,\n\t\tsort: true,\n\t\tarrayFormat: 'none',\n\t\tarrayFormatSeparator: ',',\n\t\tparseNumbers: false,\n\t\tparseBooleans: false,\n\t\t...options,\n\t};\n\n\tvalidateArrayFormatSeparator(options.arrayFormatSeparator);\n\n\tconst formatter = parserForArrayFormat(options);\n\n\t// Create an object with no prototype\n\tconst returnValue = Object.create(null);\n\n\tif (typeof query !== 'string') {\n\t\treturn returnValue;\n\t}\n\n\tquery = query.trim().replace(/^[?#&]/, '');\n\n\tif (!query) {\n\t\treturn returnValue;\n\t}\n\n\tfor (const parameter of query.split('&')) {\n\t\tif (parameter === '') {\n\t\t\tcontinue;\n\t\t}\n\n\t\tconst parameter_ = options.decode ? parameter.replace(/\\+/g, ' ') : parameter;\n\n\t\tlet [key, value] = splitOnFirst(parameter_, '=');\n\n\t\tif (key === undefined) {\n\t\t\tkey = parameter_;\n\t\t}\n\n\t\t// Missing `=` should be `null`:\n\t\t// http://w3.org/TR/2012/WD-url-20120524/#collect-url-parameters\n\t\tvalue = value === undefined ? null : (['comma', 'separator', 'bracket-separator'].includes(options.arrayFormat) ? value : decode(value, options));\n\t\tformatter(decode(key, options), value, returnValue);\n\t}\n\n\tfor (const [key, value] of Object.entries(returnValue)) {\n\t\tif (typeof value === 'object' && value !== null) {\n\t\t\tfor (const [key2, value2] of Object.entries(value)) {\n\t\t\t\tvalue[key2] = parseValue(value2, options);\n\t\t\t}\n\t\t} else {\n\t\t\treturnValue[key] = parseValue(value, options);\n\t\t}\n\t}\n\n\tif (options.sort === false) {\n\t\treturn returnValue;\n\t}\n\n\t// TODO: Remove the use of `reduce`.\n\t// eslint-disable-next-line unicorn/no-array-reduce\n\treturn (options.sort === true ? Object.keys(returnValue).sort() : Object.keys(returnValue).sort(options.sort)).reduce((result, key) => {\n\t\tconst value = returnValue[key];\n\t\tif (Boolean(value) && typeof value === 'object' && !Array.isArray(value)) {\n\t\t\t// Sort object keys, not values\n\t\t\tresult[key] = keysSorter(value);\n\t\t} else {\n\t\t\tresult[key] = value;\n\t\t}\n\n\t\treturn result;\n\t}, Object.create(null));\n}\n\nexport function stringify(object, options) {\n\tif (!object) {\n\t\treturn '';\n\t}\n\n\toptions = {encode: true,\n\t\tstrict: true,\n\t\tarrayFormat: 'none',\n\t\tarrayFormatSeparator: ',', ...options};\n\n\tvalidateArrayFormatSeparator(options.arrayFormatSeparator);\n\n\tconst shouldFilter = key => (\n\t\t(options.skipNull && isNullOrUndefined(object[key]))\n\t\t|| (options.skipEmptyString && object[key] === '')\n\t);\n\n\tconst formatter = encoderForArrayFormat(options);\n\n\tconst objectCopy = {};\n\n\tfor (const [key, value] of Object.entries(object)) {\n\t\tif (!shouldFilter(key)) {\n\t\t\tobjectCopy[key] = value;\n\t\t}\n\t}\n\n\tconst keys = Object.keys(objectCopy);\n\n\tif (options.sort !== false) {\n\t\tkeys.sort(options.sort);\n\t}\n\n\treturn keys.map(key => {\n\t\tconst value = object[key];\n\n\t\tif (value === undefined) {\n\t\t\treturn '';\n\t\t}\n\n\t\tif (value === null) {\n\t\t\treturn encode(key, options);\n\t\t}\n\n\t\tif (Array.isArray(value)) {\n\t\t\tif (value.length === 0 && options.arrayFormat === 'bracket-separator') {\n\t\t\t\treturn encode(key, options) + '[]';\n\t\t\t}\n\n\t\t\treturn value\n\t\t\t\t.reduce(formatter(key), [])\n\t\t\t\t.join('&');\n\t\t}\n\n\t\treturn encode(key, options) + '=' + encode(value, options);\n\t}).filter(x => x.length > 0).join('&');\n}\n\nexport function parseUrl(url, options) {\n\toptions = {\n\t\tdecode: true,\n\t\t...options,\n\t};\n\n\tlet [url_, hash] = splitOnFirst(url, '#');\n\n\tif (url_ === undefined) {\n\t\turl_ = url;\n\t}\n\n\treturn {\n\t\turl: url_?.split('?')?.[0] ?? '',\n\t\tquery: parse(extract(url), options),\n\t\t...(options && options.parseFragmentIdentifier && hash ? {fragmentIdentifier: decode(hash, options)} : {}),\n\t};\n}\n\nexport function stringifyUrl(object, options) {\n\toptions = {\n\t\tencode: true,\n\t\tstrict: true,\n\t\t[encodeFragmentIdentifier]: true,\n\t\t...options,\n\t};\n\n\tconst url = removeHash(object.url).split('?')[0] || '';\n\tconst queryFromUrl = extract(object.url);\n\n\tconst query = {\n\t\t...parse(queryFromUrl, {sort: false}),\n\t\t...object.query,\n\t};\n\n\tlet queryString = stringify(query, options);\n\tif (queryString) {\n\t\tqueryString = `?${queryString}`;\n\t}\n\n\tlet hash = getHash(object.url);\n\tif (object.fragmentIdentifier) {\n\t\tconst urlObjectForFragmentEncode = new URL(url);\n\t\turlObjectForFragmentEncode.hash = object.fragmentIdentifier;\n\t\thash = options[encodeFragmentIdentifier] ? urlObjectForFragmentEncode.hash : `#${object.fragmentIdentifier}`;\n\t}\n\n\treturn `${url}${queryString}${hash}`;\n}\n\nexport function pick(input, filter, options) {\n\toptions = {\n\t\tparseFragmentIdentifier: true,\n\t\t[encodeFragmentIdentifier]: false,\n\t\t...options,\n\t};\n\n\tconst {url, query, fragmentIdentifier} = parseUrl(input, options);\n\n\treturn stringifyUrl({\n\t\turl,\n\t\tquery: includeKeys(query, filter),\n\t\tfragmentIdentifier,\n\t}, options);\n}\n\nexport function exclude(input, filter, options) {\n\tconst exclusionFilter = Array.isArray(filter) ? key => !filter.includes(key) : (key, value) => !filter(key, value);\n\n\treturn pick(input, exclusionFilter, options);\n}\n","import * as queryString from './base.js';\n\nexport default queryString;\n","import { Modal, ModalFuncProps } from \"antd\";\nimport { GraphQLError } from \"graphql-request/src/types\";\n\nexport const logout = () => {\n window.location.href = \"/logout\";\n};\n\nlet InvalidTokenModal:\n | undefined\n | {\n destroy: () => void;\n update: (\n configUpdate:\n | ModalFuncProps\n | ((prevConfig: ModalFuncProps) => ModalFuncProps),\n ) => void;\n };\n\nconst onInvalidTokenModalCancel = () => {\n InvalidTokenModal?.destroy();\n InvalidTokenModal = undefined;\n};\n\nexport const showInvalidTokenModal = (error: GraphQLError) => {\n if (InvalidTokenModal) {\n return;\n }\n InvalidTokenModal = Modal.warn({\n okText: \"确定\",\n content: \"用户凭证可能已失效,点击确定重新登录\",\n onOk: logout,\n onCancel: onInvalidTokenModalCancel,\n });\n};\n","var __WEBPACK_NAMESPACE_OBJECT__ = window.antd;","var __WEBPACK_NAMESPACE_OBJECT__ = window.TenxUiMaterials;","import { notification } from \"@tenx-ui/materials\";\nimport { GraphQLError } from \"graphql-request/src/types\";\n\nconst VERBS_MAP = {\n create: \"创建\",\n delete: \"删除\",\n update: \"更新\",\n patch: \"更新\",\n get: \"获取\",\n list: \"列取\",\n watch: \"监听\",\n};\nexport const showForbiddenNotification = (error: GraphQLError) => {\n const { name, kind, verb } = error.extensions?.exception?.details || {};\n let description = \"当前用户没有权限\";\n description += `${VERBS_MAP[verb] || \"操作\"}`;\n if (kind) {\n description += ` ${kind}`;\n }\n if (name) {\n description += ` ${name}`;\n }\n notification.warn({\n message: \"当前操作未被授权\",\n description,\n detail: error,\n });\n};\n\nexport const showGlobalErrorNotification = (error: GraphQLError) => {\n const { message } = error || {};\n\n notification.warn({\n message: \"请求错误\",\n description: message,\n detail: error,\n });\n};\n","import { GraphQLError } from \"graphql-request/src/types\";\nimport { showInvalidTokenModal } from \"./modal\";\nimport {\n showForbiddenNotification,\n showGlobalErrorNotification,\n} from \"./notification\";\n\nexport const errorsHandler = (errors: GraphQLError[]) => {\n const gqlErrors = errors.filter(\n (e) => typeof e.extensions?.code !== \"undefined\",\n );\n if (gqlErrors.length === 0) {\n console.warn(\"uncaught errors\", errors);\n return;\n }\n gqlErrors.forEach((e) => {\n switch (e.extensions.code) {\n case \"InvalidToken\":\n showInvalidTokenModal(e);\n break;\n case \"Forbidden\":\n showForbiddenNotification(e);\n break;\n default:\n // showGlobalErrorNotification(e);\n break;\n }\n });\n};\n\nexport default errorsHandler;\n","/******************************************************************************\nCopyright (c) Microsoft Corporation.\n\nPermission to use, copy, modify, and/or distribute this software for any\npurpose with or without fee is hereby granted.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\nPERFORMANCE OF THIS SOFTWARE.\n***************************************************************************** */\n/* global Reflect, Promise, SuppressedError, Symbol */\n\nvar extendStatics = function(d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n};\n\nexport function __extends(d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n}\n\nexport var __assign = function() {\n __assign = Object.assign || function __assign(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n return t;\n }\n return __assign.apply(this, arguments);\n}\n\nexport function __rest(s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n}\n\nexport function __decorate(decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n}\n\nexport function __param(paramIndex, decorator) {\n return function (target, key) { decorator(target, key, paramIndex); }\n}\n\nexport function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {\n function accept(f) { if (f !== void 0 && typeof f !== \"function\") throw new TypeError(\"Function expected\"); return f; }\n var kind = contextIn.kind, key = kind === \"getter\" ? \"get\" : kind === \"setter\" ? \"set\" : \"value\";\n var target = !descriptorIn && ctor ? contextIn[\"static\"] ? ctor : ctor.prototype : null;\n var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});\n var _, done = false;\n for (var i = decorators.length - 1; i >= 0; i--) {\n var context = {};\n for (var p in contextIn) context[p] = p === \"access\" ? {} : contextIn[p];\n for (var p in contextIn.access) context.access[p] = contextIn.access[p];\n context.addInitializer = function (f) { if (done) throw new TypeError(\"Cannot add initializers after decoration has completed\"); extraInitializers.push(accept(f || null)); };\n var result = (0, decorators[i])(kind === \"accessor\" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);\n if (kind === \"accessor\") {\n if (result === void 0) continue;\n if (result === null || typeof result !== \"object\") throw new TypeError(\"Object expected\");\n if (_ = accept(result.get)) descriptor.get = _;\n if (_ = accept(result.set)) descriptor.set = _;\n if (_ = accept(result.init)) initializers.unshift(_);\n }\n else if (_ = accept(result)) {\n if (kind === \"field\") initializers.unshift(_);\n else descriptor[key] = _;\n }\n }\n if (target) Object.defineProperty(target, contextIn.name, descriptor);\n done = true;\n};\n\nexport function __runInitializers(thisArg, initializers, value) {\n var useValue = arguments.length > 2;\n for (var i = 0; i < initializers.length; i++) {\n value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);\n }\n return useValue ? value : void 0;\n};\n\nexport function __propKey(x) {\n return typeof x === \"symbol\" ? x : \"\".concat(x);\n};\n\nexport function __setFunctionName(f, name, prefix) {\n if (typeof name === \"symbol\") name = name.description ? \"[\".concat(name.description, \"]\") : \"\";\n return Object.defineProperty(f, \"name\", { configurable: true, value: prefix ? \"\".concat(prefix, \" \", name) : name });\n};\n\nexport function __metadata(metadataKey, metadataValue) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\n}\n\nexport function __awaiter(thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n}\n\nexport function __generator(thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n}\n\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n});\n\nexport function __exportStar(m, o) {\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\n}\n\nexport function __values(o) {\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === \"number\") return {\n next: function () {\n if (o && i >= o.length) o = void 0;\n return { value: o && o[i++], done: !o };\n }\n };\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\n}\n\nexport function __read(o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n}\n\n/** @deprecated */\nexport function __spread() {\n for (var ar = [], i = 0; i < arguments.length; i++)\n ar = ar.concat(__read(arguments[i]));\n return ar;\n}\n\n/** @deprecated */\nexport function __spreadArrays() {\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\n r[k] = a[j];\n return r;\n}\n\nexport function __spreadArray(to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n}\n\nexport function __await(v) {\n return this instanceof __await ? (this.v = v, this) : new __await(v);\n}\n\nexport function __asyncGenerator(thisArg, _arguments, generator) {\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\n function fulfill(value) { resume(\"next\", value); }\n function reject(value) { resume(\"throw\", value); }\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\n}\n\nexport function __asyncDelegator(o) {\n var i, p;\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }\n}\n\nexport function __asyncValues(o) {\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\n var m = o[Symbol.asyncIterator], i;\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\n}\n\nexport function __makeTemplateObject(cooked, raw) {\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\n return cooked;\n};\n\nvar __setModuleDefault = Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n};\n\nexport function __importStar(mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n}\n\nexport function __importDefault(mod) {\n return (mod && mod.__esModule) ? mod : { default: mod };\n}\n\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\n}\n\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\n}\n\nexport function __classPrivateFieldIn(state, receiver) {\n if (receiver === null || (typeof receiver !== \"object\" && typeof receiver !== \"function\")) throw new TypeError(\"Cannot use 'in' operator on non-object\");\n return typeof state === \"function\" ? receiver === state : state.has(receiver);\n}\n\nexport function __addDisposableResource(env, value, async) {\n if (value !== null && value !== void 0) {\n if (typeof value !== \"object\" && typeof value !== \"function\") throw new TypeError(\"Object expected.\");\n var dispose;\n if (async) {\n if (!Symbol.asyncDispose) throw new TypeError(\"Symbol.asyncDispose is not defined.\");\n dispose = value[Symbol.asyncDispose];\n }\n if (dispose === void 0) {\n if (!Symbol.dispose) throw new TypeError(\"Symbol.dispose is not defined.\");\n dispose = value[Symbol.dispose];\n }\n if (typeof dispose !== \"function\") throw new TypeError(\"Object not disposable.\");\n env.stack.push({ value: value, dispose: dispose, async: async });\n }\n else if (async) {\n env.stack.push({ async: true });\n }\n return value;\n}\n\nvar _SuppressedError = typeof SuppressedError === \"function\" ? SuppressedError : function (error, suppressed, message) {\n var e = new Error(message);\n return e.name = \"SuppressedError\", e.error = error, e.suppressed = suppressed, e;\n};\n\nexport function __disposeResources(env) {\n function fail(e) {\n env.error = env.hasError ? new _SuppressedError(e, env.error, \"An error was suppressed during disposal.\") : e;\n env.hasError = true;\n }\n function next() {\n while (env.stack.length) {\n var rec = env.stack.pop();\n try {\n var result = rec.dispose && rec.dispose.call(rec.value);\n if (rec.async) return Promise.resolve(result).then(next, function(e) { fail(e); return next(); });\n }\n catch (e) {\n fail(e);\n }\n }\n if (env.hasError) throw env.error;\n }\n return next();\n}\n\nexport default {\n __extends,\n __assign,\n __rest,\n __decorate,\n __param,\n __metadata,\n __awaiter,\n __generator,\n __createBinding,\n __exportStar,\n __values,\n __read,\n __spread,\n __spreadArrays,\n __spreadArray,\n __await,\n __asyncGenerator,\n __asyncDelegator,\n __asyncValues,\n __makeTemplateObject,\n __importStar,\n __importDefault,\n __classPrivateFieldGet,\n __classPrivateFieldSet,\n __classPrivateFieldIn,\n __addDisposableResource,\n __disposeResources,\n};\n",null,"import React, { useEffect, useLayoutEffect, createContext, useContext, useMemo, useRef, createElement } from 'react';\n\n// Shared state between server components and client components\nconst noop = ()=>{};\n// Using noop() as the undefined value as undefined can be replaced\n// by something else. Prettier ignore and extra parentheses are necessary here\n// to ensure that tsc doesn't remove the __NOINLINE__ comment.\n// prettier-ignore\nconst UNDEFINED = /*#__NOINLINE__*/ noop();\nconst OBJECT = Object;\nconst isUndefined = (v)=>v === UNDEFINED;\nconst isFunction = (v)=>typeof v == 'function';\nconst mergeObjects = (a, b)=>({\n ...a,\n ...b\n });\nconst isPromiseLike = (x)=>isFunction(x.then);\n\n// use WeakMap to store the object->key mapping\n// so the objects can be garbage collected.\n// WeakMap uses a hashtable under the hood, so the lookup\n// complexity is almost O(1).\nconst table = new WeakMap();\n// counter of the key\nlet counter = 0;\n// A stable hash implementation that supports:\n// - Fast and ensures unique hash properties\n// - Handles unserializable values\n// - Handles object key ordering\n// - Generates short results\n//\n// This is not a serialization function, and the result is not guaranteed to be\n// parsable.\nconst stableHash = (arg)=>{\n const type = typeof arg;\n const constructor = arg && arg.constructor;\n const isDate = constructor == Date;\n let result;\n let index;\n if (OBJECT(arg) === arg && !isDate && constructor != RegExp) {\n // Object/function, not null/date/regexp. Use WeakMap to store the id first.\n // If it's already hashed, directly return the result.\n result = table.get(arg);\n if (result) return result;\n // Store the hash first for circular reference detection before entering the\n // recursive `stableHash` calls.\n // For other objects like set and map, we use this id directly as the hash.\n result = ++counter + '~';\n table.set(arg, result);\n if (constructor == Array) {\n // Array.\n result = '@';\n for(index = 0; index < arg.length; index++){\n result += stableHash(arg[index]) + ',';\n }\n table.set(arg, result);\n }\n if (constructor == OBJECT) {\n // Object, sort keys.\n result = '#';\n const keys = OBJECT.keys(arg).sort();\n while(!isUndefined(index = keys.pop())){\n if (!isUndefined(arg[index])) {\n result += index + ':' + stableHash(arg[index]) + ',';\n }\n }\n table.set(arg, result);\n }\n } else {\n result = isDate ? arg.toJSON() : type == 'symbol' ? arg.toString() : type == 'string' ? JSON.stringify(arg) : '' + arg;\n }\n return result;\n};\n\n// Global state used to deduplicate requests and store listeners\nconst SWRGlobalState = new WeakMap();\n\nconst EMPTY_CACHE = {};\nconst INITIAL_CACHE = {};\nconst STR_UNDEFINED = 'undefined';\n// NOTE: Use the function to guarantee it's re-evaluated between jsdom and node runtime for tests.\nconst isWindowDefined = typeof window != STR_UNDEFINED;\nconst isDocumentDefined = typeof document != STR_UNDEFINED;\nconst hasRequestAnimationFrame = ()=>isWindowDefined && typeof window['requestAnimationFrame'] != STR_UNDEFINED;\nconst createCacheHelper = (cache, key)=>{\n const state = SWRGlobalState.get(cache);\n return [\n // Getter\n ()=>!isUndefined(key) && cache.get(key) || EMPTY_CACHE,\n // Setter\n (info)=>{\n if (!isUndefined(key)) {\n const prev = cache.get(key);\n // Before writing to the store, we keep the value in the initial cache\n // if it's not there yet.\n if (!(key in INITIAL_CACHE)) {\n INITIAL_CACHE[key] = prev;\n }\n state[5](key, mergeObjects(prev, info), prev || EMPTY_CACHE);\n }\n },\n // Subscriber\n state[6],\n // Get server cache snapshot\n ()=>{\n if (!isUndefined(key)) {\n // If the cache was updated on the client, we return the stored initial value.\n if (key in INITIAL_CACHE) return INITIAL_CACHE[key];\n }\n // If we haven't done any client-side updates, we return the current value.\n return !isUndefined(key) && cache.get(key) || EMPTY_CACHE;\n }\n ];\n} // export { UNDEFINED, OBJECT, isUndefined, isFunction, mergeObjects, isPromiseLike }\n;\n\n/**\n * Due to the bug https://bugs.chromium.org/p/chromium/issues/detail?id=678075,\n * it's not reliable to detect if the browser is currently online or offline\n * based on `navigator.onLine`.\n * As a workaround, we always assume it's online on the first load, and change\n * the status upon `online` or `offline` events.\n */ let online = true;\nconst isOnline = ()=>online;\n// For node and React Native, `add/removeEventListener` doesn't exist on window.\nconst [onWindowEvent, offWindowEvent] = isWindowDefined && window.addEventListener ? [\n window.addEventListener.bind(window),\n window.removeEventListener.bind(window)\n] : [\n noop,\n noop\n];\nconst isVisible = ()=>{\n const visibilityState = isDocumentDefined && document.visibilityState;\n return isUndefined(visibilityState) || visibilityState !== 'hidden';\n};\nconst initFocus = (callback)=>{\n // focus revalidate\n if (isDocumentDefined) {\n document.addEventListener('visibilitychange', callback);\n }\n onWindowEvent('focus', callback);\n return ()=>{\n if (isDocumentDefined) {\n document.removeEventListener('visibilitychange', callback);\n }\n offWindowEvent('focus', callback);\n };\n};\nconst initReconnect = (callback)=>{\n // revalidate on reconnected\n const onOnline = ()=>{\n online = true;\n callback();\n };\n // nothing to revalidate, just update the status\n const onOffline = ()=>{\n online = false;\n };\n onWindowEvent('online', onOnline);\n onWindowEvent('offline', onOffline);\n return ()=>{\n offWindowEvent('online', onOnline);\n offWindowEvent('offline', onOffline);\n };\n};\nconst preset = {\n isOnline,\n isVisible\n};\nconst defaultConfigOptions = {\n initFocus,\n initReconnect\n};\n\nconst IS_REACT_LEGACY = !React.useId;\nconst IS_SERVER = !isWindowDefined || 'Deno' in window;\n// Polyfill requestAnimationFrame\nconst rAF = (f)=>hasRequestAnimationFrame() ? window['requestAnimationFrame'](f) : setTimeout(f, 1);\n// React currently throws a warning when using useLayoutEffect on the server.\n// To get around it, we can conditionally useEffect on the server (no-op) and\n// useLayoutEffect in the browser.\nconst useIsomorphicLayoutEffect = IS_SERVER ? useEffect : useLayoutEffect;\n// This assignment is to extend the Navigator type to use effectiveType.\nconst navigatorConnection = typeof navigator !== 'undefined' && navigator.connection;\n// Adjust the config based on slow connection status (<= 70Kbps).\nconst slowConnection = !IS_SERVER && navigatorConnection && ([\n 'slow-2g',\n '2g'\n].includes(navigatorConnection.effectiveType) || navigatorConnection.saveData);\n\nconst serialize = (key)=>{\n if (isFunction(key)) {\n try {\n key = key();\n } catch (err) {\n // dependencies not ready\n key = '';\n }\n }\n // Use the original key as the argument of fetcher. This can be a string or an\n // array of values.\n const args = key;\n // If key is not falsy, or not an empty array, hash it.\n key = typeof key == 'string' ? key : (Array.isArray(key) ? key.length : key) ? stableHash(key) : '';\n return [\n key,\n args\n ];\n};\n\n// Global timestamp.\nlet __timestamp = 0;\nconst getTimestamp = ()=>++__timestamp;\n\nconst FOCUS_EVENT = 0;\nconst RECONNECT_EVENT = 1;\nconst MUTATE_EVENT = 2;\nconst ERROR_REVALIDATE_EVENT = 3;\n\nvar events = {\n __proto__: null,\n ERROR_REVALIDATE_EVENT: ERROR_REVALIDATE_EVENT,\n FOCUS_EVENT: FOCUS_EVENT,\n MUTATE_EVENT: MUTATE_EVENT,\n RECONNECT_EVENT: RECONNECT_EVENT\n};\n\nasync function internalMutate(...args) {\n const [cache, _key, _data, _opts] = args;\n // When passing as a boolean, it's explicitly used to disable/enable\n // revalidation.\n const options = mergeObjects({\n populateCache: true,\n throwOnError: true\n }, typeof _opts === 'boolean' ? {\n revalidate: _opts\n } : _opts || {});\n let populateCache = options.populateCache;\n const rollbackOnErrorOption = options.rollbackOnError;\n let optimisticData = options.optimisticData;\n const revalidate = options.revalidate !== false;\n const rollbackOnError = (error)=>{\n return typeof rollbackOnErrorOption === 'function' ? rollbackOnErrorOption(error) : rollbackOnErrorOption !== false;\n };\n const throwOnError = options.throwOnError;\n // If the second argument is a key filter, return the mutation results for all\n // filtered keys.\n if (isFunction(_key)) {\n const keyFilter = _key;\n const matchedKeys = [];\n const it = cache.keys();\n for (const key of it){\n if (// Skip the special useSWRInfinite and useSWRSubscription keys.\n !/^\\$(inf|sub)\\$/.test(key) && keyFilter(cache.get(key)._k)) {\n matchedKeys.push(key);\n }\n }\n return Promise.all(matchedKeys.map(mutateByKey));\n }\n return mutateByKey(_key);\n async function mutateByKey(_k) {\n // Serialize key\n const [key] = serialize(_k);\n if (!key) return;\n const [get, set] = createCacheHelper(cache, key);\n const [EVENT_REVALIDATORS, MUTATION, FETCH, PRELOAD] = SWRGlobalState.get(cache);\n const startRevalidate = ()=>{\n const revalidators = EVENT_REVALIDATORS[key];\n if (revalidate) {\n // Invalidate the key by deleting the concurrent request markers so new\n // requests will not be deduped.\n delete FETCH[key];\n delete PRELOAD[key];\n if (revalidators && revalidators[0]) {\n return revalidators[0](MUTATE_EVENT).then(()=>get().data);\n }\n }\n return get().data;\n };\n // If there is no new data provided, revalidate the key with current state.\n if (args.length < 3) {\n // Revalidate and broadcast state.\n return startRevalidate();\n }\n let data = _data;\n let error;\n // Update global timestamps.\n const beforeMutationTs = getTimestamp();\n MUTATION[key] = [\n beforeMutationTs,\n 0\n ];\n const hasOptimisticData = !isUndefined(optimisticData);\n const state = get();\n // `displayedData` is the current value on screen. It could be the optimistic value\n // that is going to be overridden by a `committedData`, or get reverted back.\n // `committedData` is the validated value that comes from a fetch or mutation.\n const displayedData = state.data;\n const currentData = state._c;\n const committedData = isUndefined(currentData) ? displayedData : currentData;\n // Do optimistic data update.\n if (hasOptimisticData) {\n optimisticData = isFunction(optimisticData) ? optimisticData(committedData, displayedData) : optimisticData;\n // When we set optimistic data, backup the current committedData data in `_c`.\n set({\n data: optimisticData,\n _c: committedData\n });\n }\n if (isFunction(data)) {\n // `data` is a function, call it passing current cache value.\n try {\n data = data(committedData);\n } catch (err) {\n // If it throws an error synchronously, we shouldn't update the cache.\n error = err;\n }\n }\n // `data` is a promise/thenable, resolve the final data first.\n if (data && isPromiseLike(data)) {\n // This means that the mutation is async, we need to check timestamps to\n // avoid race conditions.\n data = await data.catch((err)=>{\n error = err;\n });\n // Check if other mutations have occurred since we've started this mutation.\n // If there's a race we don't update cache or broadcast the change,\n // just return the data.\n if (beforeMutationTs !== MUTATION[key][0]) {\n if (error) throw error;\n return data;\n } else if (error && hasOptimisticData && rollbackOnError(error)) {\n // Rollback. Always populate the cache in this case but without\n // transforming the data.\n populateCache = true;\n // Reset data to be the latest committed data, and clear the `_c` value.\n set({\n data: committedData,\n _c: UNDEFINED\n });\n }\n }\n // If we should write back the cache after request.\n if (populateCache) {\n if (!error) {\n // Transform the result into data.\n if (isFunction(populateCache)) {\n const populateCachedData = populateCache(data, committedData);\n set({\n data: populateCachedData,\n error: UNDEFINED,\n _c: UNDEFINED\n });\n } else {\n // Only update cached data and reset the error if there's no error. Data can be `undefined` here.\n set({\n data,\n error: UNDEFINED,\n _c: UNDEFINED\n });\n }\n }\n }\n // Reset the timestamp to mark the mutation has ended.\n MUTATION[key][1] = getTimestamp();\n // Update existing SWR Hooks' internal states:\n Promise.resolve(startRevalidate()).then(()=>{\n // The mutation and revalidation are ended, we can clear it since the data is\n // not an optimistic value anymore.\n set({\n _c: UNDEFINED\n });\n });\n // Throw error or return data\n if (error) {\n if (throwOnError) throw error;\n return;\n }\n return data;\n }\n}\n\nconst revalidateAllKeys = (revalidators, type)=>{\n for(const key in revalidators){\n if (revalidators[key][0]) revalidators[key][0](type);\n }\n};\nconst initCache = (provider, options)=>{\n // The global state for a specific provider will be used to deduplicate\n // requests and store listeners. As well as a mutate function that is bound to\n // the cache.\n // The provider's global state might be already initialized. Let's try to get the\n // global state associated with the provider first.\n if (!SWRGlobalState.has(provider)) {\n const opts = mergeObjects(defaultConfigOptions, options);\n // If there's no global state bound to the provider, create a new one with the\n // new mutate function.\n const EVENT_REVALIDATORS = {};\n const mutate = internalMutate.bind(UNDEFINED, provider);\n let unmount = noop;\n const subscriptions = {};\n const subscribe = (key, callback)=>{\n const subs = subscriptions[key] || [];\n subscriptions[key] = subs;\n subs.push(callback);\n return ()=>subs.splice(subs.indexOf(callback), 1);\n };\n const setter = (key, value, prev)=>{\n provider.set(key, value);\n const subs = subscriptions[key];\n if (subs) {\n for (const fn of subs){\n fn(value, prev);\n }\n }\n };\n const initProvider = ()=>{\n if (!SWRGlobalState.has(provider)) {\n // Update the state if it's new, or if the provider has been extended.\n SWRGlobalState.set(provider, [\n EVENT_REVALIDATORS,\n {},\n {},\n {},\n mutate,\n setter,\n subscribe\n ]);\n if (!IS_SERVER) {\n // When listening to the native events for auto revalidations,\n // we intentionally put a delay (setTimeout) here to make sure they are\n // fired after immediate JavaScript executions, which can be\n // React's state updates.\n // This avoids some unnecessary revalidations such as\n // https://github.com/vercel/swr/issues/1680.\n const releaseFocus = opts.initFocus(setTimeout.bind(UNDEFINED, revalidateAllKeys.bind(UNDEFINED, EVENT_REVALIDATORS, FOCUS_EVENT)));\n const releaseReconnect = opts.initReconnect(setTimeout.bind(UNDEFINED, revalidateAllKeys.bind(UNDEFINED, EVENT_REVALIDATORS, RECONNECT_EVENT)));\n unmount = ()=>{\n releaseFocus && releaseFocus();\n releaseReconnect && releaseReconnect();\n // When un-mounting, we need to remove the cache provider from the state\n // storage too because it's a side-effect. Otherwise, when re-mounting we\n // will not re-register those event listeners.\n SWRGlobalState.delete(provider);\n };\n }\n }\n };\n initProvider();\n // This is a new provider, we need to initialize it and setup DOM events\n // listeners for `focus` and `reconnect` actions.\n // We might want to inject an extra layer on top of `provider` in the future,\n // such as key serialization, auto GC, etc.\n // For now, it's just a `Map` interface without any modifications.\n return [\n provider,\n mutate,\n initProvider,\n unmount\n ];\n }\n return [\n provider,\n SWRGlobalState.get(provider)[4]\n ];\n};\n\n// error retry\nconst onErrorRetry = (_, __, config, revalidate, opts)=>{\n const maxRetryCount = config.errorRetryCount;\n const currentRetryCount = opts.retryCount;\n // Exponential backoff\n const timeout = ~~((Math.random() + 0.5) * (1 << (currentRetryCount < 8 ? currentRetryCount : 8))) * config.errorRetryInterval;\n if (!isUndefined(maxRetryCount) && currentRetryCount > maxRetryCount) {\n return;\n }\n setTimeout(revalidate, timeout, opts);\n};\nconst compare = (currentData, newData)=>stableHash(currentData) == stableHash(newData);\n// Default cache provider\nconst [cache, mutate] = initCache(new Map());\n// Default config\nconst defaultConfig = mergeObjects({\n // events\n onLoadingSlow: noop,\n onSuccess: noop,\n onError: noop,\n onErrorRetry,\n onDiscarded: noop,\n // switches\n revalidateOnFocus: true,\n revalidateOnReconnect: true,\n revalidateIfStale: true,\n shouldRetryOnError: true,\n // timeouts\n errorRetryInterval: slowConnection ? 10000 : 5000,\n focusThrottleInterval: 5 * 1000,\n dedupingInterval: 2 * 1000,\n loadingTimeout: slowConnection ? 5000 : 3000,\n // providers\n compare,\n isPaused: ()=>false,\n cache,\n mutate,\n fallback: {}\n}, // use web preset by default\npreset);\n\nconst mergeConfigs = (a, b)=>{\n // Need to create a new object to avoid mutating the original here.\n const v = mergeObjects(a, b);\n // If two configs are provided, merge their `use` and `fallback` options.\n if (b) {\n const { use: u1, fallback: f1 } = a;\n const { use: u2, fallback: f2 } = b;\n if (u1 && u2) {\n v.use = u1.concat(u2);\n }\n if (f1 && f2) {\n v.fallback = mergeObjects(f1, f2);\n }\n }\n return v;\n};\n\nconst SWRConfigContext = createContext({});\nconst SWRConfig = (props)=>{\n const { value } = props;\n const parentConfig = useContext(SWRConfigContext);\n const isFunctionalConfig = isFunction(value);\n const config = useMemo(()=>isFunctionalConfig ? value(parentConfig) : value, [\n isFunctionalConfig,\n parentConfig,\n value\n ]);\n // Extend parent context values and middleware.\n const extendedConfig = useMemo(()=>isFunctionalConfig ? config : mergeConfigs(parentConfig, config), [\n isFunctionalConfig,\n parentConfig,\n config\n ]);\n // Should not use the inherited provider.\n const provider = config && config.provider;\n // initialize the cache only on first access.\n const cacheContextRef = useRef(UNDEFINED);\n if (provider && !cacheContextRef.current) {\n cacheContextRef.current = initCache(provider(extendedConfig.cache || cache), config);\n }\n const cacheContext = cacheContextRef.current;\n // Override the cache if a new provider is given.\n if (cacheContext) {\n extendedConfig.cache = cacheContext[0];\n extendedConfig.mutate = cacheContext[1];\n }\n // Unsubscribe events.\n useIsomorphicLayoutEffect(()=>{\n if (cacheContext) {\n cacheContext[2] && cacheContext[2]();\n return cacheContext[3];\n }\n }, []);\n return createElement(SWRConfigContext.Provider, mergeObjects(props, {\n value: extendedConfig\n }));\n};\n\nconst INFINITE_PREFIX = '$inf$';\n\n// @ts-expect-error\nconst enableDevtools = isWindowDefined && window.__SWR_DEVTOOLS_USE__;\nconst use = enableDevtools ? window.__SWR_DEVTOOLS_USE__ : [];\nconst setupDevTools = ()=>{\n if (enableDevtools) {\n // @ts-expect-error\n window.__SWR_DEVTOOLS_REACT__ = React;\n }\n};\n\nconst normalize = (args)=>{\n return isFunction(args[1]) ? [\n args[0],\n args[1],\n args[2] || {}\n ] : [\n args[0],\n null,\n (args[1] === null ? args[2] : args[1]) || {}\n ];\n};\n\nconst useSWRConfig = ()=>{\n return mergeObjects(defaultConfig, useContext(SWRConfigContext));\n};\n\nconst preload = (key_, fetcher)=>{\n const [key, fnArg] = serialize(key_);\n const [, , , PRELOAD] = SWRGlobalState.get(cache);\n // Prevent preload to be called multiple times before used.\n if (PRELOAD[key]) return PRELOAD[key];\n const req = fetcher(fnArg);\n PRELOAD[key] = req;\n return req;\n};\nconst middleware = (useSWRNext)=>(key_, fetcher_, config)=>{\n // fetcher might be a sync function, so this should not be an async function\n const fetcher = fetcher_ && ((...args)=>{\n const [key] = serialize(key_);\n const [, , , PRELOAD] = SWRGlobalState.get(cache);\n if (key.startsWith(INFINITE_PREFIX)) {\n // we want the infinite fetcher to be called.\n // handling of the PRELOAD cache happens there.\n return fetcher_(...args);\n }\n const req = PRELOAD[key];\n if (isUndefined(req)) return fetcher_(...args);\n delete PRELOAD[key];\n return req;\n });\n return useSWRNext(key_, fetcher, config);\n };\n\nconst BUILT_IN_MIDDLEWARE = use.concat(middleware);\n\n// It's tricky to pass generic types as parameters, so we just directly override\n// the types here.\nconst withArgs = (hook)=>{\n return function useSWRArgs(...args) {\n // Get the default and inherited configuration.\n const fallbackConfig = useSWRConfig();\n // Normalize arguments.\n const [key, fn, _config] = normalize(args);\n // Merge configurations.\n const config = mergeConfigs(fallbackConfig, _config);\n // Apply middleware\n let next = hook;\n const { use } = config;\n const middleware = (use || []).concat(BUILT_IN_MIDDLEWARE);\n for(let i = middleware.length; i--;){\n next = middleware[i](next);\n }\n return next(key, fn || config.fetcher || null, config);\n };\n};\n\n// Add a callback function to a list of keyed callback functions and return\n// the unsubscribe function.\nconst subscribeCallback = (key, callbacks, callback)=>{\n const keyedRevalidators = callbacks[key] || (callbacks[key] = []);\n keyedRevalidators.push(callback);\n return ()=>{\n const index = keyedRevalidators.indexOf(callback);\n if (index >= 0) {\n // O(1): faster than splice\n keyedRevalidators[index] = keyedRevalidators[keyedRevalidators.length - 1];\n keyedRevalidators.pop();\n }\n };\n};\n\n// Create a custom hook with a middleware\nconst withMiddleware = (useSWR, middleware)=>{\n return (...args)=>{\n const [key, fn, config] = normalize(args);\n const uses = (config.use || []).concat(middleware);\n return useSWR(key, fn, {\n ...config,\n use: uses\n });\n };\n};\n\nsetupDevTools();\n\nexport { INFINITE_PREFIX, IS_REACT_LEGACY, IS_SERVER, OBJECT, SWRConfig, SWRGlobalState, UNDEFINED, cache, compare, createCacheHelper, defaultConfig, defaultConfigOptions, getTimestamp, hasRequestAnimationFrame, initCache, internalMutate, isDocumentDefined, isFunction, isPromiseLike, isUndefined, isWindowDefined, mergeConfigs, mergeObjects, mutate, noop, normalize, preload, preset, rAF, events as revalidateEvents, serialize, slowConnection, stableHash, subscribeCallback, useIsomorphicLayoutEffect, useSWRConfig, withArgs, withMiddleware };\n","import 'client-only';\nimport ReactExports, { useRef, useMemo, useCallback, useDebugValue } from 'react';\nimport { useSyncExternalStore } from 'use-sync-external-store/shim/index.js';\nimport { serialize, OBJECT, SWRConfig as SWRConfig$1, defaultConfig, withArgs, SWRGlobalState, createCacheHelper, isUndefined, getTimestamp, UNDEFINED, isFunction, revalidateEvents, internalMutate, useIsomorphicLayoutEffect, subscribeCallback, IS_SERVER, rAF, IS_REACT_LEGACY, mergeObjects } from 'swr/_internal';\nexport { mutate, preload, useSWRConfig } from 'swr/_internal';\n\nconst unstable_serialize = (key)=>serialize(key)[0];\n\n/// <reference types=\"react/experimental\" />\nconst use = ReactExports.use || ((promise)=>{\n if (promise.status === 'pending') {\n throw promise;\n } else if (promise.status === 'fulfilled') {\n return promise.value;\n } else if (promise.status === 'rejected') {\n throw promise.reason;\n } else {\n promise.status = 'pending';\n promise.then((v)=>{\n promise.status = 'fulfilled';\n promise.value = v;\n }, (e)=>{\n promise.status = 'rejected';\n promise.reason = e;\n });\n throw promise;\n }\n});\nconst WITH_DEDUPE = {\n dedupe: true\n};\nconst useSWRHandler = (_key, fetcher, config)=>{\n const { cache, compare, suspense, fallbackData, revalidateOnMount, revalidateIfStale, refreshInterval, refreshWhenHidden, refreshWhenOffline, keepPreviousData } = config;\n const [EVENT_REVALIDATORS, MUTATION, FETCH, PRELOAD] = SWRGlobalState.get(cache);\n // `key` is the identifier of the SWR internal state,\n // `fnArg` is the argument/arguments parsed from the key, which will be passed\n // to the fetcher.\n // All of them are derived from `_key`.\n const [key, fnArg] = serialize(_key);\n // If it's the initial render of this hook.\n const initialMountedRef = useRef(false);\n // If the hook is unmounted already. This will be used to prevent some effects\n // to be called after unmounting.\n const unmountedRef = useRef(false);\n // Refs to keep the key and config.\n const keyRef = useRef(key);\n const fetcherRef = useRef(fetcher);\n const configRef = useRef(config);\n const getConfig = ()=>configRef.current;\n const isActive = ()=>getConfig().isVisible() && getConfig().isOnline();\n const [getCache, setCache, subscribeCache, getInitialCache] = createCacheHelper(cache, key);\n const stateDependencies = useRef({}).current;\n const fallback = isUndefined(fallbackData) ? config.fallback[key] : fallbackData;\n const isEqual = (prev, current)=>{\n for(const _ in stateDependencies){\n const t = _;\n if (t === 'data') {\n if (!compare(prev[t], current[t])) {\n if (!isUndefined(prev[t])) {\n return false;\n }\n if (!compare(returnedData, current[t])) {\n return false;\n }\n }\n } else {\n if (current[t] !== prev[t]) {\n return false;\n }\n }\n }\n return true;\n };\n const getSnapshot = useMemo(()=>{\n const shouldStartRequest = (()=>{\n if (!key) return false;\n if (!fetcher) return false;\n // If `revalidateOnMount` is set, we take the value directly.\n if (!isUndefined(revalidateOnMount)) return revalidateOnMount;\n // If it's paused, we skip revalidation.\n if (getConfig().isPaused()) return false;\n if (suspense) return false;\n if (!isUndefined(revalidateIfStale)) return revalidateIfStale;\n return true;\n })();\n // Get the cache and merge it with expected states.\n const getSelectedCache = (state)=>{\n // We only select the needed fields from the state.\n const snapshot = mergeObjects(state);\n delete snapshot._k;\n if (!shouldStartRequest) {\n return snapshot;\n }\n return {\n isValidating: true,\n isLoading: true,\n ...snapshot\n };\n };\n const cachedData = getCache();\n const initialData = getInitialCache();\n const clientSnapshot = getSelectedCache(cachedData);\n const serverSnapshot = cachedData === initialData ? clientSnapshot : getSelectedCache(initialData);\n // To make sure that we are returning the same object reference to avoid\n // unnecessary re-renders, we keep the previous snapshot and use deep\n // comparison to check if we need to return a new one.\n let memorizedSnapshot = clientSnapshot;\n return [\n ()=>{\n const newSnapshot = getSelectedCache(getCache());\n const compareResult = isEqual(newSnapshot, memorizedSnapshot);\n if (compareResult) {\n // Mentally, we should always return the `memorizedSnapshot` here\n // as there's no change between the new and old snapshots.\n // However, since the `isEqual` function only compares selected fields,\n // the values of the unselected fields might be changed. That's\n // simply because we didn't track them.\n // To support the case in https://github.com/vercel/swr/pull/2576,\n // we need to update these fields in the `memorizedSnapshot` too\n // with direct mutations to ensure the snapshot is always up-to-date\n // even for the unselected fields, but only trigger re-renders when\n // the selected fields are changed.\n memorizedSnapshot.data = newSnapshot.data;\n memorizedSnapshot.isLoading = newSnapshot.isLoading;\n memorizedSnapshot.isValidating = newSnapshot.isValidating;\n memorizedSnapshot.error = newSnapshot.error;\n return memorizedSnapshot;\n } else {\n memorizedSnapshot = newSnapshot;\n return newSnapshot;\n }\n },\n ()=>serverSnapshot\n ];\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [\n cache,\n key\n ]);\n // Get the current state that SWR should return.\n const cached = useSyncExternalStore(useCallback((callback)=>subscribeCache(key, (current, prev)=>{\n if (!isEqual(prev, current)) callback();\n }), // eslint-disable-next-line react-hooks/exhaustive-deps\n [\n cache,\n key\n ]), getSnapshot[0], getSnapshot[1]);\n const isInitialMount = !initialMountedRef.current;\n const hasRevalidator = EVENT_REVALIDATORS[key] && EVENT_REVALIDATORS[key].length > 0;\n const cachedData = cached.data;\n const data = isUndefined(cachedData) ? fallback : cachedData;\n const error = cached.error;\n // Use a ref to store previously returned data. Use the initial data as its initial value.\n const laggyDataRef = useRef(data);\n const returnedData = keepPreviousData ? isUndefined(cachedData) ? laggyDataRef.current : cachedData : data;\n // - Suspense mode and there's stale data for the initial render.\n // - Not suspense mode and there is no fallback data and `revalidateIfStale` is enabled.\n // - `revalidateIfStale` is enabled but `data` is not defined.\n const shouldDoInitialRevalidation = (()=>{\n // if a key already has revalidators and also has error, we should not trigger revalidation\n if (hasRevalidator && !isUndefined(error)) return false;\n // If `revalidateOnMount` is set, we take the value directly.\n if (isInitialMount && !isUndefined(revalidateOnMount)) return revalidateOnMount;\n // If it's paused, we skip revalidation.\n if (getConfig().isPaused()) return false;\n // Under suspense mode, it will always fetch on render if there is no\n // stale data so no need to revalidate immediately mount it again.\n // If data exists, only revalidate if `revalidateIfStale` is true.\n if (suspense) return isUndefined(data) ? false : revalidateIfStale;\n // If there is no stale data, we need to revalidate when mount;\n // If `revalidateIfStale` is set to true, we will always revalidate.\n return isUndefined(data) || revalidateIfStale;\n })();\n // Resolve the default validating state:\n // If it's able to validate, and it should revalidate when mount, this will be true.\n const defaultValidatingState = !!(key && fetcher && isInitialMount && shouldDoInitialRevalidation);\n const isValidating = isUndefined(cached.isValidating) ? defaultValidatingState : cached.isValidating;\n const isLoading = isUndefined(cached.isLoading) ? defaultValidatingState : cached.isLoading;\n // The revalidation function is a carefully crafted wrapper of the original\n // `fetcher`, to correctly handle the many edge cases.\n const revalidate = useCallback(async (revalidateOpts)=>{\n const currentFetcher = fetcherRef.current;\n if (!key || !currentFetcher || unmountedRef.current || getConfig().isPaused()) {\n return false;\n }\n let newData;\n let startAt;\n let loading = true;\n const opts = revalidateOpts || {};\n // If there is no ongoing concurrent request, or `dedupe` is not set, a\n // new request should be initiated.\n const shouldStartNewRequest = !FETCH[key] || !opts.dedupe;\n /*\n For React 17\n Do unmount check for calls:\n If key has changed during the revalidation, or the component has been\n unmounted, old dispatch and old event callbacks should not take any\n effect\n\n For React 18\n only check if key has changed\n https://github.com/reactwg/react-18/discussions/82\n */ const callbackSafeguard = ()=>{\n if (IS_REACT_LEGACY) {\n return !unmountedRef.current && key === keyRef.current && initialMountedRef.current;\n }\n return key === keyRef.current;\n };\n // The final state object when the request finishes.\n const finalState = {\n isValidating: false,\n isLoading: false\n };\n const finishRequestAndUpdateState = ()=>{\n setCache(finalState);\n };\n const cleanupState = ()=>{\n // Check if it's still the same request before deleting it.\n const requestInfo = FETCH[key];\n if (requestInfo && requestInfo[1] === startAt) {\n delete FETCH[key];\n }\n };\n // Start fetching. Change the `isValidating` state, update the cache.\n const initialState = {\n isValidating: true\n };\n // It is in the `isLoading` state, if and only if there is no cached data.\n // This bypasses fallback data and laggy data.\n if (isUndefined(getCache().data)) {\n initialState.isLoading = true;\n }\n try {\n if (shouldStartNewRequest) {\n setCache(initialState);\n // If no cache is being rendered currently (it shows a blank page),\n // we trigger the loading slow event.\n if (config.loadingTimeout && isUndefined(getCache().data)) {\n setTimeout(()=>{\n if (loading && callbackSafeguard()) {\n getConfig().onLoadingSlow(key, config);\n }\n }, config.loadingTimeout);\n }\n // Start the request and save the timestamp.\n // Key must be truthy if entering here.\n FETCH[key] = [\n currentFetcher(fnArg),\n getTimestamp()\n ];\n }\n [newData, startAt] = FETCH[key];\n newData = await newData;\n if (shouldStartNewRequest) {\n // If the request isn't interrupted, clean it up after the\n // deduplication interval.\n setTimeout(cleanupState, config.dedupingInterval);\n }\n // If there're other ongoing request(s), started after the current one,\n // we need to ignore the current one to avoid possible race conditions:\n // req1------------------>res1 (current one)\n // req2---------------->res2\n // the request that fired later will always be kept.\n // The timestamp maybe be `undefined` or a number\n if (!FETCH[key] || FETCH[key][1] !== startAt) {\n if (shouldStartNewRequest) {\n if (callbackSafeguard()) {\n getConfig().onDiscarded(key);\n }\n }\n return false;\n }\n // Clear error.\n finalState.error = UNDEFINED;\n // If there're other mutations(s), that overlapped with the current revalidation:\n // case 1:\n // req------------------>res\n // mutate------>end\n // case 2:\n // req------------>res\n // mutate------>end\n // case 3:\n // req------------------>res\n // mutate-------...---------->\n // we have to ignore the revalidation result (res) because it's no longer fresh.\n // meanwhile, a new revalidation should be triggered when the mutation ends.\n const mutationInfo = MUTATION[key];\n if (!isUndefined(mutationInfo) && // case 1\n (startAt <= mutationInfo[0] || // case 2\n startAt <= mutationInfo[1] || // case 3\n mutationInfo[1] === 0)) {\n finishRequestAndUpdateState();\n if (shouldStartNewRequest) {\n if (callbackSafeguard()) {\n getConfig().onDiscarded(key);\n }\n }\n return false;\n }\n // Deep compare with the latest state to avoid extra re-renders.\n // For local state, compare and assign.\n const cacheData = getCache().data;\n // Since the compare fn could be custom fn\n // cacheData might be different from newData even when compare fn returns True\n finalState.data = compare(cacheData, newData) ? cacheData : newData;\n // Trigger the successful callback if it's the original request.\n if (shouldStartNewRequest) {\n if (callbackSafeguard()) {\n getConfig().onSuccess(newData, key, config);\n }\n }\n } catch (err) {\n cleanupState();\n const currentConfig = getConfig();\n const { shouldRetryOnError } = currentConfig;\n // Not paused, we continue handling the error. Otherwise, discard it.\n if (!currentConfig.isPaused()) {\n // Get a new error, don't use deep comparison for errors.\n finalState.error = err;\n // Error event and retry logic. Only for the actual request, not\n // deduped ones.\n if (shouldStartNewRequest && callbackSafeguard()) {\n currentConfig.onError(err, key, currentConfig);\n if (shouldRetryOnError === true || isFunction(shouldRetryOnError) && shouldRetryOnError(err)) {\n if (isActive()) {\n // If it's inactive, stop. It will auto-revalidate when\n // refocusing or reconnecting.\n // When retrying, deduplication is always enabled.\n currentConfig.onErrorRetry(err, key, currentConfig, (_opts)=>{\n const revalidators = EVENT_REVALIDATORS[key];\n if (revalidators && revalidators[0]) {\n revalidators[0](revalidateEvents.ERROR_REVALIDATE_EVENT, _opts);\n }\n }, {\n retryCount: (opts.retryCount || 0) + 1,\n dedupe: true\n });\n }\n }\n }\n }\n }\n // Mark loading as stopped.\n loading = false;\n // Update the current hook's state.\n finishRequestAndUpdateState();\n return true;\n }, // `setState` is immutable, and `eventsCallback`, `fnArg`, and\n // `keyValidating` are depending on `key`, so we can exclude them from\n // the deps array.\n //\n // FIXME:\n // `fn` and `config` might be changed during the lifecycle,\n // but they might be changed every render like this.\n // `useSWR('key', () => fetch('/api/'), { suspense: true })`\n // So we omit the values from the deps array\n // even though it might cause unexpected behaviors.\n // eslint-disable-next-line react-hooks/exhaustive-deps\n [\n key,\n cache\n ]);\n // Similar to the global mutate but bound to the current cache and key.\n // `cache` isn't allowed to change during the lifecycle.\n // eslint-disable-next-line react-hooks/exhaustive-deps\n const boundMutate = useCallback(// Use callback to make sure `keyRef.current` returns latest result every time\n (...args)=>{\n return internalMutate(cache, keyRef.current, ...args);\n }, // eslint-disable-next-line react-hooks/exhaustive-deps\n []);\n // The logic for updating refs.\n useIsomorphicLayoutEffect(()=>{\n fetcherRef.current = fetcher;\n configRef.current = config;\n // Handle laggy data updates. If there's cached data of the current key,\n // it'll be the correct reference.\n if (!isUndefined(cachedData)) {\n laggyDataRef.current = cachedData;\n }\n });\n // After mounted or key changed.\n useIsomorphicLayoutEffect(()=>{\n if (!key) return;\n const softRevalidate = revalidate.bind(UNDEFINED, WITH_DEDUPE);\n // Expose revalidators to global event listeners. So we can trigger\n // revalidation from the outside.\n let nextFocusRevalidatedAt = 0;\n const onRevalidate = (type, opts = {})=>{\n if (type == revalidateEvents.FOCUS_EVENT) {\n const now = Date.now();\n if (getConfig().revalidateOnFocus && now > nextFocusRevalidatedAt && isActive()) {\n nextFocusRevalidatedAt = now + getConfig().focusThrottleInterval;\n softRevalidate();\n }\n } else if (type == revalidateEvents.RECONNECT_EVENT) {\n if (getConfig().revalidateOnReconnect && isActive()) {\n softRevalidate();\n }\n } else if (type == revalidateEvents.MUTATE_EVENT) {\n return revalidate();\n } else if (type == revalidateEvents.ERROR_REVALIDATE_EVENT) {\n return revalidate(opts);\n }\n return;\n };\n const unsubEvents = subscribeCallback(key, EVENT_REVALIDATORS, onRevalidate);\n // Mark the component as mounted and update corresponding refs.\n unmountedRef.current = false;\n keyRef.current = key;\n initialMountedRef.current = true;\n // Keep the original key in the cache.\n setCache({\n _k: fnArg\n });\n // Trigger a revalidation\n if (shouldDoInitialRevalidation) {\n if (isUndefined(data) || IS_SERVER) {\n // Revalidate immediately.\n softRevalidate();\n } else {\n // Delay the revalidate if we have data to return so we won't block\n // rendering.\n rAF(softRevalidate);\n }\n }\n return ()=>{\n // Mark it as unmounted.\n unmountedRef.current = true;\n unsubEvents();\n };\n }, [\n key\n ]);\n // Polling\n useIsomorphicLayoutEffect(()=>{\n let timer;\n function next() {\n // Use the passed interval\n // ...or invoke the function with the updated data to get the interval\n const interval = isFunction(refreshInterval) ? refreshInterval(getCache().data) : refreshInterval;\n // We only start the next interval if `refreshInterval` is not 0, and:\n // - `force` is true, which is the start of polling\n // - or `timer` is not 0, which means the effect wasn't canceled\n if (interval && timer !== -1) {\n timer = setTimeout(execute, interval);\n }\n }\n function execute() {\n // Check if it's OK to execute:\n // Only revalidate when the page is visible, online, and not errored.\n if (!getCache().error && (refreshWhenHidden || getConfig().isVisible()) && (refreshWhenOffline || getConfig().isOnline())) {\n revalidate(WITH_DEDUPE).then(next);\n } else {\n // Schedule the next interval to check again.\n next();\n }\n }\n next();\n return ()=>{\n if (timer) {\n clearTimeout(timer);\n timer = -1;\n }\n };\n }, [\n refreshInterval,\n refreshWhenHidden,\n refreshWhenOffline,\n key\n ]);\n // Display debug info in React DevTools.\n useDebugValue(returnedData);\n // In Suspense mode, we can't return the empty `data` state.\n // If there is an `error`, the `error` needs to be thrown to the error boundary.\n // If there is no `error`, the `revalidation` promise needs to be thrown to\n // the suspense boundary.\n if (suspense && isUndefined(data) && key) {\n // SWR should throw when trying to use Suspense on the server with React 18,\n // without providing any initial data. See:\n // https://github.com/vercel/swr/issues/1832\n if (!IS_REACT_LEGACY && IS_SERVER) {\n throw new Error('Fallback data is required when using suspense in SSR.');\n }\n // Always update fetcher and config refs even with the Suspense mode.\n fetcherRef.current = fetcher;\n configRef.current = config;\n unmountedRef.current = false;\n const req = PRELOAD[key];\n if (!isUndefined(req)) {\n const promise = boundMutate(req);\n use(promise);\n }\n if (isUndefined(error)) {\n const promise = revalidate(WITH_DEDUPE);\n if (!isUndefined(returnedData)) {\n promise.status = 'fulfilled';\n promise.value = true;\n }\n use(promise);\n } else {\n throw error;\n }\n }\n return {\n mutate: boundMutate,\n get data () {\n stateDependencies.data = true;\n return returnedData;\n },\n get error () {\n stateDependencies.error = true;\n return error;\n },\n get isValidating () {\n stateDependencies.isValidating = true;\n return isValidating;\n },\n get isLoading () {\n stateDependencies.isLoading = true;\n return isLoading;\n }\n };\n};\nconst SWRConfig = OBJECT.defineProperty(SWRConfig$1, 'defaultValue', {\n value: defaultConfig\n});\n/**\n * A hook to fetch data.\n *\n * @link https://swr.vercel.app\n * @example\n * ```jsx\n * import useSWR from 'swr'\n * function Profile() {\n * const { data, error, isLoading } = useSWR('/api/user', fetcher)\n * if (error) return <div>failed to load</div>\n * if (isLoading) return <div>loading...</div>\n * return <div>hello {data.name}!</div>\n * }\n * ```\n */ const useSWR = withArgs(useSWRHandler);\n\nexport { SWRConfig, useSWR as default, unstable_serialize };\n","import { ClientError } from \"graphql-request\";\nimport type { Fetcher, Key, SWRConfiguration, SWRResponse } from \"swr\";\nimport __useSWR from \"swr\";\n\nexport interface SWRResponsePro<Data = any, Error = any>\n extends SWRResponse<Data, Error> {\n loading: boolean;\n}\n\nconst SWR_ONFOCUS = \"swr_revalidateOnFocus\"; // 聚焦时重新请求\nconst SWR_IFSTALE = \"swr_revalidateIfStale\"; // 控制SWR在挂载并且存在陈旧数据时重新请求\nconst SWR_ONRECONNECT = \"swr_revalidateOnReconnect\"; // 重新连接时重新请求\nconst defaultConfig = {\n revalidateOnFocus: window.localStorage.getItem(SWR_ONFOCUS) !== \"false\",\n revalidateIfStale: window.localStorage.getItem(SWR_IFSTALE) !== \"false\",\n revalidateOnReconnect:\n window.localStorage.getItem(SWR_ONRECONNECT) !== \"false\",\n};\n\nexport const useSWR = <\n Data = any,\n Error = ClientError,\n SWRKey extends Key = null,\n>(\n key: SWRKey,\n fetcher: Fetcher<Data, SWRKey> | null,\n config: SWRConfiguration<Data, Error, Fetcher<Data, SWRKey>> | undefined,\n): SWRResponsePro<Data, Error> => {\n const res = __useSWR<Data, Error, SWRKey>(key, fetcher, {\n ...defaultConfig,\n ...(config || {}),\n });\n const { error, data } = res;\n\n const hasObjectData =\n data &&\n Object.prototype.toString.call(data) === \"[object Object]\" &&\n Object.keys(data || {}).length > 0;\n return {\n ...res,\n data: hasObjectData ? data : error?.response?.data || data,\n loading: !data && !error,\n };\n};\n\nexport const genKey = <\n V extends Record<string, unknown> = Record<string, unknown>,\n>(\n name: string,\n object: V = {} as V,\n): Key => [\n name,\n ...Object.keys(object)\n .sort()\n .map((key) => object[key]),\n];\n\nexport default useSWR;\n","import { GraphQLClient } from 'graphql-request';\nimport { GraphQLClientRequestHeaders } from 'graphql-request/build/cjs/types';\nimport gql from 'graphql-tag';\nimport { ClientError } from 'graphql-request/src/types';\nimport useSWR from './useSWR';\nimport { SWRConfiguration as SWRConfigInterface, Key as SWRKeyInterface } from 'swr';\nexport type Maybe<T> = T | null;\nexport type InputMaybe<T> = Maybe<T>;\nexport type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };\nexport type MakeOptional<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]?: Maybe<T[SubKey]> };\nexport type MakeMaybe<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]: Maybe<T[SubKey]> };\nexport type MakeEmpty<T extends { [key: string]: unknown }, K extends keyof T> = { [_ in K]?: never };\nexport type Incremental<T> = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never };\n/** All built-in and custom scalars, mapped to their actual values */\nexport type Scalars = {\n ID: { input: string; output: string; }\n String: { input: string; output: string; }\n Boolean: { input: boolean; output: boolean; }\n Int: { input: number; output: number; }\n Float: { input: number; output: number; }\n Int64: { input: any; output: any; }\n Map: { input: any; output: any; }\n Time: { input: any; output: any; }\n Void: { input: any; output: any; }\n};\n\nexport type AddDataProcessInput = {\n creator: Scalars['String']['input'];\n data_process_config_info?: InputMaybe<Array<DataProcessConfigItem>>;\n file_names?: InputMaybe<Array<FileItem>>;\n file_type: Scalars['String']['input'];\n name: Scalars['String']['input'];\n namespace: Scalars['String']['input'];\n post_data_set_name: Scalars['String']['input'];\n post_data_set_version: Scalars['String']['input'];\n pre_data_set_name: Scalars['String']['input'];\n pre_data_set_version: Scalars['String']['input'];\n version_data_set_name: Scalars['String']['input'];\n};\n\nexport type AllDataProcessListByCountInput = {\n keyword: Scalars['String']['input'];\n namespace: Scalars['String']['input'];\n};\n\nexport type AllDataProcessListByPageInput = {\n keyword: Scalars['String']['input'];\n namespace: Scalars['String']['input'];\n pageIndex: Scalars['Int']['input'];\n pageSize: Scalars['Int']['input'];\n};\n\n/**\n * Application\n * 应用完整信息\n */\nexport type Application = {\n __typename?: 'Application';\n /** conversionWindowSize 对话轮次 */\n conversionWindowSize?: Maybe<Scalars['Int']['output']>;\n /** docNullReturn 空搜索回复 */\n docNullReturn?: Maybe<Scalars['String']['output']>;\n /** knowledgebase 指当前知识库应用使用的知识库,即 Kind 为 KnowledgeBase 的 CR 的名称,目前一个应用只支持0或1个知识库 */\n knowledgebase?: Maybe<Scalars['String']['output']>;\n /** llm 指当前知识库应用使用的模型服务,即 Kind 为 LLM 的 CR 的名称 */\n llm: Scalars['String']['output'];\n /** maxLength 最大响应长度 */\n maxLength?: Maybe<Scalars['Int']['output']>;\n metadata?: Maybe<ApplicationMetadata>;\n /** model 指具体使用的模型名称,比如 gpt-3.5-turbo 或者 chatglm_turbo */\n model?: Maybe<Scalars['String']['output']>;\n /** numDocuments 引用上限 */\n numDocuments?: Maybe<Scalars['Int']['output']>;\n /** 对话开场白 */\n prologue?: Maybe<Scalars['String']['output']>;\n /** scoreThreshold 最低相似度 */\n scoreThreshold?: Maybe<Scalars['Float']['output']>;\n /** showNextGuide 下一步引导,是否显示下一步引导 */\n showNextGuid?: Maybe<Scalars['Boolean']['output']>;\n /** temperature 温度 */\n temperature?: Maybe<Scalars['Float']['output']>;\n /** userPrompt 用户级别的 Prompt */\n userPrompt?: Maybe<Scalars['String']['output']>;\n};\n\n/**\n * Application\n * 应用 Metadata\n */\nexport type ApplicationMetadata = {\n __typename?: 'ApplicationMetadata';\n /** 添加一些辅助性记录信息 */\n annotations?: Maybe<Scalars['Map']['output']>;\n /** 创建时间 */\n creationTimestamp?: Maybe<Scalars['Time']['output']>;\n /**\n * 创建者,为当前用户的用户名\n * 规则: webhook启用后自动添加,默认为空\n */\n creator?: Maybe<Scalars['String']['output']>;\n /** 描述信息 */\n description?: Maybe<Scalars['String']['output']>;\n /** 展示名,别名 */\n displayName?: Maybe<Scalars['String']['output']>;\n /** Icon,应用头像, base64格式的图片 */\n icon?: Maybe<Scalars['String']['output']>;\n /** 应用id,为CR资源中的metadata.uid */\n id?: Maybe<Scalars['String']['output']>;\n /** IsPublic, 是否发布,即是否公开提供服务 */\n isPublic?: Maybe<Scalars['Boolean']['output']>;\n /** 一些用于标记,选择的的标签 */\n labels?: Maybe<Scalars['Map']['output']>;\n /**\n * 应用名称\n * 规则: 遵循 k8s 命名\n */\n name: Scalars['String']['output'];\n /**\n * 应用所在的 namespace\n * 规则: 非空\n */\n namespace: Scalars['String']['output'];\n /** 应用状态 */\n status?: Maybe<Scalars['String']['output']>;\n /** 更新时间 */\n updateTimestamp?: Maybe<Scalars['Time']['output']>;\n};\n\nexport type ApplicationMutation = {\n __typename?: 'ApplicationMutation';\n createApplication: ApplicationMetadata;\n deleteApplication?: Maybe<Scalars['Void']['output']>;\n updateApplication: ApplicationMetadata;\n updateApplicationConfig: Application;\n};\n\n\nexport type ApplicationMutationCreateApplicationArgs = {\n input: CreateApplicationMetadataInput;\n};\n\n\nexport type ApplicationMutationDeleteApplicationArgs = {\n input: DeleteCommonInput;\n};\n\n\nexport type ApplicationMutationUpdateApplicationArgs = {\n input: UpdateApplicationMetadataInput;\n};\n\n\nexport type ApplicationMutationUpdateApplicationConfigArgs = {\n input: UpdateApplicationConfigInput;\n};\n\nexport type ApplicationQuery = {\n __typename?: 'ApplicationQuery';\n getApplication: Application;\n listApplicationMetadata: PaginatedResult;\n};\n\n\nexport type ApplicationQueryGetApplicationArgs = {\n name: Scalars['String']['input'];\n namespace: Scalars['String']['input'];\n};\n\n\nexport type ApplicationQueryListApplicationMetadataArgs = {\n input: ListCommonInput;\n};\n\nexport type CheckDataProcessTaskNameInput = {\n name: Scalars['String']['input'];\n namespace: Scalars['String']['input'];\n};\n\nexport type CountDataProcessItem = {\n __typename?: 'CountDataProcessItem';\n data: Scalars['Int']['output'];\n message: Scalars['String']['output'];\n status: Scalars['Int']['output'];\n};\n\nexport type CreateApplicationMetadataInput = {\n /** 添加一些辅助性记录信息 */\n annotations?: InputMaybe<Scalars['Map']['input']>;\n /** 描述信息 */\n description?: InputMaybe<Scalars['String']['input']>;\n /** 展示名,别名 */\n displayName: Scalars['String']['input'];\n /** Icon,应用头像, base64格式的图片 */\n icon: Scalars['String']['input'];\n /** IsPublic, 是否发布,即是否公开提供服务 */\n isPublic?: InputMaybe<Scalars['Boolean']['input']>;\n /** 一些用于标记,选择的的标签 */\n labels?: InputMaybe<Scalars['Map']['input']>;\n /**\n * 应用名称\n * 规则: 遵循 k8s 命名\n */\n name: Scalars['String']['input'];\n /**\n * 应用所在的namespace\n * 规则: 非空\n */\n namespace: Scalars['String']['input'];\n};\n\n/** 数据集创建的输入 */\nexport type CreateDatasetInput = {\n /** 一些备注用的注视信息,或者记录一个简单的配置 */\n annotations?: InputMaybe<Scalars['Map']['input']>;\n /** 数据集里面的数据的类型,文本,视频,图片 */\n contentType: Scalars['String']['input'];\n /** 描述信息,可以不写 */\n description?: InputMaybe<Scalars['String']['input']>;\n /** 展示名称 */\n displayName?: InputMaybe<Scalars['String']['input']>;\n /**\n * 应用场景,可以为空\n * 规则: enum{ xx xx } (非固定字段,以产品为准)\n */\n filed?: InputMaybe<Scalars['String']['input']>;\n /** 一些标签选择信息,可以不添加 */\n labels?: InputMaybe<Scalars['Map']['input']>;\n /**\n * 数据集的名字\n * 规则: k8s的名称规则\n * 规则: 非空\n */\n name: Scalars['String']['input'];\n /**\n * 数据集的命名空间\n * 规则: 非空\n */\n namespace: Scalars['String']['input'];\n};\n\n/** 新增数据源时输入条件 */\nexport type CreateDatasourceInput = {\n /** 数据源资源注释 */\n annotations?: InputMaybe<Scalars['Map']['input']>;\n /** 数据源资源描述 */\n description?: InputMaybe<Scalars['String']['input']>;\n /** 数据源资源展示名称作为显示,并提供编辑 */\n displayName?: InputMaybe<Scalars['String']['input']>;\n /** 数据源的访问信息输入 */\n endpointinput: EndpointInput;\n /** 数据源资源标签 */\n labels?: InputMaybe<Scalars['Map']['input']>;\n /**\n * 名字\n * 规则: k8s的名称规则\n * 规则: 非空\n */\n name: Scalars['String']['input'];\n /**\n * 数据源的命名空间\n * 规则: 非空\n */\n namespace: Scalars['String']['input'];\n /** 数据源为对象存储类型时的输入 */\n ossinput?: InputMaybe<OssInput>;\n};\n\nexport type CreateEmbedderInput = {\n /** 模型服务资源注释 */\n annotations?: InputMaybe<Scalars['Map']['input']>;\n /** 模型服务资源描述 */\n description?: InputMaybe<Scalars['String']['input']>;\n /** 模型服务资源展示名称作为显示,并提供编辑 */\n displayName?: InputMaybe<Scalars['String']['input']>;\n /** 模型服务访问信息(必填) */\n endpointinput: EndpointInput;\n /** 模型服务资源标签 */\n labels?: InputMaybe<Scalars['Map']['input']>;\n /** 模型服务资源名称(不可同名) */\n name: Scalars['String']['input'];\n /** 模型服务创建命名空间 */\n namespace: Scalars['String']['input'];\n /**\n * 向量化模型服务接口类型\n * 规则: 目前支持 zhipuai,openai两种接口类型\n */\n type?: InputMaybe<Scalars['String']['input']>;\n};\n\n/** 创建知识库的输入 */\nexport type CreateKnowledgeBaseInput = {\n /** 知识库资源注释 */\n annotations?: InputMaybe<Scalars['Map']['input']>;\n /** 知识库资源描述 */\n description?: InputMaybe<Scalars['String']['input']>;\n /** 知识库资源展示名称作为显示,并提供编辑 */\n displayName?: InputMaybe<Scalars['String']['input']>;\n /** embedder指当前知识库使用的embedding向量化模型 */\n embedder: Scalars['String']['input'];\n /** 知识库文件 */\n fileGroups?: InputMaybe<Array<Filegroupinput>>;\n /** 知识库资源标签 */\n labels?: InputMaybe<Scalars['Map']['input']>;\n /** 知识库资源名称(不可同名) */\n name: Scalars['String']['input'];\n /** 知识库创建命名空间 */\n namespace: Scalars['String']['input'];\n /** \"向量数据库(目前不需要填写,直接使用系统默认的向量数据库) */\n vectorStore?: InputMaybe<TypedObjectReferenceInput>;\n};\n\nexport type CreateLlmInput = {\n /** 模型服务资源注释 */\n annotations?: InputMaybe<Scalars['Map']['input']>;\n /** 模型服务资源描述 */\n description?: InputMaybe<Scalars['String']['input']>;\n /** 模型服务资源展示名称作为显示,并提供编辑 */\n displayName?: InputMaybe<Scalars['String']['input']>;\n /** 模型服务访问信息(必填) */\n endpointinput: EndpointInput;\n /** 模型服务资源标签 */\n labels?: InputMaybe<Scalars['Map']['input']>;\n /** 模型服务资源名称(不可同名) */\n name: Scalars['String']['input'];\n /** 模型服务创建命名空间 */\n namespace: Scalars['String']['input'];\n /**\n * 模型服务接口类型\n * 规则: 目前支持 zhipuai,openai两种接口类型\n */\n type?: InputMaybe<Scalars['String']['input']>;\n};\n\n/** 创建模型的输入 */\nexport type CreateModelInput = {\n /** 模型资源描述 */\n description?: InputMaybe<Scalars['String']['input']>;\n /** 模型资源展示名称作为显示,并提供编辑 */\n displayName?: InputMaybe<Scalars['String']['input']>;\n /** 模型资源名称(不可同名) */\n name: Scalars['String']['input'];\n /** 模型创建命名空间 */\n namespace: Scalars['String']['input'];\n /**\n * 模型类型\n * 规则: 目前支持 llm和embedding两种模型类型\n * 规则: 如果该模型支持多种模型类型,则可多选。多选后组成的字段通过逗号隔开。如 \"llm,embedding\"\n */\n types: Scalars['String']['input'];\n};\n\nexport type CreateModelServiceInput = {\n /** 模型资源注释 */\n annotations?: InputMaybe<Scalars['Map']['input']>;\n /**\n * 模型服务 API 类型\n * 规则:支持 openai, zhipuai 两种类型\n */\n apiType?: InputMaybe<Scalars['String']['input']>;\n /** 模型资源描述 */\n description?: InputMaybe<Scalars['String']['input']>;\n /** 模型资源展示名称作为显示,并提供编辑 */\n displayName?: InputMaybe<Scalars['String']['input']>;\n /**\n * 模型服务的Embedding模型列表\n * 规则;如果不填或者为空,则按照模型的API类型获取默认的模型列表\n */\n embeddingModels?: InputMaybe<Array<Scalars['String']['input']>>;\n /** 模型服务终端输入 */\n endpoint: EndpointInput;\n /** 模型资源标签 */\n labels?: InputMaybe<Scalars['Map']['input']>;\n /**\n * 模型服务的大语言模型列表\n * 规则;如果不填或者为空,则按照模型的API类型获取默认的模型列表\n */\n llmModels?: InputMaybe<Array<Scalars['String']['input']>>;\n /** 模型服务资源名称(不可同名) */\n name: Scalars['String']['input'];\n /** 模型服务创建命名空间 */\n namespace: Scalars['String']['input'];\n /**\n * 模型服务能力类型,支持 llm 和 embedding 两种模型类型\n * 规则: 如果该模型支持多种模型类型,则可多选。多选后组成的字段通过逗号隔开。如 \"llm,embedding\"\n */\n types?: InputMaybe<Scalars['String']['input']>;\n};\n\nexport type CreateVersionedDatasetInput = {\n /** 一些备注用的注视信息,或者记录一个简单的配置 */\n annotations?: InputMaybe<Scalars['Map']['input']>;\n /**\n * dataset的名字,需要根据这个名字,\n * 判断是否最新版本不包含任何文件(产品要求,有一个不包含任何文件的版本,不允许创建新的版本)\n */\n datasetName: Scalars['String']['input'];\n /** 描述信息,可以不写 */\n description?: InputMaybe<Scalars['String']['input']>;\n /** 展示名称,用于展示在界面上的,必须填写 */\n displayName?: InputMaybe<Scalars['String']['input']>;\n /** 从数据源要上传的文件,目前以及不用了 */\n fileGrups?: InputMaybe<Array<InputMaybe<FileGroup>>>;\n /** 界面上创建新版本选择从某个版本集成的时候,填写version字段 */\n inheritedFrom?: InputMaybe<Scalars['String']['input']>;\n /** 一些标签选择信息,可以不添加 */\n labels?: InputMaybe<Scalars['Map']['input']>;\n /** 数据集的CR名字,要满足k8s的名称规则 */\n name: Scalars['String']['input'];\n namespace: Scalars['String']['input'];\n /** 是否发布,0是未发布,1是已经发布,创建一个版本的时候默认传递0就可以 */\n released: Scalars['Int']['input'];\n /** 数据集里面的数据的类型,文本,视频,图片 */\n version: Scalars['String']['input'];\n};\n\n/** 创建模型服务worker的输入 */\nexport type CreateWorkerInput = {\n /** worker运行配置的环境变量 */\n additionalEnvs?: InputMaybe<Scalars['Map']['input']>;\n /** 模型资源描述 */\n description?: InputMaybe<Scalars['String']['input']>;\n /** 模型资源展示名称作为显示,并提供编辑 */\n displayName?: InputMaybe<Scalars['String']['input']>;\n /** 模型服务的节点亲合度配置 */\n matchExpressions?: InputMaybe<Array<InputMaybe<NodeSelectorRequirementInput>>>;\n /**\n * worker对应的模型\n * 规则: 必须指定模型准确的namespace\n * 规则: 必填\n */\n model: TypedObjectReferenceInput;\n /** 模型资源名称(不可同名) */\n name: Scalars['String']['input'];\n /** 模型创建命名空间 */\n namespace: Scalars['String']['input'];\n /**\n * worker运行所需的资源\n * 规则: 必填\n */\n resources: ResourcesInput;\n /**\n * Worker类型\n * 支持两种类型:\n * - \"fastchat\" : fastchat提供的通用的推理服务模式\n * - \"fastchat-vllm\" : fastchat提供的采用VLLM推理加速的推理服务模式\n * 规则: 如果为空,则默认为 \"fastchat\"\n */\n type?: InputMaybe<Scalars['String']['input']>;\n};\n\nexport type DataProcessConfig = {\n __typename?: 'DataProcessConfig';\n children?: Maybe<Array<Maybe<DataProcessConfigChildren>>>;\n description: Scalars['String']['output'];\n file_num: Scalars['Int']['output'];\n name: Scalars['String']['output'];\n status: Scalars['String']['output'];\n};\n\nexport type DataProcessConfigChildren = {\n __typename?: 'DataProcessConfigChildren';\n description?: Maybe<Scalars['String']['output']>;\n enable?: Maybe<Scalars['String']['output']>;\n file_progress?: Maybe<Array<Maybe<DataProcessConfigpreFileProgress>>>;\n llm_config?: Maybe<LlmConfig>;\n name?: Maybe<Scalars['String']['output']>;\n preview?: Maybe<Array<Maybe<DataProcessConfigpreView>>>;\n zh_name?: Maybe<Scalars['String']['output']>;\n};\n\nexport type DataProcessConfigItem = {\n llm_config?: InputMaybe<LlmConfigItem>;\n type: Scalars['String']['input'];\n};\n\nexport type DataProcessConfigpreFileProgress = {\n __typename?: 'DataProcessConfigpreFileProgress';\n end_time?: Maybe<Scalars['String']['output']>;\n file_name?: Maybe<Scalars['String']['output']>;\n id?: Maybe<Scalars['String']['output']>;\n progress?: Maybe<Scalars['String']['output']>;\n start_time?: Maybe<Scalars['String']['output']>;\n status?: Maybe<Scalars['String']['output']>;\n};\n\nexport type DataProcessConfigpreView = {\n __typename?: 'DataProcessConfigpreView';\n content?: Maybe<Array<Maybe<DataProcessConfigpreViewContent>>>;\n file_name?: Maybe<Scalars['String']['output']>;\n};\n\nexport type DataProcessConfigpreViewContent = {\n __typename?: 'DataProcessConfigpreViewContent';\n post?: Maybe<Scalars['String']['output']>;\n pre?: Maybe<Scalars['String']['output']>;\n};\n\nexport type DataProcessDetails = {\n __typename?: 'DataProcessDetails';\n data: DataProcessDetailsItem;\n message: Scalars['String']['output'];\n status: Scalars['Int']['output'];\n};\n\nexport type DataProcessDetailsInput = {\n id: Scalars['String']['input'];\n};\n\nexport type DataProcessDetailsItem = {\n __typename?: 'DataProcessDetailsItem';\n config?: Maybe<Array<DataProcessConfig>>;\n creator: Scalars['String']['output'];\n end_time: Scalars['String']['output'];\n error_msg?: Maybe<Scalars['String']['output']>;\n file_num: Scalars['Int']['output'];\n file_type: Scalars['String']['output'];\n id: Scalars['String']['output'];\n name: Scalars['String']['output'];\n post_dataset_name: Scalars['String']['output'];\n post_dataset_version: Scalars['String']['output'];\n pre_dataset_name: Scalars['String']['output'];\n pre_dataset_version: Scalars['String']['output'];\n start_time: Scalars['String']['output'];\n status: Scalars['String']['output'];\n};\n\nexport type DataProcessFileLogInput = {\n file_name: Scalars['String']['input'];\n id: Scalars['String']['input'];\n type: Scalars['String']['input'];\n};\n\nexport type DataProcessItem = {\n __typename?: 'DataProcessItem';\n error_msg?: Maybe<Scalars['String']['output']>;\n id: Scalars['String']['output'];\n name: Scalars['String']['output'];\n post_data_set_name: Scalars['String']['output'];\n post_data_set_version?: Maybe<Scalars['String']['output']>;\n pre_data_set_name: Scalars['String']['output'];\n pre_data_set_version: Scalars['String']['output'];\n start_datetime: Scalars['String']['output'];\n status: Scalars['String']['output'];\n};\n\nexport type DataProcessMutation = {\n __typename?: 'DataProcessMutation';\n createDataProcessTask?: Maybe<DataProcessResponse>;\n deleteDataProcessTask?: Maybe<DataProcessResponse>;\n};\n\n\nexport type DataProcessMutationCreateDataProcessTaskArgs = {\n input?: InputMaybe<AddDataProcessInput>;\n};\n\n\nexport type DataProcessMutationDeleteDataProcessTaskArgs = {\n input?: InputMaybe<DeleteDataProcessInput>;\n};\n\nexport type DataProcessQuery = {\n __typename?: 'DataProcessQuery';\n allDataProcessListByCount?: Maybe<CountDataProcessItem>;\n allDataProcessListByPage?: Maybe<PaginatedDataProcessItem>;\n checkDataProcessTaskName?: Maybe<DataProcessResponse>;\n dataProcessDetails?: Maybe<DataProcessDetails>;\n dataProcessLogInfoByFileName?: Maybe<DataProcessResponse>;\n dataProcessRetry?: Maybe<DataProcessResponse>;\n dataProcessSupportType?: Maybe<DataProcessSupportType>;\n getLogInfo?: Maybe<DataProcessResponse>;\n};\n\n\nexport type DataProcessQueryAllDataProcessListByCountArgs = {\n input?: InputMaybe<AllDataProcessListByCountInput>;\n};\n\n\nexport type DataProcessQueryAllDataProcessListByPageArgs = {\n input?: InputMaybe<AllDataProcessListByPageInput>;\n};\n\n\nexport type DataProcessQueryCheckDataProcessTaskNameArgs = {\n input?: InputMaybe<CheckDataProcessTaskNameInput>;\n};\n\n\nexport type DataProcessQueryDataProcessDetailsArgs = {\n input?: InputMaybe<DataProcessDetailsInput>;\n};\n\n\nexport type DataProcessQueryDataProcessLogInfoByFileNameArgs = {\n input?: InputMaybe<DataProcessFileLogInput>;\n};\n\n\nexport type DataProcessQueryDataProcessRetryArgs = {\n input?: InputMaybe<DataProcessRetryInput>;\n};\n\n\nexport type DataProcessQueryGetLogInfoArgs = {\n input?: InputMaybe<DataProcessDetailsInput>;\n};\n\nexport type DataProcessResponse = {\n __typename?: 'DataProcessResponse';\n data: Scalars['String']['output'];\n message: Scalars['String']['output'];\n status: Scalars['Int']['output'];\n};\n\nexport type DataProcessRetryInput = {\n creator: Scalars['String']['input'];\n id: Scalars['String']['input'];\n};\n\nexport type DataProcessSupportType = {\n __typename?: 'DataProcessSupportType';\n data?: Maybe<Array<DataProcessSupportTypeItem>>;\n message: Scalars['String']['output'];\n status: Scalars['Int']['output'];\n};\n\nexport type DataProcessSupportTypeChildren = {\n __typename?: 'DataProcessSupportTypeChildren';\n description: Scalars['String']['output'];\n enable: Scalars['String']['output'];\n name: Scalars['String']['output'];\n zh_name: Scalars['String']['output'];\n};\n\nexport type DataProcessSupportTypeItem = {\n __typename?: 'DataProcessSupportTypeItem';\n children?: Maybe<Array<DataProcessSupportTypeChildren>>;\n description: Scalars['String']['output'];\n name: Scalars['String']['output'];\n};\n\n/**\n * Dataset\n * 数据集代表用户纳管的一组相似属性的文件,采用相同的方式进行数据处理并用于后续的\n * 1. 模型训练\n * 2. 知识库\n *\n * 支持多种类型数据:\n * - 文本\n * - 图片\n * - 视频\n *\n * 单个数据集仅允许包含同一类型文件,不同类型文件将被忽略\n * 数据集允许有多个版本,数据处理针对单个版本进行\n * 数据集某个版本完成数据处理后,数据处理服务需要将处理后的存储回 版本数据集\n */\nexport type Dataset = {\n __typename?: 'Dataset';\n /** 添加一些辅助性记录信息 */\n annotations?: Maybe<Scalars['Map']['output']>;\n /**\n * 数据集类型,文本,图片,视频\n * 规则: enum{ text image video}\n * 规则: 非空\n */\n contentType: Scalars['String']['output'];\n /** 创建时间 */\n creationTimestamp?: Maybe<Scalars['Time']['output']>;\n /**\n * 创建者,为当前用户的用户名\n * 规则: webhook启用后自动添加,默认为空\n */\n creator?: Maybe<Scalars['String']['output']>;\n /** 描述信息 */\n description?: Maybe<Scalars['String']['output']>;\n /** 展示名 */\n displayName?: Maybe<Scalars['String']['output']>;\n /**\n * 应用场景\n * 规则: enum{ xx xx } (非固定字段,以产品为准)\n */\n field?: Maybe<Scalars['String']['output']>;\n /** 一些用于标记,选择的的标签 */\n labels?: Maybe<Scalars['Map']['output']>;\n /**\n * 名称\n * 规则: 遵循k8s命名\n */\n name: Scalars['String']['output'];\n /**\n * 所在的namespace(文件上传时作为bucket)\n * 规则: 获取当前项目对应的命名空间\n * 规则: 非空\n */\n namespace: Scalars['String']['output'];\n /** 更新时间, 这里更新指文件同步,或者数据处理完成后,做的更新操作的时间 */\n updateTimestamp?: Maybe<Scalars['Time']['output']>;\n /**\n * 数据集下面的版本列表。\n * 规则: 支持对名字,类型的完全匹配过滤。\n * 规则: 支持通过标签(somelabel=abc),字段(metadata.name=abc)进行过滤\n */\n versions: PaginatedResult;\n};\n\n\n/**\n * Dataset\n * 数据集代表用户纳管的一组相似属性的文件,采用相同的方式进行数据处理并用于后续的\n * 1. 模型训练\n * 2. 知识库\n *\n * 支持多种类型数据:\n * - 文本\n * - 图片\n * - 视频\n *\n * 单个数据集仅允许包含同一类型文件,不同类型文件将被忽略\n * 数据集允许有多个版本,数据处理针对单个版本进行\n * 数据集某个版本完成数据处理后,数据处理服务需要将处理后的存储回 版本数据集\n */\nexport type DatasetVersionsArgs = {\n input: ListVersionedDatasetInput;\n};\n\n/** 数据集更新 */\nexport type DatasetMutation = {\n __typename?: 'DatasetMutation';\n /** 创建数据集 */\n createDataset: Dataset;\n /**\n * 删除数据集\n * 规则: 支持删除一个名称列表中包含的所有数据集\n * 规则: 支持通过标签选择器,将满足标签的dataset全部删除\n * 规则: 如果提供了这两个参数,以名字列表为主。\n */\n deleteDatasets?: Maybe<Scalars['Void']['output']>;\n /** 更新数据集 */\n updateDataset: Dataset;\n};\n\n\n/** 数据集更新 */\nexport type DatasetMutationCreateDatasetArgs = {\n input?: InputMaybe<CreateDatasetInput>;\n};\n\n\n/** 数据集更新 */\nexport type DatasetMutationDeleteDatasetsArgs = {\n input?: InputMaybe<DeleteCommonInput>;\n};\n\n\n/** 数据集更新 */\nexport type DatasetMutationUpdateDatasetArgs = {\n input?: InputMaybe<UpdateDatasetInput>;\n};\n\n/** 数据集查询 */\nexport type DatasetQuery = {\n __typename?: 'DatasetQuery';\n /** 根据名字获取某个具体的数据集 */\n getDataset: Dataset;\n /**\n * 获取数据集列表\n * 规则: 支持通过标签和字段进行选择。如下:\n * labelSelector: aa=bbb\n * fieldSelector= metadata.name=somename\n */\n listDatasets: PaginatedResult;\n};\n\n\n/** 数据集查询 */\nexport type DatasetQueryGetDatasetArgs = {\n name: Scalars['String']['input'];\n namespace: Scalars['String']['input'];\n};\n\n\n/** 数据集查询 */\nexport type DatasetQueryListDatasetsArgs = {\n input?: InputMaybe<ListDatasetInput>;\n};\n\n/** 数据源: 定义了对某一个具备数据存储能力服务的访问信息,供后续向该数据源获取数据使用 */\nexport type Datasource = {\n __typename?: 'Datasource';\n annotations?: Maybe<Scalars['Map']['output']>;\n /** 创建时间 */\n creationTimestamp?: Maybe<Scalars['Time']['output']>;\n /**\n * 创建者,为当前用户的用户名\n * 规则: webhook启用后自动添加,默认为空\n */\n creator?: Maybe<Scalars['String']['output']>;\n /** 描述信息 */\n description?: Maybe<Scalars['String']['output']>;\n /** 展示名 */\n displayName?: Maybe<Scalars['String']['output']>;\n /** 终端访问信息 */\n endpoint?: Maybe<Endpoint>;\n /** 模型id,为CR资源中的metadata.uid */\n id?: Maybe<Scalars['String']['output']>;\n labels?: Maybe<Scalars['Map']['output']>;\n message?: Maybe<Scalars['String']['output']>;\n /**\n * 名称\n * 规则: 遵循k8s命名\n * 规则: 非空\n */\n name: Scalars['String']['output'];\n /**\n * 命名空间\n * 规则: 非空\n */\n namespace: Scalars['String']['output'];\n /**\n * 对象存储访问信息\n * 规则: 非空代表当前数据源为对象存储数据源\n */\n oss?: Maybe<Oss>;\n /** 数据源连接状态 */\n status?: Maybe<Scalars['String']['output']>;\n /** 更新时间, 这里更新指文件同步,或者数据处理完成后,做的更新操作的时间 */\n updateTimestamp?: Maybe<Scalars['Time']['output']>;\n};\n\nexport type DatasourceMutation = {\n __typename?: 'DatasourceMutation';\n createDatasource: Datasource;\n deleteDatasources?: Maybe<Scalars['Void']['output']>;\n updateDatasource: Datasource;\n};\n\n\nexport type DatasourceMutationCreateDatasourceArgs = {\n input: CreateDatasourceInput;\n};\n\n\nexport type DatasourceMutationDeleteDatasourcesArgs = {\n input?: InputMaybe<DeleteCommonInput>;\n};\n\n\nexport type DatasourceMutationUpdateDatasourceArgs = {\n input?: InputMaybe<UpdateDatasourceInput>;\n};\n\nexport type DatasourceQuery = {\n __typename?: 'DatasourceQuery';\n checkDatasource: Datasource;\n getDatasource: Datasource;\n listDatasources: PaginatedResult;\n};\n\n\nexport type DatasourceQueryCheckDatasourceArgs = {\n input: CreateDatasourceInput;\n};\n\n\nexport type DatasourceQueryGetDatasourceArgs = {\n name: Scalars['String']['input'];\n namespace: Scalars['String']['input'];\n};\n\n\nexport type DatasourceQueryListDatasourcesArgs = {\n input: ListCommonInput;\n};\n\nexport type DeleteCommonInput = {\n /** 字段选择器 */\n fieldSelector?: InputMaybe<Scalars['String']['input']>;\n /** 标签选择器 */\n labelSelector?: InputMaybe<Scalars['String']['input']>;\n name?: InputMaybe<Scalars['String']['input']>;\n namespace: Scalars['String']['input'];\n};\n\nexport type DeleteDataProcessInput = {\n id: Scalars['String']['input'];\n};\n\nexport type DeleteVersionedDatasetInput = {\n fieldSelector?: InputMaybe<Scalars['String']['input']>;\n labelSelector?: InputMaybe<Scalars['String']['input']>;\n name?: InputMaybe<Scalars['String']['input']>;\n namespace: Scalars['String']['input'];\n};\n\nexport type Embedder = {\n __typename?: 'Embedder';\n annotations?: Maybe<Scalars['Map']['output']>;\n /** 服务地址 */\n baseUrl: Scalars['String']['output'];\n creationTimestamp?: Maybe<Scalars['Time']['output']>;\n creator?: Maybe<Scalars['String']['output']>;\n description?: Maybe<Scalars['String']['output']>;\n displayName?: Maybe<Scalars['String']['output']>;\n id?: Maybe<Scalars['String']['output']>;\n labels?: Maybe<Scalars['Map']['output']>;\n message?: Maybe<Scalars['String']['output']>;\n /** 此LLM支持调用的模型列表 */\n models?: Maybe<Array<Scalars['String']['output']>>;\n name: Scalars['String']['output'];\n namespace: Scalars['String']['output'];\n /**\n * Embedder供应商类型:\n * 规则: 分为两类: worker 或者 3rd_party\n */\n provider?: Maybe<Scalars['String']['output']>;\n status?: Maybe<Scalars['String']['output']>;\n type?: Maybe<Scalars['String']['output']>;\n updateTimestamp?: Maybe<Scalars['Time']['output']>;\n};\n\nexport type EmbedderMutation = {\n __typename?: 'EmbedderMutation';\n createEmbedder: Embedder;\n deleteEmbedders?: Maybe<Scalars['Void']['output']>;\n updateEmbedder: Embedder;\n};\n\n\nexport type EmbedderMutationCreateEmbedderArgs = {\n input: CreateEmbedderInput;\n};\n\n\nexport type EmbedderMutationDeleteEmbeddersArgs = {\n input?: InputMaybe<DeleteCommonInput>;\n};\n\n\nexport type EmbedderMutationUpdateEmbedderArgs = {\n input?: InputMaybe<UpdateEmbedderInput>;\n};\n\nexport type EmbedderQuery = {\n __typename?: 'EmbedderQuery';\n getEmbedder: Embedder;\n listEmbedders: PaginatedResult;\n};\n\n\nexport type EmbedderQueryGetEmbedderArgs = {\n name: Scalars['String']['input'];\n namespace: Scalars['String']['input'];\n};\n\n\nexport type EmbedderQueryListEmbeddersArgs = {\n input: ListCommonInput;\n};\n\n/** 终端的访问信息 */\nexport type Endpoint = {\n __typename?: 'Endpoint';\n /** 终端访问的密钥信息,保存在k8s secret中 */\n authSecret?: Maybe<TypedObjectReference>;\n /** 是否通过非安全方式访问,默认为false,即安全模式访问 */\n insecure?: Maybe<Scalars['Boolean']['output']>;\n /** url地址 */\n url?: Maybe<Scalars['String']['output']>;\n};\n\n/** 对象存储终端输入 */\nexport type EndpointInput = {\n /** secret验证密码 */\n auth?: InputMaybe<Scalars['Map']['input']>;\n /** 默认true */\n insecure?: InputMaybe<Scalars['Boolean']['input']>;\n /** 地址(必填) */\n url: Scalars['String']['input'];\n};\n\n/**\n * File\n * 展示某个版本的所有文件。\n */\nexport type F = {\n __typename?: 'F';\n /** 数据量 */\n count?: Maybe<Scalars['String']['output']>;\n /** 文件创建时间 */\n creationTimestamp?: Maybe<Scalars['Time']['output']>;\n /** 文件类型 */\n fileType: Scalars['String']['output'];\n /** 文件在数据源中的路径,a/b/c.txt或者d.txt */\n path: Scalars['String']['output'];\n /** 文件大小 */\n size?: Maybe<Scalars['String']['output']>;\n /** 文件更新时间,如果没有导入成功,这个字段为空 */\n time?: Maybe<Scalars['Time']['output']>;\n};\n\n/** 根据条件顾虑版本内的文件,只支持关键词搜索 */\nexport type FileFilter = {\n /** 根据关键词搜索文件,strings.Container(fileName, keyword) */\n keyword?: InputMaybe<Scalars['String']['input']>;\n /** 页 */\n page?: InputMaybe<Scalars['Int']['input']>;\n /** 页内容数量 */\n pageSize?: InputMaybe<Scalars['Int']['input']>;\n /** 根据文件名字或者更新时间排序, file, time */\n sortBy?: InputMaybe<Scalars['String']['input']>;\n};\n\nexport type FileGroup = {\n /** 用到的文件路径,注意⚠️ 一定不要加bucket的名字 */\n paths?: InputMaybe<Array<Scalars['String']['input']>>;\n /** 数据源的基础信息 */\n source: TypedObjectReferenceInput;\n};\n\nexport type FileItem = {\n name: Scalars['String']['input'];\n};\n\n/** 知识库 */\nexport type KnowledgeBase = {\n __typename?: 'KnowledgeBase';\n /** 添加一些辅助性记录信息 */\n annotations?: Maybe<Scalars['Map']['output']>;\n /** 创建时间 */\n creationTimestamp?: Maybe<Scalars['Time']['output']>;\n /**\n * 创建者,为当前用户的用户名\n * 规则: webhook启用后自动添加,默认为空\n */\n creator?: Maybe<Scalars['String']['output']>;\n /** 描述信息 */\n description?: Maybe<Scalars['String']['output']>;\n /** 展示名 */\n displayName?: Maybe<Scalars['String']['output']>;\n /** embedder指当前知识库使用的embedding向量化模型,即 Kind 为 Embedder */\n embedder?: Maybe<TypedObjectReference>;\n /** fileGroupDetails为知识库中所处理的文件组的详细内容和状态 */\n fileGroupDetails?: Maybe<Array<Maybe<Filegroupdetail>>>;\n /** 知识库id,为CR资源中的metadata.uid */\n id?: Maybe<Scalars['String']['output']>;\n /** 一些用于标记,选择的的标签 */\n labels?: Maybe<Scalars['Map']['output']>;\n /** 知识库状态的原因的详细内容 */\n message?: Maybe<Scalars['String']['output']>;\n /**\n * 名称\n * 规则: 遵循k8s命名\n */\n name: Scalars['String']['output'];\n /**\n * 所在的namespace(文件上传时作为bucket)\n * 规则: 获取当前项目对应的命名空间\n * 规则: 非空\n */\n namespace: Scalars['String']['output'];\n /** 知识库状态的原因 */\n reason?: Maybe<Scalars['String']['output']>;\n /**\n * 知识库整体连接状态\n * 规则: True 代表正常 False代表异常\n * 规则: Deleting 代表删除中\n */\n status?: Maybe<Scalars['String']['output']>;\n /** 更新时间 */\n updateTimestamp?: Maybe<Scalars['Time']['output']>;\n /** vectorStore指当前知识库使用的向量数据库服务,即 Kind 为 VectorStore */\n vectorStore?: Maybe<TypedObjectReference>;\n};\n\nexport type KnowledgeBaseMutation = {\n __typename?: 'KnowledgeBaseMutation';\n createKnowledgeBase: KnowledgeBase;\n deleteKnowledgeBase?: Maybe<Scalars['Void']['output']>;\n updateKnowledgeBase: KnowledgeBase;\n};\n\n\nexport type KnowledgeBaseMutationCreateKnowledgeBaseArgs = {\n input: CreateKnowledgeBaseInput;\n};\n\n\nexport type KnowledgeBaseMutationDeleteKnowledgeBaseArgs = {\n input?: InputMaybe<DeleteCommonInput>;\n};\n\n\nexport type KnowledgeBaseMutationUpdateKnowledgeBaseArgs = {\n input?: InputMaybe<UpdateKnowledgeBaseInput>;\n};\n\nexport type KnowledgeBaseQuery = {\n __typename?: 'KnowledgeBaseQuery';\n getKnowledgeBase: KnowledgeBase;\n listKnowledgeBases: PaginatedResult;\n};\n\n\nexport type KnowledgeBaseQueryGetKnowledgeBaseArgs = {\n name: Scalars['String']['input'];\n namespace: Scalars['String']['input'];\n};\n\n\nexport type KnowledgeBaseQueryListKnowledgeBasesArgs = {\n input: ListKnowledgeBaseInput;\n};\n\nexport type Llm = {\n __typename?: 'LLM';\n annotations?: Maybe<Scalars['Map']['output']>;\n /** 服务地址 */\n baseUrl: Scalars['String']['output'];\n creationTimestamp?: Maybe<Scalars['Time']['output']>;\n creator?: Maybe<Scalars['String']['output']>;\n description?: Maybe<Scalars['String']['output']>;\n displayName?: Maybe<Scalars['String']['output']>;\n id?: Maybe<Scalars['String']['output']>;\n labels?: Maybe<Scalars['Map']['output']>;\n message?: Maybe<Scalars['String']['output']>;\n /** 此LLM支持调用的模型列表 */\n models?: Maybe<Array<Scalars['String']['output']>>;\n name: Scalars['String']['output'];\n namespace: Scalars['String']['output'];\n /**\n * LLM供应商类型:\n * 规则: 分为两类: worker 或者 3rd_party\n */\n provider?: Maybe<Scalars['String']['output']>;\n status?: Maybe<Scalars['String']['output']>;\n type?: Maybe<Scalars['String']['output']>;\n updateTimestamp?: Maybe<Scalars['Time']['output']>;\n};\n\nexport type LlmConfig = {\n __typename?: 'LLMConfig';\n max_tokens?: Maybe<Scalars['String']['output']>;\n model?: Maybe<Scalars['String']['output']>;\n name?: Maybe<Scalars['String']['output']>;\n namespace?: Maybe<Scalars['String']['output']>;\n prompt_template?: Maybe<Scalars['String']['output']>;\n provider?: Maybe<Scalars['String']['output']>;\n temperature?: Maybe<Scalars['String']['output']>;\n top_p?: Maybe<Scalars['String']['output']>;\n};\n\nexport type LlmConfigItem = {\n max_tokens?: InputMaybe<Scalars['String']['input']>;\n model?: InputMaybe<Scalars['String']['input']>;\n name?: InputMaybe<Scalars['String']['input']>;\n namespace?: InputMaybe<Scalars['String']['input']>;\n prompt_template?: InputMaybe<Scalars['String']['input']>;\n provider?: InputMaybe<Scalars['String']['input']>;\n temperature?: InputMaybe<Scalars['String']['input']>;\n top_p?: InputMaybe<Scalars['String']['input']>;\n};\n\nexport type LlmQuery = {\n __typename?: 'LLMQuery';\n getLLM: Llm;\n listLLMs: PaginatedResult;\n};\n\n\nexport type LlmQueryGetLlmArgs = {\n name: Scalars['String']['input'];\n namespace: Scalars['String']['input'];\n};\n\n\nexport type LlmQueryListLlMsArgs = {\n input: ListCommonInput;\n};\n\nexport type ListCommonInput = {\n /** 字段选择器 */\n fieldSelector?: InputMaybe<Scalars['String']['input']>;\n /** 关键词: 模糊匹配 */\n keyword?: InputMaybe<Scalars['String']['input']>;\n /** 标签选择器 */\n labelSelector?: InputMaybe<Scalars['String']['input']>;\n namespace: Scalars['String']['input'];\n /**\n * 分页页码,\n * 规则: 从1开始,默认是1\n */\n page?: InputMaybe<Scalars['Int']['input']>;\n /**\n * 每页数量,\n * 规则: 默认10\n */\n pageSize?: InputMaybe<Scalars['Int']['input']>;\n};\n\n/** 数据集分页列表查询的输入 */\nexport type ListDatasetInput = {\n /** 展示名 */\n displayName?: InputMaybe<Scalars['String']['input']>;\n /** 字段选择器 */\n fieldSelector?: InputMaybe<Scalars['String']['input']>;\n /**\n * 关键词: 模糊匹配\n * 规则: namespace,name,displayName,contentType,annotations中如果包含该字段则返回\n */\n keyword?: InputMaybe<Scalars['String']['input']>;\n /** 标签选择器 */\n labelSelector?: InputMaybe<Scalars['String']['input']>;\n /** name用来唯一确定资源 */\n name?: InputMaybe<Scalars['String']['input']>;\n /**\n * namespace用来确定资源\n * 规则: 必填\n */\n namespace: Scalars['String']['input'];\n /**\n * 分页页码,\n * 规则: 从1开始,默认是1\n */\n page?: InputMaybe<Scalars['Int']['input']>;\n /**\n * 每页数量,\n * 规则: 默认10\n */\n pageSize?: InputMaybe<Scalars['Int']['input']>;\n};\n\n/** 知识库分页列表查询的输入 */\nexport type ListKnowledgeBaseInput = {\n displayName?: InputMaybe<Scalars['String']['input']>;\n /** 字段选择器 */\n fieldSelector?: InputMaybe<Scalars['String']['input']>;\n /**\n * 关键词: 模糊匹配\n * 规则: name,displayName中如果包含该字段则返回\n */\n keyword?: InputMaybe<Scalars['String']['input']>;\n /** 标签选择器 */\n labelSelector?: InputMaybe<Scalars['String']['input']>;\n name?: InputMaybe<Scalars['String']['input']>;\n namespace: Scalars['String']['input'];\n /**\n * 分页页码,\n * 规则: 从1开始,默认是1\n */\n page?: InputMaybe<Scalars['Int']['input']>;\n /**\n * 每页数量,\n * 规则: 默认10\n */\n pageSize?: InputMaybe<Scalars['Int']['input']>;\n};\n\nexport type ListModelInput = {\n /** 字段选择器 */\n fieldSelector?: InputMaybe<Scalars['String']['input']>;\n /** 关键词: 模糊匹配 */\n keyword?: InputMaybe<Scalars['String']['input']>;\n /** 标签选择器 */\n labelSelector?: InputMaybe<Scalars['String']['input']>;\n namespace: Scalars['String']['input'];\n /**\n * 分页页码,\n * 规则: 从1开始,默认是1\n */\n page?: InputMaybe<Scalars['Int']['input']>;\n /**\n * 每页数量,\n * 规则: 默认10\n */\n pageSize?: InputMaybe<Scalars['Int']['input']>;\n /**\n * 是否包含系统提供的模型\n * 规则: 为true时,代表将同时获取系统提供的模型\n * 规则: 默认为false\n */\n systemModel?: InputMaybe<Scalars['Boolean']['input']>;\n};\n\nexport type ListModelServiceInput = {\n /**\n * 模型服务供应商类型\n * 规则:\n * - 为空默认不过滤\n * - openai 则仅返回接口类型类型为openai的模型服务\n * - zhipuai 则仅返回接口类型类型为zhipuai的模型服务\n */\n apiType?: InputMaybe<Scalars['String']['input']>;\n /** 关键词搜索 */\n keyword?: InputMaybe<Scalars['String']['input']>;\n namespace: Scalars['String']['input'];\n page?: InputMaybe<Scalars['Int']['input']>;\n pageSize?: InputMaybe<Scalars['Int']['input']>;\n /**\n * 模型服务供应商类型\n * 规则:\n * - 为空默认不过滤\n * - worker 则仅返回本地模型服务\n * - 3rd_party 则仅返回第三方模型服务\n */\n providerType?: InputMaybe<Scalars['String']['input']>;\n /**\n * 模型服务的类型\n * 规则:\n * - 为空默认不过滤\n * - llm 则仅返回LLM模型服务\n * - embedding 则仅返回Embedding模型服务\n * - llm,embedding 则返回同时提供LLM和Embedding能力的模型服务\n */\n types?: InputMaybe<Scalars['String']['input']>;\n};\n\nexport type ListVersionedDatasetInput = {\n displayName?: InputMaybe<Scalars['String']['input']>;\n fieldSelector?: InputMaybe<Scalars['String']['input']>;\n keyword?: InputMaybe<Scalars['String']['input']>;\n labelSelector?: InputMaybe<Scalars['String']['input']>;\n name?: InputMaybe<Scalars['String']['input']>;\n namespace?: InputMaybe<Scalars['String']['input']>;\n /** 分页页码,从1开始,默认是1 */\n page?: InputMaybe<Scalars['Int']['input']>;\n /** 每页数量,默认10 */\n pageSize?: InputMaybe<Scalars['Int']['input']>;\n};\n\nexport type ListWorkerInput = {\n /** 字段选择器 */\n fieldSelector?: InputMaybe<Scalars['String']['input']>;\n /** 关键词: 模糊匹配 */\n keyword?: InputMaybe<Scalars['String']['input']>;\n /** 标签选择器 */\n labelSelector?: InputMaybe<Scalars['String']['input']>;\n /**\n * worker对应的模型类型\n * 规则: 模型分为embedding和llm两大类。如果两者都有,则通过逗号隔开,如: \"embedding,llm\"\n */\n modelTypes?: InputMaybe<Scalars['String']['input']>;\n namespace: Scalars['String']['input'];\n /**\n * 分页页码,\n * 规则: 从1开始,默认是1\n */\n page?: InputMaybe<Scalars['Int']['input']>;\n /**\n * 每页数量,\n * 规则: 默认10\n */\n pageSize?: InputMaybe<Scalars['Int']['input']>;\n};\n\n/** 模型 */\nexport type Model = {\n __typename?: 'Model';\n /** 添加一些辅助性记录信息 */\n annotations?: Maybe<Scalars['Map']['output']>;\n /** 创建时间 */\n creationTimestamp?: Maybe<Scalars['Time']['output']>;\n /**\n * 创建者,为当前用户的用户名\n * 规则: webhook启用后自动添加,默认为空\n */\n creator?: Maybe<Scalars['String']['output']>;\n /** 描述信息 */\n description?: Maybe<Scalars['String']['output']>;\n /** 展示名 */\n displayName?: Maybe<Scalars['String']['output']>;\n /** 模型包含文件列表 */\n files: PaginatedResult;\n /** 模型id,为CR资源中的metadata.uid */\n id?: Maybe<Scalars['String']['output']>;\n /** 一些用于标记,选择的的标签 */\n labels?: Maybe<Scalars['Map']['output']>;\n /** 详细信息 */\n message?: Maybe<Scalars['String']['output']>;\n /**\n * 名称\n * 规则: 遵循k8s命名\n */\n name: Scalars['String']['output'];\n /**\n * 所在的namespace(文件上传时作为bucket)\n * 规则: 获取当前项目对应的命名空间\n * 规则: 非空\n */\n namespace: Scalars['String']['output'];\n /** 状态 */\n status?: Maybe<Scalars['String']['output']>;\n /**\n * 模型是否是由系统提供\n * 规则: 如果为true,则是系统系统的。\n * 规则: 如果是系统提供的模型,不允许修改\n */\n systemModel?: Maybe<Scalars['Boolean']['output']>;\n /**\n * 模型类型\n * 规则: 目前支持 llm和embedding两种模型类型\n * 规则: 如果该模型支持多种模型类型,则可多选。多选后组成的字段通过逗号隔开。如 \"llm,embedding\"\n */\n types: Scalars['String']['output'];\n /** 更新时间 */\n updateTimestamp?: Maybe<Scalars['Time']['output']>;\n};\n\n\n/** 模型 */\nexport type ModelFilesArgs = {\n input?: InputMaybe<FileFilter>;\n};\n\nexport type ModelMutation = {\n __typename?: 'ModelMutation';\n createModel: Model;\n deleteModels?: Maybe<Scalars['Void']['output']>;\n updateModel: Model;\n};\n\n\nexport type ModelMutationCreateModelArgs = {\n input: CreateModelInput;\n};\n\n\nexport type ModelMutationDeleteModelsArgs = {\n input?: InputMaybe<DeleteCommonInput>;\n};\n\n\nexport type ModelMutationUpdateModelArgs = {\n input?: InputMaybe<UpdateModelInput>;\n};\n\nexport type ModelQuery = {\n __typename?: 'ModelQuery';\n getModel: Model;\n listModels: PaginatedResult;\n};\n\n\nexport type ModelQueryGetModelArgs = {\n name: Scalars['String']['input'];\n namespace: Scalars['String']['input'];\n};\n\n\nexport type ModelQueryListModelsArgs = {\n input: ListModelInput;\n};\n\nexport type ModelService = {\n __typename?: 'ModelService';\n annotations?: Maybe<Scalars['Map']['output']>;\n /**\n * 模型服务 API 类型\n * 规则:支持 openai, zhipuai 两种类型\n */\n apiType?: Maybe<Scalars['String']['output']>;\n /** 服务地址: 仅针对第三方模型服务 */\n baseUrl: Scalars['String']['output'];\n /** 模型服务的创建和更新时间 */\n creationTimestamp?: Maybe<Scalars['Time']['output']>;\n creator?: Maybe<Scalars['String']['output']>;\n description?: Maybe<Scalars['String']['output']>;\n displayName?: Maybe<Scalars['String']['output']>;\n /**\n * 模型服务的Embedding模型列表\n * 规则;如果不填或者为空,则按照模型的API类型获取默认的模型列表\n */\n embeddingModels?: Maybe<Array<Scalars['String']['output']>>;\n id?: Maybe<Scalars['String']['output']>;\n labels?: Maybe<Scalars['Map']['output']>;\n /**\n * 模型服务的大语言模型列表\n * 规则;如果不填或者为空,则按照模型的API类型获取默认的模型列表\n */\n llmModels?: Maybe<Array<Scalars['String']['output']>>;\n /** 详细的状态消息描述 */\n message?: Maybe<Scalars['String']['output']>;\n name: Scalars['String']['output'];\n namespace: Scalars['String']['output'];\n /**\n * 模型服务供应商的类型\n * 规则: 3rd_party 第三方\n * 规则: worker 本地\n */\n providerType?: Maybe<Scalars['String']['output']>;\n /**\n * 状态\n * 规则: 目前分为六种状态\n * - True: 正常 (第三方模型服务)\n * - False: 异常 (第三方模型服务)\n * - Unknown: 未知 (本地模型服务)\n * - Pending: 发布中 (本地模型服务)\n * - Running: 已发布 (本地模型服务)\n * - Error: 异常 (本地模型服务)\n */\n status?: Maybe<Scalars['String']['output']>;\n /**\n * 模型服务能力类型,支持 llm 和 embedding 两种模型类型\n * 规则: 如果该模型支持多种模型类型,则可多选。多选后组成的字段通过逗号隔开。如 \"llm,embedding\"\n */\n types?: Maybe<Scalars['String']['output']>;\n updateTimestamp?: Maybe<Scalars['Time']['output']>;\n};\n\nexport type ModelServiceMutation = {\n __typename?: 'ModelServiceMutation';\n createModelService: ModelService;\n deleteModelService?: Maybe<Scalars['Void']['output']>;\n updateModelService: ModelService;\n};\n\n\nexport type ModelServiceMutationCreateModelServiceArgs = {\n input: CreateModelServiceInput;\n};\n\n\nexport type ModelServiceMutationDeleteModelServiceArgs = {\n input?: InputMaybe<DeleteCommonInput>;\n};\n\n\nexport type ModelServiceMutationUpdateModelServiceArgs = {\n input?: InputMaybe<UpdateModelServiceInput>;\n};\n\nexport type ModelServiceQuery = {\n __typename?: 'ModelServiceQuery';\n checkModelService: ModelService;\n getModelService: ModelService;\n listModelServices: PaginatedResult;\n};\n\n\nexport type ModelServiceQueryCheckModelServiceArgs = {\n input: CreateModelServiceInput;\n};\n\n\nexport type ModelServiceQueryGetModelServiceArgs = {\n name: Scalars['String']['input'];\n namespace: Scalars['String']['input'];\n};\n\n\nexport type ModelServiceQueryListModelServicesArgs = {\n input?: InputMaybe<ListModelServiceInput>;\n};\n\nexport type Mutation = {\n __typename?: 'Mutation';\n Application?: Maybe<ApplicationMutation>;\n Dataset?: Maybe<DatasetMutation>;\n Datasource?: Maybe<DatasourceMutation>;\n Embedder?: Maybe<EmbedderMutation>;\n KnowledgeBase?: Maybe<KnowledgeBaseMutation>;\n Model?: Maybe<ModelMutation>;\n ModelService?: Maybe<ModelServiceMutation>;\n VersionedDataset?: Maybe<VersionedDatasetMutation>;\n Worker?: Maybe<WorkerMutation>;\n dataProcess?: Maybe<DataProcessMutation>;\n hello: Scalars['String']['output'];\n};\n\n\nexport type MutationHelloArgs = {\n name: Scalars['String']['input'];\n};\n\nexport type NodeSelectorRequirement = {\n __typename?: 'NodeSelectorRequirement';\n key: Scalars['String']['output'];\n operator: Scalars['String']['output'];\n values: Array<Scalars['String']['output']>;\n};\n\nexport type NodeSelectorRequirementInput = {\n key: Scalars['String']['input'];\n operator: Scalars['String']['input'];\n values: Array<Scalars['String']['input']>;\n};\n\n/** 对象存储的使用信息 */\nexport type Oss = {\n __typename?: 'Oss';\n /** 所用的bucket名称 */\n bucket?: Maybe<Scalars['String']['output']>;\n /** 所用的object路径(可为前缀) */\n object?: Maybe<Scalars['String']['output']>;\n};\n\n/** 文件输入 */\nexport type OssInput = {\n bucket: Scalars['String']['input'];\n object?: InputMaybe<Scalars['String']['input']>;\n};\n\nexport type PageNode = ApplicationMetadata | Dataset | Datasource | Embedder | F | KnowledgeBase | Llm | Model | ModelService | RayCluster | VersionedDataset | Worker;\n\nexport type PaginatedDataProcessItem = {\n __typename?: 'PaginatedDataProcessItem';\n data?: Maybe<Array<DataProcessItem>>;\n message: Scalars['String']['output'];\n status: Scalars['Int']['output'];\n};\n\nexport type PaginatedResult = {\n __typename?: 'PaginatedResult';\n hasNextPage: Scalars['Boolean']['output'];\n nodes?: Maybe<Array<PageNode>>;\n page?: Maybe<Scalars['Int']['output']>;\n pageSize?: Maybe<Scalars['Int']['output']>;\n totalCount: Scalars['Int']['output'];\n};\n\nexport type Query = {\n __typename?: 'Query';\n Application?: Maybe<ApplicationQuery>;\n Dataset?: Maybe<DatasetQuery>;\n Datasource?: Maybe<DatasourceQuery>;\n Embedder?: Maybe<EmbedderQuery>;\n KnowledgeBase?: Maybe<KnowledgeBaseQuery>;\n LLM?: Maybe<LlmQuery>;\n Model?: Maybe<ModelQuery>;\n ModelService?: Maybe<ModelServiceQuery>;\n RayCluster?: Maybe<RayClusterQuery>;\n VersionedDataset?: Maybe<VersionedDatasetQuery>;\n Worker?: Maybe<WorkerQuery>;\n dataProcess?: Maybe<DataProcessQuery>;\n hello: Scalars['String']['output'];\n};\n\n\nexport type QueryHelloArgs = {\n name: Scalars['String']['input'];\n};\n\n/** RayCluster集群 */\nexport type RayCluster = {\n __typename?: 'RayCluster';\n /** Ray集群dashboard的地址 */\n dashboardHost?: Maybe<Scalars['String']['output']>;\n /**\n * Ray集群head节点的地址\n * 规则: 遵循k8s命名\n */\n headAddress?: Maybe<Scalars['String']['output']>;\n /** Ray集群的索引 */\n index: Scalars['Int']['output'];\n /**\n * 名称\n * 规则: 遵循k8s命名\n */\n name: Scalars['String']['output'];\n /** Ray集群应用要求的python版本 */\n pythonVersion?: Maybe<Scalars['String']['output']>;\n};\n\nexport type RayClusterQuery = {\n __typename?: 'RayClusterQuery';\n listRayClusters: PaginatedResult;\n};\n\n\nexport type RayClusterQueryListRayClustersArgs = {\n input: ListCommonInput;\n};\n\n/** 模型服务worker节点的资源(limits) */\nexport type Resources = {\n __typename?: 'Resources';\n cpu?: Maybe<Scalars['String']['output']>;\n memory?: Maybe<Scalars['String']['output']>;\n nvidiaGPU?: Maybe<Scalars['String']['output']>;\n};\n\n/** 资源配置的输入 */\nexport type ResourcesInput = {\n /**\n * cpu配置\n * 规则: 必填\n */\n cpu: Scalars['String']['input'];\n /**\n * memory配置\n * 规则: 必填\n */\n memory: Scalars['String']['input'];\n /** gpu配置 */\n nvidiaGPU?: InputMaybe<Scalars['String']['input']>;\n};\n\nexport type TypedObjectReference = {\n __typename?: 'TypedObjectReference';\n apiGroup?: Maybe<Scalars['String']['output']>;\n kind: Scalars['String']['output'];\n name: Scalars['String']['output'];\n namespace?: Maybe<Scalars['String']['output']>;\n};\n\nexport type TypedObjectReferenceInput = {\n apiGroup?: InputMaybe<Scalars['String']['input']>;\n kind: Scalars['String']['input'];\n name: Scalars['String']['input'];\n namespace?: InputMaybe<Scalars['String']['input']>;\n};\n\nexport type UpdateApplicationConfigInput = {\n /** conversionWindowSize 对话轮次 */\n conversionWindowSize?: InputMaybe<Scalars['Int']['input']>;\n /** docNullReturn 空搜索回复 */\n docNullReturn?: InputMaybe<Scalars['String']['input']>;\n /** knowledgebase 指当前知识库应用使用的知识库,即 Kind 为 KnowledgeBase 的 CR 的名称,目前一个应用只支持0或1个知识库 */\n knowledgebase?: InputMaybe<Scalars['String']['input']>;\n /** llm 指当前知识库应用使用的模型服务,即 Kind 为 LLM 的 CR 的名称 */\n llm: Scalars['String']['input'];\n /** maxLength 最大响应长度 */\n maxLength?: InputMaybe<Scalars['Int']['input']>;\n /** model 指具体使用的模型名称,比如 gpt-3.5-turbo 或者 chatglm_turbo */\n model?: InputMaybe<Scalars['String']['input']>;\n /**\n * 应用名称, 用于确定要更新哪个应用\n * 规则: 遵循 k8s 命名\n */\n name: Scalars['String']['input'];\n /**\n * 应用所在的 namespace, 用于确定要更新哪个应用\n * 规则: 非空\n */\n namespace: Scalars['String']['input'];\n /** numDocuments 引用上限 */\n numDocuments?: InputMaybe<Scalars['Int']['input']>;\n /** 对话开场白 */\n prologue?: InputMaybe<Scalars['String']['input']>;\n /** scoreThreshold 最低相似度 */\n scoreThreshold?: InputMaybe<Scalars['Float']['input']>;\n /** showNextGuide 下一步引导,是否显示下一步引导 */\n showNextGuid?: InputMaybe<Scalars['Boolean']['input']>;\n /** temperature 温度 */\n temperature?: InputMaybe<Scalars['Float']['input']>;\n /** userPrompt 用户级别的 Prompt */\n userPrompt?: InputMaybe<Scalars['String']['input']>;\n};\n\nexport type UpdateApplicationMetadataInput = {\n /** 添加一些辅助性记录信息,如果要更新,请传递完整内容 */\n annotations?: InputMaybe<Scalars['Map']['input']>;\n /** 描述信息 */\n description?: InputMaybe<Scalars['String']['input']>;\n /** 展示名,别名 */\n displayName: Scalars['String']['input'];\n /** Icon,应用头像, base64格式的图片 */\n icon: Scalars['String']['input'];\n /** IsPublic, 是否发布,即是否公开提供服务 */\n isPublic?: InputMaybe<Scalars['Boolean']['input']>;\n /** 一些用于标记,选择的的标签,如果要更新,请传递完整内容 */\n labels?: InputMaybe<Scalars['Map']['input']>;\n /**\n * 应用名称, 用于确定要更新哪个应用\n * 规则: 遵循 k8s 命名\n */\n name: Scalars['String']['input'];\n /**\n * 应用所在的 namespace, 用于确定要更新哪个应用\n * 规则: 非空\n */\n namespace: Scalars['String']['input'];\n};\n\n/** 数据集更新的输入 */\nexport type UpdateDatasetInput = {\n annotations?: InputMaybe<Scalars['Map']['input']>;\n /** 如不更新,则为空 */\n description?: InputMaybe<Scalars['String']['input']>;\n /** 如不更新,则为空 */\n displayName?: InputMaybe<Scalars['String']['input']>;\n /**\n * 更新的的标签信息,这里涉及到增加或者删除标签,\n * 规则: 不允许修改的。将原数据传递回来即可。\n * 如果标签有任何改动,传递完整的label。\n * 例如之前的标齐是: abc:def 新增一个标签aa:bb, 那么传递 abc:def, aa:bb\n */\n labels?: InputMaybe<Scalars['Map']['input']>;\n /**\n * name, namespace用来确定资源\n * 规则: 不允许修改的。将原数据传递回来即可。\n */\n name: Scalars['String']['input'];\n namespace: Scalars['String']['input'];\n};\n\n/** 更新数据源的输入 */\nexport type UpdateDatasourceInput = {\n annotations?: InputMaybe<Scalars['Map']['input']>;\n /** 如不更新,则为空 */\n description?: InputMaybe<Scalars['String']['input']>;\n /** 如不更新,则为空 */\n displayName?: InputMaybe<Scalars['String']['input']>;\n /** 数据源的访问信息输入 */\n endpointinput?: InputMaybe<EndpointInput>;\n /**\n * 更新的的标签信息,这里涉及到增加或者删除标签,\n * 规则: 不允许修改的。将原数据传递回来即可。\n * 如果标签有任何改动,传递完整的label。\n * 例如之前的标齐是: abc:def 新增一个标签aa:bb, 那么传递 abc:def, aa:bb\n */\n labels?: InputMaybe<Scalars['Map']['input']>;\n /**\n * name, namespace用来确定资源\n * 规则: 不允许修改的。将原数据传递回来即可。\n */\n name: Scalars['String']['input'];\n namespace: Scalars['String']['input'];\n /** 数据源为对象存储类型时的输入 */\n ossinput?: InputMaybe<OssInput>;\n};\n\nexport type UpdateEmbedderInput = {\n /** 模型服务资源注释 */\n annotations?: InputMaybe<Scalars['Map']['input']>;\n /** 模型服务资源描述 */\n description?: InputMaybe<Scalars['String']['input']>;\n /** 模型服务资源展示名称作为显示,并提供编辑 */\n displayName?: InputMaybe<Scalars['String']['input']>;\n /** 模型服务访问信息 */\n endpointinput?: InputMaybe<EndpointInput>;\n /** 模型服务资源标签 */\n labels?: InputMaybe<Scalars['Map']['input']>;\n /** 待修改模型服务资源名称(必填) */\n name: Scalars['String']['input'];\n /** 待修改模型服务创建命名空间(必填) */\n namespace: Scalars['String']['input'];\n /**\n * 向量化模型服务接口类型\n * 规则: 目前支持 zhipuai,openai两种接口类型\n */\n type?: InputMaybe<Scalars['String']['input']>;\n};\n\n/** 知识库更新的输入 */\nexport type UpdateKnowledgeBaseInput = {\n /** 知识库资源注释 */\n annotations?: InputMaybe<Scalars['Map']['input']>;\n /** 如不更新,则为空 */\n description?: InputMaybe<Scalars['String']['input']>;\n /** 如不更新,则为空 */\n displayName?: InputMaybe<Scalars['String']['input']>;\n /** 更新知识库文件 */\n fileGroups?: InputMaybe<Array<Filegroupinput>>;\n /** 知识库资源标签 */\n labels?: InputMaybe<Scalars['Map']['input']>;\n /** 知识库资源名称(不可同名) */\n name: Scalars['String']['input'];\n /** 知识库创建命名空间 */\n namespace: Scalars['String']['input'];\n};\n\nexport type UpdateLlmInput = {\n /** 模型服务资源注释 */\n annotations?: InputMaybe<Scalars['Map']['input']>;\n /** 模型服务资源描述 */\n description?: InputMaybe<Scalars['String']['input']>;\n /** 模型服务资源展示名称作为显示,并提供编辑 */\n displayName?: InputMaybe<Scalars['String']['input']>;\n /** 模型服务访问信息 */\n endpointinput?: InputMaybe<EndpointInput>;\n /** 模型服务资源标签 */\n labels?: InputMaybe<Scalars['Map']['input']>;\n /** 待修改模型服务资源名称(必填) */\n name: Scalars['String']['input'];\n /** 待修改模型服务创建命名空间(必填) */\n namespace: Scalars['String']['input'];\n /**\n * 模型服务接口类型\n * 规则: 目前支持 zhipuai,openai两种接口类型\n */\n type?: InputMaybe<Scalars['String']['input']>;\n};\n\n/** 模型更新的输入 */\nexport type UpdateModelInput = {\n /** 模型资源注释 */\n annotations?: InputMaybe<Scalars['Map']['input']>;\n /** 模型资源描述 */\n description?: InputMaybe<Scalars['String']['input']>;\n /** 模型资源展示名称作为显示,并提供编辑 */\n displayName?: InputMaybe<Scalars['String']['input']>;\n /** 模型资标签 */\n labels?: InputMaybe<Scalars['Map']['input']>;\n /** 模型资源名称(不可同名) */\n name: Scalars['String']['input'];\n /** 模型创建命名空间 */\n namespace: Scalars['String']['input'];\n /**\n * 模型类型\n * 规则: 目前支持 llm和embedding两种模型类型\n * 规则: 如果该模型支持多种模型类型,则可多选。多选后组成的字段通过逗号隔开。如 \"llm,embedding\"\n */\n types?: InputMaybe<Scalars['String']['input']>;\n};\n\nexport type UpdateModelServiceInput = {\n /** 模型资源注释 */\n annotations?: InputMaybe<Scalars['Map']['input']>;\n /**\n * 模型服务 API 类型\n * 规则:支持 openai, zhipuai 两种类型\n */\n apiType?: InputMaybe<Scalars['String']['input']>;\n /** 模型资源描述 */\n description?: InputMaybe<Scalars['String']['input']>;\n /** 模型资源展示名称作为显示,并提供编辑 */\n displayName?: InputMaybe<Scalars['String']['input']>;\n /**\n * 模型服务的Embedding模型列表\n * 规则;如果不填或者为空,则按照模型的API类型获取默认的模型列表\n */\n embeddingModels?: InputMaybe<Array<Scalars['String']['input']>>;\n /** 模型服务终端输入 */\n endpoint: EndpointInput;\n /** 模型资标签 */\n labels?: InputMaybe<Scalars['Map']['input']>;\n /**\n * 模型服务的大语言模型列表\n * 规则;如果不填或者为空,则按照模型的API类型获取默认的模型列表\n */\n llmModels?: InputMaybe<Array<Scalars['String']['input']>>;\n /** 模型资源名称(不可同名) */\n name: Scalars['String']['input'];\n /** 模型创建命名空间 */\n namespace: Scalars['String']['input'];\n /**\n * 模型服务能力类型,支持 llm 和 embedding 两种模型类型\n * 规则: 如果该模型支持多种模型类型,则可多选。多选后组成的字段通过逗号隔开。如 \"llm,embedding\"\n */\n types?: InputMaybe<Scalars['String']['input']>;\n};\n\nexport type UpdateVersionedDatasetInput = {\n /** 传递方式同label */\n annotations?: InputMaybe<Scalars['Map']['input']>;\n description?: InputMaybe<Scalars['String']['input']>;\n displayName?: InputMaybe<Scalars['String']['input']>;\n /**\n * 更新,删除数据集版本中的文件,传递方式于label相同,完全传递。\n * 如果传递一个空的数组过去,认为是删除全部文件。\n */\n fileGroups?: InputMaybe<Array<FileGroup>>;\n /**\n * 更新的的标签信息,这里涉及到增加或者删除标签,\n * 所以,如果标签有任何改动,传递完整的label。\n * 例如之前的标齐是: abc:def 新增一个标签aa:bb, 那么传递 abc:def, aa:bb\n */\n labels?: InputMaybe<Scalars['Map']['input']>;\n /**\n * 这个名字就是metadat.name, 根据name和namespace确定资源\n * name,namespac是不可以更新的。\n */\n name: Scalars['String']['input'];\n namespace: Scalars['String']['input'];\n /** 修改数据集版本发布状态 */\n released?: InputMaybe<Scalars['Int']['input']>;\n};\n\n/** 模型更新的输入 */\nexport type UpdateWorkerInput = {\n /** worker运行配置的环境变量 */\n additionalEnvs?: InputMaybe<Scalars['Map']['input']>;\n /** 模型资源注释 */\n annotations?: InputMaybe<Scalars['Map']['input']>;\n /** 模型资源描述 */\n description?: InputMaybe<Scalars['String']['input']>;\n /** 模型资源展示名称作为显示,并提供编辑 */\n displayName?: InputMaybe<Scalars['String']['input']>;\n /** 模型资标签 */\n labels?: InputMaybe<Scalars['Map']['input']>;\n /** 模型服务的节点亲合度配置 */\n matchExpressions?: InputMaybe<Array<InputMaybe<NodeSelectorRequirementInput>>>;\n /** 模型资源名称(不可同名) */\n name: Scalars['String']['input'];\n /** 模型创建命名空间 */\n namespace: Scalars['String']['input'];\n replicas?: InputMaybe<Scalars['String']['input']>;\n /** worker运行所需的资源 */\n resources?: InputMaybe<ResourcesInput>;\n /**\n * Worker类型\n * 支持两种类型:\n * - \"fastchat\" : fastchat提供的通用的推理服务模式\n * - \"fastchat-vllm\" : fastchat提供的采用VLLM推理加速的推理服务模式\n * 规则: 如果为空,则不更新;如果type类型与当前类型相同,则不更新\n */\n type?: InputMaybe<Scalars['String']['input']>;\n};\n\n/**\n * VersionedDataset\n * 数据集的版本信息。\n * 主要记录版本名字,数据的来源,以及文件的同步状态\n */\nexport type VersionedDataset = {\n __typename?: 'VersionedDataset';\n /** 添加一些辅助性记录信息 */\n annotations?: Maybe<Scalars['Map']['output']>;\n creationTimestamp: Scalars['Time']['output'];\n /** 创建者,正查给你这个字段是不需要人写的,自动添加 */\n creator?: Maybe<Scalars['String']['output']>;\n /** 数据处理信息,如果版本数据处理状态失败时,显示失败原因 */\n dataProcessMsg?: Maybe<Scalars['String']['output']>;\n /** 数据处理状态,如果为空,表示还没有开始,processing 处理中,process_fail处理失败,process_complete处理完成 */\n dataProcessStatus?: Maybe<Scalars['String']['output']>;\n /** 所属的数据集 */\n dataset: TypedObjectReference;\n /** 描述 */\n description?: Maybe<Scalars['String']['output']>;\n /** 展示名字, 与metadat.name不一样,这个展示名字是可以用中文的 */\n displayName?: Maybe<Scalars['String']['output']>;\n /** 数据集所包含的文件,对于文件需要支持过滤和分页 */\n files: PaginatedResult;\n /** 版本数据集id,为CR资源中的metadata.uid */\n id?: Maybe<Scalars['String']['output']>;\n /** 一些用于标记,选择的的标签 */\n labels?: Maybe<Scalars['Map']['output']>;\n /** 数据集名称, 这个应该是前端随机生成就可以,没有实际用途 */\n name: Scalars['String']['output'];\n /** 数据集所在的namespace,也是后续桶的名字 */\n namespace: Scalars['String']['output'];\n /** 该版本是否已经发布, 0是未发布,1是已经发布 */\n released: Scalars['Int']['output'];\n /** 文件同步状态信息,表示同步的错误信息 */\n syncMsg?: Maybe<Scalars['String']['output']>;\n /** 文件的同步状态, Processing或者'' 表示文件正在同步,Succeede 文件同步成功,Failed 存在文件同步失败 */\n syncStatus?: Maybe<Scalars['String']['output']>;\n /** 更新时间, 这里更新指文件同步,或者数据处理完成后,做的更新操作的时间 */\n updateTimestamp?: Maybe<Scalars['Time']['output']>;\n /** 版本名称 */\n version: Scalars['String']['output'];\n};\n\n\n/**\n * VersionedDataset\n * 数据集的版本信息。\n * 主要记录版本名字,数据的来源,以及文件的同步状态\n */\nexport type VersionedDatasetFilesArgs = {\n input?: InputMaybe<FileFilter>;\n};\n\nexport type VersionedDatasetMutation = {\n __typename?: 'VersionedDatasetMutation';\n createVersionedDataset: VersionedDataset;\n deleteVersionedDatasets?: Maybe<Scalars['Void']['output']>;\n updateVersionedDataset: VersionedDataset;\n};\n\n\nexport type VersionedDatasetMutationCreateVersionedDatasetArgs = {\n input: CreateVersionedDatasetInput;\n};\n\n\nexport type VersionedDatasetMutationDeleteVersionedDatasetsArgs = {\n input: DeleteVersionedDatasetInput;\n};\n\n\nexport type VersionedDatasetMutationUpdateVersionedDatasetArgs = {\n input: UpdateVersionedDatasetInput;\n};\n\nexport type VersionedDatasetQuery = {\n __typename?: 'VersionedDatasetQuery';\n getVersionedDataset: VersionedDataset;\n listVersionedDatasets: PaginatedResult;\n};\n\n\nexport type VersionedDatasetQueryGetVersionedDatasetArgs = {\n name: Scalars['String']['input'];\n namespace: Scalars['String']['input'];\n};\n\n\nexport type VersionedDatasetQueryListVersionedDatasetsArgs = {\n input: ListVersionedDatasetInput;\n};\n\n/** 本地模型服务节点 */\nexport type Worker = {\n __typename?: 'Worker';\n /** worker运行配置的环境变量 */\n additionalEnvs?: Maybe<Scalars['Map']['output']>;\n /** 添加一些辅助性记录信息 */\n annotations?: Maybe<Scalars['Map']['output']>;\n /** 模型服务的api地址 */\n api?: Maybe<Scalars['String']['output']>;\n /** 创建时间 */\n creationTimestamp?: Maybe<Scalars['Time']['output']>;\n /**\n * 创建者,为当前用户的用户名\n * 规则: webhook启用后自动添加,默认为空\n */\n creator?: Maybe<Scalars['String']['output']>;\n /** 描述信息 */\n description?: Maybe<Scalars['String']['output']>;\n /** 展示名 */\n displayName?: Maybe<Scalars['String']['output']>;\n /** 模型id,为CR资源中的metadata.uid */\n id?: Maybe<Scalars['String']['output']>;\n /** 一些用于标记,选择的的标签 */\n labels?: Maybe<Scalars['Map']['output']>;\n /** 模型服务的节点亲合度配置 */\n matchExpressions?: Maybe<Array<Maybe<NodeSelectorRequirement>>>;\n /** 详细的状态消息描述 */\n message?: Maybe<Scalars['String']['output']>;\n /**\n * worker对应的模型\n * 规则: 相同namespace下的模型名称\n * 规则: 必填\n */\n model: TypedObjectReference;\n /** worker对应的模型类型 */\n modelTypes: Scalars['String']['output'];\n /**\n * 名称\n * 规则: 遵循k8s命名\n */\n name: Scalars['String']['output'];\n /**\n * 所在的namespace(文件上传时作为bucket)\n * 规则: 获取当前项目对应的命名空间\n * 规则: 非空\n */\n namespace: Scalars['String']['output'];\n /**\n * worker运行的Pod副本数量\n * 规则: 默认为1,最大值为1\n * 规则: 为0时,即下线\n */\n replicas?: Maybe<Scalars['String']['output']>;\n /**\n * worker运行所需的资源\n * 规则: 必填\n */\n resources: Resources;\n /**\n * 状态\n * 规则: 目前分为四种状态\n * - Unknown: 未知\n * - Pending: 发布中\n * - Running: 已发布\n * - Error: 异常\n */\n status?: Maybe<Scalars['String']['output']>;\n /**\n * Worker类型\n * 支持两种类型:\n * - \"fastchat\" : fastchat提供的通用的推理服务模式\n * - \"fastchat-vllm\" : fastchat提供的采用VLLM推理加速的推理服务模式\n * 规则: 如果为空,则默认为 \"fastchat\"\n */\n type?: Maybe<Scalars['String']['output']>;\n /** 更新时间 */\n updateTimestamp?: Maybe<Scalars['Time']['output']>;\n};\n\nexport type WorkerMutation = {\n __typename?: 'WorkerMutation';\n createWorker: Worker;\n deleteWorkers?: Maybe<Scalars['Void']['output']>;\n updateWorker: Worker;\n};\n\n\nexport type WorkerMutationCreateWorkerArgs = {\n input: CreateWorkerInput;\n};\n\n\nexport type WorkerMutationDeleteWorkersArgs = {\n input?: InputMaybe<DeleteCommonInput>;\n};\n\n\nexport type WorkerMutationUpdateWorkerArgs = {\n input?: InputMaybe<UpdateWorkerInput>;\n};\n\nexport type WorkerQuery = {\n __typename?: 'WorkerQuery';\n getWorker: Worker;\n listWorkers: PaginatedResult;\n};\n\n\nexport type WorkerQueryGetWorkerArgs = {\n name: Scalars['String']['input'];\n namespace: Scalars['String']['input'];\n};\n\n\nexport type WorkerQueryListWorkersArgs = {\n input: ListWorkerInput;\n};\n\n/**\n * 文件详情\n * 描述: 文件在知识库中的详细状态\n */\nexport type Filedetail = {\n __typename?: 'filedetail';\n /** 文件中的数据条目总数 */\n count: Scalars['String']['output'];\n /**\n * 文件类型\n * 规则: enum { QA }\n */\n fileType: Scalars['String']['output'];\n /** 文件路径 */\n path: Scalars['String']['output'];\n /**\n * 文件处理的阶段\n * 规则: enum { Pending , Processing , Succeeded, Failed, Skipped}\n */\n phase: Scalars['String']['output'];\n /** 文件大小 */\n size: Scalars['String']['output'];\n /** 最新处理时间 */\n updateTimestamp?: Maybe<Scalars['Time']['output']>;\n};\n\n/**\n * 文件组\n * 规则: 属于同一个源(数据集)的文件要放在同一个filegroup中\n * 规则: path直接读取文件里表中的文件路径即可\n */\nexport type Filegroup = {\n __typename?: 'filegroup';\n /** 路径数组 */\n path?: Maybe<Array<Scalars['String']['output']>>;\n /** 源;目前仅支持版本数据集,即 Kind为 VersionedDataset */\n source?: Maybe<TypedObjectReference>;\n};\n\n/**\n * 文件组详情\n * 描述: 文件组在知识库中的状态\n */\nexport type Filegroupdetail = {\n __typename?: 'filegroupdetail';\n /**\n * 文件详情\n * 规则;数组。具体文件详情参考 filedetail描述\n */\n filedetails?: Maybe<Array<Maybe<Filedetail>>>;\n /** 源;目前仅支持版本数据集,即 Kind为 VersionedDataset */\n source?: Maybe<TypedObjectReference>;\n};\n\n/** 源文件输入 */\nexport type Filegroupinput = {\n /** 路径 */\n path?: InputMaybe<Array<Scalars['String']['input']>>;\n /** 数据源字段 */\n source: TypedObjectReferenceInput;\n};\n\nexport type CreateApplicationMutationVariables = Exact<{\n input: CreateApplicationMetadataInput;\n}>;\n\n\nexport type CreateApplicationMutation = { __typename?: 'Mutation', Application?: { __typename?: 'ApplicationMutation', createApplication: { __typename?: 'ApplicationMetadata', name: string, namespace: string, id?: string | null, labels?: any | null, annotations?: any | null, displayName?: string | null, description?: string | null, icon?: string | null } } | null };\n\nexport type UpdateApplicationMutationVariables = Exact<{\n input: UpdateApplicationMetadataInput;\n}>;\n\n\nexport type UpdateApplicationMutation = { __typename?: 'Mutation', Application?: { __typename?: 'ApplicationMutation', updateApplication: { __typename?: 'ApplicationMetadata', name: string, namespace: string, id?: string | null, labels?: any | null, annotations?: any | null, displayName?: string | null, description?: string | null, icon?: string | null, isPublic?: boolean | null } } | null };\n\nexport type DeleteApplicationMutationVariables = Exact<{\n input: DeleteCommonInput;\n}>;\n\n\nexport type DeleteApplicationMutation = { __typename?: 'Mutation', Application?: { __typename?: 'ApplicationMutation', deleteApplication?: any | null } | null };\n\nexport type UpdateApplicationConfigMutationVariables = Exact<{\n input: UpdateApplicationConfigInput;\n}>;\n\n\nexport type UpdateApplicationConfigMutation = { __typename?: 'Mutation', Application?: { __typename?: 'ApplicationMutation', updateApplicationConfig: { __typename?: 'Application', prologue?: string | null, model?: string | null, llm: string, temperature?: number | null, maxLength?: number | null, conversionWindowSize?: number | null, knowledgebase?: string | null, scoreThreshold?: number | null, numDocuments?: number | null, docNullReturn?: string | null, userPrompt?: string | null, showNextGuid?: boolean | null, metadata?: { __typename?: 'ApplicationMetadata', name: string, namespace: string, id?: string | null, labels?: any | null, annotations?: any | null, displayName?: string | null, description?: string | null, icon?: string | null, creator?: string | null, creationTimestamp?: any | null, updateTimestamp?: any | null, isPublic?: boolean | null, status?: string | null } | null } } | null };\n\nexport type GetApplicationQueryVariables = Exact<{\n name: Scalars['String']['input'];\n namespace: Scalars['String']['input'];\n}>;\n\n\nexport type GetApplicationQuery = { __typename?: 'Query', Application?: { __typename?: 'ApplicationQuery', getApplication: { __typename?: 'Application', prologue?: string | null, model?: string | null, llm: string, temperature?: number | null, maxLength?: number | null, conversionWindowSize?: number | null, knowledgebase?: string | null, scoreThreshold?: number | null, numDocuments?: number | null, docNullReturn?: string | null, userPrompt?: string | null, showNextGuid?: boolean | null, metadata?: { __typename?: 'ApplicationMetadata', name: string, namespace: string, id?: string | null, labels?: any | null, annotations?: any | null, displayName?: string | null, description?: string | null, icon?: string | null, creator?: string | null, creationTimestamp?: any | null, updateTimestamp?: any | null, isPublic?: boolean | null, status?: string | null } | null } } | null };\n\nexport type ListApplicationsQueryVariables = Exact<{\n input: ListCommonInput;\n}>;\n\n\nexport type ListApplicationsQuery = { __typename?: 'Query', Application?: { __typename?: 'ApplicationQuery', listApplicationMetadata: { __typename?: 'PaginatedResult', page?: number | null, pageSize?: number | null, totalCount: number, hasNextPage: boolean, nodes?: Array<{ __typename?: 'ApplicationMetadata', name: string, namespace: string, id?: string | null, labels?: any | null, annotations?: any | null, displayName?: string | null, description?: string | null, icon?: string | null, isPublic?: boolean | null } | { __typename?: 'Dataset' } | { __typename?: 'Datasource' } | { __typename?: 'Embedder' } | { __typename?: 'F' } | { __typename?: 'KnowledgeBase' } | { __typename?: 'LLM' } | { __typename?: 'Model' } | { __typename?: 'ModelService' } | { __typename?: 'RayCluster' } | { __typename?: 'VersionedDataset' } | { __typename?: 'Worker' }> | null } } | null };\n\nexport type AllDataProcessListByPageQueryVariables = Exact<{\n input: AllDataProcessListByPageInput;\n}>;\n\n\nexport type AllDataProcessListByPageQuery = { __typename?: 'Query', dataProcess?: { __typename?: 'DataProcessQuery', allDataProcessListByPage?: { __typename?: 'PaginatedDataProcessItem', status: number, message: string, data?: Array<{ __typename?: 'DataProcessItem', id: string, name: string, status: string, pre_data_set_name: string, pre_data_set_version: string, post_data_set_name: string, post_data_set_version?: string | null, start_datetime: string, error_msg?: string | null }> | null } | null } | null };\n\nexport type AllDataProcessListByCountQueryVariables = Exact<{\n input: AllDataProcessListByCountInput;\n}>;\n\n\nexport type AllDataProcessListByCountQuery = { __typename?: 'Query', dataProcess?: { __typename?: 'DataProcessQuery', allDataProcessListByCount?: { __typename?: 'CountDataProcessItem', status: number, data: number, message: string } | null } | null };\n\nexport type DataProcessSupportTypeQueryVariables = Exact<{ [key: string]: never; }>;\n\n\nexport type DataProcessSupportTypeQuery = { __typename?: 'Query', dataProcess?: { __typename?: 'DataProcessQuery', dataProcessSupportType?: { __typename?: 'DataProcessSupportType', status: number, message: string, data?: Array<{ __typename?: 'DataProcessSupportTypeItem', name: string, description: string, children?: Array<{ __typename?: 'DataProcessSupportTypeChildren', name: string, zh_name: string, description: string, enable: string }> | null }> | null } | null } | null };\n\nexport type DataProcessDetailsQueryVariables = Exact<{\n input?: InputMaybe<DataProcessDetailsInput>;\n}>;\n\n\nexport type DataProcessDetailsQuery = { __typename?: 'Query', dataProcess?: { __typename?: 'DataProcessQuery', dataProcessDetails?: { __typename?: 'DataProcessDetails', status: number, message: string, data: { __typename?: 'DataProcessDetailsItem', id: string, status: string, name: string, file_type: string, pre_dataset_name: string, pre_dataset_version: string, post_dataset_name: string, post_dataset_version: string, file_num: number, start_time: string, end_time: string, creator: string, error_msg?: string | null, config?: Array<{ __typename?: 'DataProcessConfig', name: string, description: string, file_num: number, status: string, children?: Array<{ __typename?: 'DataProcessConfigChildren', name?: string | null, enable?: string | null, zh_name?: string | null, description?: string | null, llm_config?: { __typename?: 'LLMConfig', name?: string | null, namespace?: string | null, model?: string | null, temperature?: string | null, top_p?: string | null, max_tokens?: string | null, prompt_template?: string | null, provider?: string | null } | null, preview?: Array<{ __typename?: 'DataProcessConfigpreView', file_name?: string | null, content?: Array<{ __typename?: 'DataProcessConfigpreViewContent', pre?: string | null, post?: string | null } | null> | null } | null> | null, file_progress?: Array<{ __typename?: 'DataProcessConfigpreFileProgress', id?: string | null, file_name?: string | null, status?: string | null, start_time?: string | null, end_time?: string | null, progress?: string | null } | null> | null } | null> | null }> | null } } | null } | null };\n\nexport type CheckDataProcessTaskNameQueryVariables = Exact<{\n input?: InputMaybe<CheckDataProcessTaskNameInput>;\n}>;\n\n\nexport type CheckDataProcessTaskNameQuery = { __typename?: 'Query', dataProcess?: { __typename?: 'DataProcessQuery', checkDataProcessTaskName?: { __typename?: 'DataProcessResponse', status: number, data: string, message: string } | null } | null };\n\nexport type GetLogInfoQueryVariables = Exact<{\n input?: InputMaybe<DataProcessDetailsInput>;\n}>;\n\n\nexport type GetLogInfoQuery = { __typename?: 'Query', dataProcess?: { __typename?: 'DataProcessQuery', getLogInfo?: { __typename?: 'DataProcessResponse', status: number, data: string, message: string } | null } | null };\n\nexport type DataProcessLogInfoByFileNameQueryVariables = Exact<{\n input?: InputMaybe<DataProcessFileLogInput>;\n}>;\n\n\nexport type DataProcessLogInfoByFileNameQuery = { __typename?: 'Query', dataProcess?: { __typename?: 'DataProcessQuery', dataProcessLogInfoByFileName?: { __typename?: 'DataProcessResponse', status: number, data: string, message: string } | null } | null };\n\nexport type DataProcessRetryQueryVariables = Exact<{\n input?: InputMaybe<DataProcessRetryInput>;\n}>;\n\n\nexport type DataProcessRetryQuery = { __typename?: 'Query', dataProcess?: { __typename?: 'DataProcessQuery', dataProcessRetry?: { __typename?: 'DataProcessResponse', status: number, data: string, message: string } | null } | null };\n\nexport type CreateDataProcessTaskMutationVariables = Exact<{\n input?: InputMaybe<AddDataProcessInput>;\n}>;\n\n\nexport type CreateDataProcessTaskMutation = { __typename?: 'Mutation', dataProcess?: { __typename?: 'DataProcessMutation', createDataProcessTask?: { __typename?: 'DataProcessResponse', status: number, data: string, message: string } | null } | null };\n\nexport type DeleteDataProcessTaskMutationVariables = Exact<{\n input?: InputMaybe<DeleteDataProcessInput>;\n}>;\n\n\nexport type DeleteDataProcessTaskMutation = { __typename?: 'Mutation', dataProcess?: { __typename?: 'DataProcessMutation', deleteDataProcessTask?: { __typename?: 'DataProcessResponse', status: number, data: string, message: string } | null } | null };\n\nexport type ListDatasetsQueryVariables = Exact<{\n input?: InputMaybe<ListDatasetInput>;\n versionsInput: ListVersionedDatasetInput;\n filesInput?: InputMaybe<FileFilter>;\n}>;\n\n\nexport type ListDatasetsQuery = { __typename?: 'Query', Dataset?: { __typename?: 'DatasetQuery', listDatasets: { __typename?: 'PaginatedResult', totalCount: number, hasNextPage: boolean, nodes?: Array<{ __typename?: 'ApplicationMetadata' } | { __typename?: 'Dataset', name: string, namespace: string, creator?: string | null, displayName?: string | null, updateTimestamp?: any | null, creationTimestamp?: any | null, contentType: string, field?: string | null, versions: { __typename?: 'PaginatedResult', totalCount: number, hasNextPage: boolean, nodes?: Array<{ __typename?: 'ApplicationMetadata' } | { __typename?: 'Dataset' } | { __typename?: 'Datasource' } | { __typename?: 'Embedder' } | { __typename?: 'F' } | { __typename?: 'KnowledgeBase' } | { __typename?: 'LLM' } | { __typename?: 'Model' } | { __typename?: 'ModelService' } | { __typename?: 'RayCluster' } | { __typename?: 'VersionedDataset', name: string, namespace: string, displayName?: string | null, description?: string | null, syncStatus?: string | null, released: number, dataProcessStatus?: string | null, updateTimestamp?: any | null, version: string, files: { __typename?: 'PaginatedResult', totalCount: number } } | { __typename?: 'Worker' }> | null } } | { __typename?: 'Datasource' } | { __typename?: 'Embedder' } | { __typename?: 'F' } | { __typename?: 'KnowledgeBase' } | { __typename?: 'LLM' } | { __typename?: 'Model' } | { __typename?: 'ModelService' } | { __typename?: 'RayCluster' } | { __typename?: 'VersionedDataset' } | { __typename?: 'Worker' }> | null } } | null };\n\nexport type GetDatasetQueryVariables = Exact<{\n name: Scalars['String']['input'];\n namespace: Scalars['String']['input'];\n versionsInput: ListVersionedDatasetInput;\n filesInput?: InputMaybe<FileFilter>;\n}>;\n\n\nexport type GetDatasetQuery = { __typename?: 'Query', Dataset?: { __typename?: 'DatasetQuery', getDataset: { __typename?: 'Dataset', name: string, namespace: string, creator?: string | null, displayName?: string | null, updateTimestamp?: any | null, creationTimestamp?: any | null, contentType: string, field?: string | null, versions: { __typename?: 'PaginatedResult', totalCount: number, hasNextPage: boolean, nodes?: Array<{ __typename?: 'ApplicationMetadata' } | { __typename?: 'Dataset' } | { __typename?: 'Datasource' } | { __typename?: 'Embedder' } | { __typename?: 'F' } | { __typename?: 'KnowledgeBase' } | { __typename?: 'LLM' } | { __typename?: 'Model' } | { __typename?: 'ModelService' } | { __typename?: 'RayCluster' } | { __typename?: 'VersionedDataset', name: string, namespace: string, displayName?: string | null, description?: string | null, syncStatus?: string | null, released: number, dataProcessStatus?: string | null, updateTimestamp?: any | null, version: string, files: { __typename?: 'PaginatedResult', totalCount: number } } | { __typename?: 'Worker' }> | null } } } | null };\n\nexport type CreateDatasetMutationVariables = Exact<{\n input?: InputMaybe<CreateDatasetInput>;\n}>;\n\n\nexport type CreateDatasetMutation = { __typename?: 'Mutation', Dataset?: { __typename?: 'DatasetMutation', createDataset: { __typename?: 'Dataset', name: string, displayName?: string | null, labels?: any | null } } | null };\n\nexport type UpdateDatasetMutationVariables = Exact<{\n input?: InputMaybe<UpdateDatasetInput>;\n}>;\n\n\nexport type UpdateDatasetMutation = { __typename?: 'Mutation', Dataset?: { __typename?: 'DatasetMutation', updateDataset: { __typename?: 'Dataset', name: string, displayName?: string | null, labels?: any | null } } | null };\n\nexport type DeleteDatasetsMutationVariables = Exact<{\n input?: InputMaybe<DeleteCommonInput>;\n}>;\n\n\nexport type DeleteDatasetsMutation = { __typename?: 'Mutation', Dataset?: { __typename?: 'DatasetMutation', deleteDatasets?: any | null } | null };\n\nexport type CreateDatasourceMutationVariables = Exact<{\n input: CreateDatasourceInput;\n}>;\n\n\nexport type CreateDatasourceMutation = { __typename?: 'Mutation', Datasource?: { __typename?: 'DatasourceMutation', createDatasource: { __typename?: 'Datasource', id?: string | null, name: string, namespace: string, creator?: string | null, displayName?: string | null, description?: string | null, creationTimestamp?: any | null, updateTimestamp?: any | null, status?: string | null, message?: string | null, endpoint?: { __typename?: 'Endpoint', url?: string | null, insecure?: boolean | null, authSecret?: { __typename?: 'TypedObjectReference', kind: string, name: string } | null } | null, oss?: { __typename?: 'Oss', bucket?: string | null, object?: string | null } | null } } | null };\n\nexport type UpdateDatasourceMutationVariables = Exact<{\n input?: InputMaybe<UpdateDatasourceInput>;\n}>;\n\n\nexport type UpdateDatasourceMutation = { __typename?: 'Mutation', Datasource?: { __typename?: 'DatasourceMutation', updateDatasource: { __typename?: 'Datasource', id?: string | null, name: string, namespace: string, creator?: string | null, displayName?: string | null, description?: string | null, creationTimestamp?: any | null, updateTimestamp?: any | null, status?: string | null, message?: string | null, endpoint?: { __typename?: 'Endpoint', url?: string | null, insecure?: boolean | null, authSecret?: { __typename?: 'TypedObjectReference', kind: string, name: string } | null } | null, oss?: { __typename?: 'Oss', bucket?: string | null, object?: string | null } | null } } | null };\n\nexport type DeleteDatasourcesMutationVariables = Exact<{\n input: DeleteCommonInput;\n}>;\n\n\nexport type DeleteDatasourcesMutation = { __typename?: 'Mutation', Datasource?: { __typename?: 'DatasourceMutation', deleteDatasources?: any | null } | null };\n\nexport type ListDatasourcesQueryVariables = Exact<{\n input: ListCommonInput;\n}>;\n\n\nexport type ListDatasourcesQuery = { __typename?: 'Query', Datasource?: { __typename?: 'DatasourceQuery', listDatasources: { __typename?: 'PaginatedResult', totalCount: number, hasNextPage: boolean, nodes?: Array<{ __typename: 'ApplicationMetadata' } | { __typename: 'Dataset' } | { __typename: 'Datasource', id?: string | null, name: string, namespace: string, creator?: string | null, displayName?: string | null, description?: string | null, creationTimestamp?: any | null, updateTimestamp?: any | null, status?: string | null, message?: string | null, endpoint?: { __typename?: 'Endpoint', url?: string | null, insecure?: boolean | null, authSecret?: { __typename?: 'TypedObjectReference', kind: string, name: string } | null } | null, oss?: { __typename?: 'Oss', bucket?: string | null, object?: string | null } | null } | { __typename: 'Embedder' } | { __typename: 'F' } | { __typename: 'KnowledgeBase' } | { __typename: 'LLM' } | { __typename: 'Model' } | { __typename: 'ModelService' } | { __typename: 'RayCluster' } | { __typename: 'VersionedDataset' } | { __typename: 'Worker' }> | null } } | null };\n\nexport type GetDatasourceQueryVariables = Exact<{\n name: Scalars['String']['input'];\n namespace: Scalars['String']['input'];\n}>;\n\n\nexport type GetDatasourceQuery = { __typename?: 'Query', Datasource?: { __typename?: 'DatasourceQuery', getDatasource: { __typename?: 'Datasource', id?: string | null, name: string, namespace: string, creator?: string | null, displayName?: string | null, description?: string | null, creationTimestamp?: any | null, updateTimestamp?: any | null, status?: string | null, message?: string | null, endpoint?: { __typename?: 'Endpoint', url?: string | null, insecure?: boolean | null, authSecret?: { __typename?: 'TypedObjectReference', kind: string, name: string } | null } | null, oss?: { __typename?: 'Oss', bucket?: string | null, object?: string | null } | null } } | null };\n\nexport type CheckDatasourceQueryVariables = Exact<{\n input: CreateDatasourceInput;\n}>;\n\n\nexport type CheckDatasourceQuery = { __typename?: 'Query', Datasource?: { __typename?: 'DatasourceQuery', checkDatasource: { __typename?: 'Datasource', name: string, namespace: string, status?: string | null, message?: string | null } } | null };\n\nexport type CreateEmbedderMutationVariables = Exact<{\n input: CreateEmbedderInput;\n}>;\n\n\nexport type CreateEmbedderMutation = { __typename?: 'Mutation', Embedder?: { __typename?: 'EmbedderMutation', createEmbedder: { __typename?: 'Embedder', name: string, namespace: string, labels?: any | null, annotations?: any | null, displayName?: string | null, description?: string | null, type?: string | null, baseUrl: string, models?: Array<string> | null, provider?: string | null, updateTimestamp?: any | null, status?: string | null, message?: string | null } } | null };\n\nexport type UpdateEmbedderMutationVariables = Exact<{\n input?: InputMaybe<UpdateEmbedderInput>;\n}>;\n\n\nexport type UpdateEmbedderMutation = { __typename?: 'Mutation', Embedder?: { __typename?: 'EmbedderMutation', updateEmbedder: { __typename?: 'Embedder', name: string, namespace: string, labels?: any | null, annotations?: any | null, displayName?: string | null, description?: string | null, baseUrl: string, models?: Array<string> | null, provider?: string | null, type?: string | null, updateTimestamp?: any | null, status?: string | null, message?: string | null } } | null };\n\nexport type DeleteEmbeddersMutationVariables = Exact<{\n input: DeleteCommonInput;\n}>;\n\n\nexport type DeleteEmbeddersMutation = { __typename?: 'Mutation', Embedder?: { __typename?: 'EmbedderMutation', deleteEmbedders?: any | null } | null };\n\nexport type ListEmbeddersQueryVariables = Exact<{\n input: ListCommonInput;\n}>;\n\n\nexport type ListEmbeddersQuery = { __typename?: 'Query', Embedder?: { __typename?: 'EmbedderQuery', listEmbedders: { __typename?: 'PaginatedResult', totalCount: number, hasNextPage: boolean, nodes?: Array<{ __typename?: 'ApplicationMetadata' } | { __typename?: 'Dataset' } | { __typename?: 'Datasource' } | { __typename?: 'Embedder', name: string, namespace: string, labels?: any | null, annotations?: any | null, displayName?: string | null, description?: string | null, baseUrl: string, models?: Array<string> | null, provider?: string | null, type?: string | null, updateTimestamp?: any | null, status?: string | null, message?: string | null } | { __typename?: 'F' } | { __typename?: 'KnowledgeBase' } | { __typename?: 'LLM' } | { __typename?: 'Model' } | { __typename?: 'ModelService' } | { __typename?: 'RayCluster' } | { __typename?: 'VersionedDataset' } | { __typename?: 'Worker' }> | null } } | null };\n\nexport type GetEmbedderQueryVariables = Exact<{\n name: Scalars['String']['input'];\n namespace: Scalars['String']['input'];\n}>;\n\n\nexport type GetEmbedderQuery = { __typename?: 'Query', Embedder?: { __typename?: 'EmbedderQuery', getEmbedder: { __typename?: 'Embedder', name: string, namespace: string, labels?: any | null, annotations?: any | null, displayName?: string | null, description?: string | null, baseUrl: string, models?: Array<string> | null, provider?: string | null, type?: string | null, updateTimestamp?: any | null } } | null };\n\nexport type ListKnowledgeBasesQueryVariables = Exact<{\n input: ListKnowledgeBaseInput;\n}>;\n\n\nexport type ListKnowledgeBasesQuery = { __typename?: 'Query', KnowledgeBase?: { __typename?: 'KnowledgeBaseQuery', listKnowledgeBases: { __typename?: 'PaginatedResult', totalCount: number, hasNextPage: boolean, nodes?: Array<{ __typename?: 'ApplicationMetadata' } | { __typename?: 'Dataset' } | { __typename?: 'Datasource' } | { __typename?: 'Embedder' } | { __typename?: 'F' } | { __typename?: 'KnowledgeBase', id?: string | null, creationTimestamp?: any | null, name: string, namespace: string, labels?: any | null, annotations?: any | null, creator?: string | null, displayName?: string | null, description?: string | null, status?: string | null, reason?: string | null, message?: string | null, updateTimestamp?: any | null, embedder?: { __typename?: 'TypedObjectReference', kind: string, name: string } | null, vectorStore?: { __typename?: 'TypedObjectReference', kind: string, name: string } | null, fileGroupDetails?: Array<{ __typename?: 'filegroupdetail', source?: { __typename?: 'TypedObjectReference', kind: string, name: string } | null, filedetails?: Array<{ __typename?: 'filedetail', path: string, phase: string, fileType: string, count: string, size: string, updateTimestamp?: any | null } | null> | null } | null> | null } | { __typename?: 'LLM' } | { __typename?: 'Model' } | { __typename?: 'ModelService' } | { __typename?: 'RayCluster' } | { __typename?: 'VersionedDataset' } | { __typename?: 'Worker' }> | null } } | null };\n\nexport type GetKnowledgeBaseQueryVariables = Exact<{\n name: Scalars['String']['input'];\n namespace: Scalars['String']['input'];\n}>;\n\n\nexport type GetKnowledgeBaseQuery = { __typename?: 'Query', KnowledgeBase?: { __typename?: 'KnowledgeBaseQuery', getKnowledgeBase: { __typename?: 'KnowledgeBase', id?: string | null, creationTimestamp?: any | null, name: string, namespace: string, labels?: any | null, annotations?: any | null, creator?: string | null, displayName?: string | null, description?: string | null, status?: string | null, reason?: string | null, message?: string | null, updateTimestamp?: any | null, embedder?: { __typename?: 'TypedObjectReference', kind: string, name: string } | null, vectorStore?: { __typename?: 'TypedObjectReference', kind: string, name: string } | null, fileGroupDetails?: Array<{ __typename?: 'filegroupdetail', source?: { __typename?: 'TypedObjectReference', kind: string, name: string } | null, filedetails?: Array<{ __typename?: 'filedetail', path: string, phase: string, fileType: string, count: string, size: string, updateTimestamp?: any | null } | null> | null } | null> | null } } | null };\n\nexport type CreateKnowledgeBaseMutationVariables = Exact<{\n input: CreateKnowledgeBaseInput;\n}>;\n\n\nexport type CreateKnowledgeBaseMutation = { __typename?: 'Mutation', KnowledgeBase?: { __typename?: 'KnowledgeBaseMutation', createKnowledgeBase: { __typename?: 'KnowledgeBase', id?: string | null, creationTimestamp?: any | null, name: string, namespace: string, labels?: any | null, annotations?: any | null, creator?: string | null, displayName?: string | null, description?: string | null, status?: string | null, reason?: string | null, message?: string | null, updateTimestamp?: any | null, embedder?: { __typename?: 'TypedObjectReference', kind: string, name: string } | null, vectorStore?: { __typename?: 'TypedObjectReference', kind: string, name: string } | null, fileGroupDetails?: Array<{ __typename?: 'filegroupdetail', source?: { __typename?: 'TypedObjectReference', kind: string, name: string } | null, filedetails?: Array<{ __typename?: 'filedetail', path: string, phase: string, fileType: string, count: string, size: string, updateTimestamp?: any | null } | null> | null } | null> | null } } | null };\n\nexport type UpdateKnowledgeBaseMutationVariables = Exact<{\n input?: InputMaybe<UpdateKnowledgeBaseInput>;\n}>;\n\n\nexport type UpdateKnowledgeBaseMutation = { __typename?: 'Mutation', KnowledgeBase?: { __typename?: 'KnowledgeBaseMutation', updateKnowledgeBase: { __typename?: 'KnowledgeBase', id?: string | null, creationTimestamp?: any | null, name: string, namespace: string, labels?: any | null, annotations?: any | null, creator?: string | null, displayName?: string | null, description?: string | null, status?: string | null, reason?: string | null, message?: string | null, updateTimestamp?: any | null, embedder?: { __typename?: 'TypedObjectReference', kind: string, name: string } | null, vectorStore?: { __typename?: 'TypedObjectReference', kind: string, name: string } | null, fileGroupDetails?: Array<{ __typename?: 'filegroupdetail', source?: { __typename?: 'TypedObjectReference', kind: string, name: string } | null, filedetails?: Array<{ __typename?: 'filedetail', path: string, phase: string, fileType: string, count: string, size: string, updateTimestamp?: any | null } | null> | null } | null> | null } } | null };\n\nexport type DeleteKnowledgeBaseMutationVariables = Exact<{\n input?: InputMaybe<DeleteCommonInput>;\n}>;\n\n\nexport type DeleteKnowledgeBaseMutation = { __typename?: 'Mutation', KnowledgeBase?: { __typename?: 'KnowledgeBaseMutation', deleteKnowledgeBase?: any | null } | null };\n\nexport type ListLlMsQueryVariables = Exact<{\n input: ListCommonInput;\n}>;\n\n\nexport type ListLlMsQuery = { __typename?: 'Query', LLM?: { __typename?: 'LLMQuery', listLLMs: { __typename?: 'PaginatedResult', totalCount: number, hasNextPage: boolean, nodes?: Array<{ __typename?: 'ApplicationMetadata' } | { __typename?: 'Dataset' } | { __typename?: 'Datasource' } | { __typename?: 'Embedder' } | { __typename?: 'F' } | { __typename?: 'KnowledgeBase' } | { __typename?: 'LLM', name: string, namespace: string, labels?: any | null, annotations?: any | null, displayName?: string | null, description?: string | null, baseUrl: string, models?: Array<string> | null, provider?: string | null, type?: string | null, updateTimestamp?: any | null, status?: string | null, message?: string | null } | { __typename?: 'Model' } | { __typename?: 'ModelService' } | { __typename?: 'RayCluster' } | { __typename?: 'VersionedDataset' } | { __typename?: 'Worker' }> | null } } | null };\n\nexport type GetLlmQueryVariables = Exact<{\n name: Scalars['String']['input'];\n namespace: Scalars['String']['input'];\n}>;\n\n\nexport type GetLlmQuery = { __typename?: 'Query', LLM?: { __typename?: 'LLMQuery', getLLM: { __typename?: 'LLM', name: string, namespace: string, labels?: any | null, annotations?: any | null, displayName?: string | null, description?: string | null, baseUrl: string, models?: Array<string> | null, provider?: string | null, type?: string | null, updateTimestamp?: any | null, status?: string | null, message?: string | null } } | null };\n\nexport type ListModelsQueryVariables = Exact<{\n input: ListModelInput;\n filesInput?: InputMaybe<FileFilter>;\n}>;\n\n\nexport type ListModelsQuery = { __typename?: 'Query', Model?: { __typename?: 'ModelQuery', listModels: { __typename?: 'PaginatedResult', totalCount: number, hasNextPage: boolean, nodes?: Array<{ __typename: 'ApplicationMetadata' } | { __typename: 'Dataset' } | { __typename: 'Datasource' } | { __typename: 'Embedder' } | { __typename: 'F' } | { __typename: 'KnowledgeBase' } | { __typename: 'LLM' } | { __typename: 'Model', id?: string | null, creationTimestamp?: any | null, name: string, namespace: string, systemModel?: boolean | null, labels?: any | null, annotations?: any | null, creator?: string | null, displayName?: string | null, description?: string | null, status?: string | null, message?: string | null, types: string, updateTimestamp?: any | null, files: { __typename?: 'PaginatedResult', totalCount: number, hasNextPage: boolean, nodes?: Array<{ __typename?: 'ApplicationMetadata' } | { __typename?: 'Dataset' } | { __typename?: 'Datasource' } | { __typename?: 'Embedder' } | { __typename?: 'F', path: string, time?: any | null, fileType: string, count?: string | null, size?: string | null, creationTimestamp?: any | null } | { __typename?: 'KnowledgeBase' } | { __typename?: 'LLM' } | { __typename?: 'Model' } | { __typename?: 'ModelService' } | { __typename?: 'RayCluster' } | { __typename?: 'VersionedDataset' } | { __typename?: 'Worker' }> | null } } | { __typename: 'ModelService' } | { __typename: 'RayCluster' } | { __typename: 'VersionedDataset' } | { __typename: 'Worker' }> | null } } | null };\n\nexport type GetModelQueryVariables = Exact<{\n name: Scalars['String']['input'];\n namespace: Scalars['String']['input'];\n filesInput?: InputMaybe<FileFilter>;\n}>;\n\n\nexport type GetModelQuery = { __typename?: 'Query', Model?: { __typename?: 'ModelQuery', getModel: { __typename?: 'Model', id?: string | null, creationTimestamp?: any | null, name: string, namespace: string, systemModel?: boolean | null, labels?: any | null, annotations?: any | null, creator?: string | null, displayName?: string | null, description?: string | null, status?: string | null, message?: string | null, types: string, updateTimestamp?: any | null, files: { __typename?: 'PaginatedResult', totalCount: number, hasNextPage: boolean, nodes?: Array<{ __typename?: 'ApplicationMetadata' } | { __typename?: 'Dataset' } | { __typename?: 'Datasource' } | { __typename?: 'Embedder' } | { __typename?: 'F', path: string, time?: any | null, fileType: string, count?: string | null, size?: string | null, creationTimestamp?: any | null } | { __typename?: 'KnowledgeBase' } | { __typename?: 'LLM' } | { __typename?: 'Model' } | { __typename?: 'ModelService' } | { __typename?: 'RayCluster' } | { __typename?: 'VersionedDataset' } | { __typename?: 'Worker' }> | null } } } | null };\n\nexport type CreateModelMutationVariables = Exact<{\n input: CreateModelInput;\n}>;\n\n\nexport type CreateModelMutation = { __typename?: 'Mutation', Model?: { __typename?: 'ModelMutation', createModel: { __typename?: 'Model', id?: string | null, creationTimestamp?: any | null, name: string, namespace: string, systemModel?: boolean | null, labels?: any | null, annotations?: any | null, creator?: string | null, displayName?: string | null, description?: string | null, status?: string | null, message?: string | null, types: string, updateTimestamp?: any | null } } | null };\n\nexport type UpdateModelMutationVariables = Exact<{\n input?: InputMaybe<UpdateModelInput>;\n}>;\n\n\nexport type UpdateModelMutation = { __typename?: 'Mutation', Model?: { __typename?: 'ModelMutation', updateModel: { __typename?: 'Model', id?: string | null, creationTimestamp?: any | null, name: string, namespace: string, systemModel?: boolean | null, labels?: any | null, annotations?: any | null, creator?: string | null, displayName?: string | null, description?: string | null, status?: string | null, message?: string | null, types: string, updateTimestamp?: any | null } } | null };\n\nexport type DeleteModelsMutationVariables = Exact<{\n input?: InputMaybe<DeleteCommonInput>;\n}>;\n\n\nexport type DeleteModelsMutation = { __typename?: 'Mutation', Model?: { __typename?: 'ModelMutation', deleteModels?: any | null } | null };\n\nexport type CreateModelServiceMutationVariables = Exact<{\n input: CreateModelServiceInput;\n}>;\n\n\nexport type CreateModelServiceMutation = { __typename?: 'Mutation', ModelService?: { __typename?: 'ModelServiceMutation', createModelService: { __typename?: 'ModelService', id?: string | null, name: string, namespace: string, labels?: any | null, annotations?: any | null, creator?: string | null, displayName?: string | null, description?: string | null, providerType?: string | null, types?: string | null, apiType?: string | null, llmModels?: Array<string> | null, embeddingModels?: Array<string> | null, creationTimestamp?: any | null, updateTimestamp?: any | null, status?: string | null, message?: string | null, baseUrl: string } } | null };\n\nexport type UpdateModelServiceMutationVariables = Exact<{\n input?: InputMaybe<UpdateModelServiceInput>;\n}>;\n\n\nexport type UpdateModelServiceMutation = { __typename?: 'Mutation', ModelService?: { __typename?: 'ModelServiceMutation', updateModelService: { __typename?: 'ModelService', id?: string | null, name: string, namespace: string, labels?: any | null, annotations?: any | null, creator?: string | null, displayName?: string | null, description?: string | null, providerType?: string | null, types?: string | null, apiType?: string | null, llmModels?: Array<string> | null, embeddingModels?: Array<string> | null, creationTimestamp?: any | null, updateTimestamp?: any | null, status?: string | null, message?: string | null, baseUrl: string } } | null };\n\nexport type DeleteModelServicesMutationVariables = Exact<{\n input?: InputMaybe<DeleteCommonInput>;\n}>;\n\n\nexport type DeleteModelServicesMutation = { __typename?: 'Mutation', ModelService?: { __typename?: 'ModelServiceMutation', deleteModelService?: any | null } | null };\n\nexport type GetModelServiceQueryVariables = Exact<{\n name: Scalars['String']['input'];\n namespace: Scalars['String']['input'];\n}>;\n\n\nexport type GetModelServiceQuery = { __typename?: 'Query', ModelService?: { __typename?: 'ModelServiceQuery', getModelService: { __typename?: 'ModelService', id?: string | null, name: string, namespace: string, labels?: any | null, annotations?: any | null, creator?: string | null, displayName?: string | null, description?: string | null, providerType?: string | null, types?: string | null, apiType?: string | null, llmModels?: Array<string> | null, embeddingModels?: Array<string> | null, creationTimestamp?: any | null, updateTimestamp?: any | null, status?: string | null, message?: string | null, baseUrl: string } } | null };\n\nexport type ListModelServicesQueryVariables = Exact<{\n input?: InputMaybe<ListModelServiceInput>;\n}>;\n\n\nexport type ListModelServicesQuery = { __typename?: 'Query', ModelService?: { __typename?: 'ModelServiceQuery', listModelServices: { __typename?: 'PaginatedResult', totalCount: number, hasNextPage: boolean, nodes?: Array<{ __typename: 'ApplicationMetadata' } | { __typename: 'Dataset' } | { __typename: 'Datasource' } | { __typename: 'Embedder' } | { __typename: 'F' } | { __typename: 'KnowledgeBase' } | { __typename: 'LLM' } | { __typename: 'Model' } | { __typename: 'ModelService', id?: string | null, name: string, namespace: string, labels?: any | null, annotations?: any | null, creator?: string | null, displayName?: string | null, description?: string | null, providerType?: string | null, types?: string | null, apiType?: string | null, llmModels?: Array<string> | null, embeddingModels?: Array<string> | null, creationTimestamp?: any | null, updateTimestamp?: any | null, status?: string | null, message?: string | null, baseUrl: string } | { __typename: 'RayCluster' } | { __typename: 'VersionedDataset' } | { __typename: 'Worker' }> | null } } | null };\n\nexport type CheckModelServiceQueryVariables = Exact<{\n input: CreateModelServiceInput;\n}>;\n\n\nexport type CheckModelServiceQuery = { __typename?: 'Query', ModelService?: { __typename?: 'ModelServiceQuery', checkModelService: { __typename?: 'ModelService', name: string, namespace: string, apiType?: string | null, description?: string | null } } | null };\n\nexport type ListRayClustersQueryVariables = Exact<{\n input: ListCommonInput;\n}>;\n\n\nexport type ListRayClustersQuery = { __typename?: 'Query', RayCluster?: { __typename?: 'RayClusterQuery', listRayClusters: { __typename?: 'PaginatedResult', totalCount: number, hasNextPage: boolean, nodes?: Array<{ __typename: 'ApplicationMetadata' } | { __typename: 'Dataset' } | { __typename: 'Datasource' } | { __typename: 'Embedder' } | { __typename: 'F' } | { __typename: 'KnowledgeBase' } | { __typename: 'LLM' } | { __typename: 'Model' } | { __typename: 'ModelService' } | { __typename: 'RayCluster', index: number, name: string, headAddress?: string | null, dashboardHost?: string | null, pythonVersion?: string | null } | { __typename: 'VersionedDataset' } | { __typename: 'Worker' }> | null } } | null };\n\nexport type CreateVersionedDatasetMutationVariables = Exact<{\n input: CreateVersionedDatasetInput;\n}>;\n\n\nexport type CreateVersionedDatasetMutation = { __typename?: 'Mutation', VersionedDataset?: { __typename?: 'VersionedDatasetMutation', createVersionedDataset: { __typename?: 'VersionedDataset', name: string, displayName?: string | null, creator?: string | null, namespace: string, version: string, updateTimestamp?: any | null, creationTimestamp: any, released: number, syncStatus?: string | null, dataProcessStatus?: string | null } } | null };\n\nexport type UpdateVersionedDatasetMutationVariables = Exact<{\n input: UpdateVersionedDatasetInput;\n}>;\n\n\nexport type UpdateVersionedDatasetMutation = { __typename?: 'Mutation', VersionedDataset?: { __typename?: 'VersionedDatasetMutation', updateVersionedDataset: { __typename?: 'VersionedDataset', name: string, displayName?: string | null } } | null };\n\nexport type DeleteVersionedDatasetsMutationVariables = Exact<{\n input: DeleteVersionedDatasetInput;\n}>;\n\n\nexport type DeleteVersionedDatasetsMutation = { __typename?: 'Mutation', VersionedDataset?: { __typename?: 'VersionedDatasetMutation', deleteVersionedDatasets?: any | null } | null };\n\nexport type GetVersionedDatasetQueryVariables = Exact<{\n name: Scalars['String']['input'];\n namespace: Scalars['String']['input'];\n fileInput?: InputMaybe<FileFilter>;\n}>;\n\n\nexport type GetVersionedDatasetQuery = { __typename?: 'Query', VersionedDataset?: { __typename?: 'VersionedDatasetQuery', getVersionedDataset: { __typename?: 'VersionedDataset', id?: string | null, name: string, displayName?: string | null, description?: string | null, creator?: string | null, namespace: string, version: string, updateTimestamp?: any | null, creationTimestamp: any, released: number, syncStatus?: string | null, syncMsg?: string | null, dataProcessStatus?: string | null, dataProcessMsg?: string | null, files: { __typename?: 'PaginatedResult', totalCount: number, hasNextPage: boolean, nodes?: Array<{ __typename?: 'ApplicationMetadata' } | { __typename?: 'Dataset' } | { __typename?: 'Datasource' } | { __typename?: 'Embedder' } | { __typename?: 'F', path: string, time?: any | null, fileType: string, count?: string | null, size?: string | null, creationTimestamp?: any | null } | { __typename?: 'KnowledgeBase' } | { __typename?: 'LLM' } | { __typename?: 'Model' } | { __typename?: 'ModelService' } | { __typename?: 'RayCluster' } | { __typename?: 'VersionedDataset' } | { __typename?: 'Worker' }> | null } } } | null };\n\nexport type ListVersionedDatasetsQueryVariables = Exact<{\n input: ListVersionedDatasetInput;\n fileInput?: InputMaybe<FileFilter>;\n}>;\n\n\nexport type ListVersionedDatasetsQuery = { __typename?: 'Query', VersionedDataset?: { __typename?: 'VersionedDatasetQuery', listVersionedDatasets: { __typename?: 'PaginatedResult', totalCount: number, hasNextPage: boolean, nodes?: Array<{ __typename?: 'ApplicationMetadata' } | { __typename?: 'Dataset' } | { __typename?: 'Datasource' } | { __typename?: 'Embedder' } | { __typename?: 'F' } | { __typename?: 'KnowledgeBase' } | { __typename?: 'LLM' } | { __typename?: 'Model' } | { __typename?: 'ModelService' } | { __typename?: 'RayCluster' } | { __typename?: 'VersionedDataset', id?: string | null, name: string, displayName?: string | null, description?: string | null, creator?: string | null, namespace: string, version: string, updateTimestamp?: any | null, creationTimestamp: any, released: number, syncStatus?: string | null, syncMsg?: string | null, dataProcessStatus?: string | null, dataProcessMsg?: string | null, files: { __typename?: 'PaginatedResult', totalCount: number, hasNextPage: boolean, nodes?: Array<{ __typename?: 'ApplicationMetadata' } | { __typename?: 'Dataset' } | { __typename?: 'Datasource' } | { __typename?: 'Embedder' } | { __typename?: 'F', path: string, time?: any | null, fileType: string, count?: string | null, size?: string | null, creationTimestamp?: any | null } | { __typename?: 'KnowledgeBase' } | { __typename?: 'LLM' } | { __typename?: 'Model' } | { __typename?: 'ModelService' } | { __typename?: 'RayCluster' } | { __typename?: 'VersionedDataset' } | { __typename?: 'Worker' }> | null } } | { __typename?: 'Worker' }> | null } } | null };\n\nexport type ListWorkersQueryVariables = Exact<{\n input: ListWorkerInput;\n}>;\n\n\nexport type ListWorkersQuery = { __typename?: 'Query', Worker?: { __typename?: 'WorkerQuery', listWorkers: { __typename?: 'PaginatedResult', totalCount: number, hasNextPage: boolean, nodes?: Array<{ __typename: 'ApplicationMetadata' } | { __typename: 'Dataset' } | { __typename: 'Datasource' } | { __typename: 'Embedder' } | { __typename: 'F' } | { __typename: 'KnowledgeBase' } | { __typename: 'LLM' } | { __typename: 'Model' } | { __typename: 'ModelService' } | { __typename: 'RayCluster' } | { __typename: 'VersionedDataset' } | { __typename: 'Worker', id?: string | null, creationTimestamp?: any | null, name: string, namespace: string, labels?: any | null, annotations?: any | null, creator?: string | null, displayName?: string | null, description?: string | null, status?: string | null, message?: string | null, updateTimestamp?: any | null, type?: string | null, api?: string | null, modelTypes: string, replicas?: string | null, additionalEnvs?: any | null, model: { __typename?: 'TypedObjectReference', name: string, namespace?: string | null, kind: string, apiGroup?: string | null }, resources: { __typename?: 'Resources', cpu?: string | null, memory?: string | null, nvidiaGPU?: string | null }, matchExpressions?: Array<{ __typename?: 'NodeSelectorRequirement', key: string, operator: string, values: Array<string> } | null> | null }> | null } } | null };\n\nexport type GetWorkerQueryVariables = Exact<{\n name: Scalars['String']['input'];\n namespace: Scalars['String']['input'];\n}>;\n\n\nexport type GetWorkerQuery = { __typename?: 'Query', Worker?: { __typename?: 'WorkerQuery', getWorker: { __typename?: 'Worker', id?: string | null, creationTimestamp?: any | null, name: string, namespace: string, labels?: any | null, annotations?: any | null, creator?: string | null, displayName?: string | null, description?: string | null, type?: string | null, status?: string | null, message?: string | null, updateTimestamp?: any | null, api?: string | null, modelTypes: string, replicas?: string | null, additionalEnvs?: any | null, model: { __typename?: 'TypedObjectReference', name: string, namespace?: string | null, kind: string, apiGroup?: string | null }, resources: { __typename?: 'Resources', cpu?: string | null, memory?: string | null, nvidiaGPU?: string | null }, matchExpressions?: Array<{ __typename?: 'NodeSelectorRequirement', key: string, operator: string, values: Array<string> } | null> | null } } | null };\n\nexport type CreateWorkerMutationVariables = Exact<{\n input: CreateWorkerInput;\n}>;\n\n\nexport type CreateWorkerMutation = { __typename?: 'Mutation', Worker?: { __typename?: 'WorkerMutation', createWorker: { __typename?: 'Worker', id?: string | null, creationTimestamp?: any | null, name: string, namespace: string, labels?: any | null, annotations?: any | null, creator?: string | null, displayName?: string | null, description?: string | null, type?: string | null, status?: string | null, message?: string | null, updateTimestamp?: any | null, api?: string | null, modelTypes: string, replicas?: string | null, additionalEnvs?: any | null, model: { __typename?: 'TypedObjectReference', name: string, namespace?: string | null, kind: string, apiGroup?: string | null }, resources: { __typename?: 'Resources', cpu?: string | null, memory?: string | null, nvidiaGPU?: string | null }, matchExpressions?: Array<{ __typename?: 'NodeSelectorRequirement', key: string, operator: string, values: Array<string> } | null> | null } } | null };\n\nexport type UpdateWorkerMutationVariables = Exact<{\n input?: InputMaybe<UpdateWorkerInput>;\n}>;\n\n\nexport type UpdateWorkerMutation = { __typename?: 'Mutation', Worker?: { __typename?: 'WorkerMutation', updateWorker: { __typename?: 'Worker', id?: string | null, creationTimestamp?: any | null, name: string, namespace: string, labels?: any | null, annotations?: any | null, creator?: string | null, displayName?: string | null, description?: string | null, type?: string | null, status?: string | null, message?: string | null, updateTimestamp?: any | null, replicas?: string | null, api?: string | null, modelTypes: string, additionalEnvs?: any | null, resources: { __typename?: 'Resources', cpu?: string | null, memory?: string | null, nvidiaGPU?: string | null }, model: { __typename?: 'TypedObjectReference', name: string, namespace?: string | null, kind: string, apiGroup?: string | null }, matchExpressions?: Array<{ __typename?: 'NodeSelectorRequirement', key: string, operator: string, values: Array<string> } | null> | null } } | null };\n\nexport type DeleteWorkersMutationVariables = Exact<{\n input?: InputMaybe<DeleteCommonInput>;\n}>;\n\n\nexport type DeleteWorkersMutation = { __typename?: 'Mutation', Worker?: { __typename?: 'WorkerMutation', deleteWorkers?: any | null } | null };\n\n\nexport const CreateApplicationDocument = gql`\n mutation createApplication($input: CreateApplicationMetadataInput!) {\n Application {\n createApplication(input: $input) {\n name\n namespace\n id\n labels\n annotations\n displayName\n description\n icon\n }\n }\n}\n `;\nexport const UpdateApplicationDocument = gql`\n mutation updateApplication($input: UpdateApplicationMetadataInput!) {\n Application {\n updateApplication(input: $input) {\n name\n namespace\n id\n labels\n annotations\n displayName\n description\n icon\n isPublic\n }\n }\n}\n `;\nexport const DeleteApplicationDocument = gql`\n mutation deleteApplication($input: DeleteCommonInput!) {\n Application {\n deleteApplication(input: $input)\n }\n}\n `;\nexport const UpdateApplicationConfigDocument = gql`\n mutation updateApplicationConfig($input: UpdateApplicationConfigInput!) {\n Application {\n updateApplicationConfig(input: $input) {\n metadata {\n name\n namespace\n id\n labels\n annotations\n displayName\n description\n icon\n creator\n creationTimestamp\n updateTimestamp\n isPublic\n status\n }\n prologue\n model\n llm\n temperature\n maxLength\n conversionWindowSize\n knowledgebase\n scoreThreshold\n numDocuments\n docNullReturn\n userPrompt\n showNextGuid\n }\n }\n}\n `;\nexport const GetApplicationDocument = gql`\n query getApplication($name: String!, $namespace: String!) {\n Application {\n getApplication(name: $name, namespace: $namespace) {\n metadata {\n name\n namespace\n id\n labels\n annotations\n displayName\n description\n icon\n creator\n creationTimestamp\n updateTimestamp\n isPublic\n status\n }\n prologue\n model\n llm\n temperature\n maxLength\n conversionWindowSize\n knowledgebase\n scoreThreshold\n numDocuments\n docNullReturn\n userPrompt\n showNextGuid\n }\n }\n}\n `;\nexport const ListApplicationsDocument = gql`\n query listApplications($input: ListCommonInput!) {\n Application {\n listApplicationMetadata(input: $input) {\n page\n pageSize\n totalCount\n hasNextPage\n nodes {\n ... on ApplicationMetadata {\n name\n namespace\n id\n labels\n annotations\n displayName\n description\n icon\n isPublic\n }\n }\n }\n }\n}\n `;\nexport const AllDataProcessListByPageDocument = gql`\n query allDataProcessListByPage($input: AllDataProcessListByPageInput!) {\n dataProcess {\n allDataProcessListByPage(input: $input) {\n status\n data {\n id\n name\n status\n pre_data_set_name\n pre_data_set_version\n post_data_set_name\n post_data_set_version\n start_datetime\n error_msg\n }\n message\n }\n }\n}\n `;\nexport const AllDataProcessListByCountDocument = gql`\n query allDataProcessListByCount($input: AllDataProcessListByCountInput!) {\n dataProcess {\n allDataProcessListByCount(input: $input) {\n status\n data\n message\n }\n }\n}\n `;\nexport const DataProcessSupportTypeDocument = gql`\n query dataProcessSupportType {\n dataProcess {\n dataProcessSupportType {\n status\n data {\n name\n description\n children {\n name\n zh_name\n description\n enable\n }\n }\n message\n }\n }\n}\n `;\nexport const DataProcessDetailsDocument = gql`\n query dataProcessDetails($input: DataProcessDetailsInput) {\n dataProcess {\n dataProcessDetails(input: $input) {\n status\n data {\n id\n status\n name\n file_type\n pre_dataset_name\n pre_dataset_version\n post_dataset_name\n post_dataset_version\n file_num\n start_time\n end_time\n creator\n error_msg\n config {\n name\n description\n file_num\n status\n children {\n name\n enable\n zh_name\n description\n llm_config {\n name\n namespace\n model\n temperature\n top_p\n max_tokens\n prompt_template\n provider\n }\n preview {\n file_name\n content {\n pre\n post\n }\n }\n file_progress {\n id\n file_name\n status\n start_time\n end_time\n progress\n }\n }\n }\n }\n message\n }\n }\n}\n `;\nexport const CheckDataProcessTaskNameDocument = gql`\n query checkDataProcessTaskName($input: CheckDataProcessTaskNameInput) {\n dataProcess {\n checkDataProcessTaskName(input: $input) {\n status\n data\n message\n }\n }\n}\n `;\nexport const GetLogInfoDocument = gql`\n query getLogInfo($input: DataProcessDetailsInput) {\n dataProcess {\n getLogInfo(input: $input) {\n status\n data\n message\n }\n }\n}\n `;\nexport const DataProcessLogInfoByFileNameDocument = gql`\n query dataProcessLogInfoByFileName($input: DataProcessFileLogInput) {\n dataProcess {\n dataProcessLogInfoByFileName(input: $input) {\n status\n data\n message\n }\n }\n}\n `;\nexport const DataProcessRetryDocument = gql`\n query dataProcessRetry($input: DataProcessRetryInput) {\n dataProcess {\n dataProcessRetry(input: $input) {\n status\n data\n message\n }\n }\n}\n `;\nexport const CreateDataProcessTaskDocument = gql`\n mutation createDataProcessTask($input: AddDataProcessInput) {\n dataProcess {\n createDataProcessTask(input: $input) {\n status\n data\n message\n }\n }\n}\n `;\nexport const DeleteDataProcessTaskDocument = gql`\n mutation deleteDataProcessTask($input: DeleteDataProcessInput) {\n dataProcess {\n deleteDataProcessTask(input: $input) {\n status\n data\n message\n }\n }\n}\n `;\nexport const ListDatasetsDocument = gql`\n query listDatasets($input: ListDatasetInput, $versionsInput: ListVersionedDatasetInput!, $filesInput: FileFilter) {\n Dataset {\n listDatasets(input: $input) {\n totalCount\n hasNextPage\n nodes {\n ... on Dataset {\n name\n namespace\n creator\n displayName\n updateTimestamp\n creationTimestamp\n contentType\n field\n versions(input: $versionsInput) {\n totalCount\n hasNextPage\n nodes {\n ... on VersionedDataset {\n name\n namespace\n displayName\n description\n syncStatus\n released\n dataProcessStatus\n updateTimestamp\n version\n files(input: $filesInput) {\n totalCount\n }\n }\n }\n }\n }\n }\n }\n }\n}\n `;\nexport const GetDatasetDocument = gql`\n query getDataset($name: String!, $namespace: String!, $versionsInput: ListVersionedDatasetInput!, $filesInput: FileFilter) {\n Dataset {\n getDataset(name: $name, namespace: $namespace) {\n name\n namespace\n creator\n displayName\n updateTimestamp\n creationTimestamp\n contentType\n field\n versions(input: $versionsInput) {\n totalCount\n hasNextPage\n nodes {\n ... on VersionedDataset {\n name\n namespace\n displayName\n description\n syncStatus\n released\n dataProcessStatus\n updateTimestamp\n version\n files(input: $filesInput) {\n totalCount\n }\n }\n }\n }\n }\n }\n}\n `;\nexport const CreateDatasetDocument = gql`\n mutation createDataset($input: CreateDatasetInput) {\n Dataset {\n createDataset(input: $input) {\n name\n displayName\n labels\n }\n }\n}\n `;\nexport const UpdateDatasetDocument = gql`\n mutation updateDataset($input: UpdateDatasetInput) {\n Dataset {\n updateDataset(input: $input) {\n name\n displayName\n labels\n }\n }\n}\n `;\nexport const DeleteDatasetsDocument = gql`\n mutation deleteDatasets($input: DeleteCommonInput) {\n Dataset {\n deleteDatasets(input: $input)\n }\n}\n `;\nexport const CreateDatasourceDocument = gql`\n mutation createDatasource($input: CreateDatasourceInput!) {\n Datasource {\n createDatasource(input: $input) {\n id\n name\n namespace\n creator\n displayName\n description\n endpoint {\n url\n authSecret {\n kind\n name\n }\n insecure\n }\n oss {\n bucket\n object\n }\n creationTimestamp\n updateTimestamp\n status\n message\n }\n }\n}\n `;\nexport const UpdateDatasourceDocument = gql`\n mutation updateDatasource($input: UpdateDatasourceInput) {\n Datasource {\n updateDatasource(input: $input) {\n id\n name\n namespace\n creator\n displayName\n description\n endpoint {\n url\n authSecret {\n kind\n name\n }\n insecure\n }\n oss {\n bucket\n object\n }\n creationTimestamp\n updateTimestamp\n status\n message\n }\n }\n}\n `;\nexport const DeleteDatasourcesDocument = gql`\n mutation deleteDatasources($input: DeleteCommonInput!) {\n Datasource {\n deleteDatasources(input: $input)\n }\n}\n `;\nexport const ListDatasourcesDocument = gql`\n query listDatasources($input: ListCommonInput!) {\n Datasource {\n listDatasources(input: $input) {\n totalCount\n hasNextPage\n nodes {\n __typename\n ... on Datasource {\n id\n name\n namespace\n creator\n displayName\n description\n endpoint {\n url\n authSecret {\n kind\n name\n }\n insecure\n }\n oss {\n bucket\n object\n }\n creationTimestamp\n updateTimestamp\n status\n message\n }\n }\n }\n }\n}\n `;\nexport const GetDatasourceDocument = gql`\n query getDatasource($name: String!, $namespace: String!) {\n Datasource {\n getDatasource(name: $name, namespace: $namespace) {\n id\n name\n namespace\n creator\n displayName\n description\n endpoint {\n url\n authSecret {\n kind\n name\n }\n insecure\n }\n oss {\n bucket\n object\n }\n creationTimestamp\n updateTimestamp\n status\n message\n }\n }\n}\n `;\nexport const CheckDatasourceDocument = gql`\n query checkDatasource($input: CreateDatasourceInput!) {\n Datasource {\n checkDatasource(input: $input) {\n name\n namespace\n status\n message\n }\n }\n}\n `;\nexport const CreateEmbedderDocument = gql`\n mutation createEmbedder($input: CreateEmbedderInput!) {\n Embedder {\n createEmbedder(input: $input) {\n name\n namespace\n labels\n annotations\n displayName\n description\n type\n baseUrl\n models\n provider\n updateTimestamp\n status\n message\n }\n }\n}\n `;\nexport const UpdateEmbedderDocument = gql`\n mutation updateEmbedder($input: UpdateEmbedderInput) {\n Embedder {\n updateEmbedder(input: $input) {\n name\n namespace\n labels\n annotations\n displayName\n description\n baseUrl\n models\n provider\n type\n updateTimestamp\n status\n message\n }\n }\n}\n `;\nexport const DeleteEmbeddersDocument = gql`\n mutation deleteEmbedders($input: DeleteCommonInput!) {\n Embedder {\n deleteEmbedders(input: $input)\n }\n}\n `;\nexport const ListEmbeddersDocument = gql`\n query listEmbedders($input: ListCommonInput!) {\n Embedder {\n listEmbedders(input: $input) {\n totalCount\n hasNextPage\n nodes {\n ... on Embedder {\n name\n namespace\n labels\n annotations\n displayName\n description\n baseUrl\n models\n provider\n type\n updateTimestamp\n status\n message\n }\n }\n }\n }\n}\n `;\nexport const GetEmbedderDocument = gql`\n query getEmbedder($name: String!, $namespace: String!) {\n Embedder {\n getEmbedder(name: $name, namespace: $namespace) {\n name\n namespace\n labels\n annotations\n displayName\n description\n baseUrl\n models\n provider\n type\n updateTimestamp\n }\n }\n}\n `;\nexport const ListKnowledgeBasesDocument = gql`\n query listKnowledgeBases($input: ListKnowledgeBaseInput!) {\n KnowledgeBase {\n listKnowledgeBases(input: $input) {\n totalCount\n hasNextPage\n nodes {\n ... on KnowledgeBase {\n id\n creationTimestamp\n name\n namespace\n labels\n annotations\n creator\n displayName\n description\n status\n reason\n message\n updateTimestamp\n embedder {\n kind\n name\n }\n vectorStore {\n kind\n name\n }\n fileGroupDetails {\n source {\n kind\n name\n }\n filedetails {\n path\n phase\n fileType\n count\n size\n updateTimestamp\n }\n }\n }\n }\n }\n }\n}\n `;\nexport const GetKnowledgeBaseDocument = gql`\n query getKnowledgeBase($name: String!, $namespace: String!) {\n KnowledgeBase {\n getKnowledgeBase(name: $name, namespace: $namespace) {\n id\n creationTimestamp\n name\n namespace\n labels\n annotations\n creator\n displayName\n description\n status\n reason\n message\n updateTimestamp\n embedder {\n kind\n name\n }\n vectorStore {\n kind\n name\n }\n fileGroupDetails {\n source {\n kind\n name\n }\n filedetails {\n path\n phase\n fileType\n count\n size\n updateTimestamp\n }\n }\n }\n }\n}\n `;\nexport const CreateKnowledgeBaseDocument = gql`\n mutation createKnowledgeBase($input: CreateKnowledgeBaseInput!) {\n KnowledgeBase {\n createKnowledgeBase(input: $input) {\n id\n creationTimestamp\n name\n namespace\n labels\n annotations\n creator\n displayName\n description\n status\n reason\n message\n updateTimestamp\n embedder {\n kind\n name\n }\n vectorStore {\n kind\n name\n }\n fileGroupDetails {\n source {\n kind\n name\n }\n filedetails {\n path\n phase\n fileType\n count\n size\n updateTimestamp\n }\n }\n }\n }\n}\n `;\nexport const UpdateKnowledgeBaseDocument = gql`\n mutation updateKnowledgeBase($input: UpdateKnowledgeBaseInput) {\n KnowledgeBase {\n updateKnowledgeBase(input: $input) {\n id\n creationTimestamp\n name\n namespace\n labels\n annotations\n creator\n displayName\n description\n status\n reason\n message\n updateTimestamp\n embedder {\n kind\n name\n }\n vectorStore {\n kind\n name\n }\n fileGroupDetails {\n source {\n kind\n name\n }\n filedetails {\n path\n phase\n fileType\n count\n size\n updateTimestamp\n }\n }\n }\n }\n}\n `;\nexport const DeleteKnowledgeBaseDocument = gql`\n mutation deleteKnowledgeBase($input: DeleteCommonInput) {\n KnowledgeBase {\n deleteKnowledgeBase(input: $input)\n }\n}\n `;\nexport const ListLlMsDocument = gql`\n query listLLMs($input: ListCommonInput!) {\n LLM {\n listLLMs(input: $input) {\n totalCount\n hasNextPage\n nodes {\n ... on LLM {\n name\n namespace\n labels\n annotations\n displayName\n description\n baseUrl\n models\n provider\n type\n updateTimestamp\n status\n message\n }\n }\n }\n }\n}\n `;\nexport const GetLlmDocument = gql`\n query getLLM($name: String!, $namespace: String!) {\n LLM {\n getLLM(name: $name, namespace: $namespace) {\n name\n namespace\n labels\n annotations\n displayName\n description\n baseUrl\n models\n provider\n type\n updateTimestamp\n status\n message\n }\n }\n}\n `;\nexport const ListModelsDocument = gql`\n query listModels($input: ListModelInput!, $filesInput: FileFilter) {\n Model {\n listModels(input: $input) {\n totalCount\n hasNextPage\n nodes {\n __typename\n ... on Model {\n id\n creationTimestamp\n name\n namespace\n systemModel\n labels\n annotations\n creator\n displayName\n description\n status\n message\n types\n updateTimestamp\n files(input: $filesInput) {\n totalCount\n hasNextPage\n nodes {\n ... on F {\n path\n time\n fileType\n count\n size\n creationTimestamp\n }\n }\n }\n }\n }\n }\n }\n}\n `;\nexport const GetModelDocument = gql`\n query getModel($name: String!, $namespace: String!, $filesInput: FileFilter) {\n Model {\n getModel(name: $name, namespace: $namespace) {\n id\n creationTimestamp\n name\n namespace\n systemModel\n labels\n annotations\n creator\n displayName\n description\n status\n message\n types\n updateTimestamp\n files(input: $filesInput) {\n totalCount\n hasNextPage\n nodes {\n ... on F {\n path\n time\n fileType\n count\n size\n creationTimestamp\n }\n }\n }\n }\n }\n}\n `;\nexport const CreateModelDocument = gql`\n mutation createModel($input: CreateModelInput!) {\n Model {\n createModel(input: $input) {\n id\n creationTimestamp\n name\n namespace\n systemModel\n labels\n annotations\n creator\n displayName\n description\n status\n message\n types\n updateTimestamp\n }\n }\n}\n `;\nexport const UpdateModelDocument = gql`\n mutation updateModel($input: UpdateModelInput) {\n Model {\n updateModel(input: $input) {\n id\n creationTimestamp\n name\n namespace\n systemModel\n labels\n annotations\n creator\n displayName\n description\n status\n message\n types\n updateTimestamp\n }\n }\n}\n `;\nexport const DeleteModelsDocument = gql`\n mutation deleteModels($input: DeleteCommonInput) {\n Model {\n deleteModels(input: $input)\n }\n}\n `;\nexport const CreateModelServiceDocument = gql`\n mutation createModelService($input: CreateModelServiceInput!) {\n ModelService {\n createModelService(input: $input) {\n id\n name\n namespace\n labels\n annotations\n creator\n displayName\n description\n providerType\n types\n apiType\n llmModels\n embeddingModels\n creationTimestamp\n updateTimestamp\n status\n message\n baseUrl\n }\n }\n}\n `;\nexport const UpdateModelServiceDocument = gql`\n mutation updateModelService($input: UpdateModelServiceInput) {\n ModelService {\n updateModelService(input: $input) {\n id\n name\n namespace\n labels\n annotations\n creator\n displayName\n description\n providerType\n types\n apiType\n llmModels\n embeddingModels\n creationTimestamp\n updateTimestamp\n status\n message\n baseUrl\n }\n }\n}\n `;\nexport const DeleteModelServicesDocument = gql`\n mutation deleteModelServices($input: DeleteCommonInput) {\n ModelService {\n deleteModelService(input: $input)\n }\n}\n `;\nexport const GetModelServiceDocument = gql`\n query getModelService($name: String!, $namespace: String!) {\n ModelService {\n getModelService(name: $name, namespace: $namespace) {\n id\n name\n namespace\n labels\n annotations\n creator\n displayName\n description\n providerType\n types\n apiType\n llmModels\n embeddingModels\n creationTimestamp\n updateTimestamp\n status\n message\n baseUrl\n }\n }\n}\n `;\nexport const ListModelServicesDocument = gql`\n query listModelServices($input: ListModelServiceInput) {\n ModelService {\n listModelServices(input: $input) {\n totalCount\n hasNextPage\n nodes {\n __typename\n ... on ModelService {\n id\n name\n namespace\n labels\n annotations\n creator\n displayName\n description\n providerType\n types\n apiType\n llmModels\n embeddingModels\n creationTimestamp\n updateTimestamp\n status\n message\n baseUrl\n }\n }\n }\n }\n}\n `;\nexport const CheckModelServiceDocument = gql`\n query checkModelService($input: CreateModelServiceInput!) {\n ModelService {\n checkModelService(input: $input) {\n name\n namespace\n apiType\n description\n }\n }\n}\n `;\nexport const ListRayClustersDocument = gql`\n query listRayClusters($input: ListCommonInput!) {\n RayCluster {\n listRayClusters(input: $input) {\n totalCount\n hasNextPage\n nodes {\n __typename\n ... on RayCluster {\n index\n name\n headAddress\n dashboardHost\n pythonVersion\n }\n }\n }\n }\n}\n `;\nexport const CreateVersionedDatasetDocument = gql`\n mutation createVersionedDataset($input: CreateVersionedDatasetInput!) {\n VersionedDataset {\n createVersionedDataset(input: $input) {\n name\n displayName\n creator\n namespace\n version\n updateTimestamp\n creationTimestamp\n released\n syncStatus\n dataProcessStatus\n }\n }\n}\n `;\nexport const UpdateVersionedDatasetDocument = gql`\n mutation updateVersionedDataset($input: UpdateVersionedDatasetInput!) {\n VersionedDataset {\n updateVersionedDataset(input: $input) {\n name\n displayName\n }\n }\n}\n `;\nexport const DeleteVersionedDatasetsDocument = gql`\n mutation deleteVersionedDatasets($input: DeleteVersionedDatasetInput!) {\n VersionedDataset {\n deleteVersionedDatasets(input: $input)\n }\n}\n `;\nexport const GetVersionedDatasetDocument = gql`\n query getVersionedDataset($name: String!, $namespace: String!, $fileInput: FileFilter) {\n VersionedDataset {\n getVersionedDataset(name: $name, namespace: $namespace) {\n id\n name\n displayName\n description\n creator\n namespace\n version\n updateTimestamp\n creationTimestamp\n released\n syncStatus\n syncMsg\n dataProcessStatus\n dataProcessMsg\n files(input: $fileInput) {\n totalCount\n hasNextPage\n nodes {\n ... on F {\n path\n time\n fileType\n count\n size\n creationTimestamp\n }\n }\n }\n }\n }\n}\n `;\nexport const ListVersionedDatasetsDocument = gql`\n query listVersionedDatasets($input: ListVersionedDatasetInput!, $fileInput: FileFilter) {\n VersionedDataset {\n listVersionedDatasets(input: $input) {\n totalCount\n hasNextPage\n nodes {\n ... on VersionedDataset {\n id\n name\n displayName\n description\n creator\n namespace\n version\n updateTimestamp\n creationTimestamp\n released\n syncStatus\n syncMsg\n dataProcessStatus\n dataProcessMsg\n files(input: $fileInput) {\n totalCount\n hasNextPage\n nodes {\n ... on F {\n path\n time\n fileType\n count\n size\n creationTimestamp\n }\n }\n }\n }\n }\n }\n }\n}\n `;\nexport const ListWorkersDocument = gql`\n query listWorkers($input: ListWorkerInput!) {\n Worker {\n listWorkers(input: $input) {\n totalCount\n hasNextPage\n nodes {\n __typename\n ... on Worker {\n id\n creationTimestamp\n name\n namespace\n labels\n annotations\n creator\n displayName\n description\n status\n message\n updateTimestamp\n type\n model {\n name\n namespace\n kind\n apiGroup\n }\n api\n modelTypes\n replicas\n resources {\n cpu\n memory\n nvidiaGPU\n }\n matchExpressions {\n key\n operator\n values\n }\n additionalEnvs\n }\n }\n }\n }\n}\n `;\nexport const GetWorkerDocument = gql`\n query getWorker($name: String!, $namespace: String!) {\n Worker {\n getWorker(name: $name, namespace: $namespace) {\n id\n creationTimestamp\n name\n namespace\n labels\n annotations\n creator\n displayName\n description\n type\n status\n message\n updateTimestamp\n model {\n name\n namespace\n kind\n apiGroup\n }\n api\n modelTypes\n replicas\n resources {\n cpu\n memory\n nvidiaGPU\n }\n matchExpressions {\n key\n operator\n values\n }\n additionalEnvs\n }\n }\n}\n `;\nexport const CreateWorkerDocument = gql`\n mutation createWorker($input: CreateWorkerInput!) {\n Worker {\n createWorker(input: $input) {\n id\n creationTimestamp\n name\n namespace\n labels\n annotations\n creator\n displayName\n description\n type\n status\n message\n updateTimestamp\n model {\n name\n namespace\n kind\n apiGroup\n }\n api\n modelTypes\n replicas\n resources {\n cpu\n memory\n nvidiaGPU\n }\n matchExpressions {\n key\n operator\n values\n }\n additionalEnvs\n }\n }\n}\n `;\nexport const UpdateWorkerDocument = gql`\n mutation updateWorker($input: UpdateWorkerInput) {\n Worker {\n updateWorker(input: $input) {\n id\n creationTimestamp\n name\n namespace\n labels\n annotations\n creator\n displayName\n description\n type\n status\n message\n updateTimestamp\n replicas\n resources {\n cpu\n memory\n nvidiaGPU\n }\n api\n model {\n name\n namespace\n kind\n apiGroup\n }\n modelTypes\n matchExpressions {\n key\n operator\n values\n }\n additionalEnvs\n }\n }\n}\n `;\nexport const DeleteWorkersDocument = gql`\n mutation deleteWorkers($input: DeleteCommonInput) {\n Worker {\n deleteWorkers(input: $input)\n }\n}\n `;\n\nexport type SdkFunctionWrapper = <T>(action: (requestHeaders?:Record<string, string>) => Promise<T>, operationName: string, operationType?: string) => Promise<T>;\n\n\nconst defaultWrapper: SdkFunctionWrapper = (action, _operationName, _operationType) => action();\n\nexport function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper = defaultWrapper) {\n return {\n createApplication(variables: CreateApplicationMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<CreateApplicationMutation> {\n return withWrapper((wrappedRequestHeaders) => client.request<CreateApplicationMutation>(CreateApplicationDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'createApplication', 'mutation');\n },\n updateApplication(variables: UpdateApplicationMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<UpdateApplicationMutation> {\n return withWrapper((wrappedRequestHeaders) => client.request<UpdateApplicationMutation>(UpdateApplicationDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'updateApplication', 'mutation');\n },\n deleteApplication(variables: DeleteApplicationMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<DeleteApplicationMutation> {\n return withWrapper((wrappedRequestHeaders) => client.request<DeleteApplicationMutation>(DeleteApplicationDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'deleteApplication', 'mutation');\n },\n updateApplicationConfig(variables: UpdateApplicationConfigMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<UpdateApplicationConfigMutation> {\n return withWrapper((wrappedRequestHeaders) => client.request<UpdateApplicationConfigMutation>(UpdateApplicationConfigDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'updateApplicationConfig', 'mutation');\n },\n getApplication(variables: GetApplicationQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<GetApplicationQuery> {\n return withWrapper((wrappedRequestHeaders) => client.request<GetApplicationQuery>(GetApplicationDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'getApplication', 'query');\n },\n listApplications(variables: ListApplicationsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<ListApplicationsQuery> {\n return withWrapper((wrappedRequestHeaders) => client.request<ListApplicationsQuery>(ListApplicationsDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'listApplications', 'query');\n },\n allDataProcessListByPage(variables: AllDataProcessListByPageQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<AllDataProcessListByPageQuery> {\n return withWrapper((wrappedRequestHeaders) => client.request<AllDataProcessListByPageQuery>(AllDataProcessListByPageDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'allDataProcessListByPage', 'query');\n },\n allDataProcessListByCount(variables: AllDataProcessListByCountQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<AllDataProcessListByCountQuery> {\n return withWrapper((wrappedRequestHeaders) => client.request<AllDataProcessListByCountQuery>(AllDataProcessListByCountDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'allDataProcessListByCount', 'query');\n },\n dataProcessSupportType(variables?: DataProcessSupportTypeQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<DataProcessSupportTypeQuery> {\n return withWrapper((wrappedRequestHeaders) => client.request<DataProcessSupportTypeQuery>(DataProcessSupportTypeDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'dataProcessSupportType', 'query');\n },\n dataProcessDetails(variables?: DataProcessDetailsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<DataProcessDetailsQuery> {\n return withWrapper((wrappedRequestHeaders) => client.request<DataProcessDetailsQuery>(DataProcessDetailsDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'dataProcessDetails', 'query');\n },\n checkDataProcessTaskName(variables?: CheckDataProcessTaskNameQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<CheckDataProcessTaskNameQuery> {\n return withWrapper((wrappedRequestHeaders) => client.request<CheckDataProcessTaskNameQuery>(CheckDataProcessTaskNameDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'checkDataProcessTaskName', 'query');\n },\n getLogInfo(variables?: GetLogInfoQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<GetLogInfoQuery> {\n return withWrapper((wrappedRequestHeaders) => client.request<GetLogInfoQuery>(GetLogInfoDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'getLogInfo', 'query');\n },\n dataProcessLogInfoByFileName(variables?: DataProcessLogInfoByFileNameQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<DataProcessLogInfoByFileNameQuery> {\n return withWrapper((wrappedRequestHeaders) => client.request<DataProcessLogInfoByFileNameQuery>(DataProcessLogInfoByFileNameDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'dataProcessLogInfoByFileName', 'query');\n },\n dataProcessRetry(variables?: DataProcessRetryQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<DataProcessRetryQuery> {\n return withWrapper((wrappedRequestHeaders) => client.request<DataProcessRetryQuery>(DataProcessRetryDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'dataProcessRetry', 'query');\n },\n createDataProcessTask(variables?: CreateDataProcessTaskMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<CreateDataProcessTaskMutation> {\n return withWrapper((wrappedRequestHeaders) => client.request<CreateDataProcessTaskMutation>(CreateDataProcessTaskDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'createDataProcessTask', 'mutation');\n },\n deleteDataProcessTask(variables?: DeleteDataProcessTaskMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<DeleteDataProcessTaskMutation> {\n return withWrapper((wrappedRequestHeaders) => client.request<DeleteDataProcessTaskMutation>(DeleteDataProcessTaskDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'deleteDataProcessTask', 'mutation');\n },\n listDatasets(variables: ListDatasetsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<ListDatasetsQuery> {\n return withWrapper((wrappedRequestHeaders) => client.request<ListDatasetsQuery>(ListDatasetsDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'listDatasets', 'query');\n },\n getDataset(variables: GetDatasetQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<GetDatasetQuery> {\n return withWrapper((wrappedRequestHeaders) => client.request<GetDatasetQuery>(GetDatasetDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'getDataset', 'query');\n },\n createDataset(variables?: CreateDatasetMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<CreateDatasetMutation> {\n return withWrapper((wrappedRequestHeaders) => client.request<CreateDatasetMutation>(CreateDatasetDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'createDataset', 'mutation');\n },\n updateDataset(variables?: UpdateDatasetMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<UpdateDatasetMutation> {\n return withWrapper((wrappedRequestHeaders) => client.request<UpdateDatasetMutation>(UpdateDatasetDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'updateDataset', 'mutation');\n },\n deleteDatasets(variables?: DeleteDatasetsMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<DeleteDatasetsMutation> {\n return withWrapper((wrappedRequestHeaders) => client.request<DeleteDatasetsMutation>(DeleteDatasetsDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'deleteDatasets', 'mutation');\n },\n createDatasource(variables: CreateDatasourceMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<CreateDatasourceMutation> {\n return withWrapper((wrappedRequestHeaders) => client.request<CreateDatasourceMutation>(CreateDatasourceDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'createDatasource', 'mutation');\n },\n updateDatasource(variables?: UpdateDatasourceMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<UpdateDatasourceMutation> {\n return withWrapper((wrappedRequestHeaders) => client.request<UpdateDatasourceMutation>(UpdateDatasourceDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'updateDatasource', 'mutation');\n },\n deleteDatasources(variables: DeleteDatasourcesMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<DeleteDatasourcesMutation> {\n return withWrapper((wrappedRequestHeaders) => client.request<DeleteDatasourcesMutation>(DeleteDatasourcesDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'deleteDatasources', 'mutation');\n },\n listDatasources(variables: ListDatasourcesQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<ListDatasourcesQuery> {\n return withWrapper((wrappedRequestHeaders) => client.request<ListDatasourcesQuery>(ListDatasourcesDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'listDatasources', 'query');\n },\n getDatasource(variables: GetDatasourceQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<GetDatasourceQuery> {\n return withWrapper((wrappedRequestHeaders) => client.request<GetDatasourceQuery>(GetDatasourceDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'getDatasource', 'query');\n },\n checkDatasource(variables: CheckDatasourceQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<CheckDatasourceQuery> {\n return withWrapper((wrappedRequestHeaders) => client.request<CheckDatasourceQuery>(CheckDatasourceDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'checkDatasource', 'query');\n },\n createEmbedder(variables: CreateEmbedderMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<CreateEmbedderMutation> {\n return withWrapper((wrappedRequestHeaders) => client.request<CreateEmbedderMutation>(CreateEmbedderDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'createEmbedder', 'mutation');\n },\n updateEmbedder(variables?: UpdateEmbedderMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<UpdateEmbedderMutation> {\n return withWrapper((wrappedRequestHeaders) => client.request<UpdateEmbedderMutation>(UpdateEmbedderDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'updateEmbedder', 'mutation');\n },\n deleteEmbedders(variables: DeleteEmbeddersMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<DeleteEmbeddersMutation> {\n return withWrapper((wrappedRequestHeaders) => client.request<DeleteEmbeddersMutation>(DeleteEmbeddersDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'deleteEmbedders', 'mutation');\n },\n listEmbedders(variables: ListEmbeddersQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<ListEmbeddersQuery> {\n return withWrapper((wrappedRequestHeaders) => client.request<ListEmbeddersQuery>(ListEmbeddersDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'listEmbedders', 'query');\n },\n getEmbedder(variables: GetEmbedderQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<GetEmbedderQuery> {\n return withWrapper((wrappedRequestHeaders) => client.request<GetEmbedderQuery>(GetEmbedderDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'getEmbedder', 'query');\n },\n listKnowledgeBases(variables: ListKnowledgeBasesQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<ListKnowledgeBasesQuery> {\n return withWrapper((wrappedRequestHeaders) => client.request<ListKnowledgeBasesQuery>(ListKnowledgeBasesDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'listKnowledgeBases', 'query');\n },\n getKnowledgeBase(variables: GetKnowledgeBaseQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<GetKnowledgeBaseQuery> {\n return withWrapper((wrappedRequestHeaders) => client.request<GetKnowledgeBaseQuery>(GetKnowledgeBaseDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'getKnowledgeBase', 'query');\n },\n createKnowledgeBase(variables: CreateKnowledgeBaseMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<CreateKnowledgeBaseMutation> {\n return withWrapper((wrappedRequestHeaders) => client.request<CreateKnowledgeBaseMutation>(CreateKnowledgeBaseDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'createKnowledgeBase', 'mutation');\n },\n updateKnowledgeBase(variables?: UpdateKnowledgeBaseMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<UpdateKnowledgeBaseMutation> {\n return withWrapper((wrappedRequestHeaders) => client.request<UpdateKnowledgeBaseMutation>(UpdateKnowledgeBaseDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'updateKnowledgeBase', 'mutation');\n },\n deleteKnowledgeBase(variables?: DeleteKnowledgeBaseMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<DeleteKnowledgeBaseMutation> {\n return withWrapper((wrappedRequestHeaders) => client.request<DeleteKnowledgeBaseMutation>(DeleteKnowledgeBaseDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'deleteKnowledgeBase', 'mutation');\n },\n listLLMs(variables: ListLlMsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<ListLlMsQuery> {\n return withWrapper((wrappedRequestHeaders) => client.request<ListLlMsQuery>(ListLlMsDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'listLLMs', 'query');\n },\n getLLM(variables: GetLlmQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<GetLlmQuery> {\n return withWrapper((wrappedRequestHeaders) => client.request<GetLlmQuery>(GetLlmDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'getLLM', 'query');\n },\n listModels(variables: ListModelsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<ListModelsQuery> {\n return withWrapper((wrappedRequestHeaders) => client.request<ListModelsQuery>(ListModelsDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'listModels', 'query');\n },\n getModel(variables: GetModelQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<GetModelQuery> {\n return withWrapper((wrappedRequestHeaders) => client.request<GetModelQuery>(GetModelDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'getModel', 'query');\n },\n createModel(variables: CreateModelMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<CreateModelMutation> {\n return withWrapper((wrappedRequestHeaders) => client.request<CreateModelMutation>(CreateModelDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'createModel', 'mutation');\n },\n updateModel(variables?: UpdateModelMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<UpdateModelMutation> {\n return withWrapper((wrappedRequestHeaders) => client.request<UpdateModelMutation>(UpdateModelDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'updateModel', 'mutation');\n },\n deleteModels(variables?: DeleteModelsMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<DeleteModelsMutation> {\n return withWrapper((wrappedRequestHeaders) => client.request<DeleteModelsMutation>(DeleteModelsDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'deleteModels', 'mutation');\n },\n createModelService(variables: CreateModelServiceMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<CreateModelServiceMutation> {\n return withWrapper((wrappedRequestHeaders) => client.request<CreateModelServiceMutation>(CreateModelServiceDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'createModelService', 'mutation');\n },\n updateModelService(variables?: UpdateModelServiceMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<UpdateModelServiceMutation> {\n return withWrapper((wrappedRequestHeaders) => client.request<UpdateModelServiceMutation>(UpdateModelServiceDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'updateModelService', 'mutation');\n },\n deleteModelServices(variables?: DeleteModelServicesMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<DeleteModelServicesMutation> {\n return withWrapper((wrappedRequestHeaders) => client.request<DeleteModelServicesMutation>(DeleteModelServicesDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'deleteModelServices', 'mutation');\n },\n getModelService(variables: GetModelServiceQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<GetModelServiceQuery> {\n return withWrapper((wrappedRequestHeaders) => client.request<GetModelServiceQuery>(GetModelServiceDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'getModelService', 'query');\n },\n listModelServices(variables?: ListModelServicesQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<ListModelServicesQuery> {\n return withWrapper((wrappedRequestHeaders) => client.request<ListModelServicesQuery>(ListModelServicesDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'listModelServices', 'query');\n },\n checkModelService(variables: CheckModelServiceQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<CheckModelServiceQuery> {\n return withWrapper((wrappedRequestHeaders) => client.request<CheckModelServiceQuery>(CheckModelServiceDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'checkModelService', 'query');\n },\n listRayClusters(variables: ListRayClustersQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<ListRayClustersQuery> {\n return withWrapper((wrappedRequestHeaders) => client.request<ListRayClustersQuery>(ListRayClustersDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'listRayClusters', 'query');\n },\n createVersionedDataset(variables: CreateVersionedDatasetMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<CreateVersionedDatasetMutation> {\n return withWrapper((wrappedRequestHeaders) => client.request<CreateVersionedDatasetMutation>(CreateVersionedDatasetDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'createVersionedDataset', 'mutation');\n },\n updateVersionedDataset(variables: UpdateVersionedDatasetMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<UpdateVersionedDatasetMutation> {\n return withWrapper((wrappedRequestHeaders) => client.request<UpdateVersionedDatasetMutation>(UpdateVersionedDatasetDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'updateVersionedDataset', 'mutation');\n },\n deleteVersionedDatasets(variables: DeleteVersionedDatasetsMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<DeleteVersionedDatasetsMutation> {\n return withWrapper((wrappedRequestHeaders) => client.request<DeleteVersionedDatasetsMutation>(DeleteVersionedDatasetsDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'deleteVersionedDatasets', 'mutation');\n },\n getVersionedDataset(variables: GetVersionedDatasetQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<GetVersionedDatasetQuery> {\n return withWrapper((wrappedRequestHeaders) => client.request<GetVersionedDatasetQuery>(GetVersionedDatasetDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'getVersionedDataset', 'query');\n },\n listVersionedDatasets(variables: ListVersionedDatasetsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<ListVersionedDatasetsQuery> {\n return withWrapper((wrappedRequestHeaders) => client.request<ListVersionedDatasetsQuery>(ListVersionedDatasetsDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'listVersionedDatasets', 'query');\n },\n listWorkers(variables: ListWorkersQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<ListWorkersQuery> {\n return withWrapper((wrappedRequestHeaders) => client.request<ListWorkersQuery>(ListWorkersDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'listWorkers', 'query');\n },\n getWorker(variables: GetWorkerQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<GetWorkerQuery> {\n return withWrapper((wrappedRequestHeaders) => client.request<GetWorkerQuery>(GetWorkerDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'getWorker', 'query');\n },\n createWorker(variables: CreateWorkerMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<CreateWorkerMutation> {\n return withWrapper((wrappedRequestHeaders) => client.request<CreateWorkerMutation>(CreateWorkerDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'createWorker', 'mutation');\n },\n updateWorker(variables?: UpdateWorkerMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<UpdateWorkerMutation> {\n return withWrapper((wrappedRequestHeaders) => client.request<UpdateWorkerMutation>(UpdateWorkerDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'updateWorker', 'mutation');\n },\n deleteWorkers(variables?: DeleteWorkersMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<DeleteWorkersMutation> {\n return withWrapper((wrappedRequestHeaders) => client.request<DeleteWorkersMutation>(DeleteWorkersDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'deleteWorkers', 'mutation');\n }\n };\n}\nexport type Sdk = ReturnType<typeof getSdk>;\nexport function getSdkWithHooks(client: GraphQLClient, withWrapper: SdkFunctionWrapper = defaultWrapper) {\n const sdk = getSdk(client, withWrapper);\n const genKey = <V extends Record<string, unknown> = Record<string, unknown>>(name: string, object: V = {} as V): SWRKeyInterface => [name, ...Object.keys(object).sort().map(key => object[key])];\n return {\n ...sdk,\n useGetApplication(variables: GetApplicationQueryVariables, config?: SWRConfigInterface<GetApplicationQuery, ClientError>) {\n return useSWR<GetApplicationQuery, ClientError>(genKey<GetApplicationQueryVariables>('GetApplication', variables), () => sdk.getApplication(variables), config);\n },\n useListApplications(variables: ListApplicationsQueryVariables, config?: SWRConfigInterface<ListApplicationsQuery, ClientError>) {\n return useSWR<ListApplicationsQuery, ClientError>(genKey<ListApplicationsQueryVariables>('ListApplications', variables), () => sdk.listApplications(variables), config);\n },\n useAllDataProcessListByPage(variables: AllDataProcessListByPageQueryVariables, config?: SWRConfigInterface<AllDataProcessListByPageQuery, ClientError>) {\n return useSWR<AllDataProcessListByPageQuery, ClientError>(genKey<AllDataProcessListByPageQueryVariables>('AllDataProcessListByPage', variables), () => sdk.allDataProcessListByPage(variables), config);\n },\n useAllDataProcessListByCount(variables: AllDataProcessListByCountQueryVariables, config?: SWRConfigInterface<AllDataProcessListByCountQuery, ClientError>) {\n return useSWR<AllDataProcessListByCountQuery, ClientError>(genKey<AllDataProcessListByCountQueryVariables>('AllDataProcessListByCount', variables), () => sdk.allDataProcessListByCount(variables), config);\n },\n useDataProcessSupportType(variables?: DataProcessSupportTypeQueryVariables, config?: SWRConfigInterface<DataProcessSupportTypeQuery, ClientError>) {\n return useSWR<DataProcessSupportTypeQuery, ClientError>(genKey<DataProcessSupportTypeQueryVariables>('DataProcessSupportType', variables), () => sdk.dataProcessSupportType(variables), config);\n },\n useDataProcessDetails(variables?: DataProcessDetailsQueryVariables, config?: SWRConfigInterface<DataProcessDetailsQuery, ClientError>) {\n return useSWR<DataProcessDetailsQuery, ClientError>(genKey<DataProcessDetailsQueryVariables>('DataProcessDetails', variables), () => sdk.dataProcessDetails(variables), config);\n },\n useCheckDataProcessTaskName(variables?: CheckDataProcessTaskNameQueryVariables, config?: SWRConfigInterface<CheckDataProcessTaskNameQuery, ClientError>) {\n return useSWR<CheckDataProcessTaskNameQuery, ClientError>(genKey<CheckDataProcessTaskNameQueryVariables>('CheckDataProcessTaskName', variables), () => sdk.checkDataProcessTaskName(variables), config);\n },\n useGetLogInfo(variables?: GetLogInfoQueryVariables, config?: SWRConfigInterface<GetLogInfoQuery, ClientError>) {\n return useSWR<GetLogInfoQuery, ClientError>(genKey<GetLogInfoQueryVariables>('GetLogInfo', variables), () => sdk.getLogInfo(variables), config);\n },\n useDataProcessLogInfoByFileName(variables?: DataProcessLogInfoByFileNameQueryVariables, config?: SWRConfigInterface<DataProcessLogInfoByFileNameQuery, ClientError>) {\n return useSWR<DataProcessLogInfoByFileNameQuery, ClientError>(genKey<DataProcessLogInfoByFileNameQueryVariables>('DataProcessLogInfoByFileName', variables), () => sdk.dataProcessLogInfoByFileName(variables), config);\n },\n useDataProcessRetry(variables?: DataProcessRetryQueryVariables, config?: SWRConfigInterface<DataProcessRetryQuery, ClientError>) {\n return useSWR<DataProcessRetryQuery, ClientError>(genKey<DataProcessRetryQueryVariables>('DataProcessRetry', variables), () => sdk.dataProcessRetry(variables), config);\n },\n useListDatasets(variables: ListDatasetsQueryVariables, config?: SWRConfigInterface<ListDatasetsQuery, ClientError>) {\n return useSWR<ListDatasetsQuery, ClientError>(genKey<ListDatasetsQueryVariables>('ListDatasets', variables), () => sdk.listDatasets(variables), config);\n },\n useGetDataset(variables: GetDatasetQueryVariables, config?: SWRConfigInterface<GetDatasetQuery, ClientError>) {\n return useSWR<GetDatasetQuery, ClientError>(genKey<GetDatasetQueryVariables>('GetDataset', variables), () => sdk.getDataset(variables), config);\n },\n useListDatasources(variables: ListDatasourcesQueryVariables, config?: SWRConfigInterface<ListDatasourcesQuery, ClientError>) {\n return useSWR<ListDatasourcesQuery, ClientError>(genKey<ListDatasourcesQueryVariables>('ListDatasources', variables), () => sdk.listDatasources(variables), config);\n },\n useGetDatasource(variables: GetDatasourceQueryVariables, config?: SWRConfigInterface<GetDatasourceQuery, ClientError>) {\n return useSWR<GetDatasourceQuery, ClientError>(genKey<GetDatasourceQueryVariables>('GetDatasource', variables), () => sdk.getDatasource(variables), config);\n },\n useCheckDatasource(variables: CheckDatasourceQueryVariables, config?: SWRConfigInterface<CheckDatasourceQuery, ClientError>) {\n return useSWR<CheckDatasourceQuery, ClientError>(genKey<CheckDatasourceQueryVariables>('CheckDatasource', variables), () => sdk.checkDatasource(variables), config);\n },\n useListEmbedders(variables: ListEmbeddersQueryVariables, config?: SWRConfigInterface<ListEmbeddersQuery, ClientError>) {\n return useSWR<ListEmbeddersQuery, ClientError>(genKey<ListEmbeddersQueryVariables>('ListEmbedders', variables), () => sdk.listEmbedders(variables), config);\n },\n useGetEmbedder(variables: GetEmbedderQueryVariables, config?: SWRConfigInterface<GetEmbedderQuery, ClientError>) {\n return useSWR<GetEmbedderQuery, ClientError>(genKey<GetEmbedderQueryVariables>('GetEmbedder', variables), () => sdk.getEmbedder(variables), config);\n },\n useListKnowledgeBases(variables: ListKnowledgeBasesQueryVariables, config?: SWRConfigInterface<ListKnowledgeBasesQuery, ClientError>) {\n return useSWR<ListKnowledgeBasesQuery, ClientError>(genKey<ListKnowledgeBasesQueryVariables>('ListKnowledgeBases', variables), () => sdk.listKnowledgeBases(variables), config);\n },\n useGetKnowledgeBase(variables: GetKnowledgeBaseQueryVariables, config?: SWRConfigInterface<GetKnowledgeBaseQuery, ClientError>) {\n return useSWR<GetKnowledgeBaseQuery, ClientError>(genKey<GetKnowledgeBaseQueryVariables>('GetKnowledgeBase', variables), () => sdk.getKnowledgeBase(variables), config);\n },\n useListLlMs(variables: ListLlMsQueryVariables, config?: SWRConfigInterface<ListLlMsQuery, ClientError>) {\n return useSWR<ListLlMsQuery, ClientError>(genKey<ListLlMsQueryVariables>('ListLlMs', variables), () => sdk.listLLMs(variables), config);\n },\n useGetLlm(variables: GetLlmQueryVariables, config?: SWRConfigInterface<GetLlmQuery, ClientError>) {\n return useSWR<GetLlmQuery, ClientError>(genKey<GetLlmQueryVariables>('GetLlm', variables), () => sdk.getLLM(variables), config);\n },\n useListModels(variables: ListModelsQueryVariables, config?: SWRConfigInterface<ListModelsQuery, ClientError>) {\n return useSWR<ListModelsQuery, ClientError>(genKey<ListModelsQueryVariables>('ListModels', variables), () => sdk.listModels(variables), config);\n },\n useGetModel(variables: GetModelQueryVariables, config?: SWRConfigInterface<GetModelQuery, ClientError>) {\n return useSWR<GetModelQuery, ClientError>(genKey<GetModelQueryVariables>('GetModel', variables), () => sdk.getModel(variables), config);\n },\n useGetModelService(variables: GetModelServiceQueryVariables, config?: SWRConfigInterface<GetModelServiceQuery, ClientError>) {\n return useSWR<GetModelServiceQuery, ClientError>(genKey<GetModelServiceQueryVariables>('GetModelService', variables), () => sdk.getModelService(variables), config);\n },\n useListModelServices(variables?: ListModelServicesQueryVariables, config?: SWRConfigInterface<ListModelServicesQuery, ClientError>) {\n return useSWR<ListModelServicesQuery, ClientError>(genKey<ListModelServicesQueryVariables>('ListModelServices', variables), () => sdk.listModelServices(variables), config);\n },\n useCheckModelService(variables: CheckModelServiceQueryVariables, config?: SWRConfigInterface<CheckModelServiceQuery, ClientError>) {\n return useSWR<CheckModelServiceQuery, ClientError>(genKey<CheckModelServiceQueryVariables>('CheckModelService', variables), () => sdk.checkModelService(variables), config);\n },\n useListRayClusters(variables: ListRayClustersQueryVariables, config?: SWRConfigInterface<ListRayClustersQuery, ClientError>) {\n return useSWR<ListRayClustersQuery, ClientError>(genKey<ListRayClustersQueryVariables>('ListRayClusters', variables), () => sdk.listRayClusters(variables), config);\n },\n useGetVersionedDataset(variables: GetVersionedDatasetQueryVariables, config?: SWRConfigInterface<GetVersionedDatasetQuery, ClientError>) {\n return useSWR<GetVersionedDatasetQuery, ClientError>(genKey<GetVersionedDatasetQueryVariables>('GetVersionedDataset', variables), () => sdk.getVersionedDataset(variables), config);\n },\n useListVersionedDatasets(variables: ListVersionedDatasetsQueryVariables, config?: SWRConfigInterface<ListVersionedDatasetsQuery, ClientError>) {\n return useSWR<ListVersionedDatasetsQuery, ClientError>(genKey<ListVersionedDatasetsQueryVariables>('ListVersionedDatasets', variables), () => sdk.listVersionedDatasets(variables), config);\n },\n useListWorkers(variables: ListWorkersQueryVariables, config?: SWRConfigInterface<ListWorkersQuery, ClientError>) {\n return useSWR<ListWorkersQuery, ClientError>(genKey<ListWorkersQueryVariables>('ListWorkers', variables), () => sdk.listWorkers(variables), config);\n },\n useGetWorker(variables: GetWorkerQueryVariables, config?: SWRConfigInterface<GetWorkerQuery, ClientError>) {\n return useSWR<GetWorkerQuery, ClientError>(genKey<GetWorkerQueryVariables>('GetWorker', variables), () => sdk.getWorker(variables), config);\n }\n };\n}\nexport type SdkWithHooks = ReturnType<typeof getSdkWithHooks>;","import { GraphQLClient } from \"graphql-request\";\nimport type {\n RequestConfig,\n RequestMiddleware,\n Response,\n} from \"graphql-request/src/types\";\nimport type { RequestInit } from \"graphql-request/src/types.dom\";\nimport qs from \"query-string\";\nimport { useMemo } from \"react\";\nimport { errorsHandler } from \"./errors\";\nimport { getSdk, getSdkWithHooks } from \"./sdk\";\n\nexport * from \"graphql-request\";\nexport * from \"./errors\";\nexport * from \"./sdk\";\n\nconst AUTH_DATA = \"authData\";\nconst getAuthData = () => {\n try {\n const authData = JSON.parse(window.localStorage.getItem(AUTH_DATA) || \"{}\");\n return authData;\n } catch (error) {\n console.warn(\"getAuthData failed\", error);\n return {};\n }\n};\n\nexport interface RequestOptions extends RequestInit {\n url: string;\n}\n\nexport const requestMiddleware: RequestMiddleware<any> = (request) => {\n const { url, operationName, ...otherRequest } = request;\n const [host, search] = url.split(\"?\");\n const query = qs.parse(search);\n // query 中增加操作名,便于定位问题\n if (operationName) {\n query.o = operationName;\n }\n const authData = getAuthData();\n const { token_type, id_token } = authData.token || {};\n const Authorization = token_type && id_token && `${token_type} ${id_token}`;\n return {\n url: `${host}?${qs.stringify(query)}`,\n operationName,\n credentials: \"include\",\n ...otherRequest,\n headers: Authorization\n ? { ...request.headers, Authorization }\n : { ...request.headers },\n };\n};\n\nexport const responseMiddleware = (response: Response<unknown> | Error) => {\n const errors: Error[] = response.errors || response.response?.errors;\n if (errors) {\n errorsHandler(errors);\n }\n};\n\nexport const client = new GraphQLClient(\"/kubeagi-apis/bff\", {\n requestMiddleware,\n responseMiddleware,\n});\nexport const sdk = getSdkWithHooks(client);\n\n/** 初始化 sdk 的配置项 */\ninterface SdkBaseOptions {\n /** api 地址,默认为 `'/bff'` */\n url?: string;\n /** 是否返回 hooks 相关函数,默认为 `false` */\n withHooks?: boolean;\n /** 请求配置项 */\n requestConfig?: RequestConfig;\n}\n\nexport type SdkOptions = Pick<SdkBaseOptions, \"url\" | \"requestConfig\">;\n\n/**\n * 初始化 GraphQL client 实例\n *\n * @param {string} url api 地址,默认为 `'/bff'`\n * @param {RequestConfig} [requestConfig] 请求配置项\n * @return {GraphQLClient} GraphQL client 实例\n */\nexport const initGraphQLClient = (\n url?: string,\n requestConfig?: RequestConfig,\n) => {\n if (!requestConfig) {\n requestConfig = {};\n }\n if (!requestConfig.requestMiddleware) {\n requestConfig.requestMiddleware = requestMiddleware;\n } else {\n requestConfig.requestMiddleware = async (request) => {\n const newReq = await requestConfig!.requestMiddleware!(request);\n return requestMiddleware(newReq);\n };\n }\n if (!requestConfig.responseMiddleware) {\n requestConfig.responseMiddleware = responseMiddleware;\n }\n return new GraphQLClient(url || endpoint, requestConfig);\n};\n\nconst initSdkBase = (options: SdkBaseOptions = {}) => {\n const { url, withHooks, requestConfig } = options;\n\n const _client = initGraphQLClient(url, requestConfig);\n const _sdk = withHooks ? getSdkWithHooks(_client) : getSdk(_client);\n return _sdk;\n};\n\n/**\n * 初始化 sdk 实例\n *\n * @param {SdkOptions} options 配置项\n */\nexport const initSdk = (options: SdkOptions = {}) => {\n const { url, requestConfig } = options;\n const _sdk = initSdkBase({ withHooks: false, url, requestConfig });\n return _sdk;\n};\n\n/**\n * 初始化 sdk 实例 (包含 hooks)\n *\n * @param {SdkOptions} options 配置项\n */\nexport const initSdkWithHooks = (options: SdkOptions = {}) => {\n const { url, requestConfig } = options;\n const _sdk = initSdkBase({ withHooks: true, url, requestConfig });\n return _sdk as ReturnType<typeof getSdkWithHooks>;\n};\n\n/**\n * hook 的方式获取 sdk 实例\n *\n * @param {SdkOptions} options 配置项\n */\nexport const useSdk = (options: SdkOptions = {}) => {\n const { url, requestConfig } = options;\n return useMemo(\n () => initSdkWithHooks({ url, requestConfig }),\n [url, requestConfig],\n );\n};\n"],"names":["root","factory","exports","module","define","amd","self","leafPrototypes","getProto","global","this","__self__","F","fetch","DOMException","prototype","support","Symbol","Blob","e","viewClasses","isArrayBufferView","ArrayBuffer","isView","obj","indexOf","Object","toString","call","normalizeName","name","String","test","TypeError","toLowerCase","normalizeValue","value","iteratorFor","items","iterator","next","shift","done","undefined","Headers","headers","map","forEach","append","Array","isArray","header","getOwnPropertyNames","consumed","body","bodyUsed","Promise","reject","fileReaderReady","reader","resolve","onload","result","onerror","error","readBlobAsArrayBuffer","blob","FileReader","promise","readAsArrayBuffer","bufferClone","buf","slice","view","Uint8Array","byteLength","set","buffer","Body","_initBody","_bodyInit","_bodyText","isPrototypeOf","_bodyBlob","FormData","_bodyFormData","URLSearchParams","DataView","_bodyArrayBuffer","get","type","rejected","Error","arrayBuffer","then","text","readAsText","chars","length","i","fromCharCode","join","readArrayBufferAsText","formData","decode","json","JSON","parse","oldValue","has","hasOwnProperty","callback","thisArg","keys","push","values","entries","methods","Request","input","options","method","upcased","url","credentials","mode","signal","toUpperCase","referrer","form","trim","split","bytes","replace","decodeURIComponent","Response","bodyInit","status","ok","statusText","clone","response","redirectStatuses","redirect","RangeError","location","err","message","stack","create","constructor","init","request","aborted","xhr","XMLHttpRequest","abortXhr","abort","rawHeaders","getAllResponseHeaders","line","parts","key","responseURL","responseText","ontimeout","onabort","open","withCredentials","responseType","setRequestHeader","addEventListener","onreadystatechange","readyState","removeEventListener","send","polyfill","defineProperty","ponyfill","ctx","require","k","is","a","b","l","useState","m","useEffect","n","useLayoutEffect","p","useDebugValue","r","getSnapshot","d","f","u","window","document","createElement","inst","c","g","useSyncExternalStore","React","arr","len","arr2","__esModule","arrayLikeToArray","ReferenceError","asyncGeneratorStep","gen","_next","_throw","arg","info","fn","args","arguments","apply","instance","Constructor","setPrototypeOf","isNativeReflectConstruct","_construct","Parent","Class","Reflect","construct","bind","Function","toPropertyKey","_defineProperties","target","props","descriptor","enumerable","configurable","writable","protoProps","staticProps","unsupportedIterableToArray","o","allowArrayLike","it","s","_e","normalCompletion","didErr","step","_e2","getPrototypeOf","possibleConstructorReturn","Derived","hasNativeReflectConstruct","Super","NewTarget","_getPrototypeOf","__proto__","subClass","superClass","sham","Proxy","Boolean","valueOf","iter","from","t","ownKeys","getOwnPropertySymbols","filter","getOwnPropertyDescriptor","getOwnPropertyDescriptors","defineProperties","objectWithoutPropertiesLoose","source","excluded","sourceSymbolKeys","propertyIsEnumerable","sourceKeys","_typeof","assertThisInitialized","_regeneratorRuntime","asyncIterator","toStringTag","wrap","Generator","Context","makeInvokeMethod","tryCatch","h","y","GeneratorFunction","GeneratorFunctionPrototype","v","defineIteratorMethods","_invoke","AsyncIterator","invoke","__await","callInvokeWithMethodAndArg","delegate","maybeInvokeDelegate","sent","_sent","dispatchException","abrupt","resultName","nextLoc","pushTryEntry","tryLoc","catchLoc","finallyLoc","afterLoc","tryEntries","resetTryEntry","completion","reset","isNaN","displayName","isGeneratorFunction","mark","awrap","async","reverse","pop","prev","charAt","stop","rval","handle","complete","finish","delegateYield","_setPrototypeOf","arrayWithHoles","iterableToArrayLimit","nonIterableRest","strings","raw","freeze","arrayWithoutHoles","iterableToArray","nonIterableSpread","hint","prim","toPrimitive","res","Number","minLen","isNativeFunction","_wrapNativeSuper","_cache","Map","Wrapper","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","__webpack_modules__","getter","ns","def","current","definition","prop","defaultJsonSerializer","parseRequestArgs","documentOrOptions","variables","requestHeaders","parseRawRequestArgs","queryOrOptions","query","parseRequestExtendedArgs","urlOrOptions","_len","variablesAndRequestHeaders","_key","parseRawRequestExtendedArgs","_len2","_key2","isObjectLike","invariant","condition","LineRegExp","getLocation","position","_step","lastLineStart","_iterator","_createForOfIteratorHelper","matchAll","match","index","column","printLocation","printSourceLocation","start","sourceLocation","firstLineColumnOffset","locationOffset","padStart","lineIndex","lineOffset","lineNum","columnOffset","columnNum","locationStr","concat","lines","locationLine","subLineIndex","Math","floor","subLineColumnNum","subLines","printPrefixedLines","_toConsumableArray","subLine","existingLines","_ref","_ref2","_slicedToArray","padLen","max","_ref3","_ref5","_ref6","prefix","toNormalizedOptions","firstArg","nodes","positions","path","originalError","extensions","GraphQLError","_Error","_Symbol$toStringTag","_inherits","_super","_createSuper","_this","_this$nodes","_nodeLocations$","_classCallCheck","rawArgs","_toNormalizedOptions","undefinedIfEmpty","nodeLocations","node","loc","locations","pos","originalExtensions","_assertThisInitialized","captureStackTrace","_createClass","output","_step2","_iterator2","formattedError","array","syntaxError","description","OperationTypeNode","DirectiveLocation","Kind","TokenKind","Location","startToken","endToken","end","Token","_Symbol$toStringTag2","kind","QueryDocumentKeys","Name","Document","OperationDefinition","VariableDefinition","Variable","SelectionSet","Field","Argument","FragmentSpread","InlineFragment","FragmentDefinition","IntValue","FloatValue","StringValue","BooleanValue","NullValue","EnumValue","ListValue","ObjectValue","ObjectField","Directive","NamedType","ListType","NonNullType","SchemaDefinition","OperationTypeDefinition","ScalarTypeDefinition","ObjectTypeDefinition","FieldDefinition","InputValueDefinition","InterfaceTypeDefinition","UnionTypeDefinition","EnumTypeDefinition","EnumValueDefinition","InputObjectTypeDefinition","DirectiveDefinition","SchemaExtension","ScalarTypeExtension","ObjectTypeExtension","InterfaceTypeExtension","UnionTypeExtension","EnumTypeExtension","InputObjectTypeExtension","kindValues","Set","isNode","maybeNode","maybeKind","isWhiteSpace","code","isDigit","isLetter","isNameStart","isNameContinue","dedentBlockStringLines","_firstNonEmptyLine2","commonIndent","MAX_SAFE_INTEGER","firstNonEmptyLine","lastNonEmptyLine","_firstNonEmptyLine","indent","leadingWhitespace","str","charCodeAt","Lexer","startOfFileToken","SOF","lastToken","token","lineStart","lookahead","EOF","nextToken","readNextToken","COMMENT","isUnicodeScalarValue","isSupplementaryCodePoint","isLeadingSurrogate","isTrailingSurrogate","printCodePointAt","lexer","codePointAt","char","fromCodePoint","createToken","col","bodyLength","readComment","BANG","DOLLAR","AMP","PAREN_L","PAREN_R","SPREAD","COLON","EQUALS","AT","BRACKET_L","BRACKET_R","BRACE_L","PIPE","BRACE_R","readBlockString","readString","readNumber","readName","firstCode","isFloat","readDigits","FLOAT","INT","chunkStart","STRING","escape","readEscapedUnicodeVariableWidth","readEscapedUnicodeFixedWidth","readEscapedCharacter","size","point","readHexDigit","read16BitHexCode","trailingCode","currentLine","blockLines","BLOCK_STRING","NAME","devAssert","inspect","formatValue","seenValues","stringify","previouslySeenValues","includes","toJSON","isJSONable","jsonValue","min","remaining","formatArray","object","tag","getObjectTag","properties","formatObject","formatObjectValue","instanceOf","globalThis","process","env","NODE_ENV","_value$constructor","className","stringifiedValue","Source","isSource","Parser","parseDocument","sourceObj","_lexer","_options","_tokenCounter","expectToken","DOCUMENT","definitions","many","parseDefinition","peek","parseOperationDefinition","hasDescription","peekDescription","keywordToken","parseSchemaDefinition","parseScalarTypeDefinition","parseObjectTypeDefinition","parseInterfaceTypeDefinition","parseUnionTypeDefinition","parseEnumTypeDefinition","parseInputObjectTypeDefinition","parseDirectiveDefinition","parseFragmentDefinition","parseTypeSystemExtension","unexpected","OPERATION_DEFINITION","operation","QUERY","variableDefinitions","directives","selectionSet","parseSelectionSet","parseOperationType","parseName","parseVariableDefinitions","parseDirectives","operationToken","MUTATION","SUBSCRIPTION","optionalMany","parseVariableDefinition","VARIABLE_DEFINITION","variable","parseVariable","parseTypeReference","defaultValue","expectOptionalToken","parseConstValueLiteral","parseConstDirectives","VARIABLE","SELECTION_SET","selections","parseSelection","parseFragment","parseField","alias","nameOrAlias","FIELD","parseArguments","isConst","item","parseConstArgument","parseArgument","ARGUMENT","parseValueLiteral","hasTypeCondition","expectOptionalKeyword","FRAGMENT_SPREAD","parseFragmentName","INLINE_FRAGMENT","typeCondition","parseNamedType","expectKeyword","allowLegacyFragmentVariables","FRAGMENT_DEFINITION","parseList","parseObject","advanceLexer","parseStringLiteral","BOOLEAN","NULL","ENUM","varName","block","LIST","any","_this2","OBJECT","fields","parseObjectField","OBJECT_FIELD","parseDirective","DIRECTIVE","innerType","LIST_TYPE","NON_NULL_TYPE","NAMED_TYPE","parseDescription","operationTypes","parseOperationTypeDefinition","SCHEMA_DEFINITION","OPERATION_TYPE_DEFINITION","SCALAR_TYPE_DEFINITION","interfaces","parseImplementsInterfaces","parseFieldsDefinition","OBJECT_TYPE_DEFINITION","delimitedMany","parseFieldDefinition","parseArgumentDefs","FIELD_DEFINITION","parseInputValueDef","INPUT_VALUE_DEFINITION","INTERFACE_TYPE_DEFINITION","types","parseUnionMemberTypes","UNION_TYPE_DEFINITION","parseEnumValuesDefinition","ENUM_TYPE_DEFINITION","parseEnumValueDefinition","parseEnumValueName","ENUM_VALUE_DEFINITION","getTokenDesc","parseInputFieldsDefinition","INPUT_OBJECT_TYPE_DEFINITION","parseSchemaExtension","parseScalarTypeExtension","parseObjectTypeExtension","parseInterfaceTypeExtension","parseUnionTypeExtension","parseEnumTypeExtension","parseInputObjectTypeExtension","SCHEMA_EXTENSION","SCALAR_TYPE_EXTENSION","OBJECT_TYPE_EXTENSION","INTERFACE_TYPE_EXTENSION","UNION_TYPE_EXTENSION","ENUM_TYPE_EXTENSION","INPUT_OBJECT_TYPE_EXTENSION","repeatable","parseDirectiveLocations","DIRECTIVE_DEFINITION","parseDirectiveLocation","noLocation","getTokenKindDesc","atToken","openKind","parseFn","closeKind","delimiterKind","maxTokens","advance","isPunctuatorTokenKind","escapedRegExp","escapedReplacer","escapeSequences","BREAK","getEnterLeaveForKind","visitor","kindVisitor","enter","leave","print","ast","visitorKeys","enterLeaveMap","_i","_Object$values","inArray","edits","parent","ancestors","isLeaving","isEdited","editOffset","_step$value","editKey","editValue","arrayKey","splice","_step2$value","_node$kind","_enterLeaveMap$get","_enterLeaveMap$get2","visitFn","visit","printDocASTReducer","varDefs","argsLine","_ref4","_ref7","_ref8","_ref9","_ref10","escapedValue","isSingleLine","forceLeadingNewLine","every","hasTrailingTripleQuotes","endsWith","hasTrailingQuote","hasTrailingSlash","forceTrailingNewline","printAsMultipleLines","minimize","skipLeadingNewLine","printBlockString","_ref11","_ref12","_ref13","_ref14","_ref15","_ref16","_ref17","_ref18","_ref19","_ref20","_ref21","_ref22","_ref23","_ref24","hasMultilineItems","_ref25","_ref26","_ref27","_ref28","_ref29","_ref30","_ref31","_ref32","_ref33","_ref34","_ref35","_ref36","_ref37","_ref38","maybeArray","_maybeArray$filter$jo","separator","x","maybeString","_maybeArray$some","some","extractOperationName","_operationDefinitions","operationName","operationDefinitions","resolveRequestDocument","parsedDocument","ClientError","extractMessage","_response$errors$0$me","_response$errors","errors","PING","PONG","SUBSCRIBE","COMPLETE","GraphQLWebSocketMessage","payload","id","_type","_payload","_id","data","_JSON$parse","GraphQLWebSocketClient","socket","onInit","onAcknowledged","onPing","onPong","socketState","acknowledged","lastRequestId","subscriptions","_asyncToGenerator","_callee","_context","t0","t1","ConnectionInit","t2","t3","t4","_x","console","parseMessage","warn","Pong","_this$socketState$sub","subscriber","_objectSpread","close","subscriptionId","Complete","_this3","rawSubscribe","_this4","subscribe","_resolveRequestDocume","makeSubscribe","Ping","PROTOCOL","resolveHeaders","oHeaders","CrossFetch","HeadersInstanceToPlainObject","cleanQuery","buildRequestConfig","params","params_","search","encodeURIComponent","jsonSerializer","reduce","acc","currentQuery","createHttpMethodFetcher","fetchOptions","middleware","queryParams","_fetchOptions$jsonSer","urlResolved","initResolved","urlNew","initNew","createRequestBody","_objectWithoutProperties","_excluded","GraphQLClient","requestConfig","rawRequest","_callee2","rawRequestOptions","_this$requestConfig","_this$requestConfig$f","_this$requestConfig$m","requestMiddleware","responseMiddleware","_args2","_context2","crossFetch","_excluded2","makeRequest","callOrIdentity","_request","_callee3","requestOptions","_this$requestConfig2","_this$requestConfig2$","_this$requestConfig2$2","_resolveRequestDocume2","_args3","_context3","_excluded3","_x2","documentsOrOptions","_this$requestConfig$f2","batchRequestOptions","documents","parseBatchRequestArgs","_this$requestConfig3","_excluded4","queries","_defineProperty","_callee4","_params$method","_fetchOptions$jsonSer2","fetcher","isBatchingQuery","successfullyReceivedData","successfullyPassedErrorPolicy","rest","dataEnvelope","errorResult","_context4","getResult","errorPolicy","_excluded5","_x3","_callee5","_len3","_key3","client","_args5","_context5","_x4","_x5","_request2","_callee8","_len4","_key4","_args8","_context8","batchRequests","_callee6","_len5","_key5","_args6","_context6","parseBatchRequestsArgsExtended","jsonSerializer_","_callee7","contentType","_context7","startsWith","_x6","_x7","gql","chunks","_len6","_key6","chunk","singleMatcher","RegExp","multiMatcher","decodeComponents","components","_unused","left","right","_unused2","tokens","decodeUriComponent","encodedURI","_unused4","replaceMap","exec","_unused3","_entries","customDecodeURIComponent","splitOnFirst","string","separatorIndex","includeKeys","predicate","encodeFragmentIdentifier","validateArrayFormatSeparator","encode","strict","decodeComponent","keysSorter","sort","removeHash","hashStart","parseValue","parseNumbers","parseBooleans","extract","queryStart","arrayFormat","arrayFormatSeparator","formatter","accumulator","isEncodedArray","newValue","arrayValue","flat","parserForArrayFormat","returnValue","parameter","parameter_","_splitOnFirst","_splitOnFirst2","_Object$entries","_Object$entries$_i","_i2","_Object$entries2","_Object$entries2$_i","key2","value2","shouldFilter","skipNull","isNullOrUndefined","skipEmptyString","keyValueSep","encoderForArrayFormat","objectCopy","_i3","_Object$entries3","_Object$entries3$_i","parseUrl","_url_$split$","_url_","_splitOnFirst3","_splitOnFirst4","url_","hash","parseFragmentIdentifier","fragmentIdentifier","stringifyUrl","queryFromUrl","queryString","getHash","urlObjectForFragmentEncode","URL","pick","_parseUrl","exclude","InvalidTokenModal","antd","logout","href","onInvalidTokenModalCancel","_InvalidTokenModal","destroy","TenxUiMaterials","VERBS_MAP","delete","update","patch","list","watch","errorsHandler","gqlErrors","_e$extensions","Modal","okText","content","onOk","onCancel","_error$extensions","exception","details","verb","notification","detail","showForbiddenNotification","__assign","assign","SuppressedError","docCache","fragmentSourceMap","printFragmentWarnings","experimentalFragmentVariables","normalize","processFragments","seenKeys","fragmentDefinition","fragmentName","sourceKey","substring","sourceKeySet","add","cacheKey","parsed","doc","workSet","stripLoc","literals","gql_1","extras","clear","resetCaches","disableFragmentWarnings","enableExperimentalFragmentVariables","disableExperimentalFragmentVariables","noop","UNDEFINED","isUndefined","isFunction","mergeObjects","isPromiseLike","table","WeakMap","counter","stableHash","isDate","Date","SWRGlobalState","EMPTY_CACHE","INITIAL_CACHE","STR_UNDEFINED","isWindowDefined","isDocumentDefined","createCacheHelper","cache","state","online","onWindowEvent","offWindowEvent","preset","isOnline","isVisible","visibilityState","defaultConfigOptions","initFocus","initReconnect","onOnline","onOffline","IS_REACT_LEGACY","IS_SERVER","rAF","setTimeout","useIsomorphicLayoutEffect","navigatorConnection","navigator","connection","slowConnection","effectiveType","saveData","serialize","__timestamp","getTimestamp","events","internalMutate","_internalMutate","_data","_opts","populateCache","rollbackOnErrorOption","optimisticData","revalidate","rollbackOnError","throwOnError","keyFilter","matchedKeys","mutateByKey","_mutateByKey","_k","_serialize5","_serialize6","_createCacheHelper","_createCacheHelper2","_SWRGlobalState$get5","_SWRGlobalState$get6","EVENT_REVALIDATORS","FETCH","PRELOAD","startRevalidate","beforeMutationTs","hasOptimisticData","displayedData","currentData","committedData","populateCachedData","revalidators","_c","all","revalidateAllKeys","initCache","provider","opts","mutate","unmount","subs","setter","initProvider","releaseFocus","releaseReconnect","_initCache","_initCache2","defaultConfig","onLoadingSlow","onSuccess","onError","onErrorRetry","_","__","config","maxRetryCount","errorRetryCount","currentRetryCount","retryCount","timeout","random","errorRetryInterval","onDiscarded","revalidateOnFocus","revalidateOnReconnect","revalidateIfStale","shouldRetryOnError","focusThrottleInterval","dedupingInterval","loadingTimeout","compare","newData","isPaused","fallback","mergeConfigs","u1","use","f1","u2","f2","SWRConfigContext","createContext","INFINITE_PREFIX","enableDevtools","__SWR_DEVTOOLS_USE__","useSWRConfig","useContext","BUILT_IN_MIDDLEWARE","useSWRNext","key_","fetcher_","_serialize3","_serialize4","_SWRGlobalState$get3","_SWRGlobalState$get4","req","__SWR_DEVTOOLS_REACT__","hook","ReactExports","reason","WITH_DEDUPE","dedupe","useSWR","parentConfig","isFunctionalConfig","useMemo","extendedConfig","cacheContextRef","useRef","cacheContext","Provider","suspense","fallbackData","revalidateOnMount","refreshInterval","refreshWhenHidden","refreshWhenOffline","keepPreviousData","_SWRGlobalState$get","_SWRGlobalState$get2","_serialize","_serialize2","fnArg","initialMountedRef","unmountedRef","keyRef","fetcherRef","configRef","getConfig","isActive","getCache","setCache","subscribeCache","getInitialCache","stateDependencies","isEqual","returnedData","shouldStartRequest","getSelectedCache","snapshot","isValidating","isLoading","cachedData","initialData","clientSnapshot","serverSnapshot","memorizedSnapshot","newSnapshot","cached","useCallback","isInitialMount","hasRevalidator","laggyDataRef","shouldDoInitialRevalidation","defaultValidatingState","revalidateOpts","currentFetcher","startAt","loading","shouldStartNewRequest","callbackSafeguard","finalState","finishRequestAndUpdateState","cleanupState","initialState","_FETCH$key","mutationInfo","cacheData","currentConfig","requestInfo","revalidateEvents","boundMutate","softRevalidate","nextFocusRevalidatedAt","unsubEvents","callbacks","keyedRevalidators","subscribeCallback","now","timer","interval","execute","clearTimeout","fallbackConfig","_normalize","_normalize2","_config","localStorage","getItem","_error$response","__useSWR","hasObjectData","CreateApplicationDocument","_templateObject","_taggedTemplateLiteral","UpdateApplicationDocument","_templateObject2","DeleteApplicationDocument","_templateObject3","UpdateApplicationConfigDocument","_templateObject4","GetApplicationDocument","_templateObject5","ListApplicationsDocument","_templateObject6","AllDataProcessListByPageDocument","_templateObject7","AllDataProcessListByCountDocument","_templateObject8","DataProcessSupportTypeDocument","_templateObject9","DataProcessDetailsDocument","_templateObject10","CheckDataProcessTaskNameDocument","_templateObject11","GetLogInfoDocument","_templateObject12","DataProcessLogInfoByFileNameDocument","_templateObject13","DataProcessRetryDocument","_templateObject14","CreateDataProcessTaskDocument","_templateObject15","DeleteDataProcessTaskDocument","_templateObject16","ListDatasetsDocument","_templateObject17","GetDatasetDocument","_templateObject18","CreateDatasetDocument","_templateObject19","UpdateDatasetDocument","_templateObject20","DeleteDatasetsDocument","_templateObject21","CreateDatasourceDocument","_templateObject22","UpdateDatasourceDocument","_templateObject23","DeleteDatasourcesDocument","_templateObject24","ListDatasourcesDocument","_templateObject25","GetDatasourceDocument","_templateObject26","CheckDatasourceDocument","_templateObject27","CreateEmbedderDocument","_templateObject28","UpdateEmbedderDocument","_templateObject29","DeleteEmbeddersDocument","_templateObject30","ListEmbeddersDocument","_templateObject31","GetEmbedderDocument","_templateObject32","ListKnowledgeBasesDocument","_templateObject33","GetKnowledgeBaseDocument","_templateObject34","CreateKnowledgeBaseDocument","_templateObject35","UpdateKnowledgeBaseDocument","_templateObject36","DeleteKnowledgeBaseDocument","_templateObject37","ListLlMsDocument","_templateObject38","GetLlmDocument","_templateObject39","ListModelsDocument","_templateObject40","GetModelDocument","_templateObject41","CreateModelDocument","_templateObject42","UpdateModelDocument","_templateObject43","DeleteModelsDocument","_templateObject44","CreateModelServiceDocument","_templateObject45","UpdateModelServiceDocument","_templateObject46","DeleteModelServicesDocument","_templateObject47","GetModelServiceDocument","_templateObject48","ListModelServicesDocument","_templateObject49","CheckModelServiceDocument","_templateObject50","ListRayClustersDocument","_templateObject51","CreateVersionedDatasetDocument","_templateObject52","UpdateVersionedDatasetDocument","_templateObject53","DeleteVersionedDatasetsDocument","_templateObject54","GetVersionedDatasetDocument","_templateObject55","ListVersionedDatasetsDocument","_templateObject56","ListWorkersDocument","_templateObject57","GetWorkerDocument","_templateObject58","CreateWorkerDocument","_templateObject59","UpdateWorkerDocument","_templateObject60","DeleteWorkersDocument","_templateObject61","defaultWrapper","action","_operationName","_operationType","getSdk","withWrapper","createApplication","wrappedRequestHeaders","updateApplication","deleteApplication","updateApplicationConfig","getApplication","listApplications","allDataProcessListByPage","allDataProcessListByCount","dataProcessSupportType","dataProcessDetails","checkDataProcessTaskName","getLogInfo","dataProcessLogInfoByFileName","dataProcessRetry","createDataProcessTask","deleteDataProcessTask","listDatasets","getDataset","createDataset","updateDataset","deleteDatasets","createDatasource","updateDatasource","deleteDatasources","listDatasources","getDatasource","checkDatasource","createEmbedder","updateEmbedder","deleteEmbedders","listEmbedders","getEmbedder","listKnowledgeBases","getKnowledgeBase","createKnowledgeBase","updateKnowledgeBase","deleteKnowledgeBase","listLLMs","getLLM","listModels","getModel","createModel","updateModel","deleteModels","createModelService","updateModelService","deleteModelServices","getModelService","listModelServices","checkModelService","listRayClusters","createVersionedDataset","updateVersionedDataset","deleteVersionedDatasets","getVersionedDataset","listVersionedDatasets","listWorkers","getWorker","createWorker","updateWorker","deleteWorkers","getSdkWithHooks","sdk","genKey","useGetApplication","useListApplications","useAllDataProcessListByPage","useAllDataProcessListByCount","useDataProcessSupportType","useDataProcessDetails","useCheckDataProcessTaskName","useGetLogInfo","useDataProcessLogInfoByFileName","useDataProcessRetry","useListDatasets","useGetDataset","useListDatasources","useGetDatasource","useCheckDatasource","useListEmbedders","useGetEmbedder","useListKnowledgeBases","useGetKnowledgeBase","useListLlMs","useGetLlm","useListModels","useGetModel","useGetModelService","useListModelServices","useCheckModelService","useListRayClusters","useGetVersionedDataset","useListVersionedDatasets","useListWorkers","useGetWorker","otherRequest","_url$split","_url$split2","host","qs","getAuthData","token_type","id_token","Authorization","_response$response","initGraphQLClient","newReq","endpoint","initSdkBase","withHooks","_client","_sdk","initSdk","initSdkWithHooks","useSdk"],"sourceRoot":""}