@class101/cdn-ui-system 0.0.12 → 0.0.13
Sign up to get free protection for your applications and to get access to all the features.
- package/chunk-EZJASZYR.js +1668 -0
- package/hooks/useNativeResponsiveValue/useNativeResponsiveValue.js +20620 -3
- package/lib/VirtualizedList/VirtualizedList.js +6612 -11
- package/package.json +1 -1
- package/chunk-2A2YD3YP.js +0 -22244
@@ -0,0 +1,1668 @@
|
|
1
|
+
import {
|
2
|
+
require_object_assign
|
3
|
+
} from "./chunk-R4HM35UZ.js";
|
4
|
+
import {
|
5
|
+
__commonJS,
|
6
|
+
__require,
|
7
|
+
init_react_shim
|
8
|
+
} from "./chunk-VIIHQGZ3.js";
|
9
|
+
|
10
|
+
// node_modules/fbjs/lib/ExecutionEnvironment.js
|
11
|
+
var require_ExecutionEnvironment = __commonJS({
|
12
|
+
"node_modules/fbjs/lib/ExecutionEnvironment.js"(exports, module) {
|
13
|
+
init_react_shim();
|
14
|
+
"use strict";
|
15
|
+
var canUseDOM = !!(typeof window !== "undefined" && window.document && window.document.createElement);
|
16
|
+
var ExecutionEnvironment = {
|
17
|
+
canUseDOM,
|
18
|
+
canUseWorkers: typeof Worker !== "undefined",
|
19
|
+
canUseEventListeners: canUseDOM && !!(window.addEventListener || window.attachEvent),
|
20
|
+
canUseViewport: canUseDOM && !!window.screen,
|
21
|
+
isInWorker: !canUseDOM
|
22
|
+
};
|
23
|
+
module.exports = ExecutionEnvironment;
|
24
|
+
}
|
25
|
+
});
|
26
|
+
|
27
|
+
// node_modules/normalize-css-color/index.js
|
28
|
+
var require_normalize_css_color = __commonJS({
|
29
|
+
"node_modules/normalize-css-color/index.js"(exports, module) {
|
30
|
+
init_react_shim();
|
31
|
+
function normalizeColor(color) {
|
32
|
+
var match;
|
33
|
+
if (typeof color === "number") {
|
34
|
+
if (color >>> 0 === color && color >= 0 && color <= 4294967295) {
|
35
|
+
return color;
|
36
|
+
}
|
37
|
+
return null;
|
38
|
+
}
|
39
|
+
if (match = matchers.hex6.exec(color)) {
|
40
|
+
return parseInt(match[1] + "ff", 16) >>> 0;
|
41
|
+
}
|
42
|
+
if (names.hasOwnProperty(color)) {
|
43
|
+
return names[color];
|
44
|
+
}
|
45
|
+
if (match = matchers.rgb.exec(color)) {
|
46
|
+
return (parse255(match[1]) << 24 | parse255(match[2]) << 16 | parse255(match[3]) << 8 | 255) >>> 0;
|
47
|
+
}
|
48
|
+
if (match = matchers.rgba.exec(color)) {
|
49
|
+
return (parse255(match[1]) << 24 | parse255(match[2]) << 16 | parse255(match[3]) << 8 | parse1(match[4])) >>> 0;
|
50
|
+
}
|
51
|
+
if (match = matchers.hex3.exec(color)) {
|
52
|
+
return parseInt(match[1] + match[1] + match[2] + match[2] + match[3] + match[3] + "ff", 16) >>> 0;
|
53
|
+
}
|
54
|
+
if (match = matchers.hex8.exec(color)) {
|
55
|
+
return parseInt(match[1], 16) >>> 0;
|
56
|
+
}
|
57
|
+
if (match = matchers.hex4.exec(color)) {
|
58
|
+
return parseInt(match[1] + match[1] + match[2] + match[2] + match[3] + match[3] + match[4] + match[4], 16) >>> 0;
|
59
|
+
}
|
60
|
+
if (match = matchers.hsl.exec(color)) {
|
61
|
+
return (hslToRgb(parse360(match[1]), parsePercentage(match[2]), parsePercentage(match[3])) | 255) >>> 0;
|
62
|
+
}
|
63
|
+
if (match = matchers.hsla.exec(color)) {
|
64
|
+
return (hslToRgb(parse360(match[1]), parsePercentage(match[2]), parsePercentage(match[3])) | parse1(match[4])) >>> 0;
|
65
|
+
}
|
66
|
+
return null;
|
67
|
+
}
|
68
|
+
function hue2rgb(p, q, t) {
|
69
|
+
if (t < 0) {
|
70
|
+
t += 1;
|
71
|
+
}
|
72
|
+
if (t > 1) {
|
73
|
+
t -= 1;
|
74
|
+
}
|
75
|
+
if (t < 1 / 6) {
|
76
|
+
return p + (q - p) * 6 * t;
|
77
|
+
}
|
78
|
+
if (t < 1 / 2) {
|
79
|
+
return q;
|
80
|
+
}
|
81
|
+
if (t < 2 / 3) {
|
82
|
+
return p + (q - p) * (2 / 3 - t) * 6;
|
83
|
+
}
|
84
|
+
return p;
|
85
|
+
}
|
86
|
+
function hslToRgb(h, s, l) {
|
87
|
+
var q = l < 0.5 ? l * (1 + s) : l + s - l * s;
|
88
|
+
var p = 2 * l - q;
|
89
|
+
var r = hue2rgb(p, q, h + 1 / 3);
|
90
|
+
var g = hue2rgb(p, q, h);
|
91
|
+
var b = hue2rgb(p, q, h - 1 / 3);
|
92
|
+
return Math.round(r * 255) << 24 | Math.round(g * 255) << 16 | Math.round(b * 255) << 8;
|
93
|
+
}
|
94
|
+
var NUMBER = "[-+]?\\d*\\.?\\d+";
|
95
|
+
var PERCENTAGE = NUMBER + "%";
|
96
|
+
function toArray(arrayLike) {
|
97
|
+
return Array.prototype.slice.call(arrayLike, 0);
|
98
|
+
}
|
99
|
+
function call() {
|
100
|
+
return "\\(\\s*(" + toArray(arguments).join(")\\s*,\\s*(") + ")\\s*\\)";
|
101
|
+
}
|
102
|
+
var matchers = {
|
103
|
+
rgb: new RegExp("rgb" + call(NUMBER, NUMBER, NUMBER)),
|
104
|
+
rgba: new RegExp("rgba" + call(NUMBER, NUMBER, NUMBER, NUMBER)),
|
105
|
+
hsl: new RegExp("hsl" + call(NUMBER, PERCENTAGE, PERCENTAGE)),
|
106
|
+
hsla: new RegExp("hsla" + call(NUMBER, PERCENTAGE, PERCENTAGE, NUMBER)),
|
107
|
+
hex3: /^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
|
108
|
+
hex4: /^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
|
109
|
+
hex6: /^#([0-9a-fA-F]{6})$/,
|
110
|
+
hex8: /^#([0-9a-fA-F]{8})$/
|
111
|
+
};
|
112
|
+
function parse255(str) {
|
113
|
+
var int = parseInt(str, 10);
|
114
|
+
if (int < 0) {
|
115
|
+
return 0;
|
116
|
+
}
|
117
|
+
if (int > 255) {
|
118
|
+
return 255;
|
119
|
+
}
|
120
|
+
return int;
|
121
|
+
}
|
122
|
+
function parse360(str) {
|
123
|
+
var int = parseFloat(str);
|
124
|
+
return (int % 360 + 360) % 360 / 360;
|
125
|
+
}
|
126
|
+
function parse1(str) {
|
127
|
+
var num = parseFloat(str);
|
128
|
+
if (num < 0) {
|
129
|
+
return 0;
|
130
|
+
}
|
131
|
+
if (num > 1) {
|
132
|
+
return 255;
|
133
|
+
}
|
134
|
+
return Math.round(num * 255);
|
135
|
+
}
|
136
|
+
function parsePercentage(str) {
|
137
|
+
var int = parseFloat(str, 10);
|
138
|
+
if (int < 0) {
|
139
|
+
return 0;
|
140
|
+
}
|
141
|
+
if (int > 100) {
|
142
|
+
return 1;
|
143
|
+
}
|
144
|
+
return int / 100;
|
145
|
+
}
|
146
|
+
var names = {
|
147
|
+
transparent: 0,
|
148
|
+
aliceblue: 4042850303,
|
149
|
+
antiquewhite: 4209760255,
|
150
|
+
aqua: 16777215,
|
151
|
+
aquamarine: 2147472639,
|
152
|
+
azure: 4043309055,
|
153
|
+
beige: 4126530815,
|
154
|
+
bisque: 4293182719,
|
155
|
+
black: 255,
|
156
|
+
blanchedalmond: 4293643775,
|
157
|
+
blue: 65535,
|
158
|
+
blueviolet: 2318131967,
|
159
|
+
brown: 2771004159,
|
160
|
+
burlywood: 3736635391,
|
161
|
+
burntsienna: 3934150143,
|
162
|
+
cadetblue: 1604231423,
|
163
|
+
chartreuse: 2147418367,
|
164
|
+
chocolate: 3530104575,
|
165
|
+
coral: 4286533887,
|
166
|
+
cornflowerblue: 1687547391,
|
167
|
+
cornsilk: 4294499583,
|
168
|
+
crimson: 3692313855,
|
169
|
+
cyan: 16777215,
|
170
|
+
darkblue: 35839,
|
171
|
+
darkcyan: 9145343,
|
172
|
+
darkgoldenrod: 3095792639,
|
173
|
+
darkgray: 2846468607,
|
174
|
+
darkgreen: 6553855,
|
175
|
+
darkgrey: 2846468607,
|
176
|
+
darkkhaki: 3182914559,
|
177
|
+
darkmagenta: 2332068863,
|
178
|
+
darkolivegreen: 1433087999,
|
179
|
+
darkorange: 4287365375,
|
180
|
+
darkorchid: 2570243327,
|
181
|
+
darkred: 2332033279,
|
182
|
+
darksalmon: 3918953215,
|
183
|
+
darkseagreen: 2411499519,
|
184
|
+
darkslateblue: 1211993087,
|
185
|
+
darkslategray: 793726975,
|
186
|
+
darkslategrey: 793726975,
|
187
|
+
darkturquoise: 13554175,
|
188
|
+
darkviolet: 2483082239,
|
189
|
+
deeppink: 4279538687,
|
190
|
+
deepskyblue: 12582911,
|
191
|
+
dimgray: 1768516095,
|
192
|
+
dimgrey: 1768516095,
|
193
|
+
dodgerblue: 512819199,
|
194
|
+
firebrick: 2988581631,
|
195
|
+
floralwhite: 4294635775,
|
196
|
+
forestgreen: 579543807,
|
197
|
+
fuchsia: 4278255615,
|
198
|
+
gainsboro: 3705462015,
|
199
|
+
ghostwhite: 4177068031,
|
200
|
+
gold: 4292280575,
|
201
|
+
goldenrod: 3668254975,
|
202
|
+
gray: 2155905279,
|
203
|
+
green: 8388863,
|
204
|
+
greenyellow: 2919182335,
|
205
|
+
grey: 2155905279,
|
206
|
+
honeydew: 4043305215,
|
207
|
+
hotpink: 4285117695,
|
208
|
+
indianred: 3445382399,
|
209
|
+
indigo: 1258324735,
|
210
|
+
ivory: 4294963455,
|
211
|
+
khaki: 4041641215,
|
212
|
+
lavender: 3873897215,
|
213
|
+
lavenderblush: 4293981695,
|
214
|
+
lawngreen: 2096890111,
|
215
|
+
lemonchiffon: 4294626815,
|
216
|
+
lightblue: 2916673279,
|
217
|
+
lightcoral: 4034953471,
|
218
|
+
lightcyan: 3774873599,
|
219
|
+
lightgoldenrodyellow: 4210742015,
|
220
|
+
lightgray: 3553874943,
|
221
|
+
lightgreen: 2431553791,
|
222
|
+
lightgrey: 3553874943,
|
223
|
+
lightpink: 4290167295,
|
224
|
+
lightsalmon: 4288707327,
|
225
|
+
lightseagreen: 548580095,
|
226
|
+
lightskyblue: 2278488831,
|
227
|
+
lightslategray: 2005441023,
|
228
|
+
lightslategrey: 2005441023,
|
229
|
+
lightsteelblue: 2965692159,
|
230
|
+
lightyellow: 4294959359,
|
231
|
+
lime: 16711935,
|
232
|
+
limegreen: 852308735,
|
233
|
+
linen: 4210091775,
|
234
|
+
magenta: 4278255615,
|
235
|
+
maroon: 2147483903,
|
236
|
+
mediumaquamarine: 1724754687,
|
237
|
+
mediumblue: 52735,
|
238
|
+
mediumorchid: 3126187007,
|
239
|
+
mediumpurple: 2473647103,
|
240
|
+
mediumseagreen: 1018393087,
|
241
|
+
mediumslateblue: 2070474495,
|
242
|
+
mediumspringgreen: 16423679,
|
243
|
+
mediumturquoise: 1221709055,
|
244
|
+
mediumvioletred: 3340076543,
|
245
|
+
midnightblue: 421097727,
|
246
|
+
mintcream: 4127193855,
|
247
|
+
mistyrose: 4293190143,
|
248
|
+
moccasin: 4293178879,
|
249
|
+
navajowhite: 4292783615,
|
250
|
+
navy: 33023,
|
251
|
+
oldlace: 4260751103,
|
252
|
+
olive: 2155872511,
|
253
|
+
olivedrab: 1804477439,
|
254
|
+
orange: 4289003775,
|
255
|
+
orangered: 4282712319,
|
256
|
+
orchid: 3664828159,
|
257
|
+
palegoldenrod: 4008225535,
|
258
|
+
palegreen: 2566625535,
|
259
|
+
paleturquoise: 2951671551,
|
260
|
+
palevioletred: 3681588223,
|
261
|
+
papayawhip: 4293907967,
|
262
|
+
peachpuff: 4292524543,
|
263
|
+
peru: 3448061951,
|
264
|
+
pink: 4290825215,
|
265
|
+
plum: 3718307327,
|
266
|
+
powderblue: 2967529215,
|
267
|
+
purple: 2147516671,
|
268
|
+
rebeccapurple: 1714657791,
|
269
|
+
red: 4278190335,
|
270
|
+
rosybrown: 3163525119,
|
271
|
+
royalblue: 1097458175,
|
272
|
+
saddlebrown: 2336560127,
|
273
|
+
salmon: 4202722047,
|
274
|
+
sandybrown: 4104413439,
|
275
|
+
seagreen: 780883967,
|
276
|
+
seashell: 4294307583,
|
277
|
+
sienna: 2689740287,
|
278
|
+
silver: 3233857791,
|
279
|
+
skyblue: 2278484991,
|
280
|
+
slateblue: 1784335871,
|
281
|
+
slategray: 1887473919,
|
282
|
+
slategrey: 1887473919,
|
283
|
+
snow: 4294638335,
|
284
|
+
springgreen: 16744447,
|
285
|
+
steelblue: 1182971135,
|
286
|
+
tan: 3535047935,
|
287
|
+
teal: 8421631,
|
288
|
+
thistle: 3636451583,
|
289
|
+
tomato: 4284696575,
|
290
|
+
turquoise: 1088475391,
|
291
|
+
violet: 4001558271,
|
292
|
+
wheat: 4125012991,
|
293
|
+
white: 4294967295,
|
294
|
+
whitesmoke: 4126537215,
|
295
|
+
yellow: 4294902015,
|
296
|
+
yellowgreen: 2597139199
|
297
|
+
};
|
298
|
+
function rgba(colorInt) {
|
299
|
+
var r = Math.round((colorInt & 4278190080) >>> 24);
|
300
|
+
var g = Math.round((colorInt & 16711680) >>> 16);
|
301
|
+
var b = Math.round((colorInt & 65280) >>> 8);
|
302
|
+
var a = ((colorInt & 255) >>> 0) / 255;
|
303
|
+
return {
|
304
|
+
r,
|
305
|
+
g,
|
306
|
+
b,
|
307
|
+
a
|
308
|
+
};
|
309
|
+
}
|
310
|
+
normalizeColor.rgba = rgba;
|
311
|
+
module.exports = normalizeColor;
|
312
|
+
}
|
313
|
+
});
|
314
|
+
|
315
|
+
// node_modules/fbjs/lib/invariant.js
|
316
|
+
var require_invariant = __commonJS({
|
317
|
+
"node_modules/fbjs/lib/invariant.js"(exports, module) {
|
318
|
+
init_react_shim();
|
319
|
+
"use strict";
|
320
|
+
var validateFormat = true ? function(format) {
|
321
|
+
if (format === void 0) {
|
322
|
+
throw new Error("invariant(...): Second argument must be a string.");
|
323
|
+
}
|
324
|
+
} : function(format) {
|
325
|
+
};
|
326
|
+
function invariant(condition, format) {
|
327
|
+
for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
|
328
|
+
args[_key - 2] = arguments[_key];
|
329
|
+
}
|
330
|
+
validateFormat(format);
|
331
|
+
if (!condition) {
|
332
|
+
var error;
|
333
|
+
if (format === void 0) {
|
334
|
+
error = new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");
|
335
|
+
} else {
|
336
|
+
var argIndex = 0;
|
337
|
+
error = new Error(format.replace(/%s/g, function() {
|
338
|
+
return String(args[argIndex++]);
|
339
|
+
}));
|
340
|
+
error.name = "Invariant Violation";
|
341
|
+
}
|
342
|
+
error.framesToPop = 1;
|
343
|
+
throw error;
|
344
|
+
}
|
345
|
+
}
|
346
|
+
module.exports = invariant;
|
347
|
+
}
|
348
|
+
});
|
349
|
+
|
350
|
+
// node_modules/create-react-class/factory.js
|
351
|
+
var require_factory = __commonJS({
|
352
|
+
"node_modules/create-react-class/factory.js"(exports, module) {
|
353
|
+
init_react_shim();
|
354
|
+
"use strict";
|
355
|
+
var _assign = require_object_assign();
|
356
|
+
var emptyObject = {};
|
357
|
+
if (true) {
|
358
|
+
Object.freeze(emptyObject);
|
359
|
+
}
|
360
|
+
var validateFormat = function validateFormat2(format) {
|
361
|
+
};
|
362
|
+
if (true) {
|
363
|
+
validateFormat = function validateFormat2(format) {
|
364
|
+
if (format === void 0) {
|
365
|
+
throw new Error("invariant requires an error message argument");
|
366
|
+
}
|
367
|
+
};
|
368
|
+
}
|
369
|
+
function _invariant(condition, format, a, b, c, d, e, f) {
|
370
|
+
validateFormat(format);
|
371
|
+
if (!condition) {
|
372
|
+
var error;
|
373
|
+
if (format === void 0) {
|
374
|
+
error = new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");
|
375
|
+
} else {
|
376
|
+
var args = [a, b, c, d, e, f];
|
377
|
+
var argIndex = 0;
|
378
|
+
error = new Error(format.replace(/%s/g, function() {
|
379
|
+
return args[argIndex++];
|
380
|
+
}));
|
381
|
+
error.name = "Invariant Violation";
|
382
|
+
}
|
383
|
+
error.framesToPop = 1;
|
384
|
+
throw error;
|
385
|
+
}
|
386
|
+
}
|
387
|
+
var warning = function() {
|
388
|
+
};
|
389
|
+
if (true) {
|
390
|
+
printWarning = function printWarning2(format) {
|
391
|
+
for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
392
|
+
args[_key - 1] = arguments[_key];
|
393
|
+
}
|
394
|
+
var argIndex = 0;
|
395
|
+
var message = "Warning: " + format.replace(/%s/g, function() {
|
396
|
+
return args[argIndex++];
|
397
|
+
});
|
398
|
+
if (typeof console !== "undefined") {
|
399
|
+
console.error(message);
|
400
|
+
}
|
401
|
+
try {
|
402
|
+
throw new Error(message);
|
403
|
+
} catch (x) {
|
404
|
+
}
|
405
|
+
};
|
406
|
+
warning = function warning2(condition, format) {
|
407
|
+
if (format === void 0) {
|
408
|
+
throw new Error("`warning(condition, format, ...args)` requires a warning message argument");
|
409
|
+
}
|
410
|
+
if (format.indexOf("Failed Composite propType: ") === 0) {
|
411
|
+
return;
|
412
|
+
}
|
413
|
+
if (!condition) {
|
414
|
+
for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {
|
415
|
+
args[_key2 - 2] = arguments[_key2];
|
416
|
+
}
|
417
|
+
printWarning.apply(void 0, [format].concat(args));
|
418
|
+
}
|
419
|
+
};
|
420
|
+
}
|
421
|
+
var printWarning;
|
422
|
+
var MIXINS_KEY = "mixins";
|
423
|
+
function identity(fn) {
|
424
|
+
return fn;
|
425
|
+
}
|
426
|
+
var ReactPropTypeLocationNames;
|
427
|
+
if (true) {
|
428
|
+
ReactPropTypeLocationNames = {
|
429
|
+
prop: "prop",
|
430
|
+
context: "context",
|
431
|
+
childContext: "child context"
|
432
|
+
};
|
433
|
+
} else {
|
434
|
+
ReactPropTypeLocationNames = {};
|
435
|
+
}
|
436
|
+
function factory(ReactComponent, isValidElement, ReactNoopUpdateQueue) {
|
437
|
+
var injectedMixins = [];
|
438
|
+
var ReactClassInterface = {
|
439
|
+
mixins: "DEFINE_MANY",
|
440
|
+
statics: "DEFINE_MANY",
|
441
|
+
propTypes: "DEFINE_MANY",
|
442
|
+
contextTypes: "DEFINE_MANY",
|
443
|
+
childContextTypes: "DEFINE_MANY",
|
444
|
+
getDefaultProps: "DEFINE_MANY_MERGED",
|
445
|
+
getInitialState: "DEFINE_MANY_MERGED",
|
446
|
+
getChildContext: "DEFINE_MANY_MERGED",
|
447
|
+
render: "DEFINE_ONCE",
|
448
|
+
componentWillMount: "DEFINE_MANY",
|
449
|
+
componentDidMount: "DEFINE_MANY",
|
450
|
+
componentWillReceiveProps: "DEFINE_MANY",
|
451
|
+
shouldComponentUpdate: "DEFINE_ONCE",
|
452
|
+
componentWillUpdate: "DEFINE_MANY",
|
453
|
+
componentDidUpdate: "DEFINE_MANY",
|
454
|
+
componentWillUnmount: "DEFINE_MANY",
|
455
|
+
UNSAFE_componentWillMount: "DEFINE_MANY",
|
456
|
+
UNSAFE_componentWillReceiveProps: "DEFINE_MANY",
|
457
|
+
UNSAFE_componentWillUpdate: "DEFINE_MANY",
|
458
|
+
updateComponent: "OVERRIDE_BASE"
|
459
|
+
};
|
460
|
+
var ReactClassStaticInterface = {
|
461
|
+
getDerivedStateFromProps: "DEFINE_MANY_MERGED"
|
462
|
+
};
|
463
|
+
var RESERVED_SPEC_KEYS = {
|
464
|
+
displayName: function(Constructor, displayName) {
|
465
|
+
Constructor.displayName = displayName;
|
466
|
+
},
|
467
|
+
mixins: function(Constructor, mixins) {
|
468
|
+
if (mixins) {
|
469
|
+
for (var i = 0; i < mixins.length; i++) {
|
470
|
+
mixSpecIntoComponent(Constructor, mixins[i]);
|
471
|
+
}
|
472
|
+
}
|
473
|
+
},
|
474
|
+
childContextTypes: function(Constructor, childContextTypes) {
|
475
|
+
if (true) {
|
476
|
+
validateTypeDef(Constructor, childContextTypes, "childContext");
|
477
|
+
}
|
478
|
+
Constructor.childContextTypes = _assign({}, Constructor.childContextTypes, childContextTypes);
|
479
|
+
},
|
480
|
+
contextTypes: function(Constructor, contextTypes) {
|
481
|
+
if (true) {
|
482
|
+
validateTypeDef(Constructor, contextTypes, "context");
|
483
|
+
}
|
484
|
+
Constructor.contextTypes = _assign({}, Constructor.contextTypes, contextTypes);
|
485
|
+
},
|
486
|
+
getDefaultProps: function(Constructor, getDefaultProps) {
|
487
|
+
if (Constructor.getDefaultProps) {
|
488
|
+
Constructor.getDefaultProps = createMergedResultFunction(Constructor.getDefaultProps, getDefaultProps);
|
489
|
+
} else {
|
490
|
+
Constructor.getDefaultProps = getDefaultProps;
|
491
|
+
}
|
492
|
+
},
|
493
|
+
propTypes: function(Constructor, propTypes) {
|
494
|
+
if (true) {
|
495
|
+
validateTypeDef(Constructor, propTypes, "prop");
|
496
|
+
}
|
497
|
+
Constructor.propTypes = _assign({}, Constructor.propTypes, propTypes);
|
498
|
+
},
|
499
|
+
statics: function(Constructor, statics) {
|
500
|
+
mixStaticSpecIntoComponent(Constructor, statics);
|
501
|
+
},
|
502
|
+
autobind: function() {
|
503
|
+
}
|
504
|
+
};
|
505
|
+
function validateTypeDef(Constructor, typeDef, location) {
|
506
|
+
for (var propName in typeDef) {
|
507
|
+
if (typeDef.hasOwnProperty(propName)) {
|
508
|
+
if (true) {
|
509
|
+
warning(typeof typeDef[propName] === "function", "%s: %s type `%s` is invalid; it must be a function, usually from React.PropTypes.", Constructor.displayName || "ReactClass", ReactPropTypeLocationNames[location], propName);
|
510
|
+
}
|
511
|
+
}
|
512
|
+
}
|
513
|
+
}
|
514
|
+
function validateMethodOverride(isAlreadyDefined, name) {
|
515
|
+
var specPolicy = ReactClassInterface.hasOwnProperty(name) ? ReactClassInterface[name] : null;
|
516
|
+
if (ReactClassMixin.hasOwnProperty(name)) {
|
517
|
+
_invariant(specPolicy === "OVERRIDE_BASE", "ReactClassInterface: You are attempting to override `%s` from your class specification. Ensure that your method names do not overlap with React methods.", name);
|
518
|
+
}
|
519
|
+
if (isAlreadyDefined) {
|
520
|
+
_invariant(specPolicy === "DEFINE_MANY" || specPolicy === "DEFINE_MANY_MERGED", "ReactClassInterface: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.", name);
|
521
|
+
}
|
522
|
+
}
|
523
|
+
function mixSpecIntoComponent(Constructor, spec) {
|
524
|
+
if (!spec) {
|
525
|
+
if (true) {
|
526
|
+
var typeofSpec = typeof spec;
|
527
|
+
var isMixinValid = typeofSpec === "object" && spec !== null;
|
528
|
+
if (true) {
|
529
|
+
warning(isMixinValid, "%s: You're attempting to include a mixin that is either null or not an object. Check the mixins included by the component, as well as any mixins they include themselves. Expected object but got %s.", Constructor.displayName || "ReactClass", spec === null ? null : typeofSpec);
|
530
|
+
}
|
531
|
+
}
|
532
|
+
return;
|
533
|
+
}
|
534
|
+
_invariant(typeof spec !== "function", "ReactClass: You're attempting to use a component class or function as a mixin. Instead, just use a regular object.");
|
535
|
+
_invariant(!isValidElement(spec), "ReactClass: You're attempting to use a component as a mixin. Instead, just use a regular object.");
|
536
|
+
var proto = Constructor.prototype;
|
537
|
+
var autoBindPairs = proto.__reactAutoBindPairs;
|
538
|
+
if (spec.hasOwnProperty(MIXINS_KEY)) {
|
539
|
+
RESERVED_SPEC_KEYS.mixins(Constructor, spec.mixins);
|
540
|
+
}
|
541
|
+
for (var name in spec) {
|
542
|
+
if (!spec.hasOwnProperty(name)) {
|
543
|
+
continue;
|
544
|
+
}
|
545
|
+
if (name === MIXINS_KEY) {
|
546
|
+
continue;
|
547
|
+
}
|
548
|
+
var property = spec[name];
|
549
|
+
var isAlreadyDefined = proto.hasOwnProperty(name);
|
550
|
+
validateMethodOverride(isAlreadyDefined, name);
|
551
|
+
if (RESERVED_SPEC_KEYS.hasOwnProperty(name)) {
|
552
|
+
RESERVED_SPEC_KEYS[name](Constructor, property);
|
553
|
+
} else {
|
554
|
+
var isReactClassMethod = ReactClassInterface.hasOwnProperty(name);
|
555
|
+
var isFunction = typeof property === "function";
|
556
|
+
var shouldAutoBind = isFunction && !isReactClassMethod && !isAlreadyDefined && spec.autobind !== false;
|
557
|
+
if (shouldAutoBind) {
|
558
|
+
autoBindPairs.push(name, property);
|
559
|
+
proto[name] = property;
|
560
|
+
} else {
|
561
|
+
if (isAlreadyDefined) {
|
562
|
+
var specPolicy = ReactClassInterface[name];
|
563
|
+
_invariant(isReactClassMethod && (specPolicy === "DEFINE_MANY_MERGED" || specPolicy === "DEFINE_MANY"), "ReactClass: Unexpected spec policy %s for key %s when mixing in component specs.", specPolicy, name);
|
564
|
+
if (specPolicy === "DEFINE_MANY_MERGED") {
|
565
|
+
proto[name] = createMergedResultFunction(proto[name], property);
|
566
|
+
} else if (specPolicy === "DEFINE_MANY") {
|
567
|
+
proto[name] = createChainedFunction(proto[name], property);
|
568
|
+
}
|
569
|
+
} else {
|
570
|
+
proto[name] = property;
|
571
|
+
if (true) {
|
572
|
+
if (typeof property === "function" && spec.displayName) {
|
573
|
+
proto[name].displayName = spec.displayName + "_" + name;
|
574
|
+
}
|
575
|
+
}
|
576
|
+
}
|
577
|
+
}
|
578
|
+
}
|
579
|
+
}
|
580
|
+
}
|
581
|
+
function mixStaticSpecIntoComponent(Constructor, statics) {
|
582
|
+
if (!statics) {
|
583
|
+
return;
|
584
|
+
}
|
585
|
+
for (var name in statics) {
|
586
|
+
var property = statics[name];
|
587
|
+
if (!statics.hasOwnProperty(name)) {
|
588
|
+
continue;
|
589
|
+
}
|
590
|
+
var isReserved = name in RESERVED_SPEC_KEYS;
|
591
|
+
_invariant(!isReserved, 'ReactClass: You are attempting to define a reserved property, `%s`, that shouldn\'t be on the "statics" key. Define it as an instance property instead; it will still be accessible on the constructor.', name);
|
592
|
+
var isAlreadyDefined = name in Constructor;
|
593
|
+
if (isAlreadyDefined) {
|
594
|
+
var specPolicy = ReactClassStaticInterface.hasOwnProperty(name) ? ReactClassStaticInterface[name] : null;
|
595
|
+
_invariant(specPolicy === "DEFINE_MANY_MERGED", "ReactClass: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.", name);
|
596
|
+
Constructor[name] = createMergedResultFunction(Constructor[name], property);
|
597
|
+
return;
|
598
|
+
}
|
599
|
+
Constructor[name] = property;
|
600
|
+
}
|
601
|
+
}
|
602
|
+
function mergeIntoWithNoDuplicateKeys(one, two) {
|
603
|
+
_invariant(one && two && typeof one === "object" && typeof two === "object", "mergeIntoWithNoDuplicateKeys(): Cannot merge non-objects.");
|
604
|
+
for (var key in two) {
|
605
|
+
if (two.hasOwnProperty(key)) {
|
606
|
+
_invariant(one[key] === void 0, "mergeIntoWithNoDuplicateKeys(): Tried to merge two objects with the same key: `%s`. This conflict may be due to a mixin; in particular, this may be caused by two getInitialState() or getDefaultProps() methods returning objects with clashing keys.", key);
|
607
|
+
one[key] = two[key];
|
608
|
+
}
|
609
|
+
}
|
610
|
+
return one;
|
611
|
+
}
|
612
|
+
function createMergedResultFunction(one, two) {
|
613
|
+
return function mergedResult() {
|
614
|
+
var a = one.apply(this, arguments);
|
615
|
+
var b = two.apply(this, arguments);
|
616
|
+
if (a == null) {
|
617
|
+
return b;
|
618
|
+
} else if (b == null) {
|
619
|
+
return a;
|
620
|
+
}
|
621
|
+
var c = {};
|
622
|
+
mergeIntoWithNoDuplicateKeys(c, a);
|
623
|
+
mergeIntoWithNoDuplicateKeys(c, b);
|
624
|
+
return c;
|
625
|
+
};
|
626
|
+
}
|
627
|
+
function createChainedFunction(one, two) {
|
628
|
+
return function chainedFunction() {
|
629
|
+
one.apply(this, arguments);
|
630
|
+
two.apply(this, arguments);
|
631
|
+
};
|
632
|
+
}
|
633
|
+
function bindAutoBindMethod(component, method) {
|
634
|
+
var boundMethod = method.bind(component);
|
635
|
+
if (true) {
|
636
|
+
boundMethod.__reactBoundContext = component;
|
637
|
+
boundMethod.__reactBoundMethod = method;
|
638
|
+
boundMethod.__reactBoundArguments = null;
|
639
|
+
var componentName = component.constructor.displayName;
|
640
|
+
var _bind = boundMethod.bind;
|
641
|
+
boundMethod.bind = function(newThis) {
|
642
|
+
for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
643
|
+
args[_key - 1] = arguments[_key];
|
644
|
+
}
|
645
|
+
if (newThis !== component && newThis !== null) {
|
646
|
+
if (true) {
|
647
|
+
warning(false, "bind(): React component methods may only be bound to the component instance. See %s", componentName);
|
648
|
+
}
|
649
|
+
} else if (!args.length) {
|
650
|
+
if (true) {
|
651
|
+
warning(false, "bind(): You are binding a component method to the component. React does this for you automatically in a high-performance way, so you can safely remove this call. See %s", componentName);
|
652
|
+
}
|
653
|
+
return boundMethod;
|
654
|
+
}
|
655
|
+
var reboundMethod = _bind.apply(boundMethod, arguments);
|
656
|
+
reboundMethod.__reactBoundContext = component;
|
657
|
+
reboundMethod.__reactBoundMethod = method;
|
658
|
+
reboundMethod.__reactBoundArguments = args;
|
659
|
+
return reboundMethod;
|
660
|
+
};
|
661
|
+
}
|
662
|
+
return boundMethod;
|
663
|
+
}
|
664
|
+
function bindAutoBindMethods(component) {
|
665
|
+
var pairs = component.__reactAutoBindPairs;
|
666
|
+
for (var i = 0; i < pairs.length; i += 2) {
|
667
|
+
var autoBindKey = pairs[i];
|
668
|
+
var method = pairs[i + 1];
|
669
|
+
component[autoBindKey] = bindAutoBindMethod(component, method);
|
670
|
+
}
|
671
|
+
}
|
672
|
+
var IsMountedPreMixin = {
|
673
|
+
componentDidMount: function() {
|
674
|
+
this.__isMounted = true;
|
675
|
+
}
|
676
|
+
};
|
677
|
+
var IsMountedPostMixin = {
|
678
|
+
componentWillUnmount: function() {
|
679
|
+
this.__isMounted = false;
|
680
|
+
}
|
681
|
+
};
|
682
|
+
var ReactClassMixin = {
|
683
|
+
replaceState: function(newState, callback) {
|
684
|
+
this.updater.enqueueReplaceState(this, newState, callback);
|
685
|
+
},
|
686
|
+
isMounted: function() {
|
687
|
+
if (true) {
|
688
|
+
warning(this.__didWarnIsMounted, "%s: isMounted is deprecated. Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks.", this.constructor && this.constructor.displayName || this.name || "Component");
|
689
|
+
this.__didWarnIsMounted = true;
|
690
|
+
}
|
691
|
+
return !!this.__isMounted;
|
692
|
+
}
|
693
|
+
};
|
694
|
+
var ReactClassComponent = function() {
|
695
|
+
};
|
696
|
+
_assign(ReactClassComponent.prototype, ReactComponent.prototype, ReactClassMixin);
|
697
|
+
function createClass(spec) {
|
698
|
+
var Constructor = identity(function(props, context, updater) {
|
699
|
+
if (true) {
|
700
|
+
warning(this instanceof Constructor, "Something is calling a React component directly. Use a factory or JSX instead. See: https://fb.me/react-legacyfactory");
|
701
|
+
}
|
702
|
+
if (this.__reactAutoBindPairs.length) {
|
703
|
+
bindAutoBindMethods(this);
|
704
|
+
}
|
705
|
+
this.props = props;
|
706
|
+
this.context = context;
|
707
|
+
this.refs = emptyObject;
|
708
|
+
this.updater = updater || ReactNoopUpdateQueue;
|
709
|
+
this.state = null;
|
710
|
+
var initialState = this.getInitialState ? this.getInitialState() : null;
|
711
|
+
if (true) {
|
712
|
+
if (initialState === void 0 && this.getInitialState._isMockFunction) {
|
713
|
+
initialState = null;
|
714
|
+
}
|
715
|
+
}
|
716
|
+
_invariant(typeof initialState === "object" && !Array.isArray(initialState), "%s.getInitialState(): must return an object or null", Constructor.displayName || "ReactCompositeComponent");
|
717
|
+
this.state = initialState;
|
718
|
+
});
|
719
|
+
Constructor.prototype = new ReactClassComponent();
|
720
|
+
Constructor.prototype.constructor = Constructor;
|
721
|
+
Constructor.prototype.__reactAutoBindPairs = [];
|
722
|
+
injectedMixins.forEach(mixSpecIntoComponent.bind(null, Constructor));
|
723
|
+
mixSpecIntoComponent(Constructor, IsMountedPreMixin);
|
724
|
+
mixSpecIntoComponent(Constructor, spec);
|
725
|
+
mixSpecIntoComponent(Constructor, IsMountedPostMixin);
|
726
|
+
if (Constructor.getDefaultProps) {
|
727
|
+
Constructor.defaultProps = Constructor.getDefaultProps();
|
728
|
+
}
|
729
|
+
if (true) {
|
730
|
+
if (Constructor.getDefaultProps) {
|
731
|
+
Constructor.getDefaultProps.isReactClassApproved = {};
|
732
|
+
}
|
733
|
+
if (Constructor.prototype.getInitialState) {
|
734
|
+
Constructor.prototype.getInitialState.isReactClassApproved = {};
|
735
|
+
}
|
736
|
+
}
|
737
|
+
_invariant(Constructor.prototype.render, "createClass(...): Class specification must implement a `render` method.");
|
738
|
+
if (true) {
|
739
|
+
warning(!Constructor.prototype.componentShouldUpdate, "%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.", spec.displayName || "A component");
|
740
|
+
warning(!Constructor.prototype.componentWillRecieveProps, "%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?", spec.displayName || "A component");
|
741
|
+
warning(!Constructor.prototype.UNSAFE_componentWillRecieveProps, "%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?", spec.displayName || "A component");
|
742
|
+
}
|
743
|
+
for (var methodName in ReactClassInterface) {
|
744
|
+
if (!Constructor.prototype[methodName]) {
|
745
|
+
Constructor.prototype[methodName] = null;
|
746
|
+
}
|
747
|
+
}
|
748
|
+
return Constructor;
|
749
|
+
}
|
750
|
+
return createClass;
|
751
|
+
}
|
752
|
+
module.exports = factory;
|
753
|
+
}
|
754
|
+
});
|
755
|
+
|
756
|
+
// node_modules/create-react-class/index.js
|
757
|
+
var require_create_react_class = __commonJS({
|
758
|
+
"node_modules/create-react-class/index.js"(exports, module) {
|
759
|
+
init_react_shim();
|
760
|
+
"use strict";
|
761
|
+
var React = __require("react");
|
762
|
+
var factory = require_factory();
|
763
|
+
if (typeof React === "undefined") {
|
764
|
+
throw Error("create-react-class could not find the React object. If you are using script tags, make sure that React is being loaded before create-react-class.");
|
765
|
+
}
|
766
|
+
var ReactNoopUpdateQueue = new React.Component().updater;
|
767
|
+
module.exports = factory(React.Component, React.isValidElement, ReactNoopUpdateQueue);
|
768
|
+
}
|
769
|
+
});
|
770
|
+
|
771
|
+
// node_modules/fbjs/lib/emptyFunction.js
|
772
|
+
var require_emptyFunction = __commonJS({
|
773
|
+
"node_modules/fbjs/lib/emptyFunction.js"(exports, module) {
|
774
|
+
init_react_shim();
|
775
|
+
"use strict";
|
776
|
+
function makeEmptyFunction(arg) {
|
777
|
+
return function() {
|
778
|
+
return arg;
|
779
|
+
};
|
780
|
+
}
|
781
|
+
var emptyFunction = function emptyFunction2() {
|
782
|
+
};
|
783
|
+
emptyFunction.thatReturns = makeEmptyFunction;
|
784
|
+
emptyFunction.thatReturnsFalse = makeEmptyFunction(false);
|
785
|
+
emptyFunction.thatReturnsTrue = makeEmptyFunction(true);
|
786
|
+
emptyFunction.thatReturnsNull = makeEmptyFunction(null);
|
787
|
+
emptyFunction.thatReturnsThis = function() {
|
788
|
+
return this;
|
789
|
+
};
|
790
|
+
emptyFunction.thatReturnsArgument = function(arg) {
|
791
|
+
return arg;
|
792
|
+
};
|
793
|
+
module.exports = emptyFunction;
|
794
|
+
}
|
795
|
+
});
|
796
|
+
|
797
|
+
// node_modules/fbjs/lib/warning.js
|
798
|
+
var require_warning = __commonJS({
|
799
|
+
"node_modules/fbjs/lib/warning.js"(exports, module) {
|
800
|
+
init_react_shim();
|
801
|
+
"use strict";
|
802
|
+
var emptyFunction = require_emptyFunction();
|
803
|
+
function printWarning(format) {
|
804
|
+
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
805
|
+
args[_key - 1] = arguments[_key];
|
806
|
+
}
|
807
|
+
var argIndex = 0;
|
808
|
+
var message = "Warning: " + format.replace(/%s/g, function() {
|
809
|
+
return args[argIndex++];
|
810
|
+
});
|
811
|
+
if (typeof console !== "undefined") {
|
812
|
+
console.error(message);
|
813
|
+
}
|
814
|
+
try {
|
815
|
+
throw new Error(message);
|
816
|
+
} catch (x) {
|
817
|
+
}
|
818
|
+
}
|
819
|
+
var warning = true ? function(condition, format) {
|
820
|
+
if (format === void 0) {
|
821
|
+
throw new Error("`warning(condition, format, ...args)` requires a warning message argument");
|
822
|
+
}
|
823
|
+
if (!condition) {
|
824
|
+
for (var _len2 = arguments.length, args = new Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {
|
825
|
+
args[_key2 - 2] = arguments[_key2];
|
826
|
+
}
|
827
|
+
printWarning.apply(void 0, [format].concat(args));
|
828
|
+
}
|
829
|
+
} : emptyFunction;
|
830
|
+
module.exports = warning;
|
831
|
+
}
|
832
|
+
});
|
833
|
+
|
834
|
+
// node_modules/hyphenate-style-name/index.cjs.js
|
835
|
+
var require_index_cjs = __commonJS({
|
836
|
+
"node_modules/hyphenate-style-name/index.cjs.js"(exports, module) {
|
837
|
+
init_react_shim();
|
838
|
+
"use strict";
|
839
|
+
var uppercasePattern = /[A-Z]/g;
|
840
|
+
var msPattern = /^ms-/;
|
841
|
+
var cache = {};
|
842
|
+
function toHyphenLower(match) {
|
843
|
+
return "-" + match.toLowerCase();
|
844
|
+
}
|
845
|
+
function hyphenateStyleName(name) {
|
846
|
+
if (cache.hasOwnProperty(name)) {
|
847
|
+
return cache[name];
|
848
|
+
}
|
849
|
+
var hName = name.replace(uppercasePattern, toHyphenLower);
|
850
|
+
return cache[name] = msPattern.test(hName) ? "-" + hName : hName;
|
851
|
+
}
|
852
|
+
module.exports = hyphenateStyleName;
|
853
|
+
}
|
854
|
+
});
|
855
|
+
|
856
|
+
// node_modules/inline-style-prefixer/lib/utils/capitalizeString.js
|
857
|
+
var require_capitalizeString = __commonJS({
|
858
|
+
"node_modules/inline-style-prefixer/lib/utils/capitalizeString.js"(exports) {
|
859
|
+
init_react_shim();
|
860
|
+
"use strict";
|
861
|
+
Object.defineProperty(exports, "__esModule", {
|
862
|
+
value: true
|
863
|
+
});
|
864
|
+
exports.default = capitalizeString;
|
865
|
+
function capitalizeString(str) {
|
866
|
+
return str.charAt(0).toUpperCase() + str.slice(1);
|
867
|
+
}
|
868
|
+
}
|
869
|
+
});
|
870
|
+
|
871
|
+
// node_modules/inline-style-prefixer/lib/utils/prefixProperty.js
|
872
|
+
var require_prefixProperty = __commonJS({
|
873
|
+
"node_modules/inline-style-prefixer/lib/utils/prefixProperty.js"(exports) {
|
874
|
+
init_react_shim();
|
875
|
+
"use strict";
|
876
|
+
Object.defineProperty(exports, "__esModule", {
|
877
|
+
value: true
|
878
|
+
});
|
879
|
+
exports.default = prefixProperty;
|
880
|
+
var _capitalizeString = require_capitalizeString();
|
881
|
+
var _capitalizeString2 = _interopRequireDefault(_capitalizeString);
|
882
|
+
function _interopRequireDefault(obj) {
|
883
|
+
return obj && obj.__esModule ? obj : { default: obj };
|
884
|
+
}
|
885
|
+
function prefixProperty(prefixProperties, property, style) {
|
886
|
+
if (prefixProperties.hasOwnProperty(property)) {
|
887
|
+
var newStyle = {};
|
888
|
+
var requiredPrefixes = prefixProperties[property];
|
889
|
+
var capitalizedProperty = (0, _capitalizeString2.default)(property);
|
890
|
+
var keys = Object.keys(style);
|
891
|
+
for (var i = 0; i < keys.length; i++) {
|
892
|
+
var styleProperty = keys[i];
|
893
|
+
if (styleProperty === property) {
|
894
|
+
for (var j = 0; j < requiredPrefixes.length; j++) {
|
895
|
+
newStyle[requiredPrefixes[j] + capitalizedProperty] = style[property];
|
896
|
+
}
|
897
|
+
}
|
898
|
+
newStyle[styleProperty] = style[styleProperty];
|
899
|
+
}
|
900
|
+
return newStyle;
|
901
|
+
}
|
902
|
+
return style;
|
903
|
+
}
|
904
|
+
}
|
905
|
+
});
|
906
|
+
|
907
|
+
// node_modules/inline-style-prefixer/lib/utils/prefixValue.js
|
908
|
+
var require_prefixValue = __commonJS({
|
909
|
+
"node_modules/inline-style-prefixer/lib/utils/prefixValue.js"(exports) {
|
910
|
+
init_react_shim();
|
911
|
+
"use strict";
|
912
|
+
Object.defineProperty(exports, "__esModule", {
|
913
|
+
value: true
|
914
|
+
});
|
915
|
+
exports.default = prefixValue;
|
916
|
+
function prefixValue(plugins, property, value, style, metaData) {
|
917
|
+
for (var i = 0, len = plugins.length; i < len; ++i) {
|
918
|
+
var processedValue = plugins[i](property, value, style, metaData);
|
919
|
+
if (processedValue) {
|
920
|
+
return processedValue;
|
921
|
+
}
|
922
|
+
}
|
923
|
+
}
|
924
|
+
}
|
925
|
+
});
|
926
|
+
|
927
|
+
// node_modules/inline-style-prefixer/lib/utils/addNewValuesOnly.js
|
928
|
+
var require_addNewValuesOnly = __commonJS({
|
929
|
+
"node_modules/inline-style-prefixer/lib/utils/addNewValuesOnly.js"(exports) {
|
930
|
+
init_react_shim();
|
931
|
+
"use strict";
|
932
|
+
Object.defineProperty(exports, "__esModule", {
|
933
|
+
value: true
|
934
|
+
});
|
935
|
+
exports.default = addNewValuesOnly;
|
936
|
+
function addIfNew(list, value) {
|
937
|
+
if (list.indexOf(value) === -1) {
|
938
|
+
list.push(value);
|
939
|
+
}
|
940
|
+
}
|
941
|
+
function addNewValuesOnly(list, values) {
|
942
|
+
if (Array.isArray(values)) {
|
943
|
+
for (var i = 0, len = values.length; i < len; ++i) {
|
944
|
+
addIfNew(list, values[i]);
|
945
|
+
}
|
946
|
+
} else {
|
947
|
+
addIfNew(list, values);
|
948
|
+
}
|
949
|
+
}
|
950
|
+
}
|
951
|
+
});
|
952
|
+
|
953
|
+
// node_modules/inline-style-prefixer/lib/utils/isObject.js
|
954
|
+
var require_isObject = __commonJS({
|
955
|
+
"node_modules/inline-style-prefixer/lib/utils/isObject.js"(exports) {
|
956
|
+
init_react_shim();
|
957
|
+
"use strict";
|
958
|
+
Object.defineProperty(exports, "__esModule", {
|
959
|
+
value: true
|
960
|
+
});
|
961
|
+
exports.default = isObject;
|
962
|
+
function isObject(value) {
|
963
|
+
return value instanceof Object && !Array.isArray(value);
|
964
|
+
}
|
965
|
+
}
|
966
|
+
});
|
967
|
+
|
968
|
+
// node_modules/inline-style-prefixer/lib/createPrefixer.js
|
969
|
+
var require_createPrefixer = __commonJS({
|
970
|
+
"node_modules/inline-style-prefixer/lib/createPrefixer.js"(exports) {
|
971
|
+
init_react_shim();
|
972
|
+
"use strict";
|
973
|
+
Object.defineProperty(exports, "__esModule", {
|
974
|
+
value: true
|
975
|
+
});
|
976
|
+
exports.default = createPrefixer;
|
977
|
+
var _prefixProperty = require_prefixProperty();
|
978
|
+
var _prefixProperty2 = _interopRequireDefault(_prefixProperty);
|
979
|
+
var _prefixValue = require_prefixValue();
|
980
|
+
var _prefixValue2 = _interopRequireDefault(_prefixValue);
|
981
|
+
var _addNewValuesOnly = require_addNewValuesOnly();
|
982
|
+
var _addNewValuesOnly2 = _interopRequireDefault(_addNewValuesOnly);
|
983
|
+
var _isObject = require_isObject();
|
984
|
+
var _isObject2 = _interopRequireDefault(_isObject);
|
985
|
+
function _interopRequireDefault(obj) {
|
986
|
+
return obj && obj.__esModule ? obj : { default: obj };
|
987
|
+
}
|
988
|
+
function createPrefixer(_ref) {
|
989
|
+
var prefixMap = _ref.prefixMap, plugins = _ref.plugins;
|
990
|
+
return function prefix(style) {
|
991
|
+
for (var property in style) {
|
992
|
+
var value = style[property];
|
993
|
+
if ((0, _isObject2.default)(value)) {
|
994
|
+
style[property] = prefix(value);
|
995
|
+
} else if (Array.isArray(value)) {
|
996
|
+
var combinedValue = [];
|
997
|
+
for (var i = 0, len = value.length; i < len; ++i) {
|
998
|
+
var processedValue = (0, _prefixValue2.default)(plugins, property, value[i], style, prefixMap);
|
999
|
+
(0, _addNewValuesOnly2.default)(combinedValue, processedValue || value[i]);
|
1000
|
+
}
|
1001
|
+
if (combinedValue.length > 0) {
|
1002
|
+
style[property] = combinedValue;
|
1003
|
+
}
|
1004
|
+
} else {
|
1005
|
+
var _processedValue = (0, _prefixValue2.default)(plugins, property, value, style, prefixMap);
|
1006
|
+
if (_processedValue) {
|
1007
|
+
style[property] = _processedValue;
|
1008
|
+
}
|
1009
|
+
style = (0, _prefixProperty2.default)(prefixMap, property, style);
|
1010
|
+
}
|
1011
|
+
}
|
1012
|
+
return style;
|
1013
|
+
};
|
1014
|
+
}
|
1015
|
+
}
|
1016
|
+
});
|
1017
|
+
|
1018
|
+
// node_modules/inline-style-prefixer/lib/plugins/backgroundClip.js
|
1019
|
+
var require_backgroundClip = __commonJS({
|
1020
|
+
"node_modules/inline-style-prefixer/lib/plugins/backgroundClip.js"(exports) {
|
1021
|
+
init_react_shim();
|
1022
|
+
"use strict";
|
1023
|
+
Object.defineProperty(exports, "__esModule", {
|
1024
|
+
value: true
|
1025
|
+
});
|
1026
|
+
exports.default = backgroundClip;
|
1027
|
+
function backgroundClip(property, value) {
|
1028
|
+
if (typeof value === "string" && value === "text") {
|
1029
|
+
return ["-webkit-text", "text"];
|
1030
|
+
}
|
1031
|
+
}
|
1032
|
+
}
|
1033
|
+
});
|
1034
|
+
|
1035
|
+
// node_modules/css-in-js-utils/lib/isPrefixedValue.js
|
1036
|
+
var require_isPrefixedValue = __commonJS({
|
1037
|
+
"node_modules/css-in-js-utils/lib/isPrefixedValue.js"(exports, module) {
|
1038
|
+
init_react_shim();
|
1039
|
+
"use strict";
|
1040
|
+
Object.defineProperty(exports, "__esModule", {
|
1041
|
+
value: true
|
1042
|
+
});
|
1043
|
+
exports.default = isPrefixedValue;
|
1044
|
+
var regex = /-webkit-|-moz-|-ms-/;
|
1045
|
+
function isPrefixedValue(value) {
|
1046
|
+
return typeof value === "string" && regex.test(value);
|
1047
|
+
}
|
1048
|
+
module.exports = exports["default"];
|
1049
|
+
}
|
1050
|
+
});
|
1051
|
+
|
1052
|
+
// node_modules/inline-style-prefixer/lib/plugins/crossFade.js
|
1053
|
+
var require_crossFade = __commonJS({
|
1054
|
+
"node_modules/inline-style-prefixer/lib/plugins/crossFade.js"(exports) {
|
1055
|
+
init_react_shim();
|
1056
|
+
"use strict";
|
1057
|
+
Object.defineProperty(exports, "__esModule", {
|
1058
|
+
value: true
|
1059
|
+
});
|
1060
|
+
exports.default = crossFade;
|
1061
|
+
var _isPrefixedValue = require_isPrefixedValue();
|
1062
|
+
var _isPrefixedValue2 = _interopRequireDefault(_isPrefixedValue);
|
1063
|
+
function _interopRequireDefault(obj) {
|
1064
|
+
return obj && obj.__esModule ? obj : { default: obj };
|
1065
|
+
}
|
1066
|
+
var prefixes = ["-webkit-", ""];
|
1067
|
+
function crossFade(property, value) {
|
1068
|
+
if (typeof value === "string" && !(0, _isPrefixedValue2.default)(value) && value.indexOf("cross-fade(") > -1) {
|
1069
|
+
return prefixes.map(function(prefix) {
|
1070
|
+
return value.replace(/cross-fade\(/g, prefix + "cross-fade(");
|
1071
|
+
});
|
1072
|
+
}
|
1073
|
+
}
|
1074
|
+
}
|
1075
|
+
});
|
1076
|
+
|
1077
|
+
// node_modules/inline-style-prefixer/lib/plugins/cursor.js
|
1078
|
+
var require_cursor = __commonJS({
|
1079
|
+
"node_modules/inline-style-prefixer/lib/plugins/cursor.js"(exports) {
|
1080
|
+
init_react_shim();
|
1081
|
+
"use strict";
|
1082
|
+
Object.defineProperty(exports, "__esModule", {
|
1083
|
+
value: true
|
1084
|
+
});
|
1085
|
+
exports.default = cursor;
|
1086
|
+
var prefixes = ["-webkit-", "-moz-", ""];
|
1087
|
+
var values = {
|
1088
|
+
"zoom-in": true,
|
1089
|
+
"zoom-out": true,
|
1090
|
+
grab: true,
|
1091
|
+
grabbing: true
|
1092
|
+
};
|
1093
|
+
function cursor(property, value) {
|
1094
|
+
if (property === "cursor" && values.hasOwnProperty(value)) {
|
1095
|
+
return prefixes.map(function(prefix) {
|
1096
|
+
return prefix + value;
|
1097
|
+
});
|
1098
|
+
}
|
1099
|
+
}
|
1100
|
+
}
|
1101
|
+
});
|
1102
|
+
|
1103
|
+
// node_modules/inline-style-prefixer/lib/plugins/filter.js
|
1104
|
+
var require_filter = __commonJS({
|
1105
|
+
"node_modules/inline-style-prefixer/lib/plugins/filter.js"(exports) {
|
1106
|
+
init_react_shim();
|
1107
|
+
"use strict";
|
1108
|
+
Object.defineProperty(exports, "__esModule", {
|
1109
|
+
value: true
|
1110
|
+
});
|
1111
|
+
exports.default = filter;
|
1112
|
+
var _isPrefixedValue = require_isPrefixedValue();
|
1113
|
+
var _isPrefixedValue2 = _interopRequireDefault(_isPrefixedValue);
|
1114
|
+
function _interopRequireDefault(obj) {
|
1115
|
+
return obj && obj.__esModule ? obj : { default: obj };
|
1116
|
+
}
|
1117
|
+
var prefixes = ["-webkit-", ""];
|
1118
|
+
function filter(property, value) {
|
1119
|
+
if (typeof value === "string" && !(0, _isPrefixedValue2.default)(value) && value.indexOf("filter(") > -1) {
|
1120
|
+
return prefixes.map(function(prefix) {
|
1121
|
+
return value.replace(/filter\(/g, prefix + "filter(");
|
1122
|
+
});
|
1123
|
+
}
|
1124
|
+
}
|
1125
|
+
}
|
1126
|
+
});
|
1127
|
+
|
1128
|
+
// node_modules/inline-style-prefixer/lib/plugins/flex.js
|
1129
|
+
var require_flex = __commonJS({
|
1130
|
+
"node_modules/inline-style-prefixer/lib/plugins/flex.js"(exports) {
|
1131
|
+
init_react_shim();
|
1132
|
+
"use strict";
|
1133
|
+
Object.defineProperty(exports, "__esModule", {
|
1134
|
+
value: true
|
1135
|
+
});
|
1136
|
+
exports.default = flex;
|
1137
|
+
var values = {
|
1138
|
+
flex: ["-webkit-box", "-moz-box", "-ms-flexbox", "-webkit-flex", "flex"],
|
1139
|
+
"inline-flex": ["-webkit-inline-box", "-moz-inline-box", "-ms-inline-flexbox", "-webkit-inline-flex", "inline-flex"]
|
1140
|
+
};
|
1141
|
+
function flex(property, value) {
|
1142
|
+
if (property === "display" && values.hasOwnProperty(value)) {
|
1143
|
+
return values[value];
|
1144
|
+
}
|
1145
|
+
}
|
1146
|
+
}
|
1147
|
+
});
|
1148
|
+
|
1149
|
+
// node_modules/inline-style-prefixer/lib/plugins/flexboxIE.js
|
1150
|
+
var require_flexboxIE = __commonJS({
|
1151
|
+
"node_modules/inline-style-prefixer/lib/plugins/flexboxIE.js"(exports) {
|
1152
|
+
init_react_shim();
|
1153
|
+
"use strict";
|
1154
|
+
Object.defineProperty(exports, "__esModule", {
|
1155
|
+
value: true
|
1156
|
+
});
|
1157
|
+
exports.default = flexboxIE;
|
1158
|
+
var alternativeValues = {
|
1159
|
+
"space-around": "distribute",
|
1160
|
+
"space-between": "justify",
|
1161
|
+
"flex-start": "start",
|
1162
|
+
"flex-end": "end"
|
1163
|
+
};
|
1164
|
+
var alternativeProps = {
|
1165
|
+
alignContent: "msFlexLinePack",
|
1166
|
+
alignSelf: "msFlexItemAlign",
|
1167
|
+
alignItems: "msFlexAlign",
|
1168
|
+
justifyContent: "msFlexPack",
|
1169
|
+
order: "msFlexOrder",
|
1170
|
+
flexGrow: "msFlexPositive",
|
1171
|
+
flexShrink: "msFlexNegative",
|
1172
|
+
flexBasis: "msFlexPreferredSize"
|
1173
|
+
};
|
1174
|
+
var flexShorthandMappings = {
|
1175
|
+
auto: "1 1 auto",
|
1176
|
+
inherit: "inherit",
|
1177
|
+
initial: "0 1 auto",
|
1178
|
+
none: "0 0 auto",
|
1179
|
+
unset: "unset"
|
1180
|
+
};
|
1181
|
+
var isUnitlessNumber = /^\d+(\.\d+)?$/;
|
1182
|
+
function flexboxIE(property, value, style) {
|
1183
|
+
if (Object.prototype.hasOwnProperty.call(alternativeProps, property)) {
|
1184
|
+
style[alternativeProps[property]] = alternativeValues[value] || value;
|
1185
|
+
}
|
1186
|
+
if (property === "flex") {
|
1187
|
+
if (Object.prototype.hasOwnProperty.call(flexShorthandMappings, value)) {
|
1188
|
+
style.msFlex = flexShorthandMappings[value];
|
1189
|
+
return;
|
1190
|
+
}
|
1191
|
+
if (isUnitlessNumber.test(value)) {
|
1192
|
+
style.msFlex = value + " 1 0%";
|
1193
|
+
return;
|
1194
|
+
}
|
1195
|
+
var flexValues = value.split(/\s/);
|
1196
|
+
switch (flexValues.length) {
|
1197
|
+
case 1:
|
1198
|
+
style.msFlex = "1 1 " + value;
|
1199
|
+
return;
|
1200
|
+
case 2:
|
1201
|
+
if (isUnitlessNumber.test(flexValues[1])) {
|
1202
|
+
style.msFlex = flexValues[0] + " " + flexValues[1] + " 0%";
|
1203
|
+
} else {
|
1204
|
+
style.msFlex = flexValues[0] + " 1 " + flexValues[1];
|
1205
|
+
}
|
1206
|
+
return;
|
1207
|
+
default:
|
1208
|
+
style.msFlex = value;
|
1209
|
+
}
|
1210
|
+
}
|
1211
|
+
}
|
1212
|
+
}
|
1213
|
+
});
|
1214
|
+
|
1215
|
+
// node_modules/inline-style-prefixer/lib/plugins/flexboxOld.js
|
1216
|
+
var require_flexboxOld = __commonJS({
|
1217
|
+
"node_modules/inline-style-prefixer/lib/plugins/flexboxOld.js"(exports) {
|
1218
|
+
init_react_shim();
|
1219
|
+
"use strict";
|
1220
|
+
Object.defineProperty(exports, "__esModule", {
|
1221
|
+
value: true
|
1222
|
+
});
|
1223
|
+
exports.default = flexboxOld;
|
1224
|
+
var alternativeValues = {
|
1225
|
+
"space-around": "justify",
|
1226
|
+
"space-between": "justify",
|
1227
|
+
"flex-start": "start",
|
1228
|
+
"flex-end": "end",
|
1229
|
+
"wrap-reverse": "multiple",
|
1230
|
+
wrap: "multiple"
|
1231
|
+
};
|
1232
|
+
var alternativeProps = {
|
1233
|
+
alignItems: "WebkitBoxAlign",
|
1234
|
+
justifyContent: "WebkitBoxPack",
|
1235
|
+
flexWrap: "WebkitBoxLines",
|
1236
|
+
flexGrow: "WebkitBoxFlex"
|
1237
|
+
};
|
1238
|
+
function flexboxOld(property, value, style) {
|
1239
|
+
if (property === "flexDirection" && typeof value === "string") {
|
1240
|
+
if (value.indexOf("column") > -1) {
|
1241
|
+
style.WebkitBoxOrient = "vertical";
|
1242
|
+
} else {
|
1243
|
+
style.WebkitBoxOrient = "horizontal";
|
1244
|
+
}
|
1245
|
+
if (value.indexOf("reverse") > -1) {
|
1246
|
+
style.WebkitBoxDirection = "reverse";
|
1247
|
+
} else {
|
1248
|
+
style.WebkitBoxDirection = "normal";
|
1249
|
+
}
|
1250
|
+
}
|
1251
|
+
if (alternativeProps.hasOwnProperty(property)) {
|
1252
|
+
style[alternativeProps[property]] = alternativeValues[value] || value;
|
1253
|
+
}
|
1254
|
+
}
|
1255
|
+
}
|
1256
|
+
});
|
1257
|
+
|
1258
|
+
// node_modules/inline-style-prefixer/lib/plugins/gradient.js
|
1259
|
+
var require_gradient = __commonJS({
|
1260
|
+
"node_modules/inline-style-prefixer/lib/plugins/gradient.js"(exports) {
|
1261
|
+
init_react_shim();
|
1262
|
+
"use strict";
|
1263
|
+
Object.defineProperty(exports, "__esModule", {
|
1264
|
+
value: true
|
1265
|
+
});
|
1266
|
+
exports.default = gradient;
|
1267
|
+
var _isPrefixedValue = require_isPrefixedValue();
|
1268
|
+
var _isPrefixedValue2 = _interopRequireDefault(_isPrefixedValue);
|
1269
|
+
function _interopRequireDefault(obj) {
|
1270
|
+
return obj && obj.__esModule ? obj : { default: obj };
|
1271
|
+
}
|
1272
|
+
var prefixes = ["-webkit-", "-moz-", ""];
|
1273
|
+
var values = /linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient/gi;
|
1274
|
+
function gradient(property, value) {
|
1275
|
+
if (typeof value === "string" && !(0, _isPrefixedValue2.default)(value) && values.test(value)) {
|
1276
|
+
return prefixes.map(function(prefix) {
|
1277
|
+
return value.replace(values, function(grad) {
|
1278
|
+
return prefix + grad;
|
1279
|
+
});
|
1280
|
+
});
|
1281
|
+
}
|
1282
|
+
}
|
1283
|
+
}
|
1284
|
+
});
|
1285
|
+
|
1286
|
+
// node_modules/inline-style-prefixer/lib/plugins/grid.js
|
1287
|
+
var require_grid = __commonJS({
|
1288
|
+
"node_modules/inline-style-prefixer/lib/plugins/grid.js"(exports) {
|
1289
|
+
init_react_shim();
|
1290
|
+
"use strict";
|
1291
|
+
Object.defineProperty(exports, "__esModule", {
|
1292
|
+
value: true
|
1293
|
+
});
|
1294
|
+
var _slicedToArray = function() {
|
1295
|
+
function sliceIterator(arr, i) {
|
1296
|
+
var _arr = [];
|
1297
|
+
var _n = true;
|
1298
|
+
var _d = false;
|
1299
|
+
var _e = void 0;
|
1300
|
+
try {
|
1301
|
+
for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {
|
1302
|
+
_arr.push(_s.value);
|
1303
|
+
if (i && _arr.length === i)
|
1304
|
+
break;
|
1305
|
+
}
|
1306
|
+
} catch (err) {
|
1307
|
+
_d = true;
|
1308
|
+
_e = err;
|
1309
|
+
} finally {
|
1310
|
+
try {
|
1311
|
+
if (!_n && _i["return"])
|
1312
|
+
_i["return"]();
|
1313
|
+
} finally {
|
1314
|
+
if (_d)
|
1315
|
+
throw _e;
|
1316
|
+
}
|
1317
|
+
}
|
1318
|
+
return _arr;
|
1319
|
+
}
|
1320
|
+
return function(arr, i) {
|
1321
|
+
if (Array.isArray(arr)) {
|
1322
|
+
return arr;
|
1323
|
+
} else if (Symbol.iterator in Object(arr)) {
|
1324
|
+
return sliceIterator(arr, i);
|
1325
|
+
} else {
|
1326
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance");
|
1327
|
+
}
|
1328
|
+
};
|
1329
|
+
}();
|
1330
|
+
exports.default = grid;
|
1331
|
+
function isSimplePositionValue(value) {
|
1332
|
+
return typeof value === "number" && !isNaN(value);
|
1333
|
+
}
|
1334
|
+
function isComplexSpanValue(value) {
|
1335
|
+
return typeof value === "string" && value.includes("/");
|
1336
|
+
}
|
1337
|
+
var alignmentValues = ["center", "end", "start", "stretch"];
|
1338
|
+
var displayValues = {
|
1339
|
+
"inline-grid": ["-ms-inline-grid", "inline-grid"],
|
1340
|
+
grid: ["-ms-grid", "grid"]
|
1341
|
+
};
|
1342
|
+
var propertyConverters = {
|
1343
|
+
alignSelf: function alignSelf(value, style) {
|
1344
|
+
if (alignmentValues.indexOf(value) > -1) {
|
1345
|
+
style.msGridRowAlign = value;
|
1346
|
+
}
|
1347
|
+
},
|
1348
|
+
gridColumn: function gridColumn(value, style) {
|
1349
|
+
if (isSimplePositionValue(value)) {
|
1350
|
+
style.msGridColumn = value;
|
1351
|
+
} else if (isComplexSpanValue(value)) {
|
1352
|
+
var _value$split = value.split("/"), _value$split2 = _slicedToArray(_value$split, 2), start = _value$split2[0], end = _value$split2[1];
|
1353
|
+
propertyConverters.gridColumnStart(+start, style);
|
1354
|
+
var _end$split = end.split(/ ?span /), _end$split2 = _slicedToArray(_end$split, 2), maybeSpan = _end$split2[0], maybeNumber = _end$split2[1];
|
1355
|
+
if (maybeSpan === "") {
|
1356
|
+
propertyConverters.gridColumnEnd(+start + +maybeNumber, style);
|
1357
|
+
} else {
|
1358
|
+
propertyConverters.gridColumnEnd(+end, style);
|
1359
|
+
}
|
1360
|
+
} else {
|
1361
|
+
propertyConverters.gridColumnStart(value, style);
|
1362
|
+
}
|
1363
|
+
},
|
1364
|
+
gridColumnEnd: function gridColumnEnd(value, style) {
|
1365
|
+
var msGridColumn = style.msGridColumn;
|
1366
|
+
if (isSimplePositionValue(value) && isSimplePositionValue(msGridColumn)) {
|
1367
|
+
style.msGridColumnSpan = value - msGridColumn;
|
1368
|
+
}
|
1369
|
+
},
|
1370
|
+
gridColumnStart: function gridColumnStart(value, style) {
|
1371
|
+
if (isSimplePositionValue(value)) {
|
1372
|
+
style.msGridColumn = value;
|
1373
|
+
}
|
1374
|
+
},
|
1375
|
+
gridRow: function gridRow(value, style) {
|
1376
|
+
if (isSimplePositionValue(value)) {
|
1377
|
+
style.msGridRow = value;
|
1378
|
+
} else if (isComplexSpanValue(value)) {
|
1379
|
+
var _value$split3 = value.split("/"), _value$split4 = _slicedToArray(_value$split3, 2), start = _value$split4[0], end = _value$split4[1];
|
1380
|
+
propertyConverters.gridRowStart(+start, style);
|
1381
|
+
var _end$split3 = end.split(/ ?span /), _end$split4 = _slicedToArray(_end$split3, 2), maybeSpan = _end$split4[0], maybeNumber = _end$split4[1];
|
1382
|
+
if (maybeSpan === "") {
|
1383
|
+
propertyConverters.gridRowEnd(+start + +maybeNumber, style);
|
1384
|
+
} else {
|
1385
|
+
propertyConverters.gridRowEnd(+end, style);
|
1386
|
+
}
|
1387
|
+
} else {
|
1388
|
+
propertyConverters.gridRowStart(value, style);
|
1389
|
+
}
|
1390
|
+
},
|
1391
|
+
gridRowEnd: function gridRowEnd(value, style) {
|
1392
|
+
var msGridRow = style.msGridRow;
|
1393
|
+
if (isSimplePositionValue(value) && isSimplePositionValue(msGridRow)) {
|
1394
|
+
style.msGridRowSpan = value - msGridRow;
|
1395
|
+
}
|
1396
|
+
},
|
1397
|
+
gridRowStart: function gridRowStart(value, style) {
|
1398
|
+
if (isSimplePositionValue(value)) {
|
1399
|
+
style.msGridRow = value;
|
1400
|
+
}
|
1401
|
+
},
|
1402
|
+
gridTemplateColumns: function gridTemplateColumns(value, style) {
|
1403
|
+
style.msGridColumns = value;
|
1404
|
+
},
|
1405
|
+
gridTemplateRows: function gridTemplateRows(value, style) {
|
1406
|
+
style.msGridRows = value;
|
1407
|
+
},
|
1408
|
+
justifySelf: function justifySelf(value, style) {
|
1409
|
+
if (alignmentValues.indexOf(value) > -1) {
|
1410
|
+
style.msGridColumnAlign = value;
|
1411
|
+
}
|
1412
|
+
}
|
1413
|
+
};
|
1414
|
+
function grid(property, value, style) {
|
1415
|
+
if (property === "display" && value in displayValues) {
|
1416
|
+
return displayValues[value];
|
1417
|
+
}
|
1418
|
+
if (property in propertyConverters) {
|
1419
|
+
var propertyConverter = propertyConverters[property];
|
1420
|
+
propertyConverter(value, style);
|
1421
|
+
}
|
1422
|
+
}
|
1423
|
+
}
|
1424
|
+
});
|
1425
|
+
|
1426
|
+
// node_modules/inline-style-prefixer/lib/plugins/imageSet.js
|
1427
|
+
var require_imageSet = __commonJS({
|
1428
|
+
"node_modules/inline-style-prefixer/lib/plugins/imageSet.js"(exports) {
|
1429
|
+
init_react_shim();
|
1430
|
+
"use strict";
|
1431
|
+
Object.defineProperty(exports, "__esModule", {
|
1432
|
+
value: true
|
1433
|
+
});
|
1434
|
+
exports.default = imageSet;
|
1435
|
+
var _isPrefixedValue = require_isPrefixedValue();
|
1436
|
+
var _isPrefixedValue2 = _interopRequireDefault(_isPrefixedValue);
|
1437
|
+
function _interopRequireDefault(obj) {
|
1438
|
+
return obj && obj.__esModule ? obj : { default: obj };
|
1439
|
+
}
|
1440
|
+
var prefixes = ["-webkit-", ""];
|
1441
|
+
function imageSet(property, value) {
|
1442
|
+
if (typeof value === "string" && !(0, _isPrefixedValue2.default)(value) && value.indexOf("image-set(") > -1) {
|
1443
|
+
return prefixes.map(function(prefix) {
|
1444
|
+
return value.replace(/image-set\(/g, prefix + "image-set(");
|
1445
|
+
});
|
1446
|
+
}
|
1447
|
+
}
|
1448
|
+
}
|
1449
|
+
});
|
1450
|
+
|
1451
|
+
// node_modules/inline-style-prefixer/lib/plugins/logical.js
|
1452
|
+
var require_logical = __commonJS({
|
1453
|
+
"node_modules/inline-style-prefixer/lib/plugins/logical.js"(exports) {
|
1454
|
+
init_react_shim();
|
1455
|
+
"use strict";
|
1456
|
+
Object.defineProperty(exports, "__esModule", {
|
1457
|
+
value: true
|
1458
|
+
});
|
1459
|
+
exports.default = logical;
|
1460
|
+
var alternativeProps = {
|
1461
|
+
marginBlockStart: ["WebkitMarginBefore"],
|
1462
|
+
marginBlockEnd: ["WebkitMarginAfter"],
|
1463
|
+
marginInlineStart: ["WebkitMarginStart", "MozMarginStart"],
|
1464
|
+
marginInlineEnd: ["WebkitMarginEnd", "MozMarginEnd"],
|
1465
|
+
paddingBlockStart: ["WebkitPaddingBefore"],
|
1466
|
+
paddingBlockEnd: ["WebkitPaddingAfter"],
|
1467
|
+
paddingInlineStart: ["WebkitPaddingStart", "MozPaddingStart"],
|
1468
|
+
paddingInlineEnd: ["WebkitPaddingEnd", "MozPaddingEnd"],
|
1469
|
+
borderBlockStart: ["WebkitBorderBefore"],
|
1470
|
+
borderBlockStartColor: ["WebkitBorderBeforeColor"],
|
1471
|
+
borderBlockStartStyle: ["WebkitBorderBeforeStyle"],
|
1472
|
+
borderBlockStartWidth: ["WebkitBorderBeforeWidth"],
|
1473
|
+
borderBlockEnd: ["WebkitBorderAfter"],
|
1474
|
+
borderBlockEndColor: ["WebkitBorderAfterColor"],
|
1475
|
+
borderBlockEndStyle: ["WebkitBorderAfterStyle"],
|
1476
|
+
borderBlockEndWidth: ["WebkitBorderAfterWidth"],
|
1477
|
+
borderInlineStart: ["WebkitBorderStart", "MozBorderStart"],
|
1478
|
+
borderInlineStartColor: ["WebkitBorderStartColor", "MozBorderStartColor"],
|
1479
|
+
borderInlineStartStyle: ["WebkitBorderStartStyle", "MozBorderStartStyle"],
|
1480
|
+
borderInlineStartWidth: ["WebkitBorderStartWidth", "MozBorderStartWidth"],
|
1481
|
+
borderInlineEnd: ["WebkitBorderEnd", "MozBorderEnd"],
|
1482
|
+
borderInlineEndColor: ["WebkitBorderEndColor", "MozBorderEndColor"],
|
1483
|
+
borderInlineEndStyle: ["WebkitBorderEndStyle", "MozBorderEndStyle"],
|
1484
|
+
borderInlineEndWidth: ["WebkitBorderEndWidth", "MozBorderEndWidth"]
|
1485
|
+
};
|
1486
|
+
function logical(property, value, style) {
|
1487
|
+
if (Object.prototype.hasOwnProperty.call(alternativeProps, property)) {
|
1488
|
+
var alternativePropList = alternativeProps[property];
|
1489
|
+
for (var i = 0, len = alternativePropList.length; i < len; ++i) {
|
1490
|
+
style[alternativePropList[i]] = value;
|
1491
|
+
}
|
1492
|
+
}
|
1493
|
+
}
|
1494
|
+
}
|
1495
|
+
});
|
1496
|
+
|
1497
|
+
// node_modules/inline-style-prefixer/lib/plugins/position.js
|
1498
|
+
var require_position = __commonJS({
|
1499
|
+
"node_modules/inline-style-prefixer/lib/plugins/position.js"(exports) {
|
1500
|
+
init_react_shim();
|
1501
|
+
"use strict";
|
1502
|
+
Object.defineProperty(exports, "__esModule", {
|
1503
|
+
value: true
|
1504
|
+
});
|
1505
|
+
exports.default = position;
|
1506
|
+
function position(property, value) {
|
1507
|
+
if (property === "position" && value === "sticky") {
|
1508
|
+
return ["-webkit-sticky", "sticky"];
|
1509
|
+
}
|
1510
|
+
}
|
1511
|
+
}
|
1512
|
+
});
|
1513
|
+
|
1514
|
+
// node_modules/inline-style-prefixer/lib/plugins/sizing.js
|
1515
|
+
var require_sizing = __commonJS({
|
1516
|
+
"node_modules/inline-style-prefixer/lib/plugins/sizing.js"(exports) {
|
1517
|
+
init_react_shim();
|
1518
|
+
"use strict";
|
1519
|
+
Object.defineProperty(exports, "__esModule", {
|
1520
|
+
value: true
|
1521
|
+
});
|
1522
|
+
exports.default = sizing;
|
1523
|
+
var prefixes = ["-webkit-", "-moz-", ""];
|
1524
|
+
var properties = {
|
1525
|
+
maxHeight: true,
|
1526
|
+
maxWidth: true,
|
1527
|
+
width: true,
|
1528
|
+
height: true,
|
1529
|
+
columnWidth: true,
|
1530
|
+
minWidth: true,
|
1531
|
+
minHeight: true
|
1532
|
+
};
|
1533
|
+
var values = {
|
1534
|
+
"min-content": true,
|
1535
|
+
"max-content": true,
|
1536
|
+
"fill-available": true,
|
1537
|
+
"fit-content": true,
|
1538
|
+
"contain-floats": true
|
1539
|
+
};
|
1540
|
+
function sizing(property, value) {
|
1541
|
+
if (properties.hasOwnProperty(property) && values.hasOwnProperty(value)) {
|
1542
|
+
return prefixes.map(function(prefix) {
|
1543
|
+
return prefix + value;
|
1544
|
+
});
|
1545
|
+
}
|
1546
|
+
}
|
1547
|
+
}
|
1548
|
+
});
|
1549
|
+
|
1550
|
+
// node_modules/css-in-js-utils/lib/hyphenateProperty.js
|
1551
|
+
var require_hyphenateProperty = __commonJS({
|
1552
|
+
"node_modules/css-in-js-utils/lib/hyphenateProperty.js"(exports, module) {
|
1553
|
+
init_react_shim();
|
1554
|
+
"use strict";
|
1555
|
+
Object.defineProperty(exports, "__esModule", {
|
1556
|
+
value: true
|
1557
|
+
});
|
1558
|
+
exports.default = hyphenateProperty;
|
1559
|
+
var _hyphenateStyleName = require_index_cjs();
|
1560
|
+
var _hyphenateStyleName2 = _interopRequireDefault(_hyphenateStyleName);
|
1561
|
+
function _interopRequireDefault(obj) {
|
1562
|
+
return obj && obj.__esModule ? obj : { default: obj };
|
1563
|
+
}
|
1564
|
+
function hyphenateProperty(property) {
|
1565
|
+
return (0, _hyphenateStyleName2.default)(property);
|
1566
|
+
}
|
1567
|
+
module.exports = exports["default"];
|
1568
|
+
}
|
1569
|
+
});
|
1570
|
+
|
1571
|
+
// node_modules/inline-style-prefixer/lib/plugins/transition.js
|
1572
|
+
var require_transition = __commonJS({
|
1573
|
+
"node_modules/inline-style-prefixer/lib/plugins/transition.js"(exports) {
|
1574
|
+
init_react_shim();
|
1575
|
+
"use strict";
|
1576
|
+
Object.defineProperty(exports, "__esModule", {
|
1577
|
+
value: true
|
1578
|
+
});
|
1579
|
+
exports.default = transition;
|
1580
|
+
var _hyphenateProperty = require_hyphenateProperty();
|
1581
|
+
var _hyphenateProperty2 = _interopRequireDefault(_hyphenateProperty);
|
1582
|
+
var _isPrefixedValue = require_isPrefixedValue();
|
1583
|
+
var _isPrefixedValue2 = _interopRequireDefault(_isPrefixedValue);
|
1584
|
+
var _capitalizeString = require_capitalizeString();
|
1585
|
+
var _capitalizeString2 = _interopRequireDefault(_capitalizeString);
|
1586
|
+
function _interopRequireDefault(obj) {
|
1587
|
+
return obj && obj.__esModule ? obj : { default: obj };
|
1588
|
+
}
|
1589
|
+
var properties = {
|
1590
|
+
transition: true,
|
1591
|
+
transitionProperty: true,
|
1592
|
+
WebkitTransition: true,
|
1593
|
+
WebkitTransitionProperty: true,
|
1594
|
+
MozTransition: true,
|
1595
|
+
MozTransitionProperty: true
|
1596
|
+
};
|
1597
|
+
var prefixMapping = {
|
1598
|
+
Webkit: "-webkit-",
|
1599
|
+
Moz: "-moz-",
|
1600
|
+
ms: "-ms-"
|
1601
|
+
};
|
1602
|
+
function prefixValue(value, propertyPrefixMap) {
|
1603
|
+
if ((0, _isPrefixedValue2.default)(value)) {
|
1604
|
+
return value;
|
1605
|
+
}
|
1606
|
+
var multipleValues = value.split(/,(?![^()]*(?:\([^()]*\))?\))/g);
|
1607
|
+
for (var i = 0, len = multipleValues.length; i < len; ++i) {
|
1608
|
+
var singleValue = multipleValues[i];
|
1609
|
+
var values = [singleValue];
|
1610
|
+
for (var property in propertyPrefixMap) {
|
1611
|
+
var dashCaseProperty = (0, _hyphenateProperty2.default)(property);
|
1612
|
+
if (singleValue.indexOf(dashCaseProperty) > -1 && dashCaseProperty !== "order") {
|
1613
|
+
var prefixes = propertyPrefixMap[property];
|
1614
|
+
for (var j = 0, pLen = prefixes.length; j < pLen; ++j) {
|
1615
|
+
values.unshift(singleValue.replace(dashCaseProperty, prefixMapping[prefixes[j]] + dashCaseProperty));
|
1616
|
+
}
|
1617
|
+
}
|
1618
|
+
}
|
1619
|
+
multipleValues[i] = values.join(",");
|
1620
|
+
}
|
1621
|
+
return multipleValues.join(",");
|
1622
|
+
}
|
1623
|
+
function transition(property, value, style, propertyPrefixMap) {
|
1624
|
+
if (typeof value === "string" && properties.hasOwnProperty(property)) {
|
1625
|
+
var outputValue = prefixValue(value, propertyPrefixMap);
|
1626
|
+
var webkitOutput = outputValue.split(/,(?![^()]*(?:\([^()]*\))?\))/g).filter(function(val) {
|
1627
|
+
return !/-moz-|-ms-/.test(val);
|
1628
|
+
}).join(",");
|
1629
|
+
if (property.indexOf("Webkit") > -1) {
|
1630
|
+
return webkitOutput;
|
1631
|
+
}
|
1632
|
+
var mozOutput = outputValue.split(/,(?![^()]*(?:\([^()]*\))?\))/g).filter(function(val) {
|
1633
|
+
return !/-webkit-|-ms-/.test(val);
|
1634
|
+
}).join(",");
|
1635
|
+
if (property.indexOf("Moz") > -1) {
|
1636
|
+
return mozOutput;
|
1637
|
+
}
|
1638
|
+
style["Webkit" + (0, _capitalizeString2.default)(property)] = webkitOutput;
|
1639
|
+
style["Moz" + (0, _capitalizeString2.default)(property)] = mozOutput;
|
1640
|
+
return outputValue;
|
1641
|
+
}
|
1642
|
+
}
|
1643
|
+
}
|
1644
|
+
});
|
1645
|
+
|
1646
|
+
export {
|
1647
|
+
require_ExecutionEnvironment,
|
1648
|
+
require_normalize_css_color,
|
1649
|
+
require_invariant,
|
1650
|
+
require_index_cjs,
|
1651
|
+
require_createPrefixer,
|
1652
|
+
require_backgroundClip,
|
1653
|
+
require_crossFade,
|
1654
|
+
require_cursor,
|
1655
|
+
require_filter,
|
1656
|
+
require_flex,
|
1657
|
+
require_flexboxIE,
|
1658
|
+
require_flexboxOld,
|
1659
|
+
require_gradient,
|
1660
|
+
require_grid,
|
1661
|
+
require_imageSet,
|
1662
|
+
require_logical,
|
1663
|
+
require_position,
|
1664
|
+
require_sizing,
|
1665
|
+
require_transition,
|
1666
|
+
require_warning,
|
1667
|
+
require_create_react_class
|
1668
|
+
};
|