convex-cms 0.0.2 → 0.0.3
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/admin-dist/nitro.json +15 -0
- package/admin-dist/public/assets/CmsEmptyState-CRswfTzk.js +5 -0
- package/admin-dist/public/assets/CmsPageHeader-CirpXndm.js +1 -0
- package/admin-dist/public/assets/CmsStatusBadge-CbEUpQu-.js +1 -0
- package/admin-dist/public/assets/CmsToolbar-BI2nZOXp.js +1 -0
- package/admin-dist/public/assets/ContentEntryEditor-CBeCyK_m.js +4 -0
- package/admin-dist/public/assets/ErrorState-BIVaWmom.js +1 -0
- package/admin-dist/public/assets/TaxonomyFilter-ChaY6Y_x.js +1 -0
- package/admin-dist/public/assets/_contentTypeId-DQ8k_Rvw.js +1 -0
- package/admin-dist/public/assets/_entryId-CKU_glsK.js +1 -0
- package/admin-dist/public/assets/alert-BXjTqrwQ.js +1 -0
- package/admin-dist/public/assets/badge-hvUOzpVZ.js +1 -0
- package/admin-dist/public/assets/circle-check-big-CF_pR17r.js +1 -0
- package/admin-dist/public/assets/command-DU82cJlt.js +1 -0
- package/admin-dist/public/assets/content-_LXl3pp7.js +1 -0
- package/admin-dist/public/assets/content-types-KjxaXGxY.js +2 -0
- package/admin-dist/public/assets/globals-CS6BZ0zp.css +1 -0
- package/admin-dist/public/assets/index-DNGIZHL-.js +1 -0
- package/admin-dist/public/assets/label-KNtpL71g.js +1 -0
- package/admin-dist/public/assets/link-2-Bw2aI4V4.js +1 -0
- package/admin-dist/public/assets/list-sYepHjt_.js +1 -0
- package/admin-dist/public/assets/main-CKj5yfEi.js +97 -0
- package/admin-dist/public/assets/media-Bkrkffm7.js +1 -0
- package/admin-dist/public/assets/new._contentTypeId-C3LstjNs.js +1 -0
- package/admin-dist/public/assets/plus-DUn8v_Xf.js +1 -0
- package/admin-dist/public/assets/rotate-ccw-DJEoHcRI.js +1 -0
- package/admin-dist/public/assets/scroll-area-DfIlT0in.js +1 -0
- package/admin-dist/public/assets/search-MuAUDJKR.js +1 -0
- package/admin-dist/public/assets/select-BD29IXCI.js +1 -0
- package/admin-dist/public/assets/settings-DmMyn_6A.js +1 -0
- package/admin-dist/public/assets/switch-h3Rrnl5i.js +1 -0
- package/admin-dist/public/assets/tabs-imc8h-Dp.js +1 -0
- package/admin-dist/public/assets/taxonomies-dAsrT65H.js +1 -0
- package/admin-dist/public/assets/textarea-BTy7nwzR.js +1 -0
- package/admin-dist/public/assets/trash-SAWKZZHv.js +1 -0
- package/admin-dist/public/assets/triangle-alert-E52Vfeuh.js +1 -0
- package/admin-dist/public/assets/useBreadcrumbLabel-BECBMCzM.js +1 -0
- package/admin-dist/public/assets/usePermissions-Basjs9BT.js +1 -0
- package/admin-dist/public/favicon.ico +0 -0
- package/admin-dist/server/_chunks/_libs/@date-fns/tz.mjs +217 -0
- package/admin-dist/server/_chunks/_libs/@floating-ui/core.mjs +719 -0
- package/admin-dist/server/_chunks/_libs/@floating-ui/dom.mjs +622 -0
- package/admin-dist/server/_chunks/_libs/@floating-ui/react-dom.mjs +292 -0
- package/admin-dist/server/_chunks/_libs/@floating-ui/utils.mjs +320 -0
- package/admin-dist/server/_chunks/_libs/@radix-ui/number.mjs +6 -0
- package/admin-dist/server/_chunks/_libs/@radix-ui/primitive.mjs +11 -0
- package/admin-dist/server/_chunks/_libs/@radix-ui/react-arrow.mjs +23 -0
- package/admin-dist/server/_chunks/_libs/@radix-ui/react-avatar.mjs +119 -0
- package/admin-dist/server/_chunks/_libs/@radix-ui/react-checkbox.mjs +270 -0
- package/admin-dist/server/_chunks/_libs/@radix-ui/react-collection.mjs +69 -0
- package/admin-dist/server/_chunks/_libs/@radix-ui/react-compose-refs.mjs +39 -0
- package/admin-dist/server/_chunks/_libs/@radix-ui/react-context.mjs +137 -0
- package/admin-dist/server/_chunks/_libs/@radix-ui/react-dialog.mjs +325 -0
- package/admin-dist/server/_chunks/_libs/@radix-ui/react-direction.mjs +9 -0
- package/admin-dist/server/_chunks/_libs/@radix-ui/react-dismissable-layer.mjs +210 -0
- package/admin-dist/server/_chunks/_libs/@radix-ui/react-dropdown-menu.mjs +253 -0
- package/admin-dist/server/_chunks/_libs/@radix-ui/react-focus-guards.mjs +29 -0
- package/admin-dist/server/_chunks/_libs/@radix-ui/react-focus-scope.mjs +206 -0
- package/admin-dist/server/_chunks/_libs/@radix-ui/react-id.mjs +14 -0
- package/admin-dist/server/_chunks/_libs/@radix-ui/react-label.mjs +23 -0
- package/admin-dist/server/_chunks/_libs/@radix-ui/react-menu.mjs +812 -0
- package/admin-dist/server/_chunks/_libs/@radix-ui/react-popover.mjs +300 -0
- package/admin-dist/server/_chunks/_libs/@radix-ui/react-popper.mjs +286 -0
- package/admin-dist/server/_chunks/_libs/@radix-ui/react-portal.mjs +16 -0
- package/admin-dist/server/_chunks/_libs/@radix-ui/react-presence.mjs +128 -0
- package/admin-dist/server/_chunks/_libs/@radix-ui/react-primitive.mjs +141 -0
- package/admin-dist/server/_chunks/_libs/@radix-ui/react-roving-focus.mjs +224 -0
- package/admin-dist/server/_chunks/_libs/@radix-ui/react-scroll-area.mjs +721 -0
- package/admin-dist/server/_chunks/_libs/@radix-ui/react-select.mjs +1163 -0
- package/admin-dist/server/_chunks/_libs/@radix-ui/react-separator.mjs +28 -0
- package/admin-dist/server/_chunks/_libs/@radix-ui/react-slot.mjs +601 -0
- package/admin-dist/server/_chunks/_libs/@radix-ui/react-switch.mjs +152 -0
- package/admin-dist/server/_chunks/_libs/@radix-ui/react-tabs.mjs +189 -0
- package/admin-dist/server/_chunks/_libs/@radix-ui/react-use-callback-ref.mjs +11 -0
- package/admin-dist/server/_chunks/_libs/@radix-ui/react-use-controllable-state.mjs +69 -0
- package/admin-dist/server/_chunks/_libs/@radix-ui/react-use-effect-event.mjs +1 -0
- package/admin-dist/server/_chunks/_libs/@radix-ui/react-use-escape-keydown.mjs +17 -0
- package/admin-dist/server/_chunks/_libs/@radix-ui/react-use-is-hydrated.mjs +15 -0
- package/admin-dist/server/_chunks/_libs/@radix-ui/react-use-layout-effect.mjs +6 -0
- package/admin-dist/server/_chunks/_libs/@radix-ui/react-use-previous.mjs +14 -0
- package/admin-dist/server/_chunks/_libs/@radix-ui/react-use-size.mjs +39 -0
- package/admin-dist/server/_chunks/_libs/@radix-ui/react-visually-hidden.mjs +33 -0
- package/admin-dist/server/_chunks/_libs/@tanstack/history.mjs +409 -0
- package/admin-dist/server/_chunks/_libs/@tanstack/react-router.mjs +1711 -0
- package/admin-dist/server/_chunks/_libs/@tanstack/react-store.mjs +56 -0
- package/admin-dist/server/_chunks/_libs/@tanstack/router-core.mjs +4829 -0
- package/admin-dist/server/_chunks/_libs/@tanstack/store.mjs +134 -0
- package/admin-dist/server/_chunks/_libs/react-dom.mjs +10781 -0
- package/admin-dist/server/_chunks/_libs/react.mjs +513 -0
- package/admin-dist/server/_libs/aria-hidden.mjs +122 -0
- package/admin-dist/server/_libs/class-variance-authority.mjs +44 -0
- package/admin-dist/server/_libs/clsx.mjs +16 -0
- package/admin-dist/server/_libs/cmdk.mjs +315 -0
- package/admin-dist/server/_libs/convex.mjs +4841 -0
- package/admin-dist/server/_libs/cookie-es.mjs +58 -0
- package/admin-dist/server/_libs/croner.mjs +1 -0
- package/admin-dist/server/_libs/crossws.mjs +1 -0
- package/admin-dist/server/_libs/date-fns.mjs +1716 -0
- package/admin-dist/server/_libs/detect-node-es.mjs +1 -0
- package/admin-dist/server/_libs/get-nonce.mjs +9 -0
- package/admin-dist/server/_libs/h3-v2.mjs +277 -0
- package/admin-dist/server/_libs/h3.mjs +401 -0
- package/admin-dist/server/_libs/hookable.mjs +1 -0
- package/admin-dist/server/_libs/isbot.mjs +20 -0
- package/admin-dist/server/_libs/lucide-react.mjs +850 -0
- package/admin-dist/server/_libs/ohash.mjs +1 -0
- package/admin-dist/server/_libs/react-day-picker.mjs +2201 -0
- package/admin-dist/server/_libs/react-remove-scroll-bar.mjs +82 -0
- package/admin-dist/server/_libs/react-remove-scroll.mjs +328 -0
- package/admin-dist/server/_libs/react-style-singleton.mjs +69 -0
- package/admin-dist/server/_libs/rou3.mjs +8 -0
- package/admin-dist/server/_libs/seroval-plugins.mjs +58 -0
- package/admin-dist/server/_libs/seroval.mjs +1765 -0
- package/admin-dist/server/_libs/srvx.mjs +719 -0
- package/admin-dist/server/_libs/tailwind-merge.mjs +3010 -0
- package/admin-dist/server/_libs/tiny-invariant.mjs +12 -0
- package/admin-dist/server/_libs/tiny-warning.mjs +5 -0
- package/admin-dist/server/_libs/tslib.mjs +39 -0
- package/admin-dist/server/_libs/ufo.mjs +54 -0
- package/admin-dist/server/_libs/unctx.mjs +1 -0
- package/admin-dist/server/_libs/unstorage.mjs +1 -0
- package/admin-dist/server/_libs/use-callback-ref.mjs +66 -0
- package/admin-dist/server/_libs/use-sidecar.mjs +106 -0
- package/admin-dist/server/_libs/use-sync-external-store.mjs +139 -0
- package/admin-dist/server/_libs/zod.mjs +4223 -0
- package/admin-dist/server/_ssr/CmsEmptyState-DU7-7-mV.mjs +290 -0
- package/admin-dist/server/_ssr/CmsPageHeader-CseW0AHm.mjs +24 -0
- package/admin-dist/server/_ssr/CmsStatusBadge-B_pi4KCp.mjs +127 -0
- package/admin-dist/server/_ssr/CmsToolbar-X75ex6ek.mjs +49 -0
- package/admin-dist/server/_ssr/ContentEntryEditor-CepusRsA.mjs +3720 -0
- package/admin-dist/server/_ssr/ErrorState-cI-bKLez.mjs +89 -0
- package/admin-dist/server/_ssr/TaxonomyFilter-Bwrq0-cz.mjs +188 -0
- package/admin-dist/server/_ssr/_contentTypeId-BqYKEcLr.mjs +379 -0
- package/admin-dist/server/_ssr/_entryId-CRfnqeDf.mjs +161 -0
- package/admin-dist/server/_ssr/_tanstack-start-manifest_v-BwDlABVk.mjs +4 -0
- package/admin-dist/server/_ssr/alert-CVt45UUP.mjs +92 -0
- package/admin-dist/server/_ssr/badge-6BsP37vG.mjs +125 -0
- package/admin-dist/server/_ssr/command-fy8epIKf.mjs +128 -0
- package/admin-dist/server/_ssr/config.server-D7JHDcDv.mjs +117 -0
- package/admin-dist/server/_ssr/content-B5RhL7uW.mjs +532 -0
- package/admin-dist/server/_ssr/content-types-BIOqCQYN.mjs +1166 -0
- package/admin-dist/server/_ssr/index-DHSHDPt1.mjs +193 -0
- package/admin-dist/server/_ssr/index.mjs +1275 -0
- package/admin-dist/server/_ssr/label-C8Dko1j7.mjs +22 -0
- package/admin-dist/server/_ssr/media-CSx3XttC.mjs +1832 -0
- package/admin-dist/server/_ssr/new._contentTypeId-DzanEZQM.mjs +144 -0
- package/admin-dist/server/_ssr/router-DDWcF-kt.mjs +1556 -0
- package/admin-dist/server/_ssr/scroll-area-bjPYwhXN.mjs +59 -0
- package/admin-dist/server/_ssr/select-BUhDDf4T.mjs +142 -0
- package/admin-dist/server/_ssr/settings-DAsxnw2q.mjs +348 -0
- package/admin-dist/server/_ssr/start-HYkvq4Ni.mjs +4 -0
- package/admin-dist/server/_ssr/switch-BgyRtQ1Z.mjs +31 -0
- package/admin-dist/server/_ssr/tabs-DzMdRB1A.mjs +628 -0
- package/admin-dist/server/_ssr/taxonomies-C8j8g5Q5.mjs +915 -0
- package/admin-dist/server/_ssr/textarea-9jNeYJSc.mjs +18 -0
- package/admin-dist/server/_ssr/trash-DYMxwhZB.mjs +291 -0
- package/admin-dist/server/_ssr/useBreadcrumbLabel-FNSAr2Ha.mjs +16 -0
- package/admin-dist/server/_ssr/usePermissions-BJGGahrJ.mjs +68 -0
- package/admin-dist/server/favicon.ico +0 -0
- package/admin-dist/server/index.mjs +627 -0
- package/dist/cli/index.js +0 -0
- package/dist/client/admin-config.d.ts +0 -1
- package/dist/client/admin-config.d.ts.map +1 -1
- package/dist/client/admin-config.js +0 -1
- package/dist/client/admin-config.js.map +1 -1
- package/dist/client/adminApi.d.ts.map +1 -1
- package/dist/client/agentTools.d.ts +1237 -135
- package/dist/client/agentTools.d.ts.map +1 -1
- package/dist/client/agentTools.js +33 -9
- package/dist/client/agentTools.js.map +1 -1
- package/dist/client/index.d.ts +1 -1
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js.map +1 -1
- package/dist/component/_generated/component.d.ts +9 -0
- package/dist/component/_generated/component.d.ts.map +1 -1
- package/dist/component/mediaAssets.d.ts +35 -0
- package/dist/component/mediaAssets.d.ts.map +1 -1
- package/dist/component/mediaAssets.js +81 -0
- package/dist/component/mediaAssets.js.map +1 -1
- package/dist/test.d.ts.map +1 -1
- package/dist/test.js +2 -1
- package/dist/test.js.map +1 -1
- package/package.json +9 -5
- package/dist/component/auditLog.d.ts +0 -410
- package/dist/component/auditLog.d.ts.map +0 -1
- package/dist/component/auditLog.js +0 -607
- package/dist/component/auditLog.js.map +0 -1
- package/dist/component/types.d.ts +0 -4
- package/dist/component/types.d.ts.map +0 -1
- package/dist/component/types.js +0 -2
- package/dist/component/types.js.map +0 -1
- package/src/cli/commands/admin.ts +0 -104
- package/src/cli/index.ts +0 -21
- package/src/cli/utils/detectConvexUrl.ts +0 -54
- package/src/cli/utils/openBrowser.ts +0 -16
- package/src/client/admin-config.ts +0 -138
- package/src/client/adminApi.ts +0 -942
- package/src/client/agentTools.ts +0 -1311
- package/src/client/argTypes.ts +0 -316
- package/src/client/field-types.ts +0 -187
- package/src/client/index.ts +0 -1301
- package/src/client/queryBuilder.ts +0 -1100
- package/src/client/schema/codegen.ts +0 -500
- package/src/client/schema/defineContentType.ts +0 -501
- package/src/client/schema/index.ts +0 -169
- package/src/client/schema/schemaDrift.ts +0 -574
- package/src/client/schema/typedClient.ts +0 -688
- package/src/client/schema/types.ts +0 -666
- package/src/client/types.ts +0 -723
- package/src/client/workflows.ts +0 -141
- package/src/client/wrapper.ts +0 -4304
- package/src/component/_generated/api.ts +0 -140
- package/src/component/_generated/component.ts +0 -5029
- package/src/component/_generated/dataModel.ts +0 -60
- package/src/component/_generated/server.ts +0 -156
- package/src/component/authorization.ts +0 -647
- package/src/component/authorizationHooks.ts +0 -668
- package/src/component/bulkOperations.ts +0 -687
- package/src/component/contentEntries.ts +0 -1976
- package/src/component/contentEntryMutations.ts +0 -1223
- package/src/component/contentEntryValidation.ts +0 -707
- package/src/component/contentLock.ts +0 -550
- package/src/component/contentTypeMigration.ts +0 -1064
- package/src/component/contentTypeMutations.ts +0 -969
- package/src/component/contentTypes.ts +0 -346
- package/src/component/convex.config.ts +0 -44
- package/src/component/documentTypes.ts +0 -240
- package/src/component/eventEmitter.ts +0 -485
- package/src/component/exportImport.ts +0 -1169
- package/src/component/index.ts +0 -491
- package/src/component/lib/deepReferenceResolver.ts +0 -999
- package/src/component/lib/errors.ts +0 -816
- package/src/component/lib/index.ts +0 -145
- package/src/component/lib/mediaReferenceResolver.ts +0 -495
- package/src/component/lib/metadataExtractor.ts +0 -792
- package/src/component/lib/mutationAuth.ts +0 -199
- package/src/component/lib/queries.ts +0 -79
- package/src/component/lib/ragContentChunker.ts +0 -1371
- package/src/component/lib/referenceResolver.ts +0 -430
- package/src/component/lib/slugGenerator.ts +0 -262
- package/src/component/lib/slugUniqueness.ts +0 -333
- package/src/component/lib/softDelete.ts +0 -44
- package/src/component/localeFallbackChain.ts +0 -673
- package/src/component/localeFields.ts +0 -896
- package/src/component/mediaAssetMutations.ts +0 -725
- package/src/component/mediaAssets.ts +0 -932
- package/src/component/mediaFolderMutations.ts +0 -1046
- package/src/component/mediaUploadMutations.ts +0 -224
- package/src/component/mediaVariantMutations.ts +0 -900
- package/src/component/mediaVariants.ts +0 -793
- package/src/component/ragContentIndexer.ts +0 -1067
- package/src/component/rateLimitHooks.ts +0 -572
- package/src/component/roles.ts +0 -1360
- package/src/component/scheduledPublish.ts +0 -358
- package/src/component/schema.ts +0 -617
- package/src/component/taxonomies.ts +0 -949
- package/src/component/taxonomyMutations.ts +0 -1210
- package/src/component/trash.ts +0 -724
- package/src/component/userContext.ts +0 -898
- package/src/component/validation.ts +0 -1388
- package/src/component/validators.ts +0 -949
- package/src/component/versionMutations.ts +0 -392
- package/src/component/webhookTrigger.ts +0 -1922
- package/src/react/index.ts +0 -898
- package/src/test.ts +0 -1580
|
@@ -0,0 +1,513 @@
|
|
|
1
|
+
function _mergeNamespaces(n, m) {
|
|
2
|
+
for (var i = 0; i < m.length; i++) {
|
|
3
|
+
const e = m[i];
|
|
4
|
+
if (typeof e !== "string" && !Array.isArray(e)) {
|
|
5
|
+
for (const k in e) {
|
|
6
|
+
if (k !== "default" && !(k in n)) {
|
|
7
|
+
const d = Object.getOwnPropertyDescriptor(e, k);
|
|
8
|
+
if (d) {
|
|
9
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
10
|
+
enumerable: true,
|
|
11
|
+
get: function() {
|
|
12
|
+
return e[k];
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
return Object.freeze(n);
|
|
21
|
+
}
|
|
22
|
+
function getDefaultExportFromCjs(x) {
|
|
23
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
24
|
+
}
|
|
25
|
+
var jsxRuntime = { exports: {} };
|
|
26
|
+
var reactJsxRuntime_production = {};
|
|
27
|
+
var hasRequiredReactJsxRuntime_production;
|
|
28
|
+
function requireReactJsxRuntime_production() {
|
|
29
|
+
if (hasRequiredReactJsxRuntime_production) return reactJsxRuntime_production;
|
|
30
|
+
hasRequiredReactJsxRuntime_production = 1;
|
|
31
|
+
var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
|
|
32
|
+
function jsxProd(type, config, maybeKey) {
|
|
33
|
+
var key = null;
|
|
34
|
+
void 0 !== maybeKey && (key = "" + maybeKey);
|
|
35
|
+
void 0 !== config.key && (key = "" + config.key);
|
|
36
|
+
if ("key" in config) {
|
|
37
|
+
maybeKey = {};
|
|
38
|
+
for (var propName in config)
|
|
39
|
+
"key" !== propName && (maybeKey[propName] = config[propName]);
|
|
40
|
+
} else maybeKey = config;
|
|
41
|
+
config = maybeKey.ref;
|
|
42
|
+
return {
|
|
43
|
+
$$typeof: REACT_ELEMENT_TYPE,
|
|
44
|
+
type,
|
|
45
|
+
key,
|
|
46
|
+
ref: void 0 !== config ? config : null,
|
|
47
|
+
props: maybeKey
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
reactJsxRuntime_production.Fragment = REACT_FRAGMENT_TYPE;
|
|
51
|
+
reactJsxRuntime_production.jsx = jsxProd;
|
|
52
|
+
reactJsxRuntime_production.jsxs = jsxProd;
|
|
53
|
+
return reactJsxRuntime_production;
|
|
54
|
+
}
|
|
55
|
+
var hasRequiredJsxRuntime;
|
|
56
|
+
function requireJsxRuntime() {
|
|
57
|
+
if (hasRequiredJsxRuntime) return jsxRuntime.exports;
|
|
58
|
+
hasRequiredJsxRuntime = 1;
|
|
59
|
+
{
|
|
60
|
+
jsxRuntime.exports = /* @__PURE__ */ requireReactJsxRuntime_production();
|
|
61
|
+
}
|
|
62
|
+
return jsxRuntime.exports;
|
|
63
|
+
}
|
|
64
|
+
var jsxRuntimeExports = /* @__PURE__ */ requireJsxRuntime();
|
|
65
|
+
var react = { exports: {} };
|
|
66
|
+
var react_production = {};
|
|
67
|
+
var hasRequiredReact_production;
|
|
68
|
+
function requireReact_production() {
|
|
69
|
+
if (hasRequiredReact_production) return react_production;
|
|
70
|
+
hasRequiredReact_production = 1;
|
|
71
|
+
var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler"), REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), REACT_ACTIVITY_TYPE = Symbol.for("react.activity"), MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
|
|
72
|
+
function getIteratorFn(maybeIterable) {
|
|
73
|
+
if (null === maybeIterable || "object" !== typeof maybeIterable) return null;
|
|
74
|
+
maybeIterable = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable["@@iterator"];
|
|
75
|
+
return "function" === typeof maybeIterable ? maybeIterable : null;
|
|
76
|
+
}
|
|
77
|
+
var ReactNoopUpdateQueue = {
|
|
78
|
+
isMounted: function() {
|
|
79
|
+
return false;
|
|
80
|
+
},
|
|
81
|
+
enqueueForceUpdate: function() {
|
|
82
|
+
},
|
|
83
|
+
enqueueReplaceState: function() {
|
|
84
|
+
},
|
|
85
|
+
enqueueSetState: function() {
|
|
86
|
+
}
|
|
87
|
+
}, assign = Object.assign, emptyObject = {};
|
|
88
|
+
function Component(props, context, updater) {
|
|
89
|
+
this.props = props;
|
|
90
|
+
this.context = context;
|
|
91
|
+
this.refs = emptyObject;
|
|
92
|
+
this.updater = updater || ReactNoopUpdateQueue;
|
|
93
|
+
}
|
|
94
|
+
Component.prototype.isReactComponent = {};
|
|
95
|
+
Component.prototype.setState = function(partialState, callback) {
|
|
96
|
+
if ("object" !== typeof partialState && "function" !== typeof partialState && null != partialState)
|
|
97
|
+
throw Error(
|
|
98
|
+
"takes an object of state variables to update or a function which returns an object of state variables."
|
|
99
|
+
);
|
|
100
|
+
this.updater.enqueueSetState(this, partialState, callback, "setState");
|
|
101
|
+
};
|
|
102
|
+
Component.prototype.forceUpdate = function(callback) {
|
|
103
|
+
this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
|
|
104
|
+
};
|
|
105
|
+
function ComponentDummy() {
|
|
106
|
+
}
|
|
107
|
+
ComponentDummy.prototype = Component.prototype;
|
|
108
|
+
function PureComponent(props, context, updater) {
|
|
109
|
+
this.props = props;
|
|
110
|
+
this.context = context;
|
|
111
|
+
this.refs = emptyObject;
|
|
112
|
+
this.updater = updater || ReactNoopUpdateQueue;
|
|
113
|
+
}
|
|
114
|
+
var pureComponentPrototype = PureComponent.prototype = new ComponentDummy();
|
|
115
|
+
pureComponentPrototype.constructor = PureComponent;
|
|
116
|
+
assign(pureComponentPrototype, Component.prototype);
|
|
117
|
+
pureComponentPrototype.isPureReactComponent = true;
|
|
118
|
+
var isArrayImpl = Array.isArray;
|
|
119
|
+
function noop() {
|
|
120
|
+
}
|
|
121
|
+
var ReactSharedInternals = { H: null, A: null, T: null, S: null }, hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
122
|
+
function ReactElement(type, key, props) {
|
|
123
|
+
var refProp = props.ref;
|
|
124
|
+
return {
|
|
125
|
+
$$typeof: REACT_ELEMENT_TYPE,
|
|
126
|
+
type,
|
|
127
|
+
key,
|
|
128
|
+
ref: void 0 !== refProp ? refProp : null,
|
|
129
|
+
props
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
function cloneAndReplaceKey(oldElement, newKey) {
|
|
133
|
+
return ReactElement(oldElement.type, newKey, oldElement.props);
|
|
134
|
+
}
|
|
135
|
+
function isValidElement(object) {
|
|
136
|
+
return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
137
|
+
}
|
|
138
|
+
function escape(key) {
|
|
139
|
+
var escaperLookup = { "=": "=0", ":": "=2" };
|
|
140
|
+
return "$" + key.replace(/[=:]/g, function(match) {
|
|
141
|
+
return escaperLookup[match];
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
var userProvidedKeyEscapeRegex = /\/+/g;
|
|
145
|
+
function getElementKey(element, index) {
|
|
146
|
+
return "object" === typeof element && null !== element && null != element.key ? escape("" + element.key) : index.toString(36);
|
|
147
|
+
}
|
|
148
|
+
function resolveThenable(thenable) {
|
|
149
|
+
switch (thenable.status) {
|
|
150
|
+
case "fulfilled":
|
|
151
|
+
return thenable.value;
|
|
152
|
+
case "rejected":
|
|
153
|
+
throw thenable.reason;
|
|
154
|
+
default:
|
|
155
|
+
switch ("string" === typeof thenable.status ? thenable.then(noop, noop) : (thenable.status = "pending", thenable.then(
|
|
156
|
+
function(fulfilledValue) {
|
|
157
|
+
"pending" === thenable.status && (thenable.status = "fulfilled", thenable.value = fulfilledValue);
|
|
158
|
+
},
|
|
159
|
+
function(error) {
|
|
160
|
+
"pending" === thenable.status && (thenable.status = "rejected", thenable.reason = error);
|
|
161
|
+
}
|
|
162
|
+
)), thenable.status) {
|
|
163
|
+
case "fulfilled":
|
|
164
|
+
return thenable.value;
|
|
165
|
+
case "rejected":
|
|
166
|
+
throw thenable.reason;
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
throw thenable;
|
|
170
|
+
}
|
|
171
|
+
function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
|
|
172
|
+
var type = typeof children;
|
|
173
|
+
if ("undefined" === type || "boolean" === type) children = null;
|
|
174
|
+
var invokeCallback = false;
|
|
175
|
+
if (null === children) invokeCallback = true;
|
|
176
|
+
else
|
|
177
|
+
switch (type) {
|
|
178
|
+
case "bigint":
|
|
179
|
+
case "string":
|
|
180
|
+
case "number":
|
|
181
|
+
invokeCallback = true;
|
|
182
|
+
break;
|
|
183
|
+
case "object":
|
|
184
|
+
switch (children.$$typeof) {
|
|
185
|
+
case REACT_ELEMENT_TYPE:
|
|
186
|
+
case REACT_PORTAL_TYPE:
|
|
187
|
+
invokeCallback = true;
|
|
188
|
+
break;
|
|
189
|
+
case REACT_LAZY_TYPE:
|
|
190
|
+
return invokeCallback = children._init, mapIntoArray(
|
|
191
|
+
invokeCallback(children._payload),
|
|
192
|
+
array,
|
|
193
|
+
escapedPrefix,
|
|
194
|
+
nameSoFar,
|
|
195
|
+
callback
|
|
196
|
+
);
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
if (invokeCallback)
|
|
200
|
+
return callback = callback(children), invokeCallback = "" === nameSoFar ? "." + getElementKey(children, 0) : nameSoFar, isArrayImpl(callback) ? (escapedPrefix = "", null != invokeCallback && (escapedPrefix = invokeCallback.replace(userProvidedKeyEscapeRegex, "$&/") + "/"), mapIntoArray(callback, array, escapedPrefix, "", function(c) {
|
|
201
|
+
return c;
|
|
202
|
+
})) : null != callback && (isValidElement(callback) && (callback = cloneAndReplaceKey(
|
|
203
|
+
callback,
|
|
204
|
+
escapedPrefix + (null == callback.key || children && children.key === callback.key ? "" : ("" + callback.key).replace(
|
|
205
|
+
userProvidedKeyEscapeRegex,
|
|
206
|
+
"$&/"
|
|
207
|
+
) + "/") + invokeCallback
|
|
208
|
+
)), array.push(callback)), 1;
|
|
209
|
+
invokeCallback = 0;
|
|
210
|
+
var nextNamePrefix = "" === nameSoFar ? "." : nameSoFar + ":";
|
|
211
|
+
if (isArrayImpl(children))
|
|
212
|
+
for (var i = 0; i < children.length; i++)
|
|
213
|
+
nameSoFar = children[i], type = nextNamePrefix + getElementKey(nameSoFar, i), invokeCallback += mapIntoArray(
|
|
214
|
+
nameSoFar,
|
|
215
|
+
array,
|
|
216
|
+
escapedPrefix,
|
|
217
|
+
type,
|
|
218
|
+
callback
|
|
219
|
+
);
|
|
220
|
+
else if (i = getIteratorFn(children), "function" === typeof i)
|
|
221
|
+
for (children = i.call(children), i = 0; !(nameSoFar = children.next()).done; )
|
|
222
|
+
nameSoFar = nameSoFar.value, type = nextNamePrefix + getElementKey(nameSoFar, i++), invokeCallback += mapIntoArray(
|
|
223
|
+
nameSoFar,
|
|
224
|
+
array,
|
|
225
|
+
escapedPrefix,
|
|
226
|
+
type,
|
|
227
|
+
callback
|
|
228
|
+
);
|
|
229
|
+
else if ("object" === type) {
|
|
230
|
+
if ("function" === typeof children.then)
|
|
231
|
+
return mapIntoArray(
|
|
232
|
+
resolveThenable(children),
|
|
233
|
+
array,
|
|
234
|
+
escapedPrefix,
|
|
235
|
+
nameSoFar,
|
|
236
|
+
callback
|
|
237
|
+
);
|
|
238
|
+
array = String(children);
|
|
239
|
+
throw Error(
|
|
240
|
+
"Objects are not valid as a React child (found: " + ("[object Object]" === array ? "object with keys {" + Object.keys(children).join(", ") + "}" : array) + "). If you meant to render a collection of children, use an array instead."
|
|
241
|
+
);
|
|
242
|
+
}
|
|
243
|
+
return invokeCallback;
|
|
244
|
+
}
|
|
245
|
+
function mapChildren(children, func, context) {
|
|
246
|
+
if (null == children) return children;
|
|
247
|
+
var result = [], count = 0;
|
|
248
|
+
mapIntoArray(children, result, "", "", function(child) {
|
|
249
|
+
return func.call(context, child, count++);
|
|
250
|
+
});
|
|
251
|
+
return result;
|
|
252
|
+
}
|
|
253
|
+
function lazyInitializer(payload) {
|
|
254
|
+
if (-1 === payload._status) {
|
|
255
|
+
var ctor = payload._result;
|
|
256
|
+
ctor = ctor();
|
|
257
|
+
ctor.then(
|
|
258
|
+
function(moduleObject) {
|
|
259
|
+
if (0 === payload._status || -1 === payload._status)
|
|
260
|
+
payload._status = 1, payload._result = moduleObject;
|
|
261
|
+
},
|
|
262
|
+
function(error) {
|
|
263
|
+
if (0 === payload._status || -1 === payload._status)
|
|
264
|
+
payload._status = 2, payload._result = error;
|
|
265
|
+
}
|
|
266
|
+
);
|
|
267
|
+
-1 === payload._status && (payload._status = 0, payload._result = ctor);
|
|
268
|
+
}
|
|
269
|
+
if (1 === payload._status) return payload._result.default;
|
|
270
|
+
throw payload._result;
|
|
271
|
+
}
|
|
272
|
+
var reportGlobalError = "function" === typeof reportError ? reportError : function(error) {
|
|
273
|
+
if ("object" === typeof window && "function" === typeof window.ErrorEvent) {
|
|
274
|
+
var event = new window.ErrorEvent("error", {
|
|
275
|
+
bubbles: true,
|
|
276
|
+
cancelable: true,
|
|
277
|
+
message: "object" === typeof error && null !== error && "string" === typeof error.message ? String(error.message) : String(error),
|
|
278
|
+
error
|
|
279
|
+
});
|
|
280
|
+
if (!window.dispatchEvent(event)) return;
|
|
281
|
+
} else if ("object" === typeof process && "function" === typeof process.emit) {
|
|
282
|
+
process.emit("uncaughtException", error);
|
|
283
|
+
return;
|
|
284
|
+
}
|
|
285
|
+
console.error(error);
|
|
286
|
+
}, Children = {
|
|
287
|
+
map: mapChildren,
|
|
288
|
+
forEach: function(children, forEachFunc, forEachContext) {
|
|
289
|
+
mapChildren(
|
|
290
|
+
children,
|
|
291
|
+
function() {
|
|
292
|
+
forEachFunc.apply(this, arguments);
|
|
293
|
+
},
|
|
294
|
+
forEachContext
|
|
295
|
+
);
|
|
296
|
+
},
|
|
297
|
+
count: function(children) {
|
|
298
|
+
var n = 0;
|
|
299
|
+
mapChildren(children, function() {
|
|
300
|
+
n++;
|
|
301
|
+
});
|
|
302
|
+
return n;
|
|
303
|
+
},
|
|
304
|
+
toArray: function(children) {
|
|
305
|
+
return mapChildren(children, function(child) {
|
|
306
|
+
return child;
|
|
307
|
+
}) || [];
|
|
308
|
+
},
|
|
309
|
+
only: function(children) {
|
|
310
|
+
if (!isValidElement(children))
|
|
311
|
+
throw Error(
|
|
312
|
+
"React.Children.only expected to receive a single React element child."
|
|
313
|
+
);
|
|
314
|
+
return children;
|
|
315
|
+
}
|
|
316
|
+
};
|
|
317
|
+
react_production.Activity = REACT_ACTIVITY_TYPE;
|
|
318
|
+
react_production.Children = Children;
|
|
319
|
+
react_production.Component = Component;
|
|
320
|
+
react_production.Fragment = REACT_FRAGMENT_TYPE;
|
|
321
|
+
react_production.Profiler = REACT_PROFILER_TYPE;
|
|
322
|
+
react_production.PureComponent = PureComponent;
|
|
323
|
+
react_production.StrictMode = REACT_STRICT_MODE_TYPE;
|
|
324
|
+
react_production.Suspense = REACT_SUSPENSE_TYPE;
|
|
325
|
+
react_production.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = ReactSharedInternals;
|
|
326
|
+
react_production.__COMPILER_RUNTIME = {
|
|
327
|
+
__proto__: null,
|
|
328
|
+
c: function(size) {
|
|
329
|
+
return ReactSharedInternals.H.useMemoCache(size);
|
|
330
|
+
}
|
|
331
|
+
};
|
|
332
|
+
react_production.cache = function(fn) {
|
|
333
|
+
return function() {
|
|
334
|
+
return fn.apply(null, arguments);
|
|
335
|
+
};
|
|
336
|
+
};
|
|
337
|
+
react_production.cacheSignal = function() {
|
|
338
|
+
return null;
|
|
339
|
+
};
|
|
340
|
+
react_production.cloneElement = function(element, config, children) {
|
|
341
|
+
if (null === element || void 0 === element)
|
|
342
|
+
throw Error(
|
|
343
|
+
"The argument must be a React element, but you passed " + element + "."
|
|
344
|
+
);
|
|
345
|
+
var props = assign({}, element.props), key = element.key;
|
|
346
|
+
if (null != config)
|
|
347
|
+
for (propName in void 0 !== config.key && (key = "" + config.key), config)
|
|
348
|
+
!hasOwnProperty.call(config, propName) || "key" === propName || "__self" === propName || "__source" === propName || "ref" === propName && void 0 === config.ref || (props[propName] = config[propName]);
|
|
349
|
+
var propName = arguments.length - 2;
|
|
350
|
+
if (1 === propName) props.children = children;
|
|
351
|
+
else if (1 < propName) {
|
|
352
|
+
for (var childArray = Array(propName), i = 0; i < propName; i++)
|
|
353
|
+
childArray[i] = arguments[i + 2];
|
|
354
|
+
props.children = childArray;
|
|
355
|
+
}
|
|
356
|
+
return ReactElement(element.type, key, props);
|
|
357
|
+
};
|
|
358
|
+
react_production.createContext = function(defaultValue) {
|
|
359
|
+
defaultValue = {
|
|
360
|
+
$$typeof: REACT_CONTEXT_TYPE,
|
|
361
|
+
_currentValue: defaultValue,
|
|
362
|
+
_currentValue2: defaultValue,
|
|
363
|
+
_threadCount: 0,
|
|
364
|
+
Provider: null,
|
|
365
|
+
Consumer: null
|
|
366
|
+
};
|
|
367
|
+
defaultValue.Provider = defaultValue;
|
|
368
|
+
defaultValue.Consumer = {
|
|
369
|
+
$$typeof: REACT_CONSUMER_TYPE,
|
|
370
|
+
_context: defaultValue
|
|
371
|
+
};
|
|
372
|
+
return defaultValue;
|
|
373
|
+
};
|
|
374
|
+
react_production.createElement = function(type, config, children) {
|
|
375
|
+
var propName, props = {}, key = null;
|
|
376
|
+
if (null != config)
|
|
377
|
+
for (propName in void 0 !== config.key && (key = "" + config.key), config)
|
|
378
|
+
hasOwnProperty.call(config, propName) && "key" !== propName && "__self" !== propName && "__source" !== propName && (props[propName] = config[propName]);
|
|
379
|
+
var childrenLength = arguments.length - 2;
|
|
380
|
+
if (1 === childrenLength) props.children = children;
|
|
381
|
+
else if (1 < childrenLength) {
|
|
382
|
+
for (var childArray = Array(childrenLength), i = 0; i < childrenLength; i++)
|
|
383
|
+
childArray[i] = arguments[i + 2];
|
|
384
|
+
props.children = childArray;
|
|
385
|
+
}
|
|
386
|
+
if (type && type.defaultProps)
|
|
387
|
+
for (propName in childrenLength = type.defaultProps, childrenLength)
|
|
388
|
+
void 0 === props[propName] && (props[propName] = childrenLength[propName]);
|
|
389
|
+
return ReactElement(type, key, props);
|
|
390
|
+
};
|
|
391
|
+
react_production.createRef = function() {
|
|
392
|
+
return { current: null };
|
|
393
|
+
};
|
|
394
|
+
react_production.forwardRef = function(render) {
|
|
395
|
+
return { $$typeof: REACT_FORWARD_REF_TYPE, render };
|
|
396
|
+
};
|
|
397
|
+
react_production.isValidElement = isValidElement;
|
|
398
|
+
react_production.lazy = function(ctor) {
|
|
399
|
+
return {
|
|
400
|
+
$$typeof: REACT_LAZY_TYPE,
|
|
401
|
+
_payload: { _status: -1, _result: ctor },
|
|
402
|
+
_init: lazyInitializer
|
|
403
|
+
};
|
|
404
|
+
};
|
|
405
|
+
react_production.memo = function(type, compare) {
|
|
406
|
+
return {
|
|
407
|
+
$$typeof: REACT_MEMO_TYPE,
|
|
408
|
+
type,
|
|
409
|
+
compare: void 0 === compare ? null : compare
|
|
410
|
+
};
|
|
411
|
+
};
|
|
412
|
+
react_production.startTransition = function(scope) {
|
|
413
|
+
var prevTransition = ReactSharedInternals.T, currentTransition = {};
|
|
414
|
+
ReactSharedInternals.T = currentTransition;
|
|
415
|
+
try {
|
|
416
|
+
var returnValue = scope(), onStartTransitionFinish = ReactSharedInternals.S;
|
|
417
|
+
null !== onStartTransitionFinish && onStartTransitionFinish(currentTransition, returnValue);
|
|
418
|
+
"object" === typeof returnValue && null !== returnValue && "function" === typeof returnValue.then && returnValue.then(noop, reportGlobalError);
|
|
419
|
+
} catch (error) {
|
|
420
|
+
reportGlobalError(error);
|
|
421
|
+
} finally {
|
|
422
|
+
null !== prevTransition && null !== currentTransition.types && (prevTransition.types = currentTransition.types), ReactSharedInternals.T = prevTransition;
|
|
423
|
+
}
|
|
424
|
+
};
|
|
425
|
+
react_production.unstable_useCacheRefresh = function() {
|
|
426
|
+
return ReactSharedInternals.H.useCacheRefresh();
|
|
427
|
+
};
|
|
428
|
+
react_production.use = function(usable) {
|
|
429
|
+
return ReactSharedInternals.H.use(usable);
|
|
430
|
+
};
|
|
431
|
+
react_production.useActionState = function(action, initialState, permalink) {
|
|
432
|
+
return ReactSharedInternals.H.useActionState(action, initialState, permalink);
|
|
433
|
+
};
|
|
434
|
+
react_production.useCallback = function(callback, deps) {
|
|
435
|
+
return ReactSharedInternals.H.useCallback(callback, deps);
|
|
436
|
+
};
|
|
437
|
+
react_production.useContext = function(Context) {
|
|
438
|
+
return ReactSharedInternals.H.useContext(Context);
|
|
439
|
+
};
|
|
440
|
+
react_production.useDebugValue = function() {
|
|
441
|
+
};
|
|
442
|
+
react_production.useDeferredValue = function(value, initialValue) {
|
|
443
|
+
return ReactSharedInternals.H.useDeferredValue(value, initialValue);
|
|
444
|
+
};
|
|
445
|
+
react_production.useEffect = function(create, deps) {
|
|
446
|
+
return ReactSharedInternals.H.useEffect(create, deps);
|
|
447
|
+
};
|
|
448
|
+
react_production.useEffectEvent = function(callback) {
|
|
449
|
+
return ReactSharedInternals.H.useEffectEvent(callback);
|
|
450
|
+
};
|
|
451
|
+
react_production.useId = function() {
|
|
452
|
+
return ReactSharedInternals.H.useId();
|
|
453
|
+
};
|
|
454
|
+
react_production.useImperativeHandle = function(ref, create, deps) {
|
|
455
|
+
return ReactSharedInternals.H.useImperativeHandle(ref, create, deps);
|
|
456
|
+
};
|
|
457
|
+
react_production.useInsertionEffect = function(create, deps) {
|
|
458
|
+
return ReactSharedInternals.H.useInsertionEffect(create, deps);
|
|
459
|
+
};
|
|
460
|
+
react_production.useLayoutEffect = function(create, deps) {
|
|
461
|
+
return ReactSharedInternals.H.useLayoutEffect(create, deps);
|
|
462
|
+
};
|
|
463
|
+
react_production.useMemo = function(create, deps) {
|
|
464
|
+
return ReactSharedInternals.H.useMemo(create, deps);
|
|
465
|
+
};
|
|
466
|
+
react_production.useOptimistic = function(passthrough, reducer) {
|
|
467
|
+
return ReactSharedInternals.H.useOptimistic(passthrough, reducer);
|
|
468
|
+
};
|
|
469
|
+
react_production.useReducer = function(reducer, initialArg, init) {
|
|
470
|
+
return ReactSharedInternals.H.useReducer(reducer, initialArg, init);
|
|
471
|
+
};
|
|
472
|
+
react_production.useRef = function(initialValue) {
|
|
473
|
+
return ReactSharedInternals.H.useRef(initialValue);
|
|
474
|
+
};
|
|
475
|
+
react_production.useState = function(initialState) {
|
|
476
|
+
return ReactSharedInternals.H.useState(initialState);
|
|
477
|
+
};
|
|
478
|
+
react_production.useSyncExternalStore = function(subscribe, getSnapshot, getServerSnapshot) {
|
|
479
|
+
return ReactSharedInternals.H.useSyncExternalStore(
|
|
480
|
+
subscribe,
|
|
481
|
+
getSnapshot,
|
|
482
|
+
getServerSnapshot
|
|
483
|
+
);
|
|
484
|
+
};
|
|
485
|
+
react_production.useTransition = function() {
|
|
486
|
+
return ReactSharedInternals.H.useTransition();
|
|
487
|
+
};
|
|
488
|
+
react_production.version = "19.2.3";
|
|
489
|
+
return react_production;
|
|
490
|
+
}
|
|
491
|
+
var hasRequiredReact;
|
|
492
|
+
function requireReact() {
|
|
493
|
+
if (hasRequiredReact) return react.exports;
|
|
494
|
+
hasRequiredReact = 1;
|
|
495
|
+
{
|
|
496
|
+
react.exports = /* @__PURE__ */ requireReact_production();
|
|
497
|
+
}
|
|
498
|
+
return react.exports;
|
|
499
|
+
}
|
|
500
|
+
var reactExports = /* @__PURE__ */ requireReact();
|
|
501
|
+
const React = /* @__PURE__ */ getDefaultExportFromCjs(reactExports);
|
|
502
|
+
const React$1 = /* @__PURE__ */ _mergeNamespaces({
|
|
503
|
+
__proto__: null,
|
|
504
|
+
default: React
|
|
505
|
+
}, [reactExports]);
|
|
506
|
+
export {
|
|
507
|
+
React$1 as R,
|
|
508
|
+
React as a,
|
|
509
|
+
requireReact as b,
|
|
510
|
+
getDefaultExportFromCjs as g,
|
|
511
|
+
jsxRuntimeExports as j,
|
|
512
|
+
reactExports as r
|
|
513
|
+
};
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
var getDefaultParent = function(originalTarget) {
|
|
2
|
+
if (typeof document === "undefined") {
|
|
3
|
+
return null;
|
|
4
|
+
}
|
|
5
|
+
var sampleTarget = Array.isArray(originalTarget) ? originalTarget[0] : originalTarget;
|
|
6
|
+
return sampleTarget.ownerDocument.body;
|
|
7
|
+
};
|
|
8
|
+
var counterMap = /* @__PURE__ */ new WeakMap();
|
|
9
|
+
var uncontrolledNodes = /* @__PURE__ */ new WeakMap();
|
|
10
|
+
var markerMap = {};
|
|
11
|
+
var lockCount = 0;
|
|
12
|
+
var unwrapHost = function(node) {
|
|
13
|
+
return node && (node.host || unwrapHost(node.parentNode));
|
|
14
|
+
};
|
|
15
|
+
var correctTargets = function(parent, targets) {
|
|
16
|
+
return targets.map(function(target) {
|
|
17
|
+
if (parent.contains(target)) {
|
|
18
|
+
return target;
|
|
19
|
+
}
|
|
20
|
+
var correctedTarget = unwrapHost(target);
|
|
21
|
+
if (correctedTarget && parent.contains(correctedTarget)) {
|
|
22
|
+
return correctedTarget;
|
|
23
|
+
}
|
|
24
|
+
console.error("aria-hidden", target, "in not contained inside", parent, ". Doing nothing");
|
|
25
|
+
return null;
|
|
26
|
+
}).filter(function(x) {
|
|
27
|
+
return Boolean(x);
|
|
28
|
+
});
|
|
29
|
+
};
|
|
30
|
+
var applyAttributeToOthers = function(originalTarget, parentNode, markerName, controlAttribute) {
|
|
31
|
+
var targets = correctTargets(parentNode, Array.isArray(originalTarget) ? originalTarget : [originalTarget]);
|
|
32
|
+
if (!markerMap[markerName]) {
|
|
33
|
+
markerMap[markerName] = /* @__PURE__ */ new WeakMap();
|
|
34
|
+
}
|
|
35
|
+
var markerCounter = markerMap[markerName];
|
|
36
|
+
var hiddenNodes = [];
|
|
37
|
+
var elementsToKeep = /* @__PURE__ */ new Set();
|
|
38
|
+
var elementsToStop = new Set(targets);
|
|
39
|
+
var keep = function(el) {
|
|
40
|
+
if (!el || elementsToKeep.has(el)) {
|
|
41
|
+
return;
|
|
42
|
+
}
|
|
43
|
+
elementsToKeep.add(el);
|
|
44
|
+
keep(el.parentNode);
|
|
45
|
+
};
|
|
46
|
+
targets.forEach(keep);
|
|
47
|
+
var deep = function(parent) {
|
|
48
|
+
if (!parent || elementsToStop.has(parent)) {
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
51
|
+
Array.prototype.forEach.call(parent.children, function(node) {
|
|
52
|
+
if (elementsToKeep.has(node)) {
|
|
53
|
+
deep(node);
|
|
54
|
+
} else {
|
|
55
|
+
try {
|
|
56
|
+
var attr = node.getAttribute(controlAttribute);
|
|
57
|
+
var alreadyHidden = attr !== null && attr !== "false";
|
|
58
|
+
var counterValue = (counterMap.get(node) || 0) + 1;
|
|
59
|
+
var markerValue = (markerCounter.get(node) || 0) + 1;
|
|
60
|
+
counterMap.set(node, counterValue);
|
|
61
|
+
markerCounter.set(node, markerValue);
|
|
62
|
+
hiddenNodes.push(node);
|
|
63
|
+
if (counterValue === 1 && alreadyHidden) {
|
|
64
|
+
uncontrolledNodes.set(node, true);
|
|
65
|
+
}
|
|
66
|
+
if (markerValue === 1) {
|
|
67
|
+
node.setAttribute(markerName, "true");
|
|
68
|
+
}
|
|
69
|
+
if (!alreadyHidden) {
|
|
70
|
+
node.setAttribute(controlAttribute, "true");
|
|
71
|
+
}
|
|
72
|
+
} catch (e) {
|
|
73
|
+
console.error("aria-hidden: cannot operate on ", node, e);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
});
|
|
77
|
+
};
|
|
78
|
+
deep(parentNode);
|
|
79
|
+
elementsToKeep.clear();
|
|
80
|
+
lockCount++;
|
|
81
|
+
return function() {
|
|
82
|
+
hiddenNodes.forEach(function(node) {
|
|
83
|
+
var counterValue = counterMap.get(node) - 1;
|
|
84
|
+
var markerValue = markerCounter.get(node) - 1;
|
|
85
|
+
counterMap.set(node, counterValue);
|
|
86
|
+
markerCounter.set(node, markerValue);
|
|
87
|
+
if (!counterValue) {
|
|
88
|
+
if (!uncontrolledNodes.has(node)) {
|
|
89
|
+
node.removeAttribute(controlAttribute);
|
|
90
|
+
}
|
|
91
|
+
uncontrolledNodes.delete(node);
|
|
92
|
+
}
|
|
93
|
+
if (!markerValue) {
|
|
94
|
+
node.removeAttribute(markerName);
|
|
95
|
+
}
|
|
96
|
+
});
|
|
97
|
+
lockCount--;
|
|
98
|
+
if (!lockCount) {
|
|
99
|
+
counterMap = /* @__PURE__ */ new WeakMap();
|
|
100
|
+
counterMap = /* @__PURE__ */ new WeakMap();
|
|
101
|
+
uncontrolledNodes = /* @__PURE__ */ new WeakMap();
|
|
102
|
+
markerMap = {};
|
|
103
|
+
}
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
var hideOthers = function(originalTarget, parentNode, markerName) {
|
|
107
|
+
if (markerName === void 0) {
|
|
108
|
+
markerName = "data-aria-hidden";
|
|
109
|
+
}
|
|
110
|
+
var targets = Array.from(Array.isArray(originalTarget) ? originalTarget : [originalTarget]);
|
|
111
|
+
var activeParentNode = getDefaultParent(originalTarget);
|
|
112
|
+
if (!activeParentNode) {
|
|
113
|
+
return function() {
|
|
114
|
+
return null;
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
targets.push.apply(targets, Array.from(activeParentNode.querySelectorAll("[aria-live], script")));
|
|
118
|
+
return applyAttributeToOthers(targets, activeParentNode, markerName, "aria-hidden");
|
|
119
|
+
};
|
|
120
|
+
export {
|
|
121
|
+
hideOthers as h
|
|
122
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { c as clsx } from "./clsx.mjs";
|
|
2
|
+
const falsyToString = (value) => typeof value === "boolean" ? `${value}` : value === 0 ? "0" : value;
|
|
3
|
+
const cx = clsx;
|
|
4
|
+
const cva = (base, config) => (props) => {
|
|
5
|
+
var _config_compoundVariants;
|
|
6
|
+
if ((config === null || config === void 0 ? void 0 : config.variants) == null) return cx(base, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);
|
|
7
|
+
const { variants, defaultVariants } = config;
|
|
8
|
+
const getVariantClassNames = Object.keys(variants).map((variant) => {
|
|
9
|
+
const variantProp = props === null || props === void 0 ? void 0 : props[variant];
|
|
10
|
+
const defaultVariantProp = defaultVariants === null || defaultVariants === void 0 ? void 0 : defaultVariants[variant];
|
|
11
|
+
if (variantProp === null) return null;
|
|
12
|
+
const variantKey = falsyToString(variantProp) || falsyToString(defaultVariantProp);
|
|
13
|
+
return variants[variant][variantKey];
|
|
14
|
+
});
|
|
15
|
+
const propsWithoutUndefined = props && Object.entries(props).reduce((acc, param) => {
|
|
16
|
+
let [key, value] = param;
|
|
17
|
+
if (value === void 0) {
|
|
18
|
+
return acc;
|
|
19
|
+
}
|
|
20
|
+
acc[key] = value;
|
|
21
|
+
return acc;
|
|
22
|
+
}, {});
|
|
23
|
+
const getCompoundVariantClassNames = config === null || config === void 0 ? void 0 : (_config_compoundVariants = config.compoundVariants) === null || _config_compoundVariants === void 0 ? void 0 : _config_compoundVariants.reduce((acc, param) => {
|
|
24
|
+
let { class: cvClass, className: cvClassName, ...compoundVariantOptions } = param;
|
|
25
|
+
return Object.entries(compoundVariantOptions).every((param2) => {
|
|
26
|
+
let [key, value] = param2;
|
|
27
|
+
return Array.isArray(value) ? value.includes({
|
|
28
|
+
...defaultVariants,
|
|
29
|
+
...propsWithoutUndefined
|
|
30
|
+
}[key]) : {
|
|
31
|
+
...defaultVariants,
|
|
32
|
+
...propsWithoutUndefined
|
|
33
|
+
}[key] === value;
|
|
34
|
+
}) ? [
|
|
35
|
+
...acc,
|
|
36
|
+
cvClass,
|
|
37
|
+
cvClassName
|
|
38
|
+
] : acc;
|
|
39
|
+
}, []);
|
|
40
|
+
return cx(base, getVariantClassNames, getCompoundVariantClassNames, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);
|
|
41
|
+
};
|
|
42
|
+
export {
|
|
43
|
+
cva as c
|
|
44
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
function r(e) {
|
|
2
|
+
var t, f, n = "";
|
|
3
|
+
if ("string" == typeof e || "number" == typeof e) n += e;
|
|
4
|
+
else if ("object" == typeof e) if (Array.isArray(e)) {
|
|
5
|
+
var o = e.length;
|
|
6
|
+
for (t = 0; t < o; t++) e[t] && (f = r(e[t])) && (n && (n += " "), n += f);
|
|
7
|
+
} else for (f in e) e[f] && (n && (n += " "), n += f);
|
|
8
|
+
return n;
|
|
9
|
+
}
|
|
10
|
+
function clsx() {
|
|
11
|
+
for (var e, t, f = 0, n = "", o = arguments.length; f < o; f++) (e = arguments[f]) && (t = r(e)) && (n && (n += " "), n += t);
|
|
12
|
+
return n;
|
|
13
|
+
}
|
|
14
|
+
export {
|
|
15
|
+
clsx as c
|
|
16
|
+
};
|