@kedem/okdb 1.6.3 → 1.6.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/bin/okdb.js +1 -1
  2. package/okdb.js +1 -1
  3. package/package.json +1 -1
package/bin/okdb.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- 'use strict';const _0xddaf03=_0x3a76;(function(_0x3b8604,_0x2cb55c){const _0x5a51ef=_0x3a76,_0x15b69f=_0x3b8604();while(!![]){try{const _0x288a2e=parseInt(_0x5a51ef(0x27f))/0x1+-parseInt(_0x5a51ef(0x220))/0x2+parseInt(_0x5a51ef(0x24c))/0x3+parseInt(_0x5a51ef(0x38d))/0x4+-parseInt(_0x5a51ef(0x215))/0x5*(-parseInt(_0x5a51ef(0x2e9))/0x6)+-parseInt(_0x5a51ef(0x4ac))/0x7+parseInt(_0x5a51ef(0x1e5))/0x8*(-parseInt(_0x5a51ef(0x2ab))/0x9);if(_0x288a2e===_0x2cb55c)break;else _0x15b69f['push'](_0x15b69f['shift']());}catch(_0x29944f){_0x15b69f['push'](_0x15b69f['shift']());}}}(_0x30dd,0xede1a));var require$$1$1=require('path'),require$$1=require('fs'),require$$3=require(_0xddaf03(0x3e0)),require$$0$2=require(_0xddaf03(0x2d9)),require$$5=require(_0xddaf03(0x49b)),require$$0=require(_0xddaf03(0x372)),require$$0$1=require(_0xddaf03(0x4b0)),require$$2$1=require('os'),require$$4=require(_0xddaf03(0x4e0));function getDefaultExportFromCjs(_0x348bb2){const _0x34f55d=_0xddaf03;return _0x348bb2&&_0x348bb2['__esModule']&&Object['prototype'][_0x34f55d(0x2e6)][_0x34f55d(0x255)](_0x348bb2,'default')?_0x348bb2[_0x34f55d(0x42d)]:_0x348bb2;}var okdb$1={},version='1.6.3',require$$2={'version':version},okdbAuthTokens,hasRequiredOkdbAuthTokens;function requireOkdbAuthTokens(){if(hasRequiredOkdbAuthTokens)return okdbAuthTokens;hasRequiredOkdbAuthTokens=0x1;const _0x400b55=require$$0;function _0x16bd84(_0x3b50f0,_0x37ab37){const _0x284191=_0x3a76;return _0x400b55[_0x284191(0x3b6)](_0x284191(0x3e7),_0x37ab37)[_0x284191(0x4de)](_0x3b50f0)[_0x284191(0x29e)](_0x284191(0x4da));}function _0x3fdca5(_0x1ddbf6,_0x52110c){const _0x410297=_0x3a76;if(typeof _0x1ddbf6!==_0x410297(0x48a)||typeof _0x52110c!==_0x410297(0x48a))return![];if(Buffer[_0x410297(0x22d)](_0x1ddbf6)!==Buffer[_0x410297(0x22d)](_0x52110c))return![];return _0x400b55[_0x410297(0x201)](Buffer[_0x410297(0x240)](_0x1ddbf6),Buffer[_0x410297(0x240)](_0x52110c));}function _0x1e82eb(_0x3fb32e){const _0x372d9a=_0x3a76;if(!_0x3fb32e?.[_0x372d9a(0x22f)](_0x372d9a(0x4b7)))return null;return _0x3fb32e[_0x372d9a(0x48e)](0x7);}function _0x3d8432(_0x30f3e9=0x20){const _0x38105e=_0x3a76;return _0x400b55['randomBytes'](_0x30f3e9)[_0x38105e(0x213)]('base64url');}function _0x2f9306(_0x4cb322){const _0xe62086=_0x3a76;return _0x400b55[_0xe62086(0x3b3)](_0xe62086(0x3e7))[_0xe62086(0x4de)](_0x4cb322)[_0xe62086(0x29e)](_0xe62086(0x1f7));}function _0x1c07c1(_0x25bac3,_0x53ed01,_0x4426bf=0x36ee80){const _0x2a6e66=_0x3a76;if(!_0x53ed01)throw new Error(_0x2a6e66(0x330));const _0x381256=Date[_0x2a6e66(0x416)](),_0xa18bf4=Buffer[_0x2a6e66(0x240)](JSON[_0x2a6e66(0x3f2)]({'iat':_0x381256,'exp':_0x381256+_0x4426bf,'sub':_0x25bac3?.['id']??_0x25bac3?.['sub']??null,'username':_0x25bac3?.[_0x2a6e66(0x47f)]??_0x25bac3?.[_0x2a6e66(0x49e)]??null,'roles':Array['isArray'](_0x25bac3?.['roles'])?_0x25bac3['roles']:[]}))['toString'](_0x2a6e66(0x4da)),_0x41048a=_0x16bd84(_0xa18bf4,_0x53ed01);return _0xa18bf4+'.'+_0x41048a;}function _0x5c6c43(_0x252c52,_0x455bd1){const _0x6cfbec=_0x3a76;if(!_0x455bd1||typeof _0x252c52!=='string')return null;const [_0x258e45,_0x296f8a]=_0x252c52['split']('.');if(!_0x258e45||!_0x296f8a)return null;const _0x1ef46c=_0x16bd84(_0x258e45,_0x455bd1);if(!_0x3fdca5(_0x296f8a,_0x1ef46c))return null;try{const _0x5e6a12=JSON['parse'](Buffer['from'](_0x258e45,_0x6cfbec(0x4da))[_0x6cfbec(0x213)]()),_0x39d672=0x7530;if(Date[_0x6cfbec(0x416)]()>Number(_0x5e6a12?.[_0x6cfbec(0x21d)]??0x0)+_0x39d672)return null;return _0x5e6a12;}catch{return null;}}async function _0x59560a(_0x54c57e){return new Promise((_0x1554d6,_0x2f9919)=>{const _0x5696d4=_0x3a76,_0x3fab97=_0x400b55[_0x5696d4(0x36e)](0x10);_0x400b55[_0x5696d4(0x222)](_0x54c57e,_0x3fab97,0x40,(_0x28fa22,_0x422961)=>{const _0x2ccafb=_0x5696d4;if(_0x28fa22)_0x2f9919(_0x28fa22);_0x1554d6(_0x3fab97['toString']('hex')+':'+_0x422961[_0x2ccafb(0x213)](_0x2ccafb(0x1f7)));});});}async function _0x4ab66c(_0x2b03f2,_0x2ec415){const _0xc024c8=_0x3a76,[_0x289f1b,_0x3647a0]=_0x2ec415[_0xc024c8(0x36d)](':');if(!_0x289f1b||!_0x3647a0)return![];const _0x4852f4=Buffer[_0xc024c8(0x240)](_0x289f1b,_0xc024c8(0x1f7));return new Promise((_0x4a26b9,_0x3d7c2c)=>{const _0x588f00=_0xc024c8;_0x400b55[_0x588f00(0x222)](_0x2b03f2,_0x4852f4,0x40,(_0x5d9c92,_0x2acda8)=>{const _0xb8111e=_0x588f00;if(_0x5d9c92)_0x3d7c2c(_0x5d9c92);_0x4a26b9(_0x400b55[_0xb8111e(0x201)](_0x2acda8,Buffer[_0xb8111e(0x240)](_0x3647a0,'hex')));});});}return okdbAuthTokens={'hmac':_0x16bd84,'timingSafeEqual':_0x3fdca5,'parseBearer':_0x1e82eb,'randomToken':_0x3d8432,'hashToken':_0x2f9306,'issueToken':_0x1c07c1,'authenticateToken':_0x5c6c43,'hashPassword':_0x59560a,'verifyPassword':_0x4ab66c},okdbAuthTokens;}function _0x30dd(){const _0x55b3e5=['\x0a\x20\x20okdb\x20doctor\x0a','detectInputType','param','index:reset','[okdb]\x20error:\x20no\x20license\x20with\x20id\x20\x22','--log-level','system:stopped','\x20\x20\x20\x20id:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','net','join','OKDBForeignKeyError','Activation\x20invalid:\x20','--name','has','/api','sha256','\x20\x20✗','removeLicense','utf8','access:\x20','decodeLicenseBlob:\x20input\x20must\x20be\x20a\x20string','[okdb]\x20exporting\x20blobs…','doctor','summary','inputSchema','padStart','stringify',',\x20got\x20','_computeStatus','terminal','repeat','noRepl','blob','\x20\x20\x20\x20id:\x20\x20\x20\x20','put','toISOString','\x0d[okdb]\x20','true','__OKDB_PUB_FINGERPRINT__','options','\x20\x20Shell\x20commands','\x1b[90m','copy','der','map','fts','<path>','unique:violation','(add\x20a\x20license\x20first)','[okdb]\x20blobs:\x20imported=','\x20\x20changes=','existsSync','\x27\x20doesn\x27t\x20exist','(none)','type/users/item/alice\x20--env\x20staging','Events','\x0a\x20\x20','[okdb]\x20invalid\x20port:\x20','peers=','logLevel','--env','every','now','port\x20','License\x20expired\x20or\x20invalidated','writeUInt16BE','\x0a\x20\x20✓\x20License\x20activated','--username','\x20\x20\x20http://localhost:','setTtl','\x20(must\x20be\x201–65535)','types','\x20bytes,\x20need\x20>=\x2065)','_isFree','blobs','set','Feature\x20not\x20available\x20on\x20free\x20tier:\x20','targetType','server','\x20\x20\x20\x20status:\x20\x20\x20\x20','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20→\x20GET\x20/api/env/','OKDBError','fts:drop','ttl:set','DELETE\x20type/users/item/x','default','\x0a\x20\x20Joining\x20cluster\x20at\x20','OKDB-PIN-V1:','label','__writeCounter','OKDBIndexHasConsumersError','--log-requests','\x20day(s).','\x0a\x0a\x20\x20','\x0a\x20\x20okdb\x20—\x20standalone\x20OKDB\x20server\x0a\x0a\x20\x20Usage:\x0a\x20\x20\x20\x20okdb\x20[options]\x0a\x20\x20\x20\x20okdb\x20<command>\x0a\x0a\x20\x20Options:\x0a\x20\x20\x20\x20-p,\x20--port\x20<port>\x20\x20\x20\x20\x20\x20\x20\x20HTTP\x20port\x20(default:\x208484)\x0a\x20\x20\x20\x20-d,\x20--path\x20<dir>\x20\x20\x20\x20\x20\x20\x20\x20\x20Database\x20directory\x20(default:\x20./okdb-data)\x0a\x20\x20\x20\x20-k,\x20--key\x20\x20<secret>\x20\x20\x20\x20\x20\x20Encryption\x20key\x20for\x20data\x20at\x20rest\x0a\x20\x20\x20\x20-c,\x20--config\x20<file>\x20\x20\x20\x20\x20\x20Config\x20file\x20path\x20(default:\x20.kdbconfig)\x0a\x20\x20\x20\x20\x20\x20\x20\x20--log-level\x20<level>\x20\x20Log\x20level:\x20debug\x20|\x20info\x20|\x20warn\x20|\x20error\x20(default:\x20info)\x0a\x20\x20\x20\x20\x20\x20\x20\x20--no-repl\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Start\x20server\x20without\x20interactive\x20shell\x0a\x20\x20\x20\x20\x20\x20\x20\x20--no-admin\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Disable\x20admin\x20UI\x0a\x20\x20\x20\x20\x20\x20\x20\x20--open\x20[ip\x20...]\x20\x20\x20\x20\x20\x20Open\x20mode:\x20bypass\x20auth\x20for\x20listed\x20IPs\x20(default:\x20localhost).\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Examples:\x20--open\x20\x20--open\x20192.168.1.0/24\x20\x20--open\x20*\x0a\x20\x20\x20\x20\x20\x20\x20\x20--log-requests\x20\x20\x20\x20\x20\x20\x20Print\x20every\x20HTTP\x20request\x20to\x20stdout\x20(for\x20debugging)\x0a\x20\x20\x20\x20-v,\x20--version\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Print\x20version\x20and\x20exit\x0a\x20\x20\x20\x20-h,\x20--help\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20this\x20help\x0a\x0a\x20\x20Commands:\x0a\x20\x20\x20\x20version\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Print\x20version\x20and\x20exit\x0a\x20\x20\x20\x20doctor\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Run\x20health\x20checks\x0a\x20\x20\x20\x20init\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Create\x20.kdbconfig\x20and\x20okdb-data/\x0a\x20\x20\x20\x20token\x20create\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Create\x20a\x20token\x20in\x20the\x20local\x20DB\x20(direct\x20access,\x20no\x20HTTP)\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--name\x20<name>\x20\x20\x20\x20\x20\x20For\x20password\x20login\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--password\x20<pass>\x20\x20Password\x20(requires\x20--name)\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--label\x20<text>\x20\x20\x20\x20\x20Human\x20description\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--permissions\x20<l>\x20\x20Comma-separated\x20baseline\x20permissions\x20(e.g.\x20\x22*\x22\x20or\x20\x22data:read\x22)\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--grants\x20<json>\x20\x20\x20\x20Per-env\x20grants\x20as\x20JSON\x20(e.g.\x20\x27{\x22orders\x22:[\x22data:*\x22]}\x27)\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--ttl\x20<ms>\x20\x20\x20\x20\x20\x20\x20\x20\x20Optional\x20TTL\x20in\x20milliseconds\x0a\x20\x20\x20\x20token\x20list\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20List\x20all\x20tokens\x20in\x20the\x20local\x20DB\x0a\x20\x20\x20\x20token\x20revoke\x20<id>\x20\x20\x20\x20\x20\x20\x20\x20Revoke\x20(delete)\x20a\x20token\x20by\x20id\x20(full\x20uuid\x20or\x20unique\x20prefix)\x0a\x20\x20\x20\x20join\x20<address>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Join\x20an\x20existing\x20cluster\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--token\x20<t>\x20\x20\x20\x20\x20\x20\x20\x20Bearer\x20token\x20from\x20the\x20cluster\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--username\x20<u>\x20\x20\x20\x20\x20Or,\x20username\x20for\x20login\x20exchange\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--password\x20<p>\x20\x20\x20\x20\x20Password\x20for\x20login\x20exchange\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--address\x20<addr>\x20\x20\x20This\x20node\x27s\x20reachable\x20sync\x20address\x20(required)\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--path\x20<dir>\x20\x20\x20\x20\x20\x20\x20Local\x20DB\x20path\x0a\x20\x20\x20\x20backup\x20[dir]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Hot\x20filesystem\x20backup\x20via\x20LMDB\x20native\x20copy\x20(default:\x20./okdb-backup)\x0a\x20\x20\x20\x20export\x20<file>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Streaming\x20NDJSON\x20logical\x20export\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--env\x20<name>\x20\x20\x20\x20\x20\x20env\x20to\x20export\x20(default:\x20default)\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--types\x20<a,b,...>\x20comma-separated\x20type\x20filter\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--changes\x20\x20\x20\x20\x20\x20\x20\x20\x20include\x20changelog\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--blobs\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20also\x20export\x20blob\x20files\x20alongside\x0a\x20\x20\x20\x20import\x20<file>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Streaming\x20NDJSON\x20logical\x20import\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--env\x20<name>\x20\x20\x20\x20\x20\x20target\x20env\x20override\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--types\x20<a,b,...>\x20import\x20only\x20these\x20types\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--drop\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20drop\x20&\x20recreate\x20existing\x20types\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--changes\x20\x20\x20\x20\x20\x20\x20\x20\x20restore\x20changelog\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--blobs\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20also\x20import\x20blob\x20files\x20alongside\x0a\x20\x20\x20\x20reset\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Delete\x20and\x20recreate\x20database\x20(with\x20confirmation)\x0a\x20\x20\x20\x20license\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20List\x20stored\x20licenses,\x20current\x20tier,\x20and\x20usage\x0a\x20\x20\x20\x20license\x20<blob|path>\x20\x20\x20\x20\x20\x20Add\x20a\x20license\x20blob\x20(or\x20read\x20from\x20a\x20.license\x20file)\x0a\x20\x20\x20\x20license\x20<activation>\x20\x20\x20\x20\x20Activate\x20a\x20previously-added\x20license\x20with\x20the\x20vendor\x27s\x20token\x0a\x20\x20\x20\x20license\x20<id>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20details\x20for\x20one\x20stored\x20license\x20(by\x20uuid\x20or\x20prefix)\x0a\x20\x20\x20\x20license\x20remove\x20<id>\x20\x20\x20\x20\x20\x20Remove\x20a\x20stored\x20license\x0a\x0a\x20\x20Environment\x20variables:\x0a\x20\x20\x20\x20OKDB_PORT\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20HTTP\x20port\x0a\x20\x20\x20\x20OKDB_PATH\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Database\x20directory\x0a\x20\x20\x20\x20OKDB_LOG_LEVEL\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Log\x20level\x20(debug|info|warn|error)\x0a\x20\x20\x20\x20OKDB_KEY\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Encryption\x20key\x0a\x20\x20\x20\x20OKDB_NO_REPL=1\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Disable\x20REPL\x0a\x20\x20\x20\x20OKDB_NO_ADMIN=1\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Disable\x20admin\x20UI\x0a\x0a\x20\x20Config\x20file\x20(.kdbconfig)\x20—\x20JSON,\x20all\x20keys\x20optional:\x0a\x20\x20\x20\x20{\x0a\x20\x20\x20\x20\x20\x20\x22port\x22:\x20\x20\x20\x20\x208484,\x0a\x20\x20\x20\x20\x20\x20\x22path\x22:\x20\x20\x20\x20\x20\x22./okdb-data\x22,\x0a\x20\x20\x20\x20\x20\x20\x22key\x22:\x20\x20\x20\x20\x20\x20\x22...\x22,\x0a\x20\x20\x20\x20\x20\x20\x22logLevel\x22:\x20\x22info\x22,\x0a\x20\x20\x20\x20\x20\x20\x22noAdmin\x22:\x20\x20false,\x0a\x20\x20\x20\x20\x20\x20\x22noRepl\x22:\x20\x20\x20false,\x0a\x20\x20\x20\x20\x20\x20\x22auth\x22:\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x22open\x22:\x20false\x0a\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}\x0a\x0a\x20\x20Examples:\x0a\x20\x20\x20\x20okdb\x0a\x20\x20\x20\x20okdb\x20--port\x209000\x20--path\x20./mydb\x0a\x20\x20\x20\x20okdb\x20--no-repl\x20--port\x208080\x0a\x20\x20\x20\x20okdb\x20--open\x0a\x20\x20\x20\x20okdb\x20--open\x20192.168.1.0/24\x0a\x20\x20\x20\x20okdb\x20doctor\x0a\x20\x20\x20\x20okdb\x20backup\x20./my-backup\x0a','\x20\x20✓\x20database\x20opened\x0a','[okdb]\x20error:\x20license\x20management\x20is\x20only\x20available\x20in\x20licensed\x20builds\x20(npm\x20run\x20build:prod).','keys/public.pem','api','OKDBTypeAlreadyRegisteredError','\x20\x20\x20\x20','License\x20already\x20stored','/type/users/item/alice\x0a\x20\x20\x20\x20','\x20\x20\x20\x20label:\x20\x20\x20\x20\x20\x20\x20','limits','FEATURES','\x20\x20Path\x20access','\x20\x20\x20\x20name:\x20\x20\x20\x20\x20\x20\x20\x20','[okdb]\x20created\x20.kdbconfig','\x20\x20\x20\x20\x20control\x20log\x20verbosity\x0a\x20\x20','exportToFile','\x20documents\x20fail\x20validation','registerIndex','boolean','\x27\x20already\x20registered','.\x20Add\x20a\x20license\x20that\x20includes\x20\x22','\x20\x20after\x20sync.\x20Duplicate\x20names\x20will\x20surface\x20as\x20ambiguous\x20logins\x20to\x20clean\x20up.','Files','http://localhost:','\x20\x20╔═══════════════════════════╗','license','[okdb]\x20error:\x20no\x20token\x20with\x20id\x20\x22','other','constructor','--label','sig','UNIQUE_CONSTRAINT','\x20\x20\x20\x20licensee:\x20\x20','createInterface','\x20—\x20type\x20env\x20to\x20list\x20available\x0a','config\x20file\x20invalid:\x20','migrate','emit','listRoutes','%),\x20','yellow','[okdb]\x20imported\x20\x20types=','activation',':\x20key\x20[','readUInt32BE','\x1b[0m','\x20<path>\x20[json-body]','bold','\x20\x20✓\x20http\x20listening\x20on\x20:','\x20already\x20in\x20use','database\x20path\x20writable:\x20','sync:apply','clearLine','replace','reset','.\x20Only\x20primitives,\x20null,\x20Buffers,\x20and\x20arrays\x20are\x20allowed.\x20Got:\x20','Invalid\x20primary\x20key\x20type:\x20','win32','\x20(expires\x20','allocUnsafe','use\x20<env>','⚠\x20INTERNAL\x20LICENSE\x20ACTIVE\x20—\x20all\x20features\x20and\x20limits\x20are\x20unlocked.\x20For\x20vendor/internal\x20use\x20only.','embeddings',',\x20label:\x20','\x20\x20\x20\x20usage:\x20\x20\x20','address','--port','listening','Hint:\x20','\x22\x20already\x20exists','\x27:\x20','\x0d[okdb]\x20blobs:\x20','username','time','bus:drain','sizeBefore','licensed','\x20env','level','waiting','_systemEnv','system:drain','fromEntries','string','ceil','[okdb]\x20error:\x20join\x20requires\x20a\x20remote\x20address.\x20Usage:\x20okdb\x20join\x20<address>\x20--token\x20<t>','events','slice','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20show\x20this\x20help\x0a\x20\x20','verifyActivation','meta','\x20\x20→\x20\x20','some','[okdb]\x20error:\x20--password\x20requires\x20--name','onLicenseExpired','token','no\x20.kdbconfig\x20(using\x20defaults)','\x20MB)','\x22\x20→\x20','licenseHash','../okdb','[okdb]\x20error:\x20remove\x20requires\x20an\x20id\x20argument','toUpperCase','name','OKDBUniqueConstraintError','drop','index:drop','\x20\x20Some\x20checks\x20failed.\x0a','standard','decodeActivationToken','\x20writes\x20(','Index\x20\x27','--path','decoded','~licenses','\x20\x20Usage:\x20logs\x20[on|off|debug|info|warn|error]','active','12252898SbYAsA','\x20\x20Note:\x20this\x20node\x20has\x20existing\x20tokens.\x20They\x20will\x20coexist\x20with\x20cluster\x20tokens\x0a','statSync','\x20\x20(licenses\x20must\x20be\x20signed\x20by\x20the\x20matching\x20private\x20key)','node:crypto','NAME','targetKey','resolve','QUIT','registerFts','types:','Bearer\x20','[okdb]\x20failed\x20to\x20parse\x20config\x20file\x20','type/users/item/alice','argv','password','[on|off|level]','\x0a\x20\x20\x20\x20','/admin/index.html','finally','Indexes','importBlobs','\x20\x20records=','errors','\x20\x20\x20\x20expires:\x20\x20\x20','--address','decodeLicenseBlob','LICENSE_HASH_MISMATCH','exec','_license','count','changes','Records','\x1b[1m','POST','rmSync','transport:\x20','verify','typeSubDbs','created','body','toFixed','\x20SECURITY\x20NOTICE','remove','pin','\x20\x20\x20\x20\x20\x20\x20POST\x20(body\x20implies\x20POST)\x0a\x20\x20','base64url','spki','keys','pid','update','\x27\x20on\x20type\x20\x27','child_process','files/','Embeddings','unique:violation_resolved','LICENSEE','hint','createServer','LICENSE_FEATURE_DISABLED','--help','failures','TYPE_ALREADY_REGISTERED','MALFORMED_TOKEN','(null)','Queue','captureStackTrace','pause','idx:','sort','24Tycnhp','system:ready','equals','dropType','OKDBInvalidPrimaryKeyError','stopping','\x20\x20\x20\x202.\x20The\x20vendor\x20returns\x20an\x20activation\x20token.','prompt','status','\x20\x20\x20\x20\x20http://localhost:','bus:poke','listen','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20show\x20API\x20docs\x20for\x20a\x20path\x0a\x0a\x20\x20','logRequests','error','HTTP\x20','pending','\x0a\x20\x20✓\x20Token\x20created','hex','round','\x20\x20✓\x20OKDB\x20server\x20running','GET','\x1b[34m','\x20\x20\x20\x20features:\x20\x20','node\x20','item:remove','decodeActivationToken:\x20input\x20must\x20be\x20a\x20string','isTTY','timingSafeEqual','logs','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20GET\x20(implicit)\x0a\x20\x20','\x20\x20·\x20','\x20→\x20POST\x20/api/env/','dirname','\x20result','\x20\x20\x20\x20•\x20a\x20license\x20blob\x20\x20\x20(Crockford\x20base32,\x20~150–250\x20chars)','config\x20file\x20valid:\x20','\x20to\x20browse\x20the\x20API,\x20','decodeLicenseBlob:\x20failed\x20to\x20decode\x20payload:\x20','(on\x20any\x20path\x20command)','Cannot\x20delete\x20','addLicense','LICENSE_LIMIT_EXCEEDED','fill','stack','starting','toString','\x1b[32m','1765akGMaY','safety','--types','[okdb]\x20reset\x20aborted','reason','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','index:ready','\x20\x20║','exp','envs','length','711446Edgoew','EADDRINUSE','scrypt','transport','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20→\x20GET\x20/api/env/staging/info\x0a\x0a','create','routes','type:drop','\x20type','stopped','\x20\x20\x20\x20\x20\x20\x20','env:opened','[okdb]\x20error:\x20','byteLength','\x20\x20\x20\x20api:\x20\x20\x20http://localhost:','startsWith','\x20to\x20quit.','object','TYPE_NOT_REGISTERED','EXPIRES','writeUInt8','[okdb]\x20opening\x20','\x20\x20@','isFeatureEnabled','help','EXIT','\x20\x20Usage:\x20','gray','Invalid\x20activation\x20token:\x20','--open','OKDBAlreadyExistsError','hidden','from','[okdb]\x20error:\x20ambiguous\x20prefix\x20\x22','\x20\x20\x20\x20envs:\x20\x20\x20\x20\x20\x20','licenseType','charCodeAt','registerType','[okdb]\x20backing\x20up\x20to\x20','type/','application/json','ftsName','\x20\x20\x20\x20•\x20a\x20path\x20to\x20a\x20.license\x20file','[okdb]\x20error:\x20show\x20requires\x20an\x20id\x20argument','2789826JORYKg','ENVS','(no\x20types)','maxWrites','No\x20license\x20found\x20matching\x20this\x20activation\x20token','\x0a\x20\x20✓\x20License\x20added','free\x20tier','quit','getPins','call','LICENSED_BUILD','fieldPath','[okdb]\x20port\x20','--no-repl','--permissions','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20override\x20active\x20environment\x20for\x20this\x20call\x0a\x20\x20','\x20\x20Or\x20set\x20sync.address\x20in\x20.kdbconfig','access','current','unlinkSync','creating','isArray','floor','envs=','payload','OKDBForeignKeyDeleteError','sync','_envs','history','PIN','log','OKDBIndexNotRegisteredError','active:','env/','0123456789ABCDEFGHJKMNPQRSTVWXYZ','.\x20Primary\x20keys\x20must\x20be\x20string\x20or\x20number.\x20Got:\x20','SIGINT','cause','--no-admin','homedir','expiresAt','127.0.0.1','number','\x0a[okdb]\x20error:\x20','false','parse','ready','LOGS','\x1b[2m','[okdb]\x20exported\x20\x20types=','noAdmin','10865dXowXZ','files','PUBLIC_KEY_PEM','\x20\x20\x20\x20-\x20The\x20activation\x20token\x20has\x20expired\x20—\x20request\x20a\x20fresh\x20one.','backup','okdb.pid','--password','includes','\x20\x20\x20\x20\x20\x20','env:removed','ttl','CREATED','\x22\x20matches\x20','title','info','body:\x20','Index\x20\x22','\x0a[okdb]\x20fatal\x20error:','debug','INDEX_NOT_REGISTERED','\x1b[31m','/type/users/query\x0a\x20\x20\x20\x20','tags','\x20\x20[','\x20\x20(','auth','/api/','[okdb]\x20error:\x20join\x20requires\x20credentials.\x20Provide\x20--token\x20<t>\x20or\x20--username\x20<u>\x20--password\x20<p>','resetFts','\x20licenses','\x27\x20is\x20already\x20registered','digest','push','method','operation','\x20\x20\x20\x20\x20\x20\x20\x20\x20browse\x20API\x20routes,\x20grouped\x20by\x20area\x0a\x20\x20','\x27,\x20cannot\x20map\x20to\x20\x27','\x22\x20to\x20enable\x20it.','\x20\x20(licensee:\x20','\x20\x20Type\x20','yes','question','--changes','~tokens','1288863AuyTNf','INDEX_HAS_CONSUMERS','ref:violation_resolved','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20→\x20GET\x20/api/info\x0a\x20\x20\x20\x20','timeMachine','OKDBIndexAlreadyRegisteredError','cyan','trim','\x20\x20\x20\x20limits:\x20\x20\x20\x20','null','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20→\x20GET\x20/api/env/','id:\x20','../','OKDBNotFoundError','\x0a\x20\x20Delete\x20ALL\x20data\x20in\x20','\x20\x20╚═══════════════════════════╝','import','VERSION_MISMATCH','attach','dest','port','\x20\x20Expected\x20one\x20of:','\x20\x20\x20\x20pin:\x20\x20\x20\x20\x20','INDEX_ALREADY_REGISTERED','detachConsole','resetIndex','Feature\x20not\x20licensed:\x20','PUB_FINGERPRINT','columns','[env]','padEnd','[okdb]\x20./okdb-data\x20already\x20exists\x20—\x20skipping','activateLicense','indexToDb','\x22.\x20Use:\x20create,\x20list,\x20revoke','readFileSync','\x20\x20\x20\x20pin:\x20\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20status:\x20\x20\x20\x20active','FOREIGN_KEY_DELETE_RESTRICTED','open\x20','--grants','\x20\x20\x20\x20license:\x20⚠\x20OPEN\x20—\x20','forEach','Examples','reload','./okdb-backup','readline','env','indexes','children','PUT','\x20\x20(name:\x20',':\x20expected\x20','dim','system:bus_state_change','version','test','Schema\x20validation\x20failed\x20for\x20','\x20MB\x20→\x20','hasOwnProperty','exportBlobs','rawBuf','31938iLKcKX','http','[okdb]\x20starting…\x0a','{}[]:,\x27\x22','\x0a[okdb]\x20shutting\x20down…\x0a','warn','--blobs','\x20\x20Error:\x20','System','INVALID_INDEX_KEY','key','concat','Build\x20expects\x20public\x20key\x20fingerprint\x20','enabled','mcp','listLicenses','filter','\x20\x20\x20\x20license:\x20','node','\x20does\x20not\x20exist','\x22\x20is\x20used\x20by:\x20','export','uuid','catch','\x20\x20⚠\x20\x20','.okdb-write-test','\x20\x20No\x20licenses\x20stored.\x20Use\x20`okdb\x20license\x20<blob>`\x20to\x20add\x20one.','admin','dynamic','\x20\x20\x20\x201.\x20Send\x20the\x20PIN\x20above\x20(','Unique\x20constraint\x20violated\x20on\x20','license:removed','grants','stderr','DELETE','platform','\x0a\x20\x20No\x20documentation\x20found\x20for:\x20','item:update','STATUS','\x20\x20Envs:\x20\x20\x20\x20','init','config','green','\x20\x20\x20\x203.\x20Run:\x20\x20okdb\x20license\x20<activation-token>','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20→\x20GET\x20/api/env/','LICENSE_EXPIRED_ACTION','clearTtl','fts:registered','\x20\x20\x20\x20port:\x20\x20','\x20\x20\x20\x20status:\x20\x20\x20\x20active\x20\x20(open\x20license\x20—\x20no\x20activation\x20needed)','magenta','exit','PERMISSIONS','OKDBVersionMismatchError','\x20log\x20level:\x20','getSecurityNotices','stdin','stdout','_active','close','ref:violation','\x20\x20\x20\x20-\x20The\x20activation\x20token\x20was\x20issued\x20for\x20a\x20different\x20node\x20—\x20share\x20this\x20node\x27s\x20PIN\x20with\x20the\x20vendor.','txn:start','\x20\x20Flags','\x0a\x20\x20Raw\x20token\x20(shown\x20once,\x20save\x20it\x20now):\x0a','entries','Type\x20\x27','\x20not\x20found','expiry','(unset)','unknown','Token\x20secret\x20not\x20configured','syncPeers','index:registered','[okdb]\x20backup\x20complete','write','fts:reset','addedAt','LICENSE_INVALID','\x0a\x20\x20Joined.\x20Remote\x20tokens\x20replicated.\x20You\x20can\x20now\x20log\x20in\x20with\x20cluster\x20credentials.\x0a','decodeActivationToken:\x20expected\x2077\x20bytes,\x20got\x20','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20set\x20active\x20environment\x20(persists\x20in\x20session)\x0a\x20\x20','Invalid\x20index\x20key\x20type\x20for\x20\x27','\x20opening\x20','SIGTERM','\x20\x20Writes:\x20\x20','_licenseHash','\x1b[37m','writes=','VERB','--token','\x1b[33m','message','txn:rollback','\x20\x20\x20\x20addedAt:\x20\x20\x20','[okdb]\x20invalid\x20log\x20level:\x20\x22','hasType','bind','mkdirSync','txn:end','data','--ttl','\x20more','red','search','\x20environment\x20','Invalid\x20license\x20blob:\x20','exports','LABEL','licensee','off','type:registered','resetting','okdb','INVALID_VALUE','\x20\x20skipped=','\x20records','--config','records','\x1b[36m','\x20\x20All\x20checks\x20passed.\x0a','ALREADY_EXISTS','[okdb]\x20nothing\x20to\x20reset\x20—\x20','\x20deleted','values','item:create','HELP','[okdb]\x20importing\x20','dropFts','ttl:expired','\x20\x20\x20\x20writes:\x20\x20\x20\x20','USE','split','randomBytes','endsWith','\x20\x20Example:\x20okdb\x20join\x20https://node-a.example.com\x20--token\x20<t>\x20--address\x20http://myhost:8484\x0a','start\x20','crypto','ENV','tags:\x20','get','effective','dbPath','setPrompt','Environments','value','\x20\x20\x20\x20graceful\x20shutdown\x0a','path','reverse','\x20logs\x20off\x0a','LICENSE_ACTIVATION_INVALID','level:\x20info','max','[okdb]\x20error:\x20token\x20with\x20name\x20\x22','OKDBInvalidValueError',']\x20already\x20maps\x20to\x20\x27','\x20\x20[okdb]\x20shutting\x20down…','setSchema','\x20\x20\x20\x20\x20\x20\x20\x20\x20OKDB\x20SHELL\x20\x20\x20\x20\x20\x20\x20\x20\x20','once','derivePin','\x20\x20·\x20\x20','references','schema:drop','2761176uEPXxu','\x20\x20(need\x20≥\x2018)','\x20in\x20','\x22\x20(must\x20be\x20debug|info|warn|error)','invalid','\x20tokens:','isInteger','\x20\x20Next\x20step\x20—\x20activate\x20the\x20license:','sourceKey','toLowerCase','open','assertLimit','writeUInt32BE','toLocaleString','sizeAfter','expires','indexOf','randomUUID','SIG_INVALID','OKDBTypeNotRegisteredError','writeFileSync','LICENSE_TYPE_OPEN','\x20\x20\x20\x20path:\x20\x20','engines','\x20\x20✓\x20Removed\x20license\x20','system:poke','--version','freeze','\x22\x20on\x20\x22','loadEnvFile','permissions','Version\x20mismatch\x20for\x20','\x0a\x20\x20License\x20details:','license:invalid','./okdb-data','\x20/\x20','revoke','decodeLicenseBlob:\x20blob\x20too\x20short\x20(','createHash','result','Processors','createHmac','kind','getRange','[okdb]\x20error:\x20unrecognized\x20input:\x20\x22','trimStart','list','FOREIGN_KEY_VIOLATION','\x20\x20\x20\x20permissions:\x20','INVALID_PRIMARY_KEY','[okdb]\x20.kdbconfig\x20already\x20exists\x20—\x20skipping','[okdb]\x20reset:\x20','\x20\x20⚠','then','OPEN','typesPerEnv','--key','\x0a\x20\x20Usage:\x20use\x20<env-name>\x0a','\x20\x20\x20\x20-\x20The\x20license\x20blob\x20has\x20not\x20been\x20added\x20yet\x20—\x20run\x20`okdb\x20license\x20<blob>`\x20first.','No\x20tokens.','description','features','.kdbconfig','\x20\x20\x20\x20id:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Common\x20causes:','white','readUInt8','readUInt16BE','\x20\x20(unlimited)','type','[okdb]\x20started\x20in\x20','min','{}[]:,\x0a\x0d\x09\x20','\x20\x20Usage:\x20okdb\x20license\x20[<blob|path|uuid|activation-token>]','\x20for\x20commands,\x20'];_0x30dd=function(){return _0x55b3e5;};return _0x30dd();}var okdbLicenseCodec,hasRequiredOkdbLicenseCodec;function requireOkdbLicenseCodec(){const _0x54ed4c=_0xddaf03;if(hasRequiredOkdbLicenseCodec)return okdbLicenseCodec;hasRequiredOkdbLicenseCodec=0x1;const _0x42a874=require$$0$1,_0x3576df=_0x54ed4c(0x26e),_0x38b19e=new Uint8Array(0x100)[_0x54ed4c(0x210)](0xff);for(let _0x381afe=0x0;_0x381afe<_0x3576df['length'];_0x381afe++){_0x38b19e[_0x3576df[_0x54ed4c(0x244)](_0x381afe)]=_0x381afe,_0x38b19e[_0x3576df[_0x54ed4c(0x244)](_0x381afe)+0x20]=_0x381afe;}_0x38b19e['O'['charCodeAt'](0x0)]=0x0,_0x38b19e['o'[_0x54ed4c(0x244)](0x0)]=0x0,_0x38b19e['I'['charCodeAt'](0x0)]=0x1,_0x38b19e['i'[_0x54ed4c(0x244)](0x0)]=0x1,_0x38b19e['L'['charCodeAt'](0x0)]=0x1,_0x38b19e['l'['charCodeAt'](0x0)]=0x1;function _0x211ebc(_0x1415b5){let _0x201167=0x0,_0x44a392=0x0,_0x134aad='';for(let _0x536206=0x0;_0x536206<_0x1415b5['length'];_0x536206++){_0x44a392=_0x44a392<<0x8|_0x1415b5[_0x536206],_0x201167+=0x8;while(_0x201167>=0x5){_0x201167-=0x5,_0x134aad+=_0x3576df[_0x44a392>>>_0x201167&0x1f];}}return _0x201167>0x0&&(_0x134aad+=_0x3576df[_0x44a392<<0x5-_0x201167&0x1f]),_0x134aad;}function _0x21aace(_0x216ec5){const _0x7c39f9=_0x54ed4c;_0x216ec5=_0x216ec5[_0x7c39f9(0x46c)](/-/g,'')['toUpperCase']();let _0x4b02f8=0x0,_0x135e17=0x0;const _0x2a5e29=[];for(let _0x1556f9=0x0;_0x1556f9<_0x216ec5['length'];_0x1556f9++){const _0x5289d1=_0x38b19e[_0x216ec5[_0x7c39f9(0x244)](_0x1556f9)];if(_0x5289d1===0xff)continue;_0x135e17=_0x135e17<<0x5|_0x5289d1,_0x4b02f8+=0x5,_0x4b02f8>=0x8&&(_0x4b02f8-=0x8,_0x2a5e29['push'](_0x135e17>>>_0x4b02f8&0xff));}return Buffer[_0x7c39f9(0x240)](_0x2a5e29);}const _0x125d98=[_0x54ed4c(0x266),_0x54ed4c(0x475),_0x54ed4c(0x3a4),_0x54ed4c(0x405),_0x54ed4c(0x2af),'views',_0x54ed4c(0x2f7),_0x54ed4c(0x280)],_0x10b1f1=0x0,_0x2d48a6=0x1,_0x495023=0x2,_0x26c459=0x6*0x1e*0x18*0x3c*0x3c*0x3e8;function _0x20bddd({issuedAt:_0x47fd02,expiresAt:_0x30001b,licensee:licensee='',features:features={},limits:limits={},licenseType:licenseType=_0x10b1f1}){const _0x536dab=_0x54ed4c,_0x35b501=Buffer['from'](licensee,_0x536dab(0x3ea))[_0x536dab(0x48e)](0x0,0x40),_0x595a41=0x1+0x1+0x4+0x4+0x1+_0x35b501[_0x536dab(0x21f)]+0x2+0x10,_0x477ac7=Buffer['allocUnsafe'](_0x595a41);let _0x4caa85=0x0;_0x477ac7['writeUInt8'](0x1,_0x4caa85++),_0x477ac7[_0x536dab(0x234)](licenseType,_0x4caa85++),_0x477ac7[_0x536dab(0x399)](Math[_0x536dab(0x262)](_0x47fd02/0x3e8),_0x4caa85),_0x4caa85+=0x4,_0x477ac7[_0x536dab(0x399)](Math[_0x536dab(0x262)](_0x30001b/0x3e8),_0x4caa85),_0x4caa85+=0x4,_0x477ac7['writeUInt8'](_0x35b501['length'],_0x4caa85++),_0x35b501[_0x536dab(0x402)](_0x477ac7,_0x4caa85),_0x4caa85+=_0x35b501['length'];let _0x1ff054=0x0;for(let _0x3e5dfa=0x0;_0x3e5dfa<_0x125d98[_0x536dab(0x21f)];_0x3e5dfa++){if(features[_0x125d98[_0x3e5dfa]])_0x1ff054|=0x1<<_0x3e5dfa;}_0x477ac7[_0x536dab(0x419)](_0x1ff054,_0x4caa85),_0x4caa85+=0x2;const _0x40d9a8=['envs',_0x536dab(0x3c4),'syncPeers',_0x536dab(0x24f)];for(const _0x209d96 of _0x40d9a8){_0x477ac7[_0x536dab(0x399)](limits[_0x209d96]||0x0,_0x4caa85),_0x4caa85+=0x4;}return _0x477ac7;}function _0x216795(_0x517058){const _0x5be00e=_0x54ed4c;let _0x2b9f7c=0x0;const _0x28d9e2=_0x517058['readUInt8'](_0x2b9f7c++),_0x2ed21e=_0x517058[_0x5be00e(0x3cf)](_0x2b9f7c++),_0xd06ef9=_0x517058[_0x5be00e(0x463)](_0x2b9f7c);_0x2b9f7c+=0x4;const _0x36bb93=_0x517058[_0x5be00e(0x463)](_0x2b9f7c);_0x2b9f7c+=0x4;const _0x1ebe73=_0x517058[_0x5be00e(0x3cf)](_0x2b9f7c++),_0x7c9ff3=_0x517058['slice'](_0x2b9f7c,_0x2b9f7c+_0x1ebe73)['toString']('utf8');_0x2b9f7c+=_0x1ebe73;const _0x38b5db=_0x517058[_0x5be00e(0x3d0)](_0x2b9f7c);_0x2b9f7c+=0x2;const _0x2ec6e6={};for(let _0x5c4b65=0x0;_0x5c4b65<_0x125d98['length'];_0x5c4b65++){_0x2ec6e6[_0x125d98[_0x5c4b65]]=Boolean(_0x38b5db&0x1<<_0x5c4b65);}const _0x201e37=['envs',_0x5be00e(0x3c4),'syncPeers',_0x5be00e(0x24f)],_0x5730bb={};for(const _0x42a9fa of _0x201e37){const _0x180872=_0x517058[_0x5be00e(0x463)](_0x2b9f7c);_0x2b9f7c+=0x4,_0x5730bb[_0x42a9fa]=_0x180872===0x0?null:_0x180872;}return{'v':_0x28d9e2,'licenseType':_0x2ed21e,'issuedAt':_0xd06ef9*0x3e8,'expiresAt':_0x36bb93*0x3e8,'licensee':_0x7c9ff3,'features':_0x2ec6e6,'limits':_0x5730bb};}function _0x4f0cde(_0x2122e1,_0x56b3f2){const _0x298c56=_0x54ed4c,_0x144727=Buffer[_0x298c56(0x2f4)]([_0x2122e1,_0x56b3f2]),_0x4d63aa=_0x211ebc(_0x144727),_0x311d40=[];for(let _0x1dfe91=0x0;_0x1dfe91<_0x4d63aa[_0x298c56(0x21f)];_0x1dfe91+=0x8){_0x311d40[_0x298c56(0x29f)](_0x4d63aa[_0x298c56(0x48e)](_0x1dfe91,_0x1dfe91+0x8));}return _0x311d40['join']('-');}function _0x2031ea(_0x47432c){const _0x475103=_0x54ed4c;if(typeof _0x47432c!==_0x475103(0x48a))throw new Error(_0x475103(0x3ec));const _0x99b747=_0x21aace(_0x47432c['replace'](/-/g,''));if(_0x99b747['length']<0x41)throw new Error(_0x475103(0x3b2)+_0x99b747[_0x475103(0x21f)]+_0x475103(0x420));const _0x492094=_0x99b747['slice'](0x0,_0x99b747['length']-0x40),_0x1334c2=_0x99b747[_0x475103(0x48e)](_0x99b747[_0x475103(0x21f)]-0x40);let _0x1d78cd;try{_0x1d78cd=_0x216795(_0x492094);}catch(_0x50687c){throw new Error(_0x475103(0x20b)+_0x50687c['message']);}return{'rawBuf':_0x99b747,'payload':_0x492094,'sig':_0x1334c2,'decoded':_0x1d78cd};}function _0x181fa0(_0x3129a8){const _0x316b64=_0x54ed4c;return _0x42a874[_0x316b64(0x3b3)](_0x316b64(0x3e7))[_0x316b64(0x4de)](_0x3129a8)['digest']()['slice'](0x0,0x8);}function _0x42fbf3(_0x28f885,_0x1bc788,_0x22e977){const _0x239bde=_0x54ed4c,_0x103880=_0x239bde(0x42f)+_0x22e977,_0x3d1060=Buffer[_0x239bde(0x2f4)]([Buffer['from'](_0x28f885,_0x239bde(0x3ea)),_0x1bc788]),_0x1783f1=_0x42a874[_0x239bde(0x3b6)](_0x239bde(0x3e7),_0x103880)[_0x239bde(0x4de)](_0x3d1060)[_0x239bde(0x29e)](),_0x5223cc=_0x211ebc(_0x1783f1[_0x239bde(0x48e)](0x0,0x5));return{'pin':_0x5223cc,'pinHmac':_0x1783f1};}function _0x384dec(_0xe766b4,_0x557d36,_0x4b176f){const _0x3fe8dd=_0x54ed4c,_0x3f8618=Buffer['allocUnsafe'](0x4d);let _0x54bfb0=0x0;_0x3f8618[_0x3fe8dd(0x234)](0x1,_0x54bfb0++),_0xe766b4[_0x3fe8dd(0x402)](_0x3f8618,_0x54bfb0),_0x54bfb0+=0x8,_0x3f8618['writeUInt32BE'](_0x557d36,_0x54bfb0),_0x54bfb0+=0x4,_0x4b176f[_0x3fe8dd(0x402)](_0x3f8618,_0x54bfb0);const _0x57e86=_0x211ebc(_0x3f8618),_0x3531a8=[];for(let _0x43cbaf=0x0;_0x43cbaf<_0x57e86[_0x3fe8dd(0x21f)];_0x43cbaf+=0x6){_0x3531a8['push'](_0x57e86[_0x3fe8dd(0x48e)](_0x43cbaf,_0x43cbaf+0x6));}return _0x3531a8[_0x3fe8dd(0x3e1)]('-');}function _0x57906a(_0x123e13){const _0x38ad0c=_0x54ed4c;if(typeof _0x123e13!==_0x38ad0c(0x48a))throw new Error(_0x38ad0c(0x1ff));const _0x465db9=_0x21aace(_0x123e13[_0x38ad0c(0x46c)](/-/g,''));if(_0x465db9[_0x38ad0c(0x21f)]!==0x4d)throw new Error(_0x38ad0c(0x339)+_0x465db9[_0x38ad0c(0x21f)]);let _0x3826c3=0x0;const _0x1a1798=_0x465db9['readUInt8'](_0x3826c3++),_0x2d9414=_0x465db9[_0x38ad0c(0x48e)](_0x3826c3,_0x3826c3+0x8);_0x3826c3+=0x8;const _0x124f48=_0x465db9[_0x38ad0c(0x463)](_0x3826c3);_0x3826c3+=0x4;const _0x10fea4=_0x465db9[_0x38ad0c(0x48e)](_0x3826c3);return{'v':_0x1a1798,'licenseHash':_0x2d9414,'expiry':_0x124f48,'sig':_0x10fea4};}function _0x22b02f({tokenString:_0x4001f6,nodeId:_0x133f52,rawBlobBuf:_0x59859a,pubKeyPem:_0x78679b,pubFingerprint:_0x39f041}){const _0x5d5609=_0x54ed4c;let _0xd21768;try{_0xd21768=_0x57906a(_0x4001f6);}catch(_0x18887b){return{'valid':![],'reason':_0x5d5609(0x4eb)};}const _0x30649a=_0x181fa0(_0x59859a);if(!_0x30649a[_0x5d5609(0x1e7)](_0xd21768[_0x5d5609(0x49a)]))return{'valid':![],'reason':_0x5d5609(0x4c7)};const {pinHmac:_0x322def}=_0x42fbf3(_0x133f52,_0x30649a,_0x39f041),_0x593990=Buffer[_0x5d5609(0x472)](0x4);_0x593990[_0x5d5609(0x399)](_0xd21768[_0x5d5609(0x32d)],0x0);const _0x3ed055=Buffer[_0x5d5609(0x2f4)]([Buffer[_0x5d5609(0x240)]([_0xd21768['v']]),_0x322def[_0x5d5609(0x48e)](0x0,0x5),_0xd21768['licenseHash'],_0x593990]);try{const _0x5ac819=_0x42a874[_0x5d5609(0x4d1)](null,_0x3ed055,_0x78679b,_0xd21768['sig']);if(!_0x5ac819)return{'valid':![],'reason':_0x5d5609(0x39f)};}catch(_0x57ad8e){return{'valid':![],'reason':_0x5d5609(0x39f)};}if(_0xd21768['expiry']<Date['now']()/0x3e8)return{'valid':![],'reason':'ACTIVATION_EXPIRED'};return{'valid':!![],'reason':'ok'};}function _0x23956b(_0x457987){const _0x1863c5=_0x54ed4c;if(typeof _0x457987!==_0x1863c5(0x48a))return _0x1863c5(0x32f);const _0x3a0aaf=_0x457987['trim']();if(_0x3a0aaf[_0x1863c5(0x22f)]('/')||_0x3a0aaf[_0x1863c5(0x22f)]('./')||_0x3a0aaf[_0x1863c5(0x22f)](_0x1863c5(0x2b7))||/^[A-Za-z]:[\\/]/[_0x1863c5(0x2e3)](_0x3a0aaf))return'path';if(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i[_0x1863c5(0x2e3)](_0x3a0aaf))return _0x1863c5(0x2ff);const _0x3d0a2a=_0x3a0aaf[_0x1863c5(0x46c)](/[\s-]+/g,'')[_0x1863c5(0x21f)];if(_0x3d0a2a===0x7c)return'activation';if(_0x3d0a2a>=0x95&&_0x3d0a2a<=0xfc)return _0x1863c5(0x3f8);return _0x1863c5(0x32f);}return okdbLicenseCodec={'toBase32':_0x211ebc,'fromBase32':_0x21aace,'encodeLicensePayload':_0x20bddd,'decodeLicensePayload':_0x216795,'encodeLicenseBlob':_0x4f0cde,'decodeLicenseBlob':_0x2031ea,'licenseHash':_0x181fa0,'derivePin':_0x42fbf3,'encodeActivationToken':_0x384dec,'decodeActivationToken':_0x57906a,'verifyActivation':_0x22b02f,'detectInputType':_0x23956b,'FEATURE_NAMES':_0x125d98,'LICENSE_TYPE_STANDARD':_0x10b1f1,'LICENSE_TYPE_OPEN':_0x2d48a6,'LICENSE_TYPE_INTERNAL':_0x495023,'OPEN_LICENSE_MAX_DURATION_MS':_0x26c459},okdbLicenseCodec;}var okdbError,hasRequiredOkdbError;function requireOkdbError(){if(hasRequiredOkdbError)return okdbError;hasRequiredOkdbError=0x1;class _0x5ed7e3 extends Error{constructor(_0x721ca,_0x4a5131,_0x431c3a={}){const _0x2fdb70=_0x3a76;super(_0x721ca),this[_0x2fdb70(0x49e)]=_0x2fdb70(0x429),this['code']=_0x4a5131,this['details']=_0x431c3a,_0x431c3a[_0x2fdb70(0x271)]&&(this[_0x2fdb70(0x271)]=_0x431c3a[_0x2fdb70(0x271)]),Error[_0x2fdb70(0x4ee)](this,this[_0x2fdb70(0x453)]);}}class _0x5e91c5 extends _0x5ed7e3{constructor(_0x6bee53,_0x5d0e63,_0x4e6d9c,_0x41247e){const _0x15d004=_0x3a76;super(_0x15d004(0x3ac)+_0x6bee53+'@'+_0x5d0e63+_0x15d004(0x2df)+_0x4e6d9c+_0x15d004(0x3f3)+_0x41247e,_0x15d004(0x2bc),{'type':_0x6bee53,'key':_0x5d0e63,'expectedVersion':_0x4e6d9c,'actualVersion':_0x41247e}),this[_0x15d004(0x49e)]=_0x15d004(0x31e);}}class _0x4321a7 extends _0x5ed7e3{constructor(_0x1c38c9,_0x4781e7){const _0x2d9491=_0x3a76;super(_0x1c38c9+'@'+_0x4781e7+_0x2d9491(0x2fc),'NOT_FOUND',{'type':_0x1c38c9,'key':_0x4781e7}),this[_0x2d9491(0x49e)]=_0x2d9491(0x2b8);}}class _0x56950d extends _0x5ed7e3{constructor(_0x5d6541,_0x32912a){const _0x41433a=_0x3a76;super(_0x5d6541+'@'+_0x32912a+'\x20already\x20exists',_0x41433a(0x362),{'type':_0x5d6541,'key':_0x32912a}),this[_0x41433a(0x49e)]=_0x41433a(0x23e);}}class _0x35cc58 extends _0x5ed7e3{constructor(_0x1f538b,_0xc69881){const _0x99c23d=_0x3a76,_0x312309=typeof _0xc69881;super(_0x99c23d(0x33b)+_0x1f538b+_0x99c23d(0x47d)+_0x312309+_0x99c23d(0x46e)+_0xc69881,_0x99c23d(0x2f2),{'index':_0x1f538b,'key':_0xc69881,'keyType':_0x312309}),this[_0x99c23d(0x49e)]='OKDBInvalidIndexKeyError';}}class _0xe91a63 extends _0x5ed7e3{constructor(_0x20a3c1){const _0x379c94=_0x3a76,_0x22c89a=typeof _0x20a3c1;super(_0x379c94(0x46f)+_0x22c89a+_0x379c94(0x26f)+_0x20a3c1,_0x379c94(0x3be),{'key':_0x20a3c1,'keyType':_0x22c89a}),this[_0x379c94(0x49e)]=_0x379c94(0x1e9);}}class _0x1e56e9 extends _0x5ed7e3{constructor(_0x277258){const _0x8e35d=_0x3a76;super(_0x8e35d(0x32b)+_0x277258+_0x8e35d(0x40c),_0x8e35d(0x232),{'type':_0x277258}),this['name']=_0x8e35d(0x3a0);}}class _0x40f96d extends _0x5ed7e3{constructor(_0x5892c4){const _0x4cab83=_0x3a76;super(_0x4cab83(0x32b)+_0x5892c4+_0x4cab83(0x44a),_0x4cab83(0x4ea),{'type':_0x5892c4}),this[_0x4cab83(0x49e)]=_0x4cab83(0x43b);}}class _0x39c250 extends _0x5ed7e3{constructor(_0x1c86ae,_0x20068e){const _0x4c0d38=_0x3a76;super(_0x4c0d38(0x4a6)+_0x20068e+_0x4c0d38(0x4df)+_0x1c86ae+_0x4c0d38(0x40c),_0x4c0d38(0x292),{'type':_0x1c86ae,'index':_0x20068e}),this['name']=_0x4c0d38(0x26b);}}class _0x22a75b extends _0x5ed7e3{constructor(_0x292784,_0x50e9b5){const _0x333063=_0x3a76;super(_0x333063(0x4a6)+_0x50e9b5+_0x333063(0x4df)+_0x292784+_0x333063(0x29d),_0x333063(0x2c2),{'type':_0x292784,'index':_0x50e9b5}),this[_0x333063(0x49e)]=_0x333063(0x2b0);}}class _0x4439b2 extends _0x5ed7e3{constructor(_0xe9e134,_0x1bc8e0={}){const _0x2284cd=_0x3a76;super(_0xe9e134,_0x2284cd(0x35b),_0x1bc8e0),this['name']=_0x2284cd(0x383);}}class _0x482b2e extends _0x5ed7e3{constructor(_0x583fbe,_0x43a565,_0x477f30,_0x5c95d1,_0x11a0ab){const _0x58c8f6=_0x3a76;super(_0x58c8f6(0x307)+_0x583fbe+'@'+_0x43a565+_0x58c8f6(0x462)+_0x477f30+_0x58c8f6(0x384)+_0x5c95d1+_0x58c8f6(0x2a3)+_0x11a0ab+'\x27',_0x58c8f6(0x456),{'type':_0x583fbe,'index':_0x43a565,'indexKey':_0x477f30,'existingKey':_0x5c95d1,'conflictingKey':_0x11a0ab}),this[_0x58c8f6(0x49e)]=_0x58c8f6(0x49f);}}class _0x565490 extends _0x5ed7e3{constructor(_0x296dcf,_0x2dd342,_0x445b82){const _0x461202=_0x3a76;super(_0x461202(0x2e4)+_0x296dcf+'@'+_0x2dd342,'SCHEMA_VALIDATION_FAILED',{'type':_0x296dcf,'key':_0x2dd342,'errors':_0x445b82}),this['name']='OKDBSchemaValidationError',this['type']=_0x296dcf,this['key']=_0x2dd342,this[_0x461202(0x4c3)]=_0x445b82;}}class _0x576760 extends _0x5ed7e3{constructor(_0x21d41e,_0x4aeb0f){const _0x3f9051=_0x3a76;super('Cannot\x20set\x20enforce\x20schema\x20on\x20'+_0x21d41e+':\x20'+_0x4aeb0f[_0x3f9051(0x21f)]+_0x3f9051(0x447),'SCHEMA_COLLECTION_INVALID',{'type':_0x21d41e,'failures':_0x4aeb0f}),this[_0x3f9051(0x49e)]='OKDBSchemaCollectionError',this[_0x3f9051(0x3d2)]=_0x21d41e,this[_0x3f9051(0x4e9)]=_0x4aeb0f;}}class _0x45ecb4 extends _0x5ed7e3{constructor(_0x1a9994,_0x230c90,_0x5cc220,_0x3618d4,_0x5f406d){const _0x4697b6=_0x3a76;super('Foreign\x20key\x20violation:\x20'+_0x1a9994+'@'+_0x230c90+'.'+_0x5cc220+'\x20references\x20'+_0x3618d4+'@'+_0x5f406d+'\x20which\x20does\x20not\x20exist',_0x4697b6(0x3bc),{'sourceType':_0x1a9994,'sourceKey':_0x230c90,'fieldPath':_0x5cc220,'targetType':_0x3618d4,'targetKey':_0x5f406d}),this[_0x4697b6(0x49e)]=_0x4697b6(0x3e2),this['sourceType']=_0x1a9994,this[_0x4697b6(0x395)]=_0x230c90,this[_0x4697b6(0x257)]=_0x5cc220,this[_0x4697b6(0x425)]=_0x3618d4,this[_0x4697b6(0x4b2)]=_0x5f406d;}}class _0x178d6b extends _0x5ed7e3{constructor(_0xf757c,_0x57fbdd,_0x8eaecf){const _0x3128cc=_0x3a76;super(_0x3128cc(0x20d)+_0xf757c+'@'+_0x57fbdd+':\x20'+_0x8eaecf[_0x3128cc(0x21f)]+'\x20document(s)\x20reference\x20it\x20with\x20onDelete:restrict',_0x3128cc(0x2d1),{'targetType':_0xf757c,'targetKey':_0x57fbdd,'references':_0x8eaecf}),this[_0x3128cc(0x49e)]=_0x3128cc(0x265),this['targetType']=_0xf757c,this[_0x3128cc(0x4b2)]=_0x57fbdd,this[_0x3128cc(0x38b)]=_0x8eaecf;}}class _0x534c61 extends _0x5ed7e3{constructor(_0xaa1966,_0x4efe83,_0x4f6804){const _0x122d9d=_0x3a76;super(_0x122d9d(0x28f)+_0x4efe83+_0x122d9d(0x3a9)+_0xaa1966+_0x122d9d(0x2fd)+_0x4f6804[_0x122d9d(0x404)](_0x3c66b7=>_0x3c66b7[_0x122d9d(0x3b7)]+':'+_0x3c66b7[_0x122d9d(0x49e)])['join'](',\x20'),_0x122d9d(0x2ac),{'type':_0xaa1966,'index':_0x4efe83,'usedBy':_0x4f6804}),this[_0x122d9d(0x49e)]=_0x122d9d(0x432);}}return okdbError={'OKDBError':_0x5ed7e3,'OKDBVersionMismatchError':_0x5e91c5,'OKDBNotFoundError':_0x4321a7,'OKDBAlreadyExistsError':_0x56950d,'OKDBInvalidIndexKeyError':_0x35cc58,'OKDBInvalidPrimaryKeyError':_0xe91a63,'OKDBTypeNotRegisteredError':_0x1e56e9,'OKDBTypeAlreadyRegisteredError':_0x40f96d,'OKDBIndexNotRegisteredError':_0x39c250,'OKDBIndexAlreadyRegisteredError':_0x22a75b,'OKDBInvalidValueError':_0x4439b2,'OKDBUniqueConstraintError':_0x482b2e,'OKDBSchemaValidationError':_0x565490,'OKDBSchemaCollectionError':_0x576760,'OKDBForeignKeyError':_0x45ecb4,'OKDBForeignKeyDeleteError':_0x178d6b,'OKDBIndexHasConsumersError':_0x534c61},okdbError;}var okdbEnums,hasRequiredOkdbEnums;function _0x3a76(_0x3d8522,_0x2afbcf){_0x3d8522=_0x3d8522-0x1e2;const _0x30dd4d=_0x30dd();let _0x3a766d=_0x30dd4d[_0x3d8522];return _0x3a766d;}function requireOkdbEnums(){const _0x2976f8=_0xddaf03;if(hasRequiredOkdbEnums)return okdbEnums;hasRequiredOkdbEnums=0x1;const _0x11310e={'PUT':_0x2976f8(0x3fa),'REMOVE':'remove','INDEX_DROP':'dropIndex','INDEX_REGISTER':_0x2976f8(0x448),'INDEX_RESET':_0x2976f8(0x2c4),'TYPE_REGISTER':_0x2976f8(0x245),'TYPE_DROP':_0x2976f8(0x1e8),'FTS_REGISTER':_0x2976f8(0x4b5),'FTS_DROP':_0x2976f8(0x369),'FTS_RESET':_0x2976f8(0x29b),'SCHEMA_SET':_0x2976f8(0x386),'SCHEMA_DROP':'dropSchema','TTL_SET':_0x2976f8(0x41d),'TTL_CLEAR':_0x2976f8(0x317)},_0x232653={'SYSTEM_READY':_0x2976f8(0x1e6),'SYSTEM_STOPPED':_0x2976f8(0x3de),'SYSTEM_CLOCK_CHANGE':'system:clock_change','SYSTEM_POKE':_0x2976f8(0x3a6),'SYSTEM_DRAIN':_0x2976f8(0x488),'SYSTEM_BUS_STATE_CHANGE':_0x2976f8(0x2e1),'ITEM_CREATE':_0x2976f8(0x366),'ITEM_UPDATE':_0x2976f8(0x30e),'ITEM_REMOVE':_0x2976f8(0x1fe),'INDEX_RESET':_0x2976f8(0x3db),'INDEX_READY':_0x2976f8(0x21b),'INDEX_PROGRESS':'index:progress','INDEX_DROP':_0x2976f8(0x4a1),'INDEX_REGISTERED':_0x2976f8(0x332),'FTS_REGISTERED':_0x2976f8(0x318),'FTS_DROP':_0x2976f8(0x42a),'FTS_RESET':_0x2976f8(0x335),'SCHEMA_SET':'schema:set','SCHEMA_DROP':_0x2976f8(0x38c),'UNIQUE_VIOLATION':_0x2976f8(0x407),'UNIQUE_VIOLATION_RESOLVED':_0x2976f8(0x4e3),'REF_VIOLATION':_0x2976f8(0x325),'REF_VIOLATION_RESOLVED':_0x2976f8(0x2ad),'SYNC_APPLY':_0x2976f8(0x46a),'TXN_START':_0x2976f8(0x327),'TXN_END':_0x2976f8(0x34c),'TXN_ROLLBACK':_0x2976f8(0x346),'TYPE_REGISTERED':_0x2976f8(0x358),'TYPE_DROP':_0x2976f8(0x227),'ENV_OPENED':_0x2976f8(0x22b),'ENV_REMOVED':_0x2976f8(0x288),'TTL_EXPIRED':_0x2976f8(0x36a),'TTL_SET':_0x2976f8(0x42b),'TTL_CLEAR':'ttl:clear','LICENSE_INVALID':_0x2976f8(0x3ae),'LICENSE_ADDED':'license:added','LICENSE_ACTIVATED':'license:activated','LICENSE_REMOVED':_0x2976f8(0x308)},_0x454b93={'CREATING':_0x2976f8(0x260),'RESETTING':'resetting','READY':_0x2976f8(0x27a),'DROPPING':'dropping','WAITING':_0x2976f8(0x486)},_0x1ece9c={'CREATED':_0x2976f8(0x4d3),'STARTING':_0x2976f8(0x212),'STARTED':'started','STOPPING':_0x2976f8(0x1ea),'STOPPED':_0x2976f8(0x229)},_0x36ae20={'CREATING':_0x2976f8(0x260),'READY':_0x2976f8(0x27a),'HALTED':'halted','STOPPED':_0x2976f8(0x229),'RESETTING':_0x2976f8(0x359)},_0x25f947=Object[_0x2976f8(0x3a8)]({'POKE':_0x2976f8(0x1ef),'DRAIN':_0x2976f8(0x481)});return okdbEnums={'BUS_EVENTS':_0x25f947,'CHANGE_ACTIONS':_0x11310e,'EVENTS':_0x232653,'INDEX_STATE':_0x454b93,'OKDB_STATE':_0x1ece9c,'VIEW_STATE':_0x36ae20},okdbEnums;}var okdbPubkey,hasRequiredOkdbPubkey;function requireOkdbPubkey(){const _0x2ee2fd=_0xddaf03;if(hasRequiredOkdbPubkey)return okdbPubkey;hasRequiredOkdbPubkey=0x1;const _0x39a405=require$$1,_0x1ea9f9=require$$1$1,_0x3b472e=require$$0,_0x5e33cf=_0x39a405[_0x2ee2fd(0x2ce)](_0x1ea9f9[_0x2ee2fd(0x3e1)](__dirname,_0x2ee2fd(0x439)),_0x2ee2fd(0x3ea))[_0x2ee2fd(0x2b2)](),_0x23c82c=_0x3b472e['createPublicKey'](_0x5e33cf)[_0x2ee2fd(0x2fe)]({'type':_0x2ee2fd(0x4db),'format':_0x2ee2fd(0x403)}),_0x5a8ca1=_0x3b472e['createHash'](_0x2ee2fd(0x3e7))[_0x2ee2fd(0x4de)](_0x23c82c)[_0x2ee2fd(0x29e)](_0x2ee2fd(0x1f7))[_0x2ee2fd(0x48e)](0x0,0x10);return okdbPubkey={'PUBLIC_KEY_PEM':_0x5e33cf,'PUB_FINGERPRINT':_0x5a8ca1},okdbPubkey;}var okdbLicense,hasRequiredOkdbLicense;function requireOkdbLicense(){const _0xa75729=_0xddaf03;if(hasRequiredOkdbLicense)return okdbLicense;hasRequiredOkdbLicense=0x1;const _0x27c312=require$$0,{OKDBError:_0x5e3a1b}=requireOkdbError(),{EVENTS:_0x5b4020}=requireOkdbEnums(),_0x2351f5=requireOkdbLicenseCodec(),{LICENSE_TYPE_OPEN:_0x48ffd4,LICENSE_TYPE_INTERNAL:_0x1d62c1,OPEN_LICENSE_MAX_DURATION_MS:_0x279022}=_0x2351f5,_0x460d28=requireOkdbPubkey(),_0x1f2b2e={'LICENSED_BUILD':'true','PUBLIC_KEY_PEM':_0x460d28['PUBLIC_KEY_PEM'],'PUB_FINGERPRINT':_0x460d28[_0xa75729(0x2c6)],'LICENSE_EXPIRED_ACTION':_0xa75729(0x26a)},_0x17163f='~licenses',_0x568292={'features':{'sync':![],'embeddings':![],'engines':![],'fts':!![],'timeMachine':![],'views':!![],'mcp':!![],'files':!![]},'limits':{'envs':0x2,'typesPerEnv':0xa,'syncPeers':0x0,'maxWrites':0xf4240},'_isFree':!![]};async function _0x99bce6(_0xe3b44f){const _0x4eb638=_0xa75729;!_0xe3b44f[_0x4eb638(0x349)](_0x17163f)&&await _0xe3b44f[_0x4eb638(0x245)](_0x17163f);}class _0x5f0962{constructor(_0x43a4e1){const _0x18efd6=_0xa75729;this['okdb']=_0x43a4e1,this[_0x18efd6(0x323)]=null;}async['reload'](){const _0x1b130f=_0xa75729,_0x124314=this['okdb'][_0x1b130f(0x487)];if(!_0x124314||!_0x124314[_0x1b130f(0x349)](_0x17163f)){this[_0x1b130f(0x323)]=null;return;}const _0x514c9e=this['okdb']['id'];let _0x3eda3f=null;for(const {key:_0xbe1210,value:_0x39aff6}of _0x124314[_0x1b130f(0x3b8)](_0x17163f)){const _0x2acdcd=this['_computeStatus'](_0x39aff6,_0x514c9e);_0x2acdcd===_0x1b130f(0x4ab)&&!_0x3eda3f&&(_0x3eda3f={..._0x39aff6,'id':_0xbe1210,'status':_0x2acdcd});}this[_0x1b130f(0x323)]=_0x3eda3f;if(this[_0x1b130f(0x323)]&&this[_0x1b130f(0x323)][_0x1b130f(0x243)]===_0x48ffd4){const _0x4ffcac=Math['ceil']((this[_0x1b130f(0x323)][_0x1b130f(0x274)]-Date[_0x1b130f(0x416)]())/0x5265c00);this[_0x1b130f(0x35a)][_0x1b130f(0x26a)]?.[_0x1b130f(0x2ee)]('⚠\x20OPEN\x20LICENSE\x20ACTIVE\x20—\x20this\x20license\x20is\x20not\x20node-bound\x20and\x20is\x20intended\x20for\x20POC/demo\x20use\x20only.\x20Expires\x20in\x20'+_0x4ffcac+_0x1b130f(0x434),{'feature':_0x1b130f(0x450),'licensee':this[_0x1b130f(0x323)][_0x1b130f(0x356)],'expiresAt':new Date(this[_0x1b130f(0x323)][_0x1b130f(0x274)])[_0x1b130f(0x3fb)]()});}this[_0x1b130f(0x323)]&&this[_0x1b130f(0x323)]['licenseType']===_0x1d62c1&&this['okdb'][_0x1b130f(0x26a)]?.['warn'](_0x1b130f(0x474),{'feature':_0x1b130f(0x450),'licensee':this[_0x1b130f(0x323)]['licensee']});}[_0xa75729(0x3f4)](_0xe0d037,_0x52ee35){const _0x2fc966=_0xa75729;if(!_0xe0d037[_0x2fc966(0x3f8)])return _0x2fc966(0x391);let _0x152e64;try{_0x152e64=_0x2351f5[_0x2fc966(0x4c6)](_0xe0d037['blob']);}catch(_0xeb0689){return _0x2fc966(0x391);}try{const _0x31ca43=_0x27c312['verify'](null,_0x152e64['payload'],_0x1f2b2e[_0x2fc966(0x281)],_0x152e64['sig']);if(!_0x31ca43)return'invalid';}catch(_0x20ad29){return _0x2fc966(0x391);}if(_0x152e64[_0x2fc966(0x4a8)]['licenseType']===_0x1d62c1)return _0x2fc966(0x4ab);if(_0x152e64['decoded'][_0x2fc966(0x274)]<=Date[_0x2fc966(0x416)]())return'expired';if(_0x152e64[_0x2fc966(0x4a8)][_0x2fc966(0x243)]===_0x48ffd4)return _0x2fc966(0x4ab);if(!_0xe0d037[_0x2fc966(0x461)])return _0x2fc966(0x1f5);const _0x4abd34=_0x2351f5[_0x2fc966(0x490)]({'tokenString':_0xe0d037[_0x2fc966(0x461)],'nodeId':_0x52ee35,'rawBlobBuf':_0x152e64[_0x2fc966(0x2e8)],'pubKeyPem':_0x1f2b2e[_0x2fc966(0x281)],'pubFingerprint':_0x1f2b2e['PUB_FINGERPRINT']});if(_0x4abd34[_0x2fc966(0x219)]===_0x2fc966(0x4c7)||_0x4abd34[_0x2fc966(0x219)]===_0x2fc966(0x39f))return'wrong_node';if(_0x4abd34[_0x2fc966(0x219)]==='ACTIVATION_EXPIRED')return'expired';if(!_0x4abd34['valid'])return'wrong_node';return _0x2fc966(0x4ab);}get['active'](){const _0x5a1f02=_0xa75729;return this[_0x5a1f02(0x323)];}get[_0xa75729(0x376)](){return this['_active']??_0x568292;}['assertFeature'](_0x2786b8){const _0x21cd9d=_0xa75729;if(_0x1f2b2e[_0x21cd9d(0x256)]!==_0x21cd9d(0x3fd))return;const _0xf5c23e=this[_0x21cd9d(0x376)];if(!_0xf5c23e[_0x21cd9d(0x3ca)]?.[_0x2786b8]){const _0x27d800=_0xf5c23e['_isFree']?_0x21cd9d(0x424)+_0x2786b8+_0x21cd9d(0x44b)+_0x2786b8+_0x21cd9d(0x2a4):_0x21cd9d(0x2c5)+_0x2786b8+'.\x20The\x20active\x20license\x20does\x20not\x20enable\x20\x22'+_0x2786b8+'\x22.';throw new _0x5e3a1b(_0x27d800,_0x21cd9d(0x4e7),{'feature':_0x2786b8});}}[_0xa75729(0x237)](_0x5554b2){const _0x3a8c68=_0xa75729;if(_0x1f2b2e[_0x3a8c68(0x256)]!==_0x3a8c68(0x3fd))return!![];return!!this[_0x3a8c68(0x376)][_0x3a8c68(0x3ca)]?.[_0x5554b2];}[_0xa75729(0x398)](_0x56dc1b,_0x1b331a){const _0x3e9f6b=_0xa75729;if(_0x1f2b2e['LICENSED_BUILD']!==_0x3e9f6b(0x3fd))return;const _0x98949f=this[_0x3e9f6b(0x376)],_0x52fd5a=_0x98949f[_0x3e9f6b(0x440)]?.[_0x56dc1b];if(_0x52fd5a===null||_0x52fd5a===undefined||_0x52fd5a===0x0)return;if(_0x1b331a>=_0x52fd5a)throw new _0x5e3a1b('License\x20limit\x20exceeded:\x20'+_0x56dc1b+'\x20('+_0x1b331a+'/'+_0x52fd5a+')',_0x3e9f6b(0x20f),{'limit':_0x56dc1b,'current':_0x1b331a,'max':_0x52fd5a});}async[_0xa75729(0x20e)](_0x532948){const _0x15a138=_0xa75729;let _0x15e434;try{_0x15e434=_0x2351f5['decodeLicenseBlob'](_0x532948);}catch(_0x18d3df){throw new _0x5e3a1b(_0x15a138(0x353)+_0x18d3df[_0x15a138(0x345)],_0x15a138(0x337));}let _0xb4aa8b;try{_0xb4aa8b=_0x27c312[_0x15a138(0x4d1)](null,_0x15e434[_0x15a138(0x264)],_0x1f2b2e['PUBLIC_KEY_PEM'],_0x15e434[_0x15a138(0x455)]);}catch(_0x2b2778){throw new _0x5e3a1b('License\x20signature\x20invalid:\x20'+_0x2b2778[_0x15a138(0x345)],_0x15a138(0x337));}if(!_0xb4aa8b)throw new _0x5e3a1b('License\x20signature\x20invalid\x20—\x20this\x20license\x20was\x20not\x20signed\x20by\x20the\x20key\x20paired\x20with\x20this\x20build.\x20'+(_0x15a138(0x2f5)+_0x1f2b2e['PUB_FINGERPRINT']+'.\x20')+'Either\x20the\x20build\x20was\x20made\x20with\x20a\x20different\x20keypair,\x20or\x20the\x20license\x20was\x20issued\x20with\x20a\x20different\x20private\x20key.',_0x15a138(0x337),{'expectedFingerprint':_0x1f2b2e['PUB_FINGERPRINT']});if(_0x15e434[_0x15a138(0x4a8)][_0x15a138(0x243)]===_0x48ffd4){const _0x12f442=_0x15e434[_0x15a138(0x4a8)][_0x15a138(0x274)]-_0x15e434[_0x15a138(0x4a8)]['issuedAt'];if(_0x12f442>_0x279022)throw new _0x5e3a1b('Open\x20licenses\x20cannot\x20exceed\x206\x20months\x20duration\x20(this\x20license\x20expires\x20'+Math['ceil'](_0x12f442/(0x1e*0x5265c00))+'\x20months\x20from\x20issuance)',_0x15a138(0x337));}const _0x306379=this[_0x15a138(0x35a)]['_systemEnv'];await _0x99bce6(_0x306379);const _0x4717ce=_0x2351f5['licenseHash'](_0x15e434[_0x15a138(0x2e8)])[_0x15a138(0x213)](_0x15a138(0x1f7));for(const {value:_0x4de80a}of _0x306379[_0x15a138(0x3b8)](_0x17163f)){if(_0x4de80a[_0x15a138(0x33f)]===_0x4717ce)throw new _0x5e3a1b(_0x15a138(0x43d),_0x15a138(0x337));}const _0x1466d3=_0x27c312[_0x15a138(0x39e)](),_0x496db2={'blob':_0x532948,'activation':null,'addedAt':Date[_0x15a138(0x416)](),'_licenseHash':_0x4717ce,'licensee':_0x15e434[_0x15a138(0x4a8)][_0x15a138(0x356)],'expiresAt':_0x15e434[_0x15a138(0x4a8)][_0x15a138(0x274)],'features':_0x15e434[_0x15a138(0x4a8)][_0x15a138(0x3ca)],'limits':_0x15e434[_0x15a138(0x4a8)][_0x15a138(0x440)],'licenseType':_0x15e434[_0x15a138(0x4a8)]['licenseType']};return await _0x306379[_0x15a138(0x3fa)](_0x17163f,_0x1466d3,_0x496db2),{'id':_0x1466d3,..._0x496db2};}async[_0xa75729(0x2cb)](_0x2ea72b){const _0x455714=_0xa75729;let _0x5edaf6;try{_0x5edaf6=_0x2351f5[_0x455714(0x4a4)](_0x2ea72b);}catch(_0x1349af){throw new _0x5e3a1b(_0x455714(0x23c)+_0x1349af[_0x455714(0x345)],_0x455714(0x37f));}const _0x59f95a=_0x5edaf6['licenseHash'][_0x455714(0x213)](_0x455714(0x1f7)),_0x18ceca=this[_0x455714(0x35a)]['_systemEnv'];if(!_0x18ceca||!_0x18ceca[_0x455714(0x349)](_0x17163f))throw new _0x5e3a1b('No\x20license\x20found\x20matching\x20this\x20activation\x20token',_0x455714(0x37f));let _0x3ea595=null,_0x359e55=null;for(const {key:_0x15a113,value:_0x2a8fe1}of _0x18ceca[_0x455714(0x3b8)](_0x17163f)){if(_0x2a8fe1[_0x455714(0x33f)]===_0x59f95a){_0x3ea595=_0x15a113,_0x359e55=_0x2a8fe1;break;}}if(!_0x3ea595)throw new _0x5e3a1b(_0x455714(0x250),_0x455714(0x37f));const {rawBuf:_0x13c7fd}=_0x2351f5[_0x455714(0x4c6)](_0x359e55[_0x455714(0x3f8)]),_0x452811=_0x2351f5[_0x455714(0x490)]({'tokenString':_0x2ea72b,'nodeId':this[_0x455714(0x35a)]['id'],'rawBlobBuf':_0x13c7fd,'pubKeyPem':_0x1f2b2e[_0x455714(0x281)],'pubFingerprint':_0x1f2b2e['PUB_FINGERPRINT']});if(!_0x452811['valid'])throw new _0x5e3a1b(_0x455714(0x3e3)+_0x452811[_0x455714(0x219)],_0x455714(0x37f),{'reason':_0x452811[_0x455714(0x219)]});const _0x227313={..._0x359e55,'activation':_0x2ea72b};return await _0x18ceca[_0x455714(0x4de)](_0x17163f,_0x3ea595,_0x227313),{'id':_0x3ea595,..._0x227313};}async[_0xa75729(0x3e9)](_0x1237b6){const _0x3c682b=_0xa75729,_0x40710d=this[_0x3c682b(0x35a)]['_systemEnv'];if(!_0x40710d||!_0x40710d[_0x3c682b(0x349)](_0x17163f))return;await _0x40710d[_0x3c682b(0x4d7)](_0x17163f,_0x1237b6);}async[_0xa75729(0x2f8)](){const _0x2be969=_0xa75729,_0x20372a=this[_0x2be969(0x35a)][_0x2be969(0x487)];if(!_0x20372a||!_0x20372a[_0x2be969(0x349)](_0x17163f))return[];const _0x2ba1bb=this[_0x2be969(0x35a)]['id'],_0x536c1d=[];for(const {key:_0x56d9ed,value:_0x1fa540}of _0x20372a[_0x2be969(0x3b8)](_0x17163f)){const _0x210717=this['_computeStatus'](_0x1fa540,_0x2ba1bb);_0x536c1d[_0x2be969(0x29f)]({..._0x1fa540,'id':_0x56d9ed,'status':_0x210717});}return _0x536c1d;}[_0xa75729(0x254)](){const _0x56053d=_0xa75729,_0x1ff1b4=this['okdb'][_0x56053d(0x487)];if(!_0x1ff1b4||!_0x1ff1b4[_0x56053d(0x349)](_0x17163f))return[];const _0x203ddf=this[_0x56053d(0x35a)]['id'],_0x40a4b3=[];for(const {key:_0xab3285,value:_0x4384c9}of _0x1ff1b4[_0x56053d(0x3b8)](_0x17163f)){if(_0x4384c9[_0x56053d(0x33f)]){if(_0x4384c9['licenseType']===_0x48ffd4)_0x40a4b3[_0x56053d(0x29f)]({'licenseId':_0xab3285,'pin':null});else{const _0x598092=Buffer['from'](_0x4384c9[_0x56053d(0x33f)],_0x56053d(0x1f7)),{pin:_0xd49347}=_0x2351f5[_0x56053d(0x389)](_0x203ddf,_0x598092,_0x1f2b2e[_0x56053d(0x2c6)]);_0x40a4b3[_0x56053d(0x29f)]({'licenseId':_0xab3285,'pin':_0xd49347});}}}return _0x40a4b3;}async['recheck'](){const _0x3f2021=_0xa75729,_0xb14060=this[_0x3f2021(0x323)];await this[_0x3f2021(0x2d7)]();if(this[_0x3f2021(0x323)]&&this[_0x3f2021(0x323)]['licenseType']===_0x48ffd4){const _0x5edb54=Math[_0x3f2021(0x48b)]((this[_0x3f2021(0x323)]['expiresAt']-Date[_0x3f2021(0x416)]())/0x5265c00);this[_0x3f2021(0x35a)][_0x3f2021(0x26a)]?.[_0x3f2021(0x2ee)]('⚠\x20OPEN\x20LICENSE\x20ACTIVE\x20—\x20this\x20license\x20is\x20not\x20node-bound\x20and\x20is\x20intended\x20for\x20POC/demo\x20use\x20only.\x20Expires\x20in\x20'+_0x5edb54+_0x3f2021(0x434),{'feature':_0x3f2021(0x450),'licensee':this[_0x3f2021(0x323)][_0x3f2021(0x356)],'expiresAt':new Date(this[_0x3f2021(0x323)][_0x3f2021(0x274)])[_0x3f2021(0x3fb)]()});}this[_0x3f2021(0x323)]&&this[_0x3f2021(0x323)][_0x3f2021(0x243)]===_0x1d62c1&&this['okdb']['log']?.[_0x3f2021(0x2ee)]('⚠\x20INTERNAL\x20LICENSE\x20ACTIVE\x20—\x20all\x20features\x20and\x20limits\x20are\x20unlocked.\x20For\x20vendor/internal\x20use\x20only.',{'feature':'license','licensee':this[_0x3f2021(0x323)][_0x3f2021(0x356)]});if(_0xb14060&&!this[_0x3f2021(0x323)]){this[_0x3f2021(0x35a)][_0x3f2021(0x26a)]?.[_0x3f2021(0x2ee)](_0x3f2021(0x418),{'feature':_0x3f2021(0x450)}),this[_0x3f2021(0x35a)][_0x3f2021(0x48d)]?.[_0x3f2021(0x45c)](_0x5b4020[_0x3f2021(0x337)],{'previous':_0xb14060});const _0x1349e1=this[_0x3f2021(0x35a)][_0x3f2021(0x3ff)]?.[_0x3f2021(0x495)]??_0x1f2b2e[_0x3f2021(0x316)];_0x1349e1==='shutdown'&&(this[_0x3f2021(0x35a)][_0x3f2021(0x26a)]?.[_0x3f2021(0x1f3)]('Shutting\x20down\x20due\x20to\x20license\x20expiry',{'feature':_0x3f2021(0x450)}),this[_0x3f2021(0x35a)][_0x3f2021(0x324)]()[_0x3f2021(0x300)](()=>{})[_0x3f2021(0x4bf)](()=>process['exit'](0x1)));}}}return okdbLicense={'LicenseChecker':_0x5f0962,'_C':_0x1f2b2e},okdbLicense;}var okdbShell,hasRequiredOkdbShell;function requireOkdbShell(){const _0x4a2f63=_0xddaf03;if(hasRequiredOkdbShell)return okdbShell;hasRequiredOkdbShell=0x1;const _0x5a1678=require$$0$2,_0x28716f=require$$1,_0x2bfbe4=require$$2$1,_0x46d3d7=require$$1$1,_0x177f81=_0x46d3d7['join'](_0x2bfbe4[_0x4a2f63(0x273)](),'.kdb_history'),_0x45c909=0x3e8,_0x286ea4={'reset':'\x1b[0m','bold':_0x4a2f63(0x4cd),'dim':_0x4a2f63(0x27c),'red':_0x4a2f63(0x293),'green':_0x4a2f63(0x214),'yellow':_0x4a2f63(0x344),'blue':_0x4a2f63(0x1fb),'magenta':'\x1b[35m','cyan':_0x4a2f63(0x360),'white':_0x4a2f63(0x340),'gray':_0x4a2f63(0x401)},_0x410753=!process[_0x4a2f63(0x322)][_0x4a2f63(0x200)]||!!process.env.NO_COLOR,_0x21c1a7=(_0x3ab858,_0x4c399d)=>_0x410753?_0x4c399d:''+_0x3ab858+_0x4c399d+_0x286ea4[_0x4a2f63(0x46d)],_0x47666b={'error':_0x286ea4[_0x4a2f63(0x350)],'warn':_0x286ea4['yellow'],'info':_0x286ea4[_0x4a2f63(0x2b1)],'debug':_0x286ea4[_0x4a2f63(0x23b)]},_0x1f5c85={'debug':0x0,'info':0x1,'warn':0x2,'error':0x3};function _0x1c354e(_0x2e4a10,_0x79124a=_0x4a2f63(0x28d)){const _0x4f0d6d=_0x4a2f63,{level:_0x1ce875,msg:_0x20bbb1,meta:_0x2259b0,context:_0xd34ebf,ts:_0x1d4d65}=_0x2e4a10;if((_0x1f5c85[_0x1ce875]??0x1)<(_0x1f5c85[_0x79124a]??0x1))return;const _0x1879c6=_0x21c1a7(_0x286ea4[_0x4f0d6d(0x23b)],new Date(_0x1d4d65)[_0x4f0d6d(0x3fb)]()),_0x5a949e=_0x21c1a7(_0x47666b[_0x1ce875]??_0x286ea4[_0x4f0d6d(0x3ce)],_0x1ce875[_0x4f0d6d(0x2c9)](0x5));let _0x146032='\x20\x20'+_0x1879c6+'\x20'+_0x21c1a7(_0x286ea4[_0x4f0d6d(0x466)],_0x5a949e)+'\x20'+_0x20bbb1;if(_0x2259b0&&Object[_0x4f0d6d(0x4dc)](_0x2259b0)['length']>0x0){const _0xb6f001=Object[_0x4f0d6d(0x32a)](_0x2259b0)['map'](([_0x6273a3,_0x1ce5e4])=>_0x6273a3+'='+_0x1ce5e4)[_0x4f0d6d(0x3e1)]('\x20');_0x146032+=_0x21c1a7(_0x286ea4[_0x4f0d6d(0x2e0)],_0x4f0d6d(0x296)+_0xb6f001+']');}if(_0xd34ebf!==undefined){const _0xda48ee=typeof _0xd34ebf==='object'?JSON[_0x4f0d6d(0x3f2)](_0xd34ebf):String(_0xd34ebf);_0x146032+=_0x21c1a7(_0x286ea4['dim'],'\x20\x20'+_0xda48ee);}const _0x5f2f18=_0x1ce875===_0x4f0d6d(0x1f3)||_0x1ce875===_0x4f0d6d(0x2ee)?process[_0x4f0d6d(0x30a)][_0x4f0d6d(0x334)][_0x4f0d6d(0x34a)](process['stderr']):process[_0x4f0d6d(0x322)][_0x4f0d6d(0x334)][_0x4f0d6d(0x34a)](process[_0x4f0d6d(0x322)]);_0x5f2f18(_0x146032+'\x0a');}function _0x247cf1(_0x197a96,_0x32b096){const _0x46078b=_0x4a2f63;if(_0x197a96===0xcc||_0x197a96>=0xc8&&_0x197a96<0x12c&&!_0x32b096){console[_0x46078b(0x26a)]('\x0a\x20\x20'+_0x21c1a7(_0x286ea4[_0x46078b(0x313)],'✓')+'\x0a');return;}if(_0x197a96>=0x190||_0x32b096?.[_0x46078b(0x1f3)]){const _0x2dead8=_0x32b096?.[_0x46078b(0x1f3)]??_0x32b096?.[_0x46078b(0x345)]??_0x46078b(0x1f4)+_0x197a96;console['log'](_0x46078b(0x410)+_0x21c1a7(_0x286ea4['red'],'✗')+'\x20'+_0x21c1a7(_0x286ea4['bold']+_0x286ea4[_0x46078b(0x350)],String(_0x197a96))+'\x20\x20'+_0x2dead8+'\x0a');return;}const _0x562cc2=Object['prototype'][_0x46078b(0x2e6)][_0x46078b(0x255)](_0x32b096??{},'result')?_0x32b096[_0x46078b(0x3b4)]:_0x32b096,_0x2d48d9=_0x32b096?.[_0x46078b(0x491)];console['log'](''),_0x27ec4c(_0x562cc2,'\x20\x20');if(_0x2d48d9?.[_0x46078b(0x4ca)]!=null||_0x2d48d9?.[_0x46078b(0x480)]!=null){const _0x488745=[];if(_0x2d48d9['count']!=null)_0x488745[_0x46078b(0x29f)](_0x2d48d9[_0x46078b(0x4ca)]+_0x46078b(0x207)+(_0x2d48d9[_0x46078b(0x4ca)]!==0x1?'s':''));if(_0x2d48d9[_0x46078b(0x480)]!=null)_0x488745[_0x46078b(0x29f)](_0x2d48d9['time']+'ms');console[_0x46078b(0x26a)]('\x0a\x20\x20'+_0x21c1a7(_0x286ea4[_0x46078b(0x2e0)],_0x488745[_0x46078b(0x3e1)](_0x46078b(0x38a))));}console[_0x46078b(0x26a)]('');}function _0x27ec4c(_0xed3bbc,_0xca1834=''){const _0x49af9b=_0x4a2f63;if(_0xed3bbc===null||_0xed3bbc===undefined){console[_0x49af9b(0x26a)](_0xca1834+_0x21c1a7(_0x286ea4['dim'],_0x49af9b(0x4ec)));return;}if(Array['isArray'](_0xed3bbc)){if(_0xed3bbc[_0x49af9b(0x21f)]===0x0){console['log'](_0xca1834+_0x21c1a7(_0x286ea4[_0x49af9b(0x2e0)],'(empty)'));return;}if(_0xed3bbc[_0x49af9b(0x415)](_0x1ba7f0=>_0x1ba7f0&&typeof _0x1ba7f0===_0x49af9b(0x231)&&_0x49af9b(0x2f3)in _0x1ba7f0&&_0x49af9b(0x37a)in _0x1ba7f0)){_0x177dc1(_0xed3bbc,_0xca1834);return;}if(_0xed3bbc[_0x49af9b(0x415)](_0x58aca8=>_0x58aca8&&typeof _0x58aca8===_0x49af9b(0x231)&&_0x49af9b(0x3d2)in _0x58aca8&&'count'in _0x58aca8)){_0xcf1779(_0xed3bbc,_0xca1834);return;}if(_0xed3bbc[_0x49af9b(0x415)](_0x4d3263=>typeof _0x4d3263!=='object'||_0x4d3263===null)){_0xed3bbc[_0x49af9b(0x2d5)]((_0x1792ce,_0x232bab)=>console['log'](_0xca1834+_0x21c1a7(_0x286ea4[_0x49af9b(0x23b)],_0x232bab+0x1+'.')+'\x20'+_0x21c1a7(_0x286ea4[_0x49af9b(0x3ce)],String(_0x1792ce))));return;}_0xed3bbc[_0x49af9b(0x2d5)]((_0x374e0f,_0x3453a4)=>{const _0x48fbcb=_0x49af9b;console[_0x48fbcb(0x26a)](_0xca1834+_0x21c1a7(_0x286ea4[_0x48fbcb(0x2e0)],'['+_0x3453a4+']'));if(typeof _0x374e0f===_0x48fbcb(0x231)&&_0x374e0f!==null)_0x3ca586(_0x374e0f,_0xca1834+'\x20\x20');else console[_0x48fbcb(0x26a)](_0xca1834+'\x20\x20'+String(_0x374e0f));});return;}if(typeof _0xed3bbc==='object'){if(_0x49af9b(0x2f3)in _0xed3bbc&&_0x49af9b(0x37a)in _0xed3bbc&&Object[_0x49af9b(0x4dc)](_0xed3bbc)[_0x49af9b(0x21f)]<=0x3){console[_0x49af9b(0x26a)](_0xca1834+_0x21c1a7(_0x286ea4[_0x49af9b(0x466)]+_0x286ea4[_0x49af9b(0x2b1)],String(_0xed3bbc[_0x49af9b(0x2f3)])));const _0x3eba22=_0xed3bbc[_0x49af9b(0x37a)];if(_0x3eba22&&typeof _0x3eba22==='object')_0x3ca586(_0x3eba22,_0xca1834);else console[_0x49af9b(0x26a)](_0xca1834+_0x21c1a7(_0x286ea4[_0x49af9b(0x3ce)],String(_0x3eba22)));return;}_0x3ca586(_0xed3bbc,_0xca1834);return;}console[_0x49af9b(0x26a)](_0xca1834+_0x21c1a7(_0x286ea4[_0x49af9b(0x3ce)],String(_0xed3bbc)));}function _0x3ca586(_0x36fa72,_0x1371de=''){const _0x342d49=_0x4a2f63,_0x1c60ed=Object[_0x342d49(0x32a)](_0x36fa72);if(_0x1c60ed[_0x342d49(0x21f)]===0x0){console['log'](_0x1371de+_0x21c1a7(_0x286ea4[_0x342d49(0x2e0)],'{}'));return;}const _0x48f464=Math[_0x342d49(0x3d4)](0x1c,Math[_0x342d49(0x381)](..._0x1c60ed[_0x342d49(0x404)](([_0x26da4b])=>_0x26da4b[_0x342d49(0x21f)])));for(const [_0x4f2de2,_0x18eb40]of _0x1c60ed){const _0x566c0=_0x21c1a7(_0x286ea4[_0x342d49(0x2b1)],_0x4f2de2['padEnd'](_0x48f464));if(_0x18eb40===null||_0x18eb40===undefined)console['log'](_0x1371de+_0x566c0+'\x20\x20'+_0x21c1a7(_0x286ea4[_0x342d49(0x2e0)],'null'));else{if(typeof _0x18eb40===_0x342d49(0x231)){const _0x32f0bc=JSON[_0x342d49(0x3f2)](_0x18eb40);_0x32f0bc[_0x342d49(0x21f)]<=0x50?console[_0x342d49(0x26a)](_0x1371de+_0x566c0+'\x20\x20'+_0x21c1a7(_0x286ea4[_0x342d49(0x2e0)],_0x32f0bc)):(console[_0x342d49(0x26a)](_0x1371de+_0x566c0),_0x27ec4c(_0x18eb40,_0x1371de+'\x20\x20'));}else{const _0x144bc6=typeof _0x18eb40===_0x342d49(0x449)?_0x21c1a7(_0x18eb40?_0x286ea4[_0x342d49(0x313)]:_0x286ea4[_0x342d49(0x45f)],String(_0x18eb40)):typeof _0x18eb40===_0x342d49(0x276)?_0x21c1a7(_0x286ea4[_0x342d49(0x31b)],String(_0x18eb40)):_0x21c1a7(_0x286ea4[_0x342d49(0x3ce)],String(_0x18eb40));console['log'](_0x1371de+_0x566c0+'\x20\x20'+_0x144bc6);}}}}function _0x177dc1(_0x4391b3,_0x2363df=''){const _0x36b8c8=_0x4a2f63,_0x1bbb69=Math[_0x36b8c8(0x3d4)](0x20,Math[_0x36b8c8(0x381)](..._0x4391b3[_0x36b8c8(0x404)](_0x5af2b5=>String(_0x5af2b5['key'])[_0x36b8c8(0x21f)])));for(const {key:_0x2a30ad,value:_0x494e3d,score:_0x45990c,clock:_0x3baa54}of _0x4391b3){const _0x25b5b9=_0x21c1a7(_0x286ea4[_0x36b8c8(0x466)]+_0x286ea4['cyan'],String(_0x2a30ad)[_0x36b8c8(0x2c9)](_0x1bbb69)),_0x19a77c=_0x494e3d==null?_0x21c1a7(_0x286ea4[_0x36b8c8(0x2e0)],'null'):typeof _0x494e3d===_0x36b8c8(0x231)?_0x21c1a7(_0x286ea4['dim'],JSON['stringify'](_0x494e3d)):_0x21c1a7(_0x286ea4['white'],String(_0x494e3d)),_0x4b6c9a=_0x45990c!=null?_0x21c1a7(_0x286ea4[_0x36b8c8(0x23b)],'\x20\x20score:'+_0x45990c[_0x36b8c8(0x4d5)](0x4)):'',_0xf6bd0a=_0x3baa54!=null?_0x21c1a7(_0x286ea4[_0x36b8c8(0x23b)],_0x36b8c8(0x236)+_0x3baa54):'';console['log'](_0x2363df+_0x25b5b9+'\x20\x20'+_0x19a77c+_0x4b6c9a+_0xf6bd0a);}}function _0xcf1779(_0x31e763,_0x5007a2=''){const _0x541188=_0x4a2f63,_0x120cb2=Math['min'](0x20,Math['max'](..._0x31e763[_0x541188(0x404)](_0x4d2b4d=>_0x4d2b4d['type']['length'])));for(const {type:_0x4174b4,count:_0xd36276,fields:_0x3a1a95}of _0x31e763){if(_0x4174b4['startsWith']('~'))continue;const _0x83f7e9=_0x21c1a7(_0x286ea4[_0x541188(0x466)]+_0x286ea4['cyan'],_0x4174b4[_0x541188(0x2c9)](_0x120cb2)),_0x502e7b=_0x21c1a7(_0x286ea4['magenta'],String(_0xd36276)['padStart'](0x6))+_0x21c1a7(_0x286ea4['dim'],_0x541188(0x35d)),_0x59f837=_0x3a1a95&&Object[_0x541188(0x4dc)](_0x3a1a95)[_0x541188(0x21f)]?_0x21c1a7(_0x286ea4['dim'],_0x541188(0x204)+Object['keys'](_0x3a1a95)[_0x541188(0x48e)](0x0,0x6)[_0x541188(0x3e1)](',\x20')+(Object[_0x541188(0x4dc)](_0x3a1a95)['length']>0x6?'…':'')):'';console['log'](_0x5007a2+_0x83f7e9+'\x20\x20'+_0x502e7b+_0x59f837);}}const _0x3586fb=[_0x4a2f63(0x41f),_0x4a2f63(0x247),'queue/',_0x4a2f63(0x4e1),'transaction','processors/'];function _0x1ea2a7(_0x43d5d1,_0x5b1a55){const _0x29863f=_0x4a2f63;if(_0x43d5d1[_0x29863f(0x22f)](_0x29863f(0x299)))return _0x43d5d1;if(_0x43d5d1[_0x29863f(0x22f)]('/'))return _0x29863f(0x3e6)+_0x43d5d1;if(_0x43d5d1[_0x29863f(0x22f)](_0x29863f(0x26d)))return _0x29863f(0x299)+_0x43d5d1;const _0x1c9978=_0x3586fb[_0x29863f(0x493)](_0x134ee2=>_0x43d5d1===_0x134ee2['replace'](/\/$/,'')||_0x43d5d1[_0x29863f(0x22f)](_0x134ee2));return _0x1c9978?'/api/env/'+_0x5b1a55+'/'+_0x43d5d1:_0x29863f(0x299)+_0x43d5d1;}function _0x197024(_0x54c470){const _0x42f4e5=_0x4a2f63,_0x30c242={},_0x230989=[];let _0x14327b=0x0;while(_0x14327b<_0x54c470['length']){if((_0x54c470[_0x14327b]===_0x42f4e5(0x414)||_0x54c470[_0x14327b]==='-e')&&_0x54c470[_0x14327b+0x1]&&!_0x54c470[_0x14327b+0x1][_0x42f4e5(0x22f)]('-'))_0x30c242[_0x42f4e5(0x2da)]=_0x54c470[++_0x14327b];else _0x54c470[_0x14327b]===_0x42f4e5(0x4e8)||_0x54c470[_0x14327b]==='-h'?_0x30c242['help']=!![]:_0x230989[_0x42f4e5(0x29f)](_0x54c470[_0x14327b]);_0x14327b++;}return{'flags':_0x30c242,'rest':_0x230989};}const _0x352e30={'system':_0x4a2f63(0x2f1),'envs':_0x4a2f63(0x379),'types':'Types','data':_0x4a2f63(0x4cc),'indexes':_0x4a2f63(0x4c0),'fts':'Full-text\x20search','sync':'Sync','queue':_0x4a2f63(0x4ed),'files':_0x4a2f63(0x44d),'embeddings':_0x4a2f63(0x4e2),'engines':'Engines','admin':'Admin','event':_0x4a2f63(0x40f),'processor':_0x4a2f63(0x3b5)},_0x4d1612=['system','envs','types',_0x4a2f63(0x34d),_0x4a2f63(0x2db),_0x4a2f63(0x405),'sync','queue','files',_0x4a2f63(0x475),_0x4a2f63(0x3a4),'admin'];function _0x5cdc1b(_0x5cf0aa){const _0x3d92a3=_0x4a2f63;return _0x5cf0aa['replace'](/^\/api/,'')['replace'](/^\[\/env\/:env=[^\]]*\]/,_0x3d92a3(0x2c8))[_0x3d92a3(0x46c)](/^\/env\/:env/,'env/:env')[_0x3d92a3(0x46c)](/^\//,'');}function _0x2b2cd4(_0x22ad93,_0x31d976=''){const _0xa7c153=_0x4a2f63,_0x171d20=_0x22ad93[_0xa7c153(0x2ea)]['listRoutes']()[_0xa7c153(0x2f9)](_0x3c5a9d=>!_0x3c5a9d[_0xa7c153(0x491)]?.[_0xa7c153(0x23f)]),_0x5a5d64=_0x31d976?_0x171d20[_0xa7c153(0x2f9)](_0x3674d3=>_0x3674d3[_0xa7c153(0x37c)][_0xa7c153(0x396)]()[_0xa7c153(0x286)](_0x31d976[_0xa7c153(0x396)]())||(_0x1c0435(_0x3674d3)??'')['toLowerCase']()[_0xa7c153(0x286)](_0x31d976[_0xa7c153(0x396)]())||_0x3932e3(_0x3674d3)['some'](_0x2cec5a=>_0x2cec5a['toLowerCase']()['includes'](_0x31d976[_0xa7c153(0x396)]()))):_0x171d20;if(!_0x5a5d64['length']){console[_0xa7c153(0x26a)](_0x21c1a7(_0x286ea4['yellow'],'\x0a\x20\x20No\x20routes\x20matching\x20\x22'+_0x31d976+'\x22\x0a'));return;}const _0x43d838=new Map();for(const _0xfe915 of _0x5a5d64){const _0x49cf66=_0x3932e3(_0xfe915)[0x0]??_0xa7c153(0x452);if(!_0x43d838[_0xa7c153(0x3e5)](_0x49cf66))_0x43d838[_0xa7c153(0x423)](_0x49cf66,[]);_0x43d838[_0xa7c153(0x375)](_0x49cf66)['push'](_0xfe915);}const _0x27af09=[..._0x4d1612[_0xa7c153(0x2f9)](_0x214a7f=>_0x43d838[_0xa7c153(0x3e5)](_0x214a7f)),...[..._0x43d838[_0xa7c153(0x4dc)]()][_0xa7c153(0x2f9)](_0x5b81df=>!_0x4d1612[_0xa7c153(0x286)](_0x5b81df))];console[_0xa7c153(0x26a)]('');for(const _0x3d34e8 of _0x27af09){const _0x4b2586=_0x43d838[_0xa7c153(0x375)](_0x3d34e8);if(!_0x4b2586?.['length'])continue;console[_0xa7c153(0x26a)](_0x21c1a7(_0x286ea4['bold'],'\x20\x20'+(_0x352e30[_0x3d34e8]??_0x3d34e8)));for(const _0x5c28f5 of _0x4b2586){const _0x426a22=_0x21c1a7(_0x286ea4[_0xa7c153(0x31b)],_0x5c28f5[_0xa7c153(0x2a0)][_0xa7c153(0x2c9)](0x7)),_0x527f5a=_0x21c1a7(_0x286ea4[_0xa7c153(0x2b1)],_0x5cdc1b(_0x5c28f5['path'])),_0x51f475=_0x1c0435(_0x5c28f5)?_0x21c1a7(_0x286ea4[_0xa7c153(0x2e0)],'\x20\x20'+_0x1c0435(_0x5c28f5)):'',_0x1f7167=_0x5c28f5[_0xa7c153(0x2a1)]?.['id']?_0x21c1a7(_0x286ea4['gray'],'\x20\x20['+_0x5c28f5[_0xa7c153(0x2a1)]['id']+']'):'';console[_0xa7c153(0x26a)]('\x20\x20\x20\x20'+_0x426a22+'\x20'+_0x527f5a+_0x51f475+_0x1f7167);}console[_0xa7c153(0x26a)]('');}}function _0x48c3cc(_0x368488,_0x192403){const _0x49c9c0=_0x4a2f63,_0x2ff9a9=_0x192403[_0x49c9c0(0x46c)](/^\/api(\/env\/[^/]+)?\//,'')[_0x49c9c0(0x36d)]('/')[0x0],_0x738527=_0x368488[_0x49c9c0(0x2ea)][_0x49c9c0(0x45d)]()['filter'](_0x5c9530=>_0x5c9530[_0x49c9c0(0x37c)][_0x49c9c0(0x396)]()['includes'](_0x2ff9a9['toLowerCase']()));if(!_0x738527['length']){console[_0x49c9c0(0x26a)](_0x21c1a7(_0x286ea4['yellow'],_0x49c9c0(0x30d)+_0x192403+'\x0a'));return;}console[_0x49c9c0(0x26a)]('');for(const _0x4c94fa of _0x738527[_0x49c9c0(0x48e)](0x0,0xc)){for(const _0x66ca23 of _0x50f02b(_0x4c94fa)){console[_0x49c9c0(0x26a)](_0x66ca23);}console[_0x49c9c0(0x26a)]('');}}function _0x1c0435(_0x1222d9){const _0x4f2b9f=_0x4a2f63;return _0x1222d9[_0x4f2b9f(0x2a1)]?.['summary']??_0x1222d9[_0x4f2b9f(0x491)]?.[_0x4f2b9f(0x3ef)]??'';}function _0x8a016(_0x3a1b97){const _0x2161a5=_0x4a2f63;return _0x3a1b97[_0x2161a5(0x2a1)]?.['description']??_0x3a1b97[_0x2161a5(0x491)]?.[_0x2161a5(0x3c9)]??'';}function _0x3932e3(_0x188fd3){const _0x3627ea=_0x4a2f63;return _0x188fd3['operation']?.[_0x3627ea(0x295)]?.[_0x3627ea(0x21f)]?_0x188fd3['operation']['tags']:_0x188fd3[_0x3627ea(0x491)]?.[_0x3627ea(0x295)]??[];}function _0x50f02b(_0xc02617){const _0x2fbe2f=_0x4a2f63,_0x28b406=[];_0x28b406[_0x2fbe2f(0x29f)]('\x20\x20'+_0x21c1a7(_0x286ea4[_0x2fbe2f(0x466)]+_0x286ea4[_0x2fbe2f(0x31b)],_0xc02617[_0x2fbe2f(0x2a0)][_0x2fbe2f(0x2c9)](0x7))+'\x20'+_0x21c1a7(_0x286ea4[_0x2fbe2f(0x466)]+_0x286ea4[_0x2fbe2f(0x2b1)],_0xc02617['path']));_0xc02617[_0x2fbe2f(0x2a1)]?.['id']&&_0x28b406['push'](_0x2fbe2f(0x21a)+_0x21c1a7(_0x286ea4[_0x2fbe2f(0x23b)],_0x2fbe2f(0x2b6)+_0xc02617[_0x2fbe2f(0x2a1)]['id']));_0x1c0435(_0xc02617)&&_0x28b406[_0x2fbe2f(0x29f)](_0x2fbe2f(0x21a)+_0x21c1a7(_0x286ea4['white'],_0x1c0435(_0xc02617)));_0x8a016(_0xc02617)&&_0x28b406[_0x2fbe2f(0x29f)](_0x2fbe2f(0x21a)+_0x21c1a7(_0x286ea4[_0x2fbe2f(0x2e0)],_0x8a016(_0xc02617)));_0x3932e3(_0xc02617)[_0x2fbe2f(0x21f)]&&_0x28b406[_0x2fbe2f(0x29f)]('\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x21c1a7(_0x286ea4[_0x2fbe2f(0x23b)],_0x2fbe2f(0x374)+_0x3932e3(_0xc02617)[_0x2fbe2f(0x3e1)](',\x20')));_0xc02617[_0x2fbe2f(0x2a1)]?.[_0x2fbe2f(0x216)]?.[_0x2fbe2f(0x25d)]&&_0x28b406[_0x2fbe2f(0x29f)](_0x2fbe2f(0x21a)+_0x21c1a7(_0x286ea4[_0x2fbe2f(0x23b)],_0x2fbe2f(0x3eb)+_0xc02617[_0x2fbe2f(0x2a1)][_0x2fbe2f(0x216)][_0x2fbe2f(0x25d)]));_0xc02617[_0x2fbe2f(0x2a1)]?.[_0x2fbe2f(0x2ea)]?.['transport']&&_0xc02617['operation']['http'][_0x2fbe2f(0x223)]!==_0x2fbe2f(0x4a3)&&_0x28b406['push'](_0x2fbe2f(0x21a)+_0x21c1a7(_0x286ea4['gray'],_0x2fbe2f(0x4d0)+_0xc02617[_0x2fbe2f(0x2a1)][_0x2fbe2f(0x2ea)][_0x2fbe2f(0x223)]));if(_0xc02617['operation']?.[_0x2fbe2f(0x3f0)]){const _0x63511e=Object['keys'](_0xc02617[_0x2fbe2f(0x2a1)][_0x2fbe2f(0x3f0)]['properties']||{});if(_0x63511e['length'])_0x28b406['push'](_0x2fbe2f(0x21a)+_0x21c1a7(_0x286ea4['gray'],'input:\x20'+_0x63511e[_0x2fbe2f(0x3e1)](',\x20')));}return _0xc02617[_0x2fbe2f(0x491)]?.['body']&&_0x28b406[_0x2fbe2f(0x29f)]('\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x21c1a7(_0x286ea4['gray'],_0x2fbe2f(0x28e)+JSON[_0x2fbe2f(0x3f2)](_0xc02617[_0x2fbe2f(0x491)][_0x2fbe2f(0x4d4)]))),_0x28b406;}async function _0x6e7976(_0x5d0a21,_0x484811,_0x4500c3,_0x466fa4=null){const _0x3ba1a8=_0x4a2f63,_0x513e06=_0x4500c3[_0x3ba1a8(0x39d)]('?'),_0x1f1aec=_0x513e06>=0x0?_0x4500c3[_0x3ba1a8(0x48e)](0x0,_0x513e06):_0x4500c3,_0x4269b0=_0x513e06>=0x0?_0x4500c3[_0x3ba1a8(0x48e)](_0x513e06+0x1):'',_0x42e0f7=Object[_0x3ba1a8(0x489)](new URLSearchParams(_0x4269b0)[_0x3ba1a8(0x32a)]());return _0x5d0a21['http']['handle'](_0x484811,_0x1f1aec,{'body':_0x466fa4,'query':_0x42e0f7,'headers':{'content-type':_0x3ba1a8(0x248)}},{'internal':!![]});}function _0x447fc2(_0x2956ef){const _0x225e6b=_0x4a2f63;if(!_0x2956ef)return null;const _0xdb267b=_0x2956ef['trim']();if(!_0xdb267b)return null;try{return JSON[_0x225e6b(0x279)](_0xdb267b);}catch{}try{return JSON[_0x225e6b(0x279)](_0x27e58c(_0xdb267b));}catch(_0x27c223){throw new SyntaxError(_0x27c223[_0x225e6b(0x345)],{'cause':_0x27c223});}}function _0x27e58c(_0x1b1f67){const _0x2acf2d=_0x4a2f63;let _0x3c1e9c='',_0x1e1495=0x0;while(_0x1e1495<_0x1b1f67[_0x2acf2d(0x21f)]){const _0x283a8d=_0x1b1f67[_0x1e1495];if(_0x283a8d==='\x22'){_0x3c1e9c+='\x22',_0x1e1495++;while(_0x1e1495<_0x1b1f67[_0x2acf2d(0x21f)]&&_0x1b1f67[_0x1e1495]!=='\x22'){if(_0x1b1f67[_0x1e1495]==='\x5c'){_0x3c1e9c+=_0x1b1f67[_0x1e1495++];if(_0x1e1495<_0x1b1f67[_0x2acf2d(0x21f)])_0x3c1e9c+=_0x1b1f67[_0x1e1495++];}else _0x3c1e9c+=_0x1b1f67[_0x1e1495++];}_0x3c1e9c+='\x22';if(_0x1e1495<_0x1b1f67[_0x2acf2d(0x21f)])_0x1e1495++;continue;}if(_0x283a8d==='\x27'){_0x3c1e9c+='\x22',_0x1e1495++;while(_0x1e1495<_0x1b1f67[_0x2acf2d(0x21f)]&&_0x1b1f67[_0x1e1495]!=='\x27'){if(_0x1b1f67[_0x1e1495]==='\x5c'&&_0x1b1f67[_0x1e1495+0x1]==='\x27')_0x3c1e9c+='\x27',_0x1e1495+=0x2;else _0x1b1f67[_0x1e1495]==='\x22'?(_0x3c1e9c+='\x5c\x22',_0x1e1495++):_0x3c1e9c+=_0x1b1f67[_0x1e1495++];}_0x3c1e9c+='\x22';if(_0x1e1495<_0x1b1f67[_0x2acf2d(0x21f)])_0x1e1495++;continue;}if(_0x2acf2d(0x3d5)[_0x2acf2d(0x286)](_0x283a8d)){_0x3c1e9c+=_0x283a8d,_0x1e1495++;continue;}let _0x14e236='';while(_0x1e1495<_0x1b1f67[_0x2acf2d(0x21f)]&&!_0x2acf2d(0x2ec)[_0x2acf2d(0x286)](_0x1b1f67[_0x1e1495])&&_0x1b1f67[_0x1e1495]!=='\x20'&&_0x1b1f67[_0x1e1495]!=='\x09'&&_0x1b1f67[_0x1e1495]!=='\x0a'&&_0x1b1f67[_0x1e1495]!=='\x0d'){_0x14e236+=_0x1b1f67[_0x1e1495++];}let _0x2f09ff=_0x1e1495;while(_0x2f09ff<_0x1b1f67[_0x2acf2d(0x21f)]&&(_0x1b1f67[_0x2f09ff]==='\x20'||_0x1b1f67[_0x2f09ff]==='\x09'))_0x2f09ff++;if(_0x1b1f67[_0x2f09ff]===':')_0x3c1e9c+='\x22'+_0x14e236+'\x22';else _0x14e236===_0x2acf2d(0x3fd)||_0x14e236===_0x2acf2d(0x278)||_0x14e236===_0x2acf2d(0x2b4)||/^-?\d+(\.\d+)?([eE][+-]?\d+)?$/['test'](_0x14e236)?_0x3c1e9c+=_0x14e236:_0x3c1e9c+='\x22'+_0x14e236+'\x22';}return _0x3c1e9c['replace'](/,(\s*[}\]])/g,'$1');}function _0x3f2a57(_0x32d7bc){const _0x41e64e=_0x4a2f63,_0x91aa82=[];let _0x598906=0x0;while(_0x598906<_0x32d7bc[_0x41e64e(0x21f)]){while(_0x598906<_0x32d7bc[_0x41e64e(0x21f)]&&(_0x32d7bc[_0x598906]==='\x20'||_0x32d7bc[_0x598906]==='\x09'))_0x598906++;if(_0x598906>=_0x32d7bc[_0x41e64e(0x21f)])break;const _0x453c0a=_0x32d7bc[_0x598906];if(_0x453c0a==='{'||_0x453c0a==='['){const _0x13edce=_0x453c0a==='{'?'}':']',_0x36b99d=_0x598906++;let _0x14e2e7=0x1,_0x2dc97f=![],_0x57fb1d='';while(_0x598906<_0x32d7bc[_0x41e64e(0x21f)]&&_0x14e2e7>0x0){const _0x2cd43c=_0x32d7bc[_0x598906];if(_0x2dc97f){if(_0x2cd43c==='\x5c')_0x598906++;else{if(_0x2cd43c===_0x57fb1d)_0x2dc97f=![];}}else{if(_0x2cd43c==='\x22'||_0x2cd43c==='\x27')_0x2dc97f=!![],_0x57fb1d=_0x2cd43c;else{if(_0x2cd43c===_0x453c0a)_0x14e2e7++;else{if(_0x2cd43c===_0x13edce)_0x14e2e7--;}}}_0x598906++;}_0x91aa82[_0x41e64e(0x29f)](_0x32d7bc[_0x41e64e(0x48e)](_0x36b99d,_0x598906));continue;}if(_0x453c0a==='\x22'||_0x453c0a==='\x27'){const _0x2bc18b=_0x453c0a;_0x598906++;let _0x8bf57b='';while(_0x598906<_0x32d7bc['length']&&_0x32d7bc[_0x598906]!==_0x2bc18b){if(_0x32d7bc[_0x598906]==='\x5c'&&_0x598906+0x1<_0x32d7bc[_0x41e64e(0x21f)])_0x598906++,_0x8bf57b+=_0x32d7bc[_0x598906++];else _0x8bf57b+=_0x32d7bc[_0x598906++];}if(_0x598906<_0x32d7bc['length'])_0x598906++;_0x91aa82[_0x41e64e(0x29f)](_0x8bf57b);continue;}let _0x12f2cc='';while(_0x598906<_0x32d7bc[_0x41e64e(0x21f)]&&_0x32d7bc[_0x598906]!=='\x20'&&_0x32d7bc[_0x598906]!=='\x09'&&_0x32d7bc[_0x598906]!=='{'&&_0x32d7bc[_0x598906]!=='['){_0x12f2cc+=_0x32d7bc[_0x598906++];}if(_0x12f2cc)_0x91aa82['push'](_0x12f2cc);}return _0x91aa82;}function _0x53ea6a(_0x2d60db,_0x363ad4){const _0x2458e4=_0x4a2f63,_0x130dfe=[..._0x2d60db[_0x2458e4(0x267)][_0x2458e4(0x4dc)]()][_0x2458e4(0x2f9)](_0x38acf2=>!_0x38acf2[_0x2458e4(0x22f)]('~'));console[_0x2458e4(0x26a)](['',_0x21c1a7(_0x286ea4['bold']+_0x286ea4[_0x2458e4(0x2b1)],_0x2458e4(0x44f)),_0x21c1a7(_0x286ea4[_0x2458e4(0x466)]+_0x286ea4['cyan'],_0x2458e4(0x21c))+_0x21c1a7(_0x286ea4['bold'],_0x2458e4(0x387))+_0x21c1a7(_0x286ea4[_0x2458e4(0x466)]+_0x286ea4[_0x2458e4(0x2b1)],'║'),_0x21c1a7(_0x286ea4[_0x2458e4(0x466)]+_0x286ea4[_0x2458e4(0x2b1)],_0x2458e4(0x2ba)),'','\x20\x20'+_0x21c1a7(_0x286ea4[_0x2458e4(0x313)],'✓')+'\x20'+_0x21c1a7(_0x286ea4[_0x2458e4(0x466)],_0x2458e4(0x426))+'\x20\x20http://localhost:'+_0x363ad4[_0x2458e4(0x2bf)],'\x20\x20'+_0x21c1a7(_0x286ea4[_0x2458e4(0x313)],'✓')+'\x20'+_0x21c1a7(_0x286ea4[_0x2458e4(0x466)],_0x2458e4(0x43a))+_0x2458e4(0x1ee)+_0x363ad4['port']+_0x2458e4(0x3e6),'\x20\x20'+_0x21c1a7(_0x286ea4[_0x2458e4(0x313)],'✓')+'\x20'+_0x21c1a7(_0x286ea4[_0x2458e4(0x466)],_0x2458e4(0x37c))+'\x20\x20\x20\x20'+_0x363ad4[_0x2458e4(0x377)],'\x20\x20'+_0x21c1a7(_0x286ea4['green'],'✓')+'\x20'+_0x21c1a7(_0x286ea4[_0x2458e4(0x466)],'id')+_0x2458e4(0x287)+_0x21c1a7(_0x286ea4['gray'],_0x2d60db['id']),'\x20\x20'+_0x21c1a7(_0x286ea4[_0x2458e4(0x313)],'✓')+'\x20'+_0x21c1a7(_0x286ea4[_0x2458e4(0x466)],_0x2458e4(0x21e))+_0x2458e4(0x43c)+_0x130dfe[_0x2458e4(0x404)](_0x4fb13b=>_0x21c1a7(_0x286ea4[_0x2458e4(0x2b1)],_0x4fb13b))[_0x2458e4(0x3e1)]('\x20\x20'),..._0x363ad4[_0x2458e4(0x27e)]?[]:['\x20\x20'+_0x21c1a7(_0x286ea4[_0x2458e4(0x313)],'✓')+'\x20'+_0x21c1a7(_0x286ea4['bold'],_0x2458e4(0x304))+_0x2458e4(0x41c)+_0x363ad4['port']+'/admin/index.html'],'',_0x21c1a7(_0x286ea4['dim'],_0x2458e4(0x2a6)+_0x21c1a7(_0x286ea4[_0x2458e4(0x466)],_0x2458e4(0x238))+_0x2458e4(0x3d7)+_0x21c1a7(_0x286ea4['bold'],_0x2458e4(0x226))+_0x2458e4(0x20a)+_0x21c1a7(_0x286ea4[_0x2458e4(0x466)],_0x2458e4(0x31c))+_0x2458e4(0x230)),''][_0x2458e4(0x3e1)]('\x0a'));}function _0x4817a5(_0x5a3aca){const _0xb25cf1=_0x4a2f63;console[_0xb25cf1(0x26a)]('\x0a'+_0x21c1a7(_0x286ea4[_0xb25cf1(0x466)],_0xb25cf1(0x442))+'\x20\x20'+_0x21c1a7(_0x286ea4[_0xb25cf1(0x2e0)],'—\x20/api/\x20is\x20auto-prefixed,\x20env\x20is\x20auto-injected')+_0xb25cf1(0x435)+_0x21c1a7(_0x286ea4[_0xb25cf1(0x2b1)],_0xb25cf1(0x406))+_0xb25cf1(0x203)+_0x21c1a7(_0x286ea4[_0xb25cf1(0x2b1)],_0xb25cf1(0x406))+'\x20'+_0x21c1a7(_0x286ea4[_0xb25cf1(0x45f)],'<json-body>')+_0xb25cf1(0x4d9)+_0x21c1a7(_0x286ea4[_0xb25cf1(0x2b1)],_0xb25cf1(0x342))+'\x20'+_0x21c1a7(_0x286ea4['cyan'],'<path>')+'\x20'+_0x21c1a7(_0x286ea4[_0xb25cf1(0x45f)],'[body]')+'\x20\x20\x20\x20\x20explicit\x20method\x0a\x0a\x20\x20'+_0x21c1a7(_0x286ea4[_0xb25cf1(0x2e0)],'Examples')+_0xb25cf1(0x4bd)+_0x21c1a7(_0x286ea4[_0xb25cf1(0x23b)],_0xb25cf1(0x28d))+_0xb25cf1(0x2ae)+_0x21c1a7(_0x286ea4[_0xb25cf1(0x23b)],_0xb25cf1(0x21e))+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20→\x20GET\x20/api/envs\x0a\x20\x20\x20\x20'+_0x21c1a7(_0x286ea4[_0xb25cf1(0x23b)],_0xb25cf1(0x41f))+_0xb25cf1(0x2b5)+_0x5a3aca[_0xb25cf1(0x2da)]+'/types\x0a\x20\x20\x20\x20'+_0x21c1a7(_0x286ea4['gray'],'type/users')+_0xb25cf1(0x428)+_0x5a3aca[_0xb25cf1(0x2da)]+'/type/users\x0a\x20\x20\x20\x20'+_0x21c1a7(_0x286ea4['gray'],_0xb25cf1(0x4b9))+_0xb25cf1(0x315)+_0x5a3aca[_0xb25cf1(0x2da)]+_0xb25cf1(0x43e)+_0x21c1a7(_0x286ea4[_0xb25cf1(0x23b)],'type/users/query\x20{\x22active\x22:true}')+_0xb25cf1(0x205)+_0x5a3aca['env']+_0xb25cf1(0x294)+_0x21c1a7(_0x286ea4[_0xb25cf1(0x23b)],'PUT\x20type/users/item/x\x20{\x22n\x22:1}')+_0xb25cf1(0x4bd)+_0x21c1a7(_0x286ea4[_0xb25cf1(0x23b)],_0xb25cf1(0x42c))+_0xb25cf1(0x4bd)+_0x21c1a7(_0x286ea4[_0xb25cf1(0x23b)],'env/staging/info')+_0xb25cf1(0x224)+_0x21c1a7(_0x286ea4[_0xb25cf1(0x466)],_0xb25cf1(0x328))+'\x20\x20'+_0x21c1a7(_0x286ea4[_0xb25cf1(0x2e0)],_0xb25cf1(0x20c))+_0xb25cf1(0x435)+_0x21c1a7(_0x286ea4[_0xb25cf1(0x2b1)],'--env\x20<name>')+_0xb25cf1(0x25b)+_0x21c1a7(_0x286ea4[_0xb25cf1(0x2b1)],_0xb25cf1(0x4e8))+_0xb25cf1(0x1f1)+_0x21c1a7(_0x286ea4[_0xb25cf1(0x2e0)],_0xb25cf1(0x2d6))+_0xb25cf1(0x4bd)+_0x21c1a7(_0x286ea4['gray'],'types\x20--env\x20staging')+_0xb25cf1(0x4bd)+_0x21c1a7(_0x286ea4[_0xb25cf1(0x23b)],_0xb25cf1(0x40e))+_0xb25cf1(0x4bd)+_0x21c1a7(_0x286ea4['gray'],'type/users\x20--help')+'\x0a\x0a'+_0x21c1a7(_0x286ea4['bold'],_0xb25cf1(0x400))+'\x0a\x0a\x20\x20'+_0x21c1a7(_0x286ea4[_0xb25cf1(0x2b1)],_0xb25cf1(0x473))+_0xb25cf1(0x33a)+_0x21c1a7(_0x286ea4[_0xb25cf1(0x2b1)],_0xb25cf1(0x2da))+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20show\x20active\x20environment\x20+\x20list\x20all\x20envs\x0a\x20\x20'+_0x21c1a7(_0x286ea4[_0xb25cf1(0x2b1)],_0xb25cf1(0x226))+'\x20'+_0x21c1a7(_0x286ea4[_0xb25cf1(0x2e0)],'[filter]')+_0xb25cf1(0x2a2)+_0x21c1a7(_0x286ea4['cyan'],_0xb25cf1(0x202))+'\x20'+_0x21c1a7(_0x286ea4[_0xb25cf1(0x2e0)],_0xb25cf1(0x4bc))+_0xb25cf1(0x445)+_0x21c1a7(_0x286ea4[_0xb25cf1(0x2b1)],'open')+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20open\x20admin\x20UI\x20in\x20browser\x0a\x20\x20'+_0x21c1a7(_0x286ea4[_0xb25cf1(0x2b1)],'help')+_0xb25cf1(0x48f)+_0x21c1a7(_0x286ea4['cyan'],_0xb25cf1(0x31c))+'\x20'+_0x21c1a7(_0x286ea4[_0xb25cf1(0x2e0)],'/\x20quit\x20/\x20Ctrl+C')+_0xb25cf1(0x37b));}async function _0x1260ee(_0x1fa429,_0x397657=0x0){const _0x44abc8=_0x4a2f63;process[_0x44abc8(0x322)][_0x44abc8(0x334)]('\x0a'),console[_0x44abc8(0x26a)](_0x21c1a7(_0x286ea4['yellow'],_0x44abc8(0x385)));try{await _0x1fa429[_0x44abc8(0x324)]();}catch(_0x246f25){console[_0x44abc8(0x1f3)](_0x21c1a7(_0x286ea4[_0x44abc8(0x350)],'\x20\x20'+_0x246f25[_0x44abc8(0x345)]));}process[_0x44abc8(0x31c)](_0x397657);}function _0x28a399(_0x615dac){const _0x5c8a2e=_0x4a2f63,_0x26bffd=_0x615dac[_0x5c8a2e(0x2da)]!=='default'?_0x21c1a7(_0x286ea4[_0x5c8a2e(0x45f)],'['+_0x615dac[_0x5c8a2e(0x2da)]+']'):'';return _0x21c1a7(_0x286ea4['bold']+_0x286ea4['cyan'],_0x5c8a2e(0x35a))+_0x26bffd+_0x21c1a7(_0x286ea4[_0x5c8a2e(0x23b)],'>\x20');}const _0xec7241=new Set([_0x4a2f63(0x1fa),_0x4a2f63(0x4ce),_0x4a2f63(0x2dd),'PATCH',_0x4a2f63(0x30b)]);async function _0x4649f4(_0x4564af,_0x57015e,_0x1d665e,_0x12349c,_0xae8c41,_0x1958e5){const _0x2d527f=_0x4a2f63;_0x4564af=_0x4564af[_0x2d527f(0x2b2)]();if(!_0x4564af||_0x4564af['startsWith']('#'))return;const _0x1919a4=_0x3f2a57(_0x4564af),{flags:_0x1d1133,rest:_0x69d021}=_0x197024(_0x1919a4);if(!_0x69d021[_0x2d527f(0x21f)])return;const _0x2d9214=_0x69d021[0x0],_0xa59e6c=_0x2d9214[_0x2d527f(0x49d)]();if(_0xa59e6c===_0x2d527f(0x367)){if(_0x69d021[0x1])_0x48c3cc(_0x57015e,_0x1ea2a7(_0x69d021[0x1],_0x1d1133[_0x2d527f(0x2da)]??_0xae8c41[_0x2d527f(0x2da)]));else _0x4817a5(_0xae8c41);return;}if(_0xa59e6c===_0x2d527f(0x36c)){const _0x18c46b=_0x69d021[0x1];if(!_0x18c46b){console['log'](_0x21c1a7(_0x286ea4['red'],_0x2d527f(0x3c6)));return;}try{_0x57015e['env'](_0x18c46b),_0xae8c41[_0x2d527f(0x2da)]=_0x18c46b,_0x1958e5?.[_0x2d527f(0x378)](_0x28a399(_0xae8c41)),console[_0x2d527f(0x26a)]('\x0a\x20\x20'+_0x21c1a7(_0x286ea4['green'],'✓')+'\x20active\x20env:\x20'+_0x21c1a7(_0x286ea4[_0x2d527f(0x466)]+_0x286ea4['cyan'],_0x18c46b)+'\x0a');}catch{console[_0x2d527f(0x26a)](_0x2d527f(0x410)+_0x21c1a7(_0x286ea4['red'],'✗')+_0x2d527f(0x352)+_0x21c1a7(_0x286ea4[_0x2d527f(0x466)],_0x18c46b)+_0x2d527f(0x32c)+_0x21c1a7(_0x286ea4[_0x2d527f(0x2e0)],_0x2d527f(0x459)));}return;}if(_0xa59e6c===_0x2d527f(0x373)){const _0x59fa91=[..._0x57015e[_0x2d527f(0x267)][_0x2d527f(0x4dc)]()]['filter'](_0x384782=>!_0x384782['startsWith']('~'));console[_0x2d527f(0x26a)]('');for(const _0x3d99ca of _0x59fa91){const _0x509526=_0x3d99ca===_0xae8c41[_0x2d527f(0x2da)];console[_0x2d527f(0x26a)]('\x20\x20'+(_0x509526?_0x21c1a7(_0x286ea4[_0x2d527f(0x313)],'●'):_0x21c1a7(_0x286ea4['dim'],'○'))+'\x20\x20'+(_0x509526?_0x21c1a7(_0x286ea4[_0x2d527f(0x466)]+_0x286ea4[_0x2d527f(0x2b1)],_0x3d99ca):_0x21c1a7(_0x286ea4[_0x2d527f(0x2e0)],_0x3d99ca)));}console[_0x2d527f(0x26a)](_0x2d527f(0x410)+_0x21c1a7(_0x286ea4[_0x2d527f(0x2e0)],_0x2d527f(0x26c))+'\x20'+_0x21c1a7(_0x286ea4[_0x2d527f(0x2b1)],_0xae8c41['env'])),console[_0x2d527f(0x26a)]('');return;}if(_0xa59e6c===_0x2d527f(0x24d)){const _0x582b5f=[..._0x57015e[_0x2d527f(0x267)][_0x2d527f(0x365)]()][_0x2d527f(0x2f9)](_0x1d4b47=>!_0x1d4b47['name'][_0x2d527f(0x22f)]('~'));console[_0x2d527f(0x26a)]('');const _0x4cd290=Math[_0x2d527f(0x381)](..._0x582b5f[_0x2d527f(0x404)](_0x5d1ff2=>_0x5d1ff2[_0x2d527f(0x49e)][_0x2d527f(0x21f)]));for(const _0x332dcf of _0x582b5f){const _0x1d43f4=_0x332dcf[_0x2d527f(0x49e)]===_0xae8c41['env'],_0x588dd7=_0x1d43f4?_0x21c1a7(_0x286ea4[_0x2d527f(0x313)],'●'):_0x21c1a7(_0x286ea4['dim'],'○'),_0x5b90e8=_0x1d43f4?_0x21c1a7(_0x286ea4['bold']+_0x286ea4['cyan'],_0x332dcf[_0x2d527f(0x49e)][_0x2d527f(0x2c9)](_0x4cd290)):_0x21c1a7(_0x286ea4[_0x2d527f(0x2e0)],_0x332dcf[_0x2d527f(0x49e)][_0x2d527f(0x2c9)](_0x4cd290)),_0x93bc3a=[..._0x332dcf['typeSubDbs'][_0x2d527f(0x4dc)]()][_0x2d527f(0x2f9)](_0x58ab43=>!_0x58ab43[_0x2d527f(0x22f)]('~')),_0x9f4ea5=_0x93bc3a[_0x2d527f(0x21f)]?_0x21c1a7(_0x286ea4[_0x2d527f(0x2e0)],_0x93bc3a['slice'](0x0,0x5)[_0x2d527f(0x3e1)](',\x20')+(_0x93bc3a[_0x2d527f(0x21f)]>0x5?'\x20\x20+'+(_0x93bc3a[_0x2d527f(0x21f)]-0x5)+_0x2d527f(0x34f):'')):_0x21c1a7(_0x286ea4[_0x2d527f(0x2e0)],_0x2d527f(0x24e));console['log']('\x20\x20'+_0x588dd7+'\x20\x20'+_0x5b90e8+'\x20\x20'+_0x9f4ea5);}console[_0x2d527f(0x26a)]('');return;}if(_0xa59e6c==='TYPES'){const _0x55290c=_0x1d1133[_0x2d527f(0x2da)]??_0x69d021[0x1]??_0xae8c41['env'];try{const _0x84631=_0x57015e[_0x2d527f(0x2da)](_0x55290c),_0x47a7d9=[..._0x84631[_0x2d527f(0x4d2)][_0x2d527f(0x4dc)]()][_0x2d527f(0x2f9)](_0x19145a=>!_0x19145a[_0x2d527f(0x22f)]('~'))[_0x2d527f(0x1e4)]();console[_0x2d527f(0x26a)](_0x2d527f(0x410)+_0x21c1a7(_0x286ea4[_0x2d527f(0x2e0)],_0x47a7d9[_0x2d527f(0x21f)]+_0x2d527f(0x228)+(_0x47a7d9['length']!==0x1?'s':'')+_0x2d527f(0x38f)+_0x55290c));for(const _0x29422a of _0x47a7d9){const _0x3911e2=_0x84631[_0x2d527f(0x4d2)][_0x2d527f(0x375)](_0x29422a),_0x40e4c6=_0x3911e2?.[_0x2d527f(0x34d)]?.['getCount']?.()??0x0,_0x399ae6=_0x21c1a7(_0x286ea4[_0x2d527f(0x466)]+_0x286ea4[_0x2d527f(0x2b1)],_0x29422a[_0x2d527f(0x2c9)](0x1c));console[_0x2d527f(0x26a)](_0x2d527f(0x43c)+_0x399ae6+'\x20\x20'+_0x21c1a7(_0x286ea4['magenta'],String(_0x40e4c6)[_0x2d527f(0x3f1)](0x6))+'\x20'+_0x21c1a7(_0x286ea4[_0x2d527f(0x2e0)],_0x2d527f(0x35f)));}console[_0x2d527f(0x26a)]('');}catch(_0x128a9d){console[_0x2d527f(0x1f3)](_0x21c1a7(_0x286ea4[_0x2d527f(0x350)],_0x2d527f(0x410)+_0x128a9d[_0x2d527f(0x345)]+'\x0a'));}return;}if(_0xa59e6c==='ROUTES'){_0x2b2cd4(_0x57015e,_0x69d021[_0x2d527f(0x48e)](0x1)['join']('\x20'));return;}if(_0xa59e6c===_0x2d527f(0x27b)){const _0x5dccdf=(_0x69d021[0x1]??'')[_0x2d527f(0x396)]();if(!_0x5dccdf||_0x5dccdf==='on')_0x12349c[_0x2d527f(0x2f6)]=!![],_0x12349c['level']='info',console[_0x2d527f(0x26a)](_0x2d527f(0x410)+_0x21c1a7(_0x286ea4['green'],'✓')+'\x20logs\x20on\x20\x20'+_0x21c1a7(_0x286ea4[_0x2d527f(0x2e0)],_0x2d527f(0x380))+'\x0a');else{if(_0x5dccdf===_0x2d527f(0x357))_0x12349c['enabled']=![],console[_0x2d527f(0x26a)](_0x2d527f(0x410)+_0x21c1a7(_0x286ea4[_0x2d527f(0x45f)],'○')+_0x2d527f(0x37e));else _0x1f5c85[_0x5dccdf]!==undefined?(_0x12349c['enabled']=!![],_0x12349c[_0x2d527f(0x485)]=_0x5dccdf,console[_0x2d527f(0x26a)](_0x2d527f(0x410)+_0x21c1a7(_0x286ea4['green'],'✓')+_0x2d527f(0x31f)+_0x21c1a7(_0x286ea4[_0x2d527f(0x466)],_0x5dccdf)+'\x0a')):console[_0x2d527f(0x1f3)](_0x21c1a7(_0x286ea4['red'],_0x2d527f(0x4aa)));}return;}if(_0xa59e6c===_0x2d527f(0x239)||_0xa59e6c===_0x2d527f(0x4b4)){await _0x1260ee(_0x57015e,0x0);return;}if(_0xa59e6c===_0x2d527f(0x3c3)){const _0x268fe8=_0x2d527f(0x44e)+_0x1d665e[_0x2d527f(0x2bf)]+_0x2d527f(0x4be),_0x51c100=process[_0x2d527f(0x30c)]===_0x2d527f(0x470)?_0x2d527f(0x371)+_0x268fe8:process[_0x2d527f(0x30c)]==='darwin'?_0x2d527f(0x2d2)+_0x268fe8:'xdg-open\x20'+_0x268fe8;require$$4[_0x2d527f(0x4c8)](_0x51c100),console[_0x2d527f(0x26a)](_0x2d527f(0x410)+_0x21c1a7(_0x286ea4[_0x2d527f(0x313)],'✓')+_0x2d527f(0x33c)+_0x21c1a7(_0x286ea4[_0x2d527f(0x2b1)],_0x268fe8)+'\x0a');return;}let _0x7fac8e,_0x359b0a,_0x26bde6;if(_0xec7241['has'](_0xa59e6c)){_0x7fac8e=_0xa59e6c,_0x359b0a=_0x69d021[0x1],_0x26bde6=_0x69d021[_0x2d527f(0x48e)](0x2);if(!_0x359b0a){console[_0x2d527f(0x1f3)](_0x21c1a7(_0x286ea4[_0x2d527f(0x350)],_0x2d527f(0x23a)+_0x2d9214+_0x2d527f(0x465)));return;}}else _0x7fac8e=null,_0x359b0a=_0x69d021[0x0],_0x26bde6=_0x69d021['slice'](0x1);const _0x5979f7=_0x1d1133[_0x2d527f(0x2da)]??_0xae8c41['env'],_0x31d0c8=_0x1ea2a7(_0x359b0a,_0x5979f7);if(_0x1d1133[_0x2d527f(0x238)]){_0x48c3cc(_0x57015e,_0x31d0c8);return;}let _0x8947b=null;if(_0x26bde6[_0x2d527f(0x21f)]){const _0x1c737c=_0x26bde6['join']('\x20');try{_0x8947b=_0x447fc2(_0x1c737c);}catch(_0x54e98f){console[_0x2d527f(0x1f3)](_0x21c1a7(_0x286ea4[_0x2d527f(0x350)],'\x0a\x20\x20Invalid\x20JSON:\x20'+_0x1c737c+_0x2d527f(0x410)+_0x21c1a7(_0x286ea4['dim'],_0x54e98f['message'])+'\x0a'));return;}}if(!_0x7fac8e)_0x7fac8e=_0x8947b!==null?_0x2d527f(0x4ce):_0x2d527f(0x1fa);try{const _0x53af27=await _0x6e7976(_0x57015e,_0x7fac8e,_0x31d0c8,_0x8947b);_0x247cf1(_0x53af27[_0x2d527f(0x1ed)],_0x53af27[_0x2d527f(0x4d4)]);}catch(_0x12b230){console['error'](_0x2d527f(0x410)+_0x21c1a7(_0x286ea4[_0x2d527f(0x350)],'✗')+'\x20'+_0x12b230[_0x2d527f(0x345)]+'\x0a');}}class _0x43e62e{constructor(){const _0x216a83=_0x4a2f63;this[_0x216a83(0x2dc)]=new Map(),this[_0x216a83(0x305)]=null,this[_0x216a83(0x3f5)]=![];}}function _0x22820d(_0x4259ee){const _0x5453f3=_0x4a2f63,_0x2ea115=new _0x43e62e();for(const _0x5e0dea of _0x4259ee){if(_0x5e0dea[_0x5453f3(0x491)]?.[_0x5453f3(0x23f)])continue;const _0x23c217=_0x5e0dea[_0x5453f3(0x37c)][_0x5453f3(0x46c)](/^\/api/,'')[_0x5453f3(0x46c)](/^\[\/env\/:env=[^\]]*\]/,'')[_0x5453f3(0x46c)](/^\//,'');if(!_0x23c217)continue;let _0xd06919=_0x2ea115;for(const _0x614fb9 of _0x23c217[_0x5453f3(0x36d)]('/')['filter'](Boolean)){if(_0x614fb9[_0x5453f3(0x22f)](':')){const _0x2bda96=_0x614fb9['slice'](0x1);if(!_0xd06919[_0x5453f3(0x305)])_0xd06919['dynamic']={'param':_0x2bda96,'node':new _0x43e62e()};_0xd06919=_0xd06919[_0x5453f3(0x305)]['node'];}else{if(!_0xd06919[_0x5453f3(0x2dc)][_0x5453f3(0x3e5)](_0x614fb9))_0xd06919[_0x5453f3(0x2dc)][_0x5453f3(0x423)](_0x614fb9,new _0x43e62e());_0xd06919=_0xd06919[_0x5453f3(0x2dc)]['get'](_0x614fb9);}}_0xd06919[_0x5453f3(0x3f5)]=!![];}return _0x2ea115;}const _0x5a5389=new Map();function _0x7e02ff(_0x516933,_0x165d65,_0x5176e5){const _0x5252e0=_0x4a2f63,_0x3bf9c5=_0x5a5389[_0x5252e0(0x375)](_0x516933);if(_0x3bf9c5&&_0x3bf9c5[_0x5252e0(0x21d)]>Date[_0x5252e0(0x416)]())return _0x3bf9c5['val'];const _0x4b4ded=_0x5176e5();return _0x5a5389[_0x5252e0(0x423)](_0x516933,{'val':_0x4b4ded,'exp':Date['now']()+_0x165d65}),_0x4b4ded;}function _0x18c027(_0x3cbc45,_0x45e62b,_0x59fe8c,_0x50c7ca){const _0x44e521=_0x4a2f63,_0x58101b=_0x45e62b[_0x44e521(0x2da)]??_0x50c7ca['env'];switch(_0x3cbc45){case _0x44e521(0x2da):return[..._0x59fe8c[_0x44e521(0x267)][_0x44e521(0x4dc)]()][_0x44e521(0x2f9)](_0x40cd79=>!_0x40cd79[_0x44e521(0x22f)]('~'));case'type':return _0x7e02ff(_0x44e521(0x4b6)+_0x58101b,0x7d0,()=>{const _0xe5ccde=_0x44e521;try{return[..._0x59fe8c[_0xe5ccde(0x2da)](_0x58101b)[_0xe5ccde(0x4d2)][_0xe5ccde(0x4dc)]()][_0xe5ccde(0x2f9)](_0x5886c8=>!_0x5886c8['startsWith']('~'));}catch{return[];}});case _0x44e521(0x2f3):if(!_0x45e62b['type'])return[];return _0x7e02ff('keys:'+_0x58101b+':'+_0x45e62b[_0x44e521(0x3d2)],0x5dc,()=>{const _0x17dadc=_0x44e521;try{const _0x2b35bc=_0x59fe8c['env'](_0x58101b)['typeSubDbs']['get'](_0x45e62b[_0x17dadc(0x3d2)]);if(!_0x2b35bc?.[_0x17dadc(0x34d)])return[];const _0x671248=[];for(const {key:_0x170701}of _0x2b35bc[_0x17dadc(0x34d)][_0x17dadc(0x3b8)]({'limit':0x32})){_0x671248['push'](String(_0x170701));if(_0x671248[_0x17dadc(0x21f)]>=0x32)break;}return _0x671248;}catch{return[];}});case'index':if(!_0x45e62b[_0x44e521(0x3d2)])return[];return _0x7e02ff(_0x44e521(0x1e3)+_0x58101b+':'+_0x45e62b[_0x44e521(0x3d2)],0x7d0,()=>{const _0x338052=_0x44e521;try{const _0x177630=_0x59fe8c[_0x338052(0x2da)](_0x58101b)[_0x338052(0x4d2)]['get'](_0x45e62b[_0x338052(0x3d2)]);return _0x177630?[..._0x177630[_0x338052(0x2cc)]?.['keys']()??[]]:[];}catch{return[];}});case _0x44e521(0x249):if(!_0x45e62b['type'])return[];return _0x7e02ff('fts:'+_0x58101b+':'+_0x45e62b[_0x44e521(0x3d2)],0x7d0,()=>{const _0x358f74=_0x44e521;try{return _0x59fe8c[_0x358f74(0x405)]?.[_0x358f74(0x3bb)]?.(_0x45e62b[_0x358f74(0x3d2)],_0x59fe8c[_0x358f74(0x2da)](_0x58101b))?.[_0x358f74(0x404)](_0x443027=>_0x443027[_0x358f74(0x49e)])??[];}catch{return[];}});default:return[];}}function _0x1e5385(_0x44cd0d,_0x24d6a0,_0x359039,_0x2004b2){const _0x4bbe0b=_0x4a2f63,_0x4a41d6=_0x44cd0d[_0x4bbe0b(0x36f)]('/'),_0x12de03=_0x44cd0d['split']('/'),_0xcd666b=_0x4a41d6?_0x12de03['slice'](0x0,-0x1):_0x12de03[_0x4bbe0b(0x48e)](0x0,-0x1),_0x24343c=_0x4a41d6?'':_0x12de03[_0x12de03[_0x4bbe0b(0x21f)]-0x1];let _0xb6ed6e=_0x24d6a0;const _0x22a628={};for(const _0x4517fc of _0xcd666b){if(!_0x4517fc)continue;if(_0xb6ed6e['children']['has'](_0x4517fc))_0xb6ed6e=_0xb6ed6e[_0x4bbe0b(0x2dc)][_0x4bbe0b(0x375)](_0x4517fc);else{if(_0xb6ed6e['dynamic'])_0x22a628[_0xb6ed6e['dynamic'][_0x4bbe0b(0x3da)]]=_0x4517fc,_0xb6ed6e=_0xb6ed6e[_0x4bbe0b(0x305)][_0x4bbe0b(0x2fb)];else return[];}}const _0x2fd294=_0xcd666b[_0x4bbe0b(0x2f9)](Boolean),_0x4c9605=_0x2fd294[_0x4bbe0b(0x21f)]?_0x2fd294[_0x4bbe0b(0x3e1)]('/')+'/':'',_0x54eabc=[];for(const [_0x2236b4]of _0xb6ed6e['children']){if(_0x2236b4[_0x4bbe0b(0x22f)](_0x24343c))_0x54eabc[_0x4bbe0b(0x29f)](_0x4c9605+_0x2236b4);}if(_0xb6ed6e[_0x4bbe0b(0x305)])for(const _0x210aef of _0x18c027(_0xb6ed6e[_0x4bbe0b(0x305)][_0x4bbe0b(0x3da)],_0x22a628,_0x359039,_0x2004b2)){if(String(_0x210aef)[_0x4bbe0b(0x22f)](_0x24343c))_0x54eabc[_0x4bbe0b(0x29f)](_0x4c9605+_0x210aef);}return _0x54eabc[_0x4bbe0b(0x48e)](0x0,0x64);}const _0x2989d4=[_0x4a2f63(0x238),'use',_0x4a2f63(0x2da),_0x4a2f63(0x21e),'types',_0x4a2f63(0x226),_0x4a2f63(0x202),_0x4a2f63(0x397),_0x4a2f63(0x31c),_0x4a2f63(0x253)];function _0x742a8e(_0x95ff0c,_0x2663fc,_0x40878e){return function _0x3acc39(_0x1b9e45){const _0x29a008=_0x3a76;try{const _0x5a188c=_0x1b9e45[_0x29a008(0x351)](/\s[{[]/),_0x578d39=_0x5a188c>=0x0?_0x1b9e45[_0x29a008(0x48e)](0x0,_0x5a188c):_0x1b9e45,_0x1cf340=_0x578d39[_0x29a008(0x3ba)]();if(!_0x1cf340){const _0x520fc3=[..._0x2989d4,...[..._0x95ff0c[_0x29a008(0x2dc)]['keys']()]][_0x29a008(0x48e)](0x0,0x64);return[_0x520fc3,''];}const _0xb44cd7=_0x1cf340[_0x29a008(0x36d)](/\s+/),_0x3a5e8a=_0xb44cd7[0x0],_0x372995=_0x3a5e8a[_0x29a008(0x49d)]();if(_0xb44cd7['length']===0x1){const _0x307358=_0x3a5e8a['toLowerCase'](),_0x4986f5=_0x2989d4[_0x29a008(0x2f9)](_0x2dc062=>_0x2dc062[_0x29a008(0x22f)](_0x307358)),_0x478316=_0x1e5385(_0x3a5e8a,_0x95ff0c,_0x2663fc,_0x40878e),_0x11b114=[...new Set([..._0x4986f5,..._0x478316])]['slice'](0x0,0x64);return[_0x11b114,_0x3a5e8a];}if(_0xec7241[_0x29a008(0x3e5)](_0x372995)&&_0xb44cd7['length']===0x2){const _0x140df0=_0xb44cd7[0x1],_0x93df75=_0x1e5385(_0x140df0,_0x95ff0c,_0x2663fc,_0x40878e);return[_0x93df75[_0x29a008(0x404)](_0x3cd0f9=>_0x3a5e8a+'\x20'+_0x3cd0f9),_0x3a5e8a+'\x20'+_0x140df0];}if(!_0xec7241['has'](_0x372995)&&_0xb44cd7[_0x29a008(0x21f)]>0x1){const _0x57a37b=_0x1e5385(_0x3a5e8a,_0x95ff0c,_0x2663fc,_0x40878e),_0xf9c01e='\x20'+_0xb44cd7[_0x29a008(0x48e)](0x1)['join']('\x20');return[_0x57a37b[_0x29a008(0x404)](_0x58b2c0=>_0x58b2c0+_0xf9c01e),_0x3a5e8a+_0xf9c01e];}return[[],_0x1b9e45];}catch{return[[],_0x1b9e45];}};}async function _0x4cdbf7(_0x59d40f,_0xb382b4){const _0x457fd0=_0x4a2f63,_0x1c8c32={'enabled':!![],'level':_0xb382b4[_0x457fd0(0x413)]??_0x457fd0(0x28d)},_0x395371={'env':_0x457fd0(0x42d)},_0x2f8980={'current':null},_0xbc9b4d=_0x22820d(_0x59d40f[_0x457fd0(0x2ea)][_0x457fd0(0x45d)]()),_0x52f835=_0x742a8e(_0xbc9b4d,_0x59d40f,_0x395371);_0x59d40f['log']['attach'](_0x517ead=>{const _0xa2bef0=_0x457fd0;if(!_0x1c8c32[_0xa2bef0(0x2f6)])return;_0x1c354e(_0x517ead,_0x1c8c32[_0xa2bef0(0x485)]),_0x2f8980['current']?.['prompt'](!![]);}),_0x53ea6a(_0x59d40f,_0xb382b4);const _0x4a3976=_0x5a1678[_0x457fd0(0x458)]({'input':process[_0x457fd0(0x321)],'output':process['stdout'],'terminal':!![],'completer':_0x52f835,'prompt':_0x28a399(_0x395371),'historySize':_0x45c909});try{const _0x58779d=_0x28716f[_0x457fd0(0x2ce)](_0x177f81,_0x457fd0(0x3ea))[_0x457fd0(0x36d)]('\x0a')[_0x457fd0(0x2f9)](Boolean);_0x4a3976[_0x457fd0(0x268)]=_0x58779d[_0x457fd0(0x37d)]()[_0x457fd0(0x48e)](0x0,_0x45c909);}catch{}return _0x2f8980[_0x457fd0(0x25e)]=_0x4a3976,_0x4a3976['on']('line',async _0x164745=>{const _0x15e9b2=_0x457fd0;_0x4a3976[_0x15e9b2(0x1e2)]();try{await _0x4649f4(_0x164745,_0x59d40f,_0xb382b4,_0x1c8c32,_0x395371,_0x4a3976);}catch(_0xeb5edc){console['error'](_0x21c1a7(_0x286ea4['red'],_0x15e9b2(0x2f0)+_0xeb5edc[_0x15e9b2(0x345)]));}finally{_0x4a3976['resume'](),_0x4a3976[_0x15e9b2(0x1ec)]();}}),_0x4a3976['on'](_0x457fd0(0x324),()=>{const _0x441e14=_0x457fd0;try{const _0x4b6f1d=[..._0x4a3976[_0x441e14(0x268)]][_0x441e14(0x37d)]()[_0x441e14(0x2f9)](Boolean)['slice'](0x0,_0x45c909);_0x28716f[_0x441e14(0x3a1)](_0x177f81,_0x4b6f1d[_0x441e14(0x3e1)]('\x0a')+'\x0a');}catch{}_0x1260ee(_0x59d40f,0x0);}),process['on'](_0x457fd0(0x270),()=>{const _0x37767b=_0x457fd0;if(_0x4a3976['line']==='')_0x1260ee(_0x59d40f,0x0);else process[_0x37767b(0x322)][_0x37767b(0x334)]('\x0a'),_0x4a3976[_0x37767b(0x46b)](0x0),_0x4a3976[_0x37767b(0x1ec)]();}),process['on']('SIGTERM',()=>_0x1260ee(_0x59d40f,0x0)),_0x4a3976[_0x457fd0(0x1ec)](),_0x4a3976;}return okdbShell={'start':_0x4cdbf7,'colorLog':_0x1c354e,'lenientParse':_0x447fc2,'_splitLine':_0x3f2a57,'_formatRouteHelpLines':_0x50f02b,'_routeSummary':_0x1c0435,'_routeTags':_0x3932e3},okdbShell;}var hasRequiredOkdb;function requireOkdb(){const _0x396e5=_0xddaf03;if(hasRequiredOkdb)return okdb$1;hasRequiredOkdb=0x1;try{process[_0x396e5(0x3aa)]();}catch{}const _0x37c1e7=require$$1$1,_0x2753d1=require$$1;function _0x38668f(_0x23808d){const _0x3c6a47=_0x396e5,_0xf3ecc9=_0x23808d[_0x3c6a47(0x48e)](0x2),_0x56a70c={};let _0x25d049=0x0;while(_0x25d049<_0xf3ecc9[_0x3c6a47(0x21f)]){const _0x107248=_0xf3ecc9[_0x25d049];if(_0x107248==='--port'||_0x107248==='-p')_0x56a70c[_0x3c6a47(0x2bf)]=Number(_0xf3ecc9[++_0x25d049]);else{if(_0x107248==='--path'||_0x107248==='-d')_0x56a70c['path']=_0xf3ecc9[++_0x25d049];else{if(_0x107248===_0x3c6a47(0x3c5)||_0x107248==='-k')_0x56a70c[_0x3c6a47(0x2f3)]=_0xf3ecc9[++_0x25d049];else{if(_0x107248==='--config'||_0x107248==='-c')_0x56a70c[_0x3c6a47(0x312)]=_0xf3ecc9[++_0x25d049];else{if(_0x107248==='--log-level')_0x56a70c['logLevel']=_0xf3ecc9[++_0x25d049];else{if(_0x107248===_0x3c6a47(0x259))_0x56a70c[_0x3c6a47(0x3f7)]=!![];else{if(_0x107248===_0x3c6a47(0x272))_0x56a70c[_0x3c6a47(0x27e)]=!![];else{if(_0x107248===_0x3c6a47(0x414)||_0x107248==='-e')_0x56a70c[_0x3c6a47(0x2da)]=_0xf3ecc9[++_0x25d049];else{if(_0x107248===_0x3c6a47(0x217))_0x56a70c[_0x3c6a47(0x41f)]=_0xf3ecc9[++_0x25d049];else{if(_0x107248===_0x3c6a47(0x2a9))_0x56a70c[_0x3c6a47(0x4cb)]=!![];else{if(_0x107248===_0x3c6a47(0x2ef))_0x56a70c[_0x3c6a47(0x422)]=!![];else{if(_0x107248==='--drop')_0x56a70c[_0x3c6a47(0x4a0)]=!![];else{if(_0x107248===_0x3c6a47(0x23d)){const _0x505af7=[];while(_0x25d049+0x1<_0xf3ecc9['length']&&!_0xf3ecc9[_0x25d049+0x1][_0x3c6a47(0x22f)]('--')){_0x505af7[_0x3c6a47(0x29f)](_0xf3ecc9[++_0x25d049]);}_0x56a70c[_0x3c6a47(0x397)]=_0x505af7[_0x3c6a47(0x21f)]>0x0?_0x505af7:!![];}else{if(_0x107248===_0x3c6a47(0x433))_0x56a70c[_0x3c6a47(0x1f2)]=!![];else{if(_0x107248===_0x3c6a47(0x3e4))_0x56a70c[_0x3c6a47(0x49e)]=_0xf3ecc9[++_0x25d049];else{if(_0x107248===_0x3c6a47(0x285))_0x56a70c[_0x3c6a47(0x4bb)]=_0xf3ecc9[++_0x25d049];else{if(_0x107248===_0x3c6a47(0x454))_0x56a70c[_0x3c6a47(0x430)]=_0xf3ecc9[++_0x25d049];else{if(_0x107248===_0x3c6a47(0x25a))_0x56a70c[_0x3c6a47(0x3ab)]=_0xf3ecc9[++_0x25d049];else{if(_0x107248==='--grants')_0x56a70c[_0x3c6a47(0x309)]=_0xf3ecc9[++_0x25d049];else{if(_0x107248===_0x3c6a47(0x34e))_0x56a70c[_0x3c6a47(0x289)]=_0xf3ecc9[++_0x25d049];else{if(_0x107248==='--token')_0x56a70c[_0x3c6a47(0x496)]=_0xf3ecc9[++_0x25d049];else{if(_0x107248===_0x3c6a47(0x41b)||_0x107248==='-u')_0x56a70c['username']=_0xf3ecc9[++_0x25d049];else{if(_0x107248===_0x3c6a47(0x4c5))_0x56a70c['selfAddress']=_0xf3ecc9[++_0x25d049];else{if(_0x107248===_0x3c6a47(0x3a7)||_0x107248==='-v'){const _0x804072=require$$2;console[_0x3c6a47(0x26a)](_0x804072[_0x3c6a47(0x2e2)]),process[_0x3c6a47(0x31c)](0x0);}else(_0x107248===_0x3c6a47(0x4e8)||_0x107248==='-h')&&(_0x1dbc0d(),process[_0x3c6a47(0x31c)](0x0));}}}}}}}}}}}}}}}}}}}}}}}_0x25d049++;}return _0x56a70c;}function _0x1dbc0d(){const _0x32db68=_0x396e5;console[_0x32db68(0x26a)](_0x32db68(0x436));}const _0x392f35=new Set([_0x396e5(0x291),'info',_0x396e5(0x2ee),_0x396e5(0x1f3)]);function _0x2d4682(_0x55156c){const _0x17a5e1=_0x396e5,_0x40573d=_0x55156c['config']?_0x37c1e7[_0x17a5e1(0x4b3)](_0x55156c[_0x17a5e1(0x312)]):_0x37c1e7[_0x17a5e1(0x4b3)](_0x17a5e1(0x3cb));let _0xe10302={};if(_0x2753d1['existsSync'](_0x40573d))try{const _0x57cbdd=_0x2753d1[_0x17a5e1(0x2ce)](_0x40573d,_0x17a5e1(0x3ea))['replace'](/^\uFEFF/,'');_0xe10302=JSON[_0x17a5e1(0x279)](_0x57cbdd),console[_0x17a5e1(0x26a)]('[okdb]\x20loaded\x20config:\x20'+_0x40573d);}catch(_0x3c5fd0){console['error'](_0x17a5e1(0x4b8)+_0x40573d+':\x20'+_0x3c5fd0[_0x17a5e1(0x345)]),process[_0x17a5e1(0x31c)](0x1);}const _0x317b84={'port':process.env.OKDB_PORT?Number(process.env.OKDB_PORT):undefined,'path':process.env.OKDB_PATH??undefined,'key':process.env.OKDB_KEY??undefined,'logLevel':process.env.OKDB_LOG_LEVEL??undefined,'noRepl':process.env.OKDB_NO_REPL==='1'?!![]:undefined,'noAdmin':process.env.OKDB_NO_ADMIN==='1'?!![]:undefined},_0x4a9a17={'port':_0x55156c['port']??_0xe10302[_0x17a5e1(0x2bf)]??_0x317b84[_0x17a5e1(0x2bf)]??0x2124,'dbPath':_0x55156c[_0x17a5e1(0x37c)]??_0xe10302[_0x17a5e1(0x37c)]??_0x317b84[_0x17a5e1(0x37c)]??_0x17a5e1(0x3af),'key':_0x55156c['key']??_0xe10302['key']??_0x317b84[_0x17a5e1(0x2f3)]??undefined,'logLevel':_0x55156c[_0x17a5e1(0x413)]??_0xe10302['logLevel']??_0x317b84[_0x17a5e1(0x413)]??_0x17a5e1(0x28d),'noRepl':_0x55156c[_0x17a5e1(0x3f7)]??_0xe10302[_0x17a5e1(0x3f7)]??_0x317b84[_0x17a5e1(0x3f7)]??![],'noAdmin':_0x55156c['noAdmin']??_0xe10302[_0x17a5e1(0x27e)]??_0x317b84[_0x17a5e1(0x27e)]??![],'admin':_0xe10302[_0x17a5e1(0x304)]??{},'api':_0xe10302[_0x17a5e1(0x43a)]??undefined,'auth':_0xe10302[_0x17a5e1(0x298)]??undefined,'mcp':_0xe10302['mcp']??undefined,'timeMachine':_0xe10302['timeMachine']!==![]?_0xe10302[_0x17a5e1(0x2af)]??{}:![]};return _0x55156c[_0x17a5e1(0x397)]!==undefined&&(_0x4a9a17[_0x17a5e1(0x298)]=_0x4a9a17[_0x17a5e1(0x298)]||{},_0x4a9a17['auth'][_0x17a5e1(0x397)]=_0x55156c[_0x17a5e1(0x397)]),_0x55156c['logRequests']&&(_0x4a9a17[_0x17a5e1(0x291)]=_0x4a9a17['debug']||{},_0x4a9a17['debug'][_0x17a5e1(0x1f2)]=!![]),(!Number[_0x17a5e1(0x393)](_0x4a9a17[_0x17a5e1(0x2bf)])||_0x4a9a17['port']<0x1||_0x4a9a17[_0x17a5e1(0x2bf)]>0xffff)&&(console[_0x17a5e1(0x1f3)](_0x17a5e1(0x411)+_0x4a9a17[_0x17a5e1(0x2bf)]+_0x17a5e1(0x41e)),process[_0x17a5e1(0x31c)](0x1)),!_0x392f35[_0x17a5e1(0x3e5)](_0x4a9a17[_0x17a5e1(0x413)])&&(console[_0x17a5e1(0x1f3)](_0x17a5e1(0x348)+_0x4a9a17[_0x17a5e1(0x413)]+_0x17a5e1(0x390)),process[_0x17a5e1(0x31c)](0x1)),_0x4a9a17;}function _0x269c11(_0x2ae1a7){const _0x30e192=_0x396e5;return!!(_0x2ae1a7&&typeof _0x2ae1a7==='object'&&!Array[_0x30e192(0x261)](_0x2ae1a7)&&Object[_0x30e192(0x4dc)](_0x2ae1a7)[_0x30e192(0x21f)]>0x0);}const _0x38c37d=!process[_0x396e5(0x322)][_0x396e5(0x200)]||!!process.env.NO_COLOR;function _0xd50dd7(_0x7f0329,_0x7cb767){const _0xa6b56=_0x396e5;return _0x38c37d?_0x7cb767:'\x1b['+_0x7f0329+'m'+_0x7cb767+_0xa6b56(0x464);}function _0x230027(_0x4d4a1b){const _0x453ce1=_0x396e5;if(!_0x4d4a1b||_0x4d4a1b[_0x453ce1(0x21f)]===0x0)return;const _0x18f5d3='─'[_0x453ce1(0x3f6)](0x38);process[_0x453ce1(0x30a)]['write']('\x0a'),process[_0x453ce1(0x30a)]['write'](_0xd50dd7('33',_0x453ce1(0x301)+_0x4d4a1b[_0x453ce1(0x21f)]+_0x453ce1(0x4d6)+(_0x4d4a1b[_0x453ce1(0x21f)]>0x1?'S':'')+'\x0a')),process[_0x453ce1(0x30a)][_0x453ce1(0x334)]('\x20\x20'+_0x18f5d3+'\x0a');for(const _0x19b0c8 of _0x4d4a1b){const _0x310b24=_0x19b0c8[_0x453ce1(0x485)]===_0x453ce1(0x1f3)?_0xd50dd7('31',_0x453ce1(0x3e8)):_0xd50dd7('33',_0x453ce1(0x3c1));process[_0x453ce1(0x30a)][_0x453ce1(0x334)](_0x310b24+'\x20\x20'+_0xd50dd7('1',_0x19b0c8[_0x453ce1(0x28c)])+'\x0a'),process['stderr'][_0x453ce1(0x334)](_0x453ce1(0x22a)+_0x19b0c8[_0x453ce1(0x345)]+'\x0a');if(_0x19b0c8[_0x453ce1(0x4e5)])process[_0x453ce1(0x30a)]['write'](_0x453ce1(0x22a)+_0xd50dd7('2',_0x453ce1(0x47b)+_0x19b0c8['hint'])+'\x0a');process[_0x453ce1(0x30a)][_0x453ce1(0x334)]('\x0a');}process[_0x453ce1(0x30a)]['write']('\x20\x20'+_0x18f5d3+'\x0a\x0a');}function _0x4bce81(_0x33ce40,_0x38ee02){const _0x5394a8=_0x396e5,_0x5b9b45=_0x33ce40[_0x5394a8(0x2ea)][_0x5394a8(0x1f0)](_0x38ee02);return new Promise((_0x238d1c,_0x4bb1be)=>{const _0x3b6aa7=_0x5394a8;_0x5b9b45['once'](_0x3b6aa7(0x47a),_0x238d1c),_0x5b9b45[_0x3b6aa7(0x388)](_0x3b6aa7(0x1f3),_0x4bb1be);});}async function _0x131a1a(_0x8bc033){const _0x492a17=_0x396e5,_0x5a0597=require$$3;console[_0x492a17(0x26a)](_0x492a17(0x3d8));let _0x4ef0e9=!![];const _0x131227=(_0x36db01,_0x50b923)=>{const _0x52f7d9=_0x492a17;console[_0x52f7d9(0x26a)]('\x20\x20'+(_0x36db01?'✓':'✗')+'\x20'+_0x50b923);if(!_0x36db01)_0x4ef0e9=![];},_0x3460d0=Number(process['version'][_0x492a17(0x46c)]('v','')['split']('.')[0x0]);_0x131227(_0x3460d0>=0x12,_0x492a17(0x1fd)+process[_0x492a17(0x2e2)]+(_0x3460d0<0x12?_0x492a17(0x38e):''));const _0x584a3a=_0x37c1e7['resolve'](_0x8bc033[_0x492a17(0x377)]);try{_0x2753d1[_0x492a17(0x34b)](_0x584a3a,{'recursive':!![]});const _0x10f58c=_0x37c1e7[_0x492a17(0x3e1)](_0x584a3a,_0x492a17(0x302));_0x2753d1[_0x492a17(0x3a1)](_0x10f58c,''),_0x2753d1[_0x492a17(0x25f)](_0x10f58c),_0x131227(!![],_0x492a17(0x469)+_0x584a3a);}catch(_0x5a5c8b){_0x131227(![],'database\x20path\x20not\x20writable:\x20'+_0x584a3a+'\x20\x20('+_0x5a5c8b[_0x492a17(0x345)]+')');}const _0x3665b8=await new Promise(_0xba1142=>{const _0x197d97=_0x492a17,_0x4ed119=_0x5a0597[_0x197d97(0x4e6)]();_0x4ed119[_0x197d97(0x388)](_0x197d97(0x1f3),()=>_0xba1142(![])),_0x4ed119['once'](_0x197d97(0x47a),()=>{_0x4ed119['close'](),_0xba1142(!![]);}),_0x4ed119[_0x197d97(0x1f0)](_0x8bc033[_0x197d97(0x2bf)],_0x197d97(0x275));});_0x131227(_0x3665b8,_0x492a17(0x417)+_0x8bc033['port']+'\x20'+(_0x3665b8?'available':'already\x20in\x20use'));const _0x4e526c=_0x37c1e7[_0x492a17(0x4b3)](_0x492a17(0x3cb));if(_0x2753d1[_0x492a17(0x40b)](_0x4e526c))try{JSON[_0x492a17(0x279)](_0x2753d1[_0x492a17(0x2ce)](_0x4e526c,_0x492a17(0x3ea))[_0x492a17(0x46c)](/^\uFEFF/,'')),_0x131227(!![],_0x492a17(0x209)+_0x4e526c);}catch(_0x23d2e6){_0x131227(![],_0x492a17(0x45a)+_0x23d2e6[_0x492a17(0x345)]);}else _0x131227(!![],_0x492a17(0x497));console['log'](''),_0x4ef0e9?console['log'](_0x492a17(0x361)):(console[_0x492a17(0x26a)](_0x492a17(0x4a2)),process[_0x492a17(0x31c)](0x1));}async function _0x452520(){const _0x1641fb=_0x396e5,_0x17ec30=_0x37c1e7[_0x1641fb(0x4b3)](_0x1641fb(0x3cb));!_0x2753d1[_0x1641fb(0x40b)](_0x17ec30)?(_0x2753d1[_0x1641fb(0x3a1)](_0x17ec30,JSON[_0x1641fb(0x3f2)]({'port':0x2124,'path':_0x1641fb(0x3af),'logLevel':_0x1641fb(0x28d),'noRepl':![],'noAdmin':![]},null,0x2)+'\x0a'),console[_0x1641fb(0x26a)](_0x1641fb(0x444))):console['log'](_0x1641fb(0x3bf));const _0x348504=_0x37c1e7[_0x1641fb(0x4b3)](_0x1641fb(0x3af));!_0x2753d1[_0x1641fb(0x40b)](_0x348504)?(_0x2753d1[_0x1641fb(0x34b)](_0x348504,{'recursive':!![]}),console['log']('[okdb]\x20created\x20./okdb-data')):console[_0x1641fb(0x26a)](_0x1641fb(0x2ca)),console['log']('\x0a\x20\x20Run\x20okdb\x20to\x20start\x20the\x20server.\x0a');}async function _0x248c09(_0x3c5d81){const _0x56adc7=_0x396e5,_0x3f8792=_0x37c1e7['resolve'](_0x3c5d81['dbPath']);if(!_0x2753d1['existsSync'](_0x3f8792)){console[_0x56adc7(0x26a)](_0x56adc7(0x363)+_0x3f8792+_0x56adc7(0x2fc));return;}const _0x38eb2c=require$$0$2,_0x51e8eb=_0x38eb2c[_0x56adc7(0x458)]({'input':process[_0x56adc7(0x321)],'output':process[_0x56adc7(0x322)]}),_0x549c55=await new Promise(_0x412f8c=>_0x51e8eb[_0x56adc7(0x2a8)](_0x56adc7(0x2b9)+_0x3f8792+'?\x0a\x20\x20Type\x20\x22yes\x22\x20to\x20confirm:\x20',_0x412f8c));_0x51e8eb[_0x56adc7(0x324)](),console[_0x56adc7(0x26a)]('');if(_0x549c55['trim']()['toLowerCase']()!==_0x56adc7(0x2a7)){console[_0x56adc7(0x26a)](_0x56adc7(0x218));return;}_0x2753d1[_0x56adc7(0x4cf)](_0x3f8792,{'recursive':!![],'force':!![]}),console[_0x56adc7(0x26a)](_0x56adc7(0x3c0)+_0x3f8792+_0x56adc7(0x364));}async function _0x4cbc5a(_0x15d06e,_0x3bf361){const _0x4131a4=_0x396e5,_0xbce268=require$$5,_0x44f8f5=_0x37c1e7[_0x4131a4(0x4b3)](_0x3bf361[_0x4131a4(0x377)]);console[_0x4131a4(0x26a)](_0x4131a4(0x235)+_0x44f8f5+'…');const _0x359592=new _0xbce268(_0x44f8f5,_0x3bf361[_0x4131a4(0x2f3)]?{'encryptionKey':_0x3bf361[_0x4131a4(0x2f3)]}:{});await _0x359592[_0x4131a4(0x397)](),console[_0x4131a4(0x26a)](_0x4131a4(0x246)+_0x15d06e+'…');const {envs:_0x1e6d18}=await _0x359592['migrate'][_0x4131a4(0x283)](_0x15d06e);for(const _0x2adf72 of _0x1e6d18){const _0x24a2d4=_0x2adf72[_0x4131a4(0x482)]>0x0?_0x4131a4(0x297)+(_0x2adf72[_0x4131a4(0x482)]/0x400/0x400)[_0x4131a4(0x4d5)](0x2)+_0x4131a4(0x2e5)+(_0x2adf72[_0x4131a4(0x39b)]/0x400/0x400)[_0x4131a4(0x4d5)](0x2)+_0x4131a4(0x498):'';console['log']('\x20\x20✓\x20'+_0x2adf72['name']+_0x4131a4(0x492)+_0x2adf72[_0x4131a4(0x2be)]+_0x24a2d4);}await _0x359592[_0x4131a4(0x324)](),console[_0x4131a4(0x26a)](_0x4131a4(0x333));}async function _0x534d67(_0x1421c2,_0x1796bc,_0x17455a){const _0x110007=_0x396e5,_0x3f5cd7=require$$5,_0xbe34de=_0x37c1e7[_0x110007(0x4b3)](_0x1796bc[_0x110007(0x377)]),_0x224540=_0x17455a['env']??_0x110007(0x42d),_0x349ea8=_0x17455a[_0x110007(0x41f)]?_0x17455a[_0x110007(0x41f)][_0x110007(0x36d)](',')[_0x110007(0x404)](_0x1776ff=>_0x1776ff['trim']()):null;console['log']('[okdb]\x20opening\x20'+_0xbe34de+'…');const _0x4bd0dc=new _0x3f5cd7(_0xbe34de,_0x1796bc[_0x110007(0x2f3)]?{'encryptionKey':_0x1796bc['key']}:{});await _0x4bd0dc[_0x110007(0x397)](),console[_0x110007(0x26a)]('[okdb]\x20exporting\x20env\x20\x22'+_0x224540+_0x110007(0x499)+_0x1421c2+'…');const _0x341922=await _0x4bd0dc[_0x110007(0x45b)][_0x110007(0x446)](_0x1421c2,{'envName':_0x224540,'types':_0x349ea8,'includeChanges':!!_0x17455a['changes']});console['log'](_0x110007(0x27d)+_0x341922['types']+_0x110007(0x4c2)+_0x341922['records']+_0x110007(0x40a)+_0x341922[_0x110007(0x4cb)]);if(_0x17455a[_0x110007(0x422)]){const _0x16759d=_0x37c1e7[_0x110007(0x3e1)](_0x37c1e7['dirname'](_0x1421c2),_0x110007(0x422));process[_0x110007(0x322)][_0x110007(0x334)](_0x110007(0x3ed));const {count:_0x273c77,bytes:_0x11e75c}=await _0x4bd0dc[_0x110007(0x45b)][_0x110007(0x2e7)](_0x16759d);console['log'](_0x110007(0x47e)+_0x16759d+'\x20\x20('+_0x273c77+'\x20file'+(_0x273c77!==0x1?'s':'')+',\x20'+(_0x11e75c/0x400/0x400)[_0x110007(0x4d5)](0x2)+_0x110007(0x498));}await _0x4bd0dc['close'](),console[_0x110007(0x26a)]('[okdb]\x20export\x20complete');}async function _0x5437a2(_0x325773,_0x1089f8,_0xe7d95){const _0xccffbd=_0x396e5,_0x5e38cb=require$$5,_0x509363=_0x37c1e7[_0xccffbd(0x4b3)](_0x1089f8[_0xccffbd(0x377)]),_0x455eb2=_0xe7d95['env']??null,_0x5bc956=_0xe7d95[_0xccffbd(0x41f)]?_0xe7d95['types']['split'](',')[_0xccffbd(0x404)](_0x5eb23b=>_0x5eb23b[_0xccffbd(0x2b2)]()):null,_0x12c80d=!!_0xe7d95[_0xccffbd(0x4a0)];console[_0xccffbd(0x26a)](_0xccffbd(0x235)+_0x509363+'…');const _0x8c66bb=new _0x5e38cb(_0x509363,_0x1089f8[_0xccffbd(0x2f3)]?{'encryptionKey':_0x1089f8['key']}:{});await _0x8c66bb[_0xccffbd(0x397)](),console[_0xccffbd(0x26a)](_0xccffbd(0x368)+_0x325773+'…');const _0x5c30ab=await _0x8c66bb['migrate']['importFromFile'](_0x325773,{'envName':_0x455eb2,'types':_0x5bc956,'dropExisting':_0x12c80d,'includeChanges':!!_0xe7d95[_0xccffbd(0x4cb)],'onProgress':({type:_0x27299f,count:_0x523e8a})=>{const _0x10fd95=_0xccffbd;process['stdout']['write'](_0x10fd95(0x3fc)+_0x27299f+':\x20'+_0x523e8a+'\x20records…');}});process[_0xccffbd(0x322)][_0xccffbd(0x334)]('\x0a'),console['log'](_0xccffbd(0x460)+_0x5c30ab[_0xccffbd(0x41f)]+_0xccffbd(0x4c2)+_0x5c30ab['records']+'\x20\x20changes='+_0x5c30ab[_0xccffbd(0x4cb)]);if(_0xe7d95[_0xccffbd(0x422)]){const _0x12c1cc=_0x37c1e7[_0xccffbd(0x3e1)](_0x37c1e7[_0xccffbd(0x206)](_0x325773),_0xccffbd(0x422));if(_0x2753d1[_0xccffbd(0x40b)](_0x12c1cc)){const {imported:_0x13da9a,skipped:_0x10bb52}=await _0x8c66bb[_0xccffbd(0x45b)][_0xccffbd(0x4c1)](_0x12c1cc);console[_0xccffbd(0x26a)](_0xccffbd(0x409)+_0x13da9a+_0xccffbd(0x35c)+_0x10bb52);}}await _0x8c66bb[_0xccffbd(0x324)](),console['log']('[okdb]\x20import\x20complete');}async function _0x8ccbc1(_0x457c4b,_0x158e8d){const _0x4067b1=_0x396e5;_0x158e8d[_0x4067b1(0x4bb)]&&!_0x158e8d[_0x4067b1(0x49e)]&&(console['error'](_0x4067b1(0x494)),process[_0x4067b1(0x31c)](0x1));const _0x59268b=_0x158e8d[_0x4067b1(0x3ab)]?_0x158e8d[_0x4067b1(0x3ab)][_0x4067b1(0x36d)](',')[_0x4067b1(0x404)](_0x20d450=>_0x20d450[_0x4067b1(0x2b2)]())[_0x4067b1(0x2f9)](Boolean):[];let _0x15161={};if(_0x158e8d[_0x4067b1(0x309)])try{_0x15161=JSON[_0x4067b1(0x279)](_0x158e8d[_0x4067b1(0x309)]);if(typeof _0x15161!==_0x4067b1(0x231)||Array[_0x4067b1(0x261)](_0x15161)||_0x15161===null)throw new Error();}catch{console['error']('[okdb]\x20error:\x20--grants\x20must\x20be\x20valid\x20JSON\x20object'),process[_0x4067b1(0x31c)](0x1);}const _0x311f67=require$$5,{randomToken:_0x2c7144,hashToken:_0x27636c,hashPassword:_0x26ff7b}=requireOkdbAuthTokens(),_0x56d13c=require$$0,_0x937296=_0x37c1e7[_0x4067b1(0x4b3)](_0x457c4b['dbPath']),_0x598495=new _0x311f67(_0x937296,_0x457c4b[_0x4067b1(0x2f3)]?{'encryptionKey':_0x457c4b['key']}:{});await _0x598495[_0x4067b1(0x397)]();try{await _0x598495['auth']['_ensureTokensType']();if(_0x158e8d[_0x4067b1(0x49e)]){const _0x21782d=await _0x598495[_0x4067b1(0x298)]['_lookupByName'](_0x158e8d[_0x4067b1(0x49e)]);_0x21782d&&(console[_0x4067b1(0x1f3)](_0x4067b1(0x382)+_0x158e8d[_0x4067b1(0x49e)]+_0x4067b1(0x47c)),process[_0x4067b1(0x31c)](0x1));}const _0x5a5a3f=_0x2c7144(0x20),_0x200f52=_0x27636c(_0x5a5a3f),_0x27c07e=_0x158e8d[_0x4067b1(0x4bb)]?await _0x26ff7b(_0x158e8d['password']):null,_0x280fb8=_0x56d13c[_0x4067b1(0x39e)](),_0x1798b4={'tokenHash':_0x200f52,'name':_0x158e8d['name']||null,'passwordHash':_0x27c07e,'label':_0x158e8d[_0x4067b1(0x430)]||null,'permissions':_0x59268b,'grants':_0x15161,'createdAt':Date[_0x4067b1(0x416)](),'lastUsedAt':null},_0x3d1af2=_0x158e8d[_0x4067b1(0x289)]?{'ttl':Number(_0x158e8d['ttl'])}:undefined;await _0x598495[_0x4067b1(0x487)][_0x4067b1(0x3fa)](_0x4067b1(0x2aa),_0x280fb8,_0x1798b4,_0x3d1af2),console['log'](_0x4067b1(0x1f6)),console[_0x4067b1(0x26a)](_0x4067b1(0x3df)+_0x280fb8),console['log'](_0x4067b1(0x443)+(_0x158e8d[_0x4067b1(0x49e)]||_0x4067b1(0x32e))),console[_0x4067b1(0x26a)](_0x4067b1(0x43f)+(_0x158e8d[_0x4067b1(0x430)]||'(unset)')),console[_0x4067b1(0x26a)](_0x4067b1(0x3bd)+(_0x59268b[_0x4067b1(0x3e1)](',\x20')||_0x4067b1(0x40d))),console['log'](_0x4067b1(0x329)),console[_0x4067b1(0x26a)]('\x20\x20\x20\x20'+_0x5a5a3f+'\x0a');}finally{await _0x598495[_0x4067b1(0x324)]();}}async function _0x315e6b(_0x1da4f2){const _0x34e577=_0x396e5,_0x52c0a9=require$$5,_0x53543d=_0x37c1e7[_0x34e577(0x4b3)](_0x1da4f2[_0x34e577(0x377)]),_0x5f3e30=new _0x52c0a9(_0x53543d,_0x1da4f2[_0x34e577(0x2f3)]?{'encryptionKey':_0x1da4f2[_0x34e577(0x2f3)]}:{});await _0x5f3e30[_0x34e577(0x397)]();try{const _0x5e8c12=_0x5f3e30[_0x34e577(0x487)];if(!_0x5e8c12||!_0x5e8c12[_0x34e577(0x349)]('~tokens')){console[_0x34e577(0x26a)](_0x34e577(0x3c8));return;}const _0x39bf0b=[];for(const {key:_0x3fa2f4,value:_0xf1e80f}of _0x5e8c12[_0x34e577(0x3b8)](_0x34e577(0x2aa))){_0x39bf0b[_0x34e577(0x29f)]({'id':_0x3fa2f4,'name':_0xf1e80f[_0x34e577(0x49e)]||_0x34e577(0x32e),'label':_0xf1e80f[_0x34e577(0x430)]||_0x34e577(0x32e),'permissions':Array[_0x34e577(0x261)](_0xf1e80f[_0x34e577(0x3ab)])?_0xf1e80f[_0x34e577(0x3ab)][_0x34e577(0x3e1)](','):'','created':_0xf1e80f['createdAt']?new Date(_0xf1e80f['createdAt'])[_0x34e577(0x3fb)]()[_0x34e577(0x48e)](0x0,0xa):''});}if(_0x39bf0b['length']===0x0){console[_0x34e577(0x26a)]('No\x20tokens.');return;}const _0x5c725a=!process[_0x34e577(0x322)][_0x34e577(0x2c7)]||process[_0x34e577(0x322)][_0x34e577(0x2c7)]>=0x64,_0x2eba4d=_0x5c725a?0x24:0xa,_0x33d926=['ID'[_0x34e577(0x2c9)](_0x2eba4d),_0x34e577(0x4b1)[_0x34e577(0x2c9)](0x10),_0x34e577(0x355)[_0x34e577(0x2c9)](0x14),_0x34e577(0x31d)['padEnd'](0x14),_0x34e577(0x28a)]['join']('\x20\x20');console[_0x34e577(0x26a)]('\x0a'+_0x33d926),console['log']('-'[_0x34e577(0x3f6)](_0x33d926['length']));for(const _0x3459ba of _0x39bf0b){const _0x1dd847=_0x5c725a?_0x3459ba['id']:_0x3459ba['id'][_0x34e577(0x48e)](0x0,0x8)+'…';console['log']([_0x1dd847['padEnd'](_0x2eba4d),_0x3459ba['name'][_0x34e577(0x48e)](0x0,0x10)[_0x34e577(0x2c9)](0x10),_0x3459ba[_0x34e577(0x430)][_0x34e577(0x48e)](0x0,0x14)[_0x34e577(0x2c9)](0x14),_0x3459ba['permissions'][_0x34e577(0x48e)](0x0,0x14)[_0x34e577(0x2c9)](0x14),_0x3459ba[_0x34e577(0x4d3)]][_0x34e577(0x3e1)]('\x20\x20'));}console['log']('');}finally{await _0x5f3e30[_0x34e577(0x324)]();}}async function _0x1c61bc(_0x506b66,_0x307aa2){const _0x466083=_0x396e5;!_0x506b66&&(console[_0x466083(0x1f3)]('[okdb]\x20error:\x20revoke\x20requires\x20an\x20id\x20argument'),process[_0x466083(0x31c)](0x1));const _0x35644d=require$$5,_0xfcd079=_0x37c1e7[_0x466083(0x4b3)](_0x307aa2[_0x466083(0x377)]),_0x249906=new _0x35644d(_0xfcd079,_0x307aa2[_0x466083(0x2f3)]?{'encryptionKey':_0x307aa2['key']}:{});await _0x249906[_0x466083(0x397)]();try{const _0x2d3aea=_0x249906[_0x466083(0x487)];(!_0x2d3aea||!_0x2d3aea[_0x466083(0x349)](_0x466083(0x2aa)))&&(console[_0x466083(0x1f3)](_0x466083(0x451)+_0x506b66+'\x22'),process[_0x466083(0x31c)](0x1));let _0x35cb97=null,_0xda3e51=null;const _0x5ed653=_0x2d3aea['get']('~tokens',_0x506b66);if(_0x5ed653)_0x35cb97=_0x506b66,_0xda3e51=_0x5ed653;else{const _0x2be13c=[];for(const {key:_0x18e82b,value:_0x2cbf98}of _0x2d3aea[_0x466083(0x3b8)](_0x466083(0x2aa))){if(_0x18e82b[_0x466083(0x22f)](_0x506b66))_0x2be13c[_0x466083(0x29f)]({'key':_0x18e82b,'value':_0x2cbf98});}_0x2be13c[_0x466083(0x21f)]===0x0&&(console['error'](_0x466083(0x451)+_0x506b66+'\x22'),process[_0x466083(0x31c)](0x1));if(_0x2be13c[_0x466083(0x21f)]>0x1){console[_0x466083(0x1f3)](_0x466083(0x241)+_0x506b66+_0x466083(0x28b)+_0x2be13c['length']+_0x466083(0x392));for(const _0x185d92 of _0x2be13c){console['error']('\x20\x20'+_0x185d92[_0x466083(0x2f3)]+_0x466083(0x2de)+(_0x185d92[_0x466083(0x37a)][_0x466083(0x49e)]||'(unset)')+')');}process[_0x466083(0x31c)](0x1);}_0x35cb97=_0x2be13c[0x0][_0x466083(0x2f3)],_0xda3e51=_0x2be13c[0x0][_0x466083(0x37a)];}await _0x2d3aea[_0x466083(0x4d7)](_0x466083(0x2aa),_0x35cb97),console[_0x466083(0x26a)]('\x20\x20✓\x20Revoked\x20token\x20'+_0x35cb97+_0x466083(0x2de)+(_0xda3e51[_0x466083(0x49e)]||'(unset)')+_0x466083(0x476)+(_0xda3e51[_0x466083(0x430)]||_0x466083(0x32e))+')');}finally{await _0x249906['close']();}}function _0x120351(_0x16290e,_0x6f8f4f){const _0x38c1af=_0x396e5;if(!_0x16290e[_0x38c1af(0x461)])return _0x38c1af(0x1f5);const _0x4bb303=_0x16290e[_0x38c1af(0x274)];if(!_0x4bb303)return _0x38c1af(0x4ab);if(_0x6f8f4f>_0x4bb303)return'expired';return'active';}function _0x514803(_0x285cfd){const _0x27c1b1=_0x396e5;if(!_0x285cfd||typeof _0x285cfd!==_0x27c1b1(0x231))return'';const _0x38ca07=Object[_0x27c1b1(0x32a)](_0x285cfd)[_0x27c1b1(0x2f9)](([,_0x5e7410])=>_0x5e7410)[_0x27c1b1(0x404)](([_0x2798d5])=>_0x2798d5);if(_0x38ca07[_0x27c1b1(0x21f)]===0x0)return _0x27c1b1(0x40d);if(_0x38ca07['length']<=0x3)return _0x38ca07['join']('\x20');return _0x38ca07[_0x27c1b1(0x48e)](0x0,0x3)[_0x27c1b1(0x3e1)]('\x20')+('\x20+'+(_0x38ca07[_0x27c1b1(0x21f)]-0x3));}async function _0x253713(_0x4bacde){const _0x20be0c=_0x396e5,_0x366ffb=require$$5,_0x1cdc9b=requireOkdbLicenseCodec(),{_C:_0x3baee7}=requireOkdbLicense(),_0x1343d7=_0x37c1e7[_0x20be0c(0x4b3)](_0x4bacde[_0x20be0c(0x377)]),_0x51fa47=new _0x366ffb(_0x1343d7,_0x4bacde[_0x20be0c(0x2f3)]?{'encryptionKey':_0x4bacde[_0x20be0c(0x2f3)]}:{});await _0x51fa47['open']();try{const _0x1d5c41=_0x51fa47['_systemEnv'],_0x48417=_0x1d5c41?.['db']?.[_0x20be0c(0x375)]?.(_0x20be0c(0x431))??0x0,_0x26680b=[..._0x51fa47['_envs'][_0x20be0c(0x4dc)]()][_0x20be0c(0x2f9)](_0x34aa62=>!_0x34aa62[_0x20be0c(0x22f)]('~'))[_0x20be0c(0x21f)],_0x5c396c=_0x51fa47[_0x20be0c(0x4c9)]?.[_0x20be0c(0x376)];if(_0x5c396c){const _0x3742a1=_0x5c396c[_0x20be0c(0x421)]===!![],_0x1e4d75=_0x3742a1?_0x20be0c(0x252):_0x51fa47[_0x20be0c(0x4c9)][_0x20be0c(0x4ab)]?.[_0x20be0c(0x356)]||_0x20be0c(0x483);console[_0x20be0c(0x26a)](''),console[_0x20be0c(0x26a)]('\x20\x20Tier:\x20\x20\x20\x20'+_0x1e4d75);const _0x7f3208=_0x5c396c[_0x20be0c(0x440)]||{};if(_0x7f3208[_0x20be0c(0x24f)]){const _0x369d58=Math[_0x20be0c(0x1f8)](_0x48417/_0x7f3208[_0x20be0c(0x24f)]*0x64);console[_0x20be0c(0x26a)](_0x20be0c(0x33e)+_0x48417[_0x20be0c(0x39a)]()+_0x20be0c(0x3b0)+_0x7f3208[_0x20be0c(0x24f)][_0x20be0c(0x39a)]()+_0x20be0c(0x297)+_0x369d58+'%)');}else console[_0x20be0c(0x26a)](_0x20be0c(0x33e)+_0x48417[_0x20be0c(0x39a)]());_0x7f3208[_0x20be0c(0x21e)]?console[_0x20be0c(0x26a)](_0x20be0c(0x310)+_0x26680b+_0x20be0c(0x3b0)+_0x7f3208[_0x20be0c(0x21e)]):console[_0x20be0c(0x26a)](_0x20be0c(0x310)+_0x26680b),_0x3baee7?.[_0x20be0c(0x2c6)]&&console[_0x20be0c(0x26a)]('\x20\x20Build:\x20\x20\x20key\x20fingerprint\x20'+_0x3baee7[_0x20be0c(0x2c6)]+_0x20be0c(0x4af));}if(!_0x1d5c41||!_0x1d5c41[_0x20be0c(0x349)]('~licenses')){console[_0x20be0c(0x26a)](''),console[_0x20be0c(0x26a)](_0x20be0c(0x303)),console['log']('');return;}const _0x34fda6=[],_0x356b56=Date[_0x20be0c(0x416)](),_0x3cabe0=_0x51fa47['id'],_0x1b1db9=_0x20be0c(0x3fe);for(const {key:_0x368bc4,value:_0x19eb41}of _0x1d5c41['getRange'](_0x20be0c(0x4a9))){const _0x5c52e5=_0x19eb41['_licenseHash']?Buffer[_0x20be0c(0x240)](_0x19eb41[_0x20be0c(0x33f)],'hex'):Buffer['alloc'](0x8);let _0x196f50='';try{_0x196f50=_0x1cdc9b[_0x20be0c(0x389)](_0x3cabe0,_0x5c52e5,_0x1b1db9)[_0x20be0c(0x4d8)];}catch{}_0x34fda6[_0x20be0c(0x29f)]({'id':_0x368bc4,'licensee':_0x19eb41[_0x20be0c(0x356)]||'','expires':_0x19eb41[_0x20be0c(0x274)]?new Date(_0x19eb41[_0x20be0c(0x274)])[_0x20be0c(0x3fb)]()['slice'](0x0,0xa):'','features':_0x514803(_0x19eb41['features']),'pin':_0x196f50,'status':_0x120351(_0x19eb41,_0x356b56)});}if(_0x34fda6[_0x20be0c(0x21f)]===0x0){console[_0x20be0c(0x26a)](''),console[_0x20be0c(0x26a)](_0x20be0c(0x303)),console['log']('');return;}const _0x47cef7=['\x20\x20'+'ID'['padEnd'](0xe),_0x20be0c(0x4e4)[_0x20be0c(0x2c9)](0xe),_0x20be0c(0x233)['padEnd'](0xc),_0x20be0c(0x441)[_0x20be0c(0x2c9)](0x1e),_0x20be0c(0x269)[_0x20be0c(0x2c9)](0xa),_0x20be0c(0x30f)][_0x20be0c(0x3e1)]('\x20');console[_0x20be0c(0x26a)]('\x0a'+_0x47cef7);for(const _0x59c732 of _0x34fda6){const _0x2bf98c=_0x59c732['id'][_0x20be0c(0x48e)](0x0,0x8)+'…';console[_0x20be0c(0x26a)](['\x20\x20'+_0x2bf98c[_0x20be0c(0x2c9)](0xe),_0x59c732[_0x20be0c(0x356)][_0x20be0c(0x48e)](0x0,0xe)[_0x20be0c(0x2c9)](0xe),_0x59c732[_0x20be0c(0x39c)][_0x20be0c(0x2c9)](0xc),_0x59c732[_0x20be0c(0x3ca)][_0x20be0c(0x48e)](0x0,0x1e)[_0x20be0c(0x2c9)](0x1e),_0x59c732['pin'][_0x20be0c(0x2c9)](0xa),_0x59c732[_0x20be0c(0x1ed)]][_0x20be0c(0x3e1)]('\x20'));}console['log']('');}finally{await _0x51fa47[_0x20be0c(0x324)]();}}async function _0x5ecd25(_0x33d63b,_0x69d43c){const _0x44aaad=_0x396e5,_0x21d5e1=require$$5,_0x5daef7=requireOkdbLicenseCodec();let _0x15e3e5=_0x33d63b;(_0x5daef7[_0x44aaad(0x3d9)](_0x33d63b)===_0x44aaad(0x37c)||_0x2753d1['existsSync'](_0x33d63b)&&_0x2753d1[_0x44aaad(0x4ae)](_0x33d63b)['isFile']())&&(_0x15e3e5=_0x2753d1[_0x44aaad(0x2ce)](_0x33d63b,'utf8')[_0x44aaad(0x2b2)]());const _0x328ea6=_0x37c1e7[_0x44aaad(0x4b3)](_0x69d43c['dbPath']),_0x583fa6=new _0x21d5e1(_0x328ea6,_0x69d43c[_0x44aaad(0x2f3)]?{'encryptionKey':_0x69d43c[_0x44aaad(0x2f3)]}:{});await _0x583fa6[_0x44aaad(0x397)]();try{!_0x583fa6['_license']&&(console[_0x44aaad(0x1f3)](_0x44aaad(0x438)),process['exit'](0x1));let _0x2c6e21;try{_0x2c6e21=await _0x583fa6[_0x44aaad(0x4c9)]['addLicense'](_0x15e3e5);}catch(_0x1d7658){console[_0x44aaad(0x1f3)]('[okdb]\x20error:\x20'+_0x1d7658[_0x44aaad(0x345)]),process[_0x44aaad(0x31c)](0x1);}const _0x45c1ff=_0x583fa6[_0x44aaad(0x4c9)]['getPins'](),_0x36bc7c=_0x45c1ff['find'](_0x5bd897=>_0x5bd897['licenseId']===_0x2c6e21['id'])?.[_0x44aaad(0x4d8)]||'',_0x4200d1=Object['entries'](_0x2c6e21['features']||{})[_0x44aaad(0x2f9)](([,_0x39a007])=>_0x39a007)[_0x44aaad(0x404)](([_0x4a0314])=>_0x4a0314),_0x563e4d=_0x2c6e21[_0x44aaad(0x440)]||{},_0xc35581=[_0x563e4d[_0x44aaad(0x21e)]?_0x44aaad(0x263)+_0x563e4d[_0x44aaad(0x21e)]:null,_0x563e4d[_0x44aaad(0x3c4)]?'types/env='+_0x563e4d['typesPerEnv']:null,_0x563e4d[_0x44aaad(0x331)]?_0x44aaad(0x412)+_0x563e4d[_0x44aaad(0x331)]:null,_0x563e4d[_0x44aaad(0x24f)]?_0x44aaad(0x341)+_0x563e4d[_0x44aaad(0x24f)][_0x44aaad(0x39a)]():null]['filter'](Boolean)[_0x44aaad(0x3e1)]('\x20\x20'),_0x364b6=_0x2c6e21['licenseType']===_0x5daef7[_0x44aaad(0x3a2)];console[_0x44aaad(0x26a)](_0x44aaad(0x251)),console[_0x44aaad(0x26a)](_0x44aaad(0x3cc)+_0x2c6e21['id']),console[_0x44aaad(0x26a)](_0x44aaad(0x457)+_0x2c6e21[_0x44aaad(0x356)]),console[_0x44aaad(0x26a)](_0x44aaad(0x4c4)+new Date(_0x2c6e21[_0x44aaad(0x274)])[_0x44aaad(0x3fb)]()['slice'](0x0,0xa)),console[_0x44aaad(0x26a)](_0x44aaad(0x1fc)+(_0x4200d1[_0x44aaad(0x3e1)](',\x20')||_0x44aaad(0x40d)));if(_0xc35581)console[_0x44aaad(0x26a)](_0x44aaad(0x2b3)+_0xc35581);_0x364b6?(console[_0x44aaad(0x26a)](_0x44aaad(0x31a)),console['log']('')):(console[_0x44aaad(0x26a)](_0x44aaad(0x2cf)+_0x36bc7c),console[_0x44aaad(0x26a)]('\x20\x20\x20\x20status:\x20\x20\x20\x20pending\x20activation'),console[_0x44aaad(0x26a)](''),console[_0x44aaad(0x26a)](_0x44aaad(0x394)),console[_0x44aaad(0x26a)](_0x44aaad(0x306)+_0x36bc7c+')\x20to\x20your\x20license\x20vendor.'),console['log'](_0x44aaad(0x1eb)),console[_0x44aaad(0x26a)](_0x44aaad(0x314)),console[_0x44aaad(0x26a)](''));}finally{await _0x583fa6['close']();}}async function _0x4f73f9(_0xca6800,_0x594c32){const _0x1f71b8=_0x396e5,_0x187a0f=require$$5,_0x222908=_0x37c1e7[_0x1f71b8(0x4b3)](_0x594c32['dbPath']),_0x3e75be=new _0x187a0f(_0x222908,_0x594c32[_0x1f71b8(0x2f3)]?{'encryptionKey':_0x594c32[_0x1f71b8(0x2f3)]}:{});await _0x3e75be[_0x1f71b8(0x397)]();try{!_0x3e75be[_0x1f71b8(0x4c9)]&&(console[_0x1f71b8(0x1f3)](_0x1f71b8(0x438)),process[_0x1f71b8(0x31c)](0x1));let _0x20e726;try{_0x20e726=await _0x3e75be[_0x1f71b8(0x4c9)][_0x1f71b8(0x2cb)](_0xca6800[_0x1f71b8(0x2b2)]());}catch(_0x279db3){console['error'](_0x1f71b8(0x22c)+_0x279db3['message']),console[_0x1f71b8(0x1f3)](''),console[_0x1f71b8(0x1f3)](_0x1f71b8(0x3cd)),console[_0x1f71b8(0x1f3)](_0x1f71b8(0x3c7)),console[_0x1f71b8(0x1f3)](_0x1f71b8(0x326)),console[_0x1f71b8(0x1f3)](_0x1f71b8(0x282)),console[_0x1f71b8(0x1f3)](''),process[_0x1f71b8(0x31c)](0x1);}console[_0x1f71b8(0x26a)](_0x1f71b8(0x41a)),console[_0x1f71b8(0x26a)](_0x1f71b8(0x3cc)+_0x20e726['id']),console[_0x1f71b8(0x26a)](_0x1f71b8(0x457)+_0x20e726['licensee']),console[_0x1f71b8(0x26a)]('\x20\x20\x20\x20expires:\x20\x20\x20'+new Date(_0x20e726[_0x1f71b8(0x274)])[_0x1f71b8(0x3fb)]()['slice'](0x0,0xa)),console['log'](_0x1f71b8(0x2d0)),console[_0x1f71b8(0x26a)]('');}finally{await _0x3e75be[_0x1f71b8(0x324)]();}}async function _0x399deb(_0x594e4c,_0x528ba8){const _0x3d5742=_0x396e5;!_0x594e4c&&(console['error'](_0x3d5742(0x24b)),process[_0x3d5742(0x31c)](0x1));const _0x45a185=require$$5,_0x146b54=requireOkdbLicenseCodec(),_0x16eeaa=_0x37c1e7[_0x3d5742(0x4b3)](_0x528ba8[_0x3d5742(0x377)]),_0x392435=new _0x45a185(_0x16eeaa,_0x528ba8['key']?{'encryptionKey':_0x528ba8['key']}:{});await _0x392435[_0x3d5742(0x397)]();try{const _0x1161f6=_0x392435['_systemEnv'];(!_0x1161f6||!_0x1161f6[_0x3d5742(0x349)](_0x3d5742(0x4a9)))&&(console[_0x3d5742(0x1f3)]('[okdb]\x20error:\x20no\x20license\x20with\x20id\x20\x22'+_0x594e4c+'\x22'),process[_0x3d5742(0x31c)](0x1));let _0x1e4a14=null,_0x1ba800=null;const _0x2571f1=_0x1161f6['get']('~licenses',_0x594e4c);if(_0x2571f1)_0x1e4a14=_0x594e4c,_0x1ba800=_0x2571f1;else{const _0x557db5=[];for(const {key:_0x3c7341,value:_0x44c640}of _0x1161f6[_0x3d5742(0x3b8)](_0x3d5742(0x4a9))){if(_0x3c7341[_0x3d5742(0x22f)](_0x594e4c))_0x557db5[_0x3d5742(0x29f)]({'key':_0x3c7341,'value':_0x44c640});}_0x557db5[_0x3d5742(0x21f)]===0x0&&(console[_0x3d5742(0x1f3)]('[okdb]\x20error:\x20no\x20license\x20with\x20id\x20\x22'+_0x594e4c+'\x22'),process['exit'](0x1)),_0x557db5[_0x3d5742(0x21f)]>0x1&&(console['error'](_0x3d5742(0x241)+_0x594e4c+_0x3d5742(0x28b)+_0x557db5['length']+_0x3d5742(0x29c)),process[_0x3d5742(0x31c)](0x1)),_0x1e4a14=_0x557db5[0x0][_0x3d5742(0x2f3)],_0x1ba800=_0x557db5[0x0][_0x3d5742(0x37a)];}const _0x31fb50=Date[_0x3d5742(0x416)](),_0x3d2c7f=_0x120351(_0x1ba800,_0x31fb50),_0x6bc953=_0x392435['id'],_0x38c741=_0x3d5742(0x3fe);let _0x4f5e51='';try{const _0x4da86a=Buffer[_0x3d5742(0x240)](_0x1ba800[_0x3d5742(0x33f)],_0x3d5742(0x1f7));_0x4f5e51=_0x146b54[_0x3d5742(0x389)](_0x6bc953,_0x4da86a,_0x38c741)[_0x3d5742(0x4d8)];}catch{}const _0x26f9b1=_0x1ba800['features']?Object[_0x3d5742(0x32a)](_0x1ba800[_0x3d5742(0x3ca)])[_0x3d5742(0x2f9)](([,_0x266d90])=>_0x266d90)[_0x3d5742(0x404)](([_0x5ce741])=>_0x5ce741):[],_0x4c4310=_0x1ba800[_0x3d5742(0x440)]||{},_0x15ffe0=_0x1161f6?.['db']?.[_0x3d5742(0x375)]?.(_0x3d5742(0x431))??0x0,_0x1cd0f3=[..._0x392435['_envs'][_0x3d5742(0x4dc)]()][_0x3d5742(0x2f9)](_0x3d5881=>!_0x3d5881['startsWith']('~'))[_0x3d5742(0x21f)];console[_0x3d5742(0x26a)](_0x3d5742(0x3ad)),console[_0x3d5742(0x26a)](_0x3d5742(0x3cc)+_0x1e4a14),console[_0x3d5742(0x26a)](_0x3d5742(0x457)+(_0x1ba800[_0x3d5742(0x356)]||'')),console[_0x3d5742(0x26a)](_0x3d5742(0x4c4)+(_0x1ba800[_0x3d5742(0x274)]?new Date(_0x1ba800[_0x3d5742(0x274)])['toISOString']()['slice'](0x0,0xa):'')),console[_0x3d5742(0x26a)](_0x3d5742(0x1fc)+(_0x26f9b1[_0x3d5742(0x3e1)](',\x20')||_0x3d5742(0x40d))),console[_0x3d5742(0x26a)](_0x3d5742(0x2cf)+_0x4f5e51),console[_0x3d5742(0x26a)](_0x3d5742(0x427)+_0x3d2c7f),console[_0x3d5742(0x26a)](_0x3d5742(0x347)+new Date(_0x1ba800[_0x3d5742(0x336)])['toISOString']());if(_0x3d2c7f==='active'){console[_0x3d5742(0x26a)](''),console[_0x3d5742(0x26a)]('\x20\x20Usage:');if(_0x4c4310['maxWrites']){const _0x2bbb8b=Math['round'](_0x15ffe0/_0x4c4310['maxWrites']*0x64);console['log'](_0x3d5742(0x36b)+_0x15ffe0[_0x3d5742(0x39a)]()+_0x3d5742(0x3b0)+_0x4c4310['maxWrites'][_0x3d5742(0x39a)]()+_0x3d5742(0x297)+_0x2bbb8b+'%)');}else console[_0x3d5742(0x26a)](_0x3d5742(0x36b)+_0x15ffe0[_0x3d5742(0x39a)]()+_0x3d5742(0x3d1));_0x4c4310[_0x3d5742(0x21e)]?console['log'](_0x3d5742(0x242)+_0x1cd0f3+_0x3d5742(0x3b0)+_0x4c4310['envs']):console[_0x3d5742(0x26a)](_0x3d5742(0x242)+_0x1cd0f3+_0x3d5742(0x3d1));}console[_0x3d5742(0x26a)]('');}finally{await _0x392435['close']();}}async function _0x176d8f(_0xfc25d0,_0x3eca5e){const _0x2314cb=_0x396e5;!_0xfc25d0&&(console['error'](_0x2314cb(0x49c)),process[_0x2314cb(0x31c)](0x1));const _0x4f1b94=require$$5,_0x2f5069=_0x37c1e7[_0x2314cb(0x4b3)](_0x3eca5e[_0x2314cb(0x377)]),_0x359809=new _0x4f1b94(_0x2f5069,_0x3eca5e[_0x2314cb(0x2f3)]?{'encryptionKey':_0x3eca5e[_0x2314cb(0x2f3)]}:{});await _0x359809[_0x2314cb(0x397)]();try{const _0x426a18=_0x359809['_systemEnv'];(!_0x426a18||!_0x426a18[_0x2314cb(0x349)]('~licenses'))&&(console['error'](_0x2314cb(0x3dc)+_0xfc25d0+'\x22'),process[_0x2314cb(0x31c)](0x1));let _0x83fc43=null,_0x321831=null;const _0x5adee1=_0x426a18[_0x2314cb(0x375)]('~licenses',_0xfc25d0);if(_0x5adee1)_0x83fc43=_0xfc25d0,_0x321831=_0x5adee1;else{const _0x14df37=[];for(const {key:_0x579480,value:_0xac07e0}of _0x426a18[_0x2314cb(0x3b8)]('~licenses')){if(_0x579480[_0x2314cb(0x22f)](_0xfc25d0))_0x14df37[_0x2314cb(0x29f)]({'key':_0x579480,'value':_0xac07e0});}_0x14df37[_0x2314cb(0x21f)]===0x0&&(console['error']('[okdb]\x20error:\x20no\x20license\x20with\x20id\x20\x22'+_0xfc25d0+'\x22'),process[_0x2314cb(0x31c)](0x1)),_0x14df37[_0x2314cb(0x21f)]>0x1&&(console[_0x2314cb(0x1f3)]('[okdb]\x20error:\x20ambiguous\x20prefix\x20\x22'+_0xfc25d0+_0x2314cb(0x28b)+_0x14df37[_0x2314cb(0x21f)]+_0x2314cb(0x29c)),process[_0x2314cb(0x31c)](0x1)),_0x83fc43=_0x14df37[0x0][_0x2314cb(0x2f3)],_0x321831=_0x14df37[0x0][_0x2314cb(0x37a)];}await _0x426a18[_0x2314cb(0x4d7)](_0x2314cb(0x4a9),_0x83fc43),console['log'](_0x2314cb(0x3a5)+_0x83fc43+_0x2314cb(0x2a5)+(_0x321831['licensee']||_0x2314cb(0x32e))+')');}finally{await _0x359809[_0x2314cb(0x324)]();}}async function _0x234356(_0x1115bf,_0x5dbd64,_0x5be5b0){const _0x98a4bb=_0x396e5;!_0x1115bf&&(console[_0x98a4bb(0x1f3)](_0x98a4bb(0x48c)),process[_0x98a4bb(0x31c)](0x1));!_0x5be5b0[_0x98a4bb(0x496)]&&!(_0x5be5b0[_0x98a4bb(0x47f)]&&_0x5be5b0['password'])&&(console[_0x98a4bb(0x1f3)](_0x98a4bb(0x29a)),process['exit'](0x1));const _0xcb32a0=_0x5be5b0['selfAddress']||_0x5dbd64[_0x98a4bb(0x266)]?.[_0x98a4bb(0x478)];!_0xcb32a0&&(console[_0x98a4bb(0x1f3)]('[okdb]\x20error:\x20--address\x20is\x20required\x20for\x20join\x20(this\x20node\x27s\x20reachable\x20sync\x20address).\x0a'+_0x98a4bb(0x370)+_0x98a4bb(0x25c)),process['exit'](0x1));const _0x3db0d4=require$$5,_0x4d0fb2=new _0x3db0d4(_0x5dbd64[_0x98a4bb(0x377)],{'sync':{'address':_0xcb32a0,'auto_reconcile':![]}});await _0x4d0fb2[_0x98a4bb(0x397)]();try{const _0x4d71cc=_0x4d0fb2[_0x98a4bb(0x487)];if(_0x4d71cc&&_0x4d71cc['hasType'](_0x98a4bb(0x2aa))){let _0x22782f=![];for(const _0x43de02 of _0x4d71cc[_0x98a4bb(0x3b8)](_0x98a4bb(0x2aa))){_0x22782f=!![];break;}_0x22782f&&console['log'](_0x98a4bb(0x4ad)+_0x98a4bb(0x44c));}console['log'](_0x98a4bb(0x42e)+_0x1115bf+'…'),await _0x4d0fb2[_0x98a4bb(0x266)]['join'](_0x1115bf[_0x98a4bb(0x46c)](/\/+$/,''),{'token':_0x5be5b0['token'],'username':_0x5be5b0[_0x98a4bb(0x47f)],'password':_0x5be5b0['password']}),console['log']('\x20\x20✓\x20joined\x20and\x20reconciliation\x20initiated'),console['log'](_0x98a4bb(0x338));}finally{await _0x4d0fb2['close']();}}async function _0xd588bf(){const _0x194c07=_0x396e5,_0x50e443=Date['now'](),_0x9dd002=_0x38668f(process[_0x194c07(0x4ba)]),_0x52a05c=_0x2d4682(_0x9dd002),_0x2d1da5=_0x37c1e7['resolve'](_0x52a05c[_0x194c07(0x377)]);!_0x52a05c[_0x194c07(0x3f7)]&&!process[_0x194c07(0x321)][_0x194c07(0x200)]&&(_0x52a05c[_0x194c07(0x3f7)]=!![]);const _0x28aee2=require$$5,{start:_0x1259ca,colorLog:_0x53c63e}=requireOkdbShell(),_0x4680af={..._0x52a05c[_0x194c07(0x2f3)]?{'encryptionKey':_0x52a05c[_0x194c07(0x2f3)]}:{},..._0x52a05c['noAdmin']?{'admin':![]}:_0x269c11(_0x52a05c[_0x194c07(0x304)])?{'admin':_0x52a05c[_0x194c07(0x304)]}:{},..._0x269c11(_0x52a05c['api'])?{'api':_0x52a05c[_0x194c07(0x43a)]}:{},..._0x269c11(_0x52a05c[_0x194c07(0x298)])?{'auth':_0x52a05c[_0x194c07(0x298)]}:{},..._0x269c11(_0x52a05c[_0x194c07(0x2f7)])?{'mcp':_0x52a05c[_0x194c07(0x2f7)]}:{},..._0x52a05c[_0x194c07(0x2af)]!==![]?{'timeMachine':_0x52a05c['timeMachine']}:{}},_0x504580=new _0x28aee2(_0x2d1da5,_0x4680af);_0x504580[_0x194c07(0x26a)][_0x194c07(0x2c3)]?.();const _0x94d324=_0x504580[_0x194c07(0x26a)][_0x194c07(0x2bd)](_0x1f3f09=>_0x53c63e(_0x1f3f09,_0x52a05c['logLevel']));if(_0x52a05c['noRepl'])process['stdout'][_0x194c07(0x334)](_0x194c07(0x2eb));await _0x504580[_0x194c07(0x397)]();if(_0x52a05c['noRepl'])process['stdout'][_0x194c07(0x334)](_0x194c07(0x437));try{await _0x4bce81(_0x504580,_0x52a05c[_0x194c07(0x2bf)]);}catch(_0x190600){_0x190600['code']===_0x194c07(0x221)&&(console[_0x194c07(0x1f3)](_0x194c07(0x258)+_0x52a05c[_0x194c07(0x2bf)]+_0x194c07(0x468)),process[_0x194c07(0x31c)](0x1));throw _0x190600;}if(_0x52a05c[_0x194c07(0x3f7)])process['stdout']['write'](_0x194c07(0x467)+_0x52a05c[_0x194c07(0x2bf)]+'\x0a');if(!_0x52a05c['noRepl'])_0x504580['log'][_0x194c07(0x2c3)]?.(),_0x94d324?.(),_0x230027(_0x504580['auth']?.[_0x194c07(0x320)]?.()??[]),await _0x1259ca(_0x504580,_0x52a05c);else{const _0x39364c=_0x37c1e7[_0x194c07(0x3e1)](_0x2d1da5,_0x194c07(0x284));try{_0x2753d1[_0x194c07(0x3a1)](_0x39364c,String(process[_0x194c07(0x4dd)]));}catch{}const _0x149623=Date['now']()-_0x50e443;console['log'](''),console[_0x194c07(0x26a)](_0x194c07(0x1f9)),console[_0x194c07(0x26a)](_0x194c07(0x319)+_0x52a05c[_0x194c07(0x2bf)]),console[_0x194c07(0x26a)](_0x194c07(0x3a3)+_0x2d1da5),console['log'](_0x194c07(0x3f9)+_0x504580['id']);{const _0x4bab6f=_0x504580[_0x194c07(0x487)]?.['db']?.[_0x194c07(0x375)]?.(_0x194c07(0x431))??0x0,_0x5ef472=[..._0x504580['_envs'][_0x194c07(0x4dc)]()][_0x194c07(0x2f9)](_0x2098d2=>!_0x2098d2['startsWith']('~'))[_0x194c07(0x21f)];if(_0x504580[_0x194c07(0x4c9)]?.['active']?.[_0x194c07(0x243)]===0x1){const _0x24b369=Math[_0x194c07(0x48b)]((_0x504580[_0x194c07(0x4c9)]['active'][_0x194c07(0x274)]-Date[_0x194c07(0x416)]())/0x5265c00);console[_0x194c07(0x26a)](_0x194c07(0x2d4)+_0x504580[_0x194c07(0x4c9)][_0x194c07(0x4ab)][_0x194c07(0x356)]+'\x20(expires\x20in\x20'+_0x24b369+'\x20days\x20—\x20POC/demo\x20only,\x20not\x20node-bound)');}else{if(_0x504580['_license']?.['active']){const _0x37fde1=_0x504580[_0x194c07(0x4c9)][_0x194c07(0x4ab)];console[_0x194c07(0x26a)](_0x194c07(0x2fa)+_0x37fde1['licensee']+_0x194c07(0x471)+new Date(_0x37fde1[_0x194c07(0x274)])[_0x194c07(0x3fb)]()[_0x194c07(0x48e)](0x0,0xa)+')');const _0x320934=_0x37fde1[_0x194c07(0x440)]||{};if(_0x320934[_0x194c07(0x24f)]){const _0x57d43f=Math['round'](_0x4bab6f/_0x320934[_0x194c07(0x24f)]*0x64);console[_0x194c07(0x26a)](_0x194c07(0x477)+_0x4bab6f[_0x194c07(0x39a)]()+_0x194c07(0x3b0)+_0x320934['maxWrites'][_0x194c07(0x39a)]()+'\x20writes\x20('+_0x57d43f+'%),\x20'+_0x5ef472+(_0x320934[_0x194c07(0x21e)]?'/'+_0x320934[_0x194c07(0x21e)]:'')+_0x194c07(0x484)+(_0x5ef472===0x1?'':'s'));}}else{if(_0x504580['_license']){const _0x3284f8=_0x504580['_license'][_0x194c07(0x254)](),_0x10cd1e=_0x3284f8[_0x194c07(0x21f)]?_0x3284f8[_0x194c07(0x404)](_0x27dfe3=>_0x27dfe3['pin'])[_0x194c07(0x3e1)](',\x20'):_0x194c07(0x408),_0x2a703c=_0x504580[_0x194c07(0x4c9)]['effective'],_0x1aed40=_0x2a703c[_0x194c07(0x440)]['maxWrites']?Math[_0x194c07(0x1f8)](_0x4bab6f/_0x2a703c[_0x194c07(0x440)][_0x194c07(0x24f)]*0x64):0x0;console['log']('\x20\x20\x20\x20license:\x20free\x20tier\x20—\x20add\x20a\x20license\x20to\x20unlock\x20sync,\x20embeddings,\x20engines,\x20time-machine'),console[_0x194c07(0x26a)](_0x194c07(0x477)+_0x4bab6f['toLocaleString']()+_0x194c07(0x3b0)+_0x2a703c[_0x194c07(0x440)]['maxWrites'][_0x194c07(0x39a)]()+_0x194c07(0x4a5)+_0x1aed40+_0x194c07(0x45e)+_0x5ef472+_0x194c07(0x3b0)+_0x2a703c['limits'][_0x194c07(0x21e)]+'\x20envs'),console[_0x194c07(0x26a)](_0x194c07(0x2c1)+_0x10cd1e);}}}}console[_0x194c07(0x26a)](_0x194c07(0x22e)+_0x52a05c[_0x194c07(0x2bf)]+_0x194c07(0x3e6));!_0x52a05c[_0x194c07(0x27e)]&&console[_0x194c07(0x26a)]('\x20\x20\x20\x20admin:\x20http://localhost:'+_0x52a05c[_0x194c07(0x2bf)]+'/admin/index.html');console[_0x194c07(0x26a)](''),console[_0x194c07(0x26a)](_0x194c07(0x3d3)+_0x149623+'ms'),_0x230027(_0x504580[_0x194c07(0x298)]?.[_0x194c07(0x320)]?.()??[]);async function _0x42473a(){const _0x2af883=_0x194c07;process[_0x2af883(0x322)][_0x2af883(0x334)](_0x2af883(0x2ed));try{_0x2753d1[_0x2af883(0x25f)](_0x39364c);}catch{}await _0x504580[_0x2af883(0x324)](),process[_0x2af883(0x31c)](0x0);}process['on'](_0x194c07(0x270),_0x42473a),process['on'](_0x194c07(0x33d),_0x42473a);}}const _0x9dbc9c=new Set(['version',_0x396e5(0x3ee),_0x396e5(0x311),'backup',_0x396e5(0x2fe),_0x396e5(0x2bb),_0x396e5(0x46d),'token','join',_0x396e5(0x450)]),_0xbd59de=process['argv'][0x2];if(_0xbd59de===_0x396e5(0x2e2))console[_0x396e5(0x26a)](require$$2[_0x396e5(0x2e2)]),process[_0x396e5(0x31c)](0x0);else{if(_0xbd59de&&_0x9dbc9c[_0x396e5(0x3e5)](_0xbd59de)){const _0x2d1b5c=process[_0x396e5(0x4ba)]['slice'](0x3),_0x18c766=_0x38668f(['node',_0x396e5(0x35a),..._0x2d1b5c]),_0x2c990a=_0x2d4682(_0x18c766),_0x27b397=new Set([_0x396e5(0x4a7),'-d','--key','-k','--config','-c','--port','-p','--log-level',_0x396e5(0x414),'-e','--types',_0x396e5(0x3e4),_0x396e5(0x285),_0x396e5(0x454),'--permissions',_0x396e5(0x2d3),_0x396e5(0x34e),_0x396e5(0x343),_0x396e5(0x41b),'-u',_0x396e5(0x4c5)]);let _0x416989=null;for(let _0x149b2c=0x0;_0x149b2c<_0x2d1b5c[_0x396e5(0x21f)];_0x149b2c++){if(_0x27b397[_0x396e5(0x3e5)](_0x2d1b5c[_0x149b2c])){_0x149b2c++;continue;}if(!_0x2d1b5c[_0x149b2c]['startsWith']('-')){_0x416989=_0x2d1b5c[_0x149b2c];break;}}(async()=>{const _0x23d744=_0x396e5;if(_0xbd59de==='token'){const _0x5449f8=process[_0x23d744(0x4ba)][0x3],_0x5be2a0=process[_0x23d744(0x4ba)]['slice'](0x4),_0x3b4fbc=_0x38668f([_0x23d744(0x2fb),_0x23d744(0x35a),..._0x5be2a0]),_0x17a003=_0x2d4682(_0x3b4fbc),_0x378ea9=new Set([_0x23d744(0x4a7),'-d','--key','-k','--config','-c','--port','-p',_0x23d744(0x3e4),_0x23d744(0x285),_0x23d744(0x454),_0x23d744(0x25a),'--grants',_0x23d744(0x34e),'--log-level',_0x23d744(0x414),'-e','--types']),_0x4e3d54=[];for(let _0x5789e2=0x0;_0x5789e2<_0x5be2a0[_0x23d744(0x21f)];_0x5789e2++){if(_0x378ea9['has'](_0x5be2a0[_0x5789e2])){_0x5789e2++;continue;}if(_0x5be2a0[_0x5789e2]['startsWith']('-'))continue;_0x4e3d54[_0x23d744(0x29f)](_0x5be2a0[_0x5789e2]);}switch(_0x5449f8){case _0x23d744(0x225):await _0x8ccbc1(_0x17a003,_0x3b4fbc);break;case _0x23d744(0x3bb):await _0x315e6b(_0x17a003);break;case _0x23d744(0x3b1):await _0x1c61bc(_0x4e3d54[0x0],_0x17a003);break;default:console[_0x23d744(0x1f3)]('[okdb]\x20unknown\x20token\x20action:\x20\x22'+_0x5449f8+_0x23d744(0x2cd)),process[_0x23d744(0x31c)](0x1);}return;}if(_0xbd59de===_0x23d744(0x450)){const _0x75abe6=requireOkdbLicenseCodec(),_0xd11748=process[_0x23d744(0x4ba)]['slice'](0x3),_0x1165b0=_0x38668f([_0x23d744(0x2fb),_0x23d744(0x35a),..._0xd11748]),_0x3f6529=_0x2d4682(_0x1165b0),_0x1addf8=new Set(['--path','-d',_0x23d744(0x3c5),'-k',_0x23d744(0x35e),'-c',_0x23d744(0x479),'-p',_0x23d744(0x3dd)]),_0x3b7d94=[];for(let _0xbf2ff0=0x0;_0xbf2ff0<_0xd11748['length'];_0xbf2ff0++){if(_0x1addf8[_0x23d744(0x3e5)](_0xd11748[_0xbf2ff0])){_0xbf2ff0++;continue;}if(_0xd11748[_0xbf2ff0][_0x23d744(0x22f)]('-'))continue;_0x3b7d94[_0x23d744(0x29f)](_0xd11748[_0xbf2ff0]);}const _0x5029fa=_0x3b7d94[0x0]??null;if(_0x5029fa===_0x23d744(0x4d7))await _0x176d8f(_0x3b7d94[0x1],_0x3f6529);else{if(!_0x5029fa)await _0x253713(_0x3f6529);else{let _0x542e0f=_0x75abe6[_0x23d744(0x3d9)](_0x5029fa);if(_0x542e0f===_0x23d744(0x32f)&&_0x2753d1[_0x23d744(0x40b)](_0x5029fa))_0x542e0f=_0x23d744(0x37c);if(_0x542e0f===_0x23d744(0x37c))try{const _0x443558=_0x2753d1['readFileSync'](_0x5029fa,'utf8')[_0x23d744(0x2b2)](),_0x48068b=_0x75abe6[_0x23d744(0x3d9)](_0x443558);if(_0x48068b===_0x23d744(0x461)){await _0x4f73f9(_0x443558,_0x3f6529);return;}await _0x5ecd25(_0x5029fa,_0x3f6529);return;}catch(_0x1746d0){console[_0x23d744(0x1f3)]('[okdb]\x20error:\x20failed\x20to\x20read\x20'+_0x5029fa+':\x20'+_0x1746d0[_0x23d744(0x345)]),process[_0x23d744(0x31c)](0x1);}switch(_0x542e0f){case'blob':await _0x5ecd25(_0x5029fa,_0x3f6529);break;case _0x23d744(0x461):await _0x4f73f9(_0x5029fa,_0x3f6529);break;case'uuid':await _0x399deb(_0x5029fa,_0x3f6529);break;default:console[_0x23d744(0x1f3)](_0x23d744(0x3b9)+_0x5029fa+'\x22'),console[_0x23d744(0x1f3)](''),console[_0x23d744(0x1f3)](_0x23d744(0x2c0)),console[_0x23d744(0x1f3)](_0x23d744(0x208)),console[_0x23d744(0x1f3)]('\x20\x20\x20\x20•\x20an\x20activation\x20token\x20\x20(124\x20chars)'),console[_0x23d744(0x1f3)]('\x20\x20\x20\x20•\x20a\x20license\x20id\x20\x20\x20\x20\x20(uuid)'),console['error'](_0x23d744(0x24a)),console['error'](''),console[_0x23d744(0x1f3)](_0x23d744(0x3d6)),process[_0x23d744(0x31c)](0x1);}}}return;}switch(_0xbd59de){case'doctor':await _0x131a1a(_0x2c990a);break;case _0x23d744(0x311):await _0x452520();break;case _0x23d744(0x46d):await _0x248c09(_0x2c990a);break;case _0x23d744(0x283):await _0x4cbc5a(_0x416989??_0x37c1e7[_0x23d744(0x4b3)](_0x23d744(0x2d8)),_0x2c990a);break;case _0x23d744(0x2fe):await _0x534d67(_0x416989??_0x37c1e7['resolve']('./okdb-export.ndjson'),_0x2c990a,_0x18c766);break;case _0x23d744(0x2bb):await _0x5437a2(_0x416989??_0x37c1e7[_0x23d744(0x4b3)]('./okdb-export.ndjson'),_0x2c990a,_0x18c766);break;case _0x23d744(0x3e1):await _0x234356(_0x416989,_0x2c990a,_0x18c766);break;}})()[_0x396e5(0x3c2)](()=>process['exit'](0x0))[_0x396e5(0x300)](_0x1dea8a=>{const _0x5c2939=_0x396e5;console['error'](_0x5c2939(0x277)+(_0x1dea8a[_0x5c2939(0x345)]||_0x1dea8a)+'\x0a'),process[_0x5c2939(0x31c)](0x1);});}else _0xd588bf()[_0x396e5(0x300)](_0x459ba3=>{const _0x1c92ac=_0x396e5;console['error'](_0x1c92ac(0x290)),console[_0x1c92ac(0x1f3)](_0x459ba3[_0x1c92ac(0x211)]||_0x459ba3),process[_0x1c92ac(0x31c)](0x1);});}return okdb$1;}var okdbExports=requireOkdb(),okdb=getDefaultExportFromCjs(okdbExports);module[_0xddaf03(0x354)]=okdb;
2
+ 'use strict';const _0x19ca31=_0x30ec;(function(_0x5b9890,_0x1bb767){const _0x46bd80=_0x30ec,_0x2f6483=_0x5b9890();while(!![]){try{const _0x76b3ca=parseInt(_0x46bd80(0x18f))/0x1+-parseInt(_0x46bd80(0x1dd))/0x2+parseInt(_0x46bd80(0x13a))/0x3+-parseInt(_0x46bd80(0x329))/0x4*(parseInt(_0x46bd80(0x102))/0x5)+parseInt(_0x46bd80(0x1f1))/0x6*(parseInt(_0x46bd80(0x2ec))/0x7)+parseInt(_0x46bd80(0x33f))/0x8+-parseInt(_0x46bd80(0x101))/0x9;if(_0x76b3ca===_0x1bb767)break;else _0x2f6483['push'](_0x2f6483['shift']());}catch(_0x4a4363){_0x2f6483['push'](_0x2f6483['shift']());}}}(_0x3cd6,0x98171));var require$$1$1=require(_0x19ca31(0x1e3)),require$$1=require('fs'),require$$3=require('net'),require$$0$2=require(_0x19ca31(0x2d7)),require$$5=require(_0x19ca31(0x286)),require$$0=require('crypto'),require$$0$1=require('node:crypto'),require$$2$1=require('os'),require$$4=require(_0x19ca31(0x174));function getDefaultExportFromCjs(_0x1fd77a){const _0x4ff0f0=_0x19ca31;return _0x1fd77a&&_0x1fd77a[_0x4ff0f0(0x219)]&&Object[_0x4ff0f0(0x1e6)][_0x4ff0f0(0x1d6)][_0x4ff0f0(0xdb)](_0x1fd77a,_0x4ff0f0(0x33e))?_0x1fd77a[_0x4ff0f0(0x33e)]:_0x1fd77a;}function _0x3cd6(){const _0x525ec6=['../okdb','admin','set','string','/api','[okdb]\x20exporting\x20blobs…','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20show\x20this\x20help\x0a\x20\x20','TYPE_ALREADY_REGISTERED','trimStart','index:registered','detachConsole','label','\x20\x20Usage:\x20okdb\x20license\x20[<blob|path|uuid|activation-token>]','ALREADY_EXISTS','transport','createPublicKey','\x20\x20\x20\x20expires:\x20\x20\x20','valid','sig','error','<json-body>','licenseHash','padStart','allocUnsafe','—\x20/api/\x20is\x20auto-prefixed,\x20env\x20is\x20auto-injected','env/','\x0a\x20\x20No\x20documentation\x20found\x20for:\x20','type/','exp',')\x20to\x20your\x20license\x20vendor.','types/env=','[okdb]\x20invalid\x20port:\x20','update','then','floor','exportBlobs','\x20\x20\x20\x20id:\x20\x20\x20\x20\x20\x20\x20\x20','license:activated','\x20licenses','details','sub','creating','--log-requests','fromEntries','\x27:\x20','input:\x20','\x20\x20No\x20licenses\x20stored.\x20Use\x20`okdb\x20license\x20<blob>`\x20to\x20add\x20one.','--key','Indexes','[okdb]\x20exported\x20\x20types=','magenta','\x20\x20All\x20checks\x20passed.\x0a','1.6.4','\x20\x20Or\x20set\x20sync.address\x20in\x20.kdbconfig','{}[]:,\x27\x22','\x20references\x20','--drop','[okdb]\x20opening\x20','\x20\x20+','--blobs','\x20\x20✗','bind','open','LICENSED_BUILD','\x20\x20Some\x20checks\x20failed.\x0a','\x20\x20·\x20','_systemEnv','Activation\x20invalid:\x20','val','\x20in\x20','[okdb]\x20error:\x20license\x20management\x20is\x20only\x20available\x20in\x20licensed\x20builds\x20(npm\x20run\x20build:prod).','put','stdout','\x20(must\x20be\x201–65535)','processors/','\x22.\x20Use:\x20create,\x20list,\x20revoke','version','body','no\x20.kdbconfig\x20(using\x20defaults)','effective','mcp','readline','type/users/query\x20{\x22active\x22:true}','revoke','writeFileSync',':\x20expected\x20','reverse','logRequests','noRepl','emit','assertFeature','<path>',',\x20label:\x20','\x20\x20\x20\x20permissions:\x20','\x20\x20\x20\x20pin:\x20\x20\x20\x20\x20','\x20documents\x20fail\x20validation','PUBLIC_KEY_PEM','timingSafeEqual','[okdb]\x20imported\x20\x20types=','getRange','dbPath','\x0a\x20\x20✓\x20License\x20activated','196PiMMbL','dim','database\x20path\x20writable:\x20','Processors','⚠\x20OPEN\x20LICENSE\x20ACTIVE\x20—\x20this\x20license\x20is\x20not\x20node-bound\x20and\x20is\x20intended\x20for\x20POC/demo\x20use\x20only.\x20Expires\x20in\x20','sync','\x27\x20already\x20registered','type/users/item/alice\x20--env\x20staging','\x20records…','--label','LICENSE_ACTIVATION_INVALID','(add\x20a\x20license\x20first)','\x20\x20\x20\x20license:\x20⚠\x20OPEN\x20—\x20','OKDB-PIN-V1:','resume','createServer','LICENSE_TYPE_OPEN','STATUS','code','terminal','import','halted','PATCH','white','platform','--permissions','exports','OPEN','TYPE_NOT_REGISTERED','\x20\x20\x20\x20pin:\x20\x20\x20\x20\x20\x20\x20','addedAt','LABEL','pid','api','auth','unlinkSync','SCHEMA_COLLECTION_INVALID','standard','onLicenseExpired','\x20env','.okdb-write-test','types\x20--env\x20staging','\x20not\x20found','FEATURES','OKDBNotFoundError','number','\x0a\x20\x20Joining\x20cluster\x20at\x20','decodeLicenseBlob:\x20failed\x20to\x20decode\x20payload:\x20','./okdb-backup','mkdirSync','POST','.kdbconfig','freeze','limits','\x20already\x20in\x20use','setTtl','config','null','\x20\x20\x20\x20path:\x20\x20','dropType','base64url','52AaqvEx','sourceType','item:remove','FOREIGN_KEY_VIOLATION','env/:env','sizeBefore','\x20log\x20level:\x20','okdb.pid','derivePin','LICENSE_FEATURE_DISABLED','\x20\x20@','catch','Feature\x20not\x20licensed:\x20','routes','\x20type','round','\x20\x20(name:\x20','tags','\x0a\x20\x20✓\x20Token\x20created','remove','alloc','default','4517768hkwUKu','existsSync','\x20\x20\x20\x201.\x20Send\x20the\x20PIN\x20above\x20(','indexOf','\x20\x20\x20\x20id:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','blobs','[okdb]\x20error:\x20no\x20license\x20with\x20id\x20\x22','use\x20<env>','readUInt8','__OKDB_PUB_FINGERPRINT__','\x20\x20\x20\x20admin:\x20http://localhost:','createHash','payload','node','\x20does\x20not\x20exist','sync:apply','logLevel','Files','createHmac','listRoutes','System','queue','boolean','question','_lookupByName','\x22\x20on\x20\x22','SIGTERM','[okdb]\x20blobs:\x20imported=','registerIndex','log','(unset)','safety','NAME','xdg-open\x20','active','name','_computeStatus','\x20\x20Note:\x20this\x20node\x20has\x20existing\x20tokens.\x20They\x20will\x20coexist\x20with\x20cluster\x20tokens\x0a','exit','LICENSEE','\x20\x20⚠','--changes','node\x20','Either\x20the\x20build\x20was\x20made\x20with\x20a\x20different\x20keypair,\x20or\x20the\x20license\x20was\x20issued\x20with\x20a\x20different\x20private\x20key.','__writeCounter','OKDBUniqueConstraintError','\x20logs\x20off\x0a','INDEX_NOT_REGISTERED','system:ready','DELETE\x20type/users/item/x','--ttl','\x0a\x20\x20Joined.\x20Remote\x20tokens\x20replicated.\x20You\x20can\x20now\x20log\x20in\x20with\x20cluster\x20credentials.\x0a','peers=','prompt','targetKey','\x20\x20\x20\x20\x20explicit\x20method\x0a\x0a\x20\x20','_isFree','[on|off|level]','resetting','\x20—\x20type\x20env\x20to\x20list\x20available\x0a','\x1b[36m','ttl:clear','embeddings','\x20/\x20','finally','--token','export','username','sha256','backup','\x20\x20\x20\x20•\x20an\x20activation\x20token\x20\x20(124\x20chars)','blob','(null)','red','list','[okdb]\x20error:\x20--grants\x20must\x20be\x20valid\x20JSON\x20object','concat','importBlobs','\x20\x20\x20\x20name:\x20\x20\x20\x20\x20\x20\x20\x20','Hint:\x20','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20show\x20active\x20environment\x20+\x20list\x20all\x20envs\x0a\x20\x20','Records','dynamic','--no-repl','toUpperCase','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20→\x20GET\x20/api/env/','some','http','LICENSE_INVALID','selfAddress','now','PUT\x20type/users/item/x\x20{\x22n\x22:1}','\x20records','[okdb]\x20reset\x20aborted','init','application/json','[okdb]\x20unknown\x20token\x20action:\x20\x22','\x20\x20Envs:\x20\x20\x20\x20','records','off','address','message','constructor','description','level','values','\x20\x20\x20http://localhost:','summary','sourceKey','decodeLicenseBlob:\x20input\x20must\x20be\x20a\x20string','permissions','addLicense','columns','from','\x20\x20╚═══════════════════════════╝','sort','[okdb]\x20error:\x20failed\x20to\x20read\x20','split','[okdb]\x20port\x20','INVALID_INDEX_KEY','invalid','TYPES','getPins','\x20→\x20POST\x20/api/env/','starting','createInterface','fts:registered','\x0a\x20\x20Usage:\x20use\x20<env-name>\x0a','\x20\x20Error:\x20','object','listLicenses','Shutting\x20down\x20due\x20to\x20license\x20expiry','\x1b[37m','.\x20Add\x20a\x20license\x20that\x20includes\x20\x22','detectInputType','min','\x27\x20is\x20already\x20registered','win32','resetIndex','\x20\x20\x20\x203.\x20Run:\x20\x20okdb\x20license\x20<activation-token>','logs','\x20\x20Type\x20','cyan','readUInt32BE','parse','current','licenseId','\x0a\x20\x20Run\x20okdb\x20to\x20start\x20the\x20server.\x0a','Cannot\x20set\x20enforce\x20schema\x20on\x20','digest','\x20\x20\x20\x20\x20control\x20log\x20verbosity\x0a\x20\x20','_licenseHash','randomBytes','green','type:registered','toFixed','[okdb]\x20importing\x20','every','ttl','Examples','expired','\x22\x20to\x20enable\x20it.','\x20months\x20from\x20issuance)','call','\x20\x20\x20\x20\x20\x20\x20\x20\x20OKDB\x20SHELL\x20\x20\x20\x20\x20\x20\x20\x20\x20','OKDBIndexAlreadyRegisteredError','listen','errors','type','hint','unknown','trim','reset','\x20SECURITY\x20NOTICE','meta','\x0a\x20\x20okdb\x20—\x20standalone\x20OKDB\x20server\x0a\x0a\x20\x20Usage:\x0a\x20\x20\x20\x20okdb\x20[options]\x0a\x20\x20\x20\x20okdb\x20<command>\x0a\x0a\x20\x20Options:\x0a\x20\x20\x20\x20-p,\x20--port\x20<port>\x20\x20\x20\x20\x20\x20\x20\x20HTTP\x20port\x20(default:\x208484)\x0a\x20\x20\x20\x20-d,\x20--path\x20<dir>\x20\x20\x20\x20\x20\x20\x20\x20\x20Database\x20directory\x20(default:\x20./okdb-data)\x0a\x20\x20\x20\x20-k,\x20--key\x20\x20<secret>\x20\x20\x20\x20\x20\x20Encryption\x20key\x20for\x20data\x20at\x20rest\x0a\x20\x20\x20\x20-c,\x20--config\x20<file>\x20\x20\x20\x20\x20\x20Config\x20file\x20path\x20(default:\x20.kdbconfig)\x0a\x20\x20\x20\x20\x20\x20\x20\x20--log-level\x20<level>\x20\x20Log\x20level:\x20debug\x20|\x20info\x20|\x20warn\x20|\x20error\x20(default:\x20info)\x0a\x20\x20\x20\x20\x20\x20\x20\x20--no-repl\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Start\x20server\x20without\x20interactive\x20shell\x0a\x20\x20\x20\x20\x20\x20\x20\x20--no-admin\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Disable\x20admin\x20UI\x0a\x20\x20\x20\x20\x20\x20\x20\x20--open\x20[ip\x20...]\x20\x20\x20\x20\x20\x20Open\x20mode:\x20bypass\x20auth\x20for\x20listed\x20IPs\x20(default:\x20localhost).\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Examples:\x20--open\x20\x20--open\x20192.168.1.0/24\x20\x20--open\x20*\x0a\x20\x20\x20\x20\x20\x20\x20\x20--log-requests\x20\x20\x20\x20\x20\x20\x20Print\x20every\x20HTTP\x20request\x20to\x20stdout\x20(for\x20debugging)\x0a\x20\x20\x20\x20-v,\x20--version\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Print\x20version\x20and\x20exit\x0a\x20\x20\x20\x20-h,\x20--help\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20this\x20help\x0a\x0a\x20\x20Commands:\x0a\x20\x20\x20\x20version\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Print\x20version\x20and\x20exit\x0a\x20\x20\x20\x20doctor\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Run\x20health\x20checks\x0a\x20\x20\x20\x20init\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Create\x20.kdbconfig\x20and\x20okdb-data/\x0a\x20\x20\x20\x20token\x20create\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Create\x20a\x20token\x20in\x20the\x20local\x20DB\x20(direct\x20access,\x20no\x20HTTP)\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--name\x20<name>\x20\x20\x20\x20\x20\x20For\x20password\x20login\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--password\x20<pass>\x20\x20Password\x20(requires\x20--name)\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--label\x20<text>\x20\x20\x20\x20\x20Human\x20description\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--permissions\x20<l>\x20\x20Comma-separated\x20baseline\x20permissions\x20(e.g.\x20\x22*\x22\x20or\x20\x22data:read\x22)\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--grants\x20<json>\x20\x20\x20\x20Per-env\x20grants\x20as\x20JSON\x20(e.g.\x20\x27{\x22orders\x22:[\x22data:*\x22]}\x27)\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--ttl\x20<ms>\x20\x20\x20\x20\x20\x20\x20\x20\x20Optional\x20TTL\x20in\x20milliseconds\x0a\x20\x20\x20\x20token\x20list\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20List\x20all\x20tokens\x20in\x20the\x20local\x20DB\x0a\x20\x20\x20\x20token\x20revoke\x20<id>\x20\x20\x20\x20\x20\x20\x20\x20Revoke\x20(delete)\x20a\x20token\x20by\x20id\x20(full\x20uuid\x20or\x20unique\x20prefix)\x0a\x20\x20\x20\x20join\x20<address>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Join\x20an\x20existing\x20cluster\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--token\x20<t>\x20\x20\x20\x20\x20\x20\x20\x20Bearer\x20token\x20from\x20the\x20cluster\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--username\x20<u>\x20\x20\x20\x20\x20Or,\x20username\x20for\x20login\x20exchange\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--password\x20<p>\x20\x20\x20\x20\x20Password\x20for\x20login\x20exchange\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--address\x20<addr>\x20\x20\x20This\x20node\x27s\x20reachable\x20sync\x20address\x20(required)\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--path\x20<dir>\x20\x20\x20\x20\x20\x20\x20Local\x20DB\x20path\x0a\x20\x20\x20\x20backup\x20[dir]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Hot\x20filesystem\x20backup\x20via\x20LMDB\x20native\x20copy\x20(default:\x20./okdb-backup)\x0a\x20\x20\x20\x20export\x20<file>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Streaming\x20NDJSON\x20logical\x20export\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--env\x20<name>\x20\x20\x20\x20\x20\x20env\x20to\x20export\x20(default:\x20default)\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--types\x20<a,b,...>\x20comma-separated\x20type\x20filter\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--changes\x20\x20\x20\x20\x20\x20\x20\x20\x20include\x20changelog\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--blobs\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20also\x20export\x20blob\x20files\x20alongside\x0a\x20\x20\x20\x20import\x20<file>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Streaming\x20NDJSON\x20logical\x20import\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--env\x20<name>\x20\x20\x20\x20\x20\x20target\x20env\x20override\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--types\x20<a,b,...>\x20import\x20only\x20these\x20types\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--drop\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20drop\x20&\x20recreate\x20existing\x20types\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--changes\x20\x20\x20\x20\x20\x20\x20\x20\x20restore\x20changelog\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--blobs\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20also\x20import\x20blob\x20files\x20alongside\x0a\x20\x20\x20\x20reset\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Delete\x20and\x20recreate\x20database\x20(with\x20confirmation)\x0a\x20\x20\x20\x20license\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20List\x20stored\x20licenses,\x20current\x20tier,\x20and\x20usage\x0a\x20\x20\x20\x20license\x20<blob|path>\x20\x20\x20\x20\x20\x20Add\x20a\x20license\x20blob\x20(or\x20read\x20from\x20a\x20.license\x20file)\x0a\x20\x20\x20\x20license\x20<activation>\x20\x20\x20\x20\x20Activate\x20a\x20previously-added\x20license\x20with\x20the\x20vendor\x27s\x20token\x0a\x20\x20\x20\x20license\x20<id>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20details\x20for\x20one\x20stored\x20license\x20(by\x20uuid\x20or\x20prefix)\x0a\x20\x20\x20\x20license\x20remove\x20<id>\x20\x20\x20\x20\x20\x20Remove\x20a\x20stored\x20license\x0a\x0a\x20\x20Environment\x20variables:\x0a\x20\x20\x20\x20OKDB_PORT\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20HTTP\x20port\x0a\x20\x20\x20\x20OKDB_PATH\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Database\x20directory\x0a\x20\x20\x20\x20OKDB_LOG_LEVEL\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Log\x20level\x20(debug|info|warn|error)\x0a\x20\x20\x20\x20OKDB_KEY\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Encryption\x20key\x0a\x20\x20\x20\x20OKDB_NO_REPL=1\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Disable\x20REPL\x0a\x20\x20\x20\x20OKDB_NO_ADMIN=1\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Disable\x20admin\x20UI\x0a\x0a\x20\x20Config\x20file\x20(.kdbconfig)\x20—\x20JSON,\x20all\x20keys\x20optional:\x0a\x20\x20\x20\x20{\x0a\x20\x20\x20\x20\x20\x20\x22port\x22:\x20\x20\x20\x20\x208484,\x0a\x20\x20\x20\x20\x20\x20\x22path\x22:\x20\x20\x20\x20\x20\x22./okdb-data\x22,\x0a\x20\x20\x20\x20\x20\x20\x22key\x22:\x20\x20\x20\x20\x20\x20\x22...\x22,\x0a\x20\x20\x20\x20\x20\x20\x22logLevel\x22:\x20\x22info\x22,\x0a\x20\x20\x20\x20\x20\x20\x22noAdmin\x22:\x20\x20false,\x0a\x20\x20\x20\x20\x20\x20\x22noRepl\x22:\x20\x20\x20false,\x0a\x20\x20\x20\x20\x20\x20\x22auth\x22:\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x22open\x22:\x20false\x0a\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}\x0a\x0a\x20\x20Examples:\x0a\x20\x20\x20\x20okdb\x0a\x20\x20\x20\x20okdb\x20--port\x209000\x20--path\x20./mydb\x0a\x20\x20\x20\x20okdb\x20--no-repl\x20--port\x208080\x0a\x20\x20\x20\x20okdb\x20--open\x0a\x20\x20\x20\x20okdb\x20--open\x20192.168.1.0/24\x0a\x20\x20\x20\x20okdb\x20doctor\x0a\x20\x20\x20\x20okdb\x20backup\x20./my-backup\x0a','[okdb]\x20reset:\x20','toISOString','\x20days\x20—\x20POC/demo\x20only,\x20not\x20node-bound)','.\x20The\x20active\x20license\x20does\x20not\x20enable\x20\x22','dirname','OKDBIndexHasConsumersError','\x20\x20Writes:\x20\x20','writeUInt8','--env','registerType','stopping','[okdb]\x20./okdb-data\x20already\x20exists\x20—\x20skipping','loadEnvFile','key','OKDBInvalidPrimaryKeyError','resetFts','License\x20expired\x20or\x20invalidated','\x0a[okdb]\x20shutting\x20down…\x0a','isFeatureEnabled','Foreign\x20key\x20violation:\x20','writeUInt32BE','writeUInt16BE','Environments','/type/users/item/alice\x0a\x20\x20\x20\x20','.\x20Only\x20primitives,\x20null,\x20Buffers,\x20and\x20arrays\x20are\x20allowed.\x20Got:\x20','2634732EbAovU','377050uFIFzh','License\x20signature\x20invalid:\x20','start\x20','der','Build\x20expects\x20public\x20key\x20fingerprint\x20','write','MALFORMED_TOKEN','\x22\x20(must\x20be\x20debug|info|warn|error)','resolve','EXPIRES','\x20\x20✓\x20','verify','\x27\x20doesn\x27t\x20exist','/admin/index.html','\x0a\x20\x20\x20\x20','events','expiresAt','clearLine','\x20\x20Usage:\x20logs\x20[on|off|debug|info|warn|error]','length','timeMachine','type/users\x20--help','CREATED','isArray','[env]','hasType','engines','waiting','quit','_envs','index:drop','unique:violation','rmSync','toString','Sync','\x20\x20(','UNIQUE_CONSTRAINT','utf8','VERSION_MISMATCH','index:reset','shutdown','line','decodeLicenseBlob:\x20blob\x20too\x20short\x20(','files','\x20to\x20browse\x20the\x20API,\x20','type/users/item/alice','\x20\x20✓\x20OKDB\x20server\x20running','\x20\x20\x20\x20api:\x20\x20\x20http://localhost:','value','open\x20','toLocaleString','other','(empty)','\x20bytes,\x20need\x20>=\x2065)','\x20\x20\x20\x20•\x20a\x20license\x20blob\x20\x20\x20(Crockford\x20base32,\x20~150–250\x20chars)','envs=','324108vqQsDH','\x20\x20(unlimited)','\x20\x20Path\x20access','\x20\x20changes=','ACTIVATION_EXPIRED','~tokens','\x20\x20✓\x20Revoked\x20token\x20','--config','isTTY','fts:drop','started','--grants','types','data','expiry','ROUTES','\x20\x20Usage:','env','--username','--password','--path','importFromFile','system:stopped','handle','exportToFile','time','transaction','\x1b[90m','\x22\x20is\x20used\x20by:\x20','\x20\x20\x20\x20writes:\x20\x20\x20\x20','index:ready','envs','\x22\x20→\x20','license:added','yellow','roles','INDEX_HAS_CONSUMERS','children','keys/public.pem','decodeActivationToken','[okdb]\x20starting…\x0a','[okdb]\x20created\x20./okdb-data','[okdb]\x20error:\x20show\x20requires\x20an\x20id\x20argument','dest','\x20\x20Next\x20step\x20—\x20activate\x20the\x20license:','warn','true','Types','system','\x0a\x20\x20','(none)','ttl:set','Feature\x20not\x20available\x20on\x20free\x20tier:\x20','listening','readFileSync','views','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','assertLimit','child_process','--port','decoded','bus:poke','enabled','info','uuid','once','SIGINT','gray','map','failures','OKDBInvalidIndexKeyError','\x20\x20[okdb]\x20shutting\x20down…','USE','[okdb]\x20export\x20complete','reload','\x0a\x20\x20okdb\x20doctor\x0a','count','\x20<path>\x20[json-body]','search','[body]','\x20\x20✓\x20Removed\x20license\x20','\x20\x20\x20\x20envs:\x20\x20\x20\x20\x20\x20','stringify','\x0a\x0a\x20\x20','\x20\x20Common\x20causes:','1094929aFreLq','Embeddings','--help','title','charCodeAt','grants','push','system:drain','License\x20already\x20stored','padEnd','\x20\x20(need\x20≥\x2018)','ENVS','\x20\x20Flags','_ensureTokensType','\x20\x20╔═══════════════════════════╗','\x20\x20records=','\x20(expires\x20','access:\x20','\x20\x20(licenses\x20must\x20be\x20signed\x20by\x20the\x20matching\x20private\x20key)','(no\x20types)','filter','LICENSE_HASH_MISMATCH','LOGS','server','typesPerEnv','ready','system:poke','\x20\x20✓\x20joined\x20and\x20reconciliation\x20initiated','decodeActivationToken:\x20expected\x2077\x20bytes,\x20got\x20','\x0a[okdb]\x20fatal\x20error:','/types\x0a\x20\x20\x20\x20','access','verifyActivation','syncPeers','\x20\x20\x20\x20limits:\x20\x20\x20\x20','license:invalid','PERMISSIONS','readUInt16BE','item:create','recheck','VERB','Schema\x20validation\x20failed\x20for\x20','[okdb]\x20started\x20in\x20','Events','license','\x0a\x20\x20Raw\x20token\x20(shown\x20once,\x20save\x20it\x20now):\x0a','activation','NOT_FOUND','token','already\x20in\x20use','PUB_FINGERPRINT','\x20\x20\x20\x20id:\x20\x20\x20\x20','use','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20open\x20admin\x20UI\x20in\x20browser\x0a\x20\x20','randomUUID','fill','maxWrites','--version','[okdb]\x20error:\x20--address\x20is\x20required\x20for\x20join\x20(this\x20node\x27s\x20reachable\x20sync\x20address).\x0a','.\x20Primary\x20keys\x20must\x20be\x20string\x20or\x20number.\x20Got:\x20','\x20\x20\x20\x20\x20\x20','[okdb]\x20.kdbconfig\x20already\x20exists\x20—\x20skipping','INVALID_PRIMARY_KEY','No\x20tokens.','features','\x20\x20\x20\x20','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20GET\x20(implicit)\x0a\x20\x20','result','body:\x20','ceil','pause','hasOwnProperty','\x20day(s).','_active','item:update','free\x20tier','hidden','\x20\x20\x20\x20addedAt:\x20\x20\x20','1845590yLooTV','isInteger','stopped','LICENSE_LIMIT_EXCEEDED','licenseType','properties','path','darwin','cause','prototype','fts','index','bus:drain','argv','fieldPath','\x22\x20matches\x20','captureStackTrace','--env\x20<name>','getSecurityNotices','\x20\x20\x20\x20\x20\x20\x20','225246QPzzhs','--name','history','toLowerCase','pending','close','[okdb]\x20created\x20.kdbconfig','[okdb]\x20error:\x20remove\x20requires\x20an\x20id\x20argument','--no-admin','test','activateLicense','hex','\x20which\x20does\x20not\x20exist','port','types:','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20→\x20GET\x20/api/env/staging/info\x0a\x0a','Invalid\x20index\x20key\x20type\x20for\x20\x27','changes','\x20\x20║','/type/users/query\x0a\x20\x20\x20\x20','rawBuf','setSchema','\x20deleted','dropIndex','attach','createdAt','txn:rollback','[okdb]\x20backup\x20complete','config\x20file\x20invalid:\x20','ENV','ftsName','\x27\x20on\x20type\x20\x27','\x20\x20\x20\x20licensee:\x20\x20','targetType','type/users','\x20\x20\x20\x20\x20\x20\x20\x20\x20browse\x20API\x20routes,\x20grouped\x20by\x20area\x0a\x20\x20','[okdb]\x20error:\x20no\x20token\x20with\x20id\x20\x22','[okdb]\x20error:\x20ambiguous\x20prefix\x20\x22','method','created','__esModule','\x20writes\x20(','queue/','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20override\x20active\x20environment\x20for\x20this\x20call\x0a\x20\x20','drop','\x20\x20Tier:\x20\x20\x20\x20','Admin','dropFts','idx:','Open\x20licenses\x20cannot\x20exceed\x206\x20months\x20duration\x20(this\x20license\x20expires\x20','entries','Index\x20\x27','startsWith','decodeLicenseBlob','typeSubDbs','reason','\x20opening\x20','debug','\x20tokens:','repeat','\x20\x20\x20\x20-\x20The\x20activation\x20token\x20was\x20issued\x20for\x20a\x20different\x20node\x20—\x20share\x20this\x20node\x27s\x20PIN\x20with\x20the\x20vendor.','\x20\x20→\x20\x20','wrong_node','okdb','bold','forEach','OKDBTypeNotRegisteredError','\x20\x20[','keys','⚠\x20INTERNAL\x20LICENSE\x20ACTIVE\x20—\x20all\x20features\x20and\x20limits\x20are\x20unlocked.\x20For\x20vendor/internal\x20use\x20only.','pin','includes','License\x20signature\x20invalid\x20—\x20this\x20license\x20was\x20not\x20signed\x20by\x20the\x20key\x20paired\x20with\x20this\x20build.\x20','\x20\x20\x20\x20\x20http://localhost:','migrate','schema:drop','issuedAt','/api/env/','~licenses','EXIT','max','ref:violation_resolved','has','replace','writes=','password','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20→\x20GET\x20/api/env/','create','txn:start','transport:\x20','indexToDb','stderr','\x20\x20\x20\x20\x20\x20\x20POST\x20(body\x20implies\x20POST)\x0a\x20\x20','./okdb-data','\x20\x20\x20\x20graceful\x20shutdown\x0a','get','noAdmin','join','OKDBVersionMismatchError','help','ref:violation','\x20\x20score:','\x27,\x20cannot\x20map\x20to\x20\x27','SCHEMA_VALIDATION_FAILED','.kdb_history','status','\x1b[32m','[okdb]\x20loaded\x20config:\x20','endsWith','equals','dropSchema','Invalid\x20primary\x20key\x20type:\x20','operation','param','\x1b[35m','licensed','/api/','SIG_INVALID','Queue','sizeAfter','\x0d[okdb]\x20','/\x20quit\x20/\x20Ctrl+C','\x20\x20\x20\x20features:\x20\x20',',\x20got\x20','[okdb]\x20error:\x20','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20show\x20API\x20docs\x20for\x20a\x20path\x0a\x0a\x20\x20','--types','licensee','scrypt','\x1b[31m','\x20\x20http://localhost:','--address','GET','\x1b[2m','../','index:progress','_license','--log-level','DELETE','byteLength','\x20\x20\x20\x20•\x20a\x20license\x20id\x20\x20\x20\x20\x20(uuid)','env:opened','Type\x20\x27','./okdb-export.ndjson','slice','HELP','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20→\x20GET\x20/api/envs\x0a\x20\x20\x20\x20','isFile','stdin'];_0x3cd6=function(){return _0x525ec6;};return _0x3cd6();}var okdb$1={},version=_0x19ca31(0x2ba),require$$2={'version':version},okdbAuthTokens,hasRequiredOkdbAuthTokens;function requireOkdbAuthTokens(){if(hasRequiredOkdbAuthTokens)return okdbAuthTokens;hasRequiredOkdbAuthTokens=0x1;const _0x23e73c=require$$0;function _0xd5089c(_0xd65d4d,_0x59f3f3){const _0x129104=_0x30ec;return _0x23e73c['createHmac'](_0x129104(0x7c),_0x59f3f3)['update'](_0xd65d4d)[_0x129104(0xcd)](_0x129104(0x328));}function _0x1c1260(_0x2e3519,_0x2f8925){const _0x27b1aa=_0x30ec;if(typeof _0x2e3519!==_0x27b1aa(0x289)||typeof _0x2f8925!=='string')return![];if(Buffer[_0x27b1aa(0x27c)](_0x2e3519)!==Buffer[_0x27b1aa(0x27c)](_0x2f8925))return![];return _0x23e73c[_0x27b1aa(0x2e7)](Buffer[_0x27b1aa(0xa9)](_0x2e3519),Buffer[_0x27b1aa(0xa9)](_0x2f8925));}function _0x47a509(_0x5360a1){const _0x3a78e4=_0x30ec;if(!_0x5360a1?.[_0x3a78e4(0x225)]('Bearer\x20'))return null;return _0x5360a1[_0x3a78e4(0x281)](0x7);}function _0x2637e3(_0x223ec9=0x20){const _0x358276=_0x30ec;return _0x23e73c[_0x358276(0xd0)](_0x223ec9)[_0x358276(0x123)](_0x358276(0x328));}function _0x3cd21c(_0x4a7c9f){const _0x58bb85=_0x30ec;return _0x23e73c[_0x58bb85(0x34a)](_0x58bb85(0x7c))[_0x58bb85(0x2a6)](_0x4a7c9f)[_0x58bb85(0xcd)]('hex');}function _0x41a196(_0x4c3940,_0x6a4138,_0x408d0e=0x36ee80){const _0x5f1e4d=_0x30ec;if(!_0x6a4138)throw new Error('Token\x20secret\x20not\x20configured');const _0x5973be=Date[_0x5f1e4d(0x92)](),_0x15d153=Buffer[_0x5f1e4d(0xa9)](JSON['stringify']({'iat':_0x5973be,'exp':_0x5973be+_0x408d0e,'sub':_0x4c3940?.['id']??_0x4c3940?.[_0x5f1e4d(0x2ae)]??null,'username':_0x4c3940?.['username']??_0x4c3940?.[_0x5f1e4d(0x362)]??null,'roles':Array['isArray'](_0x4c3940?.[_0x5f1e4d(0x15d)])?_0x4c3940[_0x5f1e4d(0x15d)]:[]}))['toString']('base64url'),_0xbf7fd3=_0xd5089c(_0x15d153,_0x6a4138);return _0x15d153+'.'+_0xbf7fd3;}function _0x4fd069(_0x110769,_0x136bcc){const _0x57aabe=_0x30ec;if(!_0x136bcc||typeof _0x110769!=='string')return null;const [_0x29f695,_0x1a1b30]=_0x110769[_0x57aabe(0xad)]('.');if(!_0x29f695||!_0x1a1b30)return null;const _0x5c4b89=_0xd5089c(_0x29f695,_0x136bcc);if(!_0x1c1260(_0x1a1b30,_0x5c4b89))return null;try{const _0x2aa637=JSON[_0x57aabe(0xc8)](Buffer['from'](_0x29f695,_0x57aabe(0x328))[_0x57aabe(0x123)]()),_0x168328=0x7530;if(Date['now']()>Number(_0x2aa637?.[_0x57aabe(0x2a2)]??0x0)+_0x168328)return null;return _0x2aa637;}catch{return null;}}async function _0x3a90ca(_0x2465d1){return new Promise((_0x503d92,_0x4f19f6)=>{const _0x32af22=_0x30ec,_0x46f0d9=_0x23e73c[_0x32af22(0xd0)](0x10);_0x23e73c[_0x32af22(0x271)](_0x2465d1,_0x46f0d9,0x40,(_0x5f2405,_0x3f9f45)=>{const _0x13ef05=_0x32af22;if(_0x5f2405)_0x4f19f6(_0x5f2405);_0x503d92(_0x46f0d9[_0x13ef05(0x123)]('hex')+':'+_0x3f9f45[_0x13ef05(0x123)](_0x13ef05(0x1fc)));});});}async function _0x1fba65(_0x8c638a,_0x12be93){const _0x453fd7=_0x30ec,[_0x3d515c,_0x13e832]=_0x12be93[_0x453fd7(0xad)](':');if(!_0x3d515c||!_0x13e832)return![];const _0x1f8ace=Buffer['from'](_0x3d515c,_0x453fd7(0x1fc));return new Promise((_0x210418,_0x1c420f)=>{const _0x3223a5=_0x453fd7;_0x23e73c[_0x3223a5(0x271)](_0x8c638a,_0x1f8ace,0x40,(_0x51e837,_0x2ae0d0)=>{const _0x17dc87=_0x3223a5;if(_0x51e837)_0x1c420f(_0x51e837);_0x210418(_0x23e73c[_0x17dc87(0x2e7)](_0x2ae0d0,Buffer[_0x17dc87(0xa9)](_0x13e832,_0x17dc87(0x1fc))));});});}return okdbAuthTokens={'hmac':_0xd5089c,'timingSafeEqual':_0x1c1260,'parseBearer':_0x47a509,'randomToken':_0x2637e3,'hashToken':_0x3cd21c,'issueToken':_0x41a196,'authenticateToken':_0x4fd069,'hashPassword':_0x3a90ca,'verifyPassword':_0x1fba65},okdbAuthTokens;}var okdbLicenseCodec,hasRequiredOkdbLicenseCodec;function requireOkdbLicenseCodec(){const _0x141fff=_0x19ca31;if(hasRequiredOkdbLicenseCodec)return okdbLicenseCodec;hasRequiredOkdbLicenseCodec=0x1;const _0x23991f=require$$0$1,_0x1a30c5='0123456789ABCDEFGHJKMNPQRSTVWXYZ',_0x306ef2=new Uint8Array(0x100)[_0x141fff(0x1c6)](0xff);for(let _0x117e1d=0x0;_0x117e1d<_0x1a30c5[_0x141fff(0x115)];_0x117e1d++){_0x306ef2[_0x1a30c5[_0x141fff(0x193)](_0x117e1d)]=_0x117e1d,_0x306ef2[_0x1a30c5[_0x141fff(0x193)](_0x117e1d)+0x20]=_0x117e1d;}_0x306ef2['O'[_0x141fff(0x193)](0x0)]=0x0,_0x306ef2['o'[_0x141fff(0x193)](0x0)]=0x0,_0x306ef2['I'[_0x141fff(0x193)](0x0)]=0x1,_0x306ef2['i'[_0x141fff(0x193)](0x0)]=0x1,_0x306ef2['L'['charCodeAt'](0x0)]=0x1,_0x306ef2['l'[_0x141fff(0x193)](0x0)]=0x1;function _0x4af465(_0x2ad52c){let _0x5d3a49=0x0,_0x4578dd=0x0,_0x538691='';for(let _0x3a3574=0x0;_0x3a3574<_0x2ad52c['length'];_0x3a3574++){_0x4578dd=_0x4578dd<<0x8|_0x2ad52c[_0x3a3574],_0x5d3a49+=0x8;while(_0x5d3a49>=0x5){_0x5d3a49-=0x5,_0x538691+=_0x1a30c5[_0x4578dd>>>_0x5d3a49&0x1f];}}return _0x5d3a49>0x0&&(_0x538691+=_0x1a30c5[_0x4578dd<<0x5-_0x5d3a49&0x1f]),_0x538691;}function _0x208fa7(_0x410532){const _0x3a1baf=_0x141fff;_0x410532=_0x410532[_0x3a1baf(0x244)](/-/g,'')[_0x3a1baf(0x8c)]();let _0x342e59=0x0,_0x387544=0x0;const _0x5216f3=[];for(let _0x5d644b=0x0;_0x5d644b<_0x410532[_0x3a1baf(0x115)];_0x5d644b++){const _0x56ae5e=_0x306ef2[_0x410532[_0x3a1baf(0x193)](_0x5d644b)];if(_0x56ae5e===0xff)continue;_0x387544=_0x387544<<0x5|_0x56ae5e,_0x342e59+=0x5,_0x342e59>=0x8&&(_0x342e59-=0x8,_0x5216f3['push'](_0x387544>>>_0x342e59&0xff));}return Buffer[_0x3a1baf(0xa9)](_0x5216f3);}const _0x3aa404=[_0x141fff(0x2f1),'embeddings',_0x141fff(0x11c),_0x141fff(0x1e7),'timeMachine',_0x141fff(0x171),_0x141fff(0x2d6),_0x141fff(0x12d)],_0x28a5f5=0x0,_0x216d55=0x1,_0x445094=0x2,_0x5a76a6=0x6*0x1e*0x18*0x3c*0x3c*0x3e8;function _0x5f5eac({issuedAt:_0x489f4c,expiresAt:_0x526410,licensee:licensee='',features:features={},limits:limits={},licenseType:licenseType=_0x28a5f5}){const _0x477740=_0x141fff,_0x2bbc63=Buffer['from'](licensee,_0x477740(0x127))['slice'](0x0,0x40),_0x38a982=0x1+0x1+0x4+0x4+0x1+_0x2bbc63[_0x477740(0x115)]+0x2+0x10,_0x462d62=Buffer[_0x477740(0x29d)](_0x38a982);let _0x50c440=0x0;_0x462d62[_0x477740(0xef)](0x1,_0x50c440++),_0x462d62['writeUInt8'](licenseType,_0x50c440++),_0x462d62[_0x477740(0xfc)](Math[_0x477740(0x2a8)](_0x489f4c/0x3e8),_0x50c440),_0x50c440+=0x4,_0x462d62[_0x477740(0xfc)](Math[_0x477740(0x2a8)](_0x526410/0x3e8),_0x50c440),_0x50c440+=0x4,_0x462d62[_0x477740(0xef)](_0x2bbc63['length'],_0x50c440++),_0x2bbc63['copy'](_0x462d62,_0x50c440),_0x50c440+=_0x2bbc63[_0x477740(0x115)];let _0x8c0598=0x0;for(let _0x190177=0x0;_0x190177<_0x3aa404[_0x477740(0x115)];_0x190177++){if(features[_0x3aa404[_0x190177]])_0x8c0598|=0x1<<_0x190177;}_0x462d62[_0x477740(0xfd)](_0x8c0598,_0x50c440),_0x50c440+=0x2;const _0x6426fa=[_0x477740(0x159),_0x477740(0x1a7),_0x477740(0x1b0),'maxWrites'];for(const _0x59a6d3 of _0x6426fa){_0x462d62['writeUInt32BE'](limits[_0x59a6d3]||0x0,_0x50c440),_0x50c440+=0x4;}return _0x462d62;}function _0xde26f4(_0x4c8ce3){const _0x12feb7=_0x141fff;let _0x38b57a=0x0;const _0x1f0930=_0x4c8ce3['readUInt8'](_0x38b57a++),_0x143b31=_0x4c8ce3[_0x12feb7(0x347)](_0x38b57a++),_0x296cde=_0x4c8ce3[_0x12feb7(0xc7)](_0x38b57a);_0x38b57a+=0x4;const _0x33e909=_0x4c8ce3['readUInt32BE'](_0x38b57a);_0x38b57a+=0x4;const _0x458efe=_0x4c8ce3[_0x12feb7(0x347)](_0x38b57a++),_0x103389=_0x4c8ce3[_0x12feb7(0x281)](_0x38b57a,_0x38b57a+_0x458efe)[_0x12feb7(0x123)](_0x12feb7(0x127));_0x38b57a+=_0x458efe;const _0x303be1=_0x4c8ce3[_0x12feb7(0x1b4)](_0x38b57a);_0x38b57a+=0x2;const _0x2ca456={};for(let _0x817cc9=0x0;_0x817cc9<_0x3aa404[_0x12feb7(0x115)];_0x817cc9++){_0x2ca456[_0x3aa404[_0x817cc9]]=Boolean(_0x303be1&0x1<<_0x817cc9);}const _0x48bd1b=['envs',_0x12feb7(0x1a7),'syncPeers',_0x12feb7(0x1c7)],_0x5642b1={};for(const _0x8062dd of _0x48bd1b){const _0x4469fb=_0x4c8ce3[_0x12feb7(0xc7)](_0x38b57a);_0x38b57a+=0x4,_0x5642b1[_0x8062dd]=_0x4469fb===0x0?null:_0x4469fb;}return{'v':_0x1f0930,'licenseType':_0x143b31,'issuedAt':_0x296cde*0x3e8,'expiresAt':_0x33e909*0x3e8,'licensee':_0x103389,'features':_0x2ca456,'limits':_0x5642b1};}function _0x799800(_0x13a954,_0x1774ed){const _0x3240af=_0x141fff,_0x2b261a=Buffer[_0x3240af(0x84)]([_0x13a954,_0x1774ed]),_0x580038=_0x4af465(_0x2b261a),_0x555db4=[];for(let _0x6b3c76=0x0;_0x6b3c76<_0x580038['length'];_0x6b3c76+=0x8){_0x555db4['push'](_0x580038[_0x3240af(0x281)](_0x6b3c76,_0x6b3c76+0x8));}return _0x555db4['join']('-');}function _0x3e03f1(_0x4b10f1){const _0x585af7=_0x141fff;if(typeof _0x4b10f1!==_0x585af7(0x289))throw new Error(_0x585af7(0xa5));const _0x3b2c6a=_0x208fa7(_0x4b10f1[_0x585af7(0x244)](/-/g,''));if(_0x3b2c6a['length']<0x41)throw new Error(_0x585af7(0x12c)+_0x3b2c6a[_0x585af7(0x115)]+_0x585af7(0x137));const _0x2b1f6f=_0x3b2c6a[_0x585af7(0x281)](0x0,_0x3b2c6a[_0x585af7(0x115)]-0x40),_0x5477f7=_0x3b2c6a['slice'](_0x3b2c6a[_0x585af7(0x115)]-0x40);let _0x16c106;try{_0x16c106=_0xde26f4(_0x2b1f6f);}catch(_0x31b08b){throw new Error(_0x585af7(0x31b)+_0x31b08b[_0x585af7(0x9d)]);}return{'rawBuf':_0x3b2c6a,'payload':_0x2b1f6f,'sig':_0x5477f7,'decoded':_0x16c106};}function _0x1b7b32(_0x1eafcd){const _0x189722=_0x141fff;return _0x23991f[_0x189722(0x34a)](_0x189722(0x7c))[_0x189722(0x2a6)](_0x1eafcd)['digest']()[_0x189722(0x281)](0x0,0x8);}function _0x27ef0f(_0x19c99d,_0x47b2bf,_0x5ea083){const _0x2c3f52=_0x141fff,_0x5d69b3=_0x2c3f52(0x2f9)+_0x5ea083,_0x119d91=Buffer[_0x2c3f52(0x84)]([Buffer[_0x2c3f52(0xa9)](_0x19c99d,_0x2c3f52(0x127)),_0x47b2bf]),_0x506ba8=_0x23991f[_0x2c3f52(0x351)](_0x2c3f52(0x7c),_0x5d69b3)['update'](_0x119d91)[_0x2c3f52(0xcd)](),_0x161a27=_0x4af465(_0x506ba8['slice'](0x0,0x5));return{'pin':_0x161a27,'pinHmac':_0x506ba8};}function _0x554b03(_0x84cca0,_0x2222a6,_0x4e1287){const _0x19c1fd=_0x141fff,_0x17deef=Buffer[_0x19c1fd(0x29d)](0x4d);let _0xb32e0a=0x0;_0x17deef[_0x19c1fd(0xef)](0x1,_0xb32e0a++),_0x84cca0['copy'](_0x17deef,_0xb32e0a),_0xb32e0a+=0x8,_0x17deef['writeUInt32BE'](_0x2222a6,_0xb32e0a),_0xb32e0a+=0x4,_0x4e1287['copy'](_0x17deef,_0xb32e0a);const _0x9a9aab=_0x4af465(_0x17deef),_0x51ac44=[];for(let _0x313d4a=0x0;_0x313d4a<_0x9a9aab[_0x19c1fd(0x115)];_0x313d4a+=0x6){_0x51ac44[_0x19c1fd(0x195)](_0x9a9aab['slice'](_0x313d4a,_0x313d4a+0x6));}return _0x51ac44['join']('-');}function _0x36c847(_0x2e4f69){const _0x27db53=_0x141fff;if(typeof _0x2e4f69!=='string')throw new Error('decodeActivationToken:\x20input\x20must\x20be\x20a\x20string');const _0x586315=_0x208fa7(_0x2e4f69[_0x27db53(0x244)](/-/g,''));if(_0x586315[_0x27db53(0x115)]!==0x4d)throw new Error(_0x27db53(0x1ab)+_0x586315[_0x27db53(0x115)]);let _0x50c7c1=0x0;const _0x375d1d=_0x586315['readUInt8'](_0x50c7c1++),_0x66d67a=_0x586315[_0x27db53(0x281)](_0x50c7c1,_0x50c7c1+0x8);_0x50c7c1+=0x8;const _0x22d2c0=_0x586315[_0x27db53(0xc7)](_0x50c7c1);_0x50c7c1+=0x4;const _0x2e9e7a=_0x586315[_0x27db53(0x281)](_0x50c7c1);return{'v':_0x375d1d,'licenseHash':_0x66d67a,'expiry':_0x22d2c0,'sig':_0x2e9e7a};}function _0x16365a({tokenString:_0x4887be,nodeId:_0x1f32c0,rawBlobBuf:_0x109638,pubKeyPem:_0xe3d284,pubFingerprint:_0x222b9e}){const _0x2b349b=_0x141fff;let _0x5075c4;try{_0x5075c4=_0x36c847(_0x4887be);}catch(_0x1434c2){return{'valid':![],'reason':_0x2b349b(0x108)};}const _0x514bed=_0x1b7b32(_0x109638);if(!_0x514bed[_0x2b349b(0x25e)](_0x5075c4[_0x2b349b(0x29b)]))return{'valid':![],'reason':_0x2b349b(0x1a4)};const {pinHmac:_0x5b6103}=_0x27ef0f(_0x1f32c0,_0x514bed,_0x222b9e),_0x1338fc=Buffer['allocUnsafe'](0x4);_0x1338fc['writeUInt32BE'](_0x5075c4[_0x2b349b(0x148)],0x0);const _0x1fa00a=Buffer[_0x2b349b(0x84)]([Buffer[_0x2b349b(0xa9)]([_0x5075c4['v']]),_0x5b6103['slice'](0x0,0x5),_0x5075c4[_0x2b349b(0x29b)],_0x1338fc]);try{const _0x43716a=_0x23991f['verify'](null,_0x1fa00a,_0xe3d284,_0x5075c4[_0x2b349b(0x298)]);if(!_0x43716a)return{'valid':![],'reason':'SIG_INVALID'};}catch(_0x4b15b5){return{'valid':![],'reason':_0x2b349b(0x266)};}if(_0x5075c4['expiry']<Date[_0x2b349b(0x92)]()/0x3e8)return{'valid':![],'reason':_0x2b349b(0x13e)};return{'valid':!![],'reason':'ok'};}function _0x37f5e4(_0xa9054f){const _0x4e0fec=_0x141fff;if(typeof _0xa9054f!==_0x4e0fec(0x289))return _0x4e0fec(0xe2);const _0x317606=_0xa9054f[_0x4e0fec(0xe3)]();if(_0x317606['startsWith']('/')||_0x317606[_0x4e0fec(0x225)]('./')||_0x317606[_0x4e0fec(0x225)](_0x4e0fec(0x277))||/^[A-Za-z]:[\\/]/[_0x4e0fec(0x1fa)](_0x317606))return'path';if(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i[_0x4e0fec(0x1fa)](_0x317606))return _0x4e0fec(0x17a);const _0x5873ef=_0x317606[_0x4e0fec(0x244)](/[\s-]+/g,'')[_0x4e0fec(0x115)];if(_0x5873ef===0x7c)return'activation';if(_0x5873ef>=0x95&&_0x5873ef<=0xfc)return _0x4e0fec(0x7f);return _0x4e0fec(0xe2);}return okdbLicenseCodec={'toBase32':_0x4af465,'fromBase32':_0x208fa7,'encodeLicensePayload':_0x5f5eac,'decodeLicensePayload':_0xde26f4,'encodeLicenseBlob':_0x799800,'decodeLicenseBlob':_0x3e03f1,'licenseHash':_0x1b7b32,'derivePin':_0x27ef0f,'encodeActivationToken':_0x554b03,'decodeActivationToken':_0x36c847,'verifyActivation':_0x16365a,'detectInputType':_0x37f5e4,'FEATURE_NAMES':_0x3aa404,'LICENSE_TYPE_STANDARD':_0x28a5f5,'LICENSE_TYPE_OPEN':_0x216d55,'LICENSE_TYPE_INTERNAL':_0x445094,'OPEN_LICENSE_MAX_DURATION_MS':_0x5a76a6},okdbLicenseCodec;}var okdbError,hasRequiredOkdbError;function requireOkdbError(){if(hasRequiredOkdbError)return okdbError;hasRequiredOkdbError=0x1;class _0x39fd8e extends Error{constructor(_0x17b3e5,_0x53e70e,_0x17b478={}){const _0x567210=_0x30ec;super(_0x17b3e5),this[_0x567210(0x362)]='OKDBError',this['code']=_0x53e70e,this[_0x567210(0x2ad)]=_0x17b478,_0x17b478[_0x567210(0x1e5)]&&(this['cause']=_0x17b478[_0x567210(0x1e5)]),Error[_0x567210(0x1ed)](this,this[_0x567210(0x9e)]);}}class _0x18259e extends _0x39fd8e{constructor(_0xea6e94,_0x10acd7,_0x3e19a3,_0x4ef640){const _0x1b7cfa=_0x30ec;super('Version\x20mismatch\x20for\x20'+_0xea6e94+'@'+_0x10acd7+_0x1b7cfa(0x2db)+_0x3e19a3+_0x1b7cfa(0x26c)+_0x4ef640,_0x1b7cfa(0x128),{'type':_0xea6e94,'key':_0x10acd7,'expectedVersion':_0x3e19a3,'actualVersion':_0x4ef640}),this[_0x1b7cfa(0x362)]=_0x1b7cfa(0x253);}}class _0x248974 extends _0x39fd8e{constructor(_0x2a2d5b,_0x50e069){const _0x54998e=_0x30ec;super(_0x2a2d5b+'@'+_0x50e069+'\x20does\x20not\x20exist',_0x54998e(0x1be),{'type':_0x2a2d5b,'key':_0x50e069}),this[_0x54998e(0x362)]=_0x54998e(0x318);}}class _0x110faf extends _0x39fd8e{constructor(_0x37e34d,_0x5af3b6){const _0x29388=_0x30ec;super(_0x37e34d+'@'+_0x5af3b6+'\x20already\x20exists',_0x29388(0x293),{'type':_0x37e34d,'key':_0x5af3b6}),this['name']='OKDBAlreadyExistsError';}}class _0xcd0228 extends _0x39fd8e{constructor(_0x207e46,_0x12a9ec){const _0x430195=_0x30ec,_0x54730b=typeof _0x12a9ec;super(_0x430195(0x201)+_0x207e46+_0x430195(0x2b2)+_0x54730b+_0x430195(0x100)+_0x12a9ec,_0x430195(0xaf),{'index':_0x207e46,'key':_0x12a9ec,'keyType':_0x54730b}),this[_0x430195(0x362)]=_0x430195(0x180);}}class _0x4e46c extends _0x39fd8e{constructor(_0x1e3315){const _0x279de5=_0x30ec,_0x4aefb2=typeof _0x1e3315;super(_0x279de5(0x260)+_0x4aefb2+_0x279de5(0x1ca)+_0x1e3315,_0x279de5(0x1cd),{'key':_0x1e3315,'keyType':_0x4aefb2}),this[_0x279de5(0x362)]=_0x279de5(0xf6);}}class _0x2ecc0b extends _0x39fd8e{constructor(_0x354cfc){const _0x6c805e=_0x30ec;super(_0x6c805e(0x27f)+_0x354cfc+'\x27\x20doesn\x27t\x20exist',_0x6c805e(0x308),{'type':_0x354cfc}),this['name']=_0x6c805e(0x233);}}class _0x10e6c0 extends _0x39fd8e{constructor(_0x949971){const _0x328d7d=_0x30ec;super(_0x328d7d(0x27f)+_0x949971+_0x328d7d(0x2f2),_0x328d7d(0x28d),{'type':_0x949971}),this['name']='OKDBTypeAlreadyRegisteredError';}}class _0x362e0a extends _0x39fd8e{constructor(_0x4038bb,_0x1cf497){const _0x1f2adf=_0x30ec;super(_0x1f2adf(0x224)+_0x1cf497+_0x1f2adf(0x210)+_0x4038bb+_0x1f2adf(0x10e),_0x1f2adf(0x36e),{'type':_0x4038bb,'index':_0x1cf497}),this[_0x1f2adf(0x362)]='OKDBIndexNotRegisteredError';}}class _0x36ee06 extends _0x39fd8e{constructor(_0x4353a9,_0x4b33a5){const _0x357093=_0x30ec;super(_0x357093(0x224)+_0x4b33a5+_0x357093(0x210)+_0x4353a9+_0x357093(0xc0),'INDEX_ALREADY_REGISTERED',{'type':_0x4353a9,'index':_0x4b33a5}),this[_0x357093(0x362)]=_0x357093(0xdd);}}class _0x439d7f extends _0x39fd8e{constructor(_0x49b4cb,_0x2d077d={}){const _0x28eae8=_0x30ec;super(_0x49b4cb,'INVALID_VALUE',_0x2d077d),this[_0x28eae8(0x362)]='OKDBInvalidValueError';}}class _0x236f39 extends _0x39fd8e{constructor(_0x138061,_0x176d66,_0x4ebf99,_0x4518ea,_0x5691dd){const _0x261045=_0x30ec;super('Unique\x20constraint\x20violated\x20on\x20'+_0x138061+'@'+_0x176d66+':\x20key\x20['+_0x4ebf99+']\x20already\x20maps\x20to\x20\x27'+_0x4518ea+_0x261045(0x257)+_0x5691dd+'\x27',_0x261045(0x126),{'type':_0x138061,'index':_0x176d66,'indexKey':_0x4ebf99,'existingKey':_0x4518ea,'conflictingKey':_0x5691dd}),this[_0x261045(0x362)]=_0x261045(0x36c);}}class _0x16f6a1 extends _0x39fd8e{constructor(_0x5a3215,_0x27317f,_0x1c63c2){const _0x441a3e=_0x30ec;super(_0x441a3e(0x1b8)+_0x5a3215+'@'+_0x27317f,_0x441a3e(0x258),{'type':_0x5a3215,'key':_0x27317f,'errors':_0x1c63c2}),this[_0x441a3e(0x362)]='OKDBSchemaValidationError',this['type']=_0x5a3215,this[_0x441a3e(0xf5)]=_0x27317f,this[_0x441a3e(0xdf)]=_0x1c63c2;}}class _0x32249d extends _0x39fd8e{constructor(_0x4b25d5,_0x3d62f){const _0x58de9e=_0x30ec;super(_0x58de9e(0xcc)+_0x4b25d5+':\x20'+_0x3d62f['length']+_0x58de9e(0x2e5),_0x58de9e(0x310),{'type':_0x4b25d5,'failures':_0x3d62f}),this['name']='OKDBSchemaCollectionError',this[_0x58de9e(0xe0)]=_0x4b25d5,this[_0x58de9e(0x17f)]=_0x3d62f;}}class _0x53977f extends _0x39fd8e{constructor(_0x5f07b9,_0x22555b,_0x39e23d,_0x46f597,_0x50e709){const _0x23378d=_0x30ec;super(_0x23378d(0xfb)+_0x5f07b9+'@'+_0x22555b+'.'+_0x39e23d+_0x23378d(0x2bd)+_0x46f597+'@'+_0x50e709+_0x23378d(0x1fd),_0x23378d(0x32c),{'sourceType':_0x5f07b9,'sourceKey':_0x22555b,'fieldPath':_0x39e23d,'targetType':_0x46f597,'targetKey':_0x50e709}),this['name']='OKDBForeignKeyError',this[_0x23378d(0x32a)]=_0x5f07b9,this[_0x23378d(0xa4)]=_0x22555b,this[_0x23378d(0x1eb)]=_0x39e23d,this[_0x23378d(0x212)]=_0x46f597,this[_0x23378d(0x6e)]=_0x50e709;}}class _0x434e83 extends _0x39fd8e{constructor(_0x24be48,_0x4598c6,_0x1b55be){const _0x45016c=_0x30ec;super('Cannot\x20delete\x20'+_0x24be48+'@'+_0x4598c6+':\x20'+_0x1b55be[_0x45016c(0x115)]+'\x20document(s)\x20reference\x20it\x20with\x20onDelete:restrict','FOREIGN_KEY_DELETE_RESTRICTED',{'targetType':_0x24be48,'targetKey':_0x4598c6,'references':_0x1b55be}),this[_0x45016c(0x362)]='OKDBForeignKeyDeleteError',this[_0x45016c(0x212)]=_0x24be48,this[_0x45016c(0x6e)]=_0x4598c6,this['references']=_0x1b55be;}}class _0x5d63eb extends _0x39fd8e{constructor(_0x2ad95,_0x2a2d2d,_0x38f4fb){const _0x346b2a=_0x30ec;super('Index\x20\x22'+_0x2a2d2d+_0x346b2a(0x358)+_0x2ad95+_0x346b2a(0x156)+_0x38f4fb[_0x346b2a(0x17e)](_0x2c7ebe=>_0x2c7ebe['kind']+':'+_0x2c7ebe[_0x346b2a(0x362)])['join'](',\x20'),_0x346b2a(0x15e),{'type':_0x2ad95,'index':_0x2a2d2d,'usedBy':_0x38f4fb}),this['name']=_0x346b2a(0xed);}}return okdbError={'OKDBError':_0x39fd8e,'OKDBVersionMismatchError':_0x18259e,'OKDBNotFoundError':_0x248974,'OKDBAlreadyExistsError':_0x110faf,'OKDBInvalidIndexKeyError':_0xcd0228,'OKDBInvalidPrimaryKeyError':_0x4e46c,'OKDBTypeNotRegisteredError':_0x2ecc0b,'OKDBTypeAlreadyRegisteredError':_0x10e6c0,'OKDBIndexNotRegisteredError':_0x362e0a,'OKDBIndexAlreadyRegisteredError':_0x36ee06,'OKDBInvalidValueError':_0x439d7f,'OKDBUniqueConstraintError':_0x236f39,'OKDBSchemaValidationError':_0x16f6a1,'OKDBSchemaCollectionError':_0x32249d,'OKDBForeignKeyError':_0x53977f,'OKDBForeignKeyDeleteError':_0x434e83,'OKDBIndexHasConsumersError':_0x5d63eb},okdbError;}var okdbEnums,hasRequiredOkdbEnums;function requireOkdbEnums(){const _0x2fac44=_0x19ca31;if(hasRequiredOkdbEnums)return okdbEnums;hasRequiredOkdbEnums=0x1;const _0x394a1a={'PUT':_0x2fac44(0x2cd),'REMOVE':_0x2fac44(0x33c),'INDEX_DROP':_0x2fac44(0x208),'INDEX_REGISTER':_0x2fac44(0x35b),'INDEX_RESET':_0x2fac44(0xc2),'TYPE_REGISTER':_0x2fac44(0xf1),'TYPE_DROP':_0x2fac44(0x327),'FTS_REGISTER':'registerFts','FTS_DROP':_0x2fac44(0x220),'FTS_RESET':_0x2fac44(0xf7),'SCHEMA_SET':_0x2fac44(0x206),'SCHEMA_DROP':_0x2fac44(0x25f),'TTL_SET':_0x2fac44(0x323),'TTL_CLEAR':'clearTtl'},_0x105d58={'SYSTEM_READY':_0x2fac44(0x36f),'SYSTEM_STOPPED':_0x2fac44(0x150),'SYSTEM_CLOCK_CHANGE':'system:clock_change','SYSTEM_POKE':_0x2fac44(0x1a9),'SYSTEM_DRAIN':_0x2fac44(0x196),'SYSTEM_BUS_STATE_CHANGE':'system:bus_state_change','ITEM_CREATE':_0x2fac44(0x1b5),'ITEM_UPDATE':_0x2fac44(0x1d9),'ITEM_REMOVE':_0x2fac44(0x32b),'INDEX_RESET':_0x2fac44(0x129),'INDEX_READY':_0x2fac44(0x158),'INDEX_PROGRESS':_0x2fac44(0x278),'INDEX_DROP':_0x2fac44(0x120),'INDEX_REGISTERED':_0x2fac44(0x28f),'FTS_REGISTERED':_0x2fac44(0xb6),'FTS_DROP':_0x2fac44(0x143),'FTS_RESET':'fts:reset','SCHEMA_SET':'schema:set','SCHEMA_DROP':_0x2fac44(0x23c),'UNIQUE_VIOLATION':_0x2fac44(0x121),'UNIQUE_VIOLATION_RESOLVED':'unique:violation_resolved','REF_VIOLATION':_0x2fac44(0x255),'REF_VIOLATION_RESOLVED':_0x2fac44(0x242),'SYNC_APPLY':_0x2fac44(0x34e),'TXN_START':_0x2fac44(0x249),'TXN_END':'txn:end','TXN_ROLLBACK':_0x2fac44(0x20b),'TYPE_REGISTERED':_0x2fac44(0xd2),'TYPE_DROP':'type:drop','ENV_OPENED':_0x2fac44(0x27e),'ENV_REMOVED':'env:removed','TTL_EXPIRED':'ttl:expired','TTL_SET':_0x2fac44(0x16d),'TTL_CLEAR':_0x2fac44(0x75),'LICENSE_INVALID':_0x2fac44(0x1b2),'LICENSE_ADDED':_0x2fac44(0x15b),'LICENSE_ACTIVATED':_0x2fac44(0x2ab),'LICENSE_REMOVED':'license:removed'},_0x1db8fc={'CREATING':'creating','RESETTING':'resetting','READY':_0x2fac44(0x1a8),'DROPPING':'dropping','WAITING':_0x2fac44(0x11d)},_0x9ddfa7={'CREATED':_0x2fac44(0x218),'STARTING':_0x2fac44(0xb4),'STARTED':_0x2fac44(0x144),'STOPPING':_0x2fac44(0xf2),'STOPPED':_0x2fac44(0x1df)},_0x258d42={'CREATING':_0x2fac44(0x2af),'READY':_0x2fac44(0x1a8),'HALTED':_0x2fac44(0x301),'STOPPED':_0x2fac44(0x1df),'RESETTING':_0x2fac44(0x72)},_0x400e77=Object[_0x2fac44(0x320)]({'POKE':_0x2fac44(0x177),'DRAIN':_0x2fac44(0x1e9)});return okdbEnums={'BUS_EVENTS':_0x400e77,'CHANGE_ACTIONS':_0x394a1a,'EVENTS':_0x105d58,'INDEX_STATE':_0x1db8fc,'OKDB_STATE':_0x9ddfa7,'VIEW_STATE':_0x258d42},okdbEnums;}var okdbPubkey,hasRequiredOkdbPubkey;function requireOkdbPubkey(){const _0x51ca3c=_0x19ca31;if(hasRequiredOkdbPubkey)return okdbPubkey;hasRequiredOkdbPubkey=0x1;const _0x4c74a0=require$$1,_0x563421=require$$1$1,_0x33e306=require$$0,_0x25938b=_0x4c74a0[_0x51ca3c(0x170)](_0x563421[_0x51ca3c(0x252)](__dirname,_0x51ca3c(0x160)),'utf8')[_0x51ca3c(0xe3)](),_0xc5615b=_0x33e306[_0x51ca3c(0x295)](_0x25938b)[_0x51ca3c(0x7a)]({'type':'spki','format':_0x51ca3c(0x105)}),_0x4ba06d=_0x33e306['createHash']('sha256')['update'](_0xc5615b)[_0x51ca3c(0xcd)]('hex')[_0x51ca3c(0x281)](0x0,0x10);return okdbPubkey={'PUBLIC_KEY_PEM':_0x25938b,'PUB_FINGERPRINT':_0x4ba06d},okdbPubkey;}var okdbLicense,hasRequiredOkdbLicense;function requireOkdbLicense(){const _0x5a8d31=_0x19ca31;if(hasRequiredOkdbLicense)return okdbLicense;hasRequiredOkdbLicense=0x1;const _0x33c6ce=require$$0,{OKDBError:_0x2a8168}=requireOkdbError(),{EVENTS:_0xdf7b30}=requireOkdbEnums(),_0x29b3f6=requireOkdbLicenseCodec(),{LICENSE_TYPE_OPEN:_0x16ed3f,LICENSE_TYPE_INTERNAL:_0x59843a,OPEN_LICENSE_MAX_DURATION_MS:_0x130daa}=_0x29b3f6,_0x4c4653=requireOkdbPubkey(),_0x4be419={'LICENSED_BUILD':_0x5a8d31(0x168),'PUBLIC_KEY_PEM':_0x4c4653[_0x5a8d31(0x2e6)],'PUB_FINGERPRINT':_0x4c4653['PUB_FINGERPRINT'],'LICENSE_EXPIRED_ACTION':_0x5a8d31(0x35c)},_0x550afd=_0x5a8d31(0x23f),_0x596d9f={'features':{'sync':![],'embeddings':![],'engines':![],'fts':!![],'timeMachine':![],'views':!![],'mcp':!![],'files':!![]},'limits':{'envs':0x2,'typesPerEnv':0xa,'syncPeers':0x0,'maxWrites':0xf4240},'_isFree':!![]};async function _0x8c5bf0(_0x389aed){const _0x1b85e1=_0x5a8d31;!_0x389aed[_0x1b85e1(0x11b)](_0x550afd)&&await _0x389aed[_0x1b85e1(0xf1)](_0x550afd);}class _0x4e1493{constructor(_0x439c5d){const _0x460ec3=_0x5a8d31;this[_0x460ec3(0x230)]=_0x439c5d,this['_active']=null;}async[_0x5a8d31(0x184)](){const _0x58f005=_0x5a8d31,_0x2b7156=this[_0x58f005(0x230)][_0x58f005(0x2c8)];if(!_0x2b7156||!_0x2b7156[_0x58f005(0x11b)](_0x550afd)){this[_0x58f005(0x1d8)]=null;return;}const _0x228c60=this[_0x58f005(0x230)]['id'];let _0x1a3f17=null;for(const {key:_0xf4ea16,value:_0x5212fe}of _0x2b7156[_0x58f005(0x2e9)](_0x550afd)){const _0x28b173=this['_computeStatus'](_0x5212fe,_0x228c60);_0x28b173===_0x58f005(0x361)&&!_0x1a3f17&&(_0x1a3f17={..._0x5212fe,'id':_0xf4ea16,'status':_0x28b173});}this[_0x58f005(0x1d8)]=_0x1a3f17;if(this[_0x58f005(0x1d8)]&&this[_0x58f005(0x1d8)][_0x58f005(0x1e1)]===_0x16ed3f){const _0x51656e=Math['ceil']((this[_0x58f005(0x1d8)][_0x58f005(0x112)]-Date['now']())/0x5265c00);this[_0x58f005(0x230)]['log']?.[_0x58f005(0x167)](_0x58f005(0x2f0)+_0x51656e+_0x58f005(0x1d7),{'feature':_0x58f005(0x1bb),'licensee':this[_0x58f005(0x1d8)][_0x58f005(0x270)],'expiresAt':new Date(this[_0x58f005(0x1d8)]['expiresAt'])[_0x58f005(0xe9)]()});}this['_active']&&this[_0x58f005(0x1d8)]['licenseType']===_0x59843a&&this[_0x58f005(0x230)][_0x58f005(0x35c)]?.[_0x58f005(0x167)]('⚠\x20INTERNAL\x20LICENSE\x20ACTIVE\x20—\x20all\x20features\x20and\x20limits\x20are\x20unlocked.\x20For\x20vendor/internal\x20use\x20only.',{'feature':_0x58f005(0x1bb),'licensee':this[_0x58f005(0x1d8)]['licensee']});}[_0x5a8d31(0x363)](_0x3408ff,_0x22f611){const _0x5d637c=_0x5a8d31;if(!_0x3408ff[_0x5d637c(0x7f)])return _0x5d637c(0xb0);let _0x8a9b69;try{_0x8a9b69=_0x29b3f6[_0x5d637c(0x226)](_0x3408ff['blob']);}catch(_0x42e44e){return _0x5d637c(0xb0);}try{const _0x2657a3=_0x33c6ce['verify'](null,_0x8a9b69[_0x5d637c(0x34b)],_0x4be419['PUBLIC_KEY_PEM'],_0x8a9b69['sig']);if(!_0x2657a3)return _0x5d637c(0xb0);}catch(_0x1eae97){return _0x5d637c(0xb0);}if(_0x8a9b69[_0x5d637c(0x176)][_0x5d637c(0x1e1)]===_0x59843a)return _0x5d637c(0x361);if(_0x8a9b69[_0x5d637c(0x176)][_0x5d637c(0x112)]<=Date['now']())return _0x5d637c(0xd8);if(_0x8a9b69['decoded'][_0x5d637c(0x1e1)]===_0x16ed3f)return'active';if(!_0x3408ff['activation'])return _0x5d637c(0x1f5);const _0x598009=_0x29b3f6['verifyActivation']({'tokenString':_0x3408ff['activation'],'nodeId':_0x22f611,'rawBlobBuf':_0x8a9b69[_0x5d637c(0x205)],'pubKeyPem':_0x4be419[_0x5d637c(0x2e6)],'pubFingerprint':_0x4be419[_0x5d637c(0x1c1)]});if(_0x598009[_0x5d637c(0x228)]===_0x5d637c(0x1a4)||_0x598009['reason']===_0x5d637c(0x266))return'wrong_node';if(_0x598009[_0x5d637c(0x228)]===_0x5d637c(0x13e))return _0x5d637c(0xd8);if(!_0x598009[_0x5d637c(0x297)])return _0x5d637c(0x22f);return _0x5d637c(0x361);}get[_0x5a8d31(0x361)](){const _0x496205=_0x5a8d31;return this[_0x496205(0x1d8)];}get[_0x5a8d31(0x2d5)](){const _0x14dc4d=_0x5a8d31;return this[_0x14dc4d(0x1d8)]??_0x596d9f;}[_0x5a8d31(0x2e0)](_0x4839ab){const _0x115dd5=_0x5a8d31;if(_0x4be419[_0x115dd5(0x2c5)]!==_0x115dd5(0x168))return;const _0xa1b433=this['effective'];if(!_0xa1b433[_0x115dd5(0x1cf)]?.[_0x4839ab]){const _0x3185d4=_0xa1b433[_0x115dd5(0x70)]?_0x115dd5(0x16e)+_0x4839ab+_0x115dd5(0xbd)+_0x4839ab+_0x115dd5(0xd9):_0x115dd5(0x335)+_0x4839ab+_0x115dd5(0xeb)+_0x4839ab+'\x22.';throw new _0x2a8168(_0x3185d4,_0x115dd5(0x332),{'feature':_0x4839ab});}}[_0x5a8d31(0xfa)](_0x5ca02f){const _0x155e84=_0x5a8d31;if(_0x4be419[_0x155e84(0x2c5)]!==_0x155e84(0x168))return!![];return!!this[_0x155e84(0x2d5)]['features']?.[_0x5ca02f];}[_0x5a8d31(0x173)](_0xc46b54,_0x58c5e5){const _0x3e7872=_0x5a8d31;if(_0x4be419[_0x3e7872(0x2c5)]!==_0x3e7872(0x168))return;const _0x1a0dfd=this[_0x3e7872(0x2d5)],_0x3760d2=_0x1a0dfd[_0x3e7872(0x321)]?.[_0xc46b54];if(_0x3760d2===null||_0x3760d2===undefined||_0x3760d2===0x0)return;if(_0x58c5e5>=_0x3760d2)throw new _0x2a8168('License\x20limit\x20exceeded:\x20'+_0xc46b54+'\x20('+_0x58c5e5+'/'+_0x3760d2+')',_0x3e7872(0x1e0),{'limit':_0xc46b54,'current':_0x58c5e5,'max':_0x3760d2});}async['addLicense'](_0x44f940){const _0x9aa4e=_0x5a8d31;let _0x20633c;try{_0x20633c=_0x29b3f6[_0x9aa4e(0x226)](_0x44f940);}catch(_0x4e9c9d){throw new _0x2a8168('Invalid\x20license\x20blob:\x20'+_0x4e9c9d[_0x9aa4e(0x9d)],_0x9aa4e(0x90));}let _0x59f7ce;try{_0x59f7ce=_0x33c6ce[_0x9aa4e(0x10d)](null,_0x20633c[_0x9aa4e(0x34b)],_0x4be419[_0x9aa4e(0x2e6)],_0x20633c['sig']);}catch(_0x371adf){throw new _0x2a8168(_0x9aa4e(0x103)+_0x371adf['message'],_0x9aa4e(0x90));}if(!_0x59f7ce)throw new _0x2a8168(_0x9aa4e(0x239)+(_0x9aa4e(0x106)+_0x4be419[_0x9aa4e(0x1c1)]+'.\x20')+_0x9aa4e(0x36a),_0x9aa4e(0x90),{'expectedFingerprint':_0x4be419[_0x9aa4e(0x1c1)]});if(_0x20633c['decoded'][_0x9aa4e(0x1e1)]===_0x16ed3f){const _0x5723e2=_0x20633c[_0x9aa4e(0x176)]['expiresAt']-_0x20633c[_0x9aa4e(0x176)][_0x9aa4e(0x23d)];if(_0x5723e2>_0x130daa)throw new _0x2a8168(_0x9aa4e(0x222)+Math['ceil'](_0x5723e2/(0x1e*0x5265c00))+_0x9aa4e(0xda),_0x9aa4e(0x90));}const _0x299aa5=this[_0x9aa4e(0x230)][_0x9aa4e(0x2c8)];await _0x8c5bf0(_0x299aa5);const _0x1893f0=_0x29b3f6['licenseHash'](_0x20633c[_0x9aa4e(0x205)])['toString'](_0x9aa4e(0x1fc));for(const {value:_0x36721a}of _0x299aa5['getRange'](_0x550afd)){if(_0x36721a[_0x9aa4e(0xcf)]===_0x1893f0)throw new _0x2a8168(_0x9aa4e(0x197),_0x9aa4e(0x90));}const _0x4471c8=_0x33c6ce['randomUUID'](),_0x4d0d94={'blob':_0x44f940,'activation':null,'addedAt':Date[_0x9aa4e(0x92)](),'_licenseHash':_0x1893f0,'licensee':_0x20633c[_0x9aa4e(0x176)][_0x9aa4e(0x270)],'expiresAt':_0x20633c['decoded'][_0x9aa4e(0x112)],'features':_0x20633c['decoded']['features'],'limits':_0x20633c[_0x9aa4e(0x176)][_0x9aa4e(0x321)],'licenseType':_0x20633c[_0x9aa4e(0x176)][_0x9aa4e(0x1e1)]};return await _0x299aa5['put'](_0x550afd,_0x4471c8,_0x4d0d94),{'id':_0x4471c8,..._0x4d0d94};}async['activateLicense'](_0x24ca55){const _0x448627=_0x5a8d31;let _0x4b7db3;try{_0x4b7db3=_0x29b3f6[_0x448627(0x161)](_0x24ca55);}catch(_0x42be36){throw new _0x2a8168('Invalid\x20activation\x20token:\x20'+_0x42be36[_0x448627(0x9d)],_0x448627(0x2f6));}const _0x58edad=_0x4b7db3['licenseHash']['toString'](_0x448627(0x1fc)),_0x468564=this[_0x448627(0x230)][_0x448627(0x2c8)];if(!_0x468564||!_0x468564['hasType'](_0x550afd))throw new _0x2a8168('No\x20license\x20found\x20matching\x20this\x20activation\x20token',_0x448627(0x2f6));let _0x166cd3=null,_0x11c9fc=null;for(const {key:_0x9ff691,value:_0x144bc5}of _0x468564[_0x448627(0x2e9)](_0x550afd)){if(_0x144bc5[_0x448627(0xcf)]===_0x58edad){_0x166cd3=_0x9ff691,_0x11c9fc=_0x144bc5;break;}}if(!_0x166cd3)throw new _0x2a8168('No\x20license\x20found\x20matching\x20this\x20activation\x20token',_0x448627(0x2f6));const {rawBuf:_0x4215b2}=_0x29b3f6[_0x448627(0x226)](_0x11c9fc[_0x448627(0x7f)]),_0x30c50a=_0x29b3f6[_0x448627(0x1af)]({'tokenString':_0x24ca55,'nodeId':this[_0x448627(0x230)]['id'],'rawBlobBuf':_0x4215b2,'pubKeyPem':_0x4be419[_0x448627(0x2e6)],'pubFingerprint':_0x4be419[_0x448627(0x1c1)]});if(!_0x30c50a['valid'])throw new _0x2a8168(_0x448627(0x2c9)+_0x30c50a[_0x448627(0x228)],_0x448627(0x2f6),{'reason':_0x30c50a[_0x448627(0x228)]});const _0x3aada0={..._0x11c9fc,'activation':_0x24ca55};return await _0x468564[_0x448627(0x2a6)](_0x550afd,_0x166cd3,_0x3aada0),{'id':_0x166cd3,..._0x3aada0};}async['removeLicense'](_0x430175){const _0x1bce7f=_0x5a8d31,_0x1958b7=this[_0x1bce7f(0x230)][_0x1bce7f(0x2c8)];if(!_0x1958b7||!_0x1958b7[_0x1bce7f(0x11b)](_0x550afd))return;await _0x1958b7[_0x1bce7f(0x33c)](_0x550afd,_0x430175);}async[_0x5a8d31(0xba)](){const _0x1e24fc=_0x5a8d31,_0x48eb3=this['okdb'][_0x1e24fc(0x2c8)];if(!_0x48eb3||!_0x48eb3['hasType'](_0x550afd))return[];const _0x20825a=this[_0x1e24fc(0x230)]['id'],_0x1c7b11=[];for(const {key:_0x3e6180,value:_0x4f7e28}of _0x48eb3[_0x1e24fc(0x2e9)](_0x550afd)){const _0x5c7b1a=this[_0x1e24fc(0x363)](_0x4f7e28,_0x20825a);_0x1c7b11[_0x1e24fc(0x195)]({..._0x4f7e28,'id':_0x3e6180,'status':_0x5c7b1a});}return _0x1c7b11;}[_0x5a8d31(0xb2)](){const _0x5ca3af=_0x5a8d31,_0xf131c2=this[_0x5ca3af(0x230)][_0x5ca3af(0x2c8)];if(!_0xf131c2||!_0xf131c2['hasType'](_0x550afd))return[];const _0xe212fd=this[_0x5ca3af(0x230)]['id'],_0x4594be=[];for(const {key:_0x2bdffb,value:_0x5ab365}of _0xf131c2[_0x5ca3af(0x2e9)](_0x550afd)){if(_0x5ab365[_0x5ca3af(0xcf)]){if(_0x5ab365[_0x5ca3af(0x1e1)]===_0x16ed3f)_0x4594be[_0x5ca3af(0x195)]({'licenseId':_0x2bdffb,'pin':null});else{const _0x481b14=Buffer[_0x5ca3af(0xa9)](_0x5ab365[_0x5ca3af(0xcf)],_0x5ca3af(0x1fc)),{pin:_0x43876e}=_0x29b3f6['derivePin'](_0xe212fd,_0x481b14,_0x4be419['PUB_FINGERPRINT']);_0x4594be[_0x5ca3af(0x195)]({'licenseId':_0x2bdffb,'pin':_0x43876e});}}}return _0x4594be;}async[_0x5a8d31(0x1b6)](){const _0x12d9a5=_0x5a8d31,_0x171b7f=this[_0x12d9a5(0x1d8)];await this['reload']();if(this[_0x12d9a5(0x1d8)]&&this[_0x12d9a5(0x1d8)][_0x12d9a5(0x1e1)]===_0x16ed3f){const _0x44b12b=Math[_0x12d9a5(0x1d4)]((this[_0x12d9a5(0x1d8)][_0x12d9a5(0x112)]-Date[_0x12d9a5(0x92)]())/0x5265c00);this[_0x12d9a5(0x230)][_0x12d9a5(0x35c)]?.[_0x12d9a5(0x167)](_0x12d9a5(0x2f0)+_0x44b12b+'\x20day(s).',{'feature':_0x12d9a5(0x1bb),'licensee':this[_0x12d9a5(0x1d8)]['licensee'],'expiresAt':new Date(this[_0x12d9a5(0x1d8)][_0x12d9a5(0x112)])['toISOString']()});}this[_0x12d9a5(0x1d8)]&&this[_0x12d9a5(0x1d8)][_0x12d9a5(0x1e1)]===_0x59843a&&this['okdb']['log']?.[_0x12d9a5(0x167)](_0x12d9a5(0x236),{'feature':_0x12d9a5(0x1bb),'licensee':this[_0x12d9a5(0x1d8)]['licensee']});if(_0x171b7f&&!this[_0x12d9a5(0x1d8)]){this[_0x12d9a5(0x230)][_0x12d9a5(0x35c)]?.[_0x12d9a5(0x167)](_0x12d9a5(0xf8),{'feature':'license'}),this['okdb'][_0x12d9a5(0x111)]?.[_0x12d9a5(0x2df)](_0xdf7b30[_0x12d9a5(0x90)],{'previous':_0x171b7f});const _0x4f7fea=this['okdb']['options']?.[_0x12d9a5(0x312)]??_0x4be419['LICENSE_EXPIRED_ACTION'];_0x4f7fea===_0x12d9a5(0x12a)&&(this[_0x12d9a5(0x230)][_0x12d9a5(0x35c)]?.[_0x12d9a5(0x299)](_0x12d9a5(0xbb),{'feature':_0x12d9a5(0x1bb)}),this[_0x12d9a5(0x230)][_0x12d9a5(0x1f6)]()[_0x12d9a5(0x334)](()=>{})[_0x12d9a5(0x78)](()=>process[_0x12d9a5(0x365)](0x1)));}}}return okdbLicense={'LicenseChecker':_0x4e1493,'_C':_0x4be419},okdbLicense;}function _0x30ec(_0x5c1a3f,_0x310a43){_0x5c1a3f=_0x5c1a3f-0x69;const _0x3cd676=_0x3cd6();let _0x30ec08=_0x3cd676[_0x5c1a3f];return _0x30ec08;}var okdbShell,hasRequiredOkdbShell;function requireOkdbShell(){const _0x15349e=_0x19ca31;if(hasRequiredOkdbShell)return okdbShell;hasRequiredOkdbShell=0x1;const _0x56a6d3=require$$0$2,_0x73c339=require$$1,_0x22f4da=require$$2$1,_0x35b058=require$$1$1,_0x206645=_0x35b058[_0x15349e(0x252)](_0x22f4da['homedir'](),_0x15349e(0x259)),_0x3d1a96=0x3e8,_0x2afbc5={'reset':'\x1b[0m','bold':'\x1b[1m','dim':_0x15349e(0x276),'red':_0x15349e(0x272),'green':_0x15349e(0x25b),'yellow':'\x1b[33m','blue':'\x1b[34m','magenta':_0x15349e(0x263),'cyan':_0x15349e(0x74),'white':_0x15349e(0xbc),'gray':_0x15349e(0x155)},_0x337e14=!process[_0x15349e(0x2ce)][_0x15349e(0x142)]||!!process.env.NO_COLOR,_0x278e29=(_0x5b3104,_0x5a977b)=>_0x337e14?_0x5a977b:''+_0x5b3104+_0x5a977b+_0x2afbc5[_0x15349e(0xe4)],_0x1b82f4={'error':_0x2afbc5[_0x15349e(0x81)],'warn':_0x2afbc5[_0x15349e(0x15c)],'info':_0x2afbc5['cyan'],'debug':_0x2afbc5[_0x15349e(0x17d)]},_0x487bc1={'debug':0x0,'info':0x1,'warn':0x2,'error':0x3};function _0x144494(_0x403a5e,_0xd5e053='info'){const _0x4e39ca=_0x15349e,{level:_0x1084c4,msg:_0x5797b2,meta:_0x2fec74,context:_0x2e544c,ts:_0x46a012}=_0x403a5e;if((_0x487bc1[_0x1084c4]??0x1)<(_0x487bc1[_0xd5e053]??0x1))return;const _0x5d2b52=_0x278e29(_0x2afbc5[_0x4e39ca(0x17d)],new Date(_0x46a012)[_0x4e39ca(0xe9)]()),_0x310e83=_0x278e29(_0x1b82f4[_0x1084c4]??_0x2afbc5[_0x4e39ca(0x303)],_0x1084c4[_0x4e39ca(0x198)](0x5));let _0x3f4e0d='\x20\x20'+_0x5d2b52+'\x20'+_0x278e29(_0x2afbc5[_0x4e39ca(0x231)],_0x310e83)+'\x20'+_0x5797b2;if(_0x2fec74&&Object['keys'](_0x2fec74)[_0x4e39ca(0x115)]>0x0){const _0x2b1765=Object[_0x4e39ca(0x223)](_0x2fec74)[_0x4e39ca(0x17e)](([_0x311104,_0x5344d6])=>_0x311104+'='+_0x5344d6)[_0x4e39ca(0x252)]('\x20');_0x3f4e0d+=_0x278e29(_0x2afbc5[_0x4e39ca(0x2ed)],_0x4e39ca(0x234)+_0x2b1765+']');}if(_0x2e544c!==undefined){const _0x5787f0=typeof _0x2e544c===_0x4e39ca(0xb9)?JSON['stringify'](_0x2e544c):String(_0x2e544c);_0x3f4e0d+=_0x278e29(_0x2afbc5[_0x4e39ca(0x2ed)],'\x20\x20'+_0x5787f0);}const _0x4ceb31=_0x1084c4===_0x4e39ca(0x299)||_0x1084c4===_0x4e39ca(0x167)?process[_0x4e39ca(0x24c)]['write'][_0x4e39ca(0x2c3)](process[_0x4e39ca(0x24c)]):process[_0x4e39ca(0x2ce)][_0x4e39ca(0x107)][_0x4e39ca(0x2c3)](process[_0x4e39ca(0x2ce)]);_0x4ceb31(_0x3f4e0d+'\x0a');}function _0xfe30ef(_0x2468d9,_0x12dc42){const _0x1043fe=_0x15349e;if(_0x2468d9===0xcc||_0x2468d9>=0xc8&&_0x2468d9<0x12c&&!_0x12dc42){console['log'](_0x1043fe(0x16b)+_0x278e29(_0x2afbc5['green'],'✓')+'\x0a');return;}if(_0x2468d9>=0x190||_0x12dc42?.['error']){const _0x4c56a7=_0x12dc42?.[_0x1043fe(0x299)]??_0x12dc42?.[_0x1043fe(0x9d)]??'HTTP\x20'+_0x2468d9;console[_0x1043fe(0x35c)](_0x1043fe(0x16b)+_0x278e29(_0x2afbc5[_0x1043fe(0x81)],'✗')+'\x20'+_0x278e29(_0x2afbc5[_0x1043fe(0x231)]+_0x2afbc5[_0x1043fe(0x81)],String(_0x2468d9))+'\x20\x20'+_0x4c56a7+'\x0a');return;}const _0xaba5b4=Object[_0x1043fe(0x1e6)][_0x1043fe(0x1d6)][_0x1043fe(0xdb)](_0x12dc42??{},_0x1043fe(0x1d2))?_0x12dc42[_0x1043fe(0x1d2)]:_0x12dc42,_0x5383bd=_0x12dc42?.[_0x1043fe(0xe6)];console[_0x1043fe(0x35c)](''),_0x5c3f3c(_0xaba5b4,'\x20\x20');if(_0x5383bd?.['count']!=null||_0x5383bd?.['time']!=null){const _0x24ec03=[];if(_0x5383bd[_0x1043fe(0x186)]!=null)_0x24ec03[_0x1043fe(0x195)](_0x5383bd[_0x1043fe(0x186)]+'\x20result'+(_0x5383bd[_0x1043fe(0x186)]!==0x1?'s':''));if(_0x5383bd[_0x1043fe(0x153)]!=null)_0x24ec03[_0x1043fe(0x195)](_0x5383bd[_0x1043fe(0x153)]+'ms');console[_0x1043fe(0x35c)](_0x1043fe(0x16b)+_0x278e29(_0x2afbc5['dim'],_0x24ec03[_0x1043fe(0x252)]('\x20\x20·\x20\x20')));}console[_0x1043fe(0x35c)]('');}function _0x5c3f3c(_0x501ed1,_0x5a2b94=''){const _0x53f65b=_0x15349e;if(_0x501ed1===null||_0x501ed1===undefined){console[_0x53f65b(0x35c)](_0x5a2b94+_0x278e29(_0x2afbc5['dim'],_0x53f65b(0x80)));return;}if(Array[_0x53f65b(0x119)](_0x501ed1)){if(_0x501ed1[_0x53f65b(0x115)]===0x0){console[_0x53f65b(0x35c)](_0x5a2b94+_0x278e29(_0x2afbc5[_0x53f65b(0x2ed)],_0x53f65b(0x136)));return;}if(_0x501ed1['every'](_0x39c4a2=>_0x39c4a2&&typeof _0x39c4a2==='object'&&_0x53f65b(0xf5)in _0x39c4a2&&_0x53f65b(0x132)in _0x39c4a2)){_0x2a0b3e(_0x501ed1,_0x5a2b94);return;}if(_0x501ed1[_0x53f65b(0xd5)](_0x4b51f0=>_0x4b51f0&&typeof _0x4b51f0===_0x53f65b(0xb9)&&_0x53f65b(0xe0)in _0x4b51f0&&_0x53f65b(0x186)in _0x4b51f0)){_0x47566d(_0x501ed1,_0x5a2b94);return;}if(_0x501ed1[_0x53f65b(0xd5)](_0x154622=>typeof _0x154622!=='object'||_0x154622===null)){_0x501ed1['forEach']((_0x36e858,_0x52f2a9)=>console['log'](_0x5a2b94+_0x278e29(_0x2afbc5[_0x53f65b(0x17d)],_0x52f2a9+0x1+'.')+'\x20'+_0x278e29(_0x2afbc5[_0x53f65b(0x303)],String(_0x36e858))));return;}_0x501ed1[_0x53f65b(0x232)]((_0x316b48,_0x1dd268)=>{const _0x415c07=_0x53f65b;console[_0x415c07(0x35c)](_0x5a2b94+_0x278e29(_0x2afbc5['dim'],'['+_0x1dd268+']'));if(typeof _0x316b48==='object'&&_0x316b48!==null)_0x1ccb28(_0x316b48,_0x5a2b94+'\x20\x20');else console['log'](_0x5a2b94+'\x20\x20'+String(_0x316b48));});return;}if(typeof _0x501ed1===_0x53f65b(0xb9)){if(_0x53f65b(0xf5)in _0x501ed1&&_0x53f65b(0x132)in _0x501ed1&&Object[_0x53f65b(0x235)](_0x501ed1)[_0x53f65b(0x115)]<=0x3){console[_0x53f65b(0x35c)](_0x5a2b94+_0x278e29(_0x2afbc5['bold']+_0x2afbc5[_0x53f65b(0xc6)],String(_0x501ed1[_0x53f65b(0xf5)])));const _0x2770fd=_0x501ed1['value'];if(_0x2770fd&&typeof _0x2770fd===_0x53f65b(0xb9))_0x1ccb28(_0x2770fd,_0x5a2b94);else console[_0x53f65b(0x35c)](_0x5a2b94+_0x278e29(_0x2afbc5[_0x53f65b(0x303)],String(_0x2770fd)));return;}_0x1ccb28(_0x501ed1,_0x5a2b94);return;}console[_0x53f65b(0x35c)](_0x5a2b94+_0x278e29(_0x2afbc5['white'],String(_0x501ed1)));}function _0x1ccb28(_0x4adbea,_0x42ef32=''){const _0x2ad8f6=_0x15349e,_0x28ea59=Object[_0x2ad8f6(0x223)](_0x4adbea);if(_0x28ea59[_0x2ad8f6(0x115)]===0x0){console['log'](_0x42ef32+_0x278e29(_0x2afbc5[_0x2ad8f6(0x2ed)],'{}'));return;}const _0x47b9b3=Math[_0x2ad8f6(0xbf)](0x1c,Math[_0x2ad8f6(0x241)](..._0x28ea59[_0x2ad8f6(0x17e)](([_0xbef844])=>_0xbef844[_0x2ad8f6(0x115)])));for(const [_0x45d98a,_0x2ef4bb]of _0x28ea59){const _0x34c043=_0x278e29(_0x2afbc5['cyan'],_0x45d98a[_0x2ad8f6(0x198)](_0x47b9b3));if(_0x2ef4bb===null||_0x2ef4bb===undefined)console['log'](_0x42ef32+_0x34c043+'\x20\x20'+_0x278e29(_0x2afbc5[_0x2ad8f6(0x2ed)],_0x2ad8f6(0x325)));else{if(typeof _0x2ef4bb===_0x2ad8f6(0xb9)){const _0x195bb3=JSON[_0x2ad8f6(0x18c)](_0x2ef4bb);_0x195bb3['length']<=0x50?console['log'](_0x42ef32+_0x34c043+'\x20\x20'+_0x278e29(_0x2afbc5['dim'],_0x195bb3)):(console[_0x2ad8f6(0x35c)](_0x42ef32+_0x34c043),_0x5c3f3c(_0x2ef4bb,_0x42ef32+'\x20\x20'));}else{const _0x491d02=typeof _0x2ef4bb===_0x2ad8f6(0x355)?_0x278e29(_0x2ef4bb?_0x2afbc5[_0x2ad8f6(0xd1)]:_0x2afbc5[_0x2ad8f6(0x15c)],String(_0x2ef4bb)):typeof _0x2ef4bb===_0x2ad8f6(0x319)?_0x278e29(_0x2afbc5[_0x2ad8f6(0x2b8)],String(_0x2ef4bb)):_0x278e29(_0x2afbc5['white'],String(_0x2ef4bb));console['log'](_0x42ef32+_0x34c043+'\x20\x20'+_0x491d02);}}}}function _0x2a0b3e(_0x2701b9,_0x494b98=''){const _0x169b96=_0x15349e,_0x4cfff9=Math[_0x169b96(0xbf)](0x20,Math[_0x169b96(0x241)](..._0x2701b9['map'](_0x240e9f=>String(_0x240e9f[_0x169b96(0xf5)])[_0x169b96(0x115)])));for(const {key:_0x459982,value:_0x4a33e6,score:_0x72bf1d,clock:_0x585a9e}of _0x2701b9){const _0x1f432f=_0x278e29(_0x2afbc5[_0x169b96(0x231)]+_0x2afbc5[_0x169b96(0xc6)],String(_0x459982)[_0x169b96(0x198)](_0x4cfff9)),_0x14d0a4=_0x4a33e6==null?_0x278e29(_0x2afbc5[_0x169b96(0x2ed)],_0x169b96(0x325)):typeof _0x4a33e6===_0x169b96(0xb9)?_0x278e29(_0x2afbc5[_0x169b96(0x2ed)],JSON[_0x169b96(0x18c)](_0x4a33e6)):_0x278e29(_0x2afbc5[_0x169b96(0x303)],String(_0x4a33e6)),_0x1d2373=_0x72bf1d!=null?_0x278e29(_0x2afbc5[_0x169b96(0x17d)],_0x169b96(0x256)+_0x72bf1d[_0x169b96(0xd3)](0x4)):'',_0x3fe6c9=_0x585a9e!=null?_0x278e29(_0x2afbc5[_0x169b96(0x17d)],_0x169b96(0x333)+_0x585a9e):'';console['log'](_0x494b98+_0x1f432f+'\x20\x20'+_0x14d0a4+_0x1d2373+_0x3fe6c9);}}function _0x47566d(_0x1b3e6e,_0x486c15=''){const _0x3f2771=_0x15349e,_0x2fc873=Math['min'](0x20,Math['max'](..._0x1b3e6e[_0x3f2771(0x17e)](_0x481f77=>_0x481f77[_0x3f2771(0xe0)][_0x3f2771(0x115)])));for(const {type:_0x399e65,count:_0x4aa681,fields:_0x1454eb}of _0x1b3e6e){if(_0x399e65['startsWith']('~'))continue;const _0x197ae0=_0x278e29(_0x2afbc5[_0x3f2771(0x231)]+_0x2afbc5[_0x3f2771(0xc6)],_0x399e65['padEnd'](_0x2fc873)),_0xad18ed=_0x278e29(_0x2afbc5['magenta'],String(_0x4aa681)[_0x3f2771(0x29c)](0x6))+_0x278e29(_0x2afbc5[_0x3f2771(0x2ed)],_0x3f2771(0x94)),_0x3ddb55=_0x1454eb&&Object[_0x3f2771(0x235)](_0x1454eb)[_0x3f2771(0x115)]?_0x278e29(_0x2afbc5[_0x3f2771(0x2ed)],_0x3f2771(0x2c7)+Object[_0x3f2771(0x235)](_0x1454eb)['slice'](0x0,0x6)[_0x3f2771(0x252)](',\x20')+(Object[_0x3f2771(0x235)](_0x1454eb)['length']>0x6?'…':'')):'';console[_0x3f2771(0x35c)](_0x486c15+_0x197ae0+'\x20\x20'+_0xad18ed+_0x3ddb55);}}const _0x3bdabc=[_0x15349e(0x146),_0x15349e(0x2a1),_0x15349e(0x21b),'files/',_0x15349e(0x154),_0x15349e(0x2d0)];function _0x5da42a(_0x37ea93,_0x1d273c){const _0xc710c3=_0x15349e;if(_0x37ea93[_0xc710c3(0x225)](_0xc710c3(0x265)))return _0x37ea93;if(_0x37ea93[_0xc710c3(0x225)]('/'))return _0xc710c3(0x28a)+_0x37ea93;if(_0x37ea93[_0xc710c3(0x225)](_0xc710c3(0x29f)))return _0xc710c3(0x265)+_0x37ea93;const _0x1ac24c=_0x3bdabc[_0xc710c3(0x8e)](_0x265378=>_0x37ea93===_0x265378[_0xc710c3(0x244)](/\/$/,'')||_0x37ea93[_0xc710c3(0x225)](_0x265378));return _0x1ac24c?_0xc710c3(0x23e)+_0x1d273c+'/'+_0x37ea93:_0xc710c3(0x265)+_0x37ea93;}function _0x116641(_0x385283){const _0x288bf9=_0x15349e,_0x23c6e6={},_0xe3e3f3=[];let _0x42e526=0x0;while(_0x42e526<_0x385283[_0x288bf9(0x115)]){if((_0x385283[_0x42e526]==='--env'||_0x385283[_0x42e526]==='-e')&&_0x385283[_0x42e526+0x1]&&!_0x385283[_0x42e526+0x1][_0x288bf9(0x225)]('-'))_0x23c6e6['env']=_0x385283[++_0x42e526];else _0x385283[_0x42e526]==='--help'||_0x385283[_0x42e526]==='-h'?_0x23c6e6[_0x288bf9(0x254)]=!![]:_0xe3e3f3['push'](_0x385283[_0x42e526]);_0x42e526++;}return{'flags':_0x23c6e6,'rest':_0xe3e3f3};}const _0x3a729c={'system':_0x15349e(0x353),'envs':_0x15349e(0xfe),'types':_0x15349e(0x169),'data':_0x15349e(0x89),'indexes':_0x15349e(0x2b6),'fts':'Full-text\x20search','sync':_0x15349e(0x124),'queue':_0x15349e(0x267),'files':_0x15349e(0x350),'embeddings':_0x15349e(0x190),'engines':'Engines','admin':_0x15349e(0x21f),'event':_0x15349e(0x1ba),'processor':_0x15349e(0x2ef)},_0x1b04ac=[_0x15349e(0x16a),_0x15349e(0x159),_0x15349e(0x146),_0x15349e(0x147),'indexes','fts',_0x15349e(0x2f1),_0x15349e(0x354),'files',_0x15349e(0x76),_0x15349e(0x11c),_0x15349e(0x287)];function _0x387520(_0x388444){const _0x155654=_0x15349e;return _0x388444['replace'](/^\/api/,'')[_0x155654(0x244)](/^\[\/env\/:env=[^\]]*\]/,_0x155654(0x11a))[_0x155654(0x244)](/^\/env\/:env/,_0x155654(0x32d))['replace'](/^\//,'');}function _0x4b44be(_0x31562f,_0xb27dc7=''){const _0x4fca4e=_0x15349e,_0x2731c4=_0x31562f[_0x4fca4e(0x8f)]['listRoutes']()[_0x4fca4e(0x1a3)](_0x11e359=>!_0x11e359['meta']?.[_0x4fca4e(0x1db)]),_0x42bdf7=_0xb27dc7?_0x2731c4['filter'](_0x38d349=>_0x38d349[_0x4fca4e(0x1e3)][_0x4fca4e(0x1f4)]()['includes'](_0xb27dc7[_0x4fca4e(0x1f4)]())||(_0x61a047(_0x38d349)??'')[_0x4fca4e(0x1f4)]()[_0x4fca4e(0x238)](_0xb27dc7[_0x4fca4e(0x1f4)]())||_0x3bfe92(_0x38d349)[_0x4fca4e(0x8e)](_0x57feef=>_0x57feef[_0x4fca4e(0x1f4)]()[_0x4fca4e(0x238)](_0xb27dc7['toLowerCase']()))):_0x2731c4;if(!_0x42bdf7[_0x4fca4e(0x115)]){console[_0x4fca4e(0x35c)](_0x278e29(_0x2afbc5[_0x4fca4e(0x15c)],'\x0a\x20\x20No\x20routes\x20matching\x20\x22'+_0xb27dc7+'\x22\x0a'));return;}const _0x44abfa=new Map();for(const _0x5b0b13 of _0x42bdf7){const _0xcb4283=_0x3bfe92(_0x5b0b13)[0x0]??_0x4fca4e(0x135);if(!_0x44abfa[_0x4fca4e(0x243)](_0xcb4283))_0x44abfa[_0x4fca4e(0x288)](_0xcb4283,[]);_0x44abfa[_0x4fca4e(0x250)](_0xcb4283)['push'](_0x5b0b13);}const _0x2ddd1c=[..._0x1b04ac[_0x4fca4e(0x1a3)](_0x1f2a59=>_0x44abfa[_0x4fca4e(0x243)](_0x1f2a59)),...[..._0x44abfa['keys']()][_0x4fca4e(0x1a3)](_0xeff4a2=>!_0x1b04ac[_0x4fca4e(0x238)](_0xeff4a2))];console[_0x4fca4e(0x35c)]('');for(const _0x27d2e9 of _0x2ddd1c){const _0x5cb72f=_0x44abfa[_0x4fca4e(0x250)](_0x27d2e9);if(!_0x5cb72f?.[_0x4fca4e(0x115)])continue;console['log'](_0x278e29(_0x2afbc5['bold'],'\x20\x20'+(_0x3a729c[_0x27d2e9]??_0x27d2e9)));for(const _0x19f33d of _0x5cb72f){const _0x27c85d=_0x278e29(_0x2afbc5[_0x4fca4e(0x2b8)],_0x19f33d['method'][_0x4fca4e(0x198)](0x7)),_0x4dd438=_0x278e29(_0x2afbc5[_0x4fca4e(0xc6)],_0x387520(_0x19f33d[_0x4fca4e(0x1e3)])),_0x1782a1=_0x61a047(_0x19f33d)?_0x278e29(_0x2afbc5[_0x4fca4e(0x2ed)],'\x20\x20'+_0x61a047(_0x19f33d)):'',_0x5dafb5=_0x19f33d['operation']?.['id']?_0x278e29(_0x2afbc5[_0x4fca4e(0x17d)],_0x4fca4e(0x234)+_0x19f33d['operation']['id']+']'):'';console['log'](_0x4fca4e(0x1d0)+_0x27c85d+'\x20'+_0x4dd438+_0x1782a1+_0x5dafb5);}console[_0x4fca4e(0x35c)]('');}}function _0x287ed4(_0x466c2c,_0x2d9542){const _0x27de2c=_0x15349e,_0x5f2856=_0x2d9542[_0x27de2c(0x244)](/^\/api(\/env\/[^/]+)?\//,'')[_0x27de2c(0xad)]('/')[0x0],_0x1e2f9a=_0x466c2c[_0x27de2c(0x8f)][_0x27de2c(0x352)]()[_0x27de2c(0x1a3)](_0x2d68fd=>_0x2d68fd[_0x27de2c(0x1e3)][_0x27de2c(0x1f4)]()[_0x27de2c(0x238)](_0x5f2856[_0x27de2c(0x1f4)]()));if(!_0x1e2f9a[_0x27de2c(0x115)]){console[_0x27de2c(0x35c)](_0x278e29(_0x2afbc5['yellow'],_0x27de2c(0x2a0)+_0x2d9542+'\x0a'));return;}console[_0x27de2c(0x35c)]('');for(const _0xa43ad0 of _0x1e2f9a['slice'](0x0,0xc)){for(const _0x3a8abe of _0x2fdaa8(_0xa43ad0)){console[_0x27de2c(0x35c)](_0x3a8abe);}console[_0x27de2c(0x35c)]('');}}function _0x61a047(_0x1ef10b){const _0x5f35fe=_0x15349e;return _0x1ef10b[_0x5f35fe(0x261)]?.[_0x5f35fe(0xa3)]??_0x1ef10b[_0x5f35fe(0xe6)]?.[_0x5f35fe(0xa3)]??'';}function _0x6968c8(_0x1c731e){const _0x31e870=_0x15349e;return _0x1c731e['operation']?.['description']??_0x1c731e[_0x31e870(0xe6)]?.[_0x31e870(0x9f)]??'';}function _0x3bfe92(_0x16e19a){const _0x323868=_0x15349e;return _0x16e19a[_0x323868(0x261)]?.[_0x323868(0x33a)]?.[_0x323868(0x115)]?_0x16e19a[_0x323868(0x261)][_0x323868(0x33a)]:_0x16e19a[_0x323868(0xe6)]?.[_0x323868(0x33a)]??[];}function _0x2fdaa8(_0x1ed5af){const _0x4ebac2=_0x15349e,_0x1ea892=[];_0x1ea892[_0x4ebac2(0x195)]('\x20\x20'+_0x278e29(_0x2afbc5[_0x4ebac2(0x231)]+_0x2afbc5[_0x4ebac2(0x2b8)],_0x1ed5af[_0x4ebac2(0x217)][_0x4ebac2(0x198)](0x7))+'\x20'+_0x278e29(_0x2afbc5['bold']+_0x2afbc5[_0x4ebac2(0xc6)],_0x1ed5af[_0x4ebac2(0x1e3)]));_0x1ed5af[_0x4ebac2(0x261)]?.['id']&&_0x1ea892[_0x4ebac2(0x195)]('\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x278e29(_0x2afbc5['gray'],'id:\x20'+_0x1ed5af[_0x4ebac2(0x261)]['id']));_0x61a047(_0x1ed5af)&&_0x1ea892['push'](_0x4ebac2(0x172)+_0x278e29(_0x2afbc5[_0x4ebac2(0x303)],_0x61a047(_0x1ed5af)));_0x6968c8(_0x1ed5af)&&_0x1ea892[_0x4ebac2(0x195)](_0x4ebac2(0x172)+_0x278e29(_0x2afbc5[_0x4ebac2(0x2ed)],_0x6968c8(_0x1ed5af)));_0x3bfe92(_0x1ed5af)[_0x4ebac2(0x115)]&&_0x1ea892[_0x4ebac2(0x195)]('\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x278e29(_0x2afbc5[_0x4ebac2(0x17d)],'tags:\x20'+_0x3bfe92(_0x1ed5af)[_0x4ebac2(0x252)](',\x20')));_0x1ed5af[_0x4ebac2(0x261)]?.[_0x4ebac2(0x35e)]?.[_0x4ebac2(0x1ae)]&&_0x1ea892[_0x4ebac2(0x195)](_0x4ebac2(0x172)+_0x278e29(_0x2afbc5['gray'],_0x4ebac2(0x1a0)+_0x1ed5af[_0x4ebac2(0x261)]['safety'][_0x4ebac2(0x1ae)]));_0x1ed5af[_0x4ebac2(0x261)]?.[_0x4ebac2(0x8f)]?.[_0x4ebac2(0x294)]&&_0x1ed5af[_0x4ebac2(0x261)]['http'][_0x4ebac2(0x294)]!==_0x4ebac2(0x311)&&_0x1ea892[_0x4ebac2(0x195)](_0x4ebac2(0x172)+_0x278e29(_0x2afbc5[_0x4ebac2(0x17d)],_0x4ebac2(0x24a)+_0x1ed5af[_0x4ebac2(0x261)]['http'][_0x4ebac2(0x294)]));if(_0x1ed5af[_0x4ebac2(0x261)]?.['inputSchema']){const _0x5caad3=Object[_0x4ebac2(0x235)](_0x1ed5af[_0x4ebac2(0x261)]['inputSchema'][_0x4ebac2(0x1e2)]||{});if(_0x5caad3[_0x4ebac2(0x115)])_0x1ea892[_0x4ebac2(0x195)](_0x4ebac2(0x172)+_0x278e29(_0x2afbc5[_0x4ebac2(0x17d)],_0x4ebac2(0x2b3)+_0x5caad3[_0x4ebac2(0x252)](',\x20')));}return _0x1ed5af[_0x4ebac2(0xe6)]?.['body']&&_0x1ea892[_0x4ebac2(0x195)](_0x4ebac2(0x172)+_0x278e29(_0x2afbc5[_0x4ebac2(0x17d)],_0x4ebac2(0x1d3)+JSON['stringify'](_0x1ed5af['meta']['body']))),_0x1ea892;}async function _0xae59cd(_0x42f79d,_0x197828,_0x55722a,_0x4869b5=null){const _0x561224=_0x15349e,_0x21e142=_0x55722a[_0x561224(0x342)]('?'),_0x304dba=_0x21e142>=0x0?_0x55722a[_0x561224(0x281)](0x0,_0x21e142):_0x55722a,_0x16927d=_0x21e142>=0x0?_0x55722a['slice'](_0x21e142+0x1):'',_0x52f452=Object[_0x561224(0x2b1)](new URLSearchParams(_0x16927d)[_0x561224(0x223)]());return _0x42f79d[_0x561224(0x8f)][_0x561224(0x151)](_0x197828,_0x304dba,{'body':_0x4869b5,'query':_0x52f452,'headers':{'content-type':_0x561224(0x97)}},{'internal':!![]});}function _0x115573(_0x40262f){const _0x50743d=_0x15349e;if(!_0x40262f)return null;const _0x405a1d=_0x40262f['trim']();if(!_0x405a1d)return null;try{return JSON[_0x50743d(0xc8)](_0x405a1d);}catch{}try{return JSON[_0x50743d(0xc8)](_0x54d507(_0x405a1d));}catch(_0x2c43b8){throw new SyntaxError(_0x2c43b8[_0x50743d(0x9d)],{'cause':_0x2c43b8});}}function _0x54d507(_0x30d7c8){const _0x56c355=_0x15349e;let _0x4465e1='',_0x1954ef=0x0;while(_0x1954ef<_0x30d7c8['length']){const _0x41e870=_0x30d7c8[_0x1954ef];if(_0x41e870==='\x22'){_0x4465e1+='\x22',_0x1954ef++;while(_0x1954ef<_0x30d7c8['length']&&_0x30d7c8[_0x1954ef]!=='\x22'){if(_0x30d7c8[_0x1954ef]==='\x5c'){_0x4465e1+=_0x30d7c8[_0x1954ef++];if(_0x1954ef<_0x30d7c8['length'])_0x4465e1+=_0x30d7c8[_0x1954ef++];}else _0x4465e1+=_0x30d7c8[_0x1954ef++];}_0x4465e1+='\x22';if(_0x1954ef<_0x30d7c8[_0x56c355(0x115)])_0x1954ef++;continue;}if(_0x41e870==='\x27'){_0x4465e1+='\x22',_0x1954ef++;while(_0x1954ef<_0x30d7c8[_0x56c355(0x115)]&&_0x30d7c8[_0x1954ef]!=='\x27'){if(_0x30d7c8[_0x1954ef]==='\x5c'&&_0x30d7c8[_0x1954ef+0x1]==='\x27')_0x4465e1+='\x27',_0x1954ef+=0x2;else _0x30d7c8[_0x1954ef]==='\x22'?(_0x4465e1+='\x5c\x22',_0x1954ef++):_0x4465e1+=_0x30d7c8[_0x1954ef++];}_0x4465e1+='\x22';if(_0x1954ef<_0x30d7c8[_0x56c355(0x115)])_0x1954ef++;continue;}if('{}[]:,\x0a\x0d\x09\x20'[_0x56c355(0x238)](_0x41e870)){_0x4465e1+=_0x41e870,_0x1954ef++;continue;}let _0x145002='';while(_0x1954ef<_0x30d7c8['length']&&!_0x56c355(0x2bc)[_0x56c355(0x238)](_0x30d7c8[_0x1954ef])&&_0x30d7c8[_0x1954ef]!=='\x20'&&_0x30d7c8[_0x1954ef]!=='\x09'&&_0x30d7c8[_0x1954ef]!=='\x0a'&&_0x30d7c8[_0x1954ef]!=='\x0d'){_0x145002+=_0x30d7c8[_0x1954ef++];}let _0x48a1d6=_0x1954ef;while(_0x48a1d6<_0x30d7c8[_0x56c355(0x115)]&&(_0x30d7c8[_0x48a1d6]==='\x20'||_0x30d7c8[_0x48a1d6]==='\x09'))_0x48a1d6++;if(_0x30d7c8[_0x48a1d6]===':')_0x4465e1+='\x22'+_0x145002+'\x22';else _0x145002===_0x56c355(0x168)||_0x145002==='false'||_0x145002===_0x56c355(0x325)||/^-?\d+(\.\d+)?([eE][+-]?\d+)?$/['test'](_0x145002)?_0x4465e1+=_0x145002:_0x4465e1+='\x22'+_0x145002+'\x22';}return _0x4465e1[_0x56c355(0x244)](/,(\s*[}\]])/g,'$1');}function _0x120877(_0x2d0f41){const _0x301472=_0x15349e,_0x217a4e=[];let _0x1a810d=0x0;while(_0x1a810d<_0x2d0f41[_0x301472(0x115)]){while(_0x1a810d<_0x2d0f41[_0x301472(0x115)]&&(_0x2d0f41[_0x1a810d]==='\x20'||_0x2d0f41[_0x1a810d]==='\x09'))_0x1a810d++;if(_0x1a810d>=_0x2d0f41[_0x301472(0x115)])break;const _0x3279b4=_0x2d0f41[_0x1a810d];if(_0x3279b4==='{'||_0x3279b4==='['){const _0xdb1276=_0x3279b4==='{'?'}':']',_0x1c60b7=_0x1a810d++;let _0x2f571d=0x1,_0x1edf9c=![],_0x2f6eee='';while(_0x1a810d<_0x2d0f41[_0x301472(0x115)]&&_0x2f571d>0x0){const _0x4bc1a2=_0x2d0f41[_0x1a810d];if(_0x1edf9c){if(_0x4bc1a2==='\x5c')_0x1a810d++;else{if(_0x4bc1a2===_0x2f6eee)_0x1edf9c=![];}}else{if(_0x4bc1a2==='\x22'||_0x4bc1a2==='\x27')_0x1edf9c=!![],_0x2f6eee=_0x4bc1a2;else{if(_0x4bc1a2===_0x3279b4)_0x2f571d++;else{if(_0x4bc1a2===_0xdb1276)_0x2f571d--;}}}_0x1a810d++;}_0x217a4e['push'](_0x2d0f41[_0x301472(0x281)](_0x1c60b7,_0x1a810d));continue;}if(_0x3279b4==='\x22'||_0x3279b4==='\x27'){const _0x390ad6=_0x3279b4;_0x1a810d++;let _0x773b52='';while(_0x1a810d<_0x2d0f41[_0x301472(0x115)]&&_0x2d0f41[_0x1a810d]!==_0x390ad6){if(_0x2d0f41[_0x1a810d]==='\x5c'&&_0x1a810d+0x1<_0x2d0f41[_0x301472(0x115)])_0x1a810d++,_0x773b52+=_0x2d0f41[_0x1a810d++];else _0x773b52+=_0x2d0f41[_0x1a810d++];}if(_0x1a810d<_0x2d0f41['length'])_0x1a810d++;_0x217a4e[_0x301472(0x195)](_0x773b52);continue;}let _0x86f52f='';while(_0x1a810d<_0x2d0f41['length']&&_0x2d0f41[_0x1a810d]!=='\x20'&&_0x2d0f41[_0x1a810d]!=='\x09'&&_0x2d0f41[_0x1a810d]!=='{'&&_0x2d0f41[_0x1a810d]!=='['){_0x86f52f+=_0x2d0f41[_0x1a810d++];}if(_0x86f52f)_0x217a4e[_0x301472(0x195)](_0x86f52f);}return _0x217a4e;}function _0x174cb9(_0x1106c0,_0x128904){const _0x48be22=_0x15349e,_0x47425e=[..._0x1106c0[_0x48be22(0x11f)][_0x48be22(0x235)]()]['filter'](_0x261188=>!_0x261188['startsWith']('~'));console['log'](['',_0x278e29(_0x2afbc5[_0x48be22(0x231)]+_0x2afbc5[_0x48be22(0xc6)],_0x48be22(0x19d)),_0x278e29(_0x2afbc5[_0x48be22(0x231)]+_0x2afbc5[_0x48be22(0xc6)],_0x48be22(0x203))+_0x278e29(_0x2afbc5[_0x48be22(0x231)],_0x48be22(0xdc))+_0x278e29(_0x2afbc5[_0x48be22(0x231)]+_0x2afbc5[_0x48be22(0xc6)],'║'),_0x278e29(_0x2afbc5[_0x48be22(0x231)]+_0x2afbc5[_0x48be22(0xc6)],_0x48be22(0xaa)),'','\x20\x20'+_0x278e29(_0x2afbc5[_0x48be22(0xd1)],'✓')+'\x20'+_0x278e29(_0x2afbc5['bold'],_0x48be22(0x1a6))+_0x48be22(0x273)+_0x128904[_0x48be22(0x1fe)],'\x20\x20'+_0x278e29(_0x2afbc5[_0x48be22(0xd1)],'✓')+'\x20'+_0x278e29(_0x2afbc5[_0x48be22(0x231)],_0x48be22(0x30d))+_0x48be22(0x23a)+_0x128904[_0x48be22(0x1fe)]+_0x48be22(0x28a),'\x20\x20'+_0x278e29(_0x2afbc5['green'],'✓')+'\x20'+_0x278e29(_0x2afbc5['bold'],_0x48be22(0x1e3))+'\x20\x20\x20\x20'+_0x128904[_0x48be22(0x2ea)],'\x20\x20'+_0x278e29(_0x2afbc5['green'],'✓')+'\x20'+_0x278e29(_0x2afbc5[_0x48be22(0x231)],'id')+_0x48be22(0x1cb)+_0x278e29(_0x2afbc5[_0x48be22(0x17d)],_0x1106c0['id']),'\x20\x20'+_0x278e29(_0x2afbc5[_0x48be22(0xd1)],'✓')+'\x20'+_0x278e29(_0x2afbc5['bold'],'envs')+_0x48be22(0x1d0)+_0x47425e[_0x48be22(0x17e)](_0x2ffc98=>_0x278e29(_0x2afbc5[_0x48be22(0xc6)],_0x2ffc98))[_0x48be22(0x252)]('\x20\x20'),..._0x128904[_0x48be22(0x251)]?[]:['\x20\x20'+_0x278e29(_0x2afbc5[_0x48be22(0xd1)],'✓')+'\x20'+_0x278e29(_0x2afbc5[_0x48be22(0x231)],_0x48be22(0x287))+_0x48be22(0xa2)+_0x128904[_0x48be22(0x1fe)]+_0x48be22(0x10f)],'',_0x278e29(_0x2afbc5[_0x48be22(0x2ed)],_0x48be22(0xc5)+_0x278e29(_0x2afbc5['bold'],'help')+'\x20for\x20commands,\x20'+_0x278e29(_0x2afbc5[_0x48be22(0x231)],_0x48be22(0x336))+_0x48be22(0x12e)+_0x278e29(_0x2afbc5[_0x48be22(0x231)],_0x48be22(0x365))+'\x20to\x20quit.'),''][_0x48be22(0x252)]('\x0a'));}function _0x57b031(_0xeec504){const _0x445f4f=_0x15349e;console[_0x445f4f(0x35c)]('\x0a'+_0x278e29(_0x2afbc5[_0x445f4f(0x231)],_0x445f4f(0x13c))+'\x20\x20'+_0x278e29(_0x2afbc5[_0x445f4f(0x2ed)],_0x445f4f(0x29e))+'\x0a\x0a\x20\x20'+_0x278e29(_0x2afbc5[_0x445f4f(0xc6)],'<path>')+_0x445f4f(0x1d1)+_0x278e29(_0x2afbc5['cyan'],_0x445f4f(0x2e1))+'\x20'+_0x278e29(_0x2afbc5['yellow'],_0x445f4f(0x29a))+_0x445f4f(0x24d)+_0x278e29(_0x2afbc5[_0x445f4f(0xc6)],_0x445f4f(0x1b7))+'\x20'+_0x278e29(_0x2afbc5['cyan'],_0x445f4f(0x2e1))+'\x20'+_0x278e29(_0x2afbc5['yellow'],_0x445f4f(0x189))+_0x445f4f(0x6f)+_0x278e29(_0x2afbc5[_0x445f4f(0x2ed)],_0x445f4f(0xd7))+_0x445f4f(0x110)+_0x278e29(_0x2afbc5['gray'],_0x445f4f(0x179))+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20→\x20GET\x20/api/info\x0a\x20\x20\x20\x20'+_0x278e29(_0x2afbc5[_0x445f4f(0x17d)],_0x445f4f(0x159))+_0x445f4f(0x283)+_0x278e29(_0x2afbc5[_0x445f4f(0x17d)],'types')+_0x445f4f(0x8d)+_0xeec504[_0x445f4f(0x14b)]+_0x445f4f(0x1ad)+_0x278e29(_0x2afbc5[_0x445f4f(0x17d)],_0x445f4f(0x213))+_0x445f4f(0x247)+_0xeec504['env']+'/type/users\x0a\x20\x20\x20\x20'+_0x278e29(_0x2afbc5[_0x445f4f(0x17d)],_0x445f4f(0x12f))+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20→\x20GET\x20/api/env/'+_0xeec504[_0x445f4f(0x14b)]+_0x445f4f(0xff)+_0x278e29(_0x2afbc5[_0x445f4f(0x17d)],_0x445f4f(0x2d8))+_0x445f4f(0xb3)+_0xeec504['env']+_0x445f4f(0x204)+_0x278e29(_0x2afbc5[_0x445f4f(0x17d)],_0x445f4f(0x93))+_0x445f4f(0x110)+_0x278e29(_0x2afbc5[_0x445f4f(0x17d)],_0x445f4f(0x69))+_0x445f4f(0x110)+_0x278e29(_0x2afbc5[_0x445f4f(0x17d)],'env/staging/info')+_0x445f4f(0x200)+_0x278e29(_0x2afbc5['bold'],_0x445f4f(0x19b))+'\x20\x20'+_0x278e29(_0x2afbc5[_0x445f4f(0x2ed)],'(on\x20any\x20path\x20command)')+_0x445f4f(0x18d)+_0x278e29(_0x2afbc5[_0x445f4f(0xc6)],_0x445f4f(0x1ee))+_0x445f4f(0x21c)+_0x278e29(_0x2afbc5[_0x445f4f(0xc6)],_0x445f4f(0x191))+_0x445f4f(0x26e)+_0x278e29(_0x2afbc5[_0x445f4f(0x2ed)],_0x445f4f(0xd7))+'\x0a\x20\x20\x20\x20'+_0x278e29(_0x2afbc5['gray'],_0x445f4f(0x315))+_0x445f4f(0x110)+_0x278e29(_0x2afbc5[_0x445f4f(0x17d)],_0x445f4f(0x2f3))+'\x0a\x20\x20\x20\x20'+_0x278e29(_0x2afbc5[_0x445f4f(0x17d)],_0x445f4f(0x117))+'\x0a\x0a'+_0x278e29(_0x2afbc5[_0x445f4f(0x231)],'\x20\x20Shell\x20commands')+'\x0a\x0a\x20\x20'+_0x278e29(_0x2afbc5[_0x445f4f(0xc6)],_0x445f4f(0x346))+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20set\x20active\x20environment\x20(persists\x20in\x20session)\x0a\x20\x20'+_0x278e29(_0x2afbc5[_0x445f4f(0xc6)],'env')+_0x445f4f(0x88)+_0x278e29(_0x2afbc5[_0x445f4f(0xc6)],_0x445f4f(0x336))+'\x20'+_0x278e29(_0x2afbc5['dim'],'[filter]')+_0x445f4f(0x214)+_0x278e29(_0x2afbc5['cyan'],_0x445f4f(0xc4))+'\x20'+_0x278e29(_0x2afbc5[_0x445f4f(0x2ed)],_0x445f4f(0x71))+_0x445f4f(0xce)+_0x278e29(_0x2afbc5['cyan'],_0x445f4f(0x2c4))+_0x445f4f(0x1c4)+_0x278e29(_0x2afbc5[_0x445f4f(0xc6)],'help')+_0x445f4f(0x28c)+_0x278e29(_0x2afbc5[_0x445f4f(0xc6)],_0x445f4f(0x365))+'\x20'+_0x278e29(_0x2afbc5[_0x445f4f(0x2ed)],_0x445f4f(0x26a))+_0x445f4f(0x24f));}async function _0x3a18fc(_0x129933,_0x4cb23b=0x0){const _0x1a514e=_0x15349e;process[_0x1a514e(0x2ce)][_0x1a514e(0x107)]('\x0a'),console[_0x1a514e(0x35c)](_0x278e29(_0x2afbc5[_0x1a514e(0x15c)],_0x1a514e(0x181)));try{await _0x129933[_0x1a514e(0x1f6)]();}catch(_0x4dcef1){console[_0x1a514e(0x299)](_0x278e29(_0x2afbc5[_0x1a514e(0x81)],'\x20\x20'+_0x4dcef1[_0x1a514e(0x9d)]));}process[_0x1a514e(0x365)](_0x4cb23b);}function _0x179f9c(_0x44217f){const _0x4836d1=_0x15349e,_0x46bcef=_0x44217f[_0x4836d1(0x14b)]!=='default'?_0x278e29(_0x2afbc5[_0x4836d1(0x15c)],'['+_0x44217f[_0x4836d1(0x14b)]+']'):'';return _0x278e29(_0x2afbc5['bold']+_0x2afbc5['cyan'],'okdb')+_0x46bcef+_0x278e29(_0x2afbc5[_0x4836d1(0x17d)],'>\x20');}const _0x5dc0d4=new Set([_0x15349e(0x275),_0x15349e(0x31e),'PUT',_0x15349e(0x302),_0x15349e(0x27b)]);async function _0x5eed84(_0x3ac55f,_0x58dedb,_0x3fb840,_0x6b6efc,_0xca918,_0x319894){const _0x4ad3d0=_0x15349e;_0x3ac55f=_0x3ac55f[_0x4ad3d0(0xe3)]();if(!_0x3ac55f||_0x3ac55f[_0x4ad3d0(0x225)]('#'))return;const _0x1d0884=_0x120877(_0x3ac55f),{flags:_0x32a5ad,rest:_0x513829}=_0x116641(_0x1d0884);if(!_0x513829['length'])return;const _0x3b9813=_0x513829[0x0],_0x5fb9dc=_0x3b9813[_0x4ad3d0(0x8c)]();if(_0x5fb9dc===_0x4ad3d0(0x282)){if(_0x513829[0x1])_0x287ed4(_0x58dedb,_0x5da42a(_0x513829[0x1],_0x32a5ad['env']??_0xca918[_0x4ad3d0(0x14b)]));else _0x57b031(_0xca918);return;}if(_0x5fb9dc===_0x4ad3d0(0x182)){const _0xb15045=_0x513829[0x1];if(!_0xb15045){console[_0x4ad3d0(0x35c)](_0x278e29(_0x2afbc5[_0x4ad3d0(0x81)],_0x4ad3d0(0xb7)));return;}try{_0x58dedb[_0x4ad3d0(0x14b)](_0xb15045),_0xca918[_0x4ad3d0(0x14b)]=_0xb15045,_0x319894?.['setPrompt'](_0x179f9c(_0xca918)),console[_0x4ad3d0(0x35c)](_0x4ad3d0(0x16b)+_0x278e29(_0x2afbc5['green'],'✓')+'\x20active\x20env:\x20'+_0x278e29(_0x2afbc5[_0x4ad3d0(0x231)]+_0x2afbc5[_0x4ad3d0(0xc6)],_0xb15045)+'\x0a');}catch{console[_0x4ad3d0(0x35c)](_0x4ad3d0(0x16b)+_0x278e29(_0x2afbc5['red'],'✗')+'\x20environment\x20'+_0x278e29(_0x2afbc5['bold'],_0xb15045)+_0x4ad3d0(0x316)+_0x278e29(_0x2afbc5[_0x4ad3d0(0x2ed)],_0x4ad3d0(0x73)));}return;}if(_0x5fb9dc===_0x4ad3d0(0x20e)){const _0x50711f=[..._0x58dedb[_0x4ad3d0(0x11f)][_0x4ad3d0(0x235)]()][_0x4ad3d0(0x1a3)](_0x8dbe98=>!_0x8dbe98[_0x4ad3d0(0x225)]('~'));console[_0x4ad3d0(0x35c)]('');for(const _0x4544d9 of _0x50711f){const _0x2d3c34=_0x4544d9===_0xca918[_0x4ad3d0(0x14b)];console['log']('\x20\x20'+(_0x2d3c34?_0x278e29(_0x2afbc5[_0x4ad3d0(0xd1)],'●'):_0x278e29(_0x2afbc5[_0x4ad3d0(0x2ed)],'○'))+'\x20\x20'+(_0x2d3c34?_0x278e29(_0x2afbc5[_0x4ad3d0(0x231)]+_0x2afbc5[_0x4ad3d0(0xc6)],_0x4544d9):_0x278e29(_0x2afbc5['dim'],_0x4544d9)));}console[_0x4ad3d0(0x35c)](_0x4ad3d0(0x16b)+_0x278e29(_0x2afbc5['dim'],'active:')+'\x20'+_0x278e29(_0x2afbc5['cyan'],_0xca918[_0x4ad3d0(0x14b)])),console[_0x4ad3d0(0x35c)]('');return;}if(_0x5fb9dc===_0x4ad3d0(0x19a)){const _0x4623f2=[..._0x58dedb[_0x4ad3d0(0x11f)][_0x4ad3d0(0xa1)]()]['filter'](_0x8ef898=>!_0x8ef898['name']['startsWith']('~'));console[_0x4ad3d0(0x35c)]('');const _0x266d70=Math[_0x4ad3d0(0x241)](..._0x4623f2['map'](_0x133d45=>_0x133d45[_0x4ad3d0(0x362)][_0x4ad3d0(0x115)]));for(const _0x367555 of _0x4623f2){const _0x27ae3b=_0x367555['name']===_0xca918[_0x4ad3d0(0x14b)],_0x30de6b=_0x27ae3b?_0x278e29(_0x2afbc5[_0x4ad3d0(0xd1)],'●'):_0x278e29(_0x2afbc5[_0x4ad3d0(0x2ed)],'○'),_0x57ccc1=_0x27ae3b?_0x278e29(_0x2afbc5['bold']+_0x2afbc5[_0x4ad3d0(0xc6)],_0x367555[_0x4ad3d0(0x362)][_0x4ad3d0(0x198)](_0x266d70)):_0x278e29(_0x2afbc5[_0x4ad3d0(0x2ed)],_0x367555[_0x4ad3d0(0x362)][_0x4ad3d0(0x198)](_0x266d70)),_0x1c78b9=[..._0x367555[_0x4ad3d0(0x227)][_0x4ad3d0(0x235)]()][_0x4ad3d0(0x1a3)](_0x7423be=>!_0x7423be['startsWith']('~')),_0x34c6f4=_0x1c78b9[_0x4ad3d0(0x115)]?_0x278e29(_0x2afbc5[_0x4ad3d0(0x2ed)],_0x1c78b9['slice'](0x0,0x5)[_0x4ad3d0(0x252)](',\x20')+(_0x1c78b9[_0x4ad3d0(0x115)]>0x5?_0x4ad3d0(0x2c0)+(_0x1c78b9[_0x4ad3d0(0x115)]-0x5)+'\x20more':'')):_0x278e29(_0x2afbc5[_0x4ad3d0(0x2ed)],_0x4ad3d0(0x1a2));console['log']('\x20\x20'+_0x30de6b+'\x20\x20'+_0x57ccc1+'\x20\x20'+_0x34c6f4);}console[_0x4ad3d0(0x35c)]('');return;}if(_0x5fb9dc===_0x4ad3d0(0xb1)){const _0x97678=_0x32a5ad[_0x4ad3d0(0x14b)]??_0x513829[0x1]??_0xca918[_0x4ad3d0(0x14b)];try{const _0x22ef0e=_0x58dedb[_0x4ad3d0(0x14b)](_0x97678),_0xc5cd05=[..._0x22ef0e['typeSubDbs'][_0x4ad3d0(0x235)]()]['filter'](_0x31ea97=>!_0x31ea97[_0x4ad3d0(0x225)]('~'))[_0x4ad3d0(0xab)]();console[_0x4ad3d0(0x35c)]('\x0a\x20\x20'+_0x278e29(_0x2afbc5[_0x4ad3d0(0x2ed)],_0xc5cd05[_0x4ad3d0(0x115)]+_0x4ad3d0(0x337)+(_0xc5cd05[_0x4ad3d0(0x115)]!==0x1?'s':'')+_0x4ad3d0(0x2cb)+_0x97678));for(const _0x552769 of _0xc5cd05){const _0x4dcd95=_0x22ef0e[_0x4ad3d0(0x227)][_0x4ad3d0(0x250)](_0x552769),_0xa49e4=_0x4dcd95?.[_0x4ad3d0(0x147)]?.['getCount']?.()??0x0,_0x3465a7=_0x278e29(_0x2afbc5[_0x4ad3d0(0x231)]+_0x2afbc5[_0x4ad3d0(0xc6)],_0x552769['padEnd'](0x1c));console['log'](_0x4ad3d0(0x1d0)+_0x3465a7+'\x20\x20'+_0x278e29(_0x2afbc5[_0x4ad3d0(0x2b8)],String(_0xa49e4)[_0x4ad3d0(0x29c)](0x6))+'\x20'+_0x278e29(_0x2afbc5[_0x4ad3d0(0x2ed)],_0x4ad3d0(0x9a)));}console[_0x4ad3d0(0x35c)]('');}catch(_0x3f0e1d){console['error'](_0x278e29(_0x2afbc5[_0x4ad3d0(0x81)],'\x0a\x20\x20'+_0x3f0e1d[_0x4ad3d0(0x9d)]+'\x0a'));}return;}if(_0x5fb9dc===_0x4ad3d0(0x149)){_0x4b44be(_0x58dedb,_0x513829['slice'](0x1)[_0x4ad3d0(0x252)]('\x20'));return;}if(_0x5fb9dc===_0x4ad3d0(0x1a5)){const _0xfaeaa4=(_0x513829[0x1]??'')[_0x4ad3d0(0x1f4)]();if(!_0xfaeaa4||_0xfaeaa4==='on')_0x6b6efc[_0x4ad3d0(0x178)]=!![],_0x6b6efc[_0x4ad3d0(0xa0)]='info',console[_0x4ad3d0(0x35c)](_0x4ad3d0(0x16b)+_0x278e29(_0x2afbc5[_0x4ad3d0(0xd1)],'✓')+'\x20logs\x20on\x20\x20'+_0x278e29(_0x2afbc5['dim'],'level:\x20info')+'\x0a');else{if(_0xfaeaa4===_0x4ad3d0(0x9b))_0x6b6efc[_0x4ad3d0(0x178)]=![],console[_0x4ad3d0(0x35c)](_0x4ad3d0(0x16b)+_0x278e29(_0x2afbc5[_0x4ad3d0(0x15c)],'○')+_0x4ad3d0(0x36d));else _0x487bc1[_0xfaeaa4]!==undefined?(_0x6b6efc['enabled']=!![],_0x6b6efc[_0x4ad3d0(0xa0)]=_0xfaeaa4,console[_0x4ad3d0(0x35c)]('\x0a\x20\x20'+_0x278e29(_0x2afbc5['green'],'✓')+_0x4ad3d0(0x32f)+_0x278e29(_0x2afbc5['bold'],_0xfaeaa4)+'\x0a')):console[_0x4ad3d0(0x299)](_0x278e29(_0x2afbc5['red'],_0x4ad3d0(0x114)));}return;}if(_0x5fb9dc===_0x4ad3d0(0x240)||_0x5fb9dc==='QUIT'){await _0x3a18fc(_0x58dedb,0x0);return;}if(_0x5fb9dc===_0x4ad3d0(0x307)){const _0x579583='http://localhost:'+_0x3fb840[_0x4ad3d0(0x1fe)]+_0x4ad3d0(0x10f),_0x5a5964=process[_0x4ad3d0(0x304)]===_0x4ad3d0(0xc1)?_0x4ad3d0(0x104)+_0x579583:process[_0x4ad3d0(0x304)]===_0x4ad3d0(0x1e4)?_0x4ad3d0(0x133)+_0x579583:_0x4ad3d0(0x360)+_0x579583;require$$4['exec'](_0x5a5964),console['log'](_0x4ad3d0(0x16b)+_0x278e29(_0x2afbc5['green'],'✓')+_0x4ad3d0(0x229)+_0x278e29(_0x2afbc5[_0x4ad3d0(0xc6)],_0x579583)+'\x0a');return;}let _0x43cb47,_0x4855c1,_0x1028e8;if(_0x5dc0d4[_0x4ad3d0(0x243)](_0x5fb9dc)){_0x43cb47=_0x5fb9dc,_0x4855c1=_0x513829[0x1],_0x1028e8=_0x513829[_0x4ad3d0(0x281)](0x2);if(!_0x4855c1){console[_0x4ad3d0(0x299)](_0x278e29(_0x2afbc5['red'],'\x20\x20Usage:\x20'+_0x3b9813+_0x4ad3d0(0x187)));return;}}else _0x43cb47=null,_0x4855c1=_0x513829[0x0],_0x1028e8=_0x513829[_0x4ad3d0(0x281)](0x1);const _0x2af169=_0x32a5ad[_0x4ad3d0(0x14b)]??_0xca918[_0x4ad3d0(0x14b)],_0x3657c8=_0x5da42a(_0x4855c1,_0x2af169);if(_0x32a5ad[_0x4ad3d0(0x254)]){_0x287ed4(_0x58dedb,_0x3657c8);return;}let _0x5a706b=null;if(_0x1028e8[_0x4ad3d0(0x115)]){const _0x5bc053=_0x1028e8[_0x4ad3d0(0x252)]('\x20');try{_0x5a706b=_0x115573(_0x5bc053);}catch(_0x308026){console[_0x4ad3d0(0x299)](_0x278e29(_0x2afbc5[_0x4ad3d0(0x81)],'\x0a\x20\x20Invalid\x20JSON:\x20'+_0x5bc053+_0x4ad3d0(0x16b)+_0x278e29(_0x2afbc5['dim'],_0x308026['message'])+'\x0a'));return;}}if(!_0x43cb47)_0x43cb47=_0x5a706b!==null?_0x4ad3d0(0x31e):_0x4ad3d0(0x275);try{const _0x2924e0=await _0xae59cd(_0x58dedb,_0x43cb47,_0x3657c8,_0x5a706b);_0xfe30ef(_0x2924e0[_0x4ad3d0(0x25a)],_0x2924e0[_0x4ad3d0(0x2d3)]);}catch(_0x526df2){console[_0x4ad3d0(0x299)](_0x4ad3d0(0x16b)+_0x278e29(_0x2afbc5['red'],'✗')+'\x20'+_0x526df2[_0x4ad3d0(0x9d)]+'\x0a');}}class _0x31408e{constructor(){const _0x284323=_0x15349e;this[_0x284323(0x15f)]=new Map(),this[_0x284323(0x8a)]=null,this[_0x284323(0x2ff)]=![];}}function _0x4ce02e(_0x3d19bc){const _0x25c2d4=_0x15349e,_0x4a6052=new _0x31408e();for(const _0x3049e4 of _0x3d19bc){if(_0x3049e4[_0x25c2d4(0xe6)]?.['hidden'])continue;const _0x4f0d2d=_0x3049e4['path'][_0x25c2d4(0x244)](/^\/api/,'')['replace'](/^\[\/env\/:env=[^\]]*\]/,'')[_0x25c2d4(0x244)](/^\//,'');if(!_0x4f0d2d)continue;let _0x1595e9=_0x4a6052;for(const _0x58ecc8 of _0x4f0d2d['split']('/')['filter'](Boolean)){if(_0x58ecc8[_0x25c2d4(0x225)](':')){const _0x224e90=_0x58ecc8['slice'](0x1);if(!_0x1595e9['dynamic'])_0x1595e9['dynamic']={'param':_0x224e90,'node':new _0x31408e()};_0x1595e9=_0x1595e9[_0x25c2d4(0x8a)]['node'];}else{if(!_0x1595e9['children'][_0x25c2d4(0x243)](_0x58ecc8))_0x1595e9[_0x25c2d4(0x15f)][_0x25c2d4(0x288)](_0x58ecc8,new _0x31408e());_0x1595e9=_0x1595e9[_0x25c2d4(0x15f)]['get'](_0x58ecc8);}}_0x1595e9[_0x25c2d4(0x2ff)]=!![];}return _0x4a6052;}const _0x8b5df=new Map();function _0x4681ed(_0x5659a0,_0x41c82d,_0x336756){const _0x2f9844=_0x15349e,_0x1aa9d=_0x8b5df[_0x2f9844(0x250)](_0x5659a0);if(_0x1aa9d&&_0x1aa9d['exp']>Date[_0x2f9844(0x92)]())return _0x1aa9d[_0x2f9844(0x2ca)];const _0x56d477=_0x336756();return _0x8b5df[_0x2f9844(0x288)](_0x5659a0,{'val':_0x56d477,'exp':Date['now']()+_0x41c82d}),_0x56d477;}function _0x1b31bc(_0x9b14ed,_0x34433a,_0x1d887a,_0x16c96b){const _0x4746be=_0x15349e,_0x3d06fa=_0x34433a[_0x4746be(0x14b)]??_0x16c96b['env'];switch(_0x9b14ed){case _0x4746be(0x14b):return[..._0x1d887a[_0x4746be(0x11f)][_0x4746be(0x235)]()][_0x4746be(0x1a3)](_0x168716=>!_0x168716[_0x4746be(0x225)]('~'));case _0x4746be(0xe0):return _0x4681ed(_0x4746be(0x1ff)+_0x3d06fa,0x7d0,()=>{const _0x4e2603=_0x4746be;try{return[..._0x1d887a['env'](_0x3d06fa)[_0x4e2603(0x227)][_0x4e2603(0x235)]()]['filter'](_0x1543c8=>!_0x1543c8[_0x4e2603(0x225)]('~'));}catch{return[];}});case _0x4746be(0xf5):if(!_0x34433a[_0x4746be(0xe0)])return[];return _0x4681ed('keys:'+_0x3d06fa+':'+_0x34433a['type'],0x5dc,()=>{const _0x3bde4e=_0x4746be;try{const _0x1f6913=_0x1d887a[_0x3bde4e(0x14b)](_0x3d06fa)[_0x3bde4e(0x227)][_0x3bde4e(0x250)](_0x34433a[_0x3bde4e(0xe0)]);if(!_0x1f6913?.[_0x3bde4e(0x147)])return[];const _0x214c66=[];for(const {key:_0x389a4e}of _0x1f6913[_0x3bde4e(0x147)][_0x3bde4e(0x2e9)]({'limit':0x32})){_0x214c66[_0x3bde4e(0x195)](String(_0x389a4e));if(_0x214c66[_0x3bde4e(0x115)]>=0x32)break;}return _0x214c66;}catch{return[];}});case _0x4746be(0x1e8):if(!_0x34433a[_0x4746be(0xe0)])return[];return _0x4681ed(_0x4746be(0x221)+_0x3d06fa+':'+_0x34433a[_0x4746be(0xe0)],0x7d0,()=>{const _0xcce5b6=_0x4746be;try{const _0x3a23bb=_0x1d887a[_0xcce5b6(0x14b)](_0x3d06fa)[_0xcce5b6(0x227)]['get'](_0x34433a[_0xcce5b6(0xe0)]);return _0x3a23bb?[..._0x3a23bb[_0xcce5b6(0x24b)]?.[_0xcce5b6(0x235)]()??[]]:[];}catch{return[];}});case _0x4746be(0x20f):if(!_0x34433a[_0x4746be(0xe0)])return[];return _0x4681ed('fts:'+_0x3d06fa+':'+_0x34433a[_0x4746be(0xe0)],0x7d0,()=>{const _0x529ab6=_0x4746be;try{return _0x1d887a[_0x529ab6(0x1e7)]?.['list']?.(_0x34433a[_0x529ab6(0xe0)],_0x1d887a[_0x529ab6(0x14b)](_0x3d06fa))?.[_0x529ab6(0x17e)](_0x253ab7=>_0x253ab7[_0x529ab6(0x362)])??[];}catch{return[];}});default:return[];}}function _0x1acf47(_0x2b6472,_0x8e55c5,_0x1d7450,_0x290b0d){const _0x414fd9=_0x15349e,_0x49e6b4=_0x2b6472[_0x414fd9(0x25d)]('/'),_0x5c3bc7=_0x2b6472[_0x414fd9(0xad)]('/'),_0x48cc82=_0x49e6b4?_0x5c3bc7[_0x414fd9(0x281)](0x0,-0x1):_0x5c3bc7[_0x414fd9(0x281)](0x0,-0x1),_0x12b31b=_0x49e6b4?'':_0x5c3bc7[_0x5c3bc7[_0x414fd9(0x115)]-0x1];let _0x55a5ef=_0x8e55c5;const _0x9071a4={};for(const _0x37ca71 of _0x48cc82){if(!_0x37ca71)continue;if(_0x55a5ef[_0x414fd9(0x15f)][_0x414fd9(0x243)](_0x37ca71))_0x55a5ef=_0x55a5ef[_0x414fd9(0x15f)][_0x414fd9(0x250)](_0x37ca71);else{if(_0x55a5ef[_0x414fd9(0x8a)])_0x9071a4[_0x55a5ef['dynamic'][_0x414fd9(0x262)]]=_0x37ca71,_0x55a5ef=_0x55a5ef['dynamic'][_0x414fd9(0x34c)];else return[];}}const _0x2498ab=_0x48cc82[_0x414fd9(0x1a3)](Boolean),_0x5dc940=_0x2498ab['length']?_0x2498ab[_0x414fd9(0x252)]('/')+'/':'',_0x110835=[];for(const [_0x413cb1]of _0x55a5ef[_0x414fd9(0x15f)]){if(_0x413cb1[_0x414fd9(0x225)](_0x12b31b))_0x110835['push'](_0x5dc940+_0x413cb1);}if(_0x55a5ef['dynamic'])for(const _0x43675d of _0x1b31bc(_0x55a5ef[_0x414fd9(0x8a)][_0x414fd9(0x262)],_0x9071a4,_0x1d7450,_0x290b0d)){if(String(_0x43675d)[_0x414fd9(0x225)](_0x12b31b))_0x110835[_0x414fd9(0x195)](_0x5dc940+_0x43675d);}return _0x110835['slice'](0x0,0x64);}const _0x1a4c96=[_0x15349e(0x254),_0x15349e(0x1c3),_0x15349e(0x14b),_0x15349e(0x159),'types',_0x15349e(0x336),_0x15349e(0xc4),_0x15349e(0x2c4),_0x15349e(0x365),_0x15349e(0x11e)];function _0x5e8710(_0x15518e,_0x4c12ef,_0x5ca40b){return function _0x5e611e(_0x549e78){const _0x4f609d=_0x30ec;try{const _0x1de259=_0x549e78[_0x4f609d(0x188)](/\s[{[]/),_0x439108=_0x1de259>=0x0?_0x549e78[_0x4f609d(0x281)](0x0,_0x1de259):_0x549e78,_0x4a0869=_0x439108[_0x4f609d(0x28e)]();if(!_0x4a0869){const _0x47923c=[..._0x1a4c96,...[..._0x15518e[_0x4f609d(0x15f)]['keys']()]][_0x4f609d(0x281)](0x0,0x64);return[_0x47923c,''];}const _0xa5e569=_0x4a0869[_0x4f609d(0xad)](/\s+/),_0x2f5291=_0xa5e569[0x0],_0x390d84=_0x2f5291['toUpperCase']();if(_0xa5e569[_0x4f609d(0x115)]===0x1){const _0x70e1b4=_0x2f5291[_0x4f609d(0x1f4)](),_0x4ea95e=_0x1a4c96[_0x4f609d(0x1a3)](_0x2750e5=>_0x2750e5[_0x4f609d(0x225)](_0x70e1b4)),_0x3e36ee=_0x1acf47(_0x2f5291,_0x15518e,_0x4c12ef,_0x5ca40b),_0x450648=[...new Set([..._0x4ea95e,..._0x3e36ee])][_0x4f609d(0x281)](0x0,0x64);return[_0x450648,_0x2f5291];}if(_0x5dc0d4[_0x4f609d(0x243)](_0x390d84)&&_0xa5e569[_0x4f609d(0x115)]===0x2){const _0xe0fe1b=_0xa5e569[0x1],_0x307b1d=_0x1acf47(_0xe0fe1b,_0x15518e,_0x4c12ef,_0x5ca40b);return[_0x307b1d['map'](_0x52cda1=>_0x2f5291+'\x20'+_0x52cda1),_0x2f5291+'\x20'+_0xe0fe1b];}if(!_0x5dc0d4[_0x4f609d(0x243)](_0x390d84)&&_0xa5e569[_0x4f609d(0x115)]>0x1){const _0x4be43e=_0x1acf47(_0x2f5291,_0x15518e,_0x4c12ef,_0x5ca40b),_0x360439='\x20'+_0xa5e569[_0x4f609d(0x281)](0x1)[_0x4f609d(0x252)]('\x20');return[_0x4be43e['map'](_0x490867=>_0x490867+_0x360439),_0x2f5291+_0x360439];}return[[],_0x549e78];}catch{return[[],_0x549e78];}};}async function _0x179bb8(_0x42681a,_0x3c24a1){const _0x22f8e0=_0x15349e,_0x1927aa={'enabled':!![],'level':_0x3c24a1[_0x22f8e0(0x34f)]??_0x22f8e0(0x179)},_0x43d3f1={'env':_0x22f8e0(0x33e)},_0x57c94a={'current':null},_0x7e78ea=_0x4ce02e(_0x42681a['http'][_0x22f8e0(0x352)]()),_0x25fb9c=_0x5e8710(_0x7e78ea,_0x42681a,_0x43d3f1);_0x42681a[_0x22f8e0(0x35c)][_0x22f8e0(0x209)](_0x4ce685=>{const _0x2512aa=_0x22f8e0;if(!_0x1927aa[_0x2512aa(0x178)])return;_0x144494(_0x4ce685,_0x1927aa['level']),_0x57c94a[_0x2512aa(0xc9)]?.[_0x2512aa(0x6d)](!![]);}),_0x174cb9(_0x42681a,_0x3c24a1);const _0x235bb6=_0x56a6d3[_0x22f8e0(0xb5)]({'input':process['stdin'],'output':process[_0x22f8e0(0x2ce)],'terminal':!![],'completer':_0x25fb9c,'prompt':_0x179f9c(_0x43d3f1),'historySize':_0x3d1a96});try{const _0x3068d4=_0x73c339['readFileSync'](_0x206645,'utf8')[_0x22f8e0(0xad)]('\x0a')[_0x22f8e0(0x1a3)](Boolean);_0x235bb6[_0x22f8e0(0x1f3)]=_0x3068d4[_0x22f8e0(0x2dc)]()[_0x22f8e0(0x281)](0x0,_0x3d1a96);}catch{}return _0x57c94a[_0x22f8e0(0xc9)]=_0x235bb6,_0x235bb6['on'](_0x22f8e0(0x12b),async _0x38d9b4=>{const _0x25bb52=_0x22f8e0;_0x235bb6[_0x25bb52(0x1d5)]();try{await _0x5eed84(_0x38d9b4,_0x42681a,_0x3c24a1,_0x1927aa,_0x43d3f1,_0x235bb6);}catch(_0x3eaf1d){console[_0x25bb52(0x299)](_0x278e29(_0x2afbc5[_0x25bb52(0x81)],_0x25bb52(0xb8)+_0x3eaf1d[_0x25bb52(0x9d)]));}finally{_0x235bb6[_0x25bb52(0x2fa)](),_0x235bb6[_0x25bb52(0x6d)]();}}),_0x235bb6['on'](_0x22f8e0(0x1f6),()=>{const _0x52233c=_0x22f8e0;try{const _0x34a401=[..._0x235bb6[_0x52233c(0x1f3)]]['reverse']()[_0x52233c(0x1a3)](Boolean)['slice'](0x0,_0x3d1a96);_0x73c339[_0x52233c(0x2da)](_0x206645,_0x34a401[_0x52233c(0x252)]('\x0a')+'\x0a');}catch{}_0x3a18fc(_0x42681a,0x0);}),process['on'](_0x22f8e0(0x17c),()=>{const _0x1985e6=_0x22f8e0;if(_0x235bb6[_0x1985e6(0x12b)]==='')_0x3a18fc(_0x42681a,0x0);else process[_0x1985e6(0x2ce)][_0x1985e6(0x107)]('\x0a'),_0x235bb6[_0x1985e6(0x113)](0x0),_0x235bb6[_0x1985e6(0x6d)]();}),process['on'](_0x22f8e0(0x359),()=>_0x3a18fc(_0x42681a,0x0)),_0x235bb6[_0x22f8e0(0x6d)](),_0x235bb6;}return okdbShell={'start':_0x179bb8,'colorLog':_0x144494,'lenientParse':_0x115573,'_splitLine':_0x120877,'_formatRouteHelpLines':_0x2fdaa8,'_routeSummary':_0x61a047,'_routeTags':_0x3bfe92},okdbShell;}var hasRequiredOkdb;function requireOkdb(){const _0x2cbeba=_0x19ca31;if(hasRequiredOkdb)return okdb$1;hasRequiredOkdb=0x1;try{process[_0x2cbeba(0xf4)]();}catch{}const _0x542d5c=require$$1$1,_0x541df1=require$$1;function _0x9d60e3(_0x49950b){const _0x2b85cf=_0x2cbeba,_0x2daeb3=_0x49950b['slice'](0x2),_0xefd0fb={};let _0x32ccc9=0x0;while(_0x32ccc9<_0x2daeb3[_0x2b85cf(0x115)]){const _0x4370cc=_0x2daeb3[_0x32ccc9];if(_0x4370cc===_0x2b85cf(0x175)||_0x4370cc==='-p')_0xefd0fb[_0x2b85cf(0x1fe)]=Number(_0x2daeb3[++_0x32ccc9]);else{if(_0x4370cc==='--path'||_0x4370cc==='-d')_0xefd0fb[_0x2b85cf(0x1e3)]=_0x2daeb3[++_0x32ccc9];else{if(_0x4370cc==='--key'||_0x4370cc==='-k')_0xefd0fb[_0x2b85cf(0xf5)]=_0x2daeb3[++_0x32ccc9];else{if(_0x4370cc===_0x2b85cf(0x141)||_0x4370cc==='-c')_0xefd0fb['config']=_0x2daeb3[++_0x32ccc9];else{if(_0x4370cc===_0x2b85cf(0x27a))_0xefd0fb[_0x2b85cf(0x34f)]=_0x2daeb3[++_0x32ccc9];else{if(_0x4370cc===_0x2b85cf(0x8b))_0xefd0fb[_0x2b85cf(0x2de)]=!![];else{if(_0x4370cc===_0x2b85cf(0x1f9))_0xefd0fb[_0x2b85cf(0x251)]=!![];else{if(_0x4370cc===_0x2b85cf(0xf0)||_0x4370cc==='-e')_0xefd0fb[_0x2b85cf(0x14b)]=_0x2daeb3[++_0x32ccc9];else{if(_0x4370cc===_0x2b85cf(0x26f))_0xefd0fb['types']=_0x2daeb3[++_0x32ccc9];else{if(_0x4370cc===_0x2b85cf(0x368))_0xefd0fb['changes']=!![];else{if(_0x4370cc===_0x2b85cf(0x2c1))_0xefd0fb[_0x2b85cf(0x344)]=!![];else{if(_0x4370cc===_0x2b85cf(0x2be))_0xefd0fb[_0x2b85cf(0x21d)]=!![];else{if(_0x4370cc==='--open'){const _0x11b194=[];while(_0x32ccc9+0x1<_0x2daeb3['length']&&!_0x2daeb3[_0x32ccc9+0x1][_0x2b85cf(0x225)]('--')){_0x11b194[_0x2b85cf(0x195)](_0x2daeb3[++_0x32ccc9]);}_0xefd0fb['open']=_0x11b194[_0x2b85cf(0x115)]>0x0?_0x11b194:!![];}else{if(_0x4370cc===_0x2b85cf(0x2b0))_0xefd0fb['logRequests']=!![];else{if(_0x4370cc===_0x2b85cf(0x1f2))_0xefd0fb[_0x2b85cf(0x362)]=_0x2daeb3[++_0x32ccc9];else{if(_0x4370cc===_0x2b85cf(0x14d))_0xefd0fb['password']=_0x2daeb3[++_0x32ccc9];else{if(_0x4370cc==='--label')_0xefd0fb[_0x2b85cf(0x291)]=_0x2daeb3[++_0x32ccc9];else{if(_0x4370cc===_0x2b85cf(0x305))_0xefd0fb[_0x2b85cf(0xa6)]=_0x2daeb3[++_0x32ccc9];else{if(_0x4370cc===_0x2b85cf(0x145))_0xefd0fb[_0x2b85cf(0x194)]=_0x2daeb3[++_0x32ccc9];else{if(_0x4370cc===_0x2b85cf(0x6a))_0xefd0fb[_0x2b85cf(0xd6)]=_0x2daeb3[++_0x32ccc9];else{if(_0x4370cc==='--token')_0xefd0fb[_0x2b85cf(0x1bf)]=_0x2daeb3[++_0x32ccc9];else{if(_0x4370cc===_0x2b85cf(0x14c)||_0x4370cc==='-u')_0xefd0fb[_0x2b85cf(0x7b)]=_0x2daeb3[++_0x32ccc9];else{if(_0x4370cc===_0x2b85cf(0x274))_0xefd0fb[_0x2b85cf(0x91)]=_0x2daeb3[++_0x32ccc9];else{if(_0x4370cc===_0x2b85cf(0x1c8)||_0x4370cc==='-v'){const _0x17c4d9=require$$2;console['log'](_0x17c4d9[_0x2b85cf(0x2d2)]),process[_0x2b85cf(0x365)](0x0);}else(_0x4370cc===_0x2b85cf(0x191)||_0x4370cc==='-h')&&(_0x61a60d(),process[_0x2b85cf(0x365)](0x0));}}}}}}}}}}}}}}}}}}}}}}}_0x32ccc9++;}return _0xefd0fb;}function _0x61a60d(){const _0xe99eda=_0x2cbeba;console[_0xe99eda(0x35c)](_0xe99eda(0xe7));}const _0x3375a2=new Set([_0x2cbeba(0x22a),'info',_0x2cbeba(0x167),_0x2cbeba(0x299)]);function _0x4a5658(_0x4983c7){const _0x375caa=_0x2cbeba,_0x18b9d9=_0x4983c7[_0x375caa(0x324)]?_0x542d5c[_0x375caa(0x10a)](_0x4983c7[_0x375caa(0x324)]):_0x542d5c[_0x375caa(0x10a)](_0x375caa(0x31f));let _0x5853f8={};if(_0x541df1[_0x375caa(0x340)](_0x18b9d9))try{const _0x57f5bd=_0x541df1[_0x375caa(0x170)](_0x18b9d9,'utf8')[_0x375caa(0x244)](/^\uFEFF/,'');_0x5853f8=JSON[_0x375caa(0xc8)](_0x57f5bd),console[_0x375caa(0x35c)](_0x375caa(0x25c)+_0x18b9d9);}catch(_0x1a9cf7){console['error']('[okdb]\x20failed\x20to\x20parse\x20config\x20file\x20'+_0x18b9d9+':\x20'+_0x1a9cf7[_0x375caa(0x9d)]),process[_0x375caa(0x365)](0x1);}const _0x499b57={'port':process.env.OKDB_PORT?Number(process.env.OKDB_PORT):undefined,'path':process.env.OKDB_PATH??undefined,'key':process.env.OKDB_KEY??undefined,'logLevel':process.env.OKDB_LOG_LEVEL??undefined,'noRepl':process.env.OKDB_NO_REPL==='1'?!![]:undefined,'noAdmin':process.env.OKDB_NO_ADMIN==='1'?!![]:undefined},_0x33d595={'port':_0x4983c7['port']??_0x5853f8[_0x375caa(0x1fe)]??_0x499b57['port']??0x2124,'dbPath':_0x4983c7[_0x375caa(0x1e3)]??_0x5853f8[_0x375caa(0x1e3)]??_0x499b57['path']??'./okdb-data','key':_0x4983c7[_0x375caa(0xf5)]??_0x5853f8[_0x375caa(0xf5)]??_0x499b57[_0x375caa(0xf5)]??undefined,'logLevel':_0x4983c7['logLevel']??_0x5853f8['logLevel']??_0x499b57[_0x375caa(0x34f)]??_0x375caa(0x179),'noRepl':_0x4983c7[_0x375caa(0x2de)]??_0x5853f8['noRepl']??_0x499b57['noRepl']??![],'noAdmin':_0x4983c7[_0x375caa(0x251)]??_0x5853f8[_0x375caa(0x251)]??_0x499b57[_0x375caa(0x251)]??![],'admin':_0x5853f8[_0x375caa(0x287)]??{},'api':_0x5853f8[_0x375caa(0x30d)]??undefined,'auth':_0x5853f8[_0x375caa(0x30e)]??undefined,'mcp':_0x5853f8[_0x375caa(0x2d6)]??undefined,'timeMachine':_0x5853f8[_0x375caa(0x116)]!==![]?_0x5853f8['timeMachine']??{}:![]};return _0x4983c7[_0x375caa(0x2c4)]!==undefined&&(_0x33d595[_0x375caa(0x30e)]=_0x33d595[_0x375caa(0x30e)]||{},_0x33d595['auth'][_0x375caa(0x2c4)]=_0x4983c7[_0x375caa(0x2c4)]),_0x4983c7['logRequests']&&(_0x33d595[_0x375caa(0x22a)]=_0x33d595[_0x375caa(0x22a)]||{},_0x33d595['debug'][_0x375caa(0x2dd)]=!![]),(!Number[_0x375caa(0x1de)](_0x33d595['port'])||_0x33d595[_0x375caa(0x1fe)]<0x1||_0x33d595[_0x375caa(0x1fe)]>0xffff)&&(console[_0x375caa(0x299)](_0x375caa(0x2a5)+_0x33d595[_0x375caa(0x1fe)]+_0x375caa(0x2cf)),process[_0x375caa(0x365)](0x1)),!_0x3375a2[_0x375caa(0x243)](_0x33d595['logLevel'])&&(console[_0x375caa(0x299)]('[okdb]\x20invalid\x20log\x20level:\x20\x22'+_0x33d595['logLevel']+_0x375caa(0x109)),process[_0x375caa(0x365)](0x1)),_0x33d595;}function _0x181347(_0x4383d9){const _0x243b3a=_0x2cbeba;return!!(_0x4383d9&&typeof _0x4383d9===_0x243b3a(0xb9)&&!Array[_0x243b3a(0x119)](_0x4383d9)&&Object[_0x243b3a(0x235)](_0x4383d9)[_0x243b3a(0x115)]>0x0);}const _0x29d1af=!process[_0x2cbeba(0x2ce)][_0x2cbeba(0x142)]||!!process.env.NO_COLOR;function _0x46cc35(_0xb4cf0c,_0x275279){return _0x29d1af?_0x275279:'\x1b['+_0xb4cf0c+'m'+_0x275279+'\x1b[0m';}function _0x177a91(_0x407563){const _0x31a768=_0x2cbeba;if(!_0x407563||_0x407563[_0x31a768(0x115)]===0x0)return;const _0x525f3b='─'['repeat'](0x38);process[_0x31a768(0x24c)][_0x31a768(0x107)]('\x0a'),process['stderr']['write'](_0x46cc35('33','\x20\x20⚠\x20\x20'+_0x407563[_0x31a768(0x115)]+_0x31a768(0xe5)+(_0x407563['length']>0x1?'S':'')+'\x0a')),process[_0x31a768(0x24c)]['write']('\x20\x20'+_0x525f3b+'\x0a');for(const _0xb3ee0f of _0x407563){const _0x11fa63=_0xb3ee0f[_0x31a768(0xa0)]===_0x31a768(0x299)?_0x46cc35('31',_0x31a768(0x2c2)):_0x46cc35('33',_0x31a768(0x367));process['stderr'][_0x31a768(0x107)](_0x11fa63+'\x20\x20'+_0x46cc35('1',_0xb3ee0f[_0x31a768(0x192)])+'\x0a'),process[_0x31a768(0x24c)][_0x31a768(0x107)](_0x31a768(0x1f0)+_0xb3ee0f[_0x31a768(0x9d)]+'\x0a');if(_0xb3ee0f[_0x31a768(0xe1)])process[_0x31a768(0x24c)][_0x31a768(0x107)](_0x31a768(0x1f0)+_0x46cc35('2',_0x31a768(0x87)+_0xb3ee0f[_0x31a768(0xe1)])+'\x0a');process[_0x31a768(0x24c)][_0x31a768(0x107)]('\x0a');}process['stderr']['write']('\x20\x20'+_0x525f3b+'\x0a\x0a');}function _0x13aadb(_0x175161,_0x1ed362){const _0x878764=_0x2cbeba,_0x216dda=_0x175161[_0x878764(0x8f)][_0x878764(0xde)](_0x1ed362);return new Promise((_0x3eab00,_0x5cb4cb)=>{const _0xffc1b8=_0x878764;_0x216dda[_0xffc1b8(0x17b)](_0xffc1b8(0x16f),_0x3eab00),_0x216dda['once'](_0xffc1b8(0x299),_0x5cb4cb);});}async function _0x332ee5(_0x33ce0b){const _0x3bdf7d=_0x2cbeba,_0x29201a=require$$3;console[_0x3bdf7d(0x35c)](_0x3bdf7d(0x185));let _0x55b286=!![];const _0x207e57=(_0x5c1d02,_0x3be7b8)=>{const _0x243571=_0x3bdf7d;console[_0x243571(0x35c)]('\x20\x20'+(_0x5c1d02?'✓':'✗')+'\x20'+_0x3be7b8);if(!_0x5c1d02)_0x55b286=![];},_0x38ff6a=Number(process[_0x3bdf7d(0x2d2)][_0x3bdf7d(0x244)]('v','')[_0x3bdf7d(0xad)]('.')[0x0]);_0x207e57(_0x38ff6a>=0x12,_0x3bdf7d(0x369)+process[_0x3bdf7d(0x2d2)]+(_0x38ff6a<0x12?_0x3bdf7d(0x199):''));const _0x2c2763=_0x542d5c[_0x3bdf7d(0x10a)](_0x33ce0b[_0x3bdf7d(0x2ea)]);try{_0x541df1['mkdirSync'](_0x2c2763,{'recursive':!![]});const _0x19e601=_0x542d5c[_0x3bdf7d(0x252)](_0x2c2763,_0x3bdf7d(0x314));_0x541df1[_0x3bdf7d(0x2da)](_0x19e601,''),_0x541df1['unlinkSync'](_0x19e601),_0x207e57(!![],_0x3bdf7d(0x2ee)+_0x2c2763);}catch(_0x179723){_0x207e57(![],'database\x20path\x20not\x20writable:\x20'+_0x2c2763+_0x3bdf7d(0x125)+_0x179723[_0x3bdf7d(0x9d)]+')');}const _0x4384c8=await new Promise(_0x58f893=>{const _0x375a73=_0x3bdf7d,_0x5ed591=_0x29201a[_0x375a73(0x2fb)]();_0x5ed591[_0x375a73(0x17b)](_0x375a73(0x299),()=>_0x58f893(![])),_0x5ed591[_0x375a73(0x17b)](_0x375a73(0x16f),()=>{_0x5ed591['close'](),_0x58f893(!![]);}),_0x5ed591[_0x375a73(0xde)](_0x33ce0b[_0x375a73(0x1fe)],'127.0.0.1');});_0x207e57(_0x4384c8,'port\x20'+_0x33ce0b[_0x3bdf7d(0x1fe)]+'\x20'+(_0x4384c8?'available':_0x3bdf7d(0x1c0)));const _0x3577fe=_0x542d5c['resolve'](_0x3bdf7d(0x31f));if(_0x541df1[_0x3bdf7d(0x340)](_0x3577fe))try{JSON[_0x3bdf7d(0xc8)](_0x541df1[_0x3bdf7d(0x170)](_0x3577fe,_0x3bdf7d(0x127))['replace'](/^\uFEFF/,'')),_0x207e57(!![],'config\x20file\x20valid:\x20'+_0x3577fe);}catch(_0x13f13e){_0x207e57(![],_0x3bdf7d(0x20d)+_0x13f13e['message']);}else _0x207e57(!![],_0x3bdf7d(0x2d4));console[_0x3bdf7d(0x35c)](''),_0x55b286?console[_0x3bdf7d(0x35c)](_0x3bdf7d(0x2b9)):(console['log'](_0x3bdf7d(0x2c6)),process['exit'](0x1));}async function _0x204dce(){const _0x101109=_0x2cbeba,_0x1bc38c=_0x542d5c[_0x101109(0x10a)]('.kdbconfig');!_0x541df1['existsSync'](_0x1bc38c)?(_0x541df1[_0x101109(0x2da)](_0x1bc38c,JSON[_0x101109(0x18c)]({'port':0x2124,'path':_0x101109(0x24e),'logLevel':_0x101109(0x179),'noRepl':![],'noAdmin':![]},null,0x2)+'\x0a'),console[_0x101109(0x35c)](_0x101109(0x1f7))):console[_0x101109(0x35c)](_0x101109(0x1cc));const _0x5f235=_0x542d5c[_0x101109(0x10a)]('./okdb-data');!_0x541df1[_0x101109(0x340)](_0x5f235)?(_0x541df1[_0x101109(0x31d)](_0x5f235,{'recursive':!![]}),console[_0x101109(0x35c)](_0x101109(0x163))):console[_0x101109(0x35c)](_0x101109(0xf3)),console[_0x101109(0x35c)](_0x101109(0xcb));}async function _0x2e0dc6(_0x3c76b2){const _0x4bc797=_0x2cbeba,_0x241617=_0x542d5c['resolve'](_0x3c76b2[_0x4bc797(0x2ea)]);if(!_0x541df1[_0x4bc797(0x340)](_0x241617)){console[_0x4bc797(0x35c)]('[okdb]\x20nothing\x20to\x20reset\x20—\x20'+_0x241617+_0x4bc797(0x34d));return;}const _0x28a39e=require$$0$2,_0x14faf8=_0x28a39e[_0x4bc797(0xb5)]({'input':process[_0x4bc797(0x285)],'output':process[_0x4bc797(0x2ce)]}),_0x16f4d4=await new Promise(_0x3bf690=>_0x14faf8[_0x4bc797(0x356)]('\x0a\x20\x20Delete\x20ALL\x20data\x20in\x20'+_0x241617+'?\x0a\x20\x20Type\x20\x22yes\x22\x20to\x20confirm:\x20',_0x3bf690));_0x14faf8['close'](),console['log']('');if(_0x16f4d4[_0x4bc797(0xe3)]()['toLowerCase']()!=='yes'){console[_0x4bc797(0x35c)](_0x4bc797(0x95));return;}_0x541df1[_0x4bc797(0x122)](_0x241617,{'recursive':!![],'force':!![]}),console[_0x4bc797(0x35c)](_0x4bc797(0xe8)+_0x241617+_0x4bc797(0x207));}async function _0x29da7f(_0x1944aa,_0x1640ed){const _0x2b1330=_0x2cbeba,_0xa5d947=require$$5,_0x567f7b=_0x542d5c[_0x2b1330(0x10a)](_0x1640ed[_0x2b1330(0x2ea)]);console[_0x2b1330(0x35c)](_0x2b1330(0x2bf)+_0x567f7b+'…');const _0xdddafe=new _0xa5d947(_0x567f7b,_0x1640ed[_0x2b1330(0xf5)]?{'encryptionKey':_0x1640ed[_0x2b1330(0xf5)]}:{});await _0xdddafe[_0x2b1330(0x2c4)](),console[_0x2b1330(0x35c)]('[okdb]\x20backing\x20up\x20to\x20'+_0x1944aa+'…');const {envs:_0x517761}=await _0xdddafe[_0x2b1330(0x23b)][_0x2b1330(0x7d)](_0x1944aa);for(const _0xeea868 of _0x517761){const _0x181018=_0xeea868['sizeBefore']>0x0?_0x2b1330(0x125)+(_0xeea868[_0x2b1330(0x32e)]/0x400/0x400)['toFixed'](0x2)+'\x20MB\x20→\x20'+(_0xeea868[_0x2b1330(0x268)]/0x400/0x400)[_0x2b1330(0xd3)](0x2)+'\x20MB)':'';console[_0x2b1330(0x35c)](_0x2b1330(0x10c)+_0xeea868[_0x2b1330(0x362)]+_0x2b1330(0x22e)+_0xeea868[_0x2b1330(0x165)]+_0x181018);}await _0xdddafe[_0x2b1330(0x1f6)](),console[_0x2b1330(0x35c)](_0x2b1330(0x20c));}async function _0x5048e1(_0x3dc4c3,_0x101094,_0x441995){const _0xc3a1e2=_0x2cbeba,_0x16a632=require$$5,_0x211484=_0x542d5c[_0xc3a1e2(0x10a)](_0x101094[_0xc3a1e2(0x2ea)]),_0x37f09f=_0x441995['env']??_0xc3a1e2(0x33e),_0x3a1a2d=_0x441995[_0xc3a1e2(0x146)]?_0x441995[_0xc3a1e2(0x146)]['split'](',')['map'](_0x419235=>_0x419235['trim']()):null;console[_0xc3a1e2(0x35c)](_0xc3a1e2(0x2bf)+_0x211484+'…');const _0x4863a8=new _0x16a632(_0x211484,_0x101094[_0xc3a1e2(0xf5)]?{'encryptionKey':_0x101094[_0xc3a1e2(0xf5)]}:{});await _0x4863a8['open'](),console[_0xc3a1e2(0x35c)]('[okdb]\x20exporting\x20env\x20\x22'+_0x37f09f+_0xc3a1e2(0x15a)+_0x3dc4c3+'…');const _0x1b06c6=await _0x4863a8[_0xc3a1e2(0x23b)][_0xc3a1e2(0x152)](_0x3dc4c3,{'envName':_0x37f09f,'types':_0x3a1a2d,'includeChanges':!!_0x441995[_0xc3a1e2(0x202)]});console[_0xc3a1e2(0x35c)](_0xc3a1e2(0x2b7)+_0x1b06c6[_0xc3a1e2(0x146)]+_0xc3a1e2(0x19e)+_0x1b06c6[_0xc3a1e2(0x9a)]+_0xc3a1e2(0x13d)+_0x1b06c6[_0xc3a1e2(0x202)]);if(_0x441995['blobs']){const _0x8ea932=_0x542d5c['join'](_0x542d5c[_0xc3a1e2(0xec)](_0x3dc4c3),_0xc3a1e2(0x344));process[_0xc3a1e2(0x2ce)]['write'](_0xc3a1e2(0x28b));const {count:_0x3821c7,bytes:_0x274ee9}=await _0x4863a8[_0xc3a1e2(0x23b)][_0xc3a1e2(0x2a9)](_0x8ea932);console[_0xc3a1e2(0x35c)]('\x0d[okdb]\x20blobs:\x20'+_0x8ea932+_0xc3a1e2(0x125)+_0x3821c7+'\x20file'+(_0x3821c7!==0x1?'s':'')+',\x20'+(_0x274ee9/0x400/0x400)[_0xc3a1e2(0xd3)](0x2)+'\x20MB)');}await _0x4863a8[_0xc3a1e2(0x1f6)](),console[_0xc3a1e2(0x35c)](_0xc3a1e2(0x183));}async function _0x51aa0a(_0x324ad8,_0x43f878,_0x5e7850){const _0x47a990=_0x2cbeba,_0x335437=require$$5,_0xb6b892=_0x542d5c[_0x47a990(0x10a)](_0x43f878[_0x47a990(0x2ea)]),_0x376114=_0x5e7850[_0x47a990(0x14b)]??null,_0x51c069=_0x5e7850[_0x47a990(0x146)]?_0x5e7850['types']['split'](',')[_0x47a990(0x17e)](_0x368b8b=>_0x368b8b[_0x47a990(0xe3)]()):null,_0x3756ed=!!_0x5e7850['drop'];console[_0x47a990(0x35c)](_0x47a990(0x2bf)+_0xb6b892+'…');const _0x56f5db=new _0x335437(_0xb6b892,_0x43f878[_0x47a990(0xf5)]?{'encryptionKey':_0x43f878[_0x47a990(0xf5)]}:{});await _0x56f5db[_0x47a990(0x2c4)](),console[_0x47a990(0x35c)](_0x47a990(0xd4)+_0x324ad8+'…');const _0x5746e0=await _0x56f5db[_0x47a990(0x23b)][_0x47a990(0x14f)](_0x324ad8,{'envName':_0x376114,'types':_0x51c069,'dropExisting':_0x3756ed,'includeChanges':!!_0x5e7850[_0x47a990(0x202)],'onProgress':({type:_0x506dc3,count:_0x40be74})=>{const _0x5967da=_0x47a990;process[_0x5967da(0x2ce)][_0x5967da(0x107)](_0x5967da(0x269)+_0x506dc3+':\x20'+_0x40be74+_0x5967da(0x2f4));}});process[_0x47a990(0x2ce)][_0x47a990(0x107)]('\x0a'),console[_0x47a990(0x35c)](_0x47a990(0x2e8)+_0x5746e0[_0x47a990(0x146)]+'\x20\x20records='+_0x5746e0[_0x47a990(0x9a)]+_0x47a990(0x13d)+_0x5746e0[_0x47a990(0x202)]);if(_0x5e7850[_0x47a990(0x344)]){const _0xb14c69=_0x542d5c[_0x47a990(0x252)](_0x542d5c['dirname'](_0x324ad8),'blobs');if(_0x541df1['existsSync'](_0xb14c69)){const {imported:_0xebcda8,skipped:_0x5bb2b4}=await _0x56f5db[_0x47a990(0x23b)][_0x47a990(0x85)](_0xb14c69);console['log'](_0x47a990(0x35a)+_0xebcda8+'\x20\x20skipped='+_0x5bb2b4);}}await _0x56f5db[_0x47a990(0x1f6)](),console[_0x47a990(0x35c)]('[okdb]\x20import\x20complete');}async function _0x356f94(_0x4d3636,_0x204fea){const _0x2c5038=_0x2cbeba;_0x204fea[_0x2c5038(0x246)]&&!_0x204fea[_0x2c5038(0x362)]&&(console['error']('[okdb]\x20error:\x20--password\x20requires\x20--name'),process[_0x2c5038(0x365)](0x1));const _0x4a7476=_0x204fea[_0x2c5038(0xa6)]?_0x204fea[_0x2c5038(0xa6)]['split'](',')['map'](_0x2a6dff=>_0x2a6dff[_0x2c5038(0xe3)]())['filter'](Boolean):[];let _0x15a484={};if(_0x204fea['grants'])try{_0x15a484=JSON[_0x2c5038(0xc8)](_0x204fea[_0x2c5038(0x194)]);if(typeof _0x15a484!=='object'||Array[_0x2c5038(0x119)](_0x15a484)||_0x15a484===null)throw new Error();}catch{console['error'](_0x2c5038(0x83)),process[_0x2c5038(0x365)](0x1);}const _0x3a93ee=require$$5,{randomToken:_0x37c332,hashToken:_0x3a59e1,hashPassword:_0x3e459d}=requireOkdbAuthTokens(),_0x28ab4f=require$$0,_0x28ff44=_0x542d5c[_0x2c5038(0x10a)](_0x4d3636['dbPath']),_0x51561e=new _0x3a93ee(_0x28ff44,_0x4d3636[_0x2c5038(0xf5)]?{'encryptionKey':_0x4d3636[_0x2c5038(0xf5)]}:{});await _0x51561e[_0x2c5038(0x2c4)]();try{await _0x51561e[_0x2c5038(0x30e)][_0x2c5038(0x19c)]();if(_0x204fea['name']){const _0x534320=await _0x51561e[_0x2c5038(0x30e)][_0x2c5038(0x357)](_0x204fea[_0x2c5038(0x362)]);_0x534320&&(console[_0x2c5038(0x299)]('[okdb]\x20error:\x20token\x20with\x20name\x20\x22'+_0x204fea[_0x2c5038(0x362)]+'\x22\x20already\x20exists'),process[_0x2c5038(0x365)](0x1));}const _0x51bee4=_0x37c332(0x20),_0x59623d=_0x3a59e1(_0x51bee4),_0x188f83=_0x204fea[_0x2c5038(0x246)]?await _0x3e459d(_0x204fea[_0x2c5038(0x246)]):null,_0x513889=_0x28ab4f[_0x2c5038(0x1c5)](),_0xc5140b={'tokenHash':_0x59623d,'name':_0x204fea[_0x2c5038(0x362)]||null,'passwordHash':_0x188f83,'label':_0x204fea[_0x2c5038(0x291)]||null,'permissions':_0x4a7476,'grants':_0x15a484,'createdAt':Date['now'](),'lastUsedAt':null},_0x49c65b=_0x204fea[_0x2c5038(0xd6)]?{'ttl':Number(_0x204fea[_0x2c5038(0xd6)])}:undefined;await _0x51561e[_0x2c5038(0x2c8)][_0x2c5038(0x2cd)](_0x2c5038(0x13f),_0x513889,_0xc5140b,_0x49c65b),console[_0x2c5038(0x35c)](_0x2c5038(0x33b)),console[_0x2c5038(0x35c)](_0x2c5038(0x343)+_0x513889),console[_0x2c5038(0x35c)](_0x2c5038(0x86)+(_0x204fea['name']||_0x2c5038(0x35d))),console[_0x2c5038(0x35c)]('\x20\x20\x20\x20label:\x20\x20\x20\x20\x20\x20\x20'+(_0x204fea[_0x2c5038(0x291)]||'(unset)')),console['log'](_0x2c5038(0x2e3)+(_0x4a7476[_0x2c5038(0x252)](',\x20')||_0x2c5038(0x16c))),console['log'](_0x2c5038(0x1bc)),console[_0x2c5038(0x35c)](_0x2c5038(0x1d0)+_0x51bee4+'\x0a');}finally{await _0x51561e[_0x2c5038(0x1f6)]();}}async function _0x2aadb8(_0xe7bb80){const _0x5b062a=_0x2cbeba,_0x1285c5=require$$5,_0x43158d=_0x542d5c[_0x5b062a(0x10a)](_0xe7bb80[_0x5b062a(0x2ea)]),_0x2a3dd2=new _0x1285c5(_0x43158d,_0xe7bb80['key']?{'encryptionKey':_0xe7bb80[_0x5b062a(0xf5)]}:{});await _0x2a3dd2[_0x5b062a(0x2c4)]();try{const _0x219282=_0x2a3dd2['_systemEnv'];if(!_0x219282||!_0x219282[_0x5b062a(0x11b)](_0x5b062a(0x13f))){console['log'](_0x5b062a(0x1ce));return;}const _0x22c5cf=[];for(const {key:_0x2da3dd,value:_0xe99f26}of _0x219282[_0x5b062a(0x2e9)](_0x5b062a(0x13f))){_0x22c5cf['push']({'id':_0x2da3dd,'name':_0xe99f26[_0x5b062a(0x362)]||_0x5b062a(0x35d),'label':_0xe99f26['label']||_0x5b062a(0x35d),'permissions':Array[_0x5b062a(0x119)](_0xe99f26[_0x5b062a(0xa6)])?_0xe99f26[_0x5b062a(0xa6)][_0x5b062a(0x252)](','):'','created':_0xe99f26[_0x5b062a(0x20a)]?new Date(_0xe99f26['createdAt'])[_0x5b062a(0xe9)]()[_0x5b062a(0x281)](0x0,0xa):''});}if(_0x22c5cf[_0x5b062a(0x115)]===0x0){console[_0x5b062a(0x35c)](_0x5b062a(0x1ce));return;}const _0x4d01c4=!process['stdout']['columns']||process['stdout'][_0x5b062a(0xa8)]>=0x64,_0x42393a=_0x4d01c4?0x24:0xa,_0x128378=['ID'[_0x5b062a(0x198)](_0x42393a),_0x5b062a(0x35f)[_0x5b062a(0x198)](0x10),_0x5b062a(0x30b)[_0x5b062a(0x198)](0x14),_0x5b062a(0x1b3)[_0x5b062a(0x198)](0x14),_0x5b062a(0x118)][_0x5b062a(0x252)]('\x20\x20');console[_0x5b062a(0x35c)]('\x0a'+_0x128378),console['log']('-'[_0x5b062a(0x22c)](_0x128378[_0x5b062a(0x115)]));for(const _0x267e20 of _0x22c5cf){const _0xa5f67f=_0x4d01c4?_0x267e20['id']:_0x267e20['id'][_0x5b062a(0x281)](0x0,0x8)+'…';console[_0x5b062a(0x35c)]([_0xa5f67f[_0x5b062a(0x198)](_0x42393a),_0x267e20['name'][_0x5b062a(0x281)](0x0,0x10)['padEnd'](0x10),_0x267e20[_0x5b062a(0x291)][_0x5b062a(0x281)](0x0,0x14)['padEnd'](0x14),_0x267e20[_0x5b062a(0xa6)][_0x5b062a(0x281)](0x0,0x14)['padEnd'](0x14),_0x267e20[_0x5b062a(0x218)]][_0x5b062a(0x252)]('\x20\x20'));}console[_0x5b062a(0x35c)]('');}finally{await _0x2a3dd2[_0x5b062a(0x1f6)]();}}async function _0x4c2f80(_0x48e161,_0x501123){const _0x4f2afc=_0x2cbeba;!_0x48e161&&(console[_0x4f2afc(0x299)]('[okdb]\x20error:\x20revoke\x20requires\x20an\x20id\x20argument'),process[_0x4f2afc(0x365)](0x1));const _0x5dca53=require$$5,_0x18d2f0=_0x542d5c[_0x4f2afc(0x10a)](_0x501123['dbPath']),_0x38f168=new _0x5dca53(_0x18d2f0,_0x501123[_0x4f2afc(0xf5)]?{'encryptionKey':_0x501123[_0x4f2afc(0xf5)]}:{});await _0x38f168[_0x4f2afc(0x2c4)]();try{const _0x4ee52d=_0x38f168['_systemEnv'];(!_0x4ee52d||!_0x4ee52d['hasType']('~tokens'))&&(console['error'](_0x4f2afc(0x215)+_0x48e161+'\x22'),process['exit'](0x1));let _0x1e3a1f=null,_0x221f26=null;const _0x5801ad=_0x4ee52d[_0x4f2afc(0x250)]('~tokens',_0x48e161);if(_0x5801ad)_0x1e3a1f=_0x48e161,_0x221f26=_0x5801ad;else{const _0x41dc73=[];for(const {key:_0x563484,value:_0x1ee618}of _0x4ee52d[_0x4f2afc(0x2e9)](_0x4f2afc(0x13f))){if(_0x563484[_0x4f2afc(0x225)](_0x48e161))_0x41dc73[_0x4f2afc(0x195)]({'key':_0x563484,'value':_0x1ee618});}_0x41dc73[_0x4f2afc(0x115)]===0x0&&(console[_0x4f2afc(0x299)](_0x4f2afc(0x215)+_0x48e161+'\x22'),process['exit'](0x1));if(_0x41dc73['length']>0x1){console[_0x4f2afc(0x299)](_0x4f2afc(0x216)+_0x48e161+_0x4f2afc(0x1ec)+_0x41dc73[_0x4f2afc(0x115)]+_0x4f2afc(0x22b));for(const _0x231d72 of _0x41dc73){console[_0x4f2afc(0x299)]('\x20\x20'+_0x231d72[_0x4f2afc(0xf5)]+_0x4f2afc(0x339)+(_0x231d72[_0x4f2afc(0x132)][_0x4f2afc(0x362)]||_0x4f2afc(0x35d))+')');}process[_0x4f2afc(0x365)](0x1);}_0x1e3a1f=_0x41dc73[0x0]['key'],_0x221f26=_0x41dc73[0x0]['value'];}await _0x4ee52d[_0x4f2afc(0x33c)](_0x4f2afc(0x13f),_0x1e3a1f),console[_0x4f2afc(0x35c)](_0x4f2afc(0x140)+_0x1e3a1f+'\x20\x20(name:\x20'+(_0x221f26[_0x4f2afc(0x362)]||'(unset)')+_0x4f2afc(0x2e2)+(_0x221f26[_0x4f2afc(0x291)]||_0x4f2afc(0x35d))+')');}finally{await _0x38f168[_0x4f2afc(0x1f6)]();}}function _0x49dea1(_0x16db8c,_0x57185c){const _0x54c365=_0x2cbeba;if(!_0x16db8c[_0x54c365(0x1bd)])return _0x54c365(0x1f5);const _0x273e01=_0x16db8c[_0x54c365(0x112)];if(!_0x273e01)return'active';if(_0x57185c>_0x273e01)return'expired';return _0x54c365(0x361);}function _0x11477b(_0x246e14){const _0x5ddcb0=_0x2cbeba;if(!_0x246e14||typeof _0x246e14!==_0x5ddcb0(0xb9))return'';const _0x14d880=Object[_0x5ddcb0(0x223)](_0x246e14)[_0x5ddcb0(0x1a3)](([,_0x1a9559])=>_0x1a9559)['map'](([_0x3e985d])=>_0x3e985d);if(_0x14d880['length']===0x0)return'(none)';if(_0x14d880[_0x5ddcb0(0x115)]<=0x3)return _0x14d880[_0x5ddcb0(0x252)]('\x20');return _0x14d880[_0x5ddcb0(0x281)](0x0,0x3)[_0x5ddcb0(0x252)]('\x20')+('\x20+'+(_0x14d880['length']-0x3));}async function _0x2a167f(_0xbbb43c){const _0xe7b2e4=_0x2cbeba,_0x3ded76=require$$5,_0x4d46a1=requireOkdbLicenseCodec(),{_C:_0x209312}=requireOkdbLicense(),_0x502a0f=_0x542d5c['resolve'](_0xbbb43c[_0xe7b2e4(0x2ea)]),_0x552092=new _0x3ded76(_0x502a0f,_0xbbb43c[_0xe7b2e4(0xf5)]?{'encryptionKey':_0xbbb43c['key']}:{});await _0x552092[_0xe7b2e4(0x2c4)]();try{const _0x45ae37=_0x552092['_systemEnv'],_0x3505db=_0x45ae37?.['db']?.[_0xe7b2e4(0x250)]?.(_0xe7b2e4(0x36b))??0x0,_0x26e51a=[..._0x552092['_envs'][_0xe7b2e4(0x235)]()][_0xe7b2e4(0x1a3)](_0x225120=>!_0x225120[_0xe7b2e4(0x225)]('~'))[_0xe7b2e4(0x115)],_0x1d3e63=_0x552092[_0xe7b2e4(0x279)]?.[_0xe7b2e4(0x2d5)];if(_0x1d3e63){const _0x51fb7f=_0x1d3e63[_0xe7b2e4(0x70)]===!![],_0x4d3719=_0x51fb7f?_0xe7b2e4(0x1da):_0x552092['_license']['active']?.[_0xe7b2e4(0x270)]||_0xe7b2e4(0x264);console[_0xe7b2e4(0x35c)](''),console[_0xe7b2e4(0x35c)](_0xe7b2e4(0x21e)+_0x4d3719);const _0x1f8ca6=_0x1d3e63['limits']||{};if(_0x1f8ca6['maxWrites']){const _0x130319=Math[_0xe7b2e4(0x338)](_0x3505db/_0x1f8ca6['maxWrites']*0x64);console['log'](_0xe7b2e4(0xee)+_0x3505db[_0xe7b2e4(0x134)]()+_0xe7b2e4(0x77)+_0x1f8ca6[_0xe7b2e4(0x1c7)]['toLocaleString']()+_0xe7b2e4(0x125)+_0x130319+'%)');}else console[_0xe7b2e4(0x35c)](_0xe7b2e4(0xee)+_0x3505db[_0xe7b2e4(0x134)]());_0x1f8ca6[_0xe7b2e4(0x159)]?console[_0xe7b2e4(0x35c)](_0xe7b2e4(0x99)+_0x26e51a+_0xe7b2e4(0x77)+_0x1f8ca6['envs']):console[_0xe7b2e4(0x35c)]('\x20\x20Envs:\x20\x20\x20\x20'+_0x26e51a),_0x209312?.[_0xe7b2e4(0x1c1)]&&console[_0xe7b2e4(0x35c)]('\x20\x20Build:\x20\x20\x20key\x20fingerprint\x20'+_0x209312[_0xe7b2e4(0x1c1)]+_0xe7b2e4(0x1a1));}if(!_0x45ae37||!_0x45ae37[_0xe7b2e4(0x11b)](_0xe7b2e4(0x23f))){console[_0xe7b2e4(0x35c)](''),console['log'](_0xe7b2e4(0x2b4)),console[_0xe7b2e4(0x35c)]('');return;}const _0x3d2345=[],_0x34e600=Date[_0xe7b2e4(0x92)](),_0x1c6ebf=_0x552092['id'],_0xf10b40=_0xe7b2e4(0x348);for(const {key:_0x428ac5,value:_0x53cd06}of _0x45ae37[_0xe7b2e4(0x2e9)](_0xe7b2e4(0x23f))){const _0x31f626=_0x53cd06[_0xe7b2e4(0xcf)]?Buffer[_0xe7b2e4(0xa9)](_0x53cd06[_0xe7b2e4(0xcf)],_0xe7b2e4(0x1fc)):Buffer[_0xe7b2e4(0x33d)](0x8);let _0x3c3d50='';try{_0x3c3d50=_0x4d46a1['derivePin'](_0x1c6ebf,_0x31f626,_0xf10b40)[_0xe7b2e4(0x237)];}catch{}_0x3d2345[_0xe7b2e4(0x195)]({'id':_0x428ac5,'licensee':_0x53cd06['licensee']||'','expires':_0x53cd06['expiresAt']?new Date(_0x53cd06['expiresAt'])[_0xe7b2e4(0xe9)]()[_0xe7b2e4(0x281)](0x0,0xa):'','features':_0x11477b(_0x53cd06['features']),'pin':_0x3c3d50,'status':_0x49dea1(_0x53cd06,_0x34e600)});}if(_0x3d2345[_0xe7b2e4(0x115)]===0x0){console[_0xe7b2e4(0x35c)](''),console['log'](_0xe7b2e4(0x2b4)),console[_0xe7b2e4(0x35c)]('');return;}const _0x49b34b=['\x20\x20'+'ID'[_0xe7b2e4(0x198)](0xe),_0xe7b2e4(0x366)[_0xe7b2e4(0x198)](0xe),_0xe7b2e4(0x10b)[_0xe7b2e4(0x198)](0xc),_0xe7b2e4(0x317)[_0xe7b2e4(0x198)](0x1e),'PIN'[_0xe7b2e4(0x198)](0xa),_0xe7b2e4(0x2fd)][_0xe7b2e4(0x252)]('\x20');console[_0xe7b2e4(0x35c)]('\x0a'+_0x49b34b);for(const _0x31ea38 of _0x3d2345){const _0x249520=_0x31ea38['id'][_0xe7b2e4(0x281)](0x0,0x8)+'…';console[_0xe7b2e4(0x35c)](['\x20\x20'+_0x249520[_0xe7b2e4(0x198)](0xe),_0x31ea38['licensee'][_0xe7b2e4(0x281)](0x0,0xe)[_0xe7b2e4(0x198)](0xe),_0x31ea38['expires'][_0xe7b2e4(0x198)](0xc),_0x31ea38[_0xe7b2e4(0x1cf)][_0xe7b2e4(0x281)](0x0,0x1e)[_0xe7b2e4(0x198)](0x1e),_0x31ea38[_0xe7b2e4(0x237)][_0xe7b2e4(0x198)](0xa),_0x31ea38[_0xe7b2e4(0x25a)]][_0xe7b2e4(0x252)]('\x20'));}console[_0xe7b2e4(0x35c)]('');}finally{await _0x552092['close']();}}async function _0x1c2240(_0x2b5427,_0x218963){const _0x3d9a0f=_0x2cbeba,_0x2d9b58=require$$5,_0x52ad47=requireOkdbLicenseCodec();let _0x5a8592=_0x2b5427;(_0x52ad47[_0x3d9a0f(0xbe)](_0x2b5427)===_0x3d9a0f(0x1e3)||_0x541df1[_0x3d9a0f(0x340)](_0x2b5427)&&_0x541df1['statSync'](_0x2b5427)[_0x3d9a0f(0x284)]())&&(_0x5a8592=_0x541df1[_0x3d9a0f(0x170)](_0x2b5427,_0x3d9a0f(0x127))[_0x3d9a0f(0xe3)]());const _0xc1b34c=_0x542d5c[_0x3d9a0f(0x10a)](_0x218963[_0x3d9a0f(0x2ea)]),_0x3fe666=new _0x2d9b58(_0xc1b34c,_0x218963[_0x3d9a0f(0xf5)]?{'encryptionKey':_0x218963[_0x3d9a0f(0xf5)]}:{});await _0x3fe666[_0x3d9a0f(0x2c4)]();try{!_0x3fe666[_0x3d9a0f(0x279)]&&(console[_0x3d9a0f(0x299)]('[okdb]\x20error:\x20license\x20management\x20is\x20only\x20available\x20in\x20licensed\x20builds\x20(npm\x20run\x20build:prod).'),process['exit'](0x1));let _0x585438;try{_0x585438=await _0x3fe666['_license'][_0x3d9a0f(0xa7)](_0x5a8592);}catch(_0x377e2e){console[_0x3d9a0f(0x299)]('[okdb]\x20error:\x20'+_0x377e2e[_0x3d9a0f(0x9d)]),process[_0x3d9a0f(0x365)](0x1);}const _0x1a73fb=_0x3fe666[_0x3d9a0f(0x279)][_0x3d9a0f(0xb2)](),_0x18d586=_0x1a73fb['find'](_0x10fbf9=>_0x10fbf9[_0x3d9a0f(0xca)]===_0x585438['id'])?.[_0x3d9a0f(0x237)]||'',_0x20ad24=Object[_0x3d9a0f(0x223)](_0x585438[_0x3d9a0f(0x1cf)]||{})[_0x3d9a0f(0x1a3)](([,_0x5bbcdf])=>_0x5bbcdf)[_0x3d9a0f(0x17e)](([_0x3810f5])=>_0x3810f5),_0x1f9b65=_0x585438['limits']||{},_0x4f39a0=[_0x1f9b65['envs']?_0x3d9a0f(0x139)+_0x1f9b65[_0x3d9a0f(0x159)]:null,_0x1f9b65[_0x3d9a0f(0x1a7)]?_0x3d9a0f(0x2a4)+_0x1f9b65[_0x3d9a0f(0x1a7)]:null,_0x1f9b65[_0x3d9a0f(0x1b0)]?_0x3d9a0f(0x6c)+_0x1f9b65[_0x3d9a0f(0x1b0)]:null,_0x1f9b65[_0x3d9a0f(0x1c7)]?_0x3d9a0f(0x245)+_0x1f9b65['maxWrites'][_0x3d9a0f(0x134)]():null][_0x3d9a0f(0x1a3)](Boolean)['join']('\x20\x20'),_0x2e1738=_0x585438[_0x3d9a0f(0x1e1)]===_0x52ad47[_0x3d9a0f(0x2fc)];console['log']('\x0a\x20\x20✓\x20License\x20added'),console[_0x3d9a0f(0x35c)](_0x3d9a0f(0x2aa)+_0x585438['id']),console[_0x3d9a0f(0x35c)](_0x3d9a0f(0x211)+_0x585438['licensee']),console[_0x3d9a0f(0x35c)]('\x20\x20\x20\x20expires:\x20\x20\x20'+new Date(_0x585438[_0x3d9a0f(0x112)])[_0x3d9a0f(0xe9)]()[_0x3d9a0f(0x281)](0x0,0xa)),console[_0x3d9a0f(0x35c)](_0x3d9a0f(0x26b)+(_0x20ad24[_0x3d9a0f(0x252)](',\x20')||_0x3d9a0f(0x16c)));if(_0x4f39a0)console[_0x3d9a0f(0x35c)](_0x3d9a0f(0x1b1)+_0x4f39a0);_0x2e1738?(console[_0x3d9a0f(0x35c)]('\x20\x20\x20\x20status:\x20\x20\x20\x20active\x20\x20(open\x20license\x20—\x20no\x20activation\x20needed)'),console[_0x3d9a0f(0x35c)]('')):(console['log']('\x20\x20\x20\x20pin:\x20\x20\x20\x20\x20\x20\x20'+_0x18d586),console[_0x3d9a0f(0x35c)]('\x20\x20\x20\x20status:\x20\x20\x20\x20pending\x20activation'),console['log'](''),console[_0x3d9a0f(0x35c)](_0x3d9a0f(0x166)),console[_0x3d9a0f(0x35c)](_0x3d9a0f(0x341)+_0x18d586+_0x3d9a0f(0x2a3)),console[_0x3d9a0f(0x35c)]('\x20\x20\x20\x202.\x20The\x20vendor\x20returns\x20an\x20activation\x20token.'),console[_0x3d9a0f(0x35c)](_0x3d9a0f(0xc3)),console[_0x3d9a0f(0x35c)](''));}finally{await _0x3fe666[_0x3d9a0f(0x1f6)]();}}async function _0x4c775b(_0x507d93,_0x1dc90f){const _0x35403e=_0x2cbeba,_0x45a6f3=require$$5,_0x575eeb=_0x542d5c[_0x35403e(0x10a)](_0x1dc90f['dbPath']),_0x9ab63c=new _0x45a6f3(_0x575eeb,_0x1dc90f[_0x35403e(0xf5)]?{'encryptionKey':_0x1dc90f[_0x35403e(0xf5)]}:{});await _0x9ab63c[_0x35403e(0x2c4)]();try{!_0x9ab63c[_0x35403e(0x279)]&&(console[_0x35403e(0x299)](_0x35403e(0x2cc)),process['exit'](0x1));let _0x377ede;try{_0x377ede=await _0x9ab63c[_0x35403e(0x279)][_0x35403e(0x1fb)](_0x507d93[_0x35403e(0xe3)]());}catch(_0x6537cb){console[_0x35403e(0x299)](_0x35403e(0x26d)+_0x6537cb[_0x35403e(0x9d)]),console[_0x35403e(0x299)](''),console[_0x35403e(0x299)](_0x35403e(0x18e)),console[_0x35403e(0x299)]('\x20\x20\x20\x20-\x20The\x20license\x20blob\x20has\x20not\x20been\x20added\x20yet\x20—\x20run\x20`okdb\x20license\x20<blob>`\x20first.'),console[_0x35403e(0x299)](_0x35403e(0x22d)),console['error']('\x20\x20\x20\x20-\x20The\x20activation\x20token\x20has\x20expired\x20—\x20request\x20a\x20fresh\x20one.'),console[_0x35403e(0x299)](''),process[_0x35403e(0x365)](0x1);}console['log'](_0x35403e(0x2eb)),console[_0x35403e(0x35c)]('\x20\x20\x20\x20id:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x377ede['id']),console[_0x35403e(0x35c)](_0x35403e(0x211)+_0x377ede[_0x35403e(0x270)]),console[_0x35403e(0x35c)](_0x35403e(0x296)+new Date(_0x377ede[_0x35403e(0x112)])['toISOString']()[_0x35403e(0x281)](0x0,0xa)),console[_0x35403e(0x35c)]('\x20\x20\x20\x20status:\x20\x20\x20\x20active'),console[_0x35403e(0x35c)]('');}finally{await _0x9ab63c[_0x35403e(0x1f6)]();}}async function _0x333d51(_0x34898d,_0x16c745){const _0x2f32c7=_0x2cbeba;!_0x34898d&&(console[_0x2f32c7(0x299)](_0x2f32c7(0x164)),process[_0x2f32c7(0x365)](0x1));const _0x2b35dc=require$$5,_0x54fea6=requireOkdbLicenseCodec(),_0x58701a=_0x542d5c['resolve'](_0x16c745[_0x2f32c7(0x2ea)]),_0x9ac61c=new _0x2b35dc(_0x58701a,_0x16c745[_0x2f32c7(0xf5)]?{'encryptionKey':_0x16c745[_0x2f32c7(0xf5)]}:{});await _0x9ac61c['open']();try{const _0x4d4ec2=_0x9ac61c[_0x2f32c7(0x2c8)];(!_0x4d4ec2||!_0x4d4ec2[_0x2f32c7(0x11b)](_0x2f32c7(0x23f)))&&(console['error'](_0x2f32c7(0x345)+_0x34898d+'\x22'),process['exit'](0x1));let _0x72b10c=null,_0x123fcc=null;const _0x12f390=_0x4d4ec2['get'](_0x2f32c7(0x23f),_0x34898d);if(_0x12f390)_0x72b10c=_0x34898d,_0x123fcc=_0x12f390;else{const _0x4de513=[];for(const {key:_0x547f48,value:_0x2fa947}of _0x4d4ec2['getRange'](_0x2f32c7(0x23f))){if(_0x547f48[_0x2f32c7(0x225)](_0x34898d))_0x4de513[_0x2f32c7(0x195)]({'key':_0x547f48,'value':_0x2fa947});}_0x4de513[_0x2f32c7(0x115)]===0x0&&(console[_0x2f32c7(0x299)](_0x2f32c7(0x345)+_0x34898d+'\x22'),process[_0x2f32c7(0x365)](0x1)),_0x4de513['length']>0x1&&(console[_0x2f32c7(0x299)](_0x2f32c7(0x216)+_0x34898d+_0x2f32c7(0x1ec)+_0x4de513[_0x2f32c7(0x115)]+_0x2f32c7(0x2ac)),process['exit'](0x1)),_0x72b10c=_0x4de513[0x0]['key'],_0x123fcc=_0x4de513[0x0][_0x2f32c7(0x132)];}const _0x499b63=Date[_0x2f32c7(0x92)](),_0x5006d1=_0x49dea1(_0x123fcc,_0x499b63),_0x5063a5=_0x9ac61c['id'],_0x878cc8=_0x2f32c7(0x348);let _0x3871f5='';try{const _0x69c180=Buffer[_0x2f32c7(0xa9)](_0x123fcc[_0x2f32c7(0xcf)],_0x2f32c7(0x1fc));_0x3871f5=_0x54fea6[_0x2f32c7(0x331)](_0x5063a5,_0x69c180,_0x878cc8)['pin'];}catch{}const _0x5123d5=_0x123fcc[_0x2f32c7(0x1cf)]?Object[_0x2f32c7(0x223)](_0x123fcc[_0x2f32c7(0x1cf)])[_0x2f32c7(0x1a3)](([,_0x4e65b4])=>_0x4e65b4)[_0x2f32c7(0x17e)](([_0x92b1d7])=>_0x92b1d7):[],_0x34faab=_0x123fcc[_0x2f32c7(0x321)]||{},_0xf94f91=_0x4d4ec2?.['db']?.[_0x2f32c7(0x250)]?.(_0x2f32c7(0x36b))??0x0,_0xc2d2f5=[..._0x9ac61c[_0x2f32c7(0x11f)][_0x2f32c7(0x235)]()][_0x2f32c7(0x1a3)](_0x2e9173=>!_0x2e9173[_0x2f32c7(0x225)]('~'))[_0x2f32c7(0x115)];console[_0x2f32c7(0x35c)]('\x0a\x20\x20License\x20details:'),console[_0x2f32c7(0x35c)](_0x2f32c7(0x2aa)+_0x72b10c),console[_0x2f32c7(0x35c)](_0x2f32c7(0x211)+(_0x123fcc[_0x2f32c7(0x270)]||'')),console[_0x2f32c7(0x35c)](_0x2f32c7(0x296)+(_0x123fcc['expiresAt']?new Date(_0x123fcc['expiresAt'])['toISOString']()[_0x2f32c7(0x281)](0x0,0xa):'')),console[_0x2f32c7(0x35c)](_0x2f32c7(0x26b)+(_0x5123d5[_0x2f32c7(0x252)](',\x20')||_0x2f32c7(0x16c))),console[_0x2f32c7(0x35c)](_0x2f32c7(0x309)+_0x3871f5),console[_0x2f32c7(0x35c)]('\x20\x20\x20\x20status:\x20\x20\x20\x20'+_0x5006d1),console[_0x2f32c7(0x35c)](_0x2f32c7(0x1dc)+new Date(_0x123fcc[_0x2f32c7(0x30a)])[_0x2f32c7(0xe9)]());if(_0x5006d1===_0x2f32c7(0x361)){console[_0x2f32c7(0x35c)](''),console[_0x2f32c7(0x35c)](_0x2f32c7(0x14a));if(_0x34faab[_0x2f32c7(0x1c7)]){const _0x3974b2=Math[_0x2f32c7(0x338)](_0xf94f91/_0x34faab[_0x2f32c7(0x1c7)]*0x64);console[_0x2f32c7(0x35c)](_0x2f32c7(0x157)+_0xf94f91[_0x2f32c7(0x134)]()+_0x2f32c7(0x77)+_0x34faab[_0x2f32c7(0x1c7)][_0x2f32c7(0x134)]()+'\x20\x20('+_0x3974b2+'%)');}else console['log']('\x20\x20\x20\x20writes:\x20\x20\x20\x20'+_0xf94f91[_0x2f32c7(0x134)]()+_0x2f32c7(0x13b));_0x34faab[_0x2f32c7(0x159)]?console[_0x2f32c7(0x35c)](_0x2f32c7(0x18b)+_0xc2d2f5+_0x2f32c7(0x77)+_0x34faab[_0x2f32c7(0x159)]):console[_0x2f32c7(0x35c)](_0x2f32c7(0x18b)+_0xc2d2f5+_0x2f32c7(0x13b));}console[_0x2f32c7(0x35c)]('');}finally{await _0x9ac61c[_0x2f32c7(0x1f6)]();}}async function _0x51fac8(_0x20b06d,_0x24a235){const _0x16ff5c=_0x2cbeba;!_0x20b06d&&(console[_0x16ff5c(0x299)](_0x16ff5c(0x1f8)),process[_0x16ff5c(0x365)](0x1));const _0x5868f2=require$$5,_0x5d18e9=_0x542d5c[_0x16ff5c(0x10a)](_0x24a235['dbPath']),_0x182e08=new _0x5868f2(_0x5d18e9,_0x24a235[_0x16ff5c(0xf5)]?{'encryptionKey':_0x24a235[_0x16ff5c(0xf5)]}:{});await _0x182e08['open']();try{const _0xce5c7d=_0x182e08['_systemEnv'];(!_0xce5c7d||!_0xce5c7d['hasType']('~licenses'))&&(console['error']('[okdb]\x20error:\x20no\x20license\x20with\x20id\x20\x22'+_0x20b06d+'\x22'),process['exit'](0x1));let _0x38980d=null,_0x308d0d=null;const _0x515d80=_0xce5c7d[_0x16ff5c(0x250)]('~licenses',_0x20b06d);if(_0x515d80)_0x38980d=_0x20b06d,_0x308d0d=_0x515d80;else{const _0x18f8d9=[];for(const {key:_0xcb0625,value:_0x30f5f0}of _0xce5c7d[_0x16ff5c(0x2e9)](_0x16ff5c(0x23f))){if(_0xcb0625['startsWith'](_0x20b06d))_0x18f8d9['push']({'key':_0xcb0625,'value':_0x30f5f0});}_0x18f8d9[_0x16ff5c(0x115)]===0x0&&(console[_0x16ff5c(0x299)](_0x16ff5c(0x345)+_0x20b06d+'\x22'),process[_0x16ff5c(0x365)](0x1)),_0x18f8d9[_0x16ff5c(0x115)]>0x1&&(console['error'](_0x16ff5c(0x216)+_0x20b06d+_0x16ff5c(0x1ec)+_0x18f8d9[_0x16ff5c(0x115)]+_0x16ff5c(0x2ac)),process[_0x16ff5c(0x365)](0x1)),_0x38980d=_0x18f8d9[0x0][_0x16ff5c(0xf5)],_0x308d0d=_0x18f8d9[0x0][_0x16ff5c(0x132)];}await _0xce5c7d[_0x16ff5c(0x33c)](_0x16ff5c(0x23f),_0x38980d),console[_0x16ff5c(0x35c)](_0x16ff5c(0x18a)+_0x38980d+'\x20\x20(licensee:\x20'+(_0x308d0d['licensee']||_0x16ff5c(0x35d))+')');}finally{await _0x182e08[_0x16ff5c(0x1f6)]();}}async function _0x585b1b(_0x3c7cd4,_0x9910f7,_0x361062){const _0x2de4c6=_0x2cbeba;!_0x3c7cd4&&(console[_0x2de4c6(0x299)]('[okdb]\x20error:\x20join\x20requires\x20a\x20remote\x20address.\x20Usage:\x20okdb\x20join\x20<address>\x20--token\x20<t>'),process['exit'](0x1));!_0x361062[_0x2de4c6(0x1bf)]&&!(_0x361062[_0x2de4c6(0x7b)]&&_0x361062[_0x2de4c6(0x246)])&&(console[_0x2de4c6(0x299)]('[okdb]\x20error:\x20join\x20requires\x20credentials.\x20Provide\x20--token\x20<t>\x20or\x20--username\x20<u>\x20--password\x20<p>'),process[_0x2de4c6(0x365)](0x1));const _0x57842e=_0x361062[_0x2de4c6(0x91)]||_0x9910f7[_0x2de4c6(0x2f1)]?.[_0x2de4c6(0x9c)];!_0x57842e&&(console[_0x2de4c6(0x299)](_0x2de4c6(0x1c9)+'\x20\x20Example:\x20okdb\x20join\x20https://node-a.example.com\x20--token\x20<t>\x20--address\x20http://myhost:8484\x0a'+_0x2de4c6(0x2bb)),process['exit'](0x1));const _0x316531=require$$5,_0x25bd9a=new _0x316531(_0x9910f7['dbPath'],{'sync':{'address':_0x57842e,'auto_reconcile':![]}});await _0x25bd9a['open']();try{const _0x4ab148=_0x25bd9a['_systemEnv'];if(_0x4ab148&&_0x4ab148[_0x2de4c6(0x11b)](_0x2de4c6(0x13f))){let _0x1b6f85=![];for(const _0x45953e of _0x4ab148[_0x2de4c6(0x2e9)]('~tokens')){_0x1b6f85=!![];break;}_0x1b6f85&&console['log'](_0x2de4c6(0x364)+'\x20\x20after\x20sync.\x20Duplicate\x20names\x20will\x20surface\x20as\x20ambiguous\x20logins\x20to\x20clean\x20up.');}console[_0x2de4c6(0x35c)](_0x2de4c6(0x31a)+_0x3c7cd4+'…'),await _0x25bd9a['sync'][_0x2de4c6(0x252)](_0x3c7cd4[_0x2de4c6(0x244)](/\/+$/,''),{'token':_0x361062[_0x2de4c6(0x1bf)],'username':_0x361062['username'],'password':_0x361062[_0x2de4c6(0x246)]}),console[_0x2de4c6(0x35c)](_0x2de4c6(0x1aa)),console[_0x2de4c6(0x35c)](_0x2de4c6(0x6b));}finally{await _0x25bd9a[_0x2de4c6(0x1f6)]();}}async function _0x5153c4(){const _0x435b7b=_0x2cbeba,_0x3dfcf4=Date['now'](),_0x433f27=_0x9d60e3(process[_0x435b7b(0x1ea)]),_0x498cb4=_0x4a5658(_0x433f27),_0x1715e3=_0x542d5c[_0x435b7b(0x10a)](_0x498cb4['dbPath']);!_0x498cb4[_0x435b7b(0x2de)]&&!process[_0x435b7b(0x285)][_0x435b7b(0x142)]&&(_0x498cb4[_0x435b7b(0x2de)]=!![]);const _0x55117a=require$$5,{start:_0x14e276,colorLog:_0x16efaf}=requireOkdbShell(),_0x3fb8a9={..._0x498cb4[_0x435b7b(0xf5)]?{'encryptionKey':_0x498cb4[_0x435b7b(0xf5)]}:{},..._0x498cb4['noAdmin']?{'admin':![]}:_0x181347(_0x498cb4[_0x435b7b(0x287)])?{'admin':_0x498cb4[_0x435b7b(0x287)]}:{},..._0x181347(_0x498cb4['api'])?{'api':_0x498cb4[_0x435b7b(0x30d)]}:{},..._0x181347(_0x498cb4[_0x435b7b(0x30e)])?{'auth':_0x498cb4[_0x435b7b(0x30e)]}:{},..._0x181347(_0x498cb4[_0x435b7b(0x2d6)])?{'mcp':_0x498cb4[_0x435b7b(0x2d6)]}:{},..._0x498cb4[_0x435b7b(0x116)]!==![]?{'timeMachine':_0x498cb4[_0x435b7b(0x116)]}:{}},_0x58b5b0=new _0x55117a(_0x1715e3,_0x3fb8a9);_0x58b5b0[_0x435b7b(0x35c)][_0x435b7b(0x290)]?.();const _0x5b88b2=_0x58b5b0[_0x435b7b(0x35c)][_0x435b7b(0x209)](_0x7b62f9=>_0x16efaf(_0x7b62f9,_0x498cb4[_0x435b7b(0x34f)]));if(_0x498cb4[_0x435b7b(0x2de)])process[_0x435b7b(0x2ce)][_0x435b7b(0x107)](_0x435b7b(0x162));await _0x58b5b0[_0x435b7b(0x2c4)]();if(_0x498cb4['noRepl'])process[_0x435b7b(0x2ce)][_0x435b7b(0x107)]('\x20\x20✓\x20database\x20opened\x0a');try{await _0x13aadb(_0x58b5b0,_0x498cb4[_0x435b7b(0x1fe)]);}catch(_0x2770ee){_0x2770ee[_0x435b7b(0x2fe)]==='EADDRINUSE'&&(console[_0x435b7b(0x299)](_0x435b7b(0xae)+_0x498cb4['port']+_0x435b7b(0x322)),process[_0x435b7b(0x365)](0x1));throw _0x2770ee;}if(_0x498cb4['noRepl'])process['stdout'][_0x435b7b(0x107)]('\x20\x20✓\x20http\x20listening\x20on\x20:'+_0x498cb4[_0x435b7b(0x1fe)]+'\x0a');if(!_0x498cb4[_0x435b7b(0x2de)])_0x58b5b0[_0x435b7b(0x35c)]['detachConsole']?.(),_0x5b88b2?.(),_0x177a91(_0x58b5b0[_0x435b7b(0x30e)]?.[_0x435b7b(0x1ef)]?.()??[]),await _0x14e276(_0x58b5b0,_0x498cb4);else{const _0x5a1781=_0x542d5c[_0x435b7b(0x252)](_0x1715e3,_0x435b7b(0x330));try{_0x541df1[_0x435b7b(0x2da)](_0x5a1781,String(process[_0x435b7b(0x30c)]));}catch{}const _0x10dc62=Date[_0x435b7b(0x92)]()-_0x3dfcf4;console[_0x435b7b(0x35c)](''),console[_0x435b7b(0x35c)](_0x435b7b(0x130)),console[_0x435b7b(0x35c)]('\x20\x20\x20\x20port:\x20\x20'+_0x498cb4[_0x435b7b(0x1fe)]),console[_0x435b7b(0x35c)](_0x435b7b(0x326)+_0x1715e3),console[_0x435b7b(0x35c)](_0x435b7b(0x1c2)+_0x58b5b0['id']);{const _0xab846c=_0x58b5b0[_0x435b7b(0x2c8)]?.['db']?.[_0x435b7b(0x250)]?.('__writeCounter')??0x0,_0x2fb19e=[..._0x58b5b0['_envs'][_0x435b7b(0x235)]()][_0x435b7b(0x1a3)](_0x18e016=>!_0x18e016[_0x435b7b(0x225)]('~'))['length'];if(_0x58b5b0[_0x435b7b(0x279)]?.[_0x435b7b(0x361)]?.[_0x435b7b(0x1e1)]===0x1){const _0x318cd1=Math[_0x435b7b(0x1d4)]((_0x58b5b0['_license'][_0x435b7b(0x361)]['expiresAt']-Date['now']())/0x5265c00);console['log'](_0x435b7b(0x2f8)+_0x58b5b0['_license'][_0x435b7b(0x361)][_0x435b7b(0x270)]+'\x20(expires\x20in\x20'+_0x318cd1+_0x435b7b(0xea));}else{if(_0x58b5b0[_0x435b7b(0x279)]?.[_0x435b7b(0x361)]){const _0x20dfc7=_0x58b5b0['_license'][_0x435b7b(0x361)];console['log']('\x20\x20\x20\x20license:\x20'+_0x20dfc7[_0x435b7b(0x270)]+_0x435b7b(0x19f)+new Date(_0x20dfc7['expiresAt'])[_0x435b7b(0xe9)]()['slice'](0x0,0xa)+')');const _0x2cf02d=_0x20dfc7['limits']||{};if(_0x2cf02d[_0x435b7b(0x1c7)]){const _0x1c84fc=Math['round'](_0xab846c/_0x2cf02d[_0x435b7b(0x1c7)]*0x64);console[_0x435b7b(0x35c)]('\x20\x20\x20\x20usage:\x20\x20\x20'+_0xab846c[_0x435b7b(0x134)]()+_0x435b7b(0x77)+_0x2cf02d[_0x435b7b(0x1c7)]['toLocaleString']()+_0x435b7b(0x21a)+_0x1c84fc+'%),\x20'+_0x2fb19e+(_0x2cf02d['envs']?'/'+_0x2cf02d['envs']:'')+_0x435b7b(0x313)+(_0x2fb19e===0x1?'':'s'));}}else{if(_0x58b5b0[_0x435b7b(0x279)]){const _0x48b29f=_0x58b5b0[_0x435b7b(0x279)][_0x435b7b(0xb2)](),_0x26de42=_0x48b29f[_0x435b7b(0x115)]?_0x48b29f[_0x435b7b(0x17e)](_0x5d36a8=>_0x5d36a8[_0x435b7b(0x237)])[_0x435b7b(0x252)](',\x20'):_0x435b7b(0x2f7),_0x36e539=_0x58b5b0[_0x435b7b(0x279)][_0x435b7b(0x2d5)],_0x4d8004=_0x36e539['limits'][_0x435b7b(0x1c7)]?Math[_0x435b7b(0x338)](_0xab846c/_0x36e539['limits'][_0x435b7b(0x1c7)]*0x64):0x0;console['log']('\x20\x20\x20\x20license:\x20free\x20tier\x20—\x20add\x20a\x20license\x20to\x20unlock\x20sync,\x20embeddings,\x20engines,\x20time-machine'),console[_0x435b7b(0x35c)]('\x20\x20\x20\x20usage:\x20\x20\x20'+_0xab846c[_0x435b7b(0x134)]()+_0x435b7b(0x77)+_0x36e539['limits'][_0x435b7b(0x1c7)][_0x435b7b(0x134)]()+_0x435b7b(0x21a)+_0x4d8004+'%),\x20'+_0x2fb19e+'\x20/\x20'+_0x36e539[_0x435b7b(0x321)][_0x435b7b(0x159)]+'\x20envs'),console['log'](_0x435b7b(0x2e4)+_0x26de42);}}}}console['log'](_0x435b7b(0x131)+_0x498cb4['port']+_0x435b7b(0x28a));!_0x498cb4[_0x435b7b(0x251)]&&console[_0x435b7b(0x35c)](_0x435b7b(0x349)+_0x498cb4['port']+_0x435b7b(0x10f));console['log'](''),console[_0x435b7b(0x35c)](_0x435b7b(0x1b9)+_0x10dc62+'ms'),_0x177a91(_0x58b5b0[_0x435b7b(0x30e)]?.[_0x435b7b(0x1ef)]?.()??[]);async function _0x40cafd(){const _0xb74e2f=_0x435b7b;process['stdout'][_0xb74e2f(0x107)](_0xb74e2f(0xf9));try{_0x541df1[_0xb74e2f(0x30f)](_0x5a1781);}catch{}await _0x58b5b0[_0xb74e2f(0x1f6)](),process['exit'](0x0);}process['on'](_0x435b7b(0x17c),_0x40cafd),process['on'](_0x435b7b(0x359),_0x40cafd);}}const _0x1cdf8a=new Set([_0x2cbeba(0x2d2),'doctor',_0x2cbeba(0x96),_0x2cbeba(0x7d),_0x2cbeba(0x7a),_0x2cbeba(0x300),_0x2cbeba(0xe4),_0x2cbeba(0x1bf),_0x2cbeba(0x252),_0x2cbeba(0x1bb)]),_0x28779f=process[_0x2cbeba(0x1ea)][0x2];if(_0x28779f===_0x2cbeba(0x2d2))console[_0x2cbeba(0x35c)](require$$2[_0x2cbeba(0x2d2)]),process[_0x2cbeba(0x365)](0x0);else{if(_0x28779f&&_0x1cdf8a[_0x2cbeba(0x243)](_0x28779f)){const _0xb779e1=process['argv'][_0x2cbeba(0x281)](0x3),_0xd3a96=_0x9d60e3(['node',_0x2cbeba(0x230),..._0xb779e1]),_0x2c107c=_0x4a5658(_0xd3a96),_0x19b30a=new Set([_0x2cbeba(0x14e),'-d',_0x2cbeba(0x2b5),'-k',_0x2cbeba(0x141),'-c','--port','-p',_0x2cbeba(0x27a),'--env','-e',_0x2cbeba(0x26f),_0x2cbeba(0x1f2),_0x2cbeba(0x14d),_0x2cbeba(0x2f5),_0x2cbeba(0x305),_0x2cbeba(0x145),'--ttl',_0x2cbeba(0x79),'--username','-u','--address']);let _0x51a55a=null;for(let _0x27d3ea=0x0;_0x27d3ea<_0xb779e1[_0x2cbeba(0x115)];_0x27d3ea++){if(_0x19b30a[_0x2cbeba(0x243)](_0xb779e1[_0x27d3ea])){_0x27d3ea++;continue;}if(!_0xb779e1[_0x27d3ea][_0x2cbeba(0x225)]('-')){_0x51a55a=_0xb779e1[_0x27d3ea];break;}}(async()=>{const _0xdbb128=_0x2cbeba;if(_0x28779f===_0xdbb128(0x1bf)){const _0x255882=process[_0xdbb128(0x1ea)][0x3],_0x1bcf90=process['argv'][_0xdbb128(0x281)](0x4),_0xa33d17=_0x9d60e3([_0xdbb128(0x34c),_0xdbb128(0x230),..._0x1bcf90]),_0x54423d=_0x4a5658(_0xa33d17),_0xa89219=new Set([_0xdbb128(0x14e),'-d','--key','-k',_0xdbb128(0x141),'-c','--port','-p','--name',_0xdbb128(0x14d),_0xdbb128(0x2f5),_0xdbb128(0x305),_0xdbb128(0x145),'--ttl','--log-level',_0xdbb128(0xf0),'-e','--types']),_0x57072b=[];for(let _0x4ff744=0x0;_0x4ff744<_0x1bcf90[_0xdbb128(0x115)];_0x4ff744++){if(_0xa89219[_0xdbb128(0x243)](_0x1bcf90[_0x4ff744])){_0x4ff744++;continue;}if(_0x1bcf90[_0x4ff744][_0xdbb128(0x225)]('-'))continue;_0x57072b['push'](_0x1bcf90[_0x4ff744]);}switch(_0x255882){case _0xdbb128(0x248):await _0x356f94(_0x54423d,_0xa33d17);break;case _0xdbb128(0x82):await _0x2aadb8(_0x54423d);break;case _0xdbb128(0x2d9):await _0x4c2f80(_0x57072b[0x0],_0x54423d);break;default:console[_0xdbb128(0x299)](_0xdbb128(0x98)+_0x255882+_0xdbb128(0x2d1)),process[_0xdbb128(0x365)](0x1);}return;}if(_0x28779f==='license'){const _0x151ed=requireOkdbLicenseCodec(),_0x2c819e=process['argv'][_0xdbb128(0x281)](0x3),_0x2dc678=_0x9d60e3([_0xdbb128(0x34c),_0xdbb128(0x230),..._0x2c819e]),_0x3c3f93=_0x4a5658(_0x2dc678),_0x214361=new Set([_0xdbb128(0x14e),'-d','--key','-k',_0xdbb128(0x141),'-c',_0xdbb128(0x175),'-p','--log-level']),_0xfaa99a=[];for(let _0x18a7fe=0x0;_0x18a7fe<_0x2c819e[_0xdbb128(0x115)];_0x18a7fe++){if(_0x214361['has'](_0x2c819e[_0x18a7fe])){_0x18a7fe++;continue;}if(_0x2c819e[_0x18a7fe]['startsWith']('-'))continue;_0xfaa99a[_0xdbb128(0x195)](_0x2c819e[_0x18a7fe]);}const _0x5d807b=_0xfaa99a[0x0]??null;if(_0x5d807b===_0xdbb128(0x33c))await _0x51fac8(_0xfaa99a[0x1],_0x3c3f93);else{if(!_0x5d807b)await _0x2a167f(_0x3c3f93);else{let _0x233bf3=_0x151ed[_0xdbb128(0xbe)](_0x5d807b);if(_0x233bf3==='unknown'&&_0x541df1[_0xdbb128(0x340)](_0x5d807b))_0x233bf3=_0xdbb128(0x1e3);if(_0x233bf3===_0xdbb128(0x1e3))try{const _0x4d1fbf=_0x541df1[_0xdbb128(0x170)](_0x5d807b,'utf8')[_0xdbb128(0xe3)](),_0xeea8e2=_0x151ed['detectInputType'](_0x4d1fbf);if(_0xeea8e2===_0xdbb128(0x1bd)){await _0x4c775b(_0x4d1fbf,_0x3c3f93);return;}await _0x1c2240(_0x5d807b,_0x3c3f93);return;}catch(_0xbff5a3){console[_0xdbb128(0x299)](_0xdbb128(0xac)+_0x5d807b+':\x20'+_0xbff5a3['message']),process[_0xdbb128(0x365)](0x1);}switch(_0x233bf3){case _0xdbb128(0x7f):await _0x1c2240(_0x5d807b,_0x3c3f93);break;case _0xdbb128(0x1bd):await _0x4c775b(_0x5d807b,_0x3c3f93);break;case _0xdbb128(0x17a):await _0x333d51(_0x5d807b,_0x3c3f93);break;default:console['error']('[okdb]\x20error:\x20unrecognized\x20input:\x20\x22'+_0x5d807b+'\x22'),console[_0xdbb128(0x299)](''),console['error']('\x20\x20Expected\x20one\x20of:'),console[_0xdbb128(0x299)](_0xdbb128(0x138)),console['error'](_0xdbb128(0x7e)),console[_0xdbb128(0x299)](_0xdbb128(0x27d)),console[_0xdbb128(0x299)]('\x20\x20\x20\x20•\x20a\x20path\x20to\x20a\x20.license\x20file'),console[_0xdbb128(0x299)](''),console[_0xdbb128(0x299)](_0xdbb128(0x292)),process[_0xdbb128(0x365)](0x1);}}}return;}switch(_0x28779f){case'doctor':await _0x332ee5(_0x2c107c);break;case _0xdbb128(0x96):await _0x204dce();break;case'reset':await _0x2e0dc6(_0x2c107c);break;case _0xdbb128(0x7d):await _0x29da7f(_0x51a55a??_0x542d5c[_0xdbb128(0x10a)](_0xdbb128(0x31c)),_0x2c107c);break;case _0xdbb128(0x7a):await _0x5048e1(_0x51a55a??_0x542d5c['resolve'](_0xdbb128(0x280)),_0x2c107c,_0xd3a96);break;case _0xdbb128(0x300):await _0x51aa0a(_0x51a55a??_0x542d5c[_0xdbb128(0x10a)]('./okdb-export.ndjson'),_0x2c107c,_0xd3a96);break;case _0xdbb128(0x252):await _0x585b1b(_0x51a55a,_0x2c107c,_0xd3a96);break;}})()[_0x2cbeba(0x2a7)](()=>process[_0x2cbeba(0x365)](0x0))['catch'](_0x1055d8=>{const _0x207cdc=_0x2cbeba;console['error']('\x0a[okdb]\x20error:\x20'+(_0x1055d8[_0x207cdc(0x9d)]||_0x1055d8)+'\x0a'),process[_0x207cdc(0x365)](0x1);});}else _0x5153c4()['catch'](_0x5f22c9=>{const _0x46fb5d=_0x2cbeba;console[_0x46fb5d(0x299)](_0x46fb5d(0x1ac)),console['error'](_0x5f22c9['stack']||_0x5f22c9),process[_0x46fb5d(0x365)](0x1);});}return okdb$1;}var okdbExports=requireOkdb(),okdb=getDefaultExportFromCjs(okdbExports);module[_0x19ca31(0x306)]=okdb;