yc-ui2 0.1.0-beta2 → 0.1.0-beta4
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/img/1.8e585a4b.jpg +0 -0
- package/dist/img/2.52192bf1.jpg +0 -0
- package/dist/img/3.4627edc5.jpg +0 -0
- package/dist/img/4.00b9b96d.jpg +0 -0
- package/dist/img/5.00adbac5.jpg +0 -0
- package/dist/img/6.fec4cf56.jpg +0 -0
- package/dist/img/7.2d4c9f56.jpg +0 -0
- package/dist/img/8.63e261ca.jpg +0 -0
- package/dist/yc-ui2.common.js +2264 -22
- package/dist/yc-ui2.common.js.map +1 -1
- package/dist/yc-ui2.css +1 -1
- package/dist/yc-ui2.umd.js +2264 -22
- package/dist/yc-ui2.umd.js.map +1 -1
- package/dist/yc-ui2.umd.min.js +1 -1
- package/dist/yc-ui2.umd.min.js.map +1 -1
- package/package.json +6 -4
- package/src/App.vue +3 -3
- package/src/assets/slideVerify/1.jpg +0 -0
- package/src/assets/slideVerify/2.jpg +0 -0
- package/src/assets/slideVerify/3.jpg +0 -0
- package/src/assets/slideVerify/4.jpg +0 -0
- package/src/assets/slideVerify/5.jpg +0 -0
- package/src/assets/slideVerify/6.jpg +0 -0
- package/src/assets/slideVerify/7.jpg +0 -0
- package/src/assets/slideVerify/8.jpg +0 -0
- package/src/main.js +4 -0
- package/vue.config.js +17 -2
package/dist/yc-ui2.umd.js
CHANGED
@@ -9,9 +9,1773 @@
|
|
9
9
|
root["yc-ui2"] = factory();
|
10
10
|
})((typeof self !== 'undefined' ? self : this), function() {
|
11
11
|
return /******/ (function() { // webpackBootstrap
|
12
|
-
/******/
|
13
|
-
|
14
|
-
|
12
|
+
/******/ var __webpack_modules__ = ({
|
13
|
+
|
14
|
+
/***/ 9662:
|
15
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
16
|
+
|
17
|
+
"use strict";
|
18
|
+
|
19
|
+
var isCallable = __webpack_require__(614);
|
20
|
+
var tryToString = __webpack_require__(6330);
|
21
|
+
|
22
|
+
var $TypeError = TypeError;
|
23
|
+
|
24
|
+
// `Assert: IsCallable(argument) is true`
|
25
|
+
module.exports = function (argument) {
|
26
|
+
if (isCallable(argument)) return argument;
|
27
|
+
throw new $TypeError(tryToString(argument) + ' is not a function');
|
28
|
+
};
|
29
|
+
|
30
|
+
|
31
|
+
/***/ }),
|
32
|
+
|
33
|
+
/***/ 9670:
|
34
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
35
|
+
|
36
|
+
"use strict";
|
37
|
+
|
38
|
+
var isObject = __webpack_require__(111);
|
39
|
+
|
40
|
+
var $String = String;
|
41
|
+
var $TypeError = TypeError;
|
42
|
+
|
43
|
+
// `Assert: Type(argument) is Object`
|
44
|
+
module.exports = function (argument) {
|
45
|
+
if (isObject(argument)) return argument;
|
46
|
+
throw new $TypeError($String(argument) + ' is not an object');
|
47
|
+
};
|
48
|
+
|
49
|
+
|
50
|
+
/***/ }),
|
51
|
+
|
52
|
+
/***/ 1318:
|
53
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
54
|
+
|
55
|
+
"use strict";
|
56
|
+
|
57
|
+
var toIndexedObject = __webpack_require__(5656);
|
58
|
+
var toAbsoluteIndex = __webpack_require__(1400);
|
59
|
+
var lengthOfArrayLike = __webpack_require__(6244);
|
60
|
+
|
61
|
+
// `Array.prototype.{ indexOf, includes }` methods implementation
|
62
|
+
var createMethod = function (IS_INCLUDES) {
|
63
|
+
return function ($this, el, fromIndex) {
|
64
|
+
var O = toIndexedObject($this);
|
65
|
+
var length = lengthOfArrayLike(O);
|
66
|
+
var index = toAbsoluteIndex(fromIndex, length);
|
67
|
+
var value;
|
68
|
+
// Array#includes uses SameValueZero equality algorithm
|
69
|
+
// eslint-disable-next-line no-self-compare -- NaN check
|
70
|
+
if (IS_INCLUDES && el !== el) while (length > index) {
|
71
|
+
value = O[index++];
|
72
|
+
// eslint-disable-next-line no-self-compare -- NaN check
|
73
|
+
if (value !== value) return true;
|
74
|
+
// Array#indexOf ignores holes, Array#includes - not
|
75
|
+
} else for (;length > index; index++) {
|
76
|
+
if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
|
77
|
+
} return !IS_INCLUDES && -1;
|
78
|
+
};
|
79
|
+
};
|
80
|
+
|
81
|
+
module.exports = {
|
82
|
+
// `Array.prototype.includes` method
|
83
|
+
// https://tc39.es/ecma262/#sec-array.prototype.includes
|
84
|
+
includes: createMethod(true),
|
85
|
+
// `Array.prototype.indexOf` method
|
86
|
+
// https://tc39.es/ecma262/#sec-array.prototype.indexof
|
87
|
+
indexOf: createMethod(false)
|
88
|
+
};
|
89
|
+
|
90
|
+
|
91
|
+
/***/ }),
|
92
|
+
|
93
|
+
/***/ 3658:
|
94
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
95
|
+
|
96
|
+
"use strict";
|
97
|
+
|
98
|
+
var DESCRIPTORS = __webpack_require__(9781);
|
99
|
+
var isArray = __webpack_require__(3157);
|
100
|
+
|
101
|
+
var $TypeError = TypeError;
|
102
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
103
|
+
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
104
|
+
|
105
|
+
// Safari < 13 does not throw an error in this case
|
106
|
+
var SILENT_ON_NON_WRITABLE_LENGTH_SET = DESCRIPTORS && !function () {
|
107
|
+
// makes no sense without proper strict mode support
|
108
|
+
if (this !== undefined) return true;
|
109
|
+
try {
|
110
|
+
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
111
|
+
Object.defineProperty([], 'length', { writable: false }).length = 1;
|
112
|
+
} catch (error) {
|
113
|
+
return error instanceof TypeError;
|
114
|
+
}
|
115
|
+
}();
|
116
|
+
|
117
|
+
module.exports = SILENT_ON_NON_WRITABLE_LENGTH_SET ? function (O, length) {
|
118
|
+
if (isArray(O) && !getOwnPropertyDescriptor(O, 'length').writable) {
|
119
|
+
throw new $TypeError('Cannot set read only .length');
|
120
|
+
} return O.length = length;
|
121
|
+
} : function (O, length) {
|
122
|
+
return O.length = length;
|
123
|
+
};
|
124
|
+
|
125
|
+
|
126
|
+
/***/ }),
|
127
|
+
|
128
|
+
/***/ 4326:
|
129
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
130
|
+
|
131
|
+
"use strict";
|
132
|
+
|
133
|
+
var uncurryThis = __webpack_require__(1702);
|
134
|
+
|
135
|
+
var toString = uncurryThis({}.toString);
|
136
|
+
var stringSlice = uncurryThis(''.slice);
|
137
|
+
|
138
|
+
module.exports = function (it) {
|
139
|
+
return stringSlice(toString(it), 8, -1);
|
140
|
+
};
|
141
|
+
|
142
|
+
|
143
|
+
/***/ }),
|
144
|
+
|
145
|
+
/***/ 9920:
|
146
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
147
|
+
|
148
|
+
"use strict";
|
149
|
+
|
150
|
+
var hasOwn = __webpack_require__(2597);
|
151
|
+
var ownKeys = __webpack_require__(3887);
|
152
|
+
var getOwnPropertyDescriptorModule = __webpack_require__(1236);
|
153
|
+
var definePropertyModule = __webpack_require__(3070);
|
154
|
+
|
155
|
+
module.exports = function (target, source, exceptions) {
|
156
|
+
var keys = ownKeys(source);
|
157
|
+
var defineProperty = definePropertyModule.f;
|
158
|
+
var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
|
159
|
+
for (var i = 0; i < keys.length; i++) {
|
160
|
+
var key = keys[i];
|
161
|
+
if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) {
|
162
|
+
defineProperty(target, key, getOwnPropertyDescriptor(source, key));
|
163
|
+
}
|
164
|
+
}
|
165
|
+
};
|
166
|
+
|
167
|
+
|
168
|
+
/***/ }),
|
169
|
+
|
170
|
+
/***/ 8880:
|
171
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
172
|
+
|
173
|
+
"use strict";
|
174
|
+
|
175
|
+
var DESCRIPTORS = __webpack_require__(9781);
|
176
|
+
var definePropertyModule = __webpack_require__(3070);
|
177
|
+
var createPropertyDescriptor = __webpack_require__(9114);
|
178
|
+
|
179
|
+
module.exports = DESCRIPTORS ? function (object, key, value) {
|
180
|
+
return definePropertyModule.f(object, key, createPropertyDescriptor(1, value));
|
181
|
+
} : function (object, key, value) {
|
182
|
+
object[key] = value;
|
183
|
+
return object;
|
184
|
+
};
|
185
|
+
|
186
|
+
|
187
|
+
/***/ }),
|
188
|
+
|
189
|
+
/***/ 9114:
|
190
|
+
/***/ (function(module) {
|
191
|
+
|
192
|
+
"use strict";
|
193
|
+
|
194
|
+
module.exports = function (bitmap, value) {
|
195
|
+
return {
|
196
|
+
enumerable: !(bitmap & 1),
|
197
|
+
configurable: !(bitmap & 2),
|
198
|
+
writable: !(bitmap & 4),
|
199
|
+
value: value
|
200
|
+
};
|
201
|
+
};
|
202
|
+
|
203
|
+
|
204
|
+
/***/ }),
|
205
|
+
|
206
|
+
/***/ 8052:
|
207
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
208
|
+
|
209
|
+
"use strict";
|
210
|
+
|
211
|
+
var isCallable = __webpack_require__(614);
|
212
|
+
var definePropertyModule = __webpack_require__(3070);
|
213
|
+
var makeBuiltIn = __webpack_require__(6339);
|
214
|
+
var defineGlobalProperty = __webpack_require__(3072);
|
215
|
+
|
216
|
+
module.exports = function (O, key, value, options) {
|
217
|
+
if (!options) options = {};
|
218
|
+
var simple = options.enumerable;
|
219
|
+
var name = options.name !== undefined ? options.name : key;
|
220
|
+
if (isCallable(value)) makeBuiltIn(value, name, options);
|
221
|
+
if (options.global) {
|
222
|
+
if (simple) O[key] = value;
|
223
|
+
else defineGlobalProperty(key, value);
|
224
|
+
} else {
|
225
|
+
try {
|
226
|
+
if (!options.unsafe) delete O[key];
|
227
|
+
else if (O[key]) simple = true;
|
228
|
+
} catch (error) { /* empty */ }
|
229
|
+
if (simple) O[key] = value;
|
230
|
+
else definePropertyModule.f(O, key, {
|
231
|
+
value: value,
|
232
|
+
enumerable: false,
|
233
|
+
configurable: !options.nonConfigurable,
|
234
|
+
writable: !options.nonWritable
|
235
|
+
});
|
236
|
+
} return O;
|
237
|
+
};
|
238
|
+
|
239
|
+
|
240
|
+
/***/ }),
|
241
|
+
|
242
|
+
/***/ 3072:
|
243
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
244
|
+
|
245
|
+
"use strict";
|
246
|
+
|
247
|
+
var global = __webpack_require__(7854);
|
248
|
+
|
249
|
+
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
250
|
+
var defineProperty = Object.defineProperty;
|
251
|
+
|
252
|
+
module.exports = function (key, value) {
|
253
|
+
try {
|
254
|
+
defineProperty(global, key, { value: value, configurable: true, writable: true });
|
255
|
+
} catch (error) {
|
256
|
+
global[key] = value;
|
257
|
+
} return value;
|
258
|
+
};
|
259
|
+
|
260
|
+
|
261
|
+
/***/ }),
|
262
|
+
|
263
|
+
/***/ 9781:
|
264
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
265
|
+
|
266
|
+
"use strict";
|
267
|
+
|
268
|
+
var fails = __webpack_require__(7293);
|
269
|
+
|
270
|
+
// Detect IE8's incomplete defineProperty implementation
|
271
|
+
module.exports = !fails(function () {
|
272
|
+
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
273
|
+
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
|
274
|
+
});
|
275
|
+
|
276
|
+
|
277
|
+
/***/ }),
|
278
|
+
|
279
|
+
/***/ 4154:
|
280
|
+
/***/ (function(module) {
|
281
|
+
|
282
|
+
"use strict";
|
283
|
+
|
284
|
+
var documentAll = typeof document == 'object' && document.all;
|
285
|
+
|
286
|
+
// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
|
287
|
+
// eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
|
288
|
+
var IS_HTMLDDA = typeof documentAll == 'undefined' && documentAll !== undefined;
|
289
|
+
|
290
|
+
module.exports = {
|
291
|
+
all: documentAll,
|
292
|
+
IS_HTMLDDA: IS_HTMLDDA
|
293
|
+
};
|
294
|
+
|
295
|
+
|
296
|
+
/***/ }),
|
297
|
+
|
298
|
+
/***/ 317:
|
299
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
300
|
+
|
301
|
+
"use strict";
|
302
|
+
|
303
|
+
var global = __webpack_require__(7854);
|
304
|
+
var isObject = __webpack_require__(111);
|
305
|
+
|
306
|
+
var document = global.document;
|
307
|
+
// typeof document.createElement is 'object' in old IE
|
308
|
+
var EXISTS = isObject(document) && isObject(document.createElement);
|
309
|
+
|
310
|
+
module.exports = function (it) {
|
311
|
+
return EXISTS ? document.createElement(it) : {};
|
312
|
+
};
|
313
|
+
|
314
|
+
|
315
|
+
/***/ }),
|
316
|
+
|
317
|
+
/***/ 7207:
|
318
|
+
/***/ (function(module) {
|
319
|
+
|
320
|
+
"use strict";
|
321
|
+
|
322
|
+
var $TypeError = TypeError;
|
323
|
+
var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991
|
324
|
+
|
325
|
+
module.exports = function (it) {
|
326
|
+
if (it > MAX_SAFE_INTEGER) throw $TypeError('Maximum allowed index exceeded');
|
327
|
+
return it;
|
328
|
+
};
|
329
|
+
|
330
|
+
|
331
|
+
/***/ }),
|
332
|
+
|
333
|
+
/***/ 8113:
|
334
|
+
/***/ (function(module) {
|
335
|
+
|
336
|
+
"use strict";
|
337
|
+
|
338
|
+
module.exports = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
|
339
|
+
|
340
|
+
|
341
|
+
/***/ }),
|
342
|
+
|
343
|
+
/***/ 7392:
|
344
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
345
|
+
|
346
|
+
"use strict";
|
347
|
+
|
348
|
+
var global = __webpack_require__(7854);
|
349
|
+
var userAgent = __webpack_require__(8113);
|
350
|
+
|
351
|
+
var process = global.process;
|
352
|
+
var Deno = global.Deno;
|
353
|
+
var versions = process && process.versions || Deno && Deno.version;
|
354
|
+
var v8 = versions && versions.v8;
|
355
|
+
var match, version;
|
356
|
+
|
357
|
+
if (v8) {
|
358
|
+
match = v8.split('.');
|
359
|
+
// in old Chrome, versions of V8 isn't V8 = Chrome / 10
|
360
|
+
// but their correct versions are not interesting for us
|
361
|
+
version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
|
362
|
+
}
|
363
|
+
|
364
|
+
// BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
|
365
|
+
// so check `userAgent` even if `.v8` exists, but 0
|
366
|
+
if (!version && userAgent) {
|
367
|
+
match = userAgent.match(/Edge\/(\d+)/);
|
368
|
+
if (!match || match[1] >= 74) {
|
369
|
+
match = userAgent.match(/Chrome\/(\d+)/);
|
370
|
+
if (match) version = +match[1];
|
371
|
+
}
|
372
|
+
}
|
373
|
+
|
374
|
+
module.exports = version;
|
375
|
+
|
376
|
+
|
377
|
+
/***/ }),
|
378
|
+
|
379
|
+
/***/ 748:
|
380
|
+
/***/ (function(module) {
|
381
|
+
|
382
|
+
"use strict";
|
383
|
+
|
384
|
+
// IE8- don't enum bug keys
|
385
|
+
module.exports = [
|
386
|
+
'constructor',
|
387
|
+
'hasOwnProperty',
|
388
|
+
'isPrototypeOf',
|
389
|
+
'propertyIsEnumerable',
|
390
|
+
'toLocaleString',
|
391
|
+
'toString',
|
392
|
+
'valueOf'
|
393
|
+
];
|
394
|
+
|
395
|
+
|
396
|
+
/***/ }),
|
397
|
+
|
398
|
+
/***/ 2109:
|
399
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
400
|
+
|
401
|
+
"use strict";
|
402
|
+
|
403
|
+
var global = __webpack_require__(7854);
|
404
|
+
var getOwnPropertyDescriptor = (__webpack_require__(1236).f);
|
405
|
+
var createNonEnumerableProperty = __webpack_require__(8880);
|
406
|
+
var defineBuiltIn = __webpack_require__(8052);
|
407
|
+
var defineGlobalProperty = __webpack_require__(3072);
|
408
|
+
var copyConstructorProperties = __webpack_require__(9920);
|
409
|
+
var isForced = __webpack_require__(4705);
|
410
|
+
|
411
|
+
/*
|
412
|
+
options.target - name of the target object
|
413
|
+
options.global - target is the global object
|
414
|
+
options.stat - export as static methods of target
|
415
|
+
options.proto - export as prototype methods of target
|
416
|
+
options.real - real prototype method for the `pure` version
|
417
|
+
options.forced - export even if the native feature is available
|
418
|
+
options.bind - bind methods to the target, required for the `pure` version
|
419
|
+
options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
|
420
|
+
options.unsafe - use the simple assignment of property instead of delete + defineProperty
|
421
|
+
options.sham - add a flag to not completely full polyfills
|
422
|
+
options.enumerable - export as enumerable property
|
423
|
+
options.dontCallGetSet - prevent calling a getter on target
|
424
|
+
options.name - the .name of the function if it does not match the key
|
425
|
+
*/
|
426
|
+
module.exports = function (options, source) {
|
427
|
+
var TARGET = options.target;
|
428
|
+
var GLOBAL = options.global;
|
429
|
+
var STATIC = options.stat;
|
430
|
+
var FORCED, target, key, targetProperty, sourceProperty, descriptor;
|
431
|
+
if (GLOBAL) {
|
432
|
+
target = global;
|
433
|
+
} else if (STATIC) {
|
434
|
+
target = global[TARGET] || defineGlobalProperty(TARGET, {});
|
435
|
+
} else {
|
436
|
+
target = (global[TARGET] || {}).prototype;
|
437
|
+
}
|
438
|
+
if (target) for (key in source) {
|
439
|
+
sourceProperty = source[key];
|
440
|
+
if (options.dontCallGetSet) {
|
441
|
+
descriptor = getOwnPropertyDescriptor(target, key);
|
442
|
+
targetProperty = descriptor && descriptor.value;
|
443
|
+
} else targetProperty = target[key];
|
444
|
+
FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
|
445
|
+
// contained in target
|
446
|
+
if (!FORCED && targetProperty !== undefined) {
|
447
|
+
if (typeof sourceProperty == typeof targetProperty) continue;
|
448
|
+
copyConstructorProperties(sourceProperty, targetProperty);
|
449
|
+
}
|
450
|
+
// add a flag to not completely full polyfills
|
451
|
+
if (options.sham || (targetProperty && targetProperty.sham)) {
|
452
|
+
createNonEnumerableProperty(sourceProperty, 'sham', true);
|
453
|
+
}
|
454
|
+
defineBuiltIn(target, key, sourceProperty, options);
|
455
|
+
}
|
456
|
+
};
|
457
|
+
|
458
|
+
|
459
|
+
/***/ }),
|
460
|
+
|
461
|
+
/***/ 7293:
|
462
|
+
/***/ (function(module) {
|
463
|
+
|
464
|
+
"use strict";
|
465
|
+
|
466
|
+
module.exports = function (exec) {
|
467
|
+
try {
|
468
|
+
return !!exec();
|
469
|
+
} catch (error) {
|
470
|
+
return true;
|
471
|
+
}
|
472
|
+
};
|
473
|
+
|
474
|
+
|
475
|
+
/***/ }),
|
476
|
+
|
477
|
+
/***/ 4374:
|
478
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
479
|
+
|
480
|
+
"use strict";
|
481
|
+
|
482
|
+
var fails = __webpack_require__(7293);
|
483
|
+
|
484
|
+
module.exports = !fails(function () {
|
485
|
+
// eslint-disable-next-line es/no-function-prototype-bind -- safe
|
486
|
+
var test = (function () { /* empty */ }).bind();
|
487
|
+
// eslint-disable-next-line no-prototype-builtins -- safe
|
488
|
+
return typeof test != 'function' || test.hasOwnProperty('prototype');
|
489
|
+
});
|
490
|
+
|
491
|
+
|
492
|
+
/***/ }),
|
493
|
+
|
494
|
+
/***/ 6916:
|
495
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
496
|
+
|
497
|
+
"use strict";
|
498
|
+
|
499
|
+
var NATIVE_BIND = __webpack_require__(4374);
|
500
|
+
|
501
|
+
var call = Function.prototype.call;
|
502
|
+
|
503
|
+
module.exports = NATIVE_BIND ? call.bind(call) : function () {
|
504
|
+
return call.apply(call, arguments);
|
505
|
+
};
|
506
|
+
|
507
|
+
|
508
|
+
/***/ }),
|
509
|
+
|
510
|
+
/***/ 6530:
|
511
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
512
|
+
|
513
|
+
"use strict";
|
514
|
+
|
515
|
+
var DESCRIPTORS = __webpack_require__(9781);
|
516
|
+
var hasOwn = __webpack_require__(2597);
|
517
|
+
|
518
|
+
var FunctionPrototype = Function.prototype;
|
519
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
520
|
+
var getDescriptor = DESCRIPTORS && Object.getOwnPropertyDescriptor;
|
521
|
+
|
522
|
+
var EXISTS = hasOwn(FunctionPrototype, 'name');
|
523
|
+
// additional protection from minified / mangled / dropped function names
|
524
|
+
var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
|
525
|
+
var CONFIGURABLE = EXISTS && (!DESCRIPTORS || (DESCRIPTORS && getDescriptor(FunctionPrototype, 'name').configurable));
|
526
|
+
|
527
|
+
module.exports = {
|
528
|
+
EXISTS: EXISTS,
|
529
|
+
PROPER: PROPER,
|
530
|
+
CONFIGURABLE: CONFIGURABLE
|
531
|
+
};
|
532
|
+
|
533
|
+
|
534
|
+
/***/ }),
|
535
|
+
|
536
|
+
/***/ 1702:
|
537
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
538
|
+
|
539
|
+
"use strict";
|
540
|
+
|
541
|
+
var NATIVE_BIND = __webpack_require__(4374);
|
542
|
+
|
543
|
+
var FunctionPrototype = Function.prototype;
|
544
|
+
var call = FunctionPrototype.call;
|
545
|
+
var uncurryThisWithBind = NATIVE_BIND && FunctionPrototype.bind.bind(call, call);
|
546
|
+
|
547
|
+
module.exports = NATIVE_BIND ? uncurryThisWithBind : function (fn) {
|
548
|
+
return function () {
|
549
|
+
return call.apply(fn, arguments);
|
550
|
+
};
|
551
|
+
};
|
552
|
+
|
553
|
+
|
554
|
+
/***/ }),
|
555
|
+
|
556
|
+
/***/ 5005:
|
557
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
558
|
+
|
559
|
+
"use strict";
|
560
|
+
|
561
|
+
var global = __webpack_require__(7854);
|
562
|
+
var isCallable = __webpack_require__(614);
|
563
|
+
|
564
|
+
var aFunction = function (argument) {
|
565
|
+
return isCallable(argument) ? argument : undefined;
|
566
|
+
};
|
567
|
+
|
568
|
+
module.exports = function (namespace, method) {
|
569
|
+
return arguments.length < 2 ? aFunction(global[namespace]) : global[namespace] && global[namespace][method];
|
570
|
+
};
|
571
|
+
|
572
|
+
|
573
|
+
/***/ }),
|
574
|
+
|
575
|
+
/***/ 8173:
|
576
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
577
|
+
|
578
|
+
"use strict";
|
579
|
+
|
580
|
+
var aCallable = __webpack_require__(9662);
|
581
|
+
var isNullOrUndefined = __webpack_require__(8554);
|
582
|
+
|
583
|
+
// `GetMethod` abstract operation
|
584
|
+
// https://tc39.es/ecma262/#sec-getmethod
|
585
|
+
module.exports = function (V, P) {
|
586
|
+
var func = V[P];
|
587
|
+
return isNullOrUndefined(func) ? undefined : aCallable(func);
|
588
|
+
};
|
589
|
+
|
590
|
+
|
591
|
+
/***/ }),
|
592
|
+
|
593
|
+
/***/ 7854:
|
594
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
595
|
+
|
596
|
+
"use strict";
|
597
|
+
|
598
|
+
var check = function (it) {
|
599
|
+
return it && it.Math === Math && it;
|
600
|
+
};
|
601
|
+
|
602
|
+
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
603
|
+
module.exports =
|
604
|
+
// eslint-disable-next-line es/no-global-this -- safe
|
605
|
+
check(typeof globalThis == 'object' && globalThis) ||
|
606
|
+
check(typeof window == 'object' && window) ||
|
607
|
+
// eslint-disable-next-line no-restricted-globals -- safe
|
608
|
+
check(typeof self == 'object' && self) ||
|
609
|
+
check(typeof __webpack_require__.g == 'object' && __webpack_require__.g) ||
|
610
|
+
// eslint-disable-next-line no-new-func -- fallback
|
611
|
+
(function () { return this; })() || this || Function('return this')();
|
612
|
+
|
613
|
+
|
614
|
+
/***/ }),
|
615
|
+
|
616
|
+
/***/ 2597:
|
617
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
618
|
+
|
619
|
+
"use strict";
|
620
|
+
|
621
|
+
var uncurryThis = __webpack_require__(1702);
|
622
|
+
var toObject = __webpack_require__(7908);
|
623
|
+
|
624
|
+
var hasOwnProperty = uncurryThis({}.hasOwnProperty);
|
625
|
+
|
626
|
+
// `HasOwnProperty` abstract operation
|
627
|
+
// https://tc39.es/ecma262/#sec-hasownproperty
|
628
|
+
// eslint-disable-next-line es/no-object-hasown -- safe
|
629
|
+
module.exports = Object.hasOwn || function hasOwn(it, key) {
|
630
|
+
return hasOwnProperty(toObject(it), key);
|
631
|
+
};
|
632
|
+
|
633
|
+
|
634
|
+
/***/ }),
|
635
|
+
|
636
|
+
/***/ 3501:
|
637
|
+
/***/ (function(module) {
|
638
|
+
|
639
|
+
"use strict";
|
640
|
+
|
641
|
+
module.exports = {};
|
642
|
+
|
643
|
+
|
644
|
+
/***/ }),
|
645
|
+
|
646
|
+
/***/ 4664:
|
647
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
648
|
+
|
649
|
+
"use strict";
|
650
|
+
|
651
|
+
var DESCRIPTORS = __webpack_require__(9781);
|
652
|
+
var fails = __webpack_require__(7293);
|
653
|
+
var createElement = __webpack_require__(317);
|
654
|
+
|
655
|
+
// Thanks to IE8 for its funny defineProperty
|
656
|
+
module.exports = !DESCRIPTORS && !fails(function () {
|
657
|
+
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
658
|
+
return Object.defineProperty(createElement('div'), 'a', {
|
659
|
+
get: function () { return 7; }
|
660
|
+
}).a !== 7;
|
661
|
+
});
|
662
|
+
|
663
|
+
|
664
|
+
/***/ }),
|
665
|
+
|
666
|
+
/***/ 8361:
|
667
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
668
|
+
|
669
|
+
"use strict";
|
670
|
+
|
671
|
+
var uncurryThis = __webpack_require__(1702);
|
672
|
+
var fails = __webpack_require__(7293);
|
673
|
+
var classof = __webpack_require__(4326);
|
674
|
+
|
675
|
+
var $Object = Object;
|
676
|
+
var split = uncurryThis(''.split);
|
677
|
+
|
678
|
+
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
679
|
+
module.exports = fails(function () {
|
680
|
+
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
|
681
|
+
// eslint-disable-next-line no-prototype-builtins -- safe
|
682
|
+
return !$Object('z').propertyIsEnumerable(0);
|
683
|
+
}) ? function (it) {
|
684
|
+
return classof(it) === 'String' ? split(it, '') : $Object(it);
|
685
|
+
} : $Object;
|
686
|
+
|
687
|
+
|
688
|
+
/***/ }),
|
689
|
+
|
690
|
+
/***/ 2788:
|
691
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
692
|
+
|
693
|
+
"use strict";
|
694
|
+
|
695
|
+
var uncurryThis = __webpack_require__(1702);
|
696
|
+
var isCallable = __webpack_require__(614);
|
697
|
+
var store = __webpack_require__(5465);
|
698
|
+
|
699
|
+
var functionToString = uncurryThis(Function.toString);
|
700
|
+
|
701
|
+
// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
|
702
|
+
if (!isCallable(store.inspectSource)) {
|
703
|
+
store.inspectSource = function (it) {
|
704
|
+
return functionToString(it);
|
705
|
+
};
|
706
|
+
}
|
707
|
+
|
708
|
+
module.exports = store.inspectSource;
|
709
|
+
|
710
|
+
|
711
|
+
/***/ }),
|
712
|
+
|
713
|
+
/***/ 9909:
|
714
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
715
|
+
|
716
|
+
"use strict";
|
717
|
+
|
718
|
+
var NATIVE_WEAK_MAP = __webpack_require__(4811);
|
719
|
+
var global = __webpack_require__(7854);
|
720
|
+
var isObject = __webpack_require__(111);
|
721
|
+
var createNonEnumerableProperty = __webpack_require__(8880);
|
722
|
+
var hasOwn = __webpack_require__(2597);
|
723
|
+
var shared = __webpack_require__(5465);
|
724
|
+
var sharedKey = __webpack_require__(6200);
|
725
|
+
var hiddenKeys = __webpack_require__(3501);
|
726
|
+
|
727
|
+
var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
|
728
|
+
var TypeError = global.TypeError;
|
729
|
+
var WeakMap = global.WeakMap;
|
730
|
+
var set, get, has;
|
731
|
+
|
732
|
+
var enforce = function (it) {
|
733
|
+
return has(it) ? get(it) : set(it, {});
|
734
|
+
};
|
735
|
+
|
736
|
+
var getterFor = function (TYPE) {
|
737
|
+
return function (it) {
|
738
|
+
var state;
|
739
|
+
if (!isObject(it) || (state = get(it)).type !== TYPE) {
|
740
|
+
throw new TypeError('Incompatible receiver, ' + TYPE + ' required');
|
741
|
+
} return state;
|
742
|
+
};
|
743
|
+
};
|
744
|
+
|
745
|
+
if (NATIVE_WEAK_MAP || shared.state) {
|
746
|
+
var store = shared.state || (shared.state = new WeakMap());
|
747
|
+
/* eslint-disable no-self-assign -- prototype methods protection */
|
748
|
+
store.get = store.get;
|
749
|
+
store.has = store.has;
|
750
|
+
store.set = store.set;
|
751
|
+
/* eslint-enable no-self-assign -- prototype methods protection */
|
752
|
+
set = function (it, metadata) {
|
753
|
+
if (store.has(it)) throw new TypeError(OBJECT_ALREADY_INITIALIZED);
|
754
|
+
metadata.facade = it;
|
755
|
+
store.set(it, metadata);
|
756
|
+
return metadata;
|
757
|
+
};
|
758
|
+
get = function (it) {
|
759
|
+
return store.get(it) || {};
|
760
|
+
};
|
761
|
+
has = function (it) {
|
762
|
+
return store.has(it);
|
763
|
+
};
|
764
|
+
} else {
|
765
|
+
var STATE = sharedKey('state');
|
766
|
+
hiddenKeys[STATE] = true;
|
767
|
+
set = function (it, metadata) {
|
768
|
+
if (hasOwn(it, STATE)) throw new TypeError(OBJECT_ALREADY_INITIALIZED);
|
769
|
+
metadata.facade = it;
|
770
|
+
createNonEnumerableProperty(it, STATE, metadata);
|
771
|
+
return metadata;
|
772
|
+
};
|
773
|
+
get = function (it) {
|
774
|
+
return hasOwn(it, STATE) ? it[STATE] : {};
|
775
|
+
};
|
776
|
+
has = function (it) {
|
777
|
+
return hasOwn(it, STATE);
|
778
|
+
};
|
779
|
+
}
|
780
|
+
|
781
|
+
module.exports = {
|
782
|
+
set: set,
|
783
|
+
get: get,
|
784
|
+
has: has,
|
785
|
+
enforce: enforce,
|
786
|
+
getterFor: getterFor
|
787
|
+
};
|
788
|
+
|
789
|
+
|
790
|
+
/***/ }),
|
791
|
+
|
792
|
+
/***/ 3157:
|
793
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
794
|
+
|
795
|
+
"use strict";
|
796
|
+
|
797
|
+
var classof = __webpack_require__(4326);
|
798
|
+
|
799
|
+
// `IsArray` abstract operation
|
800
|
+
// https://tc39.es/ecma262/#sec-isarray
|
801
|
+
// eslint-disable-next-line es/no-array-isarray -- safe
|
802
|
+
module.exports = Array.isArray || function isArray(argument) {
|
803
|
+
return classof(argument) === 'Array';
|
804
|
+
};
|
805
|
+
|
806
|
+
|
807
|
+
/***/ }),
|
808
|
+
|
809
|
+
/***/ 614:
|
810
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
811
|
+
|
812
|
+
"use strict";
|
813
|
+
|
814
|
+
var $documentAll = __webpack_require__(4154);
|
815
|
+
|
816
|
+
var documentAll = $documentAll.all;
|
817
|
+
|
818
|
+
// `IsCallable` abstract operation
|
819
|
+
// https://tc39.es/ecma262/#sec-iscallable
|
820
|
+
module.exports = $documentAll.IS_HTMLDDA ? function (argument) {
|
821
|
+
return typeof argument == 'function' || argument === documentAll;
|
822
|
+
} : function (argument) {
|
823
|
+
return typeof argument == 'function';
|
824
|
+
};
|
825
|
+
|
826
|
+
|
827
|
+
/***/ }),
|
828
|
+
|
829
|
+
/***/ 4705:
|
830
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
831
|
+
|
832
|
+
"use strict";
|
833
|
+
|
834
|
+
var fails = __webpack_require__(7293);
|
835
|
+
var isCallable = __webpack_require__(614);
|
836
|
+
|
837
|
+
var replacement = /#|\.prototype\./;
|
838
|
+
|
839
|
+
var isForced = function (feature, detection) {
|
840
|
+
var value = data[normalize(feature)];
|
841
|
+
return value === POLYFILL ? true
|
842
|
+
: value === NATIVE ? false
|
843
|
+
: isCallable(detection) ? fails(detection)
|
844
|
+
: !!detection;
|
845
|
+
};
|
846
|
+
|
847
|
+
var normalize = isForced.normalize = function (string) {
|
848
|
+
return String(string).replace(replacement, '.').toLowerCase();
|
849
|
+
};
|
850
|
+
|
851
|
+
var data = isForced.data = {};
|
852
|
+
var NATIVE = isForced.NATIVE = 'N';
|
853
|
+
var POLYFILL = isForced.POLYFILL = 'P';
|
854
|
+
|
855
|
+
module.exports = isForced;
|
856
|
+
|
857
|
+
|
858
|
+
/***/ }),
|
859
|
+
|
860
|
+
/***/ 8554:
|
861
|
+
/***/ (function(module) {
|
862
|
+
|
863
|
+
"use strict";
|
864
|
+
|
865
|
+
// we can't use just `it == null` since of `document.all` special case
|
866
|
+
// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
|
867
|
+
module.exports = function (it) {
|
868
|
+
return it === null || it === undefined;
|
869
|
+
};
|
870
|
+
|
871
|
+
|
872
|
+
/***/ }),
|
873
|
+
|
874
|
+
/***/ 111:
|
875
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
876
|
+
|
877
|
+
"use strict";
|
878
|
+
|
879
|
+
var isCallable = __webpack_require__(614);
|
880
|
+
var $documentAll = __webpack_require__(4154);
|
881
|
+
|
882
|
+
var documentAll = $documentAll.all;
|
883
|
+
|
884
|
+
module.exports = $documentAll.IS_HTMLDDA ? function (it) {
|
885
|
+
return typeof it == 'object' ? it !== null : isCallable(it) || it === documentAll;
|
886
|
+
} : function (it) {
|
887
|
+
return typeof it == 'object' ? it !== null : isCallable(it);
|
888
|
+
};
|
889
|
+
|
890
|
+
|
891
|
+
/***/ }),
|
892
|
+
|
893
|
+
/***/ 1913:
|
894
|
+
/***/ (function(module) {
|
895
|
+
|
896
|
+
"use strict";
|
897
|
+
|
898
|
+
module.exports = false;
|
899
|
+
|
900
|
+
|
901
|
+
/***/ }),
|
902
|
+
|
903
|
+
/***/ 2190:
|
904
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
905
|
+
|
906
|
+
"use strict";
|
907
|
+
|
908
|
+
var getBuiltIn = __webpack_require__(5005);
|
909
|
+
var isCallable = __webpack_require__(614);
|
910
|
+
var isPrototypeOf = __webpack_require__(7976);
|
911
|
+
var USE_SYMBOL_AS_UID = __webpack_require__(3307);
|
912
|
+
|
913
|
+
var $Object = Object;
|
914
|
+
|
915
|
+
module.exports = USE_SYMBOL_AS_UID ? function (it) {
|
916
|
+
return typeof it == 'symbol';
|
917
|
+
} : function (it) {
|
918
|
+
var $Symbol = getBuiltIn('Symbol');
|
919
|
+
return isCallable($Symbol) && isPrototypeOf($Symbol.prototype, $Object(it));
|
920
|
+
};
|
921
|
+
|
922
|
+
|
923
|
+
/***/ }),
|
924
|
+
|
925
|
+
/***/ 6244:
|
926
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
927
|
+
|
928
|
+
"use strict";
|
929
|
+
|
930
|
+
var toLength = __webpack_require__(7466);
|
931
|
+
|
932
|
+
// `LengthOfArrayLike` abstract operation
|
933
|
+
// https://tc39.es/ecma262/#sec-lengthofarraylike
|
934
|
+
module.exports = function (obj) {
|
935
|
+
return toLength(obj.length);
|
936
|
+
};
|
937
|
+
|
938
|
+
|
939
|
+
/***/ }),
|
940
|
+
|
941
|
+
/***/ 6339:
|
942
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
943
|
+
|
944
|
+
"use strict";
|
945
|
+
|
946
|
+
var uncurryThis = __webpack_require__(1702);
|
947
|
+
var fails = __webpack_require__(7293);
|
948
|
+
var isCallable = __webpack_require__(614);
|
949
|
+
var hasOwn = __webpack_require__(2597);
|
950
|
+
var DESCRIPTORS = __webpack_require__(9781);
|
951
|
+
var CONFIGURABLE_FUNCTION_NAME = (__webpack_require__(6530).CONFIGURABLE);
|
952
|
+
var inspectSource = __webpack_require__(2788);
|
953
|
+
var InternalStateModule = __webpack_require__(9909);
|
954
|
+
|
955
|
+
var enforceInternalState = InternalStateModule.enforce;
|
956
|
+
var getInternalState = InternalStateModule.get;
|
957
|
+
var $String = String;
|
958
|
+
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
959
|
+
var defineProperty = Object.defineProperty;
|
960
|
+
var stringSlice = uncurryThis(''.slice);
|
961
|
+
var replace = uncurryThis(''.replace);
|
962
|
+
var join = uncurryThis([].join);
|
963
|
+
|
964
|
+
var CONFIGURABLE_LENGTH = DESCRIPTORS && !fails(function () {
|
965
|
+
return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
|
966
|
+
});
|
967
|
+
|
968
|
+
var TEMPLATE = String(String).split('String');
|
969
|
+
|
970
|
+
var makeBuiltIn = module.exports = function (value, name, options) {
|
971
|
+
if (stringSlice($String(name), 0, 7) === 'Symbol(') {
|
972
|
+
name = '[' + replace($String(name), /^Symbol\(([^)]*)\)/, '$1') + ']';
|
973
|
+
}
|
974
|
+
if (options && options.getter) name = 'get ' + name;
|
975
|
+
if (options && options.setter) name = 'set ' + name;
|
976
|
+
if (!hasOwn(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
|
977
|
+
if (DESCRIPTORS) defineProperty(value, 'name', { value: name, configurable: true });
|
978
|
+
else value.name = name;
|
979
|
+
}
|
980
|
+
if (CONFIGURABLE_LENGTH && options && hasOwn(options, 'arity') && value.length !== options.arity) {
|
981
|
+
defineProperty(value, 'length', { value: options.arity });
|
982
|
+
}
|
983
|
+
try {
|
984
|
+
if (options && hasOwn(options, 'constructor') && options.constructor) {
|
985
|
+
if (DESCRIPTORS) defineProperty(value, 'prototype', { writable: false });
|
986
|
+
// in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
|
987
|
+
} else if (value.prototype) value.prototype = undefined;
|
988
|
+
} catch (error) { /* empty */ }
|
989
|
+
var state = enforceInternalState(value);
|
990
|
+
if (!hasOwn(state, 'source')) {
|
991
|
+
state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
|
992
|
+
} return value;
|
993
|
+
};
|
994
|
+
|
995
|
+
// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
|
996
|
+
// eslint-disable-next-line no-extend-native -- required
|
997
|
+
Function.prototype.toString = makeBuiltIn(function toString() {
|
998
|
+
return isCallable(this) && getInternalState(this).source || inspectSource(this);
|
999
|
+
}, 'toString');
|
1000
|
+
|
1001
|
+
|
1002
|
+
/***/ }),
|
1003
|
+
|
1004
|
+
/***/ 4758:
|
1005
|
+
/***/ (function(module) {
|
1006
|
+
|
1007
|
+
"use strict";
|
1008
|
+
|
1009
|
+
var ceil = Math.ceil;
|
1010
|
+
var floor = Math.floor;
|
1011
|
+
|
1012
|
+
// `Math.trunc` method
|
1013
|
+
// https://tc39.es/ecma262/#sec-math.trunc
|
1014
|
+
// eslint-disable-next-line es/no-math-trunc -- safe
|
1015
|
+
module.exports = Math.trunc || function trunc(x) {
|
1016
|
+
var n = +x;
|
1017
|
+
return (n > 0 ? floor : ceil)(n);
|
1018
|
+
};
|
1019
|
+
|
1020
|
+
|
1021
|
+
/***/ }),
|
1022
|
+
|
1023
|
+
/***/ 3070:
|
1024
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
1025
|
+
|
1026
|
+
"use strict";
|
1027
|
+
|
1028
|
+
var DESCRIPTORS = __webpack_require__(9781);
|
1029
|
+
var IE8_DOM_DEFINE = __webpack_require__(4664);
|
1030
|
+
var V8_PROTOTYPE_DEFINE_BUG = __webpack_require__(3353);
|
1031
|
+
var anObject = __webpack_require__(9670);
|
1032
|
+
var toPropertyKey = __webpack_require__(4948);
|
1033
|
+
|
1034
|
+
var $TypeError = TypeError;
|
1035
|
+
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
1036
|
+
var $defineProperty = Object.defineProperty;
|
1037
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
1038
|
+
var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
1039
|
+
var ENUMERABLE = 'enumerable';
|
1040
|
+
var CONFIGURABLE = 'configurable';
|
1041
|
+
var WRITABLE = 'writable';
|
1042
|
+
|
1043
|
+
// `Object.defineProperty` method
|
1044
|
+
// https://tc39.es/ecma262/#sec-object.defineproperty
|
1045
|
+
exports.f = DESCRIPTORS ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) {
|
1046
|
+
anObject(O);
|
1047
|
+
P = toPropertyKey(P);
|
1048
|
+
anObject(Attributes);
|
1049
|
+
if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
|
1050
|
+
var current = $getOwnPropertyDescriptor(O, P);
|
1051
|
+
if (current && current[WRITABLE]) {
|
1052
|
+
O[P] = Attributes.value;
|
1053
|
+
Attributes = {
|
1054
|
+
configurable: CONFIGURABLE in Attributes ? Attributes[CONFIGURABLE] : current[CONFIGURABLE],
|
1055
|
+
enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
|
1056
|
+
writable: false
|
1057
|
+
};
|
1058
|
+
}
|
1059
|
+
} return $defineProperty(O, P, Attributes);
|
1060
|
+
} : $defineProperty : function defineProperty(O, P, Attributes) {
|
1061
|
+
anObject(O);
|
1062
|
+
P = toPropertyKey(P);
|
1063
|
+
anObject(Attributes);
|
1064
|
+
if (IE8_DOM_DEFINE) try {
|
1065
|
+
return $defineProperty(O, P, Attributes);
|
1066
|
+
} catch (error) { /* empty */ }
|
1067
|
+
if ('get' in Attributes || 'set' in Attributes) throw new $TypeError('Accessors not supported');
|
1068
|
+
if ('value' in Attributes) O[P] = Attributes.value;
|
1069
|
+
return O;
|
1070
|
+
};
|
1071
|
+
|
1072
|
+
|
1073
|
+
/***/ }),
|
1074
|
+
|
1075
|
+
/***/ 1236:
|
1076
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
1077
|
+
|
1078
|
+
"use strict";
|
1079
|
+
|
1080
|
+
var DESCRIPTORS = __webpack_require__(9781);
|
1081
|
+
var call = __webpack_require__(6916);
|
1082
|
+
var propertyIsEnumerableModule = __webpack_require__(5296);
|
1083
|
+
var createPropertyDescriptor = __webpack_require__(9114);
|
1084
|
+
var toIndexedObject = __webpack_require__(5656);
|
1085
|
+
var toPropertyKey = __webpack_require__(4948);
|
1086
|
+
var hasOwn = __webpack_require__(2597);
|
1087
|
+
var IE8_DOM_DEFINE = __webpack_require__(4664);
|
1088
|
+
|
1089
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
1090
|
+
var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
1091
|
+
|
1092
|
+
// `Object.getOwnPropertyDescriptor` method
|
1093
|
+
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
|
1094
|
+
exports.f = DESCRIPTORS ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
|
1095
|
+
O = toIndexedObject(O);
|
1096
|
+
P = toPropertyKey(P);
|
1097
|
+
if (IE8_DOM_DEFINE) try {
|
1098
|
+
return $getOwnPropertyDescriptor(O, P);
|
1099
|
+
} catch (error) { /* empty */ }
|
1100
|
+
if (hasOwn(O, P)) return createPropertyDescriptor(!call(propertyIsEnumerableModule.f, O, P), O[P]);
|
1101
|
+
};
|
1102
|
+
|
1103
|
+
|
1104
|
+
/***/ }),
|
1105
|
+
|
1106
|
+
/***/ 8006:
|
1107
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
1108
|
+
|
1109
|
+
"use strict";
|
1110
|
+
|
1111
|
+
var internalObjectKeys = __webpack_require__(6324);
|
1112
|
+
var enumBugKeys = __webpack_require__(748);
|
1113
|
+
|
1114
|
+
var hiddenKeys = enumBugKeys.concat('length', 'prototype');
|
1115
|
+
|
1116
|
+
// `Object.getOwnPropertyNames` method
|
1117
|
+
// https://tc39.es/ecma262/#sec-object.getownpropertynames
|
1118
|
+
// eslint-disable-next-line es/no-object-getownpropertynames -- safe
|
1119
|
+
exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
|
1120
|
+
return internalObjectKeys(O, hiddenKeys);
|
1121
|
+
};
|
1122
|
+
|
1123
|
+
|
1124
|
+
/***/ }),
|
1125
|
+
|
1126
|
+
/***/ 5181:
|
1127
|
+
/***/ (function(__unused_webpack_module, exports) {
|
1128
|
+
|
1129
|
+
"use strict";
|
1130
|
+
|
1131
|
+
// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
|
1132
|
+
exports.f = Object.getOwnPropertySymbols;
|
1133
|
+
|
1134
|
+
|
1135
|
+
/***/ }),
|
1136
|
+
|
1137
|
+
/***/ 7976:
|
1138
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
1139
|
+
|
1140
|
+
"use strict";
|
1141
|
+
|
1142
|
+
var uncurryThis = __webpack_require__(1702);
|
1143
|
+
|
1144
|
+
module.exports = uncurryThis({}.isPrototypeOf);
|
1145
|
+
|
1146
|
+
|
1147
|
+
/***/ }),
|
1148
|
+
|
1149
|
+
/***/ 6324:
|
1150
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
1151
|
+
|
1152
|
+
"use strict";
|
1153
|
+
|
1154
|
+
var uncurryThis = __webpack_require__(1702);
|
1155
|
+
var hasOwn = __webpack_require__(2597);
|
1156
|
+
var toIndexedObject = __webpack_require__(5656);
|
1157
|
+
var indexOf = (__webpack_require__(1318).indexOf);
|
1158
|
+
var hiddenKeys = __webpack_require__(3501);
|
1159
|
+
|
1160
|
+
var push = uncurryThis([].push);
|
1161
|
+
|
1162
|
+
module.exports = function (object, names) {
|
1163
|
+
var O = toIndexedObject(object);
|
1164
|
+
var i = 0;
|
1165
|
+
var result = [];
|
1166
|
+
var key;
|
1167
|
+
for (key in O) !hasOwn(hiddenKeys, key) && hasOwn(O, key) && push(result, key);
|
1168
|
+
// Don't enum bug & hidden keys
|
1169
|
+
while (names.length > i) if (hasOwn(O, key = names[i++])) {
|
1170
|
+
~indexOf(result, key) || push(result, key);
|
1171
|
+
}
|
1172
|
+
return result;
|
1173
|
+
};
|
1174
|
+
|
1175
|
+
|
1176
|
+
/***/ }),
|
1177
|
+
|
1178
|
+
/***/ 5296:
|
1179
|
+
/***/ (function(__unused_webpack_module, exports) {
|
1180
|
+
|
1181
|
+
"use strict";
|
1182
|
+
|
1183
|
+
var $propertyIsEnumerable = {}.propertyIsEnumerable;
|
1184
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
1185
|
+
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
1186
|
+
|
1187
|
+
// Nashorn ~ JDK8 bug
|
1188
|
+
var NASHORN_BUG = getOwnPropertyDescriptor && !$propertyIsEnumerable.call({ 1: 2 }, 1);
|
1189
|
+
|
1190
|
+
// `Object.prototype.propertyIsEnumerable` method implementation
|
1191
|
+
// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
|
1192
|
+
exports.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
|
1193
|
+
var descriptor = getOwnPropertyDescriptor(this, V);
|
1194
|
+
return !!descriptor && descriptor.enumerable;
|
1195
|
+
} : $propertyIsEnumerable;
|
1196
|
+
|
1197
|
+
|
1198
|
+
/***/ }),
|
1199
|
+
|
1200
|
+
/***/ 2140:
|
1201
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
1202
|
+
|
1203
|
+
"use strict";
|
1204
|
+
|
1205
|
+
var call = __webpack_require__(6916);
|
1206
|
+
var isCallable = __webpack_require__(614);
|
1207
|
+
var isObject = __webpack_require__(111);
|
1208
|
+
|
1209
|
+
var $TypeError = TypeError;
|
1210
|
+
|
1211
|
+
// `OrdinaryToPrimitive` abstract operation
|
1212
|
+
// https://tc39.es/ecma262/#sec-ordinarytoprimitive
|
1213
|
+
module.exports = function (input, pref) {
|
1214
|
+
var fn, val;
|
1215
|
+
if (pref === 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;
|
1216
|
+
if (isCallable(fn = input.valueOf) && !isObject(val = call(fn, input))) return val;
|
1217
|
+
if (pref !== 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;
|
1218
|
+
throw new $TypeError("Can't convert object to primitive value");
|
1219
|
+
};
|
1220
|
+
|
1221
|
+
|
1222
|
+
/***/ }),
|
1223
|
+
|
1224
|
+
/***/ 3887:
|
1225
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
1226
|
+
|
1227
|
+
"use strict";
|
1228
|
+
|
1229
|
+
var getBuiltIn = __webpack_require__(5005);
|
1230
|
+
var uncurryThis = __webpack_require__(1702);
|
1231
|
+
var getOwnPropertyNamesModule = __webpack_require__(8006);
|
1232
|
+
var getOwnPropertySymbolsModule = __webpack_require__(5181);
|
1233
|
+
var anObject = __webpack_require__(9670);
|
1234
|
+
|
1235
|
+
var concat = uncurryThis([].concat);
|
1236
|
+
|
1237
|
+
// all object keys, includes non-enumerable and symbols
|
1238
|
+
module.exports = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
|
1239
|
+
var keys = getOwnPropertyNamesModule.f(anObject(it));
|
1240
|
+
var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
|
1241
|
+
return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys;
|
1242
|
+
};
|
1243
|
+
|
1244
|
+
|
1245
|
+
/***/ }),
|
1246
|
+
|
1247
|
+
/***/ 4488:
|
1248
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
1249
|
+
|
1250
|
+
"use strict";
|
1251
|
+
|
1252
|
+
var isNullOrUndefined = __webpack_require__(8554);
|
1253
|
+
|
1254
|
+
var $TypeError = TypeError;
|
1255
|
+
|
1256
|
+
// `RequireObjectCoercible` abstract operation
|
1257
|
+
// https://tc39.es/ecma262/#sec-requireobjectcoercible
|
1258
|
+
module.exports = function (it) {
|
1259
|
+
if (isNullOrUndefined(it)) throw new $TypeError("Can't call method on " + it);
|
1260
|
+
return it;
|
1261
|
+
};
|
1262
|
+
|
1263
|
+
|
1264
|
+
/***/ }),
|
1265
|
+
|
1266
|
+
/***/ 6200:
|
1267
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
1268
|
+
|
1269
|
+
"use strict";
|
1270
|
+
|
1271
|
+
var shared = __webpack_require__(2309);
|
1272
|
+
var uid = __webpack_require__(9711);
|
1273
|
+
|
1274
|
+
var keys = shared('keys');
|
1275
|
+
|
1276
|
+
module.exports = function (key) {
|
1277
|
+
return keys[key] || (keys[key] = uid(key));
|
1278
|
+
};
|
1279
|
+
|
1280
|
+
|
1281
|
+
/***/ }),
|
1282
|
+
|
1283
|
+
/***/ 5465:
|
1284
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
1285
|
+
|
1286
|
+
"use strict";
|
1287
|
+
|
1288
|
+
var global = __webpack_require__(7854);
|
1289
|
+
var defineGlobalProperty = __webpack_require__(3072);
|
1290
|
+
|
1291
|
+
var SHARED = '__core-js_shared__';
|
1292
|
+
var store = global[SHARED] || defineGlobalProperty(SHARED, {});
|
1293
|
+
|
1294
|
+
module.exports = store;
|
1295
|
+
|
1296
|
+
|
1297
|
+
/***/ }),
|
1298
|
+
|
1299
|
+
/***/ 2309:
|
1300
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
1301
|
+
|
1302
|
+
"use strict";
|
1303
|
+
|
1304
|
+
var IS_PURE = __webpack_require__(1913);
|
1305
|
+
var store = __webpack_require__(5465);
|
1306
|
+
|
1307
|
+
(module.exports = function (key, value) {
|
1308
|
+
return store[key] || (store[key] = value !== undefined ? value : {});
|
1309
|
+
})('versions', []).push({
|
1310
|
+
version: '3.33.0',
|
1311
|
+
mode: IS_PURE ? 'pure' : 'global',
|
1312
|
+
copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)',
|
1313
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.33.0/LICENSE',
|
1314
|
+
source: 'https://github.com/zloirock/core-js'
|
1315
|
+
});
|
1316
|
+
|
1317
|
+
|
1318
|
+
/***/ }),
|
1319
|
+
|
1320
|
+
/***/ 6293:
|
1321
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
1322
|
+
|
1323
|
+
"use strict";
|
1324
|
+
|
1325
|
+
/* eslint-disable es/no-symbol -- required for testing */
|
1326
|
+
var V8_VERSION = __webpack_require__(7392);
|
1327
|
+
var fails = __webpack_require__(7293);
|
1328
|
+
var global = __webpack_require__(7854);
|
1329
|
+
|
1330
|
+
var $String = global.String;
|
1331
|
+
|
1332
|
+
// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
|
1333
|
+
module.exports = !!Object.getOwnPropertySymbols && !fails(function () {
|
1334
|
+
var symbol = Symbol('symbol detection');
|
1335
|
+
// Chrome 38 Symbol has incorrect toString conversion
|
1336
|
+
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
1337
|
+
// nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
|
1338
|
+
// of course, fail.
|
1339
|
+
return !$String(symbol) || !(Object(symbol) instanceof Symbol) ||
|
1340
|
+
// Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
|
1341
|
+
!Symbol.sham && V8_VERSION && V8_VERSION < 41;
|
1342
|
+
});
|
1343
|
+
|
1344
|
+
|
1345
|
+
/***/ }),
|
1346
|
+
|
1347
|
+
/***/ 1400:
|
1348
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
1349
|
+
|
1350
|
+
"use strict";
|
1351
|
+
|
1352
|
+
var toIntegerOrInfinity = __webpack_require__(9303);
|
1353
|
+
|
1354
|
+
var max = Math.max;
|
1355
|
+
var min = Math.min;
|
1356
|
+
|
1357
|
+
// Helper for a popular repeating case of the spec:
|
1358
|
+
// Let integer be ? ToInteger(index).
|
1359
|
+
// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
|
1360
|
+
module.exports = function (index, length) {
|
1361
|
+
var integer = toIntegerOrInfinity(index);
|
1362
|
+
return integer < 0 ? max(integer + length, 0) : min(integer, length);
|
1363
|
+
};
|
1364
|
+
|
1365
|
+
|
1366
|
+
/***/ }),
|
1367
|
+
|
1368
|
+
/***/ 5656:
|
1369
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
1370
|
+
|
1371
|
+
"use strict";
|
1372
|
+
|
1373
|
+
// toObject with fallback for non-array-like ES3 strings
|
1374
|
+
var IndexedObject = __webpack_require__(8361);
|
1375
|
+
var requireObjectCoercible = __webpack_require__(4488);
|
1376
|
+
|
1377
|
+
module.exports = function (it) {
|
1378
|
+
return IndexedObject(requireObjectCoercible(it));
|
1379
|
+
};
|
1380
|
+
|
1381
|
+
|
1382
|
+
/***/ }),
|
1383
|
+
|
1384
|
+
/***/ 9303:
|
1385
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
1386
|
+
|
1387
|
+
"use strict";
|
1388
|
+
|
1389
|
+
var trunc = __webpack_require__(4758);
|
1390
|
+
|
1391
|
+
// `ToIntegerOrInfinity` abstract operation
|
1392
|
+
// https://tc39.es/ecma262/#sec-tointegerorinfinity
|
1393
|
+
module.exports = function (argument) {
|
1394
|
+
var number = +argument;
|
1395
|
+
// eslint-disable-next-line no-self-compare -- NaN check
|
1396
|
+
return number !== number || number === 0 ? 0 : trunc(number);
|
1397
|
+
};
|
1398
|
+
|
1399
|
+
|
1400
|
+
/***/ }),
|
1401
|
+
|
1402
|
+
/***/ 7466:
|
1403
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
1404
|
+
|
1405
|
+
"use strict";
|
1406
|
+
|
1407
|
+
var toIntegerOrInfinity = __webpack_require__(9303);
|
1408
|
+
|
1409
|
+
var min = Math.min;
|
1410
|
+
|
1411
|
+
// `ToLength` abstract operation
|
1412
|
+
// https://tc39.es/ecma262/#sec-tolength
|
1413
|
+
module.exports = function (argument) {
|
1414
|
+
return argument > 0 ? min(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
|
1415
|
+
};
|
1416
|
+
|
1417
|
+
|
1418
|
+
/***/ }),
|
1419
|
+
|
1420
|
+
/***/ 7908:
|
1421
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
1422
|
+
|
1423
|
+
"use strict";
|
1424
|
+
|
1425
|
+
var requireObjectCoercible = __webpack_require__(4488);
|
1426
|
+
|
1427
|
+
var $Object = Object;
|
1428
|
+
|
1429
|
+
// `ToObject` abstract operation
|
1430
|
+
// https://tc39.es/ecma262/#sec-toobject
|
1431
|
+
module.exports = function (argument) {
|
1432
|
+
return $Object(requireObjectCoercible(argument));
|
1433
|
+
};
|
1434
|
+
|
1435
|
+
|
1436
|
+
/***/ }),
|
1437
|
+
|
1438
|
+
/***/ 7593:
|
1439
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
1440
|
+
|
1441
|
+
"use strict";
|
1442
|
+
|
1443
|
+
var call = __webpack_require__(6916);
|
1444
|
+
var isObject = __webpack_require__(111);
|
1445
|
+
var isSymbol = __webpack_require__(2190);
|
1446
|
+
var getMethod = __webpack_require__(8173);
|
1447
|
+
var ordinaryToPrimitive = __webpack_require__(2140);
|
1448
|
+
var wellKnownSymbol = __webpack_require__(5112);
|
1449
|
+
|
1450
|
+
var $TypeError = TypeError;
|
1451
|
+
var TO_PRIMITIVE = wellKnownSymbol('toPrimitive');
|
1452
|
+
|
1453
|
+
// `ToPrimitive` abstract operation
|
1454
|
+
// https://tc39.es/ecma262/#sec-toprimitive
|
1455
|
+
module.exports = function (input, pref) {
|
1456
|
+
if (!isObject(input) || isSymbol(input)) return input;
|
1457
|
+
var exoticToPrim = getMethod(input, TO_PRIMITIVE);
|
1458
|
+
var result;
|
1459
|
+
if (exoticToPrim) {
|
1460
|
+
if (pref === undefined) pref = 'default';
|
1461
|
+
result = call(exoticToPrim, input, pref);
|
1462
|
+
if (!isObject(result) || isSymbol(result)) return result;
|
1463
|
+
throw new $TypeError("Can't convert object to primitive value");
|
1464
|
+
}
|
1465
|
+
if (pref === undefined) pref = 'number';
|
1466
|
+
return ordinaryToPrimitive(input, pref);
|
1467
|
+
};
|
1468
|
+
|
1469
|
+
|
1470
|
+
/***/ }),
|
1471
|
+
|
1472
|
+
/***/ 4948:
|
1473
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
1474
|
+
|
1475
|
+
"use strict";
|
1476
|
+
|
1477
|
+
var toPrimitive = __webpack_require__(7593);
|
1478
|
+
var isSymbol = __webpack_require__(2190);
|
1479
|
+
|
1480
|
+
// `ToPropertyKey` abstract operation
|
1481
|
+
// https://tc39.es/ecma262/#sec-topropertykey
|
1482
|
+
module.exports = function (argument) {
|
1483
|
+
var key = toPrimitive(argument, 'string');
|
1484
|
+
return isSymbol(key) ? key : key + '';
|
1485
|
+
};
|
1486
|
+
|
1487
|
+
|
1488
|
+
/***/ }),
|
1489
|
+
|
1490
|
+
/***/ 6330:
|
1491
|
+
/***/ (function(module) {
|
1492
|
+
|
1493
|
+
"use strict";
|
1494
|
+
|
1495
|
+
var $String = String;
|
1496
|
+
|
1497
|
+
module.exports = function (argument) {
|
1498
|
+
try {
|
1499
|
+
return $String(argument);
|
1500
|
+
} catch (error) {
|
1501
|
+
return 'Object';
|
1502
|
+
}
|
1503
|
+
};
|
1504
|
+
|
1505
|
+
|
1506
|
+
/***/ }),
|
1507
|
+
|
1508
|
+
/***/ 9711:
|
1509
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
1510
|
+
|
1511
|
+
"use strict";
|
1512
|
+
|
1513
|
+
var uncurryThis = __webpack_require__(1702);
|
1514
|
+
|
1515
|
+
var id = 0;
|
1516
|
+
var postfix = Math.random();
|
1517
|
+
var toString = uncurryThis(1.0.toString);
|
1518
|
+
|
1519
|
+
module.exports = function (key) {
|
1520
|
+
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
|
1521
|
+
};
|
1522
|
+
|
1523
|
+
|
1524
|
+
/***/ }),
|
1525
|
+
|
1526
|
+
/***/ 3307:
|
1527
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
1528
|
+
|
1529
|
+
"use strict";
|
1530
|
+
|
1531
|
+
/* eslint-disable es/no-symbol -- required for testing */
|
1532
|
+
var NATIVE_SYMBOL = __webpack_require__(6293);
|
1533
|
+
|
1534
|
+
module.exports = NATIVE_SYMBOL
|
1535
|
+
&& !Symbol.sham
|
1536
|
+
&& typeof Symbol.iterator == 'symbol';
|
1537
|
+
|
1538
|
+
|
1539
|
+
/***/ }),
|
1540
|
+
|
1541
|
+
/***/ 3353:
|
1542
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
1543
|
+
|
1544
|
+
"use strict";
|
1545
|
+
|
1546
|
+
var DESCRIPTORS = __webpack_require__(9781);
|
1547
|
+
var fails = __webpack_require__(7293);
|
1548
|
+
|
1549
|
+
// V8 ~ Chrome 36-
|
1550
|
+
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
|
1551
|
+
module.exports = DESCRIPTORS && fails(function () {
|
1552
|
+
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
1553
|
+
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
|
1554
|
+
value: 42,
|
1555
|
+
writable: false
|
1556
|
+
}).prototype !== 42;
|
1557
|
+
});
|
1558
|
+
|
1559
|
+
|
1560
|
+
/***/ }),
|
1561
|
+
|
1562
|
+
/***/ 4811:
|
1563
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
1564
|
+
|
1565
|
+
"use strict";
|
1566
|
+
|
1567
|
+
var global = __webpack_require__(7854);
|
1568
|
+
var isCallable = __webpack_require__(614);
|
1569
|
+
|
1570
|
+
var WeakMap = global.WeakMap;
|
1571
|
+
|
1572
|
+
module.exports = isCallable(WeakMap) && /native code/.test(String(WeakMap));
|
1573
|
+
|
1574
|
+
|
1575
|
+
/***/ }),
|
1576
|
+
|
1577
|
+
/***/ 5112:
|
1578
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
1579
|
+
|
1580
|
+
"use strict";
|
1581
|
+
|
1582
|
+
var global = __webpack_require__(7854);
|
1583
|
+
var shared = __webpack_require__(2309);
|
1584
|
+
var hasOwn = __webpack_require__(2597);
|
1585
|
+
var uid = __webpack_require__(9711);
|
1586
|
+
var NATIVE_SYMBOL = __webpack_require__(6293);
|
1587
|
+
var USE_SYMBOL_AS_UID = __webpack_require__(3307);
|
1588
|
+
|
1589
|
+
var Symbol = global.Symbol;
|
1590
|
+
var WellKnownSymbolsStore = shared('wks');
|
1591
|
+
var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol['for'] || Symbol : Symbol && Symbol.withoutSetter || uid;
|
1592
|
+
|
1593
|
+
module.exports = function (name) {
|
1594
|
+
if (!hasOwn(WellKnownSymbolsStore, name)) {
|
1595
|
+
WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn(Symbol, name)
|
1596
|
+
? Symbol[name]
|
1597
|
+
: createWellKnownSymbol('Symbol.' + name);
|
1598
|
+
} return WellKnownSymbolsStore[name];
|
1599
|
+
};
|
1600
|
+
|
1601
|
+
|
1602
|
+
/***/ }),
|
1603
|
+
|
1604
|
+
/***/ 7658:
|
1605
|
+
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
1606
|
+
|
1607
|
+
"use strict";
|
1608
|
+
|
1609
|
+
var $ = __webpack_require__(2109);
|
1610
|
+
var toObject = __webpack_require__(7908);
|
1611
|
+
var lengthOfArrayLike = __webpack_require__(6244);
|
1612
|
+
var setArrayLength = __webpack_require__(3658);
|
1613
|
+
var doesNotExceedSafeInteger = __webpack_require__(7207);
|
1614
|
+
var fails = __webpack_require__(7293);
|
1615
|
+
|
1616
|
+
var INCORRECT_TO_LENGTH = fails(function () {
|
1617
|
+
return [].push.call({ length: 0x100000000 }, 1) !== 4294967297;
|
1618
|
+
});
|
1619
|
+
|
1620
|
+
// V8 and Safari <= 15.4, FF < 23 throws InternalError
|
1621
|
+
// https://bugs.chromium.org/p/v8/issues/detail?id=12681
|
1622
|
+
var properErrorOnNonWritableLength = function () {
|
1623
|
+
try {
|
1624
|
+
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
1625
|
+
Object.defineProperty([], 'length', { writable: false }).push();
|
1626
|
+
} catch (error) {
|
1627
|
+
return error instanceof TypeError;
|
1628
|
+
}
|
1629
|
+
};
|
1630
|
+
|
1631
|
+
var FORCED = INCORRECT_TO_LENGTH || !properErrorOnNonWritableLength();
|
1632
|
+
|
1633
|
+
// `Array.prototype.push` method
|
1634
|
+
// https://tc39.es/ecma262/#sec-array.prototype.push
|
1635
|
+
$({ target: 'Array', proto: true, arity: 1, forced: FORCED }, {
|
1636
|
+
// eslint-disable-next-line no-unused-vars -- required for `.length`
|
1637
|
+
push: function push(item) {
|
1638
|
+
var O = toObject(this);
|
1639
|
+
var len = lengthOfArrayLike(O);
|
1640
|
+
var argCount = arguments.length;
|
1641
|
+
doesNotExceedSafeInteger(len + argCount);
|
1642
|
+
for (var i = 0; i < argCount; i++) {
|
1643
|
+
O[len] = arguments[i];
|
1644
|
+
len++;
|
1645
|
+
}
|
1646
|
+
setArrayLength(O, len);
|
1647
|
+
return len;
|
1648
|
+
}
|
1649
|
+
});
|
1650
|
+
|
1651
|
+
|
1652
|
+
/***/ }),
|
1653
|
+
|
1654
|
+
/***/ 4359:
|
1655
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
1656
|
+
|
1657
|
+
var map = {
|
1658
|
+
"./1.jpg": 1091,
|
1659
|
+
"./2.jpg": 4828,
|
1660
|
+
"./3.jpg": 4501,
|
1661
|
+
"./4.jpg": 8858,
|
1662
|
+
"./5.jpg": 1799,
|
1663
|
+
"./6.jpg": 9416,
|
1664
|
+
"./7.jpg": 5867,
|
1665
|
+
"./8.jpg": 8478
|
1666
|
+
};
|
1667
|
+
|
1668
|
+
|
1669
|
+
function webpackContext(req) {
|
1670
|
+
var id = webpackContextResolve(req);
|
1671
|
+
return __webpack_require__(id);
|
1672
|
+
}
|
1673
|
+
function webpackContextResolve(req) {
|
1674
|
+
if(!__webpack_require__.o(map, req)) {
|
1675
|
+
var e = new Error("Cannot find module '" + req + "'");
|
1676
|
+
e.code = 'MODULE_NOT_FOUND';
|
1677
|
+
throw e;
|
1678
|
+
}
|
1679
|
+
return map[req];
|
1680
|
+
}
|
1681
|
+
webpackContext.keys = function webpackContextKeys() {
|
1682
|
+
return Object.keys(map);
|
1683
|
+
};
|
1684
|
+
webpackContext.resolve = webpackContextResolve;
|
1685
|
+
module.exports = webpackContext;
|
1686
|
+
webpackContext.id = 4359;
|
1687
|
+
|
1688
|
+
/***/ }),
|
1689
|
+
|
1690
|
+
/***/ 1091:
|
1691
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
1692
|
+
|
1693
|
+
"use strict";
|
1694
|
+
module.exports = __webpack_require__.p + "img/1.8e585a4b.jpg";
|
1695
|
+
|
1696
|
+
/***/ }),
|
1697
|
+
|
1698
|
+
/***/ 4828:
|
1699
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
1700
|
+
|
1701
|
+
"use strict";
|
1702
|
+
module.exports = __webpack_require__.p + "img/2.52192bf1.jpg";
|
1703
|
+
|
1704
|
+
/***/ }),
|
1705
|
+
|
1706
|
+
/***/ 4501:
|
1707
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
1708
|
+
|
1709
|
+
"use strict";
|
1710
|
+
module.exports = __webpack_require__.p + "img/3.4627edc5.jpg";
|
1711
|
+
|
1712
|
+
/***/ }),
|
1713
|
+
|
1714
|
+
/***/ 8858:
|
1715
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
1716
|
+
|
1717
|
+
"use strict";
|
1718
|
+
module.exports = __webpack_require__.p + "img/4.00b9b96d.jpg";
|
1719
|
+
|
1720
|
+
/***/ }),
|
1721
|
+
|
1722
|
+
/***/ 1799:
|
1723
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
1724
|
+
|
1725
|
+
"use strict";
|
1726
|
+
module.exports = __webpack_require__.p + "img/5.00adbac5.jpg";
|
1727
|
+
|
1728
|
+
/***/ }),
|
1729
|
+
|
1730
|
+
/***/ 9416:
|
1731
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
1732
|
+
|
1733
|
+
"use strict";
|
1734
|
+
module.exports = __webpack_require__.p + "img/6.fec4cf56.jpg";
|
1735
|
+
|
1736
|
+
/***/ }),
|
1737
|
+
|
1738
|
+
/***/ 5867:
|
1739
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
1740
|
+
|
1741
|
+
"use strict";
|
1742
|
+
module.exports = __webpack_require__.p + "img/7.2d4c9f56.jpg";
|
1743
|
+
|
1744
|
+
/***/ }),
|
1745
|
+
|
1746
|
+
/***/ 8478:
|
1747
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
1748
|
+
|
1749
|
+
"use strict";
|
1750
|
+
module.exports = __webpack_require__.p + "img/8.63e261ca.jpg";
|
1751
|
+
|
1752
|
+
/***/ })
|
1753
|
+
|
1754
|
+
/******/ });
|
1755
|
+
/************************************************************************/
|
1756
|
+
/******/ // The module cache
|
1757
|
+
/******/ var __webpack_module_cache__ = {};
|
1758
|
+
/******/
|
1759
|
+
/******/ // The require function
|
1760
|
+
/******/ function __webpack_require__(moduleId) {
|
1761
|
+
/******/ // Check if module is in cache
|
1762
|
+
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
1763
|
+
/******/ if (cachedModule !== undefined) {
|
1764
|
+
/******/ return cachedModule.exports;
|
1765
|
+
/******/ }
|
1766
|
+
/******/ // Create a new module (and put it into the cache)
|
1767
|
+
/******/ var module = __webpack_module_cache__[moduleId] = {
|
1768
|
+
/******/ // no module.id needed
|
1769
|
+
/******/ // no module.loaded needed
|
1770
|
+
/******/ exports: {}
|
1771
|
+
/******/ };
|
1772
|
+
/******/
|
1773
|
+
/******/ // Execute the module function
|
1774
|
+
/******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
1775
|
+
/******/
|
1776
|
+
/******/ // Return the exports of the module
|
1777
|
+
/******/ return module.exports;
|
1778
|
+
/******/ }
|
15
1779
|
/******/
|
16
1780
|
/************************************************************************/
|
17
1781
|
/******/ /* webpack/runtime/define property getters */
|
@@ -26,6 +1790,18 @@ return /******/ (function() { // webpackBootstrap
|
|
26
1790
|
/******/ };
|
27
1791
|
/******/ }();
|
28
1792
|
/******/
|
1793
|
+
/******/ /* webpack/runtime/global */
|
1794
|
+
/******/ !function() {
|
1795
|
+
/******/ __webpack_require__.g = (function() {
|
1796
|
+
/******/ if (typeof globalThis === 'object') return globalThis;
|
1797
|
+
/******/ try {
|
1798
|
+
/******/ return this || new Function('return this')();
|
1799
|
+
/******/ } catch (e) {
|
1800
|
+
/******/ if (typeof window === 'object') return window;
|
1801
|
+
/******/ }
|
1802
|
+
/******/ })();
|
1803
|
+
/******/ }();
|
1804
|
+
/******/
|
29
1805
|
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
30
1806
|
/******/ !function() {
|
31
1807
|
/******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
|
@@ -49,6 +1825,9 @@ return /******/ (function() { // webpackBootstrap
|
|
49
1825
|
/******/
|
50
1826
|
/************************************************************************/
|
51
1827
|
var __webpack_exports__ = {};
|
1828
|
+
// This entry need to be wrapped in an IIFE because it need to be in strict mode.
|
1829
|
+
!function() {
|
1830
|
+
"use strict";
|
52
1831
|
// ESM COMPAT FLAG
|
53
1832
|
__webpack_require__.r(__webpack_exports__);
|
54
1833
|
|
@@ -74,32 +1853,432 @@ if (typeof window !== 'undefined') {
|
|
74
1853
|
// Indicate to webpack that this file can be concatenated
|
75
1854
|
/* harmony default export */ var setPublicPath = (null);
|
76
1855
|
|
77
|
-
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/
|
1856
|
+
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/YcSlideVerify/index.vue?vue&type=template&id=59bbdcfe&
|
78
1857
|
var render = function render() {
|
79
1858
|
var _vm = this,
|
80
1859
|
_c = _vm._self._c;
|
81
|
-
return _c('
|
82
|
-
|
83
|
-
|
1860
|
+
return _vm.show ? _c('slide-verify', {
|
1861
|
+
ref: "slideblock",
|
1862
|
+
attrs: {
|
1863
|
+
"l": 42,
|
1864
|
+
"r": 10,
|
1865
|
+
"w": 310,
|
1866
|
+
"h": 155,
|
1867
|
+
"imgs": _vm.imgs,
|
1868
|
+
"accuracy": _vm.accuracy,
|
1869
|
+
"show": _vm.show,
|
1870
|
+
"slider-text": _vm.sliderText
|
1871
|
+
},
|
1872
|
+
on: {
|
1873
|
+
"success": _vm.onSuccess,
|
1874
|
+
"fail": _vm.onFail,
|
1875
|
+
"again": _vm.onAgain,
|
1876
|
+
"refresh": _vm.onRefresh,
|
1877
|
+
"fulfilled": _vm.onFulfilled
|
1878
|
+
}
|
1879
|
+
}) : _vm._e();
|
84
1880
|
};
|
85
1881
|
var staticRenderFns = [];
|
86
1882
|
|
87
|
-
|
88
|
-
|
89
|
-
|
1883
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.push.js
|
1884
|
+
var es_array_push = __webpack_require__(7658);
|
1885
|
+
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./node_modules/vue-monoplasty-slide-verify/src/lib/slide-verify.vue?vue&type=template&id=b67196d8&scoped=true&
|
1886
|
+
var slide_verifyvue_type_template_id_b67196d8_scoped_true_render = function render() {
|
1887
|
+
var _vm = this,
|
1888
|
+
_c = _vm._self._c;
|
1889
|
+
return _c('div', {
|
1890
|
+
staticClass: "slide-verify",
|
1891
|
+
style: {
|
1892
|
+
width: _vm.w + 'px'
|
1893
|
+
},
|
1894
|
+
attrs: {
|
1895
|
+
"id": "slideVerify",
|
1896
|
+
"onselectstart": "return false;"
|
1897
|
+
}
|
1898
|
+
}, [_c('div', {
|
1899
|
+
class: {
|
1900
|
+
'slider-verify-loading': _vm.loadBlock
|
1901
|
+
}
|
1902
|
+
}), _c('canvas', {
|
1903
|
+
ref: "canvas",
|
1904
|
+
attrs: {
|
1905
|
+
"width": _vm.w,
|
1906
|
+
"height": _vm.h
|
1907
|
+
}
|
1908
|
+
}), _vm.show ? _c('div', {
|
1909
|
+
staticClass: "slide-verify-refresh-icon",
|
1910
|
+
on: {
|
1911
|
+
"click": _vm.refresh
|
1912
|
+
}
|
1913
|
+
}) : _vm._e(), _c('canvas', {
|
1914
|
+
ref: "block",
|
1915
|
+
staticClass: "slide-verify-block",
|
1916
|
+
attrs: {
|
1917
|
+
"width": _vm.w,
|
1918
|
+
"height": _vm.h
|
1919
|
+
}
|
1920
|
+
}), _c('div', {
|
1921
|
+
staticClass: "slide-verify-slider",
|
1922
|
+
class: {
|
1923
|
+
'container-active': _vm.containerActive,
|
1924
|
+
'container-success': _vm.containerSuccess,
|
1925
|
+
'container-fail': _vm.containerFail
|
1926
|
+
}
|
1927
|
+
}, [_c('div', {
|
1928
|
+
staticClass: "slide-verify-slider-mask",
|
1929
|
+
style: {
|
1930
|
+
width: _vm.sliderMaskWidth
|
1931
|
+
}
|
1932
|
+
}, [_c('div', {
|
1933
|
+
staticClass: "slide-verify-slider-mask-item",
|
1934
|
+
style: {
|
1935
|
+
left: _vm.sliderLeft
|
1936
|
+
},
|
1937
|
+
on: {
|
1938
|
+
"mousedown": _vm.sliderDown,
|
1939
|
+
"touchstart": _vm.touchStartEvent,
|
1940
|
+
"touchmove": function ($event) {
|
1941
|
+
return _vm.handleMoveEvent($event, 'touch');
|
1942
|
+
},
|
1943
|
+
"touchend": function ($event) {
|
1944
|
+
return _vm.handleMoveEndEvent($event, 'touch');
|
1945
|
+
}
|
1946
|
+
}
|
1947
|
+
}, [_c('div', {
|
1948
|
+
staticClass: "slide-verify-slider-mask-item-icon"
|
1949
|
+
})])]), _c('span', {
|
1950
|
+
staticClass: "slide-verify-slider-text"
|
1951
|
+
}, [_vm._v(_vm._s(_vm.sliderText))])])]);
|
1952
|
+
};
|
1953
|
+
var slide_verifyvue_type_template_id_b67196d8_scoped_true_staticRenderFns = [];
|
1954
|
+
|
1955
|
+
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./node_modules/vue-monoplasty-slide-verify/src/lib/slide-verify.vue?vue&type=script&lang=js&
|
1956
|
+
|
1957
|
+
const PI = Math.PI;
|
1958
|
+
function sum(x, y) {
|
1959
|
+
return x + y;
|
1960
|
+
}
|
1961
|
+
function square(x) {
|
1962
|
+
return x * x;
|
1963
|
+
}
|
1964
|
+
/* harmony default export */ var slide_verifyvue_type_script_lang_js_ = ({
|
1965
|
+
name: "SlideVerify",
|
1966
|
+
props: {
|
1967
|
+
// block length
|
1968
|
+
l: {
|
1969
|
+
type: Number,
|
1970
|
+
default: 42
|
1971
|
+
},
|
1972
|
+
// block radius
|
1973
|
+
r: {
|
1974
|
+
type: Number,
|
1975
|
+
default: 10
|
1976
|
+
},
|
1977
|
+
// canvas width
|
1978
|
+
w: {
|
1979
|
+
type: Number,
|
1980
|
+
default: 310
|
1981
|
+
},
|
1982
|
+
// canvas height
|
1983
|
+
h: {
|
1984
|
+
type: Number,
|
1985
|
+
default: 155
|
1986
|
+
},
|
1987
|
+
sliderText: {
|
1988
|
+
type: String,
|
1989
|
+
default: "Slide filled right"
|
1990
|
+
},
|
1991
|
+
accuracy: {
|
1992
|
+
type: Number,
|
1993
|
+
default: 5 // 若为 -1 则不进行机器判断
|
1994
|
+
},
|
1995
|
+
|
1996
|
+
show: {
|
1997
|
+
type: Boolean,
|
1998
|
+
default: true
|
1999
|
+
},
|
2000
|
+
imgs: {
|
2001
|
+
type: Array,
|
2002
|
+
default: () => []
|
2003
|
+
}
|
2004
|
+
},
|
90
2005
|
data() {
|
91
|
-
return {
|
2006
|
+
return {
|
2007
|
+
containerActive: false,
|
2008
|
+
// container active class
|
2009
|
+
containerSuccess: false,
|
2010
|
+
// container success class
|
2011
|
+
containerFail: false,
|
2012
|
+
// container fail class
|
2013
|
+
canvasCtx: null,
|
2014
|
+
blockCtx: null,
|
2015
|
+
block: null,
|
2016
|
+
block_x: undefined,
|
2017
|
+
// container random position
|
2018
|
+
block_y: undefined,
|
2019
|
+
L: this.l + this.r * 2 + 3,
|
2020
|
+
// block real length
|
2021
|
+
img: undefined,
|
2022
|
+
originX: undefined,
|
2023
|
+
originY: undefined,
|
2024
|
+
isMouseDown: false,
|
2025
|
+
trail: [],
|
2026
|
+
sliderLeft: 0,
|
2027
|
+
// block right offset
|
2028
|
+
sliderMaskWidth: 0,
|
2029
|
+
// mask width,
|
2030
|
+
success: false,
|
2031
|
+
// Bug Fixes 修复了验证成功后还能滑动
|
2032
|
+
loadBlock: true,
|
2033
|
+
// Features 图片加载提示,防止图片没加载完就开始验证
|
2034
|
+
timestamp: null
|
2035
|
+
};
|
2036
|
+
},
|
2037
|
+
mounted() {
|
2038
|
+
this.init();
|
2039
|
+
},
|
2040
|
+
methods: {
|
2041
|
+
init() {
|
2042
|
+
this.initDom();
|
2043
|
+
this.initImg();
|
2044
|
+
this.bindEvents();
|
2045
|
+
},
|
2046
|
+
initDom() {
|
2047
|
+
this.block = this.$refs.block;
|
2048
|
+
this.canvasCtx = this.$refs.canvas.getContext("2d");
|
2049
|
+
this.blockCtx = this.block.getContext("2d");
|
2050
|
+
},
|
2051
|
+
initImg() {
|
2052
|
+
const img = this.createImg(() => {
|
2053
|
+
// 图片加载完关闭遮蔽罩
|
2054
|
+
this.loadBlock = false;
|
2055
|
+
this.drawBlock();
|
2056
|
+
this.canvasCtx.drawImage(img, 0, 0, this.w, this.h);
|
2057
|
+
this.blockCtx.drawImage(img, 0, 0, this.w, this.h);
|
2058
|
+
let {
|
2059
|
+
block_x: x,
|
2060
|
+
block_y: y,
|
2061
|
+
r,
|
2062
|
+
L
|
2063
|
+
} = this;
|
2064
|
+
let _y = y - r * 2 - 1;
|
2065
|
+
let ImageData = this.blockCtx.getImageData(x, _y, L, L);
|
2066
|
+
this.block.width = L;
|
2067
|
+
this.blockCtx.putImageData(ImageData, 0, _y);
|
2068
|
+
});
|
2069
|
+
this.img = img;
|
2070
|
+
},
|
2071
|
+
drawBlock() {
|
2072
|
+
this.block_x = this.getRandomNumberByRange(this.L + 10, this.w - (this.L + 10));
|
2073
|
+
this.block_y = this.getRandomNumberByRange(10 + this.r * 2, this.h - (this.L + 10));
|
2074
|
+
this.draw(this.canvasCtx, this.block_x, this.block_y, "fill");
|
2075
|
+
this.draw(this.blockCtx, this.block_x, this.block_y, "clip");
|
2076
|
+
},
|
2077
|
+
draw(ctx, x, y, operation) {
|
2078
|
+
let {
|
2079
|
+
l,
|
2080
|
+
r
|
2081
|
+
} = this;
|
2082
|
+
ctx.beginPath();
|
2083
|
+
ctx.moveTo(x, y);
|
2084
|
+
ctx.arc(x + l / 2, y - r + 2, r, 0.72 * PI, 2.26 * PI);
|
2085
|
+
ctx.lineTo(x + l, y);
|
2086
|
+
ctx.arc(x + l + r - 2, y + l / 2, r, 1.21 * PI, 2.78 * PI);
|
2087
|
+
ctx.lineTo(x + l, y + l);
|
2088
|
+
ctx.lineTo(x, y + l);
|
2089
|
+
ctx.arc(x + r - 2, y + l / 2, r + 0.4, 2.76 * PI, 1.24 * PI, true);
|
2090
|
+
ctx.lineTo(x, y);
|
2091
|
+
ctx.lineWidth = 2;
|
2092
|
+
ctx.fillStyle = "rgba(255, 255, 255, 0.7)";
|
2093
|
+
ctx.strokeStyle = "rgba(255, 255, 255, 0.7)";
|
2094
|
+
ctx.stroke();
|
2095
|
+
ctx[operation]();
|
2096
|
+
// Bug Fixes 修复了火狐和ie显示问题
|
2097
|
+
ctx.globalCompositeOperation = "destination-over";
|
2098
|
+
},
|
2099
|
+
createImg(onload) {
|
2100
|
+
const img = document.createElement("img");
|
2101
|
+
img.crossOrigin = "Anonymous";
|
2102
|
+
img.onload = onload;
|
2103
|
+
img.onerror = () => {
|
2104
|
+
img.src = this.getRandomImg();
|
2105
|
+
};
|
2106
|
+
img.src = this.getRandomImg();
|
2107
|
+
return img;
|
2108
|
+
},
|
2109
|
+
// 随机生成img src
|
2110
|
+
getRandomImg() {
|
2111
|
+
// return require('../assets/img.jpg')
|
2112
|
+
const len = this.imgs.length;
|
2113
|
+
return len > 0 ? this.imgs[this.getRandomNumberByRange(0, len - 1)] :
|
2114
|
+
// "https://bing.ioliu.cn/v1/rand?w=300&h=150";
|
2115
|
+
"https://source.unsplash.com/300x150/?book,library";
|
2116
|
+
// "https://api.dujin.org/pic/fengjing";
|
2117
|
+
},
|
2118
|
+
|
2119
|
+
getRandomNumberByRange(start, end) {
|
2120
|
+
return Math.round(Math.random() * (end - start) + start);
|
2121
|
+
},
|
2122
|
+
refresh() {
|
2123
|
+
this.reset();
|
2124
|
+
this.$emit("refresh");
|
2125
|
+
},
|
2126
|
+
sliderDown(event) {
|
2127
|
+
if (this.success) return;
|
2128
|
+
this.originX = event.clientX;
|
2129
|
+
this.originY = event.clientY;
|
2130
|
+
this.isMouseDown = true;
|
2131
|
+
this.timestamp = +new Date();
|
2132
|
+
},
|
2133
|
+
touchStartEvent(e) {
|
2134
|
+
if (this.success) return;
|
2135
|
+
this.originX = e.changedTouches[0].pageX;
|
2136
|
+
this.originY = e.changedTouches[0].pageY;
|
2137
|
+
this.isMouseDown = true;
|
2138
|
+
this.timestamp = +new Date();
|
2139
|
+
},
|
2140
|
+
bindEvents() {
|
2141
|
+
document.addEventListener("mousemove", this.handleMoveEvent);
|
2142
|
+
document.addEventListener("mouseup", this.handleMoveEndEvent);
|
2143
|
+
},
|
2144
|
+
// 处理函数抽离
|
2145
|
+
handleMoveEvent: throttle(function (e, type = "mouse") {
|
2146
|
+
if (!this.isMouseDown) return false;
|
2147
|
+
const moveX = type === "mouse" ? e.clientX - this.originX : e.changedTouches[0].pageX - this.originX;
|
2148
|
+
const moveY = type === "mouse" ? e.clientY - this.originY : e.changedTouches[0].pageY - this.originY;
|
2149
|
+
if (moveX < 0 || moveX + 38 >= this.w) return false;
|
2150
|
+
this.sliderLeft = moveX + "px";
|
2151
|
+
let blockLeft = (this.w - 40 - 20) / (this.w - 40) * moveX;
|
2152
|
+
this.block.style.left = blockLeft + "px";
|
2153
|
+
this.containerActive = true; // add active
|
2154
|
+
this.sliderMaskWidth = moveX + "px";
|
2155
|
+
this.trail.push(moveY);
|
2156
|
+
}),
|
2157
|
+
handleMoveEndEvent(e, type = "mouse") {
|
2158
|
+
if (!this.isMouseDown) return false;
|
2159
|
+
this.isMouseDown = false;
|
2160
|
+
if (type === "mouse" && e.clientX === this.originX || type === "touch" && e.changedTouches[0].pageX === this.originX) return false;
|
2161
|
+
this.containerActive = false; // remove active
|
2162
|
+
this.timestamp = +new Date() - this.timestamp;
|
2163
|
+
const {
|
2164
|
+
spliced,
|
2165
|
+
TuringTest
|
2166
|
+
} = this.verify();
|
2167
|
+
if (spliced) {
|
2168
|
+
if (this.accuracy === -1) {
|
2169
|
+
this.containerSuccess = true;
|
2170
|
+
this.success = true;
|
2171
|
+
this.$emit("success", this.timestamp);
|
2172
|
+
return;
|
2173
|
+
}
|
2174
|
+
if (TuringTest) {
|
2175
|
+
// succ
|
2176
|
+
this.containerSuccess = true;
|
2177
|
+
this.success = true;
|
2178
|
+
this.$emit("success", this.timestamp);
|
2179
|
+
} else {
|
2180
|
+
this.containerFail = true;
|
2181
|
+
this.$emit("again");
|
2182
|
+
}
|
2183
|
+
} else {
|
2184
|
+
this.containerFail = true;
|
2185
|
+
this.$emit("fail");
|
2186
|
+
setTimeout(() => {
|
2187
|
+
this.reset();
|
2188
|
+
}, 1000);
|
2189
|
+
}
|
2190
|
+
},
|
2191
|
+
verify() {
|
2192
|
+
const arr = this.trail; // drag y move distance
|
2193
|
+
const average = arr.reduce(sum) / arr.length; // average
|
2194
|
+
const deviations = arr.map(x => x - average); // deviation array
|
2195
|
+
const stddev = Math.sqrt(deviations.map(square).reduce(sum) / arr.length); // standard deviation
|
2196
|
+
const left = parseInt(this.block.style.left);
|
2197
|
+
const accuracy = this.accuracy <= 1 ? 1 : this.accuracy > 10 ? 10 : this.accuracy;
|
2198
|
+
return {
|
2199
|
+
spliced: Math.abs(left - this.block_x) <= accuracy,
|
2200
|
+
TuringTest: average !== stddev // equal => not person operate
|
2201
|
+
};
|
2202
|
+
},
|
2203
|
+
|
2204
|
+
reset() {
|
2205
|
+
this.success = false;
|
2206
|
+
this.containerActive = false;
|
2207
|
+
this.containerSuccess = false;
|
2208
|
+
this.containerFail = false;
|
2209
|
+
this.sliderLeft = 0;
|
2210
|
+
this.block.style.left = 0;
|
2211
|
+
this.sliderMaskWidth = 0;
|
2212
|
+
// canvas
|
2213
|
+
let {
|
2214
|
+
w,
|
2215
|
+
h
|
2216
|
+
} = this;
|
2217
|
+
this.canvasCtx.clearRect(0, 0, w, h);
|
2218
|
+
this.blockCtx.clearRect(0, 0, w, h);
|
2219
|
+
this.block.width = w;
|
2220
|
+
|
2221
|
+
// generate img
|
2222
|
+
this.img.src = this.getRandomImg();
|
2223
|
+
this.$emit("fulfilled");
|
2224
|
+
}
|
92
2225
|
},
|
93
|
-
|
94
|
-
|
95
|
-
|
2226
|
+
destroyed() {
|
2227
|
+
document.removeEventListener("mousemove", this.handleMoveEvent);
|
2228
|
+
document.removeEventListener("mouseup", this.handleMoveEndEvent);
|
2229
|
+
}
|
96
2230
|
});
|
97
|
-
|
98
|
-
|
99
|
-
|
2231
|
+
function throttle(fn, interval = 50, options = {
|
2232
|
+
leading: true,
|
2233
|
+
trailing: true
|
2234
|
+
}) {
|
2235
|
+
const {
|
2236
|
+
leading,
|
2237
|
+
trailing,
|
2238
|
+
resultCallback
|
2239
|
+
} = options;
|
2240
|
+
let lastTime = 0;
|
2241
|
+
let timer = null;
|
2242
|
+
const _throttle = function (...args) {
|
2243
|
+
return new Promise((resolve, reject) => {
|
2244
|
+
const nowTime = new Date().getTime();
|
2245
|
+
if (!lastTime && !leading) lastTime = nowTime;
|
2246
|
+
const remainTime = interval - (nowTime - lastTime);
|
2247
|
+
if (remainTime <= 0) {
|
2248
|
+
if (timer) {
|
2249
|
+
clearTimeout(timer);
|
2250
|
+
timer = null;
|
2251
|
+
}
|
2252
|
+
const result = fn.apply(this, args);
|
2253
|
+
if (resultCallback) resultCallback(result);
|
2254
|
+
resolve(result);
|
2255
|
+
lastTime = nowTime;
|
2256
|
+
return;
|
2257
|
+
}
|
2258
|
+
if (trailing && !timer) {
|
2259
|
+
timer = setTimeout(() => {
|
2260
|
+
timer = null;
|
2261
|
+
lastTime = !leading ? 0 : new Date().getTime();
|
2262
|
+
const result = fn.apply(this, args);
|
2263
|
+
if (resultCallback) resultCallback(result);
|
2264
|
+
resolve(result);
|
2265
|
+
}, remainTime);
|
2266
|
+
}
|
2267
|
+
});
|
2268
|
+
};
|
2269
|
+
_throttle.cancel = function () {
|
2270
|
+
if (timer) clearTimeout(timer);
|
2271
|
+
timer = null;
|
2272
|
+
lastTime = 0;
|
2273
|
+
};
|
2274
|
+
return _throttle;
|
2275
|
+
}
|
2276
|
+
;// CONCATENATED MODULE: ./node_modules/vue-monoplasty-slide-verify/src/lib/slide-verify.vue?vue&type=script&lang=js&
|
2277
|
+
/* harmony default export */ var lib_slide_verifyvue_type_script_lang_js_ = (slide_verifyvue_type_script_lang_js_);
|
2278
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-54.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-54.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-54.use[2]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./node_modules/vue-monoplasty-slide-verify/src/lib/slide-verify.vue?vue&type=style&index=0&id=b67196d8&prod&scoped=true&lang=css&
|
100
2279
|
// extracted by mini-css-extract-plugin
|
101
2280
|
|
102
|
-
;// CONCATENATED MODULE: ./src/
|
2281
|
+
;// CONCATENATED MODULE: ./node_modules/vue-monoplasty-slide-verify/src/lib/slide-verify.vue?vue&type=style&index=0&id=b67196d8&prod&scoped=true&lang=css&
|
103
2282
|
|
104
2283
|
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
105
2284
|
/* globals __VUE_SSR_CONTEXT__ */
|
@@ -199,7 +2378,7 @@ function normalizeComponent(
|
|
199
2378
|
}
|
200
2379
|
}
|
201
2380
|
|
202
|
-
;// CONCATENATED MODULE: ./src/
|
2381
|
+
;// CONCATENATED MODULE: ./node_modules/vue-monoplasty-slide-verify/src/lib/slide-verify.vue
|
203
2382
|
|
204
2383
|
|
205
2384
|
|
@@ -209,7 +2388,69 @@ function normalizeComponent(
|
|
209
2388
|
/* normalize component */
|
210
2389
|
|
211
2390
|
var component = normalizeComponent(
|
212
|
-
|
2391
|
+
lib_slide_verifyvue_type_script_lang_js_,
|
2392
|
+
slide_verifyvue_type_template_id_b67196d8_scoped_true_render,
|
2393
|
+
slide_verifyvue_type_template_id_b67196d8_scoped_true_staticRenderFns,
|
2394
|
+
false,
|
2395
|
+
null,
|
2396
|
+
"b67196d8",
|
2397
|
+
null
|
2398
|
+
|
2399
|
+
)
|
2400
|
+
|
2401
|
+
/* harmony default export */ var slide_verify = (component.exports);
|
2402
|
+
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/YcSlideVerify/index.vue?vue&type=script&lang=js&
|
2403
|
+
|
2404
|
+
|
2405
|
+
/* harmony default export */ var YcSlideVerifyvue_type_script_lang_js_ = ({
|
2406
|
+
name: "YcSlideVerify",
|
2407
|
+
components: {
|
2408
|
+
SlideVerify: slide_verify
|
2409
|
+
},
|
2410
|
+
data() {
|
2411
|
+
return {
|
2412
|
+
show: true,
|
2413
|
+
isShow: false,
|
2414
|
+
accuracy: 5,
|
2415
|
+
sliderText: "拖动完成上方拼图",
|
2416
|
+
countDownNum: 120
|
2417
|
+
};
|
2418
|
+
},
|
2419
|
+
computed: {
|
2420
|
+
imgs() {
|
2421
|
+
const list = [];
|
2422
|
+
for (let i = 1; i < 9; i++) {
|
2423
|
+
list.push(__webpack_require__(4359)(`./${i}.jpg`));
|
2424
|
+
}
|
2425
|
+
return list;
|
2426
|
+
}
|
2427
|
+
},
|
2428
|
+
methods: {
|
2429
|
+
onSuccess() {
|
2430
|
+
this.isShow = false;
|
2431
|
+
console.log(344444);
|
2432
|
+
},
|
2433
|
+
onFail() {},
|
2434
|
+
onAgain() {},
|
2435
|
+
onRefresh() {},
|
2436
|
+
onFulfilled() {},
|
2437
|
+
handleClose() {
|
2438
|
+
this.isShow = false;
|
2439
|
+
}
|
2440
|
+
}
|
2441
|
+
});
|
2442
|
+
;// CONCATENATED MODULE: ./src/components/YcSlideVerify/index.vue?vue&type=script&lang=js&
|
2443
|
+
/* harmony default export */ var components_YcSlideVerifyvue_type_script_lang_js_ = (YcSlideVerifyvue_type_script_lang_js_);
|
2444
|
+
;// CONCATENATED MODULE: ./src/components/YcSlideVerify/index.vue
|
2445
|
+
|
2446
|
+
|
2447
|
+
|
2448
|
+
|
2449
|
+
|
2450
|
+
/* normalize component */
|
2451
|
+
;
|
2452
|
+
var YcSlideVerify_component = normalizeComponent(
|
2453
|
+
components_YcSlideVerifyvue_type_script_lang_js_,
|
213
2454
|
render,
|
214
2455
|
staticRenderFns,
|
215
2456
|
false,
|
@@ -219,10 +2460,10 @@ var component = normalizeComponent(
|
|
219
2460
|
|
220
2461
|
)
|
221
2462
|
|
222
|
-
/* harmony default export */ var
|
2463
|
+
/* harmony default export */ var YcSlideVerify = (YcSlideVerify_component.exports);
|
223
2464
|
;// CONCATENATED MODULE: ./src/packages/index.js
|
224
2465
|
|
225
|
-
const components = [
|
2466
|
+
const components = [YcSlideVerify];
|
226
2467
|
// 定义 install 方法,接收 Vue 作为参数。如果使用 use 注册插件,则所有的组件都将被注册
|
227
2468
|
const install = function (Vue) {
|
228
2469
|
// 遍历注册全局组件
|
@@ -246,6 +2487,7 @@ const install = function (Vue) {
|
|
246
2487
|
/* harmony default export */ var entry_lib = (src_packages);
|
247
2488
|
|
248
2489
|
|
2490
|
+
}();
|
249
2491
|
/******/ return __webpack_exports__;
|
250
2492
|
/******/ })()
|
251
2493
|
;
|