title-switcher 2.1.18 → 2.2.0

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.
@@ -1,1567 +1,1677 @@
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.titleSwitcher = 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
- 'use strict';
3
-
4
- require("core-js/modules/esnext.weak-map.delete-all.js");
5
- var __classPrivateFieldSet = void 0 && (void 0).__classPrivateFieldSet || function (receiver, state, value, kind, f) {
6
- if (kind === "m") throw new TypeError("Private method is not writable");
7
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
8
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
9
- return kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value), value;
10
- };
11
- var __classPrivateFieldGet = void 0 && (void 0).__classPrivateFieldGet || function (receiver, state, kind, f) {
12
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
13
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
14
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
15
- };
16
- var _TitleSwitcher_active, _TitleSwitcher_currentClass, _TitleSwitcher_currentIndex, _TitleSwitcher_delayEffect, _TitleSwitcher_delaySwitch, _TitleSwitcher_isRandom, _TitleSwitcher_titles, _TitleSwitcher_titlesContainer, _TitleSwitcher_switchStyle, _TitleSwitcher_typeSurface;
17
- Object.defineProperty(exports, "__esModule", {
18
- value: true
19
- });
20
- class TitleSwitcher {
21
- /**
22
- * Instantiate this as a class to get an instance of TitleSwitcher
23
- * @param titlesContainer - The selector where titles are stored
24
- * @param switchStyle - The function or function name for the effect to apply
25
- * @constructor
26
- */
27
- constructor(titlesContainer = '', switchStyle = 'typingEffect') {
28
- _TitleSwitcher_active.set(this, false);
29
- _TitleSwitcher_currentClass.set(this, 'displayTitle');
30
- _TitleSwitcher_currentIndex.set(this, 0);
31
- _TitleSwitcher_delayEffect.set(this, 200);
32
- _TitleSwitcher_delaySwitch.set(this, 400);
33
- _TitleSwitcher_isRandom.set(this, false);
34
- _TitleSwitcher_titles.set(this, []);
35
- _TitleSwitcher_titlesContainer.set(this, '');
36
- _TitleSwitcher_switchStyle.set(this, void 0);
37
- _TitleSwitcher_typeSurface.set(this, void 0);
38
- __classPrivateFieldSet(this, _TitleSwitcher_currentClass, 'displayTitle', "f");
39
- if (typeof switchStyle === 'string') {
40
- // @ts-ignore Obnoxious error "type 'string' can't be used to index type 'TitleSwitcher'"
41
- __classPrivateFieldSet(this, _TitleSwitcher_switchStyle, typeof this[switchStyle] === 'function' ? this[switchStyle] : this.typingEffect, "f");
42
- } else {
43
- __classPrivateFieldSet(this, _TitleSwitcher_switchStyle, switchStyle, "f");
44
- }
45
- __classPrivateFieldSet(this, _TitleSwitcher_titlesContainer, titlesContainer, "f");
46
- __classPrivateFieldSet(this, _TitleSwitcher_titles, [], "f");
47
- const foundContainers = titlesContainer ? document.querySelectorAll(titlesContainer) : [];
48
- if (foundContainers && foundContainers[0]) {
49
- __classPrivateFieldSet(this, _TitleSwitcher_titlesContainer, foundContainers[0], "f");
50
- __classPrivateFieldSet(this, _TitleSwitcher_titles, foundContainers[0].children, "f");
51
- }
52
- }
53
- /**
54
- * Retrieve active
55
- */
56
- get active() {
57
- return __classPrivateFieldGet(this, _TitleSwitcher_active, "f");
58
- }
59
- /**
60
- * Retrieve currentClass
61
- */
62
- get currentClass() {
63
- return __classPrivateFieldGet(this, _TitleSwitcher_currentClass, "f");
64
- }
65
- /**
66
- * Retrieve currentIndex
67
- */
68
- get currentIndex() {
69
- return __classPrivateFieldGet(this, _TitleSwitcher_currentIndex, "f");
70
- }
71
- /**
72
- * Retrieve delayEffect
73
- */
74
- get delayEffect() {
75
- return __classPrivateFieldGet(this, _TitleSwitcher_delayEffect, "f");
76
- }
77
- /**
78
- * Retrieve delaySwitch
79
- */
80
- get delaySwitch() {
81
- return __classPrivateFieldGet(this, _TitleSwitcher_delaySwitch, "f");
82
- }
83
- /**
84
- * Retrieve switchStyle
85
- */
86
- get switchStyle() {
87
- return __classPrivateFieldGet(this, _TitleSwitcher_switchStyle, "f");
88
- }
89
- /**
90
- * Retrieve list of titles DOM elements
91
- */
92
- get titles() {
93
- return __classPrivateFieldGet(this, _TitleSwitcher_titles, "f");
94
- }
95
- /**
96
- * Retrieve typeSurface used
97
- */
98
- get typeSurface() {
99
- return __classPrivateFieldGet(this, _TitleSwitcher_typeSurface, "f");
100
- }
101
- /**
102
- * This is the function to begin the switching titles
103
- * @param settings
104
- * @param settings.delaySwitch
105
- * @param settings.delayEffect
106
- * @param settings.isRandom
107
- * @param settings.immediatePause
108
- */
109
- startTitles({
110
- delaySwitch = 400,
111
- delayEffect = 200,
112
- isRandom = false,
113
- immediatePause = false
114
- } = {}) {
115
- const typeSurface = 'typeSurface';
116
- __classPrivateFieldSet(this, _TitleSwitcher_delaySwitch, delaySwitch, "f");
117
- __classPrivateFieldSet(this, _TitleSwitcher_delayEffect, delayEffect, "f");
118
- __classPrivateFieldSet(this, _TitleSwitcher_isRandom, isRandom, "f");
119
- __classPrivateFieldSet(this, _TitleSwitcher_active, !immediatePause, "f");
120
- if (__classPrivateFieldGet(this, _TitleSwitcher_currentIndex, "f") >= __classPrivateFieldGet(this, _TitleSwitcher_titles, "f").length || typeof __classPrivateFieldGet(this, _TitleSwitcher_titlesContainer, "f") === 'string') {
121
- __classPrivateFieldSet(this, _TitleSwitcher_active, false, "f");
122
- console.warn(`No titles found for '${__classPrivateFieldGet(this, _TitleSwitcher_titlesContainer, "f")}'`);
123
- return this;
124
- }
125
- if (__classPrivateFieldGet(this, _TitleSwitcher_isRandom, "f")) {
126
- __classPrivateFieldSet(this, _TitleSwitcher_currentIndex, Math.round(Math.random() * (__classPrivateFieldGet(this, _TitleSwitcher_titles, "f").length - 2)) + 1, "f");
127
- }
128
- const currentTitle = __classPrivateFieldGet(this, _TitleSwitcher_titles, "f")[__classPrivateFieldGet(this, _TitleSwitcher_currentIndex, "f")];
129
- if (currentTitle.classList) {
130
- currentTitle.classList.add(__classPrivateFieldGet(this, _TitleSwitcher_currentClass, "f"));
131
- } else {
132
- currentTitle.className += ' ' + __classPrivateFieldGet(this, _TitleSwitcher_currentClass, "f");
133
- }
134
- // @ts-ignore The Node returned is of type Element, or it should be
135
- const typeElement = __classPrivateFieldGet(this, _TitleSwitcher_titles, "f")[0].cloneNode(true);
136
- if (typeElement.classList) {
137
- typeElement.classList.add(typeSurface);
138
- } else {
139
- typeElement.className += ' ' + typeSurface;
140
- }
141
- if (typeElement.classList) {
142
- typeElement.classList.remove(__classPrivateFieldGet(this, _TitleSwitcher_currentClass, "f"));
143
- } else {
144
- typeElement.className = typeElement.className.replace(new RegExp('(^|\\b)' + typeElement.className.split(' ').join('|') + '(\\b|$)', 'gi'), ' ');
145
- }
146
- __classPrivateFieldGet(this, _TitleSwitcher_titlesContainer, "f").insertBefore(typeElement, __classPrivateFieldGet(this, _TitleSwitcher_titlesContainer, "f").firstChild);
147
- // @ts-ignore the returned Node is a type of HTMLElement
148
- __classPrivateFieldSet(this, _TitleSwitcher_typeSurface, __classPrivateFieldGet(this, _TitleSwitcher_titlesContainer, "f").querySelectorAll('.' + typeSurface)[0], "f");
149
- __classPrivateFieldGet(this, _TitleSwitcher_typeSurface, "f").innerHTML = '';
150
- __classPrivateFieldGet(this, _TitleSwitcher_typeSurface, "f").style.display = 'block';
151
- Array.prototype.forEach.call(__classPrivateFieldGet(this, _TitleSwitcher_titles, "f"), function (title) {
152
- title.style.display = 'none';
153
- });
154
- // currentTitle, not this.#titles[this.#currentIndex]: inserting typeElement above shifted every later index by
155
- // one, so #currentIndex (computed before that insert) no longer points at the title it was set for - switchTitle
156
- // would remove the 'displayTitle' class from whatever title now happens to sit at that stale index instead of
157
- // from currentTitle, leaving more than one title carrying the class at once.
158
- return this.switchTitle(currentTitle, __classPrivateFieldGet(this, _TitleSwitcher_switchStyle, "f"), this);
159
- }
160
- /**
161
- * This is the function to pause between switching
162
- */
163
- pause() {
164
- __classPrivateFieldSet(this, _TitleSwitcher_active, false, "f");
165
- }
166
- /**
167
- * This is the function to resume after a pause.
168
- */
169
- resume() {
170
- if (!__classPrivateFieldGet(this, _TitleSwitcher_active, "f")) {
171
- __classPrivateFieldSet(this, _TitleSwitcher_active, true, "f");
172
- this.switchTitle(__classPrivateFieldGet(this, _TitleSwitcher_titles, "f")[__classPrivateFieldGet(this, _TitleSwitcher_currentIndex, "f")], __classPrivateFieldGet(this, _TitleSwitcher_switchStyle, "f"), this);
173
- }
174
- }
175
- /**
176
- * This is the core function for switching titles
177
- * @param currentTitle
178
- * @param callBackFunction
179
- * @param self
180
- * @param runOnce
181
- */
182
- switchTitle(currentTitle, callBackFunction, self, runOnce = false) {
183
- self = self || this;
184
- let currentIndex = 1;
185
- const size = __classPrivateFieldGet(self, _TitleSwitcher_titles, "f").length;
186
- for (let i = 1; i < size; ++i) {
187
- if (__classPrivateFieldGet(self, _TitleSwitcher_titles, "f")[i] === currentTitle) {
188
- currentIndex = i;
189
- break;
190
- }
191
- }
192
- if (!__classPrivateFieldGet(self, _TitleSwitcher_active, "f")) {
193
- __classPrivateFieldSet(self, _TitleSwitcher_currentIndex, currentIndex, "f");
194
- return self;
195
- }
196
- const maxIndex = __classPrivateFieldGet(self, _TitleSwitcher_titles, "f").length - 1;
197
- let nextIndex = 1;
198
- if (maxIndex === 1) {
199
- return callBackFunction(currentTitle, runOnce ? () => self : self.switchTitle, self, runOnce);
200
- }
201
- if (__classPrivateFieldGet(self, _TitleSwitcher_isRandom, "f")) {
202
- if (!self.typeSurface.textContent.trim()) {
203
- currentIndex = -1;
204
- }
205
- do {
206
- nextIndex = Math.round(Math.random() * (maxIndex - 1)) + 1;
207
- } while (nextIndex === currentIndex);
208
- } else {
209
- if (!self.typeSurface.textContent.trim()) {
210
- currentIndex = maxIndex;
211
- }
212
- nextIndex = currentIndex < maxIndex ? currentIndex + 1 : 1;
213
- }
214
- const nextTitle = __classPrivateFieldGet(self, _TitleSwitcher_titles, "f")[nextIndex];
215
- if (currentTitle.classList) {
216
- currentTitle.classList.remove(self.currentClass);
217
- } else {
218
- currentTitle.className = currentTitle.className.replace(new RegExp('(^|\\b)' + currentTitle.className.split(' ').join('|') + '(\\b|$)', 'gi'), ' ');
219
- }
220
- if (nextTitle.classList) {
221
- nextTitle.classList.add(self.currentClass);
222
- } else {
223
- nextTitle.className += ' ' + self.currentClass;
224
- }
225
- return callBackFunction(nextTitle, runOnce ? () => self : self.switchTitle, self, runOnce);
226
- }
227
- }
228
- _TitleSwitcher_active = new WeakMap(), _TitleSwitcher_currentClass = new WeakMap(), _TitleSwitcher_currentIndex = new WeakMap(), _TitleSwitcher_delayEffect = new WeakMap(), _TitleSwitcher_delaySwitch = new WeakMap(), _TitleSwitcher_isRandom = new WeakMap(), _TitleSwitcher_titles = new WeakMap(), _TitleSwitcher_titlesContainer = new WeakMap(), _TitleSwitcher_switchStyle = new WeakMap(), _TitleSwitcher_typeSurface = new WeakMap();
229
- /**
230
- * This is a helper function to improve the default 'typingEffect'
231
- * @param blinkOn
232
- * @param self
233
- */
234
- TitleSwitcher.prototype.cursorBlink = (blinkOn, self) => {
235
- // display cursor effect
236
- self = self || void 0;
237
- if (blinkOn) {
238
- self.typeSurface.innerHTML = self.typeSurface.innerHTML.replace(/\||&nbsp;*(<\/span>)?$/, '$1').trim();
239
- self.typeSurface.innerHTML = self.typeSurface.innerHTML + '<span style="display: inline-block;font-weight: normal; color: black; text-decoration: none">&#124;</span>';
240
- } else {
241
- self.typeSurface.innerHTML = self.typeSurface.innerHTML.replace(/\|(<\/span>)$/, '&nbsp;$1');
242
- }
243
- return self;
244
- };
245
- /**
246
- * Count how many typed "units" domObject's text takes to fully reveal via typedPartialHtml - one unit per
247
- * non-whitespace character, but a whole run of consecutive whitespace (most often the newline and indentation
248
- * left behind where a title's HTML source wraps onto a new line) counts as a single unit, matching how many
249
- * steps typedPartialHtml actually needs to reveal it all. Typing through that whitespace one character at a
250
- * time would type through several units a browser renders as a single collapsed space, with no visible change
251
- * in between - not a slower typing speed, but a real stall followed by the next word suddenly catching up.
252
- * @param domObject
253
- */
254
- const typedLength = domObject => {
255
- let length = 0;
256
- Array.prototype.forEach.call(domObject.childNodes, child => {
257
- if (child.nodeType === 3) {
258
- const text = child.textContent || '';
259
- let position = 0;
260
- while (position < text.length) {
261
- if (/\s/.test(text[position])) {
262
- while (position < text.length && /\s/.test(text[position])) {
263
- ++position;
264
- }
265
- } else {
266
- ++position;
267
- }
268
- ++length;
269
- }
270
- } else if (child.nodeType === 1) {
271
- length += typedLength(child);
272
- }
273
- });
274
- return length;
275
- };
276
- /**
277
- * Build the markup for the first `remaining` typed units of domObject's text (see typedLength), keeping
278
- * whichever of its nested tags (em, strong, ...) that content falls under. This lets the typing effect reveal
279
- * a title's formatting as each character is typed, instead of only applying it once the whole tag has been
280
- * typed out.
281
- * @param domObject
282
- * @param remaining
283
- */
284
- const typedPartialHtml = (domObject, remaining) => {
285
- let html = '';
286
- const children = Array.prototype.slice.call(domObject.childNodes);
287
- for (let i = 0; i < children.length && remaining > 0; ++i) {
288
- const child = children[i];
289
- if (child.nodeType === 3) {
290
- const text = child.textContent || '';
291
- let position = 0;
292
- let taken = '';
293
- while (position < text.length && remaining > 0) {
294
- if (/\s/.test(text[position])) {
295
- const runStart = position;
296
- while (position < text.length && /\s/.test(text[position])) {
297
- ++position;
298
- }
299
- taken += text.slice(runStart, position);
300
- } else {
301
- taken += text[position];
302
- ++position;
303
- }
304
- --remaining;
305
- }
306
- html += taken;
307
- } else if (child.nodeType === 1) {
308
- const result = typedPartialHtml(child, remaining);
309
- if (result.html) {
310
- const wrapper = child.cloneNode(false);
311
- wrapper.innerHTML = result.html;
312
- html += wrapper.outerHTML;
313
- }
314
- remaining = result.remaining;
315
- }
316
- }
317
- return {
318
- html,
319
- remaining
320
- };
321
- };
322
- /**
323
- * This is the default and example of an effect being implemented when Titles are switched
324
- * These functions take the currentElement in focus, the switchTitle function as a callback
325
- * and an instance of the TitleSwitcher
326
- * @param domObject
327
- * @param callBackFunction
328
- * @param self
329
- * @param runOnce
330
- */
331
- TitleSwitcher.prototype.typingEffect = (domObject, callBackFunction, self, runOnce = false) => {
332
- self = self || void 0;
333
- const size = self.titles.length;
334
- let currentIndex = 0;
335
- for (let i = 1; i < size; ++i) {
336
- if (self.titles[i] === domObject) {
337
- currentIndex = i;
338
- break;
339
- }
340
- }
341
- domObject = domObject || self.titles[currentIndex + 1];
342
- let blinkOn = true;
343
- const numBlinks = 4;
344
- if (self.typeSurface.hasAttribute('style')) {
345
- self.typeSurface.removeAttribute('style');
346
- }
347
- if (domObject.hasAttribute('style')) {
348
- self.typeSurface.setAttribute('style', domObject.getAttribute('style'));
349
- }
350
- // If we copied the title style, then display:none is set, so we need to ensure the surface is display:block
351
- self.typeSurface.innerHTML = '';
352
- self.typeSurface.style.display = 'block';
353
- // Initialize with a few cursor blinks
354
- for (let i = 0; i < numBlinks; ++i) {
355
- setTimeout(() => {
356
- self.cursorBlink(blinkOn, self);
357
- blinkOn = !blinkOn;
358
- }, i * self.delaySwitch);
359
- }
360
- setTimeout(() => {
361
- // Empty the surface, and display the cursor (cursor is always solid while typing / not flashing)
362
- self.typeSurface.innerHTML = '';
363
- self.cursorBlink(true, self);
364
- // Copy each letter from the current title, keeping whichever tags (em, strong, ...) it falls under
365
- const totalLength = typedLength(domObject);
366
- for (let i = 0; i < totalLength; ++i) {
367
- setTimeout(() => {
368
- // Reveal one more character, wrapped in whatever tags its position in the title falls under,
369
- // then append a formatted cursor on the end
370
- self.typeSurface.innerHTML = typedPartialHtml(domObject, i + 1).html + '<span style="font-weight: normal; color: black; text-decoration: none">&#124;</span>';
371
- // If the text content equals the title content with a cursor appended then we reached the end.
372
- if (domObject.textContent + '|' === self.typeSurface.textContent) {
373
- // Replace html with old html on last letter, so we get all the html formatting applied
374
- self.typeSurface.innerHTML = domObject.innerHTML + '<span style="font-weight: normal; color: black; text-decoration: none">&#124;</span>';
375
- // Run the blinking cursor two times the regular time in order to let the text be readable before switching
376
- for (let j = 0; j < numBlinks * 2; ++j) {
377
- setTimeout(() => {
378
- --j;
379
- self.cursorBlink(blinkOn, self);
380
- if (j === 0) {
381
- callBackFunction(domObject, runOnce ? () => self : self.switchStyle, self, runOnce);
382
- }
383
- }, j * self.delaySwitch);
384
- }
385
- }
386
- }, i * self.delayEffect);
387
- }
388
- }, numBlinks * self.delaySwitch);
389
- return self;
390
- };
391
- exports.default = TitleSwitcher;
392
- if (void 0) {
393
- // @ts-ignore 'this' is used in node as the global, and the key CAN be referenced by string
394
- (void 0)['TitleSwitcher'] = TitleSwitcher;
395
- } else if (typeof window !== 'undefined') {
396
- // @ts-ignore YES, we can use a string to add a property to Window
397
- window['TitleSwitcher'] = TitleSwitcher;
398
- }
399
- },{"core-js/modules/esnext.weak-map.delete-all.js":69}],2:[function(require,module,exports){
400
- 'use strict';
401
- var isCallable = require('../internals/is-callable');
402
- var tryToString = require('../internals/try-to-string');
403
-
404
- var $TypeError = TypeError;
405
-
406
- // `Assert: IsCallable(argument) is true`
407
- module.exports = function (argument) {
408
- if (isCallable(argument)) return argument;
409
- throw new $TypeError(tryToString(argument) + ' is not a function');
410
- };
411
-
412
- },{"../internals/is-callable":32,"../internals/try-to-string":62}],3:[function(require,module,exports){
413
- 'use strict';
414
- var has = require('../internals/weak-map-helpers').has;
415
-
416
- // Perform ? RequireInternalSlot(M, [[WeakMapData]])
417
- module.exports = function (it) {
418
- has(it);
419
- return it;
420
- };
421
-
422
- },{"../internals/weak-map-helpers":67}],4:[function(require,module,exports){
423
- 'use strict';
424
- var isObject = require('../internals/is-object');
425
-
426
- var $String = String;
427
- var $TypeError = TypeError;
428
-
429
- // `Assert: Type(argument) is Object`
430
- module.exports = function (argument) {
431
- if (isObject(argument)) return argument;
432
- throw new $TypeError($String(argument) + ' is not an object');
433
- };
434
-
435
- },{"../internals/is-object":35}],5:[function(require,module,exports){
436
- 'use strict';
437
- var toIndexedObject = require('../internals/to-indexed-object');
438
- var toAbsoluteIndex = require('../internals/to-absolute-index');
439
- var lengthOfArrayLike = require('../internals/length-of-array-like');
440
-
441
- // `Array.prototype.{ indexOf, includes }` methods implementation
442
- var createMethod = function (IS_INCLUDES) {
443
- return function ($this, el, fromIndex) {
444
- var O = toIndexedObject($this);
445
- var length = lengthOfArrayLike(O);
446
- if (length === 0) return !IS_INCLUDES && -1;
447
- var index = toAbsoluteIndex(fromIndex, length);
448
- var value;
449
- // Array#includes uses SameValueZero equality algorithm
450
- // eslint-disable-next-line no-self-compare -- NaN check
451
- if (IS_INCLUDES && el !== el) while (length > index) {
452
- value = O[index++];
453
- // eslint-disable-next-line no-self-compare -- NaN check
454
- if (value !== value) return true;
455
- // Array#indexOf ignores holes, Array#includes - not
456
- } else for (;length > index; index++) {
457
- if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
458
- } return !IS_INCLUDES && -1;
459
- };
460
- };
461
-
462
- module.exports = {
463
- // `Array.prototype.includes` method
464
- // https://tc39.es/ecma262/#sec-array.prototype.includes
465
- includes: createMethod(true),
466
- // `Array.prototype.indexOf` method
467
- // https://tc39.es/ecma262/#sec-array.prototype.indexof
468
- indexOf: createMethod(false)
469
- };
470
-
471
- },{"../internals/length-of-array-like":38,"../internals/to-absolute-index":55,"../internals/to-indexed-object":56}],6:[function(require,module,exports){
472
- 'use strict';
473
- var uncurryThis = require('../internals/function-uncurry-this');
474
-
475
- var toString = uncurryThis({}.toString);
476
- var stringSlice = uncurryThis(''.slice);
477
-
478
- module.exports = function (it) {
479
- return stringSlice(toString(it), 8, -1);
480
- };
481
-
482
- },{"../internals/function-uncurry-this":22}],7:[function(require,module,exports){
483
- 'use strict';
484
- var hasOwn = require('../internals/has-own-property');
485
- var ownKeys = require('../internals/own-keys');
486
- var getOwnPropertyDescriptorModule = require('../internals/object-get-own-property-descriptor');
487
- var definePropertyModule = require('../internals/object-define-property');
488
-
489
- module.exports = function (target, source, exceptions) {
490
- var keys = ownKeys(source);
491
- var defineProperty = definePropertyModule.f;
492
- var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
493
- for (var i = 0; i < keys.length; i++) {
494
- var key = keys[i];
495
- if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) {
496
- defineProperty(target, key, getOwnPropertyDescriptor(source, key));
497
- }
498
- }
499
- };
500
-
501
- },{"../internals/has-own-property":26,"../internals/object-define-property":41,"../internals/object-get-own-property-descriptor":42,"../internals/own-keys":49}],8:[function(require,module,exports){
502
- 'use strict';
503
- var DESCRIPTORS = require('../internals/descriptors');
504
- var definePropertyModule = require('../internals/object-define-property');
505
- var createPropertyDescriptor = require('../internals/create-property-descriptor');
506
-
507
- module.exports = DESCRIPTORS ? function (object, key, value) {
508
- return definePropertyModule.f(object, key, createPropertyDescriptor(1, value));
509
- } : function (object, key, value) {
510
- object[key] = value;
511
- return object;
512
- };
513
-
514
- },{"../internals/create-property-descriptor":9,"../internals/descriptors":12,"../internals/object-define-property":41}],9:[function(require,module,exports){
515
- 'use strict';
516
- module.exports = function (bitmap, value) {
517
- return {
518
- enumerable: !(bitmap & 1),
519
- configurable: !(bitmap & 2),
520
- writable: !(bitmap & 4),
521
- value: value
522
- };
523
- };
524
-
525
- },{}],10:[function(require,module,exports){
526
- 'use strict';
527
- var isCallable = require('../internals/is-callable');
528
- var definePropertyModule = require('../internals/object-define-property');
529
- var makeBuiltIn = require('../internals/make-built-in');
530
- var defineGlobalProperty = require('../internals/define-global-property');
531
-
532
- module.exports = function (O, key, value, options) {
533
- if (!options) options = {};
534
- var simple = options.enumerable;
535
- var name = options.name !== undefined ? options.name : key;
536
- if (isCallable(value)) makeBuiltIn(value, name, options);
537
- if (options.global) {
538
- if (simple) O[key] = value;
539
- else defineGlobalProperty(key, value);
540
- } else {
541
- try {
542
- if (!options.unsafe) delete O[key];
543
- else if (O[key]) simple = true;
544
- } catch (error) { /* empty */ }
545
- if (simple) O[key] = value;
546
- else definePropertyModule.f(O, key, {
547
- value: value,
548
- enumerable: false,
549
- configurable: !options.nonConfigurable,
550
- writable: !options.nonWritable
551
- });
552
- } return O;
553
- };
554
-
555
- },{"../internals/define-global-property":11,"../internals/is-callable":32,"../internals/make-built-in":39,"../internals/object-define-property":41}],11:[function(require,module,exports){
556
- 'use strict';
557
- var globalThis = require('../internals/global-this');
558
-
559
- // eslint-disable-next-line es/no-object-defineproperty -- safe
560
- var defineProperty = Object.defineProperty;
561
-
562
- module.exports = function (key, value) {
563
- try {
564
- defineProperty(globalThis, key, { value: value, configurable: true, writable: true });
565
- } catch (error) {
566
- globalThis[key] = value;
567
- } return value;
568
- };
569
-
570
- },{"../internals/global-this":25}],12:[function(require,module,exports){
571
- 'use strict';
572
- var fails = require('../internals/fails');
573
-
574
- // Detect IE8's incomplete defineProperty implementation
575
- module.exports = !fails(function () {
576
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
577
- return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
578
- });
579
-
580
- },{"../internals/fails":18}],13:[function(require,module,exports){
581
- 'use strict';
582
- var globalThis = require('../internals/global-this');
583
- var isObject = require('../internals/is-object');
584
-
585
- var document = globalThis.document;
586
- // typeof document.createElement is 'object' in old IE
587
- var EXISTS = isObject(document) && isObject(document.createElement);
588
-
589
- module.exports = function (it) {
590
- return EXISTS ? document.createElement(it) : {};
591
- };
592
-
593
- },{"../internals/global-this":25,"../internals/is-object":35}],14:[function(require,module,exports){
594
- 'use strict';
595
- // IE8- don't enum bug keys
596
- module.exports = [
597
- 'constructor',
598
- 'hasOwnProperty',
599
- 'isPrototypeOf',
600
- 'propertyIsEnumerable',
601
- 'toLocaleString',
602
- 'toString',
603
- 'valueOf'
604
- ];
605
-
606
- },{}],15:[function(require,module,exports){
607
- 'use strict';
608
- var globalThis = require('../internals/global-this');
609
-
610
- var navigator = globalThis.navigator;
611
- var userAgent = navigator && navigator.userAgent;
612
-
613
- module.exports = userAgent ? String(userAgent) : '';
614
-
615
- },{"../internals/global-this":25}],16:[function(require,module,exports){
616
- 'use strict';
617
- var globalThis = require('../internals/global-this');
618
- var userAgent = require('../internals/environment-user-agent');
619
-
620
- var process = globalThis.process;
621
- var Deno = globalThis.Deno;
622
- var versions = process && process.versions || Deno && Deno.version;
623
- var v8 = versions && versions.v8;
624
- var match, version;
625
-
626
- if (v8) {
627
- match = v8.split('.');
628
- // in old Chrome, versions of V8 isn't V8 = Chrome / 10
629
- // but their correct versions are not interesting for us
630
- version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
631
- }
632
-
633
- // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
634
- // so check `userAgent` even if `.v8` exists, but 0
635
- if (!version && userAgent) {
636
- match = userAgent.match(/Edge\/(\d+)/);
637
- if (!match || match[1] >= 74) {
638
- match = userAgent.match(/Chrome\/(\d+)/);
639
- if (match) version = +match[1];
640
- }
641
- }
642
-
643
- module.exports = version;
644
-
645
- },{"../internals/environment-user-agent":15,"../internals/global-this":25}],17:[function(require,module,exports){
646
- 'use strict';
647
- var globalThis = require('../internals/global-this');
648
- var getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;
649
- var createNonEnumerableProperty = require('../internals/create-non-enumerable-property');
650
- var defineBuiltIn = require('../internals/define-built-in');
651
- var defineGlobalProperty = require('../internals/define-global-property');
652
- var copyConstructorProperties = require('../internals/copy-constructor-properties');
653
- var isForced = require('../internals/is-forced');
654
-
655
- /*
656
- options.target - name of the target object
657
- options.global - target is the global object
658
- options.stat - export as static methods of target
659
- options.proto - export as prototype methods of target
660
- options.real - real prototype method for the `pure` version
661
- options.forced - export even if the native feature is available
662
- options.bind - bind methods to the target, required for the `pure` version
663
- options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
664
- options.unsafe - use the simple assignment of property instead of delete + defineProperty
665
- options.sham - add a flag to not completely full polyfills
666
- options.enumerable - export as enumerable property
667
- options.dontCallGetSet - prevent calling a getter on target
668
- options.name - the .name of the function if it does not match the key
669
- */
670
- module.exports = function (options, source) {
671
- var TARGET = options.target;
672
- var GLOBAL = options.global;
673
- var STATIC = options.stat;
674
- var FORCED, target, key, targetProperty, sourceProperty, descriptor;
675
- if (GLOBAL) {
676
- target = globalThis;
677
- } else if (STATIC) {
678
- target = globalThis[TARGET] || defineGlobalProperty(TARGET, {});
679
- } else {
680
- target = globalThis[TARGET] && globalThis[TARGET].prototype;
681
- }
682
- if (target) for (key in source) {
683
- sourceProperty = source[key];
684
- if (options.dontCallGetSet) {
685
- descriptor = getOwnPropertyDescriptor(target, key);
686
- targetProperty = descriptor && descriptor.value;
687
- } else targetProperty = target[key];
688
- FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
689
- // contained in target
690
- if (!FORCED && targetProperty !== undefined) {
691
- if (typeof sourceProperty == typeof targetProperty) continue;
692
- copyConstructorProperties(sourceProperty, targetProperty);
693
- }
694
- // add a flag to not completely full polyfills
695
- if (options.sham || (targetProperty && targetProperty.sham)) {
696
- createNonEnumerableProperty(sourceProperty, 'sham', true);
697
- }
698
- defineBuiltIn(target, key, sourceProperty, options);
699
- }
700
- };
701
-
702
- },{"../internals/copy-constructor-properties":7,"../internals/create-non-enumerable-property":8,"../internals/define-built-in":10,"../internals/define-global-property":11,"../internals/global-this":25,"../internals/is-forced":33,"../internals/object-get-own-property-descriptor":42}],18:[function(require,module,exports){
703
- 'use strict';
704
- module.exports = function (exec) {
705
- try {
706
- return !!exec();
707
- } catch (error) {
708
- return true;
709
- }
710
- };
711
-
712
- },{}],19:[function(require,module,exports){
713
- 'use strict';
714
- var fails = require('../internals/fails');
715
-
716
- module.exports = !fails(function () {
717
- // eslint-disable-next-line es/no-function-prototype-bind -- safe
718
- var test = function () { /* empty */ }.bind();
719
- // eslint-disable-next-line no-prototype-builtins -- safe
720
- return typeof test != 'function' || test.hasOwnProperty('prototype');
721
- });
722
-
723
- },{"../internals/fails":18}],20:[function(require,module,exports){
724
- 'use strict';
725
- var NATIVE_BIND = require('../internals/function-bind-native');
726
-
727
- var call = Function.prototype.call;
728
- // eslint-disable-next-line es/no-function-prototype-bind -- safe
729
- module.exports = NATIVE_BIND ? call.bind(call) : function () {
730
- return call.apply(call, arguments);
731
- };
732
-
733
- },{"../internals/function-bind-native":19}],21:[function(require,module,exports){
734
- 'use strict';
735
- var DESCRIPTORS = require('../internals/descriptors');
736
- var hasOwn = require('../internals/has-own-property');
737
-
738
- var FunctionPrototype = Function.prototype;
739
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
740
- var getDescriptor = DESCRIPTORS && Object.getOwnPropertyDescriptor;
741
-
742
- var EXISTS = hasOwn(FunctionPrototype, 'name');
743
- // additional protection from minified / mangled / dropped function names
744
- var PROPER = EXISTS && function something() { /* empty */ }.name === 'something';
745
- var CONFIGURABLE = EXISTS && (!DESCRIPTORS || (DESCRIPTORS && getDescriptor(FunctionPrototype, 'name').configurable));
746
-
747
- module.exports = {
748
- EXISTS: EXISTS,
749
- PROPER: PROPER,
750
- CONFIGURABLE: CONFIGURABLE
751
- };
752
-
753
- },{"../internals/descriptors":12,"../internals/has-own-property":26}],22:[function(require,module,exports){
754
- 'use strict';
755
- var NATIVE_BIND = require('../internals/function-bind-native');
756
-
757
- var FunctionPrototype = Function.prototype;
758
- var call = FunctionPrototype.call;
759
- // eslint-disable-next-line es/no-function-prototype-bind -- safe
760
- var uncurryThisWithBind = NATIVE_BIND && FunctionPrototype.bind.bind(call, call);
761
-
762
- module.exports = NATIVE_BIND ? uncurryThisWithBind : function (fn) {
763
- return function () {
764
- return call.apply(fn, arguments);
765
- };
766
- };
767
-
768
- },{"../internals/function-bind-native":19}],23:[function(require,module,exports){
769
- 'use strict';
770
- var globalThis = require('../internals/global-this');
771
- var isCallable = require('../internals/is-callable');
772
-
773
- var aFunction = function (argument) {
774
- return isCallable(argument) ? argument : undefined;
775
- };
776
-
777
- module.exports = function (namespace, method) {
778
- return arguments.length < 2 ? aFunction(globalThis[namespace]) : globalThis[namespace] && globalThis[namespace][method];
779
- };
780
-
781
- },{"../internals/global-this":25,"../internals/is-callable":32}],24:[function(require,module,exports){
782
- 'use strict';
783
- var aCallable = require('../internals/a-callable');
784
- var isNullOrUndefined = require('../internals/is-null-or-undefined');
785
-
786
- // `GetMethod` abstract operation
787
- // https://tc39.es/ecma262/#sec-getmethod
788
- module.exports = function (V, P) {
789
- var func = V[P];
790
- return isNullOrUndefined(func) ? undefined : aCallable(func);
791
- };
792
-
793
- },{"../internals/a-callable":2,"../internals/is-null-or-undefined":34}],25:[function(require,module,exports){
794
- (function (global){(function (){
795
- 'use strict';
796
- var check = function (it) {
797
- return it && it.Math === Math && it;
798
- };
799
-
800
- // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
801
- module.exports =
802
- // eslint-disable-next-line es/no-global-this -- safe
803
- check(typeof globalThis == 'object' && globalThis) ||
804
- check(typeof window == 'object' && window) ||
805
- // eslint-disable-next-line no-restricted-globals -- safe
806
- check(typeof self == 'object' && self) ||
807
- check(typeof global == 'object' && global) ||
808
- check(typeof this == 'object' && this) ||
809
- // eslint-disable-next-line no-new-func -- fallback
810
- (function () { return this; })() || Function('return this')();
811
-
812
- }).call(this)}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
813
- },{}],26:[function(require,module,exports){
814
- 'use strict';
815
- var uncurryThis = require('../internals/function-uncurry-this');
816
- var toObject = require('../internals/to-object');
817
-
818
- var hasOwnProperty = uncurryThis({}.hasOwnProperty);
819
-
820
- // `HasOwnProperty` abstract operation
821
- // https://tc39.es/ecma262/#sec-hasownproperty
822
- // eslint-disable-next-line es/no-object-hasown -- safe
823
- module.exports = Object.hasOwn || function hasOwn(it, key) {
824
- return hasOwnProperty(toObject(it), key);
825
- };
826
-
827
- },{"../internals/function-uncurry-this":22,"../internals/to-object":59}],27:[function(require,module,exports){
828
- 'use strict';
829
- module.exports = {};
830
-
831
- },{}],28:[function(require,module,exports){
832
- 'use strict';
833
- var DESCRIPTORS = require('../internals/descriptors');
834
- var fails = require('../internals/fails');
835
- var createElement = require('../internals/document-create-element');
836
-
837
- // Thanks to IE8 for its funny defineProperty
838
- module.exports = !DESCRIPTORS && !fails(function () {
839
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
840
- return Object.defineProperty(createElement('div'), 'a', {
841
- get: function () { return 7; }
842
- }).a !== 7;
843
- });
844
-
845
- },{"../internals/descriptors":12,"../internals/document-create-element":13,"../internals/fails":18}],29:[function(require,module,exports){
846
- 'use strict';
847
- var uncurryThis = require('../internals/function-uncurry-this');
848
- var fails = require('../internals/fails');
849
- var classof = require('../internals/classof-raw');
850
-
851
- var $Object = Object;
852
- var split = uncurryThis(''.split);
853
-
854
- // fallback for non-array-like ES3 and non-enumerable old V8 strings
855
- module.exports = fails(function () {
856
- // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
857
- // eslint-disable-next-line no-prototype-builtins -- safe
858
- return !$Object('z').propertyIsEnumerable(0);
859
- }) ? function (it) {
860
- return classof(it) === 'String' ? split(it, '') : $Object(it);
861
- } : $Object;
862
-
863
- },{"../internals/classof-raw":6,"../internals/fails":18,"../internals/function-uncurry-this":22}],30:[function(require,module,exports){
864
- 'use strict';
865
- var uncurryThis = require('../internals/function-uncurry-this');
866
- var isCallable = require('../internals/is-callable');
867
- var store = require('../internals/shared-store');
868
-
869
- var functionToString = uncurryThis(Function.toString);
870
-
871
- // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
872
- if (!isCallable(store.inspectSource)) {
873
- store.inspectSource = function (it) {
874
- return functionToString(it);
875
- };
876
- }
877
-
878
- module.exports = store.inspectSource;
879
-
880
- },{"../internals/function-uncurry-this":22,"../internals/is-callable":32,"../internals/shared-store":52}],31:[function(require,module,exports){
881
- 'use strict';
882
- var NATIVE_WEAK_MAP = require('../internals/weak-map-basic-detection');
883
- var globalThis = require('../internals/global-this');
884
- var isObject = require('../internals/is-object');
885
- var createNonEnumerableProperty = require('../internals/create-non-enumerable-property');
886
- var hasOwn = require('../internals/has-own-property');
887
- var shared = require('../internals/shared-store');
888
- var sharedKey = require('../internals/shared-key');
889
- var hiddenKeys = require('../internals/hidden-keys');
890
-
891
- var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
892
- var TypeError = globalThis.TypeError;
893
- var WeakMap = globalThis.WeakMap;
894
- var set, get, has;
895
-
896
- var enforce = function (it) {
897
- return has(it) ? get(it) : set(it, {});
898
- };
899
-
900
- var getterFor = function (TYPE) {
901
- return function (it) {
902
- var state;
903
- if (!isObject(it) || (state = get(it)).type !== TYPE) {
904
- throw new TypeError('Incompatible receiver, ' + TYPE + ' required');
905
- } return state;
906
- };
907
- };
908
-
909
- if (NATIVE_WEAK_MAP || shared.state) {
910
- var store = shared.state || (shared.state = new WeakMap());
911
- /* eslint-disable no-self-assign -- prototype methods protection */
912
- store.get = store.get;
913
- store.has = store.has;
914
- store.set = store.set;
915
- /* eslint-enable no-self-assign -- prototype methods protection */
916
- set = function (it, metadata) {
917
- if (store.has(it)) throw new TypeError(OBJECT_ALREADY_INITIALIZED);
918
- metadata.facade = it;
919
- store.set(it, metadata);
920
- return metadata;
921
- };
922
- get = function (it) {
923
- return store.get(it) || {};
924
- };
925
- has = function (it) {
926
- return store.has(it);
927
- };
928
- } else {
929
- var STATE = sharedKey('state');
930
- hiddenKeys[STATE] = true;
931
- set = function (it, metadata) {
932
- if (hasOwn(it, STATE)) throw new TypeError(OBJECT_ALREADY_INITIALIZED);
933
- metadata.facade = it;
934
- createNonEnumerableProperty(it, STATE, metadata);
935
- return metadata;
936
- };
937
- get = function (it) {
938
- return hasOwn(it, STATE) ? it[STATE] : {};
939
- };
940
- has = function (it) {
941
- return hasOwn(it, STATE);
942
- };
943
- }
944
-
945
- module.exports = {
946
- set: set,
947
- get: get,
948
- has: has,
949
- enforce: enforce,
950
- getterFor: getterFor
951
- };
952
-
953
- },{"../internals/create-non-enumerable-property":8,"../internals/global-this":25,"../internals/has-own-property":26,"../internals/hidden-keys":27,"../internals/is-object":35,"../internals/shared-key":51,"../internals/shared-store":52,"../internals/weak-map-basic-detection":66}],32:[function(require,module,exports){
954
- 'use strict';
955
- // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
956
- var documentAll = typeof document == 'object' && document.all;
957
-
958
- // `IsCallable` abstract operation
959
- // https://tc39.es/ecma262/#sec-iscallable
960
- // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
961
- module.exports = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
962
- return typeof argument == 'function' || argument === documentAll;
963
- } : function (argument) {
964
- return typeof argument == 'function';
965
- };
966
-
967
- },{}],33:[function(require,module,exports){
968
- 'use strict';
969
- var fails = require('../internals/fails');
970
- var isCallable = require('../internals/is-callable');
971
-
972
- var replacement = /#|\.prototype\./;
973
-
974
- var isForced = function (feature, detection) {
975
- var value = data[normalize(feature)];
976
- return value === POLYFILL ? true
977
- : value === NATIVE ? false
978
- : isCallable(detection) ? fails(detection)
979
- : !!detection;
980
- };
981
-
982
- var normalize = isForced.normalize = function (string) {
983
- return String(string).replace(replacement, '.').toLowerCase();
984
- };
985
-
986
- var data = isForced.data = {};
987
- var NATIVE = isForced.NATIVE = 'N';
988
- var POLYFILL = isForced.POLYFILL = 'P';
989
-
990
- module.exports = isForced;
991
-
992
- },{"../internals/fails":18,"../internals/is-callable":32}],34:[function(require,module,exports){
993
- 'use strict';
994
- // we can't use just `it == null` since of `document.all` special case
995
- // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
996
- module.exports = function (it) {
997
- return it === null || it === undefined;
998
- };
999
-
1000
- },{}],35:[function(require,module,exports){
1001
- 'use strict';
1002
- var isCallable = require('../internals/is-callable');
1003
-
1004
- module.exports = function (it) {
1005
- return typeof it == 'object' ? it !== null : isCallable(it);
1006
- };
1007
-
1008
- },{"../internals/is-callable":32}],36:[function(require,module,exports){
1009
- 'use strict';
1010
- module.exports = false;
1011
-
1012
- },{}],37:[function(require,module,exports){
1013
- 'use strict';
1014
- var getBuiltIn = require('../internals/get-built-in');
1015
- var isCallable = require('../internals/is-callable');
1016
- var isPrototypeOf = require('../internals/object-is-prototype-of');
1017
- var USE_SYMBOL_AS_UID = require('../internals/use-symbol-as-uid');
1018
-
1019
- var $Object = Object;
1020
-
1021
- module.exports = USE_SYMBOL_AS_UID ? function (it) {
1022
- return typeof it == 'symbol';
1023
- } : function (it) {
1024
- var $Symbol = getBuiltIn('Symbol');
1025
- return isCallable($Symbol) && isPrototypeOf($Symbol.prototype, $Object(it));
1026
- };
1027
-
1028
- },{"../internals/get-built-in":23,"../internals/is-callable":32,"../internals/object-is-prototype-of":45,"../internals/use-symbol-as-uid":64}],38:[function(require,module,exports){
1029
- 'use strict';
1030
- var toLength = require('../internals/to-length');
1031
-
1032
- // `LengthOfArrayLike` abstract operation
1033
- // https://tc39.es/ecma262/#sec-lengthofarraylike
1034
- module.exports = function (obj) {
1035
- return toLength(obj.length);
1036
- };
1037
-
1038
- },{"../internals/to-length":58}],39:[function(require,module,exports){
1039
- 'use strict';
1040
- var uncurryThis = require('../internals/function-uncurry-this');
1041
- var fails = require('../internals/fails');
1042
- var isCallable = require('../internals/is-callable');
1043
- var hasOwn = require('../internals/has-own-property');
1044
- var DESCRIPTORS = require('../internals/descriptors');
1045
- var CONFIGURABLE_FUNCTION_NAME = require('../internals/function-name').CONFIGURABLE;
1046
- var inspectSource = require('../internals/inspect-source');
1047
- var InternalStateModule = require('../internals/internal-state');
1048
-
1049
- var enforceInternalState = InternalStateModule.enforce;
1050
- var getInternalState = InternalStateModule.get;
1051
- var $String = String;
1052
- // eslint-disable-next-line es/no-object-defineproperty -- safe
1053
- var defineProperty = Object.defineProperty;
1054
- var stringSlice = uncurryThis(''.slice);
1055
- var replace = uncurryThis(''.replace);
1056
- var join = uncurryThis([].join);
1057
-
1058
- var CONFIGURABLE_LENGTH = DESCRIPTORS && !fails(function () {
1059
- return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
1060
- });
1061
-
1062
- var TEMPLATE = String(String).split('String');
1063
-
1064
- var makeBuiltIn = module.exports = function (value, name, options) {
1065
- if (stringSlice($String(name), 0, 7) === 'Symbol(') {
1066
- name = '[' + replace($String(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']';
1067
- }
1068
- if (options && options.getter) name = 'get ' + name;
1069
- if (options && options.setter) name = 'set ' + name;
1070
- if (!hasOwn(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
1071
- if (DESCRIPTORS) defineProperty(value, 'name', { value: name, configurable: true });
1072
- else value.name = name;
1073
- }
1074
- if (CONFIGURABLE_LENGTH && options && hasOwn(options, 'arity') && value.length !== options.arity) {
1075
- defineProperty(value, 'length', { value: options.arity });
1076
- }
1077
- try {
1078
- if (options && hasOwn(options, 'constructor') && options.constructor) {
1079
- if (DESCRIPTORS) defineProperty(value, 'prototype', { writable: false });
1080
- // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
1081
- } else if (value.prototype) value.prototype = undefined;
1082
- } catch (error) { /* empty */ }
1083
- var state = enforceInternalState(value);
1084
- if (!hasOwn(state, 'source')) {
1085
- state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
1086
- } return value;
1087
- };
1088
-
1089
- // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
1090
- // eslint-disable-next-line no-extend-native -- required
1091
- Function.prototype.toString = makeBuiltIn(function toString() {
1092
- return isCallable(this) && getInternalState(this).source || inspectSource(this);
1093
- }, 'toString');
1094
-
1095
- },{"../internals/descriptors":12,"../internals/fails":18,"../internals/function-name":21,"../internals/function-uncurry-this":22,"../internals/has-own-property":26,"../internals/inspect-source":30,"../internals/internal-state":31,"../internals/is-callable":32}],40:[function(require,module,exports){
1096
- 'use strict';
1097
- var ceil = Math.ceil;
1098
- var floor = Math.floor;
1099
-
1100
- // `Math.trunc` method
1101
- // https://tc39.es/ecma262/#sec-math.trunc
1102
- // eslint-disable-next-line es/no-math-trunc -- safe
1103
- module.exports = Math.trunc || function trunc(x) {
1104
- var n = +x;
1105
- return (n > 0 ? floor : ceil)(n);
1106
- };
1107
-
1108
- },{}],41:[function(require,module,exports){
1109
- 'use strict';
1110
- var DESCRIPTORS = require('../internals/descriptors');
1111
- var IE8_DOM_DEFINE = require('../internals/ie8-dom-define');
1112
- var V8_PROTOTYPE_DEFINE_BUG = require('../internals/v8-prototype-define-bug');
1113
- var anObject = require('../internals/an-object');
1114
- var toPropertyKey = require('../internals/to-property-key');
1115
-
1116
- var $TypeError = TypeError;
1117
- // eslint-disable-next-line es/no-object-defineproperty -- safe
1118
- var $defineProperty = Object.defineProperty;
1119
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
1120
- var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
1121
- var ENUMERABLE = 'enumerable';
1122
- var CONFIGURABLE = 'configurable';
1123
- var WRITABLE = 'writable';
1124
-
1125
- // `Object.defineProperty` method
1126
- // https://tc39.es/ecma262/#sec-object.defineproperty
1127
- exports.f = DESCRIPTORS ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) {
1128
- anObject(O);
1129
- P = toPropertyKey(P);
1130
- anObject(Attributes);
1131
- if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
1132
- var current = $getOwnPropertyDescriptor(O, P);
1133
- if (current && current[WRITABLE]) {
1134
- O[P] = Attributes.value;
1135
- Attributes = {
1136
- configurable: CONFIGURABLE in Attributes ? Attributes[CONFIGURABLE] : current[CONFIGURABLE],
1137
- enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
1138
- writable: false
1139
- };
1140
- }
1141
- } return $defineProperty(O, P, Attributes);
1142
- } : $defineProperty : function defineProperty(O, P, Attributes) {
1143
- anObject(O);
1144
- P = toPropertyKey(P);
1145
- anObject(Attributes);
1146
- if (IE8_DOM_DEFINE) try {
1147
- return $defineProperty(O, P, Attributes);
1148
- } catch (error) { /* empty */ }
1149
- if ('get' in Attributes || 'set' in Attributes) throw new $TypeError('Accessors not supported');
1150
- if ('value' in Attributes) O[P] = Attributes.value;
1151
- return O;
1152
- };
1153
-
1154
- },{"../internals/an-object":4,"../internals/descriptors":12,"../internals/ie8-dom-define":28,"../internals/to-property-key":61,"../internals/v8-prototype-define-bug":65}],42:[function(require,module,exports){
1155
- 'use strict';
1156
- var DESCRIPTORS = require('../internals/descriptors');
1157
- var call = require('../internals/function-call');
1158
- var propertyIsEnumerableModule = require('../internals/object-property-is-enumerable');
1159
- var createPropertyDescriptor = require('../internals/create-property-descriptor');
1160
- var toIndexedObject = require('../internals/to-indexed-object');
1161
- var toPropertyKey = require('../internals/to-property-key');
1162
- var hasOwn = require('../internals/has-own-property');
1163
- var IE8_DOM_DEFINE = require('../internals/ie8-dom-define');
1164
-
1165
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
1166
- var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
1167
-
1168
- // `Object.getOwnPropertyDescriptor` method
1169
- // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
1170
- exports.f = DESCRIPTORS ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
1171
- O = toIndexedObject(O);
1172
- P = toPropertyKey(P);
1173
- if (IE8_DOM_DEFINE) try {
1174
- return $getOwnPropertyDescriptor(O, P);
1175
- } catch (error) { /* empty */ }
1176
- if (hasOwn(O, P)) return createPropertyDescriptor(!call(propertyIsEnumerableModule.f, O, P), O[P]);
1177
- };
1178
-
1179
- },{"../internals/create-property-descriptor":9,"../internals/descriptors":12,"../internals/function-call":20,"../internals/has-own-property":26,"../internals/ie8-dom-define":28,"../internals/object-property-is-enumerable":47,"../internals/to-indexed-object":56,"../internals/to-property-key":61}],43:[function(require,module,exports){
1180
- 'use strict';
1181
- var internalObjectKeys = require('../internals/object-keys-internal');
1182
- var enumBugKeys = require('../internals/enum-bug-keys');
1183
-
1184
- var hiddenKeys = enumBugKeys.concat('length', 'prototype');
1185
-
1186
- // `Object.getOwnPropertyNames` method
1187
- // https://tc39.es/ecma262/#sec-object.getownpropertynames
1188
- // eslint-disable-next-line es/no-object-getownpropertynames -- safe
1189
- exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
1190
- return internalObjectKeys(O, hiddenKeys);
1191
- };
1192
-
1193
- },{"../internals/enum-bug-keys":14,"../internals/object-keys-internal":46}],44:[function(require,module,exports){
1194
- 'use strict';
1195
- // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
1196
- exports.f = Object.getOwnPropertySymbols;
1197
-
1198
- },{}],45:[function(require,module,exports){
1199
- 'use strict';
1200
- var uncurryThis = require('../internals/function-uncurry-this');
1201
-
1202
- module.exports = uncurryThis({}.isPrototypeOf);
1203
-
1204
- },{"../internals/function-uncurry-this":22}],46:[function(require,module,exports){
1205
- 'use strict';
1206
- var uncurryThis = require('../internals/function-uncurry-this');
1207
- var hasOwn = require('../internals/has-own-property');
1208
- var toIndexedObject = require('../internals/to-indexed-object');
1209
- var indexOf = require('../internals/array-includes').indexOf;
1210
- var hiddenKeys = require('../internals/hidden-keys');
1211
-
1212
- var push = uncurryThis([].push);
1213
-
1214
- module.exports = function (object, names) {
1215
- var O = toIndexedObject(object);
1216
- var i = 0;
1217
- var result = [];
1218
- var key;
1219
- for (key in O) !hasOwn(hiddenKeys, key) && hasOwn(O, key) && push(result, key);
1220
- // Don't enum bug & hidden keys
1221
- while (names.length > i) if (hasOwn(O, key = names[i++])) {
1222
- ~indexOf(result, key) || push(result, key);
1223
- }
1224
- return result;
1225
- };
1226
-
1227
- },{"../internals/array-includes":5,"../internals/function-uncurry-this":22,"../internals/has-own-property":26,"../internals/hidden-keys":27,"../internals/to-indexed-object":56}],47:[function(require,module,exports){
1228
- 'use strict';
1229
- var $propertyIsEnumerable = {}.propertyIsEnumerable;
1230
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
1231
- var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
1232
-
1233
- // Nashorn ~ JDK8 bug
1234
- var NASHORN_BUG = getOwnPropertyDescriptor && !$propertyIsEnumerable.call({ 1: 2 }, 1);
1235
-
1236
- // `Object.prototype.propertyIsEnumerable` method implementation
1237
- // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
1238
- exports.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
1239
- var descriptor = getOwnPropertyDescriptor(this, V);
1240
- return !!descriptor && descriptor.enumerable;
1241
- } : $propertyIsEnumerable;
1242
-
1243
- },{}],48:[function(require,module,exports){
1244
- 'use strict';
1245
- var call = require('../internals/function-call');
1246
- var isCallable = require('../internals/is-callable');
1247
- var isObject = require('../internals/is-object');
1248
-
1249
- var $TypeError = TypeError;
1250
-
1251
- // `OrdinaryToPrimitive` abstract operation
1252
- // https://tc39.es/ecma262/#sec-ordinarytoprimitive
1253
- module.exports = function (input, pref) {
1254
- var fn, val;
1255
- if (pref === 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;
1256
- if (isCallable(fn = input.valueOf) && !isObject(val = call(fn, input))) return val;
1257
- if (pref !== 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;
1258
- throw new $TypeError("Can't convert object to primitive value");
1259
- };
1260
-
1261
- },{"../internals/function-call":20,"../internals/is-callable":32,"../internals/is-object":35}],49:[function(require,module,exports){
1262
- 'use strict';
1263
- var getBuiltIn = require('../internals/get-built-in');
1264
- var uncurryThis = require('../internals/function-uncurry-this');
1265
- var getOwnPropertyNamesModule = require('../internals/object-get-own-property-names');
1266
- var getOwnPropertySymbolsModule = require('../internals/object-get-own-property-symbols');
1267
- var anObject = require('../internals/an-object');
1268
-
1269
- var concat = uncurryThis([].concat);
1270
-
1271
- // all object keys, includes non-enumerable and symbols
1272
- module.exports = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
1273
- var keys = getOwnPropertyNamesModule.f(anObject(it));
1274
- var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
1275
- return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys;
1276
- };
1277
-
1278
- },{"../internals/an-object":4,"../internals/function-uncurry-this":22,"../internals/get-built-in":23,"../internals/object-get-own-property-names":43,"../internals/object-get-own-property-symbols":44}],50:[function(require,module,exports){
1279
- 'use strict';
1280
- var isNullOrUndefined = require('../internals/is-null-or-undefined');
1281
-
1282
- var $TypeError = TypeError;
1283
-
1284
- // `RequireObjectCoercible` abstract operation
1285
- // https://tc39.es/ecma262/#sec-requireobjectcoercible
1286
- module.exports = function (it) {
1287
- if (isNullOrUndefined(it)) throw new $TypeError("Can't call method on " + it);
1288
- return it;
1289
- };
1290
-
1291
- },{"../internals/is-null-or-undefined":34}],51:[function(require,module,exports){
1292
- 'use strict';
1293
- var shared = require('../internals/shared');
1294
- var uid = require('../internals/uid');
1295
-
1296
- var keys = shared('keys');
1297
-
1298
- module.exports = function (key) {
1299
- return keys[key] || (keys[key] = uid(key));
1300
- };
1301
-
1302
- },{"../internals/shared":53,"../internals/uid":63}],52:[function(require,module,exports){
1303
- 'use strict';
1304
- var IS_PURE = require('../internals/is-pure');
1305
- var globalThis = require('../internals/global-this');
1306
- var defineGlobalProperty = require('../internals/define-global-property');
1307
-
1308
- var SHARED = '__core-js_shared__';
1309
- var store = module.exports = globalThis[SHARED] || defineGlobalProperty(SHARED, {});
1310
-
1311
- (store.versions || (store.versions = [])).push({
1312
- version: '3.50.0',
1313
- mode: IS_PURE ? 'pure' : 'global',
1314
- copyright: '© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.',
1315
- license: 'https://github.com/zloirock/core-js/blob/v3.50.0/LICENSE',
1316
- source: 'https://github.com/zloirock/core-js'
1317
- });
1318
-
1319
- },{"../internals/define-global-property":11,"../internals/global-this":25,"../internals/is-pure":36}],53:[function(require,module,exports){
1320
- 'use strict';
1321
- var store = require('../internals/shared-store');
1322
- // eslint-disable-next-line es/no-object-create -- safe
1323
- var create = Object.create || Object;
1324
-
1325
- module.exports = function (key, value) {
1326
- return store[key] || (store[key] = value || create(null));
1327
- };
1328
-
1329
- },{"../internals/shared-store":52}],54:[function(require,module,exports){
1330
- 'use strict';
1331
- /* eslint-disable es/no-symbol -- required for testing */
1332
- var V8_VERSION = require('../internals/environment-v8-version');
1333
- var fails = require('../internals/fails');
1334
- var globalThis = require('../internals/global-this');
1335
-
1336
- var $String = globalThis.String;
1337
-
1338
- // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
1339
- module.exports = !!Object.getOwnPropertySymbols && !fails(function () {
1340
- var symbol = Symbol('symbol detection');
1341
- // Chrome 38 Symbol has incorrect toString conversion
1342
- // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
1343
- // nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
1344
- // of course, fail.
1345
- return !$String(symbol) || !(Object(symbol) instanceof Symbol) ||
1346
- // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
1347
- !Symbol.sham && V8_VERSION && V8_VERSION < 41;
1348
- });
1349
-
1350
- },{"../internals/environment-v8-version":16,"../internals/fails":18,"../internals/global-this":25}],55:[function(require,module,exports){
1351
- 'use strict';
1352
- var toIntegerOrInfinity = require('../internals/to-integer-or-infinity');
1353
-
1354
- var max = Math.max;
1355
- var min = Math.min;
1356
-
1357
- // Helper for a popular repeating case of the spec:
1358
- // Let integer be ? ToInteger(index).
1359
- // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
1360
- module.exports = function (index, length) {
1361
- var integer = toIntegerOrInfinity(index);
1362
- return integer < 0 ? max(integer + length, 0) : min(integer, length);
1363
- };
1364
-
1365
- },{"../internals/to-integer-or-infinity":57}],56:[function(require,module,exports){
1366
- 'use strict';
1367
- // toObject with fallback for non-array-like ES3 strings
1368
- var IndexedObject = require('../internals/indexed-object');
1369
- var requireObjectCoercible = require('../internals/require-object-coercible');
1370
-
1371
- module.exports = function (it) {
1372
- return IndexedObject(requireObjectCoercible(it));
1373
- };
1374
-
1375
- },{"../internals/indexed-object":29,"../internals/require-object-coercible":50}],57:[function(require,module,exports){
1376
- 'use strict';
1377
- var trunc = require('../internals/math-trunc');
1378
-
1379
- // `ToIntegerOrInfinity` abstract operation
1380
- // https://tc39.es/ecma262/#sec-tointegerorinfinity
1381
- module.exports = function (argument) {
1382
- var number = +argument;
1383
- // eslint-disable-next-line no-self-compare -- NaN check
1384
- return number !== number || number === 0 ? 0 : trunc(number);
1385
- };
1386
-
1387
- },{"../internals/math-trunc":40}],58:[function(require,module,exports){
1388
- 'use strict';
1389
- var toIntegerOrInfinity = require('../internals/to-integer-or-infinity');
1390
-
1391
- var min = Math.min;
1392
-
1393
- // `ToLength` abstract operation
1394
- // https://tc39.es/ecma262/#sec-tolength
1395
- module.exports = function (argument) {
1396
- var len = toIntegerOrInfinity(argument);
1397
- return len > 0 ? min(len, 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
1398
- };
1399
-
1400
- },{"../internals/to-integer-or-infinity":57}],59:[function(require,module,exports){
1401
- 'use strict';
1402
- var requireObjectCoercible = require('../internals/require-object-coercible');
1403
-
1404
- var $Object = Object;
1405
-
1406
- // `ToObject` abstract operation
1407
- // https://tc39.es/ecma262/#sec-toobject
1408
- module.exports = function (argument) {
1409
- return $Object(requireObjectCoercible(argument));
1410
- };
1411
-
1412
- },{"../internals/require-object-coercible":50}],60:[function(require,module,exports){
1413
- 'use strict';
1414
- var call = require('../internals/function-call');
1415
- var isObject = require('../internals/is-object');
1416
- var isSymbol = require('../internals/is-symbol');
1417
- var getMethod = require('../internals/get-method');
1418
- var ordinaryToPrimitive = require('../internals/ordinary-to-primitive');
1419
- var wellKnownSymbol = require('../internals/well-known-symbol');
1420
-
1421
- var $TypeError = TypeError;
1422
- var TO_PRIMITIVE = wellKnownSymbol('toPrimitive');
1423
-
1424
- // `ToPrimitive` abstract operation
1425
- // https://tc39.es/ecma262/#sec-toprimitive
1426
- module.exports = function (input, pref) {
1427
- if (!isObject(input) || isSymbol(input)) return input;
1428
- var exoticToPrim = getMethod(input, TO_PRIMITIVE);
1429
- var result;
1430
- if (exoticToPrim) {
1431
- if (pref === undefined) pref = 'default';
1432
- result = call(exoticToPrim, input, pref);
1433
- if (!isObject(result) || isSymbol(result)) return result;
1434
- throw new $TypeError("Can't convert object to primitive value");
1435
- }
1436
- if (pref === undefined) pref = 'number';
1437
- return ordinaryToPrimitive(input, pref);
1438
- };
1439
-
1440
- },{"../internals/function-call":20,"../internals/get-method":24,"../internals/is-object":35,"../internals/is-symbol":37,"../internals/ordinary-to-primitive":48,"../internals/well-known-symbol":68}],61:[function(require,module,exports){
1441
- 'use strict';
1442
- var toPrimitive = require('../internals/to-primitive');
1443
- var isSymbol = require('../internals/is-symbol');
1444
-
1445
- // `ToPropertyKey` abstract operation
1446
- // https://tc39.es/ecma262/#sec-topropertykey
1447
- module.exports = function (argument) {
1448
- var key = toPrimitive(argument, 'string');
1449
- return isSymbol(key) ? key : key + '';
1450
- };
1451
-
1452
- },{"../internals/is-symbol":37,"../internals/to-primitive":60}],62:[function(require,module,exports){
1453
- 'use strict';
1454
- var $String = String;
1455
-
1456
- module.exports = function (argument) {
1457
- try {
1458
- return $String(argument);
1459
- } catch (error) {
1460
- return 'Object';
1461
- }
1462
- };
1463
-
1464
- },{}],63:[function(require,module,exports){
1465
- 'use strict';
1466
- var uncurryThis = require('../internals/function-uncurry-this');
1467
-
1468
- var id = 0;
1469
- var postfix = Math.random();
1470
- var toString = uncurryThis(1.1.toString);
1471
-
1472
- module.exports = function (key) {
1473
- return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
1474
- };
1475
-
1476
- },{"../internals/function-uncurry-this":22}],64:[function(require,module,exports){
1477
- 'use strict';
1478
- /* eslint-disable es/no-symbol -- required for testing */
1479
- var NATIVE_SYMBOL = require('../internals/symbol-constructor-detection');
1480
-
1481
- module.exports = NATIVE_SYMBOL &&
1482
- !Symbol.sham &&
1483
- typeof Symbol.iterator == 'symbol';
1484
-
1485
- },{"../internals/symbol-constructor-detection":54}],65:[function(require,module,exports){
1486
- 'use strict';
1487
- var DESCRIPTORS = require('../internals/descriptors');
1488
- var fails = require('../internals/fails');
1489
-
1490
- // V8 ~ Chrome 36-
1491
- // https://bugs.chromium.org/p/v8/issues/detail?id=3334
1492
- module.exports = DESCRIPTORS && fails(function () {
1493
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
1494
- return Object.defineProperty(function () { /* empty */ }, 'prototype', {
1495
- value: 42,
1496
- writable: false
1497
- }).prototype !== 42;
1498
- });
1499
-
1500
- },{"../internals/descriptors":12,"../internals/fails":18}],66:[function(require,module,exports){
1501
- 'use strict';
1502
- var globalThis = require('../internals/global-this');
1503
- var isCallable = require('../internals/is-callable');
1504
-
1505
- var WeakMap = globalThis.WeakMap;
1506
-
1507
- module.exports = isCallable(WeakMap) && /native code/.test(String(WeakMap));
1508
-
1509
- },{"../internals/global-this":25,"../internals/is-callable":32}],67:[function(require,module,exports){
1510
- 'use strict';
1511
- var uncurryThis = require('../internals/function-uncurry-this');
1512
-
1513
- // eslint-disable-next-line es/no-weak-map -- safe
1514
- var WeakMapPrototype = WeakMap.prototype;
1515
-
1516
- module.exports = {
1517
- // eslint-disable-next-line es/no-weak-map -- safe
1518
- WeakMap: WeakMap,
1519
- set: uncurryThis(WeakMapPrototype.set),
1520
- get: uncurryThis(WeakMapPrototype.get),
1521
- has: uncurryThis(WeakMapPrototype.has),
1522
- remove: uncurryThis(WeakMapPrototype['delete'])
1523
- };
1524
-
1525
- },{"../internals/function-uncurry-this":22}],68:[function(require,module,exports){
1526
- 'use strict';
1527
- var globalThis = require('../internals/global-this');
1528
- var shared = require('../internals/shared');
1529
- var hasOwn = require('../internals/has-own-property');
1530
- var uid = require('../internals/uid');
1531
- var NATIVE_SYMBOL = require('../internals/symbol-constructor-detection');
1532
- var USE_SYMBOL_AS_UID = require('../internals/use-symbol-as-uid');
1533
-
1534
- var Symbol = globalThis.Symbol;
1535
- var WellKnownSymbolsStore = shared('wks');
1536
- var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol['for'] || Symbol : Symbol && Symbol.withoutSetter || uid;
1537
-
1538
- module.exports = function (name) {
1539
- if (!hasOwn(WellKnownSymbolsStore, name)) {
1540
- WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn(Symbol, name)
1541
- ? Symbol[name]
1542
- : createWellKnownSymbol('Symbol.' + name);
1543
- } return WellKnownSymbolsStore[name];
1544
- };
1545
-
1546
- },{"../internals/global-this":25,"../internals/has-own-property":26,"../internals/shared":53,"../internals/symbol-constructor-detection":54,"../internals/uid":63,"../internals/use-symbol-as-uid":64}],69:[function(require,module,exports){
1547
- 'use strict';
1548
- var $ = require('../internals/export');
1549
- var aWeakMap = require('../internals/a-weak-map');
1550
- var remove = require('../internals/weak-map-helpers').remove;
1551
-
1552
- // `WeakMap.prototype.deleteAll` method
1553
- // https://github.com/tc39/proposal-collection-methods
1554
- $({ target: 'WeakMap', proto: true, real: true, forced: true }, {
1555
- deleteAll: function deleteAll(/* ...elements */) {
1556
- var collection = aWeakMap(this);
1557
- var allDeleted = true;
1558
- var wasDeleted;
1559
- for (var k = 0, len = arguments.length; k < len; k++) {
1560
- wasDeleted = remove(collection, arguments[k]);
1561
- allDeleted = allDeleted && wasDeleted;
1562
- } return !!allDeleted;
1563
- }
1564
- });
1565
-
1566
- },{"../internals/a-weak-map":3,"../internals/export":17,"../internals/weak-map-helpers":67}]},{},[1])(1)
1567
- });
1
+ "use strict";
2
+ var titleSwitcher = (() => {
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __esm = (fn, res, err) => function __init() {
5
+ if (err) throw err[0];
6
+ try {
7
+ return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
8
+ } catch (e) {
9
+ throw err = [e], e;
10
+ }
11
+ };
12
+ var __commonJS = (cb, mod) => function __require() {
13
+ try {
14
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
15
+ } catch (e) {
16
+ throw mod = 0, e;
17
+ }
18
+ };
19
+
20
+ // js-build-tools-inject:process
21
+ var init_process = __esm({
22
+ "js-build-tools-inject:process"() {
23
+ }
24
+ });
25
+
26
+ // node_modules/core-js/internals/global-this.js
27
+ var require_global_this = __commonJS({
28
+ "node_modules/core-js/internals/global-this.js"(exports, module) {
29
+ "use strict";
30
+ init_process();
31
+ var check = function(it) {
32
+ return it && it.Math === Math && it;
33
+ };
34
+ module.exports = // eslint-disable-next-line es/no-global-this -- safe
35
+ check(typeof globalThis == "object" && globalThis) || check(typeof window == "object" && window) || // eslint-disable-next-line no-restricted-globals -- safe
36
+ check(typeof self == "object" && self) || check(typeof globalThis == "object" && globalThis) || check(typeof exports == "object" && exports) || // eslint-disable-next-line no-new-func -- fallback
37
+ /* @__PURE__ */ (function() {
38
+ return this;
39
+ })() || Function("return this")();
40
+ }
41
+ });
42
+
43
+ // node_modules/core-js/internals/fails.js
44
+ var require_fails = __commonJS({
45
+ "node_modules/core-js/internals/fails.js"(exports, module) {
46
+ "use strict";
47
+ init_process();
48
+ module.exports = function(exec) {
49
+ try {
50
+ return !!exec();
51
+ } catch (error) {
52
+ return true;
53
+ }
54
+ };
55
+ }
56
+ });
57
+
58
+ // node_modules/core-js/internals/descriptors.js
59
+ var require_descriptors = __commonJS({
60
+ "node_modules/core-js/internals/descriptors.js"(exports, module) {
61
+ "use strict";
62
+ init_process();
63
+ var fails = require_fails();
64
+ module.exports = !fails(function() {
65
+ return Object.defineProperty({}, 1, { get: function() {
66
+ return 7;
67
+ } })[1] !== 7;
68
+ });
69
+ }
70
+ });
71
+
72
+ // node_modules/core-js/internals/function-bind-native.js
73
+ var require_function_bind_native = __commonJS({
74
+ "node_modules/core-js/internals/function-bind-native.js"(exports, module) {
75
+ "use strict";
76
+ init_process();
77
+ var fails = require_fails();
78
+ module.exports = !fails(function() {
79
+ var test = function() {
80
+ }.bind();
81
+ return typeof test != "function" || test.hasOwnProperty("prototype");
82
+ });
83
+ }
84
+ });
85
+
86
+ // node_modules/core-js/internals/function-call.js
87
+ var require_function_call = __commonJS({
88
+ "node_modules/core-js/internals/function-call.js"(exports, module) {
89
+ "use strict";
90
+ init_process();
91
+ var NATIVE_BIND = require_function_bind_native();
92
+ var call = Function.prototype.call;
93
+ module.exports = NATIVE_BIND ? call.bind(call) : function() {
94
+ return call.apply(call, arguments);
95
+ };
96
+ }
97
+ });
98
+
99
+ // node_modules/core-js/internals/object-property-is-enumerable.js
100
+ var require_object_property_is_enumerable = __commonJS({
101
+ "node_modules/core-js/internals/object-property-is-enumerable.js"(exports) {
102
+ "use strict";
103
+ init_process();
104
+ var $propertyIsEnumerable = {}.propertyIsEnumerable;
105
+ var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
106
+ var NASHORN_BUG = getOwnPropertyDescriptor && !$propertyIsEnumerable.call({ 1: 2 }, 1);
107
+ exports.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
108
+ var descriptor = getOwnPropertyDescriptor(this, V);
109
+ return !!descriptor && descriptor.enumerable;
110
+ } : $propertyIsEnumerable;
111
+ }
112
+ });
113
+
114
+ // node_modules/core-js/internals/create-property-descriptor.js
115
+ var require_create_property_descriptor = __commonJS({
116
+ "node_modules/core-js/internals/create-property-descriptor.js"(exports, module) {
117
+ "use strict";
118
+ init_process();
119
+ module.exports = function(bitmap, value) {
120
+ return {
121
+ enumerable: !(bitmap & 1),
122
+ configurable: !(bitmap & 2),
123
+ writable: !(bitmap & 4),
124
+ value
125
+ };
126
+ };
127
+ }
128
+ });
129
+
130
+ // node_modules/core-js/internals/function-uncurry-this.js
131
+ var require_function_uncurry_this = __commonJS({
132
+ "node_modules/core-js/internals/function-uncurry-this.js"(exports, module) {
133
+ "use strict";
134
+ init_process();
135
+ var NATIVE_BIND = require_function_bind_native();
136
+ var FunctionPrototype = Function.prototype;
137
+ var call = FunctionPrototype.call;
138
+ var uncurryThisWithBind = NATIVE_BIND && FunctionPrototype.bind.bind(call, call);
139
+ module.exports = NATIVE_BIND ? uncurryThisWithBind : function(fn) {
140
+ return function() {
141
+ return call.apply(fn, arguments);
142
+ };
143
+ };
144
+ }
145
+ });
146
+
147
+ // node_modules/core-js/internals/classof-raw.js
148
+ var require_classof_raw = __commonJS({
149
+ "node_modules/core-js/internals/classof-raw.js"(exports, module) {
150
+ "use strict";
151
+ init_process();
152
+ var uncurryThis = require_function_uncurry_this();
153
+ var toString = uncurryThis({}.toString);
154
+ var stringSlice = uncurryThis("".slice);
155
+ module.exports = function(it) {
156
+ return stringSlice(toString(it), 8, -1);
157
+ };
158
+ }
159
+ });
160
+
161
+ // node_modules/core-js/internals/indexed-object.js
162
+ var require_indexed_object = __commonJS({
163
+ "node_modules/core-js/internals/indexed-object.js"(exports, module) {
164
+ "use strict";
165
+ init_process();
166
+ var uncurryThis = require_function_uncurry_this();
167
+ var fails = require_fails();
168
+ var classof = require_classof_raw();
169
+ var $Object = Object;
170
+ var split = uncurryThis("".split);
171
+ module.exports = fails(function() {
172
+ return !$Object("z").propertyIsEnumerable(0);
173
+ }) ? function(it) {
174
+ return classof(it) === "String" ? split(it, "") : $Object(it);
175
+ } : $Object;
176
+ }
177
+ });
178
+
179
+ // node_modules/core-js/internals/is-null-or-undefined.js
180
+ var require_is_null_or_undefined = __commonJS({
181
+ "node_modules/core-js/internals/is-null-or-undefined.js"(exports, module) {
182
+ "use strict";
183
+ init_process();
184
+ module.exports = function(it) {
185
+ return it === null || it === void 0;
186
+ };
187
+ }
188
+ });
189
+
190
+ // node_modules/core-js/internals/require-object-coercible.js
191
+ var require_require_object_coercible = __commonJS({
192
+ "node_modules/core-js/internals/require-object-coercible.js"(exports, module) {
193
+ "use strict";
194
+ init_process();
195
+ var isNullOrUndefined = require_is_null_or_undefined();
196
+ var $TypeError = TypeError;
197
+ module.exports = function(it) {
198
+ if (isNullOrUndefined(it)) throw new $TypeError("Can't call method on " + it);
199
+ return it;
200
+ };
201
+ }
202
+ });
203
+
204
+ // node_modules/core-js/internals/to-indexed-object.js
205
+ var require_to_indexed_object = __commonJS({
206
+ "node_modules/core-js/internals/to-indexed-object.js"(exports, module) {
207
+ "use strict";
208
+ init_process();
209
+ var IndexedObject = require_indexed_object();
210
+ var requireObjectCoercible = require_require_object_coercible();
211
+ module.exports = function(it) {
212
+ return IndexedObject(requireObjectCoercible(it));
213
+ };
214
+ }
215
+ });
216
+
217
+ // node_modules/core-js/internals/is-callable.js
218
+ var require_is_callable = __commonJS({
219
+ "node_modules/core-js/internals/is-callable.js"(exports, module) {
220
+ "use strict";
221
+ init_process();
222
+ var documentAll = typeof document == "object" && document.all;
223
+ module.exports = typeof documentAll == "undefined" && documentAll !== void 0 ? function(argument) {
224
+ return typeof argument == "function" || argument === documentAll;
225
+ } : function(argument) {
226
+ return typeof argument == "function";
227
+ };
228
+ }
229
+ });
230
+
231
+ // node_modules/core-js/internals/is-object.js
232
+ var require_is_object = __commonJS({
233
+ "node_modules/core-js/internals/is-object.js"(exports, module) {
234
+ "use strict";
235
+ init_process();
236
+ var isCallable = require_is_callable();
237
+ module.exports = function(it) {
238
+ return typeof it == "object" ? it !== null : isCallable(it);
239
+ };
240
+ }
241
+ });
242
+
243
+ // node_modules/core-js/internals/get-built-in.js
244
+ var require_get_built_in = __commonJS({
245
+ "node_modules/core-js/internals/get-built-in.js"(exports, module) {
246
+ "use strict";
247
+ init_process();
248
+ var globalThis2 = require_global_this();
249
+ var isCallable = require_is_callable();
250
+ var aFunction = function(argument) {
251
+ return isCallable(argument) ? argument : void 0;
252
+ };
253
+ module.exports = function(namespace, method) {
254
+ return arguments.length < 2 ? aFunction(globalThis2[namespace]) : globalThis2[namespace] && globalThis2[namespace][method];
255
+ };
256
+ }
257
+ });
258
+
259
+ // node_modules/core-js/internals/object-is-prototype-of.js
260
+ var require_object_is_prototype_of = __commonJS({
261
+ "node_modules/core-js/internals/object-is-prototype-of.js"(exports, module) {
262
+ "use strict";
263
+ init_process();
264
+ var uncurryThis = require_function_uncurry_this();
265
+ module.exports = uncurryThis({}.isPrototypeOf);
266
+ }
267
+ });
268
+
269
+ // node_modules/core-js/internals/environment-user-agent.js
270
+ var require_environment_user_agent = __commonJS({
271
+ "node_modules/core-js/internals/environment-user-agent.js"(exports, module) {
272
+ "use strict";
273
+ init_process();
274
+ var globalThis2 = require_global_this();
275
+ var navigator = globalThis2.navigator;
276
+ var userAgent = navigator && navigator.userAgent;
277
+ module.exports = userAgent ? String(userAgent) : "";
278
+ }
279
+ });
280
+
281
+ // node_modules/core-js/internals/environment-v8-version.js
282
+ var require_environment_v8_version = __commonJS({
283
+ "node_modules/core-js/internals/environment-v8-version.js"(exports, module) {
284
+ "use strict";
285
+ init_process();
286
+ var globalThis2 = require_global_this();
287
+ var userAgent = require_environment_user_agent();
288
+ var process = globalThis2.process;
289
+ var Deno = globalThis2.Deno;
290
+ var versions = process && process.versions || Deno && Deno.version;
291
+ var v8 = versions && versions.v8;
292
+ var match;
293
+ var version;
294
+ if (v8) {
295
+ match = v8.split(".");
296
+ version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
297
+ }
298
+ if (!version && userAgent) {
299
+ match = userAgent.match(/Edge\/(\d+)/);
300
+ if (!match || match[1] >= 74) {
301
+ match = userAgent.match(/Chrome\/(\d+)/);
302
+ if (match) version = +match[1];
303
+ }
304
+ }
305
+ module.exports = version;
306
+ }
307
+ });
308
+
309
+ // node_modules/core-js/internals/symbol-constructor-detection.js
310
+ var require_symbol_constructor_detection = __commonJS({
311
+ "node_modules/core-js/internals/symbol-constructor-detection.js"(exports, module) {
312
+ "use strict";
313
+ init_process();
314
+ var V8_VERSION = require_environment_v8_version();
315
+ var fails = require_fails();
316
+ var globalThis2 = require_global_this();
317
+ var $String = globalThis2.String;
318
+ module.exports = !!Object.getOwnPropertySymbols && !fails(function() {
319
+ var symbol = /* @__PURE__ */ Symbol("symbol detection");
320
+ return !$String(symbol) || !(Object(symbol) instanceof Symbol) || // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
321
+ !Symbol.sham && V8_VERSION && V8_VERSION < 41;
322
+ });
323
+ }
324
+ });
325
+
326
+ // node_modules/core-js/internals/use-symbol-as-uid.js
327
+ var require_use_symbol_as_uid = __commonJS({
328
+ "node_modules/core-js/internals/use-symbol-as-uid.js"(exports, module) {
329
+ "use strict";
330
+ init_process();
331
+ var NATIVE_SYMBOL = require_symbol_constructor_detection();
332
+ module.exports = NATIVE_SYMBOL && !Symbol.sham && typeof Symbol.iterator == "symbol";
333
+ }
334
+ });
335
+
336
+ // node_modules/core-js/internals/is-symbol.js
337
+ var require_is_symbol = __commonJS({
338
+ "node_modules/core-js/internals/is-symbol.js"(exports, module) {
339
+ "use strict";
340
+ init_process();
341
+ var getBuiltIn = require_get_built_in();
342
+ var isCallable = require_is_callable();
343
+ var isPrototypeOf = require_object_is_prototype_of();
344
+ var USE_SYMBOL_AS_UID = require_use_symbol_as_uid();
345
+ var $Object = Object;
346
+ module.exports = USE_SYMBOL_AS_UID ? function(it) {
347
+ return typeof it == "symbol";
348
+ } : function(it) {
349
+ var $Symbol = getBuiltIn("Symbol");
350
+ return isCallable($Symbol) && isPrototypeOf($Symbol.prototype, $Object(it));
351
+ };
352
+ }
353
+ });
354
+
355
+ // node_modules/core-js/internals/try-to-string.js
356
+ var require_try_to_string = __commonJS({
357
+ "node_modules/core-js/internals/try-to-string.js"(exports, module) {
358
+ "use strict";
359
+ init_process();
360
+ var $String = String;
361
+ module.exports = function(argument) {
362
+ try {
363
+ return $String(argument);
364
+ } catch (error) {
365
+ return "Object";
366
+ }
367
+ };
368
+ }
369
+ });
370
+
371
+ // node_modules/core-js/internals/a-callable.js
372
+ var require_a_callable = __commonJS({
373
+ "node_modules/core-js/internals/a-callable.js"(exports, module) {
374
+ "use strict";
375
+ init_process();
376
+ var isCallable = require_is_callable();
377
+ var tryToString = require_try_to_string();
378
+ var $TypeError = TypeError;
379
+ module.exports = function(argument) {
380
+ if (isCallable(argument)) return argument;
381
+ throw new $TypeError(tryToString(argument) + " is not a function");
382
+ };
383
+ }
384
+ });
385
+
386
+ // node_modules/core-js/internals/get-method.js
387
+ var require_get_method = __commonJS({
388
+ "node_modules/core-js/internals/get-method.js"(exports, module) {
389
+ "use strict";
390
+ init_process();
391
+ var aCallable = require_a_callable();
392
+ var isNullOrUndefined = require_is_null_or_undefined();
393
+ module.exports = function(V, P) {
394
+ var func = V[P];
395
+ return isNullOrUndefined(func) ? void 0 : aCallable(func);
396
+ };
397
+ }
398
+ });
399
+
400
+ // node_modules/core-js/internals/ordinary-to-primitive.js
401
+ var require_ordinary_to_primitive = __commonJS({
402
+ "node_modules/core-js/internals/ordinary-to-primitive.js"(exports, module) {
403
+ "use strict";
404
+ init_process();
405
+ var call = require_function_call();
406
+ var isCallable = require_is_callable();
407
+ var isObject = require_is_object();
408
+ var $TypeError = TypeError;
409
+ module.exports = function(input, pref) {
410
+ var fn, val;
411
+ if (pref === "string" && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;
412
+ if (isCallable(fn = input.valueOf) && !isObject(val = call(fn, input))) return val;
413
+ if (pref !== "string" && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;
414
+ throw new $TypeError("Can't convert object to primitive value");
415
+ };
416
+ }
417
+ });
418
+
419
+ // node_modules/core-js/internals/is-pure.js
420
+ var require_is_pure = __commonJS({
421
+ "node_modules/core-js/internals/is-pure.js"(exports, module) {
422
+ "use strict";
423
+ init_process();
424
+ module.exports = false;
425
+ }
426
+ });
427
+
428
+ // node_modules/core-js/internals/define-global-property.js
429
+ var require_define_global_property = __commonJS({
430
+ "node_modules/core-js/internals/define-global-property.js"(exports, module) {
431
+ "use strict";
432
+ init_process();
433
+ var globalThis2 = require_global_this();
434
+ var defineProperty = Object.defineProperty;
435
+ module.exports = function(key, value) {
436
+ try {
437
+ defineProperty(globalThis2, key, { value, configurable: true, writable: true });
438
+ } catch (error) {
439
+ globalThis2[key] = value;
440
+ }
441
+ return value;
442
+ };
443
+ }
444
+ });
445
+
446
+ // node_modules/core-js/internals/shared-store.js
447
+ var require_shared_store = __commonJS({
448
+ "node_modules/core-js/internals/shared-store.js"(exports, module) {
449
+ "use strict";
450
+ init_process();
451
+ var IS_PURE = require_is_pure();
452
+ var globalThis2 = require_global_this();
453
+ var defineGlobalProperty = require_define_global_property();
454
+ var SHARED = "__core-js_shared__";
455
+ var store = module.exports = globalThis2[SHARED] || defineGlobalProperty(SHARED, {});
456
+ (store.versions || (store.versions = [])).push({
457
+ version: "3.51.0",
458
+ mode: IS_PURE ? "pure" : "global",
459
+ copyright: "\xA9 2013\u20132025 Denis Pushkarev (zloirock.ru), 2025\u20132026 CoreJS Company (core-js.io). All rights reserved.",
460
+ license: "https://github.com/zloirock/core-js/blob/v3.51.0/LICENSE",
461
+ source: "https://github.com/zloirock/core-js"
462
+ });
463
+ }
464
+ });
465
+
466
+ // node_modules/core-js/internals/shared.js
467
+ var require_shared = __commonJS({
468
+ "node_modules/core-js/internals/shared.js"(exports, module) {
469
+ "use strict";
470
+ init_process();
471
+ var store = require_shared_store();
472
+ var create = Object.create || Object;
473
+ module.exports = function(key, value) {
474
+ return store[key] || (store[key] = value || create(null));
475
+ };
476
+ }
477
+ });
478
+
479
+ // node_modules/core-js/internals/to-object.js
480
+ var require_to_object = __commonJS({
481
+ "node_modules/core-js/internals/to-object.js"(exports, module) {
482
+ "use strict";
483
+ init_process();
484
+ var requireObjectCoercible = require_require_object_coercible();
485
+ var $Object = Object;
486
+ module.exports = function(argument) {
487
+ return $Object(requireObjectCoercible(argument));
488
+ };
489
+ }
490
+ });
491
+
492
+ // node_modules/core-js/internals/has-own-property.js
493
+ var require_has_own_property = __commonJS({
494
+ "node_modules/core-js/internals/has-own-property.js"(exports, module) {
495
+ "use strict";
496
+ init_process();
497
+ var uncurryThis = require_function_uncurry_this();
498
+ var toObject = require_to_object();
499
+ var hasOwnProperty = uncurryThis({}.hasOwnProperty);
500
+ module.exports = Object.hasOwn || function hasOwn(it, key) {
501
+ return hasOwnProperty(toObject(it), key);
502
+ };
503
+ }
504
+ });
505
+
506
+ // node_modules/core-js/internals/uid.js
507
+ var require_uid = __commonJS({
508
+ "node_modules/core-js/internals/uid.js"(exports, module) {
509
+ "use strict";
510
+ init_process();
511
+ var uncurryThis = require_function_uncurry_this();
512
+ var id = 0;
513
+ var postfix = Math.random();
514
+ var toString = uncurryThis(1.1.toString);
515
+ module.exports = function(key) {
516
+ return "Symbol(" + (key === void 0 ? "" : key) + ")_" + toString(++id + postfix, 36);
517
+ };
518
+ }
519
+ });
520
+
521
+ // node_modules/core-js/internals/well-known-symbol.js
522
+ var require_well_known_symbol = __commonJS({
523
+ "node_modules/core-js/internals/well-known-symbol.js"(exports, module) {
524
+ "use strict";
525
+ init_process();
526
+ var globalThis2 = require_global_this();
527
+ var shared = require_shared();
528
+ var hasOwn = require_has_own_property();
529
+ var uid = require_uid();
530
+ var NATIVE_SYMBOL = require_symbol_constructor_detection();
531
+ var USE_SYMBOL_AS_UID = require_use_symbol_as_uid();
532
+ var Symbol2 = globalThis2.Symbol;
533
+ var WellKnownSymbolsStore = shared("wks");
534
+ var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol2["for"] || Symbol2 : Symbol2 && Symbol2.withoutSetter || uid;
535
+ module.exports = function(name) {
536
+ if (!hasOwn(WellKnownSymbolsStore, name)) {
537
+ WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn(Symbol2, name) ? Symbol2[name] : createWellKnownSymbol("Symbol." + name);
538
+ }
539
+ return WellKnownSymbolsStore[name];
540
+ };
541
+ }
542
+ });
543
+
544
+ // node_modules/core-js/internals/to-primitive.js
545
+ var require_to_primitive = __commonJS({
546
+ "node_modules/core-js/internals/to-primitive.js"(exports, module) {
547
+ "use strict";
548
+ init_process();
549
+ var call = require_function_call();
550
+ var isObject = require_is_object();
551
+ var isSymbol = require_is_symbol();
552
+ var getMethod = require_get_method();
553
+ var ordinaryToPrimitive = require_ordinary_to_primitive();
554
+ var wellKnownSymbol = require_well_known_symbol();
555
+ var $TypeError = TypeError;
556
+ var TO_PRIMITIVE = wellKnownSymbol("toPrimitive");
557
+ module.exports = function(input, pref) {
558
+ if (!isObject(input) || isSymbol(input)) return input;
559
+ var exoticToPrim = getMethod(input, TO_PRIMITIVE);
560
+ var result;
561
+ if (exoticToPrim) {
562
+ if (pref === void 0) pref = "default";
563
+ result = call(exoticToPrim, input, pref);
564
+ if (!isObject(result) || isSymbol(result)) return result;
565
+ throw new $TypeError("Can't convert object to primitive value");
566
+ }
567
+ if (pref === void 0) pref = "number";
568
+ return ordinaryToPrimitive(input, pref);
569
+ };
570
+ }
571
+ });
572
+
573
+ // node_modules/core-js/internals/to-property-key.js
574
+ var require_to_property_key = __commonJS({
575
+ "node_modules/core-js/internals/to-property-key.js"(exports, module) {
576
+ "use strict";
577
+ init_process();
578
+ var toPrimitive = require_to_primitive();
579
+ var isSymbol = require_is_symbol();
580
+ module.exports = function(argument) {
581
+ var key = toPrimitive(argument, "string");
582
+ return isSymbol(key) ? key : key + "";
583
+ };
584
+ }
585
+ });
586
+
587
+ // node_modules/core-js/internals/document-create-element.js
588
+ var require_document_create_element = __commonJS({
589
+ "node_modules/core-js/internals/document-create-element.js"(exports, module) {
590
+ "use strict";
591
+ init_process();
592
+ var globalThis2 = require_global_this();
593
+ var isObject = require_is_object();
594
+ var document2 = globalThis2.document;
595
+ var EXISTS = isObject(document2) && isObject(document2.createElement);
596
+ module.exports = function(it) {
597
+ return EXISTS ? document2.createElement(it) : {};
598
+ };
599
+ }
600
+ });
601
+
602
+ // node_modules/core-js/internals/ie8-dom-define.js
603
+ var require_ie8_dom_define = __commonJS({
604
+ "node_modules/core-js/internals/ie8-dom-define.js"(exports, module) {
605
+ "use strict";
606
+ init_process();
607
+ var DESCRIPTORS = require_descriptors();
608
+ var fails = require_fails();
609
+ var createElement = require_document_create_element();
610
+ module.exports = !DESCRIPTORS && !fails(function() {
611
+ return Object.defineProperty(createElement("div"), "a", {
612
+ get: function() {
613
+ return 7;
614
+ }
615
+ }).a !== 7;
616
+ });
617
+ }
618
+ });
619
+
620
+ // node_modules/core-js/internals/object-get-own-property-descriptor.js
621
+ var require_object_get_own_property_descriptor = __commonJS({
622
+ "node_modules/core-js/internals/object-get-own-property-descriptor.js"(exports) {
623
+ "use strict";
624
+ init_process();
625
+ var DESCRIPTORS = require_descriptors();
626
+ var call = require_function_call();
627
+ var propertyIsEnumerableModule = require_object_property_is_enumerable();
628
+ var createPropertyDescriptor = require_create_property_descriptor();
629
+ var toIndexedObject = require_to_indexed_object();
630
+ var toPropertyKey = require_to_property_key();
631
+ var hasOwn = require_has_own_property();
632
+ var IE8_DOM_DEFINE = require_ie8_dom_define();
633
+ var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
634
+ exports.f = DESCRIPTORS ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
635
+ O = toIndexedObject(O);
636
+ P = toPropertyKey(P);
637
+ if (IE8_DOM_DEFINE) try {
638
+ return $getOwnPropertyDescriptor(O, P);
639
+ } catch (error) {
640
+ }
641
+ if (hasOwn(O, P)) return createPropertyDescriptor(!call(propertyIsEnumerableModule.f, O, P), O[P]);
642
+ };
643
+ }
644
+ });
645
+
646
+ // node_modules/core-js/internals/v8-prototype-define-bug.js
647
+ var require_v8_prototype_define_bug = __commonJS({
648
+ "node_modules/core-js/internals/v8-prototype-define-bug.js"(exports, module) {
649
+ "use strict";
650
+ init_process();
651
+ var DESCRIPTORS = require_descriptors();
652
+ var fails = require_fails();
653
+ module.exports = DESCRIPTORS && fails(function() {
654
+ return Object.defineProperty(function() {
655
+ }, "prototype", {
656
+ value: 42,
657
+ writable: false
658
+ }).prototype !== 42;
659
+ });
660
+ }
661
+ });
662
+
663
+ // node_modules/core-js/internals/an-object.js
664
+ var require_an_object = __commonJS({
665
+ "node_modules/core-js/internals/an-object.js"(exports, module) {
666
+ "use strict";
667
+ init_process();
668
+ var isObject = require_is_object();
669
+ var $String = String;
670
+ var $TypeError = TypeError;
671
+ module.exports = function(argument) {
672
+ if (isObject(argument)) return argument;
673
+ throw new $TypeError($String(argument) + " is not an object");
674
+ };
675
+ }
676
+ });
677
+
678
+ // node_modules/core-js/internals/object-define-property.js
679
+ var require_object_define_property = __commonJS({
680
+ "node_modules/core-js/internals/object-define-property.js"(exports) {
681
+ "use strict";
682
+ init_process();
683
+ var DESCRIPTORS = require_descriptors();
684
+ var IE8_DOM_DEFINE = require_ie8_dom_define();
685
+ var V8_PROTOTYPE_DEFINE_BUG = require_v8_prototype_define_bug();
686
+ var anObject = require_an_object();
687
+ var toPropertyKey = require_to_property_key();
688
+ var $TypeError = TypeError;
689
+ var $defineProperty = Object.defineProperty;
690
+ var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
691
+ var ENUMERABLE = "enumerable";
692
+ var CONFIGURABLE = "configurable";
693
+ var WRITABLE = "writable";
694
+ exports.f = DESCRIPTORS ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) {
695
+ anObject(O);
696
+ P = toPropertyKey(P);
697
+ anObject(Attributes);
698
+ if (typeof O === "function" && P === "prototype" && "value" in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
699
+ var current = $getOwnPropertyDescriptor(O, P);
700
+ if (current && current[WRITABLE]) {
701
+ O[P] = Attributes.value;
702
+ Attributes = {
703
+ configurable: CONFIGURABLE in Attributes ? Attributes[CONFIGURABLE] : current[CONFIGURABLE],
704
+ enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
705
+ writable: false
706
+ };
707
+ }
708
+ }
709
+ return $defineProperty(O, P, Attributes);
710
+ } : $defineProperty : function defineProperty(O, P, Attributes) {
711
+ anObject(O);
712
+ P = toPropertyKey(P);
713
+ anObject(Attributes);
714
+ if (IE8_DOM_DEFINE) try {
715
+ return $defineProperty(O, P, Attributes);
716
+ } catch (error) {
717
+ }
718
+ if ("get" in Attributes || "set" in Attributes) throw new $TypeError("Accessors not supported");
719
+ if ("value" in Attributes) O[P] = Attributes.value;
720
+ return O;
721
+ };
722
+ }
723
+ });
724
+
725
+ // node_modules/core-js/internals/create-non-enumerable-property.js
726
+ var require_create_non_enumerable_property = __commonJS({
727
+ "node_modules/core-js/internals/create-non-enumerable-property.js"(exports, module) {
728
+ "use strict";
729
+ init_process();
730
+ var DESCRIPTORS = require_descriptors();
731
+ var definePropertyModule = require_object_define_property();
732
+ var createPropertyDescriptor = require_create_property_descriptor();
733
+ module.exports = DESCRIPTORS ? function(object, key, value) {
734
+ return definePropertyModule.f(object, key, createPropertyDescriptor(1, value));
735
+ } : function(object, key, value) {
736
+ object[key] = value;
737
+ return object;
738
+ };
739
+ }
740
+ });
741
+
742
+ // node_modules/core-js/internals/function-name.js
743
+ var require_function_name = __commonJS({
744
+ "node_modules/core-js/internals/function-name.js"(exports, module) {
745
+ "use strict";
746
+ init_process();
747
+ var DESCRIPTORS = require_descriptors();
748
+ var hasOwn = require_has_own_property();
749
+ var FunctionPrototype = Function.prototype;
750
+ var getDescriptor = DESCRIPTORS && Object.getOwnPropertyDescriptor;
751
+ var EXISTS = hasOwn(FunctionPrototype, "name");
752
+ var PROPER = EXISTS && function something() {
753
+ }.name === "something";
754
+ var CONFIGURABLE = EXISTS && (!DESCRIPTORS || DESCRIPTORS && getDescriptor(FunctionPrototype, "name").configurable);
755
+ module.exports = {
756
+ EXISTS,
757
+ PROPER,
758
+ CONFIGURABLE
759
+ };
760
+ }
761
+ });
762
+
763
+ // node_modules/core-js/internals/inspect-source.js
764
+ var require_inspect_source = __commonJS({
765
+ "node_modules/core-js/internals/inspect-source.js"(exports, module) {
766
+ "use strict";
767
+ init_process();
768
+ var uncurryThis = require_function_uncurry_this();
769
+ var isCallable = require_is_callable();
770
+ var store = require_shared_store();
771
+ var functionToString = uncurryThis(Function.toString);
772
+ if (!isCallable(store.inspectSource)) {
773
+ store.inspectSource = function(it) {
774
+ return functionToString(it);
775
+ };
776
+ }
777
+ module.exports = store.inspectSource;
778
+ }
779
+ });
780
+
781
+ // node_modules/core-js/internals/weak-map-basic-detection.js
782
+ var require_weak_map_basic_detection = __commonJS({
783
+ "node_modules/core-js/internals/weak-map-basic-detection.js"(exports, module) {
784
+ "use strict";
785
+ init_process();
786
+ var globalThis2 = require_global_this();
787
+ var isCallable = require_is_callable();
788
+ var WeakMap2 = globalThis2.WeakMap;
789
+ module.exports = isCallable(WeakMap2) && /native code/.test(String(WeakMap2));
790
+ }
791
+ });
792
+
793
+ // node_modules/core-js/internals/shared-key.js
794
+ var require_shared_key = __commonJS({
795
+ "node_modules/core-js/internals/shared-key.js"(exports, module) {
796
+ "use strict";
797
+ init_process();
798
+ var shared = require_shared();
799
+ var uid = require_uid();
800
+ var keys = shared("keys");
801
+ module.exports = function(key) {
802
+ return keys[key] || (keys[key] = uid(key));
803
+ };
804
+ }
805
+ });
806
+
807
+ // node_modules/core-js/internals/hidden-keys.js
808
+ var require_hidden_keys = __commonJS({
809
+ "node_modules/core-js/internals/hidden-keys.js"(exports, module) {
810
+ "use strict";
811
+ init_process();
812
+ module.exports = {};
813
+ }
814
+ });
815
+
816
+ // node_modules/core-js/internals/internal-state.js
817
+ var require_internal_state = __commonJS({
818
+ "node_modules/core-js/internals/internal-state.js"(exports, module) {
819
+ "use strict";
820
+ init_process();
821
+ var NATIVE_WEAK_MAP = require_weak_map_basic_detection();
822
+ var globalThis2 = require_global_this();
823
+ var isObject = require_is_object();
824
+ var createNonEnumerableProperty = require_create_non_enumerable_property();
825
+ var hasOwn = require_has_own_property();
826
+ var shared = require_shared_store();
827
+ var sharedKey = require_shared_key();
828
+ var hiddenKeys = require_hidden_keys();
829
+ var OBJECT_ALREADY_INITIALIZED = "Object already initialized";
830
+ var TypeError2 = globalThis2.TypeError;
831
+ var WeakMap2 = globalThis2.WeakMap;
832
+ var set;
833
+ var get;
834
+ var has;
835
+ var enforce = function(it) {
836
+ return has(it) ? get(it) : set(it, {});
837
+ };
838
+ var getterFor = function(TYPE) {
839
+ return function(it) {
840
+ var state;
841
+ if (!isObject(it) || (state = get(it)).type !== TYPE) {
842
+ throw new TypeError2("Incompatible receiver, " + TYPE + " required");
843
+ }
844
+ return state;
845
+ };
846
+ };
847
+ if (NATIVE_WEAK_MAP || shared.state) {
848
+ store = shared.state || (shared.state = new WeakMap2());
849
+ store.get = store.get;
850
+ store.has = store.has;
851
+ store.set = store.set;
852
+ set = function(it, metadata) {
853
+ if (store.has(it)) throw new TypeError2(OBJECT_ALREADY_INITIALIZED);
854
+ metadata.facade = it;
855
+ store.set(it, metadata);
856
+ return metadata;
857
+ };
858
+ get = function(it) {
859
+ return store.get(it) || {};
860
+ };
861
+ has = function(it) {
862
+ return store.has(it);
863
+ };
864
+ } else {
865
+ STATE = sharedKey("state");
866
+ hiddenKeys[STATE] = true;
867
+ set = function(it, metadata) {
868
+ if (hasOwn(it, STATE)) throw new TypeError2(OBJECT_ALREADY_INITIALIZED);
869
+ metadata.facade = it;
870
+ createNonEnumerableProperty(it, STATE, metadata);
871
+ return metadata;
872
+ };
873
+ get = function(it) {
874
+ return hasOwn(it, STATE) ? it[STATE] : {};
875
+ };
876
+ has = function(it) {
877
+ return hasOwn(it, STATE);
878
+ };
879
+ }
880
+ var store;
881
+ var STATE;
882
+ module.exports = {
883
+ set,
884
+ get,
885
+ has,
886
+ enforce,
887
+ getterFor
888
+ };
889
+ }
890
+ });
891
+
892
+ // node_modules/core-js/internals/make-built-in.js
893
+ var require_make_built_in = __commonJS({
894
+ "node_modules/core-js/internals/make-built-in.js"(exports, module) {
895
+ "use strict";
896
+ init_process();
897
+ var uncurryThis = require_function_uncurry_this();
898
+ var fails = require_fails();
899
+ var isCallable = require_is_callable();
900
+ var hasOwn = require_has_own_property();
901
+ var DESCRIPTORS = require_descriptors();
902
+ var CONFIGURABLE_FUNCTION_NAME = require_function_name().CONFIGURABLE;
903
+ var inspectSource = require_inspect_source();
904
+ var InternalStateModule = require_internal_state();
905
+ var enforceInternalState = InternalStateModule.enforce;
906
+ var getInternalState = InternalStateModule.get;
907
+ var $String = String;
908
+ var defineProperty = Object.defineProperty;
909
+ var stringSlice = uncurryThis("".slice);
910
+ var replace = uncurryThis("".replace);
911
+ var join = uncurryThis([].join);
912
+ var CONFIGURABLE_LENGTH = DESCRIPTORS && !fails(function() {
913
+ return defineProperty(function() {
914
+ }, "length", { value: 8 }).length !== 8;
915
+ });
916
+ var TEMPLATE = String(String).split("String");
917
+ var makeBuiltIn = module.exports = function(value, name, options) {
918
+ if (stringSlice($String(name), 0, 7) === "Symbol(") {
919
+ name = "[" + replace($String(name), /^Symbol\(([^)]*)\).*$/, "$1") + "]";
920
+ }
921
+ if (options && options.getter) name = "get " + name;
922
+ if (options && options.setter) name = "set " + name;
923
+ if (!hasOwn(value, "name") || CONFIGURABLE_FUNCTION_NAME && value.name !== name) {
924
+ if (DESCRIPTORS) defineProperty(value, "name", { value: name, configurable: true });
925
+ else value.name = name;
926
+ }
927
+ if (CONFIGURABLE_LENGTH && options && hasOwn(options, "arity") && value.length !== options.arity) {
928
+ defineProperty(value, "length", { value: options.arity });
929
+ }
930
+ try {
931
+ if (options && hasOwn(options, "constructor") && options.constructor) {
932
+ if (DESCRIPTORS) defineProperty(value, "prototype", { writable: false });
933
+ } else if (value.prototype) value.prototype = void 0;
934
+ } catch (error) {
935
+ }
936
+ var state = enforceInternalState(value);
937
+ if (!hasOwn(state, "source")) {
938
+ state.source = join(TEMPLATE, typeof name == "string" ? name : "");
939
+ }
940
+ return value;
941
+ };
942
+ Function.prototype.toString = makeBuiltIn(function toString() {
943
+ return isCallable(this) && getInternalState(this).source || inspectSource(this);
944
+ }, "toString");
945
+ }
946
+ });
947
+
948
+ // node_modules/core-js/internals/define-built-in.js
949
+ var require_define_built_in = __commonJS({
950
+ "node_modules/core-js/internals/define-built-in.js"(exports, module) {
951
+ "use strict";
952
+ init_process();
953
+ var isCallable = require_is_callable();
954
+ var definePropertyModule = require_object_define_property();
955
+ var makeBuiltIn = require_make_built_in();
956
+ var defineGlobalProperty = require_define_global_property();
957
+ module.exports = function(O, key, value, options) {
958
+ if (!options) options = {};
959
+ var simple = options.enumerable;
960
+ var name = options.name !== void 0 ? options.name : key;
961
+ if (isCallable(value)) makeBuiltIn(value, name, options);
962
+ if (options.global) {
963
+ if (simple) O[key] = value;
964
+ else defineGlobalProperty(key, value);
965
+ } else {
966
+ try {
967
+ if (!options.unsafe) delete O[key];
968
+ else if (O[key]) simple = true;
969
+ } catch (error) {
970
+ }
971
+ if (simple) O[key] = value;
972
+ else definePropertyModule.f(O, key, {
973
+ value,
974
+ enumerable: false,
975
+ configurable: !options.nonConfigurable,
976
+ writable: !options.nonWritable
977
+ });
978
+ }
979
+ return O;
980
+ };
981
+ }
982
+ });
983
+
984
+ // node_modules/core-js/internals/math-trunc.js
985
+ var require_math_trunc = __commonJS({
986
+ "node_modules/core-js/internals/math-trunc.js"(exports, module) {
987
+ "use strict";
988
+ init_process();
989
+ var ceil = Math.ceil;
990
+ var floor = Math.floor;
991
+ module.exports = Math.trunc || function trunc(x) {
992
+ var n = +x;
993
+ return (n > 0 ? floor : ceil)(n);
994
+ };
995
+ }
996
+ });
997
+
998
+ // node_modules/core-js/internals/to-integer-or-infinity.js
999
+ var require_to_integer_or_infinity = __commonJS({
1000
+ "node_modules/core-js/internals/to-integer-or-infinity.js"(exports, module) {
1001
+ "use strict";
1002
+ init_process();
1003
+ var trunc = require_math_trunc();
1004
+ module.exports = function(argument) {
1005
+ var number = +argument;
1006
+ return number !== number || number === 0 ? 0 : trunc(number);
1007
+ };
1008
+ }
1009
+ });
1010
+
1011
+ // node_modules/core-js/internals/to-absolute-index.js
1012
+ var require_to_absolute_index = __commonJS({
1013
+ "node_modules/core-js/internals/to-absolute-index.js"(exports, module) {
1014
+ "use strict";
1015
+ init_process();
1016
+ var toIntegerOrInfinity = require_to_integer_or_infinity();
1017
+ var max = Math.max;
1018
+ var min = Math.min;
1019
+ module.exports = function(index, length) {
1020
+ var integer = toIntegerOrInfinity(index);
1021
+ return integer < 0 ? max(integer + length, 0) : min(integer, length);
1022
+ };
1023
+ }
1024
+ });
1025
+
1026
+ // node_modules/core-js/internals/to-length.js
1027
+ var require_to_length = __commonJS({
1028
+ "node_modules/core-js/internals/to-length.js"(exports, module) {
1029
+ "use strict";
1030
+ init_process();
1031
+ var toIntegerOrInfinity = require_to_integer_or_infinity();
1032
+ var min = Math.min;
1033
+ module.exports = function(argument) {
1034
+ var len = toIntegerOrInfinity(argument);
1035
+ return len > 0 ? min(len, 9007199254740991) : 0;
1036
+ };
1037
+ }
1038
+ });
1039
+
1040
+ // node_modules/core-js/internals/length-of-array-like.js
1041
+ var require_length_of_array_like = __commonJS({
1042
+ "node_modules/core-js/internals/length-of-array-like.js"(exports, module) {
1043
+ "use strict";
1044
+ init_process();
1045
+ var toLength = require_to_length();
1046
+ module.exports = function(obj) {
1047
+ return toLength(obj.length);
1048
+ };
1049
+ }
1050
+ });
1051
+
1052
+ // node_modules/core-js/internals/array-includes.js
1053
+ var require_array_includes = __commonJS({
1054
+ "node_modules/core-js/internals/array-includes.js"(exports, module) {
1055
+ "use strict";
1056
+ init_process();
1057
+ var toIndexedObject = require_to_indexed_object();
1058
+ var toAbsoluteIndex = require_to_absolute_index();
1059
+ var lengthOfArrayLike = require_length_of_array_like();
1060
+ var createMethod = function(IS_INCLUDES) {
1061
+ return function($this, el, fromIndex) {
1062
+ var O = toIndexedObject($this);
1063
+ var length = lengthOfArrayLike(O);
1064
+ if (length === 0) return !IS_INCLUDES && -1;
1065
+ var index = toAbsoluteIndex(fromIndex, length);
1066
+ var value;
1067
+ if (IS_INCLUDES && el !== el) while (length > index) {
1068
+ value = O[index++];
1069
+ if (value !== value) return true;
1070
+ }
1071
+ else for (; length > index; index++) {
1072
+ if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
1073
+ }
1074
+ return !IS_INCLUDES && -1;
1075
+ };
1076
+ };
1077
+ module.exports = {
1078
+ // `Array.prototype.includes` method
1079
+ // https://tc39.es/ecma262/#sec-array.prototype.includes
1080
+ includes: createMethod(true),
1081
+ // `Array.prototype.indexOf` method
1082
+ // https://tc39.es/ecma262/#sec-array.prototype.indexof
1083
+ indexOf: createMethod(false)
1084
+ };
1085
+ }
1086
+ });
1087
+
1088
+ // node_modules/core-js/internals/object-keys-internal.js
1089
+ var require_object_keys_internal = __commonJS({
1090
+ "node_modules/core-js/internals/object-keys-internal.js"(exports, module) {
1091
+ "use strict";
1092
+ init_process();
1093
+ var uncurryThis = require_function_uncurry_this();
1094
+ var hasOwn = require_has_own_property();
1095
+ var toIndexedObject = require_to_indexed_object();
1096
+ var indexOf = require_array_includes().indexOf;
1097
+ var hiddenKeys = require_hidden_keys();
1098
+ var push = uncurryThis([].push);
1099
+ module.exports = function(object, names) {
1100
+ var O = toIndexedObject(object);
1101
+ var i = 0;
1102
+ var result = [];
1103
+ var key;
1104
+ for (key in O) !hasOwn(hiddenKeys, key) && hasOwn(O, key) && push(result, key);
1105
+ while (names.length > i) if (hasOwn(O, key = names[i++])) {
1106
+ ~indexOf(result, key) || push(result, key);
1107
+ }
1108
+ return result;
1109
+ };
1110
+ }
1111
+ });
1112
+
1113
+ // node_modules/core-js/internals/enum-bug-keys.js
1114
+ var require_enum_bug_keys = __commonJS({
1115
+ "node_modules/core-js/internals/enum-bug-keys.js"(exports, module) {
1116
+ "use strict";
1117
+ init_process();
1118
+ module.exports = [
1119
+ "constructor",
1120
+ "hasOwnProperty",
1121
+ "isPrototypeOf",
1122
+ "propertyIsEnumerable",
1123
+ "toLocaleString",
1124
+ "toString",
1125
+ "valueOf"
1126
+ ];
1127
+ }
1128
+ });
1129
+
1130
+ // node_modules/core-js/internals/object-get-own-property-names.js
1131
+ var require_object_get_own_property_names = __commonJS({
1132
+ "node_modules/core-js/internals/object-get-own-property-names.js"(exports) {
1133
+ "use strict";
1134
+ init_process();
1135
+ var internalObjectKeys = require_object_keys_internal();
1136
+ var enumBugKeys = require_enum_bug_keys();
1137
+ var hiddenKeys = enumBugKeys.concat("length", "prototype");
1138
+ exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
1139
+ return internalObjectKeys(O, hiddenKeys);
1140
+ };
1141
+ }
1142
+ });
1143
+
1144
+ // node_modules/core-js/internals/object-get-own-property-symbols.js
1145
+ var require_object_get_own_property_symbols = __commonJS({
1146
+ "node_modules/core-js/internals/object-get-own-property-symbols.js"(exports) {
1147
+ "use strict";
1148
+ init_process();
1149
+ exports.f = Object.getOwnPropertySymbols;
1150
+ }
1151
+ });
1152
+
1153
+ // node_modules/core-js/internals/own-keys.js
1154
+ var require_own_keys = __commonJS({
1155
+ "node_modules/core-js/internals/own-keys.js"(exports, module) {
1156
+ "use strict";
1157
+ init_process();
1158
+ var getBuiltIn = require_get_built_in();
1159
+ var uncurryThis = require_function_uncurry_this();
1160
+ var getOwnPropertyNamesModule = require_object_get_own_property_names();
1161
+ var getOwnPropertySymbolsModule = require_object_get_own_property_symbols();
1162
+ var anObject = require_an_object();
1163
+ var concat = uncurryThis([].concat);
1164
+ module.exports = getBuiltIn("Reflect", "ownKeys") || function ownKeys(it) {
1165
+ var keys = getOwnPropertyNamesModule.f(anObject(it));
1166
+ var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
1167
+ return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys;
1168
+ };
1169
+ }
1170
+ });
1171
+
1172
+ // node_modules/core-js/internals/copy-constructor-properties.js
1173
+ var require_copy_constructor_properties = __commonJS({
1174
+ "node_modules/core-js/internals/copy-constructor-properties.js"(exports, module) {
1175
+ "use strict";
1176
+ init_process();
1177
+ var hasOwn = require_has_own_property();
1178
+ var ownKeys = require_own_keys();
1179
+ var getOwnPropertyDescriptorModule = require_object_get_own_property_descriptor();
1180
+ var definePropertyModule = require_object_define_property();
1181
+ module.exports = function(target, source, exceptions) {
1182
+ var keys = ownKeys(source);
1183
+ var defineProperty = definePropertyModule.f;
1184
+ var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
1185
+ for (var i = 0; i < keys.length; i++) {
1186
+ var key = keys[i];
1187
+ if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) {
1188
+ defineProperty(target, key, getOwnPropertyDescriptor(source, key));
1189
+ }
1190
+ }
1191
+ };
1192
+ }
1193
+ });
1194
+
1195
+ // node_modules/core-js/internals/is-forced.js
1196
+ var require_is_forced = __commonJS({
1197
+ "node_modules/core-js/internals/is-forced.js"(exports, module) {
1198
+ "use strict";
1199
+ init_process();
1200
+ var fails = require_fails();
1201
+ var isCallable = require_is_callable();
1202
+ var replacement = /#|\.prototype\./;
1203
+ var isForced = function(feature, detection) {
1204
+ var value = data[normalize(feature)];
1205
+ return value === POLYFILL ? true : value === NATIVE ? false : isCallable(detection) ? fails(detection) : !!detection;
1206
+ };
1207
+ var normalize = isForced.normalize = function(string) {
1208
+ return String(string).replace(replacement, ".").toLowerCase();
1209
+ };
1210
+ var data = isForced.data = {};
1211
+ var NATIVE = isForced.NATIVE = "N";
1212
+ var POLYFILL = isForced.POLYFILL = "P";
1213
+ module.exports = isForced;
1214
+ }
1215
+ });
1216
+
1217
+ // node_modules/core-js/internals/export.js
1218
+ var require_export = __commonJS({
1219
+ "node_modules/core-js/internals/export.js"(exports, module) {
1220
+ "use strict";
1221
+ init_process();
1222
+ var globalThis2 = require_global_this();
1223
+ var getOwnPropertyDescriptor = require_object_get_own_property_descriptor().f;
1224
+ var createNonEnumerableProperty = require_create_non_enumerable_property();
1225
+ var defineBuiltIn = require_define_built_in();
1226
+ var defineGlobalProperty = require_define_global_property();
1227
+ var copyConstructorProperties = require_copy_constructor_properties();
1228
+ var isForced = require_is_forced();
1229
+ module.exports = function(options, source) {
1230
+ var TARGET = options.target;
1231
+ var GLOBAL = options.global;
1232
+ var STATIC = options.stat;
1233
+ var FORCED, target, key, targetProperty, sourceProperty, descriptor;
1234
+ if (GLOBAL) {
1235
+ target = globalThis2;
1236
+ } else if (STATIC) {
1237
+ target = globalThis2[TARGET] || defineGlobalProperty(TARGET, {});
1238
+ } else {
1239
+ target = globalThis2[TARGET] && globalThis2[TARGET].prototype;
1240
+ }
1241
+ if (target) for (key in source) {
1242
+ sourceProperty = source[key];
1243
+ if (options.dontCallGetSet) {
1244
+ descriptor = getOwnPropertyDescriptor(target, key);
1245
+ targetProperty = descriptor && descriptor.value;
1246
+ } else targetProperty = target[key];
1247
+ FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? "." : "#") + key, options.forced);
1248
+ if (!FORCED && targetProperty !== void 0) {
1249
+ if (typeof sourceProperty == typeof targetProperty) continue;
1250
+ copyConstructorProperties(sourceProperty, targetProperty);
1251
+ }
1252
+ if (options.sham || targetProperty && targetProperty.sham) {
1253
+ createNonEnumerableProperty(sourceProperty, "sham", true);
1254
+ }
1255
+ defineBuiltIn(target, key, sourceProperty, options);
1256
+ }
1257
+ };
1258
+ }
1259
+ });
1260
+
1261
+ // node_modules/core-js/internals/weak-map-helpers.js
1262
+ var require_weak_map_helpers = __commonJS({
1263
+ "node_modules/core-js/internals/weak-map-helpers.js"(exports, module) {
1264
+ "use strict";
1265
+ init_process();
1266
+ var uncurryThis = require_function_uncurry_this();
1267
+ var WeakMapPrototype = WeakMap.prototype;
1268
+ module.exports = {
1269
+ // eslint-disable-next-line es/no-weak-map -- safe
1270
+ WeakMap,
1271
+ set: uncurryThis(WeakMapPrototype.set),
1272
+ get: uncurryThis(WeakMapPrototype.get),
1273
+ has: uncurryThis(WeakMapPrototype.has),
1274
+ remove: uncurryThis(WeakMapPrototype["delete"])
1275
+ };
1276
+ }
1277
+ });
1278
+
1279
+ // node_modules/core-js/internals/a-weak-map.js
1280
+ var require_a_weak_map = __commonJS({
1281
+ "node_modules/core-js/internals/a-weak-map.js"(exports, module) {
1282
+ "use strict";
1283
+ init_process();
1284
+ var has = require_weak_map_helpers().has;
1285
+ module.exports = function(it) {
1286
+ has(it);
1287
+ return it;
1288
+ };
1289
+ }
1290
+ });
1291
+
1292
+ // node_modules/core-js/modules/esnext.weak-map.delete-all.js
1293
+ var require_esnext_weak_map_delete_all = __commonJS({
1294
+ "node_modules/core-js/modules/esnext.weak-map.delete-all.js"() {
1295
+ "use strict";
1296
+ init_process();
1297
+ var $ = require_export();
1298
+ var aWeakMap = require_a_weak_map();
1299
+ var remove = require_weak_map_helpers().remove;
1300
+ $({ target: "WeakMap", proto: true, real: true, forced: true }, {
1301
+ deleteAll: function deleteAll() {
1302
+ var collection = aWeakMap(this);
1303
+ var allDeleted = true;
1304
+ var wasDeleted;
1305
+ for (var k = 0, len = arguments.length; k < len; k++) {
1306
+ wasDeleted = remove(collection, arguments[k]);
1307
+ allDeleted = allDeleted && wasDeleted;
1308
+ }
1309
+ return !!allDeleted;
1310
+ }
1311
+ });
1312
+ }
1313
+ });
1314
+
1315
+ // dist/main.js
1316
+ var require_main = __commonJS({
1317
+ "dist/main.js"(exports) {
1318
+ init_process();
1319
+ require_esnext_weak_map_delete_all();
1320
+ var __classPrivateFieldSet = function(receiver, state, value, kind, f) {
1321
+ if (kind === "m") throw new TypeError("Private method is not writable");
1322
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
1323
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
1324
+ return kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value), value;
1325
+ };
1326
+ var __classPrivateFieldGet = function(receiver, state, kind, f) {
1327
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
1328
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
1329
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
1330
+ };
1331
+ var _TitleSwitcher_active;
1332
+ var _TitleSwitcher_currentClass;
1333
+ var _TitleSwitcher_currentIndex;
1334
+ var _TitleSwitcher_delayEffect;
1335
+ var _TitleSwitcher_delaySwitch;
1336
+ var _TitleSwitcher_isRandom;
1337
+ var _TitleSwitcher_titles;
1338
+ var _TitleSwitcher_titlesContainer;
1339
+ var _TitleSwitcher_switchStyle;
1340
+ var _TitleSwitcher_typeSurface;
1341
+ Object.defineProperty(exports, "__esModule", {
1342
+ value: true
1343
+ });
1344
+ var TitleSwitcher = class {
1345
+ /**
1346
+ * Instantiate this as a class to get an instance of TitleSwitcher
1347
+ * @param titlesContainer - The selector where titles are stored
1348
+ * @param switchStyle - The function or function name for the effect to apply
1349
+ * @constructor
1350
+ */
1351
+ constructor(titlesContainer = "", switchStyle = "typingEffect") {
1352
+ _TitleSwitcher_active.set(this, false);
1353
+ _TitleSwitcher_currentClass.set(this, "displayTitle");
1354
+ _TitleSwitcher_currentIndex.set(this, 0);
1355
+ _TitleSwitcher_delayEffect.set(this, 200);
1356
+ _TitleSwitcher_delaySwitch.set(this, 400);
1357
+ _TitleSwitcher_isRandom.set(this, false);
1358
+ _TitleSwitcher_titles.set(this, []);
1359
+ _TitleSwitcher_titlesContainer.set(this, "");
1360
+ _TitleSwitcher_switchStyle.set(this, void 0);
1361
+ _TitleSwitcher_typeSurface.set(this, void 0);
1362
+ __classPrivateFieldSet(this, _TitleSwitcher_currentClass, "displayTitle", "f");
1363
+ if (typeof switchStyle === "string") {
1364
+ __classPrivateFieldSet(this, _TitleSwitcher_switchStyle, typeof this[switchStyle] === "function" ? this[switchStyle] : this.typingEffect, "f");
1365
+ } else {
1366
+ __classPrivateFieldSet(this, _TitleSwitcher_switchStyle, switchStyle, "f");
1367
+ }
1368
+ __classPrivateFieldSet(this, _TitleSwitcher_titlesContainer, titlesContainer, "f");
1369
+ __classPrivateFieldSet(this, _TitleSwitcher_titles, [], "f");
1370
+ const foundContainers = titlesContainer ? document.querySelectorAll(titlesContainer) : [];
1371
+ if (foundContainers && foundContainers[0]) {
1372
+ __classPrivateFieldSet(this, _TitleSwitcher_titlesContainer, foundContainers[0], "f");
1373
+ __classPrivateFieldSet(this, _TitleSwitcher_titles, foundContainers[0].children, "f");
1374
+ }
1375
+ }
1376
+ /**
1377
+ * Retrieve active
1378
+ */
1379
+ get active() {
1380
+ return __classPrivateFieldGet(this, _TitleSwitcher_active, "f");
1381
+ }
1382
+ /**
1383
+ * Retrieve currentClass
1384
+ */
1385
+ get currentClass() {
1386
+ return __classPrivateFieldGet(this, _TitleSwitcher_currentClass, "f");
1387
+ }
1388
+ /**
1389
+ * Retrieve currentIndex
1390
+ */
1391
+ get currentIndex() {
1392
+ return __classPrivateFieldGet(this, _TitleSwitcher_currentIndex, "f");
1393
+ }
1394
+ /**
1395
+ * Retrieve delayEffect
1396
+ */
1397
+ get delayEffect() {
1398
+ return __classPrivateFieldGet(this, _TitleSwitcher_delayEffect, "f");
1399
+ }
1400
+ /**
1401
+ * Retrieve delaySwitch
1402
+ */
1403
+ get delaySwitch() {
1404
+ return __classPrivateFieldGet(this, _TitleSwitcher_delaySwitch, "f");
1405
+ }
1406
+ /**
1407
+ * Retrieve switchStyle
1408
+ */
1409
+ get switchStyle() {
1410
+ return __classPrivateFieldGet(this, _TitleSwitcher_switchStyle, "f");
1411
+ }
1412
+ /**
1413
+ * Retrieve list of titles DOM elements
1414
+ */
1415
+ get titles() {
1416
+ return __classPrivateFieldGet(this, _TitleSwitcher_titles, "f");
1417
+ }
1418
+ /**
1419
+ * Retrieve typeSurface used
1420
+ */
1421
+ get typeSurface() {
1422
+ return __classPrivateFieldGet(this, _TitleSwitcher_typeSurface, "f");
1423
+ }
1424
+ /**
1425
+ * This is the function to begin the switching titles
1426
+ * @param settings
1427
+ * @param settings.delaySwitch
1428
+ * @param settings.delayEffect
1429
+ * @param settings.isRandom
1430
+ * @param settings.immediatePause
1431
+ */
1432
+ startTitles({
1433
+ delaySwitch = 400,
1434
+ delayEffect = 200,
1435
+ isRandom = false,
1436
+ immediatePause = false
1437
+ } = {}) {
1438
+ const typeSurface = "typeSurface";
1439
+ __classPrivateFieldSet(this, _TitleSwitcher_delaySwitch, delaySwitch, "f");
1440
+ __classPrivateFieldSet(this, _TitleSwitcher_delayEffect, delayEffect, "f");
1441
+ __classPrivateFieldSet(this, _TitleSwitcher_isRandom, isRandom, "f");
1442
+ __classPrivateFieldSet(this, _TitleSwitcher_active, !immediatePause, "f");
1443
+ if (__classPrivateFieldGet(this, _TitleSwitcher_currentIndex, "f") >= __classPrivateFieldGet(this, _TitleSwitcher_titles, "f").length || typeof __classPrivateFieldGet(this, _TitleSwitcher_titlesContainer, "f") === "string") {
1444
+ __classPrivateFieldSet(this, _TitleSwitcher_active, false, "f");
1445
+ console.warn(`No titles found for '${__classPrivateFieldGet(this, _TitleSwitcher_titlesContainer, "f")}'`);
1446
+ return this;
1447
+ }
1448
+ if (__classPrivateFieldGet(this, _TitleSwitcher_isRandom, "f")) {
1449
+ __classPrivateFieldSet(this, _TitleSwitcher_currentIndex, Math.round(Math.random() * (__classPrivateFieldGet(this, _TitleSwitcher_titles, "f").length - 2)) + 1, "f");
1450
+ }
1451
+ const currentTitle = __classPrivateFieldGet(this, _TitleSwitcher_titles, "f")[__classPrivateFieldGet(this, _TitleSwitcher_currentIndex, "f")];
1452
+ if (currentTitle.classList) {
1453
+ currentTitle.classList.add(__classPrivateFieldGet(this, _TitleSwitcher_currentClass, "f"));
1454
+ } else {
1455
+ currentTitle.className += " " + __classPrivateFieldGet(this, _TitleSwitcher_currentClass, "f");
1456
+ }
1457
+ const typeElement = __classPrivateFieldGet(this, _TitleSwitcher_titles, "f")[0].cloneNode(true);
1458
+ if (typeElement.classList) {
1459
+ typeElement.classList.add(typeSurface);
1460
+ } else {
1461
+ typeElement.className += " " + typeSurface;
1462
+ }
1463
+ if (typeElement.classList) {
1464
+ typeElement.classList.remove(__classPrivateFieldGet(this, _TitleSwitcher_currentClass, "f"));
1465
+ } else {
1466
+ typeElement.className = typeElement.className.replace(new RegExp("(^|\\b)" + typeElement.className.split(" ").join("|") + "(\\b|$)", "gi"), " ");
1467
+ }
1468
+ __classPrivateFieldGet(this, _TitleSwitcher_titlesContainer, "f").insertBefore(typeElement, __classPrivateFieldGet(this, _TitleSwitcher_titlesContainer, "f").firstChild);
1469
+ __classPrivateFieldSet(this, _TitleSwitcher_typeSurface, __classPrivateFieldGet(this, _TitleSwitcher_titlesContainer, "f").querySelectorAll("." + typeSurface)[0], "f");
1470
+ __classPrivateFieldGet(this, _TitleSwitcher_typeSurface, "f").innerHTML = "";
1471
+ __classPrivateFieldGet(this, _TitleSwitcher_typeSurface, "f").style.display = "block";
1472
+ Array.prototype.forEach.call(__classPrivateFieldGet(this, _TitleSwitcher_titles, "f"), function(title) {
1473
+ title.style.display = "none";
1474
+ });
1475
+ return this.switchTitle(currentTitle, __classPrivateFieldGet(this, _TitleSwitcher_switchStyle, "f"), this);
1476
+ }
1477
+ /**
1478
+ * This is the function to pause between switching
1479
+ */
1480
+ pause() {
1481
+ __classPrivateFieldSet(this, _TitleSwitcher_active, false, "f");
1482
+ }
1483
+ /**
1484
+ * This is the function to resume after a pause.
1485
+ */
1486
+ resume() {
1487
+ if (!__classPrivateFieldGet(this, _TitleSwitcher_active, "f")) {
1488
+ __classPrivateFieldSet(this, _TitleSwitcher_active, true, "f");
1489
+ this.switchTitle(__classPrivateFieldGet(this, _TitleSwitcher_titles, "f")[__classPrivateFieldGet(this, _TitleSwitcher_currentIndex, "f")], __classPrivateFieldGet(this, _TitleSwitcher_switchStyle, "f"), this);
1490
+ }
1491
+ }
1492
+ /**
1493
+ * This is the core function for switching titles
1494
+ * @param currentTitle
1495
+ * @param callBackFunction
1496
+ * @param self
1497
+ * @param runOnce
1498
+ */
1499
+ switchTitle(currentTitle, callBackFunction, self2, runOnce = false) {
1500
+ self2 = self2 || this;
1501
+ let currentIndex = 1;
1502
+ const size = __classPrivateFieldGet(self2, _TitleSwitcher_titles, "f").length;
1503
+ for (let i = 1; i < size; ++i) {
1504
+ if (__classPrivateFieldGet(self2, _TitleSwitcher_titles, "f")[i] === currentTitle) {
1505
+ currentIndex = i;
1506
+ break;
1507
+ }
1508
+ }
1509
+ if (!__classPrivateFieldGet(self2, _TitleSwitcher_active, "f")) {
1510
+ __classPrivateFieldSet(self2, _TitleSwitcher_currentIndex, currentIndex, "f");
1511
+ return self2;
1512
+ }
1513
+ const maxIndex = __classPrivateFieldGet(self2, _TitleSwitcher_titles, "f").length - 1;
1514
+ let nextIndex = 1;
1515
+ if (maxIndex === 1) {
1516
+ return callBackFunction(currentTitle, runOnce ? () => self2 : self2.switchTitle, self2, runOnce);
1517
+ }
1518
+ if (__classPrivateFieldGet(self2, _TitleSwitcher_isRandom, "f")) {
1519
+ if (!self2.typeSurface.textContent.trim()) {
1520
+ currentIndex = -1;
1521
+ }
1522
+ do {
1523
+ nextIndex = Math.round(Math.random() * (maxIndex - 1)) + 1;
1524
+ } while (nextIndex === currentIndex);
1525
+ } else {
1526
+ if (!self2.typeSurface.textContent.trim()) {
1527
+ currentIndex = maxIndex;
1528
+ }
1529
+ nextIndex = currentIndex < maxIndex ? currentIndex + 1 : 1;
1530
+ }
1531
+ const nextTitle = __classPrivateFieldGet(self2, _TitleSwitcher_titles, "f")[nextIndex];
1532
+ if (currentTitle.classList) {
1533
+ currentTitle.classList.remove(self2.currentClass);
1534
+ } else {
1535
+ currentTitle.className = currentTitle.className.replace(new RegExp("(^|\\b)" + currentTitle.className.split(" ").join("|") + "(\\b|$)", "gi"), " ");
1536
+ }
1537
+ if (nextTitle.classList) {
1538
+ nextTitle.classList.add(self2.currentClass);
1539
+ } else {
1540
+ nextTitle.className += " " + self2.currentClass;
1541
+ }
1542
+ return callBackFunction(nextTitle, runOnce ? () => self2 : self2.switchTitle, self2, runOnce);
1543
+ }
1544
+ };
1545
+ _TitleSwitcher_active = /* @__PURE__ */ new WeakMap(), _TitleSwitcher_currentClass = /* @__PURE__ */ new WeakMap(), _TitleSwitcher_currentIndex = /* @__PURE__ */ new WeakMap(), _TitleSwitcher_delayEffect = /* @__PURE__ */ new WeakMap(), _TitleSwitcher_delaySwitch = /* @__PURE__ */ new WeakMap(), _TitleSwitcher_isRandom = /* @__PURE__ */ new WeakMap(), _TitleSwitcher_titles = /* @__PURE__ */ new WeakMap(), _TitleSwitcher_titlesContainer = /* @__PURE__ */ new WeakMap(), _TitleSwitcher_switchStyle = /* @__PURE__ */ new WeakMap(), _TitleSwitcher_typeSurface = /* @__PURE__ */ new WeakMap();
1546
+ TitleSwitcher.prototype.cursorBlink = (blinkOn, self2) => {
1547
+ self2 = self2 || void 0;
1548
+ if (blinkOn) {
1549
+ self2.typeSurface.innerHTML = self2.typeSurface.innerHTML.replace(/\||&nbsp;*(<\/span>)?$/, "$1").trim();
1550
+ self2.typeSurface.innerHTML = self2.typeSurface.innerHTML + '<span style="display: inline-block;font-weight: normal; color: black; text-decoration: none">&#124;</span>';
1551
+ } else {
1552
+ self2.typeSurface.innerHTML = self2.typeSurface.innerHTML.replace(/\|(<\/span>)$/, "&nbsp;$1");
1553
+ }
1554
+ return self2;
1555
+ };
1556
+ var typedLength = (domObject) => {
1557
+ let length = 0;
1558
+ Array.prototype.forEach.call(domObject.childNodes, (child) => {
1559
+ if (child.nodeType === 3) {
1560
+ const text = child.textContent || "";
1561
+ let position = 0;
1562
+ while (position < text.length) {
1563
+ if (/\s/.test(text[position])) {
1564
+ while (position < text.length && /\s/.test(text[position])) {
1565
+ ++position;
1566
+ }
1567
+ } else {
1568
+ ++position;
1569
+ }
1570
+ ++length;
1571
+ }
1572
+ } else if (child.nodeType === 1) {
1573
+ length += typedLength(child);
1574
+ }
1575
+ });
1576
+ return length;
1577
+ };
1578
+ var typedPartialHtml = (domObject, remaining) => {
1579
+ let html = "";
1580
+ const children = Array.prototype.slice.call(domObject.childNodes);
1581
+ for (let i = 0; i < children.length && remaining > 0; ++i) {
1582
+ const child = children[i];
1583
+ if (child.nodeType === 3) {
1584
+ const text = child.textContent || "";
1585
+ let position = 0;
1586
+ let taken = "";
1587
+ while (position < text.length && remaining > 0) {
1588
+ if (/\s/.test(text[position])) {
1589
+ const runStart = position;
1590
+ while (position < text.length && /\s/.test(text[position])) {
1591
+ ++position;
1592
+ }
1593
+ taken += text.slice(runStart, position);
1594
+ } else {
1595
+ taken += text[position];
1596
+ ++position;
1597
+ }
1598
+ --remaining;
1599
+ }
1600
+ html += taken;
1601
+ } else if (child.nodeType === 1) {
1602
+ const result = typedPartialHtml(child, remaining);
1603
+ if (result.html) {
1604
+ const wrapper = child.cloneNode(false);
1605
+ wrapper.innerHTML = result.html;
1606
+ html += wrapper.outerHTML;
1607
+ }
1608
+ remaining = result.remaining;
1609
+ }
1610
+ }
1611
+ return {
1612
+ html,
1613
+ remaining
1614
+ };
1615
+ };
1616
+ TitleSwitcher.prototype.typingEffect = (domObject, callBackFunction, self2, runOnce = false) => {
1617
+ self2 = self2 || void 0;
1618
+ const size = self2.titles.length;
1619
+ let currentIndex = 0;
1620
+ for (let i = 1; i < size; ++i) {
1621
+ if (self2.titles[i] === domObject) {
1622
+ currentIndex = i;
1623
+ break;
1624
+ }
1625
+ }
1626
+ domObject = domObject || self2.titles[currentIndex + 1];
1627
+ let blinkOn = true;
1628
+ const numBlinks = 4;
1629
+ if (self2.typeSurface.hasAttribute("style")) {
1630
+ self2.typeSurface.removeAttribute("style");
1631
+ }
1632
+ if (domObject.hasAttribute("style")) {
1633
+ self2.typeSurface.setAttribute("style", domObject.getAttribute("style"));
1634
+ }
1635
+ self2.typeSurface.innerHTML = "";
1636
+ self2.typeSurface.style.display = "block";
1637
+ for (let i = 0; i < numBlinks; ++i) {
1638
+ setTimeout(() => {
1639
+ self2.cursorBlink(blinkOn, self2);
1640
+ blinkOn = !blinkOn;
1641
+ }, i * self2.delaySwitch);
1642
+ }
1643
+ setTimeout(() => {
1644
+ self2.typeSurface.innerHTML = "";
1645
+ self2.cursorBlink(true, self2);
1646
+ const totalLength = typedLength(domObject);
1647
+ for (let i = 0; i < totalLength; ++i) {
1648
+ setTimeout(() => {
1649
+ self2.typeSurface.innerHTML = typedPartialHtml(domObject, i + 1).html + '<span style="font-weight: normal; color: black; text-decoration: none">&#124;</span>';
1650
+ if (domObject.textContent + "|" === self2.typeSurface.textContent) {
1651
+ self2.typeSurface.innerHTML = domObject.innerHTML + '<span style="font-weight: normal; color: black; text-decoration: none">&#124;</span>';
1652
+ for (let j = 0; j < numBlinks * 2; ++j) {
1653
+ setTimeout(() => {
1654
+ --j;
1655
+ self2.cursorBlink(blinkOn, self2);
1656
+ if (j === 0) {
1657
+ callBackFunction(domObject, runOnce ? () => self2 : self2.switchStyle, self2, runOnce);
1658
+ }
1659
+ }, j * self2.delaySwitch);
1660
+ }
1661
+ }
1662
+ }, i * self2.delayEffect);
1663
+ }
1664
+ }, numBlinks * self2.delaySwitch);
1665
+ return self2;
1666
+ };
1667
+ exports.default = TitleSwitcher;
1668
+ if (void 0) {
1669
+ (void 0)["TitleSwitcher"] = TitleSwitcher;
1670
+ } else if (typeof window !== "undefined") {
1671
+ window["TitleSwitcher"] = TitleSwitcher;
1672
+ }
1673
+ }
1674
+ });
1675
+ return require_main();
1676
+ })();
1677
+ if (typeof module === 'object' && module && module.exports) { module.exports = titleSwitcher }