tldjs
Version:
JavaScript API to work against complex domain names, subdomains and URIs.
1 lines • 253 kB
JavaScript
!function(f){"object"==typeof exports&&"undefined"!=typeof module?module.exports=f():"function"==typeof define&&define.amd?define([],f):("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).tldjs=f()}(function(){return function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);throw(f=new Error("Cannot find module '"+i+"'")).code="MODULE_NOT_FOUND",f}c=n[i]={exports:{}},e[i][0].call(c.exports,function(r){return o(e[i][1][r]||r)},c,c.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}({1:[function(require,module,exports){var deprecate=require("util").deprecate,allRules=require("./lib/suffix-trie.js").fromJson(require("./rules.json")),extractHostname=require("./lib/clean-host.js"),getDomain=require("./lib/domain.js"),getPublicSuffix=require("./lib/public-suffix.js"),getSubdomain=require("./lib/subdomain.js"),isValidHostname=require("./lib/is-valid.js"),isIp=require("./lib/is-ip.js"),tldExists=require("./lib/tld-exists.js");module.exports=function factory(options){var rules=options.rules||allRules||{},validHosts=options.validHosts||[],_extractHostname=options.extractHostname||extractHostname;function parse(url,_step){return _step=_step||5,null===(url={hostname:_extractHostname(url),isValid:null,isIp:null,tldExists:!1,publicSuffix:null,domain:null,subdomain:null}).hostname?(url.isIp=!1,url.isValid=!1):(url.isIp=isIp(url.hostname),url.isIp?url.isValid=!0:(url.isValid=isValidHostname(url.hostname),!1!==url.isValid&&(5!==_step&&1!==_step||(url.tldExists=tldExists(rules,url.hostname)),1!==_step)&&(url.publicSuffix=getPublicSuffix(rules,url.hostname),2!==_step)&&(url.domain=getDomain(validHosts,url.publicSuffix,url.hostname),3!==_step)&&(url.subdomain=getSubdomain(url.hostname,url.domain)))),url}return{extractHostname:_extractHostname,isValidHostname:isValidHostname,isValid:deprecate(function(hostname){return isValidHostname(hostname)},'"isValid" is deprecated, please use "isValidHostname" instead.'),parse:parse,tldExists:function(url){return parse(url,1).tldExists},getPublicSuffix:function(url){return parse(url,2).publicSuffix},getDomain:function(url){return parse(url,3).domain},getSubdomain:function(url){return parse(url,4).subdomain},fromUserSettings:factory}}({})},{"./lib/clean-host.js":2,"./lib/domain.js":3,"./lib/is-ip.js":5,"./lib/is-valid.js":6,"./lib/public-suffix.js":7,"./lib/subdomain.js":8,"./lib/suffix-trie.js":9,"./lib/tld-exists.js":10,"./rules.json":80,util:78}],2:[function(require,module,exports){var URL=require("url"),isValid=require("./is-valid.js"),hasPrefixRE=/^(([a-z][a-z0-9+.-]*)?:)?\/\//;function trimTrailingDots(value){return"."===value[value.length-1]?value.substr(0,value.length-1):value}module.exports=function(value){if(isValid(value))return trimTrailingDots(value);var needsTrimming=(value=>0<value.length&&(value.charCodeAt(0)<=32||value.charCodeAt(value.length-1)<=32))(value="string"!=typeof value?""+value:value),needsLowerCase=(value=>{for(var i=0;i<value.length;i+=1){var code=value.charCodeAt(i);if(65<=code&&code<=90)return!0}return!1})(value=needsTrimming?value.trim():value);if(needsLowerCase&&(value=value.toLowerCase()),(needsLowerCase||needsTrimming)&&isValid(value))return trimTrailingDots(value);hasPrefixRE.test(value)||(value="//"+value);needsLowerCase=URL.parse(value,null,!0);return needsLowerCase.hostname?trimTrailingDots(needsLowerCase.hostname):null}},{"./is-valid.js":6,url:75}],3:[function(require,module,exports){module.exports=function(validHosts,suffix,hostname){for(var i=0;i<validHosts.length;i+=1){var vhost=validHosts[i];if(((hostname,vhost)=>{return pattern=vhost,(str=hostname).lastIndexOf(pattern)===str.length-pattern.length&&(hostname.length===vhost.length||"."===hostname[hostname.length-vhost.length-1]);var str,pattern})(hostname,vhost))return vhost}return null===suffix||suffix.length===hostname.length?null:((hostname,publicSuffix)=>(publicSuffix=hostname.length-publicSuffix.length-2,-1===(publicSuffix=hostname.lastIndexOf(".",publicSuffix))?hostname:hostname.substr(publicSuffix+1)))(hostname,suffix)}},{}],4:[function(require,module,exports){module.exports=function(hostname){var lastDotIndex=hostname.lastIndexOf(".");return-1===lastDotIndex?null:hostname.substr(lastDotIndex+1)}},{}],5:[function(require,module,exports){module.exports=function(hostname){return"string"==typeof hostname&&0!==hostname.length&&((hostname=>{for(var hasColon=!1,i=0;i<hostname.length;i+=1){var code=hostname.charCodeAt(i);if(58===code)hasColon=!0;else if(!(48<=code&&code<=57||97<=code&&code<=102))return!1}return hasColon})(hostname)||(hostname=>{for(var numberOfDots=0,i=0;i<hostname.length;i+=1){var code=hostname.charCodeAt(i);if(46===code)numberOfDots+=1;else if(code<48||57<code)return!1}return 3===numberOfDots&&"."!==hostname[0]&&"."!==hostname[hostname.length-1]})(hostname))}},{}],6:[function(require,module,exports){function isDigit(code){return 48<=code&&code<=57}function isAlpha(code){return 97<=code&&code<=122}module.exports=function(hostname){if("string"!=typeof hostname)return!1;if(255<hostname.length)return!1;if(0===hostname.length)return!1;var firstCharCode=hostname.charCodeAt(0);if(!isAlpha(firstCharCode)&&!isDigit(firstCharCode))return!1;for(var lastCharCode,code,lastDotIndex=-1,len=hostname.length,i=0;i<len;i+=1){if(46===(code=hostname.charCodeAt(i))){if(64<i-lastDotIndex||46===lastCharCode||45===lastCharCode)return!1;lastDotIndex=i}else if(!isAlpha(code)&&!isDigit(code)&&45!==code)return!1;lastCharCode=code}return len-lastDotIndex-1<=63&&45!==lastCharCode}},{}],7:[function(require,module,exports){var extractTldFromHost=require("./from-host.js");module.exports=function(rules,hostname){return rules.hasTld(hostname)?hostname:null===(rules=rules.suffixLookup(hostname))?extractTldFromHost(hostname):rules}},{"./from-host.js":4}],8:[function(require,module,exports){module.exports=function(hostname,domain){return null===domain?null:hostname.substr(0,hostname.length-domain.length-1)}},{}],9:[function(require,module,exports){var VALID_HOSTNAME_VALUE=0;function minIndex(a,b){return null!==a&&(null===b||a<b)?a:b}function insertInTrie(rule,trie){for(var parts=rule.parts,node=trie,i=0;i<parts.length;i+=1){var part=parts[i],nextNode=node[part];void 0===nextNode&&(nextNode=Object.create(null),node[part]=nextNode),node=nextNode}node.$=VALID_HOSTNAME_VALUE}function lookupInTrie(parts,trie,index){var nextNode,publicSuffixIndex=null;return void 0!==trie.$&&(publicSuffixIndex=index+1),publicSuffixIndex=-1!==index&&(void 0!==(nextNode=trie[parts[index]])&&(publicSuffixIndex=minIndex(publicSuffixIndex,lookupInTrie(parts,nextNode,index-1))),void 0!==(nextNode=trie["*"]))?minIndex(publicSuffixIndex,lookupInTrie(parts,nextNode,index-1)):publicSuffixIndex}function SuffixTrie(rules){if(this.exceptions=Object.create(null),this.rules=Object.create(null),rules)for(var i=0;i<rules.length;i+=1){var rule=rules[i];rule.exception?insertInTrie(rule,this.exceptions):insertInTrie(rule,this.rules)}}SuffixTrie.fromJson=function(json){var trie=new SuffixTrie;return trie.exceptions=json.exceptions,trie.rules=json.rules,trie},SuffixTrie.prototype.hasTld=function(value){return void 0!==this.rules[value]},SuffixTrie.prototype.suffixLookup=function(hostname){var exceptionIndex,hostname=hostname.split("."),publicSuffixIndex=lookupInTrie(hostname,this.rules,hostname.length-1);return null===publicSuffixIndex?null:(null!==(exceptionIndex=lookupInTrie(hostname,this.exceptions,hostname.length-1))?hostname.slice(exceptionIndex+1):hostname.slice(publicSuffixIndex)).join(".")},module.exports=SuffixTrie},{}],10:[function(require,module,exports){var extractTldFromHost=require("./from-host.js");module.exports=function(rules,hostname){return!!rules.hasTld(hostname)||null!==(hostname=extractTldFromHost(hostname))&&rules.hasTld(hostname)}},{"./from-host.js":4}],11:[function(require,module,exports){!function(global){!function(){var possibleNames=require("possible-typed-array-names"),g="undefined"==typeof globalThis?global:globalThis;module.exports=function(){for(var out=[],i=0;i<possibleNames.length;i++)"function"==typeof g[possibleNames[i]]&&(out[out.length]=possibleNames[i]);return out}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"possible-typed-array-names":61}],12:[function(require,module,exports){},{}],13:[function(require,module,exports){var bind=require("function-bind"),$apply=require("./functionApply"),$call=require("./functionCall"),require=require("./reflectApply");module.exports=require||bind.call($call,$apply)},{"./functionApply":15,"./functionCall":16,"./reflectApply":18,"function-bind":34}],14:[function(require,module,exports){var bind=require("function-bind"),$apply=require("./functionApply"),actualApply=require("./actualApply");module.exports=function(){return actualApply(bind,$apply,arguments)}},{"./actualApply":13,"./functionApply":15,"function-bind":34}],15:[function(require,module,exports){module.exports=Function.prototype.apply},{}],16:[function(require,module,exports){module.exports=Function.prototype.call},{}],17:[function(require,module,exports){var bind=require("function-bind"),$TypeError=require("es-errors/type"),$call=require("./functionCall"),$actualApply=require("./actualApply");module.exports=function(args){if(args.length<1||"function"!=typeof args[0])throw new $TypeError("a function is required");return $actualApply(bind,$call,args)}},{"./actualApply":13,"./functionCall":16,"es-errors/type":29,"function-bind":34}],18:[function(require,module,exports){module.exports="undefined"!=typeof Reflect&&Reflect&&Reflect.apply},{}],19:[function(require,module,exports){var setFunctionLength=require("set-function-length"),$defineProperty=require("es-define-property"),callBindBasic=require("call-bind-apply-helpers"),require=require("call-bind-apply-helpers/applyBind");module.exports=function(originalFunction){var func=callBindBasic(arguments),originalFunction=originalFunction.length-(arguments.length-1);return setFunctionLength(func,1+(0<originalFunction?originalFunction:0),!0)},$defineProperty?$defineProperty(module.exports,"apply",{value:require}):module.exports.apply=require},{"call-bind-apply-helpers":17,"call-bind-apply-helpers/applyBind":14,"es-define-property":23,"set-function-length":69}],20:[function(require,module,exports){var GetIntrinsic=require("get-intrinsic"),callBindBasic=require("call-bind-apply-helpers"),$indexOf=callBindBasic([GetIntrinsic("%String.prototype.indexOf%")]);module.exports=function(name,allowMissing){allowMissing=GetIntrinsic(name,!!allowMissing);return"function"==typeof allowMissing&&-1<$indexOf(name,".prototype.")?callBindBasic([allowMissing]):allowMissing}},{"call-bind-apply-helpers":17,"get-intrinsic":35}],21:[function(require,module,exports){var $defineProperty=require("es-define-property"),$SyntaxError=require("es-errors/syntax"),$TypeError=require("es-errors/type"),gopd=require("gopd");module.exports=function(obj,property,value){if(!obj||"object"!=typeof obj&&"function"!=typeof obj)throw new $TypeError("`obj` must be an object or a function`");if("string"!=typeof property&&"symbol"!=typeof property)throw new $TypeError("`property` must be a string or a symbol`");if(3<arguments.length&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new $TypeError("`nonEnumerable`, if provided, must be a boolean or null");if(4<arguments.length&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new $TypeError("`nonWritable`, if provided, must be a boolean or null");if(5<arguments.length&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new $TypeError("`nonConfigurable`, if provided, must be a boolean or null");if(6<arguments.length&&"boolean"!=typeof arguments[6])throw new $TypeError("`loose`, if provided, must be a boolean");var nonEnumerable=3<arguments.length?arguments[3]:null,nonWritable=4<arguments.length?arguments[4]:null,nonConfigurable=5<arguments.length?arguments[5]:null,loose=6<arguments.length&&arguments[6],desc=!!gopd&&gopd(obj,property);if($defineProperty)$defineProperty(obj,property,{configurable:null===nonConfigurable&&desc?desc.configurable:!nonConfigurable,enumerable:null===nonEnumerable&&desc?desc.enumerable:!nonEnumerable,value:value,writable:null===nonWritable&&desc?desc.writable:!nonWritable});else{if(!loose&&(nonEnumerable||nonWritable||nonConfigurable))throw new $SyntaxError("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");obj[property]=value}}},{"es-define-property":23,"es-errors/syntax":28,"es-errors/type":29,gopd:40}],22:[function(require,module,exports){var callBind=require("call-bind-apply-helpers"),require=require("gopd");try{hasProtoAccessor=[].__proto__===Array.prototype}catch(e){if(!(e&&"object"==typeof e&&"code"in e&&"ERR_PROTO_ACCESS"===e.code))throw e}var hasProtoAccessor=!!hasProtoAccessor&&require&&require(Object.prototype,"__proto__"),$Object=Object,$getPrototypeOf=$Object.getPrototypeOf;module.exports=hasProtoAccessor&&"function"==typeof hasProtoAccessor.get?callBind([hasProtoAccessor.get]):"function"==typeof $getPrototypeOf&&function(value){return $getPrototypeOf(null==value?value:$Object(value))}},{"call-bind-apply-helpers":17,gopd:40}],23:[function(require,module,exports){var $defineProperty=Object.defineProperty||!1;if($defineProperty)try{$defineProperty({},"a",{value:1})}catch(e){$defineProperty=!1}module.exports=$defineProperty},{}],24:[function(require,module,exports){module.exports=EvalError},{}],25:[function(require,module,exports){module.exports=Error},{}],26:[function(require,module,exports){module.exports=RangeError},{}],27:[function(require,module,exports){module.exports=ReferenceError},{}],28:[function(require,module,exports){module.exports=SyntaxError},{}],29:[function(require,module,exports){module.exports=TypeError},{}],30:[function(require,module,exports){module.exports=URIError},{}],31:[function(require,module,exports){module.exports=Object},{}],32:[function(require,module,exports){var isCallable=require("is-callable"),toStr=Object.prototype.toString,hasOwnProperty=Object.prototype.hasOwnProperty;module.exports=function(list,iterator,thisArg){if(!isCallable(iterator))throw new TypeError("iterator must be a function");var receiver;3<=arguments.length&&(receiver=thisArg),thisArg=list,("[object Array]"===toStr.call(thisArg)?(array,iterator,receiver)=>{for(var i=0,len=array.length;i<len;i++)hasOwnProperty.call(array,i)&&(null==receiver?iterator(array[i],i,array):iterator.call(receiver,array[i],i,array))}:"string"==typeof list?(string,iterator,receiver)=>{for(var i=0,len=string.length;i<len;i++)null==receiver?iterator(string.charAt(i),i,string):iterator.call(receiver,string.charAt(i),i,string)}:(object,iterator,receiver)=>{for(var k in object)hasOwnProperty.call(object,k)&&(null==receiver?iterator(object[k],k,object):iterator.call(receiver,object[k],k,object))})(list,iterator,receiver)}},{"is-callable":48}],33:[function(require,module,exports){function concatty(a,b){for(var arr=[],i=0;i<a.length;i+=1)arr[i]=a[i];for(var j=0;j<b.length;j+=1)arr[j+a.length]=b[j];return arr}var toStr=Object.prototype.toString,max=Math.max;module.exports=function(that){var target=this;if("function"!=typeof target||"[object Function]"!==toStr.apply(target))throw new TypeError("Function.prototype.bind called on incompatible "+target);for(var bound,Empty,args=((arrLike,offset)=>{for(var arr=[],i=offset||0,j=0;i<arrLike.length;i+=1,j+=1)arr[j]=arrLike[i];return arr})(arguments,1),boundLength=max(0,target.length-args.length),boundArgs=[],i=0;i<boundLength;i++)boundArgs[i]="$"+i;return bound=Function("binder","return function ("+((arr,joiner)=>{for(var str="",i=0;i<arr.length;i+=1)str+=arr[i],i+1<arr.length&&(str+=joiner);return str})(boundArgs,",")+"){ return binder.apply(this,arguments); }")(function(){var result;return this instanceof bound?(result=target.apply(this,concatty(args,arguments)),Object(result)===result?result:this):target.apply(that,concatty(args,arguments))}),target.prototype&&((Empty=function(){}).prototype=target.prototype,bound.prototype=new Empty,Empty.prototype=null),bound}},{}],34:[function(require,module,exports){require=require("./implementation");module.exports=Function.prototype.bind||require},{"./implementation":33}],35:[function(require,module,exports){function throwTypeError(){throw new $TypeError}var $Object=require("es-object-atoms"),$Error=require("es-errors"),$EvalError=require("es-errors/eval"),$RangeError=require("es-errors/range"),$ReferenceError=require("es-errors/ref"),$SyntaxError=require("es-errors/syntax"),$TypeError=require("es-errors/type"),$URIError=require("es-errors/uri"),abs=require("math-intrinsics/abs"),floor=require("math-intrinsics/floor"),max=require("math-intrinsics/max"),min=require("math-intrinsics/min"),pow=require("math-intrinsics/pow"),round=require("math-intrinsics/round"),sign=require("math-intrinsics/sign"),$Function=Function,getEvalledConstructor=function(expressionSyntax){try{return $Function('"use strict"; return ('+expressionSyntax+").constructor;")()}catch(e){}},$gOPD=require("gopd"),$defineProperty=require("es-define-property"),ThrowTypeError=$gOPD?function(){try{return throwTypeError}catch(calleeThrows){try{return $gOPD(arguments,"callee").get}catch(gOPDthrows){return throwTypeError}}}():throwTypeError,hasSymbols=require("has-symbols")(),getProto=require("get-proto"),$ObjectGPO=require("get-proto/Object.getPrototypeOf"),$ReflectGPO=require("get-proto/Reflect.getPrototypeOf"),$apply=require("call-bind-apply-helpers/functionApply"),$call=require("call-bind-apply-helpers/functionCall"),needsEval={},TypedArray="undefined"!=typeof Uint8Array&&getProto?getProto(Uint8Array):void 0,INTRINSICS={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?void 0:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer,"%ArrayIteratorPrototype%":hasSymbols&&getProto?getProto([][Symbol.iterator]()):void 0,"%AsyncFromSyncIteratorPrototype%":void 0,"%AsyncFunction%":needsEval,"%AsyncGenerator%":needsEval,"%AsyncGeneratorFunction%":needsEval,"%AsyncIteratorPrototype%":needsEval,"%Atomics%":"undefined"==typeof Atomics?void 0:Atomics,"%BigInt%":"undefined"==typeof BigInt?void 0:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?void 0:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?void 0:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?void 0:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":$Error,"%eval%":eval,"%EvalError%":$EvalError,"%Float16Array%":"undefined"==typeof Float16Array?void 0:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?void 0:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?void 0:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?void 0:FinalizationRegistry,"%Function%":$Function,"%GeneratorFunction%":needsEval,"%Int8Array%":"undefined"==typeof Int8Array?void 0:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?void 0:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?void 0:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":hasSymbols&&getProto?getProto(getProto([][Symbol.iterator]())):void 0,"%JSON%":"object"==typeof JSON?JSON:void 0,"%Map%":"undefined"==typeof Map?void 0:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&hasSymbols&&getProto?getProto((new Map)[Symbol.iterator]()):void 0,"%Math%":Math,"%Number%":Number,"%Object%":$Object,"%Object.getOwnPropertyDescriptor%":$gOPD,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?void 0:Promise,"%Proxy%":"undefined"==typeof Proxy?void 0:Proxy,"%RangeError%":$RangeError,"%ReferenceError%":$ReferenceError,"%Reflect%":"undefined"==typeof Reflect?void 0:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?void 0:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&hasSymbols&&getProto?getProto((new Set)[Symbol.iterator]()):void 0,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":hasSymbols&&getProto?getProto(""[Symbol.iterator]()):void 0,"%Symbol%":hasSymbols?Symbol:void 0,"%SyntaxError%":$SyntaxError,"%ThrowTypeError%":ThrowTypeError,"%TypedArray%":TypedArray,"%TypeError%":$TypeError,"%Uint8Array%":"undefined"==typeof Uint8Array?void 0:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?void 0:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?void 0:Uint32Array,"%URIError%":$URIError,"%WeakMap%":"undefined"==typeof WeakMap?void 0:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?void 0:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?void 0:WeakSet,"%Function.prototype.call%":$call,"%Function.prototype.apply%":$apply,"%Object.defineProperty%":$defineProperty,"%Object.getPrototypeOf%":$ObjectGPO,"%Math.abs%":abs,"%Math.floor%":floor,"%Math.max%":max,"%Math.min%":min,"%Math.pow%":pow,"%Math.round%":round,"%Math.sign%":sign,"%Reflect.getPrototypeOf%":$ReflectGPO};if(getProto)try{null.error}catch(e){$Error=getProto(getProto(e));INTRINSICS["%Error.prototype%"]=$Error}function doEval(name){var value,fn;return"%AsyncFunction%"===name?value=getEvalledConstructor("async function () {}"):"%GeneratorFunction%"===name?value=getEvalledConstructor("function* () {}"):"%AsyncGeneratorFunction%"===name?value=getEvalledConstructor("async function* () {}"):"%AsyncGenerator%"===name?(fn=doEval("%AsyncGeneratorFunction%"))&&(value=fn.prototype):"%AsyncIteratorPrototype%"===name&&(fn=doEval("%AsyncGenerator%"))&&getProto&&(value=getProto(fn.prototype)),INTRINSICS[name]=value}var LEGACY_ALIASES={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},$EvalError=require("function-bind"),hasOwn=require("hasown"),$concat=$EvalError.call($call,Array.prototype.concat),$spliceApply=$EvalError.call($apply,Array.prototype.splice),$replace=$EvalError.call($call,String.prototype.replace),$strSlice=$EvalError.call($call,String.prototype.slice),$exec=$EvalError.call($call,RegExp.prototype.exec),rePropName=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,reEscapeChar=/\\(\\)?/g;module.exports=function(name,allowMissing){if("string"!=typeof name||0===name.length)throw new $TypeError("intrinsic name must be a non-empty string");if(1<arguments.length&&"boolean"!=typeof allowMissing)throw new $TypeError('"allowMissing" argument must be a boolean');if(null===$exec(/^%?[^%]*%?$/,name))throw new $SyntaxError("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var parts=(string=>{var first=$strSlice(string,0,1),last=$strSlice(string,-1);if("%"===first&&"%"!==last)throw new $SyntaxError("invalid intrinsic syntax, expected closing `%`");if("%"===last&&"%"!==first)throw new $SyntaxError("invalid intrinsic syntax, expected opening `%`");var result=[];return $replace(string,rePropName,function(match,number,quote,subString){result[result.length]=quote?$replace(subString,reEscapeChar,"$1"):number||match}),result})(name),intrinsicBaseName=0<parts.length?parts[0]:"",intrinsic=((name,allowMissing)=>{var alias,intrinsicName=name;if(hasOwn(LEGACY_ALIASES,intrinsicName)&&(intrinsicName="%"+(alias=LEGACY_ALIASES[intrinsicName])[0]+"%"),hasOwn(INTRINSICS,intrinsicName)){var value=INTRINSICS[intrinsicName];if(void 0!==(value=value===needsEval?doEval(intrinsicName):value)||allowMissing)return{alias:alias,name:intrinsicName,value:value};throw new $TypeError("intrinsic "+name+" exists, but is not available. Please file an issue!")}throw new $SyntaxError("intrinsic "+name+" does not exist!")})("%"+intrinsicBaseName+"%",allowMissing),value=(intrinsic.name,intrinsic.value),skipFurtherCaching=!1,intrinsic=intrinsic.alias;intrinsic&&(intrinsicBaseName=intrinsic[0],$spliceApply(parts,$concat([0,1],intrinsic)));for(var i=1,isOwn=!0;i<parts.length;i+=1){var part=parts[i],first=$strSlice(part,0,1),last=$strSlice(part,-1);if(('"'===first||"'"===first||"`"===first||'"'===last||"'"===last||"`"===last)&&first!==last)throw new $SyntaxError("property names with quotes must have matching quotes");if("constructor"!==part&&isOwn||(skipFurtherCaching=!0),hasOwn(INTRINSICS,first="%"+(intrinsicBaseName+="."+part)+"%"))value=INTRINSICS[first];else if(null!=value){if(!(part in value)){if(allowMissing)return;throw new $TypeError("base intrinsic for "+name+" exists, but the property is not available.")}value=$gOPD&&i+1>=parts.length?(isOwn=!!(last=$gOPD(value,part)))&&"get"in last&&!("originalValue"in last.get)?last.get:value[part]:(isOwn=hasOwn(value,part),value[part]),isOwn&&!skipFurtherCaching&&(INTRINSICS[first]=value)}}return value}},{"call-bind-apply-helpers/functionApply":15,"call-bind-apply-helpers/functionCall":16,"es-define-property":23,"es-errors":25,"es-errors/eval":24,"es-errors/range":26,"es-errors/ref":27,"es-errors/syntax":28,"es-errors/type":29,"es-errors/uri":30,"es-object-atoms":31,"function-bind":34,"get-proto":38,"get-proto/Object.getPrototypeOf":36,"get-proto/Reflect.getPrototypeOf":37,gopd:40,"has-symbols":42,hasown:45,"math-intrinsics/abs":52,"math-intrinsics/floor":53,"math-intrinsics/max":55,"math-intrinsics/min":56,"math-intrinsics/pow":57,"math-intrinsics/round":58,"math-intrinsics/sign":59}],36:[function(require,module,exports){require=require("es-object-atoms");module.exports=require.getPrototypeOf||null},{"es-object-atoms":31}],37:[function(require,module,exports){module.exports="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null},{}],38:[function(require,module,exports){var reflectGetProto=require("./Reflect.getPrototypeOf"),originalGetProto=require("./Object.getPrototypeOf"),getDunderProto=require("dunder-proto/get");module.exports=reflectGetProto?function(O){return reflectGetProto(O)}:originalGetProto?function(O){if(!O||"object"!=typeof O&&"function"!=typeof O)throw new TypeError("getProto: not an object");return originalGetProto(O)}:getDunderProto?function(O){return getDunderProto(O)}:null},{"./Object.getPrototypeOf":36,"./Reflect.getPrototypeOf":37,"dunder-proto/get":22}],39:[function(require,module,exports){module.exports=Object.getOwnPropertyDescriptor},{}],40:[function(require,module,exports){require=require("./gOPD");if(require)try{require([],"length")}catch(e){require=null}module.exports=require},{"./gOPD":39}],41:[function(require,module,exports){function hasPropertyDescriptors(){return!!$defineProperty}var $defineProperty=require("es-define-property");hasPropertyDescriptors.hasArrayLengthDefineBug=function(){if(!$defineProperty)return null;try{return 1!==$defineProperty([],"length",{value:1}).length}catch(e){return!0}},module.exports=hasPropertyDescriptors},{"es-define-property":23}],42:[function(require,module,exports){var origSymbol="undefined"!=typeof Symbol&&Symbol,hasSymbolSham=require("./shams");module.exports=function(){return"function"==typeof origSymbol&&"function"==typeof Symbol&&"symbol"==typeof origSymbol("foo")&&"symbol"==typeof Symbol("bar")&&hasSymbolSham()}},{"./shams":43}],43:[function(require,module,exports){module.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"!=typeof Symbol.iterator){var obj={},sym=Symbol("test"),symObj=Object(sym);if("string"==typeof sym)return!1;if("[object Symbol]"!==Object.prototype.toString.call(sym))return!1;if("[object Symbol]"!==Object.prototype.toString.call(symObj))return!1;for(var _ in obj[sym]=42,obj)return!1;if("function"==typeof Object.keys&&0!==Object.keys(obj).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(obj).length)return!1;symObj=Object.getOwnPropertySymbols(obj);if(1!==symObj.length||symObj[0]!==sym)return!1;if(!Object.prototype.propertyIsEnumerable.call(obj,sym))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){symObj=Object.getOwnPropertyDescriptor(obj,sym);if(42!==symObj.value||!0!==symObj.enumerable)return!1}}return!0}},{}],44:[function(require,module,exports){var hasSymbols=require("has-symbols/shams");module.exports=function(){return hasSymbols()&&!!Symbol.toStringTag}},{"has-symbols/shams":43}],45:[function(require,module,exports){var call=Function.prototype.call,$hasOwn=Object.prototype.hasOwnProperty,require=require("function-bind");module.exports=require.call(call,$hasOwn)},{"function-bind":34}],46:[function(require,module,exports){"function"==typeof Object.create?module.exports=function(ctor,superCtor){superCtor&&(ctor.super_=superCtor,ctor.prototype=Object.create(superCtor.prototype,{constructor:{value:ctor,enumerable:!1,writable:!0,configurable:!0}}))}:module.exports=function(ctor,superCtor){var TempCtor;superCtor&&(ctor.super_=superCtor,(TempCtor=function(){}).prototype=superCtor.prototype,ctor.prototype=new TempCtor,ctor.prototype.constructor=ctor)}},{}],47:[function(require,module,exports){function isStandardArguments(value){return!(hasToStringTag&&value&&"object"==typeof value&&Symbol.toStringTag in value)&&"[object Arguments]"===$toString(value)}function isLegacyArguments(value){return!!isStandardArguments(value)||null!==value&&"object"==typeof value&&"length"in value&&"number"==typeof value.length&&0<=value.length&&"[object Array]"!==$toString(value)&&"callee"in value&&"[object Function]"===$toString(value.callee)}var hasToStringTag=require("has-tostringtag/shams")(),$toString=require("call-bound")("Object.prototype.toString"),require=function(){return isStandardArguments(arguments)}();isStandardArguments.isLegacyArguments=isLegacyArguments,module.exports=require?isStandardArguments:isLegacyArguments},{"call-bound":20,"has-tostringtag/shams":44}],48:[function(require,module,exports){var badArrayLike,isCallableMarker,fnToStr=Function.prototype.toString,reflectApply="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof reflectApply&&"function"==typeof Object.defineProperty)try{badArrayLike=Object.defineProperty({},"length",{get:function(){throw isCallableMarker}}),isCallableMarker={},reflectApply(function(){throw 42},null,badArrayLike)}catch(_){_!==isCallableMarker&&(reflectApply=null)}else reflectApply=null;function isES6ClassFn(value){try{var fnStr=fnToStr.call(value);return constructorRegex.test(fnStr)}catch(e){return}}function tryFunctionObject(value){try{return isES6ClassFn(value)?!1:(fnToStr.call(value),!0)}catch(e){return!1}}var constructorRegex=/^\s*class\b/,toStr=Object.prototype.toString,hasToStringTag="function"==typeof Symbol&&!!Symbol.toStringTag,isIE68=!(0 in[,]),isDDA=function(){return!1};"object"==typeof document&&toStr.call(document.all)===toStr.call(document.all)&&(isDDA=function(value){if(!(!isIE68&&value||void 0!==value&&"object"!=typeof value))try{var str=toStr.call(value);return("[object HTMLAllCollection]"===str||"[object HTML document.all class]"===str||"[object HTMLCollection]"===str||"[object Object]"===str)&&null==value("")}catch(e){}return!1}),module.exports=reflectApply?function(value){if(isDDA(value))return!0;if(!value)return!1;if("function"!=typeof value&&"object"!=typeof value)return!1;try{reflectApply(value,null,badArrayLike)}catch(e){if(e!==isCallableMarker)return!1}return!isES6ClassFn(value)&&tryFunctionObject(value)}:function(value){var strClass;return!!isDDA(value)||!!value&&!("function"!=typeof value&&"object"!=typeof value||!hasToStringTag&&(isES6ClassFn(value)||"[object Function]"!==(strClass=toStr.call(value))&&"[object GeneratorFunction]"!==strClass&&!/^\[object HTML/.test(strClass)))&&tryFunctionObject(value)}},{}],49:[function(require,module,exports){var GeneratorFunction,callBound=require("call-bound"),isFnRegex=require("safe-regex-test")(/^\s*(?:function)?\*/),hasToStringTag=require("has-tostringtag/shams")(),getProto=require("get-proto"),toStr=callBound("Object.prototype.toString"),fnToStr=callBound("Function.prototype.toString");module.exports=function(fn){var generatorFunc;return!("function"!=typeof fn||!isFnRegex(fnToStr(fn))&&(hasToStringTag?!getProto||(void 0===GeneratorFunction&&(generatorFunc=(()=>{if(!hasToStringTag)return!1;try{return Function("return function*() {}")()}catch(e){}})(),GeneratorFunction=!!generatorFunc&&getProto(generatorFunc)),getProto(fn)!==GeneratorFunction):"[object GeneratorFunction]"!==toStr(fn)))}},{"call-bound":20,"get-proto":38,"has-tostringtag/shams":44,"safe-regex-test":68}],50:[function(require,module,exports){var $exec,isRegexMarker,badStringifier,$toString,callBound=require("call-bound"),hasToStringTag=require("has-tostringtag/shams")(),hasOwn=require("hasown"),gOPD=require("gopd");hasToStringTag=hasToStringTag?($exec=callBound("RegExp.prototype.exec"),isRegexMarker={},badStringifier={toString:require=function(){throw isRegexMarker},valueOf:require},"symbol"==typeof Symbol.toPrimitive&&(badStringifier[Symbol.toPrimitive]=require),function(value){if(!value||"object"!=typeof value)return!1;var descriptor=gOPD(value,"lastIndex");if(!(descriptor&&hasOwn(descriptor,"value")))return!1;try{$exec(value,badStringifier)}catch(e){return e===isRegexMarker}}):($toString=callBound("Object.prototype.toString"),function(value){return!(!value||"object"!=typeof value&&"function"!=typeof value)&&"[object RegExp]"===$toString(value)}),module.exports=hasToStringTag},{"call-bound":20,gopd:40,"has-tostringtag/shams":44,hasown:45}],51:[function(require,module,exports){var whichTypedArray=require("which-typed-array");module.exports=function(value){return!!whichTypedArray(value)}},{"which-typed-array":79}],52:[function(require,module,exports){module.exports=Math.abs},{}],53:[function(require,module,exports){module.exports=Math.floor},{}],54:[function(require,module,exports){module.exports=Number.isNaN||function(a){return a!=a}},{}],55:[function(require,module,exports){module.exports=Math.max},{}],56:[function(require,module,exports){module.exports=Math.min},{}],57:[function(require,module,exports){module.exports=Math.pow},{}],58:[function(require,module,exports){module.exports=Math.round},{}],59:[function(require,module,exports){var $isNaN=require("./isNaN");module.exports=function(number){return $isNaN(number)||0===number?number:number<0?-1:1}},{"./isNaN":54}],60:[function(require,module,exports){!function(global){!function(){var hasMap="function"==typeof Map&&Map.prototype,mapSizeDescriptor=Object.getOwnPropertyDescriptor&&hasMap?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,mapSize=hasMap&&mapSizeDescriptor&&"function"==typeof mapSizeDescriptor.get?mapSizeDescriptor.get:null,mapForEach=hasMap&&Map.prototype.forEach,mapSizeDescriptor="function"==typeof Set&&Set.prototype,hasMap=Object.getOwnPropertyDescriptor&&mapSizeDescriptor?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,setSize=mapSizeDescriptor&&hasMap&&"function"==typeof hasMap.get?hasMap.get:null,setForEach=mapSizeDescriptor&&Set.prototype.forEach,weakMapHas="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,weakSetHas="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,weakRefDeref="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,booleanValueOf=Boolean.prototype.valueOf,objectToString=Object.prototype.toString,functionToString=Function.prototype.toString,$match=String.prototype.match,$slice=String.prototype.slice,$replace=String.prototype.replace,$toUpperCase=String.prototype.toUpperCase,$toLowerCase=String.prototype.toLowerCase,$test=RegExp.prototype.test,$concat=Array.prototype.concat,$join=Array.prototype.join,$arrSlice=Array.prototype.slice,$floor=Math.floor,bigIntValueOf="function"==typeof BigInt?BigInt.prototype.valueOf:null,gOPS=Object.getOwnPropertySymbols,symToString="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,hasShammedSymbols="function"==typeof Symbol&&"object"==typeof Symbol.iterator,toStringTag="function"==typeof Symbol&&Symbol.toStringTag&&(Symbol.toStringTag,1)?Symbol.toStringTag:null,isEnumerable=Object.prototype.propertyIsEnumerable,gPO=("function"==typeof Reflect?Reflect:Object).getPrototypeOf||([].__proto__===Array.prototype?function(O){return O.__proto__}:null);function addNumericSeparator(num,str){if(num===1/0||num===-1/0||num!=num||num&&-1e3<num&&num<1e3||$test.call(/e/,str))return str;var sepRegex=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof num){var int=num<0?-$floor(-num):$floor(num);if(int!==num)return num=String(int),int=$slice.call(str,num.length+1),$replace.call(num,sepRegex,"$&_")+"."+$replace.call($replace.call(int,/([0-9]{3})/g,"$&_"),/_$/,"")}return $replace.call(str,sepRegex,"$&_")}var utilInspect=require("./util.inspect"),hasMap=utilInspect.custom,inspectSymbol=isSymbol(hasMap)?hasMap:null,quotes={__proto__:null,double:'"',single:"'"},quoteREs={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};function wrapQuotes(s,defaultStyle,opts){opts=opts.quoteStyle||defaultStyle,defaultStyle=quotes[opts];return defaultStyle+s+defaultStyle}function canTrustToString(obj){return!toStringTag||!("object"==typeof obj&&(toStringTag in obj||void 0!==obj[toStringTag]))}function isArray(obj){return"[object Array]"===toStr(obj)&&canTrustToString(obj)}function isRegExp(obj){return"[object RegExp]"===toStr(obj)&&canTrustToString(obj)}function isSymbol(obj){if(hasShammedSymbols)return obj&&"object"==typeof obj&&obj instanceof Symbol;if("symbol"==typeof obj)return 1;if(obj&&"object"==typeof obj&&symToString)try{return symToString.call(obj),1}catch(e){}}module.exports=function inspect_(obj,options,depth,seen){var opts=options||{};if(has(opts,"quoteStyle")&&!has(quotes,opts.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(has(opts,"maxStringLength")&&("number"==typeof opts.maxStringLength?opts.maxStringLength<0&&opts.maxStringLength!==1/0:null!==opts.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');options=!has(opts,"customInspect")||opts.customInspect;if("boolean"!=typeof options&&"symbol"!==options)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(has(opts,"indent")&&null!==opts.indent&&"\t"!==opts.indent&&!(parseInt(opts.indent,10)===opts.indent&&0<opts.indent))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(has(opts,"numericSeparator")&&"boolean"!=typeof opts.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var numericSeparator=opts.numericSeparator;if(void 0===obj)return"undefined";if(null===obj)return"null";if("boolean"==typeof obj)return obj?"true":"false";if("string"==typeof obj)return function inspectString(str,opts){if(str.length>opts.maxStringLength)return remaining=str.length-opts.maxStringLength,remaining="... "+remaining+" more character"+(1<remaining?"s":""),inspectString($slice.call(str,0,opts.maxStringLength),opts)+remaining;var remaining=quoteREs[opts.quoteStyle||"single"];remaining.lastIndex=0;str=$replace.call($replace.call(str,remaining,"\\$1"),/[\x00-\x1f]/g,lowbyte);return wrapQuotes(str,"single",opts)}(obj,opts);if("number"==typeof obj)return 0===obj?0<1/0/obj?"0":"-0":(str=String(obj),numericSeparator?addNumericSeparator(obj,str):str);if("bigint"==typeof obj)return str=String(obj)+"n",numericSeparator?addNumericSeparator(obj,str):str;numericSeparator=void 0===opts.depth?5:opts.depth;if(numericSeparator<=(depth=void 0===depth?0:depth)&&0<numericSeparator&&"object"==typeof obj)return isArray(obj)?"[Array]":"[Object]";var mapParts,setParts,name,stringTag,str=((opts,depth)=>{var baseIndent;if("\t"===opts.indent)baseIndent="\t";else{if(!("number"==typeof opts.indent&&0<opts.indent))return null;baseIndent=$join.call(Array(opts.indent+1)," ")}return{base:baseIndent,prev:$join.call(Array(depth+1),baseIndent)}})(opts,depth);if(void 0===seen)seen=[];else if(0<=indexOf(seen,obj))return"[Circular]";function inspect(value,from,noIndent){return from&&(seen=$arrSlice.call(seen)).push(from),noIndent?(from={depth:opts.depth},has(opts,"quoteStyle")&&(from.quoteStyle=opts.quoteStyle),inspect_(value,from,depth+1,seen)):inspect_(value,opts,depth+1,seen)}if("function"==typeof obj&&!isRegExp(obj))return"[Function"+((name=(f=>f.name||((f=$match.call(functionToString.call(f),/^function\s*([\w$]+)/))?f[1]:null))(obj))?": "+name:" (anonymous)")+"]"+(0<(name=arrObjKeys(obj,inspect)).length?" { "+$join.call(name,", ")+" }":"");if(isSymbol(obj))return name=hasShammedSymbols?$replace.call(String(obj),/^(Symbol\(.*\))_[^)]*$/,"$1"):symToString.call(obj),"object"!=typeof obj||hasShammedSymbols?name:markBoxed(name);if((x=>x&&"object"==typeof x&&("undefined"!=typeof HTMLElement&&x instanceof HTMLElement||"string"==typeof x.nodeName&&"function"==typeof x.getAttribute))(obj)){for(var s="<"+$toLowerCase.call(String(obj.nodeName)),attrs=obj.attributes||[],i=0;i<attrs.length;i++)s+=" "+attrs[i].name+"="+wrapQuotes((s=>$replace.call(String(s),/"/g,"""))(attrs[i].value),"double",opts);return s+=">",obj.childNodes&&obj.childNodes.length&&(s+="..."),s+="</"+$toLowerCase.call(String(obj.nodeName))+">"}if(isArray(obj))return 0===obj.length?"[]":(name=arrObjKeys(obj,inspect),str&&!(xs=>{for(var i=0;i<xs.length;i++)if(0<=indexOf(xs[i],"\n"))return;return 1})(name)?"["+indentedJoin(name,str)+"]":"[ "+$join.call(name,", ")+" ]");if((obj=>"[object Error]"===toStr(obj)&&canTrustToString(obj))(obj))return name=arrObjKeys(obj,inspect),"cause"in Error.prototype||!("cause"in obj)||isEnumerable.call(obj,"cause")?0===name.length?"["+String(obj)+"]":"{ ["+String(obj)+"] "+$join.call(name,", ")+" }":"{ ["+String(obj)+"] "+$join.call($concat.call("[cause]: "+inspect(obj.cause),name),", ")+" }";if("object"==typeof obj&&options){if(inspectSymbol&&"function"==typeof obj[inspectSymbol]&&utilInspect)return utilInspect(obj,{depth:numericSeparator-depth});if("symbol"!==options&&"function"==typeof obj.inspect)return obj.inspect()}return(x=>{if(mapSize&&x&&"object"==typeof x)try{mapSize.call(x);try{setSize.call(x)}catch(s){return 1}return x instanceof Map}catch(e){}})(obj)?(mapParts=[],mapForEach&&mapForEach.call(obj,function(value,key){mapParts.push(inspect(key,obj,!0)+" => "+inspect(value,obj))}),collectionOf("Map",mapSize.call(obj),mapParts,str)):(x=>{if(setSize&&x&&"object"==typeof x)try{setSize.call(x);try{mapSize.call(x)}catch(m){return 1}return x instanceof Set}catch(e){}})(obj)?(setParts=[],setForEach&&setForEach.call(obj,function(value){setParts.push(inspect(value,obj))}),collectionOf("Set",setSize.call(obj),setParts,str)):(x=>{if(weakMapHas&&x&&"object"==typeof x)try{weakMapHas.call(x,weakMapHas);try{weakSetHas.call(x,weakSetHas)}catch(s){return 1}return x instanceof WeakMap}catch(e){}})(obj)?"WeakMap { ? }":(x=>{if(weakSetHas&&x&&"object"==typeof x)try{weakSetHas.call(x,weakSetHas);try{weakMapHas.call(x,weakMapHas)}catch(s){return 1}return x instanceof WeakSet}catch(e){}})(obj)?"WeakSet { ? }":(x=>{if(weakRefDeref&&x&&"object"==typeof x)try{return weakRefDeref.call(x),1}catch(e){}})(obj)?"WeakRef { ? }":(obj=>"[object Number]"===toStr(obj)&&canTrustToString(obj))(obj)?markBoxed(inspect(Number(obj))):(obj=>{if(obj&&"object"==typeof obj&&bigIntValueOf)try{return bigIntValueOf.call(obj),1}catch(e){}})(obj)?markBoxed(inspect(bigIntValueOf.call(obj))):(obj=>"[object Boolean]"===toStr(obj)&&canTrustToString(obj))(obj)?markBoxed(booleanValueOf.call(obj)):(obj=>"[object String]"===toStr(obj)&&canTrustToString(obj))(obj)?markBoxed(inspect(String(obj))):"undefined"!=typeof window&&obj===window?"{ [object Window] }":"undefined"!=typeof globalThis&&obj===globalThis||void 0!==global&&obj===global?"{ [object globalThis] }":(obj=>"[object Date]"===toStr(obj)&&canTrustToString(obj))(obj)||isRegExp(obj)?String(obj):(name=arrObjKeys(obj,inspect),numericSeparator=gPO?gPO(obj)===Object.prototype:obj instanceof Object||obj.constructor===Object,options=obj instanceof Object?"":"null prototype",stringTag=!numericSeparator&&toStringTag&&Object(obj)===obj&&toStringTag in obj?$slice.call(toStr(obj),8,-1):options?"Object":"",numericSeparator=(!numericSeparator&&"function"==typeof obj.constructor&&obj.constructor.name?obj.constructor.name+" ":"")+(stringTag||options?"["+$join.call($concat.call([],stringTag||[],options||[]),": ")+"] ":""),0===name.length?numericSeparator+"{}":str?numericSeparator+"{"+indentedJoin(name,str)+"}":numericSeparator+"{ "+$join.call(name,", ")+" }")};var hasOwn=Object.prototype.hasOwnProperty||function(key){return key in this};function has(obj,key){return hasOwn.call(obj,key)}function toStr(obj){return objectToString.call(obj)}function indexOf(xs,x){if(xs.indexOf)return xs.indexOf(x);for(var i=0,l=xs.length;i<l;i++)if(xs[i]===x)return i;return-1}function lowbyte(c){var c=c.charCodeAt(0),x={8:"b",9:"t",10:"n",12:"f",13:"r"}[c];return x?"\\"+x:"\\x"+(c<16?"0":"")+$toUpperCase.call(c.toString(16))}function markBoxed(str){return"Object("+str+")"}function collectionOf(type,size,entries,indent){return type+" ("+size+") {"+(indent?indentedJoin(entries,indent):$join.call(entries,", "))+"}"}function indentedJoin(xs,indent){var lineJoiner;return 0===xs.length?"":(lineJoiner="\n"+indent.prev+indent.base)+$join.call(xs,","+lineJoiner)+"\n"+indent.prev}function arrObjKeys(obj,inspect){var isArr=isArray(obj),xs=[];if(isArr){xs.length=obj.length;for(var i=0;i<obj.length;i++)xs[i]=has(obj,i)?inspect(obj[i],obj):""}var key,syms="function"==typeof gOPS?gOPS(obj):[];if(hasShammedSymbols)for(var symMap={},k=0;k<syms.length;k++)symMap["$"+syms[k]]=syms[k];for(key in obj)!has(obj,key)||isArr&&String(Number(key))===key&&key<obj.length||hasShammedSymbols&&symMap["$"+key]instanceof Symbol||($test.call(/[^\w$]/,key)?xs.push(inspect(key,obj)+": "+inspect(obj[key],obj)):xs.push(key+": "+inspect(obj[key],obj)));if("function"==typeof gOPS)for(var j=0;j<syms.length;j++)isEnumerable.call(obj,syms[j])&&xs.push("["+inspect(syms[j])+"]: "+inspect(obj[syms[j]],obj));return xs}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./util.inspect":12}],61:[function(require,module,exports){module.exports=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]},{}],62:[function(require,module,exports){var cachedSetTimeout,cachedClearTimeout,module=module.exports={};function defaultSetTimout(){throw new Error("setTimeout has not been defined")}function defaultClearTimeout(){throw new Error("clearTimeout has not been defined")}try{cachedSetTimeout="function"==typeof setTimeout?setTimeout:defaultSetTimout}catch(e){cachedSetTimeout=defaultSetTimout}try{cachedClearTimeout="function"==typeof clearTimeout?clearTimeout:defaultClearTimeout}catch(e){cachedClearTimeout=defaultClearTimeout}function runTimeout(fun){if(cachedSetTimeout===setTimeout)return setTimeout(fun,0);if((cachedSetTimeout===defaultSetTimout||!cachedSetTimeout)&&setTimeout)return(cachedSetTimeout=setTimeout)(fun,0);try{return cachedSetTimeout(fun,0)}catch(e){try{return cachedSetTimeout.call(null,fun,0)}catch(e){return cachedSetTimeout.call(this,fun,0)}}}var currentQueue,que