@bace51/cocktailjs-react 1.0.0
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/README.md +75 -0
- package/dist/index.cjs.js +4035 -0
- package/dist/index.d.ts +111 -0
- package/dist/index.mjs +164 -0
- package/package.json +61 -0
|
@@ -0,0 +1,4035 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __commonJS = (cb, mod) => function __require() {
|
|
8
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
9
|
+
};
|
|
10
|
+
var __export = (target, all) => {
|
|
11
|
+
for (var name in all)
|
|
12
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
13
|
+
};
|
|
14
|
+
var __copyProps = (to, from, except, desc) => {
|
|
15
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
16
|
+
for (let key of __getOwnPropNames(from))
|
|
17
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
18
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
19
|
+
}
|
|
20
|
+
return to;
|
|
21
|
+
};
|
|
22
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
23
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
24
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
25
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
26
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
27
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
28
|
+
mod
|
|
29
|
+
));
|
|
30
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
31
|
+
|
|
32
|
+
// ../../node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react.production.min.js
|
|
33
|
+
var require_react_production_min = __commonJS({
|
|
34
|
+
"../../node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react.production.min.js"(exports) {
|
|
35
|
+
"use strict";
|
|
36
|
+
var l = Symbol.for("react.element");
|
|
37
|
+
var n = Symbol.for("react.portal");
|
|
38
|
+
var p = Symbol.for("react.fragment");
|
|
39
|
+
var q = Symbol.for("react.strict_mode");
|
|
40
|
+
var r = Symbol.for("react.profiler");
|
|
41
|
+
var t = Symbol.for("react.provider");
|
|
42
|
+
var u = Symbol.for("react.context");
|
|
43
|
+
var v = Symbol.for("react.forward_ref");
|
|
44
|
+
var w = Symbol.for("react.suspense");
|
|
45
|
+
var x = Symbol.for("react.memo");
|
|
46
|
+
var y = Symbol.for("react.lazy");
|
|
47
|
+
var z = Symbol.iterator;
|
|
48
|
+
function A(a) {
|
|
49
|
+
if (null === a || "object" !== typeof a)
|
|
50
|
+
return null;
|
|
51
|
+
a = z && a[z] || a["@@iterator"];
|
|
52
|
+
return "function" === typeof a ? a : null;
|
|
53
|
+
}
|
|
54
|
+
var B = { isMounted: function() {
|
|
55
|
+
return false;
|
|
56
|
+
}, enqueueForceUpdate: function() {
|
|
57
|
+
}, enqueueReplaceState: function() {
|
|
58
|
+
}, enqueueSetState: function() {
|
|
59
|
+
} };
|
|
60
|
+
var C = Object.assign;
|
|
61
|
+
var D = {};
|
|
62
|
+
function E(a, b, e) {
|
|
63
|
+
this.props = a;
|
|
64
|
+
this.context = b;
|
|
65
|
+
this.refs = D;
|
|
66
|
+
this.updater = e || B;
|
|
67
|
+
}
|
|
68
|
+
E.prototype.isReactComponent = {};
|
|
69
|
+
E.prototype.setState = function(a, b) {
|
|
70
|
+
if ("object" !== typeof a && "function" !== typeof a && null != a)
|
|
71
|
+
throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");
|
|
72
|
+
this.updater.enqueueSetState(this, a, b, "setState");
|
|
73
|
+
};
|
|
74
|
+
E.prototype.forceUpdate = function(a) {
|
|
75
|
+
this.updater.enqueueForceUpdate(this, a, "forceUpdate");
|
|
76
|
+
};
|
|
77
|
+
function F() {
|
|
78
|
+
}
|
|
79
|
+
F.prototype = E.prototype;
|
|
80
|
+
function G(a, b, e) {
|
|
81
|
+
this.props = a;
|
|
82
|
+
this.context = b;
|
|
83
|
+
this.refs = D;
|
|
84
|
+
this.updater = e || B;
|
|
85
|
+
}
|
|
86
|
+
var H = G.prototype = new F();
|
|
87
|
+
H.constructor = G;
|
|
88
|
+
C(H, E.prototype);
|
|
89
|
+
H.isPureReactComponent = true;
|
|
90
|
+
var I = Array.isArray;
|
|
91
|
+
var J = Object.prototype.hasOwnProperty;
|
|
92
|
+
var K = { current: null };
|
|
93
|
+
var L = { key: true, ref: true, __self: true, __source: true };
|
|
94
|
+
function M(a, b, e) {
|
|
95
|
+
var d, c = {}, k = null, h = null;
|
|
96
|
+
if (null != b)
|
|
97
|
+
for (d in void 0 !== b.ref && (h = b.ref), void 0 !== b.key && (k = "" + b.key), b)
|
|
98
|
+
J.call(b, d) && !L.hasOwnProperty(d) && (c[d] = b[d]);
|
|
99
|
+
var g = arguments.length - 2;
|
|
100
|
+
if (1 === g)
|
|
101
|
+
c.children = e;
|
|
102
|
+
else if (1 < g) {
|
|
103
|
+
for (var f = Array(g), m = 0; m < g; m++)
|
|
104
|
+
f[m] = arguments[m + 2];
|
|
105
|
+
c.children = f;
|
|
106
|
+
}
|
|
107
|
+
if (a && a.defaultProps)
|
|
108
|
+
for (d in g = a.defaultProps, g)
|
|
109
|
+
void 0 === c[d] && (c[d] = g[d]);
|
|
110
|
+
return { $$typeof: l, type: a, key: k, ref: h, props: c, _owner: K.current };
|
|
111
|
+
}
|
|
112
|
+
function N(a, b) {
|
|
113
|
+
return { $$typeof: l, type: a.type, key: b, ref: a.ref, props: a.props, _owner: a._owner };
|
|
114
|
+
}
|
|
115
|
+
function O(a) {
|
|
116
|
+
return "object" === typeof a && null !== a && a.$$typeof === l;
|
|
117
|
+
}
|
|
118
|
+
function escape(a) {
|
|
119
|
+
var b = { "=": "=0", ":": "=2" };
|
|
120
|
+
return "$" + a.replace(/[=:]/g, function(a2) {
|
|
121
|
+
return b[a2];
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
var P = /\/+/g;
|
|
125
|
+
function Q(a, b) {
|
|
126
|
+
return "object" === typeof a && null !== a && null != a.key ? escape("" + a.key) : b.toString(36);
|
|
127
|
+
}
|
|
128
|
+
function R(a, b, e, d, c) {
|
|
129
|
+
var k = typeof a;
|
|
130
|
+
if ("undefined" === k || "boolean" === k)
|
|
131
|
+
a = null;
|
|
132
|
+
var h = false;
|
|
133
|
+
if (null === a)
|
|
134
|
+
h = true;
|
|
135
|
+
else
|
|
136
|
+
switch (k) {
|
|
137
|
+
case "string":
|
|
138
|
+
case "number":
|
|
139
|
+
h = true;
|
|
140
|
+
break;
|
|
141
|
+
case "object":
|
|
142
|
+
switch (a.$$typeof) {
|
|
143
|
+
case l:
|
|
144
|
+
case n:
|
|
145
|
+
h = true;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
if (h)
|
|
149
|
+
return h = a, c = c(h), a = "" === d ? "." + Q(h, 0) : d, I(c) ? (e = "", null != a && (e = a.replace(P, "$&/") + "/"), R(c, b, e, "", function(a2) {
|
|
150
|
+
return a2;
|
|
151
|
+
})) : null != c && (O(c) && (c = N(c, e + (!c.key || h && h.key === c.key ? "" : ("" + c.key).replace(P, "$&/") + "/") + a)), b.push(c)), 1;
|
|
152
|
+
h = 0;
|
|
153
|
+
d = "" === d ? "." : d + ":";
|
|
154
|
+
if (I(a))
|
|
155
|
+
for (var g = 0; g < a.length; g++) {
|
|
156
|
+
k = a[g];
|
|
157
|
+
var f = d + Q(k, g);
|
|
158
|
+
h += R(k, b, e, f, c);
|
|
159
|
+
}
|
|
160
|
+
else if (f = A(a), "function" === typeof f)
|
|
161
|
+
for (a = f.call(a), g = 0; !(k = a.next()).done; )
|
|
162
|
+
k = k.value, f = d + Q(k, g++), h += R(k, b, e, f, c);
|
|
163
|
+
else if ("object" === k)
|
|
164
|
+
throw b = String(a), Error("Objects are not valid as a React child (found: " + ("[object Object]" === b ? "object with keys {" + Object.keys(a).join(", ") + "}" : b) + "). If you meant to render a collection of children, use an array instead.");
|
|
165
|
+
return h;
|
|
166
|
+
}
|
|
167
|
+
function S(a, b, e) {
|
|
168
|
+
if (null == a)
|
|
169
|
+
return a;
|
|
170
|
+
var d = [], c = 0;
|
|
171
|
+
R(a, d, "", "", function(a2) {
|
|
172
|
+
return b.call(e, a2, c++);
|
|
173
|
+
});
|
|
174
|
+
return d;
|
|
175
|
+
}
|
|
176
|
+
function T(a) {
|
|
177
|
+
if (-1 === a._status) {
|
|
178
|
+
var b = a._result;
|
|
179
|
+
b = b();
|
|
180
|
+
b.then(function(b2) {
|
|
181
|
+
if (0 === a._status || -1 === a._status)
|
|
182
|
+
a._status = 1, a._result = b2;
|
|
183
|
+
}, function(b2) {
|
|
184
|
+
if (0 === a._status || -1 === a._status)
|
|
185
|
+
a._status = 2, a._result = b2;
|
|
186
|
+
});
|
|
187
|
+
-1 === a._status && (a._status = 0, a._result = b);
|
|
188
|
+
}
|
|
189
|
+
if (1 === a._status)
|
|
190
|
+
return a._result.default;
|
|
191
|
+
throw a._result;
|
|
192
|
+
}
|
|
193
|
+
var U = { current: null };
|
|
194
|
+
var V = { transition: null };
|
|
195
|
+
var W = { ReactCurrentDispatcher: U, ReactCurrentBatchConfig: V, ReactCurrentOwner: K };
|
|
196
|
+
function X() {
|
|
197
|
+
throw Error("act(...) is not supported in production builds of React.");
|
|
198
|
+
}
|
|
199
|
+
exports.Children = { map: S, forEach: function(a, b, e) {
|
|
200
|
+
S(a, function() {
|
|
201
|
+
b.apply(this, arguments);
|
|
202
|
+
}, e);
|
|
203
|
+
}, count: function(a) {
|
|
204
|
+
var b = 0;
|
|
205
|
+
S(a, function() {
|
|
206
|
+
b++;
|
|
207
|
+
});
|
|
208
|
+
return b;
|
|
209
|
+
}, toArray: function(a) {
|
|
210
|
+
return S(a, function(a2) {
|
|
211
|
+
return a2;
|
|
212
|
+
}) || [];
|
|
213
|
+
}, only: function(a) {
|
|
214
|
+
if (!O(a))
|
|
215
|
+
throw Error("React.Children.only expected to receive a single React element child.");
|
|
216
|
+
return a;
|
|
217
|
+
} };
|
|
218
|
+
exports.Component = E;
|
|
219
|
+
exports.Fragment = p;
|
|
220
|
+
exports.Profiler = r;
|
|
221
|
+
exports.PureComponent = G;
|
|
222
|
+
exports.StrictMode = q;
|
|
223
|
+
exports.Suspense = w;
|
|
224
|
+
exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = W;
|
|
225
|
+
exports.act = X;
|
|
226
|
+
exports.cloneElement = function(a, b, e) {
|
|
227
|
+
if (null === a || void 0 === a)
|
|
228
|
+
throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + a + ".");
|
|
229
|
+
var d = C({}, a.props), c = a.key, k = a.ref, h = a._owner;
|
|
230
|
+
if (null != b) {
|
|
231
|
+
void 0 !== b.ref && (k = b.ref, h = K.current);
|
|
232
|
+
void 0 !== b.key && (c = "" + b.key);
|
|
233
|
+
if (a.type && a.type.defaultProps)
|
|
234
|
+
var g = a.type.defaultProps;
|
|
235
|
+
for (f in b)
|
|
236
|
+
J.call(b, f) && !L.hasOwnProperty(f) && (d[f] = void 0 === b[f] && void 0 !== g ? g[f] : b[f]);
|
|
237
|
+
}
|
|
238
|
+
var f = arguments.length - 2;
|
|
239
|
+
if (1 === f)
|
|
240
|
+
d.children = e;
|
|
241
|
+
else if (1 < f) {
|
|
242
|
+
g = Array(f);
|
|
243
|
+
for (var m = 0; m < f; m++)
|
|
244
|
+
g[m] = arguments[m + 2];
|
|
245
|
+
d.children = g;
|
|
246
|
+
}
|
|
247
|
+
return { $$typeof: l, type: a.type, key: c, ref: k, props: d, _owner: h };
|
|
248
|
+
};
|
|
249
|
+
exports.createContext = function(a) {
|
|
250
|
+
a = { $$typeof: u, _currentValue: a, _currentValue2: a, _threadCount: 0, Provider: null, Consumer: null, _defaultValue: null, _globalName: null };
|
|
251
|
+
a.Provider = { $$typeof: t, _context: a };
|
|
252
|
+
return a.Consumer = a;
|
|
253
|
+
};
|
|
254
|
+
exports.createElement = M;
|
|
255
|
+
exports.createFactory = function(a) {
|
|
256
|
+
var b = M.bind(null, a);
|
|
257
|
+
b.type = a;
|
|
258
|
+
return b;
|
|
259
|
+
};
|
|
260
|
+
exports.createRef = function() {
|
|
261
|
+
return { current: null };
|
|
262
|
+
};
|
|
263
|
+
exports.forwardRef = function(a) {
|
|
264
|
+
return { $$typeof: v, render: a };
|
|
265
|
+
};
|
|
266
|
+
exports.isValidElement = O;
|
|
267
|
+
exports.lazy = function(a) {
|
|
268
|
+
return { $$typeof: y, _payload: { _status: -1, _result: a }, _init: T };
|
|
269
|
+
};
|
|
270
|
+
exports.memo = function(a, b) {
|
|
271
|
+
return { $$typeof: x, type: a, compare: void 0 === b ? null : b };
|
|
272
|
+
};
|
|
273
|
+
exports.startTransition = function(a) {
|
|
274
|
+
var b = V.transition;
|
|
275
|
+
V.transition = {};
|
|
276
|
+
try {
|
|
277
|
+
a();
|
|
278
|
+
} finally {
|
|
279
|
+
V.transition = b;
|
|
280
|
+
}
|
|
281
|
+
};
|
|
282
|
+
exports.unstable_act = X;
|
|
283
|
+
exports.useCallback = function(a, b) {
|
|
284
|
+
return U.current.useCallback(a, b);
|
|
285
|
+
};
|
|
286
|
+
exports.useContext = function(a) {
|
|
287
|
+
return U.current.useContext(a);
|
|
288
|
+
};
|
|
289
|
+
exports.useDebugValue = function() {
|
|
290
|
+
};
|
|
291
|
+
exports.useDeferredValue = function(a) {
|
|
292
|
+
return U.current.useDeferredValue(a);
|
|
293
|
+
};
|
|
294
|
+
exports.useEffect = function(a, b) {
|
|
295
|
+
return U.current.useEffect(a, b);
|
|
296
|
+
};
|
|
297
|
+
exports.useId = function() {
|
|
298
|
+
return U.current.useId();
|
|
299
|
+
};
|
|
300
|
+
exports.useImperativeHandle = function(a, b, e) {
|
|
301
|
+
return U.current.useImperativeHandle(a, b, e);
|
|
302
|
+
};
|
|
303
|
+
exports.useInsertionEffect = function(a, b) {
|
|
304
|
+
return U.current.useInsertionEffect(a, b);
|
|
305
|
+
};
|
|
306
|
+
exports.useLayoutEffect = function(a, b) {
|
|
307
|
+
return U.current.useLayoutEffect(a, b);
|
|
308
|
+
};
|
|
309
|
+
exports.useMemo = function(a, b) {
|
|
310
|
+
return U.current.useMemo(a, b);
|
|
311
|
+
};
|
|
312
|
+
exports.useReducer = function(a, b, e) {
|
|
313
|
+
return U.current.useReducer(a, b, e);
|
|
314
|
+
};
|
|
315
|
+
exports.useRef = function(a) {
|
|
316
|
+
return U.current.useRef(a);
|
|
317
|
+
};
|
|
318
|
+
exports.useState = function(a) {
|
|
319
|
+
return U.current.useState(a);
|
|
320
|
+
};
|
|
321
|
+
exports.useSyncExternalStore = function(a, b, e) {
|
|
322
|
+
return U.current.useSyncExternalStore(a, b, e);
|
|
323
|
+
};
|
|
324
|
+
exports.useTransition = function() {
|
|
325
|
+
return U.current.useTransition();
|
|
326
|
+
};
|
|
327
|
+
exports.version = "18.3.1";
|
|
328
|
+
}
|
|
329
|
+
});
|
|
330
|
+
|
|
331
|
+
// ../../node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react.development.js
|
|
332
|
+
var require_react_development = __commonJS({
|
|
333
|
+
"../../node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react.development.js"(exports, module2) {
|
|
334
|
+
"use strict";
|
|
335
|
+
if (process.env.NODE_ENV !== "production") {
|
|
336
|
+
(function() {
|
|
337
|
+
"use strict";
|
|
338
|
+
if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart === "function") {
|
|
339
|
+
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
|
|
340
|
+
}
|
|
341
|
+
var ReactVersion = "18.3.1";
|
|
342
|
+
var REACT_ELEMENT_TYPE = Symbol.for("react.element");
|
|
343
|
+
var REACT_PORTAL_TYPE = Symbol.for("react.portal");
|
|
344
|
+
var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
|
|
345
|
+
var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode");
|
|
346
|
+
var REACT_PROFILER_TYPE = Symbol.for("react.profiler");
|
|
347
|
+
var REACT_PROVIDER_TYPE = Symbol.for("react.provider");
|
|
348
|
+
var REACT_CONTEXT_TYPE = Symbol.for("react.context");
|
|
349
|
+
var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref");
|
|
350
|
+
var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense");
|
|
351
|
+
var REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list");
|
|
352
|
+
var REACT_MEMO_TYPE = Symbol.for("react.memo");
|
|
353
|
+
var REACT_LAZY_TYPE = Symbol.for("react.lazy");
|
|
354
|
+
var REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen");
|
|
355
|
+
var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
|
|
356
|
+
var FAUX_ITERATOR_SYMBOL = "@@iterator";
|
|
357
|
+
function getIteratorFn(maybeIterable) {
|
|
358
|
+
if (maybeIterable === null || typeof maybeIterable !== "object") {
|
|
359
|
+
return null;
|
|
360
|
+
}
|
|
361
|
+
var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
|
|
362
|
+
if (typeof maybeIterator === "function") {
|
|
363
|
+
return maybeIterator;
|
|
364
|
+
}
|
|
365
|
+
return null;
|
|
366
|
+
}
|
|
367
|
+
var ReactCurrentDispatcher = {
|
|
368
|
+
/**
|
|
369
|
+
* @internal
|
|
370
|
+
* @type {ReactComponent}
|
|
371
|
+
*/
|
|
372
|
+
current: null
|
|
373
|
+
};
|
|
374
|
+
var ReactCurrentBatchConfig = {
|
|
375
|
+
transition: null
|
|
376
|
+
};
|
|
377
|
+
var ReactCurrentActQueue = {
|
|
378
|
+
current: null,
|
|
379
|
+
// Used to reproduce behavior of `batchedUpdates` in legacy mode.
|
|
380
|
+
isBatchingLegacy: false,
|
|
381
|
+
didScheduleLegacyUpdate: false
|
|
382
|
+
};
|
|
383
|
+
var ReactCurrentOwner = {
|
|
384
|
+
/**
|
|
385
|
+
* @internal
|
|
386
|
+
* @type {ReactComponent}
|
|
387
|
+
*/
|
|
388
|
+
current: null
|
|
389
|
+
};
|
|
390
|
+
var ReactDebugCurrentFrame = {};
|
|
391
|
+
var currentExtraStackFrame = null;
|
|
392
|
+
function setExtraStackFrame(stack) {
|
|
393
|
+
{
|
|
394
|
+
currentExtraStackFrame = stack;
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
{
|
|
398
|
+
ReactDebugCurrentFrame.setExtraStackFrame = function(stack) {
|
|
399
|
+
{
|
|
400
|
+
currentExtraStackFrame = stack;
|
|
401
|
+
}
|
|
402
|
+
};
|
|
403
|
+
ReactDebugCurrentFrame.getCurrentStack = null;
|
|
404
|
+
ReactDebugCurrentFrame.getStackAddendum = function() {
|
|
405
|
+
var stack = "";
|
|
406
|
+
if (currentExtraStackFrame) {
|
|
407
|
+
stack += currentExtraStackFrame;
|
|
408
|
+
}
|
|
409
|
+
var impl = ReactDebugCurrentFrame.getCurrentStack;
|
|
410
|
+
if (impl) {
|
|
411
|
+
stack += impl() || "";
|
|
412
|
+
}
|
|
413
|
+
return stack;
|
|
414
|
+
};
|
|
415
|
+
}
|
|
416
|
+
var enableScopeAPI = false;
|
|
417
|
+
var enableCacheElement = false;
|
|
418
|
+
var enableTransitionTracing = false;
|
|
419
|
+
var enableLegacyHidden = false;
|
|
420
|
+
var enableDebugTracing = false;
|
|
421
|
+
var ReactSharedInternals = {
|
|
422
|
+
ReactCurrentDispatcher,
|
|
423
|
+
ReactCurrentBatchConfig,
|
|
424
|
+
ReactCurrentOwner
|
|
425
|
+
};
|
|
426
|
+
{
|
|
427
|
+
ReactSharedInternals.ReactDebugCurrentFrame = ReactDebugCurrentFrame;
|
|
428
|
+
ReactSharedInternals.ReactCurrentActQueue = ReactCurrentActQueue;
|
|
429
|
+
}
|
|
430
|
+
function warn(format) {
|
|
431
|
+
{
|
|
432
|
+
{
|
|
433
|
+
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
434
|
+
args[_key - 1] = arguments[_key];
|
|
435
|
+
}
|
|
436
|
+
printWarning("warn", format, args);
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
function error(format) {
|
|
441
|
+
{
|
|
442
|
+
{
|
|
443
|
+
for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
444
|
+
args[_key2 - 1] = arguments[_key2];
|
|
445
|
+
}
|
|
446
|
+
printWarning("error", format, args);
|
|
447
|
+
}
|
|
448
|
+
}
|
|
449
|
+
}
|
|
450
|
+
function printWarning(level, format, args) {
|
|
451
|
+
{
|
|
452
|
+
var ReactDebugCurrentFrame2 = ReactSharedInternals.ReactDebugCurrentFrame;
|
|
453
|
+
var stack = ReactDebugCurrentFrame2.getStackAddendum();
|
|
454
|
+
if (stack !== "") {
|
|
455
|
+
format += "%s";
|
|
456
|
+
args = args.concat([stack]);
|
|
457
|
+
}
|
|
458
|
+
var argsWithFormat = args.map(function(item) {
|
|
459
|
+
return String(item);
|
|
460
|
+
});
|
|
461
|
+
argsWithFormat.unshift("Warning: " + format);
|
|
462
|
+
Function.prototype.apply.call(console[level], console, argsWithFormat);
|
|
463
|
+
}
|
|
464
|
+
}
|
|
465
|
+
var didWarnStateUpdateForUnmountedComponent = {};
|
|
466
|
+
function warnNoop(publicInstance, callerName) {
|
|
467
|
+
{
|
|
468
|
+
var _constructor = publicInstance.constructor;
|
|
469
|
+
var componentName = _constructor && (_constructor.displayName || _constructor.name) || "ReactClass";
|
|
470
|
+
var warningKey = componentName + "." + callerName;
|
|
471
|
+
if (didWarnStateUpdateForUnmountedComponent[warningKey]) {
|
|
472
|
+
return;
|
|
473
|
+
}
|
|
474
|
+
error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.", callerName, componentName);
|
|
475
|
+
didWarnStateUpdateForUnmountedComponent[warningKey] = true;
|
|
476
|
+
}
|
|
477
|
+
}
|
|
478
|
+
var ReactNoopUpdateQueue = {
|
|
479
|
+
/**
|
|
480
|
+
* Checks whether or not this composite component is mounted.
|
|
481
|
+
* @param {ReactClass} publicInstance The instance we want to test.
|
|
482
|
+
* @return {boolean} True if mounted, false otherwise.
|
|
483
|
+
* @protected
|
|
484
|
+
* @final
|
|
485
|
+
*/
|
|
486
|
+
isMounted: function(publicInstance) {
|
|
487
|
+
return false;
|
|
488
|
+
},
|
|
489
|
+
/**
|
|
490
|
+
* Forces an update. This should only be invoked when it is known with
|
|
491
|
+
* certainty that we are **not** in a DOM transaction.
|
|
492
|
+
*
|
|
493
|
+
* You may want to call this when you know that some deeper aspect of the
|
|
494
|
+
* component's state has changed but `setState` was not called.
|
|
495
|
+
*
|
|
496
|
+
* This will not invoke `shouldComponentUpdate`, but it will invoke
|
|
497
|
+
* `componentWillUpdate` and `componentDidUpdate`.
|
|
498
|
+
*
|
|
499
|
+
* @param {ReactClass} publicInstance The instance that should rerender.
|
|
500
|
+
* @param {?function} callback Called after component is updated.
|
|
501
|
+
* @param {?string} callerName name of the calling function in the public API.
|
|
502
|
+
* @internal
|
|
503
|
+
*/
|
|
504
|
+
enqueueForceUpdate: function(publicInstance, callback, callerName) {
|
|
505
|
+
warnNoop(publicInstance, "forceUpdate");
|
|
506
|
+
},
|
|
507
|
+
/**
|
|
508
|
+
* Replaces all of the state. Always use this or `setState` to mutate state.
|
|
509
|
+
* You should treat `this.state` as immutable.
|
|
510
|
+
*
|
|
511
|
+
* There is no guarantee that `this.state` will be immediately updated, so
|
|
512
|
+
* accessing `this.state` after calling this method may return the old value.
|
|
513
|
+
*
|
|
514
|
+
* @param {ReactClass} publicInstance The instance that should rerender.
|
|
515
|
+
* @param {object} completeState Next state.
|
|
516
|
+
* @param {?function} callback Called after component is updated.
|
|
517
|
+
* @param {?string} callerName name of the calling function in the public API.
|
|
518
|
+
* @internal
|
|
519
|
+
*/
|
|
520
|
+
enqueueReplaceState: function(publicInstance, completeState, callback, callerName) {
|
|
521
|
+
warnNoop(publicInstance, "replaceState");
|
|
522
|
+
},
|
|
523
|
+
/**
|
|
524
|
+
* Sets a subset of the state. This only exists because _pendingState is
|
|
525
|
+
* internal. This provides a merging strategy that is not available to deep
|
|
526
|
+
* properties which is confusing. TODO: Expose pendingState or don't use it
|
|
527
|
+
* during the merge.
|
|
528
|
+
*
|
|
529
|
+
* @param {ReactClass} publicInstance The instance that should rerender.
|
|
530
|
+
* @param {object} partialState Next partial state to be merged with state.
|
|
531
|
+
* @param {?function} callback Called after component is updated.
|
|
532
|
+
* @param {?string} Name of the calling function in the public API.
|
|
533
|
+
* @internal
|
|
534
|
+
*/
|
|
535
|
+
enqueueSetState: function(publicInstance, partialState, callback, callerName) {
|
|
536
|
+
warnNoop(publicInstance, "setState");
|
|
537
|
+
}
|
|
538
|
+
};
|
|
539
|
+
var assign = Object.assign;
|
|
540
|
+
var emptyObject = {};
|
|
541
|
+
{
|
|
542
|
+
Object.freeze(emptyObject);
|
|
543
|
+
}
|
|
544
|
+
function Component(props, context, updater) {
|
|
545
|
+
this.props = props;
|
|
546
|
+
this.context = context;
|
|
547
|
+
this.refs = emptyObject;
|
|
548
|
+
this.updater = updater || ReactNoopUpdateQueue;
|
|
549
|
+
}
|
|
550
|
+
Component.prototype.isReactComponent = {};
|
|
551
|
+
Component.prototype.setState = function(partialState, callback) {
|
|
552
|
+
if (typeof partialState !== "object" && typeof partialState !== "function" && partialState != null) {
|
|
553
|
+
throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");
|
|
554
|
+
}
|
|
555
|
+
this.updater.enqueueSetState(this, partialState, callback, "setState");
|
|
556
|
+
};
|
|
557
|
+
Component.prototype.forceUpdate = function(callback) {
|
|
558
|
+
this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
|
|
559
|
+
};
|
|
560
|
+
{
|
|
561
|
+
var deprecatedAPIs = {
|
|
562
|
+
isMounted: ["isMounted", "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],
|
|
563
|
+
replaceState: ["replaceState", "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]
|
|
564
|
+
};
|
|
565
|
+
var defineDeprecationWarning = function(methodName, info) {
|
|
566
|
+
Object.defineProperty(Component.prototype, methodName, {
|
|
567
|
+
get: function() {
|
|
568
|
+
warn("%s(...) is deprecated in plain JavaScript React classes. %s", info[0], info[1]);
|
|
569
|
+
return void 0;
|
|
570
|
+
}
|
|
571
|
+
});
|
|
572
|
+
};
|
|
573
|
+
for (var fnName in deprecatedAPIs) {
|
|
574
|
+
if (deprecatedAPIs.hasOwnProperty(fnName)) {
|
|
575
|
+
defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
|
|
576
|
+
}
|
|
577
|
+
}
|
|
578
|
+
}
|
|
579
|
+
function ComponentDummy() {
|
|
580
|
+
}
|
|
581
|
+
ComponentDummy.prototype = Component.prototype;
|
|
582
|
+
function PureComponent(props, context, updater) {
|
|
583
|
+
this.props = props;
|
|
584
|
+
this.context = context;
|
|
585
|
+
this.refs = emptyObject;
|
|
586
|
+
this.updater = updater || ReactNoopUpdateQueue;
|
|
587
|
+
}
|
|
588
|
+
var pureComponentPrototype = PureComponent.prototype = new ComponentDummy();
|
|
589
|
+
pureComponentPrototype.constructor = PureComponent;
|
|
590
|
+
assign(pureComponentPrototype, Component.prototype);
|
|
591
|
+
pureComponentPrototype.isPureReactComponent = true;
|
|
592
|
+
function createRef() {
|
|
593
|
+
var refObject = {
|
|
594
|
+
current: null
|
|
595
|
+
};
|
|
596
|
+
{
|
|
597
|
+
Object.seal(refObject);
|
|
598
|
+
}
|
|
599
|
+
return refObject;
|
|
600
|
+
}
|
|
601
|
+
var isArrayImpl = Array.isArray;
|
|
602
|
+
function isArray(a) {
|
|
603
|
+
return isArrayImpl(a);
|
|
604
|
+
}
|
|
605
|
+
function typeName(value) {
|
|
606
|
+
{
|
|
607
|
+
var hasToStringTag = typeof Symbol === "function" && Symbol.toStringTag;
|
|
608
|
+
var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
|
|
609
|
+
return type;
|
|
610
|
+
}
|
|
611
|
+
}
|
|
612
|
+
function willCoercionThrow(value) {
|
|
613
|
+
{
|
|
614
|
+
try {
|
|
615
|
+
testStringCoercion(value);
|
|
616
|
+
return false;
|
|
617
|
+
} catch (e) {
|
|
618
|
+
return true;
|
|
619
|
+
}
|
|
620
|
+
}
|
|
621
|
+
}
|
|
622
|
+
function testStringCoercion(value) {
|
|
623
|
+
return "" + value;
|
|
624
|
+
}
|
|
625
|
+
function checkKeyStringCoercion(value) {
|
|
626
|
+
{
|
|
627
|
+
if (willCoercionThrow(value)) {
|
|
628
|
+
error("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", typeName(value));
|
|
629
|
+
return testStringCoercion(value);
|
|
630
|
+
}
|
|
631
|
+
}
|
|
632
|
+
}
|
|
633
|
+
function getWrappedName(outerType, innerType, wrapperName) {
|
|
634
|
+
var displayName = outerType.displayName;
|
|
635
|
+
if (displayName) {
|
|
636
|
+
return displayName;
|
|
637
|
+
}
|
|
638
|
+
var functionName = innerType.displayName || innerType.name || "";
|
|
639
|
+
return functionName !== "" ? wrapperName + "(" + functionName + ")" : wrapperName;
|
|
640
|
+
}
|
|
641
|
+
function getContextName(type) {
|
|
642
|
+
return type.displayName || "Context";
|
|
643
|
+
}
|
|
644
|
+
function getComponentNameFromType(type) {
|
|
645
|
+
if (type == null) {
|
|
646
|
+
return null;
|
|
647
|
+
}
|
|
648
|
+
{
|
|
649
|
+
if (typeof type.tag === "number") {
|
|
650
|
+
error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.");
|
|
651
|
+
}
|
|
652
|
+
}
|
|
653
|
+
if (typeof type === "function") {
|
|
654
|
+
return type.displayName || type.name || null;
|
|
655
|
+
}
|
|
656
|
+
if (typeof type === "string") {
|
|
657
|
+
return type;
|
|
658
|
+
}
|
|
659
|
+
switch (type) {
|
|
660
|
+
case REACT_FRAGMENT_TYPE:
|
|
661
|
+
return "Fragment";
|
|
662
|
+
case REACT_PORTAL_TYPE:
|
|
663
|
+
return "Portal";
|
|
664
|
+
case REACT_PROFILER_TYPE:
|
|
665
|
+
return "Profiler";
|
|
666
|
+
case REACT_STRICT_MODE_TYPE:
|
|
667
|
+
return "StrictMode";
|
|
668
|
+
case REACT_SUSPENSE_TYPE:
|
|
669
|
+
return "Suspense";
|
|
670
|
+
case REACT_SUSPENSE_LIST_TYPE:
|
|
671
|
+
return "SuspenseList";
|
|
672
|
+
}
|
|
673
|
+
if (typeof type === "object") {
|
|
674
|
+
switch (type.$$typeof) {
|
|
675
|
+
case REACT_CONTEXT_TYPE:
|
|
676
|
+
var context = type;
|
|
677
|
+
return getContextName(context) + ".Consumer";
|
|
678
|
+
case REACT_PROVIDER_TYPE:
|
|
679
|
+
var provider = type;
|
|
680
|
+
return getContextName(provider._context) + ".Provider";
|
|
681
|
+
case REACT_FORWARD_REF_TYPE:
|
|
682
|
+
return getWrappedName(type, type.render, "ForwardRef");
|
|
683
|
+
case REACT_MEMO_TYPE:
|
|
684
|
+
var outerName = type.displayName || null;
|
|
685
|
+
if (outerName !== null) {
|
|
686
|
+
return outerName;
|
|
687
|
+
}
|
|
688
|
+
return getComponentNameFromType(type.type) || "Memo";
|
|
689
|
+
case REACT_LAZY_TYPE: {
|
|
690
|
+
var lazyComponent = type;
|
|
691
|
+
var payload = lazyComponent._payload;
|
|
692
|
+
var init = lazyComponent._init;
|
|
693
|
+
try {
|
|
694
|
+
return getComponentNameFromType(init(payload));
|
|
695
|
+
} catch (x) {
|
|
696
|
+
return null;
|
|
697
|
+
}
|
|
698
|
+
}
|
|
699
|
+
}
|
|
700
|
+
}
|
|
701
|
+
return null;
|
|
702
|
+
}
|
|
703
|
+
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
704
|
+
var RESERVED_PROPS = {
|
|
705
|
+
key: true,
|
|
706
|
+
ref: true,
|
|
707
|
+
__self: true,
|
|
708
|
+
__source: true
|
|
709
|
+
};
|
|
710
|
+
var specialPropKeyWarningShown, specialPropRefWarningShown, didWarnAboutStringRefs;
|
|
711
|
+
{
|
|
712
|
+
didWarnAboutStringRefs = {};
|
|
713
|
+
}
|
|
714
|
+
function hasValidRef(config) {
|
|
715
|
+
{
|
|
716
|
+
if (hasOwnProperty.call(config, "ref")) {
|
|
717
|
+
var getter = Object.getOwnPropertyDescriptor(config, "ref").get;
|
|
718
|
+
if (getter && getter.isReactWarning) {
|
|
719
|
+
return false;
|
|
720
|
+
}
|
|
721
|
+
}
|
|
722
|
+
}
|
|
723
|
+
return config.ref !== void 0;
|
|
724
|
+
}
|
|
725
|
+
function hasValidKey(config) {
|
|
726
|
+
{
|
|
727
|
+
if (hasOwnProperty.call(config, "key")) {
|
|
728
|
+
var getter = Object.getOwnPropertyDescriptor(config, "key").get;
|
|
729
|
+
if (getter && getter.isReactWarning) {
|
|
730
|
+
return false;
|
|
731
|
+
}
|
|
732
|
+
}
|
|
733
|
+
}
|
|
734
|
+
return config.key !== void 0;
|
|
735
|
+
}
|
|
736
|
+
function defineKeyPropWarningGetter(props, displayName) {
|
|
737
|
+
var warnAboutAccessingKey = function() {
|
|
738
|
+
{
|
|
739
|
+
if (!specialPropKeyWarningShown) {
|
|
740
|
+
specialPropKeyWarningShown = true;
|
|
741
|
+
error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", displayName);
|
|
742
|
+
}
|
|
743
|
+
}
|
|
744
|
+
};
|
|
745
|
+
warnAboutAccessingKey.isReactWarning = true;
|
|
746
|
+
Object.defineProperty(props, "key", {
|
|
747
|
+
get: warnAboutAccessingKey,
|
|
748
|
+
configurable: true
|
|
749
|
+
});
|
|
750
|
+
}
|
|
751
|
+
function defineRefPropWarningGetter(props, displayName) {
|
|
752
|
+
var warnAboutAccessingRef = function() {
|
|
753
|
+
{
|
|
754
|
+
if (!specialPropRefWarningShown) {
|
|
755
|
+
specialPropRefWarningShown = true;
|
|
756
|
+
error("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", displayName);
|
|
757
|
+
}
|
|
758
|
+
}
|
|
759
|
+
};
|
|
760
|
+
warnAboutAccessingRef.isReactWarning = true;
|
|
761
|
+
Object.defineProperty(props, "ref", {
|
|
762
|
+
get: warnAboutAccessingRef,
|
|
763
|
+
configurable: true
|
|
764
|
+
});
|
|
765
|
+
}
|
|
766
|
+
function warnIfStringRefCannotBeAutoConverted(config) {
|
|
767
|
+
{
|
|
768
|
+
if (typeof config.ref === "string" && ReactCurrentOwner.current && config.__self && ReactCurrentOwner.current.stateNode !== config.__self) {
|
|
769
|
+
var componentName = getComponentNameFromType(ReactCurrentOwner.current.type);
|
|
770
|
+
if (!didWarnAboutStringRefs[componentName]) {
|
|
771
|
+
error('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', componentName, config.ref);
|
|
772
|
+
didWarnAboutStringRefs[componentName] = true;
|
|
773
|
+
}
|
|
774
|
+
}
|
|
775
|
+
}
|
|
776
|
+
}
|
|
777
|
+
var ReactElement = function(type, key, ref, self, source, owner, props) {
|
|
778
|
+
var element = {
|
|
779
|
+
// This tag allows us to uniquely identify this as a React Element
|
|
780
|
+
$$typeof: REACT_ELEMENT_TYPE,
|
|
781
|
+
// Built-in properties that belong on the element
|
|
782
|
+
type,
|
|
783
|
+
key,
|
|
784
|
+
ref,
|
|
785
|
+
props,
|
|
786
|
+
// Record the component responsible for creating this element.
|
|
787
|
+
_owner: owner
|
|
788
|
+
};
|
|
789
|
+
{
|
|
790
|
+
element._store = {};
|
|
791
|
+
Object.defineProperty(element._store, "validated", {
|
|
792
|
+
configurable: false,
|
|
793
|
+
enumerable: false,
|
|
794
|
+
writable: true,
|
|
795
|
+
value: false
|
|
796
|
+
});
|
|
797
|
+
Object.defineProperty(element, "_self", {
|
|
798
|
+
configurable: false,
|
|
799
|
+
enumerable: false,
|
|
800
|
+
writable: false,
|
|
801
|
+
value: self
|
|
802
|
+
});
|
|
803
|
+
Object.defineProperty(element, "_source", {
|
|
804
|
+
configurable: false,
|
|
805
|
+
enumerable: false,
|
|
806
|
+
writable: false,
|
|
807
|
+
value: source
|
|
808
|
+
});
|
|
809
|
+
if (Object.freeze) {
|
|
810
|
+
Object.freeze(element.props);
|
|
811
|
+
Object.freeze(element);
|
|
812
|
+
}
|
|
813
|
+
}
|
|
814
|
+
return element;
|
|
815
|
+
};
|
|
816
|
+
function createElement(type, config, children) {
|
|
817
|
+
var propName;
|
|
818
|
+
var props = {};
|
|
819
|
+
var key = null;
|
|
820
|
+
var ref = null;
|
|
821
|
+
var self = null;
|
|
822
|
+
var source = null;
|
|
823
|
+
if (config != null) {
|
|
824
|
+
if (hasValidRef(config)) {
|
|
825
|
+
ref = config.ref;
|
|
826
|
+
{
|
|
827
|
+
warnIfStringRefCannotBeAutoConverted(config);
|
|
828
|
+
}
|
|
829
|
+
}
|
|
830
|
+
if (hasValidKey(config)) {
|
|
831
|
+
{
|
|
832
|
+
checkKeyStringCoercion(config.key);
|
|
833
|
+
}
|
|
834
|
+
key = "" + config.key;
|
|
835
|
+
}
|
|
836
|
+
self = config.__self === void 0 ? null : config.__self;
|
|
837
|
+
source = config.__source === void 0 ? null : config.__source;
|
|
838
|
+
for (propName in config) {
|
|
839
|
+
if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
|
|
840
|
+
props[propName] = config[propName];
|
|
841
|
+
}
|
|
842
|
+
}
|
|
843
|
+
}
|
|
844
|
+
var childrenLength = arguments.length - 2;
|
|
845
|
+
if (childrenLength === 1) {
|
|
846
|
+
props.children = children;
|
|
847
|
+
} else if (childrenLength > 1) {
|
|
848
|
+
var childArray = Array(childrenLength);
|
|
849
|
+
for (var i = 0; i < childrenLength; i++) {
|
|
850
|
+
childArray[i] = arguments[i + 2];
|
|
851
|
+
}
|
|
852
|
+
{
|
|
853
|
+
if (Object.freeze) {
|
|
854
|
+
Object.freeze(childArray);
|
|
855
|
+
}
|
|
856
|
+
}
|
|
857
|
+
props.children = childArray;
|
|
858
|
+
}
|
|
859
|
+
if (type && type.defaultProps) {
|
|
860
|
+
var defaultProps = type.defaultProps;
|
|
861
|
+
for (propName in defaultProps) {
|
|
862
|
+
if (props[propName] === void 0) {
|
|
863
|
+
props[propName] = defaultProps[propName];
|
|
864
|
+
}
|
|
865
|
+
}
|
|
866
|
+
}
|
|
867
|
+
{
|
|
868
|
+
if (key || ref) {
|
|
869
|
+
var displayName = typeof type === "function" ? type.displayName || type.name || "Unknown" : type;
|
|
870
|
+
if (key) {
|
|
871
|
+
defineKeyPropWarningGetter(props, displayName);
|
|
872
|
+
}
|
|
873
|
+
if (ref) {
|
|
874
|
+
defineRefPropWarningGetter(props, displayName);
|
|
875
|
+
}
|
|
876
|
+
}
|
|
877
|
+
}
|
|
878
|
+
return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
|
|
879
|
+
}
|
|
880
|
+
function cloneAndReplaceKey(oldElement, newKey) {
|
|
881
|
+
var newElement = ReactElement(oldElement.type, newKey, oldElement.ref, oldElement._self, oldElement._source, oldElement._owner, oldElement.props);
|
|
882
|
+
return newElement;
|
|
883
|
+
}
|
|
884
|
+
function cloneElement(element, config, children) {
|
|
885
|
+
if (element === null || element === void 0) {
|
|
886
|
+
throw new Error("React.cloneElement(...): The argument must be a React element, but you passed " + element + ".");
|
|
887
|
+
}
|
|
888
|
+
var propName;
|
|
889
|
+
var props = assign({}, element.props);
|
|
890
|
+
var key = element.key;
|
|
891
|
+
var ref = element.ref;
|
|
892
|
+
var self = element._self;
|
|
893
|
+
var source = element._source;
|
|
894
|
+
var owner = element._owner;
|
|
895
|
+
if (config != null) {
|
|
896
|
+
if (hasValidRef(config)) {
|
|
897
|
+
ref = config.ref;
|
|
898
|
+
owner = ReactCurrentOwner.current;
|
|
899
|
+
}
|
|
900
|
+
if (hasValidKey(config)) {
|
|
901
|
+
{
|
|
902
|
+
checkKeyStringCoercion(config.key);
|
|
903
|
+
}
|
|
904
|
+
key = "" + config.key;
|
|
905
|
+
}
|
|
906
|
+
var defaultProps;
|
|
907
|
+
if (element.type && element.type.defaultProps) {
|
|
908
|
+
defaultProps = element.type.defaultProps;
|
|
909
|
+
}
|
|
910
|
+
for (propName in config) {
|
|
911
|
+
if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
|
|
912
|
+
if (config[propName] === void 0 && defaultProps !== void 0) {
|
|
913
|
+
props[propName] = defaultProps[propName];
|
|
914
|
+
} else {
|
|
915
|
+
props[propName] = config[propName];
|
|
916
|
+
}
|
|
917
|
+
}
|
|
918
|
+
}
|
|
919
|
+
}
|
|
920
|
+
var childrenLength = arguments.length - 2;
|
|
921
|
+
if (childrenLength === 1) {
|
|
922
|
+
props.children = children;
|
|
923
|
+
} else if (childrenLength > 1) {
|
|
924
|
+
var childArray = Array(childrenLength);
|
|
925
|
+
for (var i = 0; i < childrenLength; i++) {
|
|
926
|
+
childArray[i] = arguments[i + 2];
|
|
927
|
+
}
|
|
928
|
+
props.children = childArray;
|
|
929
|
+
}
|
|
930
|
+
return ReactElement(element.type, key, ref, self, source, owner, props);
|
|
931
|
+
}
|
|
932
|
+
function isValidElement(object) {
|
|
933
|
+
return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
934
|
+
}
|
|
935
|
+
var SEPARATOR = ".";
|
|
936
|
+
var SUBSEPARATOR = ":";
|
|
937
|
+
function escape(key) {
|
|
938
|
+
var escapeRegex = /[=:]/g;
|
|
939
|
+
var escaperLookup = {
|
|
940
|
+
"=": "=0",
|
|
941
|
+
":": "=2"
|
|
942
|
+
};
|
|
943
|
+
var escapedString = key.replace(escapeRegex, function(match) {
|
|
944
|
+
return escaperLookup[match];
|
|
945
|
+
});
|
|
946
|
+
return "$" + escapedString;
|
|
947
|
+
}
|
|
948
|
+
var didWarnAboutMaps = false;
|
|
949
|
+
var userProvidedKeyEscapeRegex = /\/+/g;
|
|
950
|
+
function escapeUserProvidedKey(text) {
|
|
951
|
+
return text.replace(userProvidedKeyEscapeRegex, "$&/");
|
|
952
|
+
}
|
|
953
|
+
function getElementKey(element, index) {
|
|
954
|
+
if (typeof element === "object" && element !== null && element.key != null) {
|
|
955
|
+
{
|
|
956
|
+
checkKeyStringCoercion(element.key);
|
|
957
|
+
}
|
|
958
|
+
return escape("" + element.key);
|
|
959
|
+
}
|
|
960
|
+
return index.toString(36);
|
|
961
|
+
}
|
|
962
|
+
function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
|
|
963
|
+
var type = typeof children;
|
|
964
|
+
if (type === "undefined" || type === "boolean") {
|
|
965
|
+
children = null;
|
|
966
|
+
}
|
|
967
|
+
var invokeCallback = false;
|
|
968
|
+
if (children === null) {
|
|
969
|
+
invokeCallback = true;
|
|
970
|
+
} else {
|
|
971
|
+
switch (type) {
|
|
972
|
+
case "string":
|
|
973
|
+
case "number":
|
|
974
|
+
invokeCallback = true;
|
|
975
|
+
break;
|
|
976
|
+
case "object":
|
|
977
|
+
switch (children.$$typeof) {
|
|
978
|
+
case REACT_ELEMENT_TYPE:
|
|
979
|
+
case REACT_PORTAL_TYPE:
|
|
980
|
+
invokeCallback = true;
|
|
981
|
+
}
|
|
982
|
+
}
|
|
983
|
+
}
|
|
984
|
+
if (invokeCallback) {
|
|
985
|
+
var _child = children;
|
|
986
|
+
var mappedChild = callback(_child);
|
|
987
|
+
var childKey = nameSoFar === "" ? SEPARATOR + getElementKey(_child, 0) : nameSoFar;
|
|
988
|
+
if (isArray(mappedChild)) {
|
|
989
|
+
var escapedChildKey = "";
|
|
990
|
+
if (childKey != null) {
|
|
991
|
+
escapedChildKey = escapeUserProvidedKey(childKey) + "/";
|
|
992
|
+
}
|
|
993
|
+
mapIntoArray(mappedChild, array, escapedChildKey, "", function(c) {
|
|
994
|
+
return c;
|
|
995
|
+
});
|
|
996
|
+
} else if (mappedChild != null) {
|
|
997
|
+
if (isValidElement(mappedChild)) {
|
|
998
|
+
{
|
|
999
|
+
if (mappedChild.key && (!_child || _child.key !== mappedChild.key)) {
|
|
1000
|
+
checkKeyStringCoercion(mappedChild.key);
|
|
1001
|
+
}
|
|
1002
|
+
}
|
|
1003
|
+
mappedChild = cloneAndReplaceKey(
|
|
1004
|
+
mappedChild,
|
|
1005
|
+
// Keep both the (mapped) and old keys if they differ, just as
|
|
1006
|
+
// traverseAllChildren used to do for objects as children
|
|
1007
|
+
escapedPrefix + // $FlowFixMe Flow incorrectly thinks React.Portal doesn't have a key
|
|
1008
|
+
(mappedChild.key && (!_child || _child.key !== mappedChild.key) ? (
|
|
1009
|
+
// $FlowFixMe Flow incorrectly thinks existing element's key can be a number
|
|
1010
|
+
// eslint-disable-next-line react-internal/safe-string-coercion
|
|
1011
|
+
escapeUserProvidedKey("" + mappedChild.key) + "/"
|
|
1012
|
+
) : "") + childKey
|
|
1013
|
+
);
|
|
1014
|
+
}
|
|
1015
|
+
array.push(mappedChild);
|
|
1016
|
+
}
|
|
1017
|
+
return 1;
|
|
1018
|
+
}
|
|
1019
|
+
var child;
|
|
1020
|
+
var nextName;
|
|
1021
|
+
var subtreeCount = 0;
|
|
1022
|
+
var nextNamePrefix = nameSoFar === "" ? SEPARATOR : nameSoFar + SUBSEPARATOR;
|
|
1023
|
+
if (isArray(children)) {
|
|
1024
|
+
for (var i = 0; i < children.length; i++) {
|
|
1025
|
+
child = children[i];
|
|
1026
|
+
nextName = nextNamePrefix + getElementKey(child, i);
|
|
1027
|
+
subtreeCount += mapIntoArray(child, array, escapedPrefix, nextName, callback);
|
|
1028
|
+
}
|
|
1029
|
+
} else {
|
|
1030
|
+
var iteratorFn = getIteratorFn(children);
|
|
1031
|
+
if (typeof iteratorFn === "function") {
|
|
1032
|
+
var iterableChildren = children;
|
|
1033
|
+
{
|
|
1034
|
+
if (iteratorFn === iterableChildren.entries) {
|
|
1035
|
+
if (!didWarnAboutMaps) {
|
|
1036
|
+
warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead.");
|
|
1037
|
+
}
|
|
1038
|
+
didWarnAboutMaps = true;
|
|
1039
|
+
}
|
|
1040
|
+
}
|
|
1041
|
+
var iterator = iteratorFn.call(iterableChildren);
|
|
1042
|
+
var step;
|
|
1043
|
+
var ii = 0;
|
|
1044
|
+
while (!(step = iterator.next()).done) {
|
|
1045
|
+
child = step.value;
|
|
1046
|
+
nextName = nextNamePrefix + getElementKey(child, ii++);
|
|
1047
|
+
subtreeCount += mapIntoArray(child, array, escapedPrefix, nextName, callback);
|
|
1048
|
+
}
|
|
1049
|
+
} else if (type === "object") {
|
|
1050
|
+
var childrenString = String(children);
|
|
1051
|
+
throw new Error("Objects are not valid as a React child (found: " + (childrenString === "[object Object]" ? "object with keys {" + Object.keys(children).join(", ") + "}" : childrenString) + "). If you meant to render a collection of children, use an array instead.");
|
|
1052
|
+
}
|
|
1053
|
+
}
|
|
1054
|
+
return subtreeCount;
|
|
1055
|
+
}
|
|
1056
|
+
function mapChildren(children, func, context) {
|
|
1057
|
+
if (children == null) {
|
|
1058
|
+
return children;
|
|
1059
|
+
}
|
|
1060
|
+
var result = [];
|
|
1061
|
+
var count = 0;
|
|
1062
|
+
mapIntoArray(children, result, "", "", function(child) {
|
|
1063
|
+
return func.call(context, child, count++);
|
|
1064
|
+
});
|
|
1065
|
+
return result;
|
|
1066
|
+
}
|
|
1067
|
+
function countChildren(children) {
|
|
1068
|
+
var n = 0;
|
|
1069
|
+
mapChildren(children, function() {
|
|
1070
|
+
n++;
|
|
1071
|
+
});
|
|
1072
|
+
return n;
|
|
1073
|
+
}
|
|
1074
|
+
function forEachChildren(children, forEachFunc, forEachContext) {
|
|
1075
|
+
mapChildren(children, function() {
|
|
1076
|
+
forEachFunc.apply(this, arguments);
|
|
1077
|
+
}, forEachContext);
|
|
1078
|
+
}
|
|
1079
|
+
function toArray(children) {
|
|
1080
|
+
return mapChildren(children, function(child) {
|
|
1081
|
+
return child;
|
|
1082
|
+
}) || [];
|
|
1083
|
+
}
|
|
1084
|
+
function onlyChild(children) {
|
|
1085
|
+
if (!isValidElement(children)) {
|
|
1086
|
+
throw new Error("React.Children.only expected to receive a single React element child.");
|
|
1087
|
+
}
|
|
1088
|
+
return children;
|
|
1089
|
+
}
|
|
1090
|
+
function createContext(defaultValue) {
|
|
1091
|
+
var context = {
|
|
1092
|
+
$$typeof: REACT_CONTEXT_TYPE,
|
|
1093
|
+
// As a workaround to support multiple concurrent renderers, we categorize
|
|
1094
|
+
// some renderers as primary and others as secondary. We only expect
|
|
1095
|
+
// there to be two concurrent renderers at most: React Native (primary) and
|
|
1096
|
+
// Fabric (secondary); React DOM (primary) and React ART (secondary).
|
|
1097
|
+
// Secondary renderers store their context values on separate fields.
|
|
1098
|
+
_currentValue: defaultValue,
|
|
1099
|
+
_currentValue2: defaultValue,
|
|
1100
|
+
// Used to track how many concurrent renderers this context currently
|
|
1101
|
+
// supports within in a single renderer. Such as parallel server rendering.
|
|
1102
|
+
_threadCount: 0,
|
|
1103
|
+
// These are circular
|
|
1104
|
+
Provider: null,
|
|
1105
|
+
Consumer: null,
|
|
1106
|
+
// Add these to use same hidden class in VM as ServerContext
|
|
1107
|
+
_defaultValue: null,
|
|
1108
|
+
_globalName: null
|
|
1109
|
+
};
|
|
1110
|
+
context.Provider = {
|
|
1111
|
+
$$typeof: REACT_PROVIDER_TYPE,
|
|
1112
|
+
_context: context
|
|
1113
|
+
};
|
|
1114
|
+
var hasWarnedAboutUsingNestedContextConsumers = false;
|
|
1115
|
+
var hasWarnedAboutUsingConsumerProvider = false;
|
|
1116
|
+
var hasWarnedAboutDisplayNameOnConsumer = false;
|
|
1117
|
+
{
|
|
1118
|
+
var Consumer = {
|
|
1119
|
+
$$typeof: REACT_CONTEXT_TYPE,
|
|
1120
|
+
_context: context
|
|
1121
|
+
};
|
|
1122
|
+
Object.defineProperties(Consumer, {
|
|
1123
|
+
Provider: {
|
|
1124
|
+
get: function() {
|
|
1125
|
+
if (!hasWarnedAboutUsingConsumerProvider) {
|
|
1126
|
+
hasWarnedAboutUsingConsumerProvider = true;
|
|
1127
|
+
error("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?");
|
|
1128
|
+
}
|
|
1129
|
+
return context.Provider;
|
|
1130
|
+
},
|
|
1131
|
+
set: function(_Provider) {
|
|
1132
|
+
context.Provider = _Provider;
|
|
1133
|
+
}
|
|
1134
|
+
},
|
|
1135
|
+
_currentValue: {
|
|
1136
|
+
get: function() {
|
|
1137
|
+
return context._currentValue;
|
|
1138
|
+
},
|
|
1139
|
+
set: function(_currentValue) {
|
|
1140
|
+
context._currentValue = _currentValue;
|
|
1141
|
+
}
|
|
1142
|
+
},
|
|
1143
|
+
_currentValue2: {
|
|
1144
|
+
get: function() {
|
|
1145
|
+
return context._currentValue2;
|
|
1146
|
+
},
|
|
1147
|
+
set: function(_currentValue2) {
|
|
1148
|
+
context._currentValue2 = _currentValue2;
|
|
1149
|
+
}
|
|
1150
|
+
},
|
|
1151
|
+
_threadCount: {
|
|
1152
|
+
get: function() {
|
|
1153
|
+
return context._threadCount;
|
|
1154
|
+
},
|
|
1155
|
+
set: function(_threadCount) {
|
|
1156
|
+
context._threadCount = _threadCount;
|
|
1157
|
+
}
|
|
1158
|
+
},
|
|
1159
|
+
Consumer: {
|
|
1160
|
+
get: function() {
|
|
1161
|
+
if (!hasWarnedAboutUsingNestedContextConsumers) {
|
|
1162
|
+
hasWarnedAboutUsingNestedContextConsumers = true;
|
|
1163
|
+
error("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?");
|
|
1164
|
+
}
|
|
1165
|
+
return context.Consumer;
|
|
1166
|
+
}
|
|
1167
|
+
},
|
|
1168
|
+
displayName: {
|
|
1169
|
+
get: function() {
|
|
1170
|
+
return context.displayName;
|
|
1171
|
+
},
|
|
1172
|
+
set: function(displayName) {
|
|
1173
|
+
if (!hasWarnedAboutDisplayNameOnConsumer) {
|
|
1174
|
+
warn("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.", displayName);
|
|
1175
|
+
hasWarnedAboutDisplayNameOnConsumer = true;
|
|
1176
|
+
}
|
|
1177
|
+
}
|
|
1178
|
+
}
|
|
1179
|
+
});
|
|
1180
|
+
context.Consumer = Consumer;
|
|
1181
|
+
}
|
|
1182
|
+
{
|
|
1183
|
+
context._currentRenderer = null;
|
|
1184
|
+
context._currentRenderer2 = null;
|
|
1185
|
+
}
|
|
1186
|
+
return context;
|
|
1187
|
+
}
|
|
1188
|
+
var Uninitialized = -1;
|
|
1189
|
+
var Pending = 0;
|
|
1190
|
+
var Resolved = 1;
|
|
1191
|
+
var Rejected = 2;
|
|
1192
|
+
function lazyInitializer(payload) {
|
|
1193
|
+
if (payload._status === Uninitialized) {
|
|
1194
|
+
var ctor = payload._result;
|
|
1195
|
+
var thenable = ctor();
|
|
1196
|
+
thenable.then(function(moduleObject2) {
|
|
1197
|
+
if (payload._status === Pending || payload._status === Uninitialized) {
|
|
1198
|
+
var resolved = payload;
|
|
1199
|
+
resolved._status = Resolved;
|
|
1200
|
+
resolved._result = moduleObject2;
|
|
1201
|
+
}
|
|
1202
|
+
}, function(error2) {
|
|
1203
|
+
if (payload._status === Pending || payload._status === Uninitialized) {
|
|
1204
|
+
var rejected = payload;
|
|
1205
|
+
rejected._status = Rejected;
|
|
1206
|
+
rejected._result = error2;
|
|
1207
|
+
}
|
|
1208
|
+
});
|
|
1209
|
+
if (payload._status === Uninitialized) {
|
|
1210
|
+
var pending = payload;
|
|
1211
|
+
pending._status = Pending;
|
|
1212
|
+
pending._result = thenable;
|
|
1213
|
+
}
|
|
1214
|
+
}
|
|
1215
|
+
if (payload._status === Resolved) {
|
|
1216
|
+
var moduleObject = payload._result;
|
|
1217
|
+
{
|
|
1218
|
+
if (moduleObject === void 0) {
|
|
1219
|
+
error("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))\n\nDid you accidentally put curly braces around the import?", moduleObject);
|
|
1220
|
+
}
|
|
1221
|
+
}
|
|
1222
|
+
{
|
|
1223
|
+
if (!("default" in moduleObject)) {
|
|
1224
|
+
error("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))", moduleObject);
|
|
1225
|
+
}
|
|
1226
|
+
}
|
|
1227
|
+
return moduleObject.default;
|
|
1228
|
+
} else {
|
|
1229
|
+
throw payload._result;
|
|
1230
|
+
}
|
|
1231
|
+
}
|
|
1232
|
+
function lazy(ctor) {
|
|
1233
|
+
var payload = {
|
|
1234
|
+
// We use these fields to store the result.
|
|
1235
|
+
_status: Uninitialized,
|
|
1236
|
+
_result: ctor
|
|
1237
|
+
};
|
|
1238
|
+
var lazyType = {
|
|
1239
|
+
$$typeof: REACT_LAZY_TYPE,
|
|
1240
|
+
_payload: payload,
|
|
1241
|
+
_init: lazyInitializer
|
|
1242
|
+
};
|
|
1243
|
+
{
|
|
1244
|
+
var defaultProps;
|
|
1245
|
+
var propTypes;
|
|
1246
|
+
Object.defineProperties(lazyType, {
|
|
1247
|
+
defaultProps: {
|
|
1248
|
+
configurable: true,
|
|
1249
|
+
get: function() {
|
|
1250
|
+
return defaultProps;
|
|
1251
|
+
},
|
|
1252
|
+
set: function(newDefaultProps) {
|
|
1253
|
+
error("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it.");
|
|
1254
|
+
defaultProps = newDefaultProps;
|
|
1255
|
+
Object.defineProperty(lazyType, "defaultProps", {
|
|
1256
|
+
enumerable: true
|
|
1257
|
+
});
|
|
1258
|
+
}
|
|
1259
|
+
},
|
|
1260
|
+
propTypes: {
|
|
1261
|
+
configurable: true,
|
|
1262
|
+
get: function() {
|
|
1263
|
+
return propTypes;
|
|
1264
|
+
},
|
|
1265
|
+
set: function(newPropTypes) {
|
|
1266
|
+
error("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it.");
|
|
1267
|
+
propTypes = newPropTypes;
|
|
1268
|
+
Object.defineProperty(lazyType, "propTypes", {
|
|
1269
|
+
enumerable: true
|
|
1270
|
+
});
|
|
1271
|
+
}
|
|
1272
|
+
}
|
|
1273
|
+
});
|
|
1274
|
+
}
|
|
1275
|
+
return lazyType;
|
|
1276
|
+
}
|
|
1277
|
+
function forwardRef(render) {
|
|
1278
|
+
{
|
|
1279
|
+
if (render != null && render.$$typeof === REACT_MEMO_TYPE) {
|
|
1280
|
+
error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...)).");
|
|
1281
|
+
} else if (typeof render !== "function") {
|
|
1282
|
+
error("forwardRef requires a render function but was given %s.", render === null ? "null" : typeof render);
|
|
1283
|
+
} else {
|
|
1284
|
+
if (render.length !== 0 && render.length !== 2) {
|
|
1285
|
+
error("forwardRef render functions accept exactly two parameters: props and ref. %s", render.length === 1 ? "Did you forget to use the ref parameter?" : "Any additional parameter will be undefined.");
|
|
1286
|
+
}
|
|
1287
|
+
}
|
|
1288
|
+
if (render != null) {
|
|
1289
|
+
if (render.defaultProps != null || render.propTypes != null) {
|
|
1290
|
+
error("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");
|
|
1291
|
+
}
|
|
1292
|
+
}
|
|
1293
|
+
}
|
|
1294
|
+
var elementType = {
|
|
1295
|
+
$$typeof: REACT_FORWARD_REF_TYPE,
|
|
1296
|
+
render
|
|
1297
|
+
};
|
|
1298
|
+
{
|
|
1299
|
+
var ownName;
|
|
1300
|
+
Object.defineProperty(elementType, "displayName", {
|
|
1301
|
+
enumerable: false,
|
|
1302
|
+
configurable: true,
|
|
1303
|
+
get: function() {
|
|
1304
|
+
return ownName;
|
|
1305
|
+
},
|
|
1306
|
+
set: function(name) {
|
|
1307
|
+
ownName = name;
|
|
1308
|
+
if (!render.name && !render.displayName) {
|
|
1309
|
+
render.displayName = name;
|
|
1310
|
+
}
|
|
1311
|
+
}
|
|
1312
|
+
});
|
|
1313
|
+
}
|
|
1314
|
+
return elementType;
|
|
1315
|
+
}
|
|
1316
|
+
var REACT_MODULE_REFERENCE;
|
|
1317
|
+
{
|
|
1318
|
+
REACT_MODULE_REFERENCE = Symbol.for("react.module.reference");
|
|
1319
|
+
}
|
|
1320
|
+
function isValidElementType(type) {
|
|
1321
|
+
if (typeof type === "string" || typeof type === "function") {
|
|
1322
|
+
return true;
|
|
1323
|
+
}
|
|
1324
|
+
if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing) {
|
|
1325
|
+
return true;
|
|
1326
|
+
}
|
|
1327
|
+
if (typeof type === "object" && type !== null) {
|
|
1328
|
+
if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object
|
|
1329
|
+
// types supported by any Flight configuration anywhere since
|
|
1330
|
+
// we don't know which Flight build this will end up being used
|
|
1331
|
+
// with.
|
|
1332
|
+
type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== void 0) {
|
|
1333
|
+
return true;
|
|
1334
|
+
}
|
|
1335
|
+
}
|
|
1336
|
+
return false;
|
|
1337
|
+
}
|
|
1338
|
+
function memo(type, compare) {
|
|
1339
|
+
{
|
|
1340
|
+
if (!isValidElementType(type)) {
|
|
1341
|
+
error("memo: The first argument must be a component. Instead received: %s", type === null ? "null" : typeof type);
|
|
1342
|
+
}
|
|
1343
|
+
}
|
|
1344
|
+
var elementType = {
|
|
1345
|
+
$$typeof: REACT_MEMO_TYPE,
|
|
1346
|
+
type,
|
|
1347
|
+
compare: compare === void 0 ? null : compare
|
|
1348
|
+
};
|
|
1349
|
+
{
|
|
1350
|
+
var ownName;
|
|
1351
|
+
Object.defineProperty(elementType, "displayName", {
|
|
1352
|
+
enumerable: false,
|
|
1353
|
+
configurable: true,
|
|
1354
|
+
get: function() {
|
|
1355
|
+
return ownName;
|
|
1356
|
+
},
|
|
1357
|
+
set: function(name) {
|
|
1358
|
+
ownName = name;
|
|
1359
|
+
if (!type.name && !type.displayName) {
|
|
1360
|
+
type.displayName = name;
|
|
1361
|
+
}
|
|
1362
|
+
}
|
|
1363
|
+
});
|
|
1364
|
+
}
|
|
1365
|
+
return elementType;
|
|
1366
|
+
}
|
|
1367
|
+
function resolveDispatcher() {
|
|
1368
|
+
var dispatcher = ReactCurrentDispatcher.current;
|
|
1369
|
+
{
|
|
1370
|
+
if (dispatcher === null) {
|
|
1371
|
+
error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.");
|
|
1372
|
+
}
|
|
1373
|
+
}
|
|
1374
|
+
return dispatcher;
|
|
1375
|
+
}
|
|
1376
|
+
function useContext(Context) {
|
|
1377
|
+
var dispatcher = resolveDispatcher();
|
|
1378
|
+
{
|
|
1379
|
+
if (Context._context !== void 0) {
|
|
1380
|
+
var realContext = Context._context;
|
|
1381
|
+
if (realContext.Consumer === Context) {
|
|
1382
|
+
error("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?");
|
|
1383
|
+
} else if (realContext.Provider === Context) {
|
|
1384
|
+
error("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?");
|
|
1385
|
+
}
|
|
1386
|
+
}
|
|
1387
|
+
}
|
|
1388
|
+
return dispatcher.useContext(Context);
|
|
1389
|
+
}
|
|
1390
|
+
function useState(initialState) {
|
|
1391
|
+
var dispatcher = resolveDispatcher();
|
|
1392
|
+
return dispatcher.useState(initialState);
|
|
1393
|
+
}
|
|
1394
|
+
function useReducer(reducer, initialArg, init) {
|
|
1395
|
+
var dispatcher = resolveDispatcher();
|
|
1396
|
+
return dispatcher.useReducer(reducer, initialArg, init);
|
|
1397
|
+
}
|
|
1398
|
+
function useRef(initialValue) {
|
|
1399
|
+
var dispatcher = resolveDispatcher();
|
|
1400
|
+
return dispatcher.useRef(initialValue);
|
|
1401
|
+
}
|
|
1402
|
+
function useEffect(create, deps) {
|
|
1403
|
+
var dispatcher = resolveDispatcher();
|
|
1404
|
+
return dispatcher.useEffect(create, deps);
|
|
1405
|
+
}
|
|
1406
|
+
function useInsertionEffect(create, deps) {
|
|
1407
|
+
var dispatcher = resolveDispatcher();
|
|
1408
|
+
return dispatcher.useInsertionEffect(create, deps);
|
|
1409
|
+
}
|
|
1410
|
+
function useLayoutEffect(create, deps) {
|
|
1411
|
+
var dispatcher = resolveDispatcher();
|
|
1412
|
+
return dispatcher.useLayoutEffect(create, deps);
|
|
1413
|
+
}
|
|
1414
|
+
function useCallback(callback, deps) {
|
|
1415
|
+
var dispatcher = resolveDispatcher();
|
|
1416
|
+
return dispatcher.useCallback(callback, deps);
|
|
1417
|
+
}
|
|
1418
|
+
function useMemo(create, deps) {
|
|
1419
|
+
var dispatcher = resolveDispatcher();
|
|
1420
|
+
return dispatcher.useMemo(create, deps);
|
|
1421
|
+
}
|
|
1422
|
+
function useImperativeHandle(ref, create, deps) {
|
|
1423
|
+
var dispatcher = resolveDispatcher();
|
|
1424
|
+
return dispatcher.useImperativeHandle(ref, create, deps);
|
|
1425
|
+
}
|
|
1426
|
+
function useDebugValue(value, formatterFn) {
|
|
1427
|
+
{
|
|
1428
|
+
var dispatcher = resolveDispatcher();
|
|
1429
|
+
return dispatcher.useDebugValue(value, formatterFn);
|
|
1430
|
+
}
|
|
1431
|
+
}
|
|
1432
|
+
function useTransition() {
|
|
1433
|
+
var dispatcher = resolveDispatcher();
|
|
1434
|
+
return dispatcher.useTransition();
|
|
1435
|
+
}
|
|
1436
|
+
function useDeferredValue(value) {
|
|
1437
|
+
var dispatcher = resolveDispatcher();
|
|
1438
|
+
return dispatcher.useDeferredValue(value);
|
|
1439
|
+
}
|
|
1440
|
+
function useId() {
|
|
1441
|
+
var dispatcher = resolveDispatcher();
|
|
1442
|
+
return dispatcher.useId();
|
|
1443
|
+
}
|
|
1444
|
+
function useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) {
|
|
1445
|
+
var dispatcher = resolveDispatcher();
|
|
1446
|
+
return dispatcher.useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot);
|
|
1447
|
+
}
|
|
1448
|
+
var disabledDepth = 0;
|
|
1449
|
+
var prevLog;
|
|
1450
|
+
var prevInfo;
|
|
1451
|
+
var prevWarn;
|
|
1452
|
+
var prevError;
|
|
1453
|
+
var prevGroup;
|
|
1454
|
+
var prevGroupCollapsed;
|
|
1455
|
+
var prevGroupEnd;
|
|
1456
|
+
function disabledLog() {
|
|
1457
|
+
}
|
|
1458
|
+
disabledLog.__reactDisabledLog = true;
|
|
1459
|
+
function disableLogs() {
|
|
1460
|
+
{
|
|
1461
|
+
if (disabledDepth === 0) {
|
|
1462
|
+
prevLog = console.log;
|
|
1463
|
+
prevInfo = console.info;
|
|
1464
|
+
prevWarn = console.warn;
|
|
1465
|
+
prevError = console.error;
|
|
1466
|
+
prevGroup = console.group;
|
|
1467
|
+
prevGroupCollapsed = console.groupCollapsed;
|
|
1468
|
+
prevGroupEnd = console.groupEnd;
|
|
1469
|
+
var props = {
|
|
1470
|
+
configurable: true,
|
|
1471
|
+
enumerable: true,
|
|
1472
|
+
value: disabledLog,
|
|
1473
|
+
writable: true
|
|
1474
|
+
};
|
|
1475
|
+
Object.defineProperties(console, {
|
|
1476
|
+
info: props,
|
|
1477
|
+
log: props,
|
|
1478
|
+
warn: props,
|
|
1479
|
+
error: props,
|
|
1480
|
+
group: props,
|
|
1481
|
+
groupCollapsed: props,
|
|
1482
|
+
groupEnd: props
|
|
1483
|
+
});
|
|
1484
|
+
}
|
|
1485
|
+
disabledDepth++;
|
|
1486
|
+
}
|
|
1487
|
+
}
|
|
1488
|
+
function reenableLogs() {
|
|
1489
|
+
{
|
|
1490
|
+
disabledDepth--;
|
|
1491
|
+
if (disabledDepth === 0) {
|
|
1492
|
+
var props = {
|
|
1493
|
+
configurable: true,
|
|
1494
|
+
enumerable: true,
|
|
1495
|
+
writable: true
|
|
1496
|
+
};
|
|
1497
|
+
Object.defineProperties(console, {
|
|
1498
|
+
log: assign({}, props, {
|
|
1499
|
+
value: prevLog
|
|
1500
|
+
}),
|
|
1501
|
+
info: assign({}, props, {
|
|
1502
|
+
value: prevInfo
|
|
1503
|
+
}),
|
|
1504
|
+
warn: assign({}, props, {
|
|
1505
|
+
value: prevWarn
|
|
1506
|
+
}),
|
|
1507
|
+
error: assign({}, props, {
|
|
1508
|
+
value: prevError
|
|
1509
|
+
}),
|
|
1510
|
+
group: assign({}, props, {
|
|
1511
|
+
value: prevGroup
|
|
1512
|
+
}),
|
|
1513
|
+
groupCollapsed: assign({}, props, {
|
|
1514
|
+
value: prevGroupCollapsed
|
|
1515
|
+
}),
|
|
1516
|
+
groupEnd: assign({}, props, {
|
|
1517
|
+
value: prevGroupEnd
|
|
1518
|
+
})
|
|
1519
|
+
});
|
|
1520
|
+
}
|
|
1521
|
+
if (disabledDepth < 0) {
|
|
1522
|
+
error("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
1523
|
+
}
|
|
1524
|
+
}
|
|
1525
|
+
}
|
|
1526
|
+
var ReactCurrentDispatcher$1 = ReactSharedInternals.ReactCurrentDispatcher;
|
|
1527
|
+
var prefix;
|
|
1528
|
+
function describeBuiltInComponentFrame(name, source, ownerFn) {
|
|
1529
|
+
{
|
|
1530
|
+
if (prefix === void 0) {
|
|
1531
|
+
try {
|
|
1532
|
+
throw Error();
|
|
1533
|
+
} catch (x) {
|
|
1534
|
+
var match = x.stack.trim().match(/\n( *(at )?)/);
|
|
1535
|
+
prefix = match && match[1] || "";
|
|
1536
|
+
}
|
|
1537
|
+
}
|
|
1538
|
+
return "\n" + prefix + name;
|
|
1539
|
+
}
|
|
1540
|
+
}
|
|
1541
|
+
var reentry = false;
|
|
1542
|
+
var componentFrameCache;
|
|
1543
|
+
{
|
|
1544
|
+
var PossiblyWeakMap = typeof WeakMap === "function" ? WeakMap : Map;
|
|
1545
|
+
componentFrameCache = new PossiblyWeakMap();
|
|
1546
|
+
}
|
|
1547
|
+
function describeNativeComponentFrame(fn, construct) {
|
|
1548
|
+
if (!fn || reentry) {
|
|
1549
|
+
return "";
|
|
1550
|
+
}
|
|
1551
|
+
{
|
|
1552
|
+
var frame = componentFrameCache.get(fn);
|
|
1553
|
+
if (frame !== void 0) {
|
|
1554
|
+
return frame;
|
|
1555
|
+
}
|
|
1556
|
+
}
|
|
1557
|
+
var control;
|
|
1558
|
+
reentry = true;
|
|
1559
|
+
var previousPrepareStackTrace = Error.prepareStackTrace;
|
|
1560
|
+
Error.prepareStackTrace = void 0;
|
|
1561
|
+
var previousDispatcher;
|
|
1562
|
+
{
|
|
1563
|
+
previousDispatcher = ReactCurrentDispatcher$1.current;
|
|
1564
|
+
ReactCurrentDispatcher$1.current = null;
|
|
1565
|
+
disableLogs();
|
|
1566
|
+
}
|
|
1567
|
+
try {
|
|
1568
|
+
if (construct) {
|
|
1569
|
+
var Fake = function() {
|
|
1570
|
+
throw Error();
|
|
1571
|
+
};
|
|
1572
|
+
Object.defineProperty(Fake.prototype, "props", {
|
|
1573
|
+
set: function() {
|
|
1574
|
+
throw Error();
|
|
1575
|
+
}
|
|
1576
|
+
});
|
|
1577
|
+
if (typeof Reflect === "object" && Reflect.construct) {
|
|
1578
|
+
try {
|
|
1579
|
+
Reflect.construct(Fake, []);
|
|
1580
|
+
} catch (x) {
|
|
1581
|
+
control = x;
|
|
1582
|
+
}
|
|
1583
|
+
Reflect.construct(fn, [], Fake);
|
|
1584
|
+
} else {
|
|
1585
|
+
try {
|
|
1586
|
+
Fake.call();
|
|
1587
|
+
} catch (x) {
|
|
1588
|
+
control = x;
|
|
1589
|
+
}
|
|
1590
|
+
fn.call(Fake.prototype);
|
|
1591
|
+
}
|
|
1592
|
+
} else {
|
|
1593
|
+
try {
|
|
1594
|
+
throw Error();
|
|
1595
|
+
} catch (x) {
|
|
1596
|
+
control = x;
|
|
1597
|
+
}
|
|
1598
|
+
fn();
|
|
1599
|
+
}
|
|
1600
|
+
} catch (sample) {
|
|
1601
|
+
if (sample && control && typeof sample.stack === "string") {
|
|
1602
|
+
var sampleLines = sample.stack.split("\n");
|
|
1603
|
+
var controlLines = control.stack.split("\n");
|
|
1604
|
+
var s = sampleLines.length - 1;
|
|
1605
|
+
var c = controlLines.length - 1;
|
|
1606
|
+
while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {
|
|
1607
|
+
c--;
|
|
1608
|
+
}
|
|
1609
|
+
for (; s >= 1 && c >= 0; s--, c--) {
|
|
1610
|
+
if (sampleLines[s] !== controlLines[c]) {
|
|
1611
|
+
if (s !== 1 || c !== 1) {
|
|
1612
|
+
do {
|
|
1613
|
+
s--;
|
|
1614
|
+
c--;
|
|
1615
|
+
if (c < 0 || sampleLines[s] !== controlLines[c]) {
|
|
1616
|
+
var _frame = "\n" + sampleLines[s].replace(" at new ", " at ");
|
|
1617
|
+
if (fn.displayName && _frame.includes("<anonymous>")) {
|
|
1618
|
+
_frame = _frame.replace("<anonymous>", fn.displayName);
|
|
1619
|
+
}
|
|
1620
|
+
{
|
|
1621
|
+
if (typeof fn === "function") {
|
|
1622
|
+
componentFrameCache.set(fn, _frame);
|
|
1623
|
+
}
|
|
1624
|
+
}
|
|
1625
|
+
return _frame;
|
|
1626
|
+
}
|
|
1627
|
+
} while (s >= 1 && c >= 0);
|
|
1628
|
+
}
|
|
1629
|
+
break;
|
|
1630
|
+
}
|
|
1631
|
+
}
|
|
1632
|
+
}
|
|
1633
|
+
} finally {
|
|
1634
|
+
reentry = false;
|
|
1635
|
+
{
|
|
1636
|
+
ReactCurrentDispatcher$1.current = previousDispatcher;
|
|
1637
|
+
reenableLogs();
|
|
1638
|
+
}
|
|
1639
|
+
Error.prepareStackTrace = previousPrepareStackTrace;
|
|
1640
|
+
}
|
|
1641
|
+
var name = fn ? fn.displayName || fn.name : "";
|
|
1642
|
+
var syntheticFrame = name ? describeBuiltInComponentFrame(name) : "";
|
|
1643
|
+
{
|
|
1644
|
+
if (typeof fn === "function") {
|
|
1645
|
+
componentFrameCache.set(fn, syntheticFrame);
|
|
1646
|
+
}
|
|
1647
|
+
}
|
|
1648
|
+
return syntheticFrame;
|
|
1649
|
+
}
|
|
1650
|
+
function describeFunctionComponentFrame(fn, source, ownerFn) {
|
|
1651
|
+
{
|
|
1652
|
+
return describeNativeComponentFrame(fn, false);
|
|
1653
|
+
}
|
|
1654
|
+
}
|
|
1655
|
+
function shouldConstruct(Component2) {
|
|
1656
|
+
var prototype = Component2.prototype;
|
|
1657
|
+
return !!(prototype && prototype.isReactComponent);
|
|
1658
|
+
}
|
|
1659
|
+
function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
|
|
1660
|
+
if (type == null) {
|
|
1661
|
+
return "";
|
|
1662
|
+
}
|
|
1663
|
+
if (typeof type === "function") {
|
|
1664
|
+
{
|
|
1665
|
+
return describeNativeComponentFrame(type, shouldConstruct(type));
|
|
1666
|
+
}
|
|
1667
|
+
}
|
|
1668
|
+
if (typeof type === "string") {
|
|
1669
|
+
return describeBuiltInComponentFrame(type);
|
|
1670
|
+
}
|
|
1671
|
+
switch (type) {
|
|
1672
|
+
case REACT_SUSPENSE_TYPE:
|
|
1673
|
+
return describeBuiltInComponentFrame("Suspense");
|
|
1674
|
+
case REACT_SUSPENSE_LIST_TYPE:
|
|
1675
|
+
return describeBuiltInComponentFrame("SuspenseList");
|
|
1676
|
+
}
|
|
1677
|
+
if (typeof type === "object") {
|
|
1678
|
+
switch (type.$$typeof) {
|
|
1679
|
+
case REACT_FORWARD_REF_TYPE:
|
|
1680
|
+
return describeFunctionComponentFrame(type.render);
|
|
1681
|
+
case REACT_MEMO_TYPE:
|
|
1682
|
+
return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);
|
|
1683
|
+
case REACT_LAZY_TYPE: {
|
|
1684
|
+
var lazyComponent = type;
|
|
1685
|
+
var payload = lazyComponent._payload;
|
|
1686
|
+
var init = lazyComponent._init;
|
|
1687
|
+
try {
|
|
1688
|
+
return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
|
|
1689
|
+
} catch (x) {
|
|
1690
|
+
}
|
|
1691
|
+
}
|
|
1692
|
+
}
|
|
1693
|
+
}
|
|
1694
|
+
return "";
|
|
1695
|
+
}
|
|
1696
|
+
var loggedTypeFailures = {};
|
|
1697
|
+
var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
|
|
1698
|
+
function setCurrentlyValidatingElement(element) {
|
|
1699
|
+
{
|
|
1700
|
+
if (element) {
|
|
1701
|
+
var owner = element._owner;
|
|
1702
|
+
var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
|
|
1703
|
+
ReactDebugCurrentFrame$1.setExtraStackFrame(stack);
|
|
1704
|
+
} else {
|
|
1705
|
+
ReactDebugCurrentFrame$1.setExtraStackFrame(null);
|
|
1706
|
+
}
|
|
1707
|
+
}
|
|
1708
|
+
}
|
|
1709
|
+
function checkPropTypes(typeSpecs, values, location, componentName, element) {
|
|
1710
|
+
{
|
|
1711
|
+
var has = Function.call.bind(hasOwnProperty);
|
|
1712
|
+
for (var typeSpecName in typeSpecs) {
|
|
1713
|
+
if (has(typeSpecs, typeSpecName)) {
|
|
1714
|
+
var error$1 = void 0;
|
|
1715
|
+
try {
|
|
1716
|
+
if (typeof typeSpecs[typeSpecName] !== "function") {
|
|
1717
|
+
var err = Error((componentName || "React class") + ": " + location + " type `" + typeSpecName + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof typeSpecs[typeSpecName] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
1718
|
+
err.name = "Invariant Violation";
|
|
1719
|
+
throw err;
|
|
1720
|
+
}
|
|
1721
|
+
error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
1722
|
+
} catch (ex) {
|
|
1723
|
+
error$1 = ex;
|
|
1724
|
+
}
|
|
1725
|
+
if (error$1 && !(error$1 instanceof Error)) {
|
|
1726
|
+
setCurrentlyValidatingElement(element);
|
|
1727
|
+
error("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", componentName || "React class", location, typeSpecName, typeof error$1);
|
|
1728
|
+
setCurrentlyValidatingElement(null);
|
|
1729
|
+
}
|
|
1730
|
+
if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
|
|
1731
|
+
loggedTypeFailures[error$1.message] = true;
|
|
1732
|
+
setCurrentlyValidatingElement(element);
|
|
1733
|
+
error("Failed %s type: %s", location, error$1.message);
|
|
1734
|
+
setCurrentlyValidatingElement(null);
|
|
1735
|
+
}
|
|
1736
|
+
}
|
|
1737
|
+
}
|
|
1738
|
+
}
|
|
1739
|
+
}
|
|
1740
|
+
function setCurrentlyValidatingElement$1(element) {
|
|
1741
|
+
{
|
|
1742
|
+
if (element) {
|
|
1743
|
+
var owner = element._owner;
|
|
1744
|
+
var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
|
|
1745
|
+
setExtraStackFrame(stack);
|
|
1746
|
+
} else {
|
|
1747
|
+
setExtraStackFrame(null);
|
|
1748
|
+
}
|
|
1749
|
+
}
|
|
1750
|
+
}
|
|
1751
|
+
var propTypesMisspellWarningShown;
|
|
1752
|
+
{
|
|
1753
|
+
propTypesMisspellWarningShown = false;
|
|
1754
|
+
}
|
|
1755
|
+
function getDeclarationErrorAddendum() {
|
|
1756
|
+
if (ReactCurrentOwner.current) {
|
|
1757
|
+
var name = getComponentNameFromType(ReactCurrentOwner.current.type);
|
|
1758
|
+
if (name) {
|
|
1759
|
+
return "\n\nCheck the render method of `" + name + "`.";
|
|
1760
|
+
}
|
|
1761
|
+
}
|
|
1762
|
+
return "";
|
|
1763
|
+
}
|
|
1764
|
+
function getSourceInfoErrorAddendum(source) {
|
|
1765
|
+
if (source !== void 0) {
|
|
1766
|
+
var fileName = source.fileName.replace(/^.*[\\\/]/, "");
|
|
1767
|
+
var lineNumber = source.lineNumber;
|
|
1768
|
+
return "\n\nCheck your code at " + fileName + ":" + lineNumber + ".";
|
|
1769
|
+
}
|
|
1770
|
+
return "";
|
|
1771
|
+
}
|
|
1772
|
+
function getSourceInfoErrorAddendumForProps(elementProps) {
|
|
1773
|
+
if (elementProps !== null && elementProps !== void 0) {
|
|
1774
|
+
return getSourceInfoErrorAddendum(elementProps.__source);
|
|
1775
|
+
}
|
|
1776
|
+
return "";
|
|
1777
|
+
}
|
|
1778
|
+
var ownerHasKeyUseWarning = {};
|
|
1779
|
+
function getCurrentComponentErrorInfo(parentType) {
|
|
1780
|
+
var info = getDeclarationErrorAddendum();
|
|
1781
|
+
if (!info) {
|
|
1782
|
+
var parentName = typeof parentType === "string" ? parentType : parentType.displayName || parentType.name;
|
|
1783
|
+
if (parentName) {
|
|
1784
|
+
info = "\n\nCheck the top-level render call using <" + parentName + ">.";
|
|
1785
|
+
}
|
|
1786
|
+
}
|
|
1787
|
+
return info;
|
|
1788
|
+
}
|
|
1789
|
+
function validateExplicitKey(element, parentType) {
|
|
1790
|
+
if (!element._store || element._store.validated || element.key != null) {
|
|
1791
|
+
return;
|
|
1792
|
+
}
|
|
1793
|
+
element._store.validated = true;
|
|
1794
|
+
var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
|
|
1795
|
+
if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
|
|
1796
|
+
return;
|
|
1797
|
+
}
|
|
1798
|
+
ownerHasKeyUseWarning[currentComponentErrorInfo] = true;
|
|
1799
|
+
var childOwner = "";
|
|
1800
|
+
if (element && element._owner && element._owner !== ReactCurrentOwner.current) {
|
|
1801
|
+
childOwner = " It was passed a child from " + getComponentNameFromType(element._owner.type) + ".";
|
|
1802
|
+
}
|
|
1803
|
+
{
|
|
1804
|
+
setCurrentlyValidatingElement$1(element);
|
|
1805
|
+
error('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner);
|
|
1806
|
+
setCurrentlyValidatingElement$1(null);
|
|
1807
|
+
}
|
|
1808
|
+
}
|
|
1809
|
+
function validateChildKeys(node, parentType) {
|
|
1810
|
+
if (typeof node !== "object") {
|
|
1811
|
+
return;
|
|
1812
|
+
}
|
|
1813
|
+
if (isArray(node)) {
|
|
1814
|
+
for (var i = 0; i < node.length; i++) {
|
|
1815
|
+
var child = node[i];
|
|
1816
|
+
if (isValidElement(child)) {
|
|
1817
|
+
validateExplicitKey(child, parentType);
|
|
1818
|
+
}
|
|
1819
|
+
}
|
|
1820
|
+
} else if (isValidElement(node)) {
|
|
1821
|
+
if (node._store) {
|
|
1822
|
+
node._store.validated = true;
|
|
1823
|
+
}
|
|
1824
|
+
} else if (node) {
|
|
1825
|
+
var iteratorFn = getIteratorFn(node);
|
|
1826
|
+
if (typeof iteratorFn === "function") {
|
|
1827
|
+
if (iteratorFn !== node.entries) {
|
|
1828
|
+
var iterator = iteratorFn.call(node);
|
|
1829
|
+
var step;
|
|
1830
|
+
while (!(step = iterator.next()).done) {
|
|
1831
|
+
if (isValidElement(step.value)) {
|
|
1832
|
+
validateExplicitKey(step.value, parentType);
|
|
1833
|
+
}
|
|
1834
|
+
}
|
|
1835
|
+
}
|
|
1836
|
+
}
|
|
1837
|
+
}
|
|
1838
|
+
}
|
|
1839
|
+
function validatePropTypes(element) {
|
|
1840
|
+
{
|
|
1841
|
+
var type = element.type;
|
|
1842
|
+
if (type === null || type === void 0 || typeof type === "string") {
|
|
1843
|
+
return;
|
|
1844
|
+
}
|
|
1845
|
+
var propTypes;
|
|
1846
|
+
if (typeof type === "function") {
|
|
1847
|
+
propTypes = type.propTypes;
|
|
1848
|
+
} else if (typeof type === "object" && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.
|
|
1849
|
+
// Inner props are checked in the reconciler.
|
|
1850
|
+
type.$$typeof === REACT_MEMO_TYPE)) {
|
|
1851
|
+
propTypes = type.propTypes;
|
|
1852
|
+
} else {
|
|
1853
|
+
return;
|
|
1854
|
+
}
|
|
1855
|
+
if (propTypes) {
|
|
1856
|
+
var name = getComponentNameFromType(type);
|
|
1857
|
+
checkPropTypes(propTypes, element.props, "prop", name, element);
|
|
1858
|
+
} else if (type.PropTypes !== void 0 && !propTypesMisspellWarningShown) {
|
|
1859
|
+
propTypesMisspellWarningShown = true;
|
|
1860
|
+
var _name = getComponentNameFromType(type);
|
|
1861
|
+
error("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", _name || "Unknown");
|
|
1862
|
+
}
|
|
1863
|
+
if (typeof type.getDefaultProps === "function" && !type.getDefaultProps.isReactClassApproved) {
|
|
1864
|
+
error("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
1865
|
+
}
|
|
1866
|
+
}
|
|
1867
|
+
}
|
|
1868
|
+
function validateFragmentProps(fragment) {
|
|
1869
|
+
{
|
|
1870
|
+
var keys = Object.keys(fragment.props);
|
|
1871
|
+
for (var i = 0; i < keys.length; i++) {
|
|
1872
|
+
var key = keys[i];
|
|
1873
|
+
if (key !== "children" && key !== "key") {
|
|
1874
|
+
setCurrentlyValidatingElement$1(fragment);
|
|
1875
|
+
error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", key);
|
|
1876
|
+
setCurrentlyValidatingElement$1(null);
|
|
1877
|
+
break;
|
|
1878
|
+
}
|
|
1879
|
+
}
|
|
1880
|
+
if (fragment.ref !== null) {
|
|
1881
|
+
setCurrentlyValidatingElement$1(fragment);
|
|
1882
|
+
error("Invalid attribute `ref` supplied to `React.Fragment`.");
|
|
1883
|
+
setCurrentlyValidatingElement$1(null);
|
|
1884
|
+
}
|
|
1885
|
+
}
|
|
1886
|
+
}
|
|
1887
|
+
function createElementWithValidation(type, props, children) {
|
|
1888
|
+
var validType = isValidElementType(type);
|
|
1889
|
+
if (!validType) {
|
|
1890
|
+
var info = "";
|
|
1891
|
+
if (type === void 0 || typeof type === "object" && type !== null && Object.keys(type).length === 0) {
|
|
1892
|
+
info += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";
|
|
1893
|
+
}
|
|
1894
|
+
var sourceInfo = getSourceInfoErrorAddendumForProps(props);
|
|
1895
|
+
if (sourceInfo) {
|
|
1896
|
+
info += sourceInfo;
|
|
1897
|
+
} else {
|
|
1898
|
+
info += getDeclarationErrorAddendum();
|
|
1899
|
+
}
|
|
1900
|
+
var typeString;
|
|
1901
|
+
if (type === null) {
|
|
1902
|
+
typeString = "null";
|
|
1903
|
+
} else if (isArray(type)) {
|
|
1904
|
+
typeString = "array";
|
|
1905
|
+
} else if (type !== void 0 && type.$$typeof === REACT_ELEMENT_TYPE) {
|
|
1906
|
+
typeString = "<" + (getComponentNameFromType(type.type) || "Unknown") + " />";
|
|
1907
|
+
info = " Did you accidentally export a JSX literal instead of a component?";
|
|
1908
|
+
} else {
|
|
1909
|
+
typeString = typeof type;
|
|
1910
|
+
}
|
|
1911
|
+
{
|
|
1912
|
+
error("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", typeString, info);
|
|
1913
|
+
}
|
|
1914
|
+
}
|
|
1915
|
+
var element = createElement.apply(this, arguments);
|
|
1916
|
+
if (element == null) {
|
|
1917
|
+
return element;
|
|
1918
|
+
}
|
|
1919
|
+
if (validType) {
|
|
1920
|
+
for (var i = 2; i < arguments.length; i++) {
|
|
1921
|
+
validateChildKeys(arguments[i], type);
|
|
1922
|
+
}
|
|
1923
|
+
}
|
|
1924
|
+
if (type === REACT_FRAGMENT_TYPE) {
|
|
1925
|
+
validateFragmentProps(element);
|
|
1926
|
+
} else {
|
|
1927
|
+
validatePropTypes(element);
|
|
1928
|
+
}
|
|
1929
|
+
return element;
|
|
1930
|
+
}
|
|
1931
|
+
var didWarnAboutDeprecatedCreateFactory = false;
|
|
1932
|
+
function createFactoryWithValidation(type) {
|
|
1933
|
+
var validatedFactory = createElementWithValidation.bind(null, type);
|
|
1934
|
+
validatedFactory.type = type;
|
|
1935
|
+
{
|
|
1936
|
+
if (!didWarnAboutDeprecatedCreateFactory) {
|
|
1937
|
+
didWarnAboutDeprecatedCreateFactory = true;
|
|
1938
|
+
warn("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.");
|
|
1939
|
+
}
|
|
1940
|
+
Object.defineProperty(validatedFactory, "type", {
|
|
1941
|
+
enumerable: false,
|
|
1942
|
+
get: function() {
|
|
1943
|
+
warn("Factory.type is deprecated. Access the class directly before passing it to createFactory.");
|
|
1944
|
+
Object.defineProperty(this, "type", {
|
|
1945
|
+
value: type
|
|
1946
|
+
});
|
|
1947
|
+
return type;
|
|
1948
|
+
}
|
|
1949
|
+
});
|
|
1950
|
+
}
|
|
1951
|
+
return validatedFactory;
|
|
1952
|
+
}
|
|
1953
|
+
function cloneElementWithValidation(element, props, children) {
|
|
1954
|
+
var newElement = cloneElement.apply(this, arguments);
|
|
1955
|
+
for (var i = 2; i < arguments.length; i++) {
|
|
1956
|
+
validateChildKeys(arguments[i], newElement.type);
|
|
1957
|
+
}
|
|
1958
|
+
validatePropTypes(newElement);
|
|
1959
|
+
return newElement;
|
|
1960
|
+
}
|
|
1961
|
+
function startTransition(scope, options) {
|
|
1962
|
+
var prevTransition = ReactCurrentBatchConfig.transition;
|
|
1963
|
+
ReactCurrentBatchConfig.transition = {};
|
|
1964
|
+
var currentTransition = ReactCurrentBatchConfig.transition;
|
|
1965
|
+
{
|
|
1966
|
+
ReactCurrentBatchConfig.transition._updatedFibers = /* @__PURE__ */ new Set();
|
|
1967
|
+
}
|
|
1968
|
+
try {
|
|
1969
|
+
scope();
|
|
1970
|
+
} finally {
|
|
1971
|
+
ReactCurrentBatchConfig.transition = prevTransition;
|
|
1972
|
+
{
|
|
1973
|
+
if (prevTransition === null && currentTransition._updatedFibers) {
|
|
1974
|
+
var updatedFibersCount = currentTransition._updatedFibers.size;
|
|
1975
|
+
if (updatedFibersCount > 10) {
|
|
1976
|
+
warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.");
|
|
1977
|
+
}
|
|
1978
|
+
currentTransition._updatedFibers.clear();
|
|
1979
|
+
}
|
|
1980
|
+
}
|
|
1981
|
+
}
|
|
1982
|
+
}
|
|
1983
|
+
var didWarnAboutMessageChannel = false;
|
|
1984
|
+
var enqueueTaskImpl = null;
|
|
1985
|
+
function enqueueTask(task) {
|
|
1986
|
+
if (enqueueTaskImpl === null) {
|
|
1987
|
+
try {
|
|
1988
|
+
var requireString = ("require" + Math.random()).slice(0, 7);
|
|
1989
|
+
var nodeRequire = module2 && module2[requireString];
|
|
1990
|
+
enqueueTaskImpl = nodeRequire.call(module2, "timers").setImmediate;
|
|
1991
|
+
} catch (_err) {
|
|
1992
|
+
enqueueTaskImpl = function(callback) {
|
|
1993
|
+
{
|
|
1994
|
+
if (didWarnAboutMessageChannel === false) {
|
|
1995
|
+
didWarnAboutMessageChannel = true;
|
|
1996
|
+
if (typeof MessageChannel === "undefined") {
|
|
1997
|
+
error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning.");
|
|
1998
|
+
}
|
|
1999
|
+
}
|
|
2000
|
+
}
|
|
2001
|
+
var channel = new MessageChannel();
|
|
2002
|
+
channel.port1.onmessage = callback;
|
|
2003
|
+
channel.port2.postMessage(void 0);
|
|
2004
|
+
};
|
|
2005
|
+
}
|
|
2006
|
+
}
|
|
2007
|
+
return enqueueTaskImpl(task);
|
|
2008
|
+
}
|
|
2009
|
+
var actScopeDepth = 0;
|
|
2010
|
+
var didWarnNoAwaitAct = false;
|
|
2011
|
+
function act(callback) {
|
|
2012
|
+
{
|
|
2013
|
+
var prevActScopeDepth = actScopeDepth;
|
|
2014
|
+
actScopeDepth++;
|
|
2015
|
+
if (ReactCurrentActQueue.current === null) {
|
|
2016
|
+
ReactCurrentActQueue.current = [];
|
|
2017
|
+
}
|
|
2018
|
+
var prevIsBatchingLegacy = ReactCurrentActQueue.isBatchingLegacy;
|
|
2019
|
+
var result;
|
|
2020
|
+
try {
|
|
2021
|
+
ReactCurrentActQueue.isBatchingLegacy = true;
|
|
2022
|
+
result = callback();
|
|
2023
|
+
if (!prevIsBatchingLegacy && ReactCurrentActQueue.didScheduleLegacyUpdate) {
|
|
2024
|
+
var queue = ReactCurrentActQueue.current;
|
|
2025
|
+
if (queue !== null) {
|
|
2026
|
+
ReactCurrentActQueue.didScheduleLegacyUpdate = false;
|
|
2027
|
+
flushActQueue(queue);
|
|
2028
|
+
}
|
|
2029
|
+
}
|
|
2030
|
+
} catch (error2) {
|
|
2031
|
+
popActScope(prevActScopeDepth);
|
|
2032
|
+
throw error2;
|
|
2033
|
+
} finally {
|
|
2034
|
+
ReactCurrentActQueue.isBatchingLegacy = prevIsBatchingLegacy;
|
|
2035
|
+
}
|
|
2036
|
+
if (result !== null && typeof result === "object" && typeof result.then === "function") {
|
|
2037
|
+
var thenableResult = result;
|
|
2038
|
+
var wasAwaited = false;
|
|
2039
|
+
var thenable = {
|
|
2040
|
+
then: function(resolve, reject) {
|
|
2041
|
+
wasAwaited = true;
|
|
2042
|
+
thenableResult.then(function(returnValue2) {
|
|
2043
|
+
popActScope(prevActScopeDepth);
|
|
2044
|
+
if (actScopeDepth === 0) {
|
|
2045
|
+
recursivelyFlushAsyncActWork(returnValue2, resolve, reject);
|
|
2046
|
+
} else {
|
|
2047
|
+
resolve(returnValue2);
|
|
2048
|
+
}
|
|
2049
|
+
}, function(error2) {
|
|
2050
|
+
popActScope(prevActScopeDepth);
|
|
2051
|
+
reject(error2);
|
|
2052
|
+
});
|
|
2053
|
+
}
|
|
2054
|
+
};
|
|
2055
|
+
{
|
|
2056
|
+
if (!didWarnNoAwaitAct && typeof Promise !== "undefined") {
|
|
2057
|
+
Promise.resolve().then(function() {
|
|
2058
|
+
}).then(function() {
|
|
2059
|
+
if (!wasAwaited) {
|
|
2060
|
+
didWarnNoAwaitAct = true;
|
|
2061
|
+
error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);");
|
|
2062
|
+
}
|
|
2063
|
+
});
|
|
2064
|
+
}
|
|
2065
|
+
}
|
|
2066
|
+
return thenable;
|
|
2067
|
+
} else {
|
|
2068
|
+
var returnValue = result;
|
|
2069
|
+
popActScope(prevActScopeDepth);
|
|
2070
|
+
if (actScopeDepth === 0) {
|
|
2071
|
+
var _queue = ReactCurrentActQueue.current;
|
|
2072
|
+
if (_queue !== null) {
|
|
2073
|
+
flushActQueue(_queue);
|
|
2074
|
+
ReactCurrentActQueue.current = null;
|
|
2075
|
+
}
|
|
2076
|
+
var _thenable = {
|
|
2077
|
+
then: function(resolve, reject) {
|
|
2078
|
+
if (ReactCurrentActQueue.current === null) {
|
|
2079
|
+
ReactCurrentActQueue.current = [];
|
|
2080
|
+
recursivelyFlushAsyncActWork(returnValue, resolve, reject);
|
|
2081
|
+
} else {
|
|
2082
|
+
resolve(returnValue);
|
|
2083
|
+
}
|
|
2084
|
+
}
|
|
2085
|
+
};
|
|
2086
|
+
return _thenable;
|
|
2087
|
+
} else {
|
|
2088
|
+
var _thenable2 = {
|
|
2089
|
+
then: function(resolve, reject) {
|
|
2090
|
+
resolve(returnValue);
|
|
2091
|
+
}
|
|
2092
|
+
};
|
|
2093
|
+
return _thenable2;
|
|
2094
|
+
}
|
|
2095
|
+
}
|
|
2096
|
+
}
|
|
2097
|
+
}
|
|
2098
|
+
function popActScope(prevActScopeDepth) {
|
|
2099
|
+
{
|
|
2100
|
+
if (prevActScopeDepth !== actScopeDepth - 1) {
|
|
2101
|
+
error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. ");
|
|
2102
|
+
}
|
|
2103
|
+
actScopeDepth = prevActScopeDepth;
|
|
2104
|
+
}
|
|
2105
|
+
}
|
|
2106
|
+
function recursivelyFlushAsyncActWork(returnValue, resolve, reject) {
|
|
2107
|
+
{
|
|
2108
|
+
var queue = ReactCurrentActQueue.current;
|
|
2109
|
+
if (queue !== null) {
|
|
2110
|
+
try {
|
|
2111
|
+
flushActQueue(queue);
|
|
2112
|
+
enqueueTask(function() {
|
|
2113
|
+
if (queue.length === 0) {
|
|
2114
|
+
ReactCurrentActQueue.current = null;
|
|
2115
|
+
resolve(returnValue);
|
|
2116
|
+
} else {
|
|
2117
|
+
recursivelyFlushAsyncActWork(returnValue, resolve, reject);
|
|
2118
|
+
}
|
|
2119
|
+
});
|
|
2120
|
+
} catch (error2) {
|
|
2121
|
+
reject(error2);
|
|
2122
|
+
}
|
|
2123
|
+
} else {
|
|
2124
|
+
resolve(returnValue);
|
|
2125
|
+
}
|
|
2126
|
+
}
|
|
2127
|
+
}
|
|
2128
|
+
var isFlushing = false;
|
|
2129
|
+
function flushActQueue(queue) {
|
|
2130
|
+
{
|
|
2131
|
+
if (!isFlushing) {
|
|
2132
|
+
isFlushing = true;
|
|
2133
|
+
var i = 0;
|
|
2134
|
+
try {
|
|
2135
|
+
for (; i < queue.length; i++) {
|
|
2136
|
+
var callback = queue[i];
|
|
2137
|
+
do {
|
|
2138
|
+
callback = callback(true);
|
|
2139
|
+
} while (callback !== null);
|
|
2140
|
+
}
|
|
2141
|
+
queue.length = 0;
|
|
2142
|
+
} catch (error2) {
|
|
2143
|
+
queue = queue.slice(i + 1);
|
|
2144
|
+
throw error2;
|
|
2145
|
+
} finally {
|
|
2146
|
+
isFlushing = false;
|
|
2147
|
+
}
|
|
2148
|
+
}
|
|
2149
|
+
}
|
|
2150
|
+
}
|
|
2151
|
+
var createElement$1 = createElementWithValidation;
|
|
2152
|
+
var cloneElement$1 = cloneElementWithValidation;
|
|
2153
|
+
var createFactory = createFactoryWithValidation;
|
|
2154
|
+
var Children = {
|
|
2155
|
+
map: mapChildren,
|
|
2156
|
+
forEach: forEachChildren,
|
|
2157
|
+
count: countChildren,
|
|
2158
|
+
toArray,
|
|
2159
|
+
only: onlyChild
|
|
2160
|
+
};
|
|
2161
|
+
exports.Children = Children;
|
|
2162
|
+
exports.Component = Component;
|
|
2163
|
+
exports.Fragment = REACT_FRAGMENT_TYPE;
|
|
2164
|
+
exports.Profiler = REACT_PROFILER_TYPE;
|
|
2165
|
+
exports.PureComponent = PureComponent;
|
|
2166
|
+
exports.StrictMode = REACT_STRICT_MODE_TYPE;
|
|
2167
|
+
exports.Suspense = REACT_SUSPENSE_TYPE;
|
|
2168
|
+
exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ReactSharedInternals;
|
|
2169
|
+
exports.act = act;
|
|
2170
|
+
exports.cloneElement = cloneElement$1;
|
|
2171
|
+
exports.createContext = createContext;
|
|
2172
|
+
exports.createElement = createElement$1;
|
|
2173
|
+
exports.createFactory = createFactory;
|
|
2174
|
+
exports.createRef = createRef;
|
|
2175
|
+
exports.forwardRef = forwardRef;
|
|
2176
|
+
exports.isValidElement = isValidElement;
|
|
2177
|
+
exports.lazy = lazy;
|
|
2178
|
+
exports.memo = memo;
|
|
2179
|
+
exports.startTransition = startTransition;
|
|
2180
|
+
exports.unstable_act = act;
|
|
2181
|
+
exports.useCallback = useCallback;
|
|
2182
|
+
exports.useContext = useContext;
|
|
2183
|
+
exports.useDebugValue = useDebugValue;
|
|
2184
|
+
exports.useDeferredValue = useDeferredValue;
|
|
2185
|
+
exports.useEffect = useEffect;
|
|
2186
|
+
exports.useId = useId;
|
|
2187
|
+
exports.useImperativeHandle = useImperativeHandle;
|
|
2188
|
+
exports.useInsertionEffect = useInsertionEffect;
|
|
2189
|
+
exports.useLayoutEffect = useLayoutEffect;
|
|
2190
|
+
exports.useMemo = useMemo;
|
|
2191
|
+
exports.useReducer = useReducer;
|
|
2192
|
+
exports.useRef = useRef;
|
|
2193
|
+
exports.useState = useState;
|
|
2194
|
+
exports.useSyncExternalStore = useSyncExternalStore;
|
|
2195
|
+
exports.useTransition = useTransition;
|
|
2196
|
+
exports.version = ReactVersion;
|
|
2197
|
+
if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop === "function") {
|
|
2198
|
+
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
|
|
2199
|
+
}
|
|
2200
|
+
})();
|
|
2201
|
+
}
|
|
2202
|
+
}
|
|
2203
|
+
});
|
|
2204
|
+
|
|
2205
|
+
// ../../node_modules/.pnpm/react@18.3.1/node_modules/react/index.js
|
|
2206
|
+
var require_react = __commonJS({
|
|
2207
|
+
"../../node_modules/.pnpm/react@18.3.1/node_modules/react/index.js"(exports, module2) {
|
|
2208
|
+
"use strict";
|
|
2209
|
+
if (process.env.NODE_ENV === "production") {
|
|
2210
|
+
module2.exports = require_react_production_min();
|
|
2211
|
+
} else {
|
|
2212
|
+
module2.exports = require_react_development();
|
|
2213
|
+
}
|
|
2214
|
+
}
|
|
2215
|
+
});
|
|
2216
|
+
|
|
2217
|
+
// src/index.js
|
|
2218
|
+
var src_exports = {};
|
|
2219
|
+
__export(src_exports, {
|
|
2220
|
+
AbsintheGlass: () => AbsintheGlass,
|
|
2221
|
+
BrandySnifterGlass: () => BrandySnifterGlass,
|
|
2222
|
+
CollinsGlass: () => CollinsGlass,
|
|
2223
|
+
CopperMug: () => CopperMug,
|
|
2224
|
+
CordialGlass: () => CordialGlass,
|
|
2225
|
+
CoupeGlass: () => CoupeGlass,
|
|
2226
|
+
DemitasseGlass: () => DemitasseGlass,
|
|
2227
|
+
DoubleShotGlass: () => DoubleShotGlass,
|
|
2228
|
+
FizzGlass: () => FizzGlass,
|
|
2229
|
+
FluteGlass: () => FluteGlass,
|
|
2230
|
+
GobletGlass: () => GobletGlass,
|
|
2231
|
+
HighballGlass: () => HighballGlass,
|
|
2232
|
+
HurricaneGlass: () => HurricaneGlass,
|
|
2233
|
+
IrishCoffeeGlass: () => IrishCoffeeGlass,
|
|
2234
|
+
JulepCup: () => JulepCup,
|
|
2235
|
+
Liquid: () => Liquid,
|
|
2236
|
+
MargaritaGlass: () => MargaritaGlass,
|
|
2237
|
+
MartiniGlass: () => MartiniGlass,
|
|
2238
|
+
NickAndNoraGlass: () => NickAndNoraGlass,
|
|
2239
|
+
ParfaitGlass: () => ParfaitGlass,
|
|
2240
|
+
PilsnerGlass: () => PilsnerGlass,
|
|
2241
|
+
PintGlass: () => PintGlass,
|
|
2242
|
+
PousseCafeGlass: () => PousseCafeGlass,
|
|
2243
|
+
PunchGlass: () => PunchGlass,
|
|
2244
|
+
RocksGlass: () => RocksGlass,
|
|
2245
|
+
SingleShotGlass: () => SingleShotGlass,
|
|
2246
|
+
SlingGlass: () => SlingGlass,
|
|
2247
|
+
SnifterGlass: () => SnifterGlass,
|
|
2248
|
+
SourGlass: () => SourGlass,
|
|
2249
|
+
TankardGlass: () => TankardGlass,
|
|
2250
|
+
TikiGlass: () => TikiGlass,
|
|
2251
|
+
ToddyGlass: () => ToddyGlass,
|
|
2252
|
+
WhiskeyShotGlass: () => WhiskeyShotGlass,
|
|
2253
|
+
WineGlass: () => WineGlass,
|
|
2254
|
+
default: () => src_default
|
|
2255
|
+
});
|
|
2256
|
+
module.exports = __toCommonJS(src_exports);
|
|
2257
|
+
|
|
2258
|
+
// src/components/Liquid.jsx
|
|
2259
|
+
var import_react = __toESM(require_react());
|
|
2260
|
+
function Liquid({
|
|
2261
|
+
d,
|
|
2262
|
+
transform,
|
|
2263
|
+
liquidFill = null,
|
|
2264
|
+
liquidStyle = null,
|
|
2265
|
+
gradientAttr = null,
|
|
2266
|
+
opacity = 0.7,
|
|
2267
|
+
idBase = "liquidGrad",
|
|
2268
|
+
// highlight mode: 'liquid' | 'ice' | 'all' | falsy
|
|
2269
|
+
highlight = null,
|
|
2270
|
+
// highlight color for the top stop when highlight targets the liquid
|
|
2271
|
+
highlightColor = "#fff7c0",
|
|
2272
|
+
// level: 0..1 vertical span of the gradient (1 = full height)
|
|
2273
|
+
level = 1,
|
|
2274
|
+
// optional explicit stop positions (array of 0..1) matching gradStops length
|
|
2275
|
+
stopPositions = null
|
|
2276
|
+
}) {
|
|
2277
|
+
let useExternal = false;
|
|
2278
|
+
let stops = null;
|
|
2279
|
+
if (typeof gradientAttr === "string") {
|
|
2280
|
+
const trimmed = gradientAttr.trim();
|
|
2281
|
+
if (trimmed.startsWith("#"))
|
|
2282
|
+
useExternal = true;
|
|
2283
|
+
else if (trimmed.startsWith("[")) {
|
|
2284
|
+
try {
|
|
2285
|
+
stops = JSON.parse(trimmed);
|
|
2286
|
+
} catch (e) {
|
|
2287
|
+
stops = null;
|
|
2288
|
+
}
|
|
2289
|
+
} else {
|
|
2290
|
+
stops = [trimmed];
|
|
2291
|
+
}
|
|
2292
|
+
} else if (Array.isArray(gradientAttr))
|
|
2293
|
+
stops = gradientAttr;
|
|
2294
|
+
if (!stops || !stops.length) {
|
|
2295
|
+
if (liquidFill) {
|
|
2296
|
+
stops = Array.isArray(liquidFill) ? liquidFill : [liquidFill];
|
|
2297
|
+
} else {
|
|
2298
|
+
stops = ["#93d3d8"];
|
|
2299
|
+
}
|
|
2300
|
+
}
|
|
2301
|
+
const shouldHighlightLiquid = highlight === "liquid" || highlight === "all";
|
|
2302
|
+
const gradStops = shouldHighlightLiquid ? [highlightColor, ...stops] : [...stops];
|
|
2303
|
+
let offsets;
|
|
2304
|
+
if (Array.isArray(stopPositions) && stopPositions.length === gradStops.length) {
|
|
2305
|
+
offsets = stopPositions.map((s) => {
|
|
2306
|
+
const n = Number(s) || 0;
|
|
2307
|
+
return Math.round(Math.max(0, Math.min(1, n)) * 100);
|
|
2308
|
+
});
|
|
2309
|
+
} else {
|
|
2310
|
+
const levelVal = Math.max(0, Math.min(1, Number(level) || 0));
|
|
2311
|
+
const base = 1 - levelVal;
|
|
2312
|
+
if (gradStops.length === 1)
|
|
2313
|
+
offsets = [100];
|
|
2314
|
+
else
|
|
2315
|
+
offsets = gradStops.map((_, i) => {
|
|
2316
|
+
const frac = i / Math.max(1, gradStops.length - 1);
|
|
2317
|
+
return Math.round((base + frac * levelVal) * 100);
|
|
2318
|
+
});
|
|
2319
|
+
}
|
|
2320
|
+
const localId = idBase;
|
|
2321
|
+
return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, !useExternal && /* @__PURE__ */ import_react.default.createElement("defs", null, /* @__PURE__ */ import_react.default.createElement("linearGradient", { id: localId, x1: "0", y1: "0", x2: "0", y2: "1" }, gradStops.map((c, i) => /* @__PURE__ */ import_react.default.createElement(
|
|
2322
|
+
"stop",
|
|
2323
|
+
{
|
|
2324
|
+
key: i,
|
|
2325
|
+
offset: `${offsets[i]}%`,
|
|
2326
|
+
stopColor: c,
|
|
2327
|
+
stopOpacity: 1
|
|
2328
|
+
}
|
|
2329
|
+
)))), /* @__PURE__ */ import_react.default.createElement(
|
|
2330
|
+
"path",
|
|
2331
|
+
{
|
|
2332
|
+
d,
|
|
2333
|
+
transform,
|
|
2334
|
+
className: "liquid",
|
|
2335
|
+
style: liquidStyle || void 0,
|
|
2336
|
+
fill: liquidStyle ? void 0 : useExternal ? `url(${gradientAttr})` : `url(#${localId})`,
|
|
2337
|
+
opacity
|
|
2338
|
+
}
|
|
2339
|
+
));
|
|
2340
|
+
}
|
|
2341
|
+
|
|
2342
|
+
// src/components/glasses/AbsintheGlass.jsx
|
|
2343
|
+
var import_react2 = __toESM(require_react());
|
|
2344
|
+
function AbsintheGlass({
|
|
2345
|
+
liquidFill = ["#A8E6CF", "#DCEDC2", "#FFD3B6"],
|
|
2346
|
+
size = 80,
|
|
2347
|
+
strokeWidth = 0.5
|
|
2348
|
+
}) {
|
|
2349
|
+
const height = Math.floor(size * 1.125);
|
|
2350
|
+
return /* @__PURE__ */ import_react2.default.createElement("svg", { width: size, height, viewBox: "0 0 64 90" }, /* @__PURE__ */ import_react2.default.createElement(
|
|
2351
|
+
Liquid,
|
|
2352
|
+
{
|
|
2353
|
+
d: `M20 35 L44 35 L42 49 Q32 52 22 49 Z
|
|
2354
|
+
M26 50 Q32 50 38 50 L36 60 L28 60 Z`,
|
|
2355
|
+
transform: "scale(0.98)",
|
|
2356
|
+
idBase: "AbsintheGlassGrad",
|
|
2357
|
+
opacity: 0.7,
|
|
2358
|
+
liquidFill
|
|
2359
|
+
}
|
|
2360
|
+
), /* @__PURE__ */ import_react2.default.createElement(
|
|
2361
|
+
"path",
|
|
2362
|
+
{
|
|
2363
|
+
d: `M20 35 L44 35 L42 49 Q32 52 22 49 Z
|
|
2364
|
+
M26 50 Q32 50 38 50 L36 60 L28 60 Z`,
|
|
2365
|
+
stroke: "currentColor",
|
|
2366
|
+
strokeWidth,
|
|
2367
|
+
fill: "none"
|
|
2368
|
+
}
|
|
2369
|
+
), /* @__PURE__ */ import_react2.default.createElement(
|
|
2370
|
+
"rect",
|
|
2371
|
+
{
|
|
2372
|
+
x: 31,
|
|
2373
|
+
y: 60,
|
|
2374
|
+
width: 2,
|
|
2375
|
+
height: 16,
|
|
2376
|
+
fill: "black",
|
|
2377
|
+
stroke: "currentColor",
|
|
2378
|
+
strokeWidth
|
|
2379
|
+
}
|
|
2380
|
+
), /* @__PURE__ */ import_react2.default.createElement(
|
|
2381
|
+
"path",
|
|
2382
|
+
{
|
|
2383
|
+
d: " M24 77 Q32 76 40 77 L40 77 L24 77 Z ",
|
|
2384
|
+
fill: "currentColor",
|
|
2385
|
+
stroke: "currentColor",
|
|
2386
|
+
strokeWidth,
|
|
2387
|
+
rx: strokeWidth
|
|
2388
|
+
}
|
|
2389
|
+
));
|
|
2390
|
+
}
|
|
2391
|
+
|
|
2392
|
+
// src/components/glasses/BrandySnifterGlass.jsx
|
|
2393
|
+
var import_react3 = __toESM(require_react());
|
|
2394
|
+
function BrandySnifterGlass({
|
|
2395
|
+
liquidFill = ["#F6D29A", "#D98F3A"],
|
|
2396
|
+
strokeWidth = 1
|
|
2397
|
+
}) {
|
|
2398
|
+
return /* @__PURE__ */ import_react3.default.createElement("svg", { viewBox: "0 0 64 64" }, /* @__PURE__ */ import_react3.default.createElement(
|
|
2399
|
+
Liquid,
|
|
2400
|
+
{
|
|
2401
|
+
d: `M22 28
|
|
2402
|
+
L42 28
|
|
2403
|
+
L44 48
|
|
2404
|
+
Q32 52 20 48
|
|
2405
|
+
Z`,
|
|
2406
|
+
transform: "scale(0.98)",
|
|
2407
|
+
idBase: "BrandySnifterGlassGrad",
|
|
2408
|
+
opacity: 0.7,
|
|
2409
|
+
liquidFill
|
|
2410
|
+
}
|
|
2411
|
+
), /* @__PURE__ */ import_react3.default.createElement(
|
|
2412
|
+
"path",
|
|
2413
|
+
{
|
|
2414
|
+
d: "\n M22 28 \n L42 28 \n L44 48 \n Q32 52 20 48 \n Z\n ",
|
|
2415
|
+
fill: "none",
|
|
2416
|
+
stroke: "currentColor",
|
|
2417
|
+
strokeWidth
|
|
2418
|
+
}
|
|
2419
|
+
), /* @__PURE__ */ import_react3.default.createElement(
|
|
2420
|
+
"line",
|
|
2421
|
+
{
|
|
2422
|
+
x1: 22,
|
|
2423
|
+
y1: 28,
|
|
2424
|
+
x2: 42,
|
|
2425
|
+
y2: 28,
|
|
2426
|
+
stroke: "currentColor",
|
|
2427
|
+
strokeWidth
|
|
2428
|
+
}
|
|
2429
|
+
), /* @__PURE__ */ import_react3.default.createElement(
|
|
2430
|
+
"rect",
|
|
2431
|
+
{
|
|
2432
|
+
x: 30,
|
|
2433
|
+
y: 50,
|
|
2434
|
+
width: 4,
|
|
2435
|
+
height: 5,
|
|
2436
|
+
fill: "currentColor",
|
|
2437
|
+
stroke: "currentColor",
|
|
2438
|
+
strokeWidth
|
|
2439
|
+
}
|
|
2440
|
+
), /* @__PURE__ */ import_react3.default.createElement(
|
|
2441
|
+
"path",
|
|
2442
|
+
{
|
|
2443
|
+
d: "M24 55 Q32 54 40 55 L40 55 L24 55 Z",
|
|
2444
|
+
fill: "currentColor",
|
|
2445
|
+
stroke: "currentColor",
|
|
2446
|
+
strokeWidth
|
|
2447
|
+
}
|
|
2448
|
+
));
|
|
2449
|
+
}
|
|
2450
|
+
|
|
2451
|
+
// src/components/glasses/CollinsGlass.jsx
|
|
2452
|
+
var import_react4 = __toESM(require_react());
|
|
2453
|
+
function CollinsGlass({
|
|
2454
|
+
liquidFill = ["#FFF7C0", "#FFD27A"],
|
|
2455
|
+
strokeWidth = 0.5
|
|
2456
|
+
}) {
|
|
2457
|
+
return /* @__PURE__ */ import_react4.default.createElement("svg", { viewBox: "0 0 64 64" }, /* @__PURE__ */ import_react4.default.createElement(
|
|
2458
|
+
Liquid,
|
|
2459
|
+
{
|
|
2460
|
+
d: `M22 10 L42 10 L42 54 L22 54 Z`,
|
|
2461
|
+
transform: "scale(0.98)",
|
|
2462
|
+
idBase: "CollinsGlassGrad",
|
|
2463
|
+
opacity: 0.7,
|
|
2464
|
+
liquidFill
|
|
2465
|
+
}
|
|
2466
|
+
), /* @__PURE__ */ import_react4.default.createElement(
|
|
2467
|
+
"line",
|
|
2468
|
+
{
|
|
2469
|
+
x1: 22,
|
|
2470
|
+
y1: 10,
|
|
2471
|
+
x2: 22,
|
|
2472
|
+
y2: 54,
|
|
2473
|
+
stroke: "currentColor",
|
|
2474
|
+
strokeWidth
|
|
2475
|
+
}
|
|
2476
|
+
), /* @__PURE__ */ import_react4.default.createElement(
|
|
2477
|
+
"line",
|
|
2478
|
+
{
|
|
2479
|
+
x1: 42,
|
|
2480
|
+
y1: 10,
|
|
2481
|
+
x2: 42,
|
|
2482
|
+
y2: 54,
|
|
2483
|
+
stroke: "currentColor",
|
|
2484
|
+
strokeWidth
|
|
2485
|
+
}
|
|
2486
|
+
), /* @__PURE__ */ import_react4.default.createElement(
|
|
2487
|
+
"line",
|
|
2488
|
+
{
|
|
2489
|
+
x1: 21.76,
|
|
2490
|
+
y1: 10,
|
|
2491
|
+
x2: 42.24,
|
|
2492
|
+
y2: 10,
|
|
2493
|
+
stroke: "currentColor",
|
|
2494
|
+
strokeWidth
|
|
2495
|
+
}
|
|
2496
|
+
), /* @__PURE__ */ import_react4.default.createElement(
|
|
2497
|
+
"rect",
|
|
2498
|
+
{
|
|
2499
|
+
x: 22,
|
|
2500
|
+
y: 54,
|
|
2501
|
+
width: 20,
|
|
2502
|
+
height: 2,
|
|
2503
|
+
fill: "currentColor",
|
|
2504
|
+
stroke: "currentColor",
|
|
2505
|
+
strokeWidth
|
|
2506
|
+
}
|
|
2507
|
+
));
|
|
2508
|
+
}
|
|
2509
|
+
|
|
2510
|
+
// src/components/glasses/CopperMug.jsx
|
|
2511
|
+
var import_react5 = __toESM(require_react());
|
|
2512
|
+
function CopperMug({
|
|
2513
|
+
size = 80,
|
|
2514
|
+
strokeWidth = 0.5,
|
|
2515
|
+
fill = "#B87333"
|
|
2516
|
+
}) {
|
|
2517
|
+
return /* @__PURE__ */ import_react5.default.createElement("svg", { width: size, height: size, viewBox: "0 0 64 64" }, /* @__PURE__ */ import_react5.default.createElement(
|
|
2518
|
+
"path",
|
|
2519
|
+
{
|
|
2520
|
+
d: "M47 23 C68 23 68 52 46.5 50",
|
|
2521
|
+
fill: "none",
|
|
2522
|
+
stroke: fill,
|
|
2523
|
+
strokeWidth: strokeWidth + 2
|
|
2524
|
+
}
|
|
2525
|
+
), /* @__PURE__ */ import_react5.default.createElement(
|
|
2526
|
+
"path",
|
|
2527
|
+
{
|
|
2528
|
+
d: "\n M18 16 \n L46 16 \n C48 24 48 40 46 56 \n L18 56 \n C16 40 16 24 18 16 \n Z\n ",
|
|
2529
|
+
transform: "scale(0.98)",
|
|
2530
|
+
fill
|
|
2531
|
+
}
|
|
2532
|
+
), /* @__PURE__ */ import_react5.default.createElement(
|
|
2533
|
+
"path",
|
|
2534
|
+
{
|
|
2535
|
+
d: "\n M18 16 \n L46 16 \n C48 24 48 40 46 56 \n L18 56 \n C16 40 16 24 18 16 \n Z\n ",
|
|
2536
|
+
fill: "none",
|
|
2537
|
+
stroke: fill,
|
|
2538
|
+
strokeWidth
|
|
2539
|
+
}
|
|
2540
|
+
), /* @__PURE__ */ import_react5.default.createElement(
|
|
2541
|
+
"line",
|
|
2542
|
+
{
|
|
2543
|
+
x1: 18,
|
|
2544
|
+
y1: 16,
|
|
2545
|
+
x2: 46,
|
|
2546
|
+
y2: 16,
|
|
2547
|
+
stroke: fill,
|
|
2548
|
+
strokeWidth
|
|
2549
|
+
}
|
|
2550
|
+
));
|
|
2551
|
+
}
|
|
2552
|
+
|
|
2553
|
+
// src/components/glasses/CordialGlass.jsx
|
|
2554
|
+
var import_react6 = __toESM(require_react());
|
|
2555
|
+
|
|
2556
|
+
// src/utils/theme.js
|
|
2557
|
+
var theme = {
|
|
2558
|
+
colors: {
|
|
2559
|
+
accent: { 200: "#ffd180", 500: "#e67e22" },
|
|
2560
|
+
warning: "#ffb300",
|
|
2561
|
+
success: "#4caf50",
|
|
2562
|
+
error: "#e53935",
|
|
2563
|
+
dark: { 400: "#616161", 700: "#212121", 900: "#121212" }
|
|
2564
|
+
}
|
|
2565
|
+
};
|
|
2566
|
+
try {
|
|
2567
|
+
global.theme = theme;
|
|
2568
|
+
} catch (e) {
|
|
2569
|
+
}
|
|
2570
|
+
|
|
2571
|
+
// src/components/glasses/CordialGlass.jsx
|
|
2572
|
+
function CordialGlass({ liquidFill = null, strokeWidth = 0.5 }) {
|
|
2573
|
+
return /* @__PURE__ */ import_react6.default.createElement("svg", { viewBox: "0 0 64 64" }, /* @__PURE__ */ import_react6.default.createElement(
|
|
2574
|
+
Liquid,
|
|
2575
|
+
{
|
|
2576
|
+
d: `M30 16 L35 16 Q34 25 31 26 Q30 26 28 16 Z`,
|
|
2577
|
+
transform: "scale(0.98)",
|
|
2578
|
+
idBase: "CordialGlassGrad",
|
|
2579
|
+
opacity: 0.7,
|
|
2580
|
+
liquidFill
|
|
2581
|
+
}
|
|
2582
|
+
), /* @__PURE__ */ import_react6.default.createElement(
|
|
2583
|
+
"path",
|
|
2584
|
+
{
|
|
2585
|
+
d: "M28 16 L36 16 Q34 26 32 26 Q30 26 28 16 Z",
|
|
2586
|
+
stroke: "currentColor",
|
|
2587
|
+
strokeWidth,
|
|
2588
|
+
fill: "none"
|
|
2589
|
+
}
|
|
2590
|
+
), /* @__PURE__ */ import_react6.default.createElement(
|
|
2591
|
+
"rect",
|
|
2592
|
+
{
|
|
2593
|
+
x: 31.8,
|
|
2594
|
+
y: 26,
|
|
2595
|
+
width: 0.5,
|
|
2596
|
+
height: 6,
|
|
2597
|
+
fill: "currentColor",
|
|
2598
|
+
stroke: "currentColor",
|
|
2599
|
+
strokeWidth
|
|
2600
|
+
}
|
|
2601
|
+
), /* @__PURE__ */ import_react6.default.createElement(
|
|
2602
|
+
"path",
|
|
2603
|
+
{
|
|
2604
|
+
d: "M28.5 17 L35.5 17 Q34 25 32 25 Q30 25 28.5 17 Z",
|
|
2605
|
+
fill: "rgba(255,255,255,0.06)"
|
|
2606
|
+
}
|
|
2607
|
+
), /* @__PURE__ */ import_react6.default.createElement(
|
|
2608
|
+
"path",
|
|
2609
|
+
{
|
|
2610
|
+
d: "M28 32 Q32 31 36 32 L36 32 L28 32 Z",
|
|
2611
|
+
fill: "currentColor",
|
|
2612
|
+
stroke: "currentColor",
|
|
2613
|
+
strokeWidth
|
|
2614
|
+
}
|
|
2615
|
+
));
|
|
2616
|
+
}
|
|
2617
|
+
|
|
2618
|
+
// src/components/glasses/CoupeGlass.jsx
|
|
2619
|
+
var import_react7 = __toESM(require_react());
|
|
2620
|
+
function CoupeGlass({
|
|
2621
|
+
liquidFill = null,
|
|
2622
|
+
size = 80,
|
|
2623
|
+
strokeWidth = 1
|
|
2624
|
+
}) {
|
|
2625
|
+
return /* @__PURE__ */ import_react7.default.createElement("svg", { width: size, height: size, viewBox: "0 0 64 64" }, /* @__PURE__ */ import_react7.default.createElement(
|
|
2626
|
+
Liquid,
|
|
2627
|
+
{
|
|
2628
|
+
d: `
|
|
2629
|
+
M12 32 Q32 36 52 32 L52 18 Q32 18 12 18 Z
|
|
2630
|
+
`,
|
|
2631
|
+
transform: "scale(0.98)",
|
|
2632
|
+
idBase: "CoupeGlassGrad",
|
|
2633
|
+
opacity: 0.7,
|
|
2634
|
+
liquidFill
|
|
2635
|
+
}
|
|
2636
|
+
), /* @__PURE__ */ import_react7.default.createElement(
|
|
2637
|
+
"path",
|
|
2638
|
+
{
|
|
2639
|
+
d: "\n M12 32 Q32 36 52 32 L52 18 Q32 18 12 18 Z \n ",
|
|
2640
|
+
fill: "none",
|
|
2641
|
+
stroke: "currentColor",
|
|
2642
|
+
strokeWidth
|
|
2643
|
+
}
|
|
2644
|
+
), /* @__PURE__ */ import_react7.default.createElement("path", { d: "M32 34 L32 60", stroke: "currentColor", strokeWidth }), /* @__PURE__ */ import_react7.default.createElement(
|
|
2645
|
+
"path",
|
|
2646
|
+
{
|
|
2647
|
+
d: "M24 60 Q32 59 40 60 L40 60 L24 60 Z",
|
|
2648
|
+
fill: "currentColor",
|
|
2649
|
+
stroke: "currentColor",
|
|
2650
|
+
strokeWidth
|
|
2651
|
+
}
|
|
2652
|
+
));
|
|
2653
|
+
}
|
|
2654
|
+
|
|
2655
|
+
// src/components/glasses/DemitasseGlass.jsx
|
|
2656
|
+
var import_react8 = __toESM(require_react());
|
|
2657
|
+
function DemitasseGlass({
|
|
2658
|
+
liquidFill = null,
|
|
2659
|
+
size = 80,
|
|
2660
|
+
strokeWidth = 0.5
|
|
2661
|
+
}) {
|
|
2662
|
+
return /* @__PURE__ */ import_react8.default.createElement("svg", { width: size, height: size, viewBox: "0 0 64 64" }, /* @__PURE__ */ import_react8.default.createElement(
|
|
2663
|
+
"path",
|
|
2664
|
+
{
|
|
2665
|
+
d: "M20 24 L24 45 L40 45 L44 24 Z",
|
|
2666
|
+
fill: "none",
|
|
2667
|
+
stroke: "currentColor",
|
|
2668
|
+
strokeLinejoin: "miter",
|
|
2669
|
+
strokeWidth
|
|
2670
|
+
}
|
|
2671
|
+
), /* @__PURE__ */ import_react8.default.createElement(
|
|
2672
|
+
Liquid,
|
|
2673
|
+
{
|
|
2674
|
+
d: `M20 24 L24 45 L40 45 L44 24 Z`,
|
|
2675
|
+
transform: "scale(0.98)",
|
|
2676
|
+
idBase: "DemitasseGlassGrad",
|
|
2677
|
+
opacity: 0.7,
|
|
2678
|
+
liquidFill
|
|
2679
|
+
}
|
|
2680
|
+
), /* @__PURE__ */ import_react8.default.createElement(
|
|
2681
|
+
"path",
|
|
2682
|
+
{
|
|
2683
|
+
d: "M43 30 Q55 30 41 40",
|
|
2684
|
+
stroke: "currentColor",
|
|
2685
|
+
fill: "none",
|
|
2686
|
+
strokeWidth
|
|
2687
|
+
}
|
|
2688
|
+
), /* @__PURE__ */ import_react8.default.createElement(
|
|
2689
|
+
"path",
|
|
2690
|
+
{
|
|
2691
|
+
d: "M24 45 Q32 45 40 45 L40 48 L24 48 Z",
|
|
2692
|
+
fill: "currentColor",
|
|
2693
|
+
stroke: "currentColor",
|
|
2694
|
+
strokeWidth
|
|
2695
|
+
}
|
|
2696
|
+
));
|
|
2697
|
+
}
|
|
2698
|
+
|
|
2699
|
+
// src/components/glasses/DoubleShotGlass.jsx
|
|
2700
|
+
var import_react9 = __toESM(require_react());
|
|
2701
|
+
function DoubleShotGlass({
|
|
2702
|
+
liquidFill = ["#FFF7C0", "#FFD27A"],
|
|
2703
|
+
size = 64,
|
|
2704
|
+
strokeWidth = 0.5
|
|
2705
|
+
}) {
|
|
2706
|
+
return /* @__PURE__ */ import_react9.default.createElement("svg", { width: size, height: size, viewBox: "0 0 64 64" }, /* @__PURE__ */ import_react9.default.createElement(
|
|
2707
|
+
"path",
|
|
2708
|
+
{
|
|
2709
|
+
d: "M20 18 C22 30 22 46 22.5 58 L41.5 58 C42.5 46 42.5 30 44 18 Z",
|
|
2710
|
+
stroke: "currentColor",
|
|
2711
|
+
fill: "none",
|
|
2712
|
+
strokeWidth
|
|
2713
|
+
}
|
|
2714
|
+
), /* @__PURE__ */ import_react9.default.createElement(
|
|
2715
|
+
Liquid,
|
|
2716
|
+
{
|
|
2717
|
+
d: `M20 18 C22 30 22 46 22.5 58 L41.5 58 C42.5 46 42.5 30 44 18 Z`,
|
|
2718
|
+
transform: "scale(0.98)",
|
|
2719
|
+
idBase: "DoubleShotGlassGrad",
|
|
2720
|
+
opacity: 0.7,
|
|
2721
|
+
liquidFill
|
|
2722
|
+
}
|
|
2723
|
+
), /* @__PURE__ */ import_react9.default.createElement(
|
|
2724
|
+
"rect",
|
|
2725
|
+
{
|
|
2726
|
+
x: 22.5,
|
|
2727
|
+
y: 58,
|
|
2728
|
+
width: 19,
|
|
2729
|
+
height: 3,
|
|
2730
|
+
fill: "none",
|
|
2731
|
+
stroke: "currentColor",
|
|
2732
|
+
strokeWidth
|
|
2733
|
+
}
|
|
2734
|
+
));
|
|
2735
|
+
}
|
|
2736
|
+
|
|
2737
|
+
// src/components/glasses/FizzGlass.jsx
|
|
2738
|
+
var import_react10 = __toESM(require_react());
|
|
2739
|
+
function FizzGlass({
|
|
2740
|
+
liquidFill = null,
|
|
2741
|
+
size = 80,
|
|
2742
|
+
strokeWidth = 0.5
|
|
2743
|
+
}) {
|
|
2744
|
+
return /* @__PURE__ */ import_react10.default.createElement("svg", { width: size, height: size, viewBox: "0 0 64 64" }, /* @__PURE__ */ import_react10.default.createElement("path", { d: "M22 10 L42 10", stroke: "currentColor", strokeWidth }), /* @__PURE__ */ import_react10.default.createElement(
|
|
2745
|
+
Liquid,
|
|
2746
|
+
{
|
|
2747
|
+
d: `
|
|
2748
|
+
M22 10 L24 23 L40 23 L42 10 Z
|
|
2749
|
+
`,
|
|
2750
|
+
transform: "scale(0.98)",
|
|
2751
|
+
idBase: "FizzGlassGrad",
|
|
2752
|
+
opacity: 0.7,
|
|
2753
|
+
liquidFill
|
|
2754
|
+
}
|
|
2755
|
+
), /* @__PURE__ */ import_react10.default.createElement(
|
|
2756
|
+
"path",
|
|
2757
|
+
{
|
|
2758
|
+
d: "\n M22 10 L24 23 L40 23 L42 10 Z \n ",
|
|
2759
|
+
fill: "none",
|
|
2760
|
+
stroke: "currentColor",
|
|
2761
|
+
strokeWidth
|
|
2762
|
+
}
|
|
2763
|
+
), /* @__PURE__ */ import_react10.default.createElement(
|
|
2764
|
+
"rect",
|
|
2765
|
+
{
|
|
2766
|
+
x: 32,
|
|
2767
|
+
y: 23,
|
|
2768
|
+
width: 1,
|
|
2769
|
+
height: 10,
|
|
2770
|
+
fill: "currentColor",
|
|
2771
|
+
stroke: "currentColor",
|
|
2772
|
+
strokeWidth
|
|
2773
|
+
}
|
|
2774
|
+
), /* @__PURE__ */ import_react10.default.createElement(
|
|
2775
|
+
"path",
|
|
2776
|
+
{
|
|
2777
|
+
d: "M26 33 Q32 32 38 33 L38 33 L26 33 Z",
|
|
2778
|
+
fill: "currentColor",
|
|
2779
|
+
stroke: "currentColor",
|
|
2780
|
+
strokeWidth
|
|
2781
|
+
}
|
|
2782
|
+
));
|
|
2783
|
+
}
|
|
2784
|
+
|
|
2785
|
+
// src/components/glasses/FluteGlass.jsx
|
|
2786
|
+
var import_react11 = __toESM(require_react());
|
|
2787
|
+
function FluteGlass({
|
|
2788
|
+
liquidFill = null,
|
|
2789
|
+
size = 80,
|
|
2790
|
+
strokeWidth = 0.5
|
|
2791
|
+
}) {
|
|
2792
|
+
return /* @__PURE__ */ import_react11.default.createElement("svg", { width: size, height: size, viewBox: "0 0 64 64" }, /* @__PURE__ */ import_react11.default.createElement(
|
|
2793
|
+
Liquid,
|
|
2794
|
+
{
|
|
2795
|
+
d: `
|
|
2796
|
+
M30 12
|
|
2797
|
+
L34 12
|
|
2798
|
+
L36 36
|
|
2799
|
+
Q32 38 28 36
|
|
2800
|
+
Z
|
|
2801
|
+
`,
|
|
2802
|
+
transform: "scale(0.98)",
|
|
2803
|
+
idBase: "FluteGlassGrad",
|
|
2804
|
+
opacity: 0.7,
|
|
2805
|
+
liquidFill
|
|
2806
|
+
}
|
|
2807
|
+
), /* @__PURE__ */ import_react11.default.createElement(
|
|
2808
|
+
"path",
|
|
2809
|
+
{
|
|
2810
|
+
d: "\n M30 12 \n L34 12 \n L36 36 \n Q32 38 28 36 \n Z\n ",
|
|
2811
|
+
fill: "none",
|
|
2812
|
+
stroke: "currentColor",
|
|
2813
|
+
strokeWidth
|
|
2814
|
+
}
|
|
2815
|
+
), /* @__PURE__ */ import_react11.default.createElement(
|
|
2816
|
+
"rect",
|
|
2817
|
+
{
|
|
2818
|
+
x: 32,
|
|
2819
|
+
y: 37,
|
|
2820
|
+
width: strokeWidth,
|
|
2821
|
+
height: 16,
|
|
2822
|
+
fill: "currentColor",
|
|
2823
|
+
stroke: "currentColor",
|
|
2824
|
+
strokeWidth
|
|
2825
|
+
}
|
|
2826
|
+
), /* @__PURE__ */ import_react11.default.createElement(
|
|
2827
|
+
"path",
|
|
2828
|
+
{
|
|
2829
|
+
d: "M26 53 Q32 52 38 53 L38 53 L26 53 Z",
|
|
2830
|
+
fill: "currentColor",
|
|
2831
|
+
stroke: "currentColor",
|
|
2832
|
+
strokeWidth
|
|
2833
|
+
}
|
|
2834
|
+
));
|
|
2835
|
+
}
|
|
2836
|
+
|
|
2837
|
+
// src/components/glasses/GobletGlass.jsx
|
|
2838
|
+
var import_react12 = __toESM(require_react());
|
|
2839
|
+
function GobletGlass({
|
|
2840
|
+
liquidFill = null,
|
|
2841
|
+
size = 80,
|
|
2842
|
+
strokeWidth = 2
|
|
2843
|
+
}) {
|
|
2844
|
+
const height = Math.round(size * 90 / 80);
|
|
2845
|
+
return /* @__PURE__ */ import_react12.default.createElement("svg", { width: size, height, viewBox: "0 0 64 90" }, /* @__PURE__ */ import_react12.default.createElement(
|
|
2846
|
+
"rect",
|
|
2847
|
+
{
|
|
2848
|
+
x: 30.5,
|
|
2849
|
+
y: 69,
|
|
2850
|
+
width: 3,
|
|
2851
|
+
height: 8,
|
|
2852
|
+
fill: "currentColor",
|
|
2853
|
+
stroke: "currentColor",
|
|
2854
|
+
strokeWidth
|
|
2855
|
+
}
|
|
2856
|
+
), /* @__PURE__ */ import_react12.default.createElement(
|
|
2857
|
+
Liquid,
|
|
2858
|
+
{
|
|
2859
|
+
d: ` M19 28 L46 28 Q52 58 32 70 Q12 58 16 28 Z `,
|
|
2860
|
+
transform: "scale(0.98)",
|
|
2861
|
+
idBase: "GobletGlassGrad",
|
|
2862
|
+
opacity: 0.7,
|
|
2863
|
+
liquidFill
|
|
2864
|
+
}
|
|
2865
|
+
), /* @__PURE__ */ import_react12.default.createElement(
|
|
2866
|
+
"path",
|
|
2867
|
+
{
|
|
2868
|
+
d: "\n M16 28 \n L48 28 \n Q52 58 32 70 \n Q12 58 16 28 \n Z\n ",
|
|
2869
|
+
fill: "none",
|
|
2870
|
+
stroke: "currentColor",
|
|
2871
|
+
strokeWidth
|
|
2872
|
+
}
|
|
2873
|
+
), /* @__PURE__ */ import_react12.default.createElement(
|
|
2874
|
+
"line",
|
|
2875
|
+
{
|
|
2876
|
+
x1: 16,
|
|
2877
|
+
y1: 28,
|
|
2878
|
+
x2: 48,
|
|
2879
|
+
y2: 28,
|
|
2880
|
+
stroke: "currentColor",
|
|
2881
|
+
strokeWidth
|
|
2882
|
+
}
|
|
2883
|
+
), /* @__PURE__ */ import_react12.default.createElement(
|
|
2884
|
+
"path",
|
|
2885
|
+
{
|
|
2886
|
+
d: " M24 77 Q32 76 40 77 L40 77 L24 77 Z ",
|
|
2887
|
+
fill: "currentColor",
|
|
2888
|
+
stroke: "currentColor",
|
|
2889
|
+
strokeWidth
|
|
2890
|
+
}
|
|
2891
|
+
));
|
|
2892
|
+
}
|
|
2893
|
+
|
|
2894
|
+
// src/components/glasses/HighballGlass.jsx
|
|
2895
|
+
var import_react13 = __toESM(require_react());
|
|
2896
|
+
function HighballGlass({
|
|
2897
|
+
liquidFill = null,
|
|
2898
|
+
size = 80,
|
|
2899
|
+
strokeWidth = 0.5
|
|
2900
|
+
}) {
|
|
2901
|
+
return /* @__PURE__ */ import_react13.default.createElement("svg", { width: size, height: size, viewBox: "0 0 64 64" }, /* @__PURE__ */ import_react13.default.createElement(
|
|
2902
|
+
Liquid,
|
|
2903
|
+
{
|
|
2904
|
+
d: `M18 10 L46 10 L46 60 L18 60 Z`,
|
|
2905
|
+
transform: "scale(0.98)",
|
|
2906
|
+
idBase: "HighballGlassGrad",
|
|
2907
|
+
opacity: 0.7,
|
|
2908
|
+
liquidFill
|
|
2909
|
+
}
|
|
2910
|
+
), /* @__PURE__ */ import_react13.default.createElement(
|
|
2911
|
+
"rect",
|
|
2912
|
+
{
|
|
2913
|
+
x: 18,
|
|
2914
|
+
y: 10,
|
|
2915
|
+
width: 28,
|
|
2916
|
+
height: 50,
|
|
2917
|
+
stroke: "currentColor",
|
|
2918
|
+
strokeWidth,
|
|
2919
|
+
fill: "none"
|
|
2920
|
+
}
|
|
2921
|
+
), /* @__PURE__ */ import_react13.default.createElement(
|
|
2922
|
+
"rect",
|
|
2923
|
+
{
|
|
2924
|
+
x: 18,
|
|
2925
|
+
y: 60,
|
|
2926
|
+
width: 28,
|
|
2927
|
+
height: 2,
|
|
2928
|
+
fill: "currentColor",
|
|
2929
|
+
stroke: "currentColor",
|
|
2930
|
+
strokeWidth
|
|
2931
|
+
}
|
|
2932
|
+
));
|
|
2933
|
+
}
|
|
2934
|
+
|
|
2935
|
+
// src/components/glasses/HurricaneGlass.jsx
|
|
2936
|
+
var import_react14 = __toESM(require_react());
|
|
2937
|
+
function HurricaneGlass({
|
|
2938
|
+
liquidFill = null,
|
|
2939
|
+
garnish = null,
|
|
2940
|
+
size = 80,
|
|
2941
|
+
strokeWidth = 0.5
|
|
2942
|
+
}) {
|
|
2943
|
+
return /* @__PURE__ */ import_react14.default.createElement("svg", { width: size, height: size, viewBox: "0 0 64 64" }, /* @__PURE__ */ import_react14.default.createElement(
|
|
2944
|
+
Liquid,
|
|
2945
|
+
{
|
|
2946
|
+
d: `M24 10 C16 22, 24 38, 28 44 C30 48, 34 48, 36 44 C40 38, 48 22, 40 10 Z`,
|
|
2947
|
+
transform: "scale(0.98)",
|
|
2948
|
+
idBase: "HurricaneGlassGrad",
|
|
2949
|
+
opacity: 0.7,
|
|
2950
|
+
liquidFill
|
|
2951
|
+
}
|
|
2952
|
+
), /* @__PURE__ */ import_react14.default.createElement(
|
|
2953
|
+
"path",
|
|
2954
|
+
{
|
|
2955
|
+
d: "M24 10 C16 22, 24 38, 28 44 C30 48, 34 48, 36 44 C40 38, 48 22, 40 10 Z",
|
|
2956
|
+
stroke: "currentColor",
|
|
2957
|
+
fill: "none",
|
|
2958
|
+
strokeWidth
|
|
2959
|
+
}
|
|
2960
|
+
), /* @__PURE__ */ import_react14.default.createElement(
|
|
2961
|
+
"rect",
|
|
2962
|
+
{
|
|
2963
|
+
x: 30.5,
|
|
2964
|
+
y: 47,
|
|
2965
|
+
width: 3,
|
|
2966
|
+
height: 10,
|
|
2967
|
+
fill: "currentColor",
|
|
2968
|
+
stroke: "currentColor",
|
|
2969
|
+
strokeWidth
|
|
2970
|
+
}
|
|
2971
|
+
), /* @__PURE__ */ import_react14.default.createElement(
|
|
2972
|
+
"path",
|
|
2973
|
+
{
|
|
2974
|
+
d: "M26 57 Q32 56 38 57 L38 57 L26 57 Z",
|
|
2975
|
+
fill: "currentColor",
|
|
2976
|
+
stroke: "currentColor",
|
|
2977
|
+
strokeWidth
|
|
2978
|
+
}
|
|
2979
|
+
));
|
|
2980
|
+
}
|
|
2981
|
+
|
|
2982
|
+
// src/components/glasses/IrishCoffeeGlass.jsx
|
|
2983
|
+
var import_react15 = __toESM(require_react());
|
|
2984
|
+
function IrishCoffeeGlass({
|
|
2985
|
+
liquidFill = null,
|
|
2986
|
+
size = 80,
|
|
2987
|
+
strokeWidth = 2
|
|
2988
|
+
}) {
|
|
2989
|
+
return /* @__PURE__ */ import_react15.default.createElement("svg", { width: size, height: size, viewBox: "0 0 64 64" }, /* @__PURE__ */ import_react15.default.createElement(
|
|
2990
|
+
"path",
|
|
2991
|
+
{
|
|
2992
|
+
d: " M42 18 Q60 20 44 30 ",
|
|
2993
|
+
stroke: "currentColor",
|
|
2994
|
+
strokeWidth,
|
|
2995
|
+
fill: "none"
|
|
2996
|
+
}
|
|
2997
|
+
), /* @__PURE__ */ import_react15.default.createElement(
|
|
2998
|
+
Liquid,
|
|
2999
|
+
{
|
|
3000
|
+
d: `
|
|
3001
|
+
M22 16
|
|
3002
|
+
L42 16
|
|
3003
|
+
L44 30
|
|
3004
|
+
Q44 38 32 42
|
|
3005
|
+
Q20 38 20 30
|
|
3006
|
+
Z
|
|
3007
|
+
`,
|
|
3008
|
+
transform: "scale(0.98)",
|
|
3009
|
+
idBase: "IrishCoffeeGlassGrad",
|
|
3010
|
+
opacity: 0.7,
|
|
3011
|
+
liquidFill
|
|
3012
|
+
}
|
|
3013
|
+
), /* @__PURE__ */ import_react15.default.createElement(
|
|
3014
|
+
"path",
|
|
3015
|
+
{
|
|
3016
|
+
d: "\n M22 16\n L42 16\n L44 30\n Q44 38 32 42\n Q20 38 20 30\n Z\n ",
|
|
3017
|
+
stroke: "currentColor",
|
|
3018
|
+
strokeWidth: strokeWidth - 1,
|
|
3019
|
+
fill: "none"
|
|
3020
|
+
}
|
|
3021
|
+
), /* @__PURE__ */ import_react15.default.createElement(
|
|
3022
|
+
"rect",
|
|
3023
|
+
{
|
|
3024
|
+
x: 31,
|
|
3025
|
+
y: 42,
|
|
3026
|
+
width: 2,
|
|
3027
|
+
height: 2,
|
|
3028
|
+
fill: "currentColor",
|
|
3029
|
+
stroke: "currentColor",
|
|
3030
|
+
strokeWidth
|
|
3031
|
+
}
|
|
3032
|
+
), /* @__PURE__ */ import_react15.default.createElement(
|
|
3033
|
+
"path",
|
|
3034
|
+
{
|
|
3035
|
+
d: " M24 44 Q32 43 40 44 L40 44 L24 44 Z ",
|
|
3036
|
+
fill: "currentColor",
|
|
3037
|
+
stroke: "currentColor",
|
|
3038
|
+
strokeWidth
|
|
3039
|
+
}
|
|
3040
|
+
));
|
|
3041
|
+
}
|
|
3042
|
+
|
|
3043
|
+
// src/components/glasses/JulepCup.jsx
|
|
3044
|
+
var import_react16 = __toESM(require_react());
|
|
3045
|
+
function JulepCup({
|
|
3046
|
+
fill = "#a1a1a1",
|
|
3047
|
+
size = 80,
|
|
3048
|
+
strokeWidth = 0.5
|
|
3049
|
+
}) {
|
|
3050
|
+
return /* @__PURE__ */ import_react16.default.createElement("svg", { width: size, height: size, viewBox: "0 0 64 64" }, /* @__PURE__ */ import_react16.default.createElement(
|
|
3051
|
+
"rect",
|
|
3052
|
+
{
|
|
3053
|
+
x: 17,
|
|
3054
|
+
y: 21,
|
|
3055
|
+
width: 30,
|
|
3056
|
+
height: 1,
|
|
3057
|
+
rx: 1,
|
|
3058
|
+
fill: "none",
|
|
3059
|
+
stroke: fill,
|
|
3060
|
+
strokeWidth
|
|
3061
|
+
}
|
|
3062
|
+
), /* @__PURE__ */ import_react16.default.createElement(
|
|
3063
|
+
"rect",
|
|
3064
|
+
{
|
|
3065
|
+
x: 17,
|
|
3066
|
+
y: 21,
|
|
3067
|
+
width: 30,
|
|
3068
|
+
height: 1,
|
|
3069
|
+
rx: 1,
|
|
3070
|
+
transform: "scale(0.98)",
|
|
3071
|
+
opacity: 0.7,
|
|
3072
|
+
fill,
|
|
3073
|
+
strokeWidth: 0
|
|
3074
|
+
}
|
|
3075
|
+
), /* @__PURE__ */ import_react16.default.createElement(
|
|
3076
|
+
"path",
|
|
3077
|
+
{
|
|
3078
|
+
d: "\n M18 22\n L46 22\n L42 54\n L22 54\n Z\n ",
|
|
3079
|
+
fill: "none",
|
|
3080
|
+
stroke: fill,
|
|
3081
|
+
strokeWidth
|
|
3082
|
+
}
|
|
3083
|
+
), /* @__PURE__ */ import_react16.default.createElement(
|
|
3084
|
+
"path",
|
|
3085
|
+
{
|
|
3086
|
+
d: "\n M18 22\n L46 22\n L42 54\n L22 54\n Z\n ",
|
|
3087
|
+
transform: "scale(0.98)",
|
|
3088
|
+
fill
|
|
3089
|
+
}
|
|
3090
|
+
), /* @__PURE__ */ import_react16.default.createElement(
|
|
3091
|
+
"rect",
|
|
3092
|
+
{
|
|
3093
|
+
x: 20,
|
|
3094
|
+
y: 53,
|
|
3095
|
+
width: 24,
|
|
3096
|
+
height: 1,
|
|
3097
|
+
rx: strokeWidth,
|
|
3098
|
+
fill: "none",
|
|
3099
|
+
stroke: fill,
|
|
3100
|
+
strokeWidth
|
|
3101
|
+
}
|
|
3102
|
+
), /* @__PURE__ */ import_react16.default.createElement(
|
|
3103
|
+
"rect",
|
|
3104
|
+
{
|
|
3105
|
+
x: 20,
|
|
3106
|
+
y: 53,
|
|
3107
|
+
width: 24,
|
|
3108
|
+
height: 1,
|
|
3109
|
+
rx: strokeWidth,
|
|
3110
|
+
transform: "scale(0.98)",
|
|
3111
|
+
fill,
|
|
3112
|
+
strokeWidth: 0
|
|
3113
|
+
}
|
|
3114
|
+
), /* @__PURE__ */ import_react16.default.createElement(
|
|
3115
|
+
"rect",
|
|
3116
|
+
{
|
|
3117
|
+
x: 18.8,
|
|
3118
|
+
y: 54,
|
|
3119
|
+
width: 26,
|
|
3120
|
+
height: 1,
|
|
3121
|
+
rx: strokeWidth,
|
|
3122
|
+
fill: "none",
|
|
3123
|
+
stroke: fill,
|
|
3124
|
+
strokeWidth
|
|
3125
|
+
}
|
|
3126
|
+
), /* @__PURE__ */ import_react16.default.createElement(
|
|
3127
|
+
"rect",
|
|
3128
|
+
{
|
|
3129
|
+
x: 18.8,
|
|
3130
|
+
y: 54,
|
|
3131
|
+
width: 26,
|
|
3132
|
+
height: 1,
|
|
3133
|
+
rx: strokeWidth,
|
|
3134
|
+
transform: "scale(0.98)",
|
|
3135
|
+
fill,
|
|
3136
|
+
strokeWidth: 0
|
|
3137
|
+
}
|
|
3138
|
+
));
|
|
3139
|
+
}
|
|
3140
|
+
|
|
3141
|
+
// src/components/glasses/MargaritaGlass.jsx
|
|
3142
|
+
var import_react17 = __toESM(require_react());
|
|
3143
|
+
function MargaritaGlass({
|
|
3144
|
+
liquidFill = ["#A8E063", "#56AB2F"],
|
|
3145
|
+
// liquidStyle = "gradient",
|
|
3146
|
+
// gradientAttr = { x1: "0", y1: "0", x2: "0", y2: "1" },
|
|
3147
|
+
size = 80,
|
|
3148
|
+
strokeWidth = 0.5
|
|
3149
|
+
}) {
|
|
3150
|
+
const stops = liquidFill;
|
|
3151
|
+
return /* @__PURE__ */ import_react17.default.createElement("svg", { width: size, height: size, viewBox: "0 0 64 64" }, /* @__PURE__ */ import_react17.default.createElement(
|
|
3152
|
+
Liquid,
|
|
3153
|
+
{
|
|
3154
|
+
d: `M14 18 L50 18 Q46 28 36 29 Q30 30 28 29 Q18 28 14 18 Z M28 29 Q32 29 36 29 Q38 34 32 36 Q26 34 28 29 Z`,
|
|
3155
|
+
transform: "scale(0.98)",
|
|
3156
|
+
idBase: "MargaritaGlassGrad",
|
|
3157
|
+
opacity: 0.7,
|
|
3158
|
+
liquidFill
|
|
3159
|
+
}
|
|
3160
|
+
), /* @__PURE__ */ import_react17.default.createElement(
|
|
3161
|
+
"path",
|
|
3162
|
+
{
|
|
3163
|
+
d: `M14 18 L50 18 Q46 28 36 29 Q30 30 28 29 Q18 28 14 18 Z
|
|
3164
|
+
M28 29 Q32 29 36 29 Q38 34 32 36 Q26 34 28 29 Z`,
|
|
3165
|
+
fill: "none",
|
|
3166
|
+
stroke: "currentColor",
|
|
3167
|
+
strokeWidth
|
|
3168
|
+
}
|
|
3169
|
+
), /* @__PURE__ */ import_react17.default.createElement(
|
|
3170
|
+
"rect",
|
|
3171
|
+
{
|
|
3172
|
+
x: 31.5,
|
|
3173
|
+
y: 36,
|
|
3174
|
+
width: 1,
|
|
3175
|
+
height: 10,
|
|
3176
|
+
fill: "currentColor",
|
|
3177
|
+
stroke: "currentColor",
|
|
3178
|
+
strokeWidth
|
|
3179
|
+
}
|
|
3180
|
+
), /* @__PURE__ */ import_react17.default.createElement(
|
|
3181
|
+
"path",
|
|
3182
|
+
{
|
|
3183
|
+
d: " M24 46 Q32 45 40 46 L40 47 L24 47 Z ",
|
|
3184
|
+
fill: "currentColor",
|
|
3185
|
+
strokeWidth: 0
|
|
3186
|
+
}
|
|
3187
|
+
));
|
|
3188
|
+
}
|
|
3189
|
+
|
|
3190
|
+
// src/components/glasses/MartiniGlass.jsx
|
|
3191
|
+
var import_react18 = __toESM(require_react());
|
|
3192
|
+
function MartiniGlass({
|
|
3193
|
+
liquidFill = null,
|
|
3194
|
+
garnish = null,
|
|
3195
|
+
size = 80,
|
|
3196
|
+
strokeWidth = 1
|
|
3197
|
+
}) {
|
|
3198
|
+
return /* @__PURE__ */ import_react18.default.createElement("svg", { width: size, height: size, viewBox: "0 0 64 64" }, /* @__PURE__ */ import_react18.default.createElement(
|
|
3199
|
+
Liquid,
|
|
3200
|
+
{
|
|
3201
|
+
d: `M10 10 L54 10 L32 40 Z`,
|
|
3202
|
+
transform: "scale(0.98)",
|
|
3203
|
+
idBase: "MartiniGlassGrad",
|
|
3204
|
+
opacity: 0.7,
|
|
3205
|
+
liquidFill
|
|
3206
|
+
}
|
|
3207
|
+
), /* @__PURE__ */ import_react18.default.createElement(
|
|
3208
|
+
"path",
|
|
3209
|
+
{
|
|
3210
|
+
d: "M10 10 L54 10 L32 40 Z",
|
|
3211
|
+
stroke: "currentColor",
|
|
3212
|
+
fill: "none",
|
|
3213
|
+
strokeWidth
|
|
3214
|
+
}
|
|
3215
|
+
), /* @__PURE__ */ import_react18.default.createElement("path", { d: "M32 40 L32 58", stroke: "currentColor", strokeWidth }), /* @__PURE__ */ import_react18.default.createElement("path", { d: " M24 58 Q32 57 40 58 L40 59 L24 59 Z ", fill: "currentColor" }));
|
|
3216
|
+
}
|
|
3217
|
+
|
|
3218
|
+
// src/components/glasses/NickAndNoraGlass.jsx
|
|
3219
|
+
var import_react19 = __toESM(require_react());
|
|
3220
|
+
function NickAndNoraGlass({
|
|
3221
|
+
liquidFill = null,
|
|
3222
|
+
garnish = null,
|
|
3223
|
+
size = 80,
|
|
3224
|
+
strokeWidth = 0.5
|
|
3225
|
+
}) {
|
|
3226
|
+
return /* @__PURE__ */ import_react19.default.createElement("svg", { width: size, height: size, viewBox: "0 0 64 64" }, /* @__PURE__ */ import_react19.default.createElement(
|
|
3227
|
+
Liquid,
|
|
3228
|
+
{
|
|
3229
|
+
d: `M24 38 L24 24 L40 24 L40 38 Q32 40 24 38 Z`,
|
|
3230
|
+
transform: "scale(0.98)",
|
|
3231
|
+
idBase: "NickAndNoraGlassGrad",
|
|
3232
|
+
opacity: 0.7,
|
|
3233
|
+
liquidFill
|
|
3234
|
+
}
|
|
3235
|
+
), /* @__PURE__ */ import_react19.default.createElement(
|
|
3236
|
+
"path",
|
|
3237
|
+
{
|
|
3238
|
+
d: "M24 38 L24 24 L40 24 L40 38 Q32 40 24 38 Z",
|
|
3239
|
+
fill: "none",
|
|
3240
|
+
stroke: "currentColor",
|
|
3241
|
+
strokeWidth
|
|
3242
|
+
}
|
|
3243
|
+
), /* @__PURE__ */ import_react19.default.createElement(
|
|
3244
|
+
"rect",
|
|
3245
|
+
{
|
|
3246
|
+
x: 32,
|
|
3247
|
+
y: 39,
|
|
3248
|
+
width: 1,
|
|
3249
|
+
height: 16,
|
|
3250
|
+
fill: "currentColor",
|
|
3251
|
+
stroke: "currentColor",
|
|
3252
|
+
strokeWidth
|
|
3253
|
+
}
|
|
3254
|
+
), /* @__PURE__ */ import_react19.default.createElement(
|
|
3255
|
+
"path",
|
|
3256
|
+
{
|
|
3257
|
+
d: " M24 55 Q32 54 40 55 L40 55 L24 55 Z ",
|
|
3258
|
+
fill: "currentColor",
|
|
3259
|
+
stroke: "currentColor",
|
|
3260
|
+
strokeWidth
|
|
3261
|
+
}
|
|
3262
|
+
));
|
|
3263
|
+
}
|
|
3264
|
+
|
|
3265
|
+
// src/components/glasses/ParfaitGlass.jsx
|
|
3266
|
+
var import_react20 = __toESM(require_react());
|
|
3267
|
+
function ParfaitGlass({
|
|
3268
|
+
liquidFill = null,
|
|
3269
|
+
size = 80,
|
|
3270
|
+
strokeWidth = 0.5
|
|
3271
|
+
}) {
|
|
3272
|
+
return /* @__PURE__ */ import_react20.default.createElement("svg", { width: size, height: size, viewBox: "0 0 64 64" }, /* @__PURE__ */ import_react20.default.createElement(
|
|
3273
|
+
Liquid,
|
|
3274
|
+
{
|
|
3275
|
+
d: `
|
|
3276
|
+
M22 12
|
|
3277
|
+
L42 12
|
|
3278
|
+
Q40 30 38 44
|
|
3279
|
+
Q32 50 26 44
|
|
3280
|
+
Q24 30 22 12
|
|
3281
|
+
Z
|
|
3282
|
+
`,
|
|
3283
|
+
transform: "scale(0.98)",
|
|
3284
|
+
idBase: "ParfaitGlassGrad",
|
|
3285
|
+
opacity: 0.7,
|
|
3286
|
+
liquidFill
|
|
3287
|
+
}
|
|
3288
|
+
), /* @__PURE__ */ import_react20.default.createElement(
|
|
3289
|
+
"path",
|
|
3290
|
+
{
|
|
3291
|
+
d: "\n M22 12\n L42 12\n Q40 30 38 44\n Q32 50 26 44\n Q24 30 22 12\n Z\n ",
|
|
3292
|
+
stroke: "currentColor",
|
|
3293
|
+
strokeWidth,
|
|
3294
|
+
fill: "none"
|
|
3295
|
+
}
|
|
3296
|
+
), /* @__PURE__ */ import_react20.default.createElement("rect", { x: 31, y: 47, width: 2, height: 8, fill: "currentColor" }), /* @__PURE__ */ import_react20.default.createElement(
|
|
3297
|
+
"path",
|
|
3298
|
+
{
|
|
3299
|
+
d: "\n M22 57 Q32 53 42 57 L42 57.5 L22 57.5 Z \n ",
|
|
3300
|
+
fill: "currentColor"
|
|
3301
|
+
}
|
|
3302
|
+
));
|
|
3303
|
+
}
|
|
3304
|
+
|
|
3305
|
+
// src/components/glasses/PilsnerGlass.jsx
|
|
3306
|
+
var import_react21 = __toESM(require_react());
|
|
3307
|
+
function PilsnerGlass({
|
|
3308
|
+
liquidFill = null,
|
|
3309
|
+
size = 80,
|
|
3310
|
+
strokeWidth = 0.5
|
|
3311
|
+
}) {
|
|
3312
|
+
return /* @__PURE__ */ import_react21.default.createElement("svg", { width: size, height: size, viewBox: "0 0 64 64" }, /* @__PURE__ */ import_react21.default.createElement(
|
|
3313
|
+
Liquid,
|
|
3314
|
+
{
|
|
3315
|
+
d: `M24 10 L40 10 Q38 36 36 50 Q32 54 28 50 Q26 36 24 10 Z`,
|
|
3316
|
+
transform: "scale(0.98)",
|
|
3317
|
+
idBase: "PilsnerGlassGrad",
|
|
3318
|
+
opacity: 0.7,
|
|
3319
|
+
liquidFill
|
|
3320
|
+
}
|
|
3321
|
+
), /* @__PURE__ */ import_react21.default.createElement(
|
|
3322
|
+
"path",
|
|
3323
|
+
{
|
|
3324
|
+
d: "M28 50 Q32 55 37 51 L37 56 Q35 56 28.5 56 Z",
|
|
3325
|
+
transform: "scale(0.98)",
|
|
3326
|
+
fill: "currentColor",
|
|
3327
|
+
className: "base"
|
|
3328
|
+
}
|
|
3329
|
+
), /* @__PURE__ */ import_react21.default.createElement(
|
|
3330
|
+
"path",
|
|
3331
|
+
{
|
|
3332
|
+
d: "M24 10 L40 10 Q38 36 36 55 Q32 55 28 55 Q26 36 24 10 Z",
|
|
3333
|
+
stroke: "currentColor",
|
|
3334
|
+
strokeWidth,
|
|
3335
|
+
fill: "none"
|
|
3336
|
+
}
|
|
3337
|
+
));
|
|
3338
|
+
}
|
|
3339
|
+
|
|
3340
|
+
// src/components/glasses/PintGlass.jsx
|
|
3341
|
+
var import_react22 = __toESM(require_react());
|
|
3342
|
+
function PintGlass({
|
|
3343
|
+
liquidFill = null,
|
|
3344
|
+
garnish = null,
|
|
3345
|
+
size = 80,
|
|
3346
|
+
strokeWidth = 0.5
|
|
3347
|
+
}) {
|
|
3348
|
+
return /* @__PURE__ */ import_react22.default.createElement("svg", { width: size, height: size, viewBox: "0 0 64 64" }, /* @__PURE__ */ import_react22.default.createElement(
|
|
3349
|
+
Liquid,
|
|
3350
|
+
{
|
|
3351
|
+
d: `M18 10 L46 10 L42 54 L22 54 Z`,
|
|
3352
|
+
transform: "scale(0.98)",
|
|
3353
|
+
idBase: "PintGlassGrad",
|
|
3354
|
+
opacity: 0.7,
|
|
3355
|
+
liquidFill
|
|
3356
|
+
}
|
|
3357
|
+
), /* @__PURE__ */ import_react22.default.createElement(
|
|
3358
|
+
"path",
|
|
3359
|
+
{
|
|
3360
|
+
d: "M18 10 L46 10 L42 54 L22 54 Z",
|
|
3361
|
+
stroke: "currentColor",
|
|
3362
|
+
strokeWidth,
|
|
3363
|
+
fill: "none"
|
|
3364
|
+
}
|
|
3365
|
+
), /* @__PURE__ */ import_react22.default.createElement(
|
|
3366
|
+
"rect",
|
|
3367
|
+
{
|
|
3368
|
+
x: 22,
|
|
3369
|
+
y: 54,
|
|
3370
|
+
width: 20,
|
|
3371
|
+
height: 2,
|
|
3372
|
+
fill: "currentColor",
|
|
3373
|
+
stroke: "currentColor",
|
|
3374
|
+
strokeWidth
|
|
3375
|
+
}
|
|
3376
|
+
));
|
|
3377
|
+
}
|
|
3378
|
+
|
|
3379
|
+
// src/components/glasses/PousseCafeGlass.jsx
|
|
3380
|
+
var import_react23 = __toESM(require_react());
|
|
3381
|
+
function PousseCafeGlass({
|
|
3382
|
+
liquidFill = null,
|
|
3383
|
+
size = 80,
|
|
3384
|
+
strokeWidth = 0.5
|
|
3385
|
+
}) {
|
|
3386
|
+
const cx = 32;
|
|
3387
|
+
const height = Math.floor(size * 1.125);
|
|
3388
|
+
return /* @__PURE__ */ import_react23.default.createElement("svg", { width: size, height, viewBox: "0 0 64 90" }, /* @__PURE__ */ import_react23.default.createElement("g", null, /* @__PURE__ */ import_react23.default.createElement(
|
|
3389
|
+
Liquid,
|
|
3390
|
+
{
|
|
3391
|
+
d: `
|
|
3392
|
+
M ${cx - 11} 12
|
|
3393
|
+
L ${cx + 11} 12
|
|
3394
|
+
L ${cx + 9} 38
|
|
3395
|
+
Q ${cx} 42 ${cx - 9} 38
|
|
3396
|
+
Z
|
|
3397
|
+
`,
|
|
3398
|
+
transform: "scale(0.98)",
|
|
3399
|
+
idBase: "PousseCafeGlassGrad",
|
|
3400
|
+
opacity: 0.7,
|
|
3401
|
+
liquidFill
|
|
3402
|
+
}
|
|
3403
|
+
), /* @__PURE__ */ import_react23.default.createElement(
|
|
3404
|
+
"path",
|
|
3405
|
+
{
|
|
3406
|
+
d: `
|
|
3407
|
+
M ${cx - 11} 12
|
|
3408
|
+
L ${cx + 11} 12
|
|
3409
|
+
L ${cx + 9} 38
|
|
3410
|
+
Q ${cx} 42 ${cx - 9} 38
|
|
3411
|
+
Z
|
|
3412
|
+
`,
|
|
3413
|
+
stroke: "currentColor",
|
|
3414
|
+
strokeWidth,
|
|
3415
|
+
fill: "none"
|
|
3416
|
+
}
|
|
3417
|
+
), /* @__PURE__ */ import_react23.default.createElement(
|
|
3418
|
+
"path",
|
|
3419
|
+
{
|
|
3420
|
+
d: `
|
|
3421
|
+
M ${cx - 8} 18
|
|
3422
|
+
L ${cx + 8} 18
|
|
3423
|
+
L ${cx + 6} 30
|
|
3424
|
+
Q ${cx} 33 ${cx - 6} 30
|
|
3425
|
+
Z
|
|
3426
|
+
`,
|
|
3427
|
+
fill: "rgba(255,255,255,0.06)"
|
|
3428
|
+
}
|
|
3429
|
+
), /* @__PURE__ */ import_react23.default.createElement(
|
|
3430
|
+
"rect",
|
|
3431
|
+
{
|
|
3432
|
+
x: cx - 1,
|
|
3433
|
+
y: 40,
|
|
3434
|
+
width: 2,
|
|
3435
|
+
height: 10,
|
|
3436
|
+
fill: "currentColor",
|
|
3437
|
+
stroke: "currentColor",
|
|
3438
|
+
strokeWidth
|
|
3439
|
+
}
|
|
3440
|
+
), /* @__PURE__ */ import_react23.default.createElement(
|
|
3441
|
+
"path",
|
|
3442
|
+
{
|
|
3443
|
+
d: `M ${cx - 6} 50 Q ${cx} 48 ${cx + 6} 50 L ${cx + 6} 50 L ${cx - 6} 50 Z`,
|
|
3444
|
+
fill: "currentColor",
|
|
3445
|
+
stroke: "currentColor",
|
|
3446
|
+
strokeWidth
|
|
3447
|
+
}
|
|
3448
|
+
)));
|
|
3449
|
+
}
|
|
3450
|
+
|
|
3451
|
+
// src/components/glasses/PunchGlass.jsx
|
|
3452
|
+
var import_react24 = __toESM(require_react());
|
|
3453
|
+
function PunchGlass({
|
|
3454
|
+
liquidFill = null,
|
|
3455
|
+
size = 80,
|
|
3456
|
+
strokeWidth = 0.5
|
|
3457
|
+
}) {
|
|
3458
|
+
return /* @__PURE__ */ import_react24.default.createElement("svg", { width: size, height: size, viewBox: "0 0 64 64" }, /* @__PURE__ */ import_react24.default.createElement("g", null, /* @__PURE__ */ import_react24.default.createElement(
|
|
3459
|
+
Liquid,
|
|
3460
|
+
{
|
|
3461
|
+
d: `
|
|
3462
|
+
M22 18
|
|
3463
|
+
L42 18
|
|
3464
|
+
L38 30
|
|
3465
|
+
Q32 34 26 30
|
|
3466
|
+
L22 18
|
|
3467
|
+
Z
|
|
3468
|
+
`,
|
|
3469
|
+
transform: "scale(0.98)",
|
|
3470
|
+
idBase: "PunchGlassGrad",
|
|
3471
|
+
opacity: 0.7,
|
|
3472
|
+
liquidFill
|
|
3473
|
+
}
|
|
3474
|
+
), /* @__PURE__ */ import_react24.default.createElement(
|
|
3475
|
+
"path",
|
|
3476
|
+
{
|
|
3477
|
+
d: `
|
|
3478
|
+
M22 18
|
|
3479
|
+
L42 18
|
|
3480
|
+
L38 30
|
|
3481
|
+
Q32 34 26 30
|
|
3482
|
+
L22 18
|
|
3483
|
+
Z
|
|
3484
|
+
`,
|
|
3485
|
+
stroke: "currentColor",
|
|
3486
|
+
strokeWidth,
|
|
3487
|
+
fill: "none"
|
|
3488
|
+
}
|
|
3489
|
+
), /* @__PURE__ */ import_react24.default.createElement(
|
|
3490
|
+
"path",
|
|
3491
|
+
{
|
|
3492
|
+
d: `M28 20 L28 28 M32 20 L32 30 M36 20 L36 28`,
|
|
3493
|
+
stroke: "currentColor",
|
|
3494
|
+
strokeWidth: 0.6,
|
|
3495
|
+
strokeLinecap: "round",
|
|
3496
|
+
opacity: 0.06
|
|
3497
|
+
}
|
|
3498
|
+
), /* @__PURE__ */ import_react24.default.createElement(
|
|
3499
|
+
"rect",
|
|
3500
|
+
{
|
|
3501
|
+
x: 31,
|
|
3502
|
+
y: 32,
|
|
3503
|
+
width: 2,
|
|
3504
|
+
height: 6,
|
|
3505
|
+
fill: "currentColor",
|
|
3506
|
+
stroke: "currentColor",
|
|
3507
|
+
strokeWidth
|
|
3508
|
+
}
|
|
3509
|
+
), /* @__PURE__ */ import_react24.default.createElement(
|
|
3510
|
+
"path",
|
|
3511
|
+
{
|
|
3512
|
+
d: "M26 38 Q32 37 38 38 L38 38 L26 38 Z",
|
|
3513
|
+
fill: "currentColor",
|
|
3514
|
+
stroke: "currentColor",
|
|
3515
|
+
strokeWidth
|
|
3516
|
+
}
|
|
3517
|
+
)));
|
|
3518
|
+
}
|
|
3519
|
+
|
|
3520
|
+
// src/components/glasses/RocksGlass.jsx
|
|
3521
|
+
var import_react25 = __toESM(require_react());
|
|
3522
|
+
function RocksGlass({
|
|
3523
|
+
liquidFill = null,
|
|
3524
|
+
size = 80,
|
|
3525
|
+
strokeWidth = 0.5
|
|
3526
|
+
}) {
|
|
3527
|
+
return /* @__PURE__ */ import_react25.default.createElement("svg", { width: size, height: size, viewBox: "0 0 64 64" }, /* @__PURE__ */ import_react25.default.createElement(
|
|
3528
|
+
Liquid,
|
|
3529
|
+
{
|
|
3530
|
+
d: `M14 24 L50 24 L50 58 L14 58 Z`,
|
|
3531
|
+
transform: "scale(0.98)",
|
|
3532
|
+
idBase: "RocksGlassGrad",
|
|
3533
|
+
opacity: 0.7,
|
|
3534
|
+
liquidFill
|
|
3535
|
+
}
|
|
3536
|
+
), /* @__PURE__ */ import_react25.default.createElement(
|
|
3537
|
+
"rect",
|
|
3538
|
+
{
|
|
3539
|
+
x: 14,
|
|
3540
|
+
y: 24,
|
|
3541
|
+
width: 36,
|
|
3542
|
+
height: 34,
|
|
3543
|
+
stroke: "currentColor",
|
|
3544
|
+
strokeWidth,
|
|
3545
|
+
fill: "none"
|
|
3546
|
+
}
|
|
3547
|
+
), /* @__PURE__ */ import_react25.default.createElement(
|
|
3548
|
+
"line",
|
|
3549
|
+
{
|
|
3550
|
+
x1: 13.7,
|
|
3551
|
+
y1: 59,
|
|
3552
|
+
x2: 50.2,
|
|
3553
|
+
y2: 59,
|
|
3554
|
+
stroke: "currentColor",
|
|
3555
|
+
strokeWidth: "2"
|
|
3556
|
+
}
|
|
3557
|
+
));
|
|
3558
|
+
}
|
|
3559
|
+
|
|
3560
|
+
// src/components/glasses/SingleShotGlass.jsx
|
|
3561
|
+
var import_react26 = __toESM(require_react());
|
|
3562
|
+
function SingleShotGlass({
|
|
3563
|
+
liquidFill = ["#FFFFFF", "#E0E0E0"],
|
|
3564
|
+
size = 64,
|
|
3565
|
+
strokeWidth = 0.5
|
|
3566
|
+
}) {
|
|
3567
|
+
return /* @__PURE__ */ import_react26.default.createElement("svg", { width: size, height: size, viewBox: "0 0 64 64" }, /* @__PURE__ */ import_react26.default.createElement(
|
|
3568
|
+
"path",
|
|
3569
|
+
{
|
|
3570
|
+
d: "M23 28 C24.5 36 24.5 40 25 48 L39 48 C39.5 40 39.5 36 41 28 Z",
|
|
3571
|
+
stroke: "currentColor",
|
|
3572
|
+
fill: "none",
|
|
3573
|
+
strokeWidth
|
|
3574
|
+
}
|
|
3575
|
+
), /* @__PURE__ */ import_react26.default.createElement(
|
|
3576
|
+
Liquid,
|
|
3577
|
+
{
|
|
3578
|
+
d: `M23 28 C24.5 36 24.5 40 25 48 L39 48 C39.5 40 39.5 36 41 28 Z`,
|
|
3579
|
+
transform: "scale(0.98)",
|
|
3580
|
+
idBase: "SingleShotGlassGrad",
|
|
3581
|
+
opacity: 0.7,
|
|
3582
|
+
liquidFill
|
|
3583
|
+
}
|
|
3584
|
+
), /* @__PURE__ */ import_react26.default.createElement(
|
|
3585
|
+
"rect",
|
|
3586
|
+
{
|
|
3587
|
+
x: 25,
|
|
3588
|
+
y: 48,
|
|
3589
|
+
width: 14,
|
|
3590
|
+
height: 3,
|
|
3591
|
+
stroke: "currentColor",
|
|
3592
|
+
strokeWidth,
|
|
3593
|
+
fill: "none"
|
|
3594
|
+
}
|
|
3595
|
+
));
|
|
3596
|
+
}
|
|
3597
|
+
|
|
3598
|
+
// src/components/glasses/SlingGlass.jsx
|
|
3599
|
+
var import_react27 = __toESM(require_react());
|
|
3600
|
+
function SlingGlass({
|
|
3601
|
+
liquidFill = null,
|
|
3602
|
+
size = 80,
|
|
3603
|
+
strokeWidth = 0.5
|
|
3604
|
+
}) {
|
|
3605
|
+
return /* @__PURE__ */ import_react27.default.createElement("svg", { width: size, height: size, viewBox: "0 0 64 64" }, /* @__PURE__ */ import_react27.default.createElement(
|
|
3606
|
+
"line",
|
|
3607
|
+
{
|
|
3608
|
+
x1: 24,
|
|
3609
|
+
y1: 12,
|
|
3610
|
+
x2: 40,
|
|
3611
|
+
y2: 12,
|
|
3612
|
+
stroke: "currentColor",
|
|
3613
|
+
strokeWidth
|
|
3614
|
+
}
|
|
3615
|
+
), /* @__PURE__ */ import_react27.default.createElement(
|
|
3616
|
+
Liquid,
|
|
3617
|
+
{
|
|
3618
|
+
d: `M25 12 L40 12 C41 29 40 46 32 55 C24 46 24 28 24 12 Z`,
|
|
3619
|
+
transform: "scale(0.98)",
|
|
3620
|
+
idBase: "SlingGlassGrad",
|
|
3621
|
+
opacity: 0.7,
|
|
3622
|
+
liquidFill
|
|
3623
|
+
}
|
|
3624
|
+
), /* @__PURE__ */ import_react27.default.createElement(
|
|
3625
|
+
"path",
|
|
3626
|
+
{
|
|
3627
|
+
d: "M25 12 L40 12 C41 29 40 46 32 55 C24 46 24 28 24 12 Z",
|
|
3628
|
+
stroke: "currentColor",
|
|
3629
|
+
strokeWidth,
|
|
3630
|
+
fill: "none"
|
|
3631
|
+
}
|
|
3632
|
+
), /* @__PURE__ */ import_react27.default.createElement("rect", { x: 31, y: 54, width: 2, height: 2, fill: "currentColor" }), /* @__PURE__ */ import_react27.default.createElement(
|
|
3633
|
+
"path",
|
|
3634
|
+
{
|
|
3635
|
+
d: "M29 56 Q32 55 35 56 L35 56 L29 56 Z",
|
|
3636
|
+
fill: "currentColor",
|
|
3637
|
+
stroke: "currentColor",
|
|
3638
|
+
strokeWidth,
|
|
3639
|
+
rx: 1
|
|
3640
|
+
}
|
|
3641
|
+
));
|
|
3642
|
+
}
|
|
3643
|
+
|
|
3644
|
+
// src/components/glasses/SnifterGlass.jsx
|
|
3645
|
+
var import_react28 = __toESM(require_react());
|
|
3646
|
+
function SnifterGlass({
|
|
3647
|
+
liquidFill = null,
|
|
3648
|
+
size = 80,
|
|
3649
|
+
strokeWidth = 0.5
|
|
3650
|
+
}) {
|
|
3651
|
+
return /* @__PURE__ */ import_react28.default.createElement("svg", { width: size, height: size, viewBox: "0 0 64 64" }, /* @__PURE__ */ import_react28.default.createElement(
|
|
3652
|
+
"line",
|
|
3653
|
+
{
|
|
3654
|
+
x1: 22,
|
|
3655
|
+
y1: 18,
|
|
3656
|
+
x2: 42,
|
|
3657
|
+
y2: 18,
|
|
3658
|
+
stroke: "currentColor",
|
|
3659
|
+
strokeWidth
|
|
3660
|
+
}
|
|
3661
|
+
), /* @__PURE__ */ import_react28.default.createElement(
|
|
3662
|
+
"path",
|
|
3663
|
+
{
|
|
3664
|
+
d: "\n M22 18\n C16 32, 16 46, 32 52\n C48 46, 48 32, 42 18\n Z\n ",
|
|
3665
|
+
stroke: "currentColor",
|
|
3666
|
+
strokeWidth,
|
|
3667
|
+
fill: "none"
|
|
3668
|
+
}
|
|
3669
|
+
), /* @__PURE__ */ import_react28.default.createElement(
|
|
3670
|
+
Liquid,
|
|
3671
|
+
{
|
|
3672
|
+
d: ` M22 18 C16 32, 16 46, 32 52 C48 46, 48 32, 42 18 Z `,
|
|
3673
|
+
transform: "scale(0.98)",
|
|
3674
|
+
idBase: "SnifterGlassGrad",
|
|
3675
|
+
opacity: 0.7,
|
|
3676
|
+
liquidFill
|
|
3677
|
+
}
|
|
3678
|
+
), /* @__PURE__ */ import_react28.default.createElement(
|
|
3679
|
+
"rect",
|
|
3680
|
+
{
|
|
3681
|
+
x: 30,
|
|
3682
|
+
y: 51,
|
|
3683
|
+
width: 4,
|
|
3684
|
+
height: 4,
|
|
3685
|
+
fill: "currentColor",
|
|
3686
|
+
stroke: "currentColor",
|
|
3687
|
+
strokeWidth
|
|
3688
|
+
}
|
|
3689
|
+
), /* @__PURE__ */ import_react28.default.createElement(
|
|
3690
|
+
"path",
|
|
3691
|
+
{
|
|
3692
|
+
d: "M26 54 Q32 51 38 54 L38 55 L26 55 Z",
|
|
3693
|
+
fill: "currentColor",
|
|
3694
|
+
stroke: "currentColor",
|
|
3695
|
+
strokeWidth
|
|
3696
|
+
}
|
|
3697
|
+
));
|
|
3698
|
+
}
|
|
3699
|
+
|
|
3700
|
+
// src/components/glasses/SourGlass.jsx
|
|
3701
|
+
var import_react29 = __toESM(require_react());
|
|
3702
|
+
function SourGlass({
|
|
3703
|
+
liquidFill = null,
|
|
3704
|
+
size = 80,
|
|
3705
|
+
strokeWidth = 0.5
|
|
3706
|
+
}) {
|
|
3707
|
+
return /* @__PURE__ */ import_react29.default.createElement("svg", { width: size, height: size, viewBox: "0 0 64 64" }, /* @__PURE__ */ import_react29.default.createElement(
|
|
3708
|
+
"line",
|
|
3709
|
+
{
|
|
3710
|
+
x1: 16,
|
|
3711
|
+
y1: 18,
|
|
3712
|
+
x2: 48,
|
|
3713
|
+
y2: 18,
|
|
3714
|
+
stroke: "currentColor",
|
|
3715
|
+
strokeWidth
|
|
3716
|
+
}
|
|
3717
|
+
), /* @__PURE__ */ import_react29.default.createElement(
|
|
3718
|
+
Liquid,
|
|
3719
|
+
{
|
|
3720
|
+
d: `
|
|
3721
|
+
M16 18
|
|
3722
|
+
L48 18
|
|
3723
|
+
C46 30, 46 38, 32 42
|
|
3724
|
+
C18 38, 18 30, 16 18
|
|
3725
|
+
Z
|
|
3726
|
+
`,
|
|
3727
|
+
transform: "scale(0.98)",
|
|
3728
|
+
idBase: "SourGlassGrad",
|
|
3729
|
+
opacity: 0.7,
|
|
3730
|
+
liquidFill
|
|
3731
|
+
}
|
|
3732
|
+
), /* @__PURE__ */ import_react29.default.createElement(
|
|
3733
|
+
"path",
|
|
3734
|
+
{
|
|
3735
|
+
d: "\n M16 18\n L48 18\n C46 30, 46 38, 32 42\n C18 38, 18 30, 16 18\n Z\n ",
|
|
3736
|
+
stroke: "currentColor",
|
|
3737
|
+
strokeWidth,
|
|
3738
|
+
fill: "none"
|
|
3739
|
+
}
|
|
3740
|
+
), /* @__PURE__ */ import_react29.default.createElement("rect", { x: 31, y: 42, width: 2, height: 12, fill: "currentColor" }), /* @__PURE__ */ import_react29.default.createElement(
|
|
3741
|
+
"path",
|
|
3742
|
+
{
|
|
3743
|
+
d: "\n M22 54\n C22 52, 42 52, 42 54\n L42 54\n L22 54\n Z\n ",
|
|
3744
|
+
fill: "currentColor"
|
|
3745
|
+
}
|
|
3746
|
+
));
|
|
3747
|
+
}
|
|
3748
|
+
|
|
3749
|
+
// src/components/glasses/TankardGlass.jsx
|
|
3750
|
+
var import_react30 = __toESM(require_react());
|
|
3751
|
+
function TankardGlass({
|
|
3752
|
+
liquidFill = null,
|
|
3753
|
+
size = 80,
|
|
3754
|
+
strokeWidth = 1
|
|
3755
|
+
}) {
|
|
3756
|
+
return /* @__PURE__ */ import_react30.default.createElement("svg", { width: size, height: size, viewBox: "0 0 64 64" }, /* @__PURE__ */ import_react30.default.createElement("rect", { x: 13, y: 44, width: 36, height: 4, fill: "currentColor" }), /* @__PURE__ */ import_react30.default.createElement(
|
|
3757
|
+
Liquid,
|
|
3758
|
+
{
|
|
3759
|
+
d: `M14 10 L48 10 L48 44 L14 44 Z`,
|
|
3760
|
+
transform: "scale(0.98)",
|
|
3761
|
+
idBase: "TankardGlassGrad",
|
|
3762
|
+
opacity: 0.7,
|
|
3763
|
+
liquidFill
|
|
3764
|
+
}
|
|
3765
|
+
), /* @__PURE__ */ import_react30.default.createElement(
|
|
3766
|
+
"rect",
|
|
3767
|
+
{
|
|
3768
|
+
x: 14,
|
|
3769
|
+
y: 10,
|
|
3770
|
+
width: 34,
|
|
3771
|
+
height: 34,
|
|
3772
|
+
fill: "none",
|
|
3773
|
+
stroke: "currentColor",
|
|
3774
|
+
strokeWidth: strokeWidth * 1.4
|
|
3775
|
+
}
|
|
3776
|
+
), /* @__PURE__ */ import_react30.default.createElement("g", null, /* @__PURE__ */ import_react30.default.createElement(
|
|
3777
|
+
"path",
|
|
3778
|
+
{
|
|
3779
|
+
d: "M49 17 C60 19 60 34 49 37",
|
|
3780
|
+
stroke: "currentColor",
|
|
3781
|
+
strokeWidth: strokeWidth * 3,
|
|
3782
|
+
strokeLinecap: "round",
|
|
3783
|
+
strokeLinejoin: "round",
|
|
3784
|
+
fill: "none"
|
|
3785
|
+
}
|
|
3786
|
+
)));
|
|
3787
|
+
}
|
|
3788
|
+
|
|
3789
|
+
// src/components/glasses/TikiGlass.jsx
|
|
3790
|
+
var import_react31 = __toESM(require_react());
|
|
3791
|
+
function TikiGlass({
|
|
3792
|
+
liquidFill = null,
|
|
3793
|
+
size = 80,
|
|
3794
|
+
strokeWidth = 0.5
|
|
3795
|
+
}) {
|
|
3796
|
+
return /* @__PURE__ */ import_react31.default.createElement("svg", { width: size, height: size, viewBox: "0 0 64 64" }, /* @__PURE__ */ import_react31.default.createElement("rect", { x: 21.75, y: 52, width: 20.5, height: 2, fill: "currentColor" }), /* @__PURE__ */ import_react31.default.createElement(
|
|
3797
|
+
"rect",
|
|
3798
|
+
{
|
|
3799
|
+
x: 20,
|
|
3800
|
+
y: 50,
|
|
3801
|
+
width: 24,
|
|
3802
|
+
height: 4,
|
|
3803
|
+
rx: 2,
|
|
3804
|
+
fill: "currentColor",
|
|
3805
|
+
opacity: 0.06
|
|
3806
|
+
}
|
|
3807
|
+
), /* @__PURE__ */ import_react31.default.createElement(
|
|
3808
|
+
"rect",
|
|
3809
|
+
{
|
|
3810
|
+
x: 22,
|
|
3811
|
+
y: 10,
|
|
3812
|
+
width: 20,
|
|
3813
|
+
height: 42,
|
|
3814
|
+
stroke: "currentColor",
|
|
3815
|
+
strokeWidth,
|
|
3816
|
+
fill: "none",
|
|
3817
|
+
opacity: 0.9
|
|
3818
|
+
}
|
|
3819
|
+
), /* @__PURE__ */ import_react31.default.createElement(
|
|
3820
|
+
Liquid,
|
|
3821
|
+
{
|
|
3822
|
+
d: `M21 9 L41 9 L41 51 L21 51 Z`,
|
|
3823
|
+
transform: "scale(0.98)",
|
|
3824
|
+
idBase: "TikiGlassGrad",
|
|
3825
|
+
opacity: 0.7,
|
|
3826
|
+
liquidFill
|
|
3827
|
+
}
|
|
3828
|
+
), /* @__PURE__ */ import_react31.default.createElement("ellipse", { cx: 32, cy: 32, rx: 6, ry: 3, fill: "currentColor" }));
|
|
3829
|
+
}
|
|
3830
|
+
|
|
3831
|
+
// src/components/glasses/ToddyGlass.jsx
|
|
3832
|
+
var import_react32 = __toESM(require_react());
|
|
3833
|
+
function ToddyGlass({
|
|
3834
|
+
liquidFill = null,
|
|
3835
|
+
size = 80,
|
|
3836
|
+
strokeWidth = 0.8
|
|
3837
|
+
}) {
|
|
3838
|
+
return /* @__PURE__ */ import_react32.default.createElement("svg", { width: size, height: size, viewBox: "0 0 64 64" }, /* @__PURE__ */ import_react32.default.createElement(
|
|
3839
|
+
Liquid,
|
|
3840
|
+
{
|
|
3841
|
+
d: `M22 12 H42 V40 H22 Z`,
|
|
3842
|
+
transform: "scale(0.98)",
|
|
3843
|
+
idBase: "ToddyGlassGrad",
|
|
3844
|
+
opacity: 0.7,
|
|
3845
|
+
liquidFill
|
|
3846
|
+
}
|
|
3847
|
+
), /* @__PURE__ */ import_react32.default.createElement(
|
|
3848
|
+
"path",
|
|
3849
|
+
{
|
|
3850
|
+
d: "M22 12 H42 V40 H22 Z",
|
|
3851
|
+
fill: "none",
|
|
3852
|
+
stroke: "currentColor",
|
|
3853
|
+
strokeWidth,
|
|
3854
|
+
strokeLinejoin: "round"
|
|
3855
|
+
}
|
|
3856
|
+
), /* @__PURE__ */ import_react32.default.createElement("g", null, /* @__PURE__ */ import_react32.default.createElement(
|
|
3857
|
+
"path",
|
|
3858
|
+
{
|
|
3859
|
+
d: "M43 16 C52 18 52 34 43 36",
|
|
3860
|
+
stroke: "currentColor",
|
|
3861
|
+
strokeWidth: strokeWidth * 2.4,
|
|
3862
|
+
strokeLinecap: "round",
|
|
3863
|
+
strokeLinejoin: "round",
|
|
3864
|
+
fill: "none"
|
|
3865
|
+
}
|
|
3866
|
+
)), /* @__PURE__ */ import_react32.default.createElement("rect", { x: 30, y: 40, width: 4, height: 6, fill: "currentColor" }), /* @__PURE__ */ import_react32.default.createElement("path", { d: "M22 47 Q32 43 42 47 L42 48 L22 48 Z", fill: "currentColor" }));
|
|
3867
|
+
}
|
|
3868
|
+
|
|
3869
|
+
// src/components/glasses/WhiskeyShotGlass.jsx
|
|
3870
|
+
var import_react33 = __toESM(require_react());
|
|
3871
|
+
function WhiskeyShotGlass({
|
|
3872
|
+
liquidFill = ["#FFFFFF", "#E0E0E0"],
|
|
3873
|
+
size = 80,
|
|
3874
|
+
strokeWidth = 0.5
|
|
3875
|
+
}) {
|
|
3876
|
+
return /* @__PURE__ */ import_react33.default.createElement("svg", { width: size, height: size, viewBox: "0 0 64 64" }, /* @__PURE__ */ import_react33.default.createElement(
|
|
3877
|
+
"rect",
|
|
3878
|
+
{
|
|
3879
|
+
x: 22,
|
|
3880
|
+
y: 30,
|
|
3881
|
+
width: 20,
|
|
3882
|
+
height: 18,
|
|
3883
|
+
stroke: "currentColor",
|
|
3884
|
+
fill: "none",
|
|
3885
|
+
strokeWidth
|
|
3886
|
+
}
|
|
3887
|
+
), /* @__PURE__ */ import_react33.default.createElement(
|
|
3888
|
+
Liquid,
|
|
3889
|
+
{
|
|
3890
|
+
d: `M22 30 L42 30 L42 48 L22 48 Z`,
|
|
3891
|
+
transform: "scale(0.98)",
|
|
3892
|
+
idBase: "ShotGlassGrad",
|
|
3893
|
+
opacity: 0.7,
|
|
3894
|
+
liquidFill
|
|
3895
|
+
}
|
|
3896
|
+
), /* @__PURE__ */ import_react33.default.createElement(
|
|
3897
|
+
"rect",
|
|
3898
|
+
{
|
|
3899
|
+
x: 22,
|
|
3900
|
+
y: 48,
|
|
3901
|
+
width: 20,
|
|
3902
|
+
height: 3,
|
|
3903
|
+
fill: "none",
|
|
3904
|
+
stroke: "currentColor",
|
|
3905
|
+
strokeWidth
|
|
3906
|
+
}
|
|
3907
|
+
));
|
|
3908
|
+
}
|
|
3909
|
+
|
|
3910
|
+
// src/components/glasses/WineGlass.jsx
|
|
3911
|
+
var import_react34 = __toESM(require_react());
|
|
3912
|
+
function WineGlass({
|
|
3913
|
+
liquidFill = null,
|
|
3914
|
+
size = 80,
|
|
3915
|
+
strokeWidth = 0.5
|
|
3916
|
+
}) {
|
|
3917
|
+
const height = Math.round(size * 90 / 80);
|
|
3918
|
+
return /* @__PURE__ */ import_react34.default.createElement("svg", { width: size, height, viewBox: "0 0 64 90" }, /* @__PURE__ */ import_react34.default.createElement(
|
|
3919
|
+
Liquid,
|
|
3920
|
+
{
|
|
3921
|
+
d: `M26 26 L38 26 Q44 62 32 62 Q20 62 26 26 Z`,
|
|
3922
|
+
transform: "scale(0.98)",
|
|
3923
|
+
idBase: "WineGlassGrad",
|
|
3924
|
+
opacity: 0.7,
|
|
3925
|
+
liquidFill
|
|
3926
|
+
}
|
|
3927
|
+
), /* @__PURE__ */ import_react34.default.createElement(
|
|
3928
|
+
"path",
|
|
3929
|
+
{
|
|
3930
|
+
d: "M26 26 L38 26 Q44 62 32 62 Q20 62 26 26 Z",
|
|
3931
|
+
fill: "none",
|
|
3932
|
+
stroke: "currentColor",
|
|
3933
|
+
strokeWidth
|
|
3934
|
+
}
|
|
3935
|
+
), /* @__PURE__ */ import_react34.default.createElement("rect", { x: 31.5, y: 62, width: 1, height: 25, fill: "currentColor" }), /* @__PURE__ */ import_react34.default.createElement("path", { d: "M24 86 Q32 84 40 86 L40 87 L24 87 Z", fill: "currentColor" }));
|
|
3936
|
+
}
|
|
3937
|
+
|
|
3938
|
+
// src/index.js
|
|
3939
|
+
var src_default = {
|
|
3940
|
+
Liquid,
|
|
3941
|
+
AbsintheGlass,
|
|
3942
|
+
BrandySnifterGlass,
|
|
3943
|
+
CollinsGlass,
|
|
3944
|
+
CopperMug,
|
|
3945
|
+
CordialGlass,
|
|
3946
|
+
CoupeGlass,
|
|
3947
|
+
DemitasseGlass,
|
|
3948
|
+
DoubleShotGlass,
|
|
3949
|
+
FizzGlass,
|
|
3950
|
+
FluteGlass,
|
|
3951
|
+
GobletGlass,
|
|
3952
|
+
HighballGlass,
|
|
3953
|
+
HurricaneGlass,
|
|
3954
|
+
IrishCoffeeGlass,
|
|
3955
|
+
JulepCup,
|
|
3956
|
+
MargaritaGlass,
|
|
3957
|
+
MartiniGlass,
|
|
3958
|
+
NickAndNoraGlass,
|
|
3959
|
+
ParfaitGlass,
|
|
3960
|
+
PilsnerGlass,
|
|
3961
|
+
PintGlass,
|
|
3962
|
+
PousseCafeGlass,
|
|
3963
|
+
PunchGlass,
|
|
3964
|
+
RocksGlass,
|
|
3965
|
+
SingleShotGlass,
|
|
3966
|
+
SlingGlass,
|
|
3967
|
+
SnifterGlass,
|
|
3968
|
+
SourGlass,
|
|
3969
|
+
TankardGlass,
|
|
3970
|
+
TikiGlass,
|
|
3971
|
+
ToddyGlass,
|
|
3972
|
+
WhiskeyShotGlass,
|
|
3973
|
+
WineGlass
|
|
3974
|
+
};
|
|
3975
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
3976
|
+
0 && (module.exports = {
|
|
3977
|
+
AbsintheGlass,
|
|
3978
|
+
BrandySnifterGlass,
|
|
3979
|
+
CollinsGlass,
|
|
3980
|
+
CopperMug,
|
|
3981
|
+
CordialGlass,
|
|
3982
|
+
CoupeGlass,
|
|
3983
|
+
DemitasseGlass,
|
|
3984
|
+
DoubleShotGlass,
|
|
3985
|
+
FizzGlass,
|
|
3986
|
+
FluteGlass,
|
|
3987
|
+
GobletGlass,
|
|
3988
|
+
HighballGlass,
|
|
3989
|
+
HurricaneGlass,
|
|
3990
|
+
IrishCoffeeGlass,
|
|
3991
|
+
JulepCup,
|
|
3992
|
+
Liquid,
|
|
3993
|
+
MargaritaGlass,
|
|
3994
|
+
MartiniGlass,
|
|
3995
|
+
NickAndNoraGlass,
|
|
3996
|
+
ParfaitGlass,
|
|
3997
|
+
PilsnerGlass,
|
|
3998
|
+
PintGlass,
|
|
3999
|
+
PousseCafeGlass,
|
|
4000
|
+
PunchGlass,
|
|
4001
|
+
RocksGlass,
|
|
4002
|
+
SingleShotGlass,
|
|
4003
|
+
SlingGlass,
|
|
4004
|
+
SnifterGlass,
|
|
4005
|
+
SourGlass,
|
|
4006
|
+
TankardGlass,
|
|
4007
|
+
TikiGlass,
|
|
4008
|
+
ToddyGlass,
|
|
4009
|
+
WhiskeyShotGlass,
|
|
4010
|
+
WineGlass
|
|
4011
|
+
});
|
|
4012
|
+
/*! Bundled license information:
|
|
4013
|
+
|
|
4014
|
+
react/cjs/react.production.min.js:
|
|
4015
|
+
(**
|
|
4016
|
+
* @license React
|
|
4017
|
+
* react.production.min.js
|
|
4018
|
+
*
|
|
4019
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
4020
|
+
*
|
|
4021
|
+
* This source code is licensed under the MIT license found in the
|
|
4022
|
+
* LICENSE file in the root directory of this source tree.
|
|
4023
|
+
*)
|
|
4024
|
+
|
|
4025
|
+
react/cjs/react.development.js:
|
|
4026
|
+
(**
|
|
4027
|
+
* @license React
|
|
4028
|
+
* react.development.js
|
|
4029
|
+
*
|
|
4030
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
4031
|
+
*
|
|
4032
|
+
* This source code is licensed under the MIT license found in the
|
|
4033
|
+
* LICENSE file in the root directory of this source tree.
|
|
4034
|
+
*)
|
|
4035
|
+
*/
|