@burdenoff/microfe-notification 2026.1125.1 → 2026.1129.1
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.
- package/dist/NotificationRoutes.d.ts +10 -0
- package/dist/NotificationRoutes.js +76 -71
- package/dist/NotificationRoutes.js.map +1 -1
- package/dist/components/NotificationPanel.js +0 -1
- package/dist/components/NotificationPanel.js.map +1 -1
- package/dist/generated/global-operations.d.ts +58 -3
- package/dist/generated/global-operations.js +31 -23
- package/dist/generated/global-operations.js.map +1 -1
- package/dist/generated/global-types.d.ts +10933 -581
- package/dist/graphql/global-client.js +34 -34
- package/dist/hooks/useNotificationAnalytics.d.ts +1 -1
- package/dist/hooks/useNotificationAnalytics.js.map +1 -1
- package/dist/hooks/useNotifications.d.ts +7 -0
- package/dist/hooks/useNotifications.js +1 -1
- package/dist/hooks/useNotifications.js.map +1 -1
- package/dist/index.js +9 -11
- package/dist/navigation-v2/NotificationArchivedV2.js +7 -8
- package/dist/navigation-v2/NotificationArchivedV2.js.map +1 -1
- package/dist/navigation-v2/NotificationInboxV2.js +8 -9
- package/dist/navigation-v2/NotificationInboxV2.js.map +1 -1
- package/dist/navigation-v2/NotificationSettingsV2.js +0 -1
- package/dist/navigation-v2/NotificationSettingsV2.js.map +1 -1
- package/dist/pages/NotificationCenterPage.js +5 -6
- package/dist/pages/NotificationCenterPage.js.map +1 -1
- package/dist/pages/NotificationHistoryAdminPage.js +9 -10
- package/dist/pages/NotificationHistoryAdminPage.js.map +1 -1
- package/dist/pages/NotificationHistoryPage.js +5 -6
- package/dist/pages/NotificationHistoryPage.js.map +1 -1
- package/dist/pages/NotificationPreferencesPage.js +0 -1
- package/dist/pages/NotificationPreferencesPage.js.map +1 -1
- package/dist/pages/NotificationTopicsPage.js +0 -1
- package/dist/pages/NotificationTopicsPage.js.map +1 -1
- package/dist/translations/en.d.ts +80 -0
- package/dist/types/index.d.ts +2 -1
- package/dist/v2/ArchivedRedirect.d.ts +1 -0
- package/dist/v2/ArchivedRedirect.js +14 -0
- package/dist/v2/ArchivedRedirect.js.map +1 -0
- package/dist/v2/InboxPage.d.ts +1 -0
- package/dist/v2/InboxPage.js +191 -0
- package/dist/v2/InboxPage.js.map +1 -0
- package/dist/v2/InboxRows.d.ts +10 -0
- package/dist/v2/InboxRows.js +101 -0
- package/dist/v2/InboxRows.js.map +1 -0
- package/dist/v2/KindIcon.d.ts +4 -0
- package/dist/v2/KindIcon.js +33 -0
- package/dist/v2/KindIcon.js.map +1 -0
- package/dist/v2/NotificationDetailPanel.d.ts +7 -0
- package/dist/v2/NotificationDetailPanel.js +200 -0
- package/dist/v2/NotificationDetailPanel.js.map +1 -0
- package/dist/v2/PreferencesPage.d.ts +1 -0
- package/dist/v2/PreferencesPage.js +139 -0
- package/dist/v2/PreferencesPage.js.map +1 -0
- package/dist/v2/__tests__/routeShapes.d.ts +13 -0
- package/dist/v2/model/days.d.ts +9 -0
- package/dist/v2/model/days.js +25 -0
- package/dist/v2/model/days.js.map +1 -0
- package/dist/v2/model/events.d.ts +17 -0
- package/dist/v2/model/events.js +72 -0
- package/dist/v2/model/events.js.map +1 -0
- package/dist/v2/model/icons.d.ts +6 -0
- package/dist/v2/model/icons.js +19 -0
- package/dist/v2/model/icons.js.map +1 -0
- package/dist/v2/model/inbox.d.ts +15 -0
- package/dist/v2/model/inbox.js +22 -0
- package/dist/v2/model/inbox.js.map +1 -0
- package/dist/v2/model/thing.d.ts +16 -0
- package/dist/v2/model/thing.js +41 -0
- package/dist/v2/model/thing.js.map +1 -0
- package/dist/v2/model/tr.d.ts +2 -0
- package/dist/v2/useNotificationDetail.d.ts +19 -0
- package/dist/v2/useNotificationDetail.js +65 -0
- package/dist/v2/useNotificationDetail.js.map +1 -0
- package/package.json +5 -2
- package/dist/components/index.js +0 -4
- package/dist/hooks/index.js +0 -8
- package/dist/node_modules/@apollo/client/errors/CombinedGraphQLErrors.js +0 -23
- package/dist/node_modules/@apollo/client/errors/CombinedGraphQLErrors.js.map +0 -1
- package/dist/node_modules/@apollo/client/errors/utils.js +0 -15
- package/dist/node_modules/@apollo/client/errors/utils.js.map +0 -1
- package/dist/node_modules/@apollo/client/link/core/ApolloLink.js +0 -51
- package/dist/node_modules/@apollo/client/link/core/ApolloLink.js.map +0 -1
- package/dist/node_modules/@apollo/client/link/subscriptions/index.js +0 -40
- package/dist/node_modules/@apollo/client/link/subscriptions/index.js.map +0 -1
- package/dist/node_modules/@apollo/client/link/utils/createOperation.js +0 -33
- package/dist/node_modules/@apollo/client/link/utils/createOperation.js.map +0 -1
- package/dist/node_modules/@apollo/client/utilities/caching/sizes.js +0 -5
- package/dist/node_modules/@apollo/client/utilities/caching/sizes.js.map +0 -1
- package/dist/node_modules/@apollo/client/utilities/graphql/print.js +0 -15
- package/dist/node_modules/@apollo/client/utilities/graphql/print.js.map +0 -1
- package/dist/node_modules/@apollo/client/utilities/internal/caches.js +0 -18
- package/dist/node_modules/@apollo/client/utilities/internal/caches.js.map +0 -1
- package/dist/node_modules/@apollo/client/utilities/internal/checkDocument.js +0 -20
- package/dist/node_modules/@apollo/client/utilities/internal/checkDocument.js.map +0 -1
- package/dist/node_modules/@apollo/client/utilities/internal/getMainDefinition.js +0 -16
- package/dist/node_modules/@apollo/client/utilities/internal/getMainDefinition.js.map +0 -1
- package/dist/node_modules/@apollo/client/utilities/internal/getMemoryInternals.js +0 -8
- package/dist/node_modules/@apollo/client/utilities/internal/getMemoryInternals.js.map +0 -1
- package/dist/node_modules/@apollo/client/utilities/internal/getOperationDefinition.js +0 -8
- package/dist/node_modules/@apollo/client/utilities/internal/getOperationDefinition.js.map +0 -1
- package/dist/node_modules/@apollo/client/utilities/internal/getOperationName.js +0 -7
- package/dist/node_modules/@apollo/client/utilities/internal/getOperationName.js.map +0 -1
- package/dist/node_modules/@apollo/client/utilities/internal/globals/global.js +0 -8
- package/dist/node_modules/@apollo/client/utilities/internal/globals/global.js.map +0 -1
- package/dist/node_modules/@apollo/client/utilities/internal/globals/maybe.js +0 -9
- package/dist/node_modules/@apollo/client/utilities/internal/globals/maybe.js.map +0 -1
- package/dist/node_modules/@apollo/client/utilities/internal/isNonNullObject.js +0 -7
- package/dist/node_modules/@apollo/client/utilities/internal/isNonNullObject.js.map +0 -1
- package/dist/node_modules/@apollo/client/utilities/internal/makeUniqueId.js +0 -9
- package/dist/node_modules/@apollo/client/utilities/internal/makeUniqueId.js.map +0 -1
- package/dist/node_modules/@apollo/client/utilities/internal/memoize.js +0 -22
- package/dist/node_modules/@apollo/client/utilities/internal/memoize.js.map +0 -1
- package/dist/node_modules/@apollo/client/utilities/internal/stringifyForDisplay.js +0 -9
- package/dist/node_modules/@apollo/client/utilities/internal/stringifyForDisplay.js.map +0 -1
- package/dist/node_modules/@apollo/client/utilities/invariant/index.js +0 -56
- package/dist/node_modules/@apollo/client/utilities/invariant/index.js.map +0 -1
- package/dist/node_modules/@apollo/client/version.js +0 -5
- package/dist/node_modules/@apollo/client/version.js.map +0 -1
- package/dist/node_modules/@wry/caches/lib/weak.js +0 -66
- package/dist/node_modules/@wry/caches/lib/weak.js.map +0 -1
- package/dist/node_modules/@wry/trie/lib/index.js +0 -52
- package/dist/node_modules/@wry/trie/lib/index.js.map +0 -1
- package/dist/node_modules/graphql-ws/dist/client.js +0 -279
- package/dist/node_modules/graphql-ws/dist/client.js.map +0 -1
- package/dist/node_modules/graphql-ws/dist/common-CGW11Fyb.js +0 -61
- package/dist/node_modules/graphql-ws/dist/common-CGW11Fyb.js.map +0 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/NotificationFactories.js +0 -20
- package/dist/node_modules/rxjs/dist/esm5/internal/NotificationFactories.js.map +0 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/Observable.js +0 -77
- package/dist/node_modules/rxjs/dist/esm5/internal/Observable.js.map +0 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/Subscriber.js +0 -116
- package/dist/node_modules/rxjs/dist/esm5/internal/Subscriber.js.map +0 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/Subscription.js +0 -96
- package/dist/node_modules/rxjs/dist/esm5/internal/Subscription.js.map +0 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/config.js +0 -11
- package/dist/node_modules/rxjs/dist/esm5/internal/config.js.map +0 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/observable/empty.js +0 -8
- package/dist/node_modules/rxjs/dist/esm5/internal/observable/empty.js.map +0 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/scheduler/timeoutProvider.js +0 -15
- package/dist/node_modules/rxjs/dist/esm5/internal/scheduler/timeoutProvider.js.map +0 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/symbol/observable.js +0 -7
- package/dist/node_modules/rxjs/dist/esm5/internal/symbol/observable.js.map +0 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/util/UnsubscriptionError.js +0 -12
- package/dist/node_modules/rxjs/dist/esm5/internal/util/UnsubscriptionError.js.map +0 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/util/arrRemove.js +0 -10
- package/dist/node_modules/rxjs/dist/esm5/internal/util/arrRemove.js.map +0 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/util/createErrorClass.js +0 -10
- package/dist/node_modules/rxjs/dist/esm5/internal/util/createErrorClass.js.map +0 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/util/errorContext.js +0 -21
- package/dist/node_modules/rxjs/dist/esm5/internal/util/errorContext.js.map +0 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/util/identity.js +0 -7
- package/dist/node_modules/rxjs/dist/esm5/internal/util/identity.js.map +0 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/util/isFunction.js +0 -7
- package/dist/node_modules/rxjs/dist/esm5/internal/util/isFunction.js.map +0 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/util/noop.js +0 -5
- package/dist/node_modules/rxjs/dist/esm5/internal/util/noop.js.map +0 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/util/pipe.js +0 -12
- package/dist/node_modules/rxjs/dist/esm5/internal/util/pipe.js.map +0 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/util/reportUnhandledError.js +0 -13
- package/dist/node_modules/rxjs/dist/esm5/internal/util/reportUnhandledError.js.map +0 -1
- package/dist/node_modules/tslib/tslib.es6.js +0 -51
- package/dist/node_modules/tslib/tslib.es6.js.map +0 -1
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { checkDocument as e } from "./checkDocument.js";
|
|
2
|
-
// node_modules/@apollo/client/utilities/internal/getOperationDefinition.js
|
|
3
|
-
function t(t) {
|
|
4
|
-
return e(t), t.definitions.filter((e) => e.kind === "OperationDefinition")[0];
|
|
5
|
-
}
|
|
6
|
-
export { t as getOperationDefinition };
|
|
7
|
-
|
|
8
|
-
//# sourceMappingURL=getOperationDefinition.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getOperationDefinition.js","names":["getOperationDefinition","checkDocument","doc","definition"],"sources":["../../../../../../node_modules/@apollo/client/utilities/internal/getOperationDefinition.js"],"sourcesContent":["import { checkDocument } from \"./checkDocument.js\";\n/**\n* @internal\n* \n* @deprecated This is an internal API and should not be used directly. This can be removed or changed at any time.\n*/\nexport function getOperationDefinition(doc) {\n checkDocument(doc);\n return doc.definitions.filter((definition) => definition.kind === \"OperationDefinition\")[0];\n}\n//# sourceMappingURL=getOperationDefinition.js.map\n"],"ignoreList":[0],"mappings":";;AAMA,SAAgBA,EAAuB,GAAK;CAExC,OADAC,EAAcC,CAAG,GACVA,EAAI,YAAY,QAAQ,MAAeC,EAAW,SAAS,qBAAqB,CAAC,CAAC;AAC7F"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
// node_modules/@apollo/client/utilities/internal/getOperationName.js
|
|
2
|
-
function e(e, t) {
|
|
3
|
-
return e.definitions.find((e) => e.kind === "OperationDefinition" && !!e.name)?.name.value ?? t;
|
|
4
|
-
}
|
|
5
|
-
export { e as getOperationName };
|
|
6
|
-
|
|
7
|
-
//# sourceMappingURL=getOperationName.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getOperationName.js","names":["getOperationName","doc","definition","fallback"],"sources":["../../../../../../node_modules/@apollo/client/utilities/internal/getOperationName.js"],"sourcesContent":["/**\n* @internal\n* \n* @deprecated This is an internal API and should not be used directly. This can be removed or changed at any time.\n*/\nexport function getOperationName(doc, fallback) {\n return (doc.definitions.find((definition) => definition.kind === \"OperationDefinition\" && !!definition.name)?.name.value ?? fallback);\n}\n//# sourceMappingURL=getOperationName.js.map\n"],"ignoreList":[0],"mappings":";AAKA,SAAgBA,EAAiB,GAAK,GAAU;CAC5C,OAAQC,EAAI,YAAY,MAAM,MAAeC,EAAW,SAAS,yBAAyB,CAAC,CAACA,EAAW,IAAI,CAAC,EAAE,KAAK,SAASC;AAChI"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { maybe as e } from "./maybe.js";
|
|
2
|
-
// node_modules/@apollo/client/utilities/internal/globals/global.js
|
|
3
|
-
var t = e(() => globalThis) || e(() => window) || e(() => self) || e(() => global) || e(function() {
|
|
4
|
-
return e.constructor("return this")();
|
|
5
|
-
});
|
|
6
|
-
export { t as default };
|
|
7
|
-
|
|
8
|
-
//# sourceMappingURL=global.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"global.js","names":["global_default","maybe"],"sources":["../../../../../../../node_modules/@apollo/client/utilities/internal/globals/global.js"],"sourcesContent":["import { maybe } from \"./maybe.js\";\nexport default (// We don't expect the Function constructor ever to be invoked at runtime, as\n// long as at least one of globalThis, window, self, or global is defined, so\n// we are under no obligation to make it easy for static analysis tools to\n// detect syntactic usage of the Function constructor. If you think you can\nmaybe(() => globalThis) ||\n maybe(() => window) ||\n maybe(() => self) ||\n maybe(() => global) || // improve your static analysis to detect this obfuscation, think again. This\n// is an arms race you cannot win, at least not in JavaScript.\nmaybe(function () {\n return maybe.constructor(\"return this\")();\n}));\n//# sourceMappingURL=global.js.map\n"],"ignoreList":[0],"mappings":";;AACA,IAAAA,IAIAC,QAAY,UAAU,KAClBA,QAAY,MAAM,KAClBA,QAAY,IAAI,KAChBA,QAAY,MAAM,KAEtBA,EAAM,WAAY;CACd,OAAOA,EAAM,YAAY,aAAa,CAAC,CAAC;AAC5C,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"maybe.js","names":["maybe","thunk"],"sources":["../../../../../../../node_modules/@apollo/client/utilities/internal/globals/maybe.js"],"sourcesContent":["export function maybe(thunk) {\n try {\n return thunk();\n }\n catch { }\n}\n//# sourceMappingURL=maybe.js.map"],"ignoreList":[0],"mappings":";AAAA,SAAgBA,EAAM,GAAO;CACzB,IAAI;EACA,OAAOC,EAAM;CACjB,QACM,CAAE;AACZ"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"isNonNullObject.js","names":["isNonNullObject","obj"],"sources":["../../../../../../node_modules/@apollo/client/utilities/internal/isNonNullObject.js"],"sourcesContent":["/**\n* @internal\n* \n* @deprecated This is an internal API and should not be used directly. This can be removed or changed at any time.\n*/\nexport function isNonNullObject(obj) {\n return obj !== null && typeof obj === \"object\";\n}\n//# sourceMappingURL=isNonNullObject.js.map\n"],"ignoreList":[0],"mappings":";AAKA,SAAgBA,EAAgB,GAAK;CACjC,OAAuB,OAAOC,KAAQ,cAA/BA;AACX"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
// node_modules/@apollo/client/utilities/internal/makeUniqueId.js
|
|
2
|
-
var e = /* @__PURE__ */ new Map();
|
|
3
|
-
function t(t) {
|
|
4
|
-
let n = e.get(t) || 1;
|
|
5
|
-
return e.set(t, n + 1), `${t}:${n}:${Math.random().toString(36).slice(2)}`;
|
|
6
|
-
}
|
|
7
|
-
export { t as makeUniqueId };
|
|
8
|
-
|
|
9
|
-
//# sourceMappingURL=makeUniqueId.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"makeUniqueId.js","names":["prefixCounts","makeUniqueId","count","prefix"],"sources":["../../../../../../node_modules/@apollo/client/utilities/internal/makeUniqueId.js"],"sourcesContent":["const prefixCounts = new Map();\n/**\n* These IDs won't be globally unique, but they will be unique within this\n* process, thanks to the counter, and unguessable thanks to the random suffix.\n*\n* @internal\n* \n* @deprecated This is an internal API and should not be used directly. This can be removed or changed at any time.\n*/\nexport function makeUniqueId(prefix) {\n const count = prefixCounts.get(prefix) || 1;\n prefixCounts.set(prefix, count + 1);\n return `${prefix}:${count}:${Math.random().toString(36).slice(2)}`;\n}\n//# sourceMappingURL=makeUniqueId.js.map\n"],"ignoreList":[0],"mappings":";AAAA,IAAMA,oBAAe,IAAI,IAAI;AAS7B,SAAgBC,EAAa,GAAQ;CACjC,IAAMC,IAAQF,EAAa,IAAIG,CAAM,KAAK;CAE1C,OADAH,EAAa,IAAIG,GAAQD,IAAQ,CAAC,GAC3B,GAAGC,EAAO,GAAGD,EAAM,GAAG,KAAK,OAAO,CAAC,CAAC,SAAS,EAAE,CAAC,CAAC,MAAM,CAAC;AACnE"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { Trie as e } from "../../../../@wry/trie/lib/index.js";
|
|
2
|
-
import { AutoCleanedWeakCache as t } from "./caches.js";
|
|
3
|
-
// node_modules/@apollo/client/utilities/internal/memoize.js
|
|
4
|
-
function n(n, { max: r, makeCacheKey: i = (e) => e }) {
|
|
5
|
-
let a = new e(!0), o = new t(r);
|
|
6
|
-
return (...e) => {
|
|
7
|
-
let t = a.lookupArray(i(e)), r = o.get(t);
|
|
8
|
-
if (r) {
|
|
9
|
-
if (r.error) throw r.error;
|
|
10
|
-
return r.result;
|
|
11
|
-
}
|
|
12
|
-
let s = o.set(t, {});
|
|
13
|
-
try {
|
|
14
|
-
return s.result = n(...e);
|
|
15
|
-
} catch (e) {
|
|
16
|
-
throw s.error = e, e;
|
|
17
|
-
}
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
export { n as memoize };
|
|
21
|
-
|
|
22
|
-
//# sourceMappingURL=memoize.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"memoize.js","names":["memoize","args","keys","Trie","cache","AutoCleanedWeakCache","max","cacheKey","makeCacheKey","cached","entry","fn","error"],"sources":["../../../../../../node_modules/@apollo/client/utilities/internal/memoize.js"],"sourcesContent":["import { Trie } from \"@wry/trie\";\nimport { AutoCleanedWeakCache } from \"./caches.js\";\n/**\n * Naive alternative to `wrap` without any dependency tracking, potentially avoiding resulting memory leaks.\n */\nexport function memoize(fn, { max, makeCacheKey = (args) => args, }) {\n const keys = new Trie(true);\n const cache = new AutoCleanedWeakCache(max);\n return (...args) => {\n const cacheKey = keys.lookupArray(makeCacheKey(args));\n const cached = cache.get(cacheKey);\n if (cached) {\n if (cached.error) {\n throw cached.error;\n }\n return cached.result;\n }\n const entry = cache.set(cacheKey, {});\n try {\n return (entry.result = fn(...args));\n }\n catch (error) {\n entry.error = error;\n throw error;\n }\n };\n}\n//# sourceMappingURL=memoize.js.map"],"ignoreList":[0],"mappings":";;;AAKA,SAAgBA,EAAQ,GAAI,EAAE,QAAK,mBAAgB,MAASC,KAAS;CACjE,IAAMC,IAAO,IAAIC,EAAK,EAAI,GACpBC,IAAQ,IAAIC,EAAqBC,CAAG;CAC1C,QAAQ,GAAGL,MAAS;EAChB,IAAMM,IAAWL,EAAK,YAAYM,EAAaP,CAAI,CAAC,GAC9CQ,IAASL,EAAM,IAAIG,CAAQ;EACjC,IAAIE,GAAQ;GACR,IAAIA,EAAO,OACP,MAAMA,EAAO;GAEjB,OAAOA,EAAO;EAClB;EACA,IAAMC,IAAQN,EAAM,IAAIG,GAAU,CAAC,CAAC;EACpC,IAAI;GACA,OAAQ,EAAM,SAASI,EAAG,GAAGV,CAAI;EACrC,SACOW,GAAO;GAEV,MADA,EAAM,QAAQA,GACRA;EACV;CACJ;AACJ"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { makeUniqueId as e } from "./makeUniqueId.js";
|
|
2
|
-
// node_modules/@apollo/client/utilities/internal/stringifyForDisplay.js
|
|
3
|
-
function t(t, n = 0) {
|
|
4
|
-
let r = e("stringifyForDisplay");
|
|
5
|
-
return JSON.stringify(t, (e, t) => t === void 0 ? r : t, n).split(JSON.stringify(r)).join("<undefined>");
|
|
6
|
-
}
|
|
7
|
-
export { t as stringifyForDisplay };
|
|
8
|
-
|
|
9
|
-
//# sourceMappingURL=stringifyForDisplay.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"stringifyForDisplay.js","names":["stringifyForDisplay","undefId","makeUniqueId","value","space"],"sources":["../../../../../../node_modules/@apollo/client/utilities/internal/stringifyForDisplay.js"],"sourcesContent":["import { makeUniqueId } from \"./makeUniqueId.js\";\n/**\n* @internal\n* \n* @deprecated This is an internal API and should not be used directly. This can be removed or changed at any time.\n*/\nexport function stringifyForDisplay(value, space = 0) {\n const undefId = makeUniqueId(\"stringifyForDisplay\");\n return JSON.stringify(value, (_, value) => {\n return value === void 0 ? undefId : value;\n }, space)\n .split(JSON.stringify(undefId))\n .join(\"<undefined>\");\n}\n//# sourceMappingURL=stringifyForDisplay.js.map\n"],"ignoreList":[0],"mappings":";;AAMA,SAAgBA,EAAoB,GAAO,IAAQ,GAAG;CAClD,IAAMC,IAAUC,EAAa,qBAAqB;CAClD,OAAO,KAAK,UAAUC,IAAQ,GAAG,MACtBA,MAAU,KAAK,IAAIF,IAAUE,GACrCC,CAAK,CAAC,CACJ,MAAM,KAAK,UAAUH,CAAO,CAAC,CAAC,CAC9B,KAAK,aAAa;AAC3B"}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import e from "../internal/globals/global.js";
|
|
2
|
-
import { version as t } from "../../version.js";
|
|
3
|
-
import { stringifyForDisplay as n } from "../internal/stringifyForDisplay.js";
|
|
4
|
-
// node_modules/@apollo/client/utilities/invariant/index.js
|
|
5
|
-
var r = "Invariant Violation", i = class e extends Error {
|
|
6
|
-
constructor(t = r) {
|
|
7
|
-
super(t), this.name = r, Object.setPrototypeOf(this, e.prototype);
|
|
8
|
-
}
|
|
9
|
-
}, a = [
|
|
10
|
-
"debug",
|
|
11
|
-
"log",
|
|
12
|
-
"warn",
|
|
13
|
-
"error",
|
|
14
|
-
"silent"
|
|
15
|
-
], o = a.indexOf("silent");
|
|
16
|
-
function s(e, ...t) {
|
|
17
|
-
if (!e) throw l(...t);
|
|
18
|
-
}
|
|
19
|
-
function c(e) {
|
|
20
|
-
return function(t, ...n) {
|
|
21
|
-
if (a.indexOf(e) >= o) {
|
|
22
|
-
let r = console[e] || console.log;
|
|
23
|
-
if (typeof t == "number") {
|
|
24
|
-
let e = t;
|
|
25
|
-
t = f(e), t || (t = p(e, n), n = []);
|
|
26
|
-
}
|
|
27
|
-
r(t, ...n);
|
|
28
|
-
}
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
s.debug = c("debug"), s.log = c("log"), s.warn = c("warn"), s.error = c("error");
|
|
32
|
-
function l(e, ...t) {
|
|
33
|
-
return new i(f(e, t) || p(e, t));
|
|
34
|
-
}
|
|
35
|
-
var u = Symbol.for("ApolloErrorMessageHandler_" + t);
|
|
36
|
-
function d(e) {
|
|
37
|
-
if (typeof e == "string") return e;
|
|
38
|
-
try {
|
|
39
|
-
return n(e, 2).slice(0, 1e3);
|
|
40
|
-
} catch {
|
|
41
|
-
return "<non-serializable>";
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
function f(t, n = []) {
|
|
45
|
-
if (t) return e[u] && e[u](t, n.map(d));
|
|
46
|
-
}
|
|
47
|
-
function p(e, n = []) {
|
|
48
|
-
if (e) return typeof e == "string" ? n.reduce((e, t) => e.replace(/%[sdfo]/, d(t)), e) : `An error occurred! For more details, see the full error text at https://go.apollo.dev/c/err#${encodeURIComponent(JSON.stringify({
|
|
49
|
-
version: t,
|
|
50
|
-
message: e,
|
|
51
|
-
args: n.map(d)
|
|
52
|
-
}))}`;
|
|
53
|
-
}
|
|
54
|
-
export { u as ApolloErrorMessageHandler, i as InvariantError, s as invariant, l as newInvariantError };
|
|
55
|
-
|
|
56
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["global","global_default","genericMessage","InvariantError","message","verbosityLevels","verbosityLevel","invariant","args","condition","newInvariantError","wrapConsoleMethod","name","method","arg0","getHandledErrorMsg","getFallbackErrorMsg","optionalParams","ApolloErrorMessageHandler","version","stringify","arg","stringifyForDisplay","messageArgs","msg"],"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"],"ignoreList":[0],"mappings":";;;;AAKA,IAAME,IAAiB,uBACVC,IAAb,MAAaA,UAAuB,MAAM;CACtC,YAAY,IAAUD,GAAgB;EAGlC,AAFA,MAAME,CAAO,GACb,KAAK,OAAOF,GACZ,OAAO,eAAe,MAAMC,EAAe,SAAS;CACxD;AACJ,GACME,IAAkB;CAAC;CAAS;CAAO;CAAQ;CAAS;AAAQ,GAC9DC,IAAiBD,EAAgB,QAA0B,QAAQ;AACvE,SAAgBE,EAAU,GAAW,GAAGC,GAAM;CAC1C,IAAI,CAACC,GACD,MAAMC,EAAkB,GAAGF,CAAI;AAEvC;AACA,SAASG,EAAkB,GAAM;CAC7B,OAAO,SAAU,GAAS,GAAGH,GAAM;EAC/B,IAAIH,EAAgB,QAAQO,CAAI,KAAKN,GAAgB;GAGjD,IAAMO,IAAS,QAAQD,MAAS,QAAQ;GACxC,IAAI,OAAOR,KAAY,UAAU;IAC7B,IAAMU,IAAOV;IAEb,AADA,IAAUW,EAAmBD,CAAI,GAC5BV,MACD,IAAUY,EAAoBF,GAAMN,CAAI,GACxC,IAAO,CAAC;GAEhB;GACA,EAAOJ,GAAS,GAAGI,CAAI;EAC3B;CACJ;AACJ;AACA,EAAU,QAAQG,EAAkB,OAAO,GAC3C,EAAU,MAAMA,EAAkB,KAAK,GACvC,EAAU,OAAOA,EAAkB,MAAM,GACzC,EAAU,QAAQA,EAAkB,OAAO;AAgB3C,SAAgBD,EAAkB,GAAS,GAAGO,GAAgB;CAC1D,OAAO,IAAId,EAAeY,EAAmBX,GAASa,CAAc,KAChED,EAAoBZ,GAASa,CAAc,CAAC;AACpD;AAEA,IAAaC,IAA4B,OAAO,IAAI,+BAA+BC,CAAO;AAC1F,SAASC,EAAU,GAAK;CACpB,IAAI,OAAOC,KAAO,UACd,OAAOA;CAEX,IAAI;EACA,OAAOC,EAAoBD,GAAK,CAAC,CAAC,CAAC,MAAM,GAAG,GAAI;CACpD,QACM;EACF,OAAO;CACX;AACJ;AACA,SAASN,EAAmB,GAAS,IAAc,CAAC,GAAG;CACnD,IAAKX,GAEL,OAAQJ,EAAOkB,MACXlB,EAAOkB,EAA0B,CAACd,GAASmB,EAAY,IAAIH,CAAS,CAAC;AAC7E;AACA,SAASJ,EAAoB,GAAS,IAAc,CAAC,GAAG;CACpD,IAAKZ,GAKL,OAHI,OAAOA,KAAY,WACZmB,EAAY,QAAQ,GAAK,MAAQC,EAAI,QAAQ,WAAWJ,EAAUC,CAAG,CAAC,GAAGjB,CAAO,IAEpF,+FAA+F,mBAAmB,KAAK,UAAU;EACpI;EACA;EACA,MAAMmB,EAAY,IAAIH,CAAS;CACnC,CAAC,CAAC;AACN"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","names":["version"],"sources":["../../../../node_modules/@apollo/client/version.js"],"sourcesContent":["export const version = \"4.3.7\";\nexport const build = \"esm\";\n//# sourceMappingURL=version.js.map\n"],"ignoreList":[0],"mappings":";AAAA,IAAaA,IAAU"}
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
// 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
|
-
export { o as WeakCache };
|
|
65
|
-
|
|
66
|
-
//# sourceMappingURL=weak.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"weak.js","names":["noop","defaultDispose","_WeakRef","value","_WeakMap","_FinalizationRegistry","finalizationBatchSize","WeakCache","max","dispose","iterator","i","node","key","newer","older"],"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"],"ignoreList":[0],"mappings":"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"}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
// 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
|
-
export { i as Trie };
|
|
51
|
-
|
|
52
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["defaultMakeData","Trie","weakness","makeData","node","forEach","array","key","hasOwnProperty","slice","i","len","map","data","head","child","isObjRef","create","value"],"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"],"ignoreList":[0],"mappings":";AAKA,IAAMA,UAAwB,OAAO,OAAO,IAAI,GAE1C,EAAE,YAAS,aAAU,MAAM,WAC3B,EAAE,sBAAmB,OAAO,WACrBC,IAAb,MAAaA,EAAK;CACd,YAAY,IAAW,IAAM,IAAWD,GAAiB;EAErD,AADA,KAAK,WAAWE,GAChB,KAAK,WAAWC;CACpB;CACA,SAAS;EACL,OAAO,KAAK,YAAY,SAAS;CACrC;CACA,YAAY,GAAO;EACf,IAAIC,IAAO;EAEX,OADAC,EAAQ,KAAKC,IAAO,MAAO,IAAOF,EAAK,aAAaG,CAAG,CAAC,GACjDC,EAAe,KAAKJ,GAAM,MAAM,IACjCA,EAAK,OACL,EAAK,OAAO,KAAK,SAASK,EAAM,KAAKH,CAAK,CAAC;CACrD;CACA,OAAO;EACH,OAAO,KAAK,UAAU,SAAS;CACnC;CACA,UAAU,GAAO;EACb,IAAIF,IAAO;EACX,KAAK,IAAIM,IAAI,GAAGC,IAAML,EAAM,QAAQF,KAAQM,IAAIC,GAAK,EAAED,GAAG;GACtD,IAAME,IAAMR,EAAK,OAAOE,EAAMI,IAAI,EAAK;GACvC,IAAOE,KAAOA,EAAI,IAAIN,EAAMI,EAAE;EAClC;EACA,OAAON,KAAQA,EAAK;CACxB;CACA,SAAS;EACL,OAAO,KAAK,YAAY,SAAS;CACrC;CACA,YAAY,GAAO;EACf,IAAIS;EACJ,IAAIP,EAAM,QAAQ;GACd,IAAMQ,IAAOR,EAAM,IACbM,IAAM,KAAK,OAAOE,GAAM,EAAK,GAC7BC,IAAQH,KAAOA,EAAI,IAAIE,CAAI;GACjC,AAAIC,MACA,IAAOA,EAAM,YAAYN,EAAM,KAAKH,GAAO,CAAC,CAAC,GACxCS,EAAM,QAASA,EAAM,QAAUA,EAAM,UAAUA,EAAM,OAAO,QAC7DH,EAAI,OAAOE,CAAI;EAG3B,OAGI,AADA,IAAO,KAAK,MACZ,OAAO,KAAK;EAEhB,OAAOD;CACX;CACA,aAAa,GAAK;EACd,IAAMD,IAAM,KAAK,OAAOL,GAAK,EAAI,GAC7BQ,IAAQH,EAAI,IAAIL,CAAG;EAGvB,OAFKQ,KACDH,EAAI,IAAIL,GAAK,IAAQ,IAAIN,EAAK,KAAK,UAAU,KAAK,QAAQ,CAAC,GACxDc;CACX;CACA,OAAO,GAAK,GAAQ;EAChB,OAAO,KAAK,YAAYC,EAAST,CAAG,IAC9B,KAAK,SAASU,IAAS,KAAK,uBAAO,IAAI,QAAM,IAAI,KAAK,KACtD,KAAK,WAAWA,IAAS,KAAK,yBAAS,IAAI,IAAE,IAAI,KAAK;CAChE;AACJ;AACA,SAASD,EAAS,GAAO;CACrB,QAAQ,OAAOE,GAAf;EACI,KAAK,UACD,IAAIA,MAAU,MACV;EAER,KAAK,YACD,OAAO;CACf;CACA,OAAO;AACX"}
|
|
@@ -1,279 +0,0 @@
|
|
|
1
|
-
import { C as e, G as t, M as n, i as r, l as i, p as a, s as o } from "./common-CGW11Fyb.js";
|
|
2
|
-
// node_modules/graphql-ws/dist/client.js
|
|
3
|
-
function s(t) {
|
|
4
|
-
let { url: r, connectionParams: s, 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 = l, 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 } = t, E;
|
|
13
|
-
if (S) {
|
|
14
|
-
if (!d(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
|
-
let e = r.indexOf(n);
|
|
47
|
-
e > -1 && r.splice(e, 1);
|
|
48
|
-
};
|
|
49
|
-
},
|
|
50
|
-
emit(e, ...n) {
|
|
51
|
-
for (let r of [...t[e]]) r(...n);
|
|
52
|
-
}
|
|
53
|
-
};
|
|
54
|
-
})();
|
|
55
|
-
function k(e) {
|
|
56
|
-
let t = [O.on("error", (n) => {
|
|
57
|
-
t.forEach((e) => e()), e(n);
|
|
58
|
-
}), O.on("closed", (n) => {
|
|
59
|
-
t.forEach((e) => e()), e(n);
|
|
60
|
-
})];
|
|
61
|
-
return () => t.forEach((e) => e());
|
|
62
|
-
}
|
|
63
|
-
let A, j = 0, M, N = !1, P = 0, F = !1;
|
|
64
|
-
async function I() {
|
|
65
|
-
clearTimeout(M);
|
|
66
|
-
let [t, l] = await (A ??= new Promise((t, l) => (async () => {
|
|
67
|
-
if (N) {
|
|
68
|
-
if (await y(P), !j) return A = void 0, l({
|
|
69
|
-
code: 1e3,
|
|
70
|
-
reason: "All Subscriptions Gone"
|
|
71
|
-
});
|
|
72
|
-
P++;
|
|
73
|
-
}
|
|
74
|
-
O.emit("connecting", N);
|
|
75
|
-
let u = new D(typeof r == "function" ? await r() : r, "graphql-transport-ws"), d, f;
|
|
76
|
-
function p() {
|
|
77
|
-
isFinite(h) && h > 0 && (clearTimeout(f), f = setTimeout(() => {
|
|
78
|
-
u.readyState === D.OPEN && (u.send(o({ type: n.Ping })), O.emit("ping", !1, void 0));
|
|
79
|
-
}, h));
|
|
80
|
-
}
|
|
81
|
-
k((e) => {
|
|
82
|
-
A = void 0, clearTimeout(d), clearTimeout(f), l(e), e instanceof c && (u.close(4499, "Terminated"), u.onerror = null, u.onclose = null);
|
|
83
|
-
}), u.onerror = (e) => O.emit("error", e), u.onclose = (e) => O.emit("closed", e), u.onopen = async () => {
|
|
84
|
-
try {
|
|
85
|
-
O.emit("opened", u);
|
|
86
|
-
let t = typeof s == "function" ? await s() : s;
|
|
87
|
-
if (u.readyState !== D.OPEN) return;
|
|
88
|
-
u.send(o(t ? {
|
|
89
|
-
type: n.ConnectionInit,
|
|
90
|
-
payload: t
|
|
91
|
-
} : { type: n.ConnectionInit }, w)), isFinite(_) && _ > 0 && (d = setTimeout(() => {
|
|
92
|
-
u.close(e.ConnectionAcknowledgementTimeout, "Connection acknowledgement timeout");
|
|
93
|
-
}, _)), p();
|
|
94
|
-
} catch (t) {
|
|
95
|
-
O.emit("error", t), u.close(e.InternalClientError, i(t instanceof Error ? t.message : String(t), "Internal client error"));
|
|
96
|
-
}
|
|
97
|
-
};
|
|
98
|
-
let m = !1;
|
|
99
|
-
u.onmessage = ({ data: r }) => {
|
|
100
|
-
try {
|
|
101
|
-
let e = a(r, T);
|
|
102
|
-
if (O.emit("message", e), e.type === "ping" || e.type === "pong") {
|
|
103
|
-
O.emit(e.type, !0, e.payload), e.type === "pong" ? p() : g || (u.send(o(e.payload ? {
|
|
104
|
-
type: n.Pong,
|
|
105
|
-
payload: e.payload
|
|
106
|
-
} : { type: n.Pong }, w)), O.emit("pong", !1, e.payload));
|
|
107
|
-
return;
|
|
108
|
-
}
|
|
109
|
-
if (m) return;
|
|
110
|
-
if (e.type !== n.ConnectionAck) throw Error(`First message cannot be of type ${e.type}`);
|
|
111
|
-
clearTimeout(d), m = !0, O.emit("connected", u, e.payload, N), N = !1, P = 0;
|
|
112
|
-
let i = new Promise((e, t) => k(t));
|
|
113
|
-
i.catch(() => {}), t([u, i]);
|
|
114
|
-
} catch (t) {
|
|
115
|
-
u.onmessage = null, O.emit("error", t), u.close(e.BadResponse, i(t instanceof Error ? t.message : String(t), "Bad response"));
|
|
116
|
-
}
|
|
117
|
-
};
|
|
118
|
-
})()));
|
|
119
|
-
t.readyState === D.CLOSING && await l;
|
|
120
|
-
let u = () => {}, d = new Promise((e) => u = e);
|
|
121
|
-
return [
|
|
122
|
-
t,
|
|
123
|
-
u,
|
|
124
|
-
new Promise((e, n) => {
|
|
125
|
-
let r = k(n);
|
|
126
|
-
t.readyState !== D.OPEN && l.catch(n), d.then(() => {
|
|
127
|
-
if (r(), !j) {
|
|
128
|
-
let e = () => t.close(1e3, "Normal Closure");
|
|
129
|
-
isFinite(m) && m > 0 ? (clearTimeout(M), M = setTimeout(() => {
|
|
130
|
-
!j && t.readyState === D.OPEN && e();
|
|
131
|
-
}, m)) : e();
|
|
132
|
-
}
|
|
133
|
-
e();
|
|
134
|
-
});
|
|
135
|
-
})
|
|
136
|
-
];
|
|
137
|
-
}
|
|
138
|
-
function L(t) {
|
|
139
|
-
if (l(t) && (u(t.code) || [
|
|
140
|
-
e.InternalServerError,
|
|
141
|
-
e.InternalClientError,
|
|
142
|
-
e.BadRequest,
|
|
143
|
-
e.BadResponse,
|
|
144
|
-
e.Unauthorized,
|
|
145
|
-
e.SubprotocolNotAcceptable,
|
|
146
|
-
e.SubscriberAlreadyExists,
|
|
147
|
-
e.TooManyInitialisationRequests
|
|
148
|
-
].includes(t.code))) throw t;
|
|
149
|
-
if (F) return !1;
|
|
150
|
-
if (l(t) && t.code === 1e3) return j > 0;
|
|
151
|
-
if (!v || P >= v || !b(t)) throw t;
|
|
152
|
-
return N = !0;
|
|
153
|
-
}
|
|
154
|
-
f || (async () => {
|
|
155
|
-
for (j++;;) try {
|
|
156
|
-
let [, , e] = await I();
|
|
157
|
-
await e;
|
|
158
|
-
} catch (e) {
|
|
159
|
-
try {
|
|
160
|
-
if (!L(e)) return;
|
|
161
|
-
} catch (e) {
|
|
162
|
-
return p?.(e);
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
})();
|
|
166
|
-
function R(e, t) {
|
|
167
|
-
let r = C(e), i = !1, a = !1, s = () => {
|
|
168
|
-
j--, i = !0;
|
|
169
|
-
};
|
|
170
|
-
return (async () => {
|
|
171
|
-
for (j++;;) try {
|
|
172
|
-
let [c, l, u] = await I();
|
|
173
|
-
if (i) return u.catch(() => {}), l();
|
|
174
|
-
let d = O.onMessage(r, (e) => {
|
|
175
|
-
switch (e.type) {
|
|
176
|
-
case n.Next:
|
|
177
|
-
t.next(e.payload);
|
|
178
|
-
return;
|
|
179
|
-
case n.Error:
|
|
180
|
-
a = !0, i = !0, t.error(e.payload), s();
|
|
181
|
-
return;
|
|
182
|
-
case n.Complete:
|
|
183
|
-
i = !0, s();
|
|
184
|
-
return;
|
|
185
|
-
}
|
|
186
|
-
});
|
|
187
|
-
c.send(o({
|
|
188
|
-
id: r,
|
|
189
|
-
type: n.Subscribe,
|
|
190
|
-
payload: e
|
|
191
|
-
}, w)), s = () => {
|
|
192
|
-
!i && c.readyState === D.OPEN && c.send(o({
|
|
193
|
-
id: r,
|
|
194
|
-
type: n.Complete
|
|
195
|
-
}, w)), j--, i = !0, l();
|
|
196
|
-
}, await u.finally(d);
|
|
197
|
-
return;
|
|
198
|
-
} catch (e) {
|
|
199
|
-
if (!L(e)) return;
|
|
200
|
-
}
|
|
201
|
-
})().then(() => {
|
|
202
|
-
a || t.complete();
|
|
203
|
-
}).catch((e) => {
|
|
204
|
-
t.error(e);
|
|
205
|
-
}), () => {
|
|
206
|
-
i || s();
|
|
207
|
-
};
|
|
208
|
-
}
|
|
209
|
-
return {
|
|
210
|
-
on: O.on,
|
|
211
|
-
subscribe: R,
|
|
212
|
-
iterate(e) {
|
|
213
|
-
let t = [], n = {
|
|
214
|
-
done: !1,
|
|
215
|
-
error: null,
|
|
216
|
-
resolve: () => {}
|
|
217
|
-
}, r = R(e, {
|
|
218
|
-
next(e) {
|
|
219
|
-
t.push(e), n.resolve();
|
|
220
|
-
},
|
|
221
|
-
error(e) {
|
|
222
|
-
n.done = !0, n.error = e, n.resolve();
|
|
223
|
-
},
|
|
224
|
-
complete() {
|
|
225
|
-
n.done = !0, n.resolve();
|
|
226
|
-
}
|
|
227
|
-
}), i = async function* () {
|
|
228
|
-
for (;;) {
|
|
229
|
-
for (t.length || await new Promise((e) => n.resolve = e); t.length;) yield t.shift();
|
|
230
|
-
if (n.error) throw n.error;
|
|
231
|
-
if (n.done) return;
|
|
232
|
-
}
|
|
233
|
-
}();
|
|
234
|
-
return i.throw = async (e) => (n.done || (n.done = !0, n.error = e, n.resolve()), {
|
|
235
|
-
done: !0,
|
|
236
|
-
value: void 0
|
|
237
|
-
}), i.return = async () => (r(), {
|
|
238
|
-
done: !0,
|
|
239
|
-
value: void 0
|
|
240
|
-
}), i;
|
|
241
|
-
},
|
|
242
|
-
async dispose() {
|
|
243
|
-
if (F = !0, A) {
|
|
244
|
-
let [e] = await A;
|
|
245
|
-
e.close(1e3, "Normal Closure");
|
|
246
|
-
}
|
|
247
|
-
},
|
|
248
|
-
terminate() {
|
|
249
|
-
A && O.emit("closed", new c());
|
|
250
|
-
}
|
|
251
|
-
};
|
|
252
|
-
}
|
|
253
|
-
var c = class extends Error {
|
|
254
|
-
name = "TerminatedCloseEvent";
|
|
255
|
-
message = "4499: Terminated";
|
|
256
|
-
code = 4499;
|
|
257
|
-
reason = "Terminated";
|
|
258
|
-
wasClean = !1;
|
|
259
|
-
};
|
|
260
|
-
function l(e) {
|
|
261
|
-
return r(e) && "code" in e && "reason" in e;
|
|
262
|
-
}
|
|
263
|
-
function u(e) {
|
|
264
|
-
return ![
|
|
265
|
-
1e3,
|
|
266
|
-
1001,
|
|
267
|
-
1006,
|
|
268
|
-
1005,
|
|
269
|
-
1012,
|
|
270
|
-
1013,
|
|
271
|
-
1014
|
|
272
|
-
].includes(e) && e >= 1e3 && e <= 1999;
|
|
273
|
-
}
|
|
274
|
-
function d(e) {
|
|
275
|
-
return typeof e == "function" && "constructor" in e && "CLOSED" in e && "CLOSING" in e && "CONNECTING" in e && "OPEN" in e;
|
|
276
|
-
}
|
|
277
|
-
export { e as CloseCode, t as GRAPHQL_TRANSPORT_WS_PROTOCOL, n as MessageType, c as TerminatedCloseEvent, s as createClient, a as parseMessage, o as stringifyMessage };
|
|
278
|
-
|
|
279
|
-
//# sourceMappingURL=client.js.map
|