z-schema 4.1.1 → 4.2.3
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/ZSchema-browser-min.js +1 -1
- package/dist/ZSchema-browser-min.js.map +1 -1
- package/dist/ZSchema-browser-test.js +738 -2033
- package/dist/ZSchema-browser.js +280 -1671
- package/package.json +2 -3
- package/src/JsonValidation.js +4 -2
- package/src/Report.js +1 -1
- package/src/Utils.js +0 -2
- package/src/ZSchema.js +2 -2
package/dist/ZSchema-browser.js
CHANGED
|
@@ -1,1552 +1,4 @@
|
|
|
1
1
|
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.ZSchema = f()}})(function(){var define,module,exports;return (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
|
|
2
|
-
require('../../modules/es.array.concat');
|
|
3
|
-
require('../../modules/es.object.to-string');
|
|
4
|
-
require('../../modules/es.symbol');
|
|
5
|
-
require('../../modules/es.symbol.async-iterator');
|
|
6
|
-
require('../../modules/es.symbol.description');
|
|
7
|
-
require('../../modules/es.symbol.has-instance');
|
|
8
|
-
require('../../modules/es.symbol.is-concat-spreadable');
|
|
9
|
-
require('../../modules/es.symbol.iterator');
|
|
10
|
-
require('../../modules/es.symbol.match');
|
|
11
|
-
require('../../modules/es.symbol.match-all');
|
|
12
|
-
require('../../modules/es.symbol.replace');
|
|
13
|
-
require('../../modules/es.symbol.search');
|
|
14
|
-
require('../../modules/es.symbol.species');
|
|
15
|
-
require('../../modules/es.symbol.split');
|
|
16
|
-
require('../../modules/es.symbol.to-primitive');
|
|
17
|
-
require('../../modules/es.symbol.to-string-tag');
|
|
18
|
-
require('../../modules/es.symbol.unscopables');
|
|
19
|
-
require('../../modules/es.math.to-string-tag');
|
|
20
|
-
require('../../modules/es.json.to-string-tag');
|
|
21
|
-
var path = require('../../internals/path');
|
|
22
|
-
|
|
23
|
-
module.exports = path.Symbol;
|
|
24
|
-
|
|
25
|
-
},{"../../internals/path":48,"../../modules/es.array.concat":64,"../../modules/es.json.to-string-tag":65,"../../modules/es.math.to-string-tag":66,"../../modules/es.object.to-string":67,"../../modules/es.symbol":73,"../../modules/es.symbol.async-iterator":68,"../../modules/es.symbol.description":69,"../../modules/es.symbol.has-instance":70,"../../modules/es.symbol.is-concat-spreadable":71,"../../modules/es.symbol.iterator":72,"../../modules/es.symbol.match":75,"../../modules/es.symbol.match-all":74,"../../modules/es.symbol.replace":76,"../../modules/es.symbol.search":77,"../../modules/es.symbol.species":78,"../../modules/es.symbol.split":79,"../../modules/es.symbol.to-primitive":80,"../../modules/es.symbol.to-string-tag":81,"../../modules/es.symbol.unscopables":82}],2:[function(require,module,exports){
|
|
26
|
-
module.exports = function (it) {
|
|
27
|
-
if (typeof it != 'function') {
|
|
28
|
-
throw TypeError(String(it) + ' is not a function');
|
|
29
|
-
} return it;
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
},{}],3:[function(require,module,exports){
|
|
33
|
-
var isObject = require('../internals/is-object');
|
|
34
|
-
|
|
35
|
-
module.exports = function (it) {
|
|
36
|
-
if (!isObject(it)) {
|
|
37
|
-
throw TypeError(String(it) + ' is not an object');
|
|
38
|
-
} return it;
|
|
39
|
-
};
|
|
40
|
-
|
|
41
|
-
},{"../internals/is-object":32}],4:[function(require,module,exports){
|
|
42
|
-
var toIndexedObject = require('../internals/to-indexed-object');
|
|
43
|
-
var toLength = require('../internals/to-length');
|
|
44
|
-
var toAbsoluteIndex = require('../internals/to-absolute-index');
|
|
45
|
-
|
|
46
|
-
// `Array.prototype.{ indexOf, includes }` methods implementation
|
|
47
|
-
var createMethod = function (IS_INCLUDES) {
|
|
48
|
-
return function ($this, el, fromIndex) {
|
|
49
|
-
var O = toIndexedObject($this);
|
|
50
|
-
var length = toLength(O.length);
|
|
51
|
-
var index = toAbsoluteIndex(fromIndex, length);
|
|
52
|
-
var value;
|
|
53
|
-
// Array#includes uses SameValueZero equality algorithm
|
|
54
|
-
// eslint-disable-next-line no-self-compare
|
|
55
|
-
if (IS_INCLUDES && el != el) while (length > index) {
|
|
56
|
-
value = O[index++];
|
|
57
|
-
// eslint-disable-next-line no-self-compare
|
|
58
|
-
if (value != value) return true;
|
|
59
|
-
// Array#indexOf ignores holes, Array#includes - not
|
|
60
|
-
} else for (;length > index; index++) {
|
|
61
|
-
if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
|
|
62
|
-
} return !IS_INCLUDES && -1;
|
|
63
|
-
};
|
|
64
|
-
};
|
|
65
|
-
|
|
66
|
-
module.exports = {
|
|
67
|
-
// `Array.prototype.includes` method
|
|
68
|
-
// https://tc39.github.io/ecma262/#sec-array.prototype.includes
|
|
69
|
-
includes: createMethod(true),
|
|
70
|
-
// `Array.prototype.indexOf` method
|
|
71
|
-
// https://tc39.github.io/ecma262/#sec-array.prototype.indexof
|
|
72
|
-
indexOf: createMethod(false)
|
|
73
|
-
};
|
|
74
|
-
|
|
75
|
-
},{"../internals/to-absolute-index":55,"../internals/to-indexed-object":56,"../internals/to-length":58}],5:[function(require,module,exports){
|
|
76
|
-
var bind = require('../internals/bind-context');
|
|
77
|
-
var IndexedObject = require('../internals/indexed-object');
|
|
78
|
-
var toObject = require('../internals/to-object');
|
|
79
|
-
var toLength = require('../internals/to-length');
|
|
80
|
-
var arraySpeciesCreate = require('../internals/array-species-create');
|
|
81
|
-
|
|
82
|
-
var push = [].push;
|
|
83
|
-
|
|
84
|
-
// `Array.prototype.{ forEach, map, filter, some, every, find, findIndex }` methods implementation
|
|
85
|
-
var createMethod = function (TYPE) {
|
|
86
|
-
var IS_MAP = TYPE == 1;
|
|
87
|
-
var IS_FILTER = TYPE == 2;
|
|
88
|
-
var IS_SOME = TYPE == 3;
|
|
89
|
-
var IS_EVERY = TYPE == 4;
|
|
90
|
-
var IS_FIND_INDEX = TYPE == 6;
|
|
91
|
-
var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;
|
|
92
|
-
return function ($this, callbackfn, that, specificCreate) {
|
|
93
|
-
var O = toObject($this);
|
|
94
|
-
var self = IndexedObject(O);
|
|
95
|
-
var boundFunction = bind(callbackfn, that, 3);
|
|
96
|
-
var length = toLength(self.length);
|
|
97
|
-
var index = 0;
|
|
98
|
-
var create = specificCreate || arraySpeciesCreate;
|
|
99
|
-
var target = IS_MAP ? create($this, length) : IS_FILTER ? create($this, 0) : undefined;
|
|
100
|
-
var value, result;
|
|
101
|
-
for (;length > index; index++) if (NO_HOLES || index in self) {
|
|
102
|
-
value = self[index];
|
|
103
|
-
result = boundFunction(value, index, O);
|
|
104
|
-
if (TYPE) {
|
|
105
|
-
if (IS_MAP) target[index] = result; // map
|
|
106
|
-
else if (result) switch (TYPE) {
|
|
107
|
-
case 3: return true; // some
|
|
108
|
-
case 5: return value; // find
|
|
109
|
-
case 6: return index; // findIndex
|
|
110
|
-
case 2: push.call(target, value); // filter
|
|
111
|
-
} else if (IS_EVERY) return false; // every
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;
|
|
115
|
-
};
|
|
116
|
-
};
|
|
117
|
-
|
|
118
|
-
module.exports = {
|
|
119
|
-
// `Array.prototype.forEach` method
|
|
120
|
-
// https://tc39.github.io/ecma262/#sec-array.prototype.foreach
|
|
121
|
-
forEach: createMethod(0),
|
|
122
|
-
// `Array.prototype.map` method
|
|
123
|
-
// https://tc39.github.io/ecma262/#sec-array.prototype.map
|
|
124
|
-
map: createMethod(1),
|
|
125
|
-
// `Array.prototype.filter` method
|
|
126
|
-
// https://tc39.github.io/ecma262/#sec-array.prototype.filter
|
|
127
|
-
filter: createMethod(2),
|
|
128
|
-
// `Array.prototype.some` method
|
|
129
|
-
// https://tc39.github.io/ecma262/#sec-array.prototype.some
|
|
130
|
-
some: createMethod(3),
|
|
131
|
-
// `Array.prototype.every` method
|
|
132
|
-
// https://tc39.github.io/ecma262/#sec-array.prototype.every
|
|
133
|
-
every: createMethod(4),
|
|
134
|
-
// `Array.prototype.find` method
|
|
135
|
-
// https://tc39.github.io/ecma262/#sec-array.prototype.find
|
|
136
|
-
find: createMethod(5),
|
|
137
|
-
// `Array.prototype.findIndex` method
|
|
138
|
-
// https://tc39.github.io/ecma262/#sec-array.prototype.findIndex
|
|
139
|
-
findIndex: createMethod(6)
|
|
140
|
-
};
|
|
141
|
-
|
|
142
|
-
},{"../internals/array-species-create":7,"../internals/bind-context":8,"../internals/indexed-object":28,"../internals/to-length":58,"../internals/to-object":59}],6:[function(require,module,exports){
|
|
143
|
-
var fails = require('../internals/fails');
|
|
144
|
-
var wellKnownSymbol = require('../internals/well-known-symbol');
|
|
145
|
-
|
|
146
|
-
var SPECIES = wellKnownSymbol('species');
|
|
147
|
-
|
|
148
|
-
module.exports = function (METHOD_NAME) {
|
|
149
|
-
return !fails(function () {
|
|
150
|
-
var array = [];
|
|
151
|
-
var constructor = array.constructor = {};
|
|
152
|
-
constructor[SPECIES] = function () {
|
|
153
|
-
return { foo: 1 };
|
|
154
|
-
};
|
|
155
|
-
return array[METHOD_NAME](Boolean).foo !== 1;
|
|
156
|
-
});
|
|
157
|
-
};
|
|
158
|
-
|
|
159
|
-
},{"../internals/fails":19,"../internals/well-known-symbol":62}],7:[function(require,module,exports){
|
|
160
|
-
var isObject = require('../internals/is-object');
|
|
161
|
-
var isArray = require('../internals/is-array');
|
|
162
|
-
var wellKnownSymbol = require('../internals/well-known-symbol');
|
|
163
|
-
|
|
164
|
-
var SPECIES = wellKnownSymbol('species');
|
|
165
|
-
|
|
166
|
-
// `ArraySpeciesCreate` abstract operation
|
|
167
|
-
// https://tc39.github.io/ecma262/#sec-arrayspeciescreate
|
|
168
|
-
module.exports = function (originalArray, length) {
|
|
169
|
-
var C;
|
|
170
|
-
if (isArray(originalArray)) {
|
|
171
|
-
C = originalArray.constructor;
|
|
172
|
-
// cross-realm fallback
|
|
173
|
-
if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined;
|
|
174
|
-
else if (isObject(C)) {
|
|
175
|
-
C = C[SPECIES];
|
|
176
|
-
if (C === null) C = undefined;
|
|
177
|
-
}
|
|
178
|
-
} return new (C === undefined ? Array : C)(length === 0 ? 0 : length);
|
|
179
|
-
};
|
|
180
|
-
|
|
181
|
-
},{"../internals/is-array":30,"../internals/is-object":32,"../internals/well-known-symbol":62}],8:[function(require,module,exports){
|
|
182
|
-
var aFunction = require('../internals/a-function');
|
|
183
|
-
|
|
184
|
-
// optional / simple context binding
|
|
185
|
-
module.exports = function (fn, that, length) {
|
|
186
|
-
aFunction(fn);
|
|
187
|
-
if (that === undefined) return fn;
|
|
188
|
-
switch (length) {
|
|
189
|
-
case 0: return function () {
|
|
190
|
-
return fn.call(that);
|
|
191
|
-
};
|
|
192
|
-
case 1: return function (a) {
|
|
193
|
-
return fn.call(that, a);
|
|
194
|
-
};
|
|
195
|
-
case 2: return function (a, b) {
|
|
196
|
-
return fn.call(that, a, b);
|
|
197
|
-
};
|
|
198
|
-
case 3: return function (a, b, c) {
|
|
199
|
-
return fn.call(that, a, b, c);
|
|
200
|
-
};
|
|
201
|
-
}
|
|
202
|
-
return function (/* ...args */) {
|
|
203
|
-
return fn.apply(that, arguments);
|
|
204
|
-
};
|
|
205
|
-
};
|
|
206
|
-
|
|
207
|
-
},{"../internals/a-function":2}],9:[function(require,module,exports){
|
|
208
|
-
var toString = {}.toString;
|
|
209
|
-
|
|
210
|
-
module.exports = function (it) {
|
|
211
|
-
return toString.call(it).slice(8, -1);
|
|
212
|
-
};
|
|
213
|
-
|
|
214
|
-
},{}],10:[function(require,module,exports){
|
|
215
|
-
var classofRaw = require('../internals/classof-raw');
|
|
216
|
-
var wellKnownSymbol = require('../internals/well-known-symbol');
|
|
217
|
-
|
|
218
|
-
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
|
|
219
|
-
// ES3 wrong here
|
|
220
|
-
var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
|
|
221
|
-
|
|
222
|
-
// fallback for IE11 Script Access Denied error
|
|
223
|
-
var tryGet = function (it, key) {
|
|
224
|
-
try {
|
|
225
|
-
return it[key];
|
|
226
|
-
} catch (error) { /* empty */ }
|
|
227
|
-
};
|
|
228
|
-
|
|
229
|
-
// getting tag from ES6+ `Object.prototype.toString`
|
|
230
|
-
module.exports = function (it) {
|
|
231
|
-
var O, tag, result;
|
|
232
|
-
return it === undefined ? 'Undefined' : it === null ? 'Null'
|
|
233
|
-
// @@toStringTag case
|
|
234
|
-
: typeof (tag = tryGet(O = Object(it), TO_STRING_TAG)) == 'string' ? tag
|
|
235
|
-
// builtinTag case
|
|
236
|
-
: CORRECT_ARGUMENTS ? classofRaw(O)
|
|
237
|
-
// ES3 arguments fallback
|
|
238
|
-
: (result = classofRaw(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : result;
|
|
239
|
-
};
|
|
240
|
-
|
|
241
|
-
},{"../internals/classof-raw":9,"../internals/well-known-symbol":62}],11:[function(require,module,exports){
|
|
242
|
-
var has = require('../internals/has');
|
|
243
|
-
var ownKeys = require('../internals/own-keys');
|
|
244
|
-
var getOwnPropertyDescriptorModule = require('../internals/object-get-own-property-descriptor');
|
|
245
|
-
var definePropertyModule = require('../internals/object-define-property');
|
|
246
|
-
|
|
247
|
-
module.exports = function (target, source) {
|
|
248
|
-
var keys = ownKeys(source);
|
|
249
|
-
var defineProperty = definePropertyModule.f;
|
|
250
|
-
var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
|
|
251
|
-
for (var i = 0; i < keys.length; i++) {
|
|
252
|
-
var key = keys[i];
|
|
253
|
-
if (!has(target, key)) defineProperty(target, key, getOwnPropertyDescriptor(source, key));
|
|
254
|
-
}
|
|
255
|
-
};
|
|
256
|
-
|
|
257
|
-
},{"../internals/has":23,"../internals/object-define-property":38,"../internals/object-get-own-property-descriptor":39,"../internals/own-keys":47}],12:[function(require,module,exports){
|
|
258
|
-
module.exports = function (bitmap, value) {
|
|
259
|
-
return {
|
|
260
|
-
enumerable: !(bitmap & 1),
|
|
261
|
-
configurable: !(bitmap & 2),
|
|
262
|
-
writable: !(bitmap & 4),
|
|
263
|
-
value: value
|
|
264
|
-
};
|
|
265
|
-
};
|
|
266
|
-
|
|
267
|
-
},{}],13:[function(require,module,exports){
|
|
268
|
-
'use strict';
|
|
269
|
-
var toPrimitive = require('../internals/to-primitive');
|
|
270
|
-
var definePropertyModule = require('../internals/object-define-property');
|
|
271
|
-
var createPropertyDescriptor = require('../internals/create-property-descriptor');
|
|
272
|
-
|
|
273
|
-
module.exports = function (object, key, value) {
|
|
274
|
-
var propertyKey = toPrimitive(key);
|
|
275
|
-
if (propertyKey in object) definePropertyModule.f(object, propertyKey, createPropertyDescriptor(0, value));
|
|
276
|
-
else object[propertyKey] = value;
|
|
277
|
-
};
|
|
278
|
-
|
|
279
|
-
},{"../internals/create-property-descriptor":12,"../internals/object-define-property":38,"../internals/to-primitive":60}],14:[function(require,module,exports){
|
|
280
|
-
var path = require('../internals/path');
|
|
281
|
-
var has = require('../internals/has');
|
|
282
|
-
var wrappedWellKnownSymbolModule = require('../internals/wrapped-well-known-symbol');
|
|
283
|
-
var defineProperty = require('../internals/object-define-property').f;
|
|
284
|
-
|
|
285
|
-
module.exports = function (NAME) {
|
|
286
|
-
var Symbol = path.Symbol || (path.Symbol = {});
|
|
287
|
-
if (!has(Symbol, NAME)) defineProperty(Symbol, NAME, {
|
|
288
|
-
value: wrappedWellKnownSymbolModule.f(NAME)
|
|
289
|
-
});
|
|
290
|
-
};
|
|
291
|
-
|
|
292
|
-
},{"../internals/has":23,"../internals/object-define-property":38,"../internals/path":48,"../internals/wrapped-well-known-symbol":63}],15:[function(require,module,exports){
|
|
293
|
-
var fails = require('../internals/fails');
|
|
294
|
-
|
|
295
|
-
// Thank's IE8 for his funny defineProperty
|
|
296
|
-
module.exports = !fails(function () {
|
|
297
|
-
return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
|
|
298
|
-
});
|
|
299
|
-
|
|
300
|
-
},{"../internals/fails":19}],16:[function(require,module,exports){
|
|
301
|
-
var global = require('../internals/global');
|
|
302
|
-
var isObject = require('../internals/is-object');
|
|
303
|
-
|
|
304
|
-
var document = global.document;
|
|
305
|
-
// typeof document.createElement is 'object' in old IE
|
|
306
|
-
var EXISTS = isObject(document) && isObject(document.createElement);
|
|
307
|
-
|
|
308
|
-
module.exports = function (it) {
|
|
309
|
-
return EXISTS ? document.createElement(it) : {};
|
|
310
|
-
};
|
|
311
|
-
|
|
312
|
-
},{"../internals/global":22,"../internals/is-object":32}],17:[function(require,module,exports){
|
|
313
|
-
// IE8- don't enum bug keys
|
|
314
|
-
module.exports = [
|
|
315
|
-
'constructor',
|
|
316
|
-
'hasOwnProperty',
|
|
317
|
-
'isPrototypeOf',
|
|
318
|
-
'propertyIsEnumerable',
|
|
319
|
-
'toLocaleString',
|
|
320
|
-
'toString',
|
|
321
|
-
'valueOf'
|
|
322
|
-
];
|
|
323
|
-
|
|
324
|
-
},{}],18:[function(require,module,exports){
|
|
325
|
-
var global = require('../internals/global');
|
|
326
|
-
var getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;
|
|
327
|
-
var hide = require('../internals/hide');
|
|
328
|
-
var redefine = require('../internals/redefine');
|
|
329
|
-
var setGlobal = require('../internals/set-global');
|
|
330
|
-
var copyConstructorProperties = require('../internals/copy-constructor-properties');
|
|
331
|
-
var isForced = require('../internals/is-forced');
|
|
332
|
-
|
|
333
|
-
/*
|
|
334
|
-
options.target - name of the target object
|
|
335
|
-
options.global - target is the global object
|
|
336
|
-
options.stat - export as static methods of target
|
|
337
|
-
options.proto - export as prototype methods of target
|
|
338
|
-
options.real - real prototype method for the `pure` version
|
|
339
|
-
options.forced - export even if the native feature is available
|
|
340
|
-
options.bind - bind methods to the target, required for the `pure` version
|
|
341
|
-
options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
|
|
342
|
-
options.unsafe - use the simple assignment of property instead of delete + defineProperty
|
|
343
|
-
options.sham - add a flag to not completely full polyfills
|
|
344
|
-
options.enumerable - export as enumerable property
|
|
345
|
-
options.noTargetGet - prevent calling a getter on target
|
|
346
|
-
*/
|
|
347
|
-
module.exports = function (options, source) {
|
|
348
|
-
var TARGET = options.target;
|
|
349
|
-
var GLOBAL = options.global;
|
|
350
|
-
var STATIC = options.stat;
|
|
351
|
-
var FORCED, target, key, targetProperty, sourceProperty, descriptor;
|
|
352
|
-
if (GLOBAL) {
|
|
353
|
-
target = global;
|
|
354
|
-
} else if (STATIC) {
|
|
355
|
-
target = global[TARGET] || setGlobal(TARGET, {});
|
|
356
|
-
} else {
|
|
357
|
-
target = (global[TARGET] || {}).prototype;
|
|
358
|
-
}
|
|
359
|
-
if (target) for (key in source) {
|
|
360
|
-
sourceProperty = source[key];
|
|
361
|
-
if (options.noTargetGet) {
|
|
362
|
-
descriptor = getOwnPropertyDescriptor(target, key);
|
|
363
|
-
targetProperty = descriptor && descriptor.value;
|
|
364
|
-
} else targetProperty = target[key];
|
|
365
|
-
FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
|
|
366
|
-
// contained in target
|
|
367
|
-
if (!FORCED && targetProperty !== undefined) {
|
|
368
|
-
if (typeof sourceProperty === typeof targetProperty) continue;
|
|
369
|
-
copyConstructorProperties(sourceProperty, targetProperty);
|
|
370
|
-
}
|
|
371
|
-
// add a flag to not completely full polyfills
|
|
372
|
-
if (options.sham || (targetProperty && targetProperty.sham)) {
|
|
373
|
-
hide(sourceProperty, 'sham', true);
|
|
374
|
-
}
|
|
375
|
-
// extend global
|
|
376
|
-
redefine(target, key, sourceProperty, options);
|
|
377
|
-
}
|
|
378
|
-
};
|
|
379
|
-
|
|
380
|
-
},{"../internals/copy-constructor-properties":11,"../internals/global":22,"../internals/hide":25,"../internals/is-forced":31,"../internals/object-get-own-property-descriptor":39,"../internals/redefine":49,"../internals/set-global":51}],19:[function(require,module,exports){
|
|
381
|
-
module.exports = function (exec) {
|
|
382
|
-
try {
|
|
383
|
-
return !!exec();
|
|
384
|
-
} catch (error) {
|
|
385
|
-
return true;
|
|
386
|
-
}
|
|
387
|
-
};
|
|
388
|
-
|
|
389
|
-
},{}],20:[function(require,module,exports){
|
|
390
|
-
var shared = require('../internals/shared');
|
|
391
|
-
|
|
392
|
-
module.exports = shared('native-function-to-string', Function.toString);
|
|
393
|
-
|
|
394
|
-
},{"../internals/shared":54}],21:[function(require,module,exports){
|
|
395
|
-
var path = require('../internals/path');
|
|
396
|
-
var global = require('../internals/global');
|
|
397
|
-
|
|
398
|
-
var aFunction = function (variable) {
|
|
399
|
-
return typeof variable == 'function' ? variable : undefined;
|
|
400
|
-
};
|
|
401
|
-
|
|
402
|
-
module.exports = function (namespace, method) {
|
|
403
|
-
return arguments.length < 2 ? aFunction(path[namespace]) || aFunction(global[namespace])
|
|
404
|
-
: path[namespace] && path[namespace][method] || global[namespace] && global[namespace][method];
|
|
405
|
-
};
|
|
406
|
-
|
|
407
|
-
},{"../internals/global":22,"../internals/path":48}],22:[function(require,module,exports){
|
|
408
|
-
(function (global){
|
|
409
|
-
var O = 'object';
|
|
410
|
-
var check = function (it) {
|
|
411
|
-
return it && it.Math == Math && it;
|
|
412
|
-
};
|
|
413
|
-
|
|
414
|
-
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
|
415
|
-
module.exports =
|
|
416
|
-
// eslint-disable-next-line no-undef
|
|
417
|
-
check(typeof globalThis == O && globalThis) ||
|
|
418
|
-
check(typeof window == O && window) ||
|
|
419
|
-
check(typeof self == O && self) ||
|
|
420
|
-
check(typeof global == O && global) ||
|
|
421
|
-
// eslint-disable-next-line no-new-func
|
|
422
|
-
Function('return this')();
|
|
423
|
-
|
|
424
|
-
}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
|
|
425
|
-
},{}],23:[function(require,module,exports){
|
|
426
|
-
var hasOwnProperty = {}.hasOwnProperty;
|
|
427
|
-
|
|
428
|
-
module.exports = function (it, key) {
|
|
429
|
-
return hasOwnProperty.call(it, key);
|
|
430
|
-
};
|
|
431
|
-
|
|
432
|
-
},{}],24:[function(require,module,exports){
|
|
433
|
-
module.exports = {};
|
|
434
|
-
|
|
435
|
-
},{}],25:[function(require,module,exports){
|
|
436
|
-
var DESCRIPTORS = require('../internals/descriptors');
|
|
437
|
-
var definePropertyModule = require('../internals/object-define-property');
|
|
438
|
-
var createPropertyDescriptor = require('../internals/create-property-descriptor');
|
|
439
|
-
|
|
440
|
-
module.exports = DESCRIPTORS ? function (object, key, value) {
|
|
441
|
-
return definePropertyModule.f(object, key, createPropertyDescriptor(1, value));
|
|
442
|
-
} : function (object, key, value) {
|
|
443
|
-
object[key] = value;
|
|
444
|
-
return object;
|
|
445
|
-
};
|
|
446
|
-
|
|
447
|
-
},{"../internals/create-property-descriptor":12,"../internals/descriptors":15,"../internals/object-define-property":38}],26:[function(require,module,exports){
|
|
448
|
-
var getBuiltIn = require('../internals/get-built-in');
|
|
449
|
-
|
|
450
|
-
module.exports = getBuiltIn('document', 'documentElement');
|
|
451
|
-
|
|
452
|
-
},{"../internals/get-built-in":21}],27:[function(require,module,exports){
|
|
453
|
-
var DESCRIPTORS = require('../internals/descriptors');
|
|
454
|
-
var fails = require('../internals/fails');
|
|
455
|
-
var createElement = require('../internals/document-create-element');
|
|
456
|
-
|
|
457
|
-
// Thank's IE8 for his funny defineProperty
|
|
458
|
-
module.exports = !DESCRIPTORS && !fails(function () {
|
|
459
|
-
return Object.defineProperty(createElement('div'), 'a', {
|
|
460
|
-
get: function () { return 7; }
|
|
461
|
-
}).a != 7;
|
|
462
|
-
});
|
|
463
|
-
|
|
464
|
-
},{"../internals/descriptors":15,"../internals/document-create-element":16,"../internals/fails":19}],28:[function(require,module,exports){
|
|
465
|
-
var fails = require('../internals/fails');
|
|
466
|
-
var classof = require('../internals/classof-raw');
|
|
467
|
-
|
|
468
|
-
var split = ''.split;
|
|
469
|
-
|
|
470
|
-
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
|
471
|
-
module.exports = fails(function () {
|
|
472
|
-
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
|
|
473
|
-
// eslint-disable-next-line no-prototype-builtins
|
|
474
|
-
return !Object('z').propertyIsEnumerable(0);
|
|
475
|
-
}) ? function (it) {
|
|
476
|
-
return classof(it) == 'String' ? split.call(it, '') : Object(it);
|
|
477
|
-
} : Object;
|
|
478
|
-
|
|
479
|
-
},{"../internals/classof-raw":9,"../internals/fails":19}],29:[function(require,module,exports){
|
|
480
|
-
var NATIVE_WEAK_MAP = require('../internals/native-weak-map');
|
|
481
|
-
var global = require('../internals/global');
|
|
482
|
-
var isObject = require('../internals/is-object');
|
|
483
|
-
var hide = require('../internals/hide');
|
|
484
|
-
var objectHas = require('../internals/has');
|
|
485
|
-
var sharedKey = require('../internals/shared-key');
|
|
486
|
-
var hiddenKeys = require('../internals/hidden-keys');
|
|
487
|
-
|
|
488
|
-
var WeakMap = global.WeakMap;
|
|
489
|
-
var set, get, has;
|
|
490
|
-
|
|
491
|
-
var enforce = function (it) {
|
|
492
|
-
return has(it) ? get(it) : set(it, {});
|
|
493
|
-
};
|
|
494
|
-
|
|
495
|
-
var getterFor = function (TYPE) {
|
|
496
|
-
return function (it) {
|
|
497
|
-
var state;
|
|
498
|
-
if (!isObject(it) || (state = get(it)).type !== TYPE) {
|
|
499
|
-
throw TypeError('Incompatible receiver, ' + TYPE + ' required');
|
|
500
|
-
} return state;
|
|
501
|
-
};
|
|
502
|
-
};
|
|
503
|
-
|
|
504
|
-
if (NATIVE_WEAK_MAP) {
|
|
505
|
-
var store = new WeakMap();
|
|
506
|
-
var wmget = store.get;
|
|
507
|
-
var wmhas = store.has;
|
|
508
|
-
var wmset = store.set;
|
|
509
|
-
set = function (it, metadata) {
|
|
510
|
-
wmset.call(store, it, metadata);
|
|
511
|
-
return metadata;
|
|
512
|
-
};
|
|
513
|
-
get = function (it) {
|
|
514
|
-
return wmget.call(store, it) || {};
|
|
515
|
-
};
|
|
516
|
-
has = function (it) {
|
|
517
|
-
return wmhas.call(store, it);
|
|
518
|
-
};
|
|
519
|
-
} else {
|
|
520
|
-
var STATE = sharedKey('state');
|
|
521
|
-
hiddenKeys[STATE] = true;
|
|
522
|
-
set = function (it, metadata) {
|
|
523
|
-
hide(it, STATE, metadata);
|
|
524
|
-
return metadata;
|
|
525
|
-
};
|
|
526
|
-
get = function (it) {
|
|
527
|
-
return objectHas(it, STATE) ? it[STATE] : {};
|
|
528
|
-
};
|
|
529
|
-
has = function (it) {
|
|
530
|
-
return objectHas(it, STATE);
|
|
531
|
-
};
|
|
532
|
-
}
|
|
533
|
-
|
|
534
|
-
module.exports = {
|
|
535
|
-
set: set,
|
|
536
|
-
get: get,
|
|
537
|
-
has: has,
|
|
538
|
-
enforce: enforce,
|
|
539
|
-
getterFor: getterFor
|
|
540
|
-
};
|
|
541
|
-
|
|
542
|
-
},{"../internals/global":22,"../internals/has":23,"../internals/hidden-keys":24,"../internals/hide":25,"../internals/is-object":32,"../internals/native-weak-map":35,"../internals/shared-key":53}],30:[function(require,module,exports){
|
|
543
|
-
var classof = require('../internals/classof-raw');
|
|
544
|
-
|
|
545
|
-
// `IsArray` abstract operation
|
|
546
|
-
// https://tc39.github.io/ecma262/#sec-isarray
|
|
547
|
-
module.exports = Array.isArray || function isArray(arg) {
|
|
548
|
-
return classof(arg) == 'Array';
|
|
549
|
-
};
|
|
550
|
-
|
|
551
|
-
},{"../internals/classof-raw":9}],31:[function(require,module,exports){
|
|
552
|
-
var fails = require('../internals/fails');
|
|
553
|
-
|
|
554
|
-
var replacement = /#|\.prototype\./;
|
|
555
|
-
|
|
556
|
-
var isForced = function (feature, detection) {
|
|
557
|
-
var value = data[normalize(feature)];
|
|
558
|
-
return value == POLYFILL ? true
|
|
559
|
-
: value == NATIVE ? false
|
|
560
|
-
: typeof detection == 'function' ? fails(detection)
|
|
561
|
-
: !!detection;
|
|
562
|
-
};
|
|
563
|
-
|
|
564
|
-
var normalize = isForced.normalize = function (string) {
|
|
565
|
-
return String(string).replace(replacement, '.').toLowerCase();
|
|
566
|
-
};
|
|
567
|
-
|
|
568
|
-
var data = isForced.data = {};
|
|
569
|
-
var NATIVE = isForced.NATIVE = 'N';
|
|
570
|
-
var POLYFILL = isForced.POLYFILL = 'P';
|
|
571
|
-
|
|
572
|
-
module.exports = isForced;
|
|
573
|
-
|
|
574
|
-
},{"../internals/fails":19}],32:[function(require,module,exports){
|
|
575
|
-
module.exports = function (it) {
|
|
576
|
-
return typeof it === 'object' ? it !== null : typeof it === 'function';
|
|
577
|
-
};
|
|
578
|
-
|
|
579
|
-
},{}],33:[function(require,module,exports){
|
|
580
|
-
module.exports = false;
|
|
581
|
-
|
|
582
|
-
},{}],34:[function(require,module,exports){
|
|
583
|
-
var fails = require('../internals/fails');
|
|
584
|
-
|
|
585
|
-
module.exports = !!Object.getOwnPropertySymbols && !fails(function () {
|
|
586
|
-
// Chrome 38 Symbol has incorrect toString conversion
|
|
587
|
-
// eslint-disable-next-line no-undef
|
|
588
|
-
return !String(Symbol());
|
|
589
|
-
});
|
|
590
|
-
|
|
591
|
-
},{"../internals/fails":19}],35:[function(require,module,exports){
|
|
592
|
-
var global = require('../internals/global');
|
|
593
|
-
var nativeFunctionToString = require('../internals/function-to-string');
|
|
594
|
-
|
|
595
|
-
var WeakMap = global.WeakMap;
|
|
596
|
-
|
|
597
|
-
module.exports = typeof WeakMap === 'function' && /native code/.test(nativeFunctionToString.call(WeakMap));
|
|
598
|
-
|
|
599
|
-
},{"../internals/function-to-string":20,"../internals/global":22}],36:[function(require,module,exports){
|
|
600
|
-
var anObject = require('../internals/an-object');
|
|
601
|
-
var defineProperties = require('../internals/object-define-properties');
|
|
602
|
-
var enumBugKeys = require('../internals/enum-bug-keys');
|
|
603
|
-
var hiddenKeys = require('../internals/hidden-keys');
|
|
604
|
-
var html = require('../internals/html');
|
|
605
|
-
var documentCreateElement = require('../internals/document-create-element');
|
|
606
|
-
var sharedKey = require('../internals/shared-key');
|
|
607
|
-
var IE_PROTO = sharedKey('IE_PROTO');
|
|
608
|
-
|
|
609
|
-
var PROTOTYPE = 'prototype';
|
|
610
|
-
var Empty = function () { /* empty */ };
|
|
611
|
-
|
|
612
|
-
// Create object with fake `null` prototype: use iframe Object with cleared prototype
|
|
613
|
-
var createDict = function () {
|
|
614
|
-
// Thrash, waste and sodomy: IE GC bug
|
|
615
|
-
var iframe = documentCreateElement('iframe');
|
|
616
|
-
var length = enumBugKeys.length;
|
|
617
|
-
var lt = '<';
|
|
618
|
-
var script = 'script';
|
|
619
|
-
var gt = '>';
|
|
620
|
-
var js = 'java' + script + ':';
|
|
621
|
-
var iframeDocument;
|
|
622
|
-
iframe.style.display = 'none';
|
|
623
|
-
html.appendChild(iframe);
|
|
624
|
-
iframe.src = String(js);
|
|
625
|
-
iframeDocument = iframe.contentWindow.document;
|
|
626
|
-
iframeDocument.open();
|
|
627
|
-
iframeDocument.write(lt + script + gt + 'document.F=Object' + lt + '/' + script + gt);
|
|
628
|
-
iframeDocument.close();
|
|
629
|
-
createDict = iframeDocument.F;
|
|
630
|
-
while (length--) delete createDict[PROTOTYPE][enumBugKeys[length]];
|
|
631
|
-
return createDict();
|
|
632
|
-
};
|
|
633
|
-
|
|
634
|
-
// `Object.create` method
|
|
635
|
-
// https://tc39.github.io/ecma262/#sec-object.create
|
|
636
|
-
module.exports = Object.create || function create(O, Properties) {
|
|
637
|
-
var result;
|
|
638
|
-
if (O !== null) {
|
|
639
|
-
Empty[PROTOTYPE] = anObject(O);
|
|
640
|
-
result = new Empty();
|
|
641
|
-
Empty[PROTOTYPE] = null;
|
|
642
|
-
// add "__proto__" for Object.getPrototypeOf polyfill
|
|
643
|
-
result[IE_PROTO] = O;
|
|
644
|
-
} else result = createDict();
|
|
645
|
-
return Properties === undefined ? result : defineProperties(result, Properties);
|
|
646
|
-
};
|
|
647
|
-
|
|
648
|
-
hiddenKeys[IE_PROTO] = true;
|
|
649
|
-
|
|
650
|
-
},{"../internals/an-object":3,"../internals/document-create-element":16,"../internals/enum-bug-keys":17,"../internals/hidden-keys":24,"../internals/html":26,"../internals/object-define-properties":37,"../internals/shared-key":53}],37:[function(require,module,exports){
|
|
651
|
-
var DESCRIPTORS = require('../internals/descriptors');
|
|
652
|
-
var definePropertyModule = require('../internals/object-define-property');
|
|
653
|
-
var anObject = require('../internals/an-object');
|
|
654
|
-
var objectKeys = require('../internals/object-keys');
|
|
655
|
-
|
|
656
|
-
// `Object.defineProperties` method
|
|
657
|
-
// https://tc39.github.io/ecma262/#sec-object.defineproperties
|
|
658
|
-
module.exports = DESCRIPTORS ? Object.defineProperties : function defineProperties(O, Properties) {
|
|
659
|
-
anObject(O);
|
|
660
|
-
var keys = objectKeys(Properties);
|
|
661
|
-
var length = keys.length;
|
|
662
|
-
var index = 0;
|
|
663
|
-
var key;
|
|
664
|
-
while (length > index) definePropertyModule.f(O, key = keys[index++], Properties[key]);
|
|
665
|
-
return O;
|
|
666
|
-
};
|
|
667
|
-
|
|
668
|
-
},{"../internals/an-object":3,"../internals/descriptors":15,"../internals/object-define-property":38,"../internals/object-keys":44}],38:[function(require,module,exports){
|
|
669
|
-
var DESCRIPTORS = require('../internals/descriptors');
|
|
670
|
-
var IE8_DOM_DEFINE = require('../internals/ie8-dom-define');
|
|
671
|
-
var anObject = require('../internals/an-object');
|
|
672
|
-
var toPrimitive = require('../internals/to-primitive');
|
|
673
|
-
|
|
674
|
-
var nativeDefineProperty = Object.defineProperty;
|
|
675
|
-
|
|
676
|
-
// `Object.defineProperty` method
|
|
677
|
-
// https://tc39.github.io/ecma262/#sec-object.defineproperty
|
|
678
|
-
exports.f = DESCRIPTORS ? nativeDefineProperty : function defineProperty(O, P, Attributes) {
|
|
679
|
-
anObject(O);
|
|
680
|
-
P = toPrimitive(P, true);
|
|
681
|
-
anObject(Attributes);
|
|
682
|
-
if (IE8_DOM_DEFINE) try {
|
|
683
|
-
return nativeDefineProperty(O, P, Attributes);
|
|
684
|
-
} catch (error) { /* empty */ }
|
|
685
|
-
if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported');
|
|
686
|
-
if ('value' in Attributes) O[P] = Attributes.value;
|
|
687
|
-
return O;
|
|
688
|
-
};
|
|
689
|
-
|
|
690
|
-
},{"../internals/an-object":3,"../internals/descriptors":15,"../internals/ie8-dom-define":27,"../internals/to-primitive":60}],39:[function(require,module,exports){
|
|
691
|
-
var DESCRIPTORS = require('../internals/descriptors');
|
|
692
|
-
var propertyIsEnumerableModule = require('../internals/object-property-is-enumerable');
|
|
693
|
-
var createPropertyDescriptor = require('../internals/create-property-descriptor');
|
|
694
|
-
var toIndexedObject = require('../internals/to-indexed-object');
|
|
695
|
-
var toPrimitive = require('../internals/to-primitive');
|
|
696
|
-
var has = require('../internals/has');
|
|
697
|
-
var IE8_DOM_DEFINE = require('../internals/ie8-dom-define');
|
|
698
|
-
|
|
699
|
-
var nativeGetOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
700
|
-
|
|
701
|
-
// `Object.getOwnPropertyDescriptor` method
|
|
702
|
-
// https://tc39.github.io/ecma262/#sec-object.getownpropertydescriptor
|
|
703
|
-
exports.f = DESCRIPTORS ? nativeGetOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
|
|
704
|
-
O = toIndexedObject(O);
|
|
705
|
-
P = toPrimitive(P, true);
|
|
706
|
-
if (IE8_DOM_DEFINE) try {
|
|
707
|
-
return nativeGetOwnPropertyDescriptor(O, P);
|
|
708
|
-
} catch (error) { /* empty */ }
|
|
709
|
-
if (has(O, P)) return createPropertyDescriptor(!propertyIsEnumerableModule.f.call(O, P), O[P]);
|
|
710
|
-
};
|
|
711
|
-
|
|
712
|
-
},{"../internals/create-property-descriptor":12,"../internals/descriptors":15,"../internals/has":23,"../internals/ie8-dom-define":27,"../internals/object-property-is-enumerable":45,"../internals/to-indexed-object":56,"../internals/to-primitive":60}],40:[function(require,module,exports){
|
|
713
|
-
var toIndexedObject = require('../internals/to-indexed-object');
|
|
714
|
-
var nativeGetOwnPropertyNames = require('../internals/object-get-own-property-names').f;
|
|
715
|
-
|
|
716
|
-
var toString = {}.toString;
|
|
717
|
-
|
|
718
|
-
var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames
|
|
719
|
-
? Object.getOwnPropertyNames(window) : [];
|
|
720
|
-
|
|
721
|
-
var getWindowNames = function (it) {
|
|
722
|
-
try {
|
|
723
|
-
return nativeGetOwnPropertyNames(it);
|
|
724
|
-
} catch (error) {
|
|
725
|
-
return windowNames.slice();
|
|
726
|
-
}
|
|
727
|
-
};
|
|
728
|
-
|
|
729
|
-
// fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window
|
|
730
|
-
module.exports.f = function getOwnPropertyNames(it) {
|
|
731
|
-
return windowNames && toString.call(it) == '[object Window]'
|
|
732
|
-
? getWindowNames(it)
|
|
733
|
-
: nativeGetOwnPropertyNames(toIndexedObject(it));
|
|
734
|
-
};
|
|
735
|
-
|
|
736
|
-
},{"../internals/object-get-own-property-names":41,"../internals/to-indexed-object":56}],41:[function(require,module,exports){
|
|
737
|
-
var internalObjectKeys = require('../internals/object-keys-internal');
|
|
738
|
-
var enumBugKeys = require('../internals/enum-bug-keys');
|
|
739
|
-
|
|
740
|
-
var hiddenKeys = enumBugKeys.concat('length', 'prototype');
|
|
741
|
-
|
|
742
|
-
// `Object.getOwnPropertyNames` method
|
|
743
|
-
// https://tc39.github.io/ecma262/#sec-object.getownpropertynames
|
|
744
|
-
exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
|
|
745
|
-
return internalObjectKeys(O, hiddenKeys);
|
|
746
|
-
};
|
|
747
|
-
|
|
748
|
-
},{"../internals/enum-bug-keys":17,"../internals/object-keys-internal":43}],42:[function(require,module,exports){
|
|
749
|
-
exports.f = Object.getOwnPropertySymbols;
|
|
750
|
-
|
|
751
|
-
},{}],43:[function(require,module,exports){
|
|
752
|
-
var has = require('../internals/has');
|
|
753
|
-
var toIndexedObject = require('../internals/to-indexed-object');
|
|
754
|
-
var indexOf = require('../internals/array-includes').indexOf;
|
|
755
|
-
var hiddenKeys = require('../internals/hidden-keys');
|
|
756
|
-
|
|
757
|
-
module.exports = function (object, names) {
|
|
758
|
-
var O = toIndexedObject(object);
|
|
759
|
-
var i = 0;
|
|
760
|
-
var result = [];
|
|
761
|
-
var key;
|
|
762
|
-
for (key in O) !has(hiddenKeys, key) && has(O, key) && result.push(key);
|
|
763
|
-
// Don't enum bug & hidden keys
|
|
764
|
-
while (names.length > i) if (has(O, key = names[i++])) {
|
|
765
|
-
~indexOf(result, key) || result.push(key);
|
|
766
|
-
}
|
|
767
|
-
return result;
|
|
768
|
-
};
|
|
769
|
-
|
|
770
|
-
},{"../internals/array-includes":4,"../internals/has":23,"../internals/hidden-keys":24,"../internals/to-indexed-object":56}],44:[function(require,module,exports){
|
|
771
|
-
var internalObjectKeys = require('../internals/object-keys-internal');
|
|
772
|
-
var enumBugKeys = require('../internals/enum-bug-keys');
|
|
773
|
-
|
|
774
|
-
// `Object.keys` method
|
|
775
|
-
// https://tc39.github.io/ecma262/#sec-object.keys
|
|
776
|
-
module.exports = Object.keys || function keys(O) {
|
|
777
|
-
return internalObjectKeys(O, enumBugKeys);
|
|
778
|
-
};
|
|
779
|
-
|
|
780
|
-
},{"../internals/enum-bug-keys":17,"../internals/object-keys-internal":43}],45:[function(require,module,exports){
|
|
781
|
-
'use strict';
|
|
782
|
-
var nativePropertyIsEnumerable = {}.propertyIsEnumerable;
|
|
783
|
-
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
784
|
-
|
|
785
|
-
// Nashorn ~ JDK8 bug
|
|
786
|
-
var NASHORN_BUG = getOwnPropertyDescriptor && !nativePropertyIsEnumerable.call({ 1: 2 }, 1);
|
|
787
|
-
|
|
788
|
-
// `Object.prototype.propertyIsEnumerable` method implementation
|
|
789
|
-
// https://tc39.github.io/ecma262/#sec-object.prototype.propertyisenumerable
|
|
790
|
-
exports.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
|
|
791
|
-
var descriptor = getOwnPropertyDescriptor(this, V);
|
|
792
|
-
return !!descriptor && descriptor.enumerable;
|
|
793
|
-
} : nativePropertyIsEnumerable;
|
|
794
|
-
|
|
795
|
-
},{}],46:[function(require,module,exports){
|
|
796
|
-
'use strict';
|
|
797
|
-
var classof = require('../internals/classof');
|
|
798
|
-
var wellKnownSymbol = require('../internals/well-known-symbol');
|
|
799
|
-
|
|
800
|
-
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
|
|
801
|
-
var test = {};
|
|
802
|
-
|
|
803
|
-
test[TO_STRING_TAG] = 'z';
|
|
804
|
-
|
|
805
|
-
// `Object.prototype.toString` method implementation
|
|
806
|
-
// https://tc39.github.io/ecma262/#sec-object.prototype.tostring
|
|
807
|
-
module.exports = String(test) !== '[object z]' ? function toString() {
|
|
808
|
-
return '[object ' + classof(this) + ']';
|
|
809
|
-
} : test.toString;
|
|
810
|
-
|
|
811
|
-
},{"../internals/classof":10,"../internals/well-known-symbol":62}],47:[function(require,module,exports){
|
|
812
|
-
var getBuiltIn = require('../internals/get-built-in');
|
|
813
|
-
var getOwnPropertyNamesModule = require('../internals/object-get-own-property-names');
|
|
814
|
-
var getOwnPropertySymbolsModule = require('../internals/object-get-own-property-symbols');
|
|
815
|
-
var anObject = require('../internals/an-object');
|
|
816
|
-
|
|
817
|
-
// all object keys, includes non-enumerable and symbols
|
|
818
|
-
module.exports = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
|
|
819
|
-
var keys = getOwnPropertyNamesModule.f(anObject(it));
|
|
820
|
-
var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
|
|
821
|
-
return getOwnPropertySymbols ? keys.concat(getOwnPropertySymbols(it)) : keys;
|
|
822
|
-
};
|
|
823
|
-
|
|
824
|
-
},{"../internals/an-object":3,"../internals/get-built-in":21,"../internals/object-get-own-property-names":41,"../internals/object-get-own-property-symbols":42}],48:[function(require,module,exports){
|
|
825
|
-
module.exports = require('../internals/global');
|
|
826
|
-
|
|
827
|
-
},{"../internals/global":22}],49:[function(require,module,exports){
|
|
828
|
-
var global = require('../internals/global');
|
|
829
|
-
var shared = require('../internals/shared');
|
|
830
|
-
var hide = require('../internals/hide');
|
|
831
|
-
var has = require('../internals/has');
|
|
832
|
-
var setGlobal = require('../internals/set-global');
|
|
833
|
-
var nativeFunctionToString = require('../internals/function-to-string');
|
|
834
|
-
var InternalStateModule = require('../internals/internal-state');
|
|
835
|
-
|
|
836
|
-
var getInternalState = InternalStateModule.get;
|
|
837
|
-
var enforceInternalState = InternalStateModule.enforce;
|
|
838
|
-
var TEMPLATE = String(nativeFunctionToString).split('toString');
|
|
839
|
-
|
|
840
|
-
shared('inspectSource', function (it) {
|
|
841
|
-
return nativeFunctionToString.call(it);
|
|
842
|
-
});
|
|
843
|
-
|
|
844
|
-
(module.exports = function (O, key, value, options) {
|
|
845
|
-
var unsafe = options ? !!options.unsafe : false;
|
|
846
|
-
var simple = options ? !!options.enumerable : false;
|
|
847
|
-
var noTargetGet = options ? !!options.noTargetGet : false;
|
|
848
|
-
if (typeof value == 'function') {
|
|
849
|
-
if (typeof key == 'string' && !has(value, 'name')) hide(value, 'name', key);
|
|
850
|
-
enforceInternalState(value).source = TEMPLATE.join(typeof key == 'string' ? key : '');
|
|
851
|
-
}
|
|
852
|
-
if (O === global) {
|
|
853
|
-
if (simple) O[key] = value;
|
|
854
|
-
else setGlobal(key, value);
|
|
855
|
-
return;
|
|
856
|
-
} else if (!unsafe) {
|
|
857
|
-
delete O[key];
|
|
858
|
-
} else if (!noTargetGet && O[key]) {
|
|
859
|
-
simple = true;
|
|
860
|
-
}
|
|
861
|
-
if (simple) O[key] = value;
|
|
862
|
-
else hide(O, key, value);
|
|
863
|
-
// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
|
|
864
|
-
})(Function.prototype, 'toString', function toString() {
|
|
865
|
-
return typeof this == 'function' && getInternalState(this).source || nativeFunctionToString.call(this);
|
|
866
|
-
});
|
|
867
|
-
|
|
868
|
-
},{"../internals/function-to-string":20,"../internals/global":22,"../internals/has":23,"../internals/hide":25,"../internals/internal-state":29,"../internals/set-global":51,"../internals/shared":54}],50:[function(require,module,exports){
|
|
869
|
-
// `RequireObjectCoercible` abstract operation
|
|
870
|
-
// https://tc39.github.io/ecma262/#sec-requireobjectcoercible
|
|
871
|
-
module.exports = function (it) {
|
|
872
|
-
if (it == undefined) throw TypeError("Can't call method on " + it);
|
|
873
|
-
return it;
|
|
874
|
-
};
|
|
875
|
-
|
|
876
|
-
},{}],51:[function(require,module,exports){
|
|
877
|
-
var global = require('../internals/global');
|
|
878
|
-
var hide = require('../internals/hide');
|
|
879
|
-
|
|
880
|
-
module.exports = function (key, value) {
|
|
881
|
-
try {
|
|
882
|
-
hide(global, key, value);
|
|
883
|
-
} catch (error) {
|
|
884
|
-
global[key] = value;
|
|
885
|
-
} return value;
|
|
886
|
-
};
|
|
887
|
-
|
|
888
|
-
},{"../internals/global":22,"../internals/hide":25}],52:[function(require,module,exports){
|
|
889
|
-
var defineProperty = require('../internals/object-define-property').f;
|
|
890
|
-
var has = require('../internals/has');
|
|
891
|
-
var wellKnownSymbol = require('../internals/well-known-symbol');
|
|
892
|
-
|
|
893
|
-
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
|
|
894
|
-
|
|
895
|
-
module.exports = function (it, TAG, STATIC) {
|
|
896
|
-
if (it && !has(it = STATIC ? it : it.prototype, TO_STRING_TAG)) {
|
|
897
|
-
defineProperty(it, TO_STRING_TAG, { configurable: true, value: TAG });
|
|
898
|
-
}
|
|
899
|
-
};
|
|
900
|
-
|
|
901
|
-
},{"../internals/has":23,"../internals/object-define-property":38,"../internals/well-known-symbol":62}],53:[function(require,module,exports){
|
|
902
|
-
var shared = require('../internals/shared');
|
|
903
|
-
var uid = require('../internals/uid');
|
|
904
|
-
|
|
905
|
-
var keys = shared('keys');
|
|
906
|
-
|
|
907
|
-
module.exports = function (key) {
|
|
908
|
-
return keys[key] || (keys[key] = uid(key));
|
|
909
|
-
};
|
|
910
|
-
|
|
911
|
-
},{"../internals/shared":54,"../internals/uid":61}],54:[function(require,module,exports){
|
|
912
|
-
var global = require('../internals/global');
|
|
913
|
-
var setGlobal = require('../internals/set-global');
|
|
914
|
-
var IS_PURE = require('../internals/is-pure');
|
|
915
|
-
|
|
916
|
-
var SHARED = '__core-js_shared__';
|
|
917
|
-
var store = global[SHARED] || setGlobal(SHARED, {});
|
|
918
|
-
|
|
919
|
-
(module.exports = function (key, value) {
|
|
920
|
-
return store[key] || (store[key] = value !== undefined ? value : {});
|
|
921
|
-
})('versions', []).push({
|
|
922
|
-
version: '3.2.1',
|
|
923
|
-
mode: IS_PURE ? 'pure' : 'global',
|
|
924
|
-
copyright: '© 2019 Denis Pushkarev (zloirock.ru)'
|
|
925
|
-
});
|
|
926
|
-
|
|
927
|
-
},{"../internals/global":22,"../internals/is-pure":33,"../internals/set-global":51}],55:[function(require,module,exports){
|
|
928
|
-
var toInteger = require('../internals/to-integer');
|
|
929
|
-
|
|
930
|
-
var max = Math.max;
|
|
931
|
-
var min = Math.min;
|
|
932
|
-
|
|
933
|
-
// Helper for a popular repeating case of the spec:
|
|
934
|
-
// Let integer be ? ToInteger(index).
|
|
935
|
-
// If integer < 0, let result be max((length + integer), 0); else let result be min(length, length).
|
|
936
|
-
module.exports = function (index, length) {
|
|
937
|
-
var integer = toInteger(index);
|
|
938
|
-
return integer < 0 ? max(integer + length, 0) : min(integer, length);
|
|
939
|
-
};
|
|
940
|
-
|
|
941
|
-
},{"../internals/to-integer":57}],56:[function(require,module,exports){
|
|
942
|
-
// toObject with fallback for non-array-like ES3 strings
|
|
943
|
-
var IndexedObject = require('../internals/indexed-object');
|
|
944
|
-
var requireObjectCoercible = require('../internals/require-object-coercible');
|
|
945
|
-
|
|
946
|
-
module.exports = function (it) {
|
|
947
|
-
return IndexedObject(requireObjectCoercible(it));
|
|
948
|
-
};
|
|
949
|
-
|
|
950
|
-
},{"../internals/indexed-object":28,"../internals/require-object-coercible":50}],57:[function(require,module,exports){
|
|
951
|
-
var ceil = Math.ceil;
|
|
952
|
-
var floor = Math.floor;
|
|
953
|
-
|
|
954
|
-
// `ToInteger` abstract operation
|
|
955
|
-
// https://tc39.github.io/ecma262/#sec-tointeger
|
|
956
|
-
module.exports = function (argument) {
|
|
957
|
-
return isNaN(argument = +argument) ? 0 : (argument > 0 ? floor : ceil)(argument);
|
|
958
|
-
};
|
|
959
|
-
|
|
960
|
-
},{}],58:[function(require,module,exports){
|
|
961
|
-
var toInteger = require('../internals/to-integer');
|
|
962
|
-
|
|
963
|
-
var min = Math.min;
|
|
964
|
-
|
|
965
|
-
// `ToLength` abstract operation
|
|
966
|
-
// https://tc39.github.io/ecma262/#sec-tolength
|
|
967
|
-
module.exports = function (argument) {
|
|
968
|
-
return argument > 0 ? min(toInteger(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
|
|
969
|
-
};
|
|
970
|
-
|
|
971
|
-
},{"../internals/to-integer":57}],59:[function(require,module,exports){
|
|
972
|
-
var requireObjectCoercible = require('../internals/require-object-coercible');
|
|
973
|
-
|
|
974
|
-
// `ToObject` abstract operation
|
|
975
|
-
// https://tc39.github.io/ecma262/#sec-toobject
|
|
976
|
-
module.exports = function (argument) {
|
|
977
|
-
return Object(requireObjectCoercible(argument));
|
|
978
|
-
};
|
|
979
|
-
|
|
980
|
-
},{"../internals/require-object-coercible":50}],60:[function(require,module,exports){
|
|
981
|
-
var isObject = require('../internals/is-object');
|
|
982
|
-
|
|
983
|
-
// `ToPrimitive` abstract operation
|
|
984
|
-
// https://tc39.github.io/ecma262/#sec-toprimitive
|
|
985
|
-
// instead of the ES6 spec version, we didn't implement @@toPrimitive case
|
|
986
|
-
// and the second argument - flag - preferred type is a string
|
|
987
|
-
module.exports = function (input, PREFERRED_STRING) {
|
|
988
|
-
if (!isObject(input)) return input;
|
|
989
|
-
var fn, val;
|
|
990
|
-
if (PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val;
|
|
991
|
-
if (typeof (fn = input.valueOf) == 'function' && !isObject(val = fn.call(input))) return val;
|
|
992
|
-
if (!PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val;
|
|
993
|
-
throw TypeError("Can't convert object to primitive value");
|
|
994
|
-
};
|
|
995
|
-
|
|
996
|
-
},{"../internals/is-object":32}],61:[function(require,module,exports){
|
|
997
|
-
var id = 0;
|
|
998
|
-
var postfix = Math.random();
|
|
999
|
-
|
|
1000
|
-
module.exports = function (key) {
|
|
1001
|
-
return 'Symbol(' + String(key === undefined ? '' : key) + ')_' + (++id + postfix).toString(36);
|
|
1002
|
-
};
|
|
1003
|
-
|
|
1004
|
-
},{}],62:[function(require,module,exports){
|
|
1005
|
-
var global = require('../internals/global');
|
|
1006
|
-
var shared = require('../internals/shared');
|
|
1007
|
-
var uid = require('../internals/uid');
|
|
1008
|
-
var NATIVE_SYMBOL = require('../internals/native-symbol');
|
|
1009
|
-
|
|
1010
|
-
var Symbol = global.Symbol;
|
|
1011
|
-
var store = shared('wks');
|
|
1012
|
-
|
|
1013
|
-
module.exports = function (name) {
|
|
1014
|
-
return store[name] || (store[name] = NATIVE_SYMBOL && Symbol[name]
|
|
1015
|
-
|| (NATIVE_SYMBOL ? Symbol : uid)('Symbol.' + name));
|
|
1016
|
-
};
|
|
1017
|
-
|
|
1018
|
-
},{"../internals/global":22,"../internals/native-symbol":34,"../internals/shared":54,"../internals/uid":61}],63:[function(require,module,exports){
|
|
1019
|
-
exports.f = require('../internals/well-known-symbol');
|
|
1020
|
-
|
|
1021
|
-
},{"../internals/well-known-symbol":62}],64:[function(require,module,exports){
|
|
1022
|
-
'use strict';
|
|
1023
|
-
var $ = require('../internals/export');
|
|
1024
|
-
var fails = require('../internals/fails');
|
|
1025
|
-
var isArray = require('../internals/is-array');
|
|
1026
|
-
var isObject = require('../internals/is-object');
|
|
1027
|
-
var toObject = require('../internals/to-object');
|
|
1028
|
-
var toLength = require('../internals/to-length');
|
|
1029
|
-
var createProperty = require('../internals/create-property');
|
|
1030
|
-
var arraySpeciesCreate = require('../internals/array-species-create');
|
|
1031
|
-
var arrayMethodHasSpeciesSupport = require('../internals/array-method-has-species-support');
|
|
1032
|
-
var wellKnownSymbol = require('../internals/well-known-symbol');
|
|
1033
|
-
|
|
1034
|
-
var IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable');
|
|
1035
|
-
var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;
|
|
1036
|
-
var MAXIMUM_ALLOWED_INDEX_EXCEEDED = 'Maximum allowed index exceeded';
|
|
1037
|
-
|
|
1038
|
-
var IS_CONCAT_SPREADABLE_SUPPORT = !fails(function () {
|
|
1039
|
-
var array = [];
|
|
1040
|
-
array[IS_CONCAT_SPREADABLE] = false;
|
|
1041
|
-
return array.concat()[0] !== array;
|
|
1042
|
-
});
|
|
1043
|
-
|
|
1044
|
-
var SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('concat');
|
|
1045
|
-
|
|
1046
|
-
var isConcatSpreadable = function (O) {
|
|
1047
|
-
if (!isObject(O)) return false;
|
|
1048
|
-
var spreadable = O[IS_CONCAT_SPREADABLE];
|
|
1049
|
-
return spreadable !== undefined ? !!spreadable : isArray(O);
|
|
1050
|
-
};
|
|
1051
|
-
|
|
1052
|
-
var FORCED = !IS_CONCAT_SPREADABLE_SUPPORT || !SPECIES_SUPPORT;
|
|
1053
|
-
|
|
1054
|
-
// `Array.prototype.concat` method
|
|
1055
|
-
// https://tc39.github.io/ecma262/#sec-array.prototype.concat
|
|
1056
|
-
// with adding support of @@isConcatSpreadable and @@species
|
|
1057
|
-
$({ target: 'Array', proto: true, forced: FORCED }, {
|
|
1058
|
-
concat: function concat(arg) { // eslint-disable-line no-unused-vars
|
|
1059
|
-
var O = toObject(this);
|
|
1060
|
-
var A = arraySpeciesCreate(O, 0);
|
|
1061
|
-
var n = 0;
|
|
1062
|
-
var i, k, length, len, E;
|
|
1063
|
-
for (i = -1, length = arguments.length; i < length; i++) {
|
|
1064
|
-
E = i === -1 ? O : arguments[i];
|
|
1065
|
-
if (isConcatSpreadable(E)) {
|
|
1066
|
-
len = toLength(E.length);
|
|
1067
|
-
if (n + len > MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
|
|
1068
|
-
for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);
|
|
1069
|
-
} else {
|
|
1070
|
-
if (n >= MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
|
|
1071
|
-
createProperty(A, n++, E);
|
|
1072
|
-
}
|
|
1073
|
-
}
|
|
1074
|
-
A.length = n;
|
|
1075
|
-
return A;
|
|
1076
|
-
}
|
|
1077
|
-
});
|
|
1078
|
-
|
|
1079
|
-
},{"../internals/array-method-has-species-support":6,"../internals/array-species-create":7,"../internals/create-property":13,"../internals/export":18,"../internals/fails":19,"../internals/is-array":30,"../internals/is-object":32,"../internals/to-length":58,"../internals/to-object":59,"../internals/well-known-symbol":62}],65:[function(require,module,exports){
|
|
1080
|
-
var global = require('../internals/global');
|
|
1081
|
-
var setToStringTag = require('../internals/set-to-string-tag');
|
|
1082
|
-
|
|
1083
|
-
// JSON[@@toStringTag] property
|
|
1084
|
-
// https://tc39.github.io/ecma262/#sec-json-@@tostringtag
|
|
1085
|
-
setToStringTag(global.JSON, 'JSON', true);
|
|
1086
|
-
|
|
1087
|
-
},{"../internals/global":22,"../internals/set-to-string-tag":52}],66:[function(require,module,exports){
|
|
1088
|
-
var setToStringTag = require('../internals/set-to-string-tag');
|
|
1089
|
-
|
|
1090
|
-
// Math[@@toStringTag] property
|
|
1091
|
-
// https://tc39.github.io/ecma262/#sec-math-@@tostringtag
|
|
1092
|
-
setToStringTag(Math, 'Math', true);
|
|
1093
|
-
|
|
1094
|
-
},{"../internals/set-to-string-tag":52}],67:[function(require,module,exports){
|
|
1095
|
-
var redefine = require('../internals/redefine');
|
|
1096
|
-
var toString = require('../internals/object-to-string');
|
|
1097
|
-
|
|
1098
|
-
var ObjectPrototype = Object.prototype;
|
|
1099
|
-
|
|
1100
|
-
// `Object.prototype.toString` method
|
|
1101
|
-
// https://tc39.github.io/ecma262/#sec-object.prototype.tostring
|
|
1102
|
-
if (toString !== ObjectPrototype.toString) {
|
|
1103
|
-
redefine(ObjectPrototype, 'toString', toString, { unsafe: true });
|
|
1104
|
-
}
|
|
1105
|
-
|
|
1106
|
-
},{"../internals/object-to-string":46,"../internals/redefine":49}],68:[function(require,module,exports){
|
|
1107
|
-
var defineWellKnownSymbol = require('../internals/define-well-known-symbol');
|
|
1108
|
-
|
|
1109
|
-
// `Symbol.asyncIterator` well-known symbol
|
|
1110
|
-
// https://tc39.github.io/ecma262/#sec-symbol.asynciterator
|
|
1111
|
-
defineWellKnownSymbol('asyncIterator');
|
|
1112
|
-
|
|
1113
|
-
},{"../internals/define-well-known-symbol":14}],69:[function(require,module,exports){
|
|
1114
|
-
// `Symbol.prototype.description` getter
|
|
1115
|
-
// https://tc39.github.io/ecma262/#sec-symbol.prototype.description
|
|
1116
|
-
'use strict';
|
|
1117
|
-
var $ = require('../internals/export');
|
|
1118
|
-
var DESCRIPTORS = require('../internals/descriptors');
|
|
1119
|
-
var global = require('../internals/global');
|
|
1120
|
-
var has = require('../internals/has');
|
|
1121
|
-
var isObject = require('../internals/is-object');
|
|
1122
|
-
var defineProperty = require('../internals/object-define-property').f;
|
|
1123
|
-
var copyConstructorProperties = require('../internals/copy-constructor-properties');
|
|
1124
|
-
|
|
1125
|
-
var NativeSymbol = global.Symbol;
|
|
1126
|
-
|
|
1127
|
-
if (DESCRIPTORS && typeof NativeSymbol == 'function' && (!('description' in NativeSymbol.prototype) ||
|
|
1128
|
-
// Safari 12 bug
|
|
1129
|
-
NativeSymbol().description !== undefined
|
|
1130
|
-
)) {
|
|
1131
|
-
var EmptyStringDescriptionStore = {};
|
|
1132
|
-
// wrap Symbol constructor for correct work with undefined description
|
|
1133
|
-
var SymbolWrapper = function Symbol() {
|
|
1134
|
-
var description = arguments.length < 1 || arguments[0] === undefined ? undefined : String(arguments[0]);
|
|
1135
|
-
var result = this instanceof SymbolWrapper
|
|
1136
|
-
? new NativeSymbol(description)
|
|
1137
|
-
// in Edge 13, String(Symbol(undefined)) === 'Symbol(undefined)'
|
|
1138
|
-
: description === undefined ? NativeSymbol() : NativeSymbol(description);
|
|
1139
|
-
if (description === '') EmptyStringDescriptionStore[result] = true;
|
|
1140
|
-
return result;
|
|
1141
|
-
};
|
|
1142
|
-
copyConstructorProperties(SymbolWrapper, NativeSymbol);
|
|
1143
|
-
var symbolPrototype = SymbolWrapper.prototype = NativeSymbol.prototype;
|
|
1144
|
-
symbolPrototype.constructor = SymbolWrapper;
|
|
1145
|
-
|
|
1146
|
-
var symbolToString = symbolPrototype.toString;
|
|
1147
|
-
var native = String(NativeSymbol('test')) == 'Symbol(test)';
|
|
1148
|
-
var regexp = /^Symbol\((.*)\)[^)]+$/;
|
|
1149
|
-
defineProperty(symbolPrototype, 'description', {
|
|
1150
|
-
configurable: true,
|
|
1151
|
-
get: function description() {
|
|
1152
|
-
var symbol = isObject(this) ? this.valueOf() : this;
|
|
1153
|
-
var string = symbolToString.call(symbol);
|
|
1154
|
-
if (has(EmptyStringDescriptionStore, symbol)) return '';
|
|
1155
|
-
var desc = native ? string.slice(7, -1) : string.replace(regexp, '$1');
|
|
1156
|
-
return desc === '' ? undefined : desc;
|
|
1157
|
-
}
|
|
1158
|
-
});
|
|
1159
|
-
|
|
1160
|
-
$({ global: true, forced: true }, {
|
|
1161
|
-
Symbol: SymbolWrapper
|
|
1162
|
-
});
|
|
1163
|
-
}
|
|
1164
|
-
|
|
1165
|
-
},{"../internals/copy-constructor-properties":11,"../internals/descriptors":15,"../internals/export":18,"../internals/global":22,"../internals/has":23,"../internals/is-object":32,"../internals/object-define-property":38}],70:[function(require,module,exports){
|
|
1166
|
-
var defineWellKnownSymbol = require('../internals/define-well-known-symbol');
|
|
1167
|
-
|
|
1168
|
-
// `Symbol.hasInstance` well-known symbol
|
|
1169
|
-
// https://tc39.github.io/ecma262/#sec-symbol.hasinstance
|
|
1170
|
-
defineWellKnownSymbol('hasInstance');
|
|
1171
|
-
|
|
1172
|
-
},{"../internals/define-well-known-symbol":14}],71:[function(require,module,exports){
|
|
1173
|
-
var defineWellKnownSymbol = require('../internals/define-well-known-symbol');
|
|
1174
|
-
|
|
1175
|
-
// `Symbol.isConcatSpreadable` well-known symbol
|
|
1176
|
-
// https://tc39.github.io/ecma262/#sec-symbol.isconcatspreadable
|
|
1177
|
-
defineWellKnownSymbol('isConcatSpreadable');
|
|
1178
|
-
|
|
1179
|
-
},{"../internals/define-well-known-symbol":14}],72:[function(require,module,exports){
|
|
1180
|
-
var defineWellKnownSymbol = require('../internals/define-well-known-symbol');
|
|
1181
|
-
|
|
1182
|
-
// `Symbol.iterator` well-known symbol
|
|
1183
|
-
// https://tc39.github.io/ecma262/#sec-symbol.iterator
|
|
1184
|
-
defineWellKnownSymbol('iterator');
|
|
1185
|
-
|
|
1186
|
-
},{"../internals/define-well-known-symbol":14}],73:[function(require,module,exports){
|
|
1187
|
-
'use strict';
|
|
1188
|
-
var $ = require('../internals/export');
|
|
1189
|
-
var global = require('../internals/global');
|
|
1190
|
-
var IS_PURE = require('../internals/is-pure');
|
|
1191
|
-
var DESCRIPTORS = require('../internals/descriptors');
|
|
1192
|
-
var NATIVE_SYMBOL = require('../internals/native-symbol');
|
|
1193
|
-
var fails = require('../internals/fails');
|
|
1194
|
-
var has = require('../internals/has');
|
|
1195
|
-
var isArray = require('../internals/is-array');
|
|
1196
|
-
var isObject = require('../internals/is-object');
|
|
1197
|
-
var anObject = require('../internals/an-object');
|
|
1198
|
-
var toObject = require('../internals/to-object');
|
|
1199
|
-
var toIndexedObject = require('../internals/to-indexed-object');
|
|
1200
|
-
var toPrimitive = require('../internals/to-primitive');
|
|
1201
|
-
var createPropertyDescriptor = require('../internals/create-property-descriptor');
|
|
1202
|
-
var nativeObjectCreate = require('../internals/object-create');
|
|
1203
|
-
var objectKeys = require('../internals/object-keys');
|
|
1204
|
-
var getOwnPropertyNamesModule = require('../internals/object-get-own-property-names');
|
|
1205
|
-
var getOwnPropertyNamesExternal = require('../internals/object-get-own-property-names-external');
|
|
1206
|
-
var getOwnPropertySymbolsModule = require('../internals/object-get-own-property-symbols');
|
|
1207
|
-
var getOwnPropertyDescriptorModule = require('../internals/object-get-own-property-descriptor');
|
|
1208
|
-
var definePropertyModule = require('../internals/object-define-property');
|
|
1209
|
-
var propertyIsEnumerableModule = require('../internals/object-property-is-enumerable');
|
|
1210
|
-
var hide = require('../internals/hide');
|
|
1211
|
-
var redefine = require('../internals/redefine');
|
|
1212
|
-
var shared = require('../internals/shared');
|
|
1213
|
-
var sharedKey = require('../internals/shared-key');
|
|
1214
|
-
var hiddenKeys = require('../internals/hidden-keys');
|
|
1215
|
-
var uid = require('../internals/uid');
|
|
1216
|
-
var wellKnownSymbol = require('../internals/well-known-symbol');
|
|
1217
|
-
var wrappedWellKnownSymbolModule = require('../internals/wrapped-well-known-symbol');
|
|
1218
|
-
var defineWellKnownSymbol = require('../internals/define-well-known-symbol');
|
|
1219
|
-
var setToStringTag = require('../internals/set-to-string-tag');
|
|
1220
|
-
var InternalStateModule = require('../internals/internal-state');
|
|
1221
|
-
var $forEach = require('../internals/array-iteration').forEach;
|
|
1222
|
-
|
|
1223
|
-
var HIDDEN = sharedKey('hidden');
|
|
1224
|
-
var SYMBOL = 'Symbol';
|
|
1225
|
-
var PROTOTYPE = 'prototype';
|
|
1226
|
-
var TO_PRIMITIVE = wellKnownSymbol('toPrimitive');
|
|
1227
|
-
var setInternalState = InternalStateModule.set;
|
|
1228
|
-
var getInternalState = InternalStateModule.getterFor(SYMBOL);
|
|
1229
|
-
var ObjectPrototype = Object[PROTOTYPE];
|
|
1230
|
-
var $Symbol = global.Symbol;
|
|
1231
|
-
var JSON = global.JSON;
|
|
1232
|
-
var nativeJSONStringify = JSON && JSON.stringify;
|
|
1233
|
-
var nativeGetOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
|
|
1234
|
-
var nativeDefineProperty = definePropertyModule.f;
|
|
1235
|
-
var nativeGetOwnPropertyNames = getOwnPropertyNamesExternal.f;
|
|
1236
|
-
var nativePropertyIsEnumerable = propertyIsEnumerableModule.f;
|
|
1237
|
-
var AllSymbols = shared('symbols');
|
|
1238
|
-
var ObjectPrototypeSymbols = shared('op-symbols');
|
|
1239
|
-
var StringToSymbolRegistry = shared('string-to-symbol-registry');
|
|
1240
|
-
var SymbolToStringRegistry = shared('symbol-to-string-registry');
|
|
1241
|
-
var WellKnownSymbolsStore = shared('wks');
|
|
1242
|
-
var QObject = global.QObject;
|
|
1243
|
-
// Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173
|
|
1244
|
-
var USE_SETTER = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild;
|
|
1245
|
-
|
|
1246
|
-
// fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687
|
|
1247
|
-
var setSymbolDescriptor = DESCRIPTORS && fails(function () {
|
|
1248
|
-
return nativeObjectCreate(nativeDefineProperty({}, 'a', {
|
|
1249
|
-
get: function () { return nativeDefineProperty(this, 'a', { value: 7 }).a; }
|
|
1250
|
-
})).a != 7;
|
|
1251
|
-
}) ? function (O, P, Attributes) {
|
|
1252
|
-
var ObjectPrototypeDescriptor = nativeGetOwnPropertyDescriptor(ObjectPrototype, P);
|
|
1253
|
-
if (ObjectPrototypeDescriptor) delete ObjectPrototype[P];
|
|
1254
|
-
nativeDefineProperty(O, P, Attributes);
|
|
1255
|
-
if (ObjectPrototypeDescriptor && O !== ObjectPrototype) {
|
|
1256
|
-
nativeDefineProperty(ObjectPrototype, P, ObjectPrototypeDescriptor);
|
|
1257
|
-
}
|
|
1258
|
-
} : nativeDefineProperty;
|
|
1259
|
-
|
|
1260
|
-
var wrap = function (tag, description) {
|
|
1261
|
-
var symbol = AllSymbols[tag] = nativeObjectCreate($Symbol[PROTOTYPE]);
|
|
1262
|
-
setInternalState(symbol, {
|
|
1263
|
-
type: SYMBOL,
|
|
1264
|
-
tag: tag,
|
|
1265
|
-
description: description
|
|
1266
|
-
});
|
|
1267
|
-
if (!DESCRIPTORS) symbol.description = description;
|
|
1268
|
-
return symbol;
|
|
1269
|
-
};
|
|
1270
|
-
|
|
1271
|
-
var isSymbol = NATIVE_SYMBOL && typeof $Symbol.iterator == 'symbol' ? function (it) {
|
|
1272
|
-
return typeof it == 'symbol';
|
|
1273
|
-
} : function (it) {
|
|
1274
|
-
return Object(it) instanceof $Symbol;
|
|
1275
|
-
};
|
|
1276
|
-
|
|
1277
|
-
var $defineProperty = function defineProperty(O, P, Attributes) {
|
|
1278
|
-
if (O === ObjectPrototype) $defineProperty(ObjectPrototypeSymbols, P, Attributes);
|
|
1279
|
-
anObject(O);
|
|
1280
|
-
var key = toPrimitive(P, true);
|
|
1281
|
-
anObject(Attributes);
|
|
1282
|
-
if (has(AllSymbols, key)) {
|
|
1283
|
-
if (!Attributes.enumerable) {
|
|
1284
|
-
if (!has(O, HIDDEN)) nativeDefineProperty(O, HIDDEN, createPropertyDescriptor(1, {}));
|
|
1285
|
-
O[HIDDEN][key] = true;
|
|
1286
|
-
} else {
|
|
1287
|
-
if (has(O, HIDDEN) && O[HIDDEN][key]) O[HIDDEN][key] = false;
|
|
1288
|
-
Attributes = nativeObjectCreate(Attributes, { enumerable: createPropertyDescriptor(0, false) });
|
|
1289
|
-
} return setSymbolDescriptor(O, key, Attributes);
|
|
1290
|
-
} return nativeDefineProperty(O, key, Attributes);
|
|
1291
|
-
};
|
|
1292
|
-
|
|
1293
|
-
var $defineProperties = function defineProperties(O, Properties) {
|
|
1294
|
-
anObject(O);
|
|
1295
|
-
var properties = toIndexedObject(Properties);
|
|
1296
|
-
var keys = objectKeys(properties).concat($getOwnPropertySymbols(properties));
|
|
1297
|
-
$forEach(keys, function (key) {
|
|
1298
|
-
if (!DESCRIPTORS || $propertyIsEnumerable.call(properties, key)) $defineProperty(O, key, properties[key]);
|
|
1299
|
-
});
|
|
1300
|
-
return O;
|
|
1301
|
-
};
|
|
1302
|
-
|
|
1303
|
-
var $create = function create(O, Properties) {
|
|
1304
|
-
return Properties === undefined ? nativeObjectCreate(O) : $defineProperties(nativeObjectCreate(O), Properties);
|
|
1305
|
-
};
|
|
1306
|
-
|
|
1307
|
-
var $propertyIsEnumerable = function propertyIsEnumerable(V) {
|
|
1308
|
-
var P = toPrimitive(V, true);
|
|
1309
|
-
var enumerable = nativePropertyIsEnumerable.call(this, P);
|
|
1310
|
-
if (this === ObjectPrototype && has(AllSymbols, P) && !has(ObjectPrototypeSymbols, P)) return false;
|
|
1311
|
-
return enumerable || !has(this, P) || !has(AllSymbols, P) || has(this, HIDDEN) && this[HIDDEN][P] ? enumerable : true;
|
|
1312
|
-
};
|
|
1313
|
-
|
|
1314
|
-
var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(O, P) {
|
|
1315
|
-
var it = toIndexedObject(O);
|
|
1316
|
-
var key = toPrimitive(P, true);
|
|
1317
|
-
if (it === ObjectPrototype && has(AllSymbols, key) && !has(ObjectPrototypeSymbols, key)) return;
|
|
1318
|
-
var descriptor = nativeGetOwnPropertyDescriptor(it, key);
|
|
1319
|
-
if (descriptor && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key])) {
|
|
1320
|
-
descriptor.enumerable = true;
|
|
1321
|
-
}
|
|
1322
|
-
return descriptor;
|
|
1323
|
-
};
|
|
1324
|
-
|
|
1325
|
-
var $getOwnPropertyNames = function getOwnPropertyNames(O) {
|
|
1326
|
-
var names = nativeGetOwnPropertyNames(toIndexedObject(O));
|
|
1327
|
-
var result = [];
|
|
1328
|
-
$forEach(names, function (key) {
|
|
1329
|
-
if (!has(AllSymbols, key) && !has(hiddenKeys, key)) result.push(key);
|
|
1330
|
-
});
|
|
1331
|
-
return result;
|
|
1332
|
-
};
|
|
1333
|
-
|
|
1334
|
-
var $getOwnPropertySymbols = function getOwnPropertySymbols(O) {
|
|
1335
|
-
var IS_OBJECT_PROTOTYPE = O === ObjectPrototype;
|
|
1336
|
-
var names = nativeGetOwnPropertyNames(IS_OBJECT_PROTOTYPE ? ObjectPrototypeSymbols : toIndexedObject(O));
|
|
1337
|
-
var result = [];
|
|
1338
|
-
$forEach(names, function (key) {
|
|
1339
|
-
if (has(AllSymbols, key) && (!IS_OBJECT_PROTOTYPE || has(ObjectPrototype, key))) {
|
|
1340
|
-
result.push(AllSymbols[key]);
|
|
1341
|
-
}
|
|
1342
|
-
});
|
|
1343
|
-
return result;
|
|
1344
|
-
};
|
|
1345
|
-
|
|
1346
|
-
// `Symbol` constructor
|
|
1347
|
-
// https://tc39.github.io/ecma262/#sec-symbol-constructor
|
|
1348
|
-
if (!NATIVE_SYMBOL) {
|
|
1349
|
-
$Symbol = function Symbol() {
|
|
1350
|
-
if (this instanceof $Symbol) throw TypeError('Symbol is not a constructor');
|
|
1351
|
-
var description = !arguments.length || arguments[0] === undefined ? undefined : String(arguments[0]);
|
|
1352
|
-
var tag = uid(description);
|
|
1353
|
-
var setter = function (value) {
|
|
1354
|
-
if (this === ObjectPrototype) setter.call(ObjectPrototypeSymbols, value);
|
|
1355
|
-
if (has(this, HIDDEN) && has(this[HIDDEN], tag)) this[HIDDEN][tag] = false;
|
|
1356
|
-
setSymbolDescriptor(this, tag, createPropertyDescriptor(1, value));
|
|
1357
|
-
};
|
|
1358
|
-
if (DESCRIPTORS && USE_SETTER) setSymbolDescriptor(ObjectPrototype, tag, { configurable: true, set: setter });
|
|
1359
|
-
return wrap(tag, description);
|
|
1360
|
-
};
|
|
1361
|
-
|
|
1362
|
-
redefine($Symbol[PROTOTYPE], 'toString', function toString() {
|
|
1363
|
-
return getInternalState(this).tag;
|
|
1364
|
-
});
|
|
1365
|
-
|
|
1366
|
-
propertyIsEnumerableModule.f = $propertyIsEnumerable;
|
|
1367
|
-
definePropertyModule.f = $defineProperty;
|
|
1368
|
-
getOwnPropertyDescriptorModule.f = $getOwnPropertyDescriptor;
|
|
1369
|
-
getOwnPropertyNamesModule.f = getOwnPropertyNamesExternal.f = $getOwnPropertyNames;
|
|
1370
|
-
getOwnPropertySymbolsModule.f = $getOwnPropertySymbols;
|
|
1371
|
-
|
|
1372
|
-
if (DESCRIPTORS) {
|
|
1373
|
-
// https://github.com/tc39/proposal-Symbol-description
|
|
1374
|
-
nativeDefineProperty($Symbol[PROTOTYPE], 'description', {
|
|
1375
|
-
configurable: true,
|
|
1376
|
-
get: function description() {
|
|
1377
|
-
return getInternalState(this).description;
|
|
1378
|
-
}
|
|
1379
|
-
});
|
|
1380
|
-
if (!IS_PURE) {
|
|
1381
|
-
redefine(ObjectPrototype, 'propertyIsEnumerable', $propertyIsEnumerable, { unsafe: true });
|
|
1382
|
-
}
|
|
1383
|
-
}
|
|
1384
|
-
|
|
1385
|
-
wrappedWellKnownSymbolModule.f = function (name) {
|
|
1386
|
-
return wrap(wellKnownSymbol(name), name);
|
|
1387
|
-
};
|
|
1388
|
-
}
|
|
1389
|
-
|
|
1390
|
-
$({ global: true, wrap: true, forced: !NATIVE_SYMBOL, sham: !NATIVE_SYMBOL }, {
|
|
1391
|
-
Symbol: $Symbol
|
|
1392
|
-
});
|
|
1393
|
-
|
|
1394
|
-
$forEach(objectKeys(WellKnownSymbolsStore), function (name) {
|
|
1395
|
-
defineWellKnownSymbol(name);
|
|
1396
|
-
});
|
|
1397
|
-
|
|
1398
|
-
$({ target: SYMBOL, stat: true, forced: !NATIVE_SYMBOL }, {
|
|
1399
|
-
// `Symbol.for` method
|
|
1400
|
-
// https://tc39.github.io/ecma262/#sec-symbol.for
|
|
1401
|
-
'for': function (key) {
|
|
1402
|
-
var string = String(key);
|
|
1403
|
-
if (has(StringToSymbolRegistry, string)) return StringToSymbolRegistry[string];
|
|
1404
|
-
var symbol = $Symbol(string);
|
|
1405
|
-
StringToSymbolRegistry[string] = symbol;
|
|
1406
|
-
SymbolToStringRegistry[symbol] = string;
|
|
1407
|
-
return symbol;
|
|
1408
|
-
},
|
|
1409
|
-
// `Symbol.keyFor` method
|
|
1410
|
-
// https://tc39.github.io/ecma262/#sec-symbol.keyfor
|
|
1411
|
-
keyFor: function keyFor(sym) {
|
|
1412
|
-
if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol');
|
|
1413
|
-
if (has(SymbolToStringRegistry, sym)) return SymbolToStringRegistry[sym];
|
|
1414
|
-
},
|
|
1415
|
-
useSetter: function () { USE_SETTER = true; },
|
|
1416
|
-
useSimple: function () { USE_SETTER = false; }
|
|
1417
|
-
});
|
|
1418
|
-
|
|
1419
|
-
$({ target: 'Object', stat: true, forced: !NATIVE_SYMBOL, sham: !DESCRIPTORS }, {
|
|
1420
|
-
// `Object.create` method
|
|
1421
|
-
// https://tc39.github.io/ecma262/#sec-object.create
|
|
1422
|
-
create: $create,
|
|
1423
|
-
// `Object.defineProperty` method
|
|
1424
|
-
// https://tc39.github.io/ecma262/#sec-object.defineproperty
|
|
1425
|
-
defineProperty: $defineProperty,
|
|
1426
|
-
// `Object.defineProperties` method
|
|
1427
|
-
// https://tc39.github.io/ecma262/#sec-object.defineproperties
|
|
1428
|
-
defineProperties: $defineProperties,
|
|
1429
|
-
// `Object.getOwnPropertyDescriptor` method
|
|
1430
|
-
// https://tc39.github.io/ecma262/#sec-object.getownpropertydescriptors
|
|
1431
|
-
getOwnPropertyDescriptor: $getOwnPropertyDescriptor
|
|
1432
|
-
});
|
|
1433
|
-
|
|
1434
|
-
$({ target: 'Object', stat: true, forced: !NATIVE_SYMBOL }, {
|
|
1435
|
-
// `Object.getOwnPropertyNames` method
|
|
1436
|
-
// https://tc39.github.io/ecma262/#sec-object.getownpropertynames
|
|
1437
|
-
getOwnPropertyNames: $getOwnPropertyNames,
|
|
1438
|
-
// `Object.getOwnPropertySymbols` method
|
|
1439
|
-
// https://tc39.github.io/ecma262/#sec-object.getownpropertysymbols
|
|
1440
|
-
getOwnPropertySymbols: $getOwnPropertySymbols
|
|
1441
|
-
});
|
|
1442
|
-
|
|
1443
|
-
// Chrome 38 and 39 `Object.getOwnPropertySymbols` fails on primitives
|
|
1444
|
-
// https://bugs.chromium.org/p/v8/issues/detail?id=3443
|
|
1445
|
-
$({ target: 'Object', stat: true, forced: fails(function () { getOwnPropertySymbolsModule.f(1); }) }, {
|
|
1446
|
-
getOwnPropertySymbols: function getOwnPropertySymbols(it) {
|
|
1447
|
-
return getOwnPropertySymbolsModule.f(toObject(it));
|
|
1448
|
-
}
|
|
1449
|
-
});
|
|
1450
|
-
|
|
1451
|
-
// `JSON.stringify` method behavior with symbols
|
|
1452
|
-
// https://tc39.github.io/ecma262/#sec-json.stringify
|
|
1453
|
-
JSON && $({ target: 'JSON', stat: true, forced: !NATIVE_SYMBOL || fails(function () {
|
|
1454
|
-
var symbol = $Symbol();
|
|
1455
|
-
// MS Edge converts symbol values to JSON as {}
|
|
1456
|
-
return nativeJSONStringify([symbol]) != '[null]'
|
|
1457
|
-
// WebKit converts symbol values to JSON as null
|
|
1458
|
-
|| nativeJSONStringify({ a: symbol }) != '{}'
|
|
1459
|
-
// V8 throws on boxed symbols
|
|
1460
|
-
|| nativeJSONStringify(Object(symbol)) != '{}';
|
|
1461
|
-
}) }, {
|
|
1462
|
-
stringify: function stringify(it) {
|
|
1463
|
-
var args = [it];
|
|
1464
|
-
var index = 1;
|
|
1465
|
-
var replacer, $replacer;
|
|
1466
|
-
while (arguments.length > index) args.push(arguments[index++]);
|
|
1467
|
-
$replacer = replacer = args[1];
|
|
1468
|
-
if (!isObject(replacer) && it === undefined || isSymbol(it)) return; // IE8 returns string on undefined
|
|
1469
|
-
if (!isArray(replacer)) replacer = function (key, value) {
|
|
1470
|
-
if (typeof $replacer == 'function') value = $replacer.call(this, key, value);
|
|
1471
|
-
if (!isSymbol(value)) return value;
|
|
1472
|
-
};
|
|
1473
|
-
args[1] = replacer;
|
|
1474
|
-
return nativeJSONStringify.apply(JSON, args);
|
|
1475
|
-
}
|
|
1476
|
-
});
|
|
1477
|
-
|
|
1478
|
-
// `Symbol.prototype[@@toPrimitive]` method
|
|
1479
|
-
// https://tc39.github.io/ecma262/#sec-symbol.prototype-@@toprimitive
|
|
1480
|
-
if (!$Symbol[PROTOTYPE][TO_PRIMITIVE]) hide($Symbol[PROTOTYPE], TO_PRIMITIVE, $Symbol[PROTOTYPE].valueOf);
|
|
1481
|
-
// `Symbol.prototype[@@toStringTag]` property
|
|
1482
|
-
// https://tc39.github.io/ecma262/#sec-symbol.prototype-@@tostringtag
|
|
1483
|
-
setToStringTag($Symbol, SYMBOL);
|
|
1484
|
-
|
|
1485
|
-
hiddenKeys[HIDDEN] = true;
|
|
1486
|
-
|
|
1487
|
-
},{"../internals/an-object":3,"../internals/array-iteration":5,"../internals/create-property-descriptor":12,"../internals/define-well-known-symbol":14,"../internals/descriptors":15,"../internals/export":18,"../internals/fails":19,"../internals/global":22,"../internals/has":23,"../internals/hidden-keys":24,"../internals/hide":25,"../internals/internal-state":29,"../internals/is-array":30,"../internals/is-object":32,"../internals/is-pure":33,"../internals/native-symbol":34,"../internals/object-create":36,"../internals/object-define-property":38,"../internals/object-get-own-property-descriptor":39,"../internals/object-get-own-property-names":41,"../internals/object-get-own-property-names-external":40,"../internals/object-get-own-property-symbols":42,"../internals/object-keys":44,"../internals/object-property-is-enumerable":45,"../internals/redefine":49,"../internals/set-to-string-tag":52,"../internals/shared":54,"../internals/shared-key":53,"../internals/to-indexed-object":56,"../internals/to-object":59,"../internals/to-primitive":60,"../internals/uid":61,"../internals/well-known-symbol":62,"../internals/wrapped-well-known-symbol":63}],74:[function(require,module,exports){
|
|
1488
|
-
var defineWellKnownSymbol = require('../internals/define-well-known-symbol');
|
|
1489
|
-
|
|
1490
|
-
// `Symbol.matchAll` well-known symbol
|
|
1491
|
-
defineWellKnownSymbol('matchAll');
|
|
1492
|
-
|
|
1493
|
-
},{"../internals/define-well-known-symbol":14}],75:[function(require,module,exports){
|
|
1494
|
-
var defineWellKnownSymbol = require('../internals/define-well-known-symbol');
|
|
1495
|
-
|
|
1496
|
-
// `Symbol.match` well-known symbol
|
|
1497
|
-
// https://tc39.github.io/ecma262/#sec-symbol.match
|
|
1498
|
-
defineWellKnownSymbol('match');
|
|
1499
|
-
|
|
1500
|
-
},{"../internals/define-well-known-symbol":14}],76:[function(require,module,exports){
|
|
1501
|
-
var defineWellKnownSymbol = require('../internals/define-well-known-symbol');
|
|
1502
|
-
|
|
1503
|
-
// `Symbol.replace` well-known symbol
|
|
1504
|
-
// https://tc39.github.io/ecma262/#sec-symbol.replace
|
|
1505
|
-
defineWellKnownSymbol('replace');
|
|
1506
|
-
|
|
1507
|
-
},{"../internals/define-well-known-symbol":14}],77:[function(require,module,exports){
|
|
1508
|
-
var defineWellKnownSymbol = require('../internals/define-well-known-symbol');
|
|
1509
|
-
|
|
1510
|
-
// `Symbol.search` well-known symbol
|
|
1511
|
-
// https://tc39.github.io/ecma262/#sec-symbol.search
|
|
1512
|
-
defineWellKnownSymbol('search');
|
|
1513
|
-
|
|
1514
|
-
},{"../internals/define-well-known-symbol":14}],78:[function(require,module,exports){
|
|
1515
|
-
var defineWellKnownSymbol = require('../internals/define-well-known-symbol');
|
|
1516
|
-
|
|
1517
|
-
// `Symbol.species` well-known symbol
|
|
1518
|
-
// https://tc39.github.io/ecma262/#sec-symbol.species
|
|
1519
|
-
defineWellKnownSymbol('species');
|
|
1520
|
-
|
|
1521
|
-
},{"../internals/define-well-known-symbol":14}],79:[function(require,module,exports){
|
|
1522
|
-
var defineWellKnownSymbol = require('../internals/define-well-known-symbol');
|
|
1523
|
-
|
|
1524
|
-
// `Symbol.split` well-known symbol
|
|
1525
|
-
// https://tc39.github.io/ecma262/#sec-symbol.split
|
|
1526
|
-
defineWellKnownSymbol('split');
|
|
1527
|
-
|
|
1528
|
-
},{"../internals/define-well-known-symbol":14}],80:[function(require,module,exports){
|
|
1529
|
-
var defineWellKnownSymbol = require('../internals/define-well-known-symbol');
|
|
1530
|
-
|
|
1531
|
-
// `Symbol.toPrimitive` well-known symbol
|
|
1532
|
-
// https://tc39.github.io/ecma262/#sec-symbol.toprimitive
|
|
1533
|
-
defineWellKnownSymbol('toPrimitive');
|
|
1534
|
-
|
|
1535
|
-
},{"../internals/define-well-known-symbol":14}],81:[function(require,module,exports){
|
|
1536
|
-
var defineWellKnownSymbol = require('../internals/define-well-known-symbol');
|
|
1537
|
-
|
|
1538
|
-
// `Symbol.toStringTag` well-known symbol
|
|
1539
|
-
// https://tc39.github.io/ecma262/#sec-symbol.tostringtag
|
|
1540
|
-
defineWellKnownSymbol('toStringTag');
|
|
1541
|
-
|
|
1542
|
-
},{"../internals/define-well-known-symbol":14}],82:[function(require,module,exports){
|
|
1543
|
-
var defineWellKnownSymbol = require('../internals/define-well-known-symbol');
|
|
1544
|
-
|
|
1545
|
-
// `Symbol.unscopables` well-known symbol
|
|
1546
|
-
// https://tc39.github.io/ecma262/#sec-symbol.unscopables
|
|
1547
|
-
defineWellKnownSymbol('unscopables');
|
|
1548
|
-
|
|
1549
|
-
},{"../internals/define-well-known-symbol":14}],83:[function(require,module,exports){
|
|
1550
2
|
(function (global){
|
|
1551
3
|
/**
|
|
1552
4
|
* lodash (Custom Build) <https://lodash.com/>
|
|
@@ -2481,7 +933,7 @@ function get(object, path, defaultValue) {
|
|
|
2481
933
|
module.exports = get;
|
|
2482
934
|
|
|
2483
935
|
}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
|
|
2484
|
-
},{}],
|
|
936
|
+
},{}],2:[function(require,module,exports){
|
|
2485
937
|
(function (global){
|
|
2486
938
|
/**
|
|
2487
939
|
* Lodash (Custom Build) <https://lodash.com/>
|
|
@@ -4333,7 +2785,7 @@ function stubFalse() {
|
|
|
4333
2785
|
module.exports = isEqual;
|
|
4334
2786
|
|
|
4335
2787
|
}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
|
|
4336
|
-
},{}],
|
|
2788
|
+
},{}],3:[function(require,module,exports){
|
|
4337
2789
|
// shim for using process in browser
|
|
4338
2790
|
var process = module.exports = {};
|
|
4339
2791
|
|
|
@@ -4519,9 +2971,11 @@ process.chdir = function (dir) {
|
|
|
4519
2971
|
};
|
|
4520
2972
|
process.umask = function() { return 0; };
|
|
4521
2973
|
|
|
4522
|
-
},{}],
|
|
2974
|
+
},{}],4:[function(require,module,exports){
|
|
4523
2975
|
"use strict";
|
|
4524
2976
|
|
|
2977
|
+
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
2978
|
+
|
|
4525
2979
|
Object.defineProperty(exports, "__esModule", {
|
|
4526
2980
|
value: true
|
|
4527
2981
|
});
|
|
@@ -4587,12 +3041,16 @@ var _isDecimal = _interopRequireDefault(require("./lib/isDecimal"));
|
|
|
4587
3041
|
|
|
4588
3042
|
var _isHexadecimal = _interopRequireDefault(require("./lib/isHexadecimal"));
|
|
4589
3043
|
|
|
3044
|
+
var _isOctal = _interopRequireDefault(require("./lib/isOctal"));
|
|
3045
|
+
|
|
4590
3046
|
var _isDivisibleBy = _interopRequireDefault(require("./lib/isDivisibleBy"));
|
|
4591
3047
|
|
|
4592
3048
|
var _isHexColor = _interopRequireDefault(require("./lib/isHexColor"));
|
|
4593
3049
|
|
|
4594
3050
|
var _isISRC = _interopRequireDefault(require("./lib/isISRC"));
|
|
4595
3051
|
|
|
3052
|
+
var _isBIC = _interopRequireDefault(require("./lib/isBIC"));
|
|
3053
|
+
|
|
4596
3054
|
var _isMD = _interopRequireDefault(require("./lib/isMD5"));
|
|
4597
3055
|
|
|
4598
3056
|
var _isHash = _interopRequireDefault(require("./lib/isHash"));
|
|
@@ -4673,11 +3131,15 @@ var _isWhitelisted = _interopRequireDefault(require("./lib/isWhitelisted"));
|
|
|
4673
3131
|
|
|
4674
3132
|
var _normalizeEmail = _interopRequireDefault(require("./lib/normalizeEmail"));
|
|
4675
3133
|
|
|
4676
|
-
|
|
3134
|
+
var _isSlug = _interopRequireDefault(require("./lib/isSlug"));
|
|
3135
|
+
|
|
3136
|
+
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
|
3137
|
+
|
|
3138
|
+
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
4677
3139
|
|
|
4678
3140
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
4679
3141
|
|
|
4680
|
-
var version = '
|
|
3142
|
+
var version = '12.2.0';
|
|
4681
3143
|
var validator = {
|
|
4682
3144
|
version: version,
|
|
4683
3145
|
toDate: _toDate.default,
|
|
@@ -4694,6 +3156,7 @@ var validator = {
|
|
|
4694
3156
|
isIPRange: _isIPRange.default,
|
|
4695
3157
|
isFQDN: _isFQDN.default,
|
|
4696
3158
|
isBoolean: _isBoolean.default,
|
|
3159
|
+
isBIC: _isBIC.default,
|
|
4697
3160
|
isAlpha: _isAlpha.default,
|
|
4698
3161
|
isAlphaLocales: _isAlpha.locales,
|
|
4699
3162
|
isAlphanumeric: _isAlphanumeric.default,
|
|
@@ -4713,6 +3176,7 @@ var validator = {
|
|
|
4713
3176
|
isFloatLocales: _isFloat.locales,
|
|
4714
3177
|
isDecimal: _isDecimal.default,
|
|
4715
3178
|
isHexadecimal: _isHexadecimal.default,
|
|
3179
|
+
isOctal: _isOctal.default,
|
|
4716
3180
|
isDivisibleBy: _isDivisibleBy.default,
|
|
4717
3181
|
isHexColor: _isHexColor.default,
|
|
4718
3182
|
isISRC: _isISRC.default,
|
|
@@ -4758,13 +3222,14 @@ var validator = {
|
|
|
4758
3222
|
blacklist: _blacklist.default,
|
|
4759
3223
|
isWhitelisted: _isWhitelisted.default,
|
|
4760
3224
|
normalizeEmail: _normalizeEmail.default,
|
|
4761
|
-
toString: toString
|
|
3225
|
+
toString: toString,
|
|
3226
|
+
isSlug: _isSlug.default
|
|
4762
3227
|
};
|
|
4763
3228
|
var _default = validator;
|
|
4764
3229
|
exports.default = _default;
|
|
4765
3230
|
module.exports = exports.default;
|
|
4766
3231
|
module.exports.default = exports.default;
|
|
4767
|
-
},{"./lib/blacklist":
|
|
3232
|
+
},{"./lib/blacklist":6,"./lib/contains":7,"./lib/equals":8,"./lib/escape":9,"./lib/isAfter":10,"./lib/isAlpha":11,"./lib/isAlphanumeric":12,"./lib/isAscii":13,"./lib/isBIC":14,"./lib/isBase32":15,"./lib/isBase64":16,"./lib/isBefore":17,"./lib/isBoolean":18,"./lib/isByteLength":19,"./lib/isCreditCard":20,"./lib/isCurrency":21,"./lib/isDataURI":22,"./lib/isDecimal":23,"./lib/isDivisibleBy":24,"./lib/isEmail":25,"./lib/isEmpty":26,"./lib/isFQDN":27,"./lib/isFloat":28,"./lib/isFullWidth":29,"./lib/isHalfWidth":30,"./lib/isHash":31,"./lib/isHexColor":32,"./lib/isHexadecimal":33,"./lib/isIP":34,"./lib/isIPRange":35,"./lib/isISBN":36,"./lib/isISIN":37,"./lib/isISO31661Alpha2":38,"./lib/isISO31661Alpha3":39,"./lib/isISO8601":40,"./lib/isISRC":41,"./lib/isISSN":42,"./lib/isIdentityCard":43,"./lib/isIn":44,"./lib/isInt":45,"./lib/isJSON":46,"./lib/isJWT":47,"./lib/isLatLong":48,"./lib/isLength":49,"./lib/isLowercase":50,"./lib/isMACAddress":51,"./lib/isMD5":52,"./lib/isMagnetURI":53,"./lib/isMimeType":54,"./lib/isMobilePhone":55,"./lib/isMongoId":56,"./lib/isMultibyte":57,"./lib/isNumeric":58,"./lib/isOctal":59,"./lib/isPort":60,"./lib/isPostalCode":61,"./lib/isRFC3339":62,"./lib/isSlug":63,"./lib/isSurrogatePair":64,"./lib/isURL":65,"./lib/isUUID":66,"./lib/isUppercase":67,"./lib/isVariableWidth":68,"./lib/isWhitelisted":69,"./lib/ltrim":70,"./lib/matches":71,"./lib/normalizeEmail":72,"./lib/rtrim":73,"./lib/stripLow":74,"./lib/toBoolean":75,"./lib/toDate":76,"./lib/toFloat":77,"./lib/toInt":78,"./lib/trim":79,"./lib/unescape":80,"./lib/whitelist":85}],5:[function(require,module,exports){
|
|
4768
3233
|
"use strict";
|
|
4769
3234
|
|
|
4770
3235
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -4786,7 +3251,7 @@ var alpha = {
|
|
|
4786
3251
|
'nn-NO': /^[A-ZÆØÅ]+$/i,
|
|
4787
3252
|
'hu-HU': /^[A-ZÁÉÍÓÖŐÚÜŰ]+$/i,
|
|
4788
3253
|
'pl-PL': /^[A-ZĄĆĘŚŁŃÓŻŹ]+$/i,
|
|
4789
|
-
'pt-PT': /^[A-
|
|
3254
|
+
'pt-PT': /^[A-ZÃÁÀÂÄÇÉÊËÍÏÕÓÔÖÚÜ]+$/i,
|
|
4790
3255
|
'ru-RU': /^[А-ЯЁ]+$/i,
|
|
4791
3256
|
'sl-SI': /^[A-ZČĆĐŠŽ]+$/i,
|
|
4792
3257
|
'sk-SK': /^[A-ZÁČĎÉÍŇÓŠŤÚÝŽĹŔĽÄÔ]+$/i,
|
|
@@ -4796,7 +3261,9 @@ var alpha = {
|
|
|
4796
3261
|
'tr-TR': /^[A-ZÇĞİıÖŞÜ]+$/i,
|
|
4797
3262
|
'uk-UA': /^[А-ЩЬЮЯЄIЇҐі]+$/i,
|
|
4798
3263
|
'ku-IQ': /^[ئابپتجچحخدرڕزژسشعغفڤقکگلڵمنوۆھەیێيطؤثآإأكضصةظذ]+$/i,
|
|
4799
|
-
ar: /^[ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ]
|
|
3264
|
+
ar: /^[ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ]+$/,
|
|
3265
|
+
he: /^[א-ת]+$/,
|
|
3266
|
+
'fa-IR': /^['آابپتثجچهخدذرزژسشصضطظعغفقکگلمنوهی']+$/i
|
|
4800
3267
|
};
|
|
4801
3268
|
exports.alpha = alpha;
|
|
4802
3269
|
var alphanumeric = {
|
|
@@ -4814,7 +3281,7 @@ var alphanumeric = {
|
|
|
4814
3281
|
'nl-NL': /^[0-9A-ZÁÉËÏÓÖÜÚ]+$/i,
|
|
4815
3282
|
'nn-NO': /^[0-9A-ZÆØÅ]+$/i,
|
|
4816
3283
|
'pl-PL': /^[0-9A-ZĄĆĘŚŁŃÓŻŹ]+$/i,
|
|
4817
|
-
'pt-PT': /^[0-9A-
|
|
3284
|
+
'pt-PT': /^[0-9A-ZÃÁÀÂÄÇÉÊËÍÏÕÓÔÖÚÜ]+$/i,
|
|
4818
3285
|
'ru-RU': /^[0-9А-ЯЁ]+$/i,
|
|
4819
3286
|
'sl-SI': /^[0-9A-ZČĆĐŠŽ]+$/i,
|
|
4820
3287
|
'sk-SK': /^[0-9A-ZÁČĎÉÍŇÓŠŤÚÝŽĹŔĽÄÔ]+$/i,
|
|
@@ -4824,7 +3291,9 @@ var alphanumeric = {
|
|
|
4824
3291
|
'tr-TR': /^[0-9A-ZÇĞİıÖŞÜ]+$/i,
|
|
4825
3292
|
'uk-UA': /^[0-9А-ЩЬЮЯЄIЇҐі]+$/i,
|
|
4826
3293
|
'ku-IQ': /^[٠١٢٣٤٥٦٧٨٩0-9ئابپتجچحخدرڕزژسشعغفڤقکگلڵمنوۆھەیێيطؤثآإأكضصةظذ]+$/i,
|
|
4827
|
-
ar: /^[٠١٢٣٤٥٦٧٨٩0-9ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ]
|
|
3294
|
+
ar: /^[٠١٢٣٤٥٦٧٨٩0-9ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ]+$/,
|
|
3295
|
+
he: /^[0-9א-ת]+$/,
|
|
3296
|
+
'fa-IR': /^['0-9آابپتثجچهخدذرزژسشصضطظعغفقکگلمنوهی۱۲۳۴۵۶۷۸۹۰']+$/i
|
|
4828
3297
|
};
|
|
4829
3298
|
exports.alphanumeric = alphanumeric;
|
|
4830
3299
|
var decimal = {
|
|
@@ -4874,7 +3343,7 @@ decimal['pt-BR'] = decimal['pt-PT']; // see #862
|
|
|
4874
3343
|
alpha['pl-Pl'] = alpha['pl-PL'];
|
|
4875
3344
|
alphanumeric['pl-Pl'] = alphanumeric['pl-PL'];
|
|
4876
3345
|
decimal['pl-Pl'] = decimal['pl-PL'];
|
|
4877
|
-
},{}],
|
|
3346
|
+
},{}],6:[function(require,module,exports){
|
|
4878
3347
|
"use strict";
|
|
4879
3348
|
|
|
4880
3349
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -4893,7 +3362,7 @@ function blacklist(str, chars) {
|
|
|
4893
3362
|
|
|
4894
3363
|
module.exports = exports.default;
|
|
4895
3364
|
module.exports.default = exports.default;
|
|
4896
|
-
},{"./util/assertString":
|
|
3365
|
+
},{"./util/assertString":81}],7:[function(require,module,exports){
|
|
4897
3366
|
"use strict";
|
|
4898
3367
|
|
|
4899
3368
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -4914,7 +3383,7 @@ function contains(str, elem) {
|
|
|
4914
3383
|
|
|
4915
3384
|
module.exports = exports.default;
|
|
4916
3385
|
module.exports.default = exports.default;
|
|
4917
|
-
},{"./util/assertString":
|
|
3386
|
+
},{"./util/assertString":81,"./util/toString":84}],8:[function(require,module,exports){
|
|
4918
3387
|
"use strict";
|
|
4919
3388
|
|
|
4920
3389
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -4933,7 +3402,7 @@ function equals(str, comparison) {
|
|
|
4933
3402
|
|
|
4934
3403
|
module.exports = exports.default;
|
|
4935
3404
|
module.exports.default = exports.default;
|
|
4936
|
-
},{"./util/assertString":
|
|
3405
|
+
},{"./util/assertString":81}],9:[function(require,module,exports){
|
|
4937
3406
|
"use strict";
|
|
4938
3407
|
|
|
4939
3408
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -4952,7 +3421,7 @@ function escape(str) {
|
|
|
4952
3421
|
|
|
4953
3422
|
module.exports = exports.default;
|
|
4954
3423
|
module.exports.default = exports.default;
|
|
4955
|
-
},{"./util/assertString":
|
|
3424
|
+
},{"./util/assertString":81}],10:[function(require,module,exports){
|
|
4956
3425
|
"use strict";
|
|
4957
3426
|
|
|
4958
3427
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -4976,7 +3445,7 @@ function isAfter(str) {
|
|
|
4976
3445
|
|
|
4977
3446
|
module.exports = exports.default;
|
|
4978
3447
|
module.exports.default = exports.default;
|
|
4979
|
-
},{"./toDate":
|
|
3448
|
+
},{"./toDate":76,"./util/assertString":81}],11:[function(require,module,exports){
|
|
4980
3449
|
"use strict";
|
|
4981
3450
|
|
|
4982
3451
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -5004,7 +3473,7 @@ function isAlpha(str) {
|
|
|
5004
3473
|
|
|
5005
3474
|
var locales = Object.keys(_alpha.alpha);
|
|
5006
3475
|
exports.locales = locales;
|
|
5007
|
-
},{"./alpha":
|
|
3476
|
+
},{"./alpha":5,"./util/assertString":81}],12:[function(require,module,exports){
|
|
5008
3477
|
"use strict";
|
|
5009
3478
|
|
|
5010
3479
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -5032,7 +3501,7 @@ function isAlphanumeric(str) {
|
|
|
5032
3501
|
|
|
5033
3502
|
var locales = Object.keys(_alpha.alphanumeric);
|
|
5034
3503
|
exports.locales = locales;
|
|
5035
|
-
},{"./alpha":
|
|
3504
|
+
},{"./alpha":5,"./util/assertString":81}],13:[function(require,module,exports){
|
|
5036
3505
|
"use strict";
|
|
5037
3506
|
|
|
5038
3507
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -5055,7 +3524,28 @@ function isAscii(str) {
|
|
|
5055
3524
|
|
|
5056
3525
|
module.exports = exports.default;
|
|
5057
3526
|
module.exports.default = exports.default;
|
|
5058
|
-
},{"./util/assertString":
|
|
3527
|
+
},{"./util/assertString":81}],14:[function(require,module,exports){
|
|
3528
|
+
"use strict";
|
|
3529
|
+
|
|
3530
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3531
|
+
value: true
|
|
3532
|
+
});
|
|
3533
|
+
exports.default = isBIC;
|
|
3534
|
+
|
|
3535
|
+
var _assertString = _interopRequireDefault(require("./util/assertString"));
|
|
3536
|
+
|
|
3537
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
3538
|
+
|
|
3539
|
+
var isBICReg = /^[A-z]{4}[A-z]{2}\w{2}(\w{3})?$/;
|
|
3540
|
+
|
|
3541
|
+
function isBIC(str) {
|
|
3542
|
+
(0, _assertString.default)(str);
|
|
3543
|
+
return isBICReg.test(str);
|
|
3544
|
+
}
|
|
3545
|
+
|
|
3546
|
+
module.exports = exports.default;
|
|
3547
|
+
module.exports.default = exports.default;
|
|
3548
|
+
},{"./util/assertString":81}],15:[function(require,module,exports){
|
|
5059
3549
|
"use strict";
|
|
5060
3550
|
|
|
5061
3551
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -5082,7 +3572,7 @@ function isBase32(str) {
|
|
|
5082
3572
|
|
|
5083
3573
|
module.exports = exports.default;
|
|
5084
3574
|
module.exports.default = exports.default;
|
|
5085
|
-
},{"./util/assertString":
|
|
3575
|
+
},{"./util/assertString":81}],16:[function(require,module,exports){
|
|
5086
3576
|
"use strict";
|
|
5087
3577
|
|
|
5088
3578
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -5110,7 +3600,7 @@ function isBase64(str) {
|
|
|
5110
3600
|
|
|
5111
3601
|
module.exports = exports.default;
|
|
5112
3602
|
module.exports.default = exports.default;
|
|
5113
|
-
},{"./util/assertString":
|
|
3603
|
+
},{"./util/assertString":81}],17:[function(require,module,exports){
|
|
5114
3604
|
"use strict";
|
|
5115
3605
|
|
|
5116
3606
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -5134,7 +3624,7 @@ function isBefore(str) {
|
|
|
5134
3624
|
|
|
5135
3625
|
module.exports = exports.default;
|
|
5136
3626
|
module.exports.default = exports.default;
|
|
5137
|
-
},{"./toDate":
|
|
3627
|
+
},{"./toDate":76,"./util/assertString":81}],18:[function(require,module,exports){
|
|
5138
3628
|
"use strict";
|
|
5139
3629
|
|
|
5140
3630
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -5153,7 +3643,7 @@ function isBoolean(str) {
|
|
|
5153
3643
|
|
|
5154
3644
|
module.exports = exports.default;
|
|
5155
3645
|
module.exports.default = exports.default;
|
|
5156
|
-
},{"./util/assertString":
|
|
3646
|
+
},{"./util/assertString":81}],19:[function(require,module,exports){
|
|
5157
3647
|
"use strict";
|
|
5158
3648
|
|
|
5159
3649
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -5188,7 +3678,7 @@ function isByteLength(str, options) {
|
|
|
5188
3678
|
|
|
5189
3679
|
module.exports = exports.default;
|
|
5190
3680
|
module.exports.default = exports.default;
|
|
5191
|
-
},{"./util/assertString":
|
|
3681
|
+
},{"./util/assertString":81}],20:[function(require,module,exports){
|
|
5192
3682
|
"use strict";
|
|
5193
3683
|
|
|
5194
3684
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -5241,7 +3731,7 @@ function isCreditCard(str) {
|
|
|
5241
3731
|
|
|
5242
3732
|
module.exports = exports.default;
|
|
5243
3733
|
module.exports.default = exports.default;
|
|
5244
|
-
},{"./util/assertString":
|
|
3734
|
+
},{"./util/assertString":81}],21:[function(require,module,exports){
|
|
5245
3735
|
"use strict";
|
|
5246
3736
|
|
|
5247
3737
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -5331,7 +3821,7 @@ function isCurrency(str, options) {
|
|
|
5331
3821
|
|
|
5332
3822
|
module.exports = exports.default;
|
|
5333
3823
|
module.exports.default = exports.default;
|
|
5334
|
-
},{"./util/assertString":
|
|
3824
|
+
},{"./util/assertString":81,"./util/merge":83}],22:[function(require,module,exports){
|
|
5335
3825
|
"use strict";
|
|
5336
3826
|
|
|
5337
3827
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -5386,7 +3876,7 @@ function isDataURI(str) {
|
|
|
5386
3876
|
|
|
5387
3877
|
module.exports = exports.default;
|
|
5388
3878
|
module.exports.default = exports.default;
|
|
5389
|
-
},{"./util/assertString":
|
|
3879
|
+
},{"./util/assertString":81}],23:[function(require,module,exports){
|
|
5390
3880
|
"use strict";
|
|
5391
3881
|
|
|
5392
3882
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -5429,7 +3919,7 @@ function isDecimal(str, options) {
|
|
|
5429
3919
|
|
|
5430
3920
|
module.exports = exports.default;
|
|
5431
3921
|
module.exports.default = exports.default;
|
|
5432
|
-
},{"./alpha":
|
|
3922
|
+
},{"./alpha":5,"./util/assertString":81,"./util/includes":82,"./util/merge":83}],24:[function(require,module,exports){
|
|
5433
3923
|
"use strict";
|
|
5434
3924
|
|
|
5435
3925
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -5450,7 +3940,7 @@ function isDivisibleBy(str, num) {
|
|
|
5450
3940
|
|
|
5451
3941
|
module.exports = exports.default;
|
|
5452
3942
|
module.exports.default = exports.default;
|
|
5453
|
-
},{"./toFloat":
|
|
3943
|
+
},{"./toFloat":77,"./util/assertString":81}],25:[function(require,module,exports){
|
|
5454
3944
|
"use strict";
|
|
5455
3945
|
|
|
5456
3946
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -5474,7 +3964,7 @@ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArra
|
|
|
5474
3964
|
|
|
5475
3965
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
5476
3966
|
|
|
5477
|
-
function _iterableToArrayLimit(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
3967
|
+
function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) { return; } var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
5478
3968
|
|
|
5479
3969
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
5480
3970
|
|
|
@@ -5648,7 +4138,7 @@ function isEmail(str, options) {
|
|
|
5648
4138
|
|
|
5649
4139
|
module.exports = exports.default;
|
|
5650
4140
|
module.exports.default = exports.default;
|
|
5651
|
-
},{"./isByteLength":
|
|
4141
|
+
},{"./isByteLength":19,"./isFQDN":27,"./isIP":34,"./util/assertString":81,"./util/merge":83}],26:[function(require,module,exports){
|
|
5652
4142
|
"use strict";
|
|
5653
4143
|
|
|
5654
4144
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -5674,7 +4164,7 @@ function isEmpty(str, options) {
|
|
|
5674
4164
|
|
|
5675
4165
|
module.exports = exports.default;
|
|
5676
4166
|
module.exports.default = exports.default;
|
|
5677
|
-
},{"./util/assertString":
|
|
4167
|
+
},{"./util/assertString":81,"./util/merge":83}],27:[function(require,module,exports){
|
|
5678
4168
|
"use strict";
|
|
5679
4169
|
|
|
5680
4170
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -5750,7 +4240,7 @@ function isFQDN(str, options) {
|
|
|
5750
4240
|
|
|
5751
4241
|
module.exports = exports.default;
|
|
5752
4242
|
module.exports.default = exports.default;
|
|
5753
|
-
},{"./util/assertString":
|
|
4243
|
+
},{"./util/assertString":81,"./util/merge":83}],28:[function(require,module,exports){
|
|
5754
4244
|
"use strict";
|
|
5755
4245
|
|
|
5756
4246
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -5780,7 +4270,7 @@ function isFloat(str, options) {
|
|
|
5780
4270
|
|
|
5781
4271
|
var locales = Object.keys(_alpha.decimal);
|
|
5782
4272
|
exports.locales = locales;
|
|
5783
|
-
},{"./alpha":
|
|
4273
|
+
},{"./alpha":5,"./util/assertString":81}],29:[function(require,module,exports){
|
|
5784
4274
|
"use strict";
|
|
5785
4275
|
|
|
5786
4276
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -5800,7 +4290,7 @@ function isFullWidth(str) {
|
|
|
5800
4290
|
(0, _assertString.default)(str);
|
|
5801
4291
|
return fullWidth.test(str);
|
|
5802
4292
|
}
|
|
5803
|
-
},{"./util/assertString":
|
|
4293
|
+
},{"./util/assertString":81}],30:[function(require,module,exports){
|
|
5804
4294
|
"use strict";
|
|
5805
4295
|
|
|
5806
4296
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -5820,7 +4310,7 @@ function isHalfWidth(str) {
|
|
|
5820
4310
|
(0, _assertString.default)(str);
|
|
5821
4311
|
return halfWidth.test(str);
|
|
5822
4312
|
}
|
|
5823
|
-
},{"./util/assertString":
|
|
4313
|
+
},{"./util/assertString":81}],31:[function(require,module,exports){
|
|
5824
4314
|
"use strict";
|
|
5825
4315
|
|
|
5826
4316
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -5850,13 +4340,13 @@ var lengths = {
|
|
|
5850
4340
|
|
|
5851
4341
|
function isHash(str, algorithm) {
|
|
5852
4342
|
(0, _assertString.default)(str);
|
|
5853
|
-
var hash = new RegExp("^[a-
|
|
4343
|
+
var hash = new RegExp("^[a-fA-F0-9]{".concat(lengths[algorithm], "}$"));
|
|
5854
4344
|
return hash.test(str);
|
|
5855
4345
|
}
|
|
5856
4346
|
|
|
5857
4347
|
module.exports = exports.default;
|
|
5858
4348
|
module.exports.default = exports.default;
|
|
5859
|
-
},{"./util/assertString":
|
|
4349
|
+
},{"./util/assertString":81}],32:[function(require,module,exports){
|
|
5860
4350
|
"use strict";
|
|
5861
4351
|
|
|
5862
4352
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -5868,7 +4358,7 @@ var _assertString = _interopRequireDefault(require("./util/assertString"));
|
|
|
5868
4358
|
|
|
5869
4359
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
5870
4360
|
|
|
5871
|
-
var hexcolor = /^#?([0-9A-F]{3}|[0-9A-F]{6})$/i;
|
|
4361
|
+
var hexcolor = /^#?([0-9A-F]{3}|[0-9A-F]{4}|[0-9A-F]{6}|[0-9A-F]{8})$/i;
|
|
5872
4362
|
|
|
5873
4363
|
function isHexColor(str) {
|
|
5874
4364
|
(0, _assertString.default)(str);
|
|
@@ -5877,7 +4367,7 @@ function isHexColor(str) {
|
|
|
5877
4367
|
|
|
5878
4368
|
module.exports = exports.default;
|
|
5879
4369
|
module.exports.default = exports.default;
|
|
5880
|
-
},{"./util/assertString":
|
|
4370
|
+
},{"./util/assertString":81}],33:[function(require,module,exports){
|
|
5881
4371
|
"use strict";
|
|
5882
4372
|
|
|
5883
4373
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -5889,7 +4379,7 @@ var _assertString = _interopRequireDefault(require("./util/assertString"));
|
|
|
5889
4379
|
|
|
5890
4380
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
5891
4381
|
|
|
5892
|
-
var hexadecimal = /^[0-9A-F]+$/i;
|
|
4382
|
+
var hexadecimal = /^(0x|0h)?[0-9A-F]+$/i;
|
|
5893
4383
|
|
|
5894
4384
|
function isHexadecimal(str) {
|
|
5895
4385
|
(0, _assertString.default)(str);
|
|
@@ -5898,7 +4388,7 @@ function isHexadecimal(str) {
|
|
|
5898
4388
|
|
|
5899
4389
|
module.exports = exports.default;
|
|
5900
4390
|
module.exports.default = exports.default;
|
|
5901
|
-
},{"./util/assertString":
|
|
4391
|
+
},{"./util/assertString":81}],34:[function(require,module,exports){
|
|
5902
4392
|
"use strict";
|
|
5903
4393
|
|
|
5904
4394
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -5910,6 +4400,35 @@ var _assertString = _interopRequireDefault(require("./util/assertString"));
|
|
|
5910
4400
|
|
|
5911
4401
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
5912
4402
|
|
|
4403
|
+
/**
|
|
4404
|
+
11.3. Examples
|
|
4405
|
+
|
|
4406
|
+
The following addresses
|
|
4407
|
+
|
|
4408
|
+
fe80::1234 (on the 1st link of the node)
|
|
4409
|
+
ff02::5678 (on the 5th link of the node)
|
|
4410
|
+
ff08::9abc (on the 10th organization of the node)
|
|
4411
|
+
|
|
4412
|
+
would be represented as follows:
|
|
4413
|
+
|
|
4414
|
+
fe80::1234%1
|
|
4415
|
+
ff02::5678%5
|
|
4416
|
+
ff08::9abc%10
|
|
4417
|
+
|
|
4418
|
+
(Here we assume a natural translation from a zone index to the
|
|
4419
|
+
<zone_id> part, where the Nth zone of any scope is translated into
|
|
4420
|
+
"N".)
|
|
4421
|
+
|
|
4422
|
+
If we use interface names as <zone_id>, those addresses could also be
|
|
4423
|
+
represented as follows:
|
|
4424
|
+
|
|
4425
|
+
fe80::1234%ne0
|
|
4426
|
+
ff02::5678%pvc1.3
|
|
4427
|
+
ff08::9abc%interface10
|
|
4428
|
+
|
|
4429
|
+
where the interface "ne0" belongs to the 1st link, "pvc1.3" belongs
|
|
4430
|
+
to the 5th link, and "interface10" belongs to the 10th organization.
|
|
4431
|
+
* * */
|
|
5913
4432
|
var ipv4Maybe = /^(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})$/;
|
|
5914
4433
|
var ipv6Block = /^[0-9A-F]{1,4}$/i;
|
|
5915
4434
|
|
|
@@ -5930,7 +4449,29 @@ function isIP(str) {
|
|
|
5930
4449
|
});
|
|
5931
4450
|
return parts[3] <= 255;
|
|
5932
4451
|
} else if (version === '6') {
|
|
5933
|
-
var
|
|
4452
|
+
var addressAndZone = [str]; // ipv6 addresses could have scoped architecture
|
|
4453
|
+
// according to https://tools.ietf.org/html/rfc4007#section-11
|
|
4454
|
+
|
|
4455
|
+
if (str.includes('%')) {
|
|
4456
|
+
addressAndZone = str.split('%');
|
|
4457
|
+
|
|
4458
|
+
if (addressAndZone.length !== 2) {
|
|
4459
|
+
// it must be just two parts
|
|
4460
|
+
return false;
|
|
4461
|
+
}
|
|
4462
|
+
|
|
4463
|
+
if (!addressAndZone[0].includes(':')) {
|
|
4464
|
+
// the first part must be the address
|
|
4465
|
+
return false;
|
|
4466
|
+
}
|
|
4467
|
+
|
|
4468
|
+
if (addressAndZone[1] === '') {
|
|
4469
|
+
// the second part must not be empty
|
|
4470
|
+
return false;
|
|
4471
|
+
}
|
|
4472
|
+
}
|
|
4473
|
+
|
|
4474
|
+
var blocks = addressAndZone[0].split(':');
|
|
5934
4475
|
var foundOmissionBlock = false; // marker to indicate ::
|
|
5935
4476
|
// At least some OS accept the last 32 bits of an IPv6 address
|
|
5936
4477
|
// (i.e. 2 of the blocks) in IPv4 notation, and RFC 3493 says
|
|
@@ -5985,7 +4526,7 @@ function isIP(str) {
|
|
|
5985
4526
|
|
|
5986
4527
|
module.exports = exports.default;
|
|
5987
4528
|
module.exports.default = exports.default;
|
|
5988
|
-
},{"./util/assertString":
|
|
4529
|
+
},{"./util/assertString":81}],35:[function(require,module,exports){
|
|
5989
4530
|
"use strict";
|
|
5990
4531
|
|
|
5991
4532
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -6023,7 +4564,7 @@ function isIPRange(str) {
|
|
|
6023
4564
|
|
|
6024
4565
|
module.exports = exports.default;
|
|
6025
4566
|
module.exports.default = exports.default;
|
|
6026
|
-
},{"./isIP":
|
|
4567
|
+
},{"./isIP":34,"./util/assertString":81}],36:[function(require,module,exports){
|
|
6027
4568
|
"use strict";
|
|
6028
4569
|
|
|
6029
4570
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -6089,7 +4630,7 @@ function isISBN(str) {
|
|
|
6089
4630
|
|
|
6090
4631
|
module.exports = exports.default;
|
|
6091
4632
|
module.exports.default = exports.default;
|
|
6092
|
-
},{"./util/assertString":
|
|
4633
|
+
},{"./util/assertString":81}],37:[function(require,module,exports){
|
|
6093
4634
|
"use strict";
|
|
6094
4635
|
|
|
6095
4636
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -6142,7 +4683,7 @@ function isISIN(str) {
|
|
|
6142
4683
|
|
|
6143
4684
|
module.exports = exports.default;
|
|
6144
4685
|
module.exports.default = exports.default;
|
|
6145
|
-
},{"./util/assertString":
|
|
4686
|
+
},{"./util/assertString":81}],38:[function(require,module,exports){
|
|
6146
4687
|
"use strict";
|
|
6147
4688
|
|
|
6148
4689
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -6166,7 +4707,7 @@ function isISO31661Alpha2(str) {
|
|
|
6166
4707
|
|
|
6167
4708
|
module.exports = exports.default;
|
|
6168
4709
|
module.exports.default = exports.default;
|
|
6169
|
-
},{"./util/assertString":
|
|
4710
|
+
},{"./util/assertString":81,"./util/includes":82}],39:[function(require,module,exports){
|
|
6170
4711
|
"use strict";
|
|
6171
4712
|
|
|
6172
4713
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -6190,7 +4731,7 @@ function isISO31661Alpha3(str) {
|
|
|
6190
4731
|
|
|
6191
4732
|
module.exports = exports.default;
|
|
6192
4733
|
module.exports.default = exports.default;
|
|
6193
|
-
},{"./util/assertString":
|
|
4734
|
+
},{"./util/assertString":81,"./util/includes":82}],40:[function(require,module,exports){
|
|
6194
4735
|
"use strict";
|
|
6195
4736
|
|
|
6196
4737
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -6248,7 +4789,7 @@ function isISO8601(str, options) {
|
|
|
6248
4789
|
|
|
6249
4790
|
module.exports = exports.default;
|
|
6250
4791
|
module.exports.default = exports.default;
|
|
6251
|
-
},{"./util/assertString":
|
|
4792
|
+
},{"./util/assertString":81}],41:[function(require,module,exports){
|
|
6252
4793
|
"use strict";
|
|
6253
4794
|
|
|
6254
4795
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -6270,7 +4811,7 @@ function isISRC(str) {
|
|
|
6270
4811
|
|
|
6271
4812
|
module.exports = exports.default;
|
|
6272
4813
|
module.exports.default = exports.default;
|
|
6273
|
-
},{"./util/assertString":
|
|
4814
|
+
},{"./util/assertString":81}],42:[function(require,module,exports){
|
|
6274
4815
|
"use strict";
|
|
6275
4816
|
|
|
6276
4817
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -6308,7 +4849,7 @@ function isISSN(str) {
|
|
|
6308
4849
|
|
|
6309
4850
|
module.exports = exports.default;
|
|
6310
4851
|
module.exports.default = exports.default;
|
|
6311
|
-
},{"./util/assertString":
|
|
4852
|
+
},{"./util/assertString":81}],43:[function(require,module,exports){
|
|
6312
4853
|
"use strict";
|
|
6313
4854
|
|
|
6314
4855
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -6436,7 +4977,7 @@ function isIdentityCard(str, locale) {
|
|
|
6436
4977
|
|
|
6437
4978
|
module.exports = exports.default;
|
|
6438
4979
|
module.exports.default = exports.default;
|
|
6439
|
-
},{"./util/assertString":
|
|
4980
|
+
},{"./util/assertString":81}],44:[function(require,module,exports){
|
|
6440
4981
|
"use strict";
|
|
6441
4982
|
|
|
6442
4983
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -6479,7 +5020,7 @@ function isIn(str, options) {
|
|
|
6479
5020
|
|
|
6480
5021
|
module.exports = exports.default;
|
|
6481
5022
|
module.exports.default = exports.default;
|
|
6482
|
-
},{"./util/assertString":
|
|
5023
|
+
},{"./util/assertString":81,"./util/toString":84}],45:[function(require,module,exports){
|
|
6483
5024
|
"use strict";
|
|
6484
5025
|
|
|
6485
5026
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -6510,7 +5051,7 @@ function isInt(str, options) {
|
|
|
6510
5051
|
|
|
6511
5052
|
module.exports = exports.default;
|
|
6512
5053
|
module.exports.default = exports.default;
|
|
6513
|
-
},{"./util/assertString":
|
|
5054
|
+
},{"./util/assertString":81}],46:[function(require,module,exports){
|
|
6514
5055
|
"use strict";
|
|
6515
5056
|
|
|
6516
5057
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -6539,7 +5080,7 @@ function isJSON(str) {
|
|
|
6539
5080
|
|
|
6540
5081
|
module.exports = exports.default;
|
|
6541
5082
|
module.exports.default = exports.default;
|
|
6542
|
-
},{"./util/assertString":
|
|
5083
|
+
},{"./util/assertString":81}],47:[function(require,module,exports){
|
|
6543
5084
|
"use strict";
|
|
6544
5085
|
|
|
6545
5086
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -6560,7 +5101,7 @@ function isJWT(str) {
|
|
|
6560
5101
|
|
|
6561
5102
|
module.exports = exports.default;
|
|
6562
5103
|
module.exports.default = exports.default;
|
|
6563
|
-
},{"./util/assertString":
|
|
5104
|
+
},{"./util/assertString":81}],48:[function(require,module,exports){
|
|
6564
5105
|
"use strict";
|
|
6565
5106
|
|
|
6566
5107
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -6579,12 +5120,13 @@ function _default(str) {
|
|
|
6579
5120
|
(0, _assertString.default)(str);
|
|
6580
5121
|
if (!str.includes(',')) return false;
|
|
6581
5122
|
var pair = str.split(',');
|
|
5123
|
+
if (pair[0].startsWith('(') && !pair[1].endsWith(')') || pair[1].endsWith(')') && !pair[0].startsWith('(')) return false;
|
|
6582
5124
|
return lat.test(pair[0]) && long.test(pair[1]);
|
|
6583
5125
|
}
|
|
6584
5126
|
|
|
6585
5127
|
module.exports = exports.default;
|
|
6586
5128
|
module.exports.default = exports.default;
|
|
6587
|
-
},{"./util/assertString":
|
|
5129
|
+
},{"./util/assertString":81}],49:[function(require,module,exports){
|
|
6588
5130
|
"use strict";
|
|
6589
5131
|
|
|
6590
5132
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -6609,7 +5151,7 @@ function isLength(str, options) {
|
|
|
6609
5151
|
max = options.max;
|
|
6610
5152
|
} else {
|
|
6611
5153
|
// backwards compatibility: isLength(str, min [, max])
|
|
6612
|
-
min = arguments[1];
|
|
5154
|
+
min = arguments[1] || 0;
|
|
6613
5155
|
max = arguments[2];
|
|
6614
5156
|
}
|
|
6615
5157
|
|
|
@@ -6620,7 +5162,7 @@ function isLength(str, options) {
|
|
|
6620
5162
|
|
|
6621
5163
|
module.exports = exports.default;
|
|
6622
5164
|
module.exports.default = exports.default;
|
|
6623
|
-
},{"./util/assertString":
|
|
5165
|
+
},{"./util/assertString":81}],50:[function(require,module,exports){
|
|
6624
5166
|
"use strict";
|
|
6625
5167
|
|
|
6626
5168
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -6639,7 +5181,7 @@ function isLowercase(str) {
|
|
|
6639
5181
|
|
|
6640
5182
|
module.exports = exports.default;
|
|
6641
5183
|
module.exports.default = exports.default;
|
|
6642
|
-
},{"./util/assertString":
|
|
5184
|
+
},{"./util/assertString":81}],51:[function(require,module,exports){
|
|
6643
5185
|
"use strict";
|
|
6644
5186
|
|
|
6645
5187
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -6653,6 +5195,8 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
6653
5195
|
|
|
6654
5196
|
var macAddress = /^([0-9a-fA-F][0-9a-fA-F]:){5}([0-9a-fA-F][0-9a-fA-F])$/;
|
|
6655
5197
|
var macAddressNoColons = /^([0-9a-fA-F]){12}$/;
|
|
5198
|
+
var macAddressWithHyphen = /^([0-9a-fA-F][0-9a-fA-F]-){5}([0-9a-fA-F][0-9a-fA-F])$/;
|
|
5199
|
+
var macAddressWithSpaces = /^([0-9a-fA-F][0-9a-fA-F]\s){5}([0-9a-fA-F][0-9a-fA-F])$/;
|
|
6656
5200
|
|
|
6657
5201
|
function isMACAddress(str, options) {
|
|
6658
5202
|
(0, _assertString.default)(str);
|
|
@@ -6661,12 +5205,12 @@ function isMACAddress(str, options) {
|
|
|
6661
5205
|
return macAddressNoColons.test(str);
|
|
6662
5206
|
}
|
|
6663
5207
|
|
|
6664
|
-
return macAddress.test(str);
|
|
5208
|
+
return macAddress.test(str) || macAddressWithHyphen.test(str) || macAddressWithSpaces.test(str);
|
|
6665
5209
|
}
|
|
6666
5210
|
|
|
6667
5211
|
module.exports = exports.default;
|
|
6668
5212
|
module.exports.default = exports.default;
|
|
6669
|
-
},{"./util/assertString":
|
|
5213
|
+
},{"./util/assertString":81}],52:[function(require,module,exports){
|
|
6670
5214
|
"use strict";
|
|
6671
5215
|
|
|
6672
5216
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -6687,7 +5231,7 @@ function isMD5(str) {
|
|
|
6687
5231
|
|
|
6688
5232
|
module.exports = exports.default;
|
|
6689
5233
|
module.exports.default = exports.default;
|
|
6690
|
-
},{"./util/assertString":
|
|
5234
|
+
},{"./util/assertString":81}],53:[function(require,module,exports){
|
|
6691
5235
|
"use strict";
|
|
6692
5236
|
|
|
6693
5237
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -6708,7 +5252,7 @@ function isMagnetURI(url) {
|
|
|
6708
5252
|
|
|
6709
5253
|
module.exports = exports.default;
|
|
6710
5254
|
module.exports.default = exports.default;
|
|
6711
|
-
},{"./util/assertString":
|
|
5255
|
+
},{"./util/assertString":81}],54:[function(require,module,exports){
|
|
6712
5256
|
"use strict";
|
|
6713
5257
|
|
|
6714
5258
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -6760,7 +5304,7 @@ function isMimeType(str) {
|
|
|
6760
5304
|
|
|
6761
5305
|
module.exports = exports.default;
|
|
6762
5306
|
module.exports.default = exports.default;
|
|
6763
|
-
},{"./util/assertString":
|
|
5307
|
+
},{"./util/assertString":81}],55:[function(require,module,exports){
|
|
6764
5308
|
"use strict";
|
|
6765
5309
|
|
|
6766
5310
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -6775,6 +5319,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
6775
5319
|
|
|
6776
5320
|
/* eslint-disable max-len */
|
|
6777
5321
|
var phones = {
|
|
5322
|
+
'am-AM': /^(\+?374|0)((10|[9|7][0-9])\d{6}$|[2-4]\d{7}$)/,
|
|
6778
5323
|
'ar-AE': /^((\+?971)|0)?5[024568]\d{7}$/,
|
|
6779
5324
|
'ar-BH': /^(\+?973)?(3|6)\d{7}$/,
|
|
6780
5325
|
'ar-DZ': /^(\+?213|0)(5|6|7)\d{8}$/,
|
|
@@ -6787,15 +5332,18 @@ var phones = {
|
|
|
6787
5332
|
'ar-TN': /^(\+?216)?[2459]\d{7}$/,
|
|
6788
5333
|
'be-BY': /^(\+?375)?(24|25|29|33|44)\d{7}$/,
|
|
6789
5334
|
'bg-BG': /^(\+?359|0)?8[789]\d{7}$/,
|
|
6790
|
-
'bn-BD': /^(\+?880|0)1[
|
|
5335
|
+
'bn-BD': /^(\+?880|0)1[13456789][0-9]{8}$/,
|
|
6791
5336
|
'cs-CZ': /^(\+?420)? ?[1-9][0-9]{2} ?[0-9]{3} ?[0-9]{3}$/,
|
|
6792
5337
|
'da-DK': /^(\+?45)?\s?\d{2}\s?\d{2}\s?\d{2}\s?\d{2}$/,
|
|
6793
5338
|
'de-DE': /^(\+49)?0?1(5[0-25-9]\d|6([23]|0\d?)|7([0-57-9]|6\d))\d{7}$/,
|
|
5339
|
+
'de-AT': /^(\+43|0)\d{1,4}\d{3,12}$/,
|
|
6794
5340
|
'el-GR': /^(\+?30|0)?(69\d{8})$/,
|
|
6795
5341
|
'en-AU': /^(\+?61|0)4\d{8}$/,
|
|
6796
5342
|
'en-GB': /^(\+?44|0)7\d{9}$/,
|
|
5343
|
+
'en-GG': /^(\+?44|0)1481\d{6}$/,
|
|
6797
5344
|
'en-GH': /^(\+233|0)(20|50|24|54|27|57|26|56|23|28)\d{7}$/,
|
|
6798
|
-
'en-HK': /^(\+?852
|
|
5345
|
+
'en-HK': /^(\+?852[-\s]?)?[456789]\d{3}[-\s]?\d{4}$/,
|
|
5346
|
+
'en-MO': /^(\+?853[-\s]?)?[6]\d{3}[-\s]?\d{4}$/,
|
|
6799
5347
|
'en-IE': /^(\+?353|0)8[356789]\d{7}$/,
|
|
6800
5348
|
'en-IN': /^(\+?91|0)?[6789]\d{9}$/,
|
|
6801
5349
|
'en-KE': /^(\+?254|0)(7|1)\d{8}$/,
|
|
@@ -6812,8 +5360,10 @@ var phones = {
|
|
|
6812
5360
|
'en-ZA': /^(\+?27|0)\d{9}$/,
|
|
6813
5361
|
'en-ZM': /^(\+?26)?09[567]\d{7}$/,
|
|
6814
5362
|
'es-CL': /^(\+?56|0)[2-9]\d{1}\d{7}$/,
|
|
5363
|
+
'es-EC': /^(\+?593|0)([2-7]|9[2-9])\d{7}$/,
|
|
6815
5364
|
'es-ES': /^(\+?34)?(6\d{1}|7[1234])\d{7}$/,
|
|
6816
5365
|
'es-MX': /^(\+?52)?(1|01)?\d{10,11}$/,
|
|
5366
|
+
'es-PA': /^(\+?507)\d{7,8}$/,
|
|
6817
5367
|
'es-PY': /^(\+?595|0)9[9876]\d{7}$/,
|
|
6818
5368
|
'es-UY': /^(\+598|0)9[1-9][\d]{6}$/,
|
|
6819
5369
|
'et-EE': /^(\+?372)?\s?(5|8[1-4])\s?([0-9]\s?){6,7}$/,
|
|
@@ -6822,17 +5372,22 @@ var phones = {
|
|
|
6822
5372
|
'fj-FJ': /^(\+?679)?\s?\d{3}\s?\d{4}$/,
|
|
6823
5373
|
'fo-FO': /^(\+?298)?\s?\d{2}\s?\d{2}\s?\d{2}$/,
|
|
6824
5374
|
'fr-FR': /^(\+?33|0)[67]\d{8}$/,
|
|
5375
|
+
'fr-GF': /^(\+?594|0|00594)[67]\d{8}$/,
|
|
5376
|
+
'fr-GP': /^(\+?590|0|00590)[67]\d{8}$/,
|
|
5377
|
+
'fr-MQ': /^(\+?596|0|00596)[67]\d{8}$/,
|
|
5378
|
+
'fr-RE': /^(\+?262|0|00262)[67]\d{8}$/,
|
|
6825
5379
|
'he-IL': /^(\+972|0)([23489]|5[012345689]|77)[1-9]\d{6}$/,
|
|
6826
5380
|
'hu-HU': /^(\+?36)(20|30|70)\d{7}$/,
|
|
6827
5381
|
'id-ID': /^(\+?62|0)8(1[123456789]|2[1238]|3[1238]|5[12356789]|7[78]|9[56789]|8[123456789])([\s?|\d]{5,11})$/,
|
|
6828
5382
|
'it-IT': /^(\+?39)?\s?3\d{2} ?\d{6,7}$/,
|
|
6829
|
-
'ja-JP': /^(
|
|
5383
|
+
'ja-JP': /^(\+81[ \-]?(\(0\))?|0)[6789]0[ \-]?\d{4}[ \-]?\d{4}$/,
|
|
6830
5384
|
'kk-KZ': /^(\+?7|8)?7\d{9}$/,
|
|
6831
5385
|
'kl-GL': /^(\+?299)?\s?\d{2}\s?\d{2}\s?\d{2}$/,
|
|
6832
5386
|
'ko-KR': /^((\+?82)[ \-]?)?0?1([0|1|6|7|8|9]{1})[ \-]?\d{3,4}[ \-]?\d{4}$/,
|
|
6833
5387
|
'lt-LT': /^(\+370|8)\d{8}$/,
|
|
6834
5388
|
'ms-MY': /^(\+?6?01){1}(([0145]{1}(\-|\s)?\d{7,8})|([236789]{1}(\s|\-)?\d{7}))$/,
|
|
6835
5389
|
'nb-NO': /^(\+?47)?[49]\d{7}$/,
|
|
5390
|
+
'ne-NP': /^(\+?977)?9[78]\d{8}$/,
|
|
6836
5391
|
'nl-BE': /^(\+?32|0)4?\d{8}$/,
|
|
6837
5392
|
'nl-NL': /^(\+?31|0)6?\d{8}$/,
|
|
6838
5393
|
'nn-NO': /^(\+?47)?[49]\d{7}$/,
|
|
@@ -6849,7 +5404,7 @@ var phones = {
|
|
|
6849
5404
|
'tr-TR': /^(\+?90|0)?5\d{9}$/,
|
|
6850
5405
|
'uk-UA': /^(\+?38|8)?0\d{9}$/,
|
|
6851
5406
|
'vi-VN': /^(\+?84|0)((3([2-9]))|(5([2689]))|(7([0|6-9]))|(8([1-6|89]))|(9([0-9])))([0-9]{7})$/,
|
|
6852
|
-
'zh-CN': /^((\+|00)86)?1([358][0-9]|4[579]|6[67]|7[
|
|
5407
|
+
'zh-CN': /^((\+|00)86)?1([358][0-9]|4[579]|6[67]|7[01235678]|9[189])[0-9]{8}$/,
|
|
6853
5408
|
'zh-TW': /^(\+?886\-?|0)?9\d{8}$/
|
|
6854
5409
|
};
|
|
6855
5410
|
/* eslint-enable max-len */
|
|
@@ -6858,6 +5413,7 @@ var phones = {
|
|
|
6858
5413
|
phones['en-CA'] = phones['en-US'];
|
|
6859
5414
|
phones['fr-BE'] = phones['nl-BE'];
|
|
6860
5415
|
phones['zh-HK'] = phones['en-HK'];
|
|
5416
|
+
phones['zh-MO'] = phones['en-MO'];
|
|
6861
5417
|
|
|
6862
5418
|
function isMobilePhone(str, locale, options) {
|
|
6863
5419
|
(0, _assertString.default)(str);
|
|
@@ -6902,7 +5458,7 @@ function isMobilePhone(str, locale, options) {
|
|
|
6902
5458
|
|
|
6903
5459
|
var locales = Object.keys(phones);
|
|
6904
5460
|
exports.locales = locales;
|
|
6905
|
-
},{"./util/assertString":
|
|
5461
|
+
},{"./util/assertString":81}],56:[function(require,module,exports){
|
|
6906
5462
|
"use strict";
|
|
6907
5463
|
|
|
6908
5464
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -6923,7 +5479,7 @@ function isMongoId(str) {
|
|
|
6923
5479
|
|
|
6924
5480
|
module.exports = exports.default;
|
|
6925
5481
|
module.exports.default = exports.default;
|
|
6926
|
-
},{"./isHexadecimal":
|
|
5482
|
+
},{"./isHexadecimal":33,"./util/assertString":81}],57:[function(require,module,exports){
|
|
6927
5483
|
"use strict";
|
|
6928
5484
|
|
|
6929
5485
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -6946,7 +5502,7 @@ function isMultibyte(str) {
|
|
|
6946
5502
|
|
|
6947
5503
|
module.exports = exports.default;
|
|
6948
5504
|
module.exports.default = exports.default;
|
|
6949
|
-
},{"./util/assertString":
|
|
5505
|
+
},{"./util/assertString":81}],58:[function(require,module,exports){
|
|
6950
5506
|
"use strict";
|
|
6951
5507
|
|
|
6952
5508
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -6973,7 +5529,28 @@ function isNumeric(str, options) {
|
|
|
6973
5529
|
|
|
6974
5530
|
module.exports = exports.default;
|
|
6975
5531
|
module.exports.default = exports.default;
|
|
6976
|
-
},{"./util/assertString":
|
|
5532
|
+
},{"./util/assertString":81}],59:[function(require,module,exports){
|
|
5533
|
+
"use strict";
|
|
5534
|
+
|
|
5535
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5536
|
+
value: true
|
|
5537
|
+
});
|
|
5538
|
+
exports.default = isOctal;
|
|
5539
|
+
|
|
5540
|
+
var _assertString = _interopRequireDefault(require("./util/assertString"));
|
|
5541
|
+
|
|
5542
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
5543
|
+
|
|
5544
|
+
var octal = /^(0o)?[0-7]+$/i;
|
|
5545
|
+
|
|
5546
|
+
function isOctal(str) {
|
|
5547
|
+
(0, _assertString.default)(str);
|
|
5548
|
+
return octal.test(str);
|
|
5549
|
+
}
|
|
5550
|
+
|
|
5551
|
+
module.exports = exports.default;
|
|
5552
|
+
module.exports.default = exports.default;
|
|
5553
|
+
},{"./util/assertString":81}],60:[function(require,module,exports){
|
|
6977
5554
|
"use strict";
|
|
6978
5555
|
|
|
6979
5556
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -6994,7 +5571,7 @@ function isPort(str) {
|
|
|
6994
5571
|
|
|
6995
5572
|
module.exports = exports.default;
|
|
6996
5573
|
module.exports.default = exports.default;
|
|
6997
|
-
},{"./isInt":
|
|
5574
|
+
},{"./isInt":45}],61:[function(require,module,exports){
|
|
6998
5575
|
"use strict";
|
|
6999
5576
|
|
|
7000
5577
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -7034,8 +5611,9 @@ var patterns = {
|
|
|
7034
5611
|
HR: /^([1-5]\d{4}$)/,
|
|
7035
5612
|
HU: fourDigit,
|
|
7036
5613
|
ID: fiveDigit,
|
|
5614
|
+
IE: /^(?!.*(?:o))[A-z]\d[\dw]\s\w{4}$/i,
|
|
7037
5615
|
IL: fiveDigit,
|
|
7038
|
-
IN:
|
|
5616
|
+
IN: /^((?!10|29|35|54|55|65|66|86|87|88|89)[1-9][0-9]{5})$/,
|
|
7039
5617
|
IS: threeDigit,
|
|
7040
5618
|
IT: fiveDigit,
|
|
7041
5619
|
JP: /^\d{3}\-\d{4}$/,
|
|
@@ -7055,7 +5633,7 @@ var patterns = {
|
|
|
7055
5633
|
RO: sixDigit,
|
|
7056
5634
|
RU: sixDigit,
|
|
7057
5635
|
SA: fiveDigit,
|
|
7058
|
-
SE:
|
|
5636
|
+
SE: /^[1-9]\d{2}\s?\d{2}$/,
|
|
7059
5637
|
SI: fourDigit,
|
|
7060
5638
|
SK: /^\d{3}\s?\d{2}$/,
|
|
7061
5639
|
TN: fourDigit,
|
|
@@ -7091,7 +5669,7 @@ function _default(str, locale) {
|
|
|
7091
5669
|
|
|
7092
5670
|
throw new Error("Invalid locale '".concat(locale, "'"));
|
|
7093
5671
|
}
|
|
7094
|
-
},{"./util/assertString":
|
|
5672
|
+
},{"./util/assertString":81}],62:[function(require,module,exports){
|
|
7095
5673
|
"use strict";
|
|
7096
5674
|
|
|
7097
5675
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -7125,7 +5703,28 @@ function isRFC3339(str) {
|
|
|
7125
5703
|
|
|
7126
5704
|
module.exports = exports.default;
|
|
7127
5705
|
module.exports.default = exports.default;
|
|
7128
|
-
},{"./util/assertString":
|
|
5706
|
+
},{"./util/assertString":81}],63:[function(require,module,exports){
|
|
5707
|
+
"use strict";
|
|
5708
|
+
|
|
5709
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5710
|
+
value: true
|
|
5711
|
+
});
|
|
5712
|
+
exports.default = isSlug;
|
|
5713
|
+
|
|
5714
|
+
var _assertString = _interopRequireDefault(require("./util/assertString"));
|
|
5715
|
+
|
|
5716
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
5717
|
+
|
|
5718
|
+
var charsetRegex = /^[^-_](?!.*?[-_]{2,})([a-z0-9\\-]{1,}).*[^-_]$/;
|
|
5719
|
+
|
|
5720
|
+
function isSlug(str) {
|
|
5721
|
+
(0, _assertString.default)(str);
|
|
5722
|
+
return charsetRegex.test(str);
|
|
5723
|
+
}
|
|
5724
|
+
|
|
5725
|
+
module.exports = exports.default;
|
|
5726
|
+
module.exports.default = exports.default;
|
|
5727
|
+
},{"./util/assertString":81}],64:[function(require,module,exports){
|
|
7129
5728
|
"use strict";
|
|
7130
5729
|
|
|
7131
5730
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -7146,7 +5745,7 @@ function isSurrogatePair(str) {
|
|
|
7146
5745
|
|
|
7147
5746
|
module.exports = exports.default;
|
|
7148
5747
|
module.exports.default = exports.default;
|
|
7149
|
-
},{"./util/assertString":
|
|
5748
|
+
},{"./util/assertString":81}],65:[function(require,module,exports){
|
|
7150
5749
|
"use strict";
|
|
7151
5750
|
|
|
7152
5751
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -7164,6 +5763,16 @@ var _merge = _interopRequireDefault(require("./util/merge"));
|
|
|
7164
5763
|
|
|
7165
5764
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
7166
5765
|
|
|
5766
|
+
/*
|
|
5767
|
+
options for isURL method
|
|
5768
|
+
|
|
5769
|
+
require_protocol - if set as true isURL will return false if protocol is not present in the URL
|
|
5770
|
+
require_valid_protocol - isURL will check if the URL's protocol is present in the protocols option
|
|
5771
|
+
protocols - valid protocols can be modified with this option
|
|
5772
|
+
require_host - if set as false isURL will not check if host is present in the URL
|
|
5773
|
+
allow_protocol_relative_urls - if set as true protocol relative URLs will be allowed
|
|
5774
|
+
|
|
5775
|
+
*/
|
|
7167
5776
|
var default_url_options = {
|
|
7168
5777
|
protocols: ['http', 'https', 'ftp'],
|
|
7169
5778
|
require_tld: true,
|
|
@@ -7299,7 +5908,7 @@ function isURL(url, options) {
|
|
|
7299
5908
|
|
|
7300
5909
|
module.exports = exports.default;
|
|
7301
5910
|
module.exports.default = exports.default;
|
|
7302
|
-
},{"./isFQDN":
|
|
5911
|
+
},{"./isFQDN":27,"./isIP":34,"./util/assertString":81,"./util/merge":83}],66:[function(require,module,exports){
|
|
7303
5912
|
"use strict";
|
|
7304
5913
|
|
|
7305
5914
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -7327,7 +5936,7 @@ function isUUID(str) {
|
|
|
7327
5936
|
|
|
7328
5937
|
module.exports = exports.default;
|
|
7329
5938
|
module.exports.default = exports.default;
|
|
7330
|
-
},{"./util/assertString":
|
|
5939
|
+
},{"./util/assertString":81}],67:[function(require,module,exports){
|
|
7331
5940
|
"use strict";
|
|
7332
5941
|
|
|
7333
5942
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -7346,7 +5955,7 @@ function isUppercase(str) {
|
|
|
7346
5955
|
|
|
7347
5956
|
module.exports = exports.default;
|
|
7348
5957
|
module.exports.default = exports.default;
|
|
7349
|
-
},{"./util/assertString":
|
|
5958
|
+
},{"./util/assertString":81}],68:[function(require,module,exports){
|
|
7350
5959
|
"use strict";
|
|
7351
5960
|
|
|
7352
5961
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -7369,7 +5978,7 @@ function isVariableWidth(str) {
|
|
|
7369
5978
|
|
|
7370
5979
|
module.exports = exports.default;
|
|
7371
5980
|
module.exports.default = exports.default;
|
|
7372
|
-
},{"./isFullWidth":
|
|
5981
|
+
},{"./isFullWidth":29,"./isHalfWidth":30,"./util/assertString":81}],69:[function(require,module,exports){
|
|
7373
5982
|
"use strict";
|
|
7374
5983
|
|
|
7375
5984
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -7395,7 +6004,7 @@ function isWhitelisted(str, chars) {
|
|
|
7395
6004
|
|
|
7396
6005
|
module.exports = exports.default;
|
|
7397
6006
|
module.exports.default = exports.default;
|
|
7398
|
-
},{"./util/assertString":
|
|
6007
|
+
},{"./util/assertString":81}],70:[function(require,module,exports){
|
|
7399
6008
|
"use strict";
|
|
7400
6009
|
|
|
7401
6010
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -7416,7 +6025,7 @@ function ltrim(str, chars) {
|
|
|
7416
6025
|
|
|
7417
6026
|
module.exports = exports.default;
|
|
7418
6027
|
module.exports.default = exports.default;
|
|
7419
|
-
},{"./util/assertString":
|
|
6028
|
+
},{"./util/assertString":81}],71:[function(require,module,exports){
|
|
7420
6029
|
"use strict";
|
|
7421
6030
|
|
|
7422
6031
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -7440,7 +6049,7 @@ function matches(str, pattern, modifiers) {
|
|
|
7440
6049
|
|
|
7441
6050
|
module.exports = exports.default;
|
|
7442
6051
|
module.exports.default = exports.default;
|
|
7443
|
-
},{"./util/assertString":
|
|
6052
|
+
},{"./util/assertString":81}],72:[function(require,module,exports){
|
|
7444
6053
|
"use strict";
|
|
7445
6054
|
|
|
7446
6055
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -7592,7 +6201,7 @@ function normalizeEmail(email, options) {
|
|
|
7592
6201
|
|
|
7593
6202
|
module.exports = exports.default;
|
|
7594
6203
|
module.exports.default = exports.default;
|
|
7595
|
-
},{"./util/merge":
|
|
6204
|
+
},{"./util/merge":83}],73:[function(require,module,exports){
|
|
7596
6205
|
"use strict";
|
|
7597
6206
|
|
|
7598
6207
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -7613,7 +6222,7 @@ function rtrim(str, chars) {
|
|
|
7613
6222
|
|
|
7614
6223
|
module.exports = exports.default;
|
|
7615
6224
|
module.exports.default = exports.default;
|
|
7616
|
-
},{"./util/assertString":
|
|
6225
|
+
},{"./util/assertString":81}],74:[function(require,module,exports){
|
|
7617
6226
|
"use strict";
|
|
7618
6227
|
|
|
7619
6228
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -7635,7 +6244,7 @@ function stripLow(str, keep_new_lines) {
|
|
|
7635
6244
|
|
|
7636
6245
|
module.exports = exports.default;
|
|
7637
6246
|
module.exports.default = exports.default;
|
|
7638
|
-
},{"./blacklist":
|
|
6247
|
+
},{"./blacklist":6,"./util/assertString":81}],75:[function(require,module,exports){
|
|
7639
6248
|
"use strict";
|
|
7640
6249
|
|
|
7641
6250
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -7659,7 +6268,7 @@ function toBoolean(str, strict) {
|
|
|
7659
6268
|
|
|
7660
6269
|
module.exports = exports.default;
|
|
7661
6270
|
module.exports.default = exports.default;
|
|
7662
|
-
},{"./util/assertString":
|
|
6271
|
+
},{"./util/assertString":81}],76:[function(require,module,exports){
|
|
7663
6272
|
"use strict";
|
|
7664
6273
|
|
|
7665
6274
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -7679,7 +6288,7 @@ function toDate(date) {
|
|
|
7679
6288
|
|
|
7680
6289
|
module.exports = exports.default;
|
|
7681
6290
|
module.exports.default = exports.default;
|
|
7682
|
-
},{"./util/assertString":
|
|
6291
|
+
},{"./util/assertString":81}],77:[function(require,module,exports){
|
|
7683
6292
|
"use strict";
|
|
7684
6293
|
|
|
7685
6294
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -7687,18 +6296,18 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7687
6296
|
});
|
|
7688
6297
|
exports.default = toFloat;
|
|
7689
6298
|
|
|
7690
|
-
var
|
|
6299
|
+
var _isFloat = _interopRequireDefault(require("./isFloat"));
|
|
7691
6300
|
|
|
7692
6301
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
7693
6302
|
|
|
7694
6303
|
function toFloat(str) {
|
|
7695
|
-
(0,
|
|
6304
|
+
if (!(0, _isFloat.default)(str)) return NaN;
|
|
7696
6305
|
return parseFloat(str);
|
|
7697
6306
|
}
|
|
7698
6307
|
|
|
7699
6308
|
module.exports = exports.default;
|
|
7700
6309
|
module.exports.default = exports.default;
|
|
7701
|
-
},{"./
|
|
6310
|
+
},{"./isFloat":28}],78:[function(require,module,exports){
|
|
7702
6311
|
"use strict";
|
|
7703
6312
|
|
|
7704
6313
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -7717,7 +6326,7 @@ function toInt(str, radix) {
|
|
|
7717
6326
|
|
|
7718
6327
|
module.exports = exports.default;
|
|
7719
6328
|
module.exports.default = exports.default;
|
|
7720
|
-
},{"./util/assertString":
|
|
6329
|
+
},{"./util/assertString":81}],79:[function(require,module,exports){
|
|
7721
6330
|
"use strict";
|
|
7722
6331
|
|
|
7723
6332
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -7737,7 +6346,7 @@ function trim(str, chars) {
|
|
|
7737
6346
|
|
|
7738
6347
|
module.exports = exports.default;
|
|
7739
6348
|
module.exports.default = exports.default;
|
|
7740
|
-
},{"./ltrim":
|
|
6349
|
+
},{"./ltrim":70,"./rtrim":73}],80:[function(require,module,exports){
|
|
7741
6350
|
"use strict";
|
|
7742
6351
|
|
|
7743
6352
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -7756,7 +6365,7 @@ function unescape(str) {
|
|
|
7756
6365
|
|
|
7757
6366
|
module.exports = exports.default;
|
|
7758
6367
|
module.exports.default = exports.default;
|
|
7759
|
-
},{"./util/assertString":
|
|
6368
|
+
},{"./util/assertString":81}],81:[function(require,module,exports){
|
|
7760
6369
|
"use strict";
|
|
7761
6370
|
|
|
7762
6371
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -7790,7 +6399,7 @@ function assertString(input) {
|
|
|
7790
6399
|
|
|
7791
6400
|
module.exports = exports.default;
|
|
7792
6401
|
module.exports.default = exports.default;
|
|
7793
|
-
},{}],
|
|
6402
|
+
},{}],82:[function(require,module,exports){
|
|
7794
6403
|
"use strict";
|
|
7795
6404
|
|
|
7796
6405
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -7808,7 +6417,7 @@ var _default = includes;
|
|
|
7808
6417
|
exports.default = _default;
|
|
7809
6418
|
module.exports = exports.default;
|
|
7810
6419
|
module.exports.default = exports.default;
|
|
7811
|
-
},{}],
|
|
6420
|
+
},{}],83:[function(require,module,exports){
|
|
7812
6421
|
"use strict";
|
|
7813
6422
|
|
|
7814
6423
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -7831,7 +6440,7 @@ function merge() {
|
|
|
7831
6440
|
|
|
7832
6441
|
module.exports = exports.default;
|
|
7833
6442
|
module.exports.default = exports.default;
|
|
7834
|
-
},{}],
|
|
6443
|
+
},{}],84:[function(require,module,exports){
|
|
7835
6444
|
"use strict";
|
|
7836
6445
|
|
|
7837
6446
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -7857,7 +6466,7 @@ function toString(input) {
|
|
|
7857
6466
|
|
|
7858
6467
|
module.exports = exports.default;
|
|
7859
6468
|
module.exports.default = exports.default;
|
|
7860
|
-
},{}],
|
|
6469
|
+
},{}],85:[function(require,module,exports){
|
|
7861
6470
|
"use strict";
|
|
7862
6471
|
|
|
7863
6472
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -7876,7 +6485,7 @@ function whitelist(str, chars) {
|
|
|
7876
6485
|
|
|
7877
6486
|
module.exports = exports.default;
|
|
7878
6487
|
module.exports.default = exports.default;
|
|
7879
|
-
},{"./util/assertString":
|
|
6488
|
+
},{"./util/assertString":81}],86:[function(require,module,exports){
|
|
7880
6489
|
"use strict";
|
|
7881
6490
|
|
|
7882
6491
|
module.exports = {
|
|
@@ -7938,7 +6547,7 @@ module.exports = {
|
|
|
7938
6547
|
|
|
7939
6548
|
};
|
|
7940
6549
|
|
|
7941
|
-
},{}],
|
|
6550
|
+
},{}],87:[function(require,module,exports){
|
|
7942
6551
|
/*jshint maxlen: false*/
|
|
7943
6552
|
|
|
7944
6553
|
var validator = require("validator");
|
|
@@ -8069,7 +6678,7 @@ var FormatValidators = {
|
|
|
8069
6678
|
|
|
8070
6679
|
module.exports = FormatValidators;
|
|
8071
6680
|
|
|
8072
|
-
},{"validator":
|
|
6681
|
+
},{"validator":4}],88:[function(require,module,exports){
|
|
8073
6682
|
"use strict";
|
|
8074
6683
|
|
|
8075
6684
|
var FormatValidators = require("./FormatValidators"),
|
|
@@ -8093,7 +6702,9 @@ var JsonValidators = {
|
|
|
8093
6702
|
return;
|
|
8094
6703
|
}
|
|
8095
6704
|
|
|
8096
|
-
|
|
6705
|
+
var stringMultipleOf = String(schema.multipleOf);
|
|
6706
|
+
var scale = Math.pow(10, stringMultipleOf.length - stringMultipleOf.indexOf(".") - 1);
|
|
6707
|
+
if (Utils.whatIs((json * scale) / (schema.multipleOf * scale)) !== "integer") {
|
|
8097
6708
|
report.addError("MULTIPLE_OF", [json, schema.multipleOf], null, schema);
|
|
8098
6709
|
}
|
|
8099
6710
|
},
|
|
@@ -8677,7 +7288,7 @@ exports.validate = function (report, schema, json) {
|
|
|
8677
7288
|
}
|
|
8678
7289
|
|
|
8679
7290
|
if (typeof this.options.customValidator === "function") {
|
|
8680
|
-
this.options.customValidator(report, schema, json);
|
|
7291
|
+
this.options.customValidator.call(this, report, schema, json);
|
|
8681
7292
|
}
|
|
8682
7293
|
|
|
8683
7294
|
// we don't need the root pointer anymore
|
|
@@ -8690,7 +7301,7 @@ exports.validate = function (report, schema, json) {
|
|
|
8690
7301
|
|
|
8691
7302
|
};
|
|
8692
7303
|
|
|
8693
|
-
},{"./FormatValidators":
|
|
7304
|
+
},{"./FormatValidators":87,"./Report":90,"./Utils":94}],89:[function(require,module,exports){
|
|
8694
7305
|
// Number.isFinite polyfill
|
|
8695
7306
|
// http://people.mozilla.org/~jorendorff/es6-draft.html#sec-number.isfinite
|
|
8696
7307
|
if (typeof Number.isFinite !== "function") {
|
|
@@ -8708,7 +7319,7 @@ if (typeof Number.isFinite !== "function") {
|
|
|
8708
7319
|
};
|
|
8709
7320
|
}
|
|
8710
7321
|
|
|
8711
|
-
},{}],
|
|
7322
|
+
},{}],90:[function(require,module,exports){
|
|
8712
7323
|
(function (process){
|
|
8713
7324
|
"use strict";
|
|
8714
7325
|
|
|
@@ -8793,7 +7404,7 @@ Report.prototype.processAsyncTasks = function (timeout, callback) {
|
|
|
8793
7404
|
function finish() {
|
|
8794
7405
|
process.nextTick(function () {
|
|
8795
7406
|
var valid = self.errors.length === 0,
|
|
8796
|
-
err = valid ?
|
|
7407
|
+
err = valid ? null : self.errors;
|
|
8797
7408
|
callback(err, valid);
|
|
8798
7409
|
});
|
|
8799
7410
|
}
|
|
@@ -9011,7 +7622,7 @@ Report.prototype.addCustomError = function (errorCode, errorMessage, params, sub
|
|
|
9011
7622
|
module.exports = Report;
|
|
9012
7623
|
|
|
9013
7624
|
}).call(this,require('_process'))
|
|
9014
|
-
},{"./Errors":
|
|
7625
|
+
},{"./Errors":86,"./Utils":94,"_process":3,"lodash.get":1}],91:[function(require,module,exports){
|
|
9015
7626
|
"use strict";
|
|
9016
7627
|
|
|
9017
7628
|
var isequal = require("lodash.isequal");
|
|
@@ -9201,7 +7812,7 @@ exports.getSchemaByUri = function (report, uri, root) {
|
|
|
9201
7812
|
|
|
9202
7813
|
exports.getRemotePath = getRemotePath;
|
|
9203
7814
|
|
|
9204
|
-
},{"./Report":
|
|
7815
|
+
},{"./Report":90,"./SchemaCompilation":92,"./SchemaValidation":93,"./Utils":94,"lodash.isequal":2}],92:[function(require,module,exports){
|
|
9205
7816
|
"use strict";
|
|
9206
7817
|
|
|
9207
7818
|
var Report = require("./Report");
|
|
@@ -9502,7 +8113,7 @@ exports.compileSchema = function (report, schema) {
|
|
|
9502
8113
|
|
|
9503
8114
|
};
|
|
9504
8115
|
|
|
9505
|
-
},{"./Report":
|
|
8116
|
+
},{"./Report":90,"./SchemaCache":91,"./Utils":94}],93:[function(require,module,exports){
|
|
9506
8117
|
"use strict";
|
|
9507
8118
|
|
|
9508
8119
|
var FormatValidators = require("./FormatValidators"),
|
|
@@ -10123,11 +8734,9 @@ exports.validateSchema = function (report, schema) {
|
|
|
10123
8734
|
return isValid;
|
|
10124
8735
|
};
|
|
10125
8736
|
|
|
10126
|
-
},{"./FormatValidators":
|
|
8737
|
+
},{"./FormatValidators":87,"./JsonValidation":88,"./Report":90,"./Utils":94}],94:[function(require,module,exports){
|
|
10127
8738
|
"use strict";
|
|
10128
8739
|
|
|
10129
|
-
require("core-js/es/symbol");
|
|
10130
|
-
|
|
10131
8740
|
exports.jsonSymbol = Symbol.for("z-schema/json");
|
|
10132
8741
|
|
|
10133
8742
|
exports.schemaSymbol = Symbol.for("z-schema/schema");
|
|
@@ -10401,7 +9010,7 @@ exports.ucs2decode = function (string) {
|
|
|
10401
9010
|
};
|
|
10402
9011
|
/*jshint +W016*/
|
|
10403
9012
|
|
|
10404
|
-
},{
|
|
9013
|
+
},{}],95:[function(require,module,exports){
|
|
10405
9014
|
(function (process){
|
|
10406
9015
|
"use strict";
|
|
10407
9016
|
|
|
@@ -10459,7 +9068,7 @@ var defaultOptions = {
|
|
|
10459
9068
|
reportPathAsArray: false,
|
|
10460
9069
|
// stops validation as soon as an error is found, true by default but can be turned off
|
|
10461
9070
|
breakOnFirstError: true,
|
|
10462
|
-
// check if schema
|
|
9071
|
+
// check if schema follows best practices and common sense
|
|
10463
9072
|
pedanticCheck: false,
|
|
10464
9073
|
// ignore unknown formats (do not report them as an error)
|
|
10465
9074
|
ignoreUnknownFormats: false,
|
|
@@ -10669,7 +9278,7 @@ ZSchema.prototype.getLastError = function () {
|
|
|
10669
9278
|
return e;
|
|
10670
9279
|
};
|
|
10671
9280
|
ZSchema.prototype.getLastErrors = function () {
|
|
10672
|
-
return this.lastReport && this.lastReport.errors.length > 0 ? this.lastReport.errors :
|
|
9281
|
+
return this.lastReport && this.lastReport.errors.length > 0 ? this.lastReport.errors : null;
|
|
10673
9282
|
};
|
|
10674
9283
|
ZSchema.prototype.getMissingReferences = function (arr) {
|
|
10675
9284
|
arr = arr || this.lastReport.errors;
|
|
@@ -10814,7 +9423,7 @@ ZSchema.jsonSymbol = Utils.jsonSymbol;
|
|
|
10814
9423
|
module.exports = ZSchema;
|
|
10815
9424
|
|
|
10816
9425
|
}).call(this,require('_process'))
|
|
10817
|
-
},{"./FormatValidators":
|
|
9426
|
+
},{"./FormatValidators":87,"./JsonValidation":88,"./Polyfills":89,"./Report":90,"./SchemaCache":91,"./SchemaCompilation":92,"./SchemaValidation":93,"./Utils":94,"./schemas/hyper-schema.json":96,"./schemas/schema.json":97,"_process":3,"lodash.get":1}],96:[function(require,module,exports){
|
|
10818
9427
|
module.exports={
|
|
10819
9428
|
"$schema": "http://json-schema.org/draft-04/hyper-schema#",
|
|
10820
9429
|
"id": "http://json-schema.org/draft-04/hyper-schema#",
|
|
@@ -10974,7 +9583,7 @@ module.exports={
|
|
|
10974
9583
|
}
|
|
10975
9584
|
|
|
10976
9585
|
|
|
10977
|
-
},{}],
|
|
9586
|
+
},{}],97:[function(require,module,exports){
|
|
10978
9587
|
module.exports={
|
|
10979
9588
|
"id": "http://json-schema.org/draft-04/schema#",
|
|
10980
9589
|
"$schema": "http://json-schema.org/draft-04/schema#",
|
|
@@ -11127,5 +9736,5 @@ module.exports={
|
|
|
11127
9736
|
"default": {}
|
|
11128
9737
|
}
|
|
11129
9738
|
|
|
11130
|
-
},{}]},{},[
|
|
9739
|
+
},{}]},{},[86,87,88,89,90,91,92,93,94,95])(95)
|
|
11131
9740
|
});
|