@jsenv/cli 0.3.14 → 0.3.17
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/package.json +3 -3
- package/template-node-package/package.json +4 -4
- package/template-web/.jsenv/entry_index/craft/app/counter.js +11 -0
- package/template-web/.jsenv/entry_index/craft/index.html +27 -0
- package/template-web/.jsenv/entry_index/craft/jsenv_logo.svg +140 -0
- package/template-web/.jsenv/entry_index/craft/main.css +4 -0
- package/template-web/.jsenv/entry_index/craft/main.css7as_css_module=.js +7 -0
- package/template-web/.jsenv/entry_index/craft/main.js +31 -0
- package/template-web/.jsenv_b/entry_index/craft/@fs/Users/dmail/Documents/dev/core/src/kitchen/client/inline_content.js +17 -0
- package/template-web/.jsenv_b/entry_index/craft/app/counter.js +11 -0
- package/template-web/.jsenv_b/entry_index/craft/index.html +27 -0
- package/template-web/.jsenv_b/entry_index/craft/jsenv_logo.svg +140 -0
- package/template-web/.jsenv_b/entry_index/craft/main.css +4 -0
- package/template-web/.jsenv_b/entry_index/craft/main.css7as_css_module=.js +7 -0
- package/template-web/.jsenv_b/entry_index/craft/main.js +31 -0
- package/template-web/.jsenv_b/entry_index/shape/index.html +24 -0
- package/template-web/.jsenv_b/entry_index/shape/jsenv_logo.svg +91 -0
- package/template-web/.jsenv_b/entry_index/shape/main.js +1 -0
- package/template-web/dist/index.html +1 -4
- package/template-web/dist/js/main.js +1 -0
- package/template-web/package.json +5 -5
- package/template-web/scripts/build.mjs +3 -10
- package/template-web-components/.jsenv/entry_index/craft/@fs/Users/dmail/Documents/dev/core/packages/independent/frontend/custom-elements-redefine/src/@jsenv_custom-elements-redefine_main.js +209 -0
- package/template-web-components/.jsenv/entry_index/craft/app/app_custom_element.css +4 -0
- package/template-web-components/.jsenv/entry_index/craft/app/app_custom_element.css7as_css_module=.js +7 -0
- package/template-web-components/.jsenv/entry_index/craft/app/app_custom_element.js +31 -0
- package/template-web-components/.jsenv/entry_index/craft/app/counter.js +11 -0
- package/template-web-components/.jsenv/entry_index/craft/app/custom_elements_redefine.js +5 -0
- package/template-web-components/.jsenv/entry_index/craft/index.html +27 -0
- package/template-web-components/.jsenv/entry_index/craft/jsenv_logo.svg +140 -0
- package/template-web-components/.jsenv/entry_index/craft/main.js +11 -0
- package/template-web-components/.jsenv_b/entry_index/craft/@fs/Users/dmail/Documents/dev/core/packages/independent/frontend/custom-elements-redefine/src/@jsenv_custom-elements-redefine_main.js +209 -0
- package/template-web-components/.jsenv_b/entry_index/craft/@fs/Users/dmail/Documents/dev/core/src/kitchen/client/inline_content.js +17 -0
- package/template-web-components/.jsenv_b/entry_index/craft/app/app_custom_element.css +4 -0
- package/template-web-components/.jsenv_b/entry_index/craft/app/app_custom_element.css7as_css_module=.js +7 -0
- package/template-web-components/.jsenv_b/entry_index/craft/app/app_custom_element.js +31 -0
- package/template-web-components/.jsenv_b/entry_index/craft/app/counter.js +11 -0
- package/template-web-components/.jsenv_b/entry_index/craft/app/custom_elements_redefine.js +5 -0
- package/template-web-components/.jsenv_b/entry_index/craft/index.html +27 -0
- package/template-web-components/.jsenv_b/entry_index/craft/jsenv_logo.svg +140 -0
- package/template-web-components/.jsenv_b/entry_index/craft/main.js +11 -0
- package/template-web-components/.jsenv_b/entry_index/shape/index.html +24 -0
- package/template-web-components/.jsenv_b/entry_index/shape/jsenv_logo.svg +91 -0
- package/template-web-components/.jsenv_b/entry_index/shape/main.js +1 -0
- package/template-web-components/dist/index.html +1 -4
- package/template-web-components/dist/js/main.js +1 -0
- package/template-web-components/package.json +5 -5
- package/template-web-components/scripts/build.mjs +3 -10
- package/template-web-preact/.jsenv/entry_index/craft/@fs/Users/dmail/Documents/dev/core/node_modules/preact/dist/preact.module.js +2 -0
- package/template-web-preact/.jsenv/entry_index/craft/@fs/Users/dmail/Documents/dev/core/node_modules/preact/hooks/dist/hooks.module.js +2 -0
- package/template-web-preact/.jsenv/entry_index/craft/@fs/Users/dmail/Documents/dev/core/node_modules/preact/jsx-runtime/dist/jsxRuntime.module.js +2 -0
- package/template-web-preact/.jsenv/entry_index/craft/app/app.css +43 -0
- package/template-web-preact/.jsenv/entry_index/craft/app/app.css7as_css_module=.js +7 -0
- package/template-web-preact/.jsenv/entry_index/craft/app/app.jsx +44 -0
- package/template-web-preact/.jsenv/entry_index/craft/app/counter.jsx +17 -0
- package/template-web-preact/.jsenv/entry_index/craft/index.html +25 -0
- package/template-web-preact/.jsenv/entry_index/craft/main.jsx +4 -0
- package/template-web-preact/.jsenv/entry_index/craft/preact_logo.svg +6 -0
- package/template-web-preact/.jsenv_b/entry_index/craft/@fs/Users/dmail/Documents/dev/core/node_modules/preact/dist/preact.module.js +2 -0
- package/template-web-preact/.jsenv_b/entry_index/craft/@fs/Users/dmail/Documents/dev/core/node_modules/preact/hooks/dist/hooks.module.js +2 -0
- package/template-web-preact/.jsenv_b/entry_index/craft/@fs/Users/dmail/Documents/dev/core/node_modules/preact/jsx-runtime/dist/jsxRuntime.module.js +2 -0
- package/template-web-preact/.jsenv_b/entry_index/craft/@fs/Users/dmail/Documents/dev/core/src/kitchen/client/inline_content.js +17 -0
- package/template-web-preact/.jsenv_b/entry_index/craft/app/app.css +43 -0
- package/template-web-preact/.jsenv_b/entry_index/craft/app/app.css7as_css_module=.js +7 -0
- package/template-web-preact/.jsenv_b/entry_index/craft/app/app.jsx +44 -0
- package/template-web-preact/.jsenv_b/entry_index/craft/app/counter.jsx +17 -0
- package/template-web-preact/.jsenv_b/entry_index/craft/index.html +25 -0
- package/template-web-preact/.jsenv_b/entry_index/craft/main.jsx +4 -0
- package/template-web-preact/.jsenv_b/entry_index/craft/preact_logo.svg +6 -0
- package/template-web-preact/.jsenv_b/entry_index/shape/@fs/Users/dmail/Documents/dev/core/packages/related/cli/template-web-preact/dist/jsenv_template_web_preact_node_modules.js +1 -0
- package/template-web-preact/.jsenv_b/entry_index/shape/index.html +31 -0
- package/template-web-preact/.jsenv_b/entry_index/shape/main.jsx +1 -0
- package/template-web-preact/.jsenv_b/entry_index/shape/preact_logo.svg +6 -0
- package/template-web-preact/dist/index.html +8 -5
- package/template-web-preact/dist/js/main.js +1 -0
- package/template-web-preact/dist/jsenv_template_web_preact_node_modules.js +1 -0
- package/template-web-preact/package.json +6 -6
- package/template-web-preact/scripts/build.mjs +4 -10
- package/template-web-react/.jsenv/entry_index/craft/@fs/Users/dmail/Documents/dev/core/node_modules/react/index.js +7 -0
- package/template-web-react/.jsenv/entry_index/craft/@fs/Users/dmail/Documents/dev/core/node_modules/react/jsx-runtime.js +7 -0
- package/template-web-react/.jsenv/entry_index/craft/@fs/Users/dmail/Documents/dev/core/node_modules/react-dom/client.js +38 -0
- package/template-web-react/.jsenv/entry_index/craft/app/app.css +43 -0
- package/template-web-react/.jsenv/entry_index/craft/app/app.css7as_css_module=.js +7 -0
- package/template-web-react/.jsenv/entry_index/craft/app/app.jsx +45 -0
- package/template-web-react/.jsenv/entry_index/craft/app/counter.jsx +16 -0
- package/template-web-react/.jsenv/entry_index/craft/index.html +25 -0
- package/template-web-react/.jsenv/entry_index/craft/main.jsx +10 -0
- package/template-web-react/.jsenv/entry_index/craft/react_logo.svg +7 -0
- package/template-web-react/.jsenv_b/entry_index/craft/@fs/Users/dmail/Documents/dev/core/node_modules/react/index.js +7 -0
- package/template-web-react/.jsenv_b/entry_index/craft/@fs/Users/dmail/Documents/dev/core/node_modules/react/jsx-runtime.js +7 -0
- package/template-web-react/.jsenv_b/entry_index/craft/@fs/Users/dmail/Documents/dev/core/node_modules/react/react/jsx-runtime7cjs_as_js_module=.jsx +69 -0
- package/template-web-react/.jsenv_b/entry_index/craft/@fs/Users/dmail/Documents/dev/core/node_modules/react/react7cjs_as_js_module=.jsx +617 -0
- package/template-web-react/.jsenv_b/entry_index/craft/@fs/Users/dmail/Documents/dev/core/node_modules/react-dom/client.js +38 -0
- package/template-web-react/.jsenv_b/entry_index/craft/@fs/Users/dmail/Documents/dev/core/node_modules/react-dom/react-dom/client7cjs_as_js_module=.jsx +15859 -0
- package/template-web-react/.jsenv_b/entry_index/craft/@fs/Users/dmail/Documents/dev/core/src/kitchen/client/inline_content.js +17 -0
- package/template-web-react/.jsenv_b/entry_index/craft/app/app.css +43 -0
- package/template-web-react/.jsenv_b/entry_index/craft/app/app.css7as_css_module=.js +7 -0
- package/template-web-react/.jsenv_b/entry_index/craft/app/app.jsx +45 -0
- package/template-web-react/.jsenv_b/entry_index/craft/app/counter.jsx +16 -0
- package/template-web-react/.jsenv_b/entry_index/craft/cjs_to_esm/@fs/Users/dmail/Documents/dev/core/node_modules/react/index.production.js +617 -0
- package/template-web-react/.jsenv_b/entry_index/craft/cjs_to_esm/@fs/Users/dmail/Documents/dev/core/node_modules/react/index.production.js__compile_info__.json +26 -0
- package/template-web-react/.jsenv_b/entry_index/craft/cjs_to_esm/@fs/Users/dmail/Documents/dev/core/node_modules/react/index.production.map +1 -0
- package/template-web-react/.jsenv_b/entry_index/craft/cjs_to_esm/@fs/Users/dmail/Documents/dev/core/node_modules/react/jsx-runtime.production.js +69 -0
- package/template-web-react/.jsenv_b/entry_index/craft/cjs_to_esm/@fs/Users/dmail/Documents/dev/core/node_modules/react/jsx-runtime.production.js__compile_info__.json +18 -0
- package/template-web-react/.jsenv_b/entry_index/craft/cjs_to_esm/@fs/Users/dmail/Documents/dev/core/node_modules/react/jsx-runtime.production.map +1 -0
- package/template-web-react/.jsenv_b/entry_index/craft/cjs_to_esm/@fs/Users/dmail/Documents/dev/core/node_modules/react-dom/client.production.js +15859 -0
- package/template-web-react/.jsenv_b/entry_index/craft/cjs_to_esm/@fs/Users/dmail/Documents/dev/core/node_modules/react-dom/client.production.js__compile_info__.json +42 -0
- package/template-web-react/.jsenv_b/entry_index/craft/cjs_to_esm/@fs/Users/dmail/Documents/dev/core/node_modules/react-dom/client.production.map +1 -0
- package/template-web-react/.jsenv_b/entry_index/craft/cjs_to_esm/__compile_context__.json +3 -0
- package/template-web-react/.jsenv_b/entry_index/craft/index.html +25 -0
- package/template-web-react/.jsenv_b/entry_index/craft/main.jsx +10 -0
- package/template-web-react/.jsenv_b/entry_index/craft/react_logo.svg +7 -0
- package/template-web-react/.jsenv_b/entry_index/shape/@fs/Users/dmail/Documents/dev/core/packages/related/cli/template-web-react/dist/jsenv_template_web_react_node_modules.js +1 -0
- package/template-web-react/.jsenv_b/entry_index/shape/index.html +31 -0
- package/template-web-react/.jsenv_b/entry_index/shape/main.jsx +1 -0
- package/template-web-react/.jsenv_b/entry_index/shape/react_logo.svg +7 -0
- package/template-web-react/dist/index.html +8 -5
- package/template-web-react/dist/js/main.js +1 -0
- package/template-web-react/dist/jsenv_template_web_react_node_modules.js +1 -0
- package/template-web-react/package.json +6 -6
- package/template-web-react/scripts/build.mjs +4 -10
- package/template-web/dist/js/main.nomodule.js +0 -1
- package/template-web-components/dist/js/main.nomodule.js +0 -1
- package/template-web-preact/dist/js/main.nomodule.js +0 -1
- package/template-web-preact/dist/vendors.js +0 -1
- package/template-web-react/dist/js/main.nomodule.js +0 -1
- package/template-web-react/dist/vendors.js +0 -1
|
@@ -0,0 +1,617 @@
|
|
|
1
|
+
function getDefaultExportFromCjs (x) {
|
|
2
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
var react = {exports: {}};
|
|
6
|
+
|
|
7
|
+
var global = (typeof globalThis !== "undefined" ? globalThis :
|
|
8
|
+
typeof self !== "undefined" ? self :
|
|
9
|
+
typeof window !== "undefined" ? window : {});
|
|
10
|
+
|
|
11
|
+
function noop() {}
|
|
12
|
+
var emit = noop;
|
|
13
|
+
|
|
14
|
+
// from https://github.com/kumavis/browser-process-hrtime/blob/master/index.js
|
|
15
|
+
var performance = global.performance || {};
|
|
16
|
+
performance.now ||
|
|
17
|
+
performance.mozNow ||
|
|
18
|
+
performance.msNow ||
|
|
19
|
+
performance.oNow ||
|
|
20
|
+
performance.webkitNow ||
|
|
21
|
+
function(){ return (new Date()).getTime() };
|
|
22
|
+
|
|
23
|
+
var process = {
|
|
24
|
+
emit: emit};
|
|
25
|
+
|
|
26
|
+
var react_production = {};
|
|
27
|
+
|
|
28
|
+
var hasRequiredReact_production;
|
|
29
|
+
|
|
30
|
+
function requireReact_production () {
|
|
31
|
+
if (hasRequiredReact_production) return react_production;
|
|
32
|
+
hasRequiredReact_production = 1;
|
|
33
|
+
var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
|
|
34
|
+
REACT_PORTAL_TYPE = Symbol.for("react.portal"),
|
|
35
|
+
REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
|
|
36
|
+
REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"),
|
|
37
|
+
REACT_PROFILER_TYPE = Symbol.for("react.profiler"),
|
|
38
|
+
REACT_CONSUMER_TYPE = Symbol.for("react.consumer"),
|
|
39
|
+
REACT_CONTEXT_TYPE = Symbol.for("react.context"),
|
|
40
|
+
REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
|
|
41
|
+
REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"),
|
|
42
|
+
REACT_MEMO_TYPE = Symbol.for("react.memo"),
|
|
43
|
+
REACT_LAZY_TYPE = Symbol.for("react.lazy"),
|
|
44
|
+
MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
|
|
45
|
+
function getIteratorFn(maybeIterable) {
|
|
46
|
+
if (null === maybeIterable || "object" !== typeof maybeIterable) return null;
|
|
47
|
+
maybeIterable =
|
|
48
|
+
(MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL]) ||
|
|
49
|
+
maybeIterable["@@iterator"];
|
|
50
|
+
return "function" === typeof maybeIterable ? maybeIterable : null;
|
|
51
|
+
}
|
|
52
|
+
var ReactNoopUpdateQueue = {
|
|
53
|
+
isMounted: function () {
|
|
54
|
+
return false;
|
|
55
|
+
},
|
|
56
|
+
enqueueForceUpdate: function () {},
|
|
57
|
+
enqueueReplaceState: function () {},
|
|
58
|
+
enqueueSetState: function () {}
|
|
59
|
+
},
|
|
60
|
+
assign = Object.assign,
|
|
61
|
+
emptyObject = {};
|
|
62
|
+
function Component(props, context, updater) {
|
|
63
|
+
this.props = props;
|
|
64
|
+
this.context = context;
|
|
65
|
+
this.refs = emptyObject;
|
|
66
|
+
this.updater = updater || ReactNoopUpdateQueue;
|
|
67
|
+
}
|
|
68
|
+
Component.prototype.isReactComponent = {};
|
|
69
|
+
Component.prototype.setState = function (partialState, callback) {
|
|
70
|
+
if (
|
|
71
|
+
"object" !== typeof partialState &&
|
|
72
|
+
"function" !== typeof partialState &&
|
|
73
|
+
null != partialState
|
|
74
|
+
)
|
|
75
|
+
throw Error(
|
|
76
|
+
"takes an object of state variables to update or a function which returns an object of state variables."
|
|
77
|
+
);
|
|
78
|
+
this.updater.enqueueSetState(this, partialState, callback, "setState");
|
|
79
|
+
};
|
|
80
|
+
Component.prototype.forceUpdate = function (callback) {
|
|
81
|
+
this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
|
|
82
|
+
};
|
|
83
|
+
function ComponentDummy() {}
|
|
84
|
+
ComponentDummy.prototype = Component.prototype;
|
|
85
|
+
function PureComponent(props, context, updater) {
|
|
86
|
+
this.props = props;
|
|
87
|
+
this.context = context;
|
|
88
|
+
this.refs = emptyObject;
|
|
89
|
+
this.updater = updater || ReactNoopUpdateQueue;
|
|
90
|
+
}
|
|
91
|
+
var pureComponentPrototype = (PureComponent.prototype = new ComponentDummy());
|
|
92
|
+
pureComponentPrototype.constructor = PureComponent;
|
|
93
|
+
assign(pureComponentPrototype, Component.prototype);
|
|
94
|
+
pureComponentPrototype.isPureReactComponent = true;
|
|
95
|
+
var isArrayImpl = Array.isArray,
|
|
96
|
+
ReactSharedInternals = { H: null, A: null, T: null, S: null },
|
|
97
|
+
hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
98
|
+
function ReactElement(type, key, self, source, owner, props) {
|
|
99
|
+
self = props.ref;
|
|
100
|
+
return {
|
|
101
|
+
$$typeof: REACT_ELEMENT_TYPE,
|
|
102
|
+
type: type,
|
|
103
|
+
key: key,
|
|
104
|
+
ref: void 0 !== self ? self : null,
|
|
105
|
+
props: props
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
function cloneAndReplaceKey(oldElement, newKey) {
|
|
109
|
+
return ReactElement(
|
|
110
|
+
oldElement.type,
|
|
111
|
+
newKey,
|
|
112
|
+
void 0,
|
|
113
|
+
void 0,
|
|
114
|
+
void 0,
|
|
115
|
+
oldElement.props
|
|
116
|
+
);
|
|
117
|
+
}
|
|
118
|
+
function isValidElement(object) {
|
|
119
|
+
return (
|
|
120
|
+
"object" === typeof object &&
|
|
121
|
+
null !== object &&
|
|
122
|
+
object.$$typeof === REACT_ELEMENT_TYPE
|
|
123
|
+
);
|
|
124
|
+
}
|
|
125
|
+
function escape(key) {
|
|
126
|
+
var escaperLookup = { "=": "=0", ":": "=2" };
|
|
127
|
+
return (
|
|
128
|
+
"$" +
|
|
129
|
+
key.replace(/[=:]/g, function (match) {
|
|
130
|
+
return escaperLookup[match];
|
|
131
|
+
})
|
|
132
|
+
);
|
|
133
|
+
}
|
|
134
|
+
var userProvidedKeyEscapeRegex = /\/+/g;
|
|
135
|
+
function getElementKey(element, index) {
|
|
136
|
+
return "object" === typeof element && null !== element && null != element.key
|
|
137
|
+
? escape("" + element.key)
|
|
138
|
+
: index.toString(36);
|
|
139
|
+
}
|
|
140
|
+
function noop$1() {}
|
|
141
|
+
function resolveThenable(thenable) {
|
|
142
|
+
switch (thenable.status) {
|
|
143
|
+
case "fulfilled":
|
|
144
|
+
return thenable.value;
|
|
145
|
+
case "rejected":
|
|
146
|
+
throw thenable.reason;
|
|
147
|
+
default:
|
|
148
|
+
switch (
|
|
149
|
+
("string" === typeof thenable.status
|
|
150
|
+
? thenable.then(noop$1, noop$1)
|
|
151
|
+
: ((thenable.status = "pending"),
|
|
152
|
+
thenable.then(
|
|
153
|
+
function (fulfilledValue) {
|
|
154
|
+
"pending" === thenable.status &&
|
|
155
|
+
((thenable.status = "fulfilled"),
|
|
156
|
+
(thenable.value = fulfilledValue));
|
|
157
|
+
},
|
|
158
|
+
function (error) {
|
|
159
|
+
"pending" === thenable.status &&
|
|
160
|
+
((thenable.status = "rejected"), (thenable.reason = error));
|
|
161
|
+
}
|
|
162
|
+
)),
|
|
163
|
+
thenable.status)
|
|
164
|
+
) {
|
|
165
|
+
case "fulfilled":
|
|
166
|
+
return thenable.value;
|
|
167
|
+
case "rejected":
|
|
168
|
+
throw thenable.reason;
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
throw thenable;
|
|
172
|
+
}
|
|
173
|
+
function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
|
|
174
|
+
var type = typeof children;
|
|
175
|
+
if ("undefined" === type || "boolean" === type) children = null;
|
|
176
|
+
var invokeCallback = false;
|
|
177
|
+
if (null === children) invokeCallback = true;
|
|
178
|
+
else
|
|
179
|
+
switch (type) {
|
|
180
|
+
case "bigint":
|
|
181
|
+
case "string":
|
|
182
|
+
case "number":
|
|
183
|
+
invokeCallback = true;
|
|
184
|
+
break;
|
|
185
|
+
case "object":
|
|
186
|
+
switch (children.$$typeof) {
|
|
187
|
+
case REACT_ELEMENT_TYPE:
|
|
188
|
+
case REACT_PORTAL_TYPE:
|
|
189
|
+
invokeCallback = true;
|
|
190
|
+
break;
|
|
191
|
+
case REACT_LAZY_TYPE:
|
|
192
|
+
return (
|
|
193
|
+
(invokeCallback = children._init),
|
|
194
|
+
mapIntoArray(
|
|
195
|
+
invokeCallback(children._payload),
|
|
196
|
+
array,
|
|
197
|
+
escapedPrefix,
|
|
198
|
+
nameSoFar,
|
|
199
|
+
callback
|
|
200
|
+
)
|
|
201
|
+
);
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
if (invokeCallback)
|
|
205
|
+
return (
|
|
206
|
+
(callback = callback(children)),
|
|
207
|
+
(invokeCallback =
|
|
208
|
+
"" === nameSoFar ? "." + getElementKey(children, 0) : nameSoFar),
|
|
209
|
+
isArrayImpl(callback)
|
|
210
|
+
? ((escapedPrefix = ""),
|
|
211
|
+
null != invokeCallback &&
|
|
212
|
+
(escapedPrefix =
|
|
213
|
+
invokeCallback.replace(userProvidedKeyEscapeRegex, "$&/") + "/"),
|
|
214
|
+
mapIntoArray(callback, array, escapedPrefix, "", function (c) {
|
|
215
|
+
return c;
|
|
216
|
+
}))
|
|
217
|
+
: null != callback &&
|
|
218
|
+
(isValidElement(callback) &&
|
|
219
|
+
(callback = cloneAndReplaceKey(
|
|
220
|
+
callback,
|
|
221
|
+
escapedPrefix +
|
|
222
|
+
(null == callback.key ||
|
|
223
|
+
(children && children.key === callback.key)
|
|
224
|
+
? ""
|
|
225
|
+
: ("" + callback.key).replace(
|
|
226
|
+
userProvidedKeyEscapeRegex,
|
|
227
|
+
"$&/"
|
|
228
|
+
) + "/") +
|
|
229
|
+
invokeCallback
|
|
230
|
+
)),
|
|
231
|
+
array.push(callback)),
|
|
232
|
+
1
|
|
233
|
+
);
|
|
234
|
+
invokeCallback = 0;
|
|
235
|
+
var nextNamePrefix = "" === nameSoFar ? "." : nameSoFar + ":";
|
|
236
|
+
if (isArrayImpl(children))
|
|
237
|
+
for (var i = 0; i < children.length; i++)
|
|
238
|
+
(nameSoFar = children[i]),
|
|
239
|
+
(type = nextNamePrefix + getElementKey(nameSoFar, i)),
|
|
240
|
+
(invokeCallback += mapIntoArray(
|
|
241
|
+
nameSoFar,
|
|
242
|
+
array,
|
|
243
|
+
escapedPrefix,
|
|
244
|
+
type,
|
|
245
|
+
callback
|
|
246
|
+
));
|
|
247
|
+
else if (((i = getIteratorFn(children)), "function" === typeof i))
|
|
248
|
+
for (
|
|
249
|
+
children = i.call(children), i = 0;
|
|
250
|
+
!(nameSoFar = children.next()).done;
|
|
251
|
+
|
|
252
|
+
)
|
|
253
|
+
(nameSoFar = nameSoFar.value),
|
|
254
|
+
(type = nextNamePrefix + getElementKey(nameSoFar, i++)),
|
|
255
|
+
(invokeCallback += mapIntoArray(
|
|
256
|
+
nameSoFar,
|
|
257
|
+
array,
|
|
258
|
+
escapedPrefix,
|
|
259
|
+
type,
|
|
260
|
+
callback
|
|
261
|
+
));
|
|
262
|
+
else if ("object" === type) {
|
|
263
|
+
if ("function" === typeof children.then)
|
|
264
|
+
return mapIntoArray(
|
|
265
|
+
resolveThenable(children),
|
|
266
|
+
array,
|
|
267
|
+
escapedPrefix,
|
|
268
|
+
nameSoFar,
|
|
269
|
+
callback
|
|
270
|
+
);
|
|
271
|
+
array = String(children);
|
|
272
|
+
throw Error(
|
|
273
|
+
"Objects are not valid as a React child (found: " +
|
|
274
|
+
("[object Object]" === array
|
|
275
|
+
? "object with keys {" + Object.keys(children).join(", ") + "}"
|
|
276
|
+
: array) +
|
|
277
|
+
"). If you meant to render a collection of children, use an array instead."
|
|
278
|
+
);
|
|
279
|
+
}
|
|
280
|
+
return invokeCallback;
|
|
281
|
+
}
|
|
282
|
+
function mapChildren(children, func, context) {
|
|
283
|
+
if (null == children) return children;
|
|
284
|
+
var result = [],
|
|
285
|
+
count = 0;
|
|
286
|
+
mapIntoArray(children, result, "", "", function (child) {
|
|
287
|
+
return func.call(context, child, count++);
|
|
288
|
+
});
|
|
289
|
+
return result;
|
|
290
|
+
}
|
|
291
|
+
function lazyInitializer(payload) {
|
|
292
|
+
if (-1 === payload._status) {
|
|
293
|
+
var ctor = payload._result;
|
|
294
|
+
ctor = ctor();
|
|
295
|
+
ctor.then(
|
|
296
|
+
function (moduleObject) {
|
|
297
|
+
if (0 === payload._status || -1 === payload._status)
|
|
298
|
+
(payload._status = 1), (payload._result = moduleObject);
|
|
299
|
+
},
|
|
300
|
+
function (error) {
|
|
301
|
+
if (0 === payload._status || -1 === payload._status)
|
|
302
|
+
(payload._status = 2), (payload._result = error);
|
|
303
|
+
}
|
|
304
|
+
);
|
|
305
|
+
-1 === payload._status && ((payload._status = 0), (payload._result = ctor));
|
|
306
|
+
}
|
|
307
|
+
if (1 === payload._status) return payload._result.default;
|
|
308
|
+
throw payload._result;
|
|
309
|
+
}
|
|
310
|
+
var reportGlobalError =
|
|
311
|
+
"function" === typeof reportError
|
|
312
|
+
? reportError
|
|
313
|
+
: function (error) {
|
|
314
|
+
if (
|
|
315
|
+
"object" === typeof window &&
|
|
316
|
+
"function" === typeof window.ErrorEvent
|
|
317
|
+
) {
|
|
318
|
+
var event = new window.ErrorEvent("error", {
|
|
319
|
+
bubbles: true,
|
|
320
|
+
cancelable: true,
|
|
321
|
+
message:
|
|
322
|
+
"object" === typeof error &&
|
|
323
|
+
null !== error &&
|
|
324
|
+
"string" === typeof error.message
|
|
325
|
+
? String(error.message)
|
|
326
|
+
: String(error),
|
|
327
|
+
error: error
|
|
328
|
+
});
|
|
329
|
+
if (!window.dispatchEvent(event)) return;
|
|
330
|
+
} else if (
|
|
331
|
+
"object" === typeof process &&
|
|
332
|
+
"function" === typeof process.emit
|
|
333
|
+
) {
|
|
334
|
+
return;
|
|
335
|
+
}
|
|
336
|
+
console.error(error);
|
|
337
|
+
};
|
|
338
|
+
function noop() {}
|
|
339
|
+
react_production.Children = {
|
|
340
|
+
map: mapChildren,
|
|
341
|
+
forEach: function (children, forEachFunc, forEachContext) {
|
|
342
|
+
mapChildren(
|
|
343
|
+
children,
|
|
344
|
+
function () {
|
|
345
|
+
forEachFunc.apply(this, arguments);
|
|
346
|
+
},
|
|
347
|
+
forEachContext
|
|
348
|
+
);
|
|
349
|
+
},
|
|
350
|
+
count: function (children) {
|
|
351
|
+
var n = 0;
|
|
352
|
+
mapChildren(children, function () {
|
|
353
|
+
n++;
|
|
354
|
+
});
|
|
355
|
+
return n;
|
|
356
|
+
},
|
|
357
|
+
toArray: function (children) {
|
|
358
|
+
return (
|
|
359
|
+
mapChildren(children, function (child) {
|
|
360
|
+
return child;
|
|
361
|
+
}) || []
|
|
362
|
+
);
|
|
363
|
+
},
|
|
364
|
+
only: function (children) {
|
|
365
|
+
if (!isValidElement(children))
|
|
366
|
+
throw Error(
|
|
367
|
+
"React.Children.only expected to receive a single React element child."
|
|
368
|
+
);
|
|
369
|
+
return children;
|
|
370
|
+
}
|
|
371
|
+
};
|
|
372
|
+
react_production.Component = Component;
|
|
373
|
+
react_production.Fragment = REACT_FRAGMENT_TYPE;
|
|
374
|
+
react_production.Profiler = REACT_PROFILER_TYPE;
|
|
375
|
+
react_production.PureComponent = PureComponent;
|
|
376
|
+
react_production.StrictMode = REACT_STRICT_MODE_TYPE;
|
|
377
|
+
react_production.Suspense = REACT_SUSPENSE_TYPE;
|
|
378
|
+
react_production.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE =
|
|
379
|
+
ReactSharedInternals;
|
|
380
|
+
react_production.act = function () {
|
|
381
|
+
throw Error("act(...) is not supported in production builds of React.");
|
|
382
|
+
};
|
|
383
|
+
react_production.cache = function (fn) {
|
|
384
|
+
return function () {
|
|
385
|
+
return fn.apply(null, arguments);
|
|
386
|
+
};
|
|
387
|
+
};
|
|
388
|
+
react_production.cloneElement = function (element, config, children) {
|
|
389
|
+
if (null === element || void 0 === element)
|
|
390
|
+
throw Error(
|
|
391
|
+
"The argument must be a React element, but you passed " + element + "."
|
|
392
|
+
);
|
|
393
|
+
var props = assign({}, element.props),
|
|
394
|
+
key = element.key,
|
|
395
|
+
owner = void 0;
|
|
396
|
+
if (null != config)
|
|
397
|
+
for (propName in (void 0 !== config.ref && (owner = void 0),
|
|
398
|
+
void 0 !== config.key && (key = "" + config.key),
|
|
399
|
+
config))
|
|
400
|
+
!hasOwnProperty.call(config, propName) ||
|
|
401
|
+
"key" === propName ||
|
|
402
|
+
"__self" === propName ||
|
|
403
|
+
"__source" === propName ||
|
|
404
|
+
("ref" === propName && void 0 === config.ref) ||
|
|
405
|
+
(props[propName] = config[propName]);
|
|
406
|
+
var propName = arguments.length - 2;
|
|
407
|
+
if (1 === propName) props.children = children;
|
|
408
|
+
else if (1 < propName) {
|
|
409
|
+
for (var childArray = Array(propName), i = 0; i < propName; i++)
|
|
410
|
+
childArray[i] = arguments[i + 2];
|
|
411
|
+
props.children = childArray;
|
|
412
|
+
}
|
|
413
|
+
return ReactElement(element.type, key, void 0, void 0, owner, props);
|
|
414
|
+
};
|
|
415
|
+
react_production.createContext = function (defaultValue) {
|
|
416
|
+
defaultValue = {
|
|
417
|
+
$$typeof: REACT_CONTEXT_TYPE,
|
|
418
|
+
_currentValue: defaultValue,
|
|
419
|
+
_currentValue2: defaultValue,
|
|
420
|
+
_threadCount: 0,
|
|
421
|
+
Provider: null,
|
|
422
|
+
Consumer: null
|
|
423
|
+
};
|
|
424
|
+
defaultValue.Provider = defaultValue;
|
|
425
|
+
defaultValue.Consumer = {
|
|
426
|
+
$$typeof: REACT_CONSUMER_TYPE,
|
|
427
|
+
_context: defaultValue
|
|
428
|
+
};
|
|
429
|
+
return defaultValue;
|
|
430
|
+
};
|
|
431
|
+
react_production.createElement = function (type, config, children) {
|
|
432
|
+
var propName,
|
|
433
|
+
props = {},
|
|
434
|
+
key = null;
|
|
435
|
+
if (null != config)
|
|
436
|
+
for (propName in (void 0 !== config.key && (key = "" + config.key), config))
|
|
437
|
+
hasOwnProperty.call(config, propName) &&
|
|
438
|
+
"key" !== propName &&
|
|
439
|
+
"__self" !== propName &&
|
|
440
|
+
"__source" !== propName &&
|
|
441
|
+
(props[propName] = config[propName]);
|
|
442
|
+
var childrenLength = arguments.length - 2;
|
|
443
|
+
if (1 === childrenLength) props.children = children;
|
|
444
|
+
else if (1 < childrenLength) {
|
|
445
|
+
for (var childArray = Array(childrenLength), i = 0; i < childrenLength; i++)
|
|
446
|
+
childArray[i] = arguments[i + 2];
|
|
447
|
+
props.children = childArray;
|
|
448
|
+
}
|
|
449
|
+
if (type && type.defaultProps)
|
|
450
|
+
for (propName in ((childrenLength = type.defaultProps), childrenLength))
|
|
451
|
+
void 0 === props[propName] &&
|
|
452
|
+
(props[propName] = childrenLength[propName]);
|
|
453
|
+
return ReactElement(type, key, void 0, void 0, null, props);
|
|
454
|
+
};
|
|
455
|
+
react_production.createRef = function () {
|
|
456
|
+
return { current: null };
|
|
457
|
+
};
|
|
458
|
+
react_production.forwardRef = function (render) {
|
|
459
|
+
return { $$typeof: REACT_FORWARD_REF_TYPE, render: render };
|
|
460
|
+
};
|
|
461
|
+
react_production.isValidElement = isValidElement;
|
|
462
|
+
react_production.lazy = function (ctor) {
|
|
463
|
+
return {
|
|
464
|
+
$$typeof: REACT_LAZY_TYPE,
|
|
465
|
+
_payload: { _status: -1, _result: ctor },
|
|
466
|
+
_init: lazyInitializer
|
|
467
|
+
};
|
|
468
|
+
};
|
|
469
|
+
react_production.memo = function (type, compare) {
|
|
470
|
+
return {
|
|
471
|
+
$$typeof: REACT_MEMO_TYPE,
|
|
472
|
+
type: type,
|
|
473
|
+
compare: void 0 === compare ? null : compare
|
|
474
|
+
};
|
|
475
|
+
};
|
|
476
|
+
react_production.startTransition = function (scope) {
|
|
477
|
+
var prevTransition = ReactSharedInternals.T,
|
|
478
|
+
currentTransition = {};
|
|
479
|
+
ReactSharedInternals.T = currentTransition;
|
|
480
|
+
try {
|
|
481
|
+
var returnValue = scope(),
|
|
482
|
+
onStartTransitionFinish = ReactSharedInternals.S;
|
|
483
|
+
null !== onStartTransitionFinish &&
|
|
484
|
+
onStartTransitionFinish(currentTransition, returnValue);
|
|
485
|
+
"object" === typeof returnValue &&
|
|
486
|
+
null !== returnValue &&
|
|
487
|
+
"function" === typeof returnValue.then &&
|
|
488
|
+
returnValue.then(noop, reportGlobalError);
|
|
489
|
+
} catch (error) {
|
|
490
|
+
reportGlobalError(error);
|
|
491
|
+
} finally {
|
|
492
|
+
ReactSharedInternals.T = prevTransition;
|
|
493
|
+
}
|
|
494
|
+
};
|
|
495
|
+
react_production.unstable_useCacheRefresh = function () {
|
|
496
|
+
return ReactSharedInternals.H.useCacheRefresh();
|
|
497
|
+
};
|
|
498
|
+
react_production.use = function (usable) {
|
|
499
|
+
return ReactSharedInternals.H.use(usable);
|
|
500
|
+
};
|
|
501
|
+
react_production.useActionState = function (action, initialState, permalink) {
|
|
502
|
+
return ReactSharedInternals.H.useActionState(action, initialState, permalink);
|
|
503
|
+
};
|
|
504
|
+
react_production.useCallback = function (callback, deps) {
|
|
505
|
+
return ReactSharedInternals.H.useCallback(callback, deps);
|
|
506
|
+
};
|
|
507
|
+
react_production.useContext = function (Context) {
|
|
508
|
+
return ReactSharedInternals.H.useContext(Context);
|
|
509
|
+
};
|
|
510
|
+
react_production.useDebugValue = function () {};
|
|
511
|
+
react_production.useDeferredValue = function (value, initialValue) {
|
|
512
|
+
return ReactSharedInternals.H.useDeferredValue(value, initialValue);
|
|
513
|
+
};
|
|
514
|
+
react_production.useEffect = function (create, deps) {
|
|
515
|
+
return ReactSharedInternals.H.useEffect(create, deps);
|
|
516
|
+
};
|
|
517
|
+
react_production.useId = function () {
|
|
518
|
+
return ReactSharedInternals.H.useId();
|
|
519
|
+
};
|
|
520
|
+
react_production.useImperativeHandle = function (ref, create, deps) {
|
|
521
|
+
return ReactSharedInternals.H.useImperativeHandle(ref, create, deps);
|
|
522
|
+
};
|
|
523
|
+
react_production.useInsertionEffect = function (create, deps) {
|
|
524
|
+
return ReactSharedInternals.H.useInsertionEffect(create, deps);
|
|
525
|
+
};
|
|
526
|
+
react_production.useLayoutEffect = function (create, deps) {
|
|
527
|
+
return ReactSharedInternals.H.useLayoutEffect(create, deps);
|
|
528
|
+
};
|
|
529
|
+
react_production.useMemo = function (create, deps) {
|
|
530
|
+
return ReactSharedInternals.H.useMemo(create, deps);
|
|
531
|
+
};
|
|
532
|
+
react_production.useOptimistic = function (passthrough, reducer) {
|
|
533
|
+
return ReactSharedInternals.H.useOptimistic(passthrough, reducer);
|
|
534
|
+
};
|
|
535
|
+
react_production.useReducer = function (reducer, initialArg, init) {
|
|
536
|
+
return ReactSharedInternals.H.useReducer(reducer, initialArg, init);
|
|
537
|
+
};
|
|
538
|
+
react_production.useRef = function (initialValue) {
|
|
539
|
+
return ReactSharedInternals.H.useRef(initialValue);
|
|
540
|
+
};
|
|
541
|
+
react_production.useState = function (initialState) {
|
|
542
|
+
return ReactSharedInternals.H.useState(initialState);
|
|
543
|
+
};
|
|
544
|
+
react_production.useSyncExternalStore = function (
|
|
545
|
+
subscribe,
|
|
546
|
+
getSnapshot,
|
|
547
|
+
getServerSnapshot
|
|
548
|
+
) {
|
|
549
|
+
return ReactSharedInternals.H.useSyncExternalStore(
|
|
550
|
+
subscribe,
|
|
551
|
+
getSnapshot,
|
|
552
|
+
getServerSnapshot
|
|
553
|
+
);
|
|
554
|
+
};
|
|
555
|
+
react_production.useTransition = function () {
|
|
556
|
+
return ReactSharedInternals.H.useTransition();
|
|
557
|
+
};
|
|
558
|
+
react_production.version = "19.0.0";
|
|
559
|
+
return react_production;
|
|
560
|
+
}
|
|
561
|
+
|
|
562
|
+
var hasRequiredReact;
|
|
563
|
+
|
|
564
|
+
function requireReact () {
|
|
565
|
+
if (hasRequiredReact) return react.exports;
|
|
566
|
+
hasRequiredReact = 1;
|
|
567
|
+
|
|
568
|
+
{
|
|
569
|
+
react.exports = requireReact_production();
|
|
570
|
+
}
|
|
571
|
+
return react.exports;
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
var reactExports = requireReact();
|
|
575
|
+
var __jsenv_default_import__ = /*@__PURE__*/getDefaultExportFromCjs(reactExports);
|
|
576
|
+
|
|
577
|
+
var Children = reactExports.Children;
|
|
578
|
+
var Component = reactExports.Component;
|
|
579
|
+
var Fragment = reactExports.Fragment;
|
|
580
|
+
var Profiler = reactExports.Profiler;
|
|
581
|
+
var PureComponent = reactExports.PureComponent;
|
|
582
|
+
var StrictMode = reactExports.StrictMode;
|
|
583
|
+
var Suspense = reactExports.Suspense;
|
|
584
|
+
var __CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = reactExports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
585
|
+
var act = reactExports.act;
|
|
586
|
+
var cache = reactExports.cache;
|
|
587
|
+
var cloneElement = reactExports.cloneElement;
|
|
588
|
+
var createContext = reactExports.createContext;
|
|
589
|
+
var createElement = reactExports.createElement;
|
|
590
|
+
var createRef = reactExports.createRef;
|
|
591
|
+
var forwardRef = reactExports.forwardRef;
|
|
592
|
+
var isValidElement = reactExports.isValidElement;
|
|
593
|
+
var lazy = reactExports.lazy;
|
|
594
|
+
var memo = reactExports.memo;
|
|
595
|
+
var startTransition = reactExports.startTransition;
|
|
596
|
+
var unstable_useCacheRefresh = reactExports.unstable_useCacheRefresh;
|
|
597
|
+
var use = reactExports.use;
|
|
598
|
+
var useActionState = reactExports.useActionState;
|
|
599
|
+
var useCallback = reactExports.useCallback;
|
|
600
|
+
var useContext = reactExports.useContext;
|
|
601
|
+
var useDebugValue = reactExports.useDebugValue;
|
|
602
|
+
var useDeferredValue = reactExports.useDeferredValue;
|
|
603
|
+
var useEffect = reactExports.useEffect;
|
|
604
|
+
var useId = reactExports.useId;
|
|
605
|
+
var useImperativeHandle = reactExports.useImperativeHandle;
|
|
606
|
+
var useInsertionEffect = reactExports.useInsertionEffect;
|
|
607
|
+
var useLayoutEffect = reactExports.useLayoutEffect;
|
|
608
|
+
var useMemo = reactExports.useMemo;
|
|
609
|
+
var useOptimistic = reactExports.useOptimistic;
|
|
610
|
+
var useReducer = reactExports.useReducer;
|
|
611
|
+
var useRef = reactExports.useRef;
|
|
612
|
+
var useState = reactExports.useState;
|
|
613
|
+
var useSyncExternalStore = reactExports.useSyncExternalStore;
|
|
614
|
+
var useTransition = reactExports.useTransition;
|
|
615
|
+
var version = reactExports.version;
|
|
616
|
+
export { Children, Component, Fragment, Profiler, PureComponent, StrictMode, Suspense, __CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, act, cache, cloneElement, createContext, createElement, createRef, __jsenv_default_import__ as default, forwardRef, isValidElement, lazy, memo, startTransition, unstable_useCacheRefresh, use, useActionState, useCallback, useContext, useDebugValue, useDeferredValue, useEffect, useId, useImperativeHandle, useInsertionEffect, useLayoutEffect, useMemo, useOptimistic, useReducer, useRef, useState, useSyncExternalStore, useTransition, version };
|
|
617
|
+
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
function checkDCE() {
|
|
4
|
+
/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
|
|
5
|
+
if (
|
|
6
|
+
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined' ||
|
|
7
|
+
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE !== 'function'
|
|
8
|
+
) {
|
|
9
|
+
return;
|
|
10
|
+
}
|
|
11
|
+
if (("production") !== 'production') {
|
|
12
|
+
// This branch is unreachable because this function is only called
|
|
13
|
+
// in production, but the condition is true only in development.
|
|
14
|
+
// Therefore if the branch is still here, dead code elimination wasn't
|
|
15
|
+
// properly applied.
|
|
16
|
+
// Don't change the message. React DevTools relies on it. Also make sure
|
|
17
|
+
// this message doesn't occur elsewhere in this function, or it will cause
|
|
18
|
+
// a false positive.
|
|
19
|
+
throw new Error('^_^');
|
|
20
|
+
}
|
|
21
|
+
try {
|
|
22
|
+
// Verify that the code above has been dead code eliminated (DCE'd).
|
|
23
|
+
__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE);
|
|
24
|
+
} catch (err) {
|
|
25
|
+
// DevTools shouldn't crash React, no matter what.
|
|
26
|
+
// We should still report in case we break this code.
|
|
27
|
+
console.error(err);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
if (("production") === 'production') {
|
|
32
|
+
// DCE check should happen before ReactDOM bundle executes so that
|
|
33
|
+
// DevTools can report bad minification during injection.
|
|
34
|
+
checkDCE();
|
|
35
|
+
module.exports = require('./cjs/react-dom-client.production.js');
|
|
36
|
+
} else {
|
|
37
|
+
module.exports = require('./cjs/react-dom-client.development.js');
|
|
38
|
+
}
|