File: /var/www/quadcode.com/isolate-0x260af2b0-976437-v8.log
v8-version,9,2,230,21,-node.19,0
shared-library,/home/ips/.nvm/versions/node/v16.6.1/bin/node,0x400000,0x4648000,0
shared-library,/usr/lib/x86_64-linux-gnu/libc-2.31.so,0x7f4debcc1000,0x7f4debe5b000,0
shared-library,/usr/lib/x86_64-linux-gnu/libpthread-2.31.so,0x7f4debeb3000,0x7f4debeca000,0
shared-library,/usr/lib/x86_64-linux-gnu/libgcc_s.so.1,0x7f4debed6000,0x7f4debeeb000,0
shared-library,/usr/lib/x86_64-linux-gnu/libm-2.31.so,0x7f4debef1000,0x7f4debfa5000,0
shared-library,/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.28,0x7f4dec040000,0x7f4dec1c7000,0
shared-library,/usr/lib/x86_64-linux-gnu/libdl-2.31.so,0x7f4dec222000,0x7f4dec225000,0
shared-library,/usr/lib/x86_64-linux-gnu/ld-2.31.so,0x7f4dec232000,0x7f4dec256000,0
shared-library,[vdso],0x7ffc35ba2000,0x7ffc35ba3000,0
profiler,begin,1000
new,CodeRange,0x7f4ddc000000,0
new,MemoryChunk,0x24054f300000,262144
new,MemoryChunk,0x24083d840000,262144
new,MemoryChunk,0xfa1d4440000,262144
new,MemoryChunk,0x3c3c84dc0000,262144
new,MemoryChunk,0x13f217780000,262144
heap-capacity,1031072
heap-available,2198652736
new,MemoryChunk,0x334c17f00000,262144
new,MemoryChunk,0x9548a8c0000,262144
new,MemoryChunk,0x38b4b3b00000,262144
new,MemoryChunk,0x1eac91c00000,262144
new,MemoryChunk,0x3787ca780000,262144
new,MemoryChunk,0xe5ca5cc0000,262144
new,MemoryChunk,0x1f3e0c480000,262144
new,MemoryChunk,0x7f4ddc000000,262144
new,MemoryChunk,0x1be436100000,262144
code-creation,Builtin,2,5870,0x15573c0,1596,RecordWrite
code-creation,Builtin,2,5889,0x1557a00,416,EphemeronKeyBarrier
code-creation,Builtin,2,5893,0x1557bc0,60,AdaptorWithBuiltinExitFrame
code-creation,Builtin,2,5896,0x1557c00,332,CallFunction_ReceiverIsNullOrUndefined
code-creation,Builtin,2,5900,0x1557d60,384,CallFunction_ReceiverIsNotNullOrUndefined
code-creation,Builtin,2,5904,0x1557f00,412,CallFunction_ReceiverIsAny
code-creation,Builtin,2,5908,0x15580a0,104,CallBoundFunction
code-creation,Builtin,2,5911,0x1558120,120,Call_ReceiverIsNullOrUndefined
code-creation,Builtin,2,5914,0x15581a0,120,Call_ReceiverIsNotNullOrUndefined
code-creation,Builtin,2,5918,0x1558220,120,Call_ReceiverIsAny
code-creation,Builtin,2,5921,0x15582a0,1036,Call_ReceiverIsNullOrUndefined_Baseline_Compact
code-creation,Builtin,2,5925,0x15586c0,1032,Call_ReceiverIsNullOrUndefined_Baseline
code-creation,Builtin,2,5929,0x1558ae0,1124,Call_ReceiverIsNotNullOrUndefined_Baseline_Compact
code-creation,Builtin,2,5933,0x1558f60,1120,Call_ReceiverIsNotNullOrUndefined_Baseline
code-creation,Builtin,2,5937,0x15593e0,1124,Call_ReceiverIsAny_Baseline_Compact
code-creation,Builtin,2,5941,0x1559860,1120,Call_ReceiverIsAny_Baseline
code-creation,Builtin,2,5944,0x1559ce0,992,Call_ReceiverIsNullOrUndefined_WithFeedback
code-creation,Builtin,2,5948,0x155a0e0,992,Call_ReceiverIsNotNullOrUndefined_WithFeedback
code-creation,Builtin,2,5952,0x155a4e0,992,Call_ReceiverIsAny_WithFeedback
code-creation,Builtin,2,5956,0x155a8e0,736,CallProxy
code-creation,Builtin,2,5958,0x155abe0,120,CallVarargs
code-creation,Builtin,2,5961,0x155ac60,956,CallWithSpread
code-creation,Builtin,2,5969,0x155b020,2012,CallWithSpread_Baseline
code-creation,Builtin,2,5972,0x155b800,1992,CallWithSpread_WithFeedback
code-creation,Builtin,2,5976,0x155bfe0,876,CallWithArrayLike
code-creation,Builtin,2,5979,0x155c360,1872,CallWithArrayLike_WithFeedback
code-creation,Builtin,2,5982,0x155cac0,128,CallForwardVarargs
code-creation,Builtin,2,5985,0x155cb60,128,CallFunctionForwardVarargs
code-creation,Builtin,2,5988,0x155cc00,132,CallFunctionTemplate_CheckAccess
code-creation,Builtin,2,5992,0x155cca0,228,CallFunctionTemplate_CheckCompatibleReceiver
code-creation,Builtin,2,5996,0x155cda0,316,CallFunctionTemplate_CheckAccessAndCompatibleReceiver
code-creation,Builtin,2,6000,0x155cee0,28,ConstructFunction
code-creation,Builtin,2,6003,0x155cf00,104,ConstructBoundFunction
code-creation,Builtin,2,6006,0x155cf80,28,ConstructedNonConstructable
code-creation,Builtin,2,6010,0x155cfa0,100,Construct
code-creation,Builtin,2,6013,0x155d020,120,ConstructVarargs
code-creation,Builtin,2,6016,0x155d0a0,984,ConstructWithSpread
code-creation,Builtin,2,6019,0x155d480,1804,ConstructWithSpread_Baseline
code-creation,Builtin,2,6032,0x155dba0,1820,ConstructWithSpread_WithFeedback
code-creation,Builtin,2,6036,0x155e2c0,936,ConstructWithArrayLike
code-creation,Builtin,2,6039,0x155e680,1716,ConstructWithArrayLike_WithFeedback
code-creation,Builtin,2,6043,0x155ed40,164,ConstructForwardVarargs
code-creation,Builtin,2,6046,0x155ee00,164,ConstructFunctionForwardVarargs
code-creation,Builtin,2,6050,0x155eec0,848,Construct_Baseline
code-creation,Builtin,2,6053,0x155f220,860,Construct_WithFeedback
code-creation,Builtin,2,6056,0x155f580,448,JSConstructStubGeneric
code-creation,Builtin,2,6059,0x155f760,348,JSBuiltinsConstructStub
code-creation,Builtin,2,6062,0x155f8c0,676,FastNewObject
code-creation,Builtin,2,6065,0x155fb80,292,FastNewClosure
code-creation,Builtin,2,6069,0x155fcc0,720,ConstructProxy
code-creation,Builtin,2,6071,0x155ffa0,192,JSEntry
code-creation,Builtin,2,6074,0x1560080,192,JSConstructEntry
code-creation,Builtin,2,6077,0x1560160,192,JSRunMicrotasksEntry
code-creation,Builtin,2,6080,0x1560240,96,JSEntryTrampoline
code-creation,Builtin,2,6083,0x15602c0,96,JSConstructEntryTrampoline
code-creation,Builtin,2,6087,0x1560340,304,ResumeGeneratorTrampoline
code-creation,Builtin,2,6090,0x1560480,1112,StringCodePointAt
code-creation,Builtin,2,6093,0x15608e0,1560,StringFromCodePointAt
code-creation,Builtin,2,6096,0x1560f00,544,StringEqual
code-creation,Builtin,2,6099,0x1561140,276,StringGreaterThan
code-creation,Builtin,2,6103,0x1561260,276,StringGreaterThanOrEqual
code-creation,Builtin,2,6106,0x1561380,276,StringLessThan
code-creation,Builtin,2,6109,0x15614a0,276,StringLessThanOrEqual
code-creation,Builtin,2,6112,0x15615c0,2504,StringSubstring
code-creation,Builtin,2,6116,0x1561fa0,84,OrderedHashTableHealIndex
code-creation,Builtin,2,6119,0x1562000,1200,InterpreterEntryTrampoline
code-creation,Builtin,2,6122,0x15624c0,80,InterpreterPushArgsThenCall
code-creation,Builtin,2,6126,0x1562520,88,InterpreterPushUndefinedAndArgsThenCall
code-creation,Builtin,2,6129,0x1562580,88,InterpreterPushArgsThenCallWithFinalSpread
code-creation,Builtin,2,6133,0x15625e0,80,InterpreterPushArgsThenConstruct
code-creation,Builtin,2,6136,0x1562640,80,InterpreterPushArgsThenConstructArrayFunction
code-creation,Builtin,2,6141,0x15626a0,88,InterpreterPushArgsThenConstructWithFinalSpread
code-creation,Builtin,2,6145,0x1562700,84,InterpreterEnterAtBytecode
code-creation,Builtin,2,6148,0x1562760,220,InterpreterEnterAtNextBytecode
code-creation,Builtin,2,6151,0x1562840,52,InterpreterOnStackReplacement
code-creation,Builtin,2,6155,0x1562880,596,BaselineOutOfLinePrologue
code-creation,Builtin,2,6158,0x1562ae0,56,BaselineOnStackReplacement
code-creation,Builtin,2,6161,0x1562b20,80,BaselineLeaveFrame
code-creation,Builtin,2,6164,0x1562b80,192,BaselineEnterAtBytecode
code-creation,Builtin,2,6167,0x1562c60,200,BaselineEnterAtNextBytecode
code-creation,Builtin,2,6171,0x1562d40,184,InterpreterOnStackReplacement_ToBaseline
code-creation,Builtin,2,6175,0x1562e00,1060,CompileLazy
code-creation,Builtin,2,6178,0x1563240,92,CompileLazyDeoptimizedCode
code-creation,Builtin,2,6181,0x15632a0,252,InstantiateAsmJs
code-creation,Builtin,2,6184,0x15633a0,32,NotifyDeoptimized
code-creation,Builtin,2,6187,0x15633e0,788,DeoptimizationEntry_Eager
code-creation,Builtin,2,6190,0x1563700,792,DeoptimizationEntry_Soft
code-creation,Builtin,2,6194,0x1563a20,792,DeoptimizationEntry_Bailout
code-creation,Builtin,2,6197,0x1563d40,792,DeoptimizationEntry_Lazy
code-creation,Builtin,2,6201,0x1564060,52,ContinueToCodeStubBuiltin
code-creation,Builtin,2,6204,0x15640a0,60,ContinueToCodeStubBuiltinWithResult
code-creation,Builtin,2,6207,0x15640e0,56,ContinueToJavaScriptBuiltin
code-creation,Builtin,2,6211,0x1564120,64,ContinueToJavaScriptBuiltinWithResult
code-creation,Builtin,2,6214,0x1564180,288,CallApiCallback
code-creation,Builtin,2,6217,0x15642c0,272,CallApiGetter
code-creation,Builtin,2,6220,0x15643e0,12,HandleApiCall
code-creation,Builtin,2,6224,0x1564400,12,HandleApiCallAsFunction
code-creation,Builtin,2,6227,0x1564420,12,HandleApiCallAsConstructor
code-creation,Builtin,2,6232,0x1564440,64,AllocateInYoungGeneration
code-creation,Builtin,2,6236,0x15644a0,52,AllocateRegularInYoungGeneration
code-creation,Builtin,2,6239,0x15644e0,64,AllocateInOldGeneration
code-creation,Builtin,2,6242,0x1564540,52,AllocateRegularInOldGeneration
code-creation,Builtin,2,6246,0x1564580,444,CopyFastSmiOrObjectElements
code-creation,Builtin,2,6249,0x1564740,512,GrowFastDoubleElements
code-creation,Builtin,2,6253,0x1564960,416,GrowFastSmiOrObjectElements
code-creation,Builtin,2,6256,0x1564b20,412,DebugBreakTrampoline
code-creation,Builtin,2,6259,0x1564cc0,180,ToNumber
code-creation,Builtin,2,6262,0x1564d80,292,ToNumber_Baseline
code-creation,Builtin,2,6265,0x1564ec0,360,ToNumeric_Baseline
code-creation,Builtin,2,6268,0x1565040,104,PlainPrimitiveToNumber
code-creation,Builtin,2,6271,0x15650c0,212,ToNumberConvertBigInt
code-creation,Builtin,2,6275,0x15651a0,132,Typeof
code-creation,Builtin,2,6277,0x1565240,104,BigIntToI64
code-creation,Builtin,2,6280,0x15652c0,4,BigIntToI32Pair
code-creation,Builtin,2,6283,0x15652e0,232,I64ToBigInt
code-creation,Builtin,2,6286,0x15653e0,4,I32PairToBigInt
code-creation,Builtin,2,6289,0x1565400,100,ToBooleanLazyDeoptContinuation
code-creation,Builtin,2,6292,0x1565480,208,TailCallOptimizedCodeSlot
code-creation,Builtin,2,6296,0x1565560,3500,KeyedLoadIC_PolymorphicName
code-creation,Builtin,2,6299,0x1566320,16388,KeyedStoreIC_Megamorphic
code-creation,Builtin,2,6303,0x156a340,280,LoadGlobalIC_NoFeedback
code-creation,Builtin,2,6306,0x156a460,60,LoadIC_FunctionPrototype
code-creation,Builtin,2,6309,0x156a4a0,12,LoadIC_StringLength
code-creation,Builtin,2,6312,0x156a4c0,16,LoadIC_StringWrapperLength
code-creation,Builtin,2,6315,0x156a4e0,3056,LoadIC_NoFeedback
code-creation,Builtin,2,6318,0x156b0e0,32,StoreGlobalIC_Slow
code-creation,Builtin,2,6322,0x156b120,7488,StoreIC_NoFeedback
code-creation,Builtin,2,6325,0x156ce80,180,KeyedLoadIC_SloppyArguments
code-creation,Builtin,2,6328,0x156cf40,72,LoadIndexedInterceptorIC
code-creation,Builtin,2,6332,0x156cfa0,260,KeyedStoreIC_SloppyArguments_Standard
code-creation,Builtin,2,6335,0x156d0c0,260,KeyedStoreIC_SloppyArguments_GrowNoTransitionHandleCOW
code-creation,Builtin,2,6339,0x156d1e0,260,KeyedStoreIC_SloppyArguments_NoTransitionIgnoreOOB
code-creation,Builtin,2,6343,0x156d300,260,KeyedStoreIC_SloppyArguments_NoTransitionHandleCOW
code-creation,Builtin,2,6348,0x156d420,6716,StoreFastElementIC_Standard
code-creation,Builtin,2,6351,0x156ee60,9984,StoreFastElementIC_GrowNoTransitionHandleCOW
code-creation,Builtin,2,6355,0x1571580,6712,StoreFastElementIC_NoTransitionIgnoreOOB
code-creation,Builtin,2,6359,0x1572fc0,6532,StoreFastElementIC_NoTransitionHandleCOW
code-creation,Builtin,2,6363,0x1574960,8960,ElementsTransitionAndStore_Standard
code-creation,Builtin,2,6366,0x1576c80,20096,ElementsTransitionAndStore_GrowNoTransitionHandleCOW
code-creation,Builtin,2,6370,0x157bb20,8960,ElementsTransitionAndStore_NoTransitionIgnoreOOB
code-creation,Builtin,2,6374,0x157de40,11668,ElementsTransitionAndStore_NoTransitionHandleCOW
code-creation,Builtin,2,6378,0x1580be0,792,KeyedHasIC_PolymorphicName
code-creation,Builtin,2,6381,0x1580f00,164,KeyedHasIC_SloppyArguments
code-creation,Builtin,2,6385,0x1580fc0,72,HasIndexedInterceptorIC
code-creation,Builtin,2,6388,0x1581020,88,DynamicCheckMapsTrampoline
code-creation,Builtin,2,6392,0x1581080,260,DynamicCheckMaps
code-creation,Builtin,2,6395,0x15811a0,148,EnqueueMicrotask
code-creation,Builtin,2,6398,0x1581240,8,RunMicrotasksTrampoline
code-creation,Builtin,2,6401,0x1581260,3536,RunMicrotasks
code-creation,Builtin,2,6404,0x1582040,2140,HasProperty
code-creation,Builtin,2,6407,0x15828a0,1160,DeleteProperty
code-creation,Builtin,2,6410,0x1582d40,1976,CopyDataProperties
code-creation,Builtin,2,6413,0x1583500,9364,SetDataProperties
code-creation,Builtin,2,6416,0x15859a0,28,Abort
code-creation,Builtin,2,6419,0x15859c0,28,AbortCSAAssert
code-creation,Builtin,2,6422,0x15859e0,12,EmptyFunction
code-creation,Builtin,2,6425,0x1585a00,12,Illegal
code-creation,Builtin,2,6428,0x1585a20,12,StrictPoisonPillThrower
code-creation,Builtin,2,6433,0x1585a40,12,UnsupportedThrower
code-creation,Builtin,2,6436,0x1585a60,64,ReturnReceiver
code-creation,Builtin,2,6439,0x1585ac0,28,ArrayConstructor
code-creation,Builtin,2,6442,0x1585ae0,404,ArrayConstructorImpl
code-creation,Builtin,2,6445,0x1585c80,212,ArrayNoArgumentConstructor_PackedSmi_DontOverride
code-creation,Builtin,2,6449,0x1585d60,212,ArrayNoArgumentConstructor_HoleySmi_DontOverride
code-creation,Builtin,2,6453,0x1585e40,176,ArrayNoArgumentConstructor_PackedSmi_DisableAllocationSites
code-creation,Builtin,2,6458,0x1585f00,176,ArrayNoArgumentConstructor_HoleySmi_DisableAllocationSites
code-creation,Builtin,2,6462,0x1585fc0,176,ArrayNoArgumentConstructor_Packed_DisableAllocationSites
code-creation,Builtin,2,6466,0x1586080,176,ArrayNoArgumentConstructor_Holey_DisableAllocationSites
code-creation,Builtin,2,6471,0x1586140,188,ArrayNoArgumentConstructor_PackedDouble_DisableAllocationSites
code-creation,Builtin,2,6475,0x1586200,188,ArrayNoArgumentConstructor_HoleyDouble_DisableAllocationSites
code-creation,Builtin,2,6480,0x15862c0,512,ArraySingleArgumentConstructor_PackedSmi_DontOverride
code-creation,Builtin,2,6484,0x15864e0,476,ArraySingleArgumentConstructor_HoleySmi_DontOverride
code-creation,Builtin,2,6488,0x15866c0,436,ArraySingleArgumentConstructor_PackedSmi_DisableAllocationSites
code-creation,Builtin,2,6492,0x1586880,396,ArraySingleArgumentConstructor_HoleySmi_DisableAllocationSites
code-creation,Builtin,2,6497,0x1586a20,436,ArraySingleArgumentConstructor_Packed_DisableAllocationSites
code-creation,Builtin,2,6501,0x1586be0,396,ArraySingleArgumentConstructor_Holey_DisableAllocationSites
code-creation,Builtin,2,6505,0x1586d80,448,ArraySingleArgumentConstructor_PackedDouble_DisableAllocationSites
code-creation,Builtin,2,6510,0x1586f60,412,ArraySingleArgumentConstructor_HoleyDouble_DisableAllocationSites
code-creation,Builtin,2,6514,0x1587100,64,ArrayNArgumentsConstructor
code-creation,Builtin,2,6518,0x1587160,12,ArrayConcat
code-creation,Builtin,2,6521,0x1587180,12,ArrayPrototypeFill
code-creation,Builtin,2,6524,0x15871a0,932,ArrayIncludesSmiOrObject
code-creation,Builtin,2,6527,0x1587560,140,ArrayIncludesPackedDoubles
code-creation,Builtin,2,6530,0x1587600,208,ArrayIncludesHoleyDoubles
code-creation,Builtin,2,6534,0x15876e0,548,ArrayIncludes
code-creation,Builtin,2,6537,0x1587920,856,ArrayIndexOfSmiOrObject
code-creation,Builtin,2,6540,0x1587c80,116,ArrayIndexOfPackedDoubles
code-creation,Builtin,2,6543,0x1587d00,116,ArrayIndexOfHoleyDoubles
code-creation,Builtin,2,6546,0x1587d80,552,ArrayIndexOf
code-creation,Builtin,2,6549,0x1587fc0,12,ArrayPop
code-creation,Builtin,2,6552,0x1587fe0,612,ArrayPrototypePop
code-creation,Builtin,2,6555,0x1588260,12,ArrayPush
code-creation,Builtin,2,6558,0x1588280,2496,ArrayPrototypePush
code-creation,Builtin,2,6561,0x1588c60,12,ArrayShift
code-creation,Builtin,2,6564,0x1588c80,12,ArrayUnshift
code-creation,Builtin,2,6567,0x1588ca0,968,CloneFastJSArray
code-creation,Builtin,2,6570,0x1589080,2252,CloneFastJSArrayFillingHoles
code-creation,Builtin,2,6573,0x1589960,984,ExtractFastJSArray
code-creation,Builtin,2,6576,0x1589d40,256,ArrayPrototypeEntries
code-creation,Builtin,2,6580,0x1589e60,248,ArrayPrototypeKeys
code-creation,Builtin,2,6583,0x1589f60,256,ArrayPrototypeValues
code-creation,Builtin,2,6586,0x158a080,4008,ArrayIteratorPrototypeNext
code-creation,Builtin,2,6589,0x158b040,3632,FlattenIntoArray
code-creation,Builtin,2,6592,0x158be80,3636,FlatMapIntoArray
code-creation,Builtin,2,6595,0x158ccc0,372,ArrayPrototypeFlat
code-creation,Builtin,2,6598,0x158ce40,428,ArrayPrototypeFlatMap
code-creation,Builtin,2,6601,0x158d000,12,ArrayBufferConstructor
code-creation,Builtin,2,6605,0x158d020,12,ArrayBufferConstructor_DoNotInitialize
code-creation,Builtin,2,6609,0x158d040,12,ArrayBufferPrototypeSlice
code-creation,Builtin,2,6612,0x158d060,700,AsyncFunctionEnter
code-creation,Builtin,2,6615,0x158d320,132,AsyncFunctionReject
code-creation,Builtin,2,6618,0x158d3c0,128,AsyncFunctionResolve
code-creation,Builtin,2,6621,0x158d460,12,AsyncFunctionLazyDeoptContinuation
code-creation,Builtin,2,6627,0x158d480,2276,AsyncFunctionAwaitCaught
code-creation,Builtin,2,6631,0x158dd80,2276,AsyncFunctionAwaitUncaught
code-creation,Builtin,2,6634,0x158e680,172,AsyncFunctionAwaitRejectClosure
code-creation,Builtin,2,6638,0x158e740,164,AsyncFunctionAwaitResolveClosure
code-creation,Builtin,2,6641,0x158e800,12,BigIntConstructor
code-creation,Builtin,2,6644,0x158e820,12,BigIntAsUintN
code-creation,Builtin,2,6647,0x158e840,12,BigIntAsIntN
code-creation,Builtin,2,6650,0x158e860,12,BigIntPrototypeToLocaleString
code-creation,Builtin,2,6653,0x158e880,12,BigIntPrototypeToString
code-creation,Builtin,2,6657,0x158e8a0,12,BigIntPrototypeValueOf
code-creation,Builtin,2,6660,0x158e8c0,12,CallSitePrototypeGetColumnNumber
code-creation,Builtin,2,6663,0x158e8e0,12,CallSitePrototypeGetEnclosingColumnNumber
code-creation,Builtin,2,6667,0x158e900,12,CallSitePrototypeGetEnclosingLineNumber
code-creation,Builtin,2,6671,0x158e920,12,CallSitePrototypeGetEvalOrigin
code-creation,Builtin,2,6674,0x158e940,12,CallSitePrototypeGetFileName
code-creation,Builtin,2,6678,0x158e960,12,CallSitePrototypeGetFunction
code-creation,Builtin,2,6681,0x158e980,12,CallSitePrototypeGetFunctionName
code-creation,Builtin,2,6685,0x158e9a0,12,CallSitePrototypeGetLineNumber
code-creation,Builtin,2,6688,0x158e9c0,12,CallSitePrototypeGetMethodName
code-creation,Builtin,2,6692,0x158e9e0,12,CallSitePrototypeGetPosition
code-creation,Builtin,2,6695,0x158ea00,12,CallSitePrototypeGetPromiseIndex
code-creation,Builtin,2,6699,0x158ea20,12,CallSitePrototypeGetScriptNameOrSourceURL
code-creation,Builtin,2,6702,0x158ea40,12,CallSitePrototypeGetThis
code-creation,Builtin,2,6705,0x158ea60,12,CallSitePrototypeGetTypeName
code-creation,Builtin,2,6709,0x158ea80,12,CallSitePrototypeIsAsync
code-creation,Builtin,2,6712,0x158eaa0,12,CallSitePrototypeIsConstructor
code-creation,Builtin,2,6715,0x158eac0,12,CallSitePrototypeIsEval
code-creation,Builtin,2,6719,0x158eae0,12,CallSitePrototypeIsNative
code-creation,Builtin,2,6722,0x158eb00,12,CallSitePrototypeIsPromiseAll
code-creation,Builtin,2,6726,0x158eb20,12,CallSitePrototypeIsToplevel
code-creation,Builtin,2,6729,0x158eb40,12,CallSitePrototypeToString
code-creation,Builtin,2,6732,0x158eb60,12,ConsoleDebug
code-creation,Builtin,2,6735,0x158eb80,12,ConsoleError
code-creation,Builtin,2,6738,0x158eba0,12,ConsoleInfo
code-creation,Builtin,2,6741,0x158ebc0,12,ConsoleLog
code-creation,Builtin,2,6744,0x158ebe0,12,ConsoleWarn
code-creation,Builtin,2,6747,0x158ec00,12,ConsoleDir
code-creation,Builtin,2,6749,0x158ec20,12,ConsoleDirXml
code-creation,Builtin,2,6752,0x158ec40,12,ConsoleTable
code-creation,Builtin,2,6755,0x158ec60,12,ConsoleTrace
code-creation,Builtin,2,6758,0x158ec80,12,ConsoleGroup
code-creation,Builtin,2,6761,0x158eca0,12,ConsoleGroupCollapsed
code-creation,Builtin,2,6764,0x158ecc0,12,ConsoleGroupEnd
code-creation,Builtin,2,6767,0x158ece0,12,ConsoleClear
code-creation,Builtin,2,6770,0x158ed00,12,ConsoleCount
code-creation,Builtin,2,6773,0x158ed20,12,ConsoleCountReset
code-creation,Builtin,2,6776,0x158ed40,12,ConsoleAssert
code-creation,Builtin,2,6779,0x158ed60,12,ConsoleProfile
code-creation,Builtin,2,6782,0x158ed80,12,ConsoleProfileEnd
code-creation,Builtin,2,6785,0x158eda0,12,ConsoleTime
code-creation,Builtin,2,6788,0x158edc0,12,ConsoleTimeLog
code-creation,Builtin,2,6791,0x158ede0,12,ConsoleTimeEnd
code-creation,Builtin,2,6794,0x158ee00,12,ConsoleTimeStamp
code-creation,Builtin,2,6797,0x158ee20,12,ConsoleContext
code-creation,Builtin,2,6800,0x158ee40,12,DataViewConstructor
code-creation,Builtin,2,6803,0x158ee60,12,DateConstructor
code-creation,Builtin,2,6806,0x158ee80,220,DatePrototypeGetDate
code-creation,Builtin,2,6809,0x158ef60,220,DatePrototypeGetDay
code-creation,Builtin,2,6812,0x158f040,220,DatePrototypeGetFullYear
code-creation,Builtin,2,6816,0x158f120,220,DatePrototypeGetHours
code-creation,Builtin,2,6819,0x158f200,196,DatePrototypeGetMilliseconds
code-creation,Builtin,2,6822,0x158f2e0,220,DatePrototypeGetMinutes
code-creation,Builtin,2,6825,0x158f3c0,220,DatePrototypeGetMonth
code-creation,Builtin,2,6830,0x158f4a0,220,DatePrototypeGetSeconds
code-creation,Builtin,2,6833,0x158f580,124,DatePrototypeGetTime
code-creation,Builtin,2,6837,0x158f600,196,DatePrototypeGetTimezoneOffset
code-creation,Builtin,2,6840,0x158f6e0,196,DatePrototypeGetUTCDate
code-creation,Builtin,2,6843,0x158f7c0,196,DatePrototypeGetUTCDay
code-creation,Builtin,2,6847,0x158f8a0,196,DatePrototypeGetUTCFullYear
code-creation,Builtin,2,6850,0x158f980,196,DatePrototypeGetUTCHours
code-creation,Builtin,2,6853,0x158fa60,196,DatePrototypeGetUTCMilliseconds
code-creation,Builtin,2,6857,0x158fb40,196,DatePrototypeGetUTCMinutes
code-creation,Builtin,2,6860,0x158fc20,196,DatePrototypeGetUTCMonth
code-creation,Builtin,2,6863,0x158fd00,196,DatePrototypeGetUTCSeconds
code-creation,Builtin,2,6867,0x158fde0,124,DatePrototypeValueOf
code-creation,Builtin,2,6870,0x158fe60,352,DatePrototypeToPrimitive
code-creation,Builtin,2,6873,0x158ffe0,12,DatePrototypeGetYear
code-creation,Builtin,2,6876,0x1590000,12,DatePrototypeSetYear
code-creation,Builtin,2,6879,0x1590020,12,DateNow
code-creation,Builtin,2,6882,0x1590040,12,DateParse
code-creation,Builtin,2,6885,0x1590060,12,DatePrototypeSetDate
code-creation,Builtin,2,6888,0x1590080,12,DatePrototypeSetFullYear
code-creation,Builtin,2,6892,0x15900a0,12,DatePrototypeSetHours
code-creation,Builtin,2,6895,0x15900c0,12,DatePrototypeSetMilliseconds
code-creation,Builtin,2,6898,0x15900e0,12,DatePrototypeSetMinutes
code-creation,Builtin,2,6901,0x1590100,12,DatePrototypeSetMonth
code-creation,Builtin,2,6904,0x1590120,12,DatePrototypeSetSeconds
code-creation,Builtin,2,6908,0x1590140,12,DatePrototypeSetTime
code-creation,Builtin,2,6911,0x1590160,12,DatePrototypeSetUTCDate
code-creation,Builtin,2,6914,0x1590180,12,DatePrototypeSetUTCFullYear
code-creation,Builtin,2,6917,0x15901a0,12,DatePrototypeSetUTCHours
code-creation,Builtin,2,6921,0x15901c0,12,DatePrototypeSetUTCMilliseconds
code-creation,Builtin,2,6924,0x15901e0,12,DatePrototypeSetUTCMinutes
code-creation,Builtin,2,6927,0x1590200,12,DatePrototypeSetUTCMonth
code-creation,Builtin,2,6931,0x1590220,12,DatePrototypeSetUTCSeconds
code-creation,Builtin,2,6934,0x1590240,12,DatePrototypeToDateString
code-creation,Builtin,2,6937,0x1590260,12,DatePrototypeToISOString
code-creation,Builtin,2,6940,0x1590280,12,DatePrototypeToUTCString
code-creation,Builtin,2,6944,0x15902a0,12,DatePrototypeToString
code-creation,Builtin,2,6947,0x15902c0,12,DatePrototypeToTimeString
code-creation,Builtin,2,6950,0x15902e0,12,DatePrototypeToJson
code-creation,Builtin,2,6953,0x1590300,12,DateUTC
code-creation,Builtin,2,6956,0x1590320,12,ErrorConstructor
code-creation,Builtin,2,6959,0x1590340,12,ErrorCaptureStackTrace
code-creation,Builtin,2,6962,0x1590360,12,ErrorPrototypeToString
code-creation,Builtin,2,6965,0x1590380,12,FunctionConstructor
code-creation,Builtin,2,6968,0x15903a0,68,FunctionPrototypeApply
code-creation,Builtin,2,6972,0x1590400,12,FunctionPrototypeBind
code-creation,Builtin,2,6975,0x1590420,32,FunctionPrototypeCall
code-creation,Builtin,2,6978,0x1590460,12,FunctionPrototypeToString
code-creation,Builtin,2,6981,0x1590480,192,CreateIterResultObject
code-creation,Builtin,2,6984,0x1590560,788,CreateGeneratorObject
code-creation,Builtin,2,6988,0x1590880,12,GeneratorFunctionConstructor
code-creation,Builtin,2,6991,0x15908a0,412,GeneratorPrototypeNext
code-creation,Builtin,2,6994,0x1590a40,420,GeneratorPrototypeReturn
code-creation,Builtin,2,6998,0x1590c00,424,GeneratorPrototypeThrow
code-creation,Builtin,2,7001,0x1590dc0,12,AsyncFunctionConstructor
code-creation,Builtin,2,7004,0x1590de0,416,SuspendGeneratorBaseline
code-creation,Builtin,2,7007,0x1590fa0,88,ResumeGeneratorBaseline
code-creation,Builtin,2,7010,0x1591000,36,GetIteratorWithFeedbackLazyDeoptContinuation
code-creation,Builtin,2,7014,0x1591040,12,GlobalDecodeURI
code-creation,Builtin,2,7017,0x1591060,12,GlobalDecodeURIComponent
code-creation,Builtin,2,7021,0x1591080,12,GlobalEncodeURI
code-creation,Builtin,2,7024,0x15910a0,12,GlobalEncodeURIComponent
code-creation,Builtin,2,7027,0x15910c0,12,GlobalEscape
code-creation,Builtin,2,7030,0x15910e0,12,GlobalUnescape
code-creation,Builtin,2,7039,0x1591100,12,GlobalEval
code-creation,Builtin,2,7042,0x1591120,132,GlobalIsFinite
code-creation,Builtin,2,7045,0x15911c0,124,GlobalIsNaN
code-creation,Builtin,2,7048,0x1591240,12,JsonParse
code-creation,Builtin,2,7051,0x1591260,12,JsonStringify
code-creation,Builtin,2,7054,0x1591280,3868,LoadIC
code-creation,Builtin,2,7057,0x15921a0,3552,LoadIC_Megamorphic
code-creation,Builtin,2,7060,0x1592fa0,3776,LoadIC_Noninlined
code-creation,Builtin,2,7063,0x1593e80,44,LoadICTrampoline
code-creation,Builtin,2,7066,0x1593ec0,24,LoadICBaseline
code-creation,Builtin,2,7069,0x1593ee0,44,LoadICTrampoline_Megamorphic
code-creation,Builtin,2,7072,0x1593f20,6636,LoadSuperIC
code-creation,Builtin,2,7076,0x1595920,24,LoadSuperICBaseline
code-creation,Builtin,2,7079,0x1595940,7424,KeyedLoadIC
code-creation,Builtin,2,7082,0x1597660,12320,KeyedLoadIC_Megamorphic
code-creation,Builtin,2,7085,0x159a6a0,44,KeyedLoadICTrampoline
code-creation,Builtin,2,7088,0x159a6e0,24,KeyedLoadICBaseline
code-creation,Builtin,2,7091,0x159a700,44,KeyedLoadICTrampoline_Megamorphic
code-creation,Builtin,2,7095,0x159a740,5320,StoreGlobalIC
code-creation,Builtin,2,7098,0x159bc20,44,StoreGlobalICTrampoline
code-creation,Builtin,2,7101,0x159bc60,24,StoreGlobalICBaseline
code-creation,Builtin,2,7104,0x159bc80,5552,StoreIC
code-creation,Builtin,2,7107,0x159d240,44,StoreICTrampoline
code-creation,Builtin,2,7110,0x159d280,24,StoreICBaseline
code-creation,Builtin,2,7113,0x159d2a0,5984,KeyedStoreIC
code-creation,Builtin,2,7116,0x159ea20,44,KeyedStoreICTrampoline
code-creation,Builtin,2,7119,0x159ea60,24,KeyedStoreICBaseline
code-creation,Builtin,2,7122,0x159ea80,408,StoreInArrayLiteralIC
code-creation,Builtin,2,7126,0x159ec20,24,StoreInArrayLiteralICBaseline
code-creation,Builtin,2,7129,0x159ec40,140,LookupContextBaseline
code-creation,Builtin,2,7132,0x159ece0,140,LookupContextInsideTypeofBaseline
code-creation,Builtin,2,7136,0x159ed80,2580,LoadGlobalIC
code-creation,Builtin,2,7139,0x159f7a0,2556,LoadGlobalICInsideTypeof
code-creation,Builtin,2,7142,0x15a01a0,44,LoadGlobalICTrampoline
code-creation,Builtin,2,7145,0x15a01e0,24,LoadGlobalICBaseline
code-creation,Builtin,2,7149,0x15a0200,44,LoadGlobalICInsideTypeofTrampoline
code-creation,Builtin,2,7152,0x15a0240,24,LoadGlobalICInsideTypeofBaseline
code-creation,Builtin,2,7156,0x15a0260,140,LookupGlobalICBaseline
code-creation,Builtin,2,7159,0x15a0300,140,LookupGlobalICInsideTypeofBaseline
code-creation,Builtin,2,7163,0x15a03a0,2104,CloneObjectIC
code-creation,Builtin,2,7166,0x15a0be0,24,CloneObjectICBaseline
code-creation,Builtin,2,7169,0x15a0c00,1984,CloneObjectIC_Slow
code-creation,Builtin,2,7172,0x15a13e0,2752,KeyedHasIC
code-creation,Builtin,2,7175,0x15a1ec0,24,KeyedHasICBaseline
code-creation,Builtin,2,7178,0x15a1ee0,2128,KeyedHasIC_Megamorphic
code-creation,Builtin,2,7182,0x15a2740,1440,IterableToList
code-creation,Builtin,2,7185,0x15a2d00,1240,IterableToFixedArray
code-creation,Builtin,2,7188,0x15a31e0,748,IterableToListWithSymbolLookup
code-creation,Builtin,2,7191,0x15a34e0,56,IterableToFixedArrayWithSymbolLookupSlow
code-creation,Builtin,2,7195,0x15a3520,124,IterableToListMayPreserveHoles
code-creation,Builtin,2,7198,0x15a35a0,992,IterableToFixedArrayForWasm
code-creation,Builtin,2,7202,0x15a39a0,1628,StringListFromIterable
code-creation,Builtin,2,7205,0x15a4000,1220,FindOrderedHashMapEntry
code-creation,Builtin,2,7208,0x15a44e0,4164,MapConstructor
code-creation,Builtin,2,7211,0x15a5540,2012,MapPrototypeSet
code-creation,Builtin,2,7214,0x15a5d20,1524,MapPrototypeDelete
code-creation,Builtin,2,7217,0x15a6320,204,MapPrototypeGet
code-creation,Builtin,2,7220,0x15a6400,164,MapPrototypeHas
code-creation,Builtin,2,7223,0x15a64c0,12,MapPrototypeClear
code-creation,Builtin,2,7226,0x15a64e0,280,MapPrototypeEntries
code-creation,Builtin,2,7230,0x15a6600,140,MapPrototypeGetSize
code-creation,Builtin,2,7233,0x15a66a0,492,MapPrototypeForEach
code-creation,Builtin,2,7236,0x15a68a0,280,MapPrototypeKeys
code-creation,Builtin,2,7239,0x15a69c0,280,MapPrototypeValues
code-creation,Builtin,2,7244,0x15a6ae0,908,MapIteratorPrototypeNext
code-creation,Builtin,2,7247,0x15a6e80,1224,MapIteratorToList
code-creation,Builtin,2,7250,0x15a7360,12,NumberPrototypeToExponential
code-creation,Builtin,2,7254,0x15a7380,12,NumberPrototypeToFixed
code-creation,Builtin,2,7257,0x15a73a0,12,NumberPrototypeToLocaleString
code-creation,Builtin,2,7261,0x15a73c0,12,NumberPrototypeToPrecision
code-creation,Builtin,2,7264,0x15a73e0,328,SameValue
code-creation,Builtin,2,7267,0x15a7540,204,SameValueNumbersOnly
code-creation,Builtin,2,7270,0x15a7620,792,Add_Baseline
code-creation,Builtin,2,7273,0x15a7940,828,Subtract_Baseline
code-creation,Builtin,2,7276,0x15a7c80,808,Multiply_Baseline
code-creation,Builtin,2,7279,0x15a7fc0,828,Divide_Baseline
code-creation,Builtin,2,7282,0x15a8300,764,Modulus_Baseline
code-creation,Builtin,2,7285,0x15a8600,76,Exponentiate_Baseline
code-creation,Builtin,2,7289,0x15a8660,708,BitwiseAnd_Baseline
code-creation,Builtin,2,7292,0x15a8940,700,BitwiseOr_Baseline
code-creation,Builtin,2,7295,0x15a8c00,708,BitwiseXor_Baseline
code-creation,Builtin,2,7298,0x15a8ee0,720,ShiftLeft_Baseline
code-creation,Builtin,2,7301,0x15a91c0,720,ShiftRight_Baseline
code-creation,Builtin,2,7304,0x15a94a0,836,ShiftRightLogical_Baseline
code-creation,Builtin,2,7307,0x15a9800,720,Add_WithFeedback
code-creation,Builtin,2,7310,0x15a9ae0,780,Subtract_WithFeedback
code-creation,Builtin,2,7314,0x15a9e00,772,Multiply_WithFeedback
code-creation,Builtin,2,7317,0x15aa120,804,Divide_WithFeedback
code-creation,Builtin,2,7320,0x15aa460,724,Modulus_WithFeedback
code-creation,Builtin,2,7323,0x15aa740,52,Exponentiate_WithFeedback
code-creation,Builtin,2,7326,0x15aa780,684,BitwiseAnd_WithFeedback
code-creation,Builtin,2,7330,0x15aaa40,676,BitwiseOr_WithFeedback
code-creation,Builtin,2,7333,0x15aad00,684,BitwiseXor_WithFeedback
code-creation,Builtin,2,7336,0x15aafc0,692,ShiftLeft_WithFeedback
code-creation,Builtin,2,7340,0x15ab280,692,ShiftRight_WithFeedback
code-creation,Builtin,2,7343,0x15ab540,804,ShiftRightLogical_WithFeedback
code-creation,Builtin,2,7346,0x15ab880,1696,Equal_Baseline
code-creation,Builtin,2,7349,0x15abf40,908,StrictEqual_Baseline
code-creation,Builtin,2,7352,0x15ac2e0,1264,LessThan_Baseline
code-creation,Builtin,2,7355,0x15ac7e0,1264,GreaterThan_Baseline
code-creation,Builtin,2,7358,0x15acce0,1264,LessThanOrEqual_Baseline
code-creation,Builtin,2,7362,0x15ad1e0,1264,GreaterThanOrEqual_Baseline
code-creation,Builtin,2,7365,0x15ad6e0,1620,Equal_WithFeedback
code-creation,Builtin,2,7368,0x15add40,940,StrictEqual_WithFeedback
code-creation,Builtin,2,7372,0x15ae100,1240,LessThan_WithFeedback
code-creation,Builtin,2,7375,0x15ae5e0,1240,GreaterThan_WithFeedback
code-creation,Builtin,2,7378,0x15aeac0,1240,LessThanOrEqual_WithFeedback
code-creation,Builtin,2,7381,0x15aefa0,1240,GreaterThanOrEqual_WithFeedback
code-creation,Builtin,2,7385,0x15af480,332,BitwiseNot_Baseline
code-creation,Builtin,2,7388,0x15af5e0,460,Decrement_Baseline
code-creation,Builtin,2,7391,0x15af7c0,464,Increment_Baseline
code-creation,Builtin,2,7394,0x15af9a0,488,Negate_Baseline
code-creation,Builtin,2,7411,0x15afba0,316,BitwiseNot_WithFeedback
code-creation,Builtin,2,7417,0x15afce0,440,Decrement_WithFeedback
code-creation,Builtin,2,7421,0x15afea0,444,Increment_WithFeedback
code-creation,Builtin,2,7426,0x15b0060,472,Negate_WithFeedback
code-creation,Builtin,2,7430,0x15b0240,252,ObjectAssign
code-creation,Builtin,2,7435,0x15b0340,860,ObjectCreate
code-creation,Builtin,2,7439,0x15b06a0,12,ObjectDefineGetter
code-creation,Builtin,2,7444,0x15b06c0,12,ObjectDefineProperties
code-creation,Builtin,2,7448,0x15b06e0,12,ObjectDefineProperty
code-creation,Builtin,2,7451,0x15b0700,12,ObjectDefineSetter
code-creation,Builtin,2,7454,0x15b0720,1528,ObjectEntries
code-creation,Builtin,2,7457,0x15b0d20,12,ObjectFreeze
code-creation,Builtin,2,7460,0x15b0d40,5680,ObjectGetOwnPropertyDescriptor
code-creation,Builtin,2,7463,0x15b2380,12,ObjectGetOwnPropertyDescriptors
code-creation,Builtin,2,7467,0x15b23a0,596,ObjectGetOwnPropertyNames
code-creation,Builtin,2,7470,0x15b2600,12,ObjectGetOwnPropertySymbols
code-creation,Builtin,2,7476,0x15b2620,388,ObjectIs
code-creation,Builtin,2,7479,0x15b27c0,12,ObjectIsFrozen
code-creation,Builtin,2,7482,0x15b27e0,12,ObjectIsSealed
code-creation,Builtin,2,7485,0x15b2800,532,ObjectKeys
code-creation,Builtin,2,7488,0x15b2a20,12,ObjectLookupGetter
code-creation,Builtin,2,7491,0x15b2a40,12,ObjectLookupSetter
code-creation,Builtin,2,7494,0x15b2a60,1792,ObjectPrototypeHasOwnProperty
code-creation,Builtin,2,7498,0x15b3180,216,ObjectPrototypeIsPrototypeOf
code-creation,Builtin,2,7501,0x15b3260,12,ObjectPrototypePropertyIsEnumerable
code-creation,Builtin,2,7505,0x15b3280,12,ObjectPrototypeGetProto
code-creation,Builtin,2,7508,0x15b32a0,12,ObjectPrototypeSetProto
code-creation,Builtin,2,7511,0x15b32c0,12,ObjectSeal
code-creation,Builtin,2,7514,0x15b32e0,1104,ObjectToString
code-creation,Builtin,2,7517,0x15b3740,1292,ObjectValues
code-creation,Builtin,2,7520,0x15b3c60,280,OrdinaryHasInstance
code-creation,Builtin,2,7523,0x15b3d80,344,InstanceOf
code-creation,Builtin,2,7526,0x15b3ee0,644,InstanceOf_WithFeedback
code-creation,Builtin,2,7529,0x15b4180,664,InstanceOf_Baseline
code-creation,Builtin,2,7533,0x15b4420,260,ForInEnumerate
code-creation,Builtin,2,7536,0x15b4540,148,ForInPrepare
code-creation,Builtin,2,7539,0x15b45e0,2084,ForInFilter
code-creation,Builtin,2,7542,0x15b4e20,52,ReflectApply
code-creation,Builtin,2,7545,0x15b4e60,60,ReflectConstruct
code-creation,Builtin,2,7548,0x15b4ea0,12,ReflectDefineProperty
code-creation,Builtin,2,7551,0x15b4ec0,12,ReflectGetOwnPropertyDescriptor
code-creation,Builtin,2,7554,0x15b4ee0,12,ReflectOwnKeys
code-creation,Builtin,2,7557,0x15b4f00,12,ReflectSet
code-creation,Builtin,2,7560,0x15b4f20,12,RegExpCapture1Getter
code-creation,Builtin,2,7563,0x15b4f40,12,RegExpCapture2Getter
code-creation,Builtin,2,7567,0x15b4f60,12,RegExpCapture3Getter
code-creation,Builtin,2,7570,0x15b4f80,12,RegExpCapture4Getter
code-creation,Builtin,2,7573,0x15b4fa0,12,RegExpCapture5Getter
code-creation,Builtin,2,7576,0x15b4fc0,12,RegExpCapture6Getter
code-creation,Builtin,2,7579,0x15b4fe0,12,RegExpCapture7Getter
code-creation,Builtin,2,7582,0x15b5000,12,RegExpCapture8Getter
code-creation,Builtin,2,7585,0x15b5020,12,RegExpCapture9Getter
code-creation,Builtin,2,7589,0x15b5040,2208,RegExpConstructor
code-creation,Builtin,2,7592,0x15b5900,12,RegExpInputGetter
code-creation,Builtin,2,7595,0x15b5920,12,RegExpInputSetter
code-creation,Builtin,2,7618,0x15b5940,12,RegExpLastMatchGetter
code-creation,Builtin,2,7622,0x15b5960,12,RegExpLastParenGetter
code-creation,Builtin,2,7627,0x15b5980,12,RegExpLeftContextGetter
code-creation,Builtin,2,7635,0x15b59a0,908,RegExpPrototypeCompile
code-creation,Builtin,2,7642,0x15b5d40,12,RegExpPrototypeToString
code-creation,Builtin,2,7646,0x15b5d60,12,RegExpRightContextGetter
code-creation,Builtin,2,7651,0x15b5d80,288,RegExpExecAtom
code-creation,Builtin,2,7656,0x15b5ec0,1056,RegExpExecInternal
code-creation,Builtin,2,7661,0x15b6300,8,RegExpInterpreterTrampoline
code-creation,Builtin,2,7666,0x15b6320,8,RegExpExperimentalTrampoline
code-creation,Builtin,2,7671,0x15b6340,12,ResizableArrayBufferPrototypeResize
code-creation,Builtin,2,7675,0x15b6360,12,GrowableSharedArrayBufferPrototypeGrow
code-creation,Builtin,2,7679,0x15b6380,12,GrowableSharedArrayBufferPrototypeGetByteLength
code-creation,Builtin,2,7683,0x15b63a0,2696,SetConstructor
code-creation,Builtin,2,7686,0x15b6e40,1276,SetPrototypeHas
code-creation,Builtin,2,7690,0x15b7340,1728,SetPrototypeAdd
code-creation,Builtin,2,7693,0x15b7a20,1476,SetPrototypeDelete
code-creation,Builtin,2,7696,0x15b8000,12,SetPrototypeClear
code-creation,Builtin,2,7699,0x15b8020,284,SetPrototypeEntries
code-creation,Builtin,2,7702,0x15b8140,144,SetPrototypeGetSize
code-creation,Builtin,2,7705,0x15b81e0,444,SetPrototypeForEach
code-creation,Builtin,2,7708,0x15b83a0,284,SetPrototypeValues
code-creation,Builtin,2,7712,0x15b84c0,844,SetIteratorPrototypeNext
code-creation,Builtin,2,7715,0x15b8820,1144,SetOrSetIteratorToList
code-creation,Builtin,2,7718,0x15b8ca0,12,SharedArrayBufferPrototypeSlice
code-creation,Builtin,2,7725,0x15b8cc0,1272,AtomicsLoad
code-creation,Builtin,2,7728,0x15b91c0,1008,AtomicsStore
code-creation,Builtin,2,7731,0x15b95c0,1696,AtomicsExchange
code-creation,Builtin,2,7734,0x15b9c80,2088,AtomicsCompareExchange
code-creation,Builtin,2,7737,0x15ba4c0,1800,AtomicsAdd
code-creation,Builtin,2,7740,0x15babe0,1800,AtomicsSub
code-creation,Builtin,2,7743,0x15bb300,1800,AtomicsAnd
code-creation,Builtin,2,7746,0x15bba20,1800,AtomicsOr
code-creation,Builtin,2,7748,0x15bc140,1800,AtomicsXor
code-creation,Builtin,2,7751,0x15bc860,12,AtomicsNotify
code-creation,Builtin,2,7754,0x15bc880,12,AtomicsIsLockFree
code-creation,Builtin,2,7758,0x15bc8a0,12,AtomicsWait
code-creation,Builtin,2,7761,0x15bc8c0,12,AtomicsWaitAsync
code-creation,Builtin,2,7764,0x15bc8e0,12,StringFromCodePoint
code-creation,Builtin,2,7767,0x15bc900,1444,StringFromCharCode
code-creation,Builtin,2,7770,0x15bcec0,12,StringPrototypeLastIndexOf
code-creation,Builtin,2,7773,0x15bcee0,4360,StringPrototypeMatchAll
code-creation,Builtin,2,7777,0x15be000,12,StringPrototypeLocaleCompare
code-creation,Builtin,2,7780,0x15be020,1228,StringPrototypeReplace
code-creation,Builtin,2,7784,0x15be500,2912,StringPrototypeSplit
code-creation,Builtin,2,7787,0x15bf080,12,StringRaw
code-creation,Builtin,2,7790,0x15bf0a0,12,SymbolConstructor
code-creation,Builtin,2,7793,0x15bf0c0,12,SymbolFor
code-creation,Builtin,2,7796,0x15bf0e0,12,SymbolKeyFor
code-creation,Builtin,2,7799,0x15bf100,88,TypedArrayBaseConstructor
code-creation,Builtin,2,7802,0x15bf160,256,TypedArrayConstructor
code-creation,Builtin,2,7805,0x15bf280,12,TypedArrayPrototypeBuffer
code-creation,Builtin,2,7809,0x15bf2a0,876,TypedArrayPrototypeByteLength
code-creation,Builtin,2,7812,0x15bf620,292,TypedArrayPrototypeByteOffset
code-creation,Builtin,2,7816,0x15bf760,724,TypedArrayPrototypeLength
code-creation,Builtin,2,7819,0x15bfa40,12,TypedArrayPrototypeCopyWithin
code-creation,Builtin,2,7823,0x15bfa60,12,TypedArrayPrototypeFill
code-creation,Builtin,2,7826,0x15bfa80,12,TypedArrayPrototypeIncludes
code-creation,Builtin,2,7829,0x15bfaa0,12,TypedArrayPrototypeIndexOf
code-creation,Builtin,2,7832,0x15bfac0,12,TypedArrayPrototypeLastIndexOf
code-creation,Builtin,2,7836,0x15bfae0,12,TypedArrayPrototypeReverse
code-creation,Builtin,2,7840,0x15bfb00,316,TypedArrayPrototypeToStringTag
code-creation,Builtin,2,7843,0x15bfc40,10652,TypedArrayPrototypeMap
code-creation,Builtin,2,7846,0x15c25e0,796,GenericJSToWasmWrapper
code-creation,Builtin,2,7850,0x15c2900,148,WasmCompileLazy
code-creation,Builtin,2,7853,0x15c29a0,168,WasmDebugBreak
code-creation,Builtin,2,7856,0x15c2a60,16,WasmOnStackReplace
code-creation,Builtin,2,7859,0x15c2a80,136,WasmFloat32ToNumber
code-creation,Builtin,2,7862,0x15c2b20,148,WasmFloat64ToNumber
code-creation,Builtin,2,7865,0x15c2bc0,4,WasmI32AtomicWait32
code-creation,Builtin,2,7869,0x15c2be0,4,WasmI64AtomicWait32
code-creation,Builtin,2,7872,0x15c2c00,24,JSToWasmLazyDeoptContinuation
code-creation,Builtin,2,7875,0x15c2c20,4328,WeakMapConstructor
code-creation,Builtin,2,7878,0x15c3d20,196,WeakMapLookupHashIndex
code-creation,Builtin,2,7881,0x15c3e00,220,WeakMapGet
code-creation,Builtin,2,7884,0x15c3ee0,176,WeakMapPrototypeHas
code-creation,Builtin,2,7887,0x15c3fa0,204,WeakMapPrototypeSet
code-creation,Builtin,2,7891,0x15c4080,144,WeakMapPrototypeDelete
code-creation,Builtin,2,7894,0x15c4120,2888,WeakSetConstructor
code-creation,Builtin,2,7897,0x15c4c80,176,WeakSetPrototypeHas
code-creation,Builtin,2,7900,0x15c4d40,204,WeakSetPrototypeAdd
code-creation,Builtin,2,7903,0x15c4e20,144,WeakSetPrototypeDelete
code-creation,Builtin,2,7907,0x15c4ec0,372,WeakCollectionDelete
code-creation,Builtin,2,7910,0x15c5040,816,WeakCollectionSet
code-creation,Builtin,2,7913,0x15c5380,312,AsyncGeneratorResolve
code-creation,Builtin,2,7916,0x15c54c0,120,AsyncGeneratorReject
code-creation,Builtin,2,7919,0x15c5540,2232,AsyncGeneratorYield
code-creation,Builtin,2,7922,0x15c5e00,2304,AsyncGeneratorReturn
code-creation,Builtin,2,7925,0x15c6720,292,AsyncGeneratorResumeNext
code-creation,Builtin,2,7929,0x15c6860,12,AsyncGeneratorFunctionConstructor
code-creation,Builtin,2,7934,0x15c6880,1052,AsyncGeneratorPrototypeNext
code-creation,Builtin,2,7938,0x15c6ca0,1056,AsyncGeneratorPrototypeReturn
code-creation,Builtin,2,7941,0x15c70e0,1056,AsyncGeneratorPrototypeThrow
code-creation,Builtin,2,7945,0x15c7520,2252,AsyncGeneratorAwaitCaught
code-creation,Builtin,2,7948,0x15c7e00,2252,AsyncGeneratorAwaitUncaught
code-creation,Builtin,2,7952,0x15c86e0,116,AsyncGeneratorAwaitResolveClosure
code-creation,Builtin,2,7955,0x15c8760,128,AsyncGeneratorAwaitRejectClosure
code-creation,Builtin,2,7959,0x15c8800,116,AsyncGeneratorYieldResolveClosure
code-creation,Builtin,2,7962,0x15c8880,116,AsyncGeneratorReturnClosedResolveClosure
code-creation,Builtin,2,7966,0x15c8900,112,AsyncGeneratorReturnClosedRejectClosure
code-creation,Builtin,2,7970,0x15c8980,128,AsyncGeneratorReturnResolveClosure
code-creation,Builtin,2,7973,0x15c8a20,1612,AsyncFromSyncIteratorPrototypeNext
code-creation,Builtin,2,7977,0x15c9080,1720,AsyncFromSyncIteratorPrototypeThrow
code-creation,Builtin,2,7981,0x15c9740,1736,AsyncFromSyncIteratorPrototypeReturn
code-creation,Builtin,2,7984,0x15c9e20,100,AsyncIteratorValueUnwrap
code-creation,Builtin,2,7987,0x15c9ea0,228,CEntry_Return1_DontSaveFPRegs_ArgvOnStack_NoBuiltinExit
code-creation,Builtin,2,7991,0x15c9fa0,228,CEntry_Return1_DontSaveFPRegs_ArgvOnStack_BuiltinExit
code-creation,Builtin,2,7996,0x15ca0a0,212,CEntry_Return1_DontSaveFPRegs_ArgvInRegister_NoBuiltinExit
code-creation,Builtin,2,8000,0x15ca180,408,CEntry_Return1_SaveFPRegs_ArgvOnStack_NoBuiltinExit
code-creation,Builtin,2,8005,0x15ca320,408,CEntry_Return1_SaveFPRegs_ArgvOnStack_BuiltinExit
code-creation,Builtin,2,8009,0x15ca4c0,228,CEntry_Return2_DontSaveFPRegs_ArgvOnStack_NoBuiltinExit
code-creation,Builtin,2,8013,0x15ca5c0,228,CEntry_Return2_DontSaveFPRegs_ArgvOnStack_BuiltinExit
code-creation,Builtin,2,8017,0x15ca6c0,212,CEntry_Return2_DontSaveFPRegs_ArgvInRegister_NoBuiltinExit
code-creation,Builtin,2,8021,0x15ca7a0,408,CEntry_Return2_SaveFPRegs_ArgvOnStack_NoBuiltinExit
code-creation,Builtin,2,8025,0x15ca940,408,CEntry_Return2_SaveFPRegs_ArgvOnStack_BuiltinExit
code-creation,Builtin,2,8029,0x15caae0,4,DirectCEntry
code-creation,Builtin,2,8032,0x15cab00,1096,StringAdd_CheckNone
code-creation,Builtin,2,8036,0x15caf60,2496,SubString
code-creation,Builtin,2,8038,0x15cb940,16,StackCheck
code-creation,Builtin,2,8041,0x15cb960,84,DoubleToI
code-creation,Builtin,2,8045,0x15cb9c0,2224,GetProperty
code-creation,Builtin,2,8048,0x15cc280,2296,GetPropertyWithReceiver
code-creation,Builtin,2,8051,0x15ccb80,16528,SetProperty
code-creation,Builtin,2,8054,0x15d0c20,14092,SetPropertyInLiteral
code-creation,Builtin,2,8057,0x15d4340,8,MemCopyUint8Uint8
code-creation,Builtin,2,8060,0x15d4360,8,MemMove
code-creation,Builtin,2,8063,0x15d4380,12,IsTraceCategoryEnabled
code-creation,Builtin,2,8066,0x15d43a0,12,Trace
code-creation,Builtin,2,8069,0x15d43c0,12,FinalizationRegistryUnregister
code-creation,Builtin,2,8072,0x15d43e0,416,AsyncModuleEvaluate
code-creation,Builtin,2,8075,0x15d45a0,12,CallAsyncModuleFulfilled
code-creation,Builtin,2,8078,0x15d45c0,12,CallAsyncModuleRejected
code-creation,Builtin,2,8082,0x15d45e0,260,AggregateErrorConstructor
code-creation,Builtin,2,8085,0x15d4700,852,ArrayPrototypeAt
code-creation,Builtin,2,8088,0x15d4a60,5812,ArrayPrototypeCopyWithin
code-creation,Builtin,2,8091,0x15d6120,212,ArrayEveryLoopEagerDeoptContinuation
code-creation,Builtin,2,8095,0x15d6200,612,ArrayEveryLoopLazyDeoptContinuation
code-creation,Builtin,2,8099,0x15d6480,2736,ArrayEveryLoopContinuation
code-creation,Builtin,2,8102,0x15d6f40,1464,ArrayEvery
code-creation,Builtin,2,8105,0x15d7500,284,ArrayFilterLoopEagerDeoptContinuation
code-creation,Builtin,2,8108,0x15d7620,984,ArrayFilterLoopLazyDeoptContinuation
code-creation,Builtin,2,8112,0x15d7a00,3012,ArrayFilterLoopContinuation
code-creation,Builtin,2,8116,0x15d85e0,4324,ArrayFilter
code-creation,Builtin,2,8119,0x15d96e0,204,ArrayFindLoopEagerDeoptContinuation
code-creation,Builtin,2,8122,0x15d97c0,32,ArrayFindLoopLazyDeoptContinuation
code-creation,Builtin,2,8128,0x15d9800,312,ArrayFindLoopAfterCallbackLazyDeoptContinuation
code-creation,Builtin,2,8132,0x15d9940,524,ArrayFindLoopContinuation
code-creation,Builtin,2,8135,0x15d9b60,1456,ArrayPrototypeFind
code-creation,Builtin,2,8139,0x15da120,204,ArrayFindIndexLoopEagerDeoptContinuation
code-creation,Builtin,2,8142,0x15da200,32,ArrayFindIndexLoopLazyDeoptContinuation
code-creation,Builtin,2,8146,0x15da240,312,ArrayFindIndexLoopAfterCallbackLazyDeoptContinuation
code-creation,Builtin,2,8150,0x15da380,524,ArrayFindIndexLoopContinuation
code-creation,Builtin,2,8154,0x15da5a0,1460,ArrayPrototypeFindIndex
code-creation,Builtin,2,8157,0x15dab60,212,ArrayForEachLoopEagerDeoptContinuation
code-creation,Builtin,2,8160,0x15dac40,212,ArrayForEachLoopLazyDeoptContinuation
code-creation,Builtin,2,8164,0x15dad20,2628,ArrayForEachLoopContinuation
code-creation,Builtin,2,8168,0x15db780,1328,ArrayForEach
code-creation,Builtin,2,8171,0x15dbcc0,3560,ArrayFrom
code-creation,Builtin,2,8173,0x15dcac0,148,ArrayIsArray
code-creation,Builtin,2,8176,0x15dcb60,408,LoadJoinElement_DictionaryElements_0
code-creation,Builtin,2,8180,0x15dcd00,36,LoadJoinElement_FastSmiOrObjectElements_0
code-creation,Builtin,2,8184,0x15dcd40,140,LoadJoinElement_FastDoubleElements_0
code-creation,Builtin,2,8187,0x15dcde0,312,ConvertToLocaleString
code-creation,Builtin,2,8191,0x15dcf20,792,JoinStackPush
code-creation,Builtin,2,8194,0x15dd240,284,JoinStackPop
code-creation,Builtin,2,8197,0x15dd360,6700,ArrayPrototypeJoin
code-creation,Builtin,2,8200,0x15deda0,5412,ArrayPrototypeToLocaleString
code-creation,Builtin,2,8203,0x15e02e0,236,ArrayPrototypeToString
code-creation,Builtin,2,8206,0x15e03e0,6008,TypedArrayPrototypeJoin
code-creation,Builtin,2,8209,0x15e1b60,4692,TypedArrayPrototypeToLocaleString
code-creation,Builtin,2,8213,0x15e2dc0,3820,ArrayPrototypeLastIndexOf
code-creation,Builtin,2,8216,0x15e3cc0,260,ArrayMapPreLoopLazyDeoptContinuation
code-creation,Builtin,2,8220,0x15e3de0,252,ArrayMapLoopEagerDeoptContinuation
code-creation,Builtin,2,8224,0x15e3ee0,532,ArrayMapLoopLazyDeoptContinuation
code-creation,Builtin,2,8227,0x15e4100,2640,ArrayMapLoopContinuation
code-creation,Builtin,2,8230,0x15e4b60,3944,ArrayMap
code-creation,Builtin,2,8233,0x15e5ae0,996,ArrayOf
code-creation,Builtin,2,8236,0x15e5ee0,440,ArrayReduceRightPreLoopEagerDeoptContinuation
code-creation,Builtin,2,8239,0x15e60a0,204,ArrayReduceRightLoopEagerDeoptContinuation
code-creation,Builtin,2,8243,0x15e6180,204,ArrayReduceRightLoopLazyDeoptContinuation
code-creation,Builtin,2,8247,0x15e6260,2676,ArrayReduceRightLoopContinuation
code-creation,Builtin,2,8251,0x15e6ce0,1996,ArrayReduceRight
code-creation,Builtin,2,8254,0x15e74c0,176,ArrayReducePreLoopEagerDeoptContinuation
code-creation,Builtin,2,8258,0x15e7580,204,ArrayReduceLoopEagerDeoptContinuation
code-creation,Builtin,2,8261,0x15e7660,204,ArrayReduceLoopLazyDeoptContinuation
code-creation,Builtin,2,8265,0x15e7740,2704,ArrayReduceLoopContinuation
code-creation,Builtin,2,8268,0x15e81e0,1604,ArrayReduce
code-creation,Builtin,2,8271,0x15e8840,3264,ArrayPrototypeReverse
code-creation,Builtin,2,8274,0x15e9520,3640,ArrayPrototypeShift
code-creation,Builtin,2,8278,0x15ea360,5212,ArrayPrototypeSlice
code-creation,Builtin,2,8281,0x15eb7c0,212,ArraySomeLoopEagerDeoptContinuation
code-creation,Builtin,2,8284,0x15eb8a0,576,ArraySomeLoopLazyDeoptContinuation
code-creation,Builtin,2,8288,0x15ebb00,2720,ArraySomeLoopContinuation
code-creation,Builtin,2,8291,0x15ec5c0,1444,ArraySome
code-creation,Builtin,2,8294,0x15ecb80,14312,ArrayPrototypeSplice
code-creation,Builtin,2,8297,0x15f0380,3272,ArrayPrototypeUnshift
code-creation,Builtin,2,8300,0x15f1060,388,ArrayBufferPrototypeGetByteLength
code-creation,Builtin,2,8304,0x15f1200,388,SharedArrayBufferPrototypeGetByteLength
code-creation,Builtin,2,8308,0x15f13a0,388,ResizableArrayBufferPrototypeGetByteLength
code-creation,Builtin,2,8312,0x15f1540,388,ResizableArrayBufferPrototypeGetMaxByteLength
code-creation,Builtin,2,8316,0x15f16e0,388,GrowableSharedArrayBufferPrototypeGetMaxByteLength
code-creation,Builtin,2,8320,0x15f1880,96,ArrayBufferIsView
code-creation,Builtin,2,8325,0x15f1900,396,ToInteger
code-creation,Builtin,2,8328,0x15f1aa0,3192,FastCreateDataProperty
code-creation,Builtin,2,8331,0x15f2720,676,CheckNumberInRange
code-creation,Builtin,2,8335,0x15f29e0,584,CheckSameObject
code-creation,Builtin,2,8338,0x15f2c40,904,BooleanConstructor
code-creation,Builtin,2,8341,0x15f2fe0,164,BooleanPrototypeToString
code-creation,Builtin,2,8344,0x15f30a0,156,BooleanPrototypeValueOf
code-creation,Builtin,2,8347,0x15f3140,1180,BigIntAddNoThrow
code-creation,Builtin,2,8350,0x15f35e0,1276,BigIntAdd
code-creation,Builtin,2,8353,0x15f3ae0,1180,BigIntSubtractNoThrow
code-creation,Builtin,2,8356,0x15f3f80,1276,BigIntSubtract
code-creation,Builtin,2,8359,0x15f4480,284,BigIntUnaryMinus
code-creation,Builtin,2,8362,0x15f45a0,1388,ToString
code-creation,Builtin,2,8365,0x15f4b20,156,StringPrototypeToString
code-creation,Builtin,2,8369,0x15f4bc0,156,StringPrototypeValueOf
code-creation,Builtin,2,8372,0x15f4c60,2496,StringToList
code-creation,Builtin,2,8374,0x15f5640,1028,StringPrototypeCharAt
code-creation,Builtin,2,8378,0x15f5a60,700,StringPrototypeCharCodeAt
code-creation,Builtin,2,8381,0x15f5d20,1284,StringPrototypeCodePointAt
code-creation,Builtin,2,8384,0x15f6240,404,StringPrototypeConcat
code-creation,Builtin,2,8388,0x15f63e0,992,StringConstructor
code-creation,Builtin,2,8391,0x15f67e0,1464,StringAddConvertLeft
code-creation,Builtin,2,8394,0x15f6da0,1492,StringAddConvertRight
code-creation,Builtin,2,8397,0x15f7380,828,StringCharAt
code-creation,Builtin,2,8400,0x15f76c0,16,FastNewClosureBaseline
code-creation,Builtin,2,8403,0x15f76e0,196,FastNewFunctionContextEval
code-creation,Builtin,2,8406,0x15f77c0,196,FastNewFunctionContextFunction
code-creation,Builtin,2,8410,0x15f78a0,244,CreateRegExpLiteral
code-creation,Builtin,2,8413,0x15f79a0,1096,CreateShallowArrayLiteral
code-creation,Builtin,2,8416,0x15f7e00,532,CreateEmptyArrayLiteral
code-creation,Builtin,2,8420,0x15f8020,1752,CreateShallowObjectLiteral
code-creation,Builtin,2,8423,0x15f8700,380,ObjectConstructor
code-creation,Builtin,2,8426,0x15f8880,172,CreateEmptyLiteralObject
code-creation,Builtin,2,8429,0x15f8940,552,NumberConstructor
code-creation,Builtin,2,8432,0x15f8b80,64,GenericLazyDeoptContinuation
code-creation,Builtin,2,8436,0x15f8be0,64,StringToNumber
code-creation,Builtin,2,8439,0x15f8c40,184,NonNumberToNumber
code-creation,Builtin,2,8442,0x15f8d00,240,NonNumberToNumeric
code-creation,Builtin,2,8445,0x15f8e00,36,ToNumeric
code-creation,Builtin,2,8447,0x15f8e40,1212,NumberToString
code-creation,Builtin,2,8450,0x15f9300,92,ToBoolean
code-creation,Builtin,2,8453,0x15f9360,96,ToBooleanForBaselineJump
code-creation,Builtin,2,8457,0x15f93e0,724,ToLength
code-creation,Builtin,2,8459,0x15f96c0,1340,ToName
code-creation,Builtin,2,8462,0x15f9c00,756,ToObject
code-creation,Builtin,2,8465,0x15f9f00,208,NonPrimitiveToPrimitive_Default
code-creation,Builtin,2,8468,0x15f9fe0,208,NonPrimitiveToPrimitive_Number
code-creation,Builtin,2,8472,0x15fa0c0,208,NonPrimitiveToPrimitive_String
code-creation,Builtin,2,8475,0x15fa1a0,288,OrdinaryToPrimitive_Number
code-creation,Builtin,2,8478,0x15fa2e0,288,OrdinaryToPrimitive_String
code-creation,Builtin,2,8482,0x15fa420,216,FastConsoleAssert
code-creation,Builtin,2,8485,0x15fa500,160,DataViewPrototypeGetBuffer
code-creation,Builtin,2,8488,0x15fa5c0,336,DataViewPrototypeGetByteLength
code-creation,Builtin,2,8492,0x15fa720,336,DataViewPrototypeGetByteOffset
code-creation,Builtin,2,8495,0x15fa880,572,DataViewPrototypeGetUint8
code-creation,Builtin,2,8499,0x15faac0,572,DataViewPrototypeGetInt8
code-creation,Builtin,2,8502,0x15fad00,644,DataViewPrototypeGetUint16
code-creation,Builtin,2,8505,0x15fafa0,644,DataViewPrototypeGetInt16
code-creation,Builtin,2,8508,0x15fb240,808,DataViewPrototypeGetUint32
code-creation,Builtin,2,8512,0x15fb580,684,DataViewPrototypeGetInt32
code-creation,Builtin,2,8515,0x15fb840,844,DataViewPrototypeGetFloat32
code-creation,Builtin,2,8518,0x15fbba0,908,DataViewPrototypeGetFloat64
code-creation,Builtin,2,8522,0x15fbf40,980,DataViewPrototypeGetBigUint64
code-creation,Builtin,2,8527,0x15fc320,1000,DataViewPrototypeGetBigInt64
code-creation,Builtin,2,8531,0x15fc720,928,DataViewPrototypeSetUint8
code-creation,Builtin,2,8534,0x15fcae0,928,DataViewPrototypeSetInt8
code-creation,Builtin,2,8537,0x15fcea0,1028,DataViewPrototypeSetUint16
code-creation,Builtin,2,8541,0x15fd2c0,1028,DataViewPrototypeSetInt16
code-creation,Builtin,2,8544,0x15fd6e0,1064,DataViewPrototypeSetUint32
code-creation,Builtin,2,8547,0x15fdb20,1064,DataViewPrototypeSetInt32
code-creation,Builtin,2,8550,0x15fdf60,1032,DataViewPrototypeSetFloat32
code-creation,Builtin,2,8554,0x15fe380,1096,DataViewPrototypeSetFloat64
code-creation,Builtin,2,8557,0x15fe7e0,944,DataViewPrototypeSetBigUint64
code-creation,Builtin,2,8560,0x15feba0,944,DataViewPrototypeSetBigInt64
code-creation,Builtin,2,8564,0x15fef60,828,FinalizationRegistryConstructor
code-creation,Builtin,2,8567,0x15ff2a0,1244,FinalizationRegistryRegister
code-creation,Builtin,2,8571,0x15ff780,660,FinalizationRegistryPrototypeCleanupSome
code-creation,Builtin,2,8575,0x15ffa20,328,FunctionPrototypeHasInstance
code-creation,Builtin,2,8578,0x15ffb80,920,FastFunctionPrototypeBind
code-creation,Builtin,2,8581,0x15fff20,88,IncBlockCounter
code-creation,Builtin,2,8584,0x15fff80,252,GetTemplateObject
code-creation,Builtin,2,8587,0x1600080,28,BytecodeBudgetInterruptFromCode
code-creation,Builtin,2,8591,0x16000a0,92,ForInNext
code-creation,Builtin,2,8594,0x1600100,128,GetImportMetaObjectBaseline
code-creation,Builtin,2,8597,0x16001a0,116,GetIteratorWithFeedback
code-creation,Builtin,2,8601,0x1600220,100,GetIteratorBaseline
code-creation,Builtin,2,8604,0x16002a0,268,CreateAsyncFromSyncIteratorBaseline
code-creation,Builtin,2,8607,0x16003c0,1128,CallIteratorWithFeedback
code-creation,Builtin,2,8610,0x1600840,288,MathAbs
code-creation,Builtin,2,8613,0x1600980,424,MathCeil
code-creation,Builtin,2,8616,0x1600b40,432,MathFloor
code-creation,Builtin,2,8619,0x1600d00,488,MathRound
code-creation,Builtin,2,8622,0x1600f00,428,MathTrunc
code-creation,Builtin,2,8625,0x16010c0,364,MathPow
code-creation,Builtin,2,8627,0x1601240,396,MathMax
code-creation,Builtin,2,8630,0x16013e0,400,MathMin
code-creation,Builtin,2,8633,0x1601580,316,MathAcos
code-creation,Builtin,2,8635,0x16016c0,316,MathAcosh
code-creation,Builtin,2,8638,0x1601800,316,MathAsin
code-creation,Builtin,2,8641,0x1601940,316,MathAsinh
code-creation,Builtin,2,8644,0x1601a80,316,MathAtan
code-creation,Builtin,2,8647,0x1601bc0,412,MathAtan2
code-creation,Builtin,2,8649,0x1601d60,316,MathAtanh
code-creation,Builtin,2,8652,0x1601ea0,316,MathCbrt
code-creation,Builtin,2,8655,0x1601fe0,168,MathClz32
code-creation,Builtin,2,8658,0x16020a0,316,MathCos
code-creation,Builtin,2,8660,0x16021e0,316,MathCosh
code-creation,Builtin,2,8663,0x1602320,316,MathExp
code-creation,Builtin,2,8666,0x1602460,316,MathExpm1
code-creation,Builtin,2,8669,0x16025a0,272,MathFround
code-creation,Builtin,2,8672,0x16026c0,304,MathImul
code-creation,Builtin,2,8674,0x1602800,316,MathLog
code-creation,Builtin,2,8677,0x1602940,316,MathLog1p
code-creation,Builtin,2,8680,0x1602a80,316,MathLog10
code-creation,Builtin,2,8682,0x1602bc0,316,MathLog2
code-creation,Builtin,2,8685,0x1602d00,316,MathSin
code-creation,Builtin,2,8688,0x1602e40,180,MathSign
code-creation,Builtin,2,8691,0x1602f00,316,MathSinh
code-creation,Builtin,2,8693,0x1603040,268,MathSqrt
code-creation,Builtin,2,8696,0x1603160,316,MathTan
code-creation,Builtin,2,8699,0x16032a0,316,MathTanh
code-creation,Builtin,2,8701,0x16033e0,1048,MathHypot
code-creation,Builtin,2,8704,0x1603800,316,MathRandom
code-creation,Builtin,2,8707,0x1603940,2984,NumberPrototypeToString
code-creation,Builtin,2,8710,0x1604500,136,NumberIsFinite
code-creation,Builtin,2,8713,0x16045a0,344,NumberIsInteger
code-creation,Builtin,2,8716,0x1604700,116,NumberIsNaN
code-creation,Builtin,2,8719,0x1604780,372,NumberIsSafeInteger
code-creation,Builtin,2,8722,0x1604900,160,NumberPrototypeValueOf
code-creation,Builtin,2,8725,0x16049c0,196,NumberParseFloat
code-creation,Builtin,2,8729,0x1604aa0,248,ParseInt
code-creation,Builtin,2,8731,0x1604ba0,84,NumberParseInt
code-creation,Builtin,2,8737,0x1604c00,856,Add
code-creation,Builtin,2,8740,0x1604f60,424,Subtract
code-creation,Builtin,2,8743,0x1605120,608,Multiply
code-creation,Builtin,2,8746,0x16053a0,532,Divide
code-creation,Builtin,2,8748,0x16055c0,588,Modulus
code-creation,Builtin,2,8751,0x1605820,524,Exponentiate
code-creation,Builtin,2,8754,0x1605a40,340,Negate
code-creation,Builtin,2,8757,0x1605ba0,112,BitwiseNot
code-creation,Builtin,2,8760,0x1605c20,112,Decrement
code-creation,Builtin,2,8762,0x1605ca0,112,Increment
code-creation,Builtin,2,8765,0x1605d20,392,ShiftLeft
code-creation,Builtin,2,8769,0x1605ec0,392,ShiftRight
code-creation,Builtin,2,8775,0x1606060,508,ShiftRightLogical
code-creation,Builtin,2,8781,0x1606260,388,BitwiseAnd
code-creation,Builtin,2,8785,0x1606400,388,BitwiseOr
code-creation,Builtin,2,8789,0x16065a0,388,BitwiseXor
code-creation,Builtin,2,8793,0x1606740,796,LessThan
code-creation,Builtin,2,8798,0x1606a60,796,LessThanOrEqual
code-creation,Builtin,2,8802,0x1606d80,796,GreaterThan
code-creation,Builtin,2,8806,0x16070a0,796,GreaterThanOrEqual
code-creation,Builtin,2,8811,0x16073c0,860,Equal
code-creation,Builtin,2,8815,0x1607720,348,StrictEqual
code-creation,Builtin,2,8820,0x1607880,3036,ObjectFromEntries
code-creation,Builtin,2,8824,0x1608460,752,CreateObjectWithoutProperties
code-creation,Builtin,2,8828,0x1608760,144,ObjectIsExtensible
code-creation,Builtin,2,8833,0x1608800,148,ObjectPreventExtensions
code-creation,Builtin,2,8837,0x16088a0,144,ObjectGetPrototypeOf
code-creation,Builtin,2,8841,0x1608940,300,ObjectSetPrototypeOf
code-creation,Builtin,2,8845,0x1608a80,80,ObjectPrototypeToString
code-creation,Builtin,2,8850,0x1608ae0,96,ObjectPrototypeValueOf
code-creation,Builtin,2,8854,0x1608b60,164,ObjectPrototypeToLocaleString
code-creation,Builtin,2,8859,0x1608c20,924,FulfillPromise
code-creation,Builtin,2,8863,0x1608fc0,1064,RejectPromise
code-creation,Builtin,2,8867,0x1609400,2488,NewPromiseCapability
code-creation,Builtin,2,8871,0x1609dc0,164,PromiseCapabilityDefaultReject
code-creation,Builtin,2,8876,0x1609e80,148,PromiseCapabilityDefaultResolve
code-creation,Builtin,2,8881,0x1609f20,1428,PerformPromiseThen
code-creation,Builtin,2,8885,0x160a4c0,648,PromiseReject
code-creation,Builtin,2,8889,0x160a760,332,PromiseGetCapabilitiesExecutor
code-creation,Builtin,2,8894,0x160a8c0,104,PromiseConstructorLazyDeoptContinuation
code-creation,Builtin,2,8900,0x160a940,4604,PromiseAll
code-creation,Builtin,2,8904,0x160bb40,4944,PromiseAllSettled
code-creation,Builtin,2,8909,0x160cea0,1152,PromiseAllResolveElementClosure
code-creation,Builtin,2,8913,0x160d340,1436,PromiseAllSettledResolveElementClosure
code-creation,Builtin,2,8919,0x160d8e0,1440,PromiseAllSettledRejectElementClosure
code-creation,Builtin,2,8924,0x160dea0,1224,PromiseAnyRejectElementClosure
code-creation,Builtin,2,8929,0x160e380,2388,PromiseAny
code-creation,Builtin,2,8933,0x160ece0,2940,PromiseConstructor
code-creation,Builtin,2,8938,0x160f860,296,PromisePrototypeCatch
code-creation,Builtin,2,8943,0x160f9a0,88,PromiseValueThunkFinally
code-creation,Builtin,2,8948,0x160fa00,84,PromiseThrowerFinally
code-creation,Builtin,2,8954,0x160fa60,924,PromiseCatchFinally
code-creation,Builtin,2,8959,0x160fe00,924,PromiseThenFinally
code-creation,Builtin,2,8962,0x16101a0,1748,PromisePrototypeFinally
code-creation,Builtin,2,8965,0x1610880,1336,PromiseRace
code-creation,Builtin,2,8969,0x1610dc0,268,PromiseFulfillReactionJob
code-creation,Builtin,2,8972,0x1610ee0,364,PromiseRejectReactionJob
code-creation,Builtin,2,8976,0x1611060,156,PromiseResolveTrampoline
code-creation,Builtin,2,8979,0x1611100,652,PromiseResolve
code-creation,Builtin,2,8982,0x16113a0,708,ResolvePromise
code-creation,Builtin,2,8985,0x1611680,2236,PromisePrototypeThen
code-creation,Builtin,2,8988,0x1611f40,1184,PromiseResolveThenableJob
code-creation,Builtin,2,8991,0x1612400,444,ProxyConstructor
code-creation,Builtin,2,8995,0x16125c0,1760,ProxyDeleteProperty
code-creation,Builtin,2,9000,0x1612cc0,2108,ProxyGetProperty
code-creation,Builtin,2,9007,0x1613500,1060,ProxyGetPrototypeOf
code-creation,Builtin,2,9018,0x1613940,1668,ProxyHasProperty
code-creation,Builtin,2,9024,0x1613fe0,760,ProxyIsExtensible
code-creation,Builtin,2,9030,0x16142e0,800,ProxyPreventExtensions
code-creation,Builtin,2,9034,0x1614620,1168,ProxyRevocable
code-creation,Builtin,2,9039,0x1614ac0,120,ProxyRevoke
code-creation,Builtin,2,9043,0x1614b40,2204,ProxySetProperty
code-creation,Builtin,2,9048,0x16153e0,1292,ProxySetPrototypeOf
code-creation,Builtin,2,9053,0x1615900,208,ReflectIsExtensible
code-creation,Builtin,2,9058,0x16159e0,212,ReflectPreventExtensions
code-creation,Builtin,2,9062,0x1615ac0,188,ReflectGetPrototypeOf
code-creation,Builtin,2,9065,0x1615b80,292,ReflectSetPrototypeOf
code-creation,Builtin,2,9068,0x1615cc0,284,ReflectGet
code-creation,Builtin,2,9072,0x1615de0,160,ReflectDeleteProperty
code-creation,Builtin,2,9075,0x1615ea0,148,ReflectHas
code-creation,Builtin,2,9078,0x1615f40,5280,RegExpPrototypeExecSlow
code-creation,Builtin,2,9081,0x1617400,5268,RegExpPrototypeExec
code-creation,Builtin,2,9084,0x16188a0,2360,RegExpPrototypeMatchAll
code-creation,Builtin,2,9087,0x16191e0,9544,RegExpStringIteratorPrototypeNext
code-creation,Builtin,2,9091,0x161b740,9008,RegExpMatchFast
code-creation,Builtin,2,9094,0x161da80,3596,RegExpPrototypeMatch
code-creation,Builtin,2,9097,0x161e8a0,6368,RegExpReplace
code-creation,Builtin,2,9100,0x16201a0,524,RegExpPrototypeReplace
code-creation,Builtin,2,9104,0x16203c0,1428,RegExpSearchFast
code-creation,Builtin,2,9107,0x1620960,1636,RegExpPrototypeSearch
code-creation,Builtin,2,9110,0x1620fe0,200,RegExpPrototypeSourceGetter
code-creation,Builtin,2,9113,0x16210c0,5880,RegExpSplit
code-creation,Builtin,2,9116,0x16227c0,476,RegExpPrototypeSplit
code-creation,Builtin,2,9119,0x16229a0,2260,RegExpPrototypeTest
code-creation,Builtin,2,9123,0x1623280,1372,RegExpPrototypeTestFast
code-creation,Builtin,2,9126,0x16237e0,228,RegExpPrototypeGlobalGetter
code-creation,Builtin,2,9129,0x16238e0,244,RegExpPrototypeIgnoreCaseGetter
code-creation,Builtin,2,9133,0x16239e0,244,RegExpPrototypeMultilineGetter
code-creation,Builtin,2,9136,0x1623ae0,244,RegExpPrototypeHasIndicesGetter
code-creation,Builtin,2,9140,0x1623be0,244,RegExpPrototypeLinearGetter
code-creation,Builtin,2,9143,0x1623ce0,244,RegExpPrototypeDotAllGetter
code-creation,Builtin,2,9146,0x1623de0,272,RegExpPrototypeStickyGetter
code-creation,Builtin,2,9150,0x1623f00,272,RegExpPrototypeUnicodeGetter
code-creation,Builtin,2,9153,0x1624020,2268,RegExpPrototypeFlagsGetter
code-creation,Builtin,2,9157,0x1624900,1516,StringPrototypeAt
code-creation,Builtin,2,9160,0x1624f00,2992,StringPrototypeEndsWith
code-creation,Builtin,2,9164,0x1625ac0,480,CreateHTML
code-creation,Builtin,2,9166,0x1625cc0,164,StringPrototypeAnchor
code-creation,Builtin,2,9169,0x1625d80,128,StringPrototypeBig
code-creation,Builtin,2,9173,0x1625e20,128,StringPrototypeBlink
code-creation,Builtin,2,9176,0x1625ec0,128,StringPrototypeBold
code-creation,Builtin,2,9179,0x1625f60,168,StringPrototypeFontcolor
code-creation,Builtin,2,9182,0x1626020,168,StringPrototypeFontsize
code-creation,Builtin,2,9186,0x16260e0,128,StringPrototypeFixed
code-creation,Builtin,2,9189,0x1626180,128,StringPrototypeItalics
code-creation,Builtin,2,9192,0x1626220,168,StringPrototypeLink
code-creation,Builtin,2,9195,0x16262e0,128,StringPrototypeSmall
code-creation,Builtin,2,9198,0x1626380,128,StringPrototypeStrike
code-creation,Builtin,2,9201,0x1626420,128,StringPrototypeSub
code-creation,Builtin,2,9204,0x16264c0,128,StringPrototypeSup
code-creation,Builtin,2,9208,0x1626560,1028,StringPrototypeIncludes
code-creation,Builtin,2,9211,0x1626980,628,StringPrototypeIndexOf
code-creation,Builtin,2,9214,0x1626c00,344,StringPrototypeIterator
code-creation,Builtin,2,9217,0x1626d60,2044,StringIteratorPrototypeNext
code-creation,Builtin,2,9220,0x1627560,1304,StringPrototypeMatch
code-creation,Builtin,2,9224,0x1627a80,1304,StringPrototypeSearch
code-creation,Builtin,2,9227,0x1627fa0,824,StringPrototypePadStart
code-creation,Builtin,2,9230,0x16282e0,828,StringPrototypePadEnd
code-creation,Builtin,2,9233,0x1628620,120,StringRepeat
code-creation,Builtin,2,9239,0x16286a0,396,StringPrototypeRepeat
code-creation,Builtin,2,9243,0x1628840,10976,StringPrototypeReplaceAll
code-creation,Builtin,2,9246,0x162b340,3400,StringPrototypeSlice
code-creation,Builtin,2,9249,0x162c0a0,3004,StringPrototypeStartsWith
code-creation,Builtin,2,9252,0x162cc60,3340,StringPrototypeSubstr
code-creation,Builtin,2,9256,0x162d980,3276,StringPrototypeSubstring
code-creation,Builtin,2,9259,0x162e660,6928,StringPrototypeTrim
code-creation,Builtin,2,9262,0x1630180,6336,StringPrototypeTrimStart
code-creation,Builtin,2,9265,0x1631a60,5860,StringPrototypeTrimEnd
code-creation,Builtin,2,9269,0x1633160,160,SymbolPrototypeDescriptionGetter
code-creation,Builtin,2,9272,0x1633220,156,SymbolPrototypeToPrimitive
code-creation,Builtin,2,9275,0x16332c0,172,SymbolPrototypeToString
code-creation,Builtin,2,9279,0x1633380,156,SymbolPrototypeValueOf
code-creation,Builtin,2,9282,0x1633420,828,TypedArrayPrototypeAt
code-creation,Builtin,2,9285,0x1633760,9796,CreateTypedArray
code-creation,Builtin,2,9288,0x1635dc0,996,TypedArrayPrototypeEvery
code-creation,Builtin,2,9292,0x16361c0,372,TypedArrayPrototypeEntries
code-creation,Builtin,2,9295,0x1636340,3504,TypedArrayPrototypeFilter
code-creation,Builtin,2,9298,0x1637100,996,TypedArrayPrototypeFind
code-creation,Builtin,2,9302,0x1637500,1000,TypedArrayPrototypeFindIndex
code-creation,Builtin,2,9305,0x1637900,864,TypedArrayPrototypeForEach
code-creation,Builtin,2,9308,0x1637c80,2348,TypedArrayFrom
code-creation,Builtin,2,9311,0x16385c0,356,TypedArrayPrototypeKeys
code-creation,Builtin,2,9315,0x1638740,1028,TypedArrayOf
code-creation,Builtin,2,9317,0x1638b60,952,TypedArrayPrototypeReduce
code-creation,Builtin,2,9321,0x1638f20,944,TypedArrayPrototypeReduceRight
code-creation,Builtin,2,9324,0x16392e0,2408,TypedArrayPrototypeSet
code-creation,Builtin,2,9327,0x1639c60,2952,TypedArrayPrototypeSlice
code-creation,Builtin,2,9330,0x163a800,992,TypedArrayPrototypeSome
code-creation,Builtin,2,9334,0x163ac00,1116,TypedArrayMergeSort
code-creation,Builtin,2,9337,0x163b060,1652,TypedArrayPrototypeSort
code-creation,Builtin,2,9340,0x163b6e0,2724,TypedArrayPrototypeSubArray
code-creation,Builtin,2,9344,0x163c1a0,372,TypedArrayPrototypeValues
code-creation,Builtin,2,9347,0x163c320,972,WeakRefConstructor
code-creation,Builtin,2,9350,0x163c700,184,WeakRefDeref
code-creation,Builtin,2,9353,0x163c7c0,680,NewSloppyArgumentsElements
code-creation,Builtin,2,9356,0x163ca80,296,NewStrictArgumentsElements
code-creation,Builtin,2,9360,0x163cbc0,320,NewRestArgumentsElements
code-creation,Builtin,2,9363,0x163cd20,1388,FastNewSloppyArguments
code-creation,Builtin,2,9366,0x163d2a0,524,FastNewStrictArguments
code-creation,Builtin,2,9370,0x163d4c0,552,FastNewRestArguments
code-creation,Builtin,2,9373,0x163d700,696,StringSlowFlatten
code-creation,Builtin,2,9376,0x163d9c0,2000,StringIndexOf
code-creation,Builtin,2,9379,0x163e1a0,4,GenericBuiltinTest_JSAny_0
code-creation,Builtin,2,9382,0x163e1c0,20,TestHelperPlus1
code-creation,Builtin,2,9385,0x163e1e0,20,TestHelperPlus2
code-creation,Builtin,2,9388,0x163e200,96,NewSmiBox
code-creation,Builtin,2,9391,0x163e280,24,ReturnTwoValues
code-creation,Builtin,2,9394,0x163e2a0,32,Load_FastSmiElements_0
code-creation,Builtin,2,9397,0x163e2e0,32,Load_FastObjectElements_0
code-creation,Builtin,2,9401,0x163e320,144,Load_FastDoubleElements_0
code-creation,Builtin,2,9404,0x163e3c0,32,Store_FastSmiElements_0
code-creation,Builtin,2,9407,0x163e400,112,Store_FastObjectElements_0
code-creation,Builtin,2,9412,0x163e480,48,Store_FastDoubleElements_0
code-creation,Builtin,2,9415,0x163e4c0,36,Delete_FastSmiElements_0
code-creation,Builtin,2,9418,0x163e500,36,Delete_FastObjectElements_0
code-creation,Builtin,2,9422,0x163e540,44,Delete_FastDoubleElements_0
code-creation,Builtin,2,9425,0x163e580,308,SortCompareDefault
code-creation,Builtin,2,9428,0x163e6c0,92,SortCompareUserFn
code-creation,Builtin,2,9431,0x163e720,8,CanUseSameAccessor_GenericElementsAccessor_0
code-creation,Builtin,2,9435,0x163e740,340,Copy
code-creation,Builtin,2,9438,0x163e8a0,5988,MergeAt
code-creation,Builtin,2,9443,0x1640020,792,GallopLeft
code-creation,Builtin,2,9446,0x1640340,832,GallopRight
code-creation,Builtin,2,9449,0x16406a0,3952,ArrayTimSort
code-creation,Builtin,2,9452,0x1641620,2116,ArrayPrototypeSort
code-creation,Builtin,2,9455,0x1641e80,100,WasmInt32ToHeapNumber
code-creation,Builtin,2,9458,0x1641f00,124,WasmTaggedNonSmiToInt32
code-creation,Builtin,2,9462,0x1641f80,76,WasmTaggedToFloat64
code-creation,Builtin,2,9465,0x1641fe0,72,WasmMemoryGrow
code-creation,Builtin,2,9468,0x1642040,100,WasmTableInit
code-creation,Builtin,2,9471,0x16420c0,100,WasmTableCopy
code-creation,Builtin,2,9474,0x1642140,84,WasmTableFill
code-creation,Builtin,2,9477,0x16421a0,72,WasmTableGrow
code-creation,Builtin,2,9480,0x1642200,144,WasmTableGet
code-creation,Builtin,2,9483,0x16422a0,252,WasmTableSet
code-creation,Builtin,2,9486,0x16423a0,88,WasmRefFunc
code-creation,Builtin,2,9489,0x1642400,144,WasmAllocateFixedArray
code-creation,Builtin,2,9493,0x16424a0,44,WasmThrow
code-creation,Builtin,2,9495,0x16424e0,52,WasmRethrow
code-creation,Builtin,2,9498,0x1642520,44,WasmTriggerTierUp
code-creation,Builtin,2,9501,0x1642560,32,WasmStackGuard
code-creation,Builtin,2,9504,0x16425a0,32,WasmStackOverflow
code-creation,Builtin,2,9508,0x16425e0,40,WasmTraceMemory
code-creation,Builtin,2,9511,0x1642620,32,WasmTraceEnter
code-creation,Builtin,2,9514,0x1642660,40,WasmTraceExit
code-creation,Builtin,2,9517,0x16426a0,332,WasmAllocateJSArray
code-creation,Builtin,2,9520,0x1642800,104,WasmAllocatePair
code-creation,Builtin,2,9523,0x1642880,48,WasmAllocateRtt
code-creation,Builtin,2,9526,0x16428c0,112,WasmAllocateStructWithRtt
code-creation,Builtin,2,9529,0x1642940,128,WasmAllocateArrayWithRtt
code-creation,Builtin,2,9533,0x16429e0,240,WasmAllocateObjectWrapper
code-creation,Builtin,2,9536,0x1642ae0,52,WasmSubtypeCheck
code-creation,Builtin,2,9539,0x1642b20,8,WasmInt32ToNumber
code-creation,Builtin,2,9543,0x1642b40,116,WasmUint32ToNumber
code-creation,Builtin,2,9546,0x1642bc0,144,UintPtr53ToNumber
code-creation,Builtin,2,9549,0x1642c60,96,WasmAtomicNotify
code-creation,Builtin,2,9552,0x1642ce0,116,WasmI32AtomicWait64
code-creation,Builtin,2,9555,0x1642d60,116,WasmI64AtomicWait64
code-creation,Builtin,2,9558,0x1642de0,580,WasmGetOwnProperty
code-creation,Builtin,2,9561,0x1643040,40,WasmTrap
code-creation,Builtin,2,9564,0x1643080,16,ThrowWasmTrapUnreachable
code-creation,Builtin,2,9568,0x16430a0,16,ThrowWasmTrapMemOutOfBounds
code-creation,Builtin,2,9571,0x16430c0,16,ThrowWasmTrapUnalignedAccess
code-creation,Builtin,2,9574,0x16430e0,16,ThrowWasmTrapDivByZero
code-creation,Builtin,2,9578,0x1643100,16,ThrowWasmTrapDivUnrepresentable
code-creation,Builtin,2,9581,0x1643120,16,ThrowWasmTrapRemByZero
code-creation,Builtin,2,9584,0x1643140,16,ThrowWasmTrapFloatUnrepresentable
code-creation,Builtin,2,9588,0x1643160,16,ThrowWasmTrapFuncSigMismatch
code-creation,Builtin,2,9591,0x1643180,16,ThrowWasmTrapDataSegmentDropped
code-creation,Builtin,2,9595,0x16431a0,16,ThrowWasmTrapElemSegmentDropped
code-creation,Builtin,2,9599,0x16431c0,16,ThrowWasmTrapTableOutOfBounds
code-creation,Builtin,2,9602,0x16431e0,16,ThrowWasmTrapRethrowNull
code-creation,Builtin,2,9605,0x1643200,16,ThrowWasmTrapNullDereference
code-creation,Builtin,2,9609,0x1643220,16,ThrowWasmTrapIllegalCast
code-creation,Builtin,2,9612,0x1643240,16,ThrowWasmTrapArrayOutOfBounds
code-creation,Builtin,2,9615,0x1643260,168,LoadJoinElement_GenericElementsAccessor_0
code-creation,Builtin,2,9619,0x1643320,24,LoadJoinTypedElement_Int32Elements_0
code-creation,Builtin,2,9623,0x1643340,112,LoadJoinTypedElement_Float32Elements_0
code-creation,Builtin,2,9627,0x16433c0,108,LoadJoinTypedElement_Float64Elements_0
code-creation,Builtin,2,9631,0x1643440,24,LoadJoinTypedElement_Uint8ClampedElements_0
code-creation,Builtin,2,9634,0x1643460,220,LoadJoinTypedElement_BigUint64Elements_0
code-creation,Builtin,2,9638,0x1643540,248,LoadJoinTypedElement_BigInt64Elements_0
code-creation,Builtin,2,9642,0x1643640,24,LoadJoinTypedElement_Uint8Elements_0
code-creation,Builtin,2,9645,0x1643660,24,LoadJoinTypedElement_Int8Elements_0
code-creation,Builtin,2,9652,0x1643680,24,LoadJoinTypedElement_Uint16Elements_0
code-creation,Builtin,2,9656,0x16436a0,24,LoadJoinTypedElement_Int16Elements_0
code-creation,Builtin,2,9659,0x16436c0,132,LoadJoinTypedElement_Uint32Elements_0
code-creation,Builtin,2,9663,0x1643760,8,GenericBuiltinTest_Smi_0
code-creation,Builtin,2,9666,0x1643780,32,CanUseSameAccessor_FastDoubleElements_0
code-creation,Builtin,2,9670,0x16437c0,32,CanUseSameAccessor_FastSmiElements_0
code-creation,Builtin,2,9673,0x1643800,32,CanUseSameAccessor_FastObjectElements_0
code-creation,Builtin,2,9677,0x1643840,2196,Load_GenericElementsAccessor_0
code-creation,Builtin,2,9681,0x16440e0,24,Store_GenericElementsAccessor_0
code-creation,Builtin,2,9684,0x1644100,36,Delete_GenericElementsAccessor_0
code-creation,Builtin,2,9688,0x1644140,24,LoadTypedElement_Int32Elements_0
code-creation,Builtin,2,9693,0x1644160,164,StoreTypedElementNumeric_Int32Elements_0
code-creation,Builtin,2,9701,0x1644220,180,StoreTypedElementJSAny_Int32Elements_0
code-creation,Builtin,2,9708,0x16442e0,112,LoadTypedElement_Float32Elements_0
code-creation,Builtin,2,9713,0x1644360,32,StoreTypedElementNumeric_Float32Elements_0
code-creation,Builtin,2,9719,0x16443a0,156,StoreTypedElementJSAny_Float32Elements_0
code-creation,Builtin,2,9725,0x1644440,108,LoadTypedElement_Float64Elements_0
code-creation,Builtin,2,9731,0x16444c0,28,StoreTypedElementNumeric_Float64Elements_0
code-creation,Builtin,2,9737,0x16444e0,152,StoreTypedElementJSAny_Float64Elements_0
code-creation,Builtin,2,9744,0x1644580,24,LoadTypedElement_Uint8ClampedElements_0
code-creation,Builtin,2,9749,0x16445a0,24,StoreTypedElementNumeric_Uint8ClampedElements_0
code-creation,Builtin,2,9756,0x16445c0,620,StoreTypedElementJSAny_Uint8ClampedElements_0
code-creation,Builtin,2,9762,0x1644840,220,LoadTypedElement_BigUint64Elements_0
code-creation,Builtin,2,9767,0x1644920,56,StoreTypedElementNumeric_BigUint64Elements_0
code-creation,Builtin,2,9773,0x1644960,200,StoreTypedElementJSAny_BigUint64Elements_0
code-creation,Builtin,2,9779,0x1644a40,248,LoadTypedElement_BigInt64Elements_0
code-creation,Builtin,2,9785,0x1644b40,56,StoreTypedElementNumeric_BigInt64Elements_0
code-creation,Builtin,2,9791,0x1644b80,200,StoreTypedElementJSAny_BigInt64Elements_0
code-creation,Builtin,2,9798,0x1644c60,24,LoadTypedElement_Uint8Elements_0
code-creation,Builtin,2,9802,0x1644c80,24,StoreTypedElementNumeric_Uint8Elements_0
code-creation,Builtin,2,9806,0x1644ca0,180,StoreTypedElementJSAny_Uint8Elements_0
code-creation,Builtin,2,9810,0x1644d60,24,LoadTypedElement_Int8Elements_0
code-creation,Builtin,2,9813,0x1644d80,24,StoreTypedElementNumeric_Int8Elements_0
code-creation,Builtin,2,9817,0x1644da0,180,StoreTypedElementJSAny_Int8Elements_0
code-creation,Builtin,2,9821,0x1644e60,24,LoadTypedElement_Uint16Elements_0
code-creation,Builtin,2,9824,0x1644e80,24,StoreTypedElementNumeric_Uint16Elements_0
code-creation,Builtin,2,9828,0x1644ea0,180,StoreTypedElementJSAny_Uint16Elements_0
code-creation,Builtin,2,9832,0x1644f60,24,LoadTypedElement_Int16Elements_0
code-creation,Builtin,2,9836,0x1644f80,24,StoreTypedElementNumeric_Int16Elements_0
code-creation,Builtin,2,9840,0x1644fa0,180,StoreTypedElementJSAny_Int16Elements_0
code-creation,Builtin,2,9844,0x1645060,132,LoadTypedElement_Uint32Elements_0
code-creation,Builtin,2,9848,0x1645100,164,StoreTypedElementNumeric_Uint32Elements_0
code-creation,Builtin,2,9852,0x16451c0,180,StoreTypedElementJSAny_Uint32Elements_0
code-creation,Builtin,2,9855,0x1645280,12,CollatorConstructor
code-creation,Builtin,2,9858,0x16452a0,12,CollatorInternalCompare
code-creation,Builtin,2,9862,0x16452c0,12,CollatorPrototypeCompare
code-creation,Builtin,2,9865,0x16452e0,12,CollatorSupportedLocalesOf
code-creation,Builtin,2,9868,0x1645300,12,CollatorPrototypeResolvedOptions
code-creation,Builtin,2,9872,0x1645320,12,DatePrototypeToLocaleDateString
code-creation,Builtin,2,9876,0x1645340,12,DatePrototypeToLocaleString
code-creation,Builtin,2,9879,0x1645360,12,DatePrototypeToLocaleTimeString
code-creation,Builtin,2,9883,0x1645380,12,DateTimeFormatConstructor
code-creation,Builtin,2,9890,0x16453a0,12,DateTimeFormatInternalFormat
code-creation,Builtin,2,9893,0x16453c0,12,DateTimeFormatPrototypeFormat
code-creation,Builtin,2,9897,0x16453e0,12,DateTimeFormatPrototypeFormatRange
code-creation,Builtin,2,9900,0x1645400,12,DateTimeFormatPrototypeFormatRangeToParts
code-creation,Builtin,2,9904,0x1645420,12,DateTimeFormatPrototypeFormatToParts
code-creation,Builtin,2,9908,0x1645440,12,DateTimeFormatPrototypeResolvedOptions
code-creation,Builtin,2,9912,0x1645460,12,DateTimeFormatSupportedLocalesOf
code-creation,Builtin,2,9916,0x1645480,12,DisplayNamesConstructor
code-creation,Builtin,2,9919,0x16454a0,12,DisplayNamesPrototypeOf
code-creation,Builtin,2,9922,0x16454c0,12,DisplayNamesPrototypeResolvedOptions
code-creation,Builtin,2,10240,0x16454e0,12,DisplayNamesSupportedLocalesOf
code-creation,Builtin,2,10246,0x1645500,12,IntlGetCanonicalLocales
code-creation,Builtin,2,10249,0x1645520,12,ListFormatConstructor
code-creation,Builtin,2,10253,0x1645540,224,ListFormatPrototypeFormat
code-creation,Builtin,2,10256,0x1645640,224,ListFormatPrototypeFormatToParts
code-creation,Builtin,2,10259,0x1645740,12,ListFormatPrototypeResolvedOptions
code-creation,Builtin,2,10263,0x1645760,12,ListFormatSupportedLocalesOf
code-creation,Builtin,2,10266,0x1645780,12,LocaleConstructor
code-creation,Builtin,2,10270,0x16457a0,12,LocalePrototypeBaseName
code-creation,Builtin,2,10273,0x16457c0,12,LocalePrototypeCalendar
code-creation,Builtin,2,10276,0x16457e0,12,LocalePrototypeCalendars
code-creation,Builtin,2,10280,0x1645800,12,LocalePrototypeCaseFirst
code-creation,Builtin,2,10290,0x1645820,12,LocalePrototypeCollation
code-creation,Builtin,2,10296,0x1645840,12,LocalePrototypeCollations
tick,0x7f4debe49947,10306,0,0x0,6
code-creation,Builtin,2,10335,0x1645860,12,LocalePrototypeHourCycle
code-creation,Builtin,2,10341,0x1645880,12,LocalePrototypeHourCycles
code-creation,Builtin,2,10344,0x16458a0,12,LocalePrototypeLanguage
code-creation,Builtin,2,10347,0x16458c0,12,LocalePrototypeMaximize
code-creation,Builtin,2,10351,0x16458e0,12,LocalePrototypeMinimize
code-creation,Builtin,2,10354,0x1645900,12,LocalePrototypeNumeric
code-creation,Builtin,2,10358,0x1645920,12,LocalePrototypeNumberingSystem
code-creation,Builtin,2,10361,0x1645940,12,LocalePrototypeNumberingSystems
code-creation,Builtin,2,10365,0x1645960,12,LocalePrototypeRegion
code-creation,Builtin,2,10368,0x1645980,12,LocalePrototypeScript
code-creation,Builtin,2,10371,0x16459a0,12,LocalePrototypeTextInfo
code-creation,Builtin,2,10375,0x16459c0,12,LocalePrototypeTimeZones
code-creation,Builtin,2,10378,0x16459e0,12,LocalePrototypeToString
code-creation,Builtin,2,10381,0x1645a00,12,LocalePrototypeWeekInfo
code-creation,Builtin,2,10385,0x1645a20,12,NumberFormatConstructor
code-creation,Builtin,2,10388,0x1645a40,12,NumberFormatInternalFormatNumber
code-creation,Builtin,2,10391,0x1645a60,12,NumberFormatPrototypeFormatNumber
code-creation,Builtin,2,10395,0x1645a80,12,NumberFormatPrototypeFormatToParts
code-creation,Builtin,2,10398,0x1645aa0,12,NumberFormatPrototypeResolvedOptions
code-creation,Builtin,2,10402,0x1645ac0,12,NumberFormatSupportedLocalesOf
code-creation,Builtin,2,10405,0x1645ae0,12,PluralRulesConstructor
code-creation,Builtin,2,10409,0x1645b00,12,PluralRulesPrototypeResolvedOptions
code-creation,Builtin,2,10413,0x1645b20,12,PluralRulesPrototypeSelect
code-creation,Builtin,2,10416,0x1645b40,12,PluralRulesSupportedLocalesOf
code-creation,Builtin,2,10420,0x1645b60,12,RelativeTimeFormatConstructor
code-creation,Builtin,2,10423,0x1645b80,12,RelativeTimeFormatPrototypeFormat
code-creation,Builtin,2,10427,0x1645ba0,12,RelativeTimeFormatPrototypeFormatToParts
code-creation,Builtin,2,10430,0x1645bc0,12,RelativeTimeFormatPrototypeResolvedOptions
code-creation,Builtin,2,10434,0x1645be0,12,RelativeTimeFormatSupportedLocalesOf
code-creation,Builtin,2,10438,0x1645c00,12,SegmenterConstructor
code-creation,Builtin,2,10441,0x1645c20,12,SegmenterPrototypeResolvedOptions
code-creation,Builtin,2,10445,0x1645c40,12,SegmenterPrototypeSegment
code-creation,Builtin,2,10453,0x1645c60,12,SegmenterSupportedLocalesOf
code-creation,Builtin,2,10456,0x1645c80,12,SegmentIteratorPrototypeNext
code-creation,Builtin,2,10460,0x1645ca0,12,SegmentsPrototypeContaining
code-creation,Builtin,2,10463,0x1645cc0,12,SegmentsPrototypeIterator
code-creation,Builtin,2,10467,0x1645ce0,12,StringPrototypeNormalizeIntl
code-creation,Builtin,2,10470,0x1645d00,12,StringPrototypeToLocaleLowerCase
code-creation,Builtin,2,10474,0x1645d20,12,StringPrototypeToLocaleUpperCase
code-creation,Builtin,2,10477,0x1645d40,200,StringPrototypeToLowerCaseIntl
code-creation,Builtin,2,10481,0x1645e20,12,StringPrototypeToUpperCaseIntl
code-creation,Builtin,2,10485,0x1645e40,632,StringToLowerCaseIntl
code-creation,Builtin,2,10488,0x16460c0,12,V8BreakIteratorConstructor
code-creation,Builtin,2,10491,0x16460e0,12,V8BreakIteratorInternalAdoptText
code-creation,Builtin,2,10495,0x1646100,12,V8BreakIteratorInternalBreakType
code-creation,Builtin,2,10499,0x1646120,12,V8BreakIteratorInternalCurrent
code-creation,Builtin,2,10502,0x1646140,12,V8BreakIteratorInternalFirst
code-creation,Builtin,2,10506,0x1646160,12,V8BreakIteratorInternalNext
code-creation,Builtin,2,10509,0x1646180,12,V8BreakIteratorPrototypeAdoptText
code-creation,Builtin,2,10513,0x16461a0,12,V8BreakIteratorPrototypeBreakType
code-creation,Builtin,2,10516,0x16461c0,12,V8BreakIteratorPrototypeCurrent
code-creation,Builtin,2,10520,0x16461e0,12,V8BreakIteratorPrototypeFirst
code-creation,Builtin,2,10523,0x1646200,12,V8BreakIteratorPrototypeNext
code-creation,Builtin,2,10527,0x1646220,12,V8BreakIteratorPrototypeResolvedOptions
code-creation,Builtin,2,10531,0x1646240,12,V8BreakIteratorSupportedLocalesOf
code-creation,BytecodeHandler,0,10537,0x1646260,24,Wide
code-creation,BytecodeHandler,0,10540,0x1646280,24,ExtraWide
code-creation,BytecodeHandler,0,10544,0x16462a0,104,DebugBreakWide
code-creation,BytecodeHandler,0,10547,0x1646320,104,DebugBreakExtraWide
code-creation,BytecodeHandler,0,10551,0x16463a0,164,DebugBreak0
code-creation,BytecodeHandler,0,10554,0x1646460,104,DebugBreak1
code-creation,BytecodeHandler,0,10557,0x16464e0,104,DebugBreak2
code-creation,BytecodeHandler,0,10560,0x1646560,104,DebugBreak3
code-creation,BytecodeHandler,0,10564,0x16465e0,104,DebugBreak4
code-creation,BytecodeHandler,0,10567,0x1646660,104,DebugBreak5
code-creation,BytecodeHandler,0,10570,0x16466e0,104,DebugBreak6
code-creation,BytecodeHandler,0,10573,0x1646760,32,Ldar
code-creation,BytecodeHandler,0,10577,0x16467a0,68,LdaZero
code-creation,BytecodeHandler,0,10580,0x1646800,76,LdaSmi
code-creation,BytecodeHandler,0,10583,0x1646860,68,LdaUndefined
code-creation,BytecodeHandler,0,10586,0x16468c0,68,LdaNull
code-creation,BytecodeHandler,0,10589,0x1646920,68,LdaTheHole
code-creation,BytecodeHandler,0,10593,0x1646980,20,LdaTrue
code-creation,BytecodeHandler,0,10596,0x16469a0,20,LdaFalse
code-creation,BytecodeHandler,0,10599,0x16469c0,76,LdaConstant
code-creation,BytecodeHandler,0,10602,0x1646a20,132,LdaContextSlot
code-creation,BytecodeHandler,0,10605,0x1646ac0,132,LdaImmutableContextSlot
code-creation,BytecodeHandler,0,10609,0x1646b60,88,LdaCurrentContextSlot
code-creation,BytecodeHandler,0,10613,0x1646bc0,88,LdaImmutableCurrentContextSlot
code-creation,BytecodeHandler,0,10617,0x1646c20,32,Star
code-creation,BytecodeHandler,0,10620,0x1646c60,40,Mov
code-creation,BytecodeHandler,0,10623,0x1646ca0,40,PushContext
code-creation,BytecodeHandler,0,10626,0x1646ce0,36,PopContext
code-creation,BytecodeHandler,0,10629,0x1646d20,48,TestReferenceEqual
code-creation,BytecodeHandler,0,10633,0x1646d60,52,TestUndetectable
code-creation,BytecodeHandler,0,10636,0x1646da0,36,TestNull
code-creation,BytecodeHandler,0,10639,0x1646de0,36,TestUndefined
code-creation,BytecodeHandler,0,10643,0x1646e20,336,TestTypeOf
code-creation,BytecodeHandler,0,10646,0x1646f80,4892,LdaGlobal
code-creation,BytecodeHandler,0,10649,0x16482a0,3700,LdaGlobalInsideTypeof
code-creation,BytecodeHandler,0,10652,0x1649120,168,StaGlobal
code-creation,BytecodeHandler,0,10655,0x16491e0,176,StaContextSlot
code-creation,BytecodeHandler,0,10659,0x16492a0,132,StaCurrentContextSlot
code-creation,BytecodeHandler,0,10665,0x1649340,124,LdaLookupSlot
code-creation,BytecodeHandler,0,10668,0x16493c0,240,LdaLookupContextSlot
code-creation,BytecodeHandler,0,10672,0x16494c0,3944,LdaLookupGlobalSlot
code-creation,BytecodeHandler,0,10675,0x164a440,124,LdaLookupSlotInsideTypeof
code-creation,BytecodeHandler,0,10679,0x164a4c0,240,LdaLookupContextSlotInsideTypeof
code-creation,BytecodeHandler,0,10683,0x164a5c0,3908,LdaLookupGlobalSlotInsideTypeof
code-creation,BytecodeHandler,0,10687,0x164b520,220,StaLookupSlot
code-creation,BytecodeHandler,0,10690,0x164b600,4464,LdaNamedProperty
code-creation,BytecodeHandler,0,10694,0x164c780,124,LdaNamedPropertyNoFeedback
code-creation,BytecodeHandler,0,10697,0x164c800,180,LdaNamedPropertyFromSuper
code-creation,BytecodeHandler,0,10701,0x164c8c0,212,LdaKeyedProperty
code-creation,BytecodeHandler,0,10705,0x164c9a0,160,LdaModuleVariable
code-creation,BytecodeHandler,0,10708,0x164ca60,312,StaModuleVariable
code-creation,BytecodeHandler,0,10711,0x164cba0,172,StaNamedProperty
code-creation,BytecodeHandler,0,10715,0x164cc60,136,StaNamedPropertyNoFeedback
code-creation,BytecodeHandler,0,10719,0x164cd00,172,StaNamedOwnProperty
code-creation,BytecodeHandler,0,10722,0x164cdc0,164,StaKeyedProperty
code-creation,BytecodeHandler,0,10726,0x164ce80,164,StaInArrayLiteral
code-creation,BytecodeHandler,0,10729,0x164cf40,196,StaDataPropertyInLiteral
code-creation,BytecodeHandler,0,10733,0x164d020,160,CollectTypeProfile
code-creation,BytecodeHandler,0,10737,0x164d0e0,1028,Add
code-creation,BytecodeHandler,0,10740,0x164d500,1064,Sub
code-creation,BytecodeHandler,0,10743,0x164d940,1024,Mul
code-creation,BytecodeHandler,0,10746,0x164dd60,984,Div
code-creation,BytecodeHandler,0,10749,0x164e140,912,Mod
code-creation,BytecodeHandler,0,10753,0x164e4e0,184,Exp
code-creation,BytecodeHandler,0,10757,0x164e5a0,876,BitwiseOr
code-creation,BytecodeHandler,0,10760,0x164e920,888,BitwiseXor
code-creation,BytecodeHandler,0,10763,0x164eca0,888,BitwiseAnd
code-creation,BytecodeHandler,0,10766,0x164f020,900,ShiftLeft
code-creation,BytecodeHandler,0,10769,0x164f3c0,900,ShiftRight
code-creation,BytecodeHandler,0,10772,0x164f760,1020,ShiftRightLogical
code-creation,BytecodeHandler,0,10776,0x164fb60,956,AddSmi
code-creation,BytecodeHandler,0,10779,0x164ff20,1000,SubSmi
code-creation,BytecodeHandler,0,10782,0x1650320,912,MulSmi
code-creation,BytecodeHandler,0,10785,0x16506c0,920,DivSmi
code-creation,BytecodeHandler,0,10788,0x1650a60,816,ModSmi
code-creation,BytecodeHandler,0,10791,0x1650da0,184,ExpSmi
code-creation,BytecodeHandler,0,10794,0x1650e60,488,BitwiseOrSmi
code-creation,BytecodeHandler,0,10798,0x1651060,488,BitwiseXorSmi
code-creation,BytecodeHandler,0,10801,0x1651260,488,BitwiseAndSmi
code-creation,BytecodeHandler,0,10804,0x1651460,488,ShiftLeftSmi
code-creation,BytecodeHandler,0,10808,0x1651660,488,ShiftRightSmi
code-creation,BytecodeHandler,0,10811,0x1651860,640,ShiftRightLogicalSmi
code-creation,BytecodeHandler,0,10814,0x1651b00,656,Inc
code-creation,BytecodeHandler,0,10817,0x1651da0,656,Dec
code-creation,BytecodeHandler,0,10820,0x1652040,640,Negate
code-creation,BytecodeHandler,0,10823,0x16522e0,480,BitwiseNot
code-creation,BytecodeHandler,0,10827,0x16524e0,108,ToBooleanLogicalNot
code-creation,BytecodeHandler,0,10830,0x1652560,36,LogicalNot
code-creation,BytecodeHandler,0,10834,0x16525a0,208,TypeOf
code-creation,BytecodeHandler,0,10837,0x1652680,120,DeletePropertyStrict
code-creation,BytecodeHandler,0,10840,0x1652700,112,DeletePropertySloppy
code-creation,BytecodeHandler,0,10844,0x1652780,40,GetSuperConstructor
code-creation,BytecodeHandler,0,10847,0x16527c0,1176,CallAnyReceiver
code-creation,BytecodeHandler,0,10851,0x1652c60,1176,CallProperty
code-creation,BytecodeHandler,0,10854,0x1653100,1056,CallProperty0
code-creation,BytecodeHandler,0,10858,0x1653540,1072,CallProperty1
code-creation,BytecodeHandler,0,10861,0x1653980,1084,CallProperty2
code-creation,BytecodeHandler,0,10864,0x1653dc0,1056,CallUndefinedReceiver
code-creation,BytecodeHandler,0,10868,0x1654200,1088,CallUndefinedReceiver0
code-creation,BytecodeHandler,0,10873,0x1654660,1068,CallUndefinedReceiver1
code-creation,BytecodeHandler,0,10877,0x1654aa0,1080,CallUndefinedReceiver2
code-creation,BytecodeHandler,0,10881,0x1654ee0,60,CallNoFeedback
code-creation,BytecodeHandler,0,10884,0x1654f20,1176,CallWithSpread
code-creation,BytecodeHandler,0,10888,0x16553c0,124,CallRuntime
code-creation,BytecodeHandler,0,10891,0x1655440,156,CallRuntimeForPair
code-creation,BytecodeHandler,0,10895,0x16554e0,80,CallJSRuntime
code-creation,BytecodeHandler,0,10898,0x1655540,1548,InvokeIntrinsic
code-creation,BytecodeHandler,0,10901,0x1655b60,1068,Construct
code-creation,BytecodeHandler,0,10904,0x1655fa0,556,ConstructWithSpread
code-creation,BytecodeHandler,0,10908,0x16561e0,1936,TestEqual
code-creation,BytecodeHandler,0,10911,0x1656980,1064,TestEqualStrict
code-creation,BytecodeHandler,0,10915,0x1656dc0,1624,TestLessThan
code-creation,BytecodeHandler,0,10918,0x1657420,1624,TestGreaterThan
code-creation,BytecodeHandler,0,10921,0x1657a80,1624,TestLessThanOrEqual
code-creation,BytecodeHandler,0,10925,0x16580e0,1624,TestGreaterThanOrEqual
code-creation,BytecodeHandler,0,10928,0x1658740,868,TestInstanceOf
code-creation,BytecodeHandler,0,10932,0x1658ac0,156,TestIn
code-creation,BytecodeHandler,0,10935,0x1658b60,112,ToName
code-creation,BytecodeHandler,0,10938,0x1658be0,212,ToNumber
code-creation,BytecodeHandler,0,10941,0x1658cc0,232,ToNumeric
code-creation,BytecodeHandler,0,10944,0x1658dc0,112,ToObject
code-creation,BytecodeHandler,0,10948,0x1658e40,116,ToString
code-creation,BytecodeHandler,0,10951,0x1658ec0,400,CreateRegExpLiteral
code-creation,BytecodeHandler,0,10954,0x1659060,1476,CreateArrayLiteral
code-creation,BytecodeHandler,0,10958,0x1659640,92,CreateArrayFromIterable
code-creation,BytecodeHandler,0,10962,0x16596a0,820,CreateEmptyArrayLiteral
code-creation,BytecodeHandler,0,10965,0x16599e0,2188,CreateObjectLiteral
code-creation,BytecodeHandler,0,10969,0x165a280,220,CreateEmptyObjectLiteral
code-creation,BytecodeHandler,0,10973,0x165a360,168,CloneObject
code-creation,BytecodeHandler,0,10976,0x165a420,212,GetTemplateObject
code-creation,BytecodeHandler,0,10979,0x165a500,328,CreateClosure
code-creation,BytecodeHandler,0,10983,0x165a660,120,CreateBlockContext
code-creation,BytecodeHandler,0,10986,0x165a6e0,132,CreateCatchContext
code-creation,BytecodeHandler,0,10990,0x165a780,256,CreateFunctionContext
code-creation,BytecodeHandler,0,10993,0x165a8a0,256,CreateEvalContext
code-creation,BytecodeHandler,0,10997,0x165a9c0,132,CreateWithContext
code-creation,BytecodeHandler,0,11000,0x165aa60,1560,CreateMappedArguments
code-creation,BytecodeHandler,0,11004,0x165b080,588,CreateUnmappedArguments
code-creation,BytecodeHandler,0,11007,0x165b2e0,628,CreateRestParameter
code-creation,BytecodeHandler,0,11011,0x165b560,532,JumpLoop
code-creation,BytecodeHandler,0,11014,0x165b780,44,Jump
code-creation,BytecodeHandler,0,11017,0x165b7c0,56,JumpConstant
code-creation,BytecodeHandler,0,11020,0x165b800,80,JumpIfNullConstant
code-creation,BytecodeHandler,0,11024,0x165b860,80,JumpIfNotNullConstant
code-creation,BytecodeHandler,0,11027,0x165b8c0,80,JumpIfUndefinedConstant
code-creation,BytecodeHandler,0,11032,0x165b920,80,JumpIfNotUndefinedConstant
code-creation,BytecodeHandler,0,11035,0x165b980,84,JumpIfUndefinedOrNullConstant
code-creation,BytecodeHandler,0,11039,0x165b9e0,80,JumpIfTrueConstant
code-creation,BytecodeHandler,0,11042,0x165ba40,80,JumpIfFalseConstant
code-creation,BytecodeHandler,0,11046,0x165baa0,88,JumpIfJSReceiverConstant
code-creation,BytecodeHandler,0,11074,0x165bb00,152,JumpIfToBooleanTrueConstant
code-creation,BytecodeHandler,0,11078,0x165bba0,152,JumpIfToBooleanFalseConstant
code-creation,BytecodeHandler,0,11082,0x165bc40,136,JumpIfToBooleanTrue
code-creation,BytecodeHandler,0,11091,0x165bce0,136,JumpIfToBooleanFalse
code-creation,BytecodeHandler,0,11097,0x165bd80,64,JumpIfTrue
code-creation,BytecodeHandler,0,11103,0x165bde0,64,JumpIfFalse
code-creation,BytecodeHandler,0,11109,0x165be40,64,JumpIfNull
code-creation,BytecodeHandler,0,11116,0x165bea0,64,JumpIfNotNull
code-creation,BytecodeHandler,0,11125,0x165bf00,64,JumpIfUndefined
code-creation,BytecodeHandler,0,11129,0x165bf60,64,JumpIfNotUndefined
code-creation,BytecodeHandler,0,11132,0x165bfc0,72,JumpIfUndefinedOrNull
code-creation,BytecodeHandler,0,11138,0x165c020,76,JumpIfJSReceiver
code-creation,BytecodeHandler,0,11144,0x165c080,108,SwitchOnSmiNoFeedback
code-creation,BytecodeHandler,0,11150,0x165c100,464,ForInEnumerate
code-creation,BytecodeHandler,0,11156,0x165c2e0,252,ForInPrepare
code-creation,BytecodeHandler,0,11162,0x165c3e0,60,ForInContinue
tick,0x1257f00,11170,0,0x0,6
code-creation,BytecodeHandler,0,11187,0x165c420,256,ForInNext
code-creation,BytecodeHandler,0,11192,0x165c540,48,ForInStep
code-creation,BytecodeHandler,0,11195,0x165c580,36,SetPendingMessage
code-creation,BytecodeHandler,0,11199,0x165c5c0,116,Throw
code-creation,BytecodeHandler,0,11202,0x165c640,116,ReThrow
code-creation,BytecodeHandler,0,11206,0x165c6c0,112,Return
code-creation,BytecodeHandler,0,11209,0x165c740,196,ThrowReferenceErrorIfHole
code-creation,BytecodeHandler,0,11213,0x165c820,132,ThrowSuperNotCalledIfHole
code-creation,BytecodeHandler,0,11216,0x165c8c0,132,ThrowSuperAlreadyCalledIfNotHole
code-creation,BytecodeHandler,0,11220,0x165c960,156,ThrowIfNotSuperConstructor
code-creation,BytecodeHandler,0,11224,0x165ca00,120,SwitchOnGeneratorState
code-creation,BytecodeHandler,0,11227,0x165ca80,556,SuspendGenerator
code-creation,BytecodeHandler,0,11231,0x165ccc0,128,ResumeGenerator
code-creation,BytecodeHandler,0,11234,0x165cd60,152,GetIterator
code-creation,BytecodeHandler,0,11238,0x165ce00,116,Debugger
code-creation,BytecodeHandler,0,11241,0x165ce80,124,IncBlockCounter
code-creation,BytecodeHandler,0,11244,0x165cf00,56,Abort
code-creation,BytecodeHandler,0,11248,0x165cf40,32,Star0
code-creation,BytecodeHandler,0,11251,0x165cf80,60,Illegal
code-creation,BytecodeHandler,0,11255,0x165cfc0,108,DebugBreak1.Wide
code-creation,BytecodeHandler,0,11259,0x165d040,108,DebugBreak2.Wide
code-creation,BytecodeHandler,0,11263,0x165d0c0,108,DebugBreak3.Wide
code-creation,BytecodeHandler,0,11266,0x165d140,108,DebugBreak4.Wide
code-creation,BytecodeHandler,0,11270,0x165d1c0,108,DebugBreak5.Wide
code-creation,BytecodeHandler,0,11273,0x165d240,108,DebugBreak6.Wide
code-creation,BytecodeHandler,0,11277,0x165d2c0,32,Ldar.Wide
code-creation,BytecodeHandler,0,11281,0x165d300,32,LdaSmi.Wide
code-creation,BytecodeHandler,0,11284,0x165d340,32,LdaConstant.Wide
code-creation,BytecodeHandler,0,11288,0x165d380,92,LdaContextSlot.Wide
code-creation,BytecodeHandler,0,11291,0x165d3e0,92,LdaImmutableContextSlot.Wide
code-creation,BytecodeHandler,0,11295,0x165d440,48,LdaCurrentContextSlot.Wide
code-creation,BytecodeHandler,0,11299,0x165d480,48,LdaImmutableCurrentContextSlot.Wide
code-creation,BytecodeHandler,0,11303,0x165d4c0,32,Star.Wide
code-creation,BytecodeHandler,0,11307,0x165d500,40,Mov.Wide
code-creation,BytecodeHandler,0,11310,0x165d540,40,PushContext.Wide
code-creation,BytecodeHandler,0,11314,0x165d580,36,PopContext.Wide
code-creation,BytecodeHandler,0,11317,0x165d5c0,48,TestReferenceEqual.Wide
code-creation,BytecodeHandler,0,11321,0x165d600,3832,LdaGlobal.Wide
code-creation,BytecodeHandler,0,11324,0x165e500,3764,LdaGlobalInsideTypeof.Wide
code-creation,BytecodeHandler,0,11328,0x165f3c0,172,StaGlobal.Wide
code-creation,BytecodeHandler,0,11332,0x165f480,176,StaContextSlot.Wide
code-creation,BytecodeHandler,0,11335,0x165f540,132,StaCurrentContextSlot.Wide
code-creation,BytecodeHandler,0,11339,0x165f5e0,128,LdaLookupSlot.Wide
code-creation,BytecodeHandler,0,11342,0x165f680,244,LdaLookupContextSlot.Wide
code-creation,BytecodeHandler,0,11346,0x165f780,4012,LdaLookupGlobalSlot.Wide
code-creation,BytecodeHandler,0,11350,0x1660740,128,LdaLookupSlotInsideTypeof.Wide
code-creation,BytecodeHandler,0,11354,0x16607e0,244,LdaLookupContextSlotInsideTypeof.Wide
code-creation,BytecodeHandler,0,11358,0x16608e0,3976,LdaLookupGlobalSlotInsideTypeof.Wide
code-creation,BytecodeHandler,0,11362,0x1661880,220,StaLookupSlot.Wide
code-creation,BytecodeHandler,0,11366,0x1661960,4468,LdaNamedProperty.Wide
code-creation,BytecodeHandler,0,11373,0x1662ae0,128,LdaNamedPropertyNoFeedback.Wide
code-creation,BytecodeHandler,0,11377,0x1662b80,188,LdaNamedPropertyFromSuper.Wide
code-creation,BytecodeHandler,0,11381,0x1662c40,160,LdaKeyedProperty.Wide
code-creation,BytecodeHandler,0,11385,0x1662d00,160,LdaModuleVariable.Wide
code-creation,BytecodeHandler,0,11389,0x1662dc0,316,StaModuleVariable.Wide
code-creation,BytecodeHandler,0,11392,0x1662f00,176,StaNamedProperty.Wide
code-creation,BytecodeHandler,0,11396,0x1662fc0,140,StaNamedPropertyNoFeedback.Wide
code-creation,BytecodeHandler,0,11435,0x1663060,176,StaNamedOwnProperty.Wide
code-creation,BytecodeHandler,0,11439,0x1663120,168,StaKeyedProperty.Wide
code-creation,BytecodeHandler,0,11443,0x16631e0,168,StaInArrayLiteral.Wide
code-creation,BytecodeHandler,0,11446,0x16632a0,200,StaDataPropertyInLiteral.Wide
code-creation,BytecodeHandler,0,11450,0x1663380,164,CollectTypeProfile.Wide
code-creation,BytecodeHandler,0,11454,0x1663440,984,Add.Wide
code-creation,BytecodeHandler,0,11458,0x1663820,1020,Sub.Wide
code-creation,BytecodeHandler,0,11461,0x1663c20,972,Mul.Wide
code-creation,BytecodeHandler,0,11464,0x1664000,988,Div.Wide
code-creation,BytecodeHandler,0,11467,0x16643e0,916,Mod.Wide
code-creation,BytecodeHandler,0,11471,0x1664780,188,Exp.Wide
code-creation,BytecodeHandler,0,11474,0x1664840,904,BitwiseOr.Wide
code-creation,BytecodeHandler,0,11478,0x1664be0,920,BitwiseXor.Wide
code-creation,BytecodeHandler,0,11481,0x1664f80,920,BitwiseAnd.Wide
code-creation,BytecodeHandler,0,11485,0x1665320,932,ShiftLeft.Wide
code-creation,BytecodeHandler,0,11488,0x16656e0,932,ShiftRight.Wide
code-creation,BytecodeHandler,0,11491,0x1665aa0,1048,ShiftRightLogical.Wide
code-creation,BytecodeHandler,0,11495,0x1665ec0,916,AddSmi.Wide
code-creation,BytecodeHandler,0,11499,0x1666260,960,SubSmi.Wide
code-creation,BytecodeHandler,0,11502,0x1666640,912,MulSmi.Wide
code-creation,BytecodeHandler,0,11505,0x16669e0,916,DivSmi.Wide
code-creation,BytecodeHandler,0,11509,0x1666d80,816,ModSmi.Wide
code-creation,BytecodeHandler,0,11512,0x16670c0,184,ExpSmi.Wide
code-creation,BytecodeHandler,0,11515,0x1667180,496,BitwiseOrSmi.Wide
code-creation,BytecodeHandler,0,11519,0x1667380,496,BitwiseXorSmi.Wide
code-creation,BytecodeHandler,0,11522,0x1667580,496,BitwiseAndSmi.Wide
code-creation,BytecodeHandler,0,11526,0x1667780,496,ShiftLeftSmi.Wide
code-creation,BytecodeHandler,0,11530,0x1667980,496,ShiftRightSmi.Wide
code-creation,BytecodeHandler,0,11533,0x1667b80,648,ShiftRightLogicalSmi.Wide
code-creation,BytecodeHandler,0,11537,0x1667e20,616,Inc.Wide
code-creation,BytecodeHandler,0,11541,0x16680a0,616,Dec.Wide
code-creation,BytecodeHandler,0,11544,0x1668320,644,Negate.Wide
code-creation,BytecodeHandler,0,11547,0x16685c0,492,BitwiseNot.Wide
code-creation,BytecodeHandler,0,11551,0x16687c0,124,DeletePropertyStrict.Wide
code-creation,BytecodeHandler,0,11555,0x1668840,116,DeletePropertySloppy.Wide
code-creation,BytecodeHandler,0,11559,0x16688c0,40,GetSuperConstructor.Wide
code-creation,BytecodeHandler,0,11563,0x1668900,1176,CallAnyReceiver.Wide
code-creation,BytecodeHandler,0,11566,0x1668da0,1176,CallProperty.Wide
code-creation,BytecodeHandler,0,11570,0x1669240,1060,CallProperty0.Wide
code-creation,BytecodeHandler,0,11573,0x1669680,1076,CallProperty1.Wide
code-creation,BytecodeHandler,0,11577,0x1669ac0,1088,CallProperty2.Wide
code-creation,BytecodeHandler,0,11580,0x1669f20,1060,CallUndefinedReceiver.Wide
code-creation,BytecodeHandler,0,11584,0x166a360,1092,CallUndefinedReceiver0.Wide
code-creation,BytecodeHandler,0,11588,0x166a7c0,1068,CallUndefinedReceiver1.Wide
code-creation,BytecodeHandler,0,11592,0x166ac00,1084,CallUndefinedReceiver2.Wide
code-creation,BytecodeHandler,0,11596,0x166b040,64,CallNoFeedback.Wide
code-creation,BytecodeHandler,0,11616,0x166b0a0,1176,CallWithSpread.Wide
code-creation,BytecodeHandler,0,11620,0x166b540,128,CallRuntime.Wide
code-creation,BytecodeHandler,0,11625,0x166b5e0,168,CallRuntimeForPair.Wide
code-creation,BytecodeHandler,0,11631,0x166b6a0,84,CallJSRuntime.Wide
code-creation,BytecodeHandler,0,11641,0x166b700,1552,InvokeIntrinsic.Wide
code-creation,BytecodeHandler,0,11647,0x166bd20,1012,Construct.Wide
code-creation,BytecodeHandler,0,11653,0x166c120,492,ConstructWithSpread.Wide
code-creation,BytecodeHandler,0,11658,0x166c320,1964,TestEqual.Wide
code-creation,BytecodeHandler,0,11661,0x166cae0,1068,TestEqualStrict.Wide
code-creation,BytecodeHandler,0,11665,0x166cf20,1512,TestLessThan.Wide
code-creation,BytecodeHandler,0,11668,0x166d520,1512,TestGreaterThan.Wide
code-creation,BytecodeHandler,0,11672,0x166db20,1512,TestLessThanOrEqual.Wide
code-creation,BytecodeHandler,0,11676,0x166e120,1512,TestGreaterThanOrEqual.Wide
code-creation,BytecodeHandler,0,11680,0x166e720,872,TestInstanceOf.Wide
code-creation,BytecodeHandler,0,11684,0x166eaa0,160,TestIn.Wide
code-creation,BytecodeHandler,0,11687,0x166eb60,116,ToName.Wide
code-creation,BytecodeHandler,0,11691,0x166ebe0,216,ToNumber.Wide
code-creation,BytecodeHandler,0,11694,0x166ecc0,236,ToNumeric.Wide
code-creation,BytecodeHandler,0,11697,0x166edc0,116,ToObject.Wide
code-creation,BytecodeHandler,0,11701,0x166ee40,404,CreateRegExpLiteral.Wide
code-creation,BytecodeHandler,0,11705,0x166efe0,1384,CreateArrayLiteral.Wide
code-creation,BytecodeHandler,0,11709,0x166f560,820,CreateEmptyArrayLiteral.Wide
code-creation,BytecodeHandler,0,11712,0x166f8a0,2088,CreateObjectLiteral.Wide
code-creation,BytecodeHandler,0,11716,0x16700e0,172,CloneObject.Wide
code-creation,BytecodeHandler,0,11720,0x16701a0,164,GetTemplateObject.Wide
code-creation,BytecodeHandler,0,11723,0x1670260,320,CreateClosure.Wide
code-creation,BytecodeHandler,0,11727,0x16703c0,124,CreateBlockContext.Wide
code-creation,BytecodeHandler,0,11731,0x1670440,136,CreateCatchContext.Wide
code-creation,BytecodeHandler,0,11734,0x16704e0,256,CreateFunctionContext.Wide
code-creation,BytecodeHandler,0,11738,0x1670600,256,CreateEvalContext.Wide
code-creation,BytecodeHandler,0,11742,0x1670720,136,CreateWithContext.Wide
code-creation,BytecodeHandler,0,11746,0x16707c0,552,JumpLoop.Wide
code-creation,BytecodeHandler,0,11749,0x1670a00,44,Jump.Wide
code-creation,BytecodeHandler,0,11752,0x1670a40,56,JumpConstant.Wide
code-creation,BytecodeHandler,0,11756,0x1670a80,80,JumpIfNullConstant.Wide
code-creation,BytecodeHandler,0,11759,0x1670ae0,80,JumpIfNotNullConstant.Wide
code-creation,BytecodeHandler,0,11763,0x1670b40,80,JumpIfUndefinedConstant.Wide
code-creation,BytecodeHandler,0,11767,0x1670ba0,80,JumpIfNotUndefinedConstant.Wide
code-creation,BytecodeHandler,0,11771,0x1670c00,84,JumpIfUndefinedOrNullConstant.Wide
code-creation,BytecodeHandler,0,11775,0x1670c60,80,JumpIfTrueConstant.Wide
code-creation,BytecodeHandler,0,11779,0x1670cc0,80,JumpIfFalseConstant.Wide
code-creation,BytecodeHandler,0,11782,0x1670d20,88,JumpIfJSReceiverConstant.Wide
code-creation,BytecodeHandler,0,11786,0x1670d80,152,JumpIfToBooleanTrueConstant.Wide
code-creation,BytecodeHandler,0,11790,0x1670e20,152,JumpIfToBooleanFalseConstant.Wide
code-creation,BytecodeHandler,0,11795,0x1670ec0,136,JumpIfToBooleanTrue.Wide
code-creation,BytecodeHandler,0,11798,0x1670f60,136,JumpIfToBooleanFalse.Wide
code-creation,BytecodeHandler,0,11802,0x1671000,64,JumpIfTrue.Wide
code-creation,BytecodeHandler,0,11805,0x1671060,64,JumpIfFalse.Wide
code-creation,BytecodeHandler,0,11809,0x16710c0,64,JumpIfNull.Wide
code-creation,BytecodeHandler,0,11812,0x1671120,64,JumpIfNotNull.Wide
code-creation,BytecodeHandler,0,11816,0x1671180,64,JumpIfUndefined.Wide
code-creation,BytecodeHandler,0,11819,0x16711e0,64,JumpIfNotUndefined.Wide
code-creation,BytecodeHandler,0,11823,0x1671240,72,JumpIfUndefinedOrNull.Wide
code-creation,BytecodeHandler,0,11827,0x16712a0,76,JumpIfJSReceiver.Wide
code-creation,BytecodeHandler,0,11830,0x1671300,108,SwitchOnSmiNoFeedback.Wide
code-creation,BytecodeHandler,0,11834,0x1671380,468,ForInEnumerate.Wide
code-creation,BytecodeHandler,0,11838,0x1671560,252,ForInPrepare.Wide
code-creation,BytecodeHandler,0,11841,0x1671660,60,ForInContinue.Wide
code-creation,BytecodeHandler,0,11845,0x16716a0,260,ForInNext.Wide
code-creation,BytecodeHandler,0,11848,0x16717c0,48,ForInStep.Wide
code-creation,BytecodeHandler,0,11855,0x1671800,156,ThrowReferenceErrorIfHole.Wide
code-creation,BytecodeHandler,0,11859,0x16718a0,160,ThrowIfNotSuperConstructor.Wide
code-creation,BytecodeHandler,0,11863,0x1671960,120,SwitchOnGeneratorState.Wide
code-creation,BytecodeHandler,0,11866,0x16719e0,568,SuspendGenerator.Wide
code-creation,BytecodeHandler,0,11870,0x1671c20,128,ResumeGenerator.Wide
code-creation,BytecodeHandler,0,11874,0x1671cc0,156,GetIterator.Wide
code-creation,BytecodeHandler,0,11877,0x1671d60,128,IncBlockCounter.Wide
code-creation,BytecodeHandler,0,11881,0x1671e00,56,Abort.Wide
code-creation,BytecodeHandler,0,11884,0x1671e40,108,DebugBreak1.ExtraWide
code-creation,BytecodeHandler,0,11888,0x1671ec0,108,DebugBreak2.ExtraWide
code-creation,BytecodeHandler,0,11892,0x1671f40,108,DebugBreak3.ExtraWide
code-creation,BytecodeHandler,0,11896,0x1671fc0,108,DebugBreak4.ExtraWide
code-creation,BytecodeHandler,0,11899,0x1672040,108,DebugBreak5.ExtraWide
code-creation,BytecodeHandler,0,11903,0x16720c0,108,DebugBreak6.ExtraWide
code-creation,BytecodeHandler,0,11906,0x1672140,32,Ldar.ExtraWide
code-creation,BytecodeHandler,0,11910,0x1672180,28,LdaSmi.ExtraWide
code-creation,BytecodeHandler,0,11914,0x16721a0,32,LdaConstant.ExtraWide
code-creation,BytecodeHandler,0,11918,0x16721e0,88,LdaContextSlot.ExtraWide
code-creation,BytecodeHandler,0,11922,0x1672240,88,LdaImmutableContextSlot.ExtraWide
code-creation,BytecodeHandler,0,11926,0x16722a0,48,LdaCurrentContextSlot.ExtraWide
code-creation,BytecodeHandler,0,11930,0x16722e0,48,LdaImmutableCurrentContextSlot.ExtraWide
code-creation,BytecodeHandler,0,11934,0x1672320,28,Star.ExtraWide
code-creation,BytecodeHandler,0,11937,0x1672340,40,Mov.ExtraWide
code-creation,BytecodeHandler,0,11941,0x1672380,36,PushContext.ExtraWide
code-creation,BytecodeHandler,0,11945,0x16723c0,32,PopContext.ExtraWide
code-creation,BytecodeHandler,0,11948,0x1672400,48,TestReferenceEqual.ExtraWide
code-creation,BytecodeHandler,0,11952,0x1672440,3820,LdaGlobal.ExtraWide
code-creation,BytecodeHandler,0,11956,0x1673340,3752,LdaGlobalInsideTypeof.ExtraWide
code-creation,BytecodeHandler,0,11960,0x1674200,168,StaGlobal.ExtraWide
code-creation,BytecodeHandler,0,11963,0x16742c0,172,StaContextSlot.ExtraWide
code-creation,BytecodeHandler,0,11967,0x1674380,132,StaCurrentContextSlot.ExtraWide
code-creation,BytecodeHandler,0,11971,0x1674420,128,LdaLookupSlot.ExtraWide
code-creation,BytecodeHandler,0,11975,0x16744c0,240,LdaLookupContextSlot.ExtraWide
code-creation,BytecodeHandler,0,11979,0x16745c0,4000,LdaLookupGlobalSlot.ExtraWide
code-creation,BytecodeHandler,0,11983,0x1675580,128,LdaLookupSlotInsideTypeof.ExtraWide
code-creation,BytecodeHandler,0,11987,0x1675620,240,LdaLookupContextSlotInsideTypeof.ExtraWide
code-creation,BytecodeHandler,0,11991,0x1675720,3964,LdaLookupGlobalSlotInsideTypeof.ExtraWide
code-creation,BytecodeHandler,0,11995,0x16766a0,220,StaLookupSlot.ExtraWide
code-creation,BytecodeHandler,0,11999,0x1676780,4448,LdaNamedProperty.ExtraWide
code-creation,BytecodeHandler,0,12003,0x1677900,124,LdaNamedPropertyNoFeedback.ExtraWide
code-creation,BytecodeHandler,0,12007,0x1677980,184,LdaNamedPropertyFromSuper.ExtraWide
code-creation,BytecodeHandler,0,12011,0x1677a40,156,LdaKeyedProperty.ExtraWide
code-creation,BytecodeHandler,0,12015,0x1677ae0,160,LdaModuleVariable.ExtraWide
code-creation,BytecodeHandler,0,12019,0x1677ba0,316,StaModuleVariable.ExtraWide
code-creation,BytecodeHandler,0,12023,0x1677ce0,172,StaNamedProperty.ExtraWide
code-creation,BytecodeHandler,0,12026,0x1677da0,136,StaNamedPropertyNoFeedback.ExtraWide
code-creation,BytecodeHandler,0,12031,0x1677e40,172,StaNamedOwnProperty.ExtraWide
code-creation,BytecodeHandler,0,12035,0x1677f00,168,StaKeyedProperty.ExtraWide
code-creation,BytecodeHandler,0,12038,0x1677fc0,168,StaInArrayLiteral.ExtraWide
code-creation,BytecodeHandler,0,12042,0x1678080,196,StaDataPropertyInLiteral.ExtraWide
code-creation,BytecodeHandler,0,12047,0x1678160,164,CollectTypeProfile.ExtraWide
code-creation,BytecodeHandler,0,12050,0x1678220,980,Add.ExtraWide
code-creation,BytecodeHandler,0,12057,0x1678600,1016,Sub.ExtraWide
code-creation,BytecodeHandler,0,12060,0x1678a00,968,Mul.ExtraWide
code-creation,BytecodeHandler,0,12064,0x1678de0,984,Div.ExtraWide
code-creation,BytecodeHandler,0,12067,0x16791c0,912,Mod.ExtraWide
code-creation,BytecodeHandler,0,12071,0x1679560,188,Exp.ExtraWide
code-creation,BytecodeHandler,0,12074,0x1679620,904,BitwiseOr.ExtraWide
code-creation,BytecodeHandler,0,12078,0x16799c0,916,BitwiseXor.ExtraWide
code-creation,BytecodeHandler,0,12082,0x1679d60,916,BitwiseAnd.ExtraWide
code-creation,BytecodeHandler,0,12085,0x167a100,928,ShiftLeft.ExtraWide
code-creation,BytecodeHandler,0,12089,0x167a4c0,928,ShiftRight.ExtraWide
code-creation,BytecodeHandler,0,12092,0x167a880,1048,ShiftRightLogical.ExtraWide
code-creation,BytecodeHandler,0,12096,0x167aca0,916,AddSmi.ExtraWide
code-creation,BytecodeHandler,0,12100,0x167b040,956,SubSmi.ExtraWide
code-creation,BytecodeHandler,0,12104,0x167b400,908,MulSmi.ExtraWide
code-creation,BytecodeHandler,0,12107,0x167b7a0,916,DivSmi.ExtraWide
code-creation,BytecodeHandler,0,12133,0x167bb40,812,ModSmi.ExtraWide
code-creation,BytecodeHandler,0,12137,0x167be80,184,ExpSmi.ExtraWide
code-creation,BytecodeHandler,0,12140,0x167bf40,492,BitwiseOrSmi.ExtraWide
code-creation,BytecodeHandler,0,12144,0x167c140,492,BitwiseXorSmi.ExtraWide
code-creation,BytecodeHandler,0,12150,0x167c340,492,BitwiseAndSmi.ExtraWide
code-creation,BytecodeHandler,0,12156,0x167c540,492,ShiftLeftSmi.ExtraWide
tick,0x7f4debd44473,12165,0,0x0,6
code-creation,BytecodeHandler,0,12185,0x167c740,492,ShiftRightSmi.ExtraWide
code-creation,BytecodeHandler,0,12191,0x167c940,644,ShiftRightLogicalSmi.ExtraWide
code-creation,BytecodeHandler,0,12195,0x167cbe0,616,Inc.ExtraWide
code-creation,BytecodeHandler,0,12199,0x167ce60,616,Dec.ExtraWide
code-creation,BytecodeHandler,0,12202,0x167d0e0,644,Negate.ExtraWide
code-creation,BytecodeHandler,0,12205,0x167d380,488,BitwiseNot.ExtraWide
code-creation,BytecodeHandler,0,12209,0x167d580,124,DeletePropertyStrict.ExtraWide
code-creation,BytecodeHandler,0,12213,0x167d600,116,DeletePropertySloppy.ExtraWide
code-creation,BytecodeHandler,0,12217,0x167d680,36,GetSuperConstructor.ExtraWide
code-creation,BytecodeHandler,0,12221,0x167d6c0,1172,CallAnyReceiver.ExtraWide
code-creation,BytecodeHandler,0,12225,0x167db60,1172,CallProperty.ExtraWide
code-creation,BytecodeHandler,0,12229,0x167e000,1052,CallProperty0.ExtraWide
code-creation,BytecodeHandler,0,12233,0x167e420,1068,CallProperty1.ExtraWide
code-creation,BytecodeHandler,0,12237,0x167e860,1080,CallProperty2.ExtraWide
code-creation,BytecodeHandler,0,12240,0x167eca0,1056,CallUndefinedReceiver.ExtraWide
code-creation,BytecodeHandler,0,12244,0x167f0e0,1092,CallUndefinedReceiver0.ExtraWide
code-creation,BytecodeHandler,0,12248,0x167f540,1068,CallUndefinedReceiver1.ExtraWide
code-creation,BytecodeHandler,0,12252,0x167f980,1080,CallUndefinedReceiver2.ExtraWide
code-creation,BytecodeHandler,0,12256,0x167fdc0,60,CallNoFeedback.ExtraWide
code-creation,BytecodeHandler,0,12260,0x167fe00,1172,CallWithSpread.ExtraWide
code-creation,BytecodeHandler,0,12264,0x16802a0,128,CallRuntime.ExtraWide
code-creation,BytecodeHandler,0,12268,0x1680340,164,CallRuntimeForPair.ExtraWide
code-creation,BytecodeHandler,0,12272,0x1680400,80,CallJSRuntime.ExtraWide
code-creation,BytecodeHandler,0,12275,0x1680460,1548,InvokeIntrinsic.ExtraWide
code-creation,BytecodeHandler,0,12279,0x1680a80,1008,Construct.ExtraWide
code-creation,BytecodeHandler,0,12283,0x1680e80,488,ConstructWithSpread.ExtraWide
code-creation,BytecodeHandler,0,12287,0x1681080,1964,TestEqual.ExtraWide
code-creation,BytecodeHandler,0,12290,0x1681840,1068,TestEqualStrict.ExtraWide
code-creation,BytecodeHandler,0,12294,0x1681c80,1508,TestLessThan.ExtraWide
code-creation,BytecodeHandler,0,12298,0x1682280,1508,TestGreaterThan.ExtraWide
code-creation,BytecodeHandler,0,12302,0x1682880,1508,TestLessThanOrEqual.ExtraWide
code-creation,BytecodeHandler,0,12306,0x1682e80,1508,TestGreaterThanOrEqual.ExtraWide
code-creation,BytecodeHandler,0,12309,0x1683480,872,TestInstanceOf.ExtraWide
code-creation,BytecodeHandler,0,12320,0x1683800,156,TestIn.ExtraWide
code-creation,BytecodeHandler,0,12323,0x16838a0,116,ToName.ExtraWide
code-creation,BytecodeHandler,0,12327,0x1683920,216,ToNumber.ExtraWide
code-creation,BytecodeHandler,0,12331,0x1683a00,236,ToNumeric.ExtraWide
code-creation,BytecodeHandler,0,12335,0x1683b00,116,ToObject.ExtraWide
code-creation,BytecodeHandler,0,12338,0x1683b80,400,CreateRegExpLiteral.ExtraWide
code-creation,BytecodeHandler,0,12342,0x1683d20,1384,CreateArrayLiteral.ExtraWide
code-creation,BytecodeHandler,0,12346,0x16842a0,820,CreateEmptyArrayLiteral.ExtraWide
code-creation,BytecodeHandler,0,12350,0x16845e0,2088,CreateObjectLiteral.ExtraWide
code-creation,BytecodeHandler,0,12354,0x1684e20,168,CloneObject.ExtraWide
code-creation,BytecodeHandler,0,12358,0x1684ee0,160,GetTemplateObject.ExtraWide
code-creation,BytecodeHandler,0,12362,0x1684fa0,320,CreateClosure.ExtraWide
code-creation,BytecodeHandler,0,12365,0x1685100,124,CreateBlockContext.ExtraWide
code-creation,BytecodeHandler,0,12369,0x1685180,132,CreateCatchContext.ExtraWide
code-creation,BytecodeHandler,0,12373,0x1685220,252,CreateFunctionContext.ExtraWide
code-creation,BytecodeHandler,0,12377,0x1685320,252,CreateEvalContext.ExtraWide
code-creation,BytecodeHandler,0,12381,0x1685420,132,CreateWithContext.ExtraWide
code-creation,BytecodeHandler,0,12385,0x16854c0,552,JumpLoop.ExtraWide
code-creation,BytecodeHandler,0,12388,0x1685700,44,Jump.ExtraWide
code-creation,BytecodeHandler,0,12392,0x1685740,56,JumpConstant.ExtraWide
code-creation,BytecodeHandler,0,12396,0x1685780,76,JumpIfNullConstant.ExtraWide
code-creation,BytecodeHandler,0,12399,0x16857e0,76,JumpIfNotNullConstant.ExtraWide
code-creation,BytecodeHandler,0,12403,0x1685840,76,JumpIfUndefinedConstant.ExtraWide
code-creation,BytecodeHandler,0,12407,0x16858a0,76,JumpIfNotUndefinedConstant.ExtraWide
code-creation,BytecodeHandler,0,12411,0x1685900,84,JumpIfUndefinedOrNullConstant.ExtraWide
code-creation,BytecodeHandler,0,12416,0x1685960,76,JumpIfTrueConstant.ExtraWide
code-creation,BytecodeHandler,0,12420,0x16859c0,76,JumpIfFalseConstant.ExtraWide
code-creation,BytecodeHandler,0,12424,0x1685a20,88,JumpIfJSReceiverConstant.ExtraWide
code-creation,BytecodeHandler,0,12428,0x1685a80,148,JumpIfToBooleanTrueConstant.ExtraWide
code-creation,BytecodeHandler,0,12432,0x1685b20,148,JumpIfToBooleanFalseConstant.ExtraWide
code-creation,BytecodeHandler,0,12436,0x1685bc0,136,JumpIfToBooleanTrue.ExtraWide
code-creation,BytecodeHandler,0,12440,0x1685c60,136,JumpIfToBooleanFalse.ExtraWide
code-creation,BytecodeHandler,0,12444,0x1685d00,64,JumpIfTrue.ExtraWide
code-creation,BytecodeHandler,0,12447,0x1685d60,64,JumpIfFalse.ExtraWide
code-creation,BytecodeHandler,0,12451,0x1685dc0,64,JumpIfNull.ExtraWide
code-creation,BytecodeHandler,0,12455,0x1685e20,64,JumpIfNotNull.ExtraWide
code-creation,BytecodeHandler,0,12459,0x1685e80,64,JumpIfUndefined.ExtraWide
code-creation,BytecodeHandler,0,12462,0x1685ee0,64,JumpIfNotUndefined.ExtraWide
code-creation,BytecodeHandler,0,12466,0x1685f40,68,JumpIfUndefinedOrNull.ExtraWide
code-creation,BytecodeHandler,0,12470,0x1685fa0,72,JumpIfJSReceiver.ExtraWide
code-creation,BytecodeHandler,0,12474,0x1686000,108,SwitchOnSmiNoFeedback.ExtraWide
code-creation,BytecodeHandler,0,12478,0x1686080,464,ForInEnumerate.ExtraWide
code-creation,BytecodeHandler,0,12482,0x1686260,252,ForInPrepare.ExtraWide
code-creation,BytecodeHandler,0,12486,0x1686360,56,ForInContinue.ExtraWide
code-creation,BytecodeHandler,0,12490,0x16863a0,256,ForInNext.ExtraWide
code-creation,BytecodeHandler,0,12493,0x16864c0,44,ForInStep.ExtraWide
code-creation,BytecodeHandler,0,12497,0x1686500,156,ThrowReferenceErrorIfHole.ExtraWide
code-creation,BytecodeHandler,0,12501,0x16865a0,160,ThrowIfNotSuperConstructor.ExtraWide
code-creation,BytecodeHandler,0,12505,0x1686660,120,SwitchOnGeneratorState.ExtraWide
code-creation,BytecodeHandler,0,12509,0x16866e0,564,SuspendGenerator.ExtraWide
code-creation,BytecodeHandler,0,12513,0x1686920,124,ResumeGenerator.ExtraWide
code-creation,BytecodeHandler,0,12517,0x16869a0,152,GetIterator.ExtraWide
code-creation,BytecodeHandler,0,12535,0x1686a40,124,IncBlockCounter.ExtraWide
code-creation,BytecodeHandler,0,12539,0x1686ac0,56,Abort.ExtraWide
new,MemoryChunk,0x2c3c08440000,262144
new,MemoryChunk,0x13f1f1d80000,262144
tick,0x1bea95d,14519,0,0x0,5
tick,0x1229d4d,14544,0,0x0,5
new,MemoryChunk,0x247d3c140000,262144
tick,0x1229b0e,15657,0,0x0,5
new,MemoryChunk,0xa5251180000,262144
tick,0x1229b54,16393,0,0x0,5
tick,0xdca580,17462,0,0x0,6
code-creation,Eval,10,17850,0xa52511b907e,5, node:internal/main/repl:1:1,0xa52511b8ed8,~
script-source,90,node:internal/main/repl,'use strict';\n\n// Create the REPL if `-i` or `--interactive` is passed\x2C or if\n// the main module is not specified and stdin is a TTY.\n\nconst {\n prepareMainThreadExecution\n} = require('internal/bootstrap/pre_execution');\n\nconst esmLoader = require('internal/process/esm_loader');\nconst {\n evalScript\n} = require('internal/process/execution');\n\nconst console = require('internal/console/global');\n\nconst { getOptionValue } = require('internal/options');\n\nprepareMainThreadExecution();\n\nmarkBootstrapComplete();\n\nif (process.env.NODE_REPL_EXTERNAL_MODULE) {\n require('internal/modules/cjs/loader')\n .Module\n ._load(process.env.NODE_REPL_EXTERNAL_MODULE\x2C undefined\x2C true);\n} else {\n // --input-type flag not supported in REPL\n if (getOptionValue('--input-type')) {\n // If we can't write to stderr\x2C we'd like to make this a noop\x2C\n // so use console.error.\n console.error('Cannot specify --input-type for REPL');\n process.exit(1);\n }\n\n esmLoader.loadESM(() => {\n console.log(`Welcome to Node.js ${process.version}.\\n` +\n 'Type ".help" for more information.');\n\n const cliRepl = require('internal/repl');\n cliRepl.createInternalRepl(process.env\x2C (err\x2C repl) => {\n if (err) {\n throw err;\n }\n repl.on('exit'\x2C () => {\n if (repl._flushing) {\n repl.pause();\n return repl.once('flushHistory'\x2C () => {\n process.exit();\n });\n }\n process.exit();\n });\n });\n\n // If user passed '-e' or '--eval' along with `-i` or `--interactive`\x2C\n // evaluate the code in the current context.\n if (getOptionValue('[has_eval_string]')) {\n evalScript('[eval]'\x2C\n getOptionValue('--eval')\x2C\n getOptionValue('--inspect-brk')\x2C\n getOptionValue('--print'));\n }\n });\n}\n
code-source-info,0xa52511b907e,90,0,1819,C0O0C4O1819,,
code-creation,Function,10,17953,0xa52511b91f6,221, node:internal/main/repl:1:1,0xa52511b8fe8,~
code-source-info,0xa52511b91f6,90,0,1819,C0O0C22O176C28O176C33O145C38O240C44O240C49O305C55O305C60O290C66O361C72O361C76O361C78O425C84O425C89O406C95O455C98O486C101O512C104O524C109O528C115O559C121O559C126O602C131O614C139O629C144O633C153O615C160O734C166O738C172O872C175O880C183O880C188O931C191O939C199O939C204O965C214O965C220O1818,,
code-creation,LazyCompile,10,18209,0xa52511b96e6,76,nativeModuleRequire node:internal/bootstrap/loaders:332:29,0x334c17f0f8c8,~
script-source,9,node:internal/bootstrap/loaders,// This file creates the internal module & binding loaders used by built-in\n// modules. In contrast\x2C user land modules are loaded using\n// lib/internal/modules/cjs/loader.js (CommonJS Modules) or\n// lib/internal/modules/esm/* (ES Modules).\n//\n// This file is compiled and run by node.cc before bootstrap/node.js\n// was called\x2C therefore the loaders are bootstrapped before we start to\n// actually bootstrap Node.js. It creates the following objects:\n//\n// C++ binding loaders:\n// - process.binding(): the legacy C++ binding loader\x2C accessible from user land\n// because it is an object attached to the global process object.\n// These C++ bindings are created using NODE_BUILTIN_MODULE_CONTEXT_AWARE()\n// and have their nm_flags set to NM_F_BUILTIN. We do not make any guarantees\n// about the stability of these bindings\x2C but still have to take care of\n// compatibility issues caused by them from time to time.\n// - process._linkedBinding(): intended to be used by embedders to add\n// additional C++ bindings in their applications. These C++ bindings\n// can be created using NODE_MODULE_CONTEXT_AWARE_CPP() with the flag\n// NM_F_LINKED.\n// - internalBinding(): the private internal C++ binding loader\x2C inaccessible\n// from user land unless through `require('internal/test/binding')`.\n// These C++ bindings are created using NODE_MODULE_CONTEXT_AWARE_INTERNAL()\n// and have their nm_flags set to NM_F_INTERNAL.\n//\n// Internal JavaScript module loader:\n// - NativeModule: a minimal module system used to load the JavaScript core\n// modules found in lib/**/*.js and deps/**/*.js. All core modules are\n// compiled into the node binary via node_javascript.cc generated by js2c.py\x2C\n// so they can be loaded faster without the cost of I/O. This class makes the\n// lib/internal/*\x2C deps/internal/* modules and internalBinding() available by\n// default to core modules\x2C and lets the core modules require itself via\n// require('internal/bootstrap/loaders') even when this file is not written in\n// CommonJS style.\n//\n// Other objects:\n// - process.moduleLoadList: an array recording the bindings and the modules\n// loaded in the process and the order in which they are loaded.\n\n'use strict';\n\n// This file is compiled as if it's wrapped in a function with arguments\n// passed by node::RunBootstrapping()\n/* global process\x2C getLinkedBinding\x2C getInternalBinding\x2C primordials */\n\nconst {\n ArrayPrototypeMap\x2C\n ArrayPrototypePush\x2C\n ArrayPrototypeSlice\x2C\n Error\x2C\n ObjectCreate\x2C\n ObjectDefineProperty\x2C\n ObjectKeys\x2C\n ObjectPrototypeHasOwnProperty\x2C\n ReflectGet\x2C\n SafeMap\x2C\n SafeSet\x2C\n String\x2C\n StringPrototypeStartsWith\x2C\n TypeError\x2C\n} = primordials;\n\n// Set up process.moduleLoadList.\nconst moduleLoadList = [];\nObjectDefineProperty(process\x2C 'moduleLoadList'\x2C {\n value: moduleLoadList\x2C\n configurable: true\x2C\n enumerable: true\x2C\n writable: false\n});\n\n\n// internalBindingAllowlist contains the name of internalBinding modules\n// that are allowed for access via process.binding()... This is used\n// to provide a transition path for modules that are being moved over to\n// internalBinding.\nconst internalBindingAllowlist = new SafeSet([\n 'async_wrap'\x2C\n 'buffer'\x2C\n 'cares_wrap'\x2C\n 'config'\x2C\n 'constants'\x2C\n 'contextify'\x2C\n 'crypto'\x2C\n 'fs'\x2C\n 'fs_event_wrap'\x2C\n 'http_parser'\x2C\n 'icu'\x2C\n 'inspector'\x2C\n 'js_stream'\x2C\n 'natives'\x2C\n 'os'\x2C\n 'pipe_wrap'\x2C\n 'process_wrap'\x2C\n 'signal_wrap'\x2C\n 'spawn_sync'\x2C\n 'stream_wrap'\x2C\n 'tcp_wrap'\x2C\n 'tls_wrap'\x2C\n 'tty_wrap'\x2C\n 'udp_wrap'\x2C\n 'url'\x2C\n 'util'\x2C\n 'uv'\x2C\n 'v8'\x2C\n 'zlib'\x2C\n]);\n\nconst runtimeDeprecatedList = new SafeSet([\n 'async_wrap'\x2C\n 'crypto'\x2C\n 'http_parser'\x2C\n 'signal_wrap'\x2C\n 'url'\x2C\n 'v8'\x2C\n]);\n\nconst legacyWrapperList = new SafeSet([\n 'util'\x2C\n]);\n\n// Set up process.binding() and process._linkedBinding().\n{\n const bindingObj = ObjectCreate(null);\n\n process.binding = function binding(module) {\n module = String(module);\n // Deprecated specific process.binding() modules\x2C but not all\x2C allow\n // selective fallback to internalBinding for the deprecated ones.\n if (internalBindingAllowlist.has(module)) {\n if (runtimeDeprecatedList.has(module)) {\n runtimeDeprecatedList.delete(module);\n process.emitWarning(\n `Access to process.binding('${module}') is deprecated.`\x2C\n 'DeprecationWarning'\x2C\n 'DEP0111');\n }\n if (legacyWrapperList.has(module)) {\n return nativeModuleRequire('internal/legacy/processbinding')[module]();\n }\n return internalBinding(module);\n }\n // eslint-disable-next-line no-restricted-syntax\n throw new Error(`No such module: ${module}`);\n };\n\n process._linkedBinding = function _linkedBinding(module) {\n module = String(module);\n let mod = bindingObj[module];\n if (typeof mod !== 'object')\n mod = bindingObj[module] = getLinkedBinding(module);\n return mod;\n };\n}\n\n// Set up internalBinding() in the closure.\n/**\n * @type {InternalBinding}\n */\nlet internalBinding;\n{\n const bindingObj = ObjectCreate(null);\n // eslint-disable-next-line no-global-assign\n internalBinding = function internalBinding(module) {\n let mod = bindingObj[module];\n if (typeof mod !== 'object') {\n mod = bindingObj[module] = getInternalBinding(module);\n ArrayPrototypePush(moduleLoadList\x2C `Internal Binding ${module}`);\n }\n return mod;\n };\n}\n\nconst loaderId = 'internal/bootstrap/loaders';\nconst {\n moduleIds\x2C\n compileFunction\n} = internalBinding('native_module');\n\nconst getOwn = (target\x2C property\x2C receiver) => {\n return ObjectPrototypeHasOwnProperty(target\x2C property) ?\n ReflectGet(target\x2C property\x2C receiver) :\n undefined;\n};\n\n/**\n * An internal abstraction for the built-in JavaScript modules of Node.js.\n * Be careful not to expose this to user land unless --expose-internals is\n * used\x2C in which case there is no compatibility guarantee about this class.\n */\nclass NativeModule {\n /**\n * A map from the module IDs to the module instances.\n * @type {Map<string\x2C NativeModule>}\n */\n static map = new SafeMap(\n ArrayPrototypeMap(moduleIds\x2C (id) => [id\x2C new NativeModule(id)])\n );\n\n constructor(id) {\n this.filename = `${id}.js`;\n this.id = id;\n this.canBeRequiredByUsers = !StringPrototypeStartsWith(id\x2C 'internal/');\n\n // The CJS exports object of the module.\n this.exports = {};\n // States used to work around circular dependencies.\n this.loaded = false;\n this.loading = false;\n\n // The following properties are used by the ESM implementation and only\n // initialized when the native module is loaded by users.\n /**\n * The C++ ModuleWrap binding used to interface with the ESM implementation.\n * @type {ModuleWrap|undefined}\n */\n this.module = undefined;\n /**\n * Exported names for the ESM imports.\n * @type {string[]|undefined}\n */\n this.exportKeys = undefined;\n }\n\n // To be called during pre-execution when --expose-internals is on.\n // Enables the user-land module loader to access internal modules.\n static exposeInternals() {\n for (const { 0: id\x2C 1: mod } of NativeModule.map) {\n // Do not expose this to user land even with --expose-internals.\n if (id !== loaderId) {\n mod.canBeRequiredByUsers = true;\n }\n }\n }\n\n static exists(id) {\n return NativeModule.map.has(id);\n }\n\n static canBeRequiredByUsers(id) {\n const mod = NativeModule.map.get(id);\n return mod && mod.canBeRequiredByUsers;\n }\n\n // Used by user-land module loaders to compile and load builtins.\n compileForPublicLoader() {\n if (!this.canBeRequiredByUsers) {\n // No code because this is an assertion against bugs\n // eslint-disable-next-line no-restricted-syntax\n throw new Error(`Should not compile ${this.id} for public use`);\n }\n this.compileForInternalLoader();\n if (!this.exportKeys) {\n // When using --expose-internals\x2C we do not want to reflect the named\n // exports from core modules as this can trigger unnecessary getters.\n const internal = StringPrototypeStartsWith(this.id\x2C 'internal/');\n this.exportKeys = internal ? [] : ObjectKeys(this.exports);\n }\n this.getESMFacade();\n this.syncExports();\n return this.exports;\n }\n\n getESMFacade() {\n if (this.module) return this.module;\n const { ModuleWrap } = internalBinding('module_wrap');\n const url = `node:${this.id}`;\n const nativeModule = this;\n const exportsKeys = ArrayPrototypeSlice(this.exportKeys);\n ArrayPrototypePush(exportsKeys\x2C 'default');\n this.module = new ModuleWrap(\n url\x2C undefined\x2C exportsKeys\x2C\n function() {\n nativeModule.syncExports();\n this.setExport('default'\x2C nativeModule.exports);\n });\n // Ensure immediate sync execution to capture exports now\n this.module.instantiate();\n this.module.evaluate(-1\x2C false);\n return this.module;\n }\n\n // Provide named exports for all builtin libraries so that the libraries\n // may be imported in a nicer way for ESM users. The default export is left\n // as the entire namespace (module.exports) and updates when this function is\n // called so that APMs and other behavior are supported.\n syncExports() {\n const names = this.exportKeys;\n if (this.module) {\n for (let i = 0; i < names.length; i++) {\n const exportName = names[i];\n if (exportName === 'default') continue;\n this.module.setExport(exportName\x2C\n getOwn(this.exports\x2C exportName\x2C this.exports));\n }\n }\n }\n\n compileForInternalLoader() {\n if (this.loaded || this.loading) {\n return this.exports;\n }\n\n const id = this.id;\n this.loading = true;\n\n try {\n const requireFn = StringPrototypeStartsWith(this.id\x2C 'internal/deps/') ?\n requireWithFallbackInDeps : nativeModuleRequire;\n\n const fn = compileFunction(id);\n fn(this.exports\x2C requireFn\x2C this\x2C process\x2C internalBinding\x2C primordials);\n\n this.loaded = true;\n } finally {\n this.loading = false;\n }\n\n ArrayPrototypePush(moduleLoadList\x2C `NativeModule ${id}`);\n return this.exports;\n }\n}\n\n// Think of this as module.exports in this file even though it is not\n// written in CommonJS style.\nconst loaderExports = {\n internalBinding\x2C\n NativeModule\x2C\n require: nativeModuleRequire\n};\n\nfunction nativeModuleRequire(id) {\n if (id === loaderId) {\n return loaderExports;\n }\n\n const mod = NativeModule.map.get(id);\n // Can't load the internal errors module from here\x2C have to use a raw error.\n // eslint-disable-next-line no-restricted-syntax\n if (!mod) throw new TypeError(`Missing internal module '${id}'`);\n return mod.compileForInternalLoader();\n}\n\n// Allow internal modules from dependencies to require\n// other modules from dependencies by providing fallbacks.\nfunction requireWithFallbackInDeps(request) {\n if (!NativeModule.map.has(request)) {\n request = `internal/deps/${request}`;\n }\n return nativeModuleRequire(request);\n}\n\n// Pass the exports back to C++ land for C++ internals to use.\nreturn loaderExports;\n
code-source-info,0xa52511b96e6,9,10315,10658,C0O10324C2O10335C4O10331C9O10351C13O10372C14O10392C19O10405C24O10409C29O10409C35O10550C37O10560C47O10608C60O10566C65O10560C66O10629C71O10629C75O10656,,
tick,0x1257f0f,18722,0,0x0,3,0x11e9ce0,0xa52511b9212
code-creation,LazyCompile,10,18783,0xa52511ba3f6,175,compileForInternalLoader node:internal/bootstrap/loaders:299:27,0x334c17f0f7f8,~
code-source-info,0xa52511ba3f6,9,9528,10089,C0O9546C6O9561C12O9590C16O9598C17O9626C22O9634C23O9647C30O9690C37O9721C45O9690C63O9820C70O9820C75O9855C89O9890C103O9847C108O9928C109O9940C124O9970C126O9983C141O10003C152O10022C160O10054C165O10003C170O10077C174O10085,,
code-creation,Eval,10,19150,0xa52511bb316,5, node:internal/bootstrap/pre_execution:1:1,0xa52511baf70,~
script-source,91,node:internal/bootstrap/pre_execution,'use strict';\n\nconst {\n NumberParseInt\x2C\n ObjectDefineProperty\x2C\n SafeMap\x2C\n SafeWeakMap\x2C\n StringPrototypeStartsWith\x2C\n globalThis\x2C\n} = primordials;\n\nconst {\n getOptionValue\x2C\n shouldNotRegisterESMLoader\n} = require('internal/options');\nconst { reconnectZeroFillToggle } = require('internal/buffer');\n\nconst { Buffer } = require('buffer');\nconst { ERR_MANIFEST_ASSERT_INTEGRITY } = require('internal/errors').codes;\nconst assert = require('internal/assert');\n\nfunction prepareMainThreadExecution(expandArgv1 = false) {\n // TODO(joyeecheung): this is also necessary for workers when they deserialize\n // this toggle from the snapshot.\n reconnectZeroFillToggle();\n\n // Patch the process object with legacy properties and normalizations\n patchProcessObject(expandArgv1);\n setupTraceCategoryState();\n setupPerfHooks();\n setupInspectorHooks();\n setupWarningHandler();\n\n // Resolve the coverage directory to an absolute path\x2C and\n // overwrite process.env so that the original path gets passed\n // to child processes even when they switch cwd.\n if (process.env.NODE_V8_COVERAGE) {\n process.env.NODE_V8_COVERAGE =\n setupCoverageHooks(process.env.NODE_V8_COVERAGE);\n }\n\n\n setupDebugEnv();\n\n // Print stack trace on `SIGINT` if option `--trace-sigint` presents.\n setupStacktracePrinterOnSigint();\n\n // Process initial diagnostic reporting configuration\x2C if present.\n initializeReport();\n initializeReportSignalHandlers(); // Main-thread-only.\n\n initializeHeapSnapshotSignalHandlers();\n\n // If the process is spawned with env NODE_CHANNEL_FD\x2C it's probably\n // spawned by our child_process module\x2C then initialize IPC.\n // This attaches some internal event listeners and creates:\n // process.send()\x2C process.channel\x2C process.connected\x2C\n // process.disconnect().\n setupChildProcessIpcChannel();\n\n // Load policy from disk and parse it.\n initializePolicy();\n\n // If this is a worker in cluster mode\x2C start up the communication\n // channel. This needs to be done before any user code gets executed\n // (including preload modules).\n initializeClusterIPC();\n\n initializeSourceMapsHandlers();\n initializeDeprecations();\n initializeWASI();\n initializeCJSLoader();\n initializeESMLoader();\n\n const CJSLoader = require('internal/modules/cjs/loader');\n assert(!CJSLoader.hasLoadedAnyUserCJSModule);\n loadPreloadModules();\n initializeFrozenIntrinsics();\n}\n\nfunction patchProcessObject(expandArgv1) {\n const binding = internalBinding('process_methods');\n binding.patchProcessObject(process);\n\n // TODO(joyeecheung): snapshot fast APIs (which need to work with\n // array buffers\x2C whose connection with C++ needs to be rebuilt after\n // deserialization).\n const {\n hrtime\x2C\n hrtimeBigInt\n } = require('internal/process/per_thread').getFastAPIs(binding);\n\n process.hrtime = hrtime;\n process.hrtime.bigint = hrtimeBigInt;\n\n ObjectDefineProperty(process\x2C 'argv0'\x2C {\n enumerable: true\x2C\n configurable: false\x2C\n value: process.argv[0]\n });\n process.argv[0] = process.execPath;\n\n if (expandArgv1 && process.argv[1] &&\n !StringPrototypeStartsWith(process.argv[1]\x2C '-')) {\n // Expand process.argv[1] into a full path.\n const path = require('path');\n try {\n process.argv[1] = path.resolve(process.argv[1]);\n } catch {}\n }\n\n // TODO(joyeecheung): most of these should be deprecated and removed\x2C\n // except some that we need to be able to mutate during run time.\n addReadOnlyProcessAlias('_eval'\x2C '--eval');\n addReadOnlyProcessAlias('_print_eval'\x2C '--print');\n addReadOnlyProcessAlias('_syntax_check_only'\x2C '--check');\n addReadOnlyProcessAlias('_forceRepl'\x2C '--interactive');\n addReadOnlyProcessAlias('_preload_modules'\x2C '--require');\n addReadOnlyProcessAlias('noDeprecation'\x2C '--no-deprecation');\n addReadOnlyProcessAlias('noProcessWarnings'\x2C '--no-warnings');\n addReadOnlyProcessAlias('traceProcessWarnings'\x2C '--trace-warnings');\n addReadOnlyProcessAlias('throwDeprecation'\x2C '--throw-deprecation');\n addReadOnlyProcessAlias('profProcess'\x2C '--prof-process');\n addReadOnlyProcessAlias('traceDeprecation'\x2C '--trace-deprecation');\n addReadOnlyProcessAlias('_breakFirstLine'\x2C '--inspect-brk'\x2C false);\n addReadOnlyProcessAlias('_breakNodeFirstLine'\x2C '--inspect-brk-node'\x2C false);\n}\n\nfunction addReadOnlyProcessAlias(name\x2C option\x2C enumerable = true) {\n const value = getOptionValue(option);\n if (value) {\n ObjectDefineProperty(process\x2C name\x2C {\n writable: false\x2C\n configurable: true\x2C\n enumerable\x2C\n value\n });\n }\n}\n\nfunction setupWarningHandler() {\n const {\n onWarning\n } = require('internal/process/warning');\n if (getOptionValue('--warnings') &&\n process.env.NODE_NO_WARNINGS !== '1') {\n process.on('warning'\x2C onWarning);\n }\n}\n\n// Setup User-facing NODE_V8_COVERAGE environment variable that writes\n// ScriptCoverage to a specified file.\nfunction setupCoverageHooks(dir) {\n const cwd = require('internal/process/execution').tryGetCwd();\n const { resolve } = require('path');\n const coverageDirectory = resolve(cwd\x2C dir);\n const { sourceMapCacheToObject } =\n require('internal/source_map/source_map_cache');\n\n if (process.features.inspector) {\n internalBinding('profiler').setCoverageDirectory(coverageDirectory);\n internalBinding('profiler').setSourceMapCacheGetter(sourceMapCacheToObject);\n } else {\n process.emitWarning('The inspector is disabled\x2C ' +\n 'coverage could not be collected'\x2C\n 'Warning');\n return '';\n }\n return coverageDirectory;\n}\n\nfunction setupStacktracePrinterOnSigint() {\n if (!getOptionValue('--trace-sigint')) {\n return;\n }\n const { SigintWatchdog } = require('internal/watchdog');\n\n const watchdog = new SigintWatchdog();\n watchdog.start();\n}\n\nfunction initializeReport() {\n const { report } = require('internal/process/report');\n ObjectDefineProperty(process\x2C 'report'\x2C {\n enumerable: false\x2C\n configurable: true\x2C\n get() {\n return report;\n }\n });\n}\n\nfunction setupDebugEnv() {\n require('internal/util/debuglog').initializeDebugEnv(process.env.NODE_DEBUG);\n if (getOptionValue('--expose-internals')) {\n require('internal/bootstrap/loaders').NativeModule.exposeInternals();\n }\n}\n\n// This has to be called after initializeReport() is called\nfunction initializeReportSignalHandlers() {\n const { addSignalHandler } = require('internal/process/report');\n\n addSignalHandler();\n}\n\nfunction initializeHeapSnapshotSignalHandlers() {\n const signal = getOptionValue('--heapsnapshot-signal');\n\n if (!signal)\n return;\n\n require('internal/validators').validateSignalName(signal);\n const { writeHeapSnapshot } = require('v8');\n\n process.on(signal\x2C () => {\n writeHeapSnapshot();\n });\n}\n\nfunction setupTraceCategoryState() {\n const { isTraceCategoryEnabled } = internalBinding('trace_events');\n const { toggleTraceCategoryState } = require('internal/process/per_thread');\n toggleTraceCategoryState(isTraceCategoryEnabled('node.async_hooks'));\n}\n\nfunction setupPerfHooks() {\n require('internal/perf/performance').refreshTimeOrigin();\n require('internal/perf/utils').refreshTimeOrigin();\n}\n\nfunction setupInspectorHooks() {\n // If Debugger.setAsyncCallStackDepth is sent during bootstrap\x2C\n // we cannot immediately call into JS to enable the hooks\x2C which could\n // interrupt the JS execution of bootstrap. So instead we save the\n // notification in the inspector agent if it's sent in the middle of\n // bootstrap\x2C and process the notification later here.\n if (internalBinding('config').hasInspector) {\n const {\n enable\x2C\n disable\n } = require('internal/inspector_async_hook');\n internalBinding('inspector').registerAsyncHook(enable\x2C disable);\n }\n}\n\n// In general deprecations are initialized wherever the APIs are implemented\x2C\n// this is used to deprecate APIs implemented in C++ where the deprecation\n// utilities are not easily accessible.\nfunction initializeDeprecations() {\n const { deprecate } = require('internal/util');\n const pendingDeprecation = getOptionValue('--pending-deprecation');\n\n // DEP0103: access to `process.binding('util').isX` type checkers\n // TODO(addaleax): Turn into a full runtime deprecation.\n const utilBinding = internalBinding('util');\n const types = require('internal/util/types');\n for (const name of [\n 'isArrayBuffer'\x2C\n 'isArrayBufferView'\x2C\n 'isAsyncFunction'\x2C\n 'isDataView'\x2C\n 'isDate'\x2C\n 'isExternal'\x2C\n 'isMap'\x2C\n 'isMapIterator'\x2C\n 'isNativeError'\x2C\n 'isPromise'\x2C\n 'isRegExp'\x2C\n 'isSet'\x2C\n 'isSetIterator'\x2C\n 'isTypedArray'\x2C\n 'isUint8Array'\x2C\n 'isAnyArrayBuffer'\x2C\n ]) {\n utilBinding[name] = pendingDeprecation ?\n deprecate(types[name]\x2C\n 'Accessing native typechecking bindings of Node ' +\n 'directly is deprecated. ' +\n `Please use \\`util.types.${name}\\` instead.`\x2C\n 'DEP0103') :\n types[name];\n }\n\n // TODO(joyeecheung): this is a legacy property exposed to process.\n // Now that we use the config binding to carry this information\x2C remove\n // it from the process. We may consider exposing it properly in\n // process.features.\n const { noBrowserGlobals } = internalBinding('config');\n if (noBrowserGlobals) {\n ObjectDefineProperty(process\x2C '_noBrowserGlobals'\x2C {\n writable: false\x2C\n enumerable: true\x2C\n configurable: true\x2C\n value: noBrowserGlobals\n });\n }\n\n if (pendingDeprecation) {\n process.binding = deprecate(process.binding\x2C\n 'process.binding() is deprecated. ' +\n 'Please use public APIs instead.'\x2C 'DEP0111');\n\n process._tickCallback = deprecate(process._tickCallback\x2C\n 'process._tickCallback() is deprecated'\x2C\n 'DEP0134');\n }\n\n // Create global.process and global.Buffer as getters so that we have a\n // deprecation path for these in ES Modules.\n // See https://github.com/nodejs/node/pull/26334.\n let _process = process;\n ObjectDefineProperty(globalThis\x2C 'process'\x2C {\n get() {\n return _process;\n }\x2C\n set(value) {\n _process = value;\n }\x2C\n enumerable: false\x2C\n configurable: true\n });\n\n let _Buffer = Buffer;\n ObjectDefineProperty(globalThis\x2C 'Buffer'\x2C {\n get() {\n return _Buffer;\n }\x2C\n set(value) {\n _Buffer = value;\n }\x2C\n enumerable: false\x2C\n configurable: true\n });\n}\n\nfunction setupChildProcessIpcChannel() {\n if (process.env.NODE_CHANNEL_FD) {\n const assert = require('internal/assert');\n\n const fd = NumberParseInt(process.env.NODE_CHANNEL_FD\x2C 10);\n assert(fd >= 0);\n\n // Make sure it's not accidentally inherited by child processes.\n delete process.env.NODE_CHANNEL_FD;\n\n const serializationMode =\n process.env.NODE_CHANNEL_SERIALIZATION_MODE || 'json';\n delete process.env.NODE_CHANNEL_SERIALIZATION_MODE;\n\n require('child_process')._forkChild(fd\x2C serializationMode);\n assert(process.send);\n }\n}\n\nfunction initializeClusterIPC() {\n if (process.argv[1] && process.env.NODE_UNIQUE_ID) {\n const cluster = require('cluster');\n cluster._setupWorker();\n // Make sure it's not accidentally inherited by child processes.\n delete process.env.NODE_UNIQUE_ID;\n }\n}\n\nfunction initializePolicy() {\n const experimentalPolicy = getOptionValue('--experimental-policy');\n if (experimentalPolicy) {\n process.emitWarning('Policies are experimental.'\x2C\n 'ExperimentalWarning');\n const { pathToFileURL\x2C URL } = require('internal/url');\n // URL here as it is slightly different parsing\n // no bare specifiers for now\n let manifestURL;\n if (require('path').isAbsolute(experimentalPolicy)) {\n manifestURL = new URL(`file://${experimentalPolicy}`);\n } else {\n const cwdURL = pathToFileURL(process.cwd());\n cwdURL.pathname += '/';\n manifestURL = new URL(experimentalPolicy\x2C cwdURL);\n }\n const fs = require('fs');\n const src = fs.readFileSync(manifestURL\x2C 'utf8');\n const experimentalPolicyIntegrity = getOptionValue('--policy-integrity');\n if (experimentalPolicyIntegrity) {\n const SRI = require('internal/policy/sri');\n const { createHash\x2C timingSafeEqual } = require('crypto');\n const realIntegrities = new SafeMap();\n const integrityEntries = SRI.parse(experimentalPolicyIntegrity);\n let foundMatch = false;\n for (let i = 0; i < integrityEntries.length; i++) {\n const {\n algorithm\x2C\n value: expected\n } = integrityEntries[i];\n const hash = createHash(algorithm);\n hash.update(src);\n const digest = hash.digest();\n if (digest.length === expected.length &&\n timingSafeEqual(digest\x2C expected)) {\n foundMatch = true;\n break;\n }\n realIntegrities.set(algorithm\x2C digest.toString('base64'));\n }\n if (!foundMatch) {\n throw new ERR_MANIFEST_ASSERT_INTEGRITY(manifestURL\x2C realIntegrities);\n }\n }\n require('internal/process/policy')\n .setup(src\x2C manifestURL.href);\n }\n}\n\nfunction initializeWASI() {\n const { NativeModule } = require('internal/bootstrap/loaders');\n const mod = NativeModule.map.get('wasi');\n mod.canBeRequiredByUsers =\n getOptionValue('--experimental-wasi-unstable-preview1');\n}\n\nfunction initializeCJSLoader() {\n const CJSLoader = require('internal/modules/cjs/loader');\n CJSLoader.Module._initPaths();\n // TODO(joyeecheung): deprecate this in favor of a proper hook?\n CJSLoader.Module.runMain =\n require('internal/modules/run_main').executeUserEntryPoint;\n}\n\nfunction initializeESMLoader() {\n // Create this WeakMap in js-land because V8 has no C++ API for WeakMap.\n internalBinding('module_wrap').callbackMap = new SafeWeakMap();\n\n if (shouldNotRegisterESMLoader) return;\n\n const {\n setImportModuleDynamicallyCallback\x2C\n setInitializeImportMetaObjectCallback\n } = internalBinding('module_wrap');\n const esm = require('internal/process/esm_loader');\n // Setup per-isolate callbacks that locate data or callbacks that we keep\n // track of for different ESM modules.\n setInitializeImportMetaObjectCallback(esm.initializeImportMetaObject);\n setImportModuleDynamicallyCallback(esm.importModuleDynamicallyCallback);\n\n // Patch the vm module when --experimental-vm-modules is on.\n // Please update the comments in vm.js when this block changes.\n if (getOptionValue('--experimental-vm-modules')) {\n const {\n Module\x2C SourceTextModule\x2C SyntheticModule\x2C\n } = require('internal/vm/module');\n const vm = require('vm');\n vm.Module = Module;\n vm.SourceTextModule = SourceTextModule;\n vm.SyntheticModule = SyntheticModule;\n }\n}\n\nfunction initializeSourceMapsHandlers() {\n const { setSourceMapsEnabled } =\n require('internal/source_map/source_map_cache');\n process.setSourceMapsEnabled = setSourceMapsEnabled;\n}\n\nfunction initializeFrozenIntrinsics() {\n if (getOptionValue('--frozen-intrinsics')) {\n process.emitWarning('The --frozen-intrinsics flag is experimental'\x2C\n 'ExperimentalWarning');\n require('internal/freeze_intrinsics')();\n }\n}\n\nfunction loadPreloadModules() {\n // For user code\x2C we preload modules if `-r` is passed\n const preloadModules = getOptionValue('--require');\n if (preloadModules && preloadModules.length > 0) {\n const {\n Module: {\n _preloadModules\n }\x2C\n } = require('internal/modules/cjs/loader');\n _preloadModules(preloadModules);\n }\n}\n\nmodule.exports = {\n patchProcessObject\x2C\n setupCoverageHooks\x2C\n setupWarningHandler\x2C\n setupDebugEnv\x2C\n setupPerfHooks\x2C\n prepareMainThreadExecution\x2C\n initializeDeprecations\x2C\n initializeESMLoader\x2C\n initializeFrozenIntrinsics\x2C\n initializeSourceMapsHandlers\x2C\n loadPreloadModules\x2C\n setupTraceCategoryState\x2C\n setupInspectorHooks\x2C\n initializeReport\x2C\n initializeCJSLoader\x2C\n initializeWASI\n};\n
code-source-info,0xa52511bb316,91,0,15915,C0O0C4O15915,,
tick,0xfb31aa,19862,1,0xb515a0,3,0xd44a10,0xa52511ba43c,0xa52511b972d,0xa52511b9212
code-creation,Function,10,19878,0xa52511bbe26,426, node:internal/bootstrap/pre_execution:1:1,0xa52511bb280,~
code-source-info,0xa52511bbe26,91,0,15915,C0O0C190O25C196O43C202O67C208O78C214O93C220O122C226O211C232O211C237O162C243O180C249O276C255O276C260O248C266O324C272O324C277O313C283O385C289O385C294O411C299O351C305O434C311O434C315O434C317O15518C324O15539C330O15561C336O15583C342O15606C348O15623C354O15641C360O15671C366O15697C372O15720C378O15750C384O15782C390O15804C396O15831C402O15854C408O15874C414O15897C420O15533C425O15914,,
code-creation,Eval,10,20084,0xa52511bd716,5, node:internal/options:1:1,0xa52511bd550,~
script-source,92,node:internal/options,'use strict';\n\nconst { getOptions\x2C shouldNotRegisterESMLoader } = internalBinding('options');\n\nlet warnOnAllowUnauthorized = true;\n\nlet optionsMap;\nlet aliasesMap;\n\n// getOptions() would serialize the option values from C++ land.\n// It would error if the values are queried before bootstrap is\n// complete so that we don't accidentally include runtime-dependent\n// states into a runtime-independent snapshot.\nfunction getOptionsFromBinding() {\n if (!optionsMap) {\n ({ options: optionsMap } = getOptions());\n }\n return optionsMap;\n}\n\nfunction getAliasesFromBinding() {\n if (!aliasesMap) {\n ({ aliases: aliasesMap } = getOptions());\n }\n return aliasesMap;\n}\n\nfunction getOptionValue(optionName) {\n const options = getOptionsFromBinding();\n if (optionName.startsWith('--no-')) {\n const option = options.get('--' + optionName.slice(5));\n return option && !option.value;\n }\n return options.get(optionName)?.value;\n}\n\nfunction getAllowUnauthorized() {\n const allowUnauthorized = process.env.NODE_TLS_REJECT_UNAUTHORIZED === '0';\n\n if (allowUnauthorized && warnOnAllowUnauthorized) {\n warnOnAllowUnauthorized = false;\n process.emitWarning(\n 'Setting the NODE_TLS_REJECT_UNAUTHORIZED ' +\n 'environment variable to \\'0\\' makes TLS connections ' +\n 'and HTTPS requests insecure by disabling ' +\n 'certificate verification.');\n }\n return allowUnauthorized;\n}\n\nmodule.exports = {\n get options() {\n return getOptionsFromBinding();\n }\x2C\n get aliases() {\n return getAliasesFromBinding();\n }\x2C\n getOptionValue\x2C\n getAllowUnauthorized\x2C\n shouldNotRegisterESMLoader\n};\n
code-source-info,0xa52511bd716,92,0,1612,C0O0C4O1612,,
code-creation,Function,10,20161,0xa52511bda9e,139, node:internal/options:1:1,0xa52511bd680,~
code-source-info,0xa52511bda9e,92,0,1612,C0O0C43O66C46O66C51O23C57O35C62O125C63O125C65O136C66O136C68O152C69O152C71O1401C78O1540C84O1558C90O1582C133O1416C138O1611,,
code-creation,LazyCompile,10,20232,0xa52511bdf3e,69,internalBinding node:internal/bootstrap/loaders:164:45,0x334c17f0f348,~
code-source-info,0xa52511bdf3e,9,5115,5353,C0O5140C7O5150C11O5164C15O5201C25O5228C30O5226C37O5262C48O5281C56O5317C61O5262C66O5338C68O5349,,
code-creation,Eval,10,20463,0xa52511bea2e,5, node:internal/process/esm_loader:1:1,0xa52511be828,~
script-source,93,node:internal/process/esm_loader,'use strict';\n\nconst {\n ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING\x2C\n} = require('internal/errors').codes;\nconst { Loader } = require('internal/modules/esm/loader');\nconst {\n hasUncaughtExceptionCaptureCallback\x2C\n} = require('internal/process/execution');\nconst { pathToFileURL } = require('internal/url');\nconst {\n getModuleFromWrap\x2C\n} = require('internal/vm/module');\n\nexports.initializeImportMetaObject = function(wrap\x2C meta) {\n const { callbackMap } = internalBinding('module_wrap');\n if (callbackMap.has(wrap)) {\n const { initializeImportMeta } = callbackMap.get(wrap);\n if (initializeImportMeta !== undefined) {\n initializeImportMeta(meta\x2C getModuleFromWrap(wrap) || wrap);\n }\n }\n};\n\nexports.importModuleDynamicallyCallback = async function(wrap\x2C specifier) {\n const { callbackMap } = internalBinding('module_wrap');\n if (callbackMap.has(wrap)) {\n const { importModuleDynamically } = callbackMap.get(wrap);\n if (importModuleDynamically !== undefined) {\n return importModuleDynamically(\n specifier\x2C getModuleFromWrap(wrap) || wrap);\n }\n }\n throw new ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING();\n};\n\nlet ESMLoader = new Loader();\nexports.ESMLoader = ESMLoader;\n\nasync function initializeLoader() {\n const { getOptionValue } = require('internal/options');\n const userLoader = getOptionValue('--experimental-loader');\n if (!userLoader)\n return;\n let cwd;\n try {\n cwd = process.cwd() + '/';\n } catch {\n cwd = 'file:///';\n }\n // If --experimental-loader is specified\x2C create a loader with user hooks.\n // Otherwise create the default loader.\n const { emitExperimentalWarning } = require('internal/util');\n emitExperimentalWarning('--experimental-loader');\n return (async () => {\n const hooks =\n await ESMLoader.import(userLoader\x2C pathToFileURL(cwd).href);\n ESMLoader = new Loader();\n ESMLoader.hook(hooks);\n ESMLoader.runGlobalPreloadCode();\n return exports.ESMLoader = ESMLoader;\n })();\n}\n\nexports.loadESM = async function loadESM(callback) {\n try {\n await initializeLoader();\n await callback(ESMLoader);\n } catch (err) {\n if (hasUncaughtExceptionCaptureCallback()) {\n process._fatalException(err);\n return;\n }\n internalBinding('errors').triggerUncaughtException(\n err\x2C\n true /* fromPromise */\n );\n }\n};\n
code-source-info,0xa52511bea2e,93,0,2326,C0O0C4O2326,,
code-creation,Function,10,20573,0xa52511bed16,189, node:internal/process/esm_loader:1:1,0xa52511be998,~
code-source-info,0xa52511bed16,93,0,2326,C0O0C45O69C51O69C56O95C61O25C67O122C73O122C78O111C84O213C90O213C95O172C101O278C107O278C112O260C118O336C124O336C129O313C135O368C142O403C146O704C153O744C157O1156C160O1156C165O1156C167O1170C172O1188C176O1971C183O1987C188O2325,,
tick,0x1257aa0,20657,1,0xb515a0,6,0xd44a10,0xa52511ba43c,0xa52511b972d,0xa52511b9222
new,MemoryChunk,0xce7fc600000,262144
code-creation,Eval,10,20926,0xa52511bfab6,5, node:internal/modules/esm/loader:1:1,0xa52511bf7b0,~
script-source,94,node:internal/modules/esm/loader,'use strict';\n\n// This is needed to avoid cycles in esm/resolve <-> cjs/loader\nrequire('internal/modules/cjs/loader');\n\nconst {\n FunctionPrototypeBind\x2C\n ObjectSetPrototypeOf\x2C\n RegExpPrototypeExec\x2C\n SafeWeakMap\x2C\n StringPrototypeStartsWith\x2C\n globalThis\x2C\n} = primordials;\n\nconst {\n ERR_INVALID_ARG_TYPE\x2C\n ERR_INVALID_ARG_VALUE\x2C\n ERR_INVALID_MODULE_SPECIFIER\x2C\n ERR_INVALID_RETURN_PROPERTY\x2C\n ERR_INVALID_RETURN_PROPERTY_VALUE\x2C\n ERR_INVALID_RETURN_VALUE\x2C\n ERR_UNKNOWN_MODULE_FORMAT\n} = require('internal/errors').codes;\nconst { URL\x2C pathToFileURL\x2C isURLInstance } = require('internal/url');\nconst ModuleMap = require('internal/modules/esm/module_map');\nconst ModuleJob = require('internal/modules/esm/module_job');\n\nconst {\n defaultResolve\x2C\n DEFAULT_CONDITIONS\x2C\n} = require('internal/modules/esm/resolve');\nconst { defaultGetFormat } = require('internal/modules/esm/get_format');\nconst { defaultGetSource } = require(\n 'internal/modules/esm/get_source');\nconst { defaultTransformSource } = require(\n 'internal/modules/esm/transform_source');\nconst { translators } = require(\n 'internal/modules/esm/translators');\nconst { getOptionValue } = require('internal/options');\n\n/* A Loader instance is used as the main entry point for loading ES modules.\n * Currently\x2C this is a singleton -- there is only one used for loading\n * the main module and everything in its dependency graph. */\nclass Loader {\n constructor() {\n // Methods which translate input code or other information\n // into es modules\n this.translators = translators;\n\n // Registry of loaded modules\x2C akin to `require.cache`\n this.moduleMap = new ModuleMap();\n\n // Map of already-loaded CJS modules to use\n this.cjsCache = new SafeWeakMap();\n\n // This hook is called before the first root module is imported. It's a\n // function that returns a piece of code that runs as a sloppy-mode script.\n // The script may evaluate to a function that can be called with a\n // `getBuiltin` helper that can be used to retrieve builtins.\n // If the hook returns `null` instead of a source string\x2C it opts out of\n // running any preload code.\n // The preload code runs as soon as the hook module has finished evaluating.\n this._getGlobalPreloadCode = null;\n // The resolver has the signature\n // (specifier : string\x2C parentURL : string\x2C defaultResolve)\n // -> Promise<{ url : string }>\n // where defaultResolve is ModuleRequest.resolve (having the same\n // signature itself).\n this._resolve = defaultResolve;\n // This hook is called after the module is resolved but before a translator\n // is chosen to load it; the format returned by this function is the name\n // of a translator.\n this._getFormat = defaultGetFormat;\n // This hook is called just before the source code of an ES module file\n // is loaded.\n this._getSource = defaultGetSource;\n // This hook is called just after the source code of an ES module file\n // is loaded\x2C but before anything is done with the string.\n this._transformSource = defaultTransformSource;\n // The index for assigning unique URLs to anonymous module evaluation\n this.evalIndex = 0;\n }\n\n async resolve(specifier\x2C parentURL) {\n const isMain = parentURL === undefined;\n if (!isMain && typeof parentURL !== 'string' && !isURLInstance(parentURL))\n throw new ERR_INVALID_ARG_TYPE('parentURL'\x2C ['string'\x2C 'URL']\x2C parentURL);\n\n const resolveResponse = await this._resolve(\n specifier\x2C { parentURL\x2C conditions: DEFAULT_CONDITIONS }\x2C defaultResolve);\n if (typeof resolveResponse !== 'object') {\n throw new ERR_INVALID_RETURN_VALUE(\n 'object'\x2C 'loader resolve'\x2C resolveResponse);\n }\n\n const { url } = resolveResponse;\n if (typeof url !== 'string') {\n throw new ERR_INVALID_RETURN_PROPERTY_VALUE(\n 'string'\x2C 'loader resolve'\x2C 'url'\x2C url);\n }\n return url;\n }\n\n async getFormat(url) {\n const getFormatResponse = await this._getFormat(\n url\x2C {}\x2C defaultGetFormat);\n if (typeof getFormatResponse !== 'object') {\n throw new ERR_INVALID_RETURN_VALUE(\n 'object'\x2C 'loader getFormat'\x2C getFormatResponse);\n }\n\n const { format } = getFormatResponse;\n if (format === null) {\n const dataUrl = RegExpPrototypeExec(\n /^data:([^/]+\\/[^;\x2C]+)(?:[^\x2C]*?)(;base64)?\x2C/\x2C\n url\x2C\n );\n throw new ERR_INVALID_MODULE_SPECIFIER(\n url\x2C\n dataUrl ? `has an unsupported MIME type "${dataUrl[1]}"` : '');\n }\n if (typeof format !== 'string') {\n throw new ERR_INVALID_RETURN_PROPERTY_VALUE(\n 'string'\x2C 'loader getFormat'\x2C 'format'\x2C format);\n }\n\n if (format === 'builtin') {\n return format;\n }\n\n if (this._resolve !== defaultResolve) {\n try {\n new URL(url);\n } catch {\n throw new ERR_INVALID_RETURN_PROPERTY(\n 'url'\x2C 'loader resolve'\x2C 'url'\x2C url\n );\n }\n }\n\n if (this._resolve === defaultResolve &&\n !StringPrototypeStartsWith(url\x2C 'file:') &&\n !StringPrototypeStartsWith(url\x2C 'data:')\n ) {\n throw new ERR_INVALID_RETURN_PROPERTY(\n 'file: or data: url'\x2C 'loader resolve'\x2C 'url'\x2C url\n );\n }\n\n return format;\n }\n\n async eval(\n source\x2C\n url = pathToFileURL(`${process.cwd()}/[eval${++this.evalIndex}]`).href\n ) {\n const evalInstance = (url) => {\n const { ModuleWrap\x2C callbackMap } = internalBinding('module_wrap');\n const module = new ModuleWrap(url\x2C undefined\x2C source\x2C 0\x2C 0);\n callbackMap.set(module\x2C {\n importModuleDynamically: (specifier\x2C { url }) => {\n return this.import(specifier\x2C url);\n }\n });\n\n return module;\n };\n const job = new ModuleJob(this\x2C url\x2C evalInstance\x2C false\x2C false);\n this.moduleMap.set(url\x2C job);\n const { module } = await job.run();\n return {\n namespace: module.getNamespace()\x2C\n };\n }\n\n async import(specifier\x2C parent) {\n const job = await this.getModuleJob(specifier\x2C parent);\n const { module } = await job.run();\n return module.getNamespace();\n }\n\n hook(hooks) {\n const {\n resolve\x2C\n dynamicInstantiate\x2C\n getFormat\x2C\n getSource\x2C\n transformSource\x2C\n getGlobalPreloadCode\x2C\n } = hooks;\n\n // Use .bind() to avoid giving access to the Loader instance when called.\n if (resolve !== undefined)\n this._resolve = FunctionPrototypeBind(resolve\x2C null);\n if (dynamicInstantiate !== undefined) {\n process.emitWarning(\n 'The dynamicInstantiate loader hook has been removed.');\n }\n if (getFormat !== undefined) {\n this._getFormat = FunctionPrototypeBind(getFormat\x2C null);\n }\n if (getSource !== undefined) {\n this._getSource = FunctionPrototypeBind(getSource\x2C null);\n }\n if (transformSource !== undefined) {\n this._transformSource = FunctionPrototypeBind(transformSource\x2C null);\n }\n if (getGlobalPreloadCode !== undefined) {\n this._getGlobalPreloadCode =\n FunctionPrototypeBind(getGlobalPreloadCode\x2C null);\n }\n }\n\n runGlobalPreloadCode() {\n if (!this._getGlobalPreloadCode) {\n return;\n }\n const preloadCode = this._getGlobalPreloadCode();\n if (preloadCode === null) {\n return;\n }\n\n if (typeof preloadCode !== 'string') {\n throw new ERR_INVALID_RETURN_VALUE(\n 'string'\x2C 'loader getGlobalPreloadCode'\x2C preloadCode);\n }\n const { compileFunction } = require('vm');\n const preloadInit = compileFunction(preloadCode\x2C ['getBuiltin']\x2C {\n filename: '<preload>'\x2C\n });\n const { NativeModule } = require('internal/bootstrap/loaders');\n\n preloadInit.call(globalThis\x2C (builtinName) => {\n if (NativeModule.canBeRequiredByUsers(builtinName)) {\n return require(builtinName);\n }\n throw new ERR_INVALID_ARG_VALUE('builtinName'\x2C builtinName);\n });\n }\n\n async getModuleJob(specifier\x2C parentURL) {\n const url = await this.resolve(specifier\x2C parentURL);\n const format = await this.getFormat(url);\n let job = this.moduleMap.get(url);\n // CommonJS will set functions for lazy job evaluation.\n if (typeof job === 'function')\n this.moduleMap.set(url\x2C job = job());\n if (job !== undefined)\n return job;\n\n if (!translators.has(format))\n throw new ERR_UNKNOWN_MODULE_FORMAT(format);\n\n const loaderInstance = translators.get(format);\n\n const inspectBrk = parentURL === undefined &&\n format === 'module' && getOptionValue('--inspect-brk');\n job = new ModuleJob(this\x2C url\x2C loaderInstance\x2C parentURL === undefined\x2C\n inspectBrk);\n this.moduleMap.set(url\x2C job);\n return job;\n }\n}\n\nObjectSetPrototypeOf(Loader.prototype\x2C null);\n\nexports.Loader = Loader;\n
code-source-info,0xa52511bfab6,94,0,8716,C0O0C4O8716,,
code-creation,Function,10,21323,0xce7fc6012d6,430, node:internal/modules/esm/loader:1:1,0xa52511bfa20,~
code-source-info,0xce7fc6012d6,94,0,8716,C0O0C89O79C95O79C99O130C105O155C110O179C116O202C122O217C128O246C134O493C140O493C145O519C150O286C156O310C162O335C168O367C174O398C180O435C186O463C192O573C198O573C203O535C209O540C215O555C221O616C227O616C231O616C233O678C239O678C243O678C245O775C251O775C256O733C262O751C268O845C274O845C279O824C285O918C291O918C296O897C302O1000C308O1000C313O973C319O1077C325O1077C330O1061C336O1152C342O1152C347O1133C410O8672C417O8644C422O8691C424O8706C429O8715,,
tick,0x1173eb2,21724,1,0xb515a0,2,0xd44a10,0xa52511ba43c,0xa52511b972d,0xce7fc601335,0xa52511ba45d,0xa52511b972d,0xa52511bed5f,0xa52511ba45d,0xa52511b972d,0xa52511b9222
code-creation,Eval,10,22364,0xce7fc60411e,5, node:internal/modules/cjs/loader:1:1,0xce7fc603828,~
script-source,95,node:internal/modules/cjs/loader,// Copyright Joyent\x2C Inc. and other Node contributors.\n//\n// Permission is hereby granted\x2C free of charge\x2C to any person obtaining a\n// copy of this software and associated documentation files (the\n// "Software")\x2C to deal in the Software without restriction\x2C including\n// without limitation the rights to use\x2C copy\x2C modify\x2C merge\x2C publish\x2C\n// distribute\x2C sublicense\x2C and/or sell copies of the Software\x2C and to permit\n// persons to whom the Software is furnished to do so\x2C subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED "AS IS"\x2C WITHOUT WARRANTY OF ANY KIND\x2C EXPRESS\n// OR IMPLIED\x2C INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY\x2C FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM\x2C\n// DAMAGES OR OTHER LIABILITY\x2C WHETHER IN AN ACTION OF CONTRACT\x2C TORT OR\n// OTHERWISE\x2C ARISING FROM\x2C OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n'use strict';\n\nconst {\n ArrayIsArray\x2C\n ArrayPrototypeConcat\x2C\n ArrayPrototypeFilter\x2C\n ArrayPrototypeIncludes\x2C\n ArrayPrototypeIndexOf\x2C\n ArrayPrototypeJoin\x2C\n ArrayPrototypePush\x2C\n ArrayPrototypeSlice\x2C\n ArrayPrototypeSplice\x2C\n ArrayPrototypeUnshift\x2C\n ArrayPrototypeUnshiftApply\x2C\n Boolean\x2C\n Error\x2C\n JSONParse\x2C\n ObjectCreate\x2C\n ObjectDefineProperty\x2C\n ObjectFreeze\x2C\n ObjectGetOwnPropertyDescriptor\x2C\n ObjectGetPrototypeOf\x2C\n ObjectKeys\x2C\n ObjectPrototype\x2C\n ObjectPrototypeHasOwnProperty\x2C\n ObjectSetPrototypeOf\x2C\n Proxy\x2C\n ReflectApply\x2C\n ReflectSet\x2C\n RegExpPrototypeExec\x2C\n RegExpPrototypeTest\x2C\n SafeMap\x2C\n SafeWeakMap\x2C\n String\x2C\n StringPrototypeCharAt\x2C\n StringPrototypeCharCodeAt\x2C\n StringPrototypeEndsWith\x2C\n StringPrototypeLastIndexOf\x2C\n StringPrototypeIndexOf\x2C\n StringPrototypeMatch\x2C\n StringPrototypeRepeat\x2C\n StringPrototypeSlice\x2C\n StringPrototypeSplit\x2C\n StringPrototypeStartsWith\x2C\n} = primordials;\n\n// Map used to store CJS parsing data.\nconst cjsParseCache = new SafeWeakMap();\n\n// Set first due to cycle with ESM loader functions.\nmodule.exports = {\n wrapSafe\x2C Module\x2C toRealPath\x2C readPackageScope\x2C cjsParseCache\x2C\n get hasLoadedAnyUserCJSModule() { return hasLoadedAnyUserCJSModule; }\n};\n\nconst { NativeModule } = require('internal/bootstrap/loaders');\nconst {\n maybeCacheSourceMap\x2C\n} = require('internal/source_map/source_map_cache');\nconst { pathToFileURL\x2C fileURLToPath\x2C isURLInstance } = require('internal/url');\nconst { deprecate } = require('internal/util');\nconst vm = require('vm');\nconst assert = require('internal/assert');\nconst fs = require('fs');\nconst internalFS = require('internal/fs/utils');\nconst path = require('path');\nconst { sep } = path;\nconst { internalModuleStat } = internalBinding('fs');\nconst packageJsonReader = require('internal/modules/package_json_reader');\nconst { safeGetenv } = internalBinding('credentials');\nconst {\n cjsConditions\x2C\n hasEsmSyntax\x2C\n loadNativeModule\x2C\n makeRequireFunction\x2C\n normalizeReferrerURL\x2C\n stripBOM\x2C\n} = require('internal/modules/cjs/helpers');\nconst { getOptionValue } = require('internal/options');\nconst preserveSymlinks = getOptionValue('--preserve-symlinks');\nconst preserveSymlinksMain = getOptionValue('--preserve-symlinks-main');\n// Do not eagerly grab .manifest\x2C it may be in TDZ\nconst policy = getOptionValue('--experimental-policy') ?\n require('internal/process/policy') :\n null;\n\n// Whether any user-provided CJS modules had been loaded (executed).\n// Used for internal assertions.\nlet hasLoadedAnyUserCJSModule = false;\n\nconst {\n codes: {\n ERR_INVALID_ARG_VALUE\x2C\n ERR_INVALID_MODULE_SPECIFIER\x2C\n ERR_REQUIRE_ESM\x2C\n ERR_UNKNOWN_BUILTIN_MODULE\x2C\n }\x2C\n setArrowMessage\x2C\n} = require('internal/errors');\nconst { validateString } = require('internal/validators');\nconst pendingDeprecation = getOptionValue('--pending-deprecation');\n\nconst {\n CHAR_FORWARD_SLASH\x2C\n CHAR_BACKWARD_SLASH\x2C\n CHAR_COLON\n} = require('internal/constants');\n\nconst {\n isProxy\n} = require('internal/util/types');\n\nconst asyncESM = require('internal/process/esm_loader');\nconst { enrichCJSError } = require('internal/modules/esm/translators');\nconst { kEvaluated } = internalBinding('module_wrap');\nconst {\n encodedSepRegEx\x2C\n packageExportsResolve\x2C\n packageImportsResolve\n} = require('internal/modules/esm/resolve');\n\nconst isWindows = process.platform === 'win32';\n\nconst relativeResolveCache = ObjectCreate(null);\n\nlet requireDepth = 0;\nlet statCache = null;\nlet isPreloading = false;\n\nfunction stat(filename) {\n filename = path.toNamespacedPath(filename);\n if (statCache !== null) {\n const result = statCache.get(filename);\n if (result !== undefined) return result;\n }\n const result = internalModuleStat(filename);\n if (statCache !== null && result >= 0) {\n // Only set cache when `internalModuleStat(filename)` succeeds.\n statCache.set(filename\x2C result);\n }\n return result;\n}\n\nfunction updateChildren(parent\x2C child\x2C scan) {\n const children = parent?.children;\n if (children && !(scan && ArrayPrototypeIncludes(children\x2C child)))\n ArrayPrototypePush(children\x2C child);\n}\n\nconst moduleParentCache = new SafeWeakMap();\nfunction Module(id = ''\x2C parent) {\n this.id = id;\n this.path = path.dirname(id);\n this.exports = {};\n moduleParentCache.set(this\x2C parent);\n updateChildren(parent\x2C this\x2C false);\n this.filename = null;\n this.loaded = false;\n this.children = [];\n}\n\nconst builtinModules = [];\nfor (const { 0: id\x2C 1: mod } of NativeModule.map) {\n if (mod.canBeRequiredByUsers) {\n ArrayPrototypePush(builtinModules\x2C id);\n }\n}\n\nObjectFreeze(builtinModules);\nModule.builtinModules = builtinModules;\n\nModule._cache = ObjectCreate(null);\nModule._pathCache = ObjectCreate(null);\nModule._extensions = ObjectCreate(null);\nlet modulePaths = [];\nModule.globalPaths = [];\n\nlet patched = false;\n\n// eslint-disable-next-line func-style\nlet wrap = function(script) {\n return Module.wrapper[0] + script + Module.wrapper[1];\n};\n\nconst wrapper = [\n '(function (exports\x2C require\x2C module\x2C __filename\x2C __dirname) { '\x2C\n '\\n});'\x2C\n];\n\nlet wrapperProxy = new Proxy(wrapper\x2C {\n set(target\x2C property\x2C value\x2C receiver) {\n patched = true;\n return ReflectSet(target\x2C property\x2C value\x2C receiver);\n }\x2C\n\n defineProperty(target\x2C property\x2C descriptor) {\n patched = true;\n return ObjectDefineProperty(target\x2C property\x2C descriptor);\n }\n});\n\nObjectDefineProperty(Module\x2C 'wrap'\x2C {\n get() {\n return wrap;\n }\x2C\n\n set(value) {\n patched = true;\n wrap = value;\n }\n});\n\nObjectDefineProperty(Module\x2C 'wrapper'\x2C {\n get() {\n return wrapperProxy;\n }\x2C\n\n set(value) {\n patched = true;\n wrapperProxy = value;\n }\n});\n\nconst isPreloadingDesc = { get() { return isPreloading; } };\nObjectDefineProperty(Module.prototype\x2C 'isPreloading'\x2C isPreloadingDesc);\nObjectDefineProperty(NativeModule.prototype\x2C 'isPreloading'\x2C isPreloadingDesc);\n\nfunction getModuleParent() {\n return moduleParentCache.get(this);\n}\n\nfunction setModuleParent(value) {\n moduleParentCache.set(this\x2C value);\n}\n\nObjectDefineProperty(Module.prototype\x2C 'parent'\x2C {\n get: pendingDeprecation ? deprecate(\n getModuleParent\x2C\n 'module.parent is deprecated due to accuracy issues. Please use ' +\n 'require.main to find program entry point instead.'\x2C\n 'DEP0144'\n ) : getModuleParent\x2C\n set: pendingDeprecation ? deprecate(\n setModuleParent\x2C\n 'module.parent is deprecated due to accuracy issues. Please use ' +\n 'require.main to find program entry point instead.'\x2C\n 'DEP0144'\n ) : setModuleParent\x2C\n});\n\nlet debug = require('internal/util/debuglog').debuglog('module'\x2C (fn) => {\n debug = fn;\n});\nModule._debug = deprecate(debug\x2C 'Module._debug is deprecated.'\x2C 'DEP0077');\n\n// Given a module name\x2C and a list of paths to test\x2C returns the first\n// matching file in the following precedence.\n//\n// require("a.<ext>")\n// -> a.<ext>\n//\n// require("a")\n// -> a\n// -> a.<ext>\n// -> a/index.<ext>\n\nconst packageJsonCache = new SafeMap();\n\nfunction readPackage(requestPath) {\n const jsonPath = path.resolve(requestPath\x2C 'package.json');\n\n const existing = packageJsonCache.get(jsonPath);\n if (existing !== undefined) return existing;\n\n const result = packageJsonReader.read(jsonPath);\n const json = result.containsKeys === false ? '{}' : result.string;\n if (json === undefined) {\n packageJsonCache.set(jsonPath\x2C false);\n return false;\n }\n\n try {\n const parsed = JSONParse(json);\n const filtered = {\n name: parsed.name\x2C\n main: parsed.main\x2C\n exports: parsed.exports\x2C\n imports: parsed.imports\x2C\n type: parsed.type\n };\n packageJsonCache.set(jsonPath\x2C filtered);\n return filtered;\n } catch (e) {\n e.path = jsonPath;\n e.message = 'Error parsing ' + jsonPath + ': ' + e.message;\n throw e;\n }\n}\n\nfunction readPackageScope(checkPath) {\n const rootSeparatorIndex = StringPrototypeIndexOf(checkPath\x2C sep);\n let separatorIndex;\n do {\n separatorIndex = StringPrototypeLastIndexOf(checkPath\x2C sep);\n checkPath = StringPrototypeSlice(checkPath\x2C 0\x2C separatorIndex);\n if (StringPrototypeEndsWith(checkPath\x2C sep + 'node_modules'))\n return false;\n const pjson = readPackage(checkPath + sep);\n if (pjson) return {\n data: pjson\x2C\n path: checkPath\x2C\n };\n } while (separatorIndex > rootSeparatorIndex);\n return false;\n}\n\nfunction tryPackage(requestPath\x2C exts\x2C isMain\x2C originalPath) {\n const pkg = readPackage(requestPath)?.main;\n\n if (!pkg) {\n return tryExtensions(path.resolve(requestPath\x2C 'index')\x2C exts\x2C isMain);\n }\n\n const filename = path.resolve(requestPath\x2C pkg);\n let actual = tryFile(filename\x2C isMain) ||\n tryExtensions(filename\x2C exts\x2C isMain) ||\n tryExtensions(path.resolve(filename\x2C 'index')\x2C exts\x2C isMain);\n if (actual === false) {\n actual = tryExtensions(path.resolve(requestPath\x2C 'index')\x2C exts\x2C isMain);\n if (!actual) {\n // eslint-disable-next-line no-restricted-syntax\n const err = new Error(\n `Cannot find module '${filename}'. ` +\n 'Please verify that the package.json has a valid "main" entry'\n );\n err.code = 'MODULE_NOT_FOUND';\n err.path = path.resolve(requestPath\x2C 'package.json');\n err.requestPath = originalPath;\n // TODO(BridgeAR): Add the requireStack as well.\n throw err;\n } else {\n const jsonPath = path.resolve(requestPath\x2C 'package.json');\n process.emitWarning(\n `Invalid 'main' field in '${jsonPath}' of '${pkg}'. ` +\n 'Please either fix that or report it to the module author'\x2C\n 'DeprecationWarning'\x2C\n 'DEP0128'\n );\n }\n }\n return actual;\n}\n\n// In order to minimize unnecessary lstat() calls\x2C\n// this cache is a list of known-real paths.\n// Set to an empty Map to reset.\nconst realpathCache = new SafeMap();\n\n// Check if the file exists and is not a directory\n// if using --preserve-symlinks and isMain is false\x2C\n// keep symlinks intact\x2C otherwise resolve to the\n// absolute realpath.\nfunction tryFile(requestPath\x2C isMain) {\n const rc = stat(requestPath);\n if (rc !== 0) return;\n if (preserveSymlinks && !isMain) {\n return path.resolve(requestPath);\n }\n return toRealPath(requestPath);\n}\n\nfunction toRealPath(requestPath) {\n return fs.realpathSync(requestPath\x2C {\n [internalFS.realpathCacheKey]: realpathCache\n });\n}\n\n// Given a path\x2C check if the file exists with any of the set extensions\nfunction tryExtensions(p\x2C exts\x2C isMain) {\n for (let i = 0; i < exts.length; i++) {\n const filename = tryFile(p + exts[i]\x2C isMain);\n\n if (filename) {\n return filename;\n }\n }\n return false;\n}\n\n// Find the longest (possibly multi-dot) extension registered in\n// Module._extensions\nfunction findLongestRegisteredExtension(filename) {\n const name = path.basename(filename);\n let currentExtension;\n let index;\n let startIndex = 0;\n while ((index = StringPrototypeIndexOf(name\x2C '.'\x2C startIndex)) !== -1) {\n startIndex = index + 1;\n if (index === 0) continue; // Skip dotfiles like .gitignore\n currentExtension = StringPrototypeSlice(name\x2C index);\n if (Module._extensions[currentExtension]) return currentExtension;\n }\n return '.js';\n}\n\nfunction trySelfParentPath(parent) {\n if (!parent) return false;\n\n if (parent.filename) {\n return parent.filename;\n } else if (parent.id === '<repl>' || parent.id === 'internal/preload') {\n try {\n return process.cwd() + path.sep;\n } catch {\n return false;\n }\n }\n}\n\nfunction trySelf(parentPath\x2C request) {\n if (!parentPath) return false;\n\n const { data: pkg\x2C path: pkgPath } = readPackageScope(parentPath) || {};\n if (!pkg || pkg.exports === undefined) return false;\n if (typeof pkg.name !== 'string') return false;\n\n let expansion;\n if (request === pkg.name) {\n expansion = '.';\n } else if (StringPrototypeStartsWith(request\x2C `${pkg.name}/`)) {\n expansion = '.' + StringPrototypeSlice(request\x2C pkg.name.length);\n } else {\n return false;\n }\n\n try {\n return finalizeEsmResolution(packageExportsResolve(\n pathToFileURL(pkgPath + '/package.json')\x2C expansion\x2C pkg\x2C\n pathToFileURL(parentPath)\x2C cjsConditions)\x2C request\x2C parentPath\x2C pkgPath);\n } catch (e) {\n if (e.code === 'ERR_MODULE_NOT_FOUND')\n throw createEsmNotFoundErr(request\x2C pkgPath + '/package.json');\n throw e;\n }\n}\n\n// This only applies to requests of a specific form:\n// 1. name/.*\n// 2. @scope/name/.*\nconst EXPORTS_PATTERN = /^((?:@[^/\\\\%]+\\/)?[^./\\\\%][^/\\\\%]*)(\\/.*)?$/;\nfunction resolveExports(nmPath\x2C request) {\n // The implementation's behavior is meant to mirror resolution in ESM.\n const { 1: name\x2C 2: expansion = '' } =\n StringPrototypeMatch(request\x2C EXPORTS_PATTERN) || [];\n if (!name)\n return;\n const pkgPath = path.resolve(nmPath\x2C name);\n const pkg = readPackage(pkgPath);\n if (pkg?.exports != null) {\n try {\n return finalizeEsmResolution(packageExportsResolve(\n pathToFileURL(pkgPath + '/package.json')\x2C '.' + expansion\x2C pkg\x2C null\x2C\n cjsConditions)\x2C request\x2C null\x2C pkgPath);\n } catch (e) {\n if (e.code === 'ERR_MODULE_NOT_FOUND')\n throw createEsmNotFoundErr(request\x2C pkgPath + '/package.json');\n throw e;\n }\n }\n}\n\nconst trailingSlashRegex = /(?:^|\\/)\\.?\\.$/;\nModule._findPath = function(request\x2C paths\x2C isMain) {\n const absoluteRequest = path.isAbsolute(request);\n if (absoluteRequest) {\n paths = [''];\n } else if (!paths || paths.length === 0) {\n return false;\n }\n\n const cacheKey = request + '\\x00' + ArrayPrototypeJoin(paths\x2C '\\x00');\n const entry = Module._pathCache[cacheKey];\n if (entry)\n return entry;\n\n let exts;\n let trailingSlash = request.length > 0 &&\n StringPrototypeCharCodeAt(request\x2C request.length - 1) ===\n CHAR_FORWARD_SLASH;\n if (!trailingSlash) {\n trailingSlash = RegExpPrototypeTest(trailingSlashRegex\x2C request);\n }\n\n // For each path\n for (let i = 0; i < paths.length; i++) {\n // Don't search further if path doesn't exist\n const curPath = paths[i];\n if (curPath && stat(curPath) < 1) continue;\n\n if (!absoluteRequest) {\n const exportsResolved = resolveExports(curPath\x2C request);\n if (exportsResolved)\n return exportsResolved;\n }\n\n const basePath = path.resolve(curPath\x2C request);\n let filename;\n\n const rc = stat(basePath);\n if (!trailingSlash) {\n if (rc === 0) { // File.\n if (!isMain) {\n if (preserveSymlinks) {\n filename = path.resolve(basePath);\n } else {\n filename = toRealPath(basePath);\n }\n } else if (preserveSymlinksMain) {\n // For the main module\x2C we use the preserveSymlinksMain flag instead\n // mainly for backward compatibility\x2C as the preserveSymlinks flag\n // historically has not applied to the main module. Most likely this\n // was intended to keep .bin/ binaries working\x2C as following those\n // symlinks is usually required for the imports in the corresponding\n // files to resolve; that said\x2C in some use cases following symlinks\n // causes bigger problems which is why the preserveSymlinksMain option\n // is needed.\n filename = path.resolve(basePath);\n } else {\n filename = toRealPath(basePath);\n }\n }\n\n if (!filename) {\n // Try it with each of the extensions\n if (exts === undefined)\n exts = ObjectKeys(Module._extensions);\n filename = tryExtensions(basePath\x2C exts\x2C isMain);\n }\n }\n\n if (!filename && rc === 1) { // Directory.\n // try it with each of the extensions at "index"\n if (exts === undefined)\n exts = ObjectKeys(Module._extensions);\n filename = tryPackage(basePath\x2C exts\x2C isMain\x2C request);\n }\n\n if (filename) {\n Module._pathCache[cacheKey] = filename;\n return filename;\n }\n }\n\n return false;\n};\n\n// 'node_modules' character codes reversed\nconst nmChars = [ 115\x2C 101\x2C 108\x2C 117\x2C 100\x2C 111\x2C 109\x2C 95\x2C 101\x2C 100\x2C 111\x2C 110 ];\nconst nmLen = nmChars.length;\nif (isWindows) {\n // 'from' is the __dirname of the module.\n Module._nodeModulePaths = function(from) {\n // Guarantee that 'from' is absolute.\n from = path.resolve(from);\n\n // note: this approach *only* works when the path is guaranteed\n // to be absolute. Doing a fully-edge-case-correct path.split\n // that works on both Windows and Posix is non-trivial.\n\n // return root node_modules when path is 'D:\\\\'.\n // path.resolve will make sure from.length >=3 in Windows.\n if (StringPrototypeCharCodeAt(from\x2C from.length - 1) ===\n CHAR_BACKWARD_SLASH &&\n StringPrototypeCharCodeAt(from\x2C from.length - 2) === CHAR_COLON)\n return [from + 'node_modules'];\n\n const paths = [];\n for (let i = from.length - 1\x2C p = 0\x2C last = from.length; i >= 0; --i) {\n const code = StringPrototypeCharCodeAt(from\x2C i);\n // The path segment separator check ('\\' and '/') was used to get\n // node_modules path for every path segment.\n // Use colon as an extra condition since we can get node_modules\n // path for drive root like 'C:\\node_modules' and don't need to\n // parse drive name.\n if (code === CHAR_BACKWARD_SLASH ||\n code === CHAR_FORWARD_SLASH ||\n code === CHAR_COLON) {\n if (p !== nmLen)\n ArrayPrototypePush(\n paths\x2C\n StringPrototypeSlice(from\x2C 0\x2C last) + '\\\\node_modules'\n );\n last = i;\n p = 0;\n } else if (p !== -1) {\n if (nmChars[p] === code) {\n ++p;\n } else {\n p = -1;\n }\n }\n }\n\n return paths;\n };\n} else { // posix\n // 'from' is the __dirname of the module.\n Module._nodeModulePaths = function(from) {\n // Guarantee that 'from' is absolute.\n from = path.resolve(from);\n // Return early not only to avoid unnecessary work\x2C but to *avoid* returning\n // an array of two items for a root: [ '//node_modules'\x2C '/node_modules' ]\n if (from === '/')\n return ['/node_modules'];\n\n // note: this approach *only* works when the path is guaranteed\n // to be absolute. Doing a fully-edge-case-correct path.split\n // that works on both Windows and Posix is non-trivial.\n const paths = [];\n for (let i = from.length - 1\x2C p = 0\x2C last = from.length; i >= 0; --i) {\n const code = StringPrototypeCharCodeAt(from\x2C i);\n if (code === CHAR_FORWARD_SLASH) {\n if (p !== nmLen)\n ArrayPrototypePush(\n paths\x2C\n StringPrototypeSlice(from\x2C 0\x2C last) + '/node_modules'\n );\n last = i;\n p = 0;\n } else if (p !== -1) {\n if (nmChars[p] === code) {\n ++p;\n } else {\n p = -1;\n }\n }\n }\n\n // Append /node_modules to handle root paths.\n ArrayPrototypePush(paths\x2C '/node_modules');\n\n return paths;\n };\n}\n\nModule._resolveLookupPaths = function(request\x2C parent) {\n if (NativeModule.canBeRequiredByUsers(request)) {\n debug('looking for %j in []'\x2C request);\n return null;\n }\n\n // Check for node modules paths.\n if (StringPrototypeCharAt(request\x2C 0) !== '.' ||\n (request.length > 1 &&\n StringPrototypeCharAt(request\x2C 1) !== '.' &&\n StringPrototypeCharAt(request\x2C 1) !== '/' &&\n (!isWindows || StringPrototypeCharAt(request\x2C 1) !== '\\\\'))) {\n\n let paths = modulePaths;\n if (parent?.paths?.length) {\n paths = ArrayPrototypeConcat(parent.paths\x2C paths);\n }\n\n debug('looking for %j in %j'\x2C request\x2C paths);\n return paths.length > 0 ? paths : null;\n }\n\n // In REPL\x2C parent.filename is null.\n if (!parent || !parent.id || !parent.filename) {\n // Make require('./path/to/foo') work - normally the path is taken\n // from realpath(__filename) but in REPL there is no filename\n const mainPaths = ['.'];\n\n debug('looking for %j in %j'\x2C request\x2C mainPaths);\n return mainPaths;\n }\n\n debug('RELATIVE: requested: %s from parent.id %s'\x2C request\x2C parent.id);\n\n const parentDir = [path.dirname(parent.filename)];\n debug('looking for %j'\x2C parentDir);\n return parentDir;\n};\n\nfunction emitCircularRequireWarning(prop) {\n process.emitWarning(\n `Accessing non-existent property '${String(prop)}' of module exports ` +\n 'inside circular dependency'\n );\n}\n\n// A Proxy that can be used as the prototype of a module.exports object and\n// warns when non-existent properties are accessed.\nconst CircularRequirePrototypeWarningProxy = new Proxy({}\x2C {\n get(target\x2C prop) {\n // Allow __esModule access in any case because it is used in the output\n // of transpiled code to determine whether something comes from an\n // ES module\x2C and is not used as a regular key of `module.exports`.\n if (prop in target || prop === '__esModule') return target[prop];\n emitCircularRequireWarning(prop);\n return undefined;\n }\x2C\n\n getOwnPropertyDescriptor(target\x2C prop) {\n if (ObjectPrototypeHasOwnProperty(target\x2C prop) || prop === '__esModule')\n return ObjectGetOwnPropertyDescriptor(target\x2C prop);\n emitCircularRequireWarning(prop);\n return undefined;\n }\n});\n\nfunction getExportsForCircularRequire(module) {\n if (module.exports &&\n !isProxy(module.exports) &&\n ObjectGetPrototypeOf(module.exports) === ObjectPrototype &&\n // Exclude transpiled ES6 modules / TypeScript code because those may\n // employ unusual patterns for accessing 'module.exports'. That should\n // be okay because ES6 modules have a different approach to circular\n // dependencies anyway.\n !module.exports.__esModule) {\n // This is later unset once the module is done loading.\n ObjectSetPrototypeOf(\n module.exports\x2C CircularRequirePrototypeWarningProxy);\n }\n\n return module.exports;\n}\n\n// Check the cache for the requested file.\n// 1. If a module already exists in the cache: return its exports object.\n// 2. If the module is native: call\n// `NativeModule.prototype.compileForPublicLoader()` and return the exports.\n// 3. Otherwise\x2C create a new module for the file and save it to the cache.\n// Then have it load the file contents before returning its exports\n// object.\nModule._load = function(request\x2C parent\x2C isMain) {\n let relResolveCacheIdentifier;\n if (parent) {\n debug('Module._load REQUEST %s parent: %s'\x2C request\x2C parent.id);\n // Fast path for (lazy loaded) modules in the same directory. The indirect\n // caching is required to allow cache invalidation without changing the old\n // cache key names.\n relResolveCacheIdentifier = `${parent.path}\\x00${request}`;\n const filename = relativeResolveCache[relResolveCacheIdentifier];\n if (filename !== undefined) {\n const cachedModule = Module._cache[filename];\n if (cachedModule !== undefined) {\n updateChildren(parent\x2C cachedModule\x2C true);\n if (!cachedModule.loaded)\n return getExportsForCircularRequire(cachedModule);\n return cachedModule.exports;\n }\n delete relativeResolveCache[relResolveCacheIdentifier];\n }\n }\n\n const filename = Module._resolveFilename(request\x2C parent\x2C isMain);\n if (StringPrototypeStartsWith(filename\x2C 'node:')) {\n // Slice 'node:' prefix\n const id = StringPrototypeSlice(filename\x2C 5);\n\n const module = loadNativeModule(id\x2C request);\n if (!module?.canBeRequiredByUsers) {\n throw new ERR_UNKNOWN_BUILTIN_MODULE(filename);\n }\n\n return module.exports;\n }\n\n const cachedModule = Module._cache[filename];\n if (cachedModule !== undefined) {\n updateChildren(parent\x2C cachedModule\x2C true);\n if (!cachedModule.loaded) {\n const parseCachedModule = cjsParseCache.get(cachedModule);\n if (!parseCachedModule || parseCachedModule.loaded)\n return getExportsForCircularRequire(cachedModule);\n parseCachedModule.loaded = true;\n } else {\n return cachedModule.exports;\n }\n }\n\n const mod = loadNativeModule(filename\x2C request);\n if (mod?.canBeRequiredByUsers) return mod.exports;\n\n // Don't call updateChildren()\x2C Module constructor already does.\n const module = cachedModule || new Module(filename\x2C parent);\n\n if (isMain) {\n process.mainModule = module;\n module.id = '.';\n }\n\n Module._cache[filename] = module;\n if (parent !== undefined) {\n relativeResolveCache[relResolveCacheIdentifier] = filename;\n }\n\n let threw = true;\n try {\n module.load(filename);\n threw = false;\n } finally {\n if (threw) {\n delete Module._cache[filename];\n if (parent !== undefined) {\n delete relativeResolveCache[relResolveCacheIdentifier];\n const children = parent?.children;\n if (ArrayIsArray(children)) {\n const index = ArrayPrototypeIndexOf(children\x2C module);\n if (index !== -1) {\n ArrayPrototypeSplice(children\x2C index\x2C 1);\n }\n }\n }\n } else if (module.exports &&\n !isProxy(module.exports) &&\n ObjectGetPrototypeOf(module.exports) ===\n CircularRequirePrototypeWarningProxy) {\n ObjectSetPrototypeOf(module.exports\x2C ObjectPrototype);\n }\n }\n\n return module.exports;\n};\n\nModule._resolveFilename = function(request\x2C parent\x2C isMain\x2C options) {\n if (StringPrototypeStartsWith(request\x2C 'node:') ||\n NativeModule.canBeRequiredByUsers(request)) {\n return request;\n }\n\n let paths;\n\n if (typeof options === 'object' && options !== null) {\n if (ArrayIsArray(options.paths)) {\n const isRelative = StringPrototypeStartsWith(request\x2C './') ||\n StringPrototypeStartsWith(request\x2C '../') ||\n ((isWindows && StringPrototypeStartsWith(request\x2C '.\\\\')) ||\n StringPrototypeStartsWith(request\x2C '..\\\\'));\n\n if (isRelative) {\n paths = options.paths;\n } else {\n const fakeParent = new Module(''\x2C null);\n\n paths = [];\n\n for (let i = 0; i < options.paths.length; i++) {\n const path = options.paths[i];\n fakeParent.paths = Module._nodeModulePaths(path);\n const lookupPaths = Module._resolveLookupPaths(request\x2C fakeParent);\n\n for (let j = 0; j < lookupPaths.length; j++) {\n if (!ArrayPrototypeIncludes(paths\x2C lookupPaths[j]))\n ArrayPrototypePush(paths\x2C lookupPaths[j]);\n }\n }\n }\n } else if (options.paths === undefined) {\n paths = Module._resolveLookupPaths(request\x2C parent);\n } else {\n throw new ERR_INVALID_ARG_VALUE('options.paths'\x2C options.paths);\n }\n } else {\n paths = Module._resolveLookupPaths(request\x2C parent);\n }\n\n if (parent?.filename) {\n if (request[0] === '#') {\n const pkg = readPackageScope(parent.filename) || {};\n if (pkg.data?.imports != null) {\n try {\n return finalizeEsmResolution(\n packageImportsResolve(request\x2C pathToFileURL(parent.filename)\x2C\n cjsConditions)\x2C request\x2C parent.filename\x2C\n pkg.path);\n } catch (e) {\n if (e.code === 'ERR_MODULE_NOT_FOUND')\n throw createEsmNotFoundErr(request);\n throw e;\n }\n }\n }\n }\n\n // Try module self resolution first\n const parentPath = trySelfParentPath(parent);\n const selfResolved = trySelf(parentPath\x2C request);\n if (selfResolved) {\n const cacheKey = request + '\\x00' +\n (paths.length === 1 ? paths[0] : ArrayPrototypeJoin(paths\x2C '\\x00'));\n Module._pathCache[cacheKey] = selfResolved;\n return selfResolved;\n }\n\n // Look up the filename first\x2C since that's the cache key.\n const filename = Module._findPath(request\x2C paths\x2C isMain\x2C false);\n if (filename) return filename;\n const requireStack = [];\n for (let cursor = parent;\n cursor;\n cursor = moduleParentCache.get(cursor)) {\n ArrayPrototypePush(requireStack\x2C cursor.filename || cursor.id);\n }\n let message = `Cannot find module '${request}'`;\n if (requireStack.length > 0) {\n message = message + '\\nRequire stack:\\n- ' +\n ArrayPrototypeJoin(requireStack\x2C '\\n- ');\n }\n // eslint-disable-next-line no-restricted-syntax\n const err = new Error(message);\n err.code = 'MODULE_NOT_FOUND';\n err.requireStack = requireStack;\n throw err;\n};\n\nfunction finalizeEsmResolution(match\x2C request\x2C parentPath\x2C pkgPath) {\n const { resolved\x2C exact } = match;\n if (RegExpPrototypeTest(encodedSepRegEx\x2C resolved))\n throw new ERR_INVALID_MODULE_SPECIFIER(\n resolved\x2C 'must not include encoded "/" or "\\\\" characters'\x2C parentPath);\n const filename = fileURLToPath(resolved);\n let actual = tryFile(filename);\n if (!exact && !actual) {\n const exts = ObjectKeys(Module._extensions);\n actual = tryExtensions(filename\x2C exts\x2C false) ||\n tryPackage(filename\x2C exts\x2C false\x2C request);\n }\n if (actual)\n return actual;\n const err = createEsmNotFoundErr(filename\x2C\n path.resolve(pkgPath\x2C 'package.json'));\n throw err;\n}\n\nfunction createEsmNotFoundErr(request\x2C path) {\n // eslint-disable-next-line no-restricted-syntax\n const err = new Error(`Cannot find module '${request}'`);\n err.code = 'MODULE_NOT_FOUND';\n if (path)\n err.path = path;\n // TODO(BridgeAR): Add the requireStack as well.\n return err;\n}\n\n// Given a file name\x2C pass it to the proper extension handler.\nModule.prototype.load = function(filename) {\n debug('load %j for module %j'\x2C filename\x2C this.id);\n\n assert(!this.loaded);\n this.filename = filename;\n this.paths = Module._nodeModulePaths(path.dirname(filename));\n\n const extension = findLongestRegisteredExtension(filename);\n // allow .mjs to be overridden\n if (StringPrototypeEndsWith(filename\x2C '.mjs') && !Module._extensions['.mjs'])\n throw new ERR_REQUIRE_ESM(filename\x2C true);\n\n Module._extensions[extension](this\x2C filename);\n this.loaded = true;\n\n const ESMLoader = asyncESM.ESMLoader;\n // Create module entry at load time to snapshot exports correctly\n const exports = this.exports;\n // Preemptively cache\n if ((module?.module === undefined ||\n module.module.getStatus() < kEvaluated) &&\n !ESMLoader.cjsCache.has(this))\n ESMLoader.cjsCache.set(this\x2C exports);\n};\n\n\n// Loads a module at the given file path. Returns that module's\n// `exports` property.\nModule.prototype.require = function(id) {\n validateString(id\x2C 'id');\n if (id === '') {\n throw new ERR_INVALID_ARG_VALUE('id'\x2C id\x2C\n 'must be a non-empty string');\n }\n requireDepth++;\n try {\n return Module._load(id\x2C this\x2C /* isMain */ false);\n } finally {\n requireDepth--;\n }\n};\n\n\n// Resolved path to process.argv[1] will be lazily placed here\n// (needed for setting breakpoint when called with --inspect-brk)\nlet resolvedArgv;\nlet hasPausedEntry = false;\n\nfunction wrapSafe(filename\x2C content\x2C cjsModuleInstance) {\n if (patched) {\n const wrapper = Module.wrap(content);\n return vm.runInThisContext(wrapper\x2C {\n filename\x2C\n lineOffset: 0\x2C\n displayErrors: true\x2C\n importModuleDynamically: async (specifier) => {\n const loader = asyncESM.ESMLoader;\n return loader.import(specifier\x2C normalizeReferrerURL(filename));\n }\x2C\n });\n }\n try {\n return vm.compileFunction(content\x2C [\n 'exports'\x2C\n 'require'\x2C\n 'module'\x2C\n '__filename'\x2C\n '__dirname'\x2C\n ]\x2C {\n filename\x2C\n importModuleDynamically(specifier) {\n const loader = asyncESM.ESMLoader;\n return loader.import(specifier\x2C normalizeReferrerURL(filename));\n }\x2C\n });\n } catch (err) {\n if (process.mainModule === cjsModuleInstance)\n enrichCJSError(err\x2C content);\n throw err;\n }\n}\n\n// Run the file contents in the correct scope or sandbox. Expose\n// the correct helper variables (require\x2C module\x2C exports) to\n// the file.\n// Returns exception\x2C if any.\nModule.prototype._compile = function(content\x2C filename) {\n let moduleURL;\n let redirects;\n if (policy?.manifest) {\n moduleURL = pathToFileURL(filename);\n redirects = policy.manifest.getDependencyMapper(moduleURL);\n policy.manifest.assertIntegrity(moduleURL\x2C content);\n }\n\n maybeCacheSourceMap(filename\x2C content\x2C this);\n const compiledWrapper = wrapSafe(filename\x2C content\x2C this);\n\n let inspectorWrapper = null;\n if (getOptionValue('--inspect-brk') && process._eval == null) {\n if (!resolvedArgv) {\n // We enter the repl if we're not given a filename argument.\n if (process.argv[1]) {\n try {\n resolvedArgv = Module._resolveFilename(process.argv[1]\x2C null\x2C false);\n } catch {\n // We only expect this codepath to be reached in the case of a\n // preloaded module (it will fail earlier with the main entry)\n assert(ArrayIsArray(getOptionValue('--require')));\n }\n } else {\n resolvedArgv = 'repl';\n }\n }\n\n // Set breakpoint on module start\n if (resolvedArgv && !hasPausedEntry && filename === resolvedArgv) {\n hasPausedEntry = true;\n inspectorWrapper = internalBinding('inspector').callAndPauseOnStart;\n }\n }\n const dirname = path.dirname(filename);\n const require = makeRequireFunction(this\x2C redirects);\n let result;\n const exports = this.exports;\n const thisValue = exports;\n const module = this;\n if (requireDepth === 0) statCache = new SafeMap();\n if (inspectorWrapper) {\n result = inspectorWrapper(compiledWrapper\x2C thisValue\x2C exports\x2C\n require\x2C module\x2C filename\x2C dirname);\n } else {\n result = ReflectApply(compiledWrapper\x2C thisValue\x2C\n [exports\x2C require\x2C module\x2C filename\x2C dirname]);\n }\n hasLoadedAnyUserCJSModule = true;\n if (requireDepth === 0) statCache = null;\n return result;\n};\n\n// Native extension for .js\nModule._extensions['.js'] = function(module\x2C filename) {\n // If already analyzed the source\x2C then it will be cached.\n const cached = cjsParseCache.get(module);\n let content;\n if (cached?.source) {\n content = cached.source;\n cached.source = undefined;\n } else {\n content = fs.readFileSync(filename\x2C 'utf8');\n }\n if (StringPrototypeEndsWith(filename\x2C '.js')) {\n const pkg = readPackageScope(filename);\n // Function require shouldn't be used in ES modules.\n if (pkg?.data?.type === 'module') {\n const parent = moduleParentCache.get(module);\n const parentPath = parent?.filename;\n const packageJsonPath = path.resolve(pkg.path\x2C 'package.json');\n const usesEsm = hasEsmSyntax(content);\n const err = new ERR_REQUIRE_ESM(filename\x2C usesEsm\x2C parentPath\x2C\n packageJsonPath);\n // Attempt to reconstruct the parent require frame.\n if (Module._cache[parentPath]) {\n let parentSource;\n try {\n parentSource = fs.readFileSync(parentPath\x2C 'utf8');\n } catch {}\n if (parentSource) {\n const errLine = StringPrototypeSplit(\n StringPrototypeSlice(err.stack\x2C StringPrototypeIndexOf(\n err.stack\x2C ' at '))\x2C '\\n'\x2C 1)[0];\n const { 1: line\x2C 2: col } =\n RegExpPrototypeExec(/(\\d+):(\\d+)\\)/\x2C errLine) || [];\n if (line && col) {\n const srcLine = StringPrototypeSplit(parentSource\x2C '\\n')[line - 1];\n const frame = `${parentPath}:${line}\\n${srcLine}\\n${\n StringPrototypeRepeat(' '\x2C col - 1)}^\\n`;\n setArrowMessage(err\x2C frame);\n }\n }\n }\n throw err;\n }\n }\n module._compile(content\x2C filename);\n};\n\n\n// Native extension for .json\nModule._extensions['.json'] = function(module\x2C filename) {\n const content = fs.readFileSync(filename\x2C 'utf8');\n\n if (policy?.manifest) {\n const moduleURL = pathToFileURL(filename);\n policy.manifest.assertIntegrity(moduleURL\x2C content);\n }\n\n try {\n module.exports = JSONParse(stripBOM(content));\n } catch (err) {\n err.message = filename + ': ' + err.message;\n throw err;\n }\n};\n\n\n// Native extension for .node\nModule._extensions['.node'] = function(module\x2C filename) {\n if (policy?.manifest) {\n const content = fs.readFileSync(filename);\n const moduleURL = pathToFileURL(filename);\n policy.manifest.assertIntegrity(moduleURL\x2C content);\n }\n // Be aware this doesn't use `content`\n return process.dlopen(module\x2C path.toNamespacedPath(filename));\n};\n\nfunction createRequireFromPath(filename) {\n // Allow a directory to be passed as the filename\n const trailingSlash =\n StringPrototypeEndsWith(filename\x2C '/') ||\n (isWindows && StringPrototypeEndsWith(filename\x2C '\\\\'));\n\n const proxyPath = trailingSlash ?\n path.join(filename\x2C 'noop.js') :\n filename;\n\n const m = new Module(proxyPath);\n m.filename = proxyPath;\n\n m.paths = Module._nodeModulePaths(m.path);\n return makeRequireFunction(m\x2C null);\n}\n\nconst createRequireError = 'must be a file URL object\x2C file URL string\x2C or ' +\n 'absolute path string';\n\nfunction createRequire(filename) {\n let filepath;\n\n if (isURLInstance(filename) ||\n (typeof filename === 'string' && !path.isAbsolute(filename))) {\n try {\n filepath = fileURLToPath(filename);\n } catch {\n throw new ERR_INVALID_ARG_VALUE('filename'\x2C filename\x2C\n createRequireError);\n }\n } else if (typeof filename !== 'string') {\n throw new ERR_INVALID_ARG_VALUE('filename'\x2C filename\x2C createRequireError);\n } else {\n filepath = filename;\n }\n return createRequireFromPath(filepath);\n}\n\nModule.createRequire = createRequire;\n\nModule._initPaths = function() {\n const homeDir = isWindows ? process.env.USERPROFILE : safeGetenv('HOME');\n const nodePath = isWindows ? process.env.NODE_PATH : safeGetenv('NODE_PATH');\n\n // process.execPath is $PREFIX/bin/node except on Windows where it is\n // $PREFIX\\node.exe where $PREFIX is the root of the Node.js installation.\n const prefixDir = isWindows ?\n path.resolve(process.execPath\x2C '..') :\n path.resolve(process.execPath\x2C '..'\x2C '..');\n\n const paths = [path.resolve(prefixDir\x2C 'lib'\x2C 'node')];\n\n if (homeDir) {\n ArrayPrototypeUnshift(paths\x2C path.resolve(homeDir\x2C '.node_libraries'));\n ArrayPrototypeUnshift(paths\x2C path.resolve(homeDir\x2C '.node_modules'));\n }\n\n if (nodePath) {\n ArrayPrototypeUnshiftApply(paths\x2C ArrayPrototypeFilter(\n StringPrototypeSplit(nodePath\x2C path.delimiter)\x2C\n Boolean\n ));\n }\n\n modulePaths = paths;\n\n // Clone as a shallow copy\x2C for introspection.\n Module.globalPaths = ArrayPrototypeSlice(modulePaths);\n};\n\nModule._preloadModules = function(requests) {\n if (!ArrayIsArray(requests))\n return;\n\n isPreloading = true;\n\n // Preloaded modules have a dummy parent module which is deemed to exist\n // in the current working directory. This seeds the search path for\n // preloaded modules.\n const parent = new Module('internal/preload'\x2C null);\n try {\n parent.paths = Module._nodeModulePaths(process.cwd());\n } catch (e) {\n if (e.code !== 'ENOENT') {\n isPreloading = false;\n throw e;\n }\n }\n for (let n = 0; n < requests.length; n++)\n parent.require(requests[n]);\n isPreloading = false;\n};\n\nModule.syncBuiltinESMExports = function syncBuiltinESMExports() {\n for (const mod of NativeModule.map.values()) {\n if (mod.canBeRequiredByUsers) {\n mod.syncExports();\n }\n }\n};\n\n// Backwards compatibility\nModule.Module = Module;\n
code-source-info,0xce7fc60411e,95,0,40182,C0O0C4O40182,,
tick,0x7f4debd44473,24107,1,0xb515a0,3,0xd44a10,0xa52511ba43c,0xa52511b972d,0xce7fc601335,0xa52511ba45d,0xa52511b972d,0xa52511bed5f,0xa52511ba45d,0xa52511b972d,0xa52511b9222
tick,0x7f4dec1736c0,24124,1,0xb515a0,3,0xd44a10,0xa52511ba43c,0xa52511b972d,0xce7fc601335,0xa52511ba45d,0xa52511b972d,0xa52511bed5f,0xa52511ba45d,0xa52511b972d,0xa52511b9222
code-creation,Function,10,24128,0xce7fc605ebe,2547, node:internal/modules/cjs/loader:1:1,0xce7fc604088,~
code-source-info,0xce7fc605ebe,95,0,40182,C0O0C446O1159C452O1175C458O1199C464O1223C470O1249C476O1274C482O1296C488O1318C494O1341C500O1365C506O1390C512O1420C518O1431C524O1440C530O1453C535O1469C541O1493C546O1509C552O1543C558O1567C564O1581C570O1600C576O1633C582O1657C587O1666C593O1682C599O1696C605O1719C611O1742C617O1753C622O1768C628O1778C634O1803C640O1832C646O1859C652O1889C658O1915C664O1939C670O1964C676O1988C682O2012C688O2118C690O2118C695O2118C697O2191C709O2212C715O2222C721O2230C727O2242C733O2260C763O2206C767O2376C771O2376C777O2359C783O2450C787O2450C793O2425C799O2555C803O2555C809O2507C815O2522C821O2537C827O2602C831O2602C837O2588C842O2639C846O2639C850O2639C852O2669C856O2669C860O2669C862O2708C866O2708C870O2708C872O2742C876O2742C880O2742C882O2785C886O2785C890O2785C892O2818C896O2810C902O2855C910O2855C916O2832C922O2904C926O2904C930O2904C932O2976C940O2976C946O2961C952O3132C956O3132C962O3018C968O3035C974O3051C980O3071C986O3094C992O3118C998O3200C1002O3200C1008O3181C1014O3254C1022O3254C1026O3254C1028O3322C1036O3322C1040O3322C1042O3432C1050O3432C1060O3476C1067O3432C1069O3656C1070O3656C1072O3825C1076O3825C1082O3825C1088O3687C1094O3714C1100O3748C1106O3769C1112O3804C1118O3880C1122O3880C1128O3861C1134O3939C1142O3939C1147O4051C1151O4051C1157O3991C1163O4013C1169O4036C1175O4105C1179O4105C1185O4093C1191O4155C1195O4155C1199O4155C1201O4222C1205O4222C1211O4203C1217O4290C1225O4290C1231O4275C1237O4402C1241O4402C1247O4332C1253O4351C1259O4376C1265O4462C1269O4470C1277O4479C1280O4462C1282O4522C1285O4522C1289O4522C1291O4562C1292O4562C1294O4581C1295O4581C1297O4606C1298O4606C1300O5250C1302O5250C1307O5250C1309O5546C1312O5595C1316O5595C1350O5577C1381O5566C1388O5573C1397O5612C1403O5640C1407O5640C1412O5550C1483O5687C1487O5717C1493O5739C1497O5758C1504O5774C1508O5772C1512O5794C1519O5814C1527O5812C1535O5834C1542O5855C1550O5853C1558O5893C1562O5893C1564O5897C1572O5916C1580O5937C1581O5937C1583O5995C1587O5995C1589O6091C1597O6205C1606O6218C1618O6345C1635O6195C1645O6195C1647O6484C1659O6505C1668O6525C1680O6558C1692O6484C1702O6618C1714O6639C1723O6662C1735O6703C1747O6618C1757O6796C1766O6798C1781O6832C1789O6860C1806O6832C1816O6906C1824O6940C1841O6906C1851O7132C1859O7160C1884O7190C1892O7313C1907O7211C1921O7394C1931O7418C1939O7541C1954O7439C1968O7622C1976O7132C1986O7656C1990O7656C2000O7689C2020O7690C2032O7656C2034O7737C2050O7753C2060O7751C2068O8066C2072O8066C2082O8066C2084O10869C2088O10869C2098O10869C2100O13498C2107O13498C2109O14282C2116O14282C2118O14300C2126O14317C2134O16993C2141O16993C2143O17070C2147O17078C2155O17070C2157O17086C2161O17149C2169O17173C2179O18757C2187O18781C2195O19927C2203O19954C2211O21502C2223O21520C2235O21897C2249O21502C2259O21502C2261O23185C2269O23198C2277O26129C2285O26153C2293O30233C2297O30240C2311O30255C2319O31169C2323O31176C2337O31194C2345O31632C2346O31632C2348O31667C2349O31667C2351O32724C2355O32731C2369O32750C2377O34632C2381O34639C2395O34658C2403O36402C2407O36409C2421O36430C2429O36830C2433O36837C2447O36858C2455O37671C2461O37721C2467O37671C2469O38305C2475O38326C2483O38344C2491O38362C2499O39331C2507O39354C2515O39941C2523O39970C2531O40158C2537O40172C2546O40181,,
code-creation,LazyCompile,10,24411,0xce7fc609bfe,27,SafeWeakMap node:internal/per_context/primordials:357:16,0x334c17f09ec8,~
script-source,6,node:internal/per_context/primordials,'use strict';\n\n/* eslint-disable node-core/prefer-primordials */\n\n// This file subclasses and stores the JS builtins that come from the VM\n// so that Node.js's builtin modules do not need to later look these up from\n// the global proxy\x2C which can be mutated by users.\n\n// Use of primordials have sometimes a dramatic impact on performance\x2C please\n// benchmark all changes made in performance-sensitive areas of the codebase.\n// See: https://github.com/nodejs/node/pull/38248\n\nconst {\n defineProperty: ReflectDefineProperty\x2C\n getOwnPropertyDescriptor: ReflectGetOwnPropertyDescriptor\x2C\n ownKeys: ReflectOwnKeys\x2C\n} = Reflect;\n\n// `uncurryThis` is equivalent to `func => Function.prototype.call.bind(func)`.\n// It is using `bind.bind(call)` to avoid using `Function.prototype.bind`\n// and `Function.prototype.call` after it may have been mutated by users.\nconst { apply\x2C bind\x2C call } = Function.prototype;\nconst uncurryThis = bind.bind(call);\nprimordials.uncurryThis = uncurryThis;\n\n// `applyBind` is equivalent to `func => Function.prototype.apply.bind(func)`.\n// It is using `bind.bind(apply)` to avoid using `Function.prototype.bind`\n// and `Function.prototype.apply` after it may have been mutated by users.\nconst applyBind = bind.bind(apply);\nprimordials.applyBind = applyBind;\n\n// Methods that accept a variable number of arguments\x2C and thus it's useful to\n// also create `${prefix}${key}Apply`\x2C which uses `Function.prototype.apply`\x2C\n// instead of `Function.prototype.call`\x2C and thus doesn't require iterator\n// destructuring.\nconst varargsMethods = [\n // 'ArrayPrototypeConcat' is omitted\x2C because it performs the spread\n // on its own for arrays and array-likes with a truthy\n // @@isConcatSpreadable symbol property.\n 'ArrayOf'\x2C\n 'ArrayPrototypePush'\x2C\n 'ArrayPrototypeUnshift'\x2C\n // 'FunctionPrototypeCall' is omitted\x2C since there's 'ReflectApply'\n // and 'FunctionPrototypeApply'.\n 'MathHypot'\x2C\n 'MathMax'\x2C\n 'MathMin'\x2C\n 'StringPrototypeConcat'\x2C\n 'TypedArrayOf'\x2C\n];\n\nfunction getNewKey(key) {\n return typeof key === 'symbol' ?\n `Symbol${key.description[7].toUpperCase()}${key.description.slice(8)}` :\n `${key[0].toUpperCase()}${key.slice(1)}`;\n}\n\nfunction copyAccessor(dest\x2C prefix\x2C key\x2C { enumerable\x2C get\x2C set }) {\n ReflectDefineProperty(dest\x2C `${prefix}Get${key}`\x2C {\n value: uncurryThis(get)\x2C\n enumerable\n });\n if (set !== undefined) {\n ReflectDefineProperty(dest\x2C `${prefix}Set${key}`\x2C {\n value: uncurryThis(set)\x2C\n enumerable\n });\n }\n}\n\nfunction copyPropsRenamed(src\x2C dest\x2C prefix) {\n for (const key of ReflectOwnKeys(src)) {\n const newKey = getNewKey(key);\n const desc = ReflectGetOwnPropertyDescriptor(src\x2C key);\n if ('get' in desc) {\n copyAccessor(dest\x2C prefix\x2C newKey\x2C desc);\n } else {\n const name = `${prefix}${newKey}`;\n ReflectDefineProperty(dest\x2C name\x2C desc);\n if (varargsMethods.includes(name)) {\n ReflectDefineProperty(dest\x2C `${name}Apply`\x2C {\n // `src` is bound as the `this` so that the static `this` points\n // to the object it was defined on\x2C\n // e.g.: `ArrayOfApply` gets a `this` of `Array`:\n value: applyBind(desc.value\x2C src)\x2C\n });\n }\n }\n }\n}\n\nfunction copyPropsRenamedBound(src\x2C dest\x2C prefix) {\n for (const key of ReflectOwnKeys(src)) {\n const newKey = getNewKey(key);\n const desc = ReflectGetOwnPropertyDescriptor(src\x2C key);\n if ('get' in desc) {\n copyAccessor(dest\x2C prefix\x2C newKey\x2C desc);\n } else {\n const { value } = desc;\n if (typeof value === 'function') {\n desc.value = value.bind(src);\n }\n\n const name = `${prefix}${newKey}`;\n ReflectDefineProperty(dest\x2C name\x2C desc);\n if (varargsMethods.includes(name)) {\n ReflectDefineProperty(dest\x2C `${name}Apply`\x2C {\n value: applyBind(value\x2C src)\x2C\n });\n }\n }\n }\n}\n\nfunction copyPrototype(src\x2C dest\x2C prefix) {\n for (const key of ReflectOwnKeys(src)) {\n const newKey = getNewKey(key);\n const desc = ReflectGetOwnPropertyDescriptor(src\x2C key);\n if ('get' in desc) {\n copyAccessor(dest\x2C prefix\x2C newKey\x2C desc);\n } else {\n const { value } = desc;\n if (typeof value === 'function') {\n desc.value = uncurryThis(value);\n }\n\n const name = `${prefix}${newKey}`;\n ReflectDefineProperty(dest\x2C name\x2C desc);\n if (varargsMethods.includes(name)) {\n ReflectDefineProperty(dest\x2C `${name}Apply`\x2C {\n value: applyBind(value)\x2C\n });\n }\n }\n }\n}\n\n// Create copies of configurable value properties of the global object\n[\n 'Proxy'\x2C\n 'globalThis'\x2C\n].forEach((name) => {\n // eslint-disable-next-line no-restricted-globals\n primordials[name] = globalThis[name];\n});\n\n// Create copies of URI handling functions\n[\n decodeURI\x2C\n decodeURIComponent\x2C\n encodeURI\x2C\n encodeURIComponent\x2C\n].forEach((fn) => {\n primordials[fn.name] = fn;\n});\n\n// Create copies of the namespace objects\n[\n 'JSON'\x2C\n 'Math'\x2C\n 'Proxy'\x2C\n 'Reflect'\x2C\n].forEach((name) => {\n // eslint-disable-next-line no-restricted-globals\n copyPropsRenamed(global[name]\x2C primordials\x2C name);\n});\n\n// Create copies of intrinsic objects\n[\n 'AggregateError'\x2C\n 'Array'\x2C\n 'ArrayBuffer'\x2C\n 'BigInt'\x2C\n 'BigInt64Array'\x2C\n 'BigUint64Array'\x2C\n 'Boolean'\x2C\n 'DataView'\x2C\n 'Date'\x2C\n 'Error'\x2C\n 'EvalError'\x2C\n 'FinalizationRegistry'\x2C\n 'Float32Array'\x2C\n 'Float64Array'\x2C\n 'Function'\x2C\n 'Int16Array'\x2C\n 'Int32Array'\x2C\n 'Int8Array'\x2C\n 'Map'\x2C\n 'Number'\x2C\n 'Object'\x2C\n 'RangeError'\x2C\n 'ReferenceError'\x2C\n 'RegExp'\x2C\n 'Set'\x2C\n 'String'\x2C\n 'Symbol'\x2C\n 'SyntaxError'\x2C\n 'TypeError'\x2C\n 'URIError'\x2C\n 'Uint16Array'\x2C\n 'Uint32Array'\x2C\n 'Uint8Array'\x2C\n 'Uint8ClampedArray'\x2C\n 'WeakMap'\x2C\n 'WeakRef'\x2C\n 'WeakSet'\x2C\n].forEach((name) => {\n // eslint-disable-next-line no-restricted-globals\n const original = global[name];\n primordials[name] = original;\n copyPropsRenamed(original\x2C primordials\x2C name);\n copyPrototype(original.prototype\x2C primordials\x2C `${name}Prototype`);\n});\n\n// Create copies of intrinsic objects that require a valid `this` to call\n// static methods.\n// Refs: https://www.ecma-international.org/ecma-262/#sec-promise.all\n[\n 'Promise'\x2C\n].forEach((name) => {\n // eslint-disable-next-line no-restricted-globals\n const original = global[name];\n primordials[name] = original;\n copyPropsRenamedBound(original\x2C primordials\x2C name);\n copyPrototype(original.prototype\x2C primordials\x2C `${name}Prototype`);\n});\n\n// Create copies of abstract intrinsic objects that are not directly exposed\n// on the global object.\n// Refs: https://tc39.es/ecma262/#sec-%typedarray%-intrinsic-object\n[\n { name: 'TypedArray'\x2C original: Reflect.getPrototypeOf(Uint8Array) }\x2C\n { name: 'ArrayIterator'\x2C original: {\n prototype: Reflect.getPrototypeOf(Array.prototype[Symbol.iterator]())\x2C\n } }\x2C\n { name: 'StringIterator'\x2C original: {\n prototype: Reflect.getPrototypeOf(String.prototype[Symbol.iterator]())\x2C\n } }\x2C\n].forEach(({ name\x2C original }) => {\n primordials[name] = original;\n // The static %TypedArray% methods require a valid `this`\x2C but can't be bound\x2C\n // as they need a subclass constructor as the receiver:\n copyPrototype(original\x2C primordials\x2C name);\n copyPrototype(original.prototype\x2C primordials\x2C `${name}Prototype`);\n});\n\n/* eslint-enable node-core/prefer-primordials */\n\nconst {\n ArrayPrototypeForEach\x2C\n FinalizationRegistry\x2C\n FunctionPrototypeCall\x2C\n Map\x2C\n ObjectFreeze\x2C\n ObjectSetPrototypeOf\x2C\n Promise\x2C\n PromisePrototypeThen\x2C\n Set\x2C\n SymbolIterator\x2C\n WeakMap\x2C\n WeakRef\x2C\n WeakSet\x2C\n} = primordials;\n\n// Because these functions are used by `makeSafe`\x2C which is exposed\n// on the `primordials` object\x2C it's important to use const references\n// to the primordials that they use:\nconst createSafeIterator = (factory\x2C next) => {\n class SafeIterator {\n constructor(iterable) {\n this._iterator = factory(iterable);\n }\n next() {\n return next(this._iterator);\n }\n [SymbolIterator]() {\n return this;\n }\n }\n ObjectSetPrototypeOf(SafeIterator.prototype\x2C null);\n ObjectFreeze(SafeIterator.prototype);\n ObjectFreeze(SafeIterator);\n return SafeIterator;\n};\n\nprimordials.SafeArrayIterator = createSafeIterator(\n primordials.ArrayPrototypeSymbolIterator\x2C\n primordials.ArrayIteratorPrototypeNext\n);\nprimordials.SafeStringIterator = createSafeIterator(\n primordials.StringPrototypeSymbolIterator\x2C\n primordials.StringIteratorPrototypeNext\n);\n\nconst copyProps = (src\x2C dest) => {\n ArrayPrototypeForEach(ReflectOwnKeys(src)\x2C (key) => {\n if (!ReflectGetOwnPropertyDescriptor(dest\x2C key)) {\n ReflectDefineProperty(\n dest\x2C\n key\x2C\n ReflectGetOwnPropertyDescriptor(src\x2C key));\n }\n });\n};\n\n/**\n * @type {typeof primordials.makeSafe}\n */\nconst makeSafe = (unsafe\x2C safe) => {\n if (SymbolIterator in unsafe.prototype) {\n const dummy = new unsafe();\n let next; // We can reuse the same `next` method.\n\n ArrayPrototypeForEach(ReflectOwnKeys(unsafe.prototype)\x2C (key) => {\n if (!ReflectGetOwnPropertyDescriptor(safe.prototype\x2C key)) {\n const desc = ReflectGetOwnPropertyDescriptor(unsafe.prototype\x2C key);\n if (\n typeof desc.value === 'function' &&\n desc.value.length === 0 &&\n SymbolIterator in (FunctionPrototypeCall(desc.value\x2C dummy) ?? {})\n ) {\n const createIterator = uncurryThis(desc.value);\n next ??= uncurryThis(createIterator(dummy).next);\n const SafeIterator = createSafeIterator(createIterator\x2C next);\n desc.value = function() {\n return new SafeIterator(this);\n };\n }\n ReflectDefineProperty(safe.prototype\x2C key\x2C desc);\n }\n });\n } else {\n copyProps(unsafe.prototype\x2C safe.prototype);\n }\n copyProps(unsafe\x2C safe);\n\n ObjectSetPrototypeOf(safe.prototype\x2C null);\n ObjectFreeze(safe.prototype);\n ObjectFreeze(safe);\n return safe;\n};\nprimordials.makeSafe = makeSafe;\n\n// Subclass the constructors because we need to use their prototype\n// methods later.\n// Defining the `constructor` is necessary here to avoid the default\n// constructor which uses the user-mutable `%ArrayIteratorPrototype%.next`.\nprimordials.SafeMap = makeSafe(\n Map\x2C\n class SafeMap extends Map {\n constructor(i) { super(i); } // eslint-disable-line no-useless-constructor\n }\n);\nprimordials.SafeWeakMap = makeSafe(\n WeakMap\x2C\n class SafeWeakMap extends WeakMap {\n constructor(i) { super(i); } // eslint-disable-line no-useless-constructor\n }\n);\n\nprimordials.SafeSet = makeSafe(\n Set\x2C\n class SafeSet extends Set {\n constructor(i) { super(i); } // eslint-disable-line no-useless-constructor\n }\n);\nprimordials.SafeWeakSet = makeSafe(\n WeakSet\x2C\n class SafeWeakSet extends WeakSet {\n constructor(i) { super(i); } // eslint-disable-line no-useless-constructor\n }\n);\n\nprimordials.SafeFinalizationRegistry = makeSafe(\n FinalizationRegistry\x2C\n class SafeFinalizationRegistry extends FinalizationRegistry {\n // eslint-disable-next-line no-useless-constructor\n constructor(cleanupCallback) { super(cleanupCallback); }\n }\n);\nprimordials.SafeWeakRef = makeSafe(\n WeakRef\x2C\n class SafeWeakRef extends WeakRef {\n // eslint-disable-next-line no-useless-constructor\n constructor(target) { super(target); }\n }\n);\n\nconst SafePromise = makeSafe(\n Promise\x2C\n class SafePromise extends Promise {\n // eslint-disable-next-line no-useless-constructor\n constructor(executor) { super(executor); }\n }\n);\n\nprimordials.PromisePrototypeCatch = (thisPromise\x2C onRejected) =>\n PromisePrototypeThen(thisPromise\x2C undefined\x2C onRejected);\n\n/**\n * Attaches a callback that is invoked when the Promise is settled (fulfilled or\n * rejected). The resolved value cannot be modified from the callback.\n * Prefer using async functions when possible.\n * @param {Promise<any>} thisPromise\n * @param {() => void) | undefined | null} onFinally The callback to execute\n * when the Promise is settled (fulfilled or rejected).\n * @returns A Promise for the completion of the callback.\n */\nprimordials.SafePromisePrototypeFinally = (thisPromise\x2C onFinally) =>\n // Wrapping on a new Promise is necessary to not expose the SafePromise\n // prototype to user-land.\n new Promise((a\x2C b) =>\n new SafePromise((a\x2C b) => PromisePrototypeThen(thisPromise\x2C a\x2C b))\n .finally(onFinally)\n .then(a\x2C b)\n );\n\nprimordials.AsyncIteratorPrototype =\n primordials.ReflectGetPrototypeOf(\n primordials.ReflectGetPrototypeOf(\n async function* () {}).prototype);\n\nObjectSetPrototypeOf(primordials\x2C null);\nObjectFreeze(primordials);\n
code-source-info,0xce7fc609bfe,6,10371,10388,C3O10377C7O10383C11O10377C26O10387,,
tick,0x7f4debdcf2cf,24953,0,0x0,3,0x11e9ce0,0xce7fc606170,0xa52511ba45d,0xa52511b972d,0xce7fc601335,0xa52511ba45d,0xa52511b972d,0xa52511bed5f,0xa52511ba45d,0xa52511b972d,0xa52511b9222
code-creation,Eval,10,25268,0xce7fc60b2e6,5, node:internal/source_map/source_map_cache:1:1,0xce7fc60af70,~
script-source,96,node:internal/source_map/source_map_cache,'use strict';\n\nconst {\n ArrayPrototypeMap\x2C\n JSONParse\x2C\n ObjectCreate\x2C\n ObjectKeys\x2C\n ObjectGetOwnPropertyDescriptor\x2C\n ObjectPrototypeHasOwnProperty\x2C\n RegExpPrototypeTest\x2C\n SafeMap\x2C\n StringPrototypeMatch\x2C\n StringPrototypeSplit\x2C\n} = primordials;\n\nfunction ObjectGetValueSafe(obj\x2C key) {\n const desc = ObjectGetOwnPropertyDescriptor(obj\x2C key);\n return ObjectPrototypeHasOwnProperty(desc\x2C 'value') ? desc.value : undefined;\n}\n\n// See https://sourcemaps.info/spec.html for SourceMap V3 specification.\nconst { Buffer } = require('buffer');\nlet debug = require('internal/util/debuglog').debuglog('source_map'\x2C (fn) => {\n debug = fn;\n});\nconst fs = require('fs');\nconst { getOptionValue } = require('internal/options');\nconst { IterableWeakMap } = require('internal/util/iterable_weak_map');\nconst {\n normalizeReferrerURL\x2C\n} = require('internal/modules/cjs/helpers');\nconst { validateBoolean } = require('internal/validators');\n// Since the CJS module cache is mutable\x2C which leads to memory leaks when\n// modules are deleted\x2C we use a WeakMap so that the source map cache will\n// be purged automatically:\nconst cjsSourceMapCache = new IterableWeakMap();\n// The esm cache is not mutable\x2C so we can use a Map without memory concerns:\nconst esmSourceMapCache = new SafeMap();\nconst { fileURLToPath\x2C pathToFileURL\x2C URL } = require('internal/url');\nlet SourceMap;\n\nlet sourceMapsEnabled;\nfunction getSourceMapsEnabled() {\n if (sourceMapsEnabled === undefined) {\n setSourceMapsEnabled(getOptionValue('--enable-source-maps'));\n }\n return sourceMapsEnabled;\n}\n\nfunction setSourceMapsEnabled(val) {\n validateBoolean(val\x2C 'val');\n\n const {\n setSourceMapsEnabled\x2C\n setPrepareStackTraceCallback\n } = internalBinding('errors');\n setSourceMapsEnabled(val);\n if (val) {\n const {\n prepareStackTrace\n } = require('internal/source_map/prepare_stack_trace');\n setPrepareStackTraceCallback(prepareStackTrace);\n } else if (sourceMapsEnabled !== undefined) {\n // Reset prepare stack trace callback only when disabling source maps.\n const {\n prepareStackTrace\x2C\n } = require('internal/errors');\n setPrepareStackTraceCallback(prepareStackTrace);\n }\n\n sourceMapsEnabled = val;\n}\n\nfunction maybeCacheSourceMap(filename\x2C content\x2C cjsModuleInstance) {\n const sourceMapsEnabled = getSourceMapsEnabled();\n if (!(process.env.NODE_V8_COVERAGE || sourceMapsEnabled)) return;\n try {\n filename = normalizeReferrerURL(filename);\n } catch (err) {\n // This is most likely an [eval]-wrapper\x2C which is currently not\n // supported.\n debug(err.stack);\n return;\n }\n const match = StringPrototypeMatch(\n content\x2C\n /\\/[*/]#\\s+sourceMappingURL=(?<sourceMappingURL>[^\\s]+)/\n );\n if (match) {\n const data = dataFromUrl(filename\x2C match.groups.sourceMappingURL);\n const url = data ? null : match.groups.sourceMappingURL;\n if (cjsModuleInstance) {\n cjsSourceMapCache.set(cjsModuleInstance\x2C {\n filename\x2C\n lineLengths: lineLengths(content)\x2C\n data\x2C\n url\n });\n } else {\n // If there is no cjsModuleInstance assume we are in a\n // "modules/esm" context.\n esmSourceMapCache.set(filename\x2C {\n lineLengths: lineLengths(content)\x2C\n data\x2C\n url\n });\n }\n }\n}\n\nfunction dataFromUrl(sourceURL\x2C sourceMappingURL) {\n try {\n const url = new URL(sourceMappingURL);\n switch (url.protocol) {\n case 'data:':\n return sourceMapFromDataUrl(sourceURL\x2C url.pathname);\n default:\n debug(`unknown protocol ${url.protocol}`);\n return null;\n }\n } catch (err) {\n debug(err.stack);\n // If no scheme is present\x2C we assume we are dealing with a file path.\n const mapURL = new URL(sourceMappingURL\x2C sourceURL).href;\n return sourceMapFromFile(mapURL);\n }\n}\n\n// Cache the length of each line in the file that a source map was extracted\n// from. This allows translation from byte offset V8 coverage reports\x2C\n// to line/column offset Source Map V3.\nfunction lineLengths(content) {\n // We purposefully keep \\r as part of the line-length calculation\x2C in\n // cases where there is a \\r\\n separator\x2C so that this can be taken into\n // account in coverage calculations.\n return ArrayPrototypeMap(StringPrototypeSplit(content\x2C /\\n|\\u2028|\\u2029/)\x2C (line) => {\n return line.length;\n });\n}\n\nfunction sourceMapFromFile(mapURL) {\n try {\n const content = fs.readFileSync(fileURLToPath(mapURL)\x2C 'utf8');\n const data = JSONParse(content);\n return sourcesToAbsolute(mapURL\x2C data);\n } catch (err) {\n debug(err.stack);\n return null;\n }\n}\n\n// data:[<mediatype>][;base64]\x2C<data> see:\n// https://tools.ietf.org/html/rfc2397#section-2\nfunction sourceMapFromDataUrl(sourceURL\x2C url) {\n const { 0: format\x2C 1: data } = StringPrototypeSplit(url\x2C '\x2C');\n const splitFormat = StringPrototypeSplit(format\x2C ';');\n const contentType = splitFormat[0];\n const base64 = splitFormat[splitFormat.length - 1] === 'base64';\n if (contentType === 'application/json') {\n const decodedData = base64 ?\n Buffer.from(data\x2C 'base64').toString('utf8') : data;\n try {\n const parsedData = JSONParse(decodedData);\n return sourcesToAbsolute(sourceURL\x2C parsedData);\n } catch (err) {\n debug(err.stack);\n return null;\n }\n } else {\n debug(`unknown content-type ${contentType}`);\n return null;\n }\n}\n\n// If the sources are not absolute URLs after prepending of the "sourceRoot"\x2C\n// the sources are resolved relative to the SourceMap (like resolving script\n// src in a html document).\nfunction sourcesToAbsolute(baseURL\x2C data) {\n data.sources = data.sources.map((source) => {\n source = (data.sourceRoot || '') + source;\n return new URL(source\x2C baseURL).href;\n });\n // The sources array is now resolved to absolute URLs\x2C sourceRoot should\n // be updated to noop.\n data.sourceRoot = '';\n return data;\n}\n\n// WARNING: The `sourceMapCacheToObject` and `appendCJSCache` run during\n// shutdown. In particular\x2C they also run when Workers are terminated\x2C making\n// it important that they do not call out to any user-provided code\x2C including\n// built-in prototypes that might have been tampered with.\n\n// Get serialized representation of source-map cache\x2C this is used\n// to persist a cache of source-maps to disk when NODE_V8_COVERAGE is enabled.\nfunction sourceMapCacheToObject() {\n const obj = ObjectCreate(null);\n\n for (const { 0: k\x2C 1: v } of esmSourceMapCache) {\n obj[k] = v;\n }\n\n appendCJSCache(obj);\n\n if (ObjectKeys(obj).length === 0) {\n return undefined;\n }\n return obj;\n}\n\nfunction appendCJSCache(obj) {\n for (const value of cjsSourceMapCache) {\n obj[ObjectGetValueSafe(value\x2C 'filename')] = {\n lineLengths: ObjectGetValueSafe(value\x2C 'lineLengths')\x2C\n data: ObjectGetValueSafe(value\x2C 'data')\x2C\n url: ObjectGetValueSafe(value\x2C 'url')\n };\n }\n}\n\nfunction findSourceMap(sourceURL) {\n if (!RegExpPrototypeTest(/^\\w+:\\/\\//\x2C sourceURL)) {\n sourceURL = pathToFileURL(sourceURL).href;\n }\n if (!SourceMap) {\n SourceMap = require('internal/source_map/source_map').SourceMap;\n }\n let sourceMap = esmSourceMapCache.get(sourceURL);\n if (sourceMap === undefined) {\n for (const value of cjsSourceMapCache) {\n const filename = ObjectGetValueSafe(value\x2C 'filename');\n if (sourceURL === filename) {\n sourceMap = {\n data: ObjectGetValueSafe(value\x2C 'data')\n };\n }\n }\n }\n if (sourceMap && sourceMap.data) {\n return new SourceMap(sourceMap.data);\n }\n return undefined;\n}\n\nmodule.exports = {\n findSourceMap\x2C\n getSourceMapsEnabled\x2C\n setSourceMapsEnabled\x2C\n maybeCacheSourceMap\x2C\n sourceMapCacheToObject\x2C\n};\n
code-source-info,0xce7fc60b2e6,96,0,7654,C0O0C4O7654,,
code-creation,Function,10,25618,0xce7fc60b96e,435, node:internal/source_map/source_map_cache:1:1,0xce7fc60b250,~
code-source-info,0xce7fc60b96e,96,0,7654,C0O0C152O25C158O46C164O59C170O75C176O89C182O123C188O156C194O179C199O190C205O214C211O526C217O526C222O515C228O557C234O557C239O590C252O591C258O557C260O653C266O653C270O653C272O695C278O695C283O676C289O752C295O752C300O732C305O832C311O832C316O806C322O901C328O901C333O881C339O1137C341O1137C346O1137C348O1264C350O1264C355O1264C357O1325C363O1325C368O1287C374O1302C380O1317C386O1354C387O1354C389O1370C390O1370C392O7518C399O7539C405O7556C411O7580C417O7604C423O7627C429O7533C434O7653,,
code-creation,LazyCompile,10,25805,0xce7fc60c766,82,debuglog node:internal/util/debuglog:71:18,0x1eac91c34ff0,~
script-source,40,node:internal/util/debuglog,'use strict';\n\nconst {\n ObjectCreate\x2C\n ObjectDefineProperty\x2C\n RegExp\x2C\n RegExpPrototypeExec\x2C\n SafeArrayIterator\x2C\n StringPrototypeToLowerCase\x2C\n StringPrototypeToUpperCase\x2C\n} = primordials;\n\nconst { inspect\x2C format\x2C formatWithOptions } = require('internal/util/inspect');\n\n// `debugImpls` and `testEnabled` are deliberately not initialized so any call\n// to `debuglog()` before `initializeDebugEnv()` is called will throw.\nlet debugImpls;\nlet testEnabled;\n\n\n// `debugEnv` is initial value of process.env.NODE_DEBUG\nfunction initializeDebugEnv(debugEnv) {\n debugImpls = ObjectCreate(null);\n if (debugEnv) {\n // This is run before any user code\x2C it's OK not to use primordials.\n debugEnv = debugEnv.replace(/[|\\\\{}()[\\]^$+?.]/g\x2C '\\\\$&')\n .replaceAll('*'\x2C '.*')\n .replaceAll('\x2C'\x2C '$|^');\n const debugEnvRegex = new RegExp(`^${debugEnv}$`\x2C 'i');\n testEnabled = (str) => RegExpPrototypeExec(debugEnvRegex\x2C str) !== null;\n } else {\n testEnabled = () => false;\n }\n}\n\n// Emits warning when user sets\n// NODE_DEBUG=http or NODE_DEBUG=http2.\nfunction emitWarningIfNeeded(set) {\n if ('HTTP' === set || 'HTTP2' === set) {\n process.emitWarning('Setting the NODE_DEBUG environment variable ' +\n 'to \\'' + StringPrototypeToLowerCase(set) + '\\' can expose sensitive ' +\n 'data (such as passwords\x2C tokens and authentication headers) ' +\n 'in the resulting log.');\n }\n}\n\nconst noop = () => {};\n\nfunction debuglogImpl(enabled\x2C set) {\n if (debugImpls[set] === undefined) {\n if (enabled) {\n const pid = process.pid;\n emitWarningIfNeeded(set);\n debugImpls[set] = function debug(...args) {\n const colors = process.stderr.hasColors && process.stderr.hasColors();\n const msg = formatWithOptions({ colors }\x2C ...args);\n const coloredPID = inspect(pid\x2C { colors });\n process.stderr.write(format('%s %s: %s\\n'\x2C set\x2C coloredPID\x2C msg));\n };\n } else {\n debugImpls[set] = noop;\n }\n }\n return debugImpls[set];\n}\n\n// debuglogImpl depends on process.pid and process.env.NODE_DEBUG\x2C\n// so it needs to be called lazily in top scopes of internal modules\n// that may be loaded before these run time states are allowed to\n// be accessed.\nfunction debuglog(set\x2C cb) {\n function init() {\n set = StringPrototypeToUpperCase(set);\n enabled = testEnabled(set);\n }\n let debug = (...args) => {\n init();\n // Only invokes debuglogImpl() when the debug function is\n // called for the first time.\n debug = debuglogImpl(enabled\x2C set);\n if (typeof cb === 'function')\n cb(debug);\n switch (args.length) {\n case 0: return debug();\n case 1: return debug(args[0]);\n case 2: return debug(args[0]\x2C args[1]);\n default: return debug(...new SafeArrayIterator(args));\n }\n };\n let enabled;\n let test = () => {\n init();\n test = () => enabled;\n return enabled;\n };\n const logger = (...args) => {\n switch (args.length) {\n case 0: return debug();\n case 1: return debug(args[0]);\n case 2: return debug(args[0]\x2C args[1]);\n default: return debug(...new SafeArrayIterator(args));\n }\n };\n ObjectDefineProperty(logger\x2C 'enabled'\x2C {\n get() {\n return test();\n }\x2C\n configurable: true\x2C\n enumerable: true\n });\n return logger;\n}\n\nmodule.exports = {\n debuglog\x2C\n initializeDebugEnv\n};\n
code-source-info,0xce7fc60c766,40,2232,3279,C0O2232C28O2357C32O2357C34O2789C35O2789C37O2811C41O2811C43O2899C48O3128C58O3149C63O3174C74O3128C79O3263C81O3277,,
tick,0x1257f00,26037,0,0x0,3,0x11e9ce0,0xce7fc60ba6a,0xa52511ba45d,0xa52511b972d,0xce7fc6061d1,0xa52511ba45d,0xa52511b972d,0xce7fc601335,0xa52511ba45d,0xa52511b972d,0xa52511bed5f,0xa52511ba45d,0xa52511b972d,0xa52511b9222
code-creation,Eval,10,26211,0xce7fc60d1de,5, node:internal/util/iterable_weak_map:1:1,0xce7fc60cf80,~
script-source,97,node:internal/util/iterable_weak_map,'use strict';\n\nconst {\n ObjectFreeze\x2C\n SafeFinalizationRegistry\x2C\n SafeSet\x2C\n SafeWeakMap\x2C\n SafeWeakRef\x2C\n SymbolIterator\x2C\n} = primordials;\n\n// This class is modified from the example code in the WeakRefs specification:\n// https://github.com/tc39/proposal-weakrefs\n// Licensed under ECMA's MIT-style license\x2C see:\n// https://github.com/tc39/ecma262/blob/HEAD/LICENSE.md\nclass IterableWeakMap {\n #weakMap = new SafeWeakMap();\n #refSet = new SafeSet();\n #finalizationGroup = new SafeFinalizationRegistry(cleanup);\n\n set(key\x2C value) {\n const entry = this.#weakMap.get(key);\n if (entry) {\n // If there's already an entry for the object represented by "key"\x2C\n // the value can be updated without creating a new WeakRef:\n this.#weakMap.set(key\x2C { value\x2C ref: entry.ref });\n } else {\n const ref = new SafeWeakRef(key);\n this.#weakMap.set(key\x2C { value\x2C ref });\n this.#refSet.add(ref);\n this.#finalizationGroup.register(key\x2C {\n set: this.#refSet\x2C\n ref\n }\x2C ref);\n }\n }\n\n get(key) {\n return this.#weakMap.get(key)?.value;\n }\n\n has(key) {\n return this.#weakMap.has(key);\n }\n\n delete(key) {\n const entry = this.#weakMap.get(key);\n if (!entry) {\n return false;\n }\n this.#weakMap.delete(key);\n this.#refSet.delete(entry.ref);\n this.#finalizationGroup.unregister(entry.ref);\n return true;\n }\n\n [SymbolIterator]() {\n const iterator = this.#refSet[SymbolIterator]();\n\n const next = () => {\n const result = iterator.next();\n if (result.done) return result;\n const key = result.value.deref();\n if (key == null) return next();\n const { value } = this.#weakMap.get(key);\n return { done: false\x2C value };\n };\n\n return {\n [SymbolIterator]() { return this; }\x2C\n next\x2C\n };\n }\n}\n\nfunction cleanup({ set\x2C ref }) {\n set.delete(ref);\n}\n\nObjectFreeze(IterableWeakMap.prototype);\n\nmodule.exports = {\n IterableWeakMap\x2C\n};\n
code-source-info,0xce7fc60d1de,97,0,1958,C0O0C4O1958,,
code-creation,Function,10,26312,0xce7fc60d94e,196, node:internal/util/iterable_weak_map:1:1,0xce7fc60d148,~
code-source-info,0xce7fc60d94e,97,0,1958,C0O0C26O25C31O41C37O69C43O80C49O95C55O110C134O1392C168O1904C173O1875C177O1917C184O1938C190O1932C195O1957,,
code-creation,Function,10,26322,0xce7fc60dade,75,<instance_members_initializer> node:internal/util/iterable_weak_map:17:3,0xce7fc60d468,~
code-source-info,0xce7fc60dade,97,399,516,C3O410C10O410C27O441C34O441C48O479C62O479C74O516,,
code-creation,Eval,10,26619,0xce7fc60e5b6,5, node:internal/modules/cjs/helpers:1:1,0xce7fc60e2f0,~
script-source,98,node:internal/modules/cjs/helpers,'use strict';\n\nconst {\n ArrayPrototypeForEach\x2C\n ArrayPrototypeJoin\x2C\n ArrayPrototypeSome\x2C\n ObjectDefineProperty\x2C\n ObjectPrototypeHasOwnProperty\x2C\n SafeMap\x2C\n SafeSet\x2C\n StringPrototypeCharCodeAt\x2C\n StringPrototypeIncludes\x2C\n StringPrototypeSlice\x2C\n StringPrototypeStartsWith\x2C\n} = primordials;\nconst {\n ERR_MANIFEST_DEPENDENCY_MISSING\x2C\n ERR_UNKNOWN_BUILTIN_MODULE\n} = require('internal/errors').codes;\nconst { NativeModule } = require('internal/bootstrap/loaders');\n\nconst { validateString } = require('internal/validators');\nconst path = require('path');\nconst { pathToFileURL\x2C fileURLToPath\x2C URL } = require('internal/url');\n\nconst { getOptionValue } = require('internal/options');\nconst userConditions = getOptionValue('--conditions');\n\nlet debug = require('internal/util/debuglog').debuglog('module'\x2C (fn) => {\n debug = fn;\n});\n\n// TODO: Use this set when resolving pkg#exports conditions in loader.js.\nconst cjsConditions = new SafeSet(['require'\x2C 'node'\x2C ...userConditions]);\n\nfunction loadNativeModule(filename\x2C request) {\n const mod = NativeModule.map.get(filename);\n if (mod?.canBeRequiredByUsers) {\n debug('load native module %s'\x2C request);\n // compileForPublicLoader() throws if mod.canBeRequiredByUsers is false:\n mod.compileForPublicLoader();\n return mod;\n }\n}\n\n// Invoke with makeRequireFunction(module) where |module| is the Module object\n// to use as the context for the require() function.\n// Use redirects to set up a mapping from a policy and restrict dependencies\nconst urlToFileCache = new SafeMap();\nfunction makeRequireFunction(mod\x2C redirects) {\n const Module = mod.constructor;\n\n let require;\n if (redirects) {\n const id = mod.filename || mod.id;\n const conditions = cjsConditions;\n const { resolve\x2C reaction } = redirects;\n require = function require(specifier) {\n let missing = true;\n const destination = resolve(specifier\x2C conditions);\n if (destination === true) {\n missing = false;\n } else if (destination) {\n const href = destination.href;\n if (destination.protocol === 'node:') {\n const specifier = destination.pathname;\n const mod = loadNativeModule(specifier\x2C href);\n if (mod && mod.canBeRequiredByUsers) {\n return mod.exports;\n }\n throw new ERR_UNKNOWN_BUILTIN_MODULE(specifier);\n } else if (destination.protocol === 'file:') {\n let filepath;\n if (urlToFileCache.has(href)) {\n filepath = urlToFileCache.get(href);\n } else {\n filepath = fileURLToPath(destination);\n urlToFileCache.set(href\x2C filepath);\n }\n return mod.require(filepath);\n }\n }\n if (missing) {\n reaction(new ERR_MANIFEST_DEPENDENCY_MISSING(\n id\x2C\n specifier\x2C\n ArrayPrototypeJoin([...conditions]\x2C '\x2C ')\n ));\n }\n return mod.require(specifier);\n };\n } else {\n require = function require(path) {\n return mod.require(path);\n };\n }\n\n function resolve(request\x2C options) {\n validateString(request\x2C 'request');\n return Module._resolveFilename(request\x2C mod\x2C false\x2C options);\n }\n\n require.resolve = resolve;\n\n function paths(request) {\n validateString(request\x2C 'request');\n return Module._resolveLookupPaths(request\x2C mod);\n }\n\n resolve.paths = paths;\n\n require.main = process.mainModule;\n\n // Enable support to add extra extension types.\n require.extensions = Module._extensions;\n\n require.cache = Module._cache;\n\n return require;\n}\n\n/**\n * Remove byte order marker. This catches EF BB BF (the UTF-8 BOM)\n * because the buffer-to-string conversion in `fs.readFileSync()`\n * translates it to FEFF\x2C the UTF-16 BOM.\n */\nfunction stripBOM(content) {\n if (StringPrototypeCharCodeAt(content) === 0xFEFF) {\n content = StringPrototypeSlice(content\x2C 1);\n }\n return content;\n}\n\nfunction addBuiltinLibsToObject(object) {\n // Make built-in modules available directly (loaded lazily).\n const { builtinModules } = require('internal/modules/cjs/loader').Module;\n ArrayPrototypeForEach(builtinModules\x2C (name) => {\n // Neither add underscored modules\x2C nor ones that contain slashes (e.g.\x2C\n // 'fs/promises') or ones that are already defined.\n if (StringPrototypeStartsWith(name\x2C '_') ||\n StringPrototypeIncludes(name\x2C '/') ||\n ObjectPrototypeHasOwnProperty(object\x2C name)) {\n return;\n }\n // Goals of this mechanism are:\n // - Lazy loading of built-in modules\n // - Having all built-in modules available as non-enumerable properties\n // - Allowing the user to re-assign these variables as if there were no\n // pre-existing globals with the same name.\n\n const setReal = (val) => {\n // Deleting the property before re-assigning it disables the\n // getter/setter mechanism.\n delete object[name];\n object[name] = val;\n };\n\n ObjectDefineProperty(object\x2C name\x2C {\n get: () => {\n const lib = require(name);\n\n // Disable the current getter/setter and set up a new\n // non-enumerable property.\n delete object[name];\n ObjectDefineProperty(object\x2C name\x2C {\n get: () => lib\x2C\n set: setReal\x2C\n configurable: true\x2C\n enumerable: false\n });\n\n return lib;\n }\x2C\n set: setReal\x2C\n configurable: true\x2C\n enumerable: false\n });\n });\n}\n\nfunction normalizeReferrerURL(referrer) {\n if (typeof referrer === 'string' && path.isAbsolute(referrer)) {\n return pathToFileURL(referrer).href;\n }\n return new URL(referrer).href;\n}\n\n// For error messages only - used to check if ESM syntax is in use.\nfunction hasEsmSyntax(code) {\n debug('Checking for ESM syntax');\n const parser = require('internal/deps/acorn/acorn/dist/acorn').Parser;\n let root;\n try {\n root = parser.parse(code\x2C { sourceType: 'module'\x2C ecmaVersion: 'latest' });\n } catch {\n return false;\n }\n\n return ArrayPrototypeSome(root.body\x2C (stmt) =>\n stmt.type === 'ExportDefaultDeclaration' ||\n stmt.type === 'ExportNamedDeclaration' ||\n stmt.type === 'ImportDeclaration' ||\n stmt.type === 'ExportAllDeclaration');\n}\n\nmodule.exports = {\n addBuiltinLibsToObject\x2C\n cjsConditions\x2C\n hasEsmSyntax\x2C\n loadNativeModule\x2C\n makeRequireFunction\x2C\n normalizeReferrerURL\x2C\n stripBOM\x2C\n};\n
code-source-info,0xce7fc60e5b6,98,0,6319,C0O0C4O6319,,
code-creation,Function,10,26891,0xce7fc60eb06,462, node:internal/modules/cjs/helpers:1:1,0xce7fc60e520,~
code-source-info,0xce7fc60eb06,98,0,6319,C0O0C104O25C110O50C116O72C122O94C128O118C134O151C139O162C144O173C150O202C156O229C162O253C168O373C174O373C179O399C184O307C190O342C196O432C202O432C207O415C213O499C219O499C224O480C230O544C236O544C240O544C242O607C248O607C253O569C259O584C265O599C271O660C277O660C282O641C287O712C290O712C295O757C301O757C306O790C319O791C325O757C327O935C334O970C335O970C391O935C396O935C398O1528C400O1528C405O1528C407O6159C414O6180C420O6206C426O6223C432O6239C438O6259C444O6282C450O6306C456O6174C461O6318,,
code-creation,LazyCompile,10,27033,0xce7fc60f6a6,82,getOptionValue node:internal/options:28:24,0xa52511bd7e8,~
code-source-info,0xce7fc60f6a6,92,692,932,C0O725C3O725C7O767C15O767C22O817C30O839C38O839C43O826C47O817C53O854C55O879C60O885C61O907C66O907C74O922C81O930,,
tick,0x110cb8d,27057,0,0x0,3,0x11e9ce0,0xce7fc60ec28,0xa52511ba45d,0xa52511b972d,0xce7fc60baa5,0xa52511ba45d,0xa52511b972d,0xce7fc6061d1,0xa52511ba45d,0xa52511b972d,0xce7fc601335,0xa52511ba45d,0xa52511b972d,0xa52511bed5f,0xa52511ba45d,0xa52511b972d,0xa52511b9222
code-creation,LazyCompile,10,27074,0xce7fc60fa0e,33,getOptionsFromBinding node:internal/options:14:31,0xa52511bd748,~
code-source-info,0xce7fc60fa0e,92,439,537,C0O446C6O469C11O496C15O481C28O517C32O535,,
code-creation,LazyCompile,10,27429,0xce7fc60fdf6,27,SafeSet node:internal/per_context/primordials:364:16,0x334c17f09f90,~
code-source-info,0xce7fc60fdf6,6,10527,10544,C3O10533C7O10539C11O10533C26O10543,,
code-creation,LazyCompile,10,27456,0xce7fc60feee,27,SafeMap node:internal/per_context/primordials:351:16,0x334c17f09e08,~
code-source-info,0xce7fc60feee,6,10200,10217,C3O10206C7O10212C11O10206C26O10216,,
code-creation,LazyCompile,10,27509,0xce7fc6100b6,16,IterableWeakMap node:internal/util/iterable_weak_map:16:1,0xce7fc60d260,~
code-source-info,0xce7fc6100b6,97,373,373,C0O373C15O373,,
code-creation,LazyCompile,10,27535,0xce7fc61046e,27,SafeFinalizationRegistry node:internal/per_context/primordials:378:16,0x334c17f0a118,~
code-source-info,0xce7fc61046e,6,10977,11022,C3O10997C7O11003C11O10997C26O11021,,
code-creation,Eval,10,27656,0xce7fc6107ae,5, node:internal/modules/package_json_reader:1:1,0xce7fc6105f8,~
script-source,99,node:internal/modules/package_json_reader,'use strict';\n\nconst { SafeMap } = primordials;\nconst { internalModuleReadJSON } = internalBinding('fs');\nconst { pathToFileURL } = require('url');\nconst { toNamespacedPath } = require('path');\n\nconst cache = new SafeMap();\n\nlet manifest;\n\n/**\n *\n * @param {string} jsonPath\n */\nfunction read(jsonPath) {\n if (cache.has(jsonPath)) {\n return cache.get(jsonPath);\n }\n\n const { 0: string\x2C 1: containsKeys } = internalModuleReadJSON(\n toNamespacedPath(jsonPath)\n );\n const result = { string\x2C containsKeys };\n const { getOptionValue } = require('internal/options');\n if (string !== undefined) {\n if (manifest === undefined) {\n manifest = getOptionValue('--experimental-policy') ?\n require('internal/process/policy').manifest :\n null;\n }\n if (manifest !== null) {\n const jsonURL = pathToFileURL(jsonPath);\n manifest.assertIntegrity(jsonURL\x2C string);\n }\n }\n cache.set(jsonPath\x2C result);\n return result;\n}\n\nmodule.exports = { read };\n
code-source-info,0xce7fc6107ae,99,0,983,C0O0C4O983,,
code-creation,Function,10,27719,0xce7fc61090e,113, node:internal/modules/package_json_reader:1:1,0xce7fc610718,~
code-source-info,0xce7fc61090e,99,0,983,C0O0C29O23C34O83C37O83C42O56C48O132C54O132C59O114C65O177C71O177C76O156C82O209C84O209C89O209C91O229C92O229C94O956C101O975C107O971C112O982,,
tick,0xf91394,28105,1,0xb515a0,3,0xd44a10,0xa52511ba43c,0xa52511b972d,0xce7fc606373,0xa52511ba45d,0xa52511b972d,0xce7fc601335,0xa52511ba45d,0xa52511b972d,0xa52511bed5f,0xa52511ba45d,0xa52511b972d,0xa52511b9222
code-creation,Eval,10,28157,0xce7fc611736,5, node:internal/modules/esm/translators:1:1,0xce7fc611250,~
script-source,100,node:internal/modules/esm/translators,'use strict';\n\nconst {\n ArrayPrototypeForEach\x2C\n ArrayPrototypeMap\x2C\n Boolean\x2C\n JSONParse\x2C\n ObjectGetPrototypeOf\x2C\n ObjectPrototypeHasOwnProperty\x2C\n ObjectKeys\x2C\n PromisePrototypeCatch\x2C\n PromiseReject\x2C\n SafeArrayIterator\x2C\n SafeMap\x2C\n SafeSet\x2C\n StringPrototypeReplace\x2C\n StringPrototypeSlice\x2C\n StringPrototypeStartsWith\x2C\n SyntaxErrorPrototype\x2C\n globalThis: { WebAssembly }\x2C\n} = primordials;\n\nlet _TYPES = null;\nfunction lazyTypes() {\n if (_TYPES !== null) return _TYPES;\n return _TYPES = require('internal/util/types');\n}\n\nconst { readFileSync } = require('fs');\nconst { extname\x2C isAbsolute } = require('path');\nconst {\n hasEsmSyntax\x2C\n loadNativeModule\x2C\n stripBOM\x2C\n} = require('internal/modules/cjs/helpers');\nconst {\n Module: CJSModule\x2C\n cjsParseCache\n} = require('internal/modules/cjs/loader');\nconst internalURLModule = require('internal/url');\nconst { defaultGetSource } = require(\n 'internal/modules/esm/get_source');\nconst { defaultTransformSource } = require(\n 'internal/modules/esm/transform_source');\nconst createDynamicModule = require(\n 'internal/modules/esm/create_dynamic_module');\nconst { fileURLToPath\x2C URL } = require('url');\nlet debug = require('internal/util/debuglog').debuglog('esm'\x2C (fn) => {\n debug = fn;\n});\nconst { emitExperimentalWarning } = require('internal/util');\nconst {\n ERR_UNKNOWN_BUILTIN_MODULE\x2C\n ERR_INVALID_RETURN_PROPERTY_VALUE\n} = require('internal/errors').codes;\nconst { maybeCacheSourceMap } = require('internal/source_map/source_map_cache');\nconst moduleWrap = internalBinding('module_wrap');\nconst { ModuleWrap } = moduleWrap;\nconst { getOptionValue } = require('internal/options');\nconst experimentalImportMetaResolve =\n getOptionValue('--experimental-import-meta-resolve');\nconst asyncESM = require('internal/process/esm_loader');\nconst { emitWarningSync } = require('internal/process/warning');\nconst { TextDecoder } = require('internal/encoding');\n\nlet cjsParse;\nasync function initCJSParse() {\n if (typeof WebAssembly === 'undefined') {\n cjsParse = require('internal/deps/cjs-module-lexer/lexer').parse;\n } else {\n const { parse\x2C init } =\n require('internal/deps/cjs-module-lexer/dist/lexer');\n await init();\n cjsParse = parse;\n }\n}\n\nconst translators = new SafeMap();\nexports.translators = translators;\nexports.enrichCJSError = enrichCJSError;\n\nlet DECODER = null;\nfunction assertBufferSource(body\x2C allowString\x2C hookName) {\n if (allowString && typeof body === 'string') {\n return;\n }\n const { isArrayBufferView\x2C isAnyArrayBuffer } = lazyTypes();\n if (isArrayBufferView(body) || isAnyArrayBuffer(body)) {\n return;\n }\n throw new ERR_INVALID_RETURN_PROPERTY_VALUE(\n `${allowString ? 'string\x2C ' : ''}array buffer\x2C or typed array`\x2C\n hookName\x2C\n 'source'\x2C\n body\n );\n}\n\nfunction stringify(body) {\n if (typeof body === 'string') return body;\n assertBufferSource(body\x2C false\x2C 'transformSource');\n DECODER = DECODER === null ? new TextDecoder() : DECODER;\n return DECODER.decode(body);\n}\n\nfunction errPath(url) {\n const parsed = new URL(url);\n if (parsed.protocol === 'file:') {\n return fileURLToPath(parsed);\n }\n return url;\n}\n\nasync function importModuleDynamically(specifier\x2C { url }) {\n return asyncESM.ESMLoader.import(specifier\x2C url);\n}\n\nfunction createImportMetaResolve(defaultParentUrl) {\n return async function resolve(specifier\x2C parentUrl = defaultParentUrl) {\n return PromisePrototypeCatch(\n asyncESM.ESMLoader.resolve(specifier\x2C parentUrl)\x2C\n (error) => (\n error.code === 'ERR_UNSUPPORTED_DIR_IMPORT' ?\n error.url : PromiseReject(error))\n );\n };\n}\n\nfunction initializeImportMeta(meta\x2C { url }) {\n // Alphabetical\n if (experimentalImportMetaResolve)\n meta.resolve = createImportMetaResolve(url);\n meta.url = url;\n}\n\n// Strategy for loading a standard JavaScript module.\ntranslators.set('module'\x2C async function moduleStrategy(url) {\n let { source } = await this._getSource(\n url\x2C { format: 'module' }\x2C defaultGetSource);\n assertBufferSource(source\x2C true\x2C 'getSource');\n ({ source } = await this._transformSource(\n source\x2C { url\x2C format: 'module' }\x2C defaultTransformSource));\n source = stringify(source);\n maybeCacheSourceMap(url\x2C source);\n debug(`Translating StandardModule ${url}`);\n const module = new ModuleWrap(url\x2C undefined\x2C source\x2C 0\x2C 0);\n moduleWrap.callbackMap.set(module\x2C {\n initializeImportMeta\x2C\n importModuleDynamically\x2C\n });\n return module;\n});\n\n/**\n * @param {Error | any} err\n * @param {string} [content] Content of the file\x2C if known.\n * @param {string} [filename] Useful only if `content` is unknown.\n */\nfunction enrichCJSError(err\x2C content\x2C filename) {\n if (err != null && ObjectGetPrototypeOf(err) === SyntaxErrorPrototype &&\n hasEsmSyntax(content || readFileSync(filename\x2C 'utf-8'))) {\n // Emit the warning synchronously because we are in the middle of handling\n // a SyntaxError that will throw and likely terminate the process before an\n // asynchronous warning would be emitted.\n emitWarningSync(\n 'To load an ES module\x2C set "type": "module" in the package.json or use ' +\n 'the .mjs extension.'\n );\n }\n}\n\n// Strategy for loading a node-style CommonJS module\nconst isWindows = process.platform === 'win32';\nconst winSepRegEx = /\\//g;\ntranslators.set('commonjs'\x2C async function commonjsStrategy(url\x2C isMain) {\n debug(`Translating CJSModule ${url}`);\n\n let filename = internalURLModule.fileURLToPath(new URL(url));\n if (isWindows)\n filename = StringPrototypeReplace(filename\x2C winSepRegEx\x2C '\\\\');\n\n if (!cjsParse) await initCJSParse();\n const { module\x2C exportNames } = cjsPreparseModuleExports(filename);\n const namesWithDefault = exportNames.has('default') ?\n [...exportNames] : ['default'\x2C ...exportNames];\n\n return new ModuleWrap(url\x2C undefined\x2C namesWithDefault\x2C function() {\n debug(`Loading CJSModule ${url}`);\n\n let exports;\n if (asyncESM.ESMLoader.cjsCache.has(module)) {\n exports = asyncESM.ESMLoader.cjsCache.get(module);\n asyncESM.ESMLoader.cjsCache.delete(module);\n } else {\n try {\n exports = CJSModule._load(filename\x2C undefined\x2C isMain);\n } catch (err) {\n enrichCJSError(err\x2C undefined\x2C filename);\n throw err;\n }\n }\n\n for (const exportName of exportNames) {\n if (!ObjectPrototypeHasOwnProperty(exports\x2C exportName) ||\n exportName === 'default')\n continue;\n // We might trigger a getter -> dont fail.\n let value;\n try {\n value = exports[exportName];\n } catch {}\n this.setExport(exportName\x2C value);\n }\n this.setExport('default'\x2C exports);\n });\n});\n\nfunction cjsPreparseModuleExports(filename) {\n let module = CJSModule._cache[filename];\n if (module) {\n const cached = cjsParseCache.get(module);\n if (cached)\n return { module\x2C exportNames: cached.exportNames };\n }\n const loaded = Boolean(module);\n if (!loaded) {\n module = new CJSModule(filename);\n module.filename = filename;\n module.paths = CJSModule._nodeModulePaths(module.path);\n CJSModule._cache[filename] = module;\n }\n\n let source;\n try {\n source = readFileSync(filename\x2C 'utf8');\n } catch {}\n\n let exports\x2C reexports;\n try {\n ({ exports\x2C reexports } = cjsParse(source || ''));\n } catch {\n exports = [];\n reexports = [];\n }\n\n const exportNames = new SafeSet(new SafeArrayIterator(exports));\n\n // Set first for cycles.\n cjsParseCache.set(module\x2C { source\x2C exportNames\x2C loaded });\n\n if (reexports.length) {\n module.filename = filename;\n module.paths = CJSModule._nodeModulePaths(module.path);\n }\n ArrayPrototypeForEach(reexports\x2C (reexport) => {\n let resolved;\n try {\n resolved = CJSModule._resolveFilename(reexport\x2C module);\n } catch {\n return;\n }\n const ext = extname(resolved);\n if ((ext === '.js' || ext === '.cjs' || !CJSModule._extensions[ext]) &&\n isAbsolute(resolved)) {\n const { exportNames: reexportNames } = cjsPreparseModuleExports(resolved);\n for (const name of reexportNames)\n exportNames.add(name);\n }\n });\n\n return { module\x2C exportNames };\n}\n\n// Strategy for loading a node builtin CommonJS module that isn't\n// through normal resolution\ntranslators.set('builtin'\x2C async function builtinStrategy(url) {\n debug(`Translating BuiltinModule ${url}`);\n // Slice 'node:' scheme\n const id = StringPrototypeSlice(url\x2C 5);\n const module = loadNativeModule(id\x2C url);\n if (!StringPrototypeStartsWith(url\x2C 'node:') || !module) {\n throw new ERR_UNKNOWN_BUILTIN_MODULE(url);\n }\n debug(`Loading BuiltinModule ${url}`);\n return module.getESMFacade();\n});\n\n// Strategy for loading a JSON file\ntranslators.set('json'\x2C async function jsonStrategy(url) {\n emitExperimentalWarning('Importing JSON modules');\n debug(`Translating JSONModule ${url}`);\n debug(`Loading JSONModule ${url}`);\n const pathname = StringPrototypeStartsWith(url\x2C 'file:') ?\n fileURLToPath(url) : null;\n let modulePath;\n let module;\n if (pathname) {\n modulePath = isWindows ?\n StringPrototypeReplace(pathname\x2C winSepRegEx\x2C '\\\\') : pathname;\n module = CJSModule._cache[modulePath];\n if (module && module.loaded) {\n const exports = module.exports;\n return new ModuleWrap(url\x2C undefined\x2C ['default']\x2C function() {\n this.setExport('default'\x2C exports);\n });\n }\n }\n let { source } = await this._getSource(\n url\x2C { format: 'json' }\x2C defaultGetSource);\n assertBufferSource(source\x2C true\x2C 'getSource');\n ({ source } = await this._transformSource(\n source\x2C { url\x2C format: 'json' }\x2C defaultTransformSource));\n source = stringify(source);\n if (pathname) {\n // A require call could have been called on the same file during loading and\n // that resolves synchronously. To make sure we always return the identical\n // export\x2C we have to check again if the module already exists or not.\n module = CJSModule._cache[modulePath];\n if (module && module.loaded) {\n const exports = module.exports;\n return new ModuleWrap(url\x2C undefined\x2C ['default']\x2C function() {\n this.setExport('default'\x2C exports);\n });\n }\n }\n try {\n const exports = JSONParse(stripBOM(source));\n module = {\n exports\x2C\n loaded: true\n };\n } catch (err) {\n // TODO (BridgeAR): We could add a NodeCore error that wraps the JSON\n // parse error instead of just manipulating the original error message.\n // That would allow to add further properties and maybe additional\n // debugging information.\n err.message = errPath(url) + ': ' + err.message;\n throw err;\n }\n if (pathname) {\n CJSModule._cache[modulePath] = module;\n }\n return new ModuleWrap(url\x2C undefined\x2C ['default']\x2C function() {\n debug(`Parsing JSONModule ${url}`);\n this.setExport('default'\x2C module.exports);\n });\n});\n\n// Strategy for loading a wasm module\ntranslators.set('wasm'\x2C async function(url) {\n emitExperimentalWarning('Importing Web Assembly modules');\n let { source } = await this._getSource(\n url\x2C { format: 'wasm' }\x2C defaultGetSource);\n assertBufferSource(source\x2C false\x2C 'getSource');\n ({ source } = await this._transformSource(\n source\x2C { url\x2C format: 'wasm' }\x2C defaultTransformSource));\n assertBufferSource(source\x2C false\x2C 'transformSource');\n debug(`Translating WASMModule ${url}`);\n let compiled;\n try {\n compiled = await WebAssembly.compile(source);\n } catch (err) {\n err.message = errPath(url) + ': ' + err.message;\n throw err;\n }\n\n const imports =\n ArrayPrototypeMap(WebAssembly.Module.imports(compiled)\x2C\n ({ module }) => module);\n const exports =\n ArrayPrototypeMap(WebAssembly.Module.exports(compiled)\x2C\n ({ name }) => name);\n\n return createDynamicModule(imports\x2C exports\x2C url\x2C (reflect) => {\n const { exports } = new WebAssembly.Instance(compiled\x2C reflect.imports);\n for (const expt of ObjectKeys(exports))\n reflect.exports[expt].set(exports[expt]);\n }).module;\n});\n
code-source-info,0xce7fc611736,100,0,11976,C0O0C4O11976,,
code-creation,Function,10,28665,0xce7fc612006,813, node:internal/modules/esm/translators:1:1,0xce7fc6116a0,~
code-source-info,0xce7fc612006,100,0,11976,C0O0C207O25C213O50C219O71C225O82C231O95C237O119C243O152C249O166C255O191C261O208C267O229C272O240C278O251C284O277C290O301C296O330C307O368C313O414C314O414C316O559C322O559C327O542C333O606C339O606C344O582C350O591C356O683C362O683C367O633C373O649C379O669C385O773C391O773C396O742C402O755C408O839C414O839C418O839C420O893C426O893C431O872C437O975C443O975C448O948C454O1056C460O1056C464O1056C466O1145C472O1145C477O1122C483O1137C489O1173C495O1173C500O1206C513O1207C519O1173C521O1287C527O1287C532O1259C538O1391C544O1391C549O1417C554O1323C560O1353C566O1457C572O1457C577O1433C583O1525C586O1525C590O1525C592O1580C595O1565C601O1619C607O1619C612O1600C617O1690C620O1690C624O1690C626O1761C632O1761C636O1761C638O1829C644O1829C649O1809C655O1890C661O1890C666O1874C672O1925C673O1925C675O2249C677O2249C683O2264C685O2284C689O2299C691O2322C695O2355C696O2355C698O3854C711O3854C717O5235C724O5244C727O5227C729O5277C733O5277C735O5296C748O5296C754O8232C767O8232C773O8681C786O8681C792O10866C805O10866C812O11975,,
code-creation,Eval,10,28857,0xce7fc613636,5, node:internal/modules/esm/get_source:1:1,0xce7fc613450,~
script-source,101,node:internal/modules/esm/get_source,'use strict';\n\nconst {\n RegExpPrototypeExec\x2C\n decodeURIComponent\x2C\n} = primordials;\nconst { getOptionValue } = require('internal/options');\n// Do not eagerly grab .manifest\x2C it may be in TDZ\nconst policy = getOptionValue('--experimental-policy') ?\n require('internal/process/policy') :\n null;\n\nconst { Buffer } = require('buffer');\n\nconst fs = require('internal/fs/promises').exports;\nconst { URL } = require('internal/url');\nconst {\n ERR_INVALID_URL\x2C\n ERR_INVALID_URL_SCHEME\x2C\n} = require('internal/errors').codes;\nconst readFileAsync = fs.readFile;\n\nconst DATA_URL_PATTERN = /^[^/]+\\/[^\x2C;]+(?:[^\x2C]*?)(;base64)?\x2C([\\s\\S]*)$/;\n\nasync function defaultGetSource(url\x2C { format } = {}\x2C defaultGetSource) {\n const parsed = new URL(url);\n let source;\n if (parsed.protocol === 'file:') {\n source = await readFileAsync(parsed);\n } else if (parsed.protocol === 'data:') {\n const match = RegExpPrototypeExec(DATA_URL_PATTERN\x2C parsed.pathname);\n if (!match) {\n throw new ERR_INVALID_URL(url);\n }\n const { 1: base64\x2C 2: body } = match;\n source = Buffer.from(decodeURIComponent(body)\x2C base64 ? 'base64' : 'utf8');\n } else {\n throw new ERR_INVALID_URL_SCHEME(['file'\x2C 'data']);\n }\n if (policy?.manifest) {\n policy.manifest.assertIntegrity(parsed\x2C source);\n }\n return { source };\n}\nexports.defaultGetSource = defaultGetSource;\n
code-source-info,0xce7fc613636,101,0,1353,C0O0C4O1353,,
code-creation,Function,10,28929,0xce7fc6137b6,169, node:internal/modules/esm/get_source:1:1,0xce7fc6135a0,~
code-source-info,0xce7fc6137b6,101,0,1353,C0O0C37O25C43O48C49O112C52O112C57O93C62O207C65O207C74O251C81O207C83O316C86O316C91O305C97O347C100O347C105O378C110O404C113O404C118O396C124O486C127O486C132O512C137O439C143O458C149O545C153O542C155O581C159O581C161O1308C163O1333C168O1352,,
tick,0x11685ef,29173,1,0xb515a0,2,0xd44a10,0xa52511ba43c,0xa52511b972d,0xce7fc61381a,0xa52511ba45d,0xa52511b972d,0xce7fc6121b0,0xa52511ba45d,0xa52511b972d,0xce7fc606373,0xa52511ba45d,0xa52511b972d,0xce7fc601335,0xa52511ba45d,0xa52511b972d,0xa52511bed5f,0xa52511ba45d,0xa52511b972d,0xa52511b9222
code-creation,Eval,10,29620,0xce7fc614a46,5, node:internal/fs/promises:1:1,0xce7fc6142f8,~
script-source,102,node:internal/fs/promises,'use strict';\n\nconst {\n ArrayPrototypePush\x2C\n Error\x2C\n MathMax\x2C\n MathMin\x2C\n NumberIsSafeInteger\x2C\n Promise\x2C\n PromisePrototypeThen\x2C\n PromiseResolve\x2C\n SafeArrayIterator\x2C\n SafePromisePrototypeFinally\x2C\n Symbol\x2C\n Uint8Array\x2C\n} = primordials;\n\nconst {\n F_OK\x2C\n O_SYMLINK\x2C\n O_WRONLY\x2C\n S_IFMT\x2C\n S_IFREG\n} = internalBinding('constants').fs;\nconst binding = internalBinding('fs');\nconst { Buffer } = require('buffer');\n\nconst {\n codes: {\n ERR_FS_FILE_TOO_LARGE\x2C\n ERR_INVALID_ARG_VALUE\x2C\n ERR_METHOD_NOT_IMPLEMENTED\x2C\n }\x2C\n AbortError\x2C\n} = require('internal/errors');\nconst { isArrayBufferView } = require('internal/util/types');\nconst { rimrafPromises } = require('internal/fs/rimraf');\nconst {\n constants: {\n kIoMaxLength\x2C\n kMaxUserId\x2C\n kReadFileBufferLength\x2C\n kReadFileUnknownBufferLength\x2C\n kWriteFileMaxChunkSize\x2C\n }\x2C\n copyObject\x2C\n emitRecursiveRmdirWarning\x2C\n getDirents\x2C\n getOptions\x2C\n getStatsFromBinding\x2C\n getValidatedPath\x2C\n getValidMode\x2C\n nullCheck\x2C\n preprocessSymlinkDestination\x2C\n stringToFlags\x2C\n stringToSymlinkType\x2C\n toUnixTimestamp\x2C\n validateBufferArray\x2C\n validateOffsetLengthRead\x2C\n validateOffsetLengthWrite\x2C\n validateRmOptions\x2C\n validateRmdirOptions\x2C\n validateStringAfterArrayBufferView\x2C\n warnOnNonPortableTemplate\n} = require('internal/fs/utils');\nconst { opendir } = require('internal/fs/dir');\nconst {\n parseFileMode\x2C\n validateAbortSignal\x2C\n validateBoolean\x2C\n validateBuffer\x2C\n validateEncoding\x2C\n validateInteger\x2C\n validateString\x2C\n} = require('internal/validators');\nconst pathModule = require('path');\nconst { lazyDOMException\x2C promisify } = require('internal/util');\nconst { EventEmitterMixin } = require('internal/event_target');\nconst { watch } = require('internal/fs/watchers');\nconst { isIterable } = require('internal/streams/utils');\nconst assert = require('internal/assert');\n\nconst kHandle = Symbol('kHandle');\nconst kFd = Symbol('kFd');\nconst kRefs = Symbol('kRefs');\nconst kClosePromise = Symbol('kClosePromise');\nconst kCloseResolve = Symbol('kCloseResolve');\nconst kCloseReject = Symbol('kCloseReject');\nconst kRef = Symbol('kRef');\nconst kUnref = Symbol('kUnref');\n\nconst { kUsePromises } = binding;\nconst {\n JSTransferable\x2C kDeserialize\x2C kTransfer\x2C kTransferList\n} = require('internal/worker/js_transferable');\n\nconst getDirectoryEntriesPromise = promisify(getDirents);\nconst validateRmOptionsPromise = promisify(validateRmOptions);\n\nclass FileHandle extends EventEmitterMixin(JSTransferable) {\n /**\n * @param {InternalFSBinding.FileHandle | undefined} filehandle\n */\n constructor(filehandle) {\n super();\n this[kHandle] = filehandle;\n this[kFd] = filehandle ? filehandle.fd : -1;\n\n this[kRefs] = 1;\n this[kClosePromise] = null;\n }\n\n getAsyncId() {\n return this[kHandle].getAsyncId();\n }\n\n get fd() {\n return this[kFd];\n }\n\n appendFile(data\x2C options) {\n return fsCall(writeFile\x2C this\x2C data\x2C options);\n }\n\n chmod(mode) {\n return fsCall(fchmod\x2C this\x2C mode);\n }\n\n chown(uid\x2C gid) {\n return fsCall(fchown\x2C this\x2C uid\x2C gid);\n }\n\n datasync() {\n return fsCall(fdatasync\x2C this);\n }\n\n sync() {\n return fsCall(fsync\x2C this);\n }\n\n read(buffer\x2C offset\x2C length\x2C position) {\n return fsCall(read\x2C this\x2C buffer\x2C offset\x2C length\x2C position);\n }\n\n readv(buffers\x2C position) {\n return fsCall(readv\x2C this\x2C buffers\x2C position);\n }\n\n readFile(options) {\n return fsCall(readFile\x2C this\x2C options);\n }\n\n stat(options) {\n return fsCall(fstat\x2C this\x2C options);\n }\n\n truncate(len = 0) {\n return fsCall(ftruncate\x2C this\x2C len);\n }\n\n utimes(atime\x2C mtime) {\n return fsCall(futimes\x2C this\x2C atime\x2C mtime);\n }\n\n write(buffer\x2C offset\x2C length\x2C position) {\n return fsCall(write\x2C this\x2C buffer\x2C offset\x2C length\x2C position);\n }\n\n writev(buffers\x2C position) {\n return fsCall(writev\x2C this\x2C buffers\x2C position);\n }\n\n writeFile(data\x2C options) {\n return fsCall(writeFile\x2C this\x2C data\x2C options);\n }\n\n close = () => {\n if (this[kFd] === -1) {\n return PromiseResolve();\n }\n\n if (this[kClosePromise]) {\n return this[kClosePromise];\n }\n\n this[kRefs]--;\n if (this[kRefs] === 0) {\n this[kFd] = -1;\n this[kClosePromise] = SafePromisePrototypeFinally(\n this[kHandle].close()\x2C\n () => { this[kClosePromise] = undefined; }\n );\n } else {\n this[kClosePromise] = SafePromisePrototypeFinally(\n new Promise((resolve\x2C reject) => {\n this[kCloseResolve] = resolve;\n this[kCloseReject] = reject;\n })\x2C () => {\n this[kClosePromise] = undefined;\n this[kCloseReject] = undefined;\n this[kCloseResolve] = undefined;\n }\n );\n }\n\n this.emit('close');\n return this[kClosePromise];\n }\n\n [kTransfer]() {\n if (this[kClosePromise] || this[kRefs] > 1) {\n throw lazyDOMException('Cannot transfer FileHandle while in use'\x2C\n 'DataCloneError');\n }\n\n const handle = this[kHandle];\n this[kFd] = -1;\n this[kHandle] = null;\n this[kRefs] = 0;\n\n return {\n data: { handle }\x2C\n deserializeInfo: 'internal/fs/promises:FileHandle'\n };\n }\n\n [kTransferList]() {\n return [ this[kHandle] ];\n }\n\n [kDeserialize]({ handle }) {\n this[kHandle] = handle;\n this[kFd] = handle.fd;\n }\n\n [kRef]() {\n this[kRefs]++;\n }\n\n [kUnref]() {\n this[kRefs]--;\n if (this[kRefs] === 0) {\n this[kFd] = -1;\n PromisePrototypeThen(\n this[kHandle].close()\x2C\n this[kCloseResolve]\x2C\n this[kCloseReject]\n );\n }\n }\n}\n\nasync function fsCall(fn\x2C handle\x2C ...args) {\n assert(handle[kRefs] !== undefined\x2C\n 'handle must be an instance of FileHandle');\n\n if (handle.fd === -1) {\n // eslint-disable-next-line no-restricted-syntax\n const err = new Error('file closed');\n err.code = 'EBADF';\n err.syscall = fn.name;\n throw err;\n }\n\n try {\n handle[kRef]();\n return await fn(handle\x2C ...new SafeArrayIterator(args));\n } finally {\n handle[kUnref]();\n }\n}\n\nfunction checkAborted(signal) {\n if (signal?.aborted)\n throw new AbortError();\n}\n\nasync function writeFileHandle(filehandle\x2C data\x2C signal\x2C encoding) {\n checkAborted(signal);\n if (isCustomIterable(data)) {\n for await (const buf of data) {\n checkAborted(signal);\n const toWrite =\n isArrayBufferView(buf) ? buf : Buffer.from(buf\x2C encoding || 'utf8');\n let remaining = toWrite.byteLength;\n while (remaining > 0) {\n const writeSize = MathMin(kWriteFileMaxChunkSize\x2C remaining);\n const { bytesWritten } = await write(\n filehandle\x2C toWrite\x2C toWrite.byteLength - remaining\x2C writeSize);\n remaining -= bytesWritten;\n checkAborted(signal);\n }\n }\n return;\n }\n data = new Uint8Array(data.buffer\x2C data.byteOffset\x2C data.byteLength);\n let remaining = data.byteLength;\n if (remaining === 0) return;\n do {\n checkAborted(signal);\n const { bytesWritten } =\n await write(filehandle\x2C data\x2C 0\x2C\n MathMin(kWriteFileMaxChunkSize\x2C data.byteLength));\n remaining -= bytesWritten;\n data = new Uint8Array(\n data.buffer\x2C\n data.byteOffset + bytesWritten\x2C\n data.byteLength - bytesWritten\n );\n } while (remaining > 0);\n}\n\nasync function readFileHandle(filehandle\x2C options) {\n const signal = options?.signal;\n\n checkAborted(signal);\n\n const statFields = await binding.fstat(filehandle.fd\x2C false\x2C kUsePromises);\n\n checkAborted(signal);\n\n let size;\n if ((statFields[1/* mode */] & S_IFMT) === S_IFREG) {\n size = statFields[8/* size */];\n } else {\n size = 0;\n }\n\n if (size > kIoMaxLength)\n throw new ERR_FS_FILE_TOO_LARGE(size);\n\n let endOfFile = false;\n let totalRead = 0;\n const noSize = size === 0;\n const buffers = [];\n const fullBuffer = noSize ? undefined : Buffer.allocUnsafeSlow(size);\n do {\n checkAborted(signal);\n let buffer;\n let offset;\n let length;\n if (noSize) {\n buffer = Buffer.allocUnsafeSlow(kReadFileUnknownBufferLength);\n offset = 0;\n length = kReadFileUnknownBufferLength;\n } else {\n buffer = fullBuffer;\n offset = totalRead;\n length = MathMin(size - totalRead\x2C kReadFileBufferLength);\n }\n\n const bytesRead = (await binding.read(filehandle.fd\x2C buffer\x2C offset\x2C\n length\x2C -1\x2C kUsePromises)) || 0;\n totalRead += bytesRead;\n endOfFile = bytesRead === 0 || totalRead === size;\n if (noSize && bytesRead > 0) {\n const isBufferFull = bytesRead === kReadFileUnknownBufferLength;\n const chunkBuffer = isBufferFull ? buffer : buffer.slice(0\x2C bytesRead);\n ArrayPrototypePush(buffers\x2C chunkBuffer);\n }\n } while (!endOfFile);\n\n let result;\n if (size > 0) {\n result = totalRead === size ? fullBuffer : fullBuffer.slice(0\x2C totalRead);\n } else {\n result = buffers.length === 1 ? buffers[0] : Buffer.concat(buffers\x2C\n totalRead);\n }\n\n return options.encoding ? result.toString(options.encoding) : result;\n}\n\n// All of the functions are defined as async in order to ensure that errors\n// thrown cause promise rejections rather than being thrown synchronously.\nasync function access(path\x2C mode = F_OK) {\n path = getValidatedPath(path);\n\n mode = getValidMode(mode\x2C 'access');\n return binding.access(pathModule.toNamespacedPath(path)\x2C mode\x2C\n kUsePromises);\n}\n\nasync function copyFile(src\x2C dest\x2C mode) {\n src = getValidatedPath(src\x2C 'src');\n dest = getValidatedPath(dest\x2C 'dest');\n mode = getValidMode(mode\x2C 'copyFile');\n return binding.copyFile(pathModule.toNamespacedPath(src)\x2C\n pathModule.toNamespacedPath(dest)\x2C\n mode\x2C\n kUsePromises);\n}\n\n// Note that unlike fs.open() which uses numeric file descriptors\x2C\n// fsPromises.open() uses the fs.FileHandle class.\nasync function open(path\x2C flags\x2C mode) {\n path = getValidatedPath(path);\n const flagsNumber = stringToFlags(flags);\n mode = parseFileMode(mode\x2C 'mode'\x2C 0o666);\n return new FileHandle(\n await binding.openFileHandle(pathModule.toNamespacedPath(path)\x2C\n flagsNumber\x2C mode\x2C kUsePromises));\n}\n\nasync function read(handle\x2C bufferOrOptions\x2C offset\x2C length\x2C position) {\n let buffer = bufferOrOptions;\n if (!isArrayBufferView(buffer)) {\n if (bufferOrOptions === undefined) {\n bufferOrOptions = {};\n }\n if (bufferOrOptions.buffer) {\n buffer = bufferOrOptions.buffer;\n validateBuffer(buffer);\n } else {\n buffer = Buffer.alloc(16384);\n }\n offset = bufferOrOptions.offset || 0;\n length = buffer.byteLength;\n position = bufferOrOptions.position || null;\n }\n\n if (offset == null) {\n offset = 0;\n } else {\n validateInteger(offset\x2C 'offset'\x2C 0);\n }\n\n length |= 0;\n\n if (length === 0)\n return { bytesRead: length\x2C buffer };\n\n if (buffer.byteLength === 0) {\n throw new ERR_INVALID_ARG_VALUE('buffer'\x2C buffer\x2C\n 'is empty and cannot be written');\n }\n\n validateOffsetLengthRead(offset\x2C length\x2C buffer.byteLength);\n\n if (!NumberIsSafeInteger(position))\n position = -1;\n\n const bytesRead = (await binding.read(handle.fd\x2C buffer\x2C offset\x2C length\x2C\n position\x2C kUsePromises)) || 0;\n\n return { bytesRead\x2C buffer };\n}\n\nasync function readv(handle\x2C buffers\x2C position) {\n validateBufferArray(buffers);\n\n if (typeof position !== 'number')\n position = null;\n\n const bytesRead = (await binding.readBuffers(handle.fd\x2C buffers\x2C position\x2C\n kUsePromises)) || 0;\n return { bytesRead\x2C buffers };\n}\n\nasync function write(handle\x2C buffer\x2C offset\x2C length\x2C position) {\n if (buffer?.byteLength === 0)\n return { bytesWritten: 0\x2C buffer };\n\n if (isArrayBufferView(buffer)) {\n if (offset == null) {\n offset = 0;\n } else {\n validateInteger(offset\x2C 'offset'\x2C 0);\n }\n if (typeof length !== 'number')\n length = buffer.byteLength - offset;\n if (typeof position !== 'number')\n position = null;\n validateOffsetLengthWrite(offset\x2C length\x2C buffer.byteLength);\n const bytesWritten =\n (await binding.writeBuffer(handle.fd\x2C buffer\x2C offset\x2C\n length\x2C position\x2C kUsePromises)) || 0;\n return { bytesWritten\x2C buffer };\n }\n\n validateStringAfterArrayBufferView(buffer\x2C 'buffer');\n validateEncoding(buffer\x2C length);\n const bytesWritten = (await binding.writeString(handle.fd\x2C buffer\x2C offset\x2C\n length\x2C kUsePromises)) || 0;\n return { bytesWritten\x2C buffer };\n}\n\nasync function writev(handle\x2C buffers\x2C position) {\n validateBufferArray(buffers);\n\n if (typeof position !== 'number')\n position = null;\n\n const bytesWritten = (await binding.writeBuffers(handle.fd\x2C buffers\x2C position\x2C\n kUsePromises)) || 0;\n return { bytesWritten\x2C buffers };\n}\n\nasync function rename(oldPath\x2C newPath) {\n oldPath = getValidatedPath(oldPath\x2C 'oldPath');\n newPath = getValidatedPath(newPath\x2C 'newPath');\n return binding.rename(pathModule.toNamespacedPath(oldPath)\x2C\n pathModule.toNamespacedPath(newPath)\x2C\n kUsePromises);\n}\n\nasync function truncate(path\x2C len = 0) {\n const fd = await open(path\x2C 'r+');\n return SafePromisePrototypeFinally(ftruncate(fd\x2C len)\x2C fd.close);\n}\n\nasync function ftruncate(handle\x2C len = 0) {\n validateInteger(len\x2C 'len');\n len = MathMax(0\x2C len);\n return binding.ftruncate(handle.fd\x2C len\x2C kUsePromises);\n}\n\nasync function rm(path\x2C options) {\n path = pathModule.toNamespacedPath(getValidatedPath(path));\n options = await validateRmOptionsPromise(path\x2C options\x2C false);\n return rimrafPromises(path\x2C options);\n}\n\nasync function rmdir(path\x2C options) {\n path = pathModule.toNamespacedPath(getValidatedPath(path));\n options = validateRmdirOptions(options);\n\n if (options.recursive) {\n emitRecursiveRmdirWarning();\n const stats = await stat(path);\n if (stats.isDirectory()) {\n return rimrafPromises(path\x2C options);\n }\n }\n\n return binding.rmdir(path\x2C kUsePromises);\n}\n\nasync function fdatasync(handle) {\n return binding.fdatasync(handle.fd\x2C kUsePromises);\n}\n\nasync function fsync(handle) {\n return binding.fsync(handle.fd\x2C kUsePromises);\n}\n\nasync function mkdir(path\x2C options) {\n if (typeof options === 'number' || typeof options === 'string') {\n options = { mode: options };\n }\n const {\n recursive = false\x2C\n mode = 0o777\n } = options || {};\n path = getValidatedPath(path);\n validateBoolean(recursive\x2C 'options.recursive');\n\n return binding.mkdir(pathModule.toNamespacedPath(path)\x2C\n parseFileMode(mode\x2C 'mode'\x2C 0o777)\x2C recursive\x2C\n kUsePromises);\n}\n\nasync function readdir(path\x2C options) {\n options = getOptions(options\x2C {});\n path = getValidatedPath(path);\n const result = await binding.readdir(pathModule.toNamespacedPath(path)\x2C\n options.encoding\x2C\n !!options.withFileTypes\x2C\n kUsePromises);\n return options.withFileTypes ?\n getDirectoryEntriesPromise(path\x2C result) :\n result;\n}\n\nasync function readlink(path\x2C options) {\n options = getOptions(options\x2C {});\n path = getValidatedPath(path\x2C 'oldPath');\n return binding.readlink(pathModule.toNamespacedPath(path)\x2C\n options.encoding\x2C kUsePromises);\n}\n\nasync function symlink(target\x2C path\x2C type_) {\n const type = (typeof type_ === 'string' ? type_ : null);\n target = getValidatedPath(target\x2C 'target');\n path = getValidatedPath(path);\n return binding.symlink(preprocessSymlinkDestination(target\x2C type\x2C path)\x2C\n pathModule.toNamespacedPath(path)\x2C\n stringToSymlinkType(type)\x2C\n kUsePromises);\n}\n\nasync function fstat(handle\x2C options = { bigint: false }) {\n const result = await binding.fstat(handle.fd\x2C options.bigint\x2C kUsePromises);\n return getStatsFromBinding(result);\n}\n\nasync function lstat(path\x2C options = { bigint: false }) {\n path = getValidatedPath(path);\n const result = await binding.lstat(pathModule.toNamespacedPath(path)\x2C\n options.bigint\x2C kUsePromises);\n return getStatsFromBinding(result);\n}\n\nasync function stat(path\x2C options = { bigint: false }) {\n path = getValidatedPath(path);\n const result = await binding.stat(pathModule.toNamespacedPath(path)\x2C\n options.bigint\x2C kUsePromises);\n return getStatsFromBinding(result);\n}\n\nasync function link(existingPath\x2C newPath) {\n existingPath = getValidatedPath(existingPath\x2C 'existingPath');\n newPath = getValidatedPath(newPath\x2C 'newPath');\n return binding.link(pathModule.toNamespacedPath(existingPath)\x2C\n pathModule.toNamespacedPath(newPath)\x2C\n kUsePromises);\n}\n\nasync function unlink(path) {\n path = getValidatedPath(path);\n return binding.unlink(pathModule.toNamespacedPath(path)\x2C kUsePromises);\n}\n\nasync function fchmod(handle\x2C mode) {\n mode = parseFileMode(mode\x2C 'mode');\n return binding.fchmod(handle.fd\x2C mode\x2C kUsePromises);\n}\n\nasync function chmod(path\x2C mode) {\n path = getValidatedPath(path);\n mode = parseFileMode(mode\x2C 'mode');\n return binding.chmod(pathModule.toNamespacedPath(path)\x2C mode\x2C kUsePromises);\n}\n\nasync function lchmod(path\x2C mode) {\n if (O_SYMLINK === undefined)\n throw new ERR_METHOD_NOT_IMPLEMENTED('lchmod()');\n\n const fd = await open(path\x2C O_WRONLY | O_SYMLINK);\n return SafePromisePrototypeFinally(fchmod(fd\x2C mode)\x2C fd.close);\n}\n\nasync function lchown(path\x2C uid\x2C gid) {\n path = getValidatedPath(path);\n validateInteger(uid\x2C 'uid'\x2C -1\x2C kMaxUserId);\n validateInteger(gid\x2C 'gid'\x2C -1\x2C kMaxUserId);\n return binding.lchown(pathModule.toNamespacedPath(path)\x2C\n uid\x2C gid\x2C kUsePromises);\n}\n\nasync function fchown(handle\x2C uid\x2C gid) {\n validateInteger(uid\x2C 'uid'\x2C -1\x2C kMaxUserId);\n validateInteger(gid\x2C 'gid'\x2C -1\x2C kMaxUserId);\n return binding.fchown(handle.fd\x2C uid\x2C gid\x2C kUsePromises);\n}\n\nasync function chown(path\x2C uid\x2C gid) {\n path = getValidatedPath(path);\n validateInteger(uid\x2C 'uid'\x2C -1\x2C kMaxUserId);\n validateInteger(gid\x2C 'gid'\x2C -1\x2C kMaxUserId);\n return binding.chown(pathModule.toNamespacedPath(path)\x2C\n uid\x2C gid\x2C kUsePromises);\n}\n\nasync function utimes(path\x2C atime\x2C mtime) {\n path = getValidatedPath(path);\n return binding.utimes(pathModule.toNamespacedPath(path)\x2C\n toUnixTimestamp(atime)\x2C\n toUnixTimestamp(mtime)\x2C\n kUsePromises);\n}\n\nasync function futimes(handle\x2C atime\x2C mtime) {\n atime = toUnixTimestamp(atime\x2C 'atime');\n mtime = toUnixTimestamp(mtime\x2C 'mtime');\n return binding.futimes(handle.fd\x2C atime\x2C mtime\x2C kUsePromises);\n}\n\nasync function lutimes(path\x2C atime\x2C mtime) {\n path = getValidatedPath(path);\n return binding.lutimes(pathModule.toNamespacedPath(path)\x2C\n toUnixTimestamp(atime)\x2C\n toUnixTimestamp(mtime)\x2C\n kUsePromises);\n}\n\nasync function realpath(path\x2C options) {\n options = getOptions(options\x2C {});\n path = getValidatedPath(path);\n return binding.realpath(path\x2C options.encoding\x2C kUsePromises);\n}\n\nasync function mkdtemp(prefix\x2C options) {\n options = getOptions(options\x2C {});\n\n validateString(prefix\x2C 'prefix');\n nullCheck(prefix);\n warnOnNonPortableTemplate(prefix);\n return binding.mkdtemp(`${prefix}XXXXXX`\x2C options.encoding\x2C kUsePromises);\n}\n\nasync function writeFile(path\x2C data\x2C options) {\n options = getOptions(options\x2C { encoding: 'utf8'\x2C mode: 0o666\x2C flag: 'w' });\n const flag = options.flag || 'w';\n\n if (!isArrayBufferView(data) && !isCustomIterable(data)) {\n validateStringAfterArrayBufferView(data\x2C 'data');\n data = Buffer.from(data\x2C options.encoding || 'utf8');\n }\n\n validateAbortSignal(options.signal);\n if (path instanceof FileHandle)\n return writeFileHandle(path\x2C data\x2C options.signal\x2C options.encoding);\n\n checkAborted(options.signal);\n\n const fd = await open(path\x2C flag\x2C options.mode);\n return SafePromisePrototypeFinally(\n writeFileHandle(fd\x2C data\x2C options.signal\x2C options.encoding)\x2C fd.close);\n}\n\nfunction isCustomIterable(obj) {\n return isIterable(obj) && !isArrayBufferView(obj) && typeof obj !== 'string';\n}\n\nasync function appendFile(path\x2C data\x2C options) {\n options = getOptions(options\x2C { encoding: 'utf8'\x2C mode: 0o666\x2C flag: 'a' });\n options = copyObject(options);\n options.flag = options.flag || 'a';\n return writeFile(path\x2C data\x2C options);\n}\n\nasync function readFile(path\x2C options) {\n options = getOptions(options\x2C { flag: 'r' });\n const flag = options.flag || 'r';\n\n if (path instanceof FileHandle)\n return readFileHandle(path\x2C options);\n\n checkAborted(options.signal);\n\n const fd = await open(path\x2C flag\x2C 0o666);\n return SafePromisePrototypeFinally(readFileHandle(fd\x2C options)\x2C fd.close);\n}\n\nmodule.exports = {\n exports: {\n access\x2C\n copyFile\x2C\n open\x2C\n opendir: promisify(opendir)\x2C\n rename\x2C\n truncate\x2C\n rm\x2C\n rmdir\x2C\n mkdir\x2C\n readdir\x2C\n readlink\x2C\n symlink\x2C\n lstat\x2C\n stat\x2C\n link\x2C\n unlink\x2C\n chmod\x2C\n lchmod\x2C\n lchown\x2C\n chown\x2C\n utimes\x2C\n lutimes\x2C\n realpath\x2C\n mkdtemp\x2C\n writeFile\x2C\n appendFile\x2C\n readFile\x2C\n watch\x2C\n }\x2C\n\n FileHandle\x2C\n kRef\x2C\n kUnref\x2C\n};\n
code-source-info,0xce7fc614a46,102,0,21471,C0O0C4O21471,,
code-creation,Function,10,30595,0xce7fc616fb6,1534, node:internal/fs/promises:1:1,0xce7fc6149b0,~
code-source-info,0xce7fc616fb6,102,0,21471,C0O0C459O25C465O47C471O56C477O67C483O78C489O101C495O112C501O136C507O154C513O175C519O206C524O216C530O311C534O311C540O339C546O256C552O264C558O277C564O289C570O299C576O360C580O360C584O360C586O402C590O402C596O391C602O550C606O550C612O550C618O445C624O472C630O499C636O534C642O608C646O608C652O586C658O667C662O667C668O648C674O1278C678O1278C684O1278C690O725C696O743C702O759C708O786C714O820C720O851C726O865C732O894C737O908C743O922C749O945C755O965C761O981C767O994C773O1026C779O1043C785O1066C791O1085C797O1108C803O1136C809O1165C814O1186C820O1210C826O1248C832O1328C836O1328C842O1316C847O1502C851O1502C857O1366C863O1383C869O1406C875O1425C881O1443C887O1463C893O1482C899O1553C903O1553C907O1553C909O1610C913O1610C919O1578C925O1596C930O1666C934O1666C940O1644C945O1718C949O1718C955O1708C960O1774C964O1774C970O1759C976O1824C980O1824C984O1824C986O1869C990O1869C994O1869C996O1900C1000O1900C1004O1900C1006O1929C1010O1929C1014O1929C1016O1968C1020O1968C1024O1968C1026O2015C1030O2015C1034O2015C1036O2061C1040O2061C1044O2061C1046O2098C1050O2098C1054O2098C1056O2129C1060O2129C1064O2129C1066O2173C1070O2156C1076O2251C1080O2251C1086O2192C1091O2208C1096O2222C1101O2233C1106O2331C1110O2331C1112O2387C1116O2387C1118O2443C1228O4728C1238O5131C1248O5188C1260O5279C1270O5316C1302O2418C1304O21036C1310O21066C1318O21072C1324O21084C1330O21098C1334O21117C1344O21141C1350O21153C1356O21167C1362O21175C1368O21186C1374O21197C1380O21210C1386O21224C1392O21237C1398O21248C1404O21258C1410O21268C1416O21280C1422O21291C1428O21303C1434O21315C1440O21326C1446O21338C1452O21351C1458O21365C1464O21378C1470O21393C1476O21409C1482O21423C1494O21438C1504O21452C1514O21460C1524O21051C1533O21470,,
code-creation,Function,10,30646,0xce7fc6178d6,27,<instance_members_initializer> node:internal/fs/promises:177:3,0xce7fc615e90,~
code-source-info,0xce7fc6178d6,102,3925,4723,C0O3925C12O3933C26O4723,,
tick,0x7f4debe4c917,30677,1,0xb515a0,3,0xd44a10,0xa52511ba43c,0xa52511b972d,0xce7fc61381a,0xa52511ba45d,0xa52511b972d,0xce7fc6121b0,0xa52511ba45d,0xa52511b972d,0xce7fc606373,0xa52511ba45d,0xa52511b972d,0xce7fc601335,0xa52511ba45d,0xa52511b972d,0xa52511bed5f,0xa52511ba45d,0xa52511b972d,0xa52511b9222
code-creation,Eval,10,31039,0xce7fc61a156,5, node:internal/fs/rimraf:1:1,0xce7fc619de0,~
script-source,103,node:internal/fs/rimraf,// This file is a modified version of the rimraf module on npm. It has been\n// modified in the following ways:\n// - Use of the assert module has been replaced with core's error system.\n// - All code related to the glob dependency has been removed.\n// - Bring your own custom fs module is not currently supported.\n// - Some basic code cleanup.\n'use strict';\n\nconst {\n ArrayPrototypeForEach\x2C\n Promise\x2C\n SafeSet\x2C\n} = primordials;\n\nconst { Buffer } = require('buffer');\nconst fs = require('fs');\nconst {\n chmod\x2C\n chmodSync\x2C\n lstat\x2C\n lstatSync\x2C\n readdir\x2C\n readdirSync\x2C\n rmdir\x2C\n rmdirSync\x2C\n stat\x2C\n statSync\x2C\n unlink\x2C\n unlinkSync\n} = fs;\nconst { sep } = require('path');\nconst { setTimeout } = require('timers');\nconst { sleep } = require('internal/util');\nconst notEmptyErrorCodes = new SafeSet(['ENOTEMPTY'\x2C 'EEXIST'\x2C 'EPERM']);\nconst retryErrorCodes = new SafeSet(\n ['EBUSY'\x2C 'EMFILE'\x2C 'ENFILE'\x2C 'ENOTEMPTY'\x2C 'EPERM']);\nconst isWindows = process.platform === 'win32';\nconst epermHandler = isWindows ? fixWinEPERM : _rmdir;\nconst epermHandlerSync = isWindows ? fixWinEPERMSync : _rmdirSync;\nconst readdirEncoding = 'buffer';\nconst separator = Buffer.from(sep);\n\n\nfunction rimraf(path\x2C options\x2C callback) {\n let retries = 0;\n\n _rimraf(path\x2C options\x2C function CB(err) {\n if (err) {\n if (retryErrorCodes.has(err.code) && retries < options.maxRetries) {\n retries++;\n const delay = retries * options.retryDelay;\n return setTimeout(_rimraf\x2C delay\x2C path\x2C options\x2C CB);\n }\n\n // The file is already gone.\n if (err.code === 'ENOENT')\n err = null;\n }\n\n callback(err);\n });\n}\n\n\nfunction _rimraf(path\x2C options\x2C callback) {\n // SunOS lets the root user unlink directories. Use lstat here to make sure\n // it's not a directory.\n lstat(path\x2C (err\x2C stats) => {\n if (err) {\n if (err.code === 'ENOENT')\n return callback(null);\n\n // Windows can EPERM on stat.\n if (isWindows && err.code === 'EPERM')\n return fixWinEPERM(path\x2C options\x2C err\x2C callback);\n } else if (stats.isDirectory()) {\n return _rmdir(path\x2C options\x2C err\x2C callback);\n }\n\n unlink(path\x2C (err) => {\n if (err) {\n if (err.code === 'ENOENT')\n return callback(null);\n if (err.code === 'EISDIR')\n return _rmdir(path\x2C options\x2C err\x2C callback);\n if (err.code === 'EPERM') {\n return epermHandler(path\x2C options\x2C err\x2C callback);\n }\n }\n\n return callback(err);\n });\n });\n}\n\n\nfunction fixWinEPERM(path\x2C options\x2C originalErr\x2C callback) {\n chmod(path\x2C 0o666\x2C (err) => {\n if (err)\n return callback(err.code === 'ENOENT' ? null : originalErr);\n\n stat(path\x2C (err\x2C stats) => {\n if (err)\n return callback(err.code === 'ENOENT' ? null : originalErr);\n\n if (stats.isDirectory())\n _rmdir(path\x2C options\x2C originalErr\x2C callback);\n else\n unlink(path\x2C callback);\n });\n });\n}\n\n\nfunction _rmdir(path\x2C options\x2C originalErr\x2C callback) {\n rmdir(path\x2C (err) => {\n if (err) {\n if (notEmptyErrorCodes.has(err.code))\n return _rmchildren(path\x2C options\x2C callback);\n if (err.code === 'ENOTDIR')\n return callback(originalErr);\n }\n\n callback(err);\n });\n}\n\n\nfunction _rmchildren(path\x2C options\x2C callback) {\n const pathBuf = Buffer.from(path);\n\n readdir(pathBuf\x2C readdirEncoding\x2C (err\x2C files) => {\n if (err)\n return callback(err);\n\n let numFiles = files.length;\n\n if (numFiles === 0)\n return rmdir(path\x2C callback);\n\n let done = false;\n\n ArrayPrototypeForEach(files\x2C (child) => {\n const childPath = Buffer.concat([pathBuf\x2C separator\x2C child]);\n\n rimraf(childPath\x2C options\x2C (err) => {\n if (done)\n return;\n\n if (err) {\n done = true;\n return callback(err);\n }\n\n numFiles--;\n if (numFiles === 0)\n rmdir(path\x2C callback);\n });\n });\n });\n}\n\n\nfunction rimrafPromises(path\x2C options) {\n return new Promise((resolve\x2C reject) => {\n rimraf(path\x2C options\x2C (err) => {\n if (err)\n return reject(err);\n\n resolve();\n });\n });\n}\n\n\nfunction rimrafSync(path\x2C options) {\n let stats;\n\n try {\n stats = lstatSync(path);\n } catch (err) {\n if (err.code === 'ENOENT')\n return;\n\n // Windows can EPERM on stat.\n if (isWindows && err.code === 'EPERM')\n fixWinEPERMSync(path\x2C options\x2C err);\n }\n\n try {\n // SunOS lets the root user unlink directories.\n if (stats?.isDirectory())\n _rmdirSync(path\x2C options\x2C null);\n else\n _unlinkSync(path\x2C options);\n } catch (err) {\n if (err.code === 'ENOENT')\n return;\n if (err.code === 'EPERM')\n return epermHandlerSync(path\x2C options\x2C err);\n if (err.code !== 'EISDIR')\n throw err;\n\n _rmdirSync(path\x2C options\x2C err);\n }\n}\n\n\nfunction _unlinkSync(path\x2C options) {\n const tries = options.maxRetries + 1;\n\n for (let i = 1; i <= tries; i++) {\n try {\n return unlinkSync(path);\n } catch (err) {\n // Only sleep if this is not the last try\x2C and the delay is greater\n // than zero\x2C and an error was encountered that warrants a retry.\n if (retryErrorCodes.has(err.code) &&\n i < tries &&\n options.retryDelay > 0) {\n sleep(i * options.retryDelay);\n }\n }\n }\n}\n\n\nfunction _rmdirSync(path\x2C options\x2C originalErr) {\n try {\n rmdirSync(path);\n } catch (err) {\n if (err.code === 'ENOENT')\n return;\n if (err.code === 'ENOTDIR')\n throw originalErr;\n\n if (notEmptyErrorCodes.has(err.code)) {\n // Removing failed. Try removing all children and then retrying the\n // original removal. Windows has a habit of not closing handles promptly\n // when files are deleted\x2C resulting in spurious ENOTEMPTY failures. Work\n // around that issue by retrying on Windows.\n const pathBuf = Buffer.from(path);\n\n ArrayPrototypeForEach(readdirSync(pathBuf\x2C readdirEncoding)\x2C (child) => {\n const childPath = Buffer.concat([pathBuf\x2C separator\x2C child]);\n\n rimrafSync(childPath\x2C options);\n });\n\n const tries = options.maxRetries + 1;\n\n for (let i = 1; i <= tries; i++) {\n try {\n return fs.rmdirSync(path);\n } catch (err) {\n // Only sleep if this is not the last try\x2C and the delay is greater\n // than zero\x2C and an error was encountered that warrants a retry.\n if (retryErrorCodes.has(err.code) &&\n i < tries &&\n options.retryDelay > 0) {\n sleep(i * options.retryDelay);\n }\n }\n }\n }\n }\n}\n\n\nfunction fixWinEPERMSync(path\x2C options\x2C originalErr) {\n try {\n chmodSync(path\x2C 0o666);\n } catch (err) {\n if (err.code === 'ENOENT')\n return;\n\n throw originalErr;\n }\n\n let stats;\n\n try {\n stats = statSync(path\x2C { throwIfNoEntry: false });\n } catch {\n throw originalErr;\n }\n\n if (stats === undefined) return;\n\n if (stats.isDirectory())\n _rmdirSync(path\x2C options\x2C originalErr);\n else\n _unlinkSync(path\x2C options);\n}\n\n\nmodule.exports = { rimraf\x2C rimrafPromises\x2C rimrafSync };\n
code-source-info,0xce7fc61a156,103,0,7095,C0O0C4O7095,,
code-creation,Function,10,31390,0xce7fc61a766,409, node:internal/fs/rimraf:1:1,0xce7fc61a0c0,~
code-source-info,0xce7fc61a766,103,0,7095,C0O0C139O368C145O393C151O404C156O450C159O450C164O439C170O480C173O480C177O480C179O642C182O505C188O514C194O527C200O536C206O549C212O560C218O575C224O584C230O597C236O605C242O617C248O627C254O662C257O662C262O654C267O702C270O702C275O687C281O739C284O739C289O729C295O792C302O792C307O792C309O863C316O863C321O863C323O958C330O967C333O950C335O1001C345O1001C347O1060C357O1060C359O1126C361O1126C363O1154C366O1161C371O1161C376O1154C378O7038C385O7057C391O7065C397O7081C403O7053C408O7094,,
tick,0x7f4debd52e39,31434,1,0xb515a0,3,0xd44a10,0xa52511ba43c,0xa52511b972d,0xce7fc61724c,0xa52511ba45d,0xa52511b972d,0xce7fc61381a,0xa52511ba45d,0xa52511b972d,0xce7fc6121b0,0xa52511ba45d,0xa52511b972d,0xce7fc606373,0xa52511ba45d,0xa52511b972d,0xce7fc601335,0xa52511ba45d,0xa52511b972d,0xa52511bed5f,0xa52511ba45d,0xa52511b972d,0xa52511b9222
code-creation,LazyCompile,10,31659,0xce7fc61b726,188,from node:buffer:294:28,0x38b4b3b24940,~
script-source,18,node:buffer,// Copyright Joyent\x2C Inc. and other Node contributors.\n//\n// Permission is hereby granted\x2C free of charge\x2C to any person obtaining a\n// copy of this software and associated documentation files (the\n// "Software")\x2C to deal in the Software without restriction\x2C including\n// without limitation the rights to use\x2C copy\x2C modify\x2C merge\x2C publish\x2C\n// distribute\x2C sublicense\x2C and/or sell copies of the Software\x2C and to permit\n// persons to whom the Software is furnished to do so\x2C subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED "AS IS"\x2C WITHOUT WARRANTY OF ANY KIND\x2C EXPRESS\n// OR IMPLIED\x2C INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY\x2C FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM\x2C\n// DAMAGES OR OTHER LIABILITY\x2C WHETHER IN AN ACTION OF CONTRACT\x2C TORT OR\n// OTHERWISE\x2C ARISING FROM\x2C OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n'use strict';\n\nconst {\n Array\x2C\n ArrayIsArray\x2C\n ArrayPrototypeForEach\x2C\n Error\x2C\n MathFloor\x2C\n MathMin\x2C\n MathTrunc\x2C\n NumberIsNaN\x2C\n NumberMAX_SAFE_INTEGER\x2C\n NumberMIN_SAFE_INTEGER\x2C\n ObjectCreate\x2C\n ObjectDefineProperties\x2C\n ObjectDefineProperty\x2C\n ObjectSetPrototypeOf\x2C\n StringPrototypeCharCodeAt\x2C\n StringPrototypeReplace\x2C\n StringPrototypeSlice\x2C\n StringPrototypeToLowerCase\x2C\n StringPrototypeTrim\x2C\n SymbolSpecies\x2C\n SymbolToPrimitive\x2C\n TypedArrayPrototypeGetByteLength\x2C\n TypedArrayPrototypeFill\x2C\n TypedArrayPrototypeSet\x2C\n Uint8Array\x2C\n Uint8ArrayPrototype\x2C\n} = primordials;\n\nconst {\n byteLengthUtf8\x2C\n compare: _compare\x2C\n compareOffset\x2C\n createFromString\x2C\n fill: bindingFill\x2C\n indexOfBuffer\x2C\n indexOfNumber\x2C\n indexOfString\x2C\n swap16: _swap16\x2C\n swap32: _swap32\x2C\n swap64: _swap64\x2C\n kMaxLength\x2C\n kStringMaxLength\n} = internalBinding('buffer');\nconst {\n getOwnNonIndexProperties\x2C\n propertyFilter: {\n ALL_PROPERTIES\x2C\n ONLY_ENUMERABLE\n }\x2C\n} = internalBinding('util');\nconst {\n customInspectSymbol\x2C\n isInsideNodeModules\x2C\n lazyDOMException\x2C\n normalizeEncoding\x2C\n kIsEncodingSymbol\n} = require('internal/util');\nconst {\n isAnyArrayBuffer\x2C\n isArrayBufferView\x2C\n isUint8Array\n} = require('internal/util/types');\nconst {\n inspect: utilInspect\n} = require('internal/util/inspect');\nconst { encodings } = internalBinding('string_decoder');\n\nconst {\n codes: {\n ERR_BUFFER_OUT_OF_BOUNDS\x2C\n ERR_INVALID_ARG_TYPE\x2C\n ERR_INVALID_ARG_VALUE\x2C\n ERR_INVALID_BUFFER_SIZE\x2C\n ERR_OUT_OF_RANGE\x2C\n ERR_UNKNOWN_ENCODING\n }\x2C\n hideStackFrames\n} = require('internal/errors');\nconst {\n validateArray\x2C\n validateBuffer\x2C\n validateNumber\x2C\n validateInteger\x2C\n validateString\n} = require('internal/validators');\n// Provide validateInteger() but with kMaxLength as the default maximum value.\nconst validateOffset = (value\x2C name\x2C min = 0\x2C max = kMaxLength) =>\n validateInteger(value\x2C name\x2C min\x2C max);\n\nconst {\n FastBuffer\x2C\n markAsUntransferable\x2C\n addBufferPrototypeMethods\x2C\n createUnsafeBuffer\n} = require('internal/buffer');\n\nconst {\n Blob\x2C\n} = require('internal/blob');\n\nFastBuffer.prototype.constructor = Buffer;\nBuffer.prototype = FastBuffer.prototype;\naddBufferPrototypeMethods(Buffer.prototype);\n\nconst constants = ObjectDefineProperties({}\x2C {\n MAX_LENGTH: {\n value: kMaxLength\x2C\n writable: false\x2C\n enumerable: true\n }\x2C\n MAX_STRING_LENGTH: {\n value: kStringMaxLength\x2C\n writable: false\x2C\n enumerable: true\n }\n});\n\nBuffer.poolSize = 8 * 1024;\nlet poolSize\x2C poolOffset\x2C allocPool;\n\nconst encodingsMap = ObjectCreate(null);\nfor (let i = 0; i < encodings.length; ++i)\n encodingsMap[encodings[i]] = i;\n\nfunction createPool() {\n poolSize = Buffer.poolSize;\n allocPool = createUnsafeBuffer(poolSize).buffer;\n markAsUntransferable(allocPool);\n poolOffset = 0;\n}\ncreatePool();\n\nfunction alignPool() {\n // Ensure aligned slices\n if (poolOffset & 0x7) {\n poolOffset |= 0x7;\n poolOffset++;\n }\n}\n\nlet bufferWarningAlreadyEmitted = false;\nlet nodeModulesCheckCounter = 0;\nconst bufferWarning = 'Buffer() is deprecated due to security and usability ' +\n 'issues. Please use the Buffer.alloc()\x2C ' +\n 'Buffer.allocUnsafe()\x2C or Buffer.from() methods instead.';\n\nfunction showFlaggedDeprecation() {\n if (bufferWarningAlreadyEmitted ||\n ++nodeModulesCheckCounter > 10000 ||\n (!require('internal/options').getOptionValue('--pending-deprecation') &&\n isInsideNodeModules())) {\n // We don't emit a warning\x2C because we either:\n // - Already did so\x2C or\n // - Already checked too many times whether a call is coming\n // from node_modules and want to stop slowing down things\x2C or\n // - We aren't running with `--pending-deprecation` enabled\x2C\n // and the code is inside `node_modules`.\n return;\n }\n\n process.emitWarning(bufferWarning\x2C 'DeprecationWarning'\x2C 'DEP0005');\n bufferWarningAlreadyEmitted = true;\n}\n\nfunction toInteger(n\x2C defaultVal) {\n n = +n;\n if (!NumberIsNaN(n) &&\n n >= NumberMIN_SAFE_INTEGER &&\n n <= NumberMAX_SAFE_INTEGER) {\n return ((n % 1) === 0 ? n : MathFloor(n));\n }\n return defaultVal;\n}\n\nfunction _copy(source\x2C target\x2C targetStart\x2C sourceStart\x2C sourceEnd) {\n if (!isUint8Array(source))\n throw new ERR_INVALID_ARG_TYPE('source'\x2C ['Buffer'\x2C 'Uint8Array']\x2C source);\n if (!isUint8Array(target))\n throw new ERR_INVALID_ARG_TYPE('target'\x2C ['Buffer'\x2C 'Uint8Array']\x2C target);\n\n if (targetStart === undefined) {\n targetStart = 0;\n } else {\n targetStart = toInteger(targetStart\x2C 0);\n if (targetStart < 0)\n throw new ERR_OUT_OF_RANGE('targetStart'\x2C '>= 0'\x2C targetStart);\n }\n\n if (sourceStart === undefined) {\n sourceStart = 0;\n } else {\n sourceStart = toInteger(sourceStart\x2C 0);\n if (sourceStart < 0)\n throw new ERR_OUT_OF_RANGE('sourceStart'\x2C '>= 0'\x2C sourceStart);\n }\n\n if (sourceEnd === undefined) {\n sourceEnd = source.length;\n } else {\n sourceEnd = toInteger(sourceEnd\x2C 0);\n if (sourceEnd < 0)\n throw new ERR_OUT_OF_RANGE('sourceEnd'\x2C '>= 0'\x2C sourceEnd);\n }\n\n if (targetStart >= target.length || sourceStart >= sourceEnd)\n return 0;\n\n if (sourceStart > source.length) {\n throw new ERR_OUT_OF_RANGE('sourceStart'\x2C\n `<= ${source.length}`\x2C\n sourceStart);\n }\n\n return _copyActual(source\x2C target\x2C targetStart\x2C sourceStart\x2C sourceEnd);\n}\n\nfunction _copyActual(source\x2C target\x2C targetStart\x2C sourceStart\x2C sourceEnd) {\n if (sourceEnd - sourceStart > target.length - targetStart)\n sourceEnd = sourceStart + target.length - targetStart;\n\n let nb = sourceEnd - sourceStart;\n const sourceLen = source.length - sourceStart;\n if (nb > sourceLen)\n nb = sourceLen;\n\n if (sourceStart !== 0 || sourceEnd < source.length)\n source = new Uint8Array(source.buffer\x2C source.byteOffset + sourceStart\x2C nb);\n\n TypedArrayPrototypeSet(target\x2C source\x2C targetStart);\n\n return nb;\n}\n\n/**\n * The Buffer() constructor is deprecated in documentation and should not be\n * used moving forward. Rather\x2C developers should use one of the three new\n * factory APIs: Buffer.from()\x2C Buffer.allocUnsafe() or Buffer.alloc() based on\n * their specific needs. There is no runtime deprecation because of the extent\n * to which the Buffer constructor is used in the ecosystem currently -- a\n * runtime deprecation would introduce too much breakage at this time. It's not\n * likely that the Buffer constructors would ever actually be removed.\n * Deprecation Code: DEP0005\n */\nfunction Buffer(arg\x2C encodingOrOffset\x2C length) {\n showFlaggedDeprecation();\n // Common case.\n if (typeof arg === 'number') {\n if (typeof encodingOrOffset === 'string') {\n throw new ERR_INVALID_ARG_TYPE('string'\x2C 'string'\x2C arg);\n }\n return Buffer.alloc(arg);\n }\n return Buffer.from(arg\x2C encodingOrOffset\x2C length);\n}\n\nObjectDefineProperty(Buffer\x2C SymbolSpecies\x2C {\n enumerable: false\x2C\n configurable: true\x2C\n get() { return FastBuffer; }\n});\n\n/**\n * Functionally equivalent to Buffer(arg\x2C encoding) but throws a TypeError\n * if value is a number.\n * Buffer.from(str[\x2C encoding])\n * Buffer.from(array)\n * Buffer.from(buffer)\n * Buffer.from(arrayBuffer[\x2C byteOffset[\x2C length]])\n */\nBuffer.from = function from(value\x2C encodingOrOffset\x2C length) {\n if (typeof value === 'string')\n return fromString(value\x2C encodingOrOffset);\n\n if (typeof value === 'object' && value !== null) {\n if (isAnyArrayBuffer(value))\n return fromArrayBuffer(value\x2C encodingOrOffset\x2C length);\n\n const valueOf = value.valueOf && value.valueOf();\n if (valueOf != null &&\n valueOf !== value &&\n (typeof valueOf === 'string' || typeof valueOf === 'object')) {\n return from(valueOf\x2C encodingOrOffset\x2C length);\n }\n\n const b = fromObject(value);\n if (b)\n return b;\n\n if (typeof value[SymbolToPrimitive] === 'function') {\n const primitive = value[SymbolToPrimitive]('string');\n if (typeof primitive === 'string') {\n return fromString(primitive\x2C encodingOrOffset);\n }\n }\n }\n\n throw new ERR_INVALID_ARG_TYPE(\n 'first argument'\x2C\n ['string'\x2C 'Buffer'\x2C 'ArrayBuffer'\x2C 'Array'\x2C 'Array-like Object']\x2C\n value\n );\n};\n\n// Identical to the built-in %TypedArray%.of()\x2C but avoids using the deprecated\n// Buffer() constructor. Must use arrow function syntax to avoid automatically\n// adding a `prototype` property and making the function a constructor.\n//\n// Refs: https://tc39.github.io/ecma262/#sec-%typedarray%.of\n// Refs: https://esdiscuss.org/topic/isconstructor#content-11\nconst of = (...items) => {\n const newObj = createUnsafeBuffer(items.length);\n for (let k = 0; k < items.length; k++)\n newObj[k] = items[k];\n return newObj;\n};\nBuffer.of = of;\n\nObjectSetPrototypeOf(Buffer\x2C Uint8Array);\n\n// The 'assertSize' method will remove itself from the callstack when an error\n// occurs. This is done simply to keep the internal details of the\n// implementation from bleeding out to users.\nconst assertSize = hideStackFrames((size) => {\n validateNumber(size\x2C 'size');\n if (!(size >= 0 && size <= kMaxLength)) {\n throw new ERR_INVALID_ARG_VALUE.RangeError('size'\x2C size);\n }\n});\n\n/**\n * Creates a new filled Buffer instance.\n * alloc(size[\x2C fill[\x2C encoding]])\n */\nBuffer.alloc = function alloc(size\x2C fill\x2C encoding) {\n assertSize(size);\n if (fill !== undefined && fill !== 0 && size > 0) {\n const buf = createUnsafeBuffer(size);\n return _fill(buf\x2C fill\x2C 0\x2C buf.length\x2C encoding);\n }\n return new FastBuffer(size);\n};\n\n/**\n * Equivalent to Buffer(num)\x2C by default creates a non-zero-filled Buffer\n * instance. If `--zero-fill-buffers` is set\x2C will zero-fill the buffer.\n */\nBuffer.allocUnsafe = function allocUnsafe(size) {\n assertSize(size);\n return allocate(size);\n};\n\n/**\n * Equivalent to SlowBuffer(num)\x2C by default creates a non-zero-filled\n * Buffer instance that is not allocated off the pre-initialized pool.\n * If `--zero-fill-buffers` is set\x2C will zero-fill the buffer.\n */\nBuffer.allocUnsafeSlow = function allocUnsafeSlow(size) {\n assertSize(size);\n return createUnsafeBuffer(size);\n};\n\n// If --zero-fill-buffers command line argument is set\x2C a zero-filled\n// buffer is returned.\nfunction SlowBuffer(length) {\n assertSize(length);\n return createUnsafeBuffer(length);\n}\n\nObjectSetPrototypeOf(SlowBuffer.prototype\x2C Uint8ArrayPrototype);\nObjectSetPrototypeOf(SlowBuffer\x2C Uint8Array);\n\nfunction allocate(size) {\n if (size <= 0) {\n return new FastBuffer();\n }\n if (size < (Buffer.poolSize >>> 1)) {\n if (size > (poolSize - poolOffset))\n createPool();\n const b = new FastBuffer(allocPool\x2C poolOffset\x2C size);\n poolOffset += size;\n alignPool();\n return b;\n }\n return createUnsafeBuffer(size);\n}\n\nfunction fromStringFast(string\x2C ops) {\n const length = ops.byteLength(string);\n\n if (length >= (Buffer.poolSize >>> 1))\n return createFromString(string\x2C ops.encodingVal);\n\n if (length > (poolSize - poolOffset))\n createPool();\n let b = new FastBuffer(allocPool\x2C poolOffset\x2C length);\n const actual = ops.write(b\x2C string\x2C 0\x2C length);\n if (actual !== length) {\n // byteLength() may overestimate. That's a rare case\x2C though.\n b = new FastBuffer(allocPool\x2C poolOffset\x2C actual);\n }\n poolOffset += actual;\n alignPool();\n return b;\n}\n\nfunction fromString(string\x2C encoding) {\n let ops;\n if (typeof encoding !== 'string' || encoding.length === 0) {\n if (string.length === 0)\n return new FastBuffer();\n ops = encodingOps.utf8;\n encoding = undefined;\n } else {\n ops = getEncodingOps(encoding);\n if (ops === undefined)\n throw new ERR_UNKNOWN_ENCODING(encoding);\n if (string.length === 0)\n return new FastBuffer();\n }\n return fromStringFast(string\x2C ops);\n}\n\nfunction fromArrayBuffer(obj\x2C byteOffset\x2C length) {\n // Convert byteOffset to integer\n if (byteOffset === undefined) {\n byteOffset = 0;\n } else {\n byteOffset = +byteOffset;\n if (NumberIsNaN(byteOffset))\n byteOffset = 0;\n }\n\n const maxLength = obj.byteLength - byteOffset;\n\n if (maxLength < 0)\n throw new ERR_BUFFER_OUT_OF_BOUNDS('offset');\n\n if (length === undefined) {\n length = maxLength;\n } else {\n // Convert length to non-negative integer.\n length = +length;\n if (length > 0) {\n if (length > maxLength)\n throw new ERR_BUFFER_OUT_OF_BOUNDS('length');\n } else {\n length = 0;\n }\n }\n\n return new FastBuffer(obj\x2C byteOffset\x2C length);\n}\n\nfunction fromArrayLike(obj) {\n if (obj.length <= 0)\n return new FastBuffer();\n if (obj.length < (Buffer.poolSize >>> 1)) {\n if (obj.length > (poolSize - poolOffset))\n createPool();\n const b = new FastBuffer(allocPool\x2C poolOffset\x2C obj.length);\n TypedArrayPrototypeSet(b\x2C obj\x2C 0);\n poolOffset += obj.length;\n alignPool();\n return b;\n }\n return new FastBuffer(obj);\n}\n\nfunction fromObject(obj) {\n if (obj.length !== undefined || isAnyArrayBuffer(obj.buffer)) {\n if (typeof obj.length !== 'number') {\n return new FastBuffer();\n }\n return fromArrayLike(obj);\n }\n\n if (obj.type === 'Buffer' && ArrayIsArray(obj.data)) {\n return fromArrayLike(obj.data);\n }\n}\n\n// Static methods\n\nBuffer.isBuffer = function isBuffer(b) {\n return b instanceof Buffer;\n};\n\nBuffer.compare = function compare(buf1\x2C buf2) {\n if (!isUint8Array(buf1)) {\n throw new ERR_INVALID_ARG_TYPE('buf1'\x2C ['Buffer'\x2C 'Uint8Array']\x2C buf1);\n }\n\n if (!isUint8Array(buf2)) {\n throw new ERR_INVALID_ARG_TYPE('buf2'\x2C ['Buffer'\x2C 'Uint8Array']\x2C buf2);\n }\n\n if (buf1 === buf2) {\n return 0;\n }\n\n return _compare(buf1\x2C buf2);\n};\n\nBuffer.isEncoding = function isEncoding(encoding) {\n return typeof encoding === 'string' && encoding.length !== 0 &&\n normalizeEncoding(encoding) !== undefined;\n};\nBuffer[kIsEncodingSymbol] = Buffer.isEncoding;\n\nBuffer.concat = function concat(list\x2C length) {\n validateArray(list\x2C 'list');\n\n if (list.length === 0)\n return new FastBuffer();\n\n if (length === undefined) {\n length = 0;\n for (let i = 0; i < list.length; i++) {\n if (list[i].length) {\n length += list[i].length;\n }\n }\n } else {\n validateOffset(length\x2C 'length');\n }\n\n const buffer = Buffer.allocUnsafe(length);\n let pos = 0;\n for (let i = 0; i < list.length; i++) {\n const buf = list[i];\n if (!isUint8Array(buf)) {\n // TODO(BridgeAR): This should not be of type ERR_INVALID_ARG_TYPE.\n // Instead\x2C find the proper error code for this.\n throw new ERR_INVALID_ARG_TYPE(\n `list[${i}]`\x2C ['Buffer'\x2C 'Uint8Array']\x2C list[i]);\n }\n pos += _copyActual(buf\x2C buffer\x2C pos\x2C 0\x2C buf.length);\n }\n\n // Note: `length` is always equal to `buffer.length` at this point\n if (pos < length) {\n // Zero-fill the remaining bytes if the specified `length` was more than\n // the actual total length\x2C i.e. if we have some remaining allocated bytes\n // there were not initialized.\n TypedArrayPrototypeFill(buffer\x2C 0\x2C pos\x2C length);\n }\n\n return buffer;\n};\n\nfunction base64ByteLength(str\x2C bytes) {\n // Handle padding\n if (StringPrototypeCharCodeAt(str\x2C bytes - 1) === 0x3D)\n bytes--;\n if (bytes > 1 && StringPrototypeCharCodeAt(str\x2C bytes - 1) === 0x3D)\n bytes--;\n\n // Base64 ratio: 3/4\n return (bytes * 3) >>> 2;\n}\n\nconst encodingOps = {\n utf8: {\n encoding: 'utf8'\x2C\n encodingVal: encodingsMap.utf8\x2C\n byteLength: byteLengthUtf8\x2C\n write: (buf\x2C string\x2C offset\x2C len) => buf.utf8Write(string\x2C offset\x2C len)\x2C\n slice: (buf\x2C start\x2C end) => buf.utf8Slice(start\x2C end)\x2C\n indexOf: (buf\x2C val\x2C byteOffset\x2C dir) =>\n indexOfString(buf\x2C val\x2C byteOffset\x2C encodingsMap.utf8\x2C dir)\n }\x2C\n ucs2: {\n encoding: 'ucs2'\x2C\n encodingVal: encodingsMap.utf16le\x2C\n byteLength: (string) => string.length * 2\x2C\n write: (buf\x2C string\x2C offset\x2C len) => buf.ucs2Write(string\x2C offset\x2C len)\x2C\n slice: (buf\x2C start\x2C end) => buf.ucs2Slice(start\x2C end)\x2C\n indexOf: (buf\x2C val\x2C byteOffset\x2C dir) =>\n indexOfString(buf\x2C val\x2C byteOffset\x2C encodingsMap.utf16le\x2C dir)\n }\x2C\n utf16le: {\n encoding: 'utf16le'\x2C\n encodingVal: encodingsMap.utf16le\x2C\n byteLength: (string) => string.length * 2\x2C\n write: (buf\x2C string\x2C offset\x2C len) => buf.ucs2Write(string\x2C offset\x2C len)\x2C\n slice: (buf\x2C start\x2C end) => buf.ucs2Slice(start\x2C end)\x2C\n indexOf: (buf\x2C val\x2C byteOffset\x2C dir) =>\n indexOfString(buf\x2C val\x2C byteOffset\x2C encodingsMap.utf16le\x2C dir)\n }\x2C\n latin1: {\n encoding: 'latin1'\x2C\n encodingVal: encodingsMap.latin1\x2C\n byteLength: (string) => string.length\x2C\n write: (buf\x2C string\x2C offset\x2C len) => buf.latin1Write(string\x2C offset\x2C len)\x2C\n slice: (buf\x2C start\x2C end) => buf.latin1Slice(start\x2C end)\x2C\n indexOf: (buf\x2C val\x2C byteOffset\x2C dir) =>\n indexOfString(buf\x2C val\x2C byteOffset\x2C encodingsMap.latin1\x2C dir)\n }\x2C\n ascii: {\n encoding: 'ascii'\x2C\n encodingVal: encodingsMap.ascii\x2C\n byteLength: (string) => string.length\x2C\n write: (buf\x2C string\x2C offset\x2C len) => buf.asciiWrite(string\x2C offset\x2C len)\x2C\n slice: (buf\x2C start\x2C end) => buf.asciiSlice(start\x2C end)\x2C\n indexOf: (buf\x2C val\x2C byteOffset\x2C dir) =>\n indexOfBuffer(buf\x2C\n fromStringFast(val\x2C encodingOps.ascii)\x2C\n byteOffset\x2C\n encodingsMap.ascii\x2C\n dir)\n }\x2C\n base64: {\n encoding: 'base64'\x2C\n encodingVal: encodingsMap.base64\x2C\n byteLength: (string) => base64ByteLength(string\x2C string.length)\x2C\n write: (buf\x2C string\x2C offset\x2C len) => buf.base64Write(string\x2C offset\x2C len)\x2C\n slice: (buf\x2C start\x2C end) => buf.base64Slice(start\x2C end)\x2C\n indexOf: (buf\x2C val\x2C byteOffset\x2C dir) =>\n indexOfBuffer(buf\x2C\n fromStringFast(val\x2C encodingOps.base64)\x2C\n byteOffset\x2C\n encodingsMap.base64\x2C\n dir)\n }\x2C\n base64url: {\n encoding: 'base64url'\x2C\n encodingVal: encodingsMap.base64url\x2C\n byteLength: (string) => base64ByteLength(string\x2C string.length)\x2C\n write: (buf\x2C string\x2C offset\x2C len) =>\n buf.base64urlWrite(string\x2C offset\x2C len)\x2C\n slice: (buf\x2C start\x2C end) => buf.base64urlSlice(start\x2C end)\x2C\n indexOf: (buf\x2C val\x2C byteOffset\x2C dir) =>\n indexOfBuffer(buf\x2C\n fromStringFast(val\x2C encodingOps.base64url)\x2C\n byteOffset\x2C\n encodingsMap.base64url\x2C\n dir)\n }\x2C\n hex: {\n encoding: 'hex'\x2C\n encodingVal: encodingsMap.hex\x2C\n byteLength: (string) => string.length >>> 1\x2C\n write: (buf\x2C string\x2C offset\x2C len) => buf.hexWrite(string\x2C offset\x2C len)\x2C\n slice: (buf\x2C start\x2C end) => buf.hexSlice(start\x2C end)\x2C\n indexOf: (buf\x2C val\x2C byteOffset\x2C dir) =>\n indexOfBuffer(buf\x2C\n fromStringFast(val\x2C encodingOps.hex)\x2C\n byteOffset\x2C\n encodingsMap.hex\x2C\n dir)\n }\n};\nfunction getEncodingOps(encoding) {\n encoding += '';\n switch (encoding.length) {\n case 4:\n if (encoding === 'utf8') return encodingOps.utf8;\n if (encoding === 'ucs2') return encodingOps.ucs2;\n encoding = StringPrototypeToLowerCase(encoding);\n if (encoding === 'utf8') return encodingOps.utf8;\n if (encoding === 'ucs2') return encodingOps.ucs2;\n break;\n case 5:\n if (encoding === 'utf-8') return encodingOps.utf8;\n if (encoding === 'ascii') return encodingOps.ascii;\n if (encoding === 'ucs-2') return encodingOps.ucs2;\n encoding = StringPrototypeToLowerCase(encoding);\n if (encoding === 'utf-8') return encodingOps.utf8;\n if (encoding === 'ascii') return encodingOps.ascii;\n if (encoding === 'ucs-2') return encodingOps.ucs2;\n break;\n case 7:\n if (encoding === 'utf16le' ||\n StringPrototypeToLowerCase(encoding) === 'utf16le')\n return encodingOps.utf16le;\n break;\n case 8:\n if (encoding === 'utf-16le' ||\n StringPrototypeToLowerCase(encoding) === 'utf-16le')\n return encodingOps.utf16le;\n break;\n case 6:\n if (encoding === 'latin1' || encoding === 'binary')\n return encodingOps.latin1;\n if (encoding === 'base64') return encodingOps.base64;\n encoding = StringPrototypeToLowerCase(encoding);\n if (encoding === 'latin1' || encoding === 'binary')\n return encodingOps.latin1;\n if (encoding === 'base64') return encodingOps.base64;\n break;\n case 3:\n if (encoding === 'hex' || StringPrototypeToLowerCase(encoding) === 'hex')\n return encodingOps.hex;\n break;\n case 9:\n if (encoding === 'base64url' ||\n StringPrototypeToLowerCase(encoding) === 'base64url')\n return encodingOps.base64url;\n break;\n }\n}\n\nfunction byteLength(string\x2C encoding) {\n if (typeof string !== 'string') {\n if (isArrayBufferView(string) || isAnyArrayBuffer(string)) {\n return string.byteLength;\n }\n\n throw new ERR_INVALID_ARG_TYPE(\n 'string'\x2C ['string'\x2C 'Buffer'\x2C 'ArrayBuffer']\x2C string\n );\n }\n\n const len = string.length;\n const mustMatch = (arguments.length > 2 && arguments[2] === true);\n if (!mustMatch && len === 0)\n return 0;\n\n if (!encoding)\n return (mustMatch ? -1 : byteLengthUtf8(string));\n\n const ops = getEncodingOps(encoding);\n if (ops === undefined)\n return (mustMatch ? -1 : byteLengthUtf8(string));\n return ops.byteLength(string);\n}\n\nBuffer.byteLength = byteLength;\n\n// For backwards compatibility.\nObjectDefineProperty(Buffer.prototype\x2C 'parent'\x2C {\n enumerable: true\x2C\n get() {\n if (!(this instanceof Buffer))\n return undefined;\n return this.buffer;\n }\n});\nObjectDefineProperty(Buffer.prototype\x2C 'offset'\x2C {\n enumerable: true\x2C\n get() {\n if (!(this instanceof Buffer))\n return undefined;\n return this.byteOffset;\n }\n});\n\nBuffer.prototype.copy =\n function copy(target\x2C targetStart\x2C sourceStart\x2C sourceEnd) {\n return _copy(this\x2C target\x2C targetStart\x2C sourceStart\x2C sourceEnd);\n };\n\n// No need to verify that "buf.length <= MAX_UINT32" since it's a read-only\n// property of a typed array.\n// This behaves neither like String nor Uint8Array in that we set start/end\n// to their upper/lower bounds if the value passed is out of range.\nBuffer.prototype.toString = function toString(encoding\x2C start\x2C end) {\n if (arguments.length === 0) {\n return this.utf8Slice(0\x2C this.length);\n }\n\n const len = this.length;\n\n if (start <= 0)\n start = 0;\n else if (start >= len)\n return '';\n else\n start |= 0;\n\n if (end === undefined || end > len)\n end = len;\n else\n end |= 0;\n\n if (end <= start)\n return '';\n\n if (encoding === undefined)\n return this.utf8Slice(start\x2C end);\n\n const ops = getEncodingOps(encoding);\n if (ops === undefined)\n throw new ERR_UNKNOWN_ENCODING(encoding);\n\n return ops.slice(this\x2C start\x2C end);\n};\n\nBuffer.prototype.equals = function equals(otherBuffer) {\n if (!isUint8Array(otherBuffer)) {\n throw new ERR_INVALID_ARG_TYPE(\n 'otherBuffer'\x2C ['Buffer'\x2C 'Uint8Array']\x2C otherBuffer);\n }\n\n if (this === otherBuffer)\n return true;\n\n if (this.byteLength !== otherBuffer.byteLength)\n return false;\n\n return this.byteLength === 0 || _compare(this\x2C otherBuffer) === 0;\n};\n\nlet INSPECT_MAX_BYTES = 50;\n// Override how buffers are presented by util.inspect().\nBuffer.prototype[customInspectSymbol] = function inspect(recurseTimes\x2C ctx) {\n const max = INSPECT_MAX_BYTES;\n const actualMax = MathMin(max\x2C this.length);\n const remaining = this.length - max;\n let str = StringPrototypeTrim(StringPrototypeReplace(\n this.hexSlice(0\x2C actualMax)\x2C /(.{2})/g\x2C '$1 '));\n if (remaining > 0)\n str += ` ... ${remaining} more byte${remaining > 1 ? 's' : ''}`;\n // Inspect special properties as well\x2C if possible.\n if (ctx) {\n let extras = false;\n const filter = ctx.showHidden ? ALL_PROPERTIES : ONLY_ENUMERABLE;\n const obj = ObjectCreate(null);\n ArrayPrototypeForEach(getOwnNonIndexProperties(this\x2C filter)\x2C\n (key) => {\n extras = true;\n obj[key] = this[key];\n });\n if (extras) {\n if (this.length !== 0)\n str += '\x2C ';\n // '[Object: null prototype] {'.length === 26\n // This is guarded with a test.\n str += StringPrototypeSlice(utilInspect(obj\x2C {\n ...ctx\x2C\n breakLength: Infinity\x2C\n compact: true\n })\x2C 27\x2C -2);\n }\n }\n return `<${this.constructor.name} ${str}>`;\n};\nBuffer.prototype.inspect = Buffer.prototype[customInspectSymbol];\n\nBuffer.prototype.compare = function compare(target\x2C\n targetStart\x2C\n targetEnd\x2C\n sourceStart\x2C\n sourceEnd) {\n if (!isUint8Array(target)) {\n throw new ERR_INVALID_ARG_TYPE('target'\x2C ['Buffer'\x2C 'Uint8Array']\x2C target);\n }\n if (arguments.length === 1)\n return _compare(this\x2C target);\n\n if (targetStart === undefined)\n targetStart = 0;\n else\n validateOffset(targetStart\x2C 'targetStart');\n\n if (targetEnd === undefined)\n targetEnd = target.length;\n else\n validateOffset(targetEnd\x2C 'targetEnd'\x2C 0\x2C target.length);\n\n if (sourceStart === undefined)\n sourceStart = 0;\n else\n validateOffset(sourceStart\x2C 'sourceStart');\n\n if (sourceEnd === undefined)\n sourceEnd = this.length;\n else\n validateOffset(sourceEnd\x2C 'sourceEnd'\x2C 0\x2C this.length);\n\n if (sourceStart >= sourceEnd)\n return (targetStart >= targetEnd ? 0 : -1);\n if (targetStart >= targetEnd)\n return 1;\n\n return compareOffset(this\x2C target\x2C targetStart\x2C sourceStart\x2C targetEnd\x2C\n sourceEnd);\n};\n\n// Finds either the first index of `val` in `buffer` at offset >= `byteOffset`\x2C\n// OR the last index of `val` in `buffer` at offset <= `byteOffset`.\n//\n// Arguments:\n// - buffer - a Buffer to search\n// - val - a string\x2C Buffer\x2C or number\n// - byteOffset - an index into `buffer`; will be clamped to an int32\n// - encoding - an optional encoding\x2C relevant if val is a string\n// - dir - true for indexOf\x2C false for lastIndexOf\nfunction bidirectionalIndexOf(buffer\x2C val\x2C byteOffset\x2C encoding\x2C dir) {\n validateBuffer(buffer);\n\n if (typeof byteOffset === 'string') {\n encoding = byteOffset;\n byteOffset = undefined;\n } else if (byteOffset > 0x7fffffff) {\n byteOffset = 0x7fffffff;\n } else if (byteOffset < -0x80000000) {\n byteOffset = -0x80000000;\n }\n // Coerce to Number. Values like null and [] become 0.\n byteOffset = +byteOffset;\n // If the offset is undefined\x2C "foo"\x2C {}\x2C coerces to NaN\x2C search whole buffer.\n if (NumberIsNaN(byteOffset)) {\n byteOffset = dir ? 0 : (buffer.length || buffer.byteLength);\n }\n dir = !!dir; // Cast to bool.\n\n if (typeof val === 'number')\n return indexOfNumber(buffer\x2C val >>> 0\x2C byteOffset\x2C dir);\n\n let ops;\n if (encoding === undefined)\n ops = encodingOps.utf8;\n else\n ops = getEncodingOps(encoding);\n\n if (typeof val === 'string') {\n if (ops === undefined)\n throw new ERR_UNKNOWN_ENCODING(encoding);\n return ops.indexOf(buffer\x2C val\x2C byteOffset\x2C dir);\n }\n\n if (isUint8Array(val)) {\n const encodingVal =\n (ops === undefined ? encodingsMap.utf8 : ops.encodingVal);\n return indexOfBuffer(buffer\x2C val\x2C byteOffset\x2C encodingVal\x2C dir);\n }\n\n throw new ERR_INVALID_ARG_TYPE(\n 'value'\x2C ['number'\x2C 'string'\x2C 'Buffer'\x2C 'Uint8Array']\x2C val\n );\n}\n\nBuffer.prototype.indexOf = function indexOf(val\x2C byteOffset\x2C encoding) {\n return bidirectionalIndexOf(this\x2C val\x2C byteOffset\x2C encoding\x2C true);\n};\n\nBuffer.prototype.lastIndexOf = function lastIndexOf(val\x2C byteOffset\x2C encoding) {\n return bidirectionalIndexOf(this\x2C val\x2C byteOffset\x2C encoding\x2C false);\n};\n\nBuffer.prototype.includes = function includes(val\x2C byteOffset\x2C encoding) {\n return this.indexOf(val\x2C byteOffset\x2C encoding) !== -1;\n};\n\n// Usage:\n// buffer.fill(number[\x2C offset[\x2C end]])\n// buffer.fill(buffer[\x2C offset[\x2C end]])\n// buffer.fill(string[\x2C offset[\x2C end]][\x2C encoding])\nBuffer.prototype.fill = function fill(value\x2C offset\x2C end\x2C encoding) {\n return _fill(this\x2C value\x2C offset\x2C end\x2C encoding);\n};\n\nfunction _fill(buf\x2C value\x2C offset\x2C end\x2C encoding) {\n if (typeof value === 'string') {\n if (offset === undefined || typeof offset === 'string') {\n encoding = offset;\n offset = 0;\n end = buf.length;\n } else if (typeof end === 'string') {\n encoding = end;\n end = buf.length;\n }\n\n const normalizedEncoding = normalizeEncoding(encoding);\n if (normalizedEncoding === undefined) {\n validateString(encoding\x2C 'encoding');\n throw new ERR_UNKNOWN_ENCODING(encoding);\n }\n\n if (value.length === 0) {\n // If value === '' default to zero.\n value = 0;\n } else if (value.length === 1) {\n // Fast path: If `value` fits into a single byte\x2C use that numeric value.\n if (normalizedEncoding === 'utf8') {\n const code = StringPrototypeCharCodeAt(value\x2C 0);\n if (code < 128) {\n value = code;\n }\n } else if (normalizedEncoding === 'latin1') {\n value = StringPrototypeCharCodeAt(value\x2C 0);\n }\n }\n } else {\n encoding = undefined;\n }\n\n if (offset === undefined) {\n offset = 0;\n end = buf.length;\n } else {\n validateOffset(offset\x2C 'offset');\n // Invalid ranges are not set to a default\x2C so can range check early.\n if (end === undefined) {\n end = buf.length;\n } else {\n validateOffset(end\x2C 'end'\x2C 0\x2C buf.length);\n }\n if (offset >= end)\n return buf;\n }\n\n\n if (typeof value === 'number') {\n // OOB check\n const byteLen = TypedArrayPrototypeGetByteLength(buf);\n const fillLength = end - offset;\n if (offset > end || fillLength + offset > byteLen)\n throw new ERR_BUFFER_OUT_OF_BOUNDS();\n\n TypedArrayPrototypeFill(buf\x2C value\x2C offset\x2C end);\n } else {\n const res = bindingFill(buf\x2C value\x2C offset\x2C end\x2C encoding);\n if (res < 0) {\n if (res === -1)\n throw new ERR_INVALID_ARG_VALUE('value'\x2C value);\n throw new ERR_BUFFER_OUT_OF_BOUNDS();\n }\n }\n\n return buf;\n}\n\nBuffer.prototype.write = function write(string\x2C offset\x2C length\x2C encoding) {\n // Buffer#write(string);\n if (offset === undefined) {\n return this.utf8Write(string\x2C 0\x2C this.length);\n }\n // Buffer#write(string\x2C encoding)\n if (length === undefined && typeof offset === 'string') {\n encoding = offset;\n length = this.length;\n offset = 0;\n\n // Buffer#write(string\x2C offset[\x2C length][\x2C encoding])\n } else {\n validateOffset(offset\x2C 'offset'\x2C 0\x2C this.length);\n\n const remaining = this.length - offset;\n\n if (length === undefined) {\n length = remaining;\n } else if (typeof length === 'string') {\n encoding = length;\n length = remaining;\n } else {\n validateOffset(length\x2C 'length'\x2C 0\x2C this.length);\n if (length > remaining)\n length = remaining;\n }\n }\n\n if (!encoding)\n return this.utf8Write(string\x2C offset\x2C length);\n\n const ops = getEncodingOps(encoding);\n if (ops === undefined)\n throw new ERR_UNKNOWN_ENCODING(encoding);\n return ops.write(this\x2C string\x2C offset\x2C length);\n};\n\nBuffer.prototype.toJSON = function toJSON() {\n if (this.length > 0) {\n const data = new Array(this.length);\n for (let i = 0; i < this.length; ++i)\n data[i] = this[i];\n return { type: 'Buffer'\x2C data };\n }\n return { type: 'Buffer'\x2C data: [] };\n};\n\nfunction adjustOffset(offset\x2C length) {\n // Use Math.trunc() to convert offset to an integer value that can be larger\n // than an Int32. Hence\x2C don't use offset | 0 or similar techniques.\n offset = MathTrunc(offset);\n if (offset === 0) {\n return 0;\n }\n if (offset < 0) {\n offset += length;\n return offset > 0 ? offset : 0;\n }\n if (offset < length) {\n return offset;\n }\n return NumberIsNaN(offset) ? 0 : length;\n}\n\nBuffer.prototype.slice = function slice(start\x2C end) {\n const srcLength = this.length;\n start = adjustOffset(start\x2C srcLength);\n end = end !== undefined ? adjustOffset(end\x2C srcLength) : srcLength;\n const newLength = end > start ? end - start : 0;\n return new FastBuffer(this.buffer\x2C this.byteOffset + start\x2C newLength);\n};\n\nfunction swap(b\x2C n\x2C m) {\n const i = b[n];\n b[n] = b[m];\n b[m] = i;\n}\n\nBuffer.prototype.swap16 = function swap16() {\n // For Buffer.length < 128\x2C it's generally faster to\n // do the swap in javascript. For larger buffers\x2C\n // dropping down to the native code is faster.\n const len = this.length;\n if (len % 2 !== 0)\n throw new ERR_INVALID_BUFFER_SIZE('16-bits');\n if (len < 128) {\n for (let i = 0; i < len; i += 2)\n swap(this\x2C i\x2C i + 1);\n return this;\n }\n return _swap16(this);\n};\n\nBuffer.prototype.swap32 = function swap32() {\n // For Buffer.length < 192\x2C it's generally faster to\n // do the swap in javascript. For larger buffers\x2C\n // dropping down to the native code is faster.\n const len = this.length;\n if (len % 4 !== 0)\n throw new ERR_INVALID_BUFFER_SIZE('32-bits');\n if (len < 192) {\n for (let i = 0; i < len; i += 4) {\n swap(this\x2C i\x2C i + 3);\n swap(this\x2C i + 1\x2C i + 2);\n }\n return this;\n }\n return _swap32(this);\n};\n\nBuffer.prototype.swap64 = function swap64() {\n // For Buffer.length < 192\x2C it's generally faster to\n // do the swap in javascript. For larger buffers\x2C\n // dropping down to the native code is faster.\n const len = this.length;\n if (len % 8 !== 0)\n throw new ERR_INVALID_BUFFER_SIZE('64-bits');\n if (len < 192) {\n for (let i = 0; i < len; i += 8) {\n swap(this\x2C i\x2C i + 7);\n swap(this\x2C i + 1\x2C i + 6);\n swap(this\x2C i + 2\x2C i + 5);\n swap(this\x2C i + 3\x2C i + 4);\n }\n return this;\n }\n return _swap64(this);\n};\n\nBuffer.prototype.toLocaleString = Buffer.prototype.toString;\n\nlet transcode;\nif (internalBinding('config').hasIntl) {\n const {\n icuErrName\x2C\n transcode: _transcode\n } = internalBinding('icu');\n\n // Transcodes the Buffer from one encoding to another\x2C returning a new\n // Buffer instance.\n transcode = function transcode(source\x2C fromEncoding\x2C toEncoding) {\n if (!isUint8Array(source)) {\n throw new ERR_INVALID_ARG_TYPE('source'\x2C\n ['Buffer'\x2C 'Uint8Array']\x2C source);\n }\n if (source.length === 0) return Buffer.alloc(0);\n\n fromEncoding = normalizeEncoding(fromEncoding) || fromEncoding;\n toEncoding = normalizeEncoding(toEncoding) || toEncoding;\n const result = _transcode(source\x2C fromEncoding\x2C toEncoding);\n if (typeof result !== 'number')\n return result;\n\n const code = icuErrName(result);\n // eslint-disable-next-line no-restricted-syntax\n const err = new Error(`Unable to transcode Buffer [${code}]`);\n err.code = code;\n err.errno = result;\n throw err;\n };\n}\n\nfunction btoa(input) {\n // The implementation here has not been performance optimized in any way and\n // should not be.\n // Refs: https://github.com/nodejs/node/pull/38433#issuecomment-828426932\n input = `${input}`;\n for (let n = 0; n < input.length; n++) {\n if (input[n].charCodeAt(0) > 0xff)\n throw lazyDOMException('Invalid character'\x2C 'InvalidCharacterError');\n }\n const buf = Buffer.from(input\x2C 'latin1');\n return buf.toString('base64');\n}\n\nconst kBase64Digits =\n 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';\n\nfunction atob(input) {\n // The implementation here has not been performance optimized in any way and\n // should not be.\n // Refs: https://github.com/nodejs/node/pull/38433#issuecomment-828426932\n input = `${input}`;\n for (let n = 0; n < input.length; n++) {\n if (!kBase64Digits.includes(input[n]))\n throw lazyDOMException('Invalid character'\x2C 'InvalidCharacterError');\n }\n return Buffer.from(input\x2C 'base64').toString('latin1');\n}\n\nmodule.exports = {\n Blob\x2C\n Buffer\x2C\n SlowBuffer\x2C\n transcode\x2C\n // Legacy\n kMaxLength\x2C\n kStringMaxLength\x2C\n btoa\x2C\n atob\x2C\n};\n\nObjectDefineProperties(module.exports\x2C {\n constants: {\n configurable: false\x2C\n enumerable: true\x2C\n value: constants\n }\x2C\n INSPECT_MAX_BYTES: {\n configurable: true\x2C\n enumerable: true\x2C\n get() { return INSPECT_MAX_BYTES; }\x2C\n set(val) { INSPECT_MAX_BYTES = val; }\n }\n});\n
code-source-info,0xce7fc61b726,18,8386,9337,C3O8424C9O8459C12O8466C17O8502C18O8506C28O8561C33O8565C39O8596C51O8603C56O8652C57O8680C63O8697C68O8697C73O8712C78O8751C95O8842C104O8849C109O8889C110O8911C113O8911C118O8934C120O8947C122O8956C123O8962C125O8979C127O8978C134O9040C136O9046C138O9045C145O9064C151O9082C155O9127C158O9134C163O9174C164O9196C182O9202C187O9196,,
tick,0x7f4debd4cf02,33198,0,0x0,3,0x11e9ce0,0xce7fc61a8d9,0xa52511ba45d,0xa52511b972d,0xce7fc61724c,0xa52511ba45d,0xa52511b972d,0xce7fc61381a,0xa52511ba45d,0xa52511b972d,0xce7fc6121b0,0xa52511ba45d,0xa52511b972d,0xce7fc606373,0xa52511ba45d,0xa52511b972d,0xce7fc601335,0xa52511ba45d,0xa52511b972d,0xa52511bed5f,0xa52511ba45d,0xa52511b972d,0xa52511b9222
code-creation,LazyCompile,10,33235,0xce7fc61e0fe,110,fromString node:buffer:430:20,0x38b4b3b24d28,~
code-source-info,0xce7fc61e0fe,18,12437,12871,C0O12464C2O12471C8O12516C14O12523C19O12547C25O12554C30O12567C35O12574C40O12591C41O12596C46O12614C51O12624C56O12661C59O12667C64O12697C66O12726C73O12732C78O12726C79O12783C85O12790C90O12803C95O12810C100O12827C101O12834C104O12841C109O12869,,
code-creation,LazyCompile,10,33292,0xce7fc61e2c6,177,fromStringFast node:buffer:411:24,0x38b4b3b24c88,~
code-source-info,0xce7fc61e2c6,18,11893,12416,C0O11930C5O11930C11O11953C14O11975C18O11984C21O11964C26O11996C31O12032C36O12003C41O12045C42O12049C44O12063C49O12074C51O12072C54O12060C59O12091C62O12091C65O12115C72O12130C77O12141C85O12115C91O12183C110O12183C116O12214C118O12225C123O12309C130O12328C135O12339C143O12313C149O12366C156O12380C162O12377C168O12390C171O12390C174O12405C176O12414,,
tick,0x110cb94,33410,0,0x0,3,0x11e9ce0,0xce7fc61e31b,0xce7fc61e166,0xce7fc61b732,0xce7fc61a8d9,0xa52511ba45d,0xa52511b972d,0xce7fc61724c,0xa52511ba45d,0xa52511b972d,0xce7fc61381a,0xa52511ba45d,0xa52511b972d,0xce7fc6121b0,0xa52511ba45d,0xa52511b972d,0xce7fc606373,0xa52511ba45d,0xa52511b972d,0xce7fc601335,0xa52511ba45d,0xa52511b972d,0xa52511bed5f,0xa52511ba45d,0xa52511b972d,0xa52511b9222
code-creation,LazyCompile,10,33426,0xce7fc61e4c6,36,FastBuffer node:internal/buffer:958:14,0x38b4b3b31850,~
script-source,19,node:internal/buffer,'use strict';\n\nconst {\n BigInt\x2C\n Float32Array\x2C\n Float64Array\x2C\n MathFloor\x2C\n Number\x2C\n Uint8Array\x2C\n} = primordials;\n\nconst {\n ERR_BUFFER_OUT_OF_BOUNDS\x2C\n ERR_INVALID_ARG_TYPE\x2C\n ERR_OUT_OF_RANGE\n} = require('internal/errors').codes;\nconst { validateNumber } = require('internal/validators');\nconst {\n asciiSlice\x2C\n base64Slice\x2C\n base64urlSlice\x2C\n latin1Slice\x2C\n hexSlice\x2C\n ucs2Slice\x2C\n utf8Slice\x2C\n asciiWrite\x2C\n base64Write\x2C\n base64urlWrite\x2C\n latin1Write\x2C\n hexWrite\x2C\n ucs2Write\x2C\n utf8Write\x2C\n getZeroFillToggle\n} = internalBinding('buffer');\nconst {\n untransferable_object_private_symbol\x2C\n setHiddenValue\x2C\n} = internalBinding('util');\n\n// Temporary buffers to convert numbers.\nconst float32Array = new Float32Array(1);\nconst uInt8Float32Array = new Uint8Array(float32Array.buffer);\nconst float64Array = new Float64Array(1);\nconst uInt8Float64Array = new Uint8Array(float64Array.buffer);\n\n// Check endianness.\nfloat32Array[0] = -1; // 0xBF800000\n// Either it is [0\x2C 0\x2C 128\x2C 191] or [191\x2C 128\x2C 0\x2C 0]. It is not possible to\n// check this with `os.endianness()` because that is determined at compile time.\nconst bigEndian = uInt8Float32Array[3] === 0;\n\nfunction checkBounds(buf\x2C offset\x2C byteLength) {\n validateNumber(offset\x2C 'offset');\n if (buf[offset] === undefined || buf[offset + byteLength] === undefined)\n boundsError(offset\x2C buf.length - (byteLength + 1));\n}\n\nfunction checkInt(value\x2C min\x2C max\x2C buf\x2C offset\x2C byteLength) {\n if (value > max || value < min) {\n const n = typeof min === 'bigint' ? 'n' : '';\n let range;\n if (byteLength > 3) {\n if (min === 0 || min === 0n) {\n range = `>= 0${n} and < 2${n} ** ${(byteLength + 1) * 8}${n}`;\n } else {\n range = `>= -(2${n} ** ${(byteLength + 1) * 8 - 1}${n}) and ` +\n `< 2${n} ** ${(byteLength + 1) * 8 - 1}${n}`;\n }\n } else {\n range = `>= ${min}${n} and <= ${max}${n}`;\n }\n throw new ERR_OUT_OF_RANGE('value'\x2C range\x2C value);\n }\n checkBounds(buf\x2C offset\x2C byteLength);\n}\n\nfunction boundsError(value\x2C length\x2C type) {\n if (MathFloor(value) !== value) {\n validateNumber(value\x2C type);\n throw new ERR_OUT_OF_RANGE(type || 'offset'\x2C 'an integer'\x2C value);\n }\n\n if (length < 0)\n throw new ERR_BUFFER_OUT_OF_BOUNDS();\n\n throw new ERR_OUT_OF_RANGE(type || 'offset'\x2C\n `>= ${type ? 1 : 0} and <= ${length}`\x2C\n value);\n}\n\n// Read integers.\nfunction readBigUInt64LE(offset = 0) {\n validateNumber(offset\x2C 'offset');\n const first = this[offset];\n const last = this[offset + 7];\n if (first === undefined || last === undefined)\n boundsError(offset\x2C this.length - 8);\n\n const lo = first +\n this[++offset] * 2 ** 8 +\n this[++offset] * 2 ** 16 +\n this[++offset] * 2 ** 24;\n\n const hi = this[++offset] +\n this[++offset] * 2 ** 8 +\n this[++offset] * 2 ** 16 +\n last * 2 ** 24;\n\n return BigInt(lo) + (BigInt(hi) << 32n);\n}\n\nfunction readBigUInt64BE(offset = 0) {\n validateNumber(offset\x2C 'offset');\n const first = this[offset];\n const last = this[offset + 7];\n if (first === undefined || last === undefined)\n boundsError(offset\x2C this.length - 8);\n\n const hi = first * 2 ** 24 +\n this[++offset] * 2 ** 16 +\n this[++offset] * 2 ** 8 +\n this[++offset];\n\n const lo = this[++offset] * 2 ** 24 +\n this[++offset] * 2 ** 16 +\n this[++offset] * 2 ** 8 +\n last;\n\n return (BigInt(hi) << 32n) + BigInt(lo);\n}\n\nfunction readBigInt64LE(offset = 0) {\n validateNumber(offset\x2C 'offset');\n const first = this[offset];\n const last = this[offset + 7];\n if (first === undefined || last === undefined)\n boundsError(offset\x2C this.length - 8);\n\n const val = this[offset + 4] +\n this[offset + 5] * 2 ** 8 +\n this[offset + 6] * 2 ** 16 +\n (last << 24); // Overflow\n return (BigInt(val) << 32n) +\n BigInt(first +\n this[++offset] * 2 ** 8 +\n this[++offset] * 2 ** 16 +\n this[++offset] * 2 ** 24);\n}\n\nfunction readBigInt64BE(offset = 0) {\n validateNumber(offset\x2C 'offset');\n const first = this[offset];\n const last = this[offset + 7];\n if (first === undefined || last === undefined)\n boundsError(offset\x2C this.length - 8);\n\n const val = (first << 24) + // Overflow\n this[++offset] * 2 ** 16 +\n this[++offset] * 2 ** 8 +\n this[++offset];\n return (BigInt(val) << 32n) +\n BigInt(this[++offset] * 2 ** 24 +\n this[++offset] * 2 ** 16 +\n this[++offset] * 2 ** 8 +\n last);\n}\n\nfunction readUIntLE(offset\x2C byteLength) {\n if (offset === undefined)\n throw new ERR_INVALID_ARG_TYPE('offset'\x2C 'number'\x2C offset);\n if (byteLength === 6)\n return readUInt48LE(this\x2C offset);\n if (byteLength === 5)\n return readUInt40LE(this\x2C offset);\n if (byteLength === 3)\n return readUInt24LE(this\x2C offset);\n if (byteLength === 4)\n return this.readUInt32LE(offset);\n if (byteLength === 2)\n return this.readUInt16LE(offset);\n if (byteLength === 1)\n return this.readUInt8(offset);\n\n boundsError(byteLength\x2C 6\x2C 'byteLength');\n}\n\nfunction readUInt48LE(buf\x2C offset = 0) {\n validateNumber(offset\x2C 'offset');\n const first = buf[offset];\n const last = buf[offset + 5];\n if (first === undefined || last === undefined)\n boundsError(offset\x2C buf.length - 6);\n\n return first +\n buf[++offset] * 2 ** 8 +\n buf[++offset] * 2 ** 16 +\n buf[++offset] * 2 ** 24 +\n (buf[++offset] + last * 2 ** 8) * 2 ** 32;\n}\n\nfunction readUInt40LE(buf\x2C offset = 0) {\n validateNumber(offset\x2C 'offset');\n const first = buf[offset];\n const last = buf[offset + 4];\n if (first === undefined || last === undefined)\n boundsError(offset\x2C buf.length - 5);\n\n return first +\n buf[++offset] * 2 ** 8 +\n buf[++offset] * 2 ** 16 +\n buf[++offset] * 2 ** 24 +\n last * 2 ** 32;\n}\n\nfunction readUInt32LE(offset = 0) {\n validateNumber(offset\x2C 'offset');\n const first = this[offset];\n const last = this[offset + 3];\n if (first === undefined || last === undefined)\n boundsError(offset\x2C this.length - 4);\n\n return first +\n this[++offset] * 2 ** 8 +\n this[++offset] * 2 ** 16 +\n last * 2 ** 24;\n}\n\nfunction readUInt24LE(buf\x2C offset = 0) {\n validateNumber(offset\x2C 'offset');\n const first = buf[offset];\n const last = buf[offset + 2];\n if (first === undefined || last === undefined)\n boundsError(offset\x2C buf.length - 3);\n\n return first + buf[++offset] * 2 ** 8 + last * 2 ** 16;\n}\n\nfunction readUInt16LE(offset = 0) {\n validateNumber(offset\x2C 'offset');\n const first = this[offset];\n const last = this[offset + 1];\n if (first === undefined || last === undefined)\n boundsError(offset\x2C this.length - 2);\n\n return first + last * 2 ** 8;\n}\n\nfunction readUInt8(offset = 0) {\n validateNumber(offset\x2C 'offset');\n const val = this[offset];\n if (val === undefined)\n boundsError(offset\x2C this.length - 1);\n\n return val;\n}\n\nfunction readUIntBE(offset\x2C byteLength) {\n if (offset === undefined)\n throw new ERR_INVALID_ARG_TYPE('offset'\x2C 'number'\x2C offset);\n if (byteLength === 6)\n return readUInt48BE(this\x2C offset);\n if (byteLength === 5)\n return readUInt40BE(this\x2C offset);\n if (byteLength === 3)\n return readUInt24BE(this\x2C offset);\n if (byteLength === 4)\n return this.readUInt32BE(offset);\n if (byteLength === 2)\n return this.readUInt16BE(offset);\n if (byteLength === 1)\n return this.readUInt8(offset);\n\n boundsError(byteLength\x2C 6\x2C 'byteLength');\n}\n\nfunction readUInt48BE(buf\x2C offset = 0) {\n validateNumber(offset\x2C 'offset');\n const first = buf[offset];\n const last = buf[offset + 5];\n if (first === undefined || last === undefined)\n boundsError(offset\x2C buf.length - 6);\n\n return (first * 2 ** 8 + buf[++offset]) * 2 ** 32 +\n buf[++offset] * 2 ** 24 +\n buf[++offset] * 2 ** 16 +\n buf[++offset] * 2 ** 8 +\n last;\n}\n\nfunction readUInt40BE(buf\x2C offset = 0) {\n validateNumber(offset\x2C 'offset');\n const first = buf[offset];\n const last = buf[offset + 4];\n if (first === undefined || last === undefined)\n boundsError(offset\x2C buf.length - 5);\n\n return first * 2 ** 32 +\n buf[++offset] * 2 ** 24 +\n buf[++offset] * 2 ** 16 +\n buf[++offset] * 2 ** 8 +\n last;\n}\n\nfunction readUInt32BE(offset = 0) {\n validateNumber(offset\x2C 'offset');\n const first = this[offset];\n const last = this[offset + 3];\n if (first === undefined || last === undefined)\n boundsError(offset\x2C this.length - 4);\n\n return first * 2 ** 24 +\n this[++offset] * 2 ** 16 +\n this[++offset] * 2 ** 8 +\n last;\n}\n\nfunction readUInt24BE(buf\x2C offset = 0) {\n validateNumber(offset\x2C 'offset');\n const first = buf[offset];\n const last = buf[offset + 2];\n if (first === undefined || last === undefined)\n boundsError(offset\x2C buf.length - 3);\n\n return first * 2 ** 16 + buf[++offset] * 2 ** 8 + last;\n}\n\nfunction readUInt16BE(offset = 0) {\n validateNumber(offset\x2C 'offset');\n const first = this[offset];\n const last = this[offset + 1];\n if (first === undefined || last === undefined)\n boundsError(offset\x2C this.length - 2);\n\n return first * 2 ** 8 + last;\n}\n\nfunction readIntLE(offset\x2C byteLength) {\n if (offset === undefined)\n throw new ERR_INVALID_ARG_TYPE('offset'\x2C 'number'\x2C offset);\n if (byteLength === 6)\n return readInt48LE(this\x2C offset);\n if (byteLength === 5)\n return readInt40LE(this\x2C offset);\n if (byteLength === 3)\n return readInt24LE(this\x2C offset);\n if (byteLength === 4)\n return this.readInt32LE(offset);\n if (byteLength === 2)\n return this.readInt16LE(offset);\n if (byteLength === 1)\n return this.readInt8(offset);\n\n boundsError(byteLength\x2C 6\x2C 'byteLength');\n}\n\nfunction readInt48LE(buf\x2C offset = 0) {\n validateNumber(offset\x2C 'offset');\n const first = buf[offset];\n const last = buf[offset + 5];\n if (first === undefined || last === undefined)\n boundsError(offset\x2C buf.length - 6);\n\n const val = buf[offset + 4] + last * 2 ** 8;\n return (val | (val & 2 ** 15) * 0x1fffe) * 2 ** 32 +\n first +\n buf[++offset] * 2 ** 8 +\n buf[++offset] * 2 ** 16 +\n buf[++offset] * 2 ** 24;\n}\n\nfunction readInt40LE(buf\x2C offset = 0) {\n validateNumber(offset\x2C 'offset');\n const first = buf[offset];\n const last = buf[offset + 4];\n if (first === undefined || last === undefined)\n boundsError(offset\x2C buf.length - 5);\n\n return (last | (last & 2 ** 7) * 0x1fffffe) * 2 ** 32 +\n first +\n buf[++offset] * 2 ** 8 +\n buf[++offset] * 2 ** 16 +\n buf[++offset] * 2 ** 24;\n}\n\nfunction readInt32LE(offset = 0) {\n validateNumber(offset\x2C 'offset');\n const first = this[offset];\n const last = this[offset + 3];\n if (first === undefined || last === undefined)\n boundsError(offset\x2C this.length - 4);\n\n return first +\n this[++offset] * 2 ** 8 +\n this[++offset] * 2 ** 16 +\n (last << 24); // Overflow\n}\n\nfunction readInt24LE(buf\x2C offset = 0) {\n validateNumber(offset\x2C 'offset');\n const first = buf[offset];\n const last = buf[offset + 2];\n if (first === undefined || last === undefined)\n boundsError(offset\x2C buf.length - 3);\n\n const val = first + buf[++offset] * 2 ** 8 + last * 2 ** 16;\n return val | (val & 2 ** 23) * 0x1fe;\n}\n\nfunction readInt16LE(offset = 0) {\n validateNumber(offset\x2C 'offset');\n const first = this[offset];\n const last = this[offset + 1];\n if (first === undefined || last === undefined)\n boundsError(offset\x2C this.length - 2);\n\n const val = first + last * 2 ** 8;\n return val | (val & 2 ** 15) * 0x1fffe;\n}\n\nfunction readInt8(offset = 0) {\n validateNumber(offset\x2C 'offset');\n const val = this[offset];\n if (val === undefined)\n boundsError(offset\x2C this.length - 1);\n\n return val | (val & 2 ** 7) * 0x1fffffe;\n}\n\nfunction readIntBE(offset\x2C byteLength) {\n if (offset === undefined)\n throw new ERR_INVALID_ARG_TYPE('offset'\x2C 'number'\x2C offset);\n if (byteLength === 6)\n return readInt48BE(this\x2C offset);\n if (byteLength === 5)\n return readInt40BE(this\x2C offset);\n if (byteLength === 3)\n return readInt24BE(this\x2C offset);\n if (byteLength === 4)\n return this.readInt32BE(offset);\n if (byteLength === 2)\n return this.readInt16BE(offset);\n if (byteLength === 1)\n return this.readInt8(offset);\n\n boundsError(byteLength\x2C 6\x2C 'byteLength');\n}\n\nfunction readInt48BE(buf\x2C offset = 0) {\n validateNumber(offset\x2C 'offset');\n const first = buf[offset];\n const last = buf[offset + 5];\n if (first === undefined || last === undefined)\n boundsError(offset\x2C buf.length - 6);\n\n const val = buf[++offset] + first * 2 ** 8;\n return (val | (val & 2 ** 15) * 0x1fffe) * 2 ** 32 +\n buf[++offset] * 2 ** 24 +\n buf[++offset] * 2 ** 16 +\n buf[++offset] * 2 ** 8 +\n last;\n}\n\nfunction readInt40BE(buf\x2C offset = 0) {\n validateNumber(offset\x2C 'offset');\n const first = buf[offset];\n const last = buf[offset + 4];\n if (first === undefined || last === undefined)\n boundsError(offset\x2C buf.length - 5);\n\n return (first | (first & 2 ** 7) * 0x1fffffe) * 2 ** 32 +\n buf[++offset] * 2 ** 24 +\n buf[++offset] * 2 ** 16 +\n buf[++offset] * 2 ** 8 +\n last;\n}\n\nfunction readInt32BE(offset = 0) {\n validateNumber(offset\x2C 'offset');\n const first = this[offset];\n const last = this[offset + 3];\n if (first === undefined || last === undefined)\n boundsError(offset\x2C this.length - 4);\n\n return (first << 24) + // Overflow\n this[++offset] * 2 ** 16 +\n this[++offset] * 2 ** 8 +\n last;\n}\n\nfunction readInt24BE(buf\x2C offset = 0) {\n validateNumber(offset\x2C 'offset');\n const first = buf[offset];\n const last = buf[offset + 2];\n if (first === undefined || last === undefined)\n boundsError(offset\x2C buf.length - 3);\n\n const val = first * 2 ** 16 + buf[++offset] * 2 ** 8 + last;\n return val | (val & 2 ** 23) * 0x1fe;\n}\n\nfunction readInt16BE(offset = 0) {\n validateNumber(offset\x2C 'offset');\n const first = this[offset];\n const last = this[offset + 1];\n if (first === undefined || last === undefined)\n boundsError(offset\x2C this.length - 2);\n\n const val = first * 2 ** 8 + last;\n return val | (val & 2 ** 15) * 0x1fffe;\n}\n\n// Read floats\nfunction readFloatBackwards(offset = 0) {\n validateNumber(offset\x2C 'offset');\n const first = this[offset];\n const last = this[offset + 3];\n if (first === undefined || last === undefined)\n boundsError(offset\x2C this.length - 4);\n\n uInt8Float32Array[3] = first;\n uInt8Float32Array[2] = this[++offset];\n uInt8Float32Array[1] = this[++offset];\n uInt8Float32Array[0] = last;\n return float32Array[0];\n}\n\nfunction readFloatForwards(offset = 0) {\n validateNumber(offset\x2C 'offset');\n const first = this[offset];\n const last = this[offset + 3];\n if (first === undefined || last === undefined)\n boundsError(offset\x2C this.length - 4);\n\n uInt8Float32Array[0] = first;\n uInt8Float32Array[1] = this[++offset];\n uInt8Float32Array[2] = this[++offset];\n uInt8Float32Array[3] = last;\n return float32Array[0];\n}\n\nfunction readDoubleBackwards(offset = 0) {\n validateNumber(offset\x2C 'offset');\n const first = this[offset];\n const last = this[offset + 7];\n if (first === undefined || last === undefined)\n boundsError(offset\x2C this.length - 8);\n\n uInt8Float64Array[7] = first;\n uInt8Float64Array[6] = this[++offset];\n uInt8Float64Array[5] = this[++offset];\n uInt8Float64Array[4] = this[++offset];\n uInt8Float64Array[3] = this[++offset];\n uInt8Float64Array[2] = this[++offset];\n uInt8Float64Array[1] = this[++offset];\n uInt8Float64Array[0] = last;\n return float64Array[0];\n}\n\nfunction readDoubleForwards(offset = 0) {\n validateNumber(offset\x2C 'offset');\n const first = this[offset];\n const last = this[offset + 7];\n if (first === undefined || last === undefined)\n boundsError(offset\x2C this.length - 8);\n\n uInt8Float64Array[0] = first;\n uInt8Float64Array[1] = this[++offset];\n uInt8Float64Array[2] = this[++offset];\n uInt8Float64Array[3] = this[++offset];\n uInt8Float64Array[4] = this[++offset];\n uInt8Float64Array[5] = this[++offset];\n uInt8Float64Array[6] = this[++offset];\n uInt8Float64Array[7] = last;\n return float64Array[0];\n}\n\n// Write integers.\nfunction writeBigU_Int64LE(buf\x2C value\x2C offset\x2C min\x2C max) {\n checkInt(value\x2C min\x2C max\x2C buf\x2C offset\x2C 7);\n\n let lo = Number(value & 0xffffffffn);\n buf[offset++] = lo;\n lo = lo >> 8;\n buf[offset++] = lo;\n lo = lo >> 8;\n buf[offset++] = lo;\n lo = lo >> 8;\n buf[offset++] = lo;\n let hi = Number(value >> 32n & 0xffffffffn);\n buf[offset++] = hi;\n hi = hi >> 8;\n buf[offset++] = hi;\n hi = hi >> 8;\n buf[offset++] = hi;\n hi = hi >> 8;\n buf[offset++] = hi;\n return offset;\n}\n\nfunction writeBigUInt64LE(value\x2C offset = 0) {\n return writeBigU_Int64LE(this\x2C value\x2C offset\x2C 0n\x2C 0xffffffffffffffffn);\n}\n\nfunction writeBigU_Int64BE(buf\x2C value\x2C offset\x2C min\x2C max) {\n checkInt(value\x2C min\x2C max\x2C buf\x2C offset\x2C 7);\n\n let lo = Number(value & 0xffffffffn);\n buf[offset + 7] = lo;\n lo = lo >> 8;\n buf[offset + 6] = lo;\n lo = lo >> 8;\n buf[offset + 5] = lo;\n lo = lo >> 8;\n buf[offset + 4] = lo;\n let hi = Number(value >> 32n & 0xffffffffn);\n buf[offset + 3] = hi;\n hi = hi >> 8;\n buf[offset + 2] = hi;\n hi = hi >> 8;\n buf[offset + 1] = hi;\n hi = hi >> 8;\n buf[offset] = hi;\n return offset + 8;\n}\n\nfunction writeBigUInt64BE(value\x2C offset = 0) {\n return writeBigU_Int64BE(this\x2C value\x2C offset\x2C 0n\x2C 0xffffffffffffffffn);\n}\n\nfunction writeBigInt64LE(value\x2C offset = 0) {\n return writeBigU_Int64LE(\n this\x2C value\x2C offset\x2C -0x8000000000000000n\x2C 0x7fffffffffffffffn);\n}\n\nfunction writeBigInt64BE(value\x2C offset = 0) {\n return writeBigU_Int64BE(\n this\x2C value\x2C offset\x2C -0x8000000000000000n\x2C 0x7fffffffffffffffn);\n}\n\nfunction writeUIntLE(value\x2C offset\x2C byteLength) {\n if (byteLength === 6)\n return writeU_Int48LE(this\x2C value\x2C offset\x2C 0\x2C 0xffffffffffff);\n if (byteLength === 5)\n return writeU_Int40LE(this\x2C value\x2C offset\x2C 0\x2C 0xffffffffff);\n if (byteLength === 3)\n return writeU_Int24LE(this\x2C value\x2C offset\x2C 0\x2C 0xffffff);\n if (byteLength === 4)\n return writeU_Int32LE(this\x2C value\x2C offset\x2C 0\x2C 0xffffffff);\n if (byteLength === 2)\n return writeU_Int16LE(this\x2C value\x2C offset\x2C 0\x2C 0xffff);\n if (byteLength === 1)\n return writeU_Int8(this\x2C value\x2C offset\x2C 0\x2C 0xff);\n\n boundsError(byteLength\x2C 6\x2C 'byteLength');\n}\n\nfunction writeU_Int48LE(buf\x2C value\x2C offset\x2C min\x2C max) {\n value = +value;\n checkInt(value\x2C min\x2C max\x2C buf\x2C offset\x2C 5);\n\n const newVal = MathFloor(value * 2 ** -32);\n buf[offset++] = value;\n value = value >>> 8;\n buf[offset++] = value;\n value = value >>> 8;\n buf[offset++] = value;\n value = value >>> 8;\n buf[offset++] = value;\n buf[offset++] = newVal;\n buf[offset++] = (newVal >>> 8);\n return offset;\n}\n\nfunction writeU_Int40LE(buf\x2C value\x2C offset\x2C min\x2C max) {\n value = +value;\n checkInt(value\x2C min\x2C max\x2C buf\x2C offset\x2C 4);\n\n const newVal = value;\n buf[offset++] = value;\n value = value >>> 8;\n buf[offset++] = value;\n value = value >>> 8;\n buf[offset++] = value;\n value = value >>> 8;\n buf[offset++] = value;\n buf[offset++] = MathFloor(newVal * 2 ** -32);\n return offset;\n}\n\nfunction writeU_Int32LE(buf\x2C value\x2C offset\x2C min\x2C max) {\n value = +value;\n checkInt(value\x2C min\x2C max\x2C buf\x2C offset\x2C 3);\n\n buf[offset++] = value;\n value = value >>> 8;\n buf[offset++] = value;\n value = value >>> 8;\n buf[offset++] = value;\n value = value >>> 8;\n buf[offset++] = value;\n return offset;\n}\n\nfunction writeUInt32LE(value\x2C offset = 0) {\n return writeU_Int32LE(this\x2C value\x2C offset\x2C 0\x2C 0xffffffff);\n}\n\nfunction writeU_Int24LE(buf\x2C value\x2C offset\x2C min\x2C max) {\n value = +value;\n checkInt(value\x2C min\x2C max\x2C buf\x2C offset\x2C 2);\n\n buf[offset++] = value;\n value = value >>> 8;\n buf[offset++] = value;\n value = value >>> 8;\n buf[offset++] = value;\n return offset;\n}\n\nfunction writeU_Int16LE(buf\x2C value\x2C offset\x2C min\x2C max) {\n value = +value;\n checkInt(value\x2C min\x2C max\x2C buf\x2C offset\x2C 1);\n\n buf[offset++] = value;\n buf[offset++] = (value >>> 8);\n return offset;\n}\n\nfunction writeUInt16LE(value\x2C offset = 0) {\n return writeU_Int16LE(this\x2C value\x2C offset\x2C 0\x2C 0xffff);\n}\n\nfunction writeU_Int8(buf\x2C value\x2C offset\x2C min\x2C max) {\n value = +value;\n // `checkInt()` can not be used here because it checks two entries.\n validateNumber(offset\x2C 'offset');\n if (value > max || value < min) {\n throw new ERR_OUT_OF_RANGE('value'\x2C `>= ${min} and <= ${max}`\x2C value);\n }\n if (buf[offset] === undefined)\n boundsError(offset\x2C buf.length - 1);\n\n buf[offset] = value;\n return offset + 1;\n}\n\nfunction writeUInt8(value\x2C offset = 0) {\n return writeU_Int8(this\x2C value\x2C offset\x2C 0\x2C 0xff);\n}\n\nfunction writeUIntBE(value\x2C offset\x2C byteLength) {\n if (byteLength === 6)\n return writeU_Int48BE(this\x2C value\x2C offset\x2C 0\x2C 0xffffffffffff);\n if (byteLength === 5)\n return writeU_Int40BE(this\x2C value\x2C offset\x2C 0\x2C 0xffffffffff);\n if (byteLength === 3)\n return writeU_Int24BE(this\x2C value\x2C offset\x2C 0\x2C 0xffffff);\n if (byteLength === 4)\n return writeU_Int32BE(this\x2C value\x2C offset\x2C 0\x2C 0xffffffff);\n if (byteLength === 2)\n return writeU_Int16BE(this\x2C value\x2C offset\x2C 0\x2C 0xffff);\n if (byteLength === 1)\n return writeU_Int8(this\x2C value\x2C offset\x2C 0\x2C 0xff);\n\n boundsError(byteLength\x2C 6\x2C 'byteLength');\n}\n\nfunction writeU_Int48BE(buf\x2C value\x2C offset\x2C min\x2C max) {\n value = +value;\n checkInt(value\x2C min\x2C max\x2C buf\x2C offset\x2C 5);\n\n const newVal = MathFloor(value * 2 ** -32);\n buf[offset++] = (newVal >>> 8);\n buf[offset++] = newVal;\n buf[offset + 3] = value;\n value = value >>> 8;\n buf[offset + 2] = value;\n value = value >>> 8;\n buf[offset + 1] = value;\n value = value >>> 8;\n buf[offset] = value;\n return offset + 4;\n}\n\nfunction writeU_Int40BE(buf\x2C value\x2C offset\x2C min\x2C max) {\n value = +value;\n checkInt(value\x2C min\x2C max\x2C buf\x2C offset\x2C 4);\n\n buf[offset++] = MathFloor(value * 2 ** -32);\n buf[offset + 3] = value;\n value = value >>> 8;\n buf[offset + 2] = value;\n value = value >>> 8;\n buf[offset + 1] = value;\n value = value >>> 8;\n buf[offset] = value;\n return offset + 4;\n}\n\nfunction writeU_Int32BE(buf\x2C value\x2C offset\x2C min\x2C max) {\n value = +value;\n checkInt(value\x2C min\x2C max\x2C buf\x2C offset\x2C 3);\n\n buf[offset + 3] = value;\n value = value >>> 8;\n buf[offset + 2] = value;\n value = value >>> 8;\n buf[offset + 1] = value;\n value = value >>> 8;\n buf[offset] = value;\n return offset + 4;\n}\n\nfunction writeUInt32BE(value\x2C offset = 0) {\n return writeU_Int32BE(this\x2C value\x2C offset\x2C 0\x2C 0xffffffff);\n}\n\nfunction writeU_Int24BE(buf\x2C value\x2C offset\x2C min\x2C max) {\n value = +value;\n checkInt(value\x2C min\x2C max\x2C buf\x2C offset\x2C 2);\n\n buf[offset + 2] = value;\n value = value >>> 8;\n buf[offset + 1] = value;\n value = value >>> 8;\n buf[offset] = value;\n return offset + 3;\n}\n\nfunction writeU_Int16BE(buf\x2C value\x2C offset\x2C min\x2C max) {\n value = +value;\n checkInt(value\x2C min\x2C max\x2C buf\x2C offset\x2C 1);\n\n buf[offset++] = (value >>> 8);\n buf[offset++] = value;\n return offset;\n}\n\nfunction writeUInt16BE(value\x2C offset = 0) {\n return writeU_Int16BE(this\x2C value\x2C offset\x2C 0\x2C 0xffff);\n}\n\nfunction writeIntLE(value\x2C offset\x2C byteLength) {\n if (byteLength === 6)\n return writeU_Int48LE(this\x2C value\x2C offset\x2C -0x800000000000\x2C 0x7fffffffffff);\n if (byteLength === 5)\n return writeU_Int40LE(this\x2C value\x2C offset\x2C -0x8000000000\x2C 0x7fffffffff);\n if (byteLength === 3)\n return writeU_Int24LE(this\x2C value\x2C offset\x2C -0x800000\x2C 0x7fffff);\n if (byteLength === 4)\n return writeU_Int32LE(this\x2C value\x2C offset\x2C -0x80000000\x2C 0x7fffffff);\n if (byteLength === 2)\n return writeU_Int16LE(this\x2C value\x2C offset\x2C -0x8000\x2C 0x7fff);\n if (byteLength === 1)\n return writeU_Int8(this\x2C value\x2C offset\x2C -0x80\x2C 0x7f);\n\n boundsError(byteLength\x2C 6\x2C 'byteLength');\n}\n\nfunction writeInt32LE(value\x2C offset = 0) {\n return writeU_Int32LE(this\x2C value\x2C offset\x2C -0x80000000\x2C 0x7fffffff);\n}\n\nfunction writeInt16LE(value\x2C offset = 0) {\n return writeU_Int16LE(this\x2C value\x2C offset\x2C -0x8000\x2C 0x7fff);\n}\n\nfunction writeInt8(value\x2C offset = 0) {\n return writeU_Int8(this\x2C value\x2C offset\x2C -0x80\x2C 0x7f);\n}\n\nfunction writeIntBE(value\x2C offset\x2C byteLength) {\n if (byteLength === 6)\n return writeU_Int48BE(this\x2C value\x2C offset\x2C -0x800000000000\x2C 0x7fffffffffff);\n if (byteLength === 5)\n return writeU_Int40BE(this\x2C value\x2C offset\x2C -0x8000000000\x2C 0x7fffffffff);\n if (byteLength === 3)\n return writeU_Int24BE(this\x2C value\x2C offset\x2C -0x800000\x2C 0x7fffff);\n if (byteLength === 4)\n return writeU_Int32BE(this\x2C value\x2C offset\x2C -0x80000000\x2C 0x7fffffff);\n if (byteLength === 2)\n return writeU_Int16BE(this\x2C value\x2C offset\x2C -0x8000\x2C 0x7fff);\n if (byteLength === 1)\n return writeU_Int8(this\x2C value\x2C offset\x2C -0x80\x2C 0x7f);\n\n boundsError(byteLength\x2C 6\x2C 'byteLength');\n}\n\nfunction writeInt32BE(value\x2C offset = 0) {\n return writeU_Int32BE(this\x2C value\x2C offset\x2C -0x80000000\x2C 0x7fffffff);\n}\n\nfunction writeInt16BE(value\x2C offset = 0) {\n return writeU_Int16BE(this\x2C value\x2C offset\x2C -0x8000\x2C 0x7fff);\n}\n\n// Write floats.\nfunction writeDoubleForwards(val\x2C offset = 0) {\n val = +val;\n checkBounds(this\x2C offset\x2C 7);\n\n float64Array[0] = val;\n this[offset++] = uInt8Float64Array[0];\n this[offset++] = uInt8Float64Array[1];\n this[offset++] = uInt8Float64Array[2];\n this[offset++] = uInt8Float64Array[3];\n this[offset++] = uInt8Float64Array[4];\n this[offset++] = uInt8Float64Array[5];\n this[offset++] = uInt8Float64Array[6];\n this[offset++] = uInt8Float64Array[7];\n return offset;\n}\n\nfunction writeDoubleBackwards(val\x2C offset = 0) {\n val = +val;\n checkBounds(this\x2C offset\x2C 7);\n\n float64Array[0] = val;\n this[offset++] = uInt8Float64Array[7];\n this[offset++] = uInt8Float64Array[6];\n this[offset++] = uInt8Float64Array[5];\n this[offset++] = uInt8Float64Array[4];\n this[offset++] = uInt8Float64Array[3];\n this[offset++] = uInt8Float64Array[2];\n this[offset++] = uInt8Float64Array[1];\n this[offset++] = uInt8Float64Array[0];\n return offset;\n}\n\nfunction writeFloatForwards(val\x2C offset = 0) {\n val = +val;\n checkBounds(this\x2C offset\x2C 3);\n\n float32Array[0] = val;\n this[offset++] = uInt8Float32Array[0];\n this[offset++] = uInt8Float32Array[1];\n this[offset++] = uInt8Float32Array[2];\n this[offset++] = uInt8Float32Array[3];\n return offset;\n}\n\nfunction writeFloatBackwards(val\x2C offset = 0) {\n val = +val;\n checkBounds(this\x2C offset\x2C 3);\n\n float32Array[0] = val;\n this[offset++] = uInt8Float32Array[3];\n this[offset++] = uInt8Float32Array[2];\n this[offset++] = uInt8Float32Array[1];\n this[offset++] = uInt8Float32Array[0];\n return offset;\n}\n\nclass FastBuffer extends Uint8Array {\n // Using an explicit constructor here is necessary to avoid relying on\n // `Array.prototype[Symbol.iterator]`\x2C which can be mutated by users.\n // eslint-disable-next-line no-useless-constructor\n constructor(bufferOrLength\x2C byteOffset\x2C length) {\n super(bufferOrLength\x2C byteOffset\x2C length);\n }\n}\n\nfunction addBufferPrototypeMethods(proto) {\n proto.readBigUInt64LE = readBigUInt64LE;\n proto.readBigUInt64BE = readBigUInt64BE;\n proto.readBigUint64LE = readBigUInt64LE;\n proto.readBigUint64BE = readBigUInt64BE;\n proto.readBigInt64LE = readBigInt64LE;\n proto.readBigInt64BE = readBigInt64BE;\n proto.writeBigUInt64LE = writeBigUInt64LE;\n proto.writeBigUInt64BE = writeBigUInt64BE;\n proto.writeBigUint64LE = writeBigUInt64LE;\n proto.writeBigUint64BE = writeBigUInt64BE;\n proto.writeBigInt64LE = writeBigInt64LE;\n proto.writeBigInt64BE = writeBigInt64BE;\n\n proto.readUIntLE = readUIntLE;\n proto.readUInt32LE = readUInt32LE;\n proto.readUInt16LE = readUInt16LE;\n proto.readUInt8 = readUInt8;\n proto.readUIntBE = readUIntBE;\n proto.readUInt32BE = readUInt32BE;\n proto.readUInt16BE = readUInt16BE;\n proto.readUintLE = readUIntLE;\n proto.readUint32LE = readUInt32LE;\n proto.readUint16LE = readUInt16LE;\n proto.readUint8 = readUInt8;\n proto.readUintBE = readUIntBE;\n proto.readUint32BE = readUInt32BE;\n proto.readUint16BE = readUInt16BE;\n proto.readIntLE = readIntLE;\n proto.readInt32LE = readInt32LE;\n proto.readInt16LE = readInt16LE;\n proto.readInt8 = readInt8;\n proto.readIntBE = readIntBE;\n proto.readInt32BE = readInt32BE;\n proto.readInt16BE = readInt16BE;\n\n proto.writeUIntLE = writeUIntLE;\n proto.writeUInt32LE = writeUInt32LE;\n proto.writeUInt16LE = writeUInt16LE;\n proto.writeUInt8 = writeUInt8;\n proto.writeUIntBE = writeUIntBE;\n proto.writeUInt32BE = writeUInt32BE;\n proto.writeUInt16BE = writeUInt16BE;\n proto.writeUintLE = writeUIntLE;\n proto.writeUint32LE = writeUInt32LE;\n proto.writeUint16LE = writeUInt16LE;\n proto.writeUint8 = writeUInt8;\n proto.writeUintBE = writeUIntBE;\n proto.writeUint32BE = writeUInt32BE;\n proto.writeUint16BE = writeUInt16BE;\n proto.writeIntLE = writeIntLE;\n proto.writeInt32LE = writeInt32LE;\n proto.writeInt16LE = writeInt16LE;\n proto.writeInt8 = writeInt8;\n proto.writeIntBE = writeIntBE;\n proto.writeInt32BE = writeInt32BE;\n proto.writeInt16BE = writeInt16BE;\n\n proto.readFloatLE = bigEndian ? readFloatBackwards : readFloatForwards;\n proto.readFloatBE = bigEndian ? readFloatForwards : readFloatBackwards;\n proto.readDoubleLE = bigEndian ? readDoubleBackwards : readDoubleForwards;\n proto.readDoubleBE = bigEndian ? readDoubleForwards : readDoubleBackwards;\n proto.writeFloatLE = bigEndian ? writeFloatBackwards : writeFloatForwards;\n proto.writeFloatBE = bigEndian ? writeFloatForwards : writeFloatBackwards;\n proto.writeDoubleLE = bigEndian ? writeDoubleBackwards : writeDoubleForwards;\n proto.writeDoubleBE = bigEndian ? writeDoubleForwards : writeDoubleBackwards;\n\n proto.asciiSlice = asciiSlice;\n proto.base64Slice = base64Slice;\n proto.base64urlSlice = base64urlSlice;\n proto.latin1Slice = latin1Slice;\n proto.hexSlice = hexSlice;\n proto.ucs2Slice = ucs2Slice;\n proto.utf8Slice = utf8Slice;\n proto.asciiWrite = asciiWrite;\n proto.base64Write = base64Write;\n proto.base64urlWrite = base64urlWrite;\n proto.latin1Write = latin1Write;\n proto.hexWrite = hexWrite;\n proto.ucs2Write = ucs2Write;\n proto.utf8Write = utf8Write;\n}\n\n// This would better be placed in internal/worker/io.js\x2C but that doesn't work\n// because Buffer needs this and that would introduce a cyclic dependency.\nfunction markAsUntransferable(obj) {\n if ((typeof obj !== 'object' && typeof obj !== 'function') || obj === null)\n return; // This object is a primitive and therefore already untransferable.\n setHiddenValue(obj\x2C untransferable_object_private_symbol\x2C true);\n}\n\n// A toggle used to access the zero fill setting of the array buffer allocator\n// in C++.\n// |zeroFill| can be undefined when running inside an isolate where we\n// do not own the ArrayBuffer allocator. Zero fill is always on in that case.\nlet zeroFill = getZeroFillToggle();\nfunction createUnsafeBuffer(size) {\n zeroFill[0] = 0;\n try {\n return new FastBuffer(size);\n } finally {\n zeroFill[0] = 1;\n }\n}\n\n// The connection between the JS land zero fill toggle and the\n// C++ one in the NodeArrayBufferAllocator gets lost if the toggle\n// is deserialized from the snapshot\x2C because V8 owns the underlying\n// memory of this toggle. This resets the connection.\nfunction reconnectZeroFillToggle() {\n zeroFill = getZeroFillToggle();\n}\n\nmodule.exports = {\n FastBuffer\x2C\n addBufferPrototypeMethods\x2C\n markAsUntransferable\x2C\n createUnsafeBuffer\x2C\n readUInt16BE\x2C\n readUInt32BE\x2C\n reconnectZeroFillToggle\n};\n
code-source-info,0xce7fc61e4c6,19,26364,26453,C3O26407C7O26441C20O26407C35O26452,,
tick,0x7f4debe4c917,34761,0,0x0,3,0x11e9ce0,0xce7fc61e31b,0xce7fc61e166,0xce7fc61b732,0xce7fc61a8d9,0xa52511ba45d,0xa52511b972d,0xce7fc61724c,0xa52511ba45d,0xa52511b972d,0xce7fc61381a,0xa52511ba45d,0xa52511b972d,0xce7fc6121b0,0xa52511ba45d,0xa52511b972d,0xce7fc606373,0xa52511ba45d,0xa52511b972d,0xce7fc601335,0xa52511ba45d,0xa52511b972d,0xa52511bed5f,0xa52511ba45d,0xa52511b972d,0xa52511b9222
code-creation,LazyCompile,10,34795,0xce7fc6207ce,23,write node:buffer:591:12,0x38b4b3b25098,~
code-source-info,0xce7fc6207ce,18,16505,16569,C0O16539C17O16539C22O16569,,
code-creation,LazyCompile,10,34839,0xce7fc6208ce,42,alignPool node:buffer:157:19,0x38b4b3b246c0,~
code-source-info,0xce7fc6208ce,18,3978,4082,C0O4012C4O4027C9O4040C19O4051C25O4063C34O4073C41O4081,,
code-creation,LazyCompile,10,35044,0xce7fc620c9e,238,promisify node:internal/util:303:19,0x334c17f29c10,~
script-source,12,node:internal/util,'use strict';\n\nconst {\n ArrayFrom\x2C\n ArrayIsArray\x2C\n ArrayPrototypePush\x2C\n ArrayPrototypeSlice\x2C\n ArrayPrototypeSort\x2C\n Error\x2C\n ObjectCreate\x2C\n ObjectDefineProperties\x2C\n ObjectDefineProperty\x2C\n ObjectGetOwnPropertyDescriptor\x2C\n ObjectGetOwnPropertyDescriptors\x2C\n ObjectGetPrototypeOf\x2C\n ObjectSetPrototypeOf\x2C\n Promise\x2C\n ReflectApply\x2C\n ReflectConstruct\x2C\n RegExpPrototypeTest\x2C\n SafeMap\x2C\n SafeSet\x2C\n StringPrototypeReplace\x2C\n StringPrototypeToLowerCase\x2C\n StringPrototypeToUpperCase\x2C\n Symbol\x2C\n SymbolFor\x2C\n} = primordials;\n\nconst {\n hideStackFrames\x2C\n codes: {\n ERR_INVALID_ARG_TYPE\x2C\n ERR_NO_CRYPTO\x2C\n ERR_UNKNOWN_SIGNAL\n }\x2C\n uvErrmapGet\x2C\n overrideStackTrace\x2C\n} = require('internal/errors');\nconst { signals } = internalBinding('constants').os;\nconst {\n getHiddenValue\x2C\n setHiddenValue\x2C\n arrow_message_private_symbol: kArrowMessagePrivateSymbolIndex\x2C\n decorated_private_symbol: kDecoratedPrivateSymbolIndex\x2C\n sleep: _sleep\n} = internalBinding('util');\nconst { isNativeError } = internalBinding('types');\n\nconst noCrypto = !process.versions.openssl;\n\nconst experimentalWarnings = new SafeSet();\n\nconst colorRegExp = /\\u001b\\[\\d\\d?m/g; // eslint-disable-line no-control-regex\n\nlet uvBinding;\n\nfunction lazyUv() {\n uvBinding ??= internalBinding('uv');\n return uvBinding;\n}\n\nfunction removeColors(str) {\n return StringPrototypeReplace(str\x2C colorRegExp\x2C '');\n}\n\nfunction isError(e) {\n // An error could be an instance of Error while not being a native error\n // or could be from a different realm and not be instance of Error but still\n // be a native error.\n return isNativeError(e) || e instanceof Error;\n}\n\n// Keep a list of deprecation codes that have been warned on so we only warn on\n// each one once.\nconst codesWarned = new SafeSet();\n\n// Mark that a method should not be used.\n// Returns a modified function which warns once by default.\n// If --no-deprecation is set\x2C then it is a no-op.\nfunction deprecate(fn\x2C msg\x2C code) {\n if (process.noDeprecation === true) {\n return fn;\n }\n\n if (code !== undefined && typeof code !== 'string')\n throw new ERR_INVALID_ARG_TYPE('code'\x2C 'string'\x2C code);\n\n let warned = false;\n function deprecated(...args) {\n if (!warned) {\n warned = true;\n if (code !== undefined) {\n if (!codesWarned.has(code)) {\n process.emitWarning(msg\x2C 'DeprecationWarning'\x2C code\x2C deprecated);\n codesWarned.add(code);\n }\n } else {\n process.emitWarning(msg\x2C 'DeprecationWarning'\x2C deprecated);\n }\n }\n if (new.target) {\n return ReflectConstruct(fn\x2C args\x2C new.target);\n }\n return ReflectApply(fn\x2C this\x2C args);\n }\n\n // The wrapper will keep the same prototype as fn to maintain prototype chain\n ObjectSetPrototypeOf(deprecated\x2C fn);\n if (fn.prototype) {\n // Setting this (rather than using Object.setPrototype\x2C as above) ensures\n // that calling the unwrapped constructor gives an instanceof the wrapped\n // constructor.\n deprecated.prototype = fn.prototype;\n }\n\n return deprecated;\n}\n\nfunction decorateErrorStack(err) {\n if (!(isError(err) && err.stack) ||\n getHiddenValue(err\x2C kDecoratedPrivateSymbolIndex) === true)\n return;\n\n const arrow = getHiddenValue(err\x2C kArrowMessagePrivateSymbolIndex);\n\n if (arrow) {\n err.stack = arrow + err.stack;\n setHiddenValue(err\x2C kDecoratedPrivateSymbolIndex\x2C true);\n }\n}\n\nfunction assertCrypto() {\n if (noCrypto)\n throw new ERR_NO_CRYPTO();\n}\n\n// Return undefined if there is no match.\n// Move the "slow cases" to a separate function to make sure this function gets\n// inlined properly. That prioritizes the common case.\nfunction normalizeEncoding(enc) {\n if (enc == null || enc === 'utf8' || enc === 'utf-8') return 'utf8';\n return slowCases(enc);\n}\n\nfunction slowCases(enc) {\n switch (enc.length) {\n case 4:\n if (enc === 'UTF8') return 'utf8';\n if (enc === 'ucs2' || enc === 'UCS2') return 'utf16le';\n enc = `${enc}`.toLowerCase();\n if (enc === 'utf8') return 'utf8';\n if (enc === 'ucs2') return 'utf16le';\n break;\n case 3:\n if (enc === 'hex' || enc === 'HEX' ||\n `${enc}`.toLowerCase() === 'hex')\n return 'hex';\n break;\n case 5:\n if (enc === 'ascii') return 'ascii';\n if (enc === 'ucs-2') return 'utf16le';\n if (enc === 'UTF-8') return 'utf8';\n if (enc === 'ASCII') return 'ascii';\n if (enc === 'UCS-2') return 'utf16le';\n enc = `${enc}`.toLowerCase();\n if (enc === 'utf-8') return 'utf8';\n if (enc === 'ascii') return 'ascii';\n if (enc === 'ucs-2') return 'utf16le';\n break;\n case 6:\n if (enc === 'base64') return 'base64';\n if (enc === 'latin1' || enc === 'binary') return 'latin1';\n if (enc === 'BASE64') return 'base64';\n if (enc === 'LATIN1' || enc === 'BINARY') return 'latin1';\n enc = `${enc}`.toLowerCase();\n if (enc === 'base64') return 'base64';\n if (enc === 'latin1' || enc === 'binary') return 'latin1';\n break;\n case 7:\n if (enc === 'utf16le' || enc === 'UTF16LE' ||\n `${enc}`.toLowerCase() === 'utf16le')\n return 'utf16le';\n break;\n case 8:\n if (enc === 'utf-16le' || enc === 'UTF-16LE' ||\n `${enc}`.toLowerCase() === 'utf-16le')\n return 'utf16le';\n break;\n case 9:\n if (enc === 'base64url' || enc === 'BASE64URL' ||\n `${enc}`.toLowerCase() === 'base64url')\n return 'base64url';\n break;\n default:\n if (enc === '') return 'utf8';\n }\n}\n\nfunction emitExperimentalWarning(feature) {\n if (experimentalWarnings.has(feature)) return;\n const msg = `${feature} is an experimental feature. This feature could ` +\n 'change at any time';\n experimentalWarnings.add(feature);\n process.emitWarning(msg\x2C 'ExperimentalWarning');\n}\n\nfunction filterDuplicateStrings(items\x2C low) {\n const map = new SafeMap();\n for (let i = 0; i < items.length; i++) {\n const item = items[i];\n const key = StringPrototypeToLowerCase(item);\n if (low) {\n map.set(key\x2C key);\n } else {\n map.set(key\x2C item);\n }\n }\n return ArrayPrototypeSort(ArrayFrom(map.values()));\n}\n\nfunction cachedResult(fn) {\n let result;\n return () => {\n if (result === undefined)\n result = fn();\n return ArrayPrototypeSlice(result);\n };\n}\n\n// Useful for Wrapping an ES6 Class with a constructor Function that\n// does not require the new keyword. For instance:\n// class A { constructor(x) {this.x = x;}}\n// const B = createClassWrapper(A);\n// B() instanceof A // true\n// B() instanceof B // true\nfunction createClassWrapper(type) {\n function fn(...args) {\n return ReflectConstruct(type\x2C args\x2C new.target || type);\n }\n // Mask the wrapper function name and length values\n ObjectDefineProperties(fn\x2C {\n name: { value: type.name }\x2C\n length: { value: type.length }\n });\n ObjectSetPrototypeOf(fn\x2C type);\n fn.prototype = type.prototype;\n return fn;\n}\n\nlet signalsToNamesMapping;\nfunction getSignalsToNamesMapping() {\n if (signalsToNamesMapping !== undefined)\n return signalsToNamesMapping;\n\n signalsToNamesMapping = ObjectCreate(null);\n for (const key in signals) {\n signalsToNamesMapping[signals[key]] = key;\n }\n\n return signalsToNamesMapping;\n}\n\nfunction convertToValidSignal(signal) {\n if (typeof signal === 'number' && getSignalsToNamesMapping()[signal])\n return signal;\n\n if (typeof signal === 'string') {\n const signalName = signals[StringPrototypeToUpperCase(signal)];\n if (signalName) return signalName;\n }\n\n throw new ERR_UNKNOWN_SIGNAL(signal);\n}\n\nfunction getConstructorOf(obj) {\n while (obj) {\n const descriptor = ObjectGetOwnPropertyDescriptor(obj\x2C 'constructor');\n if (descriptor !== undefined &&\n typeof descriptor.value === 'function' &&\n descriptor.value.name !== '') {\n return descriptor.value;\n }\n\n obj = ObjectGetPrototypeOf(obj);\n }\n\n return null;\n}\n\nfunction getSystemErrorName(err) {\n const entry = uvErrmapGet(err);\n return entry ? entry[0] : `Unknown system error ${err}`;\n}\n\nfunction getSystemErrorMap() {\n return lazyUv().getErrorMap();\n}\n\nconst kCustomPromisifiedSymbol = SymbolFor('nodejs.util.promisify.custom');\nconst kCustomPromisifyArgsSymbol = Symbol('customPromisifyArgs');\n\nfunction promisify(original) {\n if (typeof original !== 'function')\n throw new ERR_INVALID_ARG_TYPE('original'\x2C 'Function'\x2C original);\n\n if (original[kCustomPromisifiedSymbol]) {\n const fn = original[kCustomPromisifiedSymbol];\n if (typeof fn !== 'function') {\n throw new ERR_INVALID_ARG_TYPE('util.promisify.custom'\x2C 'Function'\x2C fn);\n }\n return ObjectDefineProperty(fn\x2C kCustomPromisifiedSymbol\x2C {\n value: fn\x2C enumerable: false\x2C writable: false\x2C configurable: true\n });\n }\n\n // Names to create an object from in case the callback receives multiple\n // arguments\x2C e.g. ['bytesRead'\x2C 'buffer'] for fs.read.\n const argumentNames = original[kCustomPromisifyArgsSymbol];\n\n function fn(...args) {\n return new Promise((resolve\x2C reject) => {\n ArrayPrototypePush(args\x2C (err\x2C ...values) => {\n if (err) {\n return reject(err);\n }\n if (argumentNames !== undefined && values.length > 1) {\n const obj = {};\n for (let i = 0; i < argumentNames.length; i++)\n obj[argumentNames[i]] = values[i];\n resolve(obj);\n } else {\n resolve(values[0]);\n }\n });\n ReflectApply(original\x2C this\x2C args);\n });\n }\n\n ObjectSetPrototypeOf(fn\x2C ObjectGetPrototypeOf(original));\n\n ObjectDefineProperty(fn\x2C kCustomPromisifiedSymbol\x2C {\n value: fn\x2C enumerable: false\x2C writable: false\x2C configurable: true\n });\n return ObjectDefineProperties(\n fn\x2C\n ObjectGetOwnPropertyDescriptors(original)\n );\n}\n\npromisify.custom = kCustomPromisifiedSymbol;\n\n// The built-in Array#join is slower in v8 6.0\nfunction join(output\x2C separator) {\n let str = '';\n if (output.length !== 0) {\n const lastIndex = output.length - 1;\n for (let i = 0; i < lastIndex; i++) {\n // It is faster not to use a template string here\n str += output[i];\n str += separator;\n }\n str += output[lastIndex];\n }\n return str;\n}\n\n// As of V8 6.6\x2C depending on the size of the array\x2C this is anywhere\n// between 1.5-10x faster than the two-arg version of Array#splice()\nfunction spliceOne(list\x2C index) {\n for (; index + 1 < list.length; index++)\n list[index] = list[index + 1];\n list.pop();\n}\n\nconst kNodeModulesRE = /^(.*)[\\\\/]node_modules[\\\\/]/;\n\nlet getStructuredStack;\n\nfunction isInsideNodeModules() {\n if (getStructuredStack === undefined) {\n // Lazy-load to avoid a circular dependency.\n const { runInNewContext } = require('vm');\n // Use `runInNewContext()` to get something tamper-proof and\n // side-effect-free. Since this is currently only used for a deprecated API\x2C\n // the perf implications should be okay.\n getStructuredStack = runInNewContext(`(function() {\n try { Error.stackTraceLimit = Infinity; } catch {}\n return function structuredStack() {\n const e = new Error();\n overrideStackTrace.set(e\x2C (err\x2C trace) => trace);\n return e.stack;\n };\n })()`\x2C { overrideStackTrace }\x2C { filename: 'structured-stack' });\n }\n\n const stack = getStructuredStack();\n\n // Iterate over all stack frames and look for the first one not coming\n // from inside Node.js itself:\n if (ArrayIsArray(stack)) {\n for (const frame of stack) {\n const filename = frame.getFileName();\n // If a filename does not start with / or contain \\\x2C\n // it's likely from Node.js core.\n if (!RegExpPrototypeTest(/^\\/|\\\\/\x2C filename))\n continue;\n return RegExpPrototypeTest(kNodeModulesRE\x2C filename);\n }\n }\n return false;\n}\n\nfunction once(callback) {\n let called = false;\n return function(...args) {\n if (called) return;\n called = true;\n ReflectApply(callback\x2C this\x2C args);\n };\n}\n\nlet validateUint32;\n\nfunction sleep(msec) {\n // Lazy-load to avoid a circular dependency.\n if (validateUint32 === undefined)\n ({ validateUint32 } = require('internal/validators'));\n\n validateUint32(msec\x2C 'msec');\n _sleep(msec);\n}\n\nfunction createDeferredPromise() {\n let resolve;\n let reject;\n const promise = new Promise((res\x2C rej) => {\n resolve = res;\n reject = rej;\n });\n\n return { promise\x2C resolve\x2C reject };\n}\n\nlet DOMException;\nconst lazyDOMException = hideStackFrames((message\x2C name) => {\n if (DOMException === undefined)\n DOMException = internalBinding('messaging').DOMException;\n return new DOMException(message\x2C name);\n});\n\nmodule.exports = {\n assertCrypto\x2C\n cachedResult\x2C\n convertToValidSignal\x2C\n createClassWrapper\x2C\n createDeferredPromise\x2C\n decorateErrorStack\x2C\n deprecate\x2C\n emitExperimentalWarning\x2C\n filterDuplicateStrings\x2C\n getConstructorOf\x2C\n getSystemErrorMap\x2C\n getSystemErrorName\x2C\n isError\x2C\n isInsideNodeModules\x2C\n join\x2C\n lazyDOMException\x2C\n normalizeEncoding\x2C\n once\x2C\n promisify\x2C\n sleep\x2C\n spliceOne\x2C\n removeColors\x2C\n\n // Symbol used to customize promisify conversion\n customPromisifyArgs: kCustomPromisifyArgsSymbol\x2C\n\n // Symbol used to provide a custom inspect function for an object as an\n // alternative to using 'inspect'\n customInspectSymbol: SymbolFor('nodejs.util.inspect.custom')\x2C\n\n // Used by the buffer module to capture an internal reference to the\n // default isEncoding implementation\x2C just in case userland overrides it.\n kIsEncodingSymbol: Symbol('kIsEncodingSymbol')\x2C\n kVmBreakFirstLineSymbol: Symbol('kVmBreakFirstLineSymbol')\n};\n
code-source-info,0xce7fc620c9e,12,8265,9756,C0O8265C17O8280C23O8320C41O8326C46O8320C47O8389C54O8402C56O8401C61O8446C68O8455C70O8454C74O8486C78O8524C96O8530C101O8524C102O8607C113O8639C123O8680C130O8614C135O8746C136O8909C143O8918C145O8917C148O8909C150O9473C161O9498C167O9498C172O9473C177O9534C188O9559C198O9598C205O9534C210O9665C221O9708C227O9708C232O9672C237O9754,,
tick,0x7f4debd505f7,35700,0,0x0,3,0x11e9ce0,0xce7fc617408,0xa52511ba45d,0xa52511b972d,0xce7fc61381a,0xa52511ba45d,0xa52511b972d,0xce7fc6121b0,0xa52511ba45d,0xa52511b972d,0xce7fc606373,0xa52511ba45d,0xa52511b972d,0xce7fc601335,0xa52511ba45d,0xa52511b972d,0xa52511bed5f,0xa52511ba45d,0xa52511b972d,0xa52511b9222
code-creation,LazyCompile,10,35879,0xce7fc6221fe,65,EventEmitterMixin node:internal/event_target:696:27,0x1eac91c307d8,~
script-source,38,node:internal/event_target,'use strict';\n\nconst {\n ArrayFrom\x2C\n Boolean\x2C\n Error\x2C\n FunctionPrototypeBind\x2C\n FunctionPrototypeCall\x2C\n NumberIsInteger\x2C\n ObjectAssign\x2C\n ObjectDefineProperties\x2C\n ObjectDefineProperty\x2C\n ObjectGetOwnPropertyDescriptor\x2C\n ObjectGetOwnPropertyDescriptors\x2C\n ReflectApply\x2C\n SafeArrayIterator\x2C\n SafeFinalizationRegistry\x2C\n SafeMap\x2C\n SafeWeakMap\x2C\n SafeWeakRef\x2C\n SafeWeakSet\x2C\n String\x2C\n Symbol\x2C\n SymbolFor\x2C\n SymbolToStringTag\x2C\n} = primordials;\n\nconst {\n codes: {\n ERR_INVALID_ARG_TYPE\x2C\n ERR_EVENT_RECURSION\x2C\n ERR_MISSING_ARGS\x2C\n ERR_INVALID_THIS\x2C\n }\n} = require('internal/errors');\nconst { validateObject\x2C validateString } = require('internal/validators');\n\nconst { customInspectSymbol } = require('internal/util');\nconst { inspect } = require('util');\n\nconst kIsEventTarget = SymbolFor('nodejs.event_target');\n\nconst EventEmitter = require('events');\nconst {\n kMaxEventTargetListeners\x2C\n kMaxEventTargetListenersWarned\x2C\n} = EventEmitter;\n\nconst kEvents = Symbol('kEvents');\nconst kIsBeingDispatched = Symbol('kIsBeingDispatched');\nconst kStop = Symbol('kStop');\nconst kTarget = Symbol('kTarget');\nconst kHandlers = Symbol('khandlers');\nconst kWeakHandler = Symbol('kWeak');\n\nconst kHybridDispatch = SymbolFor('nodejs.internal.kHybridDispatch');\nconst kCreateEvent = Symbol('kCreateEvent');\nconst kNewListener = Symbol('kNewListener');\nconst kRemoveListener = Symbol('kRemoveListener');\nconst kIsNodeStyleListener = Symbol('kIsNodeStyleListener');\nconst kTrustEvent = Symbol('kTrustEvent');\n\nconst { now } = require('internal/perf/utils');\n\n// TODO(joyeecheung): V8 snapshot does not support instance member\n// initializers for now:\n// https://bugs.chromium.org/p/v8/issues/detail?id=10704\nconst kType = Symbol('type');\nconst kDefaultPrevented = Symbol('defaultPrevented');\nconst kCancelable = Symbol('cancelable');\nconst kTimestamp = Symbol('timestamp');\nconst kBubbles = Symbol('bubbles');\nconst kComposed = Symbol('composed');\nconst kPropagationStopped = Symbol('propagationStopped');\n\nconst isTrustedSet = new SafeWeakSet();\nconst isTrusted = ObjectGetOwnPropertyDescriptor({\n get isTrusted() {\n return isTrustedSet.has(this);\n }\n}\x2C 'isTrusted').get;\n\nclass Event {\n constructor(type\x2C options = null) {\n if (arguments.length === 0)\n throw new ERR_MISSING_ARGS('type');\n validateObject(options\x2C 'options'\x2C {\n allowArray: true\x2C allowFunction: true\x2C nullable: true\x2C\n });\n const { cancelable\x2C bubbles\x2C composed } = { ...options };\n this[kCancelable] = !!cancelable;\n this[kBubbles] = !!bubbles;\n this[kComposed] = !!composed;\n this[kType] = `${type}`;\n this[kDefaultPrevented] = false;\n this[kTimestamp] = now();\n this[kPropagationStopped] = false;\n if (options?.[kTrustEvent]) {\n isTrustedSet.add(this);\n }\n\n // isTrusted is special (LegacyUnforgeable)\n ObjectDefineProperty(this\x2C 'isTrusted'\x2C {\n get: isTrusted\x2C\n enumerable: true\x2C\n configurable: false\n });\n this[kTarget] = null;\n this[kIsBeingDispatched] = false;\n }\n\n [customInspectSymbol](depth\x2C options) {\n const name = this.constructor.name;\n if (depth < 0)\n return name;\n\n const opts = ObjectAssign({}\x2C options\x2C {\n depth: NumberIsInteger(options.depth) ? options.depth - 1 : options.depth\n });\n\n return `${name} ${inspect({\n type: this[kType]\x2C\n defaultPrevented: this[kDefaultPrevented]\x2C\n cancelable: this[kCancelable]\x2C\n timeStamp: this[kTimestamp]\x2C\n }\x2C opts)}`;\n }\n\n stopImmediatePropagation() {\n this[kStop] = true;\n }\n\n preventDefault() {\n this[kDefaultPrevented] = true;\n }\n\n get target() { return this[kTarget]; }\n get currentTarget() { return this[kTarget]; }\n get srcElement() { return this[kTarget]; }\n\n get type() { return this[kType]; }\n\n get cancelable() { return this[kCancelable]; }\n\n get defaultPrevented() {\n return this[kCancelable] && this[kDefaultPrevented];\n }\n\n get timeStamp() { return this[kTimestamp]; }\n\n\n // The following are non-op and unused properties/methods from Web API Event.\n // These are not supported in Node.js and are provided purely for\n // API completeness.\n\n composedPath() { return this[kIsBeingDispatched] ? [this[kTarget]] : []; }\n get returnValue() { return !this.defaultPrevented; }\n get bubbles() { return this[kBubbles]; }\n get composed() { return this[kComposed]; }\n get eventPhase() {\n return this[kIsBeingDispatched] ? Event.AT_TARGET : Event.NONE;\n }\n get cancelBubble() { return this[kPropagationStopped]; }\n set cancelBubble(value) {\n if (value) {\n this.stopPropagation();\n }\n }\n stopPropagation() {\n this[kPropagationStopped] = true;\n }\n\n static NONE = 0;\n static CAPTURING_PHASE = 1;\n static AT_TARGET = 2;\n static BUBBLING_PHASE = 3;\n}\n\nObjectDefineProperty(Event.prototype\x2C SymbolToStringTag\x2C {\n writable: false\x2C\n enumerable: false\x2C\n configurable: true\x2C\n value: 'Event'\x2C\n});\n\nclass NodeCustomEvent extends Event {\n constructor(type\x2C options) {\n super(type\x2C options);\n if (options?.detail) {\n this.detail = options.detail;\n }\n }\n}\n\n// Weak listener cleanup\n// This has to be lazy for snapshots to work\nlet weakListenersState = null;\n// The resource needs to retain the callback so that it doesn't\n// get garbage collected now that it's weak.\nlet objectToWeakListenerMap = null;\nfunction weakListeners() {\n weakListenersState ??= new SafeFinalizationRegistry(\n (listener) => listener.remove()\n );\n objectToWeakListenerMap ??= new SafeWeakMap();\n return { registry: weakListenersState\x2C map: objectToWeakListenerMap };\n}\n\n// The listeners for an EventTarget are maintained as a linked list.\n// Unfortunately\x2C the way EventTarget is defined\x2C listeners are accounted\n// using the tuple [handler\x2Ccapture]\x2C and even if we don't actually make\n// use of capture or bubbling\x2C in order to be spec compliant we have to\n// take on the additional complexity of supporting it. Fortunately\x2C using\n// the linked list makes dispatching faster\x2C even if adding/removing is\n// slower.\nclass Listener {\n constructor(previous\x2C listener\x2C once\x2C capture\x2C passive\x2C\n isNodeStyleListener\x2C weak) {\n this.next = undefined;\n if (previous !== undefined)\n previous.next = this;\n this.previous = previous;\n this.listener = listener;\n // TODO(benjamingr) these 4 can be 'flags' to save 3 slots\n this.once = once;\n this.capture = capture;\n this.passive = passive;\n this.isNodeStyleListener = isNodeStyleListener;\n this.removed = false;\n this.weak = Boolean(weak); // Don't retain the object\n\n if (this.weak) {\n this.callback = new SafeWeakRef(listener);\n weakListeners().registry.register(listener\x2C this\x2C this);\n // Make the retainer retain the listener in a WeakMap\n weakListeners().map.set(weak\x2C listener);\n this.listener = this.callback;\n } else if (typeof listener === 'function') {\n this.callback = listener;\n this.listener = listener;\n } else {\n this.callback = FunctionPrototypeBind(listener.handleEvent\x2C listener);\n this.listener = listener;\n }\n }\n\n same(listener\x2C capture) {\n const myListener = this.weak ? this.listener.deref() : this.listener;\n return myListener === listener && this.capture === capture;\n }\n\n remove() {\n if (this.previous !== undefined)\n this.previous.next = this.next;\n if (this.next !== undefined)\n this.next.previous = this.previous;\n this.removed = true;\n if (this.weak)\n weakListeners().registry.unregister(this);\n }\n}\n\nfunction initEventTarget(self) {\n self[kEvents] = new SafeMap();\n self[kMaxEventTargetListeners] = EventEmitter.defaultMaxListeners;\n self[kMaxEventTargetListenersWarned] = false;\n}\n\nclass EventTarget {\n // Used in checking whether an object is an EventTarget. This is a well-known\n // symbol as EventTarget may be used cross-realm.\n // Ref: https://github.com/nodejs/node/pull/33661\n static [kIsEventTarget] = true;\n\n constructor() {\n initEventTarget(this);\n }\n\n [kNewListener](size\x2C type\x2C listener\x2C once\x2C capture\x2C passive) {\n if (this[kMaxEventTargetListeners] > 0 &&\n size > this[kMaxEventTargetListeners] &&\n !this[kMaxEventTargetListenersWarned]) {\n this[kMaxEventTargetListenersWarned] = true;\n // No error code for this since it is a Warning\n // eslint-disable-next-line no-restricted-syntax\n const w = new Error('Possible EventTarget memory leak detected. ' +\n `${size} ${type} listeners ` +\n `added to ${inspect(this\x2C { depth: -1 })}. Use ` +\n 'events.setMaxListeners() to increase limit');\n w.name = 'MaxListenersExceededWarning';\n w.target = this;\n w.type = type;\n w.count = size;\n process.emitWarning(w);\n }\n }\n [kRemoveListener](size\x2C type\x2C listener\x2C capture) {}\n\n addEventListener(type\x2C listener\x2C options = {}) {\n if (arguments.length < 2)\n throw new ERR_MISSING_ARGS('type'\x2C 'listener');\n\n // We validateOptions before the shouldAddListeners check because the spec\n // requires us to hit getters.\n const {\n once\x2C\n capture\x2C\n passive\x2C\n signal\x2C\n isNodeStyleListener\x2C\n weak\x2C\n } = validateEventListenerOptions(options);\n\n if (!shouldAddListener(listener)) {\n // The DOM silently allows passing undefined as a second argument\n // No error code for this since it is a Warning\n // eslint-disable-next-line no-restricted-syntax\n const w = new Error(`addEventListener called with ${listener}` +\n ' which has no effect.');\n w.name = 'AddEventListenerArgumentTypeWarning';\n w.target = this;\n w.type = type;\n process.emitWarning(w);\n return;\n }\n type = String(type);\n\n if (signal) {\n if (signal.aborted) {\n return;\n }\n // TODO(benjamingr) make this weak somehow? ideally the signal would\n // not prevent the event target from GC.\n signal.addEventListener('abort'\x2C () => {\n this.removeEventListener(type\x2C listener\x2C options);\n }\x2C { once: true\x2C [kWeakHandler]: this });\n }\n\n let root = this[kEvents].get(type);\n\n if (root === undefined) {\n root = { size: 1\x2C next: undefined };\n // This is the first handler in our linked list.\n new Listener(root\x2C listener\x2C once\x2C capture\x2C passive\x2C\n isNodeStyleListener\x2C weak);\n this[kNewListener](root.size\x2C type\x2C listener\x2C once\x2C capture\x2C passive);\n this[kEvents].set(type\x2C root);\n return;\n }\n\n let handler = root.next;\n let previous = root;\n\n // We have to walk the linked list to see if we have a match\n while (handler !== undefined && !handler.same(listener\x2C capture)) {\n previous = handler;\n handler = handler.next;\n }\n\n if (handler !== undefined) { // Duplicate! Ignore\n return;\n }\n\n new Listener(previous\x2C listener\x2C once\x2C capture\x2C passive\x2C\n isNodeStyleListener\x2C weak);\n root.size++;\n this[kNewListener](root.size\x2C type\x2C listener\x2C once\x2C capture\x2C passive);\n }\n\n removeEventListener(type\x2C listener\x2C options = {}) {\n if (!shouldAddListener(listener))\n return;\n\n type = String(type);\n const capture = options?.capture === true;\n\n const root = this[kEvents].get(type);\n if (root === undefined || root.next === undefined)\n return;\n\n let handler = root.next;\n while (handler !== undefined) {\n if (handler.same(listener\x2C capture)) {\n handler.remove();\n root.size--;\n if (root.size === 0)\n this[kEvents].delete(type);\n this[kRemoveListener](root.size\x2C type\x2C listener\x2C capture);\n break;\n }\n handler = handler.next;\n }\n }\n\n dispatchEvent(event) {\n if (!(event instanceof Event))\n throw new ERR_INVALID_ARG_TYPE('event'\x2C 'Event'\x2C event);\n\n if (!isEventTarget(this))\n throw new ERR_INVALID_THIS('EventTarget');\n\n if (event[kIsBeingDispatched])\n throw new ERR_EVENT_RECURSION(event.type);\n\n this[kHybridDispatch](event\x2C event.type\x2C event);\n\n return event.defaultPrevented !== true;\n }\n\n [kHybridDispatch](nodeValue\x2C type\x2C event) {\n const createEvent = () => {\n if (event === undefined) {\n event = this[kCreateEvent](nodeValue\x2C type);\n event[kTarget] = this;\n event[kIsBeingDispatched] = true;\n }\n return event;\n };\n if (event !== undefined) {\n event[kTarget] = this;\n event[kIsBeingDispatched] = true;\n }\n\n const root = this[kEvents].get(type);\n if (root === undefined || root.next === undefined)\n return true;\n\n let handler = root.next;\n let next;\n\n while (handler !== undefined &&\n (handler.passive || event?.[kStop] !== true)) {\n // Cache the next item in case this iteration removes the current one\n next = handler.next;\n\n if (handler.removed) {\n // Deal with the case an event is removed while event handlers are\n // Being processed (removeEventListener called from a listener)\n handler = next;\n continue;\n }\n if (handler.once) {\n handler.remove();\n root.size--;\n const { listener\x2C capture } = handler;\n this[kRemoveListener](root.size\x2C type\x2C listener\x2C capture);\n }\n\n try {\n let arg;\n if (handler.isNodeStyleListener) {\n arg = nodeValue;\n } else {\n arg = createEvent();\n }\n const callback = handler.weak ?\n handler.callback.deref() : handler.callback;\n let result;\n if (callback) {\n result = FunctionPrototypeCall(callback\x2C this\x2C arg);\n if (!handler.isNodeStyleListener) {\n arg[kIsBeingDispatched] = false;\n }\n }\n if (result !== undefined && result !== null)\n addCatch(result);\n } catch (err) {\n emitUncaughtException(err);\n }\n\n handler = next;\n }\n\n if (event !== undefined)\n event[kIsBeingDispatched] = false;\n }\n\n [kCreateEvent](nodeValue\x2C type) {\n return new NodeCustomEvent(type\x2C { detail: nodeValue });\n }\n [customInspectSymbol](depth\x2C options) {\n const name = this.constructor.name;\n if (depth < 0)\n return name;\n\n const opts = ObjectAssign({}\x2C options\x2C {\n depth: NumberIsInteger(options.depth) ? options.depth - 1 : options.depth\n });\n\n return `${name} ${inspect({}\x2C opts)}`;\n }\n}\n\nObjectDefineProperties(EventTarget.prototype\x2C {\n addEventListener: { enumerable: true }\x2C\n removeEventListener: { enumerable: true }\x2C\n dispatchEvent: { enumerable: true }\n});\nObjectDefineProperty(EventTarget.prototype\x2C SymbolToStringTag\x2C {\n writable: false\x2C\n enumerable: false\x2C\n configurable: true\x2C\n value: 'EventTarget'\x2C\n});\n\nfunction initNodeEventTarget(self) {\n initEventTarget(self);\n}\n\nclass NodeEventTarget extends EventTarget {\n static defaultMaxListeners = 10;\n\n constructor() {\n super();\n initNodeEventTarget(this);\n }\n\n setMaxListeners(n) {\n EventEmitter.setMaxListeners(n\x2C this);\n }\n\n getMaxListeners() {\n return this[kMaxEventTargetListeners];\n }\n\n eventNames() {\n return ArrayFrom(this[kEvents].keys());\n }\n\n listenerCount(type) {\n const root = this[kEvents].get(String(type));\n return root !== undefined ? root.size : 0;\n }\n\n off(type\x2C listener\x2C options) {\n this.removeEventListener(type\x2C listener\x2C options);\n return this;\n }\n\n removeListener(type\x2C listener\x2C options) {\n this.removeEventListener(type\x2C listener\x2C options);\n return this;\n }\n\n on(type\x2C listener) {\n this.addEventListener(type\x2C listener\x2C { [kIsNodeStyleListener]: true });\n return this;\n }\n\n addListener(type\x2C listener) {\n this.addEventListener(type\x2C listener\x2C { [kIsNodeStyleListener]: true });\n return this;\n }\n emit(type\x2C arg) {\n validateString(type\x2C 'type');\n const hadListeners = this.listenerCount(type) > 0;\n this[kHybridDispatch](arg\x2C type);\n return hadListeners;\n }\n\n once(type\x2C listener) {\n this.addEventListener(type\x2C listener\x2C\n { once: true\x2C [kIsNodeStyleListener]: true });\n return this;\n }\n\n removeAllListeners(type) {\n if (type !== undefined) {\n this[kEvents].delete(String(type));\n } else {\n this[kEvents].clear();\n }\n\n return this;\n }\n}\n\nObjectDefineProperties(NodeEventTarget.prototype\x2C {\n setMaxListeners: { enumerable: true }\x2C\n getMaxListeners: { enumerable: true }\x2C\n eventNames: { enumerable: true }\x2C\n listenerCount: { enumerable: true }\x2C\n off: { enumerable: true }\x2C\n removeListener: { enumerable: true }\x2C\n on: { enumerable: true }\x2C\n addListener: { enumerable: true }\x2C\n once: { enumerable: true }\x2C\n emit: { enumerable: true }\x2C\n removeAllListeners: { enumerable: true }\x2C\n});\n\n// EventTarget API\n\nfunction shouldAddListener(listener) {\n if (typeof listener === 'function' ||\n typeof listener?.handleEvent === 'function') {\n return true;\n }\n\n if (listener == null)\n return false;\n\n throw new ERR_INVALID_ARG_TYPE('listener'\x2C 'EventListener'\x2C listener);\n}\n\nfunction validateEventListenerOptions(options) {\n if (typeof options === 'boolean')\n return { capture: options };\n\n if (options === null)\n return {};\n validateObject(options\x2C 'options'\x2C {\n allowArray: true\x2C allowFunction: true\x2C\n });\n return {\n once: Boolean(options.once)\x2C\n capture: Boolean(options.capture)\x2C\n passive: Boolean(options.passive)\x2C\n signal: options.signal\x2C\n weak: options[kWeakHandler]\x2C\n isNodeStyleListener: Boolean(options[kIsNodeStyleListener])\n };\n}\n\n// Test whether the argument is an event object. This is far from a fool-proof\n// test\x2C for example this input will result in a false positive:\n// > isEventTarget({ constructor: EventTarget })\n// It stands in its current implementation as a compromise.\n// Ref: https://github.com/nodejs/node/pull/33661\nfunction isEventTarget(obj) {\n return obj?.constructor?.[kIsEventTarget];\n}\n\nfunction addCatch(promise) {\n const then = promise.then;\n if (typeof then === 'function') {\n FunctionPrototypeCall(then\x2C promise\x2C undefined\x2C function(err) {\n // The callback is called with nextTick to avoid a follow-up\n // rejection from this promise.\n emitUncaughtException(err);\n });\n }\n}\n\nfunction emitUncaughtException(err) {\n process.nextTick(() => { throw err; });\n}\n\nfunction makeEventHandler(handler) {\n // Event handlers are dispatched in the order they were first set\n // See https://github.com/nodejs/node/pull/35949#issuecomment-722496598\n function eventHandler(...args) {\n if (typeof eventHandler.handler !== 'function') {\n return;\n }\n return ReflectApply(eventHandler.handler\x2C this\x2C args);\n }\n eventHandler.handler = handler;\n return eventHandler;\n}\n\nfunction defineEventHandler(emitter\x2C name) {\n // 8.1.5.1 Event handlers - basically `on[eventName]` attributes\n ObjectDefineProperty(emitter\x2C `on${name}`\x2C {\n get() {\n return this[kHandlers]?.get(name)?.handler;\n }\x2C\n set(value) {\n if (!this[kHandlers]) {\n this[kHandlers] = new SafeMap();\n }\n let wrappedHandler = this[kHandlers]?.get(name);\n if (wrappedHandler) {\n if (typeof wrappedHandler.handler === 'function') {\n this[kEvents].get(name).size--;\n const size = this[kEvents].get(name).size;\n this[kRemoveListener](size\x2C name\x2C wrappedHandler.handler\x2C false);\n }\n wrappedHandler.handler = value;\n if (typeof wrappedHandler.handler === 'function') {\n this[kEvents].get(name).size++;\n const size = this[kEvents].get(name).size;\n this[kNewListener](size\x2C name\x2C value\x2C false\x2C false\x2C false);\n }\n } else {\n wrappedHandler = makeEventHandler(value);\n this.addEventListener(name\x2C wrappedHandler);\n }\n this[kHandlers].set(name\x2C wrappedHandler);\n }\x2C\n configurable: true\x2C\n enumerable: true\n });\n}\n\nconst EventEmitterMixin = (Superclass) => {\n class MixedEventEmitter extends Superclass {\n constructor(...args) {\n args = new SafeArrayIterator(args);\n super(...args);\n FunctionPrototypeCall(EventEmitter\x2C this);\n }\n }\n const protoProps = ObjectGetOwnPropertyDescriptors(EventEmitter.prototype);\n delete protoProps.constructor;\n ObjectDefineProperties(MixedEventEmitter.prototype\x2C protoProps);\n return MixedEventEmitter;\n};\n\nmodule.exports = {\n Event\x2C\n EventEmitterMixin\x2C\n EventTarget\x2C\n NodeEventTarget\x2C\n defineEventHandler\x2C\n initEventTarget\x2C\n initNodeEventTarget\x2C\n kCreateEvent\x2C\n kNewListener\x2C\n kTrustEvent\x2C\n kRemoveListener\x2C\n kEvents\x2C\n kWeakHandler\x2C\n isEventTarget\x2C\n};\n
code-source-info,0xce7fc6221fe,38,19901,20323,C0O19953C23O20137C30O20169C33O20182C38O20137C43O20196C47O20229C52O20270C57O20229C62O20296C64O20321,,
tick,0x7f4dec17382c,36750,0,0x0,3,0x11e9ce0,0xce7fc617414,0xa52511ba45d,0xa52511b972d,0xce7fc61381a,0xa52511ba45d,0xa52511b972d,0xce7fc6121b0,0xa52511ba45d,0xa52511b972d,0xce7fc606373,0xa52511ba45d,0xa52511b972d,0xce7fc601335,0xa52511ba45d,0xa52511b972d,0xa52511bed5f,0xa52511ba45d,0xa52511b972d,0xa52511b9222
code-creation,Eval,10,37017,0xce7fc623bee,5, node:internal/modules/esm/transform_source:1:1,0xce7fc623a98,~
script-source,104,node:internal/modules/esm/transform_source,'use strict';\n\nfunction defaultTransformSource(source\x2C { url\x2C format } = {}\x2C\n defaultTransformSource) {\n return { source };\n}\nexports.defaultTransformSource = defaultTransformSource;\n
code-source-info,0xce7fc623bee,104,0,215,C0O0C4O215,,
code-creation,Function,10,37045,0xce7fc623cd6,13, node:internal/modules/esm/transform_source:1:1,0xce7fc623b58,~
code-source-info,0xce7fc623cd6,104,0,215,C0O0C5O158C7O189C12O214,,
code-creation,Eval,10,37195,0xce7fc6241be,5, node:internal/modules/esm/create_dynamic_module:1:1,0xce7fc623fd8,~
script-source,105,node:internal/modules/esm/create_dynamic_module,'use strict';\n\nconst {\n ArrayPrototypeJoin\x2C\n ArrayPrototypeMap\x2C\n JSONStringify\x2C\n ObjectCreate\x2C\n SafeSet\x2C\n} = primordials;\n\nlet debug = require('internal/util/debuglog').debuglog('esm'\x2C (fn) => {\n debug = fn;\n});\n\nfunction createImport(impt\x2C index) {\n const imptPath = JSONStringify(impt);\n return `import * as $import_${index} from ${imptPath};\nimport.meta.imports[${imptPath}] = $import_${index};`;\n}\n\nfunction createExport(expt) {\n const name = `${expt}`;\n return `let $${name};\nexport { $${name} as ${name} };\nimport.meta.exports.${name} = {\n get: () => $${name}\x2C\n set: (v) => $${name} = v\x2C\n};`;\n}\n\nconst createDynamicModule = (imports\x2C exports\x2C url = ''\x2C evaluate) => {\n debug('creating ESM facade for %s with exports: %j'\x2C url\x2C exports);\n const source = `\n${ArrayPrototypeJoin(ArrayPrototypeMap(imports\x2C createImport)\x2C '\\n')}\n${ArrayPrototypeJoin(ArrayPrototypeMap(exports\x2C createExport)\x2C '\\n')}\nimport.meta.done();\n`;\n const { ModuleWrap\x2C callbackMap } = internalBinding('module_wrap');\n const m = new ModuleWrap(`${url}`\x2C undefined\x2C source\x2C 0\x2C 0);\n\n const readyfns = new SafeSet();\n const reflect = {\n exports: ObjectCreate(null)\x2C\n onReady: (cb) => { readyfns.add(cb); }\x2C\n };\n\n if (imports.length)\n reflect.imports = ObjectCreate(null);\n\n callbackMap.set(m\x2C {\n initializeImportMeta: (meta\x2C wrap) => {\n meta.exports = reflect.exports;\n if (reflect.imports)\n meta.imports = reflect.imports;\n meta.done = () => {\n evaluate(reflect);\n reflect.onReady = (cb) => cb(reflect);\n for (const fn of readyfns) {\n readyfns.delete(fn);\n fn(reflect);\n }\n };\n }\x2C\n });\n\n return {\n module: m\x2C\n reflect\x2C\n };\n};\n\nmodule.exports = createDynamicModule;\n
code-source-info,0xce7fc6241be,105,0,1756,C0O0C4O1756,,
code-creation,Function,10,37288,0xce7fc6243f6,111, node:internal/modules/esm/create_dynamic_module:1:1,0xce7fc624128,~
code-source-info,0xce7fc6243f6,105,0,1756,C0O0C39O25C45O47C51O68C57O85C63O101C69O140C72O140C77O173C90O174C96O140C98O642C103O1718C105O1733C110O1755,,
tick,0xd12712,37682,1,0xb515a0,2,0xd44a10,0xa52511ba43c,0xa52511b972d,0xce7fc606397,0xa52511ba45d,0xa52511b972d,0xce7fc601335,0xa52511ba45d,0xa52511b972d,0xa52511bed5f,0xa52511ba45d,0xa52511b972d,0xa52511b9222
code-creation,Eval,10,38140,0xce7fc6268f6,5, node:internal/modules/esm/resolve:1:1,0xce7fc626230,~
script-source,106,node:internal/modules/esm/resolve,'use strict';\n\nconst {\n ArrayIsArray\x2C\n ArrayPrototypeJoin\x2C\n ArrayPrototypeShift\x2C\n JSONParse\x2C\n JSONStringify\x2C\n ObjectFreeze\x2C\n ObjectGetOwnPropertyNames\x2C\n ObjectPrototypeHasOwnProperty\x2C\n RegExp\x2C\n RegExpPrototypeTest\x2C\n SafeMap\x2C\n SafeSet\x2C\n String\x2C\n StringPrototypeEndsWith\x2C\n StringPrototypeIndexOf\x2C\n StringPrototypeReplace\x2C\n StringPrototypeSlice\x2C\n StringPrototypeSplit\x2C\n StringPrototypeStartsWith\x2C\n StringPrototypeSubstr\x2C\n} = primordials;\nconst internalFS = require('internal/fs/utils');\nconst { NativeModule } = require('internal/bootstrap/loaders');\nconst {\n realpathSync\x2C\n statSync\x2C\n Stats\x2C\n} = require('fs');\nconst { getOptionValue } = require('internal/options');\n// Do not eagerly grab .manifest\x2C it may be in TDZ\nconst policy = getOptionValue('--experimental-policy') ?\n require('internal/process/policy') :\n null;\nconst { sep\x2C relative\x2C resolve } = require('path');\nconst preserveSymlinks = getOptionValue('--preserve-symlinks');\nconst preserveSymlinksMain = getOptionValue('--preserve-symlinks-main');\nconst typeFlag = getOptionValue('--input-type');\nconst { URL\x2C pathToFileURL\x2C fileURLToPath } = require('internal/url');\nconst {\n ERR_INPUT_TYPE_NOT_ALLOWED\x2C\n ERR_INVALID_ARG_VALUE\x2C\n ERR_INVALID_MODULE_SPECIFIER\x2C\n ERR_INVALID_PACKAGE_CONFIG\x2C\n ERR_INVALID_PACKAGE_TARGET\x2C\n ERR_MANIFEST_DEPENDENCY_MISSING\x2C\n ERR_MODULE_NOT_FOUND\x2C\n ERR_PACKAGE_IMPORT_NOT_DEFINED\x2C\n ERR_PACKAGE_PATH_NOT_EXPORTED\x2C\n ERR_UNSUPPORTED_DIR_IMPORT\x2C\n ERR_UNSUPPORTED_ESM_URL_SCHEME\x2C\n} = require('internal/errors').codes;\nconst { Module: CJSModule } = require('internal/modules/cjs/loader');\n\nconst packageJsonReader = require('internal/modules/package_json_reader');\nconst userConditions = getOptionValue('--conditions');\nconst DEFAULT_CONDITIONS = ObjectFreeze(['node'\x2C 'import'\x2C ...userConditions]);\nconst DEFAULT_CONDITIONS_SET = new SafeSet(DEFAULT_CONDITIONS);\n\nconst emittedPackageWarnings = new SafeSet();\nfunction emitFolderMapDeprecation(match\x2C pjsonUrl\x2C isExports\x2C base) {\n const pjsonPath = fileURLToPath(pjsonUrl);\n\n if (emittedPackageWarnings.has(pjsonPath + '|' + match))\n return;\n emittedPackageWarnings.add(pjsonPath + '|' + match);\n process.emitWarning(\n `Use of deprecated folder mapping "${match}" in the ${isExports ?\n '"exports"' : '"imports"'} field module resolution of the package at ${\n pjsonPath}${base ? ` imported from ${fileURLToPath(base)}` : ''}.\\n` +\n `Update this package.json to use a subpath pattern like "${match}*".`\x2C\n 'DeprecationWarning'\x2C\n 'DEP0148'\n );\n}\n\nfunction emitLegacyIndexDeprecation(url\x2C packageJSONUrl\x2C base\x2C main) {\n const { format } = defaultGetFormat(url);\n if (format !== 'module')\n return;\n const path = fileURLToPath(url);\n const pkgPath = fileURLToPath(new URL('.'\x2C packageJSONUrl));\n const basePath = fileURLToPath(base);\n if (main)\n process.emitWarning(\n `Package ${pkgPath} has a "main" field set to ${JSONStringify(main)}\x2C ` +\n `excluding the full filename and extension to the resolved file at "${\n StringPrototypeSlice(path\x2C pkgPath.length)}"\x2C imported from ${\n basePath}.\\n Automatic extension resolution of the "main" field is` +\n 'deprecated for ES modules.'\x2C\n 'DeprecationWarning'\x2C\n 'DEP0151'\n );\n else\n process.emitWarning(\n `No "main" or "exports" field defined in the package.json for ${pkgPath\n } resolving the main entry point "${\n StringPrototypeSlice(path\x2C pkgPath.length)}"\x2C imported from ${basePath\n }.\\nDefault "index" lookups for the main are deprecated for ES modules.`\x2C\n 'DeprecationWarning'\x2C\n 'DEP0151'\n );\n}\n\nfunction getConditionsSet(conditions) {\n if (conditions !== undefined && conditions !== DEFAULT_CONDITIONS) {\n if (!ArrayIsArray(conditions)) {\n throw new ERR_INVALID_ARG_VALUE('conditions'\x2C conditions\x2C\n 'expected an array');\n }\n return new SafeSet(conditions);\n }\n return DEFAULT_CONDITIONS_SET;\n}\n\nconst realpathCache = new SafeMap();\nconst packageJSONCache = new SafeMap(); /* string -> PackageConfig */\n\nconst tryStatSync =\n (path) => statSync(path\x2C { throwIfNoEntry: false }) ?? new Stats();\n\nfunction getPackageConfig(path\x2C specifier\x2C base) {\n const existing = packageJSONCache.get(path);\n if (existing !== undefined) {\n return existing;\n }\n const source = packageJsonReader.read(path).string;\n if (source === undefined) {\n const packageConfig = {\n pjsonPath: path\x2C\n exists: false\x2C\n main: undefined\x2C\n name: undefined\x2C\n type: 'none'\x2C\n exports: undefined\x2C\n imports: undefined\x2C\n };\n packageJSONCache.set(path\x2C packageConfig);\n return packageConfig;\n }\n\n let packageJSON;\n try {\n packageJSON = JSONParse(source);\n } catch (error) {\n throw new ERR_INVALID_PACKAGE_CONFIG(\n path\x2C\n (base ? `"${specifier}" from ` : '') + fileURLToPath(base || specifier)\x2C\n error.message\n );\n }\n\n let { imports\x2C main\x2C name\x2C type } = packageJSON;\n const { exports } = packageJSON;\n if (typeof imports !== 'object' || imports === null) imports = undefined;\n if (typeof main !== 'string') main = undefined;\n if (typeof name !== 'string') name = undefined;\n // Ignore unknown types for forwards compatibility\n if (type !== 'module' && type !== 'commonjs') type = 'none';\n\n const packageConfig = {\n pjsonPath: path\x2C\n exists: true\x2C\n main\x2C\n name\x2C\n type\x2C\n exports\x2C\n imports\x2C\n };\n packageJSONCache.set(path\x2C packageConfig);\n return packageConfig;\n}\n\nfunction getPackageScopeConfig(resolved) {\n let packageJSONUrl = new URL('./package.json'\x2C resolved);\n while (true) {\n const packageJSONPath = packageJSONUrl.pathname;\n if (StringPrototypeEndsWith(packageJSONPath\x2C 'node_modules/package.json'))\n break;\n const packageConfig = getPackageConfig(fileURLToPath(packageJSONUrl)\x2C\n resolved);\n if (packageConfig.exists) return packageConfig;\n\n const lastPackageJSONUrl = packageJSONUrl;\n packageJSONUrl = new URL('../package.json'\x2C packageJSONUrl);\n\n // Terminates at root where ../package.json equals ../../package.json\n // (can't just check "/package.json" for Windows support).\n if (packageJSONUrl.pathname === lastPackageJSONUrl.pathname) break;\n }\n const packageJSONPath = fileURLToPath(packageJSONUrl);\n const packageConfig = {\n pjsonPath: packageJSONPath\x2C\n exists: false\x2C\n main: undefined\x2C\n name: undefined\x2C\n type: 'none'\x2C\n exports: undefined\x2C\n imports: undefined\x2C\n };\n packageJSONCache.set(packageJSONPath\x2C packageConfig);\n return packageConfig;\n}\n\n/**\n * Legacy CommonJS main resolution:\n * 1. let M = pkg_url + (json main field)\n * 2. TRY(M\x2C M.js\x2C M.json\x2C M.node)\n * 3. TRY(M/index.js\x2C M/index.json\x2C M/index.node)\n * 4. TRY(pkg_url/index.js\x2C pkg_url/index.json\x2C pkg_url/index.node)\n * 5. NOT_FOUND\n * @param {string | URL} url\n * @returns {boolean}\n */\nfunction fileExists(url) {\n return statSync(url\x2C { throwIfNoEntry: false })?.isFile() ?? false;\n}\n\nfunction legacyMainResolve(packageJSONUrl\x2C packageConfig\x2C base) {\n let guess;\n if (packageConfig.main !== undefined) {\n // Note: fs check redundances will be handled by Descriptor cache here.\n if (fileExists(guess = new URL(`./${packageConfig.main}`\x2C\n packageJSONUrl))) {\n return guess;\n } else if (fileExists(guess = new URL(`./${packageConfig.main}.js`\x2C\n packageJSONUrl)));\n else if (fileExists(guess = new URL(`./${packageConfig.main}.json`\x2C\n packageJSONUrl)));\n else if (fileExists(guess = new URL(`./${packageConfig.main}.node`\x2C\n packageJSONUrl)));\n else if (fileExists(guess = new URL(`./${packageConfig.main}/index.js`\x2C\n packageJSONUrl)));\n else if (fileExists(guess = new URL(`./${packageConfig.main}/index.json`\x2C\n packageJSONUrl)));\n else if (fileExists(guess = new URL(`./${packageConfig.main}/index.node`\x2C\n packageJSONUrl)));\n else guess = undefined;\n if (guess) {\n emitLegacyIndexDeprecation(guess\x2C packageJSONUrl\x2C base\x2C\n packageConfig.main);\n return guess;\n }\n // Fallthrough.\n }\n if (fileExists(guess = new URL('./index.js'\x2C packageJSONUrl)));\n // So fs.\n else if (fileExists(guess = new URL('./index.json'\x2C packageJSONUrl)));\n else if (fileExists(guess = new URL('./index.node'\x2C packageJSONUrl)));\n else guess = undefined;\n if (guess) {\n emitLegacyIndexDeprecation(guess\x2C packageJSONUrl\x2C base\x2C packageConfig.main);\n return guess;\n }\n // Not found.\n throw new ERR_MODULE_NOT_FOUND(\n fileURLToPath(new URL('.'\x2C packageJSONUrl))\x2C fileURLToPath(base));\n}\n\nfunction resolveExtensionsWithTryExactName(search) {\n if (fileExists(search)) return search;\n return resolveExtensions(search);\n}\n\nconst extensions = ['.js'\x2C '.json'\x2C '.node'\x2C '.mjs'];\nfunction resolveExtensions(search) {\n for (let i = 0; i < extensions.length; i++) {\n const extension = extensions[i];\n const guess = new URL(`${search.pathname}${extension}`\x2C search);\n if (fileExists(guess)) return guess;\n }\n return undefined;\n}\n\nfunction resolveDirectoryEntry(search) {\n const dirPath = fileURLToPath(search);\n const pkgJsonPath = resolve(dirPath\x2C 'package.json');\n if (fileExists(pkgJsonPath)) {\n const pkgJson = packageJsonReader.read(pkgJsonPath);\n if (pkgJson.containsKeys) {\n const { main } = JSONParse(pkgJson.string);\n if (main != null) {\n const mainUrl = pathToFileURL(resolve(dirPath\x2C main));\n return resolveExtensionsWithTryExactName(mainUrl);\n }\n }\n }\n return resolveExtensions(new URL('index'\x2C search));\n}\n\nconst encodedSepRegEx = /%2F|%2C/i;\nfunction finalizeResolution(resolved\x2C base) {\n if (RegExpPrototypeTest(encodedSepRegEx\x2C resolved.pathname))\n throw new ERR_INVALID_MODULE_SPECIFIER(\n resolved.pathname\x2C 'must not include encoded "/" or "\\\\" characters'\x2C\n fileURLToPath(base));\n\n const path = fileURLToPath(resolved);\n if (getOptionValue('--experimental-specifier-resolution') === 'node') {\n let file = resolveExtensionsWithTryExactName(resolved);\n if (file !== undefined) return file;\n if (!StringPrototypeEndsWith(path\x2C '/')) {\n file = resolveDirectoryEntry(new URL(`${resolved}/`));\n if (file !== undefined) return file;\n } else {\n return resolveDirectoryEntry(resolved) || resolved;\n }\n throw new ERR_MODULE_NOT_FOUND(\n resolved.pathname\x2C fileURLToPath(base)\x2C 'module');\n }\n\n const stats = tryStatSync(StringPrototypeEndsWith(path\x2C '/') ?\n StringPrototypeSlice(path\x2C -1) : path);\n if (stats.isDirectory()) {\n const err = new ERR_UNSUPPORTED_DIR_IMPORT(path\x2C fileURLToPath(base));\n err.url = String(resolved);\n throw err;\n } else if (!stats.isFile()) {\n throw new ERR_MODULE_NOT_FOUND(\n path || resolved.pathname\x2C base && fileURLToPath(base)\x2C 'module');\n }\n\n return resolved;\n}\n\nfunction throwImportNotDefined(specifier\x2C packageJSONUrl\x2C base) {\n throw new ERR_PACKAGE_IMPORT_NOT_DEFINED(\n specifier\x2C packageJSONUrl && fileURLToPath(new URL('.'\x2C packageJSONUrl))\x2C\n fileURLToPath(base));\n}\n\nfunction throwExportsNotFound(subpath\x2C packageJSONUrl\x2C base) {\n throw new ERR_PACKAGE_PATH_NOT_EXPORTED(\n fileURLToPath(new URL('.'\x2C packageJSONUrl))\x2C subpath\x2C\n base && fileURLToPath(base));\n}\n\nfunction throwInvalidSubpath(subpath\x2C packageJSONUrl\x2C internal\x2C base) {\n const reason = `request is not a valid subpath for the "${internal ?\n 'imports' : 'exports'}" resolution of ${fileURLToPath(packageJSONUrl)}`;\n throw new ERR_INVALID_MODULE_SPECIFIER(subpath\x2C reason\x2C\n base && fileURLToPath(base));\n}\n\nfunction throwInvalidPackageTarget(\n subpath\x2C target\x2C packageJSONUrl\x2C internal\x2C base) {\n if (typeof target === 'object' && target !== null) {\n target = JSONStringify(target\x2C null\x2C '');\n } else {\n target = `${target}`;\n }\n throw new ERR_INVALID_PACKAGE_TARGET(\n fileURLToPath(new URL('.'\x2C packageJSONUrl))\x2C subpath\x2C target\x2C\n internal\x2C base && fileURLToPath(base));\n}\n\nconst invalidSegmentRegEx = /(^|\\\\|\\/)(\\.\\.?|node_modules)(\\\\|\\/|$)/;\nconst patternRegEx = /\\*/g;\n\nfunction resolvePackageTargetString(\n target\x2C subpath\x2C match\x2C packageJSONUrl\x2C base\x2C pattern\x2C internal\x2C conditions) {\n if (subpath !== '' && !pattern && target[target.length - 1] !== '/')\n throwInvalidPackageTarget(match\x2C target\x2C packageJSONUrl\x2C internal\x2C base);\n\n if (!StringPrototypeStartsWith(target\x2C './')) {\n if (internal && !StringPrototypeStartsWith(target\x2C '../') &&\n !StringPrototypeStartsWith(target\x2C '/')) {\n let isURL = false;\n try {\n new URL(target);\n isURL = true;\n } catch {}\n if (!isURL) {\n const exportTarget = pattern ?\n StringPrototypeReplace(target\x2C patternRegEx\x2C subpath) :\n target + subpath;\n return packageResolve(exportTarget\x2C packageJSONUrl\x2C conditions);\n }\n }\n throwInvalidPackageTarget(match\x2C target\x2C packageJSONUrl\x2C internal\x2C base);\n }\n\n if (RegExpPrototypeTest(invalidSegmentRegEx\x2C StringPrototypeSlice(target\x2C 2)))\n throwInvalidPackageTarget(match\x2C target\x2C packageJSONUrl\x2C internal\x2C base);\n\n const resolved = new URL(target\x2C packageJSONUrl);\n const resolvedPath = resolved.pathname;\n const packagePath = new URL('.'\x2C packageJSONUrl).pathname;\n\n if (!StringPrototypeStartsWith(resolvedPath\x2C packagePath))\n throwInvalidPackageTarget(match\x2C target\x2C packageJSONUrl\x2C internal\x2C base);\n\n if (subpath === '') return resolved;\n\n if (RegExpPrototypeTest(invalidSegmentRegEx\x2C subpath))\n throwInvalidSubpath(match + subpath\x2C packageJSONUrl\x2C internal\x2C base);\n\n if (pattern)\n return new URL(StringPrototypeReplace(resolved.href\x2C patternRegEx\x2C\n subpath));\n return new URL(subpath\x2C resolved);\n}\n\n/**\n * @param {string} key\n * @returns {boolean}\n */\nfunction isArrayIndex(key) {\n const keyNum = +key;\n if (`${keyNum}` !== key) return false;\n return keyNum >= 0 && keyNum < 0xFFFF_FFFF;\n}\n\nfunction resolvePackageTarget(packageJSONUrl\x2C target\x2C subpath\x2C packageSubpath\x2C\n base\x2C pattern\x2C internal\x2C conditions) {\n if (typeof target === 'string') {\n return resolvePackageTargetString(\n target\x2C subpath\x2C packageSubpath\x2C packageJSONUrl\x2C base\x2C pattern\x2C internal\x2C\n conditions);\n } else if (ArrayIsArray(target)) {\n if (target.length === 0)\n return null;\n\n let lastException;\n for (let i = 0; i < target.length; i++) {\n const targetItem = target[i];\n let resolved;\n try {\n resolved = resolvePackageTarget(\n packageJSONUrl\x2C targetItem\x2C subpath\x2C packageSubpath\x2C base\x2C pattern\x2C\n internal\x2C conditions);\n } catch (e) {\n lastException = e;\n if (e.code === 'ERR_INVALID_PACKAGE_TARGET')\n continue;\n throw e;\n }\n if (resolved === undefined)\n continue;\n if (resolved === null) {\n lastException = null;\n continue;\n }\n return resolved;\n }\n if (lastException === undefined || lastException === null)\n return lastException;\n throw lastException;\n } else if (typeof target === 'object' && target !== null) {\n const keys = ObjectGetOwnPropertyNames(target);\n for (let i = 0; i < keys.length; i++) {\n const key = keys[i];\n if (isArrayIndex(key)) {\n throw new ERR_INVALID_PACKAGE_CONFIG(\n fileURLToPath(packageJSONUrl)\x2C base\x2C\n '"exports" cannot contain numeric property keys.');\n }\n }\n for (let i = 0; i < keys.length; i++) {\n const key = keys[i];\n if (key === 'default' || conditions.has(key)) {\n const conditionalTarget = target[key];\n const resolved = resolvePackageTarget(\n packageJSONUrl\x2C conditionalTarget\x2C subpath\x2C packageSubpath\x2C base\x2C\n pattern\x2C internal\x2C conditions);\n if (resolved === undefined)\n continue;\n return resolved;\n }\n }\n return undefined;\n } else if (target === null) {\n return null;\n }\n throwInvalidPackageTarget(packageSubpath\x2C target\x2C packageJSONUrl\x2C internal\x2C\n base);\n}\n\nfunction isConditionalExportsMainSugar(exports\x2C packageJSONUrl\x2C base) {\n if (typeof exports === 'string' || ArrayIsArray(exports)) return true;\n if (typeof exports !== 'object' || exports === null) return false;\n\n const keys = ObjectGetOwnPropertyNames(exports);\n let isConditionalSugar = false;\n let i = 0;\n for (let j = 0; j < keys.length; j++) {\n const key = keys[j];\n const curIsConditionalSugar = key === '' || key[0] !== '.';\n if (i++ === 0) {\n isConditionalSugar = curIsConditionalSugar;\n } else if (isConditionalSugar !== curIsConditionalSugar) {\n throw new ERR_INVALID_PACKAGE_CONFIG(\n fileURLToPath(packageJSONUrl)\x2C base\x2C\n '"exports" cannot contain some keys starting with \\'.\\' and some not.' +\n ' The exports object must either be an object of package subpath keys' +\n ' or an object of main entry condition name keys only.');\n }\n }\n return isConditionalSugar;\n}\n\n/**\n * @param {URL} packageJSONUrl\n * @param {string} packageSubpath\n * @param {object} packageConfig\n * @param {string} base\n * @param {Set<string>} conditions\n * @returns {URL}\n */\nfunction packageExportsResolve(\n packageJSONUrl\x2C packageSubpath\x2C packageConfig\x2C base\x2C conditions) {\n let exports = packageConfig.exports;\n if (isConditionalExportsMainSugar(exports\x2C packageJSONUrl\x2C base))\n exports = { '.': exports };\n\n if (ObjectPrototypeHasOwnProperty(exports\x2C packageSubpath)) {\n const target = exports[packageSubpath];\n const resolved = resolvePackageTarget(\n packageJSONUrl\x2C target\x2C ''\x2C packageSubpath\x2C base\x2C false\x2C false\x2C conditions\n );\n if (resolved === null || resolved === undefined)\n throwExportsNotFound(packageSubpath\x2C packageJSONUrl\x2C base);\n return { resolved\x2C exact: true };\n }\n\n let bestMatch = '';\n const keys = ObjectGetOwnPropertyNames(exports);\n for (let i = 0; i < keys.length; i++) {\n const key = keys[i];\n if (key[key.length - 1] === '*' &&\n StringPrototypeStartsWith(packageSubpath\x2C\n StringPrototypeSlice(key\x2C 0\x2C -1)) &&\n packageSubpath.length >= key.length &&\n key.length > bestMatch.length) {\n bestMatch = key;\n } else if (key[key.length - 1] === '/' &&\n StringPrototypeStartsWith(packageSubpath\x2C key) &&\n key.length > bestMatch.length) {\n bestMatch = key;\n }\n }\n\n if (bestMatch) {\n const target = exports[bestMatch];\n const pattern = bestMatch[bestMatch.length - 1] === '*';\n const subpath = StringPrototypeSubstr(packageSubpath\x2C bestMatch.length -\n (pattern ? 1 : 0));\n const resolved = resolvePackageTarget(packageJSONUrl\x2C target\x2C subpath\x2C\n bestMatch\x2C base\x2C pattern\x2C false\x2C\n conditions);\n if (resolved === null || resolved === undefined)\n throwExportsNotFound(packageSubpath\x2C packageJSONUrl\x2C base);\n if (!pattern)\n emitFolderMapDeprecation(bestMatch\x2C packageJSONUrl\x2C true\x2C base);\n return { resolved\x2C exact: pattern };\n }\n\n throwExportsNotFound(packageSubpath\x2C packageJSONUrl\x2C base);\n}\n\nfunction packageImportsResolve(name\x2C base\x2C conditions) {\n if (name === '#' || StringPrototypeStartsWith(name\x2C '#/')) {\n const reason = 'is not a valid internal imports specifier name';\n throw new ERR_INVALID_MODULE_SPECIFIER(name\x2C reason\x2C fileURLToPath(base));\n }\n let packageJSONUrl;\n const packageConfig = getPackageScopeConfig(base);\n if (packageConfig.exists) {\n packageJSONUrl = pathToFileURL(packageConfig.pjsonPath);\n const imports = packageConfig.imports;\n if (imports) {\n if (ObjectPrototypeHasOwnProperty(imports\x2C name)) {\n const resolved = resolvePackageTarget(\n packageJSONUrl\x2C imports[name]\x2C ''\x2C name\x2C base\x2C false\x2C true\x2C conditions\n );\n if (resolved !== null)\n return { resolved\x2C exact: true };\n } else {\n let bestMatch = '';\n const keys = ObjectGetOwnPropertyNames(imports);\n for (let i = 0; i < keys.length; i++) {\n const key = keys[i];\n if (key[key.length - 1] === '*' &&\n StringPrototypeStartsWith(name\x2C\n StringPrototypeSlice(key\x2C 0\x2C -1)) &&\n name.length >= key.length &&\n key.length > bestMatch.length) {\n bestMatch = key;\n } else if (key[key.length - 1] === '/' &&\n StringPrototypeStartsWith(name\x2C key) &&\n key.length > bestMatch.length) {\n bestMatch = key;\n }\n }\n\n if (bestMatch) {\n const target = imports[bestMatch];\n const pattern = bestMatch[bestMatch.length - 1] === '*';\n const subpath = StringPrototypeSubstr(name\x2C bestMatch.length -\n (pattern ? 1 : 0));\n const resolved = resolvePackageTarget(\n packageJSONUrl\x2C target\x2C subpath\x2C bestMatch\x2C base\x2C pattern\x2C true\x2C\n conditions);\n if (resolved !== null) {\n if (!pattern)\n emitFolderMapDeprecation(bestMatch\x2C packageJSONUrl\x2C false\x2C base);\n return { resolved\x2C exact: pattern };\n }\n }\n }\n }\n }\n throwImportNotDefined(name\x2C packageJSONUrl\x2C base);\n}\n\nfunction getPackageType(url) {\n const packageConfig = getPackageScopeConfig(url);\n return packageConfig.type;\n}\n\nfunction parsePackageName(specifier\x2C base) {\n let separatorIndex = StringPrototypeIndexOf(specifier\x2C '/');\n let validPackageName = true;\n let isScoped = false;\n if (specifier[0] === '@') {\n isScoped = true;\n if (separatorIndex === -1 || specifier.length === 0) {\n validPackageName = false;\n } else {\n separatorIndex = StringPrototypeIndexOf(\n specifier\x2C '/'\x2C separatorIndex + 1);\n }\n }\n\n const packageName = separatorIndex === -1 ?\n specifier : StringPrototypeSlice(specifier\x2C 0\x2C separatorIndex);\n\n // Package name cannot have leading . and cannot have percent-encoding or\n // separators.\n for (let i = 0; i < packageName.length; i++) {\n if (packageName[i] === '%' || packageName[i] === '\\\\') {\n validPackageName = false;\n break;\n }\n }\n\n if (!validPackageName) {\n throw new ERR_INVALID_MODULE_SPECIFIER(\n specifier\x2C 'is not a valid package name'\x2C fileURLToPath(base));\n }\n\n const packageSubpath = '.' + (separatorIndex === -1 ? '' :\n StringPrototypeSlice(specifier\x2C separatorIndex));\n\n return { packageName\x2C packageSubpath\x2C isScoped };\n}\n\n/**\n * @param {string} specifier\n * @param {URL} base\n * @param {Set<string>} conditions\n * @returns {URL}\n */\nfunction packageResolve(specifier\x2C base\x2C conditions) {\n const { packageName\x2C packageSubpath\x2C isScoped } =\n parsePackageName(specifier\x2C base);\n\n // ResolveSelf\n const packageConfig = getPackageScopeConfig(base);\n if (packageConfig.exists) {\n const packageJSONUrl = pathToFileURL(packageConfig.pjsonPath);\n if (packageConfig.name === packageName &&\n packageConfig.exports !== undefined && packageConfig.exports !== null) {\n return packageExportsResolve(\n packageJSONUrl\x2C packageSubpath\x2C packageConfig\x2C base\x2C conditions\n ).resolved;\n }\n }\n\n let packageJSONUrl =\n new URL('./node_modules/' + packageName + '/package.json'\x2C base);\n let packageJSONPath = fileURLToPath(packageJSONUrl);\n let lastPath;\n do {\n const stat = tryStatSync(StringPrototypeSlice(packageJSONPath\x2C 0\x2C\n packageJSONPath.length - 13));\n if (!stat.isDirectory()) {\n lastPath = packageJSONPath;\n packageJSONUrl = new URL((isScoped ?\n '../../../../node_modules/' : '../../../node_modules/') +\n packageName + '/package.json'\x2C packageJSONUrl);\n packageJSONPath = fileURLToPath(packageJSONUrl);\n continue;\n }\n\n // Package match.\n const packageConfig = getPackageConfig(packageJSONPath\x2C specifier\x2C base);\n if (packageConfig.exports !== undefined && packageConfig.exports !== null)\n return packageExportsResolve(\n packageJSONUrl\x2C packageSubpath\x2C packageConfig\x2C base\x2C conditions\n ).resolved;\n if (packageSubpath === '.')\n return legacyMainResolve(packageJSONUrl\x2C packageConfig\x2C base);\n return new URL(packageSubpath\x2C packageJSONUrl);\n // Cross-platform root check.\n } while (packageJSONPath.length !== lastPath.length);\n\n // eslint can't handle the above code.\n // eslint-disable-next-line no-unreachable\n throw new ERR_MODULE_NOT_FOUND(packageName\x2C fileURLToPath(base));\n}\n\nfunction isBareSpecifier(specifier) {\n return specifier[0] && specifier[0] !== '/' && specifier[0] !== '.';\n}\n\nfunction isRelativeSpecifier(specifier) {\n if (specifier[0] === '.') {\n if (specifier.length === 1 || specifier[1] === '/') return true;\n if (specifier[1] === '.') {\n if (specifier.length === 2 || specifier[2] === '/') return true;\n }\n }\n return false;\n}\n\nfunction shouldBeTreatedAsRelativeOrAbsolutePath(specifier) {\n if (specifier === '') return false;\n if (specifier[0] === '/') return true;\n return isRelativeSpecifier(specifier);\n}\n\n/**\n * @param {string} specifier\n * @param {URL} base\n * @param {Set<string>} conditions\n * @returns {URL}\n */\nfunction moduleResolve(specifier\x2C base\x2C conditions) {\n // Order swapped from spec for minor perf gain.\n // Ok since relative URLs cannot parse as URLs.\n let resolved;\n if (shouldBeTreatedAsRelativeOrAbsolutePath(specifier)) {\n resolved = new URL(specifier\x2C base);\n } else if (specifier[0] === '#') {\n ({ resolved } = packageImportsResolve(specifier\x2C base\x2C conditions));\n } else {\n try {\n resolved = new URL(specifier);\n } catch {\n resolved = packageResolve(specifier\x2C base\x2C conditions);\n }\n }\n return finalizeResolution(resolved\x2C base);\n}\n\n/**\n * Try to resolve an import as a CommonJS module\n * @param {string} specifier\n * @param {string} parentURL\n * @returns {boolean|string}\n */\nfunction resolveAsCommonJS(specifier\x2C parentURL) {\n try {\n const parent = fileURLToPath(parentURL);\n const tmpModule = new CJSModule(parent\x2C null);\n tmpModule.paths = CJSModule._nodeModulePaths(parent);\n\n let found = CJSModule._resolveFilename(specifier\x2C tmpModule\x2C false);\n\n // If it is a relative specifier return the relative path\n // to the parent\n if (isRelativeSpecifier(specifier)) {\n found = relative(parent\x2C found);\n // Add '.separator if the path does not start with '..separator'\n // This should be a safe assumption because when loading\n // esm modules there should be always a file specified so\n // there should not be a specifier like '..' or '.'\n if (!StringPrototypeStartsWith(found\x2C `..${sep}`)) {\n found = `.${sep}${found}`;\n }\n } else if (isBareSpecifier(specifier)) {\n // If it is a bare specifier return the relative path within the\n // module\n const pkg = StringPrototypeSplit(specifier\x2C '/')[0];\n const index = StringPrototypeIndexOf(found\x2C pkg);\n if (index !== -1) {\n found = StringPrototypeSlice(found\x2C index);\n }\n }\n // Normalize the path separator to give a valid suggestion\n // on Windows\n if (process.platform === 'win32') {\n found = StringPrototypeReplace(found\x2C new RegExp(`\\\\${sep}`\x2C 'g')\x2C '/');\n }\n return found;\n } catch {\n return false;\n }\n}\n\nfunction defaultResolve(specifier\x2C context = {}\x2C defaultResolveUnused) {\n let { parentURL\x2C conditions } = context;\n if (parentURL && policy?.manifest) {\n const redirects = policy.manifest.getDependencyMapper(parentURL);\n if (redirects) {\n const { resolve\x2C reaction } = redirects;\n const destination = resolve(specifier\x2C new SafeSet(conditions));\n let missing = true;\n if (destination === true) {\n missing = false;\n } else if (destination) {\n const href = destination.href;\n return { url: href };\n }\n if (missing) {\n reaction(new ERR_MANIFEST_DEPENDENCY_MISSING(\n parentURL\x2C\n specifier\x2C\n ArrayPrototypeJoin([...conditions]\x2C '\x2C '))\n );\n }\n }\n }\n let parsed;\n try {\n parsed = new URL(specifier);\n if (parsed.protocol === 'data:') {\n return {\n url: specifier\n };\n }\n } catch {}\n if (parsed && parsed.protocol === 'node:')\n return { url: specifier };\n if (parsed && parsed.protocol !== 'file:' && parsed.protocol !== 'data:')\n throw new ERR_UNSUPPORTED_ESM_URL_SCHEME(parsed);\n if (NativeModule.canBeRequiredByUsers(specifier)) {\n return {\n url: 'node:' + specifier\n };\n }\n if (parentURL && StringPrototypeStartsWith(parentURL\x2C 'data:')) {\n // This is gonna blow up\x2C we want the error\n new URL(specifier\x2C parentURL);\n }\n\n const isMain = parentURL === undefined;\n if (isMain) {\n parentURL = pathToFileURL(`${process.cwd()}/`).href;\n\n // This is the initial entry point to the program\x2C and --input-type has\n // been passed as an option; but --input-type can only be used with\n // --eval\x2C --print or STDIN string input. It is not allowed with file\n // input\x2C to avoid user confusion over how expansive the effect of the\n // flag should be (i.e. entry point only\x2C package scope surrounding the\n // entry point\x2C etc.).\n if (typeFlag)\n throw new ERR_INPUT_TYPE_NOT_ALLOWED();\n }\n\n conditions = getConditionsSet(conditions);\n let url;\n try {\n url = moduleResolve(specifier\x2C parentURL\x2C conditions);\n } catch (error) {\n // Try to give the user a hint of what would have been the\n // resolved CommonJS module\n if (error.code === 'ERR_MODULE_NOT_FOUND' ||\n error.code === 'ERR_UNSUPPORTED_DIR_IMPORT') {\n if (StringPrototypeStartsWith(specifier\x2C 'file://')) {\n specifier = fileURLToPath(specifier);\n }\n const found = resolveAsCommonJS(specifier\x2C parentURL);\n if (found) {\n // Modify the stack and message string to include the hint\n const lines = StringPrototypeSplit(error.stack\x2C '\\n');\n const hint = `Did you mean to import ${found}?`;\n error.stack =\n ArrayPrototypeShift(lines) + '\\n' +\n hint + '\\n' +\n ArrayPrototypeJoin(lines\x2C '\\n');\n error.message += `\\n${hint}`;\n }\n }\n throw error;\n }\n\n if (isMain ? !preserveSymlinksMain : !preserveSymlinks) {\n const urlPath = fileURLToPath(url);\n const real = realpathSync(urlPath\x2C {\n [internalFS.realpathCacheKey]: realpathCache\n });\n const old = url;\n url = pathToFileURL(\n real + (StringPrototypeEndsWith(urlPath\x2C sep) ? '/' : ''));\n url.search = old.search;\n url.hash = old.hash;\n }\n\n return { url: `${url}` };\n}\n\nmodule.exports = {\n DEFAULT_CONDITIONS\x2C\n defaultResolve\x2C\n encodedSepRegEx\x2C\n getPackageScopeConfig\x2C\n getPackageType\x2C\n packageExportsResolve\x2C\n packageImportsResolve\n};\n\n// cycle\nconst { defaultGetFormat } = require('internal/modules/esm/get_format');\n
code-source-info,0xce7fc6268f6,106,0,31198,C0O0C4O31198,,
code-creation,Function,10,39500,0xce7fc6277a6,977, node:internal/modules/esm/resolve:1:1,0xce7fc626860,~
code-source-info,0xce7fc6277a6,106,0,31198,C0O0C361O25C367O41C373O63C379O86C385O99C391O116C396O132C402O161C408O194C414O204C420O227C425O238C431O249C437O259C443O286C449O312C455O338C461O362C467O386C473O415C479O474C482O474C486O474C488O529C491O529C496O512C502O617C505O617C510O578C516O594C522O606C528O659C531O659C536O640C542O754C548O754C557O798C564O754C566O878C569O878C574O851C580O856C586O866C592O920C598O920C602O920C604O988C610O988C614O988C616O1049C622O1049C626O1049C628O1127C631O1127C636O1089C642O1094C648O1109C654O1501C657O1501C662O1527C667O1162C673O1192C679O1217C685O1249C691O1279C697O1309C703O1344C709O1368C715O1402C721O1435C727O1465C733O1565C736O1565C741O1551C747O1632C750O1632C754O1632C756O1704C762O1704C767O1763C774O1798C775O1798C829O1763C833O1763C835O1847C843O1847C848O1847C850O1912C853O1912C858O1912C860O4006C862O4006C867O4006C869O4046C871O4046C876O4046C878O4115C882O4115C884O9025C888O9025C890O9876C894O9876C896O12297C900O12297C902O12360C906O12360C908O30942C915O30963C921O30985C927O31003C933O31022C939O31047C945O31065C951O31090C957O30957C961O31154C964O31154C969O31133C976O31197,,
tick,0x7f4debd44300,39578,1,0xb515a0,3,0xd44a10,0xa52511ba43c,0xa52511b972d,0xce7fc606397,0xa52511ba45d,0xa52511b972d,0xce7fc601335,0xa52511ba45d,0xa52511b972d,0xa52511bed5f,0xa52511ba45d,0xa52511b972d,0xa52511b9222
tick,0x15620cb,39803,0,0x0,0,0xce7fc627a86,0xa52511ba45d,0xa52511b972d,0xce7fc606397,0xa52511ba45d,0xa52511b972d,0xce7fc601335,0xa52511ba45d,0xa52511b972d,0xa52511bed5f,0xa52511ba45d,0xa52511b972d,0xa52511b9222
code-creation,Eval,10,39998,0xce7fc62a2d6,5, node:internal/modules/esm/get_format:1:1,0xce7fc62a0b0,~
script-source,107,node:internal/modules/esm/get_format,'use strict';\nconst {\n RegExpPrototypeExec\x2C\n StringPrototypeStartsWith\x2C\n} = primordials;\nconst { extname } = require('path');\nconst { getOptionValue } = require('internal/options');\n\nconst experimentalJsonModules = getOptionValue('--experimental-json-modules');\nconst experimentalSpecifierResolution =\n getOptionValue('--experimental-specifier-resolution');\nconst experimentalWasmModules = getOptionValue('--experimental-wasm-modules');\nconst { getPackageType } = require('internal/modules/esm/resolve');\nconst { URL\x2C fileURLToPath } = require('internal/url');\nconst { ERR_UNKNOWN_FILE_EXTENSION } = require('internal/errors').codes;\n\nconst extensionFormatMap = {\n '__proto__': null\x2C\n '.cjs': 'commonjs'\x2C\n '.js': 'module'\x2C\n '.mjs': 'module'\n};\n\nconst legacyExtensionFormatMap = {\n '__proto__': null\x2C\n '.cjs': 'commonjs'\x2C\n '.js': 'commonjs'\x2C\n '.json': 'commonjs'\x2C\n '.mjs': 'module'\x2C\n '.node': 'commonjs'\n};\n\nif (experimentalWasmModules)\n extensionFormatMap['.wasm'] = legacyExtensionFormatMap['.wasm'] = 'wasm';\n\nif (experimentalJsonModules)\n extensionFormatMap['.json'] = legacyExtensionFormatMap['.json'] = 'json';\n\nfunction defaultGetFormat(url\x2C context\x2C defaultGetFormatUnused) {\n if (StringPrototypeStartsWith(url\x2C 'node:')) {\n return { format: 'builtin' };\n }\n const parsed = new URL(url);\n if (parsed.protocol === 'data:') {\n const { 1: mime } = RegExpPrototypeExec(\n /^([^/]+\\/[^;\x2C]+)(?:[^\x2C]*?)(;base64)?\x2C/\x2C\n parsed.pathname\x2C\n ) || [ \x2C null ];\n const format = ({\n '__proto__': null\x2C\n 'text/javascript': 'module'\x2C\n 'application/json': experimentalJsonModules ? 'json' : null\x2C\n 'application/wasm': experimentalWasmModules ? 'wasm' : null\n })[mime] || null;\n return { format };\n } else if (parsed.protocol === 'file:') {\n const ext = extname(parsed.pathname);\n let format;\n if (ext === '.js') {\n format = getPackageType(parsed.href) === 'module' ? 'module' : 'commonjs';\n } else {\n format = extensionFormatMap[ext];\n }\n if (!format) {\n if (experimentalSpecifierResolution === 'node') {\n process.emitWarning(\n 'The Node.js specifier resolution in ESM is experimental.'\x2C\n 'ExperimentalWarning');\n format = legacyExtensionFormatMap[ext];\n } else {\n throw new ERR_UNKNOWN_FILE_EXTENSION(ext\x2C fileURLToPath(url));\n }\n }\n return { format: format || null };\n }\n return { format: null };\n}\n\nmodule.exports = {\n defaultGetFormat\x2C\n extensionFormatMap\x2C\n legacyExtensionFormatMap\x2C\n};\n
code-source-info,0xce7fc62a2d6,107,0,2537,C0O0C4O2537,,
code-creation,Function,10,40121,0xce7fc62a596,258, node:internal/modules/esm/get_format:1:1,0xce7fc62a240,~
code-source-info,0xce7fc62a596,107,0,2537,C0O0C50O24C56O47C62O111C65O111C70O99C76O155C79O155C84O136C89O217C92O217C96O217C98O306C101O306C105O306C107O393C110O393C114O393C116O467C119O467C124O448C130O539C133O539C138O516C144O521C150O603C153O603C158O629C163O572C169O665C173O665C175O785C179O785C181O920C185O951C194O1015C200O979C204O1026C208O1057C217O1121C223O1085C227O2445C234O2466C240O2486C246O2508C252O2460C257O2536,,
code-creation,LazyCompile,10,40236,0xce7fc62ab06,13,desc.value node:internal/per_context/primordials:325:32,0x334c17f09d60,~
code-source-info,0xce7fc62ab06,6,9496,9555,C0O9513C7O9520C12O9543,,
code-creation,LazyCompile,10,40261,0xce7fc62ac1e,13,SafeIterator node:internal/per_context/primordials:270:16,0x334c17f097b0,~
code-source-info,0xce7fc62ac1e,6,7785,7845,C0O7804C3O7821C7O7819C12O7844,,
code-creation,LazyCompile,10,40287,0xce7fc62ad66,13,next node:internal/per_context/primordials:273:9,0x334c17f09878,~
code-source-info,0xce7fc62ad66,6,7854,7899,C0O7865C3O7882C8O7872C12O7893,,
code-creation,LazyCompile,10,40498,0xce7fc62b1e6,126,deprecate node:internal/util:81:19,0x334c17f29498,~
code-source-info,0xce7fc62b1e6,12,1940,3027,C0O1940C26O1960C31O1972C37O1986C42O2002C44O2012C45O2020C55O2076C73O2082C78O2076C79O2148C80O2148C82O2723C95O2723C100O2763C103O2770C109O2963C115O2989C119O2984C123O3007C125O3025,,
code-creation,Eval,10,40646,0xce7fc62b97e,5, node:internal/modules/esm/module_map:1:1,0xce7fc62b7a0,~
script-source,108,node:internal/modules/esm/module_map,'use strict';\n\nconst ModuleJob = require('internal/modules/esm/module_job');\nconst {\n SafeMap\x2C\n} = primordials;\nlet debug = require('internal/util/debuglog').debuglog('esm'\x2C (fn) => {\n debug = fn;\n});\nconst { ERR_INVALID_ARG_TYPE } = require('internal/errors').codes;\nconst { validateString } = require('internal/validators');\n\n// Tracks the state of the loader-level module cache\nclass ModuleMap extends SafeMap {\n constructor(i) { super(i); } // eslint-disable-line no-useless-constructor\n get(url) {\n validateString(url\x2C 'url');\n return super.get(url);\n }\n set(url\x2C job) {\n validateString(url\x2C 'url');\n if (job instanceof ModuleJob !== true &&\n typeof job !== 'function') {\n throw new ERR_INVALID_ARG_TYPE('job'\x2C 'ModuleJob'\x2C job);\n }\n debug(`Storing ${url} in ModuleMap`);\n return super.set(url\x2C job);\n }\n has(url) {\n validateString(url\x2C 'url');\n return super.has(url);\n }\n}\nmodule.exports = ModuleMap;\n
code-source-info,0xce7fc62b97e,108,0,955,C0O0C4O955,,
code-creation,Function,10,40700,0xce7fc62bdae,149, node:internal/modules/esm/module_map:1:1,0xce7fc62b8e8,~
code-source-info,0xce7fc62bdae,108,0,955,C0O0C17O33C20O33C24O33C26O87C31O125C34O125C39O158C52O159C58O125C60O236C63O236C68O262C73O211C79O297C82O297C87O278C97O407C141O927C143O942C148O954,,
tick,0xd12710,40882,1,0xb515a0,2,0xd44a10,0xa52511ba43c,0xa52511b972d,0xce7fc62bdc2,0xa52511ba45d,0xa52511b972d,0xce7fc6013b9,0xa52511ba45d,0xa52511b972d,0xa52511bed5f,0xa52511ba45d,0xa52511b972d,0xa52511b9222
code-creation,Eval,10,40978,0xce7fc62c7e6,5, node:internal/modules/esm/module_job:1:1,0xce7fc62c4f0,~
script-source,109,node:internal/modules/esm/module_job,'use strict';\n\nconst {\n ArrayPrototypeJoin\x2C\n ArrayPrototypeMap\x2C\n ArrayPrototypePush\x2C\n ArrayPrototypeSome\x2C\n FunctionPrototype\x2C\n ObjectSetPrototypeOf\x2C\n PromiseAll\x2C\n PromiseResolve\x2C\n PromisePrototypeCatch\x2C\n ReflectApply\x2C\n RegExpPrototypeTest\x2C\n SafeArrayIterator\x2C\n SafeSet\x2C\n StringPrototypeIncludes\x2C\n StringPrototypeMatch\x2C\n StringPrototypeReplace\x2C\n StringPrototypeSplit\x2C\n StringPrototypeStartsWith\x2C\n} = primordials;\n\nconst { ModuleWrap } = internalBinding('module_wrap');\n\nconst { decorateErrorStack } = require('internal/util');\nconst {\n getSourceMapsEnabled\x2C\n} = require('internal/source_map/source_map_cache');\nconst assert = require('internal/assert');\nconst resolvedPromise = PromiseResolve();\n\nconst noop = FunctionPrototype;\n\nlet hasPausedEntry = false;\n\nconst CJSGlobalLike = [\n 'require'\x2C\n 'module'\x2C\n 'exports'\x2C\n '__filename'\x2C\n '__dirname'\x2C\n];\nconst isCommonJSGlobalLikeNotDefinedError = (errorMessage) =>\n ArrayPrototypeSome(\n CJSGlobalLike\x2C\n (globalLike) => errorMessage === `${globalLike} is not defined`\n );\n\n/* A ModuleJob tracks the loading of a single Module\x2C and the ModuleJobs of\n * its dependencies\x2C over time. */\nclass ModuleJob {\n // `loader` is the Loader instance used for loading dependencies.\n // `moduleProvider` is a function\n constructor(loader\x2C url\x2C moduleProvider\x2C isMain\x2C inspectBrk) {\n this.loader = loader;\n this.isMain = isMain;\n this.inspectBrk = inspectBrk;\n\n this.module = undefined;\n // Expose the promise to the ModuleWrap directly for linking below.\n // `this.module` is also filled in below.\n this.modulePromise = ReflectApply(moduleProvider\x2C loader\x2C [url\x2C isMain]);\n\n // Wait for the ModuleWrap instance being linked with all dependencies.\n const link = async () => {\n this.module = await this.modulePromise;\n assert(this.module instanceof ModuleWrap);\n\n // Explicitly keeping track of dependency jobs is needed in order\n // to flatten out the dependency graph below in `_instantiate()`\x2C\n // so that circular dependencies can't cause a deadlock by two of\n // these `link` callbacks depending on each other.\n const dependencyJobs = [];\n const promises = this.module.link(async (specifier) => {\n const jobPromise = this.loader.getModuleJob(specifier\x2C url);\n ArrayPrototypePush(dependencyJobs\x2C jobPromise);\n const job = await jobPromise;\n return job.modulePromise;\n });\n\n if (promises !== undefined)\n await PromiseAll(new SafeArrayIterator(promises));\n\n return PromiseAll(new SafeArrayIterator(dependencyJobs));\n };\n // Promise for the list of all dependencyJobs.\n this.linked = link();\n // This promise is awaited later anyway\x2C so silence\n // 'unhandled rejection' warnings.\n PromisePrototypeCatch(this.linked\x2C noop);\n\n // instantiated == deep dependency jobs wrappers are instantiated\x2C\n // and module wrapper is instantiated.\n this.instantiated = undefined;\n }\n\n instantiate() {\n if (this.instantiated === undefined) {\n this.instantiated = this._instantiate();\n }\n return this.instantiated;\n }\n\n async _instantiate() {\n const jobsInGraph = new SafeSet();\n const addJobsToDependencyGraph = async (moduleJob) => {\n if (jobsInGraph.has(moduleJob)) {\n return;\n }\n jobsInGraph.add(moduleJob);\n const dependencyJobs = await moduleJob.linked;\n return PromiseAll(new SafeArrayIterator(\n ArrayPrototypeMap(dependencyJobs\x2C addJobsToDependencyGraph)));\n };\n await addJobsToDependencyGraph(this);\n\n try {\n if (!hasPausedEntry && this.inspectBrk) {\n hasPausedEntry = true;\n const initWrapper = internalBinding('inspector').callAndPauseOnStart;\n initWrapper(this.module.instantiate\x2C this.module);\n } else {\n this.module.instantiate();\n }\n } catch (e) {\n decorateErrorStack(e);\n // TODO(@bcoe): Add source map support to exception that occurs as result\n // of missing named export. This is currently not possible because\n // stack trace originates in module_job\x2C not the file itself. A hidden\n // symbol with filename could be set in node_errors.cc to facilitate this.\n if (!getSourceMapsEnabled() &&\n StringPrototypeIncludes(e.message\x2C\n ' does not provide an export named')) {\n const splitStack = StringPrototypeSplit(e.stack\x2C '\\n');\n const parentFileUrl = StringPrototypeReplace(\n splitStack[0]\x2C\n /:\\d+$/\x2C\n ''\n );\n const { 1: childSpecifier\x2C 2: name } = StringPrototypeMatch(\n e.message\x2C\n /module '(.*)' does not provide an export named '(.+)'/);\n const childFileURL =\n await this.loader.resolve(childSpecifier\x2C parentFileUrl);\n const format = await this.loader.getFormat(childFileURL);\n if (format === 'commonjs') {\n const importStatement = splitStack[1];\n // TODO(@ctavan): The original error stack only provides the single\n // line which causes the error. For multi-line import statements we\n // cannot generate an equivalent object destructuring assignment by\n // just parsing the error stack.\n const oneLineNamedImports = StringPrototypeMatch(importStatement\x2C /{.*}/);\n const destructuringAssignment = oneLineNamedImports &&\n StringPrototypeReplace(oneLineNamedImports\x2C /\\s+as\\s+/g\x2C ': ');\n e.message = `Named export '${name}' not found. The requested module` +\n ` '${childSpecifier}' is a CommonJS module\x2C which may not support` +\n ' all module.exports as named exports.\\nCommonJS modules can ' +\n 'always be imported via the default export\x2C for example using:' +\n `\\n\\nimport pkg from '${childSpecifier}';\\n${\n destructuringAssignment ?\n `const ${destructuringAssignment} = pkg;\\n` : ''}`;\n const newStack = StringPrototypeSplit(e.stack\x2C '\\n');\n newStack[3] = `SyntaxError: ${e.message}`;\n e.stack = ArrayPrototypeJoin(newStack\x2C '\\n');\n }\n }\n throw e;\n }\n\n for (const dependencyJob of jobsInGraph) {\n // Calling `this.module.instantiate()` instantiates not only the\n // ModuleWrap in this module\x2C but all modules in the graph.\n dependencyJob.instantiated = resolvedPromise;\n }\n }\n\n async run() {\n await this.instantiate();\n const timeout = -1;\n const breakOnSigint = false;\n try {\n await this.module.evaluate(timeout\x2C breakOnSigint);\n } catch (e) {\n if (e?.name === 'ReferenceError' &&\n isCommonJSGlobalLikeNotDefinedError(e.message)) {\n e.message += ' in ES module scope';\n\n if (StringPrototypeStartsWith(e.message\x2C 'require ')) {\n e.message += '\x2C you can use import instead';\n }\n\n const packageConfig =\n StringPrototypeStartsWith(this.module.url\x2C 'file://') &&\n RegExpPrototypeTest(/\\.js(\\?[^#]*)?(#.*)?$/\x2C this.module.url) &&\n require('internal/modules/esm/resolve')\n .getPackageScopeConfig(this.module.url);\n if (packageConfig.type === 'module') {\n e.message +=\n '\\nThis file is being treated as an ES module because it has a ' +\n `'.js' file extension and '${packageConfig.pjsonPath}' contains ` +\n '"type": "module". To treat it as a CommonJS script\x2C rename it ' +\n 'to use the \\'.cjs\\' file extension.';\n }\n }\n throw e;\n }\n return { module: this.module };\n }\n}\nObjectSetPrototypeOf(ModuleJob.prototype\x2C null);\nmodule.exports = ModuleJob;\n
code-source-info,0xce7fc62c7e6,109,0,7676,C0O0C4O7676,,
code-creation,Function,10,41301,0xce7fc62cce6,334, node:internal/modules/esm/module_job:1:1,0xce7fc62c750,~
code-source-info,0xce7fc62cce6,109,0,7676,C0O0C85O25C91O47C97O68C103O90C109O112C114O133C119O157C125O171C130O189C136O214C142O230C148O253C154O274C160O285C166O312C172O336C178O362C184O386C190O454C196O454C201O439C207O518C213O518C218O495C224O580C230O580C235O554C241O644C247O644C251O644C253O696C256O696C258O728C260O728C262O769C263O769C265O799C269O799C271O917C275O917C314O7630C321O7599C326O7648C328O7663C333O7675,,
code-creation,Eval,10,41782,0xce7fc62e3f6,5, node:internal/vm/module:1:1,0xce7fc62dea0,~
script-source,110,node:internal/vm/module,'use strict';\n\nconst assert = require('internal/assert');\nconst {\n ArrayIsArray\x2C\n ArrayPrototypeForEach\x2C\n ArrayPrototypeIndexOf\x2C\n ArrayPrototypeSome\x2C\n ObjectCreate\x2C\n ObjectDefineProperty\x2C\n ObjectGetPrototypeOf\x2C\n ObjectSetPrototypeOf\x2C\n PromiseAll\x2C\n ReflectApply\x2C\n SafeWeakMap\x2C\n Symbol\x2C\n SymbolToStringTag\x2C\n TypeError\x2C\n} = primordials;\n\nconst { isContext } = internalBinding('contextify');\nconst {\n isModuleNamespaceObject\x2C\n isArrayBufferView\x2C\n} = require('internal/util/types');\nconst {\n getConstructorOf\x2C\n customInspectSymbol\x2C\n emitExperimentalWarning\x2C\n} = require('internal/util');\nconst {\n ERR_INVALID_ARG_TYPE\x2C\n ERR_INVALID_ARG_VALUE\x2C\n ERR_VM_MODULE_ALREADY_LINKED\x2C\n ERR_VM_MODULE_DIFFERENT_CONTEXT\x2C\n ERR_VM_MODULE_CANNOT_CREATE_CACHED_DATA\x2C\n ERR_VM_MODULE_LINKING_ERRORED\x2C\n ERR_VM_MODULE_NOT_MODULE\x2C\n ERR_VM_MODULE_STATUS\x2C\n} = require('internal/errors').codes;\nconst {\n validateBoolean\x2C\n validateFunction\x2C\n validateInt32\x2C\n validateObject\x2C\n validateUint32\x2C\n validateString\x2C\n} = require('internal/validators');\n\nconst binding = internalBinding('module_wrap');\nconst {\n ModuleWrap\x2C\n kUninstantiated\x2C\n kInstantiating\x2C\n kInstantiated\x2C\n kEvaluating\x2C\n kEvaluated\x2C\n kErrored\x2C\n} = binding;\n\nconst STATUS_MAP = {\n [kUninstantiated]: 'unlinked'\x2C\n [kInstantiating]: 'linking'\x2C\n [kInstantiated]: 'linked'\x2C\n [kEvaluating]: 'evaluating'\x2C\n [kEvaluated]: 'evaluated'\x2C\n [kErrored]: 'errored'\x2C\n};\n\nlet globalModuleId = 0;\nconst defaultModuleName = 'vm:module';\nconst wrapToModuleMap = new SafeWeakMap();\n\nconst kWrap = Symbol('kWrap');\nconst kContext = Symbol('kContext');\nconst kPerContextModuleId = Symbol('kPerContextModuleId');\nconst kLink = Symbol('kLink');\n\nclass Module {\n constructor(options) {\n emitExperimentalWarning('VM Modules');\n\n if (new.target === Module) {\n // eslint-disable-next-line no-restricted-syntax\n throw new TypeError('Module is not a constructor');\n }\n\n const {\n context\x2C\n sourceText\x2C\n syntheticExportNames\x2C\n syntheticEvaluationSteps\x2C\n } = options;\n\n if (context !== undefined) {\n validateObject(context\x2C 'context');\n if (!isContext(context)) {\n throw new ERR_INVALID_ARG_TYPE('options.context'\x2C 'vm.Context'\x2C\n context);\n }\n }\n\n let { identifier } = options;\n if (identifier !== undefined) {\n validateString(identifier\x2C 'options.identifier');\n } else if (context === undefined) {\n identifier = `${defaultModuleName}(${globalModuleId++})`;\n } else if (context[kPerContextModuleId] !== undefined) {\n const curId = context[kPerContextModuleId];\n identifier = `${defaultModuleName}(${curId})`;\n context[kPerContextModuleId] += 1;\n } else {\n identifier = `${defaultModuleName}(0)`;\n ObjectDefineProperty(context\x2C kPerContextModuleId\x2C {\n value: 1\x2C\n writable: true\x2C\n enumerable: false\x2C\n configurable: true\x2C\n });\n }\n\n if (sourceText !== undefined) {\n this[kWrap] = new ModuleWrap(identifier\x2C context\x2C sourceText\x2C\n options.lineOffset\x2C options.columnOffset\x2C\n options.cachedData);\n\n binding.callbackMap.set(this[kWrap]\x2C {\n initializeImportMeta: options.initializeImportMeta\x2C\n importModuleDynamically: options.importModuleDynamically ?\n importModuleDynamicallyWrap(options.importModuleDynamically) :\n undefined\x2C\n });\n } else {\n assert(syntheticEvaluationSteps);\n this[kWrap] = new ModuleWrap(identifier\x2C context\x2C\n syntheticExportNames\x2C\n syntheticEvaluationSteps);\n }\n\n wrapToModuleMap.set(this[kWrap]\x2C this);\n\n this[kContext] = context;\n }\n\n get identifier() {\n if (this[kWrap] === undefined) {\n throw new ERR_VM_MODULE_NOT_MODULE();\n }\n return this[kWrap].url;\n }\n\n get context() {\n if (this[kWrap] === undefined) {\n throw new ERR_VM_MODULE_NOT_MODULE();\n }\n return this[kContext];\n }\n\n get namespace() {\n if (this[kWrap] === undefined) {\n throw new ERR_VM_MODULE_NOT_MODULE();\n }\n if (this[kWrap].getStatus() < kInstantiated) {\n throw new ERR_VM_MODULE_STATUS('must not be unlinked or linking');\n }\n return this[kWrap].getNamespace();\n }\n\n get status() {\n if (this[kWrap] === undefined) {\n throw new ERR_VM_MODULE_NOT_MODULE();\n }\n return STATUS_MAP[this[kWrap].getStatus()];\n }\n\n get error() {\n if (this[kWrap] === undefined) {\n throw new ERR_VM_MODULE_NOT_MODULE();\n }\n if (this[kWrap].getStatus() !== kErrored) {\n throw new ERR_VM_MODULE_STATUS('must be errored');\n }\n return this[kWrap].getError();\n }\n\n async link(linker) {\n if (this[kWrap] === undefined) {\n throw new ERR_VM_MODULE_NOT_MODULE();\n }\n validateFunction(linker\x2C 'linker');\n if (this.status === 'linked') {\n throw new ERR_VM_MODULE_ALREADY_LINKED();\n }\n if (this.status !== 'unlinked') {\n throw new ERR_VM_MODULE_STATUS('must be unlinked');\n }\n await this[kLink](linker);\n this[kWrap].instantiate();\n }\n\n async evaluate(options = {}) {\n if (this[kWrap] === undefined) {\n throw new ERR_VM_MODULE_NOT_MODULE();\n }\n\n validateObject(options\x2C 'options');\n\n let timeout = options.timeout;\n if (timeout === undefined) {\n timeout = -1;\n } else {\n validateUint32(timeout\x2C 'options.timeout'\x2C true);\n }\n const { breakOnSigint = false } = options;\n validateBoolean(breakOnSigint\x2C 'options.breakOnSigint');\n const status = this[kWrap].getStatus();\n if (status !== kInstantiated &&\n status !== kEvaluated &&\n status !== kErrored) {\n throw new ERR_VM_MODULE_STATUS(\n 'must be one of linked\x2C evaluated\x2C or errored'\n );\n }\n await this[kWrap].evaluate(timeout\x2C breakOnSigint);\n }\n\n [customInspectSymbol](depth\x2C options) {\n if (this[kWrap] === undefined) {\n throw new ERR_VM_MODULE_NOT_MODULE();\n }\n if (typeof depth === 'number' && depth < 0)\n return this;\n\n const constructor = getConstructorOf(this) || Module;\n const o = ObjectCreate({ constructor });\n o.status = this.status;\n o.identifier = this.identifier;\n o.context = this.context;\n\n ObjectSetPrototypeOf(o\x2C ObjectGetPrototypeOf(this));\n ObjectDefineProperty(o\x2C SymbolToStringTag\x2C {\n value: constructor.name\x2C\n configurable: true\n });\n\n // Lazy to avoid circular dependency\n const { inspect } = require('internal/util/inspect');\n return inspect(o\x2C { ...options\x2C customInspect: false });\n }\n}\n\nconst kDependencySpecifiers = Symbol('kDependencySpecifiers');\nconst kNoError = Symbol('kNoError');\n\nclass SourceTextModule extends Module {\n #error = kNoError;\n #statusOverride;\n\n constructor(sourceText\x2C options = {}) {\n validateString(sourceText\x2C 'sourceText');\n validateObject(options\x2C 'options');\n\n const {\n lineOffset = 0\x2C\n columnOffset = 0\x2C\n initializeImportMeta\x2C\n importModuleDynamically\x2C\n context\x2C\n identifier\x2C\n cachedData\x2C\n } = options;\n\n validateInt32(lineOffset\x2C 'options.lineOffset');\n validateInt32(columnOffset\x2C 'options.columnOffset');\n\n if (initializeImportMeta !== undefined &&\n typeof initializeImportMeta !== 'function') {\n throw new ERR_INVALID_ARG_TYPE(\n 'options.initializeImportMeta'\x2C 'function'\x2C initializeImportMeta);\n }\n\n if (importModuleDynamically !== undefined &&\n typeof importModuleDynamically !== 'function') {\n throw new ERR_INVALID_ARG_TYPE(\n 'options.importModuleDynamically'\x2C 'function'\x2C\n importModuleDynamically);\n }\n\n if (cachedData !== undefined && !isArrayBufferView(cachedData)) {\n throw new ERR_INVALID_ARG_TYPE(\n 'options.cachedData'\x2C\n ['Buffer'\x2C 'TypedArray'\x2C 'DataView']\x2C\n cachedData\n );\n }\n\n super({\n sourceText\x2C\n context\x2C\n identifier\x2C\n lineOffset\x2C\n columnOffset\x2C\n cachedData\x2C\n initializeImportMeta\x2C\n importModuleDynamically\x2C\n });\n\n this[kLink] = async (linker) => {\n this.#statusOverride = 'linking';\n\n const promises = this[kWrap].link(async (identifier\x2C assert) => {\n const module = await linker(identifier\x2C this\x2C { assert });\n if (module[kWrap] === undefined) {\n throw new ERR_VM_MODULE_NOT_MODULE();\n }\n if (module.context !== this.context) {\n throw new ERR_VM_MODULE_DIFFERENT_CONTEXT();\n }\n if (module.status === 'errored') {\n // TODO(devsnek): replace with ERR_VM_MODULE_LINK_FAILURE\n // and error cause proposal.\n throw new ERR_VM_MODULE_LINKING_ERRORED();\n }\n if (module.status === 'unlinked') {\n await module[kLink](linker);\n }\n return module[kWrap];\n });\n\n try {\n if (promises !== undefined) {\n await PromiseAll(promises);\n }\n } catch (e) {\n this.#error = e;\n throw e;\n } finally {\n this.#statusOverride = undefined;\n }\n };\n\n this[kDependencySpecifiers] = undefined;\n }\n\n get dependencySpecifiers() {\n if (this[kWrap] === undefined) {\n throw new ERR_VM_MODULE_NOT_MODULE();\n }\n if (this[kDependencySpecifiers] === undefined) {\n this[kDependencySpecifiers] = this[kWrap].getStaticDependencySpecifiers();\n }\n return this[kDependencySpecifiers];\n }\n\n get status() {\n if (this[kWrap] === undefined) {\n throw new ERR_VM_MODULE_NOT_MODULE();\n }\n if (this.#error !== kNoError) {\n return 'errored';\n }\n if (this.#statusOverride) {\n return this.#statusOverride;\n }\n return super.status;\n }\n\n get error() {\n if (this[kWrap] === undefined) {\n throw new ERR_VM_MODULE_NOT_MODULE();\n }\n if (this.#error !== kNoError) {\n return this.#error;\n }\n return super.error;\n }\n\n createCachedData() {\n const { status } = this;\n if (status === 'evaluating' ||\n status === 'evaluated' ||\n status === 'errored') {\n throw new ERR_VM_MODULE_CANNOT_CREATE_CACHED_DATA();\n }\n return this[kWrap].createCachedData();\n }\n}\n\nclass SyntheticModule extends Module {\n constructor(exportNames\x2C evaluateCallback\x2C options = {}) {\n if (!ArrayIsArray(exportNames) ||\n ArrayPrototypeSome(exportNames\x2C (e) => typeof e !== 'string')) {\n throw new ERR_INVALID_ARG_TYPE('exportNames'\x2C\n 'Array of unique strings'\x2C\n exportNames);\n } else {\n ArrayPrototypeForEach(exportNames\x2C (name\x2C i) => {\n if (ArrayPrototypeIndexOf(exportNames\x2C name\x2C i + 1) !== -1) {\n throw new ERR_INVALID_ARG_VALUE(`exportNames.${name}`\x2C\n name\x2C\n 'is duplicated');\n }\n });\n }\n validateFunction(evaluateCallback\x2C 'evaluateCallback');\n\n validateObject(options\x2C 'options');\n\n const { context\x2C identifier } = options;\n\n super({\n syntheticExportNames: exportNames\x2C\n syntheticEvaluationSteps: evaluateCallback\x2C\n context\x2C\n identifier\x2C\n });\n\n this[kLink] = () => this[kWrap].link(() => {\n assert.fail('link callback should not be called');\n });\n }\n\n setExport(name\x2C value) {\n if (this[kWrap] === undefined) {\n throw new ERR_VM_MODULE_NOT_MODULE();\n }\n validateString(name\x2C 'name');\n if (this[kWrap].getStatus() < kInstantiated) {\n throw new ERR_VM_MODULE_STATUS('must be linked');\n }\n this[kWrap].setExport(name\x2C value);\n }\n}\n\nfunction importModuleDynamicallyWrap(importModuleDynamically) {\n const importModuleDynamicallyWrapper = async (...args) => {\n const m = await ReflectApply(importModuleDynamically\x2C this\x2C args);\n if (isModuleNamespaceObject(m)) {\n return m;\n }\n if (!m || m[kWrap] === undefined) {\n throw new ERR_VM_MODULE_NOT_MODULE();\n }\n if (m.status === 'errored') {\n throw m.error;\n }\n return m.namespace;\n };\n return importModuleDynamicallyWrapper;\n}\n\nmodule.exports = {\n Module\x2C\n SourceTextModule\x2C\n SyntheticModule\x2C\n importModuleDynamicallyWrap\x2C\n getModuleFromWrap: (wrap) => wrapToModuleMap.get(wrap)\x2C\n};\n
code-source-info,0xce7fc62e3f6,110,0,12310,C0O0C4O12310,,
code-creation,Function,10,42350,0xce7fc62f666,872, node:internal/vm/module:1:1,0xce7fc62e360,~
tick,0x7f4debd44473,42358,1,0xb515a0,3,0xd44a10,0xa52511ba43c,0xa52511b972d,0xa52511bed92,0xa52511ba45d,0xa52511b972d,0xa52511b9222
code-source-info,0xce7fc62f666,110,0,12310,C0O0C156O30C162O30C166O30C168O68C174O84C180O109C186O134C192O156C198O172C204O196C210O220C216O244C222O258C228O274C233O289C238O299C244O320C250O371C253O371C258O357C264O462C270O462C275O412C281O439C287O576C293O576C298O504C304O524C309O547C315O858C321O858C326O884C331O612C337O636C343O661C349O693C355O728C361O771C367O804C373O832C379O1014C385O1014C390O902C396O921C402O941C408O958C414O976C420O994C426O1063C429O1063C433O1063C435O1216C438O1105C444O1119C449O1138C454O1156C460O1173C465O1188C471O1202C477O1245C484O1250C488O1268C495O1283C499O1300C506O1314C510O1330C517O1343C521O1357C528O1374C532O1387C539O1403C543O1414C550O1245C552O1450C553O1450C555O1479C557O1479C559O1516C561O1516C566O1516C568O1550C571O1550C575O1550C577O1584C580O1584C584O1584C586O1632C589O1632C593O1632C595O1677C598O1677C602O1677C660O5923C688O6683C691O6683C695O6683C697O6733C700O6733C704O6733C736O6785C799O10265C827O12150C834O12171C840O12181C846O12201C852O12220C856O12270C866O12165C871O12309,,
code-creation,Function,10,42400,0xce7fc62fbb6,30,<instance_members_initializer> node:internal/vm/module:256:3,0xce7fc62e9e0,~
code-source-info,0xce7fc62fbb6,110,6796,6832,C3O6805C29O6832,,
code-creation,LazyCompile,10,42646,0xce7fc6311de,80,Loader node:internal/modules/esm/loader:45:14,0xa52511bfae8,~
code-source-info,0xce7fc6311de,94,1421,3183,C0O1516C2O1535C4O1533C8O1612C10O1633C13O1629C18O1627C22O1699C24O1719C27O1715C32O1713C36O2223C37O2250C41O2504C43O2520C45O2518C49O2722C51O2740C53O2738C57O2856C59O2874C61O2872C65O3034C67O3058C69O3056C73O3160C74O3175C79O3182,,
code-creation,LazyCompile,10,42687,0xce7fc631bfe,27,ModuleMap node:internal/modules/esm/module_map:15:14,0xce7fc62ba00,~
code-source-info,0xce7fc631bfe,108,430,447,C3O436C7O442C11O436C26O446,,
code-creation,LazyCompile,10,42803,0xce7fc631eee,213,prepareMainThreadExecution node:internal/bootstrap/pre_execution:22:36,0xa52511bb348,~
code-source-info,0xce7fc631eee,91,498,2387,C10O641C15O641C18O743C21O743C25O778C28O778C31O807C34O807C37O827C40O827C43O852C46O852C49O1055C52O1067C57O1071C63O1095C66O1103C77O1159C82O1163C87O1132C91O1124C95O1190C98O1190C101O1282C104O1282C107O1388C110O1388C113O1410C116O1410C119O1469C122O1469C125O1792C128O1792C131O1867C134O1867C137O2064C140O2064C143O2091C146O2091C149O2125C152O2125C155O2153C158O2153C161O2173C164O2173C167O2198C170O2198C173O2242C179O2242C184O2284C189O2302C195O2284C199O2332C202O2332C205O2356C208O2356C212O2386,,
code-creation,LazyCompile,10,42836,0xce7fc633116,19,reconnectZeroFillToggle node:internal/buffer:1072:33,0x38b4b3b31b08,~
code-source-info,0xce7fc633116,19,30717,30757,C0O30724C5O30735C11O30733C18O30756,,
code-creation,LazyCompile,10,42922,0xce7fc633736,432,patchProcessObject node:internal/bootstrap/pre_execution:81:28,0xa52511bb398,~
code-source-info,0xce7fc633736,91,2416,4258,C0O2450C6O2450C11O2496C19O2496C24O2734C30O2734C35O2772C40O2773C46O2703C51O2715C56O2798C61O2813C65O2825C68O2833C75O2847C79O2866C90O2887C98O2973C104O2977C111O2866C116O2989C119O2997C129O3015C133O3005C137O3028C144O3055C151O3059C158O3073C164O3107C171O3111C178O3073C185O3189C191O3189C199O3222C202O3230C210O3245C218O3261C225O3265C229O3245C234O3238C244O3433C253O3433C258O3479C267O3479C272O3532C281O3532C286O3592C295O3592C300O3650C309O3650C314O3710C323O3710C328O3774C337O3774C342O3839C351O3839C356O3910C365O3910C370O3980C379O3980C384O4040C393O4040C398O4110C409O4110C414O4180C425O4180C431O4257,,
tick,0x10b64fe,43009,1,0xb77720,5,0xd44a10,0xce7fc633749,0xce7fc631f03,0xa52511b9255
code-creation,LazyCompile,10,43111,0xce7fc633dee,113,getFastAPIs node:internal/process/per_thread:57:21,0x38b4b3b3c6f0,~
script-source,23,node:internal/process/per_thread,'use strict';\n\n// This files contains process bootstrappers that can be\n// run when setting up each thread\x2C including the main\n// thread and the worker threads.\n\nconst {\n ArrayPrototypeEvery\x2C\n ArrayPrototypeForEach\x2C\n ArrayPrototypeIncludes\x2C\n ArrayPrototypeMap\x2C\n ArrayPrototypePush\x2C\n ArrayPrototypeSplice\x2C\n BigUint64Array\x2C\n Float64Array\x2C\n NumberMAX_SAFE_INTEGER\x2C\n ObjectFreeze\x2C\n ReflectApply\x2C\n RegExpPrototypeTest\x2C\n SafeArrayIterator\x2C\n Set\x2C\n SetPrototypeEntries\x2C\n SetPrototypeValues\x2C\n StringPrototypeEndsWith\x2C\n StringPrototypeReplace\x2C\n StringPrototypeSlice\x2C\n StringPrototypeStartsWith\x2C\n Symbol\x2C\n SymbolIterator\x2C\n Uint32Array\x2C\n} = primordials;\n\nconst {\n errnoException\x2C\n codes: {\n ERR_ASSERTION\x2C\n ERR_INVALID_ARG_TYPE\x2C\n ERR_INVALID_ARG_VALUE\x2C\n ERR_OUT_OF_RANGE\x2C\n ERR_UNKNOWN_SIGNAL\n }\n} = require('internal/errors');\nconst format = require('internal/util/inspect').format;\nconst {\n validateArray\x2C\n validateNumber\x2C\n validateObject\x2C\n} = require('internal/validators');\nconst constants = internalBinding('constants').os.signals;\n\nconst kInternal = Symbol('internal properties');\n\nfunction assert(x\x2C msg) {\n if (!x) throw new ERR_ASSERTION(msg || 'assertion error');\n}\n\nfunction getFastAPIs(binding) {\n const {\n hrtime: _hrtime\n } = binding.getFastAPIs();\n\n // The 3 entries filled in by the original process.hrtime contains\n // the upper/lower 32 bits of the second part of the value\x2C\n // and the remaining nanoseconds of the value.\n const hrValues = new Uint32Array(_hrtime.buffer);\n\n function hrtime(time) {\n _hrtime.hrtime();\n\n if (time !== undefined) {\n validateArray(time\x2C 'time');\n if (time.length !== 2) {\n throw new ERR_OUT_OF_RANGE('time'\x2C 2\x2C time.length);\n }\n\n const sec = (hrValues[0] * 0x100000000 + hrValues[1]) - time[0];\n const nsec = hrValues[2] - time[1];\n const needsBorrow = nsec < 0;\n return [needsBorrow ? sec - 1 : sec\x2C needsBorrow ? nsec + 1e9 : nsec];\n }\n\n return [\n hrValues[0] * 0x100000000 + hrValues[1]\x2C\n hrValues[2]\x2C\n ];\n }\n\n // Use a BigUint64Array in the closure because this is actually a bit\n // faster than simply returning a BigInt from C++ in V8 7.1.\n const hrBigintValues = new BigUint64Array(_hrtime.buffer\x2C 0\x2C 1);\n function hrtimeBigInt() {\n _hrtime.hrtimeBigInt();\n return hrBigintValues[0];\n }\n\n return {\n hrtime\x2C\n hrtimeBigInt\x2C\n };\n}\n\n// The execution of this function itself should not cause any side effects.\nfunction wrapProcessMethods(binding) {\n const {\n cpuUsage: _cpuUsage\x2C\n memoryUsage: _memoryUsage\x2C\n rss\x2C\n resourceUsage: _resourceUsage\n } = binding;\n\n function _rawDebug(...args) {\n binding._rawDebug(ReflectApply(format\x2C null\x2C args));\n }\n\n // Create the argument array that will be passed to the native function.\n const cpuValues = new Float64Array(2);\n\n // Replace the native function with the JS version that calls the native\n // function.\n function cpuUsage(prevValue) {\n // If a previous value was passed in\x2C ensure it has the correct shape.\n if (prevValue) {\n if (!previousValueIsValid(prevValue.user)) {\n validateObject(prevValue\x2C 'prevValue');\n\n validateNumber(prevValue.user\x2C 'prevValue.user');\n throw new ERR_INVALID_ARG_VALUE.RangeError('prevValue.user'\x2C\n prevValue.user);\n }\n\n if (!previousValueIsValid(prevValue.system)) {\n validateNumber(prevValue.system\x2C 'prevValue.system');\n throw new ERR_INVALID_ARG_VALUE.RangeError('prevValue.system'\x2C\n prevValue.system);\n }\n }\n\n // Call the native function to get the current values.\n _cpuUsage(cpuValues);\n\n // If a previous value was passed in\x2C return diff of current from previous.\n if (prevValue) {\n return {\n user: cpuValues[0] - prevValue.user\x2C\n system: cpuValues[1] - prevValue.system\n };\n }\n\n // If no previous value passed in\x2C return current value.\n return {\n user: cpuValues[0]\x2C\n system: cpuValues[1]\n };\n }\n\n // Ensure that a previously passed in value is valid. Currently\x2C the native\n // implementation always returns numbers <= Number.MAX_SAFE_INTEGER.\n function previousValueIsValid(num) {\n return typeof num === 'number' &&\n num <= NumberMAX_SAFE_INTEGER &&\n num >= 0;\n }\n\n const memValues = new Float64Array(5);\n function memoryUsage() {\n _memoryUsage(memValues);\n return {\n rss: memValues[0]\x2C\n heapTotal: memValues[1]\x2C\n heapUsed: memValues[2]\x2C\n external: memValues[3]\x2C\n arrayBuffers: memValues[4]\n };\n }\n\n memoryUsage.rss = rss;\n\n function exit(code) {\n if (code || code === 0)\n process.exitCode = code;\n\n if (!process._exiting) {\n process._exiting = true;\n process.emit('exit'\x2C process.exitCode || 0);\n }\n // FIXME(joyeecheung): This is an undocumented API that gets monkey-patched\n // in the user land. Either document it\x2C or deprecate it in favor of a\n // better public alternative.\n process.reallyExit(process.exitCode || 0);\n }\n\n function kill(pid\x2C sig) {\n let err;\n\n // eslint-disable-next-line eqeqeq\n if (pid != (pid | 0)) {\n throw new ERR_INVALID_ARG_TYPE('pid'\x2C 'number'\x2C pid);\n }\n\n // Preserve null signal\n if (sig === (sig | 0)) {\n // XXX(joyeecheung): we have to use process._kill here because\n // it's monkey-patched by tests.\n err = process._kill(pid\x2C sig);\n } else {\n sig = sig || 'SIGTERM';\n if (constants[sig]) {\n err = process._kill(pid\x2C constants[sig]);\n } else {\n throw new ERR_UNKNOWN_SIGNAL(sig);\n }\n }\n\n if (err)\n throw errnoException(err\x2C 'kill');\n\n return true;\n }\n\n const resourceValues = new Float64Array(16);\n function resourceUsage() {\n _resourceUsage(resourceValues);\n return {\n userCPUTime: resourceValues[0]\x2C\n systemCPUTime: resourceValues[1]\x2C\n maxRSS: resourceValues[2]\x2C\n sharedMemorySize: resourceValues[3]\x2C\n unsharedDataSize: resourceValues[4]\x2C\n unsharedStackSize: resourceValues[5]\x2C\n minorPageFault: resourceValues[6]\x2C\n majorPageFault: resourceValues[7]\x2C\n swappedOut: resourceValues[8]\x2C\n fsRead: resourceValues[9]\x2C\n fsWrite: resourceValues[10]\x2C\n ipcSent: resourceValues[11]\x2C\n ipcReceived: resourceValues[12]\x2C\n signalsCount: resourceValues[13]\x2C\n voluntaryContextSwitches: resourceValues[14]\x2C\n involuntaryContextSwitches: resourceValues[15]\n };\n }\n\n\n return {\n _rawDebug\x2C\n cpuUsage\x2C\n resourceUsage\x2C\n memoryUsage\x2C\n kill\x2C\n exit\n };\n}\n\nconst replaceUnderscoresRegex = /_/g;\nconst leadingDashesRegex = /^--?/;\nconst trailingValuesRegex = /=.*$/;\n\n// This builds the initial process.allowedNodeEnvironmentFlags\n// from data in the config binding.\nfunction buildAllowedFlags() {\n const {\n envSettings: { kAllowedInEnvironment }\x2C\n types: { kBoolean }\x2C\n } = internalBinding('options');\n const { options\x2C aliases } = require('internal/options');\n\n const allowedNodeEnvironmentFlags = [];\n for (const { 0: name\x2C 1: info } of options) {\n if (info.envVarSettings === kAllowedInEnvironment) {\n ArrayPrototypePush(allowedNodeEnvironmentFlags\x2C name);\n if (info.type === kBoolean) {\n const negatedName = `--no-${name.slice(2)}`;\n ArrayPrototypePush(allowedNodeEnvironmentFlags\x2C negatedName);\n }\n }\n }\n\n function isAccepted(to) {\n if (!StringPrototypeStartsWith(to\x2C '-') || to === '--') return true;\n const recursiveExpansion = aliases.get(to);\n if (recursiveExpansion) {\n if (recursiveExpansion[0] === to)\n ArrayPrototypeSplice(recursiveExpansion\x2C 0\x2C 1);\n return ArrayPrototypeEvery(recursiveExpansion\x2C isAccepted);\n }\n return options.get(to).envVarSettings === kAllowedInEnvironment;\n }\n for (const { 0: from\x2C 1: expansion } of aliases) {\n if (ArrayPrototypeEvery(expansion\x2C isAccepted)) {\n let canonical = from;\n if (StringPrototypeEndsWith(canonical\x2C '='))\n canonical = StringPrototypeSlice(canonical\x2C 0\x2C canonical.length - 1);\n if (StringPrototypeEndsWith(canonical\x2C ' <arg>'))\n canonical = StringPrototypeSlice(canonical\x2C 0\x2C canonical.length - 4);\n ArrayPrototypePush(allowedNodeEnvironmentFlags\x2C canonical);\n }\n }\n\n const trimLeadingDashes =\n (flag) => StringPrototypeReplace(flag\x2C leadingDashesRegex\x2C '');\n\n // Save these for comparison against flags provided to\n // process.allowedNodeEnvironmentFlags.has() which lack leading dashes.\n const nodeFlags = ArrayPrototypeMap(allowedNodeEnvironmentFlags\x2C\n trimLeadingDashes);\n\n class NodeEnvironmentFlagsSet extends Set {\n constructor(array) {\n super();\n this[kInternal] = { array };\n }\n\n add() {\n // No-op\x2C `Set` API compatible\n return this;\n }\n\n delete() {\n // No-op\x2C `Set` API compatible\n return false;\n }\n\n clear() {\n // No-op\x2C `Set` API compatible\n }\n\n has(key) {\n // This will return `true` based on various possible\n // permutations of a flag\x2C including present/missing leading\n // dash(es) and/or underscores-for-dashes.\n // Strips any values after `=`\x2C inclusive.\n // TODO(addaleax): It might be more flexible to run the option parser\n // on a dummy option set and see whether it rejects the argument or\n // not.\n if (typeof key === 'string') {\n key = StringPrototypeReplace(key\x2C replaceUnderscoresRegex\x2C '-');\n if (RegExpPrototypeTest(leadingDashesRegex\x2C key)) {\n key = StringPrototypeReplace(key\x2C trailingValuesRegex\x2C '');\n return ArrayPrototypeIncludes(this[kInternal].array\x2C key);\n }\n return ArrayPrototypeIncludes(nodeFlags\x2C key);\n }\n return false;\n }\n\n entries() {\n this[kInternal].set ??=\n new Set(new SafeArrayIterator(this[kInternal].array));\n return SetPrototypeEntries(this[kInternal].set);\n }\n\n forEach(callback\x2C thisArg = undefined) {\n ArrayPrototypeForEach(\n this[kInternal].array\x2C\n (v) => ReflectApply(callback\x2C thisArg\x2C [v\x2C v\x2C this])\n );\n }\n\n get size() {\n return this[kInternal].array.length;\n }\n\n values() {\n this[kInternal].set ??=\n new Set(new SafeArrayIterator(this[kInternal].array));\n return SetPrototypeValues(this[kInternal].set);\n }\n }\n NodeEnvironmentFlagsSet.prototype.keys =\n NodeEnvironmentFlagsSet.prototype[SymbolIterator] =\n NodeEnvironmentFlagsSet.prototype.values;\n\n ObjectFreeze(NodeEnvironmentFlagsSet.prototype.constructor);\n ObjectFreeze(NodeEnvironmentFlagsSet.prototype);\n\n return ObjectFreeze(new NodeEnvironmentFlagsSet(\n allowedNodeEnvironmentFlags\n ));\n}\n\n// Lazy load internal/trace_events_async_hooks only if the async_hooks\n// trace event category is enabled.\nlet traceEventsAsyncHook;\n// Dynamically enable/disable the traceEventsAsyncHook\nfunction toggleTraceCategoryState(asyncHooksEnabled) {\n if (asyncHooksEnabled) {\n if (!traceEventsAsyncHook) {\n traceEventsAsyncHook =\n require('internal/trace_events_async_hooks').createHook();\n }\n traceEventsAsyncHook.enable();\n } else if (traceEventsAsyncHook) {\n traceEventsAsyncHook.disable();\n }\n}\n\nmodule.exports = {\n toggleTraceCategoryState\x2C\n getFastAPIs\x2C\n assert\x2C\n buildAllowedFlags\x2C\n wrapProcessMethods\n};\n
code-source-info,0xce7fc633dee,23,1229,2412,C0O1229C24O1285C29O1285C34O1263C40O1500C50O1524C57O1500C62O1500C64O2232C74O2259C86O2232C91O2232C93O2367C100O2380C106O2392C112O2410,,
code-creation,LazyCompile,10,43758,0xce7fc63513e,63,addReadOnlyProcessAlias node:internal/bootstrap/pre_execution:129:33,0xa52511bb3e8,~
code-source-info,0xce7fc63513e,91,4292,4517,C16O4344C21O4344C26O4370C28O4387C36O4417C43O4480C49O4498C56O4387C62O4516,,
code-creation,LazyCompile,10,43824,0xce7fc63550e,46,setupTraceCategoryState node:internal/bootstrap/pre_execution:221:33,0xa52511bb690,~
code-source-info,0xce7fc63550e,91,6760,6987,C0O6802C6O6802C11O6775C16O6874C22O6874C27O6845C32O6916C35O6941C40O6916C45O6986,,
code-creation,LazyCompile,10,43871,0xce7fc6356b6,77,toggleTraceCategoryState node:internal/process/per_thread:385:34,0x38b4b3b3cce0,~
code-source-info,0xce7fc6356b6,23,11040,11337,C0O11064C4O11093C10O11128C16O11159C21O11203C26O11204C33O11149C39O11228C44O11249C49O11249C55O11268C61O11300C66O11321C71O11321C76O11336,,
code-creation,LazyCompile,10,43895,0xce7fc635876,42,setupPerfHooks node:internal/bootstrap/pre_execution:227:24,0xa52511bb6e0,~
code-source-info,0xce7fc635876,91,7012,7132,C0O7019C6O7019C11O7055C16O7056C20O7079C26O7079C31O7109C36O7110C41O7131,,
code-creation,LazyCompile,10,43926,0xce7fc635a06,42,refreshTimeOrigin node:internal/perf/performance:118:27,0x3787ca7b84d8,~
script-source,69,node:internal/perf/performance,'use strict';\n\nconst {\n ObjectDefineProperty\x2C\n ObjectDefineProperties\x2C\n ObjectSetPrototypeOf\x2C\n TypeError\x2C\n} = primordials;\n\nconst {\n EventTarget\x2C\n} = require('internal/event_target');\n\nconst { now } = require('internal/perf/utils');\n\nconst {\n mark\x2C\n measure\x2C\n clearMarks\x2C\n} = require('internal/perf/usertiming');\n\nconst eventLoopUtilization = require('internal/perf/event_loop_utilization');\nconst nodeTiming = require('internal/perf/nodetiming');\nconst timerify = require('internal/perf/timerify');\nconst { customInspectSymbol: kInspect } = require('internal/util');\nconst { inspect } = require('util');\n\nconst {\n getTimeOriginTimestamp\n} = internalBinding('performance');\n\nclass Performance extends EventTarget {\n constructor() {\n // eslint-disable-next-line no-restricted-syntax\n throw new TypeError('Illegal constructor');\n }\n\n [kInspect](depth\x2C options) {\n if (depth < 0) return this;\n\n const opts = {\n ...options\x2C\n depth: options.depth == null ? null : options.depth - 1\n };\n\n return `Performance ${inspect({\n nodeTiming: this.nodeTiming\x2C\n timeOrigin: this.timeOrigin\x2C\n }\x2C opts)}`;\n }\n\n}\n\nfunction toJSON() {\n return {\n nodeTiming: this.nodeTiming\x2C\n timeOrigin: this.timeOrigin\x2C\n eventLoopUtilization: this.eventLoopUtilization()\n };\n}\n\nclass InternalPerformance extends EventTarget {}\nInternalPerformance.prototype.constructor = Performance.prototype.constructor;\nObjectSetPrototypeOf(InternalPerformance.prototype\x2C Performance.prototype);\n\nObjectDefineProperties(Performance.prototype\x2C {\n clearMarks: {\n configurable: true\x2C\n enumerable: false\x2C\n value: clearMarks\x2C\n }\x2C\n eventLoopUtilization: {\n configurable: true\x2C\n enumerable: false\x2C\n value: eventLoopUtilization\x2C\n }\x2C\n mark: {\n configurable: true\x2C\n enumerable: false\x2C\n value: mark\x2C\n }\x2C\n measure: {\n configurable: true\x2C\n enumerable: false\x2C\n value: measure\x2C\n }\x2C\n nodeTiming: {\n configurable: true\x2C\n enumerable: false\x2C\n value: nodeTiming\x2C\n }\x2C\n now: {\n configurable: true\x2C\n enumerable: false\x2C\n value: now\x2C\n }\x2C\n timerify: {\n configurable: true\x2C\n enumerable: false\x2C\n value: timerify\x2C\n }\x2C\n // This would be updated during pre-execution in case\n // the process is launched from a snapshot.\n // TODO(joyeecheung): we may want to warn about access to\n // this during snapshot building.\n timeOrigin: {\n configurable: true\x2C\n enumerable: true\x2C\n value: getTimeOriginTimestamp()\x2C\n }\x2C\n toJSON: {\n configurable: true\x2C\n enumerable: true\x2C\n value: toJSON\x2C\n }\n});\n\nfunction refreshTimeOrigin() {\n ObjectDefineProperty(Performance.prototype\x2C 'timeOrigin'\x2C {\n configurable: true\x2C\n enumerable: true\x2C\n value: getTimeOriginTimestamp()\x2C\n });\n}\n\nmodule.exports = {\n InternalPerformance\x2C\n refreshTimeOrigin\n};\n
code-source-info,0xce7fc635a06,69,2596,2753,C0O2603C7O2624C10O2636C25O2720C28O2720C35O2603C41O2752,,
tick,0x7f4debd44473,44120,0,0x0,3,0x11e9ce0,0xce7fc635886,0xce7fc631f10,0xa52511b9255
code-creation,LazyCompile,10,44140,0xce7fc6360d6,19,refreshTimeOrigin node:internal/perf/utils:25:27,0x1eac91c35910,~
script-source,41,node:internal/perf/utils,'use strict';\n\nconst binding = internalBinding('performance');\nconst {\n milestones\x2C\n getTimeOrigin\x2C\n} = binding;\n\n// TODO(joyeecheung): we may want to warn about access to\n// this during snapshot building.\nlet timeOrigin = getTimeOrigin();\n\nfunction now() {\n const hr = process.hrtime();\n return (hr[0] * 1000 + hr[1] / 1e6) - timeOrigin;\n}\n\nfunction getMilestoneTimestamp(milestoneIdx) {\n const ns = milestones[milestoneIdx];\n if (ns === -1)\n return ns;\n return ns / 1e6 - timeOrigin;\n}\n\nfunction refreshTimeOrigin() {\n timeOrigin = getTimeOrigin();\n}\n\nmodule.exports = {\n now\x2C\n getMilestoneTimestamp\x2C\n refreshTimeOrigin\n};\n
code-source-info,0xce7fc6360d6,41,525,563,C0O532C5O545C11O543C18O562,,
code-creation,LazyCompile,10,44201,0xce7fc636356,62,setupInspectorHooks node:internal/bootstrap/pre_execution:232:29,0xa52511bb730,~
code-source-info,0xce7fc636356,91,7162,7715,C0O7505C6O7509C11O7534C17O7599C23O7599C28O7569C33O7583C38O7645C44O7645C49O7673C54O7674C61O7714,,
code-creation,Eval,10,44301,0xce7fc6366fe,5, node:internal/inspector_async_hook:1:1,0xce7fc636538,~
script-source,111,node:internal/inspector_async_hook,'use strict';\n\nlet hook;\nlet config;\n\nconst {\n SafeSet\x2C\n} = primordials;\n\nfunction lazyHookCreation() {\n const inspector = internalBinding('inspector');\n const { createHook } = require('async_hooks');\n config = internalBinding('config');\n\n hook = createHook({\n init(asyncId\x2C type\x2C triggerAsyncId\x2C resource) {\n // It's difficult to tell which tasks will be recurring and which won't\x2C\n // therefore we mark all tasks as recurring. Based on the discussion\n // in https://github.com/nodejs/node/pull/13870#discussion_r124515293\x2C\n // this should be fine as long as we call asyncTaskCanceled() too.\n const recurring = true;\n if (type === 'PROMISE')\n this.promiseIds.add(asyncId);\n else\n inspector.asyncTaskScheduled(type\x2C asyncId\x2C recurring);\n }\x2C\n\n before(asyncId) {\n if (this.promiseIds.has(asyncId))\n return;\n inspector.asyncTaskStarted(asyncId);\n }\x2C\n\n after(asyncId) {\n if (this.promiseIds.has(asyncId))\n return;\n inspector.asyncTaskFinished(asyncId);\n }\x2C\n\n destroy(asyncId) {\n if (this.promiseIds.has(asyncId))\n return this.promiseIds.delete(asyncId);\n inspector.asyncTaskCanceled(asyncId);\n }\x2C\n });\n\n hook.promiseIds = new SafeSet();\n}\n\nfunction enable() {\n if (hook === undefined) lazyHookCreation();\n if (config.bits < 64) {\n // V8 Inspector stores task ids as (void*) pointers.\n // async_hooks store ids as 64bit numbers.\n // As a result\x2C we cannot reliably translate async_hook ids to V8 async_task\n // ids on 32bit platforms.\n process.emitWarning(\n 'Warning: Async stack traces in debugger are not available ' +\n `on ${config.bits}bit platforms. The feature is disabled.`\x2C\n {\n code: 'INSPECTOR_ASYNC_STACK_TRACES_NOT_AVAILABLE'\x2C\n });\n } else {\n hook.enable();\n }\n}\n\nfunction disable() {\n if (hook === undefined) lazyHookCreation();\n hook.disable();\n}\n\nmodule.exports = {\n enable\x2C\n disable\n};\n
code-source-info,0xce7fc6366fe,111,0,1972,C0O0C4O1972,,
code-creation,Function,10,44398,0xce7fc63692e,79, node:internal/inspector_async_hook:1:1,0xce7fc636668,~
code-source-info,0xce7fc63692e,111,0,1972,C0O0C42O19C43O19C45O29C46O29C48O48C54O1930C61O1951C67O1961C73O1945C78O1971,,
code-creation,LazyCompile,10,44476,0xce7fc636e0e,69,setupWarningHandler node:internal/bootstrap/pre_execution:141:29,0xa52511bb438,~
code-source-info,0xce7fc636e0e,91,4547,4744,C0O4582C6O4582C11O4566C16O4621C24O4625C33O4669C38O4673C45O4690C50O4705C53O4713C61O4713C68O4743,,
code-creation,LazyCompile,10,44569,0xce7fc636f7e,20,addListener node:events:490:58,0x334c17f324d8,~
script-source,13,node:events,// Copyright Joyent\x2C Inc. and other Node contributors.\n//\n// Permission is hereby granted\x2C free of charge\x2C to any person obtaining a\n// copy of this software and associated documentation files (the\n// "Software")\x2C to deal in the Software without restriction\x2C including\n// without limitation the rights to use\x2C copy\x2C modify\x2C merge\x2C publish\x2C\n// distribute\x2C sublicense\x2C and/or sell copies of the Software\x2C and to permit\n// persons to whom the Software is furnished to do so\x2C subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED "AS IS"\x2C WITHOUT WARRANTY OF ANY KIND\x2C EXPRESS\n// OR IMPLIED\x2C INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY\x2C FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM\x2C\n// DAMAGES OR OTHER LIABILITY\x2C WHETHER IN AN ACTION OF CONTRACT\x2C TORT OR\n// OTHERWISE\x2C ARISING FROM\x2C OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n'use strict';\n\nconst {\n ArrayPrototypeIndexOf\x2C\n ArrayPrototypeJoin\x2C\n ArrayPrototypeShift\x2C\n ArrayPrototypeSlice\x2C\n ArrayPrototypeSplice\x2C\n Boolean\x2C\n Error\x2C\n ErrorCaptureStackTrace\x2C\n FunctionPrototypeBind\x2C\n FunctionPrototypeCall\x2C\n MathMin\x2C\n NumberIsNaN\x2C\n ObjectCreate\x2C\n ObjectDefineProperty\x2C\n ObjectDefineProperties\x2C\n ObjectGetPrototypeOf\x2C\n ObjectSetPrototypeOf\x2C\n Promise\x2C\n PromiseReject\x2C\n PromiseResolve\x2C\n ReflectOwnKeys\x2C\n String\x2C\n StringPrototypeSplit\x2C\n Symbol\x2C\n SymbolFor\x2C\n SymbolAsyncIterator\x2C\n} = primordials;\nconst kRejection = SymbolFor('nodejs.rejection');\n\nlet spliceOne;\n\nconst {\n AbortError\x2C\n kEnhanceStackBeforeInspector\x2C\n codes: {\n ERR_INVALID_ARG_TYPE\x2C\n ERR_OUT_OF_RANGE\x2C\n ERR_UNHANDLED_ERROR\n }\x2C\n} = require('internal/errors');\n\nconst {\n inspect\n} = require('internal/util/inspect');\n\nconst {\n validateAbortSignal\x2C\n validateBoolean\x2C\n validateFunction\x2C\n} = require('internal/validators');\n\nconst kCapture = Symbol('kCapture');\nconst kErrorMonitor = Symbol('events.errorMonitor');\nconst kMaxEventTargetListeners = Symbol('events.maxEventTargetListeners');\nconst kMaxEventTargetListenersWarned =\n Symbol('events.maxEventTargetListenersWarned');\n\n/**\n * Creates a new `EventEmitter` instance.\n * @param {{ captureRejections?: boolean; }} [opts]\n * @returns {EventEmitter}\n */\nfunction EventEmitter(opts) {\n EventEmitter.init.call(this\x2C opts);\n}\nmodule.exports = EventEmitter;\nmodule.exports.once = once;\nmodule.exports.on = on;\nmodule.exports.getEventListeners = getEventListeners;\n// Backwards-compat with node 0.10.x\nEventEmitter.EventEmitter = EventEmitter;\n\nEventEmitter.usingDomains = false;\n\nEventEmitter.captureRejectionSymbol = kRejection;\nObjectDefineProperty(EventEmitter\x2C 'captureRejections'\x2C {\n get() {\n return EventEmitter.prototype[kCapture];\n }\x2C\n set(value) {\n validateBoolean(value\x2C 'EventEmitter.captureRejections');\n\n EventEmitter.prototype[kCapture] = value;\n }\x2C\n enumerable: true\n});\n\nEventEmitter.errorMonitor = kErrorMonitor;\n\n// The default for captureRejections is false\nObjectDefineProperty(EventEmitter.prototype\x2C kCapture\x2C {\n value: false\x2C\n writable: true\x2C\n enumerable: false\n});\n\nEventEmitter.prototype._events = undefined;\nEventEmitter.prototype._eventsCount = 0;\nEventEmitter.prototype._maxListeners = undefined;\n\n// By default EventEmitters will print a warning if more than 10 listeners are\n// added to it. This is a useful default which helps finding memory leaks.\nlet defaultMaxListeners = 10;\nlet isEventTarget;\n\nfunction checkListener(listener) {\n validateFunction(listener\x2C 'listener');\n}\n\nObjectDefineProperty(EventEmitter\x2C 'defaultMaxListeners'\x2C {\n enumerable: true\x2C\n get: function() {\n return defaultMaxListeners;\n }\x2C\n set: function(arg) {\n if (typeof arg !== 'number' || arg < 0 || NumberIsNaN(arg)) {\n throw new ERR_OUT_OF_RANGE('defaultMaxListeners'\x2C\n 'a non-negative number'\x2C\n arg);\n }\n defaultMaxListeners = arg;\n }\n});\n\nObjectDefineProperties(EventEmitter\x2C {\n kMaxEventTargetListeners: {\n value: kMaxEventTargetListeners\x2C\n enumerable: false\x2C\n configurable: false\x2C\n writable: false\x2C\n }\x2C\n kMaxEventTargetListenersWarned: {\n value: kMaxEventTargetListenersWarned\x2C\n enumerable: false\x2C\n configurable: false\x2C\n writable: false\x2C\n }\n});\n\n/**\n * Sets the max listeners.\n * @param {number} n\n * @param {EventTarget[] | EventEmitter[]} [eventTargets]\n * @returns {void}\n */\nEventEmitter.setMaxListeners =\n function(n = defaultMaxListeners\x2C ...eventTargets) {\n if (typeof n !== 'number' || n < 0 || NumberIsNaN(n))\n throw new ERR_OUT_OF_RANGE('n'\x2C 'a non-negative number'\x2C n);\n if (eventTargets.length === 0) {\n defaultMaxListeners = n;\n } else {\n if (isEventTarget === undefined)\n isEventTarget = require('internal/event_target').isEventTarget;\n\n for (let i = 0; i < eventTargets.length; i++) {\n const target = eventTargets[i];\n if (isEventTarget(target)) {\n target[kMaxEventTargetListeners] = n;\n target[kMaxEventTargetListenersWarned] = false;\n } else if (typeof target.setMaxListeners === 'function') {\n target.setMaxListeners(n);\n } else {\n throw new ERR_INVALID_ARG_TYPE(\n 'eventTargets'\x2C\n ['EventEmitter'\x2C 'EventTarget']\x2C\n target);\n }\n }\n }\n };\n\nEventEmitter.init = function(opts) {\n\n if (this._events === undefined ||\n this._events === ObjectGetPrototypeOf(this)._events) {\n this._events = ObjectCreate(null);\n this._eventsCount = 0;\n }\n\n this._maxListeners = this._maxListeners || undefined;\n\n\n if (opts?.captureRejections) {\n validateBoolean(opts.captureRejections\x2C 'options.captureRejections');\n this[kCapture] = Boolean(opts.captureRejections);\n } else {\n // Assigning the kCapture property directly saves an expensive\n // prototype lookup in a very sensitive hot path.\n this[kCapture] = EventEmitter.prototype[kCapture];\n }\n};\n\nfunction addCatch(that\x2C promise\x2C type\x2C args) {\n if (!that[kCapture]) {\n return;\n }\n\n // Handle Promises/A+ spec\x2C then could be a getter\n // that throws on second use.\n try {\n const then = promise.then;\n\n if (typeof then === 'function') {\n then.call(promise\x2C undefined\x2C function(err) {\n // The callback is called with nextTick to avoid a follow-up\n // rejection from this promise.\n process.nextTick(emitUnhandledRejectionOrErr\x2C that\x2C err\x2C type\x2C args);\n });\n }\n } catch (err) {\n that.emit('error'\x2C err);\n }\n}\n\nfunction emitUnhandledRejectionOrErr(ee\x2C err\x2C type\x2C args) {\n if (typeof ee[kRejection] === 'function') {\n ee[kRejection](err\x2C type\x2C ...args);\n } else {\n // We have to disable the capture rejections mechanism\x2C otherwise\n // we might end up in an infinite loop.\n const prev = ee[kCapture];\n\n // If the error handler throws\x2C it is not catcheable and it\n // will end up in 'uncaughtException'. We restore the previous\n // value of kCapture in case the uncaughtException is present\n // and the exception is handled.\n try {\n ee[kCapture] = false;\n ee.emit('error'\x2C err);\n } finally {\n ee[kCapture] = prev;\n }\n }\n}\n\n/**\n * Increases the max listeners of the event emitter.\n * @param {number} n\n * @returns {EventEmitter}\n */\nEventEmitter.prototype.setMaxListeners = function setMaxListeners(n) {\n if (typeof n !== 'number' || n < 0 || NumberIsNaN(n)) {\n throw new ERR_OUT_OF_RANGE('n'\x2C 'a non-negative number'\x2C n);\n }\n this._maxListeners = n;\n return this;\n};\n\nfunction _getMaxListeners(that) {\n if (that._maxListeners === undefined)\n return EventEmitter.defaultMaxListeners;\n return that._maxListeners;\n}\n\n/**\n * Returns the current max listener value for the event emitter.\n * @returns {number}\n */\nEventEmitter.prototype.getMaxListeners = function getMaxListeners() {\n return _getMaxListeners(this);\n};\n\n// Returns the length and line number of the first sequence of `a` that fully\n// appears in `b` with a length of at least 4.\nfunction identicalSequenceRange(a\x2C b) {\n for (let i = 0; i < a.length - 3; i++) {\n // Find the first entry of b that matches the current entry of a.\n const pos = ArrayPrototypeIndexOf(b\x2C a[i]);\n if (pos !== -1) {\n const rest = b.length - pos;\n if (rest > 3) {\n let len = 1;\n const maxLen = MathMin(a.length - i\x2C rest);\n // Count the number of consecutive entries.\n while (maxLen > len && a[i + len] === b[pos + len]) {\n len++;\n }\n if (len > 3) {\n return [len\x2C i];\n }\n }\n }\n }\n\n return [0\x2C 0];\n}\n\nfunction enhanceStackTrace(err\x2C own) {\n let ctorInfo = '';\n try {\n const { name } = this.constructor;\n if (name !== 'EventEmitter')\n ctorInfo = ` on ${name} instance`;\n } catch {}\n const sep = `\\nEmitted 'error' event${ctorInfo} at:\\n`;\n\n const errStack = ArrayPrototypeSlice(\n StringPrototypeSplit(err.stack\x2C '\\n')\x2C 1);\n const ownStack = ArrayPrototypeSlice(\n StringPrototypeSplit(own.stack\x2C '\\n')\x2C 1);\n\n const { 0: len\x2C 1: off } = identicalSequenceRange(ownStack\x2C errStack);\n if (len > 0) {\n ArrayPrototypeSplice(ownStack\x2C off + 1\x2C len - 2\x2C\n ' [... lines matching original stack trace ...]');\n }\n\n return err.stack + sep + ArrayPrototypeJoin(ownStack\x2C '\\n');\n}\n\n/**\n * Synchronously calls each of the listeners registered\n * for the event.\n * @param {string | symbol} type\n * @param {...any} [args]\n * @returns {boolean}\n */\nEventEmitter.prototype.emit = function emit(type\x2C ...args) {\n let doError = (type === 'error');\n\n const events = this._events;\n if (events !== undefined) {\n if (doError && events[kErrorMonitor] !== undefined)\n this.emit(kErrorMonitor\x2C ...args);\n doError = (doError && events.error === undefined);\n } else if (!doError)\n return false;\n\n // If there is no 'error' event listener then throw.\n if (doError) {\n let er;\n if (args.length > 0)\n er = args[0];\n if (er instanceof Error) {\n try {\n const capture = {};\n ErrorCaptureStackTrace(capture\x2C EventEmitter.prototype.emit);\n ObjectDefineProperty(er\x2C kEnhanceStackBeforeInspector\x2C {\n value: FunctionPrototypeBind(enhanceStackTrace\x2C this\x2C er\x2C capture)\x2C\n configurable: true\n });\n } catch {}\n\n // Note: The comments on the `throw` lines are intentional\x2C they show\n // up in Node's output if this results in an unhandled exception.\n throw er; // Unhandled 'error' event\n }\n\n let stringifiedEr;\n const { inspect } = require('internal/util/inspect');\n try {\n stringifiedEr = inspect(er);\n } catch {\n stringifiedEr = er;\n }\n\n // At least give some kind of context to the user\n const err = new ERR_UNHANDLED_ERROR(stringifiedEr);\n err.context = er;\n throw err; // Unhandled 'error' event\n }\n\n const handler = events[type];\n\n if (handler === undefined)\n return false;\n\n if (typeof handler === 'function') {\n const result = handler.apply(this\x2C args);\n\n // We check if result is undefined first because that\n // is the most common case so we do not pay any perf\n // penalty\n if (result !== undefined && result !== null) {\n addCatch(this\x2C result\x2C type\x2C args);\n }\n } else {\n const len = handler.length;\n const listeners = arrayClone(handler);\n for (let i = 0; i < len; ++i) {\n const result = listeners[i].apply(this\x2C args);\n\n // We check if result is undefined first because that\n // is the most common case so we do not pay any perf\n // penalty.\n // This code is duplicated because extracting it away\n // would make it non-inlineable.\n if (result !== undefined && result !== null) {\n addCatch(this\x2C result\x2C type\x2C args);\n }\n }\n }\n\n return true;\n};\n\nfunction _addListener(target\x2C type\x2C listener\x2C prepend) {\n let m;\n let events;\n let existing;\n\n checkListener(listener);\n\n events = target._events;\n if (events === undefined) {\n events = target._events = ObjectCreate(null);\n target._eventsCount = 0;\n } else {\n // To avoid recursion in the case that type === "newListener"! Before\n // adding it to the listeners\x2C first emit "newListener".\n if (events.newListener !== undefined) {\n target.emit('newListener'\x2C type\x2C\n listener.listener ?? listener);\n\n // Re-assign `events` because a newListener handler could have caused the\n // this._events to be assigned to a new object\n events = target._events;\n }\n existing = events[type];\n }\n\n if (existing === undefined) {\n // Optimize the case of one listener. Don't need the extra array object.\n events[type] = listener;\n ++target._eventsCount;\n } else {\n if (typeof existing === 'function') {\n // Adding the second element\x2C need to change to array.\n existing = events[type] =\n prepend ? [listener\x2C existing] : [existing\x2C listener];\n // If we've already got an array\x2C just append.\n } else if (prepend) {\n existing.unshift(listener);\n } else {\n existing.push(listener);\n }\n\n // Check for listener leak\n m = _getMaxListeners(target);\n if (m > 0 && existing.length > m && !existing.warned) {\n existing.warned = true;\n // No error code for this since it is a Warning\n // eslint-disable-next-line no-restricted-syntax\n const w = new Error('Possible EventEmitter memory leak detected. ' +\n `${existing.length} ${String(type)} listeners ` +\n `added to ${inspect(target\x2C { depth: -1 })}. Use ` +\n 'emitter.setMaxListeners() to increase limit');\n w.name = 'MaxListenersExceededWarning';\n w.emitter = target;\n w.type = type;\n w.count = existing.length;\n process.emitWarning(w);\n }\n }\n\n return target;\n}\n\n/**\n * Adds a listener to the event emitter.\n * @param {string | symbol} type\n * @param {Function} listener\n * @returns {EventEmitter}\n */\nEventEmitter.prototype.addListener = function addListener(type\x2C listener) {\n return _addListener(this\x2C type\x2C listener\x2C false);\n};\n\nEventEmitter.prototype.on = EventEmitter.prototype.addListener;\n\n/**\n * Adds the `listener` function to the beginning of\n * the listeners array.\n * @param {string | symbol} type\n * @param {Function} listener\n * @returns {EventEmitter}\n */\nEventEmitter.prototype.prependListener =\n function prependListener(type\x2C listener) {\n return _addListener(this\x2C type\x2C listener\x2C true);\n };\n\nfunction onceWrapper() {\n if (!this.fired) {\n this.target.removeListener(this.type\x2C this.wrapFn);\n this.fired = true;\n if (arguments.length === 0)\n return this.listener.call(this.target);\n return this.listener.apply(this.target\x2C arguments);\n }\n}\n\nfunction _onceWrap(target\x2C type\x2C listener) {\n const state = { fired: false\x2C wrapFn: undefined\x2C target\x2C type\x2C listener };\n const wrapped = onceWrapper.bind(state);\n wrapped.listener = listener;\n state.wrapFn = wrapped;\n return wrapped;\n}\n\n/**\n * Adds a one-time `listener` function to the event emitter.\n * @param {string | symbol} type\n * @param {Function} listener\n * @returns {EventEmitter}\n */\nEventEmitter.prototype.once = function once(type\x2C listener) {\n checkListener(listener);\n\n this.on(type\x2C _onceWrap(this\x2C type\x2C listener));\n return this;\n};\n\n/**\n * Adds a one-time `listener` function to the beginning of\n * the listeners array.\n * @param {string | symbol} type\n * @param {Function} listener\n * @returns {EventEmitter}\n */\nEventEmitter.prototype.prependOnceListener =\n function prependOnceListener(type\x2C listener) {\n checkListener(listener);\n\n this.prependListener(type\x2C _onceWrap(this\x2C type\x2C listener));\n return this;\n };\n\n/**\n * Removes the specified `listener` from the listeners array.\n * @param {string | symbol} type\n * @param {Function} listener\n * @returns {EventEmitter}\n */\nEventEmitter.prototype.removeListener =\n function removeListener(type\x2C listener) {\n checkListener(listener);\n\n const events = this._events;\n if (events === undefined)\n return this;\n\n const list = events[type];\n if (list === undefined)\n return this;\n\n if (list === listener || list.listener === listener) {\n if (--this._eventsCount === 0)\n this._events = ObjectCreate(null);\n else {\n delete events[type];\n if (events.removeListener)\n this.emit('removeListener'\x2C type\x2C list.listener || listener);\n }\n } else if (typeof list !== 'function') {\n let position = -1;\n\n for (let i = list.length - 1; i >= 0; i--) {\n if (list[i] === listener || list[i].listener === listener) {\n position = i;\n break;\n }\n }\n\n if (position < 0)\n return this;\n\n if (position === 0)\n list.shift();\n else {\n if (spliceOne === undefined)\n spliceOne = require('internal/util').spliceOne;\n spliceOne(list\x2C position);\n }\n\n if (list.length === 1)\n events[type] = list[0];\n\n if (events.removeListener !== undefined)\n this.emit('removeListener'\x2C type\x2C listener);\n }\n\n return this;\n };\n\nEventEmitter.prototype.off = EventEmitter.prototype.removeListener;\n\n/**\n * Removes all listeners from the event emitter. (Only\n * removes listeners for a specific event name if specified\n * as `type`).\n * @param {string | symbol} [type]\n * @returns {EventEmitter}\n */\nEventEmitter.prototype.removeAllListeners =\n function removeAllListeners(type) {\n const events = this._events;\n if (events === undefined)\n return this;\n\n // Not listening for removeListener\x2C no need to emit\n if (events.removeListener === undefined) {\n if (arguments.length === 0) {\n this._events = ObjectCreate(null);\n this._eventsCount = 0;\n } else if (events[type] !== undefined) {\n if (--this._eventsCount === 0)\n this._events = ObjectCreate(null);\n else\n delete events[type];\n }\n return this;\n }\n\n // Emit removeListener for all listeners on all events\n if (arguments.length === 0) {\n for (const key of ReflectOwnKeys(events)) {\n if (key === 'removeListener') continue;\n this.removeAllListeners(key);\n }\n this.removeAllListeners('removeListener');\n this._events = ObjectCreate(null);\n this._eventsCount = 0;\n return this;\n }\n\n const listeners = events[type];\n\n if (typeof listeners === 'function') {\n this.removeListener(type\x2C listeners);\n } else if (listeners !== undefined) {\n // LIFO order\n for (let i = listeners.length - 1; i >= 0; i--) {\n this.removeListener(type\x2C listeners[i]);\n }\n }\n\n return this;\n };\n\nfunction _listeners(target\x2C type\x2C unwrap) {\n const events = target._events;\n\n if (events === undefined)\n return [];\n\n const evlistener = events[type];\n if (evlistener === undefined)\n return [];\n\n if (typeof evlistener === 'function')\n return unwrap ? [evlistener.listener || evlistener] : [evlistener];\n\n return unwrap ?\n unwrapListeners(evlistener) : arrayClone(evlistener);\n}\n\n/**\n * Returns a copy of the array of listeners for the event name\n * specified as `type`.\n * @param {string | symbol} type\n * @returns {Function[]}\n */\nEventEmitter.prototype.listeners = function listeners(type) {\n return _listeners(this\x2C type\x2C true);\n};\n\n/**\n * Returns a copy of the array of listeners and wrappers for\n * the event name specified as `type`.\n * @param {string | symbol} type\n * @returns {Function[]}\n */\nEventEmitter.prototype.rawListeners = function rawListeners(type) {\n return _listeners(this\x2C type\x2C false);\n};\n\n/**\n * Returns the number of listeners listening to the event name\n * specified as `type`.\n * @deprecated since v3.2.0\n * @param {EventEmitter} emitter\n * @param {string | symbol} type\n * @returns {number}\n */\nEventEmitter.listenerCount = function(emitter\x2C type) {\n if (typeof emitter.listenerCount === 'function') {\n return emitter.listenerCount(type);\n }\n return FunctionPrototypeCall(listenerCount\x2C emitter\x2C type);\n};\n\nEventEmitter.prototype.listenerCount = listenerCount;\n\n/**\n * Returns the number of listeners listening to event name\n * specified as `type`.\n * @param {string | symbol} type\n * @returns {number}\n */\nfunction listenerCount(type) {\n const events = this._events;\n\n if (events !== undefined) {\n const evlistener = events[type];\n\n if (typeof evlistener === 'function') {\n return 1;\n } else if (evlistener !== undefined) {\n return evlistener.length;\n }\n }\n\n return 0;\n}\n\n/**\n * Returns an array listing the events for which\n * the emitter has registered listeners.\n * @returns {any[]}\n */\nEventEmitter.prototype.eventNames = function eventNames() {\n return this._eventsCount > 0 ? ReflectOwnKeys(this._events) : [];\n};\n\nfunction arrayClone(arr) {\n // At least since V8 8.3\x2C this implementation is faster than the previous\n // which always used a simple for-loop\n switch (arr.length) {\n case 2: return [arr[0]\x2C arr[1]];\n case 3: return [arr[0]\x2C arr[1]\x2C arr[2]];\n case 4: return [arr[0]\x2C arr[1]\x2C arr[2]\x2C arr[3]];\n case 5: return [arr[0]\x2C arr[1]\x2C arr[2]\x2C arr[3]\x2C arr[4]];\n case 6: return [arr[0]\x2C arr[1]\x2C arr[2]\x2C arr[3]\x2C arr[4]\x2C arr[5]];\n }\n return ArrayPrototypeSlice(arr);\n}\n\nfunction unwrapListeners(arr) {\n const ret = arrayClone(arr);\n for (let i = 0; i < ret.length; ++i) {\n const orig = ret[i].listener;\n if (typeof orig === 'function')\n ret[i] = orig;\n }\n return ret;\n}\n\n/**\n * Returns a copy of the array of listeners for the event name\n * specified as `type`.\n * @param {EventEmitter | EventTarget} emitterOrTarget\n * @param {string | symbol} type\n * @returns {Function[]}\n */\nfunction getEventListeners(emitterOrTarget\x2C type) {\n // First check if EventEmitter\n if (typeof emitterOrTarget.listeners === 'function') {\n return emitterOrTarget.listeners(type);\n }\n // Require event target lazily to avoid always loading it\n const { isEventTarget\x2C kEvents } = require('internal/event_target');\n if (isEventTarget(emitterOrTarget)) {\n const root = emitterOrTarget[kEvents].get(type);\n const listeners = [];\n let handler = root?.next;\n while (handler?.listener !== undefined) {\n const listener = handler.listener?.deref ?\n handler.listener.deref() : handler.listener;\n listeners.push(listener);\n handler = handler.next;\n }\n return listeners;\n }\n throw new ERR_INVALID_ARG_TYPE('emitter'\x2C\n ['EventEmitter'\x2C 'EventTarget']\x2C\n emitterOrTarget);\n}\n\n/**\n * Creates a `Promise` that is fulfilled when the emitter\n * emits the given event.\n * @param {EventEmitter} emitter\n * @param {string} name\n * @param {{ signal: AbortSignal; }} [options]\n * @returns {Promise}\n */\nasync function once(emitter\x2C name\x2C options = {}) {\n const signal = options?.signal;\n validateAbortSignal(signal\x2C 'options.signal');\n if (signal?.aborted)\n throw new AbortError();\n return new Promise((resolve\x2C reject) => {\n const errorListener = (err) => {\n emitter.removeListener(name\x2C resolver);\n if (signal != null) {\n eventTargetAgnosticRemoveListener(signal\x2C 'abort'\x2C abortListener);\n }\n reject(err);\n };\n const resolver = (...args) => {\n if (typeof emitter.removeListener === 'function') {\n emitter.removeListener('error'\x2C errorListener);\n }\n if (signal != null) {\n eventTargetAgnosticRemoveListener(signal\x2C 'abort'\x2C abortListener);\n }\n resolve(args);\n };\n eventTargetAgnosticAddListener(emitter\x2C name\x2C resolver\x2C { once: true });\n if (name !== 'error' && typeof emitter.once === 'function') {\n emitter.once('error'\x2C errorListener);\n }\n function abortListener() {\n eventTargetAgnosticRemoveListener(emitter\x2C name\x2C resolver);\n eventTargetAgnosticRemoveListener(emitter\x2C 'error'\x2C errorListener);\n reject(new AbortError());\n }\n if (signal != null) {\n eventTargetAgnosticAddListener(\n signal\x2C 'abort'\x2C abortListener\x2C { once: true });\n }\n });\n}\n\nconst AsyncIteratorPrototype = ObjectGetPrototypeOf(\n ObjectGetPrototypeOf(async function* () {}).prototype);\n\nfunction createIterResult(value\x2C done) {\n return { value\x2C done };\n}\n\nfunction eventTargetAgnosticRemoveListener(emitter\x2C name\x2C listener\x2C flags) {\n if (typeof emitter.removeListener === 'function') {\n emitter.removeListener(name\x2C listener);\n } else if (typeof emitter.removeEventListener === 'function') {\n emitter.removeEventListener(name\x2C listener\x2C flags);\n } else {\n throw new ERR_INVALID_ARG_TYPE('emitter'\x2C 'EventEmitter'\x2C emitter);\n }\n}\n\nfunction eventTargetAgnosticAddListener(emitter\x2C name\x2C listener\x2C flags) {\n if (typeof emitter.on === 'function') {\n if (flags?.once) {\n emitter.once(name\x2C listener);\n } else {\n emitter.on(name\x2C listener);\n }\n } else if (typeof emitter.addEventListener === 'function') {\n // EventTarget does not have `error` event semantics like Node\n // EventEmitters\x2C we do not listen to `error` events here.\n emitter.addEventListener(name\x2C (arg) => { listener(arg); }\x2C flags);\n } else {\n throw new ERR_INVALID_ARG_TYPE('emitter'\x2C 'EventEmitter'\x2C emitter);\n }\n}\n\n/**\n * Returns an `AsyncIterator` that iterates `event` events.\n * @param {EventEmitter} emitter\n * @param {string | symbol} event\n * @param {{ signal: AbortSignal; }} [options]\n * @returns {AsyncIterator}\n */\nfunction on(emitter\x2C event\x2C options) {\n const signal = options?.signal;\n validateAbortSignal(signal\x2C 'options.signal');\n if (signal?.aborted)\n throw new AbortError();\n\n const unconsumedEvents = [];\n const unconsumedPromises = [];\n let error = null;\n let finished = false;\n\n const iterator = ObjectSetPrototypeOf({\n next() {\n // First\x2C we consume all unread events\n const value = unconsumedEvents.shift();\n if (value) {\n return PromiseResolve(createIterResult(value\x2C false));\n }\n\n // Then we error\x2C if an error happened\n // This happens one time if at all\x2C because after 'error'\n // we stop listening\n if (error) {\n const p = PromiseReject(error);\n // Only the first element errors\n error = null;\n return p;\n }\n\n // If the iterator is finished\x2C resolve to done\n if (finished) {\n return PromiseResolve(createIterResult(undefined\x2C true));\n }\n\n // Wait until an event happens\n return new Promise(function(resolve\x2C reject) {\n unconsumedPromises.push({ resolve\x2C reject });\n });\n }\x2C\n\n return() {\n eventTargetAgnosticRemoveListener(emitter\x2C event\x2C eventHandler);\n eventTargetAgnosticRemoveListener(emitter\x2C 'error'\x2C errorHandler);\n\n if (signal) {\n eventTargetAgnosticRemoveListener(\n signal\x2C\n 'abort'\x2C\n abortListener\x2C\n { once: true });\n }\n\n finished = true;\n\n for (const promise of unconsumedPromises) {\n promise.resolve(createIterResult(undefined\x2C true));\n }\n\n return PromiseResolve(createIterResult(undefined\x2C true));\n }\x2C\n\n throw(err) {\n if (!err || !(err instanceof Error)) {\n throw new ERR_INVALID_ARG_TYPE('EventEmitter.AsyncIterator'\x2C\n 'Error'\x2C err);\n }\n error = err;\n eventTargetAgnosticRemoveListener(emitter\x2C event\x2C eventHandler);\n eventTargetAgnosticRemoveListener(emitter\x2C 'error'\x2C errorHandler);\n }\x2C\n\n [SymbolAsyncIterator]() {\n return this;\n }\n }\x2C AsyncIteratorPrototype);\n\n eventTargetAgnosticAddListener(emitter\x2C event\x2C eventHandler);\n if (event !== 'error' && typeof emitter.on === 'function') {\n emitter.on('error'\x2C errorHandler);\n }\n\n if (signal) {\n eventTargetAgnosticAddListener(\n signal\x2C\n 'abort'\x2C\n abortListener\x2C\n { once: true });\n }\n\n return iterator;\n\n function abortListener() {\n errorHandler(new AbortError());\n }\n\n function eventHandler(...args) {\n const promise = ArrayPrototypeShift(unconsumedPromises);\n if (promise) {\n promise.resolve(createIterResult(args\x2C false));\n } else {\n unconsumedEvents.push(args);\n }\n }\n\n function errorHandler(err) {\n finished = true;\n\n const toError = ArrayPrototypeShift(unconsumedPromises);\n\n if (toError) {\n toError.reject(err);\n } else {\n // The next time we call next()\n error = err;\n }\n\n iterator.return();\n }\n}\n
code-source-info,0xce7fc636f7e,13,14253,14325,C0O14274C14O14281C19O14323,,
tick,0x7f4debd4449c,45840,0,0x0,3,0x11e9ce0,0xce7fc636e4b,0xce7fc631f1c,0xa52511b9255
code-creation,LazyCompile,10,45928,0xce7fc6391de,387,_addListener node:events:422:22,0x334c17f32438,~
code-source-info,0xce7fc6391de,13,12040,14055,C0O12082C2O12091C4O12105C6O12118C9O12118C13O12162C18O12173C20O12205C22O12231C27O12231C32O12229C39O12255C40O12275C46O12441C52O12483C60O12536C77O12483C82O12715C87O12734C89O12751C93O12766C97O12877C99O12890C103O12906C109O12915C115O12944C121O13049C129O13083C140O13094C149O13104C166O13117C175O13127C182O13073C193O13202C197O13232C202O13232C209O13279C214O13279C219O13337C222O13341C227O13371C228O13377C233O13393C240O13400C245O13417C251O13433C252O13449C256O13582C264O13679C278O13689C281O13689C295O13639C304O13755C307O13763C312O13755C327O13715C333O13794C339O13582C345O13876C347O13883C351O13922C353O13932C357O13948C359O13955C363O13988C367O13977C371O14002C374O14010C379O14010C384O14039C386O14053,,
code-creation,LazyCompile,10,45965,0xce7fc639526,15,checkListener node:events:130:23,0x334c17f31d98,~
code-source-info,0xce7fc639526,13,3673,3729,C0O3688C8O3688C14O3728,,
code-creation,LazyCompile,10,46001,0xce7fc639626,30, node:internal/validators:227:42,0x38b4b3b1a1d0,~
script-source,17,node:internal/validators,'use strict';\n\nconst {\n ArrayIsArray\x2C\n ArrayPrototypeIncludes\x2C\n ArrayPrototypeJoin\x2C\n ArrayPrototypeMap\x2C\n NumberIsInteger\x2C\n NumberMAX_SAFE_INTEGER\x2C\n NumberMIN_SAFE_INTEGER\x2C\n NumberParseInt\x2C\n RegExpPrototypeTest\x2C\n String\x2C\n StringPrototypeToUpperCase\x2C\n StringPrototypeTrim\x2C\n} = primordials;\n\nconst {\n hideStackFrames\x2C\n codes: {\n ERR_SOCKET_BAD_PORT\x2C\n ERR_INVALID_ARG_TYPE\x2C\n ERR_INVALID_ARG_VALUE\x2C\n ERR_OUT_OF_RANGE\x2C\n ERR_UNKNOWN_SIGNAL\x2C\n ERR_INVALID_CALLBACK\x2C\n }\n} = require('internal/errors');\nconst { normalizeEncoding } = require('internal/util');\nconst {\n isArrayBufferView\n} = require('internal/util/types');\nconst { signals } = internalBinding('constants').os;\n\nfunction isInt32(value) {\n return value === (value | 0);\n}\n\nfunction isUint32(value) {\n return value === (value >>> 0);\n}\n\nconst octalReg = /^[0-7]+$/;\nconst modeDesc = 'must be a 32-bit unsigned integer or an octal string';\n\n/**\n * Parse and validate values that will be converted into mode_t (the S_*\n * constants). Only valid numbers and octal strings are allowed. They could be\n * converted to 32-bit unsigned integers or non-negative signed integers in the\n * C++ land\x2C but any value higher than 0o777 will result in platform-specific\n * behaviors.\n *\n * @param {*} value Values to be validated\n * @param {string} name Name of the argument\n * @param {number} [def] If specified\x2C will be returned for invalid values\n * @returns {number}\n */\nfunction parseFileMode(value\x2C name\x2C def) {\n value ??= def;\n if (typeof value === 'string') {\n if (!RegExpPrototypeTest(octalReg\x2C value)) {\n throw new ERR_INVALID_ARG_VALUE(name\x2C value\x2C modeDesc);\n }\n value = NumberParseInt(value\x2C 8);\n }\n\n validateInt32(value\x2C name\x2C 0\x2C 2 ** 32 - 1);\n return value;\n}\n\nconst validateInteger = hideStackFrames(\n (value\x2C name\x2C min = NumberMIN_SAFE_INTEGER\x2C max = NumberMAX_SAFE_INTEGER) => {\n if (typeof value !== 'number')\n throw new ERR_INVALID_ARG_TYPE(name\x2C 'number'\x2C value);\n if (!NumberIsInteger(value))\n throw new ERR_OUT_OF_RANGE(name\x2C 'an integer'\x2C value);\n if (value < min || value > max)\n throw new ERR_OUT_OF_RANGE(name\x2C `>= ${min} && <= ${max}`\x2C value);\n }\n);\n\nconst validateInt32 = hideStackFrames(\n (value\x2C name\x2C min = -2147483648\x2C max = 2147483647) => {\n // The defaults for min and max correspond to the limits of 32-bit integers.\n if (!isInt32(value)) {\n if (typeof value !== 'number') {\n throw new ERR_INVALID_ARG_TYPE(name\x2C 'number'\x2C value);\n }\n if (!NumberIsInteger(value)) {\n throw new ERR_OUT_OF_RANGE(name\x2C 'an integer'\x2C value);\n }\n throw new ERR_OUT_OF_RANGE(name\x2C `>= ${min} && <= ${max}`\x2C value);\n }\n if (value < min || value > max) {\n throw new ERR_OUT_OF_RANGE(name\x2C `>= ${min} && <= ${max}`\x2C value);\n }\n }\n);\n\nconst validateUint32 = hideStackFrames((value\x2C name\x2C positive) => {\n if (!isUint32(value)) {\n if (typeof value !== 'number') {\n throw new ERR_INVALID_ARG_TYPE(name\x2C 'number'\x2C value);\n }\n if (!NumberIsInteger(value)) {\n throw new ERR_OUT_OF_RANGE(name\x2C 'an integer'\x2C value);\n }\n const min = positive ? 1 : 0;\n // 2 ** 32 === 4294967296\n throw new ERR_OUT_OF_RANGE(name\x2C `>= ${min} && < 4294967296`\x2C value);\n }\n if (positive && value === 0) {\n throw new ERR_OUT_OF_RANGE(name\x2C '>= 1 && < 4294967296'\x2C value);\n }\n});\n\nfunction validateString(value\x2C name) {\n if (typeof value !== 'string')\n throw new ERR_INVALID_ARG_TYPE(name\x2C 'string'\x2C value);\n}\n\nfunction validateNumber(value\x2C name) {\n if (typeof value !== 'number')\n throw new ERR_INVALID_ARG_TYPE(name\x2C 'number'\x2C value);\n}\n\nconst validateOneOf = hideStackFrames((value\x2C name\x2C oneOf) => {\n if (!ArrayPrototypeIncludes(oneOf\x2C value)) {\n const allowed = ArrayPrototypeJoin(\n ArrayPrototypeMap(oneOf\x2C (v) =>\n (typeof v === 'string' ? `'${v}'` : String(v)))\x2C\n '\x2C ');\n const reason = 'must be one of: ' + allowed;\n throw new ERR_INVALID_ARG_VALUE(name\x2C value\x2C reason);\n }\n});\n\nfunction validateBoolean(value\x2C name) {\n if (typeof value !== 'boolean')\n throw new ERR_INVALID_ARG_TYPE(name\x2C 'boolean'\x2C value);\n}\n\nconst validateObject = hideStackFrames(\n (value\x2C name\x2C {\n nullable = false\x2C\n allowArray = false\x2C\n allowFunction = false\x2C\n } = {}) => {\n if ((!nullable && value === null) ||\n (!allowArray && ArrayIsArray(value)) ||\n (typeof value !== 'object' && (\n !allowFunction || typeof value !== 'function'\n ))) {\n throw new ERR_INVALID_ARG_TYPE(name\x2C 'Object'\x2C value);\n }\n });\n\nconst validateArray = hideStackFrames((value\x2C name\x2C { minLength = 0 } = {}) => {\n if (!ArrayIsArray(value)) {\n throw new ERR_INVALID_ARG_TYPE(name\x2C 'Array'\x2C value);\n }\n if (value.length < minLength) {\n const reason = `must be longer than ${minLength}`;\n throw new ERR_INVALID_ARG_VALUE(name\x2C value\x2C reason);\n }\n});\n\nfunction validateSignalName(signal\x2C name = 'signal') {\n if (typeof signal !== 'string')\n throw new ERR_INVALID_ARG_TYPE(name\x2C 'string'\x2C signal);\n\n if (signals[signal] === undefined) {\n if (signals[StringPrototypeToUpperCase(signal)] !== undefined) {\n throw new ERR_UNKNOWN_SIGNAL(signal +\n ' (signals must use all capital letters)');\n }\n\n throw new ERR_UNKNOWN_SIGNAL(signal);\n }\n}\n\nconst validateBuffer = hideStackFrames((buffer\x2C name = 'buffer') => {\n if (!isArrayBufferView(buffer)) {\n throw new ERR_INVALID_ARG_TYPE(name\x2C\n ['Buffer'\x2C 'TypedArray'\x2C 'DataView']\x2C\n buffer);\n }\n});\n\nfunction validateEncoding(data\x2C encoding) {\n const normalizedEncoding = normalizeEncoding(encoding);\n const length = data.length;\n\n if (normalizedEncoding === 'hex' && length % 2 !== 0) {\n throw new ERR_INVALID_ARG_VALUE('encoding'\x2C encoding\x2C\n `is invalid for data of length ${length}`);\n }\n}\n\n// Check that the port number is not NaN when coerced to a number\x2C\n// is an integer and that it falls within the legal range of port numbers.\nfunction validatePort(port\x2C name = 'Port'\x2C { allowZero = true } = {}) {\n if ((typeof port !== 'number' && typeof port !== 'string') ||\n (typeof port === 'string' && StringPrototypeTrim(port).length === 0) ||\n +port !== (+port >>> 0) ||\n port > 0xFFFF ||\n (port === 0 && !allowZero)) {\n throw new ERR_SOCKET_BAD_PORT(name\x2C port\x2C allowZero);\n }\n return port | 0;\n}\n\nconst validateCallback = hideStackFrames((callback) => {\n if (typeof callback !== 'function')\n throw new ERR_INVALID_CALLBACK(callback);\n});\n\nconst validateAbortSignal = hideStackFrames((signal\x2C name) => {\n if (signal !== undefined &&\n (signal === null ||\n typeof signal !== 'object' ||\n !('aborted' in signal))) {\n throw new ERR_INVALID_ARG_TYPE(name\x2C 'AbortSignal'\x2C signal);\n }\n});\n\nconst validateFunction = hideStackFrames((value\x2C name) => {\n if (typeof value !== 'function')\n throw new ERR_INVALID_ARG_TYPE(name\x2C 'Function'\x2C value);\n});\n\nconst validateUndefined = hideStackFrames((value\x2C name) => {\n if (value !== undefined)\n throw new ERR_INVALID_ARG_TYPE(name\x2C 'undefined'\x2C value);\n});\n\nmodule.exports = {\n isInt32\x2C\n isUint32\x2C\n parseFileMode\x2C\n validateArray\x2C\n validateBoolean\x2C\n validateBuffer\x2C\n validateEncoding\x2C\n validateFunction\x2C\n validateInt32\x2C\n validateInteger\x2C\n validateNumber\x2C\n validateObject\x2C\n validateOneOf\x2C\n validatePort\x2C\n validateSignalName\x2C\n validateString\x2C\n validateUint32\x2C\n validateUndefined\x2C\n validateCallback\x2C\n validateAbortSignal\x2C\n};\n
code-source-info,0xce7fc639626,17,6933,7049,C0O6954C6O6991C22O6997C27O6991C29O7048,,
tick,0x7f4dec173858,46353,0,0x0,3,0x11e9ce0,0xce7fc63952e,0xce7fc6391e7,0xce7fc636f8c,0xce7fc636e4b,0xce7fc631f1c,0xa52511b9255
code-creation,LazyCompile,10,46457,0xce7fc63a0a6,401,emit node:events:343:44,0x334c17f32378,~
code-source-info,0xce7fc63a0a6,13,9744,12016,C0O9744C8O9778C10O9784C14O9821C19O9832C21O9864C27O9886C29O9885C34O9927C42O9932C52O9927C57O9961C61O9990C69O10021C73O10039C74O10052C75O10111C79O10134C81O10151C88O10158C93O10169C94O10178C98O10187C100O10205C102O10194C110O10250C112O10262C122O10307C128O10317C134O10262C139O10332C147O10357C159O10406C176O10406C188O10332C199O10680C201O10680C202O10732C204O10771C212O10771C218O10759C226O10837C234O10835C235O10870C240O10967C248O10967C254O11011C256O11023C260O11033C262O11033C263O11094C265O11100C269O11111C271O11142C272O11155C273O11159C279O11223C285O11223C292O11377C298O11430C314O11430C321O11507C326O11537C330O11537C335O11575C337O11580C339O11580C344O11615C346O11624C351O11628C357O11628C364O11890C370O11945C386O11945C391O11589C396O11562C399O12002C400O12014,,
code-creation,LazyCompile,10,46526,0xce7fc63a476,172,startListeningIfSignal node:internal/process/signal:22:32,0xe5ca5cfcf30,~
script-source,88,node:internal/process/signal,'use strict';\n\nconst {\n FunctionPrototypeBind\x2C\n SafeMap\x2C\n} = primordials;\n\nconst {\n errnoException\x2C\n} = require('internal/errors');\n\nconst { signals } = internalBinding('constants').os;\n\nlet Signal;\nconst signalWraps = new SafeMap();\n\nfunction isSignal(event) {\n return typeof event === 'string' && signals[event] !== undefined;\n}\n\n// Detect presence of a listener for the special signal types\nfunction startListeningIfSignal(type) {\n if (isSignal(type) && !signalWraps.has(type)) {\n if (Signal === undefined)\n Signal = internalBinding('signal_wrap').Signal;\n const wrap = new Signal();\n\n wrap.unref();\n\n wrap.onsignal = FunctionPrototypeBind(process.emit\x2C process\x2C type\x2C type);\n\n const signum = signals[type];\n const err = wrap.start(signum);\n if (err) {\n wrap.close();\n throw errnoException(err\x2C 'uv_signal_start');\n }\n\n signalWraps.set(type\x2C wrap);\n }\n}\n\nfunction stopListeningIfSignal(type) {\n const wrap = signalWraps.get(type);\n if (wrap !== undefined && process.listenerCount(type) === 0) {\n wrap.close();\n signalWraps.delete(type);\n }\n}\n\nmodule.exports = {\n startListeningIfSignal\x2C\n stopListeningIfSignal\n};\n
code-source-info,0xce7fc63a476,88,429,904,C0O440C3O444C11O463C14O475C19O475C26O492C32O524C38O533C43O563C50O531C56O589C61O589C67O613C72O613C76O627C78O643C84O673C98O643C103O641C107O721C114O728C118O757C123O757C129O776C131O798C136O798C140O813C148O819C153O813C154O870C159O882C164O882C171O903,,
code-creation,LazyCompile,10,46602,0xce7fc63a846,19,isSignal node:internal/process/signal:17:18,0xe5ca5cfcd78,~
code-source-info,0xce7fc63a846,88,255,334,C0O267C8O303C13O310C17O318C18O332,,
code-creation,LazyCompile,10,46641,0xce7fc63a9ce,75,setupDebugEnv node:internal/bootstrap/pre_execution:193:23,0xa52511bb5a0,~
code-source-info,0xce7fc63a9ce,91,6010,6220,C0O6017C6O6017C11O6050C19O6078C24O6082C29O6051C34O6097C42O6101C48O6145C54O6145C59O6182C64O6195C69O6196C74O6219,,
code-creation,LazyCompile,10,46691,0xce7fc63ad5e,159,initializeDebugEnv node:internal/util/debuglog:22:28,0x1eac91c34cb8,~
code-source-info,0xce7fc63ad5e,40,546,991,C0O561C7O574C14O572C20O596C31O709C44O709C51O753C62O754C69O782C80O783C88O833C100O848C116O833C121O833C123O871C132O883C144O959C151O971C158O990,,
code-creation,LazyCompile,10,46728,0xce7fc63afc6,49,setupStacktracePrinterOnSigint node:internal/bootstrap/pre_execution:172:40,0xa52511bb4d8,~
code-source-info,0xce7fc63afc6,91,5574,5760,C0O5581C8O5586C14O5626C15O5633C16O5667C22O5667C27O5648C32O5717C38O5750C43O5750C48O5759,,
code-creation,LazyCompile,10,46761,0xce7fc63b1ee,62,initializeReport node:internal/bootstrap/pre_execution:182:26,0xa52511bb528,~
code-source-info,0xce7fc63b1ee,91,5787,5986,C0O5787C8O5813C16O5813C21O5802C27O5851C42O5872C47O5944C55O5851C61O5985,,
code-creation,Eval,10,46903,0xce7fc63b77e,5, node:internal/process/report:1:1,0xce7fc63b568,~
script-source,112,node:internal/process/report,'use strict';\nconst {\n ERR_INVALID_ARG_TYPE\x2C\n ERR_SYNTHETIC\n} = require('internal/errors').codes;\nconst {\n validateBoolean\x2C\n validateObject\x2C\n validateSignalName\x2C\n validateString\x2C\n} = require('internal/validators');\nconst nr = internalBinding('report');\nconst {\n JSONParse\x2C\n} = primordials;\nconst report = {\n writeReport(file\x2C err) {\n if (typeof file === 'object' && file !== null) {\n err = file;\n file = undefined;\n } else if (file !== undefined && typeof file !== 'string') {\n throw new ERR_INVALID_ARG_TYPE('file'\x2C 'String'\x2C file);\n } else if (err === undefined) {\n err = new ERR_SYNTHETIC();\n } else {\n validateObject(err\x2C 'err');\n }\n\n return nr.writeReport('JavaScript API'\x2C 'API'\x2C file\x2C err);\n }\x2C\n getReport(err) {\n if (err === undefined)\n err = new ERR_SYNTHETIC();\n else\n validateObject(err\x2C 'err');\n\n return JSONParse(nr.getReport(err));\n }\x2C\n get directory() {\n return nr.getDirectory();\n }\x2C\n set directory(dir) {\n validateString(dir\x2C 'directory');\n nr.setDirectory(dir);\n }\x2C\n get filename() {\n return nr.getFilename();\n }\x2C\n set filename(name) {\n validateString(name\x2C 'filename');\n nr.setFilename(name);\n }\x2C\n get compact() {\n return nr.getCompact();\n }\x2C\n set compact(b) {\n validateBoolean(b\x2C 'compact');\n nr.setCompact(b);\n }\x2C\n get signal() {\n return nr.getSignal();\n }\x2C\n set signal(sig) {\n validateSignalName(sig\x2C 'signal');\n removeSignalHandler();\n addSignalHandler(sig);\n nr.setSignal(sig);\n }\x2C\n get reportOnFatalError() {\n return nr.shouldReportOnFatalError();\n }\x2C\n set reportOnFatalError(trigger) {\n validateBoolean(trigger\x2C 'trigger');\n\n nr.setReportOnFatalError(trigger);\n }\x2C\n get reportOnSignal() {\n return nr.shouldReportOnSignal();\n }\x2C\n set reportOnSignal(trigger) {\n validateBoolean(trigger\x2C 'trigger');\n\n nr.setReportOnSignal(trigger);\n removeSignalHandler();\n addSignalHandler();\n }\x2C\n get reportOnUncaughtException() {\n return nr.shouldReportOnUncaughtException();\n }\x2C\n set reportOnUncaughtException(trigger) {\n validateBoolean(trigger\x2C 'trigger');\n\n nr.setReportOnUncaughtException(trigger);\n }\n};\n\nfunction addSignalHandler(sig) {\n if (nr.shouldReportOnSignal()) {\n if (typeof sig !== 'string')\n sig = nr.getSignal();\n\n process.on(sig\x2C signalHandler);\n }\n}\n\nfunction removeSignalHandler() {\n const sig = nr.getSignal();\n\n if (sig)\n process.removeListener(sig\x2C signalHandler);\n}\n\nfunction signalHandler(sig) {\n nr.writeReport(sig\x2C 'Signal'\x2C null\x2C '');\n}\n\nmodule.exports = {\n addSignalHandler\x2C\n report\n};\n
code-source-info,0xce7fc63b77e,112,0,2623,C0O0C4O2623,,
code-creation,Function,10,47024,0xce7fc63c2a6,315, node:internal/process/report:1:1,0xce7fc63b6e8,~
code-source-info,0xce7fc63c2a6,112,0,2623,C0O0C51O66C54O66C59O92C64O24C70O48C76O189C79O189C84O110C90O129C96O147C102O169C108O232C111O232C115O232C117O269C123O312C128O316C136O756C290O2572C297O2593C303O2613C309O2587C314O2622,,
code-creation,LazyCompile,10,47205,0xce7fc63e066,21,initializeReportSignalHandlers node:internal/bootstrap/pre_execution:201:40,0xa52511bb5f0,~
code-source-info,0xce7fc63e066,91,6321,6417,C0O6357C6O6357C11O6336C16O6396C20O6416,,
tick,0x7f4dec173833,47259,0,0x0,3,0x11e9ce0,0xce7fc631f62,0xa52511b9255
code-creation,LazyCompile,10,47289,0xce7fc63e17e,57,addSignalHandler node:internal/process/report:97:26,0xce7fc63b7b0,~
code-source-info,0xce7fc63e17e,112,2222,2368,C0O2232C5O2239C10O2239C16O2269C22O2304C27O2313C32O2313C38O2331C41O2339C49O2339C56O2367,,
code-creation,LazyCompile,10,47333,0xce7fc63e74e,92,initializeHeapSnapshotSignalHandlers node:internal/bootstrap/pre_execution:207:46,0xa52511bb640,~
code-source-info,0xce7fc63e74e,91,6464,6726,C0O6464C8O6486C18O6486C23O6530C25O6547C26O6554C27O6558C35O6558C40O6588C45O6589C50O6649C58O6649C63O6627C69O6667C74O6675C79O6678C84O6675C91O6725,,
code-creation,LazyCompile,10,47377,0xce7fc63e9d6,138,setupChildProcessIpcChannel node:internal/bootstrap/pre_execution:337:37,0xa52511bb810,~
code-source-info,0xce7fc63e9d6,91,10478,11007,C0O10485C3O10497C8O10501C14O10539C20O10539C25O10583C33O10606C38O10610C46O10583C52O10636C53O10646C57O10636C61O10727C64O10742C73O10800C76O10808C81O10812C90O10859C93O10874C102O10916C108O10916C113O10940C118O10941C124O10980C127O10995C132O10980C137O11006,,
code-creation,LazyCompile,10,47538,0xce7fc63ed6e,455,initializePolicy node:internal/bootstrap/pre_execution:365:26,0xa52511bb8b0,~
code-source-info,0xce7fc63ed6e,91,11306,13104,C0O11340C10O11340C15O11383C17O11413C21O11421C35O11421C41O11546C49O11546C55O11523C60O11538C65O11665C67O11682C75O11686C81O11701C87O11702C94O11742C100O11774C108O11756C116O11831C120O11853C126O11853C132O11831C138O11867C149O11883C153O11897C161O11911C167O11969C175O11969C180O12003C190O12003C197O12078C207O12078C212O12120C214O12173C222O12173C227O12251C235O12251C241O12219C246O12231C251O12300C257O12300C263O12350C269O12350C275O12409C277O12435C279O12459C283O12440C288O12549C290O12565C295O12500C300O12528C305O12591C311O12627C317O12627C322O12668C328O12668C334O12697C340O12717C344O12704C349O12737C356O12784C358O12813C360O12854C366O12876C376O12876C383O12854C389O12468C394O12422C397O12911C401O12938C415O12944C420O12938C421O13027C429O13027C435O13068C441O13092C447O13069C454O13103,,
code-creation,LazyCompile,10,47586,0xce7fc63f16e,63,initializeClusterIPC node:internal/bootstrap/pre_execution:356:30,0xa52511bb860,~
code-source-info,0xce7fc63f16e,91,11038,11279,C0O11045C3O11057C10O11061C18O11076C23O11080C29O11118C35O11118C40O11150C45O11150C49O11239C52O11254C62O11278,,
code-creation,LazyCompile,10,47624,0xce7fc63f2b6,27,initializeSourceMapsHandlers node:internal/bootstrap/pre_execution:458:38,0xa52511bb9f0,~
code-source-info,0xce7fc63f2b6,91,14759,14908,C0O14803C6O14803C11O14774C16O14854C21O14883C26O14907,,
code-creation,LazyCompile,10,47724,0xce7fc63fa36,492,initializeDeprecations node:internal/bootstrap/pre_execution:250:32,0xa52511bb780,~
code-source-info,0xce7fc63fa36,91,7941,10440,C0O7941C11O7970C19O7970C24O7956C29O8025C39O8025C44O8216C52O8216C57O8257C65O8257C70O8310C99O8302C127O8302C130O8628C141O8648C145O8690C156O8764C167O8854C178O8809C187O8675C196O8913C199O8646C203O8291C269O9190C277O9190C282O9169C287O9219C289O9247C304O9268C311O9386C315O9247C320O9418C324O9448C334O9484C344O9561C351O9466C356O9464C360O9647C370O9689C381O9671C386O9669C390O10028C394O10028C396O10039C407O10060C418O10089C426O10131C434O10039C439O10244C445O10244C447O10254C458O10275C469O10303C477O10344C485O10254C491O10439,,
code-creation,LazyCompile,10,47805,0xce7fc63ff5e,53,initializeWASI node:internal/bootstrap/pre_execution:414:24,0xa52511bb900,~
code-source-info,0xce7fc63ff5e,91,13129,13335,C0O13161C6O13161C11O13144C16O13227C21O13231C29O13231C35O13246C37O13277C43O13277C47O13271C52O13334,,
new,MemoryChunk,0xb6d53540000,262144
code-creation,LazyCompile,10,47878,0xb6d5354118e,51,initializeCJSLoader node:internal/bootstrap/pre_execution:421:29,0xa52511bb950,~
code-source-info,0xb6d5354118e,91,13365,13623,C0O13390C6O13390C11O13442C16O13449C21O13449C25O13541C36O13562C41O13598C45O13556C50O13622,,
code-creation,LazyCompile,10,48016,0xb6d5354145e,315,Module._initPaths node:internal/modules/cjs/loader:1227:29,0xce7fc6053a0,~
code-source-info,0xb6d5354145e,95,38372,39328,C0O38395C9O38415C14O38419C22O38433C28O38433C33O38472C42O38492C47O38496C55O38508C61O38508C66O38703C74O38719C77O38724C85O38740C93O38724C103O38762C106O38767C114O38783C125O38767C131O38823C140O38824C143O38829C157O38829C169O38868C173O38887C180O38916C183O38921C191O38921C198O38887C203O38963C210O38992C213O38997C221O38997C228O38963C233O39040C237O39060C244O39094C249O39122C254O39153C257O39158C262O39122C270O39176C273O39094C279O39060C284O39199C286O39211C292O39272C297O39293C302O39313C305O39293C309O39291C314O39327,,
code-creation,LazyCompile,10,48189,0xb6d53543fce,175,resolve node:path:1091:10,0x1eac91c23910,~
script-source,35,node:path,// Copyright Joyent\x2C Inc. and other Node contributors.\n//\n// Permission is hereby granted\x2C free of charge\x2C to any person obtaining a\n// copy of this software and associated documentation files (the\n// "Software")\x2C to deal in the Software without restriction\x2C including\n// without limitation the rights to use\x2C copy\x2C modify\x2C merge\x2C publish\x2C\n// distribute\x2C sublicense\x2C and/or sell copies of the Software\x2C and to permit\n// persons to whom the Software is furnished to do so\x2C subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED "AS IS"\x2C WITHOUT WARRANTY OF ANY KIND\x2C EXPRESS\n// OR IMPLIED\x2C INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY\x2C FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM\x2C\n// DAMAGES OR OTHER LIABILITY\x2C WHETHER IN AN ACTION OF CONTRACT\x2C TORT OR\n// OTHERWISE\x2C ARISING FROM\x2C OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n'use strict';\n\nconst {\n FunctionPrototypeBind\x2C\n StringPrototypeCharCodeAt\x2C\n StringPrototypeIndexOf\x2C\n StringPrototypeLastIndexOf\x2C\n StringPrototypeReplace\x2C\n StringPrototypeSlice\x2C\n StringPrototypeToLowerCase\x2C\n} = primordials;\n\nconst {\n CHAR_UPPERCASE_A\x2C\n CHAR_LOWERCASE_A\x2C\n CHAR_UPPERCASE_Z\x2C\n CHAR_LOWERCASE_Z\x2C\n CHAR_DOT\x2C\n CHAR_FORWARD_SLASH\x2C\n CHAR_BACKWARD_SLASH\x2C\n CHAR_COLON\x2C\n CHAR_QUESTION_MARK\x2C\n} = require('internal/constants');\nconst {\n validateObject\x2C\n validateString\x2C\n} = require('internal/validators');\n\nconst platformIsWin32 = (process.platform === 'win32');\n\nfunction isPathSeparator(code) {\n return code === CHAR_FORWARD_SLASH || code === CHAR_BACKWARD_SLASH;\n}\n\nfunction isPosixPathSeparator(code) {\n return code === CHAR_FORWARD_SLASH;\n}\n\nfunction isWindowsDeviceRoot(code) {\n return (code >= CHAR_UPPERCASE_A && code <= CHAR_UPPERCASE_Z) ||\n (code >= CHAR_LOWERCASE_A && code <= CHAR_LOWERCASE_Z);\n}\n\n// Resolves . and .. elements in a path with directory names\nfunction normalizeString(path\x2C allowAboveRoot\x2C separator\x2C isPathSeparator) {\n let res = '';\n let lastSegmentLength = 0;\n let lastSlash = -1;\n let dots = 0;\n let code = 0;\n for (let i = 0; i <= path.length; ++i) {\n if (i < path.length)\n code = StringPrototypeCharCodeAt(path\x2C i);\n else if (isPathSeparator(code))\n break;\n else\n code = CHAR_FORWARD_SLASH;\n\n if (isPathSeparator(code)) {\n if (lastSlash === i - 1 || dots === 1) {\n // NOOP\n } else if (dots === 2) {\n if (res.length < 2 || lastSegmentLength !== 2 ||\n StringPrototypeCharCodeAt(res\x2C res.length - 1) !== CHAR_DOT ||\n StringPrototypeCharCodeAt(res\x2C res.length - 2) !== CHAR_DOT) {\n if (res.length > 2) {\n const lastSlashIndex = StringPrototypeLastIndexOf(res\x2C separator);\n if (lastSlashIndex === -1) {\n res = '';\n lastSegmentLength = 0;\n } else {\n res = StringPrototypeSlice(res\x2C 0\x2C lastSlashIndex);\n lastSegmentLength =\n res.length - 1 - StringPrototypeLastIndexOf(res\x2C separator);\n }\n lastSlash = i;\n dots = 0;\n continue;\n } else if (res.length !== 0) {\n res = '';\n lastSegmentLength = 0;\n lastSlash = i;\n dots = 0;\n continue;\n }\n }\n if (allowAboveRoot) {\n res += res.length > 0 ? `${separator}..` : '..';\n lastSegmentLength = 2;\n }\n } else {\n if (res.length > 0)\n res += `${separator}${StringPrototypeSlice(path\x2C lastSlash + 1\x2C i)}`;\n else\n res = StringPrototypeSlice(path\x2C lastSlash + 1\x2C i);\n lastSegmentLength = i - lastSlash - 1;\n }\n lastSlash = i;\n dots = 0;\n } else if (code === CHAR_DOT && dots !== -1) {\n ++dots;\n } else {\n dots = -1;\n }\n }\n return res;\n}\n\n/**\n * @param {string} sep\n * @param {{\n * dir?: string;\n * root?: string;\n * base?: string;\n * name?: string;\n * ext?: string;\n * }} pathObject\n * @returns {string}\n */\nfunction _format(sep\x2C pathObject) {\n validateObject(pathObject\x2C 'pathObject');\n const dir = pathObject.dir || pathObject.root;\n const base = pathObject.base ||\n `${pathObject.name || ''}${pathObject.ext || ''}`;\n if (!dir) {\n return base;\n }\n return dir === pathObject.root ? `${dir}${base}` : `${dir}${sep}${base}`;\n}\n\nconst win32 = {\n /**\n * path.resolve([from ...]\x2C to)\n * @param {...string} args\n * @returns {string}\n */\n resolve(...args) {\n let resolvedDevice = '';\n let resolvedTail = '';\n let resolvedAbsolute = false;\n\n for (let i = args.length - 1; i >= -1; i--) {\n let path;\n if (i >= 0) {\n path = args[i];\n validateString(path\x2C 'path');\n\n // Skip empty entries\n if (path.length === 0) {\n continue;\n }\n } else if (resolvedDevice.length === 0) {\n path = process.cwd();\n } else {\n // Windows has the concept of drive-specific current working\n // directories. If we've resolved a drive letter but not yet an\n // absolute path\x2C get cwd for that drive\x2C or the process cwd if\n // the drive cwd is not available. We're sure the device is not\n // a UNC path at this points\x2C because UNC paths are always absolute.\n path = process.env[`=${resolvedDevice}`] || process.cwd();\n\n // Verify that a cwd was found and that it actually points\n // to our drive. If not\x2C default to the drive's root.\n if (path === undefined ||\n (StringPrototypeToLowerCase(StringPrototypeSlice(path\x2C 0\x2C 2)) !==\n StringPrototypeToLowerCase(resolvedDevice) &&\n StringPrototypeCharCodeAt(path\x2C 2) === CHAR_BACKWARD_SLASH)) {\n path = `${resolvedDevice}\\\\`;\n }\n }\n\n const len = path.length;\n let rootEnd = 0;\n let device = '';\n let isAbsolute = false;\n const code = StringPrototypeCharCodeAt(path\x2C 0);\n\n // Try to match a root\n if (len === 1) {\n if (isPathSeparator(code)) {\n // `path` contains just a path separator\n rootEnd = 1;\n isAbsolute = true;\n }\n } else if (isPathSeparator(code)) {\n // Possible UNC root\n\n // If we started with a separator\x2C we know we at least have an\n // absolute path of some kind (UNC or otherwise)\n isAbsolute = true;\n\n if (isPathSeparator(StringPrototypeCharCodeAt(path\x2C 1))) {\n // Matched double path separator at beginning\n let j = 2;\n let last = j;\n // Match 1 or more non-path separators\n while (j < len &&\n !isPathSeparator(StringPrototypeCharCodeAt(path\x2C j))) {\n j++;\n }\n if (j < len && j !== last) {\n const firstPart = StringPrototypeSlice(path\x2C last\x2C j);\n // Matched!\n last = j;\n // Match 1 or more path separators\n while (j < len &&\n isPathSeparator(StringPrototypeCharCodeAt(path\x2C j))) {\n j++;\n }\n if (j < len && j !== last) {\n // Matched!\n last = j;\n // Match 1 or more non-path separators\n while (j < len &&\n !isPathSeparator(StringPrototypeCharCodeAt(path\x2C j))) {\n j++;\n }\n if (j === len || j !== last) {\n // We matched a UNC root\n device =\n `\\\\\\\\${firstPart}\\\\${StringPrototypeSlice(path\x2C last\x2C j)}`;\n rootEnd = j;\n }\n }\n }\n } else {\n rootEnd = 1;\n }\n } else if (isWindowsDeviceRoot(code) &&\n StringPrototypeCharCodeAt(path\x2C 1) === CHAR_COLON) {\n // Possible device root\n device = StringPrototypeSlice(path\x2C 0\x2C 2);\n rootEnd = 2;\n if (len > 2 && isPathSeparator(StringPrototypeCharCodeAt(path\x2C 2))) {\n // Treat separator following drive name as an absolute path\n // indicator\n isAbsolute = true;\n rootEnd = 3;\n }\n }\n\n if (device.length > 0) {\n if (resolvedDevice.length > 0) {\n if (StringPrototypeToLowerCase(device) !==\n StringPrototypeToLowerCase(resolvedDevice))\n // This path points to another device so it is not applicable\n continue;\n } else {\n resolvedDevice = device;\n }\n }\n\n if (resolvedAbsolute) {\n if (resolvedDevice.length > 0)\n break;\n } else {\n resolvedTail =\n `${StringPrototypeSlice(path\x2C rootEnd)}\\\\${resolvedTail}`;\n resolvedAbsolute = isAbsolute;\n if (isAbsolute && resolvedDevice.length > 0) {\n break;\n }\n }\n }\n\n // At this point the path should be resolved to a full absolute path\x2C\n // but handle relative paths to be safe (might happen when process.cwd()\n // fails)\n\n // Normalize the tail path\n resolvedTail = normalizeString(resolvedTail\x2C !resolvedAbsolute\x2C '\\\\'\x2C\n isPathSeparator);\n\n return resolvedAbsolute ?\n `${resolvedDevice}\\\\${resolvedTail}` :\n `${resolvedDevice}${resolvedTail}` || '.';\n }\x2C\n\n /**\n * @param {string} path\n * @returns {string}\n */\n normalize(path) {\n validateString(path\x2C 'path');\n const len = path.length;\n if (len === 0)\n return '.';\n let rootEnd = 0;\n let device;\n let isAbsolute = false;\n const code = StringPrototypeCharCodeAt(path\x2C 0);\n\n // Try to match a root\n if (len === 1) {\n // `path` contains just a single char\x2C exit early to avoid\n // unnecessary work\n return isPosixPathSeparator(code) ? '\\\\' : path;\n }\n if (isPathSeparator(code)) {\n // Possible UNC root\n\n // If we started with a separator\x2C we know we at least have an absolute\n // path of some kind (UNC or otherwise)\n isAbsolute = true;\n\n if (isPathSeparator(StringPrototypeCharCodeAt(path\x2C 1))) {\n // Matched double path separator at beginning\n let j = 2;\n let last = j;\n // Match 1 or more non-path separators\n while (j < len &&\n !isPathSeparator(StringPrototypeCharCodeAt(path\x2C j))) {\n j++;\n }\n if (j < len && j !== last) {\n const firstPart = StringPrototypeSlice(path\x2C last\x2C j);\n // Matched!\n last = j;\n // Match 1 or more path separators\n while (j < len &&\n isPathSeparator(StringPrototypeCharCodeAt(path\x2C j))) {\n j++;\n }\n if (j < len && j !== last) {\n // Matched!\n last = j;\n // Match 1 or more non-path separators\n while (j < len &&\n !isPathSeparator(StringPrototypeCharCodeAt(path\x2C j))) {\n j++;\n }\n if (j === len) {\n // We matched a UNC root only\n // Return the normalized version of the UNC root since there\n // is nothing left to process\n return `\\\\\\\\${firstPart}\\\\${StringPrototypeSlice(path\x2C last)}\\\\`;\n }\n if (j !== last) {\n // We matched a UNC root with leftovers\n device =\n `\\\\\\\\${firstPart}\\\\${StringPrototypeSlice(path\x2C last\x2C j)}`;\n rootEnd = j;\n }\n }\n }\n } else {\n rootEnd = 1;\n }\n } else if (isWindowsDeviceRoot(code) &&\n StringPrototypeCharCodeAt(path\x2C 1) === CHAR_COLON) {\n // Possible device root\n device = StringPrototypeSlice(path\x2C 0\x2C 2);\n rootEnd = 2;\n if (len > 2 && isPathSeparator(StringPrototypeCharCodeAt(path\x2C 2))) {\n // Treat separator following drive name as an absolute path\n // indicator\n isAbsolute = true;\n rootEnd = 3;\n }\n }\n\n let tail = rootEnd < len ?\n normalizeString(StringPrototypeSlice(path\x2C rootEnd)\x2C\n !isAbsolute\x2C '\\\\'\x2C isPathSeparator) :\n '';\n if (tail.length === 0 && !isAbsolute)\n tail = '.';\n if (tail.length > 0 &&\n isPathSeparator(StringPrototypeCharCodeAt(path\x2C len - 1)))\n tail += '\\\\';\n if (device === undefined) {\n return isAbsolute ? `\\\\${tail}` : tail;\n }\n return isAbsolute ? `${device}\\\\${tail}` : `${device}${tail}`;\n }\x2C\n\n /**\n * @param {string} path\n * @returns {boolean}\n */\n isAbsolute(path) {\n validateString(path\x2C 'path');\n const len = path.length;\n if (len === 0)\n return false;\n\n const code = StringPrototypeCharCodeAt(path\x2C 0);\n return isPathSeparator(code) ||\n // Possible device root\n (len > 2 &&\n isWindowsDeviceRoot(code) &&\n StringPrototypeCharCodeAt(path\x2C 1) === CHAR_COLON &&\n isPathSeparator(StringPrototypeCharCodeAt(path\x2C 2)));\n }\x2C\n\n /**\n * @param {...string} args\n * @returns {string}\n */\n join(...args) {\n if (args.length === 0)\n return '.';\n\n let joined;\n let firstPart;\n for (let i = 0; i < args.length; ++i) {\n const arg = args[i];\n validateString(arg\x2C 'path');\n if (arg.length > 0) {\n if (joined === undefined)\n joined = firstPart = arg;\n else\n joined += `\\\\${arg}`;\n }\n }\n\n if (joined === undefined)\n return '.';\n\n // Make sure that the joined path doesn't start with two slashes\x2C because\n // normalize() will mistake it for a UNC path then.\n //\n // This step is skipped when it is very clear that the user actually\n // intended to point at a UNC path. This is assumed when the first\n // non-empty string arguments starts with exactly two slashes followed by\n // at least one more non-slash character.\n //\n // Note that for normalize() to treat a path as a UNC path it needs to\n // have at least 2 components\x2C so we don't filter for that here.\n // This means that the user can use join to construct UNC paths from\n // a server name and a share name; for example:\n // path.join('//server'\x2C 'share') -> '\\\\\\\\server\\\\share\\\\')\n let needsReplace = true;\n let slashCount = 0;\n if (isPathSeparator(StringPrototypeCharCodeAt(firstPart\x2C 0))) {\n ++slashCount;\n const firstLen = firstPart.length;\n if (firstLen > 1 &&\n isPathSeparator(StringPrototypeCharCodeAt(firstPart\x2C 1))) {\n ++slashCount;\n if (firstLen > 2) {\n if (isPathSeparator(StringPrototypeCharCodeAt(firstPart\x2C 2)))\n ++slashCount;\n else {\n // We matched a UNC path in the first part\n needsReplace = false;\n }\n }\n }\n }\n if (needsReplace) {\n // Find any more consecutive slashes we need to replace\n while (slashCount < joined.length &&\n isPathSeparator(StringPrototypeCharCodeAt(joined\x2C slashCount))) {\n slashCount++;\n }\n\n // Replace the slashes if needed\n if (slashCount >= 2)\n joined = `\\\\${StringPrototypeSlice(joined\x2C slashCount)}`;\n }\n\n return win32.normalize(joined);\n }\x2C\n\n /**\n * It will solve the relative path from `from` to `to`\x2C for instancee\n * from = 'C:\\\\orandea\\\\test\\\\aaa'\n * to = 'C:\\\\orandea\\\\impl\\\\bbb'\n * The output of the function should be: '..\\\\..\\\\impl\\\\bbb'\n * @param {string} from\n * @param {string} to\n * @returns {string}\n */\n relative(from\x2C to) {\n validateString(from\x2C 'from');\n validateString(to\x2C 'to');\n\n if (from === to)\n return '';\n\n const fromOrig = win32.resolve(from);\n const toOrig = win32.resolve(to);\n\n if (fromOrig === toOrig)\n return '';\n\n from = StringPrototypeToLowerCase(fromOrig);\n to = StringPrototypeToLowerCase(toOrig);\n\n if (from === to)\n return '';\n\n // Trim any leading backslashes\n let fromStart = 0;\n while (fromStart < from.length &&\n StringPrototypeCharCodeAt(from\x2C fromStart) === CHAR_BACKWARD_SLASH) {\n fromStart++;\n }\n // Trim trailing backslashes (applicable to UNC paths only)\n let fromEnd = from.length;\n while (\n fromEnd - 1 > fromStart &&\n StringPrototypeCharCodeAt(from\x2C fromEnd - 1) === CHAR_BACKWARD_SLASH\n ) {\n fromEnd--;\n }\n const fromLen = fromEnd - fromStart;\n\n // Trim any leading backslashes\n let toStart = 0;\n while (toStart < to.length &&\n StringPrototypeCharCodeAt(to\x2C toStart) === CHAR_BACKWARD_SLASH) {\n toStart++;\n }\n // Trim trailing backslashes (applicable to UNC paths only)\n let toEnd = to.length;\n while (toEnd - 1 > toStart &&\n StringPrototypeCharCodeAt(to\x2C toEnd - 1) === CHAR_BACKWARD_SLASH) {\n toEnd--;\n }\n const toLen = toEnd - toStart;\n\n // Compare paths to find the longest common path from root\n const length = fromLen < toLen ? fromLen : toLen;\n let lastCommonSep = -1;\n let i = 0;\n for (; i < length; i++) {\n const fromCode = StringPrototypeCharCodeAt(from\x2C fromStart + i);\n if (fromCode !== StringPrototypeCharCodeAt(to\x2C toStart + i))\n break;\n else if (fromCode === CHAR_BACKWARD_SLASH)\n lastCommonSep = i;\n }\n\n // We found a mismatch before the first common path separator was seen\x2C so\n // return the original `to`.\n if (i !== length) {\n if (lastCommonSep === -1)\n return toOrig;\n } else {\n if (toLen > length) {\n if (StringPrototypeCharCodeAt(to\x2C toStart + i) ===\n CHAR_BACKWARD_SLASH) {\n // We get here if `from` is the exact base path for `to`.\n // For example: from='C:\\\\foo\\\\bar'; to='C:\\\\foo\\\\bar\\\\baz'\n return StringPrototypeSlice(toOrig\x2C toStart + i + 1);\n }\n if (i === 2) {\n // We get here if `from` is the device root.\n // For example: from='C:\\\\'; to='C:\\\\foo'\n return StringPrototypeSlice(toOrig\x2C toStart + i);\n }\n }\n if (fromLen > length) {\n if (StringPrototypeCharCodeAt(from\x2C fromStart + i) ===\n CHAR_BACKWARD_SLASH) {\n // We get here if `to` is the exact base path for `from`.\n // For example: from='C:\\\\foo\\\\bar'; to='C:\\\\foo'\n lastCommonSep = i;\n } else if (i === 2) {\n // We get here if `to` is the device root.\n // For example: from='C:\\\\foo\\\\bar'; to='C:\\\\'\n lastCommonSep = 3;\n }\n }\n if (lastCommonSep === -1)\n lastCommonSep = 0;\n }\n\n let out = '';\n // Generate the relative path based on the path difference between `to` and\n // `from`\n for (i = fromStart + lastCommonSep + 1; i <= fromEnd; ++i) {\n if (i === fromEnd ||\n StringPrototypeCharCodeAt(from\x2C i) === CHAR_BACKWARD_SLASH) {\n out += out.length === 0 ? '..' : '\\\\..';\n }\n }\n\n toStart += lastCommonSep;\n\n // Lastly\x2C append the rest of the destination (`to`) path that comes after\n // the common path parts\n if (out.length > 0)\n return `${out}${StringPrototypeSlice(toOrig\x2C toStart\x2C toEnd)}`;\n\n if (StringPrototypeCharCodeAt(toOrig\x2C toStart) === CHAR_BACKWARD_SLASH)\n ++toStart;\n return StringPrototypeSlice(toOrig\x2C toStart\x2C toEnd);\n }\x2C\n\n /**\n * @param {string} path\n * @returns {string}\n */\n toNamespacedPath(path) {\n // Note: this will *probably* throw somewhere.\n if (typeof path !== 'string' || path.length === 0)\n return path;\n\n const resolvedPath = win32.resolve(path);\n\n if (resolvedPath.length <= 2)\n return path;\n\n if (StringPrototypeCharCodeAt(resolvedPath\x2C 0) === CHAR_BACKWARD_SLASH) {\n // Possible UNC root\n if (StringPrototypeCharCodeAt(resolvedPath\x2C 1) === CHAR_BACKWARD_SLASH) {\n const code = StringPrototypeCharCodeAt(resolvedPath\x2C 2);\n if (code !== CHAR_QUESTION_MARK && code !== CHAR_DOT) {\n // Matched non-long UNC root\x2C convert the path to a long UNC path\n return `\\\\\\\\?\\\\UNC\\\\${StringPrototypeSlice(resolvedPath\x2C 2)}`;\n }\n }\n } else if (\n isWindowsDeviceRoot(StringPrototypeCharCodeAt(resolvedPath\x2C 0)) &&\n StringPrototypeCharCodeAt(resolvedPath\x2C 1) === CHAR_COLON &&\n StringPrototypeCharCodeAt(resolvedPath\x2C 2) === CHAR_BACKWARD_SLASH\n ) {\n // Matched device root\x2C convert the path to a long UNC path\n return `\\\\\\\\?\\\\${resolvedPath}`;\n }\n\n return path;\n }\x2C\n\n /**\n * @param {string} path\n * @returns {string}\n */\n dirname(path) {\n validateString(path\x2C 'path');\n const len = path.length;\n if (len === 0)\n return '.';\n let rootEnd = -1;\n let offset = 0;\n const code = StringPrototypeCharCodeAt(path\x2C 0);\n\n if (len === 1) {\n // `path` contains just a path separator\x2C exit early to avoid\n // unnecessary work or a dot.\n return isPathSeparator(code) ? path : '.';\n }\n\n // Try to match a root\n if (isPathSeparator(code)) {\n // Possible UNC root\n\n rootEnd = offset = 1;\n\n if (isPathSeparator(StringPrototypeCharCodeAt(path\x2C 1))) {\n // Matched double path separator at beginning\n let j = 2;\n let last = j;\n // Match 1 or more non-path separators\n while (j < len &&\n !isPathSeparator(StringPrototypeCharCodeAt(path\x2C j))) {\n j++;\n }\n if (j < len && j !== last) {\n // Matched!\n last = j;\n // Match 1 or more path separators\n while (j < len &&\n isPathSeparator(StringPrototypeCharCodeAt(path\x2C j))) {\n j++;\n }\n if (j < len && j !== last) {\n // Matched!\n last = j;\n // Match 1 or more non-path separators\n while (j < len &&\n !isPathSeparator(StringPrototypeCharCodeAt(path\x2C j))) {\n j++;\n }\n if (j === len) {\n // We matched a UNC root only\n return path;\n }\n if (j !== last) {\n // We matched a UNC root with leftovers\n\n // Offset by 1 to include the separator after the UNC root to\n // treat it as a "normal root" on top of a (UNC) root\n rootEnd = offset = j + 1;\n }\n }\n }\n }\n // Possible device root\n } else if (isWindowsDeviceRoot(code) &&\n StringPrototypeCharCodeAt(path\x2C 1) === CHAR_COLON) {\n rootEnd =\n len > 2 && isPathSeparator(StringPrototypeCharCodeAt(path\x2C 2)) ? 3 : 2;\n offset = rootEnd;\n }\n\n let end = -1;\n let matchedSlash = true;\n for (let i = len - 1; i >= offset; --i) {\n if (isPathSeparator(StringPrototypeCharCodeAt(path\x2C i))) {\n if (!matchedSlash) {\n end = i;\n break;\n }\n } else {\n // We saw the first non-path separator\n matchedSlash = false;\n }\n }\n\n if (end === -1) {\n if (rootEnd === -1)\n return '.';\n\n end = rootEnd;\n }\n return StringPrototypeSlice(path\x2C 0\x2C end);\n }\x2C\n\n /**\n * @param {string} path\n * @param {string} [ext]\n * @returns {string}\n */\n basename(path\x2C ext) {\n if (ext !== undefined)\n validateString(ext\x2C 'ext');\n validateString(path\x2C 'path');\n let start = 0;\n let end = -1;\n let matchedSlash = true;\n\n // Check for a drive letter prefix so as not to mistake the following\n // path separator as an extra separator at the end of the path that can be\n // disregarded\n if (path.length >= 2 &&\n isWindowsDeviceRoot(StringPrototypeCharCodeAt(path\x2C 0)) &&\n StringPrototypeCharCodeAt(path\x2C 1) === CHAR_COLON) {\n start = 2;\n }\n\n if (ext !== undefined && ext.length > 0 && ext.length <= path.length) {\n if (ext === path)\n return '';\n let extIdx = ext.length - 1;\n let firstNonSlashEnd = -1;\n for (let i = path.length - 1; i >= start; --i) {\n const code = StringPrototypeCharCodeAt(path\x2C i);\n if (isPathSeparator(code)) {\n // If we reached a path separator that was not part of a set of path\n // separators at the end of the string\x2C stop now\n if (!matchedSlash) {\n start = i + 1;\n break;\n }\n } else {\n if (firstNonSlashEnd === -1) {\n // We saw the first non-path separator\x2C remember this index in case\n // we need it if the extension ends up not matching\n matchedSlash = false;\n firstNonSlashEnd = i + 1;\n }\n if (extIdx >= 0) {\n // Try to match the explicit extension\n if (code === StringPrototypeCharCodeAt(ext\x2C extIdx)) {\n if (--extIdx === -1) {\n // We matched the extension\x2C so mark this as the end of our path\n // component\n end = i;\n }\n } else {\n // Extension does not match\x2C so our result is the entire path\n // component\n extIdx = -1;\n end = firstNonSlashEnd;\n }\n }\n }\n }\n\n if (start === end)\n end = firstNonSlashEnd;\n else if (end === -1)\n end = path.length;\n return StringPrototypeSlice(path\x2C start\x2C end);\n }\n for (let i = path.length - 1; i >= start; --i) {\n if (isPathSeparator(StringPrototypeCharCodeAt(path\x2C i))) {\n // If we reached a path separator that was not part of a set of path\n // separators at the end of the string\x2C stop now\n if (!matchedSlash) {\n start = i + 1;\n break;\n }\n } else if (end === -1) {\n // We saw the first non-path separator\x2C mark this as the end of our\n // path component\n matchedSlash = false;\n end = i + 1;\n }\n }\n\n if (end === -1)\n return '';\n return StringPrototypeSlice(path\x2C start\x2C end);\n }\x2C\n\n /**\n * @param {string} path\n * @returns {string}\n */\n extname(path) {\n validateString(path\x2C 'path');\n let start = 0;\n let startDot = -1;\n let startPart = 0;\n let end = -1;\n let matchedSlash = true;\n // Track the state of characters (if any) we see before our first dot and\n // after any path separator we find\n let preDotState = 0;\n\n // Check for a drive letter prefix so as not to mistake the following\n // path separator as an extra separator at the end of the path that can be\n // disregarded\n\n if (path.length >= 2 &&\n StringPrototypeCharCodeAt(path\x2C 1) === CHAR_COLON &&\n isWindowsDeviceRoot(StringPrototypeCharCodeAt(path\x2C 0))) {\n start = startPart = 2;\n }\n\n for (let i = path.length - 1; i >= start; --i) {\n const code = StringPrototypeCharCodeAt(path\x2C i);\n if (isPathSeparator(code)) {\n // If we reached a path separator that was not part of a set of path\n // separators at the end of the string\x2C stop now\n if (!matchedSlash) {\n startPart = i + 1;\n break;\n }\n continue;\n }\n if (end === -1) {\n // We saw the first non-path separator\x2C mark this as the end of our\n // extension\n matchedSlash = false;\n end = i + 1;\n }\n if (code === CHAR_DOT) {\n // If this is our first dot\x2C mark it as the start of our extension\n if (startDot === -1)\n startDot = i;\n else if (preDotState !== 1)\n preDotState = 1;\n } else if (startDot !== -1) {\n // We saw a non-dot and non-path separator before our dot\x2C so we should\n // have a good chance at having a non-empty extension\n preDotState = -1;\n }\n }\n\n if (startDot === -1 ||\n end === -1 ||\n // We saw a non-dot character immediately before the dot\n preDotState === 0 ||\n // The (right-most) trimmed path component is exactly '..'\n (preDotState === 1 &&\n startDot === end - 1 &&\n startDot === startPart + 1)) {\n return '';\n }\n return StringPrototypeSlice(path\x2C startDot\x2C end);\n }\x2C\n\n format: FunctionPrototypeBind(_format\x2C null\x2C '\\\\')\x2C\n\n /**\n * @param {string} path\n * @returns {{\n * dir: string;\n * root: string;\n * base: string;\n * name: string;\n * ext: string;\n * }}\n */\n parse(path) {\n validateString(path\x2C 'path');\n\n const ret = { root: ''\x2C dir: ''\x2C base: ''\x2C ext: ''\x2C name: '' };\n if (path.length === 0)\n return ret;\n\n const len = path.length;\n let rootEnd = 0;\n let code = StringPrototypeCharCodeAt(path\x2C 0);\n\n if (len === 1) {\n if (isPathSeparator(code)) {\n // `path` contains just a path separator\x2C exit early to avoid\n // unnecessary work\n ret.root = ret.dir = path;\n return ret;\n }\n ret.base = ret.name = path;\n return ret;\n }\n // Try to match a root\n if (isPathSeparator(code)) {\n // Possible UNC root\n\n rootEnd = 1;\n if (isPathSeparator(StringPrototypeCharCodeAt(path\x2C 1))) {\n // Matched double path separator at beginning\n let j = 2;\n let last = j;\n // Match 1 or more non-path separators\n while (j < len &&\n !isPathSeparator(StringPrototypeCharCodeAt(path\x2C j))) {\n j++;\n }\n if (j < len && j !== last) {\n // Matched!\n last = j;\n // Match 1 or more path separators\n while (j < len &&\n isPathSeparator(StringPrototypeCharCodeAt(path\x2C j))) {\n j++;\n }\n if (j < len && j !== last) {\n // Matched!\n last = j;\n // Match 1 or more non-path separators\n while (j < len &&\n !isPathSeparator(StringPrototypeCharCodeAt(path\x2C j))) {\n j++;\n }\n if (j === len) {\n // We matched a UNC root only\n rootEnd = j;\n } else if (j !== last) {\n // We matched a UNC root with leftovers\n rootEnd = j + 1;\n }\n }\n }\n }\n } else if (isWindowsDeviceRoot(code) &&\n StringPrototypeCharCodeAt(path\x2C 1) === CHAR_COLON) {\n // Possible device root\n if (len <= 2) {\n // `path` contains just a drive root\x2C exit early to avoid\n // unnecessary work\n ret.root = ret.dir = path;\n return ret;\n }\n rootEnd = 2;\n if (isPathSeparator(StringPrototypeCharCodeAt(path\x2C 2))) {\n if (len === 3) {\n // `path` contains just a drive root\x2C exit early to avoid\n // unnecessary work\n ret.root = ret.dir = path;\n return ret;\n }\n rootEnd = 3;\n }\n }\n if (rootEnd > 0)\n ret.root = StringPrototypeSlice(path\x2C 0\x2C rootEnd);\n\n let startDot = -1;\n let startPart = rootEnd;\n let end = -1;\n let matchedSlash = true;\n let i = path.length - 1;\n\n // Track the state of characters (if any) we see before our first dot and\n // after any path separator we find\n let preDotState = 0;\n\n // Get non-dir info\n for (; i >= rootEnd; --i) {\n code = StringPrototypeCharCodeAt(path\x2C i);\n if (isPathSeparator(code)) {\n // If we reached a path separator that was not part of a set of path\n // separators at the end of the string\x2C stop now\n if (!matchedSlash) {\n startPart = i + 1;\n break;\n }\n continue;\n }\n if (end === -1) {\n // We saw the first non-path separator\x2C mark this as the end of our\n // extension\n matchedSlash = false;\n end = i + 1;\n }\n if (code === CHAR_DOT) {\n // If this is our first dot\x2C mark it as the start of our extension\n if (startDot === -1)\n startDot = i;\n else if (preDotState !== 1)\n preDotState = 1;\n } else if (startDot !== -1) {\n // We saw a non-dot and non-path separator before our dot\x2C so we should\n // have a good chance at having a non-empty extension\n preDotState = -1;\n }\n }\n\n if (end !== -1) {\n if (startDot === -1 ||\n // We saw a non-dot character immediately before the dot\n preDotState === 0 ||\n // The (right-most) trimmed path component is exactly '..'\n (preDotState === 1 &&\n startDot === end - 1 &&\n startDot === startPart + 1)) {\n ret.base = ret.name = StringPrototypeSlice(path\x2C startPart\x2C end);\n } else {\n ret.name = StringPrototypeSlice(path\x2C startPart\x2C startDot);\n ret.base = StringPrototypeSlice(path\x2C startPart\x2C end);\n ret.ext = StringPrototypeSlice(path\x2C startDot\x2C end);\n }\n }\n\n // If the directory is the root\x2C use the entire root as the `dir` including\n // the trailing slash if any (`C:\\abc` -> `C:\\`). Otherwise\x2C strip out the\n // trailing slash (`C:\\abc\\def` -> `C:\\abc`).\n if (startPart > 0 && startPart !== rootEnd)\n ret.dir = StringPrototypeSlice(path\x2C 0\x2C startPart - 1);\n else\n ret.dir = ret.root;\n\n return ret;\n }\x2C\n\n sep: '\\\\'\x2C\n delimiter: ';'\x2C\n win32: null\x2C\n posix: null\n};\n\nconst posixCwd = (() => {\n if (platformIsWin32) {\n // Converts Windows' backslash path separators to POSIX forward slashes\n // and truncates any drive indicator\n const regexp = /\\\\/g;\n return () => {\n const cwd = StringPrototypeReplace(process.cwd()\x2C regexp\x2C '/');\n return StringPrototypeSlice(cwd\x2C StringPrototypeIndexOf(cwd\x2C '/'));\n };\n }\n\n // We're already on POSIX\x2C no need for any transformations\n return () => process.cwd();\n})();\n\nconst posix = {\n /**\n * path.resolve([from ...]\x2C to)\n * @param {...string} args\n * @returns {string}\n */\n resolve(...args) {\n let resolvedPath = '';\n let resolvedAbsolute = false;\n\n for (let i = args.length - 1; i >= -1 && !resolvedAbsolute; i--) {\n const path = i >= 0 ? args[i] : posixCwd();\n\n validateString(path\x2C 'path');\n\n // Skip empty entries\n if (path.length === 0) {\n continue;\n }\n\n resolvedPath = `${path}/${resolvedPath}`;\n resolvedAbsolute =\n StringPrototypeCharCodeAt(path\x2C 0) === CHAR_FORWARD_SLASH;\n }\n\n // At this point the path should be resolved to a full absolute path\x2C but\n // handle relative paths to be safe (might happen when process.cwd() fails)\n\n // Normalize the path\n resolvedPath = normalizeString(resolvedPath\x2C !resolvedAbsolute\x2C '/'\x2C\n isPosixPathSeparator);\n\n if (resolvedAbsolute) {\n return `/${resolvedPath}`;\n }\n return resolvedPath.length > 0 ? resolvedPath : '.';\n }\x2C\n\n /**\n * @param {string} path\n * @returns {string}\n */\n normalize(path) {\n validateString(path\x2C 'path');\n\n if (path.length === 0)\n return '.';\n\n const isAbsolute =\n StringPrototypeCharCodeAt(path\x2C 0) === CHAR_FORWARD_SLASH;\n const trailingSeparator =\n StringPrototypeCharCodeAt(path\x2C path.length - 1) === CHAR_FORWARD_SLASH;\n\n // Normalize the path\n path = normalizeString(path\x2C !isAbsolute\x2C '/'\x2C isPosixPathSeparator);\n\n if (path.length === 0) {\n if (isAbsolute)\n return '/';\n return trailingSeparator ? './' : '.';\n }\n if (trailingSeparator)\n path += '/';\n\n return isAbsolute ? `/${path}` : path;\n }\x2C\n\n /**\n * @param {string} path\n * @returns {boolean}\n */\n isAbsolute(path) {\n validateString(path\x2C 'path');\n return path.length > 0 &&\n StringPrototypeCharCodeAt(path\x2C 0) === CHAR_FORWARD_SLASH;\n }\x2C\n\n /**\n * @param {...string} args\n * @returns {string}\n */\n join(...args) {\n if (args.length === 0)\n return '.';\n let joined;\n for (let i = 0; i < args.length; ++i) {\n const arg = args[i];\n validateString(arg\x2C 'path');\n if (arg.length > 0) {\n if (joined === undefined)\n joined = arg;\n else\n joined += `/${arg}`;\n }\n }\n if (joined === undefined)\n return '.';\n return posix.normalize(joined);\n }\x2C\n\n /**\n * @param {string} from\n * @param {string} to\n * @returns {string}\n */\n relative(from\x2C to) {\n validateString(from\x2C 'from');\n validateString(to\x2C 'to');\n\n if (from === to)\n return '';\n\n // Trim leading forward slashes.\n from = posix.resolve(from);\n to = posix.resolve(to);\n\n if (from === to)\n return '';\n\n const fromStart = 1;\n const fromEnd = from.length;\n const fromLen = fromEnd - fromStart;\n const toStart = 1;\n const toLen = to.length - toStart;\n\n // Compare paths to find the longest common path from root\n const length = (fromLen < toLen ? fromLen : toLen);\n let lastCommonSep = -1;\n let i = 0;\n for (; i < length; i++) {\n const fromCode = StringPrototypeCharCodeAt(from\x2C fromStart + i);\n if (fromCode !== StringPrototypeCharCodeAt(to\x2C toStart + i))\n break;\n else if (fromCode === CHAR_FORWARD_SLASH)\n lastCommonSep = i;\n }\n if (i === length) {\n if (toLen > length) {\n if (StringPrototypeCharCodeAt(to\x2C toStart + i) === CHAR_FORWARD_SLASH) {\n // We get here if `from` is the exact base path for `to`.\n // For example: from='/foo/bar'; to='/foo/bar/baz'\n return StringPrototypeSlice(to\x2C toStart + i + 1);\n }\n if (i === 0) {\n // We get here if `from` is the root\n // For example: from='/'; to='/foo'\n return StringPrototypeSlice(to\x2C toStart + i);\n }\n } else if (fromLen > length) {\n if (StringPrototypeCharCodeAt(from\x2C fromStart + i) ===\n CHAR_FORWARD_SLASH) {\n // We get here if `to` is the exact base path for `from`.\n // For example: from='/foo/bar/baz'; to='/foo/bar'\n lastCommonSep = i;\n } else if (i === 0) {\n // We get here if `to` is the root.\n // For example: from='/foo/bar'; to='/'\n lastCommonSep = 0;\n }\n }\n }\n\n let out = '';\n // Generate the relative path based on the path difference between `to`\n // and `from`.\n for (i = fromStart + lastCommonSep + 1; i <= fromEnd; ++i) {\n if (i === fromEnd ||\n StringPrototypeCharCodeAt(from\x2C i) === CHAR_FORWARD_SLASH) {\n out += out.length === 0 ? '..' : '/..';\n }\n }\n\n // Lastly\x2C append the rest of the destination (`to`) path that comes after\n // the common path parts.\n return `${out}${StringPrototypeSlice(to\x2C toStart + lastCommonSep)}`;\n }\x2C\n\n /**\n * @param {string} path\n * @returns {string}\n */\n toNamespacedPath(path) {\n // Non-op on posix systems\n return path;\n }\x2C\n\n /**\n * @param {string} path\n * @returns {string}\n */\n dirname(path) {\n validateString(path\x2C 'path');\n if (path.length === 0)\n return '.';\n const hasRoot = StringPrototypeCharCodeAt(path\x2C 0) === CHAR_FORWARD_SLASH;\n let end = -1;\n let matchedSlash = true;\n for (let i = path.length - 1; i >= 1; --i) {\n if (StringPrototypeCharCodeAt(path\x2C i) === CHAR_FORWARD_SLASH) {\n if (!matchedSlash) {\n end = i;\n break;\n }\n } else {\n // We saw the first non-path separator\n matchedSlash = false;\n }\n }\n\n if (end === -1)\n return hasRoot ? '/' : '.';\n if (hasRoot && end === 1)\n return '//';\n return StringPrototypeSlice(path\x2C 0\x2C end);\n }\x2C\n\n /**\n * @param {string} path\n * @param {string} [ext]\n * @returns {string}\n */\n basename(path\x2C ext) {\n if (ext !== undefined)\n validateString(ext\x2C 'ext');\n validateString(path\x2C 'path');\n\n let start = 0;\n let end = -1;\n let matchedSlash = true;\n\n if (ext !== undefined && ext.length > 0 && ext.length <= path.length) {\n if (ext === path)\n return '';\n let extIdx = ext.length - 1;\n let firstNonSlashEnd = -1;\n for (let i = path.length - 1; i >= 0; --i) {\n const code = StringPrototypeCharCodeAt(path\x2C i);\n if (code === CHAR_FORWARD_SLASH) {\n // If we reached a path separator that was not part of a set of path\n // separators at the end of the string\x2C stop now\n if (!matchedSlash) {\n start = i + 1;\n break;\n }\n } else {\n if (firstNonSlashEnd === -1) {\n // We saw the first non-path separator\x2C remember this index in case\n // we need it if the extension ends up not matching\n matchedSlash = false;\n firstNonSlashEnd = i + 1;\n }\n if (extIdx >= 0) {\n // Try to match the explicit extension\n if (code === StringPrototypeCharCodeAt(ext\x2C extIdx)) {\n if (--extIdx === -1) {\n // We matched the extension\x2C so mark this as the end of our path\n // component\n end = i;\n }\n } else {\n // Extension does not match\x2C so our result is the entire path\n // component\n extIdx = -1;\n end = firstNonSlashEnd;\n }\n }\n }\n }\n\n if (start === end)\n end = firstNonSlashEnd;\n else if (end === -1)\n end = path.length;\n return StringPrototypeSlice(path\x2C start\x2C end);\n }\n for (let i = path.length - 1; i >= 0; --i) {\n if (StringPrototypeCharCodeAt(path\x2C i) === CHAR_FORWARD_SLASH) {\n // If we reached a path separator that was not part of a set of path\n // separators at the end of the string\x2C stop now\n if (!matchedSlash) {\n start = i + 1;\n break;\n }\n } else if (end === -1) {\n // We saw the first non-path separator\x2C mark this as the end of our\n // path component\n matchedSlash = false;\n end = i + 1;\n }\n }\n\n if (end === -1)\n return '';\n return StringPrototypeSlice(path\x2C start\x2C end);\n }\x2C\n\n /**\n * @param {string} path\n * @returns {string}\n */\n extname(path) {\n validateString(path\x2C 'path');\n let startDot = -1;\n let startPart = 0;\n let end = -1;\n let matchedSlash = true;\n // Track the state of characters (if any) we see before our first dot and\n // after any path separator we find\n let preDotState = 0;\n for (let i = path.length - 1; i >= 0; --i) {\n const code = StringPrototypeCharCodeAt(path\x2C i);\n if (code === CHAR_FORWARD_SLASH) {\n // If we reached a path separator that was not part of a set of path\n // separators at the end of the string\x2C stop now\n if (!matchedSlash) {\n startPart = i + 1;\n break;\n }\n continue;\n }\n if (end === -1) {\n // We saw the first non-path separator\x2C mark this as the end of our\n // extension\n matchedSlash = false;\n end = i + 1;\n }\n if (code === CHAR_DOT) {\n // If this is our first dot\x2C mark it as the start of our extension\n if (startDot === -1)\n startDot = i;\n else if (preDotState !== 1)\n preDotState = 1;\n } else if (startDot !== -1) {\n // We saw a non-dot and non-path separator before our dot\x2C so we should\n // have a good chance at having a non-empty extension\n preDotState = -1;\n }\n }\n\n if (startDot === -1 ||\n end === -1 ||\n // We saw a non-dot character immediately before the dot\n preDotState === 0 ||\n // The (right-most) trimmed path component is exactly '..'\n (preDotState === 1 &&\n startDot === end - 1 &&\n startDot === startPart + 1)) {\n return '';\n }\n return StringPrototypeSlice(path\x2C startDot\x2C end);\n }\x2C\n\n format: FunctionPrototypeBind(_format\x2C null\x2C '/')\x2C\n\n /**\n * @param {string} path\n * @returns {{\n * dir: string;\n * root: string;\n * base: string;\n * name: string;\n * ext: string;\n * }}\n */\n parse(path) {\n validateString(path\x2C 'path');\n\n const ret = { root: ''\x2C dir: ''\x2C base: ''\x2C ext: ''\x2C name: '' };\n if (path.length === 0)\n return ret;\n const isAbsolute =\n StringPrototypeCharCodeAt(path\x2C 0) === CHAR_FORWARD_SLASH;\n let start;\n if (isAbsolute) {\n ret.root = '/';\n start = 1;\n } else {\n start = 0;\n }\n let startDot = -1;\n let startPart = 0;\n let end = -1;\n let matchedSlash = true;\n let i = path.length - 1;\n\n // Track the state of characters (if any) we see before our first dot and\n // after any path separator we find\n let preDotState = 0;\n\n // Get non-dir info\n for (; i >= start; --i) {\n const code = StringPrototypeCharCodeAt(path\x2C i);\n if (code === CHAR_FORWARD_SLASH) {\n // If we reached a path separator that was not part of a set of path\n // separators at the end of the string\x2C stop now\n if (!matchedSlash) {\n startPart = i + 1;\n break;\n }\n continue;\n }\n if (end === -1) {\n // We saw the first non-path separator\x2C mark this as the end of our\n // extension\n matchedSlash = false;\n end = i + 1;\n }\n if (code === CHAR_DOT) {\n // If this is our first dot\x2C mark it as the start of our extension\n if (startDot === -1)\n startDot = i;\n else if (preDotState !== 1)\n preDotState = 1;\n } else if (startDot !== -1) {\n // We saw a non-dot and non-path separator before our dot\x2C so we should\n // have a good chance at having a non-empty extension\n preDotState = -1;\n }\n }\n\n if (end !== -1) {\n const start = startPart === 0 && isAbsolute ? 1 : startPart;\n if (startDot === -1 ||\n // We saw a non-dot character immediately before the dot\n preDotState === 0 ||\n // The (right-most) trimmed path component is exactly '..'\n (preDotState === 1 &&\n startDot === end - 1 &&\n startDot === startPart + 1)) {\n ret.base = ret.name = StringPrototypeSlice(path\x2C start\x2C end);\n } else {\n ret.name = StringPrototypeSlice(path\x2C start\x2C startDot);\n ret.base = StringPrototypeSlice(path\x2C start\x2C end);\n ret.ext = StringPrototypeSlice(path\x2C startDot\x2C end);\n }\n }\n\n if (startPart > 0)\n ret.dir = StringPrototypeSlice(path\x2C 0\x2C startPart - 1);\n else if (isAbsolute)\n ret.dir = '/';\n\n return ret;\n }\x2C\n\n sep: '/'\x2C\n delimiter: ':'\x2C\n win32: null\x2C\n posix: null\n};\n\nposix.win32 = win32.win32 = win32;\nposix.posix = win32.posix = posix;\n\n// Legacy internal API\x2C docs-only deprecated: DEP0080\nwin32._makeLong = win32.toNamespacedPath;\nposix._makeLong = posix.toNamespacedPath;\n\nmodule.exports = platformIsWin32 ? win32 : posix;\n
code-source-info,0xb6d53543fce,35,33782,34692,C0O33782C3O33817C6O33848C8O33878C12O33885C16O33898C18O33892C25O33902C27O33946C28O33948C35O33959C42O33965C45O33965C49O33984C57O33984C62O34058C68O34065C73O34082C75O34107C87O34133C92O34155C99O34182C107O34221C109O34217C113O33921C118O33860C121O34437C126O34483C137O34452C143O34569C147O34599C152O34610C156O34625C157O34656C163O34663C174O34688,,
tick,0x7f4dec1736fc,50076,0,0x0,3,0x11e9ce0,0xb6d535414db,0xb6d535411a3,0xce7fc631f92,0xa52511b9255
tick,0x7f4debd5064e,50098,0,0x0,3,0x11e9ce0,0xb6d535414db,0xb6d535411a3,0xce7fc631f92,0xa52511b9255
code-creation,LazyCompile,10,50110,0xb6d53547216,30,validateString node:internal/validators:117:24,0x38b4b3b19d68,~
code-source-info,0xb6d53547216,17,3398,3507,C0O3416C6O3451C22O3457C27O3451C29O3506,,
code-creation,LazyCompile,10,50222,0xb6d5354742e,442,normalizeString node:path:66:25,0x1eac91c23428,~
code-source-info,0xb6d5354742e,35,2161,4085,C0O2226C3O2256C5O2277C8O2294C10O2310C12O2328C14O2341C18O2333C23O2373C27O2366C32O2387C37O2394C45O2443C51O2472C53O2494C58O2530C64O2561C66O2581C69O2575C76O2593C83O2631C85O2640C90O2665C97O2672C104O2697C111O2718C114O2753C118O2760C122O2718C130O2769C132O2765C139O2793C142O2828C146O2835C150O2793C158O2844C160O2840C165O2874C172O2881C177O2923C182O2923C188O2979C190O2998C195O3022C198O3046C202O3104C215O3110C221O3210C225O3217C231O3223C234O3223C239O3221C243O3293C246O3320C248O3342C250O3377C256O3384C261O3405C264O3427C266O3462C269O3489C271O3511C273O3551C277O3594C283O3601C293O3610C308O3642C313O3706C319O3713C324O3728C326O3738C330O3750C335O3787C345O3750C363O3821C370O3864C380O3827C386O3881C388O3903C391O3915C395O3934C398O3955C402O3976C404O3989C406O3985C413O4006C418O4022C425O4049C428O2351C433O2315C439O4072C441O4083,,
code-creation,LazyCompile,10,50262,0xb6d535477be,8,isPosixPathSeparator node:path:56:30,0x1eac91c23388,~
code-source-info,0xb6d535477be,35,1854,1902,C0O1865C2O1881C4O1877C7O1900,,
tick,0xd2ddff,50440,1,0xb515a0,2,0xd44a10,0xa52511ba43c,0xa52511b972d,0xb6d535411b2,0xce7fc631f92,0xa52511b9255
code-creation,Eval,10,50525,0xb6d53547e36,5, node:internal/modules/run_main:1:1,0xb6d53547c20,~
script-source,113,node:internal/modules/run_main,'use strict';\n\nconst {\n StringPrototypeEndsWith\x2C\n} = primordials;\nconst CJSLoader = require('internal/modules/cjs/loader');\nconst { Module\x2C toRealPath\x2C readPackageScope } = CJSLoader;\nconst { getOptionValue } = require('internal/options');\nconst path = require('path');\n\nfunction resolveMainPath(main) {\n // Note extension resolution for the main entry point can be deprecated in a\n // future major.\n // Module._findPath is monkey-patchable here.\n let mainPath = Module._findPath(path.resolve(main)\x2C null\x2C true);\n if (!mainPath)\n return;\n\n const preserveSymlinksMain = getOptionValue('--preserve-symlinks-main');\n if (!preserveSymlinksMain)\n mainPath = toRealPath(mainPath);\n\n return mainPath;\n}\n\nfunction shouldUseESMLoader(mainPath) {\n const userLoader = getOptionValue('--experimental-loader');\n if (userLoader)\n return true;\n const esModuleSpecifierResolution =\n getOptionValue('--experimental-specifier-resolution');\n if (esModuleSpecifierResolution === 'node')\n return true;\n // Determine the module format of the main\n if (mainPath && StringPrototypeEndsWith(mainPath\x2C '.mjs'))\n return true;\n if (!mainPath || StringPrototypeEndsWith(mainPath\x2C '.cjs'))\n return false;\n const pkg = readPackageScope(mainPath);\n return pkg && pkg.data.type === 'module';\n}\n\nfunction runMainESM(mainPath) {\n const esmLoader = require('internal/process/esm_loader');\n const { pathToFileURL } = require('internal/url');\n handleMainPromise(esmLoader.loadESM((ESMLoader) => {\n const main = path.isAbsolute(mainPath) ?\n pathToFileURL(mainPath).href : mainPath;\n return ESMLoader.import(main);\n }));\n}\n\nasync function handleMainPromise(promise) {\n // Handle a Promise from running code that potentially does Top-Level Await.\n // In that case\x2C it makes sense to set the exit code to a specific non-zero\n // value if the main code never finishes running.\n function handler() {\n if (process.exitCode === undefined)\n process.exitCode = 13;\n }\n process.on('exit'\x2C handler);\n try {\n return await promise;\n } finally {\n process.off('exit'\x2C handler);\n }\n}\n\n// For backwards compatibility\x2C we have to run a bunch of\n// monkey-patchable code that belongs to the CJS loader (exposed by\n// `require('module')`) even when the entry point is ESM.\nfunction executeUserEntryPoint(main = process.argv[1]) {\n const resolvedMain = resolveMainPath(main);\n const useESMLoader = shouldUseESMLoader(resolvedMain);\n if (useESMLoader) {\n runMainESM(resolvedMain || main);\n } else {\n // Module._load is the monkey-patchable CJS module loader.\n Module._load(main\x2C null\x2C true);\n }\n}\n\nmodule.exports = {\n executeUserEntryPoint\x2C\n handleMainPromise\x2C\n};\n
code-source-info,0xb6d53547e36,113,0,2696,C0O0C4O2696,,
code-creation,Function,10,50654,0xb6d5354813e,149, node:internal/modules/run_main:1:1,0xb6d53547da0,~
code-source-info,0xb6d5354813e,113,0,2696,C0O0C60O25C66O85C72O85C77O133C83O141C89O153C95O212C101O212C106O193C112O254C118O254C122O254C124O2628C131O2649C137O2674C143O2643C148O2695,,
code-creation,LazyCompile,10,50776,0xb6d5354871e,154,initializeESMLoader node:internal/bootstrap/pre_execution:429:29,0xa52511bb9a0,~
code-source-info,0xb6d5354871e,91,13653,14720,C0O13735C6O13735C13O13784C16O13780C21O13778C25O13802C31O13834C32O13841C33O13941C39O13941C44O13857C49O13897C54O13987C60O13987C65O14188C70O14146C74O14258C79O14219C83O14424C91O14428C97O14544C103O14544C108O14493C113O14501C118O14519C123O14590C129O14590C134O14609C136O14619C140O14633C142O14653C146O14677C148O14696C153O14719,,
code-creation,LazyCompile,10,50820,0xb6d5354892e,5,get hasLoadedAnyUserCJSModule node:internal/modules/cjs/loader:74:32,0xce7fc604890,~
code-source-info,0xb6d5354892e,95,2306,2346,C0O2311C4O2344,,
code-creation,LazyCompile,10,50845,0xb6d535489e6,21,assert node:internal/assert:11:16,0x38b4b3b17750,~
script-source,16,node:internal/assert,'use strict';\n\nlet error;\nfunction lazyError() {\n if (!error) {\n error = require('internal/errors').codes.ERR_INTERNAL_ASSERTION;\n }\n return error;\n}\n\nfunction assert(value\x2C message) {\n if (!value) {\n const ERR_INTERNAL_ASSERTION = lazyError();\n throw new ERR_INTERNAL_ASSERTION(message);\n }\n}\n\nfunction fail(message) {\n const ERR_INTERNAL_ASSERTION = lazyError();\n throw new ERR_INTERNAL_ASSERTION(message);\n}\n\nassert.fail = fail;\n\nmodule.exports = assert;\n
code-source-info,0xb6d535489e6,16,172,307,C0O193C4O242C7O242C11O259C13O265C18O259C20O306,,
code-creation,LazyCompile,10,50900,0xb6d53548bf6,53,loadPreloadModules node:internal/bootstrap/pre_execution:472:28,0xa52511bba90,~
code-source-info,0xb6d53548bf6,91,15196,15516,C0O15283C8O15283C13O15314C15O15351C21O15358C26O15434C32O15434C37O15434C42O15401C47O15478C52O15515,,
code-creation,LazyCompile,10,50940,0xb6d53548dee,50,initializeFrozenIntrinsics node:internal/bootstrap/pre_execution:464:36,0xa52511bba40,~
code-source-info,0xb6d53548dee,91,14945,15167,C0O14952C8O14956C14O15001C17O15009C28O15009C34O15121C40O15121C45O15158C49O15166,,
code-creation,LazyCompile,10,51022,0xb6d53548fe6,222,loadESM node:internal/process/esm_loader:65:41,0xa52511bebd0,~
code-source-info,0xb6d53548fe6,93,2011,2324,C10O2011C21O2036C24O2042C35O2036C58O2066C60O2081C63O2072C75O2066C113O2115C120O2119C125O2166C130O2174C138O2174C143O2202C154O2209C155O2220C163O2220C168O2245C178O2246C197O2323,,
code-creation,LazyCompile,10,51113,0xb6d5354962e,172,initializeLoader node:internal/process/esm_loader:40:32,0xa52511bea60,~
code-source-info,0xb6d5354962e,93,1233,1969,C0O1233C25O1267C33O1267C38O1248C43O1317C46O1317C50O1317C52O1360C56O1381C67O1388C68O1395C69O1395C74O1412C79O1426C84O1426C91O1432C94O1416C100O1455C102O1459C104O1634C112O1634C117O1606C122O1662C125O1662C129O1714C134O1964C147O1967,,
code-creation,LazyCompile,10,51143,0xb6d53549816,205, node:internal/process/esm_loader:55:11,0xb6d53549528,~
code-source-info,0xb6d53549816,93,1722,1963,C10O1722C18O1762C25O1778C32O1785C39O1797C44O1811C47O1797C52O1815C57O1784C71O1762C97O1827C104O1839C114O1837C122O1857C129O1867C134O1867C139O1884C146O1894C151O1894C155O1922C164O1949C167O1947C180O1959,,
code-creation,LazyCompile,10,51246,0xb6d53549afe,145, node:internal/main/repl:36:21,0xa52511b90b0,~
code-source-info,0xb6d53549afe,90,973,1814,C0O985C5O993C16O1027C33O1040C37O993C42O1108C48O1108C53O1146C61O1173C71O1146C77O1597C85O1601C91O1646C101O1684C107O1684C114O1727C120O1727C127O1777C133O1777C138O1646C144O1813,,
code-creation,LazyCompile,10,51329,0xb6d53549f16,38,log node:internal/console/constructor:362:6,0x1eac91c07940,~
script-source,30,node:internal/console/constructor,'use strict';\n\n// The Console constructor is not actually used to construct the global\n// console. It's exported for backwards compatibility.\n\nconst {\n ArrayFrom\x2C\n ArrayIsArray\x2C\n ArrayPrototypeForEach\x2C\n ArrayPrototypePush\x2C\n ArrayPrototypeUnshift\x2C\n Boolean\x2C\n ErrorCaptureStackTrace\x2C\n FunctionPrototypeBind\x2C\n MathFloor\x2C\n Number\x2C\n NumberPrototypeToFixed\x2C\n ObjectDefineProperties\x2C\n ObjectDefineProperty\x2C\n ObjectKeys\x2C\n ObjectPrototypeHasOwnProperty\x2C\n ObjectValues\x2C\n ReflectApply\x2C\n ReflectConstruct\x2C\n ReflectOwnKeys\x2C\n SafeArrayIterator\x2C\n SafeMap\x2C\n SafeWeakMap\x2C\n StringPrototypeIncludes\x2C\n StringPrototypePadStart\x2C\n StringPrototypeRepeat\x2C\n StringPrototypeReplace\x2C\n StringPrototypeSlice\x2C\n StringPrototypeSplit\x2C\n Symbol\x2C\n SymbolHasInstance\x2C\n SymbolToStringTag\x2C\n} = primordials;\n\nconst { trace } = internalBinding('trace_events');\nconst {\n isStackOverflowError\x2C\n codes: {\n ERR_CONSOLE_WRITABLE_STREAM\x2C\n ERR_INVALID_ARG_TYPE\x2C\n ERR_INVALID_ARG_VALUE\x2C\n ERR_INCOMPATIBLE_OPTION_PAIR\x2C\n }\x2C\n} = require('internal/errors');\nconst { validateInteger } = require('internal/validators');\nconst { previewEntries } = internalBinding('util');\nconst { Buffer: { isBuffer } } = require('buffer');\nconst {\n inspect\x2C\n formatWithOptions\n} = require('internal/util/inspect');\nconst {\n isTypedArray\x2C isSet\x2C isMap\x2C isSetIterator\x2C isMapIterator\x2C\n} = require('internal/util/types');\nconst {\n CHAR_LOWERCASE_B\x2C\n CHAR_LOWERCASE_E\x2C\n CHAR_LOWERCASE_N\x2C\n CHAR_UPPERCASE_C\x2C\n} = require('internal/constants');\nconst kCounts = Symbol('counts');\n\nconst kTraceConsoleCategory = 'node\x2Cnode.console';\nconst kTraceCount = CHAR_UPPERCASE_C;\nconst kTraceBegin = CHAR_LOWERCASE_B;\nconst kTraceEnd = CHAR_LOWERCASE_E;\nconst kTraceInstant = CHAR_LOWERCASE_N;\n\nconst kSecond = 1000;\nconst kMinute = 60 * kSecond;\nconst kHour = 60 * kMinute;\nconst kMaxGroupIndentation = 1000;\n\n// Lazy loaded for startup performance.\nlet cliTable;\n\n// Track amount of indentation required via `console.group()`.\nconst kGroupIndent = Symbol('kGroupIndent');\nconst kGroupIndentationWidth = Symbol('kGroupIndentWidth');\nconst kFormatForStderr = Symbol('kFormatForStderr');\nconst kFormatForStdout = Symbol('kFormatForStdout');\nconst kGetInspectOptions = Symbol('kGetInspectOptions');\nconst kColorMode = Symbol('kColorMode');\nconst kIsConsole = Symbol('kIsConsole');\nconst kWriteToConsole = Symbol('kWriteToConsole');\nconst kBindProperties = Symbol('kBindProperties');\nconst kBindStreamsEager = Symbol('kBindStreamsEager');\nconst kBindStreamsLazy = Symbol('kBindStreamsLazy');\nconst kUseStdout = Symbol('kUseStdout');\nconst kUseStderr = Symbol('kUseStderr');\n\nconst optionsMap = new SafeWeakMap();\n\nfunction Console(options /* or: stdout\x2C stderr\x2C ignoreErrors = true */) {\n // We have to test new.target here to see if this function is called\n // with new\x2C because we need to define a custom instanceof to accommodate\n // the global console.\n if (!new.target) {\n return ReflectConstruct(Console\x2C arguments);\n }\n\n if (!options || typeof options.write === 'function') {\n options = {\n stdout: options\x2C\n stderr: arguments[1]\x2C\n ignoreErrors: arguments[2]\n };\n }\n\n const {\n stdout\x2C\n stderr = stdout\x2C\n ignoreErrors = true\x2C\n colorMode = 'auto'\x2C\n inspectOptions\x2C\n groupIndentation\x2C\n } = options;\n\n if (!stdout || typeof stdout.write !== 'function') {\n throw new ERR_CONSOLE_WRITABLE_STREAM('stdout');\n }\n if (!stderr || typeof stderr.write !== 'function') {\n throw new ERR_CONSOLE_WRITABLE_STREAM('stderr');\n }\n\n if (typeof colorMode !== 'boolean' && colorMode !== 'auto')\n throw new ERR_INVALID_ARG_VALUE('colorMode'\x2C colorMode);\n\n if (groupIndentation !== undefined) {\n validateInteger(groupIndentation\x2C 'groupIndentation'\x2C\n 0\x2C kMaxGroupIndentation);\n }\n\n if (typeof inspectOptions === 'object' && inspectOptions !== null) {\n if (inspectOptions.colors !== undefined &&\n options.colorMode !== undefined) {\n throw new ERR_INCOMPATIBLE_OPTION_PAIR(\n 'options.inspectOptions.color'\x2C 'colorMode');\n }\n optionsMap.set(this\x2C inspectOptions);\n } else if (inspectOptions !== undefined) {\n throw new ERR_INVALID_ARG_TYPE(\n 'options.inspectOptions'\x2C\n 'object'\x2C\n inspectOptions);\n }\n\n // Bind the prototype functions to this Console instance\n ArrayPrototypeForEach(ObjectKeys(Console.prototype)\x2C (key) => {\n // We have to bind the methods grabbed from the instance instead of from\n // the prototype so that users extending the Console can override them\n // from the prototype chain of the subclass.\n this[key] = FunctionPrototypeBind(this[key]\x2C this);\n ObjectDefineProperty(this[key]\x2C 'name'\x2C {\n value: key\n });\n });\n\n this[kBindStreamsEager](stdout\x2C stderr);\n this[kBindProperties](ignoreErrors\x2C colorMode\x2C groupIndentation);\n}\n\nconst consolePropAttributes = {\n writable: true\x2C\n enumerable: false\x2C\n configurable: true\n};\n\n// Fixup global.console instanceof global.console.Console\nObjectDefineProperty(Console\x2C SymbolHasInstance\x2C {\n value(instance) {\n return instance[kIsConsole];\n }\n});\n\nconst kColorInspectOptions = { colors: true };\nconst kNoColorInspectOptions = {};\n\nObjectDefineProperties(Console.prototype\x2C {\n [kBindStreamsEager]: {\n ...consolePropAttributes\x2C\n // Eager version for the Console constructor\n value: function(stdout\x2C stderr) {\n ObjectDefineProperties(this\x2C {\n '_stdout': { ...consolePropAttributes\x2C value: stdout }\x2C\n '_stderr': { ...consolePropAttributes\x2C value: stderr }\n });\n }\n }\x2C\n [kBindStreamsLazy]: {\n ...consolePropAttributes\x2C\n // Lazily load the stdout and stderr from an object so we don't\n // create the stdio streams when they are not even accessed\n value: function(object) {\n let stdout;\n let stderr;\n ObjectDefineProperties(this\x2C {\n '_stdout': {\n enumerable: false\x2C\n configurable: true\x2C\n get() {\n if (!stdout) stdout = object.stdout;\n return stdout;\n }\x2C\n set(value) { stdout = value; }\n }\x2C\n '_stderr': {\n enumerable: false\x2C\n configurable: true\x2C\n get() {\n if (!stderr) { stderr = object.stderr; }\n return stderr;\n }\x2C\n set(value) { stderr = value; }\n }\n });\n }\n }\x2C\n [kBindProperties]: {\n ...consolePropAttributes\x2C\n value: function(ignoreErrors\x2C colorMode\x2C groupIndentation = 2) {\n ObjectDefineProperties(this\x2C {\n '_stdoutErrorHandler': {\n ...consolePropAttributes\x2C\n value: createWriteErrorHandler(this\x2C kUseStdout)\n }\x2C\n '_stderrErrorHandler': {\n ...consolePropAttributes\x2C\n value: createWriteErrorHandler(this\x2C kUseStderr)\n }\x2C\n '_ignoreErrors': {\n ...consolePropAttributes\x2C\n value: Boolean(ignoreErrors)\n }\x2C\n '_times': { ...consolePropAttributes\x2C value: new SafeMap() }\x2C\n // Corresponds to https://console.spec.whatwg.org/#count-map\n [kCounts]: { ...consolePropAttributes\x2C value: new SafeMap() }\x2C\n [kColorMode]: { ...consolePropAttributes\x2C value: colorMode }\x2C\n [kIsConsole]: { ...consolePropAttributes\x2C value: true }\x2C\n [kGroupIndent]: { ...consolePropAttributes\x2C value: '' }\x2C\n [kGroupIndentationWidth]: {\n ...consolePropAttributes\x2C\n value: groupIndentation\n }\x2C\n [SymbolToStringTag]: {\n writable: false\x2C\n enumerable: false\x2C\n configurable: true\x2C\n value: 'console'\n }\n });\n }\n }\x2C\n [kWriteToConsole]: {\n ...consolePropAttributes\x2C\n value: function(streamSymbol\x2C string) {\n const ignoreErrors = this._ignoreErrors;\n const groupIndent = this[kGroupIndent];\n\n const useStdout = streamSymbol === kUseStdout;\n const stream = useStdout ? this._stdout : this._stderr;\n const errorHandler = useStdout ?\n this._stdoutErrorHandler : this._stderrErrorHandler;\n\n if (groupIndent.length !== 0) {\n if (StringPrototypeIncludes(string\x2C '\\n')) {\n string = StringPrototypeReplace(string\x2C /\\n/g\x2C `\\n${groupIndent}`);\n }\n string = groupIndent + string;\n }\n string += '\\n';\n\n if (ignoreErrors === false) return stream.write(string);\n\n // There may be an error occurring synchronously (e.g. for files or TTYs\n // on POSIX systems) or asynchronously (e.g. pipes on POSIX systems)\x2C so\n // handle both situations.\n try {\n // Add and later remove a noop error handler to catch synchronous\n // errors.\n if (stream.listenerCount('error') === 0)\n stream.once('error'\x2C noop);\n\n stream.write(string\x2C errorHandler);\n } catch (e) {\n // Console is a debugging utility\x2C so it swallowing errors is not\n // desirable even in edge cases such as low stack space.\n if (isStackOverflowError(e))\n throw e;\n // Sorry\x2C there's no proper way to pass along the error here.\n } finally {\n stream.removeListener('error'\x2C noop);\n }\n }\n }\x2C\n [kGetInspectOptions]: {\n ...consolePropAttributes\x2C\n value: function(stream) {\n let color = this[kColorMode];\n if (color === 'auto') {\n color = stream.isTTY && (\n typeof stream.getColorDepth === 'function' ?\n stream.getColorDepth() > 2 : true);\n }\n\n const options = optionsMap.get(this);\n if (options) {\n if (options.colors === undefined) {\n options.colors = color;\n }\n return options;\n }\n\n return color ? kColorInspectOptions : kNoColorInspectOptions;\n }\n }\x2C\n [kFormatForStdout]: {\n ...consolePropAttributes\x2C\n value: function(args) {\n const opts = this[kGetInspectOptions](this._stdout);\n ArrayPrototypeUnshift(args\x2C opts);\n return ReflectApply(formatWithOptions\x2C null\x2C args);\n }\n }\x2C\n [kFormatForStderr]: {\n ...consolePropAttributes\x2C\n value: function(args) {\n const opts = this[kGetInspectOptions](this._stderr);\n ArrayPrototypeUnshift(args\x2C opts);\n return ReflectApply(formatWithOptions\x2C null\x2C args);\n }\n }\x2C\n});\n\n// Make a function that can serve as the callback passed to `stream.write()`.\nfunction createWriteErrorHandler(instance\x2C streamSymbol) {\n return (err) => {\n // This conditional evaluates to true if and only if there was an error\n // that was not already emitted (which happens when the _write callback\n // is invoked asynchronously).\n const stream = streamSymbol === kUseStdout ?\n instance._stdout : instance._stderr;\n if (err !== null && !stream._writableState.errorEmitted) {\n // If there was an error\x2C it will be emitted on `stream` as\n // an `error` event. Adding a `once` listener will keep that error\n // from becoming an uncaught exception\x2C but since the handler is\n // removed after the event\x2C non-console.* writes won't be affected.\n // we are only adding noop if there is no one else listening for 'error'\n if (stream.listenerCount('error') === 0) {\n stream.once('error'\x2C noop);\n }\n }\n };\n}\n\nconst consoleMethods = {\n log(...args) {\n this[kWriteToConsole](kUseStdout\x2C this[kFormatForStdout](args));\n }\x2C\n\n\n warn(...args) {\n this[kWriteToConsole](kUseStderr\x2C this[kFormatForStderr](args));\n }\x2C\n\n\n dir(object\x2C options) {\n this[kWriteToConsole](kUseStdout\x2C inspect(object\x2C {\n customInspect: false\x2C\n ...this[kGetInspectOptions](this._stdout)\x2C\n ...options\n }));\n }\x2C\n\n time(label = 'default') {\n // Coerces everything other than Symbol to a string\n label = `${label}`;\n if (this._times.has(label)) {\n process.emitWarning(`Label '${label}' already exists for console.time()`);\n return;\n }\n trace(kTraceBegin\x2C kTraceConsoleCategory\x2C `time::${label}`\x2C 0);\n this._times.set(label\x2C process.hrtime());\n }\x2C\n\n timeEnd(label = 'default') {\n // Coerces everything other than Symbol to a string\n label = `${label}`;\n const found = timeLogImpl(this\x2C 'timeEnd'\x2C label);\n trace(kTraceEnd\x2C kTraceConsoleCategory\x2C `time::${label}`\x2C 0);\n if (found) {\n this._times.delete(label);\n }\n }\x2C\n\n timeLog(label = 'default'\x2C ...data) {\n // Coerces everything other than Symbol to a string\n label = `${label}`;\n timeLogImpl(this\x2C 'timeLog'\x2C label\x2C data);\n trace(kTraceInstant\x2C kTraceConsoleCategory\x2C `time::${label}`\x2C 0);\n }\x2C\n\n trace: function trace(...args) {\n const err = {\n name: 'Trace'\x2C\n message: this[kFormatForStderr](args)\n };\n ErrorCaptureStackTrace(err\x2C trace);\n this.error(err.stack);\n }\x2C\n\n assert(expression\x2C ...args) {\n if (!expression) {\n args[0] = `Assertion failed${args.length === 0 ? '' : `: ${args[0]}`}`;\n // The arguments will be formatted in warn() again\n ReflectApply(this.warn\x2C this\x2C args);\n }\n }\x2C\n\n // Defined by: https://console.spec.whatwg.org/#clear\n clear() {\n // It only makes sense to clear if _stdout is a TTY.\n // Otherwise\x2C do nothing.\n if (this._stdout.isTTY && process.env.TERM !== 'dumb') {\n // The require is here intentionally to avoid readline being\n // required too early when console is first loaded.\n const {\n cursorTo\x2C\n clearScreenDown\x2C\n } = require('internal/readline/callbacks');\n cursorTo(this._stdout\x2C 0\x2C 0);\n clearScreenDown(this._stdout);\n }\n }\x2C\n\n // Defined by: https://console.spec.whatwg.org/#count\n count(label = 'default') {\n // Ensures that label is a string\x2C and only things that can be\n // coerced to strings. e.g. Symbol is not allowed\n label = `${label}`;\n const counts = this[kCounts];\n let count = counts.get(label);\n if (count === undefined)\n count = 1;\n else\n count++;\n counts.set(label\x2C count);\n trace(kTraceCount\x2C kTraceConsoleCategory\x2C `count::${label}`\x2C 0\x2C count);\n this.log(`${label}: ${count}`);\n }\x2C\n\n // Defined by: https://console.spec.whatwg.org/#countreset\n countReset(label = 'default') {\n const counts = this[kCounts];\n if (!counts.has(label)) {\n process.emitWarning(`Count for '${label}' does not exist`);\n return;\n }\n trace(kTraceCount\x2C kTraceConsoleCategory\x2C `count::${label}`\x2C 0\x2C 0);\n counts.delete(`${label}`);\n }\x2C\n\n group(...data) {\n if (data.length > 0) {\n ReflectApply(this.log\x2C this\x2C data);\n }\n this[kGroupIndent] +=\n StringPrototypeRepeat(' '\x2C this[kGroupIndentationWidth]);\n }\x2C\n\n groupEnd() {\n this[kGroupIndent] = StringPrototypeSlice(\n this[kGroupIndent]\x2C\n 0\x2C\n this[kGroupIndent].length - this[kGroupIndentationWidth]\n );\n }\x2C\n\n // https://console.spec.whatwg.org/#table\n table(tabularData\x2C properties) {\n if (properties !== undefined && !ArrayIsArray(properties))\n throw new ERR_INVALID_ARG_TYPE('properties'\x2C 'Array'\x2C properties);\n\n if (tabularData === null || typeof tabularData !== 'object')\n return this.log(tabularData);\n\n if (cliTable === undefined) cliTable = require('internal/cli_table');\n const final = (k\x2C v) => this.log(cliTable(k\x2C v));\n\n const _inspect = (v) => {\n const depth = v !== null &&\n typeof v === 'object' &&\n !isArray(v) &&\n ObjectKeys(v).length > 2 ? -1 : 0;\n const opt = {\n depth\x2C\n maxArrayLength: 3\x2C\n breakLength: Infinity\x2C\n ...this[kGetInspectOptions](this._stdout)\n };\n return inspect(v\x2C opt);\n };\n const getIndexArray = (length) => ArrayFrom(\n { length }\x2C (_\x2C i) => _inspect(i));\n\n const mapIter = isMapIterator(tabularData);\n let isKeyValue = false;\n let i = 0;\n if (mapIter) {\n const res = previewEntries(tabularData\x2C true);\n tabularData = res[0];\n isKeyValue = res[1];\n }\n\n if (isKeyValue || isMap(tabularData)) {\n const keys = [];\n const values = [];\n let length = 0;\n if (mapIter) {\n for (; i < tabularData.length / 2; ++i) {\n ArrayPrototypePush(keys\x2C _inspect(tabularData[i * 2]));\n ArrayPrototypePush(values\x2C _inspect(tabularData[i * 2 + 1]));\n length++;\n }\n } else {\n for (const { 0: k\x2C 1: v } of tabularData) {\n ArrayPrototypePush(keys\x2C _inspect(k));\n ArrayPrototypePush(values\x2C _inspect(v));\n length++;\n }\n }\n return final([\n iterKey\x2C keyKey\x2C valuesKey\x2C\n ]\x2C [\n getIndexArray(length)\x2C\n keys\x2C\n values\x2C\n ]);\n }\n\n const setIter = isSetIterator(tabularData);\n if (setIter)\n tabularData = previewEntries(tabularData);\n\n const setlike = setIter || mapIter || isSet(tabularData);\n if (setlike) {\n const values = [];\n let length = 0;\n for (const v of tabularData) {\n ArrayPrototypePush(values\x2C _inspect(v));\n length++;\n }\n return final([iterKey\x2C valuesKey]\x2C [getIndexArray(length)\x2C values]);\n }\n\n const map = {};\n let hasPrimitives = false;\n const valuesKeyArray = [];\n const indexKeyArray = ObjectKeys(tabularData);\n\n for (; i < indexKeyArray.length; i++) {\n const item = tabularData[indexKeyArray[i]];\n const primitive = item === null ||\n (typeof item !== 'function' && typeof item !== 'object');\n if (properties === undefined && primitive) {\n hasPrimitives = true;\n valuesKeyArray[i] = _inspect(item);\n } else {\n const keys = properties || ObjectKeys(item);\n for (const key of keys) {\n if (map[key] === undefined)\n map[key] = [];\n if ((primitive && properties) ||\n !ObjectPrototypeHasOwnProperty(item\x2C key))\n map[key][i] = '';\n else\n map[key][i] = _inspect(item[key]);\n }\n }\n }\n\n const keys = ObjectKeys(map);\n const values = ObjectValues(map);\n if (hasPrimitives) {\n ArrayPrototypePush(keys\x2C valuesKey);\n ArrayPrototypePush(values\x2C valuesKeyArray);\n }\n ArrayPrototypeUnshift(keys\x2C indexKey);\n ArrayPrototypeUnshift(values\x2C indexKeyArray);\n\n return final(keys\x2C values);\n }\x2C\n};\n\n// Returns true if label was found\nfunction timeLogImpl(self\x2C name\x2C label\x2C data) {\n const time = self._times.get(label);\n if (time === undefined) {\n process.emitWarning(`No such label '${label}' for console.${name}()`);\n return false;\n }\n const duration = process.hrtime(time);\n const ms = duration[0] * 1000 + duration[1] / 1e6;\n\n const formatted = formatTime(ms);\n\n if (data === undefined) {\n self.log('%s: %s'\x2C label\x2C formatted);\n } else {\n self.log('%s: %s'\x2C label\x2C formatted\x2C ...new SafeArrayIterator(data));\n }\n return true;\n}\n\nfunction pad(value) {\n return StringPrototypePadStart(`${value}`\x2C 2\x2C '0');\n}\n\nfunction formatTime(ms) {\n let hours = 0;\n let minutes = 0;\n let seconds = 0;\n\n if (ms >= kSecond) {\n if (ms >= kMinute) {\n if (ms >= kHour) {\n hours = MathFloor(ms / kHour);\n ms = ms % kHour;\n }\n minutes = MathFloor(ms / kMinute);\n ms = ms % kMinute;\n }\n seconds = ms / kSecond;\n }\n\n if (hours !== 0 || minutes !== 0) {\n ({ 0: seconds\x2C 1: ms } = StringPrototypeSplit(\n NumberPrototypeToFixed(seconds\x2C 3)\x2C\n '.'\n ));\n const res = hours !== 0 ? `${hours}:${pad(minutes)}` : minutes;\n return `${res}:${pad(seconds)}.${ms} (${hours !== 0 ? 'h:m' : ''}m:ss.mmm)`;\n }\n\n if (seconds !== 0) {\n return `${NumberPrototypeToFixed(seconds\x2C 3)}s`;\n }\n\n return `${Number(NumberPrototypeToFixed(ms\x2C 3))}ms`;\n}\n\nconst keyKey = 'Key';\nconst valuesKey = 'Values';\nconst indexKey = '(index)';\nconst iterKey = '(iteration index)';\n\nconst isArray = (v) => ArrayIsArray(v) || isTypedArray(v) || isBuffer(v);\n\nfunction noop() {}\n\nfor (const method of ReflectOwnKeys(consoleMethods))\n Console.prototype[method] = consoleMethods[method];\n\nConsole.prototype.debug = Console.prototype.log;\nConsole.prototype.info = Console.prototype.log;\nConsole.prototype.dirxml = Console.prototype.log;\nConsole.prototype.error = Console.prototype.warn;\nConsole.prototype.groupCollapsed = Console.prototype.group;\n\nmodule.exports = {\n Console\x2C\n kBindStreamsLazy\x2C\n kBindProperties\x2C\n formatTime // exported for tests\n};\n
code-source-info,0xb6d53549f16,30,11201,11285,C0O11201C3O11217C5O11222C7O11221C13O11239C18O11256C20O11255C24O11273C30O11238C37O11284,,
tick,0x7f4dec1736d8,52236,0,0x0,3,0x11e9ce0,0xc13800,0xb6d53549b23,0xb6d53549025,0x158e77f
code-creation,LazyCompile,10,52254,0xb6d5354b5ce,50,value node:internal/console/constructor:324:20,0x1eac91c076e8,~
code-source-info,0xb6d5354b5ce,30,9768,9940,C0O9796C2O9801C4O9800C8O9826C13O9820C19O9842C24O9842C29O9883C36O9903C44O9890C49O9934,,
code-creation,LazyCompile,10,52281,0xb6d5354b6f6,27,get node:internal/console/constructor:206:14,0x1eac91c073b8,~
code-source-info,0xb6d5354b6f6,30,5955,6047,C0O5972C6O5985C9O6001C16O5992C22O6021C26O6035,,
code-creation,LazyCompile,10,52331,0xb6d5354b8de,97,getStdout node:internal/bootstrap/switches/is_main_thread:120:19,0xe5ca5cfc4e8,~
script-source,87,node:internal/bootstrap/switches/is_main_thread,'use strict';\n\nconst { ObjectDefineProperty } = primordials;\nconst rawMethods = internalBinding('process_methods');\n\n// TODO(joyeecheung): deprecate and remove these underscore methods\nprocess._debugProcess = rawMethods._debugProcess;\nprocess._debugEnd = rawMethods._debugEnd;\n\n// See the discussion in https://github.com/nodejs/node/issues/19009 and\n// https://github.com/nodejs/node/pull/34010 for why these are no-ops.\n// Five word summary: they were broken beyond repair.\nprocess._startProfilerIdleNotifier = () => {};\nprocess._stopProfilerIdleNotifier = () => {};\n\nfunction defineStream(name\x2C getter) {\n ObjectDefineProperty(process\x2C name\x2C {\n configurable: true\x2C\n enumerable: true\x2C\n get: getter\n });\n}\n\ndefineStream('stdout'\x2C getStdout);\ndefineStream('stdin'\x2C getStdin);\ndefineStream('stderr'\x2C getStderr);\n\n// Worker threads don't receive signals.\nconst {\n startListeningIfSignal\x2C\n stopListeningIfSignal\n} = require('internal/process/signal');\nprocess.on('newListener'\x2C startListeningIfSignal);\nprocess.on('removeListener'\x2C stopListeningIfSignal);\n\n// ---- keep the attachment of the wrappers above so that it's easier to ----\n// ---- compare the setups side-by-side -----\n\nconst { guessHandleType } = internalBinding('util');\n\nfunction createWritableStdioStream(fd) {\n let stream;\n // Note stream._type is used for test-module-load-list.js\n switch (guessHandleType(fd)) {\n case 'TTY':\n const tty = require('tty');\n stream = new tty.WriteStream(fd);\n stream._type = 'tty';\n break;\n\n case 'FILE':\n const SyncWriteStream = require('internal/fs/sync_write_stream');\n stream = new SyncWriteStream(fd\x2C { autoClose: false });\n stream._type = 'fs';\n break;\n\n case 'PIPE':\n case 'TCP':\n const net = require('net');\n\n // If fd is already being used for the IPC channel\x2C libuv will return\n // an error when trying to use it again. In that case\x2C create the socket\n // using the existing handle instead of the fd.\n if (process.channel && process.channel.fd === fd) {\n const { kChannelHandle } = require('internal/child_process');\n stream = new net.Socket({\n handle: process[kChannelHandle]\x2C\n readable: false\x2C\n writable: true\n });\n } else {\n stream = new net.Socket({\n fd\x2C\n readable: false\x2C\n writable: true\n });\n }\n\n stream._type = 'pipe';\n break;\n\n default:\n // Provide a dummy black-hole output for e.g. non-console\n // Windows applications.\n const { Writable } = require('stream');\n stream = new Writable({\n write(buf\x2C enc\x2C cb) {\n cb();\n }\n });\n }\n\n // For supporting legacy API we put the FD here.\n stream.fd = fd;\n\n stream._isStdio = true;\n\n return stream;\n}\n\nfunction dummyDestroy(err\x2C cb) {\n cb(err);\n\n // We need to emit 'close' anyway so that the closing\n // of the stream is observable. We just make sure we\n // are not going to do it twice.\n // The 'close' event is needed so that finished and\n // pipeline work correctly.\n if (!this._writableState.emitClose) {\n process.nextTick(() => {\n this.emit('close');\n });\n }\n}\n\nlet stdin;\nlet stdout;\nlet stderr;\n\nfunction getStdout() {\n if (stdout) return stdout;\n stdout = createWritableStdioStream(1);\n stdout.destroySoon = stdout.destroy;\n // Override _destroy so that the fd is never actually closed.\n stdout._destroy = dummyDestroy;\n if (stdout.isTTY) {\n process.on('SIGWINCH'\x2C () => stdout._refreshSize());\n }\n return stdout;\n}\n\nfunction getStderr() {\n if (stderr) return stderr;\n stderr = createWritableStdioStream(2);\n stderr.destroySoon = stderr.destroy;\n // Override _destroy so that the fd is never actually closed.\n stderr._destroy = dummyDestroy;\n if (stderr.isTTY) {\n process.on('SIGWINCH'\x2C () => stderr._refreshSize());\n }\n return stderr;\n}\n\nfunction getStdin() {\n if (stdin) return stdin;\n const fd = 0;\n\n switch (guessHandleType(fd)) {\n case 'TTY':\n const tty = require('tty');\n stdin = new tty.ReadStream(fd\x2C {\n highWaterMark: 0\x2C\n readable: true\x2C\n writable: false\n });\n break;\n\n case 'FILE':\n const fs = require('fs');\n stdin = new fs.ReadStream(null\x2C { fd: fd\x2C autoClose: false });\n break;\n\n case 'PIPE':\n case 'TCP':\n const net = require('net');\n\n // It could be that process has been started with an IPC channel\n // sitting on fd=0\x2C in such case the pipe for this fd is already\n // present and creating a new one will lead to the assertion failure\n // in libuv.\n if (process.channel && process.channel.fd === fd) {\n stdin = new net.Socket({\n handle: process.channel\x2C\n readable: true\x2C\n writable: false\x2C\n manualStart: true\n });\n } else {\n stdin = new net.Socket({\n fd: fd\x2C\n readable: true\x2C\n writable: false\x2C\n manualStart: true\n });\n }\n // Make sure the stdin can't be `.end()`-ed\n stdin._writableState.ended = true;\n break;\n\n default:\n // Provide a dummy contentless input for e.g. non-console\n // Windows applications.\n const { Readable } = require('stream');\n stdin = new Readable({ read() {} });\n stdin.push(null);\n }\n\n // For supporting legacy API we put the FD here.\n stdin.fd = fd;\n\n // `stdin` starts out life in a paused state\x2C but node doesn't\n // know yet. Explicitly to readStop() it to put it in the\n // not-reading state.\n if (stdin._handle && stdin._handle.readStop) {\n stdin._handle.reading = false;\n stdin._readableState.reading = false;\n stdin._handle.readStop();\n }\n\n // If the user calls stdin.pause()\x2C then we need to stop reading\n // once the stream implementation does so (one nextTick later)\x2C\n // so that the process can close down.\n stdin.on('pause'\x2C () => {\n process.nextTick(onpause);\n });\n\n function onpause() {\n if (!stdin._handle)\n return;\n if (stdin._handle.reading && !stdin.readableFlowing) {\n stdin._readableState.reading = false;\n stdin._handle.reading = false;\n stdin._handle.readStop();\n }\n }\n\n return stdin;\n}\n\n// Used by internal tests.\nrawMethods.resetStdioForTesting = function() {\n stdin = undefined;\n stdout = undefined;\n stderr = undefined;\n};\n
code-source-info,0xb6d5354b8de,87,3286,3599,C0O3293C6O3305C10O3319C11O3322C17O3331C24O3329C30O3363C37O3384C40O3391C44O3382C48O3466C55O3482C59O3500C64O3511C70O3524C73O3532C86O3532C92O3583C96O3597,,
tick,0x7f4dec1737d9,52631,0,0x0,3,0x11e9ce0,0xb6d5354b6ff,0xb6d5354b5d6,0xb6d53549f2e,0xc13800,0xb6d53549b23,0xb6d53549025,0x158e77f
code-creation,LazyCompile,10,52702,0xb6d5354c59e,305,createWritableStdioStream node:internal/bootstrap/switches/is_main_thread:41:35,0xe5ca5cfc448,~
code-source-info,0xb6d5354c59e,87,1312,2845,C0O1325C4O1403C7O1403C20O1395C53O1460C59O1460C64O1482C66O1499C73O1491C79O1522C81O1535C85O1550C87O1605C93O1605C98O1653C100O1682C110O1662C116O1715C118O1728C122O1742C124O1801C130O1801C135O2033C138O2045C147O2064C152O2072C159O2075C164O2120C170O2120C175O2101C180O2163C184O2180C199O2214C208O2172C216O2319C220O2336C232O2355C238O2328C244O2438C246O2451C250O2467C252O2610C258O2610C263O2597C268O2635C275O2667C285O2644C291O2783C293O2793C297O2802C298O2818C302O2829C304O2843,,
code-creation,Eval,10,52907,0xb6d5354ccf6,5, node:tty:1:1,0xb6d5354cae0,~
script-source,114,node:tty,// Copyright Joyent\x2C Inc. and other Node contributors.\n//\n// Permission is hereby granted\x2C free of charge\x2C to any person obtaining a\n// copy of this software and associated documentation files (the\n// "Software")\x2C to deal in the Software without restriction\x2C including\n// without limitation the rights to use\x2C copy\x2C modify\x2C merge\x2C publish\x2C\n// distribute\x2C sublicense\x2C and/or sell copies of the Software\x2C and to permit\n// persons to whom the Software is furnished to do so\x2C subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED "AS IS"\x2C WITHOUT WARRANTY OF ANY KIND\x2C EXPRESS\n// OR IMPLIED\x2C INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY\x2C FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM\x2C\n// DAMAGES OR OTHER LIABILITY\x2C WHETHER IN AN ACTION OF CONTRACT\x2C TORT OR\n// OTHERWISE\x2C ARISING FROM\x2C OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n'use strict';\n\nconst {\n Array\x2C\n NumberIsInteger\x2C\n ObjectSetPrototypeOf\x2C\n} = primordials;\n\nconst net = require('net');\nconst { TTY\x2C isTTY } = internalBinding('tty_wrap');\nconst errors = require('internal/errors');\nconst { ERR_INVALID_FD\x2C ERR_TTY_INIT_FAILED } = errors.codes;\nconst {\n getColorDepth\x2C\n hasColors\n} = require('internal/tty');\n\n// Lazy loaded for startup performance.\nlet readline;\n\nfunction isatty(fd) {\n return NumberIsInteger(fd) && fd >= 0 && fd <= 2147483647 &&\n isTTY(fd);\n}\n\nfunction ReadStream(fd\x2C options) {\n if (!(this instanceof ReadStream))\n return new ReadStream(fd\x2C options);\n if (fd >> 0 !== fd || fd < 0)\n throw new ERR_INVALID_FD(fd);\n\n const ctx = {};\n const tty = new TTY(fd\x2C true\x2C ctx);\n if (ctx.code !== undefined) {\n throw new ERR_TTY_INIT_FAILED(ctx);\n }\n\n net.Socket.call(this\x2C {\n highWaterMark: 0\x2C\n readable: true\x2C\n writable: false\x2C\n handle: tty\x2C\n ...options\n });\n\n this.isRaw = false;\n this.isTTY = true;\n}\n\nObjectSetPrototypeOf(ReadStream.prototype\x2C net.Socket.prototype);\nObjectSetPrototypeOf(ReadStream\x2C net.Socket);\n\nReadStream.prototype.setRawMode = function(flag) {\n flag = !!flag;\n const err = this._handle.setRawMode(flag);\n if (err) {\n this.emit('error'\x2C errors.errnoException(err\x2C 'setRawMode'));\n return this;\n }\n this.isRaw = flag;\n return this;\n};\n\nfunction WriteStream(fd) {\n if (!(this instanceof WriteStream))\n return new WriteStream(fd);\n if (fd >> 0 !== fd || fd < 0)\n throw new ERR_INVALID_FD(fd);\n\n const ctx = {};\n const tty = new TTY(fd\x2C false\x2C ctx);\n if (ctx.code !== undefined) {\n throw new ERR_TTY_INIT_FAILED(ctx);\n }\n\n net.Socket.call(this\x2C {\n handle: tty\x2C\n readable: false\x2C\n writable: true\n });\n\n // Prevents interleaved or dropped stdout/stderr output for terminals.\n // As noted in the following reference\x2C local TTYs tend to be quite fast and\n // this behavior has become expected due historical functionality on OS X\x2C\n // even though it was originally intended to change in v1.0.2 (Libuv 1.2.1).\n // Ref: https://github.com/nodejs/node/pull/1771#issuecomment-119351671\n this._handle.setBlocking(true);\n\n const winSize = new Array(2);\n const err = this._handle.getWindowSize(winSize);\n if (!err) {\n this.columns = winSize[0];\n this.rows = winSize[1];\n }\n}\n\nObjectSetPrototypeOf(WriteStream.prototype\x2C net.Socket.prototype);\nObjectSetPrototypeOf(WriteStream\x2C net.Socket);\n\nWriteStream.prototype.isTTY = true;\n\nWriteStream.prototype.getColorDepth = getColorDepth;\n\nWriteStream.prototype.hasColors = hasColors;\n\nWriteStream.prototype._refreshSize = function() {\n const oldCols = this.columns;\n const oldRows = this.rows;\n const winSize = new Array(2);\n const err = this._handle.getWindowSize(winSize);\n if (err) {\n this.emit('error'\x2C errors.errnoException(err\x2C 'getWindowSize'));\n return;\n }\n const { 0: newCols\x2C 1: newRows } = winSize;\n if (oldCols !== newCols || oldRows !== newRows) {\n this.columns = newCols;\n this.rows = newRows;\n this.emit('resize');\n }\n};\n\n// Backwards-compat\nWriteStream.prototype.cursorTo = function(x\x2C y\x2C callback) {\n if (readline === undefined) readline = require('readline');\n return readline.cursorTo(this\x2C x\x2C y\x2C callback);\n};\nWriteStream.prototype.moveCursor = function(dx\x2C dy\x2C callback) {\n if (readline === undefined) readline = require('readline');\n return readline.moveCursor(this\x2C dx\x2C dy\x2C callback);\n};\nWriteStream.prototype.clearLine = function(dir\x2C callback) {\n if (readline === undefined) readline = require('readline');\n return readline.clearLine(this\x2C dir\x2C callback);\n};\nWriteStream.prototype.clearScreenDown = function(callback) {\n if (readline === undefined) readline = require('readline');\n return readline.clearScreenDown(this\x2C callback);\n};\nWriteStream.prototype.getWindowSize = function() {\n return [this.columns\x2C this.rows];\n};\n\nmodule.exports = { isatty\x2C ReadStream\x2C WriteStream };\n
code-source-info,0xb6d5354ccf6,114,0,5065,C0O0C4O5065,,
code-creation,Function,10,53129,0xb6d5354d3de,426, node:tty:1:1,0xb6d5354cc60,~
code-source-info,0xb6d5354d3de,114,0,5065,C0O0C53O1159C59O1168C65O1187C70O1239C76O1239C80O1239C82O1278C85O1278C90O1263C96O1268C102O1322C108O1322C112O1322C114O1398C117O1405C122O1358C128O1374C134O1453C140O1453C145O1422C150O1439C155O1523C156O1523C158O2128C161O2160C169O2175C174O2182C179O2128C184O2194C190O2231C195O2194C200O2241C203O2252C212O2273C216O3462C219O3495C227O3510C232O3517C237O3462C242O3529C248O3567C253O3529C258O3577C261O3589C267O3605C271O3614C274O3626C281O3650C285O3668C288O3680C295O3700C299O3714C302O3726C311O3749C315O4210C318O4222C327O4241C331O4385C334O4397C343O4418C347O4568C350O4580C359O4600C363O4743C366O4755C375O4781C379O4920C382O4932C391O4956C395O5011C402O5030C408O5038C414O5050C420O5026C425O5064,,
tick,0x114afc6,53654,1,0xb515a0,2,0xd44a10,0xa52511ba43c,0xa52511b972d,0xb6d5354d42a,0xa52511ba45d,0xa52511b972d,0xb6d5354c5d9,0xb6d5354b8ef,0xb6d5354b6ff,0xb6d5354b5d6,0xb6d53549f2e,0xc13800,0xb6d53549b23,0xb6d53549025,0x158e77f
code-creation,Eval,10,54698,0xb6d5354f8be,5, node:net:1:1,0xb6d5354f0d0,~
script-source,115,node:net,// Copyright Joyent\x2C Inc. and other Node contributors.\n//\n// Permission is hereby granted\x2C free of charge\x2C to any person obtaining a\n// copy of this software and associated documentation files (the\n// "Software")\x2C to deal in the Software without restriction\x2C including\n// without limitation the rights to use\x2C copy\x2C modify\x2C merge\x2C publish\x2C\n// distribute\x2C sublicense\x2C and/or sell copies of the Software\x2C and to permit\n// persons to whom the Software is furnished to do so\x2C subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED "AS IS"\x2C WITHOUT WARRANTY OF ANY KIND\x2C EXPRESS\n// OR IMPLIED\x2C INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY\x2C FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM\x2C\n// DAMAGES OR OTHER LIABILITY\x2C WHETHER IN AN ACTION OF CONTRACT\x2C TORT OR\n// OTHERWISE\x2C ARISING FROM\x2C OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n'use strict';\n\nconst {\n ArrayIsArray\x2C\n ArrayPrototypeIndexOf\x2C\n Boolean\x2C\n Error\x2C\n Number\x2C\n NumberIsNaN\x2C\n NumberParseInt\x2C\n ObjectDefineProperty\x2C\n ObjectSetPrototypeOf\x2C\n Symbol\x2C\n} = primordials;\n\nconst EventEmitter = require('events');\nconst stream = require('stream');\nlet debug = require('internal/util/debuglog').debuglog('net'\x2C (fn) => {\n debug = fn;\n});\nconst {\n isIP\x2C\n isIPv4\x2C\n isIPv6\x2C\n normalizedArgsSymbol\x2C\n makeSyncWrite\n} = require('internal/net');\nconst assert = require('internal/assert');\nconst {\n UV_EADDRINUSE\x2C\n UV_EINVAL\x2C\n UV_ENOTCONN\n} = internalBinding('uv');\n\nconst { Buffer } = require('buffer');\nconst { guessHandleType } = internalBinding('util');\nconst { ShutdownWrap } = internalBinding('stream_wrap');\nconst {\n TCP\x2C\n TCPConnectWrap\x2C\n constants: TCPConstants\n} = internalBinding('tcp_wrap');\nconst {\n Pipe\x2C\n PipeConnectWrap\x2C\n constants: PipeConstants\n} = internalBinding('pipe_wrap');\nconst {\n newAsyncId\x2C\n defaultTriggerAsyncIdScope\x2C\n symbols: { async_id_symbol\x2C owner_symbol }\n} = require('internal/async_hooks');\nconst {\n writevGeneric\x2C\n writeGeneric\x2C\n onStreamRead\x2C\n kAfterAsyncWrite\x2C\n kHandle\x2C\n kUpdateTimer\x2C\n setStreamTimeout\x2C\n kBuffer\x2C\n kBufferCb\x2C\n kBufferGen\n} = require('internal/stream_base_commons');\nconst {\n codes: {\n ERR_INVALID_ADDRESS_FAMILY\x2C\n ERR_INVALID_ARG_TYPE\x2C\n ERR_INVALID_ARG_VALUE\x2C\n ERR_INVALID_FD_TYPE\x2C\n ERR_INVALID_IP_ADDRESS\x2C\n ERR_SERVER_ALREADY_LISTEN\x2C\n ERR_SERVER_NOT_RUNNING\x2C\n ERR_SOCKET_CLOSED\x2C\n ERR_MISSING_ARGS\x2C\n }\x2C\n errnoException\x2C\n exceptionWithHostPort\x2C\n uvExceptionWithHostPort\n} = require('internal/errors');\nconst { isUint8Array } = require('internal/util/types');\nconst {\n validateAbortSignal\x2C\n validateFunction\x2C\n validateInt32\x2C\n validateNumber\x2C\n validatePort\x2C\n validateString\n} = require('internal/validators');\nconst kLastWriteQueueSize = Symbol('lastWriteQueueSize');\nconst {\n DTRACE_NET_SERVER_CONNECTION\x2C\n DTRACE_NET_STREAM_END\n} = require('internal/dtrace');\n\n// Lazy loaded to improve startup performance.\nlet cluster;\nlet dns;\nlet BlockList;\nlet SocketAddress;\n\nconst { clearTimeout } = require('timers');\nconst { kTimeout } = require('internal/timers');\n\nconst DEFAULT_IPV4_ADDR = '0.0.0.0';\nconst DEFAULT_IPV6_ADDR = '::';\n\nconst isWindows = process.platform === 'win32';\n\nconst noop = () => {};\n\nfunction getFlags(ipv6Only) {\n return ipv6Only === true ? TCPConstants.UV_TCP_IPV6ONLY : 0;\n}\n\nfunction createHandle(fd\x2C is_server) {\n validateInt32(fd\x2C 'fd'\x2C 0);\n const type = guessHandleType(fd);\n if (type === 'PIPE') {\n return new Pipe(\n is_server ? PipeConstants.SERVER : PipeConstants.SOCKET\n );\n }\n\n if (type === 'TCP') {\n return new TCP(\n is_server ? TCPConstants.SERVER : TCPConstants.SOCKET\n );\n }\n\n throw new ERR_INVALID_FD_TYPE(type);\n}\n\n\nfunction getNewAsyncId(handle) {\n return (!handle || typeof handle.getAsyncId !== 'function') ?\n newAsyncId() : handle.getAsyncId();\n}\n\n\nfunction isPipeName(s) {\n return typeof s === 'string' && toNumber(s) === false;\n}\n\n/**\n * Creates a new TCP or IPC server\n * @param {{\n * allowHalfOpen?: boolean;\n * pauseOnConnect?: boolean;\n * }} [options]\n * @param {Function} [connectionListener]\n * @returns {Server}\n */\n\nfunction createServer(options\x2C connectionListener) {\n return new Server(options\x2C connectionListener);\n}\n\n\n// Target API:\n//\n// let s = net.connect({port: 80\x2C host: 'google.com'}\x2C function() {\n// ...\n// });\n//\n// There are various forms:\n//\n// connect(options\x2C [cb])\n// connect(port\x2C [host]\x2C [cb])\n// connect(path\x2C [cb]);\n//\nfunction connect(...args) {\n const normalized = normalizeArgs(args);\n const options = normalized[0];\n debug('createConnection'\x2C normalized);\n const socket = new Socket(options);\n\n if (options.timeout) {\n socket.setTimeout(options.timeout);\n }\n\n return socket.connect(normalized);\n}\n\n\n// Returns an array [options\x2C cb]\x2C where options is an object\x2C\n// cb is either a function or null.\n// Used to normalize arguments of Socket.prototype.connect() and\n// Server.prototype.listen(). Possible combinations of parameters:\n// (options[...][\x2C cb])\n// (path[...][\x2C cb])\n// ([port][\x2C host][...][\x2C cb])\n// For Socket.prototype.connect()\x2C the [...] part is ignored\n// For Server.prototype.listen()\x2C the [...] part is [\x2C backlog]\n// but will not be handled here (handled in listen())\nfunction normalizeArgs(args) {\n let arr;\n\n if (args.length === 0) {\n arr = [{}\x2C null];\n arr[normalizedArgsSymbol] = true;\n return arr;\n }\n\n const arg0 = args[0];\n let options = {};\n if (typeof arg0 === 'object' && arg0 !== null) {\n // (options[...][\x2C cb])\n options = arg0;\n } else if (isPipeName(arg0)) {\n // (path[...][\x2C cb])\n options.path = arg0;\n } else {\n // ([port][\x2C host][...][\x2C cb])\n options.port = arg0;\n if (args.length > 1 && typeof args[1] === 'string') {\n options.host = args[1];\n }\n }\n\n const cb = args[args.length - 1];\n if (typeof cb !== 'function')\n arr = [options\x2C null];\n else\n arr = [options\x2C cb];\n\n arr[normalizedArgsSymbol] = true;\n return arr;\n}\n\n\n// Called when creating new Socket\x2C or when re-using a closed Socket\nfunction initSocketHandle(self) {\n self._undestroy();\n self._sockname = null;\n\n // Handle creation may be deferred to bind() or connect() time.\n if (self._handle) {\n self._handle[owner_symbol] = self;\n self._handle.onread = onStreamRead;\n self[async_id_symbol] = getNewAsyncId(self._handle);\n\n let userBuf = self[kBuffer];\n if (userBuf) {\n const bufGen = self[kBufferGen];\n if (bufGen !== null) {\n userBuf = bufGen();\n if (!isUint8Array(userBuf))\n return;\n self[kBuffer] = userBuf;\n }\n self._handle.useUserBuffer(userBuf);\n }\n }\n}\n\n\nconst kBytesRead = Symbol('kBytesRead');\nconst kBytesWritten = Symbol('kBytesWritten');\nconst kSetNoDelay = Symbol('kSetNoDelay');\n\nfunction Socket(options) {\n if (!(this instanceof Socket)) return new Socket(options);\n\n this.connecting = false;\n // Problem with this is that users can supply their own handle\x2C that may not\n // have _handle.getAsyncId(). In this case an[async_id_symbol] should\n // probably be supplied by async_hooks.\n this[async_id_symbol] = -1;\n this._hadError = false;\n this[kHandle] = null;\n this._parent = null;\n this._host = null;\n this[kSetNoDelay] = false;\n this[kLastWriteQueueSize] = 0;\n this[kTimeout] = null;\n this[kBuffer] = null;\n this[kBufferCb] = null;\n this[kBufferGen] = null;\n\n if (typeof options === 'number')\n options = { fd: options }; // Legacy interface.\n else\n options = { ...options };\n\n // Default to *not* allowing half open sockets.\n options.allowHalfOpen = Boolean(options.allowHalfOpen);\n // For backwards compat do not emit close on destroy.\n options.emitClose = false;\n options.autoDestroy = true;\n // Handle strings directly.\n options.decodeStrings = false;\n stream.Duplex.call(this\x2C options);\n\n if (options.handle) {\n this._handle = options.handle; // private\n this[async_id_symbol] = getNewAsyncId(this._handle);\n } else if (options.fd !== undefined) {\n const { fd } = options;\n let err;\n\n // createHandle will throw ERR_INVALID_FD_TYPE if `fd` is not\n // a valid `PIPE` or `TCP` descriptor\n this._handle = createHandle(fd\x2C false);\n\n err = this._handle.open(fd);\n\n // While difficult to fabricate\x2C in some architectures\n // `open` may return an error code for valid file descriptors\n // which cannot be opened. This is difficult to test as most\n // un-openable fds will throw on `createHandle`\n if (err)\n throw errnoException(err\x2C 'open');\n\n this[async_id_symbol] = this._handle.getAsyncId();\n\n if ((fd === 1 || fd === 2) &&\n (this._handle instanceof Pipe) && isWindows) {\n // Make stdout and stderr blocking on Windows\n err = this._handle.setBlocking(true);\n if (err)\n throw errnoException(err\x2C 'setBlocking');\n\n this._writev = null;\n this._write = makeSyncWrite(fd);\n // makeSyncWrite adjusts this value like the original handle would\x2C so\n // we need to let it do that by turning it into a writable\x2C own\n // property.\n ObjectDefineProperty(this._handle\x2C 'bytesWritten'\x2C {\n value: 0\x2C writable: true\n });\n }\n }\n\n const onread = options.onread;\n if (onread !== null && typeof onread === 'object' &&\n (isUint8Array(onread.buffer) || typeof onread.buffer === 'function') &&\n typeof onread.callback === 'function') {\n if (typeof onread.buffer === 'function') {\n this[kBuffer] = true;\n this[kBufferGen] = onread.buffer;\n } else {\n this[kBuffer] = onread.buffer;\n }\n this[kBufferCb] = onread.callback;\n }\n\n // Shut down the socket when we're finished with it.\n this.on('end'\x2C onReadableStreamEnd);\n\n initSocketHandle(this);\n\n this._pendingData = null;\n this._pendingEncoding = '';\n\n // If we have a handle\x2C then start the flow of data into the\n // buffer. if not\x2C then this will happen when we connect\n if (this._handle && options.readable !== false) {\n if (options.pauseOnCreate) {\n // Stop the handle from reading and pause the stream\n this._handle.reading = false;\n this._handle.readStop();\n this.readableFlowing = false;\n } else if (!options.manualStart) {\n this.read(0);\n }\n }\n\n // Reserve properties\n this.server = null;\n this._server = null;\n\n // Used after `.destroy()`\n this[kBytesRead] = 0;\n this[kBytesWritten] = 0;\n}\nObjectSetPrototypeOf(Socket.prototype\x2C stream.Duplex.prototype);\nObjectSetPrototypeOf(Socket\x2C stream.Duplex);\n\n// Refresh existing timeouts.\nSocket.prototype._unrefTimer = function _unrefTimer() {\n for (let s = this; s !== null; s = s._parent) {\n if (s[kTimeout])\n s[kTimeout].refresh();\n }\n};\n\n\n// The user has called .end()\x2C and all the bytes have been\n// sent out to the other side.\nSocket.prototype._final = function(cb) {\n // If still connecting - defer handling `_final` until 'connect' will happen\n if (this.pending) {\n debug('_final: not yet connected');\n return this.once('connect'\x2C () => this._final(cb));\n }\n\n if (!this._handle)\n return cb();\n\n debug('_final: not ended\x2C call shutdown()');\n\n const req = new ShutdownWrap();\n req.oncomplete = afterShutdown;\n req.handle = this._handle;\n req.callback = cb;\n const err = this._handle.shutdown(req);\n\n if (err === 1 || err === UV_ENOTCONN) // synchronous finish\n return cb();\n else if (err !== 0)\n return cb(errnoException(err\x2C 'shutdown'));\n};\n\nfunction afterShutdown() {\n const self = this.handle[owner_symbol];\n\n debug('afterShutdown destroyed=%j'\x2C self.destroyed\x2C\n self._readableState);\n\n this.callback();\n}\n\n// Provide a better error message when we call end() as a result\n// of the other side sending a FIN. The standard 'write after end'\n// is overly vague\x2C and makes it seem like the user's code is to blame.\nfunction writeAfterFIN(chunk\x2C encoding\x2C cb) {\n if (!this.writableEnded) {\n return stream.Duplex.prototype.write.call(this\x2C chunk\x2C encoding\x2C cb);\n }\n\n if (typeof encoding === 'function') {\n cb = encoding;\n encoding = null;\n }\n\n // eslint-disable-next-line no-restricted-syntax\n const er = new Error('This socket has been ended by the other party');\n er.code = 'EPIPE';\n if (typeof cb === 'function') {\n defaultTriggerAsyncIdScope(this[async_id_symbol]\x2C process.nextTick\x2C cb\x2C er);\n }\n this.destroy(er);\n\n return false;\n}\n\nSocket.prototype.setTimeout = setStreamTimeout;\n\n\nSocket.prototype._onTimeout = function() {\n const handle = this._handle;\n const lastWriteQueueSize = this[kLastWriteQueueSize];\n if (lastWriteQueueSize > 0 && handle) {\n // `lastWriteQueueSize !== writeQueueSize` means there is\n // an active write in progress\x2C so we suppress the timeout.\n const { writeQueueSize } = handle;\n if (lastWriteQueueSize !== writeQueueSize) {\n this[kLastWriteQueueSize] = writeQueueSize;\n this._unrefTimer();\n return;\n }\n }\n debug('_onTimeout');\n this.emit('timeout');\n};\n\n\nSocket.prototype.setNoDelay = function(enable) {\n if (!this._handle) {\n this.once('connect'\x2C\n enable ? this.setNoDelay : () => this.setNoDelay(enable));\n return this;\n }\n\n // Backwards compatibility: assume true when `enable` is omitted\n const newValue = enable === undefined ? true : !!enable;\n if (this._handle.setNoDelay && newValue !== this[kSetNoDelay]) {\n this[kSetNoDelay] = newValue;\n this._handle.setNoDelay(newValue);\n }\n\n return this;\n};\n\n\nSocket.prototype.setKeepAlive = function(setting\x2C msecs) {\n if (!this._handle) {\n this.once('connect'\x2C () => this.setKeepAlive(setting\x2C msecs));\n return this;\n }\n\n if (this._handle.setKeepAlive)\n this._handle.setKeepAlive(setting\x2C ~~(msecs / 1000));\n\n return this;\n};\n\n\nSocket.prototype.address = function() {\n return this._getsockname();\n};\n\n\nObjectDefineProperty(Socket.prototype\x2C '_connecting'\x2C {\n get: function() {\n return this.connecting;\n }\n});\n\nObjectDefineProperty(Socket.prototype\x2C 'pending'\x2C {\n get() {\n return !this._handle || this.connecting;\n }\x2C\n configurable: true\n});\n\n\nObjectDefineProperty(Socket.prototype\x2C 'readyState'\x2C {\n get: function() {\n if (this.connecting) {\n return 'opening';\n } else if (this.readable && this.writable) {\n return 'open';\n } else if (this.readable && !this.writable) {\n return 'readOnly';\n } else if (!this.readable && this.writable) {\n return 'writeOnly';\n }\n return 'closed';\n }\n});\n\n\nObjectDefineProperty(Socket.prototype\x2C 'bufferSize'\x2C {\n get: function() {\n if (this._handle) {\n return this.writableLength;\n }\n }\n});\n\nObjectDefineProperty(Socket.prototype\x2C kUpdateTimer\x2C {\n get: function() {\n return this._unrefTimer;\n }\n});\n\n\nfunction tryReadStart(socket) {\n // Not already reading\x2C start the flow\n debug('Socket._handle.readStart');\n socket._handle.reading = true;\n const err = socket._handle.readStart();\n if (err)\n socket.destroy(errnoException(err\x2C 'read'));\n}\n\n// Just call handle.readStart until we have enough in the buffer\nSocket.prototype._read = function(n) {\n debug('_read');\n\n if (this.connecting || !this._handle) {\n debug('_read wait for connection');\n this.once('connect'\x2C () => this._read(n));\n } else if (!this._handle.reading) {\n tryReadStart(this);\n }\n};\n\n\nSocket.prototype.end = function(data\x2C encoding\x2C callback) {\n stream.Duplex.prototype.end.call(this\x2C\n data\x2C encoding\x2C callback);\n DTRACE_NET_STREAM_END(this);\n return this;\n};\n\n\nSocket.prototype.pause = function() {\n if (this[kBuffer] && !this.connecting && this._handle &&\n this._handle.reading) {\n this._handle.reading = false;\n if (!this.destroyed) {\n const err = this._handle.readStop();\n if (err)\n this.destroy(errnoException(err\x2C 'read'));\n }\n }\n return stream.Duplex.prototype.pause.call(this);\n};\n\n\nSocket.prototype.resume = function() {\n if (this[kBuffer] && !this.connecting && this._handle &&\n !this._handle.reading) {\n tryReadStart(this);\n }\n return stream.Duplex.prototype.resume.call(this);\n};\n\n\nSocket.prototype.read = function(n) {\n if (this[kBuffer] && !this.connecting && this._handle &&\n !this._handle.reading) {\n tryReadStart(this);\n }\n return stream.Duplex.prototype.read.call(this\x2C n);\n};\n\n\n// Called when the 'end' event is emitted.\nfunction onReadableStreamEnd() {\n if (!this.allowHalfOpen) {\n this.write = writeAfterFIN;\n }\n}\n\n\nSocket.prototype.destroySoon = function() {\n if (this.writable)\n this.end();\n\n if (this.writableFinished)\n this.destroy();\n else\n this.once('finish'\x2C this.destroy);\n};\n\n\nSocket.prototype._destroy = function(exception\x2C cb) {\n debug('destroy');\n\n this.connecting = false;\n\n for (let s = this; s !== null; s = s._parent) {\n clearTimeout(s[kTimeout]);\n }\n\n debug('close');\n if (this._handle) {\n if (this !== process.stderr)\n debug('close handle');\n const isException = exception ? true : false;\n // `bytesRead` and `kBytesWritten` should be accessible after `.destroy()`\n this[kBytesRead] = this._handle.bytesRead;\n this[kBytesWritten] = this._handle.bytesWritten;\n\n this._handle.close(() => {\n debug('emit close');\n this.emit('close'\x2C isException);\n });\n this._handle.onread = noop;\n this._handle = null;\n this._sockname = null;\n cb(exception);\n } else {\n cb(exception);\n process.nextTick(emitCloseNT\x2C this);\n }\n\n if (this._server) {\n debug('has server');\n this._server._connections--;\n if (this._server._emitCloseIfDrained) {\n this._server._emitCloseIfDrained();\n }\n }\n};\n\nSocket.prototype._getpeername = function() {\n if (!this._handle || !this._handle.getpeername) {\n return this._peername || {};\n } else if (!this._peername) {\n this._peername = {};\n // FIXME(bnoordhuis) Throw when the return value is not 0?\n this._handle.getpeername(this._peername);\n }\n return this._peername;\n};\n\nfunction protoGetter(name\x2C callback) {\n ObjectDefineProperty(Socket.prototype\x2C name\x2C {\n configurable: false\x2C\n enumerable: true\x2C\n get: callback\n });\n}\n\nprotoGetter('bytesRead'\x2C function bytesRead() {\n return this._handle ? this._handle.bytesRead : this[kBytesRead];\n});\n\nprotoGetter('remoteAddress'\x2C function remoteAddress() {\n return this._getpeername().address;\n});\n\nprotoGetter('remoteFamily'\x2C function remoteFamily() {\n return this._getpeername().family;\n});\n\nprotoGetter('remotePort'\x2C function remotePort() {\n return this._getpeername().port;\n});\n\n\nSocket.prototype._getsockname = function() {\n if (!this._handle || !this._handle.getsockname) {\n return {};\n } else if (!this._sockname) {\n this._sockname = {};\n // FIXME(bnoordhuis) Throw when the return value is not 0?\n this._handle.getsockname(this._sockname);\n }\n return this._sockname;\n};\n\n\nprotoGetter('localAddress'\x2C function localAddress() {\n return this._getsockname().address;\n});\n\n\nprotoGetter('localPort'\x2C function localPort() {\n return this._getsockname().port;\n});\n\n\nSocket.prototype[kAfterAsyncWrite] = function() {\n this[kLastWriteQueueSize] = 0;\n};\n\nSocket.prototype._writeGeneric = function(writev\x2C data\x2C encoding\x2C cb) {\n // If we are still connecting\x2C then buffer this for later.\n // The Writable logic will buffer up any more writes while\n // waiting for this one to be done.\n if (this.connecting) {\n this._pendingData = data;\n this._pendingEncoding = encoding;\n this.once('connect'\x2C function connect() {\n this._writeGeneric(writev\x2C data\x2C encoding\x2C cb);\n });\n return;\n }\n this._pendingData = null;\n this._pendingEncoding = '';\n\n if (!this._handle) {\n cb(new ERR_SOCKET_CLOSED());\n return false;\n }\n\n this._unrefTimer();\n\n let req;\n if (writev)\n req = writevGeneric(this\x2C data\x2C cb);\n else\n req = writeGeneric(this\x2C data\x2C encoding\x2C cb);\n if (req.async)\n this[kLastWriteQueueSize] = req.bytes;\n};\n\n\nSocket.prototype._writev = function(chunks\x2C cb) {\n this._writeGeneric(true\x2C chunks\x2C ''\x2C cb);\n};\n\n\nSocket.prototype._write = function(data\x2C encoding\x2C cb) {\n this._writeGeneric(false\x2C data\x2C encoding\x2C cb);\n};\n\n\n// Legacy alias. Having this is probably being overly cautious\x2C but it doesn't\n// really hurt anyone either. This can probably be removed safely if desired.\nprotoGetter('_bytesDispatched'\x2C function _bytesDispatched() {\n return this._handle ? this._handle.bytesWritten : this[kBytesWritten];\n});\n\nprotoGetter('bytesWritten'\x2C function bytesWritten() {\n let bytes = this._bytesDispatched;\n const data = this._pendingData;\n const encoding = this._pendingEncoding;\n const writableBuffer = this.writableBuffer;\n\n if (!writableBuffer)\n return undefined;\n\n for (const el of writableBuffer) {\n bytes += el.chunk instanceof Buffer ?\n el.chunk.length :\n Buffer.byteLength(el.chunk\x2C el.encoding);\n }\n\n if (ArrayIsArray(data)) {\n // Was a writev\x2C iterate over chunks to get total length\n for (let i = 0; i < data.length; i++) {\n const chunk = data[i];\n\n if (data.allBuffers || chunk instanceof Buffer)\n bytes += chunk.length;\n else\n bytes += Buffer.byteLength(chunk.chunk\x2C chunk.encoding);\n }\n } else if (data) {\n // Writes are either a string or a Buffer.\n if (typeof data !== 'string')\n bytes += data.length;\n else\n bytes += Buffer.byteLength(data\x2C encoding);\n }\n\n return bytes;\n});\n\n\nfunction checkBindError(err\x2C port\x2C handle) {\n // EADDRINUSE may not be reported until we call listen() or connect().\n // To complicate matters\x2C a failed bind() followed by listen() or connect()\n // will implicitly bind to a random port. Ergo\x2C check that the socket is\n // bound to the expected port before calling listen() or connect().\n //\n // FIXME(bnoordhuis) Doesn't work for pipe handles\x2C they don't have a\n // getsockname() method. Non-issue for now\x2C the cluster module doesn't\n // really support pipes anyway.\n if (err === 0 && port > 0 && handle.getsockname) {\n const out = {};\n err = handle.getsockname(out);\n if (err === 0 && port !== out.port) {\n debug(`checkBindError\x2C bound to ${out.port} instead of ${port}`);\n err = UV_EADDRINUSE;\n }\n }\n return err;\n}\n\n\nfunction internalConnect(\n self\x2C address\x2C port\x2C addressType\x2C localAddress\x2C localPort\x2C flags) {\n // TODO return promise from Socket.prototype.connect which\n // wraps _connectReq.\n\n assert(self.connecting);\n\n let err;\n\n if (localAddress || localPort) {\n if (addressType === 4) {\n localAddress = localAddress || DEFAULT_IPV4_ADDR;\n err = self._handle.bind(localAddress\x2C localPort);\n } else { // addressType === 6\n localAddress = localAddress || DEFAULT_IPV6_ADDR;\n err = self._handle.bind6(localAddress\x2C localPort\x2C flags);\n }\n debug('binding to localAddress: %s and localPort: %d (addressType: %d)'\x2C\n localAddress\x2C localPort\x2C addressType);\n\n err = checkBindError(err\x2C localPort\x2C self._handle);\n if (err) {\n const ex = exceptionWithHostPort(err\x2C 'bind'\x2C localAddress\x2C localPort);\n self.destroy(ex);\n return;\n }\n }\n\n if (addressType === 6 || addressType === 4) {\n const req = new TCPConnectWrap();\n req.oncomplete = afterConnect;\n req.address = address;\n req.port = port;\n req.localAddress = localAddress;\n req.localPort = localPort;\n\n if (addressType === 4)\n err = self._handle.connect(req\x2C address\x2C port);\n else\n err = self._handle.connect6(req\x2C address\x2C port);\n } else {\n const req = new PipeConnectWrap();\n req.address = address;\n req.oncomplete = afterConnect;\n\n err = self._handle.connect(req\x2C address\x2C afterConnect);\n }\n\n if (err) {\n const sockname = self._getsockname();\n let details;\n\n if (sockname) {\n details = sockname.address + ':' + sockname.port;\n }\n\n const ex = exceptionWithHostPort(err\x2C 'connect'\x2C address\x2C port\x2C details);\n self.destroy(ex);\n }\n}\n\n\nSocket.prototype.connect = function(...args) {\n let normalized;\n // If passed an array\x2C it's treated as an array of arguments that have\n // already been normalized (so we don't normalize more than once). This has\n // been solved before in https://github.com/nodejs/node/pull/12342\x2C but was\n // reverted as it had unintended side effects.\n if (ArrayIsArray(args[0]) && args[0][normalizedArgsSymbol]) {\n normalized = args[0];\n } else {\n normalized = normalizeArgs(args);\n }\n const options = normalized[0];\n const cb = normalized[1];\n\n // options.port === null will be checked later.\n if (options.port === undefined && options.path == null)\n throw new ERR_MISSING_ARGS(['options'\x2C 'port'\x2C 'path']);\n\n if (this.write !== Socket.prototype.write)\n this.write = Socket.prototype.write;\n\n if (this.destroyed) {\n this._handle = null;\n this._peername = null;\n this._sockname = null;\n }\n\n const { path } = options;\n const pipe = !!path;\n debug('pipe'\x2C pipe\x2C path);\n\n if (!this._handle) {\n this._handle = pipe ?\n new Pipe(PipeConstants.SOCKET) :\n new TCP(TCPConstants.SOCKET);\n initSocketHandle(this);\n }\n\n if (cb !== null) {\n this.once('connect'\x2C cb);\n }\n\n this._unrefTimer();\n\n this.connecting = true;\n\n if (pipe) {\n validateString(path\x2C 'options.path');\n defaultTriggerAsyncIdScope(\n this[async_id_symbol]\x2C internalConnect\x2C this\x2C path\n );\n } else {\n lookupAndConnect(this\x2C options);\n }\n return this;\n};\n\n\nfunction lookupAndConnect(self\x2C options) {\n const { localAddress\x2C localPort } = options;\n const host = options.host || 'localhost';\n let { port } = options;\n\n if (localAddress && !isIP(localAddress)) {\n throw new ERR_INVALID_IP_ADDRESS(localAddress);\n }\n\n if (localPort) {\n validateNumber(localPort\x2C 'options.localPort');\n }\n\n if (typeof port !== 'undefined') {\n if (typeof port !== 'number' && typeof port !== 'string') {\n throw new ERR_INVALID_ARG_TYPE('options.port'\x2C\n ['number'\x2C 'string']\x2C port);\n }\n validatePort(port);\n }\n port |= 0;\n\n // If host is an IP\x2C skip performing a lookup\n const addressType = isIP(host);\n if (addressType) {\n defaultTriggerAsyncIdScope(self[async_id_symbol]\x2C process.nextTick\x2C () => {\n if (self.connecting)\n defaultTriggerAsyncIdScope(\n self[async_id_symbol]\x2C\n internalConnect\x2C\n self\x2C host\x2C port\x2C addressType\x2C localAddress\x2C localPort\n );\n });\n return;\n }\n\n if (options.lookup !== undefined)\n validateFunction(options.lookup\x2C 'options.lookup');\n\n if (dns === undefined) dns = require('dns');\n const dnsopts = {\n family: options.family\x2C\n hints: options.hints || 0\n };\n\n if (!isWindows &&\n dnsopts.family !== 4 &&\n dnsopts.family !== 6 &&\n dnsopts.hints === 0) {\n dnsopts.hints = dns.ADDRCONFIG;\n }\n\n debug('connect: find host'\x2C host);\n debug('connect: dns options'\x2C dnsopts);\n self._host = host;\n const lookup = options.lookup || dns.lookup;\n defaultTriggerAsyncIdScope(self[async_id_symbol]\x2C function() {\n lookup(host\x2C dnsopts\x2C function emitLookup(err\x2C ip\x2C addressType) {\n self.emit('lookup'\x2C err\x2C ip\x2C addressType\x2C host);\n\n // It's possible we were destroyed while looking this up.\n // XXX it would be great if we could cancel the promise returned by\n // the look up.\n if (!self.connecting) return;\n\n if (err) {\n // net.createConnection() creates a net.Socket object and immediately\n // calls net.Socket.connect() on it (that's us). There are no event\n // listeners registered yet so defer the error event to the next tick.\n process.nextTick(connectErrorNT\x2C self\x2C err);\n } else if (!isIP(ip)) {\n err = new ERR_INVALID_IP_ADDRESS(ip);\n process.nextTick(connectErrorNT\x2C self\x2C err);\n } else if (addressType !== 4 && addressType !== 6) {\n err = new ERR_INVALID_ADDRESS_FAMILY(addressType\x2C\n options.host\x2C\n options.port);\n process.nextTick(connectErrorNT\x2C self\x2C err);\n } else {\n self._unrefTimer();\n defaultTriggerAsyncIdScope(\n self[async_id_symbol]\x2C\n internalConnect\x2C\n self\x2C ip\x2C port\x2C addressType\x2C localAddress\x2C localPort\n );\n }\n });\n });\n}\n\n\nfunction connectErrorNT(self\x2C err) {\n self.destroy(err);\n}\n\n\nSocket.prototype.ref = function() {\n if (!this._handle) {\n this.once('connect'\x2C this.ref);\n return this;\n }\n\n if (typeof this._handle.ref === 'function') {\n this._handle.ref();\n }\n\n return this;\n};\n\n\nSocket.prototype.unref = function() {\n if (!this._handle) {\n this.once('connect'\x2C this.unref);\n return this;\n }\n\n if (typeof this._handle.unref === 'function') {\n this._handle.unref();\n }\n\n return this;\n};\n\n\nfunction afterConnect(status\x2C handle\x2C req\x2C readable\x2C writable) {\n const self = handle[owner_symbol];\n\n // Callback may come after call to destroy\n if (self.destroyed) {\n return;\n }\n\n debug('afterConnect');\n\n assert(self.connecting);\n self.connecting = false;\n self._sockname = null;\n\n if (status === 0) {\n if (self.readable && !readable) {\n self.push(null);\n self.read();\n }\n if (self.writable && !writable) {\n self.end();\n }\n self._unrefTimer();\n\n self.emit('connect');\n self.emit('ready');\n\n // Start the first read\x2C or get an immediate EOF.\n // this doesn't actually consume any bytes\x2C because len=0.\n if (readable && !self.isPaused())\n self.read(0);\n\n } else {\n self.connecting = false;\n let details;\n if (req.localAddress && req.localPort) {\n details = req.localAddress + ':' + req.localPort;\n }\n const ex = exceptionWithHostPort(status\x2C\n 'connect'\x2C\n req.address\x2C\n req.port\x2C\n details);\n if (details) {\n ex.localAddress = req.localAddress;\n ex.localPort = req.localPort;\n }\n self.destroy(ex);\n }\n}\n\nfunction addAbortSignalOption(self\x2C options) {\n if (options?.signal === undefined) {\n return;\n }\n validateAbortSignal(options.signal\x2C 'options.signal');\n const { signal } = options;\n const onAborted = () => {\n self.close();\n };\n if (signal.aborted) {\n process.nextTick(onAborted);\n } else {\n signal.addEventListener('abort'\x2C onAborted);\n self.once('close'\x2C () => signal.removeEventListener('abort'\x2C onAborted));\n }\n}\n\nfunction Server(options\x2C connectionListener) {\n if (!(this instanceof Server))\n return new Server(options\x2C connectionListener);\n\n EventEmitter.call(this);\n\n if (typeof options === 'function') {\n connectionListener = options;\n options = {};\n this.on('connection'\x2C connectionListener);\n } else if (options == null || typeof options === 'object') {\n options = { ...options };\n\n if (typeof connectionListener === 'function') {\n this.on('connection'\x2C connectionListener);\n }\n } else {\n throw new ERR_INVALID_ARG_TYPE('options'\x2C 'Object'\x2C options);\n }\n\n this._connections = 0;\n\n this[async_id_symbol] = -1;\n this._handle = null;\n this._usingWorkers = false;\n this._workers = [];\n this._unref = false;\n\n this.allowHalfOpen = options.allowHalfOpen || false;\n this.pauseOnConnect = !!options.pauseOnConnect;\n}\nObjectSetPrototypeOf(Server.prototype\x2C EventEmitter.prototype);\nObjectSetPrototypeOf(Server\x2C EventEmitter);\n\n\nfunction toNumber(x) { return (x = Number(x)) >= 0 ? x : false; }\n\n// Returns handle if it can be created\x2C or error code if it can't\nfunction createServerHandle(address\x2C port\x2C addressType\x2C fd\x2C flags) {\n let err = 0;\n // Assign handle in listen\x2C and clean up if bind or listen fails\n let handle;\n\n let isTCP = false;\n if (typeof fd === 'number' && fd >= 0) {\n try {\n handle = createHandle(fd\x2C true);\n } catch (e) {\n // Not a fd we can listen on. This will trigger an error.\n debug('listen invalid fd=%d:'\x2C fd\x2C e.message);\n return UV_EINVAL;\n }\n\n err = handle.open(fd);\n if (err)\n return err;\n\n assert(!address && !port);\n } else if (port === -1 && addressType === -1) {\n handle = new Pipe(PipeConstants.SERVER);\n if (isWindows) {\n const instances = NumberParseInt(process.env.NODE_PENDING_PIPE_INSTANCES);\n if (!NumberIsNaN(instances)) {\n handle.setPendingInstances(instances);\n }\n }\n } else {\n handle = new TCP(TCPConstants.SERVER);\n isTCP = true;\n }\n\n if (address || port || isTCP) {\n debug('bind to'\x2C address || 'any');\n if (!address) {\n // Try binding to ipv6 first\n err = handle.bind6(DEFAULT_IPV6_ADDR\x2C port\x2C flags);\n if (err) {\n handle.close();\n // Fallback to ipv4\n return createServerHandle(DEFAULT_IPV4_ADDR\x2C port);\n }\n } else if (addressType === 6) {\n err = handle.bind6(address\x2C port\x2C flags);\n } else {\n err = handle.bind(address\x2C port);\n }\n }\n\n if (err) {\n handle.close();\n return err;\n }\n\n return handle;\n}\n\nfunction setupListenHandle(address\x2C port\x2C addressType\x2C backlog\x2C fd\x2C flags) {\n debug('setupListenHandle'\x2C address\x2C port\x2C addressType\x2C backlog\x2C fd);\n\n // If there is not yet a handle\x2C we need to create one and bind.\n // In the case of a server sent via IPC\x2C we don't need to do this.\n if (this._handle) {\n debug('setupListenHandle: have a handle already');\n } else {\n debug('setupListenHandle: create a handle');\n\n let rval = null;\n\n // Try to bind to the unspecified IPv6 address\x2C see if IPv6 is available\n if (!address && typeof fd !== 'number') {\n rval = createServerHandle(DEFAULT_IPV6_ADDR\x2C port\x2C 6\x2C fd\x2C flags);\n\n if (typeof rval === 'number') {\n rval = null;\n address = DEFAULT_IPV4_ADDR;\n addressType = 4;\n } else {\n address = DEFAULT_IPV6_ADDR;\n addressType = 6;\n }\n }\n\n if (rval === null)\n rval = createServerHandle(address\x2C port\x2C addressType\x2C fd\x2C flags);\n\n if (typeof rval === 'number') {\n const error = uvExceptionWithHostPort(rval\x2C 'listen'\x2C address\x2C port);\n process.nextTick(emitErrorNT\x2C this\x2C error);\n return;\n }\n this._handle = rval;\n }\n\n this[async_id_symbol] = getNewAsyncId(this._handle);\n this._handle.onconnection = onconnection;\n this._handle[owner_symbol] = this;\n\n // Use a backlog of 512 entries. We pass 511 to the listen() call because\n // the kernel does: backlogsize = roundup_pow_of_two(backlogsize + 1);\n // which will thus give us a backlog of 512 entries.\n const err = this._handle.listen(backlog || 511);\n\n if (err) {\n const ex = uvExceptionWithHostPort(err\x2C 'listen'\x2C address\x2C port);\n this._handle.close();\n this._handle = null;\n defaultTriggerAsyncIdScope(this[async_id_symbol]\x2C\n process.nextTick\x2C\n emitErrorNT\x2C\n this\x2C\n ex);\n return;\n }\n\n // Generate connection key\x2C this should be unique to the connection\n this._connectionKey = addressType + ':' + address + ':' + port;\n\n // Unref the handle if the server was unref'ed prior to listening\n if (this._unref)\n this.unref();\n\n defaultTriggerAsyncIdScope(this[async_id_symbol]\x2C\n process.nextTick\x2C\n emitListeningNT\x2C\n this);\n}\n\nServer.prototype._listen2 = setupListenHandle; // legacy alias\n\nfunction emitErrorNT(self\x2C err) {\n self.emit('error'\x2C err);\n}\n\n\nfunction emitListeningNT(self) {\n // Ensure handle hasn't closed\n if (self._handle)\n self.emit('listening');\n}\n\n\nfunction listenInCluster(server\x2C address\x2C port\x2C addressType\x2C\n backlog\x2C fd\x2C exclusive\x2C flags) {\n exclusive = !!exclusive;\n\n if (cluster === undefined) cluster = require('cluster');\n\n if (cluster.isPrimary || exclusive) {\n // Will create a new handle\n // _listen2 sets up the listened handle\x2C it is still named like this\n // to avoid breaking code that wraps this method\n server._listen2(address\x2C port\x2C addressType\x2C backlog\x2C fd\x2C flags);\n return;\n }\n\n const serverQuery = {\n address: address\x2C\n port: port\x2C\n addressType: addressType\x2C\n fd: fd\x2C\n flags\x2C\n };\n\n // Get the primary's server handle\x2C and listen on it\n cluster._getServer(server\x2C serverQuery\x2C listenOnPrimaryHandle);\n\n function listenOnPrimaryHandle(err\x2C handle) {\n err = checkBindError(err\x2C port\x2C handle);\n\n if (err) {\n const ex = exceptionWithHostPort(err\x2C 'bind'\x2C address\x2C port);\n return server.emit('error'\x2C ex);\n }\n\n // Reuse primary's server handle\n server._handle = handle;\n // _listen2 sets up the listened handle\x2C it is still named like this\n // to avoid breaking code that wraps this method\n server._listen2(address\x2C port\x2C addressType\x2C backlog\x2C fd\x2C flags);\n }\n}\n\n\nServer.prototype.listen = function(...args) {\n const normalized = normalizeArgs(args);\n let options = normalized[0];\n const cb = normalized[1];\n\n if (this._handle) {\n throw new ERR_SERVER_ALREADY_LISTEN();\n }\n\n if (cb !== null) {\n this.once('listening'\x2C cb);\n }\n const backlogFromArgs =\n // (handle\x2C backlog) or (path\x2C backlog) or (port\x2C backlog)\n toNumber(args.length > 1 && args[1]) ||\n toNumber(args.length > 2 && args[2]); // (port\x2C host\x2C backlog)\n\n options = options._handle || options.handle || options;\n const flags = getFlags(options.ipv6Only);\n // (handle[\x2C backlog][\x2C cb]) where handle is an object with a handle\n if (options instanceof TCP) {\n this._handle = options;\n this[async_id_symbol] = this._handle.getAsyncId();\n listenInCluster(this\x2C null\x2C -1\x2C -1\x2C backlogFromArgs);\n return this;\n }\n addAbortSignalOption(this\x2C options);\n // (handle[\x2C backlog][\x2C cb]) where handle is an object with a fd\n if (typeof options.fd === 'number' && options.fd >= 0) {\n listenInCluster(this\x2C null\x2C null\x2C null\x2C backlogFromArgs\x2C options.fd);\n return this;\n }\n\n // ([port][\x2C host][\x2C backlog][\x2C cb]) where port is omitted\x2C\n // that is\x2C listen()\x2C listen(null)\x2C listen(cb)\x2C or listen(null\x2C cb)\n // or (options[\x2C cb]) where options.port is explicitly set as undefined or\n // null\x2C bind to an arbitrary unused port\n if (args.length === 0 || typeof args[0] === 'function' ||\n (typeof options.port === 'undefined' && 'port' in options) ||\n options.port === null) {\n options.port = 0;\n }\n // ([port][\x2C host][\x2C backlog][\x2C cb]) where port is specified\n // or (options[\x2C cb]) where options.port is specified\n // or if options.port is normalized as 0 before\n let backlog;\n if (typeof options.port === 'number' || typeof options.port === 'string') {\n validatePort(options.port\x2C 'options.port');\n backlog = options.backlog || backlogFromArgs;\n // start TCP server listening on host:port\n if (options.host) {\n lookupAndListen(this\x2C options.port | 0\x2C options.host\x2C backlog\x2C\n options.exclusive\x2C flags);\n } else { // Undefined host\x2C listens on unspecified address\n // Default addressType 4 will be used to search for primary server\n listenInCluster(this\x2C null\x2C options.port | 0\x2C 4\x2C\n backlog\x2C undefined\x2C options.exclusive);\n }\n return this;\n }\n\n // (path[\x2C backlog][\x2C cb]) or (options[\x2C cb])\n // where path or options.path is a UNIX domain socket or Windows pipe\n if (options.path && isPipeName(options.path)) {\n const pipeName = this._pipeName = options.path;\n backlog = options.backlog || backlogFromArgs;\n listenInCluster(this\x2C pipeName\x2C -1\x2C -1\x2C\n backlog\x2C undefined\x2C options.exclusive);\n\n if (!this._handle) {\n // Failed and an error shall be emitted in the next tick.\n // Therefore\x2C we directly return.\n return this;\n }\n\n let mode = 0;\n if (options.readableAll === true)\n mode |= PipeConstants.UV_READABLE;\n if (options.writableAll === true)\n mode |= PipeConstants.UV_WRITABLE;\n if (mode !== 0) {\n const err = this._handle.fchmod(mode);\n if (err) {\n this._handle.close();\n this._handle = null;\n throw errnoException(err\x2C 'uv_pipe_chmod');\n }\n }\n return this;\n }\n\n if (!(('port' in options) || ('path' in options))) {\n throw new ERR_INVALID_ARG_VALUE('options'\x2C options\x2C\n 'must have the property "port" or "path"');\n }\n\n throw new ERR_INVALID_ARG_VALUE('options'\x2C options);\n};\n\nfunction lookupAndListen(self\x2C port\x2C address\x2C backlog\x2C exclusive\x2C flags) {\n if (dns === undefined) dns = require('dns');\n dns.lookup(address\x2C function doListen(err\x2C ip\x2C addressType) {\n if (err) {\n self.emit('error'\x2C err);\n } else {\n addressType = ip ? addressType : 4;\n listenInCluster(self\x2C ip\x2C port\x2C addressType\x2C\n backlog\x2C undefined\x2C exclusive\x2C flags);\n }\n });\n}\n\nObjectDefineProperty(Server.prototype\x2C 'listening'\x2C {\n get: function() {\n return !!this._handle;\n }\x2C\n configurable: true\x2C\n enumerable: true\n});\n\nServer.prototype.address = function() {\n if (this._handle && this._handle.getsockname) {\n const out = {};\n const err = this._handle.getsockname(out);\n if (err) {\n throw errnoException(err\x2C 'address');\n }\n return out;\n } else if (this._pipeName) {\n return this._pipeName;\n }\n return null;\n};\n\nfunction onconnection(err\x2C clientHandle) {\n const handle = this;\n const self = handle[owner_symbol];\n\n debug('onconnection');\n\n if (err) {\n self.emit('error'\x2C errnoException(err\x2C 'accept'));\n return;\n }\n\n if (self.maxConnections && self._connections >= self.maxConnections) {\n clientHandle.close();\n return;\n }\n\n const socket = new Socket({\n handle: clientHandle\x2C\n allowHalfOpen: self.allowHalfOpen\x2C\n pauseOnCreate: self.pauseOnConnect\x2C\n readable: true\x2C\n writable: true\n });\n\n self._connections++;\n socket.server = self;\n socket._server = self;\n\n DTRACE_NET_SERVER_CONNECTION(socket);\n self.emit('connection'\x2C socket);\n}\n\n/**\n * Gets the number of concurrent connections on the server\n * @param {Function} cb\n * @returns {Server}\n */\n\nServer.prototype.getConnections = function(cb) {\n const self = this;\n\n function end(err\x2C connections) {\n defaultTriggerAsyncIdScope(self[async_id_symbol]\x2C\n process.nextTick\x2C\n cb\x2C\n err\x2C\n connections);\n }\n\n if (!this._usingWorkers) {\n end(null\x2C this._connections);\n return this;\n }\n\n // Poll workers\n let left = this._workers.length;\n let total = this._connections;\n\n function oncount(err\x2C count) {\n if (err) {\n left = -1;\n return end(err);\n }\n\n total += count;\n if (--left === 0) return end(null\x2C total);\n }\n\n for (let n = 0; n < this._workers.length; n++) {\n this._workers[n].getConnections(oncount);\n }\n\n return this;\n};\n\n\nServer.prototype.close = function(cb) {\n if (typeof cb === 'function') {\n if (!this._handle) {\n this.once('close'\x2C function close() {\n cb(new ERR_SERVER_NOT_RUNNING());\n });\n } else {\n this.once('close'\x2C cb);\n }\n }\n\n if (this._handle) {\n this._handle.close();\n this._handle = null;\n }\n\n if (this._usingWorkers) {\n let left = this._workers.length;\n const onWorkerClose = () => {\n if (--left !== 0) return;\n\n this._connections = 0;\n this._emitCloseIfDrained();\n };\n\n // Increment connections to be sure that\x2C even if all sockets will be closed\n // during polling of workers\x2C `close` event will be emitted only once.\n this._connections++;\n\n // Poll workers\n for (let n = 0; n < this._workers.length; n++)\n this._workers[n].close(onWorkerClose);\n } else {\n this._emitCloseIfDrained();\n }\n\n return this;\n};\n\nServer.prototype._emitCloseIfDrained = function() {\n debug('SERVER _emitCloseIfDrained');\n\n if (this._handle || this._connections) {\n debug('SERVER handle? %j connections? %d'\x2C\n !!this._handle\x2C this._connections);\n return;\n }\n\n defaultTriggerAsyncIdScope(this[async_id_symbol]\x2C\n process.nextTick\x2C\n emitCloseNT\x2C\n this);\n};\n\n\nfunction emitCloseNT(self) {\n debug('SERVER: emit close');\n self.emit('close');\n}\n\n\nServer.prototype[EventEmitter.captureRejectionSymbol] = function(\n err\x2C event\x2C sock) {\n\n switch (event) {\n case 'connection':\n sock.destroy(err);\n break;\n default:\n this.emit('error'\x2C err);\n }\n};\n\n\n// Legacy alias on the C++ wrapper object. This is not public API\x2C so we may\n// want to runtime-deprecate it at some point. There's no hurry\x2C though.\nObjectDefineProperty(TCP.prototype\x2C 'owner'\x2C {\n get() { return this[owner_symbol]; }\x2C\n set(v) { return this[owner_symbol] = v; }\n});\n\nObjectDefineProperty(Socket.prototype\x2C '_handle'\x2C {\n get() { return this[kHandle]; }\x2C\n set(v) { return this[kHandle] = v; }\n});\n\nServer.prototype._setupWorker = function(socketList) {\n this._usingWorkers = true;\n this._workers.push(socketList);\n socketList.once('exit'\x2C (socketList) => {\n const index = ArrayPrototypeIndexOf(this._workers\x2C socketList);\n this._workers.splice(index\x2C 1);\n });\n};\n\nServer.prototype.ref = function() {\n this._unref = false;\n\n if (this._handle)\n this._handle.ref();\n\n return this;\n};\n\nServer.prototype.unref = function() {\n this._unref = true;\n\n if (this._handle)\n this._handle.unref();\n\n return this;\n};\n\nlet _setSimultaneousAccepts;\nlet warnSimultaneousAccepts = true;\n\nif (isWindows) {\n let simultaneousAccepts;\n\n _setSimultaneousAccepts = function(handle) {\n if (warnSimultaneousAccepts) {\n process.emitWarning(\n 'net._setSimultaneousAccepts() is deprecated and will be removed.'\x2C\n 'DeprecationWarning'\x2C 'DEP0121');\n warnSimultaneousAccepts = false;\n }\n if (handle === undefined) {\n return;\n }\n\n if (simultaneousAccepts === undefined) {\n simultaneousAccepts = (process.env.NODE_MANY_ACCEPTS &&\n process.env.NODE_MANY_ACCEPTS !== '0');\n }\n\n if (handle._simultaneousAccepts !== simultaneousAccepts) {\n handle.setSimultaneousAccepts(!!simultaneousAccepts);\n handle._simultaneousAccepts = simultaneousAccepts;\n }\n };\n} else {\n _setSimultaneousAccepts = function() {\n if (warnSimultaneousAccepts) {\n process.emitWarning(\n 'net._setSimultaneousAccepts() is deprecated and will be removed.'\x2C\n 'DeprecationWarning'\x2C 'DEP0121');\n warnSimultaneousAccepts = false;\n }\n };\n}\n\nmodule.exports = {\n _createServerHandle: createServerHandle\x2C\n _normalizeArgs: normalizeArgs\x2C\n _setSimultaneousAccepts\x2C\n get BlockList() {\n BlockList ??= require('internal/blocklist').BlockList;\n return BlockList;\n }\x2C\n get SocketAddress() {\n SocketAddress ??= require('internal/socketaddress').SocketAddress;\n return SocketAddress;\n }\x2C\n connect\x2C\n createConnection: connect\x2C\n createServer\x2C\n isIP: isIP\x2C\n isIPv4: isIPv4\x2C\n isIPv6: isIPv6\x2C\n Server\x2C\n Socket\x2C\n Stream: Socket\x2C // Legacy naming\n};\n
code-source-info,0xb6d5354f8be,115,0,47197,C0O0C4O47197,,
code-creation,Function,10,57149,0xb6d5355279e,2513, node:net:1:1,0xb6d5354f828,~
code-source-info,0xb6d5355279e,115,0,47197,C0O0C411O1159C417O1175C423O1200C429O1211C435O1220C441O1230C447O1245C453O1263C459O1287C464O1311C469O1358C475O1358C479O1358C481O1392C487O1392C491O1392C493O1423C499O1423C504O1456C518O1457C524O1423C526O1581C532O1581C537O1511C543O1519C548O1529C553O1539C559O1563C565O1621C571O1621C575O1621C577O1705C580O1705C585O1659C591O1676C597O1689C603O1748C609O1748C614O1737C620O1795C623O1795C628O1775C634O1845C637O1845C642O1828C648O1940C651O1940C656O1887C662O1894C668O1923C674O2035C677O2035C682O1979C688O1987C694O2017C700O2166C706O2166C711O2075C717O2089C728O2130C734O2147C740O2364C746O2364C751O2209C757O2226C763O2242C769O2258C774O2278C780O2289C785O2305C790O2325C796O2336C802O2349C808O2744C814O2744C819O2744C824O2428C830O2460C836O2486C842O2513C848O2538C854O2566C860O2597C866O2625C872O2648C878O2673C884O2691C890O2716C896O2797C902O2797C907O2780C913O2952C919O2952C924O2839C930O2862C936O2882C942O2899C948O2917C954O2933C960O3012C963O3012C967O3012C969O3110C975O3110C980O3052C986O3084C992O3190C993O3190C995O3203C996O3203C998O3212C999O3212C1001O3227C1002O3227C1004O3268C1010O3268C1015O3251C1021O3308C1027O3308C1032O3295C1038O3363C1040O3363C1042O3400C1044O3400C1046O3425C1049O3433C1056O3442C1059O3425C1061O3469C1065O3469C1067O6921C1070O6921C1074O6921C1076O6965C1079O6965C1083O6965C1085O7010C1088O7010C1092O7010C1094O10628C1097O10656C1105O10674C1110O10681C1115O10628C1120O10693C1126O10729C1131O10693C1136O10769C1139O10776C1148O10798C1152O11024C1155O11031C1164O11048C1168O12594C1171O12601C1178O12622C1182O12644C1185O12651C1194O12672C1198O13182C1201O13189C1210O13210C1214O13665C1217O13672C1226O13695C1230O13948C1233O13955C1242O13973C1246O14023C1252O14051C1266O14086C1274O14023C1279O14136C1285O14164C1299O14190C1307O14136C1312O14275C1318O14303C1332O14337C1340O14275C1345O14659C1351O14687C1365O14721C1373O14659C1378O14807C1384O14835C1389O14846C1395O14869C1406O14807C1411O15234C1414O15241C1423O15257C1427O15492C1430O15499C1439O15513C1443O15706C1446O15713C1455O15729C1459O16069C1462O16076C1471O16093C1475O16283C1478O16290C1487O16305C1491O16642C1494O16649C1503O16671C1507O16824C1510O16831C1519O16850C1523O17809C1526O17816C1535O17839C1539O18300C1547O18300C1552O18420C1560O18420C1565O18519C1573O18519C1578O18615C1586O18615C1596O18706C1599O18713C1608O18736C1616O19018C1624O19018C1634O19116C1642O19116C1652O19205C1655O19212C1660O19222C1664O19240C1672O19292C1675O19299C1684O19323C1692O20090C1695O20097C1704O20115C1712O20189C1715O20196C1724O20213C1732O20457C1740O20457C1750O20597C1758O20597C1768O24069C1771O24076C1780O24094C1788O28495C1791O28502C1800O28516C1808O28709C1811O28716C1820O28732C1828O31467C1831O31495C1843O31519C1852O31467C1862O31531C1868O31531C1878O35517C1881O35524C1892O35543C1900O36991C1903O36998C1916O37015C1924O40972C1930O41000C1951O41033C1963O40972C1973O41124C1976O41131C1989O41149C1997O42219C2000O42226C2013O42251C2021O43010C2024O43017C2037O43033C2045O43905C2048O43912C2061O43942C2069O44420C2072O44427C2084O44450C2097O44474C2105O44792C2111O44817C2132O44841C2144O44881C2156O44792C2166O44928C2172O44956C2189O44982C2201O45017C2213O44928C2223O45059C2226O45066C2239O45089C2247O45335C2250O45342C2263O45356C2271O45459C2274O45466C2287O45482C2295O45590C2297O45645C2298O45645C2300O45652C2311O45675C2312O45675C2314O45699C2323O46407C2328O46679C2338O46721C2348O46759C2358O46776C2368O47035C2378O47064C2388O47075C2398O47097C2408O47113C2418O47131C2428O47141C2438O47151C2448O47169C2503O46694C2512O47196,,
tick,0xfb2ba0,57239,1,0xb515a0,3,0xd44a10,0xa52511ba43c,0xa52511b972d,0xb6d5354d42a,0xa52511ba45d,0xa52511b972d,0xb6d5354c5d9,0xb6d5354b8ef,0xb6d5354b6ff,0xb6d5354b5d6,0xb6d53549f2e,0xc13800,0xb6d53549b23,0xb6d53549025,0x158e77f
tick,0x7f4debd443a5,57256,1,0xb515a0,3,0xd44a10,0xa52511ba43c,0xa52511b972d,0xb6d5354d42a,0xa52511ba45d,0xa52511b972d,0xb6d5354c5d9,0xb6d5354b8ef,0xb6d5354b6ff,0xb6d5354b5d6,0xb6d53549f2e,0xc13800,0xb6d53549b23,0xb6d53549025,0x158e77f
tick,0x7f4debd44473,57261,1,0xb515a0,3,0xd44a10,0xa52511ba43c,0xa52511b972d,0xb6d5354d42a,0xa52511ba45d,0xa52511b972d,0xb6d5354c5d9,0xb6d5354b8ef,0xb6d5354b6ff,0xb6d5354b5d6,0xb6d53549f2e,0xc13800,0xb6d53549b23,0xb6d53549025,0x158e77f
code-creation,Eval,10,57656,0xb6d53557ee6,5, node:internal/net:1:1,0xb6d53557d10,~
script-source,116,node:internal/net,'use strict';\n\nconst {\n RegExp\x2C\n RegExpPrototypeTest\x2C\n Symbol\x2C\n} = primordials;\n\nconst Buffer = require('buffer').Buffer;\nconst { writeBuffer } = internalBinding('fs');\nconst errors = require('internal/errors');\n\n// IPv4 Segment\nconst v4Seg = '(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])';\nconst v4Str = `(${v4Seg}[.]){3}${v4Seg}`;\nconst IPv4Reg = new RegExp(`^${v4Str}$`);\n\n// IPv6 Segment\nconst v6Seg = '(?:[0-9a-fA-F]{1\x2C4})';\nconst IPv6Reg = new RegExp('^(' +\n `(?:${v6Seg}:){7}(?:${v6Seg}|:)|` +\n `(?:${v6Seg}:){6}(?:${v4Str}|:${v6Seg}|:)|` +\n `(?:${v6Seg}:){5}(?::${v4Str}|(:${v6Seg}){1\x2C2}|:)|` +\n `(?:${v6Seg}:){4}(?:(:${v6Seg}){0\x2C1}:${v4Str}|(:${v6Seg}){1\x2C3}|:)|` +\n `(?:${v6Seg}:){3}(?:(:${v6Seg}){0\x2C2}:${v4Str}|(:${v6Seg}){1\x2C4}|:)|` +\n `(?:${v6Seg}:){2}(?:(:${v6Seg}){0\x2C3}:${v4Str}|(:${v6Seg}){1\x2C5}|:)|` +\n `(?:${v6Seg}:){1}(?:(:${v6Seg}){0\x2C4}:${v4Str}|(:${v6Seg}){1\x2C6}|:)|` +\n `(?::((?::${v6Seg}){0\x2C5}:${v4Str}|(?::${v6Seg}){1\x2C7}|:))` +\n')(%[0-9a-zA-Z-.:]{1\x2C})?$');\n\nfunction isIPv4(s) {\n return RegExpPrototypeTest(IPv4Reg\x2C s);\n}\n\nfunction isIPv6(s) {\n return RegExpPrototypeTest(IPv6Reg\x2C s);\n}\n\nfunction isIP(s) {\n if (isIPv4(s)) return 4;\n if (isIPv6(s)) return 6;\n return 0;\n}\n\nfunction makeSyncWrite(fd) {\n return function(chunk\x2C enc\x2C cb) {\n if (enc !== 'buffer')\n chunk = Buffer.from(chunk\x2C enc);\n\n this._handle.bytesWritten += chunk.length;\n\n const ctx = {};\n writeBuffer(fd\x2C chunk\x2C 0\x2C chunk.length\x2C null\x2C undefined\x2C ctx);\n if (ctx.errno !== undefined) {\n const ex = errors.uvException(ctx);\n ex.errno = ctx.errno;\n return cb(ex);\n }\n cb();\n };\n}\n\nmodule.exports = {\n isIP\x2C\n isIPv4\x2C\n isIPv6\x2C\n makeSyncWrite\x2C\n normalizedArgsSymbol: Symbol('normalizedArgs')\n};\n
code-source-info,0xb6d53557ee6,116,0,1749,C0O0C4O1749,,
code-creation,Function,10,57787,0xb6d535582e6,617, node:internal/net:1:1,0xb6d53557e50,~
code-source-info,0xb6d535582e6,116,0,1749,C0O0C45O25C50O35C56O58C61O99C64O99C69O116C73O99C75O149C78O149C83O133C89O187C92O187C96O187C98O246C101O316C106O320C119O335C124O360C129O375C142O360C147O360C149O417C152O457C160O483C173O499C183O473C192O521C205O537C218O547C228O511C237O569C250O586C263O597C273O559C282O625C295O643C308O658C321O669C331O615C340O697C353O715C366O730C379O741C389O687C398O769C411O787C424O802C437O813C447O759C456O841C469O859C482O874C495O885C505O831C514O919C527O934C540O947C550O903C556O965C562O457C567O457C569O1633C576O1654C582O1662C588O1672C594O1682C601O1721C611O1648C616O1748,,
tick,0x1243e8b,57885,1,0xb515a0,6,0xd44a10,0xa52511ba43c,0xa52511b972d,0xb6d535529b2,0xa52511ba45d,0xa52511b972d,0xb6d5354d42a,0xa52511ba45d,0xa52511b972d,0xb6d5354c5d9,0xb6d5354b8ef,0xb6d5354b6ff,0xb6d5354b5d6,0xb6d53549f2e,0xc13800,0xb6d53549b23,0xb6d53549025,0x158e77f
code-creation,Eval,10,58227,0xb6d5355b4fe,5, node:internal/dtrace:1:1,0xb6d5355b3a8,~
script-source,117,node:internal/dtrace,'use strict';\n\nconst config = internalBinding('config');\n\nconst {\n DTRACE_HTTP_CLIENT_REQUEST = () => {}\x2C\n DTRACE_HTTP_CLIENT_RESPONSE = () => {}\x2C\n DTRACE_HTTP_SERVER_REQUEST = () => {}\x2C\n DTRACE_HTTP_SERVER_RESPONSE = () => {}\x2C\n DTRACE_NET_SERVER_CONNECTION = () => {}\x2C\n DTRACE_NET_STREAM_END = () => {}\n} = (config.hasDtrace ? internalBinding('dtrace') : {});\n\nmodule.exports = {\n DTRACE_HTTP_CLIENT_REQUEST\x2C\n DTRACE_HTTP_CLIENT_RESPONSE\x2C\n DTRACE_HTTP_SERVER_REQUEST\x2C\n DTRACE_HTTP_SERVER_RESPONSE\x2C\n DTRACE_NET_SERVER_CONNECTION\x2C\n DTRACE_NET_STREAM_END\n};\n
code-source-info,0xb6d5355b4fe,117,0,568,C0O0C4O568,,
code-creation,Function,10,58270,0xb6d5355b9e6,140, node:internal/dtrace:1:1,0xb6d5355b468,~
code-source-info,0xb6d5355b9e6,117,0,568,C0O30C3O30C8O322C17O334C25O68C36O109C47O151C58O192C69O234C80O277C91O368C98O389C104O419C110O450C116O480C122O511C128O543C134O383C139O567,,
code-creation,LazyCompile,10,58496,0xb6d5355c23e,34,protoGetter node:net:703:21,0xb6d5354fd00,~
code-source-info,0xb6d5355c23e,115,18158,18298,C0O18179C8O18207C13O18218C20O18282C27O18179C33O18297,,
code-creation,Eval,10,58763,0xb6d53560bc6,5, node:internal/tty:1:1,0xb6d53560950,~
script-source,118,node:internal/tty,// MIT License\n\n// Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)\n\n// Permission is hereby granted\x2C free of charge\x2C to any person obtaining a copy\n// of this software and associated documentation files (the "Software")\x2C to deal\n// in the Software without restriction\x2C including without limitation the rights\n// to use\x2C copy\x2C modify\x2C merge\x2C publish\x2C distribute\x2C sublicense\x2C and/or sell\n// copies of the Software\x2C and to permit persons to whom the Software is\n// furnished to do so\x2C subject to the following conditions:\n\n// The above copyright notice and this permission notice shall be included in\n// all copies or substantial portions of the Software.\n\n// THE SOFTWARE IS PROVIDED "AS IS"\x2C WITHOUT WARRANTY OF ANY KIND\x2C EXPRESS OR\n// IMPLIED\x2C INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY\x2C\n// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM\x2C DAMAGES OR OTHER\n// LIABILITY\x2C WHETHER IN AN ACTION OF CONTRACT\x2C TORT OR OTHERWISE\x2C ARISING FROM\x2C\n// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n// SOFTWARE.\n\n'use strict';\n\nconst {\n ArrayPrototypeSome\x2C\n RegExpPrototypeTest\x2C\n StringPrototypeSplit\x2C\n StringPrototypeToLowerCase\x2C\n} = primordials;\n\nconst {\n ERR_INVALID_ARG_TYPE\x2C\n ERR_OUT_OF_RANGE\n} = require('internal/errors').codes;\n\nlet OSRelease;\n\nconst COLORS_2 = 1;\nconst COLORS_16 = 4;\nconst COLORS_256 = 8;\nconst COLORS_16m = 24;\n\n// Some entries were taken from `dircolors`\n// (https://linux.die.net/man/1/dircolors). The corresponding terminals might\n// support more than 16 colors\x2C but this was not tested for.\n//\n// Copyright (C) 1996-2016 Free Software Foundation\x2C Inc. Copying and\n// distribution of this file\x2C with or without modification\x2C are permitted\n// provided the copyright notice and this notice are preserved.\nconst TERM_ENVS = {\n 'eterm': COLORS_16\x2C\n 'cons25': COLORS_16\x2C\n 'console': COLORS_16\x2C\n 'cygwin': COLORS_16\x2C\n 'dtterm': COLORS_16\x2C\n 'gnome': COLORS_16\x2C\n 'hurd': COLORS_16\x2C\n 'jfbterm': COLORS_16\x2C\n 'konsole': COLORS_16\x2C\n 'kterm': COLORS_16\x2C\n 'mlterm': COLORS_16\x2C\n 'mosh': COLORS_16m\x2C\n 'putty': COLORS_16\x2C\n 'st': COLORS_16\x2C\n // https://github.com/da-x/rxvt-unicode/tree/v9.22-with-24bit-color\n 'rxvt-unicode-24bit': COLORS_16m\x2C\n // https://gist.github.com/XVilka/8346728#gistcomment-2823421\n 'terminator': COLORS_16m\n};\n\nconst TERM_ENVS_REG_EXP = [\n /ansi/\x2C\n /color/\x2C\n /linux/\x2C\n /^con[0-9]*x[0-9]/\x2C\n /^rxvt/\x2C\n /^screen/\x2C\n /^xterm/\x2C\n /^vt100/\x2C\n];\n\nlet warned = false;\nfunction warnOnDeactivatedColors(env) {\n if (warned)\n return;\n let name = '';\n if (env.NODE_DISABLE_COLORS !== undefined)\n name = 'NODE_DISABLE_COLORS';\n if (env.NO_COLOR !== undefined) {\n if (name !== '') {\n name += "' and '";\n }\n name += 'NO_COLOR';\n }\n\n if (name !== '') {\n process.emitWarning(\n `The '${name}' env is ignored due to the 'FORCE_COLOR' env being set.`\x2C\n 'Warning'\n );\n warned = true;\n }\n}\n\n// The `getColorDepth` API got inspired by multiple sources such as\n// https://github.com/chalk/supports-color\x2C\n// https://github.com/isaacs/color-support.\nfunction getColorDepth(env = process.env) {\n // Use level 0-3 to support the same levels as `chalk` does. This is done for\n // consistency throughout the ecosystem.\n if (env.FORCE_COLOR !== undefined) {\n switch (env.FORCE_COLOR) {\n case '':\n case '1':\n case 'true':\n warnOnDeactivatedColors(env);\n return COLORS_16;\n case '2':\n warnOnDeactivatedColors(env);\n return COLORS_256;\n case '3':\n warnOnDeactivatedColors(env);\n return COLORS_16m;\n default:\n return COLORS_2;\n }\n }\n\n if (env.NODE_DISABLE_COLORS !== undefined ||\n // See https://no-color.org/\n env.NO_COLOR !== undefined ||\n // The "dumb" special terminal\x2C as defined by terminfo\x2C doesn't support\n // ANSI color control codes.\n // See https://invisible-island.net/ncurses/terminfo.ti.html#toc-_Specials\n env.TERM === 'dumb') {\n return COLORS_2;\n }\n\n if (process.platform === 'win32') {\n // Lazy load for startup performance.\n if (OSRelease === undefined) {\n const { release } = require('os');\n OSRelease = StringPrototypeSplit(release()\x2C '.');\n }\n // Windows 10 build 10586 is the first Windows release that supports 256\n // colors. Windows 10 build 14931 is the first release that supports\n // 16m/TrueColor.\n if (+OSRelease[0] >= 10) {\n const build = +OSRelease[2];\n if (build >= 14931)\n return COLORS_16m;\n if (build >= 10586)\n return COLORS_256;\n }\n\n return COLORS_16;\n }\n\n if (env.TMUX) {\n return COLORS_256;\n }\n\n if (env.CI) {\n if ('TRAVIS' in env || 'CIRCLECI' in env || 'APPVEYOR' in env ||\n 'GITLAB_CI' in env || env.CI_NAME === 'codeship') {\n return COLORS_256;\n }\n return COLORS_2;\n }\n\n if ('TEAMCITY_VERSION' in env) {\n return RegExpPrototypeTest(/^(9\\.(0*[1-9]\\d*)\\.|\\d{2\x2C}\\.)/\x2C env.TEAMCITY_VERSION) ?\n COLORS_16 : COLORS_2;\n }\n\n switch (env.TERM_PROGRAM) {\n case 'iTerm.app':\n if (!env.TERM_PROGRAM_VERSION ||\n RegExpPrototypeTest(/^[0-2]\\./\x2C env.TERM_PROGRAM_VERSION)\n ) {\n return COLORS_256;\n }\n return COLORS_16m;\n case 'HyperTerm':\n case 'MacTerm':\n return COLORS_16m;\n case 'Apple_Terminal':\n return COLORS_256;\n }\n\n if (env.COLORTERM === 'truecolor' || env.COLORTERM === '24bit') {\n return COLORS_16m;\n }\n\n if (env.TERM) {\n if (RegExpPrototypeTest(/^xterm-256/\x2C env.TERM)) {\n return COLORS_256;\n }\n\n const termEnv = StringPrototypeToLowerCase(env.TERM);\n\n if (TERM_ENVS[termEnv]) {\n return TERM_ENVS[termEnv];\n }\n if (ArrayPrototypeSome(TERM_ENVS_REG_EXP\x2C\n (term) => RegExpPrototypeTest(term\x2C termEnv))) {\n return COLORS_16;\n }\n }\n // Move 16 color COLORTERM below 16m and 256\n if (env.COLORTERM) {\n return COLORS_16;\n }\n return COLORS_2;\n}\n\nfunction hasColors(count\x2C env) {\n if (env === undefined &&\n (count === undefined || (typeof count === 'object' && count !== null))) {\n env = count;\n count = 16;\n } else {\n if (typeof count !== 'number') {\n throw new ERR_INVALID_ARG_TYPE('count'\x2C 'number'\x2C count);\n }\n if (count < 2) {\n throw new ERR_OUT_OF_RANGE('count'\x2C '>= 2'\x2C count);\n }\n }\n return count <= 2 ** getColorDepth(env);\n}\n\nmodule.exports = {\n getColorDepth\x2C\n hasColors\n};\n
code-source-info,0xb6d53560bc6,118,0,6547,C0O0C4O6547,,
code-creation,Function,10,59092,0xb6d53561046,372, node:internal/tty:1:1,0xb6d53560b30,~
code-source-info,0xb6d53561046,118,0,6547,C0O0C72O1186C78O1208C84O1231C90O1255C96O1356C102O1356C107O1382C112O1311C118O1335C124O1395C125O1395C127O1424C129O1424C131O1445C133O1445C135O1467C137O1467C139O1489C141O1489C143O1906C150O1919C156O1942C162O1966C168O1989C174O2012C180O2034C186O2055C192O2079C198O2103C204O2125C210O2148C216O2169C222O2192C228O2211C234O2316C240O2408C246O1906C248O2449C342O2449C344O2570C345O2570C347O6496C354O6517C360O6534C366O6511C371O6546,,
tick,0x7f4debd4449c,59118,1,0xb515a0,3,0xd44a10,0xa52511ba43c,0xa52511b972d,0xb6d5354d46a,0xa52511ba45d,0xa52511b972d,0xb6d5354c5d9,0xb6d5354b8ef,0xb6d5354b6ff,0xb6d5354b5d6,0xb6d53549f2e,0xc13800,0xb6d53549b23,0xb6d53549025,0x158e77f
code-creation,LazyCompile,10,59328,0xb6d53561de6,194,WriteStream node:tty:85:21,0xb6d5354cdc8,~
code-source-info,0xb6d53561de6,114,2514,3460,C0O2523C2O2534C7O2563C12O2570C17O2590C18O2593C20O2600C26O2605C32O2618C37O2627C44O2633C49O2627C50O2672C52O2690C67O2690C73O2725C79O2751C86O2757C91O2751C92O2794C97O2798C102O2805C114O2830C118O2805C124O3271C129O3279C136O3279C141O3317C151O3317C157O3350C162O3358C167O3358C173O3384C175O3400C176O3422C179O3413C183O3431C185O3450C188O3441C193O3459,,
code-creation,LazyCompile,10,59500,0xb6d535628f6,674,Socket node:net:283:16,0xb6d5354fb70,~
code-source-info,0xb6d535628f6,115,7049,10627,C0O7063C2O7074C7O7094C12O7101C17O7121C18O7125C19O7141C23O7345C25O7350C30O7367C34O7375C35O7390C39O7401C41O7406C45O7415C49O7425C50O7438C54O7448C55O7459C59O7469C61O7474C65O7487C69O7498C71O7503C75O7524C79O7531C81O7536C85O7546C89O7556C91O7561C95O7570C99O7580C101O7585C105O7596C109O7606C111O7611C115O7623C119O7634C125O7671C132O7687C143O7730C149O7809C151O7833C154O7849C159O7833C163O7831C167O7923C168O7941C172O7952C173O7972C177O8012C178O8034C182O8045C187O8052C192O8059C197O8059C203O8095C209O8132C213O8122C217O8155C219O8160C225O8198C230O8179C234O8177C240O8229C246O8261C251O8285C253O8403C258O8418C263O8416C267O8459C272O8467C277O8467C283O8724C285O8739C293O8745C298O8739C299O8779C301O8784C304O8808C309O8816C314O8816C318O8801C322O8835C324O8843C331O8855C336O8879C343O8898C345O8887C352O8907C356O8989C361O8997C368O8997C374O9022C376O9039C384O9045C389O9039C390O9088C391O9101C395O9115C397O9129C400O9129C404O9127C408O9320C413O9346C426O9320C431O9452C436O9462C446O9522C449O9542C454O9522C460O9567C468O9613C476O9662C484O9693C486O9698C490O9707C494O9721C496O9726C499O9747C503O9738C509O9774C511O9779C514O9797C518O9788C522O9815C524O9820C527O9840C531O9831C535O9917C546O9917C552O9952C555O9952C559O9979C560O9997C564O10007C566O10029C570O10170C576O10189C582O10198C587O10227C593O10314C599O10330C603O10350C608O10358C613O10358C617O10376C618O10397C624O10430C630O10456C637O10456C642O10502C643O10514C647O10524C648O10537C652O10577C654O10582C658O10594C662O10601C664O10606C668O10621C673O10626,,
code-creation,LazyCompile,10,59583,0xb6d53562e76,109,Duplex node:internal/streams/duplex:52:16,0x3787ca79eb58,~
script-source,57,node:internal/streams/duplex,// Copyright Joyent\x2C Inc. and other Node contributors.\n//\n// Permission is hereby granted\x2C free of charge\x2C to any person obtaining a\n// copy of this software and associated documentation files (the\n// "Software")\x2C to deal in the Software without restriction\x2C including\n// without limitation the rights to use\x2C copy\x2C modify\x2C merge\x2C publish\x2C\n// distribute\x2C sublicense\x2C and/or sell copies of the Software\x2C and to permit\n// persons to whom the Software is furnished to do so\x2C subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED "AS IS"\x2C WITHOUT WARRANTY OF ANY KIND\x2C EXPRESS\n// OR IMPLIED\x2C INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY\x2C FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM\x2C\n// DAMAGES OR OTHER LIABILITY\x2C WHETHER IN AN ACTION OF CONTRACT\x2C TORT OR\n// OTHERWISE\x2C ARISING FROM\x2C OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n// a duplex stream is just a stream that is both readable and writable.\n// Since JS doesn't have multiple prototype inheritance\x2C this class\n// prototypically inherits from Readable\x2C and then parasitically from\n// Writable.\n\n'use strict';\n\nconst {\n ObjectDefineProperties\x2C\n ObjectGetOwnPropertyDescriptor\x2C\n ObjectKeys\x2C\n ObjectSetPrototypeOf\x2C\n} = primordials;\n\nmodule.exports = Duplex;\n\nconst Readable = require('internal/streams/readable');\nconst Writable = require('internal/streams/writable');\n\nObjectSetPrototypeOf(Duplex.prototype\x2C Readable.prototype);\nObjectSetPrototypeOf(Duplex\x2C Readable);\n\n{\n // Allow the keys array to be GC'ed.\n for (const method of ObjectKeys(Writable.prototype)) {\n if (!Duplex.prototype[method])\n Duplex.prototype[method] = Writable.prototype[method];\n }\n}\n\nfunction Duplex(options) {\n if (!(this instanceof Duplex))\n return new Duplex(options);\n\n Readable.call(this\x2C options);\n Writable.call(this\x2C options);\n this.allowHalfOpen = true;\n\n if (options) {\n if (options.readable === false)\n this.readable = false;\n\n if (options.writable === false)\n this.writable = false;\n\n if (options.allowHalfOpen === false) {\n this.allowHalfOpen = false;\n }\n }\n}\n\nObjectDefineProperties(Duplex.prototype\x2C {\n writable:\n ObjectGetOwnPropertyDescriptor(Writable.prototype\x2C 'writable')\x2C\n writableHighWaterMark:\n ObjectGetOwnPropertyDescriptor(Writable.prototype\x2C 'writableHighWaterMark')\x2C\n writableObjectMode:\n ObjectGetOwnPropertyDescriptor(Writable.prototype\x2C 'writableObjectMode')\x2C\n writableBuffer:\n ObjectGetOwnPropertyDescriptor(Writable.prototype\x2C 'writableBuffer')\x2C\n writableLength:\n ObjectGetOwnPropertyDescriptor(Writable.prototype\x2C 'writableLength')\x2C\n writableFinished:\n ObjectGetOwnPropertyDescriptor(Writable.prototype\x2C 'writableFinished')\x2C\n writableCorked:\n ObjectGetOwnPropertyDescriptor(Writable.prototype\x2C 'writableCorked')\x2C\n writableEnded:\n ObjectGetOwnPropertyDescriptor(Writable.prototype\x2C 'writableEnded')\x2C\n writableNeedDrain:\n ObjectGetOwnPropertyDescriptor(Writable.prototype\x2C 'writableNeedDrain')\x2C\n\n destroyed: {\n get() {\n if (this._readableState === undefined ||\n this._writableState === undefined) {\n return false;\n }\n return this._readableState.destroyed && this._writableState.destroyed;\n }\x2C\n set(value) {\n // Backward compatibility\x2C the user is explicitly\n // managing destroyed.\n if (this._readableState && this._writableState) {\n this._readableState.destroyed = value;\n this._writableState.destroyed = value;\n }\n }\n }\n});\n
code-source-info,0xb6d53562e76,57,1951,2360,C0O1965C2O1976C7O2000C12O2007C17O2027C18O2031C23O2040C28O2040C34O2063C39O2072C44O2072C50O2095C51O2114C55O2125C59O2156C65O2165C70O2182C71O2196C75O2222C81O2231C86O2248C87O2262C91O2288C97O2302C102O2321C103O2340C108O2359,,
code-creation,LazyCompile,10,59885,0xb6d535634e6,220,Readable node:internal/streams/readable:179:18,0x3787ca790588,~
script-source,51,node:internal/streams/readable,// Copyright Joyent\x2C Inc. and other Node contributors.\n//\n// Permission is hereby granted\x2C free of charge\x2C to any person obtaining a\n// copy of this software and associated documentation files (the\n// "Software")\x2C to deal in the Software without restriction\x2C including\n// without limitation the rights to use\x2C copy\x2C modify\x2C merge\x2C publish\x2C\n// distribute\x2C sublicense\x2C and/or sell copies of the Software\x2C and to permit\n// persons to whom the Software is furnished to do so\x2C subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED "AS IS"\x2C WITHOUT WARRANTY OF ANY KIND\x2C EXPRESS\n// OR IMPLIED\x2C INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY\x2C FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM\x2C\n// DAMAGES OR OTHER LIABILITY\x2C WHETHER IN AN ACTION OF CONTRACT\x2C TORT OR\n// OTHERWISE\x2C ARISING FROM\x2C OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n'use strict';\n\nconst {\n ArrayPrototypeIndexOf\x2C\n NumberIsInteger\x2C\n NumberIsNaN\x2C\n NumberParseInt\x2C\n ObjectDefineProperties\x2C\n ObjectKeys\x2C\n ObjectSetPrototypeOf\x2C\n Promise\x2C\n SafeSet\x2C\n SymbolAsyncIterator\x2C\n Symbol\n} = primordials;\n\nmodule.exports = Readable;\nReadable.ReadableState = ReadableState;\n\nconst EE = require('events');\nconst { Stream\x2C prependListener } = require('internal/streams/legacy');\nconst { Buffer } = require('buffer');\n\nconst {\n addAbortSignalNoValidate\x2C\n} = require('internal/streams/add-abort-signal');\n\nlet debug = require('internal/util/debuglog').debuglog('stream'\x2C (fn) => {\n debug = fn;\n});\nconst BufferList = require('internal/streams/buffer_list');\nconst destroyImpl = require('internal/streams/destroy');\nconst {\n getHighWaterMark\x2C\n getDefaultHighWaterMark\n} = require('internal/streams/state');\n\nconst {\n ERR_INVALID_ARG_TYPE\x2C\n ERR_STREAM_PUSH_AFTER_EOF\x2C\n ERR_METHOD_NOT_IMPLEMENTED\x2C\n ERR_STREAM_UNSHIFT_AFTER_END_EVENT\n} = require('internal/errors').codes;\nconst { validateObject } = require('internal/validators');\n\nconst kPaused = Symbol('kPaused');\n\nconst { StringDecoder } = require('string_decoder');\nconst from = require('internal/streams/from');\n\nObjectSetPrototypeOf(Readable.prototype\x2C Stream.prototype);\nObjectSetPrototypeOf(Readable\x2C Stream);\nconst nop = () => {};\n\nconst { errorOrDestroy } = destroyImpl;\n\nfunction ReadableState(options\x2C stream\x2C isDuplex) {\n // Duplex streams are both readable and writable\x2C but share\n // the same options object.\n // However\x2C some cases require setting options to different\n // values for the readable and the writable sides of the duplex stream.\n // These options can be provided separately as readableXXX and writableXXX.\n if (typeof isDuplex !== 'boolean')\n isDuplex = stream instanceof Stream.Duplex;\n\n // Object stream flag. Used to make read(n) ignore n and to\n // make all the buffer merging and length checks go away.\n this.objectMode = !!(options && options.objectMode);\n\n if (isDuplex)\n this.objectMode = this.objectMode ||\n !!(options && options.readableObjectMode);\n\n // The point at which it stops calling _read() to fill the buffer\n // Note: 0 is a valid value\x2C means "don't call _read preemptively ever"\n this.highWaterMark = options ?\n getHighWaterMark(this\x2C options\x2C 'readableHighWaterMark'\x2C isDuplex) :\n getDefaultHighWaterMark(false);\n\n // A linked list is used to store data chunks instead of an array because the\n // linked list can remove elements from the beginning faster than\n // array.shift().\n this.buffer = new BufferList();\n this.length = 0;\n this.pipes = [];\n this.flowing = null;\n this.ended = false;\n this.endEmitted = false;\n this.reading = false;\n\n // Stream is still being constructed and cannot be\n // destroyed until construction finished or failed.\n // Async construction is opt in\x2C therefore we start as\n // constructed.\n this.constructed = true;\n\n // A flag to be able to tell if the event 'readable'/'data' is emitted\n // immediately\x2C or on a later tick. We set this to true at first\x2C because\n // any actions that shouldn't happen until "later" should generally also\n // not happen before the first read call.\n this.sync = true;\n\n // Whenever we return null\x2C then we set a flag to say\n // that we're awaiting a 'readable' event emission.\n this.needReadable = false;\n this.emittedReadable = false;\n this.readableListening = false;\n this.resumeScheduled = false;\n this[kPaused] = null;\n\n // True if the error was already emitted and should not be thrown again.\n this.errorEmitted = false;\n\n // Should close be emitted on destroy. Defaults to true.\n this.emitClose = !options || options.emitClose !== false;\n\n // Should .destroy() be called after 'end' (and potentially 'finish').\n this.autoDestroy = !options || options.autoDestroy !== false;\n\n // Has it been destroyed.\n this.destroyed = false;\n\n // Indicates whether the stream has errored. When true no further\n // _read calls\x2C 'data' or 'readable' events should occur. This is needed\n // since when autoDestroy is disabled we need a way to tell whether the\n // stream has failed.\n this.errored = null;\n\n // Indicates whether the stream has finished destroying.\n this.closed = false;\n\n // True if close has been emitted or would have been emitted\n // depending on emitClose.\n this.closeEmitted = false;\n\n // Crypto is kind of old and crusty. Historically\x2C its default string\n // encoding is 'binary' so we have to make this configurable.\n // Everything else in the universe uses 'utf8'\x2C though.\n this.defaultEncoding = (options && options.defaultEncoding) || 'utf8';\n\n // Ref the piped dest which we need a drain event on it\n // type: null | Writable | Set<Writable>.\n this.awaitDrainWriters = null;\n this.multiAwaitDrain = false;\n\n // If true\x2C a maybeReadMore has been scheduled.\n this.readingMore = false;\n\n this.decoder = null;\n this.encoding = null;\n if (options && options.encoding) {\n this.decoder = new StringDecoder(options.encoding);\n this.encoding = options.encoding;\n }\n}\n\n\nfunction Readable(options) {\n if (!(this instanceof Readable))\n return new Readable(options);\n\n // Checking for a Stream.Duplex instance is faster here instead of inside\n // the ReadableState constructor\x2C at least with V8 6.5.\n const isDuplex = this instanceof Stream.Duplex;\n\n this._readableState = new ReadableState(options\x2C this\x2C isDuplex);\n\n if (options) {\n if (typeof options.read === 'function')\n this._read = options.read;\n\n if (typeof options.destroy === 'function')\n this._destroy = options.destroy;\n\n if (typeof options.construct === 'function')\n this._construct = options.construct;\n if (options.signal && !isDuplex)\n addAbortSignalNoValidate(options.signal\x2C this);\n }\n\n Stream.call(this\x2C options);\n\n destroyImpl.construct(this\x2C () => {\n if (this._readableState.needReadable) {\n maybeReadMore(this\x2C this._readableState);\n }\n });\n}\n\nReadable.prototype.destroy = destroyImpl.destroy;\nReadable.prototype._undestroy = destroyImpl.undestroy;\nReadable.prototype._destroy = function(err\x2C cb) {\n cb(err);\n};\n\nReadable.prototype[EE.captureRejectionSymbol] = function(err) {\n this.destroy(err);\n};\n\n// Manually shove something into the read() buffer.\n// This returns true if the highWaterMark has not been hit yet\x2C\n// similar to how Writable.write() returns true if you should\n// write() some more.\nReadable.prototype.push = function(chunk\x2C encoding) {\n return readableAddChunk(this\x2C chunk\x2C encoding\x2C false);\n};\n\n// Unshift should *always* be something directly out of read().\nReadable.prototype.unshift = function(chunk\x2C encoding) {\n return readableAddChunk(this\x2C chunk\x2C encoding\x2C true);\n};\n\nfunction readableAddChunk(stream\x2C chunk\x2C encoding\x2C addToFront) {\n debug('readableAddChunk'\x2C chunk);\n const state = stream._readableState;\n\n let err;\n if (!state.objectMode) {\n if (typeof chunk === 'string') {\n encoding = encoding || state.defaultEncoding;\n if (state.encoding !== encoding) {\n if (addToFront && state.encoding) {\n // When unshifting\x2C if state.encoding is set\x2C we have to save\n // the string in the BufferList with the state encoding.\n chunk = Buffer.from(chunk\x2C encoding).toString(state.encoding);\n } else {\n chunk = Buffer.from(chunk\x2C encoding);\n encoding = '';\n }\n }\n } else if (chunk instanceof Buffer) {\n encoding = '';\n } else if (Stream._isUint8Array(chunk)) {\n chunk = Stream._uint8ArrayToBuffer(chunk);\n encoding = '';\n } else if (chunk != null) {\n err = new ERR_INVALID_ARG_TYPE(\n 'chunk'\x2C ['string'\x2C 'Buffer'\x2C 'Uint8Array']\x2C chunk);\n }\n }\n\n if (err) {\n errorOrDestroy(stream\x2C err);\n } else if (chunk === null) {\n state.reading = false;\n onEofChunk(stream\x2C state);\n } else if (state.objectMode || (chunk && chunk.length > 0)) {\n if (addToFront) {\n if (state.endEmitted)\n errorOrDestroy(stream\x2C new ERR_STREAM_UNSHIFT_AFTER_END_EVENT());\n else\n addChunk(stream\x2C state\x2C chunk\x2C true);\n } else if (state.ended) {\n errorOrDestroy(stream\x2C new ERR_STREAM_PUSH_AFTER_EOF());\n } else if (state.destroyed || state.errored) {\n return false;\n } else {\n state.reading = false;\n if (state.decoder && !encoding) {\n chunk = state.decoder.write(chunk);\n if (state.objectMode || chunk.length !== 0)\n addChunk(stream\x2C state\x2C chunk\x2C false);\n else\n maybeReadMore(stream\x2C state);\n } else {\n addChunk(stream\x2C state\x2C chunk\x2C false);\n }\n }\n } else if (!addToFront) {\n state.reading = false;\n maybeReadMore(stream\x2C state);\n }\n\n // We can push more data if we are below the highWaterMark.\n // Also\x2C if we have no data yet\x2C we can stand some more bytes.\n // This is to work around cases where hwm=0\x2C such as the repl.\n return !state.ended &&\n (state.length < state.highWaterMark || state.length === 0);\n}\n\nfunction addChunk(stream\x2C state\x2C chunk\x2C addToFront) {\n if (state.flowing && state.length === 0 && !state.sync &&\n stream.listenerCount('data') > 0) {\n // Use the guard to avoid creating `Set()` repeatedly\n // when we have multiple pipes.\n if (state.multiAwaitDrain) {\n state.awaitDrainWriters.clear();\n } else {\n state.awaitDrainWriters = null;\n }\n stream.emit('data'\x2C chunk);\n } else {\n // Update the buffer info.\n state.length += state.objectMode ? 1 : chunk.length;\n if (addToFront)\n state.buffer.unshift(chunk);\n else\n state.buffer.push(chunk);\n\n if (state.needReadable)\n emitReadable(stream);\n }\n maybeReadMore(stream\x2C state);\n}\n\nReadable.prototype.isPaused = function() {\n const state = this._readableState;\n return state[kPaused] === true || state.flowing === false;\n};\n\n// Backwards compatibility.\nReadable.prototype.setEncoding = function(enc) {\n const decoder = new StringDecoder(enc);\n this._readableState.decoder = decoder;\n // If setEncoding(null)\x2C decoder.encoding equals utf8.\n this._readableState.encoding = this._readableState.decoder.encoding;\n\n const buffer = this._readableState.buffer;\n // Iterate over current buffer to convert already stored Buffers:\n let content = '';\n for (const data of buffer) {\n content += decoder.write(data);\n }\n buffer.clear();\n if (content !== '')\n buffer.push(content);\n this._readableState.length = content.length;\n return this;\n};\n\n// Don't raise the hwm > 1GB.\nconst MAX_HWM = 0x40000000;\nfunction computeNewHighWaterMark(n) {\n if (n >= MAX_HWM) {\n // TODO(ronag): Throw ERR_VALUE_OUT_OF_RANGE.\n n = MAX_HWM;\n } else {\n // Get the next highest power of 2 to prevent increasing hwm excessively in\n // tiny amounts.\n n--;\n n |= n >>> 1;\n n |= n >>> 2;\n n |= n >>> 4;\n n |= n >>> 8;\n n |= n >>> 16;\n n++;\n }\n return n;\n}\n\n// This function is designed to be inlinable\x2C so please take care when making\n// changes to the function body.\nfunction howMuchToRead(n\x2C state) {\n if (n <= 0 || (state.length === 0 && state.ended))\n return 0;\n if (state.objectMode)\n return 1;\n if (NumberIsNaN(n)) {\n // Only flow one buffer at a time.\n if (state.flowing && state.length)\n return state.buffer.first().length;\n return state.length;\n }\n if (n <= state.length)\n return n;\n return state.ended ? state.length : 0;\n}\n\n// You can override either this method\x2C or the async _read(n) below.\nReadable.prototype.read = function(n) {\n debug('read'\x2C n);\n // Same as parseInt(undefined\x2C 10)\x2C however V8 7.3 performance regressed\n // in this scenario\x2C so we are doing it manually.\n if (n === undefined) {\n n = NaN;\n } else if (!NumberIsInteger(n)) {\n n = NumberParseInt(n\x2C 10);\n }\n const state = this._readableState;\n const nOrig = n;\n\n // If we're asking for more than the current hwm\x2C then raise the hwm.\n if (n > state.highWaterMark)\n state.highWaterMark = computeNewHighWaterMark(n);\n\n if (n !== 0)\n state.emittedReadable = false;\n\n // If we're doing read(0) to trigger a readable event\x2C but we\n // already have a bunch of data in the buffer\x2C then just trigger\n // the 'readable' event and move on.\n if (n === 0 &&\n state.needReadable &&\n ((state.highWaterMark !== 0 ?\n state.length >= state.highWaterMark :\n state.length > 0) ||\n state.ended)) {\n debug('read: emitReadable'\x2C state.length\x2C state.ended);\n if (state.length === 0 && state.ended)\n endReadable(this);\n else\n emitReadable(this);\n return null;\n }\n\n n = howMuchToRead(n\x2C state);\n\n // If we've ended\x2C and we're now clear\x2C then finish it up.\n if (n === 0 && state.ended) {\n if (state.length === 0)\n endReadable(this);\n return null;\n }\n\n // All the actual chunk generation logic needs to be\n // *below* the call to _read. The reason is that in certain\n // synthetic stream cases\x2C such as passthrough streams\x2C _read\n // may be a completely synchronous operation which may change\n // the state of the read buffer\x2C providing enough data when\n // before there was *not* enough.\n //\n // So\x2C the steps are:\n // 1. Figure out what the state of things will be after we do\n // a read from the buffer.\n //\n // 2. If that resulting state will trigger a _read\x2C then call _read.\n // Note that this may be asynchronous\x2C or synchronous. Yes\x2C it is\n // deeply ugly to write APIs this way\x2C but that still doesn't mean\n // that the Readable class should behave improperly\x2C as streams are\n // designed to be sync/async agnostic.\n // Take note if the _read call is sync or async (ie\x2C if the read call\n // has returned yet)\x2C so that we know whether or not it's safe to emit\n // 'readable' etc.\n //\n // 3. Actually pull the requested chunks out of the buffer and return.\n\n // if we need a readable event\x2C then we need to do some reading.\n let doRead = state.needReadable;\n debug('need readable'\x2C doRead);\n\n // If we currently have less than the highWaterMark\x2C then also read some.\n if (state.length === 0 || state.length - n < state.highWaterMark) {\n doRead = true;\n debug('length less than watermark'\x2C doRead);\n }\n\n // However\x2C if we've ended\x2C then there's no point\x2C if we're already\n // reading\x2C then it's unnecessary\x2C if we're constructing we have to wait\x2C\n // and if we're destroyed or errored\x2C then it's not allowed\x2C\n if (state.ended || state.reading || state.destroyed || state.errored ||\n !state.constructed) {\n doRead = false;\n debug('reading\x2C ended or constructing'\x2C doRead);\n } else if (doRead) {\n debug('do read');\n state.reading = true;\n state.sync = true;\n // If the length is currently zero\x2C then we *need* a readable event.\n if (state.length === 0)\n state.needReadable = true;\n\n // Call internal read method\n this._read(state.highWaterMark);\n\n state.sync = false;\n // If _read pushed data synchronously\x2C then `reading` will be false\x2C\n // and we need to re-evaluate how much data we can return to the user.\n if (!state.reading)\n n = howMuchToRead(nOrig\x2C state);\n }\n\n let ret;\n if (n > 0)\n ret = fromList(n\x2C state);\n else\n ret = null;\n\n if (ret === null) {\n state.needReadable = state.length <= state.highWaterMark;\n n = 0;\n } else {\n state.length -= n;\n if (state.multiAwaitDrain) {\n state.awaitDrainWriters.clear();\n } else {\n state.awaitDrainWriters = null;\n }\n }\n\n if (state.length === 0) {\n // If we have nothing in the buffer\x2C then we want to know\n // as soon as we *do* get something into the buffer.\n if (!state.ended)\n state.needReadable = true;\n\n // If we tried to read() past the EOF\x2C then emit end on the next tick.\n if (nOrig !== n && state.ended)\n endReadable(this);\n }\n\n if (ret !== null)\n this.emit('data'\x2C ret);\n\n return ret;\n};\n\nfunction onEofChunk(stream\x2C state) {\n debug('onEofChunk');\n if (state.ended) return;\n if (state.decoder) {\n const chunk = state.decoder.end();\n if (chunk && chunk.length) {\n state.buffer.push(chunk);\n state.length += state.objectMode ? 1 : chunk.length;\n }\n }\n state.ended = true;\n\n if (state.sync) {\n // If we are sync\x2C wait until next tick to emit the data.\n // Otherwise we risk emitting data in the flow()\n // the readable code triggers during a read() call.\n emitReadable(stream);\n } else {\n // Emit 'readable' now to make sure it gets picked up.\n state.needReadable = false;\n state.emittedReadable = true;\n // We have to emit readable now that we are EOF. Modules\n // in the ecosystem (e.g. dicer) rely on this event being sync.\n emitReadable_(stream);\n }\n}\n\n// Don't emit readable right away in sync mode\x2C because this can trigger\n// another read() call => stack overflow. This way\x2C it might trigger\n// a nextTick recursion warning\x2C but that's not so bad.\nfunction emitReadable(stream) {\n const state = stream._readableState;\n debug('emitReadable'\x2C state.needReadable\x2C state.emittedReadable);\n state.needReadable = false;\n if (!state.emittedReadable) {\n debug('emitReadable'\x2C state.flowing);\n state.emittedReadable = true;\n process.nextTick(emitReadable_\x2C stream);\n }\n}\n\nfunction emitReadable_(stream) {\n const state = stream._readableState;\n debug('emitReadable_'\x2C state.destroyed\x2C state.length\x2C state.ended);\n if (!state.destroyed && !state.errored && (state.length || state.ended)) {\n stream.emit('readable');\n state.emittedReadable = false;\n }\n\n // The stream needs another readable event if:\n // 1. It is not flowing\x2C as the flow mechanism will take\n // care of it.\n // 2. It is not ended.\n // 3. It is below the highWaterMark\x2C so we can schedule\n // another readable later.\n state.needReadable =\n !state.flowing &&\n !state.ended &&\n state.length <= state.highWaterMark;\n flow(stream);\n}\n\n\n// At this point\x2C the user has presumably seen the 'readable' event\x2C\n// and called read() to consume some data. that may have triggered\n// in turn another _read(n) call\x2C in which case reading = true if\n// it's in progress.\n// However\x2C if we're not ended\x2C or reading\x2C and the length < hwm\x2C\n// then go ahead and try to read some more preemptively.\nfunction maybeReadMore(stream\x2C state) {\n if (!state.readingMore && state.constructed) {\n state.readingMore = true;\n process.nextTick(maybeReadMore_\x2C stream\x2C state);\n }\n}\n\nfunction maybeReadMore_(stream\x2C state) {\n // Attempt to read more data if we should.\n //\n // The conditions for reading more data are (one of):\n // - Not enough data buffered (state.length < state.highWaterMark). The loop\n // is responsible for filling the buffer with enough data if such data\n // is available. If highWaterMark is 0 and we are not in the flowing mode\n // we should _not_ attempt to buffer any extra data. We'll get more data\n // when the stream consumer calls read() instead.\n // - No data in the buffer\x2C and the stream is in flowing mode. In this mode\n // the loop below is responsible for ensuring read() is called. Failing to\n // call read here would abort the flow and there's no other mechanism for\n // continuing the flow if the stream consumer has just subscribed to the\n // 'data' event.\n //\n // In addition to the above conditions to keep reading data\x2C the following\n // conditions prevent the data from being read:\n // - The stream has ended (state.ended).\n // - There is already a pending 'read' operation (state.reading). This is a\n // case where the stream has called the implementation defined _read()\n // method\x2C but they are processing the call asynchronously and have _not_\n // called push() with new data. In this case we skip performing more\n // read()s. The execution ends in this method again after the _read() ends\n // up calling push() with more data.\n while (!state.reading && !state.ended &&\n (state.length < state.highWaterMark ||\n (state.flowing && state.length === 0))) {\n const len = state.length;\n debug('maybeReadMore read 0');\n stream.read(0);\n if (len === state.length)\n // Didn't get any data\x2C stop spinning.\n break;\n }\n state.readingMore = false;\n}\n\n// Abstract method. to be overridden in specific implementation classes.\n// call cb(er\x2C data) where data is <= n in length.\n// for virtual (non-string\x2C non-buffer) streams\x2C "length" is somewhat\n// arbitrary\x2C and perhaps not very meaningful.\nReadable.prototype._read = function(n) {\n throw new ERR_METHOD_NOT_IMPLEMENTED('_read()');\n};\n\nReadable.prototype.pipe = function(dest\x2C pipeOpts) {\n const src = this;\n const state = this._readableState;\n\n if (state.pipes.length === 1) {\n if (!state.multiAwaitDrain) {\n state.multiAwaitDrain = true;\n state.awaitDrainWriters = new SafeSet(\n state.awaitDrainWriters ? [state.awaitDrainWriters] : []\n );\n }\n }\n\n state.pipes.push(dest);\n debug('pipe count=%d opts=%j'\x2C state.pipes.length\x2C pipeOpts);\n\n const doEnd = (!pipeOpts || pipeOpts.end !== false) &&\n dest !== process.stdout &&\n dest !== process.stderr;\n\n const endFn = doEnd ? onend : unpipe;\n if (state.endEmitted)\n process.nextTick(endFn);\n else\n src.once('end'\x2C endFn);\n\n dest.on('unpipe'\x2C onunpipe);\n function onunpipe(readable\x2C unpipeInfo) {\n debug('onunpipe');\n if (readable === src) {\n if (unpipeInfo && unpipeInfo.hasUnpiped === false) {\n unpipeInfo.hasUnpiped = true;\n cleanup();\n }\n }\n }\n\n function onend() {\n debug('onend');\n dest.end();\n }\n\n let ondrain;\n\n let cleanedUp = false;\n function cleanup() {\n debug('cleanup');\n // Cleanup event handlers once the pipe is broken.\n dest.removeListener('close'\x2C onclose);\n dest.removeListener('finish'\x2C onfinish);\n if (ondrain) {\n dest.removeListener('drain'\x2C ondrain);\n }\n dest.removeListener('error'\x2C onerror);\n dest.removeListener('unpipe'\x2C onunpipe);\n src.removeListener('end'\x2C onend);\n src.removeListener('end'\x2C unpipe);\n src.removeListener('data'\x2C ondata);\n\n cleanedUp = true;\n\n // If the reader is waiting for a drain event from this\n // specific writer\x2C then it would cause it to never start\n // flowing again.\n // So\x2C if this is awaiting a drain\x2C then we just call it now.\n // If we don't know\x2C then assume that we are waiting for one.\n if (ondrain && state.awaitDrainWriters &&\n (!dest._writableState || dest._writableState.needDrain))\n ondrain();\n }\n\n function pause() {\n // If the user unpiped during `dest.write()`\x2C it is possible\n // to get stuck in a permanently paused state if that write\n // also returned false.\n // => Check whether `dest` is still a piping destination.\n if (!cleanedUp) {\n if (state.pipes.length === 1 && state.pipes[0] === dest) {\n debug('false write response\x2C pause'\x2C 0);\n state.awaitDrainWriters = dest;\n state.multiAwaitDrain = false;\n } else if (state.pipes.length > 1 && state.pipes.includes(dest)) {\n debug('false write response\x2C pause'\x2C state.awaitDrainWriters.size);\n state.awaitDrainWriters.add(dest);\n }\n src.pause();\n }\n if (!ondrain) {\n // When the dest drains\x2C it reduces the awaitDrain counter\n // on the source. This would be more elegant with a .once()\n // handler in flow()\x2C but adding and removing repeatedly is\n // too slow.\n ondrain = pipeOnDrain(src\x2C dest);\n dest.on('drain'\x2C ondrain);\n }\n }\n\n src.on('data'\x2C ondata);\n function ondata(chunk) {\n debug('ondata');\n const ret = dest.write(chunk);\n debug('dest.write'\x2C ret);\n if (ret === false) {\n pause();\n }\n }\n\n // If the dest has an error\x2C then stop piping into it.\n // However\x2C don't suppress the throwing behavior for this.\n function onerror(er) {\n debug('onerror'\x2C er);\n unpipe();\n dest.removeListener('error'\x2C onerror);\n if (EE.listenerCount(dest\x2C 'error') === 0) {\n const s = dest._writableState || dest._readableState;\n if (s && !s.errorEmitted) {\n // User incorrectly emitted 'error' directly on the stream.\n errorOrDestroy(dest\x2C er);\n } else {\n dest.emit('error'\x2C er);\n }\n }\n }\n\n // Make sure our error handler is attached before userland ones.\n prependListener(dest\x2C 'error'\x2C onerror);\n\n // Both close and finish should trigger unpipe\x2C but only once.\n function onclose() {\n dest.removeListener('finish'\x2C onfinish);\n unpipe();\n }\n dest.once('close'\x2C onclose);\n function onfinish() {\n debug('onfinish');\n dest.removeListener('close'\x2C onclose);\n unpipe();\n }\n dest.once('finish'\x2C onfinish);\n\n function unpipe() {\n debug('unpipe');\n src.unpipe(dest);\n }\n\n // Tell the dest that it's being piped to.\n dest.emit('pipe'\x2C src);\n\n // Start the flow if it hasn't been started already.\n\n if (dest.writableNeedDrain === true) {\n if (state.flowing) {\n pause();\n }\n } else if (!state.flowing) {\n debug('pipe resume');\n src.resume();\n }\n\n return dest;\n};\n\nfunction pipeOnDrain(src\x2C dest) {\n return function pipeOnDrainFunctionResult() {\n const state = src._readableState;\n\n // `ondrain` will call directly\x2C\n // `this` maybe not a reference to dest\x2C\n // so we use the real dest here.\n if (state.awaitDrainWriters === dest) {\n debug('pipeOnDrain'\x2C 1);\n state.awaitDrainWriters = null;\n } else if (state.multiAwaitDrain) {\n debug('pipeOnDrain'\x2C state.awaitDrainWriters.size);\n state.awaitDrainWriters.delete(dest);\n }\n\n if ((!state.awaitDrainWriters || state.awaitDrainWriters.size === 0) &&\n EE.listenerCount(src\x2C 'data')) {\n state.flowing = true;\n flow(src);\n }\n };\n}\n\n\nReadable.prototype.unpipe = function(dest) {\n const state = this._readableState;\n const unpipeInfo = { hasUnpiped: false };\n\n // If we're not piping anywhere\x2C then do nothing.\n if (state.pipes.length === 0)\n return this;\n\n if (!dest) {\n // remove all.\n const dests = state.pipes;\n state.pipes = [];\n this.pause();\n\n for (let i = 0; i < dests.length; i++)\n dests[i].emit('unpipe'\x2C this\x2C { hasUnpiped: false });\n return this;\n }\n\n // Try to find the right one.\n const index = ArrayPrototypeIndexOf(state.pipes\x2C dest);\n if (index === -1)\n return this;\n\n state.pipes.splice(index\x2C 1);\n if (state.pipes.length === 0)\n this.pause();\n\n dest.emit('unpipe'\x2C this\x2C unpipeInfo);\n\n return this;\n};\n\n// Set up data events if they are asked for\n// Ensure readable listeners eventually get something.\nReadable.prototype.on = function(ev\x2C fn) {\n const res = Stream.prototype.on.call(this\x2C ev\x2C fn);\n const state = this._readableState;\n\n if (ev === 'data') {\n // Update readableListening so that resume() may be a no-op\n // a few lines down. This is needed to support once('readable').\n state.readableListening = this.listenerCount('readable') > 0;\n\n // Try start flowing on next tick if stream isn't explicitly paused.\n if (state.flowing !== false)\n this.resume();\n } else if (ev === 'readable') {\n if (!state.endEmitted && !state.readableListening) {\n state.readableListening = state.needReadable = true;\n state.flowing = false;\n state.emittedReadable = false;\n debug('on readable'\x2C state.length\x2C state.reading);\n if (state.length) {\n emitReadable(this);\n } else if (!state.reading) {\n process.nextTick(nReadingNextTick\x2C this);\n }\n }\n }\n\n return res;\n};\nReadable.prototype.addListener = Readable.prototype.on;\n\nReadable.prototype.removeListener = function(ev\x2C fn) {\n const res = Stream.prototype.removeListener.call(this\x2C\n ev\x2C fn);\n\n if (ev === 'readable') {\n // We need to check if there is someone still listening to\n // readable and reset the state. However this needs to happen\n // after readable has been emitted but before I/O (nextTick) to\n // support once('readable'\x2C fn) cycles. This means that calling\n // resume within the same tick will have no\n // effect.\n process.nextTick(updateReadableListening\x2C this);\n }\n\n return res;\n};\nReadable.prototype.off = Readable.prototype.removeListener;\n\nReadable.prototype.removeAllListeners = function(ev) {\n const res = Stream.prototype.removeAllListeners.apply(this\x2C\n arguments);\n\n if (ev === 'readable' || ev === undefined) {\n // We need to check if there is someone still listening to\n // readable and reset the state. However this needs to happen\n // after readable has been emitted but before I/O (nextTick) to\n // support once('readable'\x2C fn) cycles. This means that calling\n // resume within the same tick will have no\n // effect.\n process.nextTick(updateReadableListening\x2C this);\n }\n\n return res;\n};\n\nfunction updateReadableListening(self) {\n const state = self._readableState;\n state.readableListening = self.listenerCount('readable') > 0;\n\n if (state.resumeScheduled && state[kPaused] === false) {\n // Flowing needs to be set to true now\x2C otherwise\n // the upcoming resume will not flow.\n state.flowing = true;\n\n // Crude way to check if we should resume.\n } else if (self.listenerCount('data') > 0) {\n self.resume();\n } else if (!state.readableListening) {\n state.flowing = null;\n }\n}\n\nfunction nReadingNextTick(self) {\n debug('readable nexttick read 0');\n self.read(0);\n}\n\n// pause() and resume() are remnants of the legacy readable stream API\n// If the user uses them\x2C then switch into old mode.\nReadable.prototype.resume = function() {\n const state = this._readableState;\n if (!state.flowing) {\n debug('resume');\n // We flow only if there is no one listening\n // for readable\x2C but we still have to call\n // resume().\n state.flowing = !state.readableListening;\n resume(this\x2C state);\n }\n state[kPaused] = false;\n return this;\n};\n\nfunction resume(stream\x2C state) {\n if (!state.resumeScheduled) {\n state.resumeScheduled = true;\n process.nextTick(resume_\x2C stream\x2C state);\n }\n}\n\nfunction resume_(stream\x2C state) {\n debug('resume'\x2C state.reading);\n if (!state.reading) {\n stream.read(0);\n }\n\n state.resumeScheduled = false;\n stream.emit('resume');\n flow(stream);\n if (state.flowing && !state.reading)\n stream.read(0);\n}\n\nReadable.prototype.pause = function() {\n debug('call pause flowing=%j'\x2C this._readableState.flowing);\n if (this._readableState.flowing !== false) {\n debug('pause');\n this._readableState.flowing = false;\n this.emit('pause');\n }\n this._readableState[kPaused] = true;\n return this;\n};\n\nfunction flow(stream) {\n const state = stream._readableState;\n debug('flow'\x2C state.flowing);\n while (state.flowing && stream.read() !== null);\n}\n\n// Wrap an old-style stream as the async data source.\n// This is *not* part of the readable stream interface.\n// It is an ugly unfortunate mess of history.\nReadable.prototype.wrap = function(stream) {\n let paused = false;\n\n // TODO (ronag): Should this.destroy(err) emit\n // 'error' on the wrapped stream? Would require\n // a static factory method\x2C e.g. Readable.wrap(stream).\n\n stream.on('data'\x2C (chunk) => {\n if (!this.push(chunk) && stream.pause) {\n paused = true;\n stream.pause();\n }\n });\n\n stream.on('end'\x2C () => {\n this.push(null);\n });\n\n stream.on('error'\x2C (err) => {\n errorOrDestroy(this\x2C err);\n });\n\n stream.on('close'\x2C () => {\n this.destroy();\n });\n\n stream.on('destroy'\x2C () => {\n this.destroy();\n });\n\n this._read = () => {\n if (paused && stream.resume) {\n paused = false;\n stream.resume();\n }\n };\n\n // Proxy all the other methods. Important when wrapping filters and duplexes.\n const streamKeys = ObjectKeys(stream);\n for (let j = 1; j < streamKeys.length; j++) {\n const i = streamKeys[j];\n if (this[i] === undefined && typeof stream[i] === 'function') {\n this[i] = stream[i].bind(stream);\n }\n }\n\n return this;\n};\n\nReadable.prototype[SymbolAsyncIterator] = function() {\n return streamToAsyncIterator(this);\n};\n\nReadable.prototype.iterator = function(options) {\n if (options !== undefined) {\n validateObject(options\x2C 'options');\n }\n return streamToAsyncIterator(this\x2C options);\n};\n\nfunction streamToAsyncIterator(stream\x2C options) {\n if (typeof stream.read !== 'function') {\n // v1 stream\n const src = stream;\n stream = new Readable({\n objectMode: true\x2C\n destroy(err\x2C callback) {\n destroyImpl.destroyer(src\x2C err);\n callback(err);\n }\n }).wrap(src);\n }\n\n const iter = createAsyncIterator(stream\x2C options);\n iter.stream = stream;\n return iter;\n}\n\nasync function* createAsyncIterator(stream\x2C options) {\n let callback = nop;\n\n const opts = {\n destroyOnReturn: true\x2C\n destroyOnError: true\x2C\n ...options\x2C\n };\n\n function next(resolve) {\n if (this === stream) {\n callback();\n callback = nop;\n } else {\n callback = resolve;\n }\n }\n\n const state = stream._readableState;\n\n let error = state.errored;\n let errorEmitted = state.errorEmitted;\n let endEmitted = state.endEmitted;\n let closeEmitted = state.closeEmitted;\n\n stream\n .on('readable'\x2C next)\n .on('error'\x2C function(err) {\n error = err;\n errorEmitted = true;\n next.call(this);\n })\n .on('end'\x2C function() {\n endEmitted = true;\n next.call(this);\n })\n .on('close'\x2C function() {\n closeEmitted = true;\n next.call(this);\n });\n\n let errorThrown = false;\n try {\n while (true) {\n const chunk = stream.destroyed ? null : stream.read();\n if (chunk !== null) {\n yield chunk;\n } else if (errorEmitted) {\n throw error;\n } else if (endEmitted) {\n break;\n } else if (closeEmitted) {\n break;\n } else {\n await new Promise(next);\n }\n }\n } catch (err) {\n if (opts.destroyOnError) {\n destroyImpl.destroyer(stream\x2C err);\n }\n errorThrown = true;\n throw err;\n } finally {\n if (!errorThrown && opts.destroyOnReturn) {\n if (state.autoDestroy || !endEmitted) {\n // TODO(ronag): ERR_PREMATURE_CLOSE?\n destroyImpl.destroyer(stream\x2C null);\n }\n }\n }\n}\n\n// Making it explicit these properties are not enumerable\n// because otherwise some prototype manipulation in\n// userland will fail.\nObjectDefineProperties(Readable.prototype\x2C {\n readable: {\n get() {\n const r = this._readableState;\n // r.readable === false means that this is part of a Duplex stream\n // where the readable side was disabled upon construction.\n // Compat. The user might manually disable readable side through\n // deprecated setter.\n return !!r && r.readable !== false && !r.destroyed && !r.errorEmitted &&\n !r.endEmitted;\n }\x2C\n set(val) {\n // Backwards compat.\n if (this._readableState) {\n this._readableState.readable = !!val;\n }\n }\n }\x2C\n\n readableHighWaterMark: {\n enumerable: false\x2C\n get: function() {\n return this._readableState.highWaterMark;\n }\n }\x2C\n\n readableBuffer: {\n enumerable: false\x2C\n get: function() {\n return this._readableState && this._readableState.buffer;\n }\n }\x2C\n\n readableFlowing: {\n enumerable: false\x2C\n get: function() {\n return this._readableState.flowing;\n }\x2C\n set: function(state) {\n if (this._readableState) {\n this._readableState.flowing = state;\n }\n }\n }\x2C\n\n readableLength: {\n enumerable: false\x2C\n get() {\n return this._readableState.length;\n }\n }\x2C\n\n readableObjectMode: {\n enumerable: false\x2C\n get() {\n return this._readableState ? this._readableState.objectMode : false;\n }\n }\x2C\n\n readableEncoding: {\n enumerable: false\x2C\n get() {\n return this._readableState ? this._readableState.encoding : null;\n }\n }\x2C\n\n destroyed: {\n enumerable: false\x2C\n get() {\n if (this._readableState === undefined) {\n return false;\n }\n return this._readableState.destroyed;\n }\x2C\n set(value) {\n // We ignore the value if the stream\n // has not been initialized yet.\n if (!this._readableState) {\n return;\n }\n\n // Backward compatibility\x2C the user is explicitly\n // managing destroyed.\n this._readableState.destroyed = value;\n }\n }\x2C\n\n readableEnded: {\n enumerable: false\x2C\n get() {\n return this._readableState ? this._readableState.endEmitted : false;\n }\n }\x2C\n\n});\n\nObjectDefineProperties(ReadableState.prototype\x2C {\n // Legacy getter for `pipesCount`.\n pipesCount: {\n get() {\n return this.pipes.length;\n }\n }\x2C\n\n // Legacy property for `paused`.\n paused: {\n get() {\n return this[kPaused] !== false;\n }\x2C\n set(value) {\n this[kPaused] = !!value;\n }\n }\n});\n\n// Exposed for testing purposes only.\nReadable._fromList = fromList;\n\n// Pluck off n bytes from an array of buffers.\n// Length is the combined lengths of all the buffers in the list.\n// This function is designed to be inlinable\x2C so please take care when making\n// changes to the function body.\nfunction fromList(n\x2C state) {\n // nothing buffered.\n if (state.length === 0)\n return null;\n\n let ret;\n if (state.objectMode)\n ret = state.buffer.shift();\n else if (!n || n >= state.length) {\n // Read it all\x2C truncate the list.\n if (state.decoder)\n ret = state.buffer.join('');\n else if (state.buffer.length === 1)\n ret = state.buffer.first();\n else\n ret = state.buffer.concat(state.length);\n state.buffer.clear();\n } else {\n // read part of list.\n ret = state.buffer.consume(n\x2C state.decoder);\n }\n\n return ret;\n}\n\nfunction endReadable(stream) {\n const state = stream._readableState;\n\n debug('endReadable'\x2C state.endEmitted);\n if (!state.endEmitted) {\n state.ended = true;\n process.nextTick(endReadableNT\x2C state\x2C stream);\n }\n}\n\nfunction endReadableNT(state\x2C stream) {\n debug('endReadableNT'\x2C state.endEmitted\x2C state.length);\n\n // Check that we didn't get one last unshift.\n if (!state.errorEmitted && !state.closeEmitted &&\n !state.endEmitted && state.length === 0) {\n state.endEmitted = true;\n stream.emit('end');\n\n if (stream.writable && stream.allowHalfOpen === false) {\n process.nextTick(endWritableNT\x2C state\x2C stream);\n } else if (state.autoDestroy) {\n // In case of duplex streams we need a way to detect\n // if the writable side is ready for autoDestroy as well.\n const wState = stream._writableState;\n const autoDestroy = !wState || (\n wState.autoDestroy &&\n // We don't expect the writable to ever 'finish'\n // if writable is explicitly set to false.\n (wState.finished || wState.writable === false)\n );\n\n if (autoDestroy) {\n stream.destroy();\n }\n }\n }\n}\n\nfunction endWritableNT(state\x2C stream) {\n const writable = stream.writable && !stream.writableEnded &&\n !stream.destroyed;\n if (writable) {\n stream.end();\n }\n}\n\nReadable.from = function(iterable\x2C opts) {\n return from(Readable\x2C iterable\x2C opts);\n};\n
code-source-info,0xb6d535634e6,51,6217,7097,C0O6217C9O6231C16O6242C21O6268C28O6275C33O6297C34O6452C41O6468C44O6475C48O6457C52O6486C71O6508C76O6506C80O6555C84O6593C92O6620C95O6641C99O6631C103O6671C111O6701C114O6725C118O6715C122O6758C130O6790C133O6816C137O6806C141O6843C149O6854C151O6870C158O6903C166O6870C171O6925C178O6932C186O6932C192O6956C199O6968C212O6968C219O7096,,
tick,0x7f4debd44473,61705,0,0x0,3,0x11febe0,0xb6d5354c5e7,0xb6d5354b8ef,0xb6d5354b6ff,0xb6d5354b5d6,0xb6d53549f2e,0xc13800,0xb6d53549b23,0xb6d53549025,0x158e77f
tick,0x7f4debd44416,61726,0,0x0,3,0x11febe0,0xb6d5354c5e7,0xb6d5354b8ef,0xb6d5354b6ff,0xb6d5354b5d6,0xb6d53549f2e,0xc13800,0xb6d53549b23,0xb6d53549025,0x158e77f
code-creation,LazyCompile,10,61745,0xb6d535661fe,18,Stream node:internal/streams/legacy:10:16,0x3787ca785a20,~
script-source,50,node:internal/streams/legacy,'use strict';\n\nconst {\n ArrayIsArray\x2C\n ObjectSetPrototypeOf\x2C\n} = primordials;\n\nconst EE = require('events');\n\nfunction Stream(opts) {\n EE.call(this\x2C opts);\n}\nObjectSetPrototypeOf(Stream.prototype\x2C EE.prototype);\nObjectSetPrototypeOf(Stream\x2C EE);\n\nStream.prototype.pipe = function(dest\x2C options) {\n const source = this;\n\n function ondata(chunk) {\n if (dest.writable && dest.write(chunk) === false && source.pause) {\n source.pause();\n }\n }\n\n source.on('data'\x2C ondata);\n\n function ondrain() {\n if (source.readable && source.resume) {\n source.resume();\n }\n }\n\n dest.on('drain'\x2C ondrain);\n\n // If the 'end' option is not supplied\x2C dest.end() will be called when\n // source gets the 'end' or 'close' events. Only dest.end() once.\n if (!dest._isStdio && (!options || options.end !== false)) {\n source.on('end'\x2C onend);\n source.on('close'\x2C onclose);\n }\n\n let didOnEnd = false;\n function onend() {\n if (didOnEnd) return;\n didOnEnd = true;\n\n dest.end();\n }\n\n\n function onclose() {\n if (didOnEnd) return;\n didOnEnd = true;\n\n if (typeof dest.destroy === 'function') dest.destroy();\n }\n\n // Don't leave dangling pipes when there are errors.\n function onerror(er) {\n cleanup();\n if (EE.listenerCount(this\x2C 'error') === 0) {\n this.emit('error'\x2C er);\n }\n }\n\n prependListener(source\x2C 'error'\x2C onerror);\n prependListener(dest\x2C 'error'\x2C onerror);\n\n // Remove all the event listeners that were added.\n function cleanup() {\n source.removeListener('data'\x2C ondata);\n dest.removeListener('drain'\x2C ondrain);\n\n source.removeListener('end'\x2C onend);\n source.removeListener('close'\x2C onclose);\n\n source.removeListener('error'\x2C onerror);\n dest.removeListener('error'\x2C onerror);\n\n source.removeListener('end'\x2C cleanup);\n source.removeListener('close'\x2C cleanup);\n\n dest.removeListener('close'\x2C cleanup);\n }\n\n source.on('end'\x2C cleanup);\n source.on('close'\x2C cleanup);\n\n dest.on('close'\x2C cleanup);\n dest.emit('pipe'\x2C source);\n\n // Allow for unix-like usage: A.pipe(B).pipe(C)\n return dest;\n};\n\nfunction prependListener(emitter\x2C event\x2C fn) {\n // Sadly this is not cacheable as some libraries bundle their own\n // event emitter implementation with them.\n if (typeof emitter.prependListener === 'function')\n return emitter.prependListener(event\x2C fn);\n\n // This is a hack to make sure that our error handler is attached before any\n // userland ones. NEVER DO THIS. This is here only because this code needs\n // to continue to work with older versions of Node.js that do not include\n // the prependListener() method. The goal is to eventually remove this hack.\n if (!emitter._events || !emitter._events[event])\n emitter.on(event\x2C fn);\n else if (ArrayIsArray(emitter._events[event]))\n emitter._events[event].unshift(fn);\n else\n emitter._events[event] = [fn\x2C emitter._events[event]];\n}\n\nmodule.exports = { Stream\x2C prependListener };\n
code-source-info,0xb6d535661fe,50,127,160,C0O138C5O141C10O141C17O159,,
code-creation,LazyCompile,10,61898,0xb6d535666ae,21,EventEmitter node:events:87:22,0x334c17f31350,~
code-source-info,0xb6d535666ae,13,2482,2530,C0O2493C3O2506C8O2511C13O2511C20O2529,,
tick,0x7f4debe46028,62152,0,0x0,2,0x11febe0,0xb6d5356352d,0xb6d53562e92,0xb6d535629bb,0xb6d53561e5c,0xb6d5354c5e7,0xb6d5354b8ef,0xb6d5354b6ff,0xb6d5354b5d6,0xb6d53549f2e,0xc13800,0xb6d53549b23,0xb6d53549025,0x158e77f
code-creation,LazyCompile,10,62206,0xb6d53566c16,349,ReadableState node:internal/streams/readable:78:23,0x3787ca790538,~
code-source-info,0xb6d53566c16,51,2519,6197,C0O2857C6O2896C8O2925C11O2932C15O2914C20O3065C25O3086C27O3105C33O3081C37O3121C41O3162C52O3185C54O3204C60O3155C64O3370C69O3391C73O3405C88O3405C97O3478C102O3478C106O3389C110O3681C112O3699C115O3695C120O3693C124O3715C125O3727C129O3734C131O3745C135O3753C136O3766C140O3776C141O3787C145O3798C146O3814C150O3825C151O3838C155O4032C156O4049C160O4329C161O4339C165O4460C166O4478C170O4489C171O4510C175O4521C176O4544C180O4555C181O4576C185O4587C187O4592C191O4601C195O4687C196O4705C200O4776C202O4794C208O4813C214O4823C218O4791C222O4910C224O4930C230O4949C236O4961C240O4927C244O5003C245O5018C249O5271C250O5284C254O5354C255O5366C259O5470C260O5488C264O5695C269O5719C271O5738C279O5716C283O5871C284O5894C288O5904C289O5925C293O5987C294O6004C298O6016C299O6029C303O6039C304O6053C308O6063C312O6086C318O6102C320O6121C323O6143C330O6117C335O6115C339O6182C343O6172C348O6196,,
code-creation,LazyCompile,10,62297,0xb6d5356704e,98,getHighWaterMark node:internal/streams/state:19:26,0x3787ca793c10,~
script-source,53,node:internal/streams/state,'use strict';\n\nconst {\n MathFloor\x2C\n NumberIsInteger\x2C\n} = primordials;\n\nconst { ERR_INVALID_ARG_VALUE } = require('internal/errors').codes;\n\nfunction highWaterMarkFrom(options\x2C isDuplex\x2C duplexKey) {\n return options.highWaterMark != null ? options.highWaterMark :\n isDuplex ? options[duplexKey] : null;\n}\n\nfunction getDefaultHighWaterMark(objectMode) {\n return objectMode ? 16 : 16 * 1024;\n}\n\nfunction getHighWaterMark(state\x2C options\x2C duplexKey\x2C isDuplex) {\n const hwm = highWaterMarkFrom(options\x2C isDuplex\x2C duplexKey);\n if (hwm != null) {\n if (!NumberIsInteger(hwm) || hwm < 0) {\n const name = isDuplex ? `options.${duplexKey}` : 'options.highWaterMark';\n throw new ERR_INVALID_ARG_VALUE(name\x2C hwm);\n }\n return MathFloor(hwm);\n }\n\n // Default value\n return getDefaultHighWaterMark(state.objectMode);\n}\n\nmodule.exports = {\n getHighWaterMark\x2C\n getDefaultHighWaterMark\n};\n
code-source-info,0xb6d5356704e,53,424,832,C0O478C12O478C18O529C21O552C26O557C33O585C38O611C47O633C56O678C69O684C74O678C75O732C80O739C84O754C85O781C88O818C93O788C97O830,,
code-creation,LazyCompile,10,62363,0xb6d535672f6,26,highWaterMarkFrom node:internal/streams/state:10:27,0x3787ca793ab0,~
code-source-info,0xb6d535672f6,53,168,309,C0O218C7O250C15O270C19O288C25O307,,
code-creation,LazyCompile,10,62381,0xb6d535673de,13,getDefaultHighWaterMark node:internal/streams/state:15:33,0x3787ca793bc0,~
code-source-info,0xb6d535673de,53,343,397,C0O360C12O395,,
code-creation,LazyCompile,10,62411,0xb6d535674ce,17,BufferList node:internal/streams/buffer_list:14:14,0x3787ca792f90,~
script-source,52,node:internal/streams/buffer_list,'use strict';\n\nconst {\n StringPrototypeSlice\x2C\n SymbolIterator\x2C\n TypedArrayPrototypeSet\x2C\n Uint8Array\x2C\n} = primordials;\n\nconst { Buffer } = require('buffer');\nconst { inspect } = require('internal/util/inspect');\n\nmodule.exports = class BufferList {\n constructor() {\n this.head = null;\n this.tail = null;\n this.length = 0;\n }\n\n push(v) {\n const entry = { data: v\x2C next: null };\n if (this.length > 0)\n this.tail.next = entry;\n else\n this.head = entry;\n this.tail = entry;\n ++this.length;\n }\n\n unshift(v) {\n const entry = { data: v\x2C next: this.head };\n if (this.length === 0)\n this.tail = entry;\n this.head = entry;\n ++this.length;\n }\n\n shift() {\n if (this.length === 0)\n return;\n const ret = this.head.data;\n if (this.length === 1)\n this.head = this.tail = null;\n else\n this.head = this.head.next;\n --this.length;\n return ret;\n }\n\n clear() {\n this.head = this.tail = null;\n this.length = 0;\n }\n\n join(s) {\n if (this.length === 0)\n return '';\n let p = this.head;\n let ret = '' + p.data;\n while (p = p.next)\n ret += s + p.data;\n return ret;\n }\n\n concat(n) {\n if (this.length === 0)\n return Buffer.alloc(0);\n const ret = Buffer.allocUnsafe(n >>> 0);\n let p = this.head;\n let i = 0;\n while (p) {\n TypedArrayPrototypeSet(ret\x2C p.data\x2C i);\n i += p.data.length;\n p = p.next;\n }\n return ret;\n }\n\n // Consumes a specified amount of bytes or characters from the buffered data.\n consume(n\x2C hasStrings) {\n const data = this.head.data;\n if (n < data.length) {\n // `slice` is the same for buffers and strings.\n const slice = data.slice(0\x2C n);\n this.head.data = data.slice(n);\n return slice;\n }\n if (n === data.length) {\n // First chunk is a perfect match.\n return this.shift();\n }\n // Result spans more than one buffer.\n return hasStrings ? this._getString(n) : this._getBuffer(n);\n }\n\n first() {\n return this.head.data;\n }\n\n *[SymbolIterator]() {\n for (let p = this.head; p; p = p.next) {\n yield p.data;\n }\n }\n\n // Consumes a specified amount of characters from the buffered data.\n _getString(n) {\n let ret = '';\n let p = this.head;\n let c = 0;\n do {\n const str = p.data;\n if (n > str.length) {\n ret += str;\n n -= str.length;\n } else {\n if (n === str.length) {\n ret += str;\n ++c;\n if (p.next)\n this.head = p.next;\n else\n this.head = this.tail = null;\n } else {\n ret += StringPrototypeSlice(str\x2C 0\x2C n);\n this.head = p;\n p.data = StringPrototypeSlice(str\x2C n);\n }\n break;\n }\n ++c;\n } while (p = p.next);\n this.length -= c;\n return ret;\n }\n\n // Consumes a specified amount of bytes from the buffered data.\n _getBuffer(n) {\n const ret = Buffer.allocUnsafe(n);\n const retLen = n;\n let p = this.head;\n let c = 0;\n do {\n const buf = p.data;\n if (n > buf.length) {\n TypedArrayPrototypeSet(ret\x2C buf\x2C retLen - n);\n n -= buf.length;\n } else {\n if (n === buf.length) {\n TypedArrayPrototypeSet(ret\x2C buf\x2C retLen - n);\n ++c;\n if (p.next)\n this.head = p.next;\n else\n this.head = this.tail = null;\n } else {\n TypedArrayPrototypeSet(ret\x2C\n new Uint8Array(buf.buffer\x2C buf.byteOffset\x2C n)\x2C\n retLen - n);\n this.head = p;\n p.data = buf.slice(n);\n }\n break;\n }\n ++c;\n } while (p = p.next);\n this.length -= c;\n return ret;\n }\n\n // Make sure the linked list only shows the minimal necessary information.\n [inspect.custom](_\x2C options) {\n return inspect(this\x2C {\n ...options\x2C\n // Only inspect one level.\n depth: 0\x2C\n // It should not recurse.\n customInspect: false\n });\n }\n};\n
code-source-info,0xb6d535674ce,52,265,338,C0O274C1O284C5O296C6O306C10O318C11O330C16O337,,
code-creation,LazyCompile,10,62668,0xb6d53567c2e,149,EventEmitter.init node:events:197:29,0x334c17f32048,~
code-source-info,0xb6d53567c2e,13,5582,6171,C0O5603C6O5639C13O5651C16O5651C21O5677C25O5647C30O5693C32O5708C37O5708C41O5706C45O5732C46O5750C50O5788C60O5781C64O5820C71O5828C80O5855C85O5876C93O5855C98O5929C100O5934C105O5946C108O5959C113O5946C117O5944C123O6115C125O6120C131O6145C138O6155C140O6154C143O6130C148O6170,,
code-creation,LazyCompile,10,62742,0xb6d53567e6e,98,construct node:internal/streams/destroy:225:19,0x3787ca7831f0,~
script-source,46,node:internal/streams/destroy,'use strict';\n\nconst {\n aggregateTwoErrors\x2C\n codes: {\n ERR_MULTIPLE_CALLBACK\x2C\n }\x2C\n} = require('internal/errors');\nconst {\n Symbol\x2C\n} = primordials;\n\nconst kDestroy = Symbol('kDestroy');\nconst kConstruct = Symbol('kConstruct');\n\nfunction checkError(err\x2C w\x2C r) {\n if (err) {\n // Avoid V8 leak\x2C https://github.com/nodejs/node/pull/34103#issuecomment-652002364\n err.stack; // eslint-disable-line no-unused-expressions\n\n if (w && !w.errored) {\n w.errored = err;\n }\n if (r && !r.errored) {\n r.errored = err;\n }\n }\n}\n\n// Backwards compat. cb() is undocumented and unused in core but\n// unfortunately might be used by modules.\nfunction destroy(err\x2C cb) {\n const r = this._readableState;\n const w = this._writableState;\n // With duplex streams we use the writable side for state.\n const s = w || r;\n\n if ((w && w.destroyed) || (r && r.destroyed)) {\n if (typeof cb === 'function') {\n cb();\n }\n\n return this;\n }\n\n\n // We set destroyed to true before firing error callbacks in order\n // to make it re-entrance safe in case destroy() is called within callbacks\n checkError(err\x2C w\x2C r);\n\n if (w) {\n w.destroyed = true;\n }\n if (r) {\n r.destroyed = true;\n }\n\n // If still constructing then defer calling _destroy.\n if (!s.constructed) {\n this.once(kDestroy\x2C function(er) {\n _destroy(this\x2C aggregateTwoErrors(er\x2C err)\x2C cb);\n });\n } else {\n _destroy(this\x2C err\x2C cb);\n }\n\n return this;\n}\n\nfunction _destroy(self\x2C err\x2C cb) {\n let called = false;\n\n function onDestroy(err) {\n if (called) {\n return;\n }\n called = true;\n\n const r = self._readableState;\n const w = self._writableState;\n\n checkError(err\x2C w\x2C r);\n\n if (w) {\n w.closed = true;\n }\n if (r) {\n r.closed = true;\n }\n\n if (typeof cb === 'function') {\n cb(err);\n }\n\n if (err) {\n process.nextTick(emitErrorCloseNT\x2C self\x2C err);\n } else {\n process.nextTick(emitCloseNT\x2C self);\n }\n }\n try {\n const result = self._destroy(err || null\x2C onDestroy);\n if (result != null) {\n const then = result.then;\n if (typeof then === 'function') {\n then.call(\n result\x2C\n function() {\n process.nextTick(onDestroy\x2C null);\n }\x2C\n function(err) {\n process.nextTick(onDestroy\x2C err);\n });\n }\n }\n } catch (err) {\n onDestroy(err);\n }\n}\n\nfunction emitErrorCloseNT(self\x2C err) {\n emitErrorNT(self\x2C err);\n emitCloseNT(self);\n}\n\nfunction emitCloseNT(self) {\n const r = self._readableState;\n const w = self._writableState;\n\n if (w) {\n w.closeEmitted = true;\n }\n if (r) {\n r.closeEmitted = true;\n }\n\n if ((w && w.emitClose) || (r && r.emitClose)) {\n self.emit('close');\n }\n}\n\nfunction emitErrorNT(self\x2C err) {\n const r = self._readableState;\n const w = self._writableState;\n\n if ((w && w.errorEmitted) || (r && r.errorEmitted)) {\n return;\n }\n\n if (w) {\n w.errorEmitted = true;\n }\n if (r) {\n r.errorEmitted = true;\n }\n\n self.emit('error'\x2C err);\n}\n\nfunction undestroy() {\n const r = this._readableState;\n const w = this._writableState;\n\n if (r) {\n r.constructed = true;\n r.closed = false;\n r.closeEmitted = false;\n r.destroyed = false;\n r.errored = null;\n r.errorEmitted = false;\n r.reading = false;\n r.ended = false;\n r.endEmitted = false;\n }\n\n if (w) {\n w.constructed = true;\n w.destroyed = false;\n w.closed = false;\n w.closeEmitted = false;\n w.errored = null;\n w.errorEmitted = false;\n w.ended = false;\n w.ending = false;\n w.finalCalled = false;\n w.prefinished = false;\n w.finished = false;\n }\n}\n\nfunction errorOrDestroy(stream\x2C err\x2C sync) {\n // We have tests that rely on errors being emitted\n // in the same tick\x2C so changing this is semver major.\n // For now when you opt-in to autoDestroy we allow\n // the error to be emitted nextTick. In a future\n // semver major update we should change the default to this.\n\n const r = stream._readableState;\n const w = stream._writableState;\n\n if ((w && w.destroyed) || (r && r.destroyed)) {\n return this;\n }\n\n if ((r && r.autoDestroy) || (w && w.autoDestroy))\n stream.destroy(err);\n else if (err) {\n // Avoid V8 leak\x2C https://github.com/nodejs/node/pull/34103#issuecomment-652002364\n err.stack; // eslint-disable-line no-unused-expressions\n\n if (w && !w.errored) {\n w.errored = err;\n }\n if (r && !r.errored) {\n r.errored = err;\n }\n if (sync) {\n process.nextTick(emitErrorNT\x2C stream\x2C err);\n } else {\n emitErrorNT(stream\x2C err);\n }\n }\n}\n\nfunction construct(stream\x2C cb) {\n if (typeof stream._construct !== 'function') {\n return;\n }\n\n const r = stream._readableState;\n const w = stream._writableState;\n\n if (r) {\n r.constructed = false;\n }\n if (w) {\n w.constructed = false;\n }\n\n stream.once(kConstruct\x2C cb);\n\n if (stream.listenerCount(kConstruct) > 1) {\n // Duplex\n return;\n }\n\n process.nextTick(constructNT\x2C stream);\n}\n\nfunction constructNT(stream) {\n let called = false;\n\n function onConstruct(err) {\n if (called) {\n errorOrDestroy(stream\x2C err ?? new ERR_MULTIPLE_CALLBACK());\n return;\n }\n called = true;\n\n const r = stream._readableState;\n const w = stream._writableState;\n const s = w || r;\n\n if (r) {\n r.constructed = true;\n }\n if (w) {\n w.constructed = true;\n }\n\n if (s.destroyed) {\n stream.emit(kDestroy\x2C err);\n } else if (err) {\n errorOrDestroy(stream\x2C err\x2C true);\n } else {\n process.nextTick(emitConstructNT\x2C stream);\n }\n }\n\n try {\n const result = stream._construct(onConstruct);\n if (result != null) {\n const then = result.then;\n if (typeof then === 'function') {\n then.call(\n result\x2C\n function() {\n process.nextTick(onConstruct\x2C null);\n }\x2C\n function(err) {\n process.nextTick(onConstruct\x2C err);\n });\n }\n }\n } catch (err) {\n onConstruct(err);\n }\n}\n\nfunction emitConstructNT(stream) {\n stream.emit(kConstruct);\n}\n\nfunction isRequest(stream) {\n return stream && stream.setHeader && typeof stream.abort === 'function';\n}\n\n// Normalize destroy for legacy.\nfunction destroyer(stream\x2C err) {\n if (isRequest(stream)) return stream.abort();\n if (isRequest(stream.req)) return stream.req.abort();\n if (typeof stream.destroy === 'function') return stream.destroy(err);\n if (typeof stream.close === 'function') return stream.close();\n}\n\nmodule.exports = {\n construct\x2C\n destroyer\x2C\n destroy\x2C\n undestroy\x2C\n errorOrDestroy\n};\n
code-source-info,0xb6d53567e6e,46,4626,5014,C0O4661C8O4694C9O4701C10O4726C15O4761C20O4780C24O4793C25O4807C29O4822C33O4835C34O4849C38O4872C45O4877C48O4872C54O4908C61O4922C64O4908C72O4934C77O4959C78O4966C79O4974C82O4982C90O4982C97O5013,,
code-creation,LazyCompile,10,63152,0xb6d53568b26,266,Writable node:internal/streams/writable:219:18,0x3787ca79cca0,~
script-source,56,node:internal/streams/writable,// Copyright Joyent\x2C Inc. and other Node contributors.\n//\n// Permission is hereby granted\x2C free of charge\x2C to any person obtaining a\n// copy of this software and associated documentation files (the\n// "Software")\x2C to deal in the Software without restriction\x2C including\n// without limitation the rights to use\x2C copy\x2C modify\x2C merge\x2C publish\x2C\n// distribute\x2C sublicense\x2C and/or sell copies of the Software\x2C and to permit\n// persons to whom the Software is furnished to do so\x2C subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED "AS IS"\x2C WITHOUT WARRANTY OF ANY KIND\x2C EXPRESS\n// OR IMPLIED\x2C INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY\x2C FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM\x2C\n// DAMAGES OR OTHER LIABILITY\x2C WHETHER IN AN ACTION OF CONTRACT\x2C TORT OR\n// OTHERWISE\x2C ARISING FROM\x2C OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n// A bit simpler than readable streams.\n// Implement an async ._write(chunk\x2C encoding\x2C cb)\x2C and it'll handle all\n// the drain event emission and buffering.\n\n'use strict';\n\nconst {\n ArrayPrototypeSlice\x2C\n Error\x2C\n FunctionPrototypeSymbolHasInstance\x2C\n ObjectDefineProperty\x2C\n ObjectDefineProperties\x2C\n ObjectSetPrototypeOf\x2C\n StringPrototypeToLowerCase\x2C\n Symbol\x2C\n SymbolHasInstance\x2C\n} = primordials;\n\nmodule.exports = Writable;\nWritable.WritableState = WritableState;\n\nconst EE = require('events');\nconst Stream = require('internal/streams/legacy').Stream;\nconst { Buffer } = require('buffer');\nconst destroyImpl = require('internal/streams/destroy');\n\nconst {\n addAbortSignalNoValidate\x2C\n} = require('internal/streams/add-abort-signal');\n\nconst {\n getHighWaterMark\x2C\n getDefaultHighWaterMark\n} = require('internal/streams/state');\nconst {\n ERR_INVALID_ARG_TYPE\x2C\n ERR_METHOD_NOT_IMPLEMENTED\x2C\n ERR_MULTIPLE_CALLBACK\x2C\n ERR_STREAM_CANNOT_PIPE\x2C\n ERR_STREAM_DESTROYED\x2C\n ERR_STREAM_ALREADY_FINISHED\x2C\n ERR_STREAM_NULL_VALUES\x2C\n ERR_STREAM_WRITE_AFTER_END\x2C\n ERR_UNKNOWN_ENCODING\n} = require('internal/errors').codes;\n\nconst { errorOrDestroy } = destroyImpl;\n\nObjectSetPrototypeOf(Writable.prototype\x2C Stream.prototype);\nObjectSetPrototypeOf(Writable\x2C Stream);\n\nfunction nop() {}\n\nconst kOnFinished = Symbol('kOnFinished');\n\nfunction WritableState(options\x2C stream\x2C isDuplex) {\n // Duplex streams are both readable and writable\x2C but share\n // the same options object.\n // However\x2C some cases require setting options to different\n // values for the readable and the writable sides of the duplex stream\x2C\n // e.g. options.readableObjectMode vs. options.writableObjectMode\x2C etc.\n if (typeof isDuplex !== 'boolean')\n isDuplex = stream instanceof Stream.Duplex;\n\n // Object stream flag to indicate whether or not this stream\n // contains buffers or objects.\n this.objectMode = !!(options && options.objectMode);\n\n if (isDuplex)\n this.objectMode = this.objectMode ||\n !!(options && options.writableObjectMode);\n\n // The point at which write() starts returning false\n // Note: 0 is a valid value\x2C means that we always return false if\n // the entire buffer is not flushed immediately on write().\n this.highWaterMark = options ?\n getHighWaterMark(this\x2C options\x2C 'writableHighWaterMark'\x2C isDuplex) :\n getDefaultHighWaterMark(false);\n\n // if _final has been called.\n this.finalCalled = false;\n\n // drain event flag.\n this.needDrain = false;\n // At the start of calling end()\n this.ending = false;\n // When end() has been called\x2C and returned.\n this.ended = false;\n // When 'finish' is emitted.\n this.finished = false;\n\n // Has it been destroyed\n this.destroyed = false;\n\n // Should we decode strings into buffers before passing to _write?\n // this is here so that some node-core streams can optimize string\n // handling at a lower level.\n const noDecode = !!(options && options.decodeStrings === false);\n this.decodeStrings = !noDecode;\n\n // Crypto is kind of old and crusty. Historically\x2C its default string\n // encoding is 'binary' so we have to make this configurable.\n // Everything else in the universe uses 'utf8'\x2C though.\n this.defaultEncoding = (options && options.defaultEncoding) || 'utf8';\n\n // Not an actual buffer we keep track of\x2C but a measurement\n // of how much we're waiting to get pushed to some underlying\n // socket or file.\n this.length = 0;\n\n // A flag to see when we're in the middle of a write.\n this.writing = false;\n\n // When true all writes will be buffered until .uncork() call.\n this.corked = 0;\n\n // A flag to be able to tell if the onwrite cb is called immediately\x2C\n // or on a later tick. We set this to true at first\x2C because any\n // actions that shouldn't happen until "later" should generally also\n // not happen before the first write call.\n this.sync = true;\n\n // A flag to know if we're processing previously buffered items\x2C which\n // may call the _write() callback in the same tick\x2C so that we don't\n // end up in an overlapped onwrite situation.\n this.bufferProcessing = false;\n\n // The callback that's passed to _write(chunk\x2C cb).\n this.onwrite = onwrite.bind(undefined\x2C stream);\n\n // The callback that the user supplies to write(chunk\x2C encoding\x2C cb).\n this.writecb = null;\n\n // The amount that is being written when _write is called.\n this.writelen = 0;\n\n // Storage for data passed to the afterWrite() callback in case of\n // synchronous _write() completion.\n this.afterWriteTickInfo = null;\n\n resetBuffer(this);\n\n // Number of pending user-supplied write callbacks\n // this must be 0 before 'finish' can be emitted.\n this.pendingcb = 0;\n\n // Stream is still being constructed and cannot be\n // destroyed until construction finished or failed.\n // Async construction is opt in\x2C therefore we start as\n // constructed.\n this.constructed = true;\n\n // Emit prefinish if the only thing we're waiting for is _write cbs\n // This is relevant for synchronous Transform streams.\n this.prefinished = false;\n\n // True if the error was already emitted and should not be thrown again.\n this.errorEmitted = false;\n\n // Should close be emitted on destroy. Defaults to true.\n this.emitClose = !options || options.emitClose !== false;\n\n // Should .destroy() be called after 'finish' (and potentially 'end').\n this.autoDestroy = !options || options.autoDestroy !== false;\n\n // Indicates whether the stream has errored. When true all write() calls\n // should return false. This is needed since when autoDestroy\n // is disabled we need a way to tell whether the stream has failed.\n this.errored = null;\n\n // Indicates whether the stream has finished destroying.\n this.closed = false;\n\n // True if close has been emitted or would have been emitted\n // depending on emitClose.\n this.closeEmitted = false;\n\n this[kOnFinished] = [];\n}\n\nfunction resetBuffer(state) {\n state.buffered = [];\n state.bufferedIndex = 0;\n state.allBuffers = true;\n state.allNoop = true;\n}\n\nWritableState.prototype.getBuffer = function getBuffer() {\n return ArrayPrototypeSlice(this.buffered\x2C this.bufferedIndex);\n};\n\nObjectDefineProperty(WritableState.prototype\x2C 'bufferedRequestCount'\x2C {\n get() {\n return this.buffered.length - this.bufferedIndex;\n }\n});\n\nfunction Writable(options) {\n // Writable ctor is applied to Duplexes\x2C too.\n // `realHasInstance` is necessary because using plain `instanceof`\n // would return false\x2C as no `_writableState` property is attached.\n\n // Trying to use the custom `instanceof` for Writable here will also break the\n // Node.js LazyTransform implementation\x2C which has a non-trivial getter for\n // `_writableState` that would lead to infinite recursion.\n\n // Checking for a Stream.Duplex instance is faster here instead of inside\n // the WritableState constructor\x2C at least with V8 6.5.\n const isDuplex = (this instanceof Stream.Duplex);\n\n if (!isDuplex && !FunctionPrototypeSymbolHasInstance(Writable\x2C this))\n return new Writable(options);\n\n this._writableState = new WritableState(options\x2C this\x2C isDuplex);\n\n if (options) {\n if (typeof options.write === 'function')\n this._write = options.write;\n\n if (typeof options.writev === 'function')\n this._writev = options.writev;\n\n if (typeof options.destroy === 'function')\n this._destroy = options.destroy;\n\n if (typeof options.final === 'function')\n this._final = options.final;\n\n if (typeof options.construct === 'function')\n this._construct = options.construct;\n if (options.signal)\n addAbortSignalNoValidate(options.signal\x2C this);\n }\n\n Stream.call(this\x2C options);\n\n destroyImpl.construct(this\x2C () => {\n const state = this._writableState;\n\n if (!state.writing) {\n clearBuffer(this\x2C state);\n }\n\n finishMaybe(this\x2C state);\n });\n}\n\nObjectDefineProperty(Writable\x2C SymbolHasInstance\x2C {\n value: function(object) {\n if (FunctionPrototypeSymbolHasInstance(this\x2C object)) return true;\n if (this !== Writable) return false;\n\n return object && object._writableState instanceof WritableState;\n }\x2C\n});\n\n// Otherwise people can pipe Writable streams\x2C which is just wrong.\nWritable.prototype.pipe = function() {\n errorOrDestroy(this\x2C new ERR_STREAM_CANNOT_PIPE());\n};\n\nfunction _write(stream\x2C chunk\x2C encoding\x2C cb) {\n const state = stream._writableState;\n\n if (typeof encoding === 'function') {\n cb = encoding;\n encoding = state.defaultEncoding;\n } else {\n if (!encoding)\n encoding = state.defaultEncoding;\n else if (encoding !== 'buffer' && !Buffer.isEncoding(encoding))\n throw new ERR_UNKNOWN_ENCODING(encoding);\n if (typeof cb !== 'function')\n cb = nop;\n }\n\n if (chunk === null) {\n throw new ERR_STREAM_NULL_VALUES();\n } else if (!state.objectMode) {\n if (typeof chunk === 'string') {\n if (state.decodeStrings !== false) {\n chunk = Buffer.from(chunk\x2C encoding);\n encoding = 'buffer';\n }\n } else if (chunk instanceof Buffer) {\n encoding = 'buffer';\n } else if (Stream._isUint8Array(chunk)) {\n chunk = Stream._uint8ArrayToBuffer(chunk);\n encoding = 'buffer';\n } else {\n throw new ERR_INVALID_ARG_TYPE(\n 'chunk'\x2C ['string'\x2C 'Buffer'\x2C 'Uint8Array']\x2C chunk);\n }\n }\n\n let err;\n if (state.ending) {\n err = new ERR_STREAM_WRITE_AFTER_END();\n } else if (state.destroyed) {\n err = new ERR_STREAM_DESTROYED('write');\n }\n\n if (err) {\n process.nextTick(cb\x2C err);\n errorOrDestroy(stream\x2C err\x2C true);\n return err;\n }\n state.pendingcb++;\n return writeOrBuffer(stream\x2C state\x2C chunk\x2C encoding\x2C cb);\n}\n\nWritable.prototype.write = function(chunk\x2C encoding\x2C cb) {\n return _write(this\x2C chunk\x2C encoding\x2C cb) === true;\n};\n\nWritable.prototype.cork = function() {\n this._writableState.corked++;\n};\n\nWritable.prototype.uncork = function() {\n const state = this._writableState;\n\n if (state.corked) {\n state.corked--;\n\n if (!state.writing)\n clearBuffer(this\x2C state);\n }\n};\n\nWritable.prototype.setDefaultEncoding = function setDefaultEncoding(encoding) {\n // node::ParseEncoding() requires lower case.\n if (typeof encoding === 'string')\n encoding = StringPrototypeToLowerCase(encoding);\n if (!Buffer.isEncoding(encoding))\n throw new ERR_UNKNOWN_ENCODING(encoding);\n this._writableState.defaultEncoding = encoding;\n return this;\n};\n\n// If we're already writing something\x2C then just put this\n// in the queue\x2C and wait our turn. Otherwise\x2C call _write\n// If we return false\x2C then we need a drain event\x2C so set that flag.\nfunction writeOrBuffer(stream\x2C state\x2C chunk\x2C encoding\x2C callback) {\n const len = state.objectMode ? 1 : chunk.length;\n\n state.length += len;\n\n // stream._write resets state.length\n const ret = state.length < state.highWaterMark;\n // We must ensure that previous needDrain will not be reset to false.\n if (!ret)\n state.needDrain = true;\n\n if (state.writing || state.corked || state.errored || !state.constructed) {\n state.buffered.push({ chunk\x2C encoding\x2C callback });\n if (state.allBuffers && encoding !== 'buffer') {\n state.allBuffers = false;\n }\n if (state.allNoop && callback !== nop) {\n state.allNoop = false;\n }\n } else {\n state.writelen = len;\n state.writecb = callback;\n state.writing = true;\n state.sync = true;\n stream._write(chunk\x2C encoding\x2C state.onwrite);\n state.sync = false;\n }\n\n // Return false if errored or destroyed in order to break\n // any synchronous while(stream.write(data)) loops.\n return ret && !state.errored && !state.destroyed;\n}\n\nfunction doWrite(stream\x2C state\x2C writev\x2C len\x2C chunk\x2C encoding\x2C cb) {\n state.writelen = len;\n state.writecb = cb;\n state.writing = true;\n state.sync = true;\n if (state.destroyed)\n state.onwrite(new ERR_STREAM_DESTROYED('write'));\n else if (writev)\n stream._writev(chunk\x2C state.onwrite);\n else\n stream._write(chunk\x2C encoding\x2C state.onwrite);\n state.sync = false;\n}\n\nfunction onwriteError(stream\x2C state\x2C er\x2C cb) {\n --state.pendingcb;\n\n cb(er);\n // Ensure callbacks are invoked even when autoDestroy is\n // not enabled. Passing `er` here doesn't make sense since\n // it's related to one specific write\x2C not to the buffered\n // writes.\n errorBuffer(state);\n // This can emit error\x2C but error must always follow cb.\n errorOrDestroy(stream\x2C er);\n}\n\nfunction onwrite(stream\x2C er) {\n const state = stream._writableState;\n const sync = state.sync;\n const cb = state.writecb;\n\n if (typeof cb !== 'function') {\n errorOrDestroy(stream\x2C new ERR_MULTIPLE_CALLBACK());\n return;\n }\n\n state.writing = false;\n state.writecb = null;\n state.length -= state.writelen;\n state.writelen = 0;\n\n if (er) {\n // Avoid V8 leak\x2C https://github.com/nodejs/node/pull/34103#issuecomment-652002364\n er.stack; // eslint-disable-line no-unused-expressions\n\n if (!state.errored) {\n state.errored = er;\n }\n\n // In case of duplex streams we need to notify the readable side of the\n // error.\n if (stream._readableState && !stream._readableState.errored) {\n stream._readableState.errored = er;\n }\n\n if (sync) {\n process.nextTick(onwriteError\x2C stream\x2C state\x2C er\x2C cb);\n } else {\n onwriteError(stream\x2C state\x2C er\x2C cb);\n }\n } else {\n if (state.buffered.length > state.bufferedIndex) {\n clearBuffer(stream\x2C state);\n }\n\n if (sync) {\n // It is a common case that the callback passed to .write() is always\n // the same. In that case\x2C we do not schedule a new nextTick()\x2C but\n // rather just increase a counter\x2C to improve performance and avoid\n // memory allocations.\n if (state.afterWriteTickInfo !== null &&\n state.afterWriteTickInfo.cb === cb) {\n state.afterWriteTickInfo.count++;\n } else {\n state.afterWriteTickInfo = { count: 1\x2C cb\x2C stream\x2C state };\n process.nextTick(afterWriteTick\x2C state.afterWriteTickInfo);\n }\n } else {\n afterWrite(stream\x2C state\x2C 1\x2C cb);\n }\n }\n}\n\nfunction afterWriteTick({ stream\x2C state\x2C count\x2C cb }) {\n state.afterWriteTickInfo = null;\n return afterWrite(stream\x2C state\x2C count\x2C cb);\n}\n\nfunction afterWrite(stream\x2C state\x2C count\x2C cb) {\n const needDrain = !state.ending && !stream.destroyed && state.length === 0 &&\n state.needDrain;\n if (needDrain) {\n state.needDrain = false;\n stream.emit('drain');\n }\n\n while (count-- > 0) {\n state.pendingcb--;\n cb();\n }\n\n if (state.destroyed) {\n errorBuffer(state);\n }\n\n finishMaybe(stream\x2C state);\n}\n\n// If there's something in the buffer waiting\x2C then invoke callbacks.\nfunction errorBuffer(state) {\n if (state.writing) {\n return;\n }\n\n for (let n = state.bufferedIndex; n < state.buffered.length; ++n) {\n const { chunk\x2C callback } = state.buffered[n];\n const len = state.objectMode ? 1 : chunk.length;\n state.length -= len;\n callback(new ERR_STREAM_DESTROYED('write'));\n }\n\n const onfinishCallbacks = state[kOnFinished].splice(0);\n for (let i = 0; i < onfinishCallbacks.length; i++) {\n onfinishCallbacks[i](new ERR_STREAM_DESTROYED('end'));\n }\n\n resetBuffer(state);\n}\n\n// If there's something in the buffer waiting\x2C then process it.\nfunction clearBuffer(stream\x2C state) {\n if (state.corked ||\n state.bufferProcessing ||\n state.destroyed ||\n !state.constructed) {\n return;\n }\n\n const { buffered\x2C bufferedIndex\x2C objectMode } = state;\n const bufferedLength = buffered.length - bufferedIndex;\n\n if (!bufferedLength) {\n return;\n }\n\n let i = bufferedIndex;\n\n state.bufferProcessing = true;\n if (bufferedLength > 1 && stream._writev) {\n state.pendingcb -= bufferedLength - 1;\n\n const callback = state.allNoop ? nop : (err) => {\n for (let n = i; n < buffered.length; ++n) {\n buffered[n].callback(err);\n }\n };\n // Make a copy of `buffered` if it's going to be used by `callback` above\x2C\n // since `doWrite` will mutate the array.\n const chunks = state.allNoop && i === 0 ?\n buffered : ArrayPrototypeSlice(buffered\x2C i);\n chunks.allBuffers = state.allBuffers;\n\n doWrite(stream\x2C state\x2C true\x2C state.length\x2C chunks\x2C ''\x2C callback);\n\n resetBuffer(state);\n } else {\n do {\n const { chunk\x2C encoding\x2C callback } = buffered[i];\n buffered[i++] = null;\n const len = objectMode ? 1 : chunk.length;\n doWrite(stream\x2C state\x2C false\x2C len\x2C chunk\x2C encoding\x2C callback);\n } while (i < buffered.length && !state.writing);\n\n if (i === buffered.length) {\n resetBuffer(state);\n } else if (i > 256) {\n buffered.splice(0\x2C i);\n state.bufferedIndex = 0;\n } else {\n state.bufferedIndex = i;\n }\n }\n state.bufferProcessing = false;\n}\n\nWritable.prototype._write = function(chunk\x2C encoding\x2C cb) {\n if (this._writev) {\n this._writev([{ chunk\x2C encoding }]\x2C cb);\n } else {\n throw new ERR_METHOD_NOT_IMPLEMENTED('_write()');\n }\n};\n\nWritable.prototype._writev = null;\n\nWritable.prototype.end = function(chunk\x2C encoding\x2C cb) {\n const state = this._writableState;\n\n if (typeof chunk === 'function') {\n cb = chunk;\n chunk = null;\n encoding = null;\n } else if (typeof encoding === 'function') {\n cb = encoding;\n encoding = null;\n }\n\n let err;\n\n if (chunk !== null && chunk !== undefined) {\n const ret = _write(this\x2C chunk\x2C encoding);\n if (ret instanceof Error) {\n err = ret;\n }\n }\n\n // .end() fully uncorks.\n if (state.corked) {\n state.corked = 1;\n this.uncork();\n }\n\n if (err) {\n // Do nothing...\n } else if (!state.errored && !state.ending) {\n // This is forgiving in terms of unnecessary calls to end() and can hide\n // logic errors. However\x2C usually such errors are harmless and causing a\n // hard error can be disproportionately destructive. It is not always\n // trivial for the user to determine whether end() needs to be called\n // or not.\n\n state.ending = true;\n finishMaybe(this\x2C state\x2C true);\n state.ended = true;\n } else if (state.finished) {\n err = new ERR_STREAM_ALREADY_FINISHED('end');\n } else if (state.destroyed) {\n err = new ERR_STREAM_DESTROYED('end');\n }\n\n if (typeof cb === 'function') {\n if (err || state.finished) {\n process.nextTick(cb\x2C err);\n } else {\n state[kOnFinished].push(cb);\n }\n }\n\n return this;\n};\n\nfunction needFinish(state) {\n return (state.ending &&\n state.constructed &&\n state.length === 0 &&\n !state.errored &&\n state.buffered.length === 0 &&\n !state.finished &&\n !state.writing &&\n !state.errorEmitted &&\n !state.closeEmitted);\n}\n\nfunction callFinal(stream\x2C state) {\n let called = false;\n\n function onFinish(err) {\n if (called) {\n errorOrDestroy(stream\x2C err ?? ERR_MULTIPLE_CALLBACK());\n return;\n }\n called = true;\n\n state.pendingcb--;\n if (err) {\n const onfinishCallbacks = state[kOnFinished].splice(0);\n for (let i = 0; i < onfinishCallbacks.length; i++) {\n onfinishCallbacks[i](err);\n }\n errorOrDestroy(stream\x2C err\x2C state.sync);\n } else if (needFinish(state)) {\n state.prefinished = true;\n stream.emit('prefinish');\n // Backwards compat. Don't check state.sync here.\n // Some streams assume 'finish' will be emitted\n // asynchronously relative to _final callback.\n state.pendingcb++;\n process.nextTick(finish\x2C stream\x2C state);\n }\n }\n\n state.sync = true;\n state.pendingcb++;\n\n try {\n const result = stream._final(onFinish);\n if (result != null) {\n const then = result.then;\n if (typeof then === 'function') {\n then.call(\n result\x2C\n function() {\n process.nextTick(onFinish\x2C null);\n }\x2C\n function(err) {\n process.nextTick(onFinish\x2C err);\n });\n }\n }\n } catch (err) {\n onFinish(stream\x2C state\x2C err);\n }\n\n state.sync = false;\n}\n\nfunction prefinish(stream\x2C state) {\n if (!state.prefinished && !state.finalCalled) {\n if (typeof stream._final === 'function' && !state.destroyed) {\n state.finalCalled = true;\n callFinal(stream\x2C state);\n } else {\n state.prefinished = true;\n stream.emit('prefinish');\n }\n }\n}\n\nfunction finishMaybe(stream\x2C state\x2C sync) {\n if (needFinish(state)) {\n prefinish(stream\x2C state);\n if (state.pendingcb === 0 && needFinish(state)) {\n state.pendingcb++;\n if (sync) {\n process.nextTick(finish\x2C stream\x2C state);\n } else {\n finish(stream\x2C state);\n }\n }\n }\n}\n\nfunction finish(stream\x2C state) {\n state.pendingcb--;\n state.finished = true;\n\n const onfinishCallbacks = state[kOnFinished].splice(0);\n for (let i = 0; i < onfinishCallbacks.length; i++) {\n onfinishCallbacks[i]();\n }\n\n stream.emit('finish');\n\n if (state.autoDestroy) {\n // In case of duplex streams we need a way to detect\n // if the readable side is ready for autoDestroy as well.\n const rState = stream._readableState;\n const autoDestroy = !rState || (\n rState.autoDestroy &&\n // We don't expect the readable to ever 'end'\n // if readable is explicitly set to false.\n (rState.endEmitted || rState.readable === false)\n );\n if (autoDestroy) {\n stream.destroy();\n }\n }\n}\n\nObjectDefineProperties(Writable.prototype\x2C {\n\n destroyed: {\n get() {\n return this._writableState ? this._writableState.destroyed : false;\n }\x2C\n set(value) {\n // Backward compatibility\x2C the user is explicitly managing destroyed.\n if (this._writableState) {\n this._writableState.destroyed = value;\n }\n }\n }\x2C\n\n writable: {\n get() {\n const w = this._writableState;\n // w.writable === false means that this is part of a Duplex stream\n // where the writable side was disabled upon construction.\n // Compat. The user might manually disable writable side through\n // deprecated setter.\n return !!w && w.writable !== false && !w.destroyed && !w.errored &&\n !w.ending && !w.ended;\n }\x2C\n set(val) {\n // Backwards compatible.\n if (this._writableState) {\n this._writableState.writable = !!val;\n }\n }\n }\x2C\n\n writableFinished: {\n get() {\n return this._writableState ? this._writableState.finished : false;\n }\n }\x2C\n\n writableObjectMode: {\n get() {\n return this._writableState ? this._writableState.objectMode : false;\n }\n }\x2C\n\n writableBuffer: {\n get() {\n return this._writableState && this._writableState.getBuffer();\n }\n }\x2C\n\n writableEnded: {\n get() {\n return this._writableState ? this._writableState.ending : false;\n }\n }\x2C\n\n writableNeedDrain: {\n get() {\n const wState = this._writableState;\n if (!wState) return false;\n return !wState.destroyed && !wState.ending && wState.needDrain;\n }\n }\x2C\n\n writableHighWaterMark: {\n get() {\n return this._writableState && this._writableState.highWaterMark;\n }\n }\x2C\n\n writableCorked: {\n get() {\n return this._writableState ? this._writableState.corked : 0;\n }\n }\x2C\n\n writableLength: {\n get() {\n return this._writableState && this._writableState.length;\n }\n }\n});\n\nconst destroy = destroyImpl.destroy;\nWritable.prototype.destroy = function(err\x2C cb) {\n const state = this._writableState;\n\n // Invoke pending callbacks.\n if (!state.destroyed &&\n (state.bufferedIndex < state.buffered.length ||\n state[kOnFinished].length)) {\n process.nextTick(errorBuffer\x2C state);\n }\n\n destroy.call(this\x2C err\x2C cb);\n return this;\n};\n\nWritable.prototype._undestroy = destroyImpl.undestroy;\nWritable.prototype._destroy = function(err\x2C cb) {\n cb(err);\n};\n\nWritable.prototype[EE.captureRejectionSymbol] = function(err) {\n this.destroy(err);\n};\n
code-source-info,0xb6d53568b26,56,7409,8929,C0O7409C9O7983C16O8000C19O8007C23O7989C27O8019C33O8037C44O8037C51O8093C58O8100C63O8122C64O8126C83O8148C88O8146C92O8195C96O8233C104O8261C107O8283C111O8273C115O8314C123O8343C126O8366C130O8356C134O8398C142O8428C145O8452C149O8442C153O8485C161O8513C164O8535C168O8525C172O8566C180O8598C183O8624C187O8614C191O8651C197O8665C204O8698C212O8665C217O8720C224O8727C232O8727C238O8751C245O8763C258O8763C265O8928,,
tick,0x7f4debdcf2cf,64216,0,0x0,3,0x11e9ce0,0xb6d53562ea2,0xb6d535629bb,0xb6d53561e5c,0xb6d5354c5e7,0xb6d5354b8ef,0xb6d5354b6ff,0xb6d5354b5d6,0xb6d53549f2e,0xc13800,0xb6d53549b23,0xb6d53549025,0x158e77f
tick,0x7f4debe460a0,64261,0,0x0,2,0x11febe0,0xb6d53568b79,0xb6d53562ea2,0xb6d535629bb,0xb6d53561e5c,0xb6d5354c5e7,0xb6d5354b8ef,0xb6d5354b6ff,0xb6d5354b5d6,0xb6d53549f2e,0xc13800,0xb6d53549b23,0xb6d53549025,0x158e77f
code-creation,LazyCompile,10,64333,0xb6d5356ab86,341,WritableState node:internal/streams/writable:77:23,0x3787ca79cb40,~
code-source-info,0xb6d5356ab86,56,2482,6983,C0O2816C6O2855C8O2884C11O2891C15O2873C20O2999C25O3020C27O3039C33O3015C37O3055C41O3096C52O3119C54O3138C60O3089C64O3347C69O3368C73O3382C88O3382C97O3455C102O3455C106O3366C110O3522C111O3539C115O3574C116O3589C120O3635C121O3647C125O3705C126O3716C130O3758C131O3772C135O3811C136O3826C140O4025C144O4047C150O4061C156O4075C158O4097C159O4094C163O4305C168O4329C170O4348C178O4326C182O4526C183O4538C187O4602C188O4615C192O4692C193O4704C197O4968C198O4978C202O5181C203O5203C207O5269C210O5292C217O5292C223O5282C227O5392C228O5405C232O5477C233O5491C237O5606C238O5630C242O5641C245O5641C249O5768C250O5783C254O5973C255O5990C259O6128C260O6145C264O6232C265O6250C269O6321C271O6339C277O6358C283O6368C287O6336C291O6455C293O6475C299O6494C305O6506C309O6472C313O6729C314O6742C318O6812C319O6824C323O6928C324O6946C328O6958C330O6963C335O6976C340O6982,,
code-creation,LazyCompile,10,64423,0xb6d5356afa6,23,resetBuffer node:internal/streams/writable:202:21,0x3787ca79cb90,~
code-source-info,0xb6d5356afa6,56,7005,7117,C0O7017C2O7032C6O7040C7O7060C11O7067C12O7084C16O7094C17O7108C22O7116,,
code-creation,LazyCompile,10,64481,0xb6d5356b0be,21,set node:internal/streams/readable:1178:8,0x3787ca791530,~
code-source-info,0xb6d5356b0be,51,35898,36025,C0O35948C6O35979C13O36007C15O36003C20O36024,,
code-creation,LazyCompile,10,64511,0xb6d5356b1c6,14,set node:net:1688:6,0xb6d53551980,~
code-source-info,0xb6d5356b1c6,115,45020,45053,C0O45026C2O45038C7O45047C13O45051,,
code-creation,LazyCompile,10,64531,0xb6d5356b2c6,8,get node:net:1687:6,0xb6d53551930,~
code-source-info,0xb6d5356b2c6,115,44985,45013,C0O44990C2O45002C4O45001C7O45011,,
code-creation,LazyCompile,10,64553,0xb6d5356b3be,32,getNewAsyncId node:net:156:23,0xb6d5354f990,~
code-source-info,0xb6d5356b3be,115,3982,4098,C0O3995C4O4028C14O4061C17O4061C22O4083C27O4083C31O4096,,
code-creation,LazyCompile,10,64615,0xb6d5356b59e,196,Readable.on node:internal/streams/readable:870:33,0x3787ca790e68,~
code-source-info,0xb6d5356b59e,51,27678,28577,C0O27703C5O27710C10O27720C15O27723C29O27723C35O27764C40O27783C42O27790C47O27972C55O27972C62O27998C65O27965C69O28091C75O28099C80O28121C85O28121C91O28140C93O28147C98O28180C104O28201C110O28228C112O28273C118O28252C122O28287C123O28301C127O28316C128O28338C132O28353C140O28380C145O28394C150O28353C155O28420C161O28438C164O28438C170O28482C176O28501C179O28509C187O28509C193O28564C195O28575,,
code-creation,LazyCompile,10,64674,0xb6d5356b826,135,initSocketHandle node:net:254:26,0xb6d5354fb20,~
code-source-info,0xb6d5356b826,115,6321,6899,C0O6337C5O6337C9O6353C10O6368C14O6454C20O6474C27O6482C32O6496C36O6513C43O6530C45O6528C49O6548C51O6553C57O6591C62O6572C66O6570C70O6620C72O6625C74O6624C78O6639C80O6675C82O6680C84O6679C88O6699C90O6740C94O6758C99O6763C105O6796C106O6803C107O6812C109O6817C114O6826C118O6856C123O6864C128O6864C134O6898,,
code-creation,LazyCompile,10,64717,0xb6d5356ba66,120,undestroy node:internal/streams/destroy:160:19,0x3787ca783130,~
code-source-info,0xb6d5356ba66,46,3064,3661,C0O3086C5O3119C10O3138C14O3151C15O3165C19O3177C20O3186C24O3199C25O3214C29O3227C30O3239C34O3252C35O3262C39O3274C40O3289C44O3302C45O3312C49O3325C50O3333C54O3346C55O3359C59O3375C63O3388C64O3402C68O3414C69O3426C73O3439C74O3448C78O3461C79O3476C83O3489C84O3499C88O3511C89O3526C93O3539C94O3547C98O3560C99O3569C103O3582C104O3596C108O3609C109O3623C113O3636C114O3647C119O3660,,
code-creation,LazyCompile,10,64919,0xb6d5356c3ae,96,value node:internal/console/constructor:303:20,0x1eac91c07660,~
code-source-info,0xb6d5356c3ae,30,9207,9689,C0O9236C2O9241C4O9240C8O9260C10O9270C15O9307C21O9342C29O9392C34O9392C41O9408C48O9452C53O9463C58O9463C64O9480C66O9515C72O9549C74O9564C78O9591C80O9606C81O9622C87O9637C93O9660C95O9683,,
code-creation,LazyCompile,10,65062,0xb6d5356ca5e,636,getColorDepth node:internal/tty:109:23,0xb6d53560c48,~
code-source-info,0xb6d5356ca5e,118,3209,6068,C7O3224C16O3364C22O3409C64O3482C67O3482C71O3520C75O3537C76O3562C79O3562C83O3600C87O3618C88O3643C91O3643C95O3681C99O3699C100O3723C104O3739C105O3761C111O3843C117O4073C124O4078C129O4096C133O4112C134O4120C137O4132C144O4141C149O4202C155O4259C161O4259C166O4247C171O4280C176O4313C183O4292C191O4290C197O4512C203O4526C206O4516C211O4530C216O4559C223O4569C226O4559C229O4580C233O4590C238O4608C242O4626C243O4633C247O4643C252O4661C256O4679C257O4691C261O4708C262O4724C268O4736C272O4754C273O4770C279O4780C284O4793C294O4814C304O4835C314O4863C319O4877C326O4885C331O4909C335O4927C336O4938C340O4954C341O4962C346O4985C351O4999C361O5063C366O5006C375O5089C381O5101C383O5110C384O5130C419O5183C427O5215C435O5251C440O5215C447O5291C451O5309C452O5324C456O5342C457O5391C461O5409C462O5443C466O5461C467O5477C474O5487C479O5510C486O5520C491O5539C495O5557C496O5573C509O5585C521O5627C526O5589C533O5642C539O5660C540O5688C547O5719C552O5688C556O5688C558O5731C567O5744C572O5763C581O5779C584O5789C585O5800C596O5823C604O5804C611O5924C617O5941C620O6009C626O6026C630O6043C631O6050C635O6066,,
code-creation,LazyCompile,10,65369,0xb6d5356d6d6,49,formatWithOptions node:internal/util/inspect:1881:27,0x38b4b3b15ea8,~
script-source,14,node:internal/util/inspect,'use strict';\n\nconst {\n Array\x2C\n ArrayIsArray\x2C\n ArrayPrototypeFilter\x2C\n ArrayPrototypeForEach\x2C\n ArrayPrototypePop\x2C\n ArrayPrototypePush\x2C\n ArrayPrototypePushApply\x2C\n ArrayPrototypeSort\x2C\n ArrayPrototypeUnshift\x2C\n BigIntPrototypeValueOf\x2C\n BooleanPrototypeValueOf\x2C\n DatePrototypeGetTime\x2C\n DatePrototypeToISOString\x2C\n DatePrototypeToString\x2C\n ErrorPrototypeToString\x2C\n FunctionPrototypeCall\x2C\n FunctionPrototypeToString\x2C\n JSONStringify\x2C\n MapPrototypeGetSize\x2C\n MapPrototypeEntries\x2C\n MathFloor\x2C\n MathMax\x2C\n MathMin\x2C\n MathRound\x2C\n MathSqrt\x2C\n Number\x2C\n NumberIsNaN\x2C\n NumberParseFloat\x2C\n NumberParseInt\x2C\n NumberPrototypeValueOf\x2C\n Object\x2C\n ObjectAssign\x2C\n ObjectCreate\x2C\n ObjectDefineProperty\x2C\n ObjectGetOwnPropertyDescriptor\x2C\n ObjectGetOwnPropertyNames\x2C\n ObjectGetOwnPropertySymbols\x2C\n ObjectGetPrototypeOf\x2C\n ObjectIs\x2C\n ObjectKeys\x2C\n ObjectPrototypeHasOwnProperty\x2C\n ObjectPrototypePropertyIsEnumerable\x2C\n ObjectSeal\x2C\n ObjectSetPrototypeOf\x2C\n ReflectOwnKeys\x2C\n RegExp\x2C\n RegExpPrototypeTest\x2C\n RegExpPrototypeToString\x2C\n SafeStringIterator\x2C\n SafeMap\x2C\n SafeSet\x2C\n SetPrototypeGetSize\x2C\n SetPrototypeValues\x2C\n String\x2C\n StringPrototypeCharCodeAt\x2C\n StringPrototypeCodePointAt\x2C\n StringPrototypeIncludes\x2C\n StringPrototypeNormalize\x2C\n StringPrototypePadEnd\x2C\n StringPrototypePadStart\x2C\n StringPrototypeRepeat\x2C\n StringPrototypeReplace\x2C\n StringPrototypeSlice\x2C\n StringPrototypeSplit\x2C\n StringPrototypeToLowerCase\x2C\n StringPrototypeTrim\x2C\n StringPrototypeValueOf\x2C\n SymbolPrototypeToString\x2C\n SymbolPrototypeValueOf\x2C\n SymbolIterator\x2C\n SymbolToStringTag\x2C\n TypedArrayPrototypeGetLength\x2C\n TypedArrayPrototypeGetSymbolToStringTag\x2C\n Uint8Array\x2C\n globalThis\x2C\n uncurryThis\x2C\n} = primordials;\n\nconst {\n getOwnNonIndexProperties\x2C\n getPromiseDetails\x2C\n getProxyDetails\x2C\n kPending\x2C\n kRejected\x2C\n previewEntries\x2C\n getConstructorName: internalGetConstructorName\x2C\n getExternalValue\x2C\n propertyFilter: {\n ALL_PROPERTIES\x2C\n ONLY_ENUMERABLE\n }\n} = internalBinding('util');\n\nconst {\n customInspectSymbol\x2C\n isError\x2C\n join\x2C\n removeColors\n} = require('internal/util');\n\nconst {\n codes: {\n ERR_INVALID_ARG_TYPE\n }\x2C\n isStackOverflowError\n} = require('internal/errors');\n\nconst {\n isAsyncFunction\x2C\n isGeneratorFunction\x2C\n isAnyArrayBuffer\x2C\n isArrayBuffer\x2C\n isArgumentsObject\x2C\n isBoxedPrimitive\x2C\n isDataView\x2C\n isExternal\x2C\n isMap\x2C\n isMapIterator\x2C\n isModuleNamespaceObject\x2C\n isNativeError\x2C\n isPromise\x2C\n isSet\x2C\n isSetIterator\x2C\n isWeakMap\x2C\n isWeakSet\x2C\n isRegExp\x2C\n isDate\x2C\n isTypedArray\x2C\n isStringObject\x2C\n isNumberObject\x2C\n isBooleanObject\x2C\n isBigIntObject\x2C\n} = require('internal/util/types');\n\nconst assert = require('internal/assert');\n\nconst { NativeModule } = require('internal/bootstrap/loaders');\nconst {\n validateObject\x2C\n} = require('internal/validators');\n\nlet hexSlice;\n\nconst builtInObjects = new SafeSet(\n ArrayPrototypeFilter(\n ObjectGetOwnPropertyNames(globalThis)\x2C\n (e) => RegExpPrototypeTest(/^[A-Z][a-zA-Z0-9]+$/\x2C e)\n )\n);\n\n// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot\nconst isUndetectableObject = (v) => typeof v === 'undefined' && v !== undefined;\n\n// These options must stay in sync with `getUserOptions`. So if any option will\n// be added or removed\x2C `getUserOptions` must also be updated accordingly.\nconst inspectDefaultOptions = ObjectSeal({\n showHidden: false\x2C\n depth: 2\x2C\n colors: false\x2C\n customInspect: true\x2C\n showProxy: false\x2C\n maxArrayLength: 100\x2C\n maxStringLength: 10000\x2C\n breakLength: 80\x2C\n compact: 3\x2C\n sorted: false\x2C\n getters: false\n});\n\nconst kObjectType = 0;\nconst kArrayType = 1;\nconst kArrayExtrasType = 2;\n\n/* eslint-disable no-control-regex */\nconst strEscapeSequencesRegExp = /[\\x00-\\x1f\\x27\\x5c\\x7f-\\x9f]/;\nconst strEscapeSequencesReplacer = /[\\x00-\\x1f\\x27\\x5c\\x7f-\\x9f]/g;\nconst strEscapeSequencesRegExpSingle = /[\\x00-\\x1f\\x5c\\x7f-\\x9f]/;\nconst strEscapeSequencesReplacerSingle = /[\\x00-\\x1f\\x5c\\x7f-\\x9f]/g;\n/* eslint-enable no-control-regex */\n\nconst keyStrRegExp = /^[a-zA-Z_][a-zA-Z_0-9]*$/;\nconst numberRegExp = /^(0|[1-9][0-9]*)$/;\n\nconst coreModuleRegExp = /^ at (?:[^/\\\\(]+ \\(|)node:(.+):\\d+:\\d+\\)?$/;\nconst nodeModulesRegExp = /[/\\\\]node_modules[/\\\\](.+?)(?=[/\\\\])/g;\n\nconst classRegExp = /^(\\s+[^(]*?)\\s*{/;\n// eslint-disable-next-line node-core/no-unescaped-regexp-dot\nconst stripCommentsRegExp = /(\\/\\/.*?\\n)|(\\/\\*(.|\\n)*?\\*\\/)/g;\n\nconst kMinLineLength = 16;\n\n// Constants to map the iterator state.\nconst kWeak = 0;\nconst kIterator = 1;\nconst kMapEntries = 2;\n\n// Escaped control characters (plus the single quote and the backslash). Use\n// empty strings to fill up unused entries.\nconst meta = [\n '\\\\x00'\x2C '\\\\x01'\x2C '\\\\x02'\x2C '\\\\x03'\x2C '\\\\x04'\x2C '\\\\x05'\x2C '\\\\x06'\x2C '\\\\x07'\x2C // x07\n '\\\\b'\x2C '\\\\t'\x2C '\\\\n'\x2C '\\\\x0B'\x2C '\\\\f'\x2C '\\\\r'\x2C '\\\\x0E'\x2C '\\\\x0F'\x2C // x0F\n '\\\\x10'\x2C '\\\\x11'\x2C '\\\\x12'\x2C '\\\\x13'\x2C '\\\\x14'\x2C '\\\\x15'\x2C '\\\\x16'\x2C '\\\\x17'\x2C // x17\n '\\\\x18'\x2C '\\\\x19'\x2C '\\\\x1A'\x2C '\\\\x1B'\x2C '\\\\x1C'\x2C '\\\\x1D'\x2C '\\\\x1E'\x2C '\\\\x1F'\x2C // x1F\n ''\x2C ''\x2C ''\x2C ''\x2C ''\x2C ''\x2C ''\x2C "\\\\'"\x2C ''\x2C ''\x2C ''\x2C ''\x2C ''\x2C ''\x2C ''\x2C ''\x2C // x2F\n ''\x2C ''\x2C ''\x2C ''\x2C ''\x2C ''\x2C ''\x2C ''\x2C ''\x2C ''\x2C ''\x2C ''\x2C ''\x2C ''\x2C ''\x2C ''\x2C // x3F\n ''\x2C ''\x2C ''\x2C ''\x2C ''\x2C ''\x2C ''\x2C ''\x2C ''\x2C ''\x2C ''\x2C ''\x2C ''\x2C ''\x2C ''\x2C ''\x2C // x4F\n ''\x2C ''\x2C ''\x2C ''\x2C ''\x2C ''\x2C ''\x2C ''\x2C ''\x2C ''\x2C ''\x2C ''\x2C '\\\\\\\\'\x2C ''\x2C ''\x2C ''\x2C // x5F\n ''\x2C ''\x2C ''\x2C ''\x2C ''\x2C ''\x2C ''\x2C ''\x2C ''\x2C ''\x2C ''\x2C ''\x2C ''\x2C ''\x2C ''\x2C ''\x2C // x6F\n ''\x2C ''\x2C ''\x2C ''\x2C ''\x2C ''\x2C ''\x2C ''\x2C ''\x2C ''\x2C ''\x2C ''\x2C ''\x2C ''\x2C ''\x2C '\\\\x7F'\x2C // x7F\n '\\\\x80'\x2C '\\\\x81'\x2C '\\\\x82'\x2C '\\\\x83'\x2C '\\\\x84'\x2C '\\\\x85'\x2C '\\\\x86'\x2C '\\\\x87'\x2C // x87\n '\\\\x88'\x2C '\\\\x89'\x2C '\\\\x8A'\x2C '\\\\x8B'\x2C '\\\\x8C'\x2C '\\\\x8D'\x2C '\\\\x8E'\x2C '\\\\x8F'\x2C // x8F\n '\\\\x90'\x2C '\\\\x91'\x2C '\\\\x92'\x2C '\\\\x93'\x2C '\\\\x94'\x2C '\\\\x95'\x2C '\\\\x96'\x2C '\\\\x97'\x2C // x97\n '\\\\x98'\x2C '\\\\x99'\x2C '\\\\x9A'\x2C '\\\\x9B'\x2C '\\\\x9C'\x2C '\\\\x9D'\x2C '\\\\x9E'\x2C '\\\\x9F'\x2C // x9F\n];\n\n// Regex used for ansi escape code splitting\n// Adopted from https://github.com/chalk/ansi-regex/blob/HEAD/index.js\n// License: MIT\x2C authors: @sindresorhus\x2C Qix-\x2C arjunmehta and LitoMore\n// Matches all ansi escape code sequences in a string\nconst ansiPattern = '[\\\\u001B\\\\u009B][[\\\\]()#;?]*' +\n '(?:(?:(?:[a-zA-Z\\\\d]*(?:;[-a-zA-Z\\\\d\\\\/#&.:=?%@~_]*)*)?\\\\u0007)' +\n '|(?:(?:\\\\d{1\x2C4}(?:;\\\\d{0\x2C4})*)?[\\\\dA-PR-TZcf-ntqry=><~]))';\nconst ansi = new RegExp(ansiPattern\x2C 'g');\n\nlet getStringWidth;\n\nfunction getUserOptions(ctx\x2C isCrossContext) {\n const ret = {\n stylize: ctx.stylize\x2C\n showHidden: ctx.showHidden\x2C\n depth: ctx.depth\x2C\n colors: ctx.colors\x2C\n customInspect: ctx.customInspect\x2C\n showProxy: ctx.showProxy\x2C\n maxArrayLength: ctx.maxArrayLength\x2C\n maxStringLength: ctx.maxStringLength\x2C\n breakLength: ctx.breakLength\x2C\n compact: ctx.compact\x2C\n sorted: ctx.sorted\x2C\n getters: ctx.getters\x2C\n ...ctx.userOptions\n };\n\n // Typically\x2C the target value will be an instance of `Object`. If that is\n // *not* the case\x2C the object may come from another vm.Context\x2C and we want\n // to avoid passing it objects from this Context in that case\x2C so we remove\n // the prototype from the returned object itself + the `stylize()` function\x2C\n // and remove all other non-primitives\x2C including non-primitive user options.\n if (isCrossContext) {\n ObjectSetPrototypeOf(ret\x2C null);\n for (const key of ObjectKeys(ret)) {\n if ((typeof ret[key] === 'object' || typeof ret[key] === 'function') &&\n ret[key] !== null) {\n delete ret[key];\n }\n }\n ret.stylize = ObjectSetPrototypeOf((value\x2C flavour) => {\n let stylized;\n try {\n stylized = `${ctx.stylize(value\x2C flavour)}`;\n } catch {}\n\n if (typeof stylized !== 'string') return value;\n // `stylized` is a string as it should be\x2C which is safe to pass along.\n return stylized;\n }\x2C null);\n }\n\n return ret;\n}\n\n/**\n * Echos the value of any input. Tries to print the value out\n * in the best way possible given the different types.\n *\n * @param {any} value The value to print out.\n * @param {Object} opts Optional options object that alters the output.\n */\n/* Legacy: value\x2C showHidden\x2C depth\x2C colors */\nfunction inspect(value\x2C opts) {\n // Default options\n const ctx = {\n budget: {}\x2C\n indentationLvl: 0\x2C\n seen: []\x2C\n currentDepth: 0\x2C\n stylize: stylizeNoColor\x2C\n showHidden: inspectDefaultOptions.showHidden\x2C\n depth: inspectDefaultOptions.depth\x2C\n colors: inspectDefaultOptions.colors\x2C\n customInspect: inspectDefaultOptions.customInspect\x2C\n showProxy: inspectDefaultOptions.showProxy\x2C\n maxArrayLength: inspectDefaultOptions.maxArrayLength\x2C\n maxStringLength: inspectDefaultOptions.maxStringLength\x2C\n breakLength: inspectDefaultOptions.breakLength\x2C\n compact: inspectDefaultOptions.compact\x2C\n sorted: inspectDefaultOptions.sorted\x2C\n getters: inspectDefaultOptions.getters\n };\n if (arguments.length > 1) {\n // Legacy...\n if (arguments.length > 2) {\n if (arguments[2] !== undefined) {\n ctx.depth = arguments[2];\n }\n if (arguments.length > 3 && arguments[3] !== undefined) {\n ctx.colors = arguments[3];\n }\n }\n // Set user-specified options\n if (typeof opts === 'boolean') {\n ctx.showHidden = opts;\n } else if (opts) {\n const optKeys = ObjectKeys(opts);\n for (let i = 0; i < optKeys.length; ++i) {\n const key = optKeys[i];\n // TODO(BridgeAR): Find a solution what to do about stylize. Either make\n // this function public or add a new API with a similar or better\n // functionality.\n if (\n ObjectPrototypeHasOwnProperty(inspectDefaultOptions\x2C key) ||\n key === 'stylize') {\n ctx[key] = opts[key];\n } else if (ctx.userOptions === undefined) {\n // This is required to pass through the actual user input.\n ctx.userOptions = opts;\n }\n }\n }\n }\n if (ctx.colors) ctx.stylize = stylizeWithColor;\n if (ctx.maxArrayLength === null) ctx.maxArrayLength = Infinity;\n if (ctx.maxStringLength === null) ctx.maxStringLength = Infinity;\n return formatValue(ctx\x2C value\x2C 0);\n}\ninspect.custom = customInspectSymbol;\n\nObjectDefineProperty(inspect\x2C 'defaultOptions'\x2C {\n get() {\n return inspectDefaultOptions;\n }\x2C\n set(options) {\n validateObject(options\x2C 'options');\n return ObjectAssign(inspectDefaultOptions\x2C options);\n }\n});\n\n// Set Graphics Rendition https://en.wikipedia.org/wiki/ANSI_escape_code#graphics\n// Each color consists of an array with the color code as first entry and the\n// reset code as second entry.\nconst defaultFG = 39;\nconst defaultBG = 49;\ninspect.colors = ObjectAssign(ObjectCreate(null)\x2C {\n reset: [0\x2C 0]\x2C\n bold: [1\x2C 22]\x2C\n dim: [2\x2C 22]\x2C // Alias: faint\n italic: [3\x2C 23]\x2C\n underline: [4\x2C 24]\x2C\n blink: [5\x2C 25]\x2C\n // Swap foreground and background colors\n inverse: [7\x2C 27]\x2C // Alias: swapcolors\x2C swapColors\n hidden: [8\x2C 28]\x2C // Alias: conceal\n strikethrough: [9\x2C 29]\x2C // Alias: strikeThrough\x2C crossedout\x2C crossedOut\n doubleunderline: [21\x2C 24]\x2C // Alias: doubleUnderline\n black: [30\x2C defaultFG]\x2C\n red: [31\x2C defaultFG]\x2C\n green: [32\x2C defaultFG]\x2C\n yellow: [33\x2C defaultFG]\x2C\n blue: [34\x2C defaultFG]\x2C\n magenta: [35\x2C defaultFG]\x2C\n cyan: [36\x2C defaultFG]\x2C\n white: [37\x2C defaultFG]\x2C\n bgBlack: [40\x2C defaultBG]\x2C\n bgRed: [41\x2C defaultBG]\x2C\n bgGreen: [42\x2C defaultBG]\x2C\n bgYellow: [43\x2C defaultBG]\x2C\n bgBlue: [44\x2C defaultBG]\x2C\n bgMagenta: [45\x2C defaultBG]\x2C\n bgCyan: [46\x2C defaultBG]\x2C\n bgWhite: [47\x2C defaultBG]\x2C\n framed: [51\x2C 54]\x2C\n overlined: [53\x2C 55]\x2C\n gray: [90\x2C defaultFG]\x2C // Alias: grey\x2C blackBright\n redBright: [91\x2C defaultFG]\x2C\n greenBright: [92\x2C defaultFG]\x2C\n yellowBright: [93\x2C defaultFG]\x2C\n blueBright: [94\x2C defaultFG]\x2C\n magentaBright: [95\x2C defaultFG]\x2C\n cyanBright: [96\x2C defaultFG]\x2C\n whiteBright: [97\x2C defaultFG]\x2C\n bgGray: [100\x2C defaultBG]\x2C // Alias: bgGrey\x2C bgBlackBright\n bgRedBright: [101\x2C defaultBG]\x2C\n bgGreenBright: [102\x2C defaultBG]\x2C\n bgYellowBright: [103\x2C defaultBG]\x2C\n bgBlueBright: [104\x2C defaultBG]\x2C\n bgMagentaBright: [105\x2C defaultBG]\x2C\n bgCyanBright: [106\x2C defaultBG]\x2C\n bgWhiteBright: [107\x2C defaultBG]\x2C\n});\n\nfunction defineColorAlias(target\x2C alias) {\n ObjectDefineProperty(inspect.colors\x2C alias\x2C {\n get() {\n return this[target];\n }\x2C\n set(value) {\n this[target] = value;\n }\x2C\n configurable: true\x2C\n enumerable: false\n });\n}\n\ndefineColorAlias('gray'\x2C 'grey');\ndefineColorAlias('gray'\x2C 'blackBright');\ndefineColorAlias('bgGray'\x2C 'bgGrey');\ndefineColorAlias('bgGray'\x2C 'bgBlackBright');\ndefineColorAlias('dim'\x2C 'faint');\ndefineColorAlias('strikethrough'\x2C 'crossedout');\ndefineColorAlias('strikethrough'\x2C 'strikeThrough');\ndefineColorAlias('strikethrough'\x2C 'crossedOut');\ndefineColorAlias('hidden'\x2C 'conceal');\ndefineColorAlias('inverse'\x2C 'swapColors');\ndefineColorAlias('inverse'\x2C 'swapcolors');\ndefineColorAlias('doubleunderline'\x2C 'doubleUnderline');\n\n// TODO(BridgeAR): Add function style support for more complex styles.\n// Don't use 'blue' not visible on cmd.exe\ninspect.styles = ObjectAssign(ObjectCreate(null)\x2C {\n special: 'cyan'\x2C\n number: 'yellow'\x2C\n bigint: 'yellow'\x2C\n boolean: 'yellow'\x2C\n undefined: 'grey'\x2C\n null: 'bold'\x2C\n string: 'green'\x2C\n symbol: 'green'\x2C\n date: 'magenta'\x2C\n // "name": intentionally not styling\n // TODO(BridgeAR): Highlight regular expressions properly.\n regexp: 'red'\x2C\n module: 'underline'\n});\n\nfunction addQuotes(str\x2C quotes) {\n if (quotes === -1) {\n return `"${str}"`;\n }\n if (quotes === -2) {\n return `\\`${str}\\``;\n }\n return `'${str}'`;\n}\n\nconst escapeFn = (str) => meta[StringPrototypeCharCodeAt(str)];\n\n// Escape control characters\x2C single quotes and the backslash.\n// This is similar to JSON stringify escaping.\nfunction strEscape(str) {\n let escapeTest = strEscapeSequencesRegExp;\n let escapeReplace = strEscapeSequencesReplacer;\n let singleQuote = 39;\n\n // Check for double quotes. If not present\x2C do not escape single quotes and\n // instead wrap the text in double quotes. If double quotes exist\x2C check for\n // backticks. If they do not exist\x2C use those as fallback instead of the\n // double quotes.\n if (StringPrototypeIncludes(str\x2C "'")) {\n // This invalidates the charCode and therefore can not be matched for\n // anymore.\n if (!StringPrototypeIncludes(str\x2C '"')) {\n singleQuote = -1;\n } else if (!StringPrototypeIncludes(str\x2C '`') &&\n !StringPrototypeIncludes(str\x2C '${')) {\n singleQuote = -2;\n }\n if (singleQuote !== 39) {\n escapeTest = strEscapeSequencesRegExpSingle;\n escapeReplace = strEscapeSequencesReplacerSingle;\n }\n }\n\n // Some magic numbers that worked out fine while benchmarking with v8 6.0\n if (str.length < 5000 && !RegExpPrototypeTest(escapeTest\x2C str))\n return addQuotes(str\x2C singleQuote);\n if (str.length > 100) {\n str = StringPrototypeReplace(str\x2C escapeReplace\x2C escapeFn);\n return addQuotes(str\x2C singleQuote);\n }\n\n let result = '';\n let last = 0;\n const lastIndex = str.length;\n for (let i = 0; i < lastIndex; i++) {\n const point = StringPrototypeCharCodeAt(str\x2C i);\n if (point === singleQuote ||\n point === 92 ||\n point < 32 ||\n (point > 126 && point < 160)) {\n if (last === i) {\n result += meta[point];\n } else {\n result += `${StringPrototypeSlice(str\x2C last\x2C i)}${meta[point]}`;\n }\n last = i + 1;\n }\n }\n\n if (last !== lastIndex) {\n result += StringPrototypeSlice(str\x2C last);\n }\n return addQuotes(result\x2C singleQuote);\n}\n\nfunction stylizeWithColor(str\x2C styleType) {\n const style = inspect.styles[styleType];\n if (style !== undefined) {\n const color = inspect.colors[style];\n if (color !== undefined)\n return `\\u001b[${color[0]}m${str}\\u001b[${color[1]}m`;\n }\n return str;\n}\n\nfunction stylizeNoColor(str) {\n return str;\n}\n\n// Return a new empty array to push in the results of the default formatter.\nfunction getEmptyFormatArray() {\n return [];\n}\n\nfunction isInstanceof(object\x2C proto) {\n try {\n return object instanceof proto;\n } catch {\n return false;\n }\n}\n\nfunction getConstructorName(obj\x2C ctx\x2C recurseTimes\x2C protoProps) {\n let firstProto;\n const tmp = obj;\n while (obj || isUndetectableObject(obj)) {\n const descriptor = ObjectGetOwnPropertyDescriptor(obj\x2C 'constructor');\n if (descriptor !== undefined &&\n typeof descriptor.value === 'function' &&\n descriptor.value.name !== '' &&\n isInstanceof(tmp\x2C descriptor.value)) {\n if (protoProps !== undefined &&\n (firstProto !== obj ||\n !builtInObjects.has(descriptor.value.name))) {\n addPrototypeProperties(\n ctx\x2C tmp\x2C firstProto || tmp\x2C recurseTimes\x2C protoProps);\n }\n return descriptor.value.name;\n }\n\n obj = ObjectGetPrototypeOf(obj);\n if (firstProto === undefined) {\n firstProto = obj;\n }\n }\n\n if (firstProto === null) {\n return null;\n }\n\n const res = internalGetConstructorName(tmp);\n\n if (recurseTimes > ctx.depth && ctx.depth !== null) {\n return `${res} <Complex prototype>`;\n }\n\n const protoConstr = getConstructorName(\n firstProto\x2C ctx\x2C recurseTimes + 1\x2C protoProps);\n\n if (protoConstr === null) {\n return `${res} <${inspect(firstProto\x2C {\n ...ctx\x2C\n customInspect: false\x2C\n depth: -1\n })}>`;\n }\n\n return `${res} <${protoConstr}>`;\n}\n\n// This function has the side effect of adding prototype properties to the\n// `output` argument (which is an array). This is intended to highlight user\n// defined prototype properties.\nfunction addPrototypeProperties(ctx\x2C main\x2C obj\x2C recurseTimes\x2C output) {\n let depth = 0;\n let keys;\n let keySet;\n do {\n if (depth !== 0 || main === obj) {\n obj = ObjectGetPrototypeOf(obj);\n // Stop as soon as a null prototype is encountered.\n if (obj === null) {\n return;\n }\n // Stop as soon as a built-in object type is detected.\n const descriptor = ObjectGetOwnPropertyDescriptor(obj\x2C 'constructor');\n if (descriptor !== undefined &&\n typeof descriptor.value === 'function' &&\n builtInObjects.has(descriptor.value.name)) {\n return;\n }\n }\n\n if (depth === 0) {\n keySet = new SafeSet();\n } else {\n ArrayPrototypeForEach(keys\x2C (key) => keySet.add(key));\n }\n // Get all own property names and symbols.\n keys = ReflectOwnKeys(obj);\n ArrayPrototypePush(ctx.seen\x2C main);\n for (const key of keys) {\n // Ignore the `constructor` property and keys that exist on layers above.\n if (key === 'constructor' ||\n ObjectPrototypeHasOwnProperty(main\x2C key) ||\n (depth !== 0 && keySet.has(key))) {\n continue;\n }\n const desc = ObjectGetOwnPropertyDescriptor(obj\x2C key);\n if (typeof desc.value === 'function') {\n continue;\n }\n const value = formatProperty(\n ctx\x2C obj\x2C recurseTimes\x2C key\x2C kObjectType\x2C desc\x2C main);\n if (ctx.colors) {\n // Faint!\n ArrayPrototypePush(output\x2C `\\u001b[2m${value}\\u001b[22m`);\n } else {\n ArrayPrototypePush(output\x2C value);\n }\n }\n ArrayPrototypePop(ctx.seen);\n // Limit the inspection to up to three prototype layers. Using `recurseTimes`\n // is not a good choice here\x2C because it's as if the properties are declared\n // on the current object from the users perspective.\n } while (++depth !== 3);\n}\n\nfunction getPrefix(constructor\x2C tag\x2C fallback\x2C size = '') {\n if (constructor === null) {\n if (tag !== '' && fallback !== tag) {\n return `[${fallback}${size}: null prototype] [${tag}] `;\n }\n return `[${fallback}${size}: null prototype] `;\n }\n\n if (tag !== '' && constructor !== tag) {\n return `${constructor}${size} [${tag}] `;\n }\n return `${constructor}${size} `;\n}\n\n// Look up the keys of the object.\nfunction getKeys(value\x2C showHidden) {\n let keys;\n const symbols = ObjectGetOwnPropertySymbols(value);\n if (showHidden) {\n keys = ObjectGetOwnPropertyNames(value);\n if (symbols.length !== 0)\n ArrayPrototypePushApply(keys\x2C symbols);\n } else {\n // This might throw if `value` is a Module Namespace Object from an\n // unevaluated module\x2C but we don't want to perform the actual type\n // check because it's expensive.\n // TODO(devsnek): track https://github.com/tc39/ecma262/issues/1209\n // and modify this logic as needed.\n try {\n keys = ObjectKeys(value);\n } catch (err) {\n assert(isNativeError(err) && err.name === 'ReferenceError' &&\n isModuleNamespaceObject(value));\n keys = ObjectGetOwnPropertyNames(value);\n }\n if (symbols.length !== 0) {\n const filter = (key) => ObjectPrototypePropertyIsEnumerable(value\x2C key);\n ArrayPrototypePushApply(keys\x2C ArrayPrototypeFilter(symbols\x2C filter));\n }\n }\n return keys;\n}\n\nfunction getCtxStyle(value\x2C constructor\x2C tag) {\n let fallback = '';\n if (constructor === null) {\n fallback = internalGetConstructorName(value);\n if (fallback === tag) {\n fallback = 'Object';\n }\n }\n return getPrefix(constructor\x2C tag\x2C fallback);\n}\n\nfunction formatProxy(ctx\x2C proxy\x2C recurseTimes) {\n if (recurseTimes > ctx.depth && ctx.depth !== null) {\n return ctx.stylize('Proxy [Array]'\x2C 'special');\n }\n recurseTimes += 1;\n ctx.indentationLvl += 2;\n const res = [\n formatValue(ctx\x2C proxy[0]\x2C recurseTimes)\x2C\n formatValue(ctx\x2C proxy[1]\x2C recurseTimes)\x2C\n ];\n ctx.indentationLvl -= 2;\n return reduceToSingleString(\n ctx\x2C res\x2C ''\x2C ['Proxy ['\x2C ']']\x2C kArrayExtrasType\x2C recurseTimes);\n}\n\n// Note: using `formatValue` directly requires the indentation level to be\n// corrected by setting `ctx.indentationLvL += diff` and then to decrease the\n// value afterwards again.\nfunction formatValue(ctx\x2C value\x2C recurseTimes\x2C typedArray) {\n // Primitive types cannot have properties.\n if (typeof value !== 'object' &&\n typeof value !== 'function' &&\n !isUndetectableObject(value)) {\n return formatPrimitive(ctx.stylize\x2C value\x2C ctx);\n }\n if (value === null) {\n return ctx.stylize('null'\x2C 'null');\n }\n\n // Memorize the context for custom inspection on proxies.\n const context = value;\n // Always check for proxies to prevent side effects and to prevent triggering\n // any proxy handlers.\n const proxy = getProxyDetails(value\x2C !!ctx.showProxy);\n if (proxy !== undefined) {\n if (ctx.showProxy) {\n return formatProxy(ctx\x2C proxy\x2C recurseTimes);\n }\n value = proxy;\n }\n\n // Provide a hook for user-specified inspect functions.\n // Check that value is an object with an inspect function on it.\n if (ctx.customInspect) {\n const maybeCustom = value[customInspectSymbol];\n if (typeof maybeCustom === 'function' &&\n // Filter out the util module\x2C its inspect function is special.\n maybeCustom !== inspect &&\n // Also filter out any prototype objects using the circular check.\n !(value.constructor && value.constructor.prototype === value)) {\n // This makes sure the recurseTimes are reported as before while using\n // a counter internally.\n const depth = ctx.depth === null ? null : ctx.depth - recurseTimes;\n const isCrossContext =\n proxy !== undefined || !(context instanceof Object);\n const ret = FunctionPrototypeCall(\n maybeCustom\x2C context\x2C depth\x2C getUserOptions(ctx\x2C isCrossContext));\n // If the custom inspection method returned `this`\x2C don't go into\n // infinite recursion.\n if (ret !== context) {\n if (typeof ret !== 'string') {\n return formatValue(ctx\x2C ret\x2C recurseTimes);\n }\n return ret.replace(/\\n/g\x2C `\\n${' '.repeat(ctx.indentationLvl)}`);\n }\n }\n }\n\n // Using an array here is actually better for the average case than using\n // a Set. `seen` will only check for the depth and will never grow too large.\n if (ctx.seen.includes(value)) {\n let index = 1;\n if (ctx.circular === undefined) {\n ctx.circular = new SafeMap();\n ctx.circular.set(value\x2C index);\n } else {\n index = ctx.circular.get(value);\n if (index === undefined) {\n index = ctx.circular.size + 1;\n ctx.circular.set(value\x2C index);\n }\n }\n return ctx.stylize(`[Circular *${index}]`\x2C 'special');\n }\n\n return formatRaw(ctx\x2C value\x2C recurseTimes\x2C typedArray);\n}\n\nfunction formatRaw(ctx\x2C value\x2C recurseTimes\x2C typedArray) {\n let keys;\n let protoProps;\n if (ctx.showHidden && (recurseTimes <= ctx.depth || ctx.depth === null)) {\n protoProps = [];\n }\n\n const constructor = getConstructorName(value\x2C ctx\x2C recurseTimes\x2C protoProps);\n // Reset the variable to check for this later on.\n if (protoProps !== undefined && protoProps.length === 0) {\n protoProps = undefined;\n }\n\n let tag = value[SymbolToStringTag];\n // Only list the tag in case it's non-enumerable / not an own property.\n // Otherwise we'd print this twice.\n if (typeof tag !== 'string' ||\n (tag !== '' &&\n (ctx.showHidden ?\n ObjectPrototypeHasOwnProperty :\n ObjectPrototypePropertyIsEnumerable)(\n value\x2C SymbolToStringTag\n ))) {\n tag = '';\n }\n let base = '';\n let formatter = getEmptyFormatArray;\n let braces;\n let noIterator = true;\n let i = 0;\n const filter = ctx.showHidden ? ALL_PROPERTIES : ONLY_ENUMERABLE;\n\n let extrasType = kObjectType;\n\n // Iterators and the rest are split to reduce checks.\n // We have to check all values in case the constructor is set to null.\n // Otherwise it would not possible to identify all types properly.\n if (value[SymbolIterator] || constructor === null) {\n noIterator = false;\n if (ArrayIsArray(value)) {\n // Only set the constructor for non ordinary ("Array [...]") arrays.\n const prefix = (constructor !== 'Array' || tag !== '') ?\n getPrefix(constructor\x2C tag\x2C 'Array'\x2C `(${value.length})`) :\n '';\n keys = getOwnNonIndexProperties(value\x2C filter);\n braces = [`${prefix}[`\x2C ']'];\n if (value.length === 0 && keys.length === 0 && protoProps === undefined)\n return `${braces[0]}]`;\n extrasType = kArrayExtrasType;\n formatter = formatArray;\n } else if (isSet(value)) {\n const size = SetPrototypeGetSize(value);\n const prefix = getPrefix(constructor\x2C tag\x2C 'Set'\x2C `(${size})`);\n keys = getKeys(value\x2C ctx.showHidden);\n formatter = constructor !== null ?\n formatSet.bind(null\x2C value) :\n formatSet.bind(null\x2C SetPrototypeValues(value));\n if (size === 0 && keys.length === 0 && protoProps === undefined)\n return `${prefix}{}`;\n braces = [`${prefix}{`\x2C '}'];\n } else if (isMap(value)) {\n const size = MapPrototypeGetSize(value);\n const prefix = getPrefix(constructor\x2C tag\x2C 'Map'\x2C `(${size})`);\n keys = getKeys(value\x2C ctx.showHidden);\n formatter = constructor !== null ?\n formatMap.bind(null\x2C value) :\n formatMap.bind(null\x2C MapPrototypeEntries(value));\n if (size === 0 && keys.length === 0 && protoProps === undefined)\n return `${prefix}{}`;\n braces = [`${prefix}{`\x2C '}'];\n } else if (isTypedArray(value)) {\n keys = getOwnNonIndexProperties(value\x2C filter);\n let bound = value;\n let fallback = '';\n if (constructor === null) {\n fallback = TypedArrayPrototypeGetSymbolToStringTag(value);\n // Reconstruct the array information.\n bound = new primordials[fallback](value);\n }\n const size = TypedArrayPrototypeGetLength(value);\n const prefix = getPrefix(constructor\x2C tag\x2C fallback\x2C `(${size})`);\n braces = [`${prefix}[`\x2C ']'];\n if (value.length === 0 && keys.length === 0 && !ctx.showHidden)\n return `${braces[0]}]`;\n // Special handle the value. The original value is required below. The\n // bound function is required to reconstruct missing information.\n formatter = formatTypedArray.bind(null\x2C bound\x2C size);\n extrasType = kArrayExtrasType;\n } else if (isMapIterator(value)) {\n keys = getKeys(value\x2C ctx.showHidden);\n braces = getIteratorBraces('Map'\x2C tag);\n // Add braces to the formatter parameters.\n formatter = formatIterator.bind(null\x2C braces);\n } else if (isSetIterator(value)) {\n keys = getKeys(value\x2C ctx.showHidden);\n braces = getIteratorBraces('Set'\x2C tag);\n // Add braces to the formatter parameters.\n formatter = formatIterator.bind(null\x2C braces);\n } else {\n noIterator = true;\n }\n }\n if (noIterator) {\n keys = getKeys(value\x2C ctx.showHidden);\n braces = ['{'\x2C '}'];\n if (constructor === 'Object') {\n if (isArgumentsObject(value)) {\n braces[0] = '[Arguments] {';\n } else if (tag !== '') {\n braces[0] = `${getPrefix(constructor\x2C tag\x2C 'Object')}{`;\n }\n if (keys.length === 0 && protoProps === undefined) {\n return `${braces[0]}}`;\n }\n } else if (typeof value === 'function') {\n base = getFunctionBase(value\x2C constructor\x2C tag);\n if (keys.length === 0 && protoProps === undefined)\n return ctx.stylize(base\x2C 'special');\n } else if (isRegExp(value)) {\n // Make RegExps say that they are RegExps\n base = RegExpPrototypeToString(\n constructor !== null ? value : new RegExp(value)\n );\n const prefix = getPrefix(constructor\x2C tag\x2C 'RegExp');\n if (prefix !== 'RegExp ')\n base = `${prefix}${base}`;\n if ((keys.length === 0 && protoProps === undefined) ||\n (recurseTimes > ctx.depth && ctx.depth !== null)) {\n return ctx.stylize(base\x2C 'regexp');\n }\n } else if (isDate(value)) {\n // Make dates with properties first say the date\n base = NumberIsNaN(DatePrototypeGetTime(value)) ?\n DatePrototypeToString(value) :\n DatePrototypeToISOString(value);\n const prefix = getPrefix(constructor\x2C tag\x2C 'Date');\n if (prefix !== 'Date ')\n base = `${prefix}${base}`;\n if (keys.length === 0 && protoProps === undefined) {\n return ctx.stylize(base\x2C 'date');\n }\n } else if (isError(value)) {\n base = formatError(value\x2C constructor\x2C tag\x2C ctx\x2C keys);\n if (keys.length === 0 && protoProps === undefined)\n return base;\n } else if (isAnyArrayBuffer(value)) {\n // Fast path for ArrayBuffer and SharedArrayBuffer.\n // Can't do the same for DataView because it has a non-primitive\n // .buffer property that we need to recurse for.\n const arrayType = isArrayBuffer(value) ? 'ArrayBuffer' :\n 'SharedArrayBuffer';\n const prefix = getPrefix(constructor\x2C tag\x2C arrayType);\n if (typedArray === undefined) {\n formatter = formatArrayBuffer;\n } else if (keys.length === 0 && protoProps === undefined) {\n return prefix +\n `{ byteLength: ${formatNumber(ctx.stylize\x2C value.byteLength)} }`;\n }\n braces[0] = `${prefix}{`;\n ArrayPrototypeUnshift(keys\x2C 'byteLength');\n } else if (isDataView(value)) {\n braces[0] = `${getPrefix(constructor\x2C tag\x2C 'DataView')}{`;\n // .buffer goes last\x2C it's not a primitive like the others.\n ArrayPrototypeUnshift(keys\x2C 'byteLength'\x2C 'byteOffset'\x2C 'buffer');\n } else if (isPromise(value)) {\n braces[0] = `${getPrefix(constructor\x2C tag\x2C 'Promise')}{`;\n formatter = formatPromise;\n } else if (isWeakSet(value)) {\n braces[0] = `${getPrefix(constructor\x2C tag\x2C 'WeakSet')}{`;\n formatter = ctx.showHidden ? formatWeakSet : formatWeakCollection;\n } else if (isWeakMap(value)) {\n braces[0] = `${getPrefix(constructor\x2C tag\x2C 'WeakMap')}{`;\n formatter = ctx.showHidden ? formatWeakMap : formatWeakCollection;\n } else if (isModuleNamespaceObject(value)) {\n braces[0] = `${getPrefix(constructor\x2C tag\x2C 'Module')}{`;\n // Special handle keys for namespace objects.\n formatter = formatNamespaceObject.bind(null\x2C keys);\n } else if (isBoxedPrimitive(value)) {\n base = getBoxedBase(value\x2C ctx\x2C keys\x2C constructor\x2C tag);\n if (keys.length === 0 && protoProps === undefined) {\n return base;\n }\n } else {\n if (keys.length === 0 && protoProps === undefined) {\n if (isExternal(value)) {\n const address = getExternalValue(value).toString(16);\n return ctx.stylize(`[External: ${address}]`\x2C 'special');\n }\n return `${getCtxStyle(value\x2C constructor\x2C tag)}{}`;\n }\n braces[0] = `${getCtxStyle(value\x2C constructor\x2C tag)}{`;\n }\n }\n\n if (recurseTimes > ctx.depth && ctx.depth !== null) {\n let constructorName = getCtxStyle(value\x2C constructor\x2C tag).slice(0\x2C -1);\n if (constructor !== null)\n constructorName = `[${constructorName}]`;\n return ctx.stylize(constructorName\x2C 'special');\n }\n recurseTimes += 1;\n\n ctx.seen.push(value);\n ctx.currentDepth = recurseTimes;\n let output;\n const indentationLvl = ctx.indentationLvl;\n try {\n output = formatter(ctx\x2C value\x2C recurseTimes);\n for (i = 0; i < keys.length; i++) {\n output.push(\n formatProperty(ctx\x2C value\x2C recurseTimes\x2C keys[i]\x2C extrasType));\n }\n if (protoProps !== undefined) {\n output.push(...protoProps);\n }\n } catch (err) {\n const constructorName = getCtxStyle(value\x2C constructor\x2C tag).slice(0\x2C -1);\n return handleMaxCallStackSize(ctx\x2C err\x2C constructorName\x2C indentationLvl);\n }\n if (ctx.circular !== undefined) {\n const index = ctx.circular.get(value);\n if (index !== undefined) {\n const reference = ctx.stylize(`<ref *${index}>`\x2C 'special');\n // Add reference always to the very beginning of the output.\n if (ctx.compact !== true) {\n base = base === '' ? reference : `${reference} ${base}`;\n } else {\n braces[0] = `${reference} ${braces[0]}`;\n }\n }\n }\n ctx.seen.pop();\n\n if (ctx.sorted) {\n const comparator = ctx.sorted === true ? undefined : ctx.sorted;\n if (extrasType === kObjectType) {\n output = output.sort(comparator);\n } else if (keys.length > 1) {\n const sorted = output.slice(output.length - keys.length).sort(comparator);\n output.splice(output.length - keys.length\x2C keys.length\x2C ...sorted);\n }\n }\n\n const res = reduceToSingleString(\n ctx\x2C output\x2C base\x2C braces\x2C extrasType\x2C recurseTimes\x2C value);\n const budget = ctx.budget[ctx.indentationLvl] || 0;\n const newLength = budget + res.length;\n ctx.budget[ctx.indentationLvl] = newLength;\n // If any indentationLvl exceeds this limit\x2C limit further inspecting to the\n // minimum. Otherwise the recursive algorithm might continue inspecting the\n // object even though the maximum string size (~2 ** 28 on 32 bit systems and\n // ~2 ** 30 on 64 bit systems) exceeded. The actual output is not limited at\n // exactly 2 ** 27 but a bit higher. This depends on the object shape.\n // This limit also makes sure that huge objects don't block the event loop\n // significantly.\n if (newLength > 2 ** 27) {\n ctx.depth = -1;\n }\n return res;\n}\n\nfunction getIteratorBraces(type\x2C tag) {\n if (tag !== `${type} Iterator`) {\n if (tag !== '')\n tag += '] [';\n tag += `${type} Iterator`;\n }\n return [`[${tag}] {`\x2C '}'];\n}\n\nfunction getBoxedBase(value\x2C ctx\x2C keys\x2C constructor\x2C tag) {\n let fn;\n let type;\n if (isNumberObject(value)) {\n fn = NumberPrototypeValueOf;\n type = 'Number';\n } else if (isStringObject(value)) {\n fn = StringPrototypeValueOf;\n type = 'String';\n // For boxed Strings\x2C we have to remove the 0-n indexed entries\x2C\n // since they just noisy up the output and are redundant\n // Make boxed primitive Strings look like such\n keys.splice(0\x2C value.length);\n } else if (isBooleanObject(value)) {\n fn = BooleanPrototypeValueOf;\n type = 'Boolean';\n } else if (isBigIntObject(value)) {\n fn = BigIntPrototypeValueOf;\n type = 'BigInt';\n } else {\n fn = SymbolPrototypeValueOf;\n type = 'Symbol';\n }\n let base = `[${type}`;\n if (type !== constructor) {\n if (constructor === null) {\n base += ' (null prototype)';\n } else {\n base += ` (${constructor})`;\n }\n }\n base += `: ${formatPrimitive(stylizeNoColor\x2C fn(value)\x2C ctx)}]`;\n if (tag !== '' && tag !== constructor) {\n base += ` [${tag}]`;\n }\n if (keys.length !== 0 || ctx.stylize === stylizeNoColor)\n return base;\n return ctx.stylize(base\x2C StringPrototypeToLowerCase(type));\n}\n\nfunction getClassBase(value\x2C constructor\x2C tag) {\n const hasName = ObjectPrototypeHasOwnProperty(value\x2C 'name');\n const name = (hasName && value.name) || '(anonymous)';\n let base = `class ${name}`;\n if (constructor !== 'Function' && constructor !== null) {\n base += ` [${constructor}]`;\n }\n if (tag !== '' && constructor !== tag) {\n base += ` [${tag}]`;\n }\n if (constructor !== null) {\n const superName = ObjectGetPrototypeOf(value).name;\n if (superName) {\n base += ` extends ${superName}`;\n }\n } else {\n base += ' extends [null prototype]';\n }\n return `[${base}]`;\n}\n\nfunction getFunctionBase(value\x2C constructor\x2C tag) {\n const stringified = FunctionPrototypeToString(value);\n if (stringified.slice(0\x2C 5) === 'class' && stringified.endsWith('}')) {\n const slice = stringified.slice(5\x2C -1);\n const bracketIndex = slice.indexOf('{');\n if (bracketIndex !== -1 &&\n (!slice.slice(0\x2C bracketIndex).includes('(') ||\n // Slow path to guarantee that it's indeed a class.\n classRegExp.test(slice.replace(stripCommentsRegExp)))) {\n return getClassBase(value\x2C constructor\x2C tag);\n }\n }\n let type = 'Function';\n if (isGeneratorFunction(value)) {\n type = `Generator${type}`;\n }\n if (isAsyncFunction(value)) {\n type = `Async${type}`;\n }\n let base = `[${type}`;\n if (constructor === null) {\n base += ' (null prototype)';\n }\n if (value.name === '') {\n base += ' (anonymous)';\n } else {\n base += `: ${value.name}`;\n }\n base += ']';\n if (constructor !== type && constructor !== null) {\n base += ` ${constructor}`;\n }\n if (tag !== '' && constructor !== tag) {\n base += ` [${tag}]`;\n }\n return base;\n}\n\nfunction formatError(err\x2C constructor\x2C tag\x2C ctx\x2C keys) {\n const name = err.name != null ? String(err.name) : 'Error';\n let len = name.length;\n let stack = err.stack ? String(err.stack) : ErrorPrototypeToString(err);\n\n // Do not "duplicate" error properties that are already included in the output\n // otherwise.\n if (!ctx.showHidden && keys.length !== 0) {\n for (const name of ['name'\x2C 'message'\x2C 'stack']) {\n const index = keys.indexOf(name);\n // Only hide the property in case it's part of the original stack\n if (index !== -1 && stack.includes(err[name])) {\n keys.splice(index\x2C 1);\n }\n }\n }\n\n // A stack trace may contain arbitrary data. Only manipulate the output\n // for "regular errors" (errors that "look normal") for now.\n if (constructor === null ||\n (name.endsWith('Error') &&\n stack.startsWith(name) &&\n (stack.length === len || stack[len] === ':' || stack[len] === '\\n'))) {\n let fallback = 'Error';\n if (constructor === null) {\n const start = stack.match(/^([A-Z][a-z_ A-Z0-9[\\]()-]+)(?::|\\n {4}at)/) ||\n stack.match(/^([a-z_A-Z0-9-]*Error)$/);\n fallback = (start && start[1]) || '';\n len = fallback.length;\n fallback = fallback || 'Error';\n }\n const prefix = getPrefix(constructor\x2C tag\x2C fallback).slice(0\x2C -1);\n if (name !== prefix) {\n if (prefix.includes(name)) {\n if (len === 0) {\n stack = `${prefix}: ${stack}`;\n } else {\n stack = `${prefix}${stack.slice(len)}`;\n }\n } else {\n stack = `${prefix} [${name}]${stack.slice(len)}`;\n }\n }\n }\n // Ignore the error message if it's contained in the stack.\n let pos = (err.message && stack.indexOf(err.message)) || -1;\n if (pos !== -1)\n pos += err.message.length;\n // Wrap the error in brackets in case it has no stack trace.\n const stackStart = stack.indexOf('\\n at'\x2C pos);\n if (stackStart === -1) {\n stack = `[${stack}]`;\n } else if (ctx.colors) {\n // Highlight userland code and node modules.\n let newStack = stack.slice(0\x2C stackStart);\n const lines = stack.slice(stackStart + 1).split('\\n');\n for (const line of lines) {\n const core = line.match(coreModuleRegExp);\n if (core !== null && NativeModule.exists(core[1])) {\n newStack += `\\n${ctx.stylize(line\x2C 'undefined')}`;\n } else {\n // This adds underscores to all node_modules to quickly identify them.\n let nodeModule;\n newStack += '\\n';\n let pos = 0;\n while (nodeModule = nodeModulesRegExp.exec(line)) {\n // '/node_modules/'.length === 14\n newStack += line.slice(pos\x2C nodeModule.index + 14);\n newStack += ctx.stylize(nodeModule[1]\x2C 'module');\n pos = nodeModule.index + nodeModule[0].length;\n }\n newStack += pos === 0 ? line : line.slice(pos);\n }\n }\n stack = newStack;\n }\n // The message and the stack have to be indented as well!\n if (ctx.indentationLvl !== 0) {\n const indentation = ' '.repeat(ctx.indentationLvl);\n stack = stack.replace(/\\n/g\x2C `\\n${indentation}`);\n }\n return stack;\n}\n\nfunction groupArrayElements(ctx\x2C output\x2C value) {\n let totalLength = 0;\n let maxLength = 0;\n let i = 0;\n let outputLength = output.length;\n if (ctx.maxArrayLength < output.length) {\n // This makes sure the "... n more items" part is not taken into account.\n outputLength--;\n }\n const separatorSpace = 2; // Add 1 for the space and 1 for the separator.\n const dataLen = new Array(outputLength);\n // Calculate the total length of all output entries and the individual max\n // entries length of all output entries. We have to remove colors first\x2C\n // otherwise the length would not be calculated properly.\n for (; i < outputLength; i++) {\n const len = getStringWidth(output[i]\x2C ctx.colors);\n dataLen[i] = len;\n totalLength += len + separatorSpace;\n if (maxLength < len)\n maxLength = len;\n }\n // Add two to `maxLength` as we add a single whitespace character plus a comma\n // in-between two entries.\n const actualMax = maxLength + separatorSpace;\n // Check if at least three entries fit next to each other and prevent grouping\n // of arrays that contains entries of very different length (i.e.\x2C if a single\n // entry is longer than 1/5 of all other entries combined). Otherwise the\n // space in-between small entries would be enormous.\n if (actualMax * 3 + ctx.indentationLvl < ctx.breakLength &&\n (totalLength / actualMax > 5 || maxLength <= 6)) {\n\n const approxCharHeights = 2.5;\n const averageBias = MathSqrt(actualMax - totalLength / output.length);\n const biasedMax = MathMax(actualMax - 3 - averageBias\x2C 1);\n // Dynamically check how many columns seem possible.\n const columns = MathMin(\n // Ideally a square should be drawn. We expect a character to be about 2.5\n // times as high as wide. This is the area formula to calculate a square\n // which contains n rectangles of size `actualMax * approxCharHeights`.\n // Divide that by `actualMax` to receive the correct number of columns.\n // The added bias increases the columns for short entries.\n MathRound(\n MathSqrt(\n approxCharHeights * biasedMax * outputLength\n ) / biasedMax\n )\x2C\n // Do not exceed the breakLength.\n MathFloor((ctx.breakLength - ctx.indentationLvl) / actualMax)\x2C\n // Limit array grouping for small `compact` modes as the user requested\n // minimal grouping.\n ctx.compact * 4\x2C\n // Limit the columns to a maximum of fifteen.\n 15\n );\n // Return with the original output if no grouping should happen.\n if (columns <= 1) {\n return output;\n }\n const tmp = [];\n const maxLineLength = [];\n for (let i = 0; i < columns; i++) {\n let lineMaxLength = 0;\n for (let j = i; j < output.length; j += columns) {\n if (dataLen[j] > lineMaxLength)\n lineMaxLength = dataLen[j];\n }\n lineMaxLength += separatorSpace;\n maxLineLength[i] = lineMaxLength;\n }\n let order = StringPrototypePadStart;\n if (value !== undefined) {\n for (let i = 0; i < output.length; i++) {\n if (typeof value[i] !== 'number' && typeof value[i] !== 'bigint') {\n order = StringPrototypePadEnd;\n break;\n }\n }\n }\n // Each iteration creates a single line of grouped entries.\n for (let i = 0; i < outputLength; i += columns) {\n // The last lines may contain less entries than columns.\n const max = MathMin(i + columns\x2C outputLength);\n let str = '';\n let j = i;\n for (; j < max - 1; j++) {\n // Calculate extra color padding in case it's active. This has to be\n // done line by line as some lines might contain more colors than\n // others.\n const padding = maxLineLength[j - i] + output[j].length - dataLen[j];\n str += order(`${output[j]}\x2C `\x2C padding\x2C ' ');\n }\n if (order === StringPrototypePadStart) {\n const padding = maxLineLength[j - i] +\n output[j].length -\n dataLen[j] -\n separatorSpace;\n str += StringPrototypePadStart(output[j]\x2C padding\x2C ' ');\n } else {\n str += output[j];\n }\n ArrayPrototypePush(tmp\x2C str);\n }\n if (ctx.maxArrayLength < output.length) {\n ArrayPrototypePush(tmp\x2C output[outputLength]);\n }\n output = tmp;\n }\n return output;\n}\n\nfunction handleMaxCallStackSize(ctx\x2C err\x2C constructorName\x2C indentationLvl) {\n if (isStackOverflowError(err)) {\n ctx.seen.pop();\n ctx.indentationLvl = indentationLvl;\n return ctx.stylize(\n `[${constructorName}: Inspection interrupted ` +\n 'prematurely. Maximum call stack size exceeded.]'\x2C\n 'special'\n );\n }\n /* c8 ignore next */\n assert.fail(err.stack);\n}\n\nfunction formatNumber(fn\x2C value) {\n // Format -0 as '-0'. Checking `value === -0` won't distinguish 0 from -0.\n return fn(ObjectIs(value\x2C -0) ? '-0' : `${value}`\x2C 'number');\n}\n\nfunction formatBigInt(fn\x2C value) {\n return fn(`${value}n`\x2C 'bigint');\n}\n\nfunction formatPrimitive(fn\x2C value\x2C ctx) {\n if (typeof value === 'string') {\n let trailer = '';\n if (value.length > ctx.maxStringLength) {\n const remaining = value.length - ctx.maxStringLength;\n value = value.slice(0\x2C ctx.maxStringLength);\n trailer = `... ${remaining} more character${remaining > 1 ? 's' : ''}`;\n }\n if (ctx.compact !== true &&\n // TODO(BridgeAR): Add unicode support. Use the readline getStringWidth\n // function.\n value.length > kMinLineLength &&\n value.length > ctx.breakLength - ctx.indentationLvl - 4) {\n return value\n .split(/(?<=\\n)/)\n .map((line) => fn(strEscape(line)\x2C 'string'))\n .join(` +\\n${' '.repeat(ctx.indentationLvl + 2)}`) + trailer;\n }\n return fn(strEscape(value)\x2C 'string') + trailer;\n }\n if (typeof value === 'number')\n return formatNumber(fn\x2C value);\n if (typeof value === 'bigint')\n return formatBigInt(fn\x2C value);\n if (typeof value === 'boolean')\n return fn(`${value}`\x2C 'boolean');\n if (typeof value === 'undefined')\n return fn('undefined'\x2C 'undefined');\n // es6 symbol primitive\n return fn(SymbolPrototypeToString(value)\x2C 'symbol');\n}\n\nfunction formatNamespaceObject(keys\x2C ctx\x2C value\x2C recurseTimes) {\n const output = new Array(keys.length);\n for (let i = 0; i < keys.length; i++) {\n try {\n output[i] = formatProperty(ctx\x2C value\x2C recurseTimes\x2C keys[i]\x2C\n kObjectType);\n } catch (err) {\n assert(isNativeError(err) && err.name === 'ReferenceError');\n // Use the existing functionality. This makes sure the indentation and\n // line breaks are always correct. Otherwise it is very difficult to keep\n // this aligned\x2C even though this is a hacky way of dealing with this.\n const tmp = { [keys[i]]: '' };\n output[i] = formatProperty(ctx\x2C tmp\x2C recurseTimes\x2C keys[i]\x2C kObjectType);\n const pos = output[i].lastIndexOf(' ');\n // We have to find the last whitespace and have to replace that value as\n // it will be visualized as a regular string.\n output[i] = output[i].slice(0\x2C pos + 1) +\n ctx.stylize('<uninitialized>'\x2C 'special');\n }\n }\n // Reset the keys to an empty array. This prevents duplicated inspection.\n keys.length = 0;\n return output;\n}\n\n// The array is sparse and/or has extra keys\nfunction formatSpecialArray(ctx\x2C value\x2C recurseTimes\x2C maxLength\x2C output\x2C i) {\n const keys = ObjectKeys(value);\n let index = i;\n for (; i < keys.length && output.length < maxLength; i++) {\n const key = keys[i];\n const tmp = +key;\n // Arrays can only have up to 2^32 - 1 entries\n if (tmp > 2 ** 32 - 2) {\n break;\n }\n if (`${index}` !== key) {\n if (!numberRegExp.test(key)) {\n break;\n }\n const emptyItems = tmp - index;\n const ending = emptyItems > 1 ? 's' : '';\n const message = `<${emptyItems} empty item${ending}>`;\n output.push(ctx.stylize(message\x2C 'undefined'));\n index = tmp;\n if (output.length === maxLength) {\n break;\n }\n }\n output.push(formatProperty(ctx\x2C value\x2C recurseTimes\x2C key\x2C kArrayType));\n index++;\n }\n const remaining = value.length - index;\n if (output.length !== maxLength) {\n if (remaining > 0) {\n const ending = remaining > 1 ? 's' : '';\n const message = `<${remaining} empty item${ending}>`;\n output.push(ctx.stylize(message\x2C 'undefined'));\n }\n } else if (remaining > 0) {\n output.push(`... ${remaining} more item${remaining > 1 ? 's' : ''}`);\n }\n return output;\n}\n\nfunction formatArrayBuffer(ctx\x2C value) {\n let buffer;\n try {\n buffer = new Uint8Array(value);\n } catch {\n return [ctx.stylize('(detached)'\x2C 'special')];\n }\n if (hexSlice === undefined)\n hexSlice = uncurryThis(require('buffer').Buffer.prototype.hexSlice);\n let str = StringPrototypeTrim(StringPrototypeReplace(\n hexSlice(buffer\x2C 0\x2C MathMin(ctx.maxArrayLength\x2C buffer.length))\x2C\n /(.{2})/g\x2C '$1 '));\n const remaining = buffer.length - ctx.maxArrayLength;\n if (remaining > 0)\n str += ` ... ${remaining} more byte${remaining > 1 ? 's' : ''}`;\n return [`${ctx.stylize('[Uint8Contents]'\x2C 'special')}: <${str}>`];\n}\n\nfunction formatArray(ctx\x2C value\x2C recurseTimes) {\n const valLen = value.length;\n const len = MathMin(MathMax(0\x2C ctx.maxArrayLength)\x2C valLen);\n\n const remaining = valLen - len;\n const output = [];\n for (let i = 0; i < len; i++) {\n // Special handle sparse arrays.\n if (!ObjectPrototypeHasOwnProperty(value\x2C i)) {\n return formatSpecialArray(ctx\x2C value\x2C recurseTimes\x2C len\x2C output\x2C i);\n }\n output.push(formatProperty(ctx\x2C value\x2C recurseTimes\x2C i\x2C kArrayType));\n }\n if (remaining > 0)\n output.push(`... ${remaining} more item${remaining > 1 ? 's' : ''}`);\n return output;\n}\n\nfunction formatTypedArray(value\x2C length\x2C ctx\x2C ignored\x2C recurseTimes) {\n const maxLength = MathMin(MathMax(0\x2C ctx.maxArrayLength)\x2C length);\n const remaining = value.length - maxLength;\n const output = new Array(maxLength);\n const elementFormatter = value.length > 0 && typeof value[0] === 'number' ?\n formatNumber :\n formatBigInt;\n for (let i = 0; i < maxLength; ++i)\n output[i] = elementFormatter(ctx.stylize\x2C value[i]);\n if (remaining > 0) {\n output[maxLength] = `... ${remaining} more item${remaining > 1 ? 's' : ''}`;\n }\n if (ctx.showHidden) {\n // .buffer goes last\x2C it's not a primitive like the others.\n // All besides `BYTES_PER_ELEMENT` are actually getters.\n ctx.indentationLvl += 2;\n for (const key of [\n 'BYTES_PER_ELEMENT'\x2C\n 'length'\x2C\n 'byteLength'\x2C\n 'byteOffset'\x2C\n 'buffer'\x2C\n ]) {\n const str = formatValue(ctx\x2C value[key]\x2C recurseTimes\x2C true);\n ArrayPrototypePush(output\x2C `[${key}]: ${str}`);\n }\n ctx.indentationLvl -= 2;\n }\n return output;\n}\n\nfunction formatSet(value\x2C ctx\x2C ignored\x2C recurseTimes) {\n const output = [];\n ctx.indentationLvl += 2;\n for (const v of value) {\n ArrayPrototypePush(output\x2C formatValue(ctx\x2C v\x2C recurseTimes));\n }\n ctx.indentationLvl -= 2;\n return output;\n}\n\nfunction formatMap(value\x2C ctx\x2C ignored\x2C recurseTimes) {\n const output = [];\n ctx.indentationLvl += 2;\n for (const { 0: k\x2C 1: v } of value) {\n output.push(\n `${formatValue(ctx\x2C k\x2C recurseTimes)} => ${formatValue(ctx\x2C v\x2C recurseTimes)}`\n );\n }\n ctx.indentationLvl -= 2;\n return output;\n}\n\nfunction formatSetIterInner(ctx\x2C recurseTimes\x2C entries\x2C state) {\n const maxArrayLength = MathMax(ctx.maxArrayLength\x2C 0);\n const maxLength = MathMin(maxArrayLength\x2C entries.length);\n const output = new Array(maxLength);\n ctx.indentationLvl += 2;\n for (let i = 0; i < maxLength; i++) {\n output[i] = formatValue(ctx\x2C entries[i]\x2C recurseTimes);\n }\n ctx.indentationLvl -= 2;\n if (state === kWeak && !ctx.sorted) {\n // Sort all entries to have a halfway reliable output (if more entries than\n // retrieved ones exist\x2C we can not reliably return the same output) if the\n // output is not sorted anyway.\n ArrayPrototypeSort(output);\n }\n const remaining = entries.length - maxLength;\n if (remaining > 0) {\n ArrayPrototypePush(output\x2C\n `... ${remaining} more item${remaining > 1 ? 's' : ''}`);\n }\n return output;\n}\n\nfunction formatMapIterInner(ctx\x2C recurseTimes\x2C entries\x2C state) {\n const maxArrayLength = MathMax(ctx.maxArrayLength\x2C 0);\n // Entries exist as [key1\x2C val1\x2C key2\x2C val2\x2C ...]\n const len = entries.length / 2;\n const remaining = len - maxArrayLength;\n const maxLength = MathMin(maxArrayLength\x2C len);\n let output = new Array(maxLength);\n let i = 0;\n ctx.indentationLvl += 2;\n if (state === kWeak) {\n for (; i < maxLength; i++) {\n const pos = i * 2;\n output[i] =\n `${formatValue(ctx\x2C entries[pos]\x2C recurseTimes)} => ${formatValue(ctx\x2C entries[pos + 1]\x2C recurseTimes)}`;\n }\n // Sort all entries to have a halfway reliable output (if more entries than\n // retrieved ones exist\x2C we can not reliably return the same output) if the\n // output is not sorted anyway.\n if (!ctx.sorted)\n output = output.sort();\n } else {\n for (; i < maxLength; i++) {\n const pos = i * 2;\n const res = [\n formatValue(ctx\x2C entries[pos]\x2C recurseTimes)\x2C\n formatValue(ctx\x2C entries[pos + 1]\x2C recurseTimes)\x2C\n ];\n output[i] = reduceToSingleString(\n ctx\x2C res\x2C ''\x2C ['['\x2C ']']\x2C kArrayExtrasType\x2C recurseTimes);\n }\n }\n ctx.indentationLvl -= 2;\n if (remaining > 0) {\n output.push(`... ${remaining} more item${remaining > 1 ? 's' : ''}`);\n }\n return output;\n}\n\nfunction formatWeakCollection(ctx) {\n return [ctx.stylize('<items unknown>'\x2C 'special')];\n}\n\nfunction formatWeakSet(ctx\x2C value\x2C recurseTimes) {\n const entries = previewEntries(value);\n return formatSetIterInner(ctx\x2C recurseTimes\x2C entries\x2C kWeak);\n}\n\nfunction formatWeakMap(ctx\x2C value\x2C recurseTimes) {\n const entries = previewEntries(value);\n return formatMapIterInner(ctx\x2C recurseTimes\x2C entries\x2C kWeak);\n}\n\nfunction formatIterator(braces\x2C ctx\x2C value\x2C recurseTimes) {\n const { 0: entries\x2C 1: isKeyValue } = previewEntries(value\x2C true);\n if (isKeyValue) {\n // Mark entry iterators as such.\n braces[0] = braces[0].replace(/ Iterator] {$/\x2C ' Entries] {');\n return formatMapIterInner(ctx\x2C recurseTimes\x2C entries\x2C kMapEntries);\n }\n\n return formatSetIterInner(ctx\x2C recurseTimes\x2C entries\x2C kIterator);\n}\n\nfunction formatPromise(ctx\x2C value\x2C recurseTimes) {\n let output;\n const { 0: state\x2C 1: result } = getPromiseDetails(value);\n if (state === kPending) {\n output = [ctx.stylize('<pending>'\x2C 'special')];\n } else {\n ctx.indentationLvl += 2;\n const str = formatValue(ctx\x2C result\x2C recurseTimes);\n ctx.indentationLvl -= 2;\n output = [\n state === kRejected ?\n `${ctx.stylize('<rejected>'\x2C 'special')} ${str}` :\n str\x2C\n ];\n }\n return output;\n}\n\nfunction formatProperty(ctx\x2C value\x2C recurseTimes\x2C key\x2C type\x2C desc\x2C\n original = value) {\n let name\x2C str;\n let extra = ' ';\n desc = desc || ObjectGetOwnPropertyDescriptor(value\x2C key) ||\n { value: value[key]\x2C enumerable: true };\n if (desc.value !== undefined) {\n const diff = (ctx.compact !== true || type !== kObjectType) ? 2 : 3;\n ctx.indentationLvl += diff;\n str = formatValue(ctx\x2C desc.value\x2C recurseTimes);\n if (diff === 3 && ctx.breakLength < getStringWidth(str\x2C ctx.colors)) {\n extra = `\\n${' '.repeat(ctx.indentationLvl)}`;\n }\n ctx.indentationLvl -= diff;\n } else if (desc.get !== undefined) {\n const label = desc.set !== undefined ? 'Getter/Setter' : 'Getter';\n const s = ctx.stylize;\n const sp = 'special';\n if (ctx.getters && (ctx.getters === true ||\n (ctx.getters === 'get' && desc.set === undefined) ||\n (ctx.getters === 'set' && desc.set !== undefined))) {\n try {\n const tmp = FunctionPrototypeCall(desc.get\x2C original);\n ctx.indentationLvl += 2;\n if (tmp === null) {\n str = `${s(`[${label}:`\x2C sp)} ${s('null'\x2C 'null')}${s(']'\x2C sp)}`;\n } else if (typeof tmp === 'object') {\n str = `${s(`[${label}]`\x2C sp)} ${formatValue(ctx\x2C tmp\x2C recurseTimes)}`;\n } else {\n const primitive = formatPrimitive(s\x2C tmp\x2C ctx);\n str = `${s(`[${label}:`\x2C sp)} ${primitive}${s(']'\x2C sp)}`;\n }\n ctx.indentationLvl -= 2;\n } catch (err) {\n const message = `<Inspection threw (${err.message})>`;\n str = `${s(`[${label}:`\x2C sp)} ${message}${s(']'\x2C sp)}`;\n }\n } else {\n str = ctx.stylize(`[${label}]`\x2C sp);\n }\n } else if (desc.set !== undefined) {\n str = ctx.stylize('[Setter]'\x2C 'special');\n } else {\n str = ctx.stylize('undefined'\x2C 'undefined');\n }\n if (type === kArrayType) {\n return str;\n }\n if (typeof key === 'symbol') {\n const tmp = StringPrototypeReplace(\n SymbolPrototypeToString(key)\x2C\n strEscapeSequencesReplacer\x2C escapeFn\n );\n name = `[${ctx.stylize(tmp\x2C 'symbol')}]`;\n } else if (key === '__proto__') {\n name = "['__proto__']";\n } else if (desc.enumerable === false) {\n const tmp = StringPrototypeReplace(key\x2C\n strEscapeSequencesReplacer\x2C escapeFn);\n name = `[${tmp}]`;\n } else if (RegExpPrototypeTest(keyStrRegExp\x2C key)) {\n name = ctx.stylize(key\x2C 'name');\n } else {\n name = ctx.stylize(strEscape(key)\x2C 'string');\n }\n return `${name}:${extra}${str}`;\n}\n\nfunction isBelowBreakLength(ctx\x2C output\x2C start\x2C base) {\n // Each entry is separated by at least a comma. Thus\x2C we start with a total\n // length of at least `output.length`. In addition\x2C some cases have a\n // whitespace in-between each other that is added to the total as well.\n // TODO(BridgeAR): Add unicode support. Use the readline getStringWidth\n // function. Check the performance overhead and make it an opt-in in case it's\n // significant.\n let totalLength = output.length + start;\n if (totalLength + output.length > ctx.breakLength)\n return false;\n for (let i = 0; i < output.length; i++) {\n if (ctx.colors) {\n totalLength += removeColors(output[i]).length;\n } else {\n totalLength += output[i].length;\n }\n if (totalLength > ctx.breakLength) {\n return false;\n }\n }\n // Do not line up properties on the same line if `base` contains line breaks.\n return base === '' || !StringPrototypeIncludes(base\x2C '\\n');\n}\n\nfunction reduceToSingleString(\n ctx\x2C output\x2C base\x2C braces\x2C extrasType\x2C recurseTimes\x2C value) {\n if (ctx.compact !== true) {\n if (typeof ctx.compact === 'number' && ctx.compact >= 1) {\n // Memorize the original output length. In case the output is grouped\x2C\n // prevent lining up the entries on a single line.\n const entries = output.length;\n // Group array elements together if the array contains at least six\n // separate entries.\n if (extrasType === kArrayExtrasType && entries > 6) {\n output = groupArrayElements(ctx\x2C output\x2C value);\n }\n // `ctx.currentDepth` is set to the most inner depth of the currently\n // inspected object part while `recurseTimes` is the actual current depth\n // that is inspected.\n //\n // Example:\n //\n // const a = { first: [ 1\x2C 2\x2C 3 ]\x2C second: { inner: [ 1\x2C 2\x2C 3 ] } }\n //\n // The deepest depth of `a` is 2 (a.second.inner) and `a.first` has a max\n // depth of 1.\n //\n // Consolidate all entries of the local most inner depth up to\n // `ctx.compact`\x2C as long as the properties are smaller than\n // `ctx.breakLength`.\n if (ctx.currentDepth - recurseTimes < ctx.compact &&\n entries === output.length) {\n // Line up all entries on a single line in case the entries do not\n // exceed `breakLength`. Add 10 as constant to start next to all other\n // factors that may reduce `breakLength`.\n const start = output.length + ctx.indentationLvl +\n braces[0].length + base.length + 10;\n if (isBelowBreakLength(ctx\x2C output\x2C start\x2C base)) {\n return `${base ? `${base} ` : ''}${braces[0]} ${join(output\x2C '\x2C ')}` +\n ` ${braces[1]}`;\n }\n }\n }\n // Line up each entry on an individual line.\n const indentation = `\\n${StringPrototypeRepeat(' '\x2C ctx.indentationLvl)}`;\n return `${base ? `${base} ` : ''}${braces[0]}${indentation} ` +\n `${join(output\x2C `\x2C${indentation} `)}${indentation}${braces[1]}`;\n }\n // Line up all entries on a single line in case the entries do not exceed\n // `breakLength`.\n if (isBelowBreakLength(ctx\x2C output\x2C 0\x2C base)) {\n return `${braces[0]}${base ? ` ${base}` : ''} ${join(output\x2C '\x2C ')} ` +\n braces[1];\n }\n const indentation = StringPrototypeRepeat(' '\x2C ctx.indentationLvl);\n // If the opening "brace" is too large\x2C like in the case of "Set {"\x2C\n // we need to force the first item to be on the next line or the\n // items will not line up correctly.\n const ln = base === '' && braces[0].length === 1 ?\n ' ' : `${base ? ` ${base}` : ''}\\n${indentation} `;\n // Line up each entry on an individual line.\n return `${braces[0]}${ln}${join(output\x2C `\x2C\\n${indentation} `)} ${braces[1]}`;\n}\n\nfunction hasBuiltInToString(value) {\n // Prevent triggering proxy traps.\n const getFullProxy = false;\n const proxyTarget = getProxyDetails(value\x2C getFullProxy);\n if (proxyTarget !== undefined) {\n value = proxyTarget;\n }\n\n // Count objects that have no `toString` function as built-in.\n if (typeof value.toString !== 'function') {\n return true;\n }\n\n // The object has a own `toString` property. Thus it's not not a built-in one.\n if (ObjectPrototypeHasOwnProperty(value\x2C 'toString')) {\n return false;\n }\n\n // Find the object that has the `toString` property as own property in the\n // prototype chain.\n let pointer = value;\n do {\n pointer = ObjectGetPrototypeOf(pointer);\n } while (!ObjectPrototypeHasOwnProperty(pointer\x2C 'toString'));\n\n // Check closer if the object is a built-in.\n const descriptor = ObjectGetOwnPropertyDescriptor(pointer\x2C 'constructor');\n return descriptor !== undefined &&\n typeof descriptor.value === 'function' &&\n builtInObjects.has(descriptor.value.name);\n}\n\nconst firstErrorLine = (error) =>\n StringPrototypeSplit(error.message\x2C '\\n'\x2C 1)[0];\nlet CIRCULAR_ERROR_MESSAGE;\nfunction tryStringify(arg) {\n try {\n return JSONStringify(arg);\n } catch (err) {\n // Populate the circular error message lazily\n if (!CIRCULAR_ERROR_MESSAGE) {\n try {\n const a = {}; a.a = a; JSONStringify(a);\n } catch (err) {\n CIRCULAR_ERROR_MESSAGE = firstErrorLine(err);\n }\n }\n if (err.name === 'TypeError' &&\n firstErrorLine(err) === CIRCULAR_ERROR_MESSAGE) {\n return '[Circular]';\n }\n throw err;\n }\n}\n\nfunction format(...args) {\n return formatWithOptionsInternal(undefined\x2C args);\n}\n\nfunction formatWithOptions(inspectOptions\x2C ...args) {\n if (typeof inspectOptions !== 'object' || inspectOptions === null) {\n throw new ERR_INVALID_ARG_TYPE(\n 'inspectOptions'\x2C 'object'\x2C inspectOptions);\n }\n return formatWithOptionsInternal(inspectOptions\x2C args);\n}\n\nfunction formatWithOptionsInternal(inspectOptions\x2C args) {\n const first = args[0];\n let a = 0;\n let str = '';\n let join = '';\n\n if (typeof first === 'string') {\n if (args.length === 1) {\n return first;\n }\n let tempStr;\n let lastPos = 0;\n\n for (let i = 0; i < first.length - 1; i++) {\n if (StringPrototypeCharCodeAt(first\x2C i) === 37) { // '%'\n const nextChar = StringPrototypeCharCodeAt(first\x2C ++i);\n if (a + 1 !== args.length) {\n switch (nextChar) {\n case 115: // 's'\n const tempArg = args[++a];\n if (typeof tempArg === 'number') {\n tempStr = formatNumber(stylizeNoColor\x2C tempArg);\n } else if (typeof tempArg === 'bigint') {\n tempStr = `${tempArg}n`;\n } else if (typeof tempArg !== 'object' ||\n tempArg === null ||\n !hasBuiltInToString(tempArg)) {\n tempStr = String(tempArg);\n } else {\n tempStr = inspect(tempArg\x2C {\n ...inspectOptions\x2C\n compact: 3\x2C\n colors: false\x2C\n depth: 0\n });\n }\n break;\n case 106: // 'j'\n tempStr = tryStringify(args[++a]);\n break;\n case 100: // 'd'\n const tempNum = args[++a];\n if (typeof tempNum === 'bigint') {\n tempStr = `${tempNum}n`;\n } else if (typeof tempNum === 'symbol') {\n tempStr = 'NaN';\n } else {\n tempStr = formatNumber(stylizeNoColor\x2C Number(tempNum));\n }\n break;\n case 79: // 'O'\n tempStr = inspect(args[++a]\x2C inspectOptions);\n break;\n case 111: // 'o'\n tempStr = inspect(args[++a]\x2C {\n ...inspectOptions\x2C\n showHidden: true\x2C\n showProxy: true\x2C\n depth: 4\n });\n break;\n case 105: // 'i'\n const tempInteger = args[++a];\n if (typeof tempInteger === 'bigint') {\n tempStr = `${tempInteger}n`;\n } else if (typeof tempInteger === 'symbol') {\n tempStr = 'NaN';\n } else {\n tempStr = formatNumber(stylizeNoColor\x2C\n NumberParseInt(tempInteger));\n }\n break;\n case 102: // 'f'\n const tempFloat = args[++a];\n if (typeof tempFloat === 'symbol') {\n tempStr = 'NaN';\n } else {\n tempStr = formatNumber(stylizeNoColor\x2C\n NumberParseFloat(tempFloat));\n }\n break;\n case 99: // 'c'\n a += 1;\n tempStr = '';\n break;\n case 37: // '%'\n str += StringPrototypeSlice(first\x2C lastPos\x2C i);\n lastPos = i + 1;\n continue;\n default: // Any other character is not a correct placeholder\n continue;\n }\n if (lastPos !== i - 1) {\n str += StringPrototypeSlice(first\x2C lastPos\x2C i - 1);\n }\n str += tempStr;\n lastPos = i + 1;\n } else if (nextChar === 37) {\n str += StringPrototypeSlice(first\x2C lastPos\x2C i);\n lastPos = i + 1;\n }\n }\n }\n if (lastPos !== 0) {\n a++;\n join = ' ';\n if (lastPos < first.length) {\n str += StringPrototypeSlice(first\x2C lastPos);\n }\n }\n }\n\n while (a < args.length) {\n const value = args[a];\n str += join;\n str += typeof value !== 'string' ? inspect(value\x2C inspectOptions) : value;\n join = ' ';\n a++;\n }\n return str;\n}\n\nif (internalBinding('config').hasIntl) {\n const icu = internalBinding('icu');\n // icu.getStringWidth(string\x2C ambiguousAsFullWidth\x2C expandEmojiSequence)\n // Defaults: ambiguousAsFullWidth = false; expandEmojiSequence = true;\n // TODO(BridgeAR): Expose the options to the user. That is probably the\n // best thing possible at the moment\x2C since it's difficult to know what\n // the receiving end supports.\n getStringWidth = function getStringWidth(str\x2C removeControlChars = true) {\n let width = 0;\n\n if (removeControlChars)\n str = stripVTControlCharacters(str);\n for (let i = 0; i < str.length; i++) {\n // Try to avoid calling into C++ by first handling the ASCII portion of\n // the string. If it is fully ASCII\x2C we skip the C++ part.\n const code = str.charCodeAt(i);\n if (code >= 127) {\n width += icu.getStringWidth(str.slice(i).normalize('NFC'));\n break;\n }\n width += code >= 32 ? 1 : 0;\n }\n return width;\n };\n} else {\n /**\n * Returns the number of columns required to display the given string.\n */\n getStringWidth = function getStringWidth(str\x2C removeControlChars = true) {\n let width = 0;\n\n if (removeControlChars)\n str = stripVTControlCharacters(str);\n str = StringPrototypeNormalize(str\x2C 'NFC');\n for (const char of new SafeStringIterator(str)) {\n const code = StringPrototypeCodePointAt(char\x2C 0);\n if (isFullWidthCodePoint(code)) {\n width += 2;\n } else if (!isZeroWidthCodePoint(code)) {\n width++;\n }\n }\n\n return width;\n };\n\n /**\n * Returns true if the character represented by a given\n * Unicode code point is full-width. Otherwise returns false.\n */\n const isFullWidthCodePoint = (code) => {\n // Code points are partially derived from:\n // https://www.unicode.org/Public/UNIDATA/EastAsianWidth.txt\n return code >= 0x1100 && (\n code <= 0x115f || // Hangul Jamo\n code === 0x2329 || // LEFT-POINTING ANGLE BRACKET\n code === 0x232a || // RIGHT-POINTING ANGLE BRACKET\n // CJK Radicals Supplement .. Enclosed CJK Letters and Months\n (code >= 0x2e80 && code <= 0x3247 && code !== 0x303f) ||\n // Enclosed CJK Letters and Months .. CJK Unified Ideographs Extension A\n (code >= 0x3250 && code <= 0x4dbf) ||\n // CJK Unified Ideographs .. Yi Radicals\n (code >= 0x4e00 && code <= 0xa4c6) ||\n // Hangul Jamo Extended-A\n (code >= 0xa960 && code <= 0xa97c) ||\n // Hangul Syllables\n (code >= 0xac00 && code <= 0xd7a3) ||\n // CJK Compatibility Ideographs\n (code >= 0xf900 && code <= 0xfaff) ||\n // Vertical Forms\n (code >= 0xfe10 && code <= 0xfe19) ||\n // CJK Compatibility Forms .. Small Form Variants\n (code >= 0xfe30 && code <= 0xfe6b) ||\n // Halfwidth and Fullwidth Forms\n (code >= 0xff01 && code <= 0xff60) ||\n (code >= 0xffe0 && code <= 0xffe6) ||\n // Kana Supplement\n (code >= 0x1b000 && code <= 0x1b001) ||\n // Enclosed Ideographic Supplement\n (code >= 0x1f200 && code <= 0x1f251) ||\n // Miscellaneous Symbols and Pictographs 0x1f300 - 0x1f5ff\n // Emoticons 0x1f600 - 0x1f64f\n (code >= 0x1f300 && code <= 0x1f64f) ||\n // CJK Unified Ideographs Extension B .. Tertiary Ideographic Plane\n (code >= 0x20000 && code <= 0x3fffd)\n );\n };\n\n const isZeroWidthCodePoint = (code) => {\n return code <= 0x1F || // C0 control codes\n (code >= 0x7F && code <= 0x9F) || // C1 control codes\n (code >= 0x300 && code <= 0x36F) || // Combining Diacritical Marks\n (code >= 0x200B && code <= 0x200F) || // Modifying Invisible Characters\n // Combining Diacritical Marks for Symbols\n (code >= 0x20D0 && code <= 0x20FF) ||\n (code >= 0xFE00 && code <= 0xFE0F) || // Variation Selectors\n (code >= 0xFE20 && code <= 0xFE2F) || // Combining Half Marks\n (code >= 0xE0100 && code <= 0xE01EF); // Variation Selectors\n };\n}\n\n/**\n * Remove all VT control characters. Use to estimate displayed string width.\n */\nfunction stripVTControlCharacters(str) {\n return str.replace(ansi\x2C '');\n}\n\nmodule.exports = {\n inspect\x2C\n format\x2C\n formatWithOptions\x2C\n getStringWidth\x2C\n inspectDefaultOptions\x2C\n stripVTControlCharacters\n};\n
code-source-info,0xb6d5356d6d6,14,63597,63846,C0O63597C8O63627C18O63700C34O63706C39O63700C40O63789C43O63796C48O63844,,
code-creation,LazyCompile,10,72413,0xb6d53571c36,855,formatWithOptionsInternal node:internal/util/inspect:1889:35,0x38b4b3b15f20,~
code-source-info,0xb6d53571c36,14,63882,67725,C0O63923C1O63927C5O63942C7O63957C10O63974C13O63981C19O64027C26O64034C31O64049C33O64062C34O64077C36O64104C38O64125C40O64138C44O64145C47O64130C52O64163C57O64167C65O64203C70O64245C77O64271C80O64245C86O64292C88O64298C92O64311C96O64302C112O64331C180O64410C185O64414C189O64435C195O64486C204O64525C206O64496C214O64556C222O64607C236O64653C246O64713C255O64778C257O64759C263O64806C270O64823C272O64816C279O64872C284O64890C286O64922C294O64965C299O64994C304O65026C308O64882C314O65078C316O65128C321O65151C324O65155C329O65138C334O65177C336O65243C341O65247C345O65268C351O65319C365O65365C373O65416C378O65472C387O65511C393O65518C395O65511C401O65482C407O65559C409O65608C414O65626C417O65630C422O65618C428O65668C430O65718C435O65736C438O65740C443O65768C450O65812C455O65845C461O65874C465O65728C471O65908C473O65978C478O65982C482O66003C488O66058C502O66108C510O66163C515O66219C524O66297C530O66312C532O66297C538O66229C544O66357C546O66425C551O66429C555O66450C561O66503C566O66559C575O66637C581O66654C583O66637C589O66569C595O66697C597O66746C603O66768C606O66796C608O66845C610O66852C623O66852C635O66907C637O66919C641O66938C643O67035C645O67067C647O67085C650O67079C655O67104C657O67111C662O67150C673O67111C685O67178C687O67185C694O67204C696O67216C702O67236C704O67249C709O67269C711O67276C723O67276C735O67327C737O67339C741O64151C746O64112C752O67372C753O67384C758O67399C763O67410C766O67448C770O67440C775O67466C777O67473C780O67473C792O67548C796O67541C801O67576C803O67580C807O67589C809O67596C816O67606C828O67641C837O67674C841O67685C844O67701C849O67532C852O67712C854O67723,,
code-creation,LazyCompile,10,72524,0xb6d535723a6,269,value node:internal/console/constructor:261:20,0x1eac91c075d8,~
code-source-info,0xb6d535723a6,30,7688,9126,C0O7745C5O7786C7O7791C9O7790C13O7831C15O7848C17O7844C21O7881C23O7898C29O7913C34O7949C38O7974C44O8001C49O8045C55O8052C60O8069C68O8073C75O8124C80O8156C90O8176C98O8133C105O8210C107O8231C112O8255C122O8278C123O8295C128O8320C133O8320C138O8334C145O8651C153O8651C160O8674C165O8698C176O8698C182O8735C187O8735C206O8931C216O8935C222O8970C224O8970C238O9075C239O9082C250O9082C268O9125,,
code-creation,LazyCompile,10,72578,0xb6d53572646,31,listenerCount node:events:726:23,0x334c17f32a20,~
code-source-info,0xb6d53572646,13,20678,20946,C0O20709C5O20721C7O20772C9O20778C13O20791C17O20837C19O20846C20O20858C24O20914C28O20921C29O20935C30O20944,,
code-creation,LazyCompile,10,72611,0xb6d53572766,39,once node:events:532:44,0x334c17f326b0,~
code-source-info,0xb6d53572766,13,15429,15542,C0O15450C3O15450C7O15483C24O15492C30O15483C36O15528C38O15540,,
code-creation,LazyCompile,10,72645,0xb6d53572956,60,_onceWrap node:events:518:19,0x334c17f32660,~
code-source-info,0xb6d53572956,13,15002,15225,C0O15045C6O15069C12O15080C18O15088C24O15094C31O15124C34O15136C39O15136C45O15151C47O15168C51O15182C53O15195C57O15208C59O15223,,
code-creation,LazyCompile,10,72708,0xb6d53572b6e,26,Writable.write node:internal/streams/writable:333:36,0x3787ca79ce50,~
code-source-info,0xb6d53572b6e,56,10749,10827,C0O10775C15O10782C22O10816C25O10825,,
code-creation,LazyCompile,10,72790,0xb6d53572d66,338,_write node:internal/streams/writable:283:16,0x3787ca79ce00,~
code-source-info,0xb6d53572d66,56,9383,10712,C0O9438C5O9457C11O9499C14O9535C22O9567C26O9605C34O9631C36O9644C43O9661C46O9668C51O9668C58O9696C65O9702C70O9696C71O9742C77O9778C81O9795C85O9821C90O9827C95O9821C96O9877C102O9895C108O9944C114O9958C119O9979C124O9994C129O9994C137O10025C143O10065C145O10086C147O10075C152O10102C158O10134C163O10145C168O10145C175O10175C180O10190C185O10190C192O10224C198O10264C216O10270C221O10264C222O10374C224O10391C230O10405C235O10411C243O10464C249O10481C259O10487C265O10529C269O10544C272O10552C277O10552C283O10575C296O10575C301O10614C303O10625C304O10632C310O10647C314O10653C332O10660C337O10710,,
code-creation,LazyCompile,10,72867,0xb6d53573156,217,writeOrBuffer node:internal/streams/writable:365:23,0x3787ca79d060,~
code-source-info,0xb6d53573156,56,11668,12659,C0O11733C10O11756C15O11767C22O11783C25O11780C29O11848C34O11863C38O11855C42O11952C44O11966C45O11982C49O12003C55O12020C61O12036C67O12054C73O12079C78O12088C90O12095C96O12102C102O12112C106O12088C111O12139C119O12162C124O12184C125O12201C129O12230C137O12250C142O12267C143O12281C149O12311C151O12326C155O12337C157O12351C161O12367C162O12381C166O12393C167O12404C171O12423C176O12453C190O12423C195O12467C196O12478C200O12608C204O12629C211O12647C216O12657,,
code-creation,LazyCompile,10,72943,0xb6d5357339e,26,Socket._write node:net:791:35,0xb6d535511a8,~
code-source-info,0xb6d5357339e,115,20223,20296,C0O20253C19O20253C25O20295,,
code-creation,LazyCompile,10,72998,0xb6d535735ae,186,Socket._writeGeneric node:net:754:42,0xb6d53551068,~
code-source-info,0xb6d535735ae,115,19333,20086,C0O19333C21O19535C27O19553C29O19571C33O19583C35O19605C39O19626C52O19626C58O19729C59O19736C60O19743C61O19761C65O19771C67O19793C71O19812C77O19827C84O19834C87O19830C93O19827C97O19860C98O19873C99O19886C104O19886C108O19908C110O19915C114O19931C130O19937C138O19979C157O19985C163O20035C169O20046C173O20051C176O20078C180O20072C185O20085,,
code-creation,LazyCompile,10,73037,0xb6d53573826,45,_unrefTimer node:net:402:52,0xb6d53550390,~
code-source-info,0xb6d53573826,115,10820,10930,C0O10840C5O10848C9O10879C11O10885C13O10884C18O10902C20O10904C22O10903C26O10914C31O10914C35O10864C40O10827C44O10929,,
code-creation,LazyCompile,10,73086,0xb6d53573956,55,writeGeneric node:internal/stream_base_commons:147:22,0xe5ca5cedfa8,~
script-source,83,node:internal/stream_base_commons,'use strict';\n\nconst {\n Array\x2C\n Symbol\x2C\n} = primordials;\n\nconst { Buffer } = require('buffer');\nconst { FastBuffer } = require('internal/buffer');\nconst {\n WriteWrap\x2C\n kReadBytesOrError\x2C\n kArrayBufferOffset\x2C\n kBytesWritten\x2C\n kLastWriteWasAsync\x2C\n streamBaseState\n} = internalBinding('stream_wrap');\nconst { UV_EOF } = internalBinding('uv');\nconst {\n errnoException\n} = require('internal/errors');\nconst { owner_symbol } = require('internal/async_hooks').symbols;\nconst {\n kTimeout\x2C\n setUnrefTimeout\x2C\n getTimerDuration\n} = require('internal/timers');\nconst { isUint8Array } = require('internal/util/types');\nconst { clearTimeout } = require('timers');\nconst { validateCallback } = require('internal/validators');\n\nconst kMaybeDestroy = Symbol('kMaybeDestroy');\nconst kUpdateTimer = Symbol('kUpdateTimer');\nconst kAfterAsyncWrite = Symbol('kAfterAsyncWrite');\nconst kHandle = Symbol('kHandle');\nconst kSession = Symbol('kSession');\n\nlet debug = require('internal/util/debuglog').debuglog('stream'\x2C (fn) => {\n debug = fn;\n});\nconst kBuffer = Symbol('kBuffer');\nconst kBufferGen = Symbol('kBufferGen');\nconst kBufferCb = Symbol('kBufferCb');\n\nfunction handleWriteReq(req\x2C data\x2C encoding) {\n const { handle } = req;\n\n switch (encoding) {\n case 'buffer':\n {\n const ret = handle.writeBuffer(req\x2C data);\n if (streamBaseState[kLastWriteWasAsync])\n req.buffer = data;\n return ret;\n }\n case 'latin1':\n case 'binary':\n return handle.writeLatin1String(req\x2C data);\n case 'utf8':\n case 'utf-8':\n return handle.writeUtf8String(req\x2C data);\n case 'ascii':\n return handle.writeAsciiString(req\x2C data);\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return handle.writeUcs2String(req\x2C data);\n default:\n {\n const buffer = Buffer.from(data\x2C encoding);\n const ret = handle.writeBuffer(req\x2C buffer);\n if (streamBaseState[kLastWriteWasAsync])\n req.buffer = buffer;\n return ret;\n }\n }\n}\n\nfunction onWriteComplete(status) {\n debug('onWriteComplete'\x2C status\x2C this.error);\n\n const stream = this.handle[owner_symbol];\n\n if (stream.destroyed) {\n if (typeof this.callback === 'function')\n this.callback(null);\n return;\n }\n\n // TODO (ronag): This should be moved before if(stream.destroyed)\n // in order to avoid swallowing error.\n if (status < 0) {\n const ex = errnoException(status\x2C 'write'\x2C this.error);\n if (typeof this.callback === 'function')\n this.callback(ex);\n else\n stream.destroy(ex);\n return;\n }\n\n stream[kUpdateTimer]();\n stream[kAfterAsyncWrite](this);\n\n if (typeof this.callback === 'function')\n this.callback(null);\n}\n\nfunction createWriteWrap(handle\x2C callback) {\n const req = new WriteWrap();\n\n req.handle = handle;\n req.oncomplete = onWriteComplete;\n req.async = false;\n req.bytes = 0;\n req.buffer = null;\n req.callback = callback;\n\n return req;\n}\n\nfunction writevGeneric(self\x2C data\x2C cb) {\n const req = createWriteWrap(self[kHandle]\x2C cb);\n const allBuffers = data.allBuffers;\n let chunks;\n if (allBuffers) {\n chunks = data;\n for (let i = 0; i < data.length; i++)\n data[i] = data[i].chunk;\n } else {\n chunks = new Array(data.length << 1);\n for (let i = 0; i < data.length; i++) {\n const entry = data[i];\n chunks[i * 2] = entry.chunk;\n chunks[i * 2 + 1] = entry.encoding;\n }\n }\n const err = req.handle.writev(req\x2C chunks\x2C allBuffers);\n\n // Retain chunks\n if (err === 0) req._chunks = chunks;\n\n afterWriteDispatched(req\x2C err\x2C cb);\n return req;\n}\n\nfunction writeGeneric(self\x2C data\x2C encoding\x2C cb) {\n const req = createWriteWrap(self[kHandle]\x2C cb);\n const err = handleWriteReq(req\x2C data\x2C encoding);\n\n afterWriteDispatched(req\x2C err\x2C cb);\n return req;\n}\n\nfunction afterWriteDispatched(req\x2C err\x2C cb) {\n req.bytes = streamBaseState[kBytesWritten];\n req.async = !!streamBaseState[kLastWriteWasAsync];\n\n if (err !== 0)\n return cb(errnoException(err\x2C 'write'\x2C req.error));\n\n if (!req.async && typeof req.callback === 'function') {\n req.callback();\n }\n}\n\nfunction onStreamRead(arrayBuffer) {\n const nread = streamBaseState[kReadBytesOrError];\n\n const handle = this;\n const stream = this[owner_symbol];\n\n stream[kUpdateTimer]();\n\n if (nread > 0 && !stream.destroyed) {\n let ret;\n let result;\n const userBuf = stream[kBuffer];\n if (userBuf) {\n result = (stream[kBufferCb](nread\x2C userBuf) !== false);\n const bufGen = stream[kBufferGen];\n if (bufGen !== null) {\n const nextBuf = bufGen();\n if (isUint8Array(nextBuf))\n stream[kBuffer] = ret = nextBuf;\n }\n } else {\n const offset = streamBaseState[kArrayBufferOffset];\n const buf = new FastBuffer(arrayBuffer\x2C offset\x2C nread);\n result = stream.push(buf);\n }\n if (!result) {\n handle.reading = false;\n if (!stream.destroyed) {\n const err = handle.readStop();\n if (err)\n stream.destroy(errnoException(err\x2C 'read'));\n }\n }\n\n return ret;\n }\n\n if (nread === 0) {\n return;\n }\n\n if (nread !== UV_EOF) {\n // CallJSOnreadMethod expects the return value to be a buffer.\n // Ref: https://github.com/nodejs/node/pull/34375\n stream.destroy(errnoException(nread\x2C 'read'));\n return;\n }\n\n // Defer this until we actually emit end\n if (stream._readableState.endEmitted) {\n if (stream[kMaybeDestroy])\n stream[kMaybeDestroy]();\n } else {\n if (stream[kMaybeDestroy])\n stream.on('end'\x2C stream[kMaybeDestroy]);\n\n // TODO(ronag): Without this `readStop`\x2C `onStreamRead`\n // will be called once more (i.e. after Readable.ended)\n // on Windows causing a ECONNRESET\x2C failing the\n // test-https-truncate test.\n if (handle.readStop) {\n const err = handle.readStop();\n if (err) {\n // CallJSOnreadMethod expects the return value to be a buffer.\n // Ref: https://github.com/nodejs/node/pull/34375\n stream.destroy(errnoException(err\x2C 'read'));\n return;\n }\n }\n\n // Push a null to signal the end of data.\n // Do it before `maybeDestroy` for correct order of events:\n // `end` -> `close`\n stream.push(null);\n stream.read(0);\n }\n}\n\nfunction setStreamTimeout(msecs\x2C callback) {\n if (this.destroyed)\n return this;\n\n this.timeout = msecs;\n\n // Type checking identical to timers.enroll()\n msecs = getTimerDuration(msecs\x2C 'msecs');\n\n // Attempt to clear an existing timer in both cases -\n // even if it will be rescheduled we don't want to leak an existing timer.\n clearTimeout(this[kTimeout]);\n\n if (msecs === 0) {\n if (callback !== undefined) {\n validateCallback(callback);\n this.removeListener('timeout'\x2C callback);\n }\n } else {\n this[kTimeout] = setUnrefTimeout(this._onTimeout.bind(this)\x2C msecs);\n if (this[kSession]) this[kSession][kUpdateTimer]();\n\n if (callback !== undefined) {\n validateCallback(callback);\n this.once('timeout'\x2C callback);\n }\n }\n return this;\n}\n\nmodule.exports = {\n writevGeneric\x2C\n writeGeneric\x2C\n onStreamRead\x2C\n kAfterAsyncWrite\x2C\n kMaybeDestroy\x2C\n kUpdateTimer\x2C\n kHandle\x2C\n kSession\x2C\n setStreamTimeout\x2C\n kBuffer\x2C\n kBufferCb\x2C\n kBufferGen\n};\n
code-source-info,0xb6d53573956,83,3597,3781,C0O3640C5O3661C7O3660C11O3640C17O3690C29O3690C35O3730C47O3730C52O3768C54O3779,,
code-creation,LazyCompile,10,73408,0xb6d535743ce,47,createWriteWrap node:internal/stream_base_commons:109:25,0xe5ca5cedee8,~
code-source-info,0xb6d535743ce,83,2719,2933,C0O2754C5O2754C11O2774C13O2785C17O2797C19O2812C23O2833C24O2843C28O2854C29O2864C33O2871C34O2882C38O2892C40O2905C44O2920C46O2931,,
code-creation,LazyCompile,10,73483,0xb6d53574616,215,handleWriteReq node:internal/stream_base_commons:45:24,0xe5ca5cede48,~
code-source-info,0xb6d53574616,83,1174,2006,C0O1208C5O1227C80O1297C85O1297C92O1327C99O1347C101O1346C106O1376C108O1387C112O1401C114O1412C115O1477C120O1477C126O1506C127O1562C132O1562C138O1589C139O1628C144O1628C150O1656C151O1753C156O1753C162O1780C163O1821C168O1828C173O1828C180O1875C185O1875C192O1907C199O1927C201O1926C206O1956C208O1967C212O1983C214O1994,,
code-creation,LazyCompile,10,73656,0xb6d5357486e,92,afterWriteDispatched node:internal/stream_base_commons:155:30,0xe5ca5cee018,~
code-source-info,0xb6d5357486e,83,3812,4086,C0O3831C2O3843C7O3859C9O3858C12O3841C16O3877C18O3891C23O3907C25O3906C30O3887C34O3931C35O3939C40O3950C42O3960C48O3993C56O3960C62O3957C66O4001C67O4014C73O4034C81O4069C86O4069C91O4085,,
code-creation,LazyCompile,10,73777,0xb6d53574ad6,323,onwrite node:internal/streams/writable:425:17,0x3787ca79d150,~
code-source-info,0xb6d53574ad6,56,13444,15067,C0O13482C5O13519C10O13544C15O13556C19O13592C26O13619C29O13615C35O13592C40O13649C41O13656C42O13664C43O13678C47O13689C48O13703C52O13713C57O13735C64O13726C68O13747C69O13762C73O13770C77O13874C81O13942C87O13959C89O13973C93O14091C99O14117C104O14132C110O14156C117O14179C121O14196C125O14214C128O14222C148O14222C155O14288C170O14288C177O14356C182O14365C187O14380C191O14372C196O14403C199O14403C204O14442C208O14723C214O14770C219O14789C226O14792C231O14816C242O14840C248O14867C255O14906C261O14910C267O14918C273O14892C277O14935C280O14943C288O14974C293O14943C301O15022C316O15022C322O15066,,
code-creation,LazyCompile,10,73907,0xb6d53575016,368,nextTick node:internal/process/task_queues:104:18,0x334c17f3b380,~
script-source,25,node:internal/process/task_queues,'use strict';\n\nconst {\n Array\x2C\n FunctionPrototypeBind\x2C\n} = primordials;\n\nconst {\n // For easy access to the nextTick state in the C++ land\x2C\n // and to avoid unnecessary calls into JS land.\n tickInfo\x2C\n // Used to run V8's micro task queue.\n runMicrotasks\x2C\n setTickCallback\x2C\n enqueueMicrotask\n} = internalBinding('task_queue');\n\nconst {\n setHasRejectionToWarn\x2C\n hasRejectionToWarn\x2C\n listenForRejections\x2C\n processPromiseRejections\n} = require('internal/process/promises');\n\nconst {\n getDefaultTriggerAsyncId\x2C\n newAsyncId\x2C\n initHooksExist\x2C\n destroyHooksExist\x2C\n emitInit\x2C\n emitBefore\x2C\n emitAfter\x2C\n emitDestroy\x2C\n symbols: { async_id_symbol\x2C trigger_async_id_symbol }\n} = require('internal/async_hooks');\nconst FixedQueue = require('internal/fixed_queue');\n\nconst {\n validateCallback\x2C\n validateFunction\x2C\n} = require('internal/validators');\n\nconst { AsyncResource } = require('async_hooks');\n\n// *Must* match Environment::TickInfo::Fields in src/env.h.\nconst kHasTickScheduled = 0;\n\nfunction hasTickScheduled() {\n return tickInfo[kHasTickScheduled] === 1;\n}\n\nfunction setHasTickScheduled(value) {\n tickInfo[kHasTickScheduled] = value ? 1 : 0;\n}\n\nconst queue = new FixedQueue();\n\n// Should be in sync with RunNextTicksNative in node_task_queue.cc\nfunction runNextTicks() {\n if (!hasTickScheduled() && !hasRejectionToWarn())\n runMicrotasks();\n if (!hasTickScheduled() && !hasRejectionToWarn())\n return;\n\n processTicksAndRejections();\n}\n\nfunction processTicksAndRejections() {\n let tock;\n do {\n while (tock = queue.shift()) {\n const asyncId = tock[async_id_symbol];\n emitBefore(asyncId\x2C tock[trigger_async_id_symbol]\x2C tock);\n\n try {\n const callback = tock.callback;\n if (tock.args === undefined) {\n callback();\n } else {\n const args = tock.args;\n switch (args.length) {\n case 1: callback(args[0]); break;\n case 2: callback(args[0]\x2C args[1]); break;\n case 3: callback(args[0]\x2C args[1]\x2C args[2]); break;\n case 4: callback(args[0]\x2C args[1]\x2C args[2]\x2C args[3]); break;\n default: callback(...args);\n }\n }\n } finally {\n if (destroyHooksExist())\n emitDestroy(asyncId);\n }\n\n emitAfter(asyncId);\n }\n runMicrotasks();\n } while (!queue.isEmpty() || processPromiseRejections());\n setHasTickScheduled(false);\n setHasRejectionToWarn(false);\n}\n\n// `nextTick()` will not enqueue any callback when the process is about to\n// exit since the callback would not have a chance to be executed.\nfunction nextTick(callback) {\n validateCallback(callback);\n\n if (process._exiting)\n return;\n\n let args;\n switch (arguments.length) {\n case 1: break;\n case 2: args = [arguments[1]]; break;\n case 3: args = [arguments[1]\x2C arguments[2]]; break;\n case 4: args = [arguments[1]\x2C arguments[2]\x2C arguments[3]]; break;\n default:\n args = new Array(arguments.length - 1);\n for (let i = 1; i < arguments.length; i++)\n args[i - 1] = arguments[i];\n }\n\n if (queue.isEmpty())\n setHasTickScheduled(true);\n const asyncId = newAsyncId();\n const triggerAsyncId = getDefaultTriggerAsyncId();\n const tickObject = {\n [async_id_symbol]: asyncId\x2C\n [trigger_async_id_symbol]: triggerAsyncId\x2C\n callback\x2C\n args\n };\n if (initHooksExist())\n emitInit(asyncId\x2C 'TickObject'\x2C triggerAsyncId\x2C tickObject);\n queue.push(tickObject);\n}\n\nfunction runMicrotask() {\n this.runInAsyncScope(() => {\n const callback = this.callback;\n try {\n callback();\n } finally {\n this.emitDestroy();\n }\n });\n}\n\nconst defaultMicrotaskResourceOpts = { requireManualDestroy: true };\n\nfunction queueMicrotask(callback) {\n validateFunction(callback\x2C 'callback');\n\n const asyncResource = new AsyncResource(\n 'Microtask'\x2C\n defaultMicrotaskResourceOpts\n );\n asyncResource.callback = callback;\n\n enqueueMicrotask(FunctionPrototypeBind(runMicrotask\x2C asyncResource));\n}\n\nmodule.exports = {\n setupTaskQueue() {\n // Sets the per-isolate promise rejection callback\n listenForRejections();\n // Sets the callback to be run in every tick.\n setTickCallback(processTicksAndRejections);\n return {\n nextTick\x2C\n runNextTicks\n };\n }\x2C\n queueMicrotask\n};\n
code-source-info,0xb6d53575016,25,2591,3435,C0O2591C2O2606C7O2606C11O2637C14O2649C20O2663C21O2670C22O2678C24O2704C59O2726C61O2745C70O2762C82O2768C84O2787C93O2804C105O2818C117O2824C119O2843C128O2860C140O2874C152O2888C164O2894C166O2920C171O2947C175O2954C181O2927C187O2979C190O2996C194O2984C199O3017C201O3024C207O3040C210O3029C214O3005C219O2966C222O3052C227O3062C232O3062C238O3077C243O3077C247O3122C252O3122C256O3161C261O3161C265O3210C272O3217C278O3235C285O3249C291O3275C301O3295C311O3309C319O3321C324O3325C329O3347C346O3347C351O3410C356O3416C361O3416C367O3434,,
code-creation,LazyCompile,10,74154,0xb6d53575896,21, node:internal/validators:213:42,0x38b4b3b1a130,~
code-source-info,0xb6d53575896,17,6522,6623,C0O6540C6O6580C13O6586C18O6580C20O6622,,
code-creation,LazyCompile,10,74187,0xb6d535759a6,15,isEmpty node:internal/fixed_queue:95:10,0x1eac91c01368,~
script-source,28,node:internal/fixed_queue,'use strict';\n\nconst {\n Array\x2C\n} = primordials;\n\n// Currently optimal queue size\x2C tested on V8 6.0 - 6.6. Must be power of two.\nconst kSize = 2048;\nconst kMask = kSize - 1;\n\n// The FixedQueue is implemented as a singly-linked list of fixed-size\n// circular buffers. It looks something like this:\n//\n// head tail\n// | |\n// v v\n// +-----------+ <-----\\ +-----------+ <------\\ +-----------+\n// | [null] | \\----- | next | \\------- | next |\n// +-----------+ +-----------+ +-----------+\n// | item | <-- bottom | item | <-- bottom | [empty] |\n// | item | | item | | [empty] |\n// | item | | item | | [empty] |\n// | item | | item | | [empty] |\n// | item | | item | bottom --> | item |\n// | item | | item | | item |\n// | ... | | ... | | ... |\n// | item | | item | | item |\n// | item | | item | | item |\n// | [empty] | <-- top | item | | item |\n// | [empty] | | item | | item |\n// | [empty] | | [empty] | <-- top top --> | [empty] |\n// +-----------+ +-----------+ +-----------+\n//\n// Or\x2C if there is only one circular buffer\x2C it looks something\n// like either of these:\n//\n// head tail head tail\n// | | | |\n// v v v v\n// +-----------+ +-----------+\n// | [null] | | [null] |\n// +-----------+ +-----------+\n// | [empty] | | item |\n// | [empty] | | item |\n// | item | <-- bottom top --> | [empty] |\n// | item | | [empty] |\n// | [empty] | <-- top bottom --> | item |\n// | [empty] | | item |\n// +-----------+ +-----------+\n//\n// Adding a value means moving `top` forward by one\x2C removing means\n// moving `bottom` forward by one. After reaching the end\x2C the queue\n// wraps around.\n//\n// When `top === bottom` the current queue is empty and when\n// `top + 1 === bottom` it's full. This wastes a single space of storage\n// but allows much quicker checks.\n\nclass FixedCircularBuffer {\n constructor() {\n this.bottom = 0;\n this.top = 0;\n this.list = new Array(kSize);\n this.next = null;\n }\n\n isEmpty() {\n return this.top === this.bottom;\n }\n\n isFull() {\n return ((this.top + 1) & kMask) === this.bottom;\n }\n\n push(data) {\n this.list[this.top] = data;\n this.top = (this.top + 1) & kMask;\n }\n\n shift() {\n const nextItem = this.list[this.bottom];\n if (nextItem === undefined)\n return null;\n this.list[this.bottom] = undefined;\n this.bottom = (this.bottom + 1) & kMask;\n return nextItem;\n }\n}\n\nmodule.exports = class FixedQueue {\n constructor() {\n this.head = this.tail = new FixedCircularBuffer();\n }\n\n isEmpty() {\n return this.head.isEmpty();\n }\n\n push(data) {\n if (this.head.isFull()) {\n // Head is full: Creates a new queue\x2C sets the old queue's `.next` to it\x2C\n // and sets it as the new main queue.\n this.head = this.head.next = new FixedCircularBuffer();\n }\n this.head.push(data);\n }\n\n shift() {\n const tail = this.tail;\n const next = tail.shift();\n if (tail.isEmpty() && tail.next !== null) {\n // If there is another queue\x2C it forms the new tail.\n this.tail = tail.next;\n }\n return next;\n }\n};\n
code-source-info,0xb6d535759a6,28,3637,3677,C0O3658C5O3663C10O3663C14O3673,,
code-creation,LazyCompile,10,74366,0xb6d53575e6e,13,isEmpty node:internal/fixed_queue:67:10,0x334c17f3ff78,~
code-source-info,0xb6d53575e6e,28,3084,3129,C0O3105C5O3118C9O3109C12O3125,,
code-creation,LazyCompile,10,74386,0xb6d53575f6e,25,setHasTickScheduled node:internal/process/task_queues:52:29,0x334c17f3b290,~
code-source-info,0xb6d53575f6e,25,1104,1162,C0O1116C7O1125C12O1146C19O1144C24O1161,,
code-creation,LazyCompile,10,74445,0xb6d53576076,23,newAsyncId node:internal/async_hooks:413:20,0x334c17f392e8,~
script-source,24,node:internal/async_hooks,'use strict';\n\nconst {\n ArrayPrototypeSlice\x2C\n ErrorCaptureStackTrace\x2C\n ObjectPrototypeHasOwnProperty\x2C\n ObjectDefineProperty\x2C\n Symbol\x2C\n} = primordials;\n\nconst async_wrap = internalBinding('async_wrap');\nconst { setCallbackTrampoline } = async_wrap;\n/* async_hook_fields is a Uint32Array wrapping the uint32_t array of\n * Environment::AsyncHooks::fields_[]. Each index tracks the number of active\n * hooks for each type.\n *\n * async_id_fields is a Float64Array wrapping the double array of\n * Environment::AsyncHooks::async_id_fields_[]. Each index contains the ids for\n * the various asynchronous states of the application. These are:\n * kExecutionAsyncId: The async_id assigned to the resource responsible for the\n * current execution stack.\n * kTriggerAsyncId: The async_id of the resource that caused (or 'triggered')\n * the resource corresponding to the current execution stack.\n * kAsyncIdCounter: Incremental counter tracking the next assigned async_id.\n * kDefaultTriggerAsyncId: Written immediately before a resource's constructor\n * that sets the value of the init()'s triggerAsyncId. The precedence order\n * of retrieving the triggerAsyncId value is:\n * 1. the value passed directly to the constructor\n * 2. value set in kDefaultTriggerAsyncId\n * 3. executionAsyncId of the current resource.\n *\n * async_ids_stack is a Float64Array that contains part of the async ID\n * stack. Each pushAsyncContext() call adds two doubles to it\x2C and each\n * popAsyncContext() call removes two doubles from it.\n * It has a fixed size\x2C so if that is exceeded\x2C calls to the native\n * side are used instead in pushAsyncContext() and popAsyncContext().\n */\nconst {\n async_hook_fields\x2C\n async_id_fields\x2C\n execution_async_resources\n} = async_wrap;\n// Store the pair executionAsyncId and triggerAsyncId in a AliasedFloat64Array\n// in Environment::AsyncHooks::async_ids_stack_ which tracks the resource\n// responsible for the current execution stack. This is unwound as each resource\n// exits. In the case of a fatal exception this stack is emptied after calling\n// each hook's after() callback.\nconst {\n pushAsyncContext: pushAsyncContext_\x2C\n popAsyncContext: popAsyncContext_\x2C\n executionAsyncResource: executionAsyncResource_\x2C\n clearAsyncIdStack\x2C\n} = async_wrap;\n// For performance reasons\x2C only track Promises when a hook is enabled.\nconst { setPromiseHooks } = async_wrap;\n// Properties in active_hooks are used to keep track of the set of hooks being\n// executed in case another hook is enabled/disabled. The new set of hooks is\n// then restored once the active set of hooks is finished executing.\nconst active_hooks = {\n // Array of all AsyncHooks that will be iterated whenever an async event\n // fires. Using var instead of (preferably const) in order to assign\n // active_hooks.tmp_array if a hook is enabled/disabled during hook\n // execution.\n array: []\x2C\n // Use a counter to track nested calls of async hook callbacks and make sure\n // the active_hooks.array isn't altered mid execution.\n call_depth: 0\x2C\n // Use to temporarily store and updated active_hooks.array if the user\n // enables or disables a hook while hooks are being processed. If a hook is\n // enabled() or disabled() during hook execution then the current set of\n // active hooks is duplicated and set equal to active_hooks.tmp_array. Any\n // subsequent changes are on the duplicated array. When all hooks have\n // completed executing active_hooks.tmp_array is assigned to\n // active_hooks.array.\n tmp_array: null\x2C\n // Keep track of the field counts held in active_hooks.tmp_array. Because the\n // async_hook_fields can't be reassigned\x2C store each uint32 in an array that\n // is written back to async_hook_fields when active_hooks.array is restored.\n tmp_fields: null\n};\n\nconst { registerDestroyHook } = async_wrap;\nconst { enqueueMicrotask } = internalBinding('task_queue');\nconst { resource_symbol\x2C owner_symbol } = internalBinding('symbols');\n\n// Each constant tracks how many callbacks there are for any given step of\n// async execution. These are tracked so if the user didn't include callbacks\n// for a given step\x2C that step can bail out early.\nconst {\n kInit\x2C kBefore\x2C kAfter\x2C kDestroy\x2C kTotals\x2C kPromiseResolve\x2C\n kCheck\x2C kExecutionAsyncId\x2C kAsyncIdCounter\x2C kTriggerAsyncId\x2C\n kDefaultTriggerAsyncId\x2C kStackLength\x2C kUsesExecutionAsyncResource\x2C\n} = async_wrap.constants;\n\nconst { async_id_symbol\x2C\n trigger_async_id_symbol } = internalBinding('symbols');\n\n// Lazy load of internal/util/inspect;\nlet inspect;\n\n// Used in AsyncHook and AsyncResource.\nconst init_symbol = Symbol('init');\nconst before_symbol = Symbol('before');\nconst after_symbol = Symbol('after');\nconst destroy_symbol = Symbol('destroy');\nconst promise_resolve_symbol = Symbol('promiseResolve');\nconst emitBeforeNative = emitHookFactory(before_symbol\x2C 'emitBeforeNative');\nconst emitAfterNative = emitHookFactory(after_symbol\x2C 'emitAfterNative');\nconst emitDestroyNative = emitHookFactory(destroy_symbol\x2C 'emitDestroyNative');\nconst emitPromiseResolveNative =\n emitHookFactory(promise_resolve_symbol\x2C 'emitPromiseResolveNative');\n\nlet domain_cb;\nfunction useDomainTrampoline(fn) {\n domain_cb = fn;\n}\n\nfunction callbackTrampoline(asyncId\x2C resource\x2C cb\x2C ...args) {\n const index = async_hook_fields[kStackLength] - 1;\n execution_async_resources[index] = resource;\n\n if (asyncId !== 0 && hasHooks(kBefore))\n emitBeforeNative(asyncId);\n\n let result;\n if (asyncId === 0 && typeof domain_cb === 'function') {\n args.unshift(cb);\n result = domain_cb.apply(this\x2C args);\n } else {\n result = cb.apply(this\x2C args);\n }\n\n if (asyncId !== 0 && hasHooks(kAfter))\n emitAfterNative(asyncId);\n\n execution_async_resources.pop();\n return result;\n}\n\nsetCallbackTrampoline(callbackTrampoline);\n\nconst topLevelResource = {};\n\nfunction executionAsyncResource() {\n // Indicate to the native layer that this function is likely to be used\x2C\n // in which case it will inform JS about the current async resource via\n // the trampoline above.\n async_hook_fields[kUsesExecutionAsyncResource] = 1;\n\n const index = async_hook_fields[kStackLength] - 1;\n if (index === -1) return topLevelResource;\n const resource = execution_async_resources[index] ||\n executionAsyncResource_(index);\n return lookupPublicResource(resource);\n}\n\nfunction inspectExceptionValue(e) {\n inspect ??= require('internal/util/inspect').inspect;\n return { message: inspect(e) };\n}\n\n// Used to fatally abort the process if a callback throws.\nfunction fatalError(e) {\n if (typeof e?.stack === 'string') {\n process._rawDebug(e.stack);\n } else {\n const o = inspectExceptionValue(e);\n ErrorCaptureStackTrace(o\x2C fatalError);\n process._rawDebug(o.stack);\n }\n\n const { getOptionValue } = require('internal/options');\n if (getOptionValue('--abort-on-uncaught-exception')) {\n process.abort();\n }\n process.exit(1);\n}\n\nfunction lookupPublicResource(resource) {\n if (typeof resource !== 'object' || resource === null) return resource;\n // TODO(addaleax): Merge this with owner_symbol and use it across all\n // AsyncWrap instances.\n const publicResource = resource[resource_symbol];\n if (publicResource !== undefined)\n return publicResource;\n return resource;\n}\n\n// Emit From Native //\n\n// Used by C++ to call all init() callbacks. Because some state can be setup\n// from C++ there's no need to perform all the same operations as in\n// emitInitScript.\nfunction emitInitNative(asyncId\x2C type\x2C triggerAsyncId\x2C resource) {\n active_hooks.call_depth += 1;\n resource = lookupPublicResource(resource);\n // Use a single try/catch for all hooks to avoid setting up one per iteration.\n try {\n // Using var here instead of let because "for (var ...)" is faster than let.\n // Refs: https://github.com/nodejs/node/pull/30380#issuecomment-552948364\n for (var i = 0; i < active_hooks.array.length; i++) {\n if (typeof active_hooks.array[i][init_symbol] === 'function') {\n active_hooks.array[i][init_symbol](\n asyncId\x2C type\x2C triggerAsyncId\x2C\n resource\n );\n }\n }\n } catch (e) {\n fatalError(e);\n } finally {\n active_hooks.call_depth -= 1;\n }\n\n // Hooks can only be restored if there have been no recursive hook calls.\n // Also the active hooks do not need to be restored if enable()/disable()\n // weren't called during hook execution\x2C in which case active_hooks.tmp_array\n // will be null.\n if (active_hooks.call_depth === 0 && active_hooks.tmp_array !== null) {\n restoreActiveHooks();\n }\n}\n\n// Called from native. The asyncId stack handling is taken care of there\n// before this is called.\nfunction emitHook(symbol\x2C asyncId) {\n active_hooks.call_depth += 1;\n // Use a single try/catch for all hook to avoid setting up one per\n // iteration.\n try {\n // Using var here instead of let because "for (var ...)" is faster than let.\n // Refs: https://github.com/nodejs/node/pull/30380#issuecomment-552948364\n for (var i = 0; i < active_hooks.array.length; i++) {\n if (typeof active_hooks.array[i][symbol] === 'function') {\n active_hooks.array[i][symbol](asyncId);\n }\n }\n } catch (e) {\n fatalError(e);\n } finally {\n active_hooks.call_depth -= 1;\n }\n\n // Hooks can only be restored if there have been no recursive hook calls.\n // Also the active hooks do not need to be restored if enable()/disable()\n // weren't called during hook execution\x2C in which case\n // active_hooks.tmp_array will be null.\n if (active_hooks.call_depth === 0 && active_hooks.tmp_array !== null) {\n restoreActiveHooks();\n }\n}\n\nfunction emitHookFactory(symbol\x2C name) {\n const fn = emitHook.bind(undefined\x2C symbol);\n\n // Set the name property of the function as it looks good in the stack trace.\n ObjectDefineProperty(fn\x2C 'name'\x2C {\n value: name\n });\n return fn;\n}\n\n// Manage Active Hooks //\n\nfunction getHookArrays() {\n if (active_hooks.call_depth === 0)\n return [active_hooks.array\x2C async_hook_fields];\n // If this hook is being enabled while in the middle of processing the array\n // of currently active hooks then duplicate the current set of active hooks\n // and store this there. This shouldn't fire until the next time hooks are\n // processed.\n if (active_hooks.tmp_array === null)\n storeActiveHooks();\n return [active_hooks.tmp_array\x2C active_hooks.tmp_fields];\n}\n\n\nfunction storeActiveHooks() {\n active_hooks.tmp_array = ArrayPrototypeSlice(active_hooks.array);\n // Don't want to make the assumption that kInit to kDestroy are indexes 0 to\n // 4. So do this the long way.\n active_hooks.tmp_fields = [];\n copyHooks(active_hooks.tmp_fields\x2C async_hook_fields);\n}\n\nfunction copyHooks(destination\x2C source) {\n destination[kInit] = source[kInit];\n destination[kBefore] = source[kBefore];\n destination[kAfter] = source[kAfter];\n destination[kDestroy] = source[kDestroy];\n destination[kPromiseResolve] = source[kPromiseResolve];\n}\n\n\n// Then restore the correct hooks array in case any hooks were added/removed\n// during hook callback execution.\nfunction restoreActiveHooks() {\n active_hooks.array = active_hooks.tmp_array;\n copyHooks(async_hook_fields\x2C active_hooks.tmp_fields);\n\n active_hooks.tmp_array = null;\n active_hooks.tmp_fields = null;\n}\n\nfunction trackPromise(promise\x2C parent) {\n if (promise[async_id_symbol]) {\n return;\n }\n\n // Get trigger id from parent async id before making the async id of the\n // child so if a new one must be made it will be lower than the child.\n const triggerAsyncId = parent ? getOrSetAsyncId(parent) :\n getDefaultTriggerAsyncId();\n\n promise[async_id_symbol] = newAsyncId();\n promise[trigger_async_id_symbol] = triggerAsyncId;\n}\n\nfunction promiseInitHook(promise\x2C parent) {\n trackPromise(promise\x2C parent);\n const asyncId = promise[async_id_symbol];\n const triggerAsyncId = promise[trigger_async_id_symbol];\n emitInitScript(asyncId\x2C 'PROMISE'\x2C triggerAsyncId\x2C promise);\n}\n\nfunction promiseInitHookWithDestroyTracking(promise\x2C parent) {\n promiseInitHook(promise\x2C parent);\n destroyTracking(promise\x2C parent);\n}\n\nconst destroyedSymbol = Symbol('destroyed');\n\nfunction destroyTracking(promise\x2C parent) {\n trackPromise(promise\x2C parent);\n const asyncId = promise[async_id_symbol];\n const destroyed = { destroyed: false };\n promise[destroyedSymbol] = destroyed;\n registerDestroyHook(promise\x2C asyncId\x2C destroyed);\n}\n\nfunction promiseBeforeHook(promise) {\n trackPromise(promise);\n const asyncId = promise[async_id_symbol];\n const triggerId = promise[trigger_async_id_symbol];\n emitBeforeScript(asyncId\x2C triggerId\x2C promise);\n}\n\nfunction promiseAfterHook(promise) {\n trackPromise(promise);\n const asyncId = promise[async_id_symbol];\n if (hasHooks(kAfter)) {\n emitAfterNative(asyncId);\n }\n if (asyncId === executionAsyncId()) {\n // This condition might not be true if async_hooks was enabled during\n // the promise callback execution.\n // Popping it off the stack can be skipped in that case\x2C because it is\n // known that it would correspond to exactly one call with\n // PromiseHookType::kBefore that was not witnessed by the PromiseHook.\n popAsyncContext(asyncId);\n }\n}\n\nfunction promiseResolveHook(promise) {\n trackPromise(promise);\n const asyncId = promise[async_id_symbol];\n emitPromiseResolveNative(asyncId);\n}\n\nlet wantPromiseHook = false;\nfunction enableHooks() {\n async_hook_fields[kCheck] += 1;\n}\n\nfunction updatePromiseHookMode() {\n wantPromiseHook = true;\n let initHook;\n if (initHooksExist()) {\n initHook = destroyHooksExist() ? promiseInitHookWithDestroyTracking :\n promiseInitHook;\n } else if (destroyHooksExist()) {\n initHook = destroyTracking;\n }\n setPromiseHooks(\n initHook\x2C\n promiseBeforeHook\x2C\n promiseAfterHook\x2C\n promiseResolveHooksExist() ? promiseResolveHook : undefined\x2C\n );\n}\n\nfunction disableHooks() {\n async_hook_fields[kCheck] -= 1;\n\n wantPromiseHook = false;\n\n // Delay the call to `disablePromiseHook()` because we might currently be\n // between the `before` and `after` calls of a Promise.\n enqueueMicrotask(disablePromiseHookIfNecessary);\n}\n\nfunction disablePromiseHookIfNecessary() {\n if (!wantPromiseHook) {\n setPromiseHooks(undefined\x2C undefined\x2C undefined\x2C undefined);\n }\n}\n\n// Internal Embedder API //\n\n// Increment the internal id counter and return the value. Important that the\n// counter increment first. Since it's done the same way in\n// Environment::new_async_uid()\nfunction newAsyncId() {\n return ++async_id_fields[kAsyncIdCounter];\n}\n\nfunction getOrSetAsyncId(object) {\n if (ObjectPrototypeHasOwnProperty(object\x2C async_id_symbol)) {\n return object[async_id_symbol];\n }\n\n return object[async_id_symbol] = newAsyncId();\n}\n\n\n// Return the triggerAsyncId meant for the constructor calling it. It's up to\n// the user to safeguard this call and make sure it's zero'd out when the\n// constructor is complete.\nfunction getDefaultTriggerAsyncId() {\n const defaultTriggerAsyncId = async_id_fields[kDefaultTriggerAsyncId];\n // If defaultTriggerAsyncId isn't set\x2C use the executionAsyncId\n if (defaultTriggerAsyncId < 0)\n return async_id_fields[kExecutionAsyncId];\n return defaultTriggerAsyncId;\n}\n\n\nfunction clearDefaultTriggerAsyncId() {\n async_id_fields[kDefaultTriggerAsyncId] = -1;\n}\n\n\nfunction defaultTriggerAsyncIdScope(triggerAsyncId\x2C block\x2C ...args) {\n if (triggerAsyncId === undefined)\n return block.apply(null\x2C args);\n // CHECK(NumberIsSafeInteger(triggerAsyncId))\n // CHECK(triggerAsyncId > 0)\n const oldDefaultTriggerAsyncId = async_id_fields[kDefaultTriggerAsyncId];\n async_id_fields[kDefaultTriggerAsyncId] = triggerAsyncId;\n\n try {\n return block.apply(null\x2C args);\n } finally {\n async_id_fields[kDefaultTriggerAsyncId] = oldDefaultTriggerAsyncId;\n }\n}\n\nfunction hasHooks(key) {\n return async_hook_fields[key] > 0;\n}\n\nfunction enabledHooksExist() {\n return hasHooks(kCheck);\n}\n\nfunction initHooksExist() {\n return hasHooks(kInit);\n}\n\nfunction afterHooksExist() {\n return hasHooks(kAfter);\n}\n\nfunction destroyHooksExist() {\n return hasHooks(kDestroy);\n}\n\nfunction promiseResolveHooksExist() {\n return hasHooks(kPromiseResolve);\n}\n\n\nfunction emitInitScript(asyncId\x2C type\x2C triggerAsyncId\x2C resource) {\n // Short circuit all checks for the common case. Which is that no hooks have\n // been set. Do this to remove performance impact for embedders (and core).\n if (!hasHooks(kInit))\n return;\n\n if (triggerAsyncId === null) {\n triggerAsyncId = getDefaultTriggerAsyncId();\n }\n\n emitInitNative(asyncId\x2C type\x2C triggerAsyncId\x2C resource);\n}\n\n\nfunction emitBeforeScript(asyncId\x2C triggerAsyncId\x2C resource) {\n pushAsyncContext(asyncId\x2C triggerAsyncId\x2C resource);\n\n if (hasHooks(kBefore))\n emitBeforeNative(asyncId);\n}\n\n\nfunction emitAfterScript(asyncId) {\n if (hasHooks(kAfter))\n emitAfterNative(asyncId);\n\n popAsyncContext(asyncId);\n}\n\n\nfunction emitDestroyScript(asyncId) {\n // Return early if there are no destroy callbacks\x2C or invalid asyncId.\n if (!hasHooks(kDestroy) || asyncId <= 0)\n return;\n async_wrap.queueDestroyAsyncId(asyncId);\n}\n\n\nfunction hasAsyncIdStack() {\n return hasHooks(kStackLength);\n}\n\n\n// This is the equivalent of the native push_async_ids() call.\nfunction pushAsyncContext(asyncId\x2C triggerAsyncId\x2C resource) {\n const offset = async_hook_fields[kStackLength];\n execution_async_resources[offset] = resource;\n if (offset * 2 >= async_wrap.async_ids_stack.length)\n return pushAsyncContext_(asyncId\x2C triggerAsyncId);\n async_wrap.async_ids_stack[offset * 2] = async_id_fields[kExecutionAsyncId];\n async_wrap.async_ids_stack[offset * 2 + 1] = async_id_fields[kTriggerAsyncId];\n async_hook_fields[kStackLength]++;\n async_id_fields[kExecutionAsyncId] = asyncId;\n async_id_fields[kTriggerAsyncId] = triggerAsyncId;\n}\n\n\n// This is the equivalent of the native pop_async_ids() call.\nfunction popAsyncContext(asyncId) {\n const stackLength = async_hook_fields[kStackLength];\n if (stackLength === 0) return false;\n\n if (enabledHooksExist() && async_id_fields[kExecutionAsyncId] !== asyncId) {\n // Do the same thing as the native code (i.e. crash hard).\n return popAsyncContext_(asyncId);\n }\n\n const offset = stackLength - 1;\n async_id_fields[kExecutionAsyncId] = async_wrap.async_ids_stack[2 * offset];\n async_id_fields[kTriggerAsyncId] = async_wrap.async_ids_stack[2 * offset + 1];\n execution_async_resources.pop();\n async_hook_fields[kStackLength] = offset;\n return offset > 0;\n}\n\n\nfunction executionAsyncId() {\n return async_id_fields[kExecutionAsyncId];\n}\n\nfunction triggerAsyncId() {\n return async_id_fields[kTriggerAsyncId];\n}\n\n\nmodule.exports = {\n executionAsyncId\x2C\n triggerAsyncId\x2C\n // Private API\n getHookArrays\x2C\n symbols: {\n async_id_symbol\x2C trigger_async_id_symbol\x2C\n init_symbol\x2C before_symbol\x2C after_symbol\x2C destroy_symbol\x2C\n promise_resolve_symbol\x2C owner_symbol\n }\x2C\n constants: {\n kInit\x2C kBefore\x2C kAfter\x2C kDestroy\x2C kTotals\x2C kPromiseResolve\n }\x2C\n enableHooks\x2C\n disableHooks\x2C\n updatePromiseHookMode\x2C\n clearDefaultTriggerAsyncId\x2C\n clearAsyncIdStack\x2C\n hasAsyncIdStack\x2C\n executionAsyncResource\x2C\n // Internal Embedder API\n newAsyncId\x2C\n getOrSetAsyncId\x2C\n getDefaultTriggerAsyncId\x2C\n defaultTriggerAsyncIdScope\x2C\n enabledHooksExist\x2C\n initHooksExist\x2C\n afterHooksExist\x2C\n destroyHooksExist\x2C\n emitInit: emitInitScript\x2C\n emitBefore: emitBeforeScript\x2C\n emitAfter: emitAfterScript\x2C\n emitDestroy: emitDestroyScript\x2C\n pushAsyncContext\x2C\n popAsyncContext\x2C\n registerDestroyHook\x2C\n useDomainTrampoline\x2C\n nativeHooks: {\n init: emitInitNative\x2C\n before: emitBeforeNative\x2C\n after: emitAfterNative\x2C\n destroy: emitDestroyNative\x2C\n promise_resolve: emitPromiseResolveNative\n }\n};\n
code-source-info,0xb6d53576076,24,14441,14492,C0O14448C7O14473C16O14488C22O14490,,
code-creation,LazyCompile,10,75322,0xb6d535774e6,35,getDefaultTriggerAsyncId node:internal/async_hooks:429:34,0x334c17f39388,~
code-source-info,0xb6d535774e6,24,14900,15157,C0O14937C7O14953C9O14952C13O15046C14O15072C19O15081C26O15104C28O15103C31O15123C32O15126C34O15155,,
code-creation,LazyCompile,10,75355,0xb6d53577606,13,initHooksExist node:internal/async_hooks:466:24,0x334c17f39578,~
code-source-info,0xb6d53577606,24,15896,15928,C0O15903C5O15919C8O15910C12O15926,,
code-creation,LazyCompile,10,75373,0xb6d535776fe,16,hasHooks node:internal/async_hooks:458:18,0x334c17f394d8,~
code-source-info,0xb6d535776fe,24,15764,15810,C0O15774C7O15798C12O15804C15O15808,,
code-creation,LazyCompile,10,75451,0xb6d5357781e,59,push node:internal/fixed_queue:99:7,0x1eac91c013b8,~
code-source-info,0xb6d5357781e,28,3685,3945,C0O3707C5O3712C10O3712C16O3871C23O3887C26O3883C32O3881C38O3864C42O3925C47O3930C52O3930C58O3944,,
code-creation,LazyCompile,10,75480,0xb6d53577976,24,isFull node:internal/fixed_queue:71:9,0x1eac91c01118,~
code-source-info,0xb6d53577976,28,3139,3200,C0O3162C4O3166C10O3173C12O3171C16O3189C20O3180C23O3196,,
code-creation,LazyCompile,10,75504,0xb6d53577a96,37,push node:internal/fixed_queue:75:7,0x1eac91c01180,~
code-source-info,0xb6d53577a96,28,3208,3291,C0O3226C5O3236C12O3241C16O3270C20O3274C26O3281C28O3279C31O3262C36O3290,,
code-creation,LazyCompile,10,75553,0xb6d53577bde,62,Readable.removeListener node:internal/streams/readable:900:45,0x3787ca790ed8,~
code-source-info,0xb6d53577bde,51,28680,29237,C0O28705C5O28712C10O28722C15O28737C29O28737C35O28811C37O28818C42O29168C45O29176C53O29176C59O29224C61O29235,,
code-creation,LazyCompile,10,75653,0xb6d53577d6e,307,removeListener node:events:561:28,0x334c17f32778,~
code-source-info,0xb6d53577d6e,13,16175,17446,C0O16200C3O16200C7O16252C12O16267C14O16301C16O16313C17O16334C19O16340C23O16354C25O16386C27O16398C28O16406C30O16415C35O16436C42O16445C47O16469C54O16480C59O16493C64O16510C66O16525C71O16525C75O16523C81O16570C83O16584C85O16612C91O16645C99O16679C114O16645C121O16725C127O16782C130O16813C134O16820C138O16827C139O16827C144O16850C146O16858C152O16862C159O16882C163O16886C170O16895C175O16923C180O16949C182O16834C187O16795C190O16987C191O17000C196O17015C198O17027C199O17037C200O17050C205O17072C210O17072C216O17106C222O17147C228O17159C233O17183C240O17157C246O17205C251O17205C256O17260C263O17267C268O17284C269O17303C272O17297C276O17328C282O17373C299O17373C304O17428C306O17440,,
code-creation,Eval,10,75809,0xb6d535782ae,5, node:internal/repl:1:1,0xb6d535780f8,~
script-source,119,node:internal/repl,'use strict';\n\nconst {\n Number\x2C\n NumberIsNaN\x2C\n NumberParseInt\x2C\n ObjectCreate\x2C\n} = primordials;\n\nconst REPL = require('repl');\nconst { kStandaloneREPL } = require('internal/repl/utils');\n\nmodule.exports = ObjectCreate(REPL);\nmodule.exports.createInternalRepl = createRepl;\n\nfunction createRepl(env\x2C opts\x2C cb) {\n if (typeof opts === 'function') {\n cb = opts;\n opts = null;\n }\n opts = {\n [kStandaloneREPL]: true\x2C\n ignoreUndefined: false\x2C\n useGlobal: true\x2C\n breakEvalOnSigint: true\x2C\n ...opts\n };\n\n if (NumberParseInt(env.NODE_NO_READLINE)) {\n opts.terminal = false;\n }\n\n if (env.NODE_REPL_MODE) {\n opts.replMode = {\n 'strict': REPL.REPL_MODE_STRICT\x2C\n 'sloppy': REPL.REPL_MODE_SLOPPY\n }[env.NODE_REPL_MODE.toLowerCase().trim()];\n }\n\n if (opts.replMode === undefined) {\n opts.replMode = REPL.REPL_MODE_SLOPPY;\n }\n\n const historySize = Number(env.NODE_REPL_HISTORY_SIZE);\n if (!NumberIsNaN(historySize) && historySize > 0) {\n opts.historySize = historySize;\n } else {\n opts.historySize = 1000;\n }\n\n const repl = REPL.start(opts);\n const term = 'terminal' in opts ? opts.terminal : process.stdout.isTTY;\n repl.setupHistory(term ? env.NODE_REPL_HISTORY : ''\x2C cb);\n}\n
code-source-info,0xb6d535782ae,119,0,1227,C0O0C4O1227,,
code-creation,Function,10,75875,0xb6d535783de,99, node:internal/repl:1:1,0xb6d53578218,~
code-source-info,0xb6d535783de,119,0,1227,C0O0C29O25C35O35C41O50C47O68C52O113C55O113C59O113C61O158C64O158C69O138C75O191C78O208C82O206C86O235C93O262C98O1226,,
new,MemoryChunk,0x2148b3040000,262144
code-creation,Eval,10,77248,0xb6d5357a996,5, node:repl:1:1,0xb6d5357a070,~
script-source,120,node:repl,// Copyright Joyent\x2C Inc. and other Node contributors.\n//\n// Permission is hereby granted\x2C free of charge\x2C to any person obtaining a\n// copy of this software and associated documentation files (the\n// "Software")\x2C to deal in the Software without restriction\x2C including\n// without limitation the rights to use\x2C copy\x2C modify\x2C merge\x2C publish\x2C\n// distribute\x2C sublicense\x2C and/or sell copies of the Software\x2C and to permit\n// persons to whom the Software is furnished to do so\x2C subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED "AS IS"\x2C WITHOUT WARRANTY OF ANY KIND\x2C EXPRESS\n// OR IMPLIED\x2C INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY\x2C FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM\x2C\n// DAMAGES OR OTHER LIABILITY\x2C WHETHER IN AN ACTION OF CONTRACT\x2C TORT OR\n// OTHERWISE\x2C ARISING FROM\x2C OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n/* A REPL library that you can include in your own code to get a runtime\n * interface to your program.\n *\n * const repl = require("repl");\n * // start repl on stdin\n * repl.start("prompt> ");\n *\n * // listen for unix socket connections and start repl on them\n * net.createServer(function(socket) {\n * repl.start("node via Unix socket> "\x2C socket);\n * }).listen("/tmp/node-repl-sock");\n *\n * // listen for TCP socket connections and start repl on them\n * net.createServer(function(socket) {\n * repl.start("node via TCP socket> "\x2C socket);\n * }).listen(5001);\n *\n * // expose foo to repl context\n * repl.start("node > ").context.foo = "stdin is fun";\n */\n\n'use strict';\n\nconst {\n ArrayPrototypeConcat\x2C\n ArrayPrototypeFilter\x2C\n ArrayPrototypeFindIndex\x2C\n ArrayPrototypeForEach\x2C\n ArrayPrototypeIncludes\x2C\n ArrayPrototypeJoin\x2C\n ArrayPrototypeMap\x2C\n ArrayPrototypePop\x2C\n ArrayPrototypePush\x2C\n ArrayPrototypeReverse\x2C\n ArrayPrototypeShift\x2C\n ArrayPrototypeSlice\x2C\n ArrayPrototypeSome\x2C\n ArrayPrototypeSort\x2C\n ArrayPrototypeSplice\x2C\n ArrayPrototypeUnshift\x2C\n Boolean\x2C\n Error\x2C\n FunctionPrototypeBind\x2C\n MathMaxApply\x2C\n NumberIsNaN\x2C\n NumberParseFloat\x2C\n ObjectAssign\x2C\n ObjectCreate\x2C\n ObjectDefineProperty\x2C\n ObjectGetOwnPropertyDescriptor\x2C\n ObjectGetOwnPropertyNames\x2C\n ObjectGetPrototypeOf\x2C\n ObjectKeys\x2C\n ObjectSetPrototypeOf\x2C\n Promise\x2C\n PromiseRace\x2C\n ReflectApply\x2C\n RegExp\x2C\n RegExpPrototypeExec\x2C\n RegExpPrototypeSymbolReplace\x2C\n RegExpPrototypeTest\x2C\n SafeSet\x2C\n SafeWeakSet\x2C\n StringPrototypeCharAt\x2C\n StringPrototypeCodePointAt\x2C\n StringPrototypeEndsWith\x2C\n StringPrototypeIncludes\x2C\n StringPrototypeMatch\x2C\n StringPrototypeRepeat\x2C\n StringPrototypeReplace\x2C\n StringPrototypeSlice\x2C\n StringPrototypeSplit\x2C\n StringPrototypeStartsWith\x2C\n StringPrototypeTrim\x2C\n StringPrototypeTrimLeft\x2C\n Symbol\x2C\n SyntaxError\x2C\n SyntaxErrorPrototype\x2C\n globalThis\x2C\n} = primordials;\n\nconst {\n makeRequireFunction\x2C\n addBuiltinLibsToObject\n} = require('internal/modules/cjs/helpers');\nconst {\n isIdentifierStart\x2C\n isIdentifierChar\n} = require('internal/deps/acorn/acorn/dist/acorn');\nconst {\n decorateErrorStack\x2C\n isError\x2C\n deprecate\n} = require('internal/util');\nconst { inspect } = require('internal/util/inspect');\nconst vm = require('vm');\nconst path = require('path');\nconst fs = require('fs');\nconst { Interface } = require('readline');\nconst {\n commonPrefix\n} = require('internal/readline/utils');\nconst { Console } = require('console');\nconst CJSModule = require('internal/modules/cjs/loader').Module;\nlet _builtinLibs = ArrayPrototypeFilter(\n CJSModule.builtinModules\x2C\n (e) => !StringPrototypeStartsWith(e\x2C '_') && !StringPrototypeIncludes(e\x2C '/')\n);\nconst nodeSchemeBuiltinLibs = ArrayPrototypeMap(\n _builtinLibs\x2C (lib) => `node:${lib}`);\nconst domain = require('domain');\nlet debug = require('internal/util/debuglog').debuglog('repl'\x2C (fn) => {\n debug = fn;\n});\nconst {\n codes: {\n ERR_CANNOT_WATCH_SIGINT\x2C\n ERR_INVALID_REPL_EVAL_CONFIG\x2C\n ERR_INVALID_REPL_INPUT\x2C\n ERR_SCRIPT_EXECUTION_INTERRUPTED\x2C\n }\x2C\n isErrorStackTraceLimitWritable\x2C\n overrideStackTrace\x2C\n} = require('internal/errors');\nconst { sendInspectorCommand } = require('internal/util/inspector');\nconst { getOptionValue } = require('internal/options');\nconst {\n validateFunction\x2C\n validateObject\x2C\n} = require('internal/validators');\nconst experimentalREPLAwait = getOptionValue(\n '--experimental-repl-await'\n);\nconst pendingDeprecation = getOptionValue('--pending-deprecation');\nconst {\n REPL_MODE_SLOPPY\x2C\n REPL_MODE_STRICT\x2C\n isRecoverableError\x2C\n kStandaloneREPL\x2C\n setupPreview\x2C\n setupReverseSearch\x2C\n} = require('internal/repl/utils');\nconst {\n getOwnNonIndexProperties\x2C\n propertyFilter: {\n ALL_PROPERTIES\x2C\n SKIP_SYMBOLS\n }\n} = internalBinding('util');\nconst {\n startSigintWatchdog\x2C\n stopSigintWatchdog\n} = internalBinding('contextify');\n\nconst history = require('internal/repl/history');\nconst {\n extensionFormatMap\x2C\n legacyExtensionFormatMap\x2C\n} = require('internal/modules/esm/get_format');\n\nlet nextREPLResourceNumber = 1;\n// This prevents v8 code cache from getting confused and using a different\n// cache from a resource of the same name\nfunction getREPLResourceName() {\n return `REPL${nextREPLResourceNumber++}`;\n}\n\n// Lazy-loaded.\nlet processTopLevelAwait;\n\nconst globalBuiltins =\n new SafeSet(vm.runInNewContext('Object.getOwnPropertyNames(globalThis)'));\n\nconst parentModule = module;\nconst domainSet = new SafeWeakSet();\n\nconst kBufferedCommandSymbol = Symbol('bufferedCommand');\nconst kContextId = Symbol('contextId');\n\nlet addedNewListener = false;\n\ntry {\n // Hack for require.resolve("./relative") to work properly.\n module.filename = path.resolve('repl');\n} catch {\n // path.resolve('repl') fails when the current working directory has been\n // deleted. Fall back to the directory name of the (absolute) executable\n // path. It's not really correct but what are the alternatives?\n const dirname = path.dirname(process.execPath);\n module.filename = path.resolve(dirname\x2C 'repl');\n}\n\n// Hack for repl require to work properly with node_modules folders\nmodule.paths = CJSModule._nodeModulePaths(module.filename);\n\n// This is the default "writer" value\x2C if none is passed in the REPL options\x2C\n// and it can be overridden by custom print functions\x2C such as `probe` or\n// `eyes.js`.\nconst writer = (obj) => inspect(obj\x2C writer.options);\nwriter.options = { ...inspect.defaultOptions\x2C showProxy: true };\n\nfunction REPLServer(prompt\x2C\n stream\x2C\n eval_\x2C\n useGlobal\x2C\n ignoreUndefined\x2C\n replMode) {\n if (!(this instanceof REPLServer)) {\n return new REPLServer(prompt\x2C\n stream\x2C\n eval_\x2C\n useGlobal\x2C\n ignoreUndefined\x2C\n replMode);\n }\n\n let options;\n if (prompt !== null && typeof prompt === 'object') {\n // An options object was given.\n options = { ...prompt };\n stream = options.stream || options.socket;\n eval_ = options.eval;\n useGlobal = options.useGlobal;\n ignoreUndefined = options.ignoreUndefined;\n prompt = options.prompt;\n replMode = options.replMode;\n } else {\n options = {};\n }\n\n if (!options.input && !options.output) {\n // Legacy API\x2C passing a 'stream'/'socket' option.\n if (!stream) {\n // Use stdin and stdout as the default streams if none were given.\n stream = process;\n }\n // We're given a duplex readable/writable Stream\x2C like a `net.Socket`\n // or a custom object with 2 streams\x2C or the `process` object.\n options.input = stream.stdin || stream;\n options.output = stream.stdout || stream;\n }\n\n if (options.terminal === undefined) {\n options.terminal = options.output.isTTY;\n }\n options.terminal = !!options.terminal;\n\n if (options.terminal && options.useColors === undefined) {\n // If possible\x2C check if stdout supports colors or not.\n if (options.output.hasColors) {\n options.useColors = options.output.hasColors();\n } else if (process.env.NODE_DISABLE_COLORS === undefined) {\n options.useColors = true;\n }\n }\n\n // TODO(devsnek): Add a test case for custom eval functions.\n const preview = options.terminal &&\n (options.preview !== undefined ? !!options.preview : !eval_);\n\n ObjectDefineProperty(this\x2C 'inputStream'\x2C {\n get: pendingDeprecation ?\n deprecate(() => this.input\x2C\n 'repl.inputStream and repl.outputStream are deprecated. ' +\n 'Use repl.input and repl.output instead'\x2C\n 'DEP0141') :\n () => this.input\x2C\n set: pendingDeprecation ?\n deprecate((val) => this.input = val\x2C\n 'repl.inputStream and repl.outputStream are deprecated. ' +\n 'Use repl.input and repl.output instead'\x2C\n 'DEP0141') :\n (val) => this.input = val\x2C\n enumerable: false\x2C\n configurable: true\n });\n ObjectDefineProperty(this\x2C 'outputStream'\x2C {\n get: pendingDeprecation ?\n deprecate(() => this.output\x2C\n 'repl.inputStream and repl.outputStream are deprecated. ' +\n 'Use repl.input and repl.output instead'\x2C\n 'DEP0141') :\n () => this.output\x2C\n set: pendingDeprecation ?\n deprecate((val) => this.output = val\x2C\n 'repl.inputStream and repl.outputStream are deprecated. ' +\n 'Use repl.input and repl.output instead'\x2C\n 'DEP0141') :\n (val) => this.output = val\x2C\n enumerable: false\x2C\n configurable: true\n });\n\n this.allowBlockingCompletions = !!options.allowBlockingCompletions;\n this.useColors = !!options.useColors;\n this._domain = options.domain || domain.create();\n this.useGlobal = !!useGlobal;\n this.ignoreUndefined = !!ignoreUndefined;\n this.replMode = replMode || module.exports.REPL_MODE_SLOPPY;\n this.underscoreAssigned = false;\n this.last = undefined;\n this.underscoreErrAssigned = false;\n this.lastError = undefined;\n this.breakEvalOnSigint = !!options.breakEvalOnSigint;\n this.editorMode = false;\n // Context id for use with the inspector protocol.\n this[kContextId] = undefined;\n\n if (this.breakEvalOnSigint && eval_) {\n // Allowing this would not reflect user expectations.\n // breakEvalOnSigint affects only the behavior of the default eval().\n throw new ERR_INVALID_REPL_EVAL_CONFIG();\n }\n\n if (options[kStandaloneREPL]) {\n // It is possible to introspect the running REPL accessing this variable\n // from inside the REPL. This is useful for anyone working on the REPL.\n module.exports.repl = this;\n } else if (!addedNewListener) {\n // Add this listener only once and use a WeakSet that contains the REPLs\n // domains. Otherwise we'd have to add a single listener to each REPL\n // instance and that could trigger the `MaxListenersExceededWarning`.\n process.prependListener('newListener'\x2C (event\x2C listener) => {\n if (event === 'uncaughtException' &&\n process.domain &&\n listener.name !== 'domainUncaughtExceptionClear' &&\n domainSet.has(process.domain)) {\n // Throw an error so that the event will not be added and the current\n // domain takes over. That way the user is notified about the error\n // and the current code evaluation is stopped\x2C just as any other code\n // that contains an error.\n throw new ERR_INVALID_REPL_INPUT(\n 'Listeners for `uncaughtException` cannot be used in the REPL');\n }\n });\n addedNewListener = true;\n }\n\n domainSet.add(this._domain);\n\n const savedRegExMatches = [''\x2C ''\x2C ''\x2C ''\x2C ''\x2C ''\x2C ''\x2C ''\x2C ''\x2C ''];\n const sep = '\\u0000\\u0000\\u0000';\n const regExMatcher = new RegExp(`^${sep}(.*)${sep}(.*)${sep}(.*)${sep}(.*)` +\n `${sep}(.*)${sep}(.*)${sep}(.*)${sep}(.*)` +\n `${sep}(.*)$`);\n\n eval_ = eval_ || defaultEval;\n\n const self = this;\n\n // Pause taking in new input\x2C and store the keys in a buffer.\n const pausedBuffer = [];\n let paused = false;\n function pause() {\n paused = true;\n }\n\n function unpause() {\n if (!paused) return;\n paused = false;\n let entry;\n const tmpCompletionEnabled = self.isCompletionEnabled;\n while (entry = ArrayPrototypeShift(pausedBuffer)) {\n const { 0: type\x2C 1: payload\x2C 2: isCompletionEnabled } = entry;\n switch (type) {\n case 'key': {\n const { 0: d\x2C 1: key } = payload;\n self.isCompletionEnabled = isCompletionEnabled;\n self._ttyWrite(d\x2C key);\n break;\n }\n case 'close':\n self.emit('exit');\n break;\n }\n if (paused) {\n break;\n }\n }\n self.isCompletionEnabled = tmpCompletionEnabled;\n }\n\n function defaultEval(code\x2C context\x2C file\x2C cb) {\n const asyncESM = require('internal/process/esm_loader');\n\n let result\x2C script\x2C wrappedErr;\n let err = null;\n let wrappedCmd = false;\n let awaitPromise = false;\n const input = code;\n\n // It's confusing for `{ a : 1 }` to be interpreted as a block\n // statement rather than an object literal. So\x2C we first try\n // to wrap it in parentheses\x2C so that it will be interpreted as\n // an expression. Note that if the above condition changes\x2C\n // lib/internal/repl/utils.js needs to be changed to match.\n if (RegExpPrototypeTest(/^\\s*{/\x2C code) &&\n !RegExpPrototypeTest(/;\\s*$/\x2C code)) {\n code = `(${StringPrototypeTrim(code)})\\n`;\n wrappedCmd = true;\n }\n\n // `experimentalREPLAwait` is set to true by default.\n // Shall be false in case `--no-experimental-repl-await` flag is used.\n if (experimentalREPLAwait && StringPrototypeIncludes(code\x2C 'await')) {\n if (processTopLevelAwait === undefined) {\n ({ processTopLevelAwait } = require('internal/repl/await'));\n }\n\n try {\n const potentialWrappedCode = processTopLevelAwait(code);\n if (potentialWrappedCode !== null) {\n code = potentialWrappedCode;\n wrappedCmd = true;\n awaitPromise = true;\n }\n } catch (e) {\n let recoverableError = false;\n if (e.name === 'SyntaxError') {\n let parentURL;\n try {\n const { pathToFileURL } = require('url');\n // Adding `/repl` prevents dynamic imports from loading relative\n // to the parent of `process.cwd()`.\n parentURL = pathToFileURL(path.join(process.cwd()\x2C 'repl')).href;\n } catch {\n }\n\n // Remove all "await"s and attempt running the script\n // in order to detect if error is truly non recoverable\n const fallbackCode = RegExpPrototypeSymbolReplace(/\\bawait\\b/g\x2C code\x2C '');\n try {\n vm.createScript(fallbackCode\x2C {\n filename: file\x2C\n displayErrors: true\x2C\n importModuleDynamically: async (specifier) => {\n return asyncESM.ESMLoader.import(specifier\x2C parentURL);\n }\n });\n } catch (fallbackError) {\n if (isRecoverableError(fallbackError\x2C fallbackCode)) {\n recoverableError = true;\n err = new Recoverable(e);\n }\n }\n }\n if (!recoverableError) {\n decorateErrorStack(e);\n err = e;\n }\n }\n }\n\n // First\x2C create the Script object to check the syntax\n if (code === '\\n')\n return cb(null);\n\n if (err === null) {\n let parentURL;\n try {\n const { pathToFileURL } = require('url');\n // Adding `/repl` prevents dynamic imports from loading relative\n // to the parent of `process.cwd()`.\n parentURL = pathToFileURL(path.join(process.cwd()\x2C 'repl')).href;\n } catch {\n }\n while (true) {\n try {\n if (self.replMode === module.exports.REPL_MODE_STRICT &&\n !RegExpPrototypeTest(/^\\s*$/\x2C code)) {\n // "void 0" keeps the repl from returning "use strict" as the result\n // value for statements and declarations that don't return a value.\n code = `'use strict'; void 0;\\n${code}`;\n }\n script = vm.createScript(code\x2C {\n filename: file\x2C\n displayErrors: true\x2C\n importModuleDynamically: async (specifier) => {\n return asyncESM.ESMLoader.import(specifier\x2C parentURL);\n }\n });\n } catch (e) {\n debug('parse error %j'\x2C code\x2C e);\n if (wrappedCmd) {\n // Unwrap and try again\n wrappedCmd = false;\n awaitPromise = false;\n code = input;\n wrappedErr = e;\n continue;\n }\n // Preserve original error for wrapped command\n const error = wrappedErr || e;\n if (isRecoverableError(error\x2C code))\n err = new Recoverable(error);\n else\n err = error;\n }\n break;\n }\n }\n\n // This will set the values from `savedRegExMatches` to corresponding\n // predefined RegExp properties `RegExp.$1`\x2C `RegExp.$2` ... `RegExp.$9`\n RegExpPrototypeTest(regExMatcher\x2C\n ArrayPrototypeJoin(savedRegExMatches\x2C sep));\n\n let finished = false;\n function finishExecution(err\x2C result) {\n if (finished) return;\n finished = true;\n\n // After executing the current expression\x2C store the values of RegExp\n // predefined properties back in `savedRegExMatches`\n for (let idx = 1; idx < savedRegExMatches.length; idx += 1) {\n savedRegExMatches[idx] = RegExp[`$${idx}`];\n }\n\n cb(err\x2C result);\n }\n\n if (!err) {\n // Unset raw mode during evaluation so that Ctrl+C raises a signal.\n let previouslyInRawMode;\n if (self.breakEvalOnSigint) {\n // Start the SIGINT watchdog before entering raw mode so that a very\n // quick Ctrl+C doesn't lead to aborting the process completely.\n if (!startSigintWatchdog())\n throw new ERR_CANNOT_WATCH_SIGINT();\n previouslyInRawMode = self._setRawMode(false);\n }\n\n try {\n try {\n const scriptOptions = {\n displayErrors: false\x2C\n breakOnSigint: self.breakEvalOnSigint\n };\n\n if (self.useGlobal) {\n result = script.runInThisContext(scriptOptions);\n } else {\n result = script.runInContext(context\x2C scriptOptions);\n }\n } finally {\n if (self.breakEvalOnSigint) {\n // Reset terminal mode to its previous value.\n self._setRawMode(previouslyInRawMode);\n\n // Returns true if there were pending SIGINTs *after* the script\n // has terminated without being interrupted itself.\n if (stopSigintWatchdog()) {\n self.emit('SIGINT');\n }\n }\n }\n } catch (e) {\n err = e;\n\n if (process.domain) {\n debug('not recoverable\x2C send to domain');\n process.domain.emit('error'\x2C err);\n process.domain.exit();\n return;\n }\n }\n\n if (awaitPromise && !err) {\n let sigintListener;\n pause();\n let promise = result;\n if (self.breakEvalOnSigint) {\n const interrupt = new Promise((resolve\x2C reject) => {\n sigintListener = () => {\n const tmp = Error.stackTraceLimit;\n if (isErrorStackTraceLimitWritable()) Error.stackTraceLimit = 0;\n const err = new ERR_SCRIPT_EXECUTION_INTERRUPTED();\n if (isErrorStackTraceLimitWritable()) Error.stackTraceLimit = tmp;\n reject(err);\n };\n prioritizedSigintQueue.add(sigintListener);\n });\n promise = PromiseRace([promise\x2C interrupt]);\n }\n\n (async () => {\n try {\n const result = await promise;\n finishExecution(null\x2C result);\n } catch (err) {\n if (err && process.domain) {\n debug('not recoverable\x2C send to domain');\n process.domain.emit('error'\x2C err);\n process.domain.exit();\n return;\n }\n finishExecution(err);\n } finally {\n // Remove prioritized SIGINT listener if it was not called.\n prioritizedSigintQueue.delete(sigintListener);\n unpause();\n }\n })();\n }\n }\n\n if (!awaitPromise || err) {\n finishExecution(err\x2C result);\n }\n }\n\n self.eval = self._domain.bind(eval_);\n\n self._domain.on('error'\x2C function debugDomainError(e) {\n debug('domain error');\n let errStack = '';\n\n if (typeof e === 'object' && e !== null) {\n overrideStackTrace.set(e\x2C (error\x2C stackFrames) => {\n let frames;\n if (typeof stackFrames === 'object') {\n // Search from the bottom of the call stack to\n // find the first frame with a null function name\n const idx = ArrayPrototypeFindIndex(\n ArrayPrototypeReverse(stackFrames)\x2C\n (frame) => frame.getFunctionName() === null\n );\n // If found\x2C get rid of it and everything below it\n frames = ArrayPrototypeSplice(stackFrames\x2C idx + 1);\n } else {\n frames = stackFrames;\n }\n // FIXME(devsnek): this is inconsistent with the checks\n // that the real prepareStackTrace dispatch uses in\n // lib/internal/errors.js.\n if (typeof Error.prepareStackTrace === 'function') {\n return Error.prepareStackTrace(error\x2C frames);\n }\n ArrayPrototypePush(frames\x2C error);\n return ArrayPrototypeJoin(ArrayPrototypeReverse(frames)\x2C '\\n at ');\n });\n decorateErrorStack(e);\n\n if (e.domainThrown) {\n delete e.domain;\n delete e.domainThrown;\n }\n\n if (isError(e)) {\n if (e.stack) {\n if (e.name === 'SyntaxError') {\n // Remove stack trace.\n e.stack = StringPrototypeReplace(StringPrototypeReplace(e.stack\x2C\n /^REPL\\d+:\\d+\\r?\\n/\x2C '')\x2C\n /^\\s+at\\s.*\\n?/gm\x2C '');\n const importErrorStr = 'Cannot use import statement outside a ' +\n 'module';\n if (StringPrototypeIncludes(e.message\x2C importErrorStr)) {\n e.message = 'Cannot use import statement inside the Node.js ' +\n 'REPL\x2C alternatively use dynamic import';\n e.stack = StringPrototypeReplace(e.stack\x2C\n /SyntaxError:.*\\n/\x2C\n `SyntaxError: ${e.message}\\n`);\n }\n } else if (self.replMode === module.exports.REPL_MODE_STRICT) {\n e.stack = StringPrototypeReplace(\n e.stack\x2C\n /(\\s+at\\s+REPL\\d+:)(\\d+)/\x2C\n (_\x2C pre\x2C line) => pre + (line - 1)\n );\n }\n }\n errStack = self.writer(e);\n\n // Remove one line error braces to keep the old style in place.\n if (errStack[0] === '[' && errStack[errStack.length - 1] === ']') {\n errStack = StringPrototypeSlice(errStack\x2C 1\x2C -1);\n }\n }\n }\n\n if (!self.underscoreErrAssigned) {\n self.lastError = e;\n }\n\n if (options[kStandaloneREPL] &&\n process.listenerCount('uncaughtException') !== 0) {\n process.nextTick(() => {\n process.emit('uncaughtException'\x2C e);\n self.clearBufferedCommand();\n self.lines.level = [];\n self.displayPrompt();\n });\n } else {\n if (errStack === '') {\n errStack = self.writer(e);\n }\n const lines = StringPrototypeSplit(errStack\x2C /(?<=\\n)/);\n let matched = false;\n\n errStack = '';\n ArrayPrototypeForEach(lines\x2C (line) => {\n if (!matched &&\n RegExpPrototypeTest(/^\\[?([A-Z][a-z0-9_]*)*Error/\x2C line)) {\n errStack += writer.options.breakLength >= line.length ?\n `Uncaught ${line}` :\n `Uncaught:\\n${line}`;\n matched = true;\n } else {\n errStack += line;\n }\n });\n if (!matched) {\n const ln = lines.length === 1 ? ' ' : ':\\n';\n errStack = `Uncaught${ln}${errStack}`;\n }\n // Normalize line endings.\n errStack += StringPrototypeEndsWith(errStack\x2C '\\n') ? '' : '\\n';\n self.output.write(errStack);\n self.clearBufferedCommand();\n self.lines.level = [];\n self.displayPrompt();\n }\n });\n\n self.clearBufferedCommand();\n\n function completer(text\x2C cb) {\n ReflectApply(complete\x2C self\x2C\n [text\x2C self.editorMode ? self.completeOnEditorMode(cb) : cb]);\n }\n\n ReflectApply(Interface\x2C this\x2C [{\n input: options.input\x2C\n output: options.output\x2C\n completer: options.completer || completer\x2C\n terminal: options.terminal\x2C\n historySize: options.historySize\x2C\n prompt\n }]);\n\n self.resetContext();\n\n this.commands = ObjectCreate(null);\n defineDefaultCommands(this);\n\n // Figure out which "writer" function to use\n self.writer = options.writer || module.exports.writer;\n\n if (self.writer === writer) {\n // Conditionally turn on ANSI coloring.\n writer.options.colors = self.useColors;\n\n if (options[kStandaloneREPL]) {\n ObjectDefineProperty(inspect\x2C 'replDefaults'\x2C {\n get() {\n return writer.options;\n }\x2C\n set(options) {\n validateObject(options\x2C 'options');\n return ObjectAssign(writer.options\x2C options);\n }\x2C\n enumerable: true\x2C\n configurable: true\n });\n }\n }\n\n function _parseREPLKeyword(keyword\x2C rest) {\n const cmd = this.commands[keyword];\n if (cmd) {\n ReflectApply(cmd.action\x2C this\x2C [rest]);\n return true;\n }\n return false;\n }\n\n self.on('close'\x2C function emitExit() {\n if (paused) {\n ArrayPrototypePush(pausedBuffer\x2C ['close']);\n return;\n }\n self.emit('exit');\n });\n\n let sawSIGINT = false;\n let sawCtrlD = false;\n const prioritizedSigintQueue = new SafeSet();\n self.on('SIGINT'\x2C function onSigInt() {\n if (prioritizedSigintQueue.size > 0) {\n for (const task of prioritizedSigintQueue) {\n task();\n }\n return;\n }\n\n const empty = self.line.length === 0;\n self.clearLine();\n _turnOffEditorMode(self);\n\n const cmd = self[kBufferedCommandSymbol];\n if (!(cmd && cmd.length > 0) && empty) {\n if (sawSIGINT) {\n self.close();\n sawSIGINT = false;\n return;\n }\n self.output.write(\n '(To exit\x2C press Ctrl+C again or Ctrl+D or type .exit)\\n'\n );\n sawSIGINT = true;\n } else {\n sawSIGINT = false;\n }\n\n self.clearBufferedCommand();\n self.lines.level = [];\n self.displayPrompt();\n });\n\n self.on('line'\x2C function onLine(cmd) {\n debug('line %j'\x2C cmd);\n cmd = cmd || '';\n sawSIGINT = false;\n\n if (self.editorMode) {\n self[kBufferedCommandSymbol] += cmd + '\\n';\n\n // code alignment\n const matches = self._sawKeyPress ?\n StringPrototypeMatch(cmd\x2C /^\\s+/) : null;\n if (matches) {\n const prefix = matches[0];\n self.write(prefix);\n self.line = prefix;\n self.cursor = prefix.length;\n }\n ReflectApply(_memory\x2C self\x2C [cmd]);\n return;\n }\n\n // Check REPL keywords and empty lines against a trimmed line input.\n const trimmedCmd = StringPrototypeTrim(cmd);\n\n // Check to see if a REPL keyword was used. If it returns true\x2C\n // display next prompt and return.\n if (trimmedCmd) {\n if (StringPrototypeCharAt(trimmedCmd\x2C 0) === '.' &&\n StringPrototypeCharAt(trimmedCmd\x2C 1) !== '.' &&\n NumberIsNaN(NumberParseFloat(trimmedCmd))) {\n const matches = StringPrototypeMatch(trimmedCmd\x2C /^\\.([^\\s]+)\\s*(.*)$/);\n const keyword = matches && matches[1];\n const rest = matches && matches[2];\n if (ReflectApply(_parseREPLKeyword\x2C self\x2C [keyword\x2C rest]) === true) {\n return;\n }\n if (!self[kBufferedCommandSymbol]) {\n self.output.write('Invalid REPL keyword\\n');\n finish(null);\n return;\n }\n }\n }\n\n const evalCmd = self[kBufferedCommandSymbol] + cmd + '\\n';\n\n debug('eval %j'\x2C evalCmd);\n self.eval(evalCmd\x2C self.context\x2C getREPLResourceName()\x2C finish);\n\n function finish(e\x2C ret) {\n debug('finish'\x2C e\x2C ret);\n ReflectApply(_memory\x2C self\x2C [cmd]);\n\n if (e && !self[kBufferedCommandSymbol] &&\n StringPrototypeStartsWith(StringPrototypeTrim(cmd)\x2C 'npm ')) {\n self.output.write('npm should be run outside of the ' +\n 'Node.js REPL\x2C in your normal shell.\\n' +\n '(Press Ctrl+D to exit.)\\n');\n self.displayPrompt();\n return;\n }\n\n // If error was SyntaxError and not JSON.parse error\n if (e) {\n if (e instanceof Recoverable && !sawCtrlD) {\n // Start buffering data like that:\n // {\n // ... x: 1\n // ... }\n self[kBufferedCommandSymbol] += cmd + '\\n';\n self.displayPrompt();\n return;\n }\n self._domain.emit('error'\x2C e.err || e);\n }\n\n // Clear buffer if no SyntaxErrors\n self.clearBufferedCommand();\n sawCtrlD = false;\n\n // If we got any output - print it (if no error)\n if (!e &&\n // When an invalid REPL command is used\x2C error message is printed\n // immediately. We don't have to print anything else. So\x2C only when\n // the second argument to this function is there\x2C print it.\n arguments.length === 2 &&\n (!self.ignoreUndefined || ret !== undefined)) {\n if (!self.underscoreAssigned) {\n self.last = ret;\n }\n self.output.write(self.writer(ret) + '\\n');\n }\n\n // Display prompt again (unless we already did by emitting the 'error'\n // event on the domain instance).\n if (!e) {\n self.displayPrompt();\n }\n }\n });\n\n self.on('SIGCONT'\x2C function onSigCont() {\n if (self.editorMode) {\n self.output.write(`${self._initialPrompt}.editor\\n`);\n self.output.write(\n '// Entering editor mode (Ctrl+D to finish\x2C Ctrl+C to cancel)\\n');\n self.output.write(`${self[kBufferedCommandSymbol]}\\n`);\n self.prompt(true);\n } else {\n self.displayPrompt(true);\n }\n });\n\n const { reverseSearch } = setupReverseSearch(this);\n\n const {\n clearPreview\x2C\n showPreview\n } = setupPreview(\n this\x2C\n kContextId\x2C\n kBufferedCommandSymbol\x2C\n preview\n );\n\n // Wrap readline tty to enable editor mode and pausing.\n const ttyWrite = FunctionPrototypeBind(self._ttyWrite\x2C self);\n self._ttyWrite = (d\x2C key) => {\n key = key || {};\n if (paused && !(self.breakEvalOnSigint && key.ctrl && key.name === 'c')) {\n ArrayPrototypePush(pausedBuffer\x2C\n ['key'\x2C [d\x2C key]\x2C self.isCompletionEnabled]);\n return;\n }\n if (!self.editorMode || !self.terminal) {\n // Before exiting\x2C make sure to clear the line.\n if (key.ctrl && key.name === 'd' &&\n self.cursor === 0 && self.line.length === 0) {\n self.clearLine();\n }\n clearPreview(key);\n if (!reverseSearch(d\x2C key)) {\n ttyWrite(d\x2C key);\n showPreview();\n }\n return;\n }\n\n // Editor mode\n if (key.ctrl && !key.shift) {\n switch (key.name) {\n // TODO(BridgeAR): There should not be a special mode necessary for full\n // multiline support.\n case 'd': // End editor mode\n _turnOffEditorMode(self);\n sawCtrlD = true;\n ttyWrite(d\x2C { name: 'return' });\n break;\n case 'n': // Override next history item\n case 'p': // Override previous history item\n break;\n default:\n ttyWrite(d\x2C key);\n }\n } else {\n switch (key.name) {\n case 'up': // Override previous history item\n case 'down': // Override next history item\n break;\n case 'tab':\n // Prevent double tab behavior\n self._previousKey = null;\n ttyWrite(d\x2C key);\n break;\n default:\n ttyWrite(d\x2C key);\n }\n }\n };\n\n self.displayPrompt();\n}\nObjectSetPrototypeOf(REPLServer.prototype\x2C Interface.prototype);\nObjectSetPrototypeOf(REPLServer\x2C Interface);\n\n// Prompt is a string to print on each line for the prompt\x2C\n// source is a stream to use for I/O\x2C defaulting to stdin/stdout.\nfunction start(prompt\x2C source\x2C eval_\x2C useGlobal\x2C ignoreUndefined\x2C replMode) {\n return new REPLServer(\n prompt\x2C source\x2C eval_\x2C useGlobal\x2C ignoreUndefined\x2C replMode);\n}\n\nREPLServer.prototype.setupHistory = function setupHistory(historyFile\x2C cb) {\n history(this\x2C historyFile\x2C cb);\n};\n\nREPLServer.prototype.clearBufferedCommand = function clearBufferedCommand() {\n this[kBufferedCommandSymbol] = '';\n};\n\nREPLServer.prototype.close = function close() {\n if (this.terminal && this._flushing && !this._closingOnFlush) {\n this._closingOnFlush = true;\n this.once('flushHistory'\x2C () =>\n ReflectApply(Interface.prototype.close\x2C this\x2C [])\n );\n\n return;\n }\n process.nextTick(() =>\n ReflectApply(Interface.prototype.close\x2C this\x2C [])\n );\n};\n\nREPLServer.prototype.createContext = function() {\n let context;\n if (this.useGlobal) {\n context = globalThis;\n } else {\n sendInspectorCommand((session) => {\n session.post('Runtime.enable');\n session.once('Runtime.executionContextCreated'\x2C ({ params }) => {\n this[kContextId] = params.context.id;\n });\n context = vm.createContext();\n session.post('Runtime.disable');\n }\x2C () => {\n context = vm.createContext();\n });\n ArrayPrototypeForEach(ObjectGetOwnPropertyNames(globalThis)\x2C (name) => {\n // Only set properties that do not already exist as a global builtin.\n if (!globalBuiltins.has(name)) {\n ObjectDefineProperty(context\x2C name\x2C\n ObjectGetOwnPropertyDescriptor(globalThis\x2C name));\n }\n });\n context.global = context;\n const _console = new Console(this.output);\n ObjectDefineProperty(context\x2C 'console'\x2C {\n configurable: true\x2C\n writable: true\x2C\n value: _console\n });\n }\n\n const replModule = new CJSModule('<repl>');\n replModule.paths = CJSModule._resolveLookupPaths('<repl>'\x2C parentModule);\n\n ObjectDefineProperty(context\x2C 'module'\x2C {\n configurable: true\x2C\n writable: true\x2C\n value: replModule\n });\n ObjectDefineProperty(context\x2C 'require'\x2C {\n configurable: true\x2C\n writable: true\x2C\n value: makeRequireFunction(replModule)\n });\n\n addBuiltinLibsToObject(context);\n\n return context;\n};\n\nREPLServer.prototype.resetContext = function() {\n this.context = this.createContext();\n this.underscoreAssigned = false;\n this.underscoreErrAssigned = false;\n // TODO(BridgeAR): Deprecate the lines.\n this.lines = [];\n this.lines.level = [];\n\n ObjectDefineProperty(this.context\x2C '_'\x2C {\n configurable: true\x2C\n get: () => this.last\x2C\n set: (value) => {\n this.last = value;\n if (!this.underscoreAssigned) {\n this.underscoreAssigned = true;\n this.output.write('Expression assignment to _ now disabled.\\n');\n }\n }\n });\n\n ObjectDefineProperty(this.context\x2C '_error'\x2C {\n configurable: true\x2C\n get: () => this.lastError\x2C\n set: (value) => {\n this.lastError = value;\n if (!this.underscoreErrAssigned) {\n this.underscoreErrAssigned = true;\n this.output.write(\n 'Expression assignment to _error now disabled.\\n');\n }\n }\n });\n\n // Allow REPL extensions to extend the new context\n this.emit('reset'\x2C this.context);\n};\n\nREPLServer.prototype.displayPrompt = function(preserveCursor) {\n let prompt = this._initialPrompt;\n if (this[kBufferedCommandSymbol].length) {\n prompt = '...';\n const len = this.lines.level.length ? this.lines.level.length - 1 : 0;\n const levelInd = StringPrototypeRepeat('..'\x2C len);\n prompt += levelInd + ' ';\n }\n\n // Do not overwrite `_initialPrompt` here\n ReflectApply(Interface.prototype.setPrompt\x2C this\x2C [prompt]);\n this.prompt(preserveCursor);\n};\n\n// When invoked as an API method\x2C overwrite _initialPrompt\nREPLServer.prototype.setPrompt = function setPrompt(prompt) {\n this._initialPrompt = prompt;\n ReflectApply(Interface.prototype.setPrompt\x2C this\x2C [prompt]);\n};\n\nconst importRE = /\\bimport\\s*\\(\\s*['"`](([\\w@./:-]+\\/)?(?:[\\w@./:-]*))(?![^'"`])$/;\nconst requireRE = /\\brequire\\s*\\(\\s*['"`](([\\w@./:-]+\\/)?(?:[\\w@./:-]*))(?![^'"`])$/;\nconst fsAutoCompleteRE = /fs(?:\\.promises)?\\.\\s*[a-z][a-zA-Z]+\\(\\s*["'](.*)/;\nconst simpleExpressionRE =\n /(?:[a-zA-Z_$](?:\\w|\\$)*\\??\\.)*[a-zA-Z_$](?:\\w|\\$)*\\??\\.?$/;\nconst versionedFileNamesRe = /-\\d+\\.\\d+/;\n\nfunction isIdentifier(str) {\n if (str === '') {\n return false;\n }\n const first = StringPrototypeCodePointAt(str\x2C 0);\n if (!isIdentifierStart(first)) {\n return false;\n }\n const firstLen = first > 0xffff ? 2 : 1;\n for (let i = firstLen; i < str.length; i += 1) {\n const cp = StringPrototypeCodePointAt(str\x2C i);\n if (!isIdentifierChar(cp)) {\n return false;\n }\n if (cp > 0xffff) {\n i += 1;\n }\n }\n return true;\n}\n\nfunction isNotLegacyObjectPrototypeMethod(str) {\n return isIdentifier(str) &&\n str !== '__defineGetter__' &&\n str !== '__defineSetter__' &&\n str !== '__lookupGetter__' &&\n str !== '__lookupSetter__';\n}\n\nfunction filteredOwnPropertyNames(obj) {\n if (!obj) return [];\n // `Object.prototype` is the only non-contrived object that fulfills\n // `Object.getPrototypeOf(X) === null &&\n // Object.getPrototypeOf(Object.getPrototypeOf(X.constructor)) === X`.\n let isObjectPrototype = false;\n if (ObjectGetPrototypeOf(obj) === null) {\n const ctorDescriptor = ObjectGetOwnPropertyDescriptor(obj\x2C 'constructor');\n if (ctorDescriptor && ctorDescriptor.value) {\n const ctorProto = ObjectGetPrototypeOf(ctorDescriptor.value);\n isObjectPrototype = ctorProto && ObjectGetPrototypeOf(ctorProto) === obj;\n }\n }\n const filter = ALL_PROPERTIES | SKIP_SYMBOLS;\n return ArrayPrototypeFilter(\n getOwnNonIndexProperties(obj\x2C filter)\x2C\n isObjectPrototype ? isNotLegacyObjectPrototypeMethod : isIdentifier);\n}\n\nfunction getGlobalLexicalScopeNames(contextId) {\n return sendInspectorCommand((session) => {\n let names = [];\n session.post('Runtime.globalLexicalScopeNames'\x2C {\n executionContextId: contextId\n }\x2C (error\x2C result) => {\n if (!error) names = result.names;\n });\n return names;\n }\x2C () => []);\n}\n\nREPLServer.prototype.complete = function() {\n ReflectApply(this.completer\x2C this\x2C arguments);\n};\n\nfunction gracefulReaddir(...args) {\n try {\n return ReflectApply(fs.readdirSync\x2C null\x2C args);\n } catch {}\n}\n\nfunction completeFSFunctions(line) {\n let baseName = '';\n let filePath = StringPrototypeMatch(line\x2C fsAutoCompleteRE)[1];\n let fileList = gracefulReaddir(filePath\x2C { withFileTypes: true });\n\n if (!fileList) {\n baseName = path.basename(filePath);\n filePath = path.dirname(filePath);\n fileList = gracefulReaddir(filePath\x2C { withFileTypes: true }) || [];\n }\n\n const completions = ArrayPrototypeMap(\n ArrayPrototypeFilter(\n fileList\x2C\n (dirent) => StringPrototypeStartsWith(dirent.name\x2C baseName)\n )\x2C\n (d) => d.name\n );\n\n return [[completions]\x2C baseName];\n}\n\n// Provide a list of completions for the given leading text. This is\n// given to the readline interface for handling tab completion.\n//\n// Example:\n// complete('let foo = util.')\n// -> [['util.print'\x2C 'util.debug'\x2C 'util.log'\x2C 'util.inspect']\x2C\n// 'util.' ]\n//\n// Warning: This eval's code like "foo.bar.baz"\x2C so it will run property\n// getter code.\nfunction complete(line\x2C callback) {\n // List of completion lists\x2C one for each inheritance "level"\n let completionGroups = [];\n let completeOn\x2C group;\n\n // Ignore right whitespace. It could change the outcome.\n line = StringPrototypeTrimLeft(line);\n\n // REPL commands (e.g. ".break").\n let filter = '';\n if (RegExpPrototypeTest(/^\\s*\\.(\\w*)$/\x2C line)) {\n ArrayPrototypePush(completionGroups\x2C ObjectKeys(this.commands));\n completeOn = StringPrototypeMatch(line\x2C /^\\s*\\.(\\w*)$/)[1];\n if (completeOn.length) {\n filter = completeOn;\n }\n } else if (RegExpPrototypeTest(requireRE\x2C line) &&\n this.allowBlockingCompletions) {\n // require('...<Tab>')\n const extensions = ObjectKeys(this.context.require.extensions);\n const indexes = ArrayPrototypeMap(extensions\x2C\n (extension) => `index${extension}`);\n ArrayPrototypePush(indexes\x2C 'package.json'\x2C 'index');\n\n const match = StringPrototypeMatch(line\x2C requireRE);\n completeOn = match[1];\n const subdir = match[2] || '';\n filter = completeOn;\n group = [];\n let paths = [];\n\n if (completeOn === '.') {\n group = ['./'\x2C '../'];\n } else if (completeOn === '..') {\n group = ['../'];\n } else if (RegExpPrototypeTest(/^\\.\\.?\\//\x2C completeOn)) {\n paths = [process.cwd()];\n } else {\n paths = ArrayPrototypeConcat(module.paths\x2C CJSModule.globalPaths);\n }\n\n ArrayPrototypeForEach(paths\x2C (dir) => {\n dir = path.resolve(dir\x2C subdir);\n const dirents = gracefulReaddir(dir\x2C { withFileTypes: true }) || [];\n ArrayPrototypeForEach(dirents\x2C (dirent) => {\n if (RegExpPrototypeTest(versionedFileNamesRe\x2C dirent.name) ||\n dirent.name === '.npm') {\n // Exclude versioned names that 'npm' installs.\n return;\n }\n const extension = path.extname(dirent.name);\n const base = StringPrototypeSlice(dirent.name\x2C 0\x2C -extension.length);\n if (!dirent.isDirectory()) {\n if (StringPrototypeIncludes(extensions\x2C extension) &&\n (!subdir || base !== 'index')) {\n ArrayPrototypePush(group\x2C `${subdir}${base}`);\n }\n return;\n }\n ArrayPrototypePush(group\x2C `${subdir}${dirent.name}/`);\n const absolute = path.resolve(dir\x2C dirent.name);\n if (ArrayPrototypeSome(\n gracefulReaddir(absolute) || []\x2C\n (subfile) => ArrayPrototypeIncludes(indexes\x2C subfile)\n )) {\n ArrayPrototypePush(group\x2C `${subdir}${dirent.name}`);\n }\n });\n });\n if (group.length) {\n ArrayPrototypePush(completionGroups\x2C group);\n }\n\n if (!subdir) {\n ArrayPrototypePush(completionGroups\x2C _builtinLibs\x2C nodeSchemeBuiltinLibs);\n }\n } else if (RegExpPrototypeTest(importRE\x2C line) &&\n this.allowBlockingCompletions) {\n // import('...<Tab>')\n // File extensions that can be imported:\n const extensions = ObjectKeys(\n getOptionValue('--experimental-specifier-resolution') === 'node' ?\n legacyExtensionFormatMap :\n extensionFormatMap);\n\n // Only used when loading bare module specifiers from `node_modules`:\n const indexes = ArrayPrototypeMap(extensions\x2C (ext) => `index${ext}`);\n ArrayPrototypePush(indexes\x2C 'package.json');\n\n const match = StringPrototypeMatch(line\x2C importRE);\n completeOn = match[1];\n const subdir = match[2] || '';\n filter = completeOn;\n group = [];\n let paths = [];\n if (completeOn === '.') {\n group = ['./'\x2C '../'];\n } else if (completeOn === '..') {\n group = ['../'];\n } else if (RegExpPrototypeTest(/^\\.\\.?\\//\x2C completeOn)) {\n paths = [process.cwd()];\n } else {\n paths = ArrayPrototypeSlice(module.paths);\n }\n\n ArrayPrototypeForEach(paths\x2C (dir) => {\n dir = path.resolve(dir\x2C subdir);\n const isInNodeModules = path.basename(dir) === 'node_modules';\n const dirents = gracefulReaddir(dir\x2C { withFileTypes: true }) || [];\n ArrayPrototypeForEach(dirents\x2C (dirent) => {\n const { name } = dirent;\n if (RegExpPrototypeTest(versionedFileNamesRe\x2C name) ||\n name === '.npm') {\n // Exclude versioned names that 'npm' installs.\n return;\n }\n\n if (!dirent.isDirectory()) {\n const extension = path.extname(name);\n if (StringPrototypeIncludes(extensions\x2C extension)) {\n ArrayPrototypePush(group\x2C `${subdir}${name}`);\n }\n return;\n }\n\n ArrayPrototypePush(group\x2C `${subdir}${name}/`);\n if (!subdir && isInNodeModules) {\n const absolute = path.resolve(dir\x2C name);\n const subfiles = gracefulReaddir(absolute) || [];\n if (ArrayPrototypeSome(subfiles\x2C (subfile) => {\n return ArrayPrototypeIncludes(indexes\x2C subfile);\n })) {\n ArrayPrototypePush(group\x2C `${subdir}${name}`);\n }\n }\n });\n });\n\n if (group.length) {\n ArrayPrototypePush(completionGroups\x2C group);\n }\n\n if (!subdir) {\n ArrayPrototypePush(completionGroups\x2C _builtinLibs\x2C nodeSchemeBuiltinLibs);\n }\n } else if (RegExpPrototypeTest(fsAutoCompleteRE\x2C line) &&\n this.allowBlockingCompletions) {\n ({ 0: completionGroups\x2C 1: completeOn } = completeFSFunctions(line));\n // Handle variable member lookup.\n // We support simple chained expressions like the following (no function\n // calls\x2C etc.). That is for simplicity and also because we *eval* that\n // leading expression so for safety (see WARNING above) don't want to\n // eval function calls.\n //\n // foo.bar<|> # completions for 'foo' with filter 'bar'\n // spam.eggs.<|> # completions for 'spam.eggs' with filter ''\n // foo<|> # all scope vars with filter 'foo'\n // foo.<|> # completions for 'foo' with filter ''\n } else if (line.length === 0 ||\n RegExpPrototypeTest(/\\w|\\.|\\$/\x2C line[line.length - 1])) {\n const { 0: match } = RegExpPrototypeExec(simpleExpressionRE\x2C line) || [''];\n if (line.length !== 0 && !match) {\n completionGroupsLoaded();\n return;\n }\n let expr = '';\n completeOn = match;\n if (StringPrototypeEndsWith(line\x2C '.')) {\n expr = StringPrototypeSlice(match\x2C 0\x2C -1);\n } else if (line.length !== 0) {\n const bits = StringPrototypeSplit(match\x2C '.');\n filter = ArrayPrototypePop(bits);\n expr = ArrayPrototypeJoin(bits\x2C '.');\n }\n\n // Resolve expr and get its completions.\n if (!expr) {\n // Get global vars synchronously\n ArrayPrototypePush(completionGroups\x2C\n getGlobalLexicalScopeNames(this[kContextId]));\n let contextProto = this.context;\n while (contextProto = ObjectGetPrototypeOf(contextProto)) {\n ArrayPrototypePush(completionGroups\x2C\n filteredOwnPropertyNames(contextProto));\n }\n const contextOwnNames = filteredOwnPropertyNames(this.context);\n if (!this.useGlobal) {\n // When the context is not `global`\x2C builtins are not own\n // properties of it.\n // `globalBuiltins` is a `SafeSet`\x2C not an Array-like.\n ArrayPrototypePush(contextOwnNames\x2C ...globalBuiltins);\n }\n ArrayPrototypePush(completionGroups\x2C contextOwnNames);\n if (filter !== '') addCommonWords(completionGroups);\n completionGroupsLoaded();\n return;\n }\n\n let chaining = '.';\n if (StringPrototypeEndsWith(expr\x2C '?')) {\n expr = StringPrototypeSlice(expr\x2C 0\x2C -1);\n chaining = '?.';\n }\n\n const memberGroups = [];\n const evalExpr = `try { ${expr} } catch {}`;\n this.eval(evalExpr\x2C this.context\x2C getREPLResourceName()\x2C (e\x2C obj) => {\n try {\n let p;\n if ((typeof obj === 'object' && obj !== null) ||\n typeof obj === 'function') {\n memberGroups.push(filteredOwnPropertyNames(obj));\n p = ObjectGetPrototypeOf(obj);\n } else {\n p = obj.constructor ? obj.constructor.prototype : null;\n }\n // Circular refs possible? Let's guard against that.\n let sentinel = 5;\n while (p !== null && sentinel-- !== 0) {\n memberGroups.push(filteredOwnPropertyNames(p));\n p = ObjectGetPrototypeOf(p);\n }\n } catch {\n // Maybe a Proxy object without `getOwnPropertyNames` trap.\n // We simply ignore it here\x2C as we don't want to break the\n // autocompletion. Fixes the bug\n // https://github.com/nodejs/node/issues/2119\n }\n\n if (memberGroups.length) {\n expr += chaining;\n ArrayPrototypeForEach(memberGroups\x2C (group) => {\n ArrayPrototypePush(completionGroups\x2C\n ArrayPrototypeMap(group\x2C\n (member) => `${expr}${member}`));\n });\n if (filter) {\n filter = `${expr}${filter}`;\n }\n }\n\n completionGroupsLoaded();\n });\n return;\n }\n\n return completionGroupsLoaded();\n\n // Will be called when all completionGroups are in place\n // Useful for async autocompletion\n function completionGroupsLoaded() {\n // Filter\x2C sort (within each group)\x2C uniq and merge the completion groups.\n if (completionGroups.length && filter) {\n const newCompletionGroups = [];\n ArrayPrototypeForEach(completionGroups\x2C (group) => {\n const filteredGroup = ArrayPrototypeFilter(\n group\x2C\n (str) => StringPrototypeStartsWith(str\x2C filter)\n );\n if (filteredGroup.length) {\n ArrayPrototypePush(newCompletionGroups\x2C filteredGroup);\n }\n });\n completionGroups = newCompletionGroups;\n }\n\n const completions = [];\n // Unique completions across all groups.\n const uniqueSet = new SafeSet();\n uniqueSet.add('');\n // Completion group 0 is the "closest" (least far up the inheritance\n // chain) so we put its completions last: to be closest in the REPL.\n ArrayPrototypeForEach(completionGroups\x2C (group) => {\n ArrayPrototypeSort(group\x2C (a\x2C b) => (b > a ? 1 : -1));\n const setSize = uniqueSet.size;\n ArrayPrototypeForEach(group\x2C (entry) => {\n if (!uniqueSet.has(entry)) {\n ArrayPrototypeUnshift(completions\x2C entry);\n uniqueSet.add(entry);\n }\n });\n // Add a separator between groups.\n if (uniqueSet.size !== setSize) {\n ArrayPrototypeUnshift(completions\x2C '');\n }\n });\n\n // Remove obsolete group entry\x2C if present.\n if (completions[0] === '') {\n ArrayPrototypeShift(completions);\n }\n\n callback(null\x2C [completions\x2C completeOn]);\n }\n}\n\nREPLServer.prototype.completeOnEditorMode = (callback) => (err\x2C results) => {\n if (err) return callback(err);\n\n const { 0: completions\x2C 1: completeOn = '' } = results;\n let result = ArrayPrototypeFilter(completions\x2C Boolean);\n\n if (completeOn && result.length !== 0) {\n result = [commonPrefix(result)];\n }\n\n callback(null\x2C [result\x2C completeOn]);\n};\n\nREPLServer.prototype.defineCommand = function(keyword\x2C cmd) {\n if (typeof cmd === 'function') {\n cmd = { action: cmd };\n } else {\n validateFunction(cmd.action\x2C 'cmd.action');\n }\n this.commands[keyword] = cmd;\n};\n\n// TODO(BridgeAR): This should be replaced with acorn to build an AST. The\n// language became more complex and using a simple approach like this is not\n// sufficient anymore.\nfunction _memory(cmd) {\n const self = this;\n self.lines = self.lines || [];\n self.lines.level = self.lines.level || [];\n\n // Save the line so I can do magic later\n if (cmd) {\n const len = self.lines.level.length ? self.lines.level.length - 1 : 0;\n ArrayPrototypePush(self.lines\x2C StringPrototypeRepeat(' '\x2C len) + cmd);\n } else {\n // I don't want to not change the format too much...\n ArrayPrototypePush(self.lines\x2C '');\n }\n\n if (!cmd) {\n self.lines.level = [];\n return;\n }\n\n // I need to know "depth."\n // Because I can not tell the difference between a } that\n // closes an object literal and a } that closes a function\n\n // Going down is { and ( e.g. function() {\n // going up is } and )\n let dw = StringPrototypeMatch(cmd\x2C /[{(]/g);\n let up = StringPrototypeMatch(cmd\x2C /[})]/g);\n up = up ? up.length : 0;\n dw = dw ? dw.length : 0;\n let depth = dw - up;\n\n if (depth) {\n (function workIt() {\n if (depth > 0) {\n // Going... down.\n // Push the line#\x2C depth count\x2C and if the line is a function.\n // Since JS only has functional scope I only need to remove\n // "function() {" lines\x2C clearly this will not work for\n // "function()\n // {" but nothing should break\x2C only tab completion for local\n // scope will not work for this function.\n ArrayPrototypePush(self.lines.level\x2C {\n line: self.lines.length - 1\x2C\n depth: depth\n });\n } else if (depth < 0) {\n // Going... up.\n const curr = ArrayPrototypePop(self.lines.level);\n if (curr) {\n const tmp = curr.depth + depth;\n if (tmp < 0) {\n // More to go\x2C recurse\n depth += curr.depth;\n workIt();\n } else if (tmp > 0) {\n // Remove and push back\n curr.depth += depth;\n ArrayPrototypePush(self.lines.level\x2C curr);\n }\n }\n }\n }());\n }\n}\n\nfunction addCommonWords(completionGroups) {\n // Only words which do not yet exist as global property should be added to\n // this list.\n ArrayPrototypePush(completionGroups\x2C [\n 'async'\x2C 'await'\x2C 'break'\x2C 'case'\x2C 'catch'\x2C 'const'\x2C 'continue'\x2C\n 'debugger'\x2C 'default'\x2C 'delete'\x2C 'do'\x2C 'else'\x2C 'export'\x2C 'false'\x2C\n 'finally'\x2C 'for'\x2C 'function'\x2C 'if'\x2C 'import'\x2C 'in'\x2C 'instanceof'\x2C 'let'\x2C\n 'new'\x2C 'null'\x2C 'return'\x2C 'switch'\x2C 'this'\x2C 'throw'\x2C 'true'\x2C 'try'\x2C\n 'typeof'\x2C 'var'\x2C 'void'\x2C 'while'\x2C 'with'\x2C 'yield'\x2C\n ]);\n}\n\nfunction _turnOnEditorMode(repl) {\n repl.editorMode = true;\n ReflectApply(Interface.prototype.setPrompt\x2C repl\x2C ['']);\n}\n\nfunction _turnOffEditorMode(repl) {\n repl.editorMode = false;\n repl.setPrompt(repl._initialPrompt);\n}\n\nfunction defineDefaultCommands(repl) {\n repl.defineCommand('break'\x2C {\n help: 'Sometimes you get stuck\x2C this gets you out'\x2C\n action: function() {\n this.clearBufferedCommand();\n this.displayPrompt();\n }\n });\n\n let clearMessage;\n if (repl.useGlobal) {\n clearMessage = 'Alias for .break';\n } else {\n clearMessage = 'Break\x2C and also clear the local context';\n }\n repl.defineCommand('clear'\x2C {\n help: clearMessage\x2C\n action: function() {\n this.clearBufferedCommand();\n if (!this.useGlobal) {\n this.output.write('Clearing context...\\n');\n this.resetContext();\n }\n this.displayPrompt();\n }\n });\n\n repl.defineCommand('exit'\x2C {\n help: 'Exit the REPL'\x2C\n action: function() {\n this.close();\n }\n });\n\n repl.defineCommand('help'\x2C {\n help: 'Print this help message'\x2C\n action: function() {\n const names = ArrayPrototypeSort(ObjectKeys(this.commands));\n const longestNameLength = MathMaxApply(\n ArrayPrototypeMap(names\x2C (name) => name.length)\n );\n ArrayPrototypeForEach(names\x2C (name) => {\n const cmd = this.commands[name];\n const spaces =\n StringPrototypeRepeat(' '\x2C longestNameLength - name.length + 3);\n const line = `.${name}${cmd.help ? spaces + cmd.help : ''}\\n`;\n this.output.write(line);\n });\n this.output.write('\\nPress Ctrl+C to abort current expression\x2C ' +\n 'Ctrl+D to exit the REPL\\n');\n this.displayPrompt();\n }\n });\n\n repl.defineCommand('save'\x2C {\n help: 'Save all evaluated commands in this REPL session to a file'\x2C\n action: function(file) {\n try {\n fs.writeFileSync(file\x2C ArrayPrototypeJoin(this.lines\x2C '\\n'));\n this.output.write(`Session saved to: ${file}\\n`);\n } catch {\n this.output.write(`Failed to save: ${file}\\n`);\n }\n this.displayPrompt();\n }\n });\n\n repl.defineCommand('load'\x2C {\n help: 'Load JS from a file into the REPL session'\x2C\n action: function(file) {\n try {\n const stats = fs.statSync(file);\n if (stats && stats.isFile()) {\n _turnOnEditorMode(this);\n const data = fs.readFileSync(file\x2C 'utf8');\n this.write(data);\n _turnOffEditorMode(this);\n this.write('\\n');\n } else {\n this.output.write(\n `Failed to load: ${file} is not a valid file\\n`\n );\n }\n } catch {\n this.output.write(`Failed to load: ${file}\\n`);\n }\n this.displayPrompt();\n }\n });\n if (repl.terminal) {\n repl.defineCommand('editor'\x2C {\n help: 'Enter editor mode'\x2C\n action() {\n _turnOnEditorMode(this);\n this.output.write(\n '// Entering editor mode (Ctrl+D to finish\x2C Ctrl+C to cancel)\\n');\n }\n });\n }\n}\n\nfunction Recoverable(err) {\n this.err = err;\n}\nObjectSetPrototypeOf(Recoverable.prototype\x2C SyntaxErrorPrototype);\nObjectSetPrototypeOf(Recoverable\x2C SyntaxError);\n\nmodule.exports = {\n start\x2C\n writer\x2C\n REPLServer\x2C\n REPL_MODE_SLOPPY\x2C\n REPL_MODE_STRICT\x2C\n Recoverable\n};\n\nObjectDefineProperty(module.exports\x2C 'builtinModules'\x2C {\n get: () => _builtinLibs\x2C\n set: (val) => _builtinLibs = val\x2C\n enumerable: true\x2C\n configurable: true\n});\n\nObjectDefineProperty(module.exports\x2C '_builtinLibs'\x2C {\n get: pendingDeprecation ? deprecate(\n () => _builtinLibs\x2C\n 'repl._builtinLibs is deprecated. Check module.builtinModules instead'\x2C\n 'DEP0142'\n ) : () => _builtinLibs\x2C\n set: pendingDeprecation ? deprecate(\n (val) => _builtinLibs = val\x2C\n 'repl._builtinLibs is deprecated. Check module.builtinModules instead'\x2C\n 'DEP0142'\n ) : (val) => _builtinLibs = val\x2C\n enumerable: false\x2C\n configurable: true\n});\n
code-source-info,0xb6d5357a996,120,0,57744,C0O0C4O57744,,
tick,0x110cb8a,79762,0,0x0,3,0x11e9ce0,0xb6d5354b5fa,0xb6d53549f2e,0xc13800,0xb6d53549b23,0xb6d53549025,0x158e77f
tick,0x7f4debce35a0,79790,0,0x0,3,0x11e9ce0,0xb6d5354b5fa,0xb6d53549f2e,0xc13800,0xb6d53549b23,0xb6d53549025,0x158e77f
tick,0x7f4debe4c97a,79794,0,0x0,3,0x11e9ce0,0xb6d5354b5fa,0xb6d53549f2e,0xc13800,0xb6d53549b23,0xb6d53549025,0x158e77f
tick,0x7f4debd50632,79800,0,0x0,3,0x11e9ce0,0xb6d5354b5fa,0xb6d53549f2e,0xc13800,0xb6d53549b23,0xb6d53549025,0x158e77f
tick,0x7f4debd54dc3,79817,0,0x0,3,0x11e9ce0,0xb6d5354b5fa,0xb6d53549f2e,0xc13800,0xb6d53549b23,0xb6d53549025,0x158e77f
tick,0x7f4debe49951,79820,0,0x0,3,0x11e9ce0,0xb6d53572eb2,0xb6d53572b7d,0xb6d53572461,0xb6d53549f34,0xc13800,0xb6d53549b23,0xb6d53549025,0x158e77f
tick,0xfb2e01,79826,0,0x0,3,0x11e9ce0,0xb6d53574bfb,0xb6d535748c4,0xb6d53573985,0xb6d5357364b,0xb6d535733b1,0xb6d53573214,0xb6d53572eb2,0xb6d53572b7d,0xb6d53572461,0xb6d53549f34,0xc13800,0xb6d53549b23,0xb6d53549025,0x158e77f
tick,0x7f4debd443c5,79832,0,0x0,3,0x11e9ce0,0xb6d53575112,0xb6d53574bfb,0xb6d535748c4,0xb6d53573985,0xb6d5357364b,0xb6d535733b1,0xb6d53573214,0xb6d53572eb2,0xb6d53572b7d,0xb6d53572461,0xb6d53549f34,0xc13800,0xb6d53549b23,0xb6d53549025,0x158e77f
tick,0xd2e9f0,79839,1,0xb515a0,2,0xd44a10,0xa52511ba43c,0xa52511b972d,0xb6d53578415,0xa52511ba45d,0xa52511b972d,0xb6d53549b2e,0xb6d53549025,0x158e77f
tick,0x110cb8d,79844,1,0xb515a0,3,0xd44a10,0xa52511ba43c,0xa52511b972d,0xb6d53578415,0xa52511ba45d,0xa52511b972d,0xb6d53549b2e,0xb6d53549025,0x158e77f
tick,0x7f4debd50641,79850,1,0xb515a0,3,0xd44a10,0xa52511ba43c,0xa52511b972d,0xb6d53578415,0xa52511ba45d,0xa52511b972d,0xb6d53549b2e,0xb6d53549025,0x158e77f
tick,0x7f4debd4449c,79856,1,0xb515a0,3,0xd44a10,0xa52511ba43c,0xa52511b972d,0xb6d53578415,0xa52511ba45d,0xa52511b972d,0xb6d53549b2e,0xb6d53549025,0x158e77f
code-creation,Function,10,79864,0xb6d5357c0f6,2211, node:repl:1:1,0xb6d5357a900,~
code-source-info,0xb6d5357c0f6,120,0,57744,C0O0C433O1842C439O1866C445O1890C451O1917C457O1942C463O1968C469O1990C475O2011C481O2032C487O2054C493O2079C499O2102C505O2125C511O2147C517O2169C523O2193C529O2218C535O2229C541O2238C547O2263C553O2279C559O2294C565O2314C571O2330C577O2346C583O2370C589O2404C595O2433C601O2457C607O2471C612O2495C618O2506C624O2521C630O2537C636O2547C642O2570C648O2602C654O2625C660O2636C665O2651C671O2676C677O2706C683O2733C689O2760C695O2784C701O2809C707O2835C713O2859C719O2883C725O2912C731O2935C737O2962C742O2972C747O2987C752O3011C758O3101C764O3101C769O3051C775O3074C781O3194C787O3194C792O3152C798O3173C804O3300C810O3300C815O3253C821O3275C827O3286C833O3346C839O3346C844O3334C850O3391C856O3391C860O3391C862O3419C868O3419C872O3419C874O3447C880O3447C884O3447C886O3484C892O3484C897O3470C903O3532C909O3532C914O3515C920O3588C926O3588C931O3576C937O3626C943O3626C948O3664C952O3626C954O3692C960O3726C970O3692C975O3692C977O3855C983O3876C988O3855C993O3855C995O3930C1001O3930C1005O3930C1007O3961C1013O3961C1018O3994C1031O3995C1037O3961C1039O4253C1045O4253C1050O4253C1055O4063C1061O4092C1067O4126C1073O4154C1079O4195C1085O4229C1091O4314C1097O4314C1102O4289C1108O4377C1114O4377C1119O4358C1125O4456C1131O4456C1136O4416C1142O4436C1148O4518C1154O4518C1158O4518C1160O4594C1166O4594C1170O4594C1172O4766C1178O4766C1183O4645C1188O4665C1193O4685C1199O4707C1205O4726C1211O4742C1217O4899C1220O4899C1225O4808C1236O4858C1242O4878C1248O4980C1251O4980C1256O4934C1262O4957C1268O5028C1274O5028C1278O5028C1280O5124C1286O5124C1291O5072C1297O5094C1303O5198C1305O5198C1307O5418C1308O5418C1310O5466C1316O5481C1324O5481C1332O5466C1337O5466C1339O5563C1341O5563C1343O5589C1345O5589C1350O5589C1352O5640C1355O5640C1359O5640C1361O5686C1364O5686C1368O5686C1370O5731C1371O5731C1376O5809C1382O5832C1390O5832C1400O5825C1412O6096C1415O6101C1427O6117C1436O6101C1447O6130C1453O6153C1461O6153C1473O6146C1481O6250C1487O6275C1499O6299C1508O6275C1518O6263C1526O6492C1530O6492C1532O6531C1538O6561C1556O6588C1566O6546C1574O32488C1577O32520C1589O32541C1598O32488C1608O32553C1614O32553C1624O32897C1627O32908C1640O32931C1648O33012C1651O33023C1664O33054C1672O33131C1675O33142C1688O33158C1696O33482C1699O33493C1712O33517C1720O34923C1723O34934C1736O34957C1744O35927C1747O35938C1760O35962C1768O36458C1771O36469C1784O36489C1792O36636C1799O36636C1801O36721C1808O36721C1810O36814C1817O36814C1819O36898C1826O36898C1828O36988C1835O36988C1837O38799C1840O38810C1853O38829C1861O50567C1864O50578C1877O50609C1885O50926C1888O50937C1901O50961C1909O56875C1912O56908C1921O56875C1931O56942C1934O56942C1944O56991C1957O57012C1967O57021C1977O57031C1987O57045C1997O57065C2007O57085C2017O57006C2025O57101C2031O57129C2051O57165C2063O57192C2075O57101C2085O57267C2091O57295C2113O57329C2118O57350C2131O57350C2157O57508C2162O57529C2175O57529C2199O57267C2210O57743,,
tick,0x113abad,80367,1,0xb515a0,2,0xd44a10,0xa52511ba43c,0xa52511b972d,0xb6d5357c409,0xa52511ba45d,0xa52511b972d,0xb6d53578415,0xa52511ba45d,0xa52511b972d,0xb6d53549b2e,0xb6d53549025,0x158e77f
tick,0x1173c74,81439,1,0xb515a0,2,0xd44a10,0xa52511ba43c,0xa52511b972d,0xb6d5357c409,0xa52511ba45d,0xa52511b972d,0xb6d53578415,0xa52511ba45d,0xa52511b972d,0xb6d53549b2e,0xb6d53549025,0x158e77f
tick,0xd12758,82495,1,0xb515a0,2,0xd44a10,0xa52511ba43c,0xa52511b972d,0xb6d5357c409,0xa52511ba45d,0xa52511b972d,0xb6d53578415,0xa52511ba45d,0xa52511b972d,0xb6d53549b2e,0xb6d53549025,0x158e77f
code-creation,Eval,10,84737,0x2148b304d4e6,5, node:internal/deps/acorn/acorn/dist/acorn:1:1,0x2148b304cd18,~
script-source,121,node:internal/deps/acorn/acorn/dist/acorn,(function (global\x2C factory) {\n typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :\n typeof define === 'function' && define.amd ? define(['exports']\x2C factory) :\n (global = global || self\x2C factory(global.acorn = {}));\n}(this\x2C (function (exports) { 'use strict';\n\n // Reserved word lists for various dialects of the language\n\n var reservedWords = {\n 3: "abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile"\x2C\n 5: "class enum extends super const export import"\x2C\n 6: "enum"\x2C\n strict: "implements interface let package private protected public static yield"\x2C\n strictBind: "eval arguments"\n };\n\n // And the keywords\n\n var ecma5AndLessKeywords = "break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this";\n\n var keywords = {\n 5: ecma5AndLessKeywords\x2C\n "5module": ecma5AndLessKeywords + " export import"\x2C\n 6: ecma5AndLessKeywords + " const class extends export import super"\n };\n\n var keywordRelationalOperator = /^in(stanceof)?$/;\n\n // ## Character categories\n\n // Big ugly regular expressions that match characters in the\n // whitespace\x2C identifier\x2C and identifier-start categories. These\n // are only applied when a character is found to actually have a\n // code point above 128.\n // Generated by `bin/generate-identifier-regex.js`.\n var nonASCIIidentifierStartChars = "\\xaa\\xb5\\xba\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\u02c1\\u02c6-\\u02d1\\u02e0-\\u02e4\\u02ec\\u02ee\\u0370-\\u0374\\u0376\\u0377\\u037a-\\u037d\\u037f\\u0386\\u0388-\\u038a\\u038c\\u038e-\\u03a1\\u03a3-\\u03f5\\u03f7-\\u0481\\u048a-\\u052f\\u0531-\\u0556\\u0559\\u0560-\\u0588\\u05d0-\\u05ea\\u05ef-\\u05f2\\u0620-\\u064a\\u066e\\u066f\\u0671-\\u06d3\\u06d5\\u06e5\\u06e6\\u06ee\\u06ef\\u06fa-\\u06fc\\u06ff\\u0710\\u0712-\\u072f\\u074d-\\u07a5\\u07b1\\u07ca-\\u07ea\\u07f4\\u07f5\\u07fa\\u0800-\\u0815\\u081a\\u0824\\u0828\\u0840-\\u0858\\u0860-\\u086a\\u08a0-\\u08b4\\u08b6-\\u08c7\\u0904-\\u0939\\u093d\\u0950\\u0958-\\u0961\\u0971-\\u0980\\u0985-\\u098c\\u098f\\u0990\\u0993-\\u09a8\\u09aa-\\u09b0\\u09b2\\u09b6-\\u09b9\\u09bd\\u09ce\\u09dc\\u09dd\\u09df-\\u09e1\\u09f0\\u09f1\\u09fc\\u0a05-\\u0a0a\\u0a0f\\u0a10\\u0a13-\\u0a28\\u0a2a-\\u0a30\\u0a32\\u0a33\\u0a35\\u0a36\\u0a38\\u0a39\\u0a59-\\u0a5c\\u0a5e\\u0a72-\\u0a74\\u0a85-\\u0a8d\\u0a8f-\\u0a91\\u0a93-\\u0aa8\\u0aaa-\\u0ab0\\u0ab2\\u0ab3\\u0ab5-\\u0ab9\\u0abd\\u0ad0\\u0ae0\\u0ae1\\u0af9\\u0b05-\\u0b0c\\u0b0f\\u0b10\\u0b13-\\u0b28\\u0b2a-\\u0b30\\u0b32\\u0b33\\u0b35-\\u0b39\\u0b3d\\u0b5c\\u0b5d\\u0b5f-\\u0b61\\u0b71\\u0b83\\u0b85-\\u0b8a\\u0b8e-\\u0b90\\u0b92-\\u0b95\\u0b99\\u0b9a\\u0b9c\\u0b9e\\u0b9f\\u0ba3\\u0ba4\\u0ba8-\\u0baa\\u0bae-\\u0bb9\\u0bd0\\u0c05-\\u0c0c\\u0c0e-\\u0c10\\u0c12-\\u0c28\\u0c2a-\\u0c39\\u0c3d\\u0c58-\\u0c5a\\u0c60\\u0c61\\u0c80\\u0c85-\\u0c8c\\u0c8e-\\u0c90\\u0c92-\\u0ca8\\u0caa-\\u0cb3\\u0cb5-\\u0cb9\\u0cbd\\u0cde\\u0ce0\\u0ce1\\u0cf1\\u0cf2\\u0d04-\\u0d0c\\u0d0e-\\u0d10\\u0d12-\\u0d3a\\u0d3d\\u0d4e\\u0d54-\\u0d56\\u0d5f-\\u0d61\\u0d7a-\\u0d7f\\u0d85-\\u0d96\\u0d9a-\\u0db1\\u0db3-\\u0dbb\\u0dbd\\u0dc0-\\u0dc6\\u0e01-\\u0e30\\u0e32\\u0e33\\u0e40-\\u0e46\\u0e81\\u0e82\\u0e84\\u0e86-\\u0e8a\\u0e8c-\\u0ea3\\u0ea5\\u0ea7-\\u0eb0\\u0eb2\\u0eb3\\u0ebd\\u0ec0-\\u0ec4\\u0ec6\\u0edc-\\u0edf\\u0f00\\u0f40-\\u0f47\\u0f49-\\u0f6c\\u0f88-\\u0f8c\\u1000-\\u102a\\u103f\\u1050-\\u1055\\u105a-\\u105d\\u1061\\u1065\\u1066\\u106e-\\u1070\\u1075-\\u1081\\u108e\\u10a0-\\u10c5\\u10c7\\u10cd\\u10d0-\\u10fa\\u10fc-\\u1248\\u124a-\\u124d\\u1250-\\u1256\\u1258\\u125a-\\u125d\\u1260-\\u1288\\u128a-\\u128d\\u1290-\\u12b0\\u12b2-\\u12b5\\u12b8-\\u12be\\u12c0\\u12c2-\\u12c5\\u12c8-\\u12d6\\u12d8-\\u1310\\u1312-\\u1315\\u1318-\\u135a\\u1380-\\u138f\\u13a0-\\u13f5\\u13f8-\\u13fd\\u1401-\\u166c\\u166f-\\u167f\\u1681-\\u169a\\u16a0-\\u16ea\\u16ee-\\u16f8\\u1700-\\u170c\\u170e-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176c\\u176e-\\u1770\\u1780-\\u17b3\\u17d7\\u17dc\\u1820-\\u1878\\u1880-\\u18a8\\u18aa\\u18b0-\\u18f5\\u1900-\\u191e\\u1950-\\u196d\\u1970-\\u1974\\u1980-\\u19ab\\u19b0-\\u19c9\\u1a00-\\u1a16\\u1a20-\\u1a54\\u1aa7\\u1b05-\\u1b33\\u1b45-\\u1b4b\\u1b83-\\u1ba0\\u1bae\\u1baf\\u1bba-\\u1be5\\u1c00-\\u1c23\\u1c4d-\\u1c4f\\u1c5a-\\u1c7d\\u1c80-\\u1c88\\u1c90-\\u1cba\\u1cbd-\\u1cbf\\u1ce9-\\u1cec\\u1cee-\\u1cf3\\u1cf5\\u1cf6\\u1cfa\\u1d00-\\u1dbf\\u1e00-\\u1f15\\u1f18-\\u1f1d\\u1f20-\\u1f45\\u1f48-\\u1f4d\\u1f50-\\u1f57\\u1f59\\u1f5b\\u1f5d\\u1f5f-\\u1f7d\\u1f80-\\u1fb4\\u1fb6-\\u1fbc\\u1fbe\\u1fc2-\\u1fc4\\u1fc6-\\u1fcc\\u1fd0-\\u1fd3\\u1fd6-\\u1fdb\\u1fe0-\\u1fec\\u1ff2-\\u1ff4\\u1ff6-\\u1ffc\\u2071\\u207f\\u2090-\\u209c\\u2102\\u2107\\u210a-\\u2113\\u2115\\u2118-\\u211d\\u2124\\u2126\\u2128\\u212a-\\u2139\\u213c-\\u213f\\u2145-\\u2149\\u214e\\u2160-\\u2188\\u2c00-\\u2c2e\\u2c30-\\u2c5e\\u2c60-\\u2ce4\\u2ceb-\\u2cee\\u2cf2\\u2cf3\\u2d00-\\u2d25\\u2d27\\u2d2d\\u2d30-\\u2d67\\u2d6f\\u2d80-\\u2d96\\u2da0-\\u2da6\\u2da8-\\u2dae\\u2db0-\\u2db6\\u2db8-\\u2dbe\\u2dc0-\\u2dc6\\u2dc8-\\u2dce\\u2dd0-\\u2dd6\\u2dd8-\\u2dde\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303c\\u3041-\\u3096\\u309b-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312f\\u3131-\\u318e\\u31a0-\\u31bf\\u31f0-\\u31ff\\u3400-\\u4dbf\\u4e00-\\u9ffc\\ua000-\\ua48c\\ua4d0-\\ua4fd\\ua500-\\ua60c\\ua610-\\ua61f\\ua62a\\ua62b\\ua640-\\ua66e\\ua67f-\\ua69d\\ua6a0-\\ua6ef\\ua717-\\ua71f\\ua722-\\ua788\\ua78b-\\ua7bf\\ua7c2-\\ua7ca\\ua7f5-\\ua801\\ua803-\\ua805\\ua807-\\ua80a\\ua80c-\\ua822\\ua840-\\ua873\\ua882-\\ua8b3\\ua8f2-\\ua8f7\\ua8fb\\ua8fd\\ua8fe\\ua90a-\\ua925\\ua930-\\ua946\\ua960-\\ua97c\\ua984-\\ua9b2\\ua9cf\\ua9e0-\\ua9e4\\ua9e6-\\ua9ef\\ua9fa-\\ua9fe\\uaa00-\\uaa28\\uaa40-\\uaa42\\uaa44-\\uaa4b\\uaa60-\\uaa76\\uaa7a\\uaa7e-\\uaaaf\\uaab1\\uaab5\\uaab6\\uaab9-\\uaabd\\uaac0\\uaac2\\uaadb-\\uaadd\\uaae0-\\uaaea\\uaaf2-\\uaaf4\\uab01-\\uab06\\uab09-\\uab0e\\uab11-\\uab16\\uab20-\\uab26\\uab28-\\uab2e\\uab30-\\uab5a\\uab5c-\\uab69\\uab70-\\uabe2\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\uf900-\\ufa6d\\ufa70-\\ufad9\\ufb00-\\ufb06\\ufb13-\\ufb17\\ufb1d\\ufb1f-\\ufb28\\ufb2a-\\ufb36\\ufb38-\\ufb3c\\ufb3e\\ufb40\\ufb41\\ufb43\\ufb44\\ufb46-\\ufbb1\\ufbd3-\\ufd3d\\ufd50-\\ufd8f\\ufd92-\\ufdc7\\ufdf0-\\ufdfb\\ufe70-\\ufe74\\ufe76-\\ufefc\\uff21-\\uff3a\\uff41-\\uff5a\\uff66-\\uffbe\\uffc2-\\uffc7\\uffca-\\uffcf\\uffd2-\\uffd7\\uffda-\\uffdc";\n var nonASCIIidentifierChars = "\\u200c\\u200d\\xb7\\u0300-\\u036f\\u0387\\u0483-\\u0487\\u0591-\\u05bd\\u05bf\\u05c1\\u05c2\\u05c4\\u05c5\\u05c7\\u0610-\\u061a\\u064b-\\u0669\\u0670\\u06d6-\\u06dc\\u06df-\\u06e4\\u06e7\\u06e8\\u06ea-\\u06ed\\u06f0-\\u06f9\\u0711\\u0730-\\u074a\\u07a6-\\u07b0\\u07c0-\\u07c9\\u07eb-\\u07f3\\u07fd\\u0816-\\u0819\\u081b-\\u0823\\u0825-\\u0827\\u0829-\\u082d\\u0859-\\u085b\\u08d3-\\u08e1\\u08e3-\\u0903\\u093a-\\u093c\\u093e-\\u094f\\u0951-\\u0957\\u0962\\u0963\\u0966-\\u096f\\u0981-\\u0983\\u09bc\\u09be-\\u09c4\\u09c7\\u09c8\\u09cb-\\u09cd\\u09d7\\u09e2\\u09e3\\u09e6-\\u09ef\\u09fe\\u0a01-\\u0a03\\u0a3c\\u0a3e-\\u0a42\\u0a47\\u0a48\\u0a4b-\\u0a4d\\u0a51\\u0a66-\\u0a71\\u0a75\\u0a81-\\u0a83\\u0abc\\u0abe-\\u0ac5\\u0ac7-\\u0ac9\\u0acb-\\u0acd\\u0ae2\\u0ae3\\u0ae6-\\u0aef\\u0afa-\\u0aff\\u0b01-\\u0b03\\u0b3c\\u0b3e-\\u0b44\\u0b47\\u0b48\\u0b4b-\\u0b4d\\u0b55-\\u0b57\\u0b62\\u0b63\\u0b66-\\u0b6f\\u0b82\\u0bbe-\\u0bc2\\u0bc6-\\u0bc8\\u0bca-\\u0bcd\\u0bd7\\u0be6-\\u0bef\\u0c00-\\u0c04\\u0c3e-\\u0c44\\u0c46-\\u0c48\\u0c4a-\\u0c4d\\u0c55\\u0c56\\u0c62\\u0c63\\u0c66-\\u0c6f\\u0c81-\\u0c83\\u0cbc\\u0cbe-\\u0cc4\\u0cc6-\\u0cc8\\u0cca-\\u0ccd\\u0cd5\\u0cd6\\u0ce2\\u0ce3\\u0ce6-\\u0cef\\u0d00-\\u0d03\\u0d3b\\u0d3c\\u0d3e-\\u0d44\\u0d46-\\u0d48\\u0d4a-\\u0d4d\\u0d57\\u0d62\\u0d63\\u0d66-\\u0d6f\\u0d81-\\u0d83\\u0dca\\u0dcf-\\u0dd4\\u0dd6\\u0dd8-\\u0ddf\\u0de6-\\u0def\\u0df2\\u0df3\\u0e31\\u0e34-\\u0e3a\\u0e47-\\u0e4e\\u0e50-\\u0e59\\u0eb1\\u0eb4-\\u0ebc\\u0ec8-\\u0ecd\\u0ed0-\\u0ed9\\u0f18\\u0f19\\u0f20-\\u0f29\\u0f35\\u0f37\\u0f39\\u0f3e\\u0f3f\\u0f71-\\u0f84\\u0f86\\u0f87\\u0f8d-\\u0f97\\u0f99-\\u0fbc\\u0fc6\\u102b-\\u103e\\u1040-\\u1049\\u1056-\\u1059\\u105e-\\u1060\\u1062-\\u1064\\u1067-\\u106d\\u1071-\\u1074\\u1082-\\u108d\\u108f-\\u109d\\u135d-\\u135f\\u1369-\\u1371\\u1712-\\u1714\\u1732-\\u1734\\u1752\\u1753\\u1772\\u1773\\u17b4-\\u17d3\\u17dd\\u17e0-\\u17e9\\u180b-\\u180d\\u1810-\\u1819\\u18a9\\u1920-\\u192b\\u1930-\\u193b\\u1946-\\u194f\\u19d0-\\u19da\\u1a17-\\u1a1b\\u1a55-\\u1a5e\\u1a60-\\u1a7c\\u1a7f-\\u1a89\\u1a90-\\u1a99\\u1ab0-\\u1abd\\u1abf\\u1ac0\\u1b00-\\u1b04\\u1b34-\\u1b44\\u1b50-\\u1b59\\u1b6b-\\u1b73\\u1b80-\\u1b82\\u1ba1-\\u1bad\\u1bb0-\\u1bb9\\u1be6-\\u1bf3\\u1c24-\\u1c37\\u1c40-\\u1c49\\u1c50-\\u1c59\\u1cd0-\\u1cd2\\u1cd4-\\u1ce8\\u1ced\\u1cf4\\u1cf7-\\u1cf9\\u1dc0-\\u1df9\\u1dfb-\\u1dff\\u203f\\u2040\\u2054\\u20d0-\\u20dc\\u20e1\\u20e5-\\u20f0\\u2cef-\\u2cf1\\u2d7f\\u2de0-\\u2dff\\u302a-\\u302f\\u3099\\u309a\\ua620-\\ua629\\ua66f\\ua674-\\ua67d\\ua69e\\ua69f\\ua6f0\\ua6f1\\ua802\\ua806\\ua80b\\ua823-\\ua827\\ua82c\\ua880\\ua881\\ua8b4-\\ua8c5\\ua8d0-\\ua8d9\\ua8e0-\\ua8f1\\ua8ff-\\ua909\\ua926-\\ua92d\\ua947-\\ua953\\ua980-\\ua983\\ua9b3-\\ua9c0\\ua9d0-\\ua9d9\\ua9e5\\ua9f0-\\ua9f9\\uaa29-\\uaa36\\uaa43\\uaa4c\\uaa4d\\uaa50-\\uaa59\\uaa7b-\\uaa7d\\uaab0\\uaab2-\\uaab4\\uaab7\\uaab8\\uaabe\\uaabf\\uaac1\\uaaeb-\\uaaef\\uaaf5\\uaaf6\\uabe3-\\uabea\\uabec\\uabed\\uabf0-\\uabf9\\ufb1e\\ufe00-\\ufe0f\\ufe20-\\ufe2f\\ufe33\\ufe34\\ufe4d-\\ufe4f\\uff10-\\uff19\\uff3f";\n\n var nonASCIIidentifierStart = new RegExp("[" + nonASCIIidentifierStartChars + "]");\n var nonASCIIidentifier = new RegExp("[" + nonASCIIidentifierStartChars + nonASCIIidentifierChars + "]");\n\n nonASCIIidentifierStartChars = nonASCIIidentifierChars = null;\n\n // These are a run-length and offset encoded representation of the\n // >0xffff code points that are a valid part of identifiers. The\n // offset starts at 0x10000\x2C and each pair of numbers represents an\n // offset to the next range\x2C and then a size of the range. They were\n // generated by bin/generate-identifier-regex.js\n\n // eslint-disable-next-line comma-spacing\n var astralIdentifierStartCodes = [0\x2C11\x2C2\x2C25\x2C2\x2C18\x2C2\x2C1\x2C2\x2C14\x2C3\x2C13\x2C35\x2C122\x2C70\x2C52\x2C268\x2C28\x2C4\x2C48\x2C48\x2C31\x2C14\x2C29\x2C6\x2C37\x2C11\x2C29\x2C3\x2C35\x2C5\x2C7\x2C2\x2C4\x2C43\x2C157\x2C19\x2C35\x2C5\x2C35\x2C5\x2C39\x2C9\x2C51\x2C157\x2C310\x2C10\x2C21\x2C11\x2C7\x2C153\x2C5\x2C3\x2C0\x2C2\x2C43\x2C2\x2C1\x2C4\x2C0\x2C3\x2C22\x2C11\x2C22\x2C10\x2C30\x2C66\x2C18\x2C2\x2C1\x2C11\x2C21\x2C11\x2C25\x2C71\x2C55\x2C7\x2C1\x2C65\x2C0\x2C16\x2C3\x2C2\x2C2\x2C2\x2C28\x2C43\x2C28\x2C4\x2C28\x2C36\x2C7\x2C2\x2C27\x2C28\x2C53\x2C11\x2C21\x2C11\x2C18\x2C14\x2C17\x2C111\x2C72\x2C56\x2C50\x2C14\x2C50\x2C14\x2C35\x2C349\x2C41\x2C7\x2C1\x2C79\x2C28\x2C11\x2C0\x2C9\x2C21\x2C107\x2C20\x2C28\x2C22\x2C13\x2C52\x2C76\x2C44\x2C33\x2C24\x2C27\x2C35\x2C30\x2C0\x2C3\x2C0\x2C9\x2C34\x2C4\x2C0\x2C13\x2C47\x2C15\x2C3\x2C22\x2C0\x2C2\x2C0\x2C36\x2C17\x2C2\x2C24\x2C85\x2C6\x2C2\x2C0\x2C2\x2C3\x2C2\x2C14\x2C2\x2C9\x2C8\x2C46\x2C39\x2C7\x2C3\x2C1\x2C3\x2C21\x2C2\x2C6\x2C2\x2C1\x2C2\x2C4\x2C4\x2C0\x2C19\x2C0\x2C13\x2C4\x2C159\x2C52\x2C19\x2C3\x2C21\x2C2\x2C31\x2C47\x2C21\x2C1\x2C2\x2C0\x2C185\x2C46\x2C42\x2C3\x2C37\x2C47\x2C21\x2C0\x2C60\x2C42\x2C14\x2C0\x2C72\x2C26\x2C230\x2C43\x2C117\x2C63\x2C32\x2C7\x2C3\x2C0\x2C3\x2C7\x2C2\x2C1\x2C2\x2C23\x2C16\x2C0\x2C2\x2C0\x2C95\x2C7\x2C3\x2C38\x2C17\x2C0\x2C2\x2C0\x2C29\x2C0\x2C11\x2C39\x2C8\x2C0\x2C22\x2C0\x2C12\x2C45\x2C20\x2C0\x2C35\x2C56\x2C264\x2C8\x2C2\x2C36\x2C18\x2C0\x2C50\x2C29\x2C113\x2C6\x2C2\x2C1\x2C2\x2C37\x2C22\x2C0\x2C26\x2C5\x2C2\x2C1\x2C2\x2C31\x2C15\x2C0\x2C328\x2C18\x2C190\x2C0\x2C80\x2C921\x2C103\x2C110\x2C18\x2C195\x2C2749\x2C1070\x2C4050\x2C582\x2C8634\x2C568\x2C8\x2C30\x2C114\x2C29\x2C19\x2C47\x2C17\x2C3\x2C32\x2C20\x2C6\x2C18\x2C689\x2C63\x2C129\x2C74\x2C6\x2C0\x2C67\x2C12\x2C65\x2C1\x2C2\x2C0\x2C29\x2C6135\x2C9\x2C1237\x2C43\x2C8\x2C8952\x2C286\x2C50\x2C2\x2C18\x2C3\x2C9\x2C395\x2C2309\x2C106\x2C6\x2C12\x2C4\x2C8\x2C8\x2C9\x2C5991\x2C84\x2C2\x2C70\x2C2\x2C1\x2C3\x2C0\x2C3\x2C1\x2C3\x2C3\x2C2\x2C11\x2C2\x2C0\x2C2\x2C6\x2C2\x2C64\x2C2\x2C3\x2C3\x2C7\x2C2\x2C6\x2C2\x2C27\x2C2\x2C3\x2C2\x2C4\x2C2\x2C0\x2C4\x2C6\x2C2\x2C339\x2C3\x2C24\x2C2\x2C24\x2C2\x2C30\x2C2\x2C24\x2C2\x2C30\x2C2\x2C24\x2C2\x2C30\x2C2\x2C24\x2C2\x2C30\x2C2\x2C24\x2C2\x2C7\x2C2357\x2C44\x2C11\x2C6\x2C17\x2C0\x2C370\x2C43\x2C1301\x2C196\x2C60\x2C67\x2C8\x2C0\x2C1205\x2C3\x2C2\x2C26\x2C2\x2C1\x2C2\x2C0\x2C3\x2C0\x2C2\x2C9\x2C2\x2C3\x2C2\x2C0\x2C2\x2C0\x2C7\x2C0\x2C5\x2C0\x2C2\x2C0\x2C2\x2C0\x2C2\x2C2\x2C2\x2C1\x2C2\x2C0\x2C3\x2C0\x2C2\x2C0\x2C2\x2C0\x2C2\x2C0\x2C2\x2C0\x2C2\x2C1\x2C2\x2C0\x2C3\x2C3\x2C2\x2C6\x2C2\x2C3\x2C2\x2C3\x2C2\x2C0\x2C2\x2C9\x2C2\x2C16\x2C6\x2C2\x2C2\x2C4\x2C2\x2C16\x2C4421\x2C42717\x2C35\x2C4148\x2C12\x2C221\x2C3\x2C5761\x2C15\x2C7472\x2C3104\x2C541\x2C1507\x2C4938];\n\n // eslint-disable-next-line comma-spacing\n var astralIdentifierCodes = [509\x2C0\x2C227\x2C0\x2C150\x2C4\x2C294\x2C9\x2C1368\x2C2\x2C2\x2C1\x2C6\x2C3\x2C41\x2C2\x2C5\x2C0\x2C166\x2C1\x2C574\x2C3\x2C9\x2C9\x2C370\x2C1\x2C154\x2C10\x2C176\x2C2\x2C54\x2C14\x2C32\x2C9\x2C16\x2C3\x2C46\x2C10\x2C54\x2C9\x2C7\x2C2\x2C37\x2C13\x2C2\x2C9\x2C6\x2C1\x2C45\x2C0\x2C13\x2C2\x2C49\x2C13\x2C9\x2C3\x2C2\x2C11\x2C83\x2C11\x2C7\x2C0\x2C161\x2C11\x2C6\x2C9\x2C7\x2C3\x2C56\x2C1\x2C2\x2C6\x2C3\x2C1\x2C3\x2C2\x2C10\x2C0\x2C11\x2C1\x2C3\x2C6\x2C4\x2C4\x2C193\x2C17\x2C10\x2C9\x2C5\x2C0\x2C82\x2C19\x2C13\x2C9\x2C214\x2C6\x2C3\x2C8\x2C28\x2C1\x2C83\x2C16\x2C16\x2C9\x2C82\x2C12\x2C9\x2C9\x2C84\x2C14\x2C5\x2C9\x2C243\x2C14\x2C166\x2C9\x2C71\x2C5\x2C2\x2C1\x2C3\x2C3\x2C2\x2C0\x2C2\x2C1\x2C13\x2C9\x2C120\x2C6\x2C3\x2C6\x2C4\x2C0\x2C29\x2C9\x2C41\x2C6\x2C2\x2C3\x2C9\x2C0\x2C10\x2C10\x2C47\x2C15\x2C406\x2C7\x2C2\x2C7\x2C17\x2C9\x2C57\x2C21\x2C2\x2C13\x2C123\x2C5\x2C4\x2C0\x2C2\x2C1\x2C2\x2C6\x2C2\x2C0\x2C9\x2C9\x2C49\x2C4\x2C2\x2C1\x2C2\x2C4\x2C9\x2C9\x2C330\x2C3\x2C19306\x2C9\x2C135\x2C4\x2C60\x2C6\x2C26\x2C9\x2C1014\x2C0\x2C2\x2C54\x2C8\x2C3\x2C82\x2C0\x2C12\x2C1\x2C19628\x2C1\x2C5319\x2C4\x2C4\x2C5\x2C9\x2C7\x2C3\x2C6\x2C31\x2C3\x2C149\x2C2\x2C1418\x2C49\x2C513\x2C54\x2C5\x2C49\x2C9\x2C0\x2C15\x2C0\x2C23\x2C4\x2C2\x2C14\x2C1361\x2C6\x2C2\x2C16\x2C3\x2C6\x2C2\x2C1\x2C2\x2C4\x2C262\x2C6\x2C10\x2C9\x2C419\x2C13\x2C1495\x2C6\x2C110\x2C6\x2C6\x2C9\x2C4759\x2C9\x2C787719\x2C239];\n\n // This has a complexity linear to the value of the code. The\n // assumption is that looking up astral identifier characters is\n // rare.\n function isInAstralSet(code\x2C set) {\n var pos = 0x10000;\n for (var i = 0; i < set.length; i += 2) {\n pos += set[i];\n if (pos > code) { return false }\n pos += set[i + 1];\n if (pos >= code) { return true }\n }\n }\n\n // Test whether a given character code starts an identifier.\n\n function isIdentifierStart(code\x2C astral) {\n if (code < 65) { return code === 36 }\n if (code < 91) { return true }\n if (code < 97) { return code === 95 }\n if (code < 123) { return true }\n if (code <= 0xffff) { return code >= 0xaa && nonASCIIidentifierStart.test(String.fromCharCode(code)) }\n if (astral === false) { return false }\n return isInAstralSet(code\x2C astralIdentifierStartCodes)\n }\n\n // Test whether a given character is part of an identifier.\n\n function isIdentifierChar(code\x2C astral) {\n if (code < 48) { return code === 36 }\n if (code < 58) { return true }\n if (code < 65) { return false }\n if (code < 91) { return true }\n if (code < 97) { return code === 95 }\n if (code < 123) { return true }\n if (code <= 0xffff) { return code >= 0xaa && nonASCIIidentifier.test(String.fromCharCode(code)) }\n if (astral === false) { return false }\n return isInAstralSet(code\x2C astralIdentifierStartCodes) || isInAstralSet(code\x2C astralIdentifierCodes)\n }\n\n // ## Token types\n\n // The assignment of fine-grained\x2C information-carrying type objects\n // allows the tokenizer to store the information it has about a\n // token in a way that is very cheap for the parser to look up.\n\n // All token type variables start with an underscore\x2C to make them\n // easy to recognize.\n\n // The `beforeExpr` property is used to disambiguate between regular\n // expressions and divisions. It is set on all token types that can\n // be followed by an expression (thus\x2C a slash after them would be a\n // regular expression).\n //\n // The `startsExpr` property is used to check if the token ends a\n // `yield` expression. It is set on all token types that either can\n // directly start an expression (like a quotation mark) or can\n // continue an expression (like the body of a string).\n //\n // `isLoop` marks a keyword as starting a loop\x2C which is important\n // to know when parsing a label\x2C in order to allow or disallow\n // continue jumps to that label.\n\n var TokenType = function TokenType(label\x2C conf) {\n if ( conf === void 0 ) conf = {};\n\n this.label = label;\n this.keyword = conf.keyword;\n this.beforeExpr = !!conf.beforeExpr;\n this.startsExpr = !!conf.startsExpr;\n this.isLoop = !!conf.isLoop;\n this.isAssign = !!conf.isAssign;\n this.prefix = !!conf.prefix;\n this.postfix = !!conf.postfix;\n this.binop = conf.binop || null;\n this.updateContext = null;\n };\n\n function binop(name\x2C prec) {\n return new TokenType(name\x2C {beforeExpr: true\x2C binop: prec})\n }\n var beforeExpr = {beforeExpr: true}\x2C startsExpr = {startsExpr: true};\n\n // Map keyword names to token types.\n\n var keywords$1 = {};\n\n // Succinct definitions of keyword token types\n function kw(name\x2C options) {\n if ( options === void 0 ) options = {};\n\n options.keyword = name;\n return keywords$1[name] = new TokenType(name\x2C options)\n }\n\n var types = {\n num: new TokenType("num"\x2C startsExpr)\x2C\n regexp: new TokenType("regexp"\x2C startsExpr)\x2C\n string: new TokenType("string"\x2C startsExpr)\x2C\n name: new TokenType("name"\x2C startsExpr)\x2C\n privateId: new TokenType("privateId"\x2C startsExpr)\x2C\n eof: new TokenType("eof")\x2C\n\n // Punctuation token types.\n bracketL: new TokenType("["\x2C {beforeExpr: true\x2C startsExpr: true})\x2C\n bracketR: new TokenType("]")\x2C\n braceL: new TokenType("{"\x2C {beforeExpr: true\x2C startsExpr: true})\x2C\n braceR: new TokenType("}")\x2C\n parenL: new TokenType("("\x2C {beforeExpr: true\x2C startsExpr: true})\x2C\n parenR: new TokenType(")")\x2C\n comma: new TokenType("\x2C"\x2C beforeExpr)\x2C\n semi: new TokenType(";"\x2C beforeExpr)\x2C\n colon: new TokenType(":"\x2C beforeExpr)\x2C\n dot: new TokenType(".")\x2C\n question: new TokenType("?"\x2C beforeExpr)\x2C\n questionDot: new TokenType("?.")\x2C\n arrow: new TokenType("=>"\x2C beforeExpr)\x2C\n template: new TokenType("template")\x2C\n invalidTemplate: new TokenType("invalidTemplate")\x2C\n ellipsis: new TokenType("..."\x2C beforeExpr)\x2C\n backQuote: new TokenType("`"\x2C startsExpr)\x2C\n dollarBraceL: new TokenType("${"\x2C {beforeExpr: true\x2C startsExpr: true})\x2C\n\n // Operators. These carry several kinds of properties to help the\n // parser use them properly (the presence of these properties is\n // what categorizes them as operators).\n //\n // `binop`\x2C when present\x2C specifies that this operator is a binary\n // operator\x2C and will refer to its precedence.\n //\n // `prefix` and `postfix` mark the operator as a prefix or postfix\n // unary operator.\n //\n // `isAssign` marks all of `=`\x2C `+=`\x2C `-=` etcetera\x2C which act as\n // binary operators with a very low precedence\x2C that should result\n // in AssignmentExpression nodes.\n\n eq: new TokenType("="\x2C {beforeExpr: true\x2C isAssign: true})\x2C\n assign: new TokenType("_="\x2C {beforeExpr: true\x2C isAssign: true})\x2C\n incDec: new TokenType("++/--"\x2C {prefix: true\x2C postfix: true\x2C startsExpr: true})\x2C\n prefix: new TokenType("!/~"\x2C {beforeExpr: true\x2C prefix: true\x2C startsExpr: true})\x2C\n logicalOR: binop("||"\x2C 1)\x2C\n logicalAND: binop("&&"\x2C 2)\x2C\n bitwiseOR: binop("|"\x2C 3)\x2C\n bitwiseXOR: binop("^"\x2C 4)\x2C\n bitwiseAND: binop("&"\x2C 5)\x2C\n equality: binop("==/!=/===/!=="\x2C 6)\x2C\n relational: binop("</>/<=/>="\x2C 7)\x2C\n bitShift: binop("<</>>/>>>"\x2C 8)\x2C\n plusMin: new TokenType("+/-"\x2C {beforeExpr: true\x2C binop: 9\x2C prefix: true\x2C startsExpr: true})\x2C\n modulo: binop("%"\x2C 10)\x2C\n star: binop("*"\x2C 10)\x2C\n slash: binop("/"\x2C 10)\x2C\n starstar: new TokenType("**"\x2C {beforeExpr: true})\x2C\n coalesce: binop("??"\x2C 1)\x2C\n\n // Keyword token types.\n _break: kw("break")\x2C\n _case: kw("case"\x2C beforeExpr)\x2C\n _catch: kw("catch")\x2C\n _continue: kw("continue")\x2C\n _debugger: kw("debugger")\x2C\n _default: kw("default"\x2C beforeExpr)\x2C\n _do: kw("do"\x2C {isLoop: true\x2C beforeExpr: true})\x2C\n _else: kw("else"\x2C beforeExpr)\x2C\n _finally: kw("finally")\x2C\n _for: kw("for"\x2C {isLoop: true})\x2C\n _function: kw("function"\x2C startsExpr)\x2C\n _if: kw("if")\x2C\n _return: kw("return"\x2C beforeExpr)\x2C\n _switch: kw("switch")\x2C\n _throw: kw("throw"\x2C beforeExpr)\x2C\n _try: kw("try")\x2C\n _var: kw("var")\x2C\n _const: kw("const")\x2C\n _while: kw("while"\x2C {isLoop: true})\x2C\n _with: kw("with")\x2C\n _new: kw("new"\x2C {beforeExpr: true\x2C startsExpr: true})\x2C\n _this: kw("this"\x2C startsExpr)\x2C\n _super: kw("super"\x2C startsExpr)\x2C\n _class: kw("class"\x2C startsExpr)\x2C\n _extends: kw("extends"\x2C beforeExpr)\x2C\n _export: kw("export")\x2C\n _import: kw("import"\x2C startsExpr)\x2C\n _null: kw("null"\x2C startsExpr)\x2C\n _true: kw("true"\x2C startsExpr)\x2C\n _false: kw("false"\x2C startsExpr)\x2C\n _in: kw("in"\x2C {beforeExpr: true\x2C binop: 7})\x2C\n _instanceof: kw("instanceof"\x2C {beforeExpr: true\x2C binop: 7})\x2C\n _typeof: kw("typeof"\x2C {beforeExpr: true\x2C prefix: true\x2C startsExpr: true})\x2C\n _void: kw("void"\x2C {beforeExpr: true\x2C prefix: true\x2C startsExpr: true})\x2C\n _delete: kw("delete"\x2C {beforeExpr: true\x2C prefix: true\x2C startsExpr: true})\n };\n\n // Matches a whole line break (where CRLF is considered a single\n // line break). Used to count lines.\n\n var lineBreak = /\\r\\n?|\\n|\\u2028|\\u2029/;\n var lineBreakG = new RegExp(lineBreak.source\x2C "g");\n\n function isNewLine(code\x2C ecma2019String) {\n return code === 10 || code === 13 || (!ecma2019String && (code === 0x2028 || code === 0x2029))\n }\n\n var nonASCIIwhitespace = /[\\u1680\\u2000-\\u200a\\u202f\\u205f\\u3000\\ufeff]/;\n\n var skipWhiteSpace = /(?:\\s|\\/\\/.*|\\/\\*[^]*?\\*\\/)*/g;\n\n var ref = Object.prototype;\n var hasOwnProperty = ref.hasOwnProperty;\n var toString = ref.toString;\n\n // Checks if an object has a property.\n\n function has(obj\x2C propName) {\n return hasOwnProperty.call(obj\x2C propName)\n }\n\n var isArray = Array.isArray || (function (obj) { return (\n toString.call(obj) === "[object Array]"\n ); });\n\n function wordsRegexp(words) {\n return new RegExp("^(?:" + words.replace(/ /g\x2C "|") + ")$")\n }\n\n // These are used when `options.locations` is on\x2C for the\n // `startLoc` and `endLoc` properties.\n\n var Position = function Position(line\x2C col) {\n this.line = line;\n this.column = col;\n };\n\n Position.prototype.offset = function offset (n) {\n return new Position(this.line\x2C this.column + n)\n };\n\n var SourceLocation = function SourceLocation(p\x2C start\x2C end) {\n this.start = start;\n this.end = end;\n if (p.sourceFile !== null) { this.source = p.sourceFile; }\n };\n\n // The `getLineInfo` function is mostly useful when the\n // `locations` option is off (for performance reasons) and you\n // want to find the line/column position for a given character\n // offset. `input` should be the code string that the offset refers\n // into.\n\n function getLineInfo(input\x2C offset) {\n for (var line = 1\x2C cur = 0;;) {\n lineBreakG.lastIndex = cur;\n var match = lineBreakG.exec(input);\n if (match && match.index < offset) {\n ++line;\n cur = match.index + match[0].length;\n } else {\n return new Position(line\x2C offset - cur)\n }\n }\n }\n\n // A second argument must be given to configure the parser process.\n // These options are recognized (only `ecmaVersion` is required):\n\n var defaultOptions = {\n // `ecmaVersion` indicates the ECMAScript version to parse. Must be\n // either 3\x2C 5\x2C 6 (or 2015)\x2C 7 (2016)\x2C 8 (2017)\x2C 9 (2018)\x2C 10\n // (2019)\x2C 11 (2020)\x2C 12 (2021)\x2C 13 (2022)\x2C or `"latest"` (the\n // latest version the library supports). This influences support\n // for strict mode\x2C the set of reserved words\x2C and support for\n // new syntax features.\n ecmaVersion: null\x2C\n // `sourceType` indicates the mode the code should be parsed in.\n // Can be either `"script"` or `"module"`. This influences global\n // strict mode and parsing of `import` and `export` declarations.\n sourceType: "script"\x2C\n // `onInsertedSemicolon` can be a callback that will be called\n // when a semicolon is automatically inserted. It will be passed\n // the position of the comma as an offset\x2C and if `locations` is\n // enabled\x2C it is given the location as a `{line\x2C column}` object\n // as second argument.\n onInsertedSemicolon: null\x2C\n // `onTrailingComma` is similar to `onInsertedSemicolon`\x2C but for\n // trailing commas.\n onTrailingComma: null\x2C\n // By default\x2C reserved words are only enforced if ecmaVersion >= 5.\n // Set `allowReserved` to a boolean value to explicitly turn this on\n // an off. When this option has the value "never"\x2C reserved words\n // and keywords can also not be used as property names.\n allowReserved: null\x2C\n // When enabled\x2C a return at the top level is not considered an\n // error.\n allowReturnOutsideFunction: false\x2C\n // When enabled\x2C import/export statements are not constrained to\n // appearing at the top of the program\x2C and an import.meta expression\n // in a script isn't considered an error.\n allowImportExportEverywhere: false\x2C\n // By default\x2C await identifiers are allowed to appear at the top-level scope only if ecmaVersion >= 2022.\n // When enabled\x2C await identifiers are allowed to appear at the top-level scope\x2C\n // but they are still not allowed in non-async functions.\n allowAwaitOutsideFunction: null\x2C\n // When enabled\x2C super identifiers are not constrained to\n // appearing in methods and do not raise an error when they appear elsewhere.\n allowSuperOutsideMethod: null\x2C\n // When enabled\x2C hashbang directive in the beginning of file\n // is allowed and treated as a line comment.\n allowHashBang: false\x2C\n // When `locations` is on\x2C `loc` properties holding objects with\n // `start` and `end` properties in `{line\x2C column}` form (with\n // line being 1-based and column 0-based) will be attached to the\n // nodes.\n locations: false\x2C\n // A function can be passed as `onToken` option\x2C which will\n // cause Acorn to call that function with object in the same\n // format as tokens returned from `tokenizer().getToken()`. Note\n // that you are not allowed to call the parser from the\n // callback\u2014that will corrupt its internal state.\n onToken: null\x2C\n // A function can be passed as `onComment` option\x2C which will\n // cause Acorn to call that function with `(block\x2C text\x2C start\x2C\n // end)` parameters whenever a comment is skipped. `block` is a\n // boolean indicating whether this is a block (`/* */`) comment\x2C\n // `text` is the content of the comment\x2C and `start` and `end` are\n // character offsets that denote the start and end of the comment.\n // When the `locations` option is on\x2C two more parameters are\n // passed\x2C the full `{line\x2C column}` locations of the start and\n // end of the comments. Note that you are not allowed to call the\n // parser from the callback\u2014that will corrupt its internal state.\n onComment: null\x2C\n // Nodes have their start and end characters offsets recorded in\n // `start` and `end` properties (directly on the node\x2C rather than\n // the `loc` object\x2C which holds line/column data. To also add a\n // [semi-standardized][range] `range` property holding a `[start\x2C\n // end]` array with the same numbers\x2C set the `ranges` option to\n // `true`.\n //\n // [range]: https://bugzilla.mozilla.org/show_bug.cgi?id=745678\n ranges: false\x2C\n // It is possible to parse multiple files into a single AST by\n // passing the tree produced by parsing the first file as\n // `program` option in subsequent parses. This will add the\n // toplevel forms of the parsed file to the `Program` (top) node\n // of an existing parse tree.\n program: null\x2C\n // When `locations` is on\x2C you can pass this to record the source\n // file in every node's `loc` object.\n sourceFile: null\x2C\n // This value\x2C if given\x2C is stored in every node\x2C whether\n // `locations` is on or off.\n directSourceFile: null\x2C\n // When enabled\x2C parenthesized expressions are represented by\n // (non-standard) ParenthesizedExpression nodes\n preserveParens: false\n };\n\n // Interpret and default an options object\n\n var warnedAboutEcmaVersion = false;\n\n function getOptions(opts) {\n var options = {};\n\n for (var opt in defaultOptions)\n { options[opt] = opts && has(opts\x2C opt) ? opts[opt] : defaultOptions[opt]; }\n\n if (options.ecmaVersion === "latest") {\n options.ecmaVersion = 1e8;\n } else if (options.ecmaVersion == null) {\n if (!warnedAboutEcmaVersion && typeof console === "object" && console.warn) {\n warnedAboutEcmaVersion = true;\n console.warn("Since Acorn 8.0.0\x2C options.ecmaVersion is required.\\nDefaulting to 2020\x2C but this will stop working in the future.");\n }\n options.ecmaVersion = 11;\n } else if (options.ecmaVersion >= 2015) {\n options.ecmaVersion -= 2009;\n }\n\n if (options.allowReserved == null)\n { options.allowReserved = options.ecmaVersion < 5; }\n\n if (isArray(options.onToken)) {\n var tokens = options.onToken;\n options.onToken = function (token) { return tokens.push(token); };\n }\n if (isArray(options.onComment))\n { options.onComment = pushComment(options\x2C options.onComment); }\n\n return options\n }\n\n function pushComment(options\x2C array) {\n return function(block\x2C text\x2C start\x2C end\x2C startLoc\x2C endLoc) {\n var comment = {\n type: block ? "Block" : "Line"\x2C\n value: text\x2C\n start: start\x2C\n end: end\n };\n if (options.locations)\n { comment.loc = new SourceLocation(this\x2C startLoc\x2C endLoc); }\n if (options.ranges)\n { comment.range = [start\x2C end]; }\n array.push(comment);\n }\n }\n\n // Each scope gets a bitset that may contain these flags\n var\n SCOPE_TOP = 1\x2C\n SCOPE_FUNCTION = 2\x2C\n SCOPE_VAR = SCOPE_TOP | SCOPE_FUNCTION\x2C\n SCOPE_ASYNC = 4\x2C\n SCOPE_GENERATOR = 8\x2C\n SCOPE_ARROW = 16\x2C\n SCOPE_SIMPLE_CATCH = 32\x2C\n SCOPE_SUPER = 64\x2C\n SCOPE_DIRECT_SUPER = 128;\n\n function functionFlags(async\x2C generator) {\n return SCOPE_FUNCTION | (async ? SCOPE_ASYNC : 0) | (generator ? SCOPE_GENERATOR : 0)\n }\n\n // Used in checkLVal* and declareName to determine the type of a binding\n var\n BIND_NONE = 0\x2C // Not a binding\n BIND_VAR = 1\x2C // Var-style binding\n BIND_LEXICAL = 2\x2C // Let- or const-style binding\n BIND_FUNCTION = 3\x2C // Function declaration\n BIND_SIMPLE_CATCH = 4\x2C // Simple (identifier pattern) catch binding\n BIND_OUTSIDE = 5; // Special case for function names as bound inside the function\n\n var Parser = function Parser(options\x2C input\x2C startPos) {\n this.options = options = getOptions(options);\n this.sourceFile = options.sourceFile;\n this.keywords = wordsRegexp(keywords[options.ecmaVersion >= 6 ? 6 : options.sourceType === "module" ? "5module" : 5]);\n var reserved = "";\n if (options.allowReserved !== true) {\n reserved = reservedWords[options.ecmaVersion >= 6 ? 6 : options.ecmaVersion === 5 ? 5 : 3];\n if (options.sourceType === "module") { reserved += " await"; }\n }\n this.reservedWords = wordsRegexp(reserved);\n var reservedStrict = (reserved ? reserved + " " : "") + reservedWords.strict;\n this.reservedWordsStrict = wordsRegexp(reservedStrict);\n this.reservedWordsStrictBind = wordsRegexp(reservedStrict + " " + reservedWords.strictBind);\n this.input = String(input);\n\n // Used to signal to callers of `readWord1` whether the word\n // contained any escape sequences. This is needed because words with\n // escape sequences must not be interpreted as keywords.\n this.containsEsc = false;\n\n // Set up token state\n\n // The current position of the tokenizer in the input.\n if (startPos) {\n this.pos = startPos;\n this.lineStart = this.input.lastIndexOf("\\n"\x2C startPos - 1) + 1;\n this.curLine = this.input.slice(0\x2C this.lineStart).split(lineBreak).length;\n } else {\n this.pos = this.lineStart = 0;\n this.curLine = 1;\n }\n\n // Properties of the current token:\n // Its type\n this.type = types.eof;\n // For tokens that include more information than their type\x2C the value\n this.value = null;\n // Its start and end offset\n this.start = this.end = this.pos;\n // And\x2C if locations are used\x2C the {line\x2C column} object\n // corresponding to those offsets\n this.startLoc = this.endLoc = this.curPosition();\n\n // Position information for the previous token\n this.lastTokEndLoc = this.lastTokStartLoc = null;\n this.lastTokStart = this.lastTokEnd = this.pos;\n\n // The context stack is used to superficially track syntactic\n // context to predict whether a regular expression is allowed in a\n // given position.\n this.context = this.initialContext();\n this.exprAllowed = true;\n\n // Figure out if it's a module code.\n this.inModule = options.sourceType === "module";\n this.strict = this.inModule || this.strictDirective(this.pos);\n\n // Used to signify the start of a potential arrow function\n this.potentialArrowAt = -1;\n this.potentialArrowInForAwait = false;\n\n // Positions to delayed-check that yield/await does not exist in default parameters.\n this.yieldPos = this.awaitPos = this.awaitIdentPos = 0;\n // Labels in scope.\n this.labels = [];\n // Thus-far undefined exports.\n this.undefinedExports = Object.create(null);\n\n // If enabled\x2C skip leading hashbang line.\n if (this.pos === 0 && options.allowHashBang && this.input.slice(0\x2C 2) === "#!")\n { this.skipLineComment(2); }\n\n // Scope tracking for duplicate variable names (see scope.js)\n this.scopeStack = [];\n this.enterScope(SCOPE_TOP);\n\n // For RegExp validation\n this.regexpState = null;\n\n // The stack of private names.\n // Each element has two properties: 'declared' and 'used'.\n // When it exited from the outermost class definition\x2C all used private names must be declared.\n this.privateNameStack = [];\n };\n\n var prototypeAccessors = { inFunction: { configurable: true }\x2CinGenerator: { configurable: true }\x2CinAsync: { configurable: true }\x2CcanAwait: { configurable: true }\x2CallowSuper: { configurable: true }\x2CallowDirectSuper: { configurable: true }\x2CtreatFunctionsAsVar: { configurable: true }\x2CinNonArrowFunction: { configurable: true } };\n\n Parser.prototype.parse = function parse () {\n var node = this.options.program || this.startNode();\n this.nextToken();\n return this.parseTopLevel(node)\n };\n\n prototypeAccessors.inFunction.get = function () { return (this.currentVarScope().flags & SCOPE_FUNCTION) > 0 };\n prototypeAccessors.inGenerator.get = function () { return (this.currentVarScope().flags & SCOPE_GENERATOR) > 0 && !this.currentVarScope().inClassFieldInit };\n prototypeAccessors.inAsync.get = function () { return (this.currentVarScope().flags & SCOPE_ASYNC) > 0 && !this.currentVarScope().inClassFieldInit };\n prototypeAccessors.canAwait.get = function () {\n for (var i = this.scopeStack.length - 1; i >= 0; i--) {\n var scope = this.scopeStack[i];\n if (scope.inClassFieldInit) { return false }\n if (scope.flags & SCOPE_FUNCTION) { return (scope.flags & SCOPE_ASYNC) > 0 }\n }\n return (this.inModule && this.options.ecmaVersion >= 13) || this.options.allowAwaitOutsideFunction\n };\n prototypeAccessors.allowSuper.get = function () {\n var ref = this.currentThisScope();\n var flags = ref.flags;\n var inClassFieldInit = ref.inClassFieldInit;\n return (flags & SCOPE_SUPER) > 0 || inClassFieldInit || this.options.allowSuperOutsideMethod\n };\n prototypeAccessors.allowDirectSuper.get = function () { return (this.currentThisScope().flags & SCOPE_DIRECT_SUPER) > 0 };\n prototypeAccessors.treatFunctionsAsVar.get = function () { return this.treatFunctionsAsVarInScope(this.currentScope()) };\n prototypeAccessors.inNonArrowFunction.get = function () {\n var ref = this.currentThisScope();\n var flags = ref.flags;\n var inClassFieldInit = ref.inClassFieldInit;\n return (flags & SCOPE_FUNCTION) > 0 || inClassFieldInit\n };\n\n Parser.extend = function extend () {\n var plugins = []\x2C len = arguments.length;\n while ( len-- ) plugins[ len ] = arguments[ len ];\n\n var cls = this;\n for (var i = 0; i < plugins.length; i++) { cls = plugins[i](cls); }\n return cls\n };\n\n Parser.parse = function parse (input\x2C options) {\n return new this(options\x2C input).parse()\n };\n\n Parser.parseExpressionAt = function parseExpressionAt (input\x2C pos\x2C options) {\n var parser = new this(options\x2C input\x2C pos);\n parser.nextToken();\n return parser.parseExpression()\n };\n\n Parser.tokenizer = function tokenizer (input\x2C options) {\n return new this(options\x2C input)\n };\n\n Object.defineProperties( Parser.prototype\x2C prototypeAccessors );\n\n var pp = Parser.prototype;\n\n // ## Parser utilities\n\n var literal = /^(?:'((?:\\\\.|[^'\\\\])*?)'|"((?:\\\\.|[^"\\\\])*?)")/;\n pp.strictDirective = function(start) {\n for (;;) {\n // Try to find string literal.\n skipWhiteSpace.lastIndex = start;\n start += skipWhiteSpace.exec(this.input)[0].length;\n var match = literal.exec(this.input.slice(start));\n if (!match) { return false }\n if ((match[1] || match[2]) === "use strict") {\n skipWhiteSpace.lastIndex = start + match[0].length;\n var spaceAfter = skipWhiteSpace.exec(this.input)\x2C end = spaceAfter.index + spaceAfter[0].length;\n var next = this.input.charAt(end);\n return next === ";" || next === "}" ||\n (lineBreak.test(spaceAfter[0]) &&\n !(/[(`.[+\\-/*%<>=\x2C?^&]/.test(next) || next === "!" && this.input.charAt(end + 1) === "="))\n }\n start += match[0].length;\n\n // Skip semicolon\x2C if any.\n skipWhiteSpace.lastIndex = start;\n start += skipWhiteSpace.exec(this.input)[0].length;\n if (this.input[start] === ";")\n { start++; }\n }\n };\n\n // Predicate that tests whether the next token is of the given\n // type\x2C and if yes\x2C consumes it as a side effect.\n\n pp.eat = function(type) {\n if (this.type === type) {\n this.next();\n return true\n } else {\n return false\n }\n };\n\n // Tests whether parsed token is a contextual keyword.\n\n pp.isContextual = function(name) {\n return this.type === types.name && this.value === name && !this.containsEsc\n };\n\n // Consumes contextual keyword if possible.\n\n pp.eatContextual = function(name) {\n if (!this.isContextual(name)) { return false }\n this.next();\n return true\n };\n\n // Asserts that following token is given contextual keyword.\n\n pp.expectContextual = function(name) {\n if (!this.eatContextual(name)) { this.unexpected(); }\n };\n\n // Test whether a semicolon can be inserted at the current position.\n\n pp.canInsertSemicolon = function() {\n return this.type === types.eof ||\n this.type === types.braceR ||\n lineBreak.test(this.input.slice(this.lastTokEnd\x2C this.start))\n };\n\n pp.insertSemicolon = function() {\n if (this.canInsertSemicolon()) {\n if (this.options.onInsertedSemicolon)\n { this.options.onInsertedSemicolon(this.lastTokEnd\x2C this.lastTokEndLoc); }\n return true\n }\n };\n\n // Consume a semicolon\x2C or\x2C failing that\x2C see if we are allowed to\n // pretend that there is a semicolon at this position.\n\n pp.semicolon = function() {\n if (!this.eat(types.semi) && !this.insertSemicolon()) { this.unexpected(); }\n };\n\n pp.afterTrailingComma = function(tokType\x2C notNext) {\n if (this.type === tokType) {\n if (this.options.onTrailingComma)\n { this.options.onTrailingComma(this.lastTokStart\x2C this.lastTokStartLoc); }\n if (!notNext)\n { this.next(); }\n return true\n }\n };\n\n // Expect a token of a given type. If found\x2C consume it\x2C otherwise\x2C\n // raise an unexpected token error.\n\n pp.expect = function(type) {\n this.eat(type) || this.unexpected();\n };\n\n // Raise an unexpected token error.\n\n pp.unexpected = function(pos) {\n this.raise(pos != null ? pos : this.start\x2C "Unexpected token");\n };\n\n function DestructuringErrors() {\n this.shorthandAssign =\n this.trailingComma =\n this.parenthesizedAssign =\n this.parenthesizedBind =\n this.doubleProto =\n -1;\n }\n\n pp.checkPatternErrors = function(refDestructuringErrors\x2C isAssign) {\n if (!refDestructuringErrors) { return }\n if (refDestructuringErrors.trailingComma > -1)\n { this.raiseRecoverable(refDestructuringErrors.trailingComma\x2C "Comma is not permitted after the rest element"); }\n var parens = isAssign ? refDestructuringErrors.parenthesizedAssign : refDestructuringErrors.parenthesizedBind;\n if (parens > -1) { this.raiseRecoverable(parens\x2C "Parenthesized pattern"); }\n };\n\n pp.checkExpressionErrors = function(refDestructuringErrors\x2C andThrow) {\n if (!refDestructuringErrors) { return false }\n var shorthandAssign = refDestructuringErrors.shorthandAssign;\n var doubleProto = refDestructuringErrors.doubleProto;\n if (!andThrow) { return shorthandAssign >= 0 || doubleProto >= 0 }\n if (shorthandAssign >= 0)\n { this.raise(shorthandAssign\x2C "Shorthand property assignments are valid only in destructuring patterns"); }\n if (doubleProto >= 0)\n { this.raiseRecoverable(doubleProto\x2C "Redefinition of __proto__ property"); }\n };\n\n pp.checkYieldAwaitInDefaultParams = function() {\n if (this.yieldPos && (!this.awaitPos || this.yieldPos < this.awaitPos))\n { this.raise(this.yieldPos\x2C "Yield expression cannot be a default value"); }\n if (this.awaitPos)\n { this.raise(this.awaitPos\x2C "Await expression cannot be a default value"); }\n };\n\n pp.isSimpleAssignTarget = function(expr) {\n if (expr.type === "ParenthesizedExpression")\n { return this.isSimpleAssignTarget(expr.expression) }\n return expr.type === "Identifier" || expr.type === "MemberExpression"\n };\n\n var pp$1 = Parser.prototype;\n\n // ### Statement parsing\n\n // Parse a program. Initializes the parser\x2C reads any number of\n // statements\x2C and wraps them in a Program node. Optionally takes a\n // `program` argument. If present\x2C the statements will be appended\n // to its body instead of creating a new node.\n\n pp$1.parseTopLevel = function(node) {\n var exports = Object.create(null);\n if (!node.body) { node.body = []; }\n while (this.type !== types.eof) {\n var stmt = this.parseStatement(null\x2C true\x2C exports);\n node.body.push(stmt);\n }\n if (this.inModule)\n { for (var i = 0\x2C list = Object.keys(this.undefinedExports); i < list.length; i += 1)\n {\n var name = list[i];\n\n this.raiseRecoverable(this.undefinedExports[name].start\x2C ("Export '" + name + "' is not defined"));\n } }\n this.adaptDirectivePrologue(node.body);\n this.next();\n node.sourceType = this.options.sourceType;\n return this.finishNode(node\x2C "Program")\n };\n\n var loopLabel = {kind: "loop"}\x2C switchLabel = {kind: "switch"};\n\n pp$1.isLet = function(context) {\n if (this.options.ecmaVersion < 6 || !this.isContextual("let")) { return false }\n skipWhiteSpace.lastIndex = this.pos;\n var skip = skipWhiteSpace.exec(this.input);\n var next = this.pos + skip[0].length\x2C nextCh = this.input.charCodeAt(next);\n // For ambiguous cases\x2C determine if a LexicalDeclaration (or only a\n // Statement) is allowed here. If context is not empty then only a Statement\n // is allowed. However\x2C `let [` is an explicit negative lookahead for\n // ExpressionStatement\x2C so special-case it first.\n if (nextCh === 91 || nextCh === 92 || nextCh > 0xd7ff && nextCh < 0xdc00) { return true } // '['\x2C '/'\x2C astral\n if (context) { return false }\n\n if (nextCh === 123) { return true } // '{'\n if (isIdentifierStart(nextCh\x2C true)) {\n var pos = next + 1;\n while (isIdentifierChar(nextCh = this.input.charCodeAt(pos)\x2C true)) { ++pos; }\n if (nextCh === 92 || nextCh > 0xd7ff && nextCh < 0xdc00) { return true }\n var ident = this.input.slice(next\x2C pos);\n if (!keywordRelationalOperator.test(ident)) { return true }\n }\n return false\n };\n\n // check 'async [no LineTerminator here] function'\n // - 'async /*foo*/ function' is OK.\n // - 'async /*\\n*/ function' is invalid.\n pp$1.isAsyncFunction = function() {\n if (this.options.ecmaVersion < 8 || !this.isContextual("async"))\n { return false }\n\n skipWhiteSpace.lastIndex = this.pos;\n var skip = skipWhiteSpace.exec(this.input);\n var next = this.pos + skip[0].length\x2C after;\n return !lineBreak.test(this.input.slice(this.pos\x2C next)) &&\n this.input.slice(next\x2C next + 8) === "function" &&\n (next + 8 === this.input.length ||\n !(isIdentifierChar(after = this.input.charCodeAt(next + 8)) || after > 0xd7ff && after < 0xdc00))\n };\n\n // Parse a single statement.\n //\n // If expecting a statement and finding a slash operator\x2C parse a\n // regular expression literal. This is to handle cases like\n // `if (foo) /blah/.exec(foo)`\x2C where looking at the previous token\n // does not help.\n\n pp$1.parseStatement = function(context\x2C topLevel\x2C exports) {\n var starttype = this.type\x2C node = this.startNode()\x2C kind;\n\n if (this.isLet(context)) {\n starttype = types._var;\n kind = "let";\n }\n\n // Most types of statements are recognized by the keyword they\n // start with. Many are trivial to parse\x2C some require a bit of\n // complexity.\n\n switch (starttype) {\n case types._break: case types._continue: return this.parseBreakContinueStatement(node\x2C starttype.keyword)\n case types._debugger: return this.parseDebuggerStatement(node)\n case types._do: return this.parseDoStatement(node)\n case types._for: return this.parseForStatement(node)\n case types._function:\n // Function as sole body of either an if statement or a labeled statement\n // works\x2C but not when it is part of a labeled statement that is the sole\n // body of an if statement.\n if ((context && (this.strict || context !== "if" && context !== "label")) && this.options.ecmaVersion >= 6) { this.unexpected(); }\n return this.parseFunctionStatement(node\x2C false\x2C !context)\n case types._class:\n if (context) { this.unexpected(); }\n return this.parseClass(node\x2C true)\n case types._if: return this.parseIfStatement(node)\n case types._return: return this.parseReturnStatement(node)\n case types._switch: return this.parseSwitchStatement(node)\n case types._throw: return this.parseThrowStatement(node)\n case types._try: return this.parseTryStatement(node)\n case types._const: case types._var:\n kind = kind || this.value;\n if (context && kind !== "var") { this.unexpected(); }\n return this.parseVarStatement(node\x2C kind)\n case types._while: return this.parseWhileStatement(node)\n case types._with: return this.parseWithStatement(node)\n case types.braceL: return this.parseBlock(true\x2C node)\n case types.semi: return this.parseEmptyStatement(node)\n case types._export:\n case types._import:\n if (this.options.ecmaVersion > 10 && starttype === types._import) {\n skipWhiteSpace.lastIndex = this.pos;\n var skip = skipWhiteSpace.exec(this.input);\n var next = this.pos + skip[0].length\x2C nextCh = this.input.charCodeAt(next);\n if (nextCh === 40 || nextCh === 46) // '(' or '.'\n { return this.parseExpressionStatement(node\x2C this.parseExpression()) }\n }\n\n if (!this.options.allowImportExportEverywhere) {\n if (!topLevel)\n { this.raise(this.start\x2C "'import' and 'export' may only appear at the top level"); }\n if (!this.inModule)\n { this.raise(this.start\x2C "'import' and 'export' may appear only with 'sourceType: module'"); }\n }\n return starttype === types._import ? this.parseImport(node) : this.parseExport(node\x2C exports)\n\n // If the statement does not start with a statement keyword or a\n // brace\x2C it's an ExpressionStatement or LabeledStatement. We\n // simply start parsing an expression\x2C and afterwards\x2C if the\n // next token is a colon and the expression was a simple\n // Identifier node\x2C we switch to interpreting it as a label.\n default:\n if (this.isAsyncFunction()) {\n if (context) { this.unexpected(); }\n this.next();\n return this.parseFunctionStatement(node\x2C true\x2C !context)\n }\n\n var maybeName = this.value\x2C expr = this.parseExpression();\n if (starttype === types.name && expr.type === "Identifier" && this.eat(types.colon))\n { return this.parseLabeledStatement(node\x2C maybeName\x2C expr\x2C context) }\n else { return this.parseExpressionStatement(node\x2C expr) }\n }\n };\n\n pp$1.parseBreakContinueStatement = function(node\x2C keyword) {\n var isBreak = keyword === "break";\n this.next();\n if (this.eat(types.semi) || this.insertSemicolon()) { node.label = null; }\n else if (this.type !== types.name) { this.unexpected(); }\n else {\n node.label = this.parseIdent();\n this.semicolon();\n }\n\n // Verify that there is an actual destination to break or\n // continue to.\n var i = 0;\n for (; i < this.labels.length; ++i) {\n var lab = this.labels[i];\n if (node.label == null || lab.name === node.label.name) {\n if (lab.kind != null && (isBreak || lab.kind === "loop")) { break }\n if (node.label && isBreak) { break }\n }\n }\n if (i === this.labels.length) { this.raise(node.start\x2C "Unsyntactic " + keyword); }\n return this.finishNode(node\x2C isBreak ? "BreakStatement" : "ContinueStatement")\n };\n\n pp$1.parseDebuggerStatement = function(node) {\n this.next();\n this.semicolon();\n return this.finishNode(node\x2C "DebuggerStatement")\n };\n\n pp$1.parseDoStatement = function(node) {\n this.next();\n this.labels.push(loopLabel);\n node.body = this.parseStatement("do");\n this.labels.pop();\n this.expect(types._while);\n node.test = this.parseParenExpression();\n if (this.options.ecmaVersion >= 6)\n { this.eat(types.semi); }\n else\n { this.semicolon(); }\n return this.finishNode(node\x2C "DoWhileStatement")\n };\n\n // Disambiguating between a `for` and a `for`/`in` or `for`/`of`\n // loop is non-trivial. Basically\x2C we have to parse the init `var`\n // statement or expression\x2C disallowing the `in` operator (see\n // the second parameter to `parseExpression`)\x2C and then check\n // whether the next token is `in` or `of`. When there is no init\n // part (semicolon immediately after the opening parenthesis)\x2C it\n // is a regular `for` loop.\n\n pp$1.parseForStatement = function(node) {\n this.next();\n var awaitAt = (this.options.ecmaVersion >= 9 && this.canAwait && this.eatContextual("await")) ? this.lastTokStart : -1;\n this.labels.push(loopLabel);\n this.enterScope(0);\n this.expect(types.parenL);\n if (this.type === types.semi) {\n if (awaitAt > -1) { this.unexpected(awaitAt); }\n return this.parseFor(node\x2C null)\n }\n var isLet = this.isLet();\n if (this.type === types._var || this.type === types._const || isLet) {\n var init$1 = this.startNode()\x2C kind = isLet ? "let" : this.value;\n this.next();\n this.parseVar(init$1\x2C true\x2C kind);\n this.finishNode(init$1\x2C "VariableDeclaration");\n if ((this.type === types._in || (this.options.ecmaVersion >= 6 && this.isContextual("of"))) && init$1.declarations.length === 1) {\n if (this.options.ecmaVersion >= 9) {\n if (this.type === types._in) {\n if (awaitAt > -1) { this.unexpected(awaitAt); }\n } else { node.await = awaitAt > -1; }\n }\n return this.parseForIn(node\x2C init$1)\n }\n if (awaitAt > -1) { this.unexpected(awaitAt); }\n return this.parseFor(node\x2C init$1)\n }\n var refDestructuringErrors = new DestructuringErrors;\n var init = this.parseExpression(awaitAt > -1 ? "await" : true\x2C refDestructuringErrors);\n if (this.type === types._in || (this.options.ecmaVersion >= 6 && this.isContextual("of"))) {\n if (this.options.ecmaVersion >= 9) {\n if (this.type === types._in) {\n if (awaitAt > -1) { this.unexpected(awaitAt); }\n } else { node.await = awaitAt > -1; }\n }\n this.toAssignable(init\x2C false\x2C refDestructuringErrors);\n this.checkLValPattern(init);\n return this.parseForIn(node\x2C init)\n } else {\n this.checkExpressionErrors(refDestructuringErrors\x2C true);\n }\n if (awaitAt > -1) { this.unexpected(awaitAt); }\n return this.parseFor(node\x2C init)\n };\n\n pp$1.parseFunctionStatement = function(node\x2C isAsync\x2C declarationPosition) {\n this.next();\n return this.parseFunction(node\x2C FUNC_STATEMENT | (declarationPosition ? 0 : FUNC_HANGING_STATEMENT)\x2C false\x2C isAsync)\n };\n\n pp$1.parseIfStatement = function(node) {\n this.next();\n node.test = this.parseParenExpression();\n // allow function declarations in branches\x2C but only in non-strict mode\n node.consequent = this.parseStatement("if");\n node.alternate = this.eat(types._else) ? this.parseStatement("if") : null;\n return this.finishNode(node\x2C "IfStatement")\n };\n\n pp$1.parseReturnStatement = function(node) {\n if (!this.inFunction && !this.options.allowReturnOutsideFunction)\n { this.raise(this.start\x2C "'return' outside of function"); }\n this.next();\n\n // In `return` (and `break`/`continue`)\x2C the keywords with\n // optional arguments\x2C we eagerly look for a semicolon or the\n // possibility to insert one.\n\n if (this.eat(types.semi) || this.insertSemicolon()) { node.argument = null; }\n else { node.argument = this.parseExpression(); this.semicolon(); }\n return this.finishNode(node\x2C "ReturnStatement")\n };\n\n pp$1.parseSwitchStatement = function(node) {\n this.next();\n node.discriminant = this.parseParenExpression();\n node.cases = [];\n this.expect(types.braceL);\n this.labels.push(switchLabel);\n this.enterScope(0);\n\n // Statements under must be grouped (by label) in SwitchCase\n // nodes. `cur` is used to keep the node that we are currently\n // adding statements to.\n\n var cur;\n for (var sawDefault = false; this.type !== types.braceR;) {\n if (this.type === types._case || this.type === types._default) {\n var isCase = this.type === types._case;\n if (cur) { this.finishNode(cur\x2C "SwitchCase"); }\n node.cases.push(cur = this.startNode());\n cur.consequent = [];\n this.next();\n if (isCase) {\n cur.test = this.parseExpression();\n } else {\n if (sawDefault) { this.raiseRecoverable(this.lastTokStart\x2C "Multiple default clauses"); }\n sawDefault = true;\n cur.test = null;\n }\n this.expect(types.colon);\n } else {\n if (!cur) { this.unexpected(); }\n cur.consequent.push(this.parseStatement(null));\n }\n }\n this.exitScope();\n if (cur) { this.finishNode(cur\x2C "SwitchCase"); }\n this.next(); // Closing brace\n this.labels.pop();\n return this.finishNode(node\x2C "SwitchStatement")\n };\n\n pp$1.parseThrowStatement = function(node) {\n this.next();\n if (lineBreak.test(this.input.slice(this.lastTokEnd\x2C this.start)))\n { this.raise(this.lastTokEnd\x2C "Illegal newline after throw"); }\n node.argument = this.parseExpression();\n this.semicolon();\n return this.finishNode(node\x2C "ThrowStatement")\n };\n\n // Reused empty array added for node fields that are always empty.\n\n var empty = [];\n\n pp$1.parseTryStatement = function(node) {\n this.next();\n node.block = this.parseBlock();\n node.handler = null;\n if (this.type === types._catch) {\n var clause = this.startNode();\n this.next();\n if (this.eat(types.parenL)) {\n clause.param = this.parseBindingAtom();\n var simple = clause.param.type === "Identifier";\n this.enterScope(simple ? SCOPE_SIMPLE_CATCH : 0);\n this.checkLValPattern(clause.param\x2C simple ? BIND_SIMPLE_CATCH : BIND_LEXICAL);\n this.expect(types.parenR);\n } else {\n if (this.options.ecmaVersion < 10) { this.unexpected(); }\n clause.param = null;\n this.enterScope(0);\n }\n clause.body = this.parseBlock(false);\n this.exitScope();\n node.handler = this.finishNode(clause\x2C "CatchClause");\n }\n node.finalizer = this.eat(types._finally) ? this.parseBlock() : null;\n if (!node.handler && !node.finalizer)\n { this.raise(node.start\x2C "Missing catch or finally clause"); }\n return this.finishNode(node\x2C "TryStatement")\n };\n\n pp$1.parseVarStatement = function(node\x2C kind) {\n this.next();\n this.parseVar(node\x2C false\x2C kind);\n this.semicolon();\n return this.finishNode(node\x2C "VariableDeclaration")\n };\n\n pp$1.parseWhileStatement = function(node) {\n this.next();\n node.test = this.parseParenExpression();\n this.labels.push(loopLabel);\n node.body = this.parseStatement("while");\n this.labels.pop();\n return this.finishNode(node\x2C "WhileStatement")\n };\n\n pp$1.parseWithStatement = function(node) {\n if (this.strict) { this.raise(this.start\x2C "'with' in strict mode"); }\n this.next();\n node.object = this.parseParenExpression();\n node.body = this.parseStatement("with");\n return this.finishNode(node\x2C "WithStatement")\n };\n\n pp$1.parseEmptyStatement = function(node) {\n this.next();\n return this.finishNode(node\x2C "EmptyStatement")\n };\n\n pp$1.parseLabeledStatement = function(node\x2C maybeName\x2C expr\x2C context) {\n for (var i$1 = 0\x2C list = this.labels; i$1 < list.length; i$1 += 1)\n {\n var label = list[i$1];\n\n if (label.name === maybeName)\n { this.raise(expr.start\x2C "Label '" + maybeName + "' is already declared");\n } }\n var kind = this.type.isLoop ? "loop" : this.type === types._switch ? "switch" : null;\n for (var i = this.labels.length - 1; i >= 0; i--) {\n var label$1 = this.labels[i];\n if (label$1.statementStart === node.start) {\n // Update information about previous labels on this node\n label$1.statementStart = this.start;\n label$1.kind = kind;\n } else { break }\n }\n this.labels.push({name: maybeName\x2C kind: kind\x2C statementStart: this.start});\n node.body = this.parseStatement(context ? context.indexOf("label") === -1 ? context + "label" : context : "label");\n this.labels.pop();\n node.label = expr;\n return this.finishNode(node\x2C "LabeledStatement")\n };\n\n pp$1.parseExpressionStatement = function(node\x2C expr) {\n node.expression = expr;\n this.semicolon();\n return this.finishNode(node\x2C "ExpressionStatement")\n };\n\n // Parse a semicolon-enclosed block of statements\x2C handling `"use\n // strict"` declarations when `allowStrict` is true (used for\n // function bodies).\n\n pp$1.parseBlock = function(createNewLexicalScope\x2C node\x2C exitStrict) {\n if ( createNewLexicalScope === void 0 ) createNewLexicalScope = true;\n if ( node === void 0 ) node = this.startNode();\n\n node.body = [];\n this.expect(types.braceL);\n if (createNewLexicalScope) { this.enterScope(0); }\n while (this.type !== types.braceR) {\n var stmt = this.parseStatement(null);\n node.body.push(stmt);\n }\n if (exitStrict) { this.strict = false; }\n this.next();\n if (createNewLexicalScope) { this.exitScope(); }\n return this.finishNode(node\x2C "BlockStatement")\n };\n\n // Parse a regular `for` loop. The disambiguation code in\n // `parseStatement` will already have parsed the init statement or\n // expression.\n\n pp$1.parseFor = function(node\x2C init) {\n node.init = init;\n this.expect(types.semi);\n node.test = this.type === types.semi ? null : this.parseExpression();\n this.expect(types.semi);\n node.update = this.type === types.parenR ? null : this.parseExpression();\n this.expect(types.parenR);\n node.body = this.parseStatement("for");\n this.exitScope();\n this.labels.pop();\n return this.finishNode(node\x2C "ForStatement")\n };\n\n // Parse a `for`/`in` and `for`/`of` loop\x2C which are almost\n // same from parser's perspective.\n\n pp$1.parseForIn = function(node\x2C init) {\n var isForIn = this.type === types._in;\n this.next();\n\n if (\n init.type === "VariableDeclaration" &&\n init.declarations[0].init != null &&\n (\n !isForIn ||\n this.options.ecmaVersion < 8 ||\n this.strict ||\n init.kind !== "var" ||\n init.declarations[0].id.type !== "Identifier"\n )\n ) {\n this.raise(\n init.start\x2C\n ((isForIn ? "for-in" : "for-of") + " loop variable declaration may not have an initializer")\n );\n }\n node.left = init;\n node.right = isForIn ? this.parseExpression() : this.parseMaybeAssign();\n this.expect(types.parenR);\n node.body = this.parseStatement("for");\n this.exitScope();\n this.labels.pop();\n return this.finishNode(node\x2C isForIn ? "ForInStatement" : "ForOfStatement")\n };\n\n // Parse a list of variable declarations.\n\n pp$1.parseVar = function(node\x2C isFor\x2C kind) {\n node.declarations = [];\n node.kind = kind;\n for (;;) {\n var decl = this.startNode();\n this.parseVarId(decl\x2C kind);\n if (this.eat(types.eq)) {\n decl.init = this.parseMaybeAssign(isFor);\n } else if (kind === "const" && !(this.type === types._in || (this.options.ecmaVersion >= 6 && this.isContextual("of")))) {\n this.unexpected();\n } else if (decl.id.type !== "Identifier" && !(isFor && (this.type === types._in || this.isContextual("of")))) {\n this.raise(this.lastTokEnd\x2C "Complex binding patterns require an initialization value");\n } else {\n decl.init = null;\n }\n node.declarations.push(this.finishNode(decl\x2C "VariableDeclarator"));\n if (!this.eat(types.comma)) { break }\n }\n return node\n };\n\n pp$1.parseVarId = function(decl\x2C kind) {\n decl.id = this.parseBindingAtom();\n this.checkLValPattern(decl.id\x2C kind === "var" ? BIND_VAR : BIND_LEXICAL\x2C false);\n };\n\n var FUNC_STATEMENT = 1\x2C FUNC_HANGING_STATEMENT = 2\x2C FUNC_NULLABLE_ID = 4;\n\n // Parse a function declaration or literal (depending on the\n // `statement & FUNC_STATEMENT`).\n\n // Remove `allowExpressionBody` for 7.0.0\x2C as it is only called with false\n pp$1.parseFunction = function(node\x2C statement\x2C allowExpressionBody\x2C isAsync) {\n this.initFunction(node);\n if (this.options.ecmaVersion >= 9 || this.options.ecmaVersion >= 6 && !isAsync) {\n if (this.type === types.star && (statement & FUNC_HANGING_STATEMENT))\n { this.unexpected(); }\n node.generator = this.eat(types.star);\n }\n if (this.options.ecmaVersion >= 8)\n { node.async = !!isAsync; }\n\n if (statement & FUNC_STATEMENT) {\n node.id = (statement & FUNC_NULLABLE_ID) && this.type !== types.name ? null : this.parseIdent();\n if (node.id && !(statement & FUNC_HANGING_STATEMENT))\n // If it is a regular function declaration in sloppy mode\x2C then it is\n // subject to Annex B semantics (BIND_FUNCTION). Otherwise\x2C the binding\n // mode depends on properties of the current scope (see\n // treatFunctionsAsVar).\n { this.checkLValSimple(node.id\x2C (this.strict || node.generator || node.async) ? this.treatFunctionsAsVar ? BIND_VAR : BIND_LEXICAL : BIND_FUNCTION); }\n }\n\n var oldYieldPos = this.yieldPos\x2C oldAwaitPos = this.awaitPos\x2C oldAwaitIdentPos = this.awaitIdentPos;\n this.yieldPos = 0;\n this.awaitPos = 0;\n this.awaitIdentPos = 0;\n this.enterScope(functionFlags(node.async\x2C node.generator));\n\n if (!(statement & FUNC_STATEMENT))\n { node.id = this.type === types.name ? this.parseIdent() : null; }\n\n this.parseFunctionParams(node);\n this.parseFunctionBody(node\x2C allowExpressionBody\x2C false);\n\n this.yieldPos = oldYieldPos;\n this.awaitPos = oldAwaitPos;\n this.awaitIdentPos = oldAwaitIdentPos;\n return this.finishNode(node\x2C (statement & FUNC_STATEMENT) ? "FunctionDeclaration" : "FunctionExpression")\n };\n\n pp$1.parseFunctionParams = function(node) {\n this.expect(types.parenL);\n node.params = this.parseBindingList(types.parenR\x2C false\x2C this.options.ecmaVersion >= 8);\n this.checkYieldAwaitInDefaultParams();\n };\n\n // Parse a class declaration or literal (depending on the\n // `isStatement` parameter).\n\n pp$1.parseClass = function(node\x2C isStatement) {\n this.next();\n\n // ecma-262 14.6 Class Definitions\n // A class definition is always strict mode code.\n var oldStrict = this.strict;\n this.strict = true;\n\n this.parseClassId(node\x2C isStatement);\n this.parseClassSuper(node);\n var privateNameMap = this.enterClassBody();\n var classBody = this.startNode();\n var hadConstructor = false;\n classBody.body = [];\n this.expect(types.braceL);\n while (this.type !== types.braceR) {\n var element = this.parseClassElement(node.superClass !== null);\n if (element) {\n classBody.body.push(element);\n if (element.type === "MethodDefinition" && element.kind === "constructor") {\n if (hadConstructor) { this.raise(element.start\x2C "Duplicate constructor in the same class"); }\n hadConstructor = true;\n } else if (element.key.type === "PrivateIdentifier" && isPrivateNameConflicted(privateNameMap\x2C element)) {\n this.raiseRecoverable(element.key.start\x2C ("Identifier '#" + (element.key.name) + "' has already been declared"));\n }\n }\n }\n this.strict = oldStrict;\n this.next();\n node.body = this.finishNode(classBody\x2C "ClassBody");\n this.exitClassBody();\n return this.finishNode(node\x2C isStatement ? "ClassDeclaration" : "ClassExpression")\n };\n\n pp$1.parseClassElement = function(constructorAllowsSuper) {\n if (this.eat(types.semi)) { return null }\n\n var ecmaVersion = this.options.ecmaVersion;\n var node = this.startNode();\n var keyName = "";\n var isGenerator = false;\n var isAsync = false;\n var kind = "method";\n\n // Parse modifiers\n node.static = false;\n if (this.eatContextual("static")) {\n if (this.isClassElementNameStart() || this.type === types.star) {\n node.static = true;\n } else {\n keyName = "static";\n }\n }\n if (!keyName && ecmaVersion >= 8 && this.eatContextual("async")) {\n if ((this.isClassElementNameStart() || this.type === types.star) && !this.canInsertSemicolon()) {\n isAsync = true;\n } else {\n keyName = "async";\n }\n }\n if (!keyName && (ecmaVersion >= 9 || !isAsync) && this.eat(types.star)) {\n isGenerator = true;\n }\n if (!keyName && !isAsync && !isGenerator) {\n var lastValue = this.value;\n if (this.eatContextual("get") || this.eatContextual("set")) {\n if (this.isClassElementNameStart()) {\n kind = lastValue;\n } else {\n keyName = lastValue;\n }\n }\n }\n\n // Parse element name\n if (keyName) {\n // 'async'\x2C 'get'\x2C 'set'\x2C or 'static' were not a keyword contextually.\n // The last token is any of those. Make it the element name.\n node.computed = false;\n node.key = this.startNodeAt(this.lastTokStart\x2C this.lastTokStartLoc);\n node.key.name = keyName;\n this.finishNode(node.key\x2C "Identifier");\n } else {\n this.parseClassElementName(node);\n }\n\n // Parse element value\n if (ecmaVersion < 13 || this.type === types.parenL || kind !== "method" || isGenerator || isAsync) {\n var isConstructor = !node.static && checkKeyName(node\x2C "constructor");\n var allowsDirectSuper = isConstructor && constructorAllowsSuper;\n // Couldn't move this check into the 'parseClassMethod' method for backward compatibility.\n if (isConstructor && kind !== "method") { this.raise(node.key.start\x2C "Constructor can't have get/set modifier"); }\n node.kind = isConstructor ? "constructor" : kind;\n this.parseClassMethod(node\x2C isGenerator\x2C isAsync\x2C allowsDirectSuper);\n } else {\n this.parseClassField(node);\n }\n\n return node\n };\n\n pp$1.isClassElementNameStart = function() {\n return (\n this.type === types.name ||\n this.type === types.privateId ||\n this.type === types.num ||\n this.type === types.string ||\n this.type === types.bracketL ||\n this.type.keyword\n )\n };\n\n pp$1.parseClassElementName = function(element) {\n if (this.type === types.privateId) {\n if (this.value === "constructor") {\n this.raise(this.start\x2C "Classes can't have an element named '#constructor'");\n }\n element.computed = false;\n element.key = this.parsePrivateIdent();\n } else {\n this.parsePropertyName(element);\n }\n };\n\n pp$1.parseClassMethod = function(method\x2C isGenerator\x2C isAsync\x2C allowsDirectSuper) {\n // Check key and flags\n var key = method.key;\n if (method.kind === "constructor") {\n if (isGenerator) { this.raise(key.start\x2C "Constructor can't be a generator"); }\n if (isAsync) { this.raise(key.start\x2C "Constructor can't be an async method"); }\n } else if (method.static && checkKeyName(method\x2C "prototype")) {\n this.raise(key.start\x2C "Classes may not have a static property named prototype");\n }\n\n // Parse value\n var value = method.value = this.parseMethod(isGenerator\x2C isAsync\x2C allowsDirectSuper);\n\n // Check value\n if (method.kind === "get" && value.params.length !== 0)\n { this.raiseRecoverable(value.start\x2C "getter should have no params"); }\n if (method.kind === "set" && value.params.length !== 1)\n { this.raiseRecoverable(value.start\x2C "setter should have exactly one param"); }\n if (method.kind === "set" && value.params[0].type === "RestElement")\n { this.raiseRecoverable(value.params[0].start\x2C "Setter cannot use rest params"); }\n\n return this.finishNode(method\x2C "MethodDefinition")\n };\n\n pp$1.parseClassField = function(field) {\n if (checkKeyName(field\x2C "constructor")) {\n this.raise(field.key.start\x2C "Classes can't have a field named 'constructor'");\n } else if (field.static && checkKeyName(field\x2C "prototype")) {\n this.raise(field.key.start\x2C "Classes can't have a static field named 'prototype'");\n }\n\n if (this.eat(types.eq)) {\n // To raise SyntaxError if 'arguments' exists in the initializer.\n var scope = this.currentThisScope();\n var inClassFieldInit = scope.inClassFieldInit;\n scope.inClassFieldInit = true;\n field.value = this.parseMaybeAssign();\n scope.inClassFieldInit = inClassFieldInit;\n } else {\n field.value = null;\n }\n this.semicolon();\n\n return this.finishNode(field\x2C "PropertyDefinition")\n };\n\n pp$1.parseClassId = function(node\x2C isStatement) {\n if (this.type === types.name) {\n node.id = this.parseIdent();\n if (isStatement)\n { this.checkLValSimple(node.id\x2C BIND_LEXICAL\x2C false); }\n } else {\n if (isStatement === true)\n { this.unexpected(); }\n node.id = null;\n }\n };\n\n pp$1.parseClassSuper = function(node) {\n node.superClass = this.eat(types._extends) ? this.parseExprSubscripts() : null;\n };\n\n pp$1.enterClassBody = function() {\n var element = {declared: Object.create(null)\x2C used: []};\n this.privateNameStack.push(element);\n return element.declared\n };\n\n pp$1.exitClassBody = function() {\n var ref = this.privateNameStack.pop();\n var declared = ref.declared;\n var used = ref.used;\n var len = this.privateNameStack.length;\n var parent = len === 0 ? null : this.privateNameStack[len - 1];\n for (var i = 0; i < used.length; ++i) {\n var id = used[i];\n if (!has(declared\x2C id.name)) {\n if (parent) {\n parent.used.push(id);\n } else {\n this.raiseRecoverable(id.start\x2C ("Private field '#" + (id.name) + "' must be declared in an enclosing class"));\n }\n }\n }\n };\n\n function isPrivateNameConflicted(privateNameMap\x2C element) {\n var name = element.key.name;\n var curr = privateNameMap[name];\n\n var next = "true";\n if (element.type === "MethodDefinition" && (element.kind === "get" || element.kind === "set")) {\n next = (element.static ? "s" : "i") + element.kind;\n }\n\n // `class { get #a(){}; static set #a(_){} }` is also conflict.\n if (\n curr === "iget" && next === "iset" ||\n curr === "iset" && next === "iget" ||\n curr === "sget" && next === "sset" ||\n curr === "sset" && next === "sget"\n ) {\n privateNameMap[name] = "true";\n return false\n } else if (!curr) {\n privateNameMap[name] = next;\n return false\n } else {\n return true\n }\n }\n\n function checkKeyName(node\x2C name) {\n var computed = node.computed;\n var key = node.key;\n return !computed && (\n key.type === "Identifier" && key.name === name ||\n key.type === "Literal" && key.value === name\n )\n }\n\n // Parses module export declaration.\n\n pp$1.parseExport = function(node\x2C exports) {\n this.next();\n // export * from '...'\n if (this.eat(types.star)) {\n if (this.options.ecmaVersion >= 11) {\n if (this.eatContextual("as")) {\n node.exported = this.parseIdent(true);\n this.checkExport(exports\x2C node.exported.name\x2C this.lastTokStart);\n } else {\n node.exported = null;\n }\n }\n this.expectContextual("from");\n if (this.type !== types.string) { this.unexpected(); }\n node.source = this.parseExprAtom();\n this.semicolon();\n return this.finishNode(node\x2C "ExportAllDeclaration")\n }\n if (this.eat(types._default)) { // export default ...\n this.checkExport(exports\x2C "default"\x2C this.lastTokStart);\n var isAsync;\n if (this.type === types._function || (isAsync = this.isAsyncFunction())) {\n var fNode = this.startNode();\n this.next();\n if (isAsync) { this.next(); }\n node.declaration = this.parseFunction(fNode\x2C FUNC_STATEMENT | FUNC_NULLABLE_ID\x2C false\x2C isAsync);\n } else if (this.type === types._class) {\n var cNode = this.startNode();\n node.declaration = this.parseClass(cNode\x2C "nullableID");\n } else {\n node.declaration = this.parseMaybeAssign();\n this.semicolon();\n }\n return this.finishNode(node\x2C "ExportDefaultDeclaration")\n }\n // export var|const|let|function|class ...\n if (this.shouldParseExportStatement()) {\n node.declaration = this.parseStatement(null);\n if (node.declaration.type === "VariableDeclaration")\n { this.checkVariableExport(exports\x2C node.declaration.declarations); }\n else\n { this.checkExport(exports\x2C node.declaration.id.name\x2C node.declaration.id.start); }\n node.specifiers = [];\n node.source = null;\n } else { // export { x\x2C y as z } [from '...']\n node.declaration = null;\n node.specifiers = this.parseExportSpecifiers(exports);\n if (this.eatContextual("from")) {\n if (this.type !== types.string) { this.unexpected(); }\n node.source = this.parseExprAtom();\n } else {\n for (var i = 0\x2C list = node.specifiers; i < list.length; i += 1) {\n // check for keywords used as local names\n var spec = list[i];\n\n this.checkUnreserved(spec.local);\n // check if export is defined\n this.checkLocalExport(spec.local);\n }\n\n node.source = null;\n }\n this.semicolon();\n }\n return this.finishNode(node\x2C "ExportNamedDeclaration")\n };\n\n pp$1.checkExport = function(exports\x2C name\x2C pos) {\n if (!exports) { return }\n if (has(exports\x2C name))\n { this.raiseRecoverable(pos\x2C "Duplicate export '" + name + "'"); }\n exports[name] = true;\n };\n\n pp$1.checkPatternExport = function(exports\x2C pat) {\n var type = pat.type;\n if (type === "Identifier")\n { this.checkExport(exports\x2C pat.name\x2C pat.start); }\n else if (type === "ObjectPattern")\n { for (var i = 0\x2C list = pat.properties; i < list.length; i += 1)\n {\n var prop = list[i];\n\n this.checkPatternExport(exports\x2C prop);\n } }\n else if (type === "ArrayPattern")\n { for (var i$1 = 0\x2C list$1 = pat.elements; i$1 < list$1.length; i$1 += 1) {\n var elt = list$1[i$1];\n\n if (elt) { this.checkPatternExport(exports\x2C elt); }\n } }\n else if (type === "Property")\n { this.checkPatternExport(exports\x2C pat.value); }\n else if (type === "AssignmentPattern")\n { this.checkPatternExport(exports\x2C pat.left); }\n else if (type === "RestElement")\n { this.checkPatternExport(exports\x2C pat.argument); }\n else if (type === "ParenthesizedExpression")\n { this.checkPatternExport(exports\x2C pat.expression); }\n };\n\n pp$1.checkVariableExport = function(exports\x2C decls) {\n if (!exports) { return }\n for (var i = 0\x2C list = decls; i < list.length; i += 1)\n {\n var decl = list[i];\n\n this.checkPatternExport(exports\x2C decl.id);\n }\n };\n\n pp$1.shouldParseExportStatement = function() {\n return this.type.keyword === "var" ||\n this.type.keyword === "const" ||\n this.type.keyword === "class" ||\n this.type.keyword === "function" ||\n this.isLet() ||\n this.isAsyncFunction()\n };\n\n // Parses a comma-separated list of module exports.\n\n pp$1.parseExportSpecifiers = function(exports) {\n var nodes = []\x2C first = true;\n // export { x\x2C y as z } [from '...']\n this.expect(types.braceL);\n while (!this.eat(types.braceR)) {\n if (!first) {\n this.expect(types.comma);\n if (this.afterTrailingComma(types.braceR)) { break }\n } else { first = false; }\n\n var node = this.startNode();\n node.local = this.parseIdent(true);\n node.exported = this.eatContextual("as") ? this.parseIdent(true) : node.local;\n this.checkExport(exports\x2C node.exported.name\x2C node.exported.start);\n nodes.push(this.finishNode(node\x2C "ExportSpecifier"));\n }\n return nodes\n };\n\n // Parses import declaration.\n\n pp$1.parseImport = function(node) {\n this.next();\n // import '...'\n if (this.type === types.string) {\n node.specifiers = empty;\n node.source = this.parseExprAtom();\n } else {\n node.specifiers = this.parseImportSpecifiers();\n this.expectContextual("from");\n node.source = this.type === types.string ? this.parseExprAtom() : this.unexpected();\n }\n this.semicolon();\n return this.finishNode(node\x2C "ImportDeclaration")\n };\n\n // Parses a comma-separated list of module imports.\n\n pp$1.parseImportSpecifiers = function() {\n var nodes = []\x2C first = true;\n if (this.type === types.name) {\n // import defaultObj\x2C { x\x2C y as z } from '...'\n var node = this.startNode();\n node.local = this.parseIdent();\n this.checkLValSimple(node.local\x2C BIND_LEXICAL);\n nodes.push(this.finishNode(node\x2C "ImportDefaultSpecifier"));\n if (!this.eat(types.comma)) { return nodes }\n }\n if (this.type === types.star) {\n var node$1 = this.startNode();\n this.next();\n this.expectContextual("as");\n node$1.local = this.parseIdent();\n this.checkLValSimple(node$1.local\x2C BIND_LEXICAL);\n nodes.push(this.finishNode(node$1\x2C "ImportNamespaceSpecifier"));\n return nodes\n }\n this.expect(types.braceL);\n while (!this.eat(types.braceR)) {\n if (!first) {\n this.expect(types.comma);\n if (this.afterTrailingComma(types.braceR)) { break }\n } else { first = false; }\n\n var node$2 = this.startNode();\n node$2.imported = this.parseIdent(true);\n if (this.eatContextual("as")) {\n node$2.local = this.parseIdent();\n } else {\n this.checkUnreserved(node$2.imported);\n node$2.local = node$2.imported;\n }\n this.checkLValSimple(node$2.local\x2C BIND_LEXICAL);\n nodes.push(this.finishNode(node$2\x2C "ImportSpecifier"));\n }\n return nodes\n };\n\n // Set `ExpressionStatement#directive` property for directive prologues.\n pp$1.adaptDirectivePrologue = function(statements) {\n for (var i = 0; i < statements.length && this.isDirectiveCandidate(statements[i]); ++i) {\n statements[i].directive = statements[i].expression.raw.slice(1\x2C -1);\n }\n };\n pp$1.isDirectiveCandidate = function(statement) {\n return (\n statement.type === "ExpressionStatement" &&\n statement.expression.type === "Literal" &&\n typeof statement.expression.value === "string" &&\n // Reject parenthesized strings.\n (this.input[statement.start] === "\\"" || this.input[statement.start] === "'")\n )\n };\n\n var pp$2 = Parser.prototype;\n\n // Convert existing expression atom to assignable pattern\n // if possible.\n\n pp$2.toAssignable = function(node\x2C isBinding\x2C refDestructuringErrors) {\n if (this.options.ecmaVersion >= 6 && node) {\n switch (node.type) {\n case "Identifier":\n if (this.inAsync && node.name === "await")\n { this.raise(node.start\x2C "Cannot use 'await' as identifier inside an async function"); }\n break\n\n case "ObjectPattern":\n case "ArrayPattern":\n case "AssignmentPattern":\n case "RestElement":\n break\n\n case "ObjectExpression":\n node.type = "ObjectPattern";\n if (refDestructuringErrors) { this.checkPatternErrors(refDestructuringErrors\x2C true); }\n for (var i = 0\x2C list = node.properties; i < list.length; i += 1) {\n var prop = list[i];\n\n this.toAssignable(prop\x2C isBinding);\n // Early error:\n // AssignmentRestProperty[Yield\x2C Await] :\n // `...` DestructuringAssignmentTarget[Yield\x2C Await]\n //\n // It is a Syntax Error if |DestructuringAssignmentTarget| is an |ArrayLiteral| or an |ObjectLiteral|.\n if (\n prop.type === "RestElement" &&\n (prop.argument.type === "ArrayPattern" || prop.argument.type === "ObjectPattern")\n ) {\n this.raise(prop.argument.start\x2C "Unexpected token");\n }\n }\n break\n\n case "Property":\n // AssignmentProperty has type === "Property"\n if (node.kind !== "init") { this.raise(node.key.start\x2C "Object pattern can't contain getter or setter"); }\n this.toAssignable(node.value\x2C isBinding);\n break\n\n case "ArrayExpression":\n node.type = "ArrayPattern";\n if (refDestructuringErrors) { this.checkPatternErrors(refDestructuringErrors\x2C true); }\n this.toAssignableList(node.elements\x2C isBinding);\n break\n\n case "SpreadElement":\n node.type = "RestElement";\n this.toAssignable(node.argument\x2C isBinding);\n if (node.argument.type === "AssignmentPattern")\n { this.raise(node.argument.start\x2C "Rest elements cannot have a default value"); }\n break\n\n case "AssignmentExpression":\n if (node.operator !== "=") { this.raise(node.left.end\x2C "Only '=' operator can be used for specifying default value."); }\n node.type = "AssignmentPattern";\n delete node.operator;\n this.toAssignable(node.left\x2C isBinding);\n break\n\n case "ParenthesizedExpression":\n this.toAssignable(node.expression\x2C isBinding\x2C refDestructuringErrors);\n break\n\n case "ChainExpression":\n this.raiseRecoverable(node.start\x2C "Optional chaining cannot appear in left-hand side");\n break\n\n case "MemberExpression":\n if (!isBinding) { break }\n\n default:\n this.raise(node.start\x2C "Assigning to rvalue");\n }\n } else if (refDestructuringErrors) { this.checkPatternErrors(refDestructuringErrors\x2C true); }\n return node\n };\n\n // Convert list of expression atoms to binding list.\n\n pp$2.toAssignableList = function(exprList\x2C isBinding) {\n var end = exprList.length;\n for (var i = 0; i < end; i++) {\n var elt = exprList[i];\n if (elt) { this.toAssignable(elt\x2C isBinding); }\n }\n if (end) {\n var last = exprList[end - 1];\n if (this.options.ecmaVersion === 6 && isBinding && last && last.type === "RestElement" && last.argument.type !== "Identifier")\n { this.unexpected(last.argument.start); }\n }\n return exprList\n };\n\n // Parses spread element.\n\n pp$2.parseSpread = function(refDestructuringErrors) {\n var node = this.startNode();\n this.next();\n node.argument = this.parseMaybeAssign(false\x2C refDestructuringErrors);\n return this.finishNode(node\x2C "SpreadElement")\n };\n\n pp$2.parseRestBinding = function() {\n var node = this.startNode();\n this.next();\n\n // RestElement inside of a function parameter must be an identifier\n if (this.options.ecmaVersion === 6 && this.type !== types.name)\n { this.unexpected(); }\n\n node.argument = this.parseBindingAtom();\n\n return this.finishNode(node\x2C "RestElement")\n };\n\n // Parses lvalue (assignable) atom.\n\n pp$2.parseBindingAtom = function() {\n if (this.options.ecmaVersion >= 6) {\n switch (this.type) {\n case types.bracketL:\n var node = this.startNode();\n this.next();\n node.elements = this.parseBindingList(types.bracketR\x2C true\x2C true);\n return this.finishNode(node\x2C "ArrayPattern")\n\n case types.braceL:\n return this.parseObj(true)\n }\n }\n return this.parseIdent()\n };\n\n pp$2.parseBindingList = function(close\x2C allowEmpty\x2C allowTrailingComma) {\n var elts = []\x2C first = true;\n while (!this.eat(close)) {\n if (first) { first = false; }\n else { this.expect(types.comma); }\n if (allowEmpty && this.type === types.comma) {\n elts.push(null);\n } else if (allowTrailingComma && this.afterTrailingComma(close)) {\n break\n } else if (this.type === types.ellipsis) {\n var rest = this.parseRestBinding();\n this.parseBindingListItem(rest);\n elts.push(rest);\n if (this.type === types.comma) { this.raise(this.start\x2C "Comma is not permitted after the rest element"); }\n this.expect(close);\n break\n } else {\n var elem = this.parseMaybeDefault(this.start\x2C this.startLoc);\n this.parseBindingListItem(elem);\n elts.push(elem);\n }\n }\n return elts\n };\n\n pp$2.parseBindingListItem = function(param) {\n return param\n };\n\n // Parses assignment pattern around given atom if possible.\n\n pp$2.parseMaybeDefault = function(startPos\x2C startLoc\x2C left) {\n left = left || this.parseBindingAtom();\n if (this.options.ecmaVersion < 6 || !this.eat(types.eq)) { return left }\n var node = this.startNodeAt(startPos\x2C startLoc);\n node.left = left;\n node.right = this.parseMaybeAssign();\n return this.finishNode(node\x2C "AssignmentPattern")\n };\n\n // The following three functions all verify that a node is an lvalue \u2014\n // something that can be bound\x2C or assigned to. In order to do so\x2C they perform\n // a variety of checks:\n //\n // - Check that none of the bound/assigned-to identifiers are reserved words.\n // - Record name declarations for bindings in the appropriate scope.\n // - Check duplicate argument names\x2C if checkClashes is set.\n //\n // If a complex binding pattern is encountered (e.g.\x2C object and array\n // destructuring)\x2C the entire pattern is recursively checked.\n //\n // There are three versions of checkLVal*() appropriate for different\n // circumstances:\n //\n // - checkLValSimple() shall be used if the syntactic construct supports\n // nothing other than identifiers and member expressions. Parenthesized\n // expressions are also correctly handled. This is generally appropriate for\n // constructs for which the spec says\n //\n // > It is a Syntax Error if AssignmentTargetType of [the production] is not\n // > simple.\n //\n // It is also appropriate for checking if an identifier is valid and not\n // defined elsewhere\x2C like import declarations or function/class identifiers.\n //\n // Examples where this is used include:\n // a += \u2026;\n // import a from '\u2026';\n // where a is the node to be checked.\n //\n // - checkLValPattern() shall be used if the syntactic construct supports\n // anything checkLValSimple() supports\x2C as well as object and array\n // destructuring patterns. This is generally appropriate for constructs for\n // which the spec says\n //\n // > It is a Syntax Error if [the production] is neither an ObjectLiteral nor\n // > an ArrayLiteral and AssignmentTargetType of [the production] is not\n // > simple.\n //\n // Examples where this is used include:\n // (a = \u2026);\n // const a = \u2026;\n // try { \u2026 } catch (a) { \u2026 }\n // where a is the node to be checked.\n //\n // - checkLValInnerPattern() shall be used if the syntactic construct supports\n // anything checkLValPattern() supports\x2C as well as default assignment\n // patterns\x2C rest elements\x2C and other constructs that may appear within an\n // object or array destructuring pattern.\n //\n // As a special case\x2C function parameters also use checkLValInnerPattern()\x2C\n // as they also support defaults and rest constructs.\n //\n // These functions deliberately support both assignment and binding constructs\x2C\n // as the logic for both is exceedingly similar. If the node is the target of\n // an assignment\x2C then bindingType should be set to BIND_NONE. Otherwise\x2C it\n // should be set to the appropriate BIND_* constant\x2C like BIND_VAR or\n // BIND_LEXICAL.\n //\n // If the function is called with a non-BIND_NONE bindingType\x2C then\n // additionally a checkClashes object may be specified to allow checking for\n // duplicate argument names. checkClashes is ignored if the provided construct\n // is an assignment (i.e.\x2C bindingType is BIND_NONE).\n\n pp$2.checkLValSimple = function(expr\x2C bindingType\x2C checkClashes) {\n if ( bindingType === void 0 ) bindingType = BIND_NONE;\n\n var isBind = bindingType !== BIND_NONE;\n\n switch (expr.type) {\n case "Identifier":\n if (this.strict && this.reservedWordsStrictBind.test(expr.name))\n { this.raiseRecoverable(expr.start\x2C (isBind ? "Binding " : "Assigning to ") + expr.name + " in strict mode"); }\n if (isBind) {\n if (bindingType === BIND_LEXICAL && expr.name === "let")\n { this.raiseRecoverable(expr.start\x2C "let is disallowed as a lexically bound name"); }\n if (checkClashes) {\n if (has(checkClashes\x2C expr.name))\n { this.raiseRecoverable(expr.start\x2C "Argument name clash"); }\n checkClashes[expr.name] = true;\n }\n if (bindingType !== BIND_OUTSIDE) { this.declareName(expr.name\x2C bindingType\x2C expr.start); }\n }\n break\n\n case "ChainExpression":\n this.raiseRecoverable(expr.start\x2C "Optional chaining cannot appear in left-hand side");\n break\n\n case "MemberExpression":\n if (isBind) { this.raiseRecoverable(expr.start\x2C "Binding member expression"); }\n break\n\n case "ParenthesizedExpression":\n if (isBind) { this.raiseRecoverable(expr.start\x2C "Binding parenthesized expression"); }\n return this.checkLValSimple(expr.expression\x2C bindingType\x2C checkClashes)\n\n default:\n this.raise(expr.start\x2C (isBind ? "Binding" : "Assigning to") + " rvalue");\n }\n };\n\n pp$2.checkLValPattern = function(expr\x2C bindingType\x2C checkClashes) {\n if ( bindingType === void 0 ) bindingType = BIND_NONE;\n\n switch (expr.type) {\n case "ObjectPattern":\n for (var i = 0\x2C list = expr.properties; i < list.length; i += 1) {\n var prop = list[i];\n\n this.checkLValInnerPattern(prop\x2C bindingType\x2C checkClashes);\n }\n break\n\n case "ArrayPattern":\n for (var i$1 = 0\x2C list$1 = expr.elements; i$1 < list$1.length; i$1 += 1) {\n var elem = list$1[i$1];\n\n if (elem) { this.checkLValInnerPattern(elem\x2C bindingType\x2C checkClashes); }\n }\n break\n\n default:\n this.checkLValSimple(expr\x2C bindingType\x2C checkClashes);\n }\n };\n\n pp$2.checkLValInnerPattern = function(expr\x2C bindingType\x2C checkClashes) {\n if ( bindingType === void 0 ) bindingType = BIND_NONE;\n\n switch (expr.type) {\n case "Property":\n // AssignmentProperty has type === "Property"\n this.checkLValInnerPattern(expr.value\x2C bindingType\x2C checkClashes);\n break\n\n case "AssignmentPattern":\n this.checkLValPattern(expr.left\x2C bindingType\x2C checkClashes);\n break\n\n case "RestElement":\n this.checkLValPattern(expr.argument\x2C bindingType\x2C checkClashes);\n break\n\n default:\n this.checkLValPattern(expr\x2C bindingType\x2C checkClashes);\n }\n };\n\n // A recursive descent parser operates by defining functions for all\n\n var pp$3 = Parser.prototype;\n\n // Check if property name clashes with already added.\n // Object/class getters and setters are not allowed to clash \u2014\n // either with each other or with an init property \u2014 and in\n // strict mode\x2C init properties are also not allowed to be repeated.\n\n pp$3.checkPropClash = function(prop\x2C propHash\x2C refDestructuringErrors) {\n if (this.options.ecmaVersion >= 9 && prop.type === "SpreadElement")\n { return }\n if (this.options.ecmaVersion >= 6 && (prop.computed || prop.method || prop.shorthand))\n { return }\n var key = prop.key;\n var name;\n switch (key.type) {\n case "Identifier": name = key.name; break\n case "Literal": name = String(key.value); break\n default: return\n }\n var kind = prop.kind;\n if (this.options.ecmaVersion >= 6) {\n if (name === "__proto__" && kind === "init") {\n if (propHash.proto) {\n if (refDestructuringErrors) {\n if (refDestructuringErrors.doubleProto < 0)\n { refDestructuringErrors.doubleProto = key.start; }\n // Backwards-compat kludge. Can be removed in version 6.0\n } else { this.raiseRecoverable(key.start\x2C "Redefinition of __proto__ property"); }\n }\n propHash.proto = true;\n }\n return\n }\n name = "$" + name;\n var other = propHash[name];\n if (other) {\n var redefinition;\n if (kind === "init") {\n redefinition = this.strict && other.init || other.get || other.set;\n } else {\n redefinition = other.init || other[kind];\n }\n if (redefinition)\n { this.raiseRecoverable(key.start\x2C "Redefinition of property"); }\n } else {\n other = propHash[name] = {\n init: false\x2C\n get: false\x2C\n set: false\n };\n }\n other[kind] = true;\n };\n\n // ### Expression parsing\n\n // These nest\x2C from the most general expression type at the top to\n // 'atomic'\x2C nondivisible expression types at the bottom. Most of\n // the functions will simply let the function(s) below them parse\x2C\n // and\x2C *if* the syntactic construct they handle is present\x2C wrap\n // the AST node that the inner parser gave them in another node.\n\n // Parse a full expression. The optional arguments are used to\n // forbid the `in` operator (in for loops initalization expressions)\n // and provide reference for storing '=' operator inside shorthand\n // property assignment in contexts where both object expression\n // and object pattern might appear (so it's possible to raise\n // delayed syntax error at correct position).\n\n pp$3.parseExpression = function(forInit\x2C refDestructuringErrors) {\n var startPos = this.start\x2C startLoc = this.startLoc;\n var expr = this.parseMaybeAssign(forInit\x2C refDestructuringErrors);\n if (this.type === types.comma) {\n var node = this.startNodeAt(startPos\x2C startLoc);\n node.expressions = [expr];\n while (this.eat(types.comma)) { node.expressions.push(this.parseMaybeAssign(forInit\x2C refDestructuringErrors)); }\n return this.finishNode(node\x2C "SequenceExpression")\n }\n return expr\n };\n\n // Parse an assignment expression. This includes applications of\n // operators like `+=`.\n\n pp$3.parseMaybeAssign = function(forInit\x2C refDestructuringErrors\x2C afterLeftParse) {\n if (this.isContextual("yield")) {\n if (this.inGenerator) { return this.parseYield(forInit) }\n // The tokenizer will assume an expression is allowed after\n // `yield`\x2C but this isn't that kind of yield\n else { this.exprAllowed = false; }\n }\n\n var ownDestructuringErrors = false\x2C oldParenAssign = -1\x2C oldTrailingComma = -1;\n if (refDestructuringErrors) {\n oldParenAssign = refDestructuringErrors.parenthesizedAssign;\n oldTrailingComma = refDestructuringErrors.trailingComma;\n refDestructuringErrors.parenthesizedAssign = refDestructuringErrors.trailingComma = -1;\n } else {\n refDestructuringErrors = new DestructuringErrors;\n ownDestructuringErrors = true;\n }\n\n var startPos = this.start\x2C startLoc = this.startLoc;\n if (this.type === types.parenL || this.type === types.name) {\n this.potentialArrowAt = this.start;\n this.potentialArrowInForAwait = forInit === "await";\n }\n var left = this.parseMaybeConditional(forInit\x2C refDestructuringErrors);\n if (afterLeftParse) { left = afterLeftParse.call(this\x2C left\x2C startPos\x2C startLoc); }\n if (this.type.isAssign) {\n var node = this.startNodeAt(startPos\x2C startLoc);\n node.operator = this.value;\n if (this.type === types.eq)\n { left = this.toAssignable(left\x2C false\x2C refDestructuringErrors); }\n if (!ownDestructuringErrors) {\n refDestructuringErrors.parenthesizedAssign = refDestructuringErrors.trailingComma = refDestructuringErrors.doubleProto = -1;\n }\n if (refDestructuringErrors.shorthandAssign >= left.start)\n { refDestructuringErrors.shorthandAssign = -1; } // reset because shorthand default was used correctly\n if (this.type === types.eq)\n { this.checkLValPattern(left); }\n else\n { this.checkLValSimple(left); }\n node.left = left;\n this.next();\n node.right = this.parseMaybeAssign(forInit);\n return this.finishNode(node\x2C "AssignmentExpression")\n } else {\n if (ownDestructuringErrors) { this.checkExpressionErrors(refDestructuringErrors\x2C true); }\n }\n if (oldParenAssign > -1) { refDestructuringErrors.parenthesizedAssign = oldParenAssign; }\n if (oldTrailingComma > -1) { refDestructuringErrors.trailingComma = oldTrailingComma; }\n return left\n };\n\n // Parse a ternary conditional (`?:`) operator.\n\n pp$3.parseMaybeConditional = function(forInit\x2C refDestructuringErrors) {\n var startPos = this.start\x2C startLoc = this.startLoc;\n var expr = this.parseExprOps(forInit\x2C refDestructuringErrors);\n if (this.checkExpressionErrors(refDestructuringErrors)) { return expr }\n if (this.eat(types.question)) {\n var node = this.startNodeAt(startPos\x2C startLoc);\n node.test = expr;\n node.consequent = this.parseMaybeAssign();\n this.expect(types.colon);\n node.alternate = this.parseMaybeAssign(forInit);\n return this.finishNode(node\x2C "ConditionalExpression")\n }\n return expr\n };\n\n // Start the precedence parser.\n\n pp$3.parseExprOps = function(forInit\x2C refDestructuringErrors) {\n var startPos = this.start\x2C startLoc = this.startLoc;\n var expr = this.parseMaybeUnary(refDestructuringErrors\x2C false);\n if (this.checkExpressionErrors(refDestructuringErrors)) { return expr }\n return expr.start === startPos && expr.type === "ArrowFunctionExpression" ? expr : this.parseExprOp(expr\x2C startPos\x2C startLoc\x2C -1\x2C forInit)\n };\n\n // Parse binary operators with the operator precedence parsing\n // algorithm. `left` is the left-hand side of the operator.\n // `minPrec` provides context that allows the function to stop and\n // defer further parser to one of its callers when it encounters an\n // operator that has a lower precedence than the set it is parsing.\n\n pp$3.parseExprOp = function(left\x2C leftStartPos\x2C leftStartLoc\x2C minPrec\x2C forInit) {\n var prec = this.type.binop;\n if (prec != null && (!forInit || this.type !== types._in)) {\n if (prec > minPrec) {\n var logical = this.type === types.logicalOR || this.type === types.logicalAND;\n var coalesce = this.type === types.coalesce;\n if (coalesce) {\n // Handle the precedence of `tt.coalesce` as equal to the range of logical expressions.\n // In other words\x2C `node.right` shouldn't contain logical expressions in order to check the mixed error.\n prec = types.logicalAND.binop;\n }\n var op = this.value;\n this.next();\n var startPos = this.start\x2C startLoc = this.startLoc;\n var right = this.parseExprOp(this.parseMaybeUnary(null\x2C false)\x2C startPos\x2C startLoc\x2C prec\x2C forInit);\n var node = this.buildBinary(leftStartPos\x2C leftStartLoc\x2C left\x2C right\x2C op\x2C logical || coalesce);\n if ((logical && this.type === types.coalesce) || (coalesce && (this.type === types.logicalOR || this.type === types.logicalAND))) {\n this.raiseRecoverable(this.start\x2C "Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses");\n }\n return this.parseExprOp(node\x2C leftStartPos\x2C leftStartLoc\x2C minPrec\x2C forInit)\n }\n }\n return left\n };\n\n pp$3.buildBinary = function(startPos\x2C startLoc\x2C left\x2C right\x2C op\x2C logical) {\n var node = this.startNodeAt(startPos\x2C startLoc);\n node.left = left;\n node.operator = op;\n node.right = right;\n return this.finishNode(node\x2C logical ? "LogicalExpression" : "BinaryExpression")\n };\n\n // Parse unary operators\x2C both prefix and postfix.\n\n pp$3.parseMaybeUnary = function(refDestructuringErrors\x2C sawUnary\x2C incDec) {\n var startPos = this.start\x2C startLoc = this.startLoc\x2C expr;\n if (this.isContextual("await") && this.canAwait) {\n expr = this.parseAwait();\n sawUnary = true;\n } else if (this.type.prefix) {\n var node = this.startNode()\x2C update = this.type === types.incDec;\n node.operator = this.value;\n node.prefix = true;\n this.next();\n node.argument = this.parseMaybeUnary(null\x2C true\x2C update);\n this.checkExpressionErrors(refDestructuringErrors\x2C true);\n if (update) { this.checkLValSimple(node.argument); }\n else if (this.strict && node.operator === "delete" &&\n node.argument.type === "Identifier")\n { this.raiseRecoverable(node.start\x2C "Deleting local variable in strict mode"); }\n else if (node.operator === "delete" && isPrivateFieldAccess(node.argument))\n { this.raiseRecoverable(node.start\x2C "Private fields can not be deleted"); }\n else { sawUnary = true; }\n expr = this.finishNode(node\x2C update ? "UpdateExpression" : "UnaryExpression");\n } else {\n expr = this.parseExprSubscripts(refDestructuringErrors);\n if (this.checkExpressionErrors(refDestructuringErrors)) { return expr }\n while (this.type.postfix && !this.canInsertSemicolon()) {\n var node$1 = this.startNodeAt(startPos\x2C startLoc);\n node$1.operator = this.value;\n node$1.prefix = false;\n node$1.argument = expr;\n this.checkLValSimple(expr);\n this.next();\n expr = this.finishNode(node$1\x2C "UpdateExpression");\n }\n }\n\n if (!incDec && this.eat(types.starstar)) {\n if (sawUnary)\n { this.unexpected(this.lastTokStart); }\n else\n { return this.buildBinary(startPos\x2C startLoc\x2C expr\x2C this.parseMaybeUnary(null\x2C false)\x2C "**"\x2C false) }\n } else {\n return expr\n }\n };\n\n function isPrivateFieldAccess(node) {\n return (\n node.type === "MemberExpression" && node.property.type === "PrivateIdentifier" ||\n node.type === "ChainExpression" && isPrivateFieldAccess(node.expression)\n )\n }\n\n // Parse call\x2C dot\x2C and `[]`-subscript expressions.\n\n pp$3.parseExprSubscripts = function(refDestructuringErrors) {\n var startPos = this.start\x2C startLoc = this.startLoc;\n var expr = this.parseExprAtom(refDestructuringErrors);\n if (expr.type === "ArrowFunctionExpression" && this.input.slice(this.lastTokStart\x2C this.lastTokEnd) !== ")")\n { return expr }\n var result = this.parseSubscripts(expr\x2C startPos\x2C startLoc);\n if (refDestructuringErrors && result.type === "MemberExpression") {\n if (refDestructuringErrors.parenthesizedAssign >= result.start) { refDestructuringErrors.parenthesizedAssign = -1; }\n if (refDestructuringErrors.parenthesizedBind >= result.start) { refDestructuringErrors.parenthesizedBind = -1; }\n if (refDestructuringErrors.trailingComma >= result.start) { refDestructuringErrors.trailingComma = -1; }\n }\n return result\n };\n\n pp$3.parseSubscripts = function(base\x2C startPos\x2C startLoc\x2C noCalls) {\n var maybeAsyncArrow = this.options.ecmaVersion >= 8 && base.type === "Identifier" && base.name === "async" &&\n this.lastTokEnd === base.end && !this.canInsertSemicolon() && base.end - base.start === 5 &&\n this.potentialArrowAt === base.start;\n var optionalChained = false;\n\n while (true) {\n var element = this.parseSubscript(base\x2C startPos\x2C startLoc\x2C noCalls\x2C maybeAsyncArrow\x2C optionalChained);\n\n if (element.optional) { optionalChained = true; }\n if (element === base || element.type === "ArrowFunctionExpression") {\n if (optionalChained) {\n var chainNode = this.startNodeAt(startPos\x2C startLoc);\n chainNode.expression = element;\n element = this.finishNode(chainNode\x2C "ChainExpression");\n }\n return element\n }\n\n base = element;\n }\n };\n\n pp$3.parseSubscript = function(base\x2C startPos\x2C startLoc\x2C noCalls\x2C maybeAsyncArrow\x2C optionalChained) {\n var optionalSupported = this.options.ecmaVersion >= 11;\n var optional = optionalSupported && this.eat(types.questionDot);\n if (noCalls && optional) { this.raise(this.lastTokStart\x2C "Optional chaining cannot appear in the callee of new expressions"); }\n\n var computed = this.eat(types.bracketL);\n if (computed || (optional && this.type !== types.parenL && this.type !== types.backQuote) || this.eat(types.dot)) {\n var node = this.startNodeAt(startPos\x2C startLoc);\n node.object = base;\n if (computed) {\n node.property = this.parseExpression();\n this.expect(types.bracketR);\n } else if (this.type === types.privateId && base.type !== "Super") {\n node.property = this.parsePrivateIdent();\n } else {\n node.property = this.parseIdent(this.options.allowReserved !== "never");\n }\n node.computed = !!computed;\n if (optionalSupported) {\n node.optional = optional;\n }\n base = this.finishNode(node\x2C "MemberExpression");\n } else if (!noCalls && this.eat(types.parenL)) {\n var refDestructuringErrors = new DestructuringErrors\x2C oldYieldPos = this.yieldPos\x2C oldAwaitPos = this.awaitPos\x2C oldAwaitIdentPos = this.awaitIdentPos;\n this.yieldPos = 0;\n this.awaitPos = 0;\n this.awaitIdentPos = 0;\n var exprList = this.parseExprList(types.parenR\x2C this.options.ecmaVersion >= 8\x2C false\x2C refDestructuringErrors);\n if (maybeAsyncArrow && !optional && !this.canInsertSemicolon() && this.eat(types.arrow)) {\n this.checkPatternErrors(refDestructuringErrors\x2C false);\n this.checkYieldAwaitInDefaultParams();\n if (this.awaitIdentPos > 0)\n { this.raise(this.awaitIdentPos\x2C "Cannot use 'await' as identifier inside an async function"); }\n this.yieldPos = oldYieldPos;\n this.awaitPos = oldAwaitPos;\n this.awaitIdentPos = oldAwaitIdentPos;\n return this.parseArrowExpression(this.startNodeAt(startPos\x2C startLoc)\x2C exprList\x2C true)\n }\n this.checkExpressionErrors(refDestructuringErrors\x2C true);\n this.yieldPos = oldYieldPos || this.yieldPos;\n this.awaitPos = oldAwaitPos || this.awaitPos;\n this.awaitIdentPos = oldAwaitIdentPos || this.awaitIdentPos;\n var node$1 = this.startNodeAt(startPos\x2C startLoc);\n node$1.callee = base;\n node$1.arguments = exprList;\n if (optionalSupported) {\n node$1.optional = optional;\n }\n base = this.finishNode(node$1\x2C "CallExpression");\n } else if (this.type === types.backQuote) {\n if (optional || optionalChained) {\n this.raise(this.start\x2C "Optional chaining cannot appear in the tag of tagged template expressions");\n }\n var node$2 = this.startNodeAt(startPos\x2C startLoc);\n node$2.tag = base;\n node$2.quasi = this.parseTemplate({isTagged: true});\n base = this.finishNode(node$2\x2C "TaggedTemplateExpression");\n }\n return base\n };\n\n // Parse an atomic expression \u2014 either a single token that is an\n // expression\x2C an expression started by a keyword like `function` or\n // `new`\x2C or an expression wrapped in punctuation like `()`\x2C `[]`\x2C\n // or `{}`.\n\n pp$3.parseExprAtom = function(refDestructuringErrors) {\n // If a division operator appears in an expression position\x2C the\n // tokenizer got confused\x2C and we force it to read a regexp instead.\n if (this.type === types.slash) { this.readRegexp(); }\n\n var node\x2C canBeArrow = this.potentialArrowAt === this.start;\n switch (this.type) {\n case types._super:\n if (!this.allowSuper)\n { this.raise(this.start\x2C "'super' keyword outside a method"); }\n node = this.startNode();\n this.next();\n if (this.type === types.parenL && !this.allowDirectSuper)\n { this.raise(node.start\x2C "super() call outside constructor of a subclass"); }\n // The `super` keyword can appear at below:\n // SuperProperty:\n // super [ Expression ]\n // super . IdentifierName\n // SuperCall:\n // super ( Arguments )\n if (this.type !== types.dot && this.type !== types.bracketL && this.type !== types.parenL)\n { this.unexpected(); }\n return this.finishNode(node\x2C "Super")\n\n case types._this:\n node = this.startNode();\n this.next();\n return this.finishNode(node\x2C "ThisExpression")\n\n case types.name:\n var startPos = this.start\x2C startLoc = this.startLoc\x2C containsEsc = this.containsEsc;\n var id = this.parseIdent(false);\n if (this.options.ecmaVersion >= 8 && !containsEsc && id.name === "async" && !this.canInsertSemicolon() && this.eat(types._function))\n { return this.parseFunction(this.startNodeAt(startPos\x2C startLoc)\x2C 0\x2C false\x2C true) }\n if (canBeArrow && !this.canInsertSemicolon()) {\n if (this.eat(types.arrow))\n { return this.parseArrowExpression(this.startNodeAt(startPos\x2C startLoc)\x2C [id]\x2C false) }\n if (this.options.ecmaVersion >= 8 && id.name === "async" && this.type === types.name && !containsEsc &&\n (!this.potentialArrowInForAwait || this.value !== "of" || this.containsEsc)) {\n id = this.parseIdent(false);\n if (this.canInsertSemicolon() || !this.eat(types.arrow))\n { this.unexpected(); }\n return this.parseArrowExpression(this.startNodeAt(startPos\x2C startLoc)\x2C [id]\x2C true)\n }\n }\n return id\n\n case types.regexp:\n var value = this.value;\n node = this.parseLiteral(value.value);\n node.regex = {pattern: value.pattern\x2C flags: value.flags};\n return node\n\n case types.num: case types.string:\n return this.parseLiteral(this.value)\n\n case types._null: case types._true: case types._false:\n node = this.startNode();\n node.value = this.type === types._null ? null : this.type === types._true;\n node.raw = this.type.keyword;\n this.next();\n return this.finishNode(node\x2C "Literal")\n\n case types.parenL:\n var start = this.start\x2C expr = this.parseParenAndDistinguishExpression(canBeArrow);\n if (refDestructuringErrors) {\n if (refDestructuringErrors.parenthesizedAssign < 0 && !this.isSimpleAssignTarget(expr))\n { refDestructuringErrors.parenthesizedAssign = start; }\n if (refDestructuringErrors.parenthesizedBind < 0)\n { refDestructuringErrors.parenthesizedBind = start; }\n }\n return expr\n\n case types.bracketL:\n node = this.startNode();\n this.next();\n node.elements = this.parseExprList(types.bracketR\x2C true\x2C true\x2C refDestructuringErrors);\n return this.finishNode(node\x2C "ArrayExpression")\n\n case types.braceL:\n return this.parseObj(false\x2C refDestructuringErrors)\n\n case types._function:\n node = this.startNode();\n this.next();\n return this.parseFunction(node\x2C 0)\n\n case types._class:\n return this.parseClass(this.startNode()\x2C false)\n\n case types._new:\n return this.parseNew()\n\n case types.backQuote:\n return this.parseTemplate()\n\n case types._import:\n if (this.options.ecmaVersion >= 11) {\n return this.parseExprImport()\n } else {\n return this.unexpected()\n }\n\n default:\n this.unexpected();\n }\n };\n\n pp$3.parseExprImport = function() {\n var node = this.startNode();\n\n // Consume `import` as an identifier for `import.meta`.\n // Because `this.parseIdent(true)` doesn't check escape sequences\x2C it needs the check of `this.containsEsc`.\n if (this.containsEsc) { this.raiseRecoverable(this.start\x2C "Escape sequence in keyword import"); }\n var meta = this.parseIdent(true);\n\n switch (this.type) {\n case types.parenL:\n return this.parseDynamicImport(node)\n case types.dot:\n node.meta = meta;\n return this.parseImportMeta(node)\n default:\n this.unexpected();\n }\n };\n\n pp$3.parseDynamicImport = function(node) {\n this.next(); // skip `(`\n\n // Parse node.source.\n node.source = this.parseMaybeAssign();\n\n // Verify ending.\n if (!this.eat(types.parenR)) {\n var errorPos = this.start;\n if (this.eat(types.comma) && this.eat(types.parenR)) {\n this.raiseRecoverable(errorPos\x2C "Trailing comma is not allowed in import()");\n } else {\n this.unexpected(errorPos);\n }\n }\n\n return this.finishNode(node\x2C "ImportExpression")\n };\n\n pp$3.parseImportMeta = function(node) {\n this.next(); // skip `.`\n\n var containsEsc = this.containsEsc;\n node.property = this.parseIdent(true);\n\n if (node.property.name !== "meta")\n { this.raiseRecoverable(node.property.start\x2C "The only valid meta property for import is 'import.meta'"); }\n if (containsEsc)\n { this.raiseRecoverable(node.start\x2C "'import.meta' must not contain escaped characters"); }\n if (this.options.sourceType !== "module" && !this.options.allowImportExportEverywhere)\n { this.raiseRecoverable(node.start\x2C "Cannot use 'import.meta' outside a module"); }\n\n return this.finishNode(node\x2C "MetaProperty")\n };\n\n pp$3.parseLiteral = function(value) {\n var node = this.startNode();\n node.value = value;\n node.raw = this.input.slice(this.start\x2C this.end);\n if (node.raw.charCodeAt(node.raw.length - 1) === 110) { node.bigint = node.raw.slice(0\x2C -1).replace(/_/g\x2C ""); }\n this.next();\n return this.finishNode(node\x2C "Literal")\n };\n\n pp$3.parseParenExpression = function() {\n this.expect(types.parenL);\n var val = this.parseExpression();\n this.expect(types.parenR);\n return val\n };\n\n pp$3.parseParenAndDistinguishExpression = function(canBeArrow) {\n var startPos = this.start\x2C startLoc = this.startLoc\x2C val\x2C allowTrailingComma = this.options.ecmaVersion >= 8;\n if (this.options.ecmaVersion >= 6) {\n this.next();\n\n var innerStartPos = this.start\x2C innerStartLoc = this.startLoc;\n var exprList = []\x2C first = true\x2C lastIsComma = false;\n var refDestructuringErrors = new DestructuringErrors\x2C oldYieldPos = this.yieldPos\x2C oldAwaitPos = this.awaitPos\x2C spreadStart;\n this.yieldPos = 0;\n this.awaitPos = 0;\n // Do not save awaitIdentPos to allow checking awaits nested in parameters\n while (this.type !== types.parenR) {\n first ? first = false : this.expect(types.comma);\n if (allowTrailingComma && this.afterTrailingComma(types.parenR\x2C true)) {\n lastIsComma = true;\n break\n } else if (this.type === types.ellipsis) {\n spreadStart = this.start;\n exprList.push(this.parseParenItem(this.parseRestBinding()));\n if (this.type === types.comma) { this.raise(this.start\x2C "Comma is not permitted after the rest element"); }\n break\n } else {\n exprList.push(this.parseMaybeAssign(false\x2C refDestructuringErrors\x2C this.parseParenItem));\n }\n }\n var innerEndPos = this.start\x2C innerEndLoc = this.startLoc;\n this.expect(types.parenR);\n\n if (canBeArrow && !this.canInsertSemicolon() && this.eat(types.arrow)) {\n this.checkPatternErrors(refDestructuringErrors\x2C false);\n this.checkYieldAwaitInDefaultParams();\n this.yieldPos = oldYieldPos;\n this.awaitPos = oldAwaitPos;\n return this.parseParenArrowList(startPos\x2C startLoc\x2C exprList)\n }\n\n if (!exprList.length || lastIsComma) { this.unexpected(this.lastTokStart); }\n if (spreadStart) { this.unexpected(spreadStart); }\n this.checkExpressionErrors(refDestructuringErrors\x2C true);\n this.yieldPos = oldYieldPos || this.yieldPos;\n this.awaitPos = oldAwaitPos || this.awaitPos;\n\n if (exprList.length > 1) {\n val = this.startNodeAt(innerStartPos\x2C innerStartLoc);\n val.expressions = exprList;\n this.finishNodeAt(val\x2C "SequenceExpression"\x2C innerEndPos\x2C innerEndLoc);\n } else {\n val = exprList[0];\n }\n } else {\n val = this.parseParenExpression();\n }\n\n if (this.options.preserveParens) {\n var par = this.startNodeAt(startPos\x2C startLoc);\n par.expression = val;\n return this.finishNode(par\x2C "ParenthesizedExpression")\n } else {\n return val\n }\n };\n\n pp$3.parseParenItem = function(item) {\n return item\n };\n\n pp$3.parseParenArrowList = function(startPos\x2C startLoc\x2C exprList) {\n return this.parseArrowExpression(this.startNodeAt(startPos\x2C startLoc)\x2C exprList)\n };\n\n // New's precedence is slightly tricky. It must allow its argument to\n // be a `[]` or dot subscript expression\x2C but not a call \u2014 at least\x2C\n // not without wrapping it in parentheses. Thus\x2C it uses the noCalls\n // argument to parseSubscripts to prevent it from consuming the\n // argument list.\n\n var empty$1 = [];\n\n pp$3.parseNew = function() {\n if (this.containsEsc) { this.raiseRecoverable(this.start\x2C "Escape sequence in keyword new"); }\n var node = this.startNode();\n var meta = this.parseIdent(true);\n if (this.options.ecmaVersion >= 6 && this.eat(types.dot)) {\n node.meta = meta;\n var containsEsc = this.containsEsc;\n node.property = this.parseIdent(true);\n if (node.property.name !== "target")\n { this.raiseRecoverable(node.property.start\x2C "The only valid meta property for new is 'new.target'"); }\n if (containsEsc)\n { this.raiseRecoverable(node.start\x2C "'new.target' must not contain escaped characters"); }\n if (!this.inNonArrowFunction)\n { this.raiseRecoverable(node.start\x2C "'new.target' can only be used in functions"); }\n return this.finishNode(node\x2C "MetaProperty")\n }\n var startPos = this.start\x2C startLoc = this.startLoc\x2C isImport = this.type === types._import;\n node.callee = this.parseSubscripts(this.parseExprAtom()\x2C startPos\x2C startLoc\x2C true);\n if (isImport && node.callee.type === "ImportExpression") {\n this.raise(startPos\x2C "Cannot use new with import()");\n }\n if (this.eat(types.parenL)) { node.arguments = this.parseExprList(types.parenR\x2C this.options.ecmaVersion >= 8\x2C false); }\n else { node.arguments = empty$1; }\n return this.finishNode(node\x2C "NewExpression")\n };\n\n // Parse template expression.\n\n pp$3.parseTemplateElement = function(ref) {\n var isTagged = ref.isTagged;\n\n var elem = this.startNode();\n if (this.type === types.invalidTemplate) {\n if (!isTagged) {\n this.raiseRecoverable(this.start\x2C "Bad escape sequence in untagged template literal");\n }\n elem.value = {\n raw: this.value\x2C\n cooked: null\n };\n } else {\n elem.value = {\n raw: this.input.slice(this.start\x2C this.end).replace(/\\r\\n?/g\x2C "\\n")\x2C\n cooked: this.value\n };\n }\n this.next();\n elem.tail = this.type === types.backQuote;\n return this.finishNode(elem\x2C "TemplateElement")\n };\n\n pp$3.parseTemplate = function(ref) {\n if ( ref === void 0 ) ref = {};\n var isTagged = ref.isTagged; if ( isTagged === void 0 ) isTagged = false;\n\n var node = this.startNode();\n this.next();\n node.expressions = [];\n var curElt = this.parseTemplateElement({isTagged: isTagged});\n node.quasis = [curElt];\n while (!curElt.tail) {\n if (this.type === types.eof) { this.raise(this.pos\x2C "Unterminated template literal"); }\n this.expect(types.dollarBraceL);\n node.expressions.push(this.parseExpression());\n this.expect(types.braceR);\n node.quasis.push(curElt = this.parseTemplateElement({isTagged: isTagged}));\n }\n this.next();\n return this.finishNode(node\x2C "TemplateLiteral")\n };\n\n pp$3.isAsyncProp = function(prop) {\n return !prop.computed && prop.key.type === "Identifier" && prop.key.name === "async" &&\n (this.type === types.name || this.type === types.num || this.type === types.string || this.type === types.bracketL || this.type.keyword || (this.options.ecmaVersion >= 9 && this.type === types.star)) &&\n !lineBreak.test(this.input.slice(this.lastTokEnd\x2C this.start))\n };\n\n // Parse an object literal or binding pattern.\n\n pp$3.parseObj = function(isPattern\x2C refDestructuringErrors) {\n var node = this.startNode()\x2C first = true\x2C propHash = {};\n node.properties = [];\n this.next();\n while (!this.eat(types.braceR)) {\n if (!first) {\n this.expect(types.comma);\n if (this.options.ecmaVersion >= 5 && this.afterTrailingComma(types.braceR)) { break }\n } else { first = false; }\n\n var prop = this.parseProperty(isPattern\x2C refDestructuringErrors);\n if (!isPattern) { this.checkPropClash(prop\x2C propHash\x2C refDestructuringErrors); }\n node.properties.push(prop);\n }\n return this.finishNode(node\x2C isPattern ? "ObjectPattern" : "ObjectExpression")\n };\n\n pp$3.parseProperty = function(isPattern\x2C refDestructuringErrors) {\n var prop = this.startNode()\x2C isGenerator\x2C isAsync\x2C startPos\x2C startLoc;\n if (this.options.ecmaVersion >= 9 && this.eat(types.ellipsis)) {\n if (isPattern) {\n prop.argument = this.parseIdent(false);\n if (this.type === types.comma) {\n this.raise(this.start\x2C "Comma is not permitted after the rest element");\n }\n return this.finishNode(prop\x2C "RestElement")\n }\n // To disallow parenthesized identifier via `this.toAssignable()`.\n if (this.type === types.parenL && refDestructuringErrors) {\n if (refDestructuringErrors.parenthesizedAssign < 0) {\n refDestructuringErrors.parenthesizedAssign = this.start;\n }\n if (refDestructuringErrors.parenthesizedBind < 0) {\n refDestructuringErrors.parenthesizedBind = this.start;\n }\n }\n // Parse argument.\n prop.argument = this.parseMaybeAssign(false\x2C refDestructuringErrors);\n // To disallow trailing comma via `this.toAssignable()`.\n if (this.type === types.comma && refDestructuringErrors && refDestructuringErrors.trailingComma < 0) {\n refDestructuringErrors.trailingComma = this.start;\n }\n // Finish\n return this.finishNode(prop\x2C "SpreadElement")\n }\n if (this.options.ecmaVersion >= 6) {\n prop.method = false;\n prop.shorthand = false;\n if (isPattern || refDestructuringErrors) {\n startPos = this.start;\n startLoc = this.startLoc;\n }\n if (!isPattern)\n { isGenerator = this.eat(types.star); }\n }\n var containsEsc = this.containsEsc;\n this.parsePropertyName(prop);\n if (!isPattern && !containsEsc && this.options.ecmaVersion >= 8 && !isGenerator && this.isAsyncProp(prop)) {\n isAsync = true;\n isGenerator = this.options.ecmaVersion >= 9 && this.eat(types.star);\n this.parsePropertyName(prop\x2C refDestructuringErrors);\n } else {\n isAsync = false;\n }\n this.parsePropertyValue(prop\x2C isPattern\x2C isGenerator\x2C isAsync\x2C startPos\x2C startLoc\x2C refDestructuringErrors\x2C containsEsc);\n return this.finishNode(prop\x2C "Property")\n };\n\n pp$3.parsePropertyValue = function(prop\x2C isPattern\x2C isGenerator\x2C isAsync\x2C startPos\x2C startLoc\x2C refDestructuringErrors\x2C containsEsc) {\n if ((isGenerator || isAsync) && this.type === types.colon)\n { this.unexpected(); }\n\n if (this.eat(types.colon)) {\n prop.value = isPattern ? this.parseMaybeDefault(this.start\x2C this.startLoc) : this.parseMaybeAssign(false\x2C refDestructuringErrors);\n prop.kind = "init";\n } else if (this.options.ecmaVersion >= 6 && this.type === types.parenL) {\n if (isPattern) { this.unexpected(); }\n prop.kind = "init";\n prop.method = true;\n prop.value = this.parseMethod(isGenerator\x2C isAsync);\n } else if (!isPattern && !containsEsc &&\n this.options.ecmaVersion >= 5 && !prop.computed && prop.key.type === "Identifier" &&\n (prop.key.name === "get" || prop.key.name === "set") &&\n (this.type !== types.comma && this.type !== types.braceR && this.type !== types.eq)) {\n if (isGenerator || isAsync) { this.unexpected(); }\n prop.kind = prop.key.name;\n this.parsePropertyName(prop);\n prop.value = this.parseMethod(false);\n var paramCount = prop.kind === "get" ? 0 : 1;\n if (prop.value.params.length !== paramCount) {\n var start = prop.value.start;\n if (prop.kind === "get")\n { this.raiseRecoverable(start\x2C "getter should have no params"); }\n else\n { this.raiseRecoverable(start\x2C "setter should have exactly one param"); }\n } else {\n if (prop.kind === "set" && prop.value.params[0].type === "RestElement")\n { this.raiseRecoverable(prop.value.params[0].start\x2C "Setter cannot use rest params"); }\n }\n } else if (this.options.ecmaVersion >= 6 && !prop.computed && prop.key.type === "Identifier") {\n if (isGenerator || isAsync) { this.unexpected(); }\n this.checkUnreserved(prop.key);\n if (prop.key.name === "await" && !this.awaitIdentPos)\n { this.awaitIdentPos = startPos; }\n prop.kind = "init";\n if (isPattern) {\n prop.value = this.parseMaybeDefault(startPos\x2C startLoc\x2C this.copyNode(prop.key));\n } else if (this.type === types.eq && refDestructuringErrors) {\n if (refDestructuringErrors.shorthandAssign < 0)\n { refDestructuringErrors.shorthandAssign = this.start; }\n prop.value = this.parseMaybeDefault(startPos\x2C startLoc\x2C this.copyNode(prop.key));\n } else {\n prop.value = this.copyNode(prop.key);\n }\n prop.shorthand = true;\n } else { this.unexpected(); }\n };\n\n pp$3.parsePropertyName = function(prop) {\n if (this.options.ecmaVersion >= 6) {\n if (this.eat(types.bracketL)) {\n prop.computed = true;\n prop.key = this.parseMaybeAssign();\n this.expect(types.bracketR);\n return prop.key\n } else {\n prop.computed = false;\n }\n }\n return prop.key = this.type === types.num || this.type === types.string ? this.parseExprAtom() : this.parseIdent(this.options.allowReserved !== "never")\n };\n\n // Initialize empty function node.\n\n pp$3.initFunction = function(node) {\n node.id = null;\n if (this.options.ecmaVersion >= 6) { node.generator = node.expression = false; }\n if (this.options.ecmaVersion >= 8) { node.async = false; }\n };\n\n // Parse object or class method.\n\n pp$3.parseMethod = function(isGenerator\x2C isAsync\x2C allowDirectSuper) {\n var node = this.startNode()\x2C oldYieldPos = this.yieldPos\x2C oldAwaitPos = this.awaitPos\x2C oldAwaitIdentPos = this.awaitIdentPos;\n\n this.initFunction(node);\n if (this.options.ecmaVersion >= 6)\n { node.generator = isGenerator; }\n if (this.options.ecmaVersion >= 8)\n { node.async = !!isAsync; }\n\n this.yieldPos = 0;\n this.awaitPos = 0;\n this.awaitIdentPos = 0;\n this.enterScope(functionFlags(isAsync\x2C node.generator) | SCOPE_SUPER | (allowDirectSuper ? SCOPE_DIRECT_SUPER : 0));\n\n this.expect(types.parenL);\n node.params = this.parseBindingList(types.parenR\x2C false\x2C this.options.ecmaVersion >= 8);\n this.checkYieldAwaitInDefaultParams();\n this.parseFunctionBody(node\x2C false\x2C true);\n\n this.yieldPos = oldYieldPos;\n this.awaitPos = oldAwaitPos;\n this.awaitIdentPos = oldAwaitIdentPos;\n return this.finishNode(node\x2C "FunctionExpression")\n };\n\n // Parse arrow function expression with given parameters.\n\n pp$3.parseArrowExpression = function(node\x2C params\x2C isAsync) {\n var oldYieldPos = this.yieldPos\x2C oldAwaitPos = this.awaitPos\x2C oldAwaitIdentPos = this.awaitIdentPos;\n\n this.enterScope(functionFlags(isAsync\x2C false) | SCOPE_ARROW);\n this.initFunction(node);\n if (this.options.ecmaVersion >= 8) { node.async = !!isAsync; }\n\n this.yieldPos = 0;\n this.awaitPos = 0;\n this.awaitIdentPos = 0;\n\n node.params = this.toAssignableList(params\x2C true);\n this.parseFunctionBody(node\x2C true\x2C false);\n\n this.yieldPos = oldYieldPos;\n this.awaitPos = oldAwaitPos;\n this.awaitIdentPos = oldAwaitIdentPos;\n return this.finishNode(node\x2C "ArrowFunctionExpression")\n };\n\n // Parse function body and check parameters.\n\n pp$3.parseFunctionBody = function(node\x2C isArrowFunction\x2C isMethod) {\n var isExpression = isArrowFunction && this.type !== types.braceL;\n var oldStrict = this.strict\x2C useStrict = false;\n\n if (isExpression) {\n node.body = this.parseMaybeAssign();\n node.expression = true;\n this.checkParams(node\x2C false);\n } else {\n var nonSimple = this.options.ecmaVersion >= 7 && !this.isSimpleParamList(node.params);\n if (!oldStrict || nonSimple) {\n useStrict = this.strictDirective(this.end);\n // If this is a strict mode function\x2C verify that argument names\n // are not repeated\x2C and it does not try to bind the words `eval`\n // or `arguments`.\n if (useStrict && nonSimple)\n { this.raiseRecoverable(node.start\x2C "Illegal 'use strict' directive in function with non-simple parameter list"); }\n }\n // Start a new scope with regard to labels and the `inFunction`\n // flag (restore them to their old value afterwards).\n var oldLabels = this.labels;\n this.labels = [];\n if (useStrict) { this.strict = true; }\n\n // Add the params to varDeclaredNames to ensure that an error is thrown\n // if a let/const declaration in the function clashes with one of the params.\n this.checkParams(node\x2C !oldStrict && !useStrict && !isArrowFunction && !isMethod && this.isSimpleParamList(node.params));\n // Ensure the function name isn't a forbidden identifier in strict mode\x2C e.g. 'eval'\n if (this.strict && node.id) { this.checkLValSimple(node.id\x2C BIND_OUTSIDE); }\n node.body = this.parseBlock(false\x2C undefined\x2C useStrict && !oldStrict);\n node.expression = false;\n this.adaptDirectivePrologue(node.body.body);\n this.labels = oldLabels;\n }\n this.exitScope();\n };\n\n pp$3.isSimpleParamList = function(params) {\n for (var i = 0\x2C list = params; i < list.length; i += 1)\n {\n var param = list[i];\n\n if (param.type !== "Identifier") { return false\n } }\n return true\n };\n\n // Checks function params for various disallowed patterns such as using "eval"\n // or "arguments" and duplicate parameters.\n\n pp$3.checkParams = function(node\x2C allowDuplicates) {\n var nameHash = Object.create(null);\n for (var i = 0\x2C list = node.params; i < list.length; i += 1)\n {\n var param = list[i];\n\n this.checkLValInnerPattern(param\x2C BIND_VAR\x2C allowDuplicates ? null : nameHash);\n }\n };\n\n // Parses a comma-separated list of expressions\x2C and returns them as\n // an array. `close` is the token type that ends the list\x2C and\n // `allowEmpty` can be turned on to allow subsequent commas with\n // nothing in between them to be parsed as `null` (which is needed\n // for array literals).\n\n pp$3.parseExprList = function(close\x2C allowTrailingComma\x2C allowEmpty\x2C refDestructuringErrors) {\n var elts = []\x2C first = true;\n while (!this.eat(close)) {\n if (!first) {\n this.expect(types.comma);\n if (allowTrailingComma && this.afterTrailingComma(close)) { break }\n } else { first = false; }\n\n var elt = (void 0);\n if (allowEmpty && this.type === types.comma)\n { elt = null; }\n else if (this.type === types.ellipsis) {\n elt = this.parseSpread(refDestructuringErrors);\n if (refDestructuringErrors && this.type === types.comma && refDestructuringErrors.trailingComma < 0)\n { refDestructuringErrors.trailingComma = this.start; }\n } else {\n elt = this.parseMaybeAssign(false\x2C refDestructuringErrors);\n }\n elts.push(elt);\n }\n return elts\n };\n\n pp$3.checkUnreserved = function(ref) {\n var start = ref.start;\n var end = ref.end;\n var name = ref.name;\n\n if (this.inGenerator && name === "yield")\n { this.raiseRecoverable(start\x2C "Cannot use 'yield' as identifier inside a generator"); }\n if (this.inAsync && name === "await")\n { this.raiseRecoverable(start\x2C "Cannot use 'await' as identifier inside an async function"); }\n if (this.currentThisScope().inClassFieldInit && name === "arguments")\n { this.raiseRecoverable(start\x2C "Cannot use 'arguments' in class field initializer"); }\n if (this.keywords.test(name))\n { this.raise(start\x2C ("Unexpected keyword '" + name + "'")); }\n if (this.options.ecmaVersion < 6 &&\n this.input.slice(start\x2C end).indexOf("\\\\") !== -1) { return }\n var re = this.strict ? this.reservedWordsStrict : this.reservedWords;\n if (re.test(name)) {\n if (!this.inAsync && name === "await")\n { this.raiseRecoverable(start\x2C "Cannot use keyword 'await' outside an async function"); }\n this.raiseRecoverable(start\x2C ("The keyword '" + name + "' is reserved"));\n }\n };\n\n // Parse the next token as an identifier. If `liberal` is true (used\n // when parsing properties)\x2C it will also convert keywords into\n // identifiers.\n\n pp$3.parseIdent = function(liberal\x2C isBinding) {\n var node = this.startNode();\n if (this.type === types.name) {\n node.name = this.value;\n } else if (this.type.keyword) {\n node.name = this.type.keyword;\n\n // To fix https://github.com/acornjs/acorn/issues/575\n // `class` and `function` keywords push new context into this.context.\n // But there is no chance to pop the context if the keyword is consumed as an identifier such as a property name.\n // If the previous token is a dot\x2C this does not apply because the context-managing code already ignored the keyword\n if ((node.name === "class" || node.name === "function") &&\n (this.lastTokEnd !== this.lastTokStart + 1 || this.input.charCodeAt(this.lastTokStart) !== 46)) {\n this.context.pop();\n }\n } else {\n this.unexpected();\n }\n this.next(!!liberal);\n this.finishNode(node\x2C "Identifier");\n if (!liberal) {\n this.checkUnreserved(node);\n if (node.name === "await" && !this.awaitIdentPos)\n { this.awaitIdentPos = node.start; }\n }\n return node\n };\n\n pp$3.parsePrivateIdent = function() {\n var node = this.startNode();\n if (this.type === types.privateId) {\n node.name = this.value;\n } else {\n this.unexpected();\n }\n this.next();\n this.finishNode(node\x2C "PrivateIdentifier");\n\n // For validating existence\n if (this.privateNameStack.length === 0) {\n this.raise(node.start\x2C ("Private field '#" + (node.name) + "' must be declared in an enclosing class"));\n } else {\n this.privateNameStack[this.privateNameStack.length - 1].used.push(node);\n }\n\n return node\n };\n\n // Parses yield expression inside generator.\n\n pp$3.parseYield = function(forInit) {\n if (!this.yieldPos) { this.yieldPos = this.start; }\n\n var node = this.startNode();\n this.next();\n if (this.type === types.semi || this.canInsertSemicolon() || (this.type !== types.star && !this.type.startsExpr)) {\n node.delegate = false;\n node.argument = null;\n } else {\n node.delegate = this.eat(types.star);\n node.argument = this.parseMaybeAssign(forInit);\n }\n return this.finishNode(node\x2C "YieldExpression")\n };\n\n pp$3.parseAwait = function() {\n if (!this.awaitPos) { this.awaitPos = this.start; }\n\n var node = this.startNode();\n this.next();\n node.argument = this.parseMaybeUnary(null\x2C true);\n return this.finishNode(node\x2C "AwaitExpression")\n };\n\n var pp$4 = Parser.prototype;\n\n // This function is used to raise exceptions on parse errors. It\n // takes an offset integer (into the current `input`) to indicate\n // the location of the error\x2C attaches the position to the end\n // of the error message\x2C and then raises a `SyntaxError` with that\n // message.\n\n pp$4.raise = function(pos\x2C message) {\n var loc = getLineInfo(this.input\x2C pos);\n message += " (" + loc.line + ":" + loc.column + ")";\n var err = new SyntaxError(message);\n err.pos = pos; err.loc = loc; err.raisedAt = this.pos;\n throw err\n };\n\n pp$4.raiseRecoverable = pp$4.raise;\n\n pp$4.curPosition = function() {\n if (this.options.locations) {\n return new Position(this.curLine\x2C this.pos - this.lineStart)\n }\n };\n\n var pp$5 = Parser.prototype;\n\n var Scope = function Scope(flags) {\n this.flags = flags;\n // A list of var-declared names in the current lexical scope\n this.var = [];\n // A list of lexically-declared names in the current lexical scope\n this.lexical = [];\n // A list of lexically-declared FunctionDeclaration names in the current lexical scope\n this.functions = [];\n // A switch to disallow the identifier reference 'arguments'\n this.inClassFieldInit = false;\n };\n\n // The functions in this module keep track of declared variables in the current scope in order to detect duplicate variable names.\n\n pp$5.enterScope = function(flags) {\n this.scopeStack.push(new Scope(flags));\n };\n\n pp$5.exitScope = function() {\n this.scopeStack.pop();\n };\n\n // The spec says:\n // > At the top level of a function\x2C or script\x2C function declarations are\n // > treated like var declarations rather than like lexical declarations.\n pp$5.treatFunctionsAsVarInScope = function(scope) {\n return (scope.flags & SCOPE_FUNCTION) || !this.inModule && (scope.flags & SCOPE_TOP)\n };\n\n pp$5.declareName = function(name\x2C bindingType\x2C pos) {\n var redeclared = false;\n if (bindingType === BIND_LEXICAL) {\n var scope = this.currentScope();\n redeclared = scope.lexical.indexOf(name) > -1 || scope.functions.indexOf(name) > -1 || scope.var.indexOf(name) > -1;\n scope.lexical.push(name);\n if (this.inModule && (scope.flags & SCOPE_TOP))\n { delete this.undefinedExports[name]; }\n } else if (bindingType === BIND_SIMPLE_CATCH) {\n var scope$1 = this.currentScope();\n scope$1.lexical.push(name);\n } else if (bindingType === BIND_FUNCTION) {\n var scope$2 = this.currentScope();\n if (this.treatFunctionsAsVar)\n { redeclared = scope$2.lexical.indexOf(name) > -1; }\n else\n { redeclared = scope$2.lexical.indexOf(name) > -1 || scope$2.var.indexOf(name) > -1; }\n scope$2.functions.push(name);\n } else {\n for (var i = this.scopeStack.length - 1; i >= 0; --i) {\n var scope$3 = this.scopeStack[i];\n if (scope$3.lexical.indexOf(name) > -1 && !((scope$3.flags & SCOPE_SIMPLE_CATCH) && scope$3.lexical[0] === name) ||\n !this.treatFunctionsAsVarInScope(scope$3) && scope$3.functions.indexOf(name) > -1) {\n redeclared = true;\n break\n }\n scope$3.var.push(name);\n if (this.inModule && (scope$3.flags & SCOPE_TOP))\n { delete this.undefinedExports[name]; }\n if (scope$3.flags & SCOPE_VAR) { break }\n }\n }\n if (redeclared) { this.raiseRecoverable(pos\x2C ("Identifier '" + name + "' has already been declared")); }\n };\n\n pp$5.checkLocalExport = function(id) {\n // scope.functions must be empty as Module code is always strict.\n if (this.scopeStack[0].lexical.indexOf(id.name) === -1 &&\n this.scopeStack[0].var.indexOf(id.name) === -1) {\n this.undefinedExports[id.name] = id;\n }\n };\n\n pp$5.currentScope = function() {\n return this.scopeStack[this.scopeStack.length - 1]\n };\n\n pp$5.currentVarScope = function() {\n for (var i = this.scopeStack.length - 1;; i--) {\n var scope = this.scopeStack[i];\n if (scope.flags & SCOPE_VAR) { return scope }\n }\n };\n\n // Could be useful for `this`\x2C `new.target`\x2C `super()`\x2C `super.property`\x2C and `super[property]`.\n pp$5.currentThisScope = function() {\n for (var i = this.scopeStack.length - 1;; i--) {\n var scope = this.scopeStack[i];\n if (scope.flags & SCOPE_VAR && !(scope.flags & SCOPE_ARROW)) { return scope }\n }\n };\n\n var Node = function Node(parser\x2C pos\x2C loc) {\n this.type = "";\n this.start = pos;\n this.end = 0;\n if (parser.options.locations)\n { this.loc = new SourceLocation(parser\x2C loc); }\n if (parser.options.directSourceFile)\n { this.sourceFile = parser.options.directSourceFile; }\n if (parser.options.ranges)\n { this.range = [pos\x2C 0]; }\n };\n\n // Start an AST node\x2C attaching a start offset.\n\n var pp$6 = Parser.prototype;\n\n pp$6.startNode = function() {\n return new Node(this\x2C this.start\x2C this.startLoc)\n };\n\n pp$6.startNodeAt = function(pos\x2C loc) {\n return new Node(this\x2C pos\x2C loc)\n };\n\n // Finish an AST node\x2C adding `type` and `end` properties.\n\n function finishNodeAt(node\x2C type\x2C pos\x2C loc) {\n node.type = type;\n node.end = pos;\n if (this.options.locations)\n { node.loc.end = loc; }\n if (this.options.ranges)\n { node.range[1] = pos; }\n return node\n }\n\n pp$6.finishNode = function(node\x2C type) {\n return finishNodeAt.call(this\x2C node\x2C type\x2C this.lastTokEnd\x2C this.lastTokEndLoc)\n };\n\n // Finish node at given position\n\n pp$6.finishNodeAt = function(node\x2C type\x2C pos\x2C loc) {\n return finishNodeAt.call(this\x2C node\x2C type\x2C pos\x2C loc)\n };\n\n pp$6.copyNode = function(node) {\n var newNode = new Node(this\x2C node.start\x2C this.startLoc);\n for (var prop in node) { newNode[prop] = node[prop]; }\n return newNode\n };\n\n // The algorithm used to determine whether a regexp can appear at a\n\n var TokContext = function TokContext(token\x2C isExpr\x2C preserveSpace\x2C override\x2C generator) {\n this.token = token;\n this.isExpr = !!isExpr;\n this.preserveSpace = !!preserveSpace;\n this.override = override;\n this.generator = !!generator;\n };\n\n var types$1 = {\n b_stat: new TokContext("{"\x2C false)\x2C\n b_expr: new TokContext("{"\x2C true)\x2C\n b_tmpl: new TokContext("${"\x2C false)\x2C\n p_stat: new TokContext("("\x2C false)\x2C\n p_expr: new TokContext("("\x2C true)\x2C\n q_tmpl: new TokContext("`"\x2C true\x2C true\x2C function (p) { return p.tryReadTemplateToken(); })\x2C\n f_stat: new TokContext("function"\x2C false)\x2C\n f_expr: new TokContext("function"\x2C true)\x2C\n f_expr_gen: new TokContext("function"\x2C true\x2C false\x2C null\x2C true)\x2C\n f_gen: new TokContext("function"\x2C false\x2C false\x2C null\x2C true)\n };\n\n var pp$7 = Parser.prototype;\n\n pp$7.initialContext = function() {\n return [types$1.b_stat]\n };\n\n pp$7.braceIsBlock = function(prevType) {\n var parent = this.curContext();\n if (parent === types$1.f_expr || parent === types$1.f_stat)\n { return true }\n if (prevType === types.colon && (parent === types$1.b_stat || parent === types$1.b_expr))\n { return !parent.isExpr }\n\n // The check for `tt.name && exprAllowed` detects whether we are\n // after a `yield` or `of` construct. See the `updateContext` for\n // `tt.name`.\n if (prevType === types._return || prevType === types.name && this.exprAllowed)\n { return lineBreak.test(this.input.slice(this.lastTokEnd\x2C this.start)) }\n if (prevType === types._else || prevType === types.semi || prevType === types.eof || prevType === types.parenR || prevType === types.arrow)\n { return true }\n if (prevType === types.braceL)\n { return parent === types$1.b_stat }\n if (prevType === types._var || prevType === types._const || prevType === types.name)\n { return false }\n return !this.exprAllowed\n };\n\n pp$7.inGeneratorContext = function() {\n for (var i = this.context.length - 1; i >= 1; i--) {\n var context = this.context[i];\n if (context.token === "function")\n { return context.generator }\n }\n return false\n };\n\n pp$7.updateContext = function(prevType) {\n var update\x2C type = this.type;\n if (type.keyword && prevType === types.dot)\n { this.exprAllowed = false; }\n else if (update = type.updateContext)\n { update.call(this\x2C prevType); }\n else\n { this.exprAllowed = type.beforeExpr; }\n };\n\n // Token-specific context update code\n\n types.parenR.updateContext = types.braceR.updateContext = function() {\n if (this.context.length === 1) {\n this.exprAllowed = true;\n return\n }\n var out = this.context.pop();\n if (out === types$1.b_stat && this.curContext().token === "function") {\n out = this.context.pop();\n }\n this.exprAllowed = !out.isExpr;\n };\n\n types.braceL.updateContext = function(prevType) {\n this.context.push(this.braceIsBlock(prevType) ? types$1.b_stat : types$1.b_expr);\n this.exprAllowed = true;\n };\n\n types.dollarBraceL.updateContext = function() {\n this.context.push(types$1.b_tmpl);\n this.exprAllowed = true;\n };\n\n types.parenL.updateContext = function(prevType) {\n var statementParens = prevType === types._if || prevType === types._for || prevType === types._with || prevType === types._while;\n this.context.push(statementParens ? types$1.p_stat : types$1.p_expr);\n this.exprAllowed = true;\n };\n\n types.incDec.updateContext = function() {\n // tokExprAllowed stays unchanged\n };\n\n types._function.updateContext = types._class.updateContext = function(prevType) {\n if (prevType.beforeExpr && prevType !== types._else &&\n !(prevType === types.semi && this.curContext() !== types$1.p_stat) &&\n !(prevType === types._return && lineBreak.test(this.input.slice(this.lastTokEnd\x2C this.start))) &&\n !((prevType === types.colon || prevType === types.braceL) && this.curContext() === types$1.b_stat))\n { this.context.push(types$1.f_expr); }\n else\n { this.context.push(types$1.f_stat); }\n this.exprAllowed = false;\n };\n\n types.backQuote.updateContext = function() {\n if (this.curContext() === types$1.q_tmpl)\n { this.context.pop(); }\n else\n { this.context.push(types$1.q_tmpl); }\n this.exprAllowed = false;\n };\n\n types.star.updateContext = function(prevType) {\n if (prevType === types._function) {\n var index = this.context.length - 1;\n if (this.context[index] === types$1.f_expr)\n { this.context[index] = types$1.f_expr_gen; }\n else\n { this.context[index] = types$1.f_gen; }\n }\n this.exprAllowed = true;\n };\n\n types.name.updateContext = function(prevType) {\n var allowed = false;\n if (this.options.ecmaVersion >= 6 && prevType !== types.dot) {\n if (this.value === "of" && !this.exprAllowed ||\n this.value === "yield" && this.inGeneratorContext())\n { allowed = true; }\n }\n this.exprAllowed = allowed;\n };\n\n // This file contains Unicode properties extracted from the ECMAScript\n // specification. The lists are extracted like so:\n // $$('#table-binary-unicode-properties > figure > table > tbody > tr > td:nth-child(1) code').map(el => el.innerText)\n\n // #table-binary-unicode-properties\n var ecma9BinaryProperties = "ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS";\n var ecma10BinaryProperties = ecma9BinaryProperties + " Extended_Pictographic";\n var ecma11BinaryProperties = ecma10BinaryProperties;\n var ecma12BinaryProperties = ecma11BinaryProperties + " EBase EComp EMod EPres ExtPict";\n var unicodeBinaryProperties = {\n 9: ecma9BinaryProperties\x2C\n 10: ecma10BinaryProperties\x2C\n 11: ecma11BinaryProperties\x2C\n 12: ecma12BinaryProperties\n };\n\n // #table-unicode-general-category-values\n var unicodeGeneralCategoryValues = "Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu";\n\n // #table-unicode-script-values\n var ecma9ScriptValues = "Adlam Adlm Ahom Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb";\n var ecma10ScriptValues = ecma9ScriptValues + " Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd";\n var ecma11ScriptValues = ecma10ScriptValues + " Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho";\n var ecma12ScriptValues = ecma11ScriptValues + " Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi";\n var unicodeScriptValues = {\n 9: ecma9ScriptValues\x2C\n 10: ecma10ScriptValues\x2C\n 11: ecma11ScriptValues\x2C\n 12: ecma12ScriptValues\n };\n\n var data = {};\n function buildUnicodeData(ecmaVersion) {\n var d = data[ecmaVersion] = {\n binary: wordsRegexp(unicodeBinaryProperties[ecmaVersion] + " " + unicodeGeneralCategoryValues)\x2C\n nonBinary: {\n General_Category: wordsRegexp(unicodeGeneralCategoryValues)\x2C\n Script: wordsRegexp(unicodeScriptValues[ecmaVersion])\n }\n };\n d.nonBinary.Script_Extensions = d.nonBinary.Script;\n\n d.nonBinary.gc = d.nonBinary.General_Category;\n d.nonBinary.sc = d.nonBinary.Script;\n d.nonBinary.scx = d.nonBinary.Script_Extensions;\n }\n buildUnicodeData(9);\n buildUnicodeData(10);\n buildUnicodeData(11);\n buildUnicodeData(12);\n\n var pp$8 = Parser.prototype;\n\n var RegExpValidationState = function RegExpValidationState(parser) {\n this.parser = parser;\n this.validFlags = "gim" + (parser.options.ecmaVersion >= 6 ? "uy" : "") + (parser.options.ecmaVersion >= 9 ? "s" : "") + (parser.options.ecmaVersion >= 13 ? "d" : "");\n this.unicodeProperties = data[parser.options.ecmaVersion >= 12 ? 12 : parser.options.ecmaVersion];\n this.source = "";\n this.flags = "";\n this.start = 0;\n this.switchU = false;\n this.switchN = false;\n this.pos = 0;\n this.lastIntValue = 0;\n this.lastStringValue = "";\n this.lastAssertionIsQuantifiable = false;\n this.numCapturingParens = 0;\n this.maxBackReference = 0;\n this.groupNames = [];\n this.backReferenceNames = [];\n };\n\n RegExpValidationState.prototype.reset = function reset (start\x2C pattern\x2C flags) {\n var unicode = flags.indexOf("u") !== -1;\n this.start = start | 0;\n this.source = pattern + "";\n this.flags = flags;\n this.switchU = unicode && this.parser.options.ecmaVersion >= 6;\n this.switchN = unicode && this.parser.options.ecmaVersion >= 9;\n };\n\n RegExpValidationState.prototype.raise = function raise (message) {\n this.parser.raiseRecoverable(this.start\x2C ("Invalid regular expression: /" + (this.source) + "/: " + message));\n };\n\n // If u flag is given\x2C this returns the code point at the index (it combines a surrogate pair).\n // Otherwise\x2C this returns the code unit of the index (can be a part of a surrogate pair).\n RegExpValidationState.prototype.at = function at (i\x2C forceU) {\n if ( forceU === void 0 ) forceU = false;\n\n var s = this.source;\n var l = s.length;\n if (i >= l) {\n return -1\n }\n var c = s.charCodeAt(i);\n if (!(forceU || this.switchU) || c <= 0xD7FF || c >= 0xE000 || i + 1 >= l) {\n return c\n }\n var next = s.charCodeAt(i + 1);\n return next >= 0xDC00 && next <= 0xDFFF ? (c << 10) + next - 0x35FDC00 : c\n };\n\n RegExpValidationState.prototype.nextIndex = function nextIndex (i\x2C forceU) {\n if ( forceU === void 0 ) forceU = false;\n\n var s = this.source;\n var l = s.length;\n if (i >= l) {\n return l\n }\n var c = s.charCodeAt(i)\x2C next;\n if (!(forceU || this.switchU) || c <= 0xD7FF || c >= 0xE000 || i + 1 >= l ||\n (next = s.charCodeAt(i + 1)) < 0xDC00 || next > 0xDFFF) {\n return i + 1\n }\n return i + 2\n };\n\n RegExpValidationState.prototype.current = function current (forceU) {\n if ( forceU === void 0 ) forceU = false;\n\n return this.at(this.pos\x2C forceU)\n };\n\n RegExpValidationState.prototype.lookahead = function lookahead (forceU) {\n if ( forceU === void 0 ) forceU = false;\n\n return this.at(this.nextIndex(this.pos\x2C forceU)\x2C forceU)\n };\n\n RegExpValidationState.prototype.advance = function advance (forceU) {\n if ( forceU === void 0 ) forceU = false;\n\n this.pos = this.nextIndex(this.pos\x2C forceU);\n };\n\n RegExpValidationState.prototype.eat = function eat (ch\x2C forceU) {\n if ( forceU === void 0 ) forceU = false;\n\n if (this.current(forceU) === ch) {\n this.advance(forceU);\n return true\n }\n return false\n };\n\n function codePointToString(ch) {\n if (ch <= 0xFFFF) { return String.fromCharCode(ch) }\n ch -= 0x10000;\n return String.fromCharCode((ch >> 10) + 0xD800\x2C (ch & 0x03FF) + 0xDC00)\n }\n\n /**\n * Validate the flags part of a given RegExpLiteral.\n *\n * @param {RegExpValidationState} state The state to validate RegExp.\n * @returns {void}\n */\n pp$8.validateRegExpFlags = function(state) {\n var validFlags = state.validFlags;\n var flags = state.flags;\n\n for (var i = 0; i < flags.length; i++) {\n var flag = flags.charAt(i);\n if (validFlags.indexOf(flag) === -1) {\n this.raise(state.start\x2C "Invalid regular expression flag");\n }\n if (flags.indexOf(flag\x2C i + 1) > -1) {\n this.raise(state.start\x2C "Duplicate regular expression flag");\n }\n }\n };\n\n /**\n * Validate the pattern part of a given RegExpLiteral.\n *\n * @param {RegExpValidationState} state The state to validate RegExp.\n * @returns {void}\n */\n pp$8.validateRegExpPattern = function(state) {\n this.regexp_pattern(state);\n\n // The goal symbol for the parse is |Pattern[~U\x2C ~N]|. If the result of\n // parsing contains a |GroupName|\x2C reparse with the goal symbol\n // |Pattern[~U\x2C +N]| and use this result instead. Throw a *SyntaxError*\n // exception if _P_ did not conform to the grammar\x2C if any elements of _P_\n // were not matched by the parse\x2C or if any Early Error conditions exist.\n if (!state.switchN && this.options.ecmaVersion >= 9 && state.groupNames.length > 0) {\n state.switchN = true;\n this.regexp_pattern(state);\n }\n };\n\n // https://www.ecma-international.org/ecma-262/8.0/#prod-Pattern\n pp$8.regexp_pattern = function(state) {\n state.pos = 0;\n state.lastIntValue = 0;\n state.lastStringValue = "";\n state.lastAssertionIsQuantifiable = false;\n state.numCapturingParens = 0;\n state.maxBackReference = 0;\n state.groupNames.length = 0;\n state.backReferenceNames.length = 0;\n\n this.regexp_disjunction(state);\n\n if (state.pos !== state.source.length) {\n // Make the same messages as V8.\n if (state.eat(0x29 /* ) */)) {\n state.raise("Unmatched ')'");\n }\n if (state.eat(0x5D /* ] */) || state.eat(0x7D /* } */)) {\n state.raise("Lone quantifier brackets");\n }\n }\n if (state.maxBackReference > state.numCapturingParens) {\n state.raise("Invalid escape");\n }\n for (var i = 0\x2C list = state.backReferenceNames; i < list.length; i += 1) {\n var name = list[i];\n\n if (state.groupNames.indexOf(name) === -1) {\n state.raise("Invalid named capture referenced");\n }\n }\n };\n\n // https://www.ecma-international.org/ecma-262/8.0/#prod-Disjunction\n pp$8.regexp_disjunction = function(state) {\n this.regexp_alternative(state);\n while (state.eat(0x7C /* | */)) {\n this.regexp_alternative(state);\n }\n\n // Make the same message as V8.\n if (this.regexp_eatQuantifier(state\x2C true)) {\n state.raise("Nothing to repeat");\n }\n if (state.eat(0x7B /* { */)) {\n state.raise("Lone quantifier brackets");\n }\n };\n\n // https://www.ecma-international.org/ecma-262/8.0/#prod-Alternative\n pp$8.regexp_alternative = function(state) {\n while (state.pos < state.source.length && this.regexp_eatTerm(state))\n { }\n };\n\n // https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-Term\n pp$8.regexp_eatTerm = function(state) {\n if (this.regexp_eatAssertion(state)) {\n // Handle `QuantifiableAssertion Quantifier` alternative.\n // `state.lastAssertionIsQuantifiable` is true if the last eaten Assertion\n // is a QuantifiableAssertion.\n if (state.lastAssertionIsQuantifiable && this.regexp_eatQuantifier(state)) {\n // Make the same message as V8.\n if (state.switchU) {\n state.raise("Invalid quantifier");\n }\n }\n return true\n }\n\n if (state.switchU ? this.regexp_eatAtom(state) : this.regexp_eatExtendedAtom(state)) {\n this.regexp_eatQuantifier(state);\n return true\n }\n\n return false\n };\n\n // https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-Assertion\n pp$8.regexp_eatAssertion = function(state) {\n var start = state.pos;\n state.lastAssertionIsQuantifiable = false;\n\n // ^\x2C $\n if (state.eat(0x5E /* ^ */) || state.eat(0x24 /* $ */)) {\n return true\n }\n\n // \\b \\B\n if (state.eat(0x5C /* \\ */)) {\n if (state.eat(0x42 /* B */) || state.eat(0x62 /* b */)) {\n return true\n }\n state.pos = start;\n }\n\n // Lookahead / Lookbehind\n if (state.eat(0x28 /* ( */) && state.eat(0x3F /* ? */)) {\n var lookbehind = false;\n if (this.options.ecmaVersion >= 9) {\n lookbehind = state.eat(0x3C /* < */);\n }\n if (state.eat(0x3D /* = */) || state.eat(0x21 /* ! */)) {\n this.regexp_disjunction(state);\n if (!state.eat(0x29 /* ) */)) {\n state.raise("Unterminated group");\n }\n state.lastAssertionIsQuantifiable = !lookbehind;\n return true\n }\n }\n\n state.pos = start;\n return false\n };\n\n // https://www.ecma-international.org/ecma-262/8.0/#prod-Quantifier\n pp$8.regexp_eatQuantifier = function(state\x2C noError) {\n if ( noError === void 0 ) noError = false;\n\n if (this.regexp_eatQuantifierPrefix(state\x2C noError)) {\n state.eat(0x3F /* ? */);\n return true\n }\n return false\n };\n\n // https://www.ecma-international.org/ecma-262/8.0/#prod-QuantifierPrefix\n pp$8.regexp_eatQuantifierPrefix = function(state\x2C noError) {\n return (\n state.eat(0x2A /* * */) ||\n state.eat(0x2B /* + */) ||\n state.eat(0x3F /* ? */) ||\n this.regexp_eatBracedQuantifier(state\x2C noError)\n )\n };\n pp$8.regexp_eatBracedQuantifier = function(state\x2C noError) {\n var start = state.pos;\n if (state.eat(0x7B /* { */)) {\n var min = 0\x2C max = -1;\n if (this.regexp_eatDecimalDigits(state)) {\n min = state.lastIntValue;\n if (state.eat(0x2C /* \x2C */) && this.regexp_eatDecimalDigits(state)) {\n max = state.lastIntValue;\n }\n if (state.eat(0x7D /* } */)) {\n // SyntaxError in https://www.ecma-international.org/ecma-262/8.0/#sec-term\n if (max !== -1 && max < min && !noError) {\n state.raise("numbers out of order in {} quantifier");\n }\n return true\n }\n }\n if (state.switchU && !noError) {\n state.raise("Incomplete quantifier");\n }\n state.pos = start;\n }\n return false\n };\n\n // https://www.ecma-international.org/ecma-262/8.0/#prod-Atom\n pp$8.regexp_eatAtom = function(state) {\n return (\n this.regexp_eatPatternCharacters(state) ||\n state.eat(0x2E /* . */) ||\n this.regexp_eatReverseSolidusAtomEscape(state) ||\n this.regexp_eatCharacterClass(state) ||\n this.regexp_eatUncapturingGroup(state) ||\n this.regexp_eatCapturingGroup(state)\n )\n };\n pp$8.regexp_eatReverseSolidusAtomEscape = function(state) {\n var start = state.pos;\n if (state.eat(0x5C /* \\ */)) {\n if (this.regexp_eatAtomEscape(state)) {\n return true\n }\n state.pos = start;\n }\n return false\n };\n pp$8.regexp_eatUncapturingGroup = function(state) {\n var start = state.pos;\n if (state.eat(0x28 /* ( */)) {\n if (state.eat(0x3F /* ? */) && state.eat(0x3A /* : */)) {\n this.regexp_disjunction(state);\n if (state.eat(0x29 /* ) */)) {\n return true\n }\n state.raise("Unterminated group");\n }\n state.pos = start;\n }\n return false\n };\n pp$8.regexp_eatCapturingGroup = function(state) {\n if (state.eat(0x28 /* ( */)) {\n if (this.options.ecmaVersion >= 9) {\n this.regexp_groupSpecifier(state);\n } else if (state.current() === 0x3F /* ? */) {\n state.raise("Invalid group");\n }\n this.regexp_disjunction(state);\n if (state.eat(0x29 /* ) */)) {\n state.numCapturingParens += 1;\n return true\n }\n state.raise("Unterminated group");\n }\n return false\n };\n\n // https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-ExtendedAtom\n pp$8.regexp_eatExtendedAtom = function(state) {\n return (\n state.eat(0x2E /* . */) ||\n this.regexp_eatReverseSolidusAtomEscape(state) ||\n this.regexp_eatCharacterClass(state) ||\n this.regexp_eatUncapturingGroup(state) ||\n this.regexp_eatCapturingGroup(state) ||\n this.regexp_eatInvalidBracedQuantifier(state) ||\n this.regexp_eatExtendedPatternCharacter(state)\n )\n };\n\n // https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-InvalidBracedQuantifier\n pp$8.regexp_eatInvalidBracedQuantifier = function(state) {\n if (this.regexp_eatBracedQuantifier(state\x2C true)) {\n state.raise("Nothing to repeat");\n }\n return false\n };\n\n // https://www.ecma-international.org/ecma-262/8.0/#prod-SyntaxCharacter\n pp$8.regexp_eatSyntaxCharacter = function(state) {\n var ch = state.current();\n if (isSyntaxCharacter(ch)) {\n state.lastIntValue = ch;\n state.advance();\n return true\n }\n return false\n };\n function isSyntaxCharacter(ch) {\n return (\n ch === 0x24 /* $ */ ||\n ch >= 0x28 /* ( */ && ch <= 0x2B /* + */ ||\n ch === 0x2E /* . */ ||\n ch === 0x3F /* ? */ ||\n ch >= 0x5B /* [ */ && ch <= 0x5E /* ^ */ ||\n ch >= 0x7B /* { */ && ch <= 0x7D /* } */\n )\n }\n\n // https://www.ecma-international.org/ecma-262/8.0/#prod-PatternCharacter\n // But eat eager.\n pp$8.regexp_eatPatternCharacters = function(state) {\n var start = state.pos;\n var ch = 0;\n while ((ch = state.current()) !== -1 && !isSyntaxCharacter(ch)) {\n state.advance();\n }\n return state.pos !== start\n };\n\n // https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-ExtendedPatternCharacter\n pp$8.regexp_eatExtendedPatternCharacter = function(state) {\n var ch = state.current();\n if (\n ch !== -1 &&\n ch !== 0x24 /* $ */ &&\n !(ch >= 0x28 /* ( */ && ch <= 0x2B /* + */) &&\n ch !== 0x2E /* . */ &&\n ch !== 0x3F /* ? */ &&\n ch !== 0x5B /* [ */ &&\n ch !== 0x5E /* ^ */ &&\n ch !== 0x7C /* | */\n ) {\n state.advance();\n return true\n }\n return false\n };\n\n // GroupSpecifier ::\n // [empty]\n // `?` GroupName\n pp$8.regexp_groupSpecifier = function(state) {\n if (state.eat(0x3F /* ? */)) {\n if (this.regexp_eatGroupName(state)) {\n if (state.groupNames.indexOf(state.lastStringValue) !== -1) {\n state.raise("Duplicate capture group name");\n }\n state.groupNames.push(state.lastStringValue);\n return\n }\n state.raise("Invalid group");\n }\n };\n\n // GroupName ::\n // `<` RegExpIdentifierName `>`\n // Note: this updates `state.lastStringValue` property with the eaten name.\n pp$8.regexp_eatGroupName = function(state) {\n state.lastStringValue = "";\n if (state.eat(0x3C /* < */)) {\n if (this.regexp_eatRegExpIdentifierName(state) && state.eat(0x3E /* > */)) {\n return true\n }\n state.raise("Invalid capture group name");\n }\n return false\n };\n\n // RegExpIdentifierName ::\n // RegExpIdentifierStart\n // RegExpIdentifierName RegExpIdentifierPart\n // Note: this updates `state.lastStringValue` property with the eaten name.\n pp$8.regexp_eatRegExpIdentifierName = function(state) {\n state.lastStringValue = "";\n if (this.regexp_eatRegExpIdentifierStart(state)) {\n state.lastStringValue += codePointToString(state.lastIntValue);\n while (this.regexp_eatRegExpIdentifierPart(state)) {\n state.lastStringValue += codePointToString(state.lastIntValue);\n }\n return true\n }\n return false\n };\n\n // RegExpIdentifierStart ::\n // UnicodeIDStart\n // `$`\n // `_`\n // `\\` RegExpUnicodeEscapeSequence[+U]\n pp$8.regexp_eatRegExpIdentifierStart = function(state) {\n var start = state.pos;\n var forceU = this.options.ecmaVersion >= 11;\n var ch = state.current(forceU);\n state.advance(forceU);\n\n if (ch === 0x5C /* \\ */ && this.regexp_eatRegExpUnicodeEscapeSequence(state\x2C forceU)) {\n ch = state.lastIntValue;\n }\n if (isRegExpIdentifierStart(ch)) {\n state.lastIntValue = ch;\n return true\n }\n\n state.pos = start;\n return false\n };\n function isRegExpIdentifierStart(ch) {\n return isIdentifierStart(ch\x2C true) || ch === 0x24 /* $ */ || ch === 0x5F /* _ */\n }\n\n // RegExpIdentifierPart ::\n // UnicodeIDContinue\n // `$`\n // `_`\n // `\\` RegExpUnicodeEscapeSequence[+U]\n // <ZWNJ>\n // <ZWJ>\n pp$8.regexp_eatRegExpIdentifierPart = function(state) {\n var start = state.pos;\n var forceU = this.options.ecmaVersion >= 11;\n var ch = state.current(forceU);\n state.advance(forceU);\n\n if (ch === 0x5C /* \\ */ && this.regexp_eatRegExpUnicodeEscapeSequence(state\x2C forceU)) {\n ch = state.lastIntValue;\n }\n if (isRegExpIdentifierPart(ch)) {\n state.lastIntValue = ch;\n return true\n }\n\n state.pos = start;\n return false\n };\n function isRegExpIdentifierPart(ch) {\n return isIdentifierChar(ch\x2C true) || ch === 0x24 /* $ */ || ch === 0x5F /* _ */ || ch === 0x200C /* <ZWNJ> */ || ch === 0x200D /* <ZWJ> */\n }\n\n // https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-AtomEscape\n pp$8.regexp_eatAtomEscape = function(state) {\n if (\n this.regexp_eatBackReference(state) ||\n this.regexp_eatCharacterClassEscape(state) ||\n this.regexp_eatCharacterEscape(state) ||\n (state.switchN && this.regexp_eatKGroupName(state))\n ) {\n return true\n }\n if (state.switchU) {\n // Make the same message as V8.\n if (state.current() === 0x63 /* c */) {\n state.raise("Invalid unicode escape");\n }\n state.raise("Invalid escape");\n }\n return false\n };\n pp$8.regexp_eatBackReference = function(state) {\n var start = state.pos;\n if (this.regexp_eatDecimalEscape(state)) {\n var n = state.lastIntValue;\n if (state.switchU) {\n // For SyntaxError in https://www.ecma-international.org/ecma-262/8.0/#sec-atomescape\n if (n > state.maxBackReference) {\n state.maxBackReference = n;\n }\n return true\n }\n if (n <= state.numCapturingParens) {\n return true\n }\n state.pos = start;\n }\n return false\n };\n pp$8.regexp_eatKGroupName = function(state) {\n if (state.eat(0x6B /* k */)) {\n if (this.regexp_eatGroupName(state)) {\n state.backReferenceNames.push(state.lastStringValue);\n return true\n }\n state.raise("Invalid named reference");\n }\n return false\n };\n\n // https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-CharacterEscape\n pp$8.regexp_eatCharacterEscape = function(state) {\n return (\n this.regexp_eatControlEscape(state) ||\n this.regexp_eatCControlLetter(state) ||\n this.regexp_eatZero(state) ||\n this.regexp_eatHexEscapeSequence(state) ||\n this.regexp_eatRegExpUnicodeEscapeSequence(state\x2C false) ||\n (!state.switchU && this.regexp_eatLegacyOctalEscapeSequence(state)) ||\n this.regexp_eatIdentityEscape(state)\n )\n };\n pp$8.regexp_eatCControlLetter = function(state) {\n var start = state.pos;\n if (state.eat(0x63 /* c */)) {\n if (this.regexp_eatControlLetter(state)) {\n return true\n }\n state.pos = start;\n }\n return false\n };\n pp$8.regexp_eatZero = function(state) {\n if (state.current() === 0x30 /* 0 */ && !isDecimalDigit(state.lookahead())) {\n state.lastIntValue = 0;\n state.advance();\n return true\n }\n return false\n };\n\n // https://www.ecma-international.org/ecma-262/8.0/#prod-ControlEscape\n pp$8.regexp_eatControlEscape = function(state) {\n var ch = state.current();\n if (ch === 0x74 /* t */) {\n state.lastIntValue = 0x09; /* \\t */\n state.advance();\n return true\n }\n if (ch === 0x6E /* n */) {\n state.lastIntValue = 0x0A; /* \\n */\n state.advance();\n return true\n }\n if (ch === 0x76 /* v */) {\n state.lastIntValue = 0x0B; /* \\v */\n state.advance();\n return true\n }\n if (ch === 0x66 /* f */) {\n state.lastIntValue = 0x0C; /* \\f */\n state.advance();\n return true\n }\n if (ch === 0x72 /* r */) {\n state.lastIntValue = 0x0D; /* \\r */\n state.advance();\n return true\n }\n return false\n };\n\n // https://www.ecma-international.org/ecma-262/8.0/#prod-ControlLetter\n pp$8.regexp_eatControlLetter = function(state) {\n var ch = state.current();\n if (isControlLetter(ch)) {\n state.lastIntValue = ch % 0x20;\n state.advance();\n return true\n }\n return false\n };\n function isControlLetter(ch) {\n return (\n (ch >= 0x41 /* A */ && ch <= 0x5A /* Z */) ||\n (ch >= 0x61 /* a */ && ch <= 0x7A /* z */)\n )\n }\n\n // https://www.ecma-international.org/ecma-262/8.0/#prod-RegExpUnicodeEscapeSequence\n pp$8.regexp_eatRegExpUnicodeEscapeSequence = function(state\x2C forceU) {\n if ( forceU === void 0 ) forceU = false;\n\n var start = state.pos;\n var switchU = forceU || state.switchU;\n\n if (state.eat(0x75 /* u */)) {\n if (this.regexp_eatFixedHexDigits(state\x2C 4)) {\n var lead = state.lastIntValue;\n if (switchU && lead >= 0xD800 && lead <= 0xDBFF) {\n var leadSurrogateEnd = state.pos;\n if (state.eat(0x5C /* \\ */) && state.eat(0x75 /* u */) && this.regexp_eatFixedHexDigits(state\x2C 4)) {\n var trail = state.lastIntValue;\n if (trail >= 0xDC00 && trail <= 0xDFFF) {\n state.lastIntValue = (lead - 0xD800) * 0x400 + (trail - 0xDC00) + 0x10000;\n return true\n }\n }\n state.pos = leadSurrogateEnd;\n state.lastIntValue = lead;\n }\n return true\n }\n if (\n switchU &&\n state.eat(0x7B /* { */) &&\n this.regexp_eatHexDigits(state) &&\n state.eat(0x7D /* } */) &&\n isValidUnicode(state.lastIntValue)\n ) {\n return true\n }\n if (switchU) {\n state.raise("Invalid unicode escape");\n }\n state.pos = start;\n }\n\n return false\n };\n function isValidUnicode(ch) {\n return ch >= 0 && ch <= 0x10FFFF\n }\n\n // https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-IdentityEscape\n pp$8.regexp_eatIdentityEscape = function(state) {\n if (state.switchU) {\n if (this.regexp_eatSyntaxCharacter(state)) {\n return true\n }\n if (state.eat(0x2F /* / */)) {\n state.lastIntValue = 0x2F; /* / */\n return true\n }\n return false\n }\n\n var ch = state.current();\n if (ch !== 0x63 /* c */ && (!state.switchN || ch !== 0x6B /* k */)) {\n state.lastIntValue = ch;\n state.advance();\n return true\n }\n\n return false\n };\n\n // https://www.ecma-international.org/ecma-262/8.0/#prod-DecimalEscape\n pp$8.regexp_eatDecimalEscape = function(state) {\n state.lastIntValue = 0;\n var ch = state.current();\n if (ch >= 0x31 /* 1 */ && ch <= 0x39 /* 9 */) {\n do {\n state.lastIntValue = 10 * state.lastIntValue + (ch - 0x30 /* 0 */);\n state.advance();\n } while ((ch = state.current()) >= 0x30 /* 0 */ && ch <= 0x39 /* 9 */)\n return true\n }\n return false\n };\n\n // https://www.ecma-international.org/ecma-262/8.0/#prod-CharacterClassEscape\n pp$8.regexp_eatCharacterClassEscape = function(state) {\n var ch = state.current();\n\n if (isCharacterClassEscape(ch)) {\n state.lastIntValue = -1;\n state.advance();\n return true\n }\n\n if (\n state.switchU &&\n this.options.ecmaVersion >= 9 &&\n (ch === 0x50 /* P */ || ch === 0x70 /* p */)\n ) {\n state.lastIntValue = -1;\n state.advance();\n if (\n state.eat(0x7B /* { */) &&\n this.regexp_eatUnicodePropertyValueExpression(state) &&\n state.eat(0x7D /* } */)\n ) {\n return true\n }\n state.raise("Invalid property name");\n }\n\n return false\n };\n function isCharacterClassEscape(ch) {\n return (\n ch === 0x64 /* d */ ||\n ch === 0x44 /* D */ ||\n ch === 0x73 /* s */ ||\n ch === 0x53 /* S */ ||\n ch === 0x77 /* w */ ||\n ch === 0x57 /* W */\n )\n }\n\n // UnicodePropertyValueExpression ::\n // UnicodePropertyName `=` UnicodePropertyValue\n // LoneUnicodePropertyNameOrValue\n pp$8.regexp_eatUnicodePropertyValueExpression = function(state) {\n var start = state.pos;\n\n // UnicodePropertyName `=` UnicodePropertyValue\n if (this.regexp_eatUnicodePropertyName(state) && state.eat(0x3D /* = */)) {\n var name = state.lastStringValue;\n if (this.regexp_eatUnicodePropertyValue(state)) {\n var value = state.lastStringValue;\n this.regexp_validateUnicodePropertyNameAndValue(state\x2C name\x2C value);\n return true\n }\n }\n state.pos = start;\n\n // LoneUnicodePropertyNameOrValue\n if (this.regexp_eatLoneUnicodePropertyNameOrValue(state)) {\n var nameOrValue = state.lastStringValue;\n this.regexp_validateUnicodePropertyNameOrValue(state\x2C nameOrValue);\n return true\n }\n return false\n };\n pp$8.regexp_validateUnicodePropertyNameAndValue = function(state\x2C name\x2C value) {\n if (!has(state.unicodeProperties.nonBinary\x2C name))\n { state.raise("Invalid property name"); }\n if (!state.unicodeProperties.nonBinary[name].test(value))\n { state.raise("Invalid property value"); }\n };\n pp$8.regexp_validateUnicodePropertyNameOrValue = function(state\x2C nameOrValue) {\n if (!state.unicodeProperties.binary.test(nameOrValue))\n { state.raise("Invalid property name"); }\n };\n\n // UnicodePropertyName ::\n // UnicodePropertyNameCharacters\n pp$8.regexp_eatUnicodePropertyName = function(state) {\n var ch = 0;\n state.lastStringValue = "";\n while (isUnicodePropertyNameCharacter(ch = state.current())) {\n state.lastStringValue += codePointToString(ch);\n state.advance();\n }\n return state.lastStringValue !== ""\n };\n function isUnicodePropertyNameCharacter(ch) {\n return isControlLetter(ch) || ch === 0x5F /* _ */\n }\n\n // UnicodePropertyValue ::\n // UnicodePropertyValueCharacters\n pp$8.regexp_eatUnicodePropertyValue = function(state) {\n var ch = 0;\n state.lastStringValue = "";\n while (isUnicodePropertyValueCharacter(ch = state.current())) {\n state.lastStringValue += codePointToString(ch);\n state.advance();\n }\n return state.lastStringValue !== ""\n };\n function isUnicodePropertyValueCharacter(ch) {\n return isUnicodePropertyNameCharacter(ch) || isDecimalDigit(ch)\n }\n\n // LoneUnicodePropertyNameOrValue ::\n // UnicodePropertyValueCharacters\n pp$8.regexp_eatLoneUnicodePropertyNameOrValue = function(state) {\n return this.regexp_eatUnicodePropertyValue(state)\n };\n\n // https://www.ecma-international.org/ecma-262/8.0/#prod-CharacterClass\n pp$8.regexp_eatCharacterClass = function(state) {\n if (state.eat(0x5B /* [ */)) {\n state.eat(0x5E /* ^ */);\n this.regexp_classRanges(state);\n if (state.eat(0x5D /* ] */)) {\n return true\n }\n // Unreachable since it threw "unterminated regular expression" error before.\n state.raise("Unterminated character class");\n }\n return false\n };\n\n // https://www.ecma-international.org/ecma-262/8.0/#prod-ClassRanges\n // https://www.ecma-international.org/ecma-262/8.0/#prod-NonemptyClassRanges\n // https://www.ecma-international.org/ecma-262/8.0/#prod-NonemptyClassRangesNoDash\n pp$8.regexp_classRanges = function(state) {\n while (this.regexp_eatClassAtom(state)) {\n var left = state.lastIntValue;\n if (state.eat(0x2D /* - */) && this.regexp_eatClassAtom(state)) {\n var right = state.lastIntValue;\n if (state.switchU && (left === -1 || right === -1)) {\n state.raise("Invalid character class");\n }\n if (left !== -1 && right !== -1 && left > right) {\n state.raise("Range out of order in character class");\n }\n }\n }\n };\n\n // https://www.ecma-international.org/ecma-262/8.0/#prod-ClassAtom\n // https://www.ecma-international.org/ecma-262/8.0/#prod-ClassAtomNoDash\n pp$8.regexp_eatClassAtom = function(state) {\n var start = state.pos;\n\n if (state.eat(0x5C /* \\ */)) {\n if (this.regexp_eatClassEscape(state)) {\n return true\n }\n if (state.switchU) {\n // Make the same message as V8.\n var ch$1 = state.current();\n if (ch$1 === 0x63 /* c */ || isOctalDigit(ch$1)) {\n state.raise("Invalid class escape");\n }\n state.raise("Invalid escape");\n }\n state.pos = start;\n }\n\n var ch = state.current();\n if (ch !== 0x5D /* ] */) {\n state.lastIntValue = ch;\n state.advance();\n return true\n }\n\n return false\n };\n\n // https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-ClassEscape\n pp$8.regexp_eatClassEscape = function(state) {\n var start = state.pos;\n\n if (state.eat(0x62 /* b */)) {\n state.lastIntValue = 0x08; /* <BS> */\n return true\n }\n\n if (state.switchU && state.eat(0x2D /* - */)) {\n state.lastIntValue = 0x2D; /* - */\n return true\n }\n\n if (!state.switchU && state.eat(0x63 /* c */)) {\n if (this.regexp_eatClassControlLetter(state)) {\n return true\n }\n state.pos = start;\n }\n\n return (\n this.regexp_eatCharacterClassEscape(state) ||\n this.regexp_eatCharacterEscape(state)\n )\n };\n\n // https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-ClassControlLetter\n pp$8.regexp_eatClassControlLetter = function(state) {\n var ch = state.current();\n if (isDecimalDigit(ch) || ch === 0x5F /* _ */) {\n state.lastIntValue = ch % 0x20;\n state.advance();\n return true\n }\n return false\n };\n\n // https://www.ecma-international.org/ecma-262/8.0/#prod-HexEscapeSequence\n pp$8.regexp_eatHexEscapeSequence = function(state) {\n var start = state.pos;\n if (state.eat(0x78 /* x */)) {\n if (this.regexp_eatFixedHexDigits(state\x2C 2)) {\n return true\n }\n if (state.switchU) {\n state.raise("Invalid escape");\n }\n state.pos = start;\n }\n return false\n };\n\n // https://www.ecma-international.org/ecma-262/8.0/#prod-DecimalDigits\n pp$8.regexp_eatDecimalDigits = function(state) {\n var start = state.pos;\n var ch = 0;\n state.lastIntValue = 0;\n while (isDecimalDigit(ch = state.current())) {\n state.lastIntValue = 10 * state.lastIntValue + (ch - 0x30 /* 0 */);\n state.advance();\n }\n return state.pos !== start\n };\n function isDecimalDigit(ch) {\n return ch >= 0x30 /* 0 */ && ch <= 0x39 /* 9 */\n }\n\n // https://www.ecma-international.org/ecma-262/8.0/#prod-HexDigits\n pp$8.regexp_eatHexDigits = function(state) {\n var start = state.pos;\n var ch = 0;\n state.lastIntValue = 0;\n while (isHexDigit(ch = state.current())) {\n state.lastIntValue = 16 * state.lastIntValue + hexToInt(ch);\n state.advance();\n }\n return state.pos !== start\n };\n function isHexDigit(ch) {\n return (\n (ch >= 0x30 /* 0 */ && ch <= 0x39 /* 9 */) ||\n (ch >= 0x41 /* A */ && ch <= 0x46 /* F */) ||\n (ch >= 0x61 /* a */ && ch <= 0x66 /* f */)\n )\n }\n function hexToInt(ch) {\n if (ch >= 0x41 /* A */ && ch <= 0x46 /* F */) {\n return 10 + (ch - 0x41 /* A */)\n }\n if (ch >= 0x61 /* a */ && ch <= 0x66 /* f */) {\n return 10 + (ch - 0x61 /* a */)\n }\n return ch - 0x30 /* 0 */\n }\n\n // https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-LegacyOctalEscapeSequence\n // Allows only 0-377(octal) i.e. 0-255(decimal).\n pp$8.regexp_eatLegacyOctalEscapeSequence = function(state) {\n if (this.regexp_eatOctalDigit(state)) {\n var n1 = state.lastIntValue;\n if (this.regexp_eatOctalDigit(state)) {\n var n2 = state.lastIntValue;\n if (n1 <= 3 && this.regexp_eatOctalDigit(state)) {\n state.lastIntValue = n1 * 64 + n2 * 8 + state.lastIntValue;\n } else {\n state.lastIntValue = n1 * 8 + n2;\n }\n } else {\n state.lastIntValue = n1;\n }\n return true\n }\n return false\n };\n\n // https://www.ecma-international.org/ecma-262/8.0/#prod-OctalDigit\n pp$8.regexp_eatOctalDigit = function(state) {\n var ch = state.current();\n if (isOctalDigit(ch)) {\n state.lastIntValue = ch - 0x30; /* 0 */\n state.advance();\n return true\n }\n state.lastIntValue = 0;\n return false\n };\n function isOctalDigit(ch) {\n return ch >= 0x30 /* 0 */ && ch <= 0x37 /* 7 */\n }\n\n // https://www.ecma-international.org/ecma-262/8.0/#prod-Hex4Digits\n // https://www.ecma-international.org/ecma-262/8.0/#prod-HexDigit\n // And HexDigit HexDigit in https://www.ecma-international.org/ecma-262/8.0/#prod-HexEscapeSequence\n pp$8.regexp_eatFixedHexDigits = function(state\x2C length) {\n var start = state.pos;\n state.lastIntValue = 0;\n for (var i = 0; i < length; ++i) {\n var ch = state.current();\n if (!isHexDigit(ch)) {\n state.pos = start;\n return false\n }\n state.lastIntValue = 16 * state.lastIntValue + hexToInt(ch);\n state.advance();\n }\n return true\n };\n\n // Object type used to represent tokens. Note that normally\x2C tokens\n // simply exist as properties on the parser object. This is only\n // used for the onToken callback and the external tokenizer.\n\n var Token = function Token(p) {\n this.type = p.type;\n this.value = p.value;\n this.start = p.start;\n this.end = p.end;\n if (p.options.locations)\n { this.loc = new SourceLocation(p\x2C p.startLoc\x2C p.endLoc); }\n if (p.options.ranges)\n { this.range = [p.start\x2C p.end]; }\n };\n\n // ## Tokenizer\n\n var pp$9 = Parser.prototype;\n\n // Move to the next token\n\n pp$9.next = function(ignoreEscapeSequenceInKeyword) {\n if (!ignoreEscapeSequenceInKeyword && this.type.keyword && this.containsEsc)\n { this.raiseRecoverable(this.start\x2C "Escape sequence in keyword " + this.type.keyword); }\n if (this.options.onToken)\n { this.options.onToken(new Token(this)); }\n\n this.lastTokEnd = this.end;\n this.lastTokStart = this.start;\n this.lastTokEndLoc = this.endLoc;\n this.lastTokStartLoc = this.startLoc;\n this.nextToken();\n };\n\n pp$9.getToken = function() {\n this.next();\n return new Token(this)\n };\n\n // If we're in an ES6 environment\x2C make parsers iterable\n if (typeof Symbol !== "undefined")\n { pp$9[Symbol.iterator] = function() {\n var this$1 = this;\n\n return {\n next: function () {\n var token = this$1.getToken();\n return {\n done: token.type === types.eof\x2C\n value: token\n }\n }\n }\n }; }\n\n // Toggle strict mode. Re-reads the next number or string to please\n // pedantic tests (`"use strict"; 010;` should fail).\n\n pp$9.curContext = function() {\n return this.context[this.context.length - 1]\n };\n\n // Read a single token\x2C updating the parser object's token-related\n // properties.\n\n pp$9.nextToken = function() {\n var curContext = this.curContext();\n if (!curContext || !curContext.preserveSpace) { this.skipSpace(); }\n\n this.start = this.pos;\n if (this.options.locations) { this.startLoc = this.curPosition(); }\n if (this.pos >= this.input.length) { return this.finishToken(types.eof) }\n\n if (curContext.override) { return curContext.override(this) }\n else { this.readToken(this.fullCharCodeAtPos()); }\n };\n\n pp$9.readToken = function(code) {\n // Identifier or keyword. '\\uXXXX' sequences are allowed in\n // identifiers\x2C so '\\' also dispatches to that.\n if (isIdentifierStart(code\x2C this.options.ecmaVersion >= 6) || code === 92 /* '\\' */)\n { return this.readWord() }\n\n return this.getTokenFromCode(code)\n };\n\n pp$9.fullCharCodeAtPos = function() {\n var code = this.input.charCodeAt(this.pos);\n if (code <= 0xd7ff || code >= 0xdc00) { return code }\n var next = this.input.charCodeAt(this.pos + 1);\n return next <= 0xdbff || next >= 0xe000 ? code : (code << 10) + next - 0x35fdc00\n };\n\n pp$9.skipBlockComment = function() {\n var startLoc = this.options.onComment && this.curPosition();\n var start = this.pos\x2C end = this.input.indexOf("*/"\x2C this.pos += 2);\n if (end === -1) { this.raise(this.pos - 2\x2C "Unterminated comment"); }\n this.pos = end + 2;\n if (this.options.locations) {\n lineBreakG.lastIndex = start;\n var match;\n while ((match = lineBreakG.exec(this.input)) && match.index < this.pos) {\n ++this.curLine;\n this.lineStart = match.index + match[0].length;\n }\n }\n if (this.options.onComment)\n { this.options.onComment(true\x2C this.input.slice(start + 2\x2C end)\x2C start\x2C this.pos\x2C\n startLoc\x2C this.curPosition()); }\n };\n\n pp$9.skipLineComment = function(startSkip) {\n var start = this.pos;\n var startLoc = this.options.onComment && this.curPosition();\n var ch = this.input.charCodeAt(this.pos += startSkip);\n while (this.pos < this.input.length && !isNewLine(ch)) {\n ch = this.input.charCodeAt(++this.pos);\n }\n if (this.options.onComment)\n { this.options.onComment(false\x2C this.input.slice(start + startSkip\x2C this.pos)\x2C start\x2C this.pos\x2C\n startLoc\x2C this.curPosition()); }\n };\n\n // Called at the start of the parse and after every token. Skips\n // whitespace and comments\x2C and.\n\n pp$9.skipSpace = function() {\n loop: while (this.pos < this.input.length) {\n var ch = this.input.charCodeAt(this.pos);\n switch (ch) {\n case 32: case 160: // ' '\n ++this.pos;\n break\n case 13:\n if (this.input.charCodeAt(this.pos + 1) === 10) {\n ++this.pos;\n }\n case 10: case 8232: case 8233:\n ++this.pos;\n if (this.options.locations) {\n ++this.curLine;\n this.lineStart = this.pos;\n }\n break\n case 47: // '/'\n switch (this.input.charCodeAt(this.pos + 1)) {\n case 42: // '*'\n this.skipBlockComment();\n break\n case 47:\n this.skipLineComment(2);\n break\n default:\n break loop\n }\n break\n default:\n if (ch > 8 && ch < 14 || ch >= 5760 && nonASCIIwhitespace.test(String.fromCharCode(ch))) {\n ++this.pos;\n } else {\n break loop\n }\n }\n }\n };\n\n // Called at the end of every token. Sets `end`\x2C `val`\x2C and\n // maintains `context` and `exprAllowed`\x2C and skips the space after\n // the token\x2C so that the next one's `start` will point at the\n // right position.\n\n pp$9.finishToken = function(type\x2C val) {\n this.end = this.pos;\n if (this.options.locations) { this.endLoc = this.curPosition(); }\n var prevType = this.type;\n this.type = type;\n this.value = val;\n\n this.updateContext(prevType);\n };\n\n // ### Token reading\n\n // This is the function that is called to fetch the next token. It\n // is somewhat obscure\x2C because it works in character codes rather\n // than characters\x2C and because operator parsing has been inlined\n // into it.\n //\n // All in the name of speed.\n //\n pp$9.readToken_dot = function() {\n var next = this.input.charCodeAt(this.pos + 1);\n if (next >= 48 && next <= 57) { return this.readNumber(true) }\n var next2 = this.input.charCodeAt(this.pos + 2);\n if (this.options.ecmaVersion >= 6 && next === 46 && next2 === 46) { // 46 = dot '.'\n this.pos += 3;\n return this.finishToken(types.ellipsis)\n } else {\n ++this.pos;\n return this.finishToken(types.dot)\n }\n };\n\n pp$9.readToken_slash = function() { // '/'\n var next = this.input.charCodeAt(this.pos + 1);\n if (this.exprAllowed) { ++this.pos; return this.readRegexp() }\n if (next === 61) { return this.finishOp(types.assign\x2C 2) }\n return this.finishOp(types.slash\x2C 1)\n };\n\n pp$9.readToken_mult_modulo_exp = function(code) { // '%*'\n var next = this.input.charCodeAt(this.pos + 1);\n var size = 1;\n var tokentype = code === 42 ? types.star : types.modulo;\n\n // exponentiation operator ** and **=\n if (this.options.ecmaVersion >= 7 && code === 42 && next === 42) {\n ++size;\n tokentype = types.starstar;\n next = this.input.charCodeAt(this.pos + 2);\n }\n\n if (next === 61) { return this.finishOp(types.assign\x2C size + 1) }\n return this.finishOp(tokentype\x2C size)\n };\n\n pp$9.readToken_pipe_amp = function(code) { // '|&'\n var next = this.input.charCodeAt(this.pos + 1);\n if (next === code) {\n if (this.options.ecmaVersion >= 12) {\n var next2 = this.input.charCodeAt(this.pos + 2);\n if (next2 === 61) { return this.finishOp(types.assign\x2C 3) }\n }\n return this.finishOp(code === 124 ? types.logicalOR : types.logicalAND\x2C 2)\n }\n if (next === 61) { return this.finishOp(types.assign\x2C 2) }\n return this.finishOp(code === 124 ? types.bitwiseOR : types.bitwiseAND\x2C 1)\n };\n\n pp$9.readToken_caret = function() { // '^'\n var next = this.input.charCodeAt(this.pos + 1);\n if (next === 61) { return this.finishOp(types.assign\x2C 2) }\n return this.finishOp(types.bitwiseXOR\x2C 1)\n };\n\n pp$9.readToken_plus_min = function(code) { // '+-'\n var next = this.input.charCodeAt(this.pos + 1);\n if (next === code) {\n if (next === 45 && !this.inModule && this.input.charCodeAt(this.pos + 2) === 62 &&\n (this.lastTokEnd === 0 || lineBreak.test(this.input.slice(this.lastTokEnd\x2C this.pos)))) {\n // A `-->` line comment\n this.skipLineComment(3);\n this.skipSpace();\n return this.nextToken()\n }\n return this.finishOp(types.incDec\x2C 2)\n }\n if (next === 61) { return this.finishOp(types.assign\x2C 2) }\n return this.finishOp(types.plusMin\x2C 1)\n };\n\n pp$9.readToken_lt_gt = function(code) { // '<>'\n var next = this.input.charCodeAt(this.pos + 1);\n var size = 1;\n if (next === code) {\n size = code === 62 && this.input.charCodeAt(this.pos + 2) === 62 ? 3 : 2;\n if (this.input.charCodeAt(this.pos + size) === 61) { return this.finishOp(types.assign\x2C size + 1) }\n return this.finishOp(types.bitShift\x2C size)\n }\n if (next === 33 && code === 60 && !this.inModule && this.input.charCodeAt(this.pos + 2) === 45 &&\n this.input.charCodeAt(this.pos + 3) === 45) {\n // `<!--`\x2C an XML-style comment that should be interpreted as a line comment\n this.skipLineComment(4);\n this.skipSpace();\n return this.nextToken()\n }\n if (next === 61) { size = 2; }\n return this.finishOp(types.relational\x2C size)\n };\n\n pp$9.readToken_eq_excl = function(code) { // '=!'\n var next = this.input.charCodeAt(this.pos + 1);\n if (next === 61) { return this.finishOp(types.equality\x2C this.input.charCodeAt(this.pos + 2) === 61 ? 3 : 2) }\n if (code === 61 && next === 62 && this.options.ecmaVersion >= 6) { // '=>'\n this.pos += 2;\n return this.finishToken(types.arrow)\n }\n return this.finishOp(code === 61 ? types.eq : types.prefix\x2C 1)\n };\n\n pp$9.readToken_question = function() { // '?'\n var ecmaVersion = this.options.ecmaVersion;\n if (ecmaVersion >= 11) {\n var next = this.input.charCodeAt(this.pos + 1);\n if (next === 46) {\n var next2 = this.input.charCodeAt(this.pos + 2);\n if (next2 < 48 || next2 > 57) { return this.finishOp(types.questionDot\x2C 2) }\n }\n if (next === 63) {\n if (ecmaVersion >= 12) {\n var next2$1 = this.input.charCodeAt(this.pos + 2);\n if (next2$1 === 61) { return this.finishOp(types.assign\x2C 3) }\n }\n return this.finishOp(types.coalesce\x2C 2)\n }\n }\n return this.finishOp(types.question\x2C 1)\n };\n\n pp$9.readToken_numberSign = function() { // '#'\n var ecmaVersion = this.options.ecmaVersion;\n var code = 35; // '#'\n if (ecmaVersion >= 13) {\n ++this.pos;\n code = this.fullCharCodeAtPos();\n if (isIdentifierStart(code\x2C true) || code === 92 /* '\\' */) {\n return this.finishToken(types.privateId\x2C this.readWord1())\n }\n }\n\n this.raise(this.pos\x2C "Unexpected character '" + codePointToString$1(code) + "'");\n };\n\n pp$9.getTokenFromCode = function(code) {\n switch (code) {\n // The interpretation of a dot depends on whether it is followed\n // by a digit or another two dots.\n case 46: // '.'\n return this.readToken_dot()\n\n // Punctuation tokens.\n case 40: ++this.pos; return this.finishToken(types.parenL)\n case 41: ++this.pos; return this.finishToken(types.parenR)\n case 59: ++this.pos; return this.finishToken(types.semi)\n case 44: ++this.pos; return this.finishToken(types.comma)\n case 91: ++this.pos; return this.finishToken(types.bracketL)\n case 93: ++this.pos; return this.finishToken(types.bracketR)\n case 123: ++this.pos; return this.finishToken(types.braceL)\n case 125: ++this.pos; return this.finishToken(types.braceR)\n case 58: ++this.pos; return this.finishToken(types.colon)\n\n case 96: // '`'\n if (this.options.ecmaVersion < 6) { break }\n ++this.pos;\n return this.finishToken(types.backQuote)\n\n case 48: // '0'\n var next = this.input.charCodeAt(this.pos + 1);\n if (next === 120 || next === 88) { return this.readRadixNumber(16) } // '0x'\x2C '0X' - hex number\n if (this.options.ecmaVersion >= 6) {\n if (next === 111 || next === 79) { return this.readRadixNumber(8) } // '0o'\x2C '0O' - octal number\n if (next === 98 || next === 66) { return this.readRadixNumber(2) } // '0b'\x2C '0B' - binary number\n }\n\n // Anything else beginning with a digit is an integer\x2C octal\n // number\x2C or float.\n case 49: case 50: case 51: case 52: case 53: case 54: case 55: case 56: case 57: // 1-9\n return this.readNumber(false)\n\n // Quotes produce strings.\n case 34: case 39: // '"'\x2C "'"\n return this.readString(code)\n\n // Operators are parsed inline in tiny state machines. '=' (61) is\n // often referred to. `finishOp` simply skips the amount of\n // characters it is given as second argument\x2C and returns a token\n // of the type given by its first argument.\n\n case 47: // '/'\n return this.readToken_slash()\n\n case 37: case 42: // '%*'\n return this.readToken_mult_modulo_exp(code)\n\n case 124: case 38: // '|&'\n return this.readToken_pipe_amp(code)\n\n case 94: // '^'\n return this.readToken_caret()\n\n case 43: case 45: // '+-'\n return this.readToken_plus_min(code)\n\n case 60: case 62: // '<>'\n return this.readToken_lt_gt(code)\n\n case 61: case 33: // '=!'\n return this.readToken_eq_excl(code)\n\n case 63: // '?'\n return this.readToken_question()\n\n case 126: // '~'\n return this.finishOp(types.prefix\x2C 1)\n\n case 35: // '#'\n return this.readToken_numberSign()\n }\n\n this.raise(this.pos\x2C "Unexpected character '" + codePointToString$1(code) + "'");\n };\n\n pp$9.finishOp = function(type\x2C size) {\n var str = this.input.slice(this.pos\x2C this.pos + size);\n this.pos += size;\n return this.finishToken(type\x2C str)\n };\n\n pp$9.readRegexp = function() {\n var escaped\x2C inClass\x2C start = this.pos;\n for (;;) {\n if (this.pos >= this.input.length) { this.raise(start\x2C "Unterminated regular expression"); }\n var ch = this.input.charAt(this.pos);\n if (lineBreak.test(ch)) { this.raise(start\x2C "Unterminated regular expression"); }\n if (!escaped) {\n if (ch === "[") { inClass = true; }\n else if (ch === "]" && inClass) { inClass = false; }\n else if (ch === "/" && !inClass) { break }\n escaped = ch === "\\\\";\n } else { escaped = false; }\n ++this.pos;\n }\n var pattern = this.input.slice(start\x2C this.pos);\n ++this.pos;\n var flagsStart = this.pos;\n var flags = this.readWord1();\n if (this.containsEsc) { this.unexpected(flagsStart); }\n\n // Validate pattern\n var state = this.regexpState || (this.regexpState = new RegExpValidationState(this));\n state.reset(start\x2C pattern\x2C flags);\n this.validateRegExpFlags(state);\n this.validateRegExpPattern(state);\n\n // Create Literal#value property value.\n var value = null;\n try {\n value = new RegExp(pattern\x2C flags);\n } catch (e) {\n // ESTree requires null if it failed to instantiate RegExp object.\n // https://github.com/estree/estree/blob/a27003adf4fd7bfad44de9cef372a2eacd527b1c/es5.md#regexpliteral\n }\n\n return this.finishToken(types.regexp\x2C {pattern: pattern\x2C flags: flags\x2C value: value})\n };\n\n // Read an integer in the given radix. Return null if zero digits\n // were read\x2C the integer value otherwise. When `len` is given\x2C this\n // will return `null` unless the integer has exactly `len` digits.\n\n pp$9.readInt = function(radix\x2C len\x2C maybeLegacyOctalNumericLiteral) {\n // `len` is used for character escape sequences. In that case\x2C disallow separators.\n var allowSeparators = this.options.ecmaVersion >= 12 && len === undefined;\n\n // `maybeLegacyOctalNumericLiteral` is true if it doesn't have prefix (0x\x2C0o\x2C0b)\n // and isn't fraction part nor exponent part. In that case\x2C if the first digit\n // is zero then disallow separators.\n var isLegacyOctalNumericLiteral = maybeLegacyOctalNumericLiteral && this.input.charCodeAt(this.pos) === 48;\n\n var start = this.pos\x2C total = 0\x2C lastCode = 0;\n for (var i = 0\x2C e = len == null ? Infinity : len; i < e; ++i\x2C ++this.pos) {\n var code = this.input.charCodeAt(this.pos)\x2C val = (void 0);\n\n if (allowSeparators && code === 95) {\n if (isLegacyOctalNumericLiteral) { this.raiseRecoverable(this.pos\x2C "Numeric separator is not allowed in legacy octal numeric literals"); }\n if (lastCode === 95) { this.raiseRecoverable(this.pos\x2C "Numeric separator must be exactly one underscore"); }\n if (i === 0) { this.raiseRecoverable(this.pos\x2C "Numeric separator is not allowed at the first of digits"); }\n lastCode = code;\n continue\n }\n\n if (code >= 97) { val = code - 97 + 10; } // a\n else if (code >= 65) { val = code - 65 + 10; } // A\n else if (code >= 48 && code <= 57) { val = code - 48; } // 0-9\n else { val = Infinity; }\n if (val >= radix) { break }\n lastCode = code;\n total = total * radix + val;\n }\n\n if (allowSeparators && lastCode === 95) { this.raiseRecoverable(this.pos - 1\x2C "Numeric separator is not allowed at the last of digits"); }\n if (this.pos === start || len != null && this.pos - start !== len) { return null }\n\n return total\n };\n\n function stringToNumber(str\x2C isLegacyOctalNumericLiteral) {\n if (isLegacyOctalNumericLiteral) {\n return parseInt(str\x2C 8)\n }\n\n // `parseFloat(value)` stops parsing at the first numeric separator then returns a wrong value.\n return parseFloat(str.replace(/_/g\x2C ""))\n }\n\n function stringToBigInt(str) {\n if (typeof BigInt !== "function") {\n return null\n }\n\n // `BigInt(value)` throws syntax error if the string contains numeric separators.\n return BigInt(str.replace(/_/g\x2C ""))\n }\n\n pp$9.readRadixNumber = function(radix) {\n var start = this.pos;\n this.pos += 2; // 0x\n var val = this.readInt(radix);\n if (val == null) { this.raise(this.start + 2\x2C "Expected number in radix " + radix); }\n if (this.options.ecmaVersion >= 11 && this.input.charCodeAt(this.pos) === 110) {\n val = stringToBigInt(this.input.slice(start\x2C this.pos));\n ++this.pos;\n } else if (isIdentifierStart(this.fullCharCodeAtPos())) { this.raise(this.pos\x2C "Identifier directly after number"); }\n return this.finishToken(types.num\x2C val)\n };\n\n // Read an integer\x2C octal integer\x2C or floating-point number.\n\n pp$9.readNumber = function(startsWithDot) {\n var start = this.pos;\n if (!startsWithDot && this.readInt(10\x2C undefined\x2C true) === null) { this.raise(start\x2C "Invalid number"); }\n var octal = this.pos - start >= 2 && this.input.charCodeAt(start) === 48;\n if (octal && this.strict) { this.raise(start\x2C "Invalid number"); }\n var next = this.input.charCodeAt(this.pos);\n if (!octal && !startsWithDot && this.options.ecmaVersion >= 11 && next === 110) {\n var val$1 = stringToBigInt(this.input.slice(start\x2C this.pos));\n ++this.pos;\n if (isIdentifierStart(this.fullCharCodeAtPos())) { this.raise(this.pos\x2C "Identifier directly after number"); }\n return this.finishToken(types.num\x2C val$1)\n }\n if (octal && /[89]/.test(this.input.slice(start\x2C this.pos))) { octal = false; }\n if (next === 46 && !octal) { // '.'\n ++this.pos;\n this.readInt(10);\n next = this.input.charCodeAt(this.pos);\n }\n if ((next === 69 || next === 101) && !octal) { // 'eE'\n next = this.input.charCodeAt(++this.pos);\n if (next === 43 || next === 45) { ++this.pos; } // '+-'\n if (this.readInt(10) === null) { this.raise(start\x2C "Invalid number"); }\n }\n if (isIdentifierStart(this.fullCharCodeAtPos())) { this.raise(this.pos\x2C "Identifier directly after number"); }\n\n var val = stringToNumber(this.input.slice(start\x2C this.pos)\x2C octal);\n return this.finishToken(types.num\x2C val)\n };\n\n // Read a string value\x2C interpreting backslash-escapes.\n\n pp$9.readCodePoint = function() {\n var ch = this.input.charCodeAt(this.pos)\x2C code;\n\n if (ch === 123) { // '{'\n if (this.options.ecmaVersion < 6) { this.unexpected(); }\n var codePos = ++this.pos;\n code = this.readHexChar(this.input.indexOf("}"\x2C this.pos) - this.pos);\n ++this.pos;\n if (code > 0x10FFFF) { this.invalidStringToken(codePos\x2C "Code point out of bounds"); }\n } else {\n code = this.readHexChar(4);\n }\n return code\n };\n\n function codePointToString$1(code) {\n // UTF-16 Decoding\n if (code <= 0xFFFF) { return String.fromCharCode(code) }\n code -= 0x10000;\n return String.fromCharCode((code >> 10) + 0xD800\x2C (code & 1023) + 0xDC00)\n }\n\n pp$9.readString = function(quote) {\n var out = ""\x2C chunkStart = ++this.pos;\n for (;;) {\n if (this.pos >= this.input.length) { this.raise(this.start\x2C "Unterminated string constant"); }\n var ch = this.input.charCodeAt(this.pos);\n if (ch === quote) { break }\n if (ch === 92) { // '\\'\n out += this.input.slice(chunkStart\x2C this.pos);\n out += this.readEscapedChar(false);\n chunkStart = this.pos;\n } else {\n if (isNewLine(ch\x2C this.options.ecmaVersion >= 10)) { this.raise(this.start\x2C "Unterminated string constant"); }\n ++this.pos;\n }\n }\n out += this.input.slice(chunkStart\x2C this.pos++);\n return this.finishToken(types.string\x2C out)\n };\n\n // Reads template string tokens.\n\n var INVALID_TEMPLATE_ESCAPE_ERROR = {};\n\n pp$9.tryReadTemplateToken = function() {\n this.inTemplateElement = true;\n try {\n this.readTmplToken();\n } catch (err) {\n if (err === INVALID_TEMPLATE_ESCAPE_ERROR) {\n this.readInvalidTemplateToken();\n } else {\n throw err\n }\n }\n\n this.inTemplateElement = false;\n };\n\n pp$9.invalidStringToken = function(position\x2C message) {\n if (this.inTemplateElement && this.options.ecmaVersion >= 9) {\n throw INVALID_TEMPLATE_ESCAPE_ERROR\n } else {\n this.raise(position\x2C message);\n }\n };\n\n pp$9.readTmplToken = function() {\n var out = ""\x2C chunkStart = this.pos;\n for (;;) {\n if (this.pos >= this.input.length) { this.raise(this.start\x2C "Unterminated template"); }\n var ch = this.input.charCodeAt(this.pos);\n if (ch === 96 || ch === 36 && this.input.charCodeAt(this.pos + 1) === 123) { // '`'\x2C '${'\n if (this.pos === this.start && (this.type === types.template || this.type === types.invalidTemplate)) {\n if (ch === 36) {\n this.pos += 2;\n return this.finishToken(types.dollarBraceL)\n } else {\n ++this.pos;\n return this.finishToken(types.backQuote)\n }\n }\n out += this.input.slice(chunkStart\x2C this.pos);\n return this.finishToken(types.template\x2C out)\n }\n if (ch === 92) { // '\\'\n out += this.input.slice(chunkStart\x2C this.pos);\n out += this.readEscapedChar(true);\n chunkStart = this.pos;\n } else if (isNewLine(ch)) {\n out += this.input.slice(chunkStart\x2C this.pos);\n ++this.pos;\n switch (ch) {\n case 13:\n if (this.input.charCodeAt(this.pos) === 10) { ++this.pos; }\n case 10:\n out += "\\n";\n break\n default:\n out += String.fromCharCode(ch);\n break\n }\n if (this.options.locations) {\n ++this.curLine;\n this.lineStart = this.pos;\n }\n chunkStart = this.pos;\n } else {\n ++this.pos;\n }\n }\n };\n\n // Reads a template token to search for the end\x2C without validating any escape sequences\n pp$9.readInvalidTemplateToken = function() {\n for (; this.pos < this.input.length; this.pos++) {\n switch (this.input[this.pos]) {\n case "\\\\":\n ++this.pos;\n break\n\n case "$":\n if (this.input[this.pos + 1] !== "{") {\n break\n }\n // falls through\n\n case "`":\n return this.finishToken(types.invalidTemplate\x2C this.input.slice(this.start\x2C this.pos))\n\n // no default\n }\n }\n this.raise(this.start\x2C "Unterminated template");\n };\n\n // Used to read escaped characters\n\n pp$9.readEscapedChar = function(inTemplate) {\n var ch = this.input.charCodeAt(++this.pos);\n ++this.pos;\n switch (ch) {\n case 110: return "\\n" // 'n' -> '\\n'\n case 114: return "\\r" // 'r' -> '\\r'\n case 120: return String.fromCharCode(this.readHexChar(2)) // 'x'\n case 117: return codePointToString$1(this.readCodePoint()) // 'u'\n case 116: return "\\t" // 't' -> '\\t'\n case 98: return "\\b" // 'b' -> '\\b'\n case 118: return "\\u000b" // 'v' -> '\\u000b'\n case 102: return "\\f" // 'f' -> '\\f'\n case 13: if (this.input.charCodeAt(this.pos) === 10) { ++this.pos; } // '\\r\\n'\n case 10: // ' \\n'\n if (this.options.locations) { this.lineStart = this.pos; ++this.curLine; }\n return ""\n case 56:\n case 57:\n if (this.strict) {\n this.invalidStringToken(\n this.pos - 1\x2C\n "Invalid escape sequence"\n );\n }\n if (inTemplate) {\n var codePos = this.pos - 1;\n\n this.invalidStringToken(\n codePos\x2C\n "Invalid escape sequence in template string"\n );\n\n return null\n }\n default:\n if (ch >= 48 && ch <= 55) {\n var octalStr = this.input.substr(this.pos - 1\x2C 3).match(/^[0-7]+/)[0];\n var octal = parseInt(octalStr\x2C 8);\n if (octal > 255) {\n octalStr = octalStr.slice(0\x2C -1);\n octal = parseInt(octalStr\x2C 8);\n }\n this.pos += octalStr.length - 1;\n ch = this.input.charCodeAt(this.pos);\n if ((octalStr !== "0" || ch === 56 || ch === 57) && (this.strict || inTemplate)) {\n this.invalidStringToken(\n this.pos - 1 - octalStr.length\x2C\n inTemplate\n ? "Octal literal in template string"\n : "Octal literal in strict mode"\n );\n }\n return String.fromCharCode(octal)\n }\n if (isNewLine(ch)) {\n // Unicode new line characters after \\ get removed from output in both\n // template literals and strings\n return ""\n }\n return String.fromCharCode(ch)\n }\n };\n\n // Used to read character escape sequences ('\\x'\x2C '\\u'\x2C '\\U').\n\n pp$9.readHexChar = function(len) {\n var codePos = this.pos;\n var n = this.readInt(16\x2C len);\n if (n === null) { this.invalidStringToken(codePos\x2C "Bad character escape sequence"); }\n return n\n };\n\n // Read an identifier\x2C and return it as a string. Sets `this.containsEsc`\n // to whether the word contained a '\\u' escape.\n //\n // Incrementally adds only escaped chars\x2C adding other chunks as-is\n // as a micro-optimization.\n\n pp$9.readWord1 = function() {\n this.containsEsc = false;\n var word = ""\x2C first = true\x2C chunkStart = this.pos;\n var astral = this.options.ecmaVersion >= 6;\n while (this.pos < this.input.length) {\n var ch = this.fullCharCodeAtPos();\n if (isIdentifierChar(ch\x2C astral)) {\n this.pos += ch <= 0xffff ? 1 : 2;\n } else if (ch === 92) { // "\\"\n this.containsEsc = true;\n word += this.input.slice(chunkStart\x2C this.pos);\n var escStart = this.pos;\n if (this.input.charCodeAt(++this.pos) !== 117) // "u"\n { this.invalidStringToken(this.pos\x2C "Expecting Unicode escape sequence \\\\uXXXX"); }\n ++this.pos;\n var esc = this.readCodePoint();\n if (!(first ? isIdentifierStart : isIdentifierChar)(esc\x2C astral))\n { this.invalidStringToken(escStart\x2C "Invalid Unicode escape"); }\n word += codePointToString$1(esc);\n chunkStart = this.pos;\n } else {\n break\n }\n first = false;\n }\n return word + this.input.slice(chunkStart\x2C this.pos)\n };\n\n // Read an identifier or keyword token. Will check for reserved\n // words when necessary.\n\n pp$9.readWord = function() {\n var word = this.readWord1();\n var type = types.name;\n if (this.keywords.test(word)) {\n type = keywords$1[word];\n }\n return this.finishToken(type\x2C word)\n };\n\n // Acorn is a tiny\x2C fast JavaScript parser written in JavaScript.\n\n var version = "8.4.1";\n\n Parser.acorn = {\n Parser: Parser\x2C\n version: version\x2C\n defaultOptions: defaultOptions\x2C\n Position: Position\x2C\n SourceLocation: SourceLocation\x2C\n getLineInfo: getLineInfo\x2C\n Node: Node\x2C\n TokenType: TokenType\x2C\n tokTypes: types\x2C\n keywordTypes: keywords$1\x2C\n TokContext: TokContext\x2C\n tokContexts: types$1\x2C\n isIdentifierChar: isIdentifierChar\x2C\n isIdentifierStart: isIdentifierStart\x2C\n Token: Token\x2C\n isNewLine: isNewLine\x2C\n lineBreak: lineBreak\x2C\n lineBreakG: lineBreakG\x2C\n nonASCIIwhitespace: nonASCIIwhitespace\n };\n\n // The main exported interface (under `self.acorn` when in the\n // browser) is a `parse` function that takes a code string and\n // returns an abstract syntax tree as specified by [Mozilla parser\n // API][api].\n //\n // [api]: https://developer.mozilla.org/en-US/docs/SpiderMonkey/Parser_API\n\n function parse(input\x2C options) {\n return Parser.parse(input\x2C options)\n }\n\n // This function tries to parse a single expression at a given\n // offset in a string. Useful for parsing mixed-language formats\n // that embed JavaScript expressions.\n\n function parseExpressionAt(input\x2C pos\x2C options) {\n return Parser.parseExpressionAt(input\x2C pos\x2C options)\n }\n\n // Acorn is organized as a tokenizer and a recursive-descent parser.\n // The `tokenizer` export provides an interface to the tokenizer.\n\n function tokenizer(input\x2C options) {\n return Parser.tokenizer(input\x2C options)\n }\n\n exports.Node = Node;\n exports.Parser = Parser;\n exports.Position = Position;\n exports.SourceLocation = SourceLocation;\n exports.TokContext = TokContext;\n exports.Token = Token;\n exports.TokenType = TokenType;\n exports.defaultOptions = defaultOptions;\n exports.getLineInfo = getLineInfo;\n exports.isIdentifierChar = isIdentifierChar;\n exports.isIdentifierStart = isIdentifierStart;\n exports.isNewLine = isNewLine;\n exports.keywordTypes = keywords$1;\n exports.lineBreak = lineBreak;\n exports.lineBreakG = lineBreakG;\n exports.nonASCIIwhitespace = nonASCIIwhitespace;\n exports.parse = parse;\n exports.parseExpressionAt = parseExpressionAt;\n exports.tokContexts = types$1;\n exports.tokTypes = types;\n exports.tokenizer = tokenizer;\n exports.version = version;\n\n Object.defineProperty(exports\x2C '__esModule'\x2C { value: true });\n\n})));\n
code-source-info,0x2148b304d4e6,121,0,212835,C0O0C4O212835,,
code-creation,Function,10,94224,0x2148b304d5f6,30, node:internal/deps/acorn/acorn/dist/acorn:1:1,0x2148b304d450,~
code-source-info,0x2148b304d5f6,121,0,212835,C0O0C13O0C23O250C29O212834,,
code-creation,Function,10,94239,0x2148b305b706,7787, node:internal/deps/acorn/acorn/dist/acorn:5:19,0x2148b304d550,~
code-source-info,0x2148b305b706,121,267,212830,C0O267C225O379C229O379C231O850C234O1043C250O1052C257O1110C270O1158C285O1043C287O1243C291O1243C293O1609C296O5922C299O8571C310O8586C317O8617C324O8571C329O8571C331O8652C342O8667C349O8698C356O8724C363O8652C368O8652C370O8735C373O9207C377O9207C379O10576C383O10576C385O13693C389O13693C391O14235C396O14268C401O14348C402O14348C404O14584C423O14595C445O14641C467O14690C489O14737C511O14787C530O14836C547O14909C555O14905C574O14977C591O15013C599O15009C618O15079C635O15115C643O15111C662O15181C684O15212C706O15254C728O15297C747O15338C769O15372C788O15421C810O15453C829O15500C848O15548C870O15596C892O15645C909O15699C917O15695C934O16367C942O16363C959O16435C967O16431C984O16504C992O16500C1009O16589C1017O16585C1034O16674C1051O16706C1068O16737C1085O16768C1102O16799C1119O16828C1136O16871C1153O16908C1170O16948C1178O16944C1195O17040C1212O17066C1229O17093C1246O17127C1254O17123C1271O17178C1284O17235C1296O17259C1309O17295C1321O17323C1333O17354C1345O17384C1358O17420C1364O17420C1377O17475C1390O17513C1402O17538C1408O17538C1421O17580C1434O17617C1446O17640C1459O17679C1475O17705C1497O17740C1517O17761C1537O17784C1557O17809C1566O17809C1588O17849C1608O17871C1617O17871C1639O17931C1661O17967C1683O18004C1705O18043C1727O18083C1747O18110C1769O18147C1791O18182C1813O18218C1835O18252C1844O18252C1866O18309C1875O18309C1897O18370C1906O18370C1928O18447C1937O18447C1959O18524C1968O18524C1988O14584C1990O18720C1997O18720C1999O18765C2008O18786C2024O18765C2034O18765C2036O18977C2043O18977C2045O19050C2052O19050C2054O19096C2062O19103C2071O19141C2079O19137C2081O19178C2089O19174C2091O19330C2099O19336C2113O19330C2115O19648C2119O19648C2121O19732C2125O19741C2139O19758C2147O19863C2151O19863C2153O20787C2160O20787C2162O25672C2163O25672C2165O27274C2167O27274C2169O27300C2171O27300C2173O27321C2179O27331C2185O27321C2187O27369C2189O27369C2191O27396C2193O27396C2195O27419C2197O27419C2199O27450C2201O27450C2203O27474C2205O27474C2207O27505C2211O27505C2213O27750C2214O27750C2216O27787C2218O27787C2220O27832C2222O27832C2224O27888C2226O27888C2228O27941C2230O27941C2232O28010C2234O28010C2236O28093C2240O28093C2242O31497C2250O31804C2254O31811C2268O31827C2276O31991C2290O32006C2298O32105C2312O32121C2320O32265C2334O32277C2342O32417C2356O32430C2364O32813C2378O32828C2386O33086C2400O33107C2408O33211C2422O33235C2430O33335C2447O33358C2455O33561C2466O33575C2474O33819C2485O33832C2493O33920C2504O33945C2512O34114C2523O34131C2531O34215C2539O34222C2553O34247C2563O34222C2575O34292C2579O34299C2588O34353C2595O34353C2597O34405C2604O34424C2612O35503C2619O35510C2627O35700C2634O35716C2642O35870C2649O35887C2657O36062C2664O36082C2672O36239C2679O36261C2687O36426C2694O36445C2702O36783C2709O36796C2717O36900C2724O36922C2732O37295C2739O37305C2747O37412C2754O37426C2762O37705C2769O37727C2777O38193C2784O38218C2792O38772C2799O38806C2807O39094C2814O39118C2822O39339C2826O39346C2835O39645C2842O39664C2850O40347C2857O40347C2859O40377C2866O40377C2868O40398C2875O40409C2883O41674C2890O41695C2898O42473C2905O42493C2913O46102C2920O46135C2928O46989C2935O47017C2943O47137C2950O47159C2958O47970C2965O47993C2973O49921C2980O49949C2988O50144C2995O50166C3003O50507C3010O50533C3018O51083C3025O51109C3033O52426C3040O52451C3048O52835C3052O52835C3054O52842C3061O52865C3069O53901C3076O53924C3084O54090C3091O54115C3099O54357C3106O54381C3114O54641C3121O54666C3129O54761C3136O54788C3144O55778C3151O55808C3159O56103C3166O56119C3174O56846C3181O56860C3189O57394C3196O57410C3204O58291C3211O58305C3219O59123C3226O59139C3234O59317C3236O59317C3238O59345C3240O59345C3242O59367C3244O59367C3246O59550C3253O59569C3261O61281C3268O61306C3276O61592C3283O61608C3291O62936C3298O62959C3306O65273C3313O65302C3321O65548C3328O65575C3336O65918C3343O65940C3351O67070C3358O67091C3366O67867C3373O67885C3381O68187C3388O68208C3396O68319C3403O68339C3411O68492C3418O68511C3426O70105C3433O70122C3441O72647C3448O72664C3456O72861C3463O72885C3471O73862C3478O73887C3486O74102C3493O74134C3501O74425C3508O74452C3516O75126C3523O75143C3531O75650C3538O75677C3546O77100C3553O77128C3561O77335C3568O77361C3576O77701C3580O77708C3589O77801C3596O77819C3604O80786C3611O80808C3619O81295C3626O81312C3634O81531C3641O81553C3649O81930C3656O81952C3664O82360C3671O82382C3679O83246C3686O83272C3694O83380C3701O83403C3709O86728C3716O86749C3724O88218C3731O88240C3739O88916C3746O88943C3754O89623C3758O89630C3767O89899C3774O89919C3782O92178C3789O92199C3797O92798C3804O92820C3812O95235C3819O95262C3827O95884C3834O95902C3842O96637C3849O96654C3857O98003C3864O98020C3872O98349C3879O98370C3887O100532C3894O100557C3902O101367C3909O101388C3917O102275C3924O102295C3932O105517C3939O105536C3947O109551C3954O109572C3962O110162C3969O110186C3977O110668C3984O110689C3992O111333C3999O111351C4007O111669C4014O111695C4022O111833C4029O111873C4037O114418C4044O114438C4052O114481C4059O114506C4067O114957C4071O114957C4073O114964C4080O114978C4088O116370C4095O116396C4103O117007C4110O117026C4118O117741C4125O117758C4133O118205C4140O118219C4148O118881C4155O118900C4163O121052C4170O121076C4178O123604C4185O123627C4193O124123C4200O124141C4208O124372C4215O124389C4223O125399C4230O125425C4238O126133C4245O126156C4253O127924C4260O127947C4268O128278C4275O128295C4283O128871C4290O128890C4298O129714C4305O129735C4313O130982C4320O130998C4328O132089C4335O132112C4343O132701C4350O132717C4358O133200C4365O133216C4373O133463C4377O133470C4386O133768C4393O133779C4401O134057C4409O134050C4417O134067C4424O134084C4432O134225C4436O134232C4445O134258C4452O134258C4454O134842C4461O134858C4469O134930C4476O134945C4484O135167C4491O135199C4499O135316C4506O135333C4514O136902C4521O136924C4529O137188C4536O137206C4544O137284C4551O137305C4559O137576C4566O137598C4574O137813C4581O137813C4583O138231C4587O138238C4596O138252C4603O138267C4611O138343C4618O138360C4626O138722C4633O138738C4641O138891C4648O138909C4656O139009C4663O139023C4671O139277C4680O139530C4698O139544C4725O139584C4752O139623C4779O139664C4806O139704C4834O139747C4845O139743C4872O139839C4899O139886C4935O139936C4971O140000C4991O139530C4993O140072C4997O140079C5007O140093C5014O140113C5022O140164C5029O140182C5037O141166C5044O141190C5052O141407C5059O141426C5067O141752C5071O141758C5085O141787C5104O141808C5114O141779C5122O142102C5126O142108C5143O142129C5151O142275C5155O142281C5172O142308C5180O142399C5184O142405C5201O142426C5209O142694C5213O142700C5230O142721C5238O142782C5242O142788C5256O142820C5275O142841C5285O142812C5293O143352C5297O143358C5314O143382C5322O143565C5326O143571C5343O143590C5351O143903C5355O143909C5372O143928C5380O144548C5386O145570C5390O145592C5398O145651C5400O145706C5404O145729C5412O145798C5431O145807C5443O145838C5455O145870C5467O145902C5474O145798C5476O146012C5480O146012C5482O146735C5488O148790C5492O148808C5500O148952C5504O148971C5512O149074C5516O149093C5524O149197C5543O149206C5555O149233C5567O149261C5579O149289C5586O149197C5588O149327C5589O149327C5591O149883C5595O149883C5603O149906C5607O149906C5615O149930C5619O149930C5627O149954C5631O149954C5639O149990C5643O149997C5653O150039C5660O150039C5662O150750C5666O150772C5683O150788C5691O151104C5695O151126C5712O151142C5720O151485C5724O151507C5741O151520C5749O151937C5753O151959C5770O151979C5778O152380C5782O152402C5799O152420C5807O152543C5811O152565C5828O152585C5836O152734C5840O152756C5857O152774C5865O152909C5869O152931C5886O152945C5894O153496C5901O153521C5909O154114C5916O154141C5924O154804C5931O154824C5939O155854C5946O155878C5954O156316C5961O156340C5969O156523C5976O156543C5984O157285C5991O157310C5999O158304C6006O158330C6014O158622C6021O158654C6029O158862C6036O158894C6044O159730C6051O159750C6059O160071C6066O160111C6074O160322C6081O160354C6089O160717C6096O160747C6104O161280C6111O161308C6119O161782C6126O161821C6134O162043C6141O162074C6149O162648C6156O162681C6164O162973C6171O163013C6179O163454C6186O163481C6194O163975C6201O164000C6209O164463C6216O164499C6224O164981C6231O165018C6239O165726C6246O165762C6254O166457C6261O166483C6269O166977C6276O167006C6284O167499C6291O167525C6299O167874C6306O167905C6314O168313C6321O168343C6329O168557C6336O168577C6344O168854C6351O168883C6359O169631C6366O169660C6374O170095C6381O170138C6389O171489C6396O171519C6404O172058C6411O172087C6419O172535C6426O172571C6434O173542C6441O173588C6449O174313C6456O174361C6464O174615C6471O174662C6479O174875C6486O174910C6494O175349C6501O175385C6509O175850C6516O175896C6524O176052C6531O176082C6539O176672C6546O176696C6554O177332C6561O177357C6569O178056C6576O178083C6584O178728C6591O178762C6599O179052C6606O179085C6614O179451C6621O179480C6629O179921C6636O179946C6644O180817C6651O180858C6659O181415C6666O181441C6674O181991C6681O182021C6689O182593C6696O182593C6698O182911C6702O182918C6712O182961C6719O182971C6727O183450C6734O183464C6742O183590C6754O183636C6762O183643C6779O183653C6787O184035C6794O184051C6802O184210C6809O184225C6817O184660C6824O184675C6832O184980C6839O185003C6847O185269C6854O185291C6862O185993C6869O186014C6877O186608C6884O186623C6892O187815C6899O187832C6907O188353C6914O188372C6922O188800C6929O188821C6937O189074C6944O189105C6952O189602C6959O189626C6967O190144C6974O190165C6982O190356C6989O190380C6997O190968C7004O190989C7012O191774C7019O191797C7027O192214C7034O192238C7042O192881C7049O192907C7057O193333C7064O193355C7072O196078C7079O196092C7087O196245C7094O196261C7102O197890C7109O197903C7117O200209C7124O200230C7132O200830C7139O200846C7147O202322C7154O202341C7162O203025C7169O203041C7177O203810C7178O203810C7180O203817C7187O203843C7195O204135C7202O204159C7210O204364C7217O204383C7225O205956C7232O205986C7240O206505C7247O206526C7255O208630C7262O208647C7270O209072C7277O209087C7285O210224C7292O210238C7300O210517C7306O210529C7321O210558C7331O210579C7341O210608C7351O210638C7361O210668C7371O210701C7381O210724C7391O210745C7401O210770C7411O210795C7421O210823C7431O210852C7441O210883C7451O210924C7461O210954C7471O210976C7481O211002C7491O211029C7501O211065C7511O210542C7519O211985C7521O211998C7529O212008C7531O212023C7539O212035C7541O212052C7549O212066C7551O212089C7559O212109C7561O212128C7569O212144C7571O212158C7579O212169C7581O212187C7589O212202C7591O212225C7599O212245C7601O212265C7609O212282C7611O212307C7619O212329C7621O212355C7629O212378C7631O212396C7639O212411C7641O212432C7649O212448C7651O212466C7659O212481C7661O212500C7669O212516C7671O212543C7679O212567C7681O212581C7689O212592C7691O212618C7699O212641C7701O212661C7709O212674C7711O212691C7719O212702C7721O212720C7729O212735C7731O212751C7739O212765C7747O212772C7763O212787C7775O212772C7786O212829,,
code-creation,Function,10,94431,0x2148b305e196,20, node:internal/deps/acorn/acorn/dist/acorn:273:44,0x2148b304e280,~
code-source-info,0x2148b305e196,121,19357,19424,C0O19365C3O19387C8O19387C16O19397C19O19422,,
code-creation,Function,10,94447,0x2148b305e296,75, node:internal/deps/acorn/acorn/dist/acorn:1:11,0x2148b304d518,~
code-source-info,0x2148b305e296,121,10,250,C0O32C15O95C28O148C32O155C47O161C56O204C58O214C63O228C65O241C69O220C74O249,,
tick,0xf74229,94473,1,0xb515a0,3,0xd44a10,0xa52511ba43c,0xa52511b972d,0xb6d5357c409,0xa52511ba45d,0xa52511b972d,0xb6d53578415,0xa52511ba45d,0xa52511b972d,0xb6d53549b2e,0xb6d53549025,0x158e77f
tick,0x110ccde,94492,1,0xb515a0,3,0xd44a10,0xa52511ba43c,0xa52511b972d,0xb6d5357c409,0xa52511ba45d,0xa52511b972d,0xb6d53578415,0xa52511ba45d,0xa52511b972d,0xb6d53549b2e,0xb6d53549025,0x158e77f
tick,0x7f4debd50656,94496,1,0xb515a0,3,0xd44a10,0xa52511ba43c,0xa52511b972d,0xb6d5357c409,0xa52511ba45d,0xa52511b972d,0xb6d53578415,0xa52511ba45d,0xa52511b972d,0xb6d53549b2e,0xb6d53549025,0x158e77f
tick,0x7f4dec173833,94500,1,0xb515a0,3,0xd44a10,0xa52511ba43c,0xa52511b972d,0xb6d5357c409,0xa52511ba45d,0xa52511b972d,0xb6d53578415,0xa52511ba45d,0xa52511b972d,0xb6d53549b2e,0xb6d53549025,0x158e77f
tick,0x7f4debd5064e,94504,1,0xb515a0,3,0xd44a10,0xa52511ba43c,0xa52511b972d,0xb6d5357c409,0xa52511ba45d,0xa52511b972d,0xb6d53578415,0xa52511ba45d,0xa52511b972d,0xb6d53549b2e,0xb6d53549025,0x158e77f
tick,0x7f4debd44300,94508,1,0xb515a0,3,0xd44a10,0xa52511ba43c,0xa52511b972d,0xb6d5357c409,0xa52511ba45d,0xa52511b972d,0xb6d53578415,0xa52511ba45d,0xa52511b972d,0xb6d53549b2e,0xb6d53549025,0x158e77f
tick,0x7f4debd44498,94511,1,0xb515a0,3,0xd44a10,0xa52511ba43c,0xa52511b972d,0xb6d5357c409,0xa52511ba45d,0xa52511b972d,0xb6d53578415,0xa52511ba45d,0xa52511b972d,0xb6d53549b2e,0xb6d53549025,0x158e77f
tick,0x7f4dec17384e,94515,1,0xb515a0,3,0xd44a10,0xa52511ba43c,0xa52511b972d,0xb6d5357c409,0xa52511ba45d,0xa52511b972d,0xb6d53578415,0xa52511ba45d,0xa52511b972d,0xb6d53549b2e,0xb6d53549025,0x158e77f
tick,0x7f4debd4449c,94519,1,0xb515a0,3,0xd44a10,0xa52511ba43c,0xa52511b972d,0xb6d5357c409,0xa52511ba45d,0xa52511b972d,0xb6d53578415,0xa52511ba45d,0xa52511b972d,0xb6d53549b2e,0xb6d53549025,0x158e77f
tick,0x7f4dec17371c,94522,1,0xb515a0,3,0xd44a10,0xa52511ba43c,0xa52511b972d,0xb6d5357c409,0xa52511ba45d,0xa52511b972d,0xb6d53578415,0xa52511ba45d,0xa52511b972d,0xb6d53549b2e,0xb6d53549025,0x158e77f
tick,0xa12380,94526,1,0xb515a0,3,0xd44a10,0xa52511ba43c,0xa52511b972d,0xb6d5357c409,0xa52511ba45d,0xa52511b972d,0xb6d53578415,0xa52511ba45d,0xa52511b972d,0xb6d53549b2e,0xb6d53549025,0x158e77f
tick,0xe85f42,95285,0,0x0,0,0x11e9ce0,0x2148b305e2a5,0x2148b304d60d,0xa52511ba45d,0xa52511b972d,0xb6d5357c409,0xa52511ba45d,0xa52511b972d,0xb6d53578415,0xa52511ba45d,0xa52511b972d,0xb6d53549b2e,0xb6d53549025,0x158e77f
code-creation,LazyCompile,10,96117,0x2148b306b7ee,102,TokenType node:internal/deps/acorn/acorn/dist/acorn:118:37,0x2148b304e230,~
code-source-info,0x2148b306b7ee,121,13711,14114,C0O13731C4O13754C7O13770C9O13781C13O13814C17O13807C21O13852C27O13843C31O13893C37O13884C41O13930C47O13921C51O13965C57O13956C61O14000C67O13991C71O14034C77O14025C81O14065C91O14058C95O14084C96O14103C101O14113,,
tick,0x10aa3c0,96359,0,0x0,0,0xf4b5c0,0x2148b306b83f,0x2148b305bae6,0x2148b305e2a5,0x2148b304d60d,0xa52511ba45d,0xa52511b972d,0xb6d5357c409,0xa52511ba45d,0xa52511b972d,0xb6d53578415,0xa52511ba45d,0xa52511b972d,0xb6d53549b2e,0xb6d53549025,0x158e77f
code-creation,LazyCompile,10,96390,0x2148b3076dd6,25,binop node:internal/deps/acorn/acorn/dist/acorn:133:17,0x2148b304d740,~
code-source-info,0x2148b3076dd6,121,14133,14215,C0O14152C3O14173C10O14205C19O14159C24O14211,,
code-creation,LazyCompile,10,96484,0x2148b307712e,40,kw node:internal/deps/acorn/acorn/dist/acorn:143:14,0x2148b304d790,~
code-source-info,0x2148b307712e,121,14415,14568,C0O14437C4O14463C7O14482C9O14498C13O14510C27O14536C33O14534C39O14564,,
code-creation,LazyCompile,10,96793,0x2148b307a1ae,38,TokContext node:internal/deps/acorn/acorn/dist/acorn:3389:39,0x2148b3053440,~
code-source-info,0x2148b307a1ae,121,139296,139511,C0O139354C2O139365C6O139378C8O139394C10O139390C14O139406C16O139429C18O139425C22O139448C24O139462C28O139478C30O139497C32O139493C37O139510,,
code-creation,LazyCompile,10,96894,0x2148b307a836,168,buildUnicodeData node:internal/deps/acorn/acorn/dist/acorn:3562:28,0x2148b304dbf0,~
code-source-info,0x2148b307a836,121,149358,149880,C0O149386C3O149391C16O149457C22O149471C28O149477C32O149422C40O149527C51O149555C67O149645C71O149614C87O149404C94O149681C99O149713C104O149723C108O149709C112O149738C117O149755C122O149765C126O149751C130O149789C135O149806C140O149816C144O149802C148O149830C153O149848C158O149858C162O149844C167O149879,,
code-creation,LazyCompile,10,96931,0x2148b307aa6e,44,wordsRegexp node:internal/deps/acorn/acorn/dist/acorn:277:23,0x2148b304d880,~
code-source-info,0x2148b307aa6e,121,19450,19527,C0O19464C7O19497C20O19497C26O19489C32O19516C38O19471C43O19523,,
tick,0x15b5e5c,97421,0,0x0,0,0x15be120,0x2148b307aa82,0x2148b307a856,0x2148b305ccf9,0x2148b305e2a5,0x2148b304d60d,0xa52511ba45d,0xa52511b972d,0xb6d5357c409,0xa52511ba45d,0xa52511b972d,0xb6d53578415,0xa52511ba45d,0xa52511b972d,0xb6d53549b2e,0xb6d53549025,0x158e77f
tick,0x1101d12,98480,1,0xb515a0,2,0xd44a10,0xa52511ba43c,0xa52511b972d,0xb6d5357c472,0xa52511ba45d,0xa52511b972d,0xb6d53578415,0xa52511ba45d,0xa52511b972d,0xb6d53549b2e,0xb6d53549025,0x158e77f
code-creation,Eval,10,98686,0x2148b307d9b6,5, node:readline:1:1,0x2148b307d470,~
script-source,122,node:readline,// Copyright Joyent\x2C Inc. and other Node contributors.\n//\n// Permission is hereby granted\x2C free of charge\x2C to any person obtaining a\n// copy of this software and associated documentation files (the\n// "Software")\x2C to deal in the Software without restriction\x2C including\n// without limitation the rights to use\x2C copy\x2C modify\x2C merge\x2C publish\x2C\n// distribute\x2C sublicense\x2C and/or sell copies of the Software\x2C and to permit\n// persons to whom the Software is furnished to do so\x2C subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED "AS IS"\x2C WITHOUT WARRANTY OF ANY KIND\x2C EXPRESS\n// OR IMPLIED\x2C INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY\x2C FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM\x2C\n// DAMAGES OR OTHER LIABILITY\x2C WHETHER IN AN ACTION OF CONTRACT\x2C TORT OR\n// OTHERWISE\x2C ARISING FROM\x2C OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n// Inspiration for this code comes from Salvatore Sanfilippo's linenoise.\n// https://github.com/antirez/linenoise\n// Reference:\n// * https://invisible-island.net/xterm/ctlseqs/ctlseqs.html\n// * http://www.3waylabs.com/nw/WWW/products/wizcon/vt220.html\n\n'use strict';\n\nconst {\n ArrayFrom\x2C\n ArrayPrototypeFilter\x2C\n ArrayPrototypeIndexOf\x2C\n ArrayPrototypeJoin\x2C\n ArrayPrototypeMap\x2C\n ArrayPrototypePop\x2C\n ArrayPrototypeReverse\x2C\n ArrayPrototypeSplice\x2C\n ArrayPrototypeUnshift\x2C\n DateNow\x2C\n FunctionPrototypeBind\x2C\n FunctionPrototypeCall\x2C\n MathCeil\x2C\n MathFloor\x2C\n MathMax\x2C\n MathMaxApply\x2C\n NumberIsFinite\x2C\n NumberIsNaN\x2C\n ObjectDefineProperty\x2C\n ObjectSetPrototypeOf\x2C\n RegExpPrototypeTest\x2C\n StringPrototypeCodePointAt\x2C\n StringPrototypeEndsWith\x2C\n StringPrototypeMatch\x2C\n StringPrototypeRepeat\x2C\n StringPrototypeReplace\x2C\n StringPrototypeSlice\x2C\n StringPrototypeSplit\x2C\n StringPrototypeStartsWith\x2C\n StringPrototypeTrim\x2C\n Promise\x2C\n PromiseReject\x2C\n Symbol\x2C\n SymbolAsyncIterator\x2C\n SafeStringIterator\x2C\n} = primordials;\n\nconst {\n clearLine\x2C\n clearScreenDown\x2C\n cursorTo\x2C\n moveCursor\x2C\n} = require('internal/readline/callbacks');\nconst emitKeypressEvents = require('internal/readline/emitKeypressEvents');\n\nconst {\n AbortError\x2C\n codes\n} = require('internal/errors');\n\nconst {\n ERR_INVALID_ARG_VALUE\x2C\n} = codes;\nconst {\n validateAbortSignal\x2C\n validateArray\x2C\n validateString\x2C\n validateUint32\x2C\n} = require('internal/validators');\nconst {\n inspect\x2C\n getStringWidth\x2C\n stripVTControlCharacters\x2C\n} = require('internal/util/inspect');\nconst EventEmitter = require('events');\nconst {\n charLengthAt\x2C\n charLengthLeft\x2C\n commonPrefix\x2C\n kSubstringSearch\x2C\n} = require('internal/readline/utils');\n\nconst { promisify } = require('internal/util');\n\nconst { StringDecoder } = require('string_decoder');\n\n// Lazy load Readable for startup performance.\nlet Readable;\n\n/**\n * @typedef {import('./stream.js').Readable} Readable\n * @typedef {import('./stream.js').Writable} Writable\n */\n\nconst kHistorySize = 30;\nconst kMincrlfDelay = 100;\n// \\r\\n\x2C \\n\x2C or \\r followed by something other than \\n\nconst lineEnding = /\\r?\\n|\\r(?!\\n)/;\n\nconst kLineObjectStream = Symbol('line object stream');\nconst kQuestionCancel = Symbol('kQuestionCancel');\n\n// GNU readline library - keyseq-timeout is 500ms (default)\nconst ESCAPE_CODE_TIMEOUT = 500;\n\n/**\n * Creates a new `readline.Interface` instance.\n * @param {Readable | {\n * input: Readable;\n * output: Writable;\n * completer?: Function;\n * terminal?: boolean;\n * history?: string[];\n * historySize?: number;\n * removeHistoryDuplicates?: boolean;\n * prompt?: string;\n * crlfDelay?: number;\n * escapeCodeTimeout?: number;\n * tabSize?: number;\n * signal?: AbortSignal;\n * }} input\n * @param {Writable} [output]\n * @param {Function} [completer]\n * @param {boolean} [terminal]\n * @returns {Interface}\n */\nfunction createInterface(input\x2C output\x2C completer\x2C terminal) {\n return new Interface(input\x2C output\x2C completer\x2C terminal);\n}\n\n\nfunction Interface(input\x2C output\x2C completer\x2C terminal) {\n if (!(this instanceof Interface)) {\n return new Interface(input\x2C output\x2C completer\x2C terminal);\n }\n\n this._sawReturnAt = 0;\n // TODO(BridgeAR): Document this property. The name is not ideal\x2C so we might\n // want to expose an alias and document that instead.\n this.isCompletionEnabled = true;\n this._sawKeyPress = false;\n this._previousKey = null;\n this.escapeCodeTimeout = ESCAPE_CODE_TIMEOUT;\n this.tabSize = 8;\n\n FunctionPrototypeCall(EventEmitter\x2C this);\n let history;\n let historySize;\n let removeHistoryDuplicates = false;\n let crlfDelay;\n let prompt = '> ';\n let signal;\n if (input && input.input) {\n // An options object was given\n output = input.output;\n completer = input.completer;\n terminal = input.terminal;\n history = input.history;\n historySize = input.historySize;\n signal = input.signal;\n if (input.tabSize !== undefined) {\n validateUint32(input.tabSize\x2C 'tabSize'\x2C true);\n this.tabSize = input.tabSize;\n }\n removeHistoryDuplicates = input.removeHistoryDuplicates;\n if (input.prompt !== undefined) {\n prompt = input.prompt;\n }\n if (input.escapeCodeTimeout !== undefined) {\n if (NumberIsFinite(input.escapeCodeTimeout)) {\n this.escapeCodeTimeout = input.escapeCodeTimeout;\n } else {\n throw new ERR_INVALID_ARG_VALUE(\n 'input.escapeCodeTimeout'\x2C\n this.escapeCodeTimeout\n );\n }\n }\n\n if (signal) {\n validateAbortSignal(signal\x2C 'options.signal');\n }\n\n crlfDelay = input.crlfDelay;\n input = input.input;\n }\n\n if (completer !== undefined && typeof completer !== 'function') {\n throw new ERR_INVALID_ARG_VALUE('completer'\x2C completer);\n }\n\n if (history === undefined) {\n history = [];\n } else {\n validateArray(history\x2C 'history');\n }\n\n if (historySize === undefined) {\n historySize = kHistorySize;\n }\n\n if (typeof historySize !== 'number' ||\n NumberIsNaN(historySize) ||\n historySize < 0) {\n throw new ERR_INVALID_ARG_VALUE.RangeError('historySize'\x2C historySize);\n }\n\n // Backwards compat; check the isTTY prop of the output stream\n // when `terminal` was not specified\n if (terminal === undefined && !(output === null || output === undefined)) {\n terminal = !!output.isTTY;\n }\n\n const self = this;\n\n this.line = '';\n this[kSubstringSearch] = null;\n this.output = output;\n this.input = input;\n this.history = history;\n this.historySize = historySize;\n this.removeHistoryDuplicates = !!removeHistoryDuplicates;\n this.crlfDelay = crlfDelay ?\n MathMax(kMincrlfDelay\x2C crlfDelay) : kMincrlfDelay;\n // Check arity\x2C 2 - for async\x2C 1 for sync\n if (typeof completer === 'function') {\n this.completer = completer.length === 2 ?\n completer :\n function completerWrapper(v\x2C cb) {\n cb(null\x2C completer(v));\n };\n }\n\n this[kQuestionCancel] = FunctionPrototypeBind(_questionCancel\x2C this);\n\n this.setPrompt(prompt);\n\n this.terminal = !!terminal;\n\n if (process.env.TERM === 'dumb') {\n this._ttyWrite = FunctionPrototypeBind(_ttyWriteDumb\x2C this);\n }\n\n function onerror(err) {\n self.emit('error'\x2C err);\n }\n\n function ondata(data) {\n self._normalWrite(data);\n }\n\n function onend() {\n if (typeof self._line_buffer === 'string' &&\n self._line_buffer.length > 0) {\n self.emit('line'\x2C self._line_buffer);\n }\n self.close();\n }\n\n function ontermend() {\n if (typeof self.line === 'string' && self.line.length > 0) {\n self.emit('line'\x2C self.line);\n }\n self.close();\n }\n\n function onkeypress(s\x2C key) {\n self._ttyWrite(s\x2C key);\n if (key && key.sequence) {\n // If the key.sequence is half of a surrogate pair\n // (>= 0xd800 and <= 0xdfff)\x2C refresh the line so\n // the character is displayed appropriately.\n const ch = StringPrototypeCodePointAt(key.sequence\x2C 0);\n if (ch >= 0xd800 && ch <= 0xdfff)\n self._refreshLine();\n }\n }\n\n function onresize() {\n self._refreshLine();\n }\n\n this[kLineObjectStream] = undefined;\n\n input.on('error'\x2C onerror);\n\n if (!this.terminal) {\n function onSelfCloseWithoutTerminal() {\n input.removeListener('data'\x2C ondata);\n input.removeListener('error'\x2C onerror);\n input.removeListener('end'\x2C onend);\n }\n\n input.on('data'\x2C ondata);\n input.on('end'\x2C onend);\n self.once('close'\x2C onSelfCloseWithoutTerminal);\n this._decoder = new StringDecoder('utf8');\n } else {\n function onSelfCloseWithTerminal() {\n input.removeListener('keypress'\x2C onkeypress);\n input.removeListener('error'\x2C onerror);\n input.removeListener('end'\x2C ontermend);\n if (output !== null && output !== undefined) {\n output.removeListener('resize'\x2C onresize);\n }\n }\n\n emitKeypressEvents(input\x2C this);\n\n // `input` usually refers to stdin\n input.on('keypress'\x2C onkeypress);\n input.on('end'\x2C ontermend);\n\n this._setRawMode(true);\n this.terminal = true;\n\n // Cursor position on the line.\n this.cursor = 0;\n\n this.historyIndex = -1;\n\n if (output !== null && output !== undefined)\n output.on('resize'\x2C onresize);\n\n self.once('close'\x2C onSelfCloseWithTerminal);\n }\n\n if (signal) {\n const onAborted = () => self.close();\n if (signal.aborted) {\n process.nextTick(onAborted);\n } else {\n signal.addEventListener('abort'\x2C onAborted\x2C { once: true });\n self.once('close'\x2C () => signal.removeEventListener('abort'\x2C onAborted));\n }\n }\n\n // Current line\n this.line = '';\n\n input.resume();\n}\n\nObjectSetPrototypeOf(Interface.prototype\x2C EventEmitter.prototype);\nObjectSetPrototypeOf(Interface\x2C EventEmitter);\n\nObjectDefineProperty(Interface.prototype\x2C 'columns'\x2C {\n configurable: true\x2C\n enumerable: true\x2C\n get: function() {\n if (this.output && this.output.columns)\n return this.output.columns;\n return Infinity;\n }\n});\n\n/**\n * Sets the prompt written to the output.\n * @param {string} prompt\n * @returns {void}\n */\nInterface.prototype.setPrompt = function(prompt) {\n this._prompt = prompt;\n};\n\n/**\n * Returns the current prompt used by `rl.prompt()`.\n * @returns {string}\n */\nInterface.prototype.getPrompt = function() {\n return this._prompt;\n};\n\n\nInterface.prototype._setRawMode = function(mode) {\n const wasInRawMode = this.input.isRaw;\n\n if (typeof this.input.setRawMode === 'function') {\n this.input.setRawMode(mode);\n }\n\n return wasInRawMode;\n};\n\n/**\n * Writes the configured `prompt` to a new line in `output`.\n * @param {boolean} [preserveCursor]\n * @returns {void}\n */\nInterface.prototype.prompt = function(preserveCursor) {\n if (this.paused) this.resume();\n if (this.terminal && process.env.TERM !== 'dumb') {\n if (!preserveCursor) this.cursor = 0;\n this._refreshLine();\n } else {\n this._writeToOutput(this._prompt);\n }\n};\n\n/**\n * Displays `query` by writing it to the `output`.\n * @param {string} query\n * @param {{ signal?: AbortSignal; }} [options]\n * @param {Function} cb\n * @returns {void}\n */\nInterface.prototype.question = function(query\x2C options\x2C cb) {\n cb = typeof options === 'function' ? options : cb;\n options = typeof options === 'object' && options !== null ? options : {};\n\n if (options.signal) {\n if (options.signal.aborted) {\n return;\n }\n\n options.signal.addEventListener('abort'\x2C () => {\n this[kQuestionCancel]();\n }\x2C { once: true });\n }\n\n if (typeof cb === 'function') {\n if (this._questionCallback) {\n this.prompt();\n } else {\n this._oldPrompt = this._prompt;\n this.setPrompt(query);\n this._questionCallback = cb;\n this.prompt();\n }\n }\n};\n\nInterface.prototype.question[promisify.custom] = function(query\x2C options) {\n options = typeof options === 'object' && options !== null ? options : {};\n\n if (options.signal && options.signal.aborted) {\n return PromiseReject(new AbortError());\n }\n\n return new Promise((resolve\x2C reject) => {\n this.question(query\x2C options\x2C resolve);\n\n if (options.signal) {\n options.signal.addEventListener('abort'\x2C () => {\n reject(new AbortError());\n }\x2C { once: true });\n }\n });\n};\n\nfunction _questionCancel() {\n if (this._questionCallback) {\n this._questionCallback = null;\n this.setPrompt(this._oldPrompt);\n this.clearLine();\n }\n}\n\n\nInterface.prototype._onLine = function(line) {\n if (this._questionCallback) {\n const cb = this._questionCallback;\n this._questionCallback = null;\n this.setPrompt(this._oldPrompt);\n cb(line);\n } else {\n this.emit('line'\x2C line);\n }\n};\n\nInterface.prototype._writeToOutput = function _writeToOutput(stringToWrite) {\n validateString(stringToWrite\x2C 'stringToWrite');\n\n if (this.output !== null && this.output !== undefined) {\n this.output.write(stringToWrite);\n }\n};\n\nInterface.prototype._addHistory = function() {\n if (this.line.length === 0) return '';\n\n // If the history is disabled then return the line\n if (this.historySize === 0) return this.line;\n\n // If the trimmed line is empty then return the line\n if (StringPrototypeTrim(this.line).length === 0) return this.line;\n\n if (this.history.length === 0 || this.history[0] !== this.line) {\n if (this.removeHistoryDuplicates) {\n // Remove older history line if identical to new one\n const dupIndex = ArrayPrototypeIndexOf(this.history\x2C this.line);\n if (dupIndex !== -1) ArrayPrototypeSplice(this.history\x2C dupIndex\x2C 1);\n }\n\n ArrayPrototypeUnshift(this.history\x2C this.line);\n\n // Only store so many\n if (this.history.length > this.historySize) ArrayPrototypePop(this.history);\n }\n\n this.historyIndex = -1;\n\n // The listener could change the history object\x2C possibly\n // to remove the last added entry if it is sensitive and should\n // not be persisted in the history\x2C like a password\n const line = this.history[0];\n\n // Emit history event to notify listeners of update\n this.emit('history'\x2C this.history);\n\n return line;\n};\n\n\nInterface.prototype._refreshLine = function() {\n // line length\n const line = this._prompt + this.line;\n const dispPos = this._getDisplayPos(line);\n const lineCols = dispPos.cols;\n const lineRows = dispPos.rows;\n\n // cursor position\n const cursorPos = this.getCursorPos();\n\n // First move to the bottom of the current line\x2C based on cursor pos\n const prevRows = this.prevRows || 0;\n if (prevRows > 0) {\n moveCursor(this.output\x2C 0\x2C -prevRows);\n }\n\n // Cursor to left edge.\n cursorTo(this.output\x2C 0);\n // erase data\n clearScreenDown(this.output);\n\n // Write the prompt and the current buffer content.\n this._writeToOutput(line);\n\n // Force terminal to allocate a new line\n if (lineCols === 0) {\n this._writeToOutput(' ');\n }\n\n // Move cursor to original position.\n cursorTo(this.output\x2C cursorPos.cols);\n\n const diff = lineRows - cursorPos.rows;\n if (diff > 0) {\n moveCursor(this.output\x2C 0\x2C -diff);\n }\n\n this.prevRows = cursorPos.rows;\n};\n\n/**\n * Closes the `readline.Interface` instance.\n * @returns {void}\n */\nInterface.prototype.close = function() {\n if (this.closed) return;\n this.pause();\n if (this.terminal) {\n this._setRawMode(false);\n }\n this.closed = true;\n this.emit('close');\n};\n\n/**\n * Pauses the `input` stream.\n * @returns {void | Interface}\n */\nInterface.prototype.pause = function() {\n if (this.paused) return;\n this.input.pause();\n this.paused = true;\n this.emit('pause');\n return this;\n};\n\n/**\n * Resumes the `input` stream if paused.\n * @returns {void | Interface}\n */\nInterface.prototype.resume = function() {\n if (!this.paused) return;\n this.input.resume();\n this.paused = false;\n this.emit('resume');\n return this;\n};\n\n/**\n * Writes either `data` or a `key` sequence identified by\n * `key` to the `output`.\n * @param {string} d\n * @param {{\n * ctrl?: boolean;\n * meta?: boolean;\n * shift?: boolean;\n * name?: string;\n * }} [key]\n * @returns {void}\n */\nInterface.prototype.write = function(d\x2C key) {\n if (this.paused) this.resume();\n if (this.terminal) {\n this._ttyWrite(d\x2C key);\n } else {\n this._normalWrite(d);\n }\n};\n\nInterface.prototype._normalWrite = function(b) {\n if (b === undefined) {\n return;\n }\n let string = this._decoder.write(b);\n if (this._sawReturnAt &&\n DateNow() - this._sawReturnAt <= this.crlfDelay) {\n string = StringPrototypeReplace(string\x2C /^\\n/\x2C '');\n this._sawReturnAt = 0;\n }\n\n // Run test() on the new string chunk\x2C not on the entire line buffer.\n const newPartContainsEnding = RegExpPrototypeTest(lineEnding\x2C string);\n\n if (this._line_buffer) {\n string = this._line_buffer + string;\n this._line_buffer = null;\n }\n if (newPartContainsEnding) {\n this._sawReturnAt = StringPrototypeEndsWith(string\x2C '\\r') ? DateNow() : 0;\n\n // Got one or more newlines; process into "line" events\n const lines = StringPrototypeSplit(string\x2C lineEnding);\n // Either '' or (conceivably) the unfinished portion of the next line\n string = ArrayPrototypePop(lines);\n this._line_buffer = string;\n for (let n = 0; n < lines.length; n++)\n this._onLine(lines[n]);\n } else if (string) {\n // No newlines this time\x2C save what we have for next time\n this._line_buffer = string;\n }\n};\n\nInterface.prototype._insertString = function(c) {\n if (this.cursor < this.line.length) {\n const beg = StringPrototypeSlice(this.line\x2C 0\x2C this.cursor);\n const end = StringPrototypeSlice(this.line\x2C this.cursor\x2C this.line.length);\n this.line = beg + c + end;\n this.cursor += c.length;\n this._refreshLine();\n } else {\n this.line += c;\n this.cursor += c.length;\n\n if (this.getCursorPos().cols === 0) {\n this._refreshLine();\n } else {\n this._writeToOutput(c);\n }\n }\n};\n\nInterface.prototype._tabComplete = function(lastKeypressWasTab) {\n this.pause();\n const string = StringPrototypeSlice(this.line\x2C 0\x2C this.cursor);\n this.completer(string\x2C (err\x2C value) => {\n this.resume();\n\n if (err) {\n this._writeToOutput(`Tab completion error: ${inspect(err)}`);\n return;\n }\n\n // Result and the text that was completed.\n const { 0: completions\x2C 1: completeOn } = value;\n\n if (!completions || completions.length === 0) {\n return;\n }\n\n // If there is a common prefix to all matches\x2C then apply that portion.\n const prefix = commonPrefix(ArrayPrototypeFilter(completions\x2C\n (e) => e !== ''));\n if (StringPrototypeStartsWith(prefix\x2C completeOn) &&\n prefix.length > completeOn.length) {\n this._insertString(StringPrototypeSlice(prefix\x2C completeOn.length));\n return;\n } else if (!StringPrototypeStartsWith(completeOn\x2C prefix)) {\n this.line = StringPrototypeSlice(this.line\x2C\n 0\x2C\n this.cursor - completeOn.length) +\n prefix +\n StringPrototypeSlice(this.line\x2C\n this.cursor\x2C\n this.line.length);\n this.cursor = this.cursor - completeOn.length + prefix.length;\n this._refreshLine();\n return;\n }\n\n if (!lastKeypressWasTab) {\n return;\n }\n\n // Apply/show completions.\n const completionsWidth = ArrayPrototypeMap(completions\x2C\n (e) => getStringWidth(e));\n const width = MathMaxApply(completionsWidth) + 2; // 2 space padding\n let maxColumns = MathFloor(this.columns / width) || 1;\n if (maxColumns === Infinity) {\n maxColumns = 1;\n }\n let output = '\\r\\n';\n let lineIndex = 0;\n let whitespace = 0;\n for (let i = 0; i < completions.length; i++) {\n const completion = completions[i];\n if (completion === '' || lineIndex === maxColumns) {\n output += '\\r\\n';\n lineIndex = 0;\n whitespace = 0;\n } else {\n output += StringPrototypeRepeat(' '\x2C whitespace);\n }\n if (completion !== '') {\n output += completion;\n whitespace = width - completionsWidth[i];\n lineIndex++;\n } else {\n output += '\\r\\n';\n }\n }\n if (lineIndex !== 0) {\n output += '\\r\\n\\r\\n';\n }\n this._writeToOutput(output);\n this._refreshLine();\n });\n};\n\nInterface.prototype._wordLeft = function() {\n if (this.cursor > 0) {\n // Reverse the string and match a word near beginning\n // to avoid quadratic time complexity\n const leading = StringPrototypeSlice(this.line\x2C 0\x2C this.cursor);\n const reversed = ArrayPrototypeJoin(\n ArrayPrototypeReverse(ArrayFrom(leading))\x2C '');\n const match = StringPrototypeMatch(reversed\x2C /^\\s*(?:[^\\w\\s]+|\\w+)?/);\n this._moveCursor(-match[0].length);\n }\n};\n\n\nInterface.prototype._wordRight = function() {\n if (this.cursor < this.line.length) {\n const trailing = StringPrototypeSlice(this.line\x2C this.cursor);\n const match = StringPrototypeMatch(trailing\x2C /^(?:\\s+|[^\\w\\s]+|\\w+)\\s*/);\n this._moveCursor(match[0].length);\n }\n};\n\nInterface.prototype._deleteLeft = function() {\n if (this.cursor > 0 && this.line.length > 0) {\n // The number of UTF-16 units comprising the character to the left\n const charSize = charLengthLeft(this.line\x2C this.cursor);\n this.line = StringPrototypeSlice(this.line\x2C 0\x2C this.cursor - charSize) +\n StringPrototypeSlice(this.line\x2C this.cursor\x2C this.line.length);\n\n this.cursor -= charSize;\n this._refreshLine();\n }\n};\n\n\nInterface.prototype._deleteRight = function() {\n if (this.cursor < this.line.length) {\n // The number of UTF-16 units comprising the character to the left\n const charSize = charLengthAt(this.line\x2C this.cursor);\n this.line = StringPrototypeSlice(this.line\x2C 0\x2C this.cursor) +\n StringPrototypeSlice(this.line\x2C this.cursor + charSize\x2C this.line.length);\n this._refreshLine();\n }\n};\n\n\nInterface.prototype._deleteWordLeft = function() {\n if (this.cursor > 0) {\n // Reverse the string and match a word near beginning\n // to avoid quadratic time complexity\n let leading = StringPrototypeSlice(this.line\x2C 0\x2C this.cursor);\n const reversed = ArrayPrototypeJoin(\n ArrayPrototypeReverse(ArrayFrom(leading))\x2C '');\n const match = StringPrototypeMatch(reversed\x2C /^\\s*(?:[^\\w\\s]+|\\w+)?/);\n leading = StringPrototypeSlice(leading\x2C 0\x2C\n leading.length - match[0].length);\n this.line = leading + StringPrototypeSlice(this.line\x2C this.cursor\x2C\n this.line.length);\n this.cursor = leading.length;\n this._refreshLine();\n }\n};\n\n\nInterface.prototype._deleteWordRight = function() {\n if (this.cursor < this.line.length) {\n const trailing = StringPrototypeSlice(this.line\x2C this.cursor);\n const match = StringPrototypeMatch(trailing\x2C /^(?:\\s+|\\W+|\\w+)\\s*/);\n this.line = StringPrototypeSlice(this.line\x2C 0\x2C this.cursor) +\n StringPrototypeSlice(trailing\x2C match[0].length);\n this._refreshLine();\n }\n};\n\n\nInterface.prototype._deleteLineLeft = function() {\n this.line = StringPrototypeSlice(this.line\x2C this.cursor);\n this.cursor = 0;\n this._refreshLine();\n};\n\n\nInterface.prototype._deleteLineRight = function() {\n this.line = StringPrototypeSlice(this.line\x2C 0\x2C this.cursor);\n this._refreshLine();\n};\n\n\nInterface.prototype.clearLine = function() {\n this._moveCursor(+Infinity);\n this._writeToOutput('\\r\\n');\n this.line = '';\n this.cursor = 0;\n this.prevRows = 0;\n};\n\n\nInterface.prototype._line = function() {\n const line = this._addHistory();\n this.clearLine();\n this._onLine(line);\n};\n\n// TODO(BridgeAR): Add underscores to the search part and a red background in\n// case no match is found. This should only be the visual part and not the\n// actual line content!\n// TODO(BridgeAR): In case the substring based search is active and the end is\n// reached\x2C show a comment how to search the history as before. E.g.\x2C using\n// <ctrl> + N. Only show this after two/three UPs or DOWNs\x2C not on the first\n// one.\nInterface.prototype._historyNext = function() {\n if (this.historyIndex >= 0) {\n const search = this[kSubstringSearch] || '';\n let index = this.historyIndex - 1;\n while (index >= 0 &&\n (!StringPrototypeStartsWith(this.history[index]\x2C search) ||\n this.line === this.history[index])) {\n index--;\n }\n if (index === -1) {\n this.line = search;\n } else {\n this.line = this.history[index];\n }\n this.historyIndex = index;\n this.cursor = this.line.length; // Set cursor to end of line.\n this._refreshLine();\n }\n};\n\nInterface.prototype._historyPrev = function() {\n if (this.historyIndex < this.history.length && this.history.length) {\n const search = this[kSubstringSearch] || '';\n let index = this.historyIndex + 1;\n while (index < this.history.length &&\n (!StringPrototypeStartsWith(this.history[index]\x2C search) ||\n this.line === this.history[index])) {\n index++;\n }\n if (index === this.history.length) {\n this.line = search;\n } else {\n this.line = this.history[index];\n }\n this.historyIndex = index;\n this.cursor = this.line.length; // Set cursor to end of line.\n this._refreshLine();\n }\n};\n\n// Returns the last character's display position of the given string\nInterface.prototype._getDisplayPos = function(str) {\n let offset = 0;\n const col = this.columns;\n let rows = 0;\n str = stripVTControlCharacters(str);\n for (const char of new SafeStringIterator(str)) {\n if (char === '\\n') {\n // Rows must be incremented by 1 even if offset = 0 or col = +Infinity.\n rows += MathCeil(offset / col) || 1;\n offset = 0;\n continue;\n }\n // Tabs must be aligned by an offset of the tab size.\n if (char === '\\t') {\n offset += this.tabSize - (offset % this.tabSize);\n continue;\n }\n const width = getStringWidth(char);\n if (width === 0 || width === 1) {\n offset += width;\n } else { // width === 2\n if ((offset + 1) % col === 0) {\n offset++;\n }\n offset += 2;\n }\n }\n const cols = offset % col;\n rows += (offset - cols) / col;\n return { cols\x2C rows };\n};\n\n/**\n * Returns the real position of the cursor in relation\n * to the input prompt + string.\n * @returns {{\n * rows: number;\n * cols: number;\n * }}\n */\nInterface.prototype.getCursorPos = function() {\n const strBeforeCursor = this._prompt +\n StringPrototypeSlice(this.line\x2C 0\x2C this.cursor);\n return this._getDisplayPos(strBeforeCursor);\n};\nInterface.prototype._getCursorPos = Interface.prototype.getCursorPos;\n\n// This function moves cursor dx places to the right\n// (-dx for left) and refreshes the line if it is needed.\nInterface.prototype._moveCursor = function(dx) {\n if (dx === 0) {\n return;\n }\n const oldPos = this.getCursorPos();\n this.cursor += dx;\n\n // Bounds check\n if (this.cursor < 0) {\n this.cursor = 0;\n } else if (this.cursor > this.line.length) {\n this.cursor = this.line.length;\n }\n\n const newPos = this.getCursorPos();\n\n // Check if cursor stayed on the line.\n if (oldPos.rows === newPos.rows) {\n const diffWidth = newPos.cols - oldPos.cols;\n moveCursor(this.output\x2C diffWidth\x2C 0);\n } else {\n this._refreshLine();\n }\n};\n\nfunction _ttyWriteDumb(s\x2C key) {\n key = key || {};\n\n if (key.name === 'escape') return;\n\n if (this._sawReturnAt && key.name !== 'enter')\n this._sawReturnAt = 0;\n\n if (key.ctrl) {\n if (key.name === 'c') {\n if (this.listenerCount('SIGINT') > 0) {\n this.emit('SIGINT');\n } else {\n // This readline instance is finished\n this.close();\n }\n\n return;\n } else if (key.name === 'd') {\n this.close();\n return;\n }\n }\n\n switch (key.name) {\n case 'return': // Carriage return\x2C i.e. \\r\n this._sawReturnAt = DateNow();\n this._line();\n break;\n\n case 'enter':\n // When key interval > crlfDelay\n if (this._sawReturnAt === 0 ||\n DateNow() - this._sawReturnAt > this.crlfDelay) {\n this._line();\n }\n this._sawReturnAt = 0;\n break;\n\n default:\n if (typeof s === 'string' && s) {\n this.line += s;\n this.cursor += s.length;\n this._writeToOutput(s);\n }\n }\n}\n\n// Handle a write from the tty\nInterface.prototype._ttyWrite = function(s\x2C key) {\n const previousKey = this._previousKey;\n key = key || {};\n this._previousKey = key;\n\n // Activate or deactivate substring search.\n if ((key.name === 'up' || key.name === 'down') &&\n !key.ctrl && !key.meta && !key.shift) {\n if (this[kSubstringSearch] === null) {\n this[kSubstringSearch] = StringPrototypeSlice(this.line\x2C 0\x2C this.cursor);\n }\n } else if (this[kSubstringSearch] !== null) {\n this[kSubstringSearch] = null;\n // Reset the index in case there's no match.\n if (this.history.length === this.historyIndex) {\n this.historyIndex = -1;\n }\n }\n\n // Ignore escape key\x2C fixes\n // https://github.com/nodejs/node-v0.x-archive/issues/2876.\n if (key.name === 'escape') return;\n\n if (key.ctrl && key.shift) {\n /* Control and shift pressed */\n switch (key.name) {\n // TODO(BridgeAR): The transmitted escape sequence is `\\b` and that is\n // identical to <ctrl>-h. It should have a unique escape sequence.\n case 'backspace':\n this._deleteLineLeft();\n break;\n\n case 'delete':\n this._deleteLineRight();\n break;\n }\n\n } else if (key.ctrl) {\n /* Control key pressed */\n\n switch (key.name) {\n case 'c':\n if (this.listenerCount('SIGINT') > 0) {\n this.emit('SIGINT');\n } else {\n // This readline instance is finished\n this.close();\n }\n break;\n\n case 'h': // delete left\n this._deleteLeft();\n break;\n\n case 'd': // delete right or EOF\n if (this.cursor === 0 && this.line.length === 0) {\n // This readline instance is finished\n this.close();\n } else if (this.cursor < this.line.length) {\n this._deleteRight();\n }\n break;\n\n case 'u': // Delete from current to start of line\n this._deleteLineLeft();\n break;\n\n case 'k': // Delete from current to end of line\n this._deleteLineRight();\n break;\n\n case 'a': // Go to the start of the line\n this._moveCursor(-Infinity);\n break;\n\n case 'e': // Go to the end of the line\n this._moveCursor(+Infinity);\n break;\n\n case 'b': // back one character\n this._moveCursor(-charLengthLeft(this.line\x2C this.cursor));\n break;\n\n case 'f': // Forward one character\n this._moveCursor(+charLengthAt(this.line\x2C this.cursor));\n break;\n\n case 'l': // Clear the whole screen\n cursorTo(this.output\x2C 0\x2C 0);\n clearScreenDown(this.output);\n this._refreshLine();\n break;\n\n case 'n': // next history item\n this._historyNext();\n break;\n\n case 'p': // Previous history item\n this._historyPrev();\n break;\n\n case 'z':\n if (process.platform === 'win32') break;\n if (this.listenerCount('SIGTSTP') > 0) {\n this.emit('SIGTSTP');\n } else {\n process.once('SIGCONT'\x2C () => {\n // Don't raise events if stream has already been abandoned.\n if (!this.paused) {\n // Stream must be paused and resumed after SIGCONT to catch\n // SIGINT\x2C SIGTSTP\x2C and EOF.\n this.pause();\n this.emit('SIGCONT');\n }\n // Explicitly re-enable "raw mode" and move the cursor to\n // the correct position.\n // See https://github.com/joyent/node/issues/3295.\n this._setRawMode(true);\n this._refreshLine();\n });\n this._setRawMode(false);\n process.kill(process.pid\x2C 'SIGTSTP');\n }\n break;\n\n case 'w': // Delete backwards to a word boundary\n // TODO(BridgeAR): The transmitted escape sequence is `\\b` and that is\n // identical to <ctrl>-h. It should have a unique escape sequence.\n // Falls through\n case 'backspace':\n this._deleteWordLeft();\n break;\n\n case 'delete': // Delete forward to a word boundary\n this._deleteWordRight();\n break;\n\n case 'left':\n this._wordLeft();\n break;\n\n case 'right':\n this._wordRight();\n break;\n }\n\n } else if (key.meta) {\n /* Meta key pressed */\n\n switch (key.name) {\n case 'b': // backward word\n this._wordLeft();\n break;\n\n case 'f': // forward word\n this._wordRight();\n break;\n\n case 'd': // delete forward word\n case 'delete':\n this._deleteWordRight();\n break;\n\n case 'backspace': // Delete backwards to a word boundary\n this._deleteWordLeft();\n break;\n }\n\n } else {\n /* No modifier keys used */\n\n // \\r bookkeeping is only relevant if a \\n comes right after.\n if (this._sawReturnAt && key.name !== 'enter')\n this._sawReturnAt = 0;\n\n switch (key.name) {\n case 'return': // Carriage return\x2C i.e. \\r\n this._sawReturnAt = DateNow();\n this._line();\n break;\n\n case 'enter':\n // When key interval > crlfDelay\n if (this._sawReturnAt === 0 ||\n DateNow() - this._sawReturnAt > this.crlfDelay) {\n this._line();\n }\n this._sawReturnAt = 0;\n break;\n\n case 'backspace':\n this._deleteLeft();\n break;\n\n case 'delete':\n this._deleteRight();\n break;\n\n case 'left':\n // Obtain the code point to the left\n this._moveCursor(-charLengthLeft(this.line\x2C this.cursor));\n break;\n\n case 'right':\n this._moveCursor(+charLengthAt(this.line\x2C this.cursor));\n break;\n\n case 'home':\n this._moveCursor(-Infinity);\n break;\n\n case 'end':\n this._moveCursor(+Infinity);\n break;\n\n case 'up':\n this._historyPrev();\n break;\n\n case 'down':\n this._historyNext();\n break;\n\n case 'tab':\n // If tab completion enabled\x2C do that...\n if (typeof this.completer === 'function' && this.isCompletionEnabled) {\n const lastKeypressWasTab = previousKey && previousKey.name === 'tab';\n this._tabComplete(lastKeypressWasTab);\n break;\n }\n // falls through\n default:\n if (typeof s === 'string' && s) {\n const lines = StringPrototypeSplit(s\x2C /\\r\\n|\\n|\\r/);\n for (let i = 0\x2C len = lines.length; i < len; i++) {\n if (i > 0) {\n this._line();\n }\n this._insertString(lines[i]);\n }\n }\n }\n }\n};\n\n/**\n * Creates an `AsyncIterator` object that iterates through\n * each line in the input stream as a string.\n * @returns {Symbol.AsyncIterator}\n */\nInterface.prototype[SymbolAsyncIterator] = function() {\n if (this[kLineObjectStream] === undefined) {\n if (Readable === undefined) {\n Readable = require('stream').Readable;\n }\n const readable = new Readable({\n objectMode: true\x2C\n read: () => {\n this.resume();\n }\x2C\n destroy: (err\x2C cb) => {\n this.off('line'\x2C lineListener);\n this.off('close'\x2C closeListener);\n this.close();\n cb(err);\n }\n });\n const lineListener = (input) => {\n if (!readable.push(input)) {\n // TODO(rexagod): drain to resume flow\n this.pause();\n }\n };\n const closeListener = () => {\n readable.push(null);\n };\n const errorListener = (err) => {\n readable.destroy(err);\n };\n this.on('error'\x2C errorListener);\n this.on('line'\x2C lineListener);\n this.on('close'\x2C closeListener);\n this[kLineObjectStream] = readable;\n }\n\n return this[kLineObjectStream][SymbolAsyncIterator]();\n};\n\nmodule.exports = {\n Interface\x2C\n clearLine\x2C\n clearScreenDown\x2C\n createInterface\x2C\n cursorTo\x2C\n emitKeypressEvents\x2C\n moveCursor\n};\n
code-source-info,0x2148b307d9b6,122,0,36148,C0O0C4O36148,,
code-creation,Function,10,100286,0x2148b307f4ce,1373, node:readline:1:1,0x2148b307d920,~
code-source-info,0x2148b307f4ce,122,0,36148,C0O0C210O1412C216O1425C222O1449C228O1474C234O1496C240O1517C246O1538C252O1563C258O1587C264O1612C270O1623C276O1648C282O1673C288O1685C294O1698C300O1709C306O1725C312O1743C318O1758C323O1782C328O1806C334O1829C340O1859C346O1886C352O1910C358O1935C364O1961C370O1985C376O2009C382O2038C388O2061C394O2072C400O2089C405O2099C411O2122C417O2230C423O2230C428O2170C433O2183C439O2202C445O2214C451O2297C457O2297C461O2297C463O2381C469O2381C474O2357C480O2371C485O2420C491O2542C497O2542C502O2464C508O2487C514O2504C520O2522C526O2643C532O2643C537O2584C543O2595C549O2613C555O2698C561O2698C565O2698C567O2799C573O2799C578O2727C584O2743C590O2761C596O2777C602O2858C608O2858C613O2844C618O2911C624O2911C629O2893C635O2990C636O2990C638O3139C640O3139C642O3165C644O3165C646O3244C650O3244C652O3289C655O3289C659O3289C661O3343C664O3343C668O3343C670O3459C674O3459C676O9695C679O9726C687O9750C692O9695C697O9762C703O9762C708O9810C711O9841C724O9914C732O9810C737O10130C740O10140C749O10160C753O10292C756O10302C765O10322C769O10365C772O10375C781O10397C785O10701C788O10711C797O10728C801O11145C804O11155C813O11174C817O11768C820O11778C825O11788C830O11807C839O11815C843O12429C846O12439C855O12457C859O12681C862O12691C871O12716C875O12915C878O12925C887O12947C891O14070C894O14080C903O14103C907O15115C910O15125C919O15141C923O15372C926O15382C935O15398C939O15605C942O15615C951O15632C955O16006C958O16016C967O16032C971O16183C974O16193C983O16216C987O17306C990O17316C999O17340C1003O17813C1006O17823C1015O17846C1019O20347C1022O20357C1031O20377C1035O20805C1038O20815C1047O20836C1051O21083C1054O21093C1063O21115C1067O21532C1070O21542C1079O21565C1083O21931C1086O21941C1095O21967C1099O22666C1102O22676C1111O22703C1115O23063C1118O23073C1127O23099C1131O23221C1134O23231C1143O23258C1147O23364C1150O23374C1159O23394C1163O23534C1166O23544C1175O23560C1179O24073C1182O24083C1191O24106C1195O24647C1198O24657C1207O24680C1211O25364C1214O25374C1223O25399C1227O26387C1230O26397C1239O26420C1243O26601C1246O26611C1254O26647C1259O26657C1263O26635C1267O26783C1270O26793C1279O26815C1283O28362C1286O28372C1295O28392C1299O35035C1302O35045C1310O35055C1314O35076C1318O36015C1325O36036C1331O36049C1337O36062C1343O36081C1349O36100C1355O36112C1361O36134C1367O36030C1372O36147,,
tick,0x7f4debd4449c,100355,1,0xb515a0,3,0xd44a10,0xa52511ba43c,0xa52511b972d,0xb6d5357c472,0xa52511ba45d,0xa52511b972d,0xb6d53578415,0xa52511ba45d,0xa52511b972d,0xb6d53549b2e,0xb6d53549025,0x158e77f
tick,0x1173c9a,100597,1,0xb515a0,2,0xd44a10,0xa52511ba43c,0xa52511b972d,0x2148b307f675,0xa52511ba45d,0xa52511b972d,0xb6d5357c472,0xa52511ba45d,0xa52511b972d,0xb6d53578415,0xa52511ba45d,0xa52511b972d,0xb6d53549b2e,0xb6d53549025,0x158e77f
new,MemoryChunk,0x167e03040000,262144
code-creation,Eval,10,100726,0xb6d5357ff86,5, node:internal/readline/callbacks:1:1,0xb6d5357fd90,~
script-source,123,node:internal/readline/callbacks,'use strict';\n\nconst {\n NumberIsNaN\x2C\n} = primordials;\n\nconst {\n codes: {\n ERR_INVALID_ARG_VALUE\x2C\n ERR_INVALID_CURSOR_POS\x2C\n }\x2C\n} = require('internal/errors');\n\nconst {\n validateCallback\x2C\n} = require('internal/validators');\nconst {\n CSI\x2C\n} = require('internal/readline/utils');\n\nconst {\n kClearLine\x2C\n kClearScreenDown\x2C\n kClearToLineBeginning\x2C\n kClearToLineEnd\x2C\n} = CSI;\n\n\n/**\n * moves the cursor to the x and y coordinate on the given stream\n */\n\nfunction cursorTo(stream\x2C x\x2C y\x2C callback) {\n if (callback !== undefined) {\n validateCallback(callback);\n }\n\n if (typeof y === 'function') {\n callback = y;\n y = undefined;\n }\n\n if (NumberIsNaN(x)) throw new ERR_INVALID_ARG_VALUE('x'\x2C x);\n if (NumberIsNaN(y)) throw new ERR_INVALID_ARG_VALUE('y'\x2C y);\n\n if (stream == null || (typeof x !== 'number' && typeof y !== 'number')) {\n if (typeof callback === 'function') process.nextTick(callback\x2C null);\n return true;\n }\n\n if (typeof x !== 'number') throw new ERR_INVALID_CURSOR_POS();\n\n const data = typeof y !== 'number' ? CSI`${x + 1}G` : CSI`${y + 1};${x + 1}H`;\n return stream.write(data\x2C callback);\n}\n\n/**\n * moves the cursor relative to its current location\n */\n\nfunction moveCursor(stream\x2C dx\x2C dy\x2C callback) {\n if (callback !== undefined) {\n validateCallback(callback);\n }\n\n if (stream == null || !(dx || dy)) {\n if (typeof callback === 'function') process.nextTick(callback\x2C null);\n return true;\n }\n\n let data = '';\n\n if (dx < 0) {\n data += CSI`${-dx}D`;\n } else if (dx > 0) {\n data += CSI`${dx}C`;\n }\n\n if (dy < 0) {\n data += CSI`${-dy}A`;\n } else if (dy > 0) {\n data += CSI`${dy}B`;\n }\n\n return stream.write(data\x2C callback);\n}\n\n/**\n * clears the current line the cursor is on:\n * -1 for left of the cursor\n * +1 for right of the cursor\n * 0 for the entire line\n */\n\nfunction clearLine(stream\x2C dir\x2C callback) {\n if (callback !== undefined) {\n validateCallback(callback);\n }\n\n if (stream === null || stream === undefined) {\n if (typeof callback === 'function') process.nextTick(callback\x2C null);\n return true;\n }\n\n const type =\n dir < 0 ? kClearToLineBeginning : dir > 0 ? kClearToLineEnd : kClearLine;\n return stream.write(type\x2C callback);\n}\n\n/**\n * clears the screen from the current position of the cursor down\n */\n\nfunction clearScreenDown(stream\x2C callback) {\n if (callback !== undefined) {\n validateCallback(callback);\n }\n\n if (stream === null || stream === undefined) {\n if (typeof callback === 'function') process.nextTick(callback\x2C null);\n return true;\n }\n\n return stream.write(kClearScreenDown\x2C callback);\n}\n\nmodule.exports = {\n clearLine\x2C\n clearScreenDown\x2C\n cursorTo\x2C\n moveCursor\x2C\n};\n
code-source-info,0xb6d5357ff86,123,0,2706,C0O0C4O2706,,
code-creation,Function,10,100884,0x167e0304114e,179, node:internal/readline/callbacks:1:1,0xb6d5357fef0,~
code-source-info,0x167e0304114e,123,0,2706,C0O0C56O25C62O139C65O139C70O139C75O79C81O106C87O200C90O200C95O178C101O251C104O251C109O242C115O378C118O298C124O312C130O332C136O357C142O2626C149O2647C155O2660C161O2679C167O2691C173O2641C178O2705,,
code-creation,Eval,10,101198,0x167e03041b7e,5, node:internal/readline/utils:1:1,0x167e03041968,~
script-source,124,node:internal/readline/utils,'use strict';\n\nconst {\n ArrayPrototypeSlice\x2C\n ArrayPrototypeSort\x2C\n RegExpPrototypeTest\x2C\n StringFromCharCode\x2C\n StringPrototypeCharCodeAt\x2C\n StringPrototypeCodePointAt\x2C\n StringPrototypeMatch\x2C\n StringPrototypeSlice\x2C\n StringPrototypeToLowerCase\x2C\n Symbol\x2C\n} = primordials;\n\nconst kUTF16SurrogateThreshold = 0x10000; // 2 ** 16\nconst kEscape = '\\x1b';\nconst kSubstringSearch = Symbol('kSubstringSearch');\n\nfunction CSI(strings\x2C ...args) {\n let ret = `${kEscape}[`;\n for (let n = 0; n < strings.length; n++) {\n ret += strings[n];\n if (n < args.length)\n ret += args[n];\n }\n return ret;\n}\n\nCSI.kEscape = kEscape;\nCSI.kClearToLineBeginning = CSI`1K`;\nCSI.kClearToLineEnd = CSI`0K`;\nCSI.kClearLine = CSI`2K`;\nCSI.kClearScreenDown = CSI`0J`;\n\n// TODO(BridgeAR): Treat combined characters as single character\x2C i.e\x2C\n// 'a\\u0301' and '\\u0301a' (both have the same visual output).\n// Check Canonical_Combining_Class in\n// http://userguide.icu-project.org/strings/properties\nfunction charLengthLeft(str\x2C i) {\n if (i <= 0)\n return 0;\n if ((i > 1 &&\n StringPrototypeCodePointAt(str\x2C i - 2) >= kUTF16SurrogateThreshold) ||\n StringPrototypeCodePointAt(str\x2C i - 1) >= kUTF16SurrogateThreshold) {\n return 2;\n }\n return 1;\n}\n\nfunction charLengthAt(str\x2C i) {\n if (str.length <= i) {\n // Pretend to move to the right. This is necessary to autocomplete while\n // moving to the right.\n return 1;\n }\n return StringPrototypeCodePointAt(str\x2C i) >= kUTF16SurrogateThreshold ? 2 : 1;\n}\n\n/*\n Some patterns seen in terminal key escape codes\x2C derived from combos seen\n at http://www.midnight-commander.org/browser/lib/tty/key.c\n\n ESC letter\n ESC [ letter\n ESC [ modifier letter\n ESC [ 1 ; modifier letter\n ESC [ num char\n ESC [ num ; modifier char\n ESC O letter\n ESC O modifier letter\n ESC O 1 ; modifier letter\n ESC N letter\n ESC [ [ num ; modifier char\n ESC [ [ 1 ; modifier letter\n ESC ESC [ num char\n ESC ESC O letter\n\n - char is usually ~ but $ and ^ also happen with rxvt\n - modifier is 1 +\n (shift * 1) +\n (left_alt * 2) +\n (ctrl * 4) +\n (right_alt * 8)\n - two leading ESCs apparently mean the same as one leading ESC\n*/\nfunction* emitKeys(stream) {\n while (true) {\n let ch = yield;\n let s = ch;\n let escaped = false;\n const key = {\n sequence: null\x2C\n name: undefined\x2C\n ctrl: false\x2C\n meta: false\x2C\n shift: false\n };\n\n if (ch === kEscape) {\n escaped = true;\n s += (ch = yield);\n\n if (ch === kEscape) {\n s += (ch = yield);\n }\n }\n\n if (escaped && (ch === 'O' || ch === '[')) {\n // ANSI escape sequence\n let code = ch;\n let modifier = 0;\n\n if (ch === 'O') {\n // ESC O letter\n // ESC O modifier letter\n s += (ch = yield);\n\n if (ch >= '0' && ch <= '9') {\n modifier = (ch >> 0) - 1;\n s += (ch = yield);\n }\n\n code += ch;\n } else if (ch === '[') {\n // ESC [ letter\n // ESC [ modifier letter\n // ESC [ [ modifier letter\n // ESC [ [ num char\n s += (ch = yield);\n\n if (ch === '[') {\n // \\x1b[[A\n // ^--- escape codes might have a second bracket\n code += ch;\n s += (ch = yield);\n }\n\n /*\n * Here and later we try to buffer just enough data to get\n * a complete ascii sequence.\n *\n * We have basically two classes of ascii characters to process:\n *\n *\n * 1. `\\x1b[24;5~` should be parsed as { code: '[24~'\x2C modifier: 5 }\n *\n * This particular example is featuring Ctrl+F12 in xterm.\n *\n * - `;5` part is optional\x2C e.g. it could be `\\x1b[24~`\n * - first part can contain one or two digits\n *\n * So the generic regexp is like /^\\d\\d?(;\\d)?[~^$]$/\n *\n *\n * 2. `\\x1b[1;5H` should be parsed as { code: '[H'\x2C modifier: 5 }\n *\n * This particular example is featuring Ctrl+Home in xterm.\n *\n * - `1;5` part is optional\x2C e.g. it could be `\\x1b[H`\n * - `1;` part is optional\x2C e.g. it could be `\\x1b[5H`\n *\n * So the generic regexp is like /^((\\d;)?\\d)?[A-Za-z]$/\n *\n */\n const cmdStart = s.length - 1;\n\n // Skip one or two leading digits\n if (ch >= '0' && ch <= '9') {\n s += (ch = yield);\n\n if (ch >= '0' && ch <= '9') {\n s += (ch = yield);\n }\n }\n\n // skip modifier\n if (ch === ';') {\n s += (ch = yield);\n\n if (ch >= '0' && ch <= '9') {\n s += yield;\n }\n }\n\n /*\n * We buffered enough data\x2C now trying to extract code\n * and modifier from it\n */\n const cmd = StringPrototypeSlice(s\x2C cmdStart);\n let match;\n\n if ((match = StringPrototypeMatch(cmd\x2C /^(\\d\\d?)(;(\\d))?([~^$])$/))) {\n code += match[1] + match[4];\n modifier = (match[3] || 1) - 1;\n } else if (\n (match = StringPrototypeMatch(cmd\x2C /^((\\d;)?(\\d))?([A-Za-z])$/))\n ) {\n code += match[4];\n modifier = (match[3] || 1) - 1;\n } else {\n code += cmd;\n }\n }\n\n // Parse the key modifier\n key.ctrl = !!(modifier & 4);\n key.meta = !!(modifier & 10);\n key.shift = !!(modifier & 1);\n key.code = code;\n\n // Parse the key itself\n switch (code) {\n /* xterm/gnome ESC [ letter (with modifier) */\n case '[P': key.name = 'f1'; break;\n case '[Q': key.name = 'f2'; break;\n case '[R': key.name = 'f3'; break;\n case '[S': key.name = 'f4'; break;\n\n /* xterm/gnome ESC O letter (without modifier) */\n case 'OP': key.name = 'f1'; break;\n case 'OQ': key.name = 'f2'; break;\n case 'OR': key.name = 'f3'; break;\n case 'OS': key.name = 'f4'; break;\n\n /* xterm/rxvt ESC [ number ~ */\n case '[11~': key.name = 'f1'; break;\n case '[12~': key.name = 'f2'; break;\n case '[13~': key.name = 'f3'; break;\n case '[14~': key.name = 'f4'; break;\n\n /* from Cygwin and used in libuv */\n case '[[A': key.name = 'f1'; break;\n case '[[B': key.name = 'f2'; break;\n case '[[C': key.name = 'f3'; break;\n case '[[D': key.name = 'f4'; break;\n case '[[E': key.name = 'f5'; break;\n\n /* common */\n case '[15~': key.name = 'f5'; break;\n case '[17~': key.name = 'f6'; break;\n case '[18~': key.name = 'f7'; break;\n case '[19~': key.name = 'f8'; break;\n case '[20~': key.name = 'f9'; break;\n case '[21~': key.name = 'f10'; break;\n case '[23~': key.name = 'f11'; break;\n case '[24~': key.name = 'f12'; break;\n\n /* xterm ESC [ letter */\n case '[A': key.name = 'up'; break;\n case '[B': key.name = 'down'; break;\n case '[C': key.name = 'right'; break;\n case '[D': key.name = 'left'; break;\n case '[E': key.name = 'clear'; break;\n case '[F': key.name = 'end'; break;\n case '[H': key.name = 'home'; break;\n\n /* xterm/gnome ESC O letter */\n case 'OA': key.name = 'up'; break;\n case 'OB': key.name = 'down'; break;\n case 'OC': key.name = 'right'; break;\n case 'OD': key.name = 'left'; break;\n case 'OE': key.name = 'clear'; break;\n case 'OF': key.name = 'end'; break;\n case 'OH': key.name = 'home'; break;\n\n /* xterm/rxvt ESC [ number ~ */\n case '[1~': key.name = 'home'; break;\n case '[2~': key.name = 'insert'; break;\n case '[3~': key.name = 'delete'; break;\n case '[4~': key.name = 'end'; break;\n case '[5~': key.name = 'pageup'; break;\n case '[6~': key.name = 'pagedown'; break;\n\n /* putty */\n case '[[5~': key.name = 'pageup'; break;\n case '[[6~': key.name = 'pagedown'; break;\n\n /* rxvt */\n case '[7~': key.name = 'home'; break;\n case '[8~': key.name = 'end'; break;\n\n /* rxvt keys with modifiers */\n case '[a': key.name = 'up'; key.shift = true; break;\n case '[b': key.name = 'down'; key.shift = true; break;\n case '[c': key.name = 'right'; key.shift = true; break;\n case '[d': key.name = 'left'; key.shift = true; break;\n case '[e': key.name = 'clear'; key.shift = true; break;\n\n case '[2$': key.name = 'insert'; key.shift = true; break;\n case '[3$': key.name = 'delete'; key.shift = true; break;\n case '[5$': key.name = 'pageup'; key.shift = true; break;\n case '[6$': key.name = 'pagedown'; key.shift = true; break;\n case '[7$': key.name = 'home'; key.shift = true; break;\n case '[8$': key.name = 'end'; key.shift = true; break;\n\n case 'Oa': key.name = 'up'; key.ctrl = true; break;\n case 'Ob': key.name = 'down'; key.ctrl = true; break;\n case 'Oc': key.name = 'right'; key.ctrl = true; break;\n case 'Od': key.name = 'left'; key.ctrl = true; break;\n case 'Oe': key.name = 'clear'; key.ctrl = true; break;\n\n case '[2^': key.name = 'insert'; key.ctrl = true; break;\n case '[3^': key.name = 'delete'; key.ctrl = true; break;\n case '[5^': key.name = 'pageup'; key.ctrl = true; break;\n case '[6^': key.name = 'pagedown'; key.ctrl = true; break;\n case '[7^': key.name = 'home'; key.ctrl = true; break;\n case '[8^': key.name = 'end'; key.ctrl = true; break;\n\n /* misc. */\n case '[Z': key.name = 'tab'; key.shift = true; break;\n default: key.name = 'undefined'; break;\n }\n } else if (ch === '\\r') {\n // carriage return\n key.name = 'return';\n key.meta = escaped;\n } else if (ch === '\\n') {\n // Enter\x2C should have been called linefeed\n key.name = 'enter';\n key.meta = escaped;\n } else if (ch === '\\t') {\n // tab\n key.name = 'tab';\n key.meta = escaped;\n } else if (ch === '\\b' || ch === '\\x7f') {\n // backspace or ctrl+h\n key.name = 'backspace';\n key.meta = escaped;\n } else if (ch === kEscape) {\n // escape key\n key.name = 'escape';\n key.meta = escaped;\n } else if (ch === ' ') {\n key.name = 'space';\n key.meta = escaped;\n } else if (!escaped && ch <= '\\x1a') {\n // ctrl+letter\n key.name = StringFromCharCode(\n StringPrototypeCharCodeAt(ch) + StringPrototypeCharCodeAt('a') - 1\n );\n key.ctrl = true;\n } else if (RegExpPrototypeTest(/^[0-9A-Za-z]$/\x2C ch)) {\n // Letter\x2C number\x2C shift+letter\n key.name = StringPrototypeToLowerCase(ch);\n key.shift = RegExpPrototypeTest(/^[A-Z]$/\x2C ch);\n key.meta = escaped;\n } else if (escaped) {\n // Escape sequence timeout\n key.name = ch.length ? undefined : 'escape';\n key.meta = true;\n }\n\n key.sequence = s;\n\n if (s.length !== 0 && (key.name !== undefined || escaped)) {\n /* Named character or sequence */\n stream.emit('keypress'\x2C escaped ? undefined : s\x2C key);\n } else if (charLengthAt(s\x2C 0) === s.length) {\n /* Single unnamed character\x2C e.g. "." */\n stream.emit('keypress'\x2C s\x2C key);\n }\n /* Unrecognized or broken escape sequence\x2C don't emit anything */\n }\n}\n\n// This runs in O(n log n).\nfunction commonPrefix(strings) {\n if (strings.length === 1) {\n return strings[0];\n }\n const sorted = ArrayPrototypeSort(ArrayPrototypeSlice(strings));\n const min = sorted[0];\n const max = sorted[sorted.length - 1];\n for (let i = 0; i < min.length; i++) {\n if (min[i] !== max[i]) {\n return StringPrototypeSlice(min\x2C 0\x2C i);\n }\n }\n return min;\n}\n\nmodule.exports = {\n charLengthAt\x2C\n charLengthLeft\x2C\n commonPrefix\x2C\n emitKeys\x2C\n kSubstringSearch\x2C\n CSI\n};\n
code-source-info,0x167e03041b7e,124,0,11859,C0O0C4O11859,,
code-creation,Function,10,101734,0x167e03041fde,246, node:internal/readline/utils:1:1,0x167e03041ae8,~
code-source-info,0x167e03041fde,124,0,11859,C0O0C64O25C70O48C76O70C82O93C88O115C94O144C100O174C106O198C112O222C118O252C123O311C129O311C131O347C133O347C135O380C138O380C143O605C145O617C149O659C153O659C157O654C161O690C165O690C169O685C173O716C177O716C181O711C185O748C189O748C193O743C197O11749C204O11770C210O11786C216O11804C222O11820C228O11832C234O11852C240O11764C245O11858,,
tick,0xfb3388,101761,1,0xb515a0,3,0xd44a10,0xa52511ba43c,0xa52511b972d,0x167e030411b6,0xa52511ba45d,0xa52511b972d,0x2148b307f675,0xa52511ba45d,0xa52511b972d,0xb6d5357c472,0xa52511ba45d,0xa52511b972d,0xb6d53578415,0xa52511ba45d,0xa52511b972d,0xb6d53549b2e,0xb6d53549025,0x158e77f
code-creation,LazyCompile,10,101898,0x167e03042ff6,75,CSI node:internal/readline/utils:20:13,0x167e03041bb0,~
code-source-info,0x167e03042ff6,124,421,603,C0O421C8O454C20O484C22O499C26O489C31O518C33O532C43O554C47O547C52O568C54O579C64O508C69O471C72O590C74O601,,
code-creation,Eval,10,102066,0x167e030442f6,5, node:internal/readline/emitKeypressEvents:1:1,0x167e03044100,~
script-source,125,node:internal/readline/emitKeypressEvents,'use strict';\n\nconst {\n SafeStringIterator\x2C\n Symbol\x2C\n} = primordials;\n\nconst {\n charLengthAt\x2C\n CSI\x2C\n emitKeys\x2C\n} = require('internal/readline/utils');\n\nconst { clearTimeout\x2C setTimeout } = require('timers');\nconst {\n kEscape\x2C\n} = CSI;\n\nconst { StringDecoder } = require('string_decoder');\n\nconst KEYPRESS_DECODER = Symbol('keypress-decoder');\nconst ESCAPE_DECODER = Symbol('escape-decoder');\n\n// GNU readline library - keyseq-timeout is 500ms (default)\nconst ESCAPE_CODE_TIMEOUT = 500;\n\n/**\n * accepts a readable Stream instance and makes it emit "keypress" events\n */\n\nfunction emitKeypressEvents(stream\x2C iface = {}) {\n if (stream[KEYPRESS_DECODER]) return;\n\n stream[KEYPRESS_DECODER] = new StringDecoder('utf8');\n\n stream[ESCAPE_DECODER] = emitKeys(stream);\n stream[ESCAPE_DECODER].next();\n\n const triggerEscape = () => stream[ESCAPE_DECODER].next('');\n const { escapeCodeTimeout = ESCAPE_CODE_TIMEOUT } = iface;\n let timeoutId;\n\n function onData(input) {\n if (stream.listenerCount('keypress') > 0) {\n const string = stream[KEYPRESS_DECODER].write(input);\n if (string) {\n clearTimeout(timeoutId);\n\n // This supports characters of length 2.\n iface._sawKeyPress = charLengthAt(string\x2C 0) === string.length;\n iface.isCompletionEnabled = false;\n\n let length = 0;\n for (const character of new SafeStringIterator(string)) {\n length += character.length;\n if (length === string.length) {\n iface.isCompletionEnabled = true;\n }\n\n try {\n stream[ESCAPE_DECODER].next(character);\n // Escape letter at the tail position\n if (length === string.length && character === kEscape) {\n timeoutId = setTimeout(triggerEscape\x2C escapeCodeTimeout);\n }\n } catch (err) {\n // If the generator throws (it could happen in the `keypress`\n // event)\x2C we need to restart it.\n stream[ESCAPE_DECODER] = emitKeys(stream);\n stream[ESCAPE_DECODER].next();\n throw err;\n }\n }\n }\n } else {\n // Nobody's watching anyway\n stream.removeListener('data'\x2C onData);\n stream.on('newListener'\x2C onNewListener);\n }\n }\n\n function onNewListener(event) {\n if (event === 'keypress') {\n stream.on('data'\x2C onData);\n stream.removeListener('newListener'\x2C onNewListener);\n }\n }\n\n if (stream.listenerCount('keypress') > 0) {\n stream.on('data'\x2C onData);\n } else {\n stream.on('newListener'\x2C onNewListener);\n }\n}\n\nmodule.exports = emitKeypressEvents;\n
code-source-info,0x167e030442f6,125,0,2594,C0O0C4O2594,,
code-creation,Function,10,102189,0x167e03044486,148, node:internal/readline/emitKeypressEvents:1:1,0x167e03044260,~
code-source-info,0x167e03044486,125,0,2594,C0O0C40O25C46O47C51O120C54O120C59O83C65O99C70O106C76O194C79O194C84O165C90O179C96O223C102O268C105O268C110O250C116O321C119O321C123O321C125O372C128O372C132O372C134O487C138O487C140O2557C142O2572C147O2593,,
code-creation,Eval,10,102356,0x167e030454ae,5, node:console:1:1,0x167e03045358,~
script-source,126,node:console,// Copyright Joyent\x2C Inc. and other Node contributors.\n//\n// Permission is hereby granted\x2C free of charge\x2C to any person obtaining a\n// copy of this software and associated documentation files (the\n// "Software")\x2C to deal in the Software without restriction\x2C including\n// without limitation the rights to use\x2C copy\x2C modify\x2C merge\x2C publish\x2C\n// distribute\x2C sublicense\x2C and/or sell copies of the Software\x2C and to permit\n// persons to whom the Software is furnished to do so\x2C subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED "AS IS"\x2C WITHOUT WARRANTY OF ANY KIND\x2C EXPRESS\n// OR IMPLIED\x2C INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY\x2C FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM\x2C\n// DAMAGES OR OTHER LIABILITY\x2C WHETHER IN AN ACTION OF CONTRACT\x2C TORT OR\n// OTHERWISE\x2C ARISING FROM\x2C OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n'use strict';\n\nmodule.exports = require('internal/console/global');\n
code-source-info,0x167e030454ae,126,0,1202,C0O0C4O1202,,
code-creation,Function,10,102418,0x167e03045546,13, node:console:1:1,0x167e03045418,~
code-source-info,0x167e03045546,126,0,1202,C0O1149C3O1166C7O1164C12O1201,,
code-creation,LazyCompile,10,102585,0x167e03045746,31, node:repl:128:3,0xb6d5357b098,~
code-source-info,0x167e03045746,120,3744,3821,C0O3786C8O3752C18O3790C24O3790C30O3821,,
code-creation,LazyCompile,10,102629,0x167e03049176,10, node:repl:131:17,0xb6d5357b0e8,~
code-source-info,0x167e03049176,120,3890,3912,C0O3899C5O3907C9O3912,,
tick,0x11684a6,102741,1,0xb515a0,2,0xd44a10,0xa52511ba43c,0xa52511b972d,0xb6d5357c4df,0xa52511ba45d,0xa52511b972d,0xb6d53578415,0xa52511ba45d,0xa52511b972d,0xb6d53549b2e,0xb6d53549025,0x158e77f
code-creation,Eval,10,103064,0x167e03049b06,5, node:domain:1:1,0x167e030497a0,~
script-source,127,node:domain,// Copyright Joyent\x2C Inc. and other Node contributors.\n//\n// Permission is hereby granted\x2C free of charge\x2C to any person obtaining a\n// copy of this software and associated documentation files (the\n// "Software")\x2C to deal in the Software without restriction\x2C including\n// without limitation the rights to use\x2C copy\x2C modify\x2C merge\x2C publish\x2C\n// distribute\x2C sublicense\x2C and/or sell copies of the Software\x2C and to permit\n// persons to whom the Software is furnished to do so\x2C subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED "AS IS"\x2C WITHOUT WARRANTY OF ANY KIND\x2C EXPRESS\n// OR IMPLIED\x2C INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY\x2C FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM\x2C\n// DAMAGES OR OTHER LIABILITY\x2C WHETHER IN AN ACTION OF CONTRACT\x2C TORT OR\n// OTHERWISE\x2C ARISING FROM\x2C OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n'use strict';\n\n// WARNING: THIS MODULE IS PENDING DEPRECATION.\n//\n// No new pull requests targeting this module will be accepted\n// unless they address existing\x2C critical bugs.\n\nconst {\n ArrayPrototypeEvery\x2C\n ArrayPrototypeIndexOf\x2C\n ArrayPrototypeLastIndexOf\x2C\n ArrayPrototypePush\x2C\n ArrayPrototypeSlice\x2C\n ArrayPrototypeSplice\x2C\n Error\x2C\n FunctionPrototypeCall\x2C\n ObjectDefineProperty\x2C\n Promise\x2C\n ReflectApply\x2C\n SafeMap\x2C\n Symbol\x2C\n} = primordials;\n\nconst EventEmitter = require('events');\nconst {\n ERR_DOMAIN_CALLBACK_NOT_AVAILABLE\x2C\n ERR_DOMAIN_CANNOT_SET_UNCAUGHT_EXCEPTION_CAPTURE\x2C\n ERR_UNHANDLED_ERROR\n} = require('internal/errors').codes;\nconst { createHook } = require('async_hooks');\nconst { useDomainTrampoline } = require('internal/async_hooks');\n\n// TODO(addaleax): Use a non-internal solution for this.\nconst kWeak = Symbol('kWeak');\nconst { WeakReference } = internalBinding('util');\n\n// Overwrite process.domain with a getter/setter that will allow for more\n// effective optimizations\nconst _domain = [null];\nObjectDefineProperty(process\x2C 'domain'\x2C {\n enumerable: true\x2C\n get: function() {\n return _domain[0];\n }\x2C\n set: function(arg) {\n return _domain[0] = arg;\n }\n});\n\nconst pairing = new SafeMap();\nconst asyncHook = createHook({\n init(asyncId\x2C type\x2C triggerAsyncId\x2C resource) {\n if (process.domain !== null && process.domain !== undefined) {\n // If this operation is created while in a domain\x2C let's mark it\n pairing.set(asyncId\x2C process.domain[kWeak]);\n // Promises from other contexts\x2C such as with the VM module\x2C should not\n // have a domain property as it can be used to escape the sandbox.\n if (type !== 'PROMISE' || resource instanceof Promise) {\n ObjectDefineProperty(resource\x2C 'domain'\x2C {\n configurable: true\x2C\n enumerable: false\x2C\n value: process.domain\x2C\n writable: true\n });\n }\n }\n }\x2C\n before(asyncId) {\n const current = pairing.get(asyncId);\n if (current !== undefined) { // Enter domain for this cb\n // We will get the domain through current.get()\x2C because the resource\n // object's .domain property makes sure it is not garbage collected.\n // However\x2C we do need to make the reference to the domain non-weak\x2C\n // so that it cannot be garbage collected before the after() hook.\n current.incRef();\n current.get().enter();\n }\n }\x2C\n after(asyncId) {\n const current = pairing.get(asyncId);\n if (current !== undefined) { // Exit domain for this cb\n const domain = current.get();\n current.decRef();\n domain.exit();\n }\n }\x2C\n destroy(asyncId) {\n pairing.delete(asyncId); // cleaning up\n }\n});\n\n// When domains are in use\x2C they claim full ownership of the\n// uncaught exception capture callback.\nif (process.hasUncaughtExceptionCaptureCallback()) {\n throw new ERR_DOMAIN_CALLBACK_NOT_AVAILABLE();\n}\n\n// Get the stack trace at the point where `domain` was required.\n// eslint-disable-next-line no-restricted-syntax\nconst domainRequireStack = new Error('require(`domain`) at this point').stack;\n\nconst { setUncaughtExceptionCaptureCallback } = process;\nprocess.setUncaughtExceptionCaptureCallback = function(fn) {\n const err = new ERR_DOMAIN_CANNOT_SET_UNCAUGHT_EXCEPTION_CAPTURE();\n err.stack = err.stack + '\\n' + '-'.repeat(40) + '\\n' + domainRequireStack;\n throw err;\n};\n\n\nlet sendMakeCallbackDeprecation = false;\nfunction emitMakeCallbackDeprecation({ target\x2C method }) {\n if (!sendMakeCallbackDeprecation) {\n process.emitWarning(\n 'Using a domain property in MakeCallback is deprecated. Use the ' +\n 'async_context variant of MakeCallback or the AsyncResource class ' +\n 'instead. ' +\n `(Triggered by calling ${method?.name || '<anonymous>'} ` +\n `on ${target?.constructor?.name}.)`\x2C\n 'DeprecationWarning'\x2C 'DEP0097');\n sendMakeCallbackDeprecation = true;\n }\n}\n\nfunction topLevelDomainCallback(cb\x2C ...args) {\n const domain = this.domain;\n if (exports.active && domain)\n emitMakeCallbackDeprecation({ target: this\x2C method: cb });\n\n if (domain)\n domain.enter();\n const ret = ReflectApply(cb\x2C this\x2C args);\n if (domain)\n domain.exit();\n\n return ret;\n}\n\n// It's possible to enter one domain while already inside\n// another one. The stack is each entered domain.\nlet stack = [];\nexports._stack = stack;\nuseDomainTrampoline(topLevelDomainCallback);\n\nfunction updateExceptionCapture() {\n if (ArrayPrototypeEvery(stack\x2C\n (domain) => domain.listenerCount('error') === 0)) {\n setUncaughtExceptionCaptureCallback(null);\n } else {\n setUncaughtExceptionCaptureCallback(null);\n setUncaughtExceptionCaptureCallback((er) => {\n return process.domain._errorHandler(er);\n });\n }\n}\n\n\nprocess.on('newListener'\x2C (name\x2C listener) => {\n if (name === 'uncaughtException' &&\n listener !== domainUncaughtExceptionClear) {\n // Make sure the first listener for `uncaughtException` always clears\n // the domain stack.\n process.removeListener(name\x2C domainUncaughtExceptionClear);\n process.prependListener(name\x2C domainUncaughtExceptionClear);\n }\n});\n\nprocess.on('removeListener'\x2C (name\x2C listener) => {\n if (name === 'uncaughtException' &&\n listener !== domainUncaughtExceptionClear) {\n // If the domain listener would be the only remaining one\x2C remove it.\n const listeners = process.listeners('uncaughtException');\n if (listeners.length === 1 && listeners[0] === domainUncaughtExceptionClear)\n process.removeListener(name\x2C domainUncaughtExceptionClear);\n }\n});\n\nfunction domainUncaughtExceptionClear() {\n stack.length = 0;\n exports.active = process.domain = null;\n updateExceptionCapture();\n}\n\n\nclass Domain extends EventEmitter {\n constructor() {\n super();\n\n this.members = [];\n this[kWeak] = new WeakReference(this);\n asyncHook.enable();\n\n this.on('removeListener'\x2C updateExceptionCapture);\n this.on('newListener'\x2C updateExceptionCapture);\n }\n}\n\nexports.Domain = Domain;\n\nexports.create = exports.createDomain = function createDomain() {\n return new Domain();\n};\n\n// The active domain is always the one that we're currently in.\nexports.active = null;\nDomain.prototype.members = undefined;\n\n// Called by process._fatalException in case an error was thrown.\nDomain.prototype._errorHandler = function(er) {\n let caught = false;\n\n if ((typeof er === 'object' && er !== null) || typeof er === 'function') {\n ObjectDefineProperty(er\x2C 'domain'\x2C {\n configurable: true\x2C\n enumerable: false\x2C\n value: this\x2C\n writable: true\n });\n er.domainThrown = true;\n }\n // Pop all adjacent duplicates of the currently active domain from the stack.\n // This is done to prevent a domain's error handler to run within the context\n // of itself\x2C and re-entering itself recursively handler as a result of an\n // exception thrown in its context.\n while (exports.active === this) {\n this.exit();\n }\n\n // The top-level domain-handler is handled separately.\n //\n // The reason is that if V8 was passed a command line option\n // asking it to abort on an uncaught exception (currently\n // "--abort-on-uncaught-exception")\x2C we want an uncaught exception\n // in the top-level domain error handler to make the\n // process abort. Using try/catch here would always make V8 think\n // that these exceptions are caught\x2C and thus would prevent it from\n // aborting in these cases.\n if (stack.length === 0) {\n // If there's no error handler\x2C do not emit an 'error' event\n // as this would throw an error\x2C make the process exit\x2C and thus\n // prevent the process 'uncaughtException' event from being emitted\n // if a listener is set.\n if (EventEmitter.listenerCount(this\x2C 'error') > 0) {\n // Clear the uncaughtExceptionCaptureCallback so that we know that\x2C since\n // the top-level domain is not active anymore\x2C it would be ok to abort on\n // an uncaught exception at this point\n setUncaughtExceptionCaptureCallback(null);\n try {\n caught = this.emit('error'\x2C er);\n } finally {\n updateExceptionCapture();\n }\n }\n } else {\n // Wrap this in a try/catch so we don't get infinite throwing\n try {\n // One of three things will happen here.\n //\n // 1. There is a handler\x2C caught = true\n // 2. There is no handler\x2C caught = false\n // 3. It throws\x2C caught = false\n //\n // If caught is false after this\x2C then there's no need to exit()\n // the domain\x2C because we're going to crash the process anyway.\n caught = this.emit('error'\x2C er);\n } catch (er2) {\n // The domain error handler threw! oh no!\n // See if another domain can catch THIS error\x2C\n // or else crash on the original one.\n updateExceptionCapture();\n if (stack.length) {\n exports.active = process.domain = stack[stack.length - 1];\n caught = process.domain._errorHandler(er2);\n } else {\n // Pass on to the next exception handler.\n throw er2;\n }\n }\n }\n\n // Exit all domains on the stack. Uncaught exceptions end the\n // current tick and no domains should be left on the stack\n // between ticks.\n domainUncaughtExceptionClear();\n\n return caught;\n};\n\n\nDomain.prototype.enter = function() {\n // Note that this might be a no-op\x2C but we still need\n // to push it onto the stack so that we can pop it later.\n exports.active = process.domain = this;\n ArrayPrototypePush(stack\x2C this);\n updateExceptionCapture();\n};\n\n\nDomain.prototype.exit = function() {\n // Don't do anything if this domain is not on the stack.\n const index = ArrayPrototypeLastIndexOf(stack\x2C this);\n if (index === -1) return;\n\n // Exit all domains until this one.\n ArrayPrototypeSplice(stack\x2C index);\n\n exports.active = stack.length === 0 ? undefined : stack[stack.length - 1];\n process.domain = exports.active;\n updateExceptionCapture();\n};\n\n\n// note: this works for timers as well.\nDomain.prototype.add = function(ee) {\n // If the domain is already added\x2C then nothing left to do.\n if (ee.domain === this)\n return;\n\n // Has a domain already - remove it first.\n if (ee.domain)\n ee.domain.remove(ee);\n\n // Check for circular Domain->Domain links.\n // They cause big issues.\n //\n // For example:\n // var d = domain.create();\n // var e = domain.create();\n // d.add(e);\n // e.add(d);\n // e.emit('error'\x2C er); // RangeError\x2C stack overflow!\n if (this.domain && (ee instanceof Domain)) {\n for (let d = this.domain; d; d = d.domain) {\n if (ee === d) return;\n }\n }\n\n ObjectDefineProperty(ee\x2C 'domain'\x2C {\n configurable: true\x2C\n enumerable: false\x2C\n value: this\x2C\n writable: true\n });\n ArrayPrototypePush(this.members\x2C ee);\n};\n\n\nDomain.prototype.remove = function(ee) {\n ee.domain = null;\n const index = ArrayPrototypeIndexOf(this.members\x2C ee);\n if (index !== -1)\n ArrayPrototypeSplice(this.members\x2C index\x2C 1);\n};\n\n\nDomain.prototype.run = function(fn) {\n this.enter();\n const ret = ReflectApply(fn\x2C this\x2C ArrayPrototypeSlice(arguments\x2C 1));\n this.exit();\n\n return ret;\n};\n\n\nfunction intercepted(_this\x2C self\x2C cb\x2C fnargs) {\n if (fnargs[0] && fnargs[0] instanceof Error) {\n const er = fnargs[0];\n er.domainBound = cb;\n er.domainThrown = false;\n ObjectDefineProperty(er\x2C 'domain'\x2C {\n configurable: true\x2C\n enumerable: false\x2C\n value: self\x2C\n writable: true\n });\n self.emit('error'\x2C er);\n return;\n }\n\n self.enter();\n const ret = ReflectApply(cb\x2C _this\x2C ArrayPrototypeSlice(fnargs\x2C 1));\n self.exit();\n\n return ret;\n}\n\n\nDomain.prototype.intercept = function(cb) {\n const self = this;\n\n function runIntercepted() {\n return intercepted(this\x2C self\x2C cb\x2C arguments);\n }\n\n return runIntercepted;\n};\n\n\nfunction bound(_this\x2C self\x2C cb\x2C fnargs) {\n self.enter();\n const ret = ReflectApply(cb\x2C _this\x2C fnargs);\n self.exit();\n\n return ret;\n}\n\n\nDomain.prototype.bind = function(cb) {\n const self = this;\n\n function runBound() {\n return bound(this\x2C self\x2C cb\x2C arguments);\n }\n\n ObjectDefineProperty(runBound\x2C 'domain'\x2C {\n configurable: true\x2C\n enumerable: false\x2C\n value: this\x2C\n writable: true\n });\n\n return runBound;\n};\n\n// Override EventEmitter methods to make it domain-aware.\nEventEmitter.usingDomains = true;\n\nconst eventInit = EventEmitter.init;\nEventEmitter.init = function() {\n ObjectDefineProperty(this\x2C 'domain'\x2C {\n configurable: true\x2C\n enumerable: false\x2C\n value: null\x2C\n writable: true\n });\n if (exports.active && !(this instanceof exports.Domain)) {\n this.domain = exports.active;\n }\n\n return FunctionPrototypeCall(eventInit\x2C this);\n};\n\nconst eventEmit = EventEmitter.prototype.emit;\nEventEmitter.prototype.emit = function emit(...args) {\n const domain = this.domain;\n\n const type = args[0];\n const shouldEmitError = type === 'error' &&\n this.listenerCount(type) > 0;\n\n // Just call original `emit` if current EE instance has `error`\n // handler\x2C there's no active domain or this is process\n if (shouldEmitError || domain === null || domain === undefined ||\n this === process) {\n return ReflectApply(eventEmit\x2C this\x2C args);\n }\n\n if (type === 'error') {\n const er = args.length > 1 && args[1] ?\n args[1] : new ERR_UNHANDLED_ERROR();\n\n if (typeof er === 'object') {\n er.domainEmitter = this;\n ObjectDefineProperty(er\x2C 'domain'\x2C {\n configurable: true\x2C\n enumerable: false\x2C\n value: domain\x2C\n writable: true\n });\n er.domainThrown = false;\n }\n\n // Remove the current domain (and its duplicates) from the domains stack and\n // set the active domain to its parent (if any) so that the domain's error\n // handler doesn't run in its own context. This prevents any event emitter\n // created or any exception thrown in that error handler from recursively\n // executing that error handler.\n const origDomainsStack = ArrayPrototypeSlice(stack);\n const origActiveDomain = process.domain;\n\n // Travel the domains stack from top to bottom to find the first domain\n // instance that is not a duplicate of the current active domain.\n let idx = stack.length - 1;\n while (idx > -1 && process.domain === stack[idx]) {\n --idx;\n }\n\n // Change the stack to not contain the current active domain\x2C and only the\n // domains above it on the stack.\n if (idx < 0) {\n stack.length = 0;\n } else {\n ArrayPrototypeSplice(stack\x2C idx + 1);\n }\n\n // Change the current active domain\n if (stack.length > 0) {\n exports.active = process.domain = stack[stack.length - 1];\n } else {\n exports.active = process.domain = null;\n }\n\n updateExceptionCapture();\n\n domain.emit('error'\x2C er);\n\n // Now that the domain's error handler has completed\x2C restore the domains\n // stack and the active domain to their original values.\n exports._stack = stack = origDomainsStack;\n exports.active = process.domain = origActiveDomain;\n updateExceptionCapture();\n\n return false;\n }\n\n domain.enter();\n const ret = ReflectApply(eventEmit\x2C this\x2C args);\n domain.exit();\n\n return ret;\n};\n
code-source-info,0x167e03049b06,127,0,16241,C0O0C4O16241,,
code-creation,Function,10,103846,0x167e0304abd6,772, node:domain:1:1,0x167e03049a70,~
code-source-info,0x167e0304abd6,127,0,16241,C0O0C126O1322C132O1345C138O1370C144O1399C150O1421C156O1444C162O1468C168O1477C174O1502C180O1526C186O1537C192O1553C197O1564C202O1611C205O1611C209O1611C211O1753C214O1753C219O1779C224O1640C229O1677C235O1729C241O1810C244O1810C249O1795C254O1866C257O1866C262O1842C267O1971C270O1971C274O1971C276O2014C279O2014C284O1996C290O2157C294O2157C296O2165C305O2186C310O2234C318O2282C326O2165C331O2352C333O2352C338O2352C340O2385C345O2400C353O3052C361O3538C369O3751C377O2385C381O2385C383O3924C386O3936C391O3936C397O3979C399O3985C404O3979C405O4170C413O4170C419O4215C423O4170C425O4271C428O4231C434O4280C441O4324C445O4540C446O4540C448O5457C450O5457C452O5461C457O5476C461O5485C465O5896C468O5904C481O5904C487O6270C490O6278C503O6278C512O6859C531O6838C533O7111C538O7126C542O7137C548O7154C553O7175C559O7152C563O7294C567O7309C571O7317C574O7324C580O7342C584O7422C587O7429C596O7453C600O10358C603O10365C612O10381C616O10622C619O10629C628O10644C632O11065C635O11072C644O11086C648O11845C651O11852C660O11869C664O12038C667O12045C676O12059C680O12683C683O12690C692O12710C696O13004C699O13011C708O13026C712O13355C716O13381C720O13408C723O13421C727O13408C729O13427C736O13445C740O13761C743O13774C748O13784C752O13761C754O13790C757O13803C766O13818C771O16240,,
tick,0x7f4debdcf2cf,103894,1,0xb515a0,3,0xd44a10,0xa52511ba43c,0xa52511b972d,0xb6d5357c4df,0xa52511ba45d,0xa52511b972d,0xb6d53578415,0xa52511ba45d,0xa52511b972d,0xb6d53549b2e,0xb6d53549025,0x158e77f
code-creation,LazyCompile,10,104076,0x167e0304c776,13,createHook node:async_hooks:146:20,0x38b4b3b3fba8,~
script-source,27,node:async_hooks,'use strict';\n\nconst {\n ArrayPrototypeIncludes\x2C\n ArrayPrototypeIndexOf\x2C\n ArrayPrototypePush\x2C\n ArrayPrototypeSplice\x2C\n FunctionPrototypeBind\x2C\n NumberIsSafeInteger\x2C\n ObjectDefineProperties\x2C\n ObjectIs\x2C\n ReflectApply\x2C\n Symbol\x2C\n} = primordials;\n\nconst {\n ERR_ASYNC_CALLBACK\x2C\n ERR_ASYNC_TYPE\x2C\n ERR_INVALID_ASYNC_ID\n} = require('internal/errors').codes;\nconst {\n validateFunction\x2C\n validateString\x2C\n} = require('internal/validators');\nconst internal_async_hooks = require('internal/async_hooks');\n\n// Get functions\n// For userland AsyncResources\x2C make sure to emit a destroy event when the\n// resource gets gced.\nconst { registerDestroyHook } = internal_async_hooks;\nconst {\n executionAsyncId\x2C\n triggerAsyncId\x2C\n // Private API\n hasAsyncIdStack\x2C\n getHookArrays\x2C\n enableHooks\x2C\n disableHooks\x2C\n updatePromiseHookMode\x2C\n executionAsyncResource\x2C\n // Internal Embedder API\n newAsyncId\x2C\n getDefaultTriggerAsyncId\x2C\n emitInit\x2C\n emitBefore\x2C\n emitAfter\x2C\n emitDestroy\x2C\n enabledHooksExist\x2C\n initHooksExist\x2C\n destroyHooksExist\x2C\n} = internal_async_hooks;\n\n// Get symbols\nconst {\n async_id_symbol\x2C trigger_async_id_symbol\x2C\n init_symbol\x2C before_symbol\x2C after_symbol\x2C destroy_symbol\x2C\n promise_resolve_symbol\n} = internal_async_hooks.symbols;\n\n// Get constants\nconst {\n kInit\x2C kBefore\x2C kAfter\x2C kDestroy\x2C kTotals\x2C kPromiseResolve\x2C\n} = internal_async_hooks.constants;\n\n// Listener API //\n\nclass AsyncHook {\n constructor({ init\x2C before\x2C after\x2C destroy\x2C promiseResolve }) {\n if (init !== undefined && typeof init !== 'function')\n throw new ERR_ASYNC_CALLBACK('hook.init');\n if (before !== undefined && typeof before !== 'function')\n throw new ERR_ASYNC_CALLBACK('hook.before');\n if (after !== undefined && typeof after !== 'function')\n throw new ERR_ASYNC_CALLBACK('hook.after');\n if (destroy !== undefined && typeof destroy !== 'function')\n throw new ERR_ASYNC_CALLBACK('hook.destroy');\n if (promiseResolve !== undefined && typeof promiseResolve !== 'function')\n throw new ERR_ASYNC_CALLBACK('hook.promiseResolve');\n\n this[init_symbol] = init;\n this[before_symbol] = before;\n this[after_symbol] = after;\n this[destroy_symbol] = destroy;\n this[promise_resolve_symbol] = promiseResolve;\n }\n\n enable() {\n // The set of callbacks for a hook should be the same regardless of whether\n // enable()/disable() are run during their execution. The following\n // references are reassigned to the tmp arrays if a hook is currently being\n // processed.\n const { 0: hooks_array\x2C 1: hook_fields } = getHookArrays();\n\n // Each hook is only allowed to be added once.\n if (ArrayPrototypeIncludes(hooks_array\x2C this))\n return this;\n\n const prev_kTotals = hook_fields[kTotals];\n\n // createHook() has already enforced that the callbacks are all functions\x2C\n // so here simply increment the count of whether each callbacks exists or\n // not.\n hook_fields[kTotals] = hook_fields[kInit] += +!!this[init_symbol];\n hook_fields[kTotals] += hook_fields[kBefore] += +!!this[before_symbol];\n hook_fields[kTotals] += hook_fields[kAfter] += +!!this[after_symbol];\n hook_fields[kTotals] += hook_fields[kDestroy] += +!!this[destroy_symbol];\n hook_fields[kTotals] +=\n hook_fields[kPromiseResolve] += +!!this[promise_resolve_symbol];\n ArrayPrototypePush(hooks_array\x2C this);\n\n if (prev_kTotals === 0 && hook_fields[kTotals] > 0) {\n enableHooks();\n }\n\n updatePromiseHookMode();\n\n return this;\n }\n\n disable() {\n const { 0: hooks_array\x2C 1: hook_fields } = getHookArrays();\n\n const index = ArrayPrototypeIndexOf(hooks_array\x2C this);\n if (index === -1)\n return this;\n\n const prev_kTotals = hook_fields[kTotals];\n\n hook_fields[kTotals] = hook_fields[kInit] -= +!!this[init_symbol];\n hook_fields[kTotals] += hook_fields[kBefore] -= +!!this[before_symbol];\n hook_fields[kTotals] += hook_fields[kAfter] -= +!!this[after_symbol];\n hook_fields[kTotals] += hook_fields[kDestroy] -= +!!this[destroy_symbol];\n hook_fields[kTotals] +=\n hook_fields[kPromiseResolve] -= +!!this[promise_resolve_symbol];\n ArrayPrototypeSplice(hooks_array\x2C index\x2C 1);\n\n if (prev_kTotals > 0 && hook_fields[kTotals] === 0) {\n disableHooks();\n }\n\n return this;\n }\n}\n\n\nfunction createHook(fns) {\n return new AsyncHook(fns);\n}\n\n\n// Embedder API //\n\nconst destroyedSymbol = Symbol('destroyed');\n\nclass AsyncResource {\n constructor(type\x2C opts = {}) {\n validateString(type\x2C 'type');\n\n let triggerAsyncId = opts;\n let requireManualDestroy = false;\n if (typeof opts !== 'number') {\n triggerAsyncId = opts.triggerAsyncId === undefined ?\n getDefaultTriggerAsyncId() : opts.triggerAsyncId;\n requireManualDestroy = !!opts.requireManualDestroy;\n }\n\n // Unlike emitInitScript\x2C AsyncResource doesn't supports null as the\n // triggerAsyncId.\n if (!NumberIsSafeInteger(triggerAsyncId) || triggerAsyncId < -1) {\n throw new ERR_INVALID_ASYNC_ID('triggerAsyncId'\x2C triggerAsyncId);\n }\n\n const asyncId = newAsyncId();\n this[async_id_symbol] = asyncId;\n this[trigger_async_id_symbol] = triggerAsyncId;\n\n if (initHooksExist()) {\n if (enabledHooksExist() && type.length === 0) {\n throw new ERR_ASYNC_TYPE(type);\n }\n\n emitInit(asyncId\x2C type\x2C triggerAsyncId\x2C this);\n }\n\n if (!requireManualDestroy && destroyHooksExist()) {\n // This prop name (destroyed) has to be synchronized with C++\n const destroyed = { destroyed: false };\n this[destroyedSymbol] = destroyed;\n registerDestroyHook(this\x2C asyncId\x2C destroyed);\n }\n }\n\n runInAsyncScope(fn\x2C thisArg\x2C ...args) {\n const asyncId = this[async_id_symbol];\n emitBefore(asyncId\x2C this[trigger_async_id_symbol]\x2C this);\n\n try {\n const ret =\n ReflectApply(fn\x2C thisArg\x2C args);\n\n return ret;\n } finally {\n if (hasAsyncIdStack())\n emitAfter(asyncId);\n }\n }\n\n emitDestroy() {\n if (this[destroyedSymbol] !== undefined) {\n this[destroyedSymbol].destroyed = true;\n }\n emitDestroy(this[async_id_symbol]);\n return this;\n }\n\n asyncId() {\n return this[async_id_symbol];\n }\n\n triggerAsyncId() {\n return this[trigger_async_id_symbol];\n }\n\n bind(fn\x2C thisArg = this) {\n validateFunction(fn\x2C 'fn');\n const ret =\n FunctionPrototypeBind(\n this.runInAsyncScope\x2C\n this\x2C\n fn\x2C\n thisArg);\n ObjectDefineProperties(ret\x2C {\n 'length': {\n configurable: true\x2C\n enumerable: false\x2C\n value: fn.length\x2C\n writable: false\x2C\n }\x2C\n 'asyncResource': {\n configurable: true\x2C\n enumerable: true\x2C\n value: this\x2C\n writable: true\x2C\n }\n });\n return ret;\n }\n\n static bind(fn\x2C type\x2C thisArg) {\n type = type || fn.name;\n return (new AsyncResource(type || 'bound-anonymous-fn')).bind(fn\x2C thisArg);\n }\n}\n\nconst storageList = [];\nconst storageHook = createHook({\n init(asyncId\x2C type\x2C triggerAsyncId\x2C resource) {\n const currentResource = executionAsyncResource();\n // Value of currentResource is always a non null object\n for (let i = 0; i < storageList.length; ++i) {\n storageList[i]._propagate(resource\x2C currentResource);\n }\n }\n});\n\nconst defaultAlsResourceOpts = { requireManualDestroy: true };\nclass AsyncLocalStorage {\n constructor() {\n this.kResourceStore = Symbol('kResourceStore');\n this.enabled = false;\n }\n\n disable() {\n if (this.enabled) {\n this.enabled = false;\n // If this.enabled\x2C the instance must be in storageList\n ArrayPrototypeSplice(storageList\x2C\n ArrayPrototypeIndexOf(storageList\x2C this)\x2C 1);\n if (storageList.length === 0) {\n storageHook.disable();\n }\n }\n }\n\n _enable() {\n if (!this.enabled) {\n this.enabled = true;\n ArrayPrototypePush(storageList\x2C this);\n storageHook.enable();\n }\n }\n\n // Propagate the context from a parent resource to a child one\n _propagate(resource\x2C triggerResource) {\n const store = triggerResource[this.kResourceStore];\n if (this.enabled) {\n resource[this.kResourceStore] = store;\n }\n }\n\n enterWith(store) {\n this._enable();\n const resource = executionAsyncResource();\n resource[this.kResourceStore] = store;\n }\n\n run(store\x2C callback\x2C ...args) {\n // Avoid creation of an AsyncResource if store is already active\n if (ObjectIs(store\x2C this.getStore())) {\n return ReflectApply(callback\x2C null\x2C args);\n }\n const resource = new AsyncResource('AsyncLocalStorage'\x2C\n defaultAlsResourceOpts);\n // Calling emitDestroy before runInAsyncScope avoids a try/finally\n // It is ok because emitDestroy only schedules calling the hook\n return resource.emitDestroy().runInAsyncScope(() => {\n this.enterWith(store);\n return ReflectApply(callback\x2C null\x2C args);\n });\n }\n\n exit(callback\x2C ...args) {\n if (!this.enabled) {\n return ReflectApply(callback\x2C null\x2C args);\n }\n this.disable();\n try {\n return ReflectApply(callback\x2C null\x2C args);\n } finally {\n this._enable();\n }\n }\n\n getStore() {\n if (this.enabled) {\n const resource = executionAsyncResource();\n return resource[this.kResourceStore];\n }\n }\n}\n\n// Placing all exports down here because the exported classes won't export\n// otherwise.\nmodule.exports = {\n // Public API\n AsyncLocalStorage\x2C\n createHook\x2C\n executionAsyncId\x2C\n triggerAsyncId\x2C\n executionAsyncResource\x2C\n // Embedder API\n AsyncResource\x2C\n};\n
code-source-info,0x167e0304c776,27,4310,4348,C0O4320C7O4327C12O4346,,
code-creation,LazyCompile,10,104518,0x167e0304d40e,212,AsyncHook node:async_hooks:68:14,0x38b4b3b3f508,~
code-source-info,0x167e0304d40e,27,1426,2249,C0O1429C5O1435C10O1443C15O1450C20O1459C25O1483C35O1543C45O1549C50O1543C51O1590C61O1654C71O1660C76O1654C77O1703C87O1765C97O1771C102O1765C103O1813C113O1879C123O1885C128O1879C129O1929C139O2009C149O2015C154O2009C155O2067C157O2072C162O2085C166O2097C168O2102C173O2117C177O2131C179O2136C184O2150C188O2163C190O2168C195O2184C199O2199C201O2204C206O2228C211O2248,,
code-creation,LazyCompile,10,104583,0x167e0304d636,12,hasUncaughtExceptionCaptureCallback node:internal/process/execution:124:45,0x3787ca7bdff0,~
script-source,74,node:internal/process/execution,'use strict';\n\nconst {\n globalThis\x2C\n} = primordials;\n\nconst path = require('path');\n\nconst {\n codes: {\n ERR_INVALID_ARG_TYPE\x2C\n ERR_UNCAUGHT_EXCEPTION_CAPTURE_ALREADY_SET\x2C\n ERR_EVAL_ESM_CANNOT_PRINT\x2C\n }\x2C\n} = require('internal/errors');\n\nconst {\n executionAsyncId\x2C\n clearDefaultTriggerAsyncId\x2C\n clearAsyncIdStack\x2C\n hasAsyncIdStack\x2C\n afterHooksExist\x2C\n emitAfter\n} = require('internal/async_hooks');\n\n// shouldAbortOnUncaughtToggle is a typed array for faster\n// communication with JS.\nconst { shouldAbortOnUncaughtToggle } = internalBinding('util');\n\nfunction tryGetCwd() {\n try {\n return process.cwd();\n } catch {\n // getcwd(3) can fail if the current working directory has been deleted.\n // Fall back to the directory name of the (absolute) executable path.\n // It's not really correct but what are the alternatives?\n return path.dirname(process.execPath);\n }\n}\n\nfunction evalModule(source\x2C print) {\n if (print) {\n throw new ERR_EVAL_ESM_CANNOT_PRINT();\n }\n const { log } = require('internal/console/global');\n const { loadESM } = require('internal/process/esm_loader');\n const { handleMainPromise } = require('internal/modules/run_main');\n return handleMainPromise(loadESM(async (loader) => {\n const { result } = await loader.eval(source);\n if (print) {\n log(result);\n }\n }));\n}\n\nfunction evalScript(name\x2C body\x2C breakFirstLine\x2C print) {\n const CJSModule = require('internal/modules/cjs/loader').Module;\n const { kVmBreakFirstLineSymbol } = require('internal/util');\n const { pathToFileURL } = require('url');\n\n const cwd = tryGetCwd();\n const origModule = globalThis.module; // Set e.g. when called from the REPL.\n\n const module = new CJSModule(name);\n module.filename = path.join(cwd\x2C name);\n module.paths = CJSModule._nodeModulePaths(cwd);\n\n const asyncESM = require('internal/process/esm_loader');\n const baseUrl = pathToFileURL(module.filename).href;\n\n // Create wrapper for cache entry\n const script = `\n globalThis.module = module;\n globalThis.exports = exports;\n globalThis.__dirname = __dirname;\n globalThis.require = require;\n return (main) => main();\n `;\n globalThis.__filename = name;\n const result = module._compile(script\x2C `${name}-wrapper`)(() =>\n require('vm').runInThisContext(body\x2C {\n filename: name\x2C\n displayErrors: true\x2C\n [kVmBreakFirstLineSymbol]: !!breakFirstLine\x2C\n async importModuleDynamically(specifier) {\n const loader = await asyncESM.ESMLoader;\n return loader.import(specifier\x2C baseUrl);\n }\n }));\n if (print) {\n const { log } = require('internal/console/global');\n log(result);\n }\n\n if (origModule !== undefined)\n globalThis.module = origModule;\n}\n\nconst exceptionHandlerState = {\n captureFn: null\x2C\n reportFlag: false\n};\n\nfunction setUncaughtExceptionCaptureCallback(fn) {\n if (fn === null) {\n exceptionHandlerState.captureFn = fn;\n shouldAbortOnUncaughtToggle[0] = 1;\n process.report.reportOnUncaughtException = exceptionHandlerState.reportFlag;\n return;\n }\n if (typeof fn !== 'function') {\n throw new ERR_INVALID_ARG_TYPE('fn'\x2C ['Function'\x2C 'null']\x2C fn);\n }\n if (exceptionHandlerState.captureFn !== null) {\n throw new ERR_UNCAUGHT_EXCEPTION_CAPTURE_ALREADY_SET();\n }\n exceptionHandlerState.captureFn = fn;\n shouldAbortOnUncaughtToggle[0] = 0;\n exceptionHandlerState.reportFlag =\n process.report.reportOnUncaughtException === true;\n process.report.reportOnUncaughtException = false;\n}\n\nfunction hasUncaughtExceptionCaptureCallback() {\n return exceptionHandlerState.captureFn !== null;\n}\n\nfunction noop() {}\n\n// XXX(joyeecheung): for some reason this cannot be defined at the top-level\n// and exported to be written to process._fatalException\x2C it has to be\n// returned as an *anonymous function* wrapped inside a factory function\x2C\n// otherwise it breaks the test-timers.setInterval async hooks test -\n// this may indicate that node::errors::TriggerUncaughtException() should\n// fix up the callback scope before calling into process._fatalException\x2C\n// or this function should take extra care of the async hooks before it\n// schedules a setImmediate.\nfunction createOnGlobalUncaughtException() {\n // The C++ land node::errors::TriggerUncaughtException() will\n // exit the process if it returns false\x2C and continue execution if it\n // returns true (which indicates that the exception is handled by the user).\n return (er\x2C fromPromise) => {\n // It's possible that defaultTriggerAsyncId was set for a constructor\n // call that threw and was never cleared. So clear it now.\n clearDefaultTriggerAsyncId();\n\n // If diagnostic reporting is enabled\x2C call into its handler to see\n // whether it is interested in handling the situation.\n // Ignore if the error is scoped inside a domain.\n // use == in the checks as we want to allow for null and undefined\n if (er == null || er.domain == null) {\n try {\n const report = internalBinding('report');\n if (report != null && report.shouldReportOnUncaughtException()) {\n report.writeReport(\n typeof er?.message === 'string' ?\n er.message :\n 'Exception'\x2C\n 'Exception'\x2C\n null\x2C\n er ? er : {});\n }\n } catch {} // Ignore the exception. Diagnostic reporting is unavailable.\n }\n\n const type = fromPromise ? 'unhandledRejection' : 'uncaughtException';\n process.emit('uncaughtExceptionMonitor'\x2C er\x2C type);\n if (exceptionHandlerState.captureFn !== null) {\n exceptionHandlerState.captureFn(er);\n } else if (!process.emit('uncaughtException'\x2C er\x2C type)) {\n // If someone handled it\x2C then great. Otherwise\x2C die in C++ land\n // since that means that we'll exit the process\x2C emit the 'exit' event.\n try {\n if (!process._exiting) {\n process._exiting = true;\n process.exitCode = 1;\n process.emit('exit'\x2C 1);\n }\n } catch {\n // Nothing to be done about it at this point.\n }\n return false;\n }\n\n // If we handled an error\x2C then make sure any ticks get processed\n // by ensuring that the next Immediate cycle isn't empty.\n require('timers').setImmediate(noop);\n\n // Emit the after() hooks now that the exception has been handled.\n if (afterHooksExist()) {\n do {\n emitAfter(executionAsyncId());\n } while (hasAsyncIdStack());\n }\n // And completely empty the id stack\x2C including anything that may be\n // cached on the native side.\n clearAsyncIdStack();\n\n return true;\n };\n}\n\nfunction readStdin(callback) {\n process.stdin.setEncoding('utf8');\n\n let code = '';\n process.stdin.on('data'\x2C (d) => {\n code += d;\n });\n\n process.stdin.on('end'\x2C () => {\n callback(code);\n });\n}\n\nmodule.exports = {\n readStdin\x2C\n tryGetCwd\x2C\n evalModule\x2C\n evalScript\x2C\n onGlobalUncaughtException: createOnGlobalUncaughtException()\x2C\n setUncaughtExceptionCaptureCallback\x2C\n hasUncaughtExceptionCaptureCallback\n};\n
code-source-info,0x167e0304d636,74,3539,3596,C0O3546C5O3575C10O3585C11O3594,,
tick,0x7f4debd44314,105121,0,0x0,3,0x11e9ce0,0x167e0304ad5d,0xa52511ba45d,0xa52511b972d,0xb6d5357c4df,0xa52511ba45d,0xa52511b972d,0xb6d53578415,0xa52511ba45d,0xa52511b972d,0xb6d53549b2e,0xb6d53549025,0x158e77f
code-creation,LazyCompile,10,105441,0x167e0304dfae,343,prepareStackTrace node:internal/errors:90:27,0x334c17f22dd8,~
script-source,11,node:internal/errors,/* eslint node-core/documented-errors: "error" */\n/* eslint node-core/alphabetize-errors: "error" */\n/* eslint node-core/prefer-util-format-errors: "error" */\n\n'use strict';\n\n// The whole point behind this internal module is to allow Node.js to no\n// longer be forced to treat every error message change as a semver-major\n// change. The NodeError classes here all expose a `code` property whose\n// value statically and permanently identifies the error. While the error\n// message may change\x2C the code should not.\n\nconst {\n AggregateError\x2C\n ArrayFrom\x2C\n ArrayIsArray\x2C\n ArrayPrototypeFilter\x2C\n ArrayPrototypeIncludes\x2C\n ArrayPrototypeIndexOf\x2C\n ArrayPrototypeJoin\x2C\n ArrayPrototypeMap\x2C\n ArrayPrototypePop\x2C\n ArrayPrototypePush\x2C\n ArrayPrototypeSlice\x2C\n ArrayPrototypeSplice\x2C\n ArrayPrototypeUnshift\x2C\n Error\x2C\n ErrorCaptureStackTrace\x2C\n ErrorPrototypeToString\x2C\n JSONStringify\x2C\n MapPrototypeGet\x2C\n MathAbs\x2C\n MathMax\x2C\n Number\x2C\n NumberIsInteger\x2C\n ObjectDefineProperty\x2C\n ObjectDefineProperties\x2C\n ObjectIsExtensible\x2C\n ObjectGetOwnPropertyDescriptor\x2C\n ObjectKeys\x2C\n ObjectPrototypeHasOwnProperty\x2C\n RangeError\x2C\n ReflectApply\x2C\n RegExpPrototypeTest\x2C\n SafeArrayIterator\x2C\n SafeMap\x2C\n SafeWeakMap\x2C\n String\x2C\n StringPrototypeEndsWith\x2C\n StringPrototypeIncludes\x2C\n StringPrototypeMatch\x2C\n StringPrototypeSlice\x2C\n StringPrototypeSplit\x2C\n StringPrototypeStartsWith\x2C\n StringPrototypeToLowerCase\x2C\n Symbol\x2C\n SymbolFor\x2C\n SyntaxError\x2C\n TypeError\x2C\n URIError\x2C\n} = primordials;\n\nconst kIsNodeError = Symbol('kIsNodeError');\n\nconst isWindows = process.platform === 'win32';\n\nconst messages = new SafeMap();\nconst codes = {};\n\nconst classRegExp = /^([A-Z][a-z0-9]*)+$/;\n// Sorted by a rough estimate on most frequently used entries.\nconst kTypes = [\n 'string'\x2C\n 'function'\x2C\n 'number'\x2C\n 'object'\x2C\n // Accept 'Function' and 'Object' as alternative to the lower cased version.\n 'Function'\x2C\n 'Object'\x2C\n 'boolean'\x2C\n 'bigint'\x2C\n 'symbol'\x2C\n];\n\nconst MainContextError = Error;\nconst overrideStackTrace = new SafeWeakMap();\nconst kNoOverride = Symbol('kNoOverride');\nlet userStackTraceLimit;\nconst nodeInternalPrefix = '__node_internal_';\nconst prepareStackTrace = (globalThis\x2C error\x2C trace) => {\n // API for node internals to override error stack formatting\n // without interfering with userland code.\n if (overrideStackTrace.has(error)) {\n const f = overrideStackTrace.get(error);\n overrideStackTrace.delete(error);\n return f(error\x2C trace);\n }\n\n const firstFrame = trace[0]?.getFunctionName();\n if (firstFrame && StringPrototypeStartsWith(firstFrame\x2C nodeInternalPrefix)) {\n for (let l = trace.length - 1; l >= 0; l--) {\n const fn = trace[l]?.getFunctionName();\n if (fn && StringPrototypeStartsWith(fn\x2C nodeInternalPrefix)) {\n ArrayPrototypeSplice(trace\x2C 0\x2C l + 1);\n break;\n }\n }\n // `userStackTraceLimit` is the user value for `Error.stackTraceLimit`\x2C\n // it is updated at every new exception in `captureLargerStackTrace`.\n if (trace.length > userStackTraceLimit)\n ArrayPrototypeSplice(trace\x2C userStackTraceLimit);\n }\n\n const globalOverride =\n maybeOverridePrepareStackTrace(globalThis\x2C error\x2C trace);\n if (globalOverride !== kNoOverride) return globalOverride;\n\n // Normal error formatting:\n //\n // Error: Message\n // at function (file)\n // at file\n let errorString;\n if (kIsNodeError in error) {\n errorString = `${error.name} [${error.code}]: ${error.message}`;\n } else {\n errorString = ErrorPrototypeToString(error);\n }\n if (trace.length === 0) {\n return errorString;\n }\n return `${errorString}\\n at ${ArrayPrototypeJoin(trace\x2C '\\n at ')}`;\n};\n\nconst maybeOverridePrepareStackTrace = (globalThis\x2C error\x2C trace) => {\n // Polyfill of V8's Error.prepareStackTrace API.\n // https://crbug.com/v8/7848\n // `globalThis` is the global that contains the constructor which\n // created `error`.\n if (typeof globalThis.Error?.prepareStackTrace === 'function') {\n return globalThis.Error.prepareStackTrace(error\x2C trace);\n }\n // We still have legacy usage that depends on the main context's `Error`\n // being used\x2C even when the error is from a different context.\n // TODO(devsnek): evaluate if this can be eventually deprecated/removed.\n if (typeof MainContextError.prepareStackTrace === 'function') {\n return MainContextError.prepareStackTrace(error\x2C trace);\n }\n\n return kNoOverride;\n};\n\nconst aggregateTwoErrors = hideStackFrames((innerError\x2C outerError) => {\n if (innerError && outerError) {\n if (ArrayIsArray(outerError.errors)) {\n // If `outerError` is already an `AggregateError`.\n ArrayPrototypePush(outerError.errors\x2C innerError);\n return outerError;\n }\n // eslint-disable-next-line no-restricted-syntax\n const err = new AggregateError(new SafeArrayIterator([\n outerError\x2C\n innerError\x2C\n ])\x2C outerError.message);\n err.code = outerError.code;\n return err;\n }\n return innerError || outerError;\n});\n\n// Lazily loaded\nlet util;\nlet assert;\n\nlet internalUtil = null;\nfunction lazyInternalUtil() {\n if (!internalUtil) {\n internalUtil = require('internal/util');\n }\n return internalUtil;\n}\n\nlet internalUtilInspect = null;\nfunction lazyInternalUtilInspect() {\n if (!internalUtilInspect) {\n internalUtilInspect = require('internal/util/inspect');\n }\n return internalUtilInspect;\n}\n\nlet buffer;\nfunction lazyBuffer() {\n if (buffer === undefined)\n buffer = require('buffer').Buffer;\n return buffer;\n}\n\nfunction isErrorStackTraceLimitWritable() {\n const desc = ObjectGetOwnPropertyDescriptor(Error\x2C 'stackTraceLimit');\n if (desc === undefined) {\n return ObjectIsExtensible(Error);\n }\n\n return ObjectPrototypeHasOwnProperty(desc\x2C 'writable') ?\n desc.writable :\n desc.set !== undefined;\n}\n\n// A specialized Error that includes an additional info property with\n// additional information about the error condition.\n// It has the properties present in a UVException but with a custom error\n// message followed by the uv error code and uv error message.\n// It also has its own error code with the original uv error context put into\n// `err.info`.\n// The context passed into this error must have .code\x2C .syscall and .message\x2C\n// and may have .path and .dest.\nclass SystemError extends Error {\n constructor(key\x2C context) {\n const limit = Error.stackTraceLimit;\n if (isErrorStackTraceLimitWritable()) Error.stackTraceLimit = 0;\n super();\n // Reset the limit and setting the name property.\n if (isErrorStackTraceLimitWritable()) Error.stackTraceLimit = limit;\n const prefix = getMessage(key\x2C []\x2C this);\n let message = `${prefix}: ${context.syscall} returned ` +\n `${context.code} (${context.message})`;\n\n if (context.path !== undefined)\n message += ` ${context.path}`;\n if (context.dest !== undefined)\n message += ` => ${context.dest}`;\n\n captureLargerStackTrace(this);\n\n this.code = key;\n\n ObjectDefineProperties(this\x2C {\n [kIsNodeError]: {\n value: true\x2C\n enumerable: false\x2C\n writable: false\x2C\n configurable: true\x2C\n }\x2C\n name: {\n value: 'SystemError'\x2C\n enumerable: false\x2C\n writable: true\x2C\n configurable: true\x2C\n }\x2C\n message: {\n value: message\x2C\n enumerable: false\x2C\n writable: true\x2C\n configurable: true\x2C\n }\x2C\n info: {\n value: context\x2C\n enumerable: true\x2C\n configurable: true\x2C\n writable: false\x2C\n }\x2C\n errno: {\n get() {\n return context.errno;\n }\x2C\n set: (value) => {\n context.errno = value;\n }\x2C\n enumerable: true\x2C\n configurable: true\x2C\n }\x2C\n syscall: {\n get() {\n return context.syscall;\n }\x2C\n set: (value) => {\n context.syscall = value;\n }\x2C\n enumerable: true\x2C\n configurable: true\x2C\n }\x2C\n });\n\n if (context.path !== undefined) {\n // TODO(BridgeAR): Investigate why and when the `.toString()` was\n // introduced. The `path` and `dest` properties in the context seem to\n // always be of type string. We should probably just remove the\n // `.toString()` and `Buffer.from()` operations and set the value on the\n // context as the user did.\n ObjectDefineProperty(this\x2C 'path'\x2C {\n get() {\n return context.path != null ?\n context.path.toString() : context.path;\n }\x2C\n set: (value) => {\n context.path = value ?\n lazyBuffer().from(value.toString()) : undefined;\n }\x2C\n enumerable: true\x2C\n configurable: true\n });\n }\n\n if (context.dest !== undefined) {\n ObjectDefineProperty(this\x2C 'dest'\x2C {\n get() {\n return context.dest != null ?\n context.dest.toString() : context.dest;\n }\x2C\n set: (value) => {\n context.dest = value ?\n lazyBuffer().from(value.toString()) : undefined;\n }\x2C\n enumerable: true\x2C\n configurable: true\n });\n }\n }\n\n toString() {\n return `${this.name} [${this.code}]: ${this.message}`;\n }\n\n [SymbolFor('nodejs.util.inspect.custom')](recurseTimes\x2C ctx) {\n return lazyInternalUtilInspect().inspect(this\x2C {\n ...ctx\x2C\n getters: true\x2C\n customInspect: false\n });\n }\n}\n\nfunction makeSystemErrorWithCode(key) {\n return class NodeError extends SystemError {\n constructor(ctx) {\n super(key\x2C ctx);\n }\n };\n}\n\nfunction makeNodeErrorWithCode(Base\x2C key) {\n return function NodeError(...args) {\n const limit = Error.stackTraceLimit;\n if (isErrorStackTraceLimitWritable()) Error.stackTraceLimit = 0;\n const error = new Base();\n // Reset the limit and setting the name property.\n if (isErrorStackTraceLimitWritable()) Error.stackTraceLimit = limit;\n const message = getMessage(key\x2C args\x2C error);\n ObjectDefineProperties(error\x2C {\n [kIsNodeError]: {\n value: true\x2C\n enumerable: false\x2C\n writable: false\x2C\n configurable: true\x2C\n }\x2C\n message: {\n value: message\x2C\n enumerable: false\x2C\n writable: true\x2C\n configurable: true\x2C\n }\x2C\n toString: {\n value() {\n return `${this.name} [${key}]: ${this.message}`;\n }\x2C\n enumerable: false\x2C\n writable: true\x2C\n configurable: true\x2C\n }\x2C\n });\n captureLargerStackTrace(error);\n error.code = key;\n return error;\n };\n}\n\n/**\n * This function removes unnecessary frames from Node.js core errors.\n * @template {(...args: any[]) => any} T\n * @type {(fn: T) => T}\n */\nfunction hideStackFrames(fn) {\n // We rename the functions that will be hidden to cut off the stacktrace\n // at the outermost one\n const hidden = nodeInternalPrefix + fn.name;\n ObjectDefineProperty(fn\x2C 'name'\x2C { value: hidden });\n return fn;\n}\n\n// Utility function for registering the error codes. Only used here. Exported\n// *only* to allow for testing.\nfunction E(sym\x2C val\x2C def\x2C ...otherClasses) {\n // Special case for SystemError that formats the error message differently\n // The SystemErrors only have SystemError as their base classes.\n messages.set(sym\x2C val);\n if (def === SystemError) {\n def = makeSystemErrorWithCode(sym);\n } else {\n def = makeNodeErrorWithCode(def\x2C sym);\n }\n\n if (otherClasses.length !== 0) {\n otherClasses.forEach((clazz) => {\n def[clazz.name] = makeNodeErrorWithCode(clazz\x2C sym);\n });\n }\n codes[sym] = def;\n}\n\nfunction getMessage(key\x2C args\x2C self) {\n const msg = messages.get(key);\n\n if (assert === undefined) assert = require('internal/assert');\n\n if (typeof msg === 'function') {\n assert(\n msg.length <= args.length\x2C // Default options do not count.\n `Code: ${key}; The provided arguments length (${args.length}) does not ` +\n `match the required ones (${msg.length}).`\n );\n return ReflectApply(msg\x2C self\x2C args);\n }\n\n const expectedLength =\n (StringPrototypeMatch(msg\x2C /%[dfijoOs]/g) || []).length;\n assert(\n expectedLength === args.length\x2C\n `Code: ${key}; The provided arguments length (${args.length}) does not ` +\n `match the required ones (${expectedLength}).`\n );\n if (args.length === 0)\n return msg;\n\n ArrayPrototypeUnshift(args\x2C msg);\n return ReflectApply(lazyInternalUtilInspect().format\x2C null\x2C args);\n}\n\nlet uvBinding;\n\nfunction lazyUv() {\n if (!uvBinding) {\n uvBinding = internalBinding('uv');\n }\n return uvBinding;\n}\n\nconst uvUnmappedError = ['UNKNOWN'\x2C 'unknown error'];\n\nfunction uvErrmapGet(name) {\n uvBinding = lazyUv();\n if (!uvBinding.errmap) {\n uvBinding.errmap = uvBinding.getErrorMap();\n }\n return MapPrototypeGet(uvBinding.errmap\x2C name);\n}\n\nconst captureLargerStackTrace = hideStackFrames(\n function captureLargerStackTrace(err) {\n const stackTraceLimitIsWritable = isErrorStackTraceLimitWritable();\n if (stackTraceLimitIsWritable) {\n userStackTraceLimit = Error.stackTraceLimit;\n Error.stackTraceLimit = Infinity;\n }\n ErrorCaptureStackTrace(err);\n // Reset the limit\n if (stackTraceLimitIsWritable) Error.stackTraceLimit = userStackTraceLimit;\n\n return err;\n });\n\n/**\n * This creates an error compatible with errors produced in the C++\n * function UVException using a context object with data assembled in C++.\n * The goal is to migrate them to ERR_* errors later when compatibility is\n * not a concern.\n *\n * @param {Object} ctx\n * @returns {Error}\n */\nconst uvException = hideStackFrames(function uvException(ctx) {\n const { 0: code\x2C 1: uvmsg } = uvErrmapGet(ctx.errno) || uvUnmappedError;\n let message = `${code}: ${ctx.message || uvmsg}\x2C ${ctx.syscall}`;\n\n let path;\n let dest;\n if (ctx.path) {\n path = ctx.path.toString();\n message += ` '${path}'`;\n }\n if (ctx.dest) {\n dest = ctx.dest.toString();\n message += ` -> '${dest}'`;\n }\n\n // Reducing the limit improves the performance significantly. We do not lose\n // the stack frames due to the `captureStackTrace()` function that is called\n // later.\n const tmpLimit = Error.stackTraceLimit;\n if (isErrorStackTraceLimitWritable()) Error.stackTraceLimit = 0;\n // Pass the message to the constructor instead of setting it on the object\n // to make sure it is the same as the one created in C++\n // eslint-disable-next-line no-restricted-syntax\n const err = new Error(message);\n if (isErrorStackTraceLimitWritable()) Error.stackTraceLimit = tmpLimit;\n\n for (const prop of ObjectKeys(ctx)) {\n if (prop === 'message' || prop === 'path' || prop === 'dest') {\n continue;\n }\n err[prop] = ctx[prop];\n }\n\n err.code = code;\n if (path) {\n err.path = path;\n }\n if (dest) {\n err.dest = dest;\n }\n\n return captureLargerStackTrace(err);\n});\n\n/**\n * This creates an error compatible with errors produced in the C++\n * This function should replace the deprecated\n * `exceptionWithHostPort()` function.\n *\n * @param {number} err - A libuv error number\n * @param {string} syscall\n * @param {string} address\n * @param {number} [port]\n * @returns {Error}\n */\nconst uvExceptionWithHostPort = hideStackFrames(\n function uvExceptionWithHostPort(err\x2C syscall\x2C address\x2C port) {\n const { 0: code\x2C 1: uvmsg } = uvErrmapGet(err) || uvUnmappedError;\n const message = `${syscall} ${code}: ${uvmsg}`;\n let details = '';\n\n if (port && port > 0) {\n details = ` ${address}:${port}`;\n } else if (address) {\n details = ` ${address}`;\n }\n\n // Reducing the limit improves the performance significantly. We do not\n // lose the stack frames due to the `captureStackTrace()` function that\n // is called later.\n const tmpLimit = Error.stackTraceLimit;\n if (isErrorStackTraceLimitWritable()) Error.stackTraceLimit = 0;\n // eslint-disable-next-line no-restricted-syntax\n const ex = new Error(`${message}${details}`);\n if (isErrorStackTraceLimitWritable()) Error.stackTraceLimit = tmpLimit;\n ex.code = code;\n ex.errno = err;\n ex.syscall = syscall;\n ex.address = address;\n if (port) {\n ex.port = port;\n }\n\n return captureLargerStackTrace(ex);\n });\n\n/**\n * This used to be util._errnoException().\n *\n * @param {number} err - A libuv error number\n * @param {string} syscall\n * @param {string} [original]\n * @returns {Error}\n */\nconst errnoException = hideStackFrames(\n function errnoException(err\x2C syscall\x2C original) {\n // TODO(joyeecheung): We have to use the type-checked\n // getSystemErrorName(err) to guard against invalid arguments from users.\n // This can be replaced with [ code ] = errmap.get(err) when this method\n // is no longer exposed to user land.\n if (util === undefined) util = require('util');\n const code = util.getSystemErrorName(err);\n const message = original ?\n `${syscall} ${code} ${original}` : `${syscall} ${code}`;\n\n const tmpLimit = Error.stackTraceLimit;\n if (isErrorStackTraceLimitWritable()) Error.stackTraceLimit = 0;\n // eslint-disable-next-line no-restricted-syntax\n const ex = new Error(message);\n if (isErrorStackTraceLimitWritable()) Error.stackTraceLimit = tmpLimit;\n ex.errno = err;\n ex.code = code;\n ex.syscall = syscall;\n\n return captureLargerStackTrace(ex);\n });\n\n/**\n * Deprecated\x2C new function is `uvExceptionWithHostPort()`\n * New function added the error description directly\n * from C++. this method for backwards compatibility\n * @param {number} err - A libuv error number\n * @param {string} syscall\n * @param {string} address\n * @param {number} [port]\n * @param {string} [additional]\n * @returns {Error}\n */\nconst exceptionWithHostPort = hideStackFrames(\n function exceptionWithHostPort(err\x2C syscall\x2C address\x2C port\x2C additional) {\n // TODO(joyeecheung): We have to use the type-checked\n // getSystemErrorName(err) to guard against invalid arguments from users.\n // This can be replaced with [ code ] = errmap.get(err) when this method\n // is no longer exposed to user land.\n if (util === undefined) util = require('util');\n const code = util.getSystemErrorName(err);\n let details = '';\n if (port && port > 0) {\n details = ` ${address}:${port}`;\n } else if (address) {\n details = ` ${address}`;\n }\n if (additional) {\n details += ` - Local (${additional})`;\n }\n\n // Reducing the limit improves the performance significantly. We do not\n // lose the stack frames due to the `captureStackTrace()` function that\n // is called later.\n const tmpLimit = Error.stackTraceLimit;\n if (isErrorStackTraceLimitWritable()) Error.stackTraceLimit = 0;\n // eslint-disable-next-line no-restricted-syntax\n const ex = new Error(`${syscall} ${code}${details}`);\n if (isErrorStackTraceLimitWritable()) Error.stackTraceLimit = tmpLimit;\n ex.errno = err;\n ex.code = code;\n ex.syscall = syscall;\n ex.address = address;\n if (port) {\n ex.port = port;\n }\n\n return captureLargerStackTrace(ex);\n });\n\n/**\n * @param {number|string} code - A libuv error number or a c-ares error code\n * @param {string} syscall\n * @param {string} [hostname]\n * @returns {Error}\n */\nconst dnsException = hideStackFrames(function(code\x2C syscall\x2C hostname) {\n let errno;\n // If `code` is of type number\x2C it is a libuv error number\x2C else it is a\n // c-ares error code.\n // TODO(joyeecheung): translate c-ares error codes into numeric ones and\n // make them available in a property that's not error.errno (since they\n // can be in conflict with libuv error codes). Also make sure\n // util.getSystemErrorName() can understand them when an being informed that\n // the number is a c-ares error code.\n if (typeof code === 'number') {\n errno = code;\n // ENOTFOUND is not a proper POSIX error\x2C but this error has been in place\n // long enough that it's not practical to remove it.\n if (code === lazyUv().UV_EAI_NODATA || code === lazyUv().UV_EAI_NONAME) {\n code = 'ENOTFOUND'; // Fabricated error name.\n } else {\n code = lazyInternalUtil().getSystemErrorName(code);\n }\n }\n const message = `${syscall} ${code}${hostname ? ` ${hostname}` : ''}`;\n // Reducing the limit improves the performance significantly. We do not lose\n // the stack frames due to the `captureStackTrace()` function that is called\n // later.\n const tmpLimit = Error.stackTraceLimit;\n if (isErrorStackTraceLimitWritable()) Error.stackTraceLimit = 0;\n // eslint-disable-next-line no-restricted-syntax\n const ex = new Error(message);\n if (isErrorStackTraceLimitWritable()) Error.stackTraceLimit = tmpLimit;\n ex.errno = errno;\n ex.code = code;\n ex.syscall = syscall;\n if (hostname) {\n ex.hostname = hostname;\n }\n\n return captureLargerStackTrace(ex);\n});\n\nfunction connResetException(msg) {\n // eslint-disable-next-line no-restricted-syntax\n const ex = new Error(msg);\n ex.code = 'ECONNRESET';\n return ex;\n}\n\nlet maxStack_ErrorName;\nlet maxStack_ErrorMessage;\n/**\n * Returns true if `err.name` and `err.message` are equal to engine-specific\n * values indicating max call stack size has been exceeded.\n * "Maximum call stack size exceeded" in V8.\n *\n * @param {Error} err\n * @returns {boolean}\n */\nfunction isStackOverflowError(err) {\n if (maxStack_ErrorMessage === undefined) {\n try {\n function overflowStack() { overflowStack(); }\n overflowStack();\n } catch (err) {\n maxStack_ErrorMessage = err.message;\n maxStack_ErrorName = err.name;\n }\n }\n\n return err && err.name === maxStack_ErrorName &&\n err.message === maxStack_ErrorMessage;\n}\n\n// Only use this for integers! Decimal numbers do not work with this function.\nfunction addNumericalSeparator(val) {\n let res = '';\n let i = val.length;\n const start = val[0] === '-' ? 1 : 0;\n for (; i >= start + 4; i -= 3) {\n res = `_${StringPrototypeSlice(val\x2C i - 3\x2C i)}${res}`;\n }\n return `${StringPrototypeSlice(val\x2C 0\x2C i)}${res}`;\n}\n\n// Used to enhance the stack that will be picked up by the inspector\nconst kEnhanceStackBeforeInspector = Symbol('kEnhanceStackBeforeInspector');\n\n// These are supposed to be called only on fatal exceptions before\n// the process exits.\nconst fatalExceptionStackEnhancers = {\n beforeInspector(error) {\n if (typeof error[kEnhanceStackBeforeInspector] !== 'function') {\n return error.stack;\n }\n\n try {\n // Set the error.stack here so it gets picked up by the\n // inspector.\n error.stack = error[kEnhanceStackBeforeInspector]();\n } catch {\n // We are just enhancing the error. If it fails\x2C ignore it.\n }\n return error.stack;\n }\x2C\n afterInspector(error) {\n const originalStack = error.stack;\n let useColors = true;\n // Some consoles do not convert ANSI escape sequences to colors\x2C\n // rather display them directly to the stdout. On those consoles\x2C\n // libuv emulates colors by intercepting stdout stream and calling\n // corresponding Windows API functions for setting console colors.\n // However\x2C fatal error are handled differently and we cannot easily\n // highlight them. On Windows\x2C detecting whether a console supports\n // ANSI escape sequences is not reliable.\n if (process.platform === 'win32') {\n const info = internalBinding('os').getOSInformation();\n const ver = ArrayPrototypeMap(StringPrototypeSplit(info[2]\x2C '.')\x2C\n Number);\n if (ver[0] !== 10 || ver[2] < 14393) {\n useColors = false;\n }\n }\n const {\n inspect\x2C\n inspectDefaultOptions: {\n colors: defaultColors\n }\n } = lazyInternalUtilInspect();\n const colors = useColors &&\n ((internalBinding('util').guessHandleType(2) === 'TTY' &&\n require('internal/tty').hasColors()) ||\n defaultColors);\n try {\n return inspect(error\x2C {\n colors\x2C\n customInspect: false\x2C\n depth: MathMax(inspect.defaultOptions.depth\x2C 5)\n });\n } catch {\n return originalStack;\n }\n }\n};\n\n// Ensures the printed error line is from user code.\nlet _kArrowMessagePrivateSymbol\x2C _setHiddenValue;\nfunction setArrowMessage(err\x2C arrowMessage) {\n if (!_kArrowMessagePrivateSymbol) {\n ({\n arrow_message_private_symbol: _kArrowMessagePrivateSymbol\x2C\n setHiddenValue: _setHiddenValue\x2C\n } = internalBinding('util'));\n }\n _setHiddenValue(err\x2C _kArrowMessagePrivateSymbol\x2C arrowMessage);\n}\n\n// Hide stack lines before the first user code line.\nfunction hideInternalStackFrames(error) {\n overrideStackTrace.set(error\x2C (error\x2C stackFrames) => {\n let frames = stackFrames;\n if (typeof stackFrames === 'object') {\n frames = ArrayPrototypeFilter(\n stackFrames\x2C\n (frm) => !StringPrototypeStartsWith(frm.getFileName() || ''\x2C\n 'node:internal')\n );\n }\n ArrayPrototypeUnshift(frames\x2C error);\n return ArrayPrototypeJoin(frames\x2C '\\n at ');\n });\n}\n\n// Node uses an AbortError that isn't exactly the same as the DOMException\n// to make usage of the error in userland and readable-stream easier.\n// It is a regular error with `.code` and `.name`.\nclass AbortError extends Error {\n constructor() {\n super('The operation was aborted');\n this.code = 'ABORT_ERR';\n this.name = 'AbortError';\n }\n}\nmodule.exports = {\n aggregateTwoErrors\x2C\n codes\x2C\n dnsException\x2C\n errnoException\x2C\n exceptionWithHostPort\x2C\n getMessage\x2C\n hideStackFrames\x2C\n hideInternalStackFrames\x2C\n isErrorStackTraceLimitWritable\x2C\n isStackOverflowError\x2C\n setArrowMessage\x2C\n connResetException\x2C\n uvErrmapGet\x2C\n uvException\x2C\n uvExceptionWithHostPort\x2C\n SystemError\x2C\n AbortError\x2C\n // This is exported only to facilitate testing.\n E\x2C\n kNoOverride\x2C\n prepareStackTrace\x2C\n maybeOverridePrepareStackTrace\x2C\n overrideStackTrace\x2C\n kEnhanceStackBeforeInspector\x2C\n fatalExceptionStackEnhancers\x2C\n kIsNodeError\x2C\n captureLargerStackTrace\x2C\n};\n\n// To declare an error message\x2C use the E(sym\x2C val\x2C def) function above. The sym\n// must be an upper case string. The val can be either a function or a string.\n// The def must be an error class.\n// The return value of the function must be a string.\n// Examples:\n// E('EXAMPLE_KEY1'\x2C 'This is the error value'\x2C Error);\n// E('EXAMPLE_KEY2'\x2C (a\x2C b) => return `${a} ${b}`\x2C RangeError);\n//\n// Once an error code has been assigned\x2C the code itself MUST NOT change and\n// any given error code must never be reused to identify a different error.\n//\n// Any error code added here should also be added to the documentation\n//\n// Note: Please try to keep these in alphabetical order\n//\n// Note: Node.js specific errors must begin with the prefix ERR_\n\nE('ERR_AMBIGUOUS_ARGUMENT'\x2C 'The "%s" argument is ambiguous. %s'\x2C TypeError);\nE('ERR_ARG_NOT_ITERABLE'\x2C '%s must be iterable'\x2C TypeError);\nE('ERR_ASSERTION'\x2C '%s'\x2C Error);\nE('ERR_ASYNC_CALLBACK'\x2C '%s must be a function'\x2C TypeError);\nE('ERR_ASYNC_TYPE'\x2C 'Invalid name for async "type": %s'\x2C TypeError);\nE('ERR_BROTLI_INVALID_PARAM'\x2C '%s is not a valid Brotli parameter'\x2C RangeError);\nE('ERR_BUFFER_OUT_OF_BOUNDS'\x2C\n // Using a default argument here is important so the argument is not counted\n // towards `Function#length`.\n (name = undefined) => {\n if (name) {\n return `"${name}" is outside of buffer bounds`;\n }\n return 'Attempt to access memory outside buffer bounds';\n }\x2C RangeError);\nE('ERR_BUFFER_TOO_LARGE'\x2C\n 'Cannot create a Buffer larger than %s bytes'\x2C\n RangeError);\nE('ERR_CANNOT_WATCH_SIGINT'\x2C 'Cannot watch for SIGINT signals'\x2C Error);\nE('ERR_CHILD_CLOSED_BEFORE_REPLY'\x2C\n 'Child closed before reply received'\x2C Error);\nE('ERR_CHILD_PROCESS_IPC_REQUIRED'\x2C\n "Forked processes must have an IPC channel\x2C missing value 'ipc' in %s"\x2C\n Error);\nE('ERR_CHILD_PROCESS_STDIO_MAXBUFFER'\x2C '%s maxBuffer length exceeded'\x2C\n RangeError);\nE('ERR_CONSOLE_WRITABLE_STREAM'\x2C\n 'Console expects a writable stream instance for %s'\x2C TypeError);\nE('ERR_CONTEXT_NOT_INITIALIZED'\x2C 'context used is not initialized'\x2C Error);\nE('ERR_CRYPTO_CUSTOM_ENGINE_NOT_SUPPORTED'\x2C\n 'Custom engines not supported by this OpenSSL'\x2C Error);\nE('ERR_CRYPTO_ECDH_INVALID_FORMAT'\x2C 'Invalid ECDH format: %s'\x2C TypeError);\nE('ERR_CRYPTO_ECDH_INVALID_PUBLIC_KEY'\x2C\n 'Public key is not valid for specified curve'\x2C Error);\nE('ERR_CRYPTO_ENGINE_UNKNOWN'\x2C 'Engine "%s" was not found'\x2C Error);\nE('ERR_CRYPTO_FIPS_FORCED'\x2C\n 'Cannot set FIPS mode\x2C it was forced with --force-fips at startup.'\x2C Error);\nE('ERR_CRYPTO_FIPS_UNAVAILABLE'\x2C 'Cannot set FIPS mode in a non-FIPS build.'\x2C\n Error);\nE('ERR_CRYPTO_HASH_FINALIZED'\x2C 'Digest already called'\x2C Error);\nE('ERR_CRYPTO_HASH_UPDATE_FAILED'\x2C 'Hash update failed'\x2C Error);\nE('ERR_CRYPTO_INCOMPATIBLE_KEY'\x2C 'Incompatible %s: %s'\x2C Error);\nE('ERR_CRYPTO_INCOMPATIBLE_KEY_OPTIONS'\x2C 'The selected key encoding %s %s.'\x2C\n Error);\nE('ERR_CRYPTO_INVALID_DIGEST'\x2C 'Invalid digest: %s'\x2C TypeError);\nE('ERR_CRYPTO_INVALID_JWK'\x2C 'Invalid JWK data'\x2C TypeError);\nE('ERR_CRYPTO_INVALID_KEY_OBJECT_TYPE'\x2C\n 'Invalid key object type %s\x2C expected %s.'\x2C TypeError);\nE('ERR_CRYPTO_INVALID_STATE'\x2C 'Invalid state for operation %s'\x2C Error);\nE('ERR_CRYPTO_PBKDF2_ERROR'\x2C 'PBKDF2 error'\x2C Error);\nE('ERR_CRYPTO_SCRYPT_INVALID_PARAMETER'\x2C 'Invalid scrypt parameter'\x2C Error);\nE('ERR_CRYPTO_SCRYPT_NOT_SUPPORTED'\x2C 'Scrypt algorithm not supported'\x2C Error);\n// Switch to TypeError. The current implementation does not seem right.\nE('ERR_CRYPTO_SIGN_KEY_REQUIRED'\x2C 'No key provided to sign'\x2C Error);\nE('ERR_DEBUGGER_ERROR'\x2C '%s'\x2C Error);\nE('ERR_DEBUGGER_STARTUP_ERROR'\x2C '%s'\x2C Error);\nE('ERR_DIR_CLOSED'\x2C 'Directory handle was closed'\x2C Error);\nE('ERR_DIR_CONCURRENT_OPERATION'\x2C\n 'Cannot do synchronous work on directory handle with concurrent ' +\n 'asynchronous operations'\x2C Error);\nE('ERR_DNS_SET_SERVERS_FAILED'\x2C 'c-ares failed to set servers: "%s" [%s]'\x2C\n Error);\nE('ERR_DOMAIN_CALLBACK_NOT_AVAILABLE'\x2C\n 'A callback was registered through ' +\n 'process.setUncaughtExceptionCaptureCallback()\x2C which is mutually ' +\n 'exclusive with using the `domain` module'\x2C\n Error);\nE('ERR_DOMAIN_CANNOT_SET_UNCAUGHT_EXCEPTION_CAPTURE'\x2C\n 'The `domain` module is in use\x2C which is mutually exclusive with calling ' +\n 'process.setUncaughtExceptionCaptureCallback()'\x2C\n Error);\nE('ERR_ENCODING_INVALID_ENCODED_DATA'\x2C function(encoding\x2C ret) {\n this.errno = ret;\n return `The encoded data was not valid for encoding ${encoding}`;\n}\x2C TypeError);\nE('ERR_ENCODING_NOT_SUPPORTED'\x2C 'The "%s" encoding is not supported'\x2C\n RangeError);\nE('ERR_EVAL_ESM_CANNOT_PRINT'\x2C '--print cannot be used with ESM input'\x2C Error);\nE('ERR_EVENT_RECURSION'\x2C 'The event "%s" is already being dispatched'\x2C Error);\nE('ERR_FALSY_VALUE_REJECTION'\x2C function(reason) {\n this.reason = reason;\n return 'Promise was rejected with falsy value';\n}\x2C Error);\nE('ERR_FEATURE_UNAVAILABLE_ON_PLATFORM'\x2C\n 'The feature %s is unavailable on the current platform' +\n '\x2C which is being used to run Node.js'\x2C\n TypeError);\nE('ERR_FS_EISDIR'\x2C 'Path is a directory'\x2C SystemError);\nE('ERR_FS_FILE_TOO_LARGE'\x2C 'File size (%s) is greater than 2 GB'\x2C RangeError);\nE('ERR_FS_INVALID_SYMLINK_TYPE'\x2C\n 'Symlink type must be one of "dir"\x2C "file"\x2C or "junction". Received "%s"'\x2C\n Error); // Switch to TypeError. The current implementation does not seem right\nE('ERR_HTTP2_ALTSVC_INVALID_ORIGIN'\x2C\n 'HTTP/2 ALTSVC frames require a valid origin'\x2C TypeError);\nE('ERR_HTTP2_ALTSVC_LENGTH'\x2C\n 'HTTP/2 ALTSVC frames are limited to 16382 bytes'\x2C TypeError);\nE('ERR_HTTP2_CONNECT_AUTHORITY'\x2C\n ':authority header is required for CONNECT requests'\x2C Error);\nE('ERR_HTTP2_CONNECT_PATH'\x2C\n 'The :path header is forbidden for CONNECT requests'\x2C Error);\nE('ERR_HTTP2_CONNECT_SCHEME'\x2C\n 'The :scheme header is forbidden for CONNECT requests'\x2C Error);\nE('ERR_HTTP2_GOAWAY_SESSION'\x2C\n 'New streams cannot be created after receiving a GOAWAY'\x2C Error);\nE('ERR_HTTP2_HEADERS_AFTER_RESPOND'\x2C\n 'Cannot specify additional headers after response initiated'\x2C Error);\nE('ERR_HTTP2_HEADERS_SENT'\x2C 'Response has already been initiated.'\x2C Error);\nE('ERR_HTTP2_HEADER_SINGLE_VALUE'\x2C\n 'Header field "%s" must only have a single value'\x2C TypeError);\nE('ERR_HTTP2_INFO_STATUS_NOT_ALLOWED'\x2C\n 'Informational status codes cannot be used'\x2C RangeError);\nE('ERR_HTTP2_INVALID_CONNECTION_HEADERS'\x2C\n 'HTTP/1 Connection specific headers are forbidden: "%s"'\x2C TypeError);\nE('ERR_HTTP2_INVALID_HEADER_VALUE'\x2C\n 'Invalid value "%s" for header "%s"'\x2C TypeError);\nE('ERR_HTTP2_INVALID_INFO_STATUS'\x2C\n 'Invalid informational status code: %s'\x2C RangeError);\nE('ERR_HTTP2_INVALID_ORIGIN'\x2C\n 'HTTP/2 ORIGIN frames require a valid origin'\x2C TypeError);\nE('ERR_HTTP2_INVALID_PACKED_SETTINGS_LENGTH'\x2C\n 'Packed settings length must be a multiple of six'\x2C RangeError);\nE('ERR_HTTP2_INVALID_PSEUDOHEADER'\x2C\n '"%s" is an invalid pseudoheader or is used incorrectly'\x2C TypeError);\nE('ERR_HTTP2_INVALID_SESSION'\x2C 'The session has been destroyed'\x2C Error);\nE('ERR_HTTP2_INVALID_SETTING_VALUE'\x2C\n // Using default arguments here is important so the arguments are not counted\n // towards `Function#length`.\n function(name\x2C actual\x2C min = undefined\x2C max = undefined) {\n this.actual = actual;\n if (min !== undefined) {\n this.min = min;\n this.max = max;\n }\n return `Invalid value for setting "${name}": ${actual}`;\n }\x2C TypeError\x2C RangeError);\nE('ERR_HTTP2_INVALID_STREAM'\x2C 'The stream has been destroyed'\x2C Error);\nE('ERR_HTTP2_MAX_PENDING_SETTINGS_ACK'\x2C\n 'Maximum number of pending settings acknowledgements'\x2C Error);\nE('ERR_HTTP2_NESTED_PUSH'\x2C\n 'A push stream cannot initiate another push stream.'\x2C Error);\nE('ERR_HTTP2_NO_MEM'\x2C 'Out of memory'\x2C Error);\nE('ERR_HTTP2_NO_SOCKET_MANIPULATION'\x2C\n 'HTTP/2 sockets should not be directly manipulated (e.g. read and written)'\x2C\n Error);\nE('ERR_HTTP2_ORIGIN_LENGTH'\x2C\n 'HTTP/2 ORIGIN frames are limited to 16382 bytes'\x2C TypeError);\nE('ERR_HTTP2_OUT_OF_STREAMS'\x2C\n 'No stream ID is available because maximum stream ID has been reached'\x2C\n Error);\nE('ERR_HTTP2_PAYLOAD_FORBIDDEN'\x2C\n 'Responses with %s status must not have a payload'\x2C Error);\nE('ERR_HTTP2_PING_CANCEL'\x2C 'HTTP2 ping cancelled'\x2C Error);\nE('ERR_HTTP2_PING_LENGTH'\x2C 'HTTP2 ping payload must be 8 bytes'\x2C RangeError);\nE('ERR_HTTP2_PSEUDOHEADER_NOT_ALLOWED'\x2C\n 'Cannot set HTTP/2 pseudo-headers'\x2C TypeError);\nE('ERR_HTTP2_PUSH_DISABLED'\x2C 'HTTP/2 client has disabled push streams'\x2C Error);\nE('ERR_HTTP2_SEND_FILE'\x2C 'Directories cannot be sent'\x2C Error);\nE('ERR_HTTP2_SEND_FILE_NOSEEK'\x2C\n 'Offset or length can only be specified for regular files'\x2C Error);\nE('ERR_HTTP2_SESSION_ERROR'\x2C 'Session closed with error code %s'\x2C Error);\nE('ERR_HTTP2_SETTINGS_CANCEL'\x2C 'HTTP2 session settings canceled'\x2C Error);\nE('ERR_HTTP2_SOCKET_BOUND'\x2C\n 'The socket is already bound to an Http2Session'\x2C Error);\nE('ERR_HTTP2_SOCKET_UNBOUND'\x2C\n 'The socket has been disconnected from the Http2Session'\x2C Error);\nE('ERR_HTTP2_STATUS_101'\x2C\n 'HTTP status code 101 (Switching Protocols) is forbidden in HTTP/2'\x2C Error);\nE('ERR_HTTP2_STATUS_INVALID'\x2C 'Invalid status code: %s'\x2C RangeError);\nE('ERR_HTTP2_STREAM_CANCEL'\x2C function(error) {\n let msg = 'The pending stream has been canceled';\n if (error) {\n this.cause = error;\n if (typeof error.message === 'string')\n msg += ` (caused by: ${error.message})`;\n }\n return msg;\n}\x2C Error);\nE('ERR_HTTP2_STREAM_ERROR'\x2C 'Stream closed with error code %s'\x2C Error);\nE('ERR_HTTP2_STREAM_SELF_DEPENDENCY'\x2C\n 'A stream cannot depend on itself'\x2C Error);\nE('ERR_HTTP2_TOO_MANY_INVALID_FRAMES'\x2C 'Too many invalid HTTP/2 frames'\x2C Error);\nE('ERR_HTTP2_TRAILERS_ALREADY_SENT'\x2C\n 'Trailing headers have already been sent'\x2C Error);\nE('ERR_HTTP2_TRAILERS_NOT_READY'\x2C\n 'Trailing headers cannot be sent until after the wantTrailers event is ' +\n 'emitted'\x2C Error);\nE('ERR_HTTP2_UNSUPPORTED_PROTOCOL'\x2C 'protocol "%s" is unsupported.'\x2C Error);\nE('ERR_HTTP_HEADERS_SENT'\x2C\n 'Cannot %s headers after they are sent to the client'\x2C Error);\nE('ERR_HTTP_INVALID_HEADER_VALUE'\x2C\n 'Invalid value "%s" for header "%s"'\x2C TypeError);\nE('ERR_HTTP_INVALID_STATUS_CODE'\x2C 'Invalid status code: %s'\x2C RangeError);\nE('ERR_HTTP_REQUEST_TIMEOUT'\x2C 'Request timeout'\x2C Error);\nE('ERR_HTTP_SOCKET_ENCODING'\x2C\n 'Changing the socket encoding is not allowed per RFC7230 Section 3.'\x2C Error);\nE('ERR_HTTP_TRAILER_INVALID'\x2C\n 'Trailers are invalid with this transfer encoding'\x2C Error);\nE('ERR_ILLEGAL_CONSTRUCTOR'\x2C 'Illegal constructor'\x2C TypeError);\nE('ERR_INCOMPATIBLE_OPTION_PAIR'\x2C\n 'Option "%s" cannot be used in combination with option "%s"'\x2C TypeError);\nE('ERR_INPUT_TYPE_NOT_ALLOWED'\x2C '--input-type can only be used with string ' +\n 'input via --eval\x2C --print\x2C or STDIN'\x2C Error);\nE('ERR_INSPECTOR_ALREADY_ACTIVATED'\x2C\n 'Inspector is already activated. Close it with inspector.close() ' +\n 'before activating it again.'\x2C\n Error);\nE('ERR_INSPECTOR_ALREADY_CONNECTED'\x2C '%s is already connected'\x2C Error);\nE('ERR_INSPECTOR_CLOSED'\x2C 'Session was closed'\x2C Error);\nE('ERR_INSPECTOR_COMMAND'\x2C 'Inspector error %d: %s'\x2C Error);\nE('ERR_INSPECTOR_NOT_ACTIVE'\x2C 'Inspector is not active'\x2C Error);\nE('ERR_INSPECTOR_NOT_AVAILABLE'\x2C 'Inspector is not available'\x2C Error);\nE('ERR_INSPECTOR_NOT_CONNECTED'\x2C 'Session is not connected'\x2C Error);\nE('ERR_INSPECTOR_NOT_WORKER'\x2C 'Current thread is not a worker'\x2C Error);\nE('ERR_INTERNAL_ASSERTION'\x2C (message) => {\n const suffix = 'This is caused by either a bug in Node.js ' +\n 'or incorrect usage of Node.js internals.\\n' +\n 'Please open an issue with this stack trace at ' +\n 'https://github.com/nodejs/node/issues\\n';\n return message === undefined ? suffix : `${message}\\n${suffix}`;\n}\x2C Error);\nE('ERR_INVALID_ADDRESS_FAMILY'\x2C function(addressType\x2C host\x2C port) {\n this.host = host;\n this.port = port;\n return `Invalid address family: ${addressType} ${host}:${port}`;\n}\x2C RangeError);\nE('ERR_INVALID_ARG_TYPE'\x2C\n (name\x2C expected\x2C actual) => {\n assert(typeof name === 'string'\x2C "'name' must be a string");\n if (!ArrayIsArray(expected)) {\n expected = [expected];\n }\n\n let msg = 'The ';\n if (StringPrototypeEndsWith(name\x2C ' argument')) {\n // For cases like 'first argument'\n msg += `${name} `;\n } else {\n const type = StringPrototypeIncludes(name\x2C '.') ? 'property' : 'argument';\n msg += `"${name}" ${type} `;\n }\n msg += 'must be ';\n\n const types = [];\n const instances = [];\n const other = [];\n\n for (const value of expected) {\n assert(typeof value === 'string'\x2C\n 'All expected entries have to be of type string');\n if (ArrayPrototypeIncludes(kTypes\x2C value)) {\n ArrayPrototypePush(types\x2C StringPrototypeToLowerCase(value));\n } else if (RegExpPrototypeTest(classRegExp\x2C value)) {\n ArrayPrototypePush(instances\x2C value);\n } else {\n assert(value !== 'object'\x2C\n 'The value "object" should be written as "Object"');\n ArrayPrototypePush(other\x2C value);\n }\n }\n\n // Special handle `object` in case other instances are allowed to outline\n // the differences between each other.\n if (instances.length > 0) {\n const pos = ArrayPrototypeIndexOf(types\x2C 'object');\n if (pos !== -1) {\n ArrayPrototypeSplice(types\x2C pos\x2C 1);\n ArrayPrototypePush(instances\x2C 'Object');\n }\n }\n\n if (types.length > 0) {\n if (types.length > 2) {\n const last = ArrayPrototypePop(types);\n msg += `one of type ${ArrayPrototypeJoin(types\x2C '\x2C ')}\x2C or ${last}`;\n } else if (types.length === 2) {\n msg += `one of type ${types[0]} or ${types[1]}`;\n } else {\n msg += `of type ${types[0]}`;\n }\n if (instances.length > 0 || other.length > 0)\n msg += ' or ';\n }\n\n if (instances.length > 0) {\n if (instances.length > 2) {\n const last = ArrayPrototypePop(instances);\n msg +=\n `an instance of ${ArrayPrototypeJoin(instances\x2C '\x2C ')}\x2C or ${last}`;\n } else {\n msg += `an instance of ${instances[0]}`;\n if (instances.length === 2) {\n msg += ` or ${instances[1]}`;\n }\n }\n if (other.length > 0)\n msg += ' or ';\n }\n\n if (other.length > 0) {\n if (other.length > 2) {\n const last = ArrayPrototypePop(other);\n msg += `one of ${ArrayPrototypeJoin(other\x2C '\x2C ')}\x2C or ${last}`;\n } else if (other.length === 2) {\n msg += `one of ${other[0]} or ${other[1]}`;\n } else {\n if (StringPrototypeToLowerCase(other[0]) !== other[0])\n msg += 'an ';\n msg += `${other[0]}`;\n }\n }\n\n if (actual == null) {\n msg += `. Received ${actual}`;\n } else if (typeof actual === 'function' && actual.name) {\n msg += `. Received function ${actual.name}`;\n } else if (typeof actual === 'object') {\n if (actual.constructor && actual.constructor.name) {\n msg += `. Received an instance of ${actual.constructor.name}`;\n } else {\n const inspected = lazyInternalUtilInspect()\n .inspect(actual\x2C { depth: -1 });\n msg += `. Received ${inspected}`;\n }\n } else {\n let inspected = lazyInternalUtilInspect()\n .inspect(actual\x2C { colors: false });\n if (inspected.length > 25)\n inspected = `${StringPrototypeSlice(inspected\x2C 0\x2C 25)}...`;\n msg += `. Received type ${typeof actual} (${inspected})`;\n }\n return msg;\n }\x2C TypeError);\nE('ERR_INVALID_ARG_VALUE'\x2C (name\x2C value\x2C reason = 'is invalid') => {\n let inspected = lazyInternalUtilInspect().inspect(value);\n if (inspected.length > 128) {\n inspected = `${StringPrototypeSlice(inspected\x2C 0\x2C 128)}...`;\n }\n const type = StringPrototypeIncludes(name\x2C '.') ? 'property' : 'argument';\n return `The ${type} '${name}' ${reason}. Received ${inspected}`;\n}\x2C TypeError\x2C RangeError);\nE('ERR_INVALID_ASYNC_ID'\x2C 'Invalid %s value: %s'\x2C RangeError);\nE('ERR_INVALID_BUFFER_SIZE'\x2C\n 'Buffer size must be a multiple of %s'\x2C RangeError);\nE('ERR_INVALID_CALLBACK'\x2C\n 'Callback must be a function. Received %O'\x2C TypeError);\nE('ERR_INVALID_CHAR'\x2C\n // Using a default argument here is important so the argument is not counted\n // towards `Function#length`.\n (name\x2C field = undefined) => {\n let msg = `Invalid character in ${name}`;\n if (field !== undefined) {\n msg += ` ["${field}"]`;\n }\n return msg;\n }\x2C TypeError);\nE('ERR_INVALID_CURSOR_POS'\x2C\n 'Cannot set cursor row without setting its column'\x2C TypeError);\nE('ERR_INVALID_FD'\x2C\n '"fd" must be a positive integer: %s'\x2C RangeError);\nE('ERR_INVALID_FD_TYPE'\x2C 'Unsupported fd type: %s'\x2C TypeError);\nE('ERR_INVALID_FILE_URL_HOST'\x2C\n 'File URL host must be "localhost" or empty on %s'\x2C TypeError);\nE('ERR_INVALID_FILE_URL_PATH'\x2C 'File URL path %s'\x2C TypeError);\nE('ERR_INVALID_HANDLE_TYPE'\x2C 'This handle type cannot be sent'\x2C TypeError);\nE('ERR_INVALID_HTTP_TOKEN'\x2C '%s must be a valid HTTP token ["%s"]'\x2C TypeError);\nE('ERR_INVALID_IP_ADDRESS'\x2C 'Invalid IP address: %s'\x2C TypeError);\nE('ERR_INVALID_MODULE_SPECIFIER'\x2C (request\x2C reason\x2C base = undefined) => {\n return `Invalid module "${request}" ${reason}${base ?\n ` imported from ${base}` : ''}`;\n}\x2C TypeError);\nE('ERR_INVALID_PACKAGE_CONFIG'\x2C (path\x2C base\x2C message) => {\n return `Invalid package config ${path}${base ? ` while importing ${base}` :\n ''}${message ? `. ${message}` : ''}`;\n}\x2C Error);\nE('ERR_INVALID_PACKAGE_TARGET'\x2C\n (pkgPath\x2C key\x2C target\x2C isImport = false\x2C base = undefined) => {\n const relError = typeof target === 'string' && !isImport &&\n target.length && !StringPrototypeStartsWith(target\x2C './');\n if (key === '.') {\n assert(isImport === false);\n return `Invalid "exports" main target ${JSONStringify(target)} defined ` +\n `in the package config ${pkgPath}package.json${base ?\n ` imported from ${base}` : ''}${relError ?\n '; targets must start with "./"' : ''}`;\n }\n return `Invalid "${isImport ? 'imports' : 'exports'}" target ${\n JSONStringify(target)} defined for '${key}' in the package config ${\n pkgPath}package.json${base ? ` imported from ${base}` : ''}${relError ?\n '; targets must start with "./"' : ''}`;\n }\x2C Error);\nE('ERR_INVALID_PERFORMANCE_MARK'\x2C\n 'The "%s" performance mark has not been set'\x2C Error);\nE('ERR_INVALID_PROTOCOL'\x2C\n 'Protocol "%s" not supported. Expected "%s"'\x2C\n TypeError);\nE('ERR_INVALID_REPL_EVAL_CONFIG'\x2C\n 'Cannot specify both "breakEvalOnSigint" and "eval" for REPL'\x2C TypeError);\nE('ERR_INVALID_REPL_INPUT'\x2C '%s'\x2C TypeError);\nE('ERR_INVALID_RETURN_PROPERTY'\x2C (input\x2C name\x2C prop\x2C value) => {\n return `Expected a valid ${input} to be returned for the "${prop}" from the` +\n ` "${name}" function but got ${value}.`;\n}\x2C TypeError);\nE('ERR_INVALID_RETURN_PROPERTY_VALUE'\x2C (input\x2C name\x2C prop\x2C value) => {\n let type;\n if (value && value.constructor && value.constructor.name) {\n type = `instance of ${value.constructor.name}`;\n } else {\n type = `type ${typeof value}`;\n }\n return `Expected ${input} to be returned for the "${prop}" from the` +\n ` "${name}" function but got ${type}.`;\n}\x2C TypeError);\nE('ERR_INVALID_RETURN_VALUE'\x2C (input\x2C name\x2C value) => {\n let type;\n if (value && value.constructor && value.constructor.name) {\n type = `instance of ${value.constructor.name}`;\n } else {\n type = `type ${typeof value}`;\n }\n return `Expected ${input} to be returned from the "${name}"` +\n ` function but got ${type}.`;\n}\x2C TypeError\x2C RangeError);\nE('ERR_INVALID_STATE'\x2C 'Invalid state: %s'\x2C Error\x2C TypeError\x2C RangeError);\nE('ERR_INVALID_SYNC_FORK_INPUT'\x2C\n 'Asynchronous forks do not support ' +\n 'Buffer\x2C TypedArray\x2C DataView or string input: %s'\x2C\n TypeError);\nE('ERR_INVALID_THIS'\x2C 'Value of "this" must be of type %s'\x2C TypeError);\nE('ERR_INVALID_TUPLE'\x2C '%s must be an iterable %s tuple'\x2C TypeError);\nE('ERR_INVALID_URI'\x2C 'URI malformed'\x2C URIError);\nE('ERR_INVALID_URL'\x2C function(input) {\n this.input = input;\n // Don't include URL in message.\n // (See https://github.com/nodejs/node/pull/38614)\n return 'Invalid URL';\n}\x2C TypeError);\nE('ERR_INVALID_URL_SCHEME'\x2C\n (expected) => {\n if (typeof expected === 'string')\n expected = [expected];\n assert(expected.length <= 2);\n const res = expected.length === 2 ?\n `one of scheme ${expected[0]} or ${expected[1]}` :\n `of scheme ${expected[0]}`;\n return `The URL must be ${res}`;\n }\x2C TypeError);\nE('ERR_IPC_CHANNEL_CLOSED'\x2C 'Channel closed'\x2C Error);\nE('ERR_IPC_DISCONNECTED'\x2C 'IPC channel is already disconnected'\x2C Error);\nE('ERR_IPC_ONE_PIPE'\x2C 'Child process can have only one IPC pipe'\x2C Error);\nE('ERR_IPC_SYNC_FORK'\x2C 'IPC cannot be used with synchronous forks'\x2C Error);\nE('ERR_MANIFEST_ASSERT_INTEGRITY'\x2C\n (moduleURL\x2C realIntegrities) => {\n let msg = `The content of "${\n moduleURL\n }" does not match the expected integrity.`;\n if (realIntegrities.size) {\n const sri = ArrayPrototypeJoin(\n ArrayFrom(realIntegrities.entries()\x2C\n ({ 0: alg\x2C 1: dgs }) => `${alg}-${dgs}`)\x2C\n ' '\n );\n msg += ` Integrities found are: ${sri}`;\n } else {\n msg += ' The resource was not found in the policy.';\n }\n return msg;\n }\x2C Error);\nE('ERR_MANIFEST_DEPENDENCY_MISSING'\x2C\n 'Manifest resource %s does not list %s as a dependency specifier for ' +\n 'conditions: %s'\x2C\n Error);\nE('ERR_MANIFEST_INTEGRITY_MISMATCH'\x2C\n 'Manifest resource %s has multiple entries but integrity lists do not match'\x2C\n SyntaxError);\nE('ERR_MANIFEST_INVALID_RESOURCE_FIELD'\x2C\n 'Manifest resource %s has invalid property value for %s'\x2C\n TypeError);\nE('ERR_MANIFEST_TDZ'\x2C 'Manifest initialization has not yet run'\x2C Error);\nE('ERR_MANIFEST_UNKNOWN_ONERROR'\x2C\n 'Manifest specified unknown error behavior "%s".'\x2C\n SyntaxError);\nE('ERR_METHOD_NOT_IMPLEMENTED'\x2C 'The %s method is not implemented'\x2C Error);\nE('ERR_MISSING_ARGS'\x2C\n (...args) => {\n assert(args.length > 0\x2C 'At least one arg needs to be specified');\n let msg = 'The ';\n const len = args.length;\n const wrap = (a) => `"${a}"`;\n args = ArrayPrototypeMap(\n args\x2C\n (a) => (ArrayIsArray(a) ?\n ArrayPrototypeJoin(ArrayPrototypeMap(a\x2C wrap)\x2C ' or ') :\n wrap(a))\n );\n switch (len) {\n case 1:\n msg += `${args[0]} argument`;\n break;\n case 2:\n msg += `${args[0]} and ${args[1]} arguments`;\n break;\n default:\n msg += ArrayPrototypeJoin(ArrayPrototypeSlice(args\x2C 0\x2C len - 1)\x2C '\x2C ');\n msg += `\x2C and ${args[len - 1]} arguments`;\n break;\n }\n return `${msg} must be specified`;\n }\x2C TypeError);\nE('ERR_MISSING_OPTION'\x2C '%s is required'\x2C TypeError);\nE('ERR_MODULE_NOT_FOUND'\x2C (path\x2C base\x2C type = 'package') => {\n return `Cannot find ${type} '${path}' imported from ${base}`;\n}\x2C Error);\nE('ERR_MULTIPLE_CALLBACK'\x2C 'Callback called multiple times'\x2C Error);\nE('ERR_NAPI_CONS_FUNCTION'\x2C 'Constructor must be a function'\x2C TypeError);\nE('ERR_NAPI_INVALID_DATAVIEW_ARGS'\x2C\n 'byte_offset + byte_length should be less than or equal to the size in ' +\n 'bytes of the array passed in'\x2C\n RangeError);\nE('ERR_NAPI_INVALID_TYPEDARRAY_ALIGNMENT'\x2C\n 'start offset of %s should be a multiple of %s'\x2C RangeError);\nE('ERR_NAPI_INVALID_TYPEDARRAY_LENGTH'\x2C\n 'Invalid typed array length'\x2C RangeError);\nE('ERR_NO_CRYPTO'\x2C\n 'Node.js is not compiled with OpenSSL crypto support'\x2C Error);\nE('ERR_NO_ICU'\x2C\n '%s is not supported on Node.js compiled without ICU'\x2C TypeError);\nE('ERR_OPERATION_FAILED'\x2C 'Operation failed: %s'\x2C Error\x2C TypeError);\nE('ERR_OUT_OF_RANGE'\x2C\n (str\x2C range\x2C input\x2C replaceDefaultBoolean = false) => {\n assert(range\x2C 'Missing "range" argument');\n let msg = replaceDefaultBoolean ? str :\n `The value of "${str}" is out of range.`;\n let received;\n if (NumberIsInteger(input) && MathAbs(input) > 2 ** 32) {\n received = addNumericalSeparator(String(input));\n } else if (typeof input === 'bigint') {\n received = String(input);\n if (input > 2n ** 32n || input < -(2n ** 32n)) {\n received = addNumericalSeparator(received);\n }\n received += 'n';\n } else {\n received = lazyInternalUtilInspect().inspect(input);\n }\n msg += ` It must be ${range}. Received ${received}`;\n return msg;\n }\x2C RangeError);\nE('ERR_PACKAGE_IMPORT_NOT_DEFINED'\x2C (specifier\x2C packagePath\x2C base) => {\n return `Package import specifier "${specifier}" is not defined${packagePath ?\n ` in package ${packagePath}package.json` : ''} imported from ${base}`;\n}\x2C TypeError);\nE('ERR_PACKAGE_PATH_NOT_EXPORTED'\x2C (pkgPath\x2C subpath\x2C base = undefined) => {\n if (subpath === '.')\n return `No "exports" main defined in ${pkgPath}package.json${base ?\n ` imported from ${base}` : ''}`;\n return `Package subpath '${subpath}' is not defined by "exports" in ${\n pkgPath}package.json${base ? ` imported from ${base}` : ''}`;\n}\x2C Error);\nE('ERR_PERFORMANCE_INVALID_TIMESTAMP'\x2C\n '%d is not a valid timestamp'\x2C TypeError);\nE('ERR_PERFORMANCE_MEASURE_INVALID_OPTIONS'\x2C '%s'\x2C TypeError);\nE('ERR_REQUIRE_ESM'\x2C\n function(filename\x2C hasEsmSyntax\x2C parentPath = null\x2C packageJsonPath = null) {\n hideInternalStackFrames(this);\n let msg = `require() of ES Module ${filename}${parentPath ? ` from ${\n parentPath}` : ''} not supported.`;\n if (!packageJsonPath) {\n if (StringPrototypeEndsWith(filename\x2C '.mjs'))\n msg += `\\nInstead change the require of ${filename} to a dynamic ` +\n 'import() which is available in all CommonJS modules.';\n return msg;\n }\n const path = require('path');\n const basename = path.basename(filename) === path.basename(parentPath) ?\n filename : path.basename(filename);\n if (hasEsmSyntax) {\n msg += `\\nInstead change the require of ${basename} in ${parentPath} to` +\n ' a dynamic import() which is available in all CommonJS modules.';\n return msg;\n }\n msg += `\\n${basename} is treated as an ES module file as it is a .js ` +\n 'file whose nearest parent package.json contains "type": "module" ' +\n 'which declares all .js files in that package scope as ES modules.' +\n `\\nInstead rename ${basename} to end in .cjs\x2C change the requiring ` +\n 'code to use dynamic import() which is available in all CommonJS ' +\n 'modules\x2C or change "type": "module" to "type": "commonjs" in ' +\n `${packageJsonPath} to treat all .js files as CommonJS (using .mjs for ` +\n 'all ES modules instead).\\n';\n return msg;\n }\x2C Error);\nE('ERR_SCRIPT_EXECUTION_INTERRUPTED'\x2C\n 'Script execution was interrupted by `SIGINT`'\x2C Error);\nE('ERR_SERVER_ALREADY_LISTEN'\x2C\n 'Listen method has been called more than once without closing.'\x2C Error);\nE('ERR_SERVER_NOT_RUNNING'\x2C 'Server is not running.'\x2C Error);\nE('ERR_SOCKET_ALREADY_BOUND'\x2C 'Socket is already bound'\x2C Error);\nE('ERR_SOCKET_BAD_BUFFER_SIZE'\x2C\n 'Buffer size must be a positive integer'\x2C TypeError);\nE('ERR_SOCKET_BAD_PORT'\x2C (name\x2C port\x2C allowZero = true) => {\n assert(typeof allowZero === 'boolean'\x2C\n "The 'allowZero' argument must be of type boolean.");\n const operator = allowZero ? '>=' : '>';\n return `${name} should be ${operator} 0 and < 65536. Received ${port}.`;\n}\x2C RangeError);\nE('ERR_SOCKET_BAD_TYPE'\x2C\n 'Bad socket type specified. Valid types are: udp4\x2C udp6'\x2C TypeError);\nE('ERR_SOCKET_BUFFER_SIZE'\x2C\n 'Could not get or set buffer size'\x2C\n SystemError);\nE('ERR_SOCKET_CLOSED'\x2C 'Socket is closed'\x2C Error);\nE('ERR_SOCKET_DGRAM_IS_CONNECTED'\x2C 'Already connected'\x2C Error);\nE('ERR_SOCKET_DGRAM_NOT_CONNECTED'\x2C 'Not connected'\x2C Error);\nE('ERR_SOCKET_DGRAM_NOT_RUNNING'\x2C 'Not running'\x2C Error);\nE('ERR_SRI_PARSE'\x2C\n 'Subresource Integrity string %j had an unexpected %j at position %d'\x2C\n SyntaxError);\nE('ERR_STREAM_ALREADY_FINISHED'\x2C\n 'Cannot call %s after a stream was finished'\x2C\n Error);\nE('ERR_STREAM_CANNOT_PIPE'\x2C 'Cannot pipe\x2C not readable'\x2C Error);\nE('ERR_STREAM_DESTROYED'\x2C 'Cannot call %s after a stream was destroyed'\x2C Error);\nE('ERR_STREAM_NULL_VALUES'\x2C 'May not write null values to stream'\x2C TypeError);\nE('ERR_STREAM_PREMATURE_CLOSE'\x2C 'Premature close'\x2C Error);\nE('ERR_STREAM_PUSH_AFTER_EOF'\x2C 'stream.push() after EOF'\x2C Error);\nE('ERR_STREAM_UNSHIFT_AFTER_END_EVENT'\x2C\n 'stream.unshift() after end event'\x2C Error);\nE('ERR_STREAM_WRAP'\x2C 'Stream has StringDecoder set or is in objectMode'\x2C Error);\nE('ERR_STREAM_WRITE_AFTER_END'\x2C 'write after end'\x2C Error);\nE('ERR_SYNTHETIC'\x2C 'JavaScript Callstack'\x2C Error);\nE('ERR_SYSTEM_ERROR'\x2C 'A system error occurred'\x2C SystemError);\nE('ERR_TLS_CERT_ALTNAME_INVALID'\x2C function(reason\x2C host\x2C cert) {\n this.reason = reason;\n this.host = host;\n this.cert = cert;\n return `Hostname/IP does not match certificate's altnames: ${reason}`;\n}\x2C Error);\nE('ERR_TLS_DH_PARAM_SIZE'\x2C 'DH parameter size %s is less than 2048'\x2C Error);\nE('ERR_TLS_HANDSHAKE_TIMEOUT'\x2C 'TLS handshake timeout'\x2C Error);\nE('ERR_TLS_INVALID_CONTEXT'\x2C '%s must be a SecureContext'\x2C TypeError);\nE('ERR_TLS_INVALID_PROTOCOL_VERSION'\x2C\n '%j is not a valid %s TLS protocol version'\x2C TypeError);\nE('ERR_TLS_INVALID_STATE'\x2C 'TLS socket connection must be securely established'\x2C\n Error);\nE('ERR_TLS_PROTOCOL_VERSION_CONFLICT'\x2C\n 'TLS protocol version %j conflicts with secureProtocol %j'\x2C TypeError);\nE('ERR_TLS_RENEGOTIATION_DISABLED'\x2C\n 'TLS session renegotiation disabled for this socket'\x2C Error);\n\n// This should probably be a `TypeError`.\nE('ERR_TLS_REQUIRED_SERVER_NAME'\x2C\n '"servername" is required parameter for Server.addContext'\x2C Error);\nE('ERR_TLS_SESSION_ATTACK'\x2C 'TLS session renegotiation attack detected'\x2C Error);\nE('ERR_TLS_SNI_FROM_SERVER'\x2C\n 'Cannot issue SNI from a TLS server-side socket'\x2C Error);\nE('ERR_TRACE_EVENTS_CATEGORY_REQUIRED'\x2C\n 'At least one category is required'\x2C TypeError);\nE('ERR_TRACE_EVENTS_UNAVAILABLE'\x2C 'Trace events are unavailable'\x2C Error);\n\n// This should probably be a `RangeError`.\nE('ERR_TTY_INIT_FAILED'\x2C 'TTY initialization failed'\x2C SystemError);\nE('ERR_UNAVAILABLE_DURING_EXIT'\x2C 'Cannot call function in process exit ' +\n 'handler'\x2C Error);\nE('ERR_UNCAUGHT_EXCEPTION_CAPTURE_ALREADY_SET'\x2C\n '`process.setupUncaughtExceptionCapture()` was called while a capture ' +\n 'callback was already active'\x2C\n Error);\nE('ERR_UNESCAPED_CHARACTERS'\x2C '%s contains unescaped characters'\x2C TypeError);\nE('ERR_UNHANDLED_ERROR'\x2C\n // Using a default argument here is important so the argument is not counted\n // towards `Function#length`.\n (err = undefined) => {\n const msg = 'Unhandled error.';\n if (err === undefined) return msg;\n return `${msg} (${err})`;\n }\x2C Error);\nE('ERR_UNKNOWN_BUILTIN_MODULE'\x2C 'No such built-in module: %s'\x2C Error);\nE('ERR_UNKNOWN_CREDENTIAL'\x2C '%s identifier does not exist: %s'\x2C Error);\nE('ERR_UNKNOWN_ENCODING'\x2C 'Unknown encoding: %s'\x2C TypeError);\nE('ERR_UNKNOWN_FILE_EXTENSION'\x2C\n 'Unknown file extension "%s" for %s'\x2C\n TypeError);\nE('ERR_UNKNOWN_MODULE_FORMAT'\x2C 'Unknown module format: %s'\x2C RangeError);\nE('ERR_UNKNOWN_SIGNAL'\x2C 'Unknown signal: %s'\x2C TypeError);\nE('ERR_UNSUPPORTED_DIR_IMPORT'\x2C "Directory import '%s' is not supported " +\n'resolving ES modules imported from %s'\x2C Error);\nE('ERR_UNSUPPORTED_ESM_URL_SCHEME'\x2C (url) => {\n let msg = 'Only file and data URLs are supported by the default ESM loader';\n if (isWindows && url.protocol.length === 2) {\n msg +=\n '. On Windows\x2C absolute paths must be valid file:// URLs';\n }\n msg += `. Received protocol '${url.protocol}'`;\n return msg;\n}\x2C Error);\n\n// This should probably be a `TypeError`.\nE('ERR_VALID_PERFORMANCE_ENTRY_TYPE'\x2C\n 'At least one valid performance entry type is required'\x2C Error);\nE('ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING'\x2C\n 'A dynamic import callback was not specified.'\x2C TypeError);\nE('ERR_VM_MODULE_ALREADY_LINKED'\x2C 'Module has already been linked'\x2C Error);\nE('ERR_VM_MODULE_CANNOT_CREATE_CACHED_DATA'\x2C\n 'Cached data cannot be created for a module which has been evaluated'\x2C Error);\nE('ERR_VM_MODULE_DIFFERENT_CONTEXT'\x2C\n 'Linked modules must use the same context'\x2C Error);\nE('ERR_VM_MODULE_LINKING_ERRORED'\x2C\n 'Linking has already failed for the provided module'\x2C Error);\nE('ERR_VM_MODULE_NOT_MODULE'\x2C\n 'Provided module is not an instance of Module'\x2C Error);\nE('ERR_VM_MODULE_STATUS'\x2C 'Module status %s'\x2C Error);\nE('ERR_WASI_ALREADY_STARTED'\x2C 'WASI instance has already started'\x2C Error);\nE('ERR_WORKER_INIT_FAILED'\x2C 'Worker initialization failure: %s'\x2C Error);\nE('ERR_WORKER_INVALID_EXEC_ARGV'\x2C (errors\x2C msg = 'invalid execArgv flags') =>\n `Initiated Worker with ${msg}: ${ArrayPrototypeJoin(errors\x2C '\x2C ')}`\x2C\n Error);\nE('ERR_WORKER_NOT_RUNNING'\x2C 'Worker instance not running'\x2C Error);\nE('ERR_WORKER_OUT_OF_MEMORY'\x2C\n 'Worker terminated due to reaching memory limit: %s'\x2C Error);\nE('ERR_WORKER_PATH'\x2C (filename) =>\n 'The worker script or module filename must be an absolute path or a ' +\n 'relative path starting with \\'./\\' or \\'../\\'.' +\n (StringPrototypeStartsWith(filename\x2C 'file://') ?\n ' Wrap file:// URLs with `new URL`.' : ''\n ) +\n (StringPrototypeStartsWith(filename\x2C 'data:text/javascript') ?\n ' Wrap data: URLs with `new URL`.' : ''\n ) +\n ` Received "${filename}"`\x2C\n TypeError);\nE('ERR_WORKER_UNSERIALIZABLE_ERROR'\x2C\n 'Serializing an uncaught exception failed'\x2C Error);\nE('ERR_WORKER_UNSUPPORTED_EXTENSION'\x2C\n 'The worker script extension must be ".js"\x2C ".mjs"\x2C or ".cjs". Received "%s"'\x2C\n TypeError);\nE('ERR_WORKER_UNSUPPORTED_OPERATION'\x2C\n '%s is not supported in workers'\x2C TypeError);\nE('ERR_ZLIB_INITIALIZATION_FAILED'\x2C 'Initialization failed'\x2C Error);\n
code-source-info,0x167e0304dfae,11,2163,3651,C0O2305C5O2328C10O2328C17O2356C22O2375C27O2375C33O2391C38O2410C43O2416C48O2436C53O2452C54O2479C55O2484C61O2487C66O2489C74O2510C78O2528C83O2566C86O2528C93O2612C97O2619C101O2626C102O2626C107O2656C109O2661C115O2664C120O2666C128O2691C132O2701C137O2731C140O2701C147O2762C156O2795C163O2762C168O2809C170O2633C175O2593C178O2994C185O3003C187O3001C192O3030C199O3058C202O3030C207O3114C221O3114C227O3174C229O3197C231O3193C236O3210C238O3232C239O3340C241O3355C248O3372C253O3411C265O3426C280O3442C291O3468C296O3482C301O3529C307O3536C312O3549C314O3568C315O3575C327O3608C333O3608C342O3649,,
tick,0x7f4debd443b7,108104,0,0x0,3,0x11e9ce0,0xd40c30,0x167e0304ad79,0xa52511ba45d,0xa52511b972d,0xb6d5357c4df,0xa52511ba45d,0xa52511b972d,0xb6d53578415,0xa52511ba45d,0xa52511b972d,0xb6d53549b2e,0xb6d53549025,0x158e77f
tick,0x7f4debd4449c,108124,0,0x0,3,0x11e9ce0,0xd40c30,0x167e0304ad79,0xa52511ba45d,0xa52511b972d,0xb6d5357c4df,0xa52511ba45d,0xa52511b972d,0xb6d53578415,0xa52511ba45d,0xa52511b972d,0xb6d53549b2e,0xb6d53549025,0x158e77f
tick,0x7f4debd44473,108130,0,0x0,3,0x11e9ce0,0xd40c30,0x167e0304ad79,0xa52511ba45d,0xa52511b972d,0xb6d5357c4df,0xa52511ba45d,0xa52511b972d,0xb6d53578415,0xa52511ba45d,0xa52511b972d,0xb6d53549b2e,0xb6d53549025,0x158e77f
code-creation,LazyCompile,10,108168,0x167e03051536,70,maybeOverridePrepareStackTrace node:internal/errors:135:40,0x334c17f23c58,~
code-source-info,0x167e03051536,11,3693,4400,C0O3921C7O3926C18O3986C23O3992C28O3992C34O4024C35O4247C40O4275C48O4315C53O4339C58O4339C64O4371C65O4379C69O4398,,
code-creation,LazyCompile,10,108309,0x167e03052986,10,useDomainTrampoline node:internal/async_hooks:114:29,0x334c17f37d98,~
code-source-info,0x167e03052986,24,5173,5199,C0O5182C2O5192C9O5198,,
code-creation,LazyCompile,10,108351,0x167e03052a7e,19,_getMaxListeners node:events:274:26,0x334c17f32218,~
code-source-info,0x167e03052a7e,13,7772,7896,C0O7792C6O7825C9O7845C13O7865C14O7880C18O7894,,
code-creation,LazyCompile,10,108368,0x167e03052b86,5,get node:events:136:16,0x334c17f31e38,~
code-source-info,0x167e03052b86,13,3826,3866,C0O3835C4O3862,,
code-creation,LazyCompile,10,108411,0x167e03052df6,322,arrayClone node:events:751:20,0x334c17f32ae0,~
code-source-info,0x167e03052df6,13,21217,21671,C0O21356C42O21378C50O21389C62O21397C71O21402C72O21415C80O21426C92O21434C104O21442C113O21447C114O21460C122O21471C134O21479C146O21487C158O21495C167O21500C168O21513C176O21524C188O21532C200O21540C212O21548C224O21556C233O21561C234O21574C242O21585C254O21593C266O21601C278O21609C290O21617C302O21625C311O21630C312O21637C317O21644C321O21669,,
code-creation,LazyCompile,10,108450,0x167e0305308e,50, node:domain:178:27,0x167e03049ff8,~
code-source-info,0x167e0305308e,127,5922,6266,C0O5946C2O5955C9O5997C14O6136C17O6144C25O6144C31O6200C34O6208C42O6208C49O6265,,
code-creation,Eval,10,109045,0x167e03053fae,5, node:internal/repl/utils:1:1,0x167e03053c38,~
script-source,128,node:internal/repl/utils,'use strict';\n\nconst {\n ArrayPrototypeFilter\x2C\n ArrayPrototypeIncludes\x2C\n ArrayPrototypeMap\x2C\n Boolean\x2C\n FunctionPrototypeBind\x2C\n MathMin\x2C\n RegExpPrototypeTest\x2C\n SafeSet\x2C\n SafeStringIterator\x2C\n StringPrototypeEndsWith\x2C\n StringPrototypeIndexOf\x2C\n StringPrototypeLastIndexOf\x2C\n StringPrototypeReplace\x2C\n StringPrototypeSlice\x2C\n StringPrototypeStartsWith\x2C\n StringPrototypeToLowerCase\x2C\n StringPrototypeTrim\x2C\n Symbol\x2C\n} = primordials;\n\nconst { tokTypes: tt\x2C Parser: AcornParser } =\n require('internal/deps/acorn/acorn/dist/acorn');\n\nconst { sendInspectorCommand } = require('internal/util/inspector');\n\nconst {\n ERR_INSPECTOR_NOT_AVAILABLE\n} = require('internal/errors').codes;\n\nconst {\n clearLine\x2C\n clearScreenDown\x2C\n cursorTo\x2C\n moveCursor\x2C\n} = require('internal/readline/callbacks');\n\nconst {\n commonPrefix\x2C\n kSubstringSearch\x2C\n} = require('internal/readline/utils');\n\nconst {\n getStringWidth\x2C\n inspect\x2C\n} = require('internal/util/inspect');\n\nlet debug = require('internal/util/debuglog').debuglog('repl'\x2C (fn) => {\n debug = fn;\n});\n\nconst previewOptions = {\n colors: false\x2C\n depth: 1\x2C\n showHidden: false\n};\n\nconst REPL_MODE_STRICT = Symbol('repl-strict');\n\n// If the error is that we've unexpectedly ended the input\x2C\n// then let the user try to recover by adding more input.\n// Note: `e` (the original exception) is not used by the current implementation\x2C\n// but may be needed in the future.\nfunction isRecoverableError(e\x2C code) {\n // For similar reasons as `defaultEval`\x2C wrap expressions starting with a\n // curly brace with parenthesis. Note: only the open parenthesis is added\n // here as the point is to test for potentially valid but incomplete\n // expressions.\n if (RegExpPrototypeTest(/^\\s*\\{/\x2C code) &&\n isRecoverableError(e\x2C `(${code}`))\n return true;\n\n let recoverable = false;\n\n // Determine if the point of any error raised is at the end of the input.\n // There are two cases to consider:\n //\n // 1. Any error raised after we have encountered the 'eof' token.\n // This prevents us from declaring partial tokens (like '2e') as\n // recoverable.\n //\n // 2. Three cases where tokens can legally span lines. This is\n // template\x2C comment\x2C and strings with a backslash at the end of\n // the line\x2C indicating a continuation. Note that we need to look\n // for the specific errors of 'unterminated' kind (not\x2C for example\x2C\n // a syntax error in a ${} expression in a template)\x2C and the only\n // way to do that currently is to look at the message. Should Acorn\n // change these messages in the future\x2C this will lead to a test\n // failure\x2C indicating that this code needs to be updated.\n //\n const RecoverableParser = AcornParser\n .extend(\n (Parser) => {\n return class extends Parser {\n // eslint-disable-next-line no-useless-constructor\n constructor(options\x2C input\x2C startPos) {\n super(options\x2C input\x2C startPos);\n }\n nextToken() {\n super.nextToken();\n if (this.type === tt.eof)\n recoverable = true;\n }\n raise(pos\x2C message) {\n switch (message) {\n case 'Unterminated template':\n case 'Unterminated comment':\n recoverable = true;\n break;\n\n case 'Unterminated string constant':\n const token = StringPrototypeSlice(this.input\x2C\n this.lastTokStart\x2C this.pos);\n // See https://www.ecma-international.org/ecma-262/#sec-line-terminators\n if (RegExpPrototypeTest(/\\\\(?:\\r\\n?|\\n|\\u2028|\\u2029)$/\x2C\n token)) {\n recoverable = true;\n }\n }\n super.raise(pos\x2C message);\n }\n };\n }\n );\n\n // Try to parse the code with acorn. If the parse fails\x2C ignore the acorn\n // error and return the recoverable status.\n try {\n RecoverableParser.parse(code\x2C { ecmaVersion: 'latest' });\n\n // Odd case: the underlying JS engine (V8\x2C Chakra) rejected this input\n // but Acorn detected no issue. Presume that additional text won't\n // address this issue.\n return false;\n } catch {\n return recoverable;\n }\n}\n\nfunction setupPreview(repl\x2C contextSymbol\x2C bufferSymbol\x2C active) {\n // Simple terminals can't handle previews.\n if (process.env.TERM === 'dumb' || !active) {\n return { showPreview() {}\x2C clearPreview() {} };\n }\n\n let inputPreview = null;\n let lastInputPreview = '';\n\n let previewCompletionCounter = 0;\n let completionPreview = null;\n\n let hasCompletions = false;\n\n let wrapped = false;\n\n let escaped = null;\n\n function getPreviewPos() {\n const displayPos = repl._getDisplayPos(`${repl.getPrompt()}${repl.line}`);\n const cursorPos = repl.line.length !== repl.cursor ?\n repl.getCursorPos() :\n displayPos;\n return { displayPos\x2C cursorPos };\n }\n\n function isCursorAtInputEnd() {\n const { cursorPos\x2C displayPos } = getPreviewPos();\n return cursorPos.rows === displayPos.rows &&\n cursorPos.cols === displayPos.cols;\n }\n\n const clearPreview = (key) => {\n if (inputPreview !== null) {\n const { displayPos\x2C cursorPos } = getPreviewPos();\n const rows = displayPos.rows - cursorPos.rows + 1;\n moveCursor(repl.output\x2C 0\x2C rows);\n clearLine(repl.output);\n moveCursor(repl.output\x2C 0\x2C -rows);\n lastInputPreview = inputPreview;\n inputPreview = null;\n }\n if (completionPreview !== null) {\n // Prevent cursor moves if not necessary!\n const move = repl.line.length !== repl.cursor;\n let pos\x2C rows;\n if (move) {\n pos = getPreviewPos();\n cursorTo(repl.output\x2C pos.displayPos.cols);\n rows = pos.displayPos.rows - pos.cursorPos.rows;\n moveCursor(repl.output\x2C 0\x2C rows);\n }\n const totalLine = `${repl.getPrompt()}${repl.line}${completionPreview}`;\n const newPos = repl._getDisplayPos(totalLine);\n // Minimize work for the terminal. It is enough to clear the right part of\n // the current line in case the preview is visible on a single line.\n if (newPos.rows === 0 || (pos && pos.displayPos.rows === newPos.rows)) {\n clearLine(repl.output\x2C 1);\n } else {\n clearScreenDown(repl.output);\n }\n if (move) {\n cursorTo(repl.output\x2C pos.cursorPos.cols);\n moveCursor(repl.output\x2C 0\x2C -rows);\n }\n if (!key.ctrl && !key.shift) {\n if (key.name === 'escape') {\n if (escaped === null && key.meta) {\n escaped = repl.line;\n }\n } else if ((key.name === 'return' || key.name === 'enter') &&\n !key.meta &&\n escaped !== repl.line &&\n isCursorAtInputEnd()) {\n repl._insertString(completionPreview);\n }\n }\n completionPreview = null;\n }\n if (escaped !== repl.line) {\n escaped = null;\n }\n };\n\n function showCompletionPreview(line\x2C insertPreview) {\n previewCompletionCounter++;\n\n const count = previewCompletionCounter;\n\n repl.completer(line\x2C (error\x2C data) => {\n // Tab completion might be async and the result might already be outdated.\n if (count !== previewCompletionCounter) {\n return;\n }\n\n if (error) {\n debug('Error while generating completion preview'\x2C error);\n return;\n }\n\n // Result and the text that was completed.\n const { 0: rawCompletions\x2C 1: completeOn } = data;\n\n if (!rawCompletions || rawCompletions.length === 0) {\n return;\n }\n\n hasCompletions = true;\n\n // If there is a common prefix to all matches\x2C then apply that portion.\n const completions = ArrayPrototypeFilter(rawCompletions\x2C Boolean);\n const prefix = commonPrefix(completions);\n\n // No common prefix found.\n if (prefix.length <= completeOn.length) {\n return;\n }\n\n const suffix = StringPrototypeSlice(prefix\x2C completeOn.length);\n\n if (insertPreview) {\n repl._insertString(suffix);\n return;\n }\n\n completionPreview = suffix;\n\n const result = repl.useColors ?\n `\\u001b[90m${suffix}\\u001b[39m` :\n ` // ${suffix}`;\n\n const { cursorPos\x2C displayPos } = getPreviewPos();\n if (repl.line.length !== repl.cursor) {\n cursorTo(repl.output\x2C displayPos.cols);\n moveCursor(repl.output\x2C 0\x2C displayPos.rows - cursorPos.rows);\n }\n repl.output.write(result);\n cursorTo(repl.output\x2C cursorPos.cols);\n const totalLine = `${repl.getPrompt()}${repl.line}${suffix}`;\n const newPos = repl._getDisplayPos(totalLine);\n const rows = newPos.rows - cursorPos.rows - (newPos.cols === 0 ? 1 : 0);\n moveCursor(repl.output\x2C 0\x2C -rows);\n });\n }\n\n function isInStrictMode(repl) {\n return repl.replMode === REPL_MODE_STRICT || ArrayPrototypeIncludes(\n ArrayPrototypeMap(process.execArgv\x2C\n (e) => StringPrototypeReplace(\n StringPrototypeToLowerCase(e)\x2C\n /_/g\x2C\n '-'\n ))\x2C\n '--use-strict');\n }\n\n // This returns a code preview for arbitrary input code.\n function getInputPreview(input\x2C callback) {\n // For similar reasons as `defaultEval`\x2C wrap expressions starting with a\n // curly brace with parenthesis.\n if (StringPrototypeStartsWith(input\x2C '{') &&\n !StringPrototypeEndsWith(input\x2C ';') && !wrapped) {\n input = `(${input})`;\n wrapped = true;\n }\n sendInspectorCommand((session) => {\n session.post('Runtime.evaluate'\x2C {\n expression: input\x2C\n throwOnSideEffect: true\x2C\n timeout: 333\x2C\n contextId: repl[contextSymbol]\x2C\n }\x2C (error\x2C preview) => {\n if (error) {\n callback(error);\n return;\n }\n const { result } = preview;\n if (result.value !== undefined) {\n callback(null\x2C inspect(result.value\x2C previewOptions));\n // Ignore EvalErrors\x2C SyntaxErrors and ReferenceErrors. It is not clear\n // where they came from and if they are recoverable or not. Other errors\n // may be inspected.\n } else if (preview.exceptionDetails &&\n (result.className === 'EvalError' ||\n result.className === 'SyntaxError' ||\n // Report ReferenceError in case the strict mode is active\n // for input that has no completions.\n (result.className === 'ReferenceError' &&\n (hasCompletions || !isInStrictMode(repl))))) {\n callback(null\x2C null);\n } else if (result.objectId) {\n // The writer options might change and have influence on the inspect\n // output. The user might change e.g.\x2C `showProxy`\x2C `getters` or\n // `showHidden`. Use `inspect` instead of `JSON.stringify` to keep\n // `Infinity` and similar intact.\n const inspectOptions = inspect({\n ...repl.writer.options\x2C\n colors: false\x2C\n depth: 1\x2C\n compact: true\x2C\n breakLength: Infinity\n }\x2C previewOptions);\n session.post('Runtime.callFunctionOn'\x2C {\n functionDeclaration:\n `(v) =>\n Reflect\n .getOwnPropertyDescriptor(globalThis\x2C 'util')\n .get().inspect(v\x2C ${inspectOptions})`\x2C\n objectId: result.objectId\x2C\n arguments: [result]\n }\x2C (error\x2C preview) => {\n if (error) {\n callback(error);\n } else {\n callback(null\x2C preview.result.value);\n }\n });\n } else {\n // Either not serializable or undefined.\n callback(null\x2C result.unserializableValue || result.type);\n }\n });\n }\x2C () => callback(new ERR_INSPECTOR_NOT_AVAILABLE()));\n }\n\n const showPreview = () => {\n // Prevent duplicated previews after a refresh.\n if (inputPreview !== null || !repl.isCompletionEnabled) {\n return;\n }\n\n const line = StringPrototypeTrim(repl.line);\n\n // Do not preview in case the line only contains whitespace.\n if (line === '') {\n return;\n }\n\n hasCompletions = false;\n\n // Add the autocompletion preview.\n const insertPreview = false;\n showCompletionPreview(repl.line\x2C insertPreview);\n\n // Do not preview if the command is buffered.\n if (repl[bufferSymbol]) {\n return;\n }\n\n const inputPreviewCallback = (error\x2C inspected) => {\n if (inspected == null) {\n return;\n }\n\n wrapped = false;\n\n // Ignore the output if the value is identical to the current line and the\n // former preview is not identical to this preview.\n if (line === inspected && lastInputPreview !== inspected) {\n return;\n }\n\n if (error) {\n debug('Error while generating preview'\x2C error);\n return;\n }\n // Do not preview `undefined` if colors are deactivated or explicitly\n // requested.\n if (inspected === 'undefined' &&\n (!repl.useColors || repl.ignoreUndefined)) {\n return;\n }\n\n inputPreview = inspected;\n\n // Limit the output to maximum 250 characters. Otherwise it becomes a)\n // difficult to read and b) non terminal REPLs would visualize the whole\n // output.\n let maxColumns = MathMin(repl.columns\x2C 250);\n\n // Support unicode characters of width other than one by checking the\n // actual width.\n if (inspected.length * 2 >= maxColumns &&\n getStringWidth(inspected) > maxColumns) {\n maxColumns -= 4 + (repl.useColors ? 0 : 3);\n let res = '';\n for (const char of new SafeStringIterator(inspected)) {\n maxColumns -= getStringWidth(char);\n if (maxColumns < 0)\n break;\n res += char;\n }\n inspected = `${res}...`;\n }\n\n // Line breaks are very rare and probably only occur in case of error\n // messages with line breaks.\n const lineBreakPos = StringPrototypeIndexOf(inspected\x2C '\\n');\n if (lineBreakPos !== -1) {\n inspected = `${StringPrototypeSlice(inspected\x2C 0\x2C lineBreakPos)}`;\n }\n\n const result = repl.useColors ?\n `\\u001b[90m${inspected}\\u001b[39m` :\n `// ${inspected}`;\n\n const { cursorPos\x2C displayPos } = getPreviewPos();\n const rows = displayPos.rows - cursorPos.rows;\n moveCursor(repl.output\x2C 0\x2C rows);\n repl.output.write(`\\n${result}`);\n cursorTo(repl.output\x2C cursorPos.cols);\n moveCursor(repl.output\x2C 0\x2C -rows - 1);\n };\n\n let previewLine = line;\n\n if (completionPreview !== null &&\n isCursorAtInputEnd() &&\n escaped !== repl.line) {\n previewLine += completionPreview;\n }\n\n getInputPreview(previewLine\x2C inputPreviewCallback);\n if (wrapped) {\n getInputPreview(previewLine\x2C inputPreviewCallback);\n }\n wrapped = false;\n };\n\n // -------------------------------------------------------------------------//\n // Replace multiple interface functions. This is required to fully support //\n // previews without changing readlines behavior. //\n // -------------------------------------------------------------------------//\n\n // Refresh prints the whole screen again and the preview will be removed\n // during that procedure. Print the preview again. This also makes sure\n // the preview is always correct after resizing the terminal window.\n const originalRefresh = FunctionPrototypeBind(repl._refreshLine\x2C repl);\n repl._refreshLine = () => {\n inputPreview = null;\n originalRefresh();\n showPreview();\n };\n\n let insertCompletionPreview = true;\n // Insert the longest common suffix of the current input in case the user\n // moves to the right while already being at the current input end.\n const originalMoveCursor = FunctionPrototypeBind(repl._moveCursor\x2C repl);\n repl._moveCursor = (dx) => {\n const currentCursor = repl.cursor;\n originalMoveCursor(dx);\n if (currentCursor + dx > repl.line.length &&\n typeof repl.completer === 'function' &&\n insertCompletionPreview) {\n const insertPreview = true;\n showCompletionPreview(repl.line\x2C insertPreview);\n }\n };\n\n // This is the only function that interferes with the completion insertion.\n // Monkey patch it to prevent inserting the completion when it shouldn't be.\n const originalClearLine = FunctionPrototypeBind(repl.clearLine\x2C repl);\n repl.clearLine = () => {\n insertCompletionPreview = false;\n originalClearLine();\n insertCompletionPreview = true;\n };\n\n return { showPreview\x2C clearPreview };\n}\n\nfunction setupReverseSearch(repl) {\n // Simple terminals can't use reverse search.\n if (process.env.TERM === 'dumb') {\n return { reverseSearch() { return false; } };\n }\n\n const alreadyMatched = new SafeSet();\n const labels = {\n r: 'bck-i-search: '\x2C\n s: 'fwd-i-search: '\n };\n let isInReverseSearch = false;\n let historyIndex = -1;\n let input = '';\n let cursor = -1;\n let dir = 'r';\n let lastMatch = -1;\n let lastCursor = -1;\n let promptPos;\n\n function checkAndSetDirectionKey(keyName) {\n if (!labels[keyName]) {\n return false;\n }\n if (dir !== keyName) {\n // Reset the already matched set in case the direction is changed. That\n // way it's possible to find those entries again.\n alreadyMatched.clear();\n dir = keyName;\n }\n return true;\n }\n\n function goToNextHistoryIndex() {\n // Ignore this entry for further searches and continue to the next\n // history entry.\n alreadyMatched.add(repl.history[historyIndex]);\n historyIndex += dir === 'r' ? 1 : -1;\n cursor = -1;\n }\n\n function search() {\n // Just print an empty line in case the user removed the search parameter.\n if (input === '') {\n print(repl.line\x2C `${labels[dir]}_`);\n return;\n }\n // Fix the bounds in case the direction has changed in the meanwhile.\n if (dir === 'r') {\n if (historyIndex < 0) {\n historyIndex = 0;\n }\n } else if (historyIndex >= repl.history.length) {\n historyIndex = repl.history.length - 1;\n }\n // Check the history entries until a match is found.\n while (historyIndex >= 0 && historyIndex < repl.history.length) {\n let entry = repl.history[historyIndex];\n // Visualize all potential matches only once.\n if (alreadyMatched.has(entry)) {\n historyIndex += dir === 'r' ? 1 : -1;\n continue;\n }\n // Match the next entry either from the start or from the end\x2C depending\n // on the current direction.\n if (dir === 'r') {\n // Update the cursor in case it's necessary.\n if (cursor === -1) {\n cursor = entry.length;\n }\n cursor = StringPrototypeLastIndexOf(entry\x2C input\x2C cursor - 1);\n } else {\n cursor = StringPrototypeIndexOf(entry\x2C input\x2C cursor + 1);\n }\n // Match not found.\n if (cursor === -1) {\n goToNextHistoryIndex();\n // Match found.\n } else {\n if (repl.useColors) {\n const start = StringPrototypeSlice(entry\x2C 0\x2C cursor);\n const end = StringPrototypeSlice(entry\x2C cursor + input.length);\n entry = `${start}\\x1B[4m${input}\\x1B[24m${end}`;\n }\n print(entry\x2C `${labels[dir]}${input}_`\x2C cursor);\n lastMatch = historyIndex;\n lastCursor = cursor;\n // Explicitly go to the next history item in case no further matches are\n // possible with the current entry.\n if ((dir === 'r' && cursor === 0) ||\n (dir === 's' && entry.length === cursor + input.length)) {\n goToNextHistoryIndex();\n }\n return;\n }\n }\n print(repl.line\x2C `failed-${labels[dir]}${input}_`);\n }\n\n function print(outputLine\x2C inputLine\x2C cursor = repl.cursor) {\n // TODO(BridgeAR): Resizing the terminal window hides the overlay. To fix\n // that\x2C readline must be aware of this information. It's probably best to\n // add a couple of properties to readline that allow to do the following:\n // 1. Add arbitrary data to the end of the current line while not counting\n // towards the line. This would be useful for the completion previews.\n // 2. Add arbitrary extra lines that do not count towards the regular line.\n // This would be useful for both\x2C the input preview and the reverse\n // search. It might be combined with the first part?\n // 3. Add arbitrary input that is "on top" of the current line. That is\n // useful for the reverse search.\n // 4. To trigger the line refresh\x2C functions should be used to pass through\n // the information. Alternatively\x2C getters and setters could be used.\n // That might even be more elegant.\n // The data would then be accounted for when calling `_refreshLine()`.\n // This function would then look similar to:\n // repl.overlay(outputLine);\n // repl.addTrailingLine(inputLine);\n // repl.setCursor(cursor);\n // More potential improvements: use something similar to stream.cork().\n // Multiple cursor moves on the same tick could be prevented in case all\n // writes from the same tick are combined and the cursor is moved at the\n // tick end instead of after each operation.\n let rows = 0;\n if (lastMatch !== -1) {\n const line = StringPrototypeSlice(repl.history[lastMatch]\x2C 0\x2C lastCursor);\n rows = repl._getDisplayPos(`${repl.getPrompt()}${line}`).rows;\n cursorTo(repl.output\x2C promptPos.cols);\n } else if (isInReverseSearch && repl.line !== '') {\n rows = repl.getCursorPos().rows;\n cursorTo(repl.output\x2C promptPos.cols);\n }\n if (rows !== 0)\n moveCursor(repl.output\x2C 0\x2C -rows);\n\n if (isInReverseSearch) {\n clearScreenDown(repl.output);\n repl.output.write(`${outputLine}\\n${inputLine}`);\n } else {\n repl.output.write(`\\n${inputLine}`);\n }\n\n lastMatch = -1;\n\n // To know exactly how many rows we have to move the cursor back we need the\n // cursor rows\x2C the output rows and the input rows.\n const prompt = repl.getPrompt();\n const cursorLine = prompt + StringPrototypeSlice(outputLine\x2C 0\x2C cursor);\n const cursorPos = repl._getDisplayPos(cursorLine);\n const outputPos = repl._getDisplayPos(`${prompt}${outputLine}`);\n const inputPos = repl._getDisplayPos(inputLine);\n const inputRows = inputPos.rows - (inputPos.cols === 0 ? 1 : 0);\n\n rows = -1 - inputRows - (outputPos.rows - cursorPos.rows);\n\n moveCursor(repl.output\x2C 0\x2C rows);\n cursorTo(repl.output\x2C cursorPos.cols);\n }\n\n function reset(string) {\n isInReverseSearch = string !== undefined;\n\n // In case the reverse search ends and a history entry is found\x2C reset the\n // line to the found entry.\n if (!isInReverseSearch) {\n if (lastMatch !== -1) {\n repl.line = repl.history[lastMatch];\n repl.cursor = lastCursor;\n repl.historyIndex = lastMatch;\n }\n\n lastMatch = -1;\n\n // Clear screen and write the current repl.line before exiting.\n cursorTo(repl.output\x2C promptPos.cols);\n moveCursor(repl.output\x2C 0\x2C promptPos.rows);\n clearScreenDown(repl.output);\n if (repl.line !== '') {\n repl.output.write(repl.line);\n if (repl.line.length !== repl.cursor) {\n const { cols\x2C rows } = repl.getCursorPos();\n cursorTo(repl.output\x2C cols);\n moveCursor(repl.output\x2C 0\x2C rows);\n }\n }\n }\n\n input = string || '';\n cursor = -1;\n historyIndex = repl.historyIndex;\n alreadyMatched.clear();\n }\n\n function reverseSearch(string\x2C key) {\n if (!isInReverseSearch) {\n if (key.ctrl && checkAndSetDirectionKey(key.name)) {\n historyIndex = repl.historyIndex;\n promptPos = repl._getDisplayPos(`${repl.getPrompt()}`);\n print(repl.line\x2C `${labels[dir]}_`);\n isInReverseSearch = true;\n }\n } else if (key.ctrl && checkAndSetDirectionKey(key.name)) {\n search();\n } else if (key.name === 'backspace' ||\n (key.ctrl && (key.name === 'h' || key.name === 'w'))) {\n reset(StringPrototypeSlice(input\x2C 0\x2C input.length - 1));\n search();\n // Special handle <ctrl> + c and escape. Those should only cancel the\n // reverse search. The original line is visible afterwards again.\n } else if ((key.ctrl && key.name === 'c') || key.name === 'escape') {\n lastMatch = -1;\n reset();\n return true;\n // End search in case either enter is pressed or if any non-reverse-search\n // key (combination) is pressed.\n } else if (key.ctrl ||\n key.meta ||\n key.name === 'return' ||\n key.name === 'enter' ||\n typeof string !== 'string' ||\n string === '') {\n reset();\n repl[kSubstringSearch] = '';\n } else {\n reset(`${input}${string}`);\n search();\n }\n return isInReverseSearch;\n }\n\n return { reverseSearch };\n}\n\nmodule.exports = {\n REPL_MODE_SLOPPY: Symbol('repl-sloppy')\x2C\n REPL_MODE_STRICT\x2C\n isRecoverableError\x2C\n kStandaloneREPL: Symbol('kStandaloneREPL')\x2C\n setupPreview\x2C\n setupReverseSearch\n};\n
code-source-info,0x167e03053fae,128,0,25265,C0O0C4O25265,,
code-creation,Function,10,110365,0x167e030544f6,456, node:internal/repl/utils:1:1,0x167e03053f18,~
code-source-info,0x167e030544f6,128,0,25265,C0O0C121O25C127O49C133O75C139O96C145O107C151O132C157O143C163O166C169O177C175O199C181O226C187O252C193O282C199O308C205O332C211O361C217O391C223O414C228O488C231O488C236O458C242O470C248O571C251O571C256O546C262O650C265O650C270O676C275O618C281O755C284O755C289O695C295O708C301O727C307O739C313O844C316O844C321O806C327O822C333O922C336O922C341O891C347O909C353O969C356O969C361O1002C374O1003C380O969C382O1072C386O1072C388O1152C391O1152C395O1152C397O25075C405O25114C415O25139C421O25159C428O25198C438O25227C444O25243C450O25090C455O25264,,
tick,0x7f4dec173851,110410,1,0xb515a0,3,0xd44a10,0xa52511ba43c,0xa52511b972d,0xb6d5357c590,0xa52511ba45d,0xa52511b972d,0xb6d53578415,0xa52511ba45d,0xa52511b972d,0xb6d53549b2e,0xb6d53549025,0x158e77f
tick,0x7f4debe4c917,110426,1,0xb515a0,3,0xd44a10,0xa52511ba43c,0xa52511b972d,0xb6d5357c590,0xa52511ba45d,0xa52511b972d,0xb6d53578415,0xa52511ba45d,0xa52511b972d,0xb6d53549b2e,0xb6d53549025,0x158e77f
code-creation,Eval,10,110802,0x167e0305672e,5, node:internal/repl/history:1:1,0x167e030564e8,~
script-source,129,node:internal/repl/history,'use strict';\n\nconst {\n ArrayPrototypeJoin\x2C\n Boolean\x2C\n FunctionPrototype\x2C\n StringPrototypeSplit\x2C\n StringPrototypeTrim\x2C\n} = primordials;\n\nconst { Interface } = require('readline');\nconst path = require('path');\nconst fs = require('fs');\nconst os = require('os');\nlet debug = require('internal/util/debuglog').debuglog('repl'\x2C (fn) => {\n debug = fn;\n});\nconst { clearTimeout\x2C setTimeout } = require('timers');\n\nconst noop = FunctionPrototype;\n\n// XXX(chrisdickinson): The 15ms debounce value is somewhat arbitrary.\n// The debounce is to guard against code pasted into the REPL.\nconst kDebounceHistoryMS = 15;\n\nmodule.exports = setupHistory;\n\nfunction _writeToOutput(repl\x2C message) {\n repl._writeToOutput(message);\n repl._refreshLine();\n}\n\nfunction setupHistory(repl\x2C historyPath\x2C ready) {\n // Empty string disables persistent history\n if (typeof historyPath === 'string')\n historyPath = StringPrototypeTrim(historyPath);\n\n if (historyPath === '') {\n repl._historyPrev = _replHistoryMessage;\n return ready(null\x2C repl);\n }\n\n if (!historyPath) {\n try {\n historyPath = path.join(os.homedir()\x2C '.node_repl_history');\n } catch (err) {\n _writeToOutput(repl\x2C '\\nError: Could not get the home directory.\\n' +\n 'REPL session history will not be persisted.\\n');\n\n debug(err.stack);\n repl._historyPrev = _replHistoryMessage;\n return ready(null\x2C repl);\n }\n }\n\n let timer = null;\n let writing = false;\n let pending = false;\n repl.pause();\n // History files are conventionally not readable by others:\n // https://github.com/nodejs/node/issues/3392\n // https://github.com/nodejs/node/pull/3394\n fs.open(historyPath\x2C 'a+'\x2C 0o0600\x2C oninit);\n\n function oninit(err\x2C hnd) {\n if (err) {\n // Cannot open history file.\n // Don't crash\x2C just don't persist history.\n _writeToOutput(repl\x2C '\\nError: Could not open history file.\\n' +\n 'REPL session history will not be persisted.\\n');\n debug(err.stack);\n\n repl._historyPrev = _replHistoryMessage;\n repl.resume();\n return ready(null\x2C repl);\n }\n fs.close(hnd\x2C onclose);\n }\n\n function onclose(err) {\n if (err) {\n return ready(err);\n }\n fs.readFile(historyPath\x2C 'utf8'\x2C onread);\n }\n\n function onread(err\x2C data) {\n if (err) {\n return ready(err);\n }\n\n if (data) {\n repl.history = StringPrototypeSplit(data\x2C /[\\n\\r]+/\x2C repl.historySize);\n } else {\n repl.history = [];\n }\n\n fs.open(historyPath\x2C 'r+'\x2C onhandle);\n }\n\n function onhandle(err\x2C hnd) {\n if (err) {\n return ready(err);\n }\n fs.ftruncate(hnd\x2C 0\x2C (err) => {\n repl._historyHandle = hnd;\n repl.on('line'\x2C online);\n repl.once('exit'\x2C onexit);\n\n // Reading the file data out erases it\n repl.once('flushHistory'\x2C function() {\n repl.resume();\n ready(null\x2C repl);\n });\n flushHistory();\n });\n }\n\n // ------ history listeners ------\n function online(line) {\n repl._flushing = true;\n\n if (timer) {\n clearTimeout(timer);\n }\n\n timer = setTimeout(flushHistory\x2C kDebounceHistoryMS);\n }\n\n function flushHistory() {\n timer = null;\n if (writing) {\n pending = true;\n return;\n }\n writing = true;\n const historyData = ArrayPrototypeJoin(repl.history\x2C os.EOL);\n fs.write(repl._historyHandle\x2C historyData\x2C 0\x2C 'utf8'\x2C onwritten);\n }\n\n function onwritten(err\x2C data) {\n writing = false;\n if (pending) {\n pending = false;\n online();\n } else {\n repl._flushing = Boolean(timer);\n if (!repl._flushing) {\n repl.emit('flushHistory');\n }\n }\n }\n\n function onexit() {\n if (repl._flushing) {\n repl.once('flushHistory'\x2C onexit);\n return;\n }\n repl.off('line'\x2C online);\n fs.close(repl._historyHandle\x2C noop);\n }\n}\n\nfunction _replHistoryMessage() {\n if (this.history.length === 0) {\n _writeToOutput(\n this\x2C\n '\\nPersistent history support disabled. ' +\n 'Set the NODE_REPL_HISTORY environment\\nvariable to ' +\n 'a valid\x2C user-writable path to enable.\\n'\n );\n }\n this._historyPrev = Interface.prototype._historyPrev;\n return this._historyPrev();\n}\n
code-source-info,0x167e0305672e,129,0,4169,C0O0C4O4169,,
code-creation,Function,10,111001,0x167e03056a26,196, node:internal/repl/history:1:1,0x167e03056698,~
code-source-info,0x167e03056a26,129,0,4169,C0O0C61O25C67O47C73O58C78O79C84O103C90O164C93O164C98O150C104O198C107O198C111O198C113O226C116O226C120O226C122O252C125O252C129O252C131O279C134O279C139O312C152O313C158O279C160O395C163O395C168O366C174O380C180O428C182O428C184O609C186O609C188O614C190O629C195O4168,,
tick,0x1169da5,111256,1,0xb515a0,2,0xd44a10,0xa52511ba43c,0xa52511b972d,0x167e03056aa3,0xa52511ba45d,0xa52511b972d,0xb6d5357c5f0,0xa52511ba45d,0xa52511b972d,0xb6d53578415,0xa52511ba45d,0xa52511b972d,0xb6d53549b2e,0xb6d53549025,0x158e77f
code-creation,Eval,10,111426,0x167e03057c1e,5, node:os:1:1,0x167e030578b8,~
script-source,130,node:os,// Copyright Joyent\x2C Inc. and other Node contributors.\n//\n// Permission is hereby granted\x2C free of charge\x2C to any person obtaining a\n// copy of this software and associated documentation files (the\n// "Software")\x2C to deal in the Software without restriction\x2C including\n// without limitation the rights to use\x2C copy\x2C modify\x2C merge\x2C publish\x2C\n// distribute\x2C sublicense\x2C and/or sell copies of the Software\x2C and to permit\n// persons to whom the Software is furnished to do so\x2C subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED "AS IS"\x2C WITHOUT WARRANTY OF ANY KIND\x2C EXPRESS\n// OR IMPLIED\x2C INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY\x2C FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM\x2C\n// DAMAGES OR OTHER LIABILITY\x2C WHETHER IN AN ACTION OF CONTRACT\x2C TORT OR\n// OTHERWISE\x2C ARISING FROM\x2C OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n'use strict';\n\nconst {\n ArrayPrototypePush\x2C\n Float64Array\x2C\n NumberParseInt\x2C\n ObjectDefineProperties\x2C\n StringPrototypeEndsWith\x2C\n StringPrototypeSlice\x2C\n StringPrototypeSplit\x2C\n SymbolToPrimitive\x2C\n} = primordials;\n\nconst { safeGetenv } = internalBinding('credentials');\nconst constants = internalBinding('constants').os;\nconst isWindows = process.platform === 'win32';\n\nconst {\n codes: {\n ERR_SYSTEM_ERROR\n }\x2C\n hideStackFrames\n} = require('internal/errors');\nconst { validateInt32 } = require('internal/validators');\n\nconst {\n getCPUs\x2C\n getFreeMem\x2C\n getHomeDirectory: _getHomeDirectory\x2C\n getHostname: _getHostname\x2C\n getInterfaceAddresses: _getInterfaceAddresses\x2C\n getLoadAvg\x2C\n getPriority: _getPriority\x2C\n getOSInformation: _getOSInformation\x2C\n getTotalMem\x2C\n getUserInfo\x2C\n getUptime\x2C\n isBigEndian\x2C\n setPriority: _setPriority\n} = internalBinding('os');\n\nfunction getCheckedFunction(fn) {\n return hideStackFrames(function checkError(...args) {\n const ctx = {};\n const ret = fn(...args\x2C ctx);\n if (ret === undefined) {\n throw new ERR_SYSTEM_ERROR(ctx);\n }\n return ret;\n });\n}\n\nconst {\n 0: type\x2C\n 1: version\x2C\n 2: release\x2C\n} = _getOSInformation();\n\nconst getHomeDirectory = getCheckedFunction(_getHomeDirectory);\nconst getHostname = getCheckedFunction(_getHostname);\nconst getInterfaceAddresses = getCheckedFunction(_getInterfaceAddresses);\n/**\n * @returns {string}\n */\nconst getOSRelease = () => release;\n/**\n * @returns {string}\n */\nconst getOSType = () => type;\n/**\n * @returns {string}\n */\nconst getOSVersion = () => version;\n\ngetFreeMem[SymbolToPrimitive] = () => getFreeMem();\ngetHostname[SymbolToPrimitive] = () => getHostname();\ngetOSVersion[SymbolToPrimitive] = () => getOSVersion();\ngetOSType[SymbolToPrimitive] = () => getOSType();\ngetOSRelease[SymbolToPrimitive] = () => getOSRelease();\ngetHomeDirectory[SymbolToPrimitive] = () => getHomeDirectory();\ngetTotalMem[SymbolToPrimitive] = () => getTotalMem();\ngetUptime[SymbolToPrimitive] = () => getUptime();\n\nconst kEndianness = isBigEndian ? 'BE' : 'LE';\n\nconst avgValues = new Float64Array(3);\n\n/**\n * @returns {[number\x2C number\x2C number]}\n */\nfunction loadavg() {\n getLoadAvg(avgValues);\n return [avgValues[0]\x2C avgValues[1]\x2C avgValues[2]];\n}\n\n/**\n * Returns an array of objects containing information about each\n * logical CPU core.\n *\n * @returns {Array<{\n * model: string\n * speed: number\n * times: {\n * user: number\n * nice: number\n * sys: number\n * idle: number\n * irq: number\n * }\n * }>}\n */\nfunction cpus() {\n // [] is a bugfix for a regression introduced in 51cea61\n const data = getCPUs() || [];\n const result = [];\n let i = 0;\n while (i < data.length) {\n ArrayPrototypePush(result\x2C {\n model: data[i++]\x2C\n speed: data[i++]\x2C\n times: {\n user: data[i++]\x2C\n nice: data[i++]\x2C\n sys: data[i++]\x2C\n idle: data[i++]\x2C\n irq: data[i++]\n }\n });\n }\n return result;\n}\n\n/**\n * @returns {string}\n */\nfunction arch() {\n return process.arch;\n}\narch[SymbolToPrimitive] = () => process.arch;\n\n/**\n * @returns {string}\n */\nfunction platform() {\n return process.platform;\n}\nplatform[SymbolToPrimitive] = () => process.platform;\n\n/**\n * @returns {string}\n */\nfunction tmpdir() {\n var path;\n if (isWindows) {\n path = process.env.TEMP ||\n process.env.TMP ||\n (process.env.SystemRoot || process.env.windir) + '\\\\temp';\n if (path.length > 1 && StringPrototypeEndsWith(path\x2C '\\\\') &&\n !StringPrototypeEndsWith(path\x2C ':\\\\'))\n path = StringPrototypeSlice(path\x2C 0\x2C -1);\n } else {\n path = safeGetenv('TMPDIR') ||\n safeGetenv('TMP') ||\n safeGetenv('TEMP') ||\n '/tmp';\n if (path.length > 1 && StringPrototypeEndsWith(path\x2C '/'))\n path = StringPrototypeSlice(path\x2C 0\x2C -1);\n }\n\n return path;\n}\ntmpdir[SymbolToPrimitive] = () => tmpdir();\n\n/**\n * @returns {'BE' | 'LE'}\n */\nfunction endianness() {\n return kEndianness;\n}\nendianness[SymbolToPrimitive] = () => kEndianness;\n\n// Returns the number of ones in the binary representation of the decimal\n// number.\nfunction countBinaryOnes(n) {\n // Count the number of bits set in parallel\x2C which is faster than looping\n n = n - ((n >>> 1) & 0x55555555);\n n = (n & 0x33333333) + ((n >>> 2) & 0x33333333);\n return ((n + (n >>> 4) & 0xF0F0F0F) * 0x1010101) >>> 24;\n}\n\nfunction getCIDR(address\x2C netmask\x2C family) {\n let ones = 0;\n let split = '.';\n let range = 10;\n let groupLength = 8;\n let hasZeros = false;\n\n if (family === 'IPv6') {\n split = ':';\n range = 16;\n groupLength = 16;\n }\n\n const parts = StringPrototypeSplit(netmask\x2C split);\n for (var i = 0; i < parts.length; i++) {\n if (parts[i] !== '') {\n const binary = NumberParseInt(parts[i]\x2C range);\n const tmp = countBinaryOnes(binary);\n ones += tmp;\n if (hasZeros) {\n if (tmp !== 0) {\n return null;\n }\n } else if (tmp !== groupLength) {\n if ((binary & 1) !== 0) {\n return null;\n }\n hasZeros = true;\n }\n }\n }\n\n return `${address}/${ones}`;\n}\n\n/**\n * @returns {Record<string\x2C Array<{\n * address: string\n * netmask: string\n * family: 'IPv4' | 'IPv6'\n * mac: string\n * internal: boolean\n * scopeid: number\n * cidr: string | null\n * }>>}\n */\nfunction networkInterfaces() {\n const data = getInterfaceAddresses();\n const result = {};\n\n if (data === undefined)\n return result;\n for (var i = 0; i < data.length; i += 7) {\n const name = data[i];\n const entry = {\n address: data[i + 1]\x2C\n netmask: data[i + 2]\x2C\n family: data[i + 3]\x2C\n mac: data[i + 4]\x2C\n internal: data[i + 5]\x2C\n cidr: getCIDR(data[i + 1]\x2C data[i + 2]\x2C data[i + 3])\n };\n const scopeid = data[i + 6];\n if (scopeid !== -1)\n entry.scopeid = scopeid;\n\n const existing = result[name];\n if (existing !== undefined)\n ArrayPrototypePush(existing\x2C entry);\n else\n result[name] = [entry];\n }\n\n return result;\n}\n\n/**\n * @param {number} [pid=0]\n * @param {number} priority\n * @returns {void}\n */\nfunction setPriority(pid\x2C priority) {\n if (priority === undefined) {\n priority = pid;\n pid = 0;\n }\n\n validateInt32(pid\x2C 'pid');\n validateInt32(priority\x2C 'priority'\x2C -20\x2C 19);\n\n const ctx = {};\n\n if (_setPriority(pid\x2C priority\x2C ctx) !== 0)\n throw new ERR_SYSTEM_ERROR(ctx);\n}\n\n/**\n * @param {number} [pid=0]\n * @returns {number}\n */\nfunction getPriority(pid) {\n if (pid === undefined)\n pid = 0;\n else\n validateInt32(pid\x2C 'pid');\n\n const ctx = {};\n const priority = _getPriority(pid\x2C ctx);\n\n if (priority === undefined)\n throw new ERR_SYSTEM_ERROR(ctx);\n\n return priority;\n}\n\n/**\n * @param {{ encoding?: string }} [options=utf8] If `encoding` is set to\n * `'buffer'`\x2C the `username`\x2C `shell`\x2C and `homedir` values will\n * be `Buffer` instances.\n * @returns {{\n * uid: number\n * gid: number\n * username: string\n * homedir: string\n * shell: string | null\n * }}\n */\nfunction userInfo(options) {\n if (typeof options !== 'object')\n options = null;\n\n const ctx = {};\n const user = getUserInfo(options\x2C ctx);\n\n if (user === undefined)\n throw new ERR_SYSTEM_ERROR(ctx);\n\n return user;\n}\n\nmodule.exports = {\n arch\x2C\n cpus\x2C\n endianness\x2C\n freemem: getFreeMem\x2C\n getPriority\x2C\n homedir: getHomeDirectory\x2C\n hostname: getHostname\x2C\n loadavg\x2C\n networkInterfaces\x2C\n platform\x2C\n release: getOSRelease\x2C\n setPriority\x2C\n tmpdir\x2C\n totalmem: getTotalMem\x2C\n type: getOSType\x2C\n userInfo\x2C\n uptime: getUptime\x2C\n version: getOSVersion\n};\n\nObjectDefineProperties(module.exports\x2C {\n constants: {\n configurable: false\x2C\n enumerable: true\x2C\n value: constants\n }\x2C\n\n EOL: {\n configurable: true\x2C\n enumerable: true\x2C\n writable: false\x2C\n value: isWindows ? '\\r\\n' : '\\n'\n }\x2C\n\n devNull: {\n configurable: true\x2C\n enumerable: true\x2C\n writable: false\x2C\n value: isWindows ? '\\\\\\\\.\\\\nul' : '/dev/null'\n }\n});\n
code-source-info,0x167e03057c1e,130,0,9062,C0O0C4O9062,,
code-creation,Function,10,111984,0x167e03058de6,823, node:os:1:1,0x167e03057b88,~
code-source-info,0x167e03058de6,130,0,9062,C0O0C167O1159C173O1181C178O1197C184O1215C189O1241C195O1268C201O1292C207O1316C212O1376C216O1376C222O1361C228O1426C232O1426C238O1454C243O1477C247O1485C255O1494C258O1477C260O1575C264O1575C270O1575C276O1531C282O1555C288O1629C292O1629C298O1611C304O1984C308O1984C314O1672C320O1683C326O1715C331O1749C336O1788C341O1814C347O1841C353O1875C358O1896C364O1911C370O1926C376O1939C381O1967C387O2302C392O2264C400O2275C409O2289C418O2349C422O2349C424O2408C428O2408C430O2472C434O2472C436O2566C440O2566C442O2628C446O2628C448O2690C452O2690C454O2706C458O2717C462O2736C466O2758C470O2770C474O2789C478O2812C482O2825C486O2844C490O2868C494O2878C498O2897C502O2918C506O2931C510O2950C514O2974C518O2991C522O3010C526O3038C530O3050C534O3069C538O3092C542O3102C546O3121C550O3163C560O3163C562O3209C568O3209C573O3209C575O4159C579O4178C583O4290C587O4309C591O4971C595O4978C599O4997C603O5109C607O5128C611O8335C619O8356C625O8364C631O8372C637O8395C643O8409C649O8433C655O8463C661O8478C667O8489C673O8510C679O8531C685O8547C691O8562C697O8582C703O8603C709O8616C715O8636C721O8658C727O8350C731O8705C743O8729C751O8789C761O8812C772O8892C790O8935C798O9015C816O8675C822O9061,,
code-creation,LazyCompile,10,112247,0x167e0305aff6,26,getCheckedFunction node:os:63:28,0x167e03057c50,~
code-source-info,0x167e0305aff6,130,2035,2249,C0O2035C9O2044C21O2051C25O2247,,
code-creation,LazyCompile,10,112326,0x167e0305bdce,43,hideStackFrames node:internal/errors:382:25,0x334c17f24188,~
code-source-info,0x167e0305bdce,11,10626,10850,C0O10751C5O10775C9O10770C13O10783C21O10804C28O10825C35O10783C40O10838C42O10848,,
tick,0xf63c40,112346,0,0x0,3,0x11e9ce0,0x167e0305b00b,0x167e03058f88,0xa52511ba45d,0xa52511b972d,0x167e03056aa3,0xa52511ba45d,0xa52511b972d,0xb6d5357c5f0,0xa52511ba45d,0xa52511b972d,0xb6d53578415,0xa52511ba45d,0xa52511b972d,0xb6d53549b2e,0xb6d53549025,0x158e77f
code-creation,LazyCompile,10,112514,0x167e0305c28e,82,runInNewContext node:vm:292:25,0xe5ca5cf1fe8,~
script-source,84,node:vm,// Copyright Joyent\x2C Inc. and other Node contributors.\n//\n// Permission is hereby granted\x2C free of charge\x2C to any person obtaining a\n// copy of this software and associated documentation files (the\n// "Software")\x2C to deal in the Software without restriction\x2C including\n// without limitation the rights to use\x2C copy\x2C modify\x2C merge\x2C publish\x2C\n// distribute\x2C sublicense\x2C and/or sell copies of the Software\x2C and to permit\n// persons to whom the Software is furnished to do so\x2C subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED "AS IS"\x2C WITHOUT WARRANTY OF ANY KIND\x2C EXPRESS\n// OR IMPLIED\x2C INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY\x2C FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM\x2C\n// DAMAGES OR OTHER LIABILITY\x2C WHETHER IN AN ACTION OF CONTRACT\x2C TORT OR\n// OTHERWISE\x2C ARISING FROM\x2C OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n'use strict';\n\nconst {\n ArrayPrototypeForEach\x2C\n ArrayPrototypeUnshift\x2C\n Symbol\x2C\n PromiseReject\x2C\n ReflectApply\x2C\n} = primordials;\n\nconst {\n ContextifyScript\x2C\n MicrotaskQueue\x2C\n makeContext\x2C\n isContext: _isContext\x2C\n constants\x2C\n compileFunction: _compileFunction\x2C\n measureMemory: _measureMemory\x2C\n} = internalBinding('contextify');\nconst {\n ERR_CONTEXT_NOT_INITIALIZED\x2C\n ERR_INVALID_ARG_TYPE\x2C\n} = require('internal/errors').codes;\nconst {\n isArrayBufferView\x2C\n} = require('internal/util/types');\nconst {\n validateArray\x2C\n validateBoolean\x2C\n validateBuffer\x2C\n validateFunction\x2C\n validateInt32\x2C\n validateObject\x2C\n validateOneOf\x2C\n validateString\x2C\n validateUint32\x2C\n} = require('internal/validators');\nconst {\n kVmBreakFirstLineSymbol\x2C\n emitExperimentalWarning\x2C\n} = require('internal/util');\nconst kParsingContext = Symbol('script parsing context');\n\nclass Script extends ContextifyScript {\n constructor(code\x2C options = {}) {\n code = `${code}`;\n if (typeof options === 'string') {\n options = { filename: options };\n } else {\n validateObject(options\x2C 'options');\n }\n\n const {\n filename = 'evalmachine.<anonymous>'\x2C\n lineOffset = 0\x2C\n columnOffset = 0\x2C\n cachedData\x2C\n produceCachedData = false\x2C\n importModuleDynamically\x2C\n [kParsingContext]: parsingContext\x2C\n } = options;\n\n validateString(filename\x2C 'options.filename');\n validateInt32(lineOffset\x2C 'options.lineOffset');\n validateInt32(columnOffset\x2C 'options.columnOffset');\n if (cachedData !== undefined && !isArrayBufferView(cachedData)) {\n throw new ERR_INVALID_ARG_TYPE(\n 'options.cachedData'\x2C\n ['Buffer'\x2C 'TypedArray'\x2C 'DataView']\x2C\n cachedData\n );\n }\n validateBoolean(produceCachedData\x2C 'options.produceCachedData');\n\n // Calling `ReThrow()` on a native TryCatch does not generate a new\n // abort-on-uncaught-exception check. A dummy try/catch in JS land\n // protects against that.\n try { // eslint-disable-line no-useless-catch\n super(code\x2C\n filename\x2C\n lineOffset\x2C\n columnOffset\x2C\n cachedData\x2C\n produceCachedData\x2C\n parsingContext);\n } catch (e) {\n throw e; /* node-do-not-add-exception-line */\n }\n\n if (importModuleDynamically !== undefined) {\n validateFunction(importModuleDynamically\x2C\n 'options.importModuleDynamically');\n const { importModuleDynamicallyWrap } =\n require('internal/vm/module');\n const { callbackMap } = internalBinding('module_wrap');\n callbackMap.set(this\x2C {\n importModuleDynamically:\n importModuleDynamicallyWrap(importModuleDynamically)\x2C\n });\n }\n }\n\n runInThisContext(options) {\n const { breakOnSigint\x2C args } = getRunInContextArgs(options);\n if (breakOnSigint && process.listenerCount('SIGINT') > 0) {\n return sigintHandlersWrap(super.runInThisContext\x2C this\x2C args);\n }\n return ReflectApply(super.runInThisContext\x2C this\x2C args);\n }\n\n runInContext(contextifiedObject\x2C options) {\n validateContext(contextifiedObject);\n const { breakOnSigint\x2C args } = getRunInContextArgs(options);\n ArrayPrototypeUnshift(args\x2C contextifiedObject);\n if (breakOnSigint && process.listenerCount('SIGINT') > 0) {\n return sigintHandlersWrap(super.runInContext\x2C this\x2C args);\n }\n return ReflectApply(super.runInContext\x2C this\x2C args);\n }\n\n runInNewContext(contextObject\x2C options) {\n const context = createContext(contextObject\x2C getContextOptions(options));\n return this.runInContext(context\x2C options);\n }\n}\n\nfunction validateContext(contextifiedObject) {\n if (!isContext(contextifiedObject)) {\n throw new ERR_INVALID_ARG_TYPE('contextifiedObject'\x2C 'vm.Context'\x2C\n contextifiedObject);\n }\n}\n\nfunction getRunInContextArgs(options = {}) {\n validateObject(options\x2C 'options');\n\n let timeout = options.timeout;\n if (timeout === undefined) {\n timeout = -1;\n } else {\n validateUint32(timeout\x2C 'options.timeout'\x2C true);\n }\n\n const {\n displayErrors = true\x2C\n breakOnSigint = false\x2C\n [kVmBreakFirstLineSymbol]: breakFirstLine = false\x2C\n } = options;\n\n validateBoolean(displayErrors\x2C 'options.displayErrors');\n validateBoolean(breakOnSigint\x2C 'options.breakOnSigint');\n\n return {\n breakOnSigint\x2C\n args: [timeout\x2C displayErrors\x2C breakOnSigint\x2C breakFirstLine]\n };\n}\n\nfunction getContextOptions(options) {\n if (!options)\n return {};\n const contextOptions = {\n name: options.contextName\x2C\n origin: options.contextOrigin\x2C\n codeGeneration: undefined\x2C\n microtaskMode: options.microtaskMode\x2C\n };\n if (contextOptions.name !== undefined)\n validateString(contextOptions.name\x2C 'options.contextName');\n if (contextOptions.origin !== undefined)\n validateString(contextOptions.origin\x2C 'options.contextOrigin');\n if (options.contextCodeGeneration !== undefined) {\n validateObject(options.contextCodeGeneration\x2C\n 'options.contextCodeGeneration');\n const { strings\x2C wasm } = options.contextCodeGeneration;\n if (strings !== undefined)\n validateBoolean(strings\x2C 'options.contextCodeGeneration.strings');\n if (wasm !== undefined)\n validateBoolean(wasm\x2C 'options.contextCodeGeneration.wasm');\n contextOptions.codeGeneration = { strings\x2C wasm };\n }\n if (options.microtaskMode !== undefined)\n validateString(options.microtaskMode\x2C 'options.microtaskMode');\n return contextOptions;\n}\n\nfunction isContext(object) {\n validateObject(object\x2C 'object'\x2C { allowArray: true });\n\n return _isContext(object);\n}\n\nlet defaultContextNameIndex = 1;\nfunction createContext(contextObject = {}\x2C options = {}) {\n if (isContext(contextObject)) {\n return contextObject;\n }\n\n validateObject(options\x2C 'options');\n\n const {\n name = `VM Context ${defaultContextNameIndex++}`\x2C\n origin\x2C\n codeGeneration\x2C\n microtaskMode\n } = options;\n\n validateString(name\x2C 'options.name');\n if (origin !== undefined)\n validateString(origin\x2C 'options.origin');\n if (codeGeneration !== undefined)\n validateObject(codeGeneration\x2C 'options.codeGeneration');\n\n let strings = true;\n let wasm = true;\n if (codeGeneration !== undefined) {\n ({ strings = true\x2C wasm = true } = codeGeneration);\n validateBoolean(strings\x2C 'options.codeGeneration.strings');\n validateBoolean(wasm\x2C 'options.codeGeneration.wasm');\n }\n\n let microtaskQueue = null;\n if (microtaskMode !== undefined) {\n validateOneOf(microtaskMode\x2C 'options.microtaskMode'\x2C\n ['afterEvaluate'\x2C undefined]);\n\n if (microtaskMode === 'afterEvaluate')\n microtaskQueue = new MicrotaskQueue();\n }\n\n makeContext(contextObject\x2C name\x2C origin\x2C strings\x2C wasm\x2C microtaskQueue);\n return contextObject;\n}\n\nfunction createScript(code\x2C options) {\n return new Script(code\x2C options);\n}\n\n// Remove all SIGINT listeners and re-attach them after the wrapped function\n// has executed\x2C so that caught SIGINT are handled by the listeners again.\nfunction sigintHandlersWrap(fn\x2C thisArg\x2C argsArray) {\n const sigintListeners = process.rawListeners('SIGINT');\n\n process.removeAllListeners('SIGINT');\n\n try {\n return ReflectApply(fn\x2C thisArg\x2C argsArray);\n } finally {\n // Add using the public methods so that the `newListener` handler of\n // process can re-attach the listeners.\n ArrayPrototypeForEach(sigintListeners\x2C (listener) => {\n process.addListener('SIGINT'\x2C listener);\n });\n }\n}\n\nfunction runInContext(code\x2C contextifiedObject\x2C options) {\n validateContext(contextifiedObject);\n if (typeof options === 'string') {\n options = {\n filename: options\x2C\n [kParsingContext]: contextifiedObject\n };\n } else {\n options = { ...options\x2C [kParsingContext]: contextifiedObject };\n }\n return createScript(code\x2C options)\n .runInContext(contextifiedObject\x2C options);\n}\n\nfunction runInNewContext(code\x2C contextObject\x2C options) {\n if (typeof options === 'string') {\n options = { filename: options };\n }\n contextObject = createContext(contextObject\x2C getContextOptions(options));\n options = { ...options\x2C [kParsingContext]: contextObject };\n return createScript(code\x2C options).runInNewContext(contextObject\x2C options);\n}\n\nfunction runInThisContext(code\x2C options) {\n if (typeof options === 'string') {\n options = { filename: options };\n }\n return createScript(code\x2C options).runInThisContext(options);\n}\n\nfunction compileFunction(code\x2C params\x2C options = {}) {\n validateString(code\x2C 'code');\n if (params !== undefined) {\n validateArray(params\x2C 'params');\n ArrayPrototypeForEach(params\x2C\n (param\x2C i) => validateString(param\x2C `params[${i}]`));\n }\n\n const {\n filename = ''\x2C\n columnOffset = 0\x2C\n lineOffset = 0\x2C\n cachedData = undefined\x2C\n produceCachedData = false\x2C\n parsingContext = undefined\x2C\n contextExtensions = []\x2C\n importModuleDynamically\x2C\n } = options;\n\n validateString(filename\x2C 'options.filename');\n validateUint32(columnOffset\x2C 'options.columnOffset');\n validateUint32(lineOffset\x2C 'options.lineOffset');\n if (cachedData !== undefined)\n validateBuffer(cachedData\x2C 'options.cachedData');\n validateBoolean(produceCachedData\x2C 'options.produceCachedData');\n if (parsingContext !== undefined) {\n if (\n typeof parsingContext !== 'object' ||\n parsingContext === null ||\n !isContext(parsingContext)\n ) {\n throw new ERR_INVALID_ARG_TYPE(\n 'options.parsingContext'\x2C\n 'Context'\x2C\n parsingContext\n );\n }\n }\n validateArray(contextExtensions\x2C 'options.contextExtensions');\n ArrayPrototypeForEach(contextExtensions\x2C (extension\x2C i) => {\n const name = `options.contextExtensions[${i}]`;\n validateObject(extension\x2C name\x2C { nullable: true });\n });\n\n const result = _compileFunction(\n code\x2C\n filename\x2C\n lineOffset\x2C\n columnOffset\x2C\n cachedData\x2C\n produceCachedData\x2C\n parsingContext\x2C\n contextExtensions\x2C\n params\n );\n\n if (produceCachedData) {\n result.function.cachedDataProduced = result.cachedDataProduced;\n }\n\n if (result.cachedData) {\n result.function.cachedData = result.cachedData;\n }\n\n if (importModuleDynamically !== undefined) {\n validateFunction(importModuleDynamically\x2C\n 'options.importModuleDynamically');\n const { importModuleDynamicallyWrap } =\n require('internal/vm/module');\n const { callbackMap } = internalBinding('module_wrap');\n const wrapped = importModuleDynamicallyWrap(importModuleDynamically);\n const func = result.function;\n callbackMap.set(result.cacheKey\x2C {\n importModuleDynamically: (s\x2C _k) => wrapped(s\x2C func)\x2C\n });\n }\n\n return result.function;\n}\n\nconst measureMemoryModes = {\n summary: constants.measureMemory.mode.SUMMARY\x2C\n detailed: constants.measureMemory.mode.DETAILED\x2C\n};\n\nconst measureMemoryExecutions = {\n default: constants.measureMemory.execution.DEFAULT\x2C\n eager: constants.measureMemory.execution.EAGER\x2C\n};\n\nfunction measureMemory(options = {}) {\n emitExperimentalWarning('vm.measureMemory');\n validateObject(options\x2C 'options');\n const { mode = 'summary'\x2C execution = 'default' } = options;\n validateOneOf(mode\x2C 'options.mode'\x2C ['summary'\x2C 'detailed']);\n validateOneOf(execution\x2C 'options.execution'\x2C ['default'\x2C 'eager']);\n const result = _measureMemory(measureMemoryModes[mode]\x2C\n measureMemoryExecutions[execution]);\n if (result === undefined) {\n return PromiseReject(new ERR_CONTEXT_NOT_INITIALIZED());\n }\n return result;\n}\n\nmodule.exports = {\n Script\x2C\n createContext\x2C\n createScript\x2C\n runInContext\x2C\n runInNewContext\x2C\n runInThisContext\x2C\n isContext\x2C\n compileFunction\x2C\n measureMemory\x2C\n};\n\n// The vm module is patched to include vm.Module\x2C vm.SourceTextModule\n// and vm.SyntheticModule in the pre-execution phase when\n// --experimental-vm-modules is on.\n
code-source-info,0x167e0305c28e,84,9020,9348,C0O9055C6O9094C13O9116C22O9133C28O9178C33O9149C40O9209C47O9234C53O9252C61O9271C64O9278C70O9305C75O9306C81O9346,,
code-creation,LazyCompile,10,113127,0x167e0305d456,214,getContextOptions node:vm:180:27,0xe5ca5cf1e08,~
code-source-info,0x167e0305d456,84,5570,6612,C0O5584C4O5602C5O5612C6O5638C11O5658C19O5691C28O5726C32O5764C43O5805C49O5829C54O5859C62O5829C67O5910C73O5936C78O5966C86O5936C91O6014C97O6057C102O6080C110O6057C115O6194C120O6168C125O6177C130O6221C134O6254C142O6254C147O6325C151O6355C159O6355C164O6420C171O6454C177O6463C183O6450C187O6489C193O6522C198O6545C206O6522C211O6588C213O6610,,
code-creation,LazyCompile,10,113207,0x167e0305d896,284,createContext node:vm:215:23,0xe5ca5cf1ea8,~
code-source-info,0x167e0305d896,84,6789,7902,C4O6789C20O6828C23O6832C29O6864C31O6885C32O6893C40O6893C45O6944C59O6951C69O6988C82O6998C87O7010C92O7030C97O7062C105O7062C110O7102C114O7132C122O7132C127O7176C131O7214C139O7214C144O7289C146O7308C148O7316C152O7359C163O7375C171O7412C179O7412C184O7476C192O7476C197O7558C199O7566C203O7605C211O7619C220O7695C230O7605C235O7713C237O7731C242O7758C247O7775C253O7804C276O7804C281O7879C283O7900,,
code-creation,LazyCompile,10,113237,0x167e0305db76,31,isContext node:vm:208:19,0xe5ca5cf1e58,~
code-source-info,0x167e0305db76,84,6632,6732,C0O6645C8O6660C16O6645C21O6704C26O6711C30O6730,,
code-creation,LazyCompile,10,113278,0x167e0305dce6,103, node:internal/validators:144:3,0x38b4b3b19ee8,~
code-source-info,0x167e0305dce6,17,4197,4570,C10O4197C16O4217C24O4239C32O4263C40O4305C50O4352C54O4366C57O4366C71O4441C79O4506C95O4512C100O4506C102O4569,,
tick,0x1bea830,113389,1,0xaef1c0,5,0xd44a10,0x167e0305d9aa,0x167e0305c2af,0xb6d5357c622,0xa52511ba45d,0xa52511b972d,0xb6d53578415,0xa52511ba45d,0xa52511b972d,0xb6d53549b2e,0xb6d53549025,0x158e77f
new,MemoryChunk,0x2e8c4bbc0000,262144
code-creation,LazyCompile,10,114095,0x167e0307aa76,19,createScript node:vm:256:22,0xe5ca5cf1ef8,~
code-source-info,0x167e0307aa76,84,7925,7980,C0O7945C13O7952C18O7978,,
code-creation,LazyCompile,10,114198,0x167e0307aeae,372,Script node:vm:66:14,0xe5ca5cf1630,~
code-source-info,0x167e0307aeae,84,2048,3847,C10O2048C16O2075C20O2097C26O2138C33O2160C44O2190C54O2190C59O2251C71O2295C79O2317C87O2341C92O2359C100O2392C105O2442C119O2480C129O2480C134O2530C144O2530C149O2583C159O2583C164O2640C172O2673C175O2673C181O2712C201O2718C206O2712C207O2858C217O2858C225O3153C229O3304C254O3153C282O3345C284O3345C285O3402C289O3453C299O3453C304O3608C312O3608C317O3568C322O3669C330O3669C335O3653C340O3719C354O3774C362O3719C371O3846,,
code-creation,LazyCompile,10,114259,0x167e0307b216,206, node:internal/validators:83:3,0x38b4b3b19cc8,~
code-source-info,0x167e0307b216,17,2236,2817,C36O2377C39O2382C45O2406C51O2447C67O2453C72O2447C73O2516C78O2521C84O2555C100O2561C105O2555C106O2624C116O2663C129O2676C142O2630C147O2624C148O2701C150O2711C157O2726C162O2741C172O2780C185O2793C198O2747C203O2741C205O2816,,
code-creation,LazyCompile,10,114284,0x167e0307b3ee,9,isInt32 node:internal/validators:35:17,0x38b4b3b19810,~
code-source-info,0x167e0307b3ee,17,715,758,C0O727C2O751C5O740C8O756,,
code-creation,LazyCompile,10,114305,0x167e0307b4e6,30,validateBoolean node:internal/validators:138:25,0x38b4b3b19e98,~
code-source-info,0x167e0307b4e6,17,4042,4153,C0O4060C6O4096C22O4102C27O4096C29O4152,,
code-creation,Script,10,114349,0x167e0307b6be,20, evalmachine.<anonymous>:1:1,0x167e0307b5d8,~
script-source,131,evalmachine.<anonymous>,Object.getOwnPropertyNames(globalThis)
code-source-info,0x167e0307b6be,131,0,38,C0O0C4O7C9O27C13O7C19O38,,
code-creation,LazyCompile,10,114381,0x167e0307b7de,33,runInNewContext node:vm:142:18,0xe5ca5cf1cf8,~
code-source-info,0x167e0307b7de,84,4570,4726,C0O4617C10O4646C15O4617C21O4691C26O4691C32O4722,,
tick,0x11749a3,114453,0,0x0,2,0x11e9ce0,0x167e0307b7f8,0x167e0305c2d9,0xb6d5357c622,0xa52511ba45d,0xa52511b972d,0xb6d53578415,0xa52511ba45d,0xa52511b972d,0xb6d53549b2e,0xb6d53549025,0x158e77f
code-creation,LazyCompile,10,114476,0x167e0307b94e,120,runInContext node:vm:132:15,0xe5ca5cf1c88,~
code-source-info,0x167e0307b94e,84,4164,4551,C0O4200C5O4200C9O4273C14O4273C19O4249C24O4264C29O4307C36O4307C41O4360C50O4389C58O4389C65O4413C70O4426C77O4458C88O4433C93O4484C94O4495C103O4521C114O4502C119O4547,,
code-creation,LazyCompile,10,114503,0x167e0307bb0e,33,validateContext node:vm:148:25,0xe5ca5cf1d68,~
code-source-info,0x167e0307bb0e,84,4754,4949,C0O4779C3O4784C9O4821C25O4827C30O4821C32O4948,,
code-creation,LazyCompile,10,114552,0x167e0307bdb6,173,getRunInContextArgs node:vm:155:29,0xe5ca5cf1db8,~
code-source-info,0x167e0307bdb6,84,4979,5542,C4O4979C10O4998C18O4998C23O5059C28O5070C30O5103C35O5132C48O5132C53O5201C64O5227C72O5281C87O5323C95O5323C100O5382C108O5382C113O5442C120O5455C124O5480C133O5481C142O5490C151O5505C160O5520C172O5540,,
code-creation,LazyCompile,10,114659,0x167e0307c03e,27,SafeWeakSet node:internal/per_context/primordials:370:16,0x334c17f0a050,~
code-source-info,0x167e0307c03e,6,10698,10715,C3O10704C7O10710C11O10704C26O10714,,
code-creation,LazyCompile,10,114694,0x167e0307c176,13, node:path:1082:10,0x1eac91c238c0,~
code-source-info,0x167e0307c176,35,33631,33650,C0O33645C3O33645C8O33645C12O33650,,
code-creation,LazyCompile,10,114724,0x167e0307c286,40,wrappedCwd node:internal/bootstrap/switches/does_own_process_state:124:20,0xe5ca5cfe480,~
script-source,89,node:internal/bootstrap/switches/does_own_process_state,'use strict';\n\nconst credentials = internalBinding('credentials');\nconst rawMethods = internalBinding('process_methods');\n\nprocess.abort = rawMethods.abort;\nprocess.umask = wrappedUmask;\nprocess.chdir = wrappedChdir;\nprocess.cwd = wrappedCwd;\n\nif (credentials.implementsPosixCredentials) {\n const wrapped = wrapPosixCredentialSetters(credentials);\n\n process.initgroups = wrapped.initgroups;\n process.setgroups = wrapped.setgroups;\n process.setegid = wrapped.setegid;\n process.seteuid = wrapped.seteuid;\n process.setgid = wrapped.setgid;\n process.setuid = wrapped.setuid;\n}\n\n// ---- keep the attachment of the wrappers above so that it's easier to ----\n// ---- compare the setups side-by-side -----\n\nconst {\n parseFileMode\x2C\n validateArray\x2C\n validateString\n} = require('internal/validators');\n\nfunction wrapPosixCredentialSetters(credentials) {\n const {\n codes: {\n ERR_INVALID_ARG_TYPE\x2C\n ERR_UNKNOWN_CREDENTIAL\n }\n } = require('internal/errors');\n const {\n validateUint32\n } = require('internal/validators');\n\n const {\n initgroups: _initgroups\x2C\n setgroups: _setgroups\x2C\n setegid: _setegid\x2C\n seteuid: _seteuid\x2C\n setgid: _setgid\x2C\n setuid: _setuid\n } = credentials;\n\n function initgroups(user\x2C extraGroup) {\n validateId(user\x2C 'user');\n validateId(extraGroup\x2C 'extraGroup');\n // Result is 0 on success\x2C 1 if user is unknown\x2C 2 if group is unknown.\n const result = _initgroups(user\x2C extraGroup);\n if (result === 1) {\n throw new ERR_UNKNOWN_CREDENTIAL('User'\x2C user);\n } else if (result === 2) {\n throw new ERR_UNKNOWN_CREDENTIAL('Group'\x2C extraGroup);\n }\n }\n\n function setgroups(groups) {\n validateArray(groups\x2C 'groups');\n for (let i = 0; i < groups.length; i++) {\n validateId(groups[i]\x2C `groups[${i}]`);\n }\n // Result is 0 on success. A positive integer indicates that the\n // corresponding group was not found.\n const result = _setgroups(groups);\n if (result > 0) {\n throw new ERR_UNKNOWN_CREDENTIAL('Group'\x2C groups[result - 1]);\n }\n }\n\n function wrapIdSetter(type\x2C method) {\n return function(id) {\n validateId(id\x2C 'id');\n if (typeof id === 'number') id |= 0;\n // Result is 0 on success\x2C 1 if credential is unknown.\n const result = method(id);\n if (result === 1) {\n throw new ERR_UNKNOWN_CREDENTIAL(type\x2C id);\n }\n };\n }\n\n function validateId(id\x2C name) {\n if (typeof id === 'number') {\n validateUint32(id\x2C name);\n } else if (typeof id !== 'string') {\n throw new ERR_INVALID_ARG_TYPE(name\x2C ['number'\x2C 'string']\x2C id);\n }\n }\n\n return {\n initgroups\x2C\n setgroups\x2C\n setegid: wrapIdSetter('Group'\x2C _setegid)\x2C\n seteuid: wrapIdSetter('User'\x2C _seteuid)\x2C\n setgid: wrapIdSetter('Group'\x2C _setgid)\x2C\n setuid: wrapIdSetter('User'\x2C _setuid)\n };\n}\n\n// Cache the working directory to prevent lots of lookups. If the working\n// directory is changed by `chdir`\x2C it'll be updated.\nlet cachedCwd = '';\n\nfunction wrappedChdir(directory) {\n validateString(directory\x2C 'directory');\n rawMethods.chdir(directory);\n // Mark cache that it requires an update.\n cachedCwd = '';\n}\n\nfunction wrappedUmask(mask) {\n if (mask !== undefined) {\n mask = parseFileMode(mask\x2C 'mask');\n }\n return rawMethods.umask(mask);\n}\n\nfunction wrappedCwd() {\n if (cachedCwd === '')\n cachedCwd = rawMethods.cwd();\n return cachedCwd;\n}\n
code-source-info,0x167e0307c286,89,3341,3425,C0O3348C7O3362C12O3374C17O3397C22O3397C29O3384C35O3406C39O3423,,
code-creation,LazyCompile,10,114976,0x167e0307c956,183,Module._nodeModulePaths node:internal/modules/cjs/loader:629:37,0xce7fc604cd0,~
code-source-info,0x167e0307c956,95,18791,19922,C0O18846C5O18858C10O18858C17O19037C19O19046C24O19061C28O19086C29O19301C32O19327C36O19334C40O19343C42O19358C47O19368C48O19368C53O19400C58O19400C64O19442C66O19455C68O19451C73O19485C75O19495C77O19491C82O19512C89O19563C100O19563C108O19599C112O19512C117O19638C120O19656C124O19676C126O19682C131O19700C138O19711C144O19715C149O19737C156O19769C159O19376C164O19309C167O19856C175O19856C180O19905C182O19918,,
code-creation,LazyCompile,10,115034,0x167e0307cb5e,5,get node:internal/util/inspect:343:6,0x38b4b3b14e88,~
code-source-info,0x167e0307cb5e,14,10052,10094,C0O10061C4O10090,,
code-creation,LazyCompile,10,115232,0x167e0307d15e,299,createRepl node:internal/repl:16:20,0xb6d535782e0,~
code-source-info,0x167e0307d15e,119,296,1226,C0O316C6O354C9O369C12O388C19O402C24O420C33O447C42O469C51O498C62O511C69O524C74O547C79O528C85O572C86O586C90O610C96O632C103O666C106O671C116O705C119O710C127O737C132O752C137O752C142O765C147O766C151O732C154O646C158O791C164O821C166O837C169O842C173O835C177O887C182O898C187O887C192O925C197O930C204O970C209O981C211O998C217O1028C221O1045C225O1073C230O1078C235O1078C241O1106C246O1117C251O1132C260O1151C265O1158C270O1172C280O1185C282O1196C291O1172C298O1225,,
code-creation,LazyCompile,10,115292,0x167e0307d3f6,29,start node:repl:1029:15,0xb6d5357ab88,~
code-source-info,0x167e0307d3f6,120,32739,32895,C0O32805C23O32812C28O32893,,
tick,0x1101d12,115520,0,0x0,2,0x11febe0,0x167e0307d40d,0x167e0307d249,0xb6d53549b45,0xb6d53549025,0x158e77f
code-creation,LazyCompile,10,115673,0x167e0307e806,1705,REPLServer node:repl:223:20,0xb6d5357aa18,~
code-source-info,0x167e0307e806,120,6616,32487,C0O6616C79O6782C86O6793C91O6823C116O6830C121O7036C122O7048C123O7048C125O7059C135O7152C139O7160C141O7181C144O7198C153O7216C159O7228C162O7244C168O7254C171O7274C177O7289C180O7315C186O7336C189O7353C195O7365C198O7384C206O7409C207O7417C209O7430C212O7443C221O7461C227O7530C231O7624C237O7793C240O7816C248O7807C252O7837C255O7861C263O7852C267O7886C270O7898C276O7928C282O7955C287O7962C291O7945C295O7975C301O8004C307O7992C311O8017C314O8029C323O8049C329O8140C332O8152C337O8159C343O8178C349O8206C354O8213C359O8213C363O8196C369O8237C374O8249C379O8253C385O8296C389O8314C393O8414C396O8422C405O8447C414O8481C424O8492C426O8503C448O8556C456O8583C469O8685C476O8583C495O8809C503O8836C516O8947C523O8836C538O8503C543O9125C565O9179C573O9206C586O9309C593O9206C612O9434C620O9461C633O9573C640O9461C655O9125C660O9753C666O9795C672O9783C676O9823C682O9850C688O9838C692O9863C698O9886C708O9896C711O9903C716O9903C720O9876C724O9915C729O9934C731O9930C735O9947C740O9972C742O9968C746O9991C751O10007C758O10026C763O10034C767O10005C771O10054C775O10078C779O10089C783O10099C787O10114C791O10141C795O10152C799O10167C803O10182C809O10217C815O10205C819O10238C823O10254C827O10318C834O10323C838O10335C842O10351C845O10360C853O10381C855O10526C862O10532C867O10526C868O10575C875O10587C877O10586C882O10764C887O10771C894O10784C900O10801C908O11055C913O11063C926O11063C932O11697C938O11714C946O11729C953O11739C961O11748C966O11739C971O11787C975O11787C977O11843C979O11843C981O11888C993O11903C1006O11913C1019O11923C1032O11933C1045O11982C1055O11992C1068O12002C1081O12012C1091O11943C1097O12061C1104O12022C1110O11888C1115O11888C1117O12077C1125O12123C1127O12123C1129O12217C1131O12217C1133O12236C1134O12236C1136O20687C1142O20704C1147O20712C1152O20712C1157O20697C1161O20728C1164O20733C1169O20741C1182O20741C1188O24733C1191O24738C1196O24738C1200O24916C1211O24929C1232O24968C1243O24995C1254O25026C1262O25039C1269O25072C1280O25107C1290O25124C1303O24916C1308O25141C1311O25146C1316O25146C1320O25165C1327O25181C1332O25181C1336O25179C1340O25203C1348O25203C1352O25282C1358O25304C1369O25321C1374O25329C1378O25294C1382O25340C1385O25349C1394O25360C1396O25356C1401O25418C1408O25425C1416O25447C1420O25440C1424O25463C1431O25475C1433O25474C1438O25501C1449O25522C1460O25557C1468O25617C1476O25501C1481O26016C1484O26021C1497O26021C1503O26192C1504O26192C1506O26216C1507O26216C1509O26256C1516O26256C1521O26256C1523O26273C1526O26278C1539O26278C1545O26998C1548O27003C1561O27003C1567O30251C1570O30256C1583O30256C1589O30653C1599O30653C1604O30635C1610O30730C1624O30758C1631O30774C1637O30730C1643O30694C1649O30712C1655O30893C1665O30920C1673O30893C1678O30893C1680O30940C1687O30955C1691O32464C1694O32469C1699O32469C1704O32486,,
new,MemoryChunk,0x16e490940000,262144
code-creation,LazyCompile,10,116040,0x16e49094114e,1135,Interface node:readline:152:19,0x2148b307da38,~
code-source-info,0x16e49094114e,122,4141,9693,C0O4141C59O4182C63O4193C68O4222C87O4229C92O4279C93O4287C94O4305C98O4448C99O4473C103O4483C104O4501C108O4512C109O4530C113O4540C117O4565C119O4563C123O4588C125O4601C129O4609C140O4631C143O4609C148O4658C150O4673C152O4718C154O4731C156O4757C159O4769C160O4769C162O4779C169O4798C175O4846C178O4861C182O4853C184O4873C187O4891C191O4883C193O4906C196O4923C202O4937C205O4953C210O4966C213O4986C218O5003C221O5018C225O5010C227O5030C230O5040C236O5071C246O5092C256O5071C261O5125C264O5146C268O5138C272O5165C275O5197C280O5226C283O5236C289O5266C292O5281C297O5299C300O5309C306O5350C316O5375C321O5354C327O5405C330O5436C334O5428C340O5478C350O5563C357O5484C362O5478C363O5611C367O5631C380O5631C385O5689C388O5707C393O5722C396O5736C400O5728C402O5750C412O5820C427O5826C432O5820C433O5884C437O5917C442O5946C452O5946C457O5988C461O6025C468O6060C478O6105C481O6105C488O6151C493O6162C500O6194C513O6168C518O6162C519O6346C531O6426C534O6446C542O6473C544O6473C546O6482C548O6492C552O6500C556O6505C560O6523C564O6533C566O6545C570O6557C572O6568C576O6579C578O6592C582O6605C584O6622C588O6639C590O6672C592O6668C596O6699C601O6716C607O6732C614O6740C617O6732C628O6768C630O6714C634O6829C640O6872C643O6899C650O6906C662O6920C666O6887C670O7021C674O7026C681O7045C689O7045C694O7043C698O7099C703O7099C708O7121C710O7139C712O7135C716O7152C721O7164C726O7168C733O7173C738O7191C742O7208C750O7208C755O7206C759O8168C763O8173C767O8192C771O8208C774O8214C785O8214C791O8249C802O8448C805O8454C816O8454C822O8478C825O8484C836O8484C842O8506C845O8511C853O8511C859O8558C863O8578C871O8574C876O8572C887O8920C897O8920C902O8997C905O9003C916O9003C922O9035C925O9041C936O9041C942O9073C949O9073C954O9096C955O9110C959O9159C960O9171C964O9181C966O9199C970O9210C978O9261C981O9268C992O9268C998O9297C1001O9302C1009O9302C1015O9349C1026O9385C1030O9385C1032O9409C1037O9420C1043O9437C1048O9445C1056O9445C1063O9485C1068O9492C1079O9518C1084O9492C1089O9552C1094O9557C1107O9557C1115O9657C1117O9667C1121O9676C1124O9682C1129O9682C1134O9692,,
code-creation,LazyCompile,10,116195,0x16e4909447b6,544,getStdin node:internal/bootstrap/switches/is_main_thread:144:18,0xe5ca5cfc5c8,~
code-source-info,0x16e4909447b6,87,3951,6253,C0O3951C11O3958C19O3969C25O3982C26O3996C32O4010C35O4010C48O4002C81O4067C89O4067C94O4089C96O4105C101O4116C111O4097C121O4095C129O4212C131O4254C139O4254C144O4275C146O4290C160O4313C166O4283C176O4281C184O4344C186O4403C194O4403C199O4662C204O4674C215O4693C220O4701C227O4704C232O4722C236O4738C251O4773C261O4730C271O4728C281O4898C285O4914C297O4937C303O4906C313O4904C321O5098C328O5104C334O5125C338O5139C340O5282C348O5282C353O5269C358O5307C365O5330C375O5315C385O5313C393O5350C400O5356C407O5356C412O5426C421O5435C425O5593C432O5603C442O5614C445O5620C450O5628C456O5644C463O5650C469O5666C473O5679C480O5685C486O5708C490O5721C497O5727C502O5735C507O5735C511O5928C518O5934C531O5934C537O6238C543O6251,,
code-creation,LazyCompile,10,116282,0x16e490944cce,152,ReadStream node:tty:47:20,0xb6d5354cd78,~
code-source-info,0x16e490944cce,114,1661,2126,C0O1679C2O1690C7O1718C18O1725C23O1753C24O1756C26O1763C32O1768C38O1781C43O1790C50O1796C55O1790C56O1835C58O1853C73O1853C79O1887C85O1913C92O1919C97O1913C98O1956C103O1960C108O1967C120O2055C130O2067C134O1967C140O2084C141O2095C145O2106C146O2117C151O2125,,
code-creation,LazyCompile,10,116452,0x16e490944f6e,69,EventEmitter.init node:domain:449:29,0x167e0304a5d8,~
code-source-info,0x16e490944f6e,127,13455,13740,C0O13462C16O13462C21O13592C24O13604C33O13640C37O13621C42O13655C45O13677C49O13667C53O13692C60O13721C63O13699C68O13738,,
code-creation,LazyCompile,10,116522,0x16e490945106,21,set node:internal/streams/writable:792:8,0x3787ca79d658,~
code-source-info,0x16e490945106,56,23063,23194,C0O23117C6O23148C13O23176C15O23172C20O23193,,
tick,0x10e8821,116586,0,0x0,0,0xf48b80,0xb6d53562edd,0xb6d535629bb,0x16e490944d54,0x16e490944825,0x167e0307e8f6,0x167e0307d40d,0x167e0307d249,0xb6d53549b45,0xb6d53549025,0x158e77f
code-creation,LazyCompile,10,116645,0x16e49094529e,71,Socket.read node:net:624:33,0xb6d53550b30,~
code-source-info,0x16e49094529e,115,16315,16493,C0O16323C2O16332C4O16331C9O16350C15O16369C21O16392C26O16400C32O16415C35O16415C39O16441C44O16455C49O16462C54O16472C59O16477C64O16477C70O16491,,
code-creation,LazyCompile,10,116769,0x16e4909455b6,582,Readable.read node:internal/streams/readable:391:35,0x3787ca790a68,~
code-source-info,0x16e4909455b6,51,12633,16960,C0O12641C8O12641C13O12788C17O12815C24O12833C29O12838C35O12864C43O12868C50O12916C55O12948C58O13040C62O13032C67O13059C70O13081C74O13079C78O13112C79O13118C84O13129C85O13151C89O13333C90O13339C95O13360C101O13390C107O13404C112O13426C117O13442C121O13433C126O13472C132O13479C137O13500C143O13514C151O13548C156O13562C161O13514C166O13584C172O13591C177O13606C183O13619C186O13619C192O13653C195O13653C199O13677C200O13689C201O13697C204O13701C211O13790C212O13796C217O13811C223O13834C229O13841C234O13854C237O13854C241O13877C242O13889C243O15019C248O15035C256O15035C261O15156C267O15163C272O15178C279O15185C283O15197C287O15189C292O15218C294O15237C302O15237C307O15508C313O15523C319O15540C325O15559C331O15583C337O15602C339O15622C347O15622C354O15680C358O15698C366O15698C370O15720C371O15734C375O15746C376O15757C380O15852C386O15859C391O15872C392O15891C396O15942C401O15954C406O15942C411O15975C412O15986C416O16158C422O16173C425O16177C432O16217C434O16224C435O16230C440O16239C443O16245C451O16276C453O16291C457O16342C462O16358C466O16349C469O16334C473O16377C478O16399C485O16415C488O16412C492O16432C498O16463C503O16481C508O16481C514O16509C515O16533C519O16564C525O16571C530O16714C536O16727C537O16746C541O16834C543O16844C548O16859C554O16872C557O16872C561O16898C565O16925C573O16925C579O16947C581O16958,,
code-creation,LazyCompile,10,116827,0x16e490945a46,104,logger node:internal/util/debuglog:96:18,0x1eac91c35258,~
code-source-info,0x16e490945a46,40,2899,3124,C0O2899C3O2931C30O2955C35O2962C38O2970C39O2985C45O3002C49O2992C53O3007C54O3022C60O3039C66O3048C70O3029C75O3053C76O3069C80O3076C87O3089C92O3085C98O3076C103O3114,,
code-creation,LazyCompile,10,116864,0x16e490945bd6,155,debug node:internal/util/debuglog:76:15,0x1eac91c351b8,~
code-source-info,0x16e490945bd6,40,2357,2781,C0O2357C3O2376C6O2376C9O2484C16O2505C22O2492C30O2490C36O2524C42O2560C47O2563C50O2560C54O2588C81O2612C86O2619C89O2627C90O2642C96O2659C100O2649C104O2664C105O2679C111O2696C117O2705C121O2686C126O2710C127O2726C131O2733C138O2746C143O2742C149O2733C154O2771,,
code-creation,LazyCompile,10,116890,0x16e490945db6,41,init node:internal/util/debuglog:72:16,0x1eac91c35168,~
code-source-info,0x16e490945db6,40,2259,2342,C0O2268C10O2274C14O2272C16O2311C26O2321C33O2319C40O2341,,
code-creation,LazyCompile,10,116908,0x16e490945eb6,2,testEnabled node:internal/util/debuglog:32:19,0xce7fc63ac28,~
code-source-info,0x16e490945eb6,40,973,984,C0O979C1O984,,
code-creation,LazyCompile,10,116960,0x16e49094605e,116,debuglogImpl node:internal/util/debuglog:49:22,0x1eac91c34fa0,~
code-source-info,0x16e49094605e,40,1451,1995,C0O1451C9O1470C18O1484C23O1511C34O1544C39O1552C43O1544C45O1563C55O1563C59O1595C71O1606C75O1611C83O1934C97O1952C99O1950C103O1970C112O1987C115O1993,,
code-creation,LazyCompile,10,116986,0x16e490946226,10, node:internal/streams/readable:49:66,0x3787ca78fd08,~
code-source-info,0x16e490946226,51,1731,1756,C0O1743C2O1749C9O1755,,
code-creation,LazyCompile,10,117000,0x16e4909462e6,2,noop node:internal/util/debuglog:47:14,0x1eac91c34f50,~
code-source-info,0x16e4909462e6,40,1419,1427,C1O1426,,
code-creation,LazyCompile,10,117040,0x16e4909463de,108,howMuchToRead node:internal/streams/readable:374:23,0x3787ca790a18,~
code-source-info,0x16e4909463de,51,12156,12528,C0O12171C1O12177C6O12192C12O12199C17O12214C23O12226C24O12235C25O12248C31O12264C33O12273C34O12276C39O12280C45O12351C51O12368C57O12395C62O12402C67O12402C72O12409C76O12417C77O12435C81O12442C82O12464C86O12455C91O12476C93O12485C94O12501C100O12515C107O12526,,
code-creation,LazyCompile,10,117082,0x16e49094665e,111,Socket._read node:net:581:34,0xb6d53550910,~
code-source-info,0x16e49094665e,115,15267,15488,C0O15267C13O15275C23O15275C27O15294C30O15303C39O15323C45O15338C55O15338C59O15378C62O15383C75O15383C83O15430C86O15440C91O15448C97O15463C105O15463C110O15487,,
code-creation,LazyCompile,10,117108,0x16e49094681e,10, node:net:39:63,0xb6d535502f0,~
code-source-info,0x16e49094681e,115,1473,1498,C0O1485C2O1491C9O1497,,
code-creation,LazyCompile,10,117152,0x16e490946956,65,tryReadStart node:net:571:22,0xb6d5354fc60,~
code-source-info,0x16e490946956,115,14942,15167,C0O14996C8O14996C12O15040C18O15056C22O15085C27O15093C32O15093C37O15108C39O15128C46O15136C52O15136C58O15128C64O15166,,
code-creation,LazyCompile,10,117267,0x16e490946ad6,101,hasColors node:internal/tty:218:19,0xb6d53560c98,~
code-source-info,0x16e490946ad6,118,6088,6494,C0O6105C18O6214C21O6231C27O6258C33O6297C49O6303C54O6297C55O6365C57O6375C62O6388C78O6394C83O6388C84O6452C90O6473C94O6470C97O6465C100O6492,,
new,MemoryChunk,0x7f4ddc040000,262144
code-creation,RegExp,3,117416,0x7f4ddc043060,888,^xterm-256
code-creation,LazyCompile,10,117497,0x16e490946d2e,11,createDomain node:domain:220:62,0x167e0304a0e8,~
code-source-info,0x16e490946d2e,127,7198,7227,C0O7205C5O7212C10O7225,,
code-creation,LazyCompile,10,117541,0x16e490946e66,117,Domain node:domain:206:14,0x167e0304a098,~
code-source-info,0x16e490946e66,127,6887,7107,C3O6896C11O6896C23O6910C28O6923C32O6933C37O6938C42O6951C50O6947C55O6945C59O6976C64O6986C69O6986C73O7001C76O7006C87O7006C93O7056C96O7061C107O7061C116O7106,,
tick,0x113bed0,117676,0,0x0,2,0x11e9ce0,0x16e490946eab,0x16e490946d33,0x167e0307ead2,0x167e0307d40d,0x167e0307d249,0xb6d53549b45,0xb6d53549025,0x158e77f
code-creation,LazyCompile,10,117734,0x16e490947116,317,enable node:async_hooks:87:9,0x38b4b3b3fad8,~
code-source-info,0x16e490947116,27,2259,3498,C0O2561C5O2561C9O2529C15O2545C22O2634C27O2638C34O2687C36O2699C37O2726C39O2738C41O2737C45O2922C47O2934C52O2957C61O2975C63O2974C68O2967C74O2964C80O2943C84O2993C86O3005C95O3029C104O3049C106O3048C111O3041C117O3038C126O3014C130O3069C132O3081C141O3105C150O3124C152O3123C157O3116C163O3113C172O3090C176O3143C178O3155C187O3179C196O3200C198O3199C203O3192C209O3189C218O3164C222O3221C224O3233C233O3265C242O3293C244O3292C249O3285C255O3282C264O3242C268O3322C273O3322C278O3366C279O3383C286O3404C288O3403C293O3413C298O3426C303O3426C306O3452C311O3452C314O3482C316O3494,,
code-creation,LazyCompile,10,117789,0x16e490947496,106,getHookArrays node:internal/async_hooks:265:23,0x334c17f38db0,~
code-source-info,0x16e490947496,24,9881,10349,C0O9888C5O9905C11O9916C16O9927C25O9935C28O9948C41O9955C49O9974C50O10227C55O10244C61O10268C64O10268C67O10290C76O10298C79O10311C92O10322C95O10335C105O10347,,
code-creation,LazyCompile,10,117838,0x16e490947616,22,enableHooks node:internal/async_hooks:371:21,0x334c17f39140,~
code-source-info,0x16e490947616,24,13340,13380,C0O13347C7O13365C16O13373C21O13379,,
code-creation,LazyCompile,10,117882,0x16e490947736,83,updatePromiseHookMode node:internal/async_hooks:375:31,0x334c17f391b0,~
code-source-info,0x16e490947736,24,13412,13803,C0O13419C4O13435C10O13449C12O13461C15O13465C20O13489C23O13500C37O13591C40O13595C45O13622C48O13656C62O13736C76O13656C82O13802,,
code-creation,LazyCompile,10,117911,0x16e49094788e,13,destroyHooksExist node:internal/async_hooks:474:27,0x334c17f39638,~
code-source-info,0x16e49094788e,24,16015,16050,C0O16022C5O16038C8O16029C12O16048,,
code-creation,LazyCompile,10,117932,0x16e490947986,13,promiseResolveHooksExist node:internal/async_hooks:478:34,0x334c17f39688,~
code-source-info,0x16e490947986,24,16085,16127,C0O16092C5O16108C8O16099C12O16125,,
code-creation,LazyCompile,10,118068,0x16e490947bb6,53,Domain.bind node:domain:428:33,0x167e0304a528,~
code-source-info,0x16e490947bb6,127,13036,13294,C0O13036C17O13058C19O13058C21O13141C31O13162C38O13242C45O13141C50O13276C52O13292,,
code-creation,LazyCompile,10,118232,0x16e490947fd6,451,emit node:domain:464:44,0x167e0304a660,~
code-source-info,0x16e490947fd6,127,13833,16239,C0O13833C3O13867C8O13891C9O13895C13O13926C15O13931C20O13977C25O13977C32O13997C36O14129C48O14206C53O14225C60O14245C69O14232C74O14268C75O14276C77O14285C82O14320C89O14327C96O14338C103O14354C110O14364C113O14360C119O14392C123O14428C125O14445C129O14459C137O14480C144O14566C151O14459C156O14613C157O14629C161O15028C168O15048C171O15028C176O15085C179O15093C184O15262C189O15268C193O15275C197O15300C199O15295C207O15311C214O15322C219O15327C222O15318C227O15342C232O15284C235O15477C236O15485C241O15498C247O15511C253O15535C260O15556C265O15567C269O15535C274O15624C279O15634C285O15641C290O15654C298O15688C303O15694C306O15700C310O15707C313O15693C317O15686C323O15669C329O15732C337O15764C343O15747C347O15783C350O15783C353O15821C361O15821C367O15984C372O16007C378O15999C382O16031C390O16063C396O16046C400O16087C403O16087C406O16118C407O16131C408O16146C413O16146C417O16169C424O16182C433O16169C439O16215C444O16215C448O16226C450O16237,,
code-creation,LazyCompile,10,118317,0x16e490948446,62,updateExceptionCapture node:domain:165:32,0x167e03049bd8,~
code-source-info,0x16e490948446,127,5562,5893,C0O5569C7O5593C15O5573C22O5682C29O5682C35O5740C42O5740C46O5787C56O5787C61O5892,,
code-creation,LazyCompile,10,118386,0x16e49094864e,167,setUncaughtExceptionCaptureCallback node:internal/process/execution:104:45,0x3787ca7bdf68,~
code-source-info,0x16e49094864e,74,2843,3493,C0O2852C4O2875C11O2907C15O2917C24O2948C28O2957C31O2965C38O3000C41O3022C45O2998C49O3038C50O3045C51O3052C57O3088C75O3094C80O3088C81O3158C86O3184C92O3210C97O3216C102O3210C103O3272C110O3304C114O3312C122O3343C126O3350C134O3397C139O3404C145O3430C148O3383C152O3442C155O3450C161O3483C166O3492,,
code-creation,LazyCompile,10,118431,0x16e490948836,5,get node:internal/bootstrap/pre_execution:187:8,0xce7fc63b0c8,~
code-source-info,0x16e490948836,91,5947,5978,C0O5958C4O5972,,
code-creation,LazyCompile,10,118466,0x16e49094894e,30,set reportOnUncaughtException node:internal/process/report:90:32,0xce7fc63bf50,~
code-source-info,0x16e49094894e,112,2089,2192,C0O2105C8O2105C13O2147C18O2150C23O2150C29O2191,,
code-creation,LazyCompile,10,118504,0x16e490948a6e,13,clearBufferedCommand node:repl:1038:74,0xb6d5357b228,~
code-source-info,0x16e490948a6e,120,33085,33128,C0O33092C2O33097C7O33121C12O33127,,
code-creation,LazyCompile,10,118634,0x16e490948d06,52,setPrompt node:repl:1158:52,0xb6d5357b478,~
code-source-info,0x16e490948d06,120,36509,36616,C0O36522C2O36542C6O36554C13O36567C16O36577C21O36587C35O36605C45O36554C51O36615,,
code-creation,LazyCompile,10,118667,0x16e490948e4e,8,Interface.setPrompt node:readline:382:41,0x2148b307dc18,~
code-source-info,0x16e490948e4e,122,10170,10207,C0O10183C2O10196C7O10206,,
tick,0x7f4debd43340,118748,0,0x0,3,0x11e9ce0,0x16e490948d33,0x16e49094140d,0x167e0307ed1d,0x167e0307d40d,0x167e0307d249,0xb6d53549b45,0xb6d53549025,0x158e77f
code-creation,LazyCompile,10,118868,0x16e49094914e,261,emitKeypressEvents node:internal/readline/emitKeypressEvents:31:28,0x167e03044328,~
code-source-info,0x16e49094914e,125,603,2555,C0O603C51O628C60O639C62O638C67O658C68O665C69O669C78O676C85O700C93O696C98O694C102O726C111O733C118O751C126O751C130O749C134O771C143O778C145O777C149O794C154O794C158O827C162O827C164O920C169O876C179O896C183O933C184O933C186O2419C191O2430C199O2430C206O2456C211O2467C216O2474C227O2474C235O2509C240O2516C251O2516C260O2554,,
code-creation,LazyCompile,10,118952,0x16e49094975e,71,StringDecoder node:string_decoder:71:23,0x3787ca795178,~
script-source,54,node:string_decoder,// Copyright Joyent\x2C Inc. and other Node contributors.\n//\n// Permission is hereby granted\x2C free of charge\x2C to any person obtaining a\n// copy of this software and associated documentation files (the\n// "Software")\x2C to deal in the Software without restriction\x2C including\n// without limitation the rights to use\x2C copy\x2C modify\x2C merge\x2C publish\x2C\n// distribute\x2C sublicense\x2C and/or sell copies of the Software\x2C and to permit\n// persons to whom the Software is furnished to do so\x2C subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED "AS IS"\x2C WITHOUT WARRANTY OF ANY KIND\x2C EXPRESS\n// OR IMPLIED\x2C INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY\x2C FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM\x2C\n// DAMAGES OR OTHER LIABILITY\x2C WHETHER IN AN ACTION OF CONTRACT\x2C TORT OR\n// OTHERWISE\x2C ARISING FROM\x2C OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n'use strict';\n\nconst {\n ArrayBufferIsView\x2C\n ObjectDefineProperties\x2C\n Symbol\x2C\n TypedArrayPrototypeSubarray\x2C\n} = primordials;\n\nconst { Buffer } = require('buffer');\nconst {\n kIncompleteCharactersStart\x2C\n kIncompleteCharactersEnd\x2C\n kMissingBytes\x2C\n kBufferedBytes\x2C\n kEncodingField\x2C\n kSize\x2C\n decode\x2C\n flush\x2C\n encodings\n} = internalBinding('string_decoder');\nconst internalUtil = require('internal/util');\nconst {\n ERR_INVALID_ARG_TYPE\x2C\n ERR_UNKNOWN_ENCODING\n} = require('internal/errors').codes;\nconst isEncoding = Buffer[internalUtil.kIsEncodingSymbol];\n\nconst kNativeDecoder = Symbol('kNativeDecoder');\n\n// Do not cache `Buffer.isEncoding` when checking encoding names as some\n// modules monkey-patch it to support additional encodings\nfunction normalizeEncoding(enc) {\n const nenc = internalUtil.normalizeEncoding(enc);\n if (nenc === undefined) {\n if (Buffer.isEncoding === isEncoding || !Buffer.isEncoding(enc))\n throw new ERR_UNKNOWN_ENCODING(enc);\n return enc;\n }\n return nenc;\n}\n\nconst encodingsMap = {};\nfor (let i = 0; i < encodings.length; ++i)\n encodingsMap[encodings[i]] = i;\n\n// StringDecoder provides an interface for efficiently splitting a series of\n// buffers into a series of JS strings without breaking apart multi-byte\n// characters.\nfunction StringDecoder(encoding) {\n this.encoding = normalizeEncoding(encoding);\n this[kNativeDecoder] = Buffer.alloc(kSize);\n this[kNativeDecoder][kEncodingField] = encodingsMap[this.encoding];\n}\n\nStringDecoder.prototype.write = function write(buf) {\n if (typeof buf === 'string')\n return buf;\n if (!ArrayBufferIsView(buf))\n throw new ERR_INVALID_ARG_TYPE('buf'\x2C\n ['Buffer'\x2C 'TypedArray'\x2C 'DataView']\x2C\n buf);\n return decode(this[kNativeDecoder]\x2C buf);\n};\n\nStringDecoder.prototype.end = function end(buf) {\n let ret = '';\n if (buf !== undefined)\n ret = this.write(buf);\n if (this[kNativeDecoder][kBufferedBytes] > 0)\n ret += flush(this[kNativeDecoder]);\n return ret;\n};\n\n/* Everything below this line is undocumented legacy stuff. */\nStringDecoder.prototype.text = function text(buf\x2C offset) {\n this[kNativeDecoder][kMissingBytes] = 0;\n this[kNativeDecoder][kBufferedBytes] = 0;\n return this.write(buf.slice(offset));\n};\n\nObjectDefineProperties(StringDecoder.prototype\x2C {\n lastChar: {\n configurable: true\x2C\n enumerable: true\x2C\n get() {\n return TypedArrayPrototypeSubarray(this[kNativeDecoder]\x2C\n kIncompleteCharactersStart\x2C\n kIncompleteCharactersEnd);\n }\n }\x2C\n lastNeed: {\n configurable: true\x2C\n enumerable: true\x2C\n get() {\n return this[kNativeDecoder][kMissingBytes];\n }\n }\x2C\n lastTotal: {\n configurable: true\x2C\n enumerable: true\x2C\n get() {\n return this[kNativeDecoder][kBufferedBytes] +\n this[kNativeDecoder][kMissingBytes];\n }\n }\n});\n\nexports.StringDecoder = StringDecoder;\n
code-source-info,0x16e49094975e,54,2435,2612,C0O2450C3O2466C7O2464C11O2497C13O2502C18O2520C21O2527C28O2533C31O2527C36O2518C40O2543C42O2548C44O2547C50O2564C55O2582C58O2600C62O2594C65O2580C70O2611,,
code-creation,LazyCompile,10,119289,0x16e490949d16,73,normalizeEncoding node:string_decoder:54:27,0x3787ca794e78,~
code-source-info,0x16e490949d16,54,1907,2143,C0O1930C5O1943C10O1943C16O1969C18O1999C23O2010C30O2025C32O2021C39O2040C42O2047C47O2047C54O2070C61O2076C66O2070C67O2111C69O2122C70O2129C72O2141,,
code-creation,LazyCompile,10,119332,0x16e490949e66,30,normalizeEncoding node:internal/util:141:27,0x334c17f29748,~
code-source-info,0x16e490949e66,12,3649,3754,C0O3659C7O3682C14O3700C19O3713C21O3727C22O3730C25O3737C29O3752,,
code-creation,LazyCompile,10,119419,0x16e490949fd6,73,alloc node:buffer:358:30,0x38b4b3b24a80,~
code-source-info,0x16e490949fd6,18,10421,10652,C0O10448C5O10448C9O10468C14O10499C20O10513C25O10536C30O10536C35O10566C40O10597C54O10573C59O10615C60O10622C67O10629C72O10650,,
code-creation,LazyCompile,10,119463,0x16e49094a13e,54, node:buffer:347:36,0x38b4b3b24a30,~
code-source-info,0x16e49094a13e,18,10149,10304,C0O10163C8O10163C13O10195C14O10206C21O10222C23O10219C28O10241C33O10273C46O10247C51O10241C53O10303,,
code-creation,LazyCompile,10,119496,0x16e49094a276,30,validateNumber node:internal/validators:122:24,0x38b4b3b19dd8,~
code-source-info,0x16e49094a276,17,3532,3641,C0O3550C6O3585C22O3591C27O3585C29O3640,,
tick,0x1101d12,119808,0,0x0,2,0x11e9ce0,0x16e4909491cc,0x16e4909414cf,0x167e0307ed1d,0x167e0307d40d,0x167e0307d249,0xb6d53549b45,0xb6d53549025,0x158e77f
code-creation,LazyCompile,10,120039,0x16e49094b60e,2668,emitKeys node:internal/readline/utils:87:19,0x167e03041ca0,~
code-source-info,0x16e49094b60e,124,2255,11353,C10O2255C15O2255C35O2255C41O2296C49O2296C69O2296C76O2315C79O2337C81O2360C87O2396C94O2476C96O2487C98O2483C103O2504C105O2526C109O2537C116O2537C136O2537C145O2535C149O2552C151O2563C153O2559C158O2582C162O2593C169O2593C189O2593C198O2591C202O2620C208O2639C215O2653C220O2712C223O2737C225O2747C227O2754C232O2830C236O2841C243O2841C263O2841C272O2839C276O2858C278O2865C285O2878C290O2898C292O2913C295O2919C299O2934C303O2945C310O2945C330O2945C339O2943C343O2972C345O2980C354O2997C356O3004C361O3143C365O3154C372O3154C392O3154C401O3152C405O3171C407O3178C412O3284C414O3292C421O3306C425O3317C432O3317C452O3317C461O3315C465O4357C469O4364C473O4420C475O4427C482O4440C487O4460C491O4471C498O4471C518O4471C527O4469C531O4490C533O4497C540O4510C545O4532C549O4543C556O4543C576O4543C585O4541C589O4607C591O4614C596O4635C600O4646C607O4646C627O4646C636O4644C640O4665C642O4672C649O4685C654O4707C658O4712C665O4712C685O4712C695O4880C700O4880C706O4927C708O4943C713O4977C718O4956C724O4954C726O5024C728O5037C734O5048C737O5041C747O5063C749O5080C756O5090C762O5110C767O5155C772O5134C778O5132C780O5212C782O5225C792O5240C794O5257C801O5267C807O5299C809O5307C816O5369C818O5392C823O5378C827O5404C829O5427C834O5413C838O5440C840O5464C845O5450C849O5476C851O5485C855O5530C1364O5620C1366O5629C1370O5637C1372O5663C1374O5672C1378O5680C1380O5706C1382O5715C1386O5723C1388O5749C1390O5758C1394O5766C1396O5851C1398O5860C1402O5868C1404O5894C1406O5903C1410O5911C1412O5937C1414O5946C1418O5954C1420O5980C1422O5989C1426O5997C1428O6066C1430O6075C1434O6083C1436O6111C1438O6120C1442O6128C1444O6156C1446O6165C1450O6173C1452O6201C1454O6210C1458O6218C1460O6290C1462O6299C1466O6307C1468O6334C1470O6343C1474O6351C1476O6378C1478O6387C1482O6395C1484O6422C1486O6431C1490O6439C1492O6466C1494O6475C1498O6483C1500O6533C1502O6542C1506O6550C1508O6578C1510O6587C1514O6595C1516O6623C1518O6632C1522O6640C1524O6668C1526O6677C1530O6685C1532O6713C1534O6722C1538O6730C1540O6758C1542O6767C1546O6776C1548O6804C1550O6813C1554O6822C1556O6850C1558O6859C1562O6868C1564O6928C1566O6937C1570O6945C1572O6971C1574O6980C1578O6990C1580O7016C1582O7025C1586O7036C1588O7062C1590O7071C1594O7081C1596O7107C1598O7116C1602O7127C1604O7153C1606O7162C1610O7171C1612O7197C1614O7206C1618O7216C1620O7282C1622O7291C1626O7299C1628O7325C1630O7334C1634O7344C1636O7370C1638O7379C1642O7390C1644O7416C1646O7425C1650O7435C1652O7461C1654O7470C1658O7481C1662O7507C1664O7516C1668O7525C1672O7551C1674O7560C1678O7570C1682O7638C1684O7647C1688O7657C1692O7684C1696O7693C1700O7705C1704O7732C1708O7741C1712O7753C1716O7780C1718O7789C1722O7798C1726O7825C1730O7834C1734O7846C1738O7873C1742O7882C1746O7896C1750O7945C1754O7954C1758O7966C1762O7994C1766O8003C1770O8017C1774O8064C1776O8073C1780O8083C1784O8110C1786O8119C1790O8128C1794O8194C1796O8203C1800O8211C1801O8221C1805O8229C1809O8255C1811O8264C1815O8274C1816O8284C1820O8292C1824O8318C1826O8327C1830O8338C1831O8348C1835O8356C1839O8382C1841O8391C1845O8401C1846O8411C1850O8419C1852O8445C1854O8454C1858O8465C1859O8475C1863O8483C1867O8511C1871O8520C1875O8532C1876O8542C1880O8550C1884O8577C1888O8586C1892O8598C1893O8608C1897O8616C1901O8643C1905O8652C1909O8664C1910O8674C1914O8682C1918O8709C1922O8718C1926O8732C1927O8742C1931O8750C1935O8777C1937O8786C1941O8796C1942O8806C1946O8814C1950O8841C1952O8850C1956O8859C1957O8869C1961O8877C1965O8904C1967O8913C1971O8921C1972O8930C1976O8938C1980O8964C1982O8973C1986O8983C1987O8992C1991O9000C1995O9026C1997O9035C2001O9046C2002O9055C2006O9063C2010O9089C2012O9098C2016O9108C2017O9117C2021O9125C2025O9151C2027O9160C2031O9171C2032O9180C2036O9188C2040O9216C2044O9225C2048O9237C2049O9246C2053O9254C2057O9281C2061O9290C2065O9302C2066O9311C2070O9319C2074O9346C2078O9355C2082O9367C2083O9376C2087O9384C2091O9411C2095O9420C2099O9434C2100O9443C2104O9451C2108O9478C2110O9487C2114O9497C2115O9506C2119O9514C2123O9541C2125O9550C2129O9559C2130O9568C2134O9576C2138O9623C2142O9632C2146O9641C2147O9651C2151O9659C2155O9683C2159O9692C2163O9707C2169O9733C2171O9740C2176O9783C2178O9792C2182O9810C2184O9819C2192O9841C2194O9848C2201O9915C2205O9924C2209O9941C2211O9950C2219O9972C2223O9979C2230O10010C2234O10019C2238O10034C2240O10043C2248O10065C2252O10072C2263O10087C2270O10136C2274O10145C2278O10166C2280O10175C2288O10197C2290O10208C2292O10204C2299O10245C2303O10254C2307O10272C2309O10281C2317O10303C2321O10310C2328O10327C2332O10336C2336O10353C2338O10362C2346O10384C2356O10403C2363O10443C2365O10454C2372O10482C2377O10482C2384O10514C2394O10514C2398O10512C2401O10545C2405O10454C2409O10452C2413O10564C2414O10573C2422O10592C2437O10596C2446O10684C2448O10695C2453O10695C2457O10693C2461O10733C2463O10745C2476O10745C2481O10743C2485O10787C2487O10796C2495O10818C2501O10886C2521O10881C2525O10923C2526O10932C2530O10951C2532O10964C2540O10980C2546O10987C2553O11001C2563O11023C2567O11088C2586O11105C2601O11088C2610O11147C2615O11151C2621O11176C2625O11170C2632O11246C2655O11246C2660O2268C2667O11352,,
code-creation,LazyCompile,10,120319,0x16e49094c5ce,57,onNewListener node:internal/readline/emitKeypressEvents:82:25,0x16e490948fc8,~
code-source-info,0x16e49094c5ce,125,2272,2415,C0O2286C2O2296C7O2320C14O2327C25O2327C31O2353C38O2360C49O2360C56O2414,,
code-creation,LazyCompile,10,120380,0x16e49094c73e,70,Socket.resume node:net:615:35,0xb6d53550aa8,~
code-source-info,0x16e49094c73e,115,16103,16279,C0O16110C2O16119C4O16118C9O16137C15O16156C21O16179C26O16187C32O16202C35O16202C39O16228C44O16242C49O16249C54O16259C59O16266C64O16266C69O16277,,
code-creation,LazyCompile,10,120429,0x16e49094c8be,53,Readable.resume node:internal/streams/readable:959:37,0x3787ca791098,~
code-source-info,0x16e49094c8be,51,30699,31016,C0O30725C5O30754C11O30769C19O30769C23O30926C28O30917C32O30949C35O30949C40O30976C42O30982C46O30991C50O31002C52O31014,,
code-creation,LazyCompile,10,120478,0x16e49094c9fe,35,resume node:internal/streams/readable:973:16,0x3787ca791120,~
code-source-info,0x16e49094c9fe,51,31034,31169,C0O31065C6O31088C7O31110C11O31122C14O31130C28O31130C34O31168,,
code-creation,LazyCompile,10,120536,0x16e49094cb16,50,emitInitScript node:internal/async_hooks:483:24,0x334c17f396d8,~
code-source-info,0x16e49094cb16,24,16153,16538,C0O16356C5O16370C8O16361C14O16382C15O16389C16O16393C20O16428C23O16445C28O16480C43O16480C49O16537,,
code-creation,LazyCompile,10,120591,0x16e49094ccc6,229,emitInitNative node:internal/async_hooks:194:24,0x334c17f38d10,~
code-source-info,0x16e49094ccc6,24,7465,8535,C0O7511C12O7535C16O7543C19O7554C31O7851C33O7856C35O7858C38O7871C43O7877C47O7856C52O7898C57O7922C64O7927C70O7931C72O7930C79O7970C84O7983C91O7988C97O7992C99O7991C115O8004C120O7886C125O7838C141O8111C149O8111C167O8144C179O8168C194O8432C199O8449C205O8460C212O8469C215O8482C221O8508C224O8508C228O8534,,
code-creation,LazyCompile,10,120636,0x16e49094cf0e,29,lookupPublicResource node:internal/async_hooks:179:30,0x334c17f38cc0,~
code-source-info,0x16e49094cf0e,24,6931,7251,C0O6946C10O7001C12O7017C13O7141C15O7150C17O7149C21O7170C23O7208C25O7230C26O7233C28O7249,,
code-creation,LazyCompile,10,120683,0x16e49094d0be,100,init node:domain:73:7,0x167e03049e28,~
code-source-info,0x16e49094d0be,127,2404,3048,C0O2452C3O2464C12O2491C18O2592C23O2600C31O2621C38O2628C40O2627C44O2600C50O2794C52O2803C59O2840C61O2829C66O2859C74O2880C82O2986C93O2859C99O3047,,
code-creation,LazyCompile,10,120704,0x16e49094d236,10,get node:domain:63:16,0x167e03049d18,~
code-source-info,0x16e49094d236,127,2242,2273,C0O2251C6O2265C9O2269,,
code-creation,LazyCompile,10,120747,0x16e49094d33e,41,Interface._setRawMode node:readline:395:43,0x2148b307dd38,~
code-source-info,0x16e49094d33e,122,10407,10573,C0O10444C5O10450C10O10476C15O10482C23O10520C28O10526C33O10526C38O10551C40O10571,,
code-creation,LazyCompile,10,120778,0x16e49094d496,70,ReadStream.setRawMode node:tty:74:43,0xb6d5354ce18,~
code-source-info,0x16e49094d496,114,2283,2491,C0O2294C6O2328C11O2336C16O2336C22O2356C24O2376C34O2390C37O2397C45O2397C52O2376C58O2437C60O2449C61O2456C63O2467C67O2477C69O2489,,
code-creation,LazyCompile,10,120921,0x16e49094d9f6,182,REPLServer.resetContext node:repl:1106:45,0xb6d5357b358,~
code-source-info,0x16e49094d9f6,120,34967,35924,C0O34967C9O34974C15O34994C20O34994C24O34987C28O35013C32O35037C36O35048C40O35075C44O35128C49O35139C53O35147C56O35152C63O35164C67O35173C77O35199C90O35248C98O35274C106O35173C111O35486C121O35512C134O35566C142O35597C150O35486C155O35889C158O35894C169O35913C174O35894C181O35923,,
code-creation,LazyCompile,10,121008,0x16e49094dfd6,287,REPLServer.createContext node:repl:1056:46,0xb6d5357b2c8,~
code-source-info,0x16e49094dfd6,120,33527,34920,C0O33527C12O33538C13O33538C15O33549C18O33558C24O33575C30O33583C34O33612C51O33612C56O33952C67O33974C74O34000C77O33974C87O33952C92O34284C97O34299C101O34331C111O34348C118O34331C124O34361C137O34382C144O34465C148O34361C153O34508C165O34508C171O34535C175O34554C178O34564C190O34594C193O34564C199O34552C203O34612C216O34633C223O34709C227O34612C232O34728C245O34749C254O34826C257O34826C265O34728C270O34867C280O34867C284O34903C286O34918,,
code-creation,LazyCompile,10,121055,0x16e49094e316,94,Module node:internal/modules/cjs/loader:172:16,0xce7fc6041f0,~
code-source-info,0x16e49094e316,95,5284,5521,C14O5306C16O5314C20O5322C22O5334C25O5339C30O5339C35O5332C39O5354C40O5367C44O5375C49O5393C54O5393C60O5414C71O5414C76O5453C77O5467C81O5477C82O5489C86O5500C88O5514C93O5520,,
code-creation,LazyCompile,10,121122,0x16e49094e55e,162,dirname node:path:1275:10,0x1eac91c23af0,~
code-source-info,0x16e49094e55e,35,38742,39411,C0O38755C8O38755C13O38798C19O38805C24O38818C26O38829C27O38850C34O38850C42O38889C44O38885C48O38923C51O38950C53O38978C57O38985C61O38992C63O38992C68O39011C73O39015C81O39054C83O39050C88O39084C92O39115C97O39134C101O39221C103O39000C108O38960C111O39262C113O39270C118O39284C128O39311C129O39316C135O39335C140O39348C142O39360C143O39365C156O39372C161O39407,,
code-creation,LazyCompile,10,121168,0x16e49094e746,45,updateChildren node:internal/modules/cjs/loader:165:24,0xce7fc6041a0,~
code-source-info,0x16e49094e746,95,5049,5222,C0O5092C7O5098C15O5112C19O5130C23O5138C26O5138C33O5184C38O5184C44O5221,,
code-creation,LazyCompile,10,121237,0x16e49094ea26,327,Module._resolveLookupPaths node:internal/modules/cjs/loader:667:38,0xce7fc604d60,~
code-source-info,0x16e49094ea26,95,19964,21141,C0O19986C5O20003C10O20003C17O20040C25O20040C30O20084C31O20096C32O20139C39O20143C47O20177C52O20203C59O20210C66O20223C72O20223C80O20257C87O20274C93O20274C101O20308C108O20327C114O20340C120O20340C128O20374C133O20405C138O20422C145O20432C152O20439C161O20457C166O20493C171O20465C177O20519C191O20519C196O20583C202O20590C212O20609C213O20656C217O20679C223O20693C229O20864C234O20876C248O20876C253O20931C255O20948C256O20956C264O21023C272O20956C277O21049C286O21050C289O21055C294O21070C299O21055C311O21084C319O21084C324O21122C326O21139,,
code-creation,LazyCompile,10,121280,0x16e49094ed06,28,canBeRequiredByUsers node:internal/bootstrap/loaders:240:30,0x334c17f0f628,~
code-source-info,0x16e49094ed06,9,7353,7449,C0O7376C5O7389C10O7393C15O7393C21O7406C23O7424C27O7445,,
code-creation,LazyCompile,10,121322,0x16e49094ee06,3, node:internal/per_context/primordials:276:21,0x334c17f09920,~
code-source-info,0x16e49094ee06,6,7920,7949,C0O7931C2O7943,,
code-creation,LazyCompile,10,121356,0x16e49094eeee,10, node:internal/modules/cjs/loader:272:66,0xce7fc604b60,~
code-source-info,0x16e49094eeee,95,7709,7734,C0O7721C2O7727C9O7733,,
code-creation,LazyCompile,10,121448,0x16e49094f2a6,159,makeRequireFunction node:internal/modules/cjs/helpers:50:29,0xce7fc60e638,~
code-source-info,0x16e49094f2a6,98,1571,3541,C0O1571C22O1607C25O1611C29O1607C31O1631C33O1642C53O1674C58O1678C69O1694C73O1674C75O1721C81O1721C83O1748C89O1757C95O1785C104O2945C109O3176C111O3192C115O3332C117O3346C121O3358C126O3381C130O3371C134O3446C137O3474C141O3465C145O3490C148O3513C152O3504C156O3524C158O3539,,
code-creation,LazyCompile,10,121516,0x16e49094fc7e,51,addBuiltinLibsToObject node:internal/modules/cjs/helpers:134:32,0xce7fc60e718,~
code-source-info,0x16e49094fc7e,98,3914,5395,C0O3914C9O4017C17O4017C22O4055C27O3998C32O4066C39O4088C44O4066C50O5394,,
code-creation,LazyCompile,10,121568,0x16e49094ff86,123, node:internal/modules/cjs/helpers:137:41,0x16e49094fba8,~
code-source-info,0x16e49094ff86,98,4104,5391,C0O4104C12O4253C25O4257C36O4305C45O4305C56O4351C67O4351C74O4404C75O4411C76O4719C80O4719C82O4896C97O4925C102O4944C112O5321C116O4896C122O5390,,
code-creation,LazyCompile,10,121791,0x16e4909516de,219,defineDefaultCommands node:repl:1680:31,0xb6d5357af98,~
code-source-info,0x16e4909516de,120,54057,56825,C0O54073C13O54166C21O54073C27O54261C29O54286C35O54303C40O54353C43O54422C58O54457C62O54483C70O54422C76O54697C89O54760C97O54697C103O54813C116O54886C124O54813C130O55536C143O55644C151O55536C157O55929C170O56020C178O55929C184O56570C190O56591C203O56656C211O56591C218O56824,,
code-creation,LazyCompile,10,121842,0x16e490951a66,55,REPLServer.defineCommand node:repl:1581:46,0xb6d5357b5e8,~
code-source-info,0x16e490951a66,120,50971,51146,C0O50990C6O51027C13O51043C24O51065C29O51086C37O51065C42O51120C49O51138C54O51145,,
code-creation,LazyCompile,10,122063,0x16e490952066,176,setupReverseSearch node:internal/repl/utils:513:28,0x167e03054120,~
code-source-info,0x16e490952066,128,16810,25073,C0O16810C74O16869C79O16881C84O16885C91O16890C96O16908C101O16917C111O16953C112O16984C119O16984C124O16984C126O17016C130O17016C132O17098C133O17098C135O17126C137O17126C139O17144C141O17144C143O17163C145O17163C147O17179C149O17179C151O17202C153O17202C155O17225C157O17225C159O17235C160O17235C162O25046C169O25055C175O25071,,
code-creation,LazyCompile,10,122301,0x16e4909542b6,297,setupPreview node:internal/repl/utils:142:22,0x167e03054068,~
code-source-info,0x16e4909542b6,128,4340,16781,C0O4340C83O4433C88O4445C93O4449C100O4454C107O4469C109O4483C114O4492C122O4510C132O4530C133O4557C134O4557C136O4588C138O4588C140O4626C141O4626C143O4655C144O4655C146O4685C147O4685C149O4709C150O4709C152O4733C153O4733C155O5207C160O12021C164O12021C166O15637C176O15664C184O15637C189O15637C191O15687C198O15705C202O15820C203O15820C205O16001C215O16028C223O16001C228O16001C230O16050C237O16067C241O16564C251O16591C259O16564C264O16564C266O16611C273O16626C277O16742C284O16751C290O16764C296O16779,,
code-creation,LazyCompile,10,122387,0x16e490954ac6,141,REPLServer.displayPrompt node:repl:1143:46,0xb6d5357b3e8,~
code-source-info,0x16e490954ac6,120,35972,36396,C0O36011C5O36029C7O36038C9O36037C13O36062C19O36076C22O36113C27O36119C32O36125C38O36139C43O36145C48O36151C52O36158C59O36188C67O36188C73O36226C75O36245C85O36303C92O36316C95O36326C100O36336C114O36354C124O36303C129O36371C134O36371C140O36395,,
code-creation,LazyCompile,10,122431,0x16e490954cce,78,Interface.prompt node:readline:410:38,0x2148b307ddc8,~
code-source-info,0x16e490954cce,122,10738,10967,C0O10768C6O10781C11O10781C15O10802C24O10822C29O10826C36O10831C41O10849C45O10870C46O10882C50O10896C55O10896C61O10932C66O10952C71O10932C77O10966,,
code-creation,LazyCompile,10,122464,0x16e490954e3e,28,repl._refreshLine node:internal/repl/utils:480:23,0x16e490953f78,~
code-source-info,0x16e490954e3e,128,15707,15785,C0O15719C4O15732C10O15744C15O15744C18O15767C23O15767C27O15784,,
code-creation,LazyCompile,10,122515,0x16e490954fb6,206,Interface._refreshLine node:readline:535:44,0x2148b307e118,~
code-source-info,0x16e490954fb6,122,14113,15040,C0O14155C5O14170C9O14163C13O14199C18O14199C24O14248C29O14281C34O14334C39O14334C44O14446C52O14463C53O14476C58O14487C63O14503C72O14514C75O14487C80O14559C85O14573C92O14559C97O14603C102O14624C107O14603C111O14695C116O14695C121O14763C122O14776C127O14794C135O14794C140O14861C145O14875C150O14893C155O14861C160O14937C164O14925C168O14945C169O14954C174O14965C179O14981C188O14992C191O14965C196O15033C200O15021C205O15039,,
code-creation,LazyCompile,10,122588,0x16e4909552b6,331,Interface._getDisplayPos node:readline:915:46,0x2148b307ec30,~
code-source-info,0x16e4909552b6,122,25409,26227,C0O25432C2O25454C7O25476C9O25481C14O25487C20O25539C27O25539C57O25531C85O25531C88O25574C90O25583C95O25679C97O25687C103O25703C108O25687C123O25722C125O25740C127O25818C129O25827C134O25860C140O25885C144O25878C147O25868C157O25901C159O25935C164O25935C169O25961C170O25971C177O25986C182O26001C184O26011C193O26052C195O26064C201O26069C206O26075C211O26092C216O26116C222O25520C287O26154C289O26161C293O26170C295O26186C301O26194C311O26203C318O26212C324O26218C330O26225,,
code-creation,LazyCompile,10,122619,0x16e490955586,31,get node:readline:370:16,0x2148b307db90,~
code-source-info,0x16e490955586,122,9922,10029,C0O9940C6O9955C11O9962C17O9989C22O9996C26O10004C27O10009C30O10025,,
code-creation,LazyCompile,10,122642,0x16e4909556a6,20,stripVTControlCharacters node:internal/util/inspect:2115:34,0x38b4b3b16010,~
code-source-info,0x16e4909556a6,14,71790,71831,C0O71811C7O71819C13O71811C19O71829,,
code-creation,LazyCompile,10,122824,0x16e490955a86,137,getStringWidth node:internal/util/inspect:2018:43,0x38b4b3b15f70,~
code-source-info,0x16e490955a86,14,68177,68705,C13O68228C15O68236C19O68266C24O68272C29O68320C31O68331C35O68325C40O68512C45O68512C51O68533C53O68542C58O68560C60O68569C63O68573C68O68592C73O68592C79O68600C87O68601C93O68573C105O68628C107O68649C109O68663C126O68340C131O68307C134O68688C136O68701,,
tick,0x156a600,122910,0,0x0,0,0x16e490941523,0x167e0307ed1d,0x167e0307d40d,0x167e0307d249,0xb6d53549b45,0xb6d53549025,0x158e77f
tick,0x165c960,122924,0,0x0,0,0xce7fc60fdf6,0x167e0307edf2,0x167e0307d40d,0x167e0307d249,0xb6d53549b45,0xb6d53549025,0x158e77f
code-creation,RegExp,3,122930,0x7f4ddc043440,2800,[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)|(?:(?:\\d{1\x2C4}(?:;\\d{0\x2C4})*)?[\\dA-PR-TZcf-ntqry=><~]))
code-creation,LazyCompile,10,123037,0x16e490955ede,42,Interface.getCursorPos node:readline:955:44,0x2148b307ecc0,~
code-source-info,0x16e490955ede,122,26430,26599,C0O26466C7O26502C10O26528C17O26542C22O26502C27O26474C31O26565C36O26565C41O26597,,
code-creation,LazyCompile,10,123125,0x16e4909560fe,210,cursorTo node:internal/readline/callbacks:33:18,0xb6d5357ffb8,~
code-source-info,0x16e4909560fe,123,477,1134,C0O506C4O540C9O540C13O575C19O610C22O628C25O650C30O654C36O670C49O676C54O670C55O713C60O717C66O733C79O739C84O733C85O777C102O855C108O891C111O899C118O899C124O929C125O941C126O949C132O976C137O982C142O976C143O1028C151O1052C154O1055C160O1060C164O1055C173O1069C176O1072C182O1077C188O1086C192O1072C198O1110C203O1110C209O1132,,
code-creation,LazyCompile,10,123370,0x16e4909567c6,62,clearScreenDown node:internal/readline/callbacks:114:25,0x2148b307fdb0,~
code-source-info,0x16e4909567c6,123,2337,2624,C0O2360C4O2394C9O2394C13O2429C21O2480C27O2516C30O2524C37O2524C43O2554C44O2566C45O2588C52O2594C55O2588C61O2622,,
tick,0x10a86c0,123458,0,0x0,0,0xf47690,0x16e490955aa5,0x16e49095535a,0x16e490954fc8,0x16e490954e4d,0x16e490954d05,0x16e490954b4c,0x167e0307eea9,0x167e0307d40d,0x167e0307d249,0xb6d53549b45,0xb6d53549025,0x158e77f
code-creation,LazyCompile,10,123525,0x16e490956926,42,_writeToOutput node:readline:491:61,0x2148b307e038,~
code-source-info,0x16e490956926,122,12741,12912,C0O12761C8O12761C13O12821C19O12845C25O12878C30O12885C35O12885C41O12911,,
code-creation,LazyCompile,10,123760,0x16e490956aee,220,showPreview node:internal/repl/utils:367:23,0x16e490953f28,~
code-source-info,0x16e490956aee,128,12021,15063,C0O12021C8O12085C21O12120C27O12149C28O12156C29O12181C41O12206C46O12181C50O12181C52O12283C57O12292C62O12308C63O12315C64O12327C70O12342C78O12417C80O12428C90O12455C95O12428C100O12532C109O12540C114O12564C115O12571C116O12612C121O14743C124O14754C137O14796C146O14828C154O14845C158O14836C163O14859C167O14874C176O14904C181O14904C186O14960C194O14981C199O14981C204O15043C210O15051C219O15062,,
code-creation,LazyCompile,10,123810,0x16e490956d46,21,setupHistory node:repl:1034:58,0xb6d5357b1d8,~
code-source-info,0x16e490956d46,120,32954,33009,C0O32976C14O32976C20O33008,,
code-creation,LazyCompile,10,123894,0x16e49095736e,318,setupHistory node:internal/repl/history:33:22,0x167e030567b0,~
code-source-info,0x16e49095736e,129,766,3807,C0O766C73O843C79O884C89O898C93O896C95O935C100O951C105O965C112O983C116O1010C124O1017C129O1035C130O1043C137O1079C144O1098C153O1103C156O1106C161O1106C169O1098C175O1091C190O1166C205O1234C209O1166C214O1301C224O1311C229O1301C233O1325C242O1343C246O1372C258O1379C263O1397C264O1423C265O1423C267O1445C268O1445C270O1468C271O1468C273O1477C276O1482C281O1482C285O1649C292O1652C311O1652C317O3806,,
code-creation,LazyCompile,10,123939,0x16e490957ca6,53,checkError node:os:64:45,0x167e0305af38,~
code-source-info,0x16e490957ca6,130,2086,2245,C0O2086C3O2114C5O2134C12O2140C21O2146C28O2134C33O2156C35O2187C44O2193C49O2187C50O2230C52O2241,,
code-creation,LazyCompile,10,123995,0x16e490957e1e,118,join node:path:1166:7,0x1eac91c23a00,~
code-source-info,0x16e490957e1e,35,35667,36077,C0O35667C3O35692C9O35699C14O35712C16O35723C17O35732C19O35757C21O35769C25O35762C30O35802C32O35806C36O35817C44O35817C49O35860C55O35867C60O35882C64O35918C71O35955C76O35969C87O35779C92O35744C95O35994C99O36026C101O36037C102O36042C107O36055C112O36055C117O36073,,
tick,0x1142fd4,124058,0,0x0,2,0x11e9ce0,0x16e490957e8e,0x16e490957417,0x16e490956d54,0x167e0307d281,0xb6d53549b45,0xb6d53549025,0x158e77f
code-creation,LazyCompile,10,124087,0x16e490958036,159,normalize node:path:1127:12,0x1eac91c23960,~
code-source-info,0x16e490958036,35,34767,35371,C0O34780C8O34780C13O34824C19O34831C24O34844C26O34855C27O34886C34O34886C42O34925C44O34921C48O34981C53O35018C57O35025C61O34981C69O35034C71O35030C75O35085C80O35115C91O35092C98O35169C104O35176C109O35191C113O35215C115O35226C116O35233C126O35271C127O35282C131O35311C141O35329C150O35353C158O35367,,
code-creation,LazyCompile,10,124134,0x16e490958226,43,Interface.pause node:readline:593:37,0x2148b307e230,~
code-source-info,0x16e490958226,122,15408,15522,C0O15424C6O15432C7O15439C8O15447C13O15453C18O15453C22O15464C23O15476C27O15491C35O15491C40O15508C42O15520,,
code-creation,LazyCompile,10,124173,0x16e4909583c6,120,Socket.pause node:net:601:34,0xb6d53550a20,~
code-source-info,0x16e4909583c6,115,15739,16065,C0O15746C2O15755C4O15754C9O15773C15O15792C21O15814C26O15822C32O15842C38O15858C42O15881C48O15917C53O15925C58O15925C63O15943C65O15965C72O15973C78O15973C84O15965C89O16015C94O16029C99O16036C104O16046C109O16052C114O16052C119O16063,,
code-creation,LazyCompile,10,124207,0x16e4909585c6,92,Readable.pause node:internal/streams/readable:993:36,0x3787ca7911c0,~
code-source-info,0x16e4909585c6,51,31459,31718,C0O31466C8O31502C13O31517C18O31466C23O31538C28O31553C34O31561C39O31578C47O31578C51O31603C57O31626C61O31644C69O31644C74O31670C81O31685C85O31694C89O31704C91O31716,,
code-creation,LazyCompile,10,124235,0x16e49095876e,20, node:internal/bootstrap/switches/is_main_thread:213:21,0x16e490944490,~
code-source-info,0x16e49095876e,87,5946,5988,C0O5958C5O5966C13O5966C19O5987,,
code-creation,LazyCompile,10,124466,0x16e49095890e,158,open node:fs:542:14,0xe5ca5cd6280,~
script-source,76,node:fs,// Copyright Joyent\x2C Inc. and other Node contributors.\n//\n// Permission is hereby granted\x2C free of charge\x2C to any person obtaining a\n// copy of this software and associated documentation files (the\n// "Software")\x2C to deal in the Software without restriction\x2C including\n// without limitation the rights to use\x2C copy\x2C modify\x2C merge\x2C publish\x2C\n// distribute\x2C sublicense\x2C and/or sell copies of the Software\x2C and to permit\n// persons to whom the Software is furnished to do so\x2C subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED "AS IS"\x2C WITHOUT WARRANTY OF ANY KIND\x2C EXPRESS\n// OR IMPLIED\x2C INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY\x2C FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM\x2C\n// DAMAGES OR OTHER LIABILITY\x2C WHETHER IN AN ACTION OF CONTRACT\x2C TORT OR\n// OTHERWISE\x2C ARISING FROM\x2C OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n// Maintainers\x2C keep in mind that ES1-style octal literals (`0666`) are not\n// allowed in strict mode. Use ES6-style octal literals instead (`0o666`).\n\n'use strict';\n\n// When using FSReqCallback\x2C make sure to create the object only *after* all\n// parameter validation has happened\x2C so that the objects are not kept in memory\n// in case they are created but never used due to an exception.\n\nconst {\n ArrayPrototypePush\x2C\n BigIntPrototypeToString\x2C\n MathMax\x2C\n Number\x2C\n ObjectCreate\x2C\n ObjectDefineProperties\x2C\n ObjectDefineProperty\x2C\n Promise\x2C\n ReflectApply\x2C\n RegExpPrototypeExec\x2C\n SafeMap\x2C\n String\x2C\n StringPrototypeCharCodeAt\x2C\n StringPrototypeIndexOf\x2C\n StringPrototypeSlice\x2C\n} = primordials;\n\nconst { fs: constants } = internalBinding('constants');\nconst {\n S_IFIFO\x2C\n S_IFLNK\x2C\n S_IFMT\x2C\n S_IFREG\x2C\n S_IFSOCK\x2C\n F_OK\x2C\n R_OK\x2C\n W_OK\x2C\n X_OK\x2C\n O_WRONLY\x2C\n O_SYMLINK\n} = constants;\n\nconst pathModule = require('path');\nconst { isArrayBufferView } = require('internal/util/types');\n\n// We need to get the statValues from the binding at the callsite since\n// it's re-initialized after deserialization.\n\nconst binding = internalBinding('fs');\nconst { Buffer } = require('buffer');\nconst {\n aggregateTwoErrors\x2C\n codes: {\n ERR_FS_FILE_TOO_LARGE\x2C\n ERR_INVALID_ARG_VALUE\x2C\n ERR_FEATURE_UNAVAILABLE_ON_PLATFORM\x2C\n }\x2C\n AbortError\x2C\n uvErrmapGet\x2C\n uvException\n} = require('internal/errors');\n\nconst { FSReqCallback } = binding;\nconst { toPathIfFileURL } = require('internal/url');\nconst internalUtil = require('internal/util');\nconst {\n constants: {\n kIoMaxLength\x2C\n kMaxUserId\x2C\n }\x2C\n copyObject\x2C\n Dirent\x2C\n emitRecursiveRmdirWarning\x2C\n getDirents\x2C\n getOptions\x2C\n getValidatedFd\x2C\n getValidatedPath\x2C\n getValidMode\x2C\n handleErrorFromBinding\x2C\n nullCheck\x2C\n preprocessSymlinkDestination\x2C\n Stats\x2C\n getStatsFromBinding\x2C\n realpathCacheKey\x2C\n stringToFlags\x2C\n stringToSymlinkType\x2C\n toUnixTimestamp\x2C\n validateBufferArray\x2C\n validateOffsetLengthRead\x2C\n validateOffsetLengthWrite\x2C\n validatePath\x2C\n validatePosition\x2C\n validateRmOptions\x2C\n validateRmOptionsSync\x2C\n validateRmdirOptions\x2C\n validateStringAfterArrayBufferView\x2C\n warnOnNonPortableTemplate\n} = require('internal/fs/utils');\nconst {\n Dir\x2C\n opendir\x2C\n opendirSync\n} = require('internal/fs/dir');\nconst {\n CHAR_FORWARD_SLASH\x2C\n CHAR_BACKWARD_SLASH\x2C\n} = require('internal/constants');\nconst {\n isUint32\x2C\n parseFileMode\x2C\n validateBoolean\x2C\n validateBuffer\x2C\n validateCallback\x2C\n validateEncoding\x2C\n validateFunction\x2C\n validateInteger\x2C\n validateString\x2C\n} = require('internal/validators');\n\nconst watchers = require('internal/fs/watchers');\nconst ReadFileContext = require('internal/fs/read_file_context');\n\nlet truncateWarn = true;\nlet fs;\n\n// Lazy loaded\nlet promises = null;\nlet ReadStream;\nlet WriteStream;\nlet rimraf;\nlet rimrafSync;\n\n// These have to be separate because of how graceful-fs happens to do it's\n// monkeypatching.\nlet FileReadStream;\nlet FileWriteStream;\n\nconst isWindows = process.platform === 'win32';\nconst isOSX = process.platform === 'darwin';\n\n\nfunction showTruncateDeprecation() {\n if (truncateWarn) {\n process.emitWarning(\n 'Using fs.truncate with a file descriptor is deprecated. Please use ' +\n 'fs.ftruncate with a file descriptor instead.'\x2C\n 'DeprecationWarning'\x2C 'DEP0081');\n truncateWarn = false;\n }\n}\n\nfunction maybeCallback(cb) {\n validateCallback(cb);\n\n return cb;\n}\n\n// Ensure that callbacks run in the global context. Only use this function\n// for callbacks that are passed to the binding layer\x2C callbacks that are\n// invoked from JS already run in the proper scope.\nfunction makeCallback(cb) {\n validateCallback(cb);\n\n return (...args) => ReflectApply(cb\x2C this\x2C args);\n}\n\n// Special case of `makeCallback()` that is specific to async `*stat()` calls as\n// an optimization\x2C since the data passed back to the callback needs to be\n// transformed anyway.\nfunction makeStatsCallback(cb) {\n validateCallback(cb);\n\n return (err\x2C stats) => {\n if (err) return cb(err);\n cb(err\x2C getStatsFromBinding(stats));\n };\n}\n\nconst isFd = isUint32;\n\nfunction isFileType(stats\x2C fileType) {\n // Use stats array directly to avoid creating an fs.Stats instance just for\n // our internal use.\n let mode = stats[1];\n if (typeof mode === 'bigint')\n mode = Number(mode);\n return (mode & S_IFMT) === fileType;\n}\n\n/**\n * Tests a user's permissions for the file or directory\n * specified by `path`.\n * @param {string | Buffer | URL} path\n * @param {number} [mode]\n * @param {(err?: Error) => any} callback\n * @returns {void}\n */\nfunction access(path\x2C mode\x2C callback) {\n if (typeof mode === 'function') {\n callback = mode;\n mode = F_OK;\n }\n\n path = getValidatedPath(path);\n mode = getValidMode(mode\x2C 'access');\n callback = makeCallback(callback);\n\n const req = new FSReqCallback();\n req.oncomplete = callback;\n binding.access(pathModule.toNamespacedPath(path)\x2C mode\x2C req);\n}\n\n/**\n * Synchronously tests a user's permissions for the file or\n * directory specified by `path`.\n * @param {string | Buffer | URL} path\n * @param {number} [mode]\n * @returns {void | never}\n */\nfunction accessSync(path\x2C mode) {\n path = getValidatedPath(path);\n mode = getValidMode(mode\x2C 'access');\n\n const ctx = { path };\n binding.access(pathModule.toNamespacedPath(path)\x2C mode\x2C undefined\x2C ctx);\n handleErrorFromBinding(ctx);\n}\n\n/**\n * Tests whether or not the given path exists.\n * @param {string | Buffer | URL} path\n * @param {(exists?: boolean) => any} callback\n * @returns {void}\n */\nfunction exists(path\x2C callback) {\n maybeCallback(callback);\n\n function suppressedCallback(err) {\n callback(err ? false : true);\n }\n\n try {\n fs.access(path\x2C F_OK\x2C suppressedCallback);\n } catch {\n return callback(false);\n }\n}\n\nObjectDefineProperty(exists\x2C internalUtil.promisify.custom\x2C {\n value: (path) => {\n return new Promise((resolve) => fs.exists(path\x2C resolve));\n }\n});\n\n// fs.existsSync never throws\x2C it only returns true or false.\n// Since fs.existsSync never throws\x2C users have established\n// the expectation that passing invalid arguments to it\x2C even like\n// fs.existsSync()\x2C would only get a false in return\x2C so we cannot signal\n// validation errors to users properly out of compatibility concerns.\n// TODO(joyeecheung): deprecate the never-throw-on-invalid-arguments behavior\n/**\n * Synchronously tests whether or not the given path exists.\n * @param {string | Buffer | URL} path\n * @returns {boolean}\n */\nfunction existsSync(path) {\n try {\n path = getValidatedPath(path);\n } catch {\n return false;\n }\n const ctx = { path };\n const nPath = pathModule.toNamespacedPath(path);\n binding.access(nPath\x2C F_OK\x2C undefined\x2C ctx);\n\n // In case of an invalid symlink\x2C `binding.access()` on win32\n // will **not** return an error and is therefore not enough.\n // Double check with `binding.stat()`.\n if (isWindows && ctx.errno === undefined) {\n binding.stat(nPath\x2C false\x2C undefined\x2C ctx);\n }\n\n return ctx.errno === undefined;\n}\n\nfunction readFileAfterOpen(err\x2C fd) {\n const context = this.context;\n\n if (err) {\n context.callback(err);\n return;\n }\n\n context.fd = fd;\n\n const req = new FSReqCallback();\n req.oncomplete = readFileAfterStat;\n req.context = context;\n binding.fstat(fd\x2C false\x2C req);\n}\n\nfunction readFileAfterStat(err\x2C stats) {\n const context = this.context;\n\n if (err)\n return context.close(err);\n\n const size = context.size = isFileType(stats\x2C S_IFREG) ? stats[8] : 0;\n\n if (size > kIoMaxLength) {\n err = new ERR_FS_FILE_TOO_LARGE(size);\n return context.close(err);\n }\n\n try {\n if (size === 0) {\n context.buffers = [];\n } else {\n context.buffer = Buffer.allocUnsafeSlow(size);\n }\n } catch (err) {\n return context.close(err);\n }\n context.read();\n}\n\nfunction checkAborted(signal\x2C callback) {\n if (signal?.aborted) {\n callback(new AbortError());\n return true;\n }\n return false;\n}\n\n/**\n * Asynchronously reads the entire contents of a file.\n * @param {string | Buffer | URL | number} path\n * @param {{\n * encoding?: string | null;\n * flag?: string;\n * signal?: AbortSignal;\n * } | string} [options]\n * @param {(\n * err?: Error\x2C\n * data?: string | Buffer\n * ) => any} callback\n * @returns {void}\n */\nfunction readFile(path\x2C options\x2C callback) {\n callback = maybeCallback(callback || options);\n options = getOptions(options\x2C { flag: 'r' });\n const context = new ReadFileContext(callback\x2C options.encoding);\n context.isUserFd = isFd(path); // File descriptor ownership\n\n if (options.signal) {\n context.signal = options.signal;\n }\n if (context.isUserFd) {\n process.nextTick(function tick(context) {\n ReflectApply(readFileAfterOpen\x2C { context }\x2C [null\x2C path]);\n }\x2C context);\n return;\n }\n\n if (checkAborted(options.signal\x2C callback))\n return;\n\n const flagsNumber = stringToFlags(options.flag\x2C 'options.flag');\n path = getValidatedPath(path);\n\n const req = new FSReqCallback();\n req.context = context;\n req.oncomplete = readFileAfterOpen;\n binding.open(pathModule.toNamespacedPath(path)\x2C\n flagsNumber\x2C\n 0o666\x2C\n req);\n}\n\nfunction tryStatSync(fd\x2C isUserFd) {\n const ctx = {};\n const stats = binding.fstat(fd\x2C false\x2C undefined\x2C ctx);\n if (ctx.errno !== undefined && !isUserFd) {\n fs.closeSync(fd);\n throw uvException(ctx);\n }\n return stats;\n}\n\nfunction tryCreateBuffer(size\x2C fd\x2C isUserFd) {\n let threw = true;\n let buffer;\n try {\n if (size > kIoMaxLength) {\n throw new ERR_FS_FILE_TOO_LARGE(size);\n }\n buffer = Buffer.allocUnsafe(size);\n threw = false;\n } finally {\n if (threw && !isUserFd) fs.closeSync(fd);\n }\n return buffer;\n}\n\nfunction tryReadSync(fd\x2C isUserFd\x2C buffer\x2C pos\x2C len) {\n let threw = true;\n let bytesRead;\n try {\n bytesRead = fs.readSync(fd\x2C buffer\x2C pos\x2C len);\n threw = false;\n } finally {\n if (threw && !isUserFd) fs.closeSync(fd);\n }\n return bytesRead;\n}\n\n/**\n * Synchronously reads the entire contents of a file.\n * @param {string | Buffer | URL | number} path\n * @param {{\n * encoding?: string | null;\n * flag?: string;\n * }} [options]\n * @returns {string | Buffer}\n */\nfunction readFileSync(path\x2C options) {\n options = getOptions(options\x2C { flag: 'r' });\n const isUserFd = isFd(path); // File descriptor ownership\n const fd = isUserFd ? path : fs.openSync(path\x2C options.flag\x2C 0o666);\n\n const stats = tryStatSync(fd\x2C isUserFd);\n const size = isFileType(stats\x2C S_IFREG) ? stats[8] : 0;\n let pos = 0;\n let buffer; // Single buffer with file data\n let buffers; // List for when size is unknown\n\n if (size === 0) {\n buffers = [];\n } else {\n buffer = tryCreateBuffer(size\x2C fd\x2C isUserFd);\n }\n\n let bytesRead;\n\n if (size !== 0) {\n do {\n bytesRead = tryReadSync(fd\x2C isUserFd\x2C buffer\x2C pos\x2C size - pos);\n pos += bytesRead;\n } while (bytesRead !== 0 && pos < size);\n } else {\n do {\n // The kernel lies about many files.\n // Go ahead and try to read some bytes.\n buffer = Buffer.allocUnsafe(8192);\n bytesRead = tryReadSync(fd\x2C isUserFd\x2C buffer\x2C 0\x2C 8192);\n if (bytesRead !== 0) {\n ArrayPrototypePush(buffers\x2C buffer.slice(0\x2C bytesRead));\n }\n pos += bytesRead;\n } while (bytesRead !== 0);\n }\n\n if (!isUserFd)\n fs.closeSync(fd);\n\n if (size === 0) {\n // Data was collected into the buffers list.\n buffer = Buffer.concat(buffers\x2C pos);\n } else if (pos < size) {\n buffer = buffer.slice(0\x2C pos);\n }\n\n if (options.encoding) buffer = buffer.toString(options.encoding);\n return buffer;\n}\n\nfunction defaultCloseCallback(err) {\n if (err != null) throw err;\n}\n\n/**\n * Closes the file descriptor.\n * @param {number} fd\n * @param {(err?: Error) => any} [callback]\n * @returns {void}\n */\nfunction close(fd\x2C callback = defaultCloseCallback) {\n fd = getValidatedFd(fd);\n if (callback !== defaultCloseCallback)\n callback = makeCallback(callback);\n\n const req = new FSReqCallback();\n req.oncomplete = callback;\n binding.close(fd\x2C req);\n}\n\n/**\n * Synchronously closes the file descriptor.\n * @param {number} fd\n * @returns {void}\n */\nfunction closeSync(fd) {\n fd = getValidatedFd(fd);\n\n const ctx = {};\n binding.close(fd\x2C undefined\x2C ctx);\n handleErrorFromBinding(ctx);\n}\n\n/**\n * Asynchronously opens a file.\n * @param {string | Buffer | URL} path\n * @param {string | number} [flags]\n * @param {string | number} [mode]\n * @param {(\n * err?: Error\x2C\n * fd?: number\n * ) => any} callback\n * @returns {void}\n */\nfunction open(path\x2C flags\x2C mode\x2C callback) {\n path = getValidatedPath(path);\n if (arguments.length < 3) {\n callback = flags;\n flags = 'r';\n mode = 0o666;\n } else if (typeof mode === 'function') {\n callback = mode;\n mode = 0o666;\n } else {\n mode = parseFileMode(mode\x2C 'mode'\x2C 0o666);\n }\n const flagsNumber = stringToFlags(flags);\n callback = makeCallback(callback);\n\n const req = new FSReqCallback();\n req.oncomplete = callback;\n\n binding.open(pathModule.toNamespacedPath(path)\x2C\n flagsNumber\x2C\n mode\x2C\n req);\n}\n\n/**\n * Synchronously opens a file.\n * @param {string | Buffer | URL} path\n * @param {string | number} [flags]\n * @param {string | number} [mode]\n * @returns {number}\n */\nfunction openSync(path\x2C flags\x2C mode) {\n path = getValidatedPath(path);\n const flagsNumber = stringToFlags(flags);\n mode = parseFileMode(mode\x2C 'mode'\x2C 0o666);\n\n const ctx = { path };\n const result = binding.open(pathModule.toNamespacedPath(path)\x2C\n flagsNumber\x2C mode\x2C\n undefined\x2C ctx);\n handleErrorFromBinding(ctx);\n return result;\n}\n\n/**\n * Reads file from the specified `fd` (file descriptor).\n * @param {number} fd\n * @param {Buffer | TypedArray | DataView} buffer\n * @param {number} offset\n * @param {number} length\n * @param {number | bigint} position\n * @param {(\n * err?: Error\x2C\n * bytesRead?: number\x2C\n * buffer?: Buffer\n * ) => any} callback\n * @returns {void}\n */\nfunction read(fd\x2C buffer\x2C offset\x2C length\x2C position\x2C callback) {\n fd = getValidatedFd(fd);\n\n if (arguments.length <= 3) {\n // Assume fs.read(fd\x2C options\x2C callback)\n let options = {};\n if (arguments.length < 3) {\n // This is fs.read(fd\x2C callback)\n // buffer will be the callback\n callback = buffer;\n } else {\n // This is fs.read(fd\x2C {}\x2C callback)\n // buffer will be the options object\n // offset is the callback\n options = buffer;\n callback = offset;\n }\n\n ({\n buffer = Buffer.alloc(16384)\x2C\n offset = 0\x2C\n length = buffer.byteLength\x2C\n position\n } = options);\n }\n\n validateBuffer(buffer);\n callback = maybeCallback(callback);\n\n if (offset == null) {\n offset = 0;\n } else {\n validateInteger(offset\x2C 'offset'\x2C 0);\n }\n\n length |= 0;\n\n if (length === 0) {\n return process.nextTick(function tick() {\n callback(null\x2C 0\x2C buffer);\n });\n }\n\n if (buffer.byteLength === 0) {\n throw new ERR_INVALID_ARG_VALUE('buffer'\x2C buffer\x2C\n 'is empty and cannot be written');\n }\n\n validateOffsetLengthRead(offset\x2C length\x2C buffer.byteLength);\n\n if (position == null)\n position = -1;\n\n validatePosition(position\x2C 'position');\n\n function wrapper(err\x2C bytesRead) {\n // Retain a reference to buffer so that it can't be GC'ed too soon.\n callback(err\x2C bytesRead || 0\x2C buffer);\n }\n\n const req = new FSReqCallback();\n req.oncomplete = wrapper;\n\n binding.read(fd\x2C buffer\x2C offset\x2C length\x2C position\x2C req);\n}\n\nObjectDefineProperty(read\x2C internalUtil.customPromisifyArgs\x2C\n { value: ['bytesRead'\x2C 'buffer']\x2C enumerable: false });\n\n/**\n * Synchronously reads the file from the\n * specified `fd` (file descriptor).\n * @param {number} fd\n * @param {Buffer | TypedArray | DataView} buffer\n * @param {{\n * offset?: number;\n * length?: number;\n * position?: number | bigint;\n * }} [offset]\n * @returns {number}\n */\nfunction readSync(fd\x2C buffer\x2C offset\x2C length\x2C position) {\n fd = getValidatedFd(fd);\n\n validateBuffer(buffer);\n\n if (arguments.length <= 3) {\n // Assume fs.read(fd\x2C buffer\x2C options)\n const options = offset || {};\n\n ({ offset = 0\x2C length = buffer.byteLength\x2C position } = options);\n }\n\n if (offset == null) {\n offset = 0;\n } else {\n validateInteger(offset\x2C 'offset'\x2C 0);\n }\n\n length |= 0;\n\n if (length === 0) {\n return 0;\n }\n\n if (buffer.byteLength === 0) {\n throw new ERR_INVALID_ARG_VALUE('buffer'\x2C buffer\x2C\n 'is empty and cannot be written');\n }\n\n validateOffsetLengthRead(offset\x2C length\x2C buffer.byteLength);\n\n if (position == null)\n position = -1;\n\n validatePosition(position\x2C 'position');\n\n const ctx = {};\n const result = binding.read(fd\x2C buffer\x2C offset\x2C length\x2C position\x2C\n undefined\x2C ctx);\n handleErrorFromBinding(ctx);\n return result;\n}\n\n/**\n * Reads file from the specified `fd` (file descriptor)\n * and writes to an array of `ArrayBufferView`s.\n * @param {number} fd\n * @param {ArrayBufferView[]} buffers\n * @param {number} [position]\n * @param {(\n * err?: Error\x2C\n * bytesRead?: number\x2C\n * buffers?: ArrayBufferView[];\n * ) => any} callback\n * @returns {void}\n */\nfunction readv(fd\x2C buffers\x2C position\x2C callback) {\n function wrapper(err\x2C read) {\n callback(err\x2C read || 0\x2C buffers);\n }\n\n fd = getValidatedFd(fd);\n validateBufferArray(buffers);\n callback = maybeCallback(callback || position);\n\n const req = new FSReqCallback();\n req.oncomplete = wrapper;\n\n if (typeof position !== 'number')\n position = null;\n\n return binding.readBuffers(fd\x2C buffers\x2C position\x2C req);\n}\n\nObjectDefineProperty(readv\x2C internalUtil.customPromisifyArgs\x2C\n { value: ['bytesRead'\x2C 'buffers']\x2C enumerable: false });\n\n/**\n * Synchronously reads file from the\n * specified `fd` (file descriptor) and writes to an array\n * of `ArrayBufferView`s.\n * @param {number} fd\n * @param {ArrayBufferView[]} buffers\n * @param {number} [position]\n * @returns {number}\n */\nfunction readvSync(fd\x2C buffers\x2C position) {\n fd = getValidatedFd(fd);\n validateBufferArray(buffers);\n\n const ctx = {};\n\n if (typeof position !== 'number')\n position = null;\n\n const result = binding.readBuffers(fd\x2C buffers\x2C position\x2C undefined\x2C ctx);\n handleErrorFromBinding(ctx);\n return result;\n}\n\n/**\n * Writes `buffer` to the specified `fd` (file descriptor).\n * @param {number} fd\n * @param {Buffer | TypedArray | DataView | string | Object} buffer\n * @param {number} [offset]\n * @param {number} [length]\n * @param {number} [position]\n * @param {(\n * err?: Error\x2C\n * bytesWritten?: number;\n * buffer?: Buffer | TypedArray | DataView\n * ) => any} callback\n * @returns {void}\n */\nfunction write(fd\x2C buffer\x2C offset\x2C length\x2C position\x2C callback) {\n function wrapper(err\x2C written) {\n // Retain a reference to buffer so that it can't be GC'ed too soon.\n callback(err\x2C written || 0\x2C buffer);\n }\n\n fd = getValidatedFd(fd);\n\n if (isArrayBufferView(buffer)) {\n callback = maybeCallback(callback || position || length || offset);\n if (offset == null || typeof offset === 'function') {\n offset = 0;\n } else {\n validateInteger(offset\x2C 'offset'\x2C 0);\n }\n if (typeof length !== 'number')\n length = buffer.byteLength - offset;\n if (typeof position !== 'number')\n position = null;\n validateOffsetLengthWrite(offset\x2C length\x2C buffer.byteLength);\n\n const req = new FSReqCallback();\n req.oncomplete = wrapper;\n return binding.writeBuffer(fd\x2C buffer\x2C offset\x2C length\x2C position\x2C req);\n }\n\n validateStringAfterArrayBufferView(buffer\x2C 'buffer');\n\n if (typeof position !== 'function') {\n if (typeof offset === 'function') {\n position = offset;\n offset = null;\n } else {\n position = length;\n }\n length = 'utf8';\n }\n\n const str = String(buffer);\n validateEncoding(str\x2C length);\n callback = maybeCallback(position);\n\n const req = new FSReqCallback();\n req.oncomplete = wrapper;\n return binding.writeString(fd\x2C str\x2C offset\x2C length\x2C req);\n}\n\nObjectDefineProperty(write\x2C internalUtil.customPromisifyArgs\x2C\n { value: ['bytesWritten'\x2C 'buffer']\x2C enumerable: false });\n\n/**\n * Synchronously writes `buffer` to the\n * specified `fd` (file descriptor).\n * @param {number} fd\n * @param {Buffer | TypedArray | DataView | string | Object} buffer\n * @param {number} [offset]\n * @param {number} [length]\n * @param {number} [position]\n * @returns {number}\n */\nfunction writeSync(fd\x2C buffer\x2C offset\x2C length\x2C position) {\n fd = getValidatedFd(fd);\n const ctx = {};\n let result;\n if (isArrayBufferView(buffer)) {\n if (position === undefined)\n position = null;\n if (offset == null) {\n offset = 0;\n } else {\n validateInteger(offset\x2C 'offset'\x2C 0);\n }\n if (typeof length !== 'number')\n length = buffer.byteLength - offset;\n validateOffsetLengthWrite(offset\x2C length\x2C buffer.byteLength);\n result = binding.writeBuffer(fd\x2C buffer\x2C offset\x2C length\x2C position\x2C\n undefined\x2C ctx);\n } else {\n validateStringAfterArrayBufferView(buffer\x2C 'buffer');\n validateEncoding(buffer\x2C length);\n\n if (offset === undefined)\n offset = null;\n result = binding.writeString(fd\x2C buffer\x2C offset\x2C length\x2C\n undefined\x2C ctx);\n }\n handleErrorFromBinding(ctx);\n return result;\n}\n\n/**\n * Writes an array of `ArrayBufferView`s to the\n * specified `fd` (file descriptor).\n * @param {number} fd\n * @param {ArrayBufferView[]} buffers\n * @param {number} [position]\n * @param {(\n * err?: Error\x2C\n * bytesWritten?: number\x2C\n * buffers?: ArrayBufferView[]\n * ) => any} callback\n * @returns {void}\n */\nfunction writev(fd\x2C buffers\x2C position\x2C callback) {\n function wrapper(err\x2C written) {\n callback(err\x2C written || 0\x2C buffers);\n }\n\n fd = getValidatedFd(fd);\n validateBufferArray(buffers);\n callback = maybeCallback(callback || position);\n\n const req = new FSReqCallback();\n req.oncomplete = wrapper;\n\n if (typeof position !== 'number')\n position = null;\n\n return binding.writeBuffers(fd\x2C buffers\x2C position\x2C req);\n}\n\nObjectDefineProperty(writev\x2C internalUtil.customPromisifyArgs\x2C {\n value: ['bytesWritten'\x2C 'buffer']\x2C\n enumerable: false\n});\n\n/**\n * Synchronously writes an array of `ArrayBufferView`s\n * to the specified `fd` (file descriptor).\n * @param {number} fd\n * @param {ArrayBufferView[]} buffers\n * @param {number} [position]\n * @returns {number}\n */\nfunction writevSync(fd\x2C buffers\x2C position) {\n fd = getValidatedFd(fd);\n validateBufferArray(buffers);\n\n const ctx = {};\n\n if (typeof position !== 'number')\n position = null;\n\n const result = binding.writeBuffers(fd\x2C buffers\x2C position\x2C undefined\x2C ctx);\n\n handleErrorFromBinding(ctx);\n return result;\n}\n\n/**\n * Asynchronously renames file at `oldPath` to\n * the pathname provided as `newPath`.\n * @param {string | Buffer | URL} oldPath\n * @param {string | Buffer | URL} newPath\n * @param {(err?: Error) => any} callback\n * @returns {void}\n */\nfunction rename(oldPath\x2C newPath\x2C callback) {\n callback = makeCallback(callback);\n oldPath = getValidatedPath(oldPath\x2C 'oldPath');\n newPath = getValidatedPath(newPath\x2C 'newPath');\n const req = new FSReqCallback();\n req.oncomplete = callback;\n binding.rename(pathModule.toNamespacedPath(oldPath)\x2C\n pathModule.toNamespacedPath(newPath)\x2C\n req);\n}\n\n\n/**\n * Synchronously renames file at `oldPath` to\n * the pathname provided as `newPath`.\n * @param {string | Buffer | URL} oldPath\n * @param {string | Buffer | URL} newPath\n * @returns {void}\n */\nfunction renameSync(oldPath\x2C newPath) {\n oldPath = getValidatedPath(oldPath\x2C 'oldPath');\n newPath = getValidatedPath(newPath\x2C 'newPath');\n const ctx = { path: oldPath\x2C dest: newPath };\n binding.rename(pathModule.toNamespacedPath(oldPath)\x2C\n pathModule.toNamespacedPath(newPath)\x2C undefined\x2C ctx);\n handleErrorFromBinding(ctx);\n}\n\n/**\n * Truncates the file.\n * @param {string | Buffer | URL} path\n * @param {number} [len]\n * @param {(err?: Error) => any} callback\n * @returns {void}\n */\nfunction truncate(path\x2C len\x2C callback) {\n if (typeof path === 'number') {\n showTruncateDeprecation();\n return fs.ftruncate(path\x2C len\x2C callback);\n }\n if (typeof len === 'function') {\n callback = len;\n len = 0;\n } else if (len === undefined) {\n len = 0;\n }\n\n validateInteger(len\x2C 'len');\n len = MathMax(0\x2C len);\n callback = maybeCallback(callback);\n fs.open(path\x2C 'r+'\x2C (er\x2C fd) => {\n if (er) return callback(er);\n const req = new FSReqCallback();\n req.oncomplete = function oncomplete(er) {\n fs.close(fd\x2C (er2) => {\n callback(aggregateTwoErrors(er2\x2C er));\n });\n };\n binding.ftruncate(fd\x2C len\x2C req);\n });\n}\n\n/**\n * Synchronously truncates the file.\n * @param {string | Buffer | URL} path\n * @param {number} [len]\n * @returns {void}\n */\nfunction truncateSync(path\x2C len) {\n if (typeof path === 'number') {\n // legacy\n showTruncateDeprecation();\n return fs.ftruncateSync(path\x2C len);\n }\n if (len === undefined) {\n len = 0;\n }\n // Allow error to be thrown\x2C but still close fd.\n const fd = fs.openSync(path\x2C 'r+');\n let ret;\n\n try {\n ret = fs.ftruncateSync(fd\x2C len);\n } finally {\n fs.closeSync(fd);\n }\n return ret;\n}\n\n/**\n * Truncates the file descriptor.\n * @param {number} fd\n * @param {number} [len]\n * @param {(err?: Error) => any} callback\n * @returns {void}\n */\nfunction ftruncate(fd\x2C len = 0\x2C callback) {\n if (typeof len === 'function') {\n callback = len;\n len = 0;\n }\n fd = getValidatedFd(fd);\n validateInteger(len\x2C 'len');\n len = MathMax(0\x2C len);\n callback = makeCallback(callback);\n\n const req = new FSReqCallback();\n req.oncomplete = callback;\n binding.ftruncate(fd\x2C len\x2C req);\n}\n\n/**\n * Synchronously truncates the file descriptor.\n * @param {number} fd\n * @param {number} [len]\n * @returns {void}\n */\nfunction ftruncateSync(fd\x2C len = 0) {\n fd = getValidatedFd(fd);\n validateInteger(len\x2C 'len');\n len = MathMax(0\x2C len);\n const ctx = {};\n binding.ftruncate(fd\x2C len\x2C undefined\x2C ctx);\n handleErrorFromBinding(ctx);\n}\n\n\nfunction lazyLoadRimraf() {\n if (rimraf === undefined)\n ({ rimraf\x2C rimrafSync } = require('internal/fs/rimraf'));\n}\n\n/**\n * Asynchronously removes a directory.\n * @param {string | Buffer | URL} path\n * @param {{\n * maxRetries?: number;\n * recursive?: boolean;\n * retryDelay?: number;\n * }} [options]\n * @param {(err?: Error) => any} callback\n * @returns {void}\n */\nfunction rmdir(path\x2C options\x2C callback) {\n if (typeof options === 'function') {\n callback = options;\n options = undefined;\n }\n\n callback = makeCallback(callback);\n path = pathModule.toNamespacedPath(getValidatedPath(path));\n\n if (options?.recursive) {\n emitRecursiveRmdirWarning();\n validateRmOptions(\n path\x2C\n { ...options\x2C force: false }\x2C\n true\x2C\n (err\x2C options) => {\n if (err === false) {\n const req = new FSReqCallback();\n req.oncomplete = callback;\n return binding.rmdir(path\x2C req);\n }\n if (err) {\n return callback(err);\n }\n\n lazyLoadRimraf();\n rimraf(path\x2C options\x2C callback);\n });\n } else {\n validateRmdirOptions(options);\n const req = new FSReqCallback();\n req.oncomplete = callback;\n return binding.rmdir(path\x2C req);\n }\n}\n\n/**\n * Synchronously removes a directory.\n * @param {string | Buffer | URL} path\n * @param {{\n * maxRetries?: number;\n * recursive?: boolean;\n * retryDelay?: number;\n * }} [options]\n * @returns {void}\n */\nfunction rmdirSync(path\x2C options) {\n path = getValidatedPath(path);\n\n if (options?.recursive) {\n emitRecursiveRmdirWarning();\n options = validateRmOptionsSync(path\x2C { ...options\x2C force: false }\x2C true);\n if (options !== false) {\n lazyLoadRimraf();\n return rimrafSync(pathModule.toNamespacedPath(path)\x2C options);\n }\n } else {\n validateRmdirOptions(options);\n }\n\n const ctx = { path };\n binding.rmdir(pathModule.toNamespacedPath(path)\x2C undefined\x2C ctx);\n return handleErrorFromBinding(ctx);\n}\n\n/**\n * Asynchronously removes files and\n * directories (modeled on the standard POSIX `rm` utility).\n * @param {string | Buffer | URL} path\n * @param {{\n * force?: boolean;\n * maxRetries?: number;\n * recursive?: boolean;\n * retryDelay?: number;\n * }} [options]\n * @param {(err?: Error) => any} callback\n * @returns {void}\n */\nfunction rm(path\x2C options\x2C callback) {\n if (typeof options === 'function') {\n callback = options;\n options = undefined;\n }\n\n validateRmOptions(path\x2C options\x2C false\x2C (err\x2C options) => {\n if (err) {\n return callback(err);\n }\n lazyLoadRimraf();\n return rimraf(pathModule.toNamespacedPath(path)\x2C options\x2C callback);\n });\n}\n\n/**\n * Synchronously removes files and\n * directories (modeled on the standard POSIX `rm` utility).\n * @param {string | Buffer | URL} path\n * @param {{\n * force?: boolean;\n * maxRetries?: number;\n * recursive?: boolean;\n * retryDelay?: number;\n * }} [options]\n * @returns {void}\n */\nfunction rmSync(path\x2C options) {\n options = validateRmOptionsSync(path\x2C options\x2C false);\n\n lazyLoadRimraf();\n return rimrafSync(pathModule.toNamespacedPath(path)\x2C options);\n}\n\n/**\n * Forces all currently queued I/O operations associated\n * with the file to the operating system's synchronized\n * I/O completion state.\n * @param {number} fd\n * @param {(err?: Error) => any} callback\n * @returns {void}\n */\nfunction fdatasync(fd\x2C callback) {\n fd = getValidatedFd(fd);\n const req = new FSReqCallback();\n req.oncomplete = makeCallback(callback);\n binding.fdatasync(fd\x2C req);\n}\n\n/**\n * Synchronously forces all currently queued I/O operations\n * associated with the file to the operating\n * system's synchronized I/O completion state.\n * @param {number} fd\n * @returns {void}\n */\nfunction fdatasyncSync(fd) {\n fd = getValidatedFd(fd);\n const ctx = {};\n binding.fdatasync(fd\x2C undefined\x2C ctx);\n handleErrorFromBinding(ctx);\n}\n\n/**\n * Requests for all data for the open file descriptor\n * to be flushed to the storage device.\n * @param {number} fd\n * @param {(err?: Error) => any} callback\n * @returns {void}\n */\nfunction fsync(fd\x2C callback) {\n fd = getValidatedFd(fd);\n const req = new FSReqCallback();\n req.oncomplete = makeCallback(callback);\n binding.fsync(fd\x2C req);\n}\n\n/**\n * Synchronously requests for all data for the open\n * file descriptor to be flushed to the storage device.\n * @param {number} fd\n * @returns {void}\n */\nfunction fsyncSync(fd) {\n fd = getValidatedFd(fd);\n const ctx = {};\n binding.fsync(fd\x2C undefined\x2C ctx);\n handleErrorFromBinding(ctx);\n}\n\n/**\n * Asynchronously creates a directory.\n * @param {string | Buffer | URL} path\n * @param {{\n * recursive?: boolean;\n * mode?: string | number;\n * } | number} [options]\n * @param {(err?: Error) => any} callback\n * @returns {void}\n */\nfunction mkdir(path\x2C options\x2C callback) {\n let mode = 0o777;\n let recursive = false;\n if (typeof options === 'function') {\n callback = options;\n } else if (typeof options === 'number' || typeof options === 'string') {\n mode = options;\n } else if (options) {\n if (options.recursive !== undefined)\n recursive = options.recursive;\n if (options.mode !== undefined)\n mode = options.mode;\n }\n callback = makeCallback(callback);\n path = getValidatedPath(path);\n\n validateBoolean(recursive\x2C 'options.recursive');\n\n const req = new FSReqCallback();\n req.oncomplete = callback;\n binding.mkdir(pathModule.toNamespacedPath(path)\x2C\n parseFileMode(mode\x2C 'mode')\x2C recursive\x2C req);\n}\n\n/**\n * Synchronously creates a directory.\n * @param {string | Buffer | URL} path\n * @param {{\n * recursive?: boolean;\n * mode?: string | number;\n * } | number} [options]\n * @returns {string | void}\n */\nfunction mkdirSync(path\x2C options) {\n let mode = 0o777;\n let recursive = false;\n if (typeof options === 'number' || typeof options === 'string') {\n mode = options;\n } else if (options) {\n if (options.recursive !== undefined)\n recursive = options.recursive;\n if (options.mode !== undefined)\n mode = options.mode;\n }\n path = getValidatedPath(path);\n validateBoolean(recursive\x2C 'options.recursive');\n\n const ctx = { path };\n const result = binding.mkdir(pathModule.toNamespacedPath(path)\x2C\n parseFileMode(mode\x2C 'mode')\x2C recursive\x2C\n undefined\x2C ctx);\n handleErrorFromBinding(ctx);\n if (recursive) {\n return result;\n }\n}\n\n/**\n * Reads the contents of a directory.\n * @param {string | Buffer | URL} path\n * @param {string | {\n * encoding?: string;\n * withFileTypes?: boolean;\n * }} [options]\n * @param {(\n * err?: Error\x2C\n * files?: string[] | Buffer[] | Direct[];\n * ) => any} callback\n * @returns {void}\n */\nfunction readdir(path\x2C options\x2C callback) {\n callback = makeCallback(typeof options === 'function' ? options : callback);\n options = getOptions(options\x2C {});\n path = getValidatedPath(path);\n\n const req = new FSReqCallback();\n if (!options.withFileTypes) {\n req.oncomplete = callback;\n } else {\n req.oncomplete = (err\x2C result) => {\n if (err) {\n callback(err);\n return;\n }\n getDirents(path\x2C result\x2C callback);\n };\n }\n binding.readdir(pathModule.toNamespacedPath(path)\x2C options.encoding\x2C\n !!options.withFileTypes\x2C req);\n}\n\n/**\n * Synchronously reads the contents of a directory.\n * @param {string | Buffer | URL} path\n * @param {string | {\n * encoding?: string;\n * withFileTypes?: boolean;\n * }} [options]\n * @returns {string | Buffer[] | Dirent[]}\n */\nfunction readdirSync(path\x2C options) {\n options = getOptions(options\x2C {});\n path = getValidatedPath(path);\n const ctx = { path };\n const result = binding.readdir(pathModule.toNamespacedPath(path)\x2C\n options.encoding\x2C !!options.withFileTypes\x2C\n undefined\x2C ctx);\n handleErrorFromBinding(ctx);\n return options.withFileTypes ? getDirents(path\x2C result) : result;\n}\n\n/**\n * Invokes the callback with the `fs.Stats`\n * for the file descriptor.\n * @param {number} fd\n * @param {{ bigint?: boolean; }} [options]\n * @param {(\n * err?: Error\x2C\n * stats?: Stats\n * ) => any} callback\n * @returns {void}\n */\nfunction fstat(fd\x2C options = { bigint: false }\x2C callback) {\n if (typeof options === 'function') {\n callback = options;\n options = {};\n }\n fd = getValidatedFd(fd);\n callback = makeStatsCallback(callback);\n\n const req = new FSReqCallback(options.bigint);\n req.oncomplete = callback;\n binding.fstat(fd\x2C options.bigint\x2C req);\n}\n\n/**\n * Retrieves the `fs.Stats` for the symbolic link\n * referred to by the `path`.\n * @param {string | Buffer | URL} path\n * @param {{ bigint?: boolean; }} [options]\n * @param {(\n * err?: Error\x2C\n * stats?: Stats\n * ) => any} callback\n * @returns {void}\n */\nfunction lstat(path\x2C options = { bigint: false }\x2C callback) {\n if (typeof options === 'function') {\n callback = options;\n options = {};\n }\n callback = makeStatsCallback(callback);\n path = getValidatedPath(path);\n\n const req = new FSReqCallback(options.bigint);\n req.oncomplete = callback;\n binding.lstat(pathModule.toNamespacedPath(path)\x2C options.bigint\x2C req);\n}\n\n/**\n * Asynchronously gets the stats of a file.\n * @param {string | Buffer | URL} path\n * @param {{ bigint?: boolean; }} [options]\n * @param {(\n * err?: Error\x2C\n * stats?: Stats\n * ) => any} callback\n * @returns {void}\n */\nfunction stat(path\x2C options = { bigint: false }\x2C callback) {\n if (typeof options === 'function') {\n callback = options;\n options = {};\n }\n callback = makeStatsCallback(callback);\n path = getValidatedPath(path);\n\n const req = new FSReqCallback(options.bigint);\n req.oncomplete = callback;\n binding.stat(pathModule.toNamespacedPath(path)\x2C options.bigint\x2C req);\n}\n\nfunction hasNoEntryError(ctx) {\n if (ctx.errno) {\n const uvErr = uvErrmapGet(ctx.errno);\n return uvErr?.[0] === 'ENOENT';\n }\n\n if (ctx.error) {\n return ctx.error.code === 'ENOENT';\n }\n\n return false;\n}\n\n/**\n * Synchronously retrieves the `fs.Stats` for\n * the file descriptor.\n * @param {number} fd\n * @param {{\n * bigint?: boolean;\n * throwIfNoEntry?: boolean;\n * }} [options]\n * @returns {Stats}\n */\nfunction fstatSync(fd\x2C options = { bigint: false\x2C throwIfNoEntry: true }) {\n fd = getValidatedFd(fd);\n const ctx = { fd };\n const stats = binding.fstat(fd\x2C options.bigint\x2C undefined\x2C ctx);\n handleErrorFromBinding(ctx);\n return getStatsFromBinding(stats);\n}\n\n/**\n * Synchronously retrieves the `fs.Stats` for\n * the symbolic link referred to by the `path`.\n * @param {string | Buffer | URL} path\n * @param {{\n * bigint?: boolean;\n * throwIfNoEntry?: boolean;\n * }} [options]\n * @returns {Stats}\n */\nfunction lstatSync(path\x2C options = { bigint: false\x2C throwIfNoEntry: true }) {\n path = getValidatedPath(path);\n const ctx = { path };\n const stats = binding.lstat(pathModule.toNamespacedPath(path)\x2C\n options.bigint\x2C undefined\x2C ctx);\n if (options.throwIfNoEntry === false && hasNoEntryError(ctx)) {\n return undefined;\n }\n handleErrorFromBinding(ctx);\n return getStatsFromBinding(stats);\n}\n\n/**\n * Synchronously retrieves the `fs.Stats`\n * for the `path`.\n * @param {string | Buffer | URL} path\n * @param {{\n * bigint?: boolean;\n * throwIfNoEntry?: boolean;\n * }} [options]\n * @returns {Stats}\n */\nfunction statSync(path\x2C options = { bigint: false\x2C throwIfNoEntry: true }) {\n path = getValidatedPath(path);\n const ctx = { path };\n const stats = binding.stat(pathModule.toNamespacedPath(path)\x2C\n options.bigint\x2C undefined\x2C ctx);\n if (options.throwIfNoEntry === false && hasNoEntryError(ctx)) {\n return undefined;\n }\n handleErrorFromBinding(ctx);\n return getStatsFromBinding(stats);\n}\n\n/**\n * Reads the contents of a symbolic link\n * referred to by `path`.\n * @param {string | Buffer | URL} path\n * @param {{ encoding?: string; } | string} [options]\n * @param {(\n * err?: Error\x2C\n * linkString?: string | Buffer\n * ) => any} callback\n * @returns {void}\n */\nfunction readlink(path\x2C options\x2C callback) {\n callback = makeCallback(typeof options === 'function' ? options : callback);\n options = getOptions(options\x2C {});\n path = getValidatedPath(path\x2C 'oldPath');\n const req = new FSReqCallback();\n req.oncomplete = callback;\n binding.readlink(pathModule.toNamespacedPath(path)\x2C options.encoding\x2C req);\n}\n\n/**\n * Synchronously reads the contents of a symbolic link\n * referred to by `path`.\n * @param {string | Buffer | URL} path\n * @param {{ encoding?: string; } | string} [options]\n * @returns {string | Buffer}\n */\nfunction readlinkSync(path\x2C options) {\n options = getOptions(options\x2C {});\n path = getValidatedPath(path\x2C 'oldPath');\n const ctx = { path };\n const result = binding.readlink(pathModule.toNamespacedPath(path)\x2C\n options.encoding\x2C undefined\x2C ctx);\n handleErrorFromBinding(ctx);\n return result;\n}\n\n/**\n * Creates the link called `path` pointing to `target`.\n * @param {string | Buffer | URL} target\n * @param {string | Buffer | URL} path\n * @param {string} [type_]\n * @param {(err?: Error) => any} callback_\n * @returns {void}\n */\nfunction symlink(target\x2C path\x2C type_\x2C callback_) {\n const type = (typeof type_ === 'string' ? type_ : null);\n const callback = makeCallback(arguments[arguments.length - 1]);\n\n target = getValidatedPath(target\x2C 'target');\n path = getValidatedPath(path);\n\n if (isWindows && type === null) {\n let absoluteTarget;\n try {\n // Symlinks targets can be relative to the newly created path.\n // Calculate absolute file name of the symlink target\x2C and check\n // if it is a directory. Ignore resolve error to keep symlink\n // errors consistent between platforms if invalid path is\n // provided.\n absoluteTarget = pathModule.resolve(path\x2C '..'\x2C target);\n } catch { }\n if (absoluteTarget !== undefined) {\n stat(absoluteTarget\x2C (err\x2C stat) => {\n const resolvedType = !err && stat.isDirectory() ? 'dir' : 'file';\n const resolvedFlags = stringToSymlinkType(resolvedType);\n const destination = preprocessSymlinkDestination(target\x2C\n resolvedType\x2C\n path);\n\n const req = new FSReqCallback();\n req.oncomplete = callback;\n binding.symlink(destination\x2C\n pathModule.toNamespacedPath(path)\x2C resolvedFlags\x2C req);\n });\n return;\n }\n }\n\n const destination = preprocessSymlinkDestination(target\x2C type\x2C path);\n\n const flags = stringToSymlinkType(type);\n const req = new FSReqCallback();\n req.oncomplete = callback;\n binding.symlink(destination\x2C pathModule.toNamespacedPath(path)\x2C flags\x2C req);\n}\n\n/**\n * Synchronously creates the link called `path`\n * pointing to `target`.\n * @param {string | Buffer | URL} target\n * @param {string | Buffer | URL} path\n * @param {string} [type]\n * @returns {void}\n */\nfunction symlinkSync(target\x2C path\x2C type) {\n type = (typeof type === 'string' ? type : null);\n if (isWindows && type === null) {\n const absoluteTarget = pathModule.resolve(`${path}`\x2C '..'\x2C `${target}`);\n if (statSync(absoluteTarget\x2C { throwIfNoEntry: false })?.isDirectory()) {\n type = 'dir';\n }\n }\n target = getValidatedPath(target\x2C 'target');\n path = getValidatedPath(path);\n const flags = stringToSymlinkType(type);\n\n const ctx = { path: target\x2C dest: path };\n binding.symlink(preprocessSymlinkDestination(target\x2C type\x2C path)\x2C\n pathModule.toNamespacedPath(path)\x2C flags\x2C undefined\x2C ctx);\n\n handleErrorFromBinding(ctx);\n}\n\n/**\n * Creates a new link from the `existingPath`\n * to the `newPath`.\n * @param {string | Buffer | URL} existingPath\n * @param {string | Buffer | URL} newPath\n * @param {(err?: Error) => any} callback\n * @returns {void}\n */\nfunction link(existingPath\x2C newPath\x2C callback) {\n callback = makeCallback(callback);\n\n existingPath = getValidatedPath(existingPath\x2C 'existingPath');\n newPath = getValidatedPath(newPath\x2C 'newPath');\n\n const req = new FSReqCallback();\n req.oncomplete = callback;\n\n binding.link(pathModule.toNamespacedPath(existingPath)\x2C\n pathModule.toNamespacedPath(newPath)\x2C\n req);\n}\n\n/**\n * Synchronously creates a new link from the `existingPath`\n * to the `newPath`.\n * @param {string | Buffer | URL} existingPath\n * @param {string | Buffer | URL} newPath\n * @returns {void}\n */\nfunction linkSync(existingPath\x2C newPath) {\n existingPath = getValidatedPath(existingPath\x2C 'existingPath');\n newPath = getValidatedPath(newPath\x2C 'newPath');\n\n const ctx = { path: existingPath\x2C dest: newPath };\n const result = binding.link(pathModule.toNamespacedPath(existingPath)\x2C\n pathModule.toNamespacedPath(newPath)\x2C\n undefined\x2C ctx);\n handleErrorFromBinding(ctx);\n return result;\n}\n\n/**\n * Asynchronously removes a file or symbolic link.\n * @param {string | Buffer | URL} path\n * @param {(err?: Error) => any} callback\n * @returns {void}\n */\nfunction unlink(path\x2C callback) {\n callback = makeCallback(callback);\n path = getValidatedPath(path);\n const req = new FSReqCallback();\n req.oncomplete = callback;\n binding.unlink(pathModule.toNamespacedPath(path)\x2C req);\n}\n\n/**\n * Synchronously removes a file or symbolic link.\n * @param {string | Buffer | URL} path\n * @returns {void}\n */\nfunction unlinkSync(path) {\n path = getValidatedPath(path);\n const ctx = { path };\n binding.unlink(pathModule.toNamespacedPath(path)\x2C undefined\x2C ctx);\n handleErrorFromBinding(ctx);\n}\n\n/**\n * Sets the permissions on the file.\n * @param {number} fd\n * @param {string | number} mode\n * @param {(err?: Error) => any} callback\n * @returns {void}\n */\nfunction fchmod(fd\x2C mode\x2C callback) {\n fd = getValidatedFd(fd);\n mode = parseFileMode(mode\x2C 'mode');\n callback = makeCallback(callback);\n\n const req = new FSReqCallback();\n req.oncomplete = callback;\n binding.fchmod(fd\x2C mode\x2C req);\n}\n\n/**\n * Synchronously sets the permissions on the file.\n * @param {number} fd\n * @param {string | number} mode\n * @returns {void}\n */\nfunction fchmodSync(fd\x2C mode) {\n fd = getValidatedFd(fd);\n mode = parseFileMode(mode\x2C 'mode');\n const ctx = {};\n binding.fchmod(fd\x2C mode\x2C undefined\x2C ctx);\n handleErrorFromBinding(ctx);\n}\n\n/**\n * Changes the permissions on a symbolic link.\n * @param {string | Buffer | URL} path\n * @param {number} mode\n * @param {(err?: Error) => any} callback\n * @returns {void}\n */\nfunction lchmod(path\x2C mode\x2C callback) {\n callback = maybeCallback(callback);\n mode = parseFileMode(mode\x2C 'mode');\n fs.open(path\x2C O_WRONLY | O_SYMLINK\x2C (err\x2C fd) => {\n if (err) {\n callback(err);\n return;\n }\n // Prefer to return the chmod error\x2C if one occurs\x2C\n // but still try to close\x2C and report closing errors if they occur.\n fs.fchmod(fd\x2C mode\x2C (err) => {\n fs.close(fd\x2C (err2) => {\n callback(aggregateTwoErrors(err2\x2C err));\n });\n });\n });\n}\n\n/**\n * Synchronously changes the permissions on a symbolic link.\n * @param {string | Buffer | URL} path\n * @param {number} mode\n * @returns {void}\n */\nfunction lchmodSync(path\x2C mode) {\n const fd = fs.openSync(path\x2C O_WRONLY | O_SYMLINK);\n\n // Prefer to return the chmod error\x2C if one occurs\x2C\n // but still try to close\x2C and report closing errors if they occur.\n let ret;\n try {\n ret = fs.fchmodSync(fd\x2C mode);\n } finally {\n fs.closeSync(fd);\n }\n return ret;\n}\n\n/**\n * Asynchronously changes the permissions of a file.\n * @param {string | Buffer | URL} path\n * @param {string | number} mode\n * @param {(err?: Error) => any} callback\n * @returns {void}\n */\nfunction chmod(path\x2C mode\x2C callback) {\n path = getValidatedPath(path);\n mode = parseFileMode(mode\x2C 'mode');\n callback = makeCallback(callback);\n\n const req = new FSReqCallback();\n req.oncomplete = callback;\n binding.chmod(pathModule.toNamespacedPath(path)\x2C mode\x2C req);\n}\n\n/**\n * Synchronously changes the permissions of a file.\n * @param {string | Buffer | URL} path\n * @param {string | number} mode\n * @returns {void}\n */\nfunction chmodSync(path\x2C mode) {\n path = getValidatedPath(path);\n mode = parseFileMode(mode\x2C 'mode');\n\n const ctx = { path };\n binding.chmod(pathModule.toNamespacedPath(path)\x2C mode\x2C undefined\x2C ctx);\n handleErrorFromBinding(ctx);\n}\n\n/**\n * Sets the owner of the symbolic link.\n * @param {string | Buffer | URL} path\n * @param {number} uid\n * @param {number} gid\n * @param {(err?: Error) => any} callback\n * @returns {void}\n */\nfunction lchown(path\x2C uid\x2C gid\x2C callback) {\n callback = makeCallback(callback);\n path = getValidatedPath(path);\n validateInteger(uid\x2C 'uid'\x2C -1\x2C kMaxUserId);\n validateInteger(gid\x2C 'gid'\x2C -1\x2C kMaxUserId);\n const req = new FSReqCallback();\n req.oncomplete = callback;\n binding.lchown(pathModule.toNamespacedPath(path)\x2C uid\x2C gid\x2C req);\n}\n\n/**\n * Synchronously sets the owner of the symbolic link.\n * @param {string | Buffer | URL} path\n * @param {number} uid\n * @param {number} gid\n * @returns {void}\n */\nfunction lchownSync(path\x2C uid\x2C gid) {\n path = getValidatedPath(path);\n validateInteger(uid\x2C 'uid'\x2C -1\x2C kMaxUserId);\n validateInteger(gid\x2C 'gid'\x2C -1\x2C kMaxUserId);\n const ctx = { path };\n binding.lchown(pathModule.toNamespacedPath(path)\x2C uid\x2C gid\x2C undefined\x2C ctx);\n handleErrorFromBinding(ctx);\n}\n\n/**\n * Sets the owner of the file.\n * @param {number} fd\n * @param {number} uid\n * @param {number} gid\n * @param {(err?: Error) => any} callback\n * @returns {void}\n */\nfunction fchown(fd\x2C uid\x2C gid\x2C callback) {\n fd = getValidatedFd(fd);\n validateInteger(uid\x2C 'uid'\x2C -1\x2C kMaxUserId);\n validateInteger(gid\x2C 'gid'\x2C -1\x2C kMaxUserId);\n callback = makeCallback(callback);\n\n const req = new FSReqCallback();\n req.oncomplete = callback;\n binding.fchown(fd\x2C uid\x2C gid\x2C req);\n}\n\n/**\n * Synchronously sets the owner of the file.\n * @param {number} fd\n * @param {number} uid\n * @param {number} gid\n * @returns {void}\n */\nfunction fchownSync(fd\x2C uid\x2C gid) {\n fd = getValidatedFd(fd);\n validateInteger(uid\x2C 'uid'\x2C -1\x2C kMaxUserId);\n validateInteger(gid\x2C 'gid'\x2C -1\x2C kMaxUserId);\n\n const ctx = {};\n binding.fchown(fd\x2C uid\x2C gid\x2C undefined\x2C ctx);\n handleErrorFromBinding(ctx);\n}\n\n/**\n * Asynchronously changes the owner and group\n * of a file.\n * @param {string | Buffer | URL} path\n * @param {number} uid\n * @param {number} gid\n * @param {(err?: Error) => any} callback\n * @returns {void}\n */\nfunction chown(path\x2C uid\x2C gid\x2C callback) {\n callback = makeCallback(callback);\n path = getValidatedPath(path);\n validateInteger(uid\x2C 'uid'\x2C -1\x2C kMaxUserId);\n validateInteger(gid\x2C 'gid'\x2C -1\x2C kMaxUserId);\n\n const req = new FSReqCallback();\n req.oncomplete = callback;\n binding.chown(pathModule.toNamespacedPath(path)\x2C uid\x2C gid\x2C req);\n}\n\n/**\n * Synchronously changes the owner and group\n * of a file.\n * @param {string | Buffer | URL} path\n * @param {number} uid\n * @param {number} gid\n * @returns {void}\n */\nfunction chownSync(path\x2C uid\x2C gid) {\n path = getValidatedPath(path);\n validateInteger(uid\x2C 'uid'\x2C -1\x2C kMaxUserId);\n validateInteger(gid\x2C 'gid'\x2C -1\x2C kMaxUserId);\n const ctx = { path };\n binding.chown(pathModule.toNamespacedPath(path)\x2C uid\x2C gid\x2C undefined\x2C ctx);\n handleErrorFromBinding(ctx);\n}\n\n/**\n * Changes the file system timestamps of the object\n * referenced by `path`.\n * @param {string | Buffer | URL} path\n * @param {number | string | Date} atime\n * @param {number | string | Date} mtime\n * @param {(err?: Error) => any} callback\n * @returns {void}\n */\nfunction utimes(path\x2C atime\x2C mtime\x2C callback) {\n callback = makeCallback(callback);\n path = getValidatedPath(path);\n\n const req = new FSReqCallback();\n req.oncomplete = callback;\n binding.utimes(pathModule.toNamespacedPath(path)\x2C\n toUnixTimestamp(atime)\x2C\n toUnixTimestamp(mtime)\x2C\n req);\n}\n\n/**\n * Synchronously changes the file system timestamps\n * of the object referenced by `path`.\n * @param {string | Buffer | URL} path\n * @param {number | string | Date} atime\n * @param {number | string | Date} mtime\n * @returns {void}\n */\nfunction utimesSync(path\x2C atime\x2C mtime) {\n path = getValidatedPath(path);\n const ctx = { path };\n binding.utimes(pathModule.toNamespacedPath(path)\x2C\n toUnixTimestamp(atime)\x2C toUnixTimestamp(mtime)\x2C\n undefined\x2C ctx);\n handleErrorFromBinding(ctx);\n}\n\n/**\n * Changes the file system timestamps of the object\n * referenced by the supplied `fd` (file descriptor).\n * @param {number} fd\n * @param {number | string | Date} atime\n * @param {number | string | Date} mtime\n * @param {(err?: Error) => any} callback\n * @returns {void}\n */\nfunction futimes(fd\x2C atime\x2C mtime\x2C callback) {\n fd = getValidatedFd(fd);\n atime = toUnixTimestamp(atime\x2C 'atime');\n mtime = toUnixTimestamp(mtime\x2C 'mtime');\n callback = makeCallback(callback);\n\n const req = new FSReqCallback();\n req.oncomplete = callback;\n binding.futimes(fd\x2C atime\x2C mtime\x2C req);\n}\n\n/**\n * Synchronously changes the file system timestamps\n * of the object referenced by the\n * supplied `fd` (file descriptor).\n * @param {number} fd\n * @param {number | string | Date} atime\n * @param {number | string | Date} mtime\n * @returns {void}\n */\nfunction futimesSync(fd\x2C atime\x2C mtime) {\n fd = getValidatedFd(fd);\n atime = toUnixTimestamp(atime\x2C 'atime');\n mtime = toUnixTimestamp(mtime\x2C 'mtime');\n const ctx = {};\n binding.futimes(fd\x2C atime\x2C mtime\x2C undefined\x2C ctx);\n handleErrorFromBinding(ctx);\n}\n\n/**\n * Changes the access and modification times of\n * a file in the same way as `fs.utimes()`.\n * @param {string | Buffer | URL} path\n * @param {number | string | Date} atime\n * @param {number | string | Date} mtime\n * @param {(err?: Error) => any} callback\n * @returns {void}\n */\nfunction lutimes(path\x2C atime\x2C mtime\x2C callback) {\n callback = makeCallback(callback);\n path = getValidatedPath(path);\n\n const req = new FSReqCallback();\n req.oncomplete = callback;\n binding.lutimes(pathModule.toNamespacedPath(path)\x2C\n toUnixTimestamp(atime)\x2C\n toUnixTimestamp(mtime)\x2C\n req);\n}\n\n/**\n * Synchronously changes the access and modification\n * times of a file in the same way as `fs.utimesSync()`.\n * @param {string | Buffer | URL} path\n * @param {number | string | Date} atime\n * @param {number | string | Date} mtime\n * @returns {void}\n */\nfunction lutimesSync(path\x2C atime\x2C mtime) {\n path = getValidatedPath(path);\n const ctx = { path };\n binding.lutimes(pathModule.toNamespacedPath(path)\x2C\n toUnixTimestamp(atime)\x2C\n toUnixTimestamp(mtime)\x2C\n undefined\x2C ctx);\n handleErrorFromBinding(ctx);\n}\n\nfunction writeAll(fd\x2C isUserFd\x2C buffer\x2C offset\x2C length\x2C signal\x2C callback) {\n if (signal?.aborted) {\n const abortError = new AbortError();\n if (isUserFd) {\n callback(abortError);\n } else {\n fs.close(fd\x2C (err) => {\n callback(aggregateTwoErrors(err\x2C abortError));\n });\n }\n return;\n }\n // write(fd\x2C buffer\x2C offset\x2C length\x2C position\x2C callback)\n fs.write(fd\x2C buffer\x2C offset\x2C length\x2C null\x2C (writeErr\x2C written) => {\n if (writeErr) {\n if (isUserFd) {\n callback(writeErr);\n } else {\n fs.close(fd\x2C (err) => {\n callback(aggregateTwoErrors(err\x2C writeErr));\n });\n }\n } else if (written === length) {\n if (isUserFd) {\n callback(null);\n } else {\n fs.close(fd\x2C callback);\n }\n } else {\n offset += written;\n length -= written;\n writeAll(fd\x2C isUserFd\x2C buffer\x2C offset\x2C length\x2C signal\x2C callback);\n }\n });\n}\n\n/**\n * Asynchronously writes data to the file.\n * @param {string | Buffer | URL | number} path\n * @param {string | Buffer | TypedArray | DataView | Object} data\n * @param {{\n * encoding?: string | null;\n * mode?: number;\n * flag?: string;\n * signal?: AbortSignal;\n * } | string} [options]\n * @param {(err?: Error) => any} callback\n * @returns {void}\n */\nfunction writeFile(path\x2C data\x2C options\x2C callback) {\n callback = maybeCallback(callback || options);\n options = getOptions(options\x2C { encoding: 'utf8'\x2C mode: 0o666\x2C flag: 'w' });\n const flag = options.flag || 'w';\n\n if (!isArrayBufferView(data)) {\n validateStringAfterArrayBufferView(data\x2C 'data');\n data = Buffer.from(String(data)\x2C options.encoding || 'utf8');\n }\n\n if (isFd(path)) {\n const isUserFd = true;\n const signal = options.signal;\n writeAll(path\x2C isUserFd\x2C data\x2C 0\x2C data.byteLength\x2C signal\x2C callback);\n return;\n }\n\n if (checkAborted(options.signal\x2C callback))\n return;\n\n fs.open(path\x2C flag\x2C options.mode\x2C (openErr\x2C fd) => {\n if (openErr) {\n callback(openErr);\n } else {\n const isUserFd = false;\n const signal = options.signal;\n writeAll(fd\x2C isUserFd\x2C data\x2C 0\x2C data.byteLength\x2C signal\x2C callback);\n }\n });\n}\n\n/**\n * Synchronously writes data to the file.\n * @param {string | Buffer | URL | number} path\n * @param {string | Buffer | TypedArray | DataView | Object} data\n * @param {{\n * encoding?: string | null;\n * mode?: number;\n * flag?: string;\n * } | string} [options]\n * @returns {void}\n */\nfunction writeFileSync(path\x2C data\x2C options) {\n options = getOptions(options\x2C { encoding: 'utf8'\x2C mode: 0o666\x2C flag: 'w' });\n\n if (!isArrayBufferView(data)) {\n validateStringAfterArrayBufferView(data\x2C 'data');\n data = Buffer.from(String(data)\x2C options.encoding || 'utf8');\n }\n\n const flag = options.flag || 'w';\n\n const isUserFd = isFd(path); // File descriptor ownership\n const fd = isUserFd ? path : fs.openSync(path\x2C flag\x2C options.mode);\n\n let offset = 0;\n let length = data.byteLength;\n try {\n while (length > 0) {\n const written = fs.writeSync(fd\x2C data\x2C offset\x2C length);\n offset += written;\n length -= written;\n }\n } finally {\n if (!isUserFd) fs.closeSync(fd);\n }\n}\n\n/**\n * Asynchronously appends data to a file.\n * @param {string | Buffer | URL | number} path\n * @param {string | Buffer} data\n * @param {{\n * encoding?: string | null;\n * mode?: number;\n * flag?: string;\n * } | string} [options]\n * @param {(err?: Error) => any} callback\n * @returns {void}\n */\nfunction appendFile(path\x2C data\x2C options\x2C callback) {\n callback = maybeCallback(callback || options);\n options = getOptions(options\x2C { encoding: 'utf8'\x2C mode: 0o666\x2C flag: 'a' });\n\n // Don't make changes directly on options object\n options = copyObject(options);\n\n // Force append behavior when using a supplied file descriptor\n if (!options.flag || isFd(path))\n options.flag = 'a';\n\n fs.writeFile(path\x2C data\x2C options\x2C callback);\n}\n\n/**\n * Synchronously appends data to a file.\n * @param {string | Buffer | URL | number} path\n * @param {string | Buffer} data\n * @param {{\n * encoding?: string | null;\n * mode?: number;\n * flag?: string;\n * } | string} [options]\n * @returns {void}\n */\nfunction appendFileSync(path\x2C data\x2C options) {\n options = getOptions(options\x2C { encoding: 'utf8'\x2C mode: 0o666\x2C flag: 'a' });\n\n // Don't make changes directly on options object\n options = copyObject(options);\n\n // Force append behavior when using a supplied file descriptor\n if (!options.flag || isFd(path))\n options.flag = 'a';\n\n fs.writeFileSync(path\x2C data\x2C options);\n}\n\n/**\n * Watches for the changes on `filename`.\n * @param {string | Buffer | URL} filename\n * @param {string | {\n * persistent?: boolean;\n * recursive?: boolean;\n * encoding?: string;\n * signal?: AbortSignal;\n * }} [options]\n * @param {(\n * eventType?: string\x2C\n * filename?: string | Buffer\n * ) => any} [listener]\n * @returns {watchers.FSWatcher}\n */\nfunction watch(filename\x2C options\x2C listener) {\n if (typeof options === 'function') {\n listener = options;\n }\n options = getOptions(options\x2C {});\n\n // Don't make changes directly on options object\n options = copyObject(options);\n\n if (options.persistent === undefined) options.persistent = true;\n if (options.recursive === undefined) options.recursive = false;\n if (options.recursive && !(isOSX || isWindows))\n throw new ERR_FEATURE_UNAVAILABLE_ON_PLATFORM('watch recursively');\n const watcher = new watchers.FSWatcher();\n watcher[watchers.kFSWatchStart](filename\x2C\n options.persistent\x2C\n options.recursive\x2C\n options.encoding);\n\n if (listener) {\n watcher.addListener('change'\x2C listener);\n }\n if (options.signal) {\n if (options.signal.aborted) {\n process.nextTick(() => watcher.close());\n } else {\n const listener = () => watcher.close();\n options.signal.addEventListener('abort'\x2C listener);\n watcher.once('close'\x2C () => {\n options.signal.removeEventListener('abort'\x2C listener);\n });\n }\n }\n\n return watcher;\n}\n\n\nconst statWatchers = new SafeMap();\n\n/**\n * Watches for changes on `filename`.\n * @param {string | Buffer | URL} filename\n * @param {{\n * bigint?: boolean;\n * persistent?: boolean;\n * interval?: number;\n * }} [options]\n * @param {(\n * current?: Stats\x2C\n * previous?: Stats\n * ) => any} listener\n * @returns {watchers.StatWatcher}\n */\nfunction watchFile(filename\x2C options\x2C listener) {\n filename = getValidatedPath(filename);\n filename = pathModule.resolve(filename);\n let stat;\n\n if (options === null || typeof options !== 'object') {\n listener = options;\n options = null;\n }\n\n options = {\n // Poll interval in milliseconds. 5007 is what libev used to use. It's\n // a little on the slow side but let's stick with it for now to keep\n // behavioral changes to a minimum.\n interval: 5007\x2C\n persistent: true\x2C\n ...options\n };\n\n validateFunction(listener\x2C 'listener');\n\n stat = statWatchers.get(filename);\n\n if (stat === undefined) {\n stat = new watchers.StatWatcher(options.bigint);\n stat[watchers.kFSStatWatcherStart](filename\x2C\n options.persistent\x2C options.interval);\n statWatchers.set(filename\x2C stat);\n } else {\n stat[watchers.kFSStatWatcherAddOrCleanRef]('add');\n }\n\n stat.addListener('change'\x2C listener);\n return stat;\n}\n\n/**\n * Stops watching for changes on `filename`.\n * @param {string | Buffer | URL} filename\n * @param {() => any} [listener]\n * @returns {void}\n */\nfunction unwatchFile(filename\x2C listener) {\n filename = getValidatedPath(filename);\n filename = pathModule.resolve(filename);\n const stat = statWatchers.get(filename);\n\n if (stat === undefined) return;\n\n if (typeof listener === 'function') {\n const beforeListenerCount = stat.listenerCount('change');\n stat.removeListener('change'\x2C listener);\n if (stat.listenerCount('change') < beforeListenerCount)\n stat[watchers.kFSStatWatcherAddOrCleanRef]('clean');\n } else {\n stat.removeAllListeners('change');\n stat[watchers.kFSStatWatcherAddOrCleanRef]('cleanAll');\n }\n\n if (stat.listenerCount('change') === 0) {\n stat.stop();\n statWatchers.delete(filename);\n }\n}\n\n\nlet splitRoot;\nif (isWindows) {\n // Regex to find the device root on Windows (e.g. 'c:\\\\')\x2C including trailing\n // slash.\n const splitRootRe = /^(?:[a-zA-Z]:|[\\\\/]{2}[^\\\\/]+[\\\\/][^\\\\/]+)?[\\\\/]*/;\n splitRoot = function splitRoot(str) {\n return RegExpPrototypeExec(splitRootRe\x2C str)[0];\n };\n} else {\n splitRoot = function splitRoot(str) {\n for (let i = 0; i < str.length; ++i) {\n if (StringPrototypeCharCodeAt(str\x2C i) !== CHAR_FORWARD_SLASH)\n return StringPrototypeSlice(str\x2C 0\x2C i);\n }\n return str;\n };\n}\n\nfunction encodeRealpathResult(result\x2C options) {\n if (!options || !options.encoding || options.encoding === 'utf8')\n return result;\n const asBuffer = Buffer.from(result);\n if (options.encoding === 'buffer') {\n return asBuffer;\n }\n return asBuffer.toString(options.encoding);\n}\n\n// Finds the next portion of a (partial) path\x2C up to the next path delimiter\nlet nextPart;\nif (isWindows) {\n nextPart = function nextPart(p\x2C i) {\n for (; i < p.length; ++i) {\n const ch = StringPrototypeCharCodeAt(p\x2C i);\n\n // Check for a separator character\n if (ch === CHAR_BACKWARD_SLASH || ch === CHAR_FORWARD_SLASH)\n return i;\n }\n return -1;\n };\n} else {\n nextPart = function nextPart(p\x2C i) {\n return StringPrototypeIndexOf(p\x2C '/'\x2C i);\n };\n}\n\nconst emptyObj = ObjectCreate(null);\n\n/**\n * Returns the resolved pathname.\n * @param {string | Buffer | URL} p\n * @param {string | { encoding?: string | null; }} [options]\n * @returns {string | Buffer}\n */\nfunction realpathSync(p\x2C options) {\n options = getOptions(options\x2C emptyObj);\n p = toPathIfFileURL(p);\n if (typeof p !== 'string') {\n p += '';\n }\n validatePath(p);\n p = pathModule.resolve(p);\n\n const cache = options[realpathCacheKey];\n const maybeCachedResult = cache?.get(p);\n if (maybeCachedResult) {\n return maybeCachedResult;\n }\n\n const seenLinks = ObjectCreate(null);\n const knownHard = ObjectCreate(null);\n const original = p;\n\n // Current character position in p\n let pos;\n // The partial path so far\x2C including a trailing slash if any\n let current;\n // The partial path without a trailing slash (except when pointing at a root)\n let base;\n // The partial path scanned in the previous round\x2C with slash\n let previous;\n\n // Skip over roots\n current = base = splitRoot(p);\n pos = current.length;\n\n // On windows\x2C check that the root exists. On unix there is no need.\n if (isWindows) {\n const ctx = { path: base };\n binding.lstat(pathModule.toNamespacedPath(base)\x2C false\x2C undefined\x2C ctx);\n handleErrorFromBinding(ctx);\n knownHard[base] = true;\n }\n\n // Walk down the path\x2C swapping out linked path parts for their real\n // values\n // NB: p.length changes.\n while (pos < p.length) {\n // find the next part\n const result = nextPart(p\x2C pos);\n previous = current;\n if (result === -1) {\n const last = StringPrototypeSlice(p\x2C pos);\n current += last;\n base = previous + last;\n pos = p.length;\n } else {\n current += StringPrototypeSlice(p\x2C pos\x2C result + 1);\n base = previous + StringPrototypeSlice(p\x2C pos\x2C result);\n pos = result + 1;\n }\n\n // Continue if not a symlink\x2C break if a pipe/socket\n if (knownHard[base] || cache?.get(base) === base) {\n if (isFileType(binding.statValues\x2C S_IFIFO) ||\n isFileType(binding.statValues\x2C S_IFSOCK)) {\n break;\n }\n continue;\n }\n\n let resolvedLink;\n const maybeCachedResolved = cache?.get(base);\n if (maybeCachedResolved) {\n resolvedLink = maybeCachedResolved;\n } else {\n // Use stats array directly to avoid creating an fs.Stats instance just\n // for our internal use.\n\n const baseLong = pathModule.toNamespacedPath(base);\n const ctx = { path: base };\n const stats = binding.lstat(baseLong\x2C true\x2C undefined\x2C ctx);\n handleErrorFromBinding(ctx);\n\n if (!isFileType(stats\x2C S_IFLNK)) {\n knownHard[base] = true;\n cache?.set(base\x2C base);\n continue;\n }\n\n // Read the link if it wasn't read before\n // dev/ino always return 0 on windows\x2C so skip the check.\n let linkTarget = null;\n let id;\n if (!isWindows) {\n const dev = BigIntPrototypeToString(stats[0]\x2C 32);\n const ino = BigIntPrototypeToString(stats[7]\x2C 32);\n id = `${dev}:${ino}`;\n if (seenLinks[id]) {\n linkTarget = seenLinks[id];\n }\n }\n if (linkTarget === null) {\n const ctx = { path: base };\n binding.stat(baseLong\x2C false\x2C undefined\x2C ctx);\n handleErrorFromBinding(ctx);\n linkTarget = binding.readlink(baseLong\x2C undefined\x2C undefined\x2C ctx);\n handleErrorFromBinding(ctx);\n }\n resolvedLink = pathModule.resolve(previous\x2C linkTarget);\n\n if (cache) cache.set(base\x2C resolvedLink);\n if (!isWindows) seenLinks[id] = linkTarget;\n }\n\n // Resolve the link\x2C then start over\n p = pathModule.resolve(resolvedLink\x2C StringPrototypeSlice(p\x2C pos));\n\n // Skip over roots\n current = base = splitRoot(p);\n pos = current.length;\n\n // On windows\x2C check that the root exists. On unix there is no need.\n if (isWindows && !knownHard[base]) {\n const ctx = { path: base };\n binding.lstat(pathModule.toNamespacedPath(base)\x2C false\x2C undefined\x2C ctx);\n handleErrorFromBinding(ctx);\n knownHard[base] = true;\n }\n }\n\n cache?.set(original\x2C p);\n return encodeRealpathResult(p\x2C options);\n}\n\n/**\n * Returns the resolved pathname.\n * @param {string | Buffer | URL} p\n * @param {string | { encoding?: string; }} [options]\n * @returns {string | Buffer}\n */\nrealpathSync.native = (path\x2C options) => {\n options = getOptions(options\x2C {});\n path = getValidatedPath(path);\n const ctx = { path };\n const result = binding.realpath(path\x2C options.encoding\x2C undefined\x2C ctx);\n handleErrorFromBinding(ctx);\n return result;\n};\n\n/**\n * Asynchronously computes the canonical pathname by\n * resolving `.`\x2C `..` and symbolic links.\n * @param {string | Buffer | URL} p\n * @param {string | { encoding?: string; }} [options]\n * @param {(\n * err?: Error\x2C\n * resolvedPath?: string | Buffer\n * ) => any} callback\n * @returns {void}\n */\nfunction realpath(p\x2C options\x2C callback) {\n callback = typeof options === 'function' ? options : maybeCallback(callback);\n options = getOptions(options\x2C {});\n p = toPathIfFileURL(p);\n\n if (typeof p !== 'string') {\n p += '';\n }\n validatePath(p);\n p = pathModule.resolve(p);\n\n const seenLinks = ObjectCreate(null);\n const knownHard = ObjectCreate(null);\n\n // Current character position in p\n let pos;\n // The partial path so far\x2C including a trailing slash if any\n let current;\n // The partial path without a trailing slash (except when pointing at a root)\n let base;\n // The partial path scanned in the previous round\x2C with slash\n let previous;\n\n current = base = splitRoot(p);\n pos = current.length;\n\n // On windows\x2C check that the root exists. On unix there is no need.\n if (isWindows && !knownHard[base]) {\n fs.lstat(base\x2C (err\x2C stats) => {\n if (err) return callback(err);\n knownHard[base] = true;\n LOOP();\n });\n } else {\n process.nextTick(LOOP);\n }\n\n // Walk down the path\x2C swapping out linked path parts for their real\n // values\n function LOOP() {\n // Stop if scanned past end of path\n if (pos >= p.length) {\n return callback(null\x2C encodeRealpathResult(p\x2C options));\n }\n\n // find the next part\n const result = nextPart(p\x2C pos);\n previous = current;\n if (result === -1) {\n const last = StringPrototypeSlice(p\x2C pos);\n current += last;\n base = previous + last;\n pos = p.length;\n } else {\n current += StringPrototypeSlice(p\x2C pos\x2C result + 1);\n base = previous + StringPrototypeSlice(p\x2C pos\x2C result);\n pos = result + 1;\n }\n\n // Continue if not a symlink\x2C break if a pipe/socket\n if (knownHard[base]) {\n if (isFileType(binding.statValues\x2C S_IFIFO) ||\n isFileType(binding.statValues\x2C S_IFSOCK)) {\n return callback(null\x2C encodeRealpathResult(p\x2C options));\n }\n return process.nextTick(LOOP);\n }\n\n return fs.lstat(base\x2C { bigint: true }\x2C gotStat);\n }\n\n function gotStat(err\x2C stats) {\n if (err) return callback(err);\n\n // If not a symlink\x2C skip to the next path part\n if (!stats.isSymbolicLink()) {\n knownHard[base] = true;\n return process.nextTick(LOOP);\n }\n\n // Stat & read the link if not read before.\n // Call `gotTarget()` as soon as the link target is known.\n // `dev`/`ino` always return 0 on windows\x2C so skip the check.\n let id;\n if (!isWindows) {\n const dev = BigIntPrototypeToString(stats.dev\x2C 32);\n const ino = BigIntPrototypeToString(stats.ino\x2C 32);\n id = `${dev}:${ino}`;\n if (seenLinks[id]) {\n return gotTarget(null\x2C seenLinks[id]);\n }\n }\n fs.stat(base\x2C (err) => {\n if (err) return callback(err);\n\n fs.readlink(base\x2C (err\x2C target) => {\n if (!isWindows) seenLinks[id] = target;\n gotTarget(err\x2C target);\n });\n });\n }\n\n function gotTarget(err\x2C target) {\n if (err) return callback(err);\n\n gotResolvedLink(pathModule.resolve(previous\x2C target));\n }\n\n function gotResolvedLink(resolvedLink) {\n // Resolve the link\x2C then start over\n p = pathModule.resolve(resolvedLink\x2C StringPrototypeSlice(p\x2C pos));\n current = base = splitRoot(p);\n pos = current.length;\n\n // On windows\x2C check that the root exists. On unix there is no need.\n if (isWindows && !knownHard[base]) {\n fs.lstat(base\x2C (err) => {\n if (err) return callback(err);\n knownHard[base] = true;\n LOOP();\n });\n } else {\n process.nextTick(LOOP);\n }\n }\n}\n\n/**\n * Asynchronously computes the canonical pathname by\n * resolving `.`\x2C `..` and symbolic links.\n * @param {string | Buffer | URL} p\n * @param {string | { encoding?: string; }} [options]\n * @param {(\n * err?: Error\x2C\n * resolvedPath?: string | Buffer\n * ) => any} callback\n * @returns {void}\n */\nrealpath.native = (path\x2C options\x2C callback) => {\n callback = makeCallback(callback || options);\n options = getOptions(options\x2C {});\n path = getValidatedPath(path);\n const req = new FSReqCallback();\n req.oncomplete = callback;\n return binding.realpath(path\x2C options.encoding\x2C req);\n};\n\n/**\n * Creates a unique temporary directory.\n * @param {string} prefix\n * @param {string | { encoding?: string; }} [options]\n * @param {(\n * err?: Error\x2C\n * directory?: string\n * ) => any} callback\n * @returns {void}\n */\nfunction mkdtemp(prefix\x2C options\x2C callback) {\n callback = makeCallback(typeof options === 'function' ? options : callback);\n options = getOptions(options\x2C {});\n\n validateString(prefix\x2C 'prefix');\n nullCheck(prefix\x2C 'prefix');\n warnOnNonPortableTemplate(prefix);\n const req = new FSReqCallback();\n req.oncomplete = callback;\n binding.mkdtemp(`${prefix}XXXXXX`\x2C options.encoding\x2C req);\n}\n\n/**\n * Synchronously creates a unique temporary directory.\n * @param {string} prefix\n * @param {string | { encoding?: string; }} [options]\n * @returns {string}\n */\nfunction mkdtempSync(prefix\x2C options) {\n options = getOptions(options\x2C {});\n\n validateString(prefix\x2C 'prefix');\n nullCheck(prefix\x2C 'prefix');\n warnOnNonPortableTemplate(prefix);\n const path = `${prefix}XXXXXX`;\n const ctx = { path };\n const result = binding.mkdtemp(path\x2C options.encoding\x2C\n undefined\x2C ctx);\n handleErrorFromBinding(ctx);\n return result;\n}\n\n/**\n * Asynchronously copies `src` to `dest`. By\n * default\x2C `dest` is overwritten if it already exists.\n * @param {string | Buffer | URL} src\n * @param {string | Buffer | URL} dest\n * @param {number} [mode]\n * @param {() => any} callback\n * @returns {void}\n */\nfunction copyFile(src\x2C dest\x2C mode\x2C callback) {\n if (typeof mode === 'function') {\n callback = mode;\n mode = 0;\n }\n\n src = getValidatedPath(src\x2C 'src');\n dest = getValidatedPath(dest\x2C 'dest');\n\n src = pathModule._makeLong(src);\n dest = pathModule._makeLong(dest);\n mode = getValidMode(mode\x2C 'copyFile');\n callback = makeCallback(callback);\n\n const req = new FSReqCallback();\n req.oncomplete = callback;\n binding.copyFile(src\x2C dest\x2C mode\x2C req);\n}\n\n/**\n * Synchronously copies `src` to `dest`. By\n * default\x2C `dest` is overwritten if it already exists.\n * @param {string | Buffer | URL} src\n * @param {string | Buffer | URL} dest\n * @param {number} [mode]\n * @returns {void}\n */\nfunction copyFileSync(src\x2C dest\x2C mode) {\n src = getValidatedPath(src\x2C 'src');\n dest = getValidatedPath(dest\x2C 'dest');\n\n const ctx = { path: src\x2C dest }; // non-prefixed\n\n src = pathModule._makeLong(src);\n dest = pathModule._makeLong(dest);\n mode = getValidMode(mode\x2C 'copyFile');\n binding.copyFile(src\x2C dest\x2C mode\x2C undefined\x2C ctx);\n handleErrorFromBinding(ctx);\n}\n\nfunction lazyLoadStreams() {\n if (!ReadStream) {\n ({ ReadStream\x2C WriteStream } = require('internal/fs/streams'));\n FileReadStream = ReadStream;\n FileWriteStream = WriteStream;\n }\n}\n\n/**\n * Creates a readable stream with a default `highWaterMark`\n * of 64 kb.\n * @param {string | Buffer | URL} path\n * @param {string | {\n * flags?: string;\n * encoding?: string;\n * fd?: number | FileHandle;\n * mode?: number;\n * autoClose?: boolean;\n * emitClose?: boolean;\n * start: number;\n * end?: number;\n * highWaterMark?: number;\n * fs?: Object | null;\n * }} [options]\n * @returns {ReadStream}\n */\nfunction createReadStream(path\x2C options) {\n lazyLoadStreams();\n return new ReadStream(path\x2C options);\n}\n\n/**\n * Creates a write stream.\n * @param {string | Buffer | URL} path\n * @param {string | {\n * flags?: string;\n * encoding?: string;\n * fd?: number | FileHandle;\n * mode?: number;\n * autoClose?: boolean;\n * emitClose?: boolean;\n * start: number;\n * fs?: Object | null;\n * }} [options]\n * @returns {WriteStream}\n */\nfunction createWriteStream(path\x2C options) {\n lazyLoadStreams();\n return new WriteStream(path\x2C options);\n}\n\nmodule.exports = fs = {\n appendFile\x2C\n appendFileSync\x2C\n access\x2C\n accessSync\x2C\n chown\x2C\n chownSync\x2C\n chmod\x2C\n chmodSync\x2C\n close\x2C\n closeSync\x2C\n copyFile\x2C\n copyFileSync\x2C\n createReadStream\x2C\n createWriteStream\x2C\n exists\x2C\n existsSync\x2C\n fchown\x2C\n fchownSync\x2C\n fchmod\x2C\n fchmodSync\x2C\n fdatasync\x2C\n fdatasyncSync\x2C\n fstat\x2C\n fstatSync\x2C\n fsync\x2C\n fsyncSync\x2C\n ftruncate\x2C\n ftruncateSync\x2C\n futimes\x2C\n futimesSync\x2C\n lchown\x2C\n lchownSync\x2C\n lchmod: constants.O_SYMLINK !== undefined ? lchmod : undefined\x2C\n lchmodSync: constants.O_SYMLINK !== undefined ? lchmodSync : undefined\x2C\n link\x2C\n linkSync\x2C\n lstat\x2C\n lstatSync\x2C\n lutimes\x2C\n lutimesSync\x2C\n mkdir\x2C\n mkdirSync\x2C\n mkdtemp\x2C\n mkdtempSync\x2C\n open\x2C\n openSync\x2C\n opendir\x2C\n opendirSync\x2C\n readdir\x2C\n readdirSync\x2C\n read\x2C\n readSync\x2C\n readv\x2C\n readvSync\x2C\n readFile\x2C\n readFileSync\x2C\n readlink\x2C\n readlinkSync\x2C\n realpath\x2C\n realpathSync\x2C\n rename\x2C\n renameSync\x2C\n rm\x2C\n rmSync\x2C\n rmdir\x2C\n rmdirSync\x2C\n stat\x2C\n statSync\x2C\n symlink\x2C\n symlinkSync\x2C\n truncate\x2C\n truncateSync\x2C\n unwatchFile\x2C\n unlink\x2C\n unlinkSync\x2C\n utimes\x2C\n utimesSync\x2C\n watch\x2C\n watchFile\x2C\n writeFile\x2C\n writeFileSync\x2C\n write\x2C\n writeSync\x2C\n writev\x2C\n writevSync\x2C\n Dir\x2C\n Dirent\x2C\n Stats\x2C\n\n get ReadStream() {\n lazyLoadStreams();\n return ReadStream;\n }\x2C\n\n set ReadStream(val) {\n ReadStream = val;\n }\x2C\n\n get WriteStream() {\n lazyLoadStreams();\n return WriteStream;\n }\x2C\n\n set WriteStream(val) {\n WriteStream = val;\n }\x2C\n\n // Legacy names... these have to be separate because of how graceful-fs\n // (and possibly other) modules monkey patch the values.\n get FileReadStream() {\n lazyLoadStreams();\n return FileReadStream;\n }\x2C\n\n set FileReadStream(val) {\n FileReadStream = val;\n }\x2C\n\n get FileWriteStream() {\n lazyLoadStreams();\n return FileWriteStream;\n }\x2C\n\n set FileWriteStream(val) {\n FileWriteStream = val;\n }\x2C\n\n // For tests\n _toUnixTimestamp: toUnixTimestamp\n};\n\nObjectDefineProperties(fs\x2C {\n F_OK: { enumerable: true\x2C value: F_OK || 0 }\x2C\n R_OK: { enumerable: true\x2C value: R_OK || 0 }\x2C\n W_OK: { enumerable: true\x2C value: W_OK || 0 }\x2C\n X_OK: { enumerable: true\x2C value: X_OK || 0 }\x2C\n constants: {\n configurable: false\x2C\n enumerable: true\x2C\n value: constants\n }\x2C\n promises: {\n configurable: true\x2C\n enumerable: true\x2C\n get() {\n if (promises === null)\n promises = require('internal/fs/promises').exports;\n return promises;\n }\n }\n});\n
code-source-info,0x16e49095890e,76,13628,14192,C0O13628C2O13662C7O13669C13O13709C20O13716C25O13727C28O13749C32O13766C40O13789C46O13827C49O13848C57O13877C73O13884C80O13946C85O13946C90O13970C93O13981C99O14020C104O14020C110O14043C112O14058C116O14073C121O14081C128O14086C131O14097C136O14097C151O14081C157O14191,,
tick,0x7f4debd44473,127734,0,0x0,3,0x11e9ce0,0x16e4909574a5,0x16e490956d54,0x167e0307d281,0xb6d53549b45,0xb6d53549025,0x158e77f
tick,0x7f4debd50654,127752,0,0x0,3,0x11e9ce0,0x16e4909574a5,0x16e490956d54,0x167e0307d281,0xb6d53549b45,0xb6d53549025,0x158e77f
tick,0xfb320f,127758,0,0x0,3,0x11e9ce0,0x16e4909574a5,0x16e490956d54,0x167e0307d281,0xb6d53549b45,0xb6d53549025,0x158e77f
code-creation,LazyCompile,10,127820,0x16e49095e8b6,37, node:internal/fs/utils:679:42,0xe5ca5ce0938,~
script-source,77,node:internal/fs/utils,'use strict';\n\nconst {\n ArrayIsArray\x2C\n BigInt\x2C\n Date\x2C\n DateNow\x2C\n DatePrototypeGetTime\x2C\n ErrorCaptureStackTrace\x2C\n FunctionPrototypeCall\x2C\n Number\x2C\n NumberIsFinite\x2C\n NumberIsInteger\x2C\n MathMin\x2C\n ObjectIs\x2C\n ObjectPrototypeHasOwnProperty\x2C\n ObjectSetPrototypeOf\x2C\n ReflectApply\x2C\n ReflectOwnKeys\x2C\n StringPrototypeEndsWith\x2C\n StringPrototypeIncludes\x2C\n StringPrototypeReplace\x2C\n Symbol\x2C\n TypedArrayPrototypeIncludes\x2C\n} = primordials;\n\nconst { Buffer } = require('buffer');\nconst {\n codes: {\n ERR_FS_EISDIR\x2C\n ERR_FS_INVALID_SYMLINK_TYPE\x2C\n ERR_INVALID_ARG_TYPE\x2C\n ERR_INVALID_ARG_VALUE\x2C\n ERR_OUT_OF_RANGE\n }\x2C\n hideStackFrames\x2C\n uvException\n} = require('internal/errors');\nconst {\n isArrayBufferView\x2C\n isUint8Array\x2C\n isDate\x2C\n isBigUint64Array\n} = require('internal/util/types');\nconst { once } = require('internal/util');\nconst { toPathIfFileURL } = require('internal/url');\nconst {\n validateAbortSignal\x2C\n validateBoolean\x2C\n validateInt32\x2C\n validateInteger\x2C\n validateObject\x2C\n validateUint32\x2C\n} = require('internal/validators');\nconst pathModule = require('path');\nconst kType = Symbol('type');\nconst kStats = Symbol('stats');\nconst assert = require('internal/assert');\n\nconst {\n fs: {\n F_OK = 0\x2C\n W_OK = 0\x2C\n R_OK = 0\x2C\n X_OK = 0\x2C\n COPYFILE_EXCL\x2C\n COPYFILE_FICLONE\x2C\n COPYFILE_FICLONE_FORCE\x2C\n O_APPEND\x2C\n O_CREAT\x2C\n O_EXCL\x2C\n O_RDONLY\x2C\n O_RDWR\x2C\n O_SYNC\x2C\n O_TRUNC\x2C\n O_WRONLY\x2C\n S_IFBLK\x2C\n S_IFCHR\x2C\n S_IFDIR\x2C\n S_IFIFO\x2C\n S_IFLNK\x2C\n S_IFMT\x2C\n S_IFREG\x2C\n S_IFSOCK\x2C\n UV_FS_SYMLINK_DIR\x2C\n UV_FS_SYMLINK_JUNCTION\x2C\n UV_DIRENT_UNKNOWN\x2C\n UV_DIRENT_FILE\x2C\n UV_DIRENT_DIR\x2C\n UV_DIRENT_LINK\x2C\n UV_DIRENT_FIFO\x2C\n UV_DIRENT_SOCKET\x2C\n UV_DIRENT_CHAR\x2C\n UV_DIRENT_BLOCK\n }\x2C\n os: {\n errno: {\n EISDIR\n }\n }\n} = internalBinding('constants');\n\n// The access modes can be any of F_OK\x2C R_OK\x2C W_OK or X_OK. Some might not be\n// available on specific systems. They can be used in combination as well\n// (F_OK | R_OK | W_OK | X_OK).\nconst kMinimumAccessMode = MathMin(F_OK\x2C W_OK\x2C R_OK\x2C X_OK);\nconst kMaximumAccessMode = F_OK | W_OK | R_OK | X_OK;\n\nconst kDefaultCopyMode = 0;\n// The copy modes can be any of COPYFILE_EXCL\x2C COPYFILE_FICLONE or\n// COPYFILE_FICLONE_FORCE. They can be used in combination as well\n// (COPYFILE_EXCL | COPYFILE_FICLONE | COPYFILE_FICLONE_FORCE).\nconst kMinimumCopyMode = MathMin(\n kDefaultCopyMode\x2C\n COPYFILE_EXCL\x2C\n COPYFILE_FICLONE\x2C\n COPYFILE_FICLONE_FORCE\n);\nconst kMaximumCopyMode = COPYFILE_EXCL |\n COPYFILE_FICLONE |\n COPYFILE_FICLONE_FORCE;\n\n// Most platforms don't allow reads or writes >= 2 GB.\n// See https://github.com/libuv/libuv/pull/1501.\nconst kIoMaxLength = 2 ** 31 - 1;\n\n// Use 64kb in case the file type is not a regular file and thus do not know the\n// actual file size. Increasing the value further results in more frequent over\n// allocation for small files and consumes CPU time and memory that should be\n// used else wise.\n// Use up to 512kb per read otherwise to partition reading big files to prevent\n// blocking other threads in case the available threads are all in use.\nconst kReadFileUnknownBufferLength = 64 * 1024;\nconst kReadFileBufferLength = 512 * 1024;\n\nconst kWriteFileMaxChunkSize = 512 * 1024;\n\nconst kMaxUserId = 2 ** 32 - 1;\n\nconst isWindows = process.platform === 'win32';\n\nlet fs;\nfunction lazyLoadFs() {\n if (!fs) {\n fs = require('fs');\n }\n return fs;\n}\n\nfunction assertEncoding(encoding) {\n if (encoding && !Buffer.isEncoding(encoding)) {\n const reason = 'is invalid encoding';\n throw new ERR_INVALID_ARG_VALUE(encoding\x2C 'encoding'\x2C reason);\n }\n}\n\nclass Dirent {\n constructor(name\x2C type) {\n this.name = name;\n this[kType] = type;\n }\n\n isDirectory() {\n return this[kType] === UV_DIRENT_DIR;\n }\n\n isFile() {\n return this[kType] === UV_DIRENT_FILE;\n }\n\n isBlockDevice() {\n return this[kType] === UV_DIRENT_BLOCK;\n }\n\n isCharacterDevice() {\n return this[kType] === UV_DIRENT_CHAR;\n }\n\n isSymbolicLink() {\n return this[kType] === UV_DIRENT_LINK;\n }\n\n isFIFO() {\n return this[kType] === UV_DIRENT_FIFO;\n }\n\n isSocket() {\n return this[kType] === UV_DIRENT_SOCKET;\n }\n}\n\nclass DirentFromStats extends Dirent {\n constructor(name\x2C stats) {\n super(name\x2C null);\n this[kStats] = stats;\n }\n}\n\nfor (const name of ReflectOwnKeys(Dirent.prototype)) {\n if (name === 'constructor') {\n continue;\n }\n DirentFromStats.prototype[name] = function() {\n return this[kStats][name]();\n };\n}\n\nfunction copyObject(source) {\n const target = {};\n for (const key in source)\n target[key] = source[key];\n return target;\n}\n\nconst bufferSep = Buffer.from(pathModule.sep);\n\nfunction join(path\x2C name) {\n if ((typeof path === 'string' || isUint8Array(path)) &&\n name === undefined) {\n return path;\n }\n\n if (typeof path === 'string' && isUint8Array(name)) {\n const pathBuffer = Buffer.from(pathModule.join(path\x2C pathModule.sep));\n return Buffer.concat([pathBuffer\x2C name]);\n }\n\n if (typeof path === 'string' && typeof name === 'string') {\n return pathModule.join(path\x2C name);\n }\n\n if (isUint8Array(path) && isUint8Array(name)) {\n return Buffer.concat([path\x2C bufferSep\x2C name]);\n }\n\n throw new ERR_INVALID_ARG_TYPE(\n 'path'\x2C ['string'\x2C 'Buffer']\x2C path);\n}\n\nfunction getDirents(path\x2C { 0: names\x2C 1: types }\x2C callback) {\n let i;\n if (typeof callback === 'function') {\n const len = names.length;\n let toFinish = 0;\n callback = once(callback);\n for (i = 0; i < len; i++) {\n const type = types[i];\n if (type === UV_DIRENT_UNKNOWN) {\n const name = names[i];\n const idx = i;\n toFinish++;\n let filepath;\n try {\n filepath = join(path\x2C name);\n } catch (err) {\n callback(err);\n return;\n }\n lazyLoadFs().lstat(filepath\x2C (err\x2C stats) => {\n if (err) {\n callback(err);\n return;\n }\n names[idx] = new DirentFromStats(name\x2C stats);\n if (--toFinish === 0) {\n callback(null\x2C names);\n }\n });\n } else {\n names[i] = new Dirent(names[i]\x2C types[i]);\n }\n }\n if (toFinish === 0) {\n callback(null\x2C names);\n }\n } else {\n const len = names.length;\n for (i = 0; i < len; i++) {\n names[i] = getDirent(path\x2C names[i]\x2C types[i]);\n }\n return names;\n }\n}\n\nfunction getDirent(path\x2C name\x2C type\x2C callback) {\n if (typeof callback === 'function') {\n if (type === UV_DIRENT_UNKNOWN) {\n let filepath;\n try {\n filepath = join(path\x2C name);\n } catch (err) {\n callback(err);\n return;\n }\n lazyLoadFs().lstat(filepath\x2C (err\x2C stats) => {\n if (err) {\n callback(err);\n return;\n }\n callback(null\x2C new DirentFromStats(name\x2C stats));\n });\n } else {\n callback(null\x2C new Dirent(name\x2C type));\n }\n } else if (type === UV_DIRENT_UNKNOWN) {\n const stats = lazyLoadFs().lstatSync(join(path\x2C name));\n return new DirentFromStats(name\x2C stats);\n } else {\n return new Dirent(name\x2C type);\n }\n}\n\nfunction getOptions(options\x2C defaultOptions) {\n if (options === null || options === undefined ||\n typeof options === 'function') {\n return defaultOptions;\n }\n\n if (typeof options === 'string') {\n defaultOptions = { ...defaultOptions };\n defaultOptions.encoding = options;\n options = defaultOptions;\n } else if (typeof options !== 'object') {\n throw new ERR_INVALID_ARG_TYPE('options'\x2C ['string'\x2C 'Object']\x2C options);\n }\n\n if (options.encoding !== 'buffer')\n assertEncoding(options.encoding);\n\n if (options.signal !== undefined) {\n validateAbortSignal(options.signal\x2C 'options.signal');\n }\n return options;\n}\n\n/**\n * @param {InternalFSBinding.FSSyncContext} ctx\n */\nfunction handleErrorFromBinding(ctx) {\n if (ctx.errno !== undefined) { // libuv error numbers\n const err = uvException(ctx);\n ErrorCaptureStackTrace(err\x2C handleErrorFromBinding);\n throw err;\n }\n if (ctx.error !== undefined) { // Errors created in C++ land.\n // TODO(joyeecheung): currently\x2C ctx.error are encoding errors\n // usually caused by memory problems. We need to figure out proper error\n // code(s) for this.\n ErrorCaptureStackTrace(ctx.error\x2C handleErrorFromBinding);\n throw ctx.error;\n }\n}\n\n// Check if the path contains null types if it is a string nor Uint8Array\x2C\n// otherwise return silently.\nconst nullCheck = hideStackFrames((path\x2C propName\x2C throwError = true) => {\n const pathIsString = typeof path === 'string';\n const pathIsUint8Array = isUint8Array(path);\n\n // We can only perform meaningful checks on strings and Uint8Arrays.\n if ((!pathIsString && !pathIsUint8Array) ||\n (pathIsString && !StringPrototypeIncludes(path\x2C '\\u0000')) ||\n (pathIsUint8Array && !TypedArrayPrototypeIncludes(path\x2C 0))) {\n return;\n }\n\n const err = new ERR_INVALID_ARG_VALUE(\n propName\x2C\n path\x2C\n 'must be a string or Uint8Array without null bytes'\n );\n if (throwError) {\n throw err;\n }\n return err;\n});\n\nfunction preprocessSymlinkDestination(path\x2C type\x2C linkPath) {\n if (!isWindows) {\n // No preprocessing is needed on Unix.\n return path;\n }\n path = '' + path;\n if (type === 'junction') {\n // Junctions paths need to be absolute and \\\\?\\-prefixed.\n // A relative target is relative to the link's parent directory.\n path = pathModule.resolve(linkPath\x2C '..'\x2C path);\n return pathModule.toNamespacedPath(path);\n }\n if (pathModule.isAbsolute(path)) {\n // If the path is absolute\x2C use the \\\\?\\-prefix to enable long filenames\n return pathModule.toNamespacedPath(path);\n }\n // Windows symlinks don't tolerate forward slashes.\n return StringPrototypeReplace(path\x2C /\\//g\x2C '\\\\');\n}\n\n// Constructor for file stats.\nfunction StatsBase(dev\x2C mode\x2C nlink\x2C uid\x2C gid\x2C rdev\x2C blksize\x2C\n ino\x2C size\x2C blocks) {\n this.dev = dev;\n this.mode = mode;\n this.nlink = nlink;\n this.uid = uid;\n this.gid = gid;\n this.rdev = rdev;\n this.blksize = blksize;\n this.ino = ino;\n this.size = size;\n this.blocks = blocks;\n}\n\nStatsBase.prototype.isDirectory = function() {\n return this._checkModeProperty(S_IFDIR);\n};\n\nStatsBase.prototype.isFile = function() {\n return this._checkModeProperty(S_IFREG);\n};\n\nStatsBase.prototype.isBlockDevice = function() {\n return this._checkModeProperty(S_IFBLK);\n};\n\nStatsBase.prototype.isCharacterDevice = function() {\n return this._checkModeProperty(S_IFCHR);\n};\n\nStatsBase.prototype.isSymbolicLink = function() {\n return this._checkModeProperty(S_IFLNK);\n};\n\nStatsBase.prototype.isFIFO = function() {\n return this._checkModeProperty(S_IFIFO);\n};\n\nStatsBase.prototype.isSocket = function() {\n return this._checkModeProperty(S_IFSOCK);\n};\n\nconst kNsPerMsBigInt = 10n ** 6n;\nconst kNsPerSecBigInt = 10n ** 9n;\nconst kMsPerSec = 10 ** 3;\nconst kNsPerMs = 10 ** 6;\nfunction msFromTimeSpec(sec\x2C nsec) {\n return sec * kMsPerSec + nsec / kNsPerMs;\n}\n\nfunction nsFromTimeSpecBigInt(sec\x2C nsec) {\n return sec * kNsPerSecBigInt + nsec;\n}\n\n// The Date constructor performs Math.floor() to the timestamp.\n// https://www.ecma-international.org/ecma-262/#sec-timeclip\n// Since there may be a precision loss when the timestamp is\n// converted to a floating point number\x2C we manually round\n// the timestamp here before passing it to Date().\n// Refs: https://github.com/nodejs/node/pull/12607\nfunction dateFromMs(ms) {\n return new Date(Number(ms) + 0.5);\n}\n\nfunction BigIntStats(dev\x2C mode\x2C nlink\x2C uid\x2C gid\x2C rdev\x2C blksize\x2C\n ino\x2C size\x2C blocks\x2C\n atimeNs\x2C mtimeNs\x2C ctimeNs\x2C birthtimeNs) {\n ReflectApply(StatsBase\x2C this\x2C [dev\x2C mode\x2C nlink\x2C uid\x2C gid\x2C rdev\x2C blksize\x2C\n ino\x2C size\x2C blocks]);\n\n this.atimeMs = atimeNs / kNsPerMsBigInt;\n this.mtimeMs = mtimeNs / kNsPerMsBigInt;\n this.ctimeMs = ctimeNs / kNsPerMsBigInt;\n this.birthtimeMs = birthtimeNs / kNsPerMsBigInt;\n this.atimeNs = atimeNs;\n this.mtimeNs = mtimeNs;\n this.ctimeNs = ctimeNs;\n this.birthtimeNs = birthtimeNs;\n this.atime = dateFromMs(this.atimeMs);\n this.mtime = dateFromMs(this.mtimeMs);\n this.ctime = dateFromMs(this.ctimeMs);\n this.birthtime = dateFromMs(this.birthtimeMs);\n}\n\nObjectSetPrototypeOf(BigIntStats.prototype\x2C StatsBase.prototype);\nObjectSetPrototypeOf(BigIntStats\x2C StatsBase);\n\nBigIntStats.prototype._checkModeProperty = function(property) {\n if (isWindows && (property === S_IFIFO || property === S_IFBLK ||\n property === S_IFSOCK)) {\n return false; // Some types are not available on Windows\n }\n return (this.mode & BigInt(S_IFMT)) === BigInt(property);\n};\n\nfunction Stats(dev\x2C mode\x2C nlink\x2C uid\x2C gid\x2C rdev\x2C blksize\x2C\n ino\x2C size\x2C blocks\x2C\n atimeMs\x2C mtimeMs\x2C ctimeMs\x2C birthtimeMs) {\n FunctionPrototypeCall(StatsBase\x2C this\x2C dev\x2C mode\x2C nlink\x2C uid\x2C gid\x2C rdev\x2C\n blksize\x2C ino\x2C size\x2C blocks);\n this.atimeMs = atimeMs;\n this.mtimeMs = mtimeMs;\n this.ctimeMs = ctimeMs;\n this.birthtimeMs = birthtimeMs;\n this.atime = dateFromMs(atimeMs);\n this.mtime = dateFromMs(mtimeMs);\n this.ctime = dateFromMs(ctimeMs);\n this.birthtime = dateFromMs(birthtimeMs);\n}\n\nObjectSetPrototypeOf(Stats.prototype\x2C StatsBase.prototype);\nObjectSetPrototypeOf(Stats\x2C StatsBase);\n\n// HACK: Workaround for https://github.com/standard-things/esm/issues/821.\n// TODO(ronag): Remove this as soon as `esm` publishes a fixed version.\nStats.prototype.isFile = StatsBase.prototype.isFile;\n\nStats.prototype._checkModeProperty = function(property) {\n if (isWindows && (property === S_IFIFO || property === S_IFBLK ||\n property === S_IFSOCK)) {\n return false; // Some types are not available on Windows\n }\n return (this.mode & S_IFMT) === property;\n};\n\n/**\n * @param {Float64Array | BigUint64Array} stats\n * @param {number} offset\n * @returns\n */\nfunction getStatsFromBinding(stats\x2C offset = 0) {\n if (isBigUint64Array(stats)) {\n return new BigIntStats(\n stats[0 + offset]\x2C stats[1 + offset]\x2C stats[2 + offset]\x2C\n stats[3 + offset]\x2C stats[4 + offset]\x2C stats[5 + offset]\x2C\n stats[6 + offset]\x2C stats[7 + offset]\x2C stats[8 + offset]\x2C\n stats[9 + offset]\x2C\n nsFromTimeSpecBigInt(stats[10 + offset]\x2C stats[11 + offset])\x2C\n nsFromTimeSpecBigInt(stats[12 + offset]\x2C stats[13 + offset])\x2C\n nsFromTimeSpecBigInt(stats[14 + offset]\x2C stats[15 + offset])\x2C\n nsFromTimeSpecBigInt(stats[16 + offset]\x2C stats[17 + offset])\n );\n }\n return new Stats(\n stats[0 + offset]\x2C stats[1 + offset]\x2C stats[2 + offset]\x2C\n stats[3 + offset]\x2C stats[4 + offset]\x2C stats[5 + offset]\x2C\n stats[6 + offset]\x2C stats[7 + offset]\x2C stats[8 + offset]\x2C\n stats[9 + offset]\x2C\n msFromTimeSpec(stats[10 + offset]\x2C stats[11 + offset])\x2C\n msFromTimeSpec(stats[12 + offset]\x2C stats[13 + offset])\x2C\n msFromTimeSpec(stats[14 + offset]\x2C stats[15 + offset])\x2C\n msFromTimeSpec(stats[16 + offset]\x2C stats[17 + offset])\n );\n}\n\nfunction stringToFlags(flags\x2C name = 'flags') {\n if (typeof flags === 'number') {\n validateInt32(flags\x2C name);\n return flags;\n }\n\n if (flags == null) {\n return O_RDONLY;\n }\n\n switch (flags) {\n case 'r' : return O_RDONLY;\n case 'rs' : // Fall through.\n case 'sr' : return O_RDONLY | O_SYNC;\n case 'r+' : return O_RDWR;\n case 'rs+' : // Fall through.\n case 'sr+' : return O_RDWR | O_SYNC;\n\n case 'w' : return O_TRUNC | O_CREAT | O_WRONLY;\n case 'wx' : // Fall through.\n case 'xw' : return O_TRUNC | O_CREAT | O_WRONLY | O_EXCL;\n\n case 'w+' : return O_TRUNC | O_CREAT | O_RDWR;\n case 'wx+': // Fall through.\n case 'xw+': return O_TRUNC | O_CREAT | O_RDWR | O_EXCL;\n\n case 'a' : return O_APPEND | O_CREAT | O_WRONLY;\n case 'ax' : // Fall through.\n case 'xa' : return O_APPEND | O_CREAT | O_WRONLY | O_EXCL;\n case 'as' : // Fall through.\n case 'sa' : return O_APPEND | O_CREAT | O_WRONLY | O_SYNC;\n\n case 'a+' : return O_APPEND | O_CREAT | O_RDWR;\n case 'ax+': // Fall through.\n case 'xa+': return O_APPEND | O_CREAT | O_RDWR | O_EXCL;\n case 'as+': // Fall through.\n case 'sa+': return O_APPEND | O_CREAT | O_RDWR | O_SYNC;\n }\n\n throw new ERR_INVALID_ARG_VALUE('flags'\x2C flags);\n}\n\nconst stringToSymlinkType = hideStackFrames((type) => {\n let flags = 0;\n if (typeof type === 'string') {\n switch (type) {\n case 'dir':\n flags |= UV_FS_SYMLINK_DIR;\n break;\n case 'junction':\n flags |= UV_FS_SYMLINK_JUNCTION;\n break;\n case 'file':\n break;\n default:\n throw new ERR_FS_INVALID_SYMLINK_TYPE(type);\n }\n }\n return flags;\n});\n\n// converts Date or number to a fractional UNIX timestamp\nfunction toUnixTimestamp(time\x2C name = 'time') {\n // eslint-disable-next-line eqeqeq\n if (typeof time === 'string' && +time == time) {\n return +time;\n }\n if (NumberIsFinite(time)) {\n if (time < 0) {\n return DateNow() / 1000;\n }\n return time;\n }\n if (isDate(time)) {\n // Convert to 123.456 UNIX timestamp\n return DatePrototypeGetTime(time) / 1000;\n }\n throw new ERR_INVALID_ARG_TYPE(name\x2C ['Date'\x2C 'Time in seconds']\x2C time);\n}\n\nconst validateOffsetLengthRead = hideStackFrames(\n (offset\x2C length\x2C bufferLength) => {\n if (offset < 0) {\n throw new ERR_OUT_OF_RANGE('offset'\x2C '>= 0'\x2C offset);\n }\n if (length < 0) {\n throw new ERR_OUT_OF_RANGE('length'\x2C '>= 0'\x2C length);\n }\n if (offset + length > bufferLength) {\n throw new ERR_OUT_OF_RANGE('length'\x2C\n `<= ${bufferLength - offset}`\x2C length);\n }\n }\n);\n\nconst validateOffsetLengthWrite = hideStackFrames(\n (offset\x2C length\x2C byteLength) => {\n if (offset > byteLength) {\n throw new ERR_OUT_OF_RANGE('offset'\x2C `<= ${byteLength}`\x2C offset);\n }\n\n if (length > byteLength - offset) {\n throw new ERR_OUT_OF_RANGE('length'\x2C `<= ${byteLength - offset}`\x2C length);\n }\n\n if (length < 0) {\n throw new ERR_OUT_OF_RANGE('length'\x2C '>= 0'\x2C length);\n }\n\n validateInt32(length\x2C 'length'\x2C 0);\n }\n);\n\nconst validatePath = hideStackFrames((path\x2C propName = 'path') => {\n if (typeof path !== 'string' && !isUint8Array(path)) {\n throw new ERR_INVALID_ARG_TYPE(propName\x2C ['string'\x2C 'Buffer'\x2C 'URL']\x2C path);\n }\n\n const err = nullCheck(path\x2C propName\x2C false);\n\n if (err !== undefined) {\n throw err;\n }\n});\n\nconst getValidatedPath = hideStackFrames((fileURLOrPath\x2C propName = 'path') => {\n const path = toPathIfFileURL(fileURLOrPath);\n validatePath(path\x2C propName);\n return path;\n});\n\nconst getValidatedFd = hideStackFrames((fd\x2C propName = 'fd') => {\n if (ObjectIs(fd\x2C -0)) {\n return 0;\n }\n\n validateInt32(fd\x2C propName\x2C 0);\n\n return fd;\n});\n\nconst validateBufferArray = hideStackFrames((buffers\x2C propName = 'buffers') => {\n if (!ArrayIsArray(buffers))\n throw new ERR_INVALID_ARG_TYPE(propName\x2C 'ArrayBufferView[]'\x2C buffers);\n\n for (let i = 0; i < buffers.length; i++) {\n if (!isArrayBufferView(buffers[i]))\n throw new ERR_INVALID_ARG_TYPE(propName\x2C 'ArrayBufferView[]'\x2C buffers);\n }\n\n return buffers;\n});\n\nlet nonPortableTemplateWarn = true;\n\nfunction warnOnNonPortableTemplate(template) {\n // Template strings passed to the mkdtemp() family of functions should not\n // end with 'X' because they are handled inconsistently across platforms.\n if (nonPortableTemplateWarn && StringPrototypeEndsWith(template\x2C 'X')) {\n process.emitWarning('mkdtemp() templates ending with X are not portable. ' +\n 'For details see: https://nodejs.org/api/fs.html');\n nonPortableTemplateWarn = false;\n }\n}\n\nconst defaultRmOptions = {\n recursive: false\x2C\n force: false\x2C\n retryDelay: 100\x2C\n maxRetries: 0\n};\n\nconst defaultRmdirOptions = {\n retryDelay: 100\x2C\n maxRetries: 0\x2C\n recursive: false\x2C\n};\n\nconst validateRmOptions = hideStackFrames((path\x2C options\x2C expectDir\x2C cb) => {\n options = validateRmdirOptions(options\x2C defaultRmOptions);\n validateBoolean(options.force\x2C 'options.force');\n\n lazyLoadFs().stat(path\x2C (err\x2C stats) => {\n if (err) {\n if (options.force && err.code === 'ENOENT') {\n return cb(null\x2C options);\n }\n return cb(err\x2C options);\n }\n\n if (expectDir && !stats.isDirectory()) {\n return cb(false);\n }\n\n if (stats.isDirectory() && !options.recursive) {\n return cb(new ERR_FS_EISDIR({\n code: 'EISDIR'\x2C\n message: 'is a directory'\x2C\n path\x2C\n syscall: 'rm'\x2C\n errno: EISDIR\n }));\n }\n return cb(null\x2C options);\n });\n});\n\nconst validateRmOptionsSync = hideStackFrames((path\x2C options\x2C expectDir) => {\n options = validateRmdirOptions(options\x2C defaultRmOptions);\n validateBoolean(options.force\x2C 'options.force');\n\n if (!options.force || expectDir || !options.recursive) {\n const isDirectory = lazyLoadFs()\n .statSync(path\x2C { throwIfNoEntry: !options.force })?.isDirectory();\n\n if (expectDir && !isDirectory) {\n return false;\n }\n\n if (isDirectory && !options.recursive) {\n throw new ERR_FS_EISDIR({\n code: 'EISDIR'\x2C\n message: 'is a directory'\x2C\n path\x2C\n syscall: 'rm'\x2C\n errno: EISDIR\n });\n }\n }\n\n return options;\n});\n\nlet recursiveRmdirWarned = process.noDeprecation;\nfunction emitRecursiveRmdirWarning() {\n if (!recursiveRmdirWarned) {\n process.emitWarning(\n 'In future versions of Node.js\x2C fs.rmdir(path\x2C { recursive: true }) ' +\n 'will be removed. Use fs.rm(path\x2C { recursive: true }) instead'\x2C\n 'DeprecationWarning'\x2C\n 'DEP0147'\n );\n recursiveRmdirWarned = true;\n }\n}\n\nconst validateRmdirOptions = hideStackFrames(\n (options\x2C defaults = defaultRmdirOptions) => {\n if (options === undefined)\n return defaults;\n validateObject(options\x2C 'options');\n\n options = { ...defaults\x2C ...options };\n\n validateBoolean(options.recursive\x2C 'options.recursive');\n validateInt32(options.retryDelay\x2C 'options.retryDelay'\x2C 0);\n validateUint32(options.maxRetries\x2C 'options.maxRetries');\n\n return options;\n });\n\nconst getValidMode = hideStackFrames((mode\x2C type) => {\n let min = kMinimumAccessMode;\n let max = kMaximumAccessMode;\n let def = F_OK;\n if (type === 'copyFile') {\n min = kMinimumCopyMode;\n max = kMaximumCopyMode;\n def = mode || kDefaultCopyMode;\n } else {\n assert(type === 'access');\n }\n if (mode == null) {\n return def;\n }\n if (NumberIsInteger(mode) && mode >= min && mode <= max) {\n return mode;\n }\n if (typeof mode !== 'number') {\n throw new ERR_INVALID_ARG_TYPE('mode'\x2C 'integer'\x2C mode);\n }\n throw new ERR_OUT_OF_RANGE(\n 'mode'\x2C `an integer >= ${min} && <= ${max}`\x2C mode);\n});\n\nconst validateStringAfterArrayBufferView = hideStackFrames((buffer\x2C name) => {\n if (typeof buffer === 'string') {\n return;\n }\n\n if (\n typeof buffer === 'object' &&\n buffer !== null &&\n typeof buffer.toString === 'function' &&\n ObjectPrototypeHasOwnProperty(buffer\x2C 'toString')\n ) {\n return;\n }\n\n throw new ERR_INVALID_ARG_TYPE(\n name\x2C\n ['string'\x2C 'Buffer'\x2C 'TypedArray'\x2C 'DataView']\x2C\n buffer\n );\n});\n\nconst validatePosition = hideStackFrames((position\x2C name) => {\n if (typeof position === 'number') {\n validateInteger(position\x2C 'position');\n } else if (typeof position === 'bigint') {\n if (!(position >= -(2n ** 63n) && position <= 2n ** 63n - 1n)) {\n throw new ERR_OUT_OF_RANGE('position'\x2C\n `>= ${-(2n ** 63n)} && <= ${2n ** 63n - 1n}`\x2C\n position);\n }\n } else {\n throw new ERR_INVALID_ARG_TYPE('position'\x2C\n ['integer'\x2C 'bigint']\x2C\n position);\n }\n});\n\nmodule.exports = {\n constants: {\n kIoMaxLength\x2C\n kMaxUserId\x2C\n kReadFileBufferLength\x2C\n kReadFileUnknownBufferLength\x2C\n kWriteFileMaxChunkSize\x2C\n }\x2C\n assertEncoding\x2C\n BigIntStats\x2C // for testing\n copyObject\x2C\n Dirent\x2C\n emitRecursiveRmdirWarning\x2C\n getDirent\x2C\n getDirents\x2C\n getOptions\x2C\n getValidatedFd\x2C\n getValidatedPath\x2C\n getValidMode\x2C\n handleErrorFromBinding\x2C\n nullCheck\x2C\n preprocessSymlinkDestination\x2C\n realpathCacheKey: Symbol('realpathCacheKey')\x2C\n getStatsFromBinding\x2C\n stringToFlags\x2C\n stringToSymlinkType\x2C\n Stats\x2C\n toUnixTimestamp\x2C\n validateBufferArray\x2C\n validateOffsetLengthRead\x2C\n validateOffsetLengthWrite\x2C\n validatePath\x2C\n validatePosition\x2C\n validateRmOptions\x2C\n validateRmOptionsSync\x2C\n validateRmdirOptions\x2C\n validateStringAfterArrayBufferView\x2C\n warnOnNonPortableTemplate\n};\n
code-source-info,0x16e49095e8b6,77,18436,18571,C14O18491C19O18491C24O18525C29O18525C34O18557C36O18569,,
tick,0x7f4debd44473,128858,0,0x0,3,0x11e9ce0,0x16e490958915,0x16e4909574a5,0x16e490956d54,0x167e0307d281,0xb6d53549b45,0xb6d53549025,0x158e77f
code-creation,LazyCompile,10,128948,0x16e49096065e,20,toPathIfFileURL node:internal/url:1449:25,0x1eac91c165e8,~
script-source,33,node:internal/url,'use strict';\n\nconst {\n Array\x2C\n ArrayPrototypeJoin\x2C\n ArrayPrototypeMap\x2C\n ArrayPrototypePush\x2C\n ArrayPrototypeReduce\x2C\n ArrayPrototypeSlice\x2C\n FunctionPrototypeBind\x2C\n Int8Array\x2C\n Number\x2C\n ObjectCreate\x2C\n ObjectDefineProperties\x2C\n ObjectDefineProperty\x2C\n ObjectGetOwnPropertySymbols\x2C\n ObjectGetPrototypeOf\x2C\n ObjectKeys\x2C\n ReflectApply\x2C\n ReflectGetOwnPropertyDescriptor\x2C\n ReflectOwnKeys\x2C\n RegExpPrototypeExec\x2C\n String\x2C\n StringPrototypeCharCodeAt\x2C\n StringPrototypeIncludes\x2C\n StringPrototypeReplace\x2C\n StringPrototypeSlice\x2C\n StringPrototypeSplit\x2C\n StringPrototypeStartsWith\x2C\n Symbol\x2C\n SymbolIterator\x2C\n SymbolToStringTag\x2C\n decodeURIComponent\x2C\n} = primordials;\n\nconst { inspect } = require('internal/util/inspect');\nconst {\n encodeStr\x2C\n hexTable\x2C\n isHexTable\n} = require('internal/querystring');\n\nconst { getConstructorOf\x2C removeColors } = require('internal/util');\nconst {\n ERR_ARG_NOT_ITERABLE\x2C\n ERR_INVALID_ARG_TYPE\x2C\n ERR_INVALID_ARG_VALUE\x2C\n ERR_INVALID_FILE_URL_HOST\x2C\n ERR_INVALID_FILE_URL_PATH\x2C\n ERR_INVALID_THIS\x2C\n ERR_INVALID_TUPLE\x2C\n ERR_INVALID_URL\x2C\n ERR_INVALID_URL_SCHEME\x2C\n ERR_MISSING_ARGS\n} = require('internal/errors').codes;\nconst {\n CHAR_AMPERSAND\x2C\n CHAR_BACKWARD_SLASH\x2C\n CHAR_EQUAL\x2C\n CHAR_FORWARD_SLASH\x2C\n CHAR_LOWERCASE_A\x2C\n CHAR_LOWERCASE_Z\x2C\n CHAR_PERCENT\x2C\n CHAR_PLUS\n} = require('internal/constants');\nconst path = require('path');\n\nconst {\n validateCallback\x2C\n validateObject\x2C\n} = require('internal/validators');\n\nconst querystring = require('querystring');\n\nconst { platform } = process;\nconst isWindows = platform === 'win32';\n\nconst {\n domainToASCII: _domainToASCII\x2C\n domainToUnicode: _domainToUnicode\x2C\n encodeAuth\x2C\n toUSVString: _toUSVString\x2C\n parse\x2C\n setURLConstructor\x2C\n URL_FLAGS_CANNOT_BE_BASE\x2C\n URL_FLAGS_HAS_FRAGMENT\x2C\n URL_FLAGS_HAS_HOST\x2C\n URL_FLAGS_HAS_PASSWORD\x2C\n URL_FLAGS_HAS_PATH\x2C\n URL_FLAGS_HAS_QUERY\x2C\n URL_FLAGS_HAS_USERNAME\x2C\n URL_FLAGS_IS_DEFAULT_SCHEME_PORT\x2C\n URL_FLAGS_SPECIAL\x2C\n kFragment\x2C\n kHost\x2C\n kHostname\x2C\n kPathStart\x2C\n kPort\x2C\n kQuery\x2C\n kSchemeStart\n} = internalBinding('url');\n\nconst context = Symbol('context');\nconst cannotBeBase = Symbol('cannot-be-base');\nconst cannotHaveUsernamePasswordPort =\n Symbol('cannot-have-username-password-port');\nconst special = Symbol('special');\nconst searchParams = Symbol('query');\nconst kFormat = Symbol('format');\n\n// https://tc39.github.io/ecma262/#sec-%iteratorprototype%-object\nconst IteratorPrototype = ObjectGetPrototypeOf(\n ObjectGetPrototypeOf([][SymbolIterator]())\n);\n\nconst unpairedSurrogateRe =\n /(?:[^\\uD800-\\uDBFF]|^)[\\uDC00-\\uDFFF]|[\\uD800-\\uDBFF](?![\\uDC00-\\uDFFF])/;\nfunction toUSVString(val) {\n const str = `${val}`;\n // As of V8 5.5\x2C `str.search()` (and `unpairedSurrogateRe[@@search]()`) are\n // slower than `unpairedSurrogateRe.exec()`.\n const match = RegExpPrototypeExec(unpairedSurrogateRe\x2C str);\n if (!match)\n return str;\n return _toUSVString(str\x2C match.index);\n}\n\n// Refs: https://html.spec.whatwg.org/multipage/browsers.html#concept-origin-opaque\nconst kOpaqueOrigin = 'null';\n\n// Refs: https://html.spec.whatwg.org/multipage/browsers.html#ascii-serialisation-of-an-origin\nfunction serializeTupleOrigin(scheme\x2C host\x2C port) {\n return `${scheme}//${host}${port === null ? '' : `:${port}`}`;\n}\n\n// This class provides the internal state of a URL object. An instance of this\n// class is stored in every URL object and is accessed internally by setters\n// and getters. It roughly corresponds to the concept of a URL record in the\n// URL Standard\x2C with a few differences. It is also the object transported to\n// the C++ binding.\n// Refs: https://url.spec.whatwg.org/#concept-url\nclass URLContext {\n constructor() {\n this.flags = 0;\n this.scheme = ':';\n this.username = '';\n this.password = '';\n this.host = null;\n this.port = null;\n this.path = [];\n this.query = null;\n this.fragment = null;\n }\n}\n\nclass URLSearchParams {\n // URL Standard says the default value is ''\x2C but as undefined and '' have\n // the same result\x2C undefined is used to prevent unnecessary parsing.\n // Default parameter is necessary to keep URLSearchParams.length === 0 in\n // accordance with Web IDL spec.\n constructor(init = undefined) {\n if (init === null || init === undefined) {\n this[searchParams] = [];\n } else if (typeof init === 'object' || typeof init === 'function') {\n const method = init[SymbolIterator];\n if (method === this[SymbolIterator]) {\n // While the spec does not have this branch\x2C we can use it as a\n // shortcut to avoid having to go through the costly generic iterator.\n const childParams = init[searchParams];\n this[searchParams] = childParams.slice();\n } else if (method !== null && method !== undefined) {\n if (typeof method !== 'function') {\n throw new ERR_ARG_NOT_ITERABLE('Query pairs');\n }\n\n // Sequence<sequence<USVString>>\n // Note: per spec we have to first exhaust the lists then process them\n const pairs = [];\n for (const pair of init) {\n if ((typeof pair !== 'object' && typeof pair !== 'function') ||\n pair === null ||\n typeof pair[SymbolIterator] !== 'function') {\n throw new ERR_INVALID_TUPLE('Each query pair'\x2C '[name\x2C value]');\n }\n const convertedPair = [];\n for (const element of pair)\n ArrayPrototypePush(convertedPair\x2C toUSVString(element));\n ArrayPrototypePush(pairs\x2C convertedPair);\n }\n\n this[searchParams] = [];\n for (const pair of pairs) {\n if (pair.length !== 2) {\n throw new ERR_INVALID_TUPLE('Each query pair'\x2C '[name\x2C value]');\n }\n ArrayPrototypePush(this[searchParams]\x2C pair[0]\x2C pair[1]);\n }\n } else {\n // Record<USVString\x2C USVString>\n // Need to use reflection APIs for full spec compliance.\n this[searchParams] = [];\n const keys = ReflectOwnKeys(init);\n for (let i = 0; i < keys.length; i++) {\n const key = keys[i];\n const desc = ReflectGetOwnPropertyDescriptor(init\x2C key);\n if (desc !== undefined && desc.enumerable) {\n const typedKey = toUSVString(key);\n const typedValue = toUSVString(init[key]);\n this[searchParams].push(typedKey\x2C typedValue);\n }\n }\n }\n } else {\n // USVString\n init = toUSVString(init);\n if (init[0] === '?') init = init.slice(1);\n initSearchParams(this\x2C init);\n }\n\n // "associated url object"\n this[context] = null;\n }\n\n [inspect.custom](recurseTimes\x2C ctx) {\n if (!this || !this[searchParams] || this[searchParams][searchParams]) {\n throw new ERR_INVALID_THIS('URLSearchParams');\n }\n\n if (typeof recurseTimes === 'number' && recurseTimes < 0)\n return ctx.stylize('[Object]'\x2C 'special');\n\n const separator = '\x2C ';\n const innerOpts = { ...ctx };\n if (recurseTimes !== null) {\n innerOpts.depth = recurseTimes - 1;\n }\n const innerInspect = (v) => inspect(v\x2C innerOpts);\n\n const list = this[searchParams];\n const output = [];\n for (let i = 0; i < list.length; i += 2)\n ArrayPrototypePush(\n output\x2C\n `${innerInspect(list[i])} => ${innerInspect(list[i + 1])}`);\n\n const length = ArrayPrototypeReduce(\n output\x2C\n (prev\x2C cur) => prev + removeColors(cur).length + separator.length\x2C\n -separator.length\n );\n if (length > ctx.breakLength) {\n return `${this.constructor.name} {\\n` +\n ` ${ArrayPrototypeJoin(output\x2C '\x2C\\n ')} }`;\n } else if (output.length) {\n return `${this.constructor.name} { ` +\n `${ArrayPrototypeJoin(output\x2C separator)} }`;\n }\n return `${this.constructor.name} {}`;\n }\n\n append(name\x2C value) {\n if (!this || !this[searchParams] || this[searchParams][searchParams]) {\n throw new ERR_INVALID_THIS('URLSearchParams');\n }\n if (arguments.length < 2) {\n throw new ERR_MISSING_ARGS('name'\x2C 'value');\n }\n\n name = toUSVString(name);\n value = toUSVString(value);\n ArrayPrototypePush(this[searchParams]\x2C name\x2C value);\n update(this[context]\x2C this);\n }\n\n delete(name) {\n if (!this || !this[searchParams] || this[searchParams][searchParams]) {\n throw new ERR_INVALID_THIS('URLSearchParams');\n }\n if (arguments.length < 1) {\n throw new ERR_MISSING_ARGS('name');\n }\n\n const list = this[searchParams];\n name = toUSVString(name);\n for (let i = 0; i < list.length;) {\n const cur = list[i];\n if (cur === name) {\n list.splice(i\x2C 2);\n } else {\n i += 2;\n }\n }\n update(this[context]\x2C this);\n }\n\n get(name) {\n if (!this || !this[searchParams] || this[searchParams][searchParams]) {\n throw new ERR_INVALID_THIS('URLSearchParams');\n }\n if (arguments.length < 1) {\n throw new ERR_MISSING_ARGS('name');\n }\n\n const list = this[searchParams];\n name = toUSVString(name);\n for (let i = 0; i < list.length; i += 2) {\n if (list[i] === name) {\n return list[i + 1];\n }\n }\n return null;\n }\n\n getAll(name) {\n if (!this || !this[searchParams] || this[searchParams][searchParams]) {\n throw new ERR_INVALID_THIS('URLSearchParams');\n }\n if (arguments.length < 1) {\n throw new ERR_MISSING_ARGS('name');\n }\n\n const list = this[searchParams];\n const values = [];\n name = toUSVString(name);\n for (let i = 0; i < list.length; i += 2) {\n if (list[i] === name) {\n values.push(list[i + 1]);\n }\n }\n return values;\n }\n\n has(name) {\n if (!this || !this[searchParams] || this[searchParams][searchParams]) {\n throw new ERR_INVALID_THIS('URLSearchParams');\n }\n if (arguments.length < 1) {\n throw new ERR_MISSING_ARGS('name');\n }\n\n const list = this[searchParams];\n name = toUSVString(name);\n for (let i = 0; i < list.length; i += 2) {\n if (list[i] === name) {\n return true;\n }\n }\n return false;\n }\n\n set(name\x2C value) {\n if (!this || !this[searchParams] || this[searchParams][searchParams]) {\n throw new ERR_INVALID_THIS('URLSearchParams');\n }\n if (arguments.length < 2) {\n throw new ERR_MISSING_ARGS('name'\x2C 'value');\n }\n\n const list = this[searchParams];\n name = toUSVString(name);\n value = toUSVString(value);\n\n // If there are any name-value pairs whose name is `name`\x2C in `list`\x2C set\n // the value of the first such name-value pair to `value` and remove the\n // others.\n let found = false;\n for (let i = 0; i < list.length;) {\n const cur = list[i];\n if (cur === name) {\n if (!found) {\n list[i + 1] = value;\n found = true;\n i += 2;\n } else {\n list.splice(i\x2C 2);\n }\n } else {\n i += 2;\n }\n }\n\n // Otherwise\x2C append a new name-value pair whose name is `name` and value\n // is `value`\x2C to `list`.\n if (!found) {\n ArrayPrototypePush(list\x2C name\x2C value);\n }\n\n update(this[context]\x2C this);\n }\n\n sort() {\n const a = this[searchParams];\n const len = a.length;\n\n if (len <= 2) {\n // Nothing needs to be done.\n } else if (len < 100) {\n // 100 is found through testing.\n // Simple stable in-place insertion sort\n // Derived from v8/src/js/array.js\n for (let i = 2; i < len; i += 2) {\n const curKey = a[i];\n const curVal = a[i + 1];\n let j;\n for (j = i - 2; j >= 0; j -= 2) {\n if (a[j] > curKey) {\n a[j + 2] = a[j];\n a[j + 3] = a[j + 1];\n } else {\n break;\n }\n }\n a[j + 2] = curKey;\n a[j + 3] = curVal;\n }\n } else {\n // Bottom-up iterative stable merge sort\n const lBuffer = new Array(len);\n const rBuffer = new Array(len);\n for (let step = 2; step < len; step *= 2) {\n for (let start = 0; start < len - 2; start += 2 * step) {\n const mid = start + step;\n let end = mid + step;\n end = end < len ? end : len;\n if (mid > end)\n continue;\n merge(a\x2C start\x2C mid\x2C end\x2C lBuffer\x2C rBuffer);\n }\n }\n }\n\n update(this[context]\x2C this);\n }\n\n // https://heycam.github.io/webidl/#es-iterators\n // Define entries here rather than [Symbol.iterator] as the function name\n // must be set to `entries`.\n entries() {\n if (!this || !this[searchParams] || this[searchParams][searchParams]) {\n throw new ERR_INVALID_THIS('URLSearchParams');\n }\n\n return createSearchParamsIterator(this\x2C 'key+value');\n }\n\n forEach(callback\x2C thisArg = undefined) {\n if (!this || !this[searchParams] || this[searchParams][searchParams]) {\n throw new ERR_INVALID_THIS('URLSearchParams');\n }\n validateCallback(callback);\n\n let list = this[searchParams];\n\n let i = 0;\n while (i < list.length) {\n const key = list[i];\n const value = list[i + 1];\n callback.call(thisArg\x2C value\x2C key\x2C this);\n // In case the URL object's `search` is updated\n list = this[searchParams];\n i += 2;\n }\n }\n\n // https://heycam.github.io/webidl/#es-iterable\n keys() {\n if (!this || !this[searchParams] || this[searchParams][searchParams]) {\n throw new ERR_INVALID_THIS('URLSearchParams');\n }\n\n return createSearchParamsIterator(this\x2C 'key');\n }\n\n values() {\n if (!this || !this[searchParams] || this[searchParams][searchParams]) {\n throw new ERR_INVALID_THIS('URLSearchParams');\n }\n\n return createSearchParamsIterator(this\x2C 'value');\n }\n\n // https://heycam.github.io/webidl/#es-stringifier\n // https://url.spec.whatwg.org/#urlsearchparams-stringification-behavior\n toString() {\n if (!this || !this[searchParams] || this[searchParams][searchParams]) {\n throw new ERR_INVALID_THIS('URLSearchParams');\n }\n\n return serializeParams(this[searchParams]);\n }\n}\n\nObjectDefineProperties(URLSearchParams.prototype\x2C {\n append: { enumerable: true }\x2C\n delete: { enumerable: true }\x2C\n get: { enumerable: true }\x2C\n getAll: { enumerable: true }\x2C\n has: { enumerable: true }\x2C\n set: { enumerable: true }\x2C\n sort: { enumerable: true }\x2C\n entries: { enumerable: true }\x2C\n forEach: { enumerable: true }\x2C\n keys: { enumerable: true }\x2C\n values: { enumerable: true }\x2C\n toString: { enumerable: true }\x2C\n [SymbolToStringTag]: { configurable: true\x2C value: 'URLSearchParams' }\x2C\n\n // https://heycam.github.io/webidl/#es-iterable-entries\n [SymbolIterator]: {\n configurable: true\x2C\n writable: true\x2C\n value: URLSearchParams.prototype.entries\x2C\n }\x2C\n});\n\nfunction onParseComplete(flags\x2C protocol\x2C username\x2C password\x2C\n host\x2C port\x2C path\x2C query\x2C fragment) {\n const ctx = this[context];\n ctx.flags = flags;\n ctx.scheme = protocol;\n ctx.username = (flags & URL_FLAGS_HAS_USERNAME) !== 0 ? username : '';\n ctx.password = (flags & URL_FLAGS_HAS_PASSWORD) !== 0 ? password : '';\n ctx.port = port;\n ctx.path = (flags & URL_FLAGS_HAS_PATH) !== 0 ? path : [];\n ctx.query = query;\n ctx.fragment = fragment;\n ctx.host = host;\n if (!this[searchParams]) { // Invoked from URL constructor\n this[searchParams] = new URLSearchParams();\n this[searchParams][context] = this;\n }\n initSearchParams(this[searchParams]\x2C query);\n}\n\nfunction onParseError(flags\x2C input) {\n throw new ERR_INVALID_URL(input);\n}\n\nfunction onParseProtocolComplete(flags\x2C protocol\x2C username\x2C password\x2C\n host\x2C port\x2C path\x2C query\x2C fragment) {\n const ctx = this[context];\n if ((flags & URL_FLAGS_SPECIAL) !== 0) {\n ctx.flags |= URL_FLAGS_SPECIAL;\n } else {\n ctx.flags &= ~URL_FLAGS_SPECIAL;\n }\n ctx.scheme = protocol;\n ctx.port = port;\n}\n\nfunction onParseHostnameComplete(flags\x2C protocol\x2C username\x2C password\x2C\n host\x2C port\x2C path\x2C query\x2C fragment) {\n const ctx = this[context];\n if ((flags & URL_FLAGS_HAS_HOST) !== 0) {\n ctx.host = host;\n ctx.flags |= URL_FLAGS_HAS_HOST;\n } else {\n ctx.host = null;\n ctx.flags &= ~URL_FLAGS_HAS_HOST;\n }\n}\n\nfunction onParsePortComplete(flags\x2C protocol\x2C username\x2C password\x2C\n host\x2C port\x2C path\x2C query\x2C fragment) {\n this[context].port = port;\n}\n\nfunction onParseHostComplete(flags\x2C protocol\x2C username\x2C password\x2C\n host\x2C port\x2C path\x2C query\x2C fragment) {\n ReflectApply(onParseHostnameComplete\x2C this\x2C arguments);\n if (port !== null || ((flags & URL_FLAGS_IS_DEFAULT_SCHEME_PORT) !== 0))\n ReflectApply(onParsePortComplete\x2C this\x2C arguments);\n}\n\nfunction onParsePathComplete(flags\x2C protocol\x2C username\x2C password\x2C\n host\x2C port\x2C path\x2C query\x2C fragment) {\n const ctx = this[context];\n if ((flags & URL_FLAGS_HAS_PATH) !== 0) {\n ctx.path = path;\n ctx.flags |= URL_FLAGS_HAS_PATH;\n } else {\n ctx.path = [];\n ctx.flags &= ~URL_FLAGS_HAS_PATH;\n }\n\n // The C++ binding may set host to empty string.\n if ((flags & URL_FLAGS_HAS_HOST) !== 0) {\n ctx.host = host;\n ctx.flags |= URL_FLAGS_HAS_HOST;\n }\n}\n\nfunction onParseSearchComplete(flags\x2C protocol\x2C username\x2C password\x2C\n host\x2C port\x2C path\x2C query\x2C fragment) {\n this[context].query = query;\n}\n\nfunction onParseHashComplete(flags\x2C protocol\x2C username\x2C password\x2C\n host\x2C port\x2C path\x2C query\x2C fragment) {\n this[context].fragment = fragment;\n}\n\nclass URL {\n constructor(input\x2C base) {\n // toUSVString is not needed.\n input = `${input}`;\n let base_context;\n if (base !== undefined) {\n base_context = new URL(base)[context];\n }\n this[context] = new URLContext();\n parse(input\x2C -1\x2C base_context\x2C undefined\x2C\n FunctionPrototypeBind(onParseComplete\x2C this)\x2C onParseError);\n }\n\n get [special]() {\n return (this[context].flags & URL_FLAGS_SPECIAL) !== 0;\n }\n\n get [cannotBeBase]() {\n return (this[context].flags & URL_FLAGS_CANNOT_BE_BASE) !== 0;\n }\n\n // https://url.spec.whatwg.org/#cannot-have-a-username-password-port\n get [cannotHaveUsernamePasswordPort]() {\n const { host\x2C scheme } = this[context];\n return ((host == null || host === '') ||\n this[cannotBeBase] ||\n scheme === 'file:');\n }\n\n [inspect.custom](depth\x2C opts) {\n if (this == null ||\n ObjectGetPrototypeOf(this[context]) !== URLContext.prototype) {\n throw new ERR_INVALID_THIS('URL');\n }\n\n if (typeof depth === 'number' && depth < 0)\n return this;\n\n const constructor = getConstructorOf(this) || URL;\n const obj = ObjectCreate({ constructor });\n\n obj.href = this.href;\n obj.origin = this.origin;\n obj.protocol = this.protocol;\n obj.username = this.username;\n obj.password = this.password;\n obj.host = this.host;\n obj.hostname = this.hostname;\n obj.port = this.port;\n obj.pathname = this.pathname;\n obj.search = this.search;\n obj.searchParams = this.searchParams;\n obj.hash = this.hash;\n\n if (opts.showHidden) {\n obj.cannotBeBase = this[cannotBeBase];\n obj.special = this[special];\n obj[context] = this[context];\n }\n\n return `${constructor.name} ${inspect(obj\x2C opts)}`;\n }\n\n [kFormat](options) {\n if (options)\n validateObject(options\x2C 'options');\n\n options = {\n fragment: true\x2C\n unicode: false\x2C\n search: true\x2C\n auth: true\x2C\n ...options\n };\n const ctx = this[context];\n // https://url.spec.whatwg.org/#url-serializing\n let ret = ctx.scheme;\n if (ctx.host !== null) {\n ret += '//';\n const has_username = ctx.username !== '';\n const has_password = ctx.password !== '';\n if (options.auth && (has_username || has_password)) {\n if (has_username)\n ret += ctx.username;\n if (has_password)\n ret += `:${ctx.password}`;\n ret += '@';\n }\n ret += options.unicode ?\n domainToUnicode(ctx.host) : ctx.host;\n if (ctx.port !== null)\n ret += `:${ctx.port}`;\n }\n if (this[cannotBeBase]) {\n ret += ctx.path[0];\n } else {\n if (ctx.host === null && ctx.path.length > 1 && ctx.path[0] === '') {\n ret += '/.';\n }\n if (ctx.path.length) {\n ret += '/' + ArrayPrototypeJoin(ctx.path\x2C '/');\n }\n }\n if (options.search && ctx.query !== null)\n ret += `?${ctx.query}`;\n if (options.fragment && ctx.fragment !== null)\n ret += `#${ctx.fragment}`;\n return ret;\n }\n\n // https://heycam.github.io/webidl/#es-stringifier\n toString() {\n return this[kFormat]({});\n }\n\n get href() {\n return this[kFormat]({});\n }\n\n set href(input) {\n // toUSVString is not needed.\n input = `${input}`;\n parse(input\x2C -1\x2C undefined\x2C undefined\x2C\n FunctionPrototypeBind(onParseComplete\x2C this)\x2C onParseError);\n }\n\n // readonly\n get origin() {\n // Refs: https://url.spec.whatwg.org/#concept-url-origin\n const ctx = this[context];\n switch (ctx.scheme) {\n case 'blob:':\n if (ctx.path.length > 0) {\n try {\n return (new URL(ctx.path[0])).origin;\n } catch {\n // Fall through... do nothing\n }\n }\n return kOpaqueOrigin;\n case 'ftp:':\n case 'http:':\n case 'https:':\n case 'ws:':\n case 'wss:':\n return serializeTupleOrigin(ctx.scheme\x2C ctx.host\x2C ctx.port);\n }\n return kOpaqueOrigin;\n }\n\n get protocol() {\n return this[context].scheme;\n }\n\n set protocol(scheme) {\n // toUSVString is not needed.\n scheme = `${scheme}`;\n if (scheme.length === 0)\n return;\n const ctx = this[context];\n parse(scheme\x2C kSchemeStart\x2C null\x2C ctx\x2C\n FunctionPrototypeBind(onParseProtocolComplete\x2C this));\n }\n\n get username() {\n return this[context].username;\n }\n\n set username(username) {\n // toUSVString is not needed.\n username = `${username}`;\n if (this[cannotHaveUsernamePasswordPort])\n return;\n const ctx = this[context];\n if (username === '') {\n ctx.username = '';\n ctx.flags &= ~URL_FLAGS_HAS_USERNAME;\n return;\n }\n ctx.username = encodeAuth(username);\n ctx.flags |= URL_FLAGS_HAS_USERNAME;\n }\n\n get password() {\n return this[context].password;\n }\n\n set password(password) {\n // toUSVString is not needed.\n password = `${password}`;\n if (this[cannotHaveUsernamePasswordPort])\n return;\n const ctx = this[context];\n if (password === '') {\n ctx.password = '';\n ctx.flags &= ~URL_FLAGS_HAS_PASSWORD;\n return;\n }\n ctx.password = encodeAuth(password);\n ctx.flags |= URL_FLAGS_HAS_PASSWORD;\n }\n\n get host() {\n const ctx = this[context];\n let ret = ctx.host || '';\n if (ctx.port !== null)\n ret += `:${ctx.port}`;\n return ret;\n }\n\n set host(host) {\n const ctx = this[context];\n // toUSVString is not needed.\n host = `${host}`;\n if (this[cannotBeBase]) {\n // Cannot set the host if cannot-be-base is set\n return;\n }\n parse(host\x2C kHost\x2C null\x2C ctx\x2C\n FunctionPrototypeBind(onParseHostComplete\x2C this));\n }\n\n get hostname() {\n return this[context].host || '';\n }\n\n set hostname(host) {\n const ctx = this[context];\n // toUSVString is not needed.\n host = `${host}`;\n if (this[cannotBeBase]) {\n // Cannot set the host if cannot-be-base is set\n return;\n }\n parse(host\x2C kHostname\x2C null\x2C ctx\x2C onParseHostnameComplete.bind(this));\n }\n\n get port() {\n const port = this[context].port;\n return port === null ? '' : String(port);\n }\n\n set port(port) {\n // toUSVString is not needed.\n port = `${port}`;\n if (this[cannotHaveUsernamePasswordPort])\n return;\n const ctx = this[context];\n if (port === '') {\n ctx.port = null;\n return;\n }\n parse(port\x2C kPort\x2C null\x2C ctx\x2C\n FunctionPrototypeBind(onParsePortComplete\x2C this));\n }\n\n get pathname() {\n const ctx = this[context];\n if (this[cannotBeBase])\n return ctx.path[0];\n if (ctx.path.length === 0)\n return '';\n return `/${ArrayPrototypeJoin(ctx.path\x2C '/')}`;\n }\n\n set pathname(path) {\n // toUSVString is not needed.\n path = `${path}`;\n if (this[cannotBeBase])\n return;\n parse(path\x2C kPathStart\x2C null\x2C this[context]\x2C\n onParsePathComplete.bind(this));\n }\n\n get search() {\n const { query } = this[context];\n if (query === null || query === '')\n return '';\n return `?${query}`;\n }\n\n set search(search) {\n const ctx = this[context];\n search = toUSVString(search);\n if (search === '') {\n ctx.query = null;\n ctx.flags &= ~URL_FLAGS_HAS_QUERY;\n } else {\n if (search[0] === '?') search = StringPrototypeSlice(search\x2C 1);\n ctx.query = '';\n ctx.flags |= URL_FLAGS_HAS_QUERY;\n if (search) {\n parse(search\x2C kQuery\x2C null\x2C ctx\x2C\n FunctionPrototypeBind(onParseSearchComplete\x2C this));\n }\n }\n initSearchParams(this[searchParams]\x2C search);\n }\n\n // readonly\n get searchParams() {\n return this[searchParams];\n }\n\n get hash() {\n const { fragment } = this[context];\n if (fragment === null || fragment === '')\n return '';\n return `#${fragment}`;\n }\n\n set hash(hash) {\n const ctx = this[context];\n // toUSVString is not needed.\n hash = `${hash}`;\n if (!hash) {\n ctx.fragment = null;\n ctx.flags &= ~URL_FLAGS_HAS_FRAGMENT;\n return;\n }\n if (hash[0] === '#') hash = StringPrototypeSlice(hash\x2C 1);\n ctx.fragment = '';\n ctx.flags |= URL_FLAGS_HAS_FRAGMENT;\n parse(hash\x2C kFragment\x2C null\x2C ctx\x2C\n FunctionPrototypeBind(onParseHashComplete\x2C this));\n }\n\n toJSON() {\n return this[kFormat]({});\n }\n}\n\nObjectDefineProperties(URL.prototype\x2C {\n [kFormat]: { configurable: false\x2C writable: false }\x2C\n [SymbolToStringTag]: { configurable: true\x2C value: 'URL' }\x2C\n toString: { enumerable: true }\x2C\n href: { enumerable: true }\x2C\n origin: { enumerable: true }\x2C\n protocol: { enumerable: true }\x2C\n username: { enumerable: true }\x2C\n password: { enumerable: true }\x2C\n host: { enumerable: true }\x2C\n hostname: { enumerable: true }\x2C\n port: { enumerable: true }\x2C\n pathname: { enumerable: true }\x2C\n search: { enumerable: true }\x2C\n searchParams: { enumerable: true }\x2C\n hash: { enumerable: true }\x2C\n toJSON: { enumerable: true }\x2C\n});\n\nfunction update(url\x2C params) {\n if (!url)\n return;\n\n const ctx = url[context];\n const serializedParams = params.toString();\n if (serializedParams) {\n ctx.query = serializedParams;\n ctx.flags |= URL_FLAGS_HAS_QUERY;\n } else {\n ctx.query = null;\n ctx.flags &= ~URL_FLAGS_HAS_QUERY;\n }\n}\n\nfunction initSearchParams(url\x2C init) {\n if (!init) {\n url[searchParams] = [];\n return;\n }\n url[searchParams] = parseParams(init);\n}\n\n// application/x-www-form-urlencoded parser\n// Ref: https://url.spec.whatwg.org/#concept-urlencoded-parser\nfunction parseParams(qs) {\n const out = [];\n let pairStart = 0;\n let lastPos = 0;\n let seenSep = false;\n let buf = '';\n let encoded = false;\n let encodeCheck = 0;\n let i;\n for (i = 0; i < qs.length; ++i) {\n const code = StringPrototypeCharCodeAt(qs\x2C i);\n\n // Try matching key/value pair separator\n if (code === CHAR_AMPERSAND) {\n if (pairStart === i) {\n // We saw an empty substring between pair separators\n lastPos = pairStart = i + 1;\n continue;\n }\n\n if (lastPos < i)\n buf += qs.slice(lastPos\x2C i);\n if (encoded)\n buf = querystring.unescape(buf);\n out.push(buf);\n\n // If `buf` is the key\x2C add an empty value.\n if (!seenSep)\n out.push('');\n\n seenSep = false;\n buf = '';\n encoded = false;\n encodeCheck = 0;\n lastPos = pairStart = i + 1;\n continue;\n }\n\n // Try matching key/value separator (e.g. '=') if we haven't already\n if (!seenSep && code === CHAR_EQUAL) {\n // Key/value separator match!\n if (lastPos < i)\n buf += qs.slice(lastPos\x2C i);\n if (encoded)\n buf = querystring.unescape(buf);\n out.push(buf);\n\n seenSep = true;\n buf = '';\n encoded = false;\n encodeCheck = 0;\n lastPos = i + 1;\n continue;\n }\n\n // Handle + and percent decoding.\n if (code === CHAR_PLUS) {\n if (lastPos < i)\n buf += StringPrototypeSlice(qs\x2C lastPos\x2C i);\n buf += ' ';\n lastPos = i + 1;\n } else if (!encoded) {\n // Try to match an (valid) encoded byte (once) to minimize unnecessary\n // calls to string decoding functions\n if (code === CHAR_PERCENT) {\n encodeCheck = 1;\n } else if (encodeCheck > 0) {\n if (isHexTable[code] === 1) {\n if (++encodeCheck === 3) {\n encoded = true;\n }\n } else {\n encodeCheck = 0;\n }\n }\n }\n }\n\n // Deal with any leftover key or value data\n\n // There is a trailing &. No more processing is needed.\n if (pairStart === i)\n return out;\n\n if (lastPos < i)\n buf += StringPrototypeSlice(qs\x2C lastPos\x2C i);\n if (encoded)\n buf = querystring.unescape(buf);\n ArrayPrototypePush(out\x2C buf);\n\n // If `buf` is the key\x2C add an empty value.\n if (!seenSep)\n ArrayPrototypePush(out\x2C '');\n\n return out;\n}\n\n// Adapted from querystring's implementation.\n// Ref: https://url.spec.whatwg.org/#concept-urlencoded-byte-serializer\nconst noEscape = new Int8Array([\n/*\n 0\x2C 1\x2C 2\x2C 3\x2C 4\x2C 5\x2C 6\x2C 7\x2C 8\x2C 9\x2C A\x2C B\x2C C\x2C D\x2C E\x2C F\n*/\n 0\x2C 0\x2C 0\x2C 0\x2C 0\x2C 0\x2C 0\x2C 0\x2C 0\x2C 0\x2C 0\x2C 0\x2C 0\x2C 0\x2C 0\x2C 0\x2C // 0x00 - 0x0F\n 0\x2C 0\x2C 0\x2C 0\x2C 0\x2C 0\x2C 0\x2C 0\x2C 0\x2C 0\x2C 0\x2C 0\x2C 0\x2C 0\x2C 0\x2C 0\x2C // 0x10 - 0x1F\n 0\x2C 0\x2C 0\x2C 0\x2C 0\x2C 0\x2C 0\x2C 0\x2C 0\x2C 0\x2C 1\x2C 0\x2C 0\x2C 1\x2C 1\x2C 0\x2C // 0x20 - 0x2F\n 1\x2C 1\x2C 1\x2C 1\x2C 1\x2C 1\x2C 1\x2C 1\x2C 1\x2C 1\x2C 0\x2C 0\x2C 0\x2C 0\x2C 0\x2C 0\x2C // 0x30 - 0x3F\n 0\x2C 1\x2C 1\x2C 1\x2C 1\x2C 1\x2C 1\x2C 1\x2C 1\x2C 1\x2C 1\x2C 1\x2C 1\x2C 1\x2C 1\x2C 1\x2C // 0x40 - 0x4F\n 1\x2C 1\x2C 1\x2C 1\x2C 1\x2C 1\x2C 1\x2C 1\x2C 1\x2C 1\x2C 1\x2C 0\x2C 0\x2C 0\x2C 0\x2C 1\x2C // 0x50 - 0x5F\n 0\x2C 1\x2C 1\x2C 1\x2C 1\x2C 1\x2C 1\x2C 1\x2C 1\x2C 1\x2C 1\x2C 1\x2C 1\x2C 1\x2C 1\x2C 1\x2C // 0x60 - 0x6F\n 1\x2C 1\x2C 1\x2C 1\x2C 1\x2C 1\x2C 1\x2C 1\x2C 1\x2C 1\x2C 1\x2C 0\x2C 0\x2C 0\x2C 0\x2C 0\x2C // 0x70 - 0x7F\n]);\n\n// Special version of hexTable that uses `+` for U+0020 SPACE.\nconst paramHexTable = hexTable.slice();\nparamHexTable[0x20] = '+';\n\n// application/x-www-form-urlencoded serializer\n// Ref: https://url.spec.whatwg.org/#concept-urlencoded-serializer\nfunction serializeParams(array) {\n const len = array.length;\n if (len === 0)\n return '';\n\n const firstEncodedParam = encodeStr(array[0]\x2C noEscape\x2C paramHexTable);\n const firstEncodedValue = encodeStr(array[1]\x2C noEscape\x2C paramHexTable);\n let output = `${firstEncodedParam}=${firstEncodedValue}`;\n\n for (let i = 2; i < len; i += 2) {\n const encodedParam = encodeStr(array[i]\x2C noEscape\x2C paramHexTable);\n const encodedValue = encodeStr(array[i + 1]\x2C noEscape\x2C paramHexTable);\n output += `&${encodedParam}=${encodedValue}`;\n }\n\n return output;\n}\n\n// Mainly to mitigate func-name-matching ESLint rule\nfunction defineIDLClass(proto\x2C classStr\x2C obj) {\n // https://heycam.github.io/webidl/#dfn-class-string\n ObjectDefineProperty(proto\x2C SymbolToStringTag\x2C {\n writable: false\x2C\n enumerable: false\x2C\n configurable: true\x2C\n value: classStr\n });\n\n // https://heycam.github.io/webidl/#es-operations\n for (const key of ObjectKeys(obj)) {\n ObjectDefineProperty(proto\x2C key\x2C {\n writable: true\x2C\n enumerable: true\x2C\n configurable: true\x2C\n value: obj[key]\n });\n }\n for (const key of ObjectGetOwnPropertySymbols(obj)) {\n ObjectDefineProperty(proto\x2C key\x2C {\n writable: true\x2C\n enumerable: false\x2C\n configurable: true\x2C\n value: obj[key]\n });\n }\n}\n\n// for merge sort\nfunction merge(out\x2C start\x2C mid\x2C end\x2C lBuffer\x2C rBuffer) {\n const sizeLeft = mid - start;\n const sizeRight = end - mid;\n let l\x2C r\x2C o;\n\n for (l = 0; l < sizeLeft; l++)\n lBuffer[l] = out[start + l];\n for (r = 0; r < sizeRight; r++)\n rBuffer[r] = out[mid + r];\n\n l = 0;\n r = 0;\n o = start;\n while (l < sizeLeft && r < sizeRight) {\n if (lBuffer[l] <= rBuffer[r]) {\n out[o++] = lBuffer[l++];\n out[o++] = lBuffer[l++];\n } else {\n out[o++] = rBuffer[r++];\n out[o++] = rBuffer[r++];\n }\n }\n while (l < sizeLeft)\n out[o++] = lBuffer[l++];\n while (r < sizeRight)\n out[o++] = rBuffer[r++];\n}\n\n// https://heycam.github.io/webidl/#dfn-default-iterator-object\nfunction createSearchParamsIterator(target\x2C kind) {\n const iterator = ObjectCreate(URLSearchParamsIteratorPrototype);\n iterator[context] = {\n target\x2C\n kind\x2C\n index: 0\n };\n return iterator;\n}\n\n// https://heycam.github.io/webidl/#dfn-iterator-prototype-object\nconst URLSearchParamsIteratorPrototype = ObjectCreate(IteratorPrototype);\n\ndefineIDLClass(URLSearchParamsIteratorPrototype\x2C 'URLSearchParams Iterator'\x2C {\n next() {\n if (!this ||\n ObjectGetPrototypeOf(this) !== URLSearchParamsIteratorPrototype) {\n throw new ERR_INVALID_THIS('URLSearchParamsIterator');\n }\n\n const {\n target\x2C\n kind\x2C\n index\n } = this[context];\n const values = target[searchParams];\n const len = values.length;\n if (index >= len) {\n return {\n value: undefined\x2C\n done: true\n };\n }\n\n const name = values[index];\n const value = values[index + 1];\n this[context].index = index + 2;\n\n let result;\n if (kind === 'key') {\n result = name;\n } else if (kind === 'value') {\n result = value;\n } else {\n result = [name\x2C value];\n }\n\n return {\n value: result\x2C\n done: false\n };\n }\x2C\n [inspect.custom](recurseTimes\x2C ctx) {\n if (this == null || this[context] == null || this[context].target == null)\n throw new ERR_INVALID_THIS('URLSearchParamsIterator');\n\n if (typeof recurseTimes === 'number' && recurseTimes < 0)\n return ctx.stylize('[Object]'\x2C 'special');\n\n const innerOpts = { ...ctx };\n if (recurseTimes !== null) {\n innerOpts.depth = recurseTimes - 1;\n }\n const {\n target\x2C\n kind\x2C\n index\n } = this[context];\n const output = ArrayPrototypeReduce(\n ArrayPrototypeSlice(target[searchParams]\x2C index)\x2C\n (prev\x2C cur\x2C i) => {\n const key = i % 2 === 0;\n if (kind === 'key' && key) {\n ArrayPrototypePush(prev\x2C cur);\n } else if (kind === 'value' && !key) {\n ArrayPrototypePush(prev\x2C cur);\n } else if (kind === 'key+value' && !key) {\n ArrayPrototypePush(prev\x2C [target[searchParams][index + i - 1]\x2C cur]);\n }\n return prev;\n }\x2C\n []\n );\n const breakLn = inspect(output\x2C innerOpts).includes('\\n');\n const outputStrs = ArrayPrototypeMap(output\x2C (p) => inspect(p\x2C innerOpts));\n let outputStr;\n if (breakLn) {\n outputStr = `\\n ${ArrayPrototypeJoin(outputStrs\x2C '\x2C\\n ')}`;\n } else {\n outputStr = ` ${ArrayPrototypeJoin(outputStrs\x2C '\x2C ')}`;\n }\n return `${this[SymbolToStringTag]} {${outputStr} }`;\n }\n});\n\nfunction domainToASCII(domain) {\n if (arguments.length < 1)\n throw new ERR_MISSING_ARGS('domain');\n\n // toUSVString is not needed.\n return _domainToASCII(`${domain}`);\n}\n\nfunction domainToUnicode(domain) {\n if (arguments.length < 1)\n throw new ERR_MISSING_ARGS('domain');\n\n // toUSVString is not needed.\n return _domainToUnicode(`${domain}`);\n}\n\n// Utility function that converts a URL object into an ordinary\n// options object as expected by the http.request and https.request\n// APIs.\nfunction urlToHttpOptions(url) {\n const options = {\n protocol: url.protocol\x2C\n hostname: typeof url.hostname === 'string' &&\n StringPrototypeStartsWith(url.hostname\x2C '[') ?\n StringPrototypeSlice(url.hostname\x2C 1\x2C -1) :\n url.hostname\x2C\n hash: url.hash\x2C\n search: url.search\x2C\n pathname: url.pathname\x2C\n path: `${url.pathname || ''}${url.search || ''}`\x2C\n href: url.href\n };\n if (url.port !== '') {\n options.port = Number(url.port);\n }\n if (url.username || url.password) {\n options.auth = `${url.username}:${url.password}`;\n }\n return options;\n}\n\nconst forwardSlashRegEx = /\\//g;\n\nfunction getPathFromURLWin32(url) {\n const hostname = url.hostname;\n let pathname = url.pathname;\n for (let n = 0; n < pathname.length; n++) {\n if (pathname[n] === '%') {\n const third = pathname.codePointAt(n + 2) | 0x20;\n if ((pathname[n + 1] === '2' && third === 102) || // 2f 2F /\n (pathname[n + 1] === '5' && third === 99)) { // 5c 5C \\\n throw new ERR_INVALID_FILE_URL_PATH(\n 'must not include encoded \\\\ or / characters'\n );\n }\n }\n }\n pathname = pathname.replace(forwardSlashRegEx\x2C '\\\\');\n pathname = decodeURIComponent(pathname);\n if (hostname !== '') {\n // If hostname is set\x2C then we have a UNC path\n // Pass the hostname through domainToUnicode just in case\n // it is an IDN using punycode encoding. We do not need to worry\n // about percent encoding because the URL parser will have\n // already taken care of that for us. Note that this only\n // causes IDNs with an appropriate `xn--` prefix to be decoded.\n return `\\\\\\\\${domainToUnicode(hostname)}${pathname}`;\n }\n // Otherwise\x2C it's a local path that requires a drive letter\n const letter = pathname.codePointAt(1) | 0x20;\n const sep = pathname[2];\n if (letter < CHAR_LOWERCASE_A || letter > CHAR_LOWERCASE_Z || // a..z A..Z\n (sep !== ':')) {\n throw new ERR_INVALID_FILE_URL_PATH('must be absolute');\n }\n return pathname.slice(1);\n}\n\nfunction getPathFromURLPosix(url) {\n if (url.hostname !== '') {\n throw new ERR_INVALID_FILE_URL_HOST(platform);\n }\n const pathname = url.pathname;\n for (let n = 0; n < pathname.length; n++) {\n if (pathname[n] === '%') {\n const third = pathname.codePointAt(n + 2) | 0x20;\n if (pathname[n + 1] === '2' && third === 102) {\n throw new ERR_INVALID_FILE_URL_PATH(\n 'must not include encoded / characters'\n );\n }\n }\n }\n return decodeURIComponent(pathname);\n}\n\nfunction fileURLToPath(path) {\n if (typeof path === 'string')\n path = new URL(path);\n else if (!isURLInstance(path))\n throw new ERR_INVALID_ARG_TYPE('path'\x2C ['string'\x2C 'URL']\x2C path);\n if (path.protocol !== 'file:')\n throw new ERR_INVALID_URL_SCHEME('file');\n return isWindows ? getPathFromURLWin32(path) : getPathFromURLPosix(path);\n}\n\n// The following characters are percent-encoded when converting from file path\n// to URL:\n// - %: The percent character is the only character not encoded by the\n// `pathname` setter.\n// - \\: Backslash is encoded on non-windows platforms since it's a valid\n// character but the `pathname` setters replaces it by a forward slash.\n// - LF: The newline character is stripped out by the `pathname` setter.\n// (See whatwg/url#419)\n// - CR: The carriage return character is also stripped out by the `pathname`\n// setter.\n// - TAB: The tab character is also stripped out by the `pathname` setter.\nconst percentRegEx = /%/g;\nconst backslashRegEx = /\\\\/g;\nconst newlineRegEx = /\\n/g;\nconst carriageReturnRegEx = /\\r/g;\nconst tabRegEx = /\\t/g;\n\nfunction encodePathChars(filepath) {\n if (StringPrototypeIncludes(filepath\x2C '%'))\n filepath = StringPrototypeReplace(filepath\x2C percentRegEx\x2C '%25');\n // In posix\x2C backslash is a valid character in paths:\n if (!isWindows && StringPrototypeIncludes(filepath\x2C '\\\\'))\n filepath = StringPrototypeReplace(filepath\x2C backslashRegEx\x2C '%5C');\n if (StringPrototypeIncludes(filepath\x2C '\\n'))\n filepath = StringPrototypeReplace(filepath\x2C newlineRegEx\x2C '%0A');\n if (StringPrototypeIncludes(filepath\x2C '\\r'))\n filepath = StringPrototypeReplace(filepath\x2C carriageReturnRegEx\x2C '%0D');\n if (StringPrototypeIncludes(filepath\x2C '\\t'))\n filepath = StringPrototypeReplace(filepath\x2C tabRegEx\x2C '%09');\n return filepath;\n}\n\nfunction pathToFileURL(filepath) {\n const outURL = new URL('file://');\n if (isWindows && StringPrototypeStartsWith(filepath\x2C '\\\\\\\\')) {\n // UNC path format: \\\\server\\share\\resource\n const paths = StringPrototypeSplit(filepath\x2C '\\\\');\n if (paths.length <= 3) {\n throw new ERR_INVALID_ARG_VALUE(\n 'filepath'\x2C\n filepath\x2C\n 'Missing UNC resource path'\n );\n }\n const hostname = paths[2];\n if (hostname.length === 0) {\n throw new ERR_INVALID_ARG_VALUE(\n 'filepath'\x2C\n filepath\x2C\n 'Empty UNC servername'\n );\n }\n outURL.hostname = domainToASCII(hostname);\n outURL.pathname = encodePathChars(\n ArrayPrototypeJoin(ArrayPrototypeSlice(paths\x2C 3)\x2C '/'));\n } else {\n let resolved = path.resolve(filepath);\n // path.resolve strips trailing slashes so we must add them back\n const filePathLast = StringPrototypeCharCodeAt(filepath\x2C\n filepath.length - 1);\n if ((filePathLast === CHAR_FORWARD_SLASH ||\n (isWindows && filePathLast === CHAR_BACKWARD_SLASH)) &&\n resolved[resolved.length - 1] !== path.sep)\n resolved += '/';\n outURL.pathname = encodePathChars(resolved);\n }\n return outURL;\n}\n\nfunction isURLInstance(fileURLOrPath) {\n return fileURLOrPath != null && fileURLOrPath.href && fileURLOrPath.origin;\n}\n\nfunction toPathIfFileURL(fileURLOrPath) {\n if (!isURLInstance(fileURLOrPath))\n return fileURLOrPath;\n return fileURLToPath(fileURLOrPath);\n}\n\nfunction constructUrl(flags\x2C protocol\x2C username\x2C password\x2C\n host\x2C port\x2C path\x2C query\x2C fragment) {\n const ctx = new URLContext();\n ctx.flags = flags;\n ctx.scheme = protocol;\n ctx.username = (flags & URL_FLAGS_HAS_USERNAME) !== 0 ? username : '';\n ctx.password = (flags & URL_FLAGS_HAS_PASSWORD) !== 0 ? password : '';\n ctx.port = port;\n ctx.path = (flags & URL_FLAGS_HAS_PATH) !== 0 ? path : [];\n ctx.query = query;\n ctx.fragment = fragment;\n ctx.host = host;\n\n const url = ObjectCreate(URL.prototype);\n url[context] = ctx;\n const params = new URLSearchParams();\n url[searchParams] = params;\n params[context] = url;\n initSearchParams(params\x2C query);\n return url;\n}\nsetURLConstructor(constructUrl);\n\nmodule.exports = {\n toUSVString\x2C\n fileURLToPath\x2C\n pathToFileURL\x2C\n toPathIfFileURL\x2C\n isURLInstance\x2C\n URL\x2C\n URLSearchParams\x2C\n domainToASCII\x2C\n domainToUnicode\x2C\n urlToHttpOptions\x2C\n formatSymbol: kFormat\x2C\n searchParamsSymbol: searchParams\x2C\n encodeStr\n};\n
code-source-info,0x16e49096065e,33,40960,41081,C0O40980C3O40985C9O41019C11O41040C12O41043C15O41050C19O41079,,
tick,0x7f4debd50626,130714,0,0x0,3,0x11e9ce0,0x16e49095e8c9,0x16e490958915,0x16e4909574a5,0x16e490956d54,0x167e0307d281,0xb6d53549b45,0xb6d53549025,0x158e77f
tick,0x7f4debd4449c,130733,0,0x0,3,0x11e9ce0,0x16e49095e8c9,0x16e490958915,0x16e4909574a5,0x16e490956d54,0x167e0307d281,0xb6d53549b45,0xb6d53549025,0x158e77f
code-creation,LazyCompile,10,130740,0x16e490963626,17,isURLInstance node:internal/url:1445:23,0x1eac91c16598,~
code-source-info,0x16e490963626,33,40837,40934,C0O40857C3O40878C6O40903C12O40925C16O40932,,
code-creation,LazyCompile,10,130795,0x16e49096377e,81, node:internal/fs/utils:667:38,0xe5ca5ce08e8,~
code-source-info,0x16e49096377e,77,18121,18391,C14O18154C22O18187C25O18187C31O18213C36O18244C49O18219C54O18213C55O18309C68O18309C74O18346C76O18375C78O18375C80O18390,,
code-creation,LazyCompile,10,130840,0x16e4909639b6,110, node:internal/fs/utils:356:35,0xe5ca5cdff60,~
code-source-info,0x16e4909639b6,77,8549,9138,C16O8613C21O8666C26O8666C31O8760C37O8783C41O8811C45O8828C51O8828C60O8879C64O8900C69O8900C76O8945C77O8952C78O8972C94O8972C100O9086C104O9108C106O9108C107O9125C109O9136,,
code-creation,LazyCompile,10,130868,0x16e490963b3e,16,isUint8Array node:internal/util/types:13:22,0x38b4b3b16d28,~
script-source,15,node:internal/util/types,'use strict';\n\nconst {\n ArrayBufferIsView\x2C\n ObjectDefineProperties\x2C\n TypedArrayPrototypeGetSymbolToStringTag\x2C\n} = primordials;\n\nfunction isTypedArray(value) {\n return TypedArrayPrototypeGetSymbolToStringTag(value) !== undefined;\n}\n\nfunction isUint8Array(value) {\n return TypedArrayPrototypeGetSymbolToStringTag(value) === 'Uint8Array';\n}\n\nfunction isUint8ClampedArray(value) {\n return TypedArrayPrototypeGetSymbolToStringTag(value) === 'Uint8ClampedArray';\n}\n\nfunction isUint16Array(value) {\n return TypedArrayPrototypeGetSymbolToStringTag(value) === 'Uint16Array';\n}\n\nfunction isUint32Array(value) {\n return TypedArrayPrototypeGetSymbolToStringTag(value) === 'Uint32Array';\n}\n\nfunction isInt8Array(value) {\n return TypedArrayPrototypeGetSymbolToStringTag(value) === 'Int8Array';\n}\n\nfunction isInt16Array(value) {\n return TypedArrayPrototypeGetSymbolToStringTag(value) === 'Int16Array';\n}\n\nfunction isInt32Array(value) {\n return TypedArrayPrototypeGetSymbolToStringTag(value) === 'Int32Array';\n}\n\nfunction isFloat32Array(value) {\n return TypedArrayPrototypeGetSymbolToStringTag(value) === 'Float32Array';\n}\n\nfunction isFloat64Array(value) {\n return TypedArrayPrototypeGetSymbolToStringTag(value) === 'Float64Array';\n}\n\nfunction isBigInt64Array(value) {\n return TypedArrayPrototypeGetSymbolToStringTag(value) === 'BigInt64Array';\n}\n\nfunction isBigUint64Array(value) {\n return TypedArrayPrototypeGetSymbolToStringTag(value) === 'BigUint64Array';\n}\n\nmodule.exports = {\n ...internalBinding('types')\x2C\n isArrayBufferView: ArrayBufferIsView\x2C\n isTypedArray\x2C\n isUint8Array\x2C\n isUint8ClampedArray\x2C\n isUint16Array\x2C\n isUint32Array\x2C\n isInt8Array\x2C\n isInt16Array\x2C\n isInt32Array\x2C\n isFloat32Array\x2C\n isFloat64Array\x2C\n isBigInt64Array\x2C\n isBigUint64Array\n};\n\nlet isCryptoKey;\nlet isKeyObject;\n\nObjectDefineProperties(module.exports\x2C {\n isKeyObject: {\n configurable: false\x2C\n enumerable: true\x2C\n value(obj) {\n if (!process.versions.openssl) {\n return false;\n }\n\n if (!isKeyObject) {\n ({ isKeyObject } = require('internal/crypto/keys'));\n }\n\n return isKeyObject(obj);\n }\n }\x2C\n isCryptoKey: {\n configurable: false\x2C\n enumerable: true\x2C\n value(obj) {\n if (!process.versions.openssl) {\n return false;\n }\n\n if (!isCryptoKey) {\n ({ isCryptoKey } = require('internal/crypto/keys'));\n }\n\n return isCryptoKey(obj);\n }\n }\n});\n
code-source-info,0x16e490963b3e,15,257,342,C0O269C5O276C12O323C15O340,,
code-creation,LazyCompile,10,131016,0x16e490963fee,97,parseFileMode node:internal/validators:58:23,0x38b4b3b19c08,~
code-source-info,0x16e490963fee,17,1468,1764,C0O1491C11O1508C17O1545C24O1570C27O1550C34O1596C41O1641C52O1602C57O1596C58O1662C66O1670C73O1703C89O1703C94O1749C96O1762,,
code-creation,LazyCompile,10,131091,0x16e490964406,515,stringToFlags node:internal/fs/utils:554:23,0xe5ca5ce0758,~
code-source-info,0x16e490964406,77,15027,16261,C14O15055C20O15092C25O15092C30O15124C32O15137C33O15145C38O15170C42O15186C43O15194C202O15226C206O15242C207O15292C214O15310C216O15308C219O15317C220O15334C224O15348C225O15400C232O15416C234O15414C237O15423C238O15440C245O15457C247O15455C253O15467C255O15465C258O15476C259O15526C266O15543C268O15541C274O15553C276O15551C282O15564C284O15562C287O15571C288O15589C295O15606C297O15604C303O15616C305O15614C308O15623C309O15673C316O15690C318O15688C324O15700C326O15698C332O15709C334O15707C337O15716C338O15733C345O15751C347O15749C353O15761C355O15759C358O15770C359O15820C366O15838C368O15836C374O15848C376O15846C382O15859C384O15857C387O15866C388O15916C395O15934C397O15932C403O15944C405O15942C411O15955C413O15953C416O15962C417O15980C424O15998C426O15996C432O16008C434O16006C437O16015C438O16065C445O16083C447O16081C453O16093C455O16091C461O16102C463O16100C466O16109C467O16159C474O16177C476O16175C482O16187C484O16185C490O16196C492O16194C495O16203C496O16211C509O16217C514O16211,,
code-creation,LazyCompile,10,131138,0x16e49096484e,32,makeCallback node:fs:182:22,0xe5ca5cd5ba8,~
code-source-info,0x16e49096484e,76,4768,4853,C0O4768C13O4777C23O4777C27O4802C31O4851,,
code-creation,LazyCompile,10,131197,0x16e4909649b6,3,toNamespacedPath node:path:1266:19,0x1eac91c23aa0,~
code-source-info,0x16e4909649b6,35,38609,38669,C0O38653C2O38665,,
tick,0x7f4debec5452,131488,1,0xb09f50,6,0xd44a10,0x16e4909589a5,0x16e4909574a5,0x16e490956d54,0x167e0307d281,0xb6d53549b45,0xb6d53549025,0x158e77f
code-creation,LazyCompile,10,131584,0x16e490964a76,18,promiseInitHookWithDestroyTracking node:internal/async_hooks:326:44,0x334c17f38fb0,~
code-source-info,0x16e490964a76,24,11962,12055,C0O11984C3O11984C8O12020C11O12020C17O12054,,
code-creation,LazyCompile,10,131641,0x16e490964b7e,46,promiseInitHook node:internal/async_hooks:319:25,0x334c17f38f60,~
code-source-info,0x16e490964b7e,24,11697,11917,C0O11719C3O11719C8O11768C10O11776C12O11775C16O11819C18O11827C20O11826C24O11855C39O11855C45O11916,,
code-creation,LazyCompile,10,131672,0x16e490964cae,59,trackPromise node:internal/async_hooks:305:22,0x334c17f38f10,~
code-source-info,0x16e490964cae,24,11262,11671,C0O11284C2O11296C4O11295C9O11320C10O11327C11O11506C18O11515C27O11545C31O11576C33O11584C39O11603C42O11601C46O11619C48O11627C53O11652C58O11670,,
code-creation,LazyCompile,10,131699,0x16e490964df6,44,getOrSetAsyncId node:internal/async_hooks:417:25,0x334c17f39338,~
code-source-info,0x16e490964df6,24,14518,14684,C0O14531C7O14573C10O14535C17O14597C19O14611C21O14610C24O14628C25O14636C27O14650C33O14669C37O14667C43O14682,,
code-creation,LazyCompile,10,131753,0x16e490964f6e,53,destroyTracking node:internal/async_hooks:333:25,0x334c17f39000,~
code-source-info,0x16e490964f6e,24,12127,12359,C0O12149C3O12149C8O12198C10O12206C12O12205C16O12244C21O12268C23O12276C28O12293C32O12308C46O12308C52O12358,,
code-creation,LazyCompile,10,131810,0x16e490965216,42,promiseBeforeHook node:internal/async_hooks:341:27,0x334c17f39050,~
code-source-info,0x16e490965216,24,12387,12572,C0O12401C3O12401C7O12442C9O12450C11O12449C15O12488C17O12496C19O12495C23O12524C35O12524C41O12571,,
code-creation,LazyCompile,10,131835,0x16e49096533e,42,emitBeforeScript node:internal/async_hooks:497:26,0x334c17f39728,~
code-source-info,0x16e49096533e,24,16566,16717,C0O16606C12O16606C17O16662C22O16675C25O16666C31O16689C36O16689C41O16716,,
code-creation,LazyCompile,10,131876,0x16e49096549e,180,pushAsyncContext node:internal/async_hooks:527:26,0x334c17f398d0,~
code-source-info,0x16e49096549e,24,17210,17755,C0O17265C7O17283C9O17282C13O17300C20O17334C24O17348C26O17359C32O17366C35O17377C40O17393C44O17363C49O17405C54O17412C59O17455C60O17458C65O17469C72O17492C78O17499C83O17515C85O17514C88O17497C92O17537C97O17548C104O17571C107O17575C113O17582C118O17598C120O17597C123O17580C127O17618C134O17636C142O17649C146O17655C153O17671C158O17690C162O17703C169O17719C174O17736C179O17754,,
code-creation,LazyCompile,10,131944,0x16e490965716,204,emitHook node:internal/async_hooks:226:18,0x334c17f38d60,~
code-source-info,0x16e490965716,24,8653,9586,C0O8675C12O8699C22O8974C24O8979C26O8981C29O8994C34O9000C38O8979C43O9021C48O9045C55O9050C61O9053C68O9088C73O9101C80O9106C86O9109C90O9117C95O9009C100O8961C116O9162C124O9162C142O9195C154O9219C169O9483C174O9500C180O9511C187O9520C190O9533C196O9559C199O9559C203O9585,,
code-creation,LazyCompile,10,131980,0x16e490965936,48,before node:domain:89:9,0x167e03049e78,~
code-source-info,0x16e490965936,127,3058,3534,C0O3090C5O3098C10O3098C16O3116C18O3486C23O3486C27O3510C32O3510C37O3515C42O3516C47O3533,,
code-creation,LazyCompile,10,132012,0x16e490965a76,58,promiseAfterHook node:internal/async_hooks:348:26,0x334c17f390a0,~
code-source-info,0x16e490965a76,24,12599,13141,C0O12613C3O12613C7O12654C9O12662C11O12661C15O12682C20O12695C23O12686C29O12710C34O12710C38O12742C41O12758C44O12754C49O13110C52O13110C57O13140,,
code-creation,LazyCompile,10,132039,0x16e490965bce,48,after node:domain:100:8,0x167e03049ec8,~
code-source-info,0x16e490965bce,127,3543,3747,C0O3575C5O3583C10O3583C16O3601C18O3686C23O3686C28O3707C33O3707C37O3730C42O3730C47O3746,,
code-creation,LazyCompile,10,132058,0x16e490965d06,13,executionAsyncId node:internal/async_hooks:559:26,0x334c17f39970,~
code-source-info,0x16e490965d06,24,18459,18510,C0O18466C7O18489C9O18488C12O18508,,
code-creation,LazyCompile,10,132097,0x16e490965e66,167,popAsyncContext node:internal/async_hooks:541:25,0x334c17f39920,~
code-source-info,0x16e490965e66,24,17844,18431,C0O17878C7O17896C9O17895C13O17913C14O17929C19O17936C20O17949C21O17953C24O17957C31O17980C36O17996C38O17995C44O18015C49O18097C54O18104C58O18130C59O18153C61O18165C65O18172C72O18188C77O18209C80O18220C87O18238C90O18235C93O18207C97O18251C104O18267C109O18286C112O18297C119O18315C122O18324C125O18312C128O18284C132O18332C137O18358C142O18358C146O18367C153O18385C158O18399C162O18411C163O18425C166O18429,,
code-creation,LazyCompile,10,132134,0x16e490966056,13,enabledHooksExist node:internal/async_hooks:462:27,0x334c17f39528,~
code-source-info,0x16e490966056,24,15838,15871,C0O15845C5O15861C8O15852C12O15869,,
code-creation,LazyCompile,10,132209,0x16e4909661e6,318,processTicksAndRejections node:internal/process/task_queues:68:35,0x334c17f3b330,~
code-source-info,0x16e4909661e6,25,1496,2430,C0O1507C2O1536C7O1544C12O1544C17O1536C19O1577C21O1582C23O1581C27O1606C34O1631C36O1630C46O1606C54O1707C59O1734C65O1766C70O1823C75O1852C110O1882C111O1895C115O1882C119O1901C121O1928C122O1941C128O1950C132O1928C137O1956C139O1983C140O1996C146O2005C152O2014C156O1983C161O2020C163O2047C164O2060C170O2069C176O2078C182O2087C186O2047C191O2093C193O2121C198O2121C215O2188C220O2192C225O2223C230O2223C245O2260C250O2260C256O2290C261O2290C264O2335C269O2325C274O2325C282O2338C285O2338C290O1515C296O2369C301O2369C305O2399C312O2399C317O2429,,
code-creation,LazyCompile,10,132248,0x16e4909664ce,43,shift node:internal/fixed_queue:108:8,0x1eac91c01408,~
code-source-info,0x16e4909664ce,28,3954,4180,C0O3981C5O4009C10O4009C15O4031C20O4031C26O4049C32O4148C36O4141C40O4164C42O4176,,
code-creation,LazyCompile,10,132275,0x16e490966626,54,shift node:internal/fixed_queue:80:8,0x1eac91c011e8,~
code-source-info,0x16e490966626,28,3300,3510,C0O3331C5O3341C9O3335C13O3354C15O3388C16O3400C17O3410C22O3420C28O3428C32O3465C36O3472C42O3479C44O3477C47O3457C51O3490C53O3506,,
code-creation,LazyCompile,10,132319,0x16e490966786,46,afterWriteTick node:internal/streams/writable:482:24,0x3787ca79d1a0,~
code-source-info,0x16e490966786,56,15092,15208,C0O15095C5O15103C10O15110C15O15117C20O15127C21O15152C25O15162C40O15169C45O15206,,
code-creation,LazyCompile,10,132360,0x16e4909668ee,104,afterWrite node:internal/streams/writable:487:20,0x3787ca79d1f0,~
code-source-info,0x16e4909668ee,56,15229,15585,C0O15285C7O15303C14O15322C20O15329C25O15348C30O15361C32O15382C33O15398C37O15418C45O15418C50O15455C60O15455C65O15466C71O15481C75O15489C78O15440C81O15512C87O15529C90O15529C94O15556C97O15556C103O15584,,
code-creation,LazyCompile,10,132389,0x16e490966a8e,35,get node:internal/streams/duplex:94:8,0x3787ca79ec38,~
code-source-info,0x16e490966a8e,57,3274,3483,C0O3294C6O3339C12O3379C13O3392C14O3419C19O3434C25O3452C30O3467C34O3477,,
code-creation,LazyCompile,10,132426,0x16e490966bde,87, node:internal/console/constructor:342:10,0x1eac91c078f0,~
code-source-info,0x16e490966bde,30,10348,11166,C0O10565C7O10582C9O10578C17O10610C26O10629C31O10642C35O10670C40O10685C46O11081C54O11081C61O11104C66O11128C79O11128C86O11165,,
code-creation,LazyCompile,10,132480,0x16e490966d46,85,finishMaybe node:internal/streams/writable:727:21,0x3787ca79d4c8,~
code-source-info,0x16e490966d46,56,21275,21567,C0O21301C3O21305C9O21330C12O21330C17O21370C23O21380C31O21389C37O21416C43O21431C47O21441C51O21461C54O21469C68O21469C75O21525C78O21525C84O21566,,
code-creation,LazyCompile,10,132546,0x16e490966ee6,73,needFinish node:internal/streams/writable:650:20,0x3787ca79d3d8,~
code-source-info,0x16e490966ee6,56,19361,19652,C0O19387C6O19413C12O19444C18O19451C23O19477C30O19504C35O19513C41O19520C46O19546C53O19575C60O19603C67O19636C72O19650,,
tick,0xf8d7b8,132563,0,0x0,3,0x11e9ce0,0x16e490966d49,0x16e49096694f,0x16e4909667ae,0x16e490966259
code-creation,LazyCompile,10,132580,0x16e49096703e,39,emitDestroyScript node:internal/async_hooks:513:27,0x334c17f397e8,~
code-source-info,0x16e49096703e,24,16869,17053,C0O16956C5O16970C8O16961C15O16991C20O17001C21O17008C22O17011C27O17022C32O17022C38O17052,,
code-creation,LazyCompile,10,132606,0x16e490967166,32,emitAfterScript node:internal/async_hooks:505:25,0x334c17f39778,~
code-source-info,0x16e490967166,24,16744,16840,C0O16758C5O16771C8O16762C14O16784C19O16784C23O16813C26O16813C31O16839,,
code-creation,LazyCompile,10,132663,0x16e4909672a6,87,resume_ node:internal/streams/readable:980:17,0x3787ca791170,~
code-source-info,0x16e4909672a6,51,31187,31422,C0O31207C8O31229C13O31207C18O31252C24O31274C31O31274C36O31290C37O31312C41O31330C49O31330C54O31348C57O31348C61O31374C67O31392C73O31412C80O31412C86O31421,,
code-creation,LazyCompile,10,132714,0x16e490967426,45,flow node:internal/streams/readable:1004:14,0x3787ca791248,~
code-source-info,0x16e490967426,51,31734,31868,C0O31768C5O31786C13O31806C18O31786C23O31831C29O31849C34O31849C40O31818C44O31867,,
code-creation,LazyCompile,10,132745,0x16e490967536,2,nop node:internal/streams/writable:73:13,0x3787ca79c540,~
code-source-info,0x16e490967536,56,2409,2414,C1O2413,,
code-creation,LazyCompile,10,132782,0x16e49096773e,103,onpause node:internal/bootstrap/switches/is_main_thread:217:19,0x16e4909443f0,~
code-source-info,0x16e49096773e,87,6010,6234,C0O6019C7O6030C13O6045C14O6052C15O6057C22O6067C27O6075C37O6087C40O6093C46O6118C53O6124C59O6147C63O6162C70O6168C76O6184C80O6199C87O6205C92O6213C97O6213C102O6233,,
code-creation,LazyCompile,10,132806,0x16e4909678c6,10,get node:internal/streams/readable:1202:18,0x3787ca791758,~
code-source-info,0x16e4909678c6,51,36366,36418,C0O36389C5O36404C9O36412,,
code-creation,LazyCompile,10,132945,0x16e490967b56,439,processPromiseRejections node:internal/process/promises:203:34,0x334c17f3e6c8,~
script-source,26,node:internal/process/promises,'use strict';\n\nconst {\n ArrayPrototypePush\x2C\n ArrayPrototypeShift\x2C\n Error\x2C\n ObjectDefineProperty\x2C\n SafeWeakMap\x2C\n} = primordials;\n\nconst {\n tickInfo\x2C\n promiseRejectEvents: {\n kPromiseRejectWithNoHandler\x2C\n kPromiseHandlerAddedAfterReject\x2C\n kPromiseResolveAfterResolved\x2C\n kPromiseRejectAfterResolved\n }\x2C\n setPromiseRejectCallback\n} = internalBinding('task_queue');\n\nconst {\n noSideEffectsToString\x2C\n triggerUncaughtException\n} = internalBinding('errors');\n\nconst {\n pushAsyncContext\x2C\n popAsyncContext\x2C\n} = require('internal/async_hooks');\nconst async_hooks = require('async_hooks');\nconst { isErrorStackTraceLimitWritable } = require('internal/errors');\n\n// *Must* match Environment::TickInfo::Fields in src/env.h.\nconst kHasRejectionToWarn = 1;\n\nconst maybeUnhandledPromises = new SafeWeakMap();\nconst pendingUnhandledRejections = [];\nconst asyncHandledRejections = [];\nlet lastPromiseId = 0;\n\n// --unhandled-rejections=none:\n// Emit 'unhandledRejection'\x2C but do not emit any warning.\nconst kIgnoreUnhandledRejections = 0;\n\n// --unhandled-rejections=warn:\n// Emit 'unhandledRejection'\x2C then emit 'UnhandledPromiseRejectionWarning'.\nconst kAlwaysWarnUnhandledRejections = 1;\n\n// --unhandled-rejections=strict:\n// Emit 'uncaughtException'. If it's not handled\x2C print the error to stderr\n// and exit the process.\n// Otherwise\x2C emit 'unhandledRejection'. If 'unhandledRejection' is not\n// handled\x2C emit 'UnhandledPromiseRejectionWarning'.\nconst kStrictUnhandledRejections = 2;\n\n// --unhandled-rejections=throw:\n// Emit 'unhandledRejection'\x2C if it's unhandled\x2C emit\n// 'uncaughtException'. If it's not handled\x2C print the error to stderr\n// and exit the process.\nconst kThrowUnhandledRejections = 3;\n\n// --unhandled-rejections=warn-with-error-code:\n// Emit 'unhandledRejection'\x2C if it's unhandled\x2C emit\n// 'UnhandledPromiseRejectionWarning'\x2C then set process exit code to 1.\n\nconst kWarnWithErrorCodeUnhandledRejections = 4;\n\nlet unhandledRejectionsMode;\n\nfunction setHasRejectionToWarn(value) {\n tickInfo[kHasRejectionToWarn] = value ? 1 : 0;\n}\n\nfunction hasRejectionToWarn() {\n return tickInfo[kHasRejectionToWarn] === 1;\n}\n\nfunction getUnhandledRejectionsMode() {\n const { getOptionValue } = require('internal/options');\n switch (getOptionValue('--unhandled-rejections')) {\n case 'none':\n return kIgnoreUnhandledRejections;\n case 'warn':\n return kAlwaysWarnUnhandledRejections;\n case 'strict':\n return kStrictUnhandledRejections;\n case 'throw':\n return kThrowUnhandledRejections;\n case 'warn-with-error-code':\n return kWarnWithErrorCodeUnhandledRejections;\n default:\n return kThrowUnhandledRejections;\n }\n}\n\nfunction promiseRejectHandler(type\x2C promise\x2C reason) {\n if (unhandledRejectionsMode === undefined) {\n unhandledRejectionsMode = getUnhandledRejectionsMode();\n }\n switch (type) {\n case kPromiseRejectWithNoHandler:\n unhandledRejection(promise\x2C reason);\n break;\n case kPromiseHandlerAddedAfterReject:\n handledRejection(promise);\n break;\n case kPromiseResolveAfterResolved:\n resolveError('resolve'\x2C promise\x2C reason);\n break;\n case kPromiseRejectAfterResolved:\n resolveError('reject'\x2C promise\x2C reason);\n break;\n }\n}\n\nfunction resolveError(type\x2C promise\x2C reason) {\n // We have to wrap this in a next tick. Otherwise the error could be caught by\n // the executed promise.\n process.nextTick(() => {\n process.emit('multipleResolves'\x2C type\x2C promise\x2C reason);\n });\n}\n\nfunction unhandledRejection(promise\x2C reason) {\n const asyncId = async_hooks.executionAsyncId();\n const triggerAsyncId = async_hooks.triggerAsyncId();\n const resource = promise;\n\n const emit = (reason\x2C promise\x2C promiseInfo) => {\n try {\n pushAsyncContext(asyncId\x2C triggerAsyncId\x2C resource);\n if (promiseInfo.domain) {\n return promiseInfo.domain.emit('error'\x2C reason);\n }\n return process.emit('unhandledRejection'\x2C reason\x2C promise);\n } finally {\n popAsyncContext(asyncId);\n }\n };\n\n maybeUnhandledPromises.set(promise\x2C {\n reason\x2C\n uid: ++lastPromiseId\x2C\n warned: false\x2C\n domain: process.domain\x2C\n emit\n });\n // This causes the promise to be referenced at least for one tick.\n ArrayPrototypePush(pendingUnhandledRejections\x2C promise);\n setHasRejectionToWarn(true);\n}\n\nfunction handledRejection(promise) {\n const promiseInfo = maybeUnhandledPromises.get(promise);\n if (promiseInfo !== undefined) {\n maybeUnhandledPromises.delete(promise);\n if (promiseInfo.warned) {\n const { uid } = promiseInfo;\n // Generate the warning object early to get a good stack trace.\n // eslint-disable-next-line no-restricted-syntax\n const warning = new Error('Promise rejection was handled ' +\n `asynchronously (rejection id: ${uid})`);\n warning.name = 'PromiseRejectionHandledWarning';\n warning.id = uid;\n ArrayPrototypePush(asyncHandledRejections\x2C { promise\x2C warning });\n setHasRejectionToWarn(true);\n return;\n }\n }\n if (maybeUnhandledPromises.size === 0 && asyncHandledRejections.length === 0)\n setHasRejectionToWarn(false);\n}\n\nconst unhandledRejectionErrName = 'UnhandledPromiseRejectionWarning';\nfunction emitUnhandledRejectionWarning(uid\x2C reason) {\n const warning = getErrorWithoutStack(\n unhandledRejectionErrName\x2C\n 'Unhandled promise rejection. This error originated either by ' +\n 'throwing inside of an async function without a catch block\x2C ' +\n 'or by rejecting a promise which was not handled with .catch(). ' +\n 'To terminate the node process on unhandled promise ' +\n 'rejection\x2C use the CLI flag `--unhandled-rejections=strict` (see ' +\n 'https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). ' +\n `(rejection id: ${uid})`\n );\n try {\n if (reason instanceof Error) {\n warning.stack = reason.stack;\n process.emitWarning(reason.stack\x2C unhandledRejectionErrName);\n } else {\n process.emitWarning(\n noSideEffectsToString(reason)\x2C unhandledRejectionErrName);\n }\n } catch {}\n\n process.emitWarning(warning);\n}\n\n// If this method returns true\x2C we've executed user code or triggered\n// a warning to be emitted which requires the microtask and next tick\n// queues to be drained again.\nfunction processPromiseRejections() {\n let maybeScheduledTicksOrMicrotasks = asyncHandledRejections.length > 0;\n\n while (asyncHandledRejections.length > 0) {\n const { promise\x2C warning } = ArrayPrototypeShift(asyncHandledRejections);\n if (!process.emit('rejectionHandled'\x2C promise)) {\n process.emitWarning(warning);\n }\n }\n\n let len = pendingUnhandledRejections.length;\n while (len--) {\n const promise = ArrayPrototypeShift(pendingUnhandledRejections);\n const promiseInfo = maybeUnhandledPromises.get(promise);\n if (promiseInfo === undefined) {\n continue;\n }\n promiseInfo.warned = true;\n const { reason\x2C uid\x2C emit } = promiseInfo;\n\n switch (unhandledRejectionsMode) {\n case kStrictUnhandledRejections: {\n const err = reason instanceof Error ?\n reason : generateUnhandledRejectionError(reason);\n triggerUncaughtException(err\x2C true /* fromPromise */);\n const handled = emit(reason\x2C promise\x2C promiseInfo);\n if (!handled) emitUnhandledRejectionWarning(uid\x2C reason);\n break;\n }\n case kIgnoreUnhandledRejections: {\n emit(reason\x2C promise\x2C promiseInfo);\n break;\n }\n case kAlwaysWarnUnhandledRejections: {\n emit(reason\x2C promise\x2C promiseInfo);\n emitUnhandledRejectionWarning(uid\x2C reason);\n break;\n }\n case kThrowUnhandledRejections: {\n const handled = emit(reason\x2C promise\x2C promiseInfo);\n if (!handled) {\n const err = reason instanceof Error ?\n reason : generateUnhandledRejectionError(reason);\n triggerUncaughtException(err\x2C true /* fromPromise */);\n }\n break;\n }\n case kWarnWithErrorCodeUnhandledRejections: {\n const handled = emit(reason\x2C promise\x2C promiseInfo);\n if (!handled) {\n emitUnhandledRejectionWarning(uid\x2C reason);\n process.exitCode = 1;\n }\n break;\n }\n }\n maybeScheduledTicksOrMicrotasks = true;\n }\n return maybeScheduledTicksOrMicrotasks ||\n pendingUnhandledRejections.length !== 0;\n}\n\nfunction getErrorWithoutStack(name\x2C message) {\n // Reset the stack to prevent any overhead.\n const tmp = Error.stackTraceLimit;\n if (isErrorStackTraceLimitWritable()) Error.stackTraceLimit = 0;\n // eslint-disable-next-line no-restricted-syntax\n const err = new Error(message);\n if (isErrorStackTraceLimitWritable()) Error.stackTraceLimit = tmp;\n ObjectDefineProperty(err\x2C 'name'\x2C {\n value: name\x2C\n enumerable: false\x2C\n writable: true\x2C\n configurable: true\x2C\n });\n return err;\n}\n\nfunction generateUnhandledRejectionError(reason) {\n const message =\n 'This error originated either by ' +\n 'throwing inside of an async function without a catch block\x2C ' +\n 'or by rejecting a promise which was not handled with .catch().' +\n ' The promise rejected with the reason ' +\n `"${noSideEffectsToString(reason)}".`;\n\n const err = getErrorWithoutStack('UnhandledPromiseRejection'\x2C message);\n err.code = 'ERR_UNHANDLED_REJECTION';\n return err;\n}\n\nfunction listenForRejections() {\n setPromiseRejectCallback(promiseRejectHandler);\n}\nmodule.exports = {\n hasRejectionToWarn\x2C\n setHasRejectionToWarn\x2C\n listenForRejections\x2C\n processPromiseRejections\x2C\n};\n
code-source-info,0x16e490967b56,26,6333,8378,C0O6378C5O6401C11O6408C15O6453C20O6446C26O6453C31O6493C38O6513C41O6493C46O6472C51O6481C56O6542C59O6555C68O6555C76O6598C79O6606C84O6606C89O6416C92O6651C97O6678C102O6698C112O6698C114O6724C121O6744C124O6724C129O6797C134O6820C139O6820C145O6838C147O6877C149O6897C150O6916C154O6936C159O6944C164O6949C169O6976C176O7022C185O7381C194O7489C203O7653C212O7985C221O7072C223O7090C225O7079C237O7117C242O7166C250O7166C255O7245C264O7245C270O7289C272O7303C275O7303C280O7355C282O7419C291O7419C296O7463C298O7531C307O7531C312O7575C315O7575C320O7627C322O7706C331O7706C337O7750C339O7788C341O7806C343O7795C355O7835C360O7886C368O7886C373O7959C375O8050C384O8050C390O8094C392O8120C395O8120C400O8174C405O8191C409O8214C411O8239C413O6688C419O8285C425O8336C428O8363C434O8370C438O8376,,
code-creation,LazyCompile,10,133440,0x16e490968876,25,setHasRejectionToWarn node:internal/process/promises:71:31,0x334c17f3dcd8,~
code-source-info,0x16e490968876,26,2001,2061,C0O2013C7O2022C12O2045C19O2043C24O2060,,
code-creation,LazyCompile,10,133529,0x16e4909689ce,173,callbackTrampoline node:internal/async_hooks:118:28,0x334c17f38b30,~
code-source-info,0x16e4909689ce,24,5228,5750,C0O5228C14O5279C21O5297C23O5296C26O5311C30O5318C37O5351C41O5366C42O5378C52O5396C55O5387C61O5410C66O5410C70O5444C72O5454C73O5466C86O5519C91O5519C96O5536C101O5555C106O5555C115O5601C120O5601C127O5627C128O5639C138O5657C141O5648C147O5670C152O5670C156O5699C161O5725C166O5725C170O5734C172O5748,,
code-creation,LazyCompile,10,133572,0x16e490968bb6,25, node:fs:185:10,0x16e490964790,~
code-source-info,0x16e490968bb6,76,4809,4850,C0O4809C3O4822C19O4822C24O4850,,
tick,0x7f4debd443b7,133629,0,0x0,3,0x11e9ce0,0x16e490968a46
code-creation,LazyCompile,10,133653,0x16e490968d26,102,oninit node:internal/repl/history:65:18,0x16e490956fb0,~
code-source-info,0x16e490968d26,129,1711,2115,C0O1728C4O1830C17O1893C21O1830C26O1959C33O1969C38O1959C42O1984C49O2002C53O2031C56O2036C61O2036C65O2052C73O2059C78O2077C79O2088C86O2091C94O2091C101O2114,,
code-creation,LazyCompile,10,133692,0x16e490968ebe,74,close node:fs:508:15,0xe5ca5cd61c0,~
code-source-info,0x16e490968ebe,76,12897,13136,C14O12939C19O12944C24O12966C26O12979C31O13009C34O13020C39O13059C44O13059C50O13082C52O13097C56O13111C61O13119C66O13119C73O13135,,
code-creation,LazyCompile,10,133739,0x16e490969036,52, node:internal/fs/utils:685:40,0xe5ca5ce0988,~
code-source-info,0x16e490969036,77,18614,18735,C14O18643C22O18647C29O18671C30O18680C31O18688C44O18688C49O18723C51O18733,,
code-creation,LazyCompile,10,133831,0x16e490969166,17,destroy node:domain:108:10,0x167e03049f18,~
code-source-info,0x16e490969166,127,3758,3817,C0O3774C5O3782C10O3788C16O3816,,
code-creation,LazyCompile,10,133880,0x16e49096926e,40,onclose node:internal/repl/history:80:19,0x16e490957000,~
code-source-info,0x16e49096926e,129,2135,2238,C0O2147C4O2164C7O2171C11O2182C12O2193C19O2196C33O2196C39O2237,,
code-creation,LazyCompile,10,133960,0x16e4909694fe,264,readFile node:fs:370:18,0xe5ca5cd5fa8,~
code-source-info,0x16e4909694fe,76,9391,10263,C0O9391C9O9421C16O9446C21O9432C27O9470C34O9491C39O9480C46O9534C53O9572C63O9534C69O9585C73O9604C79O9604C83O9602C87O9660C93O9699C97O9689C101O9725C107O9741C112O9749C122O9749C128O9870C129O9877C130O9885C135O9910C140O9889C147O9933C148O9940C149O9964C156O9986C164O9964C170O10011C180O10018C184O10016C186O10057C193O10057C199O10080C201O10092C205O10105C209O10120C213O10143C220O10151C229O10156C232O10167C240O10167C257O10151C263O10262,,
code-creation,LazyCompile,10,133988,0x16e490969796,12,maybeCallback node:fs:173:23,0xe5ca5cd5b58,~
code-source-info,0x16e490969796,76,4498,4544,C0O4507C5O4507C9O4532C11O4542,,
code-creation,LazyCompile,10,134038,0x16e4909698fe,123,getOptions node:internal/fs/utils:313:20,0xe5ca5cdfec0,~
code-source-info,0x16e4909698fe,77,7198,7821,C0O7228C14O7320C16O7342C17O7350C23O7389C29O7433C31O7457C35O7472C42O7507C48O7546C66O7552C71O7546C72O7639C79O7648C84O7666C87O7689C92O7666C96O7715C102O7743C107O7771C115O7743C120O7804C122O7819,,
code-creation,LazyCompile,10,134077,0x16e490969ae6,48,assertEncoding node:internal/fs/utils:150:24,0xe5ca5cdf8c8,~
code-source-info,0x16e490969ae6,77,3507,3684,C0O3522C6O3539C9O3546C14O3546C21O3589C24O3616C40O3622C45O3616C47O3683,,
code-creation,LazyCompile,10,134103,0x16e490969c0e,30,isEncoding node:buffer:528:40,0x38b4b3b24f70,~
code-source-info,0x16e490969c0e,18,14754,14886,C0O14769C6O14817C12O14824C20O14842C23O14842C28O14870C29O14884,,
code-creation,LazyCompile,10,134146,0x16e490969d6e,54,ReadFileContext node:internal/fs/read_file_context:72:14,0xe5ca5ce7958,~
script-source,80,node:internal/fs/read_file_context,'use strict';\n\nconst {\n ArrayPrototypePush\x2C\n MathMin\x2C\n ReflectApply\x2C\n} = primordials;\n\nconst {\n constants: {\n kReadFileBufferLength\x2C\n kReadFileUnknownBufferLength\x2C\n }\n} = require('internal/fs/utils');\n\nconst { Buffer } = require('buffer');\n\nconst { FSReqCallback\x2C close\x2C read } = internalBinding('fs');\n\nconst {\n AbortError\x2C\n aggregateTwoErrors\x2C\n} = require('internal/errors');\n\nfunction readFileAfterRead(err\x2C bytesRead) {\n const context = this.context;\n\n if (err)\n return context.close(err);\n\n context.pos += bytesRead;\n\n if (context.pos === context.size || bytesRead === 0) {\n context.close();\n } else {\n if (context.size === 0) {\n // Unknown size\x2C just read until we don't get bytes.\n const buffer = bytesRead === kReadFileUnknownBufferLength ?\n context.buffer : context.buffer.slice(0\x2C bytesRead);\n ArrayPrototypePush(context.buffers\x2C buffer);\n }\n context.read();\n }\n}\n\nfunction readFileAfterClose(err) {\n const context = this.context;\n const callback = context.callback;\n let buffer = null;\n\n if (context.err || err)\n return callback(aggregateTwoErrors(err\x2C context.err));\n\n try {\n if (context.size === 0)\n buffer = Buffer.concat(context.buffers\x2C context.pos);\n else if (context.pos < context.size)\n buffer = context.buffer.slice(0\x2C context.pos);\n else\n buffer = context.buffer;\n\n if (context.encoding)\n buffer = buffer.toString(context.encoding);\n } catch (err) {\n return callback(err);\n }\n\n callback(null\x2C buffer);\n}\n\nclass ReadFileContext {\n constructor(callback\x2C encoding) {\n this.fd = undefined;\n this.isUserFd = undefined;\n this.size = 0;\n this.callback = callback;\n this.buffers = null;\n this.buffer = null;\n this.pos = 0;\n this.encoding = encoding;\n this.err = null;\n this.signal = undefined;\n }\n\n read() {\n let buffer;\n let offset;\n let length;\n\n if (this.signal?.aborted) {\n return this.close(new AbortError());\n }\n if (this.size === 0) {\n buffer = Buffer.allocUnsafeSlow(kReadFileUnknownBufferLength);\n offset = 0;\n length = kReadFileUnknownBufferLength;\n this.buffer = buffer;\n } else {\n buffer = this.buffer;\n offset = this.pos;\n length = MathMin(kReadFileBufferLength\x2C this.size - this.pos);\n }\n\n const req = new FSReqCallback();\n req.oncomplete = readFileAfterRead;\n req.context = this;\n\n read(this.fd\x2C buffer\x2C offset\x2C length\x2C -1\x2C req);\n }\n\n close(err) {\n if (this.isUserFd) {\n process.nextTick(function tick(context) {\n ReflectApply(readFileAfterClose\x2C { context }\x2C [null]);\n }\x2C this);\n return;\n }\n\n const req = new FSReqCallback();\n req.oncomplete = readFileAfterClose;\n req.context = this;\n this.err = err;\n\n close(this.fd\x2C req);\n }\n}\n\nmodule.exports = ReadFileContext;\n
code-source-info,0x16e490969d6e,80,1565,1843,C0O1592C1O1600C5O1617C6O1631C10O1648C11O1658C15O1667C17O1681C21O1697C22O1710C26O1722C27O1734C31O1746C32O1755C36O1764C38O1778C42O1794C43O1803C47O1815C48O1827C53O1842,,
code-creation,LazyCompile,10,134326,0x16e49096a2fe,9,isUint32 node:internal/validators:39:18,0x38b4b3b19bb8,~
code-source-info,0x16e49096a2fe,17,777,822,C0O789C2O813C5O802C8O820,,
code-creation,LazyCompile,10,134355,0x16e49096a3f6,35,checkAborted node:fs:348:22,0xe5ca5cd5f58,~
code-source-info,0x16e49096a3f6,76,8925,9041,C0O8948C7O8958C16O8975C18O8988C21O8984C27O8975C31O9007C32O9019C33O9026C34O9039,,
code-creation,LazyCompile,10,134469,0x16e49096a58e,75,readFileAfterOpen node:fs:307:27,0xe5ca5cd5eb8,~
code-source-info,0x16e49096a58e,76,8145,8399,C0O8180C5O8192C9O8215C14O8215C19O8234C20O8241C21O8249C23O8260C27O8281C32O8281C38O8304C40O8319C44O8342C46O8354C50O8367C55O8375C68O8375C74O8398,,
code-creation,LazyCompile,10,134577,0x16e49096a8fe,162,readFileAfterStat node:fs:323:27,0xe5ca5cd5f08,~
code-source-info,0x16e49096a8fe,76,8427,8902,C0O8465C5O8477C9O8505C14O8505C19O8516C20O8533C25O8566C28O8548C40O8582C47O8546C54O8594C56O8605C58O8603C63O8625C70O8631C77O8683C82O8683C87O8694C91O8712C92O8721C97O8736C99O8752C105O8777C107O8794C110O8801C115O8801C120O8792C137O8867C145O8867C150O8878C151O8893C156O8893C161O8901,,
code-creation,LazyCompile,10,134619,0x16e49096aaf6,34,isFileType node:fs:202:20,0xe5ca5cd5c48,~
code-source-info,0x16e49096aaf6,76,5240,5481,C0O5374C2O5379C6O5386C10O5420C15O5427C20O5443C22O5458C24O5456C30O5466C33O5479,,
tick,0x164b612,134681,0,0x0,0,0x16e49096a92d,0x16e490968a46
code-creation,LazyCompile,10,134698,0x16e49096ac16,19,allocUnsafeSlow node:buffer:381:50,0x38b4b3b24b58,~
code-source-info,0x16e49096ac16,18,11171,11236,C0O11182C5O11182C9O11202C14O11209C18O11234,,
code-creation,LazyCompile,10,134733,0x16e49096ad3e,71,createUnsafeBuffer node:internal/buffer:1059:28,0x38b4b3b31a68,~
code-source-info,0x16e49096ad3e,19,30321,30430,C0O30332C8O30344C15O30361C22O30368C39O30408C48O30420C70O30429,,
code-creation,LazyCompile,10,134801,0x16e49096aefe,185,read node:internal/fs/read_file_context:85:7,0xe5ca5ce79a8,~
code-source-info,0x16e49096aefe,80,1851,2472,C0O1864C2O1880C4O1896C6O1918C13O1924C22O1955C29O1965C32O1961C38O1955C43O1979C44O1999C50O2004C55O2019C60O2035C67O2051C70O2035C76O2088C78O2106C83O2151C85O2163C91O2206C96O2234C101O2245C108O2262C111O2290C116O2302C120O2295C124O2254C130O2331C135O2331C141O2356C143O2371C147O2396C149O2408C153O2421C158O2431C178O2421C184O2471,,
code-creation,LazyCompile,10,134927,0x16e49096b14e,136,readFileAfterRead node:internal/fs/read_file_context:25:27,0xe5ca5ce76e8,~
code-source-info,0x16e49096b14e,80,418,929,C0O460C5O472C9O500C14O500C19O511C20O515C27O530C30O527C34O556C39O572C43O560C49O590C54O611C59O611C65O647C71O652C76O741C78O755C80O751C85O802C91O819C96O826C103O826C110O853C115O880C120O853C125O916C130O916C135O928,,
code-creation,LazyCompile,10,134978,0x16e49096b39e,73,close node:internal/fs/read_file_context:111:8,0xe5ca5ce79f8,~
code-source-info,0x16e49096b39e,80,2481,2813,C0O2502C6O2520C9O2528C19O2528C25O2647C26O2654C27O2678C32O2678C38O2703C40O2718C44O2744C46O2756C50O2768C52O2777C56O2789C61O2800C66O2789C72O2812,,
code-creation,LazyCompile,10,135068,0x16e49096b666,183,readFileAfterClose node:internal/fs/read_file_context:46:28,0xe5ca5ce7908,~
code-source-info,0x16e49096b666,80,958,1526,C0O989C5O1025C10O1050C12O1071C20O1078C22O1087C24O1103C27O1135C32O1103C38O1094C42O1141C46O1167C52O1172C57O1185C62O1201C67O1216C72O1233C77O1201C86O1260C91O1274C95O1264C100O1303C105O1310C112O1327C117O1310C126O1365C131O1390C137O1422C142O1439C147O1422C156O1413C166O1472C169O1479C173O1493C174O1501C176O1501C182O1525,,
code-creation,LazyCompile,10,135127,0x16e49096b88e,162,toString node:buffer:781:46,0x38b4b3b26970,~
code-source-info,0x16e49096b88e,18,23244,23806,C0O23244C2O23285C8O23292C13O23317C20O23335C25O23317C31O23343C32O23368C37O23379C38O23389C43O23399C48O23417C50O23427C55O23439C57O23449C58O23461C65O23476C71O23505C76O23516C83O23538C90O23551C92O23559C97O23573C99O23583C100O23587C104O23631C109O23631C115O23653C116O23669C119O23669C124O23697C126O23724C133O23730C138O23724C139O23780C156O23780C161O23804,,
code-creation,LazyCompile,10,135205,0x16e49096bb16,503,getEncodingOps node:buffer:677:24,0x38b4b3b267c8,~
code-source-info,0x16e49096bb16,18,19911,21712,C0O19926C10O19961C66O19989C68O20002C73O20014C78O20033C82O20038C83O20045C85O20058C90O20070C95O20089C99O20094C100O20101C105O20112C111O20156C113O20169C118O20181C123O20200C127O20205C128O20212C130O20225C135O20237C140O20256C144O20261C145O20268C147O20293C149O20306C154O20319C159O20338C163O20343C164O20350C166O20363C171O20376C176O20395C180O20401C181O20408C183O20421C188O20434C193O20453C197O20458C198O20465C203O20476C209O20520C211O20533C216O20546C221O20565C225O20570C226O20577C228O20590C233O20603C238O20622C242O20628C243O20635C245O20648C250O20661C255O20680C259O20685C260O20692C262O20717C264O20730C271O20757C274O20757C281O20794C286O20817C291O20836C295O20844C296O20851C298O20876C300O20889C307O20917C310O20917C317O20954C322O20978C327O20997C331O21005C332O21012C334O21037C336O21050C343O21075C348O21097C353O21116C357O21123C358O21130C360O21143C365O21157C370O21176C374O21183C375O21190C380O21201C386O21245C388O21258C395O21283C400O21305C405O21324C409O21331C410O21338C412O21351C417O21365C422O21384C426O21391C427O21398C429O21423C431O21436C438O21449C441O21449C448O21486C453O21505C458O21524C462O21528C463O21535C465O21560C467O21573C474O21602C477O21602C484O21639C489O21664C494O21683C498O21693C499O21700C502O21711,,
code-creation,LazyCompile,10,135256,0x16e49096bf06,12,slice node:buffer:592:12,0x38b4b3b25190,~
code-source-info,0x16e49096bf06,18,16582,16628,C0O16607C5O16607C11O16628,,
code-creation,LazyCompile,10,135300,0x16e49096c046,90,onread node:internal/repl/history:87:18,0x16e490957050,~
code-source-info,0x16e49096c046,129,2257,2502,C0O2275C4O2292C7O2299C11O2310C12O2322C16O2340C23O2355C26O2376C34O2398C42O2355C47O2353C53O2431C58O2444C62O2461C69O2464C83O2464C89O2501,,
code-creation,RegExp,3,135459,0x7f4ddc043fa0,964,[\\n\\r]+
code-creation,LazyCompile,10,135620,0x16e49096c3d6,52,onhandle node:internal/repl/history:101:20,0x16e4909570a0,~
code-source-info,0x16e49096c3d6,129,2523,2899,C0O2523C9O2540C13O2557C18O2564C22O2575C23O2586C30O2589C40O2599C45O2589C51O2898,,
code-creation,LazyCompile,10,135673,0x16e49096c566,114,ftruncate node:fs:1048:19,0xe5ca5cd6840,~
code-source-info,0x16e49096c566,76,26601,26920,C16O26629C22O26666C25O26686C27O26701C32O26706C37O26728C45O26728C50O26759C57O26765C63O26784C66O26795C71O26834C76O26834C82O26857C84O26872C88O26886C93O26894C107O26894C113O26919,,
tick,0x7f4debe46108,135748,0,0x0,2,0x11e9ce0,0x16e49096c593,0x16e49096c403,0x16e490968bc9,0x16e490968a46
code-creation,LazyCompile,10,135767,0x16e49096c726,151, node:internal/validators:72:3,0x38b4b3b19c78,~
code-source-info,0x16e49096c726,17,1809,2190,C12O1829C25O1859C32O1892C38O1929C54O1935C59O1929C60O1988C65O1993C71O2023C87O2029C92O2023C93O2082C95O2092C102O2107C107O2120C117O2159C130O2172C143O2126C148O2120C150O2189,,
code-creation,LazyCompile,10,135895,0x16e49096c94e,93, node:internal/repl/history:105:26,0x16e49096c310,~
code-source-info,0x16e49096c94e,129,2607,2893,C0O2624C7O2644C11O2657C16O2662C29O2662C35O2688C40O2693C53O2693C59O2767C64O2772C77O2772C83O2872C88O2872C92O2892,,
code-creation,LazyCompile,10,135969,0x16e49096cb36,109,flushHistory node:internal/repl/history:130:24,0x16e490957148,~
code-source-info,0x16e49096cb36,129,3129,3372,C0O3138C4O3144C10O3156C16O3177C20O3185C26O3199C27O3206C28O3217C32O3225C38O3257C48O3281C57O3290C60O3293C65O3257C71O3303C78O3306C86O3317C102O3306C108O3371,,
code-creation,LazyCompile,10,136057,0x16e49096cdbe,357,write node:fs:795:15,0xe5ca5cd64f8,~
code-source-info,0x16e49096cdbe,76,19867,21178,C0O19867C18O20073C25O20078C31O20101C41O20105C47O20138C54O20163C58O20175C62O20187C67O20149C71O20147C73O20210C84O20270C89O20301C104O20301C109O20349C115O20387C118O20403C125O20414C130O20428C136O20468C139O20489C149O20538C160O20489C165O20568C172O20568C178O20593C180O20608C184O20623C191O20638C214O20638C219O20693C220O20701C233O20701C238O20758C244O20800C250O20842C253O20867C258O20901C263O20930C267O20966C277O20966C282O20984C289O20984C294O21017C299O21028C303O21026C305O21068C312O21068C318O21091C320O21106C324O21119C331O21134C351O21134C356O21176,,
code-creation,LazyCompile,10,136109,0x16e49096d12e,67, node:internal/fs/utils:839:60,0xe5ca5ce0c08,~
code-source-info,0x16e49096d12e,77,22722,23094,C0O22744C6O22782C7O22789C8O22797C18O22877C28O22908C34O22908C41O22968C42O22975C43O22983C48O23019C61O22989C66O22983,,
code-creation,LazyCompile,10,136143,0x16e49096d2f6,65,validateEncoding node:internal/validators:190:26,0x38b4b3b1a050,~
code-source-info,0x16e49096d2f6,17,5638,5947,C0O5686C5O5686C10O5737C15O5748C17O5771C24O5791C29O5795C34O5808C47O5931C57O5814C62O5808C64O5946,,
code-creation,LazyCompile,10,136237,0x16e49096d41e,22,wrapper node:fs:796:19,0x16e49096cc88,~
code-source-info,0x16e49096d41e,76,19936,20069,C0O20029C8O20043C15O20029C21O20068,,
code-creation,LazyCompile,10,136269,0x16e49096d54e,84,onwritten node:internal/repl/history:141:21,0x16e490957198,~
code-source-info,0x16e49096d54e,129,3394,3620,C0O3412C4O3420C10O3433C16O3454C20O3462C26O3477C29O3477C34O3506C41O3523C46O3531C49O3523C53O3521C57O3545C60O3555C66O3576C69O3581C77O3581C83O3619,,
code-creation,LazyCompile,10,136322,0x16e49096d6ee,95,onceWrapper node:events:508:21,0x334c17f32610,~
code-source-info,0x16e49096d6ee,13,14738,14982,C0O14738C2O14755C8O14773C13O14780C18O14800C23O14811C28O14780C34O14824C35O14835C39O14861C45O14868C50O14893C55O14902C60O14912C65O14902C70O14920C71O14937C76O14946C81O14957C86O14946C92O14976C94O14981,,
code-creation,LazyCompile,10,136359,0x16e49096d86e,33, node:internal/repl/history:111:41,0x16e49096c870,~
code-source-info,0x16e49096d86e,129,2801,2863,C0O2814C5O2819C10O2819C14O2837C26O2837C32O2862,,
code-creation,LazyCompile,10,136383,0x16e49096d996,43,Interface.resume node:readline:605:38,0x2148b307e2b8,~
code-source-info,0x16e49096d996,122,15642,15760,C0O15659C6O15667C7O15674C8O15682C13O15688C18O15688C22O15700C23O15712C27O15728C35O15728C40O15746C42O15758,,
code-creation,LazyCompile,10,136445,0x16e49096db5e,40, node:internal/main/repl:41:45,0xb6d535499d0,~
code-source-info,0x16e49096db5e,90,1178,1465,C0O1178C9O1201C13O1220C15O1220C16O1245C19O1250C32O1250C39O1464,,
tick,0x7f4debde04b6,3096111,0,0x0,8
code-creation,LazyCompile,10,3096459,0x16e49096dd8e,405,onStreamRead node:internal/stream_base_commons:167:22,0xe5ca5cee068,~
code-source-info,0x16e49096dd8e,83,4109,6213,C0O4141C7O4157C9O4156C13O4195C16O4218C18O4223C20O4222C24O4241C26O4248C28O4247C32O4261C36O4268C37O4278C42O4293C48O4314C50O4327C52O4355C54O4362C56O4361C60O4376C62O4397C64O4414C66O4413C70O4424C78O4441C83O4474C85O4481C87O4480C91O4500C93O4547C97O4565C102O4569C108O4602C110O4609C118O4618C124O4677C131O4693C133O4692C137O4732C153O4732C159O4798C164O4798C170O4819C174O4840C175O4855C179O4882C185O4922C190O4922C195O4942C197O4968C204O4976C211O4976C217O4968C222O5025C224O5036C225O5044C226O5054C231O5067C232O5074C233O5082C235O5096C237O5092C242O5238C249O5246C256O5246C262O5238C267O5282C268O5289C269O5351C274O5366C280O5384C282O5395C284O5394C289O5417C291O5424C293O5423C297O5438C303O5457C305O5468C307O5467C312O5497C322O5514C324O5513C328O5497C334O5752C340O5789C345O5789C350O5807C352O5962C359O5970C366O5970C372O5962C377O6008C378O6015C379O6176C386O6176C391O6199C398O6199C404O6212,,
code-creation,LazyCompile,10,3096578,0x16e49096e116,5,get node:net:565:16,0xb6d53550888,~
code-source-info,0x16e49096e116,115,14877,14914,C0O14898C4O14910,,
code-creation,LazyCompile,10,3096633,0x16e49096e1ee,20,Readable.push node:internal/streams/readable:225:35,0x3787ca7906f8,~
code-source-info,0x16e49096e1ee,51,7592,7670,C0O7614C14O7621C19O7668,,
code-creation,LazyCompile,10,3096801,0x16e49096e42e,510,readableAddChunk node:internal/streams/readable:234:26,0x3787ca790808,~
code-source-info,0x16e49096e42e,51,7879,10124,C0O7921C8O7921C13O7978C18O8001C20O8019C26O8037C32O8076C36O8105C42O8138C49O8147C54O8171C58O8195C64O8356C69O8371C74O8371C81O8392C86O8408C91O8393C100O8446C105O8461C110O8461C118O8494C124O8538C126O8559C128O8548C133O8575C139O8601C144O8612C149O8612C156O8642C161O8657C166O8657C173O8691C179O8717C184O8744C202O8750C208O8850C212O8865C217O8865C224O8903C228O8929C229O8943C233O8956C236O8956C243O9002C251O9017C253O9032C259O9039C264O9051C268O9085C274O9105C281O9132C284O9128C290O9105C297O9190C311O9190C318O9249C324O9264C331O9291C334O9287C340O9264C347O9342C353O9361C359O9378C360O9391C361O9411C362O9425C366O9450C374O9462C376O9496C381O9504C386O9504C393O9536C399O9556C405O9563C410O9580C424O9580C431O9642C434O9642C441O9695C455O9695C462O9757C466O9780C467O9794C471O9807C474O9807C479O10050C486O10070C491O10085C495O10077C500O10108C506O10115C509O10122,,
code-creation,LazyCompile,10,3096942,0x16e49096e876,174,addChunk node:internal/streams/readable:302:18,0x3787ca790858,~
code-source-info,0x16e49096e876,51,10143,10826,C0O10192C6O10209C12O10216C17O10232C23O10253C31O10253C38O10275C43O10390C49O10421C54O10439C59O10439C65O10467C66O10491C70O10516C78O10516C86O10583C91O10605C104O10628C111O10596C115O10640C119O10668C124O10675C129O10675C136O10712C141O10719C146O10719C151O10747C157O10767C160O10767C164O10795C167O10795C173O10825,,
code-creation,LazyCompile,10,3097095,0x16e49096ebbe,501,onData node:internal/readline/emitKeypressEvents:43:18,0x16e490948f78,~
code-source-info,0x16e49096ebbe,125,962,2246,C0O976C7O987C15O987C22O1013C27O1041C38O1048C40O1047C44O1066C49O1066C55O1086C57O1108C66O1121C69O1108C73O1191C84O1212C89O1212C95O1247C99O1236C102O1210C106O1263C114O1289C118O1320C120O1355C129O1355C159O1342C187O1342C190O1419C201O1459C205O1448C213O1481C221O1507C228O1556C239O1563C241O1562C245O1579C250O1579C255O1680C259O1669C268O1704C270O1700C275O1729C284O1752C289O1767C292O1741C300O1739C319O1959C330O1966C337O1984C345O1993C349O1984C353O1982C357O2014C368O2021C370O2020C374O2037C379O2037C383O2057C385O2057C386O1331C451O2151C458O2158C469O2158C475O2196C482O2203C493O2203C500O2245,,
tick,0x7f4dec165474,3097200,0,0x0,3,0x11e9ce0,0xce7fc63a1c3,0x16e49094801b,0x16e49096e8c4,0x16e49096e5f5,0x16e49096e1fc,0x16e49096de32,0x16e490968a46
code-creation,LazyCompile,10,3097251,0x16e49096efbe,63,write node:string_decoder:77:47,0x3787ca7951c8,~
code-source-info,0x16e49096efbe,54,2660,2947,C0O2670C6O2703C8O2714C9O2717C14O2722C20O2750C38O2756C43O2750C44O2904C51O2923C53O2922C57O2911C62O2945,,
code-creation,LazyCompile,10,3097356,0x16e49096f11e,63,clearTimeout node:timers:184:22,0x3787ca7a47a0,~
script-source,60,node:timers,// Copyright Joyent\x2C Inc. and other Node contributors.\n//\n// Permission is hereby granted\x2C free of charge\x2C to any person obtaining a\n// copy of this software and associated documentation files (the\n// "Software")\x2C to deal in the Software without restriction\x2C including\n// without limitation the rights to use\x2C copy\x2C modify\x2C merge\x2C publish\x2C\n// distribute\x2C sublicense\x2C and/or sell copies of the Software\x2C and to permit\n// persons to whom the Software is furnished to do so\x2C subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED "AS IS"\x2C WITHOUT WARRANTY OF ANY KIND\x2C EXPRESS\n// OR IMPLIED\x2C INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY\x2C FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM\x2C\n// DAMAGES OR OTHER LIABILITY\x2C WHETHER IN AN ACTION OF CONTRACT\x2C TORT OR\n// OTHERWISE\x2C ARISING FROM\x2C OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n'use strict';\n\nconst {\n MathTrunc\x2C\n ObjectCreate\x2C\n ObjectDefineProperty\x2C\n SymbolToPrimitive\n} = primordials;\n\nconst {\n immediateInfo\x2C\n toggleImmediateRef\n} = internalBinding('timers');\nconst L = require('internal/linkedlist');\nconst {\n async_id_symbol\x2C\n Timeout\x2C\n Immediate\x2C\n decRefCount\x2C\n immediateInfoFields: {\n kCount\x2C\n kRefCount\n }\x2C\n kRefed\x2C\n kHasPrimitive\x2C\n getTimerDuration\x2C\n timerListMap\x2C\n timerListQueue\x2C\n immediateQueue\x2C\n active\x2C\n unrefActive\x2C\n insert\n} = require('internal/timers');\nconst {\n promisify: { custom: customPromisify }\x2C\n deprecate\n} = require('internal/util');\nlet debug = require('internal/util/debuglog').debuglog('timer'\x2C (fn) => {\n debug = fn;\n});\nconst { validateCallback } = require('internal/validators');\n\nlet timersPromises;\n\nconst {\n destroyHooksExist\x2C\n // The needed emit*() functions.\n emitDestroy\n} = require('internal/async_hooks');\n\n// This stores all the known timer async ids to allow users to clearTimeout and\n// clearInterval using those ids\x2C to match the spec and the rest of the web\n// platform.\nconst knownTimersById = ObjectCreate(null);\n\n// Remove a timer. Cancels the timeout and resets the relevant timer properties.\nfunction unenroll(item) {\n if (item._destroyed)\n return;\n\n item._destroyed = true;\n\n if (item[kHasPrimitive])\n delete knownTimersById[item[async_id_symbol]];\n\n // Fewer checks may be possible\x2C but these cover everything.\n if (destroyHooksExist() && item[async_id_symbol] !== undefined)\n emitDestroy(item[async_id_symbol]);\n\n L.remove(item);\n\n // We only delete refed lists because unrefed ones are incredibly likely\n // to come from http and be recreated shortly after.\n // TODO: Long-term this could instead be handled by creating an internal\n // clearTimeout that makes it clear that the list should not be deleted.\n // That function could then be used by http and other similar modules.\n if (item[kRefed]) {\n // Compliment truncation during insert().\n const msecs = MathTrunc(item._idleTimeout);\n const list = timerListMap[msecs];\n if (list !== undefined && L.isEmpty(list)) {\n debug('unenroll: list empty');\n timerListQueue.removeAt(list.priorityQueuePosition);\n delete timerListMap[list.msecs];\n }\n\n decRefCount();\n }\n\n // If active is called later\x2C then we want to make sure not to insert again\n item._idleTimeout = -1;\n}\n\n// Make a regular object able to act as a timer by setting some properties.\n// This function does not start the timer\x2C see `active()`.\n// Using existing objects as timers slightly reduces object overhead.\nfunction enroll(item\x2C msecs) {\n msecs = getTimerDuration(msecs\x2C 'msecs');\n\n // If this item was already in a list somewhere\n // then we should unenroll it from that\n if (item._idleNext) unenroll(item);\n\n L.init(item);\n item._idleTimeout = msecs;\n}\n\n\n/**\n * Schedules the execution of a one-time `callback`\n * after `after` milliseconds.\n * @param {Function} callback\n * @param {number} [after]\n * @param {any} [arg1]\n * @param {any} [arg2]\n * @param {any} [arg3]\n * @returns {Timeout}\n */\nfunction setTimeout(callback\x2C after\x2C arg1\x2C arg2\x2C arg3) {\n validateCallback(callback);\n\n let i\x2C args;\n switch (arguments.length) {\n // fast cases\n case 1:\n case 2:\n break;\n case 3:\n args = [arg1];\n break;\n case 4:\n args = [arg1\x2C arg2];\n break;\n default:\n args = [arg1\x2C arg2\x2C arg3];\n for (i = 5; i < arguments.length; i++) {\n // Extend array dynamically\x2C makes .apply run much faster in v6.0.0\n args[i - 2] = arguments[i];\n }\n break;\n }\n\n const timeout = new Timeout(callback\x2C after\x2C args\x2C false\x2C true);\n insert(timeout\x2C timeout._idleTimeout);\n\n return timeout;\n}\n\nObjectDefineProperty(setTimeout\x2C customPromisify\x2C {\n enumerable: true\x2C\n get() {\n if (!timersPromises)\n timersPromises = require('timers/promises');\n return timersPromises.setTimeout;\n }\n});\n\n/**\n * Cancels a timeout.\n * @param {Timeout | string | number} timer\n * @returns {void}\n */\nfunction clearTimeout(timer) {\n if (timer && timer._onTimeout) {\n timer._onTimeout = null;\n unenroll(timer);\n return;\n }\n if (typeof timer === 'number' || typeof timer === 'string') {\n const timerInstance = knownTimersById[timer];\n if (timerInstance !== undefined) {\n timerInstance._onTimeout = null;\n unenroll(timerInstance);\n }\n }\n}\n\n/**\n * Schedules repeated execution of `callback`\n * every `repeat` milliseconds.\n * @param {Function} callback\n * @param {number} [repeat]\n * @param {any} [arg1]\n * @param {any} [arg2]\n * @param {any} [arg3]\n * @returns {Timeout}\n */\nfunction setInterval(callback\x2C repeat\x2C arg1\x2C arg2\x2C arg3) {\n validateCallback(callback);\n\n let i\x2C args;\n switch (arguments.length) {\n // fast cases\n case 1:\n case 2:\n break;\n case 3:\n args = [arg1];\n break;\n case 4:\n args = [arg1\x2C arg2];\n break;\n default:\n args = [arg1\x2C arg2\x2C arg3];\n for (i = 5; i < arguments.length; i++) {\n // Extend array dynamically\x2C makes .apply run much faster in v6.0.0\n args[i - 2] = arguments[i];\n }\n break;\n }\n\n const timeout = new Timeout(callback\x2C repeat\x2C args\x2C true\x2C true);\n insert(timeout\x2C timeout._idleTimeout);\n\n return timeout;\n}\n\n/**\n * Cancels an interval.\n * @param {Timeout | string | number} timer\n * @returns {void}\n */\nfunction clearInterval(timer) {\n // clearTimeout and clearInterval can be used to clear timers created from\n // both setTimeout and setInterval\x2C as specified by HTML Living Standard:\n // https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#dom-setinterval\n clearTimeout(timer);\n}\n\nTimeout.prototype.close = function() {\n clearTimeout(this);\n return this;\n};\n\n/**\n * Coerces a `Timeout` to a primitive.\n * @returns {number}\n */\nTimeout.prototype[SymbolToPrimitive] = function() {\n const id = this[async_id_symbol];\n if (!this[kHasPrimitive]) {\n this[kHasPrimitive] = true;\n knownTimersById[id] = this;\n }\n return id;\n};\n\n/**\n * Schedules the immediate execution of `callback`\n * after I/O events' callbacks.\n * @param {Function} callback\n * @param {any} [arg1]\n * @param {any} [arg2]\n * @param {any} [arg3]\n * @returns {Immediate}\n */\nfunction setImmediate(callback\x2C arg1\x2C arg2\x2C arg3) {\n validateCallback(callback);\n\n let i\x2C args;\n switch (arguments.length) {\n // fast cases\n case 1:\n break;\n case 2:\n args = [arg1];\n break;\n case 3:\n args = [arg1\x2C arg2];\n break;\n default:\n args = [arg1\x2C arg2\x2C arg3];\n for (i = 4; i < arguments.length; i++) {\n // Extend array dynamically\x2C makes .apply run much faster in v6.0.0\n args[i - 1] = arguments[i];\n }\n break;\n }\n\n return new Immediate(callback\x2C args);\n}\n\nObjectDefineProperty(setImmediate\x2C customPromisify\x2C {\n enumerable: true\x2C\n get() {\n if (!timersPromises)\n timersPromises = require('timers/promises');\n return timersPromises.setImmediate;\n }\n});\n\n/**\n * Cancels an immediate.\n * @param {Immediate} immediate\n * @returns {void}\n */\nfunction clearImmediate(immediate) {\n if (!immediate || immediate._destroyed)\n return;\n\n immediateInfo[kCount]--;\n immediate._destroyed = true;\n\n if (immediate[kRefed] && --immediateInfo[kRefCount] === 0)\n toggleImmediateRef(false);\n immediate[kRefed] = null;\n\n if (destroyHooksExist() && immediate[async_id_symbol] !== undefined) {\n emitDestroy(immediate[async_id_symbol]);\n }\n\n immediate._onImmediate = null;\n\n immediateQueue.remove(immediate);\n}\n\nmodule.exports = {\n setTimeout\x2C\n clearTimeout\x2C\n setImmediate\x2C\n clearImmediate\x2C\n setInterval\x2C\n clearInterval\x2C\n _unrefActive: deprecate(\n unrefActive\x2C\n 'timers._unrefActive() is deprecated.' +\n ' Please use timeout.refresh() instead.'\x2C\n 'DEP0127')\x2C\n active: deprecate(\n active\x2C\n 'timers.active() is deprecated. Please use timeout.refresh() instead.'\x2C\n 'DEP0126')\x2C\n unenroll: deprecate(\n unenroll\x2C\n 'timers.unenroll() is deprecated. Please use clearTimeout instead.'\x2C\n 'DEP0096')\x2C\n enroll: deprecate(\n enroll\x2C\n 'timers.enroll() is deprecated. Please use setTimeout instead.'\x2C\n 'DEP0095')\n};\n
code-source-info,0x16e49096f11e,60,5184,5529,C0O5196C4O5215C10O5233C11O5250C15O5262C18O5262C22O5283C23O5290C24O5297C36O5385C43O5400C47O5413C49O5454C50O5479C54O5493C57O5493C62O5528,,
code-creation,LazyCompile,10,3098072,0x16e49096fdde,42,charLengthAt node:internal/readline/utils:51:22,0x167e03041c50,~
code-source-info,0x16e49096fdde,124,1267,1508,C0O1288C7O1295C12O1412C14O1421C15O1428C20O1435C28O1473C30O1470C41O1506,,
tick,0x1173c90,3098232,0,0x0,2,0x11e9ce0,0xce7fc63a1c3,0x16e49094801b,0x16e49094c037,0x1590930,0x16e49096ecb8,0xce7fc63a1c3,0x16e49094801b,0x16e49096e8c4,0x16e49096e5f5,0x16e49096e1fc,0x16e49096de32,0x16e490968a46
code-creation,LazyCompile,10,3098260,0x16e49096ff16,84,onkeypress node:readline:287:22,0x167e0307f818,~
code-source-info,0x16e49096ff16,122,7736,8110,C0O7751C5O7756C10O7756C16O7779C20O7794C26O7987C33O8018C40O7987C46O8038C52O8045C63O8061C68O8080C73O8085C78O8085C83O8109,,
code-creation,LazyCompile,10,3098408,0x16e490970206,404,REPLServer.self._ttyWrite node:repl:969:20,0x167e0307e130,~
code-source-info,0x16e490970206,120,30957,32459,C0O30975C7O30996C15O31012C18O31017C24O31042C30O31054C37O31059C42O31077C51O31096C71O31144C80O31147C95O31153C98O31158C106O31077C111O31187C112O31194C113O31205C118O31215C126O31230C129O31235C135O31315C141O31327C148O31332C155O31353C158O31358C164O31365C171O31374C174O31379C179O31384C185O31391C190O31408C195O31413C200O31413C204O31440C209O31440C213O31465C218O31470C225O31503C230O31503C235O31529C240O31529C243O31558C244O31565C245O31604C251O31617C257O31644C285O31810C292O31829C295O31810C299O31846C303O31855C309O31873C314O31882C319O31873C324O31916C326O32033C328O32067C333O32067C340O32124C368O32248C370O32326C376O32344C380O32362C385O32362C390O32390C392O32424C397O32424C403O32458,,
code-creation,LazyCompile,10,3098598,0x16e490970606,611,clearPreview node:internal/repl/utils:174:24,0x16e490953ed8,~
code-source-info,0x16e490970606,128,5207,7022,C0O5222C6O5291C9O5291C13O5265C18O5277C23O5338C28O5355C32O5343C35O5360C39O5371C49O5387C59O5371C64O5411C74O5426C79O5411C83O5441C93O5457C102O5468C105O5441C110O5482C117O5499C123O5521C127O5534C133O5552C139O5653C142O5658C147O5663C155O5679C159O5670C164O5697C166O5702C168O5714C172O5734C175O5740C179O5765C189O5779C194O5791C199O5802C204O5765C209O5828C214O5839C219O5850C224O5860C228O5844C232O5874C242O5890C252O5874C257O5940C260O5948C265O5948C274O5967C285O5974C292O6016C295O6021C300O6021C306O6221C312O6226C319O6236C321O6247C326O6258C331O6274C335O6263C340O6291C350O6306C358O6291C365O6341C375O6362C380O6341C384O6385C388O6405C398O6419C403O6431C408O6441C413O6405C418O6456C428O6472C437O6483C440O6456C445O6514C451O6527C457O6552C464O6557C469O6583C475O6611C481O6631C484O6646C491O6639C499O6688C506O6693C511O6713C518O6718C523O6758C531O6785C537O6802C541O6793C549O6829C554O6863C557O6868C564O6882C567O6868C572O6926C576O6944C582O6962C590O6983C594O6974C599O6997C603O7005C610O7021,,
code-creation,LazyCompile,10,3098752,0x16e490970b4e,397,reverseSearch node:internal/repl/utils:705:25,0x16e490951e58,~
code-source-info,0x16e490970b4e,128,23718,25042,C0O23738C6O23778C15O23814C20O23786C26O23831C29O23851C36O23844C42O23873C45O23890C53O23913C58O23913C64O23890C72O23883C78O23937C84O23948C91O23957C96O23964C98O23963C109O23937C114O23982C118O24000C126O24035C135O24071C140O24043C146O24086C149O24086C154O24115C161O24120C166O24152C172O24165C179O24170C184O24185C191O24190C196O24209C203O24215C208O24236C215O24246C218O24252C222O24259C226O24215C232O24209C236O24272C239O24272C244O24450C250O24462C257O24467C262O24483C269O24488C274O24510C279O24520C285O24532C288O24532C291O24547C292O24559C293O24699C299O24726C305O24753C312O24758C317O24793C324O24798C337O24880C342O24896C345O24896C348O24911C355O24916C360O24934C366O24959C371O24968C377O24976C382O24959C386O24993C389O24993C392O25013C396O25038,,
code-creation,LazyCompile,10,3099095,0x16e4909712d6,1786,Interface._ttyWrite node:readline:1038:41,0x2148b307ede0,~
code-source-info,0x16e4909712d6,122,28402,34884,C0O28402C9O28435C12O28440C17O28456C24O28475C29O28493C33O28558C40O28563C45O28579C52O28584C57O28610C63O28623C69O28636C75O28649C82O28658C84O28657C89O28694C96O28699C103O28719C109O28745C119O28759C124O28719C129O28717C135O28783C142O28792C144O28791C149O28826C156O28831C160O28849C164O28910C167O28919C172O28927C180O28943C184O28934C189O28965C194O28983C198O29102C205O29107C210O29121C211O29128C212O29140C218O29152C224O29213C245O29403C248O29408C253O29408C257O29435C259O29472C262O29477C267O29477C271O29505C275O29536C281O29591C414O29623C417O29632C425O29632C432O29656C437O29673C440O29678C448O29678C455O29769C458O29774C463O29774C467O29801C469O29848C472O29853C477O29853C481O29876C483O29931C486O29940C492O29947C500O29961C505O29966C511O29973C516O30040C519O30045C524O30045C530O30069C533O30078C541O30092C546O30097C550O30085C555O30117C558O30122C563O30122C567O30156C569O30228C572O30233C577O30233C581O30260C583O30330C586O30335C591O30335C595O30363C597O30426C600O30431C605O30444C608O30443C611O30431C616O30463C618O30524C621O30529C626O30542C629O30541C632O30529C637O30561C639O30615C642O30620C651O30633C657O30653C665O30664C670O30633C675O30632C678O30620C683O30682C685O30739C688O30744C697O30757C703O30775C711O30786C716O30757C721O30756C724O30744C729O30804C731O30862C741O30876C750O30862C755O30899C765O30920C770O30899C774O30937C777O30942C782O30942C786O30966C788O31019C791O31024C796O31024C800O31048C802O31105C805O31110C810O31110C814O31134C816O31166C821O31178C828O31187C833O31200C835O31215C838O31224C846O31224C853O31249C858O31266C861O31271C869O31271C876O31315C881O31323C894O31323C900O31909C903O31914C910O31914C915O31944C920O31952C930O31965C938O31952C944O32000C946O32268C949O32273C954O32273C958O32300C960O32374C963O32379C968O32379C972O32407C974O32442C977O32447C982O32447C986O32468C988O32504C991O32509C996O32509C1000O32531C1004O32562C1010O32614C1052O32663C1055O32668C1060O32668C1064O32689C1066O32737C1069O32742C1074O32742C1078O32764C1080O32840C1083O32845C1088O32845C1092O32873C1094O32952C1097O32957C1102O32957C1106O32984C1110O33112C1113O33121C1119O33141C1126O33146C1131O33165C1135O33183C1139O33205C1223O33271C1230O33291C1233O33291C1236O33289C1240O33310C1243O33315C1248O33315C1252O33332C1254O33409C1257O33418C1263O33431C1272O33452C1275O33452C1282O33469C1286O33462C1293O33489C1297O33482C1302O33512C1305O33517C1310O33517C1314O33544C1318O33562C1322O33575C1324O33615C1327O33620C1332O33620C1336O33643C1338O33680C1341O33685C1346O33685C1350O33709C1352O33789C1355O33794C1364O33807C1370O33827C1378O33838C1383O33807C1388O33806C1393O33794C1403O33856C1405O33892C1408O33897C1421O33910C1427O33928C1439O33939C1448O33910C1458O33909C1463O33897C1473O33957C1475O33992C1478O33997C1487O34010C1490O34009C1495O33997C1505O34029C1507O34063C1510O34068C1519O34081C1522O34080C1527O34068C1537O34100C1539O34133C1542O34138C1551O34138C1559O34162C1561O34197C1564O34202C1573O34202C1581O34226C1583O34309C1586O34325C1601O34358C1611O34418C1615O34445C1626O34450C1633O34471C1636O34476C1645O34476C1655O34520C1657O34583C1665O34612C1667O34641C1674O34662C1682O34641C1693O34703C1695O34718C1704O34728C1706O34728C1714O34754C1715O34760C1723O34781C1726O34786C1735O34786C1743O34821C1746O34826C1757O34845C1764O34826C1774O34736C1781O34690C1785O34883,,
tick,0x10af931,3099300,0,0x0,0,0xf48b80,0x16e4909717aa,0x16e4909702ec,0x16e49096ff20,0xce7fc63a1c3,0x16e49094801b,0x16e49094c037,0x1590930,0x16e49096ecb8,0xce7fc63a1c3,0x16e49094801b,0x16e49096e8c4,0x16e49096e5f5,0x16e49096e1fc,0x16e49096de32,0x16e490968a46
code-creation,LazyCompile,10,3099355,0x16e490971e6e,31,Interface._line node:readline:861:37,0x2148b307ea88,~
code-source-info,0x16e490971e6e,122,23570,23653,C0O23595C5O23595C10O23617C15O23617C19O23637C24O23637C30O23652,,
code-creation,LazyCompile,10,3099486,0x16e490971fe6,247,Interface._addHistory node:readline:499:43,0x2148b307e088,~
code-source-info,0x16e490971fe6,122,12957,14066,C0O12973C5O12978C11O12985C16O12992C18O13002C19O13068C25O13080C30O13099C34O13104C35O13163C40O13192C45O13167C50O13197C56O13205C61O13224C65O13229C66O13242C71O13250C77O13257C82O13271C88O13278C92O13291C96O13282C101O13312C107O13421C112O13448C117O13462C122O13421C128O13475C130O13488C135O13496C140O13522C151O13496C156O13556C161O13583C166O13597C171O13556C176O13644C181O13652C186O13666C190O13659C195O13679C200O13702C205O13679C209O13719C211O13737C215O13944C221O13951C225O14018C233O14039C238O14018C244O14052C246O14064,,
code-creation,LazyCompile,10,3099546,0x16e49097226e,30,repl.clearLine node:internal/repl/utils:504:20,0x16e490954098,~
code-source-info,0x16e49097226e,128,16628,16737,C0O16640C4O16664C10O16677C15O16677C18O16702C22O16726C29O16736,,
code-creation,LazyCompile,10,3099585,0x16e4909723be,47,Interface.clearLine node:readline:852:41,0x2148b307e9f8,~
code-source-info,0x16e4909723be,122,23404,23530,C0O23416C5O23429C8O23428C11O23416C16O23447C24O23447C29O23473C31O23483C35O23491C36O23503C40O23510C41O23524C46O23529,,
code-creation,LazyCompile,10,3099671,0x16e490972516,77,repl._moveCursor node:internal/repl/utils:490:22,0x16e490954008,~
code-source-info,0x16e490972516,128,16069,16376,C0O16105C3O16110C8O16122C13O16122C17O16150C19O16168C26O16180C31O16185C35O16173C43O16215C53O16251C57O16306C59O16318C65O16345C70O16318C76O16375,,
code-creation,LazyCompile,10,3099749,0x16e4909726be,152,Interface._moveCursor node:readline:964:43,0x2148b307ed50,~
code-source-info,0x16e4909726be,122,26825,27328,C0O26834C1O26841C6O26854C7O26861C8O26888C13O26888C18O26906C25O26921C28O26918C32O26955C38O26962C43O26973C44O26985C50O27008C55O27022C60O27027C64O27015C69O27060C74O27065C78O27053C82O27100C87O27100C92O27171C97O27187C101O27176C106O27224C111O27238C115O27229C119O27248C124O27264C134O27248C141O27307C146O27307C151O27327,,
code-creation,LazyCompile,10,3099973,0x16e490972aa6,187,moveCursor node:internal/readline/callbacks:61:20,0x2148b307fd10,~
code-source-info,0x16e490972aa6,123,1217,1698,C0O1248C4O1282C9O1282C13O1317C20O1341C24O1347C26O1358C32O1394C35O1402C42O1402C48O1432C49O1444C50O1463C53O1470C54O1477C59O1488C61O1496C64O1499C70O1502C73O1499C87O1519C88O1526C93O1537C95O1545C98O1548C102O1548C114O1565C115O1572C120O1583C122O1591C125O1594C131O1597C134O1594C148O1614C149O1621C154O1632C156O1640C159O1643C163O1643C175O1674C180O1674C186O1696,,
code-creation,LazyCompile,10,3100277,0x16e490972d76,53,Interface._onLine node:readline:480:39,0x2148b307dfb0,~
code-source-info,0x16e490972d76,122,12467,12678,C0O12487C6O12528C11O12551C12O12574C16O12591C21O12606C26O12591C31O12623C37O12653C45O12653C52O12677,,
tick,0xd1270b,3100360,0,0x0,2,0x11e9ce0,0xce7fc63a20b,0x16e49094801b,0x16e490972da3,0x16e490971e86,0x16e4909717b6,0x16e4909702ec,0x16e49096ff20,0xce7fc63a1c3,0x16e49094801b,0x16e49094c037,0x1590930,0x16e49096ecb8,0xce7fc63a1c3,0x16e49094801b,0x16e49096e8c4,0x16e49096e5f5,0x16e49096e1fc,0x16e49096de32,0x16e490968a46
code-creation,LazyCompile,10,3100475,0x16e4909730fe,553,onLine node:repl:842:34,0x167e0307e088,~
code-source-info,0x16e4909730fe,120,27029,30245,C0O27029C14O27041C27O27041C32O27068C38O27072C40O27089C46O27099C54O27113C61O27122C67O27142C78O27147C90O27178C96O27171C100O27233C107O27238C117O27261C123O27282C128O27261C137O27309C139O27347C140O27354C144O27367C151O27372C156O27372C161O27395C170O27405C174O27423C181O27444C185O27435C189O27466C205O27488C217O27495C224O27466C229O27508C230O27515C231O27619C241O27619C246O27757C248O27781C257O27785C265O27822C274O27843C280O27843C288O27880C297O27901C304O27913C307O27913C312O27901C318O27970C325O27991C330O27970C336O28051C340O28069C344O28095C350O28113C354O28126C370O28162C382O28169C391O28178C398O28130C405O28185C410O28207C411O28214C412O28233C423O28243C425O28242C430O28280C437O28285C442O28292C450O28292C455O28335C457O28335C461O28359C462O28366C463O28412C474O28417C476O28416C482O28441C488O28447C492O28460C502O28460C507O28491C514O28496C523O28510C526O28515C536O28524C546O28496C552O30244,,
code-creation,LazyCompile,10,3100563,0x16e490973526,10, node:repl:133:64,0xb6d5357b138,~
code-source-info,0x16e490973526,120,4012,4037,C0O4024C2O4030C9O4036,,
code-creation,LazyCompile,10,3100599,0x16e490973606,28,getREPLResourceName node:repl:185:29,0xb6d5357a9c8,~
code-source-info,0x16e490973606,120,5346,5396,C0O5353C15O5389C27O5394,,
code-creation,LazyCompile,10,3100629,0x16e490973716,27,runBound node:domain:431:20,0x16e490947a88,~
code-source-info,0x16e490973716,127,13084,13137,C0O13084C2O13093C9O13112C21O13100C26O13133,,
code-creation,LazyCompile,10,3100665,0x16e49097382e,41,bound node:domain:419:15,0x167e03049cc8,~
code-source-info,0x16e49097382e,127,12879,13001,C0O12914C5O12914C9O12937C23O12937C29O12977C34O12977C38O12988C40O12999,,
code-creation,LazyCompile,10,3100702,0x16e490973966,41,Domain.enter node:domain:310:34,0x167e0304a1c8,~
code-source-info,0x16e490973966,127,10391,10618,C0O10514C8O10546C14O10529C18O10556C25O10575C28O10556C33O10591C36O10591C40O10617,,
code-creation,LazyCompile,10,3100730,0x16e490973a86,16,set node:domain:66:16,0x167e03049da0,~
code-source-info,0x16e490973a86,127,2290,2330,C0O2302C9O2320C15O2326,,
code-creation,LazyCompile,10,3100771,0x16e490973b86,19, node:domain:167:27,0x16e490948328,~
code-source-info,0x16e490973b86,127,5626,5673,C0O5645C8O5645C15O5668C18O5673,,
code-creation,LazyCompile,10,3100814,0x16e490973cbe,15,get reportOnUncaughtException node:internal/process/report:87:32,0xce7fc63bed0,~
code-source-info,0x16e490973cbe,112,1999,2056,C0O2008C5O2018C10O2018C14O2052,,
code-creation,LazyCompile,10,3101246,0x16e49097481e,1377,defaultEval node:repl:404:23,0x167e0307d950,~
code-source-info,0x16e49097481e,120,12967,20683,C0O12967C21O13016C31O13016C35O13016C37O13065C39O13073C41O13081C43O13107C45O13134C47O13164C49O13189C52O13530C66O13534C77O13581C87O13581C94O13625C102O13636C106O13636C123O13674C125O13837C137O13866C145O13866C152O13914C160O13964C170O13992C176O13967C197O14083C205O14083C210O14119C212O14166C215O14205C217O14234C223O14247C234O14316C236O14331C240O14337C248O14342C260O14377C261O14377C266O14442C276O14442C282O14424C287O14596C291O14622C295O14627C307O14640C313O14640C323O14627C331O14608C337O14655C341O14606C349O14856C370O14856C379O14938C387O14941C393O14954C401O14994C405O15074C413O14941C434O15249C446O15253C453O15318C455O15357C469O15363C479O15427C483O15462C495O15462C499O15495C504O15592C506O15601C511O15617C518O15624C522O15633C523O15639C527O15647C534O15669C535O15669C540O15726C550O15726C556O15708C561O15868C565O15894C569O15899C581O15912C587O15912C597O15899C605O15880C611O15927C615O15878C626O16003C634O16012C646O16032C652O16040C656O16021C665O16075C675O16075C682O16286C688O16319C694O16349C702O16361C708O16374C716O16404C720O16480C728O16361C739O16356C750O16633C769O16633C774O16677C778O16743C780O16775C782O16809C785O16835C788O16863C792O16966C799O16993C807O16997C814O17042C822O17048C830O17099C837O17130C839O15964C844O17307C856O17327C864O17365C872O17384C880O17403C884O17365C891O17307C896O17430C897O17430C899O17831C903O17927C905O17954C913O17963C919O18142C927O18147C932O18180C940O18186C945O18180C946O18225C954O18252C963O18252C975O18339C985O18402C989O18407C1000O18449C1008O18458C1014O18499C1020O18499C1028O18579C1034O18579C1055O18570C1058O18659C1066O18668C1072O18759C1080O18764C1086O18764C1091O18952C1099O18956C1104O18994C1112O18999C1122O18999C1153O19079C1156O19097C1162O19109C1168O19129C1180O19129C1184O19181C1190O19189C1196O19196C1206O19196C1212O19226C1218O19234C1224O19241C1230O19241C1234O19259C1235O19266C1238O19292C1244O19313C1256O19332C1257O19332C1259O19356C1265O19356C1268O19387C1270O19387C1272O19403C1280O19412C1286O19461C1302O19461C1308O19930C1327O19953C1337O19962C1341O19940C1345O19938C1347O19994C1353O20587C1358O20610C1364O20631C1366O20644C1370O20644C1376O20682,,
code-creation,LazyCompile,10,3101347,0x16e4909750ee,290, node:repl:607:10,0x16e490974390,~
code-source-info,0x16e4909750ee,120,19995,20586,C10O19995C24O20052C36O20052C62O20079C69O20079C87O20148C96O20167C102O20191C112O20191C116O20247C121O20255C126O20262C137O20262C143O20296C148O20304C153O20311C158O20311C162O20333C171O20367C179O20367C197O20495C204O20518C211O20525C214O20524C219O20554C224O20554C265O20585,,
tick,0x11cb2d0,3101469,0,0x0,0,0x1205de0,0x16231c8,0x16e490974860,0x16e490973845,0x16e49097372b,0x16e490973320,0xce7fc63a20b,0x16e49094801b,0x16e490972da3,0x16e490971e86,0x16e4909717b6,0x16e4909702ec,0x16e49096ff20,0xce7fc63a1c3,0x16e49094801b,0x16e49094c037,0x1590930,0x16e49096ecb8,0xce7fc63a1c3,0x16e49094801b,0x16e49096e8c4,0x16e49096e5f5,0x16e49096e1fc,0x16e49096de32,0x16e490968a46
code-creation,LazyCompile,10,3101598,0x16e49097558e,436,finish node:repl:891:20,0x16e490972ef8,~
code-source-info,0x16e49097558e,120,28576,30241,C0O28576C2O28593C18O28593C23O28624C39O28646C51O28653C58O28624C63O28667C71O28677C78O28682C80O28681C89O28719C96O28745C102O28745C110O28719C117O28790C124O28795C129O28802C139O28844C145O28918C149O28802C154O28990C161O28995C166O28995C170O29020C171O29027C172O29102C176O29119C180O29125C189O29152C193O29276C204O29281C216O29312C222O29305C226O29330C233O29335C238O29335C242O29362C243O29369C244O29388C251O29393C256O29401C264O29417C273O29401C279O29484C286O29489C291O29489C295O29519C301O29528C309O29599C313O29853C320O29860C329O29881C332O29886C342O29935C349O29945C355O29977C364O29987C368O30012C375O30017C380O30024C389O30030C392O30035C397O30035C405O30047C409O30024C414O30188C418O30206C425O30211C430O30211C435O30240,,
code-creation,LazyCompile,10,3101770,0x16e490975a3e,274,_memory node:repl:1593:17,0xb6d5357ae58,~
code-source-info,0x16e490975a3e,120,51340,53268,C0O51340C11O51363C13O51363C15O51371C21O51389C29O51382C33O51404C36O51409C44O51428C49O51434C57O51421C61O51493C65O51520C68O51525C73O51531C78O51537C87O51551C92O51557C97O51563C101O51570C108O51583C118O51607C127O51614C133O51614C141O51647C145O51583C152O51727C162O51751C170O51727C175O51770C179O51786C182O51791C189O51803C193O51813C194O51820C195O52060C202O52081C207O52060C213O52107C220O52128C225O52107C231O52145C233O52158C241O52172C245O52185C253O52211C255O52214C258O52211C260O52223C264O52240C269O53258C273O53267,,
code-creation,LazyCompile,10,3101823,0x16e490975cde,213,workIt node:repl:1625:21,0x16e490975950,~
code-source-info,0x16e490975cde,120,52256,53258,C3O52267C9O52277C14O52664C23O52683C26O52688C31O52694C43O52719C46O52724C51O52730C55O52737C64O52759C70O52664C77O52790C83O52800C88O52852C97O52870C100O52875C105O52881C110O52852C115O52897C117O52936C124O52944C126O52942C130O52961C131O52969C136O53023C141O53037C151O53029C157O53056C162O53083C163O53091C168O53146C175O53160C180O53157C184O53179C193O53198C196O53203C201O53209C206O53179C212O53257,,
code-creation,LazyCompile,10,3102379,0x16e4909763c6,108,Domain.exit node:domain:319:33,0x167e0304a250,~
code-source-info,0x16e4909763c6,127,10654,11021,C0O10734C7O10760C10O10734C16O10776C18O10786C23O10794C24O10801C25O10843C32O10864C35O10843C40O10882C45O10899C48O10905C54O10912C64O10932C69O10938C72O10944C76O10951C79O10937C82O10897C86O10959C92O10984C96O10974C100O10994C103O10994C107O11020,,
code-creation,LazyCompile,10,3102465,0x16e490976576,63,online node:internal/repl/history:120:18,0x16e4909570f8,~
code-source-info,0x16e490976576,129,2955,3104,C0O2968C4O2983C8O2996C14O3015C23O3028C26O3015C30O3047C44O3080C47O3055C55O3053C62O3103,,
tick,0xd115a5,3102518,0,0x0,2,0x11e9ce0,0x16e4909765a5,0xce7fc63a20b,0x16e49094801b,0x16e490972da3,0x16e490971e86,0x16e4909717b6,0x16e4909702ec,0x16e49096ff20,0xce7fc63a1c3,0x16e49094801b,0x16e49094c037,0x1590930,0x16e49096ecb8,0xce7fc63a1c3,0x16e49094801b,0x16e49096e8c4,0x16e49096e5f5,0x16e49096e1fc,0x16e49096de32,0x16e490968a46
code-creation,LazyCompile,10,3102575,0x16e4909767f6,216,setTimeout node:timers:140:20,0x3787ca7a46e0,~
code-source-info,0x16e4909767f6,60,4237,4863,C0O4237C2O4277C7O4277C11O4312C13O4315C15O4341C50O4399C52O4424C61O4432C70O4445C72O4470C81O4478C90O4484C99O4497C101O4523C110O4531C119O4537C128O4543C135O4561C138O4582C142O4570C147O4681C149O4688C155O4704C158O4693C162O4591C167O4556C170O4723C172O4753C192O4753C198O4804C203O4828C208O4804C213O4846C215O4861,,
code-creation,LazyCompile,10,3102735,0x16e490976c2e,180,Timeout node:internal/timers:167:17,0x3787ca7aec38,~
script-source,62,node:internal/timers,'use strict';\n\n// HOW and WHY the timers implementation works the way it does.\n//\n// Timers are crucial to Node.js. Internally\x2C any TCP I/O connection creates a\n// timer so that we can time out of connections. Additionally\x2C many user\n// libraries and applications also use timers. As such there may be a\n// significantly large amount of timeouts scheduled at any given time.\n// Therefore\x2C it is very important that the timers implementation is performant\n// and efficient.\n//\n// Note: It is suggested you first read through the lib/internal/linkedlist.js\n// linked list implementation\x2C since timers depend on it extensively. It can be\n// somewhat counter-intuitive at first\x2C as it is not actually a class. Instead\x2C\n// it is a set of helpers that operate on an existing object.\n//\n// In order to be as performant as possible\x2C the architecture and data\n// structures are designed so that they are optimized to handle the following\n// use cases as efficiently as possible:\n\n// - Adding a new timer. (insert)\n// - Removing an existing timer. (remove)\n// - Handling a timer timing out. (timeout)\n//\n// Whenever possible\x2C the implementation tries to make the complexity of these\n// operations as close to constant-time as possible.\n// (So that performance is not impacted by the number of scheduled timers.)\n//\n// Object maps are kept which contain linked lists keyed by their duration in\n// milliseconds.\n//\n/* eslint-disable node-core/non-ascii-character */\n//\n// \u2554\u2550\u2550\u2550\u2550 > Object Map\n// \u2551\n// \u2560\u2550\u2550\n// \u2551 lists: { '40': { }\x2C '320': { etc } } (keys of millisecond duration)\n// \u255a\u2550\u2550 \u250c\u2500\u2500\u2500\u2500\u2518\n// \u2502\n// \u2554\u2550\u2550 \u2502\n// \u2551 TimersList { _idleNext: { }\x2C _idlePrev: (self) }\n// \u2551 \u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518\n// \u2551 \u2554\u2550\u2550 \u2502 ^\n// \u2551 \u2551 { _idleNext: { }\x2C _idlePrev: { }\x2C _onTimeout: (callback) }\n// \u2551 \u2551 \u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518\n// \u2551 \u2551 \u2502 ^\n// \u2551 \u2551 { _idleNext: { etc }\x2C _idlePrev: { }\x2C _onTimeout: (callback) }\n// \u2560\u2550\u2550 \u2560\u2550\u2550\n// \u2551 \u2551\n// \u2551 \u255a\u2550\u2550\u2550\u2550 > Actual JavaScript timeouts\n// \u2551\n// \u255a\u2550\u2550\u2550\u2550 > Linked List\n//\n/* eslint-enable node-core/non-ascii-character */\n//\n// With this\x2C virtually constant-time insertion (append)\x2C removal\x2C and timeout\n// is possible in the JavaScript layer. Any one list of timers is able to be\n// sorted by just appending to it because all timers within share the same\n// duration. Therefore\x2C any timer added later will always have been scheduled to\n// timeout later\x2C thus only needing to be appended.\n// Removal from an object-property linked list is also virtually constant-time\n// as can be seen in the lib/internal/linkedlist.js implementation.\n// Timeouts only need to process any timers currently due to expire\x2C which will\n// always be at the beginning of the list for reasons stated above. Any timers\n// after the first one encountered that does not yet need to timeout will also\n// always be due to timeout at a later time.\n//\n// Less-than constant time operations are thus contained in two places:\n// The PriorityQueue \u2014 an efficient binary heap implementation that does all\n// operations in worst-case O(log n) time \u2014 which manages the order of expiring\n// Timeout lists and the object map lookup of a specific list by the duration of\n// timers within (or creation of a new list). However\x2C these operations combined\n// have shown to be trivial in comparison to other timers architectures.\n\nconst {\n MathMax\x2C\n MathTrunc\x2C\n NumberIsFinite\x2C\n NumberMIN_SAFE_INTEGER\x2C\n ObjectCreate\x2C\n ReflectApply\x2C\n Symbol\x2C\n} = primordials;\n\nconst {\n scheduleTimer\x2C\n toggleTimerRef\x2C\n getLibuvNow\x2C\n immediateInfo\x2C\n toggleImmediateRef\n} = internalBinding('timers');\n\nconst {\n getDefaultTriggerAsyncId\x2C\n newAsyncId\x2C\n initHooksExist\x2C\n destroyHooksExist\x2C\n // The needed emit*() functions.\n emitInit\x2C\n emitBefore\x2C\n emitAfter\x2C\n emitDestroy\x2C\n} = require('internal/async_hooks');\n\n// Symbols for storing async id state.\nconst async_id_symbol = Symbol('asyncId');\nconst trigger_async_id_symbol = Symbol('triggerId');\n\nconst kHasPrimitive = Symbol('kHasPrimitive');\n\nconst {\n ERR_OUT_OF_RANGE\n} = require('internal/errors').codes;\nconst {\n validateCallback\x2C\n validateNumber\x2C\n} = require('internal/validators');\n\nconst L = require('internal/linkedlist');\nconst PriorityQueue = require('internal/priority_queue');\n\nconst { inspect } = require('internal/util/inspect');\nlet debug = require('internal/util/debuglog').debuglog('timer'\x2C (fn) => {\n debug = fn;\n});\n\n// *Must* match Environment::ImmediateInfo::Fields in src/env.h.\nconst kCount = 0;\nconst kRefCount = 1;\nconst kHasOutstanding = 2;\n\n// Timeout values > TIMEOUT_MAX are set to 1.\nconst TIMEOUT_MAX = 2 ** 31 - 1;\n\nlet timerListId = NumberMIN_SAFE_INTEGER;\n\nconst kRefed = Symbol('refed');\n\n// Create a single linked list instance only once at startup\nconst immediateQueue = new ImmediateList();\n\nlet nextExpiry = Infinity;\nlet refCount = 0;\n\n// This is a priority queue with a custom sorting function that first compares\n// the expiry times of two lists and if they're the same then compares their\n// individual IDs to determine which list was created first.\nconst timerListQueue = new PriorityQueue(compareTimersLists\x2C setPosition);\n\n// Object map containing linked lists of timers\x2C keyed and sorted by their\n// duration in milliseconds.\n//\n// - key = time in milliseconds\n// - value = linked list\nconst timerListMap = ObjectCreate(null);\n\nfunction initAsyncResource(resource\x2C type) {\n const asyncId = resource[async_id_symbol] = newAsyncId();\n const triggerAsyncId =\n resource[trigger_async_id_symbol] = getDefaultTriggerAsyncId();\n if (initHooksExist())\n emitInit(asyncId\x2C type\x2C triggerAsyncId\x2C resource);\n}\n\n// Timer constructor function.\n// The entire prototype is defined in lib/timers.js\nfunction Timeout(callback\x2C after\x2C args\x2C isRepeat\x2C isRefed) {\n after *= 1; // Coalesce to number or NaN\n if (!(after >= 1 && after <= TIMEOUT_MAX)) {\n if (after > TIMEOUT_MAX) {\n process.emitWarning(`${after} does not fit into` +\n ' a 32-bit signed integer.' +\n '\\nTimeout duration was set to 1.'\x2C\n 'TimeoutOverflowWarning');\n }\n after = 1; // Schedule on next tick\x2C follows browser behavior\n }\n\n this._idleTimeout = after;\n this._idlePrev = this;\n this._idleNext = this;\n this._idleStart = null;\n // This must be set to null first to avoid function tracking\n // on the hidden class\x2C revisit in V8 versions after 6.2\n this._onTimeout = null;\n this._onTimeout = callback;\n this._timerArgs = args;\n this._repeat = isRepeat ? after : null;\n this._destroyed = false;\n\n if (isRefed)\n incRefCount();\n this[kRefed] = isRefed;\n this[kHasPrimitive] = false;\n\n initAsyncResource(this\x2C 'Timeout');\n}\n\n// Make sure the linked list only shows the minimal necessary information.\nTimeout.prototype[inspect.custom] = function(_\x2C options) {\n return inspect(this\x2C {\n ...options\x2C\n // Only inspect one level.\n depth: 0\x2C\n // It should not recurse.\n customInspect: false\n });\n};\n\nTimeout.prototype.refresh = function() {\n if (this[kRefed])\n active(this);\n else\n unrefActive(this);\n\n return this;\n};\n\nTimeout.prototype.unref = function() {\n if (this[kRefed]) {\n this[kRefed] = false;\n if (!this._destroyed)\n decRefCount();\n }\n return this;\n};\n\nTimeout.prototype.ref = function() {\n if (!this[kRefed]) {\n this[kRefed] = true;\n if (!this._destroyed)\n incRefCount();\n }\n return this;\n};\n\nTimeout.prototype.hasRef = function() {\n return this[kRefed];\n};\n\nfunction TimersList(expiry\x2C msecs) {\n this._idleNext = this; // Create the list with the linkedlist properties to\n this._idlePrev = this; // Prevent any unnecessary hidden class changes.\n this.expiry = expiry;\n this.id = timerListId++;\n this.msecs = msecs;\n this.priorityQueuePosition = null;\n}\n\n// Make sure the linked list only shows the minimal necessary information.\nTimersList.prototype[inspect.custom] = function(_\x2C options) {\n return inspect(this\x2C {\n ...options\x2C\n // Only inspect one level.\n depth: 0\x2C\n // It should not recurse.\n customInspect: false\n });\n};\n\n// A linked list for storing `setImmediate()` requests\nfunction ImmediateList() {\n this.head = null;\n this.tail = null;\n}\n\n// Appends an item to the end of the linked list\x2C adjusting the current tail's\n// next pointer and the item's previous pointer where applicable\nImmediateList.prototype.append = function(item) {\n if (this.tail !== null) {\n this.tail._idleNext = item;\n item._idlePrev = this.tail;\n } else {\n this.head = item;\n }\n this.tail = item;\n};\n\n// Removes an item from the linked list\x2C adjusting the pointers of adjacent\n// items and the linked list's head or tail pointers as necessary\nImmediateList.prototype.remove = function(item) {\n if (item._idleNext) {\n item._idleNext._idlePrev = item._idlePrev;\n }\n\n if (item._idlePrev) {\n item._idlePrev._idleNext = item._idleNext;\n }\n\n if (item === this.head)\n this.head = item._idleNext;\n if (item === this.tail)\n this.tail = item._idlePrev;\n\n item._idleNext = null;\n item._idlePrev = null;\n};\n\nfunction incRefCount() {\n if (refCount++ === 0)\n toggleTimerRef(true);\n}\n\nfunction decRefCount() {\n if (--refCount === 0)\n toggleTimerRef(false);\n}\n\n// Schedule or re-schedule a timer.\n// The item must have been enroll()'d first.\nfunction active(item) {\n insertGuarded(item\x2C true);\n}\n\n// Internal APIs that need timeouts should use `unrefActive()` instead of\n// `active()` so that they do not unnecessarily keep the process open.\nfunction unrefActive(item) {\n insertGuarded(item\x2C false);\n}\n\n// The underlying logic for scheduling or re-scheduling a timer.\n//\n// Appends a timer onto the end of an existing timers list\x2C or creates a new\n// list if one does not already exist for the specified timeout duration.\nfunction insertGuarded(item\x2C refed\x2C start) {\n const msecs = item._idleTimeout;\n if (msecs < 0 || msecs === undefined)\n return;\n\n insert(item\x2C msecs\x2C start);\n\n const isDestroyed = item._destroyed;\n if (isDestroyed || !item[async_id_symbol]) {\n item._destroyed = false;\n initAsyncResource(item\x2C 'Timeout');\n }\n\n if (isDestroyed) {\n if (refed)\n incRefCount();\n } else if (refed === !item[kRefed]) {\n if (refed)\n incRefCount();\n else\n decRefCount();\n }\n item[kRefed] = refed;\n}\n\nfunction insert(item\x2C msecs\x2C start = getLibuvNow()) {\n // Truncate so that accuracy of sub-millisecond timers is not assumed.\n msecs = MathTrunc(msecs);\n item._idleStart = start;\n\n // Use an existing list if there is one\x2C otherwise we need to make a new one.\n let list = timerListMap[msecs];\n if (list === undefined) {\n debug('no %d list was found in insert\x2C creating a new one'\x2C msecs);\n const expiry = start + msecs;\n timerListMap[msecs] = list = new TimersList(expiry\x2C msecs);\n timerListQueue.insert(list);\n\n if (nextExpiry > expiry) {\n scheduleTimer(msecs);\n nextExpiry = expiry;\n }\n }\n\n L.append(list\x2C item);\n}\n\nfunction setUnrefTimeout(callback\x2C after) {\n // Type checking identical to setTimeout()\n validateCallback(callback);\n\n const timer = new Timeout(callback\x2C after\x2C undefined\x2C false\x2C false);\n insert(timer\x2C timer._idleTimeout);\n\n return timer;\n}\n\n// Type checking used by timers.enroll() and Socket#setTimeout()\nfunction getTimerDuration(msecs\x2C name) {\n validateNumber(msecs\x2C name);\n if (msecs < 0 || !NumberIsFinite(msecs)) {\n throw new ERR_OUT_OF_RANGE(name\x2C 'a non-negative finite number'\x2C msecs);\n }\n\n // Ensure that msecs fits into signed int32\n if (msecs > TIMEOUT_MAX) {\n process.emitWarning(`${msecs} does not fit into a 32-bit signed integer.` +\n `\\nTimer duration was truncated to ${TIMEOUT_MAX}.`\x2C\n 'TimeoutOverflowWarning');\n return TIMEOUT_MAX;\n }\n\n return msecs;\n}\n\nfunction compareTimersLists(a\x2C b) {\n const expiryDiff = a.expiry - b.expiry;\n if (expiryDiff === 0) {\n if (a.id < b.id)\n return -1;\n if (a.id > b.id)\n return 1;\n }\n return expiryDiff;\n}\n\nfunction setPosition(node\x2C pos) {\n node.priorityQueuePosition = pos;\n}\n\nfunction getTimerCallbacks(runNextTicks) {\n // If an uncaught exception was thrown during execution of immediateQueue\x2C\n // this queue will store all remaining Immediates that need to run upon\n // resolution of all error handling (if process is still alive).\n const outstandingQueue = new ImmediateList();\n\n function processImmediate() {\n const queue = outstandingQueue.head !== null ?\n outstandingQueue : immediateQueue;\n let immediate = queue.head;\n\n // Clear the linked list early in case new `setImmediate()`\n // calls occur while immediate callbacks are executed\n if (queue !== outstandingQueue) {\n queue.head = queue.tail = null;\n immediateInfo[kHasOutstanding] = 1;\n }\n\n let prevImmediate;\n let ranAtLeastOneImmediate = false;\n while (immediate !== null) {\n if (ranAtLeastOneImmediate)\n runNextTicks();\n else\n ranAtLeastOneImmediate = true;\n\n // It's possible for this current Immediate to be cleared while executing\n // the next tick queue above\x2C which means we need to use the previous\n // Immediate's _idleNext which is guaranteed to not have been cleared.\n if (immediate._destroyed) {\n outstandingQueue.head = immediate = prevImmediate._idleNext;\n continue;\n }\n\n immediate._destroyed = true;\n\n immediateInfo[kCount]--;\n if (immediate[kRefed])\n immediateInfo[kRefCount]--;\n immediate[kRefed] = null;\n\n prevImmediate = immediate;\n\n const asyncId = immediate[async_id_symbol];\n emitBefore(asyncId\x2C immediate[trigger_async_id_symbol]\x2C immediate);\n\n try {\n const argv = immediate._argv;\n if (!argv)\n immediate._onImmediate();\n else\n immediate._onImmediate(...argv);\n } finally {\n immediate._onImmediate = null;\n\n if (destroyHooksExist())\n emitDestroy(asyncId);\n\n outstandingQueue.head = immediate = immediate._idleNext;\n }\n\n emitAfter(asyncId);\n }\n\n if (queue === outstandingQueue)\n outstandingQueue.head = null;\n immediateInfo[kHasOutstanding] = 0;\n }\n\n\n function processTimers(now) {\n debug('process timer lists %d'\x2C now);\n nextExpiry = Infinity;\n\n let list;\n let ranAtLeastOneList = false;\n while (list = timerListQueue.peek()) {\n if (list.expiry > now) {\n nextExpiry = list.expiry;\n return refCount > 0 ? nextExpiry : -nextExpiry;\n }\n if (ranAtLeastOneList)\n runNextTicks();\n else\n ranAtLeastOneList = true;\n listOnTimeout(list\x2C now);\n }\n return 0;\n }\n\n function listOnTimeout(list\x2C now) {\n const msecs = list.msecs;\n\n debug('timeout callback %d'\x2C msecs);\n\n let ranAtLeastOneTimer = false;\n let timer;\n while (timer = L.peek(list)) {\n const diff = now - timer._idleStart;\n\n // Check if this loop iteration is too early for the next timer.\n // This happens if there are more timers scheduled for later in the list.\n if (diff < msecs) {\n list.expiry = MathMax(timer._idleStart + msecs\x2C now + 1);\n list.id = timerListId++;\n timerListQueue.percolateDown(1);\n debug('%d list wait because diff is %d'\x2C msecs\x2C diff);\n return;\n }\n\n if (ranAtLeastOneTimer)\n runNextTicks();\n else\n ranAtLeastOneTimer = true;\n\n // The actual logic for when a timeout happens.\n L.remove(timer);\n\n const asyncId = timer[async_id_symbol];\n\n if (!timer._onTimeout) {\n if (!timer._destroyed) {\n timer._destroyed = true;\n\n if (timer[kRefed])\n refCount--;\n\n if (destroyHooksExist())\n emitDestroy(asyncId);\n }\n continue;\n }\n\n emitBefore(asyncId\x2C timer[trigger_async_id_symbol]\x2C timer);\n\n let start;\n if (timer._repeat)\n start = getLibuvNow();\n\n try {\n const args = timer._timerArgs;\n if (args === undefined)\n timer._onTimeout();\n else\n ReflectApply(timer._onTimeout\x2C timer\x2C args);\n } finally {\n if (timer._repeat && timer._idleTimeout !== -1) {\n timer._idleTimeout = timer._repeat;\n insert(timer\x2C timer._idleTimeout\x2C start);\n } else if (!timer._idleNext && !timer._idlePrev && !timer._destroyed) {\n timer._destroyed = true;\n\n if (timer[kRefed])\n refCount--;\n\n if (destroyHooksExist())\n emitDestroy(asyncId);\n }\n }\n\n emitAfter(asyncId);\n }\n\n // If `L.peek(list)` returned nothing\x2C the list was either empty or we have\n // called all of the timer timeouts.\n // As such\x2C we can remove the list from the object map and\n // the PriorityQueue.\n debug('%d list empty'\x2C msecs);\n\n // The current list may have been removed and recreated since the reference\n // to `list` was created. Make sure they're the same instance of the list\n // before destroying.\n if (list === timerListMap[msecs]) {\n delete timerListMap[msecs];\n timerListQueue.shift();\n }\n }\n\n return {\n processImmediate\x2C\n processTimers\n };\n}\n\nclass Immediate {\n constructor(callback\x2C args) {\n this._idleNext = null;\n this._idlePrev = null;\n this._onImmediate = callback;\n this._argv = args;\n this._destroyed = false;\n this[kRefed] = false;\n\n initAsyncResource(this\x2C 'Immediate');\n\n this.ref();\n immediateInfo[kCount]++;\n\n immediateQueue.append(this);\n }\n\n ref() {\n if (this[kRefed] === false) {\n this[kRefed] = true;\n if (immediateInfo[kRefCount]++ === 0)\n toggleImmediateRef(true);\n }\n return this;\n }\n\n unref() {\n if (this[kRefed] === true) {\n this[kRefed] = false;\n if (--immediateInfo[kRefCount] === 0)\n toggleImmediateRef(false);\n }\n return this;\n }\n\n hasRef() {\n return !!this[kRefed];\n }\n}\n\nmodule.exports = {\n TIMEOUT_MAX\x2C\n kTimeout: Symbol('timeout')\x2C // For hiding Timeouts on other internals.\n async_id_symbol\x2C\n trigger_async_id_symbol\x2C\n Timeout\x2C\n Immediate\x2C\n kRefed\x2C\n kHasPrimitive\x2C\n initAsyncResource\x2C\n setUnrefTimeout\x2C\n getTimerDuration\x2C\n immediateQueue\x2C\n getTimerCallbacks\x2C\n immediateInfoFields: {\n kCount\x2C\n kRefCount\x2C\n kHasOutstanding\n }\x2C\n active\x2C\n unrefActive\x2C\n insert\x2C\n timerListMap\x2C\n timerListQueue\x2C\n decRefCount\x2C\n incRefCount\n};\n
code-source-info,0x16e490976c2e,62,5778,6759,C0O5825C7O5868C9O5880C16O5897C18O5894C23O5917C25O5929C27O5927C32O5950C35O5958C42O5973C52O5999C58O6055C65O5958C71O6182C75O6251C77O6269C81O6280C83O6295C87O6305C89O6320C93O6330C94O6346C98O6478C99O6494C103O6504C105O6520C109O6534C111O6550C115O6560C120O6575C127O6573C131O6602C132O6618C136O6630C140O6647C143O6647C146O6664C148O6669C153O6677C157O6690C159O6695C163O6710C167O6722C173O6722C179O6758,,
tick,0x7f4debd5060a,3104170,0,0x0,3,0x11febe0,0x16e4909768b6,0x16e4909765a5,0xce7fc63a20b,0x16e49094801b,0x16e490972da3,0x16e490971e86,0x16e4909717b6,0x16e4909702ec,0x16e49096ff20,0xce7fc63a1c3,0x16e49094801b,0x16e49094c037,0x1590930,0x16e49096ecb8,0xce7fc63a1c3,0x16e49094801b,0x16e49096e8c4,0x16e49096e5f5,0x16e49096e1fc,0x16e49096de32,0x16e490968a46
code-creation,LazyCompile,10,3104241,0x16e49097836e,37,incRefCount node:internal/timers:299:21,0x3787ca7af1b8,~
code-source-info,0x16e49097836e,62,9151,9207,C0O9158C12O9170C19O9173C24O9184C31O9184C36O9206,,
code-creation,LazyCompile,10,3104288,0x16e4909784a6,76,initAsyncResource node:internal/timers:157:27,0x3787ca7aebe8,~
code-source-info,0x16e4909784a6,62,5425,5677,C0O5462C2O5471C7O5490C10O5490C14O5488C21O5533C23O5542C28O5569C31O5569C35O5567C42O5599C47O5603C52O5625C69O5625C75O5676,,
code-creation,LazyCompile,10,3104373,0x16e4909786ce,159,insert node:internal/timers:350:16,0x3787ca7af348,~
code-source-info,0x16e4909786ce,62,10384,11020,C12O10406C15O10406C23O10498C28O10506C33O10526C35O10542C39O10645C46O10657C50O10668C52O10698C60O10698C65O10785C67O10791C71O10804C87O10833C93O10824C97O10868C102O10883C107O10883C112O10902C119O10917C124O10935C129O10935C133O10963C135O10974C141O10997C146O10999C151O10999C158O11019,,
code-creation,LazyCompile,10,3104414,0x16e4909788b6,10, node:internal/timers:123:65,0x3787ca7ae678,~
code-source-info,0x16e4909788b6,62,4431,4456,C0O4443C2O4449C9O4455,,
code-creation,LazyCompile,10,3104442,0x16e4909789ee,55,TimersList node:internal/timers:241:20,0x3787ca7aef20,~
code-source-info,0x16e4909789ee,62,7573,7854,C0O7593C2O7608C6O7671C8O7686C12O7745C14O7757C18O7769C30O7790C38O7777C42O7796C44O7807C48O7818C49O7845C54O7853,,
code-creation,LazyCompile,10,3104501,0x16e490978b96,67,insert node:internal/priority_queue:34:9,0x3787ca7b0838,~
script-source,63,node:internal/priority_queue,'use strict';\n\nconst {\n Array\x2C\n Symbol\x2C\n} = primordials;\n\nconst kCompare = Symbol('compare');\nconst kHeap = Symbol('heap');\nconst kSetPosition = Symbol('setPosition');\nconst kSize = Symbol('size');\n\n// The PriorityQueue is a basic implementation of a binary heap that accepts\n// a custom sorting function via its constructor. This function is passed\n// the two nodes to compare\x2C similar to the native Array#sort. Crucially\n// this enables priority queues that are based on a comparison of more than\n// just a single criteria.\n\nmodule.exports = class PriorityQueue {\n constructor(comparator\x2C setPosition) {\n if (comparator !== undefined)\n this[kCompare] = comparator;\n if (setPosition !== undefined)\n this[kSetPosition] = setPosition;\n\n this[kHeap] = new Array(64);\n this[kSize] = 0;\n }\n\n [kCompare](a\x2C b) {\n return a - b;\n }\n\n insert(value) {\n const heap = this[kHeap];\n const pos = ++this[kSize];\n heap[pos] = value;\n\n if (heap.length === pos)\n heap.length *= 2;\n\n this.percolateUp(pos);\n }\n\n peek() {\n return this[kHeap][1];\n }\n\n percolateDown(pos) {\n const compare = this[kCompare];\n const setPosition = this[kSetPosition];\n const heap = this[kHeap];\n const size = this[kSize];\n const item = heap[pos];\n\n while (pos * 2 <= size) {\n let childIndex = pos * 2 + 1;\n if (childIndex > size || compare(heap[pos * 2]\x2C heap[childIndex]) < 0)\n childIndex = pos * 2;\n const child = heap[childIndex];\n if (compare(item\x2C child) <= 0)\n break;\n if (setPosition !== undefined)\n setPosition(child\x2C pos);\n heap[pos] = child;\n pos = childIndex;\n }\n heap[pos] = item;\n if (setPosition !== undefined)\n setPosition(item\x2C pos);\n }\n\n percolateUp(pos) {\n const heap = this[kHeap];\n const compare = this[kCompare];\n const setPosition = this[kSetPosition];\n const item = heap[pos];\n\n while (pos > 1) {\n const parent = heap[pos / 2 | 0];\n if (compare(parent\x2C item) <= 0)\n break;\n heap[pos] = parent;\n if (setPosition !== undefined)\n setPosition(parent\x2C pos);\n pos = pos / 2 | 0;\n }\n heap[pos] = item;\n if (setPosition !== undefined)\n setPosition(item\x2C pos);\n }\n\n removeAt(pos) {\n const heap = this[kHeap];\n const size = --this[kSize];\n heap[pos] = heap[size + 1];\n heap[size + 1] = undefined;\n\n if (size > 0 && pos <= size) {\n if (pos > 1 && this[kCompare](heap[pos / 2 | 0]\x2C heap[pos]) > 0)\n this.percolateUp(pos);\n else\n this.percolateDown(pos);\n }\n }\n\n shift() {\n const heap = this[kHeap];\n const value = heap[1];\n if (value === undefined)\n return;\n\n this.removeAt(1);\n\n return value;\n }\n};\n
code-source-info,0x16e490978b96,63,865,1044,C0O892C2O897C4O896C8O921C10O928C19O933C26O940C28O950C32O973C39O980C44O995C51O1007C55O1023C60O1023C66O1043,,
tick,0x7f4debdcf2cf,3104688,0,0x0,3,0x11e9ce0,0x16e490978739,0x16e4909768c6,0x16e4909765a5,0xce7fc63a20b,0x16e49094801b,0x16e490972da3,0x16e490971e86,0x16e4909717b6,0x16e4909702ec,0x16e49096ff20,0xce7fc63a1c3,0x16e49094801b,0x16e49094c037,0x1590930,0x16e49096ecb8,0xce7fc63a1c3,0x16e49094801b,0x16e49096e8c4,0x16e49096e5f5,0x16e49096e1fc,0x16e49096de32,0x16e490968a46
code-creation,LazyCompile,10,3104741,0x16e4909790be,108,percolateUp node:internal/priority_queue:73:14,0x3787ca7b0948,~
code-source-info,0x16e4909790be,63,1774,2254,C0O1799C2O1804C4O1803C8O1832C10O1837C12O1836C16O1872C18O1877C20O1876C24O1909C26O1913C30O1936C32O1936C37O1964C39O1973C42O1977C45O1968C49O1993C56O2015C61O2029C63O2042C65O2052C69O2068C73O2107C78O2139C80O2149C83O2153C88O1925C91O2168C93O2178C97O2190C101O2227C107O2253,,
code-creation,LazyCompile,10,3104785,0x16e490979266,8,setPosition node:internal/timers:411:21,0x3787ca7af4d0,~
code-source-info,0x16e490979266,62,12092,12143,C0O12108C2O12135C7O12142,,
code-creation,LazyCompile,10,3104825,0x16e49097935e,52,append node:internal/linkedlist:29:16,0x3787ca7a52b0,~
script-source,61,node:internal/linkedlist,'use strict';\n\nfunction init(list) {\n list._idleNext = list;\n list._idlePrev = list;\n}\n\n// Show the most idle item.\nfunction peek(list) {\n if (list._idlePrev === list) return null;\n return list._idlePrev;\n}\n\n// Remove an item from its list.\nfunction remove(item) {\n if (item._idleNext) {\n item._idleNext._idlePrev = item._idlePrev;\n }\n\n if (item._idlePrev) {\n item._idlePrev._idleNext = item._idleNext;\n }\n\n item._idleNext = null;\n item._idlePrev = null;\n}\n\n// Remove an item from its list and place at the end.\nfunction append(list\x2C item) {\n if (item._idleNext || item._idlePrev) {\n remove(item);\n }\n\n // Items are linked with _idleNext -> (older) and _idlePrev -> (newer).\n // Note: This linkage (next being older) may seem counter-intuitive at first.\n item._idleNext = list._idleNext;\n item._idlePrev = list;\n\n // The list _idleNext points to tail (newest) and _idlePrev to head (oldest).\n list._idleNext._idlePrev = item;\n list._idleNext = item;\n}\n\nfunction isEmpty(list) {\n return list._idleNext === list;\n}\n\nmodule.exports = {\n init\x2C\n peek\x2C\n remove\x2C\n append\x2C\n isEmpty\n};\n
code-source-info,0x16e49097935e,61,543,980,C0O569C6O587C12O604C15O604C19O802C23O795C27O815C29O830C33O926C40O946C44O956C46O971C51O979,,
code-creation,LazyCompile,10,3104902,0x16e490979666,50,remove node:internal/linkedlist:15:16,0x3787ca7a5260,~
code-source-info,0x16e490979666,61,260,472,C0O280C6O302C11O329C15O322C19O356C25O378C30O405C34O398C38O423C39O438C43O448C44O463C49O471,,
code-creation,LazyCompile,10,3104954,0x16e49097979e,41,maybeReadMore node:internal/streams/readable:597:23,0x3787ca790be0,~
code-source-info,0x16e49097979e,51,19339,19494,C0O19370C6O19391C12O19410C13O19428C17O19440C20O19448C34O19448C40O19493,,
code-creation,LazyCompile,10,3105076,0x16e4909799ee,93,maybeReadMore_ node:internal/streams/readable:604:24,0x3787ca790c30,~
code-source-info,0x16e4909799ee,51,19519,21288,C0O20954C6O20972C12O20997C17O21012C21O21004C26O21046C32O21063C38O21070C43O21103C48O21115C56O21115C60O21157C67O21157C72O21188C76O21178C81O21247C83O20940C86O21260C87O21278C92O21287,,
tick,0x7f4debde04b6,3119283,0,0x0,8
code-creation,LazyCompile,10,3119434,0x16e490979c0e,140,processTimers node:internal/timers:485:25,0x3787ca7af6e8,~
code-source-info,0x16e490979c0e,62,14285,14737,C0O14297C10O14297C15O14339C23O14350C31O14371C33O14405C35O14428C42O14445C47O14445C52O14428C54O14470C61O14477C66O14512C75O14505C83O14528C91O14544C100O14550C108O14564C110O14563C112O14575C113O14590C117O14621C120O14621C125O14656C127O14688C130O14688C135O14416C138O14724C139O14733,,
code-creation,LazyCompile,10,3119508,0x16e490979dce,14,peek node:internal/priority_queue:45:7,0x3787ca7b0888,~
code-source-info,0x16e490979dce,63,1052,1087,C0O1061C2O1073C4O1072C10O1079C13O1083,,
code-creation,LazyCompile,10,3119670,0x16e49097a086,599,listOnTimeout node:internal/timers:505:25,0x3787ca7af758,~
code-source-info,0x16e49097a086,62,14763,17201,C0O14800C5O14812C15O14812C20O14879C22O14894C24O14918C31O14922C36O14922C42O14918C44O14967C48O14959C52O15137C54O15146C59O15165C63O15179C66O15193C73O15204C79O15217C83O15179C88O15177C92O15231C108O15252C118O15239C122O15264C129O15279C137O15279C142O15305C158O15305C163O15368C164O15375C165O15391C169O15423C172O15423C177O15458C179O15546C186O15548C191O15548C196O15586C200O15592C202O15591C206O15628C212O15661C218O15685C219O15702C223O15721C227O15731C229O15730C234O15752C247O15760C255O15775C262O15779C267O15812C274O15812C278O15852C280O15877C291O15903C293O15902C303O15877C308O15948C310O15971C316O15988C323O15996C330O16051C335O16071C337O16111C342O16111C348O16148C355O16167C366O16148C382O16219C383O16229C389O16246C396O16259C401O16306C405O16298C409O16325C414O16345C425O16325C432O16393C438O16413C444O16433C450O16457C451O16474C455O16493C459O16503C461O16502C466O16524C479O16532C487O16547C494O16551C499O16584C506O16584C521O16631C528O16631C532O14905C538O16872C548O16872C553O17092C557O17105C562O17117C565O17101C570O17134C579O17154C581O17168C588O17183C593O17183C598O17200,,
tick,0x7f4dec1656e0,3119725,0,0x0,3,0x11e9ce0,0x16e490979c90
code-creation,LazyCompile,10,3119751,0x16e49097a4e6,19,peek node:internal/linkedlist:9:14,0x3787ca7a51f8,~
code-source-info,0x16e49097a4e6,61,131,210,C0O151C7O161C12O171C13O183C14O198C18O208,,
code-creation,LazyCompile,10,3119922,0x16e49097a92e,34,shift node:internal/priority_queue:107:8,0x3787ca7b0a20,~
code-source-info,0x16e49097a92e,63,2600,2750,C0O2622C2O2627C4O2626C8O2653C10O2657C14O2666C16O2697C17O2704C18O2715C26O2715C31O2733C33O2746,,
code-creation,LazyCompile,10,3119969,0x16e49097aa6e,132,removeAt node:internal/priority_queue:93:11,0x3787ca7b09b8,~
code-source-info,0x16e49097aa6e,63,2266,2591,C0O2291C2O2296C4O2295C8O2321C10O2328C19O2333C26O2340C28O2362C31O2356C34O2350C38O2372C40O2382C45O2387C49O2405C50O2414C57O2425C62O2442C64O2450C71O2462C73O2461C79O2481C82O2485C85O2476C91O2495C95O2471C103O2502C108O2520C113O2520C120O2562C125O2562C131O2590,,
tick,0x7f4debde04b6,3273600,0,0x0,8
code-creation,RegExp,3,3274110,0x7f4ddc0443e0,936,^\\s*{
tick,0xf461d0,3274544,0,0x0,0,0xf4a320,0x16e4909654b2,0x16e49096534a,0x16e490966214
tick,0x7f4debde04b6,3288749,0,0x0,8
tick,0x7f4debde04b6,3642600,0,0x0,8
tick,0x164c73b,3643347,0,0x0,0,0x16e4909661e6
tick,0x7f4debde04b6,3658539,0,0x0,8
tick,0x7f4debde04b6,3929991,0,0x0,8
tick,0x1646be0,3930134,0,0x0,0,0x16e490947fe5,0x16e49096e8c4,0x16e49096e5f5,0x16e49096e1fc,0x16e49096de32,0x16e490968a46
code-creation,LazyCompile,10,3930338,0x16e49097c07e,50,checkAndSetDirectionKey node:internal/repl/utils:533:35,0x16e490951cc8,~
code-source-info,0x16e49097c07e,128,17281,17585,C0O17297C7O17308C12O17327C13O17340C14O17351C21O17359C26O17514C31O17529C36O17529C40O17544C42O17548C48O17569C49O17581,,
code-creation,LazyCompile,10,3930509,0x16e49097c2a6,347,onSigInt node:repl:810:38,0x167e0307e038,~
code-source-info,0x16e49097c2a6,120,26308,26992,C0O26317C5O26344C11O26349C16O26381C45O26373C73O26373C76O26415C79O26362C142O26437C143O26444C144O26470C149O26475C154O26480C160O26487C164O26498C169O26503C174O26503C178O26520C185O26539C188O26520C192O26563C201O26568C203O26567C207O26597C209O26614C215O26621C222O26629C224O26644C230O26669C235O26674C240O26674C244O26691C248O26701C254O26718C255O26725C256O26740C261O26745C266O26752C274O26752C279O26840C283O26850C291O26877C295O26887C301O26907C306O26912C311O26912C315O26940C320O26945C327O26957C331O26967C336O26972C341O26972C346O26991,,
code-creation,LazyCompile,10,3930843,0x16e49097c7fe,22,_turnOffEditorMode node:repl:1675:28,0xb6d5357af48,~
code-source-info,0x16e49097c7fe,120,53949,54025,C0O53960C1O53976C5O53992C10O54007C15O53992C21O54024,,
tick,0xe872b4,3931256,0,0x0,0,0x11f26d0,0x16e49095694f,0x16e49095502a,0x16e490954e4d,0x16e490954d05,0x16e490954b4c,0x16e49097c3fb,0xce7fc63a1c3,0x16e49094801b,0x16e490971496,0x16e4909702ec,0x16e49096ff20,0xce7fc63a1c3,0x16e49094801b,0x16e49094c037,0x1590930,0x16e49096ecb8,0xce7fc63a1c3,0x16e49094801b,0x16e49096e8c4,0x16e49096e5f5,0x16e49096e1fc,0x16e49096de32,0x16e490968a46
tick,0x7f4debde04b6,5022875,0,0x0,8
tick,0x15976b1,5022941,0,0x0,0,0x16e490965753,0x16e490968a10
code-creation,LazyCompile,10,5023311,0x16e49097ccd6,90,close node:repl:1042:44,0xb6d5357b278,~
code-source-info,0x16e49097ccd6,120,33174,33479,C0O33174C9O33181C12O33190C21O33207C30O33226C36O33249C40O33270C44O33282C47O33287C60O33287C66O33382C67O33389C68O33396C73O33404C83O33404C89O33478,,
code-creation,LazyCompile,10,5023525,0x16e49097d306,36, node:repl:1051:20,0x16e49097cbe8,~
code-source-info,0x16e49097d306,120,33413,33472,C0O33423C11O33436C14O33446C19O33456C30O33423C35O33472,,
code-creation,LazyCompile,10,5023569,0x16e49097d44e,55,Interface.close node:readline:579:37,0x2148b307e1a8,~
code-source-info,0x16e49097d44e,122,15151,15300,C0O15167C6O15175C7O15182C8O15190C13O15190C17O15210C23O15231C30O15231C35O15257C36O15269C40O15284C48O15284C54O15299,,
code-creation,LazyCompile,10,5023694,0x16e49097d60e,90,onSelfCloseWithTerminal node:readline:319:37,0x167e0307f958,~
code-source-info,0x16e49097d60e,122,8648,8914,C0O8659C3O8665C14O8665C20O8711C23O8717C34O8717C40O8757C43O8763C54O8763C60O8803C68O8858C71O8865C82O8865C89O8913,,
code-creation,LazyCompile,10,5023746,0x16e49097d76e,47,spliceOne node:internal/util:370:19,0x334c17f29cd0,~
code-source-info,0x16e49097d76e,12,10332,10441,C0O10367C2O10363C6O10374C10O10367C15O10395C17O10420C20O10413C23O10407C27O10387C33O10350C36O10433C41O10433C46O10440,,
code-creation,LazyCompile,10,5023795,0x16e49097d906,50,emitExit node:repl:799:37,0x167e0307dfe8,~
code-source-info,0x16e49097d906,120,26050,26170,C0O26059C6O26079C15O26098C23O26079C28O26130C29O26137C30O26148C35O26153C43O26153C49O26169,,
code-creation,LazyCompile,10,5023833,0x16e49097da6e,86,onexit node:internal/repl/history:154:18,0x16e4909571e8,~
code-source-info,0x16e49097da6e,129,3639,3805,C0O3648C3O3657C9O3676C12O3681C23O3681C29O3717C30O3724C31O3735C34O3740C45O3740C51O3765C58O3768C66O3779C75O3795C78O3768C85O3804,,
code-creation,LazyCompile,10,5023906,0x16e49097dc46,60, node:internal/main/repl:45:23,0x16e49096da98,~
code-source-info,0x16e49097dc46,90,1261,1457,C0O1277C3O1286C9O1309C12O1314C17O1314C21O1333C24O1345C37O1345C43O1415C44O1434C49O1442C54O1442C59O1456,,
code-creation,LazyCompile,10,5023946,0x16e49097ddd6,104,exit node:internal/process/per_thread:178:16,0x38b4b3b3cb28,~
code-source-info,0x16e49097ddd6,23,4711,5136,C0O4724C5O4741C10O4754C17O4771C21O4784C26O4797C32O4815C38O4832C42O4846C47O4854C60O4875C68O4854C74O5090C79O5098C89O5117C97O5098C103O5135,,
tick,0x7f4debebccd5,5024133,1,0xb724a0,6,0xd44a10,0x16e49097de37,0x16e49097dc7c,0xce7fc63a20b,0x16e49094801b,0x16e49097d931,0xce7fc63a20b,0x16e49094801b,0x16e49097d47e,0x16e49097d324,0x16e490966227