UNPKG

263 kBJavaScriptView Raw
1(function webpackUniversalModuleDefinition(root, factory) {
2 if(typeof exports === 'object' && typeof module === 'object')
3 module.exports = factory(require("react"), require("react-dom"));
4 else if(typeof define === 'function' && define.amd)
5 define(["react", "react-dom"], factory);
6 else if(typeof exports === 'object')
7 exports["rc-banner-anim"] = factory(require("react"), require("react-dom"));
8 else
9 root["rc-banner-anim"] = factory(root["React"], root["ReactDOM"]);
10})(typeof self !== 'undefined' ? self : this, function(__WEBPACK_EXTERNAL_MODULE_1__, __WEBPACK_EXTERNAL_MODULE_26__) {
11return /******/ (function(modules) { // webpackBootstrap
12/******/ // The module cache
13/******/ var installedModules = {};
14/******/
15/******/ // The require function
16/******/ function __webpack_require__(moduleId) {
17/******/
18/******/ // Check if module is in cache
19/******/ if(installedModules[moduleId]) {
20/******/ return installedModules[moduleId].exports;
21/******/ }
22/******/ // Create a new module (and put it into the cache)
23/******/ var module = installedModules[moduleId] = {
24/******/ i: moduleId,
25/******/ l: false,
26/******/ exports: {}
27/******/ };
28/******/
29/******/ // Execute the module function
30/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
31/******/
32/******/ // Flag the module as loaded
33/******/ module.l = true;
34/******/
35/******/ // Return the exports of the module
36/******/ return module.exports;
37/******/ }
38/******/
39/******/
40/******/ // expose the modules object (__webpack_modules__)
41/******/ __webpack_require__.m = modules;
42/******/
43/******/ // expose the module cache
44/******/ __webpack_require__.c = installedModules;
45/******/
46/******/ // define getter function for harmony exports
47/******/ __webpack_require__.d = function(exports, name, getter) {
48/******/ if(!__webpack_require__.o(exports, name)) {
49/******/ Object.defineProperty(exports, name, {
50/******/ configurable: false,
51/******/ enumerable: true,
52/******/ get: getter
53/******/ });
54/******/ }
55/******/ };
56/******/
57/******/ // getDefaultExport function for compatibility with non-harmony modules
58/******/ __webpack_require__.n = function(module) {
59/******/ var getter = module && module.__esModule ?
60/******/ function getDefault() { return module['default']; } :
61/******/ function getModuleExports() { return module; };
62/******/ __webpack_require__.d(getter, 'a', getter);
63/******/ return getter;
64/******/ };
65/******/
66/******/ // Object.prototype.hasOwnProperty.call
67/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
68/******/
69/******/ // __webpack_public_path__
70/******/ __webpack_require__.p = "";
71/******/
72/******/ // Load entry module and return exports
73/******/ return __webpack_require__(__webpack_require__.s = 63);
74/******/ })
75/************************************************************************/
76/******/ ([
77/* 0 */
78/***/ (function(module, exports, __webpack_require__) {
79
80"use strict";
81
82
83exports.__esModule = true;
84
85var _assign = __webpack_require__(67);
86
87var _assign2 = _interopRequireDefault(_assign);
88
89function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
90
91exports.default = _assign2.default || function (target) {
92 for (var i = 1; i < arguments.length; i++) {
93 var source = arguments[i];
94
95 for (var key in source) {
96 if (Object.prototype.hasOwnProperty.call(source, key)) {
97 target[key] = source[key];
98 }
99 }
100 }
101
102 return target;
103};
104
105/***/ }),
106/* 1 */
107/***/ (function(module, exports) {
108
109module.exports = __WEBPACK_EXTERNAL_MODULE_1__;
110
111/***/ }),
112/* 2 */
113/***/ (function(module, exports) {
114
115// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
116var global = module.exports = typeof window != 'undefined' && window.Math == Math
117 ? window : typeof self != 'undefined' && self.Math == Math ? self
118 // eslint-disable-next-line no-new-func
119 : Function('return this')();
120if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef
121
122
123/***/ }),
124/* 3 */
125/***/ (function(module, exports) {
126
127var core = module.exports = { version: '2.6.2' };
128if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef
129
130
131/***/ }),
132/* 4 */
133/***/ (function(module, exports, __webpack_require__) {
134
135/* WEBPACK VAR INJECTION */(function(process) {/**
136 * Copyright (c) 2013-present, Facebook, Inc.
137 *
138 * This source code is licensed under the MIT license found in the
139 * LICENSE file in the root directory of this source tree.
140 */
141
142if (process.env.NODE_ENV !== 'production') {
143 var REACT_ELEMENT_TYPE = (typeof Symbol === 'function' &&
144 Symbol.for &&
145 Symbol.for('react.element')) ||
146 0xeac7;
147
148 var isValidElement = function(object) {
149 return typeof object === 'object' &&
150 object !== null &&
151 object.$$typeof === REACT_ELEMENT_TYPE;
152 };
153
154 // By explicitly using `prop-types` you are opting into new development behavior.
155 // http://fb.me/prop-types-in-prod
156 var throwOnDirectAccess = true;
157 module.exports = __webpack_require__(107)(isValidElement, throwOnDirectAccess);
158} else {
159 // By explicitly using `prop-types` you are opting into new production behavior.
160 // http://fb.me/prop-types-in-prod
161 module.exports = __webpack_require__(110)();
162}
163
164/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(27)))
165
166/***/ }),
167/* 5 */
168/***/ (function(module, exports, __webpack_require__) {
169
170var anObject = __webpack_require__(18);
171var IE8_DOM_DEFINE = __webpack_require__(46);
172var toPrimitive = __webpack_require__(30);
173var dP = Object.defineProperty;
174
175exports.f = __webpack_require__(6) ? Object.defineProperty : function defineProperty(O, P, Attributes) {
176 anObject(O);
177 P = toPrimitive(P, true);
178 anObject(Attributes);
179 if (IE8_DOM_DEFINE) try {
180 return dP(O, P, Attributes);
181 } catch (e) { /* empty */ }
182 if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');
183 if ('value' in Attributes) O[P] = Attributes.value;
184 return O;
185};
186
187
188/***/ }),
189/* 6 */
190/***/ (function(module, exports, __webpack_require__) {
191
192// Thank's IE8 for his funny defineProperty
193module.exports = !__webpack_require__(19)(function () {
194 return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
195});
196
197
198/***/ }),
199/* 7 */
200/***/ (function(module, exports) {
201
202var hasOwnProperty = {}.hasOwnProperty;
203module.exports = function (it, key) {
204 return hasOwnProperty.call(it, key);
205};
206
207
208/***/ }),
209/* 8 */
210/***/ (function(module, exports, __webpack_require__) {
211
212"use strict";
213
214
215exports.__esModule = true;
216
217exports.default = function (instance, Constructor) {
218 if (!(instance instanceof Constructor)) {
219 throw new TypeError("Cannot call a class as a function");
220 }
221};
222
223/***/ }),
224/* 9 */
225/***/ (function(module, exports, __webpack_require__) {
226
227"use strict";
228
229
230exports.__esModule = true;
231
232var _defineProperty = __webpack_require__(75);
233
234var _defineProperty2 = _interopRequireDefault(_defineProperty);
235
236function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
237
238exports.default = function () {
239 function defineProperties(target, props) {
240 for (var i = 0; i < props.length; i++) {
241 var descriptor = props[i];
242 descriptor.enumerable = descriptor.enumerable || false;
243 descriptor.configurable = true;
244 if ("value" in descriptor) descriptor.writable = true;
245 (0, _defineProperty2.default)(target, descriptor.key, descriptor);
246 }
247 }
248
249 return function (Constructor, protoProps, staticProps) {
250 if (protoProps) defineProperties(Constructor.prototype, protoProps);
251 if (staticProps) defineProperties(Constructor, staticProps);
252 return Constructor;
253 };
254}();
255
256/***/ }),
257/* 10 */
258/***/ (function(module, exports, __webpack_require__) {
259
260"use strict";
261
262
263exports.__esModule = true;
264
265var _typeof2 = __webpack_require__(52);
266
267var _typeof3 = _interopRequireDefault(_typeof2);
268
269function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
270
271exports.default = function (self, call) {
272 if (!self) {
273 throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
274 }
275
276 return call && ((typeof call === "undefined" ? "undefined" : (0, _typeof3.default)(call)) === "object" || typeof call === "function") ? call : self;
277};
278
279/***/ }),
280/* 11 */
281/***/ (function(module, exports, __webpack_require__) {
282
283"use strict";
284
285
286exports.__esModule = true;
287
288var _setPrototypeOf = __webpack_require__(100);
289
290var _setPrototypeOf2 = _interopRequireDefault(_setPrototypeOf);
291
292var _create = __webpack_require__(104);
293
294var _create2 = _interopRequireDefault(_create);
295
296var _typeof2 = __webpack_require__(52);
297
298var _typeof3 = _interopRequireDefault(_typeof2);
299
300function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
301
302exports.default = function (subClass, superClass) {
303 if (typeof superClass !== "function" && superClass !== null) {
304 throw new TypeError("Super expression must either be null or a function, not " + (typeof superClass === "undefined" ? "undefined" : (0, _typeof3.default)(superClass)));
305 }
306
307 subClass.prototype = (0, _create2.default)(superClass && superClass.prototype, {
308 constructor: {
309 value: subClass,
310 enumerable: false,
311 writable: true,
312 configurable: true
313 }
314 });
315 if (superClass) _setPrototypeOf2.default ? (0, _setPrototypeOf2.default)(subClass, superClass) : subClass.__proto__ = superClass;
316};
317
318/***/ }),
319/* 12 */
320/***/ (function(module, exports, __webpack_require__) {
321
322var global = __webpack_require__(2);
323var core = __webpack_require__(3);
324var ctx = __webpack_require__(45);
325var hide = __webpack_require__(13);
326var has = __webpack_require__(7);
327var PROTOTYPE = 'prototype';
328
329var $export = function (type, name, source) {
330 var IS_FORCED = type & $export.F;
331 var IS_GLOBAL = type & $export.G;
332 var IS_STATIC = type & $export.S;
333 var IS_PROTO = type & $export.P;
334 var IS_BIND = type & $export.B;
335 var IS_WRAP = type & $export.W;
336 var exports = IS_GLOBAL ? core : core[name] || (core[name] = {});
337 var expProto = exports[PROTOTYPE];
338 var target = IS_GLOBAL ? global : IS_STATIC ? global[name] : (global[name] || {})[PROTOTYPE];
339 var key, own, out;
340 if (IS_GLOBAL) source = name;
341 for (key in source) {
342 // contains in native
343 own = !IS_FORCED && target && target[key] !== undefined;
344 if (own && has(exports, key)) continue;
345 // export native or passed
346 out = own ? target[key] : source[key];
347 // prevent global pollution for namespaces
348 exports[key] = IS_GLOBAL && typeof target[key] != 'function' ? source[key]
349 // bind timers to global for call from export context
350 : IS_BIND && own ? ctx(out, global)
351 // wrap global constructors for prevent change them in library
352 : IS_WRAP && target[key] == out ? (function (C) {
353 var F = function (a, b, c) {
354 if (this instanceof C) {
355 switch (arguments.length) {
356 case 0: return new C();
357 case 1: return new C(a);
358 case 2: return new C(a, b);
359 } return new C(a, b, c);
360 } return C.apply(this, arguments);
361 };
362 F[PROTOTYPE] = C[PROTOTYPE];
363 return F;
364 // make static versions for prototype methods
365 })(out) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;
366 // export proto methods to core.%CONSTRUCTOR%.methods.%NAME%
367 if (IS_PROTO) {
368 (exports.virtual || (exports.virtual = {}))[key] = out;
369 // export proto methods to core.%CONSTRUCTOR%.prototype.%NAME%
370 if (type & $export.R && expProto && !expProto[key]) hide(expProto, key, out);
371 }
372 }
373};
374// type bitmap
375$export.F = 1; // forced
376$export.G = 2; // global
377$export.S = 4; // static
378$export.P = 8; // proto
379$export.B = 16; // bind
380$export.W = 32; // wrap
381$export.U = 64; // safe
382$export.R = 128; // real proto method for `library`
383module.exports = $export;
384
385
386/***/ }),
387/* 13 */
388/***/ (function(module, exports, __webpack_require__) {
389
390var dP = __webpack_require__(5);
391var createDesc = __webpack_require__(21);
392module.exports = __webpack_require__(6) ? function (object, key, value) {
393 return dP.f(object, key, createDesc(1, value));
394} : function (object, key, value) {
395 object[key] = value;
396 return object;
397};
398
399
400/***/ }),
401/* 14 */
402/***/ (function(module, exports) {
403
404module.exports = function (it) {
405 return typeof it === 'object' ? it !== null : typeof it === 'function';
406};
407
408
409/***/ }),
410/* 15 */
411/***/ (function(module, exports, __webpack_require__) {
412
413// to indexed object, toObject with fallback for non-array-like ES3 strings
414var IObject = __webpack_require__(49);
415var defined = __webpack_require__(31);
416module.exports = function (it) {
417 return IObject(defined(it));
418};
419
420
421/***/ }),
422/* 16 */
423/***/ (function(module, exports, __webpack_require__) {
424
425var store = __webpack_require__(34)('wks');
426var uid = __webpack_require__(24);
427var Symbol = __webpack_require__(2).Symbol;
428var USE_SYMBOL = typeof Symbol == 'function';
429
430var $exports = module.exports = function (name) {
431 return store[name] || (store[name] =
432 USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name));
433};
434
435$exports.store = store;
436
437
438/***/ }),
439/* 17 */
440/***/ (function(module, __webpack_exports__, __webpack_require__) {
441
442"use strict";
443/* harmony export (immutable) */ __webpack_exports__["f"] = toArrayChildren;
444/* harmony export (immutable) */ __webpack_exports__["c"] = dataToArray;
445/* harmony export (immutable) */ __webpack_exports__["d"] = setAnimCompToTagComp;
446/* harmony export (immutable) */ __webpack_exports__["b"] = currentScrollTop;
447/* harmony export (immutable) */ __webpack_exports__["a"] = currentScrollLeft;
448/* harmony export (immutable) */ __webpack_exports__["g"] = windowHeight;
449/* harmony export (immutable) */ __webpack_exports__["e"] = switchChildren;
450/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(1);
451/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
452/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types__ = __webpack_require__(4);
453/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_prop_types__);
454
455
456
457function toArrayChildren(children) {
458 var ret = [];
459 __WEBPACK_IMPORTED_MODULE_0_react___default.a.Children.forEach(children, function (c) {
460 ret.push(c);
461 });
462 return ret;
463}
464
465function dataToArray(vars) {
466 if (!vars && vars !== 0) {
467 return [];
468 }
469 if (Array.isArray(vars)) {
470 return vars;
471 }
472 return [vars];
473}
474
475function setAnimCompToTagComp(item, i) {
476 if (!item) {
477 return null;
478 }
479 var itemProps = item.props;
480 var props = {};
481 props.key = item.key || i;
482 // dom global attributes
483 var domAttrArray = ['accesskey', 'classname', 'contenteditable', 'contextmenu', 'dir', 'draggable', 'dropzone', 'hidden', 'id', 'lang', 'spellcheck', 'style', 'tabindex', 'title'];
484 Object.keys(itemProps).forEach(function (key) {
485 if (domAttrArray.indexOf(key.toLocaleLowerCase()) >= 0 || key.match('data-')) {
486 props[key] = itemProps[key];
487 }
488 });
489 return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(itemProps.component, props, itemProps.children);
490}
491setAnimCompToTagComp.propTypes = {
492 key: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string
493};
494
495function currentScrollTop() {
496 return window.pageYOffset || document.body.scrollTop || document.documentElement.scrollTop;
497}
498
499function currentScrollLeft() {
500 return window.pageXOffset || document.body.scrollLeft || document.documentElement.scrollLeft;
501}
502
503function windowHeight() {
504 return window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight;
505}
506
507function switchChildren(hideProps, item) {
508 if (!hideProps) {
509 return item;
510 }
511 if (item.type.isTweenOne) {
512 return __WEBPACK_IMPORTED_MODULE_0_react___default.a.cloneElement(item, { reverse: true });
513 }
514 return __WEBPACK_IMPORTED_MODULE_0_react___default.a.cloneElement(item, item.props, null);
515}
516
517/***/ }),
518/* 18 */
519/***/ (function(module, exports, __webpack_require__) {
520
521var isObject = __webpack_require__(14);
522module.exports = function (it) {
523 if (!isObject(it)) throw TypeError(it + ' is not an object!');
524 return it;
525};
526
527
528/***/ }),
529/* 19 */
530/***/ (function(module, exports) {
531
532module.exports = function (exec) {
533 try {
534 return !!exec();
535 } catch (e) {
536 return true;
537 }
538};
539
540
541/***/ }),
542/* 20 */
543/***/ (function(module, __webpack_exports__, __webpack_require__) {
544
545"use strict";
546/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "k", function() { return windowIsUndefined; });
547/* harmony export (immutable) */ __webpack_exports__["i"] = toArrayChildren;
548/* harmony export (immutable) */ __webpack_exports__["a"] = dataToArray;
549/* harmony export (immutable) */ __webpack_exports__["f"] = objectEqual;
550/* harmony export (immutable) */ __webpack_exports__["b"] = findChildInChildrenByKey;
551/* harmony export (immutable) */ __webpack_exports__["e"] = mergeChildren;
552/* harmony export (immutable) */ __webpack_exports__["j"] = transformArguments;
553/* harmony export (immutable) */ __webpack_exports__["c"] = getChildrenFromProps;
554/* harmony export (immutable) */ __webpack_exports__["h"] = startConvertToEndUnit;
555/* harmony export (immutable) */ __webpack_exports__["g"] = parsePath;
556/* harmony export (immutable) */ __webpack_exports__["d"] = getTransformValue;
557/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(1);
558/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
559
560
561var windowIsUndefined = !(typeof window !== 'undefined' && window.document && window.document.createElement);
562
563function toArrayChildren(children) {
564 var ret = [];
565 __WEBPACK_IMPORTED_MODULE_0_react___default.a.Children.forEach(children, function (c) {
566 ret.push(c);
567 });
568 return ret;
569}
570
571function dataToArray(vars) {
572 if (!vars && vars !== 0) {
573 return [];
574 }
575 if (Array.isArray(vars)) {
576 return vars;
577 }
578 return [vars];
579}
580
581function deepEql(a, b) {
582 if (!a || !b) {
583 return false;
584 }
585 var $a = Object.keys(a);
586 var $b = Object.keys(b);
587 if ($a.length && $b.length && $a.length === $b.length) {
588 return !$a.some(function (key) {
589 var aa = a[key];
590 var bb = b[key];
591 if (Array.isArray(aa) && Array.isArray(bb)) {
592 aa = aa.join();
593 bb = bb.join();
594 }
595 return aa !== bb;
596 });
597 }
598 return false;
599}
600
601function objectEqual(obj1, obj2) {
602 if (obj1 === obj2 || deepEql(obj1, obj2)) {
603 return true;
604 }
605 if (!obj1 || !obj2) {
606 return false;
607 }
608 // animation 写在标签上的进行判断是否相等, 判断每个参数有没有 function;
609 var equalBool = true;
610 if (Array.isArray(obj1) && Array.isArray(obj2)) {
611 if (obj1.length !== obj2.length) {
612 return false;
613 }
614 for (var i = 0; i < obj1.length; i++) {
615 var currentObj = obj1[i];
616 var nextObj = obj2[i];
617 for (var p in currentObj) {
618 // eslint-disable-line no-restricted-syntax
619 if (currentObj[p] !== nextObj[p]) {
620 if (typeof currentObj[p] === 'object' && typeof nextObj[p] === 'object') {
621 equalBool = objectEqual(currentObj[p], nextObj[p]);
622 } else if (typeof currentObj[p] === 'function' && typeof nextObj[p] === 'function') {
623 if (currentObj[p].name !== nextObj[p].name) {
624 equalBool = false;
625 }
626 } else {
627 equalBool = false;
628 }
629 if (!equalBool) {
630 return false;
631 }
632 }
633 }
634 }
635 }
636
637 var setEqualBool = function setEqualBool(objA, objB) {
638 Object.keys(objA).forEach(function (key) {
639 // 如果前面有参数匹配不相同则直接返回;
640 if (!equalBool) {
641 return;
642 }
643 if (!(key in objB)) {
644 equalBool = false;
645 }
646
647 if (typeof objA[key] === 'object' && typeof objB[key] === 'object') {
648 equalBool = objectEqual(objA[key], objB[key]);
649 } else if (typeof objA[key] === 'function' && typeof objB[key] === 'function') {
650 if (objA[key].name !== objB[key].name) {
651 equalBool = false;
652 }
653 } else if (objA[key] !== objB[key]) {
654 equalBool = false;
655 }
656 });
657 };
658
659 setEqualBool(obj1, obj2);
660 setEqualBool(obj2, obj1);
661 return equalBool;
662}
663
664function findChildInChildrenByKey(children, key) {
665 var ret = null;
666 if (children) {
667 children.forEach(function (c) {
668 if (ret || !c) {
669 return;
670 }
671 if (c.key === key) {
672 ret = c;
673 }
674 });
675 }
676 return ret;
677}
678
679function mergeChildren(prev, next) {
680 var ret = [];
681 // For each key of `next`, the list of keys to insert before that key in
682 // the combined list
683 var nextChildrenPending = {};
684 var pendingChildren = [];
685 var followChildrenKey = void 0;
686 prev.forEach(function (c) {
687 if (!c) {
688 return;
689 }
690 if (findChildInChildrenByKey(next, c.key)) {
691 if (pendingChildren.length) {
692 nextChildrenPending[c.key] = pendingChildren;
693 pendingChildren = [];
694 }
695 followChildrenKey = c.key;
696 } else if (c.key) {
697 pendingChildren.push(c);
698 }
699 });
700 if (!followChildrenKey) {
701 ret = ret.concat(pendingChildren);
702 }
703
704 next.forEach(function (c) {
705 if (!c) {
706 return;
707 }
708 if (nextChildrenPending.hasOwnProperty(c.key)) {
709 // eslint-disable-line no-prototype-builtins
710 ret = ret.concat(nextChildrenPending[c.key]);
711 }
712 ret.push(c);
713 if (c.key === followChildrenKey) {
714 ret = ret.concat(pendingChildren);
715 }
716 });
717
718 return ret;
719}
720
721function transformArguments(arg, key, i) {
722 var result = void 0;
723 if (typeof arg === 'function') {
724 result = arg({
725 key: key,
726 index: i
727 });
728 } else {
729 result = arg;
730 }
731 return result;
732}
733
734function getChildrenFromProps(props) {
735 return props && props.children;
736}
737
738function startConvertToEndUnit(target, computedStyle, style, num, unit, dataUnit, fixed, isOriginWidth) {
739 if (windowIsUndefined) {
740 return num;
741 }
742 var horiz = /(?:Left|Right|Width|X)/i.test(style) || isOriginWidth;
743 horiz = style === 'padding' || style === 'marign' ? true : horiz;
744 var t = style.indexOf('border') !== -1 || style.indexOf('translate') !== -1 || style === 'transformOrigin' ? target : target.parentNode || document.body;
745 t = fixed ? document.body : t;
746 var pix = void 0;
747 var htmlComputedStyle = void 0;
748 // transform 在 safari 下会留着单位,chrome 下会全部转换成 px;
749 switch (unit) {
750 case '%':
751 pix = parseFloat(num) / 100 * (horiz ? t.clientWidth : t.clientHeight);
752 break;
753 case 'vw':
754 pix = parseFloat(num) * document.body.clientWidth / 100;
755 break;
756 case 'vh':
757 pix = parseFloat(num) * document.body.clientHeight / 100;
758 break;
759 case 'em':
760 pix = parseFloat(num) * parseFloat(computedStyle.fontSize);
761 break;
762 case 'rem':
763 {
764 htmlComputedStyle = window.getComputedStyle(document.getElementsByTagName('html')[0]);
765 pix = parseFloat(num) * parseFloat(htmlComputedStyle.fontSize);
766 break;
767 }
768 default:
769 pix = parseFloat(num);
770 break;
771 }
772 switch (dataUnit) {
773 case '%':
774 pix = pix ? pix * 100 / (horiz ? t.clientWidth : t.clientHeight) : 0;
775 break;
776 case 'vw':
777 pix = parseFloat(num) / document.body.clientWidth * 100;
778 break;
779 case 'vh':
780 pix = parseFloat(num) / document.body.clientHeight * 100;
781 break;
782 case 'em':
783 pix = parseFloat(num) / parseFloat(computedStyle.fontSize);
784 break;
785 case 'rem':
786 {
787 htmlComputedStyle = htmlComputedStyle || window.getComputedStyle(document.getElementsByTagName('html')[0]);
788 pix = parseFloat(num) / parseFloat(htmlComputedStyle.fontSize);
789 break;
790 }
791 default:
792 break;
793 }
794 return pix;
795}
796
797function parsePath(path) {
798 if (typeof path === 'string') {
799 if (path.charAt(0).match(/m/i)) {
800 var domPath = document.createElementNS('http://www.w3.org/2000/svg', 'path');
801 domPath.setAttributeNS(null, 'd', path);
802 return domPath;
803 }
804 return document.querySelector(path);
805 } else if (path.style) {
806 return path;
807 }
808 throw new Error('Error while parsing the path');
809}
810
811function getTransformValue(t) {
812 if (typeof t === 'string') {
813 return t;
814 }
815 var perspective = t.perspective;
816 var angle = t.rotate;
817 var rotateX = t.rotateX;
818 var rotateY = t.rotateY;
819 var sx = t.scaleX;
820 var sy = t.scaleY;
821 var sz = t.scaleZ;
822 var skx = t.skewX;
823 var sky = t.skewY;
824 var translateX = typeof t.translateX === 'string' ? t.translateX : t.translateX + 'px';
825 var translateY = typeof t.translateY === 'string' ? t.translateY : t.translateY + 'px';
826 var translateZ = typeof t.translateZ === 'string' ? t.translateZ : t.translateZ + 'px';
827 var sk = skx || sky ? 'skew(' + skx + 'deg,' + sky + 'deg)' : '';
828 var an = angle ? 'rotate(' + angle + 'deg)' : '';
829 var ss = sx !== 1 || sy !== 1 || sz !== 1 ? 'scale3d(' + sx + ',' + sy + ',' + sz + ')' : '';
830 var rX = rotateX ? 'rotateX(' + rotateX + 'deg)' : '';
831 var rY = rotateY ? 'rotateY(' + rotateY + 'deg)' : '';
832 var per = perspective ? 'perspective(' + perspective + 'px)' : '';
833 var defautlTranslate = ss || an || rX || rY || sk ? '' : 'translate(0px, 0px)';
834 var translate = t.translateZ ? 'translate3d(' + translateX + ',' + translateY + ',' + translateZ + ')' : (t.translateX || t.translateY) && 'translate(' + translateX + ',' + translateY + ')' || defautlTranslate;
835 return (per + ' ' + translate + ' ' + ss + ' ' + an + ' ' + rX + ' ' + rY + ' ' + sk).trim();
836}
837
838/***/ }),
839/* 21 */
840/***/ (function(module, exports) {
841
842module.exports = function (bitmap, value) {
843 return {
844 enumerable: !(bitmap & 1),
845 configurable: !(bitmap & 2),
846 writable: !(bitmap & 4),
847 value: value
848 };
849};
850
851
852/***/ }),
853/* 22 */
854/***/ (function(module, exports, __webpack_require__) {
855
856// 19.1.2.14 / 15.2.3.14 Object.keys(O)
857var $keys = __webpack_require__(48);
858var enumBugKeys = __webpack_require__(35);
859
860module.exports = Object.keys || function keys(O) {
861 return $keys(O, enumBugKeys);
862};
863
864
865/***/ }),
866/* 23 */
867/***/ (function(module, exports) {
868
869module.exports = true;
870
871
872/***/ }),
873/* 24 */
874/***/ (function(module, exports) {
875
876var id = 0;
877var px = Math.random();
878module.exports = function (key) {
879 return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));
880};
881
882
883/***/ }),
884/* 25 */
885/***/ (function(module, exports) {
886
887exports.f = {}.propertyIsEnumerable;
888
889
890/***/ }),
891/* 26 */
892/***/ (function(module, exports) {
893
894module.exports = __WEBPACK_EXTERNAL_MODULE_26__;
895
896/***/ }),
897/* 27 */
898/***/ (function(module, exports) {
899
900// shim for using process in browser
901var process = module.exports = {};
902
903// cached from whatever global is present so that test runners that stub it
904// don't break things. But we need to wrap it in a try catch in case it is
905// wrapped in strict mode code which doesn't define any globals. It's inside a
906// function because try/catches deoptimize in certain engines.
907
908var cachedSetTimeout;
909var cachedClearTimeout;
910
911function defaultSetTimout() {
912 throw new Error('setTimeout has not been defined');
913}
914function defaultClearTimeout () {
915 throw new Error('clearTimeout has not been defined');
916}
917(function () {
918 try {
919 if (typeof setTimeout === 'function') {
920 cachedSetTimeout = setTimeout;
921 } else {
922 cachedSetTimeout = defaultSetTimout;
923 }
924 } catch (e) {
925 cachedSetTimeout = defaultSetTimout;
926 }
927 try {
928 if (typeof clearTimeout === 'function') {
929 cachedClearTimeout = clearTimeout;
930 } else {
931 cachedClearTimeout = defaultClearTimeout;
932 }
933 } catch (e) {
934 cachedClearTimeout = defaultClearTimeout;
935 }
936} ())
937function runTimeout(fun) {
938 if (cachedSetTimeout === setTimeout) {
939 //normal enviroments in sane situations
940 return setTimeout(fun, 0);
941 }
942 // if setTimeout wasn't available but was latter defined
943 if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {
944 cachedSetTimeout = setTimeout;
945 return setTimeout(fun, 0);
946 }
947 try {
948 // when when somebody has screwed with setTimeout but no I.E. maddness
949 return cachedSetTimeout(fun, 0);
950 } catch(e){
951 try {
952 // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
953 return cachedSetTimeout.call(null, fun, 0);
954 } catch(e){
955 // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error
956 return cachedSetTimeout.call(this, fun, 0);
957 }
958 }
959
960
961}
962function runClearTimeout(marker) {
963 if (cachedClearTimeout === clearTimeout) {
964 //normal enviroments in sane situations
965 return clearTimeout(marker);
966 }
967 // if clearTimeout wasn't available but was latter defined
968 if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {
969 cachedClearTimeout = clearTimeout;
970 return clearTimeout(marker);
971 }
972 try {
973 // when when somebody has screwed with setTimeout but no I.E. maddness
974 return cachedClearTimeout(marker);
975 } catch (e){
976 try {
977 // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
978 return cachedClearTimeout.call(null, marker);
979 } catch (e){
980 // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.
981 // Some versions of I.E. have different rules for clearTimeout vs setTimeout
982 return cachedClearTimeout.call(this, marker);
983 }
984 }
985
986
987
988}
989var queue = [];
990var draining = false;
991var currentQueue;
992var queueIndex = -1;
993
994function cleanUpNextTick() {
995 if (!draining || !currentQueue) {
996 return;
997 }
998 draining = false;
999 if (currentQueue.length) {
1000 queue = currentQueue.concat(queue);
1001 } else {
1002 queueIndex = -1;
1003 }
1004 if (queue.length) {
1005 drainQueue();
1006 }
1007}
1008
1009function drainQueue() {
1010 if (draining) {
1011 return;
1012 }
1013 var timeout = runTimeout(cleanUpNextTick);
1014 draining = true;
1015
1016 var len = queue.length;
1017 while(len) {
1018 currentQueue = queue;
1019 queue = [];
1020 while (++queueIndex < len) {
1021 if (currentQueue) {
1022 currentQueue[queueIndex].run();
1023 }
1024 }
1025 queueIndex = -1;
1026 len = queue.length;
1027 }
1028 currentQueue = null;
1029 draining = false;
1030 runClearTimeout(timeout);
1031}
1032
1033process.nextTick = function (fun) {
1034 var args = new Array(arguments.length - 1);
1035 if (arguments.length > 1) {
1036 for (var i = 1; i < arguments.length; i++) {
1037 args[i - 1] = arguments[i];
1038 }
1039 }
1040 queue.push(new Item(fun, args));
1041 if (queue.length === 1 && !draining) {
1042 runTimeout(drainQueue);
1043 }
1044};
1045
1046// v8 likes predictible objects
1047function Item(fun, array) {
1048 this.fun = fun;
1049 this.array = array;
1050}
1051Item.prototype.run = function () {
1052 this.fun.apply(null, this.array);
1053};
1054process.title = 'browser';
1055process.browser = true;
1056process.env = {};
1057process.argv = [];
1058process.version = ''; // empty string to avoid regexp issues
1059process.versions = {};
1060
1061function noop() {}
1062
1063process.on = noop;
1064process.addListener = noop;
1065process.once = noop;
1066process.off = noop;
1067process.removeListener = noop;
1068process.removeAllListeners = noop;
1069process.emit = noop;
1070process.prependListener = noop;
1071process.prependOnceListener = noop;
1072
1073process.listeners = function (name) { return [] }
1074
1075process.binding = function (name) {
1076 throw new Error('process.binding is not supported');
1077};
1078
1079process.cwd = function () { return '/' };
1080process.chdir = function (dir) {
1081 throw new Error('process.chdir is not supported');
1082};
1083process.umask = function() { return 0; };
1084
1085
1086/***/ }),
1087/* 28 */
1088/***/ (function(module, __webpack_exports__, __webpack_require__) {
1089
1090"use strict";
1091/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_raf__ = __webpack_require__(111);
1092/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_raf___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_raf__);
1093/* eslint-disable func-names */
1094
1095
1096var getTime = Date.now || function () {
1097 return new Date().getTime();
1098};
1099var Ticker = function Ticker() {};
1100Ticker.prototype = {
1101 tickFnArray: [],
1102 tickKeyObject: {},
1103 id: -1,
1104 tweenId: 0,
1105 frame: 0,
1106 perFrame: Math.round(1000 / 60),
1107 elapsed: 0,
1108 lastUpdate: getTime()
1109};
1110var p = Ticker.prototype;
1111p.add = function (fn) {
1112 var key = 'TweenOneTicker' + this.tweenId;
1113 this.tweenId++;
1114 this.wake(key, fn);
1115 return key;
1116};
1117p.wake = function (key, fn) {
1118 var _this = this;
1119
1120 this.tickKeyObject[key] = fn;
1121 this.tickFnArray = Object.keys(this.tickKeyObject).map(function (k) {
1122 return _this.tickKeyObject[k];
1123 });
1124 if (this.id === -1) {
1125 this.id = __WEBPACK_IMPORTED_MODULE_0_raf___default()(this.tick);
1126 }
1127};
1128p.clear = function (key) {
1129 var _this2 = this;
1130
1131 delete this.tickKeyObject[key];
1132 this.tickFnArray = Object.keys(this.tickKeyObject).map(function (k) {
1133 return _this2.tickKeyObject[k];
1134 });
1135};
1136p.sleep = function () {
1137 __WEBPACK_IMPORTED_MODULE_0_raf___default.a.cancel(this.id);
1138 this.id = -1;
1139 this.frame = 0;
1140};
1141var ticker = new Ticker();
1142p.tick = function (a) {
1143 ticker.elapsed = getTime() - ticker.lastUpdate;
1144 ticker.lastUpdate += ticker.elapsed;
1145 if (!ticker.frame) {
1146 ticker.frame++;
1147 } else {
1148 ticker.frame += Math.round(ticker.elapsed / ticker.perFrame);
1149 }
1150 ticker.tickFnArray.forEach(function (func) {
1151 return func(a);
1152 });
1153 // 如果 object 里没对象了,自动杀掉;
1154 if (!ticker.tickFnArray.length) {
1155 ticker.sleep();
1156 return;
1157 }
1158 ticker.id = __WEBPACK_IMPORTED_MODULE_0_raf___default()(ticker.tick);
1159};
1160var timeoutIdNumber = 0;
1161p.timeout = function (fn, time) {
1162 var _this3 = this;
1163
1164 if (!(typeof fn === 'function')) {
1165 return console.warn('not function'); // eslint-disable-line
1166 }
1167 var timeoutID = 'timeout' + Date.now() + '-' + timeoutIdNumber;
1168 var startFrame = this.frame;
1169 this.wake(timeoutID, function () {
1170 var moment = (_this3.frame - startFrame) * _this3.perFrame;
1171 if (moment >= (time || 0)) {
1172 _this3.clear(timeoutID);
1173 fn();
1174 }
1175 });
1176 timeoutIdNumber++;
1177 return timeoutID;
1178};
1179var intervalIdNumber = 0;
1180p.interval = function (fn, time) {
1181 var _this4 = this;
1182
1183 if (!(typeof fn === 'function')) {
1184 console.warn('not function'); // eslint-disable-line
1185 return null;
1186 }
1187 var intervalID = 'interval' + Date.now() + '-' + intervalIdNumber;
1188 var starFrame = this.frame;
1189 this.wake(intervalID, function () {
1190 var moment = (_this4.frame - starFrame) * _this4.perFrame;
1191 if (moment >= (time || 0)) {
1192 starFrame = _this4.frame;
1193 fn();
1194 }
1195 });
1196 intervalIdNumber++;
1197 return intervalID;
1198};
1199/* harmony default export */ __webpack_exports__["a"] = (ticker);
1200
1201/***/ }),
1202/* 29 */
1203/***/ (function(module, exports, __webpack_require__) {
1204
1205"use strict";
1206
1207
1208Object.defineProperty(exports, "__esModule", {
1209 value: true
1210});
1211exports.toCssLowerCase = toCssLowerCase;
1212exports.toStyleUpperCase = toStyleUpperCase;
1213exports.toFixed = toFixed;
1214exports.createMatrix = createMatrix;
1215exports.checkStyleName = checkStyleName;
1216exports.getGsapType = getGsapType;
1217exports.parseColor = parseColor;
1218exports.parseShadow = parseShadow;
1219exports.getColor = getColor;
1220exports.isTransform = isTransform;
1221exports.isConvert = isConvert;
1222exports.splitFilterToObject = splitFilterToObject;
1223exports.getMatrix = getMatrix;
1224exports.getTransform = getTransform;
1225exports.stylesToCss = stylesToCss;
1226exports.getUnit = getUnit;
1227exports.getValues = getValues;
1228exports.findStyleByName = findStyleByName;
1229exports.mergeStyle = mergeStyle;
1230var isUnitlessNumber = {
1231 animationIterationCount: true,
1232 borderImageOutset: true,
1233 borderImageSlice: true,
1234 borderImageWidth: true,
1235 boxFlex: true,
1236 boxFlexGroup: true,
1237 boxOrdinalGroup: true,
1238 columnCount: true,
1239 flex: true,
1240 flexGrow: true,
1241 flexPositive: true,
1242 flexShrink: true,
1243 flexNegative: true,
1244 flexOrder: true,
1245 gridRow: true,
1246 gridColumn: true,
1247 fontWeight: true,
1248 lineClamp: true,
1249 lineHeight: true,
1250 opacity: true,
1251 order: true,
1252 orphans: true,
1253 tabSize: true,
1254 widows: true,
1255 zIndex: true,
1256 zoom: true,
1257
1258 // SVG-related properties
1259 fillOpacity: true,
1260 floodOpacity: true,
1261 stopOpacity: true,
1262 strokeDasharray: true,
1263 strokeDashoffset: true,
1264 strokeMiterlimit: true,
1265 strokeOpacity: true,
1266 strokeWidth: true
1267};
1268var prefixes = ['Webkit', 'ms', 'Moz', 'O'];
1269
1270function prefixKey(prefix, key) {
1271 return prefix + key.charAt(0).toUpperCase() + key.substring(1);
1272}
1273
1274Object.keys(isUnitlessNumber).forEach(function (prop) {
1275 prefixes.forEach(function (prefix) {
1276 isUnitlessNumber[prefixKey(prefix, prop)] = isUnitlessNumber[prop];
1277 });
1278});
1279
1280var unquotedContentValueRegex = /^(normal|none|(\b(url\([^)]*\)|chapter_counter|attr\([^)]*\)|(no-)?(open|close)-quote|inherit)((\b\s*)|$|\s+))+)$/;
1281
1282var IE = function () {
1283 if (typeof document === 'undefined') {
1284 return false;
1285 }
1286 if (navigator && (navigator.userAgent.indexOf("MSIE 8.0") > 0 || navigator.userAgent.indexOf("MSIE 9.0") > 0)) {
1287 return true;
1288 }
1289 return false;
1290}();
1291
1292var rnd = 100000;
1293
1294var colorLookup = {
1295 aqua: [0, 255, 255],
1296 lime: [0, 255, 0],
1297 silver: [192, 192, 192],
1298 black: [0, 0, 0],
1299 maroon: [128, 0, 0],
1300 teal: [0, 128, 128],
1301 blue: [0, 0, 255],
1302 navy: [0, 0, 128],
1303 white: [255, 255, 255],
1304 fuchsia: [255, 0, 255],
1305 olive: [128, 128, 0],
1306 yellow: [255, 255, 0],
1307 orange: [255, 165, 0],
1308 gray: [128, 128, 128],
1309 purple: [128, 0, 128],
1310 green: [0, 128, 0],
1311 red: [255, 0, 0],
1312 pink: [255, 192, 203],
1313 cyan: [0, 255, 255],
1314 transparent: [255, 255, 255, 0]
1315};
1316var _hue = function _hue(hh, m1, m2) {
1317 var h = hh > 1 ? hh - 1 : hh;
1318 h = hh < 0 ? hh + 1 : h;
1319 var a = h * 3 < 2 ? m1 + (m2 - m1) * (2 / 3 - h) * 6 : m1;
1320 var b = h < 0.5 ? m2 : a;
1321 var c = h * 6 < 1 ? m1 + (m2 - m1) * h * 6 : b;
1322 return c * 255 + 0.5 | 0;
1323};
1324var DEG2RAD = Math.PI / 180;
1325var RAD2DEG = 180 / Math.PI;
1326
1327var $cssList = {
1328 _lists: {
1329 transformsBase: ['translate', 'translateX', 'translateY', 'scale', 'scaleX', 'scaleY', 'skewX', 'skewY', 'rotateZ', 'rotate'],
1330 transforms3D: ['translate3d', 'translateZ', 'scaleZ', 'rotateX', 'rotateY', 'perspective']
1331 },
1332 transformGroup: { translate: 1, translate3d: 1, scale: 1, scale3d: 1, rotate: 1, rotate3d: 1, skew: 1 },
1333 filter: ['grayScale', 'sepia', 'hueRotate', 'invert', 'brightness', 'contrast', 'blur'],
1334 filterConvert: { grayScale: 'grayscale', hueRotate: 'hue-rotate' }
1335};
1336$cssList._lists.transformsBase = !IE ? $cssList._lists.transformsBase.concat($cssList._lists.transforms3D) : $cssList._lists.transformsBase;
1337
1338var cssList = exports.cssList = $cssList;
1339
1340function toCssLowerCase(d) {
1341 return d.replace(/[A-Z]/, function ($1) {
1342 return '-' + $1.toLocaleLowerCase();
1343 });
1344}
1345
1346function toStyleUpperCase(d) {
1347 return d.replace(/-(.?)/g, function ($1) {
1348 return $1.replace('-', '').toLocaleUpperCase();
1349 });
1350}
1351
1352function toFixed(num, length) {
1353 var _rnd = length ? Math.pow(10, length) : rnd;
1354 var n = num | 0;
1355 var dec = num - n;
1356 var fixed = num;
1357 if (dec) {
1358 var r = (dec * _rnd + (num < 0 ? -0.5 : 0.5) | 0) / _rnd;
1359 var t = r | 0;
1360 var str = r.toString();
1361 var decStr = str.split('.')[1] || '';
1362 fixed = '' + (num < 0 && !(n + t) ? '-' : '') + (n + t) + '.' + decStr;
1363 }
1364 return parseFloat(fixed);
1365}
1366
1367function createMatrix(style) {
1368 if (typeof document === 'undefined') {
1369 return null;
1370 }
1371 var matrixs = ['WebKitCSS', 'MozCSS', 'DOM', 'MsCSS', 'MSCSS', 'OCSS', 'CSS'].filter(function (key) {
1372 return key + 'Matrix' in window;
1373 });
1374 if (matrixs.length) {
1375 return new window[matrixs[0] + 'Matrix'](style);
1376 }
1377 console.warn('Browsers do not support matrix.');
1378 return '';
1379}
1380
1381function checkStyleName(p) {
1382 if (typeof document === 'undefined') {
1383 return null;
1384 }
1385 var a = ['O', 'Moz', 'ms', 'Ms', 'Webkit'];
1386 if (p !== 'filter' && p in document.body.style) {
1387 return p;
1388 }
1389 var _p = p.charAt(0).toUpperCase() + p.substr(1);
1390 var prefixCss = a.filter(function (key) {
1391 return '' + key + _p in document.body.style;
1392 });
1393 return prefixCss[0] ? '' + prefixCss[0] + _p : null;
1394}
1395
1396function getGsapType(_p) {
1397 var p = _p;
1398 p = p === 'x' ? 'translateX' : p;
1399 p = p === 'y' ? 'translateY' : p;
1400 p = p === 'z' ? 'translateZ' : p;
1401 // p = p === 'r' ? 'rotate' : p;
1402 return p;
1403}
1404
1405function parseColor(_v) {
1406 var a = void 0;
1407 var r = void 0;
1408 var g = void 0;
1409 var b = void 0;
1410 var h = void 0;
1411 var s = void 0;
1412 var l = void 0;
1413 var v = _v;
1414 var _numExp = /(?:\d|\-\d|\.\d|\-\.\d)+/g;
1415 if (!v) {
1416 a = colorLookup.black;
1417 } else if (typeof v === 'number') {
1418 a = [v >> 16, v >> 8 & 255, v & 255];
1419 } else {
1420 if (v.charAt(v.length - 1) === ',') {
1421 v = v.substr(0, v.length - 1);
1422 }
1423 if (colorLookup[v]) {
1424 a = colorLookup[v];
1425 } else if (v.charAt(0) === '#') {
1426 // is #FFF
1427 if (v.length === 4) {
1428 r = v.charAt(1);
1429 g = v.charAt(2);
1430 b = v.charAt(3);
1431 v = '#' + r + r + g + g + b + b;
1432 }
1433 v = parseInt(v.substr(1), 16);
1434 a = [v >> 16, v >> 8 & 255, v & 255];
1435 } else if (v.substr(0, 3) === 'hsl') {
1436 a = v.match(_numExp);
1437 h = Number(a[0]) % 360 / 360;
1438 s = Number(a[1]) / 100;
1439 l = Number(a[2]) / 100;
1440 g = l <= 0.5 ? l * (s + 1) : l + s - l * s;
1441 r = l * 2 - g;
1442 if (a.length > 3) {
1443 a[3] = Number(a[3]);
1444 }
1445 a[0] = _hue(h + 1 / 3, r, g);
1446 a[1] = _hue(h, r, g);
1447 a[2] = _hue(h - 1 / 3, r, g);
1448 } else {
1449 a = v.match(_numExp) || colorLookup.transparent;
1450 }
1451 a[0] = Number(a[0]);
1452 a[1] = Number(a[1]);
1453 a[2] = Number(a[2]);
1454
1455 if (a.length > 3) {
1456 a[3] = Number(a[3]);
1457 }
1458 }
1459 return a;
1460}
1461
1462function parseShadow(v) {
1463 if (!v) {
1464 return [0, 0, 0, 0, 0, 0, 0];
1465 }
1466 var inset = void 0;
1467 if (v.indexOf('rgb') >= 0) {
1468 var t = v.match(/rgb+(?:a)?\((.*)\)/);
1469 var s = v.replace(t[0], '').trim().split(/\s+/);
1470 inset = s.indexOf('inset');
1471 if (inset >= 0) {
1472 s.splice(inset, 1);
1473 }
1474 var c = t[1].replace(/\s+/g, '').split(',');
1475 if (c.length === 3) {
1476 c.push(1);
1477 }
1478 return s.concat(c, inset >= 0 ? ['inset'] : []);
1479 }
1480 var vArr = v.split(/\s+/);
1481 inset = vArr.indexOf('inset');
1482 if (inset >= 0) {
1483 vArr.splice(inset, 1);
1484 }
1485 var color = parseColor(vArr[vArr.length - 1]);
1486 color[3] = typeof color[3] === 'number' ? color[3] : 1;
1487 vArr = vArr.splice(0, vArr.length - 1);
1488 return vArr.concat(color, inset >= 0 ? ['inset'] : []);
1489}
1490
1491function getColor(v) {
1492 var rgba = v.length === 4 ? 'rgba' : 'rgb';
1493 var _vars = v.map(function (d, i) {
1494 return i < 3 ? Math.round(d) : d;
1495 });
1496 return rgba + '(' + _vars.join(',') + ')';
1497}
1498
1499function isTransform(p) {
1500 return cssList._lists.transformsBase.indexOf(p) >= 0 ? 'transform' : p;
1501}
1502
1503function isConvert(p) {
1504 var cssName = isTransform(p);
1505 return cssList.filter.indexOf(cssName) >= 0 ? 'filter' : cssName;
1506}
1507
1508function splitFilterToObject(data) {
1509 if (data === 'none' || !data || data === '') {
1510 return null;
1511 }
1512 var filter = data.replace(' ', '').split(')').filter(function (item) {
1513 return item;
1514 });
1515 var startData = {};
1516 filter.forEach(function (item) {
1517 var dataArr = item.split('(');
1518 startData[dataArr[0]] = dataArr[1];
1519 });
1520 return startData;
1521}
1522
1523function getMatrix(t) {
1524 var arr = t.match(/(?:\-|\b)[\d\-\.e]+\b/gi);
1525 var m = {};
1526 if (arr.length === 6) {
1527 m.m11 = parseFloat(arr[0]);
1528 m.m12 = parseFloat(arr[1]);
1529 m.m13 = 0;
1530 m.m14 = 0;
1531 m.m21 = parseFloat(arr[2]);
1532 m.m22 = parseFloat(arr[3]);
1533 m.m23 = 0;
1534 m.m24 = 0;
1535 m.m31 = 0;
1536 m.m32 = 0;
1537 m.m33 = 1;
1538 m.m34 = 0;
1539 m.m41 = parseFloat(arr[4]);
1540 m.m42 = parseFloat(arr[5]);
1541 m.m43 = 0;
1542 m.m44 = 0;
1543 } else {
1544 arr.forEach(function (item, i) {
1545 var ii = i % 4 + 1;
1546 var j = Math.floor(i / 4) + 1;
1547 m['m' + j + ii] = parseFloat(item);
1548 });
1549 }
1550 return m;
1551}
1552
1553function transformNoMatrix(transform) {
1554 var tm = {};
1555 tm.translateX = 0;
1556 tm.translateY = 0;
1557 tm.translateZ = 0;
1558 tm.rotate = 0;
1559 tm.rotateX = 0;
1560 tm.rotateY = 0;
1561 tm.scaleX = 1;
1562 tm.scaleY = 1;
1563 tm.scaleZ = 1;
1564 tm.skewX = 0;
1565 tm.skewY = 0;
1566 tm.perspective = 0;
1567 (transform.trim().match(/(\w+)\([^\)]+\)/ig) || []).forEach(function (str) {
1568 var strArray = str.split('(');
1569 var key = strArray[0].trim();
1570 var value = strArray[1].replace(')', '').trim();
1571 if (value.match(/%|em|rem/ig)) {
1572 console.warn('value(' + value + ') must be absolute, not relative, has been converted to absolute.');
1573 }
1574 value = value.replace(/px|deg|\)/ig, '');
1575 if (cssList.transformGroup[key] && key !== 'rotate') {
1576 value = value.split(',').map(function (num) {
1577 return parseFloat(num);
1578 });
1579 if (key === 'scale3d' || key === 'translate3d') {
1580 ['X', 'Y', 'Z'].forEach(function (s, i) {
1581 var $key = key.substring(0, key.length - 2);
1582 tm['' + $key + s] = value[i] || tm['' + $key + s];
1583 });
1584 } else if (key === 'rotate3d') {
1585 tm.rotateX = value[0] && value[3] || tm.rotateX;
1586 tm.rotateY = value[1] && value[3] || tm.rotateY;
1587 tm.rotate = value[2] && value[3] || tm.rotate;
1588 } else {
1589 ['X', 'Y'].forEach(function (s, i) {
1590 tm['' + key + s] = value[i] || tm['' + key + s];
1591 });
1592 }
1593 } else {
1594 if (key === 'rotateZ') {
1595 tm.rotate = parseFloat(value) || tm.rotate;
1596 } else {
1597 tm[key] = parseFloat(value) || tm[key];
1598 }
1599 }
1600 });
1601 return tm;
1602}
1603
1604function getTransform(transform) {
1605 var _transform = !transform || transform === 'none' || transform === '' ? 'matrix(1, 0, 0, 1, 0, 0)' : transform;
1606 if (!_transform.match('matrix')) {
1607 return transformNoMatrix(transform);
1608 }
1609 var m = getMatrix(_transform);
1610 var m11 = m.m11;
1611 var m12 = m.m12;
1612 var m13 = m.m13;
1613 var m14 = m.m14;
1614 var m21 = m.m21;
1615 var m22 = m.m22;
1616 var m23 = m.m23;
1617 var m24 = m.m24;
1618 var m31 = m.m31;
1619 var m32 = m.m32;
1620 var m33 = m.m33;
1621 var m34 = m.m34;
1622 var m43 = m.m43;
1623 var t1 = void 0;
1624 var t2 = void 0;
1625 var t3 = void 0;
1626 var tm = {};
1627 var angle = Math.atan2(m23, m33);
1628 var skewX = Math.tan(m21);
1629 var skewY = Math.tan(m12);
1630 var cos = void 0;
1631 var sin = void 0;
1632 // rotateX
1633 tm.rotateX = toFixed(angle * RAD2DEG) || 0;
1634 if (angle) {
1635 cos = Math.cos(-angle);
1636 sin = Math.sin(-angle);
1637 t1 = m21 * cos + m31 * sin;
1638 t2 = m22 * cos + m32 * sin;
1639 t3 = m23 * cos + m33 * sin;
1640 m31 = m21 * -sin + m31 * cos;
1641 m32 = m22 * -sin + m32 * cos;
1642 m33 = m23 * -sin + m33 * cos;
1643 m34 = m24 * -sin + m34 * cos;
1644 m21 = t1;
1645 m22 = t2;
1646 m23 = t3;
1647 }
1648 // rotateY
1649 angle = Math.atan2(-m13, m33);
1650 tm.rotateY = toFixed(angle * RAD2DEG) || 0;
1651 if (angle) {
1652 cos = Math.cos(-angle);
1653 sin = Math.sin(-angle);
1654 t1 = m11 * cos - m31 * sin;
1655 t2 = m12 * cos - m32 * sin;
1656 t3 = m13 * cos - m33 * sin;
1657 m32 = m12 * sin + m32 * cos;
1658 m33 = m13 * sin + m33 * cos;
1659 m34 = m14 * sin + m34 * cos;
1660 m11 = t1;
1661 m12 = t2;
1662 m13 = t3;
1663 }
1664 // rotateZ
1665 angle = Math.atan2(m12, m11);
1666 tm.rotate = toFixed(angle * RAD2DEG) || 0;
1667 if (angle) {
1668 cos = Math.cos(angle);
1669 sin = Math.sin(angle);
1670 t1 = m11 * cos + m12 * sin;
1671 t2 = m21 * cos + m22 * sin;
1672 t3 = m31 * cos + m32 * sin;
1673 m12 = m12 * cos - m11 * sin;
1674 m22 = m22 * cos - m21 * sin;
1675 m32 = m32 * cos - m31 * sin;
1676 m11 = t1;
1677 m21 = t2;
1678 m31 = t3;
1679 }
1680
1681 if (tm.rotateX && Math.abs(tm.rotateX) + Math.abs(tm.rotate) > 359.9) {
1682 tm.rotateX = tm.rotate = 0;
1683 tm.rotateY = 180 - tm.rotateY || 0;
1684 }
1685
1686 tm.scaleX = toFixed(Math.sqrt(m11 * m11 + m12 * m12 + m13 * m13));
1687 tm.scaleY = toFixed(Math.sqrt(m22 * m22 + m23 * m23));
1688 tm.scaleZ = toFixed(Math.sqrt(m31 * m31 + m32 * m32 + m33 * m33));
1689 // 不管 skewX skewY了;
1690 tm.skewX = skewX === -skewY ? 0 : skewX;
1691 tm.skewY = skewY === -skewX ? 0 : skewY;
1692 tm.perspective = m34 ? 1 / (m34 < 0 ? -m34 : m34) : 0;
1693 tm.translateX = m.m41;
1694 tm.translateY = m.m42;
1695 tm.translateZ = m43;
1696 return tm;
1697}
1698
1699function stylesToCss(key, value) {
1700 var _value = void 0;
1701 if (!isUnitlessNumber[key] && typeof value === 'number') {
1702 _value = ' ' + value + 'px';
1703 } else if (key === 'content' && !unquotedContentValueRegex.test(value)) {
1704 _value = '\'' + value.replace(/'/g, "\\'") + '\'';
1705 }
1706 return _value || value;
1707}
1708
1709function getUnit(p, v) {
1710 var currentUnit = v && v.toString().replace(/[^a-z|%]/ig, '');
1711 var unit = '';
1712 if (p.indexOf('translate') >= 0 || p.indexOf('perspective') >= 0 || p.indexOf('blur') >= 0) {
1713 unit = 'px';
1714 } else if (p.indexOf('skew') >= 0 || p.indexOf('rotate') >= 0) {
1715 unit = 'deg';
1716 }
1717 return currentUnit || unit;
1718}
1719
1720function getValues(p, d, u) {
1721 return p + '(' + d + (u || '') + ')';
1722}
1723
1724function findStyleByName(cssArray, name) {
1725 var ret = null;
1726 if (cssArray) {
1727 cssArray.forEach(function (_cname) {
1728 if (ret) {
1729 return;
1730 }
1731 var cName = _cname.split('(')[0];
1732 var a = cName in cssList.transformGroup && name.substring(0, name.length - 1).indexOf(cName) >= 0;
1733 var b = name in cssList.transformGroup && cName.substring(0, cName.length - 1).indexOf(name) >= 0;
1734 var c = cName in cssList.transformGroup && name in cssList.transformGroup && (cName.substring(0, cName.length - 2) === name || name.substring(0, name.length - 2) === cName);
1735 if (cName === name || a || b || c) {
1736 ret = _cname;
1737 }
1738 });
1739 }
1740 return ret;
1741}
1742
1743function mergeStyle(current, change) {
1744 if (!current || current === '') {
1745 return change;
1746 }
1747 if (!change || change === '') {
1748 return current;
1749 }
1750 var _current = current.replace(/\s/g, '').split(')').filter(function (item) {
1751 return item !== '' && item;
1752 }).map(function (item) {
1753 return item + ')';
1754 });
1755 var _change = change.replace(/\s/g, '').split(')').filter(function (item) {
1756 return item !== '' && item;
1757 });
1758 _change.forEach(function (changeOnly) {
1759 var changeArr = changeOnly.split('(');
1760 var changeName = changeArr[0];
1761 var currentSame = findStyleByName(_current, changeName);
1762 if (!currentSame) {
1763 _current.push(changeOnly + ')');
1764 } else {
1765 var index = _current.indexOf(currentSame);
1766 _current[index] = changeOnly + ')';
1767 }
1768 });
1769 _current.forEach(function (item, i) {
1770 if (item.indexOf('perspective') >= 0 && i) {
1771 _current.splice(i, 1);
1772 _current.unshift(item);
1773 }
1774 });
1775 return _current.join(' ').trim();
1776}
1777
1778
1779/***/ }),
1780/* 30 */
1781/***/ (function(module, exports, __webpack_require__) {
1782
1783// 7.1.1 ToPrimitive(input [, PreferredType])
1784var isObject = __webpack_require__(14);
1785// instead of the ES6 spec version, we didn't implement @@toPrimitive case
1786// and the second argument - flag - preferred type is a string
1787module.exports = function (it, S) {
1788 if (!isObject(it)) return it;
1789 var fn, val;
1790 if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
1791 if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val;
1792 if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
1793 throw TypeError("Can't convert object to primitive value");
1794};
1795
1796
1797/***/ }),
1798/* 31 */
1799/***/ (function(module, exports) {
1800
1801// 7.2.1 RequireObjectCoercible(argument)
1802module.exports = function (it) {
1803 if (it == undefined) throw TypeError("Can't call method on " + it);
1804 return it;
1805};
1806
1807
1808/***/ }),
1809/* 32 */
1810/***/ (function(module, exports) {
1811
1812// 7.1.4 ToInteger
1813var ceil = Math.ceil;
1814var floor = Math.floor;
1815module.exports = function (it) {
1816 return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);
1817};
1818
1819
1820/***/ }),
1821/* 33 */
1822/***/ (function(module, exports, __webpack_require__) {
1823
1824var shared = __webpack_require__(34)('keys');
1825var uid = __webpack_require__(24);
1826module.exports = function (key) {
1827 return shared[key] || (shared[key] = uid(key));
1828};
1829
1830
1831/***/ }),
1832/* 34 */
1833/***/ (function(module, exports, __webpack_require__) {
1834
1835var core = __webpack_require__(3);
1836var global = __webpack_require__(2);
1837var SHARED = '__core-js_shared__';
1838var store = global[SHARED] || (global[SHARED] = {});
1839
1840(module.exports = function (key, value) {
1841 return store[key] || (store[key] = value !== undefined ? value : {});
1842})('versions', []).push({
1843 version: core.version,
1844 mode: __webpack_require__(23) ? 'pure' : 'global',
1845 copyright: '© 2019 Denis Pushkarev (zloirock.ru)'
1846});
1847
1848
1849/***/ }),
1850/* 35 */
1851/***/ (function(module, exports) {
1852
1853// IE 8- don't enum bug keys
1854module.exports = (
1855 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'
1856).split(',');
1857
1858
1859/***/ }),
1860/* 36 */
1861/***/ (function(module, exports) {
1862
1863exports.f = Object.getOwnPropertySymbols;
1864
1865
1866/***/ }),
1867/* 37 */
1868/***/ (function(module, exports) {
1869
1870module.exports = {};
1871
1872
1873/***/ }),
1874/* 38 */
1875/***/ (function(module, exports, __webpack_require__) {
1876
1877// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
1878var anObject = __webpack_require__(18);
1879var dPs = __webpack_require__(83);
1880var enumBugKeys = __webpack_require__(35);
1881var IE_PROTO = __webpack_require__(33)('IE_PROTO');
1882var Empty = function () { /* empty */ };
1883var PROTOTYPE = 'prototype';
1884
1885// Create object with fake `null` prototype: use iframe Object with cleared prototype
1886var createDict = function () {
1887 // Thrash, waste and sodomy: IE GC bug
1888 var iframe = __webpack_require__(47)('iframe');
1889 var i = enumBugKeys.length;
1890 var lt = '<';
1891 var gt = '>';
1892 var iframeDocument;
1893 iframe.style.display = 'none';
1894 __webpack_require__(84).appendChild(iframe);
1895 iframe.src = 'javascript:'; // eslint-disable-line no-script-url
1896 // createDict = iframe.contentWindow.Object;
1897 // html.removeChild(iframe);
1898 iframeDocument = iframe.contentWindow.document;
1899 iframeDocument.open();
1900 iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);
1901 iframeDocument.close();
1902 createDict = iframeDocument.F;
1903 while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]];
1904 return createDict();
1905};
1906
1907module.exports = Object.create || function create(O, Properties) {
1908 var result;
1909 if (O !== null) {
1910 Empty[PROTOTYPE] = anObject(O);
1911 result = new Empty();
1912 Empty[PROTOTYPE] = null;
1913 // add "__proto__" for Object.getPrototypeOf polyfill
1914 result[IE_PROTO] = O;
1915 } else result = createDict();
1916 return Properties === undefined ? result : dPs(result, Properties);
1917};
1918
1919
1920/***/ }),
1921/* 39 */
1922/***/ (function(module, exports, __webpack_require__) {
1923
1924var def = __webpack_require__(5).f;
1925var has = __webpack_require__(7);
1926var TAG = __webpack_require__(16)('toStringTag');
1927
1928module.exports = function (it, tag, stat) {
1929 if (it && !has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag });
1930};
1931
1932
1933/***/ }),
1934/* 40 */
1935/***/ (function(module, exports, __webpack_require__) {
1936
1937exports.f = __webpack_require__(16);
1938
1939
1940/***/ }),
1941/* 41 */
1942/***/ (function(module, exports, __webpack_require__) {
1943
1944var global = __webpack_require__(2);
1945var core = __webpack_require__(3);
1946var LIBRARY = __webpack_require__(23);
1947var wksExt = __webpack_require__(40);
1948var defineProperty = __webpack_require__(5).f;
1949module.exports = function (name) {
1950 var $Symbol = core.Symbol || (core.Symbol = LIBRARY ? {} : global.Symbol || {});
1951 if (name.charAt(0) != '_' && !(name in $Symbol)) defineProperty($Symbol, name, { value: wksExt.f(name) });
1952};
1953
1954
1955/***/ }),
1956/* 42 */
1957/***/ (function(module, exports, __webpack_require__) {
1958
1959"use strict";
1960/**
1961 * Copyright (c) 2013-present, Facebook, Inc.
1962 *
1963 * This source code is licensed under the MIT license found in the
1964 * LICENSE file in the root directory of this source tree.
1965 */
1966
1967
1968
1969var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
1970
1971module.exports = ReactPropTypesSecret;
1972
1973
1974/***/ }),
1975/* 43 */
1976/***/ (function(module, __webpack_exports__, __webpack_require__) {
1977
1978"use strict";
1979/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(0);
1980/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__);
1981/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react__ = __webpack_require__(1);
1982/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react__);
1983/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__utils__ = __webpack_require__(17);
1984
1985
1986
1987
1988/* harmony default export */ __webpack_exports__["a"] = ({
1989 across: function across(elem, type, direction, animData, elemOffset, leaveChildHide) {
1990 var _x = void 0;
1991 var props = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, elem.props);
1992 var children = props.children;
1993 if (type === 'enter') {
1994 _x = direction === 'next' ? '100%' : '-100%';
1995 } else {
1996 // 时间轴不同,导致中间有空隙, 等修复 twee-one,先加delay
1997 _x = direction === 'next' ? '-100%' : '100%';
1998 children = Object(__WEBPACK_IMPORTED_MODULE_2__utils__["f" /* toArrayChildren */])(children).map(__WEBPACK_IMPORTED_MODULE_2__utils__["e" /* switchChildren */].bind(this, leaveChildHide));
1999 }
2000 return Object(__WEBPACK_IMPORTED_MODULE_1_react__["cloneElement"])(elem, {
2001 animation: __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, animData, {
2002 x: _x,
2003 type: type === 'enter' ? 'from' : 'to'
2004 })
2005 }, children);
2006 },
2007 vertical: function vertical(elem, type, direction, animData, elemOffset, leaveChildHide) {
2008 var _y = void 0;
2009 var props = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, elem.props);
2010 var children = props.children;
2011 if (type === 'enter') {
2012 _y = direction === 'next' ? '-100%' : '100%';
2013 } else {
2014 // 时间轴不同,导致中间有空隙, 等修复 twee-one,先加delay
2015 _y = direction === 'next' ? '100%' : '-100%';
2016 children = Object(__WEBPACK_IMPORTED_MODULE_2__utils__["f" /* toArrayChildren */])(children).map(__WEBPACK_IMPORTED_MODULE_2__utils__["e" /* switchChildren */].bind(this, leaveChildHide));
2017 }
2018 return Object(__WEBPACK_IMPORTED_MODULE_1_react__["cloneElement"])(elem, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, props, {
2019 animation: __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, animData, {
2020 y: _y,
2021 type: type === 'enter' ? 'from' : 'to'
2022 })
2023 }), children);
2024 },
2025 acrossOverlay: function acrossOverlay(elem, type, direction, animData, elemOffset, leaveChildHide) {
2026 var _x = void 0;
2027 var props = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, elem.props);
2028 var children = props.children;
2029 if (type === 'enter') {
2030 _x = direction === 'next' ? '100%' : '-100%';
2031 } else {
2032 _x = direction === 'next' ? '-20%' : '20%';
2033 children = Object(__WEBPACK_IMPORTED_MODULE_2__utils__["f" /* toArrayChildren */])(children).map(__WEBPACK_IMPORTED_MODULE_2__utils__["e" /* switchChildren */].bind(this, leaveChildHide));
2034 }
2035 return Object(__WEBPACK_IMPORTED_MODULE_1_react__["cloneElement"])(elem, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, props, {
2036 animation: __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, animData, {
2037 x: _x,
2038 type: type === 'enter' ? 'from' : 'to'
2039 })
2040 }), children);
2041 },
2042 verticalOverlay: function verticalOverlay(elem, type, direction, animData, elemOffset, leaveChildHide) {
2043 var _y = void 0;
2044 var props = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, elem.props);
2045 var children = props.children;
2046 if (type === 'enter') {
2047 _y = direction === 'next' ? '-100%' : '100%';
2048 } else {
2049 _y = direction === 'next' ? '20%' : '-20%';
2050 children = Object(__WEBPACK_IMPORTED_MODULE_2__utils__["f" /* toArrayChildren */])(children).map(__WEBPACK_IMPORTED_MODULE_2__utils__["e" /* switchChildren */].bind(this, leaveChildHide));
2051 }
2052 return Object(__WEBPACK_IMPORTED_MODULE_1_react__["cloneElement"])(elem, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, props, {
2053 animation: __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, animData, {
2054 y: _y,
2055 type: type === 'enter' ? 'from' : 'to'
2056 })
2057 }), children);
2058 },
2059 gridBar: function gridBar(elem, type, direction, animData, elemOffset, leaveChildHide, ratio, paused) {
2060 var props = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, elem.props);
2061 var animChild = [];
2062 var gridNum = 10;
2063 var girdSize = 100 / gridNum;
2064
2065 var _y = void 0;
2066 var children = props.children;
2067 if (type === 'enter') {
2068 _y = direction === 'next' ? '-100%' : '100%';
2069 } else {
2070 _y = direction === 'next' ? '100%' : '-100%';
2071 children = Object(__WEBPACK_IMPORTED_MODULE_2__utils__["f" /* toArrayChildren */])(children).map(__WEBPACK_IMPORTED_MODULE_2__utils__["d" /* setAnimCompToTagComp */]);
2072 }
2073 var moment = ratio * (animData.duration + animData.delay + gridNum * 50 - (type === 'enter' ? 50 : 0)) || 0;
2074 for (var i = 0; i < gridNum; i++) {
2075 var style = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, props.style);
2076 style.width = girdSize + 0.1 + '%';
2077 style.left = i * girdSize + '%';
2078 style.position = 'absolute';
2079 style.overflow = 'hidden';
2080 var _style = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, props.style);
2081 _style.width = elemOffset.width + 'px';
2082 _style.height = elemOffset.height + 'px';
2083 _style.float = 'left';
2084 _style.position = 'relative';
2085 _style.left = -i * girdSize / 100 * elemOffset.width + 'px';
2086 var animProps = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, props);
2087 animProps.style = _style;
2088 var delay = (direction === 'next' ? i : gridNum - i) * 50 + (type === 'enter' ? 0 : 50) + (animData.delay || 0);
2089 animProps.animation = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, animData, {
2090 y: _y,
2091 type: type === 'enter' ? 'from' : 'to',
2092 key: type,
2093 direction: direction,
2094 delay: delay,
2095 i: i,
2096 onComplete: i === (direction === 'next' ? gridNum - 1 : 0) ? animData.onComplete : null
2097 });
2098 animProps.paused = paused;
2099 animProps.moment = moment;
2100 var mask = __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(
2101 'div',
2102 { style: style, key: i },
2103 Object(__WEBPACK_IMPORTED_MODULE_1_react__["cloneElement"])(elem, animProps, children)
2104 );
2105 animChild.push(mask);
2106 }
2107 var animSlot = __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(
2108 'div',
2109 { style: { width: '100%', position: 'absolute', top: 0 } },
2110 animChild
2111 );
2112 var _props = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, elem.props);
2113 _props.children = animSlot;
2114 return Object(__WEBPACK_IMPORTED_MODULE_1_react__["cloneElement"])(elem, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, _props, { animation: { x: 0, y: 0, type: 'set' } }));
2115 },
2116 grid: function grid(elem, type, direction, animData, elemOffset, leaveChildHide, ratio, paused) {
2117 var props = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, elem.props);
2118 var animChild = [];
2119 var gridNum = 10;
2120 var gridWidth = elemOffset.width / gridNum;
2121 var gridNumH = Math.ceil(elemOffset.height / gridWidth);
2122 var _delay = (gridNum - 1) * 50 + (gridNumH - 1) * 50;
2123 if (type === 'leave') {
2124 props.animation = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, animData, {
2125 duration: _delay + animData.duration
2126 });
2127 props.moment = ((animData.delay || 0) + _delay + animData.duration) * ratio || 0;
2128 props.paused = paused;
2129 return __WEBPACK_IMPORTED_MODULE_1_react___default.a.cloneElement(elem, props);
2130 }
2131 var moment = ratio * (animData.duration + animData.delay + _delay) || 0;
2132 for (var i = 0; i < gridNum * gridNumH; i++) {
2133 // mask样式
2134 var style = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, props.style);
2135 style.position = 'absolute';
2136 style.overflow = 'hidden';
2137 style.width = gridWidth + 1 + 'px';
2138 style.height = gridWidth + 1 + 'px';
2139 style.left = i % gridNum * gridWidth;
2140 style.top = Math.floor(i / gridNum) * gridWidth;
2141 // clone 的样式
2142 var _style = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, props.style);
2143 _style.width = elemOffset.width + 'px';
2144 _style.height = elemOffset.height + 'px';
2145 _style.position = 'relative';
2146 _style.left = -i % gridNum * gridWidth;
2147 _style.top = -Math.floor(i / gridNum) * gridWidth;
2148 props.style = _style;
2149 var delay = direction === 'next' ? i % gridNum * 50 + Math.floor(i / gridNum) * 50 : (gridNum - 1 - i % gridNum) * 50 + (gridNumH - 1 - Math.floor(i / gridNum)) * 50;
2150 delay += animData.delay || 0;
2151 var length = direction === 'next' ? gridNum * gridNumH - 1 : 0;
2152 var animation = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, animData, {
2153 opacity: 0,
2154 type: 'from',
2155 delay: delay,
2156 onComplete: i === length ? animData.onComplete : null
2157 });
2158 var mask = __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(
2159 elem.type,
2160 {
2161 style: style,
2162 key: i,
2163 paused: paused,
2164 animation: animation,
2165 moment: moment
2166 },
2167 Object(__WEBPACK_IMPORTED_MODULE_1_react__["cloneElement"])(elem, props)
2168 );
2169 animChild.push(mask);
2170 }
2171 var _props = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, elem.props);
2172 _props.children = animChild;
2173 return Object(__WEBPACK_IMPORTED_MODULE_1_react__["cloneElement"])(elem, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, _props, { animation: { x: 0, y: 0, type: 'set' } }));
2174 }
2175});
2176
2177/***/ }),
2178/* 44 */
2179/***/ (function(module, __webpack_exports__, __webpack_require__) {
2180
2181"use strict";
2182/* eslint-disable func-names */
2183var Plugins = function Plugins() {};
2184var p = Plugins.prototype;
2185p.push = function (plugin) {
2186 this[plugin.prototype.name] = plugin;
2187};
2188/* harmony default export */ __webpack_exports__["a"] = (new Plugins());
2189
2190/***/ }),
2191/* 45 */
2192/***/ (function(module, exports, __webpack_require__) {
2193
2194// optional / simple context binding
2195var aFunction = __webpack_require__(70);
2196module.exports = function (fn, that, length) {
2197 aFunction(fn);
2198 if (that === undefined) return fn;
2199 switch (length) {
2200 case 1: return function (a) {
2201 return fn.call(that, a);
2202 };
2203 case 2: return function (a, b) {
2204 return fn.call(that, a, b);
2205 };
2206 case 3: return function (a, b, c) {
2207 return fn.call(that, a, b, c);
2208 };
2209 }
2210 return function (/* ...args */) {
2211 return fn.apply(that, arguments);
2212 };
2213};
2214
2215
2216/***/ }),
2217/* 46 */
2218/***/ (function(module, exports, __webpack_require__) {
2219
2220module.exports = !__webpack_require__(6) && !__webpack_require__(19)(function () {
2221 return Object.defineProperty(__webpack_require__(47)('div'), 'a', { get: function () { return 7; } }).a != 7;
2222});
2223
2224
2225/***/ }),
2226/* 47 */
2227/***/ (function(module, exports, __webpack_require__) {
2228
2229var isObject = __webpack_require__(14);
2230var document = __webpack_require__(2).document;
2231// typeof document.createElement is 'object' in old IE
2232var is = isObject(document) && isObject(document.createElement);
2233module.exports = function (it) {
2234 return is ? document.createElement(it) : {};
2235};
2236
2237
2238/***/ }),
2239/* 48 */
2240/***/ (function(module, exports, __webpack_require__) {
2241
2242var has = __webpack_require__(7);
2243var toIObject = __webpack_require__(15);
2244var arrayIndexOf = __webpack_require__(72)(false);
2245var IE_PROTO = __webpack_require__(33)('IE_PROTO');
2246
2247module.exports = function (object, names) {
2248 var O = toIObject(object);
2249 var i = 0;
2250 var result = [];
2251 var key;
2252 for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key);
2253 // Don't enum bug & hidden keys
2254 while (names.length > i) if (has(O, key = names[i++])) {
2255 ~arrayIndexOf(result, key) || result.push(key);
2256 }
2257 return result;
2258};
2259
2260
2261/***/ }),
2262/* 49 */
2263/***/ (function(module, exports, __webpack_require__) {
2264
2265// fallback for non-array-like ES3 and non-enumerable old V8 strings
2266var cof = __webpack_require__(50);
2267// eslint-disable-next-line no-prototype-builtins
2268module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) {
2269 return cof(it) == 'String' ? it.split('') : Object(it);
2270};
2271
2272
2273/***/ }),
2274/* 50 */
2275/***/ (function(module, exports) {
2276
2277var toString = {}.toString;
2278
2279module.exports = function (it) {
2280 return toString.call(it).slice(8, -1);
2281};
2282
2283
2284/***/ }),
2285/* 51 */
2286/***/ (function(module, exports, __webpack_require__) {
2287
2288// 7.1.13 ToObject(argument)
2289var defined = __webpack_require__(31);
2290module.exports = function (it) {
2291 return Object(defined(it));
2292};
2293
2294
2295/***/ }),
2296/* 52 */
2297/***/ (function(module, exports, __webpack_require__) {
2298
2299"use strict";
2300
2301
2302exports.__esModule = true;
2303
2304var _iterator = __webpack_require__(78);
2305
2306var _iterator2 = _interopRequireDefault(_iterator);
2307
2308var _symbol = __webpack_require__(90);
2309
2310var _symbol2 = _interopRequireDefault(_symbol);
2311
2312var _typeof = typeof _symbol2.default === "function" && typeof _iterator2.default === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof _symbol2.default === "function" && obj.constructor === _symbol2.default && obj !== _symbol2.default.prototype ? "symbol" : typeof obj; };
2313
2314function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
2315
2316exports.default = typeof _symbol2.default === "function" && _typeof(_iterator2.default) === "symbol" ? function (obj) {
2317 return typeof obj === "undefined" ? "undefined" : _typeof(obj);
2318} : function (obj) {
2319 return obj && typeof _symbol2.default === "function" && obj.constructor === _symbol2.default && obj !== _symbol2.default.prototype ? "symbol" : typeof obj === "undefined" ? "undefined" : _typeof(obj);
2320};
2321
2322/***/ }),
2323/* 53 */
2324/***/ (function(module, exports, __webpack_require__) {
2325
2326"use strict";
2327
2328var LIBRARY = __webpack_require__(23);
2329var $export = __webpack_require__(12);
2330var redefine = __webpack_require__(54);
2331var hide = __webpack_require__(13);
2332var Iterators = __webpack_require__(37);
2333var $iterCreate = __webpack_require__(82);
2334var setToStringTag = __webpack_require__(39);
2335var getPrototypeOf = __webpack_require__(85);
2336var ITERATOR = __webpack_require__(16)('iterator');
2337var BUGGY = !([].keys && 'next' in [].keys()); // Safari has buggy iterators w/o `next`
2338var FF_ITERATOR = '@@iterator';
2339var KEYS = 'keys';
2340var VALUES = 'values';
2341
2342var returnThis = function () { return this; };
2343
2344module.exports = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) {
2345 $iterCreate(Constructor, NAME, next);
2346 var getMethod = function (kind) {
2347 if (!BUGGY && kind in proto) return proto[kind];
2348 switch (kind) {
2349 case KEYS: return function keys() { return new Constructor(this, kind); };
2350 case VALUES: return function values() { return new Constructor(this, kind); };
2351 } return function entries() { return new Constructor(this, kind); };
2352 };
2353 var TAG = NAME + ' Iterator';
2354 var DEF_VALUES = DEFAULT == VALUES;
2355 var VALUES_BUG = false;
2356 var proto = Base.prototype;
2357 var $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT];
2358 var $default = $native || getMethod(DEFAULT);
2359 var $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined;
2360 var $anyNative = NAME == 'Array' ? proto.entries || $native : $native;
2361 var methods, key, IteratorPrototype;
2362 // Fix native
2363 if ($anyNative) {
2364 IteratorPrototype = getPrototypeOf($anyNative.call(new Base()));
2365 if (IteratorPrototype !== Object.prototype && IteratorPrototype.next) {
2366 // Set @@toStringTag to native iterators
2367 setToStringTag(IteratorPrototype, TAG, true);
2368 // fix for some old engines
2369 if (!LIBRARY && typeof IteratorPrototype[ITERATOR] != 'function') hide(IteratorPrototype, ITERATOR, returnThis);
2370 }
2371 }
2372 // fix Array#{values, @@iterator}.name in V8 / FF
2373 if (DEF_VALUES && $native && $native.name !== VALUES) {
2374 VALUES_BUG = true;
2375 $default = function values() { return $native.call(this); };
2376 }
2377 // Define iterator
2378 if ((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])) {
2379 hide(proto, ITERATOR, $default);
2380 }
2381 // Plug for library
2382 Iterators[NAME] = $default;
2383 Iterators[TAG] = returnThis;
2384 if (DEFAULT) {
2385 methods = {
2386 values: DEF_VALUES ? $default : getMethod(VALUES),
2387 keys: IS_SET ? $default : getMethod(KEYS),
2388 entries: $entries
2389 };
2390 if (FORCED) for (key in methods) {
2391 if (!(key in proto)) redefine(proto, key, methods[key]);
2392 } else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods);
2393 }
2394 return methods;
2395};
2396
2397
2398/***/ }),
2399/* 54 */
2400/***/ (function(module, exports, __webpack_require__) {
2401
2402module.exports = __webpack_require__(13);
2403
2404
2405/***/ }),
2406/* 55 */
2407/***/ (function(module, exports, __webpack_require__) {
2408
2409// 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O)
2410var $keys = __webpack_require__(48);
2411var hiddenKeys = __webpack_require__(35).concat('length', 'prototype');
2412
2413exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
2414 return $keys(O, hiddenKeys);
2415};
2416
2417
2418/***/ }),
2419/* 56 */
2420/***/ (function(module, exports, __webpack_require__) {
2421
2422var pIE = __webpack_require__(25);
2423var createDesc = __webpack_require__(21);
2424var toIObject = __webpack_require__(15);
2425var toPrimitive = __webpack_require__(30);
2426var has = __webpack_require__(7);
2427var IE8_DOM_DEFINE = __webpack_require__(46);
2428var gOPD = Object.getOwnPropertyDescriptor;
2429
2430exports.f = __webpack_require__(6) ? gOPD : function getOwnPropertyDescriptor(O, P) {
2431 O = toIObject(O);
2432 P = toPrimitive(P, true);
2433 if (IE8_DOM_DEFINE) try {
2434 return gOPD(O, P);
2435 } catch (e) { /* empty */ }
2436 if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]);
2437};
2438
2439
2440/***/ }),
2441/* 57 */
2442/***/ (function(module, __webpack_exports__, __webpack_require__) {
2443
2444"use strict";
2445/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(0);
2446/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__);
2447/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck__ = __webpack_require__(8);
2448/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck__);
2449/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_createClass__ = __webpack_require__(9);
2450/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_createClass___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_createClass__);
2451/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(10);
2452/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__);
2453/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__ = __webpack_require__(11);
2454/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__);
2455/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react__ = __webpack_require__(1);
2456/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_react__);
2457/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_prop_types__ = __webpack_require__(4);
2458/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_prop_types__);
2459
2460
2461
2462
2463
2464
2465
2466
2467var Arrow = function (_Component) {
2468 __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default()(Arrow, _Component);
2469
2470 function Arrow() {
2471 var _ref;
2472
2473 var _temp, _this, _ret;
2474
2475 __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck___default()(this, Arrow);
2476
2477 for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
2478 args[_key] = arguments[_key];
2479 }
2480
2481 return _ret = (_temp = (_this = __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default()(this, (_ref = Arrow.__proto__ || Object.getPrototypeOf(Arrow)).call.apply(_ref, [this].concat(args))), _this), _this.onClick = function (e) {
2482 e.stopPropagation();
2483 _this.props[_this.props.arrowType](e);
2484 }, _temp), __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default()(_this, _ret);
2485 }
2486
2487 __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_createClass___default()(Arrow, [{
2488 key: 'render',
2489 value: function render() {
2490 var className = this.props.className;
2491 var defaultClass = className + '-default';
2492 className = (className + ' ' + (this.props.prefixCls || '')).trim();
2493 className = !this.props['default'] ? className : (className + ' ' + defaultClass).trim();
2494 className = className + ' ' + this.props.arrowType;
2495 var props = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, this.props, this.props.componentProps);
2496 ['arrowType', 'next', 'prev', 'elemHeight', 'component', 'componentProps', 'default', 'prefixCls'].forEach(function (key) {
2497 return delete props[key];
2498 });
2499 props.className = className;
2500 props.onClick = this.onClick;
2501 props.style = props.style || {};
2502 props.style.top = this.props.elemHeight / 2 + 'px';
2503 return __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement(this.props.component, props, this.props.children);
2504 }
2505 }]);
2506
2507 return Arrow;
2508}(__WEBPACK_IMPORTED_MODULE_5_react__["Component"]);
2509
2510Arrow.propTypes = {
2511 children: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.any,
2512 style: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.object,
2513 className: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string,
2514 prefixCls: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string,
2515 component: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.any,
2516 arrowType: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string,
2517 'default': __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.bool,
2518 next: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func,
2519 prev: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func,
2520 elemHeight: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.number,
2521 componentProps: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.object
2522};
2523Arrow.defaultProps = {
2524 component: 'div',
2525 className: 'banner-anim-arrow',
2526 componentProps: {}
2527};
2528
2529Arrow.isBannerAnimArrow = true;
2530
2531/* harmony default export */ __webpack_exports__["a"] = (Arrow);
2532
2533/***/ }),
2534/* 58 */
2535/***/ (function(module, __webpack_exports__, __webpack_require__) {
2536
2537"use strict";
2538/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(0);
2539/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__);
2540/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck__ = __webpack_require__(8);
2541/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck__);
2542/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_createClass__ = __webpack_require__(9);
2543/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_createClass___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_createClass__);
2544/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(10);
2545/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__);
2546/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__ = __webpack_require__(11);
2547/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__);
2548/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react__ = __webpack_require__(1);
2549/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_react__);
2550/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_prop_types__ = __webpack_require__(4);
2551/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_prop_types__);
2552/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__utils__ = __webpack_require__(17);
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562var Thumb = function (_Component) {
2563 __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default()(Thumb, _Component);
2564
2565 function Thumb() {
2566 var _ref;
2567
2568 var _temp, _this, _ret;
2569
2570 __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck___default()(this, Thumb);
2571
2572 for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
2573 args[_key] = arguments[_key];
2574 }
2575
2576 return _ret = (_temp = (_this = __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default()(this, (_ref = Thumb.__proto__ || Object.getPrototypeOf(Thumb)).call.apply(_ref, [this].concat(args))), _this), _this.getDefaultThumb = function () {
2577 var children = [];
2578 for (var i = 0; i < _this.props.length; i++) {
2579 children.push(__WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement('span', { key: i }));
2580 }
2581 return children;
2582 }, _temp), __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default()(_this, _ret);
2583 }
2584
2585 __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_createClass___default()(Thumb, [{
2586 key: 'render',
2587 value: function render() {
2588 var _this2 = this;
2589
2590 var className = 'banner-anim-thumb';
2591 var defaultClass = className + '-default';
2592 className = (className + ' ' + (this.props.prefixCls || '')).trim();
2593 className = !this.props['default'] ? className : (className + ' ' + defaultClass).trim();
2594 var children = this.props['default'] ? this.getDefaultThumb() : this.props.children;
2595 if (this.props.length && Object(__WEBPACK_IMPORTED_MODULE_7__utils__["f" /* toArrayChildren */])(children).length !== this.props.length) {
2596 console.warn('The thumbnail length and the images length different.'); // eslint-disable-line
2597 }
2598 var childToRender = Object(__WEBPACK_IMPORTED_MODULE_7__utils__["f" /* toArrayChildren */])(children).map(function (item, i) {
2599 var props = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, item.props);
2600 props.onClick = function (e) {
2601 e.stopPropagation();
2602 _this2.props.thumbClick(i);
2603 };
2604 props.className = ((props.className || '') + ' ' + (_this2.props.active === i ? 'active' : '')).trim();
2605 return __WEBPACK_IMPORTED_MODULE_5_react___default.a.cloneElement(item, props);
2606 });
2607 var props = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, this.props, this.props.componentProps);
2608 ['length', 'thumbClick', 'active', 'default', 'component', 'componentProps', 'prefixCls'].forEach(function (key) {
2609 return delete props[key];
2610 });
2611 props.className = className;
2612 return __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement(this.props.component, props, childToRender);
2613 }
2614 }]);
2615
2616 return Thumb;
2617}(__WEBPACK_IMPORTED_MODULE_5_react__["Component"]);
2618
2619Thumb.propTypes = {
2620 children: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.any,
2621 style: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.object,
2622 prefixCls: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string,
2623 component: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.any,
2624 thumbClick: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func,
2625 'default': __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.bool,
2626 length: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.number,
2627 active: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.number,
2628 componentProps: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.object
2629};
2630Thumb.defaultProps = {
2631 component: 'div',
2632 componentProps: {},
2633 thumbClick: function thumbClick() {}
2634};
2635Thumb.isBannerAnimThumb = true;
2636
2637/* harmony default export */ __webpack_exports__["a"] = (Thumb);
2638
2639/***/ }),
2640/* 59 */
2641/***/ (function(module, __webpack_exports__, __webpack_require__) {
2642
2643"use strict";
2644/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(0);
2645/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__);
2646/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck__ = __webpack_require__(8);
2647/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck__);
2648/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_createClass__ = __webpack_require__(9);
2649/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_createClass___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_createClass__);
2650/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(10);
2651/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__);
2652/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__ = __webpack_require__(11);
2653/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__);
2654/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react__ = __webpack_require__(1);
2655/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_react__);
2656/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_prop_types__ = __webpack_require__(4);
2657/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_prop_types__);
2658/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_react_dom__ = __webpack_require__(26);
2659/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_react_dom__);
2660/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__util__ = __webpack_require__(20);
2661/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__Tween__ = __webpack_require__(60);
2662/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__ticker__ = __webpack_require__(28);
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676function noop() {}
2677
2678var perFrame = Math.round(1000 / 60);
2679var objectOrArray = __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.object, __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.array]);
2680
2681var TweenOne = function (_Component) {
2682 __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default()(TweenOne, _Component);
2683
2684 function TweenOne(props) {
2685 __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck___default()(this, TweenOne);
2686
2687 var _this = __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default()(this, (TweenOne.__proto__ || Object.getPrototypeOf(TweenOne)).call(this, props));
2688
2689 _initialiseProps.call(_this);
2690
2691 _this.rafID = -1;
2692 _this.paused = props.paused;
2693 _this.reverse = props.reverse;
2694 _this.updateAnim = false;
2695 _this.repeatNum = 0;
2696 _this.forced = {};
2697 _this.setForcedJudg(props);
2698 return _this;
2699 }
2700
2701 __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_createClass___default()(TweenOne, [{
2702 key: 'componentDidMount',
2703 value: function componentDidMount() {
2704 this.dom = __WEBPACK_IMPORTED_MODULE_7_react_dom___default.a.findDOMNode(this);
2705 if (this.dom && this.dom.nodeName !== '#text') {
2706 this.start();
2707 }
2708 }
2709 }, {
2710 key: 'componentWillReceiveProps',
2711 value: function componentWillReceiveProps(nextProps) {
2712 if (!this.tween && !this.dom) {
2713 this.updateAnim = true;
2714 return;
2715 }
2716
2717 // 动画处理
2718 var newAnimation = nextProps.animation;
2719 var currentAnimation = this.props.animation;
2720 var equal = Object(__WEBPACK_IMPORTED_MODULE_8__util__["f" /* objectEqual */])(currentAnimation, newAnimation);
2721 if (!equal) {
2722 if (nextProps.resetStyle && this.tween) {
2723 this.tween.resetDefaultStyle();
2724 }
2725 this.updateAnim = true;
2726 }
2727
2728 // 跳帧事件 moment;
2729 var nextMoment = nextProps.moment;
2730 if (typeof nextMoment === 'number' && nextMoment !== this.props.moment) {
2731 if (this.tween && !this.updateAnim) {
2732 this.startMoment = nextMoment;
2733 this.startFrame = __WEBPACK_IMPORTED_MODULE_10__ticker__["a" /* default */].frame;
2734 if (nextProps.paused) {
2735 this.raf();
2736 }
2737 if (this.tween.progressTime >= this.tween.totalTime) {
2738 this.play();
2739 }
2740 } else {
2741
2742 this.updateAnim = true;
2743 }
2744 }
2745
2746 // 暂停倒放
2747 if (this.paused !== nextProps.paused || this.reverse !== nextProps.reverse) {
2748 this.paused = nextProps.paused;
2749 this.reverse = nextProps.reverse;
2750 if (this.paused) {
2751 this.cancelRequestAnimationFrame();
2752 } else if (this.reverse && nextProps.reverseDelay) {
2753 this.cancelRequestAnimationFrame();
2754 __WEBPACK_IMPORTED_MODULE_10__ticker__["a" /* default */].timeout(this.restart, nextProps.reverseDelay);
2755 } else {
2756 // 在 form 状态下,暂停时拉 moment 时,start 有值恢复播放,在 delay 的时间没有处理。。
2757 if (this.tween) {
2758 this.tween.resetAnimData();
2759 this.tween.resetDefaultStyle();
2760 }
2761 if (!this.updateAnim) {
2762 this.restart();
2763 }
2764 }
2765 }
2766
2767 var styleEqual = Object(__WEBPACK_IMPORTED_MODULE_8__util__["f" /* objectEqual */])(this.props.style, nextProps.style);
2768 if (!styleEqual) {
2769 // 在动画时更改了 style, 作为更改开始数值。
2770 if (this.tween) {
2771 this.tween.reStart(nextProps.style);
2772 if (this.paused) {
2773 this.raf();
2774 }
2775 }
2776 }
2777 this.setForcedJudg(nextProps);
2778 }
2779 }, {
2780 key: 'componentDidUpdate',
2781 value: function componentDidUpdate() {
2782 if (!this.dom) {
2783 this.dom = __WEBPACK_IMPORTED_MODULE_7_react_dom___default.a.findDOMNode(this);
2784 }
2785 // 样式更新了后再执行动画;
2786 if (this.updateAnim && this.dom && this.dom.nodeName !== '#text') {
2787 if (this.tween) {
2788 this.cancelRequestAnimationFrame();
2789 }
2790 this.start();
2791 }
2792 }
2793 }, {
2794 key: 'componentWillUnmount',
2795 value: function componentWillUnmount() {
2796 this.cancelRequestAnimationFrame();
2797 }
2798
2799 /**
2800 * @method setForcedJudg
2801 * @param props
2802 * QueueAnim 套在组件下面后导至子级变化。
2803 * <QueueAnim component={Menu} >
2804 * <SubMenu key="a" title="导航">
2805 * <Item />
2806 * </SubMenu>
2807 * </QueueAnim>
2808 * rc-Menu 里是以 isXXX 来判断是 rc-Menu 的子级;
2809 * 如: 用 isSubMenu 来处理 hover 事件
2810 * 地址: https://github.com/react-component/menu/blob/master/src/MenuMixin.js#L172
2811 * 暂时方案: 在组件里添加判断用的值。
2812 */
2813
2814 }, {
2815 key: 'render',
2816 value: function render() {
2817 var props = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, this.props);
2818 ['animation', 'component', 'componentProps', 'reverseDelay', 'attr', 'paused', 'reverse', 'repeat', 'yoyo', 'moment', 'resetStyle', 'forcedJudg'].forEach(function (key) {
2819 return delete props[key];
2820 });
2821 props.style = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, this.props.style);
2822 Object.keys(props.style).forEach(function (p) {
2823 if (p.match(/filter/i)) {
2824 ['Webkit', 'Moz', 'Ms', 'ms'].forEach(function (prefix) {
2825 props.style[prefix + 'Filter'] = props.style[p];
2826 });
2827 }
2828 });
2829 // component 为空时调用子级的。。
2830 if (!this.props.component) {
2831 if (!this.props.children) {
2832 return this.props.children;
2833 }
2834 var childrenProps = this.props.children.props;
2835 var style = childrenProps.style,
2836 className = childrenProps.className;
2837 // 合并 style 与 className。
2838
2839 var newStyle = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, style, props.style);
2840 var newClassName = props.className ? props.className + ' ' + className : className;
2841 return __WEBPACK_IMPORTED_MODULE_5_react___default.a.cloneElement(this.props.children, { style: newStyle, className: newClassName });
2842 }
2843 return __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement(this.props.component, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, props, this.props.componentProps));
2844 }
2845 }]);
2846
2847 return TweenOne;
2848}(__WEBPACK_IMPORTED_MODULE_5_react__["Component"]);
2849
2850TweenOne.propTypes = {
2851 component: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.any,
2852 componentProps: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.any,
2853 animation: objectOrArray,
2854 children: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.any,
2855 style: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.object,
2856 paused: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.bool,
2857 reverse: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.bool,
2858 reverseDelay: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.number,
2859 yoyo: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.bool,
2860 repeat: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.number,
2861 moment: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.number,
2862 attr: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string,
2863 onChange: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func,
2864 resetStyle: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.bool,
2865 forcedJudg: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.object
2866};
2867TweenOne.defaultProps = {
2868 component: 'div',
2869 componentProps: {},
2870 reverseDelay: 0,
2871 repeat: 0,
2872 attr: 'style',
2873 onChange: noop
2874};
2875
2876var _initialiseProps = function _initialiseProps() {
2877 var _this2 = this;
2878
2879 this.setForcedJudg = function (props) {
2880 Object.keys(_this2.forced).forEach(function (key) {
2881 delete _this2[key];
2882 delete _this2.forced[key];
2883 });
2884 if (props.forcedJudg) {
2885 Object.keys(props.forcedJudg).forEach(function (key) {
2886 if (!_this2[key]) {
2887 _this2[key] = props.forcedJudg[key];
2888 _this2.forced[key] = 1;
2889 }
2890 });
2891 }
2892 };
2893
2894 this.setDefalut = function (props) {
2895 _this2.moment = props.moment || 0;
2896 _this2.startMoment = props.moment || 0;
2897 _this2.startFrame = __WEBPACK_IMPORTED_MODULE_10__ticker__["a" /* default */].frame;
2898 };
2899
2900 this.restart = function () {
2901 if (!_this2.tween) {
2902 return;
2903 }
2904 _this2.startMoment = _this2.moment;
2905 _this2.startFrame = __WEBPACK_IMPORTED_MODULE_10__ticker__["a" /* default */].frame;
2906 _this2.tween.reverse = _this2.reverse;
2907 _this2.tween.reverseStartTime = _this2.startMoment;
2908 _this2.raf();
2909 _this2.play();
2910 };
2911
2912 this.start = function () {
2913 _this2.updateAnim = false;
2914 var props = _this2.props;
2915 if (props.animation && Object.keys(props.animation).length) {
2916 _this2.setDefalut(props);
2917 _this2.tween = new __WEBPACK_IMPORTED_MODULE_9__Tween__["a" /* default */](_this2.dom, Object(__WEBPACK_IMPORTED_MODULE_8__util__["a" /* dataToArray */])(props.animation), { attr: props.attr });
2918 _this2.tween.reverse = _this2.reverse;
2919 // 预先注册 raf, 初始动画数值。
2920 _this2.raf();
2921 // 开始动画
2922 _this2.play();
2923 } else {
2924 _this2.tween = null;
2925 }
2926 };
2927
2928 this.play = function () {
2929 _this2.cancelRequestAnimationFrame();
2930 if (_this2.paused) {
2931 return;
2932 }
2933 _this2.rafID = __WEBPACK_IMPORTED_MODULE_10__ticker__["a" /* default */].add(_this2.raf);
2934 };
2935
2936 this.frame = function () {
2937 var yoyo = _this2.props.yoyo;
2938 var repeat = _this2.props.repeat;
2939
2940 var totalTime = repeat === -1 ? Number.MAX_VALUE : _this2.tween.totalTime * (repeat + 1);
2941 repeat = repeat >= 0 ? repeat : Number.MAX_VALUE;
2942 var moment = (__WEBPACK_IMPORTED_MODULE_10__ticker__["a" /* default */].frame - _this2.startFrame) * perFrame + _this2.startMoment;
2943 if (_this2.reverse) {
2944 moment = (_this2.startMoment || 0) - (__WEBPACK_IMPORTED_MODULE_10__ticker__["a" /* default */].frame - _this2.startFrame) * perFrame;
2945 }
2946 moment = moment > totalTime ? totalTime : moment;
2947 moment = moment <= 0 ? 0 : moment;
2948 var repeatNum = Math.floor(moment / _this2.tween.totalTime) || 0;
2949 repeatNum = repeatNum > repeat ? repeat : repeatNum;
2950 var tweenMoment = moment - _this2.tween.totalTime * repeatNum;
2951 tweenMoment = tweenMoment < perFrame && !_this2.reverse && totalTime >= perFrame ? 0 : tweenMoment;
2952 if (repeat && moment && moment - _this2.tween.totalTime * repeatNum < perFrame) {
2953 // 在重置样式之前补 complete;
2954 _this2.tween.frame(_this2.tween.totalTime * repeatNum);
2955 }
2956 if (moment < _this2.moment && !_this2.reverse || repeat !== 0 && repeatNum && repeatNum !== _this2.repeatNum) {
2957 // 在 form 状态下,暂停时拉 moment 时,start 有值,,往返方向播放时,在 delay 的时间没有处理。。
2958 // 与上面的处理一样,删除 start ,重新走一遍 start。。
2959 _this2.tween.resetAnimData();
2960 _this2.tween.resetDefaultStyle();
2961 }
2962 var yoyoReverse = yoyo && repeatNum % 2;
2963 if (yoyoReverse) {
2964 tweenMoment = _this2.tween.totalTime - tweenMoment;
2965 }
2966 _this2.tween.onChange = function (e) {
2967 var cb = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, e, {
2968 timelineMode: ''
2969 });
2970
2971 if (_this2.moment === _this2.startMoment && !_this2.reverse && !e.index && e.mode === 'onStart' || _this2.reverse) {
2972 cb.timelineMode = 'onTimelineStart';
2973 } else if (moment >= totalTime && !_this2.reverse || !moment && _this2.reverse) {
2974 cb.timelineMode = 'onTimelineComplete';
2975 } else if (repeatNum !== _this2.timelineRepeatNum) {
2976 cb.timelineMode = 'onTimelineRepeat';
2977 } else {
2978 cb.timelineMode = 'onTimelineUpdate';
2979 }
2980 _this2.timelineRepeatNum = repeatNum;
2981 _this2.props.onChange(cb);
2982 };
2983 _this2.moment = moment;
2984 _this2.repeatNum = repeatNum;
2985 _this2.tween.frame(tweenMoment);
2986 };
2987
2988 this.raf = function () {
2989 var tween = _this2.tween;
2990 _this2.frame();
2991 if (tween !== _this2.tween) {
2992 // 在 onComplete 时更换动画时,raf 没结束,所以需要强制退出,避逸两个时间的冲突。
2993 return null;
2994 }
2995 var repeat = _this2.props.repeat;
2996
2997 var totalTime = repeat === -1 ? Number.MAX_VALUE : _this2.tween.totalTime * (repeat + 1);
2998 if (_this2.moment >= totalTime && !_this2.reverse || _this2.paused || _this2.reverse && _this2.moment === 0) {
2999 return _this2.cancelRequestAnimationFrame();
3000 }
3001 return null;
3002 };
3003
3004 this.cancelRequestAnimationFrame = function () {
3005 __WEBPACK_IMPORTED_MODULE_10__ticker__["a" /* default */].clear(_this2.rafID);
3006 _this2.rafID = -1;
3007 };
3008};
3009
3010TweenOne.isTweenOne = true;
3011/* harmony default export */ __webpack_exports__["a"] = (TweenOne);
3012
3013/***/ }),
3014/* 60 */
3015/***/ (function(module, __webpack_exports__, __webpack_require__) {
3016
3017"use strict";
3018/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(0);
3019/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__);
3020/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_style_utils__ = __webpack_require__(29);
3021/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_style_utils___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_style_utils__);
3022/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__easing__ = __webpack_require__(61);
3023/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__plugins__ = __webpack_require__(44);
3024/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__plugin_StylePlugin__ = __webpack_require__(117);
3025/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__util_js__ = __webpack_require__(20);
3026
3027/* eslint-disable func-names */
3028/**
3029 * Created by jljsj on 16/1/27.
3030 */
3031
3032
3033
3034
3035
3036
3037
3038var DEFAULT_EASING = 'easeInOutQuad';
3039var DEFAULT_DURATION = 450;
3040var DEFAULT_DELAY = 0;
3041function noop() {}
3042__WEBPACK_IMPORTED_MODULE_3__plugins__["a" /* default */].push(__WEBPACK_IMPORTED_MODULE_4__plugin_StylePlugin__["a" /* default */]);
3043// 设置默认数据
3044function defaultData(vars, now) {
3045 var duration = vars.duration || vars.duration === 0 ? vars.duration : DEFAULT_DURATION;
3046 return {
3047 duration: vars.type === 'set' ? 0 : duration,
3048 delay: vars.delay || DEFAULT_DELAY,
3049 ease: typeof vars.ease === 'function' ? vars.ease : __WEBPACK_IMPORTED_MODULE_2__easing__["a" /* default */][vars.ease || DEFAULT_EASING],
3050 onUpdate: vars.onUpdate || noop,
3051 onComplete: vars.onComplete || noop,
3052 onStart: vars.onStart || noop,
3053 onRepeat: vars.onRepeat || noop,
3054 repeat: vars.repeat || 0,
3055 repeatDelay: vars.repeatDelay || 0,
3056 yoyo: vars.yoyo || false,
3057 type: vars.type === 'from' ? 'from' : 'to',
3058 initTime: now,
3059 appearTo: typeof vars.appearTo === 'number' ? vars.appearTo : null,
3060 perTime: 0,
3061 currentRepeat: 0
3062 };
3063}
3064
3065var Tween = function Tween(target, toData, props) {
3066 this.target = target;
3067 this.attr = props.attr || 'style';
3068 // 时间精度补齐;
3069 this.accuracy = 0.00001;
3070 // 记录总时间;
3071 this.totalTime = 0;
3072 // 记录当前时间;
3073 this.progressTime = 0;
3074 // 记录时间轴数据;
3075 this.defaultData = [];
3076 // 每个的开始数据;
3077 this.start = {};
3078 // 开始默认的数据;
3079 this.startDefaultData = {};
3080 // 动画过程
3081 this.tween = {};
3082 // toData;
3083 this.data = toData;
3084 // 每帧的时间;
3085 this.perFrame = Math.round(1000 / 60);
3086 // 注册,第一次进入执行注册
3087 this.register = false;
3088 // svg元素
3089 this.isSvg = this.target.ownerSVGElement;
3090 // 设置 style
3091 var data = this.setAttrIsStyle();
3092 // 设置默认动画数据;
3093 this.setDefaultData(data);
3094};
3095var p = Tween.prototype;
3096p.setAttrIsStyle = function () {
3097 var _this = this;
3098
3099 var data = [];
3100 this.data.forEach(function (d, i) {
3101 var _d = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, d);
3102 if (_this.attr === 'style') {
3103 data[i] = {};
3104 Object.keys(_d).forEach(function (key) {
3105 if (key in defaultData({}, 0)) {
3106 data[i][key] = _d[key];
3107 delete _d[key];
3108 }
3109 });
3110 data[i].style = _d;
3111 _this.startDefaultData.style = _this.target.getAttribute('style');
3112 } else if (_this.attr === 'attr') {
3113 Object.keys(_d).forEach(function (key) {
3114 if (key === 'style' && Array.isArray(d[key])) {
3115 throw new Error('Style should be the object.');
3116 }
3117 if (key === 'bezier') {
3118 _d.style = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, _d.style, { bezier: _d[key] });
3119 delete _d[key];
3120 _this.startDefaultData.style = _this.target.getAttribute('style');
3121 } else {
3122 _this.startDefaultData[key] = _this.target.getAttribute(key);
3123 }
3124 });
3125 data[i] = _d;
3126 }
3127 });
3128 return data;
3129};
3130p.setDefaultData = function (_vars) {
3131 var _this2 = this;
3132
3133 var now = 0;
3134 var repeatMax = false;
3135 var data = _vars.map(function (item) {
3136 var appearToBool = typeof item.appearTo === 'number';
3137 // 加上延时,在没有播放过时;
3138 if (!appearToBool) {
3139 now += item.delay || 0;
3140 }
3141 var appearToTime = (item.appearTo || 0) + (item.delay || 0);
3142 // 获取默认数据
3143 var tweenData = defaultData(item, appearToBool ? appearToTime : now);
3144 tweenData.vars = {};
3145 Object.keys(item).forEach(function (_key) {
3146 if (!(_key in tweenData)) {
3147 var _data = item[_key];
3148 if (_key in __WEBPACK_IMPORTED_MODULE_3__plugins__["a" /* default */]) {
3149 tweenData.vars[_key] = new __WEBPACK_IMPORTED_MODULE_3__plugins__["a" /* default */][_key](_this2.target, _data, tweenData.type);
3150 } else if (_key.match(/color/i) || _key === 'stroke' || _key === 'fill') {
3151 tweenData.vars[_key] = { type: 'color', vars: Object(__WEBPACK_IMPORTED_MODULE_1_style_utils__["parseColor"])(_data) };
3152 } else if (typeof _data === 'number' || _data.split(/[,|\s]/g).length <= 1) {
3153 var vars = parseFloat(_data);
3154 var unit = _data.toString().replace(/[^a-z|%]/g, '');
3155 var count = _data.toString().replace(/[^+|=|-]/g, '');
3156 tweenData.vars[_key] = { unit: unit, vars: vars, count: count };
3157 } else if ((_key === 'd' || _key === 'points') && 'SVGMorph' in __WEBPACK_IMPORTED_MODULE_3__plugins__["a" /* default */]) {
3158 tweenData.vars[_key] = new __WEBPACK_IMPORTED_MODULE_3__plugins__["a" /* default */].SVGMorph(_this2.target, _data, _key);
3159 }
3160 }
3161 });
3162 if (tweenData.yoyo && !tweenData.repeat) {
3163 console.warn('Warning: yoyo must be used together with repeat;'); // eslint-disable-line
3164 }
3165 if (tweenData.repeat === -1) {
3166 repeatMax = true;
3167 }
3168 var repeat = tweenData.repeat === -1 ? 0 : tweenData.repeat;
3169 if (appearToBool) {
3170 // 如果有 appearTo 且这条时间比 now 大时,,总时间用这条;
3171 var appearNow = item.appearTo + (item.delay || 0) + tweenData.duration * (repeat + 1) + tweenData.repeatDelay * repeat;
3172 now = appearNow >= now ? appearNow : now;
3173 } else if (tweenData.delay < -tweenData.duration) {
3174 // 如果延时小于 负时间时,,不加,再减回延时;
3175 now -= tweenData.delay;
3176 } else {
3177 // repeat 为 -1 只记录一次。不能跟 reverse 同时使用;
3178 now += tweenData.duration * (repeat + 1) + tweenData.repeatDelay * repeat;
3179 }
3180 tweenData.mode = '';
3181 return tweenData;
3182 });
3183 this.totalTime = repeatMax ? Number.MAX_VALUE : now;
3184 this.defaultData = data;
3185};
3186p.getComputedStyle = function () {
3187 var style = typeof window !== 'undefined' && document.defaultView ? document.defaultView.getComputedStyle(this.target) : {};
3188 // 如果是 SVG, 样式全部提出为 transformSVG, 兼容 safari 不能获取 transform;
3189 if (this.isSvg) {
3190 var transform = style[Object(__WEBPACK_IMPORTED_MODULE_1_style_utils__["checkStyleName"])('transform')] || 'none';
3191 if (transform === 'none') {
3192 var attrStyle = this.target.getAttribute('style');
3193 if (attrStyle && attrStyle.indexOf('transform:') >= 0) {
3194 transform = attrStyle.split(';').filter(function (k) {
3195 return k.indexOf('transform:') >= 0;
3196 }).map(function (item) {
3197 return Object(__WEBPACK_IMPORTED_MODULE_1_style_utils__["createMatrix"])(item.split(':')[1].trim()).toString();
3198 })[0];
3199 } else if (this.target.getAttribute('transform')) {
3200 // 暂时不支持标签上的 transform,后期增加;
3201 console.warn('Do not add transform on the label, otherwise it will be invalid.'); // eslint-disable-line no-console
3202 }
3203 }
3204 style.transformSVG = transform;
3205 }
3206 return style;
3207};
3208p.getAnimStartData = function (item) {
3209 var _this3 = this;
3210
3211 var start = {};
3212 Object.keys(item).forEach(function (_key) {
3213 if (_key in __WEBPACK_IMPORTED_MODULE_3__plugins__["a" /* default */] || _this3.attr === 'attr' && (_key === 'd' || _key === 'points')) {
3214 _this3.computedStyle = _this3.computedStyle || _this3.getComputedStyle();
3215 start[_key] = item[_key].getAnimStart(_this3.computedStyle, _this3.tween, _this3.isSvg);
3216 return;
3217 }
3218 if (_this3.attr === 'attr') {
3219 // 除了d和这points外的标签动画;
3220 var attribute = _this3.target.getAttribute(_key);
3221 var data = attribute === 'null' || !attribute ? 0 : attribute;
3222 if (_key.match(/color/i) || _key === 'stroke' || _key === 'fill') {
3223 data = !data && _key === 'stroke' ? 'rgba(255, 255, 255, 0)' : data;
3224 data = Object(__WEBPACK_IMPORTED_MODULE_1_style_utils__["parseColor"])(data);
3225 start[_key] = data;
3226 } else if (parseFloat(data) || parseFloat(data) === 0 || data === 0) {
3227 var unit = data.toString().replace(/[^a-z|%]/g, '');
3228 start[_key] = unit !== item[_key].unit ? Object(__WEBPACK_IMPORTED_MODULE_5__util_js__["h" /* startConvertToEndUnit */])(_this3.target, _key, parseFloat(data), unit, item[_key].unit) : parseFloat(data);
3229 }
3230 return;
3231 }
3232 start[_key] = _this3.target[_key] || 0;
3233 });
3234 return start;
3235};
3236p.setAnimData = function (data) {
3237 var _this4 = this;
3238
3239 Object.keys(data).forEach(function (key) {
3240 if (key in __WEBPACK_IMPORTED_MODULE_3__plugins__["a" /* default */] || _this4.attr === 'attr' && (key === 'd' || key === 'points')) {
3241 return;
3242 }
3243 _this4.target[key] = data[key];
3244 });
3245};
3246p.setRatio = function (ratio, endData, i) {
3247 var _this5 = this;
3248
3249 Object.keys(endData.vars).forEach(function (_key) {
3250 if (_key in __WEBPACK_IMPORTED_MODULE_3__plugins__["a" /* default */] || _this5.attr === 'attr' && (_key === 'd' || _key === 'points')) {
3251 endData.vars[_key].setRatio(ratio, _this5.tween, _this5.isSvg && _this5.computedStyle);
3252 return;
3253 }
3254 var endVars = endData.vars[_key];
3255 var startVars = _this5.start[i][_key];
3256 var data = void 0;
3257 if (_this5.attr === 'attr') {
3258 // 除了d和这points外的标签动画;
3259 if (!endVars.type) {
3260 data = endVars.unit.charAt(1) === '=' ? startVars + endVars.vars * ratio + endVars.unit : (endVars.vars - startVars) * ratio + startVars + endVars.unit;
3261 _this5.target.setAttribute(_key, data);
3262 } else if (endVars.type === 'color') {
3263 if (endVars.vars.length === 3 && startVars.length === 4) {
3264 endVars.vars[3] = 1;
3265 }
3266 data = endVars.vars.map(function (_endData, _i) {
3267 var startData = startVars[_i] || 0;
3268 return (_endData - startData) * ratio + startData;
3269 });
3270 _this5.target.setAttribute(_key, Object(__WEBPACK_IMPORTED_MODULE_1_style_utils__["getColor"])(data));
3271 }
3272 }
3273 });
3274 this.setAnimData(this.tween);
3275};
3276p.render = function () {
3277 var _this6 = this;
3278
3279 var reverse = this.reverse;
3280 this.defaultData.forEach(function (item, i) {
3281 var initTime = item.initTime;
3282 var duration = Object(__WEBPACK_IMPORTED_MODULE_1_style_utils__["toFixed"])(item.duration);
3283 // 处理 yoyo 和 repeat; yoyo 是在时间轴上的, 并不是倒放
3284 var repeatNum = Math.ceil((_this6.progressTime - initTime) / (duration + item.repeatDelay)) - 1 || 0;
3285 repeatNum = repeatNum < 0 ? 0 : repeatNum;
3286 if (item.repeat) {
3287 if (item.repeat < repeatNum && item.repeat !== -1) {
3288 return;
3289 }
3290 if (item.repeat || item.repeat <= repeatNum) {
3291 initTime += repeatNum * (duration + item.repeatDelay);
3292 }
3293 }
3294 var startData = item.yoyo && repeatNum % 2 ? 1 : 0;
3295 var endData = item.yoyo && repeatNum % 2 ? 0 : 1;
3296 startData = item.type === 'from' ? 1 - startData : startData;
3297 endData = item.type === 'from' ? 1 - endData : endData;
3298 // 精度损失,只取小数点后10位。
3299 var progressTime = Object(__WEBPACK_IMPORTED_MODULE_1_style_utils__["toFixed"])(_this6.progressTime - initTime);
3300
3301 var ratio = void 0;
3302
3303 // 开始注册;
3304 // from 时需先执行参数位置;
3305 var fromDelay = item.type === 'from' ? item.delay : 0;
3306 if (progressTime + fromDelay >= 0) {
3307 if (!_this6.start[i]) {
3308 // 设置 start
3309 _this6.start[i] = _this6.getAnimStartData(item.vars);
3310 if (progressTime < _this6.perFrame) {
3311 ratio = !item.duration && !item.delay ? item.ease(1, startData, endData, 1) : item.ease(0, startData, endData, 1);
3312 _this6.setRatio(ratio, item, i);
3313 } else if (progressTime > duration) {
3314 ratio = item.ease(1, startData, endData, 1);
3315 _this6.setRatio(ratio, item, i);
3316 }
3317 if (!_this6.register || i && !initTime) {
3318 _this6.register = true;
3319 if (progressTime === 0 && item.duration && item.delay) {
3320 return;
3321 }
3322 }
3323 }
3324 }
3325
3326 var e = {
3327 index: i,
3328 target: _this6.target
3329 };
3330 var cb = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({
3331 moment: _this6.progressTime
3332 }, e);
3333 var maxPer = _this6.perFrame - _this6.accuracy;
3334 var startTime = item.delay && reverse ? -maxPer : 0;
3335 if ((progressTime >= startTime && !(progressTime > duration && item.mode === 'onComplete') || progressTime < startTime && item.mode && item.mode !== 'onStart') && _this6.start[i]) {
3336 var updateAnim = _this6.updateAnim === 'update';
3337 progressTime = progressTime < maxPer && !reverse && item.duration >= _this6.perFrame ? 0 : progressTime;
3338 if ((progressTime >= duration - _this6.accuracy && !reverse || reverse && progressTime <= 0) && repeatNum >= item.repeat) {
3339 if (item.mode === 'onComplete') {
3340 return;
3341 }
3342 // onReveresComplete 和 onComplete 统一用 onComplete;
3343 ratio = item.ease(reverse ? 0 : 1, startData, endData, 1);
3344 _this6.setRatio(ratio, item, i, item.currentRepeat !== repeatNum);
3345 if ((!item.reset || item.reset && progressTime >= duration) && !updateAnim) {
3346 // duration 为 0 时的一个回调;
3347 if (duration < maxPer) {
3348 if (!duration) {
3349 item.onStart(e);
3350 cb.mode = 'onStart';
3351 _this6.onChange(cb);
3352 }
3353 item.onUpdate(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({ ratio: ratio }, e));
3354 cb.mode = 'onUpdate';
3355 _this6.onChange(cb);
3356 }
3357 item.onComplete(e);
3358 } else if (progressTime >= duration + maxPer) {
3359 return;
3360 }
3361 item.mode = 'onComplete';
3362 } else if (duration > maxPer) {
3363 var currentProgress = progressTime < 0 ? 0 : progressTime;
3364 currentProgress = currentProgress > duration ? duration : currentProgress;
3365 ratio = item.ease(currentProgress, startData, endData, duration);
3366 _this6.setRatio(ratio, item, i);
3367 if (!updateAnim) {
3368 if (item.repeat && repeatNum > 0 && item.currentRepeat !== repeatNum) {
3369 item.mode = 'onRepeat';
3370 item.currentRepeat = repeatNum;
3371 item.onRepeat(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, e, { repeatNum: repeatNum }));
3372 } else if ((item.perTime <= 0 || reverse && item.perTime >= _this6.reverseStartTime - initTime) && item.mode !== 'onStart') {
3373 // onReveresStart 和 onStart 统一用 onStart;
3374 item.mode = 'onStart';
3375 item.onStart(e);
3376 } else {
3377 item.mode = 'onUpdate';
3378 item.onUpdate(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({ ratio: ratio }, e));
3379 }
3380 }
3381 }
3382
3383 if (!updateAnim) {
3384 cb.mode = item.mode;
3385 _this6.onChange(cb);
3386 }
3387 item.perTime = progressTime;
3388 if (item.reset) {
3389 delete item.reset;
3390 }
3391 }
3392 });
3393};
3394// 播放帧
3395p.frame = function (moment) {
3396 var _this7 = this;
3397
3398 this.progressTime = moment;
3399 this.defaultData.forEach(function (item) {
3400 var t = _this7.progressTime - item.duration - item.initTime;
3401 if (t < _this7.perFrame && t > 0) {
3402 _this7.progressTime = item.duration + item.initTime;
3403 }
3404 });
3405 this.render();
3406};
3407p.resetAnimData = function () {
3408 this.tween = {};
3409 this.start = {};
3410};
3411
3412p.resetDefaultStyle = function () {
3413 var _this8 = this;
3414
3415 this.tween = {};
3416 this.defaultData = this.defaultData.map(function (item) {
3417 item.reset = true;
3418 delete item.mode;
3419 return item;
3420 });
3421 Object.keys(this.startDefaultData).forEach(function (key) {
3422 if (!(key in defaultData({}, 0))) {
3423 _this8.target.setAttribute(key, _this8.startDefaultData[key]);
3424 _this8.computedStyle = null;
3425 }
3426 });
3427};
3428
3429p.reStart = function (style) {
3430 var _this9 = this;
3431
3432 this.start = {};
3433 this.target.style.cssText = '';
3434 Object.keys(style || {}).forEach(function (key) {
3435 _this9.target.style[key] = Object(__WEBPACK_IMPORTED_MODULE_1_style_utils__["stylesToCss"])(key, style[key]);
3436 });
3437 this.setAttrIsStyle();
3438 this.resetDefaultStyle();
3439};
3440
3441p.onChange = noop;
3442/* harmony default export */ __webpack_exports__["a"] = (Tween);
3443
3444/***/ }),
3445/* 61 */
3446/***/ (function(module, __webpack_exports__, __webpack_require__) {
3447
3448"use strict";
3449/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tween_functions__ = __webpack_require__(62);
3450/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tween_functions___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_tween_functions__);
3451/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__util__ = __webpack_require__(20);
3452
3453
3454
3455__WEBPACK_IMPORTED_MODULE_0_tween_functions___default.a.path = function (_path, _param) {
3456 var param = _param || {};
3457 if (__WEBPACK_IMPORTED_MODULE_1__util__["k" /* windowIsUndefined */]) {
3458 return 'linear';
3459 }
3460 var pathNode = Object(__WEBPACK_IMPORTED_MODULE_1__util__["g" /* parsePath */])(_path);
3461 var pathLength = pathNode.getTotalLength();
3462 var rect = param.rect || 100; // path 的大小,100 * 100,
3463 var lengthPixel = param.lengthPixel || 200; // 线上取点像素,默认分为 200 段。。
3464 var points = [];
3465 for (var i = 0; i < lengthPixel - 1; i++) {
3466 points.push(pathNode.getPointAtLength(pathLength / (lengthPixel - 1) * i));
3467 }
3468 points.push(pathNode.getPointAtLength(lengthPixel));
3469 return function path(t, b, _c, d) {
3470 var p = __WEBPACK_IMPORTED_MODULE_0_tween_functions___default.a.linear(t, b, _c, d);
3471 var timePointX = rect * p; // X 轴的百分比;
3472 // 取出 x 轴百分比上的点;
3473 var point = points.filter(function (item) {
3474 return item.x >= timePointX;
3475 })[0] || pathNode.getPointAtLength(p * pathLength);
3476 return 1 - point.y / rect;
3477 };
3478};
3479
3480/* harmony default export */ __webpack_exports__["a"] = (__WEBPACK_IMPORTED_MODULE_0_tween_functions___default.a);
3481
3482/***/ }),
3483/* 62 */
3484/***/ (function(module, exports, __webpack_require__) {
3485
3486"use strict";
3487
3488
3489// t: current time, b: beginning value, _c: final value, d: total duration
3490var tweenFunctions = {
3491 linear: function(t, b, _c, d) {
3492 var c = _c - b;
3493 return c * t / d + b;
3494 },
3495 easeInQuad: function(t, b, _c, d) {
3496 var c = _c - b;
3497 return c * (t /= d) * t + b;
3498 },
3499 easeOutQuad: function(t, b, _c, d) {
3500 var c = _c - b;
3501 return -c * (t /= d) * (t - 2) + b;
3502 },
3503 easeInOutQuad: function(t, b, _c, d) {
3504 var c = _c - b;
3505 if ((t /= d / 2) < 1) {
3506 return c / 2 * t * t + b;
3507 } else {
3508 return -c / 2 * ((--t) * (t - 2) - 1) + b;
3509 }
3510 },
3511 easeInCubic: function(t, b, _c, d) {
3512 var c = _c - b;
3513 return c * (t /= d) * t * t + b;
3514 },
3515 easeOutCubic: function(t, b, _c, d) {
3516 var c = _c - b;
3517 return c * ((t = t / d - 1) * t * t + 1) + b;
3518 },
3519 easeInOutCubic: function(t, b, _c, d) {
3520 var c = _c - b;
3521 if ((t /= d / 2) < 1) {
3522 return c / 2 * t * t * t + b;
3523 } else {
3524 return c / 2 * ((t -= 2) * t * t + 2) + b;
3525 }
3526 },
3527 easeInQuart: function(t, b, _c, d) {
3528 var c = _c - b;
3529 return c * (t /= d) * t * t * t + b;
3530 },
3531 easeOutQuart: function(t, b, _c, d) {
3532 var c = _c - b;
3533 return -c * ((t = t / d - 1) * t * t * t - 1) + b;
3534 },
3535 easeInOutQuart: function(t, b, _c, d) {
3536 var c = _c - b;
3537 if ((t /= d / 2) < 1) {
3538 return c / 2 * t * t * t * t + b;
3539 } else {
3540 return -c / 2 * ((t -= 2) * t * t * t - 2) + b;
3541 }
3542 },
3543 easeInQuint: function(t, b, _c, d) {
3544 var c = _c - b;
3545 return c * (t /= d) * t * t * t * t + b;
3546 },
3547 easeOutQuint: function(t, b, _c, d) {
3548 var c = _c - b;
3549 return c * ((t = t / d - 1) * t * t * t * t + 1) + b;
3550 },
3551 easeInOutQuint: function(t, b, _c, d) {
3552 var c = _c - b;
3553 if ((t /= d / 2) < 1) {
3554 return c / 2 * t * t * t * t * t + b;
3555 } else {
3556 return c / 2 * ((t -= 2) * t * t * t * t + 2) + b;
3557 }
3558 },
3559 easeInSine: function(t, b, _c, d) {
3560 var c = _c - b;
3561 return -c * Math.cos(t / d * (Math.PI / 2)) + c + b;
3562 },
3563 easeOutSine: function(t, b, _c, d) {
3564 var c = _c - b;
3565 return c * Math.sin(t / d * (Math.PI / 2)) + b;
3566 },
3567 easeInOutSine: function(t, b, _c, d) {
3568 var c = _c - b;
3569 return -c / 2 * (Math.cos(Math.PI * t / d) - 1) + b;
3570 },
3571 easeInExpo: function(t, b, _c, d) {
3572 var c = _c - b;
3573 return (t==0) ? b : c * Math.pow(2, 10 * (t/d - 1)) + b;
3574 },
3575 easeOutExpo: function(t, b, _c, d) {
3576 var c = _c - b;
3577 return (t==d) ? b+c : c * (-Math.pow(2, -10 * t/d) + 1) + b;
3578 },
3579 easeInOutExpo: function(t, b, _c, d) {
3580 var c = _c - b;
3581 if (t === 0) {
3582 return b;
3583 }
3584 if (t === d) {
3585 return b + c;
3586 }
3587 if ((t /= d / 2) < 1) {
3588 return c / 2 * Math.pow(2, 10 * (t - 1)) + b;
3589 } else {
3590 return c / 2 * (-Math.pow(2, -10 * --t) + 2) + b;
3591 }
3592 },
3593 easeInCirc: function(t, b, _c, d) {
3594 var c = _c - b;
3595 return -c * (Math.sqrt(1 - (t /= d) * t) - 1) + b;
3596 },
3597 easeOutCirc: function(t, b, _c, d) {
3598 var c = _c - b;
3599 return c * Math.sqrt(1 - (t = t / d - 1) * t) + b;
3600 },
3601 easeInOutCirc: function(t, b, _c, d) {
3602 var c = _c - b;
3603 if ((t /= d / 2) < 1) {
3604 return -c / 2 * (Math.sqrt(1 - t * t) - 1) + b;
3605 } else {
3606 return c / 2 * (Math.sqrt(1 - (t -= 2) * t) + 1) + b;
3607 }
3608 },
3609 easeInElastic: function(t, b, _c, d) {
3610 var c = _c - b;
3611 var a, p, s;
3612 s = 1.70158;
3613 p = 0;
3614 a = c;
3615 if (t === 0) {
3616 return b;
3617 } else if ((t /= d) === 1) {
3618 return b + c;
3619 }
3620 if (!p) {
3621 p = d * 0.3;
3622 }
3623 if (a < Math.abs(c)) {
3624 a = c;
3625 s = p / 4;
3626 } else {
3627 s = p / (2 * Math.PI) * Math.asin(c / a);
3628 }
3629 return -(a * Math.pow(2, 10 * (t -= 1)) * Math.sin((t * d - s) * (2 * Math.PI) / p)) + b;
3630 },
3631 easeOutElastic: function(t, b, _c, d) {
3632 var c = _c - b;
3633 var a, p, s;
3634 s = 1.70158;
3635 p = 0;
3636 a = c;
3637 if (t === 0) {
3638 return b;
3639 } else if ((t /= d) === 1) {
3640 return b + c;
3641 }
3642 if (!p) {
3643 p = d * 0.3;
3644 }
3645 if (a < Math.abs(c)) {
3646 a = c;
3647 s = p / 4;
3648 } else {
3649 s = p / (2 * Math.PI) * Math.asin(c / a);
3650 }
3651 return a * Math.pow(2, -10 * t) * Math.sin((t * d - s) * (2 * Math.PI) / p) + c + b;
3652 },
3653 easeInOutElastic: function(t, b, _c, d) {
3654 var c = _c - b;
3655 var a, p, s;
3656 s = 1.70158;
3657 p = 0;
3658 a = c;
3659 if (t === 0) {
3660 return b;
3661 } else if ((t /= d / 2) === 2) {
3662 return b + c;
3663 }
3664 if (!p) {
3665 p = d * (0.3 * 1.5);
3666 }
3667 if (a < Math.abs(c)) {
3668 a = c;
3669 s = p / 4;
3670 } else {
3671 s = p / (2 * Math.PI) * Math.asin(c / a);
3672 }
3673 if (t < 1) {
3674 return -0.5 * (a * Math.pow(2, 10 * (t -= 1)) * Math.sin((t * d - s) * (2 * Math.PI) / p)) + b;
3675 } else {
3676 return a * Math.pow(2, -10 * (t -= 1)) * Math.sin((t * d - s) * (2 * Math.PI) / p) * 0.5 + c + b;
3677 }
3678 },
3679 easeInBack: function(t, b, _c, d, s) {
3680 var c = _c - b;
3681 if (s === void 0) {
3682 s = 1.70158;
3683 }
3684 return c * (t /= d) * t * ((s + 1) * t - s) + b;
3685 },
3686 easeOutBack: function(t, b, _c, d, s) {
3687 var c = _c - b;
3688 if (s === void 0) {
3689 s = 1.70158;
3690 }
3691 return c * ((t = t / d - 1) * t * ((s + 1) * t + s) + 1) + b;
3692 },
3693 easeInOutBack: function(t, b, _c, d, s) {
3694 var c = _c - b;
3695 if (s === void 0) {
3696 s = 1.70158;
3697 }
3698 if ((t /= d / 2) < 1) {
3699 return c / 2 * (t * t * (((s *= 1.525) + 1) * t - s)) + b;
3700 } else {
3701 return c / 2 * ((t -= 2) * t * (((s *= 1.525) + 1) * t + s) + 2) + b;
3702 }
3703 },
3704 easeInBounce: function(t, b, _c, d) {
3705 var c = _c - b;
3706 var v;
3707 v = tweenFunctions.easeOutBounce(d - t, 0, c, d);
3708 return c - v + b;
3709 },
3710 easeOutBounce: function(t, b, _c, d) {
3711 var c = _c - b;
3712 if ((t /= d) < 1 / 2.75) {
3713 return c * (7.5625 * t * t) + b;
3714 } else if (t < 2 / 2.75) {
3715 return c * (7.5625 * (t -= 1.5 / 2.75) * t + 0.75) + b;
3716 } else if (t < 2.5 / 2.75) {
3717 return c * (7.5625 * (t -= 2.25 / 2.75) * t + 0.9375) + b;
3718 } else {
3719 return c * (7.5625 * (t -= 2.625 / 2.75) * t + 0.984375) + b;
3720 }
3721 },
3722 easeInOutBounce: function(t, b, _c, d) {
3723 var c = _c - b;
3724 var v;
3725 if (t < d / 2) {
3726 v = tweenFunctions.easeInBounce(t * 2, 0, c, d);
3727 return v * 0.5 + b;
3728 } else {
3729 v = tweenFunctions.easeOutBounce(t * 2 - d, 0, c, d);
3730 return v * 0.5 + c * 0.5 + b;
3731 }
3732 }
3733};
3734
3735module.exports = tweenFunctions;
3736
3737
3738/***/ }),
3739/* 63 */
3740/***/ (function(module, exports, __webpack_require__) {
3741
3742__webpack_require__(64);
3743module.exports = __webpack_require__(65);
3744
3745
3746/***/ }),
3747/* 64 */
3748/***/ (function(module, exports) {
3749
3750// removed by extract-text-webpack-plugin
3751
3752/***/ }),
3753/* 65 */
3754/***/ (function(module, __webpack_exports__, __webpack_require__) {
3755
3756"use strict";
3757Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
3758/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__BannerAnim__ = __webpack_require__(66);
3759/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Arrow__ = __webpack_require__(57);
3760/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__Element__ = __webpack_require__(114);
3761/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__Thumb__ = __webpack_require__(58);
3762/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__anim__ = __webpack_require__(43);
3763/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__utils__ = __webpack_require__(17);
3764/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Arrow", function() { return __WEBPACK_IMPORTED_MODULE_1__Arrow__["a"]; });
3765/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Element", function() { return __WEBPACK_IMPORTED_MODULE_2__Element__["a"]; });
3766/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Thumb", function() { return __WEBPACK_IMPORTED_MODULE_3__Thumb__["a"]; });
3767/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "animType", function() { return __WEBPACK_IMPORTED_MODULE_4__anim__["a"]; });
3768/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "setAnimCompToTagComp", function() { return __WEBPACK_IMPORTED_MODULE_5__utils__["d"]; });
3769/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "switchChildren", function() { return __WEBPACK_IMPORTED_MODULE_5__utils__["e"]; });
3770// export this package's api
3771
3772
3773
3774
3775
3776
3777
3778__WEBPACK_IMPORTED_MODULE_0__BannerAnim__["a" /* default */].Arrow = __WEBPACK_IMPORTED_MODULE_1__Arrow__["a" /* default */];
3779__WEBPACK_IMPORTED_MODULE_0__BannerAnim__["a" /* default */].Element = __WEBPACK_IMPORTED_MODULE_2__Element__["a" /* default */];
3780__WEBPACK_IMPORTED_MODULE_0__BannerAnim__["a" /* default */].Thumb = __WEBPACK_IMPORTED_MODULE_3__Thumb__["a" /* default */];
3781__WEBPACK_IMPORTED_MODULE_0__BannerAnim__["a" /* default */].animType = __WEBPACK_IMPORTED_MODULE_4__anim__["a" /* default */];
3782__WEBPACK_IMPORTED_MODULE_0__BannerAnim__["a" /* default */].setAnimCompToTagComp = __WEBPACK_IMPORTED_MODULE_5__utils__["d" /* setAnimCompToTagComp */];
3783__WEBPACK_IMPORTED_MODULE_0__BannerAnim__["a" /* default */].switchChildren = __WEBPACK_IMPORTED_MODULE_5__utils__["e" /* switchChildren */];
3784
3785/* harmony default export */ __webpack_exports__["default"] = (__WEBPACK_IMPORTED_MODULE_0__BannerAnim__["a" /* default */]);
3786
3787
3788
3789/***/ }),
3790/* 66 */
3791/***/ (function(module, __webpack_exports__, __webpack_require__) {
3792
3793"use strict";
3794/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(0);
3795/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__);
3796/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck__ = __webpack_require__(8);
3797/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck__);
3798/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_createClass__ = __webpack_require__(9);
3799/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_createClass___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_createClass__);
3800/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(10);
3801/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__);
3802/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__ = __webpack_require__(11);
3803/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__);
3804/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react__ = __webpack_require__(1);
3805/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_react__);
3806/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react_dom__ = __webpack_require__(26);
3807/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_react_dom__);
3808/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types__ = __webpack_require__(4);
3809/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_prop_types__);
3810/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_rc_tween_one_es_ticker__ = __webpack_require__(28);
3811/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__Arrow__ = __webpack_require__(57);
3812/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__Thumb__ = __webpack_require__(58);
3813/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__utils__ = __webpack_require__(17);
3814/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__anim__ = __webpack_require__(43);
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829var BannerAnim = function (_Component) {
3830 __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default()(BannerAnim, _Component);
3831
3832 function BannerAnim(props) {
3833 __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck___default()(this, BannerAnim);
3834
3835 var _this = __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default()(this, (BannerAnim.__proto__ || Object.getPrototypeOf(BannerAnim)).call(this, props));
3836
3837 _this.onMouseEnter = function (e) {
3838 _this.props.onMouseEnter(e);
3839 if (_this.props.autoPlay && _this.props.autoPlayEffect) {
3840 __WEBPACK_IMPORTED_MODULE_8_rc_tween_one_es_ticker__["a" /* default */].clear(_this.autoPlayId);
3841 _this.autoPlayId = -1;
3842 }
3843 };
3844
3845 _this.onMouseLeave = function (e) {
3846 _this.props.onMouseLeave(e);
3847 if (_this.props.autoPlay && _this.props.autoPlayEffect) {
3848 _this.autoPlay();
3849 }
3850 };
3851
3852 _this.onTouchStart = function (e) {
3853 if (e.touches && e.touches.length > 1 || _this.elemWrapper.length <= 1 || _this.getDomIsArrowOrThumb(e) || e.button === 2 || _this.tweenBool) {
3854 return;
3855 }
3856 if (_this.props.autoPlay) {
3857 __WEBPACK_IMPORTED_MODULE_8_rc_tween_one_es_ticker__["a" /* default */].clear(_this.autoPlayId);
3858 _this.autoPlayId = -1;
3859 }
3860 _this.animType = _this.getAnimType(_this.props.type);
3861 _this.currentShow = _this.state.currentShow;
3862 // this.mouseMoveType = 'start';
3863 _this.mouseStartXY = {
3864 startX: e.touches === undefined ? e.clientX : e.touches[0].clientX,
3865 startY: e.touches === undefined ? e.clientY : e.touches[0].clientY
3866 };
3867 };
3868
3869 _this.onTouchMove = function (e) {
3870 if (!_this.mouseStartXY || e.touches && e.touches.length > 1 || _this.tweenBool) {
3871 return;
3872 }
3873
3874 var _this$getDiffer = _this.getDiffer(e, e.touches),
3875 differ = _this$getDiffer.differ,
3876 rectName = _this$getDiffer.rectName;
3877
3878 if (!differ) {
3879 return;
3880 }
3881 var ratio = differ / _this.state.domRect[rectName] * 2;
3882 var ratioType = ratio > 0 ? '+' : '-';
3883 var currentShow = _this.currentShow;
3884 _this.mouseMoveType = 'update';
3885 if (_this.ratioType !== ratioType) {
3886 _this.ratioType = ratioType;
3887 _this.mouseMoveType = 'reChild';
3888 _this.setState({
3889 currentShow: currentShow
3890 });
3891 return;
3892 }
3893 if ((_this.animType === __WEBPACK_IMPORTED_MODULE_12__anim__["a" /* default */].gridBar || _this.animType === __WEBPACK_IMPORTED_MODULE_12__anim__["a" /* default */].grid) && e.touches) {
3894 return;
3895 }
3896 _this.ratio = ratio;
3897 if (_this.ratio) {
3898 var type = void 0;
3899 if (_this.ratio > 0) {
3900 currentShow += 1;
3901 type = 'next';
3902 } else {
3903 currentShow -= 1;
3904 type = 'prev';
3905 }
3906 _this.ratio = Math.abs(_this.ratio);
3907 _this.ratio = _this.ratio > 0.99 ? 0.99 : _this.ratio;
3908 currentShow = currentShow >= _this.elemWrapper.length ? 0 : currentShow;
3909 currentShow = currentShow < 0 ? _this.elemWrapper.length - 1 : currentShow;
3910 _this.setState({
3911 currentShow: currentShow,
3912 direction: type
3913 });
3914 }
3915 };
3916
3917 _this.onTouchEnd = function (e) {
3918 if (!_this.mouseStartXY || e.changedTouches && e.changedTouches.length > 1 || _this.tweenBool) {
3919 return;
3920 }
3921 if (_this.props.autoPlay && _this.autoPlayId === -1) {
3922 _this.autoPlay();
3923 }
3924
3925 var _this$getDiffer2 = _this.getDiffer(e, e.changedTouches),
3926 differ = _this$getDiffer2.differ,
3927 rectName = _this$getDiffer2.rectName;
3928
3929 delete _this.mouseStartXY;
3930 _this.mouseMoveType = 'end';
3931 if (!differ) {
3932 _this.mouseMoveType = '';
3933 return;
3934 }
3935 _this.tweenBool = true;
3936 if ((_this.animType === __WEBPACK_IMPORTED_MODULE_12__anim__["a" /* default */].gridBar || _this.animType === __WEBPACK_IMPORTED_MODULE_12__anim__["a" /* default */].grid) && e.changedTouches) {
3937 var currentShow = _this.currentShow;
3938 var ratio = differ / _this.state.domRect[rectName] * 2;
3939 if (ratio > 0) {
3940 currentShow += 1;
3941 } else {
3942 currentShow -= 1;
3943 }
3944 currentShow = currentShow >= _this.elemWrapper.length ? 0 : currentShow;
3945 currentShow = currentShow < 0 ? _this.elemWrapper.length - 1 : currentShow;
3946 _this.ratio = 0;
3947 _this.mouseMoveType = '';
3948 _this.slickGoTo(currentShow, true);
3949 return;
3950 }
3951
3952 if (_this.ratio > 0.3) {
3953 _this.forceUpdate(function () {
3954 _this.ratio = 0;
3955 _this.mouseMoveType = '';
3956 });
3957 } else {
3958 _this.setState({
3959 currentShow: _this.currentShow,
3960 direction: _this.ratioType === '+' ? 'prev' : 'next'
3961 }, function () {
3962 _this.ratio = 0;
3963 _this.mouseMoveType = '';
3964 });
3965 }
3966 };
3967
3968 _this.getDiffer = function (e, touches) {
3969 var currentX = touches === undefined ? e.clientX : touches[0].clientX;
3970 var currentY = touches === undefined ? e.clientY : touches[0].clientY;
3971 var differX = currentX - _this.mouseStartXY.startX;
3972 var differY = currentY - _this.mouseStartXY.startY;
3973 var differ = Math.max(Math.abs(differX), Math.abs(differY));
3974 differ = differ === Math.abs(differX) ? differX : differY;
3975 return {
3976 differ: differ,
3977 rectName: differ === Math.abs(differX) ? 'width' : 'height'
3978 };
3979 };
3980
3981 _this.getDomIsArrowOrThumb = function (e) {
3982 var arrowClassName = e.target.className;
3983 var thumbClassName = e.target.parentNode.className;
3984 if (arrowClassName.indexOf('banner-anim-arrow') >= 0 || thumbClassName.indexOf('banner-anim-thumb') >= 0) {
3985 return true;
3986 }
3987 return false;
3988 };
3989
3990 _this.getRenderChildren = function (children) {
3991 var elem = [];
3992 var arrow = [];
3993 var thumb = void 0;
3994 var elementKeyNum = 0;
3995 var thumbKeyNum = 0;
3996
3997 Object(__WEBPACK_IMPORTED_MODULE_11__utils__["f" /* toArrayChildren */])(children).forEach(function (item, i) {
3998 if (!item) {
3999 return;
4000 }
4001 var itemProps = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, item.props);
4002 if (item.type.isBannerAnimElement) {
4003 itemProps.key = item.key || 'element-' + elementKeyNum;
4004 elementKeyNum += 1;
4005 itemProps.callBack = _this.animEnd;
4006 itemProps.show = _this.state.currentShow === i;
4007 itemProps.animType = _this.animType;
4008 itemProps.duration = _this.props.duration;
4009 itemProps.delay = _this.props.delay;
4010 itemProps.ease = _this.props.ease;
4011 itemProps.sync = _this.props.sync || itemProps.sync;
4012 itemProps.elemOffset = {
4013 top: _this.state.domRect.top,
4014 width: _this.state.domRect.width,
4015 height: _this.state.wrapperHeight
4016 };
4017 itemProps.direction = _this.state.direction;
4018 itemProps.ratio = _this.ratio;
4019 itemProps.mouseMoveType = _this.mouseMoveType;
4020 elem.push(__WEBPACK_IMPORTED_MODULE_5_react___default.a.cloneElement(item, itemProps));
4021 } else if (item.type.isBannerAnimArrow) {
4022 itemProps.next = _this.next;
4023 itemProps.prev = _this.prev;
4024 itemProps.key = item.key || itemProps.arrowType;
4025 itemProps.elemHeight = _this.state.wrapperHeight;
4026 arrow.push(__WEBPACK_IMPORTED_MODULE_5_react___default.a.cloneElement(item, itemProps));
4027 } else if (item.type.isBannerAnimThumb) {
4028 itemProps.key = item.key || 'thumb-' + thumbKeyNum;
4029 thumbKeyNum += 1;
4030 itemProps.thumbClick = _this.slickGoTo;
4031 itemProps.active = _this.state.currentShow;
4032 thumb = __WEBPACK_IMPORTED_MODULE_5_react___default.a.cloneElement(item, itemProps);
4033 }
4034 });
4035 if (elem.length > 1) {
4036 if (!arrow.length && _this.props.arrow) {
4037 arrow.push(__WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_9__Arrow__["a" /* default */], { arrowType: 'prev', key: 'arrowPrev', next: _this.next, prev: _this.prev, 'default': true,
4038 elemHeight: _this.state.wrapperHeight
4039 }), __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_9__Arrow__["a" /* default */], { arrowType: 'next', key: 'arrowNext', next: _this.next, prev: _this.prev, 'default': true,
4040 elemHeight: _this.state.wrapperHeight
4041 }));
4042 }
4043 if (!thumb && _this.props.thumb) {
4044 thumb = __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_10__Thumb__["a" /* default */], { length: elem.length, key: 'thumb',
4045 thumbClick: _this.slickGoTo,
4046 active: _this.state.currentShow,
4047 'default': true
4048 });
4049 }
4050 }
4051 _this.elemWrapper = elem;
4052 return elem.concat(arrow, thumb);
4053 };
4054
4055 _this.getDomDataSetToState = function () {
4056 _this.dom = __WEBPACK_IMPORTED_MODULE_6_react_dom___default.a.findDOMNode(_this);
4057 var domRect = _this.dom.getBoundingClientRect();
4058 // 获取宽度与定位,setState刷新;
4059 var wrapperHeight = _this.getElementHeight(_this.dom.getElementsByClassName('banner-anim-elem'));
4060 _this.setState({
4061 wrapperHeight: wrapperHeight,
4062 domRect: domRect
4063 });
4064 _this.tweenBool = false;
4065 };
4066
4067 _this.getElementHeight = function (children) {
4068 var height = 0;
4069 for (var i = 0; i < children.length; i++) {
4070 var dom = children[i];
4071 var _height = dom.getBoundingClientRect().height;
4072 height = height > _height ? height : _height;
4073 }
4074 return height;
4075 };
4076
4077 _this.getAnimType = function (type) {
4078 var typeArray = type ? Object(__WEBPACK_IMPORTED_MODULE_11__utils__["c" /* dataToArray */])(type) : Object.keys(__WEBPACK_IMPORTED_MODULE_12__anim__["a" /* default */]);
4079 var random = Math.round(Math.random() * (typeArray.length - 1));
4080 return __WEBPACK_IMPORTED_MODULE_12__anim__["a" /* default */][typeArray[random]];
4081 };
4082
4083 _this.autoPlay = function () {
4084 _this.autoPlayId = __WEBPACK_IMPORTED_MODULE_8_rc_tween_one_es_ticker__["a" /* default */].interval(_this.next, _this.props.autoPlaySpeed);
4085 };
4086
4087 _this.animTweenStart = function (show, type, noGetAnimType) {
4088 if (!noGetAnimType) {
4089 _this.animType = _this.getAnimType(_this.props.type);
4090 }
4091 _this.props.onChange('before', show);
4092 _this.setState({
4093 currentShow: show,
4094 direction: type
4095 });
4096 };
4097
4098 _this.animEnd = function (type) {
4099 if (type === 'enter') {
4100 _this.tweenBool = false;
4101 _this.props.onChange('after', _this.state.currentShow);
4102 }
4103 };
4104
4105 _this.next = function () {
4106 if (!_this.tweenBool) {
4107 _this.tweenBool = true;
4108 var newShow = _this.state.currentShow;
4109 newShow++;
4110 if (newShow >= _this.elemWrapper.length) {
4111 newShow = 0;
4112 }
4113 _this.animTweenStart(newShow, 'next');
4114 }
4115 };
4116
4117 _this.prev = function () {
4118 if (!_this.tweenBool) {
4119 _this.tweenBool = true;
4120 var newShow = _this.state.currentShow;
4121 newShow--;
4122 if (newShow < 0) {
4123 newShow = _this.elemWrapper.length - 1;
4124 }
4125 _this.animTweenStart(newShow, 'prev');
4126 }
4127 };
4128
4129 _this.slickGoTo = function (i, noGetAnimType) {
4130 if (!_this.tweenBool && i !== _this.state.currentShow) {
4131 _this.tweenBool = true;
4132 var type = i > _this.state.currentShow ? 'next' : 'prev';
4133 _this.animTweenStart(i, type, noGetAnimType);
4134 }
4135 };
4136
4137 _this.state = {
4138 currentShow: _this.props.initShow,
4139 direction: null,
4140 wrapperHeight: 0,
4141 domRect: {}
4142 };
4143 _this.tweenBool = false;
4144 return _this;
4145 }
4146
4147 __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_createClass___default()(BannerAnim, [{
4148 key: 'componentDidMount',
4149 value: function componentDidMount() {
4150 this.getDomDataSetToState();
4151 if (window.addEventListener) {
4152 window.addEventListener('resize', this.getDomDataSetToState);
4153 } else {
4154 window.attachEvent('onresize', this.getDomDataSetToState);
4155 }
4156 if (this.props.autoPlay) {
4157 this.autoPlay();
4158 }
4159 }
4160 }, {
4161 key: 'componentWillReceiveProps',
4162 value: function componentWillReceiveProps() {
4163 this.tweenBool = false;
4164 }
4165 }, {
4166 key: 'componentWillUnmount',
4167 value: function componentWillUnmount() {
4168 if (this.autoPlayId) {
4169 __WEBPACK_IMPORTED_MODULE_8_rc_tween_one_es_ticker__["a" /* default */].clear(this.autoPlayId);
4170 this.autoPlayId = 0;
4171 }
4172 if (window.addEventListener) {
4173 window.removeEventListener('touchend', this.onTouchEnd);
4174 window.removeEventListener('mouseup', this.onTouchEnd);
4175 window.removeEventListener('resize', this.getDomDataSetToState);
4176 } else {
4177 window.detachEvent('ontouchend', this.onTouchEnd);
4178 window.attachEvent('onmouseup', this.onTouchEnd);
4179 window.detachEvent('onresize', this.getDomDataSetToState);
4180 }
4181 }
4182 }, {
4183 key: 'render',
4184 value: function render() {
4185 var prefixCls = this.props.prefixCls;
4186 var props = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, this.props);
4187 ['type', 'prefixCls', 'component', 'initShow', 'duration', 'delay', 'ease', 'arrow', 'thumb', 'autoPlaySpeed', 'autoPlay', 'thumbFloat', 'sync', 'dragPlay', 'autoPlayEffect'].forEach(function (key) {
4188 return delete props[key];
4189 });
4190 var childrenToRender = this.getRenderChildren(props.children);
4191 props.className = (props.className + ' ' + (prefixCls || '')).trim();
4192 props.style = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, props.style);
4193 props.onMouseEnter = this.onMouseEnter;
4194 props.onMouseLeave = this.onMouseLeave;
4195 if (childrenToRender.length > 1 && this.props.dragPlay) {
4196 props.onTouchStart = this.onTouchStart;
4197 props.onMouseDown = this.onTouchStart;
4198 props.onTouchMove = this.onTouchMove;
4199 props.onMouseMove = this.onTouchMove;
4200 props.onTouchEnd = this.onTouchEnd;
4201 props.onMouseUp = this.onTouchEnd;
4202 }
4203 return __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement(this.props.component, props, childrenToRender);
4204 }
4205 }]);
4206
4207 return BannerAnim;
4208}(__WEBPACK_IMPORTED_MODULE_5_react__["Component"]);
4209
4210BannerAnim.propTypes = {
4211 children: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.any,
4212 style: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.object,
4213 className: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.string,
4214 prefixCls: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.string,
4215 component: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.any,
4216 arrow: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool,
4217 thumb: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool,
4218 initShow: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.number,
4219 type: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.any,
4220 duration: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.number,
4221 delay: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.number,
4222 ease: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.string,
4223 autoPlay: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool,
4224 autoPlaySpeed: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.number,
4225 autoPlayEffect: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool,
4226 onChange: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.func,
4227 onMouseEnter: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.func,
4228 onMouseLeave: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.func,
4229 sync: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool,
4230 dragPlay: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool
4231};
4232BannerAnim.defaultProps = {
4233 component: 'div',
4234 className: 'banner-anim',
4235 initShow: 0,
4236 duration: 450,
4237 delay: 0,
4238 ease: 'easeInOutQuad',
4239 arrow: true,
4240 thumb: true,
4241 autoPlaySpeed: 5000,
4242 autoPlayEffect: true,
4243 dragPlay: true,
4244 onChange: function onChange() {},
4245 onMouseEnter: function onMouseEnter() {},
4246 onMouseLeave: function onMouseLeave() {}
4247};
4248BannerAnim.isBannerAnim = true;
4249/* harmony default export */ __webpack_exports__["a"] = (BannerAnim);
4250
4251/***/ }),
4252/* 67 */
4253/***/ (function(module, exports, __webpack_require__) {
4254
4255module.exports = { "default": __webpack_require__(68), __esModule: true };
4256
4257/***/ }),
4258/* 68 */
4259/***/ (function(module, exports, __webpack_require__) {
4260
4261__webpack_require__(69);
4262module.exports = __webpack_require__(3).Object.assign;
4263
4264
4265/***/ }),
4266/* 69 */
4267/***/ (function(module, exports, __webpack_require__) {
4268
4269// 19.1.3.1 Object.assign(target, source)
4270var $export = __webpack_require__(12);
4271
4272$export($export.S + $export.F, 'Object', { assign: __webpack_require__(71) });
4273
4274
4275/***/ }),
4276/* 70 */
4277/***/ (function(module, exports) {
4278
4279module.exports = function (it) {
4280 if (typeof it != 'function') throw TypeError(it + ' is not a function!');
4281 return it;
4282};
4283
4284
4285/***/ }),
4286/* 71 */
4287/***/ (function(module, exports, __webpack_require__) {
4288
4289"use strict";
4290
4291// 19.1.2.1 Object.assign(target, source, ...)
4292var getKeys = __webpack_require__(22);
4293var gOPS = __webpack_require__(36);
4294var pIE = __webpack_require__(25);
4295var toObject = __webpack_require__(51);
4296var IObject = __webpack_require__(49);
4297var $assign = Object.assign;
4298
4299// should work with symbols and should have deterministic property order (V8 bug)
4300module.exports = !$assign || __webpack_require__(19)(function () {
4301 var A = {};
4302 var B = {};
4303 // eslint-disable-next-line no-undef
4304 var S = Symbol();
4305 var K = 'abcdefghijklmnopqrst';
4306 A[S] = 7;
4307 K.split('').forEach(function (k) { B[k] = k; });
4308 return $assign({}, A)[S] != 7 || Object.keys($assign({}, B)).join('') != K;
4309}) ? function assign(target, source) { // eslint-disable-line no-unused-vars
4310 var T = toObject(target);
4311 var aLen = arguments.length;
4312 var index = 1;
4313 var getSymbols = gOPS.f;
4314 var isEnum = pIE.f;
4315 while (aLen > index) {
4316 var S = IObject(arguments[index++]);
4317 var keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S);
4318 var length = keys.length;
4319 var j = 0;
4320 var key;
4321 while (length > j) if (isEnum.call(S, key = keys[j++])) T[key] = S[key];
4322 } return T;
4323} : $assign;
4324
4325
4326/***/ }),
4327/* 72 */
4328/***/ (function(module, exports, __webpack_require__) {
4329
4330// false -> Array#indexOf
4331// true -> Array#includes
4332var toIObject = __webpack_require__(15);
4333var toLength = __webpack_require__(73);
4334var toAbsoluteIndex = __webpack_require__(74);
4335module.exports = function (IS_INCLUDES) {
4336 return function ($this, el, fromIndex) {
4337 var O = toIObject($this);
4338 var length = toLength(O.length);
4339 var index = toAbsoluteIndex(fromIndex, length);
4340 var value;
4341 // Array#includes uses SameValueZero equality algorithm
4342 // eslint-disable-next-line no-self-compare
4343 if (IS_INCLUDES && el != el) while (length > index) {
4344 value = O[index++];
4345 // eslint-disable-next-line no-self-compare
4346 if (value != value) return true;
4347 // Array#indexOf ignores holes, Array#includes - not
4348 } else for (;length > index; index++) if (IS_INCLUDES || index in O) {
4349 if (O[index] === el) return IS_INCLUDES || index || 0;
4350 } return !IS_INCLUDES && -1;
4351 };
4352};
4353
4354
4355/***/ }),
4356/* 73 */
4357/***/ (function(module, exports, __webpack_require__) {
4358
4359// 7.1.15 ToLength
4360var toInteger = __webpack_require__(32);
4361var min = Math.min;
4362module.exports = function (it) {
4363 return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991
4364};
4365
4366
4367/***/ }),
4368/* 74 */
4369/***/ (function(module, exports, __webpack_require__) {
4370
4371var toInteger = __webpack_require__(32);
4372var max = Math.max;
4373var min = Math.min;
4374module.exports = function (index, length) {
4375 index = toInteger(index);
4376 return index < 0 ? max(index + length, 0) : min(index, length);
4377};
4378
4379
4380/***/ }),
4381/* 75 */
4382/***/ (function(module, exports, __webpack_require__) {
4383
4384module.exports = { "default": __webpack_require__(76), __esModule: true };
4385
4386/***/ }),
4387/* 76 */
4388/***/ (function(module, exports, __webpack_require__) {
4389
4390__webpack_require__(77);
4391var $Object = __webpack_require__(3).Object;
4392module.exports = function defineProperty(it, key, desc) {
4393 return $Object.defineProperty(it, key, desc);
4394};
4395
4396
4397/***/ }),
4398/* 77 */
4399/***/ (function(module, exports, __webpack_require__) {
4400
4401var $export = __webpack_require__(12);
4402// 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes)
4403$export($export.S + $export.F * !__webpack_require__(6), 'Object', { defineProperty: __webpack_require__(5).f });
4404
4405
4406/***/ }),
4407/* 78 */
4408/***/ (function(module, exports, __webpack_require__) {
4409
4410module.exports = { "default": __webpack_require__(79), __esModule: true };
4411
4412/***/ }),
4413/* 79 */
4414/***/ (function(module, exports, __webpack_require__) {
4415
4416__webpack_require__(80);
4417__webpack_require__(86);
4418module.exports = __webpack_require__(40).f('iterator');
4419
4420
4421/***/ }),
4422/* 80 */
4423/***/ (function(module, exports, __webpack_require__) {
4424
4425"use strict";
4426
4427var $at = __webpack_require__(81)(true);
4428
4429// 21.1.3.27 String.prototype[@@iterator]()
4430__webpack_require__(53)(String, 'String', function (iterated) {
4431 this._t = String(iterated); // target
4432 this._i = 0; // next index
4433// 21.1.5.2.1 %StringIteratorPrototype%.next()
4434}, function () {
4435 var O = this._t;
4436 var index = this._i;
4437 var point;
4438 if (index >= O.length) return { value: undefined, done: true };
4439 point = $at(O, index);
4440 this._i += point.length;
4441 return { value: point, done: false };
4442});
4443
4444
4445/***/ }),
4446/* 81 */
4447/***/ (function(module, exports, __webpack_require__) {
4448
4449var toInteger = __webpack_require__(32);
4450var defined = __webpack_require__(31);
4451// true -> String#at
4452// false -> String#codePointAt
4453module.exports = function (TO_STRING) {
4454 return function (that, pos) {
4455 var s = String(defined(that));
4456 var i = toInteger(pos);
4457 var l = s.length;
4458 var a, b;
4459 if (i < 0 || i >= l) return TO_STRING ? '' : undefined;
4460 a = s.charCodeAt(i);
4461 return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff
4462 ? TO_STRING ? s.charAt(i) : a
4463 : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000;
4464 };
4465};
4466
4467
4468/***/ }),
4469/* 82 */
4470/***/ (function(module, exports, __webpack_require__) {
4471
4472"use strict";
4473
4474var create = __webpack_require__(38);
4475var descriptor = __webpack_require__(21);
4476var setToStringTag = __webpack_require__(39);
4477var IteratorPrototype = {};
4478
4479// 25.1.2.1.1 %IteratorPrototype%[@@iterator]()
4480__webpack_require__(13)(IteratorPrototype, __webpack_require__(16)('iterator'), function () { return this; });
4481
4482module.exports = function (Constructor, NAME, next) {
4483 Constructor.prototype = create(IteratorPrototype, { next: descriptor(1, next) });
4484 setToStringTag(Constructor, NAME + ' Iterator');
4485};
4486
4487
4488/***/ }),
4489/* 83 */
4490/***/ (function(module, exports, __webpack_require__) {
4491
4492var dP = __webpack_require__(5);
4493var anObject = __webpack_require__(18);
4494var getKeys = __webpack_require__(22);
4495
4496module.exports = __webpack_require__(6) ? Object.defineProperties : function defineProperties(O, Properties) {
4497 anObject(O);
4498 var keys = getKeys(Properties);
4499 var length = keys.length;
4500 var i = 0;
4501 var P;
4502 while (length > i) dP.f(O, P = keys[i++], Properties[P]);
4503 return O;
4504};
4505
4506
4507/***/ }),
4508/* 84 */
4509/***/ (function(module, exports, __webpack_require__) {
4510
4511var document = __webpack_require__(2).document;
4512module.exports = document && document.documentElement;
4513
4514
4515/***/ }),
4516/* 85 */
4517/***/ (function(module, exports, __webpack_require__) {
4518
4519// 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O)
4520var has = __webpack_require__(7);
4521var toObject = __webpack_require__(51);
4522var IE_PROTO = __webpack_require__(33)('IE_PROTO');
4523var ObjectProto = Object.prototype;
4524
4525module.exports = Object.getPrototypeOf || function (O) {
4526 O = toObject(O);
4527 if (has(O, IE_PROTO)) return O[IE_PROTO];
4528 if (typeof O.constructor == 'function' && O instanceof O.constructor) {
4529 return O.constructor.prototype;
4530 } return O instanceof Object ? ObjectProto : null;
4531};
4532
4533
4534/***/ }),
4535/* 86 */
4536/***/ (function(module, exports, __webpack_require__) {
4537
4538__webpack_require__(87);
4539var global = __webpack_require__(2);
4540var hide = __webpack_require__(13);
4541var Iterators = __webpack_require__(37);
4542var TO_STRING_TAG = __webpack_require__(16)('toStringTag');
4543
4544var DOMIterables = ('CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,' +
4545 'DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,' +
4546 'MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,' +
4547 'SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,' +
4548 'TextTrackList,TouchList').split(',');
4549
4550for (var i = 0; i < DOMIterables.length; i++) {
4551 var NAME = DOMIterables[i];
4552 var Collection = global[NAME];
4553 var proto = Collection && Collection.prototype;
4554 if (proto && !proto[TO_STRING_TAG]) hide(proto, TO_STRING_TAG, NAME);
4555 Iterators[NAME] = Iterators.Array;
4556}
4557
4558
4559/***/ }),
4560/* 87 */
4561/***/ (function(module, exports, __webpack_require__) {
4562
4563"use strict";
4564
4565var addToUnscopables = __webpack_require__(88);
4566var step = __webpack_require__(89);
4567var Iterators = __webpack_require__(37);
4568var toIObject = __webpack_require__(15);
4569
4570// 22.1.3.4 Array.prototype.entries()
4571// 22.1.3.13 Array.prototype.keys()
4572// 22.1.3.29 Array.prototype.values()
4573// 22.1.3.30 Array.prototype[@@iterator]()
4574module.exports = __webpack_require__(53)(Array, 'Array', function (iterated, kind) {
4575 this._t = toIObject(iterated); // target
4576 this._i = 0; // next index
4577 this._k = kind; // kind
4578// 22.1.5.2.1 %ArrayIteratorPrototype%.next()
4579}, function () {
4580 var O = this._t;
4581 var kind = this._k;
4582 var index = this._i++;
4583 if (!O || index >= O.length) {
4584 this._t = undefined;
4585 return step(1);
4586 }
4587 if (kind == 'keys') return step(0, index);
4588 if (kind == 'values') return step(0, O[index]);
4589 return step(0, [index, O[index]]);
4590}, 'values');
4591
4592// argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7)
4593Iterators.Arguments = Iterators.Array;
4594
4595addToUnscopables('keys');
4596addToUnscopables('values');
4597addToUnscopables('entries');
4598
4599
4600/***/ }),
4601/* 88 */
4602/***/ (function(module, exports) {
4603
4604module.exports = function () { /* empty */ };
4605
4606
4607/***/ }),
4608/* 89 */
4609/***/ (function(module, exports) {
4610
4611module.exports = function (done, value) {
4612 return { value: value, done: !!done };
4613};
4614
4615
4616/***/ }),
4617/* 90 */
4618/***/ (function(module, exports, __webpack_require__) {
4619
4620module.exports = { "default": __webpack_require__(91), __esModule: true };
4621
4622/***/ }),
4623/* 91 */
4624/***/ (function(module, exports, __webpack_require__) {
4625
4626__webpack_require__(92);
4627__webpack_require__(97);
4628__webpack_require__(98);
4629__webpack_require__(99);
4630module.exports = __webpack_require__(3).Symbol;
4631
4632
4633/***/ }),
4634/* 92 */
4635/***/ (function(module, exports, __webpack_require__) {
4636
4637"use strict";
4638
4639// ECMAScript 6 symbols shim
4640var global = __webpack_require__(2);
4641var has = __webpack_require__(7);
4642var DESCRIPTORS = __webpack_require__(6);
4643var $export = __webpack_require__(12);
4644var redefine = __webpack_require__(54);
4645var META = __webpack_require__(93).KEY;
4646var $fails = __webpack_require__(19);
4647var shared = __webpack_require__(34);
4648var setToStringTag = __webpack_require__(39);
4649var uid = __webpack_require__(24);
4650var wks = __webpack_require__(16);
4651var wksExt = __webpack_require__(40);
4652var wksDefine = __webpack_require__(41);
4653var enumKeys = __webpack_require__(94);
4654var isArray = __webpack_require__(95);
4655var anObject = __webpack_require__(18);
4656var isObject = __webpack_require__(14);
4657var toIObject = __webpack_require__(15);
4658var toPrimitive = __webpack_require__(30);
4659var createDesc = __webpack_require__(21);
4660var _create = __webpack_require__(38);
4661var gOPNExt = __webpack_require__(96);
4662var $GOPD = __webpack_require__(56);
4663var $DP = __webpack_require__(5);
4664var $keys = __webpack_require__(22);
4665var gOPD = $GOPD.f;
4666var dP = $DP.f;
4667var gOPN = gOPNExt.f;
4668var $Symbol = global.Symbol;
4669var $JSON = global.JSON;
4670var _stringify = $JSON && $JSON.stringify;
4671var PROTOTYPE = 'prototype';
4672var HIDDEN = wks('_hidden');
4673var TO_PRIMITIVE = wks('toPrimitive');
4674var isEnum = {}.propertyIsEnumerable;
4675var SymbolRegistry = shared('symbol-registry');
4676var AllSymbols = shared('symbols');
4677var OPSymbols = shared('op-symbols');
4678var ObjectProto = Object[PROTOTYPE];
4679var USE_NATIVE = typeof $Symbol == 'function';
4680var QObject = global.QObject;
4681// Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173
4682var setter = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild;
4683
4684// fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687
4685var setSymbolDesc = DESCRIPTORS && $fails(function () {
4686 return _create(dP({}, 'a', {
4687 get: function () { return dP(this, 'a', { value: 7 }).a; }
4688 })).a != 7;
4689}) ? function (it, key, D) {
4690 var protoDesc = gOPD(ObjectProto, key);
4691 if (protoDesc) delete ObjectProto[key];
4692 dP(it, key, D);
4693 if (protoDesc && it !== ObjectProto) dP(ObjectProto, key, protoDesc);
4694} : dP;
4695
4696var wrap = function (tag) {
4697 var sym = AllSymbols[tag] = _create($Symbol[PROTOTYPE]);
4698 sym._k = tag;
4699 return sym;
4700};
4701
4702var isSymbol = USE_NATIVE && typeof $Symbol.iterator == 'symbol' ? function (it) {
4703 return typeof it == 'symbol';
4704} : function (it) {
4705 return it instanceof $Symbol;
4706};
4707
4708var $defineProperty = function defineProperty(it, key, D) {
4709 if (it === ObjectProto) $defineProperty(OPSymbols, key, D);
4710 anObject(it);
4711 key = toPrimitive(key, true);
4712 anObject(D);
4713 if (has(AllSymbols, key)) {
4714 if (!D.enumerable) {
4715 if (!has(it, HIDDEN)) dP(it, HIDDEN, createDesc(1, {}));
4716 it[HIDDEN][key] = true;
4717 } else {
4718 if (has(it, HIDDEN) && it[HIDDEN][key]) it[HIDDEN][key] = false;
4719 D = _create(D, { enumerable: createDesc(0, false) });
4720 } return setSymbolDesc(it, key, D);
4721 } return dP(it, key, D);
4722};
4723var $defineProperties = function defineProperties(it, P) {
4724 anObject(it);
4725 var keys = enumKeys(P = toIObject(P));
4726 var i = 0;
4727 var l = keys.length;
4728 var key;
4729 while (l > i) $defineProperty(it, key = keys[i++], P[key]);
4730 return it;
4731};
4732var $create = function create(it, P) {
4733 return P === undefined ? _create(it) : $defineProperties(_create(it), P);
4734};
4735var $propertyIsEnumerable = function propertyIsEnumerable(key) {
4736 var E = isEnum.call(this, key = toPrimitive(key, true));
4737 if (this === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return false;
4738 return E || !has(this, key) || !has(AllSymbols, key) || has(this, HIDDEN) && this[HIDDEN][key] ? E : true;
4739};
4740var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(it, key) {
4741 it = toIObject(it);
4742 key = toPrimitive(key, true);
4743 if (it === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return;
4744 var D = gOPD(it, key);
4745 if (D && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key])) D.enumerable = true;
4746 return D;
4747};
4748var $getOwnPropertyNames = function getOwnPropertyNames(it) {
4749 var names = gOPN(toIObject(it));
4750 var result = [];
4751 var i = 0;
4752 var key;
4753 while (names.length > i) {
4754 if (!has(AllSymbols, key = names[i++]) && key != HIDDEN && key != META) result.push(key);
4755 } return result;
4756};
4757var $getOwnPropertySymbols = function getOwnPropertySymbols(it) {
4758 var IS_OP = it === ObjectProto;
4759 var names = gOPN(IS_OP ? OPSymbols : toIObject(it));
4760 var result = [];
4761 var i = 0;
4762 var key;
4763 while (names.length > i) {
4764 if (has(AllSymbols, key = names[i++]) && (IS_OP ? has(ObjectProto, key) : true)) result.push(AllSymbols[key]);
4765 } return result;
4766};
4767
4768// 19.4.1.1 Symbol([description])
4769if (!USE_NATIVE) {
4770 $Symbol = function Symbol() {
4771 if (this instanceof $Symbol) throw TypeError('Symbol is not a constructor!');
4772 var tag = uid(arguments.length > 0 ? arguments[0] : undefined);
4773 var $set = function (value) {
4774 if (this === ObjectProto) $set.call(OPSymbols, value);
4775 if (has(this, HIDDEN) && has(this[HIDDEN], tag)) this[HIDDEN][tag] = false;
4776 setSymbolDesc(this, tag, createDesc(1, value));
4777 };
4778 if (DESCRIPTORS && setter) setSymbolDesc(ObjectProto, tag, { configurable: true, set: $set });
4779 return wrap(tag);
4780 };
4781 redefine($Symbol[PROTOTYPE], 'toString', function toString() {
4782 return this._k;
4783 });
4784
4785 $GOPD.f = $getOwnPropertyDescriptor;
4786 $DP.f = $defineProperty;
4787 __webpack_require__(55).f = gOPNExt.f = $getOwnPropertyNames;
4788 __webpack_require__(25).f = $propertyIsEnumerable;
4789 __webpack_require__(36).f = $getOwnPropertySymbols;
4790
4791 if (DESCRIPTORS && !__webpack_require__(23)) {
4792 redefine(ObjectProto, 'propertyIsEnumerable', $propertyIsEnumerable, true);
4793 }
4794
4795 wksExt.f = function (name) {
4796 return wrap(wks(name));
4797 };
4798}
4799
4800$export($export.G + $export.W + $export.F * !USE_NATIVE, { Symbol: $Symbol });
4801
4802for (var es6Symbols = (
4803 // 19.4.2.2, 19.4.2.3, 19.4.2.4, 19.4.2.6, 19.4.2.8, 19.4.2.9, 19.4.2.10, 19.4.2.11, 19.4.2.12, 19.4.2.13, 19.4.2.14
4804 'hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables'
4805).split(','), j = 0; es6Symbols.length > j;)wks(es6Symbols[j++]);
4806
4807for (var wellKnownSymbols = $keys(wks.store), k = 0; wellKnownSymbols.length > k;) wksDefine(wellKnownSymbols[k++]);
4808
4809$export($export.S + $export.F * !USE_NATIVE, 'Symbol', {
4810 // 19.4.2.1 Symbol.for(key)
4811 'for': function (key) {
4812 return has(SymbolRegistry, key += '')
4813 ? SymbolRegistry[key]
4814 : SymbolRegistry[key] = $Symbol(key);
4815 },
4816 // 19.4.2.5 Symbol.keyFor(sym)
4817 keyFor: function keyFor(sym) {
4818 if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol!');
4819 for (var key in SymbolRegistry) if (SymbolRegistry[key] === sym) return key;
4820 },
4821 useSetter: function () { setter = true; },
4822 useSimple: function () { setter = false; }
4823});
4824
4825$export($export.S + $export.F * !USE_NATIVE, 'Object', {
4826 // 19.1.2.2 Object.create(O [, Properties])
4827 create: $create,
4828 // 19.1.2.4 Object.defineProperty(O, P, Attributes)
4829 defineProperty: $defineProperty,
4830 // 19.1.2.3 Object.defineProperties(O, Properties)
4831 defineProperties: $defineProperties,
4832 // 19.1.2.6 Object.getOwnPropertyDescriptor(O, P)
4833 getOwnPropertyDescriptor: $getOwnPropertyDescriptor,
4834 // 19.1.2.7 Object.getOwnPropertyNames(O)
4835 getOwnPropertyNames: $getOwnPropertyNames,
4836 // 19.1.2.8 Object.getOwnPropertySymbols(O)
4837 getOwnPropertySymbols: $getOwnPropertySymbols
4838});
4839
4840// 24.3.2 JSON.stringify(value [, replacer [, space]])
4841$JSON && $export($export.S + $export.F * (!USE_NATIVE || $fails(function () {
4842 var S = $Symbol();
4843 // MS Edge converts symbol values to JSON as {}
4844 // WebKit converts symbol values to JSON as null
4845 // V8 throws on boxed symbols
4846 return _stringify([S]) != '[null]' || _stringify({ a: S }) != '{}' || _stringify(Object(S)) != '{}';
4847})), 'JSON', {
4848 stringify: function stringify(it) {
4849 var args = [it];
4850 var i = 1;
4851 var replacer, $replacer;
4852 while (arguments.length > i) args.push(arguments[i++]);
4853 $replacer = replacer = args[1];
4854 if (!isObject(replacer) && it === undefined || isSymbol(it)) return; // IE8 returns string on undefined
4855 if (!isArray(replacer)) replacer = function (key, value) {
4856 if (typeof $replacer == 'function') value = $replacer.call(this, key, value);
4857 if (!isSymbol(value)) return value;
4858 };
4859 args[1] = replacer;
4860 return _stringify.apply($JSON, args);
4861 }
4862});
4863
4864// 19.4.3.4 Symbol.prototype[@@toPrimitive](hint)
4865$Symbol[PROTOTYPE][TO_PRIMITIVE] || __webpack_require__(13)($Symbol[PROTOTYPE], TO_PRIMITIVE, $Symbol[PROTOTYPE].valueOf);
4866// 19.4.3.5 Symbol.prototype[@@toStringTag]
4867setToStringTag($Symbol, 'Symbol');
4868// 20.2.1.9 Math[@@toStringTag]
4869setToStringTag(Math, 'Math', true);
4870// 24.3.3 JSON[@@toStringTag]
4871setToStringTag(global.JSON, 'JSON', true);
4872
4873
4874/***/ }),
4875/* 93 */
4876/***/ (function(module, exports, __webpack_require__) {
4877
4878var META = __webpack_require__(24)('meta');
4879var isObject = __webpack_require__(14);
4880var has = __webpack_require__(7);
4881var setDesc = __webpack_require__(5).f;
4882var id = 0;
4883var isExtensible = Object.isExtensible || function () {
4884 return true;
4885};
4886var FREEZE = !__webpack_require__(19)(function () {
4887 return isExtensible(Object.preventExtensions({}));
4888});
4889var setMeta = function (it) {
4890 setDesc(it, META, { value: {
4891 i: 'O' + ++id, // object ID
4892 w: {} // weak collections IDs
4893 } });
4894};
4895var fastKey = function (it, create) {
4896 // return primitive with prefix
4897 if (!isObject(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;
4898 if (!has(it, META)) {
4899 // can't set metadata to uncaught frozen object
4900 if (!isExtensible(it)) return 'F';
4901 // not necessary to add metadata
4902 if (!create) return 'E';
4903 // add missing metadata
4904 setMeta(it);
4905 // return object ID
4906 } return it[META].i;
4907};
4908var getWeak = function (it, create) {
4909 if (!has(it, META)) {
4910 // can't set metadata to uncaught frozen object
4911 if (!isExtensible(it)) return true;
4912 // not necessary to add metadata
4913 if (!create) return false;
4914 // add missing metadata
4915 setMeta(it);
4916 // return hash weak collections IDs
4917 } return it[META].w;
4918};
4919// add metadata on freeze-family methods calling
4920var onFreeze = function (it) {
4921 if (FREEZE && meta.NEED && isExtensible(it) && !has(it, META)) setMeta(it);
4922 return it;
4923};
4924var meta = module.exports = {
4925 KEY: META,
4926 NEED: false,
4927 fastKey: fastKey,
4928 getWeak: getWeak,
4929 onFreeze: onFreeze
4930};
4931
4932
4933/***/ }),
4934/* 94 */
4935/***/ (function(module, exports, __webpack_require__) {
4936
4937// all enumerable object keys, includes symbols
4938var getKeys = __webpack_require__(22);
4939var gOPS = __webpack_require__(36);
4940var pIE = __webpack_require__(25);
4941module.exports = function (it) {
4942 var result = getKeys(it);
4943 var getSymbols = gOPS.f;
4944 if (getSymbols) {
4945 var symbols = getSymbols(it);
4946 var isEnum = pIE.f;
4947 var i = 0;
4948 var key;
4949 while (symbols.length > i) if (isEnum.call(it, key = symbols[i++])) result.push(key);
4950 } return result;
4951};
4952
4953
4954/***/ }),
4955/* 95 */
4956/***/ (function(module, exports, __webpack_require__) {
4957
4958// 7.2.2 IsArray(argument)
4959var cof = __webpack_require__(50);
4960module.exports = Array.isArray || function isArray(arg) {
4961 return cof(arg) == 'Array';
4962};
4963
4964
4965/***/ }),
4966/* 96 */
4967/***/ (function(module, exports, __webpack_require__) {
4968
4969// fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window
4970var toIObject = __webpack_require__(15);
4971var gOPN = __webpack_require__(55).f;
4972var toString = {}.toString;
4973
4974var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames
4975 ? Object.getOwnPropertyNames(window) : [];
4976
4977var getWindowNames = function (it) {
4978 try {
4979 return gOPN(it);
4980 } catch (e) {
4981 return windowNames.slice();
4982 }
4983};
4984
4985module.exports.f = function getOwnPropertyNames(it) {
4986 return windowNames && toString.call(it) == '[object Window]' ? getWindowNames(it) : gOPN(toIObject(it));
4987};
4988
4989
4990/***/ }),
4991/* 97 */
4992/***/ (function(module, exports) {
4993
4994
4995
4996/***/ }),
4997/* 98 */
4998/***/ (function(module, exports, __webpack_require__) {
4999
5000__webpack_require__(41)('asyncIterator');
5001
5002
5003/***/ }),
5004/* 99 */
5005/***/ (function(module, exports, __webpack_require__) {
5006
5007__webpack_require__(41)('observable');
5008
5009
5010/***/ }),
5011/* 100 */
5012/***/ (function(module, exports, __webpack_require__) {
5013
5014module.exports = { "default": __webpack_require__(101), __esModule: true };
5015
5016/***/ }),
5017/* 101 */
5018/***/ (function(module, exports, __webpack_require__) {
5019
5020__webpack_require__(102);
5021module.exports = __webpack_require__(3).Object.setPrototypeOf;
5022
5023
5024/***/ }),
5025/* 102 */
5026/***/ (function(module, exports, __webpack_require__) {
5027
5028// 19.1.3.19 Object.setPrototypeOf(O, proto)
5029var $export = __webpack_require__(12);
5030$export($export.S, 'Object', { setPrototypeOf: __webpack_require__(103).set });
5031
5032
5033/***/ }),
5034/* 103 */
5035/***/ (function(module, exports, __webpack_require__) {
5036
5037// Works with __proto__ only. Old v8 can't work with null proto objects.
5038/* eslint-disable no-proto */
5039var isObject = __webpack_require__(14);
5040var anObject = __webpack_require__(18);
5041var check = function (O, proto) {
5042 anObject(O);
5043 if (!isObject(proto) && proto !== null) throw TypeError(proto + ": can't set as prototype!");
5044};
5045module.exports = {
5046 set: Object.setPrototypeOf || ('__proto__' in {} ? // eslint-disable-line
5047 function (test, buggy, set) {
5048 try {
5049 set = __webpack_require__(45)(Function.call, __webpack_require__(56).f(Object.prototype, '__proto__').set, 2);
5050 set(test, []);
5051 buggy = !(test instanceof Array);
5052 } catch (e) { buggy = true; }
5053 return function setPrototypeOf(O, proto) {
5054 check(O, proto);
5055 if (buggy) O.__proto__ = proto;
5056 else set(O, proto);
5057 return O;
5058 };
5059 }({}, false) : undefined),
5060 check: check
5061};
5062
5063
5064/***/ }),
5065/* 104 */
5066/***/ (function(module, exports, __webpack_require__) {
5067
5068module.exports = { "default": __webpack_require__(105), __esModule: true };
5069
5070/***/ }),
5071/* 105 */
5072/***/ (function(module, exports, __webpack_require__) {
5073
5074__webpack_require__(106);
5075var $Object = __webpack_require__(3).Object;
5076module.exports = function create(P, D) {
5077 return $Object.create(P, D);
5078};
5079
5080
5081/***/ }),
5082/* 106 */
5083/***/ (function(module, exports, __webpack_require__) {
5084
5085var $export = __webpack_require__(12);
5086// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
5087$export($export.S, 'Object', { create: __webpack_require__(38) });
5088
5089
5090/***/ }),
5091/* 107 */
5092/***/ (function(module, exports, __webpack_require__) {
5093
5094"use strict";
5095/* WEBPACK VAR INJECTION */(function(process) {/**
5096 * Copyright (c) 2013-present, Facebook, Inc.
5097 *
5098 * This source code is licensed under the MIT license found in the
5099 * LICENSE file in the root directory of this source tree.
5100 */
5101
5102
5103
5104var assign = __webpack_require__(108);
5105
5106var ReactPropTypesSecret = __webpack_require__(42);
5107var checkPropTypes = __webpack_require__(109);
5108
5109var printWarning = function() {};
5110
5111if (process.env.NODE_ENV !== 'production') {
5112 printWarning = function(text) {
5113 var message = 'Warning: ' + text;
5114 if (typeof console !== 'undefined') {
5115 console.error(message);
5116 }
5117 try {
5118 // --- Welcome to debugging React ---
5119 // This error was thrown as a convenience so that you can use this stack
5120 // to find the callsite that caused this warning to fire.
5121 throw new Error(message);
5122 } catch (x) {}
5123 };
5124}
5125
5126function emptyFunctionThatReturnsNull() {
5127 return null;
5128}
5129
5130module.exports = function(isValidElement, throwOnDirectAccess) {
5131 /* global Symbol */
5132 var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
5133 var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
5134
5135 /**
5136 * Returns the iterator method function contained on the iterable object.
5137 *
5138 * Be sure to invoke the function with the iterable as context:
5139 *
5140 * var iteratorFn = getIteratorFn(myIterable);
5141 * if (iteratorFn) {
5142 * var iterator = iteratorFn.call(myIterable);
5143 * ...
5144 * }
5145 *
5146 * @param {?object} maybeIterable
5147 * @return {?function}
5148 */
5149 function getIteratorFn(maybeIterable) {
5150 var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
5151 if (typeof iteratorFn === 'function') {
5152 return iteratorFn;
5153 }
5154 }
5155
5156 /**
5157 * Collection of methods that allow declaration and validation of props that are
5158 * supplied to React components. Example usage:
5159 *
5160 * var Props = require('ReactPropTypes');
5161 * var MyArticle = React.createClass({
5162 * propTypes: {
5163 * // An optional string prop named "description".
5164 * description: Props.string,
5165 *
5166 * // A required enum prop named "category".
5167 * category: Props.oneOf(['News','Photos']).isRequired,
5168 *
5169 * // A prop named "dialog" that requires an instance of Dialog.
5170 * dialog: Props.instanceOf(Dialog).isRequired
5171 * },
5172 * render: function() { ... }
5173 * });
5174 *
5175 * A more formal specification of how these methods are used:
5176 *
5177 * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
5178 * decl := ReactPropTypes.{type}(.isRequired)?
5179 *
5180 * Each and every declaration produces a function with the same signature. This
5181 * allows the creation of custom validation functions. For example:
5182 *
5183 * var MyLink = React.createClass({
5184 * propTypes: {
5185 * // An optional string or URI prop named "href".
5186 * href: function(props, propName, componentName) {
5187 * var propValue = props[propName];
5188 * if (propValue != null && typeof propValue !== 'string' &&
5189 * !(propValue instanceof URI)) {
5190 * return new Error(
5191 * 'Expected a string or an URI for ' + propName + ' in ' +
5192 * componentName
5193 * );
5194 * }
5195 * }
5196 * },
5197 * render: function() {...}
5198 * });
5199 *
5200 * @internal
5201 */
5202
5203 var ANONYMOUS = '<<anonymous>>';
5204
5205 // Important!
5206 // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
5207 var ReactPropTypes = {
5208 array: createPrimitiveTypeChecker('array'),
5209 bool: createPrimitiveTypeChecker('boolean'),
5210 func: createPrimitiveTypeChecker('function'),
5211 number: createPrimitiveTypeChecker('number'),
5212 object: createPrimitiveTypeChecker('object'),
5213 string: createPrimitiveTypeChecker('string'),
5214 symbol: createPrimitiveTypeChecker('symbol'),
5215
5216 any: createAnyTypeChecker(),
5217 arrayOf: createArrayOfTypeChecker,
5218 element: createElementTypeChecker(),
5219 instanceOf: createInstanceTypeChecker,
5220 node: createNodeChecker(),
5221 objectOf: createObjectOfTypeChecker,
5222 oneOf: createEnumTypeChecker,
5223 oneOfType: createUnionTypeChecker,
5224 shape: createShapeTypeChecker,
5225 exact: createStrictShapeTypeChecker,
5226 };
5227
5228 /**
5229 * inlined Object.is polyfill to avoid requiring consumers ship their own
5230 * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
5231 */
5232 /*eslint-disable no-self-compare*/
5233 function is(x, y) {
5234 // SameValue algorithm
5235 if (x === y) {
5236 // Steps 1-5, 7-10
5237 // Steps 6.b-6.e: +0 != -0
5238 return x !== 0 || 1 / x === 1 / y;
5239 } else {
5240 // Step 6.a: NaN == NaN
5241 return x !== x && y !== y;
5242 }
5243 }
5244 /*eslint-enable no-self-compare*/
5245
5246 /**
5247 * We use an Error-like object for backward compatibility as people may call
5248 * PropTypes directly and inspect their output. However, we don't use real
5249 * Errors anymore. We don't inspect their stack anyway, and creating them
5250 * is prohibitively expensive if they are created too often, such as what
5251 * happens in oneOfType() for any type before the one that matched.
5252 */
5253 function PropTypeError(message) {
5254 this.message = message;
5255 this.stack = '';
5256 }
5257 // Make `instanceof Error` still work for returned errors.
5258 PropTypeError.prototype = Error.prototype;
5259
5260 function createChainableTypeChecker(validate) {
5261 if (process.env.NODE_ENV !== 'production') {
5262 var manualPropTypeCallCache = {};
5263 var manualPropTypeWarningCount = 0;
5264 }
5265 function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
5266 componentName = componentName || ANONYMOUS;
5267 propFullName = propFullName || propName;
5268
5269 if (secret !== ReactPropTypesSecret) {
5270 if (throwOnDirectAccess) {
5271 // New behavior only for users of `prop-types` package
5272 var err = new Error(
5273 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
5274 'Use `PropTypes.checkPropTypes()` to call them. ' +
5275 'Read more at http://fb.me/use-check-prop-types'
5276 );
5277 err.name = 'Invariant Violation';
5278 throw err;
5279 } else if (process.env.NODE_ENV !== 'production' && typeof console !== 'undefined') {
5280 // Old behavior for people using React.PropTypes
5281 var cacheKey = componentName + ':' + propName;
5282 if (
5283 !manualPropTypeCallCache[cacheKey] &&
5284 // Avoid spamming the console because they are often not actionable except for lib authors
5285 manualPropTypeWarningCount < 3
5286 ) {
5287 printWarning(
5288 'You are manually calling a React.PropTypes validation ' +
5289 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
5290 'and will throw in the standalone `prop-types` package. ' +
5291 'You may be seeing this warning due to a third-party PropTypes ' +
5292 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'
5293 );
5294 manualPropTypeCallCache[cacheKey] = true;
5295 manualPropTypeWarningCount++;
5296 }
5297 }
5298 }
5299 if (props[propName] == null) {
5300 if (isRequired) {
5301 if (props[propName] === null) {
5302 return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
5303 }
5304 return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
5305 }
5306 return null;
5307 } else {
5308 return validate(props, propName, componentName, location, propFullName);
5309 }
5310 }
5311
5312 var chainedCheckType = checkType.bind(null, false);
5313 chainedCheckType.isRequired = checkType.bind(null, true);
5314
5315 return chainedCheckType;
5316 }
5317
5318 function createPrimitiveTypeChecker(expectedType) {
5319 function validate(props, propName, componentName, location, propFullName, secret) {
5320 var propValue = props[propName];
5321 var propType = getPropType(propValue);
5322 if (propType !== expectedType) {
5323 // `propValue` being instance of, say, date/regexp, pass the 'object'
5324 // check, but we can offer a more precise error message here rather than
5325 // 'of type `object`'.
5326 var preciseType = getPreciseType(propValue);
5327
5328 return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'));
5329 }
5330 return null;
5331 }
5332 return createChainableTypeChecker(validate);
5333 }
5334
5335 function createAnyTypeChecker() {
5336 return createChainableTypeChecker(emptyFunctionThatReturnsNull);
5337 }
5338
5339 function createArrayOfTypeChecker(typeChecker) {
5340 function validate(props, propName, componentName, location, propFullName) {
5341 if (typeof typeChecker !== 'function') {
5342 return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
5343 }
5344 var propValue = props[propName];
5345 if (!Array.isArray(propValue)) {
5346 var propType = getPropType(propValue);
5347 return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
5348 }
5349 for (var i = 0; i < propValue.length; i++) {
5350 var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);
5351 if (error instanceof Error) {
5352 return error;
5353 }
5354 }
5355 return null;
5356 }
5357 return createChainableTypeChecker(validate);
5358 }
5359
5360 function createElementTypeChecker() {
5361 function validate(props, propName, componentName, location, propFullName) {
5362 var propValue = props[propName];
5363 if (!isValidElement(propValue)) {
5364 var propType = getPropType(propValue);
5365 return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
5366 }
5367 return null;
5368 }
5369 return createChainableTypeChecker(validate);
5370 }
5371
5372 function createInstanceTypeChecker(expectedClass) {
5373 function validate(props, propName, componentName, location, propFullName) {
5374 if (!(props[propName] instanceof expectedClass)) {
5375 var expectedClassName = expectedClass.name || ANONYMOUS;
5376 var actualClassName = getClassName(props[propName]);
5377 return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
5378 }
5379 return null;
5380 }
5381 return createChainableTypeChecker(validate);
5382 }
5383
5384 function createEnumTypeChecker(expectedValues) {
5385 if (!Array.isArray(expectedValues)) {
5386 process.env.NODE_ENV !== 'production' ? printWarning('Invalid argument supplied to oneOf, expected an instance of array.') : void 0;
5387 return emptyFunctionThatReturnsNull;
5388 }
5389
5390 function validate(props, propName, componentName, location, propFullName) {
5391 var propValue = props[propName];
5392 for (var i = 0; i < expectedValues.length; i++) {
5393 if (is(propValue, expectedValues[i])) {
5394 return null;
5395 }
5396 }
5397
5398 var valuesString = JSON.stringify(expectedValues);
5399 return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + propValue + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
5400 }
5401 return createChainableTypeChecker(validate);
5402 }
5403
5404 function createObjectOfTypeChecker(typeChecker) {
5405 function validate(props, propName, componentName, location, propFullName) {
5406 if (typeof typeChecker !== 'function') {
5407 return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
5408 }
5409 var propValue = props[propName];
5410 var propType = getPropType(propValue);
5411 if (propType !== 'object') {
5412 return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
5413 }
5414 for (var key in propValue) {
5415 if (propValue.hasOwnProperty(key)) {
5416 var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
5417 if (error instanceof Error) {
5418 return error;
5419 }
5420 }
5421 }
5422 return null;
5423 }
5424 return createChainableTypeChecker(validate);
5425 }
5426
5427 function createUnionTypeChecker(arrayOfTypeCheckers) {
5428 if (!Array.isArray(arrayOfTypeCheckers)) {
5429 process.env.NODE_ENV !== 'production' ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;
5430 return emptyFunctionThatReturnsNull;
5431 }
5432
5433 for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
5434 var checker = arrayOfTypeCheckers[i];
5435 if (typeof checker !== 'function') {
5436 printWarning(
5437 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +
5438 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'
5439 );
5440 return emptyFunctionThatReturnsNull;
5441 }
5442 }
5443
5444 function validate(props, propName, componentName, location, propFullName) {
5445 for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
5446 var checker = arrayOfTypeCheckers[i];
5447 if (checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret) == null) {
5448 return null;
5449 }
5450 }
5451
5452 return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`.'));
5453 }
5454 return createChainableTypeChecker(validate);
5455 }
5456
5457 function createNodeChecker() {
5458 function validate(props, propName, componentName, location, propFullName) {
5459 if (!isNode(props[propName])) {
5460 return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
5461 }
5462 return null;
5463 }
5464 return createChainableTypeChecker(validate);
5465 }
5466
5467 function createShapeTypeChecker(shapeTypes) {
5468 function validate(props, propName, componentName, location, propFullName) {
5469 var propValue = props[propName];
5470 var propType = getPropType(propValue);
5471 if (propType !== 'object') {
5472 return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
5473 }
5474 for (var key in shapeTypes) {
5475 var checker = shapeTypes[key];
5476 if (!checker) {
5477 continue;
5478 }
5479 var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
5480 if (error) {
5481 return error;
5482 }
5483 }
5484 return null;
5485 }
5486 return createChainableTypeChecker(validate);
5487 }
5488
5489 function createStrictShapeTypeChecker(shapeTypes) {
5490 function validate(props, propName, componentName, location, propFullName) {
5491 var propValue = props[propName];
5492 var propType = getPropType(propValue);
5493 if (propType !== 'object') {
5494 return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
5495 }
5496 // We need to check all keys in case some are required but missing from
5497 // props.
5498 var allKeys = assign({}, props[propName], shapeTypes);
5499 for (var key in allKeys) {
5500 var checker = shapeTypes[key];
5501 if (!checker) {
5502 return new PropTypeError(
5503 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
5504 '\nBad object: ' + JSON.stringify(props[propName], null, ' ') +
5505 '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
5506 );
5507 }
5508 var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
5509 if (error) {
5510 return error;
5511 }
5512 }
5513 return null;
5514 }
5515
5516 return createChainableTypeChecker(validate);
5517 }
5518
5519 function isNode(propValue) {
5520 switch (typeof propValue) {
5521 case 'number':
5522 case 'string':
5523 case 'undefined':
5524 return true;
5525 case 'boolean':
5526 return !propValue;
5527 case 'object':
5528 if (Array.isArray(propValue)) {
5529 return propValue.every(isNode);
5530 }
5531 if (propValue === null || isValidElement(propValue)) {
5532 return true;
5533 }
5534
5535 var iteratorFn = getIteratorFn(propValue);
5536 if (iteratorFn) {
5537 var iterator = iteratorFn.call(propValue);
5538 var step;
5539 if (iteratorFn !== propValue.entries) {
5540 while (!(step = iterator.next()).done) {
5541 if (!isNode(step.value)) {
5542 return false;
5543 }
5544 }
5545 } else {
5546 // Iterator will provide entry [k,v] tuples rather than values.
5547 while (!(step = iterator.next()).done) {
5548 var entry = step.value;
5549 if (entry) {
5550 if (!isNode(entry[1])) {
5551 return false;
5552 }
5553 }
5554 }
5555 }
5556 } else {
5557 return false;
5558 }
5559
5560 return true;
5561 default:
5562 return false;
5563 }
5564 }
5565
5566 function isSymbol(propType, propValue) {
5567 // Native Symbol.
5568 if (propType === 'symbol') {
5569 return true;
5570 }
5571
5572 // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
5573 if (propValue['@@toStringTag'] === 'Symbol') {
5574 return true;
5575 }
5576
5577 // Fallback for non-spec compliant Symbols which are polyfilled.
5578 if (typeof Symbol === 'function' && propValue instanceof Symbol) {
5579 return true;
5580 }
5581
5582 return false;
5583 }
5584
5585 // Equivalent of `typeof` but with special handling for array and regexp.
5586 function getPropType(propValue) {
5587 var propType = typeof propValue;
5588 if (Array.isArray(propValue)) {
5589 return 'array';
5590 }
5591 if (propValue instanceof RegExp) {
5592 // Old webkits (at least until Android 4.0) return 'function' rather than
5593 // 'object' for typeof a RegExp. We'll normalize this here so that /bla/
5594 // passes PropTypes.object.
5595 return 'object';
5596 }
5597 if (isSymbol(propType, propValue)) {
5598 return 'symbol';
5599 }
5600 return propType;
5601 }
5602
5603 // This handles more types than `getPropType`. Only used for error messages.
5604 // See `createPrimitiveTypeChecker`.
5605 function getPreciseType(propValue) {
5606 if (typeof propValue === 'undefined' || propValue === null) {
5607 return '' + propValue;
5608 }
5609 var propType = getPropType(propValue);
5610 if (propType === 'object') {
5611 if (propValue instanceof Date) {
5612 return 'date';
5613 } else if (propValue instanceof RegExp) {
5614 return 'regexp';
5615 }
5616 }
5617 return propType;
5618 }
5619
5620 // Returns a string that is postfixed to a warning about an invalid type.
5621 // For example, "undefined" or "of type array"
5622 function getPostfixForTypeWarning(value) {
5623 var type = getPreciseType(value);
5624 switch (type) {
5625 case 'array':
5626 case 'object':
5627 return 'an ' + type;
5628 case 'boolean':
5629 case 'date':
5630 case 'regexp':
5631 return 'a ' + type;
5632 default:
5633 return type;
5634 }
5635 }
5636
5637 // Returns class name of the object, if any.
5638 function getClassName(propValue) {
5639 if (!propValue.constructor || !propValue.constructor.name) {
5640 return ANONYMOUS;
5641 }
5642 return propValue.constructor.name;
5643 }
5644
5645 ReactPropTypes.checkPropTypes = checkPropTypes;
5646 ReactPropTypes.PropTypes = ReactPropTypes;
5647
5648 return ReactPropTypes;
5649};
5650
5651/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(27)))
5652
5653/***/ }),
5654/* 108 */
5655/***/ (function(module, exports, __webpack_require__) {
5656
5657"use strict";
5658/*
5659object-assign
5660(c) Sindre Sorhus
5661@license MIT
5662*/
5663
5664
5665/* eslint-disable no-unused-vars */
5666var getOwnPropertySymbols = Object.getOwnPropertySymbols;
5667var hasOwnProperty = Object.prototype.hasOwnProperty;
5668var propIsEnumerable = Object.prototype.propertyIsEnumerable;
5669
5670function toObject(val) {
5671 if (val === null || val === undefined) {
5672 throw new TypeError('Object.assign cannot be called with null or undefined');
5673 }
5674
5675 return Object(val);
5676}
5677
5678function shouldUseNative() {
5679 try {
5680 if (!Object.assign) {
5681 return false;
5682 }
5683
5684 // Detect buggy property enumeration order in older V8 versions.
5685
5686 // https://bugs.chromium.org/p/v8/issues/detail?id=4118
5687 var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
5688 test1[5] = 'de';
5689 if (Object.getOwnPropertyNames(test1)[0] === '5') {
5690 return false;
5691 }
5692
5693 // https://bugs.chromium.org/p/v8/issues/detail?id=3056
5694 var test2 = {};
5695 for (var i = 0; i < 10; i++) {
5696 test2['_' + String.fromCharCode(i)] = i;
5697 }
5698 var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
5699 return test2[n];
5700 });
5701 if (order2.join('') !== '0123456789') {
5702 return false;
5703 }
5704
5705 // https://bugs.chromium.org/p/v8/issues/detail?id=3056
5706 var test3 = {};
5707 'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
5708 test3[letter] = letter;
5709 });
5710 if (Object.keys(Object.assign({}, test3)).join('') !==
5711 'abcdefghijklmnopqrst') {
5712 return false;
5713 }
5714
5715 return true;
5716 } catch (err) {
5717 // We don't expect any of the above to throw, but better to be safe.
5718 return false;
5719 }
5720}
5721
5722module.exports = shouldUseNative() ? Object.assign : function (target, source) {
5723 var from;
5724 var to = toObject(target);
5725 var symbols;
5726
5727 for (var s = 1; s < arguments.length; s++) {
5728 from = Object(arguments[s]);
5729
5730 for (var key in from) {
5731 if (hasOwnProperty.call(from, key)) {
5732 to[key] = from[key];
5733 }
5734 }
5735
5736 if (getOwnPropertySymbols) {
5737 symbols = getOwnPropertySymbols(from);
5738 for (var i = 0; i < symbols.length; i++) {
5739 if (propIsEnumerable.call(from, symbols[i])) {
5740 to[symbols[i]] = from[symbols[i]];
5741 }
5742 }
5743 }
5744 }
5745
5746 return to;
5747};
5748
5749
5750/***/ }),
5751/* 109 */
5752/***/ (function(module, exports, __webpack_require__) {
5753
5754"use strict";
5755/* WEBPACK VAR INJECTION */(function(process) {/**
5756 * Copyright (c) 2013-present, Facebook, Inc.
5757 *
5758 * This source code is licensed under the MIT license found in the
5759 * LICENSE file in the root directory of this source tree.
5760 */
5761
5762
5763
5764var printWarning = function() {};
5765
5766if (process.env.NODE_ENV !== 'production') {
5767 var ReactPropTypesSecret = __webpack_require__(42);
5768 var loggedTypeFailures = {};
5769
5770 printWarning = function(text) {
5771 var message = 'Warning: ' + text;
5772 if (typeof console !== 'undefined') {
5773 console.error(message);
5774 }
5775 try {
5776 // --- Welcome to debugging React ---
5777 // This error was thrown as a convenience so that you can use this stack
5778 // to find the callsite that caused this warning to fire.
5779 throw new Error(message);
5780 } catch (x) {}
5781 };
5782}
5783
5784/**
5785 * Assert that the values match with the type specs.
5786 * Error messages are memorized and will only be shown once.
5787 *
5788 * @param {object} typeSpecs Map of name to a ReactPropType
5789 * @param {object} values Runtime values that need to be type-checked
5790 * @param {string} location e.g. "prop", "context", "child context"
5791 * @param {string} componentName Name of the component for error messages.
5792 * @param {?Function} getStack Returns the component stack.
5793 * @private
5794 */
5795function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
5796 if (process.env.NODE_ENV !== 'production') {
5797 for (var typeSpecName in typeSpecs) {
5798 if (typeSpecs.hasOwnProperty(typeSpecName)) {
5799 var error;
5800 // Prop type validation may throw. In case they do, we don't want to
5801 // fail the render phase where it didn't fail before. So we log it.
5802 // After these have been cleaned up, we'll let them throw.
5803 try {
5804 // This is intentionally an invariant that gets caught. It's the same
5805 // behavior as without this statement except with a better message.
5806 if (typeof typeSpecs[typeSpecName] !== 'function') {
5807 var err = Error(
5808 (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
5809 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.'
5810 );
5811 err.name = 'Invariant Violation';
5812 throw err;
5813 }
5814 error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
5815 } catch (ex) {
5816 error = ex;
5817 }
5818 if (error && !(error instanceof Error)) {
5819 printWarning(
5820 (componentName || 'React class') + ': type specification of ' +
5821 location + ' `' + typeSpecName + '` is invalid; the type checker ' +
5822 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +
5823 'You may have forgotten to pass an argument to the type checker ' +
5824 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +
5825 'shape all require an argument).'
5826 )
5827
5828 }
5829 if (error instanceof Error && !(error.message in loggedTypeFailures)) {
5830 // Only monitor this failure once because there tends to be a lot of the
5831 // same error.
5832 loggedTypeFailures[error.message] = true;
5833
5834 var stack = getStack ? getStack() : '';
5835
5836 printWarning(
5837 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')
5838 );
5839 }
5840 }
5841 }
5842 }
5843}
5844
5845module.exports = checkPropTypes;
5846
5847/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(27)))
5848
5849/***/ }),
5850/* 110 */
5851/***/ (function(module, exports, __webpack_require__) {
5852
5853"use strict";
5854/**
5855 * Copyright (c) 2013-present, Facebook, Inc.
5856 *
5857 * This source code is licensed under the MIT license found in the
5858 * LICENSE file in the root directory of this source tree.
5859 */
5860
5861
5862
5863var ReactPropTypesSecret = __webpack_require__(42);
5864
5865function emptyFunction() {}
5866
5867module.exports = function() {
5868 function shim(props, propName, componentName, location, propFullName, secret) {
5869 if (secret === ReactPropTypesSecret) {
5870 // It is still safe when called from React.
5871 return;
5872 }
5873 var err = new Error(
5874 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
5875 'Use PropTypes.checkPropTypes() to call them. ' +
5876 'Read more at http://fb.me/use-check-prop-types'
5877 );
5878 err.name = 'Invariant Violation';
5879 throw err;
5880 };
5881 shim.isRequired = shim;
5882 function getShim() {
5883 return shim;
5884 };
5885 // Important!
5886 // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
5887 var ReactPropTypes = {
5888 array: shim,
5889 bool: shim,
5890 func: shim,
5891 number: shim,
5892 object: shim,
5893 string: shim,
5894 symbol: shim,
5895
5896 any: shim,
5897 arrayOf: getShim,
5898 element: shim,
5899 instanceOf: getShim,
5900 node: shim,
5901 objectOf: getShim,
5902 oneOf: getShim,
5903 oneOfType: getShim,
5904 shape: getShim,
5905 exact: getShim
5906 };
5907
5908 ReactPropTypes.checkPropTypes = emptyFunction;
5909 ReactPropTypes.PropTypes = ReactPropTypes;
5910
5911 return ReactPropTypes;
5912};
5913
5914
5915/***/ }),
5916/* 111 */
5917/***/ (function(module, exports, __webpack_require__) {
5918
5919/* WEBPACK VAR INJECTION */(function(global) {var now = __webpack_require__(113)
5920 , root = typeof window === 'undefined' ? global : window
5921 , vendors = ['moz', 'webkit']
5922 , suffix = 'AnimationFrame'
5923 , raf = root['request' + suffix]
5924 , caf = root['cancel' + suffix] || root['cancelRequest' + suffix]
5925
5926for(var i = 0; !raf && i < vendors.length; i++) {
5927 raf = root[vendors[i] + 'Request' + suffix]
5928 caf = root[vendors[i] + 'Cancel' + suffix]
5929 || root[vendors[i] + 'CancelRequest' + suffix]
5930}
5931
5932// Some versions of FF have rAF but not cAF
5933if(!raf || !caf) {
5934 var last = 0
5935 , id = 0
5936 , queue = []
5937 , frameDuration = 1000 / 60
5938
5939 raf = function(callback) {
5940 if(queue.length === 0) {
5941 var _now = now()
5942 , next = Math.max(0, frameDuration - (_now - last))
5943 last = next + _now
5944 setTimeout(function() {
5945 var cp = queue.slice(0)
5946 // Clear queue here to prevent
5947 // callbacks from appending listeners
5948 // to the current frame's queue
5949 queue.length = 0
5950 for(var i = 0; i < cp.length; i++) {
5951 if(!cp[i].cancelled) {
5952 try{
5953 cp[i].callback(last)
5954 } catch(e) {
5955 setTimeout(function() { throw e }, 0)
5956 }
5957 }
5958 }
5959 }, Math.round(next))
5960 }
5961 queue.push({
5962 handle: ++id,
5963 callback: callback,
5964 cancelled: false
5965 })
5966 return id
5967 }
5968
5969 caf = function(handle) {
5970 for(var i = 0; i < queue.length; i++) {
5971 if(queue[i].handle === handle) {
5972 queue[i].cancelled = true
5973 }
5974 }
5975 }
5976}
5977
5978module.exports = function(fn) {
5979 // Wrap in a new function to prevent
5980 // `cancel` potentially being assigned
5981 // to the native rAF function
5982 return raf.call(root, fn)
5983}
5984module.exports.cancel = function() {
5985 caf.apply(root, arguments)
5986}
5987module.exports.polyfill = function(object) {
5988 if (!object) {
5989 object = root;
5990 }
5991 object.requestAnimationFrame = raf
5992 object.cancelAnimationFrame = caf
5993}
5994
5995/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(112)))
5996
5997/***/ }),
5998/* 112 */
5999/***/ (function(module, exports) {
6000
6001var g;
6002
6003// This works in non-strict mode
6004g = (function() {
6005 return this;
6006})();
6007
6008try {
6009 // This works if eval is allowed (see CSP)
6010 g = g || Function("return this")() || (1,eval)("this");
6011} catch(e) {
6012 // This works if the window reference is available
6013 if(typeof window === "object")
6014 g = window;
6015}
6016
6017// g can still be undefined, but nothing to do about it...
6018// We return undefined, instead of nothing here, so it's
6019// easier to handle this case. if(!global) { ...}
6020
6021module.exports = g;
6022
6023
6024/***/ }),
6025/* 113 */
6026/***/ (function(module, exports, __webpack_require__) {
6027
6028/* WEBPACK VAR INJECTION */(function(process) {// Generated by CoffeeScript 1.12.2
6029(function() {
6030 var getNanoSeconds, hrtime, loadTime, moduleLoadTime, nodeLoadTime, upTime;
6031
6032 if ((typeof performance !== "undefined" && performance !== null) && performance.now) {
6033 module.exports = function() {
6034 return performance.now();
6035 };
6036 } else if ((typeof process !== "undefined" && process !== null) && process.hrtime) {
6037 module.exports = function() {
6038 return (getNanoSeconds() - nodeLoadTime) / 1e6;
6039 };
6040 hrtime = process.hrtime;
6041 getNanoSeconds = function() {
6042 var hr;
6043 hr = hrtime();
6044 return hr[0] * 1e9 + hr[1];
6045 };
6046 moduleLoadTime = getNanoSeconds();
6047 upTime = process.uptime() * 1e9;
6048 nodeLoadTime = moduleLoadTime - upTime;
6049 } else if (Date.now) {
6050 module.exports = function() {
6051 return Date.now() - loadTime;
6052 };
6053 loadTime = Date.now();
6054 } else {
6055 module.exports = function() {
6056 return new Date().getTime() - loadTime;
6057 };
6058 loadTime = new Date().getTime();
6059 }
6060
6061}).call(this);
6062
6063//# sourceMappingURL=performance-now.js.map
6064
6065/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(27)))
6066
6067/***/ }),
6068/* 114 */
6069/***/ (function(module, __webpack_exports__, __webpack_require__) {
6070
6071"use strict";
6072/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_objectWithoutProperties__ = __webpack_require__(115);
6073/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_objectWithoutProperties___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_objectWithoutProperties__);
6074/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends__ = __webpack_require__(0);
6075/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends__);
6076/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__ = __webpack_require__(8);
6077/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__);
6078/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_createClass__ = __webpack_require__(9);
6079/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_createClass___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_createClass__);
6080/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(10);
6081/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_possibleConstructorReturn__);
6082/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_babel_runtime_helpers_inherits__ = __webpack_require__(11);
6083/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_babel_runtime_helpers_inherits__);
6084/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react__ = __webpack_require__(1);
6085/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_react__);
6086/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types__ = __webpack_require__(4);
6087/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_prop_types__);
6088/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_react_dom__ = __webpack_require__(26);
6089/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_8_react_dom__);
6090/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_rc_tween_one__ = __webpack_require__(116);
6091/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_rc_tween_one_es_ticker__ = __webpack_require__(28);
6092/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11_tween_functions__ = __webpack_require__(62);
6093/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11_tween_functions___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_11_tween_functions__);
6094/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12_style_utils__ = __webpack_require__(29);
6095/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12_style_utils___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_12_style_utils__);
6096/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__BgElement__ = __webpack_require__(119);
6097/* harmony import */ var __WEBPACK_IMPORTED_MODULE_14__utils__ = __webpack_require__(17);
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115function noop() {}
6116
6117var Element = function (_Component) {
6118 __WEBPACK_IMPORTED_MODULE_5_babel_runtime_helpers_inherits___default()(Element, _Component);
6119
6120 function Element(props) {
6121 __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default()(this, Element);
6122
6123 var _this = __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_possibleConstructorReturn___default()(this, (Element.__proto__ || Object.getPrototypeOf(Element)).call(this, props));
6124
6125 _initialiseProps.call(_this);
6126
6127 _this.state = {
6128 show: _this.props.show
6129 };
6130 _this.tickerId = -1;
6131 _this.enterMouse = null;
6132 _this.delayTimeout = null;
6133 _this.show = _this.state.show;
6134 _this.followParallax = _this.props.followParallax;
6135 _this.transform = Object(__WEBPACK_IMPORTED_MODULE_12_style_utils__["checkStyleName"])('transform');
6136 return _this;
6137 }
6138
6139 __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_createClass___default()(Element, [{
6140 key: 'componentDidMount',
6141 value: function componentDidMount() {
6142 this.dom = __WEBPACK_IMPORTED_MODULE_8_react_dom___default.a.findDOMNode(this);
6143 }
6144 }, {
6145 key: 'componentWillReceiveProps',
6146 value: function componentWillReceiveProps(nextProps) {
6147 var show = nextProps.show;
6148 if (this.tickerId !== -1) {
6149 __WEBPACK_IMPORTED_MODULE_10_rc_tween_one_es_ticker__["a" /* default */].clear(this.tickerId);
6150 this.tickerId = -1;
6151 }
6152 var followParallax = nextProps.followParallax;
6153 if (this.followParallax && !followParallax) {
6154 this.reFollowParallax();
6155 } else {
6156 this.followParallax = followParallax;
6157 }
6158 this.setState({ show: show, mouseMoveType: nextProps.mouseMoveType });
6159 }
6160 }, {
6161 key: 'componentDidUpdate',
6162 value: function componentDidUpdate() {
6163 if (this.followParallax) {
6164 this.doms = this.followParallax.data.map(function (item) {
6165 return document.getElementById(item.id);
6166 });
6167 }
6168 }
6169 }, {
6170 key: 'componentWillUnmount',
6171 value: function componentWillUnmount() {
6172 __WEBPACK_IMPORTED_MODULE_10_rc_tween_one_es_ticker__["a" /* default */].clear(this.timeoutID);
6173 __WEBPACK_IMPORTED_MODULE_10_rc_tween_one_es_ticker__["a" /* default */].clear(this.delayTimeout);
6174 this.delayTimeout = -1;
6175 this.timeoutID = -1;
6176 }
6177 }, {
6178 key: 'render',
6179 value: function render() {
6180 var _this2 = this;
6181
6182 var props = __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends___default()({}, this.props, this.props.componentProps);
6183 var style = __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends___default()({}, props.style);
6184 style.display = props.show ? 'block' : 'none';
6185 style.position = 'absolute';
6186 style.width = '100%';
6187 if (this.props.mouseMoveType !== 'end') {
6188 style[this.transform] = '';
6189 }
6190 props.style = style;
6191 props.className = ('banner-anim-elem ' + (this.props.prefixCls || '')).trim();
6192 var bgElem = Object(__WEBPACK_IMPORTED_MODULE_14__utils__["f" /* toArrayChildren */])(this.props.children).filter(function (item) {
6193 return item && item.type.isBannerAnimBgElement;
6194 }).map(function (item) {
6195 return __WEBPACK_IMPORTED_MODULE_6_react___default.a.cloneElement(item, { show: _this2.state.show });
6196 });
6197 ['prefixCls', 'callBack', 'animType', 'duration', 'delay', 'ease', 'elemOffset', 'followParallax', 'show', 'type', 'direction', 'leaveChildHide', 'sync', 'ratio', 'mouseMoveType'].forEach(function (key) {
6198 return delete props[key];
6199 });
6200 if (this.show === this.state.show && !this.state.mouseMoveType || this.state.mouseMoveType === 'reChild') {
6201 if (!this.state.show) {
6202 this.enterMouse = null;
6203 return __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_9_rc_tween_one__["a" /* default */], props, bgElem);
6204 }
6205 if (this.props.followParallax) {
6206 props.onMouseMove = this.getFollowMouseMove();
6207 }
6208 return __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_9_rc_tween_one__["a" /* default */], props, this.props.mouseMoveType === 'update' ? bgElem : this.getChildren());
6209 }
6210 return this.animChildren(props, style, bgElem);
6211 }
6212 }]);
6213
6214 return Element;
6215}(__WEBPACK_IMPORTED_MODULE_6_react__["Component"]);
6216
6217var _initialiseProps = function _initialiseProps() {
6218 var _this3 = this;
6219
6220 this.onMouseMove = function (e) {
6221 _this3.domRect = _this3.dom.getBoundingClientRect();
6222 _this3.enterMouse = _this3.enterMouse || { x: _this3.domRect.width / 2, y: _this3.domRect.height / 2 };
6223 _this3.domWH = {
6224 w: _this3.domRect.width,
6225 h: _this3.domRect.height
6226 };
6227 _this3.offsetTop = _this3.domRect.top + Object(__WEBPACK_IMPORTED_MODULE_14__utils__["b" /* currentScrollTop */])();
6228 _this3.offsetLeft = _this3.domRect.left + Object(__WEBPACK_IMPORTED_MODULE_14__utils__["a" /* currentScrollLeft */])();
6229 var mouseXY = {
6230 x: e.pageX - _this3.offsetLeft,
6231 y: e.pageY - _this3.offsetTop
6232 };
6233 _this3.setTicker(_this3.followParallax, mouseXY);
6234 };
6235
6236 this.setTicker = function (followParallax, mouseXY) {
6237 var callback = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : noop;
6238
6239 __WEBPACK_IMPORTED_MODULE_10_rc_tween_one_es_ticker__["a" /* default */].clear(_this3.tickerId);
6240 _this3.tickerId = 'bannerElementTicker' + (Date.now() + Math.random());
6241 var startFrame = __WEBPACK_IMPORTED_MODULE_10_rc_tween_one_es_ticker__["a" /* default */].frame;
6242 var startX = _this3.enterMouse.x;
6243 var startY = _this3.enterMouse.y;
6244 var duration = followParallax.duration || 450;
6245 var easeFunc = __WEBPACK_IMPORTED_MODULE_11_tween_functions___default.a[followParallax.ease || 'easeOutQuad'];
6246 var start = typeof followParallax.minMove === 'number' ? followParallax.minMove : 0.08;
6247 __WEBPACK_IMPORTED_MODULE_10_rc_tween_one_es_ticker__["a" /* default */].wake(_this3.tickerId, function () {
6248 var moment = (__WEBPACK_IMPORTED_MODULE_10_rc_tween_one_es_ticker__["a" /* default */].frame - startFrame) * __WEBPACK_IMPORTED_MODULE_10_rc_tween_one_es_ticker__["a" /* default */].perFrame;
6249 var ratio = easeFunc(moment, start, 1, duration);
6250 _this3.enterMouse.x = startX + (mouseXY.x - startX) * ratio;
6251 _this3.enterMouse.y = startY + (mouseXY.y - startY) * ratio;
6252 _this3.setFollowStyle(_this3.domWH);
6253 if (moment >= duration) {
6254 __WEBPACK_IMPORTED_MODULE_10_rc_tween_one_es_ticker__["a" /* default */].clear(_this3.tickerId);
6255 callback();
6256 }
6257 });
6258 };
6259
6260 this.getFollowMouseMove = function () {
6261 var onMouseMove = void 0;
6262 if (_this3.followParallax) {
6263 if (_this3.followParallax.delay) {
6264 onMouseMove = !_this3.delayTimeout ? null : _this3.state.onMouseMove;
6265 _this3.delayTimeout = _this3.delayTimeout || __WEBPACK_IMPORTED_MODULE_10_rc_tween_one_es_ticker__["a" /* default */].timeout(function () {
6266 _this3.setState({
6267 onMouseMove: _this3.onMouseMove
6268 });
6269 }, _this3.followParallax.delay);
6270 } else {
6271 onMouseMove = _this3.onMouseMove;
6272 }
6273 }
6274 return onMouseMove;
6275 };
6276
6277 this.getFollowStyle = function (data, domWH) {
6278 var style = {};
6279 Object(__WEBPACK_IMPORTED_MODULE_14__utils__["c" /* dataToArray */])(data.type).forEach(function (type) {
6280 var mouseData = _this3.enterMouse.x;
6281 var domData = domWH.w;
6282 var value = data.value;
6283 if ((type.indexOf('y') >= 0 || type.indexOf('Y') >= 0) && type !== 'opacity') {
6284 mouseData = _this3.enterMouse.y;
6285 domData = domWH.h;
6286 }
6287 var d = (mouseData - domData / 2) / (domData / 2) * value;
6288 var _type = Object(__WEBPACK_IMPORTED_MODULE_12_style_utils__["getGsapType"])(type);
6289 var cssName = Object(__WEBPACK_IMPORTED_MODULE_12_style_utils__["isConvert"])(_type);
6290 if (cssName === 'transform') {
6291 var transform = Object(__WEBPACK_IMPORTED_MODULE_12_style_utils__["checkStyleName"])('transform');
6292 style[transform] = style[transform] || {};
6293 style[transform][_type] = Object(__WEBPACK_IMPORTED_MODULE_12_style_utils__["stylesToCss"])(_type, d).trim();
6294 } else if (cssName === 'filter') {
6295 var filter = Object(__WEBPACK_IMPORTED_MODULE_12_style_utils__["checkStyleName"])('filter');
6296 style[filter] = style[filter] || {};
6297 style[filter][_type] = Object(__WEBPACK_IMPORTED_MODULE_12_style_utils__["stylesToCss"])(_type, d).trim();
6298 } else {
6299 style[cssName] = Object(__WEBPACK_IMPORTED_MODULE_12_style_utils__["stylesToCss"])(_type, d).trim();
6300 }
6301 });
6302 return style;
6303 };
6304
6305 this.setFollowStyle = function (domWH) {
6306 _this3.doms.forEach(function (item, i) {
6307 if (!item) {
6308 return;
6309 }
6310 var data = _this3.followParallax.data[i];
6311 var style = _this3.getFollowStyle(data, domWH);
6312 Object.keys(style).forEach(function (key) {
6313 if (typeof style[key] === 'object') {
6314 var styleStr = '';
6315 Object.keys(style[key]).forEach(function (_key) {
6316 styleStr += (' ' + _key + '(' + style[key][_key] + ')').trim();
6317 });
6318 item.style[key] = styleStr;
6319 return;
6320 }
6321 item.style[key] = key.indexOf('backgroundPosition') >= 0 ? 'calc(' + (data.bgPosition || '0%') + ' + ' + style[key] + ' )' : style[key];
6322 });
6323 });
6324 };
6325
6326 this.getChildren = function () {
6327 return Object(__WEBPACK_IMPORTED_MODULE_14__utils__["f" /* toArrayChildren */])(_this3.props.children).map(function (item) {
6328 if (item && item.type === __WEBPACK_IMPORTED_MODULE_13__BgElement__["a" /* default */]) {
6329 return __WEBPACK_IMPORTED_MODULE_6_react___default.a.cloneElement(item, { show: _this3.state.show });
6330 }
6331 return item;
6332 });
6333 };
6334
6335 this.reFollowParallax = function () {
6336 _this3.setTicker(_this3.followParallax, {
6337 x: _this3.domRect.width / 2 - _this3.offsetLeft,
6338 y: _this3.domRect.height / 2 - _this3.offsetTop
6339 }, function () {
6340 _this3.followParallax = null;
6341 });
6342 };
6343
6344 this.animEnd = function () {
6345 var type = _this3.state.show ? 'enter' : 'leave';
6346 _this3.props.callBack(type);
6347 _this3.setState(function (_, props) {
6348 return { show: props.show, mouseMoveType: null };
6349 });
6350 };
6351
6352 this.animChildren = function (props, style, bgElem) {
6353 var _props = _this3.props,
6354 elemOffset = _props.elemOffset,
6355 leaveChildHide = _props.leaveChildHide,
6356 ratio = _props.ratio,
6357 animType = _props.animType,
6358 direction = _props.direction,
6359 mouseMoveType = _props.mouseMoveType,
6360 ease = _props.ease,
6361 duration = _props.duration,
6362 delay = _props.delay,
6363 show = _props.show,
6364 sync = _props.sync,
6365 component = _props.component;
6366
6367 if (_this3.tickerId) {
6368 __WEBPACK_IMPORTED_MODULE_10_rc_tween_one_es_ticker__["a" /* default */].clear(_this3.tickerId);
6369 }
6370 if (_this3.delayTimeout) {
6371 __WEBPACK_IMPORTED_MODULE_10_rc_tween_one_es_ticker__["a" /* default */].clear(_this3.delayTimeout);
6372 _this3.delayTimeout = null;
6373 }
6374 style.display = 'block';
6375
6376 props.component = component;
6377 _this3.show = _this3.state.show;
6378 style.zIndex = _this3.state.show ? 1 : 0;
6379 props.children = show && !sync ? bgElem : _this3.getChildren();
6380 var childrenToRender = __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_9_rc_tween_one__["a" /* default */], props);
6381 var type = _this3.state.show ? 'enter' : 'leave';
6382 var $ratio = mouseMoveType === 'end' && ratio <= 0.3 ? 1 - ratio : ratio;
6383 var tag = animType(childrenToRender, type, direction, {
6384 ease: ease,
6385 duration: duration,
6386 delay: delay,
6387 onComplete: _this3.animEnd
6388 }, elemOffset, leaveChildHide, $ratio, _this3.state.mouseMoveType === 'update');
6389
6390 var tagProps = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_objectWithoutProperties___default()(tag.props, []);
6391
6392 if (tagProps.animation) {
6393 tagProps.moment = (tagProps.animation.duration + tagProps.animation.delay) * $ratio || 0;
6394 tagProps.paused = _this3.state.mouseMoveType === 'update' || $ratio === 1;
6395 }
6396 return __WEBPACK_IMPORTED_MODULE_6_react___default.a.cloneElement(tag, tagProps);
6397 };
6398};
6399
6400Element.propTypes = {
6401 children: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.any,
6402 style: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.object,
6403 prefixCls: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.string,
6404 component: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.any,
6405 elemOffset: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.object,
6406 type: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.string,
6407 animType: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.func,
6408 ease: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.string,
6409 duration: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.number,
6410 delay: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.number,
6411 direction: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.string,
6412 callBack: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.func,
6413 followParallax: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.any,
6414 show: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool,
6415 leaveChildHide: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool,
6416 sync: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool,
6417 ratio: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.number,
6418 mouseMoveType: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.string,
6419 componentProps: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.object
6420};
6421Element.defaultProps = {
6422 component: 'div',
6423 componentProps: {},
6424 callBack: noop,
6425 delay: 0
6426};
6427
6428Element.BgElement = __WEBPACK_IMPORTED_MODULE_13__BgElement__["a" /* default */];
6429Element.isBannerAnimElement = true;
6430/* harmony default export */ __webpack_exports__["a"] = (Element);
6431
6432/***/ }),
6433/* 115 */
6434/***/ (function(module, exports, __webpack_require__) {
6435
6436"use strict";
6437
6438
6439exports.__esModule = true;
6440
6441exports.default = function (obj, keys) {
6442 var target = {};
6443
6444 for (var i in obj) {
6445 if (keys.indexOf(i) >= 0) continue;
6446 if (!Object.prototype.hasOwnProperty.call(obj, i)) continue;
6447 target[i] = obj[i];
6448 }
6449
6450 return target;
6451};
6452
6453/***/ }),
6454/* 116 */
6455/***/ (function(module, __webpack_exports__, __webpack_require__) {
6456
6457"use strict";
6458/* unused harmony export TweenOneGroup */
6459/* unused harmony export easing */
6460/* unused harmony export plugins */
6461/* unused harmony export ticker */
6462/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__TweenOne__ = __webpack_require__(59);
6463/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__TweenOneGroup__ = __webpack_require__(118);
6464/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__easing__ = __webpack_require__(61);
6465/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__plugins__ = __webpack_require__(44);
6466/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__ticker__ = __webpack_require__(28);
6467// export this package's api
6468
6469
6470
6471
6472
6473
6474__WEBPACK_IMPORTED_MODULE_0__TweenOne__["a" /* default */].TweenOneGroup = __WEBPACK_IMPORTED_MODULE_1__TweenOneGroup__["a" /* default */];
6475__WEBPACK_IMPORTED_MODULE_0__TweenOne__["a" /* default */].easing = __WEBPACK_IMPORTED_MODULE_2__easing__["a" /* default */];
6476__WEBPACK_IMPORTED_MODULE_0__TweenOne__["a" /* default */].plugins = __WEBPACK_IMPORTED_MODULE_3__plugins__["a" /* default */];
6477__WEBPACK_IMPORTED_MODULE_0__TweenOne__["a" /* default */].ticker = __WEBPACK_IMPORTED_MODULE_4__ticker__["a" /* default */];
6478
6479/* harmony default export */ __webpack_exports__["a"] = (__WEBPACK_IMPORTED_MODULE_0__TweenOne__["a" /* default */]);
6480
6481var TweenOneGroup = __WEBPACK_IMPORTED_MODULE_1__TweenOneGroup__["a" /* default */];
6482
6483var easing = __WEBPACK_IMPORTED_MODULE_2__easing__["a" /* default */];
6484
6485var plugins = __WEBPACK_IMPORTED_MODULE_3__plugins__["a" /* default */];
6486
6487var ticker = __WEBPACK_IMPORTED_MODULE_4__ticker__["a" /* default */];
6488
6489/***/ }),
6490/* 117 */
6491/***/ (function(module, __webpack_exports__, __webpack_require__) {
6492
6493"use strict";
6494/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(0);
6495/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__);
6496/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_style_utils__ = __webpack_require__(29);
6497/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_style_utils___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_style_utils__);
6498/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__util_js__ = __webpack_require__(20);
6499/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__plugins__ = __webpack_require__(44);
6500
6501/* eslint-disable func-names, no-console */
6502
6503
6504
6505
6506var StylePlugin = function StylePlugin(target, vars, type) {
6507 this.target = target;
6508 this.vars = vars;
6509 this.type = type;
6510 this.propsData = {};
6511 this.setDefaultData();
6512};
6513StylePlugin.prototype = {
6514 name: 'style'
6515};
6516var p = StylePlugin.prototype;
6517p.getTweenData = function (key, vars) {
6518 var data = {
6519 data: {},
6520 dataType: {},
6521 dataUnit: {},
6522 dataCount: {},
6523 dataSplitStr: {}
6524 };
6525 if (key.match(/colo|fill|storker/i)) {
6526 data.data[key] = Object(__WEBPACK_IMPORTED_MODULE_1_style_utils__["parseColor"])(vars);
6527 data.dataType[key] = 'color';
6528 } else if (key === 'strokeDasharray') {
6529 data.data[key] = vars.split(',');
6530 data.dataType[key] = 'strokeDasharray';
6531 } else if (key.match(/shadow/i)) {
6532 data.data[key] = Object(__WEBPACK_IMPORTED_MODULE_1_style_utils__["parseShadow"])(vars);
6533 data.dataType[key] = 'shadow';
6534 } else if (typeof vars === 'string' && vars.split(/[\s|,]/).length > 1) {
6535 data.data[key] = vars.split(/[\s|,]/);
6536 data.dataSplitStr[key] = vars.replace(/[^\s|,]/g, '');
6537 data.dataType[key] = 'string';
6538 } else {
6539 data.data[key] = vars;
6540 data.dataType[key] = 'other';
6541 }
6542 if (Array.isArray(data.data[key])) {
6543 data.dataUnit[key] = data.data[key].map(function (_item) {
6544 return _item.toString().replace(/[^a-z|%]/g, '');
6545 });
6546 data.dataCount[key] = data.data[key].map(function (_item) {
6547 return _item.toString().replace(/[^+|=|-]/g, '');
6548 });
6549
6550 data.data[key] = data.data[key].map(function (_item) {
6551 return !parseFloat(_item) && parseFloat(_item) !== 0 ? _item : parseFloat(_item);
6552 });
6553 } else {
6554 data.dataUnit[key] = data.data[key].toString().replace(/[^a-z|%]/g, '');
6555 data.dataCount[key] = data.data[key].toString().replace(/[^+|=|-]/g, '');
6556 var d = parseFloat(data.data[key].toString().replace(/[a-z|%|=]/g, ''));
6557 data.data[key] = !d && d !== 0 ? data.data[key] : d;
6558 }
6559 return data;
6560};
6561p.setDefaultData = function () {
6562 var _this = this;
6563
6564 this.propsData.data = {};
6565 this.propsData.dataType = {};
6566 this.propsData.dataUnit = {};
6567 this.propsData.dataCount = {};
6568 this.propsData.dataSplitStr = {};
6569 Object.keys(this.vars).forEach(function (_key) {
6570 if (_key in __WEBPACK_IMPORTED_MODULE_3__plugins__["a" /* default */]) {
6571 _this.propsData.data[_key] = new __WEBPACK_IMPORTED_MODULE_3__plugins__["a" /* default */][_key](_this.target, _this.vars[_key]);
6572 return;
6573 }
6574 var key = Object(__WEBPACK_IMPORTED_MODULE_1_style_utils__["getGsapType"])(_key);
6575 var _data = _this.getTweenData(key, _this.vars[_key]);
6576 _this.propsData.data[key] = _data.data[key];
6577 _this.propsData.dataType[key] = _data.dataType[key];
6578 _this.propsData.dataUnit[key] = _data.dataUnit[key];
6579 _this.propsData.dataCount[key] = _data.dataCount[key];
6580 if (_data.dataSplitStr[key]) {
6581 _this.propsData.dataSplitStr[key] = _data.dataSplitStr[key];
6582 }
6583 });
6584};
6585p.convertToMarksArray = function (computedStyle, unit, key, data, i) {
6586 var startUnit = data.toString().replace(/[^a-z|%]/g, '');
6587 var endUnit = unit[i];
6588 if (startUnit === endUnit) {
6589 return parseFloat(data);
6590 } else if (!parseFloat(data) && parseFloat(data) !== 0) {
6591 return data;
6592 }
6593 return Object(__WEBPACK_IMPORTED_MODULE_2__util_js__["h" /* startConvertToEndUnit */])(this.target, computedStyle, key, data, startUnit, endUnit, null, key === 'transformOrigin' && !i);
6594};
6595p.getAnimStart = function (computedStyle, tween, isSvg) {
6596 var _this2 = this;
6597
6598 var style = {};
6599 var tweenStyle = tween.style || {};
6600 var transform = void 0;
6601 Object.keys(this.propsData.data).forEach(function (key) {
6602 var cssName = Object(__WEBPACK_IMPORTED_MODULE_1_style_utils__["isConvert"])(key);
6603 var startData = tweenStyle[cssName] || computedStyle[cssName];
6604 var fixed = computedStyle.position === 'fixed';
6605 if (!startData || startData === 'none' || startData === 'auto') {
6606 startData = '';
6607 }
6608 var endUnit = void 0;
6609 var startUnit = void 0;
6610 if (key in __WEBPACK_IMPORTED_MODULE_3__plugins__["a" /* default */]) {
6611 if (key === 'bezier') {
6612 _this2.transform = Object(__WEBPACK_IMPORTED_MODULE_1_style_utils__["checkStyleName"])('transform');
6613 startData = computedStyle[isSvg ? 'transformSVG' : _this2.transform];
6614 transform = transform || (tweenStyle.transform ? __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, tweenStyle.transform) : style.transform || Object(__WEBPACK_IMPORTED_MODULE_1_style_utils__["getTransform"])(startData));
6615 style.transform = transform;
6616 }
6617 _this2.propsData.data[key].getAnimStart(computedStyle, isSvg);
6618 } else if (cssName === 'transform') {
6619 _this2.transform = Object(__WEBPACK_IMPORTED_MODULE_1_style_utils__["checkStyleName"])('transform');
6620 startData = computedStyle[isSvg ? 'transformSVG' : _this2.transform];
6621 endUnit = _this2.propsData.dataUnit[key];
6622 transform = transform || (tweenStyle.transform ? __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, tweenStyle.transform) : style.transform || Object(__WEBPACK_IMPORTED_MODULE_1_style_utils__["getTransform"])(startData));
6623 var unitReg = /%|vw|vh|em|rem/i;
6624 if (endUnit && endUnit.match(unitReg)) {
6625 transform[key] = transform[key] && transform[key].toString().match(unitReg) ? parseFloat(transform[key]) : Object(__WEBPACK_IMPORTED_MODULE_2__util_js__["h" /* startConvertToEndUnit */])(_this2.target, computedStyle, key, transform[key], null, endUnit);
6626 }
6627 style.transform = transform;
6628 } else if (cssName === 'filter') {
6629 if (tweenStyle[cssName]) {
6630 startData = tweenStyle[cssName];
6631 } else {
6632 _this2.filterName = Object(__WEBPACK_IMPORTED_MODULE_1_style_utils__["checkStyleName"])('filter') || 'filter';
6633 startData = computedStyle[_this2.filterName];
6634 _this2.filterObject = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, _this2.filterObject, Object(__WEBPACK_IMPORTED_MODULE_1_style_utils__["splitFilterToObject"])(startData));
6635 startData = _this2.filterObject[key] || 0;
6636 }
6637 startUnit = startData.toString().replace(/[^a-z|%]/g, '');
6638 endUnit = _this2.propsData.dataUnit[key];
6639 if (endUnit !== startUnit) {
6640 startData = Object(__WEBPACK_IMPORTED_MODULE_2__util_js__["h" /* startConvertToEndUnit */])(_this2.target, computedStyle, cssName, parseFloat(startData), startUnit, endUnit, fixed);
6641 }
6642 style[key] = parseFloat(startData);
6643 } else if (key.match(/color|fill/i) || key === 'stroke') {
6644 startData = !startData && key === 'stroke' ? 'rgba(255, 255, 255, 0)' : startData;
6645 style[cssName] = Object(__WEBPACK_IMPORTED_MODULE_1_style_utils__["parseColor"])(startData);
6646 } else if (key.match(/shadow/i)) {
6647 startData = Object(__WEBPACK_IMPORTED_MODULE_1_style_utils__["parseShadow"])(startData);
6648 endUnit = _this2.propsData.dataUnit[key];
6649 startData = startData.map(_this2.convertToMarksArray.bind(_this2, computedStyle, endUnit, key));
6650 style[cssName] = startData;
6651 } else if (Array.isArray(_this2.propsData.data[key])) {
6652 startData = startData.split(/[\s|,]/).filter(function (c) {
6653 return c || c === 0;
6654 });
6655 endUnit = _this2.propsData.dataUnit[key];
6656 startData = startData.map(_this2.convertToMarksArray.bind(_this2, computedStyle, endUnit, key));
6657 style[cssName] = startData;
6658 } else {
6659 // 计算单位
6660 endUnit = _this2.propsData.dataUnit[cssName];
6661 startUnit = startData.toString().replace(/[^a-z|%]/g, '');
6662 if (endUnit !== startUnit) {
6663 startData = Object(__WEBPACK_IMPORTED_MODULE_2__util_js__["h" /* startConvertToEndUnit */])(_this2.target, computedStyle, cssName, parseFloat(startData), startUnit, endUnit, fixed);
6664 }
6665 style[cssName] = parseFloat(startData || 0);
6666 }
6667 });
6668 this.start = style;
6669 return style;
6670};
6671p.setArrayRatio = function (ratio, start, vars, unit, type) {
6672 if (type === 'color' && start.length === 4 && vars.length === 3) {
6673 vars[3] = 1;
6674 }
6675 var startInset = start.indexOf('inset') >= 0;
6676 var endInset = vars.indexOf('inset') >= 0;
6677 if (startInset && !endInset || endInset && !startInset) {
6678 throw console.error('Error: "box-shadow" inset have to exist');
6679 }
6680 var length = endInset ? 9 : 8;
6681 if (start.length === length && vars.length === length - 1) {
6682 vars.splice(3, 0, 0);
6683 unit.splice(3, 0, '');
6684 } else if (vars.length === length && start.length === length - 1) {
6685 start.splice(3, 0, 0);
6686 }
6687 var _vars = vars.map(function (endData, i) {
6688 var startIsAlpha = type === 'color' && i === 3 && !start[i] ? 1 : 0;
6689 var startData = typeof start[i] === 'number' ? start[i] : startIsAlpha;
6690 if (typeof endData === 'string') {
6691 return endData;
6692 }
6693 return (endData - startData) * ratio + startData + (unit[i] || 0);
6694 });
6695 if (type === 'color') {
6696 return Object(__WEBPACK_IMPORTED_MODULE_1_style_utils__["getColor"])(_vars);
6697 } else if (type === 'shadow') {
6698 var l = _vars.length === length ? 4 : 3;
6699 var s = _vars.slice(0, l).map(function (item) {
6700 if (typeof item === 'number') {
6701 return item + 'px';
6702 }
6703 return item;
6704 });
6705 var c = _vars.slice(l, endInset ? _vars.length - 1 : _vars.length);
6706 var color = Object(__WEBPACK_IMPORTED_MODULE_1_style_utils__["getColor"])(c);
6707 return (s.join(' ') + ' ' + color + ' ' + (endInset ? 'inset' : '')).trim();
6708 }
6709 return _vars;
6710};
6711
6712p.setRatio = function (ratio, tween, computedStyle) {
6713 var _this3 = this;
6714
6715 tween.style = tween.style || {};
6716 if (this.start.transform) {
6717 tween.style.transform = tween.style.transform || __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, this.start.transform);
6718 }
6719 var style = this.target.style;
6720 Object.keys(this.propsData.data).forEach(function (key) {
6721 var _isTransform = Object(__WEBPACK_IMPORTED_MODULE_1_style_utils__["isTransform"])(key) === 'transform';
6722 var startVars = _isTransform ? _this3.start.transform[key] : _this3.start[key];
6723 var endVars = _this3.propsData.data[key];
6724 var unit = _this3.propsData.dataUnit[key];
6725 var count = _this3.propsData.dataCount[key];
6726 if (key in __WEBPACK_IMPORTED_MODULE_3__plugins__["a" /* default */]) {
6727 _this3.propsData.data[key].setRatio(ratio, tween, computedStyle);
6728 if (key === 'bezier') {
6729 style[_this3.transform] = Object(__WEBPACK_IMPORTED_MODULE_2__util_js__["d" /* getTransformValue */])(tween.style.transform);
6730 } else {
6731 Object.keys(tween.style).forEach(function (css) {
6732 style[css] = tween.style[css];
6733 });
6734 }
6735 return;
6736 } else if (_isTransform) {
6737 if (unit && unit.match(/%|vw|vh|em|rem/i)) {
6738 startVars = parseFloat(_this3.start.transform[key]);
6739 if (count.charAt(1) === '=') {
6740 tween.style.transform[key] = startVars + endVars * ratio + unit;
6741 } else {
6742 tween.style.transform[key] = (endVars - startVars) * ratio + startVars + unit;
6743 }
6744 } else if (key === 'scale') {
6745 var xStart = _this3.start.transform.scaleX;
6746 var yStart = _this3.start.transform.scaleY;
6747 if (count.charAt(1) === '=') {
6748 tween.style.transform.scaleX = xStart + endVars * ratio;
6749 tween.style.transform.scaleY = yStart + endVars * ratio;
6750 } else {
6751 tween.style.transform.scaleX = (endVars - xStart) * ratio + xStart;
6752 tween.style.transform.scaleY = (endVars - yStart) * ratio + yStart;
6753 }
6754 } else if (count.charAt(1) === '=') {
6755 tween.style.transform[key] = startVars + endVars * ratio;
6756 } else {
6757 tween.style.transform[key] = (endVars - startVars) * ratio + startVars;
6758 }
6759 style[_this3.transform] = Object(__WEBPACK_IMPORTED_MODULE_2__util_js__["d" /* getTransformValue */])(tween.style.transform);
6760 if (computedStyle) {
6761 computedStyle.transformSVG = Object(__WEBPACK_IMPORTED_MODULE_1_style_utils__["createMatrix"])(style[_this3.transform]).toString();
6762 }
6763 return;
6764 } else if (Array.isArray(endVars)) {
6765 var _type = _this3.propsData.dataType[key];
6766 tween.style[key] = _this3.setArrayRatio(ratio, startVars, endVars, unit, _type);
6767 if (_type === 'string') {
6768 tween.style[key] = tween.style[key].join(_this3.propsData.dataSplitStr[key]);
6769 }
6770 } else {
6771 var styleUnit = Object(__WEBPACK_IMPORTED_MODULE_1_style_utils__["stylesToCss"])(key, 0);
6772 styleUnit = typeof styleUnit === 'number' ? '' : styleUnit.replace(/[^a-z|%]/g, '');
6773 unit = unit || (__WEBPACK_IMPORTED_MODULE_1_style_utils__["cssList"].filter.indexOf(key) >= 0 ? '' : styleUnit);
6774 if (typeof endVars === 'string') {
6775 tween.style[key] = endVars;
6776 } else if (count.charAt(1) === '=') {
6777 tween.style[key] = startVars + endVars * ratio + unit;
6778 } else {
6779 var value = (endVars - startVars) * ratio + startVars;
6780 tween.style[key] = unit ? '' + value + unit : value;
6781 }
6782 }
6783 if (__WEBPACK_IMPORTED_MODULE_1_style_utils__["cssList"].filter.indexOf(key) >= 0) {
6784 if (!_this3.filterObject) {
6785 return;
6786 }
6787 _this3.filterObject[key] = tween.style[key];
6788 var filterStyle = '';
6789 Object.keys(_this3.filterObject).forEach(function (filterKey) {
6790 filterStyle += ' ' + filterKey + '(' + _this3.filterObject[filterKey] + ')';
6791 });
6792 style[_this3.filterName] = filterStyle.trim();
6793 return;
6794 }
6795 style[key] = tween.style[key];
6796 });
6797};
6798/* harmony default export */ __webpack_exports__["a"] = (StylePlugin);
6799
6800/***/ }),
6801/* 118 */
6802/***/ (function(module, __webpack_exports__, __webpack_require__) {
6803
6804"use strict";
6805/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(0);
6806/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__);
6807/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck__ = __webpack_require__(8);
6808/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck__);
6809/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_createClass__ = __webpack_require__(9);
6810/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_createClass___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_createClass__);
6811/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(10);
6812/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__);
6813/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__ = __webpack_require__(11);
6814/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__);
6815/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react__ = __webpack_require__(1);
6816/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_react__);
6817/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_prop_types__ = __webpack_require__(4);
6818/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_prop_types__);
6819/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__TweenOne__ = __webpack_require__(59);
6820/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__util__ = __webpack_require__(20);
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831function noop() {}
6832
6833var TweenOneGroup = function (_Component) {
6834 __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default()(TweenOneGroup, _Component);
6835
6836 function TweenOneGroup(props) {
6837 __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck___default()(this, TweenOneGroup);
6838
6839 var _this = __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default()(this, (TweenOneGroup.__proto__ || Object.getPrototypeOf(TweenOneGroup)).call(this, props));
6840
6841 _initialiseProps.call(_this);
6842
6843 _this.keysToEnter = [];
6844 _this.keysToLeave = [];
6845 _this.saveTweenTag = {};
6846 _this.onEnterBool = false;
6847 _this.animQueue = [];
6848 _this.isTween = {};
6849 // 第一进入,appear 为 true 时默认用 enter 或 tween-one 上的效果
6850 var children = Object(__WEBPACK_IMPORTED_MODULE_8__util__["i" /* toArrayChildren */])(Object(__WEBPACK_IMPORTED_MODULE_8__util__["c" /* getChildrenFromProps */])(_this.props));
6851 _this.currentChildren = Object(__WEBPACK_IMPORTED_MODULE_8__util__["i" /* toArrayChildren */])(Object(__WEBPACK_IMPORTED_MODULE_8__util__["c" /* getChildrenFromProps */])(_this.props));
6852 _this.state = {
6853 children: children
6854 };
6855 return _this;
6856 }
6857
6858 __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_createClass___default()(TweenOneGroup, [{
6859 key: 'componentDidMount',
6860 value: function componentDidMount() {
6861 this.onEnterBool = true;
6862 }
6863 }, {
6864 key: 'componentWillReceiveProps',
6865 value: function componentWillReceiveProps(nextProps) {
6866 var nextChildren = Object(__WEBPACK_IMPORTED_MODULE_8__util__["i" /* toArrayChildren */])(nextProps.children);
6867 if (Object.keys(this.isTween).length && !nextProps.exclusive) {
6868 this.animQueue.push(nextChildren);
6869 return;
6870 }
6871 var currentChildren = Object(__WEBPACK_IMPORTED_MODULE_8__util__["i" /* toArrayChildren */])(this.currentChildren);
6872 this.changeChildren(nextChildren, currentChildren);
6873 }
6874 }, {
6875 key: 'changeChildren',
6876 value: function changeChildren(nextChildren, currentChildren) {
6877 var _this2 = this;
6878
6879 var newChildren = Object(__WEBPACK_IMPORTED_MODULE_8__util__["e" /* mergeChildren */])(currentChildren, nextChildren);
6880 this.keysToEnter = [];
6881 this.keysToLeave = [];
6882 nextChildren.forEach(function (c) {
6883 if (!c) {
6884 return;
6885 }
6886 var key = c.key;
6887 var hasPrev = Object(__WEBPACK_IMPORTED_MODULE_8__util__["b" /* findChildInChildrenByKey */])(currentChildren, key);
6888 // 如果当前 key 已存在 saveTweenTag 里,,刷新 child;
6889 if (_this2.saveTweenTag[key]) {
6890 _this2.saveTweenTag[key] = __WEBPACK_IMPORTED_MODULE_5_react___default.a.cloneElement(_this2.saveTweenTag[key], {}, c);
6891 }
6892 if (!hasPrev && key) {
6893 _this2.keysToEnter.push(key);
6894 }
6895 });
6896
6897 currentChildren.forEach(function (c) {
6898 if (!c) {
6899 return;
6900 }
6901 var key = c.key;
6902 var hasNext = Object(__WEBPACK_IMPORTED_MODULE_8__util__["b" /* findChildInChildrenByKey */])(nextChildren, key);
6903 if (!hasNext && key) {
6904 _this2.keysToLeave.push(key);
6905 delete _this2.saveTweenTag[key];
6906 }
6907 });
6908 this.currentChildren = newChildren;
6909 this.setState({
6910 children: newChildren
6911 });
6912 }
6913 }, {
6914 key: 'render',
6915 value: function render() {
6916 var childrenToRender = this.getChildrenToRender(this.state.children);
6917 if (!this.props.component) {
6918 return childrenToRender[0] || null;
6919 }
6920 var componentProps = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, this.props);
6921 ['component', 'componentProps', 'appear', 'enter', 'leave', 'animatingClassName', 'onEnd', 'exclusive', 'resetStyle'].forEach(function (key) {
6922 return delete componentProps[key];
6923 });
6924 return Object(__WEBPACK_IMPORTED_MODULE_5_react__["createElement"])(this.props.component, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, componentProps, this.props.componentProps), childrenToRender);
6925 }
6926 }]);
6927
6928 return TweenOneGroup;
6929}(__WEBPACK_IMPORTED_MODULE_5_react__["Component"]);
6930
6931var _initialiseProps = function _initialiseProps() {
6932 var _this3 = this;
6933
6934 this.onChange = function (animation, key, type, obj) {
6935 var length = Object(__WEBPACK_IMPORTED_MODULE_8__util__["a" /* dataToArray */])(animation).length;
6936 var tag = obj.target;
6937 var classIsSvg = typeof tag.className === 'object' && 'baseVal' in tag.className;
6938 var isEnter = type === 'enter' || type === 'appear';
6939 if (obj.mode === 'onStart') {
6940 if (classIsSvg) {
6941 tag.className.baseVal = _this3.setClassName(tag.className.baseVal, isEnter);
6942 } else {
6943 tag.className = _this3.setClassName(tag.className, isEnter);
6944 }
6945 } else if (obj.index === length - 1 && obj.mode === 'onComplete') {
6946 delete _this3.isTween[key];
6947 if (classIsSvg) {
6948 tag.className.baseVal = tag.className.baseVal.replace(_this3.props.animatingClassName[isEnter ? 0 : 1], '').trim();
6949 } else {
6950 tag.className = tag.className.replace(_this3.props.animatingClassName[isEnter ? 0 : 1], '').trim();
6951 }
6952 if (type === 'enter') {
6953 _this3.keysToEnter.splice(_this3.keysToEnter.indexOf(key), 1);
6954 if (!_this3.keysToEnter.length) {
6955 _this3.reAnimQueue();
6956 }
6957 } else if (type === 'leave') {
6958 _this3.keysToLeave.splice(_this3.keysToLeave.indexOf(key), 1);
6959 _this3.currentChildren = _this3.currentChildren.filter(function (child) {
6960 return key !== child.key;
6961 });
6962 if (!_this3.keysToLeave.length) {
6963 var currentChildrenKeys = _this3.currentChildren.map(function (item) {
6964 return item.key;
6965 });
6966 Object.keys(_this3.saveTweenTag).forEach(function ($key) {
6967 if (currentChildrenKeys.indexOf($key) === -1) {
6968 delete _this3.saveTweenTag[$key];
6969 }
6970 });
6971 _this3.setState({
6972 children: _this3.currentChildren
6973 }, _this3.reAnimQueue);
6974 }
6975 }
6976 var _obj = { key: key, type: type };
6977 _this3.props.onEnd(_obj);
6978 }
6979 };
6980
6981 this.setClassName = function (name, isEnter) {
6982 var className = name.replace(_this3.props.animatingClassName[isEnter ? 1 : 0], '').trim();
6983 if (className.indexOf(_this3.props.animatingClassName[isEnter ? 0 : 1]) === -1) {
6984 className = (className + ' ' + _this3.props.animatingClassName[isEnter ? 0 : 1]).trim();
6985 }
6986 return className;
6987 };
6988
6989 this.getTweenChild = function (child) {
6990 var props = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
6991
6992 var key = child.key;
6993 _this3.saveTweenTag[key] = __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_7__TweenOne__["a" /* default */], __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, props, {
6994 key: key,
6995 component: null
6996 }), child);
6997 return _this3.saveTweenTag[key];
6998 };
6999
7000 this.getCoverAnimation = function (child, i, type) {
7001 var animation = void 0;
7002 animation = type === 'leave' ? _this3.props.leave : _this3.props.enter;
7003 if (type === 'appear') {
7004 var appear = Object(__WEBPACK_IMPORTED_MODULE_8__util__["j" /* transformArguments */])(_this3.props.appear, child.key, i);
7005 animation = appear && _this3.props.enter || null;
7006 }
7007 var animate = Object(__WEBPACK_IMPORTED_MODULE_8__util__["j" /* transformArguments */])(animation, child.key, i);
7008 var onChange = _this3.onChange.bind(_this3, animate, child.key, type);
7009 var props = {
7010 key: child.key,
7011 animation: animate,
7012 onChange: onChange,
7013 resetStyle: _this3.props.resetStyle
7014 };
7015 if (_this3.keysToEnter.concat(_this3.keysToLeave).indexOf(child.key) >= 0 || !_this3.onEnterBool && animation) {
7016 if (!_this3.saveTweenTag[child.key]) {
7017 _this3.isTween[child.key] = type;
7018 }
7019 }
7020 var children = _this3.getTweenChild(child, props);
7021 return children;
7022 };
7023
7024 this.getChildrenToRender = function (children) {
7025 return children.map(function (child, i) {
7026 if (!child || !child.key) {
7027 return child;
7028 }
7029 var key = child.key;
7030
7031 if (_this3.keysToLeave.indexOf(key) >= 0) {
7032 return _this3.getCoverAnimation(child, i, 'leave');
7033 } else if ((_this3.keysToEnter.indexOf(key) >= 0 || _this3.isTween[key] && _this3.keysToLeave.indexOf(key) === -1) && !(_this3.isTween[key] === 'enter' && _this3.saveTweenTag[key])) {
7034 /**
7035 * 1. 在 key 在 enter 里。
7036 * 2. 出场未结束,触发进场, this.isTween[key] 为 leave, key 在 enter 里。
7037 * 3. 状态为 enter 且 tweenTag 里有值时,不执行重载动画属性,直接调用 tweenTag 里的。
7038 */
7039 return _this3.getCoverAnimation(child, i, 'enter');
7040 } else if (!_this3.onEnterBool) {
7041 return _this3.getCoverAnimation(child, i, 'appear');
7042 }
7043 return _this3.saveTweenTag[key];
7044 });
7045 };
7046
7047 this.reAnimQueue = function () {
7048 if (!Object.keys(_this3.isTween).length && _this3.animQueue.length) {
7049 _this3.changeChildren(_this3.animQueue[_this3.animQueue.length - 1], _this3.state.children);
7050 _this3.animQueue = [];
7051 }
7052 };
7053};
7054
7055TweenOneGroup.propTypes = {
7056 component: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.any,
7057 componentProps: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.object,
7058 children: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.any,
7059 style: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.object,
7060 appear: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.bool,
7061 enter: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.any,
7062 leave: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.any,
7063 animatingClassName: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.array,
7064 onEnd: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func,
7065 resetStyle: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.bool,
7066 exclusive: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.bool
7067};
7068
7069TweenOneGroup.defaultProps = {
7070 component: 'div',
7071 componentProps: {},
7072 appear: true,
7073 animatingClassName: ['tween-one-entering', 'tween-one-leaving'],
7074 enter: { x: 50, opacity: 0, type: 'from' },
7075 leave: { x: -50, opacity: 0 },
7076 onEnd: noop,
7077 resetStyle: true,
7078 exclusive: false
7079};
7080TweenOneGroup.isTweenOneGroup = true;
7081/* harmony default export */ __webpack_exports__["a"] = (TweenOneGroup);
7082
7083/***/ }),
7084/* 119 */
7085/***/ (function(module, __webpack_exports__, __webpack_require__) {
7086
7087"use strict";
7088/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(0);
7089/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__);
7090/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck__ = __webpack_require__(8);
7091/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck__);
7092/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_createClass__ = __webpack_require__(9);
7093/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_createClass___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_createClass__);
7094/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(10);
7095/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__);
7096/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__ = __webpack_require__(11);
7097/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__);
7098/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react__ = __webpack_require__(1);
7099/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_react__);
7100/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react_dom__ = __webpack_require__(26);
7101/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_react_dom__);
7102/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types__ = __webpack_require__(4);
7103/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_prop_types__);
7104/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_rc_tween_one_es_Tween__ = __webpack_require__(60);
7105/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_style_utils__ = __webpack_require__(29);
7106/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_style_utils___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_9_style_utils__);
7107/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__utils__ = __webpack_require__(17);
7108/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__anim__ = __webpack_require__(43);
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122var BgElement = function (_React$Component) {
7123 __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default()(BgElement, _React$Component);
7124
7125 function BgElement(props) {
7126 __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck___default()(this, BgElement);
7127
7128 var _this = __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default()(this, (BgElement.__proto__ || Object.getPrototypeOf(BgElement)).call(this, props));
7129
7130 _this.onScroll = function () {
7131 var scrollTop = Object(__WEBPACK_IMPORTED_MODULE_10__utils__["b" /* currentScrollTop */])();
7132 var domRect = _this.dom.parentNode.getBoundingClientRect();
7133 var offsetTop = domRect.top + scrollTop;
7134 var height = Math.max(domRect.height, Object(__WEBPACK_IMPORTED_MODULE_10__utils__["g" /* windowHeight */])());
7135 var elementShowHeight = scrollTop - offsetTop + height;
7136 var scale = elementShowHeight / (height + domRect.height);
7137 scale = scale || 0;
7138 scale = scale >= 1 ? 1 : scale;
7139 _this.tween.frame(scale * _this.scrollParallaxDuration);
7140 };
7141
7142 _this.onResize = function () {
7143 if (!_this.props.show) {
7144 return;
7145 }
7146 var domRect = _this.dom.getBoundingClientRect();
7147 var videoDomRect = _this.video.getBoundingClientRect();
7148 _this.videoLoad = true;
7149 var scale = void 0;
7150 var videoRect = {
7151 display: 'block',
7152 position: 'relative',
7153 top: 0,
7154 left: 0
7155 };
7156 if (domRect.width / domRect.height > videoDomRect.width / videoDomRect.height) {
7157 scale = domRect.width / videoDomRect.width;
7158 videoRect.width = domRect.width;
7159 videoRect.height = videoDomRect.height * scale;
7160 videoRect.top = -(videoRect.height - domRect.height) / 2;
7161 } else {
7162 scale = domRect.height / videoDomRect.height;
7163 videoRect.height = domRect.height;
7164 videoRect.width = videoDomRect.width * scale;
7165 videoRect.left = -(videoRect.width - domRect.width) / 2;
7166 }
7167
7168 Object.keys(videoRect).forEach(function (key) {
7169 _this.video.style[key] = Object(__WEBPACK_IMPORTED_MODULE_9_style_utils__["stylesToCss"])(key, videoRect[key]);
7170 });
7171 };
7172
7173 _this.videoLoadedData = function () {
7174 _this.onResize();
7175 if (window.addEventListener) {
7176 window.addEventListener('resize', _this.onResize);
7177 } else {
7178 window.attachEvent('onresize', _this.onResize);
7179 }
7180 };
7181
7182 _this.isVideo = Object(__WEBPACK_IMPORTED_MODULE_10__utils__["f" /* toArrayChildren */])(_this.props.children).some(function (item) {
7183 return item.type === 'video';
7184 });
7185 if (_this.isVideo) {
7186 // 如果是 video,删除 grid 系列,位置发生变化,重加载了 video;
7187 delete __WEBPACK_IMPORTED_MODULE_11__anim__["a" /* default */].grid;
7188 delete __WEBPACK_IMPORTED_MODULE_11__anim__["a" /* default */].gridBar;
7189 }
7190 if (_this.props.scrollParallax) {
7191 _this.scrollParallaxDuration = _this.props.scrollParallax.duration || 450;
7192 }
7193 _this.video = null;
7194 _this.videoLoad = false;
7195 return _this;
7196 }
7197
7198 __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_createClass___default()(BgElement, [{
7199 key: 'componentDidMount',
7200 value: function componentDidMount() {
7201 this.dom = __WEBPACK_IMPORTED_MODULE_6_react_dom___default.a.findDOMNode(this);
7202 if (!this.videoLoad) {
7203 if (this.video && this.props.videoResize) {
7204 this.video.onloadeddata = this.videoLoadedData;
7205 }
7206 }
7207 if (this.props.scrollParallax) {
7208 this.tween = new __WEBPACK_IMPORTED_MODULE_8_rc_tween_one_es_Tween__["a" /* default */](this.dom, [__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({
7209 ease: 'linear' }, this.props.scrollParallax)], { attr: 'style' });
7210 this.tween.frame(0);
7211 this.onScroll();
7212 if (window.addEventListener) {
7213 window.addEventListener('scroll', this.onScroll);
7214 } else {
7215 window.attachEvent('onscroll', this.onScroll);
7216 }
7217 }
7218 }
7219 }, {
7220 key: 'componentWillReceiveProps',
7221 value: function componentWillReceiveProps(nextProps) {
7222 var _this2 = this;
7223
7224 if (nextProps.show) {
7225 // 取 dom 在 render 之后;
7226 setTimeout(function () {
7227 if (_this2.video && _this2.props.videoResize && _this2.videoLoad) {
7228 _this2.onResize();
7229 }
7230 if (_this2.props.scrollParallax) {
7231 _this2.onScroll();
7232 }
7233 });
7234 }
7235 }
7236 }, {
7237 key: 'componentWillUnmount',
7238 value: function componentWillUnmount() {
7239 if (window.addEventListener) {
7240 window.removeEventListener('resize', this.onResize);
7241 window.removeEventListener('scroll', this.onScroll);
7242 } else {
7243 window.detachEvent('onresize', this.onResize);
7244 window.detachEvent('onscroll', this.onScroll);
7245 }
7246 }
7247 }, {
7248 key: 'render',
7249 value: function render() {
7250 var _this3 = this;
7251
7252 var props = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, this.props, this.props.componentProps);
7253 ['videoResize', 'scrollParallax', 'scrollParallaxDuration', 'show', 'component', 'componentProps'].forEach(function (key) {
7254 return delete props[key];
7255 });
7256 if (this.isVideo && this.props.videoResize) {
7257 var children = Object(__WEBPACK_IMPORTED_MODULE_10__utils__["f" /* toArrayChildren */])(props.children).map(function (item, i) {
7258 return __WEBPACK_IMPORTED_MODULE_5_react___default.a.cloneElement(item, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, item.props, { key: item.key || 'bg-video-' + i, ref: function ref(c) {
7259 _this3.video = c;
7260 if (typeof item.ref === 'function') {
7261 item.ref(c);
7262 }
7263 }
7264 }));
7265 });
7266 props.children = children.length === 1 ? children[0] : children;
7267 }
7268 return __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement(this.props.component, props);
7269 }
7270 }]);
7271
7272 return BgElement;
7273}(__WEBPACK_IMPORTED_MODULE_5_react___default.a.Component);
7274
7275/* harmony default export */ __webpack_exports__["a"] = (BgElement);
7276
7277
7278BgElement.propTypes = {
7279 className: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.string,
7280 style: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.object,
7281 children: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.any,
7282 component: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.any,
7283 videoResize: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool,
7284 scrollParallax: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.object,
7285 show: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool,
7286 componentProps: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.object
7287};
7288
7289BgElement.defaultProps = {
7290 component: 'div',
7291 videoResize: true,
7292 componentProps: {}
7293};
7294
7295BgElement.isBannerAnimBgElement = true;
7296
7297/***/ })
7298/******/ ])["default"];
7299});
7300//# sourceMappingURL=rc-banner-anim.js.map
\No newline at end of file