@@ -6653,7 +6653,7 @@ var ThrowTypeError = $gOPD
66536653 } ( ) )
66546654 : throwTypeError ;
66556655
6656- var hasSymbols = __nccwpck_require__ ( 7039 ) ( ) ;
6656+ var hasSymbols = __nccwpck_require__ ( 587 ) ( ) ;
66576657
66586658var getProto = Object . getPrototypeOf || function ( x ) { return x . __proto__ ; } ; // eslint-disable-line no-proto
66596659
@@ -6813,6 +6813,7 @@ var $concat = bind.call(Function.call, Array.prototype.concat);
68136813var $spliceApply = bind . call ( Function . apply , Array . prototype . splice ) ;
68146814var $replace = bind . call ( Function . call , String . prototype . replace ) ;
68156815var $strSlice = bind . call ( Function . call , String . prototype . slice ) ;
6816+ var $exec = bind . call ( Function . call , RegExp . prototype . exec ) ;
68166817
68176818/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
68186819var rePropName = / [ ^ % . [ \] ] + | \[ (?: ( - ? \d + (?: \. \d + ) ? ) | ( [ " ' ] ) ( (?: (? ! \2) [ ^ \\ ] | \\ .) * ?) \2) \] | (? = (?: \. | \[ \] ) (?: \. | \[ \] | % $ ) ) / g;
@@ -6868,6 +6869,9 @@ module.exports = function GetIntrinsic(name, allowMissing) {
68686869 throw new $TypeError ( '"allowMissing" argument must be a boolean' ) ;
68696870 }
68706871
6872+ if ( $exec ( / ^ % ? [ ^ % ] * % ? $ / , name ) === null ) {
6873+ throw new $SyntaxError ( '`%` may not be present anywhere but at the beginning and end of the intrinsic name' ) ;
6874+ }
68716875 var parts = stringToPath ( name ) ;
68726876 var intrinsicBaseName = parts . length > 0 ? parts [ 0 ] : '' ;
68736877
@@ -6943,14 +6947,14 @@ module.exports = function GetIntrinsic(name, allowMissing) {
69436947
69446948/***/ } ) ,
69456949
6946- /***/ 7039 :
6950+ /***/ 587 :
69476951/***/ ( ( module , __unused_webpack_exports , __nccwpck_require__ ) => {
69486952
69496953"use strict" ;
69506954
69516955
69526956var origSymbol = typeof Symbol !== 'undefined' && Symbol ;
6953- var hasSymbolSham = __nccwpck_require__ ( 4879 ) ;
6957+ var hasSymbolSham = __nccwpck_require__ ( 7747 ) ;
69546958
69556959module . exports = function hasNativeSymbols ( ) {
69566960 if ( typeof origSymbol !== 'function' ) { return false ; }
@@ -6964,7 +6968,7 @@ module.exports = function hasNativeSymbols() {
69646968
69656969/***/ } ) ,
69666970
6967- /***/ 4879 :
6971+ /***/ 7747 :
69686972/***/ ( ( module ) => {
69696973
69706974"use strict" ;
@@ -7389,10 +7393,24 @@ var weakRefDeref = hasWeakRef ? WeakRef.prototype.deref : null;
73897393var booleanValueOf = Boolean . prototype . valueOf ;
73907394var objectToString = Object . prototype . toString ;
73917395var functionToString = Function . prototype . toString ;
7392- var match = String . prototype . match ;
7396+ var $match = String . prototype . match ;
7397+ var $slice = String . prototype . slice ;
7398+ var $replace = String . prototype . replace ;
7399+ var $toUpperCase = String . prototype . toUpperCase ;
7400+ var $toLowerCase = String . prototype . toLowerCase ;
7401+ var $test = RegExp . prototype . test ;
7402+ var $concat = Array . prototype . concat ;
7403+ var $join = Array . prototype . join ;
7404+ var $arrSlice = Array . prototype . slice ;
7405+ var $floor = Math . floor ;
73937406var bigIntValueOf = typeof BigInt === 'function' ? BigInt . prototype . valueOf : null ;
73947407var gOPS = Object . getOwnPropertySymbols ;
73957408var symToString = typeof Symbol === 'function' && typeof Symbol . iterator === 'symbol' ? Symbol . prototype . toString : null ;
7409+ var hasShammedSymbols = typeof Symbol === 'function' && typeof Symbol . iterator === 'object' ;
7410+ // ie, `has-tostringtag/shams
7411+ var toStringTag = typeof Symbol === 'function' && Symbol . toStringTag && ( typeof Symbol . toStringTag === hasShammedSymbols ? 'object' : 'symbol' )
7412+ ? Symbol . toStringTag
7413+ : null ;
73967414var isEnumerable = Object . prototype . propertyIsEnumerable ;
73977415
73987416var gPO = ( typeof Reflect === 'function' ? Reflect . getPrototypeOf : Object . getPrototypeOf ) || (
@@ -7403,9 +7421,31 @@ var gPO = (typeof Reflect === 'function' ? Reflect.getPrototypeOf : Object.getPr
74037421 : null
74047422) ;
74057423
7406- var inspectCustom = ( __nccwpck_require__ ( 7265 ) . custom ) ;
7407- var inspectSymbol = inspectCustom && isSymbol ( inspectCustom ) ? inspectCustom : null ;
7408- var toStringTag = typeof Symbol === 'function' && typeof Symbol . toStringTag === 'symbol' ? Symbol . toStringTag : null ;
7424+ function addNumericSeparator ( num , str ) {
7425+ if (
7426+ num === Infinity
7427+ || num === - Infinity
7428+ || num !== num
7429+ || ( num && num > - 1000 && num < 1000 )
7430+ || $test . call ( / e / , str )
7431+ ) {
7432+ return str ;
7433+ }
7434+ var sepRegex = / [ 0 - 9 ] (? = (?: [ 0 - 9 ] { 3 } ) + (? ! [ 0 - 9 ] ) ) / g;
7435+ if ( typeof num === 'number' ) {
7436+ var int = num < 0 ? - $floor ( - num ) : $floor ( num ) ; // trunc(num)
7437+ if ( int !== num ) {
7438+ var intStr = String ( int ) ;
7439+ var dec = $slice . call ( str , intStr . length + 1 ) ;
7440+ return $replace . call ( intStr , sepRegex , '$&_' ) + '.' + $replace . call ( $replace . call ( dec , / ( [ 0 - 9 ] { 3 } ) / g, '$&_' ) , / _ $ / , '' ) ;
7441+ }
7442+ }
7443+ return $replace . call ( str , sepRegex , '$&_' ) ;
7444+ }
7445+
7446+ var utilInspect = __nccwpck_require__ ( 7265 ) ;
7447+ var inspectCustom = utilInspect . custom ;
7448+ var inspectSymbol = isSymbol ( inspectCustom ) ? inspectCustom : null ;
74097449
74107450module . exports = function inspect_ ( obj , options , depth , seen ) {
74117451 var opts = options || { } ;
@@ -7422,8 +7462,8 @@ module.exports = function inspect_(obj, options, depth, seen) {
74227462 throw new TypeError ( 'option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`' ) ;
74237463 }
74247464 var customInspect = has ( opts , 'customInspect' ) ? opts . customInspect : true ;
7425- if ( typeof customInspect !== 'boolean' ) {
7426- throw new TypeError ( 'option "customInspect", if provided, must be `true` or `false `' ) ;
7465+ if ( typeof customInspect !== 'boolean' && customInspect !== 'symbol' ) {
7466+ throw new TypeError ( 'option "customInspect", if provided, must be `true`, `false`, or `\'symbol\' `' ) ;
74277467 }
74287468
74297469 if (
@@ -7432,8 +7472,12 @@ module.exports = function inspect_(obj, options, depth, seen) {
74327472 && opts . indent !== '\t'
74337473 && ! ( parseInt ( opts . indent , 10 ) === opts . indent && opts . indent > 0 )
74347474 ) {
7435- throw new TypeError ( 'options "indent" must be "\\t", an integer > 0, or `null`' ) ;
7475+ throw new TypeError ( 'option "indent" must be "\\t", an integer > 0, or `null`' ) ;
7476+ }
7477+ if ( has ( opts , 'numericSeparator' ) && typeof opts . numericSeparator !== 'boolean' ) {
7478+ throw new TypeError ( 'option "numericSeparator", if provided, must be `true` or `false`' ) ;
74367479 }
7480+ var numericSeparator = opts . numericSeparator ;
74377481
74387482 if ( typeof obj === 'undefined' ) {
74397483 return 'undefined' ;
@@ -7452,10 +7496,12 @@ module.exports = function inspect_(obj, options, depth, seen) {
74527496 if ( obj === 0 ) {
74537497 return Infinity / obj > 0 ? '0' : '-0' ;
74547498 }
7455- return String ( obj ) ;
7499+ var str = String ( obj ) ;
7500+ return numericSeparator ? addNumericSeparator ( obj , str ) : str ;
74567501 }
74577502 if ( typeof obj === 'bigint' ) {
7458- return String ( obj ) + 'n' ;
7503+ var bigIntStr = String ( obj ) + 'n' ;
7504+ return numericSeparator ? addNumericSeparator ( obj , bigIntStr ) : bigIntStr ;
74597505 }
74607506
74617507 var maxDepth = typeof opts . depth === 'undefined' ? 5 : opts . depth ;
@@ -7474,7 +7520,7 @@ module.exports = function inspect_(obj, options, depth, seen) {
74747520
74757521 function inspect ( value , from , noIndent ) {
74767522 if ( from ) {
7477- seen = seen . slice ( ) ;
7523+ seen = $arrSlice . call ( seen ) ;
74787524 seen . push ( from ) ;
74797525 }
74807526 if ( noIndent ) {
@@ -7489,24 +7535,24 @@ module.exports = function inspect_(obj, options, depth, seen) {
74897535 return inspect_ ( value , opts , depth + 1 , seen ) ;
74907536 }
74917537
7492- if ( typeof obj === 'function' ) {
7538+ if ( typeof obj === 'function' && ! isRegExp ( obj ) ) { // in older engines, regexes are callable
74937539 var name = nameOf ( obj ) ;
74947540 var keys = arrObjKeys ( obj , inspect ) ;
7495- return '[Function' + ( name ? ': ' + name : ' (anonymous)' ) + ']' + ( keys . length > 0 ? ' { ' + keys . join ( ', ' ) + ' }' : '' ) ;
7541+ return '[Function' + ( name ? ': ' + name : ' (anonymous)' ) + ']' + ( keys . length > 0 ? ' { ' + $ join. call ( keys , ', ' ) + ' }' : '' ) ;
74967542 }
74977543 if ( isSymbol ( obj ) ) {
7498- var symString = symToString . call ( obj ) ;
7499- return typeof obj === 'object' ? markBoxed ( symString ) : symString ;
7544+ var symString = hasShammedSymbols ? $replace . call ( String ( obj ) , / ^ ( S y m b o l \( . * \) ) _ [ ^ ) ] * $ / , '$1' ) : symToString . call ( obj ) ;
7545+ return typeof obj === 'object' && ! hasShammedSymbols ? markBoxed ( symString ) : symString ;
75007546 }
75017547 if ( isElement ( obj ) ) {
7502- var s = '<' + String ( obj . nodeName ) . toLowerCase ( ) ;
7548+ var s = '<' + $toLowerCase . call ( String ( obj . nodeName ) ) ;
75037549 var attrs = obj . attributes || [ ] ;
75047550 for ( var i = 0 ; i < attrs . length ; i ++ ) {
75057551 s += ' ' + attrs [ i ] . name + '=' + wrapQuotes ( quote ( attrs [ i ] . value ) , 'double' , opts ) ;
75067552 }
75077553 s += '>' ;
75087554 if ( obj . childNodes && obj . childNodes . length ) { s += '...' ; }
7509- s += '</' + String ( obj . nodeName ) . toLowerCase ( ) + '>' ;
7555+ s += '</' + $toLowerCase . call ( String ( obj . nodeName ) ) + '>' ;
75107556 return s ;
75117557 }
75127558 if ( isArray ( obj ) ) {
@@ -7515,17 +7561,20 @@ module.exports = function inspect_(obj, options, depth, seen) {
75157561 if ( indent && ! singleLineValues ( xs ) ) {
75167562 return '[' + indentedJoin ( xs , indent ) + ']' ;
75177563 }
7518- return '[ ' + xs . join ( ', ' ) + ' ]' ;
7564+ return '[ ' + $ join. call ( xs , ', ' ) + ' ]' ;
75197565 }
75207566 if ( isError ( obj ) ) {
75217567 var parts = arrObjKeys ( obj , inspect ) ;
7568+ if ( ! ( 'cause' in Error . prototype ) && 'cause' in obj && ! isEnumerable . call ( obj , 'cause' ) ) {
7569+ return '{ [' + String ( obj ) + '] ' + $join . call ( $concat . call ( '[cause]: ' + inspect ( obj . cause ) , parts ) , ', ' ) + ' }' ;
7570+ }
75227571 if ( parts . length === 0 ) { return '[' + String ( obj ) + ']' ; }
7523- return '{ [' + String ( obj ) + '] ' + parts . join ( ', ' ) + ' }' ;
7572+ return '{ [' + String ( obj ) + '] ' + $ join. call ( parts , ', ' ) + ' }' ;
75247573 }
75257574 if ( typeof obj === 'object' && customInspect ) {
7526- if ( inspectSymbol && typeof obj [ inspectSymbol ] === 'function' ) {
7527- return obj [ inspectSymbol ] ( ) ;
7528- } else if ( typeof obj . inspect === 'function' ) {
7575+ if ( inspectSymbol && typeof obj [ inspectSymbol ] === 'function' && utilInspect ) {
7576+ return utilInspect ( obj , { depth : maxDepth - depth } ) ;
7577+ } else if ( customInspect !== 'symbol' && typeof obj . inspect === 'function' ) {
75297578 return obj . inspect ( ) ;
75307579 }
75317580 }
@@ -7568,14 +7617,14 @@ module.exports = function inspect_(obj, options, depth, seen) {
75687617 var ys = arrObjKeys ( obj , inspect ) ;
75697618 var isPlainObject = gPO ? gPO ( obj ) === Object . prototype : obj instanceof Object || obj . constructor === Object ;
75707619 var protoTag = obj instanceof Object ? '' : 'null prototype' ;
7571- var stringTag = ! isPlainObject && toStringTag && Object ( obj ) === obj && toStringTag in obj ? toStr ( obj ) . slice ( 8 , - 1 ) : protoTag ? 'Object' : '' ;
7620+ var stringTag = ! isPlainObject && toStringTag && Object ( obj ) === obj && toStringTag in obj ? $slice . call ( toStr ( obj ) , 8 , - 1 ) : protoTag ? 'Object' : '' ;
75727621 var constructorTag = isPlainObject || typeof obj . constructor !== 'function' ? '' : obj . constructor . name ? obj . constructor . name + ' ' : '' ;
7573- var tag = constructorTag + ( stringTag || protoTag ? '[' + [ ] . concat ( stringTag || [ ] , protoTag || [ ] ) . join ( ': ' ) + '] ' : '' ) ;
7622+ var tag = constructorTag + ( stringTag || protoTag ? '[' + $join . call ( $ concat. call ( [ ] , stringTag || [ ] , protoTag || [ ] ) , ': ' ) + '] ' : '' ) ;
75747623 if ( ys . length === 0 ) { return tag + '{}' ; }
75757624 if ( indent ) {
75767625 return tag + '{' + indentedJoin ( ys , indent ) + '}' ;
75777626 }
7578- return tag + '{ ' + ys . join ( ', ' ) + ' }' ;
7627+ return tag + '{ ' + $ join. call ( ys , ', ' ) + ' }' ;
75797628 }
75807629 return String ( obj ) ;
75817630} ;
@@ -7586,7 +7635,7 @@ function wrapQuotes(s, defaultStyle, opts) {
75867635}
75877636
75887637function quote ( s ) {
7589- return String ( s ) . replace ( / " / g, '"' ) ;
7638+ return $replace . call ( String ( s ) , / " / g, '"' ) ;
75907639}
75917640
75927641function isArray ( obj ) { return toStr ( obj ) === '[object Array]' && ( ! toStringTag || ! ( typeof obj === 'object' && toStringTag in obj ) ) ; }
@@ -7599,6 +7648,9 @@ function isBoolean(obj) { return toStr(obj) === '[object Boolean]' && (!toString
75997648
76007649// Symbol and BigInt do have Symbol.toStringTag by spec, so that can't be used to eliminate false positives
76017650function isSymbol ( obj ) {
7651+ if ( hasShammedSymbols ) {
7652+ return obj && typeof obj === 'object' && obj instanceof Symbol ;
7653+ }
76027654 if ( typeof obj === 'symbol' ) {
76037655 return true ;
76047656 }
@@ -7634,7 +7686,7 @@ function toStr(obj) {
76347686
76357687function nameOf ( f ) {
76367688 if ( f . name ) { return f . name ; }
7637- var m = match . call ( functionToString . call ( f ) , / ^ f u n c t i o n \s * ( [ \w $ ] + ) / ) ;
7689+ var m = $ match. call ( functionToString . call ( f ) , / ^ f u n c t i o n \s * ( [ \w $ ] + ) / ) ;
76387690 if ( m ) { return m [ 1 ] ; }
76397691 return null ;
76407692}
@@ -7734,10 +7786,10 @@ function inspectString(str, opts) {
77347786 if ( str . length > opts . maxStringLength ) {
77357787 var remaining = str . length - opts . maxStringLength ;
77367788 var trailer = '... ' + remaining + ' more character' + ( remaining > 1 ? 's' : '' ) ;
7737- return inspectString ( str . slice ( 0 , opts . maxStringLength ) , opts ) + trailer ;
7789+ return inspectString ( $ slice. call ( str , 0 , opts . maxStringLength ) , opts ) + trailer ;
77387790 }
77397791 // eslint-disable-next-line no-control-regex
7740- var s = str . replace ( / ( [ ' \\ ] ) / g, '\\$1' ) . replace ( / [ \x00 - \x1f ] / g, lowbyte ) ;
7792+ var s = $replace . call ( $ replace. call ( str , / ( [ ' \\ ] ) / g, '\\$1' ) , / [ \x00 - \x1f ] / g, lowbyte ) ;
77417793 return wrapQuotes ( s , 'single' , opts ) ;
77427794}
77437795
@@ -7751,7 +7803,7 @@ function lowbyte(c) {
77517803 13 : 'r'
77527804 } [ n ] ;
77537805 if ( x ) { return '\\' + x ; }
7754- return '\\x' + ( n < 0x10 ? '0' : '' ) + n . toString ( 16 ) . toUpperCase ( ) ;
7806+ return '\\x' + ( n < 0x10 ? '0' : '' ) + $toUpperCase . call ( n . toString ( 16 ) ) ;
77557807}
77567808
77577809function markBoxed ( str ) {
@@ -7763,7 +7815,7 @@ function weakCollectionOf(type) {
77637815}
77647816
77657817function collectionOf ( type , size , entries , indent ) {
7766- var joinedEntries = indent ? indentedJoin ( entries , indent ) : entries . join ( ', ' ) ;
7818+ var joinedEntries = indent ? indentedJoin ( entries , indent ) : $ join. call ( entries , ', ' ) ;
77677819 return type + ' (' + size + ') {' + joinedEntries + '}' ;
77687820}
77697821
@@ -7781,20 +7833,20 @@ function getIndent(opts, depth) {
77817833 if ( opts . indent === '\t' ) {
77827834 baseIndent = '\t' ;
77837835 } else if ( typeof opts . indent === 'number' && opts . indent > 0 ) {
7784- baseIndent = Array ( opts . indent + 1 ) . join ( ' ' ) ;
7836+ baseIndent = $join . call ( Array ( opts . indent + 1 ) , ' ' ) ;
77857837 } else {
77867838 return null ;
77877839 }
77887840 return {
77897841 base : baseIndent ,
7790- prev : Array ( depth + 1 ) . join ( baseIndent )
7842+ prev : $join . call ( Array ( depth + 1 ) , baseIndent )
77917843 } ;
77927844}
77937845
77947846function indentedJoin ( xs , indent ) {
77957847 if ( xs . length === 0 ) { return '' ; }
77967848 var lineJoiner = '\n' + indent . prev + indent . base ;
7797- return lineJoiner + xs . join ( ',' + lineJoiner ) + '\n' + indent . prev ;
7849+ return lineJoiner + $ join. call ( xs , ',' + lineJoiner ) + '\n' + indent . prev ;
77987850}
77997851
78007852function arrObjKeys ( obj , inspect ) {
@@ -7806,17 +7858,28 @@ function arrObjKeys(obj, inspect) {
78067858 xs [ i ] = has ( obj , i ) ? inspect ( obj [ i ] , obj ) : '' ;
78077859 }
78087860 }
7861+ var syms = typeof gOPS === 'function' ? gOPS ( obj ) : [ ] ;
7862+ var symMap ;
7863+ if ( hasShammedSymbols ) {
7864+ symMap = { } ;
7865+ for ( var k = 0 ; k < syms . length ; k ++ ) {
7866+ symMap [ '$' + syms [ k ] ] = syms [ k ] ;
7867+ }
7868+ }
7869+
78097870 for ( var key in obj ) { // eslint-disable-line no-restricted-syntax
78107871 if ( ! has ( obj , key ) ) { continue ; } // eslint-disable-line no-restricted-syntax, no-continue
78117872 if ( isArr && String ( Number ( key ) ) === key && key < obj . length ) { continue ; } // eslint-disable-line no-restricted-syntax, no-continue
7812- if ( ( / [ ^ \w $ ] / ) . test ( key ) ) {
7873+ if ( hasShammedSymbols && symMap [ '$' + key ] instanceof Symbol ) {
7874+ // this is to prevent shammed Symbols, which are stored as strings, from being included in the string key section
7875+ continue ; // eslint-disable-line no-restricted-syntax, no-continue
7876+ } else if ( $test . call ( / [ ^ \w $ ] / , key ) ) {
78137877 xs . push ( inspect ( key , obj ) + ': ' + inspect ( obj [ key ] , obj ) ) ;
78147878 } else {
78157879 xs . push ( key + ': ' + inspect ( obj [ key ] , obj ) ) ;
78167880 }
78177881 }
78187882 if ( typeof gOPS === 'function' ) {
7819- var syms = gOPS ( obj ) ;
78207883 for ( var j = 0 ; j < syms . length ; j ++ ) {
78217884 if ( isEnumerable . call ( obj , syms [ j ] ) ) {
78227885 xs . push ( '[' + inspect ( syms [ j ] ) + ']: ' + inspect ( obj [ syms [ j ] ] , obj ) ) ;
0 commit comments