@koine/next 1.0.0 → 1.0.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/Analytics/AnalyticsGoogle.d.ts +6 -0
- package/Analytics/index.d.ts +1 -0
- package/Auth/helpers.d.ts +17 -0
- package/Auth/index.d.ts +4 -0
- package/Auth/useLogin.d.ts +7 -0
- package/Auth/useLoginUrl.d.ts +1 -0
- package/Auth/useLogout.d.ts +6 -0
- package/Favicon/Favicon.d.ts +4 -0
- package/Favicon/index.d.ts +1 -0
- package/Forms/index.d.ts +2 -0
- package/Forms/useForm.d.ts +32 -0
- package/Forms/useSubmit.d.ts +24 -0
- package/Head/Head.d.ts +1 -0
- package/Head/index.d.ts +1 -0
- package/I18n/I18n.d.ts +48 -0
- package/I18n/index.d.ts +1 -0
- package/Img/Img.d.ts +21 -0
- package/Img/index.d.ts +1 -0
- package/Link/Link.d.ts +8 -0
- package/Link/index.d.ts +1 -0
- package/NextProgress/NextProgress.d.ts +14 -0
- package/NextProgress/index.d.ts +1 -0
- package/Seo/Seo.d.ts +3 -0
- package/Seo/SeoDefaults.d.ts +3 -0
- package/Seo/helpers.d.ts +48 -0
- package/Seo/index.d.ts +12 -0
- package/Theme/Theme.d.ts +46 -0
- package/Theme/index.d.ts +1 -0
- package/Theme.js +1905 -0
- package/_tslib.js +41 -0
- package/app/App--emotion.d.ts +10 -0
- package/app/App--sc.d.ts +10 -0
- package/app/App--vanilla.d.ts +10 -0
- package/app/AppAuth--emotion.d.ts +10 -0
- package/app/AppAuth--sc.d.ts +10 -0
- package/app/AppHead.d.ts +3 -0
- package/app/AppMain--vanilla.d.ts +27 -0
- package/app/AppMain.d.ts +34 -0
- package/app/AppTheme--emotion.d.ts +15 -0
- package/app/AppTheme--sc.d.ts +13 -0
- package/app/AppTheme--vanilla.d.ts +10 -0
- package/app/index.d.ts +11 -0
- package/app/motion-features.d.ts +2 -0
- package/app.js +250 -0
- package/config/index.d.ts +58 -0
- package/config.js +183 -0
- package/document/Document--emotion.d.ts +5 -0
- package/document/Document--sc.d.ts +11 -0
- package/document/Document--vanilla.d.ts +11 -0
- package/document/Document.d.ts +10 -0
- package/document/emotion.d.ts +5 -0
- package/document/index.d.ts +4 -0
- package/document.js +207 -0
- package/emotion.js +1329 -0
- package/es.object.assign.js +1074 -0
- package/es.string.replace.js +785 -0
- package/es.string.split.js +201 -0
- package/index.d.ts +12 -0
- package/index.esm.js +4437 -4406
- package/index.js +743 -0
- package/index.umd.js +4635 -4623
- package/motion-features.js +10 -0
- package/package.json +17 -10
- package/types.d.ts +91 -0
- package/utils/api.d.ts +55 -0
- package/utils/index.d.ts +19 -0
- package/motion-features.esm.js +0 -2
|
@@ -0,0 +1,785 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var es_object_assign = require('./es.object.assign.js');
|
|
4
|
+
|
|
5
|
+
var objectDefineProperties = {};
|
|
6
|
+
|
|
7
|
+
var DESCRIPTORS = es_object_assign.descriptors;
|
|
8
|
+
var V8_PROTOTYPE_DEFINE_BUG = es_object_assign.v8PrototypeDefineBug;
|
|
9
|
+
var definePropertyModule = es_object_assign.objectDefineProperty;
|
|
10
|
+
var anObject$5 = es_object_assign.anObject;
|
|
11
|
+
var toIndexedObject = es_object_assign.toIndexedObject;
|
|
12
|
+
var objectKeys = es_object_assign.objectKeys;
|
|
13
|
+
|
|
14
|
+
// `Object.defineProperties` method
|
|
15
|
+
// https://tc39.es/ecma262/#sec-object.defineproperties
|
|
16
|
+
// eslint-disable-next-line es/no-object-defineproperties -- safe
|
|
17
|
+
objectDefineProperties.f = DESCRIPTORS && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
|
|
18
|
+
anObject$5(O);
|
|
19
|
+
var props = toIndexedObject(Properties);
|
|
20
|
+
var keys = objectKeys(Properties);
|
|
21
|
+
var length = keys.length;
|
|
22
|
+
var index = 0;
|
|
23
|
+
var key;
|
|
24
|
+
while (length > index) definePropertyModule.f(O, key = keys[index++], props[key]);
|
|
25
|
+
return O;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
var getBuiltIn$1 = es_object_assign.getBuiltIn;
|
|
29
|
+
|
|
30
|
+
var html$1 = getBuiltIn$1('document', 'documentElement');
|
|
31
|
+
|
|
32
|
+
/* global ActiveXObject -- old IE, WSH */
|
|
33
|
+
|
|
34
|
+
var anObject$4 = es_object_assign.anObject;
|
|
35
|
+
var definePropertiesModule = objectDefineProperties;
|
|
36
|
+
var enumBugKeys = es_object_assign.enumBugKeys;
|
|
37
|
+
var hiddenKeys = es_object_assign.hiddenKeys;
|
|
38
|
+
var html = html$1;
|
|
39
|
+
var documentCreateElement = es_object_assign.documentCreateElement;
|
|
40
|
+
var sharedKey = es_object_assign.sharedKey;
|
|
41
|
+
|
|
42
|
+
var GT = '>';
|
|
43
|
+
var LT = '<';
|
|
44
|
+
var PROTOTYPE = 'prototype';
|
|
45
|
+
var SCRIPT = 'script';
|
|
46
|
+
var IE_PROTO = sharedKey('IE_PROTO');
|
|
47
|
+
|
|
48
|
+
var EmptyConstructor = function () { /* empty */ };
|
|
49
|
+
|
|
50
|
+
var scriptTag = function (content) {
|
|
51
|
+
return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
// Create object with fake `null` prototype: use ActiveX Object with cleared prototype
|
|
55
|
+
var NullProtoObjectViaActiveX = function (activeXDocument) {
|
|
56
|
+
activeXDocument.write(scriptTag(''));
|
|
57
|
+
activeXDocument.close();
|
|
58
|
+
var temp = activeXDocument.parentWindow.Object;
|
|
59
|
+
activeXDocument = null; // avoid memory leak
|
|
60
|
+
return temp;
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
// Create object with fake `null` prototype: use iframe Object with cleared prototype
|
|
64
|
+
var NullProtoObjectViaIFrame = function () {
|
|
65
|
+
// Thrash, waste and sodomy: IE GC bug
|
|
66
|
+
var iframe = documentCreateElement('iframe');
|
|
67
|
+
var JS = 'java' + SCRIPT + ':';
|
|
68
|
+
var iframeDocument;
|
|
69
|
+
iframe.style.display = 'none';
|
|
70
|
+
html.appendChild(iframe);
|
|
71
|
+
// https://github.com/zloirock/core-js/issues/475
|
|
72
|
+
iframe.src = String(JS);
|
|
73
|
+
iframeDocument = iframe.contentWindow.document;
|
|
74
|
+
iframeDocument.open();
|
|
75
|
+
iframeDocument.write(scriptTag('document.F=Object'));
|
|
76
|
+
iframeDocument.close();
|
|
77
|
+
return iframeDocument.F;
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
// Check for document.domain and active x support
|
|
81
|
+
// No need to use active x approach when document.domain is not set
|
|
82
|
+
// see https://github.com/es-shims/es5-shim/issues/150
|
|
83
|
+
// variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
|
|
84
|
+
// avoid IE GC bug
|
|
85
|
+
var activeXDocument;
|
|
86
|
+
var NullProtoObject = function () {
|
|
87
|
+
try {
|
|
88
|
+
activeXDocument = new ActiveXObject('htmlfile');
|
|
89
|
+
} catch (error) { /* ignore */ }
|
|
90
|
+
NullProtoObject = typeof document != 'undefined'
|
|
91
|
+
? document.domain && activeXDocument
|
|
92
|
+
? NullProtoObjectViaActiveX(activeXDocument) // old IE
|
|
93
|
+
: NullProtoObjectViaIFrame()
|
|
94
|
+
: NullProtoObjectViaActiveX(activeXDocument); // WSH
|
|
95
|
+
var length = enumBugKeys.length;
|
|
96
|
+
while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
|
|
97
|
+
return NullProtoObject();
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
hiddenKeys[IE_PROTO] = true;
|
|
101
|
+
|
|
102
|
+
// `Object.create` method
|
|
103
|
+
// https://tc39.es/ecma262/#sec-object.create
|
|
104
|
+
var objectCreate = Object.create || function create(O, Properties) {
|
|
105
|
+
var result;
|
|
106
|
+
if (O !== null) {
|
|
107
|
+
EmptyConstructor[PROTOTYPE] = anObject$4(O);
|
|
108
|
+
result = new EmptyConstructor();
|
|
109
|
+
EmptyConstructor[PROTOTYPE] = null;
|
|
110
|
+
// add "__proto__" for Object.getPrototypeOf polyfill
|
|
111
|
+
result[IE_PROTO] = O;
|
|
112
|
+
} else result = NullProtoObject();
|
|
113
|
+
return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
|
|
114
|
+
};
|
|
115
|
+
|
|
116
|
+
var wellKnownSymbol$4 = es_object_assign.wellKnownSymbol;
|
|
117
|
+
|
|
118
|
+
var TO_STRING_TAG$1 = wellKnownSymbol$4('toStringTag');
|
|
119
|
+
var test = {};
|
|
120
|
+
|
|
121
|
+
test[TO_STRING_TAG$1] = 'z';
|
|
122
|
+
|
|
123
|
+
var toStringTagSupport = String(test) === '[object z]';
|
|
124
|
+
|
|
125
|
+
var global$6 = es_object_assign.global;
|
|
126
|
+
var TO_STRING_TAG_SUPPORT = toStringTagSupport;
|
|
127
|
+
var isCallable$3 = es_object_assign.isCallable;
|
|
128
|
+
var classofRaw = es_object_assign.classofRaw;
|
|
129
|
+
var wellKnownSymbol$3 = es_object_assign.wellKnownSymbol;
|
|
130
|
+
|
|
131
|
+
var TO_STRING_TAG = wellKnownSymbol$3('toStringTag');
|
|
132
|
+
var Object$1 = global$6.Object;
|
|
133
|
+
|
|
134
|
+
// ES3 wrong here
|
|
135
|
+
var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
|
|
136
|
+
|
|
137
|
+
// fallback for IE11 Script Access Denied error
|
|
138
|
+
var tryGet = function (it, key) {
|
|
139
|
+
try {
|
|
140
|
+
return it[key];
|
|
141
|
+
} catch (error) { /* empty */ }
|
|
142
|
+
};
|
|
143
|
+
|
|
144
|
+
// getting tag from ES6+ `Object.prototype.toString`
|
|
145
|
+
var classof$3 = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
|
|
146
|
+
var O, tag, result;
|
|
147
|
+
return it === undefined ? 'Undefined' : it === null ? 'Null'
|
|
148
|
+
// @@toStringTag case
|
|
149
|
+
: typeof (tag = tryGet(O = Object$1(it), TO_STRING_TAG)) == 'string' ? tag
|
|
150
|
+
// builtinTag case
|
|
151
|
+
: CORRECT_ARGUMENTS ? classofRaw(O)
|
|
152
|
+
// ES3 arguments fallback
|
|
153
|
+
: (result = classofRaw(O)) == 'Object' && isCallable$3(O.callee) ? 'Arguments' : result;
|
|
154
|
+
};
|
|
155
|
+
|
|
156
|
+
var global$5 = es_object_assign.global;
|
|
157
|
+
var classof$2 = classof$3;
|
|
158
|
+
|
|
159
|
+
var String$1 = global$5.String;
|
|
160
|
+
|
|
161
|
+
var toString$3 = function (argument) {
|
|
162
|
+
if (classof$2(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
|
|
163
|
+
return String$1(argument);
|
|
164
|
+
};
|
|
165
|
+
|
|
166
|
+
var anObject$3 = es_object_assign.anObject;
|
|
167
|
+
|
|
168
|
+
// `RegExp.prototype.flags` getter implementation
|
|
169
|
+
// https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
|
|
170
|
+
var regexpFlags$1 = function () {
|
|
171
|
+
var that = anObject$3(this);
|
|
172
|
+
var result = '';
|
|
173
|
+
if (that.global) result += 'g';
|
|
174
|
+
if (that.ignoreCase) result += 'i';
|
|
175
|
+
if (that.multiline) result += 'm';
|
|
176
|
+
if (that.dotAll) result += 's';
|
|
177
|
+
if (that.unicode) result += 'u';
|
|
178
|
+
if (that.sticky) result += 'y';
|
|
179
|
+
return result;
|
|
180
|
+
};
|
|
181
|
+
|
|
182
|
+
var fails$5 = es_object_assign.fails;
|
|
183
|
+
var global$4 = es_object_assign.global;
|
|
184
|
+
|
|
185
|
+
// babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
|
|
186
|
+
var $RegExp$2 = global$4.RegExp;
|
|
187
|
+
|
|
188
|
+
var UNSUPPORTED_Y$1 = fails$5(function () {
|
|
189
|
+
var re = $RegExp$2('a', 'y');
|
|
190
|
+
re.lastIndex = 2;
|
|
191
|
+
return re.exec('abcd') != null;
|
|
192
|
+
});
|
|
193
|
+
|
|
194
|
+
// UC Browser bug
|
|
195
|
+
// https://github.com/zloirock/core-js/issues/1008
|
|
196
|
+
var MISSED_STICKY = UNSUPPORTED_Y$1 || fails$5(function () {
|
|
197
|
+
return !$RegExp$2('a', 'y').sticky;
|
|
198
|
+
});
|
|
199
|
+
|
|
200
|
+
var BROKEN_CARET = UNSUPPORTED_Y$1 || fails$5(function () {
|
|
201
|
+
// https://bugzilla.mozilla.org/show_bug.cgi?id=773687
|
|
202
|
+
var re = $RegExp$2('^r', 'gy');
|
|
203
|
+
re.lastIndex = 2;
|
|
204
|
+
return re.exec('str') != null;
|
|
205
|
+
});
|
|
206
|
+
|
|
207
|
+
var regexpStickyHelpers = {
|
|
208
|
+
BROKEN_CARET: BROKEN_CARET,
|
|
209
|
+
MISSED_STICKY: MISSED_STICKY,
|
|
210
|
+
UNSUPPORTED_Y: UNSUPPORTED_Y$1
|
|
211
|
+
};
|
|
212
|
+
|
|
213
|
+
var fails$4 = es_object_assign.fails;
|
|
214
|
+
var global$3 = es_object_assign.global;
|
|
215
|
+
|
|
216
|
+
// babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
|
|
217
|
+
var $RegExp$1 = global$3.RegExp;
|
|
218
|
+
|
|
219
|
+
var regexpUnsupportedDotAll = fails$4(function () {
|
|
220
|
+
var re = $RegExp$1('.', 's');
|
|
221
|
+
return !(re.dotAll && re.exec('\n') && re.flags === 's');
|
|
222
|
+
});
|
|
223
|
+
|
|
224
|
+
var fails$3 = es_object_assign.fails;
|
|
225
|
+
var global$2 = es_object_assign.global;
|
|
226
|
+
|
|
227
|
+
// babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
|
|
228
|
+
var $RegExp = global$2.RegExp;
|
|
229
|
+
|
|
230
|
+
var regexpUnsupportedNcg = fails$3(function () {
|
|
231
|
+
var re = $RegExp('(?<a>b)', 'g');
|
|
232
|
+
return re.exec('b').groups.a !== 'b' ||
|
|
233
|
+
'b'.replace(re, '$<a>c') !== 'bc';
|
|
234
|
+
});
|
|
235
|
+
|
|
236
|
+
/* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */
|
|
237
|
+
/* eslint-disable regexp/no-useless-quantifier -- testing */
|
|
238
|
+
var call$3 = es_object_assign.functionCall;
|
|
239
|
+
var uncurryThis$5 = es_object_assign.functionUncurryThis;
|
|
240
|
+
var toString$2 = toString$3;
|
|
241
|
+
var regexpFlags = regexpFlags$1;
|
|
242
|
+
var stickyHelpers = regexpStickyHelpers;
|
|
243
|
+
var shared = es_object_assign.shared.exports;
|
|
244
|
+
var create = objectCreate;
|
|
245
|
+
var getInternalState = es_object_assign.internalState.get;
|
|
246
|
+
var UNSUPPORTED_DOT_ALL = regexpUnsupportedDotAll;
|
|
247
|
+
var UNSUPPORTED_NCG = regexpUnsupportedNcg;
|
|
248
|
+
|
|
249
|
+
var nativeReplace = shared('native-string-replace', String.prototype.replace);
|
|
250
|
+
var nativeExec = RegExp.prototype.exec;
|
|
251
|
+
var patchedExec = nativeExec;
|
|
252
|
+
var charAt$3 = uncurryThis$5(''.charAt);
|
|
253
|
+
var indexOf = uncurryThis$5(''.indexOf);
|
|
254
|
+
var replace$1 = uncurryThis$5(''.replace);
|
|
255
|
+
var stringSlice$3 = uncurryThis$5(''.slice);
|
|
256
|
+
|
|
257
|
+
var UPDATES_LAST_INDEX_WRONG = (function () {
|
|
258
|
+
var re1 = /a/;
|
|
259
|
+
var re2 = /b*/g;
|
|
260
|
+
call$3(nativeExec, re1, 'a');
|
|
261
|
+
call$3(nativeExec, re2, 'a');
|
|
262
|
+
return re1.lastIndex !== 0 || re2.lastIndex !== 0;
|
|
263
|
+
})();
|
|
264
|
+
|
|
265
|
+
var UNSUPPORTED_Y = stickyHelpers.BROKEN_CARET;
|
|
266
|
+
|
|
267
|
+
// nonparticipating capturing group, copied from es5-shim's String#split patch.
|
|
268
|
+
var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
|
|
269
|
+
|
|
270
|
+
var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y || UNSUPPORTED_DOT_ALL || UNSUPPORTED_NCG;
|
|
271
|
+
|
|
272
|
+
if (PATCH) {
|
|
273
|
+
patchedExec = function exec(string) {
|
|
274
|
+
var re = this;
|
|
275
|
+
var state = getInternalState(re);
|
|
276
|
+
var str = toString$2(string);
|
|
277
|
+
var raw = state.raw;
|
|
278
|
+
var result, reCopy, lastIndex, match, i, object, group;
|
|
279
|
+
|
|
280
|
+
if (raw) {
|
|
281
|
+
raw.lastIndex = re.lastIndex;
|
|
282
|
+
result = call$3(patchedExec, raw, str);
|
|
283
|
+
re.lastIndex = raw.lastIndex;
|
|
284
|
+
return result;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
var groups = state.groups;
|
|
288
|
+
var sticky = UNSUPPORTED_Y && re.sticky;
|
|
289
|
+
var flags = call$3(regexpFlags, re);
|
|
290
|
+
var source = re.source;
|
|
291
|
+
var charsAdded = 0;
|
|
292
|
+
var strCopy = str;
|
|
293
|
+
|
|
294
|
+
if (sticky) {
|
|
295
|
+
flags = replace$1(flags, 'y', '');
|
|
296
|
+
if (indexOf(flags, 'g') === -1) {
|
|
297
|
+
flags += 'g';
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
strCopy = stringSlice$3(str, re.lastIndex);
|
|
301
|
+
// Support anchored sticky behavior.
|
|
302
|
+
if (re.lastIndex > 0 && (!re.multiline || re.multiline && charAt$3(str, re.lastIndex - 1) !== '\n')) {
|
|
303
|
+
source = '(?: ' + source + ')';
|
|
304
|
+
strCopy = ' ' + strCopy;
|
|
305
|
+
charsAdded++;
|
|
306
|
+
}
|
|
307
|
+
// ^(? + rx + ) is needed, in combination with some str slicing, to
|
|
308
|
+
// simulate the 'y' flag.
|
|
309
|
+
reCopy = new RegExp('^(?:' + source + ')', flags);
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
if (NPCG_INCLUDED) {
|
|
313
|
+
reCopy = new RegExp('^' + source + '$(?!\\s)', flags);
|
|
314
|
+
}
|
|
315
|
+
if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
|
|
316
|
+
|
|
317
|
+
match = call$3(nativeExec, sticky ? reCopy : re, strCopy);
|
|
318
|
+
|
|
319
|
+
if (sticky) {
|
|
320
|
+
if (match) {
|
|
321
|
+
match.input = stringSlice$3(match.input, charsAdded);
|
|
322
|
+
match[0] = stringSlice$3(match[0], charsAdded);
|
|
323
|
+
match.index = re.lastIndex;
|
|
324
|
+
re.lastIndex += match[0].length;
|
|
325
|
+
} else re.lastIndex = 0;
|
|
326
|
+
} else if (UPDATES_LAST_INDEX_WRONG && match) {
|
|
327
|
+
re.lastIndex = re.global ? match.index + match[0].length : lastIndex;
|
|
328
|
+
}
|
|
329
|
+
if (NPCG_INCLUDED && match && match.length > 1) {
|
|
330
|
+
// Fix browsers whose `exec` methods don't consistently return `undefined`
|
|
331
|
+
// for NPCG, like IE8. NOTE: This doesn' work for /(.?)?/
|
|
332
|
+
call$3(nativeReplace, match[0], reCopy, function () {
|
|
333
|
+
for (i = 1; i < arguments.length - 2; i++) {
|
|
334
|
+
if (arguments[i] === undefined) match[i] = undefined;
|
|
335
|
+
}
|
|
336
|
+
});
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
if (match && groups) {
|
|
340
|
+
match.groups = object = create(null);
|
|
341
|
+
for (i = 0; i < groups.length; i++) {
|
|
342
|
+
group = groups[i];
|
|
343
|
+
object[group[0]] = match[group[1]];
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
return match;
|
|
348
|
+
};
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
var regexpExec$2 = patchedExec;
|
|
352
|
+
|
|
353
|
+
var $ = es_object_assign._export;
|
|
354
|
+
var exec$1 = regexpExec$2;
|
|
355
|
+
|
|
356
|
+
// `RegExp.prototype.exec` method
|
|
357
|
+
// https://tc39.es/ecma262/#sec-regexp.prototype.exec
|
|
358
|
+
$({ target: 'RegExp', proto: true, forced: /./.exec !== exec$1 }, {
|
|
359
|
+
exec: exec$1
|
|
360
|
+
});
|
|
361
|
+
|
|
362
|
+
var NATIVE_BIND = es_object_assign.functionBindNative;
|
|
363
|
+
|
|
364
|
+
var FunctionPrototype = Function.prototype;
|
|
365
|
+
var apply$1 = FunctionPrototype.apply;
|
|
366
|
+
var call$2 = FunctionPrototype.call;
|
|
367
|
+
|
|
368
|
+
// eslint-disable-next-line es/no-reflect -- safe
|
|
369
|
+
var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? call$2.bind(apply$1) : function () {
|
|
370
|
+
return call$2.apply(apply$1, arguments);
|
|
371
|
+
});
|
|
372
|
+
|
|
373
|
+
// TODO: Remove from `core-js@4` since it's moved to entry points
|
|
374
|
+
|
|
375
|
+
var uncurryThis$4 = es_object_assign.functionUncurryThis;
|
|
376
|
+
var redefine = es_object_assign.redefine.exports;
|
|
377
|
+
var regexpExec$1 = regexpExec$2;
|
|
378
|
+
var fails$2 = es_object_assign.fails;
|
|
379
|
+
var wellKnownSymbol$2 = es_object_assign.wellKnownSymbol;
|
|
380
|
+
var createNonEnumerableProperty = es_object_assign.createNonEnumerableProperty;
|
|
381
|
+
|
|
382
|
+
var SPECIES$1 = wellKnownSymbol$2('species');
|
|
383
|
+
var RegExpPrototype = RegExp.prototype;
|
|
384
|
+
|
|
385
|
+
var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
|
|
386
|
+
var SYMBOL = wellKnownSymbol$2(KEY);
|
|
387
|
+
|
|
388
|
+
var DELEGATES_TO_SYMBOL = !fails$2(function () {
|
|
389
|
+
// String methods call symbol-named RegEp methods
|
|
390
|
+
var O = {};
|
|
391
|
+
O[SYMBOL] = function () { return 7; };
|
|
392
|
+
return ''[KEY](O) != 7;
|
|
393
|
+
});
|
|
394
|
+
|
|
395
|
+
var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails$2(function () {
|
|
396
|
+
// Symbol-named RegExp methods call .exec
|
|
397
|
+
var execCalled = false;
|
|
398
|
+
var re = /a/;
|
|
399
|
+
|
|
400
|
+
if (KEY === 'split') {
|
|
401
|
+
// We can't use real regex here since it causes deoptimization
|
|
402
|
+
// and serious performance degradation in V8
|
|
403
|
+
// https://github.com/zloirock/core-js/issues/306
|
|
404
|
+
re = {};
|
|
405
|
+
// RegExp[@@split] doesn't call the regex's exec method, but first creates
|
|
406
|
+
// a new one. We need to return the patched regex when creating the new one.
|
|
407
|
+
re.constructor = {};
|
|
408
|
+
re.constructor[SPECIES$1] = function () { return re; };
|
|
409
|
+
re.flags = '';
|
|
410
|
+
re[SYMBOL] = /./[SYMBOL];
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
re.exec = function () { execCalled = true; return null; };
|
|
414
|
+
|
|
415
|
+
re[SYMBOL]('');
|
|
416
|
+
return !execCalled;
|
|
417
|
+
});
|
|
418
|
+
|
|
419
|
+
if (
|
|
420
|
+
!DELEGATES_TO_SYMBOL ||
|
|
421
|
+
!DELEGATES_TO_EXEC ||
|
|
422
|
+
FORCED
|
|
423
|
+
) {
|
|
424
|
+
var uncurriedNativeRegExpMethod = uncurryThis$4(/./[SYMBOL]);
|
|
425
|
+
var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {
|
|
426
|
+
var uncurriedNativeMethod = uncurryThis$4(nativeMethod);
|
|
427
|
+
var $exec = regexp.exec;
|
|
428
|
+
if ($exec === regexpExec$1 || $exec === RegExpPrototype.exec) {
|
|
429
|
+
if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
|
|
430
|
+
// The native String method already delegates to @@method (this
|
|
431
|
+
// polyfilled function), leasing to infinite recursion.
|
|
432
|
+
// We avoid it by directly calling the native @@method method.
|
|
433
|
+
return { done: true, value: uncurriedNativeRegExpMethod(regexp, str, arg2) };
|
|
434
|
+
}
|
|
435
|
+
return { done: true, value: uncurriedNativeMethod(str, regexp, arg2) };
|
|
436
|
+
}
|
|
437
|
+
return { done: false };
|
|
438
|
+
});
|
|
439
|
+
|
|
440
|
+
redefine(String.prototype, KEY, methods[0]);
|
|
441
|
+
redefine(RegExpPrototype, SYMBOL, methods[1]);
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
if (SHAM) createNonEnumerableProperty(RegExpPrototype[SYMBOL], 'sham', true);
|
|
445
|
+
};
|
|
446
|
+
|
|
447
|
+
var uncurryThis$3 = es_object_assign.functionUncurryThis;
|
|
448
|
+
var fails$1 = es_object_assign.fails;
|
|
449
|
+
var isCallable$2 = es_object_assign.isCallable;
|
|
450
|
+
var classof$1 = classof$3;
|
|
451
|
+
var getBuiltIn = es_object_assign.getBuiltIn;
|
|
452
|
+
var inspectSource = es_object_assign.inspectSource;
|
|
453
|
+
|
|
454
|
+
var noop = function () { /* empty */ };
|
|
455
|
+
var empty = [];
|
|
456
|
+
var construct = getBuiltIn('Reflect', 'construct');
|
|
457
|
+
var constructorRegExp = /^\s*(?:class|function)\b/;
|
|
458
|
+
var exec = uncurryThis$3(constructorRegExp.exec);
|
|
459
|
+
var INCORRECT_TO_STRING = !constructorRegExp.exec(noop);
|
|
460
|
+
|
|
461
|
+
var isConstructorModern = function isConstructor(argument) {
|
|
462
|
+
if (!isCallable$2(argument)) return false;
|
|
463
|
+
try {
|
|
464
|
+
construct(noop, empty, argument);
|
|
465
|
+
return true;
|
|
466
|
+
} catch (error) {
|
|
467
|
+
return false;
|
|
468
|
+
}
|
|
469
|
+
};
|
|
470
|
+
|
|
471
|
+
var isConstructorLegacy = function isConstructor(argument) {
|
|
472
|
+
if (!isCallable$2(argument)) return false;
|
|
473
|
+
switch (classof$1(argument)) {
|
|
474
|
+
case 'AsyncFunction':
|
|
475
|
+
case 'GeneratorFunction':
|
|
476
|
+
case 'AsyncGeneratorFunction': return false;
|
|
477
|
+
}
|
|
478
|
+
try {
|
|
479
|
+
// we can't check .prototype since constructors produced by .bind haven't it
|
|
480
|
+
// `Function#toString` throws on some built-it function in some legacy engines
|
|
481
|
+
// (for example, `DOMQuad` and similar in FF41-)
|
|
482
|
+
return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource(argument));
|
|
483
|
+
} catch (error) {
|
|
484
|
+
return true;
|
|
485
|
+
}
|
|
486
|
+
};
|
|
487
|
+
|
|
488
|
+
isConstructorLegacy.sham = true;
|
|
489
|
+
|
|
490
|
+
// `IsConstructor` abstract operation
|
|
491
|
+
// https://tc39.es/ecma262/#sec-isconstructor
|
|
492
|
+
var isConstructor$1 = !construct || fails$1(function () {
|
|
493
|
+
var called;
|
|
494
|
+
return isConstructorModern(isConstructorModern.call)
|
|
495
|
+
|| !isConstructorModern(Object)
|
|
496
|
+
|| !isConstructorModern(function () { called = true; })
|
|
497
|
+
|| called;
|
|
498
|
+
}) ? isConstructorLegacy : isConstructorModern;
|
|
499
|
+
|
|
500
|
+
var global$1 = es_object_assign.global;
|
|
501
|
+
var isConstructor = isConstructor$1;
|
|
502
|
+
var tryToString = es_object_assign.tryToString;
|
|
503
|
+
|
|
504
|
+
var TypeError$2 = global$1.TypeError;
|
|
505
|
+
|
|
506
|
+
// `Assert: IsConstructor(argument) is true`
|
|
507
|
+
var aConstructor$1 = function (argument) {
|
|
508
|
+
if (isConstructor(argument)) return argument;
|
|
509
|
+
throw TypeError$2(tryToString(argument) + ' is not a constructor');
|
|
510
|
+
};
|
|
511
|
+
|
|
512
|
+
var anObject$2 = es_object_assign.anObject;
|
|
513
|
+
var aConstructor = aConstructor$1;
|
|
514
|
+
var wellKnownSymbol$1 = es_object_assign.wellKnownSymbol;
|
|
515
|
+
|
|
516
|
+
var SPECIES = wellKnownSymbol$1('species');
|
|
517
|
+
|
|
518
|
+
// `SpeciesConstructor` abstract operation
|
|
519
|
+
// https://tc39.es/ecma262/#sec-speciesconstructor
|
|
520
|
+
var speciesConstructor = function (O, defaultConstructor) {
|
|
521
|
+
var C = anObject$2(O).constructor;
|
|
522
|
+
var S;
|
|
523
|
+
return C === undefined || (S = anObject$2(C)[SPECIES]) == undefined ? defaultConstructor : aConstructor(S);
|
|
524
|
+
};
|
|
525
|
+
|
|
526
|
+
var uncurryThis$2 = es_object_assign.functionUncurryThis;
|
|
527
|
+
var toIntegerOrInfinity$1 = es_object_assign.toIntegerOrInfinity;
|
|
528
|
+
var toString$1 = toString$3;
|
|
529
|
+
var requireObjectCoercible$1 = es_object_assign.requireObjectCoercible;
|
|
530
|
+
|
|
531
|
+
var charAt$2 = uncurryThis$2(''.charAt);
|
|
532
|
+
var charCodeAt = uncurryThis$2(''.charCodeAt);
|
|
533
|
+
var stringSlice$2 = uncurryThis$2(''.slice);
|
|
534
|
+
|
|
535
|
+
var createMethod = function (CONVERT_TO_STRING) {
|
|
536
|
+
return function ($this, pos) {
|
|
537
|
+
var S = toString$1(requireObjectCoercible$1($this));
|
|
538
|
+
var position = toIntegerOrInfinity$1(pos);
|
|
539
|
+
var size = S.length;
|
|
540
|
+
var first, second;
|
|
541
|
+
if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;
|
|
542
|
+
first = charCodeAt(S, position);
|
|
543
|
+
return first < 0xD800 || first > 0xDBFF || position + 1 === size
|
|
544
|
+
|| (second = charCodeAt(S, position + 1)) < 0xDC00 || second > 0xDFFF
|
|
545
|
+
? CONVERT_TO_STRING
|
|
546
|
+
? charAt$2(S, position)
|
|
547
|
+
: first
|
|
548
|
+
: CONVERT_TO_STRING
|
|
549
|
+
? stringSlice$2(S, position, position + 2)
|
|
550
|
+
: (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;
|
|
551
|
+
};
|
|
552
|
+
};
|
|
553
|
+
|
|
554
|
+
var stringMultibyte = {
|
|
555
|
+
// `String.prototype.codePointAt` method
|
|
556
|
+
// https://tc39.es/ecma262/#sec-string.prototype.codepointat
|
|
557
|
+
codeAt: createMethod(false),
|
|
558
|
+
// `String.prototype.at` method
|
|
559
|
+
// https://github.com/mathiasbynens/String.prototype.at
|
|
560
|
+
charAt: createMethod(true)
|
|
561
|
+
};
|
|
562
|
+
|
|
563
|
+
var charAt$1 = stringMultibyte.charAt;
|
|
564
|
+
|
|
565
|
+
// `AdvanceStringIndex` abstract operation
|
|
566
|
+
// https://tc39.es/ecma262/#sec-advancestringindex
|
|
567
|
+
var advanceStringIndex$1 = function (S, index, unicode) {
|
|
568
|
+
return index + (unicode ? charAt$1(S, index).length : 1);
|
|
569
|
+
};
|
|
570
|
+
|
|
571
|
+
var global = es_object_assign.global;
|
|
572
|
+
var call$1 = es_object_assign.functionCall;
|
|
573
|
+
var anObject$1 = es_object_assign.anObject;
|
|
574
|
+
var isCallable$1 = es_object_assign.isCallable;
|
|
575
|
+
var classof = es_object_assign.classofRaw;
|
|
576
|
+
var regexpExec = regexpExec$2;
|
|
577
|
+
|
|
578
|
+
var TypeError$1 = global.TypeError;
|
|
579
|
+
|
|
580
|
+
// `RegExpExec` abstract operation
|
|
581
|
+
// https://tc39.es/ecma262/#sec-regexpexec
|
|
582
|
+
var regexpExecAbstract = function (R, S) {
|
|
583
|
+
var exec = R.exec;
|
|
584
|
+
if (isCallable$1(exec)) {
|
|
585
|
+
var result = call$1(exec, R, S);
|
|
586
|
+
if (result !== null) anObject$1(result);
|
|
587
|
+
return result;
|
|
588
|
+
}
|
|
589
|
+
if (classof(R) === 'RegExp') return call$1(regexpExec, R, S);
|
|
590
|
+
throw TypeError$1('RegExp#exec called on incompatible receiver');
|
|
591
|
+
};
|
|
592
|
+
|
|
593
|
+
var uncurryThis$1 = es_object_assign.functionUncurryThis;
|
|
594
|
+
var toObject = es_object_assign.toObject;
|
|
595
|
+
|
|
596
|
+
var floor = Math.floor;
|
|
597
|
+
var charAt = uncurryThis$1(''.charAt);
|
|
598
|
+
var replace = uncurryThis$1(''.replace);
|
|
599
|
+
var stringSlice$1 = uncurryThis$1(''.slice);
|
|
600
|
+
var SUBSTITUTION_SYMBOLS = /\$([$&'`]|\d{1,2}|<[^>]*>)/g;
|
|
601
|
+
var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&'`]|\d{1,2})/g;
|
|
602
|
+
|
|
603
|
+
// `GetSubstitution` abstract operation
|
|
604
|
+
// https://tc39.es/ecma262/#sec-getsubstitution
|
|
605
|
+
var getSubstitution$1 = function (matched, str, position, captures, namedCaptures, replacement) {
|
|
606
|
+
var tailPos = position + matched.length;
|
|
607
|
+
var m = captures.length;
|
|
608
|
+
var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;
|
|
609
|
+
if (namedCaptures !== undefined) {
|
|
610
|
+
namedCaptures = toObject(namedCaptures);
|
|
611
|
+
symbols = SUBSTITUTION_SYMBOLS;
|
|
612
|
+
}
|
|
613
|
+
return replace(replacement, symbols, function (match, ch) {
|
|
614
|
+
var capture;
|
|
615
|
+
switch (charAt(ch, 0)) {
|
|
616
|
+
case '$': return '$';
|
|
617
|
+
case '&': return matched;
|
|
618
|
+
case '`': return stringSlice$1(str, 0, position);
|
|
619
|
+
case "'": return stringSlice$1(str, tailPos);
|
|
620
|
+
case '<':
|
|
621
|
+
capture = namedCaptures[stringSlice$1(ch, 1, -1)];
|
|
622
|
+
break;
|
|
623
|
+
default: // \d\d?
|
|
624
|
+
var n = +ch;
|
|
625
|
+
if (n === 0) return match;
|
|
626
|
+
if (n > m) {
|
|
627
|
+
var f = floor(n / 10);
|
|
628
|
+
if (f === 0) return match;
|
|
629
|
+
if (f <= m) return captures[f - 1] === undefined ? charAt(ch, 1) : captures[f - 1] + charAt(ch, 1);
|
|
630
|
+
return match;
|
|
631
|
+
}
|
|
632
|
+
capture = captures[n - 1];
|
|
633
|
+
}
|
|
634
|
+
return capture === undefined ? '' : capture;
|
|
635
|
+
});
|
|
636
|
+
};
|
|
637
|
+
|
|
638
|
+
var apply = functionApply;
|
|
639
|
+
var call = es_object_assign.functionCall;
|
|
640
|
+
var uncurryThis = es_object_assign.functionUncurryThis;
|
|
641
|
+
var fixRegExpWellKnownSymbolLogic = fixRegexpWellKnownSymbolLogic;
|
|
642
|
+
var fails = es_object_assign.fails;
|
|
643
|
+
var anObject = es_object_assign.anObject;
|
|
644
|
+
var isCallable = es_object_assign.isCallable;
|
|
645
|
+
var toIntegerOrInfinity = es_object_assign.toIntegerOrInfinity;
|
|
646
|
+
var toLength = es_object_assign.toLength;
|
|
647
|
+
var toString = toString$3;
|
|
648
|
+
var requireObjectCoercible = es_object_assign.requireObjectCoercible;
|
|
649
|
+
var advanceStringIndex = advanceStringIndex$1;
|
|
650
|
+
var getMethod = es_object_assign.getMethod;
|
|
651
|
+
var getSubstitution = getSubstitution$1;
|
|
652
|
+
var regExpExec = regexpExecAbstract;
|
|
653
|
+
var wellKnownSymbol = es_object_assign.wellKnownSymbol;
|
|
654
|
+
|
|
655
|
+
var REPLACE = wellKnownSymbol('replace');
|
|
656
|
+
var max = Math.max;
|
|
657
|
+
var min = Math.min;
|
|
658
|
+
var concat = uncurryThis([].concat);
|
|
659
|
+
var push = uncurryThis([].push);
|
|
660
|
+
var stringIndexOf = uncurryThis(''.indexOf);
|
|
661
|
+
var stringSlice = uncurryThis(''.slice);
|
|
662
|
+
|
|
663
|
+
var maybeToString = function (it) {
|
|
664
|
+
return it === undefined ? it : String(it);
|
|
665
|
+
};
|
|
666
|
+
|
|
667
|
+
// IE <= 11 replaces $0 with the whole match, as if it was $&
|
|
668
|
+
// https://stackoverflow.com/questions/6024666/getting-ie-to-replace-a-regex-with-the-literal-string-0
|
|
669
|
+
var REPLACE_KEEPS_$0 = (function () {
|
|
670
|
+
// eslint-disable-next-line regexp/prefer-escape-replacement-dollar-char -- required for testing
|
|
671
|
+
return 'a'.replace(/./, '$0') === '$0';
|
|
672
|
+
})();
|
|
673
|
+
|
|
674
|
+
// Safari <= 13.0.3(?) substitutes nth capture where n>m with an empty string
|
|
675
|
+
var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = (function () {
|
|
676
|
+
if (/./[REPLACE]) {
|
|
677
|
+
return /./[REPLACE]('a', '$0') === '';
|
|
678
|
+
}
|
|
679
|
+
return false;
|
|
680
|
+
})();
|
|
681
|
+
|
|
682
|
+
var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {
|
|
683
|
+
var re = /./;
|
|
684
|
+
re.exec = function () {
|
|
685
|
+
var result = [];
|
|
686
|
+
result.groups = { a: '7' };
|
|
687
|
+
return result;
|
|
688
|
+
};
|
|
689
|
+
// eslint-disable-next-line regexp/no-useless-dollar-replacements -- false positive
|
|
690
|
+
return ''.replace(re, '$<a>') !== '7';
|
|
691
|
+
});
|
|
692
|
+
|
|
693
|
+
// @@replace logic
|
|
694
|
+
fixRegExpWellKnownSymbolLogic('replace', function (_, nativeReplace, maybeCallNative) {
|
|
695
|
+
var UNSAFE_SUBSTITUTE = REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE ? '$' : '$0';
|
|
696
|
+
|
|
697
|
+
return [
|
|
698
|
+
// `String.prototype.replace` method
|
|
699
|
+
// https://tc39.es/ecma262/#sec-string.prototype.replace
|
|
700
|
+
function replace(searchValue, replaceValue) {
|
|
701
|
+
var O = requireObjectCoercible(this);
|
|
702
|
+
var replacer = searchValue == undefined ? undefined : getMethod(searchValue, REPLACE);
|
|
703
|
+
return replacer
|
|
704
|
+
? call(replacer, searchValue, O, replaceValue)
|
|
705
|
+
: call(nativeReplace, toString(O), searchValue, replaceValue);
|
|
706
|
+
},
|
|
707
|
+
// `RegExp.prototype[@@replace]` method
|
|
708
|
+
// https://tc39.es/ecma262/#sec-regexp.prototype-@@replace
|
|
709
|
+
function (string, replaceValue) {
|
|
710
|
+
var rx = anObject(this);
|
|
711
|
+
var S = toString(string);
|
|
712
|
+
|
|
713
|
+
if (
|
|
714
|
+
typeof replaceValue == 'string' &&
|
|
715
|
+
stringIndexOf(replaceValue, UNSAFE_SUBSTITUTE) === -1 &&
|
|
716
|
+
stringIndexOf(replaceValue, '$<') === -1
|
|
717
|
+
) {
|
|
718
|
+
var res = maybeCallNative(nativeReplace, rx, S, replaceValue);
|
|
719
|
+
if (res.done) return res.value;
|
|
720
|
+
}
|
|
721
|
+
|
|
722
|
+
var functionalReplace = isCallable(replaceValue);
|
|
723
|
+
if (!functionalReplace) replaceValue = toString(replaceValue);
|
|
724
|
+
|
|
725
|
+
var global = rx.global;
|
|
726
|
+
if (global) {
|
|
727
|
+
var fullUnicode = rx.unicode;
|
|
728
|
+
rx.lastIndex = 0;
|
|
729
|
+
}
|
|
730
|
+
var results = [];
|
|
731
|
+
while (true) {
|
|
732
|
+
var result = regExpExec(rx, S);
|
|
733
|
+
if (result === null) break;
|
|
734
|
+
|
|
735
|
+
push(results, result);
|
|
736
|
+
if (!global) break;
|
|
737
|
+
|
|
738
|
+
var matchStr = toString(result[0]);
|
|
739
|
+
if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
|
|
740
|
+
}
|
|
741
|
+
|
|
742
|
+
var accumulatedResult = '';
|
|
743
|
+
var nextSourcePosition = 0;
|
|
744
|
+
for (var i = 0; i < results.length; i++) {
|
|
745
|
+
result = results[i];
|
|
746
|
+
|
|
747
|
+
var matched = toString(result[0]);
|
|
748
|
+
var position = max(min(toIntegerOrInfinity(result.index), S.length), 0);
|
|
749
|
+
var captures = [];
|
|
750
|
+
// NOTE: This is equivalent to
|
|
751
|
+
// captures = result.slice(1).map(maybeToString)
|
|
752
|
+
// but for some reason `nativeSlice.call(result, 1, result.length)` (called in
|
|
753
|
+
// the slice polyfill when slicing native arrays) "doesn't work" in safari 9 and
|
|
754
|
+
// causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it.
|
|
755
|
+
for (var j = 1; j < result.length; j++) push(captures, maybeToString(result[j]));
|
|
756
|
+
var namedCaptures = result.groups;
|
|
757
|
+
if (functionalReplace) {
|
|
758
|
+
var replacerArgs = concat([matched], captures, position, S);
|
|
759
|
+
if (namedCaptures !== undefined) push(replacerArgs, namedCaptures);
|
|
760
|
+
var replacement = toString(apply(replaceValue, undefined, replacerArgs));
|
|
761
|
+
} else {
|
|
762
|
+
replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);
|
|
763
|
+
}
|
|
764
|
+
if (position >= nextSourcePosition) {
|
|
765
|
+
accumulatedResult += stringSlice(S, nextSourcePosition, position) + replacement;
|
|
766
|
+
nextSourcePosition = position + matched.length;
|
|
767
|
+
}
|
|
768
|
+
}
|
|
769
|
+
return accumulatedResult + stringSlice(S, nextSourcePosition);
|
|
770
|
+
}
|
|
771
|
+
];
|
|
772
|
+
}, !REPLACE_SUPPORTS_NAMED_GROUPS || !REPLACE_KEEPS_$0 || REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE);
|
|
773
|
+
|
|
774
|
+
exports.advanceStringIndex = advanceStringIndex$1;
|
|
775
|
+
exports.classof = classof$3;
|
|
776
|
+
exports.fixRegexpWellKnownSymbolLogic = fixRegexpWellKnownSymbolLogic;
|
|
777
|
+
exports.functionApply = functionApply;
|
|
778
|
+
exports.html = html$1;
|
|
779
|
+
exports.objectCreate = objectCreate;
|
|
780
|
+
exports.regexpExec = regexpExec$2;
|
|
781
|
+
exports.regexpExecAbstract = regexpExecAbstract;
|
|
782
|
+
exports.regexpFlags = regexpFlags$1;
|
|
783
|
+
exports.regexpStickyHelpers = regexpStickyHelpers;
|
|
784
|
+
exports.speciesConstructor = speciesConstructor;
|
|
785
|
+
exports.toString = toString$3;
|