ase" ":case"\v":case"\f":case" ":case" ":case"\uFEFF":case` `:case"\r":case"\u2028":case"\u2029":return void u();case"/":return u(),void(C="comment");case void 0:return u(),a("eof")}if(!(D=>typeof D=="string"&&_.Space_Separator.test(D))(A))return T[p]();u()},comment(){switch(A){case"*":return u(),void(C="multiLineComment");case"/":return u(),void(C="singleLineComment")}throw E(u())},multiLineComment(){switch(A){case"*":return u(),void(C="multiLineCommentAsterisk");case void 0:throw E(u())}u()},multiLineCommentAsterisk(){switch(A){case"*":return void u();case"/":return u(),void(C="default");case void 0:throw E(u())}u(),C="multiLineComment"},singleLineComment(){switch(A){case` `:case"\r":case"\u2028":case"\u2029":return u(),void(C="default");case void 0:return u(),a("eof")}u()},value(){switch(A){case"{":case"[":return a("punctuator",u());case"n":return u(),N("ull"),a("null",null);case"t":return u(),N("rue"),a("boolean",!0);case"f":return u(),N("alse"),a("boolean",!1);case"-":case"+":return u()==="-"&&(f=-1),void(C="sign");case".":return e=u(),void(C="decimalPointLeading");case"0":return e=u(),void(C="zero");case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":return e=u(),void(C="decimalInteger");case"I":return u(),N("nfinity"),a("numeric",1/0);case"N":return u(),N("aN"),a("numeric",NaN);case'"':case"'":return P=u()==='"',e="",void(C="string")}throw E(u())},identifierNameStartEscape(){if(A!=="u")throw E(u());u();const D=n();switch(D){case"$":case"_":break;default:if(!R(D))throw l()}e+=D,C="identifierName"},identifierName(){switch(A){case"$":case"_":case"‌":case"‍":return void(e+=u());case"\\":return u(),void(C="identifierNameEscape")}if(!G(A))return a("identifier",e);e+=u()},identifierNameEscape(){if(A!=="u")throw E(u());u();const D=n();switch(D){case"$":case"_":case"‌":case"‍":break;default:if(!G(D))throw l()}e+=D,C="identifierName"},sign(){switch(A){case".":return e=u(),void(C="decimalPointLeading");case"0":return e=u(),void(C="zero");case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":return e=u(),void(C="decimalInteger");case"I":return u(),N("nfinity"),a("numeric",f*(1/0));case"N":return u(),N("aN"),a("numeric",NaN)}throw E(u())},zero(){switch(A){case".":return e+=u(),void(C="decimalPoint");case"e":case"E":return e+=u(),void(C="decimalExponent");case"x":case"X":return e+=u(),void(C="hexadecimal");case"n":return void(C="bigInt")}return a("numeric",0*f)},decimalInteger(){switch(A){case".":return e+=u(),void(C="decimalPoint");case"e":case"E":return e+=u(),void(C="decimalExponent");case"n":return void(C="bigInt")}if(!S(A))return b(f,e);e+=u()},decimalPointLeading(){if(S(A))return e+=u(),void(C="decimalFraction");throw E(u())},decimalPoint(){switch(A){case"e":case"E":return e+=u(),void(C="decimalExponent")}return S(A)?(e+=u(),void(C="decimalFraction")):b(f,e)},decimalFraction(){switch(A){case"e":case"E":return e+=u(),void(C="decimalExponent")}if(!S(A))return b(f,e);e+=u()},decimalExponent(){switch(A){case"+":case"-":return e+=u(),void(C="decimalExponentSign")}if(S(A))return e+=u(),void(C="decimalExponentInteger");throw E(u())},decimalExponentSign(){if(S(A))return e+=u(),void(C="decimalExponentInteger");throw E(u())},decimalExponentInteger(){if(!S(A))return b(f,e);e+=u()},bigInt(){if(e!=null&&e.length&&(typeof(D=e)=="string"&&!/[^0-9]/.test(D)||(t=>typeof t=="string"&&/0x[0-9a-f]+$/i.test(t))(e)))return u(),a("bigint",BigInt(f)*BigInt(e));var D;throw E(u())},hexadecimal(){if(L(A))return e+=u(),void(C="hexadecimalInteger");throw E(u())},hexadecimalInteger(){if(L(A))e+=u();else{if(A!=="n")return b(f,e);C="bigInt"}},string(){switch(A){case"\\":return u(),void(e+=function(){switch(g()){case"b":return u(),"\b";case"f":return u(),"\f";case"n":return u(),` `;case"r":return u(),"\r";case"t":return u()," ";case"v":return u(),"\v";case"0":if(u(),S(g()))throw E(u());return"\0";case"x":return u(),function(){let t="",c=g();if(!L(c)||(t+=u(),c=g(),!L(c)))throw E(u());return t+=u(),String.fromCodePoint(parseInt(t,16))}();case"u":return u(),n();case` `:case"\u2028":case"\u2029":return u(),"";case"\r":return u(),g()===` `&&u(),"";case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":case void 0:throw E(u())}return u()}());case'"':return P?(u(),a("string",e)):void(e+=u());case"'":return P?void(e+=u()):(u(),a("string",e));case` `:case"\r":throw E(u());case"\u2028":case"\u2029":D=A,console.warn(`JSON11: '${I(D)}' in strings is not valid ECMAScript; consider escaping`);break;case void 0:throw E(u())}var D;e+=u()},start(){switch(A){case"{":case"[":return a("punctuator",u());case void 0:return a("eof")}C="value"},beforePropertyName(){switch(A){case"$":case"_":return e=u(),void(C="identifierName");case"\\":return u(),void(C="identifierNameStartEscape");case"}":return a("punctuator",u());case'"':case"'":return P=u()==='"',void(C="string")}if(R(A))return e+=u(),void(C="identifierName");throw E(u())},afterPropertyName(){if(A===":")return a("punctuator",u());throw E(u())},beforePropertyValue(){C="value"},afterPropertyValue(){switch(A){case",":case"}":return a("punctuator",u())}throw E(u())},beforeArrayValue(){if(A==="]")return a("punctuator",u());C="value"},afterArrayValue(){switch(A){case",":case"]":return a("punctuator",u())}throw E(u())},end(){throw E(u())}},M={start(){if(r.type==="eof")throw o();B()},beforePropertyName(){switch(r.type){case"identifier":case"string":return x=r.value,void(p="afterPropertyName");case"punctuator":return void F();case"eof":throw o()}},afterPropertyName(){if(r.type==="eof")throw o();p="beforePropertyValue"},beforePropertyValue(){if(r.type==="eof")throw o();B()},beforeArrayValue(){if(r.type==="eof")throw o();r.type!=="punctuator"||r.value!=="]"?B():F()},afterPropertyValue(){if(r.type==="eof")throw o();switch(r.value){case",":return void(p="beforePropertyName");case"}":F()}},afterArrayValue(){if(r.type==="eof")throw o();switch(r.value){case",":return void(p="beforeArrayValue");case"]":F()}},end(){}};do r=$(),M[p]();while(r.type!=="eof");return typeof s=="function"?function D(t,c,z){const v=t[c];if(v!=null&&typeof v=="object")if(Array.isArray(v))for(let V=0;VNumber.MAX_SAFE_INTEGER||c0;){const c=g();if(!L(c))throw E(u());D+=u()}return String.fromCodePoint(parseInt(D,16))}function B(){let D;switch(r.type){case"punctuator":switch(r.value){case"{":D={};break;case"[":D=[]}break;case"null":case"boolean":case"numeric":case"string":case"bigint":D=r.value}if(O===void 0)O=D;else{const t=m[m.length-1];Array.isArray(t)?t.push(D):Object.defineProperty(t,x,{value:D,writable:!0,enumerable:!0,configurable:!0})}if(D!==null&&typeof D=="object")m.push(D),p=Array.isArray(D)?"beforeArrayValue":"beforePropertyName";else{const t=m[m.length-1];p=t==null?"end":Array.isArray(t)?"afterArrayValue":"afterPropertyValue"}}function F(){m.pop();const D=m[m.length-1];p=D==null?"end":Array.isArray(D)?"afterArrayValue":"afterPropertyValue"}function E(D){return d(D===void 0?`JSON11: invalid end of input at ${y}:${h}`:`JSON11: invalid character '${I(D)}' at ${y}:${h}`)}function o(){return d(`JSON11: invalid end of input at ${y}:${h}`)}function l(){return h-=5,d(`JSON11: invalid identifier character at ${y}:${h}`)}function I(D){const t={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};if(t[D])return t[D];if(D<" "){const c=D.charCodeAt(0).toString(16);return"\\x"+("00"+c).substring(c.length)}return D}function d(D){const t=new SyntaxError(D);return Object.defineProperty(t,"lineNumber",{value:y,writable:!0,enumerable:!0,configurable:!0}),Object.defineProperty(t,"columnNumber",{value:h,writable:!0,enumerable:!0,configurable:!0}),t}},J.stringify=function(i,s,k,r){var g,u,a,b,N;const x=[];let O,C,e,P,f,A="",w="",p=function(n){if(n.length===0)return $(n);const B=String.fromCodePoint(n.codePointAt(0));if(!R(B))return $(n);for(let F=B.length;F0)return" ".repeat(Math.min(10,Math.floor(B)))}else if(typeof n=="string"||n instanceof String)return n.substring(0,10);return""}function M(n,B){let F=B[n];switch(F!=null&&(typeof F.toJSON11=="function"?F=F.toJSON11(n):typeof F.toJSON5=="function"?F=F.toJSON5(n):typeof F.toJSON=="function"&&(F=F.toJSON(n))),C&&(F=C.call(B,n,F)),F instanceof Number?F=Number(F):F instanceof String?F=String(F):F instanceof Boolean&&(F=F.valueOf()),F){case null:return"null";case!0:return"true";case!1:return"false"}return typeof F=="string"?$(F):typeof F=="number"?String(F):typeof F=="bigint"?F.toString()+(P===!1?"":"n"):typeof F=="object"?Array.isArray(F)?function(E){if(x.includes(E))throw TypeError("Converting circular structure to JSON11");x.push(E);let o=A;A+=w;let l,I=[];for(let d=0;dj[E]