titanfiber 1.0.63 → 1.0.65
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.
- package/Dist/titanfiber.pkg.js +1 -1
- package/package.json +1 -1
package/Dist/titanfiber.pkg.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var t_node_getScriptPath=function(){return process.mainModule?.filename??null},t_path_getUserDir=function(t){return t?"C:/Users/"+t+"/":process.env.USERPROFILE+"\\"},t_v_constructorMatches=function(t,e){return null!=t&&t.constructor===e},t_o_constructorMatches=t_v_constructorMatches,t_re_is=function(t){return t_o_constructorMatches(t,RegExp)},t_s_is=function(t){return"string"==typeof t},t_o_is=function(t){return t_v_constructorMatches(t,Object)},t_s_chars=function(t){return new Set(t)},t_re_parseFlagString=function(t){var e={};if(t){var r=t_s_chars(t);r.has("g")&&(e.global=!0),r.has("i")&&(e.caseInsensitive=!0),r.has("y")&&(e.sticky=!0)}return e},t_re_createFlagString=function(t){var e="";return t.global&&(e+="g"),(t.caseInsensitive||0==t.caseSensitive)&&(e+="i"),t.sticky&&(e+="y"),e},t_re_updateFlagString=function(t,e){var r=t_re_parseFlagString(t);return t_re_createFlagString(Object.assign(r,e))},t_re_copy=function(t,e){var r=e,_=void 0;return t_s_is(r)?_=r:t_o_is(r)&&(_=t_re_updateFlagString(t.flags,r)),new RegExp(t,_)},t_re_addFlag=function(t,e){return t_re_copy(t,t.flags+e)},t_re_global=function(t){return t_re_addFlag(t,"g")},t_re_ensureGlobal=function(t){return t.global?t:t_re_global(t)},t_re_resolveFlags=function(t){var e=t;return null==e?void 0:t_s_is(e)?e:t_re_createFlagString(e)},t_re_create=function(t,e){return new RegExp(t,t_re_resolveFlags(e))},t_re_escape=function(t){return t.replace(/[-[\]{}()*+!<=:?.\/\\^$|#\s,]/g,"\\$&")},t_re_createEscaped=function(t,e){return t_re_create(t_re_escape(t),e)},t_s_replaceAll=function(t,e,r){return t.replaceAll?(t_re_is(e)&&(e=t_re_ensureGlobal(e)),t.replaceAll(e,r)):(e=t_s_is(e)?t_re_createEscaped(e,"g"):t_re_ensureGlobal(e),this.replace(e,r))},t_s_replace=t_s_replaceAll,t_a_last=function(t){return t[t.length-1]},t_a_resolveIndex=function(t,e){return e<0?t.length+e:e},t_s_resolveIndex=t_a_resolveIndex,t_re_setStartIndex=function(t,e,r){return t=t_re_copy(t,{global:!0}),null!=r&&(e=t_s_resolveIndex(r,e)),t.lastIndex=e,t},t_re_matchAll=function(t,e,r){return t=null!=r?t_re_setStartIndex(t,r,e):t_re_ensureGlobal(t),Array.from(e.matchAll(t))},t_re_matchLast=function(t,e,r){return null!=r&&(e=e.slice(0,r)),t_a_last(t_re_matchAll(t,e))||null},t_re_matchEnd=function(t,e){var r=t_re_matchLast(t,e);return r&&e.length===r.index+r[0].length?r:null},t_o_addNonEnumerable=function(t,e,r){Object.defineProperty(t,e,{value:r,writable:!0,enumerable:!1,configurable:!0})},t_o_setHidden=t_o_addNonEnumerable,t_f_setName=function(t,e){Object.defineProperty(t,"name",{value:e,configurable:!0}),t_o_setHidden(t,"displayName",e)},t_f_withName=function(t,e){return t&&t_f_setName(e,t),e},t_class_withName=t_f_withName,t_err_Enhanced=function(t){return t_class_withName(t.name,class extends t{constructor(t,e){super(t,e);var r=this.constructor.name;r&&(this.name=r)}})},t_err_TypeError=t_err_Enhanced(globalThis.TypeError),t_v_type=function(t){return null==t?t:t.constructor},t_f_one=function(t){var e,r=!1;return function(){return r||(r=!0,e=t.apply(this,arguments)),e}},t_macro_config=function(t){},t_node_is=t_f_one((function(){return t_macro_config("node.is")??"undefined"==typeof window})),t_node__basicRequire=function(t){return require(t)},t_npm_isBuiltIn=function(t){return!!t.startsWith("node:")||t_node__basicRequire("node:module").isBuiltin(t)},t_npm_isFile=function(t){return t.startsWith(".")},t_node_promptYNSync=function(t){return t_node_require("readline-sync").keyInYNStrict(t)},t_npm__promptForInstall=function(t,e){if("readline-sync"===t)throw new Error('Npm package "readline-sync" is required to prompt for package installation.');return e||(e='Npm package "'+t+'" is required. Install now?'),t_node_promptYNSync(e)},t_a_is=function(t){return Array.isArray(t)},t_a_ensure=function(t){return t_a_is(t)?t:[t]},t_p_is=function(t){return t instanceof Promise},t_p_asyncJoint=function(t,e){var r=t;return t_p_is(r)?r.then(e):e(r)},t_f_isSync=function(t){return t_v_constructorMatches(t,Function)},t_f_AsyncFunction=async function(){}.constructor,t_f_isAsync=function(t){return t_v_constructorMatches(t,t_f_AsyncFunction)},t_f_is=function(t){return t_f_isSync(t)||t_f_isAsync(t)},t_f_isArrow=function(t){return t_f_is(t)&&null==t.prototype},t_f_isArrowFn=t_f_isArrow,t_f_wrap=function(t){return function(){return t.apply(this,arguments)}},t_f_createConstructor=function(t,e){var r;return r=e?function(){return this.super=e,t_p_asyncJoint(t.apply(this,arguments),(()=>(delete this.super,this)))}:t_f_isArrowFn(t)?t_f_wrap(t):t,r._isConstructor=!0,r},t_f_ensureConstructor=function(t,e){return t._isConstructor?t:t_f_createConstructor(t,e)},t_f_retThis=function(){return this},t_err_Error=t_err_Enhanced(globalThis.Error),t_err_create=function(t,e,r){var _=new t_err_Error(t,r);return e&&Object.assign(_,e),_},t_err_NYIError=class extends t_err_Error{constructor(t,e){super(t??"Not yet implemented",e)}},t_o_ensure=function(t,e,r,_){var n=t[e];if(void 0===n){var a=r;!1!==_&&t_f_is(a)&&(a=a(t,e)),t[e]=n=a}return n},t_o_safeEnsure=function(t,e,r,_){return t||(t={}),t_o_ensure(t,e,r,_),t},t_err_defaultFromFn=function(t,e){return t_o_safeEnsure(t,"fromFn",e,!1)},t_err_nyi=function(t,e){return new t_err_NYIError(t,t_err_defaultFromFn(e,t_err_nyi))},t_o_isAny=function(t){return t instanceof Object&&null!==t},t_class_setName=t_f_setName,t_class_addStatics=function(t,e){return Object.assign(t,e)},t_sym_display=t_node_is()?require("util").inspect.custom:Symbol("Display"),t_class_setDisplay=function(t,e){t.prototype[t_sym_display]=e},t_class_create=function(t,e,r,_,n,a){a||(a={}),t_s_is(e)&&(e=null);var s,i,o,u=r;if(u)if(t_a_is(u)){if([i,o]=u,i)if(t_a_is(i)){if(!e)throw t_err_create("Bare args array for instanceFn is only valid when extending a class.");var l=i;i=null,s=t_f_createConstructor((function(){this.super.apply(this,l)}),e)}else i=t_f_ensureConstructor(i)}else s=t_f_ensureConstructor(u,e);var c=a.bareFn;a.singleton&&(c=function(){return null==d.default&&(d.default=new d(...arguments)),d.default});var f,p=i||s||e||t_f_retThis;function d(){if(!new.target&&c&&!(this instanceof d))return c.apply(this,arguments);var t=this;return t_p_asyncJoint(p.apply(t,arguments),(r=>{if(r&&t_o_isAny(r)&&(t=r,i)){if(!new.target)throw t_err_nyi('Prototype repair is NYI for class instantiation without "new".');if(!e)throw t_err_nyi("instanceFn is not yet supported when extendsClass is null.");var _=Object.getPrototypeOf(this);Object.getPrototypeOf(t)!==_&&Object.setPrototypeOf(t,_)}return o?t_p_asyncJoint(o.apply(t,arguments),(()=>t)):t}))}return t&&t_class_setName(d,t),_?(f=_,e&&Object.setPrototypeOf(_,e.prototype)):f=e?Object.create(e.prototype):{},t_o_setHidden(f,"constructor",d),d.prototype=f,n&&t_class_addStatics(d,n),a.display&&t_class_setDisplay(d,a.display),a.implements&&t_a_ensure(a.implements).forEach((t=>t(d))),d},t_o_makeNonEnumerable=function(t,e){Object.defineProperty(t,e,{enumerable:!1})},t_o_hideKey=t_o_makeNonEnumerable,t_f_createClass=function(t,e,r,_,n){var a=Symbol();return t_class_create(t,Function,[function(){var t=function(){return t[a].apply(this,arguments)};return t},function(){var t=e.apply(this,arguments);if(!t)throw new Error("Constructor must return a function.");this[a]=t,t_o_hideKey(this,a)}],r,_,n)},t_a_resolveIndices=function(t,e,r,_){return e=null==e?0:t_a_resolveIndex(t,e),r=null==r?t.length:t_a_resolveIndex(t,r),_&&(0==_.inclusiveStart&&e++,_.inclusiveEnd&&r++),[e,r]},t_a_fill=function(t,e,r,_){var n=e;if([r,_]=t_a_resolveIndices(t,r,_),t_f_is(n))for(var a=r;a<_;a++)t[a]=n(a,t);else t.fill(n,r,_);return t},t_a_create=function(t,e){var r=new Array(t||0);return arguments.length>1&&t_a_fill(r,e),r},t_a_pick=function(t,e){return t_a_create(e.length,(r=>t[e[r]]))},t_o_get=function(t,e){return t[e]},t_o_set=function(t,e,r){return t[e]=r},t_v_resolve=function(t,e,r){var _=t;return t_f_is(_)?_.apply(r,e):_},t_o_ensureCustom=function(t,e,r,_,n){_||(_=t_o_get);var a=_(t,e);return void 0===a&&(a=t_v_resolve(r,[t,e]),n||(n=t_o_set),n(t,e,a)),a},t_map_get=function(t,e){return t.get(e)},t_map_set=function(t,e,r){return t.set(e,r)},t_map_ensure=function(t,e,r){return t_o_ensureCustom(t,e,r,t_map_get,t_map_set)},t_map_Cache=class{constructor(){this.store=new Map}get(t,e){return t_map_ensure(this.store,t,e)}remove(t){return this.store.delete(t)}delete(t){return this.remove(t)}},t_a_push=function(t,e){return t.push(e),t},t_args_ensureArray=function(t){var e=t;return Array.isArray(e)?e:Array.from(e)},t_sym_value=Symbol("Value"),t_o_createEmpty=function(){return{}},t_a_splitLast=function(t){return[t.slice(0,-1),t[t.length-1]]},t_tree_dive=function(t,e,r,_,n,a){r||(r=t_o_get),null==_&&(_=t_o_createEmpty),null==n&&(n=t_o_set),null==a&&(a=r);for(var[s,i]=t_a_splitLast(e),o=t,u=s.length,l=0;l<u;l++){var c=s[l],f=r(o,c);if(void 0===f){if(!_)return;f=t_o_ensureCustom(o,c,_,r,n)}o=f}if(a)return a(o,i,n)},t_tree_ensure=function(t,e,r,_,n,a){return t_tree_dive(t,e,_,n,a,((t,e)=>t_o_ensureCustom(t,e,r,_,a)))},t_map_createEmpty=function(){return new Map},t_map_diveEnsure=function(t,e,r){return t_tree_ensure(t,e,r,t_map_get,t_map_createEmpty,t_map_set)},t_o_remove=function(t,e){return delete t[e],t},t_tree_remove=function(t,e,r,_){return t_tree_dive(t,e,r,!1,!1,_||t_o_remove)},t_map_remove=function(t,e){return t.delete(e)},t_map_diveDelete=function(t,e){return t_tree_remove(t,e,t_map_get,t_map_remove)},t_map_MultiCache=class{constructor(){this.store=new Map}get(t,e){return t=t_a_push(t_args_ensureArray(t),t_sym_value),t_map_diveEnsure(this.store,t,e)}remove(t){return t=t_a_push(t_args_ensureArray(t),t_sym_value),t_map_diveDelete(this.store,t)}delete(t){return this.remove(t)}},t_f_MemoizedFunction=t_f_createClass("MemoizedFunction",(function(t,e){if(this.base=t,null!=e)if(1===(e=t_a_ensure(e)).length){this.cache=new t_map_Cache;var r=e[0];this._cacheKeyFormatter=t=>t[r]}else this.cache=new t_map_MultiCache,this._cacheKeyFormatter=t=>t_a_pick(t,e);else this.cache=new t_map_MultiCache,this._cacheKeyFormatter=t=>t;var _=this;return function(){var e=_._cacheKeyFormatter(arguments);return _.cache.get(e,(()=>t.apply(this,arguments)))}}),{remove(t){return this.cache.remove(this._cacheKeyFormatter(t))}}),t_f_memoize=function(t,e){return new t_f_MemoizedFunction(t,e)},t_re_newline=/\r?\n/,t_a_replaceContents=function(t,e){var r=e.length;t.length=r;for(var _=0;_<r;_++)t[_]=e[_];return t},t_f_not=function(t){return function(){return!t.apply(this,arguments)}},t_a_removeByFilter=function(t,e){return t_a_replaceContents(t,t.filter(t_f_not(e)))},t_v_isEmpty=function(t){return null==t||void 0!==t.length&&0===t.length},t_a_removeEmpty=function(t,e){return t_a_removeByFilter(t,t_v_isEmpty)},t_a_removeIndex=function(t,e){return t.splice(e,1),t},t_a_apply=function(t,e,r,_){[r,_]=t_a_resolveIndices(t,r,_);for(var n=r;n<_;n++){var a=e(t[n],n,t);void 0!==a&&(t[n]=a)}return t},t_a_mapToObj=function(t,e,r){for(var _={},n=t.length,a=0;a<n;a++){var s=e(t[a],a,t);if(s){var[i,o]=s;r?(_[i]||(_[i]=[]),_[i].push(o)):_[i]=o}}return _},t_a_slice=function(t,e,r,_){return[e,r]=t_a_resolveIndices(t,e,r,_),t.slice(e,r)},t_s_repeat=function(t,e){return t_a_create(e,t).join("")},t_s__removeStringFromEnd=function(t,e){return t.endsWith(e)?t.substring(0,t.length-e.length):t},t_s__removeRegexFromEnd=function(t,e){var r=t_re_matchEnd(e,t);return r?t.slice(0,r.index):t},t_s_removeFromEnd=function(t,e){if(t_s_is(e))return t_s__removeStringFromEnd(t,e);if(t_re_is(e))return t_s__removeRegexFromEnd(t,e);throw t_err_type(e,1)},t_s_removeTrailing=t_s_removeFromEnd,t_re_text=function(t){return t?t[0]:null},t_s_removeAll=function(t,e){return t_s_replaceAll(t,e,"")},t_s_remove=t_s_removeAll,t_re_removeFlag=function(t,e){return t_re_copy(t,t_s_remove(t.flags,e))},t_re_local=function(t){return t_re_removeFlag(t,"g")},t_re_ensureLocal=function(t){return t.global?t_re_local(t):t},t_re_match=function(t,e,r){return(t=null!=r?t_re_setStartIndex(t,r,e):t_re_ensureLocal(t)).exec(e)},t_s_splitAtIndex=function(t,e){return[t.slice(0,e),t.slice(e)]},t_s__splitByMatch=function(t,e){var r=null==e?-1:e.index;if(-1===r)return[t];var _=t_s_splitAtIndex(t,r);return _[1]=_[1].slice(e[0].length),_},t_re_RegexResult=class extends Array{constructor(t,e){super(),this[0]=-1===e?null:t,this.index=e}},t_s_match=function(t,e,r){if(t_s_is(e)){var _=t.indexOf(e,r);return new t_re_RegexResult(e,_)}return t_re_match(e,t,r)},t_s_splitFirst=function(t,e){return t_s__splitByMatch(t,t_s_match(t,e))},t_v_nullIfNaN=function(t){return isNaN(t)?null:t},t_n_ensure=function(t){return null==t?null:t_v_nullIfNaN(Number(t))},t_n_tryParse=t_n_ensure,t_n_tryCoerce=function(t){return t_n_tryParse(t)??t},t_o_fromLines=function(t,e){null==e&&(e="=");var r={};return t.forEach((function(t){var[_,n]=t_s_splitFirst(t,e);null!=n&&(n=t_n_tryCoerce(n.trim())),r[_.trim()]=n})),r},t_o_safeDefault=t_o_safeEnsure,t_s_LinesArray=class extends Array{constructor(t){var e,r=t;null!=r&&(t_a_is(r)?e=r:t_s_is(r)&&(e=r.split(t_re_newline))),e?(super(e.length),Object.assign(this,e)):super(...arguments)}condense(t){return this.trim().removeEmpty(),t&&this.removeComments(t),this}trim(){return this.apply((t=>t.trim()))}removeEmpty(){return t_a_removeEmpty(this)}removeComments(t){for(var e=0;e<this.length;e++){var r=this[e],_=r.indexOf(t);-1!==_&&(""===(r=r.slice(0,_)).trim()?(t_a_removeIndex(this,e),e--):this[e]=r)}return this}removeFirst(){return this.shift(),this}removeLast(){return this.pop(),this}apply(t){return t_a_apply(this,t)}join(){return super.join("\n")}toObj(t){return t_o_fromLines(this,t)}mapToObj(t,e){return t_a_mapToObj(this,t,e)}between(t,e,r){return r=t_o_safeDefault(r,"inclusiveEnd",!0),t_a_slice(this,t,e,r)}normalize(){if(this.length>0&&(""===this[0].trim()&&this.shift(),this.length>0&&(""===t_a_last(this).trim()&&this.pop(),this.length>0))){var t=this.find((t=>""!==t.trim())),e=t_re_text(t_re_match(/^\s*/,t));if(e){var r=e.length;this.apply((t=>{if(t.startsWith(e))return t.slice(r)}))}}return this}deindent(t,e,r){throw t_err_nyi()}indent(t,e){var r=t_s_repeat(e??"\t",t??1);return this.apply((t=>r+t))}static is(t){return t_v_constructorMatches(t,this)}static fromChunks(t){return t.map((t=>t_s_removeTrailing(t,t_re_newline))).flatMap((t=>t_s_splitLines(t,!1)))}},t_s_lines=function(t,e){var r=new t_s_LinesArray(t);return e&&r.condense(),r},t_s_splitLines=function(t,e,r){var _=t.split(t_re_newline);return e?t_s_lines(_,r):_},t_cmd_where=function(t){try{var e=t_os_run("where",[t]);return t_s_splitLines(e,!1)}catch(t){return null}},t_win_is=t_f_one((function(){return"win32"===process.platform})),t_f_bool=function(t){return function(){return!!t.apply(this,arguments)}},t_f_eq=function(t){return e=>e===t},t_set_is=function(t){return t instanceof Set},t_f_match=function(t){if(t_f_is(t))return t_f_bool(t);if(t_s_is(t))return e=>t_s_is(e)&&e.includes(t);if(t_re_is(t))return e=>t_s_is(e)&&t.test(e);if(t_set_is(t))return e=>t.has(e);if(t_a_is(t)){var e=t.map(t_f_match);return function(){return e.some((t=>t.apply(null,arguments)))}}return t_f_eq(t)},t_a_find=function(t,e){return t.find(t_f_match(e))},t_linux_is=t_f_one((function(){return"linux"===process.platform})),t_path_extRegex=/\.?[a-zA-Z0-9]+$/,t_path_hasExt=function(t){return t_path_extRegex.test(t)},t_os_findCommand=t_f_memoize((function(t){var e=t_cmd_where(t);if(e){if(t_win_is())return t_a_find(e,(function(t){return(t=t.toLowerCase()).endsWith(".exe")||t.endsWith(".cmd")}));if(t_linux_is())return t_a_find(e,(t=>!t_path_hasExt(t)))}return null})),t_a_removeNullish=function(t){return t_a_removeByFilter(t,(t=>null==t))},t_os_run=function(t,e,r){if(r||(r={}),r.dir&&(r.cwd=r.dir),r.filterExtensions){var _=t_os_findCommand(t);if(!_)throw t_err_create("Could not resolve command: "+t);t=_}r.encoding||(r.encoding="utf8"),e&&t_a_removeNullish(e);var n=t_node_require("node:child_process").execFileSync(t,e,r);return null!=n?n.trim():n},t_npm__runCommand=function(t,e){return e||(e={}),e.shell=!0,e.filterExtensions=!1,t_os_run("npm",t,e)},t_npm_install=function(t,e,r){return t_npm__runCommand(["install",t,e?"-g":null],r)},t_path_abs=function(t,e){var r=t_node_require("node:path").resolve;return e?r(e,t):r(t)},t_node_requireLocal=function(t){return require(t_path_abs(t))},t_o_Cache=class{constructor(){this.store={}}get(t,e){return t_o_ensure(this.store,t,e)}remove(t){return delete this.store[t]}delete(t){return this.remove(t)}},t_node__requireDirCache=new t_o_Cache,t_node__createRequire=function(t){return t.endsWith("\\node_modules")||(t+="\\node_modules"),require("node:module").createRequire(t)},t_node__requireFromDir=function(t,e){return t_node__requireDirCache.get(t,(()=>t_node__createRequire(t)))(e)},t_o_resolveKeys=function(t){return t_a_is(t)?t:t_s_is(t)?t.split("."):[t]},t_tree_setCustom=function(t,e,r,_,n,a){var s=r;return t_tree_dive(t,e,_,n,a,((t,e,r)=>r(t,e,t_v_resolve(s))))},t_env_setConfig=function(t,e){var r=e,_=globalThis.config;_||(_=globalThis.config={});var n,a=t_o_resolveKeys(t);return a.length>1?n=t_tree_setCustom(_,a,r):(n=t_v_resolve(r),_[a[0]]=n),n},t_node_addRequireDir=function(t,e){return t_env_setConfig("node.require.customDirs",(r=>(r||(r=[]),!1!==e&&(t.endsWith("node_modules")||(t+="\\node_modules")),r.includes(t)||r.push(t),r))),t},t_node_ensureRequireDir=t_node_addRequireDir,t_o_diveGet=t_tree_dive,t_env_getConfig=function(t){var e=globalThis.config;if(e){var r=t_o_resolveKeys(t);return r.length>1?t_o_diveGet(e,r):e[r[0]]}},t_env_resolveConfig=function(t,e,r){if(null!=t)return t;var _=t_env_getConfig(e);return null!=_?_:r},t_fs_exists=function(t){return!!t_node_require("node:fs").lstatSync(t,{throwIfNoEntry:!1})},t_path_dir=function(t,e){return t=t_node_require("node:path").dirname(t),!1===e?t:t_path_ensureTrailingSlash(t)},t_fs_ensureParent=function(t){var e=t_path_dir(t,!1);return t_fs_exists(e)||(e!==t&&t_fs_ensureParent(e),t_node_require("node:fs").mkdirSync(e)),t},t_fs_mkdir=function(t){return t_fs_ensureParent(t),t_node_require("node:fs").mkdirSync(t),t},t_fs_ensureDir=function(t){return t_fs_exists(t)?t:t_fs_mkdir(t)},t_node_require=function(t,e){if(t_npm_isBuiltIn(t))return require(t);if(t_npm_isFile(t))return t_node_requireLocal(t);try{return require(t)}catch(t){}var r=__dirname,_=process.mainModule?.path;if(_!==r)try{return t_node__requireFromDir(_,t)}catch(t){}var n=process.cwd();if(n!==_&&n!==r)try{return t_node__requireFromDir(n,t)}catch(t){}var a=t_env_getConfig("node.require.customDirs");if(a)for(var s of a)try{return t_node__requireFromDir(s,t)}catch(t){}var i=t_env_resolveConfig(e?.autoInstall,"node.require.autoInstall"),o=t_env_resolveConfig(e?.promptInstall,"node.require.promptInstall",!0);if(i||o){var u=i||o;!0===u&&(u="./node_modules"),u=t_path_abs(u);var l=!1;if(i?(l=!0,console.log('Auto-installing "'+t+'" from npm to "'+u+'"...')):t_npm__promptForInstall(t)&&(l=!0,console.log('Installing "'+t+'" from npm to "'+u+'"...')),l){u=t_fs_ensureDir(u),t_npm_install(t,!1,{cwd:u});try{return t_node_ensureRequireDir(u),t_node__requireFromDir(u,t)}catch(t){console.error("Failed to load from auto-install dir: ",u)}}}throw t_err_create('Module not found: "'+t+'"',{checked:{moduleDir:r,scriptDir:_,cwd:n}})},t_node_display=function(t,e){return e||(e={}),null==e.colors&&(e.colors=!0),t_node_require("node:util").inspect(t,e)},t_s_escape=function(t,e,r){return t_s_replaceAll(t,e,(r??"\\")+e)},t_s_quote=function(t,e,r){return null==e&&(e='"'),!1!==r&&(t=t_s_escape(t,e,r)),e+t+e},t_s_toLiteral=function(t){return t_s_quote(t,'"')},t_o_isPure=t_o_is,t_s_from=function(t){return t_o_isPure(t)?t_o_toLiteral(t):String(t)},t_a_toLiteral=function(t,e){return e||(e=t_v_toLiteral),"["+t.reduce((function(t,r){return t+e(r)+", "}),"").slice(0,-2)+"]"},t_v_toLiteral=function(t){return t_s_is(t)?t_s_toLiteral(t):t_a_is(t)?t_a_toLiteral(t):t_s_from(t)},t_o_keys=function(t,e){return(e?Object.getOwnPropertyNames:Object.keys)(t)},t_o_each=function(t,e,r){t_o_keys(t,r).forEach(((r,_,n)=>e(r,t[r],_,n)))},t_o_reduce=function(t,e,r,_){var n=null!=r?r:"";return t_o_each(t,(function(){n=e.call(this,n,...arguments)}),_),n},t_o_toLiteral=function(t,e){return e||(e=t_v_toLiteral),"{"+t_o_reduce(t,(function(t,r,_){return t+r+":"+e(_)+", "}),"",!0).slice(0,-2)+"}"},t_o_display=function(t,e){return null==e&&(e=1),e<=0?"[object Object]":t_o_toLiteral(t,(t=>t_v_display(t,e-1)))},t_a_display=function(t,e){return null==e&&(e=1),e<=0?"[object Array]":t_a_toLiteral(t,(t=>t_v_display(t,e-1)))},t_v_display=function(t,e){return void 0===t?"undefined":null===t?"null":t_node_is()?t_node_display(t,e):t_o_is(t)?t_o_display(t,maxNumLevels):t_a_is(t)?t_a_display(t,maxNumLevels):t_s_from(t)},t_err_type=function(t,e,r,_){if(0===arguments.length)return new t_err_TypeError("Unexpected type received");_||(_={});var n,{type:a,expected:s}=_;return null==a&&(a=t_v_type(t)),a&&a.name&&(a=a.name),s?(s.name&&(s=s.name),n="Expected "+s+", received "):n="Unexpected type received (",n+=a,null!=t&&(n+=" ("+t_v_display(t)+")"),s||(n+=")"),r&&(n+=' for "'+r+'"'),null!=e&&(n+=" (index "+e+")"),_.fromFn||(_.fromFn=t_err_type),new t_err_TypeError(n,_)},t_s_endsWith=function(t,e){if(t_s_is(e))return t.endsWith(t);if(t_re_is(e))return!!t_re_matchEnd(e,t);throw t_err_type(e,1,"matchThis")},t_re_slash=/\/|\\/,t_path_ensureTrailingSlash=function(t){return t_s_endsWith(t,t_re_slash)?t:t+"/"},t_path_fws=function(t,e){return""===t?t:(null==e&&(e=!0),t=t_s_replace(t,"\\","/"),e?t_path_ensureTrailingSlash(t):t)},t_path_getLocalData=function(t){return t?t_path_getUserDir(t)+"AppData/Local/":t_path_fws(process.env.LOCALAPPDATA)},t_path__getDefaultTempDir=function(){return process.env.TEMP+"\\"},t_path_getTempDir=function(t){return t?t_path_getLocalData(t)+"Temp/":t_path__getDefaultTempDir()},t_titan_getTempDir=function(){return t_path_getTempDir()+"Titan/"},t_s_decapitalize=function(t){return t.charAt(0).toLowerCase()+t.slice(1)},t_path__removeExtsFromFile=function(t){return t.split(".")[0]},t_path_file=function(t){return t_node_require("node:path").win32.basename(t)},t_path_baseName=function(t){return t_path__removeExtsFromFile(t_path_file(t))},t_titan_getPackageName=function(t,e,r,_){t||(t=t_node_getScriptPath()??"_console.js");var n=t_s_decapitalize(t_path_baseName(t));return e&&(n+="_repl"),n+(r&&_?.dynamic?".dypkg.json":".pkg.js")},t_titan_getPackagePath=function(t,e,r,_){var n,a=t_titan_getPackageName(t,e,r,_);return n=t?t_path_dir(t):"./",t_path_abs(n+a)},t_titan_locate=t_f_one((function(){var t=process.env.TITAN_PATH;if(!t)throw t_err_create("Environment variable TITAN_PATH is not set.");return t_path_ensureTrailingSlash(t)})),t_titan_getCompiledDir=t_f_one((function(){return t_titan_locate()+"Compiled/"})),t_fs_load=function(t){return t_node_require("node:fs").readFileSync(t,"utf8")},t_d_now=function(){return new Date},t_err_req=function(t,e,r,_){var n="Required argument";return r&&(n+=' "'+r+'"'),null!=e&&(n+=" (index "+e+")"),n+=" missing",arguments.length>0&&(n+=" (received "+t_v_display(t)+")"),t_err_create(n,null,t_err_defaultFromFn(_,t_err_req))},t_d_copy=function(t){return new Date(t.getTime())},t_d_fromYear=function(t){return new Date(t,null)},t_d__resolveNative=function(t){var e=new Date(t);return isNaN(e.getTime())?null:e},t_n_fromString=t_n_ensure,t_n_is=function(t){return"number"==typeof t},t_d_ensure=function(t,e){if(null==t)throw t_err_req(t,0);if(t.constructor===Date)return e?t_d_copy(t):t;if(t_s_is(t)){var r=t_n_fromString(t);return null!=r?t_d_fromYear(r):t_d__resolveNative(t)||null}return t_n_is(t)?t_d_fromYear(t):void 0},t_d_resolve=function(t,e){return null==t?t_d_now():t_d_ensure(t,e)},t_d_create=function(t){return t_d_resolve(t,!0)},t_d_from=t_d_create,t_titan_getLastCompileTime=function(){var t=t_titan_getCompiledDir()+"LastCompileTime.txt";return t_fs_exists(t)?t_d_from(t_fs_load(t)):null},t_fs_getStats=function(t,e){null==e&&(e=!0);const r=t_node_require("node:fs");return(e?r.statSync:r.lstatSync)(t)},t_fs_getModifiedDate=function(t){return t_fs_getStats(t).mtime},t_d_isBefore=function(t,e,r){return t=t_d_ensure(t),e=t_d_ensure(e),!1===r?t<e:t<=e},t_titan_hasNewCompile=function(t){var e=t_titan_getLastCompileTime();if(e){var r=t_fs_getModifiedDate(t);if(t_d_isBefore(r,e))return!0}return!1},t_node_getScriptDir=function(t){var e=process.mainModule?.path;return null==e?null:!1!==t?t_path_ensureTrailingSlash(e):e},t_fs_loadText=t_fs_load,t_fs_loadJSON=function(t){return JSON.parse(t_fs_loadText(t))},t_o_addGetterAndSetter=function(t,e,r,_){Object.defineProperty(t,e,{get:r,set:_,enumerable:!0,configurable:!0})},t_o_setGetterAndSetter=t_o_addGetterAndSetter,t_o_removeGetter=function(t,e,r){arguments.length<3&&(r=t[e]),Object.defineProperty(t,e,{value:r,writable:!0,enumerable:!0,configurable:!0})},t_o_removeGetterAndSetter=t_o_removeGetter,t_o_setLazy=function(t,e,r){t_o_setGetterAndSetter(t,e,(function(){var _=r(e,t);return this[e]=_,_}),(function(t){t_o_removeGetterAndSetter(this,e,t)}))},t_titan__trackGlobals=function(t,e){var r=t.globals,_=t.shortNamesToGlobals;Object.keys(_).forEach((t=>{for(var n=_[t],a=n.length,s=0;s<a;s++){var i=n[s],o=globalThis[i];o||(o=globalThis[i]={});var u=r[i];Object.keys(u).forEach((r=>{var _=e[t][r];o[r]=_}))}})),e._meta||(e._meta={}),e._meta.globals=t.globals},t_titan__loadDynamicDeps=function _loadDynamicDeps(dynPackagePath,localT,options){const path=require("node:path");if(dynPackagePath)dynPackagePath=path.resolve(t_node_getScriptDir(),dynPackagePath);else{var scriptPath=t_node_getScriptPath();if(!scriptPath)throw new Error("Cannot find package name because scriptPath does not exist.");var dir=path.dirname(scriptPath),baseName=path.basename(scriptPath).split(".")[0];baseName=baseName[0].toLowerCase()+baseName.slice(1),dynPackagePath=path.join(dir,baseName+".pkg.json")}for(var packageObj=t_fs_loadJSON(dynPackagePath),setLazy=t_o_setLazy,items=packageObj.itemsInOrder,numItems=items.length,i=0;i<numItems;i++){let item=items[i],[shortName,itemName,evalText]=item,tModObj=localT[shortName];tModObj||(tModObj=localT[shortName]={}),Object.hasOwn(tModObj,itemName)||setLazy(tModObj,itemName,(function(){let t=localT;return eval("("+evalText+")")}))}packageObj.globals&&t_titan__trackGlobals(packageObj,localT)},t_js_fromAST=function(t,e){return t_node_require("astring").generate(t,e)},t_err_prepend=function(t,e){return t.stack=e+"\n"+t.stack,t},t_js_parse=function(t,e,r){r||(r={}),!1!==e&&(r.sourceType="module"),null==r.allowAwaitOutsideFunction&&(r.allowAwaitOutsideFunction=!0);var _=t_node_require("acorn-node");try{return _.parse(t,r)}catch(e){throw t_err_prepend(e,"Acorn parsing error: "+t)}},t_js_removeComments=function(t,e,r){return t_js_fromAST(t_js_parse(t,e,r))},t_re_quote=/(['"])(.*?)\1/,t_re_quotes=t_re_global(t_re_quote),t_s_removeQuotes=function(t){return t.replace(t_re_quotes,"")},t_js_removeQuotes=t_s_removeQuotes,t_tree_copy=function(t){return globalThis.structuredClone(t)},t_o_deepCopy=t_tree_copy,t_f_cache=t_f_memoize,t_fs_loadLines=function(t,e){return t_s_splitLines(t_fs_loadText(t),!0,e)},t_re_test=function(t,e){return t_re_ensureLocal(t).test(e)},t_s_contains=function(t,e){return t_re_is(e)?t_re_test(e,t):t.includes(e)},t_s__createParamsObj=function(t,e,r,_){null==t&&(t=""),null==e&&(e="");var n={},a=(r,_)=>n[t+r+e]=_;return _&&t_o_each(_,a),r&&t_o_each(r,a),n},t_s__replaceByObj=function(t,e){return t_o_each(e,((e,r)=>t=t_s_replaceAll(t,e,r))),t},t_s_replaceParams=function(t,e,r,_){var n,a;if(e)if(t_s_is(e)){if(!t_s_contains(t,e))return t;n=e}else{if(!t_a_is(e))throw t_err_type(e,1,"paramIdentifier");if([n,a]=e,!t_s_contains(t,n)&&!t_s_contains(t,a))return t}var s=t_s__createParamsObj(n,a,r,_);return t_s__replaceByObj(t,s)},t_path_string=function(t){return String(t)},t_path_windir=globalThis.process?.env.windir,t_path_getDesktop=function(t){return t_path_getUserDir(t)+"Desktop/"},t_path__defaultParams={PROGRAMFILES:globalThis.process?.env.ProgramFiles,WINDIR:t_path_windir,SYSTEM32:t_path_windir&&t_path_windir+"System32",TEMP:t_path__getDefaultTempDir(),DESKTOP:t_path_getDesktop()},t_path_resolveVars=function(t,e){return t_s_replaceParams(t_path_string(t),"$",e,t_path__defaultParams)},t_titan_locateSourceMap=function(){return t_titan_locate()+"Source/SourceMap.txt"},t_titan__resolveSourceMapPath=function(t){return t?t_path_resolveVars(t,{TITAN:t_titan_locate()}):t_titan_locateSourceMap()},t_s__findFn=function(t,e){throw t_err_nyi()},t_s_index=function(t,e,r){if(t_s_is(e))return t.indexOf(e,r);null==r?r=0:t=t.slice(r);var _=t_re_is(e)?t.search(e):t_s__findFn(t,e);return-1===_?_:r+_},t_s_before=function(t,e,r){null==r&&(r=0);var _=t_s_index(t,e,r);return-1===_?null:t.slice(r,_)},t_s_isCapitalized=function(t){var e=t[0];return e===e.toUpperCase()},t_a_filterSplit=function(t,e){var r=[],_=[];return t.forEach(((n,a)=>(e(n,a,t)?r:_).push(n))),[r,_]},t_titan_loadGlobalsMap=t_f_cache((function(t){var e=t_fs_loadLines(t_titan__resolveSourceMapPath(t),!0),r={};return e.forEach((t=>{var e=t_s_before(t,"=").split(",").map((t=>t.trim())),[_,n]=t_a_filterSplit(e,(t=>!t_s_isCapitalized(t))),a=_[0];if(!a)throw t_err_create('No shortName in SourceMap line: "'+t+'"');n.forEach((t=>{r[t]=a}))})),r}),0),t_titan__getGlobalsRegex=t_f_one((function(t){var e=Object.keys(t);return t_re_create("\\b("+e.join("|")+")\\.(\\w+)","g")})),t_titan_depsRegex=/\bt\.(\w+)\.(\w+)/g,t_titan__getDepsBasic=function(t,e){e||(e={});var r={},_=r.t={};if(e.enableGlobals){var n;n=e.additionalGlobals?t_o_deepCopy(e.additionalGlobals):{},r.globals=n;var a=t_titan_loadGlobalsMap(),s=t_titan__getGlobalsRegex(a),i=t_re_matchAll(s,t).filter((e=>{var r=e[1],_=e[2],n=t[e.index-1];if("."===n||"_"===n)return!1;var a=globalThis[r];return!a||void 0===a[_]}));for(var[o,u,l]of i)n[u]||(n[u]={}),n[u][l]=!0;var c=i.map((([t,e,r])=>{var _=a[e];if(!_)throw t_err_create("No short name found for global: "+e);return"t."+_+"."+r+";"})).join(" ");t+="\n"+c}for(var[o,f,l]of i=t.matchAll(t_titan_depsRegex))_[f]||(_[f]={}),_[f][l]=!0;return r},t_titan_getDepsFromJS=function(t,e){return t=t_js_removeComments(t),t=t_js_removeQuotes(t),t_titan__getDepsBasic(t,e)},t_titan_getDepsFromHTML=function(t,e){return t_titan__getDepsBasic(t,e)},t_titan_getShallowDeps=function(t,e,r){if(e){if("js"===(e=e.toLowerCase()))return t_titan_getDepsFromJS(t,r);if("html"===e)return t_titan_getDepsFromHTML(t,r)}return t_titan__getDepsBasic(t,r)},t_v_req=function(t,e,r){if(null==t)throw t_err_req(t,e,r,{fromFn:t_v_req});return t},t_o_has=function(t,e){return void 0!==t[e]},t_o_hasKey=t_o_has,t_tree_isSubsetOf=function(t,e){for(var r of(t_v_req(e,1),Object.keys(t))){if(!t_o_hasKey(e,r))return!1;var _=t[r];if(_&&_.constructor===Object&&!t_tree_isSubsetOf(_,e[r]))return!1}return!0},t_titan_jsonHasNewDeps=function(t,e){if(!t_tree_isSubsetOf(e.t,t))return!0;if(e.globals){var r=t._meta?.globals;if(!r)return!0;if(!t_tree_isSubsetOf(e.globals,r))return!0}return!1},t_titan_needsToPack=function(t,e,r,_){var n,a,s,i;_||(_={}),t&&(t=t_path_abs(t)),n=_.packagePath?t_path_abs(_.packagePath):t_titan_getPackagePath(t,!1,!0,_);var o,u=t_fs_exists(n);u?(a=t_titan_hasNewCompile(n))?s="New compile":(null==e&&(e=t_fs_loadText(t)),i=t_titan_getShallowDeps(e,"js",_),(o=t_titan_jsonHasNewDeps(r,i))&&(s="New deps")):s="No package",console.log("NEEDSTOPACK",n);var l={needsPack:!!s,scriptPath:t,packagePath:n};return s&&(l.reasonText=s),null!=u&&(l.exists=u),null!=a&&(l.newCompile=a),null!=o&&(l.newDeps=o),e&&(l.sourceText=e),i&&(l.shallowDeps=i),l},t_path_isDir=function(t){return t_s_endsWith(t,t_re_slash)},t_re_lastIndex=function(t,e){var r=t_re_matchLast(t,e);return r?r.index:-1},t_path_slash=t_re_slash,t_path_dirPart=function(t){var e=t_re_lastIndex(t_path_slash,t);return-1===e?null:t.slice(0,e+1)},t_path_ignoreDir=function(t,e,r){if(t_path_isDir(t))return r?[t,null]:t;var _,n,a=t_path_dirPart(t),s=e(t_path_file(t),a,t);return r?[_,n]=s:_=s,null!=_&&(t=a?a+_:_),r?[t,n]:t},t_s_matchLast=function(t,e,r){if(t_re_is(e))return t_re_matchLast(e,t,r);if(t_s_is(e)){var _=t.lastIndexOf(e,r);return-1!==_?new t_re_RegexResult(e,_):null}throw t_err_type(e,1)},t_s_splitLast=function(t,e){return t_s__splitByMatch(t,t_s_matchLast(t,e))},t_path_splitExt=function(t){return t_path_ignoreDir(t,(t=>t_s_splitLast(t,".")),!0)},t_path_ext=function(t,e){var r=t_path_splitExt(t)[1];return r?!1!==e?r.toLowerCase():r:null},t_titan_sourceMap={},t_path_join=function(t,e,r){if(t_node_is()){var _=t_node_require("node:path").join(t,e);return r?t_path_ensureTrailingSlash(_):_}throw t_err_nyi()},t_titan_loadSourceMap=t_f_cache((function(t){t=t_titan__resolveSourceMapPath(t);var e=t_path_dir(t)+"../Compiled/",r=t_fs_loadLines(t,"//"),_=t_titan_sourceMap;for(var n of r){var a=n.indexOf("="),s=n.slice(0,a).trim();s=s.split(",").map((t=>t.trim())).filter((t=>!t_s_isCapitalized(t)));var i=n.slice(a+1).trim(),o=t_path_join(e,i).replaceAll("\\","/");for(var u of s)_[u]=o}return _}),0),t_titan_getDeps=function(t,e){var r=e?.fileType;if(r){if("js"===(r=r.toLowerCase()))return t_titan_getDepsFromJS(t,e);if("html"===r)return t_titan_getDepsFromHTML(t,e)}return t_titan__getDepsBasic(t,e)},t_gen_filter=function*(t,e){var r=0;for(var _ of t)e(_,r++,t)&&(yield _)},t_a_copy=function(t){return t.slice()},t_args_insert=function(t,e,r){for(var _=t.length-1;_>=e;_--)t[_+1]=t[_];return t[e]=r,t.length++,t},t_args_append=function(t,e){return t_args_insert(t,t.length,e)},t_args_push=t_args_append,t_f_recurse=function(t,e){return t.call(this,...e,(function e(){return t_a_last(arguments)!==e&&t_args_push(arguments,e),t.apply(this,arguments)}))},t_tree_iterator=function(t){t||(t={});var e=t.getKeys;e||(e=function(t){return Object.keys(t)});var r=t.recurseIf;if(!r){var _=this.constructor;r=t=>t_v_constructorMatches(t,_)||t_o_isPure(t)||t_a_is(t)}var n=t.leavesOnly??t.leafsOnly??!1,a=this;return t_f_recurse((function*(t,_,s,i){var o=e(t,_,s);if(o)for(var u=o.length,l=0;l<u;l++){var c=o[l],f=t[c],p=t_a_copy(_);p.push(c);var d=null,m={value:f,key:c,object:t,path:p,level:s,isLeaf:d,root:a},h=r(f,m);m.isLeaf=d=!h,n&&!d||(yield m),h&&(yield*i(f,p,s+1,i))}}),[this,[],0])},t_tree_iterate=function(t,e){return t_tree_iterator.call(t,e)},t_o_fromKeys=function(t,e){1===arguments.length&&(e=!0);var r={};for(var _ of t)r[_]=e;return r},t_js_eachNode=function(t,e,r,_){var n=t_js_parse(t,e,_);t_node_require("acorn-walk").full(n,r)},t_js_getNodes=function(t,e,r,_){var n;if(t_s_is(r))n=t=>t.type===r;else if(t_a_is(r)){var a=t_o_fromKeys(r);n=t=>a[t.type]}else n=r;var s=[];return t_js_eachNode(t,e,(function(t){n.apply(this,arguments)&&s.push(t)}),_),s},t_js_fromASTNode=t_js_fromAST,t_js_parseDeclaration=function(t){var e,r,_,n=t,a=t_s_is(n)?t_js_parse(n).body[0]:n,s=a.type;if("VariableDeclaration"===s){e="variable";var i=a.declarations[0];r=i.id.name,_=i.init?i.init.raw??t_js_fromAST(i.init):"undefined"}else"FunctionDeclaration"===s?e="function":"ClassDeclaration"===s&&(e="class"),r=a.id.name;var o={type:e,name:r};return _&&(o.value=_),o.text=t_js_fromASTNode(a),o.node=a,o},t_js_getExports=function(t){return t_js_getNodes(t,!0,["ExportNamedDeclaration","ExportDefaultDeclaration"]).map((function(t){var e=t.declaration;if(e){var r=t_js_parseDeclaration(e);return r.node=t,r}return{node:t}}))},t_titan__getAllDeps=function(t,e){e||(e={});var r=e.enableGlobals,_=t_titan_loadSourceMap(e.sourceMap),n={},a=[];return function t(e,s,i){var o=t_gen_filter(t_tree_iterate(e),(t=>t.isLeaf));for(var u of o){var[l,c]=u.path,f=n[l];if(f||(f=n[l]={}),null==f[c]){var p=_[l];if(p){var d=t_path_fws(p)+c+".js";if(!t_fs_exists(d)){var m='Titan compiled value "t.'+l+"."+c+'" does not exist';throw i&&(m+=' (called by "t.'+s+"."+i+'")'),t_err_create(m+=".")}var h=t_fs_load(d),v=t_js_getExports(h)[0];f[c]=v,t(t_titan_getDeps(h,{fileType:"js",enableGlobals:r}).t,l,c),a.push([l,c])}else console.log('Skipping unmapped module "'+l+'"'),f[c]=!1}}}(t.t),{t:n,globals:t.globals,order:a}},t_titan_packTextToJSON=function(t,e){e||(e={});var r=e.deps??t_titan_getShallowDeps(t,e.fileType,e),{t:_,globals:n,order:a}=t_titan__getAllDeps(r,e),s={};if(s.t=r.t,n&&e.enableGlobals){s.globals=n;var i=t_titan_loadGlobalsMap(),o=Object.keys(n),u=t_a_mapToObj(o,(t=>[i[t],t]),!0);s.shortNamesToGlobals=u}return s.itemsInOrder=a.map((([t,e])=>{var r=_[t][e];return[t,e,"variable"===r.type?r.value:"("+r.text+")"]})),s},t_tree_join=function(t,e,r){return null==r&&(r=!0),t_f_recurse((function(t,e,_){t_o_each(t,(function(t,n){if(t_o_hasKey(e,t)){var a=e[t];r?t_o_is(a)&&t_o_is(n)?_(n,a):e[t]=n:t_o_is(a)&&_(n,a)}else e[t]=n}))}),[t,e]),e},t_tree_merge=t_tree_join,t_o_fromArray=function(t){return Object.assign({},t)},t_a_toObj=function(t,e){if(e){var r={};return t.forEach(((t,_,n)=>r[e(t,_,n)]=!0)),r}return t_o_fromArray(t)},t_titan_addNewItemsToJSON=function(t,e){t_tree_merge(e.t,t.t,!1);var r=e.globals;if(r){var _=t.globals;_?t_tree_merge(r,_,!1):t.globals=r,t.shortNamesToGlobals=e.shortNamesToGlobals}var n=t_a_toObj(t.itemsInOrder,(t=>t[0]+"."+t[1]));return e.itemsInOrder.forEach((e=>{n[e[0]+"."+e[1]]||t.itemsInOrder.push(e)})),t},t_bin_isNodeBuffer=function(t){return t instanceof Buffer},t_ab_isTA=function(t){return ArrayBuffer.isView(t)},t_bin_isTA=t_ab_isTA,t_bin_isByteSafe=function(t){return t_bin_isNodeBuffer(t)||t_bin_isTA(t)||t_s_is(t)},t_ab_is=function(t){return t.constructor===ArrayBuffer},t_bin_ensureByteSafe=function(t){return t_bin_isByteSafe(t)?t:t_ab_is(t)?Buffer.from(t):t_s_from(t)},t_fs_formatRaw=function(t){return t_n_is(t)?String(t):t_bin_ensureByteSafe(t)},t_fs_write=function(t,e){return t_fs_ensureParent(t),t_node_require("node:fs").writeFileSync(t,t_fs_formatRaw(e)),t},t_json_stringify=function(t,e){var r;return e||(e={}),r=e.condensed?0:null!=e.whitespace?e.whitespace:"\t",JSON.stringify(t,e.replacer,r)},t_fs_writeJSON=function(t,e,r){return t_fs_write(t,t_json_stringify(e,r))},t_titan_packTextToJSONFile=function(t,e,r){r||(r={}),r.deps||r.fileType||!e||(r.fileType=t_path_ext(e));var _=t_titan_packTextToJSON(t,r),n=r.packagePath||t_titan_getPackagePath(e,r.repl,!0,r);if(r.dynamic&&(r.packageExists??t_fs_exists(n))&&!(r.newCompile??t_titan_hasNewCompile(n))){var a=t_fs_loadJSON(n);_=t_titan_addNewItemsToJSON(a,_)}return t_fs_writeJSON(n,_),n},t_titan_autoPackAndLoadJSON=function(t,e,r,_){var n=t_titan_needsToPack(t,e,r,_);return n.needsPack&&(_.onPack&&_.onPack(n.reasonText),e=n.sourceText??t_fs_loadText(t),_.packagePath=n.packagePath,_.packageExists=n.exists,_.newCompile=n.newCompile,_.deps=n.shallowDeps,console.log("AUTOPACKANDLOADJSON",n.packagePath),t_titan_packTextToJSONFile(e,t,_),t_titan__loadDynamicDeps(n.packagePath,r,_)),r},t_fs_getID=function(t,e){return t_fs_getStats(t,e).ino},newItems={node:{getScriptPath:t_node_getScriptPath,is:t_node_is,display:t_node_display,require:t_node_require,_basicRequire:t_node__basicRequire,promptYNSync:t_node_promptYNSync,requireLocal:t_node_requireLocal,_requireFromDir:t_node__requireFromDir,_requireDirCache:t_node__requireDirCache,_createRequire:t_node__createRequire,ensureRequireDir:t_node_ensureRequireDir,addRequireDir:t_node_addRequireDir,getScriptDir:t_node_getScriptDir},titan:{getTempDir:t_titan_getTempDir,getPackagePath:t_titan_getPackagePath,getPackageName:t_titan_getPackageName,hasNewCompile:t_titan_hasNewCompile,getLastCompileTime:t_titan_getLastCompileTime,getCompiledDir:t_titan_getCompiledDir,locate:t_titan_locate,_loadDynamicDeps:t_titan__loadDynamicDeps,_trackGlobals:t_titan__trackGlobals,autoPackAndLoadJSON:t_titan_autoPackAndLoadJSON,needsToPack:t_titan_needsToPack,getShallowDeps:t_titan_getShallowDeps,getDepsFromJS:t_titan_getDepsFromJS,_getDepsBasic:t_titan__getDepsBasic,loadGlobalsMap:t_titan_loadGlobalsMap,_resolveSourceMapPath:t_titan__resolveSourceMapPath,locateSourceMap:t_titan_locateSourceMap,_getGlobalsRegex:t_titan__getGlobalsRegex,depsRegex:t_titan_depsRegex,getDepsFromHTML:t_titan_getDepsFromHTML,jsonHasNewDeps:t_titan_jsonHasNewDeps,packTextToJSONFile:t_titan_packTextToJSONFile,packTextToJSON:t_titan_packTextToJSON,_getAllDeps:t_titan__getAllDeps,loadSourceMap:t_titan_loadSourceMap,sourceMap:t_titan_sourceMap,getDeps:t_titan_getDeps,addNewItemsToJSON:t_titan_addNewItemsToJSON},path:{getTempDir:t_path_getTempDir,getLocalData:t_path_getLocalData,getUserDir:t_path_getUserDir,fws:t_path_fws,ensureTrailingSlash:t_path_ensureTrailingSlash,hasExt:t_path_hasExt,extRegex:t_path_extRegex,abs:t_path_abs,dir:t_path_dir,_getDefaultTempDir:t_path__getDefaultTempDir,baseName:t_path_baseName,_removeExtsFromFile:t_path__removeExtsFromFile,file:t_path_file,resolveVars:t_path_resolveVars,string:t_path_string,_defaultParams:t_path__defaultParams,windir:t_path_windir,getDesktop:t_path_getDesktop,ext:t_path_ext,splitExt:t_path_splitExt,ignoreDir:t_path_ignoreDir,isDir:t_path_isDir,dirPart:t_path_dirPart,slash:t_path_slash,join:t_path_join},s:{replace:t_s_replace,replaceAll:t_s_replaceAll,is:t_s_is,chars:t_s_chars,endsWith:t_s_endsWith,resolveIndex:t_s_resolveIndex,splitLines:t_s_splitLines,lines:t_s_lines,LinesArray:t_s_LinesArray,repeat:t_s_repeat,removeTrailing:t_s_removeTrailing,removeFromEnd:t_s_removeFromEnd,_removeStringFromEnd:t_s__removeStringFromEnd,_removeRegexFromEnd:t_s__removeRegexFromEnd,remove:t_s_remove,removeAll:t_s_removeAll,splitFirst:t_s_splitFirst,_splitByMatch:t_s__splitByMatch,splitAtIndex:t_s_splitAtIndex,match:t_s_match,toLiteral:t_s_toLiteral,quote:t_s_quote,escape:t_s_escape,from:t_s_from,decapitalize:t_s_decapitalize,removeQuotes:t_s_removeQuotes,replaceParams:t_s_replaceParams,contains:t_s_contains,_createParamsObj:t_s__createParamsObj,_replaceByObj:t_s__replaceByObj,before:t_s_before,index:t_s_index,_findFn:t_s__findFn,isCapitalized:t_s_isCapitalized,splitLast:t_s_splitLast,matchLast:t_s_matchLast},re:{is:t_re_is,ensureGlobal:t_re_ensureGlobal,global:t_re_global,addFlag:t_re_addFlag,copy:t_re_copy,updateFlagString:t_re_updateFlagString,parseFlagString:t_re_parseFlagString,createFlagString:t_re_createFlagString,createEscaped:t_re_createEscaped,create:t_re_create,resolveFlags:t_re_resolveFlags,escape:t_re_escape,matchEnd:t_re_matchEnd,matchLast:t_re_matchLast,matchAll:t_re_matchAll,setStartIndex:t_re_setStartIndex,newline:t_re_newline,text:t_re_text,match:t_re_match,ensureLocal:t_re_ensureLocal,local:t_re_local,removeFlag:t_re_removeFlag,RegexResult:t_re_RegexResult,slash:t_re_slash,quotes:t_re_quotes,quote:t_re_quote,test:t_re_test,lastIndex:t_re_lastIndex},o:{constructorMatches:t_o_constructorMatches,is:t_o_is,setHidden:t_o_setHidden,addNonEnumerable:t_o_addNonEnumerable,safeEnsure:t_o_safeEnsure,ensure:t_o_ensure,isAny:t_o_isAny,hideKey:t_o_hideKey,makeNonEnumerable:t_o_makeNonEnumerable,ensureCustom:t_o_ensureCustom,get:t_o_get,set:t_o_set,createEmpty:t_o_createEmpty,remove:t_o_remove,fromLines:t_o_fromLines,safeDefault:t_o_safeDefault,Cache:t_o_Cache,resolveKeys:t_o_resolveKeys,diveGet:t_o_diveGet,display:t_o_display,toLiteral:t_o_toLiteral,isPure:t_o_isPure,reduce:t_o_reduce,each:t_o_each,keys:t_o_keys,setLazy:t_o_setLazy,setGetterAndSetter:t_o_setGetterAndSetter,addGetterAndSetter:t_o_addGetterAndSetter,removeGetterAndSetter:t_o_removeGetterAndSetter,removeGetter:t_o_removeGetter,deepCopy:t_o_deepCopy,hasKey:t_o_hasKey,has:t_o_has,fromKeys:t_o_fromKeys,fromArray:t_o_fromArray},v:{constructorMatches:t_v_constructorMatches,type:t_v_type,display:t_v_display,resolve:t_v_resolve,isEmpty:t_v_isEmpty,nullIfNaN:t_v_nullIfNaN,toLiteral:t_v_toLiteral,req:t_v_req},a:{last:t_a_last,resolveIndex:t_a_resolveIndex,is:t_a_is,ensure:t_a_ensure,pick:t_a_pick,create:t_a_create,fill:t_a_fill,resolveIndices:t_a_resolveIndices,push:t_a_push,splitLast:t_a_splitLast,removeEmpty:t_a_removeEmpty,removeByFilter:t_a_removeByFilter,replaceContents:t_a_replaceContents,removeIndex:t_a_removeIndex,apply:t_a_apply,mapToObj:t_a_mapToObj,slice:t_a_slice,find:t_a_find,removeNullish:t_a_removeNullish,toLiteral:t_a_toLiteral,display:t_a_display,filterSplit:t_a_filterSplit,copy:t_a_copy,toObj:t_a_toObj},err:{type:t_err_type,TypeError:t_err_TypeError,Enhanced:t_err_Enhanced,create:t_err_create,Error:t_err_Error,nyi:t_err_nyi,NYIError:t_err_NYIError,defaultFromFn:t_err_defaultFromFn,req:t_err_req,prepend:t_err_prepend},class:{withName:t_class_withName,create:t_class_create,setName:t_class_setName,addStatics:t_class_addStatics,setDisplay:t_class_setDisplay},f:{withName:t_f_withName,setName:t_f_setName,one:t_f_one,memoize:t_f_memoize,MemoizedFunction:t_f_MemoizedFunction,createClass:t_f_createClass,createConstructor:t_f_createConstructor,isArrowFn:t_f_isArrowFn,isArrow:t_f_isArrow,is:t_f_is,isSync:t_f_isSync,isAsync:t_f_isAsync,AsyncFunction:t_f_AsyncFunction,wrap:t_f_wrap,ensureConstructor:t_f_ensureConstructor,retThis:t_f_retThis,not:t_f_not,match:t_f_match,bool:t_f_bool,eq:t_f_eq,cache:t_f_cache,recurse:t_f_recurse},macro:{config:t_macro_config},npm:{isBuiltIn:t_npm_isBuiltIn,isFile:t_npm_isFile,_promptForInstall:t_npm__promptForInstall,install:t_npm_install,_runCommand:t_npm__runCommand},os:{run:t_os_run,findCommand:t_os_findCommand},p:{asyncJoint:t_p_asyncJoint,is:t_p_is},sym:{display:t_sym_display,value:t_sym_value},map:{Cache:t_map_Cache,ensure:t_map_ensure,get:t_map_get,set:t_map_set,MultiCache:t_map_MultiCache,diveEnsure:t_map_diveEnsure,createEmpty:t_map_createEmpty,diveDelete:t_map_diveDelete,remove:t_map_remove},args:{ensureArray:t_args_ensureArray,push:t_args_push,append:t_args_append,insert:t_args_insert},tree:{ensure:t_tree_ensure,dive:t_tree_dive,remove:t_tree_remove,setCustom:t_tree_setCustom,copy:t_tree_copy,isSubsetOf:t_tree_isSubsetOf,iterate:t_tree_iterate,iterator:t_tree_iterator,merge:t_tree_merge,join:t_tree_join},cmd:{where:t_cmd_where},n:{tryCoerce:t_n_tryCoerce,tryParse:t_n_tryParse,ensure:t_n_ensure,fromString:t_n_fromString,is:t_n_is},win:{is:t_win_is},set:{is:t_set_is},linux:{is:t_linux_is},env:{setConfig:t_env_setConfig,getConfig:t_env_getConfig,resolveConfig:t_env_resolveConfig},fs:{ensureDir:t_fs_ensureDir,exists:t_fs_exists,mkdir:t_fs_mkdir,ensureParent:t_fs_ensureParent,load:t_fs_load,getModifiedDate:t_fs_getModifiedDate,getStats:t_fs_getStats,loadJSON:t_fs_loadJSON,loadText:t_fs_loadText,loadLines:t_fs_loadLines,writeJSON:t_fs_writeJSON,write:t_fs_write,formatRaw:t_fs_formatRaw,getID:t_fs_getID},d:{from:t_d_from,create:t_d_create,resolve:t_d_resolve,now:t_d_now,ensure:t_d_ensure,copy:t_d_copy,fromYear:t_d_fromYear,_resolveNative:t_d__resolveNative,isBefore:t_d_isBefore},js:{removeComments:t_js_removeComments,fromAST:t_js_fromAST,parse:t_js_parse,removeQuotes:t_js_removeQuotes,getExports:t_js_getExports,getNodes:t_js_getNodes,eachNode:t_js_eachNode,parseDeclaration:t_js_parseDeclaration,fromASTNode:t_js_fromASTNode},gen:{filter:t_gen_filter},bin:{ensureByteSafe:t_bin_ensureByteSafe,isByteSafe:t_bin_isByteSafe,isNodeBuffer:t_bin_isNodeBuffer,isTA:t_bin_isTA},ab:{isTA:t_ab_isTA,is:t_ab_is},json:{stringify:t_json_stringify}};globalThis.t?Object.keys(newItems).forEach((function(e){if(t[e]){var r=newItems[e];Object.keys(r).forEach((function(_){t[e][_]=r[_]}))}else t[e]=newItems[e]})):globalThis.t=Object.assign({},newItems),globalThis.exports&&(exports.default=globalThis.t);
|
|
1
|
+
var t_node_getScriptPath=function(){return process.mainModule?.filename??null},t_path_getUserDir=function(t){return t?"C:/Users/"+t+"/":process.env.USERPROFILE+"\\"},t_v_constructorMatches=function(t,e){return null!=t&&t.constructor===e},t_o_constructorMatches=t_v_constructorMatches,t_re_is=function(t){return t_o_constructorMatches(t,RegExp)},t_s_is=function(t){return"string"==typeof t},t_o_is=function(t){return t_v_constructorMatches(t,Object)},t_s_chars=function(t){return new Set(t)},t_re_parseFlagString=function(t){var e={};if(t){var r=t_s_chars(t);r.has("g")&&(e.global=!0),r.has("i")&&(e.caseInsensitive=!0),r.has("y")&&(e.sticky=!0)}return e},t_re_createFlagString=function(t){var e="";return t.global&&(e+="g"),(t.caseInsensitive||0==t.caseSensitive)&&(e+="i"),t.sticky&&(e+="y"),e},t_re_updateFlagString=function(t,e){var r=t_re_parseFlagString(t);return t_re_createFlagString(Object.assign(r,e))},t_re_copy=function(t,e){var r=e,_=void 0;return t_s_is(r)?_=r:t_o_is(r)&&(_=t_re_updateFlagString(t.flags,r)),new RegExp(t,_)},t_re_addFlag=function(t,e){return t_re_copy(t,t.flags+e)},t_re_global=function(t){return t_re_addFlag(t,"g")},t_re_ensureGlobal=function(t){return t.global?t:t_re_global(t)},t_re_resolveFlags=function(t){var e=t;return null==e?void 0:t_s_is(e)?e:t_re_createFlagString(e)},t_re_create=function(t,e){return new RegExp(t,t_re_resolveFlags(e))},t_re_escape=function(t){return t.replace(/[-[\]{}()*+!<=:?.\/\\^$|#\s,]/g,"\\$&")},t_re_createEscaped=function(t,e){return t_re_create(t_re_escape(t),e)},t_s_replaceAll=function(t,e,r){return t.replaceAll?(t_re_is(e)&&(e=t_re_ensureGlobal(e)),t.replaceAll(e,r)):(e=t_s_is(e)?t_re_createEscaped(e,"g"):t_re_ensureGlobal(e),this.replace(e,r))},t_s_replace=t_s_replaceAll,t_a_last=function(t){return t[t.length-1]},t_a_resolveIndex=function(t,e){return e<0?t.length+e:e},t_s_resolveIndex=t_a_resolveIndex,t_re_setStartIndex=function(t,e,r){return t=t_re_copy(t,{global:!0}),null!=r&&(e=t_s_resolveIndex(r,e)),t.lastIndex=e,t},t_re_matchAll=function(t,e,r){return t=null!=r?t_re_setStartIndex(t,r,e):t_re_ensureGlobal(t),Array.from(e.matchAll(t))},t_re_matchLast=function(t,e,r){return null!=r&&(e=e.slice(0,r)),t_a_last(t_re_matchAll(t,e))||null},t_re_matchEnd=function(t,e){var r=t_re_matchLast(t,e);return r&&e.length===r.index+r[0].length?r:null},t_o_addNonEnumerable=function(t,e,r){Object.defineProperty(t,e,{value:r,writable:!0,enumerable:!1,configurable:!0})},t_o_setHidden=t_o_addNonEnumerable,t_f_setName=function(t,e){Object.defineProperty(t,"name",{value:e,configurable:!0}),t_o_setHidden(t,"displayName",e)},t_f_withName=function(t,e){return t&&t_f_setName(e,t),e},t_class_withName=t_f_withName,t_err_Enhanced=function(t){return t_class_withName(t.name,class extends t{constructor(t,e){super(t,e);var r=this.constructor.name;r&&(this.name=r)}})},t_err_TypeError=t_err_Enhanced(globalThis.TypeError),t_v_type=function(t){return null==t?t:t.constructor},t_f_one=function(t){var e,r=!1;return function(){return r||(r=!0,e=t.apply(this,arguments)),e}},t_macro_config=function(t){},t_node_is=t_f_one((function(){return t_macro_config("node.is")??"undefined"==typeof window})),t_node__basicRequire=function(t){return require(t)},t_npm_isBuiltIn=function(t){return!!t.startsWith("node:")||t_node__basicRequire("node:module").isBuiltin(t)},t_npm_isFile=function(t){return t.startsWith(".")},t_node_promptYNSync=function(t){return t_node_require("readline-sync").keyInYNStrict(t)},t_npm__promptForInstall=function(t,e){if("readline-sync"===t)throw new Error('Npm package "readline-sync" is required to prompt for package installation.');return e||(e='Npm package "'+t+'" is required. Install now?'),t_node_promptYNSync(e)},t_a_is=function(t){return Array.isArray(t)},t_a_ensure=function(t){return t_a_is(t)?t:[t]},t_p_is=function(t){return t instanceof Promise},t_p_asyncJoint=function(t,e){var r=t;return t_p_is(r)?r.then(e):e(r)},t_f_isSync=function(t){return t_v_constructorMatches(t,Function)},t_f_AsyncFunction=async function(){}.constructor,t_f_isAsync=function(t){return t_v_constructorMatches(t,t_f_AsyncFunction)},t_f_is=function(t){return t_f_isSync(t)||t_f_isAsync(t)},t_f_isArrow=function(t){return t_f_is(t)&&null==t.prototype},t_f_isArrowFn=t_f_isArrow,t_f_wrap=function(t){return function(){return t.apply(this,arguments)}},t_f_createConstructor=function(t,e){var r;return r=e?function(){return this.super=e,t_p_asyncJoint(t.apply(this,arguments),(()=>(delete this.super,this)))}:t_f_isArrowFn(t)?t_f_wrap(t):t,r._isConstructor=!0,r},t_f_ensureConstructor=function(t,e){return t._isConstructor?t:t_f_createConstructor(t,e)},t_f_retThis=function(){return this},t_err_Error=t_err_Enhanced(globalThis.Error),t_err_create=function(t,e,r){var _=new t_err_Error(t,r);return e&&Object.assign(_,e),_},t_err_NYIError=class extends t_err_Error{constructor(t,e){super(t??"Not yet implemented",e)}},t_o_ensure=function(t,e,r,_){var n=t[e];if(void 0===n){var a=r;!1!==_&&t_f_is(a)&&(a=a(t,e)),t[e]=n=a}return n},t_o_safeEnsure=function(t,e,r,_){return t||(t={}),t_o_ensure(t,e,r,_),t},t_err_defaultFromFn=function(t,e){return t_o_safeEnsure(t,"fromFn",e,!1)},t_err_nyi=function(t,e){return new t_err_NYIError(t,t_err_defaultFromFn(e,t_err_nyi))},t_o_isAny=function(t){return t instanceof Object&&null!==t},t_class_setName=t_f_setName,t_class_addStatics=function(t,e){return Object.assign(t,e)},t_sym_display=t_node_is()?require("util").inspect.custom:Symbol("Display"),t_class_setDisplay=function(t,e){t.prototype[t_sym_display]=e},t_class_create=function(t,e,r,_,n,a){a||(a={}),t_s_is(e)&&(e=null);var s,i,o,u=r;if(u)if(t_a_is(u)){if([i,o]=u,i)if(t_a_is(i)){if(!e)throw t_err_create("Bare args array for instanceFn is only valid when extending a class.");var l=i;i=null,s=t_f_createConstructor((function(){this.super.apply(this,l)}),e)}else i=t_f_ensureConstructor(i)}else s=t_f_ensureConstructor(u,e);var c=a.bareFn;a.singleton&&(c=function(){return null==d.default&&(d.default=new d(...arguments)),d.default});var f,p=i||s||e||t_f_retThis;function d(){if(!new.target&&c&&!(this instanceof d))return c.apply(this,arguments);var t=this;return t_p_asyncJoint(p.apply(t,arguments),(r=>{if(r&&t_o_isAny(r)&&(t=r,i)){if(!new.target)throw t_err_nyi('Prototype repair is NYI for class instantiation without "new".');if(!e)throw t_err_nyi("instanceFn is not yet supported when extendsClass is null.");var _=Object.getPrototypeOf(this);Object.getPrototypeOf(t)!==_&&Object.setPrototypeOf(t,_)}return o?t_p_asyncJoint(o.apply(t,arguments),(()=>t)):t}))}return t&&t_class_setName(d,t),_?(f=_,e&&Object.setPrototypeOf(_,e.prototype)):f=e?Object.create(e.prototype):{},t_o_setHidden(f,"constructor",d),d.prototype=f,n&&t_class_addStatics(d,n),a.display&&t_class_setDisplay(d,a.display),a.implements&&t_a_ensure(a.implements).forEach((t=>t(d))),d},t_o_makeNonEnumerable=function(t,e){Object.defineProperty(t,e,{enumerable:!1})},t_o_hideKey=t_o_makeNonEnumerable,t_f_createClass=function(t,e,r,_,n){var a=Symbol();return t_class_create(t,Function,[function(){var t=function(){return t[a].apply(this,arguments)};return t},function(){var t=e.apply(this,arguments);if(!t)throw new Error("Constructor must return a function.");this[a]=t,t_o_hideKey(this,a)}],r,_,n)},t_a_resolveIndices=function(t,e,r,_){return e=null==e?0:t_a_resolveIndex(t,e),r=null==r?t.length:t_a_resolveIndex(t,r),_&&(0==_.inclusiveStart&&e++,_.inclusiveEnd&&r++),[e,r]},t_a_fill=function(t,e,r,_){var n=e;if([r,_]=t_a_resolveIndices(t,r,_),t_f_is(n))for(var a=r;a<_;a++)t[a]=n(a,t);else t.fill(n,r,_);return t},t_a_create=function(t,e){var r=new Array(t||0);return arguments.length>1&&t_a_fill(r,e),r},t_a_pick=function(t,e){return t_a_create(e.length,(r=>t[e[r]]))},t_o_get=function(t,e){return t[e]},t_o_set=function(t,e,r){return t[e]=r},t_v_resolve=function(t,e,r){var _=t;return t_f_is(_)?_.apply(r,e):_},t_o_ensureCustom=function(t,e,r,_,n){_||(_=t_o_get);var a=_(t,e);return void 0===a&&(a=t_v_resolve(r,[t,e]),n||(n=t_o_set),n(t,e,a)),a},t_map_get=function(t,e){return t.get(e)},t_map_set=function(t,e,r){return t.set(e,r)},t_map_ensure=function(t,e,r){return t_o_ensureCustom(t,e,r,t_map_get,t_map_set)},t_map_Cache=class{constructor(){this.store=new Map}get(t,e){return t_map_ensure(this.store,t,e)}remove(t){return this.store.delete(t)}delete(t){return this.remove(t)}},t_a_push=function(t,e){return t.push(e),t},t_args_ensureArray=function(t){var e=t;return Array.isArray(e)?e:Array.from(e)},t_sym_value=Symbol("Value"),t_o_createEmpty=function(){return{}},t_a_splitLast=function(t){return[t.slice(0,-1),t[t.length-1]]},t_tree_dive=function(t,e,r,_,n,a){r||(r=t_o_get),null==_&&(_=t_o_createEmpty),null==n&&(n=t_o_set),null==a&&(a=r);for(var[s,i]=t_a_splitLast(e),o=t,u=s.length,l=0;l<u;l++){var c=s[l],f=r(o,c);if(void 0===f){if(!_)return;f=t_o_ensureCustom(o,c,_,r,n)}o=f}if(a)return a(o,i,n)},t_tree_ensure=function(t,e,r,_,n,a){return t_tree_dive(t,e,_,n,a,((t,e)=>t_o_ensureCustom(t,e,r,_,a)))},t_map_createEmpty=function(){return new Map},t_map_diveEnsure=function(t,e,r){return t_tree_ensure(t,e,r,t_map_get,t_map_createEmpty,t_map_set)},t_o_remove=function(t,e){return delete t[e],t},t_tree_remove=function(t,e,r,_){return t_tree_dive(t,e,r,!1,!1,_||t_o_remove)},t_map_remove=function(t,e){return t.delete(e)},t_map_diveDelete=function(t,e){return t_tree_remove(t,e,t_map_get,t_map_remove)},t_map_MultiCache=class{constructor(){this.store=new Map}get(t,e){return t=t_a_push(t_args_ensureArray(t),t_sym_value),t_map_diveEnsure(this.store,t,e)}remove(t){return t=t_a_push(t_args_ensureArray(t),t_sym_value),t_map_diveDelete(this.store,t)}delete(t){return this.remove(t)}},t_f_MemoizedFunction=t_f_createClass("MemoizedFunction",(function(t,e){if(this.base=t,null!=e)if(1===(e=t_a_ensure(e)).length){this.cache=new t_map_Cache;var r=e[0];this._cacheKeyFormatter=t=>t[r]}else this.cache=new t_map_MultiCache,this._cacheKeyFormatter=t=>t_a_pick(t,e);else this.cache=new t_map_MultiCache,this._cacheKeyFormatter=t=>t;var _=this;return function(){var e=_._cacheKeyFormatter(arguments);return _.cache.get(e,(()=>t.apply(this,arguments)))}}),{remove(t){return this.cache.remove(this._cacheKeyFormatter(t))}}),t_f_memoize=function(t,e){return new t_f_MemoizedFunction(t,e)},t_re_newline=/\r?\n/,t_a_replaceContents=function(t,e){var r=e.length;t.length=r;for(var _=0;_<r;_++)t[_]=e[_];return t},t_f_not=function(t){return function(){return!t.apply(this,arguments)}},t_a_removeByFilter=function(t,e){return t_a_replaceContents(t,t.filter(t_f_not(e)))},t_v_isEmpty=function(t){return null==t||void 0!==t.length&&0===t.length},t_a_removeEmpty=function(t,e){return t_a_removeByFilter(t,t_v_isEmpty)},t_a_removeIndex=function(t,e){return t.splice(e,1),t},t_a_apply=function(t,e,r,_){[r,_]=t_a_resolveIndices(t,r,_);for(var n=r;n<_;n++){var a=e(t[n],n,t);void 0!==a&&(t[n]=a)}return t},t_a_mapToObj=function(t,e,r){for(var _={},n=t.length,a=0;a<n;a++){var s=e(t[a],a,t);if(s){var[i,o]=s;r?(_[i]||(_[i]=[]),_[i].push(o)):_[i]=o}}return _},t_a_slice=function(t,e,r,_){return[e,r]=t_a_resolveIndices(t,e,r,_),t.slice(e,r)},t_s_repeat=function(t,e){return t_a_create(e,t).join("")},t_s__removeStringFromEnd=function(t,e){return t.endsWith(e)?t.substring(0,t.length-e.length):t},t_s__removeRegexFromEnd=function(t,e){var r=t_re_matchEnd(e,t);return r?t.slice(0,r.index):t},t_s_removeFromEnd=function(t,e){if(t_s_is(e))return t_s__removeStringFromEnd(t,e);if(t_re_is(e))return t_s__removeRegexFromEnd(t,e);throw t_err_type(e,1)},t_s_removeTrailing=t_s_removeFromEnd,t_re_text=function(t){return t?t[0]:null},t_s_removeAll=function(t,e){return t_s_replaceAll(t,e,"")},t_s_remove=t_s_removeAll,t_re_removeFlag=function(t,e){return t_re_copy(t,t_s_remove(t.flags,e))},t_re_local=function(t){return t_re_removeFlag(t,"g")},t_re_ensureLocal=function(t){return t.global?t_re_local(t):t},t_re_match=function(t,e,r){return(t=null!=r?t_re_setStartIndex(t,r,e):t_re_ensureLocal(t)).exec(e)},t_s_splitAtIndex=function(t,e){return[t.slice(0,e),t.slice(e)]},t_s__splitByMatch=function(t,e){var r=null==e?-1:e.index;if(-1===r)return[t];var _=t_s_splitAtIndex(t,r);return _[1]=_[1].slice(e[0].length),_},t_re_RegexResult=class extends Array{constructor(t,e){super(),this[0]=-1===e?null:t,this.index=e}},t_s_match=function(t,e,r){if(t_s_is(e)){var _=t.indexOf(e,r);return new t_re_RegexResult(e,_)}return t_re_match(e,t,r)},t_s_splitFirst=function(t,e){return t_s__splitByMatch(t,t_s_match(t,e))},t_v_nullIfNaN=function(t){return isNaN(t)?null:t},t_n_ensure=function(t){return null==t?null:t_v_nullIfNaN(Number(t))},t_n_tryParse=t_n_ensure,t_n_tryCoerce=function(t){return t_n_tryParse(t)??t},t_o_fromLines=function(t,e){null==e&&(e="=");var r={};return t.forEach((function(t){var[_,n]=t_s_splitFirst(t,e);null!=n&&(n=t_n_tryCoerce(n.trim())),r[_.trim()]=n})),r},t_o_safeDefault=t_o_safeEnsure,t_s_LinesArray=class extends Array{constructor(t){var e,r=t;null!=r&&(t_a_is(r)?e=r:t_s_is(r)&&(e=r.split(t_re_newline))),e?(super(e.length),Object.assign(this,e)):super(...arguments)}condense(t){return this.trim().removeEmpty(),t&&this.removeComments(t),this}trim(){return this.apply((t=>t.trim()))}removeEmpty(){return t_a_removeEmpty(this)}removeComments(t){for(var e=0;e<this.length;e++){var r=this[e],_=r.indexOf(t);-1!==_&&(""===(r=r.slice(0,_)).trim()?(t_a_removeIndex(this,e),e--):this[e]=r)}return this}removeFirst(){return this.shift(),this}removeLast(){return this.pop(),this}apply(t){return t_a_apply(this,t)}join(){return super.join("\n")}toObj(t){return t_o_fromLines(this,t)}mapToObj(t,e){return t_a_mapToObj(this,t,e)}between(t,e,r){return r=t_o_safeDefault(r,"inclusiveEnd",!0),t_a_slice(this,t,e,r)}normalize(){if(this.length>0&&(""===this[0].trim()&&this.shift(),this.length>0&&(""===t_a_last(this).trim()&&this.pop(),this.length>0))){var t=this.find((t=>""!==t.trim())),e=t_re_text(t_re_match(/^\s*/,t));if(e){var r=e.length;this.apply((t=>{if(t.startsWith(e))return t.slice(r)}))}}return this}deindent(t,e,r){throw t_err_nyi()}indent(t,e){var r=t_s_repeat(e??"\t",t??1);return this.apply((t=>r+t))}static is(t){return t_v_constructorMatches(t,this)}static fromChunks(t){return t.map((t=>t_s_removeTrailing(t,t_re_newline))).flatMap((t=>t_s_splitLines(t,!1)))}},t_s_lines=function(t,e){var r=new t_s_LinesArray(t);return e&&r.condense(),r},t_s_splitLines=function(t,e,r){var _=t.split(t_re_newline);return e?t_s_lines(_,r):_},t_cmd_where=function(t){try{var e=t_os_run("where",[t]);return t_s_splitLines(e,!1)}catch(t){return null}},t_win_is=t_f_one((function(){return"win32"===process.platform})),t_f_bool=function(t){return function(){return!!t.apply(this,arguments)}},t_f_eq=function(t){return e=>e===t},t_set_is=function(t){return t instanceof Set},t_f_match=function(t){if(t_f_is(t))return t_f_bool(t);if(t_s_is(t))return e=>t_s_is(e)&&e.includes(t);if(t_re_is(t))return e=>t_s_is(e)&&t.test(e);if(t_set_is(t))return e=>t.has(e);if(t_a_is(t)){var e=t.map(t_f_match);return function(){return e.some((t=>t.apply(null,arguments)))}}return t_f_eq(t)},t_a_find=function(t,e){return t.find(t_f_match(e))},t_linux_is=t_f_one((function(){return"linux"===process.platform})),t_path_extRegex=/\.?[a-zA-Z0-9]+$/,t_path_hasExt=function(t){return t_path_extRegex.test(t)},t_os_findCommand=t_f_memoize((function(t){var e=t_cmd_where(t);if(e){if(t_win_is())return t_a_find(e,(function(t){return(t=t.toLowerCase()).endsWith(".exe")||t.endsWith(".cmd")}));if(t_linux_is())return t_a_find(e,(t=>!t_path_hasExt(t)))}return null})),t_a_removeNullish=function(t){return t_a_removeByFilter(t,(t=>null==t))},t_os_run=function(t,e,r){if(r||(r={}),r.dir&&(r.cwd=r.dir),r.filterExtensions){var _=t_os_findCommand(t);if(!_)throw t_err_create("Could not resolve command: "+t);t=_}r.encoding||(r.encoding="utf8"),e&&t_a_removeNullish(e);var n=t_node_require("node:child_process").execFileSync(t,e,r);return null!=n?n.trim():n},t_npm__runCommand=function(t,e){return e||(e={}),e.shell=!0,e.filterExtensions=!1,t_os_run("npm",t,e)},t_npm_install=function(t,e,r){return t_npm__runCommand(["install",t,e?"-g":null],r)},t_path_abs=function(t,e){var r=t_node_require("node:path").resolve;return e?r(e,t):r(t)},t_node_requireLocal=function(t){return require(t_path_abs(t))},t_o_Cache=class{constructor(){this.store={}}get(t,e){return t_o_ensure(this.store,t,e)}remove(t){return delete this.store[t]}delete(t){return this.remove(t)}},t_node__requireDirCache=new t_o_Cache,t_node__createRequire=function(t){return t.endsWith("\\node_modules")||(t+="\\node_modules"),require("node:module").createRequire(t)},t_node__requireFromDir=function(t,e){return t_node__requireDirCache.get(t,(()=>t_node__createRequire(t)))(e)},t_o_resolveKeys=function(t){return t_a_is(t)?t:t_s_is(t)?t.split("."):[t]},t_tree_setCustom=function(t,e,r,_,n,a){var s=r;return t_tree_dive(t,e,_,n,a,((t,e,r)=>r(t,e,t_v_resolve(s))))},t_env_setConfig=function(t,e){var r=e,_=globalThis.config;_||(_=globalThis.config={});var n,a=t_o_resolveKeys(t);return a.length>1?n=t_tree_setCustom(_,a,r):(n=t_v_resolve(r),_[a[0]]=n),n},t_node_addRequireDir=function(t,e){return t_env_setConfig("node.require.customDirs",(r=>(r||(r=[]),!1!==e&&(t.endsWith("node_modules")||(t+="\\node_modules")),r.includes(t)||r.push(t),r))),t},t_node_ensureRequireDir=t_node_addRequireDir,t_o_diveGet=t_tree_dive,t_env_getConfig=function(t){var e=globalThis.config;if(e){var r=t_o_resolveKeys(t);return r.length>1?t_o_diveGet(e,r):e[r[0]]}},t_env_resolveConfig=function(t,e,r){if(null!=t)return t;var _=t_env_getConfig(e);return null!=_?_:r},t_fs_exists=function(t){return!!t_node_require("node:fs").lstatSync(t,{throwIfNoEntry:!1})},t_path_dir=function(t,e){return t=t_node_require("node:path").dirname(t),!1===e?t:t_path_ensureTrailingSlash(t)},t_fs_ensureParent=function(t){var e=t_path_dir(t,!1);return t_fs_exists(e)||(e!==t&&t_fs_ensureParent(e),t_node_require("node:fs").mkdirSync(e)),t},t_fs_mkdir=function(t){return t_fs_ensureParent(t),t_node_require("node:fs").mkdirSync(t),t},t_fs_ensureDir=function(t){return t_fs_exists(t)?t:t_fs_mkdir(t)},t_node_require=function(t,e){if(t_npm_isBuiltIn(t))return require(t);if(t_npm_isFile(t))return t_node_requireLocal(t);try{return require(t)}catch(t){}var r=__dirname,_=process.mainModule?.path;if(_!==r)try{return t_node__requireFromDir(_,t)}catch(t){}var n=process.cwd();if(n!==_&&n!==r)try{return t_node__requireFromDir(n,t)}catch(t){}var a=t_env_getConfig("node.require.customDirs");if(a)for(var s of a)try{return t_node__requireFromDir(s,t)}catch(t){}var i=t_env_resolveConfig(e?.autoInstall,"node.require.autoInstall"),o=t_env_resolveConfig(e?.promptInstall,"node.require.promptInstall",!0);if(i||o){var u=i||o;!0===u&&(u="./node_modules"),u=t_path_abs(u);var l=!1;if(i?(l=!0,console.log('Auto-installing "'+t+'" from npm to "'+u+'"...')):t_npm__promptForInstall(t)&&(l=!0,console.log('Installing "'+t+'" from npm to "'+u+'"...')),l){u=t_fs_ensureDir(u),t_npm_install(t,!1,{cwd:u});try{return t_node_ensureRequireDir(u),t_node__requireFromDir(u,t)}catch(t){console.error("Failed to load from auto-install dir: ",u)}}}throw t_err_create('Module not found: "'+t+'"',{checked:{moduleDir:r,scriptDir:_,cwd:n}})},t_node_display=function(t,e){return e||(e={}),null==e.colors&&(e.colors=!0),t_node_require("node:util").inspect(t,e)},t_s_escape=function(t,e,r){return t_s_replaceAll(t,e,(r??"\\")+e)},t_s_quote=function(t,e,r){return null==e&&(e='"'),!1!==r&&(t=t_s_escape(t,e,r)),e+t+e},t_s_toLiteral=function(t){return t_s_quote(t,'"')},t_o_isPure=t_o_is,t_s_from=function(t){return t_o_isPure(t)?t_o_toLiteral(t):String(t)},t_a_toLiteral=function(t,e){return e||(e=t_v_toLiteral),"["+t.reduce((function(t,r){return t+e(r)+", "}),"").slice(0,-2)+"]"},t_v_toLiteral=function(t){return t_s_is(t)?t_s_toLiteral(t):t_a_is(t)?t_a_toLiteral(t):t_s_from(t)},t_o_keys=function(t,e){return(e?Object.getOwnPropertyNames:Object.keys)(t)},t_o_each=function(t,e,r){t_o_keys(t,r).forEach(((r,_,n)=>e(r,t[r],_,n)))},t_o_reduce=function(t,e,r,_){var n=null!=r?r:"";return t_o_each(t,(function(){n=e.call(this,n,...arguments)}),_),n},t_o_toLiteral=function(t,e){return e||(e=t_v_toLiteral),"{"+t_o_reduce(t,(function(t,r,_){return t+r+":"+e(_)+", "}),"",!0).slice(0,-2)+"}"},t_o_display=function(t,e){return null==e&&(e=1),e<=0?"[object Object]":t_o_toLiteral(t,(t=>t_v_display(t,e-1)))},t_a_display=function(t,e){return null==e&&(e=1),e<=0?"[object Array]":t_a_toLiteral(t,(t=>t_v_display(t,e-1)))},t_v_display=function(t,e){return void 0===t?"undefined":null===t?"null":t_node_is()?t_node_display(t,e):t_o_is(t)?t_o_display(t,maxNumLevels):t_a_is(t)?t_a_display(t,maxNumLevels):t_s_from(t)},t_err_type=function(t,e,r,_){if(0===arguments.length)return new t_err_TypeError("Unexpected type received");_||(_={});var n,{type:a,expected:s}=_;return null==a&&(a=t_v_type(t)),a&&a.name&&(a=a.name),s?(s.name&&(s=s.name),n="Expected "+s+", received "):n="Unexpected type received (",n+=a,null!=t&&(n+=" ("+t_v_display(t)+")"),s||(n+=")"),r&&(n+=' for "'+r+'"'),null!=e&&(n+=" (index "+e+")"),_.fromFn||(_.fromFn=t_err_type),new t_err_TypeError(n,_)},t_s_endsWith=function(t,e){if(t_s_is(e))return t.endsWith(t);if(t_re_is(e))return!!t_re_matchEnd(e,t);throw t_err_type(e,1,"matchThis")},t_re_slash=/\/|\\/,t_path_ensureTrailingSlash=function(t){return t_s_endsWith(t,t_re_slash)?t:t+"/"},t_path_fws=function(t,e){return""===t?t:(null==e&&(e=!0),t=t_s_replace(t,"\\","/"),e?t_path_ensureTrailingSlash(t):t)},t_path_getLocalData=function(t){return t?t_path_getUserDir(t)+"AppData/Local/":t_path_fws(process.env.LOCALAPPDATA)},t_path__getDefaultTempDir=function(){return process.env.TEMP+"\\"},t_path_getTempDir=function(t){return t?t_path_getLocalData(t)+"Temp/":t_path__getDefaultTempDir()},t_titan_getTempDir=function(){return t_path_getTempDir()+"Titan/"},t_s_decapitalize=function(t){return t.charAt(0).toLowerCase()+t.slice(1)},t_path__removeExtsFromFile=function(t){return t.split(".")[0]},t_path_file=function(t){return t_node_require("node:path").win32.basename(t)},t_path_baseName=function(t){return t_path__removeExtsFromFile(t_path_file(t))},t_titan_getPackageName=function(t,e,r,_){t||(t=t_node_getScriptPath()??"_console.js");var n=t_s_decapitalize(t_path_baseName(t));return e&&(n+="_repl"),n+(r&&_?.dynamic?".dypkg.json":".pkg.js")},t_titan_getPackagePath=function(t,e,r,_){var n,a=t_titan_getPackageName(t,e,r,_);return n=t?t_path_dir(t):"./",t_path_abs(n+a)},t_titan_locate=t_f_one((function(){var t=process.env.TITAN_PATH;if(!t)throw t_err_create("Environment variable TITAN_PATH is not set.");return t_path_ensureTrailingSlash(t)})),t_titan_getCompiledDir=t_f_one((function(){return t_titan_locate()+"Compiled/"})),t_fs_load=function(t){return t_node_require("node:fs").readFileSync(t,"utf8")},t_d_now=function(){return new Date},t_err_req=function(t,e,r,_){var n="Required argument";return r&&(n+=' "'+r+'"'),null!=e&&(n+=" (index "+e+")"),n+=" missing",arguments.length>0&&(n+=" (received "+t_v_display(t)+")"),t_err_create(n,null,t_err_defaultFromFn(_,t_err_req))},t_d_copy=function(t){return new Date(t.getTime())},t_d_fromYear=function(t){return new Date(t,null)},t_d__resolveNative=function(t){var e=new Date(t);return isNaN(e.getTime())?null:e},t_n_fromString=t_n_ensure,t_n_is=function(t){return"number"==typeof t},t_d_ensure=function(t,e){if(null==t)throw t_err_req(t,0);if(t.constructor===Date)return e?t_d_copy(t):t;if(t_s_is(t)){var r=t_n_fromString(t);return null!=r?t_d_fromYear(r):t_d__resolveNative(t)||null}return t_n_is(t)?t_d_fromYear(t):void 0},t_d_resolve=function(t,e){return null==t?t_d_now():t_d_ensure(t,e)},t_d_create=function(t){return t_d_resolve(t,!0)},t_d_from=t_d_create,t_titan_getLastCompileTime=function(){var t=t_titan_getCompiledDir()+"LastCompileTime.txt";return t_fs_exists(t)?t_d_from(t_fs_load(t)):null},t_fs_getStats=function(t,e){null==e&&(e=!0);const r=t_node_require("node:fs");return(e?r.statSync:r.lstatSync)(t)},t_fs_getModifiedDate=function(t){return t_fs_getStats(t).mtime},t_d_isBefore=function(t,e,r){return t=t_d_ensure(t),e=t_d_ensure(e),!1===r?t<e:t<=e},t_titan_hasNewCompile=function(t){var e=t_titan_getLastCompileTime();if(e){var r=t_fs_getModifiedDate(t);if(t_d_isBefore(r,e))return!0}return!1},t_node_getScriptDir=function(t){var e=process.mainModule?.path;return null==e?null:!1!==t?t_path_ensureTrailingSlash(e):e},t_fs_loadText=t_fs_load,t_fs_loadJSON=function(t){return JSON.parse(t_fs_loadText(t))},t_o_addGetterAndSetter=function(t,e,r,_){Object.defineProperty(t,e,{get:r,set:_,enumerable:!0,configurable:!0})},t_o_setGetterAndSetter=t_o_addGetterAndSetter,t_o_removeGetter=function(t,e,r){arguments.length<3&&(r=t[e]),Object.defineProperty(t,e,{value:r,writable:!0,enumerable:!0,configurable:!0})},t_o_removeGetterAndSetter=t_o_removeGetter,t_o_setLazy=function(t,e,r){t_o_setGetterAndSetter(t,e,(function(){var _=r(e,t);return this[e]=_,_}),(function(t){t_o_removeGetterAndSetter(this,e,t)}))},t_titan__trackGlobals=function(t,e){var r=t.globals,_=t.shortNamesToGlobals;Object.keys(_).forEach((t=>{for(var n=_[t],a=n.length,s=0;s<a;s++){var i=n[s],o=globalThis[i];o||(o=globalThis[i]={});var u=r[i];Object.keys(u).forEach((r=>{var _=e[t][r];o[r]=_}))}})),e._meta||(e._meta={}),e._meta.globals=t.globals},t_titan__loadDynamicDeps=function _loadDynamicDeps(dynPackagePath,localT,options){const path=require("node:path");if(dynPackagePath)dynPackagePath=path.resolve(t_node_getScriptDir(),dynPackagePath);else{var scriptPath=t_node_getScriptPath();if(!scriptPath)throw new Error("Cannot find package name because scriptPath does not exist.");var dir=path.dirname(scriptPath),baseName=path.basename(scriptPath).split(".")[0];baseName=baseName[0].toLowerCase()+baseName.slice(1),dynPackagePath=path.join(dir,baseName+".pkg.json")}for(var packageObj=t_fs_loadJSON(dynPackagePath),setLazy=t_o_setLazy,items=packageObj.itemsInOrder,numItems=items.length,i=0;i<numItems;i++){let item=items[i],[shortName,itemName,evalText]=item,tModObj=localT[shortName];tModObj||(tModObj=localT[shortName]={}),Object.hasOwn(tModObj,itemName)||setLazy(tModObj,itemName,(function(){let t=localT;return eval("("+evalText+")")}))}packageObj.globals&&t_titan__trackGlobals(packageObj,localT)},t_js_fromAST=function(t,e){return t_node_require("astring").generate(t,e)},t_err_prepend=function(t,e){return t.stack=e+"\n"+t.stack,t},t_js_parse=function(t,e,r){r||(r={}),!1!==e&&(r.sourceType="module"),null==r.allowAwaitOutsideFunction&&(r.allowAwaitOutsideFunction=!0);var _=t_node_require("acorn-node");try{return _.parse(t,r)}catch(e){throw t_err_prepend(e,"Acorn parsing error: "+t)}},t_js_removeComments=function(t,e,r){return t_js_fromAST(t_js_parse(t,e,r))},t_re_quote=/(['"])(.*?)\1/,t_re_quotes=t_re_global(t_re_quote),t_s_removeQuotes=function(t){return t.replace(t_re_quotes,"")},t_js_removeQuotes=t_s_removeQuotes,t_tree_copy=function(t){return globalThis.structuredClone(t)},t_o_deepCopy=t_tree_copy,t_f_cache=t_f_memoize,t_fs_loadLines=function(t,e){return t_s_splitLines(t_fs_loadText(t),!0,e)},t_re_test=function(t,e){return t_re_ensureLocal(t).test(e)},t_s_contains=function(t,e){return t_re_is(e)?t_re_test(e,t):t.includes(e)},t_s__createParamsObj=function(t,e,r,_){null==t&&(t=""),null==e&&(e="");var n={},a=(r,_)=>n[t+r+e]=_;return _&&t_o_each(_,a),r&&t_o_each(r,a),n},t_s__replaceByObj=function(t,e){return t_o_each(e,((e,r)=>t=t_s_replaceAll(t,e,r))),t},t_s_replaceParams=function(t,e,r,_){var n,a;if(e)if(t_s_is(e)){if(!t_s_contains(t,e))return t;n=e}else{if(!t_a_is(e))throw t_err_type(e,1,"paramIdentifier");if([n,a]=e,!t_s_contains(t,n)&&!t_s_contains(t,a))return t}var s=t_s__createParamsObj(n,a,r,_);return t_s__replaceByObj(t,s)},t_path_string=function(t){return String(t)},t_path_windir=globalThis.process?.env.windir,t_path_getDesktop=function(t){return t_path_getUserDir(t)+"Desktop/"},t_path__defaultParams={PROGRAMFILES:globalThis.process?.env.ProgramFiles,WINDIR:t_path_windir,SYSTEM32:t_path_windir&&t_path_windir+"System32",TEMP:t_path__getDefaultTempDir(),DESKTOP:t_path_getDesktop()},t_path_resolveVars=function(t,e){return t_s_replaceParams(t_path_string(t),"$",e,t_path__defaultParams)},t_titan_locateSourceMap=function(){return t_titan_locate()+"Source/SourceMap.txt"},t_titan__resolveSourceMapPath=function(t){return t?t_path_resolveVars(t,{TITAN:t_titan_locate()}):t_titan_locateSourceMap()},t_s__findFn=function(t,e){throw t_err_nyi()},t_s_index=function(t,e,r){if(t_s_is(e))return t.indexOf(e,r);null==r?r=0:t=t.slice(r);var _=t_re_is(e)?t.search(e):t_s__findFn(t,e);return-1===_?_:r+_},t_s_before=function(t,e,r){null==r&&(r=0);var _=t_s_index(t,e,r);return-1===_?null:t.slice(r,_)},t_s_isCapitalized=function(t){var e=t[0];return e===e.toUpperCase()},t_a_filterSplit=function(t,e){var r=[],_=[];return t.forEach(((n,a)=>(e(n,a,t)?r:_).push(n))),[r,_]},t_titan_loadGlobalsMap=t_f_cache((function(t){var e=t_fs_loadLines(t_titan__resolveSourceMapPath(t),!0),r={};return e.forEach((t=>{var e=t_s_before(t,"=").split(",").map((t=>t.trim())),[_,n]=t_a_filterSplit(e,(t=>!t_s_isCapitalized(t))),a=_[0];if(!a)throw t_err_create('No shortName in SourceMap line: "'+t+'"');n.forEach((t=>{r[t]=a}))})),r}),0),t_titan__getGlobalsRegex=t_f_one((function(t){var e=Object.keys(t);return t_re_create("\\b("+e.join("|")+")\\.(\\w+)","g")})),t_titan_depsRegex=/\bt\.(\w+)\.(\w+)/g,t_titan__getDepsBasic=function(t,e){e||(e={});var r={},_=r.t={};if(e.enableGlobals){var n;n=e.additionalGlobals?t_o_deepCopy(e.additionalGlobals):{},r.globals=n;var a=t_titan_loadGlobalsMap(),s=t_titan__getGlobalsRegex(a),i=t_re_matchAll(s,t).filter((e=>{var r=e[1],_=e[2],n=t[e.index-1];if("."===n||"_"===n)return!1;var a=globalThis[r];return!a||void 0===a[_]}));for(var[o,u,l]of i)n[u]||(n[u]={}),n[u][l]=!0;var c=i.map((([t,e,r])=>{var _=a[e];if(!_)throw t_err_create("No short name found for global: "+e);return"t."+_+"."+r+";"})).join(" ");t+="\n"+c}for(var[o,f,l]of i=t.matchAll(t_titan_depsRegex))_[f]||(_[f]={}),_[f][l]=!0;return r},t_titan_getDepsFromJS=function(t,e){return t=t_js_removeComments(t),t=t_js_removeQuotes(t),t_titan__getDepsBasic(t,e)},t_titan_getDepsFromHTML=function(t,e){return t_titan__getDepsBasic(t,e)},t_titan_getShallowDeps=function(t,e,r){if(e){if("js"===(e=e.toLowerCase()))return t_titan_getDepsFromJS(t,r);if("html"===e)return t_titan_getDepsFromHTML(t,r)}return t_titan__getDepsBasic(t,r)},t_v_req=function(t,e,r){if(null==t)throw t_err_req(t,e,r,{fromFn:t_v_req});return t},t_o_has=function(t,e){return void 0!==t[e]},t_o_hasKey=t_o_has,t_tree_isSubsetOf=function(t,e){for(var r of(t_v_req(e,1),Object.keys(t))){if(!t_o_hasKey(e,r))return!1;var _=t[r];if(_&&_.constructor===Object&&!t_tree_isSubsetOf(_,e[r]))return!1}return!0},t_titan_jsonHasNewDeps=function(t,e){if(!t_tree_isSubsetOf(e.t,t))return!0;if(e.globals){var r=t._meta?.globals;if(!r)return!0;if(!t_tree_isSubsetOf(e.globals,r))return!0}return!1},t_titan_needsToPack=function(t,e,r,_){var n,a,s,i;_||(_={}),t&&(t=t_path_abs(t)),n=_.packagePath?t_path_abs(_.packagePath):t_titan_getPackagePath(t,!1,!0,_);var o,u=t_fs_exists(n);u?(a=t_titan_hasNewCompile(n))?s="New compile":(null==e&&(e=t_fs_loadText(t)),i=t_titan_getShallowDeps(e,"js",_),(o=t_titan_jsonHasNewDeps(r,i))&&(s="New deps")):s="No package";var l={needsPack:!!s,scriptPath:t,packagePath:n};return s&&(l.reasonText=s),null!=u&&(l.exists=u),null!=a&&(l.newCompile=a),null!=o&&(l.newDeps=o),e&&(l.sourceText=e),i&&(l.shallowDeps=i),l},t_path_isDir=function(t){return t_s_endsWith(t,t_re_slash)},t_re_lastIndex=function(t,e){var r=t_re_matchLast(t,e);return r?r.index:-1},t_path_slash=t_re_slash,t_path_dirPart=function(t){var e=t_re_lastIndex(t_path_slash,t);return-1===e?null:t.slice(0,e+1)},t_path_ignoreDir=function(t,e,r){if(t_path_isDir(t))return r?[t,null]:t;var _,n,a=t_path_dirPart(t),s=e(t_path_file(t),a,t);return r?[_,n]=s:_=s,null!=_&&(t=a?a+_:_),r?[t,n]:t},t_s_matchLast=function(t,e,r){if(t_re_is(e))return t_re_matchLast(e,t,r);if(t_s_is(e)){var _=t.lastIndexOf(e,r);return-1!==_?new t_re_RegexResult(e,_):null}throw t_err_type(e,1)},t_s_splitLast=function(t,e){return t_s__splitByMatch(t,t_s_matchLast(t,e))},t_path_splitExt=function(t){return t_path_ignoreDir(t,(t=>t_s_splitLast(t,".")),!0)},t_path_ext=function(t,e){var r=t_path_splitExt(t)[1];return r?!1!==e?r.toLowerCase():r:null},t_titan_sourceMap={},t_path_join=function(t,e,r){if(t_node_is()){var _=t_node_require("node:path").join(t,e);return r?t_path_ensureTrailingSlash(_):_}throw t_err_nyi()},t_titan_loadSourceMap=t_f_cache((function(t){t=t_titan__resolveSourceMapPath(t);var e=t_path_dir(t)+"../Compiled/",r=t_fs_loadLines(t,"//"),_=t_titan_sourceMap;for(var n of r){var a=n.indexOf("="),s=n.slice(0,a).trim();s=s.split(",").map((t=>t.trim())).filter((t=>!t_s_isCapitalized(t)));var i=n.slice(a+1).trim(),o=t_path_join(e,i).replaceAll("\\","/");for(var u of s)_[u]=o}return _}),0),t_titan_getDeps=function(t,e){var r=e?.fileType;if(r){if("js"===(r=r.toLowerCase()))return t_titan_getDepsFromJS(t,e);if("html"===r)return t_titan_getDepsFromHTML(t,e)}return t_titan__getDepsBasic(t,e)},t_gen_filter=function*(t,e){var r=0;for(var _ of t)e(_,r++,t)&&(yield _)},t_a_copy=function(t){return t.slice()},t_args_insert=function(t,e,r){for(var _=t.length-1;_>=e;_--)t[_+1]=t[_];return t[e]=r,t.length++,t},t_args_append=function(t,e){return t_args_insert(t,t.length,e)},t_args_push=t_args_append,t_f_recurse=function(t,e){return t.call(this,...e,(function e(){return t_a_last(arguments)!==e&&t_args_push(arguments,e),t.apply(this,arguments)}))},t_tree_iterator=function(t){t||(t={});var e=t.getKeys;e||(e=function(t){return Object.keys(t)});var r=t.recurseIf;if(!r){var _=this.constructor;r=t=>t_v_constructorMatches(t,_)||t_o_isPure(t)||t_a_is(t)}var n=t.leavesOnly??t.leafsOnly??!1,a=this;return t_f_recurse((function*(t,_,s,i){var o=e(t,_,s);if(o)for(var u=o.length,l=0;l<u;l++){var c=o[l],f=t[c],p=t_a_copy(_);p.push(c);var d=null,m={value:f,key:c,object:t,path:p,level:s,isLeaf:d,root:a},h=r(f,m);m.isLeaf=d=!h,n&&!d||(yield m),h&&(yield*i(f,p,s+1,i))}}),[this,[],0])},t_tree_iterate=function(t,e){return t_tree_iterator.call(t,e)},t_o_fromKeys=function(t,e){1===arguments.length&&(e=!0);var r={};for(var _ of t)r[_]=e;return r},t_js_eachNode=function(t,e,r,_){var n=t_js_parse(t,e,_);t_node_require("acorn-walk").full(n,r)},t_js_getNodes=function(t,e,r,_){var n;if(t_s_is(r))n=t=>t.type===r;else if(t_a_is(r)){var a=t_o_fromKeys(r);n=t=>a[t.type]}else n=r;var s=[];return t_js_eachNode(t,e,(function(t){n.apply(this,arguments)&&s.push(t)}),_),s},t_js_fromASTNode=t_js_fromAST,t_js_parseDeclaration=function(t){var e,r,_,n=t,a=t_s_is(n)?t_js_parse(n).body[0]:n,s=a.type;if("VariableDeclaration"===s){e="variable";var i=a.declarations[0];r=i.id.name,_=i.init?i.init.raw??t_js_fromAST(i.init):"undefined"}else"FunctionDeclaration"===s?e="function":"ClassDeclaration"===s&&(e="class"),r=a.id.name;var o={type:e,name:r};return _&&(o.value=_),o.text=t_js_fromASTNode(a),o.node=a,o},t_js_getExports=function(t){return t_js_getNodes(t,!0,["ExportNamedDeclaration","ExportDefaultDeclaration"]).map((function(t){var e=t.declaration;if(e){var r=t_js_parseDeclaration(e);return r.node=t,r}return{node:t}}))},t_titan__getAllDeps=function(t,e){e||(e={});var r=e.enableGlobals,_=t_titan_loadSourceMap(e.sourceMap),n={},a=[];return function t(e,s,i){var o=t_gen_filter(t_tree_iterate(e),(t=>t.isLeaf));for(var u of o){var[l,c]=u.path,f=n[l];if(f||(f=n[l]={}),null==f[c]){var p=_[l];if(p){var d=t_path_fws(p)+c+".js";if(!t_fs_exists(d)){var m='Titan compiled value "t.'+l+"."+c+'" does not exist';throw i&&(m+=' (called by "t.'+s+"."+i+'")'),t_err_create(m+=".")}var h=t_fs_load(d),v=t_js_getExports(h)[0];f[c]=v,t(t_titan_getDeps(h,{fileType:"js",enableGlobals:r}).t,l,c),a.push([l,c])}else console.log('Skipping unmapped module "'+l+'"'),f[c]=!1}}}(t.t),{t:n,globals:t.globals,order:a}},t_titan_packTextToJSON=function(t,e){e||(e={});var r=e.deps??t_titan_getShallowDeps(t,e.fileType,e),{t:_,globals:n,order:a}=t_titan__getAllDeps(r,e),s={};if(s.t=r.t,n&&e.enableGlobals){s.globals=n;var i=t_titan_loadGlobalsMap(),o=Object.keys(n),u=t_a_mapToObj(o,(t=>[i[t],t]),!0);s.shortNamesToGlobals=u}return s.itemsInOrder=a.map((([t,e])=>{var r=_[t][e];return[t,e,"variable"===r.type?r.value:"("+r.text+")"]})),s},t_tree_join=function(t,e,r){return null==r&&(r=!0),t_f_recurse((function(t,e,_){t_o_each(t,(function(t,n){if(t_o_hasKey(e,t)){var a=e[t];r?t_o_is(a)&&t_o_is(n)?_(n,a):e[t]=n:t_o_is(a)&&_(n,a)}else e[t]=n}))}),[t,e]),e},t_tree_merge=t_tree_join,t_o_fromArray=function(t){return Object.assign({},t)},t_a_toObj=function(t,e){if(e){var r={};return t.forEach(((t,_,n)=>r[e(t,_,n)]=!0)),r}return t_o_fromArray(t)},t_titan_addNewItemsToJSON=function(t,e){t_tree_merge(e.t,t.t,!1);var r=e.globals;if(r){var _=t.globals;_?t_tree_merge(r,_,!1):t.globals=r,t.shortNamesToGlobals=e.shortNamesToGlobals}var n=t_a_toObj(t.itemsInOrder,(t=>t[0]+"."+t[1]));return e.itemsInOrder.forEach((e=>{n[e[0]+"."+e[1]]||t.itemsInOrder.push(e)})),t},t_bin_isNodeBuffer=function(t){return t instanceof Buffer},t_ab_isTA=function(t){return ArrayBuffer.isView(t)},t_bin_isTA=t_ab_isTA,t_bin_isByteSafe=function(t){return t_bin_isNodeBuffer(t)||t_bin_isTA(t)||t_s_is(t)},t_ab_is=function(t){return t.constructor===ArrayBuffer},t_bin_ensureByteSafe=function(t){return t_bin_isByteSafe(t)?t:t_ab_is(t)?Buffer.from(t):t_s_from(t)},t_fs_formatRaw=function(t){return t_n_is(t)?String(t):t_bin_ensureByteSafe(t)},t_fs_write=function(t,e){return t_fs_ensureParent(t),t_node_require("node:fs").writeFileSync(t,t_fs_formatRaw(e)),t},t_json_stringify=function(t,e){var r;return e||(e={}),r=e.condensed?0:null!=e.whitespace?e.whitespace:"\t",JSON.stringify(t,e.replacer,r)},t_fs_writeJSON=function(t,e,r){return t_fs_write(t,t_json_stringify(e,r))},t_titan_packTextToJSONFile=function(t,e,r){r||(r={}),r.deps||r.fileType||!e||(r.fileType=t_path_ext(e));var _=t_titan_packTextToJSON(t,r),n=r.packagePath||t_titan_getPackagePath(e,r.repl,!0,r);if(r.dynamic&&(r.packageExists??t_fs_exists(n))&&!(r.newCompile??t_titan_hasNewCompile(n))){var a=t_fs_loadJSON(n);_=t_titan_addNewItemsToJSON(a,_)}return t_fs_writeJSON(n,_),n},t_titan_autoPackAndLoadJSON=function(t,e,r,_){var n=t_titan_needsToPack(t,e,r,_);return n.needsPack&&(_.onPack&&_.onPack(n.reasonText),e=n.sourceText??t_fs_loadText(t),_.packagePath=n.packagePath,_.packageExists=n.exists,_.newCompile=n.newCompile,_.deps=n.shallowDeps,t_titan_packTextToJSONFile(e,t,_),t_titan__loadDynamicDeps(n.packagePath,r,_)),r},t_fs_getID=function(t,e){return t_fs_getStats(t,e).ino},newItems={node:{getScriptPath:t_node_getScriptPath,is:t_node_is,display:t_node_display,require:t_node_require,_basicRequire:t_node__basicRequire,promptYNSync:t_node_promptYNSync,requireLocal:t_node_requireLocal,_requireFromDir:t_node__requireFromDir,_requireDirCache:t_node__requireDirCache,_createRequire:t_node__createRequire,ensureRequireDir:t_node_ensureRequireDir,addRequireDir:t_node_addRequireDir,getScriptDir:t_node_getScriptDir},titan:{getTempDir:t_titan_getTempDir,getPackagePath:t_titan_getPackagePath,getPackageName:t_titan_getPackageName,hasNewCompile:t_titan_hasNewCompile,getLastCompileTime:t_titan_getLastCompileTime,getCompiledDir:t_titan_getCompiledDir,locate:t_titan_locate,_loadDynamicDeps:t_titan__loadDynamicDeps,_trackGlobals:t_titan__trackGlobals,autoPackAndLoadJSON:t_titan_autoPackAndLoadJSON,needsToPack:t_titan_needsToPack,getShallowDeps:t_titan_getShallowDeps,getDepsFromJS:t_titan_getDepsFromJS,_getDepsBasic:t_titan__getDepsBasic,loadGlobalsMap:t_titan_loadGlobalsMap,_resolveSourceMapPath:t_titan__resolveSourceMapPath,locateSourceMap:t_titan_locateSourceMap,_getGlobalsRegex:t_titan__getGlobalsRegex,depsRegex:t_titan_depsRegex,getDepsFromHTML:t_titan_getDepsFromHTML,jsonHasNewDeps:t_titan_jsonHasNewDeps,packTextToJSONFile:t_titan_packTextToJSONFile,packTextToJSON:t_titan_packTextToJSON,_getAllDeps:t_titan__getAllDeps,loadSourceMap:t_titan_loadSourceMap,sourceMap:t_titan_sourceMap,getDeps:t_titan_getDeps,addNewItemsToJSON:t_titan_addNewItemsToJSON},path:{getTempDir:t_path_getTempDir,getLocalData:t_path_getLocalData,getUserDir:t_path_getUserDir,fws:t_path_fws,ensureTrailingSlash:t_path_ensureTrailingSlash,hasExt:t_path_hasExt,extRegex:t_path_extRegex,abs:t_path_abs,dir:t_path_dir,_getDefaultTempDir:t_path__getDefaultTempDir,baseName:t_path_baseName,_removeExtsFromFile:t_path__removeExtsFromFile,file:t_path_file,resolveVars:t_path_resolveVars,string:t_path_string,_defaultParams:t_path__defaultParams,windir:t_path_windir,getDesktop:t_path_getDesktop,ext:t_path_ext,splitExt:t_path_splitExt,ignoreDir:t_path_ignoreDir,isDir:t_path_isDir,dirPart:t_path_dirPart,slash:t_path_slash,join:t_path_join},s:{replace:t_s_replace,replaceAll:t_s_replaceAll,is:t_s_is,chars:t_s_chars,endsWith:t_s_endsWith,resolveIndex:t_s_resolveIndex,splitLines:t_s_splitLines,lines:t_s_lines,LinesArray:t_s_LinesArray,repeat:t_s_repeat,removeTrailing:t_s_removeTrailing,removeFromEnd:t_s_removeFromEnd,_removeStringFromEnd:t_s__removeStringFromEnd,_removeRegexFromEnd:t_s__removeRegexFromEnd,remove:t_s_remove,removeAll:t_s_removeAll,splitFirst:t_s_splitFirst,_splitByMatch:t_s__splitByMatch,splitAtIndex:t_s_splitAtIndex,match:t_s_match,toLiteral:t_s_toLiteral,quote:t_s_quote,escape:t_s_escape,from:t_s_from,decapitalize:t_s_decapitalize,removeQuotes:t_s_removeQuotes,replaceParams:t_s_replaceParams,contains:t_s_contains,_createParamsObj:t_s__createParamsObj,_replaceByObj:t_s__replaceByObj,before:t_s_before,index:t_s_index,_findFn:t_s__findFn,isCapitalized:t_s_isCapitalized,splitLast:t_s_splitLast,matchLast:t_s_matchLast},re:{is:t_re_is,ensureGlobal:t_re_ensureGlobal,global:t_re_global,addFlag:t_re_addFlag,copy:t_re_copy,updateFlagString:t_re_updateFlagString,parseFlagString:t_re_parseFlagString,createFlagString:t_re_createFlagString,createEscaped:t_re_createEscaped,create:t_re_create,resolveFlags:t_re_resolveFlags,escape:t_re_escape,matchEnd:t_re_matchEnd,matchLast:t_re_matchLast,matchAll:t_re_matchAll,setStartIndex:t_re_setStartIndex,newline:t_re_newline,text:t_re_text,match:t_re_match,ensureLocal:t_re_ensureLocal,local:t_re_local,removeFlag:t_re_removeFlag,RegexResult:t_re_RegexResult,slash:t_re_slash,quotes:t_re_quotes,quote:t_re_quote,test:t_re_test,lastIndex:t_re_lastIndex},o:{constructorMatches:t_o_constructorMatches,is:t_o_is,setHidden:t_o_setHidden,addNonEnumerable:t_o_addNonEnumerable,safeEnsure:t_o_safeEnsure,ensure:t_o_ensure,isAny:t_o_isAny,hideKey:t_o_hideKey,makeNonEnumerable:t_o_makeNonEnumerable,ensureCustom:t_o_ensureCustom,get:t_o_get,set:t_o_set,createEmpty:t_o_createEmpty,remove:t_o_remove,fromLines:t_o_fromLines,safeDefault:t_o_safeDefault,Cache:t_o_Cache,resolveKeys:t_o_resolveKeys,diveGet:t_o_diveGet,display:t_o_display,toLiteral:t_o_toLiteral,isPure:t_o_isPure,reduce:t_o_reduce,each:t_o_each,keys:t_o_keys,setLazy:t_o_setLazy,setGetterAndSetter:t_o_setGetterAndSetter,addGetterAndSetter:t_o_addGetterAndSetter,removeGetterAndSetter:t_o_removeGetterAndSetter,removeGetter:t_o_removeGetter,deepCopy:t_o_deepCopy,hasKey:t_o_hasKey,has:t_o_has,fromKeys:t_o_fromKeys,fromArray:t_o_fromArray},v:{constructorMatches:t_v_constructorMatches,type:t_v_type,display:t_v_display,resolve:t_v_resolve,isEmpty:t_v_isEmpty,nullIfNaN:t_v_nullIfNaN,toLiteral:t_v_toLiteral,req:t_v_req},a:{last:t_a_last,resolveIndex:t_a_resolveIndex,is:t_a_is,ensure:t_a_ensure,pick:t_a_pick,create:t_a_create,fill:t_a_fill,resolveIndices:t_a_resolveIndices,push:t_a_push,splitLast:t_a_splitLast,removeEmpty:t_a_removeEmpty,removeByFilter:t_a_removeByFilter,replaceContents:t_a_replaceContents,removeIndex:t_a_removeIndex,apply:t_a_apply,mapToObj:t_a_mapToObj,slice:t_a_slice,find:t_a_find,removeNullish:t_a_removeNullish,toLiteral:t_a_toLiteral,display:t_a_display,filterSplit:t_a_filterSplit,copy:t_a_copy,toObj:t_a_toObj},err:{type:t_err_type,TypeError:t_err_TypeError,Enhanced:t_err_Enhanced,create:t_err_create,Error:t_err_Error,nyi:t_err_nyi,NYIError:t_err_NYIError,defaultFromFn:t_err_defaultFromFn,req:t_err_req,prepend:t_err_prepend},class:{withName:t_class_withName,create:t_class_create,setName:t_class_setName,addStatics:t_class_addStatics,setDisplay:t_class_setDisplay},f:{withName:t_f_withName,setName:t_f_setName,one:t_f_one,memoize:t_f_memoize,MemoizedFunction:t_f_MemoizedFunction,createClass:t_f_createClass,createConstructor:t_f_createConstructor,isArrowFn:t_f_isArrowFn,isArrow:t_f_isArrow,is:t_f_is,isSync:t_f_isSync,isAsync:t_f_isAsync,AsyncFunction:t_f_AsyncFunction,wrap:t_f_wrap,ensureConstructor:t_f_ensureConstructor,retThis:t_f_retThis,not:t_f_not,match:t_f_match,bool:t_f_bool,eq:t_f_eq,cache:t_f_cache,recurse:t_f_recurse},macro:{config:t_macro_config},npm:{isBuiltIn:t_npm_isBuiltIn,isFile:t_npm_isFile,_promptForInstall:t_npm__promptForInstall,install:t_npm_install,_runCommand:t_npm__runCommand},os:{run:t_os_run,findCommand:t_os_findCommand},p:{asyncJoint:t_p_asyncJoint,is:t_p_is},sym:{display:t_sym_display,value:t_sym_value},map:{Cache:t_map_Cache,ensure:t_map_ensure,get:t_map_get,set:t_map_set,MultiCache:t_map_MultiCache,diveEnsure:t_map_diveEnsure,createEmpty:t_map_createEmpty,diveDelete:t_map_diveDelete,remove:t_map_remove},args:{ensureArray:t_args_ensureArray,push:t_args_push,append:t_args_append,insert:t_args_insert},tree:{ensure:t_tree_ensure,dive:t_tree_dive,remove:t_tree_remove,setCustom:t_tree_setCustom,copy:t_tree_copy,isSubsetOf:t_tree_isSubsetOf,iterate:t_tree_iterate,iterator:t_tree_iterator,merge:t_tree_merge,join:t_tree_join},cmd:{where:t_cmd_where},n:{tryCoerce:t_n_tryCoerce,tryParse:t_n_tryParse,ensure:t_n_ensure,fromString:t_n_fromString,is:t_n_is},win:{is:t_win_is},set:{is:t_set_is},linux:{is:t_linux_is},env:{setConfig:t_env_setConfig,getConfig:t_env_getConfig,resolveConfig:t_env_resolveConfig},fs:{ensureDir:t_fs_ensureDir,exists:t_fs_exists,mkdir:t_fs_mkdir,ensureParent:t_fs_ensureParent,load:t_fs_load,getModifiedDate:t_fs_getModifiedDate,getStats:t_fs_getStats,loadJSON:t_fs_loadJSON,loadText:t_fs_loadText,loadLines:t_fs_loadLines,writeJSON:t_fs_writeJSON,write:t_fs_write,formatRaw:t_fs_formatRaw,getID:t_fs_getID},d:{from:t_d_from,create:t_d_create,resolve:t_d_resolve,now:t_d_now,ensure:t_d_ensure,copy:t_d_copy,fromYear:t_d_fromYear,_resolveNative:t_d__resolveNative,isBefore:t_d_isBefore},js:{removeComments:t_js_removeComments,fromAST:t_js_fromAST,parse:t_js_parse,removeQuotes:t_js_removeQuotes,getExports:t_js_getExports,getNodes:t_js_getNodes,eachNode:t_js_eachNode,parseDeclaration:t_js_parseDeclaration,fromASTNode:t_js_fromASTNode},gen:{filter:t_gen_filter},bin:{ensureByteSafe:t_bin_ensureByteSafe,isByteSafe:t_bin_isByteSafe,isNodeBuffer:t_bin_isNodeBuffer,isTA:t_bin_isTA},ab:{isTA:t_ab_isTA,is:t_ab_is},json:{stringify:t_json_stringify}};globalThis.t?Object.keys(newItems).forEach((function(e){if(t[e]){var r=newItems[e];Object.keys(r).forEach((function(_){t[e][_]=r[_]}))}else t[e]=newItems[e]})):globalThis.t=Object.assign({},newItems),globalThis.exports&&(exports.default=globalThis.t);
|