zudoku 0.3.0-dev.2 → 0.3.0-dev.21
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/app/App.js +11 -8
- package/dist/app/App.js.map +1 -1
- package/dist/config/config.d.ts +8 -15
- package/dist/lib/authentication/authentication.d.ts +2 -2
- package/dist/lib/authentication/hook.d.ts +1 -0
- package/dist/lib/authentication/hook.js +1 -0
- package/dist/lib/authentication/hook.js.map +1 -1
- package/dist/lib/authentication/providers/auth0.js +1 -0
- package/dist/lib/authentication/providers/auth0.js.map +1 -1
- package/dist/lib/authentication/providers/clerk.js +2 -0
- package/dist/lib/authentication/providers/clerk.js.map +1 -1
- package/dist/lib/authentication/providers/openid.js +2 -0
- package/dist/lib/authentication/providers/openid.js.map +1 -1
- package/dist/lib/authentication/state.d.ts +1 -0
- package/dist/lib/authentication/state.js +1 -0
- package/dist/lib/authentication/state.js.map +1 -1
- package/dist/lib/components/DevPortal.d.ts +2 -20
- package/dist/lib/components/DevPortal.js +13 -9
- package/dist/lib/components/DevPortal.js.map +1 -1
- package/dist/lib/components/Header.js +4 -4
- package/dist/lib/components/Header.js.map +1 -1
- package/dist/lib/components/Heading.d.ts +9 -4
- package/dist/lib/components/Heading.js +17 -2
- package/dist/lib/components/Heading.js.map +1 -1
- package/dist/lib/components/Layout.js +1 -1
- package/dist/lib/components/Layout.js.map +1 -1
- package/dist/lib/components/SyntaxHighlight.js +5 -1
- package/dist/lib/components/SyntaxHighlight.js.map +1 -1
- package/dist/lib/components/context/DevPortalProvider.d.ts +1 -1
- package/dist/lib/components/context/DevPortalProvider.js +2 -2
- package/dist/lib/components/context/DevPortalProvider.js.map +1 -1
- package/dist/lib/components/index.d.ts +2 -0
- package/dist/lib/components/index.js +2 -0
- package/dist/lib/components/index.js.map +1 -1
- package/dist/lib/core/DevPortalContext.d.ts +33 -3
- package/dist/lib/core/DevPortalContext.js +8 -4
- package/dist/lib/core/DevPortalContext.js.map +1 -1
- package/dist/lib/core/plugins.d.ts +7 -4
- package/dist/lib/core/plugins.js +1 -0
- package/dist/lib/core/plugins.js.map +1 -1
- package/dist/lib/oas/graphql/index.js +1 -1
- package/dist/lib/oas/graphql/index.js.map +1 -1
- package/dist/lib/oas/parser/index.js +3 -1
- package/dist/lib/oas/parser/index.js.map +1 -1
- package/dist/lib/plugins/api-keys/CreateApiKey.d.ts +4 -0
- package/dist/lib/plugins/{api-key → api-keys}/CreateApiKey.js +1 -1
- package/dist/lib/plugins/api-keys/CreateApiKey.js.map +1 -0
- package/dist/lib/plugins/api-keys/SettingsApiKeys.d.ts +4 -0
- package/dist/lib/plugins/api-keys/SettingsApiKeys.js +38 -0
- package/dist/lib/plugins/api-keys/SettingsApiKeys.js.map +1 -0
- package/dist/lib/plugins/api-keys/index.js +94 -0
- package/dist/lib/plugins/api-keys/index.js.map +1 -0
- package/dist/lib/plugins/markdown/MdxPage.d.ts +3 -2
- package/dist/lib/plugins/markdown/MdxPage.js +5 -4
- package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
- package/dist/lib/plugins/markdown/generateRoutes.d.ts +2 -2
- package/dist/lib/plugins/markdown/generateRoutes.js +2 -2
- package/dist/lib/plugins/markdown/generateRoutes.js.map +1 -1
- package/dist/lib/plugins/markdown/index.d.ts +4 -1
- package/dist/lib/plugins/markdown/index.js +2 -2
- package/dist/lib/plugins/markdown/index.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationList.js +4 -3
- package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationListItem.js +8 -4
- package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
- package/dist/lib/plugins/openapi/ParameterList.js +1 -1
- package/dist/lib/plugins/openapi/ParameterList.js.map +1 -1
- package/dist/lib/plugins/openapi/ParameterListItem.js +1 -1
- package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -1
- package/dist/lib/plugins/openapi/{MakeRequest.d.ts → PlaygroundDialogWrapper.d.ts} +1 -1
- package/dist/lib/plugins/openapi/{MakeRequest.js → PlaygroundDialogWrapper.js} +4 -4
- package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js.map +1 -0
- package/dist/lib/plugins/openapi/RequestBodySidecarBox.js +1 -9
- package/dist/lib/plugins/openapi/RequestBodySidecarBox.js.map +1 -1
- package/dist/lib/plugins/openapi/ResponsesSidecarBox.js +1 -1
- package/dist/lib/plugins/openapi/ResponsesSidecarBox.js.map +1 -1
- package/dist/lib/plugins/openapi/SchemaListView.js +4 -26
- package/dist/lib/plugins/openapi/SchemaListView.js.map +1 -1
- package/dist/lib/plugins/openapi/SchemaListViewItem.d.ts +7 -0
- package/dist/lib/plugins/openapi/SchemaListViewItem.js +16 -0
- package/dist/lib/plugins/openapi/SchemaListViewItem.js.map +1 -0
- package/dist/lib/plugins/openapi/SchemaListViewItemGroup.d.ts +8 -0
- package/dist/lib/plugins/openapi/SchemaListViewItemGroup.js +17 -0
- package/dist/lib/plugins/openapi/SchemaListViewItemGroup.js.map +1 -0
- package/dist/lib/plugins/openapi/Sidecar.js +10 -8
- package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
- package/dist/lib/plugins/openapi/{Select.d.ts → SimpleSelect.d.ts} +3 -2
- package/dist/lib/plugins/openapi/SimpleSelect.js +5 -0
- package/dist/lib/plugins/openapi/SimpleSelect.js.map +1 -0
- package/dist/lib/plugins/openapi/index.js +8 -0
- package/dist/lib/plugins/openapi/index.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/Headers.d.ts +2 -3
- package/dist/lib/plugins/openapi/playground/Headers.js +16 -6
- package/dist/lib/plugins/openapi/playground/Headers.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/Playground.d.ts +4 -3
- package/dist/lib/plugins/openapi/playground/Playground.js +8 -12
- package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/PlaygroundDialog.d.ts +3 -0
- package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js +10 -0
- package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js.map +1 -0
- package/dist/lib/plugins/openapi/util/prose.d.ts +1 -0
- package/dist/lib/plugins/openapi/util/prose.js +4 -0
- package/dist/lib/plugins/openapi/util/prose.js.map +1 -0
- package/dist/lib/plugins/openapi/worker/worker.js +25 -1
- package/dist/lib/plugins/openapi/worker/worker.js.map +1 -1
- package/dist/lib/ui/button-variants.d.ts +1 -1
- package/dist/lib/util/MdxComponents.js +1 -1
- package/dist/lib/util/MdxComponents.js.map +1 -1
- package/dist/lib/util/objectEntries.d.ts +4 -0
- package/dist/lib/util/objectEntries.js +2 -0
- package/dist/lib/util/objectEntries.js.map +1 -0
- package/dist/lib/util/renderIf.d.ts +1 -0
- package/dist/lib/util/renderIf.js +2 -0
- package/dist/lib/util/renderIf.js.map +1 -0
- package/dist/vite/build.js +4 -1
- package/dist/vite/build.js.map +1 -1
- package/dist/vite/config.d.ts +7 -7
- package/dist/vite/config.js +34 -40
- package/dist/vite/config.js.map +1 -1
- package/dist/vite/config.test.js +7 -4
- package/dist/vite/config.test.js.map +1 -1
- package/dist/vite/dev-server.js +4 -4
- package/dist/vite/dev-server.js.map +1 -1
- package/dist/vite/plugin-api-keys.js +4 -4
- package/dist/vite/plugin-api-keys.js.map +1 -1
- package/dist/vite/plugin-api.js +5 -5
- package/dist/vite/plugin-api.js.map +1 -1
- package/dist/vite/plugin-auth.js +2 -2
- package/dist/vite/plugin-auth.js.map +1 -1
- package/dist/vite/plugin-config.d.ts +1 -1
- package/dist/vite/plugin-config.js +7 -6
- package/dist/vite/plugin-config.js.map +1 -1
- package/dist/vite/plugin-docs.js +2 -2
- package/dist/vite/plugin-docs.js.map +1 -1
- package/dist/vite/plugin-docs.test.js +1 -1
- package/dist/vite/plugin-docs.test.js.map +1 -1
- package/dist/vite/plugin-redirect.js +4 -4
- package/dist/vite/plugin-redirect.js.map +1 -1
- package/lib/DevPortalProvider-CRKuwoXc.js +4123 -0
- package/lib/Markdown-5LmPZyLV.js +8620 -0
- package/lib/MdxComponents-DYD_QPVF.js +3017 -0
- package/lib/Select-DR3PiqjV.js +4569 -0
- package/lib/Spinner-DjQ2eBxC.js +181 -0
- package/lib/assets/{worker-BCcpCNJ7.js → worker-DGvzLstc.js} +9843 -9800
- package/lib/hook-FCY9-FHO.js +24 -0
- package/lib/index-By9bEW57.js +411 -0
- package/lib/{index-DNx3xWa2.js → index-PyGcnQFX.js} +13 -12
- package/lib/loglevel-CA34MiFn.js +152 -0
- package/lib/prism-csharp.min-Yizuc34Y.js +34 -0
- package/lib/prism-objectivec.min-BXSWqpJJ.js +1 -0
- package/lib/{state-oycsxkHz.js → state-Ds_OxRHP.js} +19 -18
- package/lib/util-voKLTRDG.js +740 -0
- package/lib/zudoku.auth-auth0.js +2 -1
- package/lib/zudoku.auth-clerk.js +10 -8
- package/lib/zudoku.auth-openid.js +442 -588
- package/lib/zudoku.components.js +283 -292
- package/lib/zudoku.openapi-worker.js +12 -12
- package/lib/zudoku.plugin-api-keys.js +292 -0
- package/lib/zudoku.plugin-markdown.js +255 -0
- package/lib/zudoku.plugin-openapi.js +6240 -0
- package/lib/zudoku.plugin-redirect.js +10 -0
- package/package.json +17 -5
- package/src/app/App.tsx +12 -8
- package/src/lib/authentication/authentication.ts +2 -5
- package/src/lib/authentication/hook.ts +1 -0
- package/src/lib/authentication/providers/auth0.tsx +1 -0
- package/src/lib/authentication/providers/clerk.tsx +2 -0
- package/src/lib/authentication/providers/openid.tsx +2 -0
- package/src/lib/authentication/state.ts +2 -0
- package/src/lib/components/DevPortal.tsx +12 -28
- package/src/lib/components/Header.tsx +25 -22
- package/src/lib/components/Heading.tsx +26 -7
- package/src/lib/components/Layout.tsx +2 -2
- package/src/lib/components/SyntaxHighlight.tsx +5 -1
- package/src/lib/components/context/DevPortalProvider.ts +2 -2
- package/src/lib/components/index.ts +3 -0
- package/src/lib/core/DevPortalContext.ts +42 -12
- package/src/lib/core/plugins.ts +10 -5
- package/src/lib/oas/graphql/index.ts +2 -2
- package/src/lib/oas/parser/index.ts +3 -1
- package/src/lib/plugins/{api-key → api-keys}/CreateApiKey.tsx +2 -8
- package/src/lib/plugins/{api-key → api-keys}/SettingsApiKeys.tsx +21 -14
- package/src/lib/plugins/{api-key → api-keys}/index.tsx +67 -18
- package/src/lib/plugins/markdown/MdxPage.tsx +50 -33
- package/src/lib/plugins/markdown/generateRoutes.tsx +12 -2
- package/src/lib/plugins/markdown/index.tsx +8 -1
- package/src/lib/plugins/openapi/OperationList.tsx +9 -3
- package/src/lib/plugins/openapi/OperationListItem.tsx +66 -41
- package/src/lib/plugins/openapi/ParameterList.tsx +1 -1
- package/src/lib/plugins/openapi/ParameterListItem.tsx +3 -4
- package/src/lib/plugins/openapi/{MakeRequest.tsx → PlaygroundDialogWrapper.tsx} +3 -3
- package/src/lib/plugins/openapi/RequestBodySidecarBox.tsx +2 -16
- package/src/lib/plugins/openapi/ResponsesSidecarBox.tsx +3 -1
- package/src/lib/plugins/openapi/SchemaListView.tsx +15 -182
- package/src/lib/plugins/openapi/SchemaListViewItem.tsx +110 -0
- package/src/lib/plugins/openapi/SchemaListViewItemGroup.tsx +63 -0
- package/src/lib/plugins/openapi/Sidecar.tsx +15 -10
- package/src/lib/plugins/openapi/{Select.tsx → SimpleSelect.tsx} +5 -2
- package/src/lib/plugins/openapi/index.tsx +17 -4
- package/src/lib/plugins/openapi/playground/Headers.tsx +60 -33
- package/src/lib/plugins/openapi/playground/Playground.tsx +158 -193
- package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +34 -0
- package/src/lib/plugins/openapi/util/prose.ts +7 -0
- package/src/lib/plugins/openapi/worker/worker.ts +27 -1
- package/src/lib/util/MdxComponents.tsx +1 -1
- package/src/lib/util/objectEntries.ts +5 -0
- package/src/lib/util/renderIf.ts +4 -0
- package/dist/lib/plugins/api-key/CreateApiKey.d.ts +0 -5
- package/dist/lib/plugins/api-key/CreateApiKey.js.map +0 -1
- package/dist/lib/plugins/api-key/SettingsApiKeys.d.ts +0 -5
- package/dist/lib/plugins/api-key/SettingsApiKeys.js +0 -38
- package/dist/lib/plugins/api-key/SettingsApiKeys.js.map +0 -1
- package/dist/lib/plugins/api-key/index.js +0 -62
- package/dist/lib/plugins/api-key/index.js.map +0 -1
- package/dist/lib/plugins/index.d.ts +0 -4
- package/dist/lib/plugins/index.js +0 -5
- package/dist/lib/plugins/index.js.map +0 -1
- package/dist/lib/plugins/openapi/MakeRequest.js.map +0 -1
- package/dist/lib/plugins/openapi/Select.js +0 -5
- package/dist/lib/plugins/openapi/Select.js.map +0 -1
- package/dist/vite/common.d.ts +0 -1
- package/dist/vite/common.js +0 -5
- package/dist/vite/common.js.map +0 -1
- package/lib/Spinner-7LezPqGn.js +0 -8393
- package/lib/clerk-Wslx_mPo.js +0 -19685
- package/lib/zudoku.plugins.js +0 -19857
- package/src/lib/plugins/index.ts +0 -4
- /package/dist/lib/plugins/{api-key → api-keys}/index.d.ts +0 -0
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { u as e } from "./DevPortalProvider-CRKuwoXc.js";
|
|
2
|
+
import { u as i } from "./state-Ds_OxRHP.js";
|
|
3
|
+
const s = () => {
|
|
4
|
+
const { authentication: t } = e(), o = i(), n = typeof t < "u";
|
|
5
|
+
return {
|
|
6
|
+
isAuthEnabled: n,
|
|
7
|
+
isPending: o.isPending,
|
|
8
|
+
profile: o.profile,
|
|
9
|
+
isAuthenticated: o.profile,
|
|
10
|
+
login: async () => {
|
|
11
|
+
if (!n)
|
|
12
|
+
throw new Error("Authentication is not enabled.");
|
|
13
|
+
await t.login();
|
|
14
|
+
},
|
|
15
|
+
logout: async () => {
|
|
16
|
+
if (!n)
|
|
17
|
+
throw new Error("Authentication is not enabled.");
|
|
18
|
+
await t.logout(), window.location.href = "/";
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
export {
|
|
23
|
+
s as u
|
|
24
|
+
};
|
|
@@ -0,0 +1,411 @@
|
|
|
1
|
+
var W = (e) => {
|
|
2
|
+
throw TypeError(e);
|
|
3
|
+
};
|
|
4
|
+
var N = (e, t, s) => t.has(e) || W("Cannot " + s);
|
|
5
|
+
var c = (e, t, s) => (N(e, t, "read from private field"), s ? s.call(e) : t.get(e)), b = (e, t, s) => t.has(e) ? W("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, s), E = (e, t, s, n) => (N(e, t, "write to private field"), n ? n.call(e, s) : t.set(e, s), s), C = (e, t, s) => (N(e, t, "access private method"), s);
|
|
6
|
+
import { H as L, I as Z, n as q } from "./DevPortalProvider-CRKuwoXc.js";
|
|
7
|
+
import * as r from "react";
|
|
8
|
+
import { j as P } from "./index-PyGcnQFX.js";
|
|
9
|
+
import * as z from "react-dom";
|
|
10
|
+
var y, h, w, x, S, k, ct = (k = class extends L {
|
|
11
|
+
constructor(t) {
|
|
12
|
+
super();
|
|
13
|
+
b(this, x);
|
|
14
|
+
b(this, y);
|
|
15
|
+
b(this, h);
|
|
16
|
+
b(this, w);
|
|
17
|
+
this.mutationId = t.mutationId, E(this, h, t.mutationCache), E(this, y, []), this.state = t.state || J(), this.setOptions(t.options), this.scheduleGc();
|
|
18
|
+
}
|
|
19
|
+
setOptions(t) {
|
|
20
|
+
this.options = t, this.updateGcTime(this.options.gcTime);
|
|
21
|
+
}
|
|
22
|
+
get meta() {
|
|
23
|
+
return this.options.meta;
|
|
24
|
+
}
|
|
25
|
+
addObserver(t) {
|
|
26
|
+
c(this, y).includes(t) || (c(this, y).push(t), this.clearGcTimeout(), c(this, h).notify({
|
|
27
|
+
type: "observerAdded",
|
|
28
|
+
mutation: this,
|
|
29
|
+
observer: t
|
|
30
|
+
}));
|
|
31
|
+
}
|
|
32
|
+
removeObserver(t) {
|
|
33
|
+
E(this, y, c(this, y).filter((s) => s !== t)), this.scheduleGc(), c(this, h).notify({
|
|
34
|
+
type: "observerRemoved",
|
|
35
|
+
mutation: this,
|
|
36
|
+
observer: t
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
optionalRemove() {
|
|
40
|
+
c(this, y).length || (this.state.status === "pending" ? this.scheduleGc() : c(this, h).remove(this));
|
|
41
|
+
}
|
|
42
|
+
continue() {
|
|
43
|
+
var t;
|
|
44
|
+
return ((t = c(this, w)) == null ? void 0 : t.continue()) ?? // continuing a mutation assumes that variables are set, mutation must have been dehydrated before
|
|
45
|
+
this.execute(this.state.variables);
|
|
46
|
+
}
|
|
47
|
+
async execute(t) {
|
|
48
|
+
var o, i, u, a, l, d, g, p, m, R, v, j, M, $, I, A, _, F, G, V;
|
|
49
|
+
E(this, w, Z({
|
|
50
|
+
fn: () => this.options.mutationFn ? this.options.mutationFn(t) : Promise.reject(new Error("No mutationFn found")),
|
|
51
|
+
onFail: (f, O) => {
|
|
52
|
+
C(this, x, S).call(this, { type: "failed", failureCount: f, error: O });
|
|
53
|
+
},
|
|
54
|
+
onPause: () => {
|
|
55
|
+
C(this, x, S).call(this, { type: "pause" });
|
|
56
|
+
},
|
|
57
|
+
onContinue: () => {
|
|
58
|
+
C(this, x, S).call(this, { type: "continue" });
|
|
59
|
+
},
|
|
60
|
+
retry: this.options.retry ?? 0,
|
|
61
|
+
retryDelay: this.options.retryDelay,
|
|
62
|
+
networkMode: this.options.networkMode,
|
|
63
|
+
canRun: () => c(this, h).canRun(this)
|
|
64
|
+
}));
|
|
65
|
+
const s = this.state.status === "pending", n = !c(this, w).canStart();
|
|
66
|
+
try {
|
|
67
|
+
if (!s) {
|
|
68
|
+
C(this, x, S).call(this, { type: "pending", variables: t, isPaused: n }), await ((i = (o = c(this, h).config).onMutate) == null ? void 0 : i.call(
|
|
69
|
+
o,
|
|
70
|
+
t,
|
|
71
|
+
this
|
|
72
|
+
));
|
|
73
|
+
const O = await ((a = (u = this.options).onMutate) == null ? void 0 : a.call(u, t));
|
|
74
|
+
O !== this.state.context && C(this, x, S).call(this, {
|
|
75
|
+
type: "pending",
|
|
76
|
+
context: O,
|
|
77
|
+
variables: t,
|
|
78
|
+
isPaused: n
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
const f = await c(this, w).start();
|
|
82
|
+
return await ((d = (l = c(this, h).config).onSuccess) == null ? void 0 : d.call(
|
|
83
|
+
l,
|
|
84
|
+
f,
|
|
85
|
+
t,
|
|
86
|
+
this.state.context,
|
|
87
|
+
this
|
|
88
|
+
)), await ((p = (g = this.options).onSuccess) == null ? void 0 : p.call(g, f, t, this.state.context)), await ((R = (m = c(this, h).config).onSettled) == null ? void 0 : R.call(
|
|
89
|
+
m,
|
|
90
|
+
f,
|
|
91
|
+
null,
|
|
92
|
+
this.state.variables,
|
|
93
|
+
this.state.context,
|
|
94
|
+
this
|
|
95
|
+
)), await ((j = (v = this.options).onSettled) == null ? void 0 : j.call(v, f, null, t, this.state.context)), C(this, x, S).call(this, { type: "success", data: f }), f;
|
|
96
|
+
} catch (f) {
|
|
97
|
+
try {
|
|
98
|
+
throw await (($ = (M = c(this, h).config).onError) == null ? void 0 : $.call(
|
|
99
|
+
M,
|
|
100
|
+
f,
|
|
101
|
+
t,
|
|
102
|
+
this.state.context,
|
|
103
|
+
this
|
|
104
|
+
)), await ((A = (I = this.options).onError) == null ? void 0 : A.call(
|
|
105
|
+
I,
|
|
106
|
+
f,
|
|
107
|
+
t,
|
|
108
|
+
this.state.context
|
|
109
|
+
)), await ((F = (_ = c(this, h).config).onSettled) == null ? void 0 : F.call(
|
|
110
|
+
_,
|
|
111
|
+
void 0,
|
|
112
|
+
f,
|
|
113
|
+
this.state.variables,
|
|
114
|
+
this.state.context,
|
|
115
|
+
this
|
|
116
|
+
)), await ((V = (G = this.options).onSettled) == null ? void 0 : V.call(
|
|
117
|
+
G,
|
|
118
|
+
void 0,
|
|
119
|
+
f,
|
|
120
|
+
t,
|
|
121
|
+
this.state.context
|
|
122
|
+
)), f;
|
|
123
|
+
} finally {
|
|
124
|
+
C(this, x, S).call(this, { type: "error", error: f });
|
|
125
|
+
}
|
|
126
|
+
} finally {
|
|
127
|
+
c(this, h).runNext(this);
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
}, y = new WeakMap(), h = new WeakMap(), w = new WeakMap(), x = new WeakSet(), S = function(t) {
|
|
131
|
+
const s = (n) => {
|
|
132
|
+
switch (t.type) {
|
|
133
|
+
case "failed":
|
|
134
|
+
return {
|
|
135
|
+
...n,
|
|
136
|
+
failureCount: t.failureCount,
|
|
137
|
+
failureReason: t.error
|
|
138
|
+
};
|
|
139
|
+
case "pause":
|
|
140
|
+
return {
|
|
141
|
+
...n,
|
|
142
|
+
isPaused: !0
|
|
143
|
+
};
|
|
144
|
+
case "continue":
|
|
145
|
+
return {
|
|
146
|
+
...n,
|
|
147
|
+
isPaused: !1
|
|
148
|
+
};
|
|
149
|
+
case "pending":
|
|
150
|
+
return {
|
|
151
|
+
...n,
|
|
152
|
+
context: t.context,
|
|
153
|
+
data: void 0,
|
|
154
|
+
failureCount: 0,
|
|
155
|
+
failureReason: null,
|
|
156
|
+
error: null,
|
|
157
|
+
isPaused: t.isPaused,
|
|
158
|
+
status: "pending",
|
|
159
|
+
variables: t.variables,
|
|
160
|
+
submittedAt: Date.now()
|
|
161
|
+
};
|
|
162
|
+
case "success":
|
|
163
|
+
return {
|
|
164
|
+
...n,
|
|
165
|
+
data: t.data,
|
|
166
|
+
failureCount: 0,
|
|
167
|
+
failureReason: null,
|
|
168
|
+
error: null,
|
|
169
|
+
status: "success",
|
|
170
|
+
isPaused: !1
|
|
171
|
+
};
|
|
172
|
+
case "error":
|
|
173
|
+
return {
|
|
174
|
+
...n,
|
|
175
|
+
data: void 0,
|
|
176
|
+
error: t.error,
|
|
177
|
+
failureCount: n.failureCount + 1,
|
|
178
|
+
failureReason: t.error,
|
|
179
|
+
isPaused: !1,
|
|
180
|
+
status: "error"
|
|
181
|
+
};
|
|
182
|
+
}
|
|
183
|
+
};
|
|
184
|
+
this.state = s(this.state), q.batch(() => {
|
|
185
|
+
c(this, y).forEach((n) => {
|
|
186
|
+
n.onMutationUpdate(t);
|
|
187
|
+
}), c(this, h).notify({
|
|
188
|
+
mutation: this,
|
|
189
|
+
type: "updated",
|
|
190
|
+
action: t
|
|
191
|
+
});
|
|
192
|
+
});
|
|
193
|
+
}, k);
|
|
194
|
+
function J() {
|
|
195
|
+
return {
|
|
196
|
+
context: void 0,
|
|
197
|
+
data: void 0,
|
|
198
|
+
error: null,
|
|
199
|
+
failureCount: 0,
|
|
200
|
+
failureReason: null,
|
|
201
|
+
isPaused: !1,
|
|
202
|
+
status: "idle",
|
|
203
|
+
variables: void 0,
|
|
204
|
+
submittedAt: 0
|
|
205
|
+
};
|
|
206
|
+
}
|
|
207
|
+
function lt(e, t, { checkForDefaultPrevented: s = !0 } = {}) {
|
|
208
|
+
return function(o) {
|
|
209
|
+
if (e == null || e(o), s === !1 || !o.defaultPrevented)
|
|
210
|
+
return t == null ? void 0 : t(o);
|
|
211
|
+
};
|
|
212
|
+
}
|
|
213
|
+
function ft(e, t) {
|
|
214
|
+
const s = r.createContext(t);
|
|
215
|
+
function n(i) {
|
|
216
|
+
const { children: u, ...a } = i, l = r.useMemo(() => a, Object.values(a));
|
|
217
|
+
return /* @__PURE__ */ P.jsx(s.Provider, { value: l, children: u });
|
|
218
|
+
}
|
|
219
|
+
function o(i) {
|
|
220
|
+
const u = r.useContext(s);
|
|
221
|
+
if (u) return u;
|
|
222
|
+
if (t !== void 0) return t;
|
|
223
|
+
throw new Error(`\`${i}\` must be used within \`${e}\``);
|
|
224
|
+
}
|
|
225
|
+
return n.displayName = e + "Provider", [n, o];
|
|
226
|
+
}
|
|
227
|
+
function ht(e, t = []) {
|
|
228
|
+
let s = [];
|
|
229
|
+
function n(i, u) {
|
|
230
|
+
const a = r.createContext(u), l = s.length;
|
|
231
|
+
s = [...s, u];
|
|
232
|
+
function d(p) {
|
|
233
|
+
const { scope: m, children: R, ...v } = p, j = (m == null ? void 0 : m[e][l]) || a, M = r.useMemo(() => v, Object.values(v));
|
|
234
|
+
return /* @__PURE__ */ P.jsx(j.Provider, { value: M, children: R });
|
|
235
|
+
}
|
|
236
|
+
function g(p, m) {
|
|
237
|
+
const R = (m == null ? void 0 : m[e][l]) || a, v = r.useContext(R);
|
|
238
|
+
if (v) return v;
|
|
239
|
+
if (u !== void 0) return u;
|
|
240
|
+
throw new Error(`\`${p}\` must be used within \`${i}\``);
|
|
241
|
+
}
|
|
242
|
+
return d.displayName = i + "Provider", [d, g];
|
|
243
|
+
}
|
|
244
|
+
const o = () => {
|
|
245
|
+
const i = s.map((u) => r.createContext(u));
|
|
246
|
+
return function(a) {
|
|
247
|
+
const l = (a == null ? void 0 : a[e]) || i;
|
|
248
|
+
return r.useMemo(
|
|
249
|
+
() => ({ [`__scope${e}`]: { ...a, [e]: l } }),
|
|
250
|
+
[a, l]
|
|
251
|
+
);
|
|
252
|
+
};
|
|
253
|
+
};
|
|
254
|
+
return o.scopeName = e, [n, K(o, ...t)];
|
|
255
|
+
}
|
|
256
|
+
function K(...e) {
|
|
257
|
+
const t = e[0];
|
|
258
|
+
if (e.length === 1) return t;
|
|
259
|
+
const s = () => {
|
|
260
|
+
const n = e.map((o) => ({
|
|
261
|
+
useScope: o(),
|
|
262
|
+
scopeName: o.scopeName
|
|
263
|
+
}));
|
|
264
|
+
return function(i) {
|
|
265
|
+
const u = n.reduce((a, { useScope: l, scopeName: d }) => {
|
|
266
|
+
const p = l(i)[`__scope${d}`];
|
|
267
|
+
return { ...a, ...p };
|
|
268
|
+
}, {});
|
|
269
|
+
return r.useMemo(() => ({ [`__scope${t.scopeName}`]: u }), [u]);
|
|
270
|
+
};
|
|
271
|
+
};
|
|
272
|
+
return s.scopeName = t.scopeName, s;
|
|
273
|
+
}
|
|
274
|
+
function T(e) {
|
|
275
|
+
const t = r.useRef(e);
|
|
276
|
+
return r.useEffect(() => {
|
|
277
|
+
t.current = e;
|
|
278
|
+
}), r.useMemo(() => (...s) => {
|
|
279
|
+
var n;
|
|
280
|
+
return (n = t.current) == null ? void 0 : n.call(t, ...s);
|
|
281
|
+
}, []);
|
|
282
|
+
}
|
|
283
|
+
function dt({
|
|
284
|
+
prop: e,
|
|
285
|
+
defaultProp: t,
|
|
286
|
+
onChange: s = () => {
|
|
287
|
+
}
|
|
288
|
+
}) {
|
|
289
|
+
const [n, o] = Q({ defaultProp: t, onChange: s }), i = e !== void 0, u = i ? e : n, a = T(s), l = r.useCallback(
|
|
290
|
+
(d) => {
|
|
291
|
+
if (i) {
|
|
292
|
+
const p = typeof d == "function" ? d(e) : d;
|
|
293
|
+
p !== e && a(p);
|
|
294
|
+
} else
|
|
295
|
+
o(d);
|
|
296
|
+
},
|
|
297
|
+
[i, e, o, a]
|
|
298
|
+
);
|
|
299
|
+
return [u, l];
|
|
300
|
+
}
|
|
301
|
+
function Q({
|
|
302
|
+
defaultProp: e,
|
|
303
|
+
onChange: t
|
|
304
|
+
}) {
|
|
305
|
+
const s = r.useState(e), [n] = s, o = r.useRef(n), i = T(t);
|
|
306
|
+
return r.useEffect(() => {
|
|
307
|
+
o.current !== n && (i(n), o.current = n);
|
|
308
|
+
}, [n, o, i]), s;
|
|
309
|
+
}
|
|
310
|
+
var X = globalThis != null && globalThis.document ? r.useLayoutEffect : () => {
|
|
311
|
+
};
|
|
312
|
+
function Y(e, t) {
|
|
313
|
+
typeof e == "function" ? e(t) : e != null && (e.current = t);
|
|
314
|
+
}
|
|
315
|
+
function B(...e) {
|
|
316
|
+
return (t) => e.forEach((s) => Y(s, t));
|
|
317
|
+
}
|
|
318
|
+
function pt(...e) {
|
|
319
|
+
return r.useCallback(B(...e), e);
|
|
320
|
+
}
|
|
321
|
+
var U = r.forwardRef((e, t) => {
|
|
322
|
+
const { children: s, ...n } = e, o = r.Children.toArray(s), i = o.find(tt);
|
|
323
|
+
if (i) {
|
|
324
|
+
const u = i.props.children, a = o.map((l) => l === i ? r.Children.count(u) > 1 ? r.Children.only(null) : r.isValidElement(u) ? u.props.children : null : l);
|
|
325
|
+
return /* @__PURE__ */ P.jsx(D, { ...n, ref: t, children: r.isValidElement(u) ? r.cloneElement(u, void 0, a) : null });
|
|
326
|
+
}
|
|
327
|
+
return /* @__PURE__ */ P.jsx(D, { ...n, ref: t, children: s });
|
|
328
|
+
});
|
|
329
|
+
U.displayName = "Slot";
|
|
330
|
+
var D = r.forwardRef((e, t) => {
|
|
331
|
+
const { children: s, ...n } = e;
|
|
332
|
+
if (r.isValidElement(s)) {
|
|
333
|
+
const o = st(s);
|
|
334
|
+
return r.cloneElement(s, {
|
|
335
|
+
...et(n, s.props),
|
|
336
|
+
// @ts-ignore
|
|
337
|
+
ref: t ? B(t, o) : o
|
|
338
|
+
});
|
|
339
|
+
}
|
|
340
|
+
return r.Children.count(s) > 1 ? r.Children.only(null) : null;
|
|
341
|
+
});
|
|
342
|
+
D.displayName = "SlotClone";
|
|
343
|
+
var H = ({ children: e }) => /* @__PURE__ */ P.jsx(P.Fragment, { children: e });
|
|
344
|
+
function tt(e) {
|
|
345
|
+
return r.isValidElement(e) && e.type === H;
|
|
346
|
+
}
|
|
347
|
+
function et(e, t) {
|
|
348
|
+
const s = { ...t };
|
|
349
|
+
for (const n in t) {
|
|
350
|
+
const o = e[n], i = t[n];
|
|
351
|
+
/^on[A-Z]/.test(n) ? o && i ? s[n] = (...a) => {
|
|
352
|
+
i(...a), o(...a);
|
|
353
|
+
} : o && (s[n] = o) : n === "style" ? s[n] = { ...o, ...i } : n === "className" && (s[n] = [o, i].filter(Boolean).join(" "));
|
|
354
|
+
}
|
|
355
|
+
return { ...e, ...s };
|
|
356
|
+
}
|
|
357
|
+
function st(e) {
|
|
358
|
+
var n, o;
|
|
359
|
+
let t = (n = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : n.get, s = t && "isReactWarning" in t && t.isReactWarning;
|
|
360
|
+
return s ? e.ref : (t = (o = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : o.get, s = t && "isReactWarning" in t && t.isReactWarning, s ? e.props.ref : e.props.ref || e.ref);
|
|
361
|
+
}
|
|
362
|
+
var nt = [
|
|
363
|
+
"a",
|
|
364
|
+
"button",
|
|
365
|
+
"div",
|
|
366
|
+
"form",
|
|
367
|
+
"h2",
|
|
368
|
+
"h3",
|
|
369
|
+
"img",
|
|
370
|
+
"input",
|
|
371
|
+
"label",
|
|
372
|
+
"li",
|
|
373
|
+
"nav",
|
|
374
|
+
"ol",
|
|
375
|
+
"p",
|
|
376
|
+
"span",
|
|
377
|
+
"svg",
|
|
378
|
+
"ul"
|
|
379
|
+
], mt = nt.reduce((e, t) => {
|
|
380
|
+
const s = r.forwardRef((n, o) => {
|
|
381
|
+
const { asChild: i, ...u } = n, a = i ? U : t;
|
|
382
|
+
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ P.jsx(a, { ...u, ref: o });
|
|
383
|
+
});
|
|
384
|
+
return s.displayName = `Primitive.${t}`, { ...e, [t]: s };
|
|
385
|
+
}, {});
|
|
386
|
+
function yt(e, t) {
|
|
387
|
+
e && z.flushSync(() => e.dispatchEvent(t));
|
|
388
|
+
}
|
|
389
|
+
var ot = r.useId || (() => {
|
|
390
|
+
}), rt = 0;
|
|
391
|
+
function xt(e) {
|
|
392
|
+
const [t, s] = r.useState(ot());
|
|
393
|
+
return X(() => {
|
|
394
|
+
s((n) => n ?? String(rt++));
|
|
395
|
+
}, [e]), t ? `radix-${t}` : "";
|
|
396
|
+
}
|
|
397
|
+
export {
|
|
398
|
+
ct as M,
|
|
399
|
+
mt as P,
|
|
400
|
+
U as S,
|
|
401
|
+
dt as a,
|
|
402
|
+
T as b,
|
|
403
|
+
ht as c,
|
|
404
|
+
lt as d,
|
|
405
|
+
xt as e,
|
|
406
|
+
ft as f,
|
|
407
|
+
X as g,
|
|
408
|
+
J as h,
|
|
409
|
+
yt as i,
|
|
410
|
+
pt as u
|
|
411
|
+
};
|
|
@@ -3440,21 +3440,22 @@ export {
|
|
|
3440
3440
|
fa as O,
|
|
3441
3441
|
De as R,
|
|
3442
3442
|
zn as a,
|
|
3443
|
-
|
|
3444
|
-
|
|
3445
|
-
|
|
3446
|
-
|
|
3447
|
-
|
|
3448
|
-
|
|
3449
|
-
|
|
3443
|
+
ra as b,
|
|
3444
|
+
Ve as c,
|
|
3445
|
+
sa as d,
|
|
3446
|
+
Jn as e,
|
|
3447
|
+
yt as f,
|
|
3448
|
+
ca as g,
|
|
3449
|
+
Ne as h,
|
|
3450
3450
|
M as i,
|
|
3451
3451
|
oa as j,
|
|
3452
|
-
|
|
3453
|
-
|
|
3452
|
+
la as k,
|
|
3453
|
+
ia as l,
|
|
3454
3454
|
fr as m,
|
|
3455
|
-
|
|
3456
|
-
|
|
3457
|
-
|
|
3455
|
+
pa as n,
|
|
3456
|
+
It as o,
|
|
3457
|
+
ha as p,
|
|
3458
|
+
ua as q,
|
|
3458
3459
|
Et as s,
|
|
3459
3460
|
Bt as u,
|
|
3460
3461
|
te as w
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
import { c as N, g as _ } from "./_commonjsHelpers-BkfeUUK-.js";
|
|
2
|
+
var I = { exports: {} };
|
|
3
|
+
(function(w) {
|
|
4
|
+
(function(g, i) {
|
|
5
|
+
w.exports ? w.exports = i() : g.log = i();
|
|
6
|
+
})(N, function() {
|
|
7
|
+
var g = function() {
|
|
8
|
+
}, i = "undefined", C = typeof window !== i && typeof window.navigator !== i && /Trident\/|MSIE /.test(window.navigator.userAgent), p = [
|
|
9
|
+
"trace",
|
|
10
|
+
"debug",
|
|
11
|
+
"info",
|
|
12
|
+
"warn",
|
|
13
|
+
"error"
|
|
14
|
+
], a = {}, l = null;
|
|
15
|
+
function h(o, t) {
|
|
16
|
+
var e = o[t];
|
|
17
|
+
if (typeof e.bind == "function")
|
|
18
|
+
return e.bind(o);
|
|
19
|
+
try {
|
|
20
|
+
return Function.prototype.bind.call(e, o);
|
|
21
|
+
} catch {
|
|
22
|
+
return function() {
|
|
23
|
+
return Function.prototype.apply.apply(e, [o, arguments]);
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
function T() {
|
|
28
|
+
console.log && (console.log.apply ? console.log.apply(console, arguments) : Function.prototype.apply.apply(console.log, [console, arguments])), console.trace && console.trace();
|
|
29
|
+
}
|
|
30
|
+
function x(o) {
|
|
31
|
+
return o === "debug" && (o = "log"), typeof console === i ? !1 : o === "trace" && C ? T : console[o] !== void 0 ? h(console, o) : console.log !== void 0 ? h(console, "log") : g;
|
|
32
|
+
}
|
|
33
|
+
function c() {
|
|
34
|
+
for (var o = this.getLevel(), t = 0; t < p.length; t++) {
|
|
35
|
+
var e = p[t];
|
|
36
|
+
this[e] = t < o ? g : this.methodFactory(e, o, this.name);
|
|
37
|
+
}
|
|
38
|
+
if (this.log = this.debug, typeof console === i && o < this.levels.SILENT)
|
|
39
|
+
return "No console available for logging";
|
|
40
|
+
}
|
|
41
|
+
function F(o) {
|
|
42
|
+
return function() {
|
|
43
|
+
typeof console !== i && (c.call(this), this[o].apply(this, arguments));
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function R(o, t, e) {
|
|
47
|
+
return x(o) || F.apply(this, arguments);
|
|
48
|
+
}
|
|
49
|
+
function L(o, t) {
|
|
50
|
+
var e = this, v, y, f, s = "loglevel";
|
|
51
|
+
typeof o == "string" ? s += ":" + o : typeof o == "symbol" && (s = void 0);
|
|
52
|
+
function S(n) {
|
|
53
|
+
var r = (p[n] || "silent").toUpperCase();
|
|
54
|
+
if (!(typeof window === i || !s)) {
|
|
55
|
+
try {
|
|
56
|
+
window.localStorage[s] = r;
|
|
57
|
+
return;
|
|
58
|
+
} catch {
|
|
59
|
+
}
|
|
60
|
+
try {
|
|
61
|
+
window.document.cookie = encodeURIComponent(s) + "=" + r + ";";
|
|
62
|
+
} catch {
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
function b() {
|
|
67
|
+
var n;
|
|
68
|
+
if (!(typeof window === i || !s)) {
|
|
69
|
+
try {
|
|
70
|
+
n = window.localStorage[s];
|
|
71
|
+
} catch {
|
|
72
|
+
}
|
|
73
|
+
if (typeof n === i)
|
|
74
|
+
try {
|
|
75
|
+
var r = window.document.cookie, d = encodeURIComponent(s), m = r.indexOf(d + "=");
|
|
76
|
+
m !== -1 && (n = /^([^;]+)/.exec(
|
|
77
|
+
r.slice(m + d.length + 1)
|
|
78
|
+
)[1]);
|
|
79
|
+
} catch {
|
|
80
|
+
}
|
|
81
|
+
return e.levels[n] === void 0 && (n = void 0), n;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
function U() {
|
|
85
|
+
if (!(typeof window === i || !s)) {
|
|
86
|
+
try {
|
|
87
|
+
window.localStorage.removeItem(s);
|
|
88
|
+
} catch {
|
|
89
|
+
}
|
|
90
|
+
try {
|
|
91
|
+
window.document.cookie = encodeURIComponent(s) + "=; expires=Thu, 01 Jan 1970 00:00:00 UTC";
|
|
92
|
+
} catch {
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
function u(n) {
|
|
97
|
+
var r = n;
|
|
98
|
+
if (typeof r == "string" && e.levels[r.toUpperCase()] !== void 0 && (r = e.levels[r.toUpperCase()]), typeof r == "number" && r >= 0 && r <= e.levels.SILENT)
|
|
99
|
+
return r;
|
|
100
|
+
throw new TypeError("log.setLevel() called with invalid level: " + n);
|
|
101
|
+
}
|
|
102
|
+
e.name = o, e.levels = {
|
|
103
|
+
TRACE: 0,
|
|
104
|
+
DEBUG: 1,
|
|
105
|
+
INFO: 2,
|
|
106
|
+
WARN: 3,
|
|
107
|
+
ERROR: 4,
|
|
108
|
+
SILENT: 5
|
|
109
|
+
}, e.methodFactory = t || R, e.getLevel = function() {
|
|
110
|
+
return f ?? y ?? v;
|
|
111
|
+
}, e.setLevel = function(n, r) {
|
|
112
|
+
return f = u(n), r !== !1 && S(f), c.call(e);
|
|
113
|
+
}, e.setDefaultLevel = function(n) {
|
|
114
|
+
y = u(n), b() || e.setLevel(n, !1);
|
|
115
|
+
}, e.resetLevel = function() {
|
|
116
|
+
f = null, U(), c.call(e);
|
|
117
|
+
}, e.enableAll = function(n) {
|
|
118
|
+
e.setLevel(e.levels.TRACE, n);
|
|
119
|
+
}, e.disableAll = function(n) {
|
|
120
|
+
e.setLevel(e.levels.SILENT, n);
|
|
121
|
+
}, e.rebuild = function() {
|
|
122
|
+
if (l !== e && (v = u(l.getLevel())), c.call(e), l === e)
|
|
123
|
+
for (var n in a)
|
|
124
|
+
a[n].rebuild();
|
|
125
|
+
}, v = u(
|
|
126
|
+
l ? l.getLevel() : "WARN"
|
|
127
|
+
);
|
|
128
|
+
var E = b();
|
|
129
|
+
E != null && (f = u(E)), c.call(e);
|
|
130
|
+
}
|
|
131
|
+
l = new L(), l.getLogger = function(t) {
|
|
132
|
+
if (typeof t != "symbol" && typeof t != "string" || t === "")
|
|
133
|
+
throw new TypeError("You must supply a name when creating a logger.");
|
|
134
|
+
var e = a[t];
|
|
135
|
+
return e || (e = a[t] = new L(
|
|
136
|
+
t,
|
|
137
|
+
l.methodFactory
|
|
138
|
+
)), e;
|
|
139
|
+
};
|
|
140
|
+
var A = typeof window !== i ? window.log : void 0;
|
|
141
|
+
return l.noConflict = function() {
|
|
142
|
+
return typeof window !== i && window.log === l && (window.log = A), l;
|
|
143
|
+
}, l.getLoggers = function() {
|
|
144
|
+
return a;
|
|
145
|
+
}, l.default = l, l;
|
|
146
|
+
});
|
|
147
|
+
})(I);
|
|
148
|
+
var D = I.exports;
|
|
149
|
+
const P = /* @__PURE__ */ _(D);
|
|
150
|
+
export {
|
|
151
|
+
P as l
|
|
152
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
(function(s) {
|
|
2
|
+
function n(a, o) {
|
|
3
|
+
return a.replace(/<<(\d+)>>/g, function(f, H) {
|
|
4
|
+
return "(?:" + o[+H] + ")";
|
|
5
|
+
});
|
|
6
|
+
}
|
|
7
|
+
function e(a, o, f) {
|
|
8
|
+
return RegExp(n(a, o), "");
|
|
9
|
+
}
|
|
10
|
+
function d(a, o) {
|
|
11
|
+
for (var f = 0; f < o; f++) a = a.replace(/<<self>>/g, function() {
|
|
12
|
+
return "(?:" + a + ")";
|
|
13
|
+
});
|
|
14
|
+
return a.replace(/<<self>>/g, "[^\\s\\S]");
|
|
15
|
+
}
|
|
16
|
+
var w = "bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void", p = "class enum interface record struct", v = "add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)", m = "abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield";
|
|
17
|
+
function c(a) {
|
|
18
|
+
return "\\b(?:" + a.trim().replace(/ /g, "|") + ")\\b";
|
|
19
|
+
}
|
|
20
|
+
var x = c(p), u = RegExp(c(w + " " + p + " " + v + " " + m)), U = c(p + " " + v + " " + m), Z = c(w + " " + p + " " + m), g = d("<(?:[^<>;=+\\-*/%&|^]|<<self>>)*>", 2), b = d("\\((?:[^()]|<<self>>)*\\)", 2), r = "@?\\b[A-Za-z_]\\w*\\b", h = n("<<0>>(?:\\s*<<1>>)?", [r, g]), i = n("(?!<<0>>)<<1>>(?:\\s*\\.\\s*<<1>>)*", [U, h]), k = "\\[\\s*(?:,\\s*)*\\]", q = n("<<0>>(?:\\s*(?:\\?\\s*)?<<1>>)*(?:\\s*\\?)?", [i, k]), C = n("[^,()<>[\\];=+\\-*/%&|^]|<<0>>|<<1>>|<<2>>", [g, b, k]), D = n("\\(<<0>>+(?:,<<0>>+)+\\)", [C]), l = n("(?:<<0>>|<<1>>)(?:\\s*(?:\\?\\s*)?<<2>>)*(?:\\s*\\?)?", [D, i, k]), t = { keyword: u, punctuation: /[<>()?,.:[\]]/ }, $ = `'(?:[^\r
|
|
21
|
+
'\\\\]|\\\\.|\\\\[Uux][\\da-fA-F]{1,8})'`, _ = `"(?:\\\\.|[^\\\\"\r
|
|
22
|
+
])*"`;
|
|
23
|
+
s.languages.csharp = s.languages.extend("clike", { string: [{ pattern: e("(^|[^$\\\\])<<0>>", ['@"(?:""|\\\\[^]|[^\\\\"])*"(?!")']), lookbehind: !0, greedy: !0 }, { pattern: e("(^|[^@$\\\\])<<0>>", [_]), lookbehind: !0, greedy: !0 }], "class-name": [{ pattern: e("(\\busing\\s+static\\s+)<<0>>(?=\\s*;)", [i]), lookbehind: !0, inside: t }, { pattern: e("(\\busing\\s+<<0>>\\s*=\\s*)<<1>>(?=\\s*;)", [r, l]), lookbehind: !0, inside: t }, { pattern: e("(\\busing\\s+)<<0>>(?=\\s*=)", [r]), lookbehind: !0 }, { pattern: e("(\\b<<0>>\\s+)<<1>>", [x, h]), lookbehind: !0, inside: t }, { pattern: e("(\\bcatch\\s*\\(\\s*)<<0>>", [i]), lookbehind: !0, inside: t }, { pattern: e("(\\bwhere\\s+)<<0>>", [r]), lookbehind: !0 }, { pattern: e("(\\b(?:is(?:\\s+not)?|as)\\s+)<<0>>", [q]), lookbehind: !0, inside: t }, { pattern: e("\\b<<0>>(?=\\s+(?!<<1>>|with\\s*\\{)<<2>>(?:\\s*[=,;:{)\\]]|\\s+(?:in|when)\\b))", [l, Z, r]), inside: t }], keyword: u, number: /(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i, operator: />>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/, punctuation: /\?\.?|::|[{}[\];(),.:]/ }), s.languages.insertBefore("csharp", "number", { range: { pattern: /\.\./, alias: "operator" } }), s.languages.insertBefore("csharp", "punctuation", { "named-parameter": { pattern: e("([(,]\\s*)<<0>>(?=\\s*:)", [r]), lookbehind: !0, alias: "punctuation" } }), s.languages.insertBefore("csharp", "class-name", { namespace: { pattern: e("(\\b(?:namespace|using)\\s+)<<0>>(?:\\s*\\.\\s*<<0>>)*(?=\\s*[;{])", [r]), lookbehind: !0, inside: { punctuation: /\./ } }, "type-expression": { pattern: e("(\\b(?:default|sizeof|typeof)\\s*\\(\\s*(?!\\s))(?:[^()\\s]|\\s(?!\\s)|<<0>>)*(?=\\s*\\))", [b]), lookbehind: !0, alias: "class-name", inside: t }, "return-type": { pattern: e("<<0>>(?=\\s+(?:<<1>>\\s*(?:=>|[({]|\\.\\s*this\\s*\\[)|this\\s*\\[))", [l, i]), inside: t, alias: "class-name" }, "constructor-invocation": { pattern: e("(\\bnew\\s+)<<0>>(?=\\s*[[({])", [l]), lookbehind: !0, inside: t, alias: "class-name" }, "generic-method": { pattern: e("<<0>>\\s*<<1>>(?=\\s*\\()", [r, g]), inside: { function: e("^<<0>>", [r]), generic: { pattern: RegExp(g), alias: "class-name", inside: t } } }, "type-list": { pattern: e("\\b((?:<<0>>\\s+<<1>>|record\\s+<<1>>\\s*<<5>>|where\\s+<<2>>)\\s*:\\s*)(?:<<3>>|<<4>>|<<1>>\\s*<<5>>|<<6>>)(?:\\s*,\\s*(?:<<3>>|<<4>>|<<6>>))*(?=\\s*(?:where|[{;]|=>|$))", [x, h, r, l, u.source, b, "\\bnew\\s*\\(\\s*\\)"]), lookbehind: !0, inside: { "record-arguments": { pattern: e("(^(?!new\\s*\\()<<0>>\\s*)<<1>>", [h, b]), lookbehind: !0, greedy: !0, inside: s.languages.csharp }, keyword: u, "class-name": { pattern: RegExp(l), greedy: !0, inside: t }, punctuation: /[,()]/ } }, preprocessor: { pattern: /(^[\t ]*)#.*/m, lookbehind: !0, alias: "property", inside: { directive: { pattern: /(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/, lookbehind: !0, alias: "keyword" } } } });
|
|
24
|
+
var B = _ + "|" + $, E = n(`/(?![*/])|//[^\r
|
|
25
|
+
]*[\r
|
|
26
|
+
]|/\\*(?:[^*]|\\*(?!/))*\\*/|<<0>>`, [B]), R = d(n(`[^"'/()]|<<0>>|\\(<<self>>*\\)`, [E]), 2), z = "\\b(?:assembly|event|field|method|module|param|property|return|type)\\b", G = n("<<0>>(?:\\s*\\(<<1>>*\\))?", [i, R]);
|
|
27
|
+
s.languages.insertBefore("csharp", "class-name", { attribute: { pattern: e("((?:^|[^\\s\\w>)?])\\s*\\[\\s*)(?:<<0>>\\s*:\\s*)?<<1>>(?:\\s*,\\s*<<1>>)*(?=\\s*\\])", [z, G]), lookbehind: !0, greedy: !0, inside: { target: { pattern: e("^<<0>>(?=\\s*:)", [z]), alias: "keyword" }, "attribute-arguments": { pattern: e("\\(<<0>>*\\)", [R]), inside: s.languages.csharp }, "class-name": { pattern: RegExp(i), inside: { punctuation: /\./ } }, punctuation: /[:,]/ } } });
|
|
28
|
+
var y = `:[^}\r
|
|
29
|
+
]+`, S = d(n(`[^"'/()]|<<0>>|\\(<<self>>*\\)`, [E]), 2), j = n("\\{(?!\\{)(?:(?![}:])<<0>>)*<<1>>?\\}", [S, y]), A = d(n(`[^"'/()]|/(?!\\*)|/\\*(?:[^*]|\\*(?!/))*\\*/|<<0>>|\\(<<self>>*\\)`, [B]), 2), F = n("\\{(?!\\{)(?:(?![}:])<<0>>)*<<1>>?\\}", [A, y]);
|
|
30
|
+
function P(a, o) {
|
|
31
|
+
return { interpolation: { pattern: e("((?:^|[^{])(?:\\{\\{)*)<<0>>", [a]), lookbehind: !0, inside: { "format-string": { pattern: e("(^\\{(?:(?![}:])<<0>>)*)<<1>>(?=\\}$)", [o, y]), lookbehind: !0, inside: { punctuation: /^:/ } }, punctuation: /^\{|\}$/, expression: { pattern: /[\s\S]+/, alias: "language-csharp", inside: s.languages.csharp } } }, string: /[\s\S]+/ };
|
|
32
|
+
}
|
|
33
|
+
s.languages.insertBefore("csharp", "string", { "interpolation-string": [{ pattern: e('(^|[^\\\\])(?:\\$@|@\\$)"(?:""|\\\\[^]|\\{\\{|<<0>>|[^\\\\{"])*"', [j]), lookbehind: !0, greedy: !0, inside: P(j, S) }, { pattern: e('(^|[^@\\\\])\\$"(?:\\\\.|\\{\\{|<<0>>|[^\\\\"{])*"', [F]), lookbehind: !0, greedy: !0, inside: P(F, A) }], char: { pattern: RegExp($), greedy: !0 } }), s.languages.dotnet = s.languages.cs = s.languages.csharp;
|
|
34
|
+
})(Prism);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Prism.languages.objectivec = Prism.languages.extend("c", { string: { pattern: /@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/, greedy: !0 }, keyword: /\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/, operator: /-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/ }), delete Prism.languages.objectivec["class-name"], Prism.languages.objc = Prism.languages.objectivec;
|