"use strict";function_interopNamespaceDefault(t){conste=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t)for(constrint)if("default"!==r){consts=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,s.get?s:{enumerable:!0,get:()=>t[r]})}returne.default=t,Object.freeze(e)}functionisDigit(t){returnt>=CHAR_0&&CHAR_9>=t}functionisHexit(t){returnt>=CHAR_A&&CHAR_F>=t||t>=CHAR_a&&CHAR_f>=t||t>=CHAR_0&&CHAR_9>=t}functionisBit(t){returnt===CHAR_1||t===CHAR_0}functionisOctit(t){returnt>=CHAR_0&&CHAR_7>=t}functionisAlphaNumQuoteHyphen(t){returnt>=CHAR_A&&CHAR_Z>=t||t>=CHAR_a&&CHAR_z>=t||t>=CHAR_0&&CHAR_9>=t||t===CHAR_APOS||t===CHAR_QUOT||t===CHAR_LOWBAR||t===CHAR_HYPHEN}functionisAlphaNumHyphen(t){returnt>=CHAR_A&&CHAR_Z>=t||t>=CHAR_a&&CHAR_z>=t||t>=CHAR_0&&CHAR_9>=t||t===CHAR_LOWBAR||t===CHAR_HYPHEN}functionhasKey(t,e){return!!hasOwnProperty.call(t,e)||("__proto__"===e&&defineProperty(t,"__proto__",descriptor),!1)}functionInlineTable(){returnObject.defineProperties({},{[_type]:{value:INLINE_TABLE}})}functionisInlineTable(t){returnnull!==t&&"object"==typeoft&&t[_type]===INLINE_TABLE}functionTable(){returnObject.defineProperties({},{[_type]:{value:TABLE},[_declared]:{value:!1,writable:!0}})}functionisTable(t){returnnull!==t&&"object"==typeoft&&t[_type]===TABLE}functionInlineList(t){returnObject.defineProperties([],{[_type]:{value:INLINE_LIST},[_contentType]:{value:t}})}functionisInlineList(t){returnnull!==t&&"object"==typeoft&&t[_type]===INLINE_LIST}functionList(){returnObject.defineProperties([],{[_type]:{value:LIST}})}functionisList(t){returnnull!==t&&"object"==typeoft&&t[_type]===LIST}functionInteger(t){lete=+t;returnObject.is(e,-0)&&(e=0),setupCpp.commonjsGlobal.BigInt&&!Number.isSafeInteger(e)?newBoxedBigInt(t):Object.defineProperties(newNumber(e),{isNaN:{value:function(){returnisNaN(this)}},[_type]:{value:INTEGER},[_inspect]:{value:()=>`[Integer: ${t}]`}})}functionisInteger(t){returnnull!==t&&"object"==typeoft&&t[_type]===INTEGER}functionFloat(t){returnObject.defineProperties(newNumber(t),{[_type]:{value:FLOAT},[_inspect]:{value:()=>`[Float: ${t}]`}})}functionisFloat(t){returnnull!==t&&"object"==typeoft&&t[_type]===FLOAT}functiontomlType$1(t){conste=typeoft;if("object"===e){if(null===t)return"null";if(tinstanceofDate)return"datetime";if(_typeint)switch(t[_type]){caseINLINE_TABLE:return"inline-table";caseINLINE_LIST:return"inline-list";caseTABLE:return"table";caseLIST:return"list";caseFLOAT:return"float";caseINTEGER:return"integer"}}returne}functionmakeParserClass(t){returnclassextendst{constructor(){super(),this.ctx=this.obj=Table()}atEndOfWord(){returnthis.char===CHAR_NUM||this.char===CTRL_I||this.char===CHAR_SP||this.atEndOfLine()}atEndOfLine(){returnthis.char===t.END||this.char===CTRL_J||this.char===CTRL_M}parseStart(){if(this.char===t.END)returnnull;if(this.char===CHAR_LSQB)returnthis.call(this.parseTableOrList);if(this.char===CHAR_NUM)returnthis.call(this.parseComment);if(this.char===CTRL_J||this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M)returnnull;if(isAlphaNumQuoteHyphen(this.char))returnthis.callNow(this.parseAssignStatement);throwthis.error(newTomlError(`Unknown character "${this.char}"`))}parseWhitespaceToEOL(){if(this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M)returnnull;if(this.char===CHAR_NUM)returnthis.goto(this.parseComment);if(this.char===t.END||this.char===CTRL_J)returnthis.return();throwthis.error(newTomlError("Unexpected character, expected only whitespace or comments till end of line"))}parseAssignStatement(){returnthis.callNow(this.parseAssign,this.recordAssignStatement)}recordAssignStatement(t){lete=this.ctx,r=t.key.pop();for(letsoft.key){if(hasKey(e,s)&&!isTable(e[s]))throwthis.error(newTomlError("Can't redefine existing key"));e=e[s]=e[s]||Table()}if(hasKey(e,r))throwthis.error(newTomlError("Can't redefine existing key"));returne[_declared]=!0,e[r]=isInteger(t.value)||isFloat(t.value)?t.value.valueOf():t.value,this.goto(this.parseWhitespaceToEOL)}parseAssign(