@xysfe/admin-menu 2.5.6 → 2.5.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.common.js +2226 -109
- package/dist/index.common.js.map +1 -1
- package/dist/index.umd.js +2226 -109
- package/dist/index.umd.js.map +1 -1
- package/dist/index.umd.min.js +2 -2
- package/dist/index.umd.min.js.map +1 -1
- package/package.json +1 -1
package/dist/index.common.js
CHANGED
|
@@ -1468,6 +1468,195 @@ $({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign },
|
|
|
1468
1468
|
});
|
|
1469
1469
|
|
|
1470
1470
|
|
|
1471
|
+
/***/ }),
|
|
1472
|
+
|
|
1473
|
+
/***/ "1604":
|
|
1474
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
1475
|
+
|
|
1476
|
+
"use strict";
|
|
1477
|
+
|
|
1478
|
+
// based on https://github.com/bestiejs/punycode.js/blob/master/punycode.js
|
|
1479
|
+
var uncurryThis = __webpack_require__("d74d");
|
|
1480
|
+
|
|
1481
|
+
var maxInt = 2147483647; // aka. 0x7FFFFFFF or 2^31-1
|
|
1482
|
+
var base = 36;
|
|
1483
|
+
var tMin = 1;
|
|
1484
|
+
var tMax = 26;
|
|
1485
|
+
var skew = 38;
|
|
1486
|
+
var damp = 700;
|
|
1487
|
+
var initialBias = 72;
|
|
1488
|
+
var initialN = 128; // 0x80
|
|
1489
|
+
var delimiter = '-'; // '\x2D'
|
|
1490
|
+
var regexNonASCII = /[^\0-\u007E]/; // non-ASCII chars
|
|
1491
|
+
var regexSeparators = /[.\u3002\uFF0E\uFF61]/g; // RFC 3490 separators
|
|
1492
|
+
var OVERFLOW_ERROR = 'Overflow: input needs wider integers to process';
|
|
1493
|
+
var baseMinusTMin = base - tMin;
|
|
1494
|
+
|
|
1495
|
+
var $RangeError = RangeError;
|
|
1496
|
+
var exec = uncurryThis(regexSeparators.exec);
|
|
1497
|
+
var floor = Math.floor;
|
|
1498
|
+
var fromCharCode = String.fromCharCode;
|
|
1499
|
+
var charCodeAt = uncurryThis(''.charCodeAt);
|
|
1500
|
+
var join = uncurryThis([].join);
|
|
1501
|
+
var push = uncurryThis([].push);
|
|
1502
|
+
var replace = uncurryThis(''.replace);
|
|
1503
|
+
var split = uncurryThis(''.split);
|
|
1504
|
+
var toLowerCase = uncurryThis(''.toLowerCase);
|
|
1505
|
+
|
|
1506
|
+
/**
|
|
1507
|
+
* Creates an array containing the numeric code points of each Unicode
|
|
1508
|
+
* character in the string. While JavaScript uses UCS-2 internally,
|
|
1509
|
+
* this function will convert a pair of surrogate halves (each of which
|
|
1510
|
+
* UCS-2 exposes as separate characters) into a single code point,
|
|
1511
|
+
* matching UTF-16.
|
|
1512
|
+
*/
|
|
1513
|
+
var ucs2decode = function (string) {
|
|
1514
|
+
var output = [];
|
|
1515
|
+
var counter = 0;
|
|
1516
|
+
var length = string.length;
|
|
1517
|
+
while (counter < length) {
|
|
1518
|
+
var value = charCodeAt(string, counter++);
|
|
1519
|
+
if (value >= 0xD800 && value <= 0xDBFF && counter < length) {
|
|
1520
|
+
// It's a high surrogate, and there is a next character.
|
|
1521
|
+
var extra = charCodeAt(string, counter++);
|
|
1522
|
+
if ((extra & 0xFC00) === 0xDC00) { // Low surrogate.
|
|
1523
|
+
push(output, ((value & 0x3FF) << 10) + (extra & 0x3FF) + 0x10000);
|
|
1524
|
+
} else {
|
|
1525
|
+
// It's an unmatched surrogate; only append this code unit, in case the
|
|
1526
|
+
// next code unit is the high surrogate of a surrogate pair.
|
|
1527
|
+
push(output, value);
|
|
1528
|
+
counter--;
|
|
1529
|
+
}
|
|
1530
|
+
} else {
|
|
1531
|
+
push(output, value);
|
|
1532
|
+
}
|
|
1533
|
+
}
|
|
1534
|
+
return output;
|
|
1535
|
+
};
|
|
1536
|
+
|
|
1537
|
+
/**
|
|
1538
|
+
* Converts a digit/integer into a basic code point.
|
|
1539
|
+
*/
|
|
1540
|
+
var digitToBasic = function (digit) {
|
|
1541
|
+
// 0..25 map to ASCII a..z or A..Z
|
|
1542
|
+
// 26..35 map to ASCII 0..9
|
|
1543
|
+
return digit + 22 + 75 * (digit < 26);
|
|
1544
|
+
};
|
|
1545
|
+
|
|
1546
|
+
/**
|
|
1547
|
+
* Bias adaptation function as per section 3.4 of RFC 3492.
|
|
1548
|
+
* https://tools.ietf.org/html/rfc3492#section-3.4
|
|
1549
|
+
*/
|
|
1550
|
+
var adapt = function (delta, numPoints, firstTime) {
|
|
1551
|
+
var k = 0;
|
|
1552
|
+
delta = firstTime ? floor(delta / damp) : delta >> 1;
|
|
1553
|
+
delta += floor(delta / numPoints);
|
|
1554
|
+
while (delta > baseMinusTMin * tMax >> 1) {
|
|
1555
|
+
delta = floor(delta / baseMinusTMin);
|
|
1556
|
+
k += base;
|
|
1557
|
+
}
|
|
1558
|
+
return floor(k + (baseMinusTMin + 1) * delta / (delta + skew));
|
|
1559
|
+
};
|
|
1560
|
+
|
|
1561
|
+
/**
|
|
1562
|
+
* Converts a string of Unicode symbols (e.g. a domain name label) to a
|
|
1563
|
+
* Punycode string of ASCII-only symbols.
|
|
1564
|
+
*/
|
|
1565
|
+
var encode = function (input) {
|
|
1566
|
+
var output = [];
|
|
1567
|
+
|
|
1568
|
+
// Convert the input in UCS-2 to an array of Unicode code points.
|
|
1569
|
+
input = ucs2decode(input);
|
|
1570
|
+
|
|
1571
|
+
// Cache the length.
|
|
1572
|
+
var inputLength = input.length;
|
|
1573
|
+
|
|
1574
|
+
// Initialize the state.
|
|
1575
|
+
var n = initialN;
|
|
1576
|
+
var delta = 0;
|
|
1577
|
+
var bias = initialBias;
|
|
1578
|
+
var i, currentValue;
|
|
1579
|
+
|
|
1580
|
+
// Handle the basic code points.
|
|
1581
|
+
for (i = 0; i < input.length; i++) {
|
|
1582
|
+
currentValue = input[i];
|
|
1583
|
+
if (currentValue < 0x80) {
|
|
1584
|
+
push(output, fromCharCode(currentValue));
|
|
1585
|
+
}
|
|
1586
|
+
}
|
|
1587
|
+
|
|
1588
|
+
var basicLength = output.length; // number of basic code points.
|
|
1589
|
+
var handledCPCount = basicLength; // number of code points that have been handled;
|
|
1590
|
+
|
|
1591
|
+
// Finish the basic string with a delimiter unless it's empty.
|
|
1592
|
+
if (basicLength) {
|
|
1593
|
+
push(output, delimiter);
|
|
1594
|
+
}
|
|
1595
|
+
|
|
1596
|
+
// Main encoding loop:
|
|
1597
|
+
while (handledCPCount < inputLength) {
|
|
1598
|
+
// All non-basic code points < n have been handled already. Find the next larger one:
|
|
1599
|
+
var m = maxInt;
|
|
1600
|
+
for (i = 0; i < input.length; i++) {
|
|
1601
|
+
currentValue = input[i];
|
|
1602
|
+
if (currentValue >= n && currentValue < m) {
|
|
1603
|
+
m = currentValue;
|
|
1604
|
+
}
|
|
1605
|
+
}
|
|
1606
|
+
|
|
1607
|
+
// Increase `delta` enough to advance the decoder's <n,i> state to <m,0>, but guard against overflow.
|
|
1608
|
+
var handledCPCountPlusOne = handledCPCount + 1;
|
|
1609
|
+
if (m - n > floor((maxInt - delta) / handledCPCountPlusOne)) {
|
|
1610
|
+
throw new $RangeError(OVERFLOW_ERROR);
|
|
1611
|
+
}
|
|
1612
|
+
|
|
1613
|
+
delta += (m - n) * handledCPCountPlusOne;
|
|
1614
|
+
n = m;
|
|
1615
|
+
|
|
1616
|
+
for (i = 0; i < input.length; i++) {
|
|
1617
|
+
currentValue = input[i];
|
|
1618
|
+
if (currentValue < n && ++delta > maxInt) {
|
|
1619
|
+
throw new $RangeError(OVERFLOW_ERROR);
|
|
1620
|
+
}
|
|
1621
|
+
if (currentValue === n) {
|
|
1622
|
+
// Represent delta as a generalized variable-length integer.
|
|
1623
|
+
var q = delta;
|
|
1624
|
+
var k = base;
|
|
1625
|
+
while (true) {
|
|
1626
|
+
var t = k <= bias ? tMin : k >= bias + tMax ? tMax : k - bias;
|
|
1627
|
+
if (q < t) break;
|
|
1628
|
+
var qMinusT = q - t;
|
|
1629
|
+
var baseMinusT = base - t;
|
|
1630
|
+
push(output, fromCharCode(digitToBasic(t + qMinusT % baseMinusT)));
|
|
1631
|
+
q = floor(qMinusT / baseMinusT);
|
|
1632
|
+
k += base;
|
|
1633
|
+
}
|
|
1634
|
+
|
|
1635
|
+
push(output, fromCharCode(digitToBasic(q)));
|
|
1636
|
+
bias = adapt(delta, handledCPCountPlusOne, handledCPCount === basicLength);
|
|
1637
|
+
delta = 0;
|
|
1638
|
+
handledCPCount++;
|
|
1639
|
+
}
|
|
1640
|
+
}
|
|
1641
|
+
|
|
1642
|
+
delta++;
|
|
1643
|
+
n++;
|
|
1644
|
+
}
|
|
1645
|
+
return join(output, '');
|
|
1646
|
+
};
|
|
1647
|
+
|
|
1648
|
+
module.exports = function (input) {
|
|
1649
|
+
var encoded = [];
|
|
1650
|
+
var labels = split(replace(toLowerCase(input), regexSeparators, '\u002E'), '.');
|
|
1651
|
+
var i, label;
|
|
1652
|
+
for (i = 0; i < labels.length; i++) {
|
|
1653
|
+
label = labels[i];
|
|
1654
|
+
push(encoded, exec(regexNonASCII, label) ? 'xn--' + encode(label) : label);
|
|
1655
|
+
}
|
|
1656
|
+
return join(encoded, '.');
|
|
1657
|
+
};
|
|
1658
|
+
|
|
1659
|
+
|
|
1471
1660
|
/***/ }),
|
|
1472
1661
|
|
|
1473
1662
|
/***/ "1664":
|
|
@@ -1508,6 +1697,1065 @@ module.exports = function (R, S) {
|
|
|
1508
1697
|
};
|
|
1509
1698
|
|
|
1510
1699
|
|
|
1700
|
+
/***/ }),
|
|
1701
|
+
|
|
1702
|
+
/***/ "186b":
|
|
1703
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
1704
|
+
|
|
1705
|
+
"use strict";
|
|
1706
|
+
|
|
1707
|
+
// TODO: in core-js@4, move /modules/ dependencies to public entries for better optimization by tools like `preset-env`
|
|
1708
|
+
__webpack_require__("0c4e");
|
|
1709
|
+
var $ = __webpack_require__("9ee3");
|
|
1710
|
+
var DESCRIPTORS = __webpack_require__("6d80");
|
|
1711
|
+
var USE_NATIVE_URL = __webpack_require__("94fa");
|
|
1712
|
+
var globalThis = __webpack_require__("b7a1");
|
|
1713
|
+
var bind = __webpack_require__("3b5c");
|
|
1714
|
+
var uncurryThis = __webpack_require__("d74d");
|
|
1715
|
+
var defineBuiltIn = __webpack_require__("78e5");
|
|
1716
|
+
var defineBuiltInAccessor = __webpack_require__("4edf");
|
|
1717
|
+
var anInstance = __webpack_require__("f824");
|
|
1718
|
+
var hasOwn = __webpack_require__("45a0");
|
|
1719
|
+
var assign = __webpack_require__("dfc8");
|
|
1720
|
+
var arrayFrom = __webpack_require__("dc77");
|
|
1721
|
+
var arraySlice = __webpack_require__("9228");
|
|
1722
|
+
var codeAt = __webpack_require__("a600").codeAt;
|
|
1723
|
+
var toASCII = __webpack_require__("1604");
|
|
1724
|
+
var $toString = __webpack_require__("9dad");
|
|
1725
|
+
var setToStringTag = __webpack_require__("49ff");
|
|
1726
|
+
var validateArgumentsLength = __webpack_require__("1346");
|
|
1727
|
+
var URLSearchParamsModule = __webpack_require__("392f");
|
|
1728
|
+
var InternalStateModule = __webpack_require__("a262");
|
|
1729
|
+
|
|
1730
|
+
var setInternalState = InternalStateModule.set;
|
|
1731
|
+
var getInternalURLState = InternalStateModule.getterFor('URL');
|
|
1732
|
+
var URLSearchParams = URLSearchParamsModule.URLSearchParams;
|
|
1733
|
+
var getInternalSearchParamsState = URLSearchParamsModule.getState;
|
|
1734
|
+
|
|
1735
|
+
var NativeURL = globalThis.URL;
|
|
1736
|
+
var TypeError = globalThis.TypeError;
|
|
1737
|
+
var parseInt = globalThis.parseInt;
|
|
1738
|
+
var floor = Math.floor;
|
|
1739
|
+
var pow = Math.pow;
|
|
1740
|
+
var charAt = uncurryThis(''.charAt);
|
|
1741
|
+
var exec = uncurryThis(/./.exec);
|
|
1742
|
+
var join = uncurryThis([].join);
|
|
1743
|
+
var numberToString = uncurryThis(1.1.toString);
|
|
1744
|
+
var pop = uncurryThis([].pop);
|
|
1745
|
+
var push = uncurryThis([].push);
|
|
1746
|
+
var replace = uncurryThis(''.replace);
|
|
1747
|
+
var shift = uncurryThis([].shift);
|
|
1748
|
+
var split = uncurryThis(''.split);
|
|
1749
|
+
var stringSlice = uncurryThis(''.slice);
|
|
1750
|
+
var toLowerCase = uncurryThis(''.toLowerCase);
|
|
1751
|
+
var unshift = uncurryThis([].unshift);
|
|
1752
|
+
|
|
1753
|
+
var INVALID_AUTHORITY = 'Invalid authority';
|
|
1754
|
+
var INVALID_SCHEME = 'Invalid scheme';
|
|
1755
|
+
var INVALID_HOST = 'Invalid host';
|
|
1756
|
+
var INVALID_PORT = 'Invalid port';
|
|
1757
|
+
|
|
1758
|
+
var ALPHA = /[a-z]/i;
|
|
1759
|
+
// eslint-disable-next-line regexp/no-obscure-range -- safe
|
|
1760
|
+
var ALPHANUMERIC = /[\d+-.a-z]/i;
|
|
1761
|
+
var DIGIT = /\d/;
|
|
1762
|
+
var HEX_START = /^0x/i;
|
|
1763
|
+
var OCT = /^[0-7]+$/;
|
|
1764
|
+
var DEC = /^\d+$/;
|
|
1765
|
+
var HEX = /^[\da-f]+$/i;
|
|
1766
|
+
/* eslint-disable regexp/no-control-character -- safe */
|
|
1767
|
+
var FORBIDDEN_HOST_CODE_POINT = /[\0\t\n\r #%/:<>?@[\\\]^|]/;
|
|
1768
|
+
var FORBIDDEN_HOST_CODE_POINT_EXCLUDING_PERCENT = /[\0\t\n\r #/:<>?@[\\\]^|]/;
|
|
1769
|
+
var LEADING_C0_CONTROL_OR_SPACE = /^[\u0000-\u0020]+/;
|
|
1770
|
+
var TRAILING_C0_CONTROL_OR_SPACE = /(^|[^\u0000-\u0020])[\u0000-\u0020]+$/;
|
|
1771
|
+
var TAB_AND_NEW_LINE = /[\t\n\r]/g;
|
|
1772
|
+
/* eslint-enable regexp/no-control-character -- safe */
|
|
1773
|
+
// eslint-disable-next-line no-unassigned-vars -- expected `undefined` value
|
|
1774
|
+
var EOF;
|
|
1775
|
+
|
|
1776
|
+
// https://url.spec.whatwg.org/#ipv4-number-parser
|
|
1777
|
+
var parseIPv4 = function (input) {
|
|
1778
|
+
var parts = split(input, '.');
|
|
1779
|
+
var partsLength, numbers, index, part, radix, number, ipv4;
|
|
1780
|
+
if (parts.length && parts[parts.length - 1] === '') {
|
|
1781
|
+
parts.length--;
|
|
1782
|
+
}
|
|
1783
|
+
partsLength = parts.length;
|
|
1784
|
+
if (partsLength > 4) return input;
|
|
1785
|
+
numbers = [];
|
|
1786
|
+
for (index = 0; index < partsLength; index++) {
|
|
1787
|
+
part = parts[index];
|
|
1788
|
+
if (part === '') return input;
|
|
1789
|
+
radix = 10;
|
|
1790
|
+
if (part.length > 1 && charAt(part, 0) === '0') {
|
|
1791
|
+
radix = exec(HEX_START, part) ? 16 : 8;
|
|
1792
|
+
part = stringSlice(part, radix === 8 ? 1 : 2);
|
|
1793
|
+
}
|
|
1794
|
+
if (part === '') {
|
|
1795
|
+
number = 0;
|
|
1796
|
+
} else {
|
|
1797
|
+
if (!exec(radix === 10 ? DEC : radix === 8 ? OCT : HEX, part)) return input;
|
|
1798
|
+
number = parseInt(part, radix);
|
|
1799
|
+
}
|
|
1800
|
+
push(numbers, number);
|
|
1801
|
+
}
|
|
1802
|
+
for (index = 0; index < partsLength; index++) {
|
|
1803
|
+
number = numbers[index];
|
|
1804
|
+
if (index === partsLength - 1) {
|
|
1805
|
+
if (number >= pow(256, 5 - partsLength)) return null;
|
|
1806
|
+
} else if (number > 255) return null;
|
|
1807
|
+
}
|
|
1808
|
+
ipv4 = pop(numbers);
|
|
1809
|
+
for (index = 0; index < numbers.length; index++) {
|
|
1810
|
+
ipv4 += numbers[index] * pow(256, 3 - index);
|
|
1811
|
+
}
|
|
1812
|
+
return ipv4;
|
|
1813
|
+
};
|
|
1814
|
+
|
|
1815
|
+
// https://url.spec.whatwg.org/#concept-ipv6-parser
|
|
1816
|
+
// eslint-disable-next-line max-statements -- TODO
|
|
1817
|
+
var parseIPv6 = function (input) {
|
|
1818
|
+
var address = [0, 0, 0, 0, 0, 0, 0, 0];
|
|
1819
|
+
var pieceIndex = 0;
|
|
1820
|
+
var compress = null;
|
|
1821
|
+
var pointer = 0;
|
|
1822
|
+
var value, length, numbersSeen, ipv4Piece, number, swaps, swap;
|
|
1823
|
+
|
|
1824
|
+
var chr = function () {
|
|
1825
|
+
return charAt(input, pointer);
|
|
1826
|
+
};
|
|
1827
|
+
|
|
1828
|
+
if (chr() === ':') {
|
|
1829
|
+
if (charAt(input, 1) !== ':') return;
|
|
1830
|
+
pointer += 2;
|
|
1831
|
+
pieceIndex++;
|
|
1832
|
+
compress = pieceIndex;
|
|
1833
|
+
}
|
|
1834
|
+
while (chr()) {
|
|
1835
|
+
if (pieceIndex === 8) return;
|
|
1836
|
+
if (chr() === ':') {
|
|
1837
|
+
if (compress !== null) return;
|
|
1838
|
+
pointer++;
|
|
1839
|
+
pieceIndex++;
|
|
1840
|
+
compress = pieceIndex;
|
|
1841
|
+
continue;
|
|
1842
|
+
}
|
|
1843
|
+
value = length = 0;
|
|
1844
|
+
while (length < 4 && exec(HEX, chr())) {
|
|
1845
|
+
value = value * 16 + parseInt(chr(), 16);
|
|
1846
|
+
pointer++;
|
|
1847
|
+
length++;
|
|
1848
|
+
}
|
|
1849
|
+
if (chr() === '.') {
|
|
1850
|
+
if (length === 0) return;
|
|
1851
|
+
pointer -= length;
|
|
1852
|
+
if (pieceIndex > 6) return;
|
|
1853
|
+
numbersSeen = 0;
|
|
1854
|
+
while (chr()) {
|
|
1855
|
+
ipv4Piece = null;
|
|
1856
|
+
if (numbersSeen > 0) {
|
|
1857
|
+
if (chr() === '.' && numbersSeen < 4) pointer++;
|
|
1858
|
+
else return;
|
|
1859
|
+
}
|
|
1860
|
+
if (!exec(DIGIT, chr())) return;
|
|
1861
|
+
while (exec(DIGIT, chr())) {
|
|
1862
|
+
number = parseInt(chr(), 10);
|
|
1863
|
+
if (ipv4Piece === null) ipv4Piece = number;
|
|
1864
|
+
else if (ipv4Piece === 0) return;
|
|
1865
|
+
else ipv4Piece = ipv4Piece * 10 + number;
|
|
1866
|
+
if (ipv4Piece > 255) return;
|
|
1867
|
+
pointer++;
|
|
1868
|
+
}
|
|
1869
|
+
address[pieceIndex] = address[pieceIndex] * 256 + ipv4Piece;
|
|
1870
|
+
numbersSeen++;
|
|
1871
|
+
if (numbersSeen === 2 || numbersSeen === 4) pieceIndex++;
|
|
1872
|
+
}
|
|
1873
|
+
if (numbersSeen !== 4) return;
|
|
1874
|
+
break;
|
|
1875
|
+
} else if (chr() === ':') {
|
|
1876
|
+
pointer++;
|
|
1877
|
+
if (!chr()) return;
|
|
1878
|
+
} else if (chr()) return;
|
|
1879
|
+
address[pieceIndex++] = value;
|
|
1880
|
+
}
|
|
1881
|
+
if (compress !== null) {
|
|
1882
|
+
swaps = pieceIndex - compress;
|
|
1883
|
+
pieceIndex = 7;
|
|
1884
|
+
while (pieceIndex !== 0 && swaps > 0) {
|
|
1885
|
+
swap = address[pieceIndex];
|
|
1886
|
+
address[pieceIndex--] = address[compress + swaps - 1];
|
|
1887
|
+
address[compress + --swaps] = swap;
|
|
1888
|
+
}
|
|
1889
|
+
} else if (pieceIndex !== 8) return;
|
|
1890
|
+
return address;
|
|
1891
|
+
};
|
|
1892
|
+
|
|
1893
|
+
var findLongestZeroSequence = function (ipv6) {
|
|
1894
|
+
var maxIndex = null;
|
|
1895
|
+
var maxLength = 1;
|
|
1896
|
+
var currStart = null;
|
|
1897
|
+
var currLength = 0;
|
|
1898
|
+
var index = 0;
|
|
1899
|
+
for (; index < 8; index++) {
|
|
1900
|
+
if (ipv6[index] !== 0) {
|
|
1901
|
+
if (currLength > maxLength) {
|
|
1902
|
+
maxIndex = currStart;
|
|
1903
|
+
maxLength = currLength;
|
|
1904
|
+
}
|
|
1905
|
+
currStart = null;
|
|
1906
|
+
currLength = 0;
|
|
1907
|
+
} else {
|
|
1908
|
+
if (currStart === null) currStart = index;
|
|
1909
|
+
++currLength;
|
|
1910
|
+
}
|
|
1911
|
+
}
|
|
1912
|
+
return currLength > maxLength ? currStart : maxIndex;
|
|
1913
|
+
};
|
|
1914
|
+
|
|
1915
|
+
// https://url.spec.whatwg.org/#host-serializing
|
|
1916
|
+
var serializeHost = function (host) {
|
|
1917
|
+
var result, index, compress, ignore0;
|
|
1918
|
+
|
|
1919
|
+
// ipv4
|
|
1920
|
+
if (typeof host == 'number') {
|
|
1921
|
+
result = [];
|
|
1922
|
+
for (index = 0; index < 4; index++) {
|
|
1923
|
+
unshift(result, host % 256);
|
|
1924
|
+
host = floor(host / 256);
|
|
1925
|
+
}
|
|
1926
|
+
return join(result, '.');
|
|
1927
|
+
}
|
|
1928
|
+
|
|
1929
|
+
// ipv6
|
|
1930
|
+
if (typeof host == 'object') {
|
|
1931
|
+
result = '';
|
|
1932
|
+
compress = findLongestZeroSequence(host);
|
|
1933
|
+
for (index = 0; index < 8; index++) {
|
|
1934
|
+
if (ignore0 && host[index] === 0) continue;
|
|
1935
|
+
if (ignore0) ignore0 = false;
|
|
1936
|
+
if (compress === index) {
|
|
1937
|
+
result += index ? ':' : '::';
|
|
1938
|
+
ignore0 = true;
|
|
1939
|
+
} else {
|
|
1940
|
+
result += numberToString(host[index], 16);
|
|
1941
|
+
if (index < 7) result += ':';
|
|
1942
|
+
}
|
|
1943
|
+
}
|
|
1944
|
+
return '[' + result + ']';
|
|
1945
|
+
}
|
|
1946
|
+
|
|
1947
|
+
return host;
|
|
1948
|
+
};
|
|
1949
|
+
|
|
1950
|
+
var C0ControlPercentEncodeSet = {};
|
|
1951
|
+
var fragmentPercentEncodeSet = assign({}, C0ControlPercentEncodeSet, {
|
|
1952
|
+
' ': 1, '"': 1, '<': 1, '>': 1, '`': 1
|
|
1953
|
+
});
|
|
1954
|
+
var pathPercentEncodeSet = assign({}, fragmentPercentEncodeSet, {
|
|
1955
|
+
'#': 1, '?': 1, '{': 1, '}': 1
|
|
1956
|
+
});
|
|
1957
|
+
var userinfoPercentEncodeSet = assign({}, pathPercentEncodeSet, {
|
|
1958
|
+
'/': 1, ':': 1, ';': 1, '=': 1, '@': 1, '[': 1, '\\': 1, ']': 1, '^': 1, '|': 1
|
|
1959
|
+
});
|
|
1960
|
+
|
|
1961
|
+
var percentEncode = function (chr, set) {
|
|
1962
|
+
var code = codeAt(chr, 0);
|
|
1963
|
+
return code > 0x20 && code < 0x7F && !hasOwn(set, chr) ? chr : encodeURIComponent(chr);
|
|
1964
|
+
};
|
|
1965
|
+
|
|
1966
|
+
// https://url.spec.whatwg.org/#special-scheme
|
|
1967
|
+
var specialSchemes = {
|
|
1968
|
+
ftp: 21,
|
|
1969
|
+
file: null,
|
|
1970
|
+
http: 80,
|
|
1971
|
+
https: 443,
|
|
1972
|
+
ws: 80,
|
|
1973
|
+
wss: 443
|
|
1974
|
+
};
|
|
1975
|
+
|
|
1976
|
+
// https://url.spec.whatwg.org/#windows-drive-letter
|
|
1977
|
+
var isWindowsDriveLetter = function (string, normalized) {
|
|
1978
|
+
var second;
|
|
1979
|
+
return string.length === 2 && exec(ALPHA, charAt(string, 0))
|
|
1980
|
+
&& ((second = charAt(string, 1)) === ':' || (!normalized && second === '|'));
|
|
1981
|
+
};
|
|
1982
|
+
|
|
1983
|
+
// https://url.spec.whatwg.org/#start-with-a-windows-drive-letter
|
|
1984
|
+
var startsWithWindowsDriveLetter = function (string) {
|
|
1985
|
+
var third;
|
|
1986
|
+
return string.length > 1 && isWindowsDriveLetter(stringSlice(string, 0, 2)) && (
|
|
1987
|
+
string.length === 2 ||
|
|
1988
|
+
((third = charAt(string, 2)) === '/' || third === '\\' || third === '?' || third === '#')
|
|
1989
|
+
);
|
|
1990
|
+
};
|
|
1991
|
+
|
|
1992
|
+
// https://url.spec.whatwg.org/#single-dot-path-segment
|
|
1993
|
+
var isSingleDot = function (segment) {
|
|
1994
|
+
return segment === '.' || toLowerCase(segment) === '%2e';
|
|
1995
|
+
};
|
|
1996
|
+
|
|
1997
|
+
// https://url.spec.whatwg.org/#double-dot-path-segment
|
|
1998
|
+
var isDoubleDot = function (segment) {
|
|
1999
|
+
segment = toLowerCase(segment);
|
|
2000
|
+
return segment === '..' || segment === '%2e.' || segment === '.%2e' || segment === '%2e%2e';
|
|
2001
|
+
};
|
|
2002
|
+
|
|
2003
|
+
// States:
|
|
2004
|
+
var SCHEME_START = {};
|
|
2005
|
+
var SCHEME = {};
|
|
2006
|
+
var NO_SCHEME = {};
|
|
2007
|
+
var SPECIAL_RELATIVE_OR_AUTHORITY = {};
|
|
2008
|
+
var PATH_OR_AUTHORITY = {};
|
|
2009
|
+
var RELATIVE = {};
|
|
2010
|
+
var RELATIVE_SLASH = {};
|
|
2011
|
+
var SPECIAL_AUTHORITY_SLASHES = {};
|
|
2012
|
+
var SPECIAL_AUTHORITY_IGNORE_SLASHES = {};
|
|
2013
|
+
var AUTHORITY = {};
|
|
2014
|
+
var HOST = {};
|
|
2015
|
+
var HOSTNAME = {};
|
|
2016
|
+
var PORT = {};
|
|
2017
|
+
var FILE = {};
|
|
2018
|
+
var FILE_SLASH = {};
|
|
2019
|
+
var FILE_HOST = {};
|
|
2020
|
+
var PATH_START = {};
|
|
2021
|
+
var PATH = {};
|
|
2022
|
+
var CANNOT_BE_A_BASE_URL_PATH = {};
|
|
2023
|
+
var QUERY = {};
|
|
2024
|
+
var FRAGMENT = {};
|
|
2025
|
+
|
|
2026
|
+
var URLState = function (url, isBase, base) {
|
|
2027
|
+
var urlString = $toString(url);
|
|
2028
|
+
var baseState, failure, searchParams;
|
|
2029
|
+
if (isBase) {
|
|
2030
|
+
failure = this.parse(urlString);
|
|
2031
|
+
if (failure) throw new TypeError(failure);
|
|
2032
|
+
this.searchParams = null;
|
|
2033
|
+
} else {
|
|
2034
|
+
if (base !== undefined) baseState = new URLState(base, true);
|
|
2035
|
+
failure = this.parse(urlString, null, baseState);
|
|
2036
|
+
if (failure) throw new TypeError(failure);
|
|
2037
|
+
searchParams = getInternalSearchParamsState(new URLSearchParams());
|
|
2038
|
+
searchParams.bindURL(this);
|
|
2039
|
+
this.searchParams = searchParams;
|
|
2040
|
+
}
|
|
2041
|
+
};
|
|
2042
|
+
|
|
2043
|
+
URLState.prototype = {
|
|
2044
|
+
type: 'URL',
|
|
2045
|
+
// https://url.spec.whatwg.org/#url-parsing
|
|
2046
|
+
// eslint-disable-next-line max-statements -- TODO
|
|
2047
|
+
parse: function (input, stateOverride, base) {
|
|
2048
|
+
var url = this;
|
|
2049
|
+
var state = stateOverride || SCHEME_START;
|
|
2050
|
+
var pointer = 0;
|
|
2051
|
+
var buffer = '';
|
|
2052
|
+
var seenAt = false;
|
|
2053
|
+
var seenBracket = false;
|
|
2054
|
+
var seenPasswordToken = false;
|
|
2055
|
+
var codePoints, chr, bufferCodePoints, failure;
|
|
2056
|
+
|
|
2057
|
+
input = $toString(input);
|
|
2058
|
+
|
|
2059
|
+
if (!stateOverride) {
|
|
2060
|
+
url.scheme = '';
|
|
2061
|
+
url.username = '';
|
|
2062
|
+
url.password = '';
|
|
2063
|
+
url.host = null;
|
|
2064
|
+
url.port = null;
|
|
2065
|
+
url.path = [];
|
|
2066
|
+
url.query = null;
|
|
2067
|
+
url.fragment = null;
|
|
2068
|
+
url.cannotBeABaseURL = false;
|
|
2069
|
+
input = replace(input, LEADING_C0_CONTROL_OR_SPACE, '');
|
|
2070
|
+
input = replace(input, TRAILING_C0_CONTROL_OR_SPACE, '$1');
|
|
2071
|
+
}
|
|
2072
|
+
|
|
2073
|
+
input = replace(input, TAB_AND_NEW_LINE, '');
|
|
2074
|
+
|
|
2075
|
+
codePoints = arrayFrom(input);
|
|
2076
|
+
|
|
2077
|
+
while (pointer <= codePoints.length) {
|
|
2078
|
+
chr = codePoints[pointer];
|
|
2079
|
+
switch (state) {
|
|
2080
|
+
case SCHEME_START:
|
|
2081
|
+
if (chr && exec(ALPHA, chr)) {
|
|
2082
|
+
buffer += toLowerCase(chr);
|
|
2083
|
+
state = SCHEME;
|
|
2084
|
+
} else if (!stateOverride) {
|
|
2085
|
+
state = NO_SCHEME;
|
|
2086
|
+
continue;
|
|
2087
|
+
} else return INVALID_SCHEME;
|
|
2088
|
+
break;
|
|
2089
|
+
|
|
2090
|
+
case SCHEME:
|
|
2091
|
+
if (chr && (exec(ALPHANUMERIC, chr) || chr === '+' || chr === '-' || chr === '.')) {
|
|
2092
|
+
buffer += toLowerCase(chr);
|
|
2093
|
+
} else if (chr === ':') {
|
|
2094
|
+
if (stateOverride && (
|
|
2095
|
+
(url.isSpecial() !== hasOwn(specialSchemes, buffer)) ||
|
|
2096
|
+
(buffer === 'file' && (url.includesCredentials() || url.port !== null)) ||
|
|
2097
|
+
(url.scheme === 'file' && !url.host)
|
|
2098
|
+
)) return;
|
|
2099
|
+
url.scheme = buffer;
|
|
2100
|
+
if (stateOverride) {
|
|
2101
|
+
if (url.isSpecial() && specialSchemes[url.scheme] === url.port) url.port = null;
|
|
2102
|
+
return;
|
|
2103
|
+
}
|
|
2104
|
+
buffer = '';
|
|
2105
|
+
if (url.scheme === 'file') {
|
|
2106
|
+
state = FILE;
|
|
2107
|
+
} else if (url.isSpecial() && base && base.scheme === url.scheme) {
|
|
2108
|
+
state = SPECIAL_RELATIVE_OR_AUTHORITY;
|
|
2109
|
+
} else if (url.isSpecial()) {
|
|
2110
|
+
state = SPECIAL_AUTHORITY_SLASHES;
|
|
2111
|
+
} else if (codePoints[pointer + 1] === '/') {
|
|
2112
|
+
state = PATH_OR_AUTHORITY;
|
|
2113
|
+
pointer++;
|
|
2114
|
+
} else {
|
|
2115
|
+
url.cannotBeABaseURL = true;
|
|
2116
|
+
push(url.path, '');
|
|
2117
|
+
state = CANNOT_BE_A_BASE_URL_PATH;
|
|
2118
|
+
}
|
|
2119
|
+
} else if (!stateOverride) {
|
|
2120
|
+
buffer = '';
|
|
2121
|
+
state = NO_SCHEME;
|
|
2122
|
+
pointer = 0;
|
|
2123
|
+
continue;
|
|
2124
|
+
} else return INVALID_SCHEME;
|
|
2125
|
+
break;
|
|
2126
|
+
|
|
2127
|
+
case NO_SCHEME:
|
|
2128
|
+
if (!base || (base.cannotBeABaseURL && chr !== '#')) return INVALID_SCHEME;
|
|
2129
|
+
if (base.cannotBeABaseURL && chr === '#') {
|
|
2130
|
+
url.scheme = base.scheme;
|
|
2131
|
+
url.path = arraySlice(base.path);
|
|
2132
|
+
url.query = base.query;
|
|
2133
|
+
url.fragment = '';
|
|
2134
|
+
url.cannotBeABaseURL = true;
|
|
2135
|
+
state = FRAGMENT;
|
|
2136
|
+
break;
|
|
2137
|
+
}
|
|
2138
|
+
state = base.scheme === 'file' ? FILE : RELATIVE;
|
|
2139
|
+
continue;
|
|
2140
|
+
|
|
2141
|
+
case SPECIAL_RELATIVE_OR_AUTHORITY:
|
|
2142
|
+
if (chr === '/' && codePoints[pointer + 1] === '/') {
|
|
2143
|
+
state = SPECIAL_AUTHORITY_IGNORE_SLASHES;
|
|
2144
|
+
pointer++;
|
|
2145
|
+
} else {
|
|
2146
|
+
state = RELATIVE;
|
|
2147
|
+
continue;
|
|
2148
|
+
} break;
|
|
2149
|
+
|
|
2150
|
+
case PATH_OR_AUTHORITY:
|
|
2151
|
+
if (chr === '/') {
|
|
2152
|
+
state = AUTHORITY;
|
|
2153
|
+
break;
|
|
2154
|
+
} else {
|
|
2155
|
+
state = PATH;
|
|
2156
|
+
continue;
|
|
2157
|
+
}
|
|
2158
|
+
|
|
2159
|
+
case RELATIVE:
|
|
2160
|
+
url.scheme = base.scheme;
|
|
2161
|
+
if (chr === EOF) {
|
|
2162
|
+
url.username = base.username;
|
|
2163
|
+
url.password = base.password;
|
|
2164
|
+
url.host = base.host;
|
|
2165
|
+
url.port = base.port;
|
|
2166
|
+
url.path = arraySlice(base.path);
|
|
2167
|
+
url.query = base.query;
|
|
2168
|
+
} else if (chr === '/' || (chr === '\\' && url.isSpecial())) {
|
|
2169
|
+
state = RELATIVE_SLASH;
|
|
2170
|
+
} else if (chr === '?') {
|
|
2171
|
+
url.username = base.username;
|
|
2172
|
+
url.password = base.password;
|
|
2173
|
+
url.host = base.host;
|
|
2174
|
+
url.port = base.port;
|
|
2175
|
+
url.path = arraySlice(base.path);
|
|
2176
|
+
url.query = '';
|
|
2177
|
+
state = QUERY;
|
|
2178
|
+
} else if (chr === '#') {
|
|
2179
|
+
url.username = base.username;
|
|
2180
|
+
url.password = base.password;
|
|
2181
|
+
url.host = base.host;
|
|
2182
|
+
url.port = base.port;
|
|
2183
|
+
url.path = arraySlice(base.path);
|
|
2184
|
+
url.query = base.query;
|
|
2185
|
+
url.fragment = '';
|
|
2186
|
+
state = FRAGMENT;
|
|
2187
|
+
} else {
|
|
2188
|
+
url.username = base.username;
|
|
2189
|
+
url.password = base.password;
|
|
2190
|
+
url.host = base.host;
|
|
2191
|
+
url.port = base.port;
|
|
2192
|
+
url.path = arraySlice(base.path);
|
|
2193
|
+
url.path.length--;
|
|
2194
|
+
state = PATH;
|
|
2195
|
+
continue;
|
|
2196
|
+
} break;
|
|
2197
|
+
|
|
2198
|
+
case RELATIVE_SLASH:
|
|
2199
|
+
if (url.isSpecial() && (chr === '/' || chr === '\\')) {
|
|
2200
|
+
state = SPECIAL_AUTHORITY_IGNORE_SLASHES;
|
|
2201
|
+
} else if (chr === '/') {
|
|
2202
|
+
state = AUTHORITY;
|
|
2203
|
+
} else {
|
|
2204
|
+
url.username = base.username;
|
|
2205
|
+
url.password = base.password;
|
|
2206
|
+
url.host = base.host;
|
|
2207
|
+
url.port = base.port;
|
|
2208
|
+
state = PATH;
|
|
2209
|
+
continue;
|
|
2210
|
+
} break;
|
|
2211
|
+
|
|
2212
|
+
case SPECIAL_AUTHORITY_SLASHES:
|
|
2213
|
+
state = SPECIAL_AUTHORITY_IGNORE_SLASHES;
|
|
2214
|
+
if (chr !== '/' || charAt(buffer, pointer + 1) !== '/') continue;
|
|
2215
|
+
pointer++;
|
|
2216
|
+
break;
|
|
2217
|
+
|
|
2218
|
+
case SPECIAL_AUTHORITY_IGNORE_SLASHES:
|
|
2219
|
+
if (chr !== '/' && chr !== '\\') {
|
|
2220
|
+
state = AUTHORITY;
|
|
2221
|
+
continue;
|
|
2222
|
+
} break;
|
|
2223
|
+
|
|
2224
|
+
case AUTHORITY:
|
|
2225
|
+
if (chr === '@') {
|
|
2226
|
+
if (seenAt) buffer = '%40' + buffer;
|
|
2227
|
+
seenAt = true;
|
|
2228
|
+
bufferCodePoints = arrayFrom(buffer);
|
|
2229
|
+
for (var i = 0; i < bufferCodePoints.length; i++) {
|
|
2230
|
+
var codePoint = bufferCodePoints[i];
|
|
2231
|
+
if (codePoint === ':' && !seenPasswordToken) {
|
|
2232
|
+
seenPasswordToken = true;
|
|
2233
|
+
continue;
|
|
2234
|
+
}
|
|
2235
|
+
var encodedCodePoints = percentEncode(codePoint, userinfoPercentEncodeSet);
|
|
2236
|
+
if (seenPasswordToken) url.password += encodedCodePoints;
|
|
2237
|
+
else url.username += encodedCodePoints;
|
|
2238
|
+
}
|
|
2239
|
+
buffer = '';
|
|
2240
|
+
} else if (
|
|
2241
|
+
chr === EOF || chr === '/' || chr === '?' || chr === '#' ||
|
|
2242
|
+
(chr === '\\' && url.isSpecial())
|
|
2243
|
+
) {
|
|
2244
|
+
if (seenAt && buffer === '') return INVALID_AUTHORITY;
|
|
2245
|
+
pointer -= arrayFrom(buffer).length + 1;
|
|
2246
|
+
buffer = '';
|
|
2247
|
+
state = HOST;
|
|
2248
|
+
} else buffer += chr;
|
|
2249
|
+
break;
|
|
2250
|
+
|
|
2251
|
+
case HOST:
|
|
2252
|
+
case HOSTNAME:
|
|
2253
|
+
if (stateOverride && url.scheme === 'file') {
|
|
2254
|
+
state = FILE_HOST;
|
|
2255
|
+
continue;
|
|
2256
|
+
} else if (chr === ':' && !seenBracket) {
|
|
2257
|
+
if (buffer === '') return INVALID_HOST;
|
|
2258
|
+
failure = url.parseHost(buffer);
|
|
2259
|
+
if (failure) return failure;
|
|
2260
|
+
buffer = '';
|
|
2261
|
+
state = PORT;
|
|
2262
|
+
if (stateOverride === HOSTNAME) return;
|
|
2263
|
+
} else if (
|
|
2264
|
+
chr === EOF || chr === '/' || chr === '?' || chr === '#' ||
|
|
2265
|
+
(chr === '\\' && url.isSpecial())
|
|
2266
|
+
) {
|
|
2267
|
+
if (url.isSpecial() && buffer === '') return INVALID_HOST;
|
|
2268
|
+
if (stateOverride && buffer === '' && (url.includesCredentials() || url.port !== null)) return;
|
|
2269
|
+
failure = url.parseHost(buffer);
|
|
2270
|
+
if (failure) return failure;
|
|
2271
|
+
buffer = '';
|
|
2272
|
+
state = PATH_START;
|
|
2273
|
+
if (stateOverride) return;
|
|
2274
|
+
continue;
|
|
2275
|
+
} else {
|
|
2276
|
+
if (chr === '[') seenBracket = true;
|
|
2277
|
+
else if (chr === ']') seenBracket = false;
|
|
2278
|
+
buffer += chr;
|
|
2279
|
+
} break;
|
|
2280
|
+
|
|
2281
|
+
case PORT:
|
|
2282
|
+
if (exec(DIGIT, chr)) {
|
|
2283
|
+
buffer += chr;
|
|
2284
|
+
} else if (
|
|
2285
|
+
chr === EOF || chr === '/' || chr === '?' || chr === '#' ||
|
|
2286
|
+
(chr === '\\' && url.isSpecial()) ||
|
|
2287
|
+
stateOverride
|
|
2288
|
+
) {
|
|
2289
|
+
if (buffer !== '') {
|
|
2290
|
+
var port = parseInt(buffer, 10);
|
|
2291
|
+
if (port > 0xFFFF) return INVALID_PORT;
|
|
2292
|
+
url.port = (url.isSpecial() && port === specialSchemes[url.scheme]) ? null : port;
|
|
2293
|
+
buffer = '';
|
|
2294
|
+
}
|
|
2295
|
+
if (stateOverride) return;
|
|
2296
|
+
state = PATH_START;
|
|
2297
|
+
continue;
|
|
2298
|
+
} else return INVALID_PORT;
|
|
2299
|
+
break;
|
|
2300
|
+
|
|
2301
|
+
case FILE:
|
|
2302
|
+
url.scheme = 'file';
|
|
2303
|
+
if (chr === '/' || chr === '\\') state = FILE_SLASH;
|
|
2304
|
+
else if (base && base.scheme === 'file') {
|
|
2305
|
+
switch (chr) {
|
|
2306
|
+
case EOF:
|
|
2307
|
+
url.host = base.host;
|
|
2308
|
+
url.path = arraySlice(base.path);
|
|
2309
|
+
url.query = base.query;
|
|
2310
|
+
break;
|
|
2311
|
+
case '?':
|
|
2312
|
+
url.host = base.host;
|
|
2313
|
+
url.path = arraySlice(base.path);
|
|
2314
|
+
url.query = '';
|
|
2315
|
+
state = QUERY;
|
|
2316
|
+
break;
|
|
2317
|
+
case '#':
|
|
2318
|
+
url.host = base.host;
|
|
2319
|
+
url.path = arraySlice(base.path);
|
|
2320
|
+
url.query = base.query;
|
|
2321
|
+
url.fragment = '';
|
|
2322
|
+
state = FRAGMENT;
|
|
2323
|
+
break;
|
|
2324
|
+
default:
|
|
2325
|
+
if (!startsWithWindowsDriveLetter(join(arraySlice(codePoints, pointer), ''))) {
|
|
2326
|
+
url.host = base.host;
|
|
2327
|
+
url.path = arraySlice(base.path);
|
|
2328
|
+
url.shortenPath();
|
|
2329
|
+
}
|
|
2330
|
+
state = PATH;
|
|
2331
|
+
continue;
|
|
2332
|
+
}
|
|
2333
|
+
} else {
|
|
2334
|
+
state = PATH;
|
|
2335
|
+
continue;
|
|
2336
|
+
} break;
|
|
2337
|
+
|
|
2338
|
+
case FILE_SLASH:
|
|
2339
|
+
if (chr === '/' || chr === '\\') {
|
|
2340
|
+
state = FILE_HOST;
|
|
2341
|
+
break;
|
|
2342
|
+
}
|
|
2343
|
+
if (base && base.scheme === 'file' && !startsWithWindowsDriveLetter(join(arraySlice(codePoints, pointer), ''))) {
|
|
2344
|
+
if (isWindowsDriveLetter(base.path[0], true)) push(url.path, base.path[0]);
|
|
2345
|
+
else url.host = base.host;
|
|
2346
|
+
}
|
|
2347
|
+
state = PATH;
|
|
2348
|
+
continue;
|
|
2349
|
+
|
|
2350
|
+
case FILE_HOST:
|
|
2351
|
+
if (chr === EOF || chr === '/' || chr === '\\' || chr === '?' || chr === '#') {
|
|
2352
|
+
if (!stateOverride && isWindowsDriveLetter(buffer)) {
|
|
2353
|
+
state = PATH;
|
|
2354
|
+
} else if (buffer === '') {
|
|
2355
|
+
url.host = '';
|
|
2356
|
+
if (stateOverride) return;
|
|
2357
|
+
state = PATH_START;
|
|
2358
|
+
} else {
|
|
2359
|
+
failure = url.parseHost(buffer);
|
|
2360
|
+
if (failure) return failure;
|
|
2361
|
+
if (url.host === 'localhost') url.host = '';
|
|
2362
|
+
if (stateOverride) return;
|
|
2363
|
+
buffer = '';
|
|
2364
|
+
state = PATH_START;
|
|
2365
|
+
} continue;
|
|
2366
|
+
} else buffer += chr;
|
|
2367
|
+
break;
|
|
2368
|
+
|
|
2369
|
+
case PATH_START:
|
|
2370
|
+
if (url.isSpecial()) {
|
|
2371
|
+
state = PATH;
|
|
2372
|
+
if (chr !== '/' && chr !== '\\') continue;
|
|
2373
|
+
} else if (!stateOverride && chr === '?') {
|
|
2374
|
+
url.query = '';
|
|
2375
|
+
state = QUERY;
|
|
2376
|
+
} else if (!stateOverride && chr === '#') {
|
|
2377
|
+
url.fragment = '';
|
|
2378
|
+
state = FRAGMENT;
|
|
2379
|
+
} else if (chr !== EOF) {
|
|
2380
|
+
state = PATH;
|
|
2381
|
+
if (chr !== '/') continue;
|
|
2382
|
+
} break;
|
|
2383
|
+
|
|
2384
|
+
case PATH:
|
|
2385
|
+
if (
|
|
2386
|
+
chr === EOF || chr === '/' ||
|
|
2387
|
+
(chr === '\\' && url.isSpecial()) ||
|
|
2388
|
+
(!stateOverride && (chr === '?' || chr === '#'))
|
|
2389
|
+
) {
|
|
2390
|
+
if (isDoubleDot(buffer)) {
|
|
2391
|
+
url.shortenPath();
|
|
2392
|
+
if (chr !== '/' && !(chr === '\\' && url.isSpecial())) {
|
|
2393
|
+
push(url.path, '');
|
|
2394
|
+
}
|
|
2395
|
+
} else if (isSingleDot(buffer)) {
|
|
2396
|
+
if (chr !== '/' && !(chr === '\\' && url.isSpecial())) {
|
|
2397
|
+
push(url.path, '');
|
|
2398
|
+
}
|
|
2399
|
+
} else {
|
|
2400
|
+
if (url.scheme === 'file' && !url.path.length && isWindowsDriveLetter(buffer)) {
|
|
2401
|
+
if (url.host) url.host = '';
|
|
2402
|
+
buffer = charAt(buffer, 0) + ':'; // normalize windows drive letter
|
|
2403
|
+
}
|
|
2404
|
+
push(url.path, buffer);
|
|
2405
|
+
}
|
|
2406
|
+
buffer = '';
|
|
2407
|
+
if (url.scheme === 'file' && (chr === EOF || chr === '?' || chr === '#')) {
|
|
2408
|
+
while (url.path.length > 1 && url.path[0] === '') {
|
|
2409
|
+
shift(url.path);
|
|
2410
|
+
}
|
|
2411
|
+
}
|
|
2412
|
+
if (chr === '?') {
|
|
2413
|
+
url.query = '';
|
|
2414
|
+
state = QUERY;
|
|
2415
|
+
} else if (chr === '#') {
|
|
2416
|
+
url.fragment = '';
|
|
2417
|
+
state = FRAGMENT;
|
|
2418
|
+
}
|
|
2419
|
+
} else {
|
|
2420
|
+
buffer += percentEncode(chr, pathPercentEncodeSet);
|
|
2421
|
+
} break;
|
|
2422
|
+
|
|
2423
|
+
case CANNOT_BE_A_BASE_URL_PATH:
|
|
2424
|
+
if (chr === '?') {
|
|
2425
|
+
url.query = '';
|
|
2426
|
+
state = QUERY;
|
|
2427
|
+
} else if (chr === '#') {
|
|
2428
|
+
url.fragment = '';
|
|
2429
|
+
state = FRAGMENT;
|
|
2430
|
+
} else if (chr !== EOF) {
|
|
2431
|
+
url.path[0] += percentEncode(chr, C0ControlPercentEncodeSet);
|
|
2432
|
+
} break;
|
|
2433
|
+
|
|
2434
|
+
case QUERY:
|
|
2435
|
+
if (!stateOverride && chr === '#') {
|
|
2436
|
+
url.fragment = '';
|
|
2437
|
+
state = FRAGMENT;
|
|
2438
|
+
} else if (chr !== EOF) {
|
|
2439
|
+
if (chr === "'" && url.isSpecial()) url.query += '%27';
|
|
2440
|
+
else if (chr === '#') url.query += '%23';
|
|
2441
|
+
else url.query += percentEncode(chr, C0ControlPercentEncodeSet);
|
|
2442
|
+
} break;
|
|
2443
|
+
|
|
2444
|
+
case FRAGMENT:
|
|
2445
|
+
if (chr !== EOF) url.fragment += percentEncode(chr, fragmentPercentEncodeSet);
|
|
2446
|
+
break;
|
|
2447
|
+
}
|
|
2448
|
+
|
|
2449
|
+
pointer++;
|
|
2450
|
+
}
|
|
2451
|
+
},
|
|
2452
|
+
// https://url.spec.whatwg.org/#host-parsing
|
|
2453
|
+
parseHost: function (input) {
|
|
2454
|
+
var result, codePoints, index;
|
|
2455
|
+
if (charAt(input, 0) === '[') {
|
|
2456
|
+
if (charAt(input, input.length - 1) !== ']') return INVALID_HOST;
|
|
2457
|
+
result = parseIPv6(stringSlice(input, 1, -1));
|
|
2458
|
+
if (!result) return INVALID_HOST;
|
|
2459
|
+
this.host = result;
|
|
2460
|
+
// opaque host
|
|
2461
|
+
} else if (!this.isSpecial()) {
|
|
2462
|
+
if (exec(FORBIDDEN_HOST_CODE_POINT_EXCLUDING_PERCENT, input)) return INVALID_HOST;
|
|
2463
|
+
result = '';
|
|
2464
|
+
codePoints = arrayFrom(input);
|
|
2465
|
+
for (index = 0; index < codePoints.length; index++) {
|
|
2466
|
+
result += percentEncode(codePoints[index], C0ControlPercentEncodeSet);
|
|
2467
|
+
}
|
|
2468
|
+
this.host = result;
|
|
2469
|
+
} else {
|
|
2470
|
+
input = toASCII(input);
|
|
2471
|
+
if (exec(FORBIDDEN_HOST_CODE_POINT, input)) return INVALID_HOST;
|
|
2472
|
+
result = parseIPv4(input);
|
|
2473
|
+
if (result === null) return INVALID_HOST;
|
|
2474
|
+
this.host = result;
|
|
2475
|
+
}
|
|
2476
|
+
},
|
|
2477
|
+
// https://url.spec.whatwg.org/#cannot-have-a-username-password-port
|
|
2478
|
+
cannotHaveUsernamePasswordPort: function () {
|
|
2479
|
+
return !this.host || this.cannotBeABaseURL || this.scheme === 'file';
|
|
2480
|
+
},
|
|
2481
|
+
// https://url.spec.whatwg.org/#include-credentials
|
|
2482
|
+
includesCredentials: function () {
|
|
2483
|
+
return this.username !== '' || this.password !== '';
|
|
2484
|
+
},
|
|
2485
|
+
// https://url.spec.whatwg.org/#is-special
|
|
2486
|
+
isSpecial: function () {
|
|
2487
|
+
return hasOwn(specialSchemes, this.scheme);
|
|
2488
|
+
},
|
|
2489
|
+
// https://url.spec.whatwg.org/#shorten-a-urls-path
|
|
2490
|
+
shortenPath: function () {
|
|
2491
|
+
var path = this.path;
|
|
2492
|
+
var pathSize = path.length;
|
|
2493
|
+
if (pathSize && (this.scheme !== 'file' || pathSize !== 1 || !isWindowsDriveLetter(path[0], true))) {
|
|
2494
|
+
path.length--;
|
|
2495
|
+
}
|
|
2496
|
+
},
|
|
2497
|
+
// https://url.spec.whatwg.org/#concept-url-serializer
|
|
2498
|
+
serialize: function () {
|
|
2499
|
+
var url = this;
|
|
2500
|
+
var scheme = url.scheme;
|
|
2501
|
+
var username = url.username;
|
|
2502
|
+
var password = url.password;
|
|
2503
|
+
var host = url.host;
|
|
2504
|
+
var port = url.port;
|
|
2505
|
+
var path = url.path;
|
|
2506
|
+
var query = url.query;
|
|
2507
|
+
var fragment = url.fragment;
|
|
2508
|
+
var output = scheme + ':';
|
|
2509
|
+
if (host !== null) {
|
|
2510
|
+
output += '//';
|
|
2511
|
+
if (url.includesCredentials()) {
|
|
2512
|
+
output += username + (password ? ':' + password : '') + '@';
|
|
2513
|
+
}
|
|
2514
|
+
output += serializeHost(host);
|
|
2515
|
+
if (port !== null) output += ':' + port;
|
|
2516
|
+
} else if (scheme === 'file') output += '//';
|
|
2517
|
+
output += url.cannotBeABaseURL ? path[0] : path.length ? '/' + join(path, '/') : '';
|
|
2518
|
+
if (query !== null) output += '?' + query;
|
|
2519
|
+
if (fragment !== null) output += '#' + fragment;
|
|
2520
|
+
return output;
|
|
2521
|
+
},
|
|
2522
|
+
// https://url.spec.whatwg.org/#dom-url-href
|
|
2523
|
+
setHref: function (href) {
|
|
2524
|
+
var failure = this.parse(href);
|
|
2525
|
+
if (failure) throw new TypeError(failure);
|
|
2526
|
+
this.searchParams.update();
|
|
2527
|
+
},
|
|
2528
|
+
// https://url.spec.whatwg.org/#dom-url-origin
|
|
2529
|
+
getOrigin: function () {
|
|
2530
|
+
var scheme = this.scheme;
|
|
2531
|
+
var port = this.port;
|
|
2532
|
+
if (scheme === 'blob') try {
|
|
2533
|
+
return new URLConstructor(scheme.path[0]).origin;
|
|
2534
|
+
} catch (error) {
|
|
2535
|
+
return 'null';
|
|
2536
|
+
}
|
|
2537
|
+
if (scheme === 'file' || !this.isSpecial()) return 'null';
|
|
2538
|
+
return scheme + '://' + serializeHost(this.host) + (port !== null ? ':' + port : '');
|
|
2539
|
+
},
|
|
2540
|
+
// https://url.spec.whatwg.org/#dom-url-protocol
|
|
2541
|
+
getProtocol: function () {
|
|
2542
|
+
return this.scheme + ':';
|
|
2543
|
+
},
|
|
2544
|
+
setProtocol: function (protocol) {
|
|
2545
|
+
this.parse($toString(protocol) + ':', SCHEME_START);
|
|
2546
|
+
},
|
|
2547
|
+
// https://url.spec.whatwg.org/#dom-url-username
|
|
2548
|
+
getUsername: function () {
|
|
2549
|
+
return this.username;
|
|
2550
|
+
},
|
|
2551
|
+
setUsername: function (username) {
|
|
2552
|
+
var codePoints = arrayFrom($toString(username));
|
|
2553
|
+
if (this.cannotHaveUsernamePasswordPort()) return;
|
|
2554
|
+
this.username = '';
|
|
2555
|
+
for (var i = 0; i < codePoints.length; i++) {
|
|
2556
|
+
this.username += percentEncode(codePoints[i], userinfoPercentEncodeSet);
|
|
2557
|
+
}
|
|
2558
|
+
},
|
|
2559
|
+
// https://url.spec.whatwg.org/#dom-url-password
|
|
2560
|
+
getPassword: function () {
|
|
2561
|
+
return this.password;
|
|
2562
|
+
},
|
|
2563
|
+
setPassword: function (password) {
|
|
2564
|
+
var codePoints = arrayFrom($toString(password));
|
|
2565
|
+
if (this.cannotHaveUsernamePasswordPort()) return;
|
|
2566
|
+
this.password = '';
|
|
2567
|
+
for (var i = 0; i < codePoints.length; i++) {
|
|
2568
|
+
this.password += percentEncode(codePoints[i], userinfoPercentEncodeSet);
|
|
2569
|
+
}
|
|
2570
|
+
},
|
|
2571
|
+
// https://url.spec.whatwg.org/#dom-url-host
|
|
2572
|
+
getHost: function () {
|
|
2573
|
+
var host = this.host;
|
|
2574
|
+
var port = this.port;
|
|
2575
|
+
return host === null ? ''
|
|
2576
|
+
: port === null ? serializeHost(host)
|
|
2577
|
+
: serializeHost(host) + ':' + port;
|
|
2578
|
+
},
|
|
2579
|
+
setHost: function (host) {
|
|
2580
|
+
if (this.cannotBeABaseURL) return;
|
|
2581
|
+
this.parse(host, HOST);
|
|
2582
|
+
},
|
|
2583
|
+
// https://url.spec.whatwg.org/#dom-url-hostname
|
|
2584
|
+
getHostname: function () {
|
|
2585
|
+
var host = this.host;
|
|
2586
|
+
return host === null ? '' : serializeHost(host);
|
|
2587
|
+
},
|
|
2588
|
+
setHostname: function (hostname) {
|
|
2589
|
+
if (this.cannotBeABaseURL) return;
|
|
2590
|
+
this.parse(hostname, HOSTNAME);
|
|
2591
|
+
},
|
|
2592
|
+
// https://url.spec.whatwg.org/#dom-url-port
|
|
2593
|
+
getPort: function () {
|
|
2594
|
+
var port = this.port;
|
|
2595
|
+
return port === null ? '' : $toString(port);
|
|
2596
|
+
},
|
|
2597
|
+
setPort: function (port) {
|
|
2598
|
+
if (this.cannotHaveUsernamePasswordPort()) return;
|
|
2599
|
+
port = $toString(port);
|
|
2600
|
+
if (port === '') this.port = null;
|
|
2601
|
+
else this.parse(port, PORT);
|
|
2602
|
+
},
|
|
2603
|
+
// https://url.spec.whatwg.org/#dom-url-pathname
|
|
2604
|
+
getPathname: function () {
|
|
2605
|
+
var path = this.path;
|
|
2606
|
+
return this.cannotBeABaseURL ? path[0] : path.length ? '/' + join(path, '/') : '';
|
|
2607
|
+
},
|
|
2608
|
+
setPathname: function (pathname) {
|
|
2609
|
+
if (this.cannotBeABaseURL) return;
|
|
2610
|
+
this.path = [];
|
|
2611
|
+
this.parse(pathname, PATH_START);
|
|
2612
|
+
},
|
|
2613
|
+
// https://url.spec.whatwg.org/#dom-url-search
|
|
2614
|
+
getSearch: function () {
|
|
2615
|
+
var query = this.query;
|
|
2616
|
+
return query ? '?' + query : '';
|
|
2617
|
+
},
|
|
2618
|
+
setSearch: function (search) {
|
|
2619
|
+
search = $toString(search);
|
|
2620
|
+
if (search === '') {
|
|
2621
|
+
this.query = null;
|
|
2622
|
+
} else {
|
|
2623
|
+
if (charAt(search, 0) === '?') search = stringSlice(search, 1);
|
|
2624
|
+
this.query = '';
|
|
2625
|
+
this.parse(search, QUERY);
|
|
2626
|
+
}
|
|
2627
|
+
this.searchParams.update();
|
|
2628
|
+
},
|
|
2629
|
+
// https://url.spec.whatwg.org/#dom-url-searchparams
|
|
2630
|
+
getSearchParams: function () {
|
|
2631
|
+
return this.searchParams.facade;
|
|
2632
|
+
},
|
|
2633
|
+
// https://url.spec.whatwg.org/#dom-url-hash
|
|
2634
|
+
getHash: function () {
|
|
2635
|
+
var fragment = this.fragment;
|
|
2636
|
+
return fragment ? '#' + fragment : '';
|
|
2637
|
+
},
|
|
2638
|
+
setHash: function (hash) {
|
|
2639
|
+
hash = $toString(hash);
|
|
2640
|
+
if (hash === '') {
|
|
2641
|
+
this.fragment = null;
|
|
2642
|
+
return;
|
|
2643
|
+
}
|
|
2644
|
+
if (charAt(hash, 0) === '#') hash = stringSlice(hash, 1);
|
|
2645
|
+
this.fragment = '';
|
|
2646
|
+
this.parse(hash, FRAGMENT);
|
|
2647
|
+
},
|
|
2648
|
+
update: function () {
|
|
2649
|
+
this.query = this.searchParams.serialize() || null;
|
|
2650
|
+
}
|
|
2651
|
+
};
|
|
2652
|
+
|
|
2653
|
+
// `URL` constructor
|
|
2654
|
+
// https://url.spec.whatwg.org/#url-class
|
|
2655
|
+
var URLConstructor = function URL(url /* , base */) {
|
|
2656
|
+
var that = anInstance(this, URLPrototype);
|
|
2657
|
+
var base = validateArgumentsLength(arguments.length, 1) > 1 ? arguments[1] : undefined;
|
|
2658
|
+
var state = setInternalState(that, new URLState(url, false, base));
|
|
2659
|
+
if (!DESCRIPTORS) {
|
|
2660
|
+
that.href = state.serialize();
|
|
2661
|
+
that.origin = state.getOrigin();
|
|
2662
|
+
that.protocol = state.getProtocol();
|
|
2663
|
+
that.username = state.getUsername();
|
|
2664
|
+
that.password = state.getPassword();
|
|
2665
|
+
that.host = state.getHost();
|
|
2666
|
+
that.hostname = state.getHostname();
|
|
2667
|
+
that.port = state.getPort();
|
|
2668
|
+
that.pathname = state.getPathname();
|
|
2669
|
+
that.search = state.getSearch();
|
|
2670
|
+
that.searchParams = state.getSearchParams();
|
|
2671
|
+
that.hash = state.getHash();
|
|
2672
|
+
}
|
|
2673
|
+
};
|
|
2674
|
+
|
|
2675
|
+
var URLPrototype = URLConstructor.prototype;
|
|
2676
|
+
|
|
2677
|
+
var accessorDescriptor = function (getter, setter) {
|
|
2678
|
+
return {
|
|
2679
|
+
get: function () {
|
|
2680
|
+
return getInternalURLState(this)[getter]();
|
|
2681
|
+
},
|
|
2682
|
+
set: setter && function (value) {
|
|
2683
|
+
return getInternalURLState(this)[setter](value);
|
|
2684
|
+
},
|
|
2685
|
+
configurable: true,
|
|
2686
|
+
enumerable: true
|
|
2687
|
+
};
|
|
2688
|
+
};
|
|
2689
|
+
|
|
2690
|
+
if (DESCRIPTORS) {
|
|
2691
|
+
// `URL.prototype.href` accessors pair
|
|
2692
|
+
// https://url.spec.whatwg.org/#dom-url-href
|
|
2693
|
+
defineBuiltInAccessor(URLPrototype, 'href', accessorDescriptor('serialize', 'setHref'));
|
|
2694
|
+
// `URL.prototype.origin` getter
|
|
2695
|
+
// https://url.spec.whatwg.org/#dom-url-origin
|
|
2696
|
+
defineBuiltInAccessor(URLPrototype, 'origin', accessorDescriptor('getOrigin'));
|
|
2697
|
+
// `URL.prototype.protocol` accessors pair
|
|
2698
|
+
// https://url.spec.whatwg.org/#dom-url-protocol
|
|
2699
|
+
defineBuiltInAccessor(URLPrototype, 'protocol', accessorDescriptor('getProtocol', 'setProtocol'));
|
|
2700
|
+
// `URL.prototype.username` accessors pair
|
|
2701
|
+
// https://url.spec.whatwg.org/#dom-url-username
|
|
2702
|
+
defineBuiltInAccessor(URLPrototype, 'username', accessorDescriptor('getUsername', 'setUsername'));
|
|
2703
|
+
// `URL.prototype.password` accessors pair
|
|
2704
|
+
// https://url.spec.whatwg.org/#dom-url-password
|
|
2705
|
+
defineBuiltInAccessor(URLPrototype, 'password', accessorDescriptor('getPassword', 'setPassword'));
|
|
2706
|
+
// `URL.prototype.host` accessors pair
|
|
2707
|
+
// https://url.spec.whatwg.org/#dom-url-host
|
|
2708
|
+
defineBuiltInAccessor(URLPrototype, 'host', accessorDescriptor('getHost', 'setHost'));
|
|
2709
|
+
// `URL.prototype.hostname` accessors pair
|
|
2710
|
+
// https://url.spec.whatwg.org/#dom-url-hostname
|
|
2711
|
+
defineBuiltInAccessor(URLPrototype, 'hostname', accessorDescriptor('getHostname', 'setHostname'));
|
|
2712
|
+
// `URL.prototype.port` accessors pair
|
|
2713
|
+
// https://url.spec.whatwg.org/#dom-url-port
|
|
2714
|
+
defineBuiltInAccessor(URLPrototype, 'port', accessorDescriptor('getPort', 'setPort'));
|
|
2715
|
+
// `URL.prototype.pathname` accessors pair
|
|
2716
|
+
// https://url.spec.whatwg.org/#dom-url-pathname
|
|
2717
|
+
defineBuiltInAccessor(URLPrototype, 'pathname', accessorDescriptor('getPathname', 'setPathname'));
|
|
2718
|
+
// `URL.prototype.search` accessors pair
|
|
2719
|
+
// https://url.spec.whatwg.org/#dom-url-search
|
|
2720
|
+
defineBuiltInAccessor(URLPrototype, 'search', accessorDescriptor('getSearch', 'setSearch'));
|
|
2721
|
+
// `URL.prototype.searchParams` getter
|
|
2722
|
+
// https://url.spec.whatwg.org/#dom-url-searchparams
|
|
2723
|
+
defineBuiltInAccessor(URLPrototype, 'searchParams', accessorDescriptor('getSearchParams'));
|
|
2724
|
+
// `URL.prototype.hash` accessors pair
|
|
2725
|
+
// https://url.spec.whatwg.org/#dom-url-hash
|
|
2726
|
+
defineBuiltInAccessor(URLPrototype, 'hash', accessorDescriptor('getHash', 'setHash'));
|
|
2727
|
+
}
|
|
2728
|
+
|
|
2729
|
+
// `URL.prototype.toJSON` method
|
|
2730
|
+
// https://url.spec.whatwg.org/#dom-url-tojson
|
|
2731
|
+
defineBuiltIn(URLPrototype, 'toJSON', function toJSON() {
|
|
2732
|
+
return getInternalURLState(this).serialize();
|
|
2733
|
+
}, { enumerable: true });
|
|
2734
|
+
|
|
2735
|
+
// `URL.prototype.toString` method
|
|
2736
|
+
// https://url.spec.whatwg.org/#URL-stringification-behavior
|
|
2737
|
+
defineBuiltIn(URLPrototype, 'toString', function toString() {
|
|
2738
|
+
return getInternalURLState(this).serialize();
|
|
2739
|
+
}, { enumerable: true });
|
|
2740
|
+
|
|
2741
|
+
if (NativeURL) {
|
|
2742
|
+
var nativeCreateObjectURL = NativeURL.createObjectURL;
|
|
2743
|
+
var nativeRevokeObjectURL = NativeURL.revokeObjectURL;
|
|
2744
|
+
// `URL.createObjectURL` method
|
|
2745
|
+
// https://developer.mozilla.org/en-US/docs/Web/API/URL/createObjectURL
|
|
2746
|
+
if (nativeCreateObjectURL) defineBuiltIn(URLConstructor, 'createObjectURL', bind(nativeCreateObjectURL, NativeURL));
|
|
2747
|
+
// `URL.revokeObjectURL` method
|
|
2748
|
+
// https://developer.mozilla.org/en-US/docs/Web/API/URL/revokeObjectURL
|
|
2749
|
+
if (nativeRevokeObjectURL) defineBuiltIn(URLConstructor, 'revokeObjectURL', bind(nativeRevokeObjectURL, NativeURL));
|
|
2750
|
+
}
|
|
2751
|
+
|
|
2752
|
+
setToStringTag(URLConstructor, 'URL');
|
|
2753
|
+
|
|
2754
|
+
$({ global: true, constructor: true, forced: !USE_NATIVE_URL, sham: !DESCRIPTORS }, {
|
|
2755
|
+
URL: URLConstructor
|
|
2756
|
+
});
|
|
2757
|
+
|
|
2758
|
+
|
|
1511
2759
|
/***/ }),
|
|
1512
2760
|
|
|
1513
2761
|
/***/ "1a0f":
|
|
@@ -2225,6 +3473,22 @@ fixRegExpWellKnownSymbolLogic('search', function (SEARCH, nativeSearch, maybeCal
|
|
|
2225
3473
|
});
|
|
2226
3474
|
|
|
2227
3475
|
|
|
3476
|
+
/***/ }),
|
|
3477
|
+
|
|
3478
|
+
/***/ "2324":
|
|
3479
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
3480
|
+
|
|
3481
|
+
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
3482
|
+
|
|
3483
|
+
// load the styles
|
|
3484
|
+
var content = __webpack_require__("eda4");
|
|
3485
|
+
if(content.__esModule) content = content.default;
|
|
3486
|
+
if(typeof content === 'string') content = [[module.i, content, '']];
|
|
3487
|
+
if(content.locals) module.exports = content.locals;
|
|
3488
|
+
// add the styles to the DOM
|
|
3489
|
+
var add = __webpack_require__("c69b").default
|
|
3490
|
+
var update = add("69fa4546", content, true, {"sourceMap":false,"shadowMode":false});
|
|
3491
|
+
|
|
2228
3492
|
/***/ }),
|
|
2229
3493
|
|
|
2230
3494
|
/***/ "2365":
|
|
@@ -2267,6 +3531,46 @@ module.exports = function isDisjointFrom(other) {
|
|
|
2267
3531
|
};
|
|
2268
3532
|
|
|
2269
3533
|
|
|
3534
|
+
/***/ }),
|
|
3535
|
+
|
|
3536
|
+
/***/ "23af":
|
|
3537
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
3538
|
+
|
|
3539
|
+
"use strict";
|
|
3540
|
+
|
|
3541
|
+
var $ = __webpack_require__("9ee3");
|
|
3542
|
+
var uncurryThis = __webpack_require__("d74d");
|
|
3543
|
+
var toAbsoluteIndex = __webpack_require__("c6dd");
|
|
3544
|
+
|
|
3545
|
+
var $RangeError = RangeError;
|
|
3546
|
+
var fromCharCode = String.fromCharCode;
|
|
3547
|
+
// eslint-disable-next-line es/no-string-fromcodepoint -- required for testing
|
|
3548
|
+
var $fromCodePoint = String.fromCodePoint;
|
|
3549
|
+
var join = uncurryThis([].join);
|
|
3550
|
+
|
|
3551
|
+
// length should be 1, old FF problem
|
|
3552
|
+
var INCORRECT_LENGTH = !!$fromCodePoint && $fromCodePoint.length !== 1;
|
|
3553
|
+
|
|
3554
|
+
// `String.fromCodePoint` method
|
|
3555
|
+
// https://tc39.es/ecma262/#sec-string.fromcodepoint
|
|
3556
|
+
$({ target: 'String', stat: true, arity: 1, forced: INCORRECT_LENGTH }, {
|
|
3557
|
+
// eslint-disable-next-line no-unused-vars -- required for `.length`
|
|
3558
|
+
fromCodePoint: function fromCodePoint(x) {
|
|
3559
|
+
var elements = [];
|
|
3560
|
+
var length = arguments.length;
|
|
3561
|
+
var i = 0;
|
|
3562
|
+
var code;
|
|
3563
|
+
while (length > i) {
|
|
3564
|
+
code = +arguments[i++];
|
|
3565
|
+
if (toAbsoluteIndex(code, 0x10FFFF) !== code) throw new $RangeError(code + ' is not a valid code point');
|
|
3566
|
+
elements[i] = code < 0x10000
|
|
3567
|
+
? fromCharCode(code)
|
|
3568
|
+
: fromCharCode(((code -= 0x10000) >> 10) + 0xD800, code % 0x400 + 0xDC00);
|
|
3569
|
+
} return join(elements, '');
|
|
3570
|
+
}
|
|
3571
|
+
});
|
|
3572
|
+
|
|
3573
|
+
|
|
2270
3574
|
/***/ }),
|
|
2271
3575
|
|
|
2272
3576
|
/***/ "241f":
|
|
@@ -4302,6 +5606,42 @@ $({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }
|
|
|
4302
5606
|
});
|
|
4303
5607
|
|
|
4304
5608
|
|
|
5609
|
+
/***/ }),
|
|
5610
|
+
|
|
5611
|
+
/***/ "3615":
|
|
5612
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
5613
|
+
|
|
5614
|
+
"use strict";
|
|
5615
|
+
|
|
5616
|
+
var defineBuiltIn = __webpack_require__("78e5");
|
|
5617
|
+
var uncurryThis = __webpack_require__("d74d");
|
|
5618
|
+
var toString = __webpack_require__("9dad");
|
|
5619
|
+
var validateArgumentsLength = __webpack_require__("1346");
|
|
5620
|
+
|
|
5621
|
+
var $URLSearchParams = URLSearchParams;
|
|
5622
|
+
var URLSearchParamsPrototype = $URLSearchParams.prototype;
|
|
5623
|
+
var getAll = uncurryThis(URLSearchParamsPrototype.getAll);
|
|
5624
|
+
var $has = uncurryThis(URLSearchParamsPrototype.has);
|
|
5625
|
+
var params = new $URLSearchParams('a=1');
|
|
5626
|
+
|
|
5627
|
+
// `undefined` case is a Chromium 117 bug
|
|
5628
|
+
// https://bugs.chromium.org/p/v8/issues/detail?id=14222
|
|
5629
|
+
if (params.has('a', 2) || !params.has('a', undefined)) {
|
|
5630
|
+
defineBuiltIn(URLSearchParamsPrototype, 'has', function has(name /* , value */) {
|
|
5631
|
+
var length = arguments.length;
|
|
5632
|
+
var $value = length < 2 ? undefined : arguments[1];
|
|
5633
|
+
if (length && $value === undefined) return $has(this, name);
|
|
5634
|
+
var values = getAll(this, name); // also validates `this`
|
|
5635
|
+
validateArgumentsLength(length, 1);
|
|
5636
|
+
var value = toString($value);
|
|
5637
|
+
var index = 0;
|
|
5638
|
+
while (index < values.length) {
|
|
5639
|
+
if (values[index++] === value) return true;
|
|
5640
|
+
} return false;
|
|
5641
|
+
}, { enumerable: true, unsafe: true });
|
|
5642
|
+
}
|
|
5643
|
+
|
|
5644
|
+
|
|
4305
5645
|
/***/ }),
|
|
4306
5646
|
|
|
4307
5647
|
/***/ "3700":
|
|
@@ -4486,21 +5826,524 @@ exports.f = DESCRIPTORS ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P
|
|
|
4486
5826
|
};
|
|
4487
5827
|
|
|
4488
5828
|
|
|
4489
|
-
/***/ }),
|
|
5829
|
+
/***/ }),
|
|
5830
|
+
|
|
5831
|
+
/***/ "392f":
|
|
5832
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
5833
|
+
|
|
5834
|
+
"use strict";
|
|
5835
|
+
|
|
5836
|
+
// TODO: in core-js@4, move /modules/ dependencies to public entries for better optimization by tools like `preset-env`
|
|
5837
|
+
__webpack_require__("3d22");
|
|
5838
|
+
__webpack_require__("23af");
|
|
5839
|
+
var $ = __webpack_require__("9ee3");
|
|
5840
|
+
var globalThis = __webpack_require__("b7a1");
|
|
5841
|
+
var safeGetBuiltIn = __webpack_require__("00eb");
|
|
5842
|
+
var getBuiltIn = __webpack_require__("c87d");
|
|
5843
|
+
var call = __webpack_require__("3e61");
|
|
5844
|
+
var uncurryThis = __webpack_require__("d74d");
|
|
5845
|
+
var DESCRIPTORS = __webpack_require__("6d80");
|
|
5846
|
+
var USE_NATIVE_URL = __webpack_require__("94fa");
|
|
5847
|
+
var defineBuiltIn = __webpack_require__("78e5");
|
|
5848
|
+
var defineBuiltInAccessor = __webpack_require__("4edf");
|
|
5849
|
+
var defineBuiltIns = __webpack_require__("aee1");
|
|
5850
|
+
var setToStringTag = __webpack_require__("49ff");
|
|
5851
|
+
var createIteratorConstructor = __webpack_require__("7877");
|
|
5852
|
+
var InternalStateModule = __webpack_require__("a262");
|
|
5853
|
+
var anInstance = __webpack_require__("f824");
|
|
5854
|
+
var isCallable = __webpack_require__("2985");
|
|
5855
|
+
var hasOwn = __webpack_require__("45a0");
|
|
5856
|
+
var bind = __webpack_require__("3b5c");
|
|
5857
|
+
var classof = __webpack_require__("f81e");
|
|
5858
|
+
var anObject = __webpack_require__("1c13");
|
|
5859
|
+
var isObject = __webpack_require__("09ef");
|
|
5860
|
+
var $toString = __webpack_require__("9dad");
|
|
5861
|
+
var create = __webpack_require__("5abc");
|
|
5862
|
+
var createPropertyDescriptor = __webpack_require__("7865");
|
|
5863
|
+
var getIterator = __webpack_require__("d855");
|
|
5864
|
+
var getIteratorMethod = __webpack_require__("ca00");
|
|
5865
|
+
var createIterResultObject = __webpack_require__("3e25");
|
|
5866
|
+
var validateArgumentsLength = __webpack_require__("1346");
|
|
5867
|
+
var wellKnownSymbol = __webpack_require__("dabc");
|
|
5868
|
+
var arraySort = __webpack_require__("7cd4");
|
|
5869
|
+
|
|
5870
|
+
var ITERATOR = wellKnownSymbol('iterator');
|
|
5871
|
+
var URL_SEARCH_PARAMS = 'URLSearchParams';
|
|
5872
|
+
var URL_SEARCH_PARAMS_ITERATOR = URL_SEARCH_PARAMS + 'Iterator';
|
|
5873
|
+
var setInternalState = InternalStateModule.set;
|
|
5874
|
+
var getInternalParamsState = InternalStateModule.getterFor(URL_SEARCH_PARAMS);
|
|
5875
|
+
var getInternalIteratorState = InternalStateModule.getterFor(URL_SEARCH_PARAMS_ITERATOR);
|
|
5876
|
+
|
|
5877
|
+
var nativeFetch = safeGetBuiltIn('fetch');
|
|
5878
|
+
var NativeRequest = safeGetBuiltIn('Request');
|
|
5879
|
+
var Headers = safeGetBuiltIn('Headers');
|
|
5880
|
+
var RequestPrototype = NativeRequest && NativeRequest.prototype;
|
|
5881
|
+
var HeadersPrototype = Headers && Headers.prototype;
|
|
5882
|
+
var TypeError = globalThis.TypeError;
|
|
5883
|
+
var encodeURIComponent = globalThis.encodeURIComponent;
|
|
5884
|
+
var fromCharCode = String.fromCharCode;
|
|
5885
|
+
var fromCodePoint = getBuiltIn('String', 'fromCodePoint');
|
|
5886
|
+
var $parseInt = parseInt;
|
|
5887
|
+
var charAt = uncurryThis(''.charAt);
|
|
5888
|
+
var join = uncurryThis([].join);
|
|
5889
|
+
var push = uncurryThis([].push);
|
|
5890
|
+
var replace = uncurryThis(''.replace);
|
|
5891
|
+
var shift = uncurryThis([].shift);
|
|
5892
|
+
var splice = uncurryThis([].splice);
|
|
5893
|
+
var split = uncurryThis(''.split);
|
|
5894
|
+
var stringSlice = uncurryThis(''.slice);
|
|
5895
|
+
var exec = uncurryThis(/./.exec);
|
|
5896
|
+
|
|
5897
|
+
var plus = /\+/g;
|
|
5898
|
+
var FALLBACK_REPLACER = '\uFFFD';
|
|
5899
|
+
var VALID_HEX = /^[0-9a-f]+$/i;
|
|
5900
|
+
|
|
5901
|
+
var parseHexOctet = function (string, start) {
|
|
5902
|
+
var substr = stringSlice(string, start, start + 2);
|
|
5903
|
+
if (!exec(VALID_HEX, substr)) return NaN;
|
|
5904
|
+
|
|
5905
|
+
return $parseInt(substr, 16);
|
|
5906
|
+
};
|
|
5907
|
+
|
|
5908
|
+
var getLeadingOnes = function (octet) {
|
|
5909
|
+
var count = 0;
|
|
5910
|
+
for (var mask = 0x80; mask > 0 && (octet & mask) !== 0; mask >>= 1) {
|
|
5911
|
+
count++;
|
|
5912
|
+
}
|
|
5913
|
+
return count;
|
|
5914
|
+
};
|
|
5915
|
+
|
|
5916
|
+
var utf8Decode = function (octets) {
|
|
5917
|
+
var codePoint = null;
|
|
5918
|
+
|
|
5919
|
+
switch (octets.length) {
|
|
5920
|
+
case 1:
|
|
5921
|
+
codePoint = octets[0];
|
|
5922
|
+
break;
|
|
5923
|
+
case 2:
|
|
5924
|
+
codePoint = (octets[0] & 0x1F) << 6 | (octets[1] & 0x3F);
|
|
5925
|
+
break;
|
|
5926
|
+
case 3:
|
|
5927
|
+
codePoint = (octets[0] & 0x0F) << 12 | (octets[1] & 0x3F) << 6 | (octets[2] & 0x3F);
|
|
5928
|
+
break;
|
|
5929
|
+
case 4:
|
|
5930
|
+
codePoint = (octets[0] & 0x07) << 18 | (octets[1] & 0x3F) << 12 | (octets[2] & 0x3F) << 6 | (octets[3] & 0x3F);
|
|
5931
|
+
break;
|
|
5932
|
+
}
|
|
5933
|
+
|
|
5934
|
+
return codePoint > 0x10FFFF ? null : codePoint;
|
|
5935
|
+
};
|
|
5936
|
+
|
|
5937
|
+
var decode = function (input) {
|
|
5938
|
+
input = replace(input, plus, ' ');
|
|
5939
|
+
var length = input.length;
|
|
5940
|
+
var result = '';
|
|
5941
|
+
var i = 0;
|
|
5942
|
+
|
|
5943
|
+
while (i < length) {
|
|
5944
|
+
var decodedChar = charAt(input, i);
|
|
5945
|
+
|
|
5946
|
+
if (decodedChar === '%') {
|
|
5947
|
+
if (charAt(input, i + 1) === '%' || i + 3 > length) {
|
|
5948
|
+
result += '%';
|
|
5949
|
+
i++;
|
|
5950
|
+
continue;
|
|
5951
|
+
}
|
|
5952
|
+
|
|
5953
|
+
var octet = parseHexOctet(input, i + 1);
|
|
5954
|
+
|
|
5955
|
+
// eslint-disable-next-line no-self-compare -- NaN check
|
|
5956
|
+
if (octet !== octet) {
|
|
5957
|
+
result += decodedChar;
|
|
5958
|
+
i++;
|
|
5959
|
+
continue;
|
|
5960
|
+
}
|
|
5961
|
+
|
|
5962
|
+
i += 2;
|
|
5963
|
+
var byteSequenceLength = getLeadingOnes(octet);
|
|
5964
|
+
|
|
5965
|
+
if (byteSequenceLength === 0) {
|
|
5966
|
+
decodedChar = fromCharCode(octet);
|
|
5967
|
+
} else {
|
|
5968
|
+
if (byteSequenceLength === 1 || byteSequenceLength > 4) {
|
|
5969
|
+
result += FALLBACK_REPLACER;
|
|
5970
|
+
i++;
|
|
5971
|
+
continue;
|
|
5972
|
+
}
|
|
5973
|
+
|
|
5974
|
+
var octets = [octet];
|
|
5975
|
+
var sequenceIndex = 1;
|
|
5976
|
+
|
|
5977
|
+
while (sequenceIndex < byteSequenceLength) {
|
|
5978
|
+
i++;
|
|
5979
|
+
if (i + 3 > length || charAt(input, i) !== '%') break;
|
|
5980
|
+
|
|
5981
|
+
var nextByte = parseHexOctet(input, i + 1);
|
|
5982
|
+
|
|
5983
|
+
// eslint-disable-next-line no-self-compare -- NaN check
|
|
5984
|
+
if (nextByte !== nextByte) {
|
|
5985
|
+
i += 3;
|
|
5986
|
+
break;
|
|
5987
|
+
}
|
|
5988
|
+
if (nextByte > 191 || nextByte < 128) break;
|
|
5989
|
+
|
|
5990
|
+
push(octets, nextByte);
|
|
5991
|
+
i += 2;
|
|
5992
|
+
sequenceIndex++;
|
|
5993
|
+
}
|
|
5994
|
+
|
|
5995
|
+
if (octets.length !== byteSequenceLength) {
|
|
5996
|
+
result += FALLBACK_REPLACER;
|
|
5997
|
+
continue;
|
|
5998
|
+
}
|
|
5999
|
+
|
|
6000
|
+
var codePoint = utf8Decode(octets);
|
|
6001
|
+
if (codePoint === null) {
|
|
6002
|
+
result += FALLBACK_REPLACER;
|
|
6003
|
+
} else {
|
|
6004
|
+
decodedChar = fromCodePoint(codePoint);
|
|
6005
|
+
}
|
|
6006
|
+
}
|
|
6007
|
+
}
|
|
6008
|
+
|
|
6009
|
+
result += decodedChar;
|
|
6010
|
+
i++;
|
|
6011
|
+
}
|
|
6012
|
+
|
|
6013
|
+
return result;
|
|
6014
|
+
};
|
|
6015
|
+
|
|
6016
|
+
var find = /[!'()~]|%20/g;
|
|
6017
|
+
|
|
6018
|
+
var replacements = {
|
|
6019
|
+
'!': '%21',
|
|
6020
|
+
"'": '%27',
|
|
6021
|
+
'(': '%28',
|
|
6022
|
+
')': '%29',
|
|
6023
|
+
'~': '%7E',
|
|
6024
|
+
'%20': '+'
|
|
6025
|
+
};
|
|
6026
|
+
|
|
6027
|
+
var replacer = function (match) {
|
|
6028
|
+
return replacements[match];
|
|
6029
|
+
};
|
|
6030
|
+
|
|
6031
|
+
var serialize = function (it) {
|
|
6032
|
+
return replace(encodeURIComponent(it), find, replacer);
|
|
6033
|
+
};
|
|
6034
|
+
|
|
6035
|
+
var URLSearchParamsIterator = createIteratorConstructor(function Iterator(params, kind) {
|
|
6036
|
+
setInternalState(this, {
|
|
6037
|
+
type: URL_SEARCH_PARAMS_ITERATOR,
|
|
6038
|
+
target: getInternalParamsState(params).entries,
|
|
6039
|
+
index: 0,
|
|
6040
|
+
kind: kind
|
|
6041
|
+
});
|
|
6042
|
+
}, URL_SEARCH_PARAMS, function next() {
|
|
6043
|
+
var state = getInternalIteratorState(this);
|
|
6044
|
+
var target = state.target;
|
|
6045
|
+
var index = state.index++;
|
|
6046
|
+
if (!target || index >= target.length) {
|
|
6047
|
+
state.target = null;
|
|
6048
|
+
return createIterResultObject(undefined, true);
|
|
6049
|
+
}
|
|
6050
|
+
var entry = target[index];
|
|
6051
|
+
switch (state.kind) {
|
|
6052
|
+
case 'keys': return createIterResultObject(entry.key, false);
|
|
6053
|
+
case 'values': return createIterResultObject(entry.value, false);
|
|
6054
|
+
} return createIterResultObject([entry.key, entry.value], false);
|
|
6055
|
+
}, true);
|
|
6056
|
+
|
|
6057
|
+
var URLSearchParamsState = function (init) {
|
|
6058
|
+
this.entries = [];
|
|
6059
|
+
this.url = null;
|
|
6060
|
+
|
|
6061
|
+
if (init !== undefined) {
|
|
6062
|
+
if (isObject(init)) this.parseObject(init);
|
|
6063
|
+
else this.parseQuery(typeof init == 'string' ? charAt(init, 0) === '?' ? stringSlice(init, 1) : init : $toString(init));
|
|
6064
|
+
}
|
|
6065
|
+
};
|
|
6066
|
+
|
|
6067
|
+
URLSearchParamsState.prototype = {
|
|
6068
|
+
type: URL_SEARCH_PARAMS,
|
|
6069
|
+
bindURL: function (url) {
|
|
6070
|
+
this.url = url;
|
|
6071
|
+
this.update();
|
|
6072
|
+
},
|
|
6073
|
+
parseObject: function (object) {
|
|
6074
|
+
var entries = this.entries;
|
|
6075
|
+
var iteratorMethod = getIteratorMethod(object);
|
|
6076
|
+
var iterator, next, step, entryIterator, entryNext, first, second;
|
|
6077
|
+
|
|
6078
|
+
if (iteratorMethod) {
|
|
6079
|
+
iterator = getIterator(object, iteratorMethod);
|
|
6080
|
+
next = iterator.next;
|
|
6081
|
+
while (!(step = call(next, iterator)).done) {
|
|
6082
|
+
entryIterator = getIterator(anObject(step.value));
|
|
6083
|
+
entryNext = entryIterator.next;
|
|
6084
|
+
if (
|
|
6085
|
+
(first = call(entryNext, entryIterator)).done ||
|
|
6086
|
+
(second = call(entryNext, entryIterator)).done ||
|
|
6087
|
+
!call(entryNext, entryIterator).done
|
|
6088
|
+
) throw new TypeError('Expected sequence with length 2');
|
|
6089
|
+
push(entries, { key: $toString(first.value), value: $toString(second.value) });
|
|
6090
|
+
}
|
|
6091
|
+
} else for (var key in object) if (hasOwn(object, key)) {
|
|
6092
|
+
push(entries, { key: key, value: $toString(object[key]) });
|
|
6093
|
+
}
|
|
6094
|
+
},
|
|
6095
|
+
parseQuery: function (query) {
|
|
6096
|
+
if (query) {
|
|
6097
|
+
var entries = this.entries;
|
|
6098
|
+
var attributes = split(query, '&');
|
|
6099
|
+
var index = 0;
|
|
6100
|
+
var attribute, entry;
|
|
6101
|
+
while (index < attributes.length) {
|
|
6102
|
+
attribute = attributes[index++];
|
|
6103
|
+
if (attribute.length) {
|
|
6104
|
+
entry = split(attribute, '=');
|
|
6105
|
+
push(entries, {
|
|
6106
|
+
key: decode(shift(entry)),
|
|
6107
|
+
value: decode(join(entry, '='))
|
|
6108
|
+
});
|
|
6109
|
+
}
|
|
6110
|
+
}
|
|
6111
|
+
}
|
|
6112
|
+
},
|
|
6113
|
+
serialize: function () {
|
|
6114
|
+
var entries = this.entries;
|
|
6115
|
+
var result = [];
|
|
6116
|
+
var index = 0;
|
|
6117
|
+
var entry;
|
|
6118
|
+
while (index < entries.length) {
|
|
6119
|
+
entry = entries[index++];
|
|
6120
|
+
push(result, serialize(entry.key) + '=' + serialize(entry.value));
|
|
6121
|
+
} return join(result, '&');
|
|
6122
|
+
},
|
|
6123
|
+
update: function () {
|
|
6124
|
+
this.entries.length = 0;
|
|
6125
|
+
this.parseQuery(this.url.query);
|
|
6126
|
+
},
|
|
6127
|
+
updateURL: function () {
|
|
6128
|
+
if (this.url) this.url.update();
|
|
6129
|
+
}
|
|
6130
|
+
};
|
|
6131
|
+
|
|
6132
|
+
// `URLSearchParams` constructor
|
|
6133
|
+
// https://url.spec.whatwg.org/#interface-urlsearchparams
|
|
6134
|
+
var URLSearchParamsConstructor = function URLSearchParams(/* init */) {
|
|
6135
|
+
anInstance(this, URLSearchParamsPrototype);
|
|
6136
|
+
var init = arguments.length > 0 ? arguments[0] : undefined;
|
|
6137
|
+
var state = setInternalState(this, new URLSearchParamsState(init));
|
|
6138
|
+
if (!DESCRIPTORS) this.size = state.entries.length;
|
|
6139
|
+
};
|
|
6140
|
+
|
|
6141
|
+
var URLSearchParamsPrototype = URLSearchParamsConstructor.prototype;
|
|
6142
|
+
|
|
6143
|
+
defineBuiltIns(URLSearchParamsPrototype, {
|
|
6144
|
+
// `URLSearchParams.prototype.append` method
|
|
6145
|
+
// https://url.spec.whatwg.org/#dom-urlsearchparams-append
|
|
6146
|
+
append: function append(name, value) {
|
|
6147
|
+
var state = getInternalParamsState(this);
|
|
6148
|
+
validateArgumentsLength(arguments.length, 2);
|
|
6149
|
+
push(state.entries, { key: $toString(name), value: $toString(value) });
|
|
6150
|
+
if (!DESCRIPTORS) this.size++;
|
|
6151
|
+
state.updateURL();
|
|
6152
|
+
},
|
|
6153
|
+
// `URLSearchParams.prototype.delete` method
|
|
6154
|
+
// https://url.spec.whatwg.org/#dom-urlsearchparams-delete
|
|
6155
|
+
'delete': function (name /* , value */) {
|
|
6156
|
+
var state = getInternalParamsState(this);
|
|
6157
|
+
var length = validateArgumentsLength(arguments.length, 1);
|
|
6158
|
+
var entries = state.entries;
|
|
6159
|
+
var key = $toString(name);
|
|
6160
|
+
var $value = length < 2 ? undefined : arguments[1];
|
|
6161
|
+
var value = $value === undefined ? $value : $toString($value);
|
|
6162
|
+
var index = 0;
|
|
6163
|
+
while (index < entries.length) {
|
|
6164
|
+
var entry = entries[index];
|
|
6165
|
+
if (entry.key === key && (value === undefined || entry.value === value)) {
|
|
6166
|
+
splice(entries, index, 1);
|
|
6167
|
+
if (value !== undefined) break;
|
|
6168
|
+
} else index++;
|
|
6169
|
+
}
|
|
6170
|
+
if (!DESCRIPTORS) this.size = entries.length;
|
|
6171
|
+
state.updateURL();
|
|
6172
|
+
},
|
|
6173
|
+
// `URLSearchParams.prototype.get` method
|
|
6174
|
+
// https://url.spec.whatwg.org/#dom-urlsearchparams-get
|
|
6175
|
+
get: function get(name) {
|
|
6176
|
+
var entries = getInternalParamsState(this).entries;
|
|
6177
|
+
validateArgumentsLength(arguments.length, 1);
|
|
6178
|
+
var key = $toString(name);
|
|
6179
|
+
var index = 0;
|
|
6180
|
+
for (; index < entries.length; index++) {
|
|
6181
|
+
if (entries[index].key === key) return entries[index].value;
|
|
6182
|
+
}
|
|
6183
|
+
return null;
|
|
6184
|
+
},
|
|
6185
|
+
// `URLSearchParams.prototype.getAll` method
|
|
6186
|
+
// https://url.spec.whatwg.org/#dom-urlsearchparams-getall
|
|
6187
|
+
getAll: function getAll(name) {
|
|
6188
|
+
var entries = getInternalParamsState(this).entries;
|
|
6189
|
+
validateArgumentsLength(arguments.length, 1);
|
|
6190
|
+
var key = $toString(name);
|
|
6191
|
+
var result = [];
|
|
6192
|
+
var index = 0;
|
|
6193
|
+
for (; index < entries.length; index++) {
|
|
6194
|
+
if (entries[index].key === key) push(result, entries[index].value);
|
|
6195
|
+
}
|
|
6196
|
+
return result;
|
|
6197
|
+
},
|
|
6198
|
+
// `URLSearchParams.prototype.has` method
|
|
6199
|
+
// https://url.spec.whatwg.org/#dom-urlsearchparams-has
|
|
6200
|
+
has: function has(name /* , value */) {
|
|
6201
|
+
var entries = getInternalParamsState(this).entries;
|
|
6202
|
+
var length = validateArgumentsLength(arguments.length, 1);
|
|
6203
|
+
var key = $toString(name);
|
|
6204
|
+
var $value = length < 2 ? undefined : arguments[1];
|
|
6205
|
+
var value = $value === undefined ? $value : $toString($value);
|
|
6206
|
+
var index = 0;
|
|
6207
|
+
while (index < entries.length) {
|
|
6208
|
+
var entry = entries[index++];
|
|
6209
|
+
if (entry.key === key && (value === undefined || entry.value === value)) return true;
|
|
6210
|
+
}
|
|
6211
|
+
return false;
|
|
6212
|
+
},
|
|
6213
|
+
// `URLSearchParams.prototype.set` method
|
|
6214
|
+
// https://url.spec.whatwg.org/#dom-urlsearchparams-set
|
|
6215
|
+
set: function set(name, value) {
|
|
6216
|
+
var state = getInternalParamsState(this);
|
|
6217
|
+
validateArgumentsLength(arguments.length, 1);
|
|
6218
|
+
var entries = state.entries;
|
|
6219
|
+
var found = false;
|
|
6220
|
+
var key = $toString(name);
|
|
6221
|
+
var val = $toString(value);
|
|
6222
|
+
var index = 0;
|
|
6223
|
+
var entry;
|
|
6224
|
+
for (; index < entries.length; index++) {
|
|
6225
|
+
entry = entries[index];
|
|
6226
|
+
if (entry.key === key) {
|
|
6227
|
+
if (found) splice(entries, index--, 1);
|
|
6228
|
+
else {
|
|
6229
|
+
found = true;
|
|
6230
|
+
entry.value = val;
|
|
6231
|
+
}
|
|
6232
|
+
}
|
|
6233
|
+
}
|
|
6234
|
+
if (!found) push(entries, { key: key, value: val });
|
|
6235
|
+
if (!DESCRIPTORS) this.size = entries.length;
|
|
6236
|
+
state.updateURL();
|
|
6237
|
+
},
|
|
6238
|
+
// `URLSearchParams.prototype.sort` method
|
|
6239
|
+
// https://url.spec.whatwg.org/#dom-urlsearchparams-sort
|
|
6240
|
+
sort: function sort() {
|
|
6241
|
+
var state = getInternalParamsState(this);
|
|
6242
|
+
arraySort(state.entries, function (a, b) {
|
|
6243
|
+
return a.key > b.key ? 1 : -1;
|
|
6244
|
+
});
|
|
6245
|
+
state.updateURL();
|
|
6246
|
+
},
|
|
6247
|
+
// `URLSearchParams.prototype.forEach` method
|
|
6248
|
+
forEach: function forEach(callback /* , thisArg */) {
|
|
6249
|
+
var entries = getInternalParamsState(this).entries;
|
|
6250
|
+
var boundFunction = bind(callback, arguments.length > 1 ? arguments[1] : undefined);
|
|
6251
|
+
var index = 0;
|
|
6252
|
+
var entry;
|
|
6253
|
+
while (index < entries.length) {
|
|
6254
|
+
entry = entries[index++];
|
|
6255
|
+
boundFunction(entry.value, entry.key, this);
|
|
6256
|
+
}
|
|
6257
|
+
},
|
|
6258
|
+
// `URLSearchParams.prototype.keys` method
|
|
6259
|
+
keys: function keys() {
|
|
6260
|
+
return new URLSearchParamsIterator(this, 'keys');
|
|
6261
|
+
},
|
|
6262
|
+
// `URLSearchParams.prototype.values` method
|
|
6263
|
+
values: function values() {
|
|
6264
|
+
return new URLSearchParamsIterator(this, 'values');
|
|
6265
|
+
},
|
|
6266
|
+
// `URLSearchParams.prototype.entries` method
|
|
6267
|
+
entries: function entries() {
|
|
6268
|
+
return new URLSearchParamsIterator(this, 'entries');
|
|
6269
|
+
}
|
|
6270
|
+
}, { enumerable: true });
|
|
6271
|
+
|
|
6272
|
+
// `URLSearchParams.prototype[@@iterator]` method
|
|
6273
|
+
defineBuiltIn(URLSearchParamsPrototype, ITERATOR, URLSearchParamsPrototype.entries, { name: 'entries' });
|
|
6274
|
+
|
|
6275
|
+
// `URLSearchParams.prototype.toString` method
|
|
6276
|
+
// https://url.spec.whatwg.org/#urlsearchparams-stringification-behavior
|
|
6277
|
+
defineBuiltIn(URLSearchParamsPrototype, 'toString', function toString() {
|
|
6278
|
+
return getInternalParamsState(this).serialize();
|
|
6279
|
+
}, { enumerable: true });
|
|
6280
|
+
|
|
6281
|
+
// `URLSearchParams.prototype.size` getter
|
|
6282
|
+
// https://github.com/whatwg/url/pull/734
|
|
6283
|
+
if (DESCRIPTORS) defineBuiltInAccessor(URLSearchParamsPrototype, 'size', {
|
|
6284
|
+
get: function size() {
|
|
6285
|
+
return getInternalParamsState(this).entries.length;
|
|
6286
|
+
},
|
|
6287
|
+
configurable: true,
|
|
6288
|
+
enumerable: true
|
|
6289
|
+
});
|
|
6290
|
+
|
|
6291
|
+
setToStringTag(URLSearchParamsConstructor, URL_SEARCH_PARAMS);
|
|
6292
|
+
|
|
6293
|
+
$({ global: true, constructor: true, forced: !USE_NATIVE_URL }, {
|
|
6294
|
+
URLSearchParams: URLSearchParamsConstructor
|
|
6295
|
+
});
|
|
4490
6296
|
|
|
4491
|
-
|
|
4492
|
-
|
|
6297
|
+
// Wrap `fetch` and `Request` for correct work with polyfilled `URLSearchParams`
|
|
6298
|
+
if (!USE_NATIVE_URL && isCallable(Headers)) {
|
|
6299
|
+
var headersHas = uncurryThis(HeadersPrototype.has);
|
|
6300
|
+
var headersSet = uncurryThis(HeadersPrototype.set);
|
|
6301
|
+
|
|
6302
|
+
var wrapRequestOptions = function (init) {
|
|
6303
|
+
if (isObject(init)) {
|
|
6304
|
+
var body = init.body;
|
|
6305
|
+
var headers;
|
|
6306
|
+
if (classof(body) === URL_SEARCH_PARAMS) {
|
|
6307
|
+
headers = init.headers ? new Headers(init.headers) : new Headers();
|
|
6308
|
+
if (!headersHas(headers, 'content-type')) {
|
|
6309
|
+
headersSet(headers, 'content-type', 'application/x-www-form-urlencoded;charset=UTF-8');
|
|
6310
|
+
}
|
|
6311
|
+
return create(init, {
|
|
6312
|
+
body: createPropertyDescriptor(0, $toString(body)),
|
|
6313
|
+
headers: createPropertyDescriptor(0, headers)
|
|
6314
|
+
});
|
|
6315
|
+
}
|
|
6316
|
+
} return init;
|
|
6317
|
+
};
|
|
4493
6318
|
|
|
4494
|
-
|
|
6319
|
+
if (isCallable(nativeFetch)) {
|
|
6320
|
+
$({ global: true, enumerable: true, dontCallGetSet: true, forced: true }, {
|
|
6321
|
+
fetch: function fetch(input /* , init */) {
|
|
6322
|
+
return nativeFetch(input, arguments.length > 1 ? wrapRequestOptions(arguments[1]) : {});
|
|
6323
|
+
}
|
|
6324
|
+
});
|
|
6325
|
+
}
|
|
6326
|
+
|
|
6327
|
+
if (isCallable(NativeRequest)) {
|
|
6328
|
+
var RequestConstructor = function Request(input /* , init */) {
|
|
6329
|
+
anInstance(this, RequestPrototype);
|
|
6330
|
+
return new NativeRequest(input, arguments.length > 1 ? wrapRequestOptions(arguments[1]) : {});
|
|
6331
|
+
};
|
|
6332
|
+
|
|
6333
|
+
RequestPrototype.constructor = RequestConstructor;
|
|
6334
|
+
RequestConstructor.prototype = RequestPrototype;
|
|
6335
|
+
|
|
6336
|
+
$({ global: true, constructor: true, dontCallGetSet: true, forced: true }, {
|
|
6337
|
+
Request: RequestConstructor
|
|
6338
|
+
});
|
|
6339
|
+
}
|
|
6340
|
+
}
|
|
6341
|
+
|
|
6342
|
+
module.exports = {
|
|
6343
|
+
URLSearchParams: URLSearchParamsConstructor,
|
|
6344
|
+
getState: getInternalParamsState
|
|
6345
|
+
};
|
|
4495
6346
|
|
|
4496
|
-
// load the styles
|
|
4497
|
-
var content = __webpack_require__("dde9");
|
|
4498
|
-
if(content.__esModule) content = content.default;
|
|
4499
|
-
if(typeof content === 'string') content = [[module.i, content, '']];
|
|
4500
|
-
if(content.locals) module.exports = content.locals;
|
|
4501
|
-
// add the styles to the DOM
|
|
4502
|
-
var add = __webpack_require__("c69b").default
|
|
4503
|
-
var update = add("3528b0a6", content, true, {"sourceMap":false,"shadowMode":false});
|
|
4504
6347
|
|
|
4505
6348
|
/***/ }),
|
|
4506
6349
|
|
|
@@ -10596,6 +12439,25 @@ module.exports = __webpack_require__("2cd1");
|
|
|
10596
12439
|
module.exports = false;
|
|
10597
12440
|
|
|
10598
12441
|
|
|
12442
|
+
/***/ }),
|
|
12443
|
+
|
|
12444
|
+
/***/ "628e":
|
|
12445
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
12446
|
+
|
|
12447
|
+
"use strict";
|
|
12448
|
+
|
|
12449
|
+
var $ = __webpack_require__("9ee3");
|
|
12450
|
+
var call = __webpack_require__("3e61");
|
|
12451
|
+
|
|
12452
|
+
// `URL.prototype.toJSON` method
|
|
12453
|
+
// https://url.spec.whatwg.org/#dom-url-tojson
|
|
12454
|
+
$({ target: 'URL', proto: true, enumerable: true }, {
|
|
12455
|
+
toJSON: function toJSON() {
|
|
12456
|
+
return call(URL.prototype.toString, this);
|
|
12457
|
+
}
|
|
12458
|
+
});
|
|
12459
|
+
|
|
12460
|
+
|
|
10599
12461
|
/***/ }),
|
|
10600
12462
|
|
|
10601
12463
|
/***/ "62d3":
|
|
@@ -12036,6 +13898,17 @@ module.exports = function (argument) {
|
|
|
12036
13898
|
};
|
|
12037
13899
|
|
|
12038
13900
|
|
|
13901
|
+
/***/ }),
|
|
13902
|
+
|
|
13903
|
+
/***/ "6a88":
|
|
13904
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
13905
|
+
|
|
13906
|
+
"use strict";
|
|
13907
|
+
/* harmony import */ var _node_modules_pnpm_vue_style_loader_4_1_3_node_modules_vue_style_loader_index_js_ref_8_oneOf_1_0_node_modules_pnpm_css_loader_3_6_0_webpack_4_47_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_pnpm_vue_loader_15_11_1_vue_com_c18e9a749cc21ff970a79c65ca01237d_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_pnpm_postcss_loader_3_0_0_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_pnpm_postcss_loader_3_0_0_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_node_modules_pnpm_sass_loader_8_0_2_sass_1_57_1_webpack_4_47_0_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_node_modules_pnpm_cache_loader_4_1_0_webpack_4_47_0_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_pnpm_vue_loader_15_11_1_vue_com_c18e9a749cc21ff970a79c65ca01237d_node_modules_vue_loader_lib_index_js_vue_loader_options_Menu_vue_vue_type_style_index_0_id_047e9c1e_prod_lang_scss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("2324");
|
|
13908
|
+
/* harmony import */ var _node_modules_pnpm_vue_style_loader_4_1_3_node_modules_vue_style_loader_index_js_ref_8_oneOf_1_0_node_modules_pnpm_css_loader_3_6_0_webpack_4_47_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_pnpm_vue_loader_15_11_1_vue_com_c18e9a749cc21ff970a79c65ca01237d_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_pnpm_postcss_loader_3_0_0_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_pnpm_postcss_loader_3_0_0_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_node_modules_pnpm_sass_loader_8_0_2_sass_1_57_1_webpack_4_47_0_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_node_modules_pnpm_cache_loader_4_1_0_webpack_4_47_0_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_pnpm_vue_loader_15_11_1_vue_com_c18e9a749cc21ff970a79c65ca01237d_node_modules_vue_loader_lib_index_js_vue_loader_options_Menu_vue_vue_type_style_index_0_id_047e9c1e_prod_lang_scss__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_pnpm_vue_style_loader_4_1_3_node_modules_vue_style_loader_index_js_ref_8_oneOf_1_0_node_modules_pnpm_css_loader_3_6_0_webpack_4_47_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_pnpm_vue_loader_15_11_1_vue_com_c18e9a749cc21ff970a79c65ca01237d_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_pnpm_postcss_loader_3_0_0_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_pnpm_postcss_loader_3_0_0_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_node_modules_pnpm_sass_loader_8_0_2_sass_1_57_1_webpack_4_47_0_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_node_modules_pnpm_cache_loader_4_1_0_webpack_4_47_0_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_pnpm_vue_loader_15_11_1_vue_com_c18e9a749cc21ff970a79c65ca01237d_node_modules_vue_loader_lib_index_js_vue_loader_options_Menu_vue_vue_type_style_index_0_id_047e9c1e_prod_lang_scss__WEBPACK_IMPORTED_MODULE_0__);
|
|
13909
|
+
/* unused harmony reexport * */
|
|
13910
|
+
|
|
13911
|
+
|
|
12039
13912
|
/***/ }),
|
|
12040
13913
|
|
|
12041
13914
|
/***/ "6b2b":
|
|
@@ -12477,6 +14350,35 @@ module.exports = function (object, key, value) {
|
|
|
12477
14350
|
};
|
|
12478
14351
|
|
|
12479
14352
|
|
|
14353
|
+
/***/ }),
|
|
14354
|
+
|
|
14355
|
+
/***/ "6fef":
|
|
14356
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
14357
|
+
|
|
14358
|
+
"use strict";
|
|
14359
|
+
|
|
14360
|
+
var DESCRIPTORS = __webpack_require__("6d80");
|
|
14361
|
+
var uncurryThis = __webpack_require__("d74d");
|
|
14362
|
+
var defineBuiltInAccessor = __webpack_require__("4edf");
|
|
14363
|
+
|
|
14364
|
+
var URLSearchParamsPrototype = URLSearchParams.prototype;
|
|
14365
|
+
var forEach = uncurryThis(URLSearchParamsPrototype.forEach);
|
|
14366
|
+
|
|
14367
|
+
// `URLSearchParams.prototype.size` getter
|
|
14368
|
+
// https://github.com/whatwg/url/pull/734
|
|
14369
|
+
if (DESCRIPTORS && !('size' in URLSearchParamsPrototype)) {
|
|
14370
|
+
defineBuiltInAccessor(URLSearchParamsPrototype, 'size', {
|
|
14371
|
+
get: function size() {
|
|
14372
|
+
var count = 0;
|
|
14373
|
+
forEach(this, function () { count++; });
|
|
14374
|
+
return count;
|
|
14375
|
+
},
|
|
14376
|
+
configurable: true,
|
|
14377
|
+
enumerable: true
|
|
14378
|
+
});
|
|
14379
|
+
}
|
|
14380
|
+
|
|
14381
|
+
|
|
12480
14382
|
/***/ }),
|
|
12481
14383
|
|
|
12482
14384
|
/***/ "70e7":
|
|
@@ -13217,8 +15119,8 @@ var Breadcrumb_component = normalizeComponent(
|
|
|
13217
15119
|
)
|
|
13218
15120
|
|
|
13219
15121
|
/* harmony default export */ var Breadcrumb = (Breadcrumb_component.exports);
|
|
13220
|
-
// CONCATENATED MODULE: ./node_modules/.pnpm/cache-loader@4.1.0_webpack@4.47.0/node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"0ee55318-vue-loader-template"}!./node_modules/.pnpm/cache-loader@4.1.0_webpack@4.47.0/node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/.pnpm/babel-loader@8.4.1_@babel+core@7.28.5_webpack@4.47.0/node_modules/babel-loader/lib!./node_modules/.pnpm/vue-loader@15.11.1_@vue+com_c18e9a749cc21ff970a79c65ca01237d/node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/.pnpm/cache-loader@4.1.0_webpack@4.47.0/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/.pnpm/vue-loader@15.11.1_@vue+com_c18e9a749cc21ff970a79c65ca01237d/node_modules/vue-loader/lib??vue-loader-options!./src/components/Menu.vue?vue&type=template&id=
|
|
13221
|
-
var
|
|
15122
|
+
// CONCATENATED MODULE: ./node_modules/.pnpm/cache-loader@4.1.0_webpack@4.47.0/node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"0ee55318-vue-loader-template"}!./node_modules/.pnpm/cache-loader@4.1.0_webpack@4.47.0/node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/.pnpm/babel-loader@8.4.1_@babel+core@7.28.5_webpack@4.47.0/node_modules/babel-loader/lib!./node_modules/.pnpm/vue-loader@15.11.1_@vue+com_c18e9a749cc21ff970a79c65ca01237d/node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/.pnpm/cache-loader@4.1.0_webpack@4.47.0/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/.pnpm/vue-loader@15.11.1_@vue+com_c18e9a749cc21ff970a79c65ca01237d/node_modules/vue-loader/lib??vue-loader-options!./src/components/Menu.vue?vue&type=template&id=047e9c1e
|
|
15123
|
+
var Menuvue_type_template_id_047e9c1e_render = function render() {
|
|
13222
15124
|
var _vm = this,
|
|
13223
15125
|
_c = _vm._self._c;
|
|
13224
15126
|
return _c('div', {
|
|
@@ -13268,9 +15170,9 @@ var Menuvue_type_template_id_6b91ee73_render = function render() {
|
|
|
13268
15170
|
});
|
|
13269
15171
|
}), 1)], 1)], 1);
|
|
13270
15172
|
};
|
|
13271
|
-
var
|
|
15173
|
+
var Menuvue_type_template_id_047e9c1e_staticRenderFns = [];
|
|
13272
15174
|
|
|
13273
|
-
// CONCATENATED MODULE: ./src/components/Menu.vue?vue&type=template&id=
|
|
15175
|
+
// CONCATENATED MODULE: ./src/components/Menu.vue?vue&type=template&id=047e9c1e
|
|
13274
15176
|
|
|
13275
15177
|
// CONCATENATED MODULE: ./node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
|
13276
15178
|
function _arrayWithHoles(r) {
|
|
@@ -13384,18 +15286,42 @@ function _slicedToArray(r, e) {
|
|
|
13384
15286
|
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
|
|
13385
15287
|
}
|
|
13386
15288
|
|
|
15289
|
+
// EXTERNAL MODULE: ./node_modules/.pnpm/core-js@3.47.0/node_modules/core-js/modules/es.array.concat.js
|
|
15290
|
+
var es_array_concat = __webpack_require__("dfbe");
|
|
15291
|
+
|
|
13387
15292
|
// EXTERNAL MODULE: ./node_modules/.pnpm/core-js@3.47.0/node_modules/core-js/modules/es.array.join.js
|
|
13388
15293
|
var es_array_join = __webpack_require__("e884");
|
|
13389
15294
|
|
|
13390
15295
|
// EXTERNAL MODULE: ./node_modules/.pnpm/core-js@3.47.0/node_modules/core-js/modules/es.iterator.for-each.js
|
|
13391
15296
|
var es_iterator_for_each = __webpack_require__("2029");
|
|
13392
15297
|
|
|
15298
|
+
// EXTERNAL MODULE: ./node_modules/.pnpm/core-js@3.47.0/node_modules/core-js/modules/es.iterator.some.js
|
|
15299
|
+
var es_iterator_some = __webpack_require__("cb0a");
|
|
15300
|
+
|
|
13393
15301
|
// EXTERNAL MODULE: ./node_modules/.pnpm/core-js@3.47.0/node_modules/core-js/modules/es.string.search.js
|
|
13394
15302
|
var es_string_search = __webpack_require__("2283");
|
|
13395
15303
|
|
|
13396
15304
|
// EXTERNAL MODULE: ./node_modules/.pnpm/core-js@3.47.0/node_modules/core-js/modules/web.dom-collections.for-each.js
|
|
13397
15305
|
var web_dom_collections_for_each = __webpack_require__("3185");
|
|
13398
15306
|
|
|
15307
|
+
// EXTERNAL MODULE: ./node_modules/.pnpm/core-js@3.47.0/node_modules/core-js/modules/web.url.js
|
|
15308
|
+
var web_url = __webpack_require__("c1be");
|
|
15309
|
+
|
|
15310
|
+
// EXTERNAL MODULE: ./node_modules/.pnpm/core-js@3.47.0/node_modules/core-js/modules/web.url.to-json.js
|
|
15311
|
+
var web_url_to_json = __webpack_require__("628e");
|
|
15312
|
+
|
|
15313
|
+
// EXTERNAL MODULE: ./node_modules/.pnpm/core-js@3.47.0/node_modules/core-js/modules/web.url-search-params.js
|
|
15314
|
+
var web_url_search_params = __webpack_require__("e7b2");
|
|
15315
|
+
|
|
15316
|
+
// EXTERNAL MODULE: ./node_modules/.pnpm/core-js@3.47.0/node_modules/core-js/modules/web.url-search-params.delete.js
|
|
15317
|
+
var web_url_search_params_delete = __webpack_require__("cbea");
|
|
15318
|
+
|
|
15319
|
+
// EXTERNAL MODULE: ./node_modules/.pnpm/core-js@3.47.0/node_modules/core-js/modules/web.url-search-params.has.js
|
|
15320
|
+
var web_url_search_params_has = __webpack_require__("3615");
|
|
15321
|
+
|
|
15322
|
+
// EXTERNAL MODULE: ./node_modules/.pnpm/core-js@3.47.0/node_modules/core-js/modules/web.url-search-params.size.js
|
|
15323
|
+
var web_url_search_params_size = __webpack_require__("6fef");
|
|
15324
|
+
|
|
13399
15325
|
// EXTERNAL MODULE: ./node_modules/.pnpm/element-ui@2.15.14_vue@2.7.16/node_modules/element-ui/lib/menu.js
|
|
13400
15326
|
var menu = __webpack_require__("6a26");
|
|
13401
15327
|
var menu_default = /*#__PURE__*/__webpack_require__.n(menu);
|
|
@@ -13406,9 +15332,6 @@ var theme_chalk_menu = __webpack_require__("104b");
|
|
|
13406
15332
|
// EXTERNAL MODULE: ./package.json
|
|
13407
15333
|
var package_0 = __webpack_require__("9224");
|
|
13408
15334
|
|
|
13409
|
-
// EXTERNAL MODULE: ./node_modules/.pnpm/core-js@3.47.0/node_modules/core-js/modules/es.array.concat.js
|
|
13410
|
-
var es_array_concat = __webpack_require__("dfbe");
|
|
13411
|
-
|
|
13412
15335
|
// CONCATENATED MODULE: ./node_modules/.pnpm/cache-loader@4.1.0_webpack@4.47.0/node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"0ee55318-vue-loader-template"}!./node_modules/.pnpm/cache-loader@4.1.0_webpack@4.47.0/node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/.pnpm/babel-loader@8.4.1_@babel+core@7.28.5_webpack@4.47.0/node_modules/babel-loader/lib!./node_modules/.pnpm/vue-loader@15.11.1_@vue+com_c18e9a749cc21ff970a79c65ca01237d/node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/.pnpm/cache-loader@4.1.0_webpack@4.47.0/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/.pnpm/vue-loader@15.11.1_@vue+com_c18e9a749cc21ff970a79c65ca01237d/node_modules/vue-loader/lib??vue-loader-options!./src/components/MenuItem.vue?vue&type=template&id=6131c8da&scoped=true
|
|
13413
15336
|
|
|
13414
15337
|
|
|
@@ -14366,6 +16289,16 @@ var SearchBar_component = normalizeComponent(
|
|
|
14366
16289
|
|
|
14367
16290
|
|
|
14368
16291
|
|
|
16292
|
+
|
|
16293
|
+
|
|
16294
|
+
|
|
16295
|
+
|
|
16296
|
+
|
|
16297
|
+
|
|
16298
|
+
|
|
16299
|
+
|
|
16300
|
+
|
|
16301
|
+
|
|
14369
16302
|
|
|
14370
16303
|
|
|
14371
16304
|
|
|
@@ -14398,10 +16331,6 @@ var Menuvue_type_script_lang_js_NAMESPACE = 'admin-menu-v2';
|
|
|
14398
16331
|
return [];
|
|
14399
16332
|
}
|
|
14400
16333
|
},
|
|
14401
|
-
env: {
|
|
14402
|
-
type: Number,
|
|
14403
|
-
default: 1
|
|
14404
|
-
},
|
|
14405
16334
|
logoUrl: {
|
|
14406
16335
|
type: String,
|
|
14407
16336
|
default: ''
|
|
@@ -14447,37 +16376,33 @@ var Menuvue_type_script_lang_js_NAMESPACE = 'admin-menu-v2';
|
|
|
14447
16376
|
var currentPath = this.defaultActive;
|
|
14448
16377
|
var currentFullPath = this.toLowerFirst(window.location.pathname + window.location.search);
|
|
14449
16378
|
|
|
14450
|
-
//
|
|
14451
|
-
|
|
14452
|
-
|
|
14453
|
-
// 决定使用哪种匹配策略
|
|
14454
|
-
if (matchedMenus.length > 1) {
|
|
14455
|
-
// 多个菜单匹配同一个 path,使用完整 URL 精确匹配
|
|
16379
|
+
// 优先尝试完整 URL 精确匹配,失败后降级到 path 匹配
|
|
16380
|
+
if (this.hasExactFullPathMatch(currentFullPath)) {
|
|
14456
16381
|
this.defaultActiveStr = currentFullPath;
|
|
16382
|
+
} else if (this.hasPathMatch(currentPath)) {
|
|
16383
|
+
this.defaultActiveStr = currentPath;
|
|
14457
16384
|
} else {
|
|
14458
|
-
// 单个或没有匹配,使用原来的 path 匹配
|
|
14459
16385
|
this.defaultActiveStr = currentPath;
|
|
14460
16386
|
}
|
|
14461
16387
|
var checkActive = function checkActive() {
|
|
14462
16388
|
var elMenu = _this.$refs.AdminMenu;
|
|
14463
|
-
return elMenu.defaultActive && elMenu.activeIndex && elMenu.defaultActive === elMenu.activeIndex;
|
|
16389
|
+
return elMenu && elMenu.defaultActive && elMenu.activeIndex && elMenu.defaultActive === elMenu.activeIndex;
|
|
14464
16390
|
};
|
|
14465
16391
|
var tryMatchHash = function tryMatchHash() {
|
|
14466
16392
|
var _window$location = window.location,
|
|
14467
16393
|
pathname = _window$location.pathname,
|
|
14468
16394
|
hash = _window$location.hash,
|
|
14469
16395
|
search = _window$location.search;
|
|
14470
|
-
var
|
|
14471
|
-
var
|
|
14472
|
-
|
|
14473
|
-
|
|
14474
|
-
|
|
14475
|
-
|
|
14476
|
-
if (
|
|
14477
|
-
_this.defaultActiveStr =
|
|
14478
|
-
} else {
|
|
14479
|
-
_this.defaultActiveStr = _this.toLowerFirst(finalPath);
|
|
16396
|
+
var hashFullPath = _this.toLowerFirst(pathname + hash + search);
|
|
16397
|
+
var hashPath = _this.toLowerFirst((pathname + hash).split('?')[0]);
|
|
16398
|
+
|
|
16399
|
+
// 优先尝试完整 URL 精确匹配
|
|
16400
|
+
if (_this.hasExactFullPathMatch(hashFullPath)) {
|
|
16401
|
+
_this.defaultActiveStr = hashFullPath;
|
|
16402
|
+
} else if (_this.hasPathMatch(hashPath)) {
|
|
16403
|
+
_this.defaultActiveStr = hashPath;
|
|
14480
16404
|
}
|
|
16405
|
+
return checkActive();
|
|
14481
16406
|
};
|
|
14482
16407
|
var fallbackToLastMenu = function fallbackToLastMenu() {
|
|
14483
16408
|
// eslint-disable-next-line no-console
|
|
@@ -14489,25 +16414,26 @@ var Menuvue_type_script_lang_js_NAMESPACE = 'admin-menu-v2';
|
|
|
14489
16414
|
};
|
|
14490
16415
|
var rememberCurrentActiveMenu = function rememberCurrentActiveMenu() {
|
|
14491
16416
|
var elMenu = _this.$refs.AdminMenu;
|
|
14492
|
-
|
|
16417
|
+
if (elMenu && elMenu.activeIndex) {
|
|
16418
|
+
window.sessionStorage.setItem("".concat(Menuvue_type_script_lang_js_NAMESPACE, ":last-active-menu"), elMenu.activeIndex);
|
|
16419
|
+
}
|
|
14493
16420
|
};
|
|
14494
|
-
|
|
14495
|
-
|
|
14496
|
-
// if (!window.localStorage.getItem('useNewSidebar')) return
|
|
14497
|
-
setTimeout(function () {
|
|
14498
|
-
if (!checkActive()) {
|
|
14499
|
-
// 如果没有命中window.location.pathname,尝试是否可以命中window.location.pathname + hash
|
|
14500
|
-
tryMatchHash();
|
|
14501
|
-
|
|
14502
|
-
// 最后没有匹配中,锁定到上一次的菜单项
|
|
16421
|
+
this.$nextTick(function () {
|
|
16422
|
+
_this.$nextTick(function () {
|
|
14503
16423
|
if (!checkActive()) {
|
|
14504
|
-
|
|
16424
|
+
// 如果没有命中window.location.pathname,尝试是否可以命中window.location.pathname + hash
|
|
16425
|
+
tryMatchHash();
|
|
16426
|
+
|
|
16427
|
+
// 最后没有匹配中,锁定到上一次的菜单项
|
|
16428
|
+
if (!checkActive()) {
|
|
16429
|
+
fallbackToLastMenu();
|
|
16430
|
+
}
|
|
16431
|
+
} else {
|
|
16432
|
+
// 记住当前激活的菜单
|
|
16433
|
+
rememberCurrentActiveMenu();
|
|
14505
16434
|
}
|
|
14506
|
-
}
|
|
14507
|
-
|
|
14508
|
-
rememberCurrentActiveMenu();
|
|
14509
|
-
}
|
|
14510
|
-
}, 800);
|
|
16435
|
+
});
|
|
16436
|
+
});
|
|
14511
16437
|
},
|
|
14512
16438
|
toLowerFirst: function toLowerFirst(val) {
|
|
14513
16439
|
if (typeof val === 'string') {
|
|
@@ -14517,54 +16443,87 @@ var Menuvue_type_script_lang_js_NAMESPACE = 'admin-menu-v2';
|
|
|
14517
16443
|
}
|
|
14518
16444
|
return '';
|
|
14519
16445
|
},
|
|
16446
|
+
// 解析菜单 URL 的完整路径(path + query)用于精确比较
|
|
16447
|
+
resolveMenuFullPath: function resolveMenuFullPath(url) {
|
|
16448
|
+
if (!url) return '';
|
|
16449
|
+
var normalized = url;
|
|
16450
|
+
if (/^(https?:)?\/\//.test(normalized)) {
|
|
16451
|
+
try {
|
|
16452
|
+
var parsed = new URL(normalized, window.location.origin);
|
|
16453
|
+
if (parsed.origin !== window.location.origin) return '';
|
|
16454
|
+
normalized = parsed.pathname + parsed.search;
|
|
16455
|
+
} catch (e) {
|
|
16456
|
+
return '';
|
|
16457
|
+
}
|
|
16458
|
+
} else if (normalized[0] !== '/') {
|
|
16459
|
+
normalized = '/' + normalized;
|
|
16460
|
+
}
|
|
16461
|
+
var _normalized$split = normalized.split('?'),
|
|
16462
|
+
_normalized$split2 = _slicedToArray(_normalized$split, 2),
|
|
16463
|
+
pathPart = _normalized$split2[0],
|
|
16464
|
+
queryPart = _normalized$split2[1];
|
|
16465
|
+
var normalizedPath = this.toLowerFirst(pathPart);
|
|
16466
|
+
return queryPart ? "".concat(normalizedPath, "?").concat(queryPart) : normalizedPath;
|
|
16467
|
+
},
|
|
14520
16468
|
// 解析菜单 URL 的 path 部分(用于比较)
|
|
14521
16469
|
resolveMenuPath: function resolveMenuPath(url) {
|
|
14522
16470
|
if (!url) return '';
|
|
14523
16471
|
var _url$split = url.split('?'),
|
|
14524
16472
|
_url$split2 = _slicedToArray(_url$split, 1),
|
|
14525
16473
|
pathPart = _url$split2[0];
|
|
14526
|
-
return
|
|
14527
|
-
return name.slice(0, 1).toLowerCase() + name.slice(1);
|
|
14528
|
-
}).join('/');
|
|
16474
|
+
return this.toLowerFirst(pathPart);
|
|
14529
16475
|
},
|
|
14530
|
-
//
|
|
14531
|
-
|
|
16476
|
+
// 检查是否有菜单完整匹配 targetFullPath
|
|
16477
|
+
hasExactFullPathMatch: function hasExactFullPathMatch(targetFullPath) {
|
|
14532
16478
|
var _this2 = this;
|
|
14533
|
-
return this.flattenedMenuList.
|
|
14534
|
-
|
|
14535
|
-
|
|
16479
|
+
return this.flattenedMenuList.some(function (menu) {
|
|
16480
|
+
return _this2.resolveMenuFullPath(menu.url) === targetFullPath;
|
|
16481
|
+
});
|
|
16482
|
+
},
|
|
16483
|
+
// 检查是否有菜单 path 匹配(不含 query)
|
|
16484
|
+
hasPathMatch: function hasPathMatch(targetPath) {
|
|
16485
|
+
var _this3 = this;
|
|
16486
|
+
return this.flattenedMenuList.some(function (menu) {
|
|
16487
|
+
return _this3.resolveMenuPath(menu.url) === targetPath;
|
|
14536
16488
|
});
|
|
14537
16489
|
},
|
|
14538
16490
|
openSubMenu: function openSubMenu(searchMenu) {
|
|
14539
16491
|
if (this.currentSelectMenu) {
|
|
14540
|
-
document.
|
|
16492
|
+
var prevEl = document.querySelector(".search-item-".concat(this.currentSelectMenu));
|
|
16493
|
+
if (prevEl) {
|
|
16494
|
+
prevEl.classList.remove('is-select-menu');
|
|
16495
|
+
}
|
|
14541
16496
|
}
|
|
14542
16497
|
this.currentSelectMenu = searchMenu.permit;
|
|
14543
|
-
//
|
|
14544
|
-
this.showActiveMenu(searchMenu.permit);
|
|
16498
|
+
// 先打开父菜单,再滚动到目标元素
|
|
14545
16499
|
if (searchMenu.parentIndex) {
|
|
14546
16500
|
this.$refs.AdminMenu.open(searchMenu.parentIndex);
|
|
14547
16501
|
}
|
|
16502
|
+
this.showActiveMenu(searchMenu.permit);
|
|
14548
16503
|
this.$nextTick(function () {
|
|
14549
|
-
document.querySelector(".search-item-".concat(searchMenu.permit))
|
|
16504
|
+
var curEl = document.querySelector(".search-item-".concat(searchMenu.permit));
|
|
16505
|
+
if (curEl) {
|
|
16506
|
+
curEl.classList.add('is-select-menu');
|
|
16507
|
+
}
|
|
14550
16508
|
});
|
|
14551
16509
|
},
|
|
14552
16510
|
showActiveMenu: function showActiveMenu(id) {
|
|
14553
|
-
var
|
|
16511
|
+
var _this4 = this;
|
|
14554
16512
|
var container = document.querySelector('.scrollbar-wrapper.el-scrollbar__wrap');
|
|
14555
16513
|
var el = document.querySelector(".el-menu-item.search-item-".concat(id));
|
|
14556
|
-
|
|
14557
|
-
var
|
|
14558
|
-
|
|
14559
|
-
|
|
14560
|
-
|
|
14561
|
-
|
|
14562
|
-
|
|
14563
|
-
}
|
|
16514
|
+
if (!container) return;
|
|
16515
|
+
var scrolled = false;
|
|
16516
|
+
var _doScroll = function doScroll() {
|
|
16517
|
+
if (scrolled) return;
|
|
16518
|
+
scrolled = true;
|
|
16519
|
+
_this4.scrollIntoView(container, el);
|
|
16520
|
+
container.removeEventListener('transitionend', _doScroll);
|
|
14564
16521
|
};
|
|
14565
|
-
container.addEventListener('transitionend',
|
|
16522
|
+
container.addEventListener('transitionend', _doScroll);
|
|
16523
|
+
setTimeout(_doScroll, 100);
|
|
14566
16524
|
},
|
|
14567
16525
|
scrollIntoView: function scrollIntoView(container, selected) {
|
|
16526
|
+
if (!container) return;
|
|
14568
16527
|
if (!selected) {
|
|
14569
16528
|
container.scrollTop = 0;
|
|
14570
16529
|
return;
|
|
@@ -14589,8 +16548,8 @@ var Menuvue_type_script_lang_js_NAMESPACE = 'admin-menu-v2';
|
|
|
14589
16548
|
});
|
|
14590
16549
|
// CONCATENATED MODULE: ./src/components/Menu.vue?vue&type=script&lang=js
|
|
14591
16550
|
/* harmony default export */ var components_Menuvue_type_script_lang_js = (Menuvue_type_script_lang_js);
|
|
14592
|
-
// EXTERNAL MODULE: ./src/components/Menu.vue?vue&type=style&index=0&id=
|
|
14593
|
-
var
|
|
16551
|
+
// EXTERNAL MODULE: ./src/components/Menu.vue?vue&type=style&index=0&id=047e9c1e&prod&lang=scss
|
|
16552
|
+
var Menuvue_type_style_index_0_id_047e9c1e_prod_lang_scss = __webpack_require__("6a88");
|
|
14594
16553
|
|
|
14595
16554
|
// CONCATENATED MODULE: ./src/components/Menu.vue
|
|
14596
16555
|
|
|
@@ -14603,8 +16562,8 @@ var Menuvue_type_style_index_0_id_6b91ee73_prod_lang_scss = __webpack_require__(
|
|
|
14603
16562
|
|
|
14604
16563
|
var Menu_component = normalizeComponent(
|
|
14605
16564
|
components_Menuvue_type_script_lang_js,
|
|
14606
|
-
|
|
14607
|
-
|
|
16565
|
+
Menuvue_type_template_id_047e9c1e_render,
|
|
16566
|
+
Menuvue_type_template_id_047e9c1e_staticRenderFns,
|
|
14608
16567
|
false,
|
|
14609
16568
|
null,
|
|
14610
16569
|
null,
|
|
@@ -16797,7 +18756,7 @@ module.exports = NATIVE_SYMBOL && !!Symbol['for'] && !!Symbol.keyFor;
|
|
|
16797
18756
|
/***/ "9224":
|
|
16798
18757
|
/***/ (function(module) {
|
|
16799
18758
|
|
|
16800
|
-
module.exports = JSON.parse("{\"a\":\"2.5.
|
|
18759
|
+
module.exports = JSON.parse("{\"a\":\"2.5.7\"}");
|
|
16801
18760
|
|
|
16802
18761
|
/***/ }),
|
|
16803
18762
|
|
|
@@ -16970,6 +18929,56 @@ CancelToken.source = function source() {
|
|
|
16970
18929
|
module.exports = CancelToken;
|
|
16971
18930
|
|
|
16972
18931
|
|
|
18932
|
+
/***/ }),
|
|
18933
|
+
|
|
18934
|
+
/***/ "94fa":
|
|
18935
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
18936
|
+
|
|
18937
|
+
"use strict";
|
|
18938
|
+
|
|
18939
|
+
var fails = __webpack_require__("78e6");
|
|
18940
|
+
var wellKnownSymbol = __webpack_require__("dabc");
|
|
18941
|
+
var DESCRIPTORS = __webpack_require__("6d80");
|
|
18942
|
+
var IS_PURE = __webpack_require__("6149");
|
|
18943
|
+
|
|
18944
|
+
var ITERATOR = wellKnownSymbol('iterator');
|
|
18945
|
+
|
|
18946
|
+
module.exports = !fails(function () {
|
|
18947
|
+
// eslint-disable-next-line unicorn/relative-url-style -- required for testing
|
|
18948
|
+
var url = new URL('b?a=1&b=2&c=3', 'https://a');
|
|
18949
|
+
var params = url.searchParams;
|
|
18950
|
+
var params2 = new URLSearchParams('a=1&a=2&b=3');
|
|
18951
|
+
var result = '';
|
|
18952
|
+
url.pathname = 'c%20d';
|
|
18953
|
+
params.forEach(function (value, key) {
|
|
18954
|
+
params['delete']('b');
|
|
18955
|
+
result += key + value;
|
|
18956
|
+
});
|
|
18957
|
+
params2['delete']('a', 2);
|
|
18958
|
+
// `undefined` case is a Chromium 117 bug
|
|
18959
|
+
// https://bugs.chromium.org/p/v8/issues/detail?id=14222
|
|
18960
|
+
params2['delete']('b', undefined);
|
|
18961
|
+
return (IS_PURE && (!url.toJSON || !params2.has('a', 1) || params2.has('a', 2) || !params2.has('a', undefined) || params2.has('b')))
|
|
18962
|
+
|| (!params.size && (IS_PURE || !DESCRIPTORS))
|
|
18963
|
+
|| !params.sort
|
|
18964
|
+
|| url.href !== 'https://a/c%20d?a=1&c=3'
|
|
18965
|
+
|| params.get('c') !== '3'
|
|
18966
|
+
|| String(new URLSearchParams('?a=1')) !== 'a=1'
|
|
18967
|
+
|| !params[ITERATOR]
|
|
18968
|
+
// throws in Edge
|
|
18969
|
+
|| new URL('https://a@b').username !== 'a'
|
|
18970
|
+
|| new URLSearchParams(new URLSearchParams('a=b')).get('a') !== 'b'
|
|
18971
|
+
// not punycoded in Edge
|
|
18972
|
+
|| new URL('https://тест').host !== 'xn--e1aybc'
|
|
18973
|
+
// not escaped in Chrome 62-
|
|
18974
|
+
|| new URL('https://a#б').hash !== '#%D0%B1'
|
|
18975
|
+
// fails in Chrome 66-
|
|
18976
|
+
|| result !== 'a1c3'
|
|
18977
|
+
// throws in Safari
|
|
18978
|
+
|| new URL('https://x', undefined).host !== 'x';
|
|
18979
|
+
});
|
|
18980
|
+
|
|
18981
|
+
|
|
16973
18982
|
/***/ }),
|
|
16974
18983
|
|
|
16975
18984
|
/***/ "955c":
|
|
@@ -19417,6 +21426,17 @@ $({ target: 'RegExp', proto: true, forced: /./.exec !== exec }, {
|
|
|
19417
21426
|
});
|
|
19418
21427
|
|
|
19419
21428
|
|
|
21429
|
+
/***/ }),
|
|
21430
|
+
|
|
21431
|
+
/***/ "c1be":
|
|
21432
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
21433
|
+
|
|
21434
|
+
"use strict";
|
|
21435
|
+
|
|
21436
|
+
// TODO: Remove this module from `core-js@4` since it's replaced to module below
|
|
21437
|
+
__webpack_require__("186b");
|
|
21438
|
+
|
|
21439
|
+
|
|
19420
21440
|
/***/ }),
|
|
19421
21441
|
|
|
19422
21442
|
/***/ "c234":
|
|
@@ -20611,6 +22631,46 @@ var substr = 'ab'.substr(-1) === 'b'
|
|
|
20611
22631
|
|
|
20612
22632
|
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__("0418")))
|
|
20613
22633
|
|
|
22634
|
+
/***/ }),
|
|
22635
|
+
|
|
22636
|
+
/***/ "cb0a":
|
|
22637
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
22638
|
+
|
|
22639
|
+
"use strict";
|
|
22640
|
+
|
|
22641
|
+
var $ = __webpack_require__("9ee3");
|
|
22642
|
+
var call = __webpack_require__("3e61");
|
|
22643
|
+
var iterate = __webpack_require__("da56");
|
|
22644
|
+
var aCallable = __webpack_require__("f590");
|
|
22645
|
+
var anObject = __webpack_require__("1c13");
|
|
22646
|
+
var getIteratorDirect = __webpack_require__("a511");
|
|
22647
|
+
var iteratorClose = __webpack_require__("a1b4");
|
|
22648
|
+
var iteratorHelperWithoutClosingOnEarlyError = __webpack_require__("2a09");
|
|
22649
|
+
|
|
22650
|
+
var someWithoutClosingOnEarlyError = iteratorHelperWithoutClosingOnEarlyError('some', TypeError);
|
|
22651
|
+
|
|
22652
|
+
// `Iterator.prototype.some` method
|
|
22653
|
+
// https://tc39.es/ecma262/#sec-iterator.prototype.some
|
|
22654
|
+
$({ target: 'Iterator', proto: true, real: true, forced: someWithoutClosingOnEarlyError }, {
|
|
22655
|
+
some: function some(predicate) {
|
|
22656
|
+
anObject(this);
|
|
22657
|
+
try {
|
|
22658
|
+
aCallable(predicate);
|
|
22659
|
+
} catch (error) {
|
|
22660
|
+
iteratorClose(this, 'throw', error);
|
|
22661
|
+
}
|
|
22662
|
+
|
|
22663
|
+
if (someWithoutClosingOnEarlyError) return call(someWithoutClosingOnEarlyError, this, predicate);
|
|
22664
|
+
|
|
22665
|
+
var record = getIteratorDirect(this);
|
|
22666
|
+
var counter = 0;
|
|
22667
|
+
return iterate(record, function (value, stop) {
|
|
22668
|
+
if (predicate(value, counter++)) return stop();
|
|
22669
|
+
}, { IS_RECORD: true, INTERRUPTED: true }).stopped;
|
|
22670
|
+
}
|
|
22671
|
+
});
|
|
22672
|
+
|
|
22673
|
+
|
|
20614
22674
|
/***/ }),
|
|
20615
22675
|
|
|
20616
22676
|
/***/ "cba3":
|
|
@@ -20630,6 +22690,63 @@ defineWellKnownSymbol('toPrimitive');
|
|
|
20630
22690
|
defineSymbolToPrimitive();
|
|
20631
22691
|
|
|
20632
22692
|
|
|
22693
|
+
/***/ }),
|
|
22694
|
+
|
|
22695
|
+
/***/ "cbea":
|
|
22696
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
22697
|
+
|
|
22698
|
+
"use strict";
|
|
22699
|
+
|
|
22700
|
+
var defineBuiltIn = __webpack_require__("78e5");
|
|
22701
|
+
var uncurryThis = __webpack_require__("d74d");
|
|
22702
|
+
var toString = __webpack_require__("9dad");
|
|
22703
|
+
var validateArgumentsLength = __webpack_require__("1346");
|
|
22704
|
+
|
|
22705
|
+
var $URLSearchParams = URLSearchParams;
|
|
22706
|
+
var URLSearchParamsPrototype = $URLSearchParams.prototype;
|
|
22707
|
+
var append = uncurryThis(URLSearchParamsPrototype.append);
|
|
22708
|
+
var $delete = uncurryThis(URLSearchParamsPrototype['delete']);
|
|
22709
|
+
var forEach = uncurryThis(URLSearchParamsPrototype.forEach);
|
|
22710
|
+
var push = uncurryThis([].push);
|
|
22711
|
+
var params = new $URLSearchParams('a=1&a=2&b=3');
|
|
22712
|
+
|
|
22713
|
+
params['delete']('a', 1);
|
|
22714
|
+
// `undefined` case is a Chromium 117 bug
|
|
22715
|
+
// https://bugs.chromium.org/p/v8/issues/detail?id=14222
|
|
22716
|
+
params['delete']('b', undefined);
|
|
22717
|
+
|
|
22718
|
+
if (params + '' !== 'a=2') {
|
|
22719
|
+
defineBuiltIn(URLSearchParamsPrototype, 'delete', function (name /* , value */) {
|
|
22720
|
+
var length = arguments.length;
|
|
22721
|
+
var $value = length < 2 ? undefined : arguments[1];
|
|
22722
|
+
if (length && $value === undefined) return $delete(this, name);
|
|
22723
|
+
var entries = [];
|
|
22724
|
+
forEach(this, function (v, k) { // also validates `this`
|
|
22725
|
+
push(entries, { key: k, value: v });
|
|
22726
|
+
});
|
|
22727
|
+
validateArgumentsLength(length, 1);
|
|
22728
|
+
var key = toString(name);
|
|
22729
|
+
var value = toString($value);
|
|
22730
|
+
var index = 0;
|
|
22731
|
+
var dindex = 0;
|
|
22732
|
+
var found = false;
|
|
22733
|
+
var entriesLength = entries.length;
|
|
22734
|
+
var entry;
|
|
22735
|
+
while (index < entriesLength) {
|
|
22736
|
+
entry = entries[index++];
|
|
22737
|
+
if (found || entry.key === key) {
|
|
22738
|
+
found = true;
|
|
22739
|
+
$delete(this, entry.key);
|
|
22740
|
+
} else dindex++;
|
|
22741
|
+
}
|
|
22742
|
+
while (dindex < entriesLength) {
|
|
22743
|
+
entry = entries[dindex++];
|
|
22744
|
+
if (!(entry.key === key && entry.value === value)) append(this, entry.key, entry.value);
|
|
22745
|
+
}
|
|
22746
|
+
}, { enumerable: true, unsafe: true });
|
|
22747
|
+
}
|
|
22748
|
+
|
|
22749
|
+
|
|
20633
22750
|
/***/ }),
|
|
20634
22751
|
|
|
20635
22752
|
/***/ "cc6e":
|
|
@@ -22372,17 +24489,6 @@ $({ target: 'Iterator', proto: true, real: true, forced: FORCED }, {
|
|
|
22372
24489
|
});
|
|
22373
24490
|
|
|
22374
24491
|
|
|
22375
|
-
/***/ }),
|
|
22376
|
-
|
|
22377
|
-
/***/ "dbec":
|
|
22378
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
22379
|
-
|
|
22380
|
-
"use strict";
|
|
22381
|
-
/* harmony import */ var _node_modules_pnpm_vue_style_loader_4_1_3_node_modules_vue_style_loader_index_js_ref_8_oneOf_1_0_node_modules_pnpm_css_loader_3_6_0_webpack_4_47_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_pnpm_vue_loader_15_11_1_vue_com_c18e9a749cc21ff970a79c65ca01237d_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_pnpm_postcss_loader_3_0_0_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_pnpm_postcss_loader_3_0_0_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_node_modules_pnpm_sass_loader_8_0_2_sass_1_57_1_webpack_4_47_0_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_node_modules_pnpm_cache_loader_4_1_0_webpack_4_47_0_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_pnpm_vue_loader_15_11_1_vue_com_c18e9a749cc21ff970a79c65ca01237d_node_modules_vue_loader_lib_index_js_vue_loader_options_Menu_vue_vue_type_style_index_0_id_6b91ee73_prod_lang_scss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("391d");
|
|
22382
|
-
/* harmony import */ var _node_modules_pnpm_vue_style_loader_4_1_3_node_modules_vue_style_loader_index_js_ref_8_oneOf_1_0_node_modules_pnpm_css_loader_3_6_0_webpack_4_47_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_pnpm_vue_loader_15_11_1_vue_com_c18e9a749cc21ff970a79c65ca01237d_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_pnpm_postcss_loader_3_0_0_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_pnpm_postcss_loader_3_0_0_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_node_modules_pnpm_sass_loader_8_0_2_sass_1_57_1_webpack_4_47_0_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_node_modules_pnpm_cache_loader_4_1_0_webpack_4_47_0_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_pnpm_vue_loader_15_11_1_vue_com_c18e9a749cc21ff970a79c65ca01237d_node_modules_vue_loader_lib_index_js_vue_loader_options_Menu_vue_vue_type_style_index_0_id_6b91ee73_prod_lang_scss__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_pnpm_vue_style_loader_4_1_3_node_modules_vue_style_loader_index_js_ref_8_oneOf_1_0_node_modules_pnpm_css_loader_3_6_0_webpack_4_47_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_pnpm_vue_loader_15_11_1_vue_com_c18e9a749cc21ff970a79c65ca01237d_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_pnpm_postcss_loader_3_0_0_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_pnpm_postcss_loader_3_0_0_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_node_modules_pnpm_sass_loader_8_0_2_sass_1_57_1_webpack_4_47_0_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_node_modules_pnpm_cache_loader_4_1_0_webpack_4_47_0_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_pnpm_vue_loader_15_11_1_vue_com_c18e9a749cc21ff970a79c65ca01237d_node_modules_vue_loader_lib_index_js_vue_loader_options_Menu_vue_vue_type_style_index_0_id_6b91ee73_prod_lang_scss__WEBPACK_IMPORTED_MODULE_0__);
|
|
22383
|
-
/* unused harmony reexport * */
|
|
22384
|
-
|
|
22385
|
-
|
|
22386
24492
|
/***/ }),
|
|
22387
24493
|
|
|
22388
24494
|
/***/ "dc77":
|
|
@@ -22561,20 +24667,6 @@ module.exports = defaults;
|
|
|
22561
24667
|
|
|
22562
24668
|
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__("0418")))
|
|
22563
24669
|
|
|
22564
|
-
/***/ }),
|
|
22565
|
-
|
|
22566
|
-
/***/ "dde9":
|
|
22567
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
22568
|
-
|
|
22569
|
-
// Imports
|
|
22570
|
-
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__("ee2b");
|
|
22571
|
-
exports = ___CSS_LOADER_API_IMPORT___(false);
|
|
22572
|
-
// Module
|
|
22573
|
-
exports.push([module.i, ".is-select-menu>a{position:relative;color:#ffd04b!important}.is-select-menu:after{content:\"\";position:absolute;display:block;width:65%;height:3px;border-radius:10px;background:#ffd04b;bottom:0}", ""]);
|
|
22574
|
-
// Exports
|
|
22575
|
-
module.exports = exports;
|
|
22576
|
-
|
|
22577
|
-
|
|
22578
24670
|
/***/ }),
|
|
22579
24671
|
|
|
22580
24672
|
/***/ "ddee":
|
|
@@ -23168,6 +25260,17 @@ module.exports = Object.setPrototypeOf || ('__proto__' in {} ? function () {
|
|
|
23168
25260
|
}() : undefined);
|
|
23169
25261
|
|
|
23170
25262
|
|
|
25263
|
+
/***/ }),
|
|
25264
|
+
|
|
25265
|
+
/***/ "e7b2":
|
|
25266
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
25267
|
+
|
|
25268
|
+
"use strict";
|
|
25269
|
+
|
|
25270
|
+
// TODO: Remove this module from `core-js@4` since it's replaced to module below
|
|
25271
|
+
__webpack_require__("392f");
|
|
25272
|
+
|
|
25273
|
+
|
|
23171
25274
|
/***/ }),
|
|
23172
25275
|
|
|
23173
25276
|
/***/ "e7d4":
|
|
@@ -23401,6 +25504,20 @@ module.exports = fails(function () {
|
|
|
23401
25504
|
});
|
|
23402
25505
|
|
|
23403
25506
|
|
|
25507
|
+
/***/ }),
|
|
25508
|
+
|
|
25509
|
+
/***/ "eda4":
|
|
25510
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
25511
|
+
|
|
25512
|
+
// Imports
|
|
25513
|
+
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__("ee2b");
|
|
25514
|
+
exports = ___CSS_LOADER_API_IMPORT___(false);
|
|
25515
|
+
// Module
|
|
25516
|
+
exports.push([module.i, ".is-select-menu>a{position:relative;color:#ffd04b!important}.is-select-menu:after{content:\"\";position:absolute;display:block;width:65%;height:3px;border-radius:10px;background:#ffd04b;bottom:0}", ""]);
|
|
25517
|
+
// Exports
|
|
25518
|
+
module.exports = exports;
|
|
25519
|
+
|
|
25520
|
+
|
|
23404
25521
|
/***/ }),
|
|
23405
25522
|
|
|
23406
25523
|
/***/ "ee2b":
|