From 8235d4e02fb6196886ed9162326eb46077291100 Mon Sep 17 00:00:00 2001 From: Benoit Giannangeli Date: Tue, 9 May 2017 14:13:23 +0200 Subject: Added 'dist' to .gitignore --- dist/fengari.html | 13 ------------- dist/fengari.js | 6 ------ 2 files changed, 19 deletions(-) delete mode 100644 dist/fengari.html delete mode 100644 dist/fengari.js (limited to 'dist') diff --git a/dist/fengari.html b/dist/fengari.html deleted file mode 100644 index d101681..0000000 --- a/dist/fengari.html +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - diff --git a/dist/fengari.js b/dist/fengari.js deleted file mode 100644 index c478f6b..0000000 --- a/dist/fengari.js +++ /dev/null @@ -1,6 +0,0 @@ -var _NumberparseInt=Number.parseInt,_Mathmax=Math.max,_MathPI=Math.PI,_Mathlog=Math.log,_Mathceil=Math.ceil,_NumberisNaN=Number.isNaN,_Mathabs=Math.abs,_Mathpow=Math.pow,_Mathfloor=Math.floor,_StringfromCharCode=String.fromCharCode,_Mathmin=Math.min,fengari=function(T){function O(E){if(U[E])return U[E].exports;var N=U[E]={i:E,l:!1,exports:{}};return T[E].call(N.exports,N,N.exports,O),N.l=!0,N.exports}var U={};return O.m=T,O.c=U,O.i=function(E){return E},O.d=function(E,N,I){O.o(E,N)||Object.defineProperty(E,N,{configurable:!1,enumerable:!0,get:I})},O.n=function(E){var N=E&&E.__esModule?function(){return E['default']}:function(){return E};return O.d(N,'a',N),N},O.o=function(E,N){return Object.prototype.hasOwnProperty.call(E,N)},O.p='',O(O.s=47)}([function(T,O,U){'use strict';(function(E){/*! - * The buffer module from node.js, for the browser. - * - * @author Feross Aboukhadijeh - * @license MIT - */function N(pe,ce){if(pe===ce)return 0;for(var de=pe.length,Le=ce.length,ge=0,Ae=_Mathmin(de,Le);gelt;lt++)M[_StringfromCharCode(lt)]=lt;T.exports.char=M;const K='5',V='3',F='4',H='Lua '+K+'.'+V,Y=H+'.'+F,J=Y+' Copyright (C) 1994-2017 Lua.org, PUC-Rio',W='0',Z='0',$='1',ee='Fengari '+W+'.'+Z,te=ee+'.'+$,se='_'+K+'_'+V,ne='LUA_INIT',pe={LUA_TNONE:-1,LUA_TNIL:0,LUA_TBOOLEAN:1,LUA_TLIGHTUSERDATA:2,LUA_TNUMBER:3,LUA_TSTRING:4,LUA_TTABLE:5,LUA_TFUNCTION:6,LUA_TUSERDATA:7,LUA_TTHREAD:8,LUA_NUMTAGS:9};pe.LUA_TSHRSTR=0|pe.LUA_TSTRING,pe.LUA_TLNGSTR=16|pe.LUA_TSTRING,pe.LUA_TNUMFLT=0|pe.LUA_TNUMBER,pe.LUA_TNUMINT=16|pe.LUA_TNUMBER,pe.LUA_TLCL=0|pe.LUA_TFUNCTION,pe.LUA_TLCF=16|pe.LUA_TFUNCTION,pe.LUA_TCCL=32|pe.LUA_TFUNCTION;const Pe=-N.LUAI_MAXSTACK-1e3,Ke=2,we={},Xe=0,He=1,je=2,ze=3;T.exports.LUA_PATH_SEP=';',T.exports.LUA_PATH_MARK='?',T.exports.LUA_EXEC_DIR='!';const at=K+'.'+V;T.exports.LUA_VDIR=at;{T.exports.LUA_DIRSEP='/';const ut='/usr/local/';T.exports.LUA_ROOT=ut;const rt=ut+'share/lua/'+at+'/';T.exports.LUA_LDIR=rt;const st=ut+'lib/lua/'+at+'/';T.exports.LUA_CDIR=st,T.exports.LUA_PATH_DEFAULT=rt+'?.lua;'+rt+'?/init.lua;'+st+'?.lua;'+st+'?/init.lua;./?.lua;./?/init.lua',T.exports.LUA_CPATH_DEFAULT=st+'?.so;'+st+'loadall.so;./?.so'}T.exports.CT=pe,T.exports.FENGARI_AUTHORS='B. Giannangeli',T.exports.FENGARI_COPYRIGHT=te+' Copyright (C) 2017 Beno\xEEt Giannangeli\nBased on: '+J,T.exports.FENGARI_RELEASE=te,T.exports.FENGARI_VERSION=ee,T.exports.FENGARI_VERSION_MAJOR=W,T.exports.FENGARI_VERSION_MINOR=Z,T.exports.FENGARI_VERSION_NUM=1,T.exports.FENGARI_VERSION_RELEASE=$,T.exports.LUA_AUTHORS='R. Ierusalimschy, L. H. de Figueiredo, W. Celes',T.exports.LUA_COPYRIGHT=J,T.exports.LUA_HOOKCALL=Xe,T.exports.LUA_HOOKCOUNT=ze,T.exports.LUA_HOOKLINE=je,T.exports.LUA_HOOKRET=He,T.exports.LUA_HOOKTAILCALL=4,T.exports.LUA_INITVARVERSION=ne+se,T.exports.LUA_INIT_VAR=ne,T.exports.LUA_MASKCALL=1<st)dt+=_StringfromCharCode(st);else{var Lt=st-65536;dt+=_StringfromCharCode(55296|Lt>>10,56320|1023&Lt)}}return dt},T.exports.to_luastring=function(lt,ut,rt){if(E('string'==typeof lt,'to_luastring expect a js string'),ut){let it=we[lt];if(Array.isArray(it))return it}rt=void 0===rt?I.MAX_INT:rt;let st=[];if(!(0=pt&&(pt=65536+((1023&pt)<<10)|1023<.charCodeAt(++it)),127>=pt){if(nt>=_t)break;st[nt++]=pt}else if(2047>=pt){if(nt+1>=_t)break;st[nt++]=192|pt>>6,st[nt++]=128|63&pt}else if(65535>=pt){if(nt+2>=_t)break;st[nt++]=224|pt>>12,st[nt++]=128|63&pt>>6,st[nt++]=128|63&pt}else if(2097151>=pt){if(nt+3>=_t)break;st[nt++]=240|pt>>18,st[nt++]=128|63&pt>>12,st[nt++]=128|63&pt>>6,st[nt++]=128|63&pt}else if(67108863>=pt){if(nt+4>=_t)break;st[nt++]=248|pt>>24,st[nt++]=128|63&pt>>18,st[nt++]=128|63&pt>>12,st[nt++]=128|63&pt>>6,st[nt++]=128|63&pt}else{if(nt+5>=_t)break;st[nt++]=252|pt>>30,st[nt++]=128|63&pt>>24,st[nt++]=128|63&pt>>18,st[nt++]=128|63&pt>>12,st[nt++]=128|63&pt>>6,st[nt++]=128|63&pt}return ut&&(we[lt]=st),st}},function(T,O,U){'use strict';const E=U(1),N=U(21),I=U(8),M=U(9),P=U(15);T.exports.FENGARI_AUTHORS=E.FENGARI_AUTHORS,T.exports.FENGARI_COPYRIGHT=E.FENGARI_COPYRIGHT,T.exports.FENGARI_RELEASE=E.FENGARI_RELEASE,T.exports.FENGARI_VERSION=E.FENGARI_VERSION,T.exports.FENGARI_VERSION_MAJOR=E.FENGARI_VERSION_MAJOR,T.exports.FENGARI_VERSION_MINOR=E.FENGARI_VERSION_MINOR,T.exports.FENGARI_VERSION_NUM=E.FENGARI_VERSION_NUM,T.exports.FENGARI_VERSION_RELEASE=E.FENGARI_VERSION_RELEASE,T.exports.LUA_AUTHORS=E.LUA_AUTHORS,T.exports.LUA_COPYRIGHT=E.LUA_COPYRIGHT,T.exports.LUA_ERRERR=E.thread_status.LUA_ERRERR,T.exports.LUA_ERRGCMM=E.thread_status.LUA_ERRGCMM,T.exports.LUA_ERRMEM=E.thread_status.LUA_ERRMEM,T.exports.LUA_ERRRUN=E.thread_status.LUA_ERRRUN,T.exports.LUA_ERRSYNTAX=E.thread_status.LUA_ERRSYNTAX,T.exports.LUA_HOOKCALL=E.LUA_HOOKCALL,T.exports.LUA_HOOKCOUNT=E.LUA_HOOKCOUNT,T.exports.LUA_HOOKLINE=E.LUA_HOOKLINE,T.exports.LUA_HOOKRET=E.LUA_HOOKRET,T.exports.LUA_HOOKTAILCALL=E.LUA_HOOKTAILCALL,T.exports.LUA_INITVARVERSION=E.LUA_INITVARVERSION,T.exports.LUA_INIT_VAR=E.LUA_INIT_VAR,T.exports.LUA_MASKCALL=E.LUA_MASKCALL,T.exports.LUA_MASKCOUNT=E.LUA_MASKCOUNT,T.exports.LUA_MASKLINE=E.LUA_MASKLINE,T.exports.LUA_MASKRET=E.LUA_MASKRET,T.exports.LUA_MINSTACK=E.LUA_MINSTACK,T.exports.LUA_MULTRET=E.LUA_MULTRET,T.exports.LUA_NUMTAGS=E.LUA_NUMTAGS,T.exports.LUA_OK=E.thread_status.LUA_OK,T.exports.LUA_OPADD=E.LUA_OPADD,T.exports.LUA_OPBAND=E.LUA_OPBAND,T.exports.LUA_OPBNOT=E.LUA_OPBNOT,T.exports.LUA_OPBOR=E.LUA_OPBOR,T.exports.LUA_OPBXOR=E.LUA_OPBXOR,T.exports.LUA_OPDIV=E.LUA_OPDIV,T.exports.LUA_OPEQ=E.LUA_OPEQ,T.exports.LUA_OPIDIV=E.LUA_OPIDIV,T.exports.LUA_OPLE=E.LUA_OPLE,T.exports.LUA_OPLT=E.LUA_OPLT,T.exports.LUA_OPMOD=E.LUA_OPMOD,T.exports.LUA_OPMUL=E.LUA_OPMUL,T.exports.LUA_OPPOW=E.LUA_OPPOW,T.exports.LUA_OPSHL=E.LUA_OPSHL,T.exports.LUA_OPSHR=E.LUA_OPSHR,T.exports.LUA_OPSUB=E.LUA_OPSUB,T.exports.LUA_OPUNM=E.LUA_OPUNM,T.exports.LUA_REGISTRYINDEX=E.LUA_REGISTRYINDEX,T.exports.LUA_RELEASE=E.LUA_RELEASE,T.exports.LUA_RIDX_GLOBALS=E.LUA_RIDX_GLOBALS,T.exports.LUA_RIDX_LAST=E.LUA_RIDX_LAST,T.exports.LUA_RIDX_MAINTHREAD=E.LUA_RIDX_MAINTHREAD,T.exports.LUA_SIGNATURE=E.LUA_SIGNATURE,T.exports.LUA_TNONE=E.CT.LUA_TNONE,T.exports.LUA_TNIL=E.CT.LUA_TNIL,T.exports.LUA_TBOOLEAN=E.CT.LUA_TBOOLEAN,T.exports.LUA_TLIGHTUSERDATA=E.CT.LUA_TLIGHTUSERDATA,T.exports.LUA_TNUMBER=E.CT.LUA_TNUMBER,T.exports.LUA_TSTRING=E.CT.LUA_TSTRING,T.exports.LUA_TTABLE=E.CT.LUA_TTABLE,T.exports.LUA_TFUNCTION=E.CT.LUA_TFUNCTION,T.exports.LUA_TUSERDATA=E.CT.LUA_TUSERDATA,T.exports.LUA_TTHREAD=E.CT.LUA_TTHREAD,T.exports.LUA_VERSION=E.LUA_VERSION,T.exports.LUA_VERSION_MAJOR=E.LUA_VERSION_MAJOR,T.exports.LUA_VERSION_MINOR=E.LUA_VERSION_MINOR,T.exports.LUA_VERSION_NUM=E.LUA_VERSION_NUM,T.exports.LUA_VERSION_RELEASE=E.LUA_VERSION_RELEASE,T.exports.LUA_VERSUFFIX=E.LUA_VERSUFFIX,T.exports.LUA_YIELD=E.thread_status.LUA_YIELD,T.exports.lua_Debug=E.lua_Debug,T.exports.lua_upvalueindex=E.lua_upvalueindex,T.exports.to_jsstring=E.to_jsstring,T.exports.to_luastring=E.to_luastring,T.exports.LUA_CDIR=E.LUA_CDIR,T.exports.LUA_CPATH_DEFAULT=E.LUA_CPATH_DEFAULT,T.exports.LUA_EXEC_DIR=E.LUA_EXEC_DIR,T.exports.LUA_LDIR=E.LUA_LDIR,T.exports.LUA_PATH_DEFAULT=E.LUA_PATH_DEFAULT,T.exports.LUA_PATH_MARK=E.LUA_PATH_MARK,T.exports.LUA_PATH_SEP=E.LUA_PATH_SEP,T.exports.LUA_ROOT=E.LUA_ROOT,T.exports.LUA_SHRDIR=E.LUA_SHRDIR,T.exports.LUA_VDIR=E.LUA_VDIR,T.exports.LUA_DIRSEP=E.LUA_DIRSEP,T.exports.lua_absindex=N.lua_absindex,T.exports.lua_atpanic=N.lua_atpanic,T.exports.lua_call=N.lua_call,T.exports.lua_callk=N.lua_callk,T.exports.lua_checkstack=N.lua_checkstack,T.exports.lua_close=P.lua_close,T.exports.lua_compare=N.lua_compare,T.exports.lua_concat=N.lua_concat,T.exports.lua_copy=N.lua_copy,T.exports.lua_createtable=N.lua_createtable,T.exports.lua_dump=N.lua_dump,T.exports.lua_error=N.lua_error,T.exports.lua_gc=N.lua_gc,T.exports.lua_getallocf=N.lua_getallocf,T.exports.lua_getextraspace=N.lua_getextraspace,T.exports.lua_getfield=N.lua_getfield,T.exports.lua_getglobal=N.lua_getglobal,T.exports.lua_gethook=I.lua_gethook,T.exports.lua_gethookcount=I.lua_gethookcount,T.exports.lua_gethookmask=I.lua_gethookmask,T.exports.lua_geti=N.lua_geti,T.exports.lua_getinfo=I.lua_getinfo,T.exports.lua_getlocal=I.lua_getlocal,T.exports.lua_getmetatable=N.lua_getmetatable,T.exports.lua_getstack=I.lua_getstack,T.exports.lua_gettable=N.lua_gettable,T.exports.lua_gettop=N.lua_gettop,T.exports.lua_getupvalue=N.lua_getupvalue,T.exports.lua_getuservalue=N.lua_getuservalue,T.exports.lua_insert=N.lua_insert,T.exports.lua_isboolean=N.lua_isboolean,T.exports.lua_iscfunction=N.lua_iscfunction,T.exports.lua_isfunction=N.lua_isfunction,T.exports.lua_isinteger=N.lua_isinteger,T.exports.lua_isnil=N.lua_isnil,T.exports.lua_isnone=N.lua_isnone,T.exports.lua_isnoneornil=N.lua_isnoneornil,T.exports.lua_isnumber=N.lua_isnumber,T.exports.lua_isstring=N.lua_isstring,T.exports.lua_istable=N.lua_istable,T.exports.lua_isthread=N.lua_isthread,T.exports.lua_isuserdata=N.lua_isuserdata,T.exports.lua_isyieldable=M.lua_isyieldable,T.exports.lua_len=N.lua_len,T.exports.lua_load=N.lua_load,T.exports.lua_newstate=P.lua_newstate,T.exports.lua_newtable=N.lua_newtable,T.exports.lua_newthread=P.lua_newthread,T.exports.lua_newuserdata=N.lua_newuserdata,T.exports.lua_next=N.lua_next,T.exports.lua_pcall=N.lua_pcall,T.exports.lua_pcallk=N.lua_pcallk,T.exports.lua_pop=N.lua_pop,T.exports.lua_pushboolean=N.lua_pushboolean,T.exports.lua_pushcclosure=N.lua_pushcclosure,T.exports.lua_pushcfunction=N.lua_pushcfunction,T.exports.lua_pushglobaltable=N.lua_pushglobaltable,T.exports.lua_pushinteger=N.lua_pushinteger,T.exports.lua_pushjsclosure=N.lua_pushjsclosure,T.exports.lua_pushjsfunction=N.lua_pushjsfunction,T.exports.lua_pushlightuserdata=N.lua_pushlightuserdata,T.exports.lua_pushliteral=N.lua_pushliteral,T.exports.lua_pushlstring=N.lua_pushlstring,T.exports.lua_pushnil=N.lua_pushnil,T.exports.lua_pushnumber=N.lua_pushnumber,T.exports.lua_pushstring=N.lua_pushstring,T.exports.lua_pushfstring=N.lua_pushfstring,T.exports.lua_pushvfstring=N.lua_pushvfstring,T.exports.lua_pushthread=N.lua_pushthread,T.exports.lua_pushvalue=N.lua_pushvalue,T.exports.lua_rawequal=N.lua_rawequal,T.exports.lua_rawget=N.lua_rawget,T.exports.lua_rawgeti=N.lua_rawgeti,T.exports.lua_rawgetp=N.lua_rawgetp,T.exports.lua_rawlen=N.lua_rawlen,T.exports.lua_rawseti=N.lua_rawseti,T.exports.lua_rawset=N.lua_rawset,T.exports.lua_rawsetp=N.lua_rawsetp,T.exports.lua_remove=N.lua_remove,T.exports.lua_replace=N.lua_replace,T.exports.lua_resume=M.lua_resume,T.exports.lua_rotate=N.lua_rotate,T.exports.lua_setfield=N.lua_setfield,T.exports.lua_setglobal=N.lua_setglobal,T.exports.lua_sethook=I.lua_sethook,T.exports.lua_seti=N.lua_seti,T.exports.lua_setlocal=I.lua_setlocal,T.exports.lua_setmetatable=N.lua_setmetatable,T.exports.lua_settable=N.lua_settable,T.exports.lua_settop=N.lua_settop,T.exports.lua_setupvalue=N.lua_setupvalue,T.exports.lua_setuservalue=N.lua_setuservalue,T.exports.lua_status=N.lua_status,T.exports.lua_stringtonumber=N.lua_stringtonumber,T.exports.lua_toboolean=N.lua_toboolean,T.exports.lua_todataview=N.lua_todataview,T.exports.lua_tointeger=N.lua_tointeger,T.exports.lua_tointegerx=N.lua_tointegerx,T.exports.lua_tojsstring=N.lua_tojsstring,T.exports.lua_toljsstring=N.lua_toljsstring,T.exports.lua_tolstring=N.lua_tolstring,T.exports.lua_tonumber=N.lua_tonumber,T.exports.lua_topointer=N.lua_topointer,T.exports.lua_tostring=N.lua_tostring,T.exports.lua_tothread=N.lua_tothread,T.exports.lua_touserdata=N.lua_touserdata,T.exports.lua_type=N.lua_type,T.exports.lua_typename=N.lua_typename,T.exports.lua_upvalueid=N.lua_upvalueid,T.exports.lua_upvaluejoin=N.lua_upvaluejoin,T.exports.lua_version=N.lua_version,T.exports.lua_xmove=N.lua_xmove,T.exports.lua_yield=M.lua_yield,T.exports.lua_yieldk=M.lua_yieldk},function(T){T.exports=function(){throw new Error('define cannot be used indirect')}},function(T){'use strict';T.exports.LUAI_MAXCCALLS=200,T.exports.LUA_MAXINTEGER=2147483647,T.exports.LUA_MININTEGER=-2147483648,T.exports.MAX_INT=2147483647,T.exports.MIN_INT=-2147483648},function(T,O,U){'use strict';const E=U(0),N=U(1),I=U(25),M=U(8),P=U(7),K=U(12),V=U(17),G=U(4),F=N.constant_types,H=N.char;class Y{constructor(ke,ve){this.type=ke,this.value=ve}ttype(){return 63&this.type}ttnov(){return 15&this.type}checktag(ke){return this.type===ke}checktype(ke){return this.ttnov()===ke}ttisnumber(){return this.checktype(F.LUA_TNUMBER)}ttisfloat(){return this.checktag(F.LUA_TNUMFLT)}ttisinteger(){return this.checktag(F.LUA_TNUMINT)}ttisnil(){return this.checktag(F.LUA_TNIL)}ttisboolean(){return this.checktag(F.LUA_TBOOLEAN)}ttislightuserdata(){return this.checktag(F.LUA_TLIGHTUSERDATA)}ttisstring(){return this.checktype(F.LUA_TSTRING)}ttisshrstring(){return this.checktag(F.LUA_TSHRSTR)}ttislngstring(){return this.checktag(F.LUA_TLNGSTR)}ttistable(){return this.checktag(F.LUA_TTABLE)}ttisfunction(){return this.checktype(F.LUA_TFUNCTION)}ttisclosure(){return(31&this.type)===F.LUA_TFUNCTION}ttisCclosure(){return this.checktag(F.LUA_TCCL)}ttisLclosure(){return this.checktag(F.LUA_TLCL)}ttislcf(){return this.checktag(F.LUA_TLCF)}ttisfulluserdata(){return this.checktag(F.LUA_TUSERDATA)}ttisthread(){return this.checktag(F.LUA_TTHREAD)}ttisdeadkey(){return this.checktag(F.LUA_TDEADKEY)}l_isfalse(){return this.ttisnil()||this.ttisboolean()&&!1===this.value}setfltvalue(ke){this.type=F.LUA_TNUMFLT,this.value=ke}setivalue(ke){this.type=F.LUA_TNUMINT,this.value=ke}setnilvalue(){this.type=F.LUA_TNIL,this.value=void 0}setfvalue(ke){this.type=F.LUA_TLCF,this.value=ke}setpvalue(ke){this.type=F.LUA_TLIGHTUSERDATA,this.value=ke}setbvalue(ke){this.type=F.LUA_TBOOLEAN,this.value=ke}sethvalue(ke){this.type=F.LUA_TTABLE,this.value=ke}setfrom(ke){this.type=ke.type,this.value=ke.value}tsvalue(){return E(this.ttisstring()),this.value}svalue(){return this.tsvalue().getstr()}vslen(){return this.tsvalue().tsslen()}jsstring(ke,ve){return N.to_jsstring(this.svalue(),ke,ve)}}const J=new Y(F.LUA_TNIL,null);T.exports.luaO_nilobject=J;const Q=N.to_luastring('...',!0),$=N.to_luastring('[string "'),ee=N.to_luastring('"]'),ae=function(ke){return I.lisdigit(ke)?ke-H[0]:_StringfromCharCode(ke).toLowerCase().charCodeAt(0)-H.a+10},ue=8,oe=function(ke){let ve=H[K.lua_getlocaledecpoint()],Re=0,be=0,Se=0,Ne=0,Ce=!1,Ie;for(;I.lisspace(ke[0]);)ke=ke.slice(1);if(Ie=ke[0]===H['-'],ke=Ie||ke[0]===H['+']?ke.slice(1):ke,ke[0]!==H[0]||ke[1]!==H.x&&ke[1]!==H.X)return 0;for(ke=ke.slice(2);;ke=ke.slice(1))if(ke[0]===ve){if(Ce)break;else Ce=!0;}else if(I.lisxdigit(ke[0]))0==be&&ke[0]===H[0]?Se++:30>=++be?Re=16*Re+ae(ke[0]):Ne++,Ce&&Ne--;else break;if(0==Se+be)return 0;if(Ne*=4,ke[0]===H.p||ke[0]===H.P){let Me=0,Pe;if(ke=ke.slice(1),Pe=ke[0]===H['-'],ke=Pe||ke[0]===H['+']?ke.slice(1):ke,!I.lisdigit(ke[0]))return 0;for(;I.lisdigit(ke[0]);)Me=10*Me+ke[0]-H[0],ke=ke.slice(1);Pe&&(Me=-Me),Ne+=Me}return Ie&&(Re=-Re),0>N.to_jsstring(ke).trim().search(/s/)?K.ldexp(Re,Ne):null},_e=function(ke,ve){let Re='x'===ve?oe(ke):parseFloat(N.to_jsstring(ke));return isNaN(Re)?null:Re},pe=function(ke){let ve=/[.xXnN]/g.exec(_StringfromCharCode(...ke));ve=ve?ve.index:null;let Re=ve?ke[ve]:null,be=Re?_StringfromCharCode(Re).toLowerCase():0;if('n'===be)return null;let Se=_e(ke,be);return null===Se,Se},ce=G.MAX_INT/10,de=G.MAX_INT%10,Le=function(ke){let ve=0,Re=!0,be;for(;I.lisspace(ke[0]);)ke=ke.slice(1);if(be=ke[0]===H['-'],(be||ke[0]===H['+'])&&(ke=ke.slice(1)),ke[0]===H[0]&&(ke[1]===H.x||ke[1]===H.X))for(ke=ke.slice(2);I.lisxdigit(ke[0]);ke=ke.slice(1))ve=16*ve+ae(ke[0]),Re=!1;else for(;I.lisdigit(ke[0]);ke=ke.slice(1)){let Se=ke[0]-H[0];if(ve>=ce&&(ve>ce||Se>de+be))return null;ve=10*ve+Se,Re=!1}for(;I.lisspace(ke[0]);)ke=ke.slice(1);return Re||0',!0),Me);break;case H.d:case H.I:case H.f:Te(ke,N.to_luastring(''+Re[Ne++]));break;case H.U:Te(ke,N.to_luastring(String.fromCodePoint(Re[Ne++])));break;case H['%']:Te(ke,[H['%']]);break;default:M.luaG_runerror(ke,N.to_luastring('invalid option \'%%%c\' to \'lua_pushfstring\''),ve[Ie+1]);}be+=2,Se=Ie+2}return Te(ke,ve.slice(Se)),0>be:ve===N.LUA_OPUNM?0|0-Re:ve===N.LUA_OPBNOT?-1^Re:void 0},T.exports.luaO_chunkid=function(ke,ve){ke=ke instanceof Y?ke.value:ke,ve=ve instanceof Y?ve.value:ve;let Re=ke.length,be=[];if(ke[0]===H['='])be=Reve&&(Re=ve),be=be.concat(ke).concat(Q)),be=be.concat(ee)}return be},T.exports.luaO_hexavalue=ae,T.exports.luaO_int2fb=function(ke){let ve=0;if(8>ke)return ke;for(;128<=ke;)ke=ke+15>>4,ve+=4;for(;16<=ke;)ke=ke+1>>1,ve++;return ve+1<<3|ke-8},T.exports.luaO_pushfstring=Oe,T.exports.luaO_pushvfstring=he,T.exports.luaO_str2num=function(ke){let ve=Le(ke);return null===ve?(ve=pe(ke),null!=ve&&new Y(F.LUA_TNUMFLT,ve)):new Y(F.LUA_TNUMINT,ve)},T.exports.luaO_utf8desc=function(ke,ve){let Re=1;if(E(1114111>=ve),128>ve)ke[ue-1]=ve;else{let be=63;do ke[ue-Re++]=128|63&ve,ve>>=6,be>>=1;while(ve>be);ke[ue-Re]=~be<<1|ve}return Re},T.exports.luaO_utf8esc=function(ke){let ve=[],Re=1;if(E(1114111>=ke),128>ke)ve[ue-1]=ke;else{let be=63;do ve[ue-Re++]=128|63&ke,ke>>=6,be>>=1;while(ke>be);ve[ue-Re]=~be<<1|ke}return{buff:ve,n:Re}},T.exports.numarith=function(ke,ve,Re,be){return ve===N.LUA_OPADD?Re+be:ve===N.LUA_OPSUB?Re-be:ve===N.LUA_OPMUL?Re*be:ve===N.LUA_OPDIV?Re/be:ve===N.LUA_OPPOW?_Mathpow(Re,be):ve===N.LUA_OPIDIV?Re/be:ve===N.LUA_OPUNM?-Re:ve===N.LUA_OPMOD?Re%be:void 0}},function(T,O,U){'use strict';(function(E){const N=U(2),I=U(51),M='_LOADED',K=N.to_luastring('FILE*',!0),G=10,F=11,H=function(et,at,lt){if(0===lt||!N.lua_istable(et,-1))return 0;for(N.lua_pushnil(et);N.lua_next(et,-2);){if(N.lua_type(et,-2)===N.LUA_TSTRING){if(N.lua_rawequal(et,at,-1))return N.lua_pop(et,1),1;if(H(et,at,lt-1))return N.lua_remove(et,-2),N.lua_pushliteral(et,'.'),N.lua_insert(et,-2),N.lua_concat(et,3),1}N.lua_pop(et,1)}return 0},Y=function(et,at){let lt=N.lua_gettop(et);if(N.lua_getinfo(et,['f'.charCodeAt(0)],at),N.lua_getfield(et,N.LUA_REGISTRYINDEX,N.to_luastring(M,!0)),H(et,lt+1,2)){let ut=N.lua_tostring(et,-1);return N.to_jsstring(ut).startsWith('_G.')&&(N.lua_pushstring(et,ut.slice(3)),N.lua_remove(et,-2)),N.lua_copy(et,-1,lt+1),N.lua_pop(et,2),1}return N.lua_settop(et,lt),0},J=function(et,at){Y(et,at)?(N.lua_pushfstring(et,N.to_luastring('function \'%s\''),N.lua_tostring(et,-1)),N.lua_remove(et,-2)):at.namewhat?N.lua_pushfstring(et,N.to_luastring('%s \'%s\''),at.namewhat,at.name):at.what&&at.what[0]==='m'.charCodeAt(0)?N.lua_pushliteral(et,'main chunk'):at.what&&at.what[0]!='C'.charCodeAt(0)?N.lua_pushfstring(et,N.to_luastring('function <%s:%d>'),at.short_src,at.linedefined):N.lua_pushliteral(et,'?')},q=function(et){let at=new N.lua_Debug,lt=1,ut=1;for(;N.lua_getstack(et,ut,at);)lt=ut,ut*=2;for(;lt=N.lua_type(et,at)?lt:Oe(et,at)},Ee=function(et,at){N.lua_isnumber(et,at)?Q(et,at,N.to_luastring('number has no integer representation',!0)):ce(et,at,N.LUA_TNUMBER)},ve=function(et,at){let lt=N.lua_tointeger(et,at);return!1===lt&&Ee(et,at),lt},Se=function(et,at){at.L=et,at.b=[]},Ie=function(et,at,lt){et.b=et.b.concat(at.slice(0,lt))},Ce=Ie,De=function(et,at,lt,ut){return 0>=N.lua_type(et,lt)?ut:at(et,lt)},Ke=function(et,at){let lt=at.string;return at.string=null,lt},Be=function(et,at,lt,ut,rt){return N.lua_load(et,Ke,{string:at},ut,rt)},Ve=function(et,at,lt,ut){return Be(et,at,lt,ut,null)},Ge=function(et,at){return Ve(et,at,at.length,at)},Fe=function(et,at,lt){if(!N.lua_getmetatable(et,at))return N.LUA_TNIL;N.lua_pushstring(et,lt);let ut=N.lua_rawget(et,-2);return ut===N.LUA_TNIL&&N.lua_pop(et,2),ut},Xe=function(et,at,lt){return(at=N.lua_absindex(et,at),Fe(et,at,lt)!==N.LUA_TNIL)&&(N.lua_pushvalue(et,at),N.lua_call(et,1,1),!0)},Ye=function(et,at,lt){var ut=lt>>>0,rt=at.length,st=et.length+1-rt;loop:for(;ut_t?ot.toExponential():ot.toPrecision(16).replace(/(\.[0-9][1-9]*)0+$/,'$1'),N.lua_pushstring(et,N.to_luastring(it))}break}case N.LUA_TSTRING:N.lua_pushvalue(et,at);break;case N.LUA_TBOOLEAN:N.lua_pushliteral(et,N.lua_toboolean(et,at)?'true':'false');break;case N.LUA_TNIL:N.lua_pushliteral(et,'nil');break;default:let ut=Fe(et,at,N.to_luastring('__name',!0)),rt=ut===N.LUA_TSTRING?N.lua_tostring(et,-1):Le(et,at),st=N.lua_topointer(et,at),nt;switch(lt){case N.LUA_TLIGHTUSERDATA:nt='';break;case N.LUA_TFUNCTION:if('function'==typeof st){nt='';break}case N.LUA_TTABLE:case N.LUA_TTHREAD:case N.LUA_TUSERDATA:nt=`0x${st.id.toString(16)}`;break;default:throw Error('unhandled type: '+lt);}N.lua_pushstring(et,N.to_luastring(`${N.to_jsstring(rt)}: ${nt}`)),ut!==N.LUA_TNIL&&N.lua_remove(et,-2);}}return N.lua_tolstring(et,-1)},T.exports.luaL_traceback=function(et,at,lt,ut){let rt=new N.lua_Debug,st=N.lua_gettop(et),nt=q(at),ot=nt-ut>G+F?G:-1;for(lt&&N.lua_pushstring(et,lt.concat('\n'.charCodeAt(0))),Ze(et,10,null),N.lua_pushliteral(et,'stack traceback:');N.lua_getstack(at,ut++,rt);)0==ot--?(N.lua_pushliteral(et,'\n\t...'),ut=nt-F+1):(N.lua_getinfo(at,N.to_luastring('Slnt',!0),rt),N.lua_pushstring(et,['\n'.charCodeAt(0),'\t'.charCodeAt(0)].concat(rt.short_src).concat([':'.charCodeAt(0)])),0`${Y}|`).join('')},V=function(H,Y){return new I(H,Y)};T.exports.luaS_eqlngstr=function(H,Y){return E(H instanceof I),E(Y instanceof I),H==Y||H.realstring.length==Y.realstring.length&&H.realstring.join()==Y.realstring.join()},T.exports.luaS_hash=P,T.exports.luaS_hashlongstr=function(H){return E(H instanceof I),null===H.hash&&(H.hash=P(H.getstr())),H.hash},T.exports.luaS_bless=V,T.exports.luaS_new=function(H,Y){return V(H,Y.slice(0))},T.exports.luaS_newliteral=function(H,Y){return V(H,N.to_luastring(Y))},T.exports.TString=I},function(T,O,U){'use strict';const E=U(0),N=U(1),I=U(9),M=U(11),P=U(5),K=U(20),V=U(15),G=U(10),F=U(16),H=U(12),Y=U(17),J=P.TValue,q=N.constant_types,W=N.thread_status,Z=function(De){return De.func.value.p.lineinfo?De.func.value.p.lineinfo[De.pcOff-1]:-1},Q=function(De){if(De.status===W.LUA_YIELD){let Ke=De.ci,Be=Ke.funcOff;Ke.func=De.stack[Ke.extra],Ke.funcOff=Ke.extra,Ke.extra=Be}},se=function(De,Ke){E(Ke=De.l_base-De.funcOff-Be?null:{pos:De.funcOff+Be+Ke,name:N.to_luastring('(*vararg)',!0)}},oe=function(De,Ke,Be){let Ge=null,Ve;if(Ke.callstatus&V.CIST_LUA){if(0>Be)return ne(Ke,-Be);Ve=Ke.l_base,Ge=M.luaF_getlocalname(Ke.func.value.p,Be,Ke.pcOff)}else Ve=Ke.funcOff+1;if(null===Ge){let we=Ke===De.ci?De.top:Ke.next.func;if(we-Ve>=Be&&0=He+2&&(Ve=he(we,Ge));break}case'OP_CALL':case'OP_TAILCALL':{Be>=He&&(Ve=he(we,Ge));break}case'OP_JMP':{let je=Fe.sBx,ze=we+1+je;weGe&&(Ge=ze);break}default:K.testAMode(Fe.opcode)&&Be===He&&(Ve=he(we,Ge));}}return Ve},xe=function(De,Ke,Be){let Ve={name:M.luaF_getlocalname(De,Be+1,Ke),funcname:null};if(Ve.name)return Ve.funcname=N.to_luastring('local',!0),Ve;let Ge=Oe(De,Ke,Be);if(-1!==Ge){let we=De.code[Ge],Fe=K.OpCodes[we.opcode];switch(Fe){case'OP_MOVE':{let Xe=we.B;if(Xe'.charCodeAt(0)?(we=null,Xe=De.top-1,Fe=De.stack[Xe],E(De,Fe.ttisfunction(),'function expected'),Ke=Ke.slice(1),De.top--):(we=Be.i_ci,Fe=we.func,Xe=we.funcOff,E(we.func.ttisfunction())),Ge=Fe.ttisclosure()?Fe.value:null,Ve=ge(De,Ke,Be,Ge,we),0<=Ke.indexOf('f'.charCodeAt(0))&&(De.stack[De.top++]=Fe,E(De.top<=De.ci.top,'stack overflow')),Q(De),0<=Ke.indexOf('L'.charCodeAt(0))&&de(De,Ge),Ve},T.exports.lua_getlocal=function(De,Ke,Be){let Ve;if(Q(De),null===Ke)Ve=De.stack[De.top-1].ttisLclosure()?M.luaF_getlocalname(De.stack[De.top-1].value.p,Be,0):null;else{let Ge=oe(De,Ke.i_ci,Be);if(Ge){Ve=Ge.name;let we=De.stack[Ge.pos];De.stack[De.top++]=new J(we.type,we.value)}else Ve=null}return Q(De),Ve},T.exports.lua_getstack=function(De,Ke,Be){let Ve,Ge;if(0>Ke)return 0;for(Ve=De.ci;0Ce;ye--)Ie.stack[ye]=Ie.stack[ye-1];Ie.top++,Ie.stack[Ce]=new G.TValue(Pe.type,Pe.value)},oe=function(Ie){Ie.nCcalls===V.LUAI_MAXCCALLS?M.luaG_runerror(Ie,'JS stack overflow'):Ie.nCcalls>=V.LUAI_MAXCCALLS+(V.LUAI_MAXCCALLS>>3)&&pe(Ie,Q.LUA_ERRERR)},_e=function(Ie,Ce,Me){++Ie.nCcalls>=V.LUAI_MAXCCALLS&&oe(Ie),ee(Ie,Ce,Me)||W.luaV_execute(Ie),Ie.nCcalls--},pe=function(Ie,Ce){if(Ie.errorJmp)throw Ie.errorJmp.status=Ce,Ie.errorJmp;else{let Me=Ie.l_G;if(Ie.status=Ce,Me.mainthread.errorJmp)Me.mainthread.stack[Me.mainthread.top++]=Ie.stack[Ie.top-1],pe(Me.mainthread,Ce);else throw Me.panic&&($(Ie,Ce,Ie.top),Ie.ci.top=V.LUAI_MAXCCALLS)return Te(Ie,'JS stack overflow',Me);Ie.nny=0,E((Ie.status===Q.LUA_OK?Me+1:Me)Q.LUA_YIELD&&Ae(Ie,ye);)ye=ce(Ie,Le,ye);ye>Q.LUA_YIELD?(Ie.status=ye,$(Ie,ye,Ie.top),Ie.ci.top=Ie.top):E(ye===Ie.status)}return Ie.nny=Pe,Ie.nCcalls--,E(Ie.nCcalls===(Ce?Ce.nCcalls:0)),ye},T.exports.lua_yield=function(Ie,Ce){Ue(Ie,Ce,0,null)},T.exports.lua_yieldk=Ue,T.exports.moveresults=ae,T.exports.stackerror=oe,T.exports.tryfuncTM=ne},function(T,O,U){'use strict';const E=U(0),N=U(1),I=U(8),M=U(5),P=U(7),K=N.constant_types,V=function(ae){switch(ae.type){case K.LUA_TBOOLEAN:case K.LUA_TLIGHTUSERDATA:case K.LUA_TNUMFLT:case K.LUA_TNUMINT:case K.LUA_TTABLE:case K.LUA_TLCL:case K.LUA_TLCF:case K.LUA_TCCL:case K.LUA_TUSERDATA:case K.LUA_TTHREAD:return ae.value;case K.LUA_TSHRSTR:case K.LUA_TLNGSTR:return P.luaS_hashlongstr(ae.tsvalue());default:throw new Error('unknown key type: '+ae.type);}};class G{constructor(ae){this.id=ae.l_G.id_counter++,this.strong=new Map,this.metatable=null}}const H=function(ae,ue){let se=ae.strong.get(ue);return se?se.value:M.luaO_nilobject},Y=function(ae,ue){return E('number'==typeof ue&&(0|ue)===ue),H(ae,ue)},W=function(ae,ue,se){let ne=ae.strong.get(ue);if(ne)return ne.value;let oe=new M.TValue(K.LUA_TNIL,null);return ae.strong.set(ue,{key:se,value:oe}),oe};T.exports.luaH_delete=function(ae,ue){E(ue instanceof M.TValue);let se=V(ue);ae.strong.delete(se)},T.exports.luaH_get=function(ae,ue){return E(ue instanceof M.TValue),ue.ttisnil()?M.luaO_nilobject:H(ae,V(ue))},T.exports.luaH_getint=Y,T.exports.luaH_getn=function(ae){let ue=0,se=ae.strong.size+1;for(;1=q;){if(Z=W,E(Z.isopen()),Z.v===q)return Z;W=Z.open_next}let Q=new K;return Z&&(Q.open_next=Z),J.openupval=Q,Q.L=J,Q.v=q,Q},T.exports.luaF_close=function(J,q){for(;null!==J.openupval&&J.openupval.v>=q;){let W=J.openupval;if(E(W.isopen()),J.openupval=W.open_next,0>>20;0==W&&(q.setFloat64(0,18446744073709552000*J),W=(2047&q.getUint32(0)>>>20)-64);var Z=W-1022,Q=Y(J,-Z);return[Q,Z]},T.exports.ldexp=Y,T.exports.LUAI_MAXSTACK=1e6,T.exports.LUA_IDSIZE=60,T.exports.LUA_INTEGER_FMT=V,T.exports.LUA_INTEGER_FRMLEN=P,T.exports.LUA_NUMBER_FMT='%.14g',T.exports.LUA_NUMBER_FRMLEN='',T.exports.lua_getlocaledecpoint=function(){return 1.1.toLocaleString().substring(1,2)},T.exports.lua_numbertointeger=function(J){return J>=E.MIN_INT&&J<-E.MIN_INT?J:0}},function(T,O){(function(U){T.exports=U}).call(O,{})},function(T){T.exports=function(U){return U.webpackPolyfill||(U.deprecate=function(){},U.paths=[],!U.children&&(U.children=[]),Object.defineProperty(U,'loaded',{enumerable:!0,get:function(){return U.l}}),Object.defineProperty(U,'id',{enumerable:!0,get:function(){return U.i}}),U.webpackPolyfill=1),U}},function(T,O,U){'use strict';const E=U(0),N=U(1),I=U(5),M=U(9),P=U(21),K=U(10),V=U(11),G=U(16),F=N.constant_types,H=N.thread_status,Y=N.LUA_NUMTAGS,J=2*N.LUA_MINSTACK;class q{constructor(oe,_e,pe,ce,de,Le){this.func=_e,this.funcOff=oe,this.top=pe,this.previous=de,this.next=Le,this.pcOff=0,this.l_base=ce,this.l_savedpc=[],this.c_k=null,this.c_old_errfunc=null,this.c_ctx=null,this.nresults=0,this.callstatus=0}}class W{constructor(){this.id=null,this.base_ci=new q,this.top=0,this.ci=null,this.ciOff=null,this.stack=[],this.openupval=null,this.status=H.LUA_OK,this.next=null,this.errorJmp=null,this.nny=1,this.errfunc=0}}class Z{constructor(oe){this.id_counter=0,this.mainthread=oe,this.l_registry=new I.TValue(F.LUA_TNIL,null),this.panic=null,this.version=null,this.tmname=Array(G.TMS.TM_N),this.mt=Array(Y)}}const Q=function(oe){oe.stack=Array(J),oe.top=0;let pe=oe.base_ci;pe.next=pe.previous=null,pe.callstatus=0,pe.func=oe.stack[oe.top],pe.funcOff=oe.top,oe.stack[oe.top++]=new I.TValue(F.LUA_TNIL,null),pe.top=oe.top+N.LUA_MINSTACK,oe.ci=pe},$=function(oe,_e){let pe=K.luaH_new(oe);_e.l_registry.sethvalue(pe),K.luaH_setint(pe,N.LUA_RIDX_MAINTHREAD,new I.TValue(F.LUA_TTHREAD,oe)),K.luaH_setint(pe,N.LUA_RIDX_GLOBALS,new I.TValue(F.LUA_TTABLE,K.luaH_new(oe)))},ee=function(oe){let _e=oe.l_G;Q(oe,oe),$(oe,_e),G.luaT_init(oe),_e.version=P.lua_version(null)},te=function(oe,_e){oe.id=_e.id_counter++,oe.l_G=_e,oe.stack=[],oe.ci=null,oe.nci=0,oe.errorJmp=null,oe.nCcalls=0,oe.hook=null,oe.hookmask=0,oe.basehookcount=0,oe.allowhook=1,oe.hookcount=oe.basehookcount,oe.openupval=null,oe.nny=1,oe.status=H.LUA_OK,oe.errfunc=0},se=function(oe){V.luaF_close(oe,oe.stack)};T.exports.lua_State=W,T.exports.CallInfo=q,T.exports.CIST_OAH=1,T.exports.CIST_LUA=2,T.exports.CIST_HOOKED=4,T.exports.CIST_FRESH=8,T.exports.CIST_YPCALL=16,T.exports.CIST_TAIL=32,T.exports.CIST_HOOKYIELD=64,T.exports.CIST_LEQ=128,T.exports.CIST_FIN=256,T.exports.lua_close=function(oe){oe=oe.l_G.mainthread,se(oe)},T.exports.lua_newstate=function(){let oe=new W,_e=new Z(oe);return te(oe,_e),M.luaD_rawrunprotected(oe,ee,null)!==H.LUA_OK&&(oe=null),oe},T.exports.lua_newthread=function(oe){let _e=oe.l_G,pe=new W;return oe.stack[oe.top++]=new I.TValue(F.LUA_TTHREAD,pe),E(oe.top<=oe.ci.top,'stack overflow'),te(pe,_e),pe.hookmask=oe.hookmask,pe.basehookcount=oe.basehookcount,pe.hook=oe.hook,pe.hookcount=pe.basehookcount,Q(pe,oe),pe}},function(T,O,U){'use strict';const E=U(0),N=U(1),I=U(5),M=U(9),P=U(15),K=U(7),V=U(10),G=U(8),F=U(17),H=N.constant_types,Y=['no value','nil','boolean','userdata','number','string','table','function','userdata','thread','proto'].map((ue)=>N.to_luastring(ue)),J=function(ue){return Y[ue+1]},q={TM_INDEX:0,TM_NEWINDEX:1,TM_GC:2,TM_MODE:3,TM_LEN:4,TM_EQ:5,TM_ADD:6,TM_SUB:7,TM_MUL:8,TM_MOD:9,TM_POW:10,TM_DIV:11,TM_IDIV:12,TM_BAND:13,TM_BOR:14,TM_BXOR:15,TM_SHL:16,TM_SHR:17,TM_UNM:18,TM_BNOT:19,TM_LT:20,TM_LE:21,TM_CONCAT:22,TM_CALL:23,TM_N:24},Q=function(ue,se,ne,oe,_e,pe){let ce=_e,de=ue.top;ue.stack[ue.top]=new I.TValue(se.type,se.value),ue.stack[ue.top+1]=new I.TValue(ne.type,ne.value),ue.stack[ue.top+2]=new I.TValue(oe.type,oe.value),ue.top+=3,pe||(ue.stack[ue.top++]=new I.TValue(_e.type,_e.value)),ue.ci.callstatus&P.CIST_LUA?M.luaD_call(ue,de,pe):M.luaD_callnoyield(ue,de,pe),pe&&(E('number'==typeof ce),ue.stack[ce]=ue.stack[--ue.top])},$=function(ue,se,ne,oe,_e){let pe=ae(ue,se,_e);return(pe.ttisnil()&&(pe=ae(ue,ne,_e)),!pe.ttisnil())&&(Q(ue,pe,se,ne,oe,1),!0)},ae=function(ue,se,ne){let oe;switch(se.ttnov()){case H.LUA_TTABLE:case H.LUA_TUSERDATA:oe=se.value.metatable;break;default:oe=ue.l_G.mt[se.ttnov()];}return oe?V.luaH_getstr(oe,ue.l_G.tmname[ne]):I.luaO_nilobject};T.exports.TMS=q,T.exports.luaT_callTM=Q,T.exports.luaT_callbinTM=$,T.exports.luaT_trybinTM=function(ue,se,ne,oe,_e){if(!$(ue,se,ne,oe,_e))switch(_e){case q.TM_CONCAT:G.luaG_concaterror(ue,se,ne);case q.TM_BAND:case q.TM_BOR:case q.TM_BXOR:case q.TM_SHL:case q.TM_SHR:case q.TM_BNOT:{let pe=F.tonumber(se),ce=F.tonumber(ne);!1!==pe&&!1!==ce?G.luaG_tointerror(ue,se,ne):G.luaG_opinterror(ue,se,ne,N.to_luastring('perform bitwise operation on',!0))}default:G.luaG_opinterror(ue,se,ne,N.to_luastring('perform arithmetic on',!0));}},T.exports.luaT_callorderTM=function(ue,se,ne,oe){return $(ue,se,ne,ue.top,oe)?ue.stack[ue.top].l_isfalse()?0:1:-1},T.exports.luaT_gettmbyobj=ae,T.exports.luaT_init=function(ue){ue.l_G.tmname[q.TM_INDEX]=new K.luaS_new(ue,N.to_luastring('__index',!0)),ue.l_G.tmname[q.TM_NEWINDEX]=new K.luaS_new(ue,N.to_luastring('__newindex',!0)),ue.l_G.tmname[q.TM_GC]=new K.luaS_new(ue,N.to_luastring('__gc',!0)),ue.l_G.tmname[q.TM_MODE]=new K.luaS_new(ue,N.to_luastring('__mode',!0)),ue.l_G.tmname[q.TM_LEN]=new K.luaS_new(ue,N.to_luastring('__len',!0)),ue.l_G.tmname[q.TM_EQ]=new K.luaS_new(ue,N.to_luastring('__eq',!0)),ue.l_G.tmname[q.TM_ADD]=new K.luaS_new(ue,N.to_luastring('__add',!0)),ue.l_G.tmname[q.TM_SUB]=new K.luaS_new(ue,N.to_luastring('__sub',!0)),ue.l_G.tmname[q.TM_MUL]=new K.luaS_new(ue,N.to_luastring('__mul',!0)),ue.l_G.tmname[q.TM_MOD]=new K.luaS_new(ue,N.to_luastring('__mod',!0)),ue.l_G.tmname[q.TM_POW]=new K.luaS_new(ue,N.to_luastring('__pow',!0)),ue.l_G.tmname[q.TM_DIV]=new K.luaS_new(ue,N.to_luastring('__div',!0)),ue.l_G.tmname[q.TM_IDIV]=new K.luaS_new(ue,N.to_luastring('__idiv',!0)),ue.l_G.tmname[q.TM_BAND]=new K.luaS_new(ue,N.to_luastring('__band',!0)),ue.l_G.tmname[q.TM_BOR]=new K.luaS_new(ue,N.to_luastring('__bor',!0)),ue.l_G.tmname[q.TM_BXOR]=new K.luaS_new(ue,N.to_luastring('__bxor',!0)),ue.l_G.tmname[q.TM_SHL]=new K.luaS_new(ue,N.to_luastring('__shl',!0)),ue.l_G.tmname[q.TM_SHR]=new K.luaS_new(ue,N.to_luastring('__shr',!0)),ue.l_G.tmname[q.TM_UNM]=new K.luaS_new(ue,N.to_luastring('__unm',!0)),ue.l_G.tmname[q.TM_BNOT]=new K.luaS_new(ue,N.to_luastring('__bnot',!0)),ue.l_G.tmname[q.TM_LT]=new K.luaS_new(ue,N.to_luastring('__lt',!0)),ue.l_G.tmname[q.TM_LE]=new K.luaS_new(ue,N.to_luastring('__le',!0)),ue.l_G.tmname[q.TM_CONCAT]=new K.luaS_new(ue,N.to_luastring('__concat',!0)),ue.l_G.tmname[q.TM_CALL]=new K.luaS_new(ue,N.to_luastring('__call',!0))},T.exports.luaT_objtypename=function(ue,se){let ne;if(se.ttistable()&&null!==(ne=se.value.metatable)||se.ttisfulluserdata()&&null!==(ne=se.value.metatable)){let oe=V.luaH_getstr(ne,N.to_luastring('__name',!0));if(oe.ttisstring())return oe.svalue()}return J(se.ttnov())},T.exports.ttypename=J},function(T,O,U){'use strict';const E=U(0),N=U(1),I=U(20),M=U(12),P=U(5),K=U(11),V=U(15),G=U(7),F=U(4),H=U(9),Y=U(16),J=U(10),q=U(8),W=N.constant_types,Z=N.LUA_MULTRET,$=function(Pe,ye,De){return ye+De.A},ee=function(Pe,ye,De){return ye+De.B},ae=function(Pe,ye,De,Ke){return I.ISK(Ke.B)?De[I.INDEXK(Ke.B)]:Pe.stack[ye+Ke.B]},ue=function(Pe,ye,De,Ke){return I.ISK(Ke.C)?De[I.INDEXK(Ke.C)]:Pe.stack[ye+Ke.C]},ne=function(Pe,ye,De,Ke){let Be=De.A;0!==Be&&K.luaF_close(Pe,ye.l_base+Be-1),ye.pcOff+=De.sBx+Ke},oe=function(Pe,ye){ne(Pe,ye,ye.l_savedpc[ye.pcOff],1)},_e=function(Pe,ye,De){if(ye.ttisnumber()&&De.ttisnumber())return he(ye,De)?1:0;if(ye.ttisstring()&&De.ttisstring())return 0>Ee(ye.tsvalue(),De.tsvalue())?1:0;let Ke=Y.luaT_callorderTM(Pe,ye,De,Y.TMS.TM_LT);return 0>Ke&&q.luaG_ordererror(Pe,ye,De),Ke?1:0},pe=function(Pe,ye,De){let Ke;return ye.ttisnumber()&&De.ttisnumber()?Oe(ye,De)?1:0:ye.ttisstring()&&De.ttisstring()?0>=Ee(ye.tsvalue(),De.tsvalue())?1:0:(Ke=Y.luaT_callorderTM(Pe,ye,De,Y.TMS.TM_LE),0<=Ke)?Ke?1:0:(Pe.ci.callstatus|=V.CIST_LEQ,Ke=Y.luaT_callorderTM(Pe,ye,De,Y.TMS.TM_LT),Pe.ci.callstatus^=V.CIST_LEQ,0>Ke&&q.luaG_ordererror(Pe,ye,De),1===Ke?0:1)},ce=function(Pe,ye,De){if(ye.ttype()!==De.ttype())return ye.ttnov()!==De.ttnov()||ye.ttnov()!==W.LUA_TNUMBER?0:_Mathfloor(ye.value)===_Mathfloor(De.value)?1:0;let Ke;switch(ye.ttype()){case W.LUA_TNIL:return 1;case W.LUA_TBOOLEAN:return ye.value==De.value?1:0;case W.LUA_TNUMINT:case W.LUA_TNUMFLT:case W.LUA_TLCF:return ye.value===De.value?1:0;case W.LUA_TSHRSTR:case W.LUA_TLNGSTR:return G.luaS_eqlngstr(ye.tsvalue(),De.tsvalue())?1:0;case W.LUA_TLIGHTUSERDATA:case W.LUA_TUSERDATA:case W.LUA_TTABLE:if(ye.value===De.value)return 1;if(null===Pe)return 0;Ke=Y.luaT_gettmbyobj(Pe,ye,Y.TMS.TM_EQ),Ke.ttisnil()&&(Ke=Y.luaT_gettmbyobj(Pe,De,Y.TMS.TM_EQ));break;default:return ye.value===De.value?1:0;}return!Ke||Ke.ttisnil()?0:(Y.luaT_callTM(Pe,Ke,ye,De,Pe.top,1),Pe.stack[Pe.top].l_isfalse()?0:1)},Le=function(Pe,ye){let De=!1,Ke=ge(Pe,0>ye?2:1);if(!1===Ke){let Be=Te(Pe);if(!1===Be)return!1;0ye&&(De=!0)):(Ke=F.LUA_MININTEGER,0<=ye&&(De=!0))}return{casted:!0,stopnow:De,ilimit:Ke}},ge=function(Pe,ye){if(Pe.ttisfloat()){let De=Pe.value,Ke=_Mathfloor(De);if(De!==Ke){if(0===ye)return!1;1=Se&&q.luaG_runerror(Pe,N.to_luastring('\'__index\' chain too long; possible loop',!0)),ye.ttistable()){let Ve=J.luaH_get(ye.value,De);Ve.ttisnil()?Ie(Pe,ye,De,Ke,Ve,Be):Pe.stack[Ke]=new P.TValue(Ve.type,Ve.value)}else Ie(Pe,ye,De,Ke,null,Be)},Ie=function(Pe,ye,De,Ke,Be,Ve){let Ge;if(null===Be)E(!ye.ttistable()),Ge=Y.luaT_gettmbyobj(Pe,ye,Y.TMS.TM_INDEX),Ge.ttisnil()&&q.luaG_typeerror(Pe,ye,N.to_luastring('index',!0));else if(E(Be.ttisnil()),Ge=Y.luaT_gettmbyobj(Pe,ye,Y.TMS.TM_INDEX),Ge.ttisnil())return void(Pe.stack[Ke]=new P.TValue(W.LUA_TNIL,null));return Ge.ttisfunction()?void Y.luaT_callTM(Pe,Ge,ye,De,Ke,1):void Ne(Pe,Ge,De,Ke,Ve+1)},Ce=function(Pe,ye,De,Ke,Be){if(Be=Be?Be:0,Be>=Se&&q.luaG_runerror(Pe,N.to_luastring('\'__newindex\' chain too long; possible loop',!0)),ye.ttistable()){let Ve=J.luaH_set(ye.value,De);Ve.ttisnil()?Me(Pe,ye,De,Ke,Ve,Be):Ve.setfrom(Ke)}else Me(Pe,ye,De,Ke,null,Be)},Me=function(Pe,ye,De,Ke,Be,Ve){let Ge;if(null===Be)Ge=Y.luaT_gettmbyobj(Pe,ye,Y.TMS.TM_NEWINDEX),Ge.ttisnil()&&q.luaG_typeerror(Pe,ye,N.to_luastring('index',!0));else if(E(Be.ttisnil()),Ge=Y.luaT_gettmbyobj(Pe,ye,Y.TMS.TM_NEWINDEX),Ge.ttisnil())return void Be.setfrom(Ke);return Ge.ttisfunction()?void Y.luaT_callTM(Pe,Ge,ye,De,Ke,0):void Ce(Pe,Ge,De,Ke,Ve+1)};T.exports.LEintfloat=xe,T.exports.LEnum=Oe,T.exports.LTintfloat=Ue,T.exports.LTnum=he,T.exports.RA=$,T.exports.RB=ee,T.exports.RC=function(Pe,ye,De){return ye+De.C},T.exports.RKB=ae,T.exports.RKC=ue,T.exports.dojump=ne,T.exports.donextjump=oe,T.exports.forlimit=Le,T.exports.gettable=Ne,T.exports.l_strcmp=Ee,T.exports.luaV_concat=be,T.exports.luaV_equalobj=ce,T.exports.luaV_execute=function(Pe){const ye=I.OpCodesI;let De=Pe.ci;De.callstatus|=V.CIST_FRESH;newframe:for(;;){E(De===Pe.ci);let Ke=De.func.value,Be=Ke.p.k,Ve=De.l_base,Ge=De.l_savedpc[De.pcOff++];Pe.hookmask&(N.LUA_MASKLINE|N.LUA_MASKCOUNT)&&(q.luaG_traceexec(Pe),Ve=De.l_base);let we=$(Pe,Ve,Ge),Fe=Ge.opcode;switch(Fe){case ye.OP_MOVE:{Pe.stack[we]=Pe.stack[ee(Pe,Ve,Ge)];break}case ye.OP_LOADK:{let Xe=Be[Ge.Bx];Pe.stack[we]=new P.TValue(Xe.type,Xe.value);break}case ye.OP_LOADKX:{E(De.l_savedpc[De.pcOff].opcode===ye.OP_EXTRAARG);let Xe=Be[De.l_savedpc[De.pcOff++].Ax];Pe.stack[we]=new P.TValue(Xe.type,Xe.value);break}case ye.OP_LOADBOOL:{Pe.stack[we]=new P.TValue(W.LUA_TBOOLEAN,0!==Ge.B),0!==Ge.C&&De.pcOff++;break}case ye.OP_LOADNIL:{for(let Xe=0;Xe<=Ge.B;Xe++)Pe.stack[we+Xe]=new P.TValue(W.LUA_TNIL,null);break}case ye.OP_GETUPVAL:{let Xe=Ke.upvals[Ge.B].val();Pe.stack[we]=new P.TValue(Xe.type,Xe.value);break}case ye.OP_SETUPVAL:{let Xe=Ke.upvals[Ge.B];null===Xe.v?Xe.value.setfrom(Pe.stack[we]):Xe.L.stack[Xe.v]=Pe.stack[we];break}case ye.OP_GETTABUP:{let Xe=Ke.upvals[Ge.B].val(),He=ue(Pe,Ve,Be,Ge);Ne(Pe,Xe,He,we),Ve=De.l_base;break}case ye.OP_SETTABUP:{let Xe=Ke.upvals[Ge.A].val(),He=ae(Pe,Ve,Be,Ge),je=ue(Pe,Ve,Be,Ge);Ce(Pe,Xe,He,je),Ve=De.l_base;break}case ye.OP_GETTABLE:{let Xe=ae(Pe,Ve,Be,Ge),He=ue(Pe,Ve,Be,Ge);Ne(Pe,Xe,He,we),Ve=De.l_base;break}case ye.OP_SETTABLE:{let Xe=Pe.stack[we],He=ae(Pe,Ve,Be,Ge),je=ue(Pe,Ve,Be,Ge);Ce(Pe,Xe,He,je),Ve=De.l_base;break}case ye.OP_NEWTABLE:{Pe.stack[we]=new P.TValue(W.LUA_TTABLE,J.luaH_new(Pe));break}case ye.OP_SELF:{let Xe=Pe.stack[ee(Pe,Ve,Ge)],He=ue(Pe,Ve,Be,Ge);Pe.stack[we+1]=Xe,Ne(Pe,Xe,He,we),Ve=De.l_base;break}case ye.OP_ADD:{let Xe=ae(Pe,Ve,Be,Ge),He=ue(Pe,Ve,Be,Ge),je=Te(Xe),ze=Te(He);Xe.ttisinteger()&&He.ttisinteger()?Pe.stack[we]=new P.TValue(W.LUA_TNUMINT,0|Xe.value+He.value):!1!==je&&!1!==ze?Pe.stack[we]=new P.TValue(W.LUA_TNUMFLT,je+ze):(Y.luaT_trybinTM(Pe,Xe,He,we,Y.TMS.TM_ADD),Ve=De.l_base);break}case ye.OP_SUB:{let Xe=ae(Pe,Ve,Be,Ge),He=ue(Pe,Ve,Be,Ge),je=Te(Xe),ze=Te(He);Xe.ttisinteger()&&He.ttisinteger()?Pe.stack[we]=new P.TValue(W.LUA_TNUMINT,0|Xe.value-He.value):!1!==je&&!1!==ze?Pe.stack[we]=new P.TValue(W.LUA_TNUMFLT,je-ze):(Y.luaT_trybinTM(Pe,Xe,He,we,Y.TMS.TM_SUB),Ve=De.l_base);break}case ye.OP_MUL:{let Xe=ae(Pe,Ve,Be,Ge),He=ue(Pe,Ve,Be,Ge),je=Te(Xe),ze=Te(He);Xe.ttisinteger()&&He.ttisinteger()?Pe.stack[we]=new P.TValue(W.LUA_TNUMINT,0|Xe.value*He.value):!1!==je&&!1!==ze?Pe.stack[we]=new P.TValue(W.LUA_TNUMFLT,je*ze):(Y.luaT_trybinTM(Pe,Xe,He,we,Y.TMS.TM_MUL),Ve=De.l_base);break}case ye.OP_MOD:{let Xe=ae(Pe,Ve,Be,Ge),He=ue(Pe,Ve,Be,Ge),je=Te(Xe),ze=Te(He);Xe.ttisinteger()&&He.ttisinteger()?Pe.stack[we]=new P.TValue(W.LUA_TNUMINT,0|Xe.value-_Mathfloor(Xe.value/He.value)*He.value):!1!==je&&!1!==ze?Pe.stack[we]=new P.TValue(W.LUA_TNUMFLT,je-_Mathfloor(je/ze)*ze):(Y.luaT_trybinTM(Pe,Xe,He,we,Y.TMS.TM_MOD),Ve=De.l_base);break}case ye.OP_POW:{let Xe=ae(Pe,Ve,Be,Ge),He=ue(Pe,Ve,Be,Ge),je=Te(Xe),ze=Te(He);!1!==je&&!1!==ze?Pe.stack[we]=new P.TValue(W.LUA_TNUMFLT,_Mathpow(je,ze)):(Y.luaT_trybinTM(Pe,Xe,He,we,Y.TMS.TM_POW),Ve=De.l_base);break}case ye.OP_DIV:{let Xe=ae(Pe,Ve,Be,Ge),He=ue(Pe,Ve,Be,Ge),je=Te(Xe),ze=Te(He);!1!==je&&!1!==ze?Pe.stack[we]=new P.TValue(W.LUA_TNUMFLT,je/ze):(Y.luaT_trybinTM(Pe,Xe,He,we,Y.TMS.TM_DIV),Ve=De.l_base);break}case ye.OP_IDIV:{let Xe=ae(Pe,Ve,Be,Ge),He=ue(Pe,Ve,Be,Ge),je=Te(Xe),ze=Te(He);Xe.ttisinteger()&&He.ttisinteger()?Pe.stack[we]=new P.TValue(W.LUA_TNUMINT,0|_Mathfloor(Xe.value/He.value)):!1!==je&&!1!==ze?Pe.stack[we]=new P.TValue(W.LUA_TNUMFLT,_Mathfloor(je/ze)):(Y.luaT_trybinTM(Pe,Xe,He,we,Y.TMS.TM_IDIV),Ve=De.l_base);break}case ye.OP_BAND:{let Xe=ae(Pe,Ve,Be,Ge),He=ue(Pe,Ve,Be,Ge),je=Ae(Xe),ze=Ae(He);!1!==je&&ze?Pe.stack[we]=new P.TValue(W.LUA_TNUMINT,je&ze):(Y.luaT_trybinTM(Pe,Xe,He,we,Y.TMS.TM_BAND),Ve=De.l_base);break}case ye.OP_BOR:{let Xe=ae(Pe,Ve,Be,Ge),He=ue(Pe,Ve,Be,Ge),je=Ae(Xe),ze=Ae(He);!1!==je&&ze?Pe.stack[we]=new P.TValue(W.LUA_TNUMINT,je|ze):(Y.luaT_trybinTM(Pe,Xe,He,we,Y.TMS.TM_BOR),Ve=De.l_base);break}case ye.OP_BXOR:{let Xe=ae(Pe,Ve,Be,Ge),He=ue(Pe,Ve,Be,Ge),je=Ae(Xe),ze=Ae(He);!1!==je&&ze?Pe.stack[we]=new P.TValue(W.LUA_TNUMINT,je^ze):(Y.luaT_trybinTM(Pe,Xe,He,we,Y.TMS.TM_BXOR),Ve=De.l_base);break}case ye.OP_SHL:{let Xe=ae(Pe,Ve,Be,Ge),He=ue(Pe,Ve,Be,Ge),je=Ae(Xe),ze=Ae(He);!1!==je&&ze?Pe.stack[we]=new P.TValue(W.LUA_TNUMINT,je<>ze):(Y.luaT_trybinTM(Pe,Xe,He,we,Y.TMS.TM_SHR),Ve=De.l_base);break}case ye.OP_UNM:{let Xe=Pe.stack[ee(Pe,Ve,Ge)],He=Te(Xe);Xe.ttisinteger()?Pe.stack[we]=new P.TValue(W.LUA_TNUMINT,-Xe.value):!1===He?(Y.luaT_trybinTM(Pe,Xe,Xe,we,Y.TMS.TM_UNM),Ve=De.l_base):Pe.stack[we]=new P.TValue(W.LUA_TNUMFLT,-He);break}case ye.OP_BNOT:{let Xe=Pe.stack[ee(Pe,Ve,Ge)],He=Te(Xe);Xe.ttisinteger()?Pe.stack[we]=new P.TValue(W.LUA_TNUMINT,~Xe.value):(Y.luaT_trybinTM(Pe,Xe,Xe,we,Y.TMS.TM_BNOT),Ve=De.l_base);break}case ye.OP_NOT:{let Xe=Pe.stack[ee(Pe,Ve,Ge)];Pe.stack[we]=new P.TValue(W.LUA_TBOOLEAN,Xe.l_isfalse());break}case ye.OP_LEN:{ke(Pe,we,Pe.stack[ee(Pe,Ve,Ge)]),Ve=De.l_base;break}case ye.OP_CONCAT:{let Xe=Ge.B,He=Ge.C,je;Pe.top=Ve+He+1,be(Pe,He-Xe+1),Ve=De.l_base,we=$(Pe,Ve,Ge),je=Ve+Xe,Pe.stack[we]=Pe.stack[je],Pe.top=De.top;break}case ye.OP_JMP:{ne(Pe,De,Ge,0);break}case ye.OP_EQ:{ce(Pe,ae(Pe,Ve,Be,Ge),ue(Pe,Ve,Be,Ge))===Ge.A?oe(Pe,De):De.pcOff++,Ve=De.l_base;break}case ye.OP_LT:{_e(Pe,ae(Pe,Ve,Be,Ge),ue(Pe,Ve,Be,Ge))===Ge.A?oe(Pe,De):De.pcOff++,Ve=De.l_base;break}case ye.OP_LE:{pe(Pe,ae(Pe,Ve,Be,Ge),ue(Pe,Ve,Be,Ge))===Ge.A?oe(Pe,De):De.pcOff++,Ve=De.l_base;break}case ye.OP_TEST:{(Ge.C?Pe.stack[we].l_isfalse():!Pe.stack[we].l_isfalse())?De.pcOff++:oe(Pe,De);break}case ye.OP_TESTSET:{let Xe=Pe.stack[ee(Pe,Ve,Ge)];(Ge.C?Xe.l_isfalse():!Xe.l_isfalse())?De.pcOff++:(Pe.stack[we]=Xe,oe(Pe,De));break}case ye.OP_CALL:{let Xe=Ge.B,He=Ge.C-1;if(0!==Xe&&(Pe.top=we+Xe),H.luaD_precall(Pe,we,He))0<=He&&(Pe.top=De.top),Ve=De.l_base;else{De=Pe.ci;continue newframe}break}case ye.OP_TAILCALL:{if(0!==Ge.B&&(Pe.top=we+Ge.B),H.luaD_precall(Pe,we,Z))Ve=De.l_base;else{let Xe=Pe.ci,He=Xe.previous,je=Xe.func,ze=Xe.funcOff,Ye=He.funcOff,Je=Xe.l_base+je.value.p.numparams;0He&&(He=0),0>Xe&&(Xe=He,Ve=De.l_base,we=$(Pe,Ve,Ge),Pe.top=we+He),je=0;je=','<=','~=','<<','>>','::','','','','',''];class Q{constructor(Pe,ye,De){this.L=Pe,this.data=ye,this.n=0,this.buffer=null,this.off=0,this.reader=De?De:null,this.reader||(E('string'!=typeof ye,'Should only load binary of array of bytes'),this.buffer=ye?ye:[],this.n=this.buffer instanceof DataView?this.buffer.byteLength:this.buffer.length,this.off=0)}getc(){if(0>=this.n&&this.fill(),0>=this.n)return-1;let Pe;return Pe=this.buffer instanceof DataView?this.buffer.getUint8(this.off++,!0):this.buffer[this.off++],0==this.n--&&(this.buffer=null),Pe}read(Pe){let ye=[];for(;0De.buffer.length&&De.buffer.length>=F.MAX_INT/2&&Te(Pe,N.to_luastring('lexical element too long',!0),0),De.buffer[De.n++]=0>ye?255+ye+1:ye},ue=function(Pe,ye){if(ye=F.MAX_INT&&Te(Pe,N.to_luastring('chunk has too many lines',!0),0)},de=function(Pe,ye){return Pe.current===ye.charCodeAt(0)&&(ne(Pe),!0)},Le=function(Pe,ye){return(Pe.current===ye[0].charCodeAt(0)||Pe.current===ye[1].charCodeAt(0))&&(oe(Pe),!0)},ge=function(Pe,ye){let De='Ee',Ke=Pe.current;for(E(P.lisdigit(Pe.current)),oe(Pe),Ke===Y[0]&&Le(Pe,'xX')&&(De='Pp');;)if(Le(Pe,De)&&Le(Pe,'-+'),P.lisxdigit(Pe.current))oe(Pe);else if(Pe.current===Y['.'])oe(Pe);else break;ae(Pe,0);let Be=K.luaO_str2num(Pe.buff.buffer);return!1===Be&&Te(Pe,N.to_luastring('malformed number',!0),W.TK_FLT),Be.ttisinteger()?(ye.i=Be.value,W.TK_INT):(E(Be.ttisfloat()),ye.r=Be.value,W.TK_FLT)},Ae=function(Pe,ye){return ye===W.TK_NAME||ye===W.TK_STRING||ye===W.TK_FLT||ye===W.TK_INT?(ae(Pe,0),N.to_luastring(`'${N.to_jsstring(Pe.buff.buffer)}'`)):ue(Pe,ye)},Te=function(Pe,ye,De){ye=I.luaG_addinfo(Pe.L,ye,Pe.source,Pe.linenumber),De&&K.luaO_pushfstring(Pe.L,N.to_luastring('%s near %s'),ye,Ae(Pe,De)),M.luaD_throw(Pe.L,H.LUA_ERRSYNTAX)},Oe=function(Pe){let ye=0,De=Pe.current;for(E(De===Y['[']||De===Y[']']),oe(Pe);Pe.current===Y['='];)oe(Pe),ye++;return Pe.current===De?ye:-ye-1},xe=function(Pe,ye,De){let Ke=Pe.linenumber;oe(Pe),se(Pe)&&pe(Pe);for(let Be=!1;!Be;)switch(Pe.current){case-1:{let Ve=ye?'string':'comment',Ge=`unfinished long ${Ve} (starting at line ${Ke})`;Te(Pe,N.to_luastring(Ge),W.TK_EOS);break}case Y[']']:{Oe(Pe)===De&&(oe(Pe),Be=!0);break}case Y['\n']:case Y['\r']:{ae(Pe,Y['\n']),pe(Pe),ye||(Pe.buff.n=0,Pe.buff.buffer=[]);break}default:ye?oe(Pe):ne(Pe);}ye&&(ye.ts=_e(Pe,Pe.buff.buffer.slice(2+De,2+De-2*(2+De))))},Ue=function(Pe,ye,De){ye||(-1!==Pe.current&&oe(Pe),Te(Pe,De,W.TK_STRING))},Ee=function(Pe){return oe(Pe),Ue(Pe,P.lisxdigit(Pe.current),N.to_luastring('hexadecimal digit expected',!0)),K.luaO_hexavalue(Pe.current)},ke=function(Pe){let ye=Ee(Pe);return ye=(ye<<4)+Ee(Pe),Pe.buff.n-=2,ye},ve=function(Pe){let ye=4;oe(Pe),Ue(Pe,Pe.current===Y['{'],N.to_luastring('missing \'{\'',!0));let De=Ee(Pe);for(oe(Pe);P.lisxdigit(Pe.current);)ye++,De=(De<<4)+K.luaO_hexavalue(Pe.current),Ue(Pe,1114111>=De,N.to_luastring('UTF-8 value too large',!0)),oe(Pe);return Ue(Pe,Pe.current===Y['}'],N.to_luastring('missing \'}\'',!0)),ne(Pe),Pe.buff.n-=ye,De},Re=function(Pe){let ye=K.luaO_utf8esc(ve(Pe)),De=ye.buff;for(let Ke=ye.n;0De&&P.lisdigit(Pe.current);De++)ye=10*ye+Pe.current-Y[0],oe(Pe);return Ue(Pe,255>=ye,N.to_luastring('decimal escape too large',!0)),Pe.buff.n-=De,ye},Se=function(Pe,ye,De){for(oe(Pe);Pe.current!==ye;)switch(Pe.current){case-1:Te(Pe,N.to_luastring('unfinished string',!0),W.TK_EOS);break;case Y['\n']:case Y['\r']:Te(Pe,N.to_luastring('unfinished string',!0),W.TK_STRING);break;case Y['\\']:{oe(Pe);let Ke,Be;switch(Pe.current){case Y.a:Be=Y.a,Ke='read_save';break;case Y.b:Be=Y['\b'],Ke='read_save';break;case Y.f:Be=Y['\f'],Ke='read_save';break;case Y.n:Be=Y['\n'],Ke='read_save';break;case Y.r:Be=Y['\r'],Ke='read_save';break;case Y.t:Be=Y['\t'],Ke='read_save';break;case Y.v:Be=Y['\x0B'],Ke='read_save';break;case Y.x:Be=ke(Pe),Ke='read_save';break;case Y.u:Re(Pe),Ke='no_save';break;case Y['\n']:case Y['\r']:pe(Pe),Be=Y['\n'],Ke='only_save';break;case Y['\\']:case Y['"']:case Y['\'']:Be=Pe.current,Ke='read_save';break;case-1:Ke='no_save';break;case Y.z:{for(Pe.buff.n-=1,ne(Pe);P.lisspace(Pe.current);)se(Pe)?pe(Pe):ne(Pe);Ke='no_save';break}default:{Ue(Pe,P.lisdigit(Pe.current),N.to_luastring('invalid escape sequence',!0)),Be=be(Pe),Ke='only_save';break}}'read_save'===Ke&&ne(Pe),('read_save'===Ke||'only_save'===Ke)&&(Pe.buff.n-=1,ae(Pe,Be));break}default:oe(Pe);}oe(Pe),De.ts=_e(Pe,Pe.buff.buffer.slice(1,Pe.buff.n-1))},Ie=function(Pe,ye){for(Pe.buff.n=0,Pe.buff.buffer=[];;)switch(E('number'==typeof Pe.current),Pe.current){case Y['\n']:case Y['\r']:{pe(Pe);break}case Y[' ']:case Y['\f']:case Y['\t']:case Y['\x0B']:{ne(Pe);break}case Y['-']:{if(ne(Pe),Pe.current!==Y['-'])return Y['-'];if(ne(Pe),Pe.current===Y['[']){let De=Oe(Pe);if(Pe.buff.n=0,Pe.buff.buffer=[],0<=De){xe(Pe,null,De),Pe.buff.n=0,Pe.buff.buffer=[];break}}for(;!se(Pe)&&-1!==Pe.current;)ne(Pe);break}case Y['[']:{let De=Oe(Pe);return 0<=De?(xe(Pe,ye,De),W.TK_STRING):(-1!==De&&Te(Pe,N.to_luastring('invalid long string delimiter',!0),W.TK_STRING),Y['['])}case Y['=']:return ne(Pe),de(Pe,'=')?W.TK_EQ:Y['='];case Y['<']:return ne(Pe),de(Pe,'=')?W.TK_LE:de(Pe,'<')?W.TK_SHL:Y['<'];case Y['>']:return ne(Pe),de(Pe,'=')?W.TK_GE:de(Pe,'>')?W.TK_SHR:Y['>'];case Y['/']:return ne(Pe),de(Pe,'/')?W.TK_IDIV:Y['/'];case Y['~']:return ne(Pe),de(Pe,'=')?W.TK_NE:Y['~'];case Y[':']:return ne(Pe),de(Pe,':')?W.TK_DBCOLON:Y[':'];case Y['"']:case Y['\'']:return Se(Pe,Pe.current,ye),W.TK_STRING;case Y['.']:return oe(Pe),de(Pe,'.')?de(Pe,'.')?W.TK_DOTS:W.TK_CONCAT:P.lisdigit(Pe.current)?ge(Pe,ye):Y['.'];case Y[0]:case Y[1]:case Y[2]:case Y[3]:case Y[4]:case Y[5]:case Y[6]:case Y[7]:case Y[8]:case Y[9]:return ge(Pe,ye);case-1:return W.TK_EOS;default:{if(P.lislalpha(Pe.current)){do oe(Pe);while(P.lislalnum(Pe.current));let De=_e(Pe,Pe.buff.buffer);ye.ts=De;let Ke=Z.slice(0,22).indexOf(N.to_jsstring(De.getstr()));return 0<=Ke?Ke+J:W.TK_NAME}let De=Pe.current;return ne(Pe),De}}};T.exports.FIRST_RESERVED=J,T.exports.LexState=class{constructor(){this.current=NaN,this.linenumber=NaN,this.lastline=NaN,this.t=new ee,this.lookahead=new ee,this.fs=null,this.L=null,this.z=new Q,this.buff=new Q,this.h=null,this.dyd=null,this.source=null,this.envn=null}},T.exports.MBuffer=Q,T.exports.RESERVED=q,T.exports.isreserved=function(Pe){return 0<=Z.slice(0,22).indexOf(Pe)},T.exports.luaX_lookahead=function(Pe){return E(Pe.lookahead.token===W.TK_EOS),Pe.lookahead.token=Ie(Pe,Pe.lookahead.seminfo),Pe.lookahead.token},T.exports.luaX_newstring=_e,T.exports.luaX_next=function(Pe){Pe.lastline=Pe.linenumber,Pe.lookahead.token===W.TK_EOS?Pe.t.token=Ie(Pe,Pe.t.seminfo):(Pe.t.token=Pe.lookahead.token,Pe.t.seminfo.i=Pe.lookahead.seminfo.i,Pe.t.seminfo.r=Pe.lookahead.seminfo.r,Pe.t.seminfo.ts=Pe.lookahead.seminfo.ts,Pe.lookahead.token=W.TK_EOS)},T.exports.luaX_setinput=function(Pe,ye,De,Ke,Be){ye.t={token:0,seminfo:{i:NaN,r:NaN,ts:null}},ye.L=Pe,ye.current=Be,ye.lookahead={token:W.TK_EOS,seminfo:{i:NaN,r:NaN,ts:null}},ye.z=De,ye.fs=null,ye.linenumber=1,ye.lastline=1,ye.source=Ke,ye.envn=V.luaS_newliteral(Pe,'_ENV')},T.exports.luaX_syntaxerror=function(Pe,ye){Te(Pe,ye,Pe.t.token)},T.exports.luaX_token2str=ue,T.exports.luaX_tokens=Z},function(T){'use strict';const I=0,M=1,P=2,K=3,V=0,G=1,F=2,H=3,Y=[64|P<<4|I<<2|V,64|K<<4|I<<2|G,64|I<<4|I<<2|G,64|M<<4|M<<2|V,64|M<<4|I<<2|V,64|M<<4|I<<2|V,64|M<<4|K<<2|V,64|P<<4|K<<2|V,0|K<<4|K<<2|V,0|M<<4|I<<2|V,0|K<<4|K<<2|V,64|M<<4|M<<2|V,64|P<<4|K<<2|V,64|K<<4|K<<2|V,64|K<<4|K<<2|V,64|K<<4|K<<2|V,64|K<<4|K<<2|V,64|K<<4|K<<2|V,64|K<<4|K<<2|V,64|K<<4|K<<2|V,64|K<<4|K<<2|V,64|K<<4|K<<2|V,64|K<<4|K<<2|V,64|K<<4|K<<2|V,64|K<<4|K<<2|V,64|P<<4|I<<2|V,64|P<<4|I<<2|V,64|P<<4|I<<2|V,64|P<<4|I<<2|V,64|P<<4|P<<2|V,0|P<<4|I<<2|F,128|K<<4|K<<2|V,128|K<<4|K<<2|V,128|K<<4|K<<2|V,128|I<<4|M<<2|V,192|P<<4|M<<2|V,64|M<<4|M<<2|V,64|M<<4|M<<2|V,0|M<<4|I<<2|V,64|P<<4|I<<2|F,64|P<<4|I<<2|F,0|I<<4|M<<2|V,64|P<<4|I<<2|F,0|M<<4|M<<2|V,64|M<<4|I<<2|G,64|M<<4|I<<2|V,0|M<<4|M<<2|H],$=9,ee=9,te=$+ee,ae=8,ue=$+ee+ae,se=6,ne=0,oe=ne+se,_e=oe+ae,pe=_e+$,ce=_e,de=oe,Le=(1<>1,Te=(1<>ne&be(se,0),A:We>>oe&be(ae,0),B:We>>pe&be(ee,0),C:We>>_e&be($,0),Bx:We>>ce&be(te,0),Ax:We>>de&be(ue,0),sBx:(We>>ce&be(te,0))-ge};let Ze=We.code;return We.opcode=Ze>>ne&be(se,0),We.A=Ze>>oe&be(ae,0),We.B=Ze>>pe&be(ee,0),We.C=Ze>>_e&be($,0),We.Bx=Ze>>ce&be(te,0),We.Ax=Ze>>de&be(ue,0),We.sBx=(Ze>>ce&be(te,0))-ge,We};T.exports.BITRK=xe,T.exports.CREATE_ABC=function(We,Ze,Qe,$e){return je(We<>4},T.exports.getCMode=function(We){return 3&Y[We]>>2},T.exports.getOpMode=function(We){return 3&Y[We]},T.exports.iABC=V,T.exports.iABx=G,T.exports.iAsBx=F,T.exports.iAx=H,T.exports.testAMode=function(We){return 64&Y[We]},T.exports.testTMode=function(We){return 128&Y[We]}},function(T,O,U){'use strict';const E=U(0),N=U(1),I=U(8),M=U(9),P=U(50),K=U(11),V=U(19),G=U(5),F=U(15),H=U(7),Y=U(16),J=U(12),q=U(17),W=U(10),Z=K.MAXUPVAL,Q=N.constant_types,$=N.thread_status,ee=G.TValue,te=G.CClosure,ae=function(ca){return ca!==G.luaO_nilobject},ne=function(ca,da){let La=ca.ci;if(0=ca.top?G.luaO_nilobject:ca.stack[fa]}return da>N.LUA_REGISTRYINDEX?(E(0!=da&&-da<=ca.top,'invalid index'),ca.stack[ca.top+da]):da===N.LUA_REGISTRYINDEX?ca.l_G.l_registry:(da=N.LUA_REGISTRYINDEX-da,E(da<=Z+1,'upvalue index too large'),La.func.ttislcf()?G.luaO_nilobject:da<=La.func.value.nupvalues?La.func.value.upvalue[da-1]:G.luaO_nilobject)},oe=function(ca,da){let La=ca.ci;if(0=ca.top?null:fa}return da>N.LUA_REGISTRYINDEX?(E(0!=da&&-da<=ca.top,'invalid index'),ca.top+da):da===N.LUA_REGISTRYINDEX?null:(da=N.LUA_REGISTRYINDEX-da,E(da<=Z+1,'upvalue index too large'),La.func.ttislcf()?null:da<=La.func.nupvalues?da-1:null)},ge=function(ca,da){let La=ca.ci.funcOff;if(0<=da){for(;ca.topfa;)delete ca.stack[--ca.top]}},Ae=function(ca,da){ge(ca,-da-1)},Te=function(ca,da,La){for(;daN.LUA_REGISTRYINDEX,'index not in the stack'),E((0<=La?La:-La)<=ca.top-da,'invalid \'n\'');let Ta=0<=La?ca.top-1-La:Aa-La-1;Te(ca,Aa,Ta),Te(ca,Ta+1,ca.top-1),Te(ca,Aa,ca.top-1)},Oe=function(ca,da,La){let fa=ne(ca,da);ca.stack[oe(ca,La)]=new ee(fa.type,fa.value)},Me=function(ca,da,La){if(E('function'==typeof da),E('number'==typeof La),0===La)ca.stack[ca.top]=new ee(Q.LUA_TLCF,da);else{E(La=da-La,'results from function overflow current stack size'));let Aa=ca.top-(da+1);null!==ga&&0===ca.nny?(ca.ci.c_k=ga,ca.ci.c_ctx=fa,M.luaD_call(ca,Aa,La)):M.luaD_callnoyield(ca,Aa,La),La===N.LUA_MULTRET&&ca.ci.top=da-La,'results from function overflow current stack size'));let Ta={func:null,funcOff:NaN,nresults:NaN},ha,Oa;if(Oa=0===fa?0:oe(ca,fa),Ta.funcOff=ca.top-(da+1),Ta.func=ca.stack[Ta.funcOff],null===Aa||0=Ct(ca,da)},T.exports.lua_isnumber=function(ca,da){return!1!==q.tonumber(ne(ca,da))},T.exports.lua_isstring=function(ca,da){let La=ne(ca,da);return La.ttisstring()||La.ttisnumber()},T.exports.lua_istable=function(ca,da){return ne(ca,da).ttistable()},T.exports.lua_isthread=function(ca,da){return Ct(ca,da)===Q.LUA_TTHREAD},T.exports.lua_isuserdata=function(ca,da){let La=ne(ca,da);return La.ttisfulluserdata(La)||La.ttislightuserdata()},T.exports.lua_len=function(ca,da){let La=ne(ca,da);q.luaV_objlen(ca,ca.top++,La),E(ca.top<=ca.ci.top,'stack overflow')},T.exports.lua_load=function(ca,da,La,fa,ga){E(Array.isArray(fa),'lua_load expect an array of byte as chunckname'),E(!ga||Array.isArray(ga),'lua_load expect an array of byte as mode');let Aa=new V.MBuffer(ca,La,da);fa||(fa=[N.char['?']]);let Ta=M.luaD_protectedparser(ca,Aa,fa,ga);if(Ta===$.LUA_OK){let ha=ca.stack[ca.top-1].value;if(1<=ha.nupvalues){let Oa=W.luaH_getint(ca.l_G.l_registry.value,N.LUA_RIDX_GLOBALS);ha.upvals[0].value.setfrom(Oa)}}return Ta},T.exports.lua_newtable=function(ca){et(ca,0,0)},T.exports.lua_newuserdata=function(ca,da){let La=at(ca,da);return ca.stack[ca.top++]=new G.TValue(Q.LUA_TUSERDATA,La),E(ca.top<=ca.ci.top,'stack overflow'),La.data},T.exports.lua_next=function(ca,da){let La=ne(ca,da);E(La.ttistable(),'table expected');let fa=W.luaH_next(ca,La.value,ca.top-1);return fa?(ca.top++,E(ca.top<=ca.ci.top,'stack overflow'),1):(ca.top--,0)},T.exports.lua_pcall=function(ca,da,La,fa){return $t(ca,da,La,fa,0,null)},T.exports.lua_pcallk=$t,T.exports.lua_pop=Ae,T.exports.lua_pushboolean=function(ca,da){ca.stack[ca.top++]=new ee(Q.LUA_TBOOLEAN,!!da),E(ca.top<=ca.ci.top,'stack overflow')},T.exports.lua_pushcclosure=Me,T.exports.lua_pushcfunction=ye,T.exports.lua_pushglobaltable=function(ca){Ze(ca,N.LUA_REGISTRYINDEX,N.LUA_RIDX_GLOBALS)},T.exports.lua_pushinteger=function(ca,da){E('number'==typeof da&&(0|da)===da),ca.stack[ca.top++]=new ee(Q.LUA_TNUMINT,da),E(ca.top<=ca.ci.top,'stack overflow')},T.exports.lua_pushjsclosure=Me,T.exports.lua_pushjsfunction=ye,T.exports.lua_pushlightuserdata=function(ca,da){ca.stack[ca.top++]=new ee(Q.LUA_TLIGHTUSERDATA,da),E(ca.top<=ca.ci.top,'stack overflow')},T.exports.lua_pushliteral=function(ca,da){if(E('string'==typeof da||void 0===da||null===da,'lua_pushliteral expects a JS string'),void 0===da||null===da)ca.stack[ca.top]=new ee(Q.LUA_TNIL,null);else{let La=new ee(Q.LUA_TLNGSTR,H.luaS_newliteral(ca,da));ca.stack[ca.top]=La}return ca.top++,E(ca.top<=ca.ci.top,'stack overflow'),da},T.exports.lua_pushlstring=function(ca,da,La){E(Array.isArray(da),'lua_pushlstring expects array of byte'),E('number'==typeof La);let fa=new ee(Q.LUA_TLNGSTR,H.luaS_bless(ca,da.slice(0,La)));return ca.stack[ca.top++]=fa,E(ca.top<=ca.ci.top,'stack overflow'),fa.value},T.exports.lua_pushnil=function(ca){ca.stack[ca.top++]=new ee(Q.LUA_TNIL,null),E(ca.top<=ca.ci.top,'stack overflow')},T.exports.lua_pushnumber=function(ca,da){E('number'==typeof da),ca.stack[ca.top++]=new ee(Q.LUA_TNUMFLT,da),E(ca.top<=ca.ci.top,'stack overflow')},T.exports.lua_pushstring=function(ca,da){return E(Array.isArray(da)||void 0===da||null===da,'lua_pushstring expects array of byte'),ca.stack[ca.top]=void 0===da||null===da?new ee(Q.LUA_TNIL,null):new ee(Q.LUA_TLNGSTR,H.luaS_new(ca,da)),ca.top++,E(ca.top<=ca.ci.top,'stack overflow'),da},T.exports.lua_pushfstring=function(ca,da,...La){return E(Array.isArray(da)),G.luaO_pushvfstring(ca,da,La)},T.exports.lua_pushvfstring=function(ca,da,La){return E(Array.isArray(da)),G.luaO_pushvfstring(ca,da,La)},T.exports.lua_pushthread=function(ca){return ca.stack[ca.top++]=new ee(Q.LUA_TTHREAD,ca),E(ca.top<=ca.ci.top,'stack overflow'),ca.l_G.mainthread===ca},T.exports.lua_pushvalue=function(ca,da){ca.stack[ca.top]=ne(ca,da),ca.top++,E(ca.top<=ca.ci.top,'stack overflow')},T.exports.lua_rawequal=function(ca,da,La){let fa=ne(ca,da),ga=ne(ca,La);return ae(fa)&&ae(ga)?q.luaV_equalobj(null,fa,ga):0},T.exports.lua_rawget=function(ca,da){let La=ne(ca,da);return E(La.ttistable(La),'table expected'),ca.stack[ca.top-1]=W.luaH_get(La.value,ca.stack[ca.top-1]),ca.stack[ca.top-1].ttnov()},T.exports.lua_rawgeti=Ze,T.exports.lua_rawgetp=function(ca,da,La){let fa=ne(ca,da);E(fa.ttistable(),'table expected');let ga=new ee(Q.LUA_TLIGHTUSERDATA,La);return ca.stack[ca.top++]=W.luaH_get(fa.value,ga),E(ca.top<=ca.ci.top,'stack overflow'),ca.stack[ca.top-1].ttnov()},T.exports.lua_rawlen=function(ca,da){let La=ne(ca,da);switch(La.ttype()){case Q.LUA_TSHRSTR:case Q.LUA_TLNGSTR:return La.vslen();case Q.LUA_TUSERDATA:return La.len;case Q.LUA_TTABLE:return W.luaH_getn(La.value);default:return 0;}},T.exports.lua_rawset=function(ca,da){E(2fa.setUint8(Aa,ga,!0)),fa},T.exports.lua_tointeger=function(ca,da){return q.tointeger(ne(ca,da))},T.exports.lua_tointegerx=function(ca,da){return q.tointeger(ne(ca,da))},T.exports.lua_tojsstring=Tt,T.exports.lua_toljsstring=Tt,T.exports.lua_tolstring=ft,T.exports.lua_tonumber=function(ca,da){return q.tonumber(ne(ca,da))},T.exports.lua_topointer=function(ca,da){let La=ne(ca,da);switch(La.ttype()){case Q.LUA_TTABLE:case Q.LUA_TLCL:case Q.LUA_TCCL:case Q.LUA_TLCF:case Q.LUA_TTHREAD:case Q.LUA_TUSERDATA:case Q.LUA_TLIGHTUSERDATA:return La.value;default:return null;}},T.exports.lua_tostring=ft,T.exports.lua_tothread=function(ca,da){let La=ne(ca,da);return La.ttisthread()?La.value:null},T.exports.lua_touserdata=function(ca,da){let La=ne(ca,da);switch(La.ttnov()){case Q.LUA_TUSERDATA:return La.value.data;case Q.LUA_TLIGHTUSERDATA:return La.value;default:return null;}},T.exports.lua_type=Ct,T.exports.lua_typename=function(ca,da){return E(Q.LUA_TNONE<=da&&da=La,'stack overflow'),ca.top-=La;for(let fa=0;fa$?(E.lua_type(Z,-1)===E.LUA_TSTRING&&(N.luaL_where(Z,1),E.lua_insert(Z,-2),E.lua_concat(Z,2)),E.lua_error(Z)):$},V=function(Z){N.luaL_checktype(Z,1,E.LUA_TFUNCTION);let Q=E.lua_newthread(Z);return E.lua_pushvalue(Z,1),E.lua_xmove(Z,Q,1),1},q={create:V,isyieldable:function(Z){return E.lua_pushboolean(Z,E.lua_isyieldable(Z)),1},resume:function(Z){let Q=I(Z),$=M(Z,Q,E.lua_gettop(Z)-1);return 0>$?(E.lua_pushboolean(Z,0),E.lua_insert(Z,-2),2):(E.lua_pushboolean(Z,1),E.lua_insert(Z,-($+1)),$+1)},running:function(Z){return E.lua_pushboolean(Z,E.lua_pushthread(Z)),2},status:function(Z){let Q=I(Z);if(Z===Q)E.lua_pushliteral(Z,'running');else switch(E.lua_status(Q)){case E.LUA_YIELD:E.lua_pushliteral(Z,'suspended');break;case E.LUA_OK:{let $=new E.lua_Debug;0N.to_luastring(Oe)),pe=function(Oe,xe){N.lua_rawgetp(Oe,N.LUA_REGISTRYINDEX,oe),N.lua_pushthread(Oe),N.lua_rawget(Oe,-2)===N.LUA_TFUNCTION&&(N.lua_pushstring(Oe,_e[xe.event]),0<=xe.currentline?N.lua_pushinteger(Oe,xe.currentline):N.lua_pushnil(Oe),E(N.lua_getinfo(Oe,['l'.charCodeAt(0),'S'.charCodeAt(0)],xe)),N.lua_call(Oe,2,0))},ce=function(Oe,xe){let Ue=0;return-1'.charCodeAt(0)].concat(ve),N.lua_pushvalue(Oe,Ee+1),N.lua_xmove(Oe,ke,1);else if(!N.lua_getstack(ke,I.luaL_checkinteger(Oe,Ee+1),xe))return N.lua_pushnil(Oe),1;return N.lua_getinfo(ke,ve,xe)||I.luaL_argerror(Oe,Ee+2,N.to_luastring('invalid option',!0)),N.lua_newtable(Oe),-1=_Mathabs(Oe)+1?(I.luaL_argcheck(he,0!==Oe,2,N.to_luastring('zero',!0)),N.lua_pushinteger(he,0)):N.lua_pushinteger(he,N.lua_tointeger(he,1)%Oe)}else{let Oe=I.luaL_checknumber(he,1),xe=I.luaL_checknumber(he,2);N.lua_pushnumber(he,+(Oe-_Mathfloor(Oe/xe)*xe).toPrecision(8))}return 1},log:function(he){let Oe=I.luaL_checknumber(he,1),xe;if(N.lua_isnoneornil(he,2))xe=_Mathlog(Oe);else{let Ue=I.luaL_checknumber(he,2);xe=2===Ue?Math.log2(Oe):10===Ue?Math.log10(Oe):_Mathlog(Oe)/_Mathlog(Ue)}return N.lua_pushnumber(he,xe),1},max:function(he){let Oe=N.lua_gettop(he),xe=1;I.luaL_argcheck(he,1<=Oe,1,N.to_luastring('value expected',!0));for(let Ue=2;Ue<=Oe;Ue++)N.lua_compare(he,xe,Ue,N.LUA_OPLT)&&(xe=Ue);return N.lua_pushvalue(he,xe),1},min:function(he){let Oe=N.lua_gettop(he),xe=1;I.luaL_argcheck(he,1<=Oe,1,N.to_luastring('value expected',!0));for(let Ue=2;Ue<=Oe;Ue++)N.lua_compare(he,Ue,xe,N.LUA_OPLT)&&(xe=Ue);return N.lua_pushvalue(he,xe),1},modf:function(he){if(N.lua_isinteger(he,1))N.lua_settop(he,1),N.lua_pushnumber(he,0);else{let Oe=I.luaL_checknumber(he,1),xe=0>Oe?_Mathceil(Oe):_Mathfloor(Oe);$(he,xe),N.lua_pushnumber(he,Oe===xe?0:Oe-xe)}return 2},rad:function(he){return N.lua_pushnumber(he,I.luaL_checknumber(he,1)*(_MathPI/180)),1},random:function(he){let Ue=K(),Oe,xe;switch(N.lua_gettop(he)){case 0:return N.lua_pushnumber(he,Ue),1;case 1:{Oe=1,xe=I.luaL_checkinteger(he,1);break}case 2:{Oe=I.luaL_checkinteger(he,1),xe=I.luaL_checkinteger(he,2);break}default:return I.luaL_error(he,N.to_luastring('wrong number of arguments',!0));}return I.luaL_argcheck(he,Oe<=xe,1,N.to_luastring('interval is empty',!0)),I.luaL_argcheck(he,0<=Oe||xe<=M.MAX_INT+Oe,1,N.to_luastring('interval too large',!0)),Ue*=xe-Oe+1,N.lua_pushinteger(he,_Mathfloor(Ue)+Oe),1},randomseed:function(he){K=E(_Mathabs(I.luaL_checknumber(he,1)))},sin:function(he){return N.lua_pushnumber(he,Math.sin(I.luaL_checknumber(he,1))),1},sqrt:function(he){return N.lua_pushnumber(he,Math.sqrt(I.luaL_checknumber(he,1))),1},tan:function(he){return N.lua_pushnumber(he,Math.tan(I.luaL_checknumber(he,1))),1},tointeger:function(he){let Oe=N.lua_tointegerx(he,1);return!1===Oe?(I.luaL_checkany(he,1),N.lua_pushnil(he)):N.lua_pushinteger(he,Oe),1},type:function(he){return N.lua_type(he,1)===N.LUA_TNUMBER?N.lua_isinteger(he,1)?N.lua_pushliteral(he,'integer'):N.lua_pushliteral(he,'float'):(I.luaL_checkany(he,1),N.lua_pushnil(he)),1},ult:function(he){let Oe=I.luaL_checkinteger(he,1),xe=I.luaL_checkinteger(he,2);return N.lua_pushboolean(he,_Mathabs(Oe)<_Mathabs(xe)),1}};T.exports.luaopen_math=function(he){return I.luaL_newlib(he,Ae),N.lua_pushnumber(he,Math.PI),N.lua_setfield(he,-2,N.to_luastring('pi',!0)),N.lua_pushnumber(he,Infinity),N.lua_setfield(he,-2,N.to_luastring('huge',!0)),N.lua_pushinteger(he,M.MAX_INT),N.lua_setfield(he,-2,N.to_luastring('maxinteger',!0)),N.lua_pushinteger(he,M.MIN_INT),N.lua_setfield(he,-2,N.to_luastring('mininteger',!0)),1}},function(T,O,U){'use strict';(function(E){const N=U(2),I=U(6),M=['-'.charCodeAt(0)],P=N.to_luastring('__CLIBS__',!0),G=N.LUA_DIRSEP,F=N.LUA_DIRSEP,H='luaopen_',J=[1],Z=function(Ne,Ie){try{return Ie=N.to_jsstring(Ie),Ie.startsWith('.')&&(Ie=`${E.env.PWD}/${Ie}`),!function(){var Me=new Error('Cannot find module "."');throw Me.code='MODULE_NOT_FOUND',Me}()}catch(Ce){N.lua_pushjsstring(Ne,Ce.message)}},Q=function(Ne,Ie,Ce){let Me=Ie[N.to_jsstring(Ce)];return Me&&'function'==typeof Me?Me:void N.lua_pushliteral(Ne,`'${N.to_jsstring(Ce)}'`)},$=function(Ne){N.lua_getfield(Ne,N.LUA_REGISTRYINDEX,N.to_luastring('LUA_NOENV'));let Ie=N.lua_toboolean(Ne,-1);return N.lua_pop(Ne,1),Ie};let ee=function(){return!1};const te=1,ae=2,ue=function(Ne,Ie,Ce){let Me=oe(Ne,Ie);if(null===Me){if(Me=Z(Ne,Ie,Ce[0]==='*'.charCodeAt(0)),null===Me)return te;_e(Ne,Ie,Me)}if(Ce[0]==='*'.charCodeAt(0))return N.lua_pushboolean(Ne,1),0;let Pe=Q(Ne,Me,Ce);return null===Pe?ae:(N.lua_pushcfunction(Ne,Pe),0)},ne=function(Ne,Ie,Ce,Me){let Pe=N.lua_pushstring(Ne,N.to_luastring(`${Ce}${N.LUA_VERSUFFIX}`,!0)),ye=E.env[Pe];void 0===ye&&(ye=E.env[Ce]),void 0===ye||$(Ne)?N.lua_pushstring(Ne,N.to_luastring(Me,!0)):(ye=I.luaL_gsub(Ne,N.to_luastring(ye),N.to_luastring(N.LUA_PATH_SEP+N.LUA_PATH_SEP,!0),N.to_luastring(N.LUA_PATH_SEP,!0).concat(J).concat(N.to_luastring(N.LUA_PATH_SEP,!0))),I.luaL_gsub(Ne,ye,J,N.to_luastring(Me)),N.lua_remove(Ne,-2)),N.lua_setfield(Ne,-3,Ie),N.lua_pop(Ne,1)},oe=function(Ne,Ie){N.lua_rawgetp(Ne,N.LUA_REGISTRYINDEX,P),N.lua_getfield(Ne,-1,Ie);let Ce=N.lua_touserdata(Ne,-1);return N.lua_pop(Ne,2),Ce},_e=function(Ne,Ie,Ce){N.lua_rawgetp(Ne,N.LUA_REGISTRYINDEX,P),N.lua_pushlightuserdata(Ne,Ce),N.lua_pushvalue(Ne,-1),N.lua_setfield(Ne,-3,Ie),N.lua_rawseti(Ne,-2,I.luaL_len(Ne,-2)+1),N.lua_pop(Ne,1)},pe=function(Ne,Ie){for(;Ie[0]===N.LUA_PATH_SEP.charCodeAt(0);)Ie=Ie.slice(1);if(0===Ie.length)return null;let Ce=Ie.indexOf(N.LUA_PATH_SEP.charCodeAt(0));return 0>Ce&&(Ce=Ie.length),N.lua_pushlstring(Ne,Ie,Ce),Ie.slice(Ce)},ce=function(Ne,Ie,Ce,Me,Pe){let ye=[];for(0!==Me[0]&&(Ie=I.luaL_gsub(Ne,Ie,Me,Pe));null!==(Ce=pe(Ne,Ce));){let De=I.luaL_gsub(Ne,N.lua_tostring(Ne,-1),N.to_luastring(N.LUA_PATH_MARK,!0),Ie);if(N.lua_remove(Ne,-2),ee(De))return De;N.lua_remove(Ne,-1),ye.push(...N.to_luastring(`\n\tno file '${N.to_jsstring(De)}'`))}return N.lua_pushstring(Ne,ye),null},Le=function(Ne,Ie,Ce,Me){N.lua_getfield(Ne,N.lua_upvalueindex(1),Ce);let Pe=N.lua_tostring(Ne,-1);return null===Pe&&I.luaL_error(Ne,N.to_luastring('\'package.%s\' must be a string'),Ce),ce(Ne,Ie,Pe,['.'.charCodeAt(0)],Me)},ge=function(Ne,Ie,Ce){return Ie?(N.lua_pushstring(Ne,Ce),2):I.luaL_error(Ne,N.to_luastring('error loading module \'%s\' from file \'%s\':\n\t%s'),N.lua_tostring(Ne,1),Ce,N.lua_tostring(Ne,1))},Ae=function(Ne){let Ie=I.luaL_checkstring(Ne,1),Ce=Le(Ne,Ie,N.to_luastring('path',!0),N.to_luastring(F,!0));return null===Ce?1:ge(Ne,I.luaL_loadfile(Ne,Ce)===N.LUA_OK,Ce)},Te=function(Ne,Ie,Ce){let Me;Ce=I.luaL_gsub(Ne,Ce,['.'.charCodeAt(0)],'_');let Pe=Ce.indexOf(M[0]);if(0<=Pe){Me=N.lua_pushlstring(Ne,Ce,Pe),Me=N.lua_pushstring(Ne,N.to_luastring(`${H}${Me}`));let ye=ue(Ne,Ie,Me);if(ye!==ae)return ye;Ce=Pe+1}return Me=N.lua_pushstring(Ne,N.to_luastring(`${H}${Ce}`)),ue(Ne,Ie,Me)},he=function(Ne){let Ie=I.luaL_checkstring(Ne,1),Ce=Le(Ne,Ie,N.to_luastring('cpath',!0),N.to_luastring(G,!0));return null===Ce?1:ge(Ne,0===Te(Ne,Ce,Ie),Ce)},Oe=function(Ne){let Ie=I.luaL_checkstring(Ne,1),Ce=Ie.indexOf('.'.charCodeAt(0)),Me;if(0>Ce)return 0;N.lua_pushlstring(Ne,Ie,Ce);let Pe=Le(Ne,N.lua_tostring(Ne,-1),N.to_luastring('cpath',!0),N.to_luastring(G,!0));return null===Pe?1:0===(Me=Te(Ne,Pe,Ie))?(N.lua_pushstring(Ne,Pe),2):Me==ae?(N.lua_pushstring(Ne,N.to_luastring(`\n\tno module '${N.to_jsstring(Ie)}' in file '${N.to_jsstring(Pe)}'`)),1):ge(Ne,0,Pe)},xe=function(Ne){let Ie=I.luaL_checkstring(Ne,1);return N.lua_getfield(Ne,N.LUA_REGISTRYINDEX,N.to_luastring(I.LUA_PRELOAD_TABLE,!0)),N.lua_getfield(Ne,-1,Ie)===N.LUA_TNIL&&N.lua_pushliteral(Ne,`\n\tno field package.preload['${N.to_jsstring(Ie)}']`),1},Ue=function(Ne,Ie){let Ce=[];N.lua_getfield(Ne,N.lua_upvalueindex(1),N.to_luastring('searchers',!0))!==N.LUA_TTABLE&&I.luaL_error(Ne,N.to_luastring('\'package.searchers\' must be a table'));for(let Me=1;;Me++){if(N.lua_rawgeti(Ne,3,Me)===N.LUA_TNIL&&(N.lua_pop(Ne,1),N.lua_pushstring(Ne,Ce),I.luaL_error(Ne,N.to_luastring('module \'%s\' not found:%s'),Ie,N.lua_tostring(Ne,-1))),N.lua_pushstring(Ne,Ie),N.lua_call(Ne,1,2),N.lua_isfunction(Ne,-2))return;N.lua_isstring(Ne,-2)?(N.lua_pop(Ne,1),Ce.push(...N.lua_tostring(Ne,-1)),N.lua_remove(Ne,-1)):N.lua_pop(Ne,2)}},ke={loadlib:function(Ne){let Ie=I.luaL_checkstring(Ne,1),Ce=I.luaL_checkstring(Ne,2),Me=ue(Ne,Ie,Ce);return 0===Me?1:(N.lua_pushnil(Ne),N.lua_insert(Ne,-2),N.lua_pushjsstring(Ne,Me===te?'absent':'init'),3)},searchpath:function(Ne){let Ie=ce(Ne,I.luaL_checkstring(Ne,1),I.luaL_checkstring(Ne,2),I.luaL_optstring(Ne,3,['.'.charCodeAt(0)]),I.luaL_optstring(Ne,4,[N.LUA_DIRSEP.charCodeAt(0)]));return null===Ie?(N.lua_pushnil(Ne),N.lua_insert(Ne,-2),2):1}},ve={require:function(Ne){let Ie=I.luaL_checkstring(Ne,1);return(N.lua_settop(Ne,1),N.lua_getfield(Ne,N.LUA_REGISTRYINDEX,N.to_luastring(I.LUA_LOADED_TABLE,!0)),N.lua_getfield(Ne,2,Ie),N.lua_toboolean(Ne,-1))?1:(N.lua_pop(Ne,1),Ue(Ne,Ie),N.lua_pushstring(Ne,Ie),N.lua_insert(Ne,-2),N.lua_call(Ne,2,1),N.lua_isnil(Ne,-1)||N.lua_setfield(Ne,2,Ie),N.lua_getfield(Ne,2,Ie)==N.LUA_TNIL&&(N.lua_pushboolean(Ne,1),N.lua_pushvalue(Ne,-1),N.lua_setfield(Ne,2,Ie)),1)}},Re=function(Ne){let Ie=[xe,Ae,he,Oe,null];N.lua_createtable(Ne);for(let Ce=0;Ie[Ce];Ce++)N.lua_pushvalue(Ne,-2),N.lua_pushcclosure(Ne,Ie[Ce],1),N.lua_rawseti(Ne,-2,Ce+1);N.lua_setfield(Ne,-2,N.to_luastring('searchers',!0))},be=function(Ne){N.lua_newtable(Ne),N.lua_createtable(Ne,0,1),N.lua_setmetatable(Ne,-2),N.lua_rawsetp(Ne,N.LUA_REGISTRYINDEX,P)};T.exports.luaopen_package=function(Ne){return be(Ne),I.luaL_newlib(Ne,ke),Re(Ne),ne(Ne,N.to_luastring('path',!0),'LUA_PATH',N.LUA_PATH_DEFAULT),ne(Ne,N.to_luastring('cpath',!0),'LUA_CPATH',N.LUA_CPATH_DEFAULT),N.lua_pushliteral(Ne,N.LUA_DIRSEP+'\n'+N.LUA_PATH_SEP+'\n'+N.LUA_PATH_MARK+'\n'+N.LUA_EXEC_DIR+'\n'+M+'\n'),N.lua_setfield(Ne,-2,N.to_luastring('config',!0)),I.luaL_getsubtable(Ne,N.LUA_REGISTRYINDEX,N.to_luastring(I.LUA_LOADED_TABLE,!0)),N.lua_setfield(Ne,-2,N.to_luastring('loaded',!0)),I.luaL_getsubtable(Ne,N.LUA_REGISTRYINDEX,N.to_luastring(I.LUA_PRELOAD_TABLE,!0)),N.lua_setfield(Ne,-2,N.to_luastring('preload',!0)),N.lua_pushglobaltable(Ne),N.lua_pushvalue(Ne,-2),I.luaL_setfuncs(Ne,ve,1),N.lua_pop(Ne,1),1}}).call(O,U(18))},function(T,O,U){'use strict';(function(E){const N=U(2),I=U(6),M=U(4),P=U(42),K=N.to_luastring('aAbBcdHIjmMpSUwWxXyYZ%',!0),V=N.to_luastring('aAbBcCdDeFgGhHIjmMnprRStTuUVwWxXyYzZ%||EcECExEXEyEYOdOeOHOIOmOMOSOuOUOVOwOWOy',!0),G=N.to_luastring('aAbBcdHIjmMpSUwWxXyYzZ%||#c#x#d#H#I#j#m#M#S#U#w#W#y#Y',!0),H=function(se,ne,oe){N.lua_pushinteger(se,oe),N.lua_setfield(se,-2,N.to_luastring(ne,!0))},Y=function(se,ne,oe){H(se,'sec',oe?ne.getUTCSeconds():ne.getSeconds()),H(se,'min',oe?ne.getUTCMinutes():ne.getMinutes()),H(se,'hour',oe?ne.getUTCHours():ne.getHours()),H(se,'day',oe?ne.getUTCDate():ne.getDate()),H(se,'month',oe?ne.getUTCMonth():ne.getMonth()),H(se,'year',oe?ne.getUTCFullYear():ne.getFullYear()),H(se,'wday',oe?ne.getUTCDay():ne.getDay());let _e=new Date;H(se,'yday',_Mathfloor((_e-new Date(_e.getFullYear(),0,0))/86400000))},J=M.MAX_INT/2,q=function(se,ne,oe,_e){let pe=N.lua_getfield(se,-1,N.to_luastring(ne,!0)),ce=N.lua_tointegerx(se,-1);if(!1===ce){if(pe!==N.LUA_TNIL)return I.luaL_error(se,N.to_luastring(`field '${ne}' is not an integer`),!0);if(0>oe)return I.luaL_error(se,N.to_luastring(`field '${ne}' missing in date table`),!0);ce=oe}else{if(!(-J<=ce&&ce<=J))return I.luaL_error(se,N.to_luastring(`field '${ne}' is out-of-bound`),!0);ce-=_e}return N.lua_pop(se,1),ce},W=function(se,ne,oe){for(let _e=K,pe=1;0<_e.length&&pe<=ne.length;_e=_e.slice(pe))if(_e[0]==='|'.charCodeAt(0))pe++;else if(N.to_jsstring(ne.slice(0,pe))===N.to_jsstring(_e.slice(0,pe)))return oe.push(...ne.slice(0,pe)),ne.slice(pe);I.luaL_argerror(se,1,N.lua_pushliteral(se,`invalid conversion specifier '%${ne}'`,ne))},ee=function(se,ne){let oe=I.luaL_checkinteger(se,ne);return oe},ae={date:function(se){let ne=I.luaL_optlstring(se,1,'%c'),oe=1e3*I.luaL_opt(se,ee,2,new Date().getTime()/1e3),_e=new Date(oe),pe=!1;if(ne[0]==='!'.charCodeAt(0)&&(pe=!0,ne=ne.slice(1)),null===_e&&I.luaL_error(se,N.to_luastring('time result cannot be represented in this installation',!0)),'*t'===N.to_jsstring(ne))N.lua_createtable(se,0,9),Y(se,_e,pe);else{let de=[],ce;for(;0oa&&he(sa,oa,_a)},xe=function(sa,na){return sa.t.token===na&&(P.luaX_next(sa),!0)},Ue=function(sa,na){sa.t.token!==na&&Te(sa,na)},Ee=function(sa,na){Ue(sa,na),P.luaX_next(sa)},ke=function(sa,na,oa){na||P.luaX_syntaxerror(sa,oa)},ve=function(sa,na,oa,_a){xe(sa,na)||(_a===sa.linenumber?Te(sa,na):P.luaX_syntaxerror(sa,V.luaO_pushfstring(sa.L,N.to_luastring('%s expected (to close %s at line %d)'),P.luaX_token2str(sa,na),P.luaX_token2str(sa,oa),_a)))},Re=function(sa){Ue(sa,W.TK_NAME);let na=sa.t.seminfo.ts;return P.luaX_next(sa),na},be=function(sa,na,oa){sa.f=sa.t=I.NO_JUMP,sa.k=na,sa.u.info=oa},Se=function(sa,na,oa){be(na,se.VK,I.luaK_stringK(sa.fs,oa))},Ne=function(sa,na){Se(sa,na,Re(sa))},Ie=function(sa,na){let oa=sa.fs,_a=oa.f;return _a.locvars[oa.nlocvars]=new V.LocVar,_a.locvars[oa.nlocvars].varname=na,oa.nlocvars++},Ce=function(sa,na){let oa=sa.fs,_a=sa.dyd,ia=Ie(sa,na);Oe(oa,_a.actvar.n+1-oa.firstlocal,200,N.to_luastring('local variables',!0)),_a.actvar.arr[_a.actvar.n]=new ce,_a.actvar.arr[_a.actvar.n].idx=ia,_a.actvar.n++},Me=function(sa,na){Ce(sa,P.luaX_newstring(sa,N.to_luastring(na,!0)))},Pe=function(sa,na){let oa=sa.ls.dyd.actvar.arr[sa.firstlocal+na].idx;return E(oana;)Pe(sa,--sa.nactvar).endpc=sa.pc},Ke=function(sa,na){let oa=sa.f.upvalues;for(let _a=0;_ana;)oa=oa.previous;oa.upval=1},we=function(sa,na,oa,_a){if(null===sa)be(oa,se.VVOID,0);else{let ia=Ve(sa,na);if(0<=ia)be(oa,se.VLOCAL,ia),_a||Ge(sa,ia);else{let pa=Ke(sa,na);if(0>pa){if(we(sa.prev,na,oa,0),oa.k===se.VVOID)return;pa=Be(sa,na,oa)}be(oa,se.VUPVAL,pa)}}},Fe=function(sa,na){let oa=Re(sa),_a=sa.fs;if(we(_a,oa,na,1),na.k===se.VVOID){let ia=new _e;we(_a,sa.envn,na,1),E(na.k!==se.VVOID),Se(sa,ia,oa),I.luaK_indexed(_a,na,ia)}},Xe=function(sa,na,oa,_a){let ia=sa.fs,pa=na-oa;if(te(_a.k))pa++,0>pa&&(pa=0),I.luaK_setreturns(ia,_a,pa),1na&&(sa.fs.freereg-=oa-na)},He=function(sa){let na=sa.L;++na.nCcalls,Oe(sa.fs,na.nCcalls,K.LUAI_MAXCCALLS,N.to_luastring('JS levels',!0))},je=function(sa){return sa.L.nCcalls--},ze=function(sa,na,oa){let _a=sa.fs,ia=sa.dyd.gt,pa=ia.arr[na];if(E(ae(pa.name,oa.name)),pa.nactvar at line %d jumps into the scope of local \'%s\''),pa.name,pa.line,ca);Ae(sa,da)}I.luaK_patchlist(_a,pa.pc,oa.pc);for(let ca=na;caca.nactvar&&(oa.upval||_a.label.n>oa.firstlabel)&&I.luaK_patchclose(sa.fs,ia.pc,ca.nactvar),ze(sa,na,ca),!0;return!1},Je=function(sa,na,oa,_a,ia){let pa=na.n;return na.arr[pa]=new de,na.arr[pa].name=oa,na.arr[pa].line=_a,na.arr[pa].nactvar=sa.fs.nactvar,na.arr[pa].pc=ia,na.n=pa+1,pa},qe=function(sa,na){for(let oa=sa.dyd.gt,_a=sa.fs.bl.firstgoto;_ana.nactvar&&(na.upval&&I.luaK_patchclose(sa,ia.pc,na.nactvar),ia.nactvar=na.nactvar),Ye(sa.ls,oa)||oa++},Ze=function(sa,na,oa){na.isloop=oa,na.nactvar=sa.nactvar,na.firstlabel=sa.ls.dyd.label.n,na.firstgoto=sa.ls.dyd.gt.n,na.upval=0,na.previous=sa.bl,sa.bl=na,E(sa.freereg===sa.nactvar)},Qe=function(sa){let na=F.luaS_newliteral(sa.L,'break'),oa=Je(sa,sa.dyd.label,na,0,sa.fs.pc);qe(sa,sa.dyd.label.arr[oa])},$e=function(sa,na){let oa=P.isreserved(na.name)?'<%s> at line %d not inside a loop':'no visible label \'%s\' for at line %d';oa=V.luaO_pushfstring(sa.L,N.to_luastring(oa),na.name,na.line),Ae(sa,oa)},et=function(sa){let na=sa.L,oa=new q(na),_a=sa.fs,ia=_a.f;return ia.p[_a.np++]=oa,oa},at=function(sa,na){let oa=sa.fs.prev;be(na,se.VRELOCABLE,I.luaK_codeABx(oa,J.OP_CLOSURE,0,oa.np-1)),I.luaK_exp2nextreg(oa,na)},lt=function(sa,na,oa){na.prev=sa.fs,na.ls=sa,sa.fs=na,na.pc=0,na.lasttarget=0,na.jpc=I.NO_JUMP,na.freereg=0,na.nk=0,na.np=0,na.nups=0,na.nlocvars=0,na.nactvar=0,na.firstlocal=sa.dyd.actvar.n,na.bl=null;let _a=new q(sa.L);_a=na.f,_a.source=sa.source,_a.maxstacksize=2,Ze(na,oa,!1)},ut=function(sa){let na=sa.bl,oa=sa.ls;if(na.previous&&na.upval){let _a=I.luaK_jump(sa);I.luaK_patchclose(sa,_a,na.nactvar),I.luaK_patchtohere(sa,_a)}na.isloop&&Qe(oa),sa.bl=na.previous,De(sa,na.nactvar),E(na.nactvar===sa.nactvar),sa.freereg=sa.nactvar,oa.dyd.label.n=na.firstlabel,na.previous?We(sa,na):na.firstgoto or \'...\' expected',!0));}while(!oa.is_vararg&&xe(sa,$[',']));ye(sa,_a),oa.numparams=na.nactvar,I.luaK_reserveregs(na,na.nactvar)},ht=function(sa,na,oa,_a){let ia=new pe,pa=new ue;ia.f=et(sa),ia.f.linedefined=_a,lt(sa,ia,pa),Ee(sa,$['(']),oa&&(Me(sa,'self'),ye(sa,1)),Tt(sa),Ee(sa,$[')']),nt(sa),ia.f.lastlinedefined=sa.linenumber,ve(sa,W.TK_END,W.TK_FUNCTION,_a),at(sa,na),rt(sa)},Ot=function(sa,na){let oa=1;for(It(sa,na);xe(sa,$[',']);)I.luaK_exp2nextreg(sa.fs,na),It(sa,na),oa++;return oa},xt=function(sa,na,oa){let _a=sa.fs,ia=new _e;switch(sa.t.token){case $['(']:{P.luaX_next(sa),sa.t.token===$[')']?ia.k=se.VVOID:(Ot(sa,ia),I.luaK_setmultret(_a,ia)),ve(sa,$[')'],$['('],oa);break}case $['{']:{At(sa,ia);break}case W.TK_STRING:{Se(sa,ia,sa.t.seminfo.ts),P.luaX_next(sa);break}default:P.luaX_syntaxerror(sa,N.to_luastring('function arguments expected',!0));}E(na.k===se.VNONRELOC);let ca=na.u.info,pa;te(ia.k)?pa=N.LUA_MULTRET:(ia.k!==se.VVOID&&I.luaK_exp2nextreg(_a,ia),pa=_a.freereg-(ca+1)),be(na,se.VCALL,I.luaK_codeABC(_a,J.OP_CALL,ca,pa+1,2)),I.luaK_fixline(_a,oa),_a.freereg=ca+1},Ut=function(sa,na){switch(sa.t.token){case $['(']:{let oa=sa.linenumber;return P.luaX_next(sa),It(sa,na),ve(sa,$[')'],$['('],oa),void I.luaK_dischargevars(sa.fs,na)}case W.TK_NAME:return void Fe(sa,na);default:P.luaX_syntaxerror(sa,N.to_luastring('unexpected symbol',!0));}},Et=function(sa,na){let oa=sa.fs,_a=sa.linenumber;for(Ut(sa,na);;)switch(sa.t.token){case $['.']:{ot(sa,na);break}case $['[']:{let ia=new _e;I.luaK_exp2anyregup(oa,na),_t(sa,ia),I.luaK_indexed(oa,na,ia);break}case $[':']:{let ia=new _e;P.luaX_next(sa),Ne(sa,ia),I.luaK_self(oa,na,ia),xt(sa,na,_a);break}case $['(']:case W.TK_STRING:case $['{']:{I.luaK_exp2nextreg(oa,na),xt(sa,na,_a);break}default:return;}},kt=function(sa,na){switch(sa.t.token){case W.TK_FLT:{be(na,se.VKFLT,0),na.u.nval=sa.t.seminfo.r;break}case W.TK_INT:{be(na,se.VKINT,0),na.u.ival=sa.t.seminfo.i;break}case W.TK_STRING:{Se(sa,na,sa.t.seminfo.ts);break}case W.TK_NIL:{be(na,se.VNIL,0);break}case W.TK_TRUE:{be(na,se.VTRUE,0);break}case W.TK_FALSE:{be(na,se.VFALSE,0);break}case W.TK_DOTS:{let oa=sa.fs;ke(sa,oa.f.is_vararg,N.to_luastring('cannot use \'...\' outside a vararg function',!0)),be(na,se.VVARARG,I.luaK_codeABC(oa,J.OP_VARARG,0,1,0));break}case $['{']:return void At(sa,na);case W.TK_FUNCTION:return P.luaX_next(sa),void ht(sa,na,0,sa.linenumber);default:return void Et(sa,na);}P.luaX_next(sa)},vt=function(sa){return sa===W.TK_NOT?Q.OPR_NOT:sa===$['-']?Q.OPR_MINUS:sa===$['~']?Q.OPR_BNOT:sa===$['#']?Q.OPR_LEN:Q.OPR_NOUNOPR},Rt=function(sa){return sa===$['+']?Y.OPR_ADD:sa===$['-']?Y.OPR_SUB:sa===$['*']?Y.OPR_MUL:sa===$['%']?Y.OPR_MOD:sa===$['^']?Y.OPR_POW:sa===$['/']?Y.OPR_DIV:sa===W.TK_IDIV?Y.OPR_IDIV:sa===$['&']?Y.OPR_BAND:sa===$['|']?Y.OPR_BOR:sa===$['~']?Y.OPR_BXOR:sa===W.TK_SHL?Y.OPR_SHL:sa===W.TK_SHR?Y.OPR_SHR:sa===W.TK_CONCAT?Y.OPR_CONCAT:sa===W.TK_NE?Y.OPR_NE:sa===W.TK_EQ?Y.OPR_EQ:sa===$['<']?Y.OPR_LT:sa===W.TK_LE?Y.OPR_LE:sa===$['>']?Y.OPR_GT:sa===W.TK_GE?Y.OPR_GE:sa===W.TK_AND?Y.OPR_AND:sa===W.TK_OR?Y.OPR_OR:Y.OPR_NOBINOPR},bt=[{left:10,right:10},{left:10,right:10},{left:11,right:11},{left:11,right:11},{left:14,right:13},{left:11,right:11},{left:11,right:11},{left:6,right:6},{left:4,right:4},{left:5,right:5},{left:7,right:7},{left:7,right:7},{left:9,right:8},{left:3,right:3},{left:3,right:3},{left:3,right:3},{left:3,right:3},{left:3,right:3},{left:3,right:3},{left:2,right:2},{left:1,right:1}],Nt=function(sa,na,oa){He(sa);let _a=vt(sa.t.token);if(_a!==Q.OPR_NOUNOPR){let pa=sa.linenumber;P.luaX_next(sa),Nt(sa,na,12),I.luaK_prefix(sa.fs,_a,na,pa)}else kt(sa,na);let ia=Rt(sa.t.token);for(;ia!==Y.OPR_NOBINOPR&&bt[ia].left>oa;){let pa=new _e,ca=sa.linenumber;P.luaX_next(sa),I.luaK_infix(sa.fs,ia,na);let da=Nt(sa,pa,bt[ia].right);I.luaK_posfix(sa.fs,ia,na,pa,ca),ia=da}return je(sa),ia},It=function(sa,na){Nt(sa,na,0)},Ct=function(sa){let na=sa.fs,oa=new ue;Ze(na,oa,0),nt(sa),ut(na)};class Mt{constructor(){this.prev=null,this.v=new _e}}const Pt=function(sa,na,oa){let _a=sa.fs,ia=_a.freereg,pa=!1;for(;na;na=na.prev)na.v.k===se.VINDEXED&&(na.v.u.ind.vt===oa.k&&na.v.u.ind.t===oa.u.info&&(pa=!0,na.v.u.ind.vt=se.VLOCAL,na.v.u.ind.t=ia),oa.k===se.VLOCAL&&na.v.u.ind.idx===oa.u.info&&(pa=!0,na.v.u.ind.idx=ia));if(pa){let ca=oa.k===se.VLOCAL?J.OP_MOVE:J.OP_GETUPVAL;I.luaK_codeABC(_a,ca,ia,oa.u.info,0),I.luaK_reserveregs(_a,1)}},yt=function(sa,na,oa){let _a=new _e;if(ke(sa,ne(na.v.k),N.to_luastring('syntax error',!0)),xe(sa,$[','])){let ia=new Mt;ia.prev=na,Et(sa,ia.v),ia.v.k!==se.VINDEXED&&Pt(sa,na,ia.v),Oe(sa.fs,oa+sa.L.nCcalls,K.LUAI_MAXCCALLS,N.to_luastring('JS levels',!0)),yt(sa,ia,oa+1)}else{Ee(sa,$['=']);let ia=Ot(sa,_a);if(ia!==oa)Xe(sa,oa,ia,_a);else return I.luaK_setoneret(sa.fs,_a),void I.luaK_storevar(sa.fs,na.v,_a)}be(_a,se.VNONRELOC,sa.fs.freereg-1),I.luaK_storevar(sa.fs,na.v,_a)},Dt=function(sa){let na=new _e;return It(sa,na),na.k===se.VNIL&&(na.k=se.VFALSE),I.luaK_goiftrue(sa.fs,na),na.f},Kt=function(sa,na){let oa=sa.linenumber,_a;xe(sa,W.TK_GOTO)?_a=Re(sa):(P.luaX_next(sa),_a=F.luaS_newliteral(sa.L,'break'));let ia=Je(sa,sa.dyd.gt,_a,oa,na);Ye(sa,ia)},Bt=function(sa,na,oa){for(let _a=sa.bl.firstlabel;_a=sa.fs.freereg&&sa.fs.freereg>=sa.fs.nactvar),sa.fs.freereg=sa.fs.nactvar,je(sa)},la=function(sa,na){let oa=new ue,_a=new _e;lt(sa,na,oa),na.f.is_vararg=!0,be(_a,se.VLOCAL,0),Be(na,sa.envn,_a),P.luaX_next(sa),nt(sa),Ue(sa,W.TK_EOS),rt(sa)};T.exports.Dyndata=class{constructor(){this.actvar={arr:[],n:NaN,size:NaN},this.gt=new Le,this.label=new Le}},T.exports.expkind=se,T.exports.expdesc=_e,T.exports.luaY_parser=function(sa,na,oa,_a,ia,pa){let ca=new P.LexState,da=new pe,La=M.luaF_newLclosure(sa,1);return sa.stack[sa.top++]=new Z(N.CT.LUA_TLCL,La),ca.h=H.luaH_new(sa),sa.stack[sa.top++]=ca.h,da.f=La.p=new q(sa),da.f.source=F.luaS_new(sa,ia),ca.buff=oa,ca.dyd=_a,_a.actvar.n=_a.gt.n=_a.label.n=0,P.luaX_setinput(sa,ca,na,da.f.source,pa),la(ca,da),E(!da.prev&&1===da.nups&&!ca.fs),E(0===_a.actvar.n&&0===_a.gt.n&&0===_a.label.n),sa.top--,La},T.exports.vkisinreg=function(sa){return sa===se.VNONRELOC||sa===se.VLOCAL}},function(T,O,U){'use strict';const E=U(0),N=U(41).sprintf,I=U(6),M=U(2),P=U(12),K=U(4),V='%',G=V.charCodeAt(0),H=2147483647,Y=function(Gt){let wt=Gt.indexOf(0);return-1wt?0:wt+Gt+1},Q=function(Gt,wt,Ft,Xt){return E(Array.isArray(wt)),Xt.push(...wt.slice(0,Ft)),0},ee=P.LUA_NUMBER_FRMLEN.length+1,te=1,ae=function(Gt,wt,Ft){let Xt=_Mathfloor(Ft);return Gt[wt]=10>Xt?Xt+'0'.charCodeAt(0):Xt-10+'a'.charCodeAt(0),Ft-Xt},ue=function(Gt){let wt=[];if(Object.is(Gt,Infinity))return M.to_luastring('inf',!0);if(Object.is(Gt,-Infinity))return M.to_luastring('-inf',!0);if(_NumberisNaN(Gt))return M.to_luastring('nan',!0);if(0===Gt){let Ft=N(P.LUA_NUMBER_FMT+'x0p+0',Gt).split('').map((Xt)=>Xt.charCodeAt(0));return Object.is(Gt,-0)?['-'.charCodeAt(0)].concat(Ft):Ft}let Ft=P.frexp(Gt),Xt=Ft[0],Ht=Ft[1],jt=0;if(0>Xt&&(wt[jt++]='-'.charCodeAt(0),Xt=-Xt),wt[jt++]='0'.charCodeAt(0),wt[jt++]='x'.charCodeAt(0),Xt=ae(wt,jt++,Xt*(1<Yt.charCodeAt(0));return wt.slice(0,jt+1).concat(zt).concat(wt.slice(jt))},se=function(Gt,wt,Ft){let Xt=ue(Ft);if(wt[ee]==='A'.charCodeAt(0))for(let Ht=0;Ht'a'.charCodeAt(0)<=Gt&&Gt<='z'.charCodeAt(0)||Gt>='A'.charCodeAt(0)&&Gt<='Z'.charCodeAt(0),ce=(Gt)=>'0'.charCodeAt(0)<=Gt&&Gt<='9'.charCodeAt(0),de=(Gt)=>0<=Gt&&31>=Gt||127===Gt,Le=(Gt)=>32Gt,ge=(Gt)=>/^(?![A-Z]).*$/.test(_StringfromCharCode(Gt)),Ae=(Gt)=>/^(?![a-z]).*$/.test(_StringfromCharCode(Gt)),Te=(Gt)=>/^[a-zA-Z0-9]$/.test(_StringfromCharCode(Gt)),he=(Gt)=>Le(Gt)&&!Te(Gt),Oe=(Gt)=>/^\s$/.test(_StringfromCharCode(Gt)),xe=(Gt)=>/^[0-9A-Fa-f]$/.test(_StringfromCharCode(Gt)),Ue=function(Gt,wt){for(let Ft=0;FtGt.indexOf('.'.charCodeAt(0))){let wt=P.lua_getlocaledecpoint().charCodeAt(0),Ft=Gt.indexOf(wt);Ft&&(Gt[Ft]='.')}},ve=function(Gt,wt,Ft){switch(M.lua_type(Gt,Ft)){case M.LUA_TSTRING:{let Xt=M.lua_tostring(Gt,Ft);Ee(wt,Xt,Xt.length);break}case M.LUA_TNUMBER:{if(!M.lua_isinteger(Gt,Ft)){let Xt=M.lua_tonumber(Gt,Ft);Ue(wt,se(Gt,M.to_luastring(`%${P.LUA_INTEGER_FRMLEN}a`),Xt)),ke(wt)}else{let Xt=M.lua_tointeger(Gt,Ft);Ue(wt,M.to_luastring(N('%d',Xt)))}break}case M.LUA_TNIL:case M.LUA_TBOOLEAN:{Ue(wt,I.luaL_tolstring(Gt,Ft));break}default:I.luaL_argerror(Gt,Ft,M.to_luastring('value has no literal form',!0));}},Re=function(Gt,wt,Ft){let Xt=wt;for(;0!==Xt[0]&&0<=oe.indexOf(Xt[0]);)Xt=Xt.slice(1);wt.length-Xt.length>=oe.length&&I.luaL_error(Gt,M.to_luastring('invalid format (repeated flags)',!0)),ce(Xt[0])&&(Xt=Xt.slice(1)),ce(Xt[0])&&(Xt=Xt.slice(1)),Xt[0]==='.'.charCodeAt(0)&&(Xt=Xt.slice(1),ce(Xt[0])&&(Xt=Xt.slice(1)),ce(Xt[0])&&(Xt=Xt.slice(1))),ce(Xt[0])&&I.luaL_error(Gt,M.to_luastring('invalid format (width or precision too long)',!0)),Ft[0]='%'.charCodeAt(0);for(let Ht=0;Ht=Gt.s.length||!Be(Gt.s[Gt.off]))return wt;let Ft=0;do Ft=10*Ft+(Gt.s[Gt.off++]-'0'.charCodeAt(0));while(Gt.offIe||0>=Xt)&&I.luaL_error(Gt.L,M.to_luastring('integral size (%d) out of limits [1,%d]'),Xt,Ie),Xt},we=function(Gt,wt){let Ft={opt:NaN,size:NaN,opt:wt.s[wt.off++],size:0};switch(Ft.opt){case'b'.charCodeAt(0):return Ft.size=1,Ft.opt=Ke.Kint,Ft;case'B'.charCodeAt(0):return Ft.size=1,Ft.opt=Ke.Kuint,Ft;case'h'.charCodeAt(0):return Ft.size=2,Ft.opt=Ke.Kint,Ft;case'H'.charCodeAt(0):return Ft.size=2,Ft.opt=Ke.Kuint,Ft;case'l'.charCodeAt(0):return Ft.size=8,Ft.opt=Ke.Kint,Ft;case'L'.charCodeAt(0):return Ft.size=8,Ft.opt=Ke.Kuint,Ft;case'j'.charCodeAt(0):return Ft.size=4,Ft.opt=Ke.Kint,Ft;case'J'.charCodeAt(0):return Ft.size=8,Ft.opt=Ke.Kuint,Ft;case'T'.charCodeAt(0):return Ft.size=8,Ft.opt=Ke.Kuint,Ft;case'f'.charCodeAt(0):return Ft.size=4,Ft.opt=Ke.Kfloat,Ft;case'd'.charCodeAt(0):return Ft.size=8,Ft.opt=Ke.Kfloat,Ft;case'n'.charCodeAt(0):return Ft.size=8,Ft.opt=Ke.Kfloat,Ft;case'i'.charCodeAt(0):return Ft.size=Ge(Gt,wt,4),Ft.opt=Ke.Kint,Ft;case'I'.charCodeAt(0):return Ft.size=Ge(Gt,wt,4),Ft.opt=Ke.Kuint,Ft;case's'.charCodeAt(0):return Ft.size=Ge(Gt,wt,8),Ft.opt=Ke.Kstring,Ft;case'c'.charCodeAt(0):return Ft.size=Ve(wt,-1),-1===Ft.size&&I.luaL_error(Gt.L,M.to_luastring('missing size for format option \'c\'')),Ft.opt=Ke.Kchar,Ft;case'z'.charCodeAt(0):return Ft.opt=Ke.Kzstr,Ft;case'x'.charCodeAt(0):return Ft.size=1,Ft.opt=Ke.Kpadding,Ft;case'X'.charCodeAt(0):return Ft.opt=Ke.Kpaddalign,Ft;case' '.charCodeAt(0):break;case'<'.charCodeAt(0):Gt.islittle=!0;break;case'>'.charCodeAt(0):Gt.islittle=!1;break;case'='.charCodeAt(0):Gt.islittle=!0;break;case'!'.charCodeAt(0):Gt.maxalign=Ge(Gt,wt,8);break;default:I.luaL_error(Gt.L,M.to_luastring('invalid format option \'%c\''),Ft.opt);}return Ft.opt=Ke.Knop,Ft},Fe=function(Gt,wt,Ft){let Xt={opt:NaN,size:NaN,ntoalign:NaN},Ht=we(Gt,Ft);Xt.size=Ht.size,Xt.opt=Ht.opt;let jt=Xt.size;if(Xt.opt===Ke.Kpaddalign)if(Ft.off>=Ft.s.length||0===Ft.s[Ft.off])I.luaL_argerror(Gt.L,1,M.to_luastring('invalid next option for option \'X\'',!0));else{let zt=we(Gt,Ft);jt=zt.size,zt=zt.opt,(zt===Ke.Kchar||0===jt)&&I.luaL_argerror(Gt.L,1,M.to_luastring('invalid next option for option \'X\'',!0))}return 1>=jt||Xt.opt===Ke.Kchar?Xt.ntoalign=0:(jt>Gt.maxalign&&(jt=Gt.maxalign),0!=(jt&jt-1)&&I.luaL_argerror(Gt.L,1,M.to_luastring('format asks for alignment not power of 2',!0)),Xt.ntoalign=jt-(wt&jt-1)&jt-1),Xt},Xe=function(Gt,wt,Ft,Xt,Ht){let jt=Array(Xt);jt[Ft?0:Xt-1]=wt&Pe;for(let zt=1;zt>=Me,jt[Ft?zt:Xt-1-zt]=wt&Pe;if(Ht&&Xt>Ce)for(let zt=Ce;ztjt;jt++)Gt.push(Ht.getUint8(jt,Ft))},Qe=function(Gt,wt,Ft,Xt,Ht){let jt=0,zt=Xt<=Ce?Xt:Ce;for(let Yt=zt-1;0<=Yt;Yt--)jt<<=Me,jt|=wt[Ft?Yt:Xt-1-Yt];if(XtCe){let Yt=Ht||0<=jt?0:Pe;for(let Jt=zt;Jt=Xt);let Ht=new DataView(new ArrayBuffer(Xt));return wt.forEach((jt,zt)=>Ht.setUint8(zt,jt,Ft)),Ht.getFloat64(0,Ft)},at=-1,lt=-2,ut=200,rt=['^'.charCodeAt(0),'$'.charCodeAt(0),'*'.charCodeAt(0),'+'.charCodeAt(0),'?'.charCodeAt(0),'.'.charCodeAt(0),'('.charCodeAt(0),'['.charCodeAt(0),'%'.charCodeAt(0),'-'.charCodeAt(0)];class st{constructor(Gt){this.src=null,this.src_init=null,this.src_end=null,this.p=null,this.p_end=null,this.L=Gt,this.matchdepth=NaN,this.level=NaN,this.capture=[]}}const nt=function(Gt,wt){return wt-='1'.charCodeAt(0),0>wt||wt>=Gt.level||Gt.capture[wt].len===at?I.luaL_error(Gt.L,M.to_luastring('invalid capture index %%%d'),wt+1):wt},ot=function(Gt){let wt=Gt.level;for(wt--;0<=wt;wt--)if(Gt.capture[wt].len===at)return wt;return I.luaL_error(Gt.L,M.to_luastring('invalid pattern capture'))},_t=function(Gt,wt){switch(Gt.p[wt++]){case G:return wt===Gt.p_end&&I.luaL_error(Gt.L,M.to_luastring('malformed pattern (ends with \'%%\')')),wt+1;case'['.charCodeAt(0):{Gt.p[wt]==='^'.charCodeAt(0)&&wt++;do wt===Gt.p_end&&I.luaL_error(Gt.L,M.to_luastring('malformed pattern (missing \']\')')),Gt.p[wt++]===G&&wt=Gt.src_end)return!1;let Ht=Gt.src[wt];switch(Gt.p[Ft]){case'.'.charCodeAt(0):return!0;case G:return it(Ht,Gt.p[Ft+1]);case'['.charCodeAt(0):return pt(Gt,Ht,Ft,Xt-1);default:return Gt.p[Ft]===Ht;}},dt=function(Gt,wt,Ft){if(Ft>=Gt.p_end-1&&I.luaL_error(Gt.L,M.to_luastring('malformed pattern (missing arguments to \'%%b\'')),Gt.src[wt]!==Gt.p[Ft])return null;for(let Xt=Gt.p[Ft],Ht=Gt.p[Ft+1],jt=1;++wt=Xt&&Gt.src.slice(Gt.capture[Ft].init,Gt.capture[Ft].init+Xt)===Gt.src.slice(wt,wt+Xt)?wt+Xt:null},Ot=function(Gt,wt,Ft){let Xt=!1,Ht=!0;for(0==Gt.matchdepth--&&I.luaL_error(Gt.L,M.to_luastring('pattern too complex',!0));Ht||Xt;)if(Ht=!1,Ft!==Gt.p_end)switch(Xt?'x'.charCodeAt(0):Gt.p[Ft]){case'('.charCodeAt(0):{wt=Gt.p[Ft+1]===')'.charCodeAt(0)?At(Gt,wt,Ft+2,lt):At(Gt,wt,Ft+1,at);break}case')'.charCodeAt(0):{wt=Tt(Gt,wt,Ft+1);break}case'$'.charCodeAt(0):{if(Ft+1!==Gt.p_end){Xt=!0;break}wt=0===Gt.src.slice(wt).length?wt:null;break}case G:{switch(Gt.p[Ft+1]){case'b'.charCodeAt(0):{wt=dt(Gt,wt,Ft+2),null!==wt&&(Ft=Ft.slice(4),Ht=!0);break}case'f'.charCodeAt(0):{Ft+=2,'['!==Gt.p[Ft]&&I.luaL_error(Gt.L,M.to_luastring('missing \'[\' after \'%%f\' in pattern'));let jt=_t(Gt,Ft),zt=wt===Gt.src_init?0:Gt.s[wt-1];if(!pt(Gt,zt,Ft,jt-1)&&pt(Gt,Gt.src[wt],Ft,jt-1)){Ft=jt,Ht=!0;break}wt=null;break}case'0'.charCodeAt(0):case'1'.charCodeAt(0):case'2'.charCodeAt(0):case'3'.charCodeAt(0):case'4'.charCodeAt(0):case'5'.charCodeAt(0):case'6'.charCodeAt(0):case'7'.charCodeAt(0):case'8'.charCodeAt(0):case'9'.charCodeAt(0):{wt=ht(Gt,wt,Gt.p[Ft+1]),null!==wt&&(Ft+=2,Ht=!0);break}default:Xt=!0;}break}default:{Xt=!1;let jt=_t(Gt,Ft);if(!!ct(Gt,wt,Ft,jt))switch(Gt.p[jt]){case'?'.charCodeAt(0):{let zt;null===(zt=Ot(Gt,wt+1,jt+1))?(Ft=jt+1,Ht=!0):wt=zt;break}case'+'.charCodeAt(0):wt++;case'*'.charCodeAt(0):wt=Lt(Gt,wt,Ft,jt);break;case'-'.charCodeAt(0):wt=ft(Gt,wt,Ft,jt);break;default:wt++,Ft=jt,Ht=!0;}else if(Gt.p[jt]==='*'.charCodeAt(0)||Gt.p[jt]==='?'.charCodeAt(0)||Gt.p[jt]==='-'.charCodeAt(0)){Ft=jt+1,Ht=!0;break}else wt=null;break}}return Gt.matchdepth++,wt},xt=function(Gt,wt,Ft,Xt){if(wt>=Gt.level)0===wt?M.lua_pushlstring(Gt.L,Gt.src.slice(Ft),Xt-Ft):I.luaL_error(Gt.L,M.to_luastring(`invalid capture index %${wt+1}`));else{let Ht=Gt.capture[wt].len;Ht===at&&I.luaL_error(Gt.L,M.to_luastring('unfinished capture',!0)),Ht===lt?M.lua_pushinteger(Gt.L,Gt.src_init+1):M.lua_pushlstring(Gt.L,Gt.src.slice(Gt.capture[wt].init),Ht)}},Ut=function(Gt,wt,Ft){let Xt=0===Gt.level&&Gt.src.slice(wt)?1:Gt.level;I.luaL_checkstack(Gt.L,Xt,M.to_luastring('too many catpures',!0));for(let Ht=0;Ht>>0,Ht=wt.length,jt=Gt.length+1-Ht;loop:for(;Xtzt)zt=1;else if(zt>Ht+1)return M.lua_pushnil(Gt),1;if(wt&&(M.lua_toboolean(Gt,4)||Et(Xt,jt))){let Yt=Rt(Ft.slice(zt-1),Xt,0);if(-1Xt&&(Xt=1),Ht>Ft&&(Ht=Ft),Xt>Ht)return 0;if(Ht-Xt>=K.MAX_INT)return I.luaL_error(Gt,M.to_luastring('string slice too long',!0));let jt=Ht-Xt+1;I.luaL_checkstack(Gt,jt,M.to_luastring('string slice too long',!0));for(let zt=0;zt=Ht,'value out of range'),Ft.push(Ht);return M.lua_pushstring(Gt,Ft),1},dump:function(Gt){let wt=[],Ft=M.lua_toboolean(Gt,2);return(I.luaL_checktype(Gt,1,M.LUA_TFUNCTION),M.lua_settop(Gt,1),0!==M.lua_dump(Gt,Q,wt,Ft))?I.luaL_error(Gt,M.to_luastring('unable to dump given function')):(M.lua_pushstring(Gt,wt),1)},find:function(Gt){return bt(Gt,1)},format:function(Gt){let wt=M.lua_gettop(Gt),Ft=1,Xt=I.luaL_checkstring(Gt,Ft),Ht=[];for(;0wt&&I.luaL_argerror(Gt,Ft,M.to_luastring('no value',!0));let zt=Re(Gt,Xt,jt);switch(Xt=zt.p,jt=zt.form,_StringfromCharCode(Xt[0])){case'c':{Xt=Xt.slice(1),Ht.push(I.luaL_checkinteger(Gt,Ft));break}case'd':case'i':case'o':case'u':case'x':case'X':{Xt=Xt.slice(1);let Yt=I.luaL_checkinteger(Gt,Ft);jt=be(jt,P.LUA_INTEGER_FRMLEN.split('').map((Jt)=>Jt.charCodeAt(0))),Ue(Ht,M.to_luastring(N(_StringfromCharCode(...jt),Yt)));break}case'a':case'A':{Xt=Xt.slice(1),jt=be(jt,P.LUA_INTEGER_FRMLEN.split('').map((Yt)=>Yt.charCodeAt(0))),Ue(Ht,se(Gt,jt,I.luaL_checknumber(Gt,Ft)));break}case'e':case'E':case'f':case'g':case'G':{Xt=Xt.slice(1);let Yt=I.luaL_checknumber(Gt,Ft);jt=be(jt,P.LUA_INTEGER_FRMLEN.split('').map((Jt)=>Jt.charCodeAt(0))),Ue(Ht,M.to_luastring(N(_StringfromCharCode(...jt),Yt)));break}case'q':{Xt=Xt.slice(1),ve(Gt,Ht,Ft);break}case's':{Xt=Xt.slice(1);let Yt=I.luaL_tolstring(Gt,Ft);2>=jt.length||0===jt[2]?(Ue(Ht,Yt),M.lua_pop(Gt,1)):(I.luaL_argcheck(Gt,Yt.length===Y(Yt),Ft,M.to_luastring('string contains zeros',!0)),0>jt.indexOf('.'.charCodeAt(0))&&100<=Yt.length?(Ue(Ht,Yt),M.lua_pop(Gt,1)):(Ue(Ht,M.to_luastring(N(_StringfromCharCode(...jt),M.to_jsstring(Yt)))),M.lua_pop(Gt,1)));break}default:return I.luaL_error(Gt,M.to_luastring('invalid option \'%%%c\' to \'format\''),Xt[0]);}}return M.lua_pushstring(Gt,Ht),1},gmatch:function(Gt){let wt=I.luaL_checkstring(Gt,1),Ft=I.luaL_checkstring(Gt,2),Xt=wt.length,Ht=Ft.length;M.lua_settop(Gt,2);let jt=new It;return M.lua_pushlightuserdata(Gt,jt),kt(jt.ms,Gt,wt,Xt,Ft,Ht),jt.src=0,jt.p=0,jt.lastmatch=null,M.lua_pushcclosure(Gt,Ct,3),1},gsub:function(Gt){let wt=I.luaL_checkstring(Gt,1),Ft=wt.length,Xt=I.luaL_checkstring(Gt,2),Ht=Xt.length,jt=null,zt=M.lua_type(Gt,3),Yt=I.luaL_optinteger(Gt,4,Ft+1),Jt=Xt[0]==='^'.charCodeAt(0),qt=0,Wt=new st(Gt),Zt=new I.luaL_Buffer;for(I.luaL_argcheck(Gt,zt===M.LUA_TNUMBER||zt===M.LUA_TSTRING||zt===M.LUA_TFUNCTION||zt===M.LUA_TTABLE,3,M.to_luastring('string/function/table expected',!0)),I.luaL_buffinit(Gt,Zt),Jt&&(Xt=Xt.slice(1),Ht--),kt(Wt,Gt,wt,Ft,Xt,Ht),wt=0,Xt=0;qtWt);break}case Ke.Kuint:{let Wt=I.luaL_checkinteger(Gt,Ht);Jt=Me||Zt<1<H/Ft)return I.luaL_error(Gt,M.to_luastring('resulting string too large',!0));let Ht=[];for(let jt=0;jtXt&&(Xt=1),Ht>Ft&&(Ht=Ft),Xt<=Ht?M.lua_pushstring(Gt,wt.slice(Xt-1,Xt-1+(Ht-Xt+1))):M.lua_pushliteral(Gt,''),1},unpack:function(Gt){let wt=new De(Gt),Ft={s:I.luaL_checkstring(Gt,1),off:0},Xt=I.luaL_checkstring(Gt,2),Ht=Xt.length,jt=J(I.luaL_optinteger(Gt,3,1),Ht)-1,zt=0;for(I.luaL_argcheck(Gt,jt<=Ht,3,M.to_luastring('initial position out of string',!0));Ft.offHt&&I.luaL_argerror(Gt,2,M.to_luastring('data string too short',!0)),jt+=Wt,I.luaL_checkstack(Gt,2,M.to_luastring('too many results',!0)),zt++,Jt){case Ke.Kint:case Ke.Kuint:{let Zt=Qe(Gt,Xt.slice(jt),wt.islittle,qt,Jt===Ke.Kint);M.lua_pushinteger(Gt,Zt);break}case Ke.Kfloat:{let Zt=$e(Gt,Xt.slice(jt),wt.islittle,qt);M.lua_pushnumber(Gt,Zt);break}case Ke.Kchar:{M.lua_pushstring(Gt,Xt.slice(jt,jt+qt));break}case Ke.Kstring:{let Zt=Qe(Gt,Xt.slice(jt),wt.islittle,qt,0);I.luaL_argcheck(Gt,jt+Zt+qt<=Ht,2,M.to_luastring('data string too short',!0)),M.lua_pushstring(Gt,Xt.slice(jt+qt,jt+qt+Zt)),jt+=Zt;break}case Ke.Kzstr:{let Zt=Xt.slice(jt).indexOf(0);M.lua_pushstring(Gt,Xt.slice(jt,jt+Zt)),jt+=Zt+1;break}case Ke.Kpaddalign:case Ke.Kpadding:case Ke.Knop:zt--;}jt+=qt}return M.lua_pushinteger(Gt,jt+1),zt+1},upper:function(Gt){return M.lua_pushstring(Gt,M.to_luastring(M.to_jsstring(I.luaL_checkstring(Gt,1)).toUpperCase())),1}},Bt=function(Gt){M.lua_createtable(Gt,0,1),M.lua_pushliteral(Gt,''),M.lua_pushvalue(Gt,-2),M.lua_setmetatable(Gt,-2),M.lua_pop(Gt,1),M.lua_pushvalue(Gt,-2),M.lua_setfield(Gt,-2,M.to_luastring('__index',!0)),M.lua_pop(Gt,1)};T.exports.luaopen_string=function(Gt){return I.luaL_newlib(Gt,Kt),Bt(Gt),1}},function(T,O,U){'use strict';const E=U(0),N=U(2),I=U(6),M=U(4),P=1,K=2,V=4,G=P|K,F=function(Le,ge,Ae){return N.lua_pushstring(Le,ge),N.lua_rawget(Le,-Ae)!==N.LUA_TNIL},H=function(Le,ge,Ae){if(N.lua_type(Le,ge)!==N.LUA_TTABLE){let Te=1;N.lua_getmetatable(Le,ge)&&(!(Ae&P)||F(Le,N.to_luastring('__index',!0),++Te))&&(!(Ae&K)||F(Le,N.to_luastring('__newindex',!0),++Te))&&(!(Ae&V)||F(Le,N.to_luastring('__len',!0),++Te))?N.lua_pop(Le,Te):I.luaL_checktype(Le,ge,N.LUA_TTABLE)}},Y=function(Le,ge,Ae){return H(Le,ge,Ae|V),I.luaL_len(Le,ge)},J=function(Le,ge,Ae){N.lua_geti(Le,1,Ae),N.lua_isstring(Le,-1)||I.luaL_error(Le,N.to_luastring('invalid value (%s) at index %d in table for \'concat\''),I.luaL_typename(Le,-1),Ae),I.luaL_addvalue(ge)},te=function(){return _Mathfloor(1*Math.random()<<32)},ue=function(Le,ge,Ae){N.lua_seti(Le,1,ge),N.lua_seti(Le,1,Ae)},se=function(Le,ge,Ae){if(N.lua_isnil(Le,2))return N.lua_compare(Le,ge,Ae,N.LUA_OPLT);N.lua_pushvalue(Le,2),N.lua_pushvalue(Le,ge-1),N.lua_pushvalue(Le,Ae-2),N.lua_call(Le,2,1);let Te=N.lua_toboolean(Le,-1);return N.lua_pop(Le,1),Te},ne=function(Le,ge,Ae){for(let Te=ge,he=Ae-1;;){for(;N.lua_geti(Le,1,++Te),se(Le,-1,-2);)Te==Ae-1&&I.luaL_error(Le,N.to_luastring('invalid order function for sorting')),N.lua_pop(Le,1);for(;N.lua_geti(Le,1,--he),se(Le,-3,-1);)heAe-ge||0===Te?_Mathfloor((ge+Ae)/2):oe(ge,Ae,Te),N.lua_geti(Le,1,he),N.lua_geti(Le,1,ge),se(Le,-2,-1)?ue(Le,he,ge):(N.lua_pop(Le,1),N.lua_geti(Le,1,Ae),se(Le,-1,-2)?ue(Le,he,Ae):N.lua_pop(Le,2)),2==Ae-ge)return;N.lua_geti(Le,1,he),N.lua_pushvalue(Le,-1),N.lua_geti(Le,1,Ae-1),ue(Le,he,Ae-1),he=ne(Le,ge,Ae);let Oe;he-geOe&&(Te=te())}},ce={concat:function(Le){let ge=Y(Le,1,P),Ae=I.luaL_optlstring(Le,2,[]),Te=I.luaL_optinteger(Le,3,1);ge=I.luaL_optinteger(Le,4,ge);let he=new I.luaL_Buffer;for(I.luaL_buffinit(Le,he);TeAe;Te--)N.lua_geti(Le,1,Te-1),N.lua_seti(Le,1,Te);break}default:return I.luaL_error(Le,N.to_luastring('wrong number of arguments to \'insert\'',!0));}return N.lua_seti(Le,1,Ae),0},move:function(Le){let ge=I.luaL_checkinteger(Le,2),Ae=I.luaL_checkinteger(Le,3),Te=I.luaL_checkinteger(Le,4),he=N.lua_isnoneornil(Le,5)?1:5;if(H(Le,1,P),H(Le,he,K),Ae>=ge){I.luaL_argcheck(Le,0Ae||Te<=ge||1!=he&&1!==N.lua_compare(Le,1,he,N.LUA_OPEQ))for(let xe=0;xeAe)return 0;let Te=Ae-ge;if(Te>=M.MAX_INT||!N.lua_checkstack(Le,++Te))return I.luaL_error(Le,N.to_luastring('too many results to unpack',!0));for(;gete?0:te+ee+1},V=function(ee){let ue=ee[0],se=0,ne=0;if(128>ue)se=ue;else{let oe=0;for(;64&ue;){let _e=ee[++oe];if(128!=(192&_e))return null;se=se<<6|63&_e,ue<<=1}if(se|=(127&ue)<<5*oe,3M||se<=[255,127,2047,65535][oe])return null;ee=ee.slice(oe),ne+=oe}return{string:ee.slice(1),code:se,pos:ne+1}},F=function(ee,te){let ae=N.luaL_checkinteger(ee,te);N.luaL_argcheck(ee,0<=ae&&ae<=M,te,E.to_luastring('value out of range',!0)),E.lua_pushstring(ee,E.to_luastring(_StringfromCharCode(ae)))},q=function(ee){let te=N.luaL_checkstring(ee,1),ae=te.length,ue=E.lua_tointeger(ee,2)-1;if(0>ue)ue=0;else if(ue=ae)return 0;let se=V(te.slice(ue)),ne=se?se.code:null,oe=se?se.string:null;return null===oe||P(oe[0])?N.luaL_error(ee,E.to_luastring('invalid UTF-8 code',!0)):(E.lua_pushinteger(ee,ue+1),E.lua_pushinteger(ee,ne),2)},Z={char:function(ee){let te=E.lua_gettop(ee);if(1===te)F(ee,1);else{let ae=new N.luaL_Buffer;N.luaL_buffinit(ee,ae);for(let ue=1;ue<=te;ue++)F(ee,ue),N.luaL_addvalue(ae);N.luaL_pushresult(ae)}return 1},codepoint:function(ee){let te=N.luaL_checkstring(ee,1),ae=K(N.luaL_optinteger(ee,2,1),te.length),ue=K(N.luaL_optinteger(ee,3,ae),te.length);if(N.luaL_argcheck(ee,1<=ae,2,E.to_luastring('out of range',!0)),N.luaL_argcheck(ee,ue<=te.length,3,E.to_luastring('out of range',!0)),ae>ue)return 0;if(ue-ae>=I.MAX_INT)return N.luaL_error(ee,E.to_luastring('string slice too long',!0));let se=ue-ae+1;for(N.luaL_checkstack(ee,se,E.to_luastring('string slice too long',!0)),se=0,te=te.slice(ae-1);seae)for(;0>ae&&0Y.s0&&(Y.s0+=1),Y.s1-=J(H),0>Y.s1&&(Y.s1+=1),Y.s2-=J(H),0>Y.s2&&(Y.s2+=1),J=null}function V(H,Y){return Y.c=H.c,Y.s0=H.s0,Y.s1=H.s1,Y.s2=H.s2,Y}function G(H,Y){var J=new K(H),q=Y&&Y.state,W=J.next;return W.int32=function(){return 0|4294967296*J.next()},W.double=function(){return W()+1.1102230246251565e-16*(0|2097152*W())},W.quick=W,q&&('object'==typeof q&&V(q,J),W.state=function(){return V(J,{})}),W}function F(){var H=4022871197;return function(J){J=J.toString();for(var q=0;q>>0,W-=H,W*=H,H=W>>>0,W-=H,H+=4294967296*W}return 2.3283064365386963e-10*(H>>>0)}}M&&M.exports?M.exports=G:U(3)&&U(13)?(N=function(){return G}.call(O,U,O,M),!(void 0!==N&&(M.exports=N))):this.alea=G})(this,'object'==typeof E&&E,U(3))}).call(O,U(14)(T))},function(T,O,U){(function(E){var N;(function(I,M){function K(F){var H=this,Y='';H.next=function(){var q=H.b,W=H.c,Z=H.d,Q=H.a;return q=q<<25^q>>>7^W,W=0|W-Z,Z=Z<<24^Z>>>8^Q,Q=0|Q-q,H.b=q=q<<20^q>>>12^W,H.c=W=0|W-Z,H.d=Z<<16^W>>>16^Q,H.a=0|Q-q},H.a=0,H.b=0,H.c=-1640531527,H.d=1367130551,F===_Mathfloor(F)?(H.a=0|F/4294967296,H.b=0|F):Y+=F;for(var J=0;J>>0)/4294967296};return q.double=function(){do var W=Y.next()>>>11,Z=(Y.next()>>>0)/4294967296,Q=(W+Z)/2097152;while(0===Q);return Q},q.int32=Y.next,q.quick=q,J&&('object'==typeof J&&V(J,Y),q.state=function(){return V(Y,{})}),q}M&&M.exports?M.exports=G:U(3)&&U(13)?(N=function(){return G}.call(O,U,O,M),!(void 0!==N&&(M.exports=N))):this.tychei=G})(this,'object'==typeof E&&E,U(3))}).call(O,U(14)(T))},function(T,O,U){(function(E){var N;(function(I,M){function K(F){var H=this,Y='';H.x=0,H.y=0,H.z=0,H.w=0,H.next=function(){var q=H.x^H.x<<11;return H.x=H.y,H.y=H.z,H.z=H.w,H.w^=H.w>>>19^q^q>>>8},F===(0|F)?H.x=F:Y+=F;for(var J=0;J>>0)/4294967296};return q.double=function(){do var W=Y.next()>>>11,Z=(Y.next()>>>0)/4294967296,Q=(W+Z)/2097152;while(0===Q);return Q},q.int32=Y.next,q.quick=q,J&&('object'==typeof J&&V(J,Y),q.state=function(){return V(Y,{})}),q}M&&M.exports?M.exports=G:U(3)&&U(13)?(N=function(){return G}.call(O,U,O,M),!(void 0!==N&&(M.exports=N))):this.xor128=G})(this,'object'==typeof E&&E,U(3))}).call(O,U(14)(T))},function(T,O,U){(function(E){var N;(function(I,M){function K(F){var Y=this;Y.next=function(){var J=Y.w,q=Y.X,W=Y.i,Z,Q;return Y.w=J=0|J+1640531527,Q=q[127&W+34],Z=q[W=127&W+1],Q^=Q<<13,Z^=Z<<17,Q^=Q>>>15,Z^=Z>>>12,Q=q[W]=Q^Z,Y.i=W,0|Q+(J^J>>>16)},function(J,q){var te=[],ae=128,W,Z,Q,$,ee;for(q===(0|q)?(Z=q,q=null):(q+='\0',Z=0,ae=_Mathmax(ae,q.length)),Q=0,$=-32;$>>15,Z^=Z<<4,Z^=Z>>>13,0<=$&&(ee=0|ee+1640531527,W=te[127&$]^=Z+ee,Q=0==W?Q+1:0);for(128<=Q&&(te[127&(q&&q.length||0)]=-1),Q=127,$=512;0<$;--$)Z=te[127&Q+34],W=te[Q=127&Q+1],Z^=Z<<13,W^=W<<17,Z^=Z>>>15,W^=W>>>12,te[Q]=Z^W;J.w=ee,J.X=te,J.i=Q}(Y,F)}function V(F,H){return H.i=F.i,H.w=F.w,H.X=F.X.slice(),H}function G(F,H){null==F&&(F=+new Date);var Y=new K(F),J=H&&H.state,q=function(){return(Y.next()>>>0)/4294967296};return q.double=function(){do var W=Y.next()>>>11,Z=(Y.next()>>>0)/4294967296,Q=(W+Z)/2097152;while(0===Q);return Q},q.int32=Y.next,q.quick=q,J&&(J.X&&V(J,Y),q.state=function(){return V(Y,{})}),q}M&&M.exports?M.exports=G:U(3)&&U(13)?(N=function(){return G}.call(O,U,O,M),!(void 0!==N&&(M.exports=N))):this.xor4096=G})(this,'object'==typeof E&&E,U(3))}).call(O,U(14)(T))},function(T,O,U){(function(E){var N;(function(I,M){function K(F){var Y=this;Y.next=function(){var J=Y.x,q=Y.i,W,Z;return W=J[q],W^=W>>>7,Z=W^W<<24,W=J[7&q+1],Z^=W^W>>>10,W=J[7&q+3],Z^=W^W>>>3,W=J[7&q+4],Z^=W^W<<7,W=J[7&q+7],W^=W<<13,Z^=W^W<<9,J[q]=Z,Y.i=7&q+1,Z},function(J,q){var Q=[],W,Z;if(q===(0|q))Z=Q[0]=q;else for(q=''+q,W=0;WQ.length;)Q.push(0);for(W=0;8>W&&0===Q[W];++W);for(Z=8==W?Q[7]=-1:Q[W],J.x=Q,J.i=0,W=256;0>>0)/4294967296};return q.double=function(){do var W=Y.next()>>>11,Z=(Y.next()>>>0)/4294967296,Q=(W+Z)/2097152;while(0===Q);return Q},q.int32=Y.next,q.quick=q,J&&(J.x&&V(J,Y),q.state=function(){return V(Y,{})}),q}M&&M.exports?M.exports=G:U(3)&&U(13)?(N=function(){return G}.call(O,U,O,M),!(void 0!==N&&(M.exports=N))):this.xorshift7=G})(this,'object'==typeof E&&E,U(3))}).call(O,U(14)(T))},function(T,O,U){(function(E){var N;(function(I,M){function K(F){var H=this,Y='';H.next=function(){var q=H.x^H.x>>>2;return H.x=H.y,H.y=H.z,H.z=H.w,H.w=H.v,0|(H.d=0|H.d+362437)+(H.v=H.v^H.v<<4^(q^q<<1))},H.x=0,H.y=0,H.z=0,H.w=0,H.v=0,F===(0|F)?H.x=F:Y+=F;for(var J=0;J>>4),H.next()}function V(F,H){return H.x=F.x,H.y=F.y,H.z=F.z,H.w=F.w,H.v=F.v,H.d=F.d,H}function G(F,H){var Y=new K(F),J=H&&H.state,q=function(){return(Y.next()>>>0)/4294967296};return q.double=function(){do var W=Y.next()>>>11,Z=(Y.next()>>>0)/4294967296,Q=(W+Z)/2097152;while(0===Q);return Q},q.int32=Y.next,q.quick=q,J&&('object'==typeof J&&V(J,Y),q.state=function(){return V(Y,{})}),q}M&&M.exports?M.exports=G:U(3)&&U(13)?(N=function(){return G}.call(O,U,O,M),!(void 0!==N&&(M.exports=N))):this.xorwow=G})(this,'object'==typeof E&&E,U(3))}).call(O,U(14)(T))},function(T,O,U){var E;(function(N,I){function M(ue,se,ne){var oe=[];se=!0==se?{entropy:!0}:se||{};var _e=G(V(se.entropy?[ue,H(N)]:null==ue?F():ue,3),oe),pe=new P(oe),ce=function(){for(var de=pe.g(q),Le=Q,ge=0;de<$;)de=(de+ge)*J,Le*=J,ge=pe.g(1);for(;de>=ee;)de/=2,Le/=2,ge>>>=1;return(de+ge)/Le};return ce.int32=function(){return 0|pe.g(4)},ce.quick=function(){return pe.g(4)/4294967296},ce.double=ce,G(H(pe.S),N),(se.pass||ne||function(de,Le,ge,Ae){return Ae&&(Ae.S&&K(Ae,pe),de.state=function(){return K(pe,{})}),ge?(I[Z]=de,Le):de})(ce,_e,'global'in se?se.global:this==I,se.state)}function P(ue){var ne=ue.length,oe=this,_e=0,pe=oe.i=oe.j=0,ce=oe.S=[],se;for(ne||(ue=[ne++]);_e=H&&G[F]?G[F][H]:Array(H+1).join(F)}var K={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^\)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[\+\-]/};I.format=function(F,H){var Y=1,J=F.length,q='',Z=[],se=!0,ne='',W,Q,$,ee,te,ae,ue;for(Q=0;Q>>0;break;case'v':W=W.valueOf(),W=ee[7]?W.substring(0,ee[7]):W;break;case'x':W=parseInt(W,10).toString(16);break;case'X':W=parseInt(W,10).toString(16).toUpperCase();}K.json.test(ee[8])?Z[Z.length]=W:(K.number.test(ee[8])&&(!se||ee[3])?(ne=se?'+':'-',W=W.toString().replace(K.sign,'')):ne='',ae=ee[4]?'0'===ee[4]?'0':ee[4].charAt(1):' ',ue=ee[6]-(ne+W).length,te=ee[6]?0_e.getHours()?pe.am:pe.pm;break;case 82:de+=$(pe.formats.R,_e,pe,ce);break;case 83:de+=E(_e.getSeconds(),Le);break;case 84:de+=$(pe.formats.T,_e,pe,ce);break;case 85:de+=E(M(_e,'sunday'),Le);break;case 87:de+=E(M(_e,'monday'),Le);break;case 88:de+=$(pe.formats.X,_e,pe,ce);break;case 89:de+=_e.getFullYear();break;case 90:if(ae&&0===te)de+='GMT';else{var xe=_e.toString().match(/\(([\w\s]+)\)/);de+=xe&&xe[1]||''}break;case 97:de+=pe.shortDays[_e.getDay()];break;case 98:de+=pe.shortMonths[_e.getMonth()];break;case 99:de+=$(pe.formats.c,_e,pe,ce);break;case 100:de+=E(_e.getDate(),Le);break;case 101:de+=E(_e.getDate(),null==Le?' ':Le);break;case 104:de+=pe.shortMonths[_e.getMonth()];break;case 106:var Ue=new Date(_e.getFullYear(),0,1),Ee=_Mathceil((_e.getTime()-Ue.getTime())/86400000);de+=N(Ee);break;case 107:de+=E(_e.getHours(),null==Le?' ':Le);break;case 108:de+=E(I(_e.getHours()),null==Le?' ':Le);break;case 109:de+=E(_e.getMonth()+1,Le);break;case 110:de+='\n';break;case 111:var Ee=_e.getDate();de+=pe.ordinalSuffixes?Ee+''+(pe.ordinalSuffixes[Ee-1]||P(Ee)):Ee+''+P(Ee);break;case 112:de+=12>_e.getHours()?pe.AM:pe.PM;break;case 114:de+=$(pe.formats.r,_e,pe,ce);break;case 115:de+=_Mathfloor(ce/1e3);break;case 116:de+='\t';break;case 117:var Ee=_e.getDay();de+=0===Ee?7:Ee;break;case 118:de+=$(pe.formats.v,_e,pe,ce);break;case 119:de+=_e.getDay();break;case 120:de+=$(pe.formats.x,_e,pe,ce);break;case 121:de+=(''+_e.getFullYear()).slice(2);break;case 122:if(ae&&0===te)de+=Te?'+00:00':'+0000';else{var ke=0===te?-_e.getTimezoneOffset():te/60000,ve=0>ke?'-':'+',Re=Te?':':'',be=_Mathfloor(_Mathabs(ke/60)),Se=_Mathabs(ke%60);de+=ve+E(be)+Re+E(Se)}break;default:ge&&(de+='%'),de+=oe[he];}Le=null,ge=!1;continue}if(37===Oe){ge=!0;continue}de+=oe[he]}return de}var ee=q||F,te=W||0,ae=Z||!1,ue=0,ne=function(oe,_e){var pe;if(!_e){var ce=Date.now();ce>ue?(ue=ce,se=new Date(ue),pe=ue,ae&&(se=new Date(ue+K(se)+te))):pe=ue,_e=se}else if(pe=_e.getTime(),ae){var de=K(_e);if(_e=new Date(pe+de+te),K(_e)!==de){var Le=K(_e);_e=new Date(pe+Le+te)}}return $(oe,_e,ee,pe)},se;return ne.localize=function(oe){return new U(oe||ee,te,ae)},ne.localizeByIdentifier=function(oe){var _e=G[oe];return _e?ne.localize(_e):(V('[WARNING] No locale found with identifier "'+oe+'".'),ne)},ne.timezone=function(oe){var _e=te,pe=ae,ce=typeof oe;if('number'==ce||'string'==ce)if(pe=!0,'string'==ce){var de='-'===oe[0]?-1:1,Le=parseInt(oe.slice(1,3),10),ge=parseInt(oe.slice(3,5),10);_e=1e3*(60*(de*(60*Le+ge)))}else'number'==ce&&(_e=1e3*(60*oe));return new U(ee,_e,pe)},ne.utc=function(){return new U(ee,te,!0)},ne}function E(q,W){return''===W||9=Z||0==W||4<=W?'th':1==W?'st':2==W?'nd':3==W?'rd':void 0}function K(q){return 6e4*(q.getTimezoneOffset()||0)}function V(q){'undefined'!=typeof console&&'function'==typeof console.warn&&console.warn(q)}var G={de_DE:{days:['Sonntag','Montag','Dienstag','Mittwoch','Donnerstag','Freitag','Samstag'],shortDays:['So','Mo','Di','Mi','Do','Fr','Sa'],months:['Januar','Februar','M\xE4rz','April','Mai','Juni','Juli','August','September','Oktober','November','Dezember'],shortMonths:['Jan','Feb','M\xE4r','Apr','Mai','Jun','Jul','Aug','Sep','Okt','Nov','Dez'],AM:'AM',PM:'PM',am:'am',pm:'pm',formats:{c:'%a %d %b %Y %X %Z',D:'%d.%m.%Y',F:'%Y-%m-%d',R:'%H:%M',r:'%I:%M:%S %p',T:'%H:%M:%S',v:'%e-%b-%Y',X:'%T',x:'%D'}},en_CA:{days:['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday'],shortDays:['Sun','Mon','Tue','Wed','Thu','Fri','Sat'],months:['January','February','March','April','May','June','July','August','September','October','November','December'],shortMonths:['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'],ordinalSuffixes:['st','nd','rd','th','th','th','th','th','th','th','th','th','th','th','th','th','th','th','th','th','st','nd','rd','th','th','th','th','th','th','th','st'],AM:'AM',PM:'PM',am:'am',pm:'pm',formats:{c:'%a %d %b %Y %X %Z',D:'%d/%m/%y',F:'%Y-%m-%d',R:'%H:%M',r:'%I:%M:%S %p',T:'%H:%M:%S',v:'%e-%b-%Y',X:'%r',x:'%D'}},en_US:{days:['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday'],shortDays:['Sun','Mon','Tue','Wed','Thu','Fri','Sat'],months:['January','February','March','April','May','June','July','August','September','October','November','December'],shortMonths:['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'],ordinalSuffixes:['st','nd','rd','th','th','th','th','th','th','th','th','th','th','th','th','th','th','th','th','th','st','nd','rd','th','th','th','th','th','th','th','st'],AM:'AM',PM:'PM',am:'am',pm:'pm',formats:{c:'%a %d %b %Y %X %Z',D:'%m/%d/%y',F:'%Y-%m-%d',R:'%H:%M',r:'%I:%M:%S %p',T:'%H:%M:%S',v:'%e-%b-%Y',X:'%r',x:'%D'}},es_MX:{days:['domingo','lunes','martes','mi\xE9rcoles','jueves','viernes','s\xE1bado'],shortDays:['dom','lun','mar','mi\xE9','jue','vie','s\xE1b'],months:['enero','febrero','marzo','abril','mayo','junio','julio','agosto','septiembre','octubre','noviembre',' diciembre'],shortMonths:['ene','feb','mar','abr','may','jun','jul','ago','sep','oct','nov','dic'],AM:'AM',PM:'PM',am:'am',pm:'pm',formats:{c:'%a %d %b %Y %X %Z',D:'%d/%m/%Y',F:'%Y-%m-%d',R:'%H:%M',r:'%I:%M:%S %p',T:'%H:%M:%S',v:'%e-%b-%Y',X:'%T',x:'%D'}},fr_FR:{days:['dimanche','lundi','mardi','mercredi','jeudi','vendredi','samedi'],shortDays:['dim.','lun.','mar.','mer.','jeu.','ven.','sam.'],months:['janvier','f\xE9vrier','mars','avril','mai','juin','juillet','ao\xFBt','septembre','octobre','novembre','d\xE9cembre'],shortMonths:['janv.','f\xE9vr.','mars','avril','mai','juin','juil.','ao\xFBt','sept.','oct.','nov.','d\xE9c.'],AM:'AM',PM:'PM',am:'am',pm:'pm',formats:{c:'%a %d %b %Y %X %Z',D:'%d/%m/%Y',F:'%Y-%m-%d',R:'%H:%M',r:'%I:%M:%S %p',T:'%H:%M:%S',v:'%e-%b-%Y',X:'%T',x:'%D'}},it_IT:{days:['domenica','luned\xEC','marted\xEC','mercoled\xEC','gioved\xEC','venerd\xEC','sabato'],shortDays:['dom','lun','mar','mer','gio','ven','sab'],months:['gennaio','febbraio','marzo','aprile','maggio','giugno','luglio','agosto','settembre','ottobre','novembre','dicembre'],shortMonths:['pr','mag','giu','lug','ago','set','ott','nov','dic'],AM:'AM',PM:'PM',am:'am',pm:'pm',formats:{c:'%a %d %b %Y %X %Z',D:'%d/%m/%Y',F:'%Y-%m-%d',R:'%H:%M',r:'%I:%M:%S %p',T:'%H:%M:%S',v:'%e-%b-%Y',X:'%T',x:'%D'}},nl_NL:{days:['zondag','maandag','dinsdag','woensdag','donderdag','vrijdag','zaterdag'],shortDays:['zo','ma','di','wo','do','vr','za'],months:['januari','februari','maart','april','mei','juni','juli','augustus','september','oktober','november','december'],shortMonths:['jan','feb','mrt','apr','mei','jun','jul','aug','sep','okt','nov','dec'],AM:'AM',PM:'PM',am:'am',pm:'pm',formats:{c:'%a %d %b %Y %X %Z',D:'%d-%m-%y',F:'%Y-%m-%d',R:'%H:%M',r:'%I:%M:%S %p',T:'%H:%M:%S',v:'%e-%b-%Y',X:'%T',x:'%D'}},pt_BR:{days:['domingo','segunda','ter\xE7a','quarta','quinta','sexta','s\xE1bado'],shortDays:['Dom','Seg','Ter','Qua','Qui','Sex','S\xE1b'],months:['janeiro','fevereiro','mar\xE7o','abril','maio','junho','julho','agosto','setembro','outubro','novembro','dezembro'],shortMonths:['Jan','Fev','Mar','Abr','Mai','Jun','Jul','Ago','Set','Out','Nov','Dez'],AM:'AM',PM:'PM',am:'am',pm:'pm',formats:{c:'%a %d %b %Y %X %Z',D:'%d-%m-%Y',F:'%Y-%m-%d',R:'%H:%M',r:'%I:%M:%S %p',T:'%H:%M:%S',v:'%e-%b-%Y',X:'%T',x:'%D'}},ru_RU:{days:['\u0412\u043E\u0441\u043A\u0440\u0435\u0441\u0435\u043D\u044C\u0435','\u041F\u043E\u043D\u0435\u0434\u0435\u043B\u044C\u043D\u0438\u043A','\u0412\u0442\u043E\u0440\u043D\u0438\u043A','\u0421\u0440\u0435\u0434\u0430','\u0427\u0435\u0442\u0432\u0435\u0440\u0433','\u041F\u044F\u0442\u043D\u0438\u0446\u0430','\u0421\u0443\u0431\u0431\u043E\u0442\u0430'],shortDays:['\u0412\u0441','\u041F\u043D','\u0412\u0442','\u0421\u0440','\u0427\u0442','\u041F\u0442','\u0421\u0431'],months:['\u042F\u043D\u0432\u0430\u0440\u044C','\u0424\u0435\u0432\u0440\u0430\u043B\u044C','\u041C\u0430\u0440\u0442','\u0410\u043F\u0440\u0435\u043B\u044C','\u041C\u0430\u0439','\u0418\u044E\u043D\u044C','\u0418\u044E\u043B\u044C','\u0410\u0432\u0433\u0443\u0441\u0442','\u0421\u0435\u043D\u0442\u044F\u0431\u0440\u044C','\u041E\u043A\u0442\u044F\u0431\u0440\u044C','\u041D\u043E\u044F\u0431\u0440\u044C','\u0414\u0435\u043A\u0430\u0431\u0440\u044C'],shortMonths:['\u044F\u043D\u0432','\u0444\u0435\u0432','\u043C\u0430\u0440','\u0430\u043F\u0440','\u043C\u0430\u0439','\u0438\u044E\u043D','\u0438\u044E\u043B','\u0430\u0432\u0433','\u0441\u0435\u043D','\u043E\u043A\u0442','\u043D\u043E\u044F','\u0434\u0435\u043A'],AM:'AM',PM:'PM',am:'am',pm:'pm',formats:{c:'%a %d %b %Y %X',D:'%d.%m.%y',F:'%Y-%m-%d',R:'%H:%M',r:'%I:%M:%S %p',T:'%H:%M:%S',v:'%e-%b-%Y',X:'%T',x:'%D'}},tr_TR:{days:['Pazar','Pazartesi','Sal\u0131','\xC7ar\u015Famba','Per\u015Fembe','Cuma','Cumartesi'],shortDays:['Paz','Pzt','Sal','\xC7r\u015F','Pr\u015F','Cum','Cts'],months:['Ocak','\u015Eubat','Mart','Nisan','May\u0131s','Haziran','Temmuz','A\u011Fustos','Eyl\xFCl','Ekim','Kas\u0131m','Aral\u0131k'],shortMonths:['Oca','\u015Eub','Mar','Nis','May','Haz','Tem','A\u011Fu','Eyl','Eki','Kas','Ara'],AM:'\xD6\xD6',PM:'\xD6S',am:'\xD6\xD6',pm:'\xD6S',formats:{c:'%a %d %b %Y %X %Z',D:'%d-%m-%Y',F:'%Y-%m-%d',R:'%H:%M',r:'%I:%M:%S %p',T:'%H:%M:%S',v:'%e-%b-%Y',X:'%T',x:'%D'}},zh_CN:{days:['\u661F\u671F\u65E5','\u661F\u671F\u4E00','\u661F\u671F\u4E8C','\u661F\u671F\u4E09','\u661F\u671F\u56DB','\u661F\u671F\u4E94','\u661F\u671F\u516D'],shortDays:['\u65E5','\u4E00','\u4E8C','\u4E09','\u56DB','\u4E94','\u516D'],months:['\u4E00\u6708\u4EFD','\u4E8C\u6708\u4EFD','\u4E09\u6708\u4EFD','\u56DB\u6708\u4EFD','\u4E94\u6708\u4EFD','\u516D\u6708\u4EFD','\u4E03\u6708\u4EFD','\u516B\u6708\u4EFD','\u4E5D\u6708\u4EFD','\u5341\u6708\u4EFD','\u5341\u4E00\u6708\u4EFD','\u5341\u4E8C\u6708\u4EFD'],shortMonths:['\u4E00\u6708','\u4E8C\u6708','\u4E09\u6708','\u56DB\u6708','\u4E94\u6708','\u516D\u6708','\u4E03\u6708','\u516B\u6708','\u4E5D\u6708','\u5341\u6708','\u5341\u4E00\u6708','\u5341\u4E8C\u6708'],AM:'\u4E0A\u5348',PM:'\u4E0B\u5348',am:'\u4E0A\u5348',pm:'\u4E0B\u5348',formats:{c:'%a %d %b %Y %X %Z',D:'%d/%m/%y',F:'%Y-%m-%d',R:'%H:%M',r:'%I:%M:%S %p',T:'%H:%M:%S',v:'%e-%b-%Y',X:'%r',x:'%D'}}},F=G.en_US,H=new U(F,0,!1),J;'undefined'==typeof T?(J=function(){return this||(1,eval)('this')}(),J.strftime=H):J=T.exports=H,'function'!=typeof Date.now&&(Date.now=function(){return+new Date})})()},function(T){T.exports='function'==typeof Object.create?function(E,N){E.super_=N,E.prototype=Object.create(N.prototype,{constructor:{value:E,enumerable:!1,writable:!0,configurable:!0}})}:function(E,N){E.super_=N;var I=function(){};I.prototype=N.prototype,E.prototype=new I,E.prototype.constructor=E}},function(T){T.exports=function(E){return E&&'object'==typeof E&&'function'==typeof E.copy&&'function'==typeof E.fill&&'function'==typeof E.readUInt8}},function(T,O,U){(function(E,N){function I(xe,Ue){var Ee={seen:[],stylize:P};return 3<=arguments.length&&(Ee.depth=arguments[2]),4<=arguments.length&&(Ee.colors=arguments[3]),W(Ue)?Ee.showHidden=Ue:Ue&&O._extend(Ee,Ue),ae(Ee.showHidden)&&(Ee.showHidden=!1),ae(Ee.depth)&&(Ee.depth=2),ae(Ee.colors)&&(Ee.colors=!1),ae(Ee.customInspect)&&(Ee.customInspect=!0),Ee.colors&&(Ee.stylize=M),V(Ee,xe,Ee.depth)}function M(xe,Ue){var Ee=I.styles[Ue];return Ee?'\x1B['+I.colors[Ee][0]+'m'+xe+'\x1B['+I.colors[Ee][1]+'m':xe}function P(xe){return xe}function K(xe){var Ue={};return xe.forEach(function(Ee){Ue[Ee]=!0}),Ue}function V(xe,Ue,Ee){if(xe.customInspect&&Ue&&_e(Ue.inspect)&&Ue.inspect!==O.inspect&&!(Ue.constructor&&Ue.constructor.prototype===Ue)){var ke=Ue.inspect(Ee,xe);return ee(ke)||(ke=V(xe,ke,Ee)),ke}var ve=G(xe,Ue);if(ve)return ve;var Re=Object.keys(Ue),be=K(Re);if(xe.showHidden&&(Re=Object.getOwnPropertyNames(Ue)),oe(Ue)&&(0<=Re.indexOf('message')||0<=Re.indexOf('description')))return F(Ue);if(0===Re.length){if(_e(Ue)){var Se=Ue.name?': '+Ue.name:'';return xe.stylize('[Function'+Se+']','special')}if(ue(Ue))return xe.stylize(RegExp.prototype.toString.call(Ue),'regexp');if(ne(Ue))return xe.stylize(Date.prototype.toString.call(Ue),'date');if(oe(Ue))return F(Ue)}var Ne='',Ie=!1,Ce=['{','}'];if(q(Ue)&&(Ie=!0,Ce=['[',']']),_e(Ue)){var Me=Ue.name?': '+Ue.name:'';Ne=' [Function'+Me+']'}if(ue(Ue)&&(Ne=' '+RegExp.prototype.toString.call(Ue)),ne(Ue)&&(Ne=' '+Date.prototype.toUTCString.call(Ue)),oe(Ue)&&(Ne=' '+F(Ue)),0===Re.length&&(!Ie||0==Ue.length))return Ce[0]+Ne+Ce[1];if(0>Ee)return ue(Ue)?xe.stylize(RegExp.prototype.toString.call(Ue),'regexp'):xe.stylize('[Object]','special');xe.seen.push(Ue);var Pe;return Pe=Ie?H(xe,Ue,Ee,be,Re):Re.map(function(ye){return Y(xe,Ue,Ee,be,ye,Ie)}),xe.seen.pop(),J(Pe,Ne,Ce)}function G(xe,Ue){if(ae(Ue))return xe.stylize('undefined','undefined');if(ee(Ue)){var Ee='\''+JSON.stringify(Ue).replace(/^"|"$/g,'').replace(/'/g,'\\\'').replace(/\\"/g,'"')+'\'';return xe.stylize(Ee,'string')}return $(Ue)?xe.stylize(''+Ue,'number'):W(Ue)?xe.stylize(''+Ue,'boolean'):Z(Ue)?xe.stylize('null','null'):void 0}function F(xe){return'['+Error.prototype.toString.call(xe)+']'}function H(xe,Ue,Ee,ke,ve){for(var Re=[],be=0,Se=Ue.length;bexe.seen.indexOf(Ne.value)?(Se=Z(Ee)?V(xe,Ne.value,null):V(xe,Ne.value,Ee-1),-1xe?'0'+xe.toString(10):xe.toString(10)}function Le(){var xe=new Date,Ue=[de(xe.getHours()),de(xe.getMinutes()),de(xe.getSeconds())].join(':');return[xe.getDate(),Oe[xe.getMonth()],Ue].join(' ')}function ge(xe,Ue){return Object.prototype.hasOwnProperty.call(xe,Ue)}var Ae=/%[sdj%]/g;O.format=function(xe){if(!ee(xe)){for(var Ue=[],Ee=0;Ee=ve)return Se;switch(Se){case'%s':return ke[Ee++]+'';case'%d':return+ke[Ee++];case'%j':try{return JSON.stringify(ke[Ee++])}catch(Ne){return'[Circular]'}default:return Se;}}),be=ke[Ee];Eehe?he=Te+he:he>Te&&(he=Te),I.luaL_argcheck(Ae,1<=he,1,N.to_luastring('index out of range',!0)),Te-he},setmetatable:function(Ae){let Te=N.lua_type(Ae,2);return(I.luaL_checktype(Ae,1,N.LUA_TTABLE),I.luaL_argcheck(Ae,Te===N.LUA_TNIL||Te===N.LUA_TTABLE,2,N.to_luastring('nil or table expected',!0)),I.luaL_getmetafield(Ae,1,N.to_luastring('__metatable',!0))!==N.LUA_TNIL)?I.luaL_error(Ae,N.to_luastring('cannot change a protected metatable',!0)):(N.lua_settop(Ae,2),N.lua_setmetatable(Ae,1),1)},tonumber:function(Ae){if(0>=N.lua_type(Ae,2)){if(I.luaL_checkany(Ae,1),N.lua_type(Ae,1)===N.LUA_TNUMBER)return N.lua_settop(Ae,1),1;let Te=N.lua_tostring(Ae,1);if(null!==Te&&N.lua_stringtonumber(Ae,Te)===Te.length)return 1}else{let Te=I.luaL_checkinteger(Ae,2);I.luaL_checktype(Ae,1,N.LUA_TSTRING);let he=N.lua_tostring(Ae,1);I.luaL_argcheck(Ae,2<=Te&&36>=Te,2,N.to_luastring('base out of range',!0));let Oe=parseInt(N.to_jsstring(he),Te);if(!isNaN(Oe))return N.lua_pushinteger(Ae,Oe),1}return N.lua_pushnil(Ae),1},tostring:function(Ae){return I.luaL_checkany(Ae,1),I.luaL_tolstring(Ae,1),1},type:function(Ae){let Te=N.lua_type(Ae,1);return I.luaL_argcheck(Ae,Te!==N.LUA_TNONE,1,N.to_luastring('value expected',!0)),N.lua_pushstring(Ae,N.lua_typename(Ae,Te)),1},xpcall:function(Ae){let Te=N.lua_gettop(Ae);I.luaL_checktype(Ae,2,N.LUA_TFUNCTION),N.lua_pushboolean(Ae,1),N.lua_pushvalue(Ae,1),N.lua_rotate(Ae,3,2);let he=N.lua_pcallk(Ae,Te-2,N.LUA_MULTRET,2,2,se);return se(Ae,he,2)}};T.exports.luaopen_base=function(Ae){return N.lua_pushglobaltable(Ae),I.luaL_setfuncs(Ae,Le,0),N.lua_pushvalue(Ae,-1),N.lua_setfield(Ae,-2,N.to_luastring('_G',!0)),N.lua_pushliteral(Ae,N.LUA_VERSION),N.lua_setfield(Ae,-2,N.to_luastring('_VERSION',!0)),1}}).call(O,U(18))},function(T,O,U){'use strict';const E=U(0),N=U(1),I=U(19),M=U(5),P=U(20),K=U(29),V=U(7),G=U(10),F=U(16),H=U(17),Y=N.CT,J=P.OpCodesI,q=M.TValue,W=function(Et,kt,vt,Rt,bt){switch(kt){case N.LUA_OPBAND:case N.LUA_OPBOR:case N.LUA_OPBXOR:case N.LUA_OPSHL:case N.LUA_OPSHR:case N.LUA_OPBNOT:{let St=H.tointeger(vt),Nt=H.tointeger(Rt);if(!1!==St&&!1!==Nt)return bt.type=Y.LUA_TNUMINT,void(bt.value=M.intarith(Et,kt,St,Nt));break}case N.LUA_OPDIV:case N.LUA_OPPOW:{let St=H.tonumber(vt),Nt=H.tonumber(Rt);if(!1!==St&&!1!==Nt)return bt.type=Y.LUA_TNUMFLT,void(bt.value=M.numarith(Et,kt,St,Nt));break}default:{let St=H.tonumber(vt),Nt=H.tonumber(Rt);if(vt.ttisinteger()&&Rt.ttisinteger())return bt.type=Y.LUA_TNUMINT,void(bt.value=M.intarith(Et,kt,vt.value,Rt.value));if(!1!==St&&!1!==Nt)return bt.type=Y.LUA_TNUMFLT,void(bt.value=M.numarith(Et,kt,St,Nt));break}}E(null!==Et),F.luaT_trybinTM(Et,vt,Rt,bt,kt-N.LUA_OPADD+F.TMS.TM_ADD)},Q=-1,$={OPR_ADD:0,OPR_SUB:1,OPR_MUL:2,OPR_MOD:3,OPR_POW:4,OPR_DIV:5,OPR_IDIV:6,OPR_BAND:7,OPR_BOR:8,OPR_BXOR:9,OPR_SHL:10,OPR_SHR:11,OPR_CONCAT:12,OPR_EQ:13,OPR_LT:14,OPR_LE:15,OPR_NE:16,OPR_GT:17,OPR_GE:18,OPR_AND:19,OPR_OR:20,OPR_NOBINOPR:21},ee={OPR_MINUS:0,OPR_BNOT:1,OPR_NOT:2,OPR_LEN:3,OPR_NOUNOPR:4},te=function(Et){return Et.t!==Et.f},ae=function(Et,kt){let vt=K.expkind;if(te(Et))return!1;switch(Et.k){case vt.VKINT:return kt&&(kt.type=Y.LUA_TNUMINT,kt.value=Et.u.ival),!0;case vt.VKFLT:return kt&&(kt.type=Y.LUA_TNUMFLT,kt.value=Et.u.nval),!0;default:return!1;}},ue=function(Et,kt,vt){let bt=kt+vt-1,Rt;if(Et.pc>Et.lasttarget&&(Rt=Et.f.code[Et.pc-1],Rt.opcode===J.OP_LOADNIL)){let St=Rt.A,Nt=St+Rt.B;if(St<=kt&&kt<=Nt+1||kt<=St&&St<=bt+1)return Stbt&&(bt=Nt),P.SETARG_A(Rt,kt),void P.SETARG_B(Rt,bt-kt)}Re(Et,J.OP_LOADNIL,kt,vt-1,0)},se=function(Et,kt){return Et.f.code[kt.u.info]},ne=function(Et,kt){let vt=Et.f.code[kt].sBx;return vt===Q?Q:kt+1+vt},oe=function(Et,kt,vt){let Rt=Et.f.code[kt],bt=vt-(kt+1);E(vt!==Q),_Mathabs(bt)>P.MAXARG_sBx&&I.luaX_syntaxerror(Et.ls,N.to_luastring('control structure too long',!0)),P.SETARG_sBx(Rt,bt)},_e=function(Et,kt,vt){if(vt===Q)return kt;if(kt===Q)kt=vt;else{let Rt=kt,bt=ne(Et,Rt);for(;bt!==Q;)Rt=bt,bt=ne(Et,Rt);oe(Et,Rt,vt)}return kt},pe=function(Et){let kt=Et.jpc;Et.jpc=Q;let vt=Se(Et,J.OP_JMP,0,Q);return vt=_e(Et,vt,kt),vt},Le=function(Et,kt,vt,Rt,bt){return Re(Et,kt,vt,Rt,bt),pe(Et)},ge=function(Et){return Et.lasttarget=Et.pc,Et.pc},Ae=function(Et,kt){return 1<=kt&&P.testTMode(Et.f.code[kt-1].opcode)?Et.f.code[kt-1]:Et.f.code[kt]},Te=function(Et,kt,vt){let Rt=Ae(Et,kt);return Rt.opcode===J.OP_TESTSET&&(vt!==P.NO_REG&&vt!==Rt.B?P.SETARG_A(Rt,vt):Rt=P.CREATE_ABC(J.OP_TEST,Rt.B,0,Rt.C),!0)},he=function(Et,kt){for(;kt!==Q;kt=ne(Et,kt))Te(Et,kt,P.NO_REG)},Oe=function(Et,kt,vt,Rt,bt){for(;kt!==Q;){let St=ne(Et,kt);Te(Et,kt,Rt)?oe(Et,kt,vt):oe(Et,kt,bt),kt=St}},xe=function(Et){Oe(Et,Et.jpc,Et.pc,P.NO_REG,Et.pc),Et.jpc=Q},Ue=function(Et,kt){ge(Et),Et.jpc=_e(Et,Et.jpc,kt)},Ee=function(Et,kt,vt){vt===Et.pc?Ue(Et,kt):(E(vtEt.f.maxstacksize&&(255<=vt&&I.luaX_syntaxerror(Et.ls,N.to_luastring('function or expression needs to many registers',!0)),Et.f.maxstacksize=vt)},Me=function(Et,kt){Ce(Et,kt),Et.freereg+=kt},Pe=function(Et,kt){!P.ISK(kt)&&kt>=Et.nactvar&&(Et.freereg--,E(kt===Et.freereg))},ye=function(Et,kt){kt.k===K.expkind.VNONRELOC&&Pe(Et,kt.u.info)},De=function(Et,kt,vt){let Rt=kt.k===K.expkind.VNONRELOC?kt.u.info:-1,bt=vt.k===K.expkind.VNONRELOC?vt.u.info:-1;Rt>bt?(Pe(Et,Rt),Pe(Et,bt)):(Pe(Et,bt),Pe(Et,Rt))},Ke=function(Et,kt,vt){let Rt=Et.f,bt=G.luaH_set(Et.ls.h,kt);if(bt.ttisinteger()){let Nt=bt.value;if(Nt=Et.nactvar)return Ze(Et,kt,kt.u.info),kt.u.info}return Qe(Et,kt),kt.u.info},at=function(Et,kt){te(kt)?$e(Et,kt):ze(Et,kt)},lt=function(Et,kt){let vt=K.expkind,Rt=!1;switch(at(Et,kt),kt.k){case vt.VTRUE:kt.u.info=we(Et,1),Rt=!0;break;case vt.VFALSE:kt.u.info=we(Et,0),Rt=!0;break;case vt.VNIL:kt.u.info=Fe(Et),Rt=!0;break;case vt.VKINT:kt.u.info=Ve(Et,kt.u.ival),Rt=!0;break;case vt.VKFLT:kt.u.info=Ge(Et,kt.u.nval),Rt=!0;break;case vt.VK:Rt=!0;break;default:}return Rt&&(kt.k=vt.VK,kt.u.info<=P.MAXINDEXRK)?P.RKASK(kt.u.info):$e(Et,kt)},st=function(Et,kt){let vt=Ae(Et,kt.u.info);E(P.testTMode(vt.opcode)&&vt.opcode!==J.OP_TESTSET&&vt.opcode!==J.OP_TEST),P.SETARG_A(vt,!vt.A)},nt=function(Et,kt,vt){if(kt.k===K.expkind.VRELOCABLE){let Rt=se(Et,kt);if(Rt.opcode===J.OP_NOT)return Et.pc--,Le(Et,J.OP_TEST,Rt.B,0,!vt)}return qe(Et,kt),ye(Et,kt),Le(Et,J.OP_TESTSET,P.NO_REG,kt.u.info,vt)},ot=function(Et,kt){let vt=K.expkind,Rt;switch(ze(Et,kt),kt.k){case vt.VJMP:{st(Et,kt),Rt=kt.u.info;break}case vt.VK:case vt.VKFLT:case vt.VKINT:case vt.VTRUE:{Rt=Q;break}default:{Rt=nt(Et,kt,0);break}}kt.f=_e(Et,kt.f,Rt),Ue(Et,kt.t),kt.t=Q},_t=function(Et,kt){let vt=K.expkind,Rt;switch(ze(Et,kt),kt.k){case vt.VJMP:{Rt=kt.u.info;break}case vt.VNIL:case vt.VFALSE:{Rt=Q;break}default:{Rt=nt(Et,kt,1);break}}kt.t=_e(Et,kt.t,Rt),Ue(Et,kt.f),kt.f=Q},it=function(Et,kt){let vt=K.expkind;switch(ze(Et,kt),kt.k){case vt.VNIL:case vt.VFALSE:{kt.k=vt.VTRUE;break}case vt.VK:case vt.VKFLT:case vt.VKINT:case vt.VTRUE:{kt.k=vt.VFALSE;break}case vt.VJMP:{st(Et,kt);break}case vt.VRELOCABLE:case vt.VNONRELOC:{qe(Et,kt),ye(Et,kt),kt.u.info=Re(Et,J.OP_NOT,0,kt.u.info,0),kt.k=vt.VRELOCABLE;break}}{let Rt=kt.f;kt.f=kt.t,kt.t=Rt}he(Et,kt.f),he(Et,kt.t)},ct=function(Et,kt,vt){return Et===N.LUA_OPBAND||Et===N.LUA_OPBOR||Et===N.LUA_OPBXOR||Et===N.LUA_OPSHL||Et===N.LUA_OPSHR||Et===N.LUA_OPBNOT?H.tointeger(kt)&&H.tointeger(vt):Et===N.LUA_OPDIV||Et===N.LUA_OPIDIV||Et===N.LUA_OPMOD?0!==vt.value:1},dt=function(Et,kt,vt,Rt){let bt=K.expkind,St=new q,Nt=new q,It=new q;if(!ae(vt,St)||!ae(Rt,Nt)||!ct(kt,St,Nt))return 0;if(W(Et.ls.L,kt,St,Nt,It),It.ttisinteger())vt.k=bt.VKINT,vt.u.ival=It.value;else{let Ct=It.value;if(isNaN(Ct)||0===Ct)return!1;vt.k=bt.VKFLT,vt.u.nval=Ct}return!0},Lt=function(Et,kt,vt,Rt){let bt=$e(Et,vt);ye(Et,vt),vt.u.info=Re(Et,kt,0,bt,0),vt.k=K.expkind.VRELOCABLE,xt(Et,Rt)},ft=function(Et,kt,vt,Rt,bt){let St=lt(Et,Rt),Nt=lt(Et,vt);De(Et,vt,Rt),vt.u.info=Re(Et,kt,0,Nt,St),vt.k=K.expkind.VRELOCABLE,xt(Et,bt)},At=function(Et,kt,vt,Rt){let bt=K.expkind,St;vt.k===bt.VK?St=P.RKASK(vt.u.info):(E(vt.k===bt.VNONRELOC),St=vt.u.info);let Nt=lt(Et,Rt);switch(De(Et,vt,Rt),kt){case $.OPR_NE:{vt.u.info=Le(Et,J.OP_EQ,0,St,Nt);break}case $.OPR_GT:case $.OPR_GE:{let It=kt-$.OPR_NE+J.OP_EQ;vt.u.info=Le(Et,It,1,Nt,St);break}default:{let It=kt-$.OPR_EQ+J.OP_EQ;vt.u.info=Le(Et,It,1,St,Nt);break}}vt.k=bt.VJMP},xt=function(Et,kt){Et.f.lineinfo[Et.pc-1]=kt};T.exports.BinOpr=$,T.exports.NO_JUMP=Q,T.exports.UnOpr=ee,T.exports.getinstruction=se,T.exports.luaK_checkstack=Ce,T.exports.luaK_code=ve,T.exports.luaK_codeABC=Re,T.exports.luaK_codeABx=be,T.exports.luaK_codeAsBx=Se,T.exports.luaK_codek=Ie,T.exports.luaK_concat=_e,T.exports.luaK_dischargevars=ze,T.exports.luaK_exp2RK=lt,T.exports.luaK_exp2anyreg=$e,T.exports.luaK_exp2anyregup=function(Et,kt){(kt.k!==K.expkind.VUPVAL||te(kt))&&$e(Et,kt)},T.exports.luaK_exp2nextreg=Qe,T.exports.luaK_exp2val=at,T.exports.luaK_fixline=xt,T.exports.luaK_getlabel=ge,T.exports.luaK_goiffalse=_t,T.exports.luaK_goiftrue=ot,T.exports.luaK_indexed=function(Et,kt,vt){let Rt=K.expkind;E(!te(kt)&&(K.vkisinreg(kt.k)||kt.k===Rt.VUPVAL)),kt.u.ind.t=kt.u.info,kt.u.ind.idx=lt(Et,vt),kt.u.ind.vt=kt.k===Rt.VUPVAL?Rt.VUPVAL:Rt.VLOCAL,kt.k=Rt.VINDEXED},T.exports.luaK_infix=function(Et,kt,vt){switch(kt){case $.OPR_AND:{ot(Et,vt);break}case $.OPR_OR:{_t(Et,vt);break}case $.OPR_CONCAT:{Qe(Et,vt);break}case $.OPR_ADD:case $.OPR_SUB:case $.OPR_MUL:case $.OPR_DIV:case $.OPR_IDIV:case $.OPR_MOD:case $.OPR_POW:case $.OPR_BAND:case $.OPR_BOR:case $.OPR_BXOR:case $.OPR_SHL:case $.OPR_SHR:{ae(vt,null)||lt(Et,vt);break}default:{lt(Et,vt);break}}},T.exports.luaK_intK=Ve,T.exports.luaK_jump=pe,T.exports.luaK_jumpto=function(Et,kt){return Ee(Et,pe(Et),kt)},T.exports.luaK_nil=ue,T.exports.luaK_numberK=Ge,T.exports.luaK_patchclose=function(Et,kt,vt){for(vt++;kt!==Q;kt=ne(Et,kt)){let Rt=Et.f.code[kt];E(Rt.opcode===J.OP_JMP&&(0===Rt.A||Rt.A>=vt)),P.SETARG_A(Rt,vt)}},T.exports.luaK_patchlist=Ee,T.exports.luaK_patchtohere=Ue,T.exports.luaK_posfix=function(Et,kt,vt,Rt,bt){let St=K.expkind;switch(kt){case $.OPR_AND:{E(vt.t===Q),ze(Et,Rt),Rt.f=_e(Et,Rt.f,vt.f),vt.to(Rt);break}case $.OPR_OR:{E(vt.f===Q),ze(Et,Rt),Rt.t=_e(Et,Rt.t,vt.t),vt.to(Rt);break}case $.OPR_CONCAT:{let Nt=se(Et,Rt);at(Et,Rt),Rt.k===St.VRELOCABLE&&Nt.opcode===J.OP_CONCAT?(E(vt.u.info===Nt.B-1),ye(Et,vt),P.SETARG_B(Nt,vt.u.info),vt.k=St.VRELOCABLE,vt.u.info=Rt.u.info):(Qe(Et,Rt),ft(Et,J.OP_CONCAT,vt,Rt,bt));break}case $.OPR_ADD:case $.OPR_SUB:case $.OPR_MUL:case $.OPR_DIV:case $.OPR_IDIV:case $.OPR_MOD:case $.OPR_POW:case $.OPR_BAND:case $.OPR_BOR:case $.OPR_BXOR:case $.OPR_SHL:case $.OPR_SHR:{dt(Et,kt+N.LUA_OPADD,vt,Rt)||ft(Et,kt+J.OP_ADD,vt,Rt,bt);break}case $.OPR_EQ:case $.OPR_LT:case $.OPR_LE:case $.OPR_NE:case $.OPR_GT:case $.OPR_GE:{At(Et,kt,vt,Rt);break}}return vt},T.exports.luaK_prefix=function(Et,kt,vt,Rt){let bt=new K.expdesc;switch(bt.k=K.expkind.VKINT,bt.u.ival=bt.u.nval=bt.u.info=0,bt.t=Q,bt.f=Q,kt){case ee.OPR_MINUS:case ee.OPR_BNOT:if(dt(Et,kt+N.LUA_OPUNM,vt,bt))break;case ee.OPR_LEN:Lt(Et,kt+J.OP_UNM,vt,Rt);break;case ee.OPR_NOT:it(Et,vt);}},T.exports.luaK_reserveregs=Me,T.exports.luaK_ret=function(Et,kt,vt){Re(Et,J.OP_RETURN,kt,vt+1,0)},T.exports.luaK_self=function(Et,kt,vt){$e(Et,kt);let Rt=kt.u.info;ye(Et,kt),kt.u.info=Et.freereg,kt.k=K.expkind.VNONRELOC,Me(Et,2),Re(Et,J.OP_SELF,kt.u.info,Rt,lt(Et,vt)),ye(Et,vt)},T.exports.luaK_setlist=function(Et,kt,vt,Rt){let bt=(vt-1)/P.LFIELDS_PER_FLUSH+1,St=Rt===N.LUA_MULTRET?0:Rt;E(0!==Rt&&Rt<=P.LFIELDS_PER_FLUSH),bt<=P.MAXARG_C?Re(Et,J.OP_SETLIST,kt,St,bt):bt<=P.MAXARG_Ax?(Re(Et,J.OP_SETLIST,kt,St,0),Ne(Et,bt)):I.luaX_syntaxerror(Et.ls,N.to_luastring('constructor too long',!0)),Et.freereg=kt+1},T.exports.luaK_setmultret=function(Et,kt){Xe(Et,kt,N.LUA_MULTRET)},T.exports.luaK_setoneret=je,T.exports.luaK_setreturns=Xe,T.exports.luaK_storevar=function(Et,kt,vt){let Rt=K.expkind;switch(kt.k){case Rt.VLOCAL:return ye(Et,vt),void Ze(Et,vt,kt.u.info);case Rt.VUPVAL:{let bt=$e(Et,vt);Re(Et,J.OP_SETUPVAL,bt,kt.u.info,0);break}case Rt.VINDEXED:{let bt=kt.u.ind.vt===Rt.VLOCAL?J.OP_SETTABLE:J.OP_SETTABUP,St=lt(Et,vt);Re(Et,bt,kt.u.ind.t,kt.u.ind.idx,St);break}}ye(Et,vt)},T.exports.luaK_stringK=function(Et,kt){let vt=new q(Y.LUA_TLNGSTR,kt);return Ke(Et,vt,vt)}},function(T,O,U){'use strict';const E=U(1),N=E.constant_types,K=16*_NumberparseInt(E.LUA_VERSION_MAJOR)+_NumberparseInt(E.LUA_VERSION_MINOR);class G{constructor(){this.L=null,this.write=null,this.data=null,this.strip=NaN,this.status=NaN}}const F=function(oe,_e,pe){0===pe.status&&0<_e&&(pe.status=pe.writer(pe.L,oe,_e,pe.data))},H=function(oe,_e){oe=E.to_luastring(oe),F(oe,oe.length,_e)},Y=function(oe,_e){F([oe],1,_e)},J=function(oe,_e){let pe=new DataView(new ArrayBuffer(4));pe.setInt32(0,oe,!0);let ce=[];for(let de=0;4>de;de++)ce.push(pe.getUint8(de,!0));F(ce,4,_e)},q=function(oe,_e){let pe=new DataView(new ArrayBuffer(4));pe.setInt32(0,oe,!0);let ce=[];for(let de=0;4>de;de++)ce.push(pe.getUint8(de,!0));F(ce,8,_e)},W=function(oe,_e){let pe=new DataView(new ArrayBuffer(8));pe.setFloat64(0,oe,!0);let ce=[];for(let de=0;8>de;de++)ce.push(pe.getUint8(de,!0));F(ce,8,_e)},Z=function(oe,_e){if(null===oe)Y(0,_e);else{let pe=oe.tsslen()+1,ce=oe.getstr();255>pe?Y(pe,_e):(Y(255,_e),q(pe,_e)),F(ce,pe-1,_e)}},Q=function(oe,_e){let pe=oe.code.map((ce)=>ce.code);J(pe.length,_e);for(let ce=0;cepe.charCodeAt(0));F(_e,_e.length,oe),Y(4,oe),Y(8,oe),Y(4,oe),Y(4,oe),Y(8,oe),q(22136,oe),W(370.5,oe)};T.exports.luaU_dump=function(oe,_e,pe,ce,de){let Le=new G;return Le.L=oe,Le.writer=pe,Le.data=ce,Le.strip=de,Le.status=0,se(Le),Y(_e.upvalues.length,Le),ue(_e,null,Le),Le.status}},function(T,O,U){'use strict';const E=U(2),N=U(6),I=U(48),M=U(23),P=U(26),K=U(30),V=U(31),G=U(32),F=U(24),H=U(28),Y=U(27),J=U(52),q={[J.LUA_LOADLIBNAME]:Y.luaopen_package,[J.LUA_COLIBNAME]:M.luaopen_coroutine,[J.LUA_DBLIBNAME]:F.luaopen_debug,[J.LUA_MATHLIBNAME]:P.luaopen_math,[J.LUA_OSLIBNAME]:H.luaopen_os,[J.LUA_STRLIBNAME]:K.luaopen_string,[J.LUA_TABLIBNAME]:V.luaopen_table,[J.LUA_UTF8LIBNAME]:G.luaopen_utf8,_G:I.luaopen_base};T.exports.luaL_openlibs=function(Z){for(let Q in q)N.luaL_requiref(Z,E.to_luastring(Q),q[Q],1),E.lua_pop(Z,1)}},function(T,O,U){'use strict';const E=U(2),N='_'+E.LUA_VERSION_MAJOR+'_'+E.LUA_VERSION_MINOR;T.exports.LUA_VERSUFFIX=N;const I='coroutine';T.exports.LUA_COLIBNAME=I,T.exports[I]=U(23).luaopen_coroutine;const M='table';T.exports.LUA_TABLIBNAME=M,T.exports[M]=U(31).luaopen_table;const P='os';T.exports.LUA_OSLIBNAME=P,T.exports[P]=U(28).luaopen_os;const K='string';T.exports.LUA_STRLIBNAME=K,T.exports[K]=U(30).luaopen_string;const V='utf8';T.exports.LUA_UTF8LIBNAME=V,T.exports[V]=U(32).luaopen_utf8,T.exports.LUA_BITLIBNAME='bit32';const F='math';T.exports.LUA_MATHLIBNAME=F,T.exports[F]=U(26).luaopen_math;const H='debug';T.exports.LUA_DBLIBNAME=H,T.exports[H]=U(24).luaopen_debug;const Y='package';T.exports.LUA_LOADLIBNAME=Y,T.exports[Y]=U(27).luaopen_package},function(T,O,U){'use strict';const E=U(0),N=U(1),I=U(9),M=U(11),P=U(5),K=U(20),V=U(7),G=U(19);let F=[25,147,N.char['\r'],N.char['\n'],26,N.char['\n']];class H{constructor(J,q,W){this.intSize=4,this.size_tSize=8,this.instructionSize=4,this.integerSize=4,this.numberSize=8,E(q instanceof G.MBuffer,'BytecodeParser only operates on a MBuffer'),E(Array.isArray(W)),this.name=W[0]==N.char['@']||W[0]==N.char['=']?W.slice(1):W[0]==N.LUA_SIGNATURE.charCodeAt(0)?N.to_luastring('binary string',!0):W,this.L=J,this.buffer=q,this.dv=new DataView(new ArrayBuffer(_Mathmax(this.intSize,this.size_tSize,this.instructionSize,this.integerSize,this.numberSize)))}read(J){let q=this.buffer.read(J);return E(Array.isArray(q)),q.length>W.POS_OP&Z.MASK1(W.SIZE_OP,0),A:$>>W.POS_A&Z.MASK1(W.SIZE_A,0),B:$>>W.POS_B&Z.MASK1(W.SIZE_B,0),C:$>>W.POS_C&Z.MASK1(W.SIZE_C,0),Bx:$>>W.POS_Bx&Z.MASK1(W.SIZE_Bx,0),Ax:$>>W.POS_Ax&Z.MASK1(W.SIZE_Ax,0),sBx:($>>W.POS_Bx&Z.MASK1(W.SIZE_Bx,0))-W.MAXARG_sBx}}readUpvalues(J){let q=this.readInt();for(let W=0;W