imatrix-ui 2.8.97-dw-tmp2 → 2.8.97-dw-tmp4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/super-ui.css +1 -0
- package/lib/super-ui.umd.min.js +36 -1
- package/package.json +1 -2
- package/src/i18n/i18n.js +1 -1
- package/src/i18n/langs/cn.js +1 -1
- package/src/i18n/langs/en.js +1 -1
- package/src/permission.js +1 -1
- package/src/plugins.js +4 -4
- package/src/store/modules/permission.js +5 -0
- package/src/styles/index.scss +2 -2
- package/src/utils/permissionAuth.js +6 -0
- package/src/utils/request.js +1 -1
- package/src/views/login/index.vue +1 -1
- package/lib/css/super-ui.common~46f24e9d.f712732a.css +0 -1
- package/lib/css/super-ui.common~60a56baa.e6f54088.css +0 -1
- package/lib/css/super-ui.common~691e02b5.3387eefb.css +0 -1
- package/lib/css/super-ui.common~e2e93592.e9ec19a9.css +0 -1
- package/lib/css/super-ui.umd.min~46f24e9d.f712732a.css +0 -1
- package/lib/css/super-ui.umd.min~60a56baa.e6f54088.css +0 -1
- package/lib/css/super-ui.umd.min~691e02b5.3387eefb.css +0 -1
- package/lib/css/super-ui.umd.min~e2e93592.e9ec19a9.css +0 -1
- package/lib/css/super-ui.umd~46f24e9d.f712732a.css +0 -1
- package/lib/css/super-ui.umd~60a56baa.e6f54088.css +0 -1
- package/lib/css/super-ui.umd~691e02b5.3387eefb.css +0 -1
- package/lib/css/super-ui.umd~e2e93592.e9ec19a9.css +0 -1
- package/lib/css/vendors~super-ui.common~253ae210.b57e4bfb.css +0 -1
- package/lib/css/vendors~super-ui.umd.min~253ae210.b57e4bfb.css +0 -1
- package/lib/css/vendors~super-ui.umd~253ae210.b57e4bfb.css +0 -1
- package/lib/css/yarn.tinymce~97d7b732.ea366551.css +0 -1
- package/lib/super-ui.common.super-ui.common~46f24e9d.js +0 -12446
- package/lib/super-ui.common.super-ui.common~60a56baa.js +0 -2774
- package/lib/super-ui.common.super-ui.common~691e02b5.js +0 -3062
- package/lib/super-ui.common.super-ui.common~970f9218.js +0 -3729
- package/lib/super-ui.common.super-ui.common~bd3594d6.js +0 -5264
- package/lib/super-ui.common.super-ui.common~e2e93592.js +0 -6945
- package/lib/super-ui.common.vendors~super-ui.common~253ae210.js +0 -3504
- package/lib/super-ui.common.yarn.async-validator~7864cd12.js +0 -1225
- package/lib/super-ui.common.yarn.core-js~2b13b260.js +0 -7542
- package/lib/super-ui.common.yarn.gcommon~c5c7b9b4.js +0 -11
- package/lib/super-ui.common.yarn.gcommon~cd278a5f.js +0 -4846
- package/lib/super-ui.common.yarn.resize-observer-polyfill~7370204d.js +0 -942
- package/lib/super-ui.common.yarn.sortablejs~f811d8fd.js +0 -3714
- package/lib/super-ui.common.yarn.tinymce~253ae210.js +0 -568
- package/lib/super-ui.common.yarn.tinymce~29bc5d46.js +0 -2125
- package/lib/super-ui.common.yarn.tinymce~35f50c21.js +0 -34090
- package/lib/super-ui.common.yarn.tinymce~8a52df3b.js +0 -30088
- package/lib/super-ui.common.yarn.tinymce~97d7b732.js +0 -31
- package/lib/super-ui.common.yarn.tinymce~b5d80f29.js +0 -7936
- package/lib/super-ui.common.yarn.tinymce~c1068939.js +0 -13346
- package/lib/super-ui.common.yarn.vue-i18n~02576867.js +0 -2179
- package/lib/super-ui.common.yarn.vue-virtual-scroll-list~bd67cfcd.js +0 -1069
- package/lib/super-ui.common.yarn.zxing~3446ce64.js +0 -11996
- package/lib/super-ui.common.yarn.zxing~61a1471b.js +0 -11202
- package/lib/super-ui.common.yarn.zxing~b49f3034.js +0 -3576
- package/lib/super-ui.common.yarn.zxing~fd3cc9f3.js +0 -2916
- package/lib/super-ui.umd.min.super-ui.umd.min~46f24e9d.js +0 -2
- package/lib/super-ui.umd.min.super-ui.umd.min~60a56baa.js +0 -2
- package/lib/super-ui.umd.min.super-ui.umd.min~691e02b5.js +0 -2
- package/lib/super-ui.umd.min.super-ui.umd.min~970f9218.js +0 -2
- package/lib/super-ui.umd.min.super-ui.umd.min~bd3594d6.js +0 -2
- package/lib/super-ui.umd.min.super-ui.umd.min~e2e93592.js +0 -2
- package/lib/super-ui.umd.min.vendors~super-ui.umd.min~253ae210.js +0 -24
- package/lib/super-ui.umd.min.yarn.async-validator~7864cd12.js +0 -2
- package/lib/super-ui.umd.min.yarn.core-js~2b13b260.js +0 -2
- package/lib/super-ui.umd.min.yarn.gcommon~c5c7b9b4.js +0 -2
- package/lib/super-ui.umd.min.yarn.gcommon~cd278a5f.js +0 -26
- package/lib/super-ui.umd.min.yarn.resize-observer-polyfill~7370204d.js +0 -2
- package/lib/super-ui.umd.min.yarn.sortablejs~f811d8fd.js +0 -8
- package/lib/super-ui.umd.min.yarn.tinymce~253ae210.js +0 -2
- package/lib/super-ui.umd.min.yarn.tinymce~29bc5d46.js +0 -2
- package/lib/super-ui.umd.min.yarn.tinymce~35f50c21.js +0 -2
- package/lib/super-ui.umd.min.yarn.tinymce~8a52df3b.js +0 -2
- package/lib/super-ui.umd.min.yarn.tinymce~97d7b732.js +0 -2
- package/lib/super-ui.umd.min.yarn.tinymce~b5d80f29.js +0 -2
- package/lib/super-ui.umd.min.yarn.tinymce~c1068939.js +0 -2
- package/lib/super-ui.umd.min.yarn.vue-i18n~02576867.js +0 -7
- package/lib/super-ui.umd.min.yarn.vue-virtual-scroll-list~bd67cfcd.js +0 -8
- package/lib/super-ui.umd.min.yarn.zxing~3446ce64.js +0 -2
- package/lib/super-ui.umd.min.yarn.zxing~61a1471b.js +0 -2
- package/lib/super-ui.umd.min.yarn.zxing~b49f3034.js +0 -2
- package/lib/super-ui.umd.min.yarn.zxing~fd3cc9f3.js +0 -2
- package/lib/super-ui.umd.super-ui.umd~46f24e9d.js +0 -12446
- package/lib/super-ui.umd.super-ui.umd~60a56baa.js +0 -2774
- package/lib/super-ui.umd.super-ui.umd~691e02b5.js +0 -3062
- package/lib/super-ui.umd.super-ui.umd~970f9218.js +0 -3739
- package/lib/super-ui.umd.super-ui.umd~bd3594d6.js +0 -5264
- package/lib/super-ui.umd.super-ui.umd~e2e93592.js +0 -6945
- package/lib/super-ui.umd.vendors~super-ui.umd~253ae210.js +0 -3504
- package/lib/super-ui.umd.yarn.async-validator~7864cd12.js +0 -1225
- package/lib/super-ui.umd.yarn.core-js~2b13b260.js +0 -7542
- package/lib/super-ui.umd.yarn.gcommon~c5c7b9b4.js +0 -11
- package/lib/super-ui.umd.yarn.gcommon~cd278a5f.js +0 -4846
- package/lib/super-ui.umd.yarn.resize-observer-polyfill~7370204d.js +0 -942
- package/lib/super-ui.umd.yarn.sortablejs~f811d8fd.js +0 -3714
- package/lib/super-ui.umd.yarn.tinymce~253ae210.js +0 -568
- package/lib/super-ui.umd.yarn.tinymce~29bc5d46.js +0 -2125
- package/lib/super-ui.umd.yarn.tinymce~35f50c21.js +0 -34090
- package/lib/super-ui.umd.yarn.tinymce~8a52df3b.js +0 -30088
- package/lib/super-ui.umd.yarn.tinymce~97d7b732.js +0 -31
- package/lib/super-ui.umd.yarn.tinymce~b5d80f29.js +0 -7936
- package/lib/super-ui.umd.yarn.tinymce~c1068939.js +0 -13346
- package/lib/super-ui.umd.yarn.vue-i18n~02576867.js +0 -2179
- package/lib/super-ui.umd.yarn.vue-virtual-scroll-list~bd67cfcd.js +0 -1069
- package/lib/super-ui.umd.yarn.zxing~3446ce64.js +0 -11996
- package/lib/super-ui.umd.yarn.zxing~61a1471b.js +0 -11202
- package/lib/super-ui.umd.yarn.zxing~b49f3034.js +0 -3576
- package/lib/super-ui.umd.yarn.zxing~fd3cc9f3.js +0 -2916
|
@@ -1,3504 +0,0 @@
|
|
|
1
|
-
((typeof self !== 'undefined' ? self : this)["webpackJsonpsuper_ui"] = (typeof self !== 'undefined' ? self : this)["webpackJsonpsuper_ui"] || []).push([[7],{
|
|
2
|
-
|
|
3
|
-
/***/ "0325":
|
|
4
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
5
|
-
|
|
6
|
-
module.exports = { "default": __webpack_require__("dc62"), __esModule: true };
|
|
7
|
-
|
|
8
|
-
/***/ }),
|
|
9
|
-
|
|
10
|
-
/***/ "0dbc":
|
|
11
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
12
|
-
|
|
13
|
-
module.exports = { "default": __webpack_require__("e1b7"), __esModule: true };
|
|
14
|
-
|
|
15
|
-
/***/ }),
|
|
16
|
-
|
|
17
|
-
/***/ "0e15":
|
|
18
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
19
|
-
|
|
20
|
-
/* eslint-disable no-undefined */
|
|
21
|
-
|
|
22
|
-
var throttle = __webpack_require__("597f");
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* Debounce execution of a function. Debouncing, unlike throttling,
|
|
26
|
-
* guarantees that a function is only executed a single time, either at the
|
|
27
|
-
* very beginning of a series of calls, or at the very end.
|
|
28
|
-
*
|
|
29
|
-
* @param {Number} delay A zero-or-greater delay in milliseconds. For event callbacks, values around 100 or 250 (or even higher) are most useful.
|
|
30
|
-
* @param {Boolean} [atBegin] Optional, defaults to false. If atBegin is false or unspecified, callback will only be executed `delay` milliseconds
|
|
31
|
-
* after the last debounced-function call. If atBegin is true, callback will be executed only at the first debounced-function call.
|
|
32
|
-
* (After the throttled-function has not been called for `delay` milliseconds, the internal counter is reset).
|
|
33
|
-
* @param {Function} callback A function to be executed after delay milliseconds. The `this` context and all arguments are passed through, as-is,
|
|
34
|
-
* to `callback` when the debounced-function is executed.
|
|
35
|
-
*
|
|
36
|
-
* @return {Function} A new, debounced function.
|
|
37
|
-
*/
|
|
38
|
-
module.exports = function ( delay, atBegin, callback ) {
|
|
39
|
-
return callback === undefined ? throttle(delay, atBegin, false) : throttle(delay, callback, atBegin !== false);
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
/***/ }),
|
|
44
|
-
|
|
45
|
-
/***/ "1098":
|
|
46
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
47
|
-
|
|
48
|
-
"use strict";
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
exports.__esModule = true;
|
|
52
|
-
|
|
53
|
-
var _iterator = __webpack_require__("17ed");
|
|
54
|
-
|
|
55
|
-
var _iterator2 = _interopRequireDefault(_iterator);
|
|
56
|
-
|
|
57
|
-
var _symbol = __webpack_require__("f893");
|
|
58
|
-
|
|
59
|
-
var _symbol2 = _interopRequireDefault(_symbol);
|
|
60
|
-
|
|
61
|
-
var _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; };
|
|
62
|
-
|
|
63
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
64
|
-
|
|
65
|
-
exports.default = typeof _symbol2.default === "function" && _typeof(_iterator2.default) === "symbol" ? function (obj) {
|
|
66
|
-
return typeof obj === "undefined" ? "undefined" : _typeof(obj);
|
|
67
|
-
} : function (obj) {
|
|
68
|
-
return obj && typeof _symbol2.default === "function" && obj.constructor === _symbol2.default && obj !== _symbol2.default.prototype ? "symbol" : typeof obj === "undefined" ? "undefined" : _typeof(obj);
|
|
69
|
-
};
|
|
70
|
-
|
|
71
|
-
/***/ }),
|
|
72
|
-
|
|
73
|
-
/***/ "1727":
|
|
74
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
75
|
-
|
|
76
|
-
module.exports = { "default": __webpack_require__("469f"), __esModule: true };
|
|
77
|
-
|
|
78
|
-
/***/ }),
|
|
79
|
-
|
|
80
|
-
/***/ "17ed":
|
|
81
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
82
|
-
|
|
83
|
-
module.exports = { "default": __webpack_require__("d8d6"), __esModule: true };
|
|
84
|
-
|
|
85
|
-
/***/ }),
|
|
86
|
-
|
|
87
|
-
/***/ "1907":
|
|
88
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
89
|
-
|
|
90
|
-
module.exports = { "default": __webpack_require__("8aae"), __esModule: true };
|
|
91
|
-
|
|
92
|
-
/***/ }),
|
|
93
|
-
|
|
94
|
-
/***/ "1da1":
|
|
95
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
96
|
-
|
|
97
|
-
"use strict";
|
|
98
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _asyncToGenerator; });
|
|
99
|
-
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
100
|
-
try {
|
|
101
|
-
var info = gen[key](arg);
|
|
102
|
-
var value = info.value;
|
|
103
|
-
} catch (error) {
|
|
104
|
-
reject(error);
|
|
105
|
-
return;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
if (info.done) {
|
|
109
|
-
resolve(value);
|
|
110
|
-
} else {
|
|
111
|
-
Promise.resolve(value).then(_next, _throw);
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
function _asyncToGenerator(fn) {
|
|
116
|
-
return function () {
|
|
117
|
-
var self = this,
|
|
118
|
-
args = arguments;
|
|
119
|
-
return new Promise(function (resolve, reject) {
|
|
120
|
-
var gen = fn.apply(self, args);
|
|
121
|
-
|
|
122
|
-
function _next(value) {
|
|
123
|
-
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
function _throw(err) {
|
|
127
|
-
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
_next(undefined);
|
|
131
|
-
});
|
|
132
|
-
};
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
/***/ }),
|
|
136
|
-
|
|
137
|
-
/***/ "24ee":
|
|
138
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
139
|
-
|
|
140
|
-
module.exports = { "default": __webpack_require__("fde4"), __esModule: true };
|
|
141
|
-
|
|
142
|
-
/***/ }),
|
|
143
|
-
|
|
144
|
-
/***/ "262e":
|
|
145
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
146
|
-
|
|
147
|
-
"use strict";
|
|
148
|
-
|
|
149
|
-
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
|
|
150
|
-
function _setPrototypeOf(o, p) {
|
|
151
|
-
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
|
152
|
-
o.__proto__ = p;
|
|
153
|
-
return o;
|
|
154
|
-
};
|
|
155
|
-
|
|
156
|
-
return _setPrototypeOf(o, p);
|
|
157
|
-
}
|
|
158
|
-
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js
|
|
159
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _inherits; });
|
|
160
|
-
|
|
161
|
-
function _inherits(subClass, superClass) {
|
|
162
|
-
if (typeof superClass !== "function" && superClass !== null) {
|
|
163
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
167
|
-
constructor: {
|
|
168
|
-
value: subClass,
|
|
169
|
-
writable: true,
|
|
170
|
-
configurable: true
|
|
171
|
-
}
|
|
172
|
-
});
|
|
173
|
-
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
/***/ }),
|
|
177
|
-
|
|
178
|
-
/***/ "2877":
|
|
179
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
180
|
-
|
|
181
|
-
"use strict";
|
|
182
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
|
|
183
|
-
/* globals __VUE_SSR_CONTEXT__ */
|
|
184
|
-
|
|
185
|
-
// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
|
|
186
|
-
// This module is a runtime utility for cleaner component module output and will
|
|
187
|
-
// be included in the final webpack user bundle.
|
|
188
|
-
|
|
189
|
-
function normalizeComponent (
|
|
190
|
-
scriptExports,
|
|
191
|
-
render,
|
|
192
|
-
staticRenderFns,
|
|
193
|
-
functionalTemplate,
|
|
194
|
-
injectStyles,
|
|
195
|
-
scopeId,
|
|
196
|
-
moduleIdentifier, /* server only */
|
|
197
|
-
shadowMode /* vue-cli only */
|
|
198
|
-
) {
|
|
199
|
-
// Vue.extend constructor export interop
|
|
200
|
-
var options = typeof scriptExports === 'function'
|
|
201
|
-
? scriptExports.options
|
|
202
|
-
: scriptExports
|
|
203
|
-
|
|
204
|
-
// render functions
|
|
205
|
-
if (render) {
|
|
206
|
-
options.render = render
|
|
207
|
-
options.staticRenderFns = staticRenderFns
|
|
208
|
-
options._compiled = true
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
// functional template
|
|
212
|
-
if (functionalTemplate) {
|
|
213
|
-
options.functional = true
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
// scopedId
|
|
217
|
-
if (scopeId) {
|
|
218
|
-
options._scopeId = 'data-v-' + scopeId
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
var hook
|
|
222
|
-
if (moduleIdentifier) { // server build
|
|
223
|
-
hook = function (context) {
|
|
224
|
-
// 2.3 injection
|
|
225
|
-
context =
|
|
226
|
-
context || // cached call
|
|
227
|
-
(this.$vnode && this.$vnode.ssrContext) || // stateful
|
|
228
|
-
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
|
|
229
|
-
// 2.2 with runInNewContext: true
|
|
230
|
-
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
|
231
|
-
context = __VUE_SSR_CONTEXT__
|
|
232
|
-
}
|
|
233
|
-
// inject component styles
|
|
234
|
-
if (injectStyles) {
|
|
235
|
-
injectStyles.call(this, context)
|
|
236
|
-
}
|
|
237
|
-
// register component module identifier for async chunk inferrence
|
|
238
|
-
if (context && context._registeredComponents) {
|
|
239
|
-
context._registeredComponents.add(moduleIdentifier)
|
|
240
|
-
}
|
|
241
|
-
}
|
|
242
|
-
// used by ssr in case component is cached and beforeCreate
|
|
243
|
-
// never gets called
|
|
244
|
-
options._ssrRegister = hook
|
|
245
|
-
} else if (injectStyles) {
|
|
246
|
-
hook = shadowMode
|
|
247
|
-
? function () {
|
|
248
|
-
injectStyles.call(
|
|
249
|
-
this,
|
|
250
|
-
(options.functional ? this.parent : this).$root.$options.shadowRoot
|
|
251
|
-
)
|
|
252
|
-
}
|
|
253
|
-
: injectStyles
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
if (hook) {
|
|
257
|
-
if (options.functional) {
|
|
258
|
-
// for template-only hot-reload because in that case the render fn doesn't
|
|
259
|
-
// go through the normalizer
|
|
260
|
-
options._injectStyles = hook
|
|
261
|
-
// register for functional component in vue file
|
|
262
|
-
var originalRender = options.render
|
|
263
|
-
options.render = function renderWithStyleInjection (h, context) {
|
|
264
|
-
hook.call(context)
|
|
265
|
-
return originalRender(h, context)
|
|
266
|
-
}
|
|
267
|
-
} else {
|
|
268
|
-
// inject component registration as beforeCreate hook
|
|
269
|
-
var existing = options.beforeCreate
|
|
270
|
-
options.beforeCreate = existing
|
|
271
|
-
? [].concat(existing, hook)
|
|
272
|
-
: [hook]
|
|
273
|
-
}
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
return {
|
|
277
|
-
exports: scriptExports,
|
|
278
|
-
options: options
|
|
279
|
-
}
|
|
280
|
-
}
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
/***/ }),
|
|
284
|
-
|
|
285
|
-
/***/ "2909":
|
|
286
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
287
|
-
|
|
288
|
-
"use strict";
|
|
289
|
-
|
|
290
|
-
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
|
291
|
-
function _arrayLikeToArray(arr, len) {
|
|
292
|
-
if (len == null || len > arr.length) len = arr.length;
|
|
293
|
-
|
|
294
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) {
|
|
295
|
-
arr2[i] = arr[i];
|
|
296
|
-
}
|
|
297
|
-
|
|
298
|
-
return arr2;
|
|
299
|
-
}
|
|
300
|
-
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
|
|
301
|
-
|
|
302
|
-
function _arrayWithoutHoles(arr) {
|
|
303
|
-
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
|
304
|
-
}
|
|
305
|
-
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArray.js
|
|
306
|
-
function _iterableToArray(iter) {
|
|
307
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
308
|
-
}
|
|
309
|
-
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
|
|
310
|
-
|
|
311
|
-
function _unsupportedIterableToArray(o, minLen) {
|
|
312
|
-
if (!o) return;
|
|
313
|
-
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
314
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
315
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
316
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
|
317
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
318
|
-
}
|
|
319
|
-
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
|
|
320
|
-
function _nonIterableSpread() {
|
|
321
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
322
|
-
}
|
|
323
|
-
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
|
|
324
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _toConsumableArray; });
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
function _toConsumableArray(arr) {
|
|
330
|
-
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
|
331
|
-
}
|
|
332
|
-
|
|
333
|
-
/***/ }),
|
|
334
|
-
|
|
335
|
-
/***/ "381a":
|
|
336
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
337
|
-
|
|
338
|
-
"use strict";
|
|
339
|
-
/**
|
|
340
|
-
* @copyright Maichong Software Ltd. 2016 http://maichong.it
|
|
341
|
-
* @date 2016-01-20
|
|
342
|
-
* @author Liang <liang@maichong.it>
|
|
343
|
-
*/
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
var numbers = '0123456789';
|
|
348
|
-
var letters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz';
|
|
349
|
-
var specials = '~!@#$%^*()_+-=[]{}|;:,./<>?';
|
|
350
|
-
|
|
351
|
-
/**
|
|
352
|
-
* Generate random string
|
|
353
|
-
* @param {Number} length
|
|
354
|
-
* @param {Object} options
|
|
355
|
-
*/
|
|
356
|
-
function random(length, options) {
|
|
357
|
-
length || (length = 8);
|
|
358
|
-
options || (options = {});
|
|
359
|
-
|
|
360
|
-
var chars = '';
|
|
361
|
-
var result = '';
|
|
362
|
-
|
|
363
|
-
if (options === true) {
|
|
364
|
-
chars = numbers + letters + specials;
|
|
365
|
-
} else if (typeof options == 'string') {
|
|
366
|
-
chars = options;
|
|
367
|
-
} else {
|
|
368
|
-
if (options.numbers !== false) {
|
|
369
|
-
chars += (typeof options.numbers == 'string') ? options.numbers : numbers;
|
|
370
|
-
}
|
|
371
|
-
|
|
372
|
-
if (options.letters !== false) {
|
|
373
|
-
chars += (typeof options.letters == 'string') ? options.letters : letters;
|
|
374
|
-
}
|
|
375
|
-
|
|
376
|
-
if (options.specials) {
|
|
377
|
-
chars += (typeof options.specials == 'string') ? options.specials : specials;
|
|
378
|
-
}
|
|
379
|
-
}
|
|
380
|
-
|
|
381
|
-
while (length > 0) {
|
|
382
|
-
length--;
|
|
383
|
-
result += chars[Math.floor(Math.random() * chars.length)];
|
|
384
|
-
}
|
|
385
|
-
return result;
|
|
386
|
-
}
|
|
387
|
-
|
|
388
|
-
module.exports = random.default = random;
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
/***/ }),
|
|
392
|
-
|
|
393
|
-
/***/ "3c4e":
|
|
394
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
395
|
-
|
|
396
|
-
"use strict";
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
var isMergeableObject = function isMergeableObject(value) {
|
|
400
|
-
return isNonNullObject(value)
|
|
401
|
-
&& !isSpecial(value)
|
|
402
|
-
};
|
|
403
|
-
|
|
404
|
-
function isNonNullObject(value) {
|
|
405
|
-
return !!value && typeof value === 'object'
|
|
406
|
-
}
|
|
407
|
-
|
|
408
|
-
function isSpecial(value) {
|
|
409
|
-
var stringValue = Object.prototype.toString.call(value);
|
|
410
|
-
|
|
411
|
-
return stringValue === '[object RegExp]'
|
|
412
|
-
|| stringValue === '[object Date]'
|
|
413
|
-
|| isReactElement(value)
|
|
414
|
-
}
|
|
415
|
-
|
|
416
|
-
// see https://github.com/facebook/react/blob/b5ac963fb791d1298e7f396236383bc955f916c1/src/isomorphic/classic/element/ReactElement.js#L21-L25
|
|
417
|
-
var canUseSymbol = typeof Symbol === 'function' && Symbol.for;
|
|
418
|
-
var REACT_ELEMENT_TYPE = canUseSymbol ? Symbol.for('react.element') : 0xeac7;
|
|
419
|
-
|
|
420
|
-
function isReactElement(value) {
|
|
421
|
-
return value.$$typeof === REACT_ELEMENT_TYPE
|
|
422
|
-
}
|
|
423
|
-
|
|
424
|
-
function emptyTarget(val) {
|
|
425
|
-
return Array.isArray(val) ? [] : {}
|
|
426
|
-
}
|
|
427
|
-
|
|
428
|
-
function cloneIfNecessary(value, optionsArgument) {
|
|
429
|
-
var clone = optionsArgument && optionsArgument.clone === true;
|
|
430
|
-
return (clone && isMergeableObject(value)) ? deepmerge(emptyTarget(value), value, optionsArgument) : value
|
|
431
|
-
}
|
|
432
|
-
|
|
433
|
-
function defaultArrayMerge(target, source, optionsArgument) {
|
|
434
|
-
var destination = target.slice();
|
|
435
|
-
source.forEach(function(e, i) {
|
|
436
|
-
if (typeof destination[i] === 'undefined') {
|
|
437
|
-
destination[i] = cloneIfNecessary(e, optionsArgument);
|
|
438
|
-
} else if (isMergeableObject(e)) {
|
|
439
|
-
destination[i] = deepmerge(target[i], e, optionsArgument);
|
|
440
|
-
} else if (target.indexOf(e) === -1) {
|
|
441
|
-
destination.push(cloneIfNecessary(e, optionsArgument));
|
|
442
|
-
}
|
|
443
|
-
});
|
|
444
|
-
return destination
|
|
445
|
-
}
|
|
446
|
-
|
|
447
|
-
function mergeObject(target, source, optionsArgument) {
|
|
448
|
-
var destination = {};
|
|
449
|
-
if (isMergeableObject(target)) {
|
|
450
|
-
Object.keys(target).forEach(function(key) {
|
|
451
|
-
destination[key] = cloneIfNecessary(target[key], optionsArgument);
|
|
452
|
-
});
|
|
453
|
-
}
|
|
454
|
-
Object.keys(source).forEach(function(key) {
|
|
455
|
-
if (!isMergeableObject(source[key]) || !target[key]) {
|
|
456
|
-
destination[key] = cloneIfNecessary(source[key], optionsArgument);
|
|
457
|
-
} else {
|
|
458
|
-
destination[key] = deepmerge(target[key], source[key], optionsArgument);
|
|
459
|
-
}
|
|
460
|
-
});
|
|
461
|
-
return destination
|
|
462
|
-
}
|
|
463
|
-
|
|
464
|
-
function deepmerge(target, source, optionsArgument) {
|
|
465
|
-
var sourceIsArray = Array.isArray(source);
|
|
466
|
-
var targetIsArray = Array.isArray(target);
|
|
467
|
-
var options = optionsArgument || { arrayMerge: defaultArrayMerge };
|
|
468
|
-
var sourceAndTargetTypesMatch = sourceIsArray === targetIsArray;
|
|
469
|
-
|
|
470
|
-
if (!sourceAndTargetTypesMatch) {
|
|
471
|
-
return cloneIfNecessary(source, optionsArgument)
|
|
472
|
-
} else if (sourceIsArray) {
|
|
473
|
-
var arrayMerge = options.arrayMerge || defaultArrayMerge;
|
|
474
|
-
return arrayMerge(target, source, optionsArgument)
|
|
475
|
-
} else {
|
|
476
|
-
return mergeObject(target, source, optionsArgument)
|
|
477
|
-
}
|
|
478
|
-
}
|
|
479
|
-
|
|
480
|
-
deepmerge.all = function deepmergeAll(array, optionsArgument) {
|
|
481
|
-
if (!Array.isArray(array) || array.length < 2) {
|
|
482
|
-
throw new Error('first argument should be an array with at least two elements')
|
|
483
|
-
}
|
|
484
|
-
|
|
485
|
-
// we are sure there are at least 2 values, so it is safe to have no initial value
|
|
486
|
-
return array.reduce(function(prev, next) {
|
|
487
|
-
return deepmerge(prev, next, optionsArgument)
|
|
488
|
-
})
|
|
489
|
-
};
|
|
490
|
-
|
|
491
|
-
var deepmerge_1 = deepmerge;
|
|
492
|
-
|
|
493
|
-
module.exports = deepmerge_1;
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
/***/ }),
|
|
497
|
-
|
|
498
|
-
/***/ "3f6b":
|
|
499
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
500
|
-
|
|
501
|
-
module.exports = { "default": __webpack_require__("51b6"), __esModule: true };
|
|
502
|
-
|
|
503
|
-
/***/ }),
|
|
504
|
-
|
|
505
|
-
/***/ "41b2":
|
|
506
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
507
|
-
|
|
508
|
-
"use strict";
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
exports.__esModule = true;
|
|
512
|
-
|
|
513
|
-
var _assign = __webpack_require__("3f6b");
|
|
514
|
-
|
|
515
|
-
var _assign2 = _interopRequireDefault(_assign);
|
|
516
|
-
|
|
517
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
518
|
-
|
|
519
|
-
exports.default = _assign2.default || function (target) {
|
|
520
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
521
|
-
var source = arguments[i];
|
|
522
|
-
|
|
523
|
-
for (var key in source) {
|
|
524
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
525
|
-
target[key] = source[key];
|
|
526
|
-
}
|
|
527
|
-
}
|
|
528
|
-
}
|
|
529
|
-
|
|
530
|
-
return target;
|
|
531
|
-
};
|
|
532
|
-
|
|
533
|
-
/***/ }),
|
|
534
|
-
|
|
535
|
-
/***/ "4849":
|
|
536
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
537
|
-
|
|
538
|
-
module.exports = { "default": __webpack_require__("454f"), __esModule: true };
|
|
539
|
-
|
|
540
|
-
/***/ }),
|
|
541
|
-
|
|
542
|
-
/***/ "5082":
|
|
543
|
-
/***/ (function(module, exports) {
|
|
544
|
-
|
|
545
|
-
//
|
|
546
|
-
// Default storage lookups, and clean object to prevent override of build-in
|
|
547
|
-
// properties.
|
|
548
|
-
//
|
|
549
|
-
var has = Object.prototype.hasOwnProperty;
|
|
550
|
-
var storage = {};
|
|
551
|
-
var clean = {};
|
|
552
|
-
|
|
553
|
-
/**
|
|
554
|
-
* Calculate the lenght of the storage object.
|
|
555
|
-
*
|
|
556
|
-
* @returns {Number} Lenght
|
|
557
|
-
* @private
|
|
558
|
-
*/
|
|
559
|
-
function length() {
|
|
560
|
-
var result = 0;
|
|
561
|
-
|
|
562
|
-
for (var key in storage) result++;
|
|
563
|
-
|
|
564
|
-
return result;
|
|
565
|
-
}
|
|
566
|
-
|
|
567
|
-
/**
|
|
568
|
-
* objStorage is sessionStorage/localStorage backed by an plain Object.
|
|
569
|
-
*
|
|
570
|
-
* @type {Object}
|
|
571
|
-
* @public
|
|
572
|
-
*/
|
|
573
|
-
var objStorage = module.exports = {
|
|
574
|
-
/**
|
|
575
|
-
* The total number items stored in the storage.
|
|
576
|
-
*
|
|
577
|
-
* @type {Number}
|
|
578
|
-
* @public
|
|
579
|
-
*/
|
|
580
|
-
length: length(),
|
|
581
|
-
|
|
582
|
-
/**
|
|
583
|
-
* Find an item in the storage.
|
|
584
|
-
*
|
|
585
|
-
* @param {String} key Name of the value we lookup.
|
|
586
|
-
* @returns {String|Null} Found item or null.
|
|
587
|
-
* @public
|
|
588
|
-
*/
|
|
589
|
-
getItem: function getItem(key) {
|
|
590
|
-
if (has.call(storage, key)) return storage[key];
|
|
591
|
-
return null;
|
|
592
|
-
},
|
|
593
|
-
|
|
594
|
-
/**
|
|
595
|
-
* Add a new item in the storage.
|
|
596
|
-
*
|
|
597
|
-
* @param {String} key Name under which we store the value.
|
|
598
|
-
* @param {String} value Value for the key.
|
|
599
|
-
* @returns {Undefined}
|
|
600
|
-
* @public
|
|
601
|
-
*/
|
|
602
|
-
setItem: function setItem(key, value) {
|
|
603
|
-
if (!(key in clean)) {
|
|
604
|
-
storage[key] = value;
|
|
605
|
-
}
|
|
606
|
-
|
|
607
|
-
objStorage.length = length();
|
|
608
|
-
},
|
|
609
|
-
|
|
610
|
-
/**
|
|
611
|
-
* Remove a single item from the storage.
|
|
612
|
-
*
|
|
613
|
-
* @param {String} key Name of the value we need to remove.
|
|
614
|
-
* @returns {Undefined} Stuff.
|
|
615
|
-
* @pubilc
|
|
616
|
-
*/
|
|
617
|
-
removeItem: function removeItem(key) {
|
|
618
|
-
delete storage[key];
|
|
619
|
-
|
|
620
|
-
objStorage.length = length();
|
|
621
|
-
},
|
|
622
|
-
|
|
623
|
-
/**
|
|
624
|
-
* Completely remove all items from the store.
|
|
625
|
-
*
|
|
626
|
-
* @returns {Undefined}
|
|
627
|
-
* @public
|
|
628
|
-
*/
|
|
629
|
-
clear: function clear() {
|
|
630
|
-
storage = {};
|
|
631
|
-
objStorage.length = 0;
|
|
632
|
-
},
|
|
633
|
-
|
|
634
|
-
/**
|
|
635
|
-
* Is this storage system supported in the current environment.
|
|
636
|
-
*
|
|
637
|
-
* @type {Boolean}
|
|
638
|
-
* @public
|
|
639
|
-
*/
|
|
640
|
-
supported: true
|
|
641
|
-
};
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
/***/ }),
|
|
645
|
-
|
|
646
|
-
/***/ "53ca":
|
|
647
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
648
|
-
|
|
649
|
-
"use strict";
|
|
650
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _typeof; });
|
|
651
|
-
function _typeof(obj) {
|
|
652
|
-
"@babel/helpers - typeof";
|
|
653
|
-
|
|
654
|
-
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
|
655
|
-
_typeof = function _typeof(obj) {
|
|
656
|
-
return typeof obj;
|
|
657
|
-
};
|
|
658
|
-
} else {
|
|
659
|
-
_typeof = function _typeof(obj) {
|
|
660
|
-
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
661
|
-
};
|
|
662
|
-
}
|
|
663
|
-
|
|
664
|
-
return _typeof(obj);
|
|
665
|
-
}
|
|
666
|
-
|
|
667
|
-
/***/ }),
|
|
668
|
-
|
|
669
|
-
/***/ "57ba":
|
|
670
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
671
|
-
|
|
672
|
-
"use strict";
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
exports.__esModule = true;
|
|
676
|
-
|
|
677
|
-
var _defineProperty = __webpack_require__("4849");
|
|
678
|
-
|
|
679
|
-
var _defineProperty2 = _interopRequireDefault(_defineProperty);
|
|
680
|
-
|
|
681
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
682
|
-
|
|
683
|
-
exports.default = function () {
|
|
684
|
-
function defineProperties(target, props) {
|
|
685
|
-
for (var i = 0; i < props.length; i++) {
|
|
686
|
-
var descriptor = props[i];
|
|
687
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
688
|
-
descriptor.configurable = true;
|
|
689
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
690
|
-
(0, _defineProperty2.default)(target, descriptor.key, descriptor);
|
|
691
|
-
}
|
|
692
|
-
}
|
|
693
|
-
|
|
694
|
-
return function (Constructor, protoProps, staticProps) {
|
|
695
|
-
if (protoProps) defineProperties(Constructor.prototype, protoProps);
|
|
696
|
-
if (staticProps) defineProperties(Constructor, staticProps);
|
|
697
|
-
return Constructor;
|
|
698
|
-
};
|
|
699
|
-
}();
|
|
700
|
-
|
|
701
|
-
/***/ }),
|
|
702
|
-
|
|
703
|
-
/***/ "597f":
|
|
704
|
-
/***/ (function(module, exports) {
|
|
705
|
-
|
|
706
|
-
/* eslint-disable no-undefined,no-param-reassign,no-shadow */
|
|
707
|
-
|
|
708
|
-
/**
|
|
709
|
-
* Throttle execution of a function. Especially useful for rate limiting
|
|
710
|
-
* execution of handlers on events like resize and scroll.
|
|
711
|
-
*
|
|
712
|
-
* @param {Number} delay A zero-or-greater delay in milliseconds. For event callbacks, values around 100 or 250 (or even higher) are most useful.
|
|
713
|
-
* @param {Boolean} [noTrailing] Optional, defaults to false. If noTrailing is true, callback will only execute every `delay` milliseconds while the
|
|
714
|
-
* throttled-function is being called. If noTrailing is false or unspecified, callback will be executed one final time
|
|
715
|
-
* after the last throttled-function call. (After the throttled-function has not been called for `delay` milliseconds,
|
|
716
|
-
* the internal counter is reset)
|
|
717
|
-
* @param {Function} callback A function to be executed after delay milliseconds. The `this` context and all arguments are passed through, as-is,
|
|
718
|
-
* to `callback` when the throttled-function is executed.
|
|
719
|
-
* @param {Boolean} [debounceMode] If `debounceMode` is true (at begin), schedule `clear` to execute after `delay` ms. If `debounceMode` is false (at end),
|
|
720
|
-
* schedule `callback` to execute after `delay` ms.
|
|
721
|
-
*
|
|
722
|
-
* @return {Function} A new, throttled, function.
|
|
723
|
-
*/
|
|
724
|
-
module.exports = function ( delay, noTrailing, callback, debounceMode ) {
|
|
725
|
-
|
|
726
|
-
// After wrapper has stopped being called, this timeout ensures that
|
|
727
|
-
// `callback` is executed at the proper times in `throttle` and `end`
|
|
728
|
-
// debounce modes.
|
|
729
|
-
var timeoutID;
|
|
730
|
-
|
|
731
|
-
// Keep track of the last time `callback` was executed.
|
|
732
|
-
var lastExec = 0;
|
|
733
|
-
|
|
734
|
-
// `noTrailing` defaults to falsy.
|
|
735
|
-
if ( typeof noTrailing !== 'boolean' ) {
|
|
736
|
-
debounceMode = callback;
|
|
737
|
-
callback = noTrailing;
|
|
738
|
-
noTrailing = undefined;
|
|
739
|
-
}
|
|
740
|
-
|
|
741
|
-
// The `wrapper` function encapsulates all of the throttling / debouncing
|
|
742
|
-
// functionality and when executed will limit the rate at which `callback`
|
|
743
|
-
// is executed.
|
|
744
|
-
function wrapper () {
|
|
745
|
-
|
|
746
|
-
var self = this;
|
|
747
|
-
var elapsed = Number(new Date()) - lastExec;
|
|
748
|
-
var args = arguments;
|
|
749
|
-
|
|
750
|
-
// Execute `callback` and update the `lastExec` timestamp.
|
|
751
|
-
function exec () {
|
|
752
|
-
lastExec = Number(new Date());
|
|
753
|
-
callback.apply(self, args);
|
|
754
|
-
}
|
|
755
|
-
|
|
756
|
-
// If `debounceMode` is true (at begin) this is used to clear the flag
|
|
757
|
-
// to allow future `callback` executions.
|
|
758
|
-
function clear () {
|
|
759
|
-
timeoutID = undefined;
|
|
760
|
-
}
|
|
761
|
-
|
|
762
|
-
if ( debounceMode && !timeoutID ) {
|
|
763
|
-
// Since `wrapper` is being called for the first time and
|
|
764
|
-
// `debounceMode` is true (at begin), execute `callback`.
|
|
765
|
-
exec();
|
|
766
|
-
}
|
|
767
|
-
|
|
768
|
-
// Clear any existing timeout.
|
|
769
|
-
if ( timeoutID ) {
|
|
770
|
-
clearTimeout(timeoutID);
|
|
771
|
-
}
|
|
772
|
-
|
|
773
|
-
if ( debounceMode === undefined && elapsed > delay ) {
|
|
774
|
-
// In throttle mode, if `delay` time has been exceeded, execute
|
|
775
|
-
// `callback`.
|
|
776
|
-
exec();
|
|
777
|
-
|
|
778
|
-
} else if ( noTrailing !== true ) {
|
|
779
|
-
// In trailing throttle mode, since `delay` time has not been
|
|
780
|
-
// exceeded, schedule `callback` to execute `delay` ms after most
|
|
781
|
-
// recent execution.
|
|
782
|
-
//
|
|
783
|
-
// If `debounceMode` is true (at begin), schedule `clear` to execute
|
|
784
|
-
// after `delay` ms.
|
|
785
|
-
//
|
|
786
|
-
// If `debounceMode` is false (at end), schedule `callback` to
|
|
787
|
-
// execute after `delay` ms.
|
|
788
|
-
timeoutID = setTimeout(debounceMode ? clear : exec, debounceMode === undefined ? delay - elapsed : delay);
|
|
789
|
-
}
|
|
790
|
-
|
|
791
|
-
}
|
|
792
|
-
|
|
793
|
-
// Return the wrapper function.
|
|
794
|
-
return wrapper;
|
|
795
|
-
|
|
796
|
-
};
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
/***/ }),
|
|
800
|
-
|
|
801
|
-
/***/ "633f":
|
|
802
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
803
|
-
|
|
804
|
-
module.exports = { "default": __webpack_require__("fa99"), __esModule: true };
|
|
805
|
-
|
|
806
|
-
/***/ }),
|
|
807
|
-
|
|
808
|
-
/***/ "7037":
|
|
809
|
-
/***/ (function(module, exports) {
|
|
810
|
-
|
|
811
|
-
function _typeof(obj) {
|
|
812
|
-
"@babel/helpers - typeof";
|
|
813
|
-
|
|
814
|
-
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
|
815
|
-
module.exports = _typeof = function _typeof(obj) {
|
|
816
|
-
return typeof obj;
|
|
817
|
-
};
|
|
818
|
-
|
|
819
|
-
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
820
|
-
} else {
|
|
821
|
-
module.exports = _typeof = function _typeof(obj) {
|
|
822
|
-
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
823
|
-
};
|
|
824
|
-
|
|
825
|
-
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
826
|
-
}
|
|
827
|
-
|
|
828
|
-
return _typeof(obj);
|
|
829
|
-
}
|
|
830
|
-
|
|
831
|
-
module.exports = _typeof;
|
|
832
|
-
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
833
|
-
|
|
834
|
-
/***/ }),
|
|
835
|
-
|
|
836
|
-
/***/ "746a":
|
|
837
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
838
|
-
|
|
839
|
-
"use strict";
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
var has = Object.prototype.hasOwnProperty
|
|
843
|
-
, qs = __webpack_require__("9c59")
|
|
844
|
-
, storage = {}
|
|
845
|
-
, prefix = '§';
|
|
846
|
-
|
|
847
|
-
/**
|
|
848
|
-
* Refresh the storage as other users might also be writing against it.
|
|
849
|
-
*
|
|
850
|
-
* @api private
|
|
851
|
-
*/
|
|
852
|
-
function update() {
|
|
853
|
-
if (!windowStorage.supported) return;
|
|
854
|
-
|
|
855
|
-
var data = window.name
|
|
856
|
-
, length = 0
|
|
857
|
-
, key;
|
|
858
|
-
|
|
859
|
-
storage = data.charAt(0) === prefix
|
|
860
|
-
? qs.parse(data.slice(1))
|
|
861
|
-
: {};
|
|
862
|
-
|
|
863
|
-
for (key in storage) {
|
|
864
|
-
if (has.call(storage, key)) length++;
|
|
865
|
-
}
|
|
866
|
-
|
|
867
|
-
windowStorage.length = length;
|
|
868
|
-
}
|
|
869
|
-
|
|
870
|
-
/**
|
|
871
|
-
* A DOM storage wrapper which abuses the window.name property to temporarily
|
|
872
|
-
* store values in the browser.
|
|
873
|
-
*
|
|
874
|
-
* @type {Object}
|
|
875
|
-
* @public
|
|
876
|
-
*/
|
|
877
|
-
var windowStorage = module.exports = {
|
|
878
|
-
/**
|
|
879
|
-
* The total number items stored in the storage.
|
|
880
|
-
*
|
|
881
|
-
* @type {Number}
|
|
882
|
-
* @public
|
|
883
|
-
*/
|
|
884
|
-
length: 0,
|
|
885
|
-
|
|
886
|
-
/**
|
|
887
|
-
* Find an item in the storage.
|
|
888
|
-
*
|
|
889
|
-
* @param {String} key Name of the value we lookup.
|
|
890
|
-
* @returns {String|Null} Found item or null.
|
|
891
|
-
* @api public
|
|
892
|
-
*/
|
|
893
|
-
getItem: function getItem(key) {
|
|
894
|
-
if (has.call(storage, key)) return storage[key];
|
|
895
|
-
return null;
|
|
896
|
-
},
|
|
897
|
-
|
|
898
|
-
/**
|
|
899
|
-
* Add a new item in the storage.
|
|
900
|
-
*
|
|
901
|
-
* @param {String} key Name under which we store the value.
|
|
902
|
-
* @param {String} value Value for the key.
|
|
903
|
-
* @returns {Undefined}
|
|
904
|
-
* @api public
|
|
905
|
-
*/
|
|
906
|
-
setItem: function setItem(key, value) {
|
|
907
|
-
storage[key] = value;
|
|
908
|
-
window.name = qs.stringify(storage, prefix);
|
|
909
|
-
|
|
910
|
-
windowStorage.length++;
|
|
911
|
-
},
|
|
912
|
-
|
|
913
|
-
/**
|
|
914
|
-
* Remove a single item from the storage.
|
|
915
|
-
*
|
|
916
|
-
* @param {String} key Name of the value we need to remove.
|
|
917
|
-
* @returns {Undefined}
|
|
918
|
-
* @api pubilc
|
|
919
|
-
*/
|
|
920
|
-
removeItem: function removeItem(key) {
|
|
921
|
-
delete storage[key];
|
|
922
|
-
window.name = qs.stringify(storage, prefix);
|
|
923
|
-
|
|
924
|
-
windowStorage.length--;
|
|
925
|
-
},
|
|
926
|
-
|
|
927
|
-
/**
|
|
928
|
-
* Completely remove all items from the store.
|
|
929
|
-
*
|
|
930
|
-
* @returns {Undefined}
|
|
931
|
-
* @api pubilc
|
|
932
|
-
*/
|
|
933
|
-
clear: function clear() {
|
|
934
|
-
storage = {};
|
|
935
|
-
window.name = '';
|
|
936
|
-
windowStorage.length = 0;
|
|
937
|
-
},
|
|
938
|
-
|
|
939
|
-
/**
|
|
940
|
-
* Is this storage system supported in the current environment.
|
|
941
|
-
*
|
|
942
|
-
* @type {Boolean}
|
|
943
|
-
* @public
|
|
944
|
-
*/
|
|
945
|
-
supported: (function supported() {
|
|
946
|
-
return 'object' === typeof window && 'string' === typeof window.name;
|
|
947
|
-
}())
|
|
948
|
-
};
|
|
949
|
-
|
|
950
|
-
//
|
|
951
|
-
// Make sure that we initialize the storage so it pre-fills the `.length`
|
|
952
|
-
//
|
|
953
|
-
update();
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
/***/ }),
|
|
957
|
-
|
|
958
|
-
/***/ "7b3e":
|
|
959
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
960
|
-
|
|
961
|
-
"use strict";
|
|
962
|
-
/**
|
|
963
|
-
* Copyright 2013-2015, Facebook, Inc.
|
|
964
|
-
* All rights reserved.
|
|
965
|
-
*
|
|
966
|
-
* This source code is licensed under the BSD-style license found in the
|
|
967
|
-
* LICENSE file in the root directory of this source tree. An additional grant
|
|
968
|
-
* of patent rights can be found in the PATENTS file in the same directory.
|
|
969
|
-
*
|
|
970
|
-
* @providesModule isEventSupported
|
|
971
|
-
*/
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
var ExecutionEnvironment = __webpack_require__("a3de");
|
|
976
|
-
|
|
977
|
-
var useHasFeature;
|
|
978
|
-
if (ExecutionEnvironment.canUseDOM) {
|
|
979
|
-
useHasFeature =
|
|
980
|
-
document.implementation &&
|
|
981
|
-
document.implementation.hasFeature &&
|
|
982
|
-
// always returns true in newer browsers as per the standard.
|
|
983
|
-
// @see http://dom.spec.whatwg.org/#dom-domimplementation-hasfeature
|
|
984
|
-
document.implementation.hasFeature('', '') !== true;
|
|
985
|
-
}
|
|
986
|
-
|
|
987
|
-
/**
|
|
988
|
-
* Checks if an event is supported in the current execution environment.
|
|
989
|
-
*
|
|
990
|
-
* NOTE: This will not work correctly for non-generic events such as `change`,
|
|
991
|
-
* `reset`, `load`, `error`, and `select`.
|
|
992
|
-
*
|
|
993
|
-
* Borrows from Modernizr.
|
|
994
|
-
*
|
|
995
|
-
* @param {string} eventNameSuffix Event name, e.g. "click".
|
|
996
|
-
* @param {?boolean} capture Check if the capture phase is supported.
|
|
997
|
-
* @return {boolean} True if the event is supported.
|
|
998
|
-
* @internal
|
|
999
|
-
* @license Modernizr 3.0.0pre (Custom Build) | MIT
|
|
1000
|
-
*/
|
|
1001
|
-
function isEventSupported(eventNameSuffix, capture) {
|
|
1002
|
-
if (!ExecutionEnvironment.canUseDOM ||
|
|
1003
|
-
capture && !('addEventListener' in document)) {
|
|
1004
|
-
return false;
|
|
1005
|
-
}
|
|
1006
|
-
|
|
1007
|
-
var eventName = 'on' + eventNameSuffix;
|
|
1008
|
-
var isSupported = eventName in document;
|
|
1009
|
-
|
|
1010
|
-
if (!isSupported) {
|
|
1011
|
-
var element = document.createElement('div');
|
|
1012
|
-
element.setAttribute(eventName, 'return;');
|
|
1013
|
-
isSupported = typeof element[eventName] === 'function';
|
|
1014
|
-
}
|
|
1015
|
-
|
|
1016
|
-
if (!isSupported && useHasFeature && eventNameSuffix === 'wheel') {
|
|
1017
|
-
// This is the only way to test support for the `wheel` event in IE9+.
|
|
1018
|
-
isSupported = document.implementation.hasFeature('Events.wheel', '3.0');
|
|
1019
|
-
}
|
|
1020
|
-
|
|
1021
|
-
return isSupported;
|
|
1022
|
-
}
|
|
1023
|
-
|
|
1024
|
-
module.exports = isEventSupported;
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
/***/ }),
|
|
1028
|
-
|
|
1029
|
-
/***/ "7e84":
|
|
1030
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1031
|
-
|
|
1032
|
-
"use strict";
|
|
1033
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _getPrototypeOf; });
|
|
1034
|
-
function _getPrototypeOf(o) {
|
|
1035
|
-
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
|
1036
|
-
return o.__proto__ || Object.getPrototypeOf(o);
|
|
1037
|
-
};
|
|
1038
|
-
return _getPrototypeOf(o);
|
|
1039
|
-
}
|
|
1040
|
-
|
|
1041
|
-
/***/ }),
|
|
1042
|
-
|
|
1043
|
-
/***/ "8034":
|
|
1044
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
1045
|
-
|
|
1046
|
-
module.exports = { "default": __webpack_require__("a21f"), __esModule: true };
|
|
1047
|
-
|
|
1048
|
-
/***/ }),
|
|
1049
|
-
|
|
1050
|
-
/***/ "8827":
|
|
1051
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
1052
|
-
|
|
1053
|
-
"use strict";
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
exports.__esModule = true;
|
|
1057
|
-
|
|
1058
|
-
exports.default = function (instance, Constructor) {
|
|
1059
|
-
if (!(instance instanceof Constructor)) {
|
|
1060
|
-
throw new TypeError("Cannot call a class as a function");
|
|
1061
|
-
}
|
|
1062
|
-
};
|
|
1063
|
-
|
|
1064
|
-
/***/ }),
|
|
1065
|
-
|
|
1066
|
-
/***/ "8eb7":
|
|
1067
|
-
/***/ (function(module, exports) {
|
|
1068
|
-
|
|
1069
|
-
/**
|
|
1070
|
-
* Copyright 2004-present Facebook. All Rights Reserved.
|
|
1071
|
-
*
|
|
1072
|
-
* @providesModule UserAgent_DEPRECATED
|
|
1073
|
-
*/
|
|
1074
|
-
|
|
1075
|
-
/**
|
|
1076
|
-
* Provides entirely client-side User Agent and OS detection. You should prefer
|
|
1077
|
-
* the non-deprecated UserAgent module when possible, which exposes our
|
|
1078
|
-
* authoritative server-side PHP-based detection to the client.
|
|
1079
|
-
*
|
|
1080
|
-
* Usage is straightforward:
|
|
1081
|
-
*
|
|
1082
|
-
* if (UserAgent_DEPRECATED.ie()) {
|
|
1083
|
-
* // IE
|
|
1084
|
-
* }
|
|
1085
|
-
*
|
|
1086
|
-
* You can also do version checks:
|
|
1087
|
-
*
|
|
1088
|
-
* if (UserAgent_DEPRECATED.ie() >= 7) {
|
|
1089
|
-
* // IE7 or better
|
|
1090
|
-
* }
|
|
1091
|
-
*
|
|
1092
|
-
* The browser functions will return NaN if the browser does not match, so
|
|
1093
|
-
* you can also do version compares the other way:
|
|
1094
|
-
*
|
|
1095
|
-
* if (UserAgent_DEPRECATED.ie() < 7) {
|
|
1096
|
-
* // IE6 or worse
|
|
1097
|
-
* }
|
|
1098
|
-
*
|
|
1099
|
-
* Note that the version is a float and may include a minor version number,
|
|
1100
|
-
* so you should always use range operators to perform comparisons, not
|
|
1101
|
-
* strict equality.
|
|
1102
|
-
*
|
|
1103
|
-
* **Note:** You should **strongly** prefer capability detection to browser
|
|
1104
|
-
* version detection where it's reasonable:
|
|
1105
|
-
*
|
|
1106
|
-
* http://www.quirksmode.org/js/support.html
|
|
1107
|
-
*
|
|
1108
|
-
* Further, we have a large number of mature wrapper functions and classes
|
|
1109
|
-
* which abstract away many browser irregularities. Check the documentation,
|
|
1110
|
-
* grep for things, or ask on javascript@lists.facebook.com before writing yet
|
|
1111
|
-
* another copy of "event || window.event".
|
|
1112
|
-
*
|
|
1113
|
-
*/
|
|
1114
|
-
|
|
1115
|
-
var _populated = false;
|
|
1116
|
-
|
|
1117
|
-
// Browsers
|
|
1118
|
-
var _ie, _firefox, _opera, _webkit, _chrome;
|
|
1119
|
-
|
|
1120
|
-
// Actual IE browser for compatibility mode
|
|
1121
|
-
var _ie_real_version;
|
|
1122
|
-
|
|
1123
|
-
// Platforms
|
|
1124
|
-
var _osx, _windows, _linux, _android;
|
|
1125
|
-
|
|
1126
|
-
// Architectures
|
|
1127
|
-
var _win64;
|
|
1128
|
-
|
|
1129
|
-
// Devices
|
|
1130
|
-
var _iphone, _ipad, _native;
|
|
1131
|
-
|
|
1132
|
-
var _mobile;
|
|
1133
|
-
|
|
1134
|
-
function _populate() {
|
|
1135
|
-
if (_populated) {
|
|
1136
|
-
return;
|
|
1137
|
-
}
|
|
1138
|
-
|
|
1139
|
-
_populated = true;
|
|
1140
|
-
|
|
1141
|
-
// To work around buggy JS libraries that can't handle multi-digit
|
|
1142
|
-
// version numbers, Opera 10's user agent string claims it's Opera
|
|
1143
|
-
// 9, then later includes a Version/X.Y field:
|
|
1144
|
-
//
|
|
1145
|
-
// Opera/9.80 (foo) Presto/2.2.15 Version/10.10
|
|
1146
|
-
var uas = navigator.userAgent;
|
|
1147
|
-
var agent = /(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(uas);
|
|
1148
|
-
var os = /(Mac OS X)|(Windows)|(Linux)/.exec(uas);
|
|
1149
|
-
|
|
1150
|
-
_iphone = /\b(iPhone|iP[ao]d)/.exec(uas);
|
|
1151
|
-
_ipad = /\b(iP[ao]d)/.exec(uas);
|
|
1152
|
-
_android = /Android/i.exec(uas);
|
|
1153
|
-
_native = /FBAN\/\w+;/i.exec(uas);
|
|
1154
|
-
_mobile = /Mobile/i.exec(uas);
|
|
1155
|
-
|
|
1156
|
-
// Note that the IE team blog would have you believe you should be checking
|
|
1157
|
-
// for 'Win64; x64'. But MSDN then reveals that you can actually be coming
|
|
1158
|
-
// from either x64 or ia64; so ultimately, you should just check for Win64
|
|
1159
|
-
// as in indicator of whether you're in 64-bit IE. 32-bit IE on 64-bit
|
|
1160
|
-
// Windows will send 'WOW64' instead.
|
|
1161
|
-
_win64 = !!(/Win64/.exec(uas));
|
|
1162
|
-
|
|
1163
|
-
if (agent) {
|
|
1164
|
-
_ie = agent[1] ? parseFloat(agent[1]) : (
|
|
1165
|
-
agent[5] ? parseFloat(agent[5]) : NaN);
|
|
1166
|
-
// IE compatibility mode
|
|
1167
|
-
if (_ie && document && document.documentMode) {
|
|
1168
|
-
_ie = document.documentMode;
|
|
1169
|
-
}
|
|
1170
|
-
// grab the "true" ie version from the trident token if available
|
|
1171
|
-
var trident = /(?:Trident\/(\d+.\d+))/.exec(uas);
|
|
1172
|
-
_ie_real_version = trident ? parseFloat(trident[1]) + 4 : _ie;
|
|
1173
|
-
|
|
1174
|
-
_firefox = agent[2] ? parseFloat(agent[2]) : NaN;
|
|
1175
|
-
_opera = agent[3] ? parseFloat(agent[3]) : NaN;
|
|
1176
|
-
_webkit = agent[4] ? parseFloat(agent[4]) : NaN;
|
|
1177
|
-
if (_webkit) {
|
|
1178
|
-
// We do not add the regexp to the above test, because it will always
|
|
1179
|
-
// match 'safari' only since 'AppleWebKit' appears before 'Chrome' in
|
|
1180
|
-
// the userAgent string.
|
|
1181
|
-
agent = /(?:Chrome\/(\d+\.\d+))/.exec(uas);
|
|
1182
|
-
_chrome = agent && agent[1] ? parseFloat(agent[1]) : NaN;
|
|
1183
|
-
} else {
|
|
1184
|
-
_chrome = NaN;
|
|
1185
|
-
}
|
|
1186
|
-
} else {
|
|
1187
|
-
_ie = _firefox = _opera = _chrome = _webkit = NaN;
|
|
1188
|
-
}
|
|
1189
|
-
|
|
1190
|
-
if (os) {
|
|
1191
|
-
if (os[1]) {
|
|
1192
|
-
// Detect OS X version. If no version number matches, set _osx to true.
|
|
1193
|
-
// Version examples: 10, 10_6_1, 10.7
|
|
1194
|
-
// Parses version number as a float, taking only first two sets of
|
|
1195
|
-
// digits. If only one set of digits is found, returns just the major
|
|
1196
|
-
// version number.
|
|
1197
|
-
var ver = /(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(uas);
|
|
1198
|
-
|
|
1199
|
-
_osx = ver ? parseFloat(ver[1].replace('_', '.')) : true;
|
|
1200
|
-
} else {
|
|
1201
|
-
_osx = false;
|
|
1202
|
-
}
|
|
1203
|
-
_windows = !!os[2];
|
|
1204
|
-
_linux = !!os[3];
|
|
1205
|
-
} else {
|
|
1206
|
-
_osx = _windows = _linux = false;
|
|
1207
|
-
}
|
|
1208
|
-
}
|
|
1209
|
-
|
|
1210
|
-
var UserAgent_DEPRECATED = {
|
|
1211
|
-
|
|
1212
|
-
/**
|
|
1213
|
-
* Check if the UA is Internet Explorer.
|
|
1214
|
-
*
|
|
1215
|
-
*
|
|
1216
|
-
* @return float|NaN Version number (if match) or NaN.
|
|
1217
|
-
*/
|
|
1218
|
-
ie: function() {
|
|
1219
|
-
return _populate() || _ie;
|
|
1220
|
-
},
|
|
1221
|
-
|
|
1222
|
-
/**
|
|
1223
|
-
* Check if we're in Internet Explorer compatibility mode.
|
|
1224
|
-
*
|
|
1225
|
-
* @return bool true if in compatibility mode, false if
|
|
1226
|
-
* not compatibility mode or not ie
|
|
1227
|
-
*/
|
|
1228
|
-
ieCompatibilityMode: function() {
|
|
1229
|
-
return _populate() || (_ie_real_version > _ie);
|
|
1230
|
-
},
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
/**
|
|
1234
|
-
* Whether the browser is 64-bit IE. Really, this is kind of weak sauce; we
|
|
1235
|
-
* only need this because Skype can't handle 64-bit IE yet. We need to remove
|
|
1236
|
-
* this when we don't need it -- tracked by #601957.
|
|
1237
|
-
*/
|
|
1238
|
-
ie64: function() {
|
|
1239
|
-
return UserAgent_DEPRECATED.ie() && _win64;
|
|
1240
|
-
},
|
|
1241
|
-
|
|
1242
|
-
/**
|
|
1243
|
-
* Check if the UA is Firefox.
|
|
1244
|
-
*
|
|
1245
|
-
*
|
|
1246
|
-
* @return float|NaN Version number (if match) or NaN.
|
|
1247
|
-
*/
|
|
1248
|
-
firefox: function() {
|
|
1249
|
-
return _populate() || _firefox;
|
|
1250
|
-
},
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
/**
|
|
1254
|
-
* Check if the UA is Opera.
|
|
1255
|
-
*
|
|
1256
|
-
*
|
|
1257
|
-
* @return float|NaN Version number (if match) or NaN.
|
|
1258
|
-
*/
|
|
1259
|
-
opera: function() {
|
|
1260
|
-
return _populate() || _opera;
|
|
1261
|
-
},
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
/**
|
|
1265
|
-
* Check if the UA is WebKit.
|
|
1266
|
-
*
|
|
1267
|
-
*
|
|
1268
|
-
* @return float|NaN Version number (if match) or NaN.
|
|
1269
|
-
*/
|
|
1270
|
-
webkit: function() {
|
|
1271
|
-
return _populate() || _webkit;
|
|
1272
|
-
},
|
|
1273
|
-
|
|
1274
|
-
/**
|
|
1275
|
-
* For Push
|
|
1276
|
-
* WILL BE REMOVED VERY SOON. Use UserAgent_DEPRECATED.webkit
|
|
1277
|
-
*/
|
|
1278
|
-
safari: function() {
|
|
1279
|
-
return UserAgent_DEPRECATED.webkit();
|
|
1280
|
-
},
|
|
1281
|
-
|
|
1282
|
-
/**
|
|
1283
|
-
* Check if the UA is a Chrome browser.
|
|
1284
|
-
*
|
|
1285
|
-
*
|
|
1286
|
-
* @return float|NaN Version number (if match) or NaN.
|
|
1287
|
-
*/
|
|
1288
|
-
chrome : function() {
|
|
1289
|
-
return _populate() || _chrome;
|
|
1290
|
-
},
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
/**
|
|
1294
|
-
* Check if the user is running Windows.
|
|
1295
|
-
*
|
|
1296
|
-
* @return bool `true' if the user's OS is Windows.
|
|
1297
|
-
*/
|
|
1298
|
-
windows: function() {
|
|
1299
|
-
return _populate() || _windows;
|
|
1300
|
-
},
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
/**
|
|
1304
|
-
* Check if the user is running Mac OS X.
|
|
1305
|
-
*
|
|
1306
|
-
* @return float|bool Returns a float if a version number is detected,
|
|
1307
|
-
* otherwise true/false.
|
|
1308
|
-
*/
|
|
1309
|
-
osx: function() {
|
|
1310
|
-
return _populate() || _osx;
|
|
1311
|
-
},
|
|
1312
|
-
|
|
1313
|
-
/**
|
|
1314
|
-
* Check if the user is running Linux.
|
|
1315
|
-
*
|
|
1316
|
-
* @return bool `true' if the user's OS is some flavor of Linux.
|
|
1317
|
-
*/
|
|
1318
|
-
linux: function() {
|
|
1319
|
-
return _populate() || _linux;
|
|
1320
|
-
},
|
|
1321
|
-
|
|
1322
|
-
/**
|
|
1323
|
-
* Check if the user is running on an iPhone or iPod platform.
|
|
1324
|
-
*
|
|
1325
|
-
* @return bool `true' if the user is running some flavor of the
|
|
1326
|
-
* iPhone OS.
|
|
1327
|
-
*/
|
|
1328
|
-
iphone: function() {
|
|
1329
|
-
return _populate() || _iphone;
|
|
1330
|
-
},
|
|
1331
|
-
|
|
1332
|
-
mobile: function() {
|
|
1333
|
-
return _populate() || (_iphone || _ipad || _android || _mobile);
|
|
1334
|
-
},
|
|
1335
|
-
|
|
1336
|
-
nativeApp: function() {
|
|
1337
|
-
// webviews inside of the native apps
|
|
1338
|
-
return _populate() || _native;
|
|
1339
|
-
},
|
|
1340
|
-
|
|
1341
|
-
android: function() {
|
|
1342
|
-
return _populate() || _android;
|
|
1343
|
-
},
|
|
1344
|
-
|
|
1345
|
-
ipad: function() {
|
|
1346
|
-
return _populate() || _ipad;
|
|
1347
|
-
}
|
|
1348
|
-
};
|
|
1349
|
-
|
|
1350
|
-
module.exports = UserAgent_DEPRECATED;
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
/***/ }),
|
|
1354
|
-
|
|
1355
|
-
/***/ "92fa":
|
|
1356
|
-
/***/ (function(module, exports) {
|
|
1357
|
-
|
|
1358
|
-
var nestRE = /^(attrs|props|on|nativeOn|class|style|hook)$/
|
|
1359
|
-
|
|
1360
|
-
module.exports = function mergeJSXProps (objs) {
|
|
1361
|
-
return objs.reduce(function (a, b) {
|
|
1362
|
-
var aa, bb, key, nestedKey, temp
|
|
1363
|
-
for (key in b) {
|
|
1364
|
-
aa = a[key]
|
|
1365
|
-
bb = b[key]
|
|
1366
|
-
if (aa && nestRE.test(key)) {
|
|
1367
|
-
// normalize class
|
|
1368
|
-
if (key === 'class') {
|
|
1369
|
-
if (typeof aa === 'string') {
|
|
1370
|
-
temp = aa
|
|
1371
|
-
a[key] = aa = {}
|
|
1372
|
-
aa[temp] = true
|
|
1373
|
-
}
|
|
1374
|
-
if (typeof bb === 'string') {
|
|
1375
|
-
temp = bb
|
|
1376
|
-
b[key] = bb = {}
|
|
1377
|
-
bb[temp] = true
|
|
1378
|
-
}
|
|
1379
|
-
}
|
|
1380
|
-
if (key === 'on' || key === 'nativeOn' || key === 'hook') {
|
|
1381
|
-
// merge functions
|
|
1382
|
-
for (nestedKey in bb) {
|
|
1383
|
-
aa[nestedKey] = mergeFn(aa[nestedKey], bb[nestedKey])
|
|
1384
|
-
}
|
|
1385
|
-
} else if (Array.isArray(aa)) {
|
|
1386
|
-
a[key] = aa.concat(bb)
|
|
1387
|
-
} else if (Array.isArray(bb)) {
|
|
1388
|
-
a[key] = [aa].concat(bb)
|
|
1389
|
-
} else {
|
|
1390
|
-
for (nestedKey in bb) {
|
|
1391
|
-
aa[nestedKey] = bb[nestedKey]
|
|
1392
|
-
}
|
|
1393
|
-
}
|
|
1394
|
-
} else {
|
|
1395
|
-
a[key] = b[key]
|
|
1396
|
-
}
|
|
1397
|
-
}
|
|
1398
|
-
return a
|
|
1399
|
-
}, {})
|
|
1400
|
-
}
|
|
1401
|
-
|
|
1402
|
-
function mergeFn (a, b) {
|
|
1403
|
-
return function () {
|
|
1404
|
-
a && a.apply(this, arguments)
|
|
1405
|
-
b && b.apply(this, arguments)
|
|
1406
|
-
}
|
|
1407
|
-
}
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
/***/ }),
|
|
1411
|
-
|
|
1412
|
-
/***/ "9619":
|
|
1413
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
1414
|
-
|
|
1415
|
-
var throttle = __webpack_require__("597f");
|
|
1416
|
-
var debounce = __webpack_require__("0e15");
|
|
1417
|
-
|
|
1418
|
-
module.exports = {
|
|
1419
|
-
throttle: throttle,
|
|
1420
|
-
debounce: debounce
|
|
1421
|
-
};
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
/***/ }),
|
|
1425
|
-
|
|
1426
|
-
/***/ "96cf":
|
|
1427
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
1428
|
-
|
|
1429
|
-
/**
|
|
1430
|
-
* Copyright (c) 2014-present, Facebook, Inc.
|
|
1431
|
-
*
|
|
1432
|
-
* This source code is licensed under the MIT license found in the
|
|
1433
|
-
* LICENSE file in the root directory of this source tree.
|
|
1434
|
-
*/
|
|
1435
|
-
|
|
1436
|
-
var runtime = (function (exports) {
|
|
1437
|
-
"use strict";
|
|
1438
|
-
|
|
1439
|
-
var Op = Object.prototype;
|
|
1440
|
-
var hasOwn = Op.hasOwnProperty;
|
|
1441
|
-
var undefined; // More compressible than void 0.
|
|
1442
|
-
var $Symbol = typeof Symbol === "function" ? Symbol : {};
|
|
1443
|
-
var iteratorSymbol = $Symbol.iterator || "@@iterator";
|
|
1444
|
-
var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator";
|
|
1445
|
-
var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
|
|
1446
|
-
|
|
1447
|
-
function define(obj, key, value) {
|
|
1448
|
-
Object.defineProperty(obj, key, {
|
|
1449
|
-
value: value,
|
|
1450
|
-
enumerable: true,
|
|
1451
|
-
configurable: true,
|
|
1452
|
-
writable: true
|
|
1453
|
-
});
|
|
1454
|
-
return obj[key];
|
|
1455
|
-
}
|
|
1456
|
-
try {
|
|
1457
|
-
// IE 8 has a broken Object.defineProperty that only works on DOM objects.
|
|
1458
|
-
define({}, "");
|
|
1459
|
-
} catch (err) {
|
|
1460
|
-
define = function(obj, key, value) {
|
|
1461
|
-
return obj[key] = value;
|
|
1462
|
-
};
|
|
1463
|
-
}
|
|
1464
|
-
|
|
1465
|
-
function wrap(innerFn, outerFn, self, tryLocsList) {
|
|
1466
|
-
// If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.
|
|
1467
|
-
var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;
|
|
1468
|
-
var generator = Object.create(protoGenerator.prototype);
|
|
1469
|
-
var context = new Context(tryLocsList || []);
|
|
1470
|
-
|
|
1471
|
-
// The ._invoke method unifies the implementations of the .next,
|
|
1472
|
-
// .throw, and .return methods.
|
|
1473
|
-
generator._invoke = makeInvokeMethod(innerFn, self, context);
|
|
1474
|
-
|
|
1475
|
-
return generator;
|
|
1476
|
-
}
|
|
1477
|
-
exports.wrap = wrap;
|
|
1478
|
-
|
|
1479
|
-
// Try/catch helper to minimize deoptimizations. Returns a completion
|
|
1480
|
-
// record like context.tryEntries[i].completion. This interface could
|
|
1481
|
-
// have been (and was previously) designed to take a closure to be
|
|
1482
|
-
// invoked without arguments, but in all the cases we care about we
|
|
1483
|
-
// already have an existing method we want to call, so there's no need
|
|
1484
|
-
// to create a new function object. We can even get away with assuming
|
|
1485
|
-
// the method takes exactly one argument, since that happens to be true
|
|
1486
|
-
// in every case, so we don't have to touch the arguments object. The
|
|
1487
|
-
// only additional allocation required is the completion record, which
|
|
1488
|
-
// has a stable shape and so hopefully should be cheap to allocate.
|
|
1489
|
-
function tryCatch(fn, obj, arg) {
|
|
1490
|
-
try {
|
|
1491
|
-
return { type: "normal", arg: fn.call(obj, arg) };
|
|
1492
|
-
} catch (err) {
|
|
1493
|
-
return { type: "throw", arg: err };
|
|
1494
|
-
}
|
|
1495
|
-
}
|
|
1496
|
-
|
|
1497
|
-
var GenStateSuspendedStart = "suspendedStart";
|
|
1498
|
-
var GenStateSuspendedYield = "suspendedYield";
|
|
1499
|
-
var GenStateExecuting = "executing";
|
|
1500
|
-
var GenStateCompleted = "completed";
|
|
1501
|
-
|
|
1502
|
-
// Returning this object from the innerFn has the same effect as
|
|
1503
|
-
// breaking out of the dispatch switch statement.
|
|
1504
|
-
var ContinueSentinel = {};
|
|
1505
|
-
|
|
1506
|
-
// Dummy constructor functions that we use as the .constructor and
|
|
1507
|
-
// .constructor.prototype properties for functions that return Generator
|
|
1508
|
-
// objects. For full spec compliance, you may wish to configure your
|
|
1509
|
-
// minifier not to mangle the names of these two functions.
|
|
1510
|
-
function Generator() {}
|
|
1511
|
-
function GeneratorFunction() {}
|
|
1512
|
-
function GeneratorFunctionPrototype() {}
|
|
1513
|
-
|
|
1514
|
-
// This is a polyfill for %IteratorPrototype% for environments that
|
|
1515
|
-
// don't natively support it.
|
|
1516
|
-
var IteratorPrototype = {};
|
|
1517
|
-
define(IteratorPrototype, iteratorSymbol, function () {
|
|
1518
|
-
return this;
|
|
1519
|
-
});
|
|
1520
|
-
|
|
1521
|
-
var getProto = Object.getPrototypeOf;
|
|
1522
|
-
var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
|
|
1523
|
-
if (NativeIteratorPrototype &&
|
|
1524
|
-
NativeIteratorPrototype !== Op &&
|
|
1525
|
-
hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {
|
|
1526
|
-
// This environment has a native %IteratorPrototype%; use it instead
|
|
1527
|
-
// of the polyfill.
|
|
1528
|
-
IteratorPrototype = NativeIteratorPrototype;
|
|
1529
|
-
}
|
|
1530
|
-
|
|
1531
|
-
var Gp = GeneratorFunctionPrototype.prototype =
|
|
1532
|
-
Generator.prototype = Object.create(IteratorPrototype);
|
|
1533
|
-
GeneratorFunction.prototype = GeneratorFunctionPrototype;
|
|
1534
|
-
define(Gp, "constructor", GeneratorFunctionPrototype);
|
|
1535
|
-
define(GeneratorFunctionPrototype, "constructor", GeneratorFunction);
|
|
1536
|
-
GeneratorFunction.displayName = define(
|
|
1537
|
-
GeneratorFunctionPrototype,
|
|
1538
|
-
toStringTagSymbol,
|
|
1539
|
-
"GeneratorFunction"
|
|
1540
|
-
);
|
|
1541
|
-
|
|
1542
|
-
// Helper for defining the .next, .throw, and .return methods of the
|
|
1543
|
-
// Iterator interface in terms of a single ._invoke method.
|
|
1544
|
-
function defineIteratorMethods(prototype) {
|
|
1545
|
-
["next", "throw", "return"].forEach(function(method) {
|
|
1546
|
-
define(prototype, method, function(arg) {
|
|
1547
|
-
return this._invoke(method, arg);
|
|
1548
|
-
});
|
|
1549
|
-
});
|
|
1550
|
-
}
|
|
1551
|
-
|
|
1552
|
-
exports.isGeneratorFunction = function(genFun) {
|
|
1553
|
-
var ctor = typeof genFun === "function" && genFun.constructor;
|
|
1554
|
-
return ctor
|
|
1555
|
-
? ctor === GeneratorFunction ||
|
|
1556
|
-
// For the native GeneratorFunction constructor, the best we can
|
|
1557
|
-
// do is to check its .name property.
|
|
1558
|
-
(ctor.displayName || ctor.name) === "GeneratorFunction"
|
|
1559
|
-
: false;
|
|
1560
|
-
};
|
|
1561
|
-
|
|
1562
|
-
exports.mark = function(genFun) {
|
|
1563
|
-
if (Object.setPrototypeOf) {
|
|
1564
|
-
Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);
|
|
1565
|
-
} else {
|
|
1566
|
-
genFun.__proto__ = GeneratorFunctionPrototype;
|
|
1567
|
-
define(genFun, toStringTagSymbol, "GeneratorFunction");
|
|
1568
|
-
}
|
|
1569
|
-
genFun.prototype = Object.create(Gp);
|
|
1570
|
-
return genFun;
|
|
1571
|
-
};
|
|
1572
|
-
|
|
1573
|
-
// Within the body of any async function, `await x` is transformed to
|
|
1574
|
-
// `yield regeneratorRuntime.awrap(x)`, so that the runtime can test
|
|
1575
|
-
// `hasOwn.call(value, "__await")` to determine if the yielded value is
|
|
1576
|
-
// meant to be awaited.
|
|
1577
|
-
exports.awrap = function(arg) {
|
|
1578
|
-
return { __await: arg };
|
|
1579
|
-
};
|
|
1580
|
-
|
|
1581
|
-
function AsyncIterator(generator, PromiseImpl) {
|
|
1582
|
-
function invoke(method, arg, resolve, reject) {
|
|
1583
|
-
var record = tryCatch(generator[method], generator, arg);
|
|
1584
|
-
if (record.type === "throw") {
|
|
1585
|
-
reject(record.arg);
|
|
1586
|
-
} else {
|
|
1587
|
-
var result = record.arg;
|
|
1588
|
-
var value = result.value;
|
|
1589
|
-
if (value &&
|
|
1590
|
-
typeof value === "object" &&
|
|
1591
|
-
hasOwn.call(value, "__await")) {
|
|
1592
|
-
return PromiseImpl.resolve(value.__await).then(function(value) {
|
|
1593
|
-
invoke("next", value, resolve, reject);
|
|
1594
|
-
}, function(err) {
|
|
1595
|
-
invoke("throw", err, resolve, reject);
|
|
1596
|
-
});
|
|
1597
|
-
}
|
|
1598
|
-
|
|
1599
|
-
return PromiseImpl.resolve(value).then(function(unwrapped) {
|
|
1600
|
-
// When a yielded Promise is resolved, its final value becomes
|
|
1601
|
-
// the .value of the Promise<{value,done}> result for the
|
|
1602
|
-
// current iteration.
|
|
1603
|
-
result.value = unwrapped;
|
|
1604
|
-
resolve(result);
|
|
1605
|
-
}, function(error) {
|
|
1606
|
-
// If a rejected Promise was yielded, throw the rejection back
|
|
1607
|
-
// into the async generator function so it can be handled there.
|
|
1608
|
-
return invoke("throw", error, resolve, reject);
|
|
1609
|
-
});
|
|
1610
|
-
}
|
|
1611
|
-
}
|
|
1612
|
-
|
|
1613
|
-
var previousPromise;
|
|
1614
|
-
|
|
1615
|
-
function enqueue(method, arg) {
|
|
1616
|
-
function callInvokeWithMethodAndArg() {
|
|
1617
|
-
return new PromiseImpl(function(resolve, reject) {
|
|
1618
|
-
invoke(method, arg, resolve, reject);
|
|
1619
|
-
});
|
|
1620
|
-
}
|
|
1621
|
-
|
|
1622
|
-
return previousPromise =
|
|
1623
|
-
// If enqueue has been called before, then we want to wait until
|
|
1624
|
-
// all previous Promises have been resolved before calling invoke,
|
|
1625
|
-
// so that results are always delivered in the correct order. If
|
|
1626
|
-
// enqueue has not been called before, then it is important to
|
|
1627
|
-
// call invoke immediately, without waiting on a callback to fire,
|
|
1628
|
-
// so that the async generator function has the opportunity to do
|
|
1629
|
-
// any necessary setup in a predictable way. This predictability
|
|
1630
|
-
// is why the Promise constructor synchronously invokes its
|
|
1631
|
-
// executor callback, and why async functions synchronously
|
|
1632
|
-
// execute code before the first await. Since we implement simple
|
|
1633
|
-
// async functions in terms of async generators, it is especially
|
|
1634
|
-
// important to get this right, even though it requires care.
|
|
1635
|
-
previousPromise ? previousPromise.then(
|
|
1636
|
-
callInvokeWithMethodAndArg,
|
|
1637
|
-
// Avoid propagating failures to Promises returned by later
|
|
1638
|
-
// invocations of the iterator.
|
|
1639
|
-
callInvokeWithMethodAndArg
|
|
1640
|
-
) : callInvokeWithMethodAndArg();
|
|
1641
|
-
}
|
|
1642
|
-
|
|
1643
|
-
// Define the unified helper method that is used to implement .next,
|
|
1644
|
-
// .throw, and .return (see defineIteratorMethods).
|
|
1645
|
-
this._invoke = enqueue;
|
|
1646
|
-
}
|
|
1647
|
-
|
|
1648
|
-
defineIteratorMethods(AsyncIterator.prototype);
|
|
1649
|
-
define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
|
|
1650
|
-
return this;
|
|
1651
|
-
});
|
|
1652
|
-
exports.AsyncIterator = AsyncIterator;
|
|
1653
|
-
|
|
1654
|
-
// Note that simple async functions are implemented on top of
|
|
1655
|
-
// AsyncIterator objects; they just return a Promise for the value of
|
|
1656
|
-
// the final result produced by the iterator.
|
|
1657
|
-
exports.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) {
|
|
1658
|
-
if (PromiseImpl === void 0) PromiseImpl = Promise;
|
|
1659
|
-
|
|
1660
|
-
var iter = new AsyncIterator(
|
|
1661
|
-
wrap(innerFn, outerFn, self, tryLocsList),
|
|
1662
|
-
PromiseImpl
|
|
1663
|
-
);
|
|
1664
|
-
|
|
1665
|
-
return exports.isGeneratorFunction(outerFn)
|
|
1666
|
-
? iter // If outerFn is a generator, return the full iterator.
|
|
1667
|
-
: iter.next().then(function(result) {
|
|
1668
|
-
return result.done ? result.value : iter.next();
|
|
1669
|
-
});
|
|
1670
|
-
};
|
|
1671
|
-
|
|
1672
|
-
function makeInvokeMethod(innerFn, self, context) {
|
|
1673
|
-
var state = GenStateSuspendedStart;
|
|
1674
|
-
|
|
1675
|
-
return function invoke(method, arg) {
|
|
1676
|
-
if (state === GenStateExecuting) {
|
|
1677
|
-
throw new Error("Generator is already running");
|
|
1678
|
-
}
|
|
1679
|
-
|
|
1680
|
-
if (state === GenStateCompleted) {
|
|
1681
|
-
if (method === "throw") {
|
|
1682
|
-
throw arg;
|
|
1683
|
-
}
|
|
1684
|
-
|
|
1685
|
-
// Be forgiving, per 25.3.3.3.3 of the spec:
|
|
1686
|
-
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume
|
|
1687
|
-
return doneResult();
|
|
1688
|
-
}
|
|
1689
|
-
|
|
1690
|
-
context.method = method;
|
|
1691
|
-
context.arg = arg;
|
|
1692
|
-
|
|
1693
|
-
while (true) {
|
|
1694
|
-
var delegate = context.delegate;
|
|
1695
|
-
if (delegate) {
|
|
1696
|
-
var delegateResult = maybeInvokeDelegate(delegate, context);
|
|
1697
|
-
if (delegateResult) {
|
|
1698
|
-
if (delegateResult === ContinueSentinel) continue;
|
|
1699
|
-
return delegateResult;
|
|
1700
|
-
}
|
|
1701
|
-
}
|
|
1702
|
-
|
|
1703
|
-
if (context.method === "next") {
|
|
1704
|
-
// Setting context._sent for legacy support of Babel's
|
|
1705
|
-
// function.sent implementation.
|
|
1706
|
-
context.sent = context._sent = context.arg;
|
|
1707
|
-
|
|
1708
|
-
} else if (context.method === "throw") {
|
|
1709
|
-
if (state === GenStateSuspendedStart) {
|
|
1710
|
-
state = GenStateCompleted;
|
|
1711
|
-
throw context.arg;
|
|
1712
|
-
}
|
|
1713
|
-
|
|
1714
|
-
context.dispatchException(context.arg);
|
|
1715
|
-
|
|
1716
|
-
} else if (context.method === "return") {
|
|
1717
|
-
context.abrupt("return", context.arg);
|
|
1718
|
-
}
|
|
1719
|
-
|
|
1720
|
-
state = GenStateExecuting;
|
|
1721
|
-
|
|
1722
|
-
var record = tryCatch(innerFn, self, context);
|
|
1723
|
-
if (record.type === "normal") {
|
|
1724
|
-
// If an exception is thrown from innerFn, we leave state ===
|
|
1725
|
-
// GenStateExecuting and loop back for another invocation.
|
|
1726
|
-
state = context.done
|
|
1727
|
-
? GenStateCompleted
|
|
1728
|
-
: GenStateSuspendedYield;
|
|
1729
|
-
|
|
1730
|
-
if (record.arg === ContinueSentinel) {
|
|
1731
|
-
continue;
|
|
1732
|
-
}
|
|
1733
|
-
|
|
1734
|
-
return {
|
|
1735
|
-
value: record.arg,
|
|
1736
|
-
done: context.done
|
|
1737
|
-
};
|
|
1738
|
-
|
|
1739
|
-
} else if (record.type === "throw") {
|
|
1740
|
-
state = GenStateCompleted;
|
|
1741
|
-
// Dispatch the exception by looping back around to the
|
|
1742
|
-
// context.dispatchException(context.arg) call above.
|
|
1743
|
-
context.method = "throw";
|
|
1744
|
-
context.arg = record.arg;
|
|
1745
|
-
}
|
|
1746
|
-
}
|
|
1747
|
-
};
|
|
1748
|
-
}
|
|
1749
|
-
|
|
1750
|
-
// Call delegate.iterator[context.method](context.arg) and handle the
|
|
1751
|
-
// result, either by returning a { value, done } result from the
|
|
1752
|
-
// delegate iterator, or by modifying context.method and context.arg,
|
|
1753
|
-
// setting context.delegate to null, and returning the ContinueSentinel.
|
|
1754
|
-
function maybeInvokeDelegate(delegate, context) {
|
|
1755
|
-
var method = delegate.iterator[context.method];
|
|
1756
|
-
if (method === undefined) {
|
|
1757
|
-
// A .throw or .return when the delegate iterator has no .throw
|
|
1758
|
-
// method always terminates the yield* loop.
|
|
1759
|
-
context.delegate = null;
|
|
1760
|
-
|
|
1761
|
-
if (context.method === "throw") {
|
|
1762
|
-
// Note: ["return"] must be used for ES3 parsing compatibility.
|
|
1763
|
-
if (delegate.iterator["return"]) {
|
|
1764
|
-
// If the delegate iterator has a return method, give it a
|
|
1765
|
-
// chance to clean up.
|
|
1766
|
-
context.method = "return";
|
|
1767
|
-
context.arg = undefined;
|
|
1768
|
-
maybeInvokeDelegate(delegate, context);
|
|
1769
|
-
|
|
1770
|
-
if (context.method === "throw") {
|
|
1771
|
-
// If maybeInvokeDelegate(context) changed context.method from
|
|
1772
|
-
// "return" to "throw", let that override the TypeError below.
|
|
1773
|
-
return ContinueSentinel;
|
|
1774
|
-
}
|
|
1775
|
-
}
|
|
1776
|
-
|
|
1777
|
-
context.method = "throw";
|
|
1778
|
-
context.arg = new TypeError(
|
|
1779
|
-
"The iterator does not provide a 'throw' method");
|
|
1780
|
-
}
|
|
1781
|
-
|
|
1782
|
-
return ContinueSentinel;
|
|
1783
|
-
}
|
|
1784
|
-
|
|
1785
|
-
var record = tryCatch(method, delegate.iterator, context.arg);
|
|
1786
|
-
|
|
1787
|
-
if (record.type === "throw") {
|
|
1788
|
-
context.method = "throw";
|
|
1789
|
-
context.arg = record.arg;
|
|
1790
|
-
context.delegate = null;
|
|
1791
|
-
return ContinueSentinel;
|
|
1792
|
-
}
|
|
1793
|
-
|
|
1794
|
-
var info = record.arg;
|
|
1795
|
-
|
|
1796
|
-
if (! info) {
|
|
1797
|
-
context.method = "throw";
|
|
1798
|
-
context.arg = new TypeError("iterator result is not an object");
|
|
1799
|
-
context.delegate = null;
|
|
1800
|
-
return ContinueSentinel;
|
|
1801
|
-
}
|
|
1802
|
-
|
|
1803
|
-
if (info.done) {
|
|
1804
|
-
// Assign the result of the finished delegate to the temporary
|
|
1805
|
-
// variable specified by delegate.resultName (see delegateYield).
|
|
1806
|
-
context[delegate.resultName] = info.value;
|
|
1807
|
-
|
|
1808
|
-
// Resume execution at the desired location (see delegateYield).
|
|
1809
|
-
context.next = delegate.nextLoc;
|
|
1810
|
-
|
|
1811
|
-
// If context.method was "throw" but the delegate handled the
|
|
1812
|
-
// exception, let the outer generator proceed normally. If
|
|
1813
|
-
// context.method was "next", forget context.arg since it has been
|
|
1814
|
-
// "consumed" by the delegate iterator. If context.method was
|
|
1815
|
-
// "return", allow the original .return call to continue in the
|
|
1816
|
-
// outer generator.
|
|
1817
|
-
if (context.method !== "return") {
|
|
1818
|
-
context.method = "next";
|
|
1819
|
-
context.arg = undefined;
|
|
1820
|
-
}
|
|
1821
|
-
|
|
1822
|
-
} else {
|
|
1823
|
-
// Re-yield the result returned by the delegate method.
|
|
1824
|
-
return info;
|
|
1825
|
-
}
|
|
1826
|
-
|
|
1827
|
-
// The delegate iterator is finished, so forget it and continue with
|
|
1828
|
-
// the outer generator.
|
|
1829
|
-
context.delegate = null;
|
|
1830
|
-
return ContinueSentinel;
|
|
1831
|
-
}
|
|
1832
|
-
|
|
1833
|
-
// Define Generator.prototype.{next,throw,return} in terms of the
|
|
1834
|
-
// unified ._invoke helper method.
|
|
1835
|
-
defineIteratorMethods(Gp);
|
|
1836
|
-
|
|
1837
|
-
define(Gp, toStringTagSymbol, "Generator");
|
|
1838
|
-
|
|
1839
|
-
// A Generator should always return itself as the iterator object when the
|
|
1840
|
-
// @@iterator function is called on it. Some browsers' implementations of the
|
|
1841
|
-
// iterator prototype chain incorrectly implement this, causing the Generator
|
|
1842
|
-
// object to not be returned from this call. This ensures that doesn't happen.
|
|
1843
|
-
// See https://github.com/facebook/regenerator/issues/274 for more details.
|
|
1844
|
-
define(Gp, iteratorSymbol, function() {
|
|
1845
|
-
return this;
|
|
1846
|
-
});
|
|
1847
|
-
|
|
1848
|
-
define(Gp, "toString", function() {
|
|
1849
|
-
return "[object Generator]";
|
|
1850
|
-
});
|
|
1851
|
-
|
|
1852
|
-
function pushTryEntry(locs) {
|
|
1853
|
-
var entry = { tryLoc: locs[0] };
|
|
1854
|
-
|
|
1855
|
-
if (1 in locs) {
|
|
1856
|
-
entry.catchLoc = locs[1];
|
|
1857
|
-
}
|
|
1858
|
-
|
|
1859
|
-
if (2 in locs) {
|
|
1860
|
-
entry.finallyLoc = locs[2];
|
|
1861
|
-
entry.afterLoc = locs[3];
|
|
1862
|
-
}
|
|
1863
|
-
|
|
1864
|
-
this.tryEntries.push(entry);
|
|
1865
|
-
}
|
|
1866
|
-
|
|
1867
|
-
function resetTryEntry(entry) {
|
|
1868
|
-
var record = entry.completion || {};
|
|
1869
|
-
record.type = "normal";
|
|
1870
|
-
delete record.arg;
|
|
1871
|
-
entry.completion = record;
|
|
1872
|
-
}
|
|
1873
|
-
|
|
1874
|
-
function Context(tryLocsList) {
|
|
1875
|
-
// The root entry object (effectively a try statement without a catch
|
|
1876
|
-
// or a finally block) gives us a place to store values thrown from
|
|
1877
|
-
// locations where there is no enclosing try statement.
|
|
1878
|
-
this.tryEntries = [{ tryLoc: "root" }];
|
|
1879
|
-
tryLocsList.forEach(pushTryEntry, this);
|
|
1880
|
-
this.reset(true);
|
|
1881
|
-
}
|
|
1882
|
-
|
|
1883
|
-
exports.keys = function(object) {
|
|
1884
|
-
var keys = [];
|
|
1885
|
-
for (var key in object) {
|
|
1886
|
-
keys.push(key);
|
|
1887
|
-
}
|
|
1888
|
-
keys.reverse();
|
|
1889
|
-
|
|
1890
|
-
// Rather than returning an object with a next method, we keep
|
|
1891
|
-
// things simple and return the next function itself.
|
|
1892
|
-
return function next() {
|
|
1893
|
-
while (keys.length) {
|
|
1894
|
-
var key = keys.pop();
|
|
1895
|
-
if (key in object) {
|
|
1896
|
-
next.value = key;
|
|
1897
|
-
next.done = false;
|
|
1898
|
-
return next;
|
|
1899
|
-
}
|
|
1900
|
-
}
|
|
1901
|
-
|
|
1902
|
-
// To avoid creating an additional object, we just hang the .value
|
|
1903
|
-
// and .done properties off the next function object itself. This
|
|
1904
|
-
// also ensures that the minifier will not anonymize the function.
|
|
1905
|
-
next.done = true;
|
|
1906
|
-
return next;
|
|
1907
|
-
};
|
|
1908
|
-
};
|
|
1909
|
-
|
|
1910
|
-
function values(iterable) {
|
|
1911
|
-
if (iterable) {
|
|
1912
|
-
var iteratorMethod = iterable[iteratorSymbol];
|
|
1913
|
-
if (iteratorMethod) {
|
|
1914
|
-
return iteratorMethod.call(iterable);
|
|
1915
|
-
}
|
|
1916
|
-
|
|
1917
|
-
if (typeof iterable.next === "function") {
|
|
1918
|
-
return iterable;
|
|
1919
|
-
}
|
|
1920
|
-
|
|
1921
|
-
if (!isNaN(iterable.length)) {
|
|
1922
|
-
var i = -1, next = function next() {
|
|
1923
|
-
while (++i < iterable.length) {
|
|
1924
|
-
if (hasOwn.call(iterable, i)) {
|
|
1925
|
-
next.value = iterable[i];
|
|
1926
|
-
next.done = false;
|
|
1927
|
-
return next;
|
|
1928
|
-
}
|
|
1929
|
-
}
|
|
1930
|
-
|
|
1931
|
-
next.value = undefined;
|
|
1932
|
-
next.done = true;
|
|
1933
|
-
|
|
1934
|
-
return next;
|
|
1935
|
-
};
|
|
1936
|
-
|
|
1937
|
-
return next.next = next;
|
|
1938
|
-
}
|
|
1939
|
-
}
|
|
1940
|
-
|
|
1941
|
-
// Return an iterator with no values.
|
|
1942
|
-
return { next: doneResult };
|
|
1943
|
-
}
|
|
1944
|
-
exports.values = values;
|
|
1945
|
-
|
|
1946
|
-
function doneResult() {
|
|
1947
|
-
return { value: undefined, done: true };
|
|
1948
|
-
}
|
|
1949
|
-
|
|
1950
|
-
Context.prototype = {
|
|
1951
|
-
constructor: Context,
|
|
1952
|
-
|
|
1953
|
-
reset: function(skipTempReset) {
|
|
1954
|
-
this.prev = 0;
|
|
1955
|
-
this.next = 0;
|
|
1956
|
-
// Resetting context._sent for legacy support of Babel's
|
|
1957
|
-
// function.sent implementation.
|
|
1958
|
-
this.sent = this._sent = undefined;
|
|
1959
|
-
this.done = false;
|
|
1960
|
-
this.delegate = null;
|
|
1961
|
-
|
|
1962
|
-
this.method = "next";
|
|
1963
|
-
this.arg = undefined;
|
|
1964
|
-
|
|
1965
|
-
this.tryEntries.forEach(resetTryEntry);
|
|
1966
|
-
|
|
1967
|
-
if (!skipTempReset) {
|
|
1968
|
-
for (var name in this) {
|
|
1969
|
-
// Not sure about the optimal order of these conditions:
|
|
1970
|
-
if (name.charAt(0) === "t" &&
|
|
1971
|
-
hasOwn.call(this, name) &&
|
|
1972
|
-
!isNaN(+name.slice(1))) {
|
|
1973
|
-
this[name] = undefined;
|
|
1974
|
-
}
|
|
1975
|
-
}
|
|
1976
|
-
}
|
|
1977
|
-
},
|
|
1978
|
-
|
|
1979
|
-
stop: function() {
|
|
1980
|
-
this.done = true;
|
|
1981
|
-
|
|
1982
|
-
var rootEntry = this.tryEntries[0];
|
|
1983
|
-
var rootRecord = rootEntry.completion;
|
|
1984
|
-
if (rootRecord.type === "throw") {
|
|
1985
|
-
throw rootRecord.arg;
|
|
1986
|
-
}
|
|
1987
|
-
|
|
1988
|
-
return this.rval;
|
|
1989
|
-
},
|
|
1990
|
-
|
|
1991
|
-
dispatchException: function(exception) {
|
|
1992
|
-
if (this.done) {
|
|
1993
|
-
throw exception;
|
|
1994
|
-
}
|
|
1995
|
-
|
|
1996
|
-
var context = this;
|
|
1997
|
-
function handle(loc, caught) {
|
|
1998
|
-
record.type = "throw";
|
|
1999
|
-
record.arg = exception;
|
|
2000
|
-
context.next = loc;
|
|
2001
|
-
|
|
2002
|
-
if (caught) {
|
|
2003
|
-
// If the dispatched exception was caught by a catch block,
|
|
2004
|
-
// then let that catch block handle the exception normally.
|
|
2005
|
-
context.method = "next";
|
|
2006
|
-
context.arg = undefined;
|
|
2007
|
-
}
|
|
2008
|
-
|
|
2009
|
-
return !! caught;
|
|
2010
|
-
}
|
|
2011
|
-
|
|
2012
|
-
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
2013
|
-
var entry = this.tryEntries[i];
|
|
2014
|
-
var record = entry.completion;
|
|
2015
|
-
|
|
2016
|
-
if (entry.tryLoc === "root") {
|
|
2017
|
-
// Exception thrown outside of any try block that could handle
|
|
2018
|
-
// it, so set the completion value of the entire function to
|
|
2019
|
-
// throw the exception.
|
|
2020
|
-
return handle("end");
|
|
2021
|
-
}
|
|
2022
|
-
|
|
2023
|
-
if (entry.tryLoc <= this.prev) {
|
|
2024
|
-
var hasCatch = hasOwn.call(entry, "catchLoc");
|
|
2025
|
-
var hasFinally = hasOwn.call(entry, "finallyLoc");
|
|
2026
|
-
|
|
2027
|
-
if (hasCatch && hasFinally) {
|
|
2028
|
-
if (this.prev < entry.catchLoc) {
|
|
2029
|
-
return handle(entry.catchLoc, true);
|
|
2030
|
-
} else if (this.prev < entry.finallyLoc) {
|
|
2031
|
-
return handle(entry.finallyLoc);
|
|
2032
|
-
}
|
|
2033
|
-
|
|
2034
|
-
} else if (hasCatch) {
|
|
2035
|
-
if (this.prev < entry.catchLoc) {
|
|
2036
|
-
return handle(entry.catchLoc, true);
|
|
2037
|
-
}
|
|
2038
|
-
|
|
2039
|
-
} else if (hasFinally) {
|
|
2040
|
-
if (this.prev < entry.finallyLoc) {
|
|
2041
|
-
return handle(entry.finallyLoc);
|
|
2042
|
-
}
|
|
2043
|
-
|
|
2044
|
-
} else {
|
|
2045
|
-
throw new Error("try statement without catch or finally");
|
|
2046
|
-
}
|
|
2047
|
-
}
|
|
2048
|
-
}
|
|
2049
|
-
},
|
|
2050
|
-
|
|
2051
|
-
abrupt: function(type, arg) {
|
|
2052
|
-
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
2053
|
-
var entry = this.tryEntries[i];
|
|
2054
|
-
if (entry.tryLoc <= this.prev &&
|
|
2055
|
-
hasOwn.call(entry, "finallyLoc") &&
|
|
2056
|
-
this.prev < entry.finallyLoc) {
|
|
2057
|
-
var finallyEntry = entry;
|
|
2058
|
-
break;
|
|
2059
|
-
}
|
|
2060
|
-
}
|
|
2061
|
-
|
|
2062
|
-
if (finallyEntry &&
|
|
2063
|
-
(type === "break" ||
|
|
2064
|
-
type === "continue") &&
|
|
2065
|
-
finallyEntry.tryLoc <= arg &&
|
|
2066
|
-
arg <= finallyEntry.finallyLoc) {
|
|
2067
|
-
// Ignore the finally entry if control is not jumping to a
|
|
2068
|
-
// location outside the try/catch block.
|
|
2069
|
-
finallyEntry = null;
|
|
2070
|
-
}
|
|
2071
|
-
|
|
2072
|
-
var record = finallyEntry ? finallyEntry.completion : {};
|
|
2073
|
-
record.type = type;
|
|
2074
|
-
record.arg = arg;
|
|
2075
|
-
|
|
2076
|
-
if (finallyEntry) {
|
|
2077
|
-
this.method = "next";
|
|
2078
|
-
this.next = finallyEntry.finallyLoc;
|
|
2079
|
-
return ContinueSentinel;
|
|
2080
|
-
}
|
|
2081
|
-
|
|
2082
|
-
return this.complete(record);
|
|
2083
|
-
},
|
|
2084
|
-
|
|
2085
|
-
complete: function(record, afterLoc) {
|
|
2086
|
-
if (record.type === "throw") {
|
|
2087
|
-
throw record.arg;
|
|
2088
|
-
}
|
|
2089
|
-
|
|
2090
|
-
if (record.type === "break" ||
|
|
2091
|
-
record.type === "continue") {
|
|
2092
|
-
this.next = record.arg;
|
|
2093
|
-
} else if (record.type === "return") {
|
|
2094
|
-
this.rval = this.arg = record.arg;
|
|
2095
|
-
this.method = "return";
|
|
2096
|
-
this.next = "end";
|
|
2097
|
-
} else if (record.type === "normal" && afterLoc) {
|
|
2098
|
-
this.next = afterLoc;
|
|
2099
|
-
}
|
|
2100
|
-
|
|
2101
|
-
return ContinueSentinel;
|
|
2102
|
-
},
|
|
2103
|
-
|
|
2104
|
-
finish: function(finallyLoc) {
|
|
2105
|
-
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
2106
|
-
var entry = this.tryEntries[i];
|
|
2107
|
-
if (entry.finallyLoc === finallyLoc) {
|
|
2108
|
-
this.complete(entry.completion, entry.afterLoc);
|
|
2109
|
-
resetTryEntry(entry);
|
|
2110
|
-
return ContinueSentinel;
|
|
2111
|
-
}
|
|
2112
|
-
}
|
|
2113
|
-
},
|
|
2114
|
-
|
|
2115
|
-
"catch": function(tryLoc) {
|
|
2116
|
-
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
2117
|
-
var entry = this.tryEntries[i];
|
|
2118
|
-
if (entry.tryLoc === tryLoc) {
|
|
2119
|
-
var record = entry.completion;
|
|
2120
|
-
if (record.type === "throw") {
|
|
2121
|
-
var thrown = record.arg;
|
|
2122
|
-
resetTryEntry(entry);
|
|
2123
|
-
}
|
|
2124
|
-
return thrown;
|
|
2125
|
-
}
|
|
2126
|
-
}
|
|
2127
|
-
|
|
2128
|
-
// The context.catch method must only be called with a location
|
|
2129
|
-
// argument that corresponds to a known catch block.
|
|
2130
|
-
throw new Error("illegal catch attempt");
|
|
2131
|
-
},
|
|
2132
|
-
|
|
2133
|
-
delegateYield: function(iterable, resultName, nextLoc) {
|
|
2134
|
-
this.delegate = {
|
|
2135
|
-
iterator: values(iterable),
|
|
2136
|
-
resultName: resultName,
|
|
2137
|
-
nextLoc: nextLoc
|
|
2138
|
-
};
|
|
2139
|
-
|
|
2140
|
-
if (this.method === "next") {
|
|
2141
|
-
// Deliberately forget the last sent value so that we don't
|
|
2142
|
-
// accidentally pass it on to the delegate.
|
|
2143
|
-
this.arg = undefined;
|
|
2144
|
-
}
|
|
2145
|
-
|
|
2146
|
-
return ContinueSentinel;
|
|
2147
|
-
}
|
|
2148
|
-
};
|
|
2149
|
-
|
|
2150
|
-
// Regardless of whether this script is executing as a CommonJS module
|
|
2151
|
-
// or not, return the runtime object so that we can declare the variable
|
|
2152
|
-
// regeneratorRuntime in the outer scope, which allows this module to be
|
|
2153
|
-
// injected easily by `bin/regenerator --include-runtime script.js`.
|
|
2154
|
-
return exports;
|
|
2155
|
-
|
|
2156
|
-
}(
|
|
2157
|
-
// If this script is executing as a CommonJS module, use module.exports
|
|
2158
|
-
// as the regeneratorRuntime namespace. Otherwise create a new empty
|
|
2159
|
-
// object. Either way, the resulting object will be used to initialize
|
|
2160
|
-
// the regeneratorRuntime variable at the top of this file.
|
|
2161
|
-
true ? module.exports : undefined
|
|
2162
|
-
));
|
|
2163
|
-
|
|
2164
|
-
try {
|
|
2165
|
-
regeneratorRuntime = runtime;
|
|
2166
|
-
} catch (accidentalStrictMode) {
|
|
2167
|
-
// This module should not be running in strict mode, so the above
|
|
2168
|
-
// assignment should always work unless something is misconfigured. Just
|
|
2169
|
-
// in case runtime.js accidentally runs in strict mode, in modern engines
|
|
2170
|
-
// we can explicitly access globalThis. In older engines we can escape
|
|
2171
|
-
// strict mode using a global Function call. This could conceivably fail
|
|
2172
|
-
// if a Content Security Policy forbids using Function, but in that case
|
|
2173
|
-
// the proper solution is to fix the accidental strict mode problem. If
|
|
2174
|
-
// you've misconfigured your bundler to force strict mode and applied a
|
|
2175
|
-
// CSP to forbid Function, and you're not willing to fix either of those
|
|
2176
|
-
// problems, please detail your unique predicament in a GitHub issue.
|
|
2177
|
-
if (typeof globalThis === "object") {
|
|
2178
|
-
globalThis.regeneratorRuntime = runtime;
|
|
2179
|
-
} else {
|
|
2180
|
-
Function("r", "regeneratorRuntime = r")(runtime);
|
|
2181
|
-
}
|
|
2182
|
-
}
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
/***/ }),
|
|
2186
|
-
|
|
2187
|
-
/***/ "9963":
|
|
2188
|
-
/***/ (function(__webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
2189
|
-
|
|
2190
|
-
"use strict";
|
|
2191
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return CustomError; });
|
|
2192
|
-
/* unused harmony export customErrorFactory */
|
|
2193
|
-
function fixProto(target, prototype) {
|
|
2194
|
-
var setPrototypeOf = Object.setPrototypeOf;
|
|
2195
|
-
setPrototypeOf ? setPrototypeOf(target, prototype) : target.__proto__ = prototype;
|
|
2196
|
-
}
|
|
2197
|
-
function fixStack(target, fn) {
|
|
2198
|
-
if (fn === void 0) {
|
|
2199
|
-
fn = target.constructor;
|
|
2200
|
-
}
|
|
2201
|
-
|
|
2202
|
-
var captureStackTrace = Error.captureStackTrace;
|
|
2203
|
-
captureStackTrace && captureStackTrace(target, fn);
|
|
2204
|
-
}
|
|
2205
|
-
|
|
2206
|
-
var __extends = undefined && undefined.__extends || function () {
|
|
2207
|
-
var extendStatics = function (d, b) {
|
|
2208
|
-
extendStatics = Object.setPrototypeOf || {
|
|
2209
|
-
__proto__: []
|
|
2210
|
-
} instanceof Array && function (d, b) {
|
|
2211
|
-
d.__proto__ = b;
|
|
2212
|
-
} || function (d, b) {
|
|
2213
|
-
for (var p in b) { if (b.hasOwnProperty(p)) { d[p] = b[p]; } }
|
|
2214
|
-
};
|
|
2215
|
-
|
|
2216
|
-
return extendStatics(d, b);
|
|
2217
|
-
};
|
|
2218
|
-
|
|
2219
|
-
return function (d, b) {
|
|
2220
|
-
extendStatics(d, b);
|
|
2221
|
-
|
|
2222
|
-
function __() {
|
|
2223
|
-
this.constructor = d;
|
|
2224
|
-
}
|
|
2225
|
-
|
|
2226
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
2227
|
-
};
|
|
2228
|
-
}();
|
|
2229
|
-
|
|
2230
|
-
var CustomError = function (_super) {
|
|
2231
|
-
__extends(CustomError, _super);
|
|
2232
|
-
|
|
2233
|
-
function CustomError(message) {
|
|
2234
|
-
var _newTarget = this.constructor;
|
|
2235
|
-
|
|
2236
|
-
var _this = _super.call(this, message) || this;
|
|
2237
|
-
|
|
2238
|
-
Object.defineProperty(_this, 'name', {
|
|
2239
|
-
value: _newTarget.name,
|
|
2240
|
-
enumerable: false,
|
|
2241
|
-
configurable: true
|
|
2242
|
-
});
|
|
2243
|
-
fixProto(_this, _newTarget.prototype);
|
|
2244
|
-
fixStack(_this);
|
|
2245
|
-
return _this;
|
|
2246
|
-
}
|
|
2247
|
-
|
|
2248
|
-
return CustomError;
|
|
2249
|
-
}(Error);
|
|
2250
|
-
|
|
2251
|
-
var __spreadArrays = undefined && undefined.__spreadArrays || function () {
|
|
2252
|
-
var arguments$1 = arguments;
|
|
2253
|
-
|
|
2254
|
-
for (var s = 0, i = 0, il = arguments.length; i < il; i++) { s += arguments$1[i].length; }
|
|
2255
|
-
|
|
2256
|
-
for (var r = Array(s), k = 0, i = 0; i < il; i++) { for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) { r[k] = a[j]; } }
|
|
2257
|
-
|
|
2258
|
-
return r;
|
|
2259
|
-
};
|
|
2260
|
-
function customErrorFactory(fn, parent) {
|
|
2261
|
-
if (parent === void 0) {
|
|
2262
|
-
parent = Error;
|
|
2263
|
-
}
|
|
2264
|
-
|
|
2265
|
-
function CustomError() {
|
|
2266
|
-
var arguments$1 = arguments;
|
|
2267
|
-
|
|
2268
|
-
var args = [];
|
|
2269
|
-
|
|
2270
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
2271
|
-
args[_i] = arguments$1[_i];
|
|
2272
|
-
}
|
|
2273
|
-
|
|
2274
|
-
if (!(this instanceof CustomError)) { return new (CustomError.bind.apply(CustomError, __spreadArrays([void 0], args)))(); }
|
|
2275
|
-
parent.apply(this, args);
|
|
2276
|
-
Object.defineProperty(this, 'name', {
|
|
2277
|
-
value: fn.name || parent.name,
|
|
2278
|
-
enumerable: false,
|
|
2279
|
-
configurable: true
|
|
2280
|
-
});
|
|
2281
|
-
fn.apply(this, args);
|
|
2282
|
-
fixStack(this, CustomError);
|
|
2283
|
-
}
|
|
2284
|
-
|
|
2285
|
-
return Object.defineProperties(CustomError, {
|
|
2286
|
-
prototype: {
|
|
2287
|
-
value: Object.create(parent.prototype, {
|
|
2288
|
-
constructor: {
|
|
2289
|
-
value: CustomError,
|
|
2290
|
-
writable: true,
|
|
2291
|
-
configurable: true
|
|
2292
|
-
}
|
|
2293
|
-
})
|
|
2294
|
-
}
|
|
2295
|
-
});
|
|
2296
|
-
}
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
//# sourceMappingURL=custom-error.mjs.map
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
/***/ }),
|
|
2303
|
-
|
|
2304
|
-
/***/ "99de":
|
|
2305
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
2306
|
-
|
|
2307
|
-
"use strict";
|
|
2308
|
-
|
|
2309
|
-
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/typeof.js
|
|
2310
|
-
var helpers_typeof = __webpack_require__("7037");
|
|
2311
|
-
var typeof_default = /*#__PURE__*/__webpack_require__.n(helpers_typeof);
|
|
2312
|
-
|
|
2313
|
-
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
|
|
2314
|
-
function _assertThisInitialized(self) {
|
|
2315
|
-
if (self === void 0) {
|
|
2316
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
2317
|
-
}
|
|
2318
|
-
|
|
2319
|
-
return self;
|
|
2320
|
-
}
|
|
2321
|
-
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js
|
|
2322
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _possibleConstructorReturn; });
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
function _possibleConstructorReturn(self, call) {
|
|
2326
|
-
if (call && (typeof_default()(call) === "object" || typeof call === "function")) {
|
|
2327
|
-
return call;
|
|
2328
|
-
}
|
|
2329
|
-
|
|
2330
|
-
return _assertThisInitialized(self);
|
|
2331
|
-
}
|
|
2332
|
-
|
|
2333
|
-
/***/ }),
|
|
2334
|
-
|
|
2335
|
-
/***/ "9c59":
|
|
2336
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
2337
|
-
|
|
2338
|
-
"use strict";
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
var has = Object.prototype.hasOwnProperty;
|
|
2342
|
-
|
|
2343
|
-
/**
|
|
2344
|
-
* Simple query string parser.
|
|
2345
|
-
*
|
|
2346
|
-
* @param {String} query The query string that needs to be parsed.
|
|
2347
|
-
* @returns {Object}
|
|
2348
|
-
* @api public
|
|
2349
|
-
*/
|
|
2350
|
-
function querystring(query) {
|
|
2351
|
-
var parser = /([^=?&]+)=?([^&]*)/g
|
|
2352
|
-
, result = {}
|
|
2353
|
-
, part;
|
|
2354
|
-
|
|
2355
|
-
//
|
|
2356
|
-
// Little nifty parsing hack, leverage the fact that RegExp.exec increments
|
|
2357
|
-
// the lastIndex property so we can continue executing this loop until we've
|
|
2358
|
-
// parsed all results.
|
|
2359
|
-
//
|
|
2360
|
-
for (;
|
|
2361
|
-
part = parser.exec(query);
|
|
2362
|
-
result[decodeURIComponent(part[1])] = decodeURIComponent(part[2])
|
|
2363
|
-
);
|
|
2364
|
-
|
|
2365
|
-
return result;
|
|
2366
|
-
}
|
|
2367
|
-
|
|
2368
|
-
/**
|
|
2369
|
-
* Transform a query string to an object.
|
|
2370
|
-
*
|
|
2371
|
-
* @param {Object} obj Object that should be transformed.
|
|
2372
|
-
* @param {String} prefix Optional prefix.
|
|
2373
|
-
* @returns {String}
|
|
2374
|
-
* @api public
|
|
2375
|
-
*/
|
|
2376
|
-
function querystringify(obj, prefix) {
|
|
2377
|
-
prefix = prefix || '';
|
|
2378
|
-
|
|
2379
|
-
var pairs = [];
|
|
2380
|
-
|
|
2381
|
-
//
|
|
2382
|
-
// Optionally prefix with a '?' if needed
|
|
2383
|
-
//
|
|
2384
|
-
if ('string' !== typeof prefix) prefix = '?';
|
|
2385
|
-
|
|
2386
|
-
for (var key in obj) {
|
|
2387
|
-
if (has.call(obj, key)) {
|
|
2388
|
-
pairs.push(encodeURIComponent(key) +'='+ encodeURIComponent(obj[key]));
|
|
2389
|
-
}
|
|
2390
|
-
}
|
|
2391
|
-
|
|
2392
|
-
return pairs.length ? prefix + pairs.join('&') : '';
|
|
2393
|
-
}
|
|
2394
|
-
|
|
2395
|
-
//
|
|
2396
|
-
// Expose the module.
|
|
2397
|
-
//
|
|
2398
|
-
exports.stringify = querystringify;
|
|
2399
|
-
exports.parse = querystring;
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
/***/ }),
|
|
2403
|
-
|
|
2404
|
-
/***/ "a3de":
|
|
2405
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
2406
|
-
|
|
2407
|
-
"use strict";
|
|
2408
|
-
/**
|
|
2409
|
-
* Copyright (c) 2015, Facebook, Inc.
|
|
2410
|
-
* All rights reserved.
|
|
2411
|
-
*
|
|
2412
|
-
* This source code is licensed under the BSD-style license found in the
|
|
2413
|
-
* LICENSE file in the root directory of this source tree. An additional grant
|
|
2414
|
-
* of patent rights can be found in the PATENTS file in the same directory.
|
|
2415
|
-
*
|
|
2416
|
-
* @providesModule ExecutionEnvironment
|
|
2417
|
-
*/
|
|
2418
|
-
|
|
2419
|
-
/*jslint evil: true */
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
var canUseDOM = !!(
|
|
2424
|
-
typeof window !== 'undefined' &&
|
|
2425
|
-
window.document &&
|
|
2426
|
-
window.document.createElement
|
|
2427
|
-
);
|
|
2428
|
-
|
|
2429
|
-
/**
|
|
2430
|
-
* Simple, lightweight module assisting with the detection and context of
|
|
2431
|
-
* Worker. Helps avoid circular dependencies and allows code to reason about
|
|
2432
|
-
* whether or not they are in a Worker, even if they never include the main
|
|
2433
|
-
* `ReactWorker` dependency.
|
|
2434
|
-
*/
|
|
2435
|
-
var ExecutionEnvironment = {
|
|
2436
|
-
|
|
2437
|
-
canUseDOM: canUseDOM,
|
|
2438
|
-
|
|
2439
|
-
canUseWorkers: typeof Worker !== 'undefined',
|
|
2440
|
-
|
|
2441
|
-
canUseEventListeners:
|
|
2442
|
-
canUseDOM && !!(window.addEventListener || window.attachEvent),
|
|
2443
|
-
|
|
2444
|
-
canUseViewport: canUseDOM && !!window.screen,
|
|
2445
|
-
|
|
2446
|
-
isInWorker: !canUseDOM // For now, this is true - might change in the future.
|
|
2447
|
-
|
|
2448
|
-
};
|
|
2449
|
-
|
|
2450
|
-
module.exports = ExecutionEnvironment;
|
|
2451
|
-
|
|
2452
|
-
|
|
2453
|
-
/***/ }),
|
|
2454
|
-
|
|
2455
|
-
/***/ "a5d8":
|
|
2456
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
2457
|
-
|
|
2458
|
-
// extracted by mini-css-extract-plugin
|
|
2459
|
-
|
|
2460
|
-
/***/ }),
|
|
2461
|
-
|
|
2462
|
-
/***/ "a78e":
|
|
2463
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
2464
|
-
|
|
2465
|
-
var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
|
|
2466
|
-
* JavaScript Cookie v2.2.1
|
|
2467
|
-
* https://github.com/js-cookie/js-cookie
|
|
2468
|
-
*
|
|
2469
|
-
* Copyright 2006, 2015 Klaus Hartl & Fagner Brack
|
|
2470
|
-
* Released under the MIT license
|
|
2471
|
-
*/
|
|
2472
|
-
;(function (factory) {
|
|
2473
|
-
var registeredInModuleLoader;
|
|
2474
|
-
if (true) {
|
|
2475
|
-
!(__WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
|
|
2476
|
-
__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
|
|
2477
|
-
(__WEBPACK_AMD_DEFINE_FACTORY__.call(exports, __webpack_require__, exports, module)) :
|
|
2478
|
-
__WEBPACK_AMD_DEFINE_FACTORY__),
|
|
2479
|
-
__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
|
|
2480
|
-
registeredInModuleLoader = true;
|
|
2481
|
-
}
|
|
2482
|
-
if (true) {
|
|
2483
|
-
module.exports = factory();
|
|
2484
|
-
registeredInModuleLoader = true;
|
|
2485
|
-
}
|
|
2486
|
-
if (!registeredInModuleLoader) {
|
|
2487
|
-
var OldCookies = window.Cookies;
|
|
2488
|
-
var api = window.Cookies = factory();
|
|
2489
|
-
api.noConflict = function () {
|
|
2490
|
-
window.Cookies = OldCookies;
|
|
2491
|
-
return api;
|
|
2492
|
-
};
|
|
2493
|
-
}
|
|
2494
|
-
}(function () {
|
|
2495
|
-
function extend () {
|
|
2496
|
-
var i = 0;
|
|
2497
|
-
var result = {};
|
|
2498
|
-
for (; i < arguments.length; i++) {
|
|
2499
|
-
var attributes = arguments[ i ];
|
|
2500
|
-
for (var key in attributes) {
|
|
2501
|
-
result[key] = attributes[key];
|
|
2502
|
-
}
|
|
2503
|
-
}
|
|
2504
|
-
return result;
|
|
2505
|
-
}
|
|
2506
|
-
|
|
2507
|
-
function decode (s) {
|
|
2508
|
-
return s.replace(/(%[0-9A-Z]{2})+/g, decodeURIComponent);
|
|
2509
|
-
}
|
|
2510
|
-
|
|
2511
|
-
function init (converter) {
|
|
2512
|
-
function api() {}
|
|
2513
|
-
|
|
2514
|
-
function set (key, value, attributes) {
|
|
2515
|
-
if (typeof document === 'undefined') {
|
|
2516
|
-
return;
|
|
2517
|
-
}
|
|
2518
|
-
|
|
2519
|
-
attributes = extend({
|
|
2520
|
-
path: '/'
|
|
2521
|
-
}, api.defaults, attributes);
|
|
2522
|
-
|
|
2523
|
-
if (typeof attributes.expires === 'number') {
|
|
2524
|
-
attributes.expires = new Date(new Date() * 1 + attributes.expires * 864e+5);
|
|
2525
|
-
}
|
|
2526
|
-
|
|
2527
|
-
// We're using "expires" because "max-age" is not supported by IE
|
|
2528
|
-
attributes.expires = attributes.expires ? attributes.expires.toUTCString() : '';
|
|
2529
|
-
|
|
2530
|
-
try {
|
|
2531
|
-
var result = JSON.stringify(value);
|
|
2532
|
-
if (/^[\{\[]/.test(result)) {
|
|
2533
|
-
value = result;
|
|
2534
|
-
}
|
|
2535
|
-
} catch (e) {}
|
|
2536
|
-
|
|
2537
|
-
value = converter.write ?
|
|
2538
|
-
converter.write(value, key) :
|
|
2539
|
-
encodeURIComponent(String(value))
|
|
2540
|
-
.replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g, decodeURIComponent);
|
|
2541
|
-
|
|
2542
|
-
key = encodeURIComponent(String(key))
|
|
2543
|
-
.replace(/%(23|24|26|2B|5E|60|7C)/g, decodeURIComponent)
|
|
2544
|
-
.replace(/[\(\)]/g, escape);
|
|
2545
|
-
|
|
2546
|
-
var stringifiedAttributes = '';
|
|
2547
|
-
for (var attributeName in attributes) {
|
|
2548
|
-
if (!attributes[attributeName]) {
|
|
2549
|
-
continue;
|
|
2550
|
-
}
|
|
2551
|
-
stringifiedAttributes += '; ' + attributeName;
|
|
2552
|
-
if (attributes[attributeName] === true) {
|
|
2553
|
-
continue;
|
|
2554
|
-
}
|
|
2555
|
-
|
|
2556
|
-
// Considers RFC 6265 section 5.2:
|
|
2557
|
-
// ...
|
|
2558
|
-
// 3. If the remaining unparsed-attributes contains a %x3B (";")
|
|
2559
|
-
// character:
|
|
2560
|
-
// Consume the characters of the unparsed-attributes up to,
|
|
2561
|
-
// not including, the first %x3B (";") character.
|
|
2562
|
-
// ...
|
|
2563
|
-
stringifiedAttributes += '=' + attributes[attributeName].split(';')[0];
|
|
2564
|
-
}
|
|
2565
|
-
|
|
2566
|
-
return (document.cookie = key + '=' + value + stringifiedAttributes);
|
|
2567
|
-
}
|
|
2568
|
-
|
|
2569
|
-
function get (key, json) {
|
|
2570
|
-
if (typeof document === 'undefined') {
|
|
2571
|
-
return;
|
|
2572
|
-
}
|
|
2573
|
-
|
|
2574
|
-
var jar = {};
|
|
2575
|
-
// To prevent the for loop in the first place assign an empty array
|
|
2576
|
-
// in case there are no cookies at all.
|
|
2577
|
-
var cookies = document.cookie ? document.cookie.split('; ') : [];
|
|
2578
|
-
var i = 0;
|
|
2579
|
-
|
|
2580
|
-
for (; i < cookies.length; i++) {
|
|
2581
|
-
var parts = cookies[i].split('=');
|
|
2582
|
-
var cookie = parts.slice(1).join('=');
|
|
2583
|
-
|
|
2584
|
-
if (!json && cookie.charAt(0) === '"') {
|
|
2585
|
-
cookie = cookie.slice(1, -1);
|
|
2586
|
-
}
|
|
2587
|
-
|
|
2588
|
-
try {
|
|
2589
|
-
var name = decode(parts[0]);
|
|
2590
|
-
cookie = (converter.read || converter)(cookie, name) ||
|
|
2591
|
-
decode(cookie);
|
|
2592
|
-
|
|
2593
|
-
if (json) {
|
|
2594
|
-
try {
|
|
2595
|
-
cookie = JSON.parse(cookie);
|
|
2596
|
-
} catch (e) {}
|
|
2597
|
-
}
|
|
2598
|
-
|
|
2599
|
-
jar[name] = cookie;
|
|
2600
|
-
|
|
2601
|
-
if (key === name) {
|
|
2602
|
-
break;
|
|
2603
|
-
}
|
|
2604
|
-
} catch (e) {}
|
|
2605
|
-
}
|
|
2606
|
-
|
|
2607
|
-
return key ? jar[key] : jar;
|
|
2608
|
-
}
|
|
2609
|
-
|
|
2610
|
-
api.set = set;
|
|
2611
|
-
api.get = function (key) {
|
|
2612
|
-
return get(key, false /* read as raw */);
|
|
2613
|
-
};
|
|
2614
|
-
api.getJSON = function (key) {
|
|
2615
|
-
return get(key, true /* read as json */);
|
|
2616
|
-
};
|
|
2617
|
-
api.remove = function (key, attributes) {
|
|
2618
|
-
set(key, '', extend(attributes, {
|
|
2619
|
-
expires: -1
|
|
2620
|
-
}));
|
|
2621
|
-
};
|
|
2622
|
-
|
|
2623
|
-
api.defaults = {};
|
|
2624
|
-
|
|
2625
|
-
api.withConverter = init;
|
|
2626
|
-
|
|
2627
|
-
return api;
|
|
2628
|
-
}
|
|
2629
|
-
|
|
2630
|
-
return init(function () {});
|
|
2631
|
-
}));
|
|
2632
|
-
|
|
2633
|
-
|
|
2634
|
-
/***/ }),
|
|
2635
|
-
|
|
2636
|
-
/***/ "ade3":
|
|
2637
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
2638
|
-
|
|
2639
|
-
"use strict";
|
|
2640
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _defineProperty; });
|
|
2641
|
-
function _defineProperty(obj, key, value) {
|
|
2642
|
-
if (key in obj) {
|
|
2643
|
-
Object.defineProperty(obj, key, {
|
|
2644
|
-
value: value,
|
|
2645
|
-
enumerable: true,
|
|
2646
|
-
configurable: true,
|
|
2647
|
-
writable: true
|
|
2648
|
-
});
|
|
2649
|
-
} else {
|
|
2650
|
-
obj[key] = value;
|
|
2651
|
-
}
|
|
2652
|
-
|
|
2653
|
-
return obj;
|
|
2654
|
-
}
|
|
2655
|
-
|
|
2656
|
-
/***/ }),
|
|
2657
|
-
|
|
2658
|
-
/***/ "afc5":
|
|
2659
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
2660
|
-
|
|
2661
|
-
module.exports = { "default": __webpack_require__("69b9"), __esModule: true };
|
|
2662
|
-
|
|
2663
|
-
/***/ }),
|
|
2664
|
-
|
|
2665
|
-
/***/ "b875":
|
|
2666
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
2667
|
-
|
|
2668
|
-
"use strict";
|
|
2669
|
-
|
|
2670
|
-
|
|
2671
|
-
var has = Object.prototype.hasOwnProperty
|
|
2672
|
-
, monster = __webpack_require__("f809")
|
|
2673
|
-
, qs = __webpack_require__("bf6a")
|
|
2674
|
-
, storage = {}
|
|
2675
|
-
, prefix = '§'
|
|
2676
|
-
, cookie;
|
|
2677
|
-
|
|
2678
|
-
//
|
|
2679
|
-
// The export interface of the cookie-monster module is quite odd, if there is
|
|
2680
|
-
// no `document` in global it will simply not export the `get` and `set`
|
|
2681
|
-
// methods. Causing this module to fail on `undefined` function calls. Default
|
|
2682
|
-
// to an empty object when document doesn't exists solves it.
|
|
2683
|
-
//
|
|
2684
|
-
cookie = monster('undefined' !== typeof document ? document : {});
|
|
2685
|
-
|
|
2686
|
-
/**
|
|
2687
|
-
* Refresh the storage as other users might also be writing against it.
|
|
2688
|
-
*
|
|
2689
|
-
* @api private
|
|
2690
|
-
*/
|
|
2691
|
-
function update() {
|
|
2692
|
-
if (!koekje.supported) return;
|
|
2693
|
-
|
|
2694
|
-
var data = cookie.getItem('koekje')
|
|
2695
|
-
, length = 0
|
|
2696
|
-
, key;
|
|
2697
|
-
|
|
2698
|
-
storage = data && data.charAt(0) === prefix
|
|
2699
|
-
? qs.parse(data.slice(1))
|
|
2700
|
-
: {};
|
|
2701
|
-
|
|
2702
|
-
for (key in storage) {
|
|
2703
|
-
if (has.call(storage, key)) length++;
|
|
2704
|
-
}
|
|
2705
|
-
|
|
2706
|
-
koekje.length = length;
|
|
2707
|
-
}
|
|
2708
|
-
|
|
2709
|
-
var koekje = module.exports = {
|
|
2710
|
-
/**
|
|
2711
|
-
* The total number items stored in the storage.
|
|
2712
|
-
*
|
|
2713
|
-
* @type {Number}
|
|
2714
|
-
* @public
|
|
2715
|
-
*/
|
|
2716
|
-
length: 0,
|
|
2717
|
-
|
|
2718
|
-
/**
|
|
2719
|
-
* Find an item in the storage.
|
|
2720
|
-
*
|
|
2721
|
-
* @param {String} key Name of the value we lookup.
|
|
2722
|
-
* @returns {String|Null} Found item or null.
|
|
2723
|
-
* @api public
|
|
2724
|
-
*/
|
|
2725
|
-
getItem: function getItem(key) {
|
|
2726
|
-
if (has.call(storage, key)) return storage[key];
|
|
2727
|
-
return null;
|
|
2728
|
-
},
|
|
2729
|
-
|
|
2730
|
-
/**
|
|
2731
|
-
* Add a new item in the storage.
|
|
2732
|
-
*
|
|
2733
|
-
* @param {String} key Name under which we store the value.
|
|
2734
|
-
* @param {String} value Value for the key.
|
|
2735
|
-
* @returns {Undefined}
|
|
2736
|
-
* @api public
|
|
2737
|
-
*/
|
|
2738
|
-
setItem: function setItem(key, value) {
|
|
2739
|
-
storage[key] = value;
|
|
2740
|
-
cookie.setItem('koekje', qs.stringify(storage, prefix));
|
|
2741
|
-
|
|
2742
|
-
koekje.length++;
|
|
2743
|
-
},
|
|
2744
|
-
|
|
2745
|
-
/**
|
|
2746
|
-
* Remove a single item from the storage.
|
|
2747
|
-
*
|
|
2748
|
-
* @param {String} key Name of the value we need to remove.
|
|
2749
|
-
* @returns {Undefined}
|
|
2750
|
-
* @api pubilc
|
|
2751
|
-
*/
|
|
2752
|
-
removeItem: function removeItem(key) {
|
|
2753
|
-
delete storage[key];
|
|
2754
|
-
cookie.setItem('koekje', qs.stringify(storage, prefix));
|
|
2755
|
-
|
|
2756
|
-
koekje.length--;
|
|
2757
|
-
},
|
|
2758
|
-
|
|
2759
|
-
/**
|
|
2760
|
-
* Completely remove all items from the store.
|
|
2761
|
-
*
|
|
2762
|
-
* @returns {Undefined}
|
|
2763
|
-
* @api pubilc
|
|
2764
|
-
*/
|
|
2765
|
-
clear: function clear() {
|
|
2766
|
-
storage = {};
|
|
2767
|
-
|
|
2768
|
-
cookie.setItem('koekje', '', {
|
|
2769
|
-
expires: new Date(0)
|
|
2770
|
-
});
|
|
2771
|
-
|
|
2772
|
-
koekje.length = 0;
|
|
2773
|
-
},
|
|
2774
|
-
|
|
2775
|
-
/**
|
|
2776
|
-
* Is this storage system supported in the current environment.
|
|
2777
|
-
*
|
|
2778
|
-
* @type {Boolean}
|
|
2779
|
-
* @public
|
|
2780
|
-
*/
|
|
2781
|
-
supported: (function supported() {
|
|
2782
|
-
return 'object' === typeof navigator && navigator.cookieEnabled;
|
|
2783
|
-
}()),
|
|
2784
|
-
|
|
2785
|
-
/**
|
|
2786
|
-
* Completely re-initiate the storage.
|
|
2787
|
-
*
|
|
2788
|
-
* @type {Function}
|
|
2789
|
-
* @api private
|
|
2790
|
-
*/
|
|
2791
|
-
update: update
|
|
2792
|
-
};
|
|
2793
|
-
|
|
2794
|
-
//
|
|
2795
|
-
// Make sure that we initialize the storage so it pre-fills the `.length`
|
|
2796
|
-
//
|
|
2797
|
-
update();
|
|
2798
|
-
|
|
2799
|
-
|
|
2800
|
-
/***/ }),
|
|
2801
|
-
|
|
2802
|
-
/***/ "bc95":
|
|
2803
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
2804
|
-
|
|
2805
|
-
module.exports = (function store() {
|
|
2806
|
-
'use strict';
|
|
2807
|
-
|
|
2808
|
-
function nope() { /* Fallback for when no store is supported */ }
|
|
2809
|
-
|
|
2810
|
-
try {
|
|
2811
|
-
sessionStorage.setItem('foo', 'bar');
|
|
2812
|
-
if (sessionStorage.getItem('foo') !== 'bar') throw 1;
|
|
2813
|
-
sessionStorage.removeItem('foo');
|
|
2814
|
-
} catch (e) {
|
|
2815
|
-
var objstorage = __webpack_require__("5082")
|
|
2816
|
-
, storage = __webpack_require__("746a")
|
|
2817
|
-
, koekje = __webpack_require__("b875");
|
|
2818
|
-
|
|
2819
|
-
return storage.supported ? storage : (koekje.supported ? koekje : objstorage);
|
|
2820
|
-
}
|
|
2821
|
-
|
|
2822
|
-
return sessionStorage;
|
|
2823
|
-
}());
|
|
2824
|
-
|
|
2825
|
-
|
|
2826
|
-
/***/ }),
|
|
2827
|
-
|
|
2828
|
-
/***/ "bd11":
|
|
2829
|
-
/***/ (function(module, exports) {
|
|
2830
|
-
|
|
2831
|
-
/**
|
|
2832
|
-
* Expose `pathtoRegexp`.
|
|
2833
|
-
*/
|
|
2834
|
-
|
|
2835
|
-
module.exports = pathtoRegexp;
|
|
2836
|
-
|
|
2837
|
-
/**
|
|
2838
|
-
* Match matching groups in a regular expression.
|
|
2839
|
-
*/
|
|
2840
|
-
var MATCHING_GROUP_REGEXP = /\((?!\?)/g;
|
|
2841
|
-
|
|
2842
|
-
/**
|
|
2843
|
-
* Normalize the given path string,
|
|
2844
|
-
* returning a regular expression.
|
|
2845
|
-
*
|
|
2846
|
-
* An empty array should be passed,
|
|
2847
|
-
* which will contain the placeholder
|
|
2848
|
-
* key names. For example "/user/:id" will
|
|
2849
|
-
* then contain ["id"].
|
|
2850
|
-
*
|
|
2851
|
-
* @param {String|RegExp|Array} path
|
|
2852
|
-
* @param {Array} keys
|
|
2853
|
-
* @param {Object} options
|
|
2854
|
-
* @return {RegExp}
|
|
2855
|
-
* @api private
|
|
2856
|
-
*/
|
|
2857
|
-
|
|
2858
|
-
function pathtoRegexp(path, keys, options) {
|
|
2859
|
-
options = options || {};
|
|
2860
|
-
keys = keys || [];
|
|
2861
|
-
var strict = options.strict;
|
|
2862
|
-
var end = options.end !== false;
|
|
2863
|
-
var flags = options.sensitive ? '' : 'i';
|
|
2864
|
-
var extraOffset = 0;
|
|
2865
|
-
var keysOffset = keys.length;
|
|
2866
|
-
var i = 0;
|
|
2867
|
-
var name = 0;
|
|
2868
|
-
var m;
|
|
2869
|
-
|
|
2870
|
-
if (path instanceof RegExp) {
|
|
2871
|
-
while (m = MATCHING_GROUP_REGEXP.exec(path.source)) {
|
|
2872
|
-
keys.push({
|
|
2873
|
-
name: name++,
|
|
2874
|
-
optional: false,
|
|
2875
|
-
offset: m.index
|
|
2876
|
-
});
|
|
2877
|
-
}
|
|
2878
|
-
|
|
2879
|
-
return path;
|
|
2880
|
-
}
|
|
2881
|
-
|
|
2882
|
-
if (Array.isArray(path)) {
|
|
2883
|
-
// Map array parts into regexps and return their source. We also pass
|
|
2884
|
-
// the same keys and options instance into every generation to get
|
|
2885
|
-
// consistent matching groups before we join the sources together.
|
|
2886
|
-
path = path.map(function (value) {
|
|
2887
|
-
return pathtoRegexp(value, keys, options).source;
|
|
2888
|
-
});
|
|
2889
|
-
|
|
2890
|
-
return new RegExp('(?:' + path.join('|') + ')', flags);
|
|
2891
|
-
}
|
|
2892
|
-
|
|
2893
|
-
path = ('^' + path + (strict ? '' : path[path.length - 1] === '/' ? '?' : '/?'))
|
|
2894
|
-
.replace(/\/\(/g, '/(?:')
|
|
2895
|
-
.replace(/([\/\.])/g, '\\$1')
|
|
2896
|
-
.replace(/(\\\/)?(\\\.)?:(\w+)(\(.*?\))?(\*)?(\?)?/g, function (match, slash, format, key, capture, star, optional, offset) {
|
|
2897
|
-
slash = slash || '';
|
|
2898
|
-
format = format || '';
|
|
2899
|
-
capture = capture || '([^\\/' + format + ']+?)';
|
|
2900
|
-
optional = optional || '';
|
|
2901
|
-
|
|
2902
|
-
keys.push({
|
|
2903
|
-
name: key,
|
|
2904
|
-
optional: !!optional,
|
|
2905
|
-
offset: offset + extraOffset
|
|
2906
|
-
});
|
|
2907
|
-
|
|
2908
|
-
var result = ''
|
|
2909
|
-
+ (optional ? '' : slash)
|
|
2910
|
-
+ '(?:'
|
|
2911
|
-
+ format + (optional ? slash : '') + capture
|
|
2912
|
-
+ (star ? '((?:[\\/' + format + '].+?)?)' : '')
|
|
2913
|
-
+ ')'
|
|
2914
|
-
+ optional;
|
|
2915
|
-
|
|
2916
|
-
extraOffset += result.length - match.length;
|
|
2917
|
-
|
|
2918
|
-
return result;
|
|
2919
|
-
})
|
|
2920
|
-
.replace(/\*/g, function (star, index) {
|
|
2921
|
-
var len = keys.length
|
|
2922
|
-
|
|
2923
|
-
while (len-- > keysOffset && keys[len].offset > index) {
|
|
2924
|
-
keys[len].offset += 3; // Replacement length minus asterisk length.
|
|
2925
|
-
}
|
|
2926
|
-
|
|
2927
|
-
return '(.*)';
|
|
2928
|
-
});
|
|
2929
|
-
|
|
2930
|
-
// This is a workaround for handling unnamed matching groups.
|
|
2931
|
-
while (m = MATCHING_GROUP_REGEXP.exec(path)) {
|
|
2932
|
-
var escapeCount = 0;
|
|
2933
|
-
var index = m.index;
|
|
2934
|
-
|
|
2935
|
-
while (path.charAt(--index) === '\\') {
|
|
2936
|
-
escapeCount++;
|
|
2937
|
-
}
|
|
2938
|
-
|
|
2939
|
-
// It's possible to escape the bracket.
|
|
2940
|
-
if (escapeCount % 2 === 1) {
|
|
2941
|
-
continue;
|
|
2942
|
-
}
|
|
2943
|
-
|
|
2944
|
-
if (keysOffset + i === keys.length || keys[keysOffset + i].offset > m.index) {
|
|
2945
|
-
keys.splice(keysOffset + i, 0, {
|
|
2946
|
-
name: name++, // Unnamed matching groups must be consistently linear.
|
|
2947
|
-
optional: false,
|
|
2948
|
-
offset: m.index
|
|
2949
|
-
});
|
|
2950
|
-
}
|
|
2951
|
-
|
|
2952
|
-
i++;
|
|
2953
|
-
}
|
|
2954
|
-
|
|
2955
|
-
// If the path is non-ending, match until the end or a slash.
|
|
2956
|
-
path += (end ? '$' : (path[path.length - 1] === '/' ? '' : '(?=\\/|$)'));
|
|
2957
|
-
|
|
2958
|
-
return new RegExp(path, flags);
|
|
2959
|
-
};
|
|
2960
|
-
|
|
2961
|
-
|
|
2962
|
-
/***/ }),
|
|
2963
|
-
|
|
2964
|
-
/***/ "bee2":
|
|
2965
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
2966
|
-
|
|
2967
|
-
"use strict";
|
|
2968
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _createClass; });
|
|
2969
|
-
function _defineProperties(target, props) {
|
|
2970
|
-
for (var i = 0; i < props.length; i++) {
|
|
2971
|
-
var descriptor = props[i];
|
|
2972
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
2973
|
-
descriptor.configurable = true;
|
|
2974
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
2975
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
2976
|
-
}
|
|
2977
|
-
}
|
|
2978
|
-
|
|
2979
|
-
function _createClass(Constructor, protoProps, staticProps) {
|
|
2980
|
-
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
2981
|
-
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
2982
|
-
return Constructor;
|
|
2983
|
-
}
|
|
2984
|
-
|
|
2985
|
-
/***/ }),
|
|
2986
|
-
|
|
2987
|
-
/***/ "bf6a":
|
|
2988
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
2989
|
-
|
|
2990
|
-
"use strict";
|
|
2991
|
-
|
|
2992
|
-
|
|
2993
|
-
var has = Object.prototype.hasOwnProperty;
|
|
2994
|
-
|
|
2995
|
-
/**
|
|
2996
|
-
* Decode a URI encoded string.
|
|
2997
|
-
*
|
|
2998
|
-
* @param {String} input The URI encoded string.
|
|
2999
|
-
* @returns {String} The decoded string.
|
|
3000
|
-
* @api private
|
|
3001
|
-
*/
|
|
3002
|
-
function decode(input) {
|
|
3003
|
-
return decodeURIComponent(input.replace(/\+/g, ' '));
|
|
3004
|
-
}
|
|
3005
|
-
|
|
3006
|
-
/**
|
|
3007
|
-
* Simple query string parser.
|
|
3008
|
-
*
|
|
3009
|
-
* @param {String} query The query string that needs to be parsed.
|
|
3010
|
-
* @returns {Object}
|
|
3011
|
-
* @api public
|
|
3012
|
-
*/
|
|
3013
|
-
function querystring(query) {
|
|
3014
|
-
var parser = /([^=?&]+)=?([^&]*)/g
|
|
3015
|
-
, result = {}
|
|
3016
|
-
, part;
|
|
3017
|
-
|
|
3018
|
-
//
|
|
3019
|
-
// Little nifty parsing hack, leverage the fact that RegExp.exec increments
|
|
3020
|
-
// the lastIndex property so we can continue executing this loop until we've
|
|
3021
|
-
// parsed all results.
|
|
3022
|
-
//
|
|
3023
|
-
for (;
|
|
3024
|
-
part = parser.exec(query);
|
|
3025
|
-
result[decode(part[1])] = decode(part[2])
|
|
3026
|
-
);
|
|
3027
|
-
|
|
3028
|
-
return result;
|
|
3029
|
-
}
|
|
3030
|
-
|
|
3031
|
-
/**
|
|
3032
|
-
* Transform a query string to an object.
|
|
3033
|
-
*
|
|
3034
|
-
* @param {Object} obj Object that should be transformed.
|
|
3035
|
-
* @param {String} prefix Optional prefix.
|
|
3036
|
-
* @returns {String}
|
|
3037
|
-
* @api public
|
|
3038
|
-
*/
|
|
3039
|
-
function querystringify(obj, prefix) {
|
|
3040
|
-
prefix = prefix || '';
|
|
3041
|
-
|
|
3042
|
-
var pairs = [];
|
|
3043
|
-
|
|
3044
|
-
//
|
|
3045
|
-
// Optionally prefix with a '?' if needed
|
|
3046
|
-
//
|
|
3047
|
-
if ('string' !== typeof prefix) prefix = '?';
|
|
3048
|
-
|
|
3049
|
-
for (var key in obj) {
|
|
3050
|
-
if (has.call(obj, key)) {
|
|
3051
|
-
pairs.push(encodeURIComponent(key) +'='+ encodeURIComponent(obj[key]));
|
|
3052
|
-
}
|
|
3053
|
-
}
|
|
3054
|
-
|
|
3055
|
-
return pairs.length ? prefix + pairs.join('&') : '';
|
|
3056
|
-
}
|
|
3057
|
-
|
|
3058
|
-
//
|
|
3059
|
-
// Expose the module.
|
|
3060
|
-
//
|
|
3061
|
-
exports.stringify = querystringify;
|
|
3062
|
-
exports.parse = querystring;
|
|
3063
|
-
|
|
3064
|
-
|
|
3065
|
-
/***/ }),
|
|
3066
|
-
|
|
3067
|
-
/***/ "c098":
|
|
3068
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
3069
|
-
|
|
3070
|
-
module.exports = __webpack_require__("d4af");
|
|
3071
|
-
|
|
3072
|
-
|
|
3073
|
-
/***/ }),
|
|
3074
|
-
|
|
3075
|
-
/***/ "c8ba":
|
|
3076
|
-
/***/ (function(module, exports) {
|
|
3077
|
-
|
|
3078
|
-
var g;
|
|
3079
|
-
|
|
3080
|
-
// This works in non-strict mode
|
|
3081
|
-
g = (function() {
|
|
3082
|
-
return this;
|
|
3083
|
-
})();
|
|
3084
|
-
|
|
3085
|
-
try {
|
|
3086
|
-
// This works if eval is allowed (see CSP)
|
|
3087
|
-
g = g || new Function("return this")();
|
|
3088
|
-
} catch (e) {
|
|
3089
|
-
// This works if the window reference is available
|
|
3090
|
-
if (typeof window === "object") g = window;
|
|
3091
|
-
}
|
|
3092
|
-
|
|
3093
|
-
// g can still be undefined, but nothing to do about it...
|
|
3094
|
-
// We return undefined, instead of nothing here, so it's
|
|
3095
|
-
// easier to handle this case. if(!global) { ...}
|
|
3096
|
-
|
|
3097
|
-
module.exports = g;
|
|
3098
|
-
|
|
3099
|
-
|
|
3100
|
-
/***/ }),
|
|
3101
|
-
|
|
3102
|
-
/***/ "d4af":
|
|
3103
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
3104
|
-
|
|
3105
|
-
"use strict";
|
|
3106
|
-
/**
|
|
3107
|
-
* Copyright (c) 2015, Facebook, Inc.
|
|
3108
|
-
* All rights reserved.
|
|
3109
|
-
*
|
|
3110
|
-
* This source code is licensed under the BSD-style license found in the
|
|
3111
|
-
* LICENSE file in the root directory of this source tree. An additional grant
|
|
3112
|
-
* of patent rights can be found in the PATENTS file in the same directory.
|
|
3113
|
-
*
|
|
3114
|
-
* @providesModule normalizeWheel
|
|
3115
|
-
* @typechecks
|
|
3116
|
-
*/
|
|
3117
|
-
|
|
3118
|
-
|
|
3119
|
-
|
|
3120
|
-
var UserAgent_DEPRECATED = __webpack_require__("8eb7");
|
|
3121
|
-
|
|
3122
|
-
var isEventSupported = __webpack_require__("7b3e");
|
|
3123
|
-
|
|
3124
|
-
|
|
3125
|
-
// Reasonable defaults
|
|
3126
|
-
var PIXEL_STEP = 10;
|
|
3127
|
-
var LINE_HEIGHT = 40;
|
|
3128
|
-
var PAGE_HEIGHT = 800;
|
|
3129
|
-
|
|
3130
|
-
/**
|
|
3131
|
-
* Mouse wheel (and 2-finger trackpad) support on the web sucks. It is
|
|
3132
|
-
* complicated, thus this doc is long and (hopefully) detailed enough to answer
|
|
3133
|
-
* your questions.
|
|
3134
|
-
*
|
|
3135
|
-
* If you need to react to the mouse wheel in a predictable way, this code is
|
|
3136
|
-
* like your bestest friend. * hugs *
|
|
3137
|
-
*
|
|
3138
|
-
* As of today, there are 4 DOM event types you can listen to:
|
|
3139
|
-
*
|
|
3140
|
-
* 'wheel' -- Chrome(31+), FF(17+), IE(9+)
|
|
3141
|
-
* 'mousewheel' -- Chrome, IE(6+), Opera, Safari
|
|
3142
|
-
* 'MozMousePixelScroll' -- FF(3.5 only!) (2010-2013) -- don't bother!
|
|
3143
|
-
* 'DOMMouseScroll' -- FF(0.9.7+) since 2003
|
|
3144
|
-
*
|
|
3145
|
-
* So what to do? The is the best:
|
|
3146
|
-
*
|
|
3147
|
-
* normalizeWheel.getEventType();
|
|
3148
|
-
*
|
|
3149
|
-
* In your event callback, use this code to get sane interpretation of the
|
|
3150
|
-
* deltas. This code will return an object with properties:
|
|
3151
|
-
*
|
|
3152
|
-
* spinX -- normalized spin speed (use for zoom) - x plane
|
|
3153
|
-
* spinY -- " - y plane
|
|
3154
|
-
* pixelX -- normalized distance (to pixels) - x plane
|
|
3155
|
-
* pixelY -- " - y plane
|
|
3156
|
-
*
|
|
3157
|
-
* Wheel values are provided by the browser assuming you are using the wheel to
|
|
3158
|
-
* scroll a web page by a number of lines or pixels (or pages). Values can vary
|
|
3159
|
-
* significantly on different platforms and browsers, forgetting that you can
|
|
3160
|
-
* scroll at different speeds. Some devices (like trackpads) emit more events
|
|
3161
|
-
* at smaller increments with fine granularity, and some emit massive jumps with
|
|
3162
|
-
* linear speed or acceleration.
|
|
3163
|
-
*
|
|
3164
|
-
* This code does its best to normalize the deltas for you:
|
|
3165
|
-
*
|
|
3166
|
-
* - spin is trying to normalize how far the wheel was spun (or trackpad
|
|
3167
|
-
* dragged). This is super useful for zoom support where you want to
|
|
3168
|
-
* throw away the chunky scroll steps on the PC and make those equal to
|
|
3169
|
-
* the slow and smooth tiny steps on the Mac. Key data: This code tries to
|
|
3170
|
-
* resolve a single slow step on a wheel to 1.
|
|
3171
|
-
*
|
|
3172
|
-
* - pixel is normalizing the desired scroll delta in pixel units. You'll
|
|
3173
|
-
* get the crazy differences between browsers, but at least it'll be in
|
|
3174
|
-
* pixels!
|
|
3175
|
-
*
|
|
3176
|
-
* - positive value indicates scrolling DOWN/RIGHT, negative UP/LEFT. This
|
|
3177
|
-
* should translate to positive value zooming IN, negative zooming OUT.
|
|
3178
|
-
* This matches the newer 'wheel' event.
|
|
3179
|
-
*
|
|
3180
|
-
* Why are there spinX, spinY (or pixels)?
|
|
3181
|
-
*
|
|
3182
|
-
* - spinX is a 2-finger side drag on the trackpad, and a shift + wheel turn
|
|
3183
|
-
* with a mouse. It results in side-scrolling in the browser by default.
|
|
3184
|
-
*
|
|
3185
|
-
* - spinY is what you expect -- it's the classic axis of a mouse wheel.
|
|
3186
|
-
*
|
|
3187
|
-
* - I dropped spinZ/pixelZ. It is supported by the DOM 3 'wheel' event and
|
|
3188
|
-
* probably is by browsers in conjunction with fancy 3D controllers .. but
|
|
3189
|
-
* you know.
|
|
3190
|
-
*
|
|
3191
|
-
* Implementation info:
|
|
3192
|
-
*
|
|
3193
|
-
* Examples of 'wheel' event if you scroll slowly (down) by one step with an
|
|
3194
|
-
* average mouse:
|
|
3195
|
-
*
|
|
3196
|
-
* OS X + Chrome (mouse) - 4 pixel delta (wheelDelta -120)
|
|
3197
|
-
* OS X + Safari (mouse) - N/A pixel delta (wheelDelta -12)
|
|
3198
|
-
* OS X + Firefox (mouse) - 0.1 line delta (wheelDelta N/A)
|
|
3199
|
-
* Win8 + Chrome (mouse) - 100 pixel delta (wheelDelta -120)
|
|
3200
|
-
* Win8 + Firefox (mouse) - 3 line delta (wheelDelta -120)
|
|
3201
|
-
*
|
|
3202
|
-
* On the trackpad:
|
|
3203
|
-
*
|
|
3204
|
-
* OS X + Chrome (trackpad) - 2 pixel delta (wheelDelta -6)
|
|
3205
|
-
* OS X + Firefox (trackpad) - 1 pixel delta (wheelDelta N/A)
|
|
3206
|
-
*
|
|
3207
|
-
* On other/older browsers.. it's more complicated as there can be multiple and
|
|
3208
|
-
* also missing delta values.
|
|
3209
|
-
*
|
|
3210
|
-
* The 'wheel' event is more standard:
|
|
3211
|
-
*
|
|
3212
|
-
* http://www.w3.org/TR/DOM-Level-3-Events/#events-wheelevents
|
|
3213
|
-
*
|
|
3214
|
-
* The basics is that it includes a unit, deltaMode (pixels, lines, pages), and
|
|
3215
|
-
* deltaX, deltaY and deltaZ. Some browsers provide other values to maintain
|
|
3216
|
-
* backward compatibility with older events. Those other values help us
|
|
3217
|
-
* better normalize spin speed. Example of what the browsers provide:
|
|
3218
|
-
*
|
|
3219
|
-
* | event.wheelDelta | event.detail
|
|
3220
|
-
* ------------------+------------------+--------------
|
|
3221
|
-
* Safari v5/OS X | -120 | 0
|
|
3222
|
-
* Safari v5/Win7 | -120 | 0
|
|
3223
|
-
* Chrome v17/OS X | -120 | 0
|
|
3224
|
-
* Chrome v17/Win7 | -120 | 0
|
|
3225
|
-
* IE9/Win7 | -120 | undefined
|
|
3226
|
-
* Firefox v4/OS X | undefined | 1
|
|
3227
|
-
* Firefox v4/Win7 | undefined | 3
|
|
3228
|
-
*
|
|
3229
|
-
*/
|
|
3230
|
-
function normalizeWheel(/*object*/ event) /*object*/ {
|
|
3231
|
-
var sX = 0, sY = 0, // spinX, spinY
|
|
3232
|
-
pX = 0, pY = 0; // pixelX, pixelY
|
|
3233
|
-
|
|
3234
|
-
// Legacy
|
|
3235
|
-
if ('detail' in event) { sY = event.detail; }
|
|
3236
|
-
if ('wheelDelta' in event) { sY = -event.wheelDelta / 120; }
|
|
3237
|
-
if ('wheelDeltaY' in event) { sY = -event.wheelDeltaY / 120; }
|
|
3238
|
-
if ('wheelDeltaX' in event) { sX = -event.wheelDeltaX / 120; }
|
|
3239
|
-
|
|
3240
|
-
// side scrolling on FF with DOMMouseScroll
|
|
3241
|
-
if ( 'axis' in event && event.axis === event.HORIZONTAL_AXIS ) {
|
|
3242
|
-
sX = sY;
|
|
3243
|
-
sY = 0;
|
|
3244
|
-
}
|
|
3245
|
-
|
|
3246
|
-
pX = sX * PIXEL_STEP;
|
|
3247
|
-
pY = sY * PIXEL_STEP;
|
|
3248
|
-
|
|
3249
|
-
if ('deltaY' in event) { pY = event.deltaY; }
|
|
3250
|
-
if ('deltaX' in event) { pX = event.deltaX; }
|
|
3251
|
-
|
|
3252
|
-
if ((pX || pY) && event.deltaMode) {
|
|
3253
|
-
if (event.deltaMode == 1) { // delta in LINE units
|
|
3254
|
-
pX *= LINE_HEIGHT;
|
|
3255
|
-
pY *= LINE_HEIGHT;
|
|
3256
|
-
} else { // delta in PAGE units
|
|
3257
|
-
pX *= PAGE_HEIGHT;
|
|
3258
|
-
pY *= PAGE_HEIGHT;
|
|
3259
|
-
}
|
|
3260
|
-
}
|
|
3261
|
-
|
|
3262
|
-
// Fall-back if spin cannot be determined
|
|
3263
|
-
if (pX && !sX) { sX = (pX < 1) ? -1 : 1; }
|
|
3264
|
-
if (pY && !sY) { sY = (pY < 1) ? -1 : 1; }
|
|
3265
|
-
|
|
3266
|
-
return { spinX : sX,
|
|
3267
|
-
spinY : sY,
|
|
3268
|
-
pixelX : pX,
|
|
3269
|
-
pixelY : pY };
|
|
3270
|
-
}
|
|
3271
|
-
|
|
3272
|
-
|
|
3273
|
-
/**
|
|
3274
|
-
* The best combination if you prefer spinX + spinY normalization. It favors
|
|
3275
|
-
* the older DOMMouseScroll for Firefox, as FF does not include wheelDelta with
|
|
3276
|
-
* 'wheel' event, making spin speed determination impossible.
|
|
3277
|
-
*/
|
|
3278
|
-
normalizeWheel.getEventType = function() /*string*/ {
|
|
3279
|
-
return (UserAgent_DEPRECATED.firefox())
|
|
3280
|
-
? 'DOMMouseScroll'
|
|
3281
|
-
: (isEventSupported('wheel'))
|
|
3282
|
-
? 'wheel'
|
|
3283
|
-
: 'mousewheel';
|
|
3284
|
-
};
|
|
3285
|
-
|
|
3286
|
-
module.exports = normalizeWheel;
|
|
3287
|
-
|
|
3288
|
-
|
|
3289
|
-
/***/ }),
|
|
3290
|
-
|
|
3291
|
-
/***/ "d4ec":
|
|
3292
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
3293
|
-
|
|
3294
|
-
"use strict";
|
|
3295
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _classCallCheck; });
|
|
3296
|
-
function _classCallCheck(instance, Constructor) {
|
|
3297
|
-
if (!(instance instanceof Constructor)) {
|
|
3298
|
-
throw new TypeError("Cannot call a class as a function");
|
|
3299
|
-
}
|
|
3300
|
-
}
|
|
3301
|
-
|
|
3302
|
-
/***/ }),
|
|
3303
|
-
|
|
3304
|
-
/***/ "e1de":
|
|
3305
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
3306
|
-
|
|
3307
|
-
module.exports = { "default": __webpack_require__("696e"), __esModule: true };
|
|
3308
|
-
|
|
3309
|
-
/***/ }),
|
|
3310
|
-
|
|
3311
|
-
/***/ "f6fd":
|
|
3312
|
-
/***/ (function(module, exports) {
|
|
3313
|
-
|
|
3314
|
-
// document.currentScript polyfill by Adam Miller
|
|
3315
|
-
|
|
3316
|
-
// MIT license
|
|
3317
|
-
|
|
3318
|
-
(function(document){
|
|
3319
|
-
var currentScript = "currentScript",
|
|
3320
|
-
scripts = document.getElementsByTagName('script'); // Live NodeList collection
|
|
3321
|
-
|
|
3322
|
-
// If browser needs currentScript polyfill, add get currentScript() to the document object
|
|
3323
|
-
if (!(currentScript in document)) {
|
|
3324
|
-
Object.defineProperty(document, currentScript, {
|
|
3325
|
-
get: function(){
|
|
3326
|
-
|
|
3327
|
-
// IE 6-10 supports script readyState
|
|
3328
|
-
// IE 10+ support stack trace
|
|
3329
|
-
try { throw new Error(); }
|
|
3330
|
-
catch (err) {
|
|
3331
|
-
|
|
3332
|
-
// Find the second match for the "at" string to get file src url from stack.
|
|
3333
|
-
// Specifically works with the format of stack traces in IE.
|
|
3334
|
-
var i, res = ((/.*at [^\(]*\((.*):.+:.+\)$/ig).exec(err.stack) || [false])[1];
|
|
3335
|
-
|
|
3336
|
-
// For all scripts on the page, if src matches or if ready state is interactive, return the script tag
|
|
3337
|
-
for(i in scripts){
|
|
3338
|
-
if(scripts[i].src == res || scripts[i].readyState == "interactive"){
|
|
3339
|
-
return scripts[i];
|
|
3340
|
-
}
|
|
3341
|
-
}
|
|
3342
|
-
|
|
3343
|
-
// If no match, return null
|
|
3344
|
-
return null;
|
|
3345
|
-
}
|
|
3346
|
-
}
|
|
3347
|
-
});
|
|
3348
|
-
}
|
|
3349
|
-
})(document);
|
|
3350
|
-
|
|
3351
|
-
|
|
3352
|
-
/***/ }),
|
|
3353
|
-
|
|
3354
|
-
/***/ "f809":
|
|
3355
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
3356
|
-
|
|
3357
|
-
"use strict";
|
|
3358
|
-
|
|
3359
|
-
|
|
3360
|
-
/**
|
|
3361
|
-
* Cookie creation interface.
|
|
3362
|
-
*
|
|
3363
|
-
* @param {Object} doc Reference to the document.
|
|
3364
|
-
* @returns {Object} Session storage inspired API.
|
|
3365
|
-
* @public
|
|
3366
|
-
*/
|
|
3367
|
-
module.exports = function bake(doc){
|
|
3368
|
-
if(!doc) doc = {};
|
|
3369
|
-
if(typeof doc === 'string') doc = { cookie: doc };
|
|
3370
|
-
if(doc.cookie === undefined) doc.cookie = '';
|
|
3371
|
-
|
|
3372
|
-
// Returning object
|
|
3373
|
-
var self = {
|
|
3374
|
-
/**
|
|
3375
|
-
* Get the contents of a cookie.
|
|
3376
|
-
*
|
|
3377
|
-
* @param {String} key Name of the cookie we want to fetch.
|
|
3378
|
-
* @returns {String|Undefined} Result of the cookie or nothing.
|
|
3379
|
-
* @public
|
|
3380
|
-
*/
|
|
3381
|
-
getItem: function getItem(key){
|
|
3382
|
-
var cookiesSplat = doc.cookie.split(/;\s*/);
|
|
3383
|
-
|
|
3384
|
-
for (var i = 0; i < cookiesSplat.length; i++) {
|
|
3385
|
-
var ps = cookiesSplat[i].split('=');
|
|
3386
|
-
var k = decodeURIComponent(ps[0]);
|
|
3387
|
-
if (k === key) return decodeURIComponent(ps[1]);
|
|
3388
|
-
}
|
|
3389
|
-
},
|
|
3390
|
-
|
|
3391
|
-
/**
|
|
3392
|
-
* Set a new cookie.
|
|
3393
|
-
*
|
|
3394
|
-
* @param {String} key Name of the cookie.
|
|
3395
|
-
* @param {String} value Data for the cookie.
|
|
3396
|
-
* @param {Object} opts Options for the cookie setting
|
|
3397
|
-
* @returns {String} Cookie.
|
|
3398
|
-
* @public
|
|
3399
|
-
*/
|
|
3400
|
-
setItem: function setItem(key, value, opts){
|
|
3401
|
-
// Checks before we start
|
|
3402
|
-
if (typeof key !== 'string' || typeof value !== 'string') return false;
|
|
3403
|
-
if (!opts) opts = {};
|
|
3404
|
-
|
|
3405
|
-
// Creating new cookie string
|
|
3406
|
-
var newCookie = encodeURIComponent(key) + '=' + encodeURIComponent(value);
|
|
3407
|
-
if (opts.hasOwnProperty('expires')) newCookie += '; expires=' + opts.expires;
|
|
3408
|
-
if (opts.hasOwnProperty('path')) newCookie += '; path=' + opts.path;
|
|
3409
|
-
if (opts.hasOwnProperty('domain')) newCookie += '; domain=' + opts.domain;
|
|
3410
|
-
if (opts.secure) newCookie += '; secure';
|
|
3411
|
-
|
|
3412
|
-
doc.cookie = newCookie;
|
|
3413
|
-
return newCookie;
|
|
3414
|
-
},
|
|
3415
|
-
|
|
3416
|
-
/**
|
|
3417
|
-
* Remove a cookie.
|
|
3418
|
-
*
|
|
3419
|
-
* @param {String} key Name of the cookie.
|
|
3420
|
-
* @returns {Undefined} Void.
|
|
3421
|
-
* @public
|
|
3422
|
-
*/
|
|
3423
|
-
removeItem: function removeCookie(key){
|
|
3424
|
-
doc.cookie = key + '=;expires=Thu, 01 Jan 1970 00:00:01 GMT;';
|
|
3425
|
-
},
|
|
3426
|
-
|
|
3427
|
-
/**
|
|
3428
|
-
* Clear all cookies.
|
|
3429
|
-
*
|
|
3430
|
-
* @returns {Undefined} Void.
|
|
3431
|
-
* @public
|
|
3432
|
-
*/
|
|
3433
|
-
clear: function clear(){
|
|
3434
|
-
var cookiesSplat = doc.cookie.split(/;\s*/);
|
|
3435
|
-
for (var i = 0; i < cookiesSplat.length; i++) {
|
|
3436
|
-
self.removeItem(decodeURIComponent(cookiesSplat[i].split('=')[0]));
|
|
3437
|
-
}
|
|
3438
|
-
}
|
|
3439
|
-
};
|
|
3440
|
-
|
|
3441
|
-
return self;
|
|
3442
|
-
};
|
|
3443
|
-
|
|
3444
|
-
|
|
3445
|
-
/***/ }),
|
|
3446
|
-
|
|
3447
|
-
/***/ "f848":
|
|
3448
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
3449
|
-
|
|
3450
|
-
module.exports = { "default": __webpack_require__("4dc9"), __esModule: true };
|
|
3451
|
-
|
|
3452
|
-
/***/ }),
|
|
3453
|
-
|
|
3454
|
-
/***/ "f893":
|
|
3455
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
3456
|
-
|
|
3457
|
-
module.exports = { "default": __webpack_require__("f921"), __esModule: true };
|
|
3458
|
-
|
|
3459
|
-
/***/ }),
|
|
3460
|
-
|
|
3461
|
-
/***/ "fb15":
|
|
3462
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
3463
|
-
|
|
3464
|
-
"use strict";
|
|
3465
|
-
__webpack_require__.r(__webpack_exports__);
|
|
3466
|
-
|
|
3467
|
-
// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js
|
|
3468
|
-
// This file is imported into lib/wc client bundles.
|
|
3469
|
-
|
|
3470
|
-
if (typeof window !== 'undefined') {
|
|
3471
|
-
if (true) {
|
|
3472
|
-
__webpack_require__("f6fd")
|
|
3473
|
-
}
|
|
3474
|
-
|
|
3475
|
-
var i
|
|
3476
|
-
if ((i = window.document.currentScript) && (i = i.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))) {
|
|
3477
|
-
__webpack_require__.p = i[1] // eslint-disable-line
|
|
3478
|
-
}
|
|
3479
|
-
}
|
|
3480
|
-
|
|
3481
|
-
// Indicate to webpack that this file can be concatenated
|
|
3482
|
-
/* harmony default export */ var setPublicPath = (null);
|
|
3483
|
-
|
|
3484
|
-
// EXTERNAL MODULE: ./packages/index.js + 108 modules
|
|
3485
|
-
var packages_0 = __webpack_require__("3a0d");
|
|
3486
|
-
|
|
3487
|
-
// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js
|
|
3488
|
-
|
|
3489
|
-
|
|
3490
|
-
/* harmony default export */ var entry_lib = __webpack_exports__["default"] = (packages_0["a" /* default */]);
|
|
3491
|
-
|
|
3492
|
-
|
|
3493
|
-
|
|
3494
|
-
/***/ }),
|
|
3495
|
-
|
|
3496
|
-
/***/ "fdfd":
|
|
3497
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
3498
|
-
|
|
3499
|
-
module.exports = { "default": __webpack_require__("9e1c"), __esModule: true };
|
|
3500
|
-
|
|
3501
|
-
/***/ })
|
|
3502
|
-
|
|
3503
|
-
}]);
|
|
3504
|
-
//# sourceMappingURL=super-ui.common.vendors~super-ui.common~253ae210.js.map
|