@burdenoff/microfe-export 2026.510.111

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.
Files changed (197) hide show
  1. package/README.md +243 -0
  2. package/dist/dev/main.d.ts +2 -0
  3. package/dist/dev/main.d.ts.map +1 -0
  4. package/dist/export/ExportRoot.d.ts +31 -0
  5. package/dist/export/ExportRoot.d.ts.map +1 -0
  6. package/dist/export/ExportRoot.js +70 -0
  7. package/dist/export/ExportRoot.js.map +1 -0
  8. package/dist/export/ExportRoutes.d.ts +14 -0
  9. package/dist/export/ExportRoutes.d.ts.map +1 -0
  10. package/dist/export/ExportRoutes.js +104 -0
  11. package/dist/export/ExportRoutes.js.map +1 -0
  12. package/dist/export/components/ExportProgressBar.d.ts +12 -0
  13. package/dist/export/components/ExportProgressBar.d.ts.map +1 -0
  14. package/dist/export/components/ExportProgressBar.js +34 -0
  15. package/dist/export/components/ExportProgressBar.js.map +1 -0
  16. package/dist/export/components/ExportStatusBadge.d.ts +12 -0
  17. package/dist/export/components/ExportStatusBadge.d.ts.map +1 -0
  18. package/dist/export/components/ExportStatusBadge.js +39 -0
  19. package/dist/export/components/ExportStatusBadge.js.map +1 -0
  20. package/dist/export/components/PageLayout.d.ts +55 -0
  21. package/dist/export/components/PageLayout.d.ts.map +1 -0
  22. package/dist/export/components/PageLayout.js +93 -0
  23. package/dist/export/components/PageLayout.js.map +1 -0
  24. package/dist/export/components/ui.d.ts +6 -0
  25. package/dist/export/components/ui.d.ts.map +1 -0
  26. package/dist/export/constants/enums.d.ts +79 -0
  27. package/dist/export/constants/enums.d.ts.map +1 -0
  28. package/dist/export/constants/enums.js +27 -0
  29. package/dist/export/constants/enums.js.map +1 -0
  30. package/dist/export/constants/index.d.ts +7 -0
  31. package/dist/export/constants/index.d.ts.map +1 -0
  32. package/dist/export/hooks/useExportQueries.d.ts +224 -0
  33. package/dist/export/hooks/useExportQueries.d.ts.map +1 -0
  34. package/dist/export/hooks/useExportQueries.js +401 -0
  35. package/dist/export/hooks/useExportQueries.js.map +1 -0
  36. package/dist/export/index.d.ts +29 -0
  37. package/dist/export/index.d.ts.map +1 -0
  38. package/dist/export/index.js +3 -0
  39. package/dist/export/pages/CreateExportPage.d.ts +2 -0
  40. package/dist/export/pages/CreateExportPage.d.ts.map +1 -0
  41. package/dist/export/pages/CreateExportPage.js +495 -0
  42. package/dist/export/pages/CreateExportPage.js.map +1 -0
  43. package/dist/export/pages/ExportDashboardPage.d.ts +6 -0
  44. package/dist/export/pages/ExportDashboardPage.d.ts.map +1 -0
  45. package/dist/export/pages/ExportDashboardPage.js +166 -0
  46. package/dist/export/pages/ExportDashboardPage.js.map +1 -0
  47. package/dist/export/pages/ExportDetailPage.d.ts +7 -0
  48. package/dist/export/pages/ExportDetailPage.d.ts.map +1 -0
  49. package/dist/export/pages/ExportDetailPage.js +327 -0
  50. package/dist/export/pages/ExportDetailPage.js.map +1 -0
  51. package/dist/export/pages/ExportHistoryPage.d.ts +6 -0
  52. package/dist/export/pages/ExportHistoryPage.d.ts.map +1 -0
  53. package/dist/export/pages/ExportHistoryPage.js +261 -0
  54. package/dist/export/pages/ExportHistoryPage.js.map +1 -0
  55. package/dist/export/pages/ExportLandingPage.d.ts +9 -0
  56. package/dist/export/pages/ExportLandingPage.d.ts.map +1 -0
  57. package/dist/export/pages/ExportLandingPage.js +56 -0
  58. package/dist/export/pages/ExportLandingPage.js.map +1 -0
  59. package/dist/export/pages/ExportTemplatesPage.d.ts +6 -0
  60. package/dist/export/pages/ExportTemplatesPage.d.ts.map +1 -0
  61. package/dist/export/pages/ExportTemplatesPage.js +343 -0
  62. package/dist/export/pages/ExportTemplatesPage.js.map +1 -0
  63. package/dist/export/pages/TemplateDetailPage.d.ts +7 -0
  64. package/dist/export/pages/TemplateDetailPage.d.ts.map +1 -0
  65. package/dist/export/pages/TemplateDetailPage.js +215 -0
  66. package/dist/export/pages/TemplateDetailPage.js.map +1 -0
  67. package/dist/export/providers/ExportProvider.d.ts +13 -0
  68. package/dist/export/providers/ExportProvider.d.ts.map +1 -0
  69. package/dist/export/providers/ExportProvider.js +103 -0
  70. package/dist/export/providers/ExportProvider.js.map +1 -0
  71. package/dist/export/store/exportStore.d.ts +17 -0
  72. package/dist/export/store/exportStore.d.ts.map +1 -0
  73. package/dist/export/store/exportStore.js +43 -0
  74. package/dist/export/store/exportStore.js.map +1 -0
  75. package/dist/export/types/index.d.ts +230 -0
  76. package/dist/export/types/index.d.ts.map +1 -0
  77. package/dist/export/utils/cn.d.ts +8 -0
  78. package/dist/export/utils/cn.d.ts.map +1 -0
  79. package/dist/export/utils/cn.js +10 -0
  80. package/dist/export/utils/cn.js.map +1 -0
  81. package/dist/export/utils/events.d.ts +7 -0
  82. package/dist/export/utils/events.d.ts.map +1 -0
  83. package/dist/export/utils/events.js +16 -0
  84. package/dist/export/utils/events.js.map +1 -0
  85. package/dist/export/utils/i18n.d.ts +6 -0
  86. package/dist/export/utils/i18n.d.ts.map +1 -0
  87. package/dist/export/utils/i18n.js +15 -0
  88. package/dist/export/utils/i18n.js.map +1 -0
  89. package/dist/generated/global-operations.d.ts +2 -0
  90. package/dist/generated/global-operations.d.ts.map +1 -0
  91. package/dist/generated/global-types.d.ts +21253 -0
  92. package/dist/generated/global-types.d.ts.map +1 -0
  93. package/dist/generated/wspace-operations.d.ts +773 -0
  94. package/dist/generated/wspace-operations.d.ts.map +1 -0
  95. package/dist/generated/wspace-operations.js +319 -0
  96. package/dist/generated/wspace-operations.js.map +1 -0
  97. package/dist/generated/wspace-types.d.ts +55214 -0
  98. package/dist/generated/wspace-types.d.ts.map +1 -0
  99. package/dist/generated/wspace-types.js +12 -0
  100. package/dist/generated/wspace-types.js.map +1 -0
  101. package/dist/index.d.ts +6 -0
  102. package/dist/index.d.ts.map +1 -0
  103. package/dist/index.js +5 -0
  104. package/dist/node_modules/@apollo/client/errors/CombinedGraphQLErrors.js +24 -0
  105. package/dist/node_modules/@apollo/client/errors/CombinedGraphQLErrors.js.map +1 -0
  106. package/dist/node_modules/@apollo/client/errors/utils.js +16 -0
  107. package/dist/node_modules/@apollo/client/errors/utils.js.map +1 -0
  108. package/dist/node_modules/@apollo/client/link/core/ApolloLink.js +52 -0
  109. package/dist/node_modules/@apollo/client/link/core/ApolloLink.js.map +1 -0
  110. package/dist/node_modules/@apollo/client/link/subscriptions/index.js +41 -0
  111. package/dist/node_modules/@apollo/client/link/subscriptions/index.js.map +1 -0
  112. package/dist/node_modules/@apollo/client/link/utils/createOperation.js +34 -0
  113. package/dist/node_modules/@apollo/client/link/utils/createOperation.js.map +1 -0
  114. package/dist/node_modules/@apollo/client/utilities/caching/sizes.js +6 -0
  115. package/dist/node_modules/@apollo/client/utilities/caching/sizes.js.map +1 -0
  116. package/dist/node_modules/@apollo/client/utilities/graphql/print.js +16 -0
  117. package/dist/node_modules/@apollo/client/utilities/graphql/print.js.map +1 -0
  118. package/dist/node_modules/@apollo/client/utilities/internal/caches.js +19 -0
  119. package/dist/node_modules/@apollo/client/utilities/internal/caches.js.map +1 -0
  120. package/dist/node_modules/@apollo/client/utilities/internal/checkDocument.js +21 -0
  121. package/dist/node_modules/@apollo/client/utilities/internal/checkDocument.js.map +1 -0
  122. package/dist/node_modules/@apollo/client/utilities/internal/getMainDefinition.js +17 -0
  123. package/dist/node_modules/@apollo/client/utilities/internal/getMainDefinition.js.map +1 -0
  124. package/dist/node_modules/@apollo/client/utilities/internal/getMemoryInternals.js +9 -0
  125. package/dist/node_modules/@apollo/client/utilities/internal/getMemoryInternals.js.map +1 -0
  126. package/dist/node_modules/@apollo/client/utilities/internal/getOperationDefinition.js +9 -0
  127. package/dist/node_modules/@apollo/client/utilities/internal/getOperationDefinition.js.map +1 -0
  128. package/dist/node_modules/@apollo/client/utilities/internal/getOperationName.js +8 -0
  129. package/dist/node_modules/@apollo/client/utilities/internal/getOperationName.js.map +1 -0
  130. package/dist/node_modules/@apollo/client/utilities/internal/globals/global.js +9 -0
  131. package/dist/node_modules/@apollo/client/utilities/internal/globals/global.js.map +1 -0
  132. package/dist/node_modules/@apollo/client/utilities/internal/globals/maybe.js +10 -0
  133. package/dist/node_modules/@apollo/client/utilities/internal/globals/maybe.js.map +1 -0
  134. package/dist/node_modules/@apollo/client/utilities/internal/isNonNullObject.js +8 -0
  135. package/dist/node_modules/@apollo/client/utilities/internal/isNonNullObject.js.map +1 -0
  136. package/dist/node_modules/@apollo/client/utilities/internal/makeUniqueId.js +10 -0
  137. package/dist/node_modules/@apollo/client/utilities/internal/makeUniqueId.js.map +1 -0
  138. package/dist/node_modules/@apollo/client/utilities/internal/memoize.js +23 -0
  139. package/dist/node_modules/@apollo/client/utilities/internal/memoize.js.map +1 -0
  140. package/dist/node_modules/@apollo/client/utilities/internal/stringifyForDisplay.js +10 -0
  141. package/dist/node_modules/@apollo/client/utilities/internal/stringifyForDisplay.js.map +1 -0
  142. package/dist/node_modules/@apollo/client/utilities/invariant/index.js +57 -0
  143. package/dist/node_modules/@apollo/client/utilities/invariant/index.js.map +1 -0
  144. package/dist/node_modules/@apollo/client/version.js +6 -0
  145. package/dist/node_modules/@apollo/client/version.js.map +1 -0
  146. package/dist/node_modules/@wry/caches/lib/weak.js +67 -0
  147. package/dist/node_modules/@wry/caches/lib/weak.js.map +1 -0
  148. package/dist/node_modules/@wry/trie/lib/index.js +53 -0
  149. package/dist/node_modules/@wry/trie/lib/index.js.map +1 -0
  150. package/dist/node_modules/clsx/dist/clsx.js +18 -0
  151. package/dist/node_modules/clsx/dist/clsx.js.map +1 -0
  152. package/dist/node_modules/graphql-ws/dist/client.js +272 -0
  153. package/dist/node_modules/graphql-ws/dist/client.js.map +1 -0
  154. package/dist/node_modules/graphql-ws/dist/common-CGW11Fyb.js +62 -0
  155. package/dist/node_modules/graphql-ws/dist/common-CGW11Fyb.js.map +1 -0
  156. package/dist/node_modules/rxjs/dist/esm5/internal/NotificationFactories.js +21 -0
  157. package/dist/node_modules/rxjs/dist/esm5/internal/NotificationFactories.js.map +1 -0
  158. package/dist/node_modules/rxjs/dist/esm5/internal/Observable.js +78 -0
  159. package/dist/node_modules/rxjs/dist/esm5/internal/Observable.js.map +1 -0
  160. package/dist/node_modules/rxjs/dist/esm5/internal/Subscriber.js +117 -0
  161. package/dist/node_modules/rxjs/dist/esm5/internal/Subscriber.js.map +1 -0
  162. package/dist/node_modules/rxjs/dist/esm5/internal/Subscription.js +93 -0
  163. package/dist/node_modules/rxjs/dist/esm5/internal/Subscription.js.map +1 -0
  164. package/dist/node_modules/rxjs/dist/esm5/internal/config.js +12 -0
  165. package/dist/node_modules/rxjs/dist/esm5/internal/config.js.map +1 -0
  166. package/dist/node_modules/rxjs/dist/esm5/internal/observable/empty.js +9 -0
  167. package/dist/node_modules/rxjs/dist/esm5/internal/observable/empty.js.map +1 -0
  168. package/dist/node_modules/rxjs/dist/esm5/internal/scheduler/timeoutProvider.js +16 -0
  169. package/dist/node_modules/rxjs/dist/esm5/internal/scheduler/timeoutProvider.js.map +1 -0
  170. package/dist/node_modules/rxjs/dist/esm5/internal/symbol/observable.js +8 -0
  171. package/dist/node_modules/rxjs/dist/esm5/internal/symbol/observable.js.map +1 -0
  172. package/dist/node_modules/rxjs/dist/esm5/internal/util/UnsubscriptionError.js +13 -0
  173. package/dist/node_modules/rxjs/dist/esm5/internal/util/UnsubscriptionError.js.map +1 -0
  174. package/dist/node_modules/rxjs/dist/esm5/internal/util/arrRemove.js +11 -0
  175. package/dist/node_modules/rxjs/dist/esm5/internal/util/arrRemove.js.map +1 -0
  176. package/dist/node_modules/rxjs/dist/esm5/internal/util/createErrorClass.js +11 -0
  177. package/dist/node_modules/rxjs/dist/esm5/internal/util/createErrorClass.js.map +1 -0
  178. package/dist/node_modules/rxjs/dist/esm5/internal/util/errorContext.js +22 -0
  179. package/dist/node_modules/rxjs/dist/esm5/internal/util/errorContext.js.map +1 -0
  180. package/dist/node_modules/rxjs/dist/esm5/internal/util/identity.js +8 -0
  181. package/dist/node_modules/rxjs/dist/esm5/internal/util/identity.js.map +1 -0
  182. package/dist/node_modules/rxjs/dist/esm5/internal/util/isFunction.js +8 -0
  183. package/dist/node_modules/rxjs/dist/esm5/internal/util/isFunction.js.map +1 -0
  184. package/dist/node_modules/rxjs/dist/esm5/internal/util/noop.js +6 -0
  185. package/dist/node_modules/rxjs/dist/esm5/internal/util/noop.js.map +1 -0
  186. package/dist/node_modules/rxjs/dist/esm5/internal/util/pipe.js +13 -0
  187. package/dist/node_modules/rxjs/dist/esm5/internal/util/pipe.js.map +1 -0
  188. package/dist/node_modules/rxjs/dist/esm5/internal/util/reportUnhandledError.js +14 -0
  189. package/dist/node_modules/rxjs/dist/esm5/internal/util/reportUnhandledError.js.map +1 -0
  190. package/dist/node_modules/rxjs/node_modules/tslib/tslib.es6.js +52 -0
  191. package/dist/node_modules/rxjs/node_modules/tslib/tslib.es6.js.map +1 -0
  192. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +1674 -0
  193. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js.map +1 -0
  194. package/dist/utils/nativeBridge.d.ts +3 -0
  195. package/dist/utils/nativeBridge.d.ts.map +1 -0
  196. package/dist/utils/nativeBridge.js +2 -0
  197. package/package.json +107 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":["global"],"sources":["../../../../../../node_modules/@apollo/client/utilities/invariant/index.js"],"sourcesContent":["import { __DEV__ } from \"@apollo/client/utilities/environment\";\nimport { global } from \"@apollo/client/utilities/internal/globals\";\nimport { version } from \"../../version.js\";\n// eslint-disable-next-line local-rules/import-from-inside-other-export\nimport { stringifyForDisplay } from \"../internal/stringifyForDisplay.js\";\nconst genericMessage = \"Invariant Violation\";\nexport class InvariantError extends Error {\n constructor(message = genericMessage) {\n super(message);\n this.name = genericMessage;\n Object.setPrototypeOf(this, InvariantError.prototype);\n }\n}\nconst verbosityLevels = [\"debug\", \"log\", \"warn\", \"error\", \"silent\"];\nlet verbosityLevel = verbosityLevels.indexOf(__DEV__ ? \"log\" : \"silent\");\nexport function invariant(condition, ...args) {\n if (!condition) {\n throw newInvariantError(...args);\n }\n}\nfunction wrapConsoleMethod(name) {\n return function (message, ...args) {\n if (verbosityLevels.indexOf(name) >= verbosityLevel) {\n // Default to console.log if this host environment happens not to provide\n // all the console.* methods we need.\n const method = console[name] || console.log;\n if (typeof message === \"number\") {\n const arg0 = message;\n message = getHandledErrorMsg(arg0);\n if (!message) {\n message = getFallbackErrorMsg(arg0, args);\n args = [];\n }\n }\n method(message, ...args);\n }\n };\n}\ninvariant.debug = wrapConsoleMethod(\"debug\");\ninvariant.log = wrapConsoleMethod(\"log\");\ninvariant.warn = wrapConsoleMethod(\"warn\");\ninvariant.error = wrapConsoleMethod(\"error\");\nexport function setVerbosity(level) {\n const old = verbosityLevels[verbosityLevel];\n verbosityLevel = Math.max(0, verbosityLevels.indexOf(level));\n return old;\n}\n/**\n * Returns an InvariantError.\n *\n * `message` can only be a string, a concatenation of strings, or a ternary statement\n * that results in a string. This will be enforced on build, where the message will\n * be replaced with a message number.\n * String substitutions with %s are supported and will also return\n * pretty-stringified objects.\n * Excess `optionalParams` will be swallowed.\n */\nexport function newInvariantError(message, ...optionalParams) {\n return new InvariantError(getHandledErrorMsg(message, optionalParams) ||\n getFallbackErrorMsg(message, optionalParams));\n}\n// This is duplicated between `@apollo/client/dev` and `@apollo/client/utilities/invariant` to prevent circular references.\nexport const ApolloErrorMessageHandler = Symbol.for(\"ApolloErrorMessageHandler_\" + version);\nfunction stringify(arg) {\n if (typeof arg == \"string\") {\n return arg;\n }\n try {\n return stringifyForDisplay(arg, 2).slice(0, 1000);\n }\n catch {\n return \"<non-serializable>\";\n }\n}\nfunction getHandledErrorMsg(message, messageArgs = []) {\n if (!message)\n return;\n return (global[ApolloErrorMessageHandler] &&\n global[ApolloErrorMessageHandler](message, messageArgs.map(stringify)));\n}\nfunction getFallbackErrorMsg(message, messageArgs = []) {\n if (!message)\n return;\n if (typeof message === \"string\") {\n return messageArgs.reduce((msg, arg) => msg.replace(/%[sdfo]/, stringify(arg)), message);\n }\n return `An error occurred! For more details, see the full error text at https://go.apollo.dev/c/err#${encodeURIComponent(JSON.stringify({\n version,\n message,\n args: messageArgs.map(stringify),\n }))}`;\n}\n//# sourceMappingURL=index.js.map"],"x_google_ignoreList":[0],"mappings":";;;;AAKA,IAAM,IAAiB,uBACV,IAAb,MAAa,UAAuB,MAAM;CACtC,YAAY,IAAU,GAAgB;AAGlC,EAFA,MAAM,EAAQ,EACd,KAAK,OAAO,GACZ,OAAO,eAAe,MAAM,EAAe,UAAU;;GAGvD,IAAkB;CAAC;CAAS;CAAO;CAAQ;CAAS;CAAS,EAC/D,IAAiB,EAAgB,QAA0B,SAAS;AACxE,SAAgB,EAAU,GAAW,GAAG,GAAM;AAC1C,KAAI,CAAC,EACD,OAAM,EAAkB,GAAG,EAAK;;AAGxC,SAAS,EAAkB,GAAM;AAC7B,QAAO,SAAU,GAAS,GAAG,GAAM;AAC/B,MAAI,EAAgB,QAAQ,EAAK,IAAI,GAAgB;GAGjD,IAAM,IAAS,QAAQ,MAAS,QAAQ;AACxC,OAAI,OAAO,KAAY,UAAU;IAC7B,IAAM,IAAO;AAEb,IADA,IAAU,EAAmB,EAAK,EAC7B,MACD,IAAU,EAAoB,GAAM,EAAK,EACzC,IAAO,EAAE;;AAGjB,KAAO,GAAS,GAAG,EAAK;;;;AAIpC,EAAU,QAAQ,EAAkB,QAAQ,EAC5C,EAAU,MAAM,EAAkB,MAAM,EACxC,EAAU,OAAO,EAAkB,OAAO,EAC1C,EAAU,QAAQ,EAAkB,QAAQ;AAgB5C,SAAgB,EAAkB,GAAS,GAAG,GAAgB;AAC1D,QAAO,IAAI,EAAe,EAAmB,GAAS,EAAe,IACjE,EAAoB,GAAS,EAAe,CAAC;;AAGrD,IAAa,IAA4B,OAAO,IAAI,+BAA+B,EAAQ;AAC3F,SAAS,EAAU,GAAK;AACpB,KAAI,OAAO,KAAO,SACd,QAAO;AAEX,KAAI;AACA,SAAO,EAAoB,GAAK,EAAE,CAAC,MAAM,GAAG,IAAK;SAE/C;AACF,SAAO;;;AAGf,SAAS,EAAmB,GAAS,IAAc,EAAE,EAAE;AAC9C,OAEL,QAAQA,EAAO,MACXA,EAAO,GAA2B,GAAS,EAAY,IAAI,EAAU,CAAC;;AAE9E,SAAS,EAAoB,GAAS,IAAc,EAAE,EAAE;AAC/C,OAKL,QAHI,OAAO,KAAY,WACZ,EAAY,QAAQ,GAAK,MAAQ,EAAI,QAAQ,WAAW,EAAU,EAAI,CAAC,EAAE,EAAQ,GAErF,+FAA+F,mBAAmB,KAAK,UAAU;EACpI;EACA;EACA,MAAM,EAAY,IAAI,EAAU;EACnC,CAAC,CAAC"}
@@ -0,0 +1,6 @@
1
+ //#region node_modules/@apollo/client/version.js
2
+ var e = "4.1.9";
3
+ //#endregion
4
+ export { e as version };
5
+
6
+ //# sourceMappingURL=version.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"version.js","names":[],"sources":["../../../../node_modules/@apollo/client/version.js"],"sourcesContent":["export const version = \"4.1.9\";\nexport const build = \"esm\";\n//# sourceMappingURL=version.js.map\n"],"x_google_ignoreList":[0],"mappings":";AAAA,IAAa,IAAU"}
@@ -0,0 +1,67 @@
1
+ //#region node_modules/@wry/caches/lib/weak.js
2
+ function e() {}
3
+ var t = e, n = typeof WeakRef < "u" ? WeakRef : function(e) {
4
+ return { deref: () => e };
5
+ }, r = typeof WeakMap < "u" ? WeakMap : Map, i = typeof FinalizationRegistry < "u" ? FinalizationRegistry : function() {
6
+ return {
7
+ register: e,
8
+ unregister: e
9
+ };
10
+ }, a = 10024, o = class {
11
+ constructor(e = Infinity, o = t) {
12
+ this.max = e, this.dispose = o, this.map = new r(), this.newest = null, this.oldest = null, this.unfinalizedNodes = /* @__PURE__ */ new Set(), this.finalizationScheduled = !1, this.size = 0, this.finalize = () => {
13
+ let e = this.unfinalizedNodes.values();
14
+ for (let t = 0; t < a; t++) {
15
+ let t = e.next().value;
16
+ if (!t) break;
17
+ this.unfinalizedNodes.delete(t);
18
+ let r = t.key;
19
+ delete t.key, t.keyRef = new n(r), this.registry.register(r, t, t);
20
+ }
21
+ this.unfinalizedNodes.size > 0 ? queueMicrotask(this.finalize) : this.finalizationScheduled = !1;
22
+ }, this.registry = new i(this.deleteNode.bind(this));
23
+ }
24
+ has(e) {
25
+ return this.map.has(e);
26
+ }
27
+ get(e) {
28
+ let t = this.getNode(e);
29
+ return t && t.value;
30
+ }
31
+ getNode(e) {
32
+ let t = this.map.get(e);
33
+ if (t && t !== this.newest) {
34
+ let { older: e, newer: n } = t;
35
+ n && (n.older = e), e && (e.newer = n), t.older = this.newest, t.older.newer = t, t.newer = null, this.newest = t, t === this.oldest && (this.oldest = n);
36
+ }
37
+ return t;
38
+ }
39
+ set(e, t) {
40
+ let n = this.getNode(e);
41
+ return n ? n.value = t : (n = {
42
+ key: e,
43
+ value: t,
44
+ newer: null,
45
+ older: this.newest
46
+ }, this.newest && (this.newest.newer = n), this.newest = n, this.oldest = this.oldest || n, this.scheduleFinalization(n), this.map.set(e, n), this.size++, n.value);
47
+ }
48
+ clean() {
49
+ for (; this.oldest && this.size > this.max;) this.deleteNode(this.oldest);
50
+ }
51
+ deleteNode(e) {
52
+ e === this.newest && (this.newest = e.older), e === this.oldest && (this.oldest = e.newer), e.newer && (e.newer.older = e.older), e.older && (e.older.newer = e.newer), this.size--;
53
+ let t = e.key || e.keyRef && e.keyRef.deref();
54
+ this.dispose(e.value, t), e.keyRef ? this.registry.unregister(e) : this.unfinalizedNodes.delete(e), t && this.map.delete(t);
55
+ }
56
+ delete(e) {
57
+ let t = this.map.get(e);
58
+ return t ? (this.deleteNode(t), !0) : !1;
59
+ }
60
+ scheduleFinalization(e) {
61
+ this.unfinalizedNodes.add(e), this.finalizationScheduled || (this.finalizationScheduled = !0, queueMicrotask(this.finalize));
62
+ }
63
+ };
64
+ //#endregion
65
+ export { o as WeakCache };
66
+
67
+ //# sourceMappingURL=weak.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"weak.js","names":[],"sources":["../../../../../node_modules/@wry/caches/lib/weak.js"],"sourcesContent":["function noop() { }\nconst defaultDispose = noop;\nconst _WeakRef = typeof WeakRef !== \"undefined\"\n ? WeakRef\n : function (value) {\n return { deref: () => value };\n };\nconst _WeakMap = typeof WeakMap !== \"undefined\" ? WeakMap : Map;\nconst _FinalizationRegistry = typeof FinalizationRegistry !== \"undefined\"\n ? FinalizationRegistry\n : function () {\n return {\n register: noop,\n unregister: noop,\n };\n };\nconst finalizationBatchSize = 10024;\nexport class WeakCache {\n constructor(max = Infinity, dispose = defaultDispose) {\n this.max = max;\n this.dispose = dispose;\n this.map = new _WeakMap();\n this.newest = null;\n this.oldest = null;\n this.unfinalizedNodes = new Set();\n this.finalizationScheduled = false;\n this.size = 0;\n this.finalize = () => {\n const iterator = this.unfinalizedNodes.values();\n for (let i = 0; i < finalizationBatchSize; i++) {\n const node = iterator.next().value;\n if (!node)\n break;\n this.unfinalizedNodes.delete(node);\n const key = node.key;\n delete node.key;\n node.keyRef = new _WeakRef(key);\n this.registry.register(key, node, node);\n }\n if (this.unfinalizedNodes.size > 0) {\n queueMicrotask(this.finalize);\n }\n else {\n this.finalizationScheduled = false;\n }\n };\n this.registry = new _FinalizationRegistry(this.deleteNode.bind(this));\n }\n has(key) {\n return this.map.has(key);\n }\n get(key) {\n const node = this.getNode(key);\n return node && node.value;\n }\n getNode(key) {\n const node = this.map.get(key);\n if (node && node !== this.newest) {\n const { older, newer } = node;\n if (newer) {\n newer.older = older;\n }\n if (older) {\n older.newer = newer;\n }\n node.older = this.newest;\n node.older.newer = node;\n node.newer = null;\n this.newest = node;\n if (node === this.oldest) {\n this.oldest = newer;\n }\n }\n return node;\n }\n set(key, value) {\n let node = this.getNode(key);\n if (node) {\n return (node.value = value);\n }\n node = {\n key,\n value,\n newer: null,\n older: this.newest,\n };\n if (this.newest) {\n this.newest.newer = node;\n }\n this.newest = node;\n this.oldest = this.oldest || node;\n this.scheduleFinalization(node);\n this.map.set(key, node);\n this.size++;\n return node.value;\n }\n clean() {\n while (this.oldest && this.size > this.max) {\n this.deleteNode(this.oldest);\n }\n }\n deleteNode(node) {\n if (node === this.newest) {\n this.newest = node.older;\n }\n if (node === this.oldest) {\n this.oldest = node.newer;\n }\n if (node.newer) {\n node.newer.older = node.older;\n }\n if (node.older) {\n node.older.newer = node.newer;\n }\n this.size--;\n const key = node.key || (node.keyRef && node.keyRef.deref());\n this.dispose(node.value, key);\n if (!node.keyRef) {\n this.unfinalizedNodes.delete(node);\n }\n else {\n this.registry.unregister(node);\n }\n if (key)\n this.map.delete(key);\n }\n delete(key) {\n const node = this.map.get(key);\n if (node) {\n this.deleteNode(node);\n return true;\n }\n return false;\n }\n scheduleFinalization(node) {\n this.unfinalizedNodes.add(node);\n if (!this.finalizationScheduled) {\n this.finalizationScheduled = true;\n queueMicrotask(this.finalize);\n }\n }\n}\n//# sourceMappingURL=weak.js.map"],"x_google_ignoreList":[0],"mappings":";AAAA,SAAS,IAAO;AAChB,IAAM,IAAiB,GACjB,IAAW,OAAO,UAAY,MAC9B,UACA,SAAU,GAAO;AACf,QAAO,EAAE,aAAa,GAAO;GAE/B,IAAW,OAAO,UAAY,MAAc,UAAU,KACtD,IAAwB,OAAO,uBAAyB,MACxD,uBACA,WAAY;AACV,QAAO;EACH,UAAU;EACV,YAAY;EACf;GAEH,IAAwB,OACjB,IAAb,MAAuB;CACnB,YAAY,IAAM,UAAU,IAAU,GAAgB;AA4BlD,EA3BA,KAAK,MAAM,GACX,KAAK,UAAU,GACf,KAAK,MAAM,IAAI,GAAU,EACzB,KAAK,SAAS,MACd,KAAK,SAAS,MACd,KAAK,mCAAmB,IAAI,KAAK,EACjC,KAAK,wBAAwB,IAC7B,KAAK,OAAO,GACZ,KAAK,iBAAiB;GAClB,IAAM,IAAW,KAAK,iBAAiB,QAAQ;AAC/C,QAAK,IAAI,IAAI,GAAG,IAAI,GAAuB,KAAK;IAC5C,IAAM,IAAO,EAAS,MAAM,CAAC;AAC7B,QAAI,CAAC,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AK,SAAS,EAAK,QAEnB,MAAS,KAAK,WACd,KAAK,SAAS,EAAK,QAEnB,EAAK,UACL,EAAK,MAAM,QAAQ,EAAK,QAExB,EAAK,UACL,EAAK,MAAM,QAAQ,EAAK,QAE5B,KAAK;EACL,IAAM,IAAM,EAAK,OAAQ,EAAK,UAAU,EAAK,OAAO,OAAO;AAQ3D,EAPA,KAAK,QAAQ,EAAK,OAAO,EAAI,EACxB,EAAK,SAIN,KAAK,SAAS,WAAW,EAAK,GAH9B,KAAK,iBAAiB,OAAO,EAAK,EAKlC,KACA,KAAK,IAAI,OAAO,EAAI;;CAE5B,OAAO,GAAK;EACR,IAAM,IAAO,KAAK,IAAI,IAAI,EAAI;AAK9B,SAJI,KACA,KAAK,WAAW,EAAK,EACd,MAEJ;;CAEX,qBAAqB,GAAM;AAEvB,EADA,KAAK,iBAAiB,IAAI,EAAK,EAC1B,KAAK,0BACN,KAAK,wBAAwB,IAC7B,eAAe,KAAK,SAAS"}
@@ -0,0 +1,53 @@
1
+ //#region node_modules/@wry/trie/lib/index.js
2
+ var e = () => Object.create(null), { forEach: t, slice: n } = Array.prototype, { hasOwnProperty: r } = Object.prototype, i = class i {
3
+ constructor(t = !0, n = e) {
4
+ this.weakness = t, this.makeData = n;
5
+ }
6
+ lookup() {
7
+ return this.lookupArray(arguments);
8
+ }
9
+ lookupArray(e) {
10
+ let i = this;
11
+ return t.call(e, (e) => i = i.getChildTrie(e)), r.call(i, "data") ? i.data : i.data = this.makeData(n.call(e));
12
+ }
13
+ peek() {
14
+ return this.peekArray(arguments);
15
+ }
16
+ peekArray(e) {
17
+ let t = this;
18
+ for (let n = 0, r = e.length; t && n < r; ++n) {
19
+ let r = t.mapFor(e[n], !1);
20
+ t = r && r.get(e[n]);
21
+ }
22
+ return t && t.data;
23
+ }
24
+ remove() {
25
+ return this.removeArray(arguments);
26
+ }
27
+ removeArray(e) {
28
+ let t;
29
+ if (e.length) {
30
+ let r = e[0], i = this.mapFor(r, !1), a = i && i.get(r);
31
+ a && (t = a.removeArray(n.call(e, 1)), !a.data && !a.weak && !(a.strong && a.strong.size) && i.delete(r));
32
+ } else t = this.data, delete this.data;
33
+ return t;
34
+ }
35
+ getChildTrie(e) {
36
+ let t = this.mapFor(e, !0), n = t.get(e);
37
+ return n || t.set(e, n = new i(this.weakness, this.makeData)), n;
38
+ }
39
+ mapFor(e, t) {
40
+ return this.weakness && a(e) ? this.weak || (t ? this.weak = /* @__PURE__ */ new WeakMap() : void 0) : this.strong || (t ? this.strong = /* @__PURE__ */ new Map() : void 0);
41
+ }
42
+ };
43
+ function a(e) {
44
+ switch (typeof e) {
45
+ case "object": if (e === null) break;
46
+ case "function": return !0;
47
+ }
48
+ return !1;
49
+ }
50
+ //#endregion
51
+ export { i as Trie };
52
+
53
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../../../node_modules/@wry/trie/lib/index.js"],"sourcesContent":["// A [trie](https://en.wikipedia.org/wiki/Trie) data structure that holds\n// object keys weakly, yet can also hold non-object keys, unlike the\n// native `WeakMap`.\n// If no makeData function is supplied, the looked-up data will be an empty,\n// null-prototype Object.\nconst defaultMakeData = () => Object.create(null);\n// Useful for processing arguments objects as well as arrays.\nconst { forEach, slice } = Array.prototype;\nconst { hasOwnProperty } = Object.prototype;\nexport class Trie {\n constructor(weakness = true, makeData = defaultMakeData) {\n this.weakness = weakness;\n this.makeData = makeData;\n }\n lookup() {\n return this.lookupArray(arguments);\n }\n lookupArray(array) {\n let node = this;\n forEach.call(array, key => node = node.getChildTrie(key));\n return hasOwnProperty.call(node, \"data\")\n ? node.data\n : node.data = this.makeData(slice.call(array));\n }\n peek() {\n return this.peekArray(arguments);\n }\n peekArray(array) {\n let node = this;\n for (let i = 0, len = array.length; node && i < len; ++i) {\n const map = node.mapFor(array[i], false);\n node = map && map.get(array[i]);\n }\n return node && node.data;\n }\n remove() {\n return this.removeArray(arguments);\n }\n removeArray(array) {\n let data;\n if (array.length) {\n const head = array[0];\n const map = this.mapFor(head, false);\n const child = map && map.get(head);\n if (child) {\n data = child.removeArray(slice.call(array, 1));\n if (!child.data && !child.weak && !(child.strong && child.strong.size)) {\n map.delete(head);\n }\n }\n }\n else {\n data = this.data;\n delete this.data;\n }\n return data;\n }\n getChildTrie(key) {\n const map = this.mapFor(key, true);\n let child = map.get(key);\n if (!child)\n map.set(key, child = new Trie(this.weakness, this.makeData));\n return child;\n }\n mapFor(key, create) {\n return this.weakness && isObjRef(key)\n ? this.weak || (create ? this.weak = new WeakMap : void 0)\n : this.strong || (create ? this.strong = new Map : void 0);\n }\n}\nfunction isObjRef(value) {\n switch (typeof value) {\n case \"object\":\n if (value === null)\n break;\n // Fall through to return true...\n case \"function\":\n return true;\n }\n return false;\n}\n//# sourceMappingURL=index.js.map"],"x_google_ignoreList":[0],"mappings":";AAKA,IAAM,UAAwB,OAAO,OAAO,KAAK,EAE3C,EAAE,YAAS,aAAU,MAAM,WAC3B,EAAE,sBAAmB,OAAO,WACrB,IAAb,MAAa,EAAK;CACd,YAAY,IAAW,IAAM,IAAW,GAAiB;AAErD,EADA,KAAK,WAAW,GAChB,KAAK,WAAW;;CAEpB,SAAS;AACL,SAAO,KAAK,YAAY,UAAU;;CAEtC,YAAY,GAAO;EACf,IAAI,IAAO;AAEX,SADA,EAAQ,KAAK,IAAO,MAAO,IAAO,EAAK,aAAa,EAAI,CAAC,EAClD,EAAe,KAAK,GAAM,OAAO,GAClC,EAAK,OACL,EAAK,OAAO,KAAK,SAAS,EAAM,KAAK,EAAM,CAAC;;CAEtD,OAAO;AACH,SAAO,KAAK,UAAU,UAAU;;CAEpC,UAAU,GAAO;EACb,IAAI,IAAO;AACX,OAAK,IAAI,IAAI,GAAG,IAAM,EAAM,QAAQ,KAAQ,IAAI,GAAK,EAAE,GAAG;GACtD,IAAM,IAAM,EAAK,OAAO,EAAM,IAAI,GAAM;AACxC,OAAO,KAAO,EAAI,IAAI,EAAM,GAAG;;AAEnC,SAAO,KAAQ,EAAK;;CAExB,SAAS;AACL,SAAO,KAAK,YAAY,UAAU;;CAEtC,YAAY,GAAO;EACf,IAAI;AACJ,MAAI,EAAM,QAAQ;GACd,IAAM,IAAO,EAAM,IACb,IAAM,KAAK,OAAO,GAAM,GAAM,EAC9B,IAAQ,KAAO,EAAI,IAAI,EAAK;AAClC,GAAI,MACA,IAAO,EAAM,YAAY,EAAM,KAAK,GAAO,EAAE,CAAC,EAC1C,CAAC,EAAM,QAAQ,CAAC,EAAM,QAAQ,EAAE,EAAM,UAAU,EAAM,OAAO,SAC7D,EAAI,OAAO,EAAK;QAMxB,CADA,IAAO,KAAK,MACZ,OAAO,KAAK;AAEhB,SAAO;;CAEX,aAAa,GAAK;EACd,IAAM,IAAM,KAAK,OAAO,GAAK,GAAK,EAC9B,IAAQ,EAAI,IAAI,EAAI;AAGxB,SAFK,KACD,EAAI,IAAI,GAAK,IAAQ,IAAI,EAAK,KAAK,UAAU,KAAK,SAAS,CAAC,EACzD;;CAEX,OAAO,GAAK,GAAQ;AAChB,SAAO,KAAK,YAAY,EAAS,EAAI,GAC/B,KAAK,SAAS,IAAS,KAAK,uBAAO,IAAI,SAAO,GAAG,KAAK,KACtD,KAAK,WAAW,IAAS,KAAK,yBAAS,IAAI,KAAG,GAAG,KAAK;;;AAGpE,SAAS,EAAS,GAAO;AACrB,SAAQ,OAAO,GAAf;EACI,KAAK,SACD,KAAI,MAAU,KACV;EAER,KAAK,WACD,QAAO;;AAEf,QAAO"}
@@ -0,0 +1,18 @@
1
+ //#region node_modules/clsx/dist/clsx.mjs
2
+ function e(t) {
3
+ var n, r, i = "";
4
+ if (typeof t == "string" || typeof t == "number") i += t;
5
+ else if (typeof t == "object") if (Array.isArray(t)) {
6
+ var a = t.length;
7
+ for (n = 0; n < a; n++) t[n] && (r = e(t[n])) && (i && (i += " "), i += r);
8
+ } else for (r in t) t[r] && (i && (i += " "), i += r);
9
+ return i;
10
+ }
11
+ function t() {
12
+ for (var t, n, r = 0, i = "", a = arguments.length; r < a; r++) (t = arguments[r]) && (n = e(t)) && (i && (i += " "), i += n);
13
+ return i;
14
+ }
15
+ //#endregion
16
+ export { t as default };
17
+
18
+ //# sourceMappingURL=clsx.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clsx.js","names":[],"sources":["../../../../node_modules/clsx/dist/clsx.mjs"],"sourcesContent":["function r(e){var t,f,n=\"\";if(\"string\"==typeof e||\"number\"==typeof e)n+=e;else if(\"object\"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=\" \"),n+=f)}else for(f in e)e[f]&&(n&&(n+=\" \"),n+=f);return n}export function clsx(){for(var e,t,f=0,n=\"\",o=arguments.length;f<o;f++)(e=arguments[f])&&(t=r(e))&&(n&&(n+=\" \"),n+=t);return n}export default clsx;"],"x_google_ignoreList":[0],"mappings":";AAAA,SAAS,EAAE,GAAE;CAAC,IAAI,GAAE,GAAE,IAAE;AAAG,KAAa,OAAO,KAAjB,YAA8B,OAAO,KAAjB,SAAmB,MAAG;UAAoB,OAAO,KAAjB,SAAmB,KAAG,MAAM,QAAQ,EAAE,EAAC;EAAC,IAAI,IAAE,EAAE;AAAO,OAAI,IAAE,GAAE,IAAE,GAAE,IAAI,GAAE,OAAK,IAAE,EAAE,EAAE,GAAG,MAAI,MAAI,KAAG,MAAK,KAAG;OAAQ,MAAI,KAAK,EAAE,GAAE,OAAK,MAAI,KAAG,MAAK,KAAG;AAAG,QAAO;;AAAE,SAAgB,IAAM;AAAC,MAAI,IAAI,GAAE,GAAE,IAAE,GAAE,IAAE,IAAG,IAAE,UAAU,QAAO,IAAE,GAAE,IAAI,EAAC,IAAE,UAAU,QAAM,IAAE,EAAE,EAAE,MAAI,MAAI,KAAG,MAAK,KAAG;AAAG,QAAO"}
@@ -0,0 +1,272 @@
1
+ import { CloseCode as e, MessageType as t, isObject as n, limitCloseReason as r, parseMessage as i, stringifyMessage as a } from "./common-CGW11Fyb.js";
2
+ //#region node_modules/graphql-ws/dist/client.js
3
+ function o(n) {
4
+ let { url: o, connectionParams: d, lazy: f = !0, onNonLazyError: p = console.error, lazyCloseTimeout: m = 0, keepAlive: h = 0, disablePong: g, connectionAckWaitTimeout: _ = 0, retryAttempts: v = 5, retryWait: y = async function(e) {
5
+ let t = 2 ** e;
6
+ await new Promise((e) => setTimeout(e, t * 1e3 + Math.floor(Math.random() * 2700 + 300)));
7
+ }, shouldRetry: b = c, on: x, webSocketImpl: S, generateID: C = function() {
8
+ return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (e) => {
9
+ let t = Math.random() * 16 | 0;
10
+ return (e == "x" ? t : t & 3 | 8).toString(16);
11
+ });
12
+ }, jsonMessageReplacer: w, jsonMessageReviver: T } = n, E;
13
+ if (S) {
14
+ if (!u(S)) throw Error("Invalid WebSocket implementation provided");
15
+ E = S;
16
+ } else typeof WebSocket < "u" ? E = WebSocket : typeof global < "u" ? E = global.WebSocket || global.MozWebSocket : typeof window < "u" && (E = window.WebSocket || window.MozWebSocket);
17
+ if (!E) throw Error("WebSocket implementation missing; on Node you can `import WebSocket from 'ws';` and pass `webSocketImpl: WebSocket` to `createClient`");
18
+ let D = E, O = (() => {
19
+ let e = /* @__PURE__ */ (() => {
20
+ let e = {};
21
+ return {
22
+ on(t, n) {
23
+ return e[t] = n, () => {
24
+ delete e[t];
25
+ };
26
+ },
27
+ emit(t) {
28
+ "id" in t && e[t.id]?.(t);
29
+ }
30
+ };
31
+ })(), t = {
32
+ connecting: x?.connecting ? [x.connecting] : [],
33
+ opened: x?.opened ? [x.opened] : [],
34
+ connected: x?.connected ? [x.connected] : [],
35
+ ping: x?.ping ? [x.ping] : [],
36
+ pong: x?.pong ? [x.pong] : [],
37
+ message: x?.message ? [e.emit, x.message] : [e.emit],
38
+ closed: x?.closed ? [x.closed] : [],
39
+ error: x?.error ? [x.error] : []
40
+ };
41
+ return {
42
+ onMessage: e.on,
43
+ on(e, n) {
44
+ let r = t[e];
45
+ return r.push(n), () => {
46
+ r.splice(r.indexOf(n), 1);
47
+ };
48
+ },
49
+ emit(e, ...n) {
50
+ for (let r of [...t[e]]) r(...n);
51
+ }
52
+ };
53
+ })();
54
+ function k(e) {
55
+ let t = [O.on("error", (n) => {
56
+ t.forEach((e) => e()), e(n);
57
+ }), O.on("closed", (n) => {
58
+ t.forEach((e) => e()), e(n);
59
+ })];
60
+ }
61
+ let A, j = 0, M, N = !1, P = 0, F = !1;
62
+ async function I() {
63
+ clearTimeout(M);
64
+ let [n, c] = await (A ??= new Promise((n, c) => (async () => {
65
+ if (N) {
66
+ if (await y(P), !j) return A = void 0, c({
67
+ code: 1e3,
68
+ reason: "All Subscriptions Gone"
69
+ });
70
+ P++;
71
+ }
72
+ O.emit("connecting", N);
73
+ let l = new D(typeof o == "function" ? await o() : o, "graphql-transport-ws"), u, f;
74
+ function p() {
75
+ isFinite(h) && h > 0 && (clearTimeout(f), f = setTimeout(() => {
76
+ l.readyState === D.OPEN && (l.send(a({ type: t.Ping })), O.emit("ping", !1, void 0));
77
+ }, h));
78
+ }
79
+ k((e) => {
80
+ A = void 0, clearTimeout(u), clearTimeout(f), c(e), e instanceof s && (l.close(4499, "Terminated"), l.onerror = null, l.onclose = null);
81
+ }), l.onerror = (e) => O.emit("error", e), l.onclose = (e) => O.emit("closed", e), l.onopen = async () => {
82
+ try {
83
+ O.emit("opened", l);
84
+ let n = typeof d == "function" ? await d() : d;
85
+ if (l.readyState !== D.OPEN) return;
86
+ l.send(a(n ? {
87
+ type: t.ConnectionInit,
88
+ payload: n
89
+ } : { type: t.ConnectionInit }, w)), isFinite(_) && _ > 0 && (u = setTimeout(() => {
90
+ l.close(e.ConnectionAcknowledgementTimeout, "Connection acknowledgement timeout");
91
+ }, _)), p();
92
+ } catch (t) {
93
+ O.emit("error", t), l.close(e.InternalClientError, r(t instanceof Error ? t.message : String(t), "Internal client error"));
94
+ }
95
+ };
96
+ let m = !1;
97
+ l.onmessage = ({ data: o }) => {
98
+ try {
99
+ let e = i(o, T);
100
+ if (O.emit("message", e), e.type === "ping" || e.type === "pong") {
101
+ O.emit(e.type, !0, e.payload), e.type === "pong" ? p() : g || (l.send(a(e.payload ? {
102
+ type: t.Pong,
103
+ payload: e.payload
104
+ } : { type: t.Pong })), O.emit("pong", !1, e.payload));
105
+ return;
106
+ }
107
+ if (m) return;
108
+ if (e.type !== t.ConnectionAck) throw Error(`First message cannot be of type ${e.type}`);
109
+ clearTimeout(u), m = !0, O.emit("connected", l, e.payload, N), N = !1, P = 0, n([l, new Promise((e, t) => k(t))]);
110
+ } catch (t) {
111
+ l.onmessage = null, O.emit("error", t), l.close(e.BadResponse, r(t instanceof Error ? t.message : String(t), "Bad response"));
112
+ }
113
+ };
114
+ })()));
115
+ n.readyState === D.CLOSING && await c;
116
+ let l = () => {}, u = new Promise((e) => l = e);
117
+ return [
118
+ n,
119
+ l,
120
+ Promise.race([u.then(() => {
121
+ if (!j) {
122
+ let e = () => n.close(1e3, "Normal Closure");
123
+ isFinite(m) && m > 0 ? M = setTimeout(() => {
124
+ n.readyState === D.OPEN && e();
125
+ }, m) : e();
126
+ }
127
+ }), c])
128
+ ];
129
+ }
130
+ function L(t) {
131
+ if (c(t) && (l(t.code) || [
132
+ e.InternalServerError,
133
+ e.InternalClientError,
134
+ e.BadRequest,
135
+ e.BadResponse,
136
+ e.Unauthorized,
137
+ e.SubprotocolNotAcceptable,
138
+ e.SubscriberAlreadyExists,
139
+ e.TooManyInitialisationRequests
140
+ ].includes(t.code))) throw t;
141
+ if (F) return !1;
142
+ if (c(t) && t.code === 1e3) return j > 0;
143
+ if (!v || P >= v || !b(t)) throw t;
144
+ return N = !0;
145
+ }
146
+ f || (async () => {
147
+ for (j++;;) try {
148
+ let [, , e] = await I();
149
+ await e;
150
+ } catch (e) {
151
+ try {
152
+ if (!L(e)) return;
153
+ } catch (e) {
154
+ return p?.(e);
155
+ }
156
+ }
157
+ })();
158
+ function R(e, n) {
159
+ let r = C(e), i = !1, o = !1, s = () => {
160
+ j--, i = !0;
161
+ };
162
+ return (async () => {
163
+ for (j++;;) try {
164
+ let [c, l, u] = await I();
165
+ if (i) return l();
166
+ let d = O.onMessage(r, (e) => {
167
+ switch (e.type) {
168
+ case t.Next:
169
+ n.next(e.payload);
170
+ return;
171
+ case t.Error:
172
+ o = !0, i = !0, n.error(e.payload), s();
173
+ return;
174
+ case t.Complete:
175
+ i = !0, s();
176
+ return;
177
+ }
178
+ });
179
+ c.send(a({
180
+ id: r,
181
+ type: t.Subscribe,
182
+ payload: e
183
+ }, w)), s = () => {
184
+ !i && c.readyState === D.OPEN && c.send(a({
185
+ id: r,
186
+ type: t.Complete
187
+ }, w)), j--, i = !0, l();
188
+ }, await u.finally(d);
189
+ return;
190
+ } catch (e) {
191
+ if (!L(e)) return;
192
+ }
193
+ })().then(() => {
194
+ o || n.complete();
195
+ }).catch((e) => {
196
+ n.error(e);
197
+ }), () => {
198
+ i || s();
199
+ };
200
+ }
201
+ return {
202
+ on: O.on,
203
+ subscribe: R,
204
+ iterate(e) {
205
+ let t = [], n = {
206
+ done: !1,
207
+ error: null,
208
+ resolve: () => {}
209
+ }, r = R(e, {
210
+ next(e) {
211
+ t.push(e), n.resolve();
212
+ },
213
+ error(e) {
214
+ n.done = !0, n.error = e, n.resolve();
215
+ },
216
+ complete() {
217
+ n.done = !0, n.resolve();
218
+ }
219
+ }), i = async function* () {
220
+ for (;;) {
221
+ for (t.length || await new Promise((e) => n.resolve = e); t.length;) yield t.shift();
222
+ if (n.error) throw n.error;
223
+ if (n.done) return;
224
+ }
225
+ }();
226
+ return i.throw = async (e) => (n.done || (n.done = !0, n.error = e, n.resolve()), {
227
+ done: !0,
228
+ value: void 0
229
+ }), i.return = async () => (r(), {
230
+ done: !0,
231
+ value: void 0
232
+ }), i;
233
+ },
234
+ async dispose() {
235
+ if (F = !0, A) {
236
+ let [e] = await A;
237
+ e.close(1e3, "Normal Closure");
238
+ }
239
+ },
240
+ terminate() {
241
+ A && O.emit("closed", new s());
242
+ }
243
+ };
244
+ }
245
+ var s = class extends Error {
246
+ name = "TerminatedCloseEvent";
247
+ message = "4499: Terminated";
248
+ code = 4499;
249
+ reason = "Terminated";
250
+ wasClean = !1;
251
+ };
252
+ function c(e) {
253
+ return n(e) && "code" in e && "reason" in e;
254
+ }
255
+ function l(e) {
256
+ return [
257
+ 1e3,
258
+ 1001,
259
+ 1006,
260
+ 1005,
261
+ 1012,
262
+ 1013,
263
+ 1014
264
+ ].includes(e) ? !1 : e >= 1e3 && e <= 1999;
265
+ }
266
+ function u(e) {
267
+ return typeof e == "function" && "constructor" in e && "CLOSED" in e && "CLOSING" in e && "CONNECTING" in e && "OPEN" in e;
268
+ }
269
+ //#endregion
270
+ export { o as createClient };
271
+
272
+ //# sourceMappingURL=client.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client.js","names":[],"sources":["../../../../node_modules/graphql-ws/dist/client.js"],"sourcesContent":["import { i as isObject, G as GRAPHQL_TRANSPORT_WS_PROTOCOL, s as stringifyMessage, M as MessageType, C as CloseCode, l as limitCloseReason, p as parseMessage } from './common-CGW11Fyb.js';\nexport { D as DEPRECATED_GRAPHQL_WS_PROTOCOL, v as validateMessage } from './common-CGW11Fyb.js';\n\nfunction createClient(options) {\n const {\n url,\n connectionParams,\n lazy = true,\n onNonLazyError = console.error,\n lazyCloseTimeout: lazyCloseTimeoutMs = 0,\n keepAlive = 0,\n disablePong,\n connectionAckWaitTimeout = 0,\n retryAttempts = 5,\n retryWait = async function randomisedExponentialBackoff(retries2) {\n const retryDelaySeconds = Math.pow(2, retries2);\n await new Promise(\n (resolve) => setTimeout(\n resolve,\n retryDelaySeconds * 1e3 + // add random timeout from 300ms to 3s\n Math.floor(Math.random() * (3e3 - 300) + 300)\n )\n );\n },\n shouldRetry = isLikeCloseEvent,\n on,\n webSocketImpl,\n /**\n * Generates a v4 UUID to be used as the ID using `Math`\n * as the random number generator. Supply your own generator\n * in case you need more uniqueness.\n *\n * Reference: https://gist.github.com/jed/982883\n */\n generateID = function generateUUID() {\n return \"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx\".replace(/[xy]/g, (c) => {\n const r = Math.random() * 16 | 0, v = c == \"x\" ? r : r & 3 | 8;\n return v.toString(16);\n });\n },\n jsonMessageReplacer: replacer,\n jsonMessageReviver: reviver\n } = options;\n let ws;\n if (webSocketImpl) {\n if (!isWebSocket(webSocketImpl)) {\n throw new Error(\"Invalid WebSocket implementation provided\");\n }\n ws = webSocketImpl;\n } else if (typeof WebSocket !== \"undefined\") {\n ws = WebSocket;\n } else if (typeof global !== \"undefined\") {\n ws = global.WebSocket || // @ts-expect-error: Support more browsers\n global.MozWebSocket;\n } else if (typeof window !== \"undefined\") {\n ws = window.WebSocket || // @ts-expect-error: Support more browsers\n window.MozWebSocket;\n }\n if (!ws)\n throw new Error(\n \"WebSocket implementation missing; on Node you can `import WebSocket from 'ws';` and pass `webSocketImpl: WebSocket` to `createClient`\"\n );\n const WebSocketImpl = ws;\n const emitter = (() => {\n const message = /* @__PURE__ */ (() => {\n const listeners2 = {};\n return {\n on(id, listener) {\n listeners2[id] = listener;\n return () => {\n delete listeners2[id];\n };\n },\n emit(message2) {\n if (\"id\" in message2) listeners2[message2.id]?.(message2);\n }\n };\n })();\n const listeners = {\n connecting: on?.connecting ? [on.connecting] : [],\n opened: on?.opened ? [on.opened] : [],\n connected: on?.connected ? [on.connected] : [],\n ping: on?.ping ? [on.ping] : [],\n pong: on?.pong ? [on.pong] : [],\n message: on?.message ? [message.emit, on.message] : [message.emit],\n closed: on?.closed ? [on.closed] : [],\n error: on?.error ? [on.error] : []\n };\n return {\n onMessage: message.on,\n on(event, listener) {\n const l = listeners[event];\n l.push(listener);\n return () => {\n l.splice(l.indexOf(listener), 1);\n };\n },\n emit(event, ...args) {\n for (const listener of [...listeners[event]]) {\n listener(...args);\n }\n }\n };\n })();\n function errorOrClosed(cb) {\n const listening = [\n // errors are fatal and more critical than close events, throw them first\n emitter.on(\"error\", (err) => {\n listening.forEach((unlisten) => unlisten());\n cb(err);\n }),\n // closes can be graceful and not fatal, throw them second (if error didnt throw)\n emitter.on(\"closed\", (event) => {\n listening.forEach((unlisten) => unlisten());\n cb(event);\n })\n ];\n }\n let connecting, locks = 0, lazyCloseTimeout, retrying = false, retries = 0, disposed = false;\n async function connect() {\n clearTimeout(lazyCloseTimeout);\n const [socket, throwOnClose] = await (connecting ?? (connecting = new Promise(\n (connected, denied) => (async () => {\n if (retrying) {\n await retryWait(retries);\n if (!locks) {\n connecting = void 0;\n return denied({ code: 1e3, reason: \"All Subscriptions Gone\" });\n }\n retries++;\n }\n emitter.emit(\"connecting\", retrying);\n const socket2 = new WebSocketImpl(\n typeof url === \"function\" ? await url() : url,\n GRAPHQL_TRANSPORT_WS_PROTOCOL\n );\n let connectionAckTimeout, queuedPing;\n function enqueuePing() {\n if (isFinite(keepAlive) && keepAlive > 0) {\n clearTimeout(queuedPing);\n queuedPing = setTimeout(() => {\n if (socket2.readyState === WebSocketImpl.OPEN) {\n socket2.send(stringifyMessage({ type: MessageType.Ping }));\n emitter.emit(\"ping\", false, void 0);\n }\n }, keepAlive);\n }\n }\n errorOrClosed((errOrEvent) => {\n connecting = void 0;\n clearTimeout(connectionAckTimeout);\n clearTimeout(queuedPing);\n denied(errOrEvent);\n if (errOrEvent instanceof TerminatedCloseEvent) {\n socket2.close(4499, \"Terminated\");\n socket2.onerror = null;\n socket2.onclose = null;\n }\n });\n socket2.onerror = (err) => emitter.emit(\"error\", err);\n socket2.onclose = (event) => emitter.emit(\"closed\", event);\n socket2.onopen = async () => {\n try {\n emitter.emit(\"opened\", socket2);\n const payload = typeof connectionParams === \"function\" ? await connectionParams() : connectionParams;\n if (socket2.readyState !== WebSocketImpl.OPEN) return;\n socket2.send(\n stringifyMessage(\n payload ? {\n type: MessageType.ConnectionInit,\n payload\n } : {\n type: MessageType.ConnectionInit\n // payload is completely absent if not provided\n },\n replacer\n )\n );\n if (isFinite(connectionAckWaitTimeout) && connectionAckWaitTimeout > 0) {\n connectionAckTimeout = setTimeout(() => {\n socket2.close(\n CloseCode.ConnectionAcknowledgementTimeout,\n \"Connection acknowledgement timeout\"\n );\n }, connectionAckWaitTimeout);\n }\n enqueuePing();\n } catch (err) {\n emitter.emit(\"error\", err);\n socket2.close(\n CloseCode.InternalClientError,\n limitCloseReason(\n err instanceof Error ? err.message : String(err),\n \"Internal client error\"\n )\n );\n }\n };\n let acknowledged = false;\n socket2.onmessage = ({ data }) => {\n try {\n const message = parseMessage(data, reviver);\n emitter.emit(\"message\", message);\n if (message.type === \"ping\" || message.type === \"pong\") {\n emitter.emit(message.type, true, message.payload);\n if (message.type === \"pong\") {\n enqueuePing();\n } else if (!disablePong) {\n socket2.send(\n stringifyMessage(\n message.payload ? {\n type: MessageType.Pong,\n payload: message.payload\n } : {\n type: MessageType.Pong\n // payload is completely absent if not provided\n }\n )\n );\n emitter.emit(\"pong\", false, message.payload);\n }\n return;\n }\n if (acknowledged) return;\n if (message.type !== MessageType.ConnectionAck)\n throw new Error(\n `First message cannot be of type ${message.type}`\n );\n clearTimeout(connectionAckTimeout);\n acknowledged = true;\n emitter.emit(\"connected\", socket2, message.payload, retrying);\n retrying = false;\n retries = 0;\n connected([\n socket2,\n new Promise((_, reject) => errorOrClosed(reject))\n ]);\n } catch (err) {\n socket2.onmessage = null;\n emitter.emit(\"error\", err);\n socket2.close(\n CloseCode.BadResponse,\n limitCloseReason(\n err instanceof Error ? err.message : String(err),\n \"Bad response\"\n )\n );\n }\n };\n })()\n )));\n if (socket.readyState === WebSocketImpl.CLOSING) await throwOnClose;\n let release = () => {\n };\n const released = new Promise((resolve) => release = resolve);\n return [\n socket,\n release,\n Promise.race([\n // wait for\n released.then(() => {\n if (!locks) {\n const complete = () => socket.close(1e3, \"Normal Closure\");\n if (isFinite(lazyCloseTimeoutMs) && lazyCloseTimeoutMs > 0) {\n lazyCloseTimeout = setTimeout(() => {\n if (socket.readyState === WebSocketImpl.OPEN) complete();\n }, lazyCloseTimeoutMs);\n } else {\n complete();\n }\n }\n }),\n // or\n throwOnClose\n ])\n ];\n }\n function shouldRetryConnectOrThrow(errOrCloseEvent) {\n if (isLikeCloseEvent(errOrCloseEvent) && (isFatalInternalCloseCode(errOrCloseEvent.code) || [\n CloseCode.InternalServerError,\n CloseCode.InternalClientError,\n CloseCode.BadRequest,\n CloseCode.BadResponse,\n CloseCode.Unauthorized,\n // CloseCode.Forbidden, might grant access out after retry\n CloseCode.SubprotocolNotAcceptable,\n // CloseCode.ConnectionInitialisationTimeout, might not time out after retry\n // CloseCode.ConnectionAcknowledgementTimeout, might not time out after retry\n CloseCode.SubscriberAlreadyExists,\n CloseCode.TooManyInitialisationRequests\n // 4499, // Terminated, probably because the socket froze, we want to retry\n ].includes(errOrCloseEvent.code)))\n throw errOrCloseEvent;\n if (disposed) return false;\n if (isLikeCloseEvent(errOrCloseEvent) && errOrCloseEvent.code === 1e3)\n return locks > 0;\n if (!retryAttempts || retries >= retryAttempts) throw errOrCloseEvent;\n if (!shouldRetry(errOrCloseEvent)) throw errOrCloseEvent;\n return retrying = true;\n }\n if (!lazy) {\n (async () => {\n locks++;\n for (; ; ) {\n try {\n const [, , throwOnClose] = await connect();\n await throwOnClose;\n } catch (errOrCloseEvent) {\n try {\n if (!shouldRetryConnectOrThrow(errOrCloseEvent)) return;\n } catch (errOrCloseEvent2) {\n return onNonLazyError?.(errOrCloseEvent2);\n }\n }\n }\n })();\n }\n function subscribe(payload, sink) {\n const id = generateID(payload);\n let done = false, errored = false, releaser = () => {\n locks--;\n done = true;\n };\n (async () => {\n locks++;\n for (; ; ) {\n try {\n const [socket, release, waitForReleaseOrThrowOnClose] = await connect();\n if (done) return release();\n const unlisten = emitter.onMessage(id, (message) => {\n switch (message.type) {\n case MessageType.Next: {\n sink.next(message.payload);\n return;\n }\n case MessageType.Error: {\n errored = true, done = true;\n sink.error(message.payload);\n releaser();\n return;\n }\n case MessageType.Complete: {\n done = true;\n releaser();\n return;\n }\n }\n });\n socket.send(\n stringifyMessage(\n {\n id,\n type: MessageType.Subscribe,\n payload\n },\n replacer\n )\n );\n releaser = () => {\n if (!done && socket.readyState === WebSocketImpl.OPEN)\n socket.send(\n stringifyMessage(\n {\n id,\n type: MessageType.Complete\n },\n replacer\n )\n );\n locks--;\n done = true;\n release();\n };\n await waitForReleaseOrThrowOnClose.finally(unlisten);\n return;\n } catch (errOrCloseEvent) {\n if (!shouldRetryConnectOrThrow(errOrCloseEvent)) return;\n }\n }\n })().then(() => {\n if (!errored) sink.complete();\n }).catch((err) => {\n sink.error(err);\n });\n return () => {\n if (!done) releaser();\n };\n }\n return {\n on: emitter.on,\n subscribe,\n iterate(request) {\n const pending = [];\n const deferred = {\n done: false,\n error: null,\n resolve: () => {\n }\n };\n const dispose = subscribe(request, {\n next(val) {\n pending.push(val);\n deferred.resolve();\n },\n error(err) {\n deferred.done = true;\n deferred.error = err;\n deferred.resolve();\n },\n complete() {\n deferred.done = true;\n deferred.resolve();\n }\n });\n const iterator = async function* iterator2() {\n for (; ; ) {\n if (!pending.length) {\n await new Promise((resolve) => deferred.resolve = resolve);\n }\n while (pending.length) {\n yield pending.shift();\n }\n if (deferred.error) {\n throw deferred.error;\n }\n if (deferred.done) {\n return;\n }\n }\n }();\n iterator.throw = async (err) => {\n if (!deferred.done) {\n deferred.done = true;\n deferred.error = err;\n deferred.resolve();\n }\n return { done: true, value: void 0 };\n };\n iterator.return = async () => {\n dispose();\n return { done: true, value: void 0 };\n };\n return iterator;\n },\n async dispose() {\n disposed = true;\n if (connecting) {\n const [socket] = await connecting;\n socket.close(1e3, \"Normal Closure\");\n }\n },\n terminate() {\n if (connecting) {\n emitter.emit(\"closed\", new TerminatedCloseEvent());\n }\n }\n };\n}\nclass TerminatedCloseEvent extends Error {\n name = \"TerminatedCloseEvent\";\n message = \"4499: Terminated\";\n code = 4499;\n reason = \"Terminated\";\n wasClean = false;\n}\nfunction isLikeCloseEvent(val) {\n return isObject(val) && \"code\" in val && \"reason\" in val;\n}\nfunction isFatalInternalCloseCode(code) {\n if ([\n 1e3,\n // Normal Closure is not an erroneous close code\n 1001,\n // Going Away\n 1006,\n // Abnormal Closure\n 1005,\n // No Status Received\n 1012,\n // Service Restart\n 1013,\n // Try Again Later\n 1014\n // Bad Gateway\n ].includes(code))\n return false;\n return code >= 1e3 && code <= 1999;\n}\nfunction isWebSocket(val) {\n return typeof val === \"function\" && \"constructor\" in val && \"CLOSED\" in val && \"CLOSING\" in val && \"CONNECTING\" in val && \"OPEN\" in val;\n}\n\nexport { CloseCode, GRAPHQL_TRANSPORT_WS_PROTOCOL, MessageType, TerminatedCloseEvent, createClient, parseMessage, stringifyMessage };\n"],"x_google_ignoreList":[0],"mappings":";;AAGA,SAAS,EAAa,GAAS;CAC7B,IAAM,EACJ,QACA,qBACA,UAAO,IACP,oBAAiB,QAAQ,OACzB,kBAAkB,IAAqB,GACvC,eAAY,GACZ,gBACA,8BAA2B,GAC3B,mBAAgB,GAChB,eAAY,eAA4C,GAAU;EAChE,IAAM,IAA6B,KAAG;AACtC,QAAM,IAAI,SACP,MAAY,WACX,GACA,IAAoB,MACpB,KAAK,MAAM,KAAK,QAAQ,GAAI,OAAa,IAAI,CAC9C,CACF;IAEH,iBAAc,GACd,OACA,kBAQA,gBAAa,WAAwB;AACnC,SAAO,uCAAuC,QAAQ,UAAU,MAAM;GACpE,IAAM,IAAI,KAAK,QAAQ,GAAG,KAAK;AAC/B,WADsC,KAAK,MAAM,IAAI,IAAI,IAAI,GACpD,SAAS,GAAG;IACrB;IAEJ,qBAAqB,GACrB,oBAAoB,MAClB,GACA;AACJ,KAAI,GAAe;AACjB,MAAI,CAAC,EAAY,EAAc,CAC7B,OAAU,MAAM,4CAA4C;AAE9D,MAAK;QACI,OAAO,YAAc,MAC9B,IAAK,YACI,OAAO,SAAW,MAC3B,IAAK,OAAO,aACZ,OAAO,eACE,OAAO,SAAW,QAC3B,IAAK,OAAO,aACZ,OAAO;AAET,KAAI,CA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AQ,QACb,OAAM,EAAQ,OAAO;AAEvB,SAAI,EAAS,MACX,OAAM,EAAS;AAEjB,SAAI,EAAS,KACX;;MAGH;AAaH,UAZA,EAAS,QAAQ,OAAO,OACjB,EAAS,SACZ,EAAS,OAAO,IAChB,EAAS,QAAQ,GACjB,EAAS,SAAS,GAEb;IAAE,MAAM;IAAM,OAAO,KAAK;IAAG,GAEtC,EAAS,SAAS,aAChB,GAAS,EACF;IAAE,MAAM;IAAM,OAAO,KAAK;IAAG,GAE/B;;EAET,MAAM,UAAU;AAEd,OADA,IAAW,IACP,GAAY;IACd,IAAM,CAAC,KAAU,MAAM;AACvB,MAAO,MAAM,KAAK,iBAAiB;;;EAGvC,YAAY;AACV,GAAI,KACF,EAAQ,KAAK,UAAU,IAAI,GAAsB,CAAC;;EAGvD;;AAEH,IAAM,IAAN,cAAmC,MAAM;CACvC,OAAO;CACP,UAAU;CACV,OAAO;CACP,SAAS;CACT,WAAW;;AAEb,SAAS,EAAiB,GAAK;AAC7B,QAAO,EAAS,EAAI,IAAI,UAAU,KAAO,YAAY;;AAEvD,SAAS,EAAyB,GAAM;AAkBtC,QAjBI;EACF;EAEA;EAEA;EAEA;EAEA;EAEA;EAEA;EAED,CAAC,SAAS,EAAK,GACP,KACF,KAAQ,OAAO,KAAQ;;AAEhC,SAAS,EAAY,GAAK;AACxB,QAAO,OAAO,KAAQ,cAAc,iBAAiB,KAAO,YAAY,KAAO,aAAa,KAAO,gBAAgB,KAAO,UAAU"}
@@ -0,0 +1,62 @@
1
+ //#region node_modules/graphql-ws/dist/common-CGW11Fyb.js
2
+ function e(e) {
3
+ return e === null ? "null" : Array.isArray(e) ? "array" : typeof e;
4
+ }
5
+ function t(t) {
6
+ return e(t) === "object";
7
+ }
8
+ function n(e) {
9
+ return Array.isArray(e) && e.length > 0 && e.every((e) => "message" in e);
10
+ }
11
+ function r(e, t) {
12
+ return e.length < 124 ? e : t;
13
+ }
14
+ var i = "graphql-transport-ws", a = /* @__PURE__ */ ((e) => (e[e.InternalServerError = 4500] = "InternalServerError", e[e.InternalClientError = 4005] = "InternalClientError", e[e.BadRequest = 4400] = "BadRequest", e[e.BadResponse = 4004] = "BadResponse", e[e.Unauthorized = 4401] = "Unauthorized", e[e.Forbidden = 4403] = "Forbidden", e[e.SubprotocolNotAcceptable = 4406] = "SubprotocolNotAcceptable", e[e.ConnectionInitialisationTimeout = 4408] = "ConnectionInitialisationTimeout", e[e.ConnectionAcknowledgementTimeout = 4504] = "ConnectionAcknowledgementTimeout", e[e.SubscriberAlreadyExists = 4409] = "SubscriberAlreadyExists", e[e.TooManyInitialisationRequests = 4429] = "TooManyInitialisationRequests", e))(a || {}), o = /* @__PURE__ */ ((e) => (e.ConnectionInit = "connection_init", e.ConnectionAck = "connection_ack", e.Ping = "ping", e.Pong = "pong", e.Subscribe = "subscribe", e.Next = "next", e.Error = "error", e.Complete = "complete", e))(o || {});
15
+ function s(r) {
16
+ if (!t(r)) throw Error(`Message is expected to be an object, but got ${e(r)}`);
17
+ if (!r.type) throw Error("Message is missing the 'type' property");
18
+ if (typeof r.type != "string") throw Error(`Message is expects the 'type' property to be a string, but got ${e(r.type)}`);
19
+ switch (r.type) {
20
+ case "connection_init":
21
+ case "connection_ack":
22
+ case "ping":
23
+ case "pong":
24
+ if (r.payload != null && !t(r.payload)) throw Error(`"${r.type}" message expects the 'payload' property to be an object or nullish or missing, but got "${r.payload}"`);
25
+ break;
26
+ case "subscribe":
27
+ if (typeof r.id != "string") throw Error(`"${r.type}" message expects the 'id' property to be a string, but got ${e(r.id)}`);
28
+ if (!r.id) throw Error(`"${r.type}" message requires a non-empty 'id' property`);
29
+ if (!t(r.payload)) throw Error(`"${r.type}" message expects the 'payload' property to be an object, but got ${e(r.payload)}`);
30
+ if (typeof r.payload.query != "string") throw Error(`"${r.type}" message payload expects the 'query' property to be a string, but got ${e(r.payload.query)}`);
31
+ if (r.payload.variables != null && !t(r.payload.variables)) throw Error(`"${r.type}" message payload expects the 'variables' property to be a an object or nullish or missing, but got ${e(r.payload.variables)}`);
32
+ if (r.payload.operationName != null && e(r.payload.operationName) !== "string") throw Error(`"${r.type}" message payload expects the 'operationName' property to be a string or nullish or missing, but got ${e(r.payload.operationName)}`);
33
+ if (r.payload.extensions != null && !t(r.payload.extensions)) throw Error(`"${r.type}" message payload expects the 'extensions' property to be a an object or nullish or missing, but got ${e(r.payload.extensions)}`);
34
+ break;
35
+ case "next":
36
+ if (typeof r.id != "string") throw Error(`"${r.type}" message expects the 'id' property to be a string, but got ${e(r.id)}`);
37
+ if (!r.id) throw Error(`"${r.type}" message requires a non-empty 'id' property`);
38
+ if (!t(r.payload)) throw Error(`"${r.type}" message expects the 'payload' property to be an object, but got ${e(r.payload)}`);
39
+ break;
40
+ case "error":
41
+ if (typeof r.id != "string") throw Error(`"${r.type}" message expects the 'id' property to be a string, but got ${e(r.id)}`);
42
+ if (!r.id) throw Error(`"${r.type}" message requires a non-empty 'id' property`);
43
+ if (!n(r.payload)) throw Error(`"${r.type}" message expects the 'payload' property to be an array of GraphQL errors, but got ${JSON.stringify(r.payload)}`);
44
+ break;
45
+ case "complete":
46
+ if (typeof r.id != "string") throw Error(`"${r.type}" message expects the 'id' property to be a string, but got ${e(r.id)}`);
47
+ if (!r.id) throw Error(`"${r.type}" message requires a non-empty 'id' property`);
48
+ break;
49
+ default: throw Error(`Invalid message 'type' property "${r.type}"`);
50
+ }
51
+ return r;
52
+ }
53
+ function c(e, t) {
54
+ return s(typeof e == "string" ? JSON.parse(e, t) : e);
55
+ }
56
+ function l(e, t) {
57
+ return s(e), JSON.stringify(e, t);
58
+ }
59
+ //#endregion
60
+ export { a as CloseCode, i as GRAPHQL_TRANSPORT_WS_PROTOCOL, o as MessageType, t as isObject, r as limitCloseReason, c as parseMessage, l as stringifyMessage, s as validateMessage };
61
+
62
+ //# sourceMappingURL=common-CGW11Fyb.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"common-CGW11Fyb.js","names":[],"sources":["../../../../node_modules/graphql-ws/dist/common-CGW11Fyb.js"],"sourcesContent":["function extendedTypeof(val) {\n if (val === null) {\n return \"null\";\n }\n if (Array.isArray(val)) {\n return \"array\";\n }\n return typeof val;\n}\nfunction isObject(val) {\n return extendedTypeof(val) === \"object\";\n}\nfunction isAsyncIterable(val) {\n return typeof Object(val)[Symbol.asyncIterator] === \"function\";\n}\nfunction isAsyncGenerator(val) {\n return isObject(val) && typeof Object(val)[Symbol.asyncIterator] === \"function\" && typeof val.return === \"function\";\n}\nfunction areGraphQLFormattedErrors(obj) {\n return Array.isArray(obj) && // must be at least one error\n obj.length > 0 && // error has at least a message\n obj.every((ob) => \"message\" in ob);\n}\nfunction limitCloseReason(reason, whenTooLong) {\n return reason.length < 124 ? reason : whenTooLong;\n}\n\nconst GRAPHQL_TRANSPORT_WS_PROTOCOL = \"graphql-transport-ws\";\nconst DEPRECATED_GRAPHQL_WS_PROTOCOL = \"graphql-ws\";\nvar CloseCode = /* @__PURE__ */ ((CloseCode2) => {\n CloseCode2[CloseCode2[\"InternalServerError\"] = 4500] = \"InternalServerError\";\n CloseCode2[CloseCode2[\"InternalClientError\"] = 4005] = \"InternalClientError\";\n CloseCode2[CloseCode2[\"BadRequest\"] = 4400] = \"BadRequest\";\n CloseCode2[CloseCode2[\"BadResponse\"] = 4004] = \"BadResponse\";\n CloseCode2[CloseCode2[\"Unauthorized\"] = 4401] = \"Unauthorized\";\n CloseCode2[CloseCode2[\"Forbidden\"] = 4403] = \"Forbidden\";\n CloseCode2[CloseCode2[\"SubprotocolNotAcceptable\"] = 4406] = \"SubprotocolNotAcceptable\";\n CloseCode2[CloseCode2[\"ConnectionInitialisationTimeout\"] = 4408] = \"ConnectionInitialisationTimeout\";\n CloseCode2[CloseCode2[\"ConnectionAcknowledgementTimeout\"] = 4504] = \"ConnectionAcknowledgementTimeout\";\n CloseCode2[CloseCode2[\"SubscriberAlreadyExists\"] = 4409] = \"SubscriberAlreadyExists\";\n CloseCode2[CloseCode2[\"TooManyInitialisationRequests\"] = 4429] = \"TooManyInitialisationRequests\";\n return CloseCode2;\n})(CloseCode || {});\nvar MessageType = /* @__PURE__ */ ((MessageType2) => {\n MessageType2[\"ConnectionInit\"] = \"connection_init\";\n MessageType2[\"ConnectionAck\"] = \"connection_ack\";\n MessageType2[\"Ping\"] = \"ping\";\n MessageType2[\"Pong\"] = \"pong\";\n MessageType2[\"Subscribe\"] = \"subscribe\";\n MessageType2[\"Next\"] = \"next\";\n MessageType2[\"Error\"] = \"error\";\n MessageType2[\"Complete\"] = \"complete\";\n return MessageType2;\n})(MessageType || {});\nfunction validateMessage(val) {\n if (!isObject(val)) {\n throw new Error(\n `Message is expected to be an object, but got ${extendedTypeof(val)}`\n );\n }\n if (!val.type) {\n throw new Error(`Message is missing the 'type' property`);\n }\n if (typeof val.type !== \"string\") {\n throw new Error(\n `Message is expects the 'type' property to be a string, but got ${extendedTypeof(\n val.type\n )}`\n );\n }\n switch (val.type) {\n case \"connection_init\" /* ConnectionInit */:\n case \"connection_ack\" /* ConnectionAck */:\n case \"ping\" /* Ping */:\n case \"pong\" /* Pong */: {\n if (val.payload != null && !isObject(val.payload)) {\n throw new Error(\n `\"${val.type}\" message expects the 'payload' property to be an object or nullish or missing, but got \"${val.payload}\"`\n );\n }\n break;\n }\n case \"subscribe\" /* Subscribe */: {\n if (typeof val.id !== \"string\") {\n throw new Error(\n `\"${val.type}\" message expects the 'id' property to be a string, but got ${extendedTypeof(\n val.id\n )}`\n );\n }\n if (!val.id) {\n throw new Error(\n `\"${val.type}\" message requires a non-empty 'id' property`\n );\n }\n if (!isObject(val.payload)) {\n throw new Error(\n `\"${val.type}\" message expects the 'payload' property to be an object, but got ${extendedTypeof(\n val.payload\n )}`\n );\n }\n if (typeof val.payload.query !== \"string\") {\n throw new Error(\n `\"${val.type}\" message payload expects the 'query' property to be a string, but got ${extendedTypeof(\n val.payload.query\n )}`\n );\n }\n if (val.payload.variables != null && !isObject(val.payload.variables)) {\n throw new Error(\n `\"${val.type}\" message payload expects the 'variables' property to be a an object or nullish or missing, but got ${extendedTypeof(\n val.payload.variables\n )}`\n );\n }\n if (val.payload.operationName != null && extendedTypeof(val.payload.operationName) !== \"string\") {\n throw new Error(\n `\"${val.type}\" message payload expects the 'operationName' property to be a string or nullish or missing, but got ${extendedTypeof(\n val.payload.operationName\n )}`\n );\n }\n if (val.payload.extensions != null && !isObject(val.payload.extensions)) {\n throw new Error(\n `\"${val.type}\" message payload expects the 'extensions' property to be a an object or nullish or missing, but got ${extendedTypeof(\n val.payload.extensions\n )}`\n );\n }\n break;\n }\n case \"next\" /* Next */: {\n if (typeof val.id !== \"string\") {\n throw new Error(\n `\"${val.type}\" message expects the 'id' property to be a string, but got ${extendedTypeof(\n val.id\n )}`\n );\n }\n if (!val.id) {\n throw new Error(\n `\"${val.type}\" message requires a non-empty 'id' property`\n );\n }\n if (!isObject(val.payload)) {\n throw new Error(\n `\"${val.type}\" message expects the 'payload' property to be an object, but got ${extendedTypeof(\n val.payload\n )}`\n );\n }\n break;\n }\n case \"error\" /* Error */: {\n if (typeof val.id !== \"string\") {\n throw new Error(\n `\"${val.type}\" message expects the 'id' property to be a string, but got ${extendedTypeof(\n val.id\n )}`\n );\n }\n if (!val.id) {\n throw new Error(\n `\"${val.type}\" message requires a non-empty 'id' property`\n );\n }\n if (!areGraphQLFormattedErrors(val.payload)) {\n throw new Error(\n `\"${val.type}\" message expects the 'payload' property to be an array of GraphQL errors, but got ${JSON.stringify(\n val.payload\n )}`\n );\n }\n break;\n }\n case \"complete\" /* Complete */: {\n if (typeof val.id !== \"string\") {\n throw new Error(\n `\"${val.type}\" message expects the 'id' property to be a string, but got ${extendedTypeof(\n val.id\n )}`\n );\n }\n if (!val.id) {\n throw new Error(\n `\"${val.type}\" message requires a non-empty 'id' property`\n );\n }\n break;\n }\n default:\n throw new Error(`Invalid message 'type' property \"${val.type}\"`);\n }\n return val;\n}\nfunction parseMessage(data, reviver) {\n return validateMessage(\n typeof data === \"string\" ? JSON.parse(data, reviver) : data\n );\n}\nfunction stringifyMessage(msg, replacer) {\n validateMessage(msg);\n return JSON.stringify(msg, replacer);\n}\n\nexport { CloseCode as C, DEPRECATED_GRAPHQL_WS_PROTOCOL as D, GRAPHQL_TRANSPORT_WS_PROTOCOL as G, MessageType as M, isAsyncGenerator as a, isAsyncIterable as b, isObject as i, limitCloseReason as l, parseMessage as p, stringifyMessage as s, validateMessage as v };\n"],"x_google_ignoreList":[0],"mappings":";AAAA,SAAS,EAAe,GAAK;AAO3B,QANI,MAAQ,OACH,SAEL,MAAM,QAAQ,EAAI,GACb,UAEF,OAAO;;AAEhB,SAAS,EAAS,GAAK;AACrB,QAAO,EAAe,EAAI,KAAK;;AAQjC,SAAS,EAA0B,GAAK;AACtC,QAAO,MAAM,QAAQ,EAAI,IACzB,EAAI,SAAS,KACb,EAAI,OAAO,MAAO,aAAa,EAAG;;AAEpC,SAAS,EAAiB,GAAQ,GAAa;AAC7C,QAAO,EAAO,SAAS,MAAM,IAAS;;AAGxC,IAAM,IAAgC,wBAElC,IAA4B,kBAAE,OAChC,EAAW,EAAW,sBAAyB,QAAQ,uBACvD,EAAW,EAAW,sBAAyB,QAAQ,uBACvD,EAAW,EAAW,aAAgB,QAAQ,cAC9C,EAAW,EAAW,cAAiB,QAAQ,eAC/C,EAAW,EAAW,eAAkB,QAAQ,gBAChD,EAAW,EAAW,YAAe,QAAQ,aAC7C,EAAW,EAAW,2BAA8B,QAAQ,4BAC5D,EAAW,EAAW,kCAAqC,QAAQ,mCACnE,EAAW,EAAW,mCAAsC,QAAQ,oCACpE,EAAW,EAAW,0BAA6B,QAAQ,2BAC3D,EAAW,EAAW,gCAAmC,QAAQ,iCAC1D,IACN,KAAa,EAAE,CAAC,EACf,IAA8B,kBAAE,OAClC,EAAa,iBAAoB,mBACjC,EAAa,gBAAmB,kBAChC,EAAa,OAAU,QACvB,EAAa,OAAU,QACvB,EAAa,YAAe,aAC5B,EAAa,OAAU,QACvB,EAAa,QAAW,SACxB,EAAa,WAAc,YACp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AClH,EAAI,QAAQ,WACb,GACF;AAEH;EAEF,KAAK;AACH,OAAI,OAAO,EAAI,MAAO,SACpB,OAAU,MACR,IAAI,EAAI,KAAK,8DAA8D,EACzE,EAAI,GACL,GACF;AAEH,OAAI,CAAC,EAAI,GACP,OAAU,MACR,IAAI,EAAI,KAAK,8CACd;AAEH,OAAI,CAAC,EAAS,EAAI,QAAQ,CACxB,OAAU,MACR,IAAI,EAAI,KAAK,oEAAoE,EAC/E,EAAI,QACL,GACF;AAEH;EAEF,KAAK;AACH,OAAI,OAAO,EAAI,MAAO,SACpB,OAAU,MACR,IAAI,EAAI,KAAK,8DAA8D,EACzE,EAAI,GACL,GACF;AAEH,OAAI,CAAC,EAAI,GACP,OAAU,MACR,IAAI,EAAI,KAAK,8CACd;AAEH,OAAI,CAAC,EAA0B,EAAI,QAAQ,CACzC,OAAU,MACR,IAAI,EAAI,KAAK,qFAAqF,KAAK,UACrG,EAAI,QACL,GACF;AAEH;EAEF,KAAK;AACH,OAAI,OAAO,EAAI,MAAO,SACpB,OAAU,MACR,IAAI,EAAI,KAAK,8DAA8D,EACzE,EAAI,GACL,GACF;AAEH,OAAI,CAAC,EAAI,GACP,OAAU,MACR,IAAI,EAAI,KAAK,8CACd;AAEH;EAEF,QACE,OAAU,MAAM,oCAAoC,EAAI,KAAK,GAAG;;AAEpE,QAAO;;AAET,SAAS,EAAa,GAAM,GAAS;AACnC,QAAO,EACL,OAAO,KAAS,WAAW,KAAK,MAAM,GAAM,EAAQ,GAAG,EACxD;;AAEH,SAAS,EAAiB,GAAK,GAAU;AAEvC,QADA,EAAgB,EAAI,EACb,KAAK,UAAU,GAAK,EAAS"}
@@ -0,0 +1,21 @@
1
+ //#region node_modules/rxjs/dist/esm5/internal/NotificationFactories.js
2
+ var e = (function() {
3
+ return r("C", void 0, void 0);
4
+ })();
5
+ function t(e) {
6
+ return r("E", void 0, e);
7
+ }
8
+ function n(e) {
9
+ return r("N", e, void 0);
10
+ }
11
+ function r(e, t, n) {
12
+ return {
13
+ kind: e,
14
+ value: t,
15
+ error: n
16
+ };
17
+ }
18
+ //#endregion
19
+ export { e as COMPLETE_NOTIFICATION, t as errorNotification, n as nextNotification };
20
+
21
+ //# sourceMappingURL=NotificationFactories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NotificationFactories.js","names":[],"sources":["../../../../../../node_modules/rxjs/dist/esm5/internal/NotificationFactories.js"],"sourcesContent":["export var COMPLETE_NOTIFICATION = (function () { return createNotification('C', undefined, undefined); })();\nexport function errorNotification(error) {\n return createNotification('E', undefined, error);\n}\nexport function nextNotification(value) {\n return createNotification('N', value, undefined);\n}\nexport function createNotification(kind, value, error) {\n return {\n kind: kind,\n value: value,\n error: error,\n };\n}\n//# sourceMappingURL=NotificationFactories.js.map"],"x_google_ignoreList":[0],"mappings":";AAAA,IAAW,KAAyB,WAAY;AAAE,QAAO,EAAmB,KAAK,KAAA,GAAW,KAAA,EAAU;IAAM;AAC5G,SAAgB,EAAkB,GAAO;AACrC,QAAO,EAAmB,KAAK,KAAA,GAAW,EAAM;;AAEpD,SAAgB,EAAiB,GAAO;AACpC,QAAO,EAAmB,KAAK,GAAO,KAAA,EAAU;;AAEpD,SAAgB,EAAmB,GAAM,GAAO,GAAO;AACnD,QAAO;EACG;EACC;EACA;EACV"}