@telsho/react-google-flight-datepicker 1.0.5 → 1.0.6
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/dist/back-CP7UAS2G.svg +1 -0
- package/dist/calendar-P2OTLJJM.svg +1 -0
- package/dist/index.css +2 -0
- package/dist/index.css.map +1 -0
- package/dist/index.d.mts +47 -0
- package/dist/index.d.ts +47 -7
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +1 -0
- package/dist/index.mjs.map +1 -0
- package/dist/next-EJ77CHMG.svg +1 -0
- package/dist/prev-XR4S5NRO.svg +1 -0
- package/package.json +12 -27
- package/dist/index.d.ts.gz +0 -0
- package/dist/main.2e27bdd8ff7277467b40.hot-update.js +0 -136
- package/dist/main.2e27bdd8ff7277467b40.hot-update.js.gz +0 -0
- package/dist/main.2e27bdd8ff7277467b40.hot-update.js.map +0 -1
- package/dist/main.2e27bdd8ff7277467b40.hot-update.js.map.gz +0 -0
- package/dist/main.2e27bdd8ff7277467b40.hot-update.json +0 -1
- package/dist/main.7ecf6367a33877ea7ba6.hot-update.js +0 -185
- package/dist/main.7ecf6367a33877ea7ba6.hot-update.js.gz +0 -0
- package/dist/main.7ecf6367a33877ea7ba6.hot-update.js.map +0 -1
- package/dist/main.7ecf6367a33877ea7ba6.hot-update.js.map.gz +0 -0
- package/dist/main.7ecf6367a33877ea7ba6.hot-update.json +0 -1
- package/dist/main.js +0 -4256
- package/dist/main.js.gz +0 -0
- package/dist/main.js.map +0 -1
- package/dist/main.js.map.gz +0 -0
- package/dist/vendors-node_modules_a.js +0 -1063
- package/dist/vendors-node_modules_a.js.gz +0 -0
- package/dist/vendors-node_modules_a.js.map +0 -1
- package/dist/vendors-node_modules_a.js.map.gz +0 -0
- package/dist/vendors-node_modules_h.js +0 -112
- package/dist/vendors-node_modules_h.js.gz +0 -0
- package/dist/vendors-node_modules_h.js.map +0 -1
- package/dist/vendors-node_modules_h.js.map.gz +0 -0
- package/dist/vendors-node_modules_r.js +0 -4788
- package/dist/vendors-node_modules_r.js.gz +0 -0
- package/dist/vendors-node_modules_r.js.map +0 -1
- package/dist/vendors-node_modules_r.js.map.gz +0 -0
- package/dist/vendors-node_modules_react-d.js +0 -2593
- package/dist/vendors-node_modules_react-d.js.gz +0 -0
- package/dist/vendors-node_modules_react-d.js.map +0 -1
- package/dist/vendors-node_modules_react-d.js.map.gz +0 -0
- package/dist/vendors-node_modules_react-dom_cjs_react-dom_development_js-61bb2bf2.js +0 -29933
- package/dist/vendors-node_modules_react-dom_cjs_react-dom_development_js-61bb2bf2.js.gz +0 -0
- package/dist/vendors-node_modules_react-dom_cjs_react-dom_development_js-61bb2bf2.js.map +0 -1
- package/dist/vendors-node_modules_react-dom_cjs_react-dom_development_js-61bb2bf2.js.map.gz +0 -0
- package/dist/vendors-node_modules_s.js +0 -2807
- package/dist/vendors-node_modules_s.js.gz +0 -0
- package/dist/vendors-node_modules_s.js.map +0 -1
- package/dist/vendors-node_modules_s.js.map.gz +0 -0
|
@@ -1,1063 +0,0 @@
|
|
|
1
|
-
(self["webpackChunk_telsho_react_google_flight_datepicker"] = self["webpackChunk_telsho_react_google_flight_datepicker"] || []).push([["vendors-node_modules_a"],{
|
|
2
|
-
|
|
3
|
-
/***/ "./node_modules/ansi-html-community/index.js":
|
|
4
|
-
/*!***************************************************!*\
|
|
5
|
-
!*** ./node_modules/ansi-html-community/index.js ***!
|
|
6
|
-
\***************************************************/
|
|
7
|
-
/***/ ((module) => {
|
|
8
|
-
|
|
9
|
-
"use strict";
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
module.exports = ansiHTML
|
|
13
|
-
|
|
14
|
-
// Reference to https://github.com/sindresorhus/ansi-regex
|
|
15
|
-
var _regANSI = /(?:(?:\u001b\[)|\u009b)(?:(?:[0-9]{1,3})?(?:(?:;[0-9]{0,3})*)?[A-M|f-m])|\u001b[A-M]/
|
|
16
|
-
|
|
17
|
-
var _defColors = {
|
|
18
|
-
reset: ['fff', '000'], // [FOREGROUD_COLOR, BACKGROUND_COLOR]
|
|
19
|
-
black: '000',
|
|
20
|
-
red: 'ff0000',
|
|
21
|
-
green: '209805',
|
|
22
|
-
yellow: 'e8bf03',
|
|
23
|
-
blue: '0000ff',
|
|
24
|
-
magenta: 'ff00ff',
|
|
25
|
-
cyan: '00ffee',
|
|
26
|
-
lightgrey: 'f0f0f0',
|
|
27
|
-
darkgrey: '888'
|
|
28
|
-
}
|
|
29
|
-
var _styles = {
|
|
30
|
-
30: 'black',
|
|
31
|
-
31: 'red',
|
|
32
|
-
32: 'green',
|
|
33
|
-
33: 'yellow',
|
|
34
|
-
34: 'blue',
|
|
35
|
-
35: 'magenta',
|
|
36
|
-
36: 'cyan',
|
|
37
|
-
37: 'lightgrey'
|
|
38
|
-
}
|
|
39
|
-
var _openTags = {
|
|
40
|
-
'1': 'font-weight:bold', // bold
|
|
41
|
-
'2': 'opacity:0.5', // dim
|
|
42
|
-
'3': '<i>', // italic
|
|
43
|
-
'4': '<u>', // underscore
|
|
44
|
-
'8': 'display:none', // hidden
|
|
45
|
-
'9': '<del>' // delete
|
|
46
|
-
}
|
|
47
|
-
var _closeTags = {
|
|
48
|
-
'23': '</i>', // reset italic
|
|
49
|
-
'24': '</u>', // reset underscore
|
|
50
|
-
'29': '</del>' // reset delete
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
;[0, 21, 22, 27, 28, 39, 49].forEach(function (n) {
|
|
54
|
-
_closeTags[n] = '</span>'
|
|
55
|
-
})
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* Converts text with ANSI color codes to HTML markup.
|
|
59
|
-
* @param {String} text
|
|
60
|
-
* @returns {*}
|
|
61
|
-
*/
|
|
62
|
-
function ansiHTML (text) {
|
|
63
|
-
// Returns the text if the string has no ANSI escape code.
|
|
64
|
-
if (!_regANSI.test(text)) {
|
|
65
|
-
return text
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
// Cache opened sequence.
|
|
69
|
-
var ansiCodes = []
|
|
70
|
-
// Replace with markup.
|
|
71
|
-
var ret = text.replace(/\033\[(\d+)m/g, function (match, seq) {
|
|
72
|
-
var ot = _openTags[seq]
|
|
73
|
-
if (ot) {
|
|
74
|
-
// If current sequence has been opened, close it.
|
|
75
|
-
if (!!~ansiCodes.indexOf(seq)) { // eslint-disable-line no-extra-boolean-cast
|
|
76
|
-
ansiCodes.pop()
|
|
77
|
-
return '</span>'
|
|
78
|
-
}
|
|
79
|
-
// Open tag.
|
|
80
|
-
ansiCodes.push(seq)
|
|
81
|
-
return ot[0] === '<' ? ot : '<span style="' + ot + ';">'
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
var ct = _closeTags[seq]
|
|
85
|
-
if (ct) {
|
|
86
|
-
// Pop sequence
|
|
87
|
-
ansiCodes.pop()
|
|
88
|
-
return ct
|
|
89
|
-
}
|
|
90
|
-
return ''
|
|
91
|
-
})
|
|
92
|
-
|
|
93
|
-
// Make sure tags are closed.
|
|
94
|
-
var l = ansiCodes.length
|
|
95
|
-
;(l > 0) && (ret += Array(l + 1).join('</span>'))
|
|
96
|
-
|
|
97
|
-
return ret
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
/**
|
|
101
|
-
* Customize colors.
|
|
102
|
-
* @param {Object} colors reference to _defColors
|
|
103
|
-
*/
|
|
104
|
-
ansiHTML.setColors = function (colors) {
|
|
105
|
-
if (typeof colors !== 'object') {
|
|
106
|
-
throw new Error('`colors` parameter must be an Object.')
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
var _finalColors = {}
|
|
110
|
-
for (var key in _defColors) {
|
|
111
|
-
var hex = colors.hasOwnProperty(key) ? colors[key] : null
|
|
112
|
-
if (!hex) {
|
|
113
|
-
_finalColors[key] = _defColors[key]
|
|
114
|
-
continue
|
|
115
|
-
}
|
|
116
|
-
if ('reset' === key) {
|
|
117
|
-
if (typeof hex === 'string') {
|
|
118
|
-
hex = [hex]
|
|
119
|
-
}
|
|
120
|
-
if (!Array.isArray(hex) || hex.length === 0 || hex.some(function (h) {
|
|
121
|
-
return typeof h !== 'string'
|
|
122
|
-
})) {
|
|
123
|
-
throw new Error('The value of `' + key + '` property must be an Array and each item could only be a hex string, e.g.: FF0000')
|
|
124
|
-
}
|
|
125
|
-
var defHexColor = _defColors[key]
|
|
126
|
-
if (!hex[0]) {
|
|
127
|
-
hex[0] = defHexColor[0]
|
|
128
|
-
}
|
|
129
|
-
if (hex.length === 1 || !hex[1]) {
|
|
130
|
-
hex = [hex[0]]
|
|
131
|
-
hex.push(defHexColor[1])
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
hex = hex.slice(0, 2)
|
|
135
|
-
} else if (typeof hex !== 'string') {
|
|
136
|
-
throw new Error('The value of `' + key + '` property must be a hex string, e.g.: FF0000')
|
|
137
|
-
}
|
|
138
|
-
_finalColors[key] = hex
|
|
139
|
-
}
|
|
140
|
-
_setTags(_finalColors)
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
/**
|
|
144
|
-
* Reset colors.
|
|
145
|
-
*/
|
|
146
|
-
ansiHTML.reset = function () {
|
|
147
|
-
_setTags(_defColors)
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
/**
|
|
151
|
-
* Expose tags, including open and close.
|
|
152
|
-
* @type {Object}
|
|
153
|
-
*/
|
|
154
|
-
ansiHTML.tags = {}
|
|
155
|
-
|
|
156
|
-
if (Object.defineProperty) {
|
|
157
|
-
Object.defineProperty(ansiHTML.tags, 'open', {
|
|
158
|
-
get: function () { return _openTags }
|
|
159
|
-
})
|
|
160
|
-
Object.defineProperty(ansiHTML.tags, 'close', {
|
|
161
|
-
get: function () { return _closeTags }
|
|
162
|
-
})
|
|
163
|
-
} else {
|
|
164
|
-
ansiHTML.tags.open = _openTags
|
|
165
|
-
ansiHTML.tags.close = _closeTags
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
function _setTags (colors) {
|
|
169
|
-
// reset all
|
|
170
|
-
_openTags['0'] = 'font-weight:normal;opacity:1;color:#' + colors.reset[0] + ';background:#' + colors.reset[1]
|
|
171
|
-
// inverse
|
|
172
|
-
_openTags['7'] = 'color:#' + colors.reset[1] + ';background:#' + colors.reset[0]
|
|
173
|
-
// dark grey
|
|
174
|
-
_openTags['90'] = 'color:#' + colors.darkgrey
|
|
175
|
-
|
|
176
|
-
for (var code in _styles) {
|
|
177
|
-
var color = _styles[code]
|
|
178
|
-
var oriColor = colors[color] || '000'
|
|
179
|
-
_openTags[code] = 'color:#' + oriColor
|
|
180
|
-
code = parseInt(code)
|
|
181
|
-
_openTags[(code + 10).toString()] = 'background:#' + oriColor
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
ansiHTML.reset()
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
/***/ }),
|
|
189
|
-
|
|
190
|
-
/***/ "./node_modules/dayjs/locale/en.js":
|
|
191
|
-
/*!*****************************************!*\
|
|
192
|
-
!*** ./node_modules/dayjs/locale/en.js ***!
|
|
193
|
-
\*****************************************/
|
|
194
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
195
|
-
|
|
196
|
-
var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__;function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
197
|
-
!function (e, n) {
|
|
198
|
-
"object" == ( false ? 0 : _typeof(exports)) && "undefined" != "object" ? module.exports = n() : true ? !(__WEBPACK_AMD_DEFINE_FACTORY__ = (n),
|
|
199
|
-
__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
|
|
200
|
-
(__WEBPACK_AMD_DEFINE_FACTORY__.call(exports, __webpack_require__, exports, module)) :
|
|
201
|
-
__WEBPACK_AMD_DEFINE_FACTORY__),
|
|
202
|
-
__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : 0;
|
|
203
|
-
}(this, function () {
|
|
204
|
-
"use strict";
|
|
205
|
-
|
|
206
|
-
return {
|
|
207
|
-
name: "en",
|
|
208
|
-
weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),
|
|
209
|
-
months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"),
|
|
210
|
-
ordinal: function ordinal(e) {
|
|
211
|
-
var n = ["th", "st", "nd", "rd"],
|
|
212
|
-
t = e % 100;
|
|
213
|
-
return "[" + e + (n[(t - 20) % 10] || n[t] || n[0]) + "]";
|
|
214
|
-
}
|
|
215
|
-
};
|
|
216
|
-
});
|
|
217
|
-
|
|
218
|
-
/***/ }),
|
|
219
|
-
|
|
220
|
-
/***/ "./node_modules/css-loader/dist/runtime/api.js":
|
|
221
|
-
/*!*****************************************************!*\
|
|
222
|
-
!*** ./node_modules/css-loader/dist/runtime/api.js ***!
|
|
223
|
-
\*****************************************************/
|
|
224
|
-
/***/ ((module) => {
|
|
225
|
-
|
|
226
|
-
"use strict";
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
/*
|
|
230
|
-
MIT License http://www.opensource.org/licenses/mit-license.php
|
|
231
|
-
Author Tobias Koppers @sokra
|
|
232
|
-
*/
|
|
233
|
-
module.exports = function (cssWithMappingToString) {
|
|
234
|
-
var list = [];
|
|
235
|
-
|
|
236
|
-
// return the list of modules as css string
|
|
237
|
-
list.toString = function toString() {
|
|
238
|
-
return this.map(function (item) {
|
|
239
|
-
var content = "";
|
|
240
|
-
var needLayer = typeof item[5] !== "undefined";
|
|
241
|
-
if (item[4]) {
|
|
242
|
-
content += "@supports (".concat(item[4], ") {");
|
|
243
|
-
}
|
|
244
|
-
if (item[2]) {
|
|
245
|
-
content += "@media ".concat(item[2], " {");
|
|
246
|
-
}
|
|
247
|
-
if (needLayer) {
|
|
248
|
-
content += "@layer".concat(item[5].length > 0 ? " ".concat(item[5]) : "", " {");
|
|
249
|
-
}
|
|
250
|
-
content += cssWithMappingToString(item);
|
|
251
|
-
if (needLayer) {
|
|
252
|
-
content += "}";
|
|
253
|
-
}
|
|
254
|
-
if (item[2]) {
|
|
255
|
-
content += "}";
|
|
256
|
-
}
|
|
257
|
-
if (item[4]) {
|
|
258
|
-
content += "}";
|
|
259
|
-
}
|
|
260
|
-
return content;
|
|
261
|
-
}).join("");
|
|
262
|
-
};
|
|
263
|
-
|
|
264
|
-
// import a list of modules into the list
|
|
265
|
-
list.i = function i(modules, media, dedupe, supports, layer) {
|
|
266
|
-
if (typeof modules === "string") {
|
|
267
|
-
modules = [[null, modules, undefined]];
|
|
268
|
-
}
|
|
269
|
-
var alreadyImportedModules = {};
|
|
270
|
-
if (dedupe) {
|
|
271
|
-
for (var k = 0; k < this.length; k++) {
|
|
272
|
-
var id = this[k][0];
|
|
273
|
-
if (id != null) {
|
|
274
|
-
alreadyImportedModules[id] = true;
|
|
275
|
-
}
|
|
276
|
-
}
|
|
277
|
-
}
|
|
278
|
-
for (var _k = 0; _k < modules.length; _k++) {
|
|
279
|
-
var item = [].concat(modules[_k]);
|
|
280
|
-
if (dedupe && alreadyImportedModules[item[0]]) {
|
|
281
|
-
continue;
|
|
282
|
-
}
|
|
283
|
-
if (typeof layer !== "undefined") {
|
|
284
|
-
if (typeof item[5] === "undefined") {
|
|
285
|
-
item[5] = layer;
|
|
286
|
-
} else {
|
|
287
|
-
item[1] = "@layer".concat(item[5].length > 0 ? " ".concat(item[5]) : "", " {").concat(item[1], "}");
|
|
288
|
-
item[5] = layer;
|
|
289
|
-
}
|
|
290
|
-
}
|
|
291
|
-
if (media) {
|
|
292
|
-
if (!item[2]) {
|
|
293
|
-
item[2] = media;
|
|
294
|
-
} else {
|
|
295
|
-
item[1] = "@media ".concat(item[2], " {").concat(item[1], "}");
|
|
296
|
-
item[2] = media;
|
|
297
|
-
}
|
|
298
|
-
}
|
|
299
|
-
if (supports) {
|
|
300
|
-
if (!item[4]) {
|
|
301
|
-
item[4] = "".concat(supports);
|
|
302
|
-
} else {
|
|
303
|
-
item[1] = "@supports (".concat(item[4], ") {").concat(item[1], "}");
|
|
304
|
-
item[4] = supports;
|
|
305
|
-
}
|
|
306
|
-
}
|
|
307
|
-
list.push(item);
|
|
308
|
-
}
|
|
309
|
-
};
|
|
310
|
-
return list;
|
|
311
|
-
};
|
|
312
|
-
|
|
313
|
-
/***/ }),
|
|
314
|
-
|
|
315
|
-
/***/ "./node_modules/css-loader/dist/runtime/sourceMaps.js":
|
|
316
|
-
/*!************************************************************!*\
|
|
317
|
-
!*** ./node_modules/css-loader/dist/runtime/sourceMaps.js ***!
|
|
318
|
-
\************************************************************/
|
|
319
|
-
/***/ ((module) => {
|
|
320
|
-
|
|
321
|
-
"use strict";
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
module.exports = function (item) {
|
|
325
|
-
var content = item[1];
|
|
326
|
-
var cssMapping = item[3];
|
|
327
|
-
if (!cssMapping) {
|
|
328
|
-
return content;
|
|
329
|
-
}
|
|
330
|
-
if (typeof btoa === "function") {
|
|
331
|
-
var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(cssMapping))));
|
|
332
|
-
var data = "sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(base64);
|
|
333
|
-
var sourceMapping = "/*# ".concat(data, " */");
|
|
334
|
-
return [content].concat([sourceMapping]).join("\n");
|
|
335
|
-
}
|
|
336
|
-
return [content].join("\n");
|
|
337
|
-
};
|
|
338
|
-
|
|
339
|
-
/***/ }),
|
|
340
|
-
|
|
341
|
-
/***/ "./node_modules/dayjs/dayjs.min.js":
|
|
342
|
-
/*!*****************************************!*\
|
|
343
|
-
!*** ./node_modules/dayjs/dayjs.min.js ***!
|
|
344
|
-
\*****************************************/
|
|
345
|
-
/***/ (function(module) {
|
|
346
|
-
|
|
347
|
-
!function(t,e){ true?module.exports=e():0}(this,(function(){"use strict";var t=1e3,e=6e4,n=36e5,r="millisecond",i="second",s="minute",u="hour",a="day",o="week",c="month",f="quarter",h="year",d="date",l="Invalid Date",$=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],n=t%100;return"["+t+(e[(n-20)%10]||e[n]||e[0])+"]"}},m=function(t,e,n){var r=String(t);return!r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},v={s:m,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return(e<=0?"+":"-")+m(r,2,"0")+":"+m(i,2,"0")},m:function t(e,n){if(e.date()<n.date())return-t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),i=e.clone().add(r,c),s=n-i<0,u=e.clone().add(r+(s?-1:1),c);return+(-(r+(n-i)/(s?i-u:u-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:c,y:h,w:o,d:a,D:d,h:u,m:s,s:i,ms:r,Q:f}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},g="en",D={};D[g]=M;var p="$isDayjsObject",S=function(t){return t instanceof _||!(!t||!t[p])},w=function t(e,n,r){var i;if(!e)return g;if("string"==typeof e){var s=e.toLowerCase();D[s]&&(i=s),n&&(D[s]=n,i=s);var u=e.split("-");if(!i&&u.length>1)return t(u[0])}else{var a=e.name;D[a]=e,i=a}return!r&&i&&(g=i),i||!r&&g},O=function(t,e){if(S(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new _(n)},b=v;b.l=w,b.i=S,b.w=function(t,e){return O(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var _=function(){function M(t){this.$L=w(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[p]=!0}var m=M.prototype;return m.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(b.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match($);if(r){var i=r[2]-1||0,s=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)}}return new Date(e)}(t),this.init()},m.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},m.$utils=function(){return b},m.isValid=function(){return!(this.$d.toString()===l)},m.isSame=function(t,e){var n=O(t);return this.startOf(e)<=n&&n<=this.endOf(e)},m.isAfter=function(t,e){return O(t)<this.startOf(e)},m.isBefore=function(t,e){return this.endOf(e)<O(t)},m.$g=function(t,e,n){return b.u(t)?this[e]:this.set(n,t)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(t,e){var n=this,r=!!b.u(e)||e,f=b.p(t),l=function(t,e){var i=b.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return r?i:i.endOf(a)},$=function(t,e){return b.w(n.toDate()[t].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},y=this.$W,M=this.$M,m=this.$D,v="set"+(this.$u?"UTC":"");switch(f){case h:return r?l(1,0):l(31,11);case c:return r?l(1,M):l(0,M+1);case o:var g=this.$locale().weekStart||0,D=(y<g?y+7:y)-g;return l(r?m-D:m+(6-D),M);case a:case d:return $(v+"Hours",0);case u:return $(v+"Minutes",1);case s:return $(v+"Seconds",2);case i:return $(v+"Milliseconds",3);default:return this.clone()}},m.endOf=function(t){return this.startOf(t,!1)},m.$set=function(t,e){var n,o=b.p(t),f="set"+(this.$u?"UTC":""),l=(n={},n[a]=f+"Date",n[d]=f+"Date",n[c]=f+"Month",n[h]=f+"FullYear",n[u]=f+"Hours",n[s]=f+"Minutes",n[i]=f+"Seconds",n[r]=f+"Milliseconds",n)[o],$=o===a?this.$D+(e-this.$W):e;if(o===c||o===h){var y=this.clone().set(d,1);y.$d[l]($),y.init(),this.$d=y.set(d,Math.min(this.$D,y.daysInMonth())).$d}else l&&this.$d[l]($);return this.init(),this},m.set=function(t,e){return this.clone().$set(t,e)},m.get=function(t){return this[b.p(t)]()},m.add=function(r,f){var d,l=this;r=Number(r);var $=b.p(f),y=function(t){var e=O(l);return b.w(e.date(e.date()+Math.round(t*r)),l)};if($===c)return this.set(c,this.$M+r);if($===h)return this.set(h,this.$y+r);if($===a)return y(1);if($===o)return y(7);var M=(d={},d[s]=e,d[u]=n,d[i]=t,d)[$]||1,m=this.$d.getTime()+r*M;return b.w(m,this)},m.subtract=function(t,e){return this.add(-1*t,e)},m.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||l;var r=t||"YYYY-MM-DDTHH:mm:ssZ",i=b.z(this),s=this.$H,u=this.$m,a=this.$M,o=n.weekdays,c=n.months,f=n.meridiem,h=function(t,n,i,s){return t&&(t[n]||t(e,r))||i[n].slice(0,s)},d=function(t){return b.s(s%12||12,t,"0")},$=f||function(t,e,n){var r=t<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(y,(function(t,r){return r||function(t){switch(t){case"YY":return String(e.$y).slice(-2);case"YYYY":return b.s(e.$y,4,"0");case"M":return a+1;case"MM":return b.s(a+1,2,"0");case"MMM":return h(n.monthsShort,a,c,3);case"MMMM":return h(c,a);case"D":return e.$D;case"DD":return b.s(e.$D,2,"0");case"d":return String(e.$W);case"dd":return h(n.weekdaysMin,e.$W,o,2);case"ddd":return h(n.weekdaysShort,e.$W,o,3);case"dddd":return o[e.$W];case"H":return String(s);case"HH":return b.s(s,2,"0");case"h":return d(1);case"hh":return d(2);case"a":return $(s,u,!0);case"A":return $(s,u,!1);case"m":return String(u);case"mm":return b.s(u,2,"0");case"s":return String(e.$s);case"ss":return b.s(e.$s,2,"0");case"SSS":return b.s(e.$ms,3,"0");case"Z":return i}return null}(t)||i.replace(":","")}))},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(r,d,l){var $,y=this,M=b.p(d),m=O(r),v=(m.utcOffset()-this.utcOffset())*e,g=this-m,D=function(){return b.m(y,m)};switch(M){case h:$=D()/12;break;case c:$=D();break;case f:$=D()/3;break;case o:$=(g-v)/6048e5;break;case a:$=(g-v)/864e5;break;case u:$=g/n;break;case s:$=g/e;break;case i:$=g/t;break;default:$=g}return l?$:b.a($)},m.daysInMonth=function(){return this.endOf(c).$D},m.$locale=function(){return D[this.$L]},m.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=w(t,e,!0);return r&&(n.$L=r),n},m.clone=function(){return b.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},M}(),k=_.prototype;return O.prototype=k,[["$ms",r],["$s",i],["$m",s],["$H",u],["$W",a],["$M",c],["$y",h],["$D",d]].forEach((function(t){k[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),O.extend=function(t,e){return t.$i||(t(e,_,O),t.$i=!0),O},O.locale=w,O.isDayjs=S,O.unix=function(t){return O(1e3*t)},O.en=D[g],O.Ls=D,O.p={},O}));
|
|
348
|
-
|
|
349
|
-
/***/ }),
|
|
350
|
-
|
|
351
|
-
/***/ "./node_modules/dayjs/plugin/localeData.js":
|
|
352
|
-
/*!*************************************************!*\
|
|
353
|
-
!*** ./node_modules/dayjs/plugin/localeData.js ***!
|
|
354
|
-
\*************************************************/
|
|
355
|
-
/***/ (function(module) {
|
|
356
|
-
|
|
357
|
-
!function(n,e){ true?module.exports=e():0}(this,(function(){"use strict";return function(n,e,t){var r=e.prototype,o=function(n){return n&&(n.indexOf?n:n.s)},u=function(n,e,t,r,u){var i=n.name?n:n.$locale(),a=o(i[e]),s=o(i[t]),f=a||s.map((function(n){return n.slice(0,r)}));if(!u)return f;var d=i.weekStart;return f.map((function(n,e){return f[(e+(d||0))%7]}))},i=function(){return t.Ls[t.locale()]},a=function(n,e){return n.formats[e]||function(n){return n.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(n,e,t){return e||t.slice(1)}))}(n.formats[e.toUpperCase()])},s=function(){var n=this;return{months:function(e){return e?e.format("MMMM"):u(n,"months")},monthsShort:function(e){return e?e.format("MMM"):u(n,"monthsShort","months",3)},firstDayOfWeek:function(){return n.$locale().weekStart||0},weekdays:function(e){return e?e.format("dddd"):u(n,"weekdays")},weekdaysMin:function(e){return e?e.format("dd"):u(n,"weekdaysMin","weekdays",2)},weekdaysShort:function(e){return e?e.format("ddd"):u(n,"weekdaysShort","weekdays",3)},longDateFormat:function(e){return a(n.$locale(),e)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return s.bind(this)()},t.localeData=function(){var n=i();return{firstDayOfWeek:function(){return n.weekStart||0},weekdays:function(){return t.weekdays()},weekdaysShort:function(){return t.weekdaysShort()},weekdaysMin:function(){return t.weekdaysMin()},months:function(){return t.months()},monthsShort:function(){return t.monthsShort()},longDateFormat:function(e){return a(n,e)},meridiem:n.meridiem,ordinal:n.ordinal}},t.months=function(){return u(i(),"months")},t.monthsShort=function(){return u(i(),"monthsShort","months",3)},t.weekdays=function(n){return u(i(),"weekdays",null,null,n)},t.weekdaysShort=function(n){return u(i(),"weekdaysShort","weekdays",3,n)},t.weekdaysMin=function(n){return u(i(),"weekdaysMin","weekdays",2,n)}}}));
|
|
358
|
-
|
|
359
|
-
/***/ }),
|
|
360
|
-
|
|
361
|
-
/***/ "./node_modules/events/events.js":
|
|
362
|
-
/*!***************************************!*\
|
|
363
|
-
!*** ./node_modules/events/events.js ***!
|
|
364
|
-
\***************************************/
|
|
365
|
-
/***/ ((module) => {
|
|
366
|
-
|
|
367
|
-
"use strict";
|
|
368
|
-
// Copyright Joyent, Inc. and other Node contributors.
|
|
369
|
-
//
|
|
370
|
-
// Permission is hereby granted, free of charge, to any person obtaining a
|
|
371
|
-
// copy of this software and associated documentation files (the
|
|
372
|
-
// "Software"), to deal in the Software without restriction, including
|
|
373
|
-
// without limitation the rights to use, copy, modify, merge, publish,
|
|
374
|
-
// distribute, sublicense, and/or sell copies of the Software, and to permit
|
|
375
|
-
// persons to whom the Software is furnished to do so, subject to the
|
|
376
|
-
// following conditions:
|
|
377
|
-
//
|
|
378
|
-
// The above copyright notice and this permission notice shall be included
|
|
379
|
-
// in all copies or substantial portions of the Software.
|
|
380
|
-
//
|
|
381
|
-
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
|
382
|
-
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
383
|
-
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
|
|
384
|
-
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
|
385
|
-
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
|
386
|
-
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
|
|
387
|
-
// USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
var R = typeof Reflect === 'object' ? Reflect : null
|
|
392
|
-
var ReflectApply = R && typeof R.apply === 'function'
|
|
393
|
-
? R.apply
|
|
394
|
-
: function ReflectApply(target, receiver, args) {
|
|
395
|
-
return Function.prototype.apply.call(target, receiver, args);
|
|
396
|
-
}
|
|
397
|
-
|
|
398
|
-
var ReflectOwnKeys
|
|
399
|
-
if (R && typeof R.ownKeys === 'function') {
|
|
400
|
-
ReflectOwnKeys = R.ownKeys
|
|
401
|
-
} else if (Object.getOwnPropertySymbols) {
|
|
402
|
-
ReflectOwnKeys = function ReflectOwnKeys(target) {
|
|
403
|
-
return Object.getOwnPropertyNames(target)
|
|
404
|
-
.concat(Object.getOwnPropertySymbols(target));
|
|
405
|
-
};
|
|
406
|
-
} else {
|
|
407
|
-
ReflectOwnKeys = function ReflectOwnKeys(target) {
|
|
408
|
-
return Object.getOwnPropertyNames(target);
|
|
409
|
-
};
|
|
410
|
-
}
|
|
411
|
-
|
|
412
|
-
function ProcessEmitWarning(warning) {
|
|
413
|
-
if (console && console.warn) console.warn(warning);
|
|
414
|
-
}
|
|
415
|
-
|
|
416
|
-
var NumberIsNaN = Number.isNaN || function NumberIsNaN(value) {
|
|
417
|
-
return value !== value;
|
|
418
|
-
}
|
|
419
|
-
|
|
420
|
-
function EventEmitter() {
|
|
421
|
-
EventEmitter.init.call(this);
|
|
422
|
-
}
|
|
423
|
-
module.exports = EventEmitter;
|
|
424
|
-
module.exports.once = once;
|
|
425
|
-
|
|
426
|
-
// Backwards-compat with node 0.10.x
|
|
427
|
-
EventEmitter.EventEmitter = EventEmitter;
|
|
428
|
-
|
|
429
|
-
EventEmitter.prototype._events = undefined;
|
|
430
|
-
EventEmitter.prototype._eventsCount = 0;
|
|
431
|
-
EventEmitter.prototype._maxListeners = undefined;
|
|
432
|
-
|
|
433
|
-
// By default EventEmitters will print a warning if more than 10 listeners are
|
|
434
|
-
// added to it. This is a useful default which helps finding memory leaks.
|
|
435
|
-
var defaultMaxListeners = 10;
|
|
436
|
-
|
|
437
|
-
function checkListener(listener) {
|
|
438
|
-
if (typeof listener !== 'function') {
|
|
439
|
-
throw new TypeError('The "listener" argument must be of type Function. Received type ' + typeof listener);
|
|
440
|
-
}
|
|
441
|
-
}
|
|
442
|
-
|
|
443
|
-
Object.defineProperty(EventEmitter, 'defaultMaxListeners', {
|
|
444
|
-
enumerable: true,
|
|
445
|
-
get: function() {
|
|
446
|
-
return defaultMaxListeners;
|
|
447
|
-
},
|
|
448
|
-
set: function(arg) {
|
|
449
|
-
if (typeof arg !== 'number' || arg < 0 || NumberIsNaN(arg)) {
|
|
450
|
-
throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' + arg + '.');
|
|
451
|
-
}
|
|
452
|
-
defaultMaxListeners = arg;
|
|
453
|
-
}
|
|
454
|
-
});
|
|
455
|
-
|
|
456
|
-
EventEmitter.init = function() {
|
|
457
|
-
|
|
458
|
-
if (this._events === undefined ||
|
|
459
|
-
this._events === Object.getPrototypeOf(this)._events) {
|
|
460
|
-
this._events = Object.create(null);
|
|
461
|
-
this._eventsCount = 0;
|
|
462
|
-
}
|
|
463
|
-
|
|
464
|
-
this._maxListeners = this._maxListeners || undefined;
|
|
465
|
-
};
|
|
466
|
-
|
|
467
|
-
// Obviously not all Emitters should be limited to 10. This function allows
|
|
468
|
-
// that to be increased. Set to zero for unlimited.
|
|
469
|
-
EventEmitter.prototype.setMaxListeners = function setMaxListeners(n) {
|
|
470
|
-
if (typeof n !== 'number' || n < 0 || NumberIsNaN(n)) {
|
|
471
|
-
throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received ' + n + '.');
|
|
472
|
-
}
|
|
473
|
-
this._maxListeners = n;
|
|
474
|
-
return this;
|
|
475
|
-
};
|
|
476
|
-
|
|
477
|
-
function _getMaxListeners(that) {
|
|
478
|
-
if (that._maxListeners === undefined)
|
|
479
|
-
return EventEmitter.defaultMaxListeners;
|
|
480
|
-
return that._maxListeners;
|
|
481
|
-
}
|
|
482
|
-
|
|
483
|
-
EventEmitter.prototype.getMaxListeners = function getMaxListeners() {
|
|
484
|
-
return _getMaxListeners(this);
|
|
485
|
-
};
|
|
486
|
-
|
|
487
|
-
EventEmitter.prototype.emit = function emit(type) {
|
|
488
|
-
var args = [];
|
|
489
|
-
for (var i = 1; i < arguments.length; i++) args.push(arguments[i]);
|
|
490
|
-
var doError = (type === 'error');
|
|
491
|
-
|
|
492
|
-
var events = this._events;
|
|
493
|
-
if (events !== undefined)
|
|
494
|
-
doError = (doError && events.error === undefined);
|
|
495
|
-
else if (!doError)
|
|
496
|
-
return false;
|
|
497
|
-
|
|
498
|
-
// If there is no 'error' event listener then throw.
|
|
499
|
-
if (doError) {
|
|
500
|
-
var er;
|
|
501
|
-
if (args.length > 0)
|
|
502
|
-
er = args[0];
|
|
503
|
-
if (er instanceof Error) {
|
|
504
|
-
// Note: The comments on the `throw` lines are intentional, they show
|
|
505
|
-
// up in Node's output if this results in an unhandled exception.
|
|
506
|
-
throw er; // Unhandled 'error' event
|
|
507
|
-
}
|
|
508
|
-
// At least give some kind of context to the user
|
|
509
|
-
var err = new Error('Unhandled error.' + (er ? ' (' + er.message + ')' : ''));
|
|
510
|
-
err.context = er;
|
|
511
|
-
throw err; // Unhandled 'error' event
|
|
512
|
-
}
|
|
513
|
-
|
|
514
|
-
var handler = events[type];
|
|
515
|
-
|
|
516
|
-
if (handler === undefined)
|
|
517
|
-
return false;
|
|
518
|
-
|
|
519
|
-
if (typeof handler === 'function') {
|
|
520
|
-
ReflectApply(handler, this, args);
|
|
521
|
-
} else {
|
|
522
|
-
var len = handler.length;
|
|
523
|
-
var listeners = arrayClone(handler, len);
|
|
524
|
-
for (var i = 0; i < len; ++i)
|
|
525
|
-
ReflectApply(listeners[i], this, args);
|
|
526
|
-
}
|
|
527
|
-
|
|
528
|
-
return true;
|
|
529
|
-
};
|
|
530
|
-
|
|
531
|
-
function _addListener(target, type, listener, prepend) {
|
|
532
|
-
var m;
|
|
533
|
-
var events;
|
|
534
|
-
var existing;
|
|
535
|
-
|
|
536
|
-
checkListener(listener);
|
|
537
|
-
|
|
538
|
-
events = target._events;
|
|
539
|
-
if (events === undefined) {
|
|
540
|
-
events = target._events = Object.create(null);
|
|
541
|
-
target._eventsCount = 0;
|
|
542
|
-
} else {
|
|
543
|
-
// To avoid recursion in the case that type === "newListener"! Before
|
|
544
|
-
// adding it to the listeners, first emit "newListener".
|
|
545
|
-
if (events.newListener !== undefined) {
|
|
546
|
-
target.emit('newListener', type,
|
|
547
|
-
listener.listener ? listener.listener : listener);
|
|
548
|
-
|
|
549
|
-
// Re-assign `events` because a newListener handler could have caused the
|
|
550
|
-
// this._events to be assigned to a new object
|
|
551
|
-
events = target._events;
|
|
552
|
-
}
|
|
553
|
-
existing = events[type];
|
|
554
|
-
}
|
|
555
|
-
|
|
556
|
-
if (existing === undefined) {
|
|
557
|
-
// Optimize the case of one listener. Don't need the extra array object.
|
|
558
|
-
existing = events[type] = listener;
|
|
559
|
-
++target._eventsCount;
|
|
560
|
-
} else {
|
|
561
|
-
if (typeof existing === 'function') {
|
|
562
|
-
// Adding the second element, need to change to array.
|
|
563
|
-
existing = events[type] =
|
|
564
|
-
prepend ? [listener, existing] : [existing, listener];
|
|
565
|
-
// If we've already got an array, just append.
|
|
566
|
-
} else if (prepend) {
|
|
567
|
-
existing.unshift(listener);
|
|
568
|
-
} else {
|
|
569
|
-
existing.push(listener);
|
|
570
|
-
}
|
|
571
|
-
|
|
572
|
-
// Check for listener leak
|
|
573
|
-
m = _getMaxListeners(target);
|
|
574
|
-
if (m > 0 && existing.length > m && !existing.warned) {
|
|
575
|
-
existing.warned = true;
|
|
576
|
-
// No error code for this since it is a Warning
|
|
577
|
-
// eslint-disable-next-line no-restricted-syntax
|
|
578
|
-
var w = new Error('Possible EventEmitter memory leak detected. ' +
|
|
579
|
-
existing.length + ' ' + String(type) + ' listeners ' +
|
|
580
|
-
'added. Use emitter.setMaxListeners() to ' +
|
|
581
|
-
'increase limit');
|
|
582
|
-
w.name = 'MaxListenersExceededWarning';
|
|
583
|
-
w.emitter = target;
|
|
584
|
-
w.type = type;
|
|
585
|
-
w.count = existing.length;
|
|
586
|
-
ProcessEmitWarning(w);
|
|
587
|
-
}
|
|
588
|
-
}
|
|
589
|
-
|
|
590
|
-
return target;
|
|
591
|
-
}
|
|
592
|
-
|
|
593
|
-
EventEmitter.prototype.addListener = function addListener(type, listener) {
|
|
594
|
-
return _addListener(this, type, listener, false);
|
|
595
|
-
};
|
|
596
|
-
|
|
597
|
-
EventEmitter.prototype.on = EventEmitter.prototype.addListener;
|
|
598
|
-
|
|
599
|
-
EventEmitter.prototype.prependListener =
|
|
600
|
-
function prependListener(type, listener) {
|
|
601
|
-
return _addListener(this, type, listener, true);
|
|
602
|
-
};
|
|
603
|
-
|
|
604
|
-
function onceWrapper() {
|
|
605
|
-
if (!this.fired) {
|
|
606
|
-
this.target.removeListener(this.type, this.wrapFn);
|
|
607
|
-
this.fired = true;
|
|
608
|
-
if (arguments.length === 0)
|
|
609
|
-
return this.listener.call(this.target);
|
|
610
|
-
return this.listener.apply(this.target, arguments);
|
|
611
|
-
}
|
|
612
|
-
}
|
|
613
|
-
|
|
614
|
-
function _onceWrap(target, type, listener) {
|
|
615
|
-
var state = { fired: false, wrapFn: undefined, target: target, type: type, listener: listener };
|
|
616
|
-
var wrapped = onceWrapper.bind(state);
|
|
617
|
-
wrapped.listener = listener;
|
|
618
|
-
state.wrapFn = wrapped;
|
|
619
|
-
return wrapped;
|
|
620
|
-
}
|
|
621
|
-
|
|
622
|
-
EventEmitter.prototype.once = function once(type, listener) {
|
|
623
|
-
checkListener(listener);
|
|
624
|
-
this.on(type, _onceWrap(this, type, listener));
|
|
625
|
-
return this;
|
|
626
|
-
};
|
|
627
|
-
|
|
628
|
-
EventEmitter.prototype.prependOnceListener =
|
|
629
|
-
function prependOnceListener(type, listener) {
|
|
630
|
-
checkListener(listener);
|
|
631
|
-
this.prependListener(type, _onceWrap(this, type, listener));
|
|
632
|
-
return this;
|
|
633
|
-
};
|
|
634
|
-
|
|
635
|
-
// Emits a 'removeListener' event if and only if the listener was removed.
|
|
636
|
-
EventEmitter.prototype.removeListener =
|
|
637
|
-
function removeListener(type, listener) {
|
|
638
|
-
var list, events, position, i, originalListener;
|
|
639
|
-
|
|
640
|
-
checkListener(listener);
|
|
641
|
-
|
|
642
|
-
events = this._events;
|
|
643
|
-
if (events === undefined)
|
|
644
|
-
return this;
|
|
645
|
-
|
|
646
|
-
list = events[type];
|
|
647
|
-
if (list === undefined)
|
|
648
|
-
return this;
|
|
649
|
-
|
|
650
|
-
if (list === listener || list.listener === listener) {
|
|
651
|
-
if (--this._eventsCount === 0)
|
|
652
|
-
this._events = Object.create(null);
|
|
653
|
-
else {
|
|
654
|
-
delete events[type];
|
|
655
|
-
if (events.removeListener)
|
|
656
|
-
this.emit('removeListener', type, list.listener || listener);
|
|
657
|
-
}
|
|
658
|
-
} else if (typeof list !== 'function') {
|
|
659
|
-
position = -1;
|
|
660
|
-
|
|
661
|
-
for (i = list.length - 1; i >= 0; i--) {
|
|
662
|
-
if (list[i] === listener || list[i].listener === listener) {
|
|
663
|
-
originalListener = list[i].listener;
|
|
664
|
-
position = i;
|
|
665
|
-
break;
|
|
666
|
-
}
|
|
667
|
-
}
|
|
668
|
-
|
|
669
|
-
if (position < 0)
|
|
670
|
-
return this;
|
|
671
|
-
|
|
672
|
-
if (position === 0)
|
|
673
|
-
list.shift();
|
|
674
|
-
else {
|
|
675
|
-
spliceOne(list, position);
|
|
676
|
-
}
|
|
677
|
-
|
|
678
|
-
if (list.length === 1)
|
|
679
|
-
events[type] = list[0];
|
|
680
|
-
|
|
681
|
-
if (events.removeListener !== undefined)
|
|
682
|
-
this.emit('removeListener', type, originalListener || listener);
|
|
683
|
-
}
|
|
684
|
-
|
|
685
|
-
return this;
|
|
686
|
-
};
|
|
687
|
-
|
|
688
|
-
EventEmitter.prototype.off = EventEmitter.prototype.removeListener;
|
|
689
|
-
|
|
690
|
-
EventEmitter.prototype.removeAllListeners =
|
|
691
|
-
function removeAllListeners(type) {
|
|
692
|
-
var listeners, events, i;
|
|
693
|
-
|
|
694
|
-
events = this._events;
|
|
695
|
-
if (events === undefined)
|
|
696
|
-
return this;
|
|
697
|
-
|
|
698
|
-
// not listening for removeListener, no need to emit
|
|
699
|
-
if (events.removeListener === undefined) {
|
|
700
|
-
if (arguments.length === 0) {
|
|
701
|
-
this._events = Object.create(null);
|
|
702
|
-
this._eventsCount = 0;
|
|
703
|
-
} else if (events[type] !== undefined) {
|
|
704
|
-
if (--this._eventsCount === 0)
|
|
705
|
-
this._events = Object.create(null);
|
|
706
|
-
else
|
|
707
|
-
delete events[type];
|
|
708
|
-
}
|
|
709
|
-
return this;
|
|
710
|
-
}
|
|
711
|
-
|
|
712
|
-
// emit removeListener for all listeners on all events
|
|
713
|
-
if (arguments.length === 0) {
|
|
714
|
-
var keys = Object.keys(events);
|
|
715
|
-
var key;
|
|
716
|
-
for (i = 0; i < keys.length; ++i) {
|
|
717
|
-
key = keys[i];
|
|
718
|
-
if (key === 'removeListener') continue;
|
|
719
|
-
this.removeAllListeners(key);
|
|
720
|
-
}
|
|
721
|
-
this.removeAllListeners('removeListener');
|
|
722
|
-
this._events = Object.create(null);
|
|
723
|
-
this._eventsCount = 0;
|
|
724
|
-
return this;
|
|
725
|
-
}
|
|
726
|
-
|
|
727
|
-
listeners = events[type];
|
|
728
|
-
|
|
729
|
-
if (typeof listeners === 'function') {
|
|
730
|
-
this.removeListener(type, listeners);
|
|
731
|
-
} else if (listeners !== undefined) {
|
|
732
|
-
// LIFO order
|
|
733
|
-
for (i = listeners.length - 1; i >= 0; i--) {
|
|
734
|
-
this.removeListener(type, listeners[i]);
|
|
735
|
-
}
|
|
736
|
-
}
|
|
737
|
-
|
|
738
|
-
return this;
|
|
739
|
-
};
|
|
740
|
-
|
|
741
|
-
function _listeners(target, type, unwrap) {
|
|
742
|
-
var events = target._events;
|
|
743
|
-
|
|
744
|
-
if (events === undefined)
|
|
745
|
-
return [];
|
|
746
|
-
|
|
747
|
-
var evlistener = events[type];
|
|
748
|
-
if (evlistener === undefined)
|
|
749
|
-
return [];
|
|
750
|
-
|
|
751
|
-
if (typeof evlistener === 'function')
|
|
752
|
-
return unwrap ? [evlistener.listener || evlistener] : [evlistener];
|
|
753
|
-
|
|
754
|
-
return unwrap ?
|
|
755
|
-
unwrapListeners(evlistener) : arrayClone(evlistener, evlistener.length);
|
|
756
|
-
}
|
|
757
|
-
|
|
758
|
-
EventEmitter.prototype.listeners = function listeners(type) {
|
|
759
|
-
return _listeners(this, type, true);
|
|
760
|
-
};
|
|
761
|
-
|
|
762
|
-
EventEmitter.prototype.rawListeners = function rawListeners(type) {
|
|
763
|
-
return _listeners(this, type, false);
|
|
764
|
-
};
|
|
765
|
-
|
|
766
|
-
EventEmitter.listenerCount = function(emitter, type) {
|
|
767
|
-
if (typeof emitter.listenerCount === 'function') {
|
|
768
|
-
return emitter.listenerCount(type);
|
|
769
|
-
} else {
|
|
770
|
-
return listenerCount.call(emitter, type);
|
|
771
|
-
}
|
|
772
|
-
};
|
|
773
|
-
|
|
774
|
-
EventEmitter.prototype.listenerCount = listenerCount;
|
|
775
|
-
function listenerCount(type) {
|
|
776
|
-
var events = this._events;
|
|
777
|
-
|
|
778
|
-
if (events !== undefined) {
|
|
779
|
-
var evlistener = events[type];
|
|
780
|
-
|
|
781
|
-
if (typeof evlistener === 'function') {
|
|
782
|
-
return 1;
|
|
783
|
-
} else if (evlistener !== undefined) {
|
|
784
|
-
return evlistener.length;
|
|
785
|
-
}
|
|
786
|
-
}
|
|
787
|
-
|
|
788
|
-
return 0;
|
|
789
|
-
}
|
|
790
|
-
|
|
791
|
-
EventEmitter.prototype.eventNames = function eventNames() {
|
|
792
|
-
return this._eventsCount > 0 ? ReflectOwnKeys(this._events) : [];
|
|
793
|
-
};
|
|
794
|
-
|
|
795
|
-
function arrayClone(arr, n) {
|
|
796
|
-
var copy = new Array(n);
|
|
797
|
-
for (var i = 0; i < n; ++i)
|
|
798
|
-
copy[i] = arr[i];
|
|
799
|
-
return copy;
|
|
800
|
-
}
|
|
801
|
-
|
|
802
|
-
function spliceOne(list, index) {
|
|
803
|
-
for (; index + 1 < list.length; index++)
|
|
804
|
-
list[index] = list[index + 1];
|
|
805
|
-
list.pop();
|
|
806
|
-
}
|
|
807
|
-
|
|
808
|
-
function unwrapListeners(arr) {
|
|
809
|
-
var ret = new Array(arr.length);
|
|
810
|
-
for (var i = 0; i < ret.length; ++i) {
|
|
811
|
-
ret[i] = arr[i].listener || arr[i];
|
|
812
|
-
}
|
|
813
|
-
return ret;
|
|
814
|
-
}
|
|
815
|
-
|
|
816
|
-
function once(emitter, name) {
|
|
817
|
-
return new Promise(function (resolve, reject) {
|
|
818
|
-
function errorListener(err) {
|
|
819
|
-
emitter.removeListener(name, resolver);
|
|
820
|
-
reject(err);
|
|
821
|
-
}
|
|
822
|
-
|
|
823
|
-
function resolver() {
|
|
824
|
-
if (typeof emitter.removeListener === 'function') {
|
|
825
|
-
emitter.removeListener('error', errorListener);
|
|
826
|
-
}
|
|
827
|
-
resolve([].slice.call(arguments));
|
|
828
|
-
};
|
|
829
|
-
|
|
830
|
-
eventTargetAgnosticAddListener(emitter, name, resolver, { once: true });
|
|
831
|
-
if (name !== 'error') {
|
|
832
|
-
addErrorHandlerIfEventEmitter(emitter, errorListener, { once: true });
|
|
833
|
-
}
|
|
834
|
-
});
|
|
835
|
-
}
|
|
836
|
-
|
|
837
|
-
function addErrorHandlerIfEventEmitter(emitter, handler, flags) {
|
|
838
|
-
if (typeof emitter.on === 'function') {
|
|
839
|
-
eventTargetAgnosticAddListener(emitter, 'error', handler, flags);
|
|
840
|
-
}
|
|
841
|
-
}
|
|
842
|
-
|
|
843
|
-
function eventTargetAgnosticAddListener(emitter, name, listener, flags) {
|
|
844
|
-
if (typeof emitter.on === 'function') {
|
|
845
|
-
if (flags.once) {
|
|
846
|
-
emitter.once(name, listener);
|
|
847
|
-
} else {
|
|
848
|
-
emitter.on(name, listener);
|
|
849
|
-
}
|
|
850
|
-
} else if (typeof emitter.addEventListener === 'function') {
|
|
851
|
-
// EventTarget does not have `error` event semantics like Node
|
|
852
|
-
// EventEmitters, we do not listen for `error` events here.
|
|
853
|
-
emitter.addEventListener(name, function wrapListener(arg) {
|
|
854
|
-
// IE does not have builtin `{ once: true }` support so we
|
|
855
|
-
// have to do it manually.
|
|
856
|
-
if (flags.once) {
|
|
857
|
-
emitter.removeEventListener(name, wrapListener);
|
|
858
|
-
}
|
|
859
|
-
listener(arg);
|
|
860
|
-
});
|
|
861
|
-
} else {
|
|
862
|
-
throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof emitter);
|
|
863
|
-
}
|
|
864
|
-
}
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
/***/ }),
|
|
868
|
-
|
|
869
|
-
/***/ "./node_modules/classnames/index.js":
|
|
870
|
-
/*!******************************************!*\
|
|
871
|
-
!*** ./node_modules/classnames/index.js ***!
|
|
872
|
-
\******************************************/
|
|
873
|
-
/***/ ((module, exports) => {
|
|
874
|
-
|
|
875
|
-
var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
|
|
876
|
-
Copyright (c) 2018 Jed Watson.
|
|
877
|
-
Licensed under the MIT License (MIT), see
|
|
878
|
-
http://jedwatson.github.io/classnames
|
|
879
|
-
*/
|
|
880
|
-
/* global define */
|
|
881
|
-
|
|
882
|
-
(function () {
|
|
883
|
-
'use strict';
|
|
884
|
-
|
|
885
|
-
var hasOwn = {}.hasOwnProperty;
|
|
886
|
-
|
|
887
|
-
function classNames () {
|
|
888
|
-
var classes = '';
|
|
889
|
-
|
|
890
|
-
for (var i = 0; i < arguments.length; i++) {
|
|
891
|
-
var arg = arguments[i];
|
|
892
|
-
if (arg) {
|
|
893
|
-
classes = appendClass(classes, parseValue(arg));
|
|
894
|
-
}
|
|
895
|
-
}
|
|
896
|
-
|
|
897
|
-
return classes;
|
|
898
|
-
}
|
|
899
|
-
|
|
900
|
-
function parseValue (arg) {
|
|
901
|
-
if (typeof arg === 'string' || typeof arg === 'number') {
|
|
902
|
-
return arg;
|
|
903
|
-
}
|
|
904
|
-
|
|
905
|
-
if (typeof arg !== 'object') {
|
|
906
|
-
return '';
|
|
907
|
-
}
|
|
908
|
-
|
|
909
|
-
if (Array.isArray(arg)) {
|
|
910
|
-
return classNames.apply(null, arg);
|
|
911
|
-
}
|
|
912
|
-
|
|
913
|
-
if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {
|
|
914
|
-
return arg.toString();
|
|
915
|
-
}
|
|
916
|
-
|
|
917
|
-
var classes = '';
|
|
918
|
-
|
|
919
|
-
for (var key in arg) {
|
|
920
|
-
if (hasOwn.call(arg, key) && arg[key]) {
|
|
921
|
-
classes = appendClass(classes, key);
|
|
922
|
-
}
|
|
923
|
-
}
|
|
924
|
-
|
|
925
|
-
return classes;
|
|
926
|
-
}
|
|
927
|
-
|
|
928
|
-
function appendClass (value, newClass) {
|
|
929
|
-
if (!newClass) {
|
|
930
|
-
return value;
|
|
931
|
-
}
|
|
932
|
-
|
|
933
|
-
if (value) {
|
|
934
|
-
return value + ' ' + newClass;
|
|
935
|
-
}
|
|
936
|
-
|
|
937
|
-
return value + newClass;
|
|
938
|
-
}
|
|
939
|
-
|
|
940
|
-
if ( true && module.exports) {
|
|
941
|
-
classNames.default = classNames;
|
|
942
|
-
module.exports = classNames;
|
|
943
|
-
} else if (true) {
|
|
944
|
-
// register as 'classnames', consistent with npm package name
|
|
945
|
-
!(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = (function () {
|
|
946
|
-
return classNames;
|
|
947
|
-
}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),
|
|
948
|
-
__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
|
|
949
|
-
} else {}
|
|
950
|
-
}());
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
/***/ }),
|
|
954
|
-
|
|
955
|
-
/***/ "./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js":
|
|
956
|
-
/*!**************************************************************************!*\
|
|
957
|
-
!*** ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js ***!
|
|
958
|
-
\**************************************************************************/
|
|
959
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
960
|
-
|
|
961
|
-
"use strict";
|
|
962
|
-
__webpack_require__.r(__webpack_exports__);
|
|
963
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
964
|
-
/* harmony export */ "default": () => (/* binding */ _assertThisInitialized)
|
|
965
|
-
/* harmony export */ });
|
|
966
|
-
function _assertThisInitialized(e) {
|
|
967
|
-
if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
968
|
-
return e;
|
|
969
|
-
}
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
/***/ }),
|
|
973
|
-
|
|
974
|
-
/***/ "./node_modules/@babel/runtime/helpers/esm/extends.js":
|
|
975
|
-
/*!************************************************************!*\
|
|
976
|
-
!*** ./node_modules/@babel/runtime/helpers/esm/extends.js ***!
|
|
977
|
-
\************************************************************/
|
|
978
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
979
|
-
|
|
980
|
-
"use strict";
|
|
981
|
-
__webpack_require__.r(__webpack_exports__);
|
|
982
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
983
|
-
/* harmony export */ "default": () => (/* binding */ _extends)
|
|
984
|
-
/* harmony export */ });
|
|
985
|
-
function _extends() {
|
|
986
|
-
return _extends = Object.assign ? Object.assign.bind() : function (n) {
|
|
987
|
-
for (var e = 1; e < arguments.length; e++) {
|
|
988
|
-
var t = arguments[e];
|
|
989
|
-
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
990
|
-
}
|
|
991
|
-
return n;
|
|
992
|
-
}, _extends.apply(null, arguments);
|
|
993
|
-
}
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
/***/ }),
|
|
997
|
-
|
|
998
|
-
/***/ "./node_modules/@babel/runtime/helpers/esm/inheritsLoose.js":
|
|
999
|
-
/*!******************************************************************!*\
|
|
1000
|
-
!*** ./node_modules/@babel/runtime/helpers/esm/inheritsLoose.js ***!
|
|
1001
|
-
\******************************************************************/
|
|
1002
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
1003
|
-
|
|
1004
|
-
"use strict";
|
|
1005
|
-
__webpack_require__.r(__webpack_exports__);
|
|
1006
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1007
|
-
/* harmony export */ "default": () => (/* binding */ _inheritsLoose)
|
|
1008
|
-
/* harmony export */ });
|
|
1009
|
-
/* harmony import */ var _setPrototypeOf_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./setPrototypeOf.js */ "./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js");
|
|
1010
|
-
|
|
1011
|
-
function _inheritsLoose(t, o) {
|
|
1012
|
-
t.prototype = Object.create(o.prototype), t.prototype.constructor = t, (0,_setPrototypeOf_js__WEBPACK_IMPORTED_MODULE_0__["default"])(t, o);
|
|
1013
|
-
}
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
/***/ }),
|
|
1017
|
-
|
|
1018
|
-
/***/ "./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js":
|
|
1019
|
-
/*!*********************************************************************************!*\
|
|
1020
|
-
!*** ./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js ***!
|
|
1021
|
-
\*********************************************************************************/
|
|
1022
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
1023
|
-
|
|
1024
|
-
"use strict";
|
|
1025
|
-
__webpack_require__.r(__webpack_exports__);
|
|
1026
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1027
|
-
/* harmony export */ "default": () => (/* binding */ _objectWithoutPropertiesLoose)
|
|
1028
|
-
/* harmony export */ });
|
|
1029
|
-
function _objectWithoutPropertiesLoose(r, e) {
|
|
1030
|
-
if (null == r) return {};
|
|
1031
|
-
var t = {};
|
|
1032
|
-
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
1033
|
-
if (e.includes(n)) continue;
|
|
1034
|
-
t[n] = r[n];
|
|
1035
|
-
}
|
|
1036
|
-
return t;
|
|
1037
|
-
}
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
/***/ }),
|
|
1041
|
-
|
|
1042
|
-
/***/ "./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js":
|
|
1043
|
-
/*!*******************************************************************!*\
|
|
1044
|
-
!*** ./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js ***!
|
|
1045
|
-
\*******************************************************************/
|
|
1046
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
1047
|
-
|
|
1048
|
-
"use strict";
|
|
1049
|
-
__webpack_require__.r(__webpack_exports__);
|
|
1050
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1051
|
-
/* harmony export */ "default": () => (/* binding */ _setPrototypeOf)
|
|
1052
|
-
/* harmony export */ });
|
|
1053
|
-
function _setPrototypeOf(t, e) {
|
|
1054
|
-
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
|
|
1055
|
-
return t.__proto__ = e, t;
|
|
1056
|
-
}, _setPrototypeOf(t, e);
|
|
1057
|
-
}
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
/***/ })
|
|
1061
|
-
|
|
1062
|
-
}]);
|
|
1063
|
-
//# sourceMappingURL=vendors-node_modules_a.js.map
|