@shopify/hydrogen-react 2025.7.1 → 2025.7.2
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/browser-dev/_virtual/use-sync-external-store-shim.production.mjs +5 -0
- package/dist/browser-dev/_virtual/use-sync-external-store-shim.production.mjs.map +1 -0
- package/dist/browser-dev/_virtual/with-selector.production.mjs +5 -0
- package/dist/browser-dev/_virtual/with-selector.production.mjs.map +1 -0
- package/dist/browser-dev/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.mjs +52 -74
- package/dist/browser-dev/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.mjs.map +1 -1
- package/dist/browser-dev/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.mjs +78 -0
- package/dist/browser-dev/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.mjs.map +1 -0
- package/dist/browser-dev/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.mjs +54 -111
- package/dist/browser-dev/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.mjs.map +1 -1
- package/dist/browser-dev/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.mjs +63 -0
- package/dist/browser-dev/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.mjs.map +1 -0
- package/dist/browser-dev/node_modules/use-sync-external-store/shim/index.mjs +2 -2
- package/dist/browser-dev/node_modules/use-sync-external-store/shim/index.mjs.map +1 -1
- package/dist/browser-dev/node_modules/use-sync-external-store/shim/with-selector.mjs +2 -2
- package/dist/browser-dev/node_modules/use-sync-external-store/shim/with-selector.mjs.map +1 -1
- package/dist/browser-dev/packages/hydrogen-react/package.json.mjs +1 -1
- package/dist/browser-prod/_virtual/use-sync-external-store-shim.production.mjs +5 -0
- package/dist/browser-prod/_virtual/use-sync-external-store-shim.production.mjs.map +1 -0
- package/dist/browser-prod/_virtual/with-selector.production.mjs +5 -0
- package/dist/browser-prod/_virtual/with-selector.production.mjs.map +1 -0
- package/dist/browser-prod/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.mjs +52 -74
- package/dist/browser-prod/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.mjs.map +1 -1
- package/dist/browser-prod/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.mjs +78 -0
- package/dist/browser-prod/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.mjs.map +1 -0
- package/dist/browser-prod/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.mjs +54 -111
- package/dist/browser-prod/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.mjs.map +1 -1
- package/dist/browser-prod/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.mjs +63 -0
- package/dist/browser-prod/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.mjs.map +1 -0
- package/dist/browser-prod/node_modules/use-sync-external-store/shim/index.mjs +2 -2
- package/dist/browser-prod/node_modules/use-sync-external-store/shim/index.mjs.map +1 -1
- package/dist/browser-prod/node_modules/use-sync-external-store/shim/with-selector.mjs +2 -2
- package/dist/browser-prod/node_modules/use-sync-external-store/shim/with-selector.mjs.map +1 -1
- package/dist/browser-prod/packages/hydrogen-react/package.json.mjs +1 -1
- package/dist/node-dev/_virtual/use-sync-external-store-shim.production.js +5 -0
- package/dist/node-dev/_virtual/use-sync-external-store-shim.production.js.map +1 -0
- package/dist/node-dev/_virtual/use-sync-external-store-shim.production.mjs +5 -0
- package/dist/node-dev/_virtual/use-sync-external-store-shim.production.mjs.map +1 -0
- package/dist/node-dev/_virtual/with-selector.production.js +5 -0
- package/dist/node-dev/_virtual/with-selector.production.js.map +1 -0
- package/dist/node-dev/_virtual/with-selector.production.mjs +5 -0
- package/dist/node-dev/_virtual/with-selector.production.mjs.map +1 -0
- package/dist/node-dev/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js +52 -74
- package/dist/node-dev/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js.map +1 -1
- package/dist/node-dev/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.mjs +52 -74
- package/dist/node-dev/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.mjs.map +1 -1
- package/dist/node-dev/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js +78 -0
- package/dist/node-dev/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js.map +1 -0
- package/dist/node-dev/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.mjs +78 -0
- package/dist/node-dev/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.mjs.map +1 -0
- package/dist/node-dev/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js +54 -111
- package/dist/node-dev/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js.map +1 -1
- package/dist/node-dev/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.mjs +54 -111
- package/dist/node-dev/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.mjs.map +1 -1
- package/dist/node-dev/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js +63 -0
- package/dist/node-dev/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js.map +1 -0
- package/dist/node-dev/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.mjs +63 -0
- package/dist/node-dev/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.mjs.map +1 -0
- package/dist/node-dev/node_modules/use-sync-external-store/shim/index.js +2 -2
- package/dist/node-dev/node_modules/use-sync-external-store/shim/index.js.map +1 -1
- package/dist/node-dev/node_modules/use-sync-external-store/shim/index.mjs +2 -2
- package/dist/node-dev/node_modules/use-sync-external-store/shim/index.mjs.map +1 -1
- package/dist/node-dev/node_modules/use-sync-external-store/shim/with-selector.js +2 -2
- package/dist/node-dev/node_modules/use-sync-external-store/shim/with-selector.js.map +1 -1
- package/dist/node-dev/node_modules/use-sync-external-store/shim/with-selector.mjs +2 -2
- package/dist/node-dev/node_modules/use-sync-external-store/shim/with-selector.mjs.map +1 -1
- package/dist/node-dev/packages/hydrogen-react/package.json.js +1 -1
- package/dist/node-dev/packages/hydrogen-react/package.json.mjs +1 -1
- package/dist/node-prod/_virtual/use-sync-external-store-shim.production.js +5 -0
- package/dist/node-prod/_virtual/use-sync-external-store-shim.production.js.map +1 -0
- package/dist/node-prod/_virtual/use-sync-external-store-shim.production.mjs +5 -0
- package/dist/node-prod/_virtual/use-sync-external-store-shim.production.mjs.map +1 -0
- package/dist/node-prod/_virtual/with-selector.production.js +5 -0
- package/dist/node-prod/_virtual/with-selector.production.js.map +1 -0
- package/dist/node-prod/_virtual/with-selector.production.mjs +5 -0
- package/dist/node-prod/_virtual/with-selector.production.mjs.map +1 -0
- package/dist/node-prod/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js +52 -74
- package/dist/node-prod/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js.map +1 -1
- package/dist/node-prod/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.mjs +52 -74
- package/dist/node-prod/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.mjs.map +1 -1
- package/dist/node-prod/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js +78 -0
- package/dist/node-prod/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js.map +1 -0
- package/dist/node-prod/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.mjs +78 -0
- package/dist/node-prod/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.mjs.map +1 -0
- package/dist/node-prod/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js +54 -111
- package/dist/node-prod/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js.map +1 -1
- package/dist/node-prod/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.mjs +54 -111
- package/dist/node-prod/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.mjs.map +1 -1
- package/dist/node-prod/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js +63 -0
- package/dist/node-prod/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js.map +1 -0
- package/dist/node-prod/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.mjs +63 -0
- package/dist/node-prod/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.mjs.map +1 -0
- package/dist/node-prod/node_modules/use-sync-external-store/shim/index.js +2 -2
- package/dist/node-prod/node_modules/use-sync-external-store/shim/index.js.map +1 -1
- package/dist/node-prod/node_modules/use-sync-external-store/shim/index.mjs +2 -2
- package/dist/node-prod/node_modules/use-sync-external-store/shim/index.mjs.map +1 -1
- package/dist/node-prod/node_modules/use-sync-external-store/shim/with-selector.js +2 -2
- package/dist/node-prod/node_modules/use-sync-external-store/shim/with-selector.js.map +1 -1
- package/dist/node-prod/node_modules/use-sync-external-store/shim/with-selector.mjs +2 -2
- package/dist/node-prod/node_modules/use-sync-external-store/shim/with-selector.mjs.map +1 -1
- package/dist/node-prod/packages/hydrogen-react/package.json.js +1 -1
- package/dist/node-prod/packages/hydrogen-react/package.json.mjs +1 -1
- package/dist/umd/hydrogen-react.dev.js +107 -186
- package/dist/umd/hydrogen-react.dev.js.map +1 -1
- package/dist/umd/hydrogen-react.prod.js +16 -16
- package/dist/umd/hydrogen-react.prod.js.map +1 -1
- package/package.json +5 -5
- package/dist/browser-dev/_virtual/use-sync-external-store-shim.production.min.mjs +0 -5
- package/dist/browser-dev/_virtual/use-sync-external-store-shim.production.min.mjs.map +0 -1
- package/dist/browser-dev/_virtual/with-selector.production.min.mjs +0 -5
- package/dist/browser-dev/_virtual/with-selector.production.min.mjs.map +0 -1
- package/dist/browser-dev/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.min.mjs +0 -67
- package/dist/browser-dev/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.min.mjs.map +0 -1
- package/dist/browser-dev/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.min.mjs +0 -57
- package/dist/browser-dev/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.min.mjs.map +0 -1
- package/dist/browser-prod/_virtual/use-sync-external-store-shim.production.min.mjs +0 -5
- package/dist/browser-prod/_virtual/use-sync-external-store-shim.production.min.mjs.map +0 -1
- package/dist/browser-prod/_virtual/with-selector.production.min.mjs +0 -5
- package/dist/browser-prod/_virtual/with-selector.production.min.mjs.map +0 -1
- package/dist/browser-prod/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.min.mjs +0 -67
- package/dist/browser-prod/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.min.mjs.map +0 -1
- package/dist/browser-prod/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.min.mjs +0 -57
- package/dist/browser-prod/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.min.mjs.map +0 -1
- package/dist/node-dev/_virtual/use-sync-external-store-shim.production.min.js +0 -5
- package/dist/node-dev/_virtual/use-sync-external-store-shim.production.min.js.map +0 -1
- package/dist/node-dev/_virtual/use-sync-external-store-shim.production.min.mjs +0 -5
- package/dist/node-dev/_virtual/use-sync-external-store-shim.production.min.mjs.map +0 -1
- package/dist/node-dev/_virtual/with-selector.production.min.js +0 -5
- package/dist/node-dev/_virtual/with-selector.production.min.js.map +0 -1
- package/dist/node-dev/_virtual/with-selector.production.min.mjs +0 -5
- package/dist/node-dev/_virtual/with-selector.production.min.mjs.map +0 -1
- package/dist/node-dev/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.min.js +0 -67
- package/dist/node-dev/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.min.js.map +0 -1
- package/dist/node-dev/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.min.mjs +0 -67
- package/dist/node-dev/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.min.mjs.map +0 -1
- package/dist/node-dev/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.min.js +0 -57
- package/dist/node-dev/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.min.js.map +0 -1
- package/dist/node-dev/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.min.mjs +0 -57
- package/dist/node-dev/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.min.mjs.map +0 -1
- package/dist/node-prod/_virtual/use-sync-external-store-shim.production.min.js +0 -5
- package/dist/node-prod/_virtual/use-sync-external-store-shim.production.min.js.map +0 -1
- package/dist/node-prod/_virtual/use-sync-external-store-shim.production.min.mjs +0 -5
- package/dist/node-prod/_virtual/use-sync-external-store-shim.production.min.mjs.map +0 -1
- package/dist/node-prod/_virtual/with-selector.production.min.js +0 -5
- package/dist/node-prod/_virtual/with-selector.production.min.js.map +0 -1
- package/dist/node-prod/_virtual/with-selector.production.min.mjs +0 -5
- package/dist/node-prod/_virtual/with-selector.production.min.mjs.map +0 -1
- package/dist/node-prod/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.min.js +0 -67
- package/dist/node-prod/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.min.js.map +0 -1
- package/dist/node-prod/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.min.mjs +0 -67
- package/dist/node-prod/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.min.mjs.map +0 -1
- package/dist/node-prod/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.min.js +0 -57
- package/dist/node-prod/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.min.js.map +0 -1
- package/dist/node-prod/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.min.mjs +0 -57
- package/dist/node-prod/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.min.mjs.map +0 -1
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { __exports as useSyncExternalStoreShim_production } from "../../../_virtual/use-sync-external-store-shim.production.mjs";
|
|
2
|
+
import React__default from "react";
|
|
3
|
+
/**
|
|
4
|
+
* @license React
|
|
5
|
+
* use-sync-external-store-shim.production.js
|
|
6
|
+
*
|
|
7
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
8
|
+
*
|
|
9
|
+
* This source code is licensed under the MIT license found in the
|
|
10
|
+
* LICENSE file in the root directory of this source tree.
|
|
11
|
+
*/
|
|
12
|
+
var hasRequiredUseSyncExternalStoreShim_production;
|
|
13
|
+
function requireUseSyncExternalStoreShim_production() {
|
|
14
|
+
if (hasRequiredUseSyncExternalStoreShim_production) return useSyncExternalStoreShim_production;
|
|
15
|
+
hasRequiredUseSyncExternalStoreShim_production = 1;
|
|
16
|
+
var React = React__default;
|
|
17
|
+
function is(x, y) {
|
|
18
|
+
return x === y && (0 !== x || 1 / x === 1 / y) || x !== x && y !== y;
|
|
19
|
+
}
|
|
20
|
+
var objectIs = "function" === typeof Object.is ? Object.is : is, useState = React.useState, useEffect = React.useEffect, useLayoutEffect = React.useLayoutEffect, useDebugValue = React.useDebugValue;
|
|
21
|
+
function useSyncExternalStore$2(subscribe, getSnapshot) {
|
|
22
|
+
var value = getSnapshot(), _useState = useState({ inst: { value, getSnapshot } }), inst = _useState[0].inst, forceUpdate = _useState[1];
|
|
23
|
+
useLayoutEffect(
|
|
24
|
+
function() {
|
|
25
|
+
inst.value = value;
|
|
26
|
+
inst.getSnapshot = getSnapshot;
|
|
27
|
+
checkIfSnapshotChanged(inst) && forceUpdate({ inst });
|
|
28
|
+
},
|
|
29
|
+
[subscribe, value, getSnapshot]
|
|
30
|
+
);
|
|
31
|
+
useEffect(
|
|
32
|
+
function() {
|
|
33
|
+
checkIfSnapshotChanged(inst) && forceUpdate({ inst });
|
|
34
|
+
return subscribe(function() {
|
|
35
|
+
checkIfSnapshotChanged(inst) && forceUpdate({ inst });
|
|
36
|
+
});
|
|
37
|
+
},
|
|
38
|
+
[subscribe]
|
|
39
|
+
);
|
|
40
|
+
useDebugValue(value);
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
function checkIfSnapshotChanged(inst) {
|
|
44
|
+
var latestGetSnapshot = inst.getSnapshot;
|
|
45
|
+
inst = inst.value;
|
|
46
|
+
try {
|
|
47
|
+
var nextValue = latestGetSnapshot();
|
|
48
|
+
return !objectIs(inst, nextValue);
|
|
49
|
+
} catch (error) {
|
|
50
|
+
return true;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
function useSyncExternalStore$1(subscribe, getSnapshot) {
|
|
54
|
+
return getSnapshot();
|
|
55
|
+
}
|
|
56
|
+
var shim = "undefined" === typeof window || "undefined" === typeof window.document || "undefined" === typeof window.document.createElement ? useSyncExternalStore$1 : useSyncExternalStore$2;
|
|
57
|
+
useSyncExternalStoreShim_production.useSyncExternalStore = void 0 !== React.useSyncExternalStore ? React.useSyncExternalStore : shim;
|
|
58
|
+
return useSyncExternalStoreShim_production;
|
|
59
|
+
}
|
|
60
|
+
export {
|
|
61
|
+
requireUseSyncExternalStoreShim_production as __require
|
|
62
|
+
};
|
|
63
|
+
//# sourceMappingURL=use-sync-external-store-shim.production.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-sync-external-store-shim.production.mjs","sources":["../../../../../../../node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.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"],"names":["require$$0"],"mappings":";;;;;;;;;;;;;;;AAWA,MAAI,QAAQA;AACZ,WAAS,GAAG,GAAG,GAAG;AAChB,WAAQ,MAAM,MAAM,MAAM,KAAK,IAAI,MAAM,IAAI,MAAQ,MAAM,KAAK,MAAM;AAAA,EACxE;AACA,MAAI,WAAW,eAAe,OAAO,OAAO,KAAK,OAAO,KAAK,IAC3D,WAAW,MAAM,UACjB,YAAY,MAAM,WAClB,kBAAkB,MAAM,iBACxB,gBAAgB,MAAM;AACxB,WAAS,uBAAuB,WAAW,aAAa;AACtD,QAAI,QAAQ,YAAW,GACrB,YAAY,SAAS,EAAE,MAAM,EAAE,OAAc,YAAwB,GAAI,GACzE,OAAO,UAAU,CAAC,EAAE,MACpB,cAAc,UAAU,CAAC;AAC3B;AAAA,MACE,WAAY;AACV,aAAK,QAAQ;AACb,aAAK,cAAc;AACnB,+BAAuB,IAAI,KAAK,YAAY,EAAE,KAAU,CAAE;AAAA,MAChE;AAAA,MACI,CAAC,WAAW,OAAO,WAAW;AAAA;AAEhC;AAAA,MACE,WAAY;AACV,+BAAuB,IAAI,KAAK,YAAY,EAAE,KAAU,CAAE;AAC1D,eAAO,UAAU,WAAY;AAC3B,iCAAuB,IAAI,KAAK,YAAY,EAAE,KAAU,CAAE;AAAA,QAClE,CAAO;AAAA,MACP;AAAA,MACI,CAAC,SAAS;AAAA;AAEZ,kBAAc,KAAK;AACnB,WAAO;AAAA,EACT;AACA,WAAS,uBAAuB,MAAM;AACpC,QAAI,oBAAoB,KAAK;AAC7B,WAAO,KAAK;AACZ,QAAI;AACF,UAAI,YAAY,kBAAiB;AACjC,aAAO,CAAC,SAAS,MAAM,SAAS;AAAA,IACpC,SAAW,OAAO;AACd,aAAO;AAAA,IACX;AAAA,EACA;AACA,WAAS,uBAAuB,WAAW,aAAa;AACtD,WAAO,YAAW;AAAA,EACpB;AACA,MAAI,OACF,gBAAgB,OAAO,UACvB,gBAAgB,OAAO,OAAO,YAC9B,gBAAgB,OAAO,OAAO,SAAS,gBACnC,yBACA;AACN,sCAAA,uBACE,WAAW,MAAM,uBAAuB,MAAM,uBAAuB;;;","x_google_ignoreList":[0]}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { __module as shim } from "../../../_virtual/index.mjs";
|
|
2
|
-
import { __require as
|
|
2
|
+
import { __require as requireUseSyncExternalStoreShim_production } from "../cjs/use-sync-external-store-shim.production.mjs";
|
|
3
3
|
import { __require as requireUseSyncExternalStoreShim_development } from "../cjs/use-sync-external-store-shim.development.mjs";
|
|
4
4
|
var hasRequiredShim;
|
|
5
5
|
function requireShim() {
|
|
6
6
|
if (hasRequiredShim) return shim.exports;
|
|
7
7
|
hasRequiredShim = 1;
|
|
8
8
|
if (process.env.NODE_ENV === "production") {
|
|
9
|
-
shim.exports =
|
|
9
|
+
shim.exports = requireUseSyncExternalStoreShim_production();
|
|
10
10
|
} else {
|
|
11
11
|
shim.exports = requireUseSyncExternalStoreShim_development();
|
|
12
12
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../../../../../../node_modules/use-sync-external-store/shim/index.js"],"sourcesContent":["'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('../cjs/use-sync-external-store-shim.production.
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../../../../../node_modules/use-sync-external-store/shim/index.js"],"sourcesContent":["'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":["shimModule","require$$0","require$$1"],"mappings":";;;;;;;AAEA,MAAI,QAAQ,IAAI,aAAa,cAAc;AACzCA,SAAA,UAAiBC,2CAAA;AAAA,EACnB,OAAO;AACLD,SAAA,UAAiBE,4CAAA;AAAA,EACnB;;;","x_google_ignoreList":[0]}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { __module as withSelector } from "../../../_virtual/with-selector2.mjs";
|
|
2
|
-
import { __require as
|
|
2
|
+
import { __require as requireWithSelector_production } from "../cjs/use-sync-external-store-shim/with-selector.production.mjs";
|
|
3
3
|
import { __require as requireWithSelector_development } from "../cjs/use-sync-external-store-shim/with-selector.development.mjs";
|
|
4
4
|
var hasRequiredWithSelector;
|
|
5
5
|
function requireWithSelector() {
|
|
6
6
|
if (hasRequiredWithSelector) return withSelector.exports;
|
|
7
7
|
hasRequiredWithSelector = 1;
|
|
8
8
|
if (process.env.NODE_ENV === "production") {
|
|
9
|
-
withSelector.exports =
|
|
9
|
+
withSelector.exports = requireWithSelector_production();
|
|
10
10
|
} else {
|
|
11
11
|
withSelector.exports = requireWithSelector_development();
|
|
12
12
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"with-selector.mjs","sources":["../../../../../../../node_modules/use-sync-external-store/shim/with-selector.js"],"sourcesContent":["'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('../cjs/use-sync-external-store-shim/with-selector.production.
|
|
1
|
+
{"version":3,"file":"with-selector.mjs","sources":["../../../../../../../node_modules/use-sync-external-store/shim/with-selector.js"],"sourcesContent":["'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('../cjs/use-sync-external-store-shim/with-selector.production.js');\n} else {\n module.exports = require('../cjs/use-sync-external-store-shim/with-selector.development.js');\n}\n"],"names":["withSelectorModule","require$$0","require$$1"],"mappings":";;;;;;;AAEA,MAAI,QAAQ,IAAI,aAAa,cAAc;AACzCA,iBAAA,UAAiBC,+BAAA;AAAA,EACnB,OAAO;AACLD,iBAAA,UAAiBE,gCAAA;AAAA,EACnB;;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-sync-external-store-shim.production.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-sync-external-store-shim.production.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"with-selector.production.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"with-selector.production.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -7,7 +7,7 @@ const index = require("../../shim/index.js");
|
|
|
7
7
|
* @license React
|
|
8
8
|
* use-sync-external-store-shim/with-selector.development.js
|
|
9
9
|
*
|
|
10
|
-
* Copyright (c)
|
|
10
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
11
11
|
*
|
|
12
12
|
* This source code is licensed under the MIT license found in the
|
|
13
13
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -16,88 +16,66 @@ var hasRequiredWithSelector_development;
|
|
|
16
16
|
function requireWithSelector_development() {
|
|
17
17
|
if (hasRequiredWithSelector_development) return withSelector_development.__exports;
|
|
18
18
|
hasRequiredWithSelector_development = 1;
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
var inst;
|
|
35
|
-
if (instRef.current === null) {
|
|
36
|
-
inst = {
|
|
37
|
-
hasValue: false,
|
|
38
|
-
value: null
|
|
39
|
-
};
|
|
40
|
-
instRef.current = inst;
|
|
41
|
-
} else {
|
|
42
|
-
inst = instRef.current;
|
|
43
|
-
}
|
|
44
|
-
var _useMemo = useMemo(function() {
|
|
45
|
-
var hasMemo = false;
|
|
46
|
-
var memoizedSnapshot;
|
|
47
|
-
var memoizedSelection;
|
|
48
|
-
var memoizedSelector = function(nextSnapshot) {
|
|
19
|
+
"production" !== process.env.NODE_ENV && (function() {
|
|
20
|
+
function is(x, y) {
|
|
21
|
+
return x === y && (0 !== x || 1 / x === 1 / y) || x !== x && y !== y;
|
|
22
|
+
}
|
|
23
|
+
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
24
|
+
var React$1 = React, shim = index.__require(), objectIs = "function" === typeof Object.is ? Object.is : is, useSyncExternalStore = shim.useSyncExternalStore, useRef = React$1.useRef, useEffect = React$1.useEffect, useMemo = React$1.useMemo, useDebugValue = React$1.useDebugValue;
|
|
25
|
+
withSelector_development.__exports.useSyncExternalStoreWithSelector = function(subscribe, getSnapshot, getServerSnapshot, selector, isEqual) {
|
|
26
|
+
var instRef = useRef(null);
|
|
27
|
+
if (null === instRef.current) {
|
|
28
|
+
var inst = { hasValue: false, value: null };
|
|
29
|
+
instRef.current = inst;
|
|
30
|
+
} else inst = instRef.current;
|
|
31
|
+
instRef = useMemo(
|
|
32
|
+
function() {
|
|
33
|
+
function memoizedSelector(nextSnapshot) {
|
|
49
34
|
if (!hasMemo) {
|
|
50
35
|
hasMemo = true;
|
|
51
36
|
memoizedSnapshot = nextSnapshot;
|
|
52
|
-
|
|
53
|
-
if (
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
memoizedSelection = currentSelection;
|
|
58
|
-
return currentSelection;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
37
|
+
nextSnapshot = selector(nextSnapshot);
|
|
38
|
+
if (void 0 !== isEqual && inst.hasValue) {
|
|
39
|
+
var currentSelection = inst.value;
|
|
40
|
+
if (isEqual(currentSelection, nextSnapshot))
|
|
41
|
+
return memoizedSelection = currentSelection;
|
|
61
42
|
}
|
|
62
|
-
memoizedSelection =
|
|
63
|
-
return _nextSelection;
|
|
64
|
-
}
|
|
65
|
-
var prevSnapshot = memoizedSnapshot;
|
|
66
|
-
var prevSelection = memoizedSelection;
|
|
67
|
-
if (objectIs(prevSnapshot, nextSnapshot)) {
|
|
68
|
-
return prevSelection;
|
|
43
|
+
return memoizedSelection = nextSnapshot;
|
|
69
44
|
}
|
|
45
|
+
currentSelection = memoizedSelection;
|
|
46
|
+
if (objectIs(memoizedSnapshot, nextSnapshot))
|
|
47
|
+
return currentSelection;
|
|
70
48
|
var nextSelection = selector(nextSnapshot);
|
|
71
|
-
if (
|
|
72
|
-
return
|
|
73
|
-
}
|
|
49
|
+
if (void 0 !== isEqual && isEqual(currentSelection, nextSelection))
|
|
50
|
+
return memoizedSnapshot = nextSnapshot, currentSelection;
|
|
74
51
|
memoizedSnapshot = nextSnapshot;
|
|
75
|
-
memoizedSelection = nextSelection;
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
},
|
|
87
|
-
|
|
88
|
-
|
|
52
|
+
return memoizedSelection = nextSelection;
|
|
53
|
+
}
|
|
54
|
+
var hasMemo = false, memoizedSnapshot, memoizedSelection, maybeGetServerSnapshot = void 0 === getServerSnapshot ? null : getServerSnapshot;
|
|
55
|
+
return [
|
|
56
|
+
function() {
|
|
57
|
+
return memoizedSelector(getSnapshot());
|
|
58
|
+
},
|
|
59
|
+
null === maybeGetServerSnapshot ? void 0 : function() {
|
|
60
|
+
return memoizedSelector(maybeGetServerSnapshot());
|
|
61
|
+
}
|
|
62
|
+
];
|
|
63
|
+
},
|
|
64
|
+
[getSnapshot, getServerSnapshot, selector, isEqual]
|
|
65
|
+
);
|
|
66
|
+
var value = useSyncExternalStore(subscribe, instRef[0], instRef[1]);
|
|
67
|
+
useEffect(
|
|
68
|
+
function() {
|
|
89
69
|
inst.hasValue = true;
|
|
90
70
|
inst.value = value;
|
|
91
|
-
},
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
})();
|
|
100
|
-
}
|
|
71
|
+
},
|
|
72
|
+
[value]
|
|
73
|
+
);
|
|
74
|
+
useDebugValue(value);
|
|
75
|
+
return value;
|
|
76
|
+
};
|
|
77
|
+
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
78
|
+
})();
|
|
101
79
|
return withSelector_development.__exports;
|
|
102
80
|
}
|
|
103
81
|
exports.__require = requireWithSelector_development;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"with-selector.development.js","sources":["../../../../../../../../node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js"],"sourcesContent":["/**\n * @license React\n * use-sync-external-store-shim/with-selector.development.js\n *\n * Copyright (c)
|
|
1
|
+
{"version":3,"file":"with-selector.development.js","sources":["../../../../../../../../node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js"],"sourcesContent":["/**\n * @license React\n * use-sync-external-store-shim/with-selector.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 \"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 shim = require(\"use-sync-external-store/shim\"),\n objectIs = \"function\" === typeof Object.is ? Object.is : is,\n useSyncExternalStore = shim.useSyncExternalStore,\n useRef = React.useRef,\n useEffect = React.useEffect,\n useMemo = React.useMemo,\n useDebugValue = React.useDebugValue;\n exports.useSyncExternalStoreWithSelector = function (\n subscribe,\n getSnapshot,\n getServerSnapshot,\n selector,\n isEqual\n ) {\n var instRef = useRef(null);\n if (null === instRef.current) {\n var inst = { hasValue: !1, value: null };\n instRef.current = inst;\n } else inst = instRef.current;\n instRef = useMemo(\n function () {\n function memoizedSelector(nextSnapshot) {\n if (!hasMemo) {\n hasMemo = !0;\n memoizedSnapshot = nextSnapshot;\n nextSnapshot = selector(nextSnapshot);\n if (void 0 !== isEqual && inst.hasValue) {\n var currentSelection = inst.value;\n if (isEqual(currentSelection, nextSnapshot))\n return (memoizedSelection = currentSelection);\n }\n return (memoizedSelection = nextSnapshot);\n }\n currentSelection = memoizedSelection;\n if (objectIs(memoizedSnapshot, nextSnapshot))\n return currentSelection;\n var nextSelection = selector(nextSnapshot);\n if (void 0 !== isEqual && isEqual(currentSelection, nextSelection))\n return (memoizedSnapshot = nextSnapshot), currentSelection;\n memoizedSnapshot = nextSnapshot;\n return (memoizedSelection = nextSelection);\n }\n var hasMemo = !1,\n memoizedSnapshot,\n memoizedSelection,\n maybeGetServerSnapshot =\n void 0 === getServerSnapshot ? null : getServerSnapshot;\n return [\n function () {\n return memoizedSelector(getSnapshot());\n },\n null === maybeGetServerSnapshot\n ? void 0\n : function () {\n return memoizedSelector(maybeGetServerSnapshot());\n }\n ];\n },\n [getSnapshot, getServerSnapshot, selector, isEqual]\n );\n var value = useSyncExternalStore(subscribe, instRef[0], instRef[1]);\n useEffect(\n function () {\n inst.hasValue = !0;\n inst.value = value;\n },\n [value]\n );\n useDebugValue(value);\n return value;\n };\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"],"names":["React","require$$0","require$$1","withSelector_development"],"mappings":";;;;;;;;;;;;;;;;;;AAWA,mBAAiB,QAAQ,IAAI,aAC1B,WAAY;AACX,aAAS,GAAG,GAAG,GAAG;AAChB,aAAQ,MAAM,MAAM,MAAM,KAAK,IAAI,MAAM,IAAI,MAAQ,MAAM,KAAK,MAAM;AAAA,IAC5E;AACI,oBAAgB,OAAO,kCACrB,eACE,OAAO,+BAA+B,+BACxC,+BAA+B,4BAA4B,OAAO;AACpE,QAAIA,UAAQC,OACV,OAAOC,MAAAA,UAAA,GACP,WAAW,eAAe,OAAO,OAAO,KAAK,OAAO,KAAK,IACzD,uBAAuB,KAAK,sBAC5B,SAASF,QAAM,QACf,YAAYA,QAAM,WAClB,UAAUA,QAAM,SAChB,gBAAgBA,QAAM;AACxBG,6BAAAA,6CAA2C,SACzC,WACA,aACA,mBACA,UACA,SACA;AACA,UAAI,UAAU,OAAO,IAAI;AACzB,UAAI,SAAS,QAAQ,SAAS;AAC5B,YAAI,OAAO,EAAE,UAAU,OAAI,OAAO,KAAI;AACtC,gBAAQ,UAAU;AAAA,MAC1B,MAAa,QAAO,QAAQ;AACtB,gBAAU;AAAA,QACR,WAAY;AACV,mBAAS,iBAAiB,cAAc;AACtC,gBAAI,CAAC,SAAS;AACZ,wBAAU;AACV,iCAAmB;AACnB,6BAAe,SAAS,YAAY;AACpC,kBAAI,WAAW,WAAW,KAAK,UAAU;AACvC,oBAAI,mBAAmB,KAAK;AAC5B,oBAAI,QAAQ,kBAAkB,YAAY;AACxC,yBAAQ,oBAAoB;AAAA,cAC9C;AACc,qBAAQ,oBAAoB;AAAA,YAC1C;AACY,+BAAmB;AACnB,gBAAI,SAAS,kBAAkB,YAAY;AACzC,qBAAO;AACT,gBAAI,gBAAgB,SAAS,YAAY;AACzC,gBAAI,WAAW,WAAW,QAAQ,kBAAkB,aAAa;AAC/D,qBAAQ,mBAAmB,cAAe;AAC5C,+BAAmB;AACnB,mBAAQ,oBAAoB;AAAA,UACxC;AACU,cAAI,UAAU,OACZ,kBACA,mBACA,yBACE,WAAW,oBAAoB,OAAO;AAC1C,iBAAO;AAAA,YACL,WAAY;AACV,qBAAO,iBAAiB,aAAa;AAAA,YACnD;AAAA,YACY,SAAS,yBACL,SACA,WAAY;AACV,qBAAO,iBAAiB,wBAAwB;AAAA,YAClE;AAAA;QAEA;AAAA,QACQ,CAAC,aAAa,mBAAmB,UAAU,OAAO;AAAA;AAEpD,UAAI,QAAQ,qBAAqB,WAAW,QAAQ,CAAC,GAAG,QAAQ,CAAC,CAAC;AAClE;AAAA,QACE,WAAY;AACV,eAAK,WAAW;AAChB,eAAK,QAAQ;AAAA,QACvB;AAAA,QACQ,CAAC,KAAK;AAAA;AAER,oBAAc,KAAK;AACnB,aAAO;AAAA,IACb;AACI,oBAAgB,OAAO,kCACrB,eACE,OAAO,+BAA+B,8BACxC,+BAA+B,2BAA2B,OAAO;AAAA,EACvE,GAAG;;;;","x_google_ignoreList":[0]}
|
|
@@ -5,7 +5,7 @@ import { __require as requireShim } from "../../shim/index.mjs";
|
|
|
5
5
|
* @license React
|
|
6
6
|
* use-sync-external-store-shim/with-selector.development.js
|
|
7
7
|
*
|
|
8
|
-
* Copyright (c)
|
|
8
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
9
9
|
*
|
|
10
10
|
* This source code is licensed under the MIT license found in the
|
|
11
11
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -14,88 +14,66 @@ var hasRequiredWithSelector_development;
|
|
|
14
14
|
function requireWithSelector_development() {
|
|
15
15
|
if (hasRequiredWithSelector_development) return withSelector_development;
|
|
16
16
|
hasRequiredWithSelector_development = 1;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
var inst;
|
|
33
|
-
if (instRef.current === null) {
|
|
34
|
-
inst = {
|
|
35
|
-
hasValue: false,
|
|
36
|
-
value: null
|
|
37
|
-
};
|
|
38
|
-
instRef.current = inst;
|
|
39
|
-
} else {
|
|
40
|
-
inst = instRef.current;
|
|
41
|
-
}
|
|
42
|
-
var _useMemo = useMemo(function() {
|
|
43
|
-
var hasMemo = false;
|
|
44
|
-
var memoizedSnapshot;
|
|
45
|
-
var memoizedSelection;
|
|
46
|
-
var memoizedSelector = function(nextSnapshot) {
|
|
17
|
+
"production" !== process.env.NODE_ENV && (function() {
|
|
18
|
+
function is(x, y) {
|
|
19
|
+
return x === y && (0 !== x || 1 / x === 1 / y) || x !== x && y !== y;
|
|
20
|
+
}
|
|
21
|
+
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
22
|
+
var React = React__default, shim = requireShim(), objectIs = "function" === typeof Object.is ? Object.is : is, useSyncExternalStore = shim.useSyncExternalStore, useRef = React.useRef, useEffect = React.useEffect, useMemo = React.useMemo, useDebugValue = React.useDebugValue;
|
|
23
|
+
withSelector_development.useSyncExternalStoreWithSelector = function(subscribe, getSnapshot, getServerSnapshot, selector, isEqual) {
|
|
24
|
+
var instRef = useRef(null);
|
|
25
|
+
if (null === instRef.current) {
|
|
26
|
+
var inst = { hasValue: false, value: null };
|
|
27
|
+
instRef.current = inst;
|
|
28
|
+
} else inst = instRef.current;
|
|
29
|
+
instRef = useMemo(
|
|
30
|
+
function() {
|
|
31
|
+
function memoizedSelector(nextSnapshot) {
|
|
47
32
|
if (!hasMemo) {
|
|
48
33
|
hasMemo = true;
|
|
49
34
|
memoizedSnapshot = nextSnapshot;
|
|
50
|
-
|
|
51
|
-
if (
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
memoizedSelection = currentSelection;
|
|
56
|
-
return currentSelection;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
35
|
+
nextSnapshot = selector(nextSnapshot);
|
|
36
|
+
if (void 0 !== isEqual && inst.hasValue) {
|
|
37
|
+
var currentSelection = inst.value;
|
|
38
|
+
if (isEqual(currentSelection, nextSnapshot))
|
|
39
|
+
return memoizedSelection = currentSelection;
|
|
59
40
|
}
|
|
60
|
-
memoizedSelection =
|
|
61
|
-
return _nextSelection;
|
|
62
|
-
}
|
|
63
|
-
var prevSnapshot = memoizedSnapshot;
|
|
64
|
-
var prevSelection = memoizedSelection;
|
|
65
|
-
if (objectIs(prevSnapshot, nextSnapshot)) {
|
|
66
|
-
return prevSelection;
|
|
41
|
+
return memoizedSelection = nextSnapshot;
|
|
67
42
|
}
|
|
43
|
+
currentSelection = memoizedSelection;
|
|
44
|
+
if (objectIs(memoizedSnapshot, nextSnapshot))
|
|
45
|
+
return currentSelection;
|
|
68
46
|
var nextSelection = selector(nextSnapshot);
|
|
69
|
-
if (
|
|
70
|
-
return
|
|
71
|
-
}
|
|
47
|
+
if (void 0 !== isEqual && isEqual(currentSelection, nextSelection))
|
|
48
|
+
return memoizedSnapshot = nextSnapshot, currentSelection;
|
|
72
49
|
memoizedSnapshot = nextSnapshot;
|
|
73
|
-
memoizedSelection = nextSelection;
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
},
|
|
85
|
-
|
|
86
|
-
|
|
50
|
+
return memoizedSelection = nextSelection;
|
|
51
|
+
}
|
|
52
|
+
var hasMemo = false, memoizedSnapshot, memoizedSelection, maybeGetServerSnapshot = void 0 === getServerSnapshot ? null : getServerSnapshot;
|
|
53
|
+
return [
|
|
54
|
+
function() {
|
|
55
|
+
return memoizedSelector(getSnapshot());
|
|
56
|
+
},
|
|
57
|
+
null === maybeGetServerSnapshot ? void 0 : function() {
|
|
58
|
+
return memoizedSelector(maybeGetServerSnapshot());
|
|
59
|
+
}
|
|
60
|
+
];
|
|
61
|
+
},
|
|
62
|
+
[getSnapshot, getServerSnapshot, selector, isEqual]
|
|
63
|
+
);
|
|
64
|
+
var value = useSyncExternalStore(subscribe, instRef[0], instRef[1]);
|
|
65
|
+
useEffect(
|
|
66
|
+
function() {
|
|
87
67
|
inst.hasValue = true;
|
|
88
68
|
inst.value = value;
|
|
89
|
-
},
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
})();
|
|
98
|
-
}
|
|
69
|
+
},
|
|
70
|
+
[value]
|
|
71
|
+
);
|
|
72
|
+
useDebugValue(value);
|
|
73
|
+
return value;
|
|
74
|
+
};
|
|
75
|
+
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
76
|
+
})();
|
|
99
77
|
return withSelector_development;
|
|
100
78
|
}
|
|
101
79
|
export {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"with-selector.development.mjs","sources":["../../../../../../../../node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js"],"sourcesContent":["/**\n * @license React\n * use-sync-external-store-shim/with-selector.development.js\n *\n * Copyright (c)
|
|
1
|
+
{"version":3,"file":"with-selector.development.mjs","sources":["../../../../../../../../node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js"],"sourcesContent":["/**\n * @license React\n * use-sync-external-store-shim/with-selector.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 \"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 shim = require(\"use-sync-external-store/shim\"),\n objectIs = \"function\" === typeof Object.is ? Object.is : is,\n useSyncExternalStore = shim.useSyncExternalStore,\n useRef = React.useRef,\n useEffect = React.useEffect,\n useMemo = React.useMemo,\n useDebugValue = React.useDebugValue;\n exports.useSyncExternalStoreWithSelector = function (\n subscribe,\n getSnapshot,\n getServerSnapshot,\n selector,\n isEqual\n ) {\n var instRef = useRef(null);\n if (null === instRef.current) {\n var inst = { hasValue: !1, value: null };\n instRef.current = inst;\n } else inst = instRef.current;\n instRef = useMemo(\n function () {\n function memoizedSelector(nextSnapshot) {\n if (!hasMemo) {\n hasMemo = !0;\n memoizedSnapshot = nextSnapshot;\n nextSnapshot = selector(nextSnapshot);\n if (void 0 !== isEqual && inst.hasValue) {\n var currentSelection = inst.value;\n if (isEqual(currentSelection, nextSnapshot))\n return (memoizedSelection = currentSelection);\n }\n return (memoizedSelection = nextSnapshot);\n }\n currentSelection = memoizedSelection;\n if (objectIs(memoizedSnapshot, nextSnapshot))\n return currentSelection;\n var nextSelection = selector(nextSnapshot);\n if (void 0 !== isEqual && isEqual(currentSelection, nextSelection))\n return (memoizedSnapshot = nextSnapshot), currentSelection;\n memoizedSnapshot = nextSnapshot;\n return (memoizedSelection = nextSelection);\n }\n var hasMemo = !1,\n memoizedSnapshot,\n memoizedSelection,\n maybeGetServerSnapshot =\n void 0 === getServerSnapshot ? null : getServerSnapshot;\n return [\n function () {\n return memoizedSelector(getSnapshot());\n },\n null === maybeGetServerSnapshot\n ? void 0\n : function () {\n return memoizedSelector(maybeGetServerSnapshot());\n }\n ];\n },\n [getSnapshot, getServerSnapshot, selector, isEqual]\n );\n var value = useSyncExternalStore(subscribe, instRef[0], instRef[1]);\n useEffect(\n function () {\n inst.hasValue = !0;\n inst.value = value;\n },\n [value]\n );\n useDebugValue(value);\n return value;\n };\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"],"names":["require$$0","require$$1"],"mappings":";;;;;;;;;;;;;;;;AAWA,mBAAiB,QAAQ,IAAI,aAC1B,WAAY;AACX,aAAS,GAAG,GAAG,GAAG;AAChB,aAAQ,MAAM,MAAM,MAAM,KAAK,IAAI,MAAM,IAAI,MAAQ,MAAM,KAAK,MAAM;AAAA,IAC5E;AACI,oBAAgB,OAAO,kCACrB,eACE,OAAO,+BAA+B,+BACxC,+BAA+B,4BAA4B,OAAO;AACpE,QAAI,QAAQA,gBACV,OAAOC,YAAA,GACP,WAAW,eAAe,OAAO,OAAO,KAAK,OAAO,KAAK,IACzD,uBAAuB,KAAK,sBAC5B,SAAS,MAAM,QACf,YAAY,MAAM,WAClB,UAAU,MAAM,SAChB,gBAAgB,MAAM;AACxB,gEAA2C,SACzC,WACA,aACA,mBACA,UACA,SACA;AACA,UAAI,UAAU,OAAO,IAAI;AACzB,UAAI,SAAS,QAAQ,SAAS;AAC5B,YAAI,OAAO,EAAE,UAAU,OAAI,OAAO,KAAI;AACtC,gBAAQ,UAAU;AAAA,MAC1B,MAAa,QAAO,QAAQ;AACtB,gBAAU;AAAA,QACR,WAAY;AACV,mBAAS,iBAAiB,cAAc;AACtC,gBAAI,CAAC,SAAS;AACZ,wBAAU;AACV,iCAAmB;AACnB,6BAAe,SAAS,YAAY;AACpC,kBAAI,WAAW,WAAW,KAAK,UAAU;AACvC,oBAAI,mBAAmB,KAAK;AAC5B,oBAAI,QAAQ,kBAAkB,YAAY;AACxC,yBAAQ,oBAAoB;AAAA,cAC9C;AACc,qBAAQ,oBAAoB;AAAA,YAC1C;AACY,+BAAmB;AACnB,gBAAI,SAAS,kBAAkB,YAAY;AACzC,qBAAO;AACT,gBAAI,gBAAgB,SAAS,YAAY;AACzC,gBAAI,WAAW,WAAW,QAAQ,kBAAkB,aAAa;AAC/D,qBAAQ,mBAAmB,cAAe;AAC5C,+BAAmB;AACnB,mBAAQ,oBAAoB;AAAA,UACxC;AACU,cAAI,UAAU,OACZ,kBACA,mBACA,yBACE,WAAW,oBAAoB,OAAO;AAC1C,iBAAO;AAAA,YACL,WAAY;AACV,qBAAO,iBAAiB,aAAa;AAAA,YACnD;AAAA,YACY,SAAS,yBACL,SACA,WAAY;AACV,qBAAO,iBAAiB,wBAAwB;AAAA,YAClE;AAAA;QAEA;AAAA,QACQ,CAAC,aAAa,mBAAmB,UAAU,OAAO;AAAA;AAEpD,UAAI,QAAQ,qBAAqB,WAAW,QAAQ,CAAC,GAAG,QAAQ,CAAC,CAAC;AAClE;AAAA,QACE,WAAY;AACV,eAAK,WAAW;AAChB,eAAK,QAAQ;AAAA,QACvB;AAAA,QACQ,CAAC,KAAK;AAAA;AAER,oBAAc,KAAK;AACnB,aAAO;AAAA,IACb;AACI,oBAAgB,OAAO,kCACrB,eACE,OAAO,+BAA+B,8BACxC,+BAA+B,2BAA2B,OAAO;AAAA,EACvE,GAAG;;;","x_google_ignoreList":[0]}
|