{"version":3,"sources":["jsdelivr-header.js","/npm/web-terminaljs@0.6.1/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACNA,aASA,MAAM,aAAe,QAAQ,UAAU,aAEjC,KAAO,QAAQ,UAErB,MAAM,iBAAiB,aAEnB,QAAU,QACV,OAAS,CAAC,EACV,aAAe,CAAC,EAChB,KAAO,CAAC,EACR,EAAO,KAAK,UACZ,cAAgB,CAAC,EACjB,KAAO,CAAC,EACR,UAAY,CAAC,EACb,QAAU,CACb,WAAgB,EAChB,MAAgB,OAChB,SAAgB,YAChB,KAAgB,GAChB,KAAgB,UAAU,kBAC1B,IAAgB,IAChB,cAAgB,WAChB,WAAgB,mBAChB,QAAgB,EAChB,QAAgB,yCAChB,SAAgB,6DAChB,OAAgB,EAChB,IAAgB,GAChB,GAAgB,GAChB,aAAqB,CAAC,EACtB,mBAAqB,CAAC,EACtB,kBAAqB,CAAC,EACtB,QAAqB,CAAC,EACtB,KAAqB,CAAC,GAInB,KAAiB,KAAK,QACtB,aAAiB,KAAK,KAAK,YAC3B,eAAiB,KAAK,KAAK,cAC3B,eAAiB,KAAK,KAAK,cAC3B,KAAiB,KAAK,QACtB,SAAiB,KAAK,QACtB,WAAiB,KAAK,IAAI,SAC1B,MAAiB,KAAK,IAAI,KAC1B,OAAiB,KAAK,IAAI,MAC1B,MAAiB,KAAK,IAAI,GAC1B,IAAiB,KAAK,GAItB,MAAA,CAAO,GACV,KAAK,KAAK,EAAK,GAAG,aACf,CAEA,WAAA,CAAY,GACf,QACA,KAAK,KAAK,GACV,KAAK,iBACD,KAAK,QAAQ,WACb,KAAK,aAET,KAAK,KAEF,EAKJ,OAAO,QAAS","file":"/npm/web-terminaljs@0.6.1/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/web-terminaljs@0.6.1/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","'use strict'\r\n/**\r\n * @file Web-Terminaljs\r\n * @author Alfredo Roman <alfredoromandominguez@gmail.com>\r\n * @version 0.5.0\r\n*/\r\n\r\n\r\n\r\nconst EventEmitter = require('events').EventEmitter;\r\n\r\nconst core = require('./core');\r\n\r\nclass terminal extends EventEmitter{\r\n    /* default config */\r\n    version = '0.6.1';\r\n    module = {};//funstions for module\r\n    list_modules = {};//list of modules load\r\n    user = {};//list socket IO connected \r\n    f    = core.functions;//functions\r\n    client_socket = {};//list client io object\r\n    repo = {};//list modules repositorie\r\n    installed = {};//list modules installed in custom path\r\n    options = {\r\n\twebEngine     : true,\r\n\tproto         : 'http',\r\n\tpublicip      : '127.0.0.1',\r\n\tport          : 80,\r\n\tpath          : __dirname+'/../../modules/',\r\n\turl           : '/',\r\n\tio_name_space : 'terminal',\r\n\tlngTimeout    : 'comand not found',\r\n\tverbose       : 0,\r\n\trepoURL       : 'https://github.com/oztar/wtm/raw/main/',\r\n\trepoJson      : 'https://raw.githubusercontent.com/oztar/wtm/main/list.json',\r\n\tlogin         : false, \r\n\tapp           : '',//express()\r\n\tio            : '',//sokect.io(http.createServer(app))\r\n\tlist_command       : {},//list enabled commands\r\n\tlist_usage_command : {},//autocomplete list v1\r\n\tlist_auto_command  : {},//autocomplete list v1\r\n\tmodules            : {},//list modules loaded\r\n\tuser               : {}//list user login\r\n    };\r\n\r\n    //functions core\r\n    _opc           = core.options;\r\n    _load_module   = core.mods.load_module;\r\n    _unload_module = core.mods.unload_module;\r\n    _start_modules = core.mods.start_modules;\r\n    _log           = core.verbose;\r\n    _welcome       = core.welcome;\r\n    _start_web     = core.web.star_web\r\n    _html          = core.web.html;\r\n    _basic         = core.web.basic;\r\n    _wtio          = core.web.io;\r\n    _io            = core.io;\r\n\r\n\r\n    //functions external, default-> always true\r\n    _login(dats){\r\n\tthis.emit(dats.id+'login|true');\r\n    }\r\n\r\n    constructor(options){\r\n\tsuper();\r\n\tthis._opc(options);\r\n\tthis._start_modules();\r\n\tif( this.options.webEngine){\r\n\t    this._start_web();\r\n\t}\r\n\tthis._io();\r\n\r\n    }\r\n}\r\n\r\n\r\n\r\nmodule.exports =terminal;\r\n"]}