@vritti/quantum-ui 0.3.27 → 0.4.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.
Files changed (105) hide show
  1. package/dist/Avatar.js +5 -5
  2. package/dist/Checkbox.js +16 -11
  3. package/dist/Checkbox.js.map +1 -1
  4. package/dist/Checkbox2.js +4 -5
  5. package/dist/Checkbox2.js.map +1 -1
  6. package/dist/Combination.js +1 -1
  7. package/dist/Dialog.js +1 -1
  8. package/dist/Progress.js +2 -2
  9. package/dist/RadioGroup.js +4 -5
  10. package/dist/RadioGroup.js.map +1 -1
  11. package/dist/Sidebar.js +1 -1
  12. package/dist/Sonner.js +1 -1
  13. package/dist/Switch.js +19 -14
  14. package/dist/Switch.js.map +1 -1
  15. package/dist/TabsSkeleton.js +1 -1
  16. package/dist/Toggle.js +1 -1
  17. package/dist/assets/quantum-ui.css +1 -1
  18. package/dist/components/RichTextEditor.js +1 -1
  19. package/dist/components/TreeView.js +2 -3
  20. package/dist/components/TreeView.js.map +1 -1
  21. package/dist/disabledTip.js +13 -0
  22. package/dist/disabledTip.js.map +1 -0
  23. package/dist/dropdown-menu.js +5 -7
  24. package/dist/dropdown-menu.js.map +1 -1
  25. package/dist/image-component.js +1 -1
  26. package/dist/index.js +1 -1
  27. package/dist/index13.js +4 -6
  28. package/dist/index13.js.map +1 -1
  29. package/dist/index14.js +3 -5
  30. package/dist/index14.js.map +1 -1
  31. package/dist/index15.js +8 -9
  32. package/dist/index15.js.map +1 -1
  33. package/dist/index16.js +1 -1
  34. package/dist/index17.js +1 -1
  35. package/dist/index19.js +2 -4
  36. package/dist/index19.js.map +1 -1
  37. package/dist/index20.js +1 -1
  38. package/dist/index21.js +139 -1
  39. package/dist/index21.js.map +1 -1
  40. package/dist/index22.js +3 -4
  41. package/dist/index22.js.map +1 -1
  42. package/dist/index23.js +70 -122
  43. package/dist/index23.js.map +1 -1
  44. package/dist/index24.js +1128 -70
  45. package/dist/index24.js.map +1 -1
  46. package/dist/index25.js +231 -11
  47. package/dist/index25.js.map +1 -1
  48. package/dist/index26.js +2509 -1106
  49. package/dist/index26.js.map +1 -1
  50. package/dist/index27.js +23 -223
  51. package/dist/index27.js.map +1 -1
  52. package/dist/index28.js +3 -2535
  53. package/dist/index28.js.map +1 -1
  54. package/dist/index29.js +36 -31
  55. package/dist/index29.js.map +1 -1
  56. package/dist/index30.js +308 -3
  57. package/dist/index30.js.map +1 -1
  58. package/dist/index31.js +8 -36
  59. package/dist/index31.js.map +1 -1
  60. package/dist/index32.js +25 -305
  61. package/dist/index32.js.map +1 -1
  62. package/dist/index33.js +60 -8
  63. package/dist/index33.js.map +1 -1
  64. package/dist/index34.js +11 -30
  65. package/dist/index34.js.map +1 -1
  66. package/dist/index35.js +35 -59
  67. package/dist/index35.js.map +1 -1
  68. package/dist/index36.js +35348 -9
  69. package/dist/index36.js.map +1 -1
  70. package/dist/index37.js +79 -36
  71. package/dist/index37.js.map +1 -1
  72. package/dist/index38.js +184 -35341
  73. package/dist/index38.js.map +1 -1
  74. package/dist/index5.js +2 -4
  75. package/dist/index5.js.map +1 -1
  76. package/dist/index8.js +7 -0
  77. package/dist/index8.js.map +1 -1
  78. package/dist/lib/components/Checkbox/Checkbox.d.ts +1 -0
  79. package/dist/lib/components/Checkbox/Checkbox.d.ts.map +1 -1
  80. package/dist/lib/components/Switch/Switch.d.ts +4 -1
  81. package/dist/lib/components/Switch/Switch.d.ts.map +1 -1
  82. package/dist/lib/config/index.d.ts +5 -0
  83. package/dist/lib/config/index.d.ts.map +1 -1
  84. package/dist/lib/hooks/useSSE.d.ts.map +1 -1
  85. package/dist/lib/selects/permission-group/PermissionGroupSelector.d.ts +4 -0
  86. package/dist/lib/selects/permission-group/PermissionGroupSelector.d.ts.map +1 -0
  87. package/dist/lib/selects/permission-group/index.d.ts +2 -0
  88. package/dist/lib/selects/permission-group/index.d.ts.map +1 -0
  89. package/dist/lib/types/catalog-resolver.d.ts +18 -6
  90. package/dist/lib/types/catalog-resolver.d.ts.map +1 -1
  91. package/dist/lib/utils/disabledTip.d.ts +3 -0
  92. package/dist/lib/utils/disabledTip.d.ts.map +1 -0
  93. package/dist/selects/permission-group.js +21 -0
  94. package/dist/selects/permission-group.js.map +1 -0
  95. package/dist/types/catalog-resolver.js +1 -1
  96. package/dist/types/catalog-resolver.js.map +1 -1
  97. package/dist/useTimer.js +2 -1
  98. package/dist/useTimer.js.map +1 -1
  99. package/dist/utils/motion.js +2 -2
  100. package/dist/value.js +1 -1
  101. package/package.json +5 -1
  102. package/dist/index39.js +0 -84
  103. package/dist/index39.js.map +0 -1
  104. package/dist/index40.js +0 -199
  105. package/dist/index40.js.map +0 -1
package/dist/index39.js DELETED
@@ -1,84 +0,0 @@
1
- import { jsx } from 'react/jsx-runtime';
2
- import { createContext, useRef, useState, useCallback, useContext, useMemo } from 'react';
3
- import { u as useIsomorphicLayoutEffect, f as frame, L as LayoutGroupContext } from './proxy.js';
4
-
5
- const notify = (node) => !node.isLayoutDirty && node.willUpdate(false);
6
- function nodeGroup() {
7
- const nodes = new Set();
8
- const subscriptions = new WeakMap();
9
- const dirtyAll = () => nodes.forEach(notify);
10
- return {
11
- add: (node) => {
12
- nodes.add(node);
13
- subscriptions.set(node, node.addEventListener("willUpdate", dirtyAll));
14
- },
15
- remove: (node) => {
16
- nodes.delete(node);
17
- const unsubscribe = subscriptions.get(node);
18
- if (unsubscribe) {
19
- unsubscribe();
20
- subscriptions.delete(node);
21
- }
22
- dirtyAll();
23
- },
24
- dirty: dirtyAll,
25
- };
26
- }
27
-
28
- /**
29
- * Note: Still used by components generated by old versions of Framer
30
- *
31
- * @deprecated
32
- */
33
- const DeprecatedLayoutGroupContext = createContext(null);
34
-
35
- function useIsMounted() {
36
- const isMounted = useRef(false);
37
- useIsomorphicLayoutEffect(() => {
38
- isMounted.current = true;
39
- return () => {
40
- isMounted.current = false;
41
- };
42
- }, []);
43
- return isMounted;
44
- }
45
-
46
- function useForceUpdate() {
47
- const isMounted = useIsMounted();
48
- const [forcedRenderCount, setForcedRenderCount] = useState(0);
49
- const forceRender = useCallback(() => {
50
- isMounted.current && setForcedRenderCount(forcedRenderCount + 1);
51
- }, [forcedRenderCount]);
52
- /**
53
- * Defer this to the end of the next animation frame in case there are multiple
54
- * synchronous calls.
55
- */
56
- const deferredForceRender = useCallback(() => frame.postRender(forceRender), [forceRender]);
57
- return [deferredForceRender, forcedRenderCount];
58
- }
59
-
60
- const shouldInheritGroup = (inherit) => inherit === true;
61
- const shouldInheritId = (inherit) => shouldInheritGroup(inherit === true) || inherit === "id";
62
- const LayoutGroup = ({ children, id, inherit = true }) => {
63
- const layoutGroupContext = useContext(LayoutGroupContext);
64
- const deprecatedLayoutGroupContext = useContext(DeprecatedLayoutGroupContext);
65
- const [forceRender, key] = useForceUpdate();
66
- const context = useRef(null);
67
- const upstreamId = layoutGroupContext.id || deprecatedLayoutGroupContext;
68
- if (context.current === null) {
69
- if (shouldInheritId(inherit) && upstreamId) {
70
- id = id ? upstreamId + "-" + id : upstreamId;
71
- }
72
- context.current = {
73
- id,
74
- group: shouldInheritGroup(inherit)
75
- ? layoutGroupContext.group || nodeGroup()
76
- : nodeGroup(),
77
- };
78
- }
79
- const memoizedContext = useMemo(() => ({ ...context.current, forceRender }), [key]);
80
- return (jsx(LayoutGroupContext.Provider, { value: memoizedContext, children: children }));
81
- };
82
-
83
- export { DeprecatedLayoutGroupContext as D, LayoutGroup as L, nodeGroup as n, useForceUpdate as u };
84
- //# sourceMappingURL=index39.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index39.js","sources":["../node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/projection/node/group.mjs","../node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/context/DeprecatedLayoutGroupContext.mjs","../node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/utils/use-is-mounted.mjs","../node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/utils/use-force-update.mjs","../node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/components/LayoutGroup/index.mjs"],"sourcesContent":["const notify = (node) => !node.isLayoutDirty && node.willUpdate(false);\nfunction nodeGroup() {\n const nodes = new Set();\n const subscriptions = new WeakMap();\n const dirtyAll = () => nodes.forEach(notify);\n return {\n add: (node) => {\n nodes.add(node);\n subscriptions.set(node, node.addEventListener(\"willUpdate\", dirtyAll));\n },\n remove: (node) => {\n nodes.delete(node);\n const unsubscribe = subscriptions.get(node);\n if (unsubscribe) {\n unsubscribe();\n subscriptions.delete(node);\n }\n dirtyAll();\n },\n dirty: dirtyAll,\n };\n}\n\nexport { nodeGroup };\n//# sourceMappingURL=group.mjs.map\n","\"use client\";\nimport { createContext } from 'react';\n\n/**\n * Note: Still used by components generated by old versions of Framer\n *\n * @deprecated\n */\nconst DeprecatedLayoutGroupContext = createContext(null);\n\nexport { DeprecatedLayoutGroupContext };\n//# sourceMappingURL=DeprecatedLayoutGroupContext.mjs.map\n","\"use client\";\nimport { useRef } from 'react';\nimport { useIsomorphicLayoutEffect } from './use-isomorphic-effect.mjs';\n\nfunction useIsMounted() {\n const isMounted = useRef(false);\n useIsomorphicLayoutEffect(() => {\n isMounted.current = true;\n return () => {\n isMounted.current = false;\n };\n }, []);\n return isMounted;\n}\n\nexport { useIsMounted };\n//# sourceMappingURL=use-is-mounted.mjs.map\n","\"use client\";\nimport { frame } from 'motion-dom';\nimport { useState, useCallback } from 'react';\nimport { useIsMounted } from './use-is-mounted.mjs';\n\nfunction useForceUpdate() {\n const isMounted = useIsMounted();\n const [forcedRenderCount, setForcedRenderCount] = useState(0);\n const forceRender = useCallback(() => {\n isMounted.current && setForcedRenderCount(forcedRenderCount + 1);\n }, [forcedRenderCount]);\n /**\n * Defer this to the end of the next animation frame in case there are multiple\n * synchronous calls.\n */\n const deferredForceRender = useCallback(() => frame.postRender(forceRender), [forceRender]);\n return [deferredForceRender, forcedRenderCount];\n}\n\nexport { useForceUpdate };\n//# sourceMappingURL=use-force-update.mjs.map\n","\"use client\";\nimport { jsx } from 'react/jsx-runtime';\nimport { useContext, useRef, useMemo } from 'react';\nimport { LayoutGroupContext } from '../../context/LayoutGroupContext.mjs';\nimport { DeprecatedLayoutGroupContext } from '../../context/DeprecatedLayoutGroupContext.mjs';\nimport { useForceUpdate } from '../../utils/use-force-update.mjs';\nimport { nodeGroup } from 'motion-dom';\n\nconst shouldInheritGroup = (inherit) => inherit === true;\nconst shouldInheritId = (inherit) => shouldInheritGroup(inherit === true) || inherit === \"id\";\nconst LayoutGroup = ({ children, id, inherit = true }) => {\n const layoutGroupContext = useContext(LayoutGroupContext);\n const deprecatedLayoutGroupContext = useContext(DeprecatedLayoutGroupContext);\n const [forceRender, key] = useForceUpdate();\n const context = useRef(null);\n const upstreamId = layoutGroupContext.id || deprecatedLayoutGroupContext;\n if (context.current === null) {\n if (shouldInheritId(inherit) && upstreamId) {\n id = id ? upstreamId + \"-\" + id : upstreamId;\n }\n context.current = {\n id,\n group: shouldInheritGroup(inherit)\n ? layoutGroupContext.group || nodeGroup()\n : nodeGroup(),\n };\n }\n const memoizedContext = useMemo(() => ({ ...context.current, forceRender }), [key]);\n return (jsx(LayoutGroupContext.Provider, { value: memoizedContext, children: children }));\n};\n\nexport { LayoutGroup };\n//# sourceMappingURL=index.mjs.map\n"],"names":[],"mappings":";;;;AAAA,MAAM,MAAM,GAAG,CAAC,IAAI,KAAK,CAAC,IAAI,CAAC,aAAa,IAAI,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC;AACtE,SAAS,SAAS,GAAG;AACrB,IAAI,MAAM,KAAK,GAAG,IAAI,GAAG,EAAE;AAC3B,IAAI,MAAM,aAAa,GAAG,IAAI,OAAO,EAAE;AACvC,IAAI,MAAM,Q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,CAAC,KAAK,IAAI,SAAS;AACvD,kBAAkB,SAAS,EAAE;AAC7B,SAAS;AACT,IAAI;AACJ,IAAI,MAAM,eAAe,GAAG,OAAO,CAAC,OAAO,EAAE,GAAG,OAAO,CAAC,OAAO,EAAE,WAAW,EAAE,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;AACvF,IAAI,QAAQ,GAAG,CAAC,kBAAkB,CAAC,QAAQ,EAAE,EAAE,KAAK,EAAE,eAAe,EAAE,QAAQ,EAAE,QAAQ,EAAE,CAAC;AAC5F;;;;","x_google_ignoreList":[0,1,2,3,4]}
package/dist/index40.js DELETED
@@ -1,199 +0,0 @@
1
- import React__default from 'react';
2
-
3
- var shim = {exports: {}};
4
-
5
- var useSyncExternalStoreShim_production = {};
6
-
7
- /**
8
- * @license React
9
- * use-sync-external-store-shim.production.js
10
- *
11
- * Copyright (c) Meta Platforms, Inc. and affiliates.
12
- *
13
- * This source code is licensed under the MIT license found in the
14
- * LICENSE file in the root directory of this source tree.
15
- */
16
-
17
- var hasRequiredUseSyncExternalStoreShim_production;
18
-
19
- function requireUseSyncExternalStoreShim_production () {
20
- if (hasRequiredUseSyncExternalStoreShim_production) return useSyncExternalStoreShim_production;
21
- hasRequiredUseSyncExternalStoreShim_production = 1;
22
- var React = React__default;
23
- function is(x, y) {
24
- return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y);
25
- }
26
- var objectIs = "function" === typeof Object.is ? Object.is : is,
27
- useState = React.useState,
28
- useEffect = React.useEffect,
29
- useLayoutEffect = React.useLayoutEffect,
30
- useDebugValue = React.useDebugValue;
31
- function useSyncExternalStore$2(subscribe, getSnapshot) {
32
- var value = getSnapshot(),
33
- _useState = useState({ inst: { value: value, getSnapshot: getSnapshot } }),
34
- inst = _useState[0].inst,
35
- forceUpdate = _useState[1];
36
- useLayoutEffect(
37
- function () {
38
- inst.value = value;
39
- inst.getSnapshot = getSnapshot;
40
- checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });
41
- },
42
- [subscribe, value, getSnapshot]
43
- );
44
- useEffect(
45
- function () {
46
- checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });
47
- return subscribe(function () {
48
- checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });
49
- });
50
- },
51
- [subscribe]
52
- );
53
- useDebugValue(value);
54
- return value;
55
- }
56
- function checkIfSnapshotChanged(inst) {
57
- var latestGetSnapshot = inst.getSnapshot;
58
- inst = inst.value;
59
- try {
60
- var nextValue = latestGetSnapshot();
61
- return !objectIs(inst, nextValue);
62
- } catch (error) {
63
- return true;
64
- }
65
- }
66
- function useSyncExternalStore$1(subscribe, getSnapshot) {
67
- return getSnapshot();
68
- }
69
- var shim =
70
- "undefined" === typeof window ||
71
- "undefined" === typeof window.document ||
72
- "undefined" === typeof window.document.createElement
73
- ? useSyncExternalStore$1
74
- : useSyncExternalStore$2;
75
- useSyncExternalStoreShim_production.useSyncExternalStore =
76
- void 0 !== React.useSyncExternalStore ? React.useSyncExternalStore : shim;
77
- return useSyncExternalStoreShim_production;
78
- }
79
-
80
- var useSyncExternalStoreShim_development = {};
81
-
82
- /**
83
- * @license React
84
- * use-sync-external-store-shim.development.js
85
- *
86
- * Copyright (c) Meta Platforms, Inc. and affiliates.
87
- *
88
- * This source code is licensed under the MIT license found in the
89
- * LICENSE file in the root directory of this source tree.
90
- */
91
-
92
- var hasRequiredUseSyncExternalStoreShim_development;
93
-
94
- function requireUseSyncExternalStoreShim_development () {
95
- if (hasRequiredUseSyncExternalStoreShim_development) return useSyncExternalStoreShim_development;
96
- hasRequiredUseSyncExternalStoreShim_development = 1;
97
- "production" !== process.env.NODE_ENV &&
98
- (function () {
99
- function is(x, y) {
100
- return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y);
101
- }
102
- function useSyncExternalStore$2(subscribe, getSnapshot) {
103
- didWarnOld18Alpha ||
104
- void 0 === React.startTransition ||
105
- ((didWarnOld18Alpha = true),
106
- console.error(
107
- "You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."
108
- ));
109
- var value = getSnapshot();
110
- if (!didWarnUncachedGetSnapshot) {
111
- var cachedValue = getSnapshot();
112
- objectIs(value, cachedValue) ||
113
- (console.error(
114
- "The result of getSnapshot should be cached to avoid an infinite loop"
115
- ),
116
- (didWarnUncachedGetSnapshot = true));
117
- }
118
- cachedValue = useState({
119
- inst: { value: value, getSnapshot: getSnapshot }
120
- });
121
- var inst = cachedValue[0].inst,
122
- forceUpdate = cachedValue[1];
123
- useLayoutEffect(
124
- function () {
125
- inst.value = value;
126
- inst.getSnapshot = getSnapshot;
127
- checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });
128
- },
129
- [subscribe, value, getSnapshot]
130
- );
131
- useEffect(
132
- function () {
133
- checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });
134
- return subscribe(function () {
135
- checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });
136
- });
137
- },
138
- [subscribe]
139
- );
140
- useDebugValue(value);
141
- return value;
142
- }
143
- function checkIfSnapshotChanged(inst) {
144
- var latestGetSnapshot = inst.getSnapshot;
145
- inst = inst.value;
146
- try {
147
- var nextValue = latestGetSnapshot();
148
- return !objectIs(inst, nextValue);
149
- } catch (error) {
150
- return true;
151
- }
152
- }
153
- function useSyncExternalStore$1(subscribe, getSnapshot) {
154
- return getSnapshot();
155
- }
156
- "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
157
- "function" ===
158
- typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart &&
159
- __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
160
- var React = React__default,
161
- objectIs = "function" === typeof Object.is ? Object.is : is,
162
- useState = React.useState,
163
- useEffect = React.useEffect,
164
- useLayoutEffect = React.useLayoutEffect,
165
- useDebugValue = React.useDebugValue,
166
- didWarnOld18Alpha = false,
167
- didWarnUncachedGetSnapshot = false,
168
- shim =
169
- "undefined" === typeof window ||
170
- "undefined" === typeof window.document ||
171
- "undefined" === typeof window.document.createElement
172
- ? useSyncExternalStore$1
173
- : useSyncExternalStore$2;
174
- useSyncExternalStoreShim_development.useSyncExternalStore =
175
- void 0 !== React.useSyncExternalStore ? React.useSyncExternalStore : shim;
176
- "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
177
- "function" ===
178
- typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
179
- __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
180
- })();
181
- return useSyncExternalStoreShim_development;
182
- }
183
-
184
- var hasRequiredShim;
185
-
186
- function requireShim () {
187
- if (hasRequiredShim) return shim.exports;
188
- hasRequiredShim = 1;
189
-
190
- if (process.env.NODE_ENV === 'production') {
191
- shim.exports = requireUseSyncExternalStoreShim_production();
192
- } else {
193
- shim.exports = requireUseSyncExternalStoreShim_development();
194
- }
195
- return shim.exports;
196
- }
197
-
198
- export { requireShim as r };
199
- //# sourceMappingURL=index40.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index40.js","sources":["../node_modules/.pnpm/use-sync-external-store@1.6.0_react@19.2.3/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js","../node_modules/.pnpm/use-sync-external-store@1.6.0_react@19.2.3/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js","../node_modules/.pnpm/use-sync-external-store@1.6.0_react@19.2.3/node_modules/use-sync-external-store/shim/index.js"],"sourcesContent":["/**\n * @license React\n * use-sync-external-store-shim.production.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\nvar React = require(\"react\");\nfunction is(x, y) {\n return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y);\n}\nvar objectIs = \"function\" === typeof Object.is ? Object.is : is,\n useState = React.useState,\n useEffect = React.useEffect,\n useLayoutEffect = React.useLayoutEffect,\n useDebugValue = React.useDebugValue;\nfunction useSyncExternalStore$2(subscribe, getSnapshot) {\n var value = getSnapshot(),\n _useState = useState({ inst: { value: value, getSnapshot: getSnapshot } }),\n inst = _useState[0].inst,\n forceUpdate = _useState[1];\n useLayoutEffect(\n function () {\n inst.value = value;\n inst.getSnapshot = getSnapshot;\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n },\n [subscribe, value, getSnapshot]\n );\n useEffect(\n function () {\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n return subscribe(function () {\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n });\n },\n [subscribe]\n );\n useDebugValue(value);\n return value;\n}\nfunction checkIfSnapshotChanged(inst) {\n var latestGetSnapshot = inst.getSnapshot;\n inst = inst.value;\n try {\n var nextValue = latestGetSnapshot();\n return !objectIs(inst, nextValue);\n } catch (error) {\n return !0;\n }\n}\nfunction useSyncExternalStore$1(subscribe, getSnapshot) {\n return getSnapshot();\n}\nvar shim =\n \"undefined\" === typeof window ||\n \"undefined\" === typeof window.document ||\n \"undefined\" === typeof window.document.createElement\n ? useSyncExternalStore$1\n : useSyncExternalStore$2;\nexports.useSyncExternalStore =\n void 0 !== React.useSyncExternalStore ? React.useSyncExternalStore : shim;\n","/**\n * @license React\n * use-sync-external-store-shim.development.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\n\"production\" !== process.env.NODE_ENV &&\n (function () {\n function is(x, y) {\n return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y);\n }\n function useSyncExternalStore$2(subscribe, getSnapshot) {\n didWarnOld18Alpha ||\n void 0 === React.startTransition ||\n ((didWarnOld18Alpha = !0),\n console.error(\n \"You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release.\"\n ));\n var value = getSnapshot();\n if (!didWarnUncachedGetSnapshot) {\n var cachedValue = getSnapshot();\n objectIs(value, cachedValue) ||\n (console.error(\n \"The result of getSnapshot should be cached to avoid an infinite loop\"\n ),\n (didWarnUncachedGetSnapshot = !0));\n }\n cachedValue = useState({\n inst: { value: value, getSnapshot: getSnapshot }\n });\n var inst = cachedValue[0].inst,\n forceUpdate = cachedValue[1];\n useLayoutEffect(\n function () {\n inst.value = value;\n inst.getSnapshot = getSnapshot;\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n },\n [subscribe, value, getSnapshot]\n );\n useEffect(\n function () {\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n return subscribe(function () {\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n });\n },\n [subscribe]\n );\n useDebugValue(value);\n return value;\n }\n function checkIfSnapshotChanged(inst) {\n var latestGetSnapshot = inst.getSnapshot;\n inst = inst.value;\n try {\n var nextValue = latestGetSnapshot();\n return !objectIs(inst, nextValue);\n } catch (error) {\n return !0;\n }\n }\n function useSyncExternalStore$1(subscribe, getSnapshot) {\n return getSnapshot();\n }\n \"undefined\" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&\n \"function\" ===\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart &&\n __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());\n var React = require(\"react\"),\n objectIs = \"function\" === typeof Object.is ? Object.is : is,\n useState = React.useState,\n useEffect = React.useEffect,\n useLayoutEffect = React.useLayoutEffect,\n useDebugValue = React.useDebugValue,\n didWarnOld18Alpha = !1,\n didWarnUncachedGetSnapshot = !1,\n shim =\n \"undefined\" === typeof window ||\n \"undefined\" === typeof window.document ||\n \"undefined\" === typeof window.document.createElement\n ? useSyncExternalStore$1\n : useSyncExternalStore$2;\n exports.useSyncExternalStore =\n void 0 !== React.useSyncExternalStore ? React.useSyncExternalStore : shim;\n \"undefined\" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&\n \"function\" ===\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&\n __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());\n })();\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('../cjs/use-sync-external-store-shim.production.js');\n} else {\n module.exports = require('../cjs/use-sync-external-store-shim.development.js');\n}\n"],"names":["require$$0","shimModule","require$$1"],"mappings":";;;;;;;;;;;;;;;;;;;;;CAWA,IAAI,KAAK,GAAGA,cAAgB;AAC5B,CAAA,SAAS,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE;GAChB,OAAO,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AAC1E,CAAA;AACA,CAAA,IAAI,QAAQ,GAAG,UAAU,KAAK,OAAO,MAAM,CAAC,EAAE,GAAG,MAAM,CAAC,EAAE,GAAG,EAAE;AAC/D,GAAE,QAAQ,GAAG,KAAK,CAAC,QAAQ;AAC3B,GAAE,SAAS,GAAG,KAAK,CAAC,SAAS;AAC7B,GAAE,eAAe,GAAG,KAAK,CAAC,eAAe;AACzC,GAAE,aAAa,GAAG,KAAK,CAAC,aAAa;AACrC,CAAA,SAAS,sBAAsB,CAAC,SAAS,EAAE,WAAW,EAAE;AACxD,GAAE,IAAI,KAAK,GAAG,WAAW,EAAE;AAC3B,KAAI,SAAS,GAAG,QAAQ,CAAC,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,EAAE,CAAC;AAC9E,KAAI,IAAI,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC,IAAI;AAC5B,KAAI,WAAW,GAAG,SAAS,CAAC,CAAC,CAAC;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