'use strict';
import { isObject } from '../../types/ensure-type.js';

var __defProp=Object['defineProperty'],__name=(_0x11a840,_0x112428)=>__defProp(_0x11a840,'name',{'value':_0x112428,'configurable':!![]});const logLen=0x23cb+-0xc67+-0x4*0x5a7;const latestLogs=[];function addLog(_0x38b166){checkLength(_0x38b166),latestLogs['push'](_0x38b166),latestLogs['length']>0x1c30+-0xdf6+-0xdd6&&latestLogs['splice'](0xaf9+-0xe*0x2a2+-0x19e3*-0x1,-0x1*-0x7e2+0x1fd*0x9+-0x887*0x3);}__name(addLog,'addLog');function clearLatestLogs(){latestLogs['splice'](-0x9*0x295+-0x11c6+0x2903,latestLogs['length']);}__name(clearLatestLogs,'clearLatestLogs');function getLatestLogs(){return latestLogs;}__name(getLatestLogs,'getLatestLogs');function checkLength(_0x5cb159){if(!isObject(_0x5cb159['message'])&&_0x5cb159['message']['length']>logLen)_0x5cb159['message']=_0x5cb159['message']['substring'](-0x957+-0x171*0x17+0x2a7e,logLen);}__name(checkLength,'checkLength');

export { addLog, clearLatestLogs, getLatestLogs, logLen };
