farjs-app
Version:
FAR.js - Cross-platform File and Archive Manager app in your terminal
1,224 lines • 4.22 MB
JavaScript
'use strict';
import * as $i_$0040farjs$002fbetter$002dsqlite3$002dwebsql from "@farjs/better-sqlite3-websql";
import * as $i_$0040farjs$002fblessed from "@farjs/blessed";
import * as $i_$0040farjs$002fui$002fButton$002emjs from "@farjs/ui/Button.mjs";
import * as $i_$0040farjs$002fui$002fButtonsPanel$002emjs from "@farjs/ui/ButtonsPanel.mjs";
import * as $i_$0040farjs$002fui$002fTextAlign$002emjs from "@farjs/ui/TextAlign.mjs";
import * as $i_$0040farjs$002fui$002fTextLine$002emjs from "@farjs/ui/TextLine.mjs";
import * as $i_$0040farjs$002fui$002fUI$002emjs from "@farjs/ui/UI.mjs";
import * as $i_$0040farjs$002fui$002fborder$002fDoubleBorder$002emjs from "@farjs/ui/border/DoubleBorder.mjs";
import * as $i_$0040farjs$002fui$002fborder$002fDoubleChars$002emjs from "@farjs/ui/border/DoubleChars.mjs";
import * as $i_$0040farjs$002fui$002fborder$002fHorizontalLine$002emjs from "@farjs/ui/border/HorizontalLine.mjs";
import * as $i_$0040farjs$002fui$002fborder$002fSingleBorder$002emjs from "@farjs/ui/border/SingleBorder.mjs";
import * as $i_$0040farjs$002fui$002fborder$002fSingleChars$002emjs from "@farjs/ui/border/SingleChars.mjs";
import * as $i_$0040farjs$002fui$002fborder$002fVerticalLine$002emjs from "@farjs/ui/border/VerticalLine.mjs";
import * as $i_$0040farjs$002fui$002fpopup$002fMessageBox$002emjs from "@farjs/ui/popup/MessageBox.mjs";
import * as $i_$0040farjs$002fui$002fpopup$002fModal$002emjs from "@farjs/ui/popup/Modal.mjs";
import * as $i_$0040farjs$002fui$002fpopup$002fModalContent$002emjs from "@farjs/ui/popup/ModalContent.mjs";
import * as $i_$0040farjs$002fui$002fpopup$002fPopup$002emjs from "@farjs/ui/popup/Popup.mjs";
import * as $i_$0040farjs$002fui$002fpopup$002fPopupOverlay$002emjs from "@farjs/ui/popup/PopupOverlay.mjs";
import * as $i_$0040farjs$002fui$002fpopup$002fStatusPopup$002emjs from "@farjs/ui/popup/StatusPopup.mjs";
import * as $i_$0040farjs$002fui$002fportal$002fWithPortals$002emjs from "@farjs/ui/portal/WithPortals.mjs";
import * as $i_$0040farjs$002fui$002ftask$002fTaskManager$002emjs from "@farjs/ui/task/TaskManager.mjs";
import * as $i_$0040farjs$002fui$002ftheme$002fColor$002emjs from "@farjs/ui/theme/Color.mjs";
import * as $i_$0040farjs$002fui$002ftheme$002fDefaultTheme$002emjs from "@farjs/ui/theme/DefaultTheme.mjs";
import * as $i_$0040farjs$002fui$002ftheme$002fTheme$002emjs from "@farjs/ui/theme/Theme.mjs";
import * as $i_$0040farjs$002fui$002ftheme$002fXTerm256Theme$002emjs from "@farjs/ui/theme/XTerm256Theme.mjs";
import * as $i_$0040farjs$002fui$002ftool$002fDevTool$002emjs from "@farjs/ui/tool/DevTool.mjs";
import * as $i_$0040farjs$002fui$002ftool$002fDevToolPanel$002emjs from "@farjs/ui/tool/DevToolPanel.mjs";
import * as $i_$0040farjs$002fui$002ftool$002fLogController$002emjs from "@farjs/ui/tool/LogController.mjs";
import * as $i_child$005fprocess from "child_process";
import * as $i_fs from "fs";
import * as $i_iconv$002dlite from "iconv-lite";
import * as $i_os from "os";
import * as $i_path from "path";
import * as $i_react from "react";
import * as $i_react$002dblessed from "react-blessed";
import * as $i_url from "url";
var $linkingInfo = Object.freeze({
"esVersion": 6,
"assumingES6": true,
"productionMode": true,
"linkerVersion": "1.14.0",
"fileLevelThis": this
});
var $getOwnPropertyDescriptors = (Object.getOwnPropertyDescriptors || (() => {
var ownKeysFun;
if ((((typeof Reflect) !== "undefined") && Reflect.ownKeys)) {
ownKeysFun = Reflect.ownKeys
} else {
var getOwnPropertySymbols = (Object.getOwnPropertySymbols || ((o) => []));
ownKeysFun = ((o) => Object.getOwnPropertyNames(o).concat(getOwnPropertySymbols(o)))
};
return ((o) => {
var ownKeys = ownKeysFun(o);
var descriptors = {};
var len = (ownKeys.length | 0);
var i = 0;
while ((i !== len)) {
var key = ownKeys[i];
Object.defineProperty(descriptors, key, {
"configurable": true,
"enumerable": true,
"writable": true,
"value": Object.getOwnPropertyDescriptor(o, key)
});
i = ((i + 1) | 0)
};
return descriptors
})
})());
var $L0;
function $propertyName(arg0) {
for (var prop in arg0) {
return prop
}
}
function $Char(c) {
this.c = c
}
$Char.prototype.toString = (function() {
return String.fromCharCode(this.c)
});
function $noIsInstance(arg0) {
throw new TypeError("Cannot call isInstance() on a Class representing a JS trait/object")
}
function $newArrayObject(arg0, arg1) {
return $newArrayObjectInternal(arg0, arg1, 0)
}
function $newArrayObjectInternal(arg0, arg1, arg2) {
var result = new arg0.constr(arg1[arg2]);
if ((arg2 < (arg1.length - 1))) {
var subArrayClassData = arg0.componentData;
var subLengthIndex = (arg2 + 1);
var underlying = result.u;
for (var i = 0; (i < underlying.length); (i++)) {
underlying[i] = $newArrayObjectInternal(subArrayClassData, arg1, subLengthIndex)
}
};
return result
}
function $objectClone(arg0) {
return Object.create(Object.getPrototypeOf(arg0), $getOwnPropertyDescriptors(arg0))
}
function $objectOrArrayClone(arg0) {
return (arg0.$classData.isArrayClass ? arg0.clone__O() : $objectClone(arg0))
}
function $objectGetClass(arg0) {
switch ((typeof arg0)) {
case "string": {
return $d_T.getClassOf()
}
case "number": {
if ($isInt(arg0)) {
if ((((arg0 << 24) >> 24) === arg0)) {
return $d_jl_Byte.getClassOf()
} else if ((((arg0 << 16) >> 16) === arg0)) {
return $d_jl_Short.getClassOf()
} else {
return $d_jl_Integer.getClassOf()
}
} else if ($isFloat(arg0)) {
return $d_jl_Float.getClassOf()
} else {
return $d_jl_Double.getClassOf()
}
}
case "boolean": {
return $d_jl_Boolean.getClassOf()
}
case "undefined": {
return $d_jl_Void.getClassOf()
}
default: {
if ((arg0 === null)) {
return arg0.getClass__jl_Class()
} else if ((arg0 instanceof $c_RTLong)) {
return $d_jl_Long.getClassOf()
} else if ((arg0 instanceof $Char)) {
return $d_jl_Character.getClassOf()
} else if ((!(!(arg0 && arg0.$classData)))) {
return arg0.$classData.getClassOf()
} else {
return null
}
}
}
}
function $objectClassName(arg0) {
switch ((typeof arg0)) {
case "string": {
return "java.lang.String"
}
case "number": {
if ($isInt(arg0)) {
if ((((arg0 << 24) >> 24) === arg0)) {
return "java.lang.Byte"
} else if ((((arg0 << 16) >> 16) === arg0)) {
return "java.lang.Short"
} else {
return "java.lang.Integer"
}
} else if ($isFloat(arg0)) {
return "java.lang.Float"
} else {
return "java.lang.Double"
}
}
case "boolean": {
return "java.lang.Boolean"
}
case "undefined": {
return "java.lang.Void"
}
default: {
if ((arg0 === null)) {
return arg0.getClass__jl_Class()
} else if ((arg0 instanceof $c_RTLong)) {
return "java.lang.Long"
} else if ((arg0 instanceof $Char)) {
return "java.lang.Character"
} else if ((!(!(arg0 && arg0.$classData)))) {
return arg0.$classData.name
} else {
return null.getName__T()
}
}
}
}
function $dp_codePointAt__I__I(instance, x0) {
if (((typeof instance) === "string")) {
return $f_T__codePointAt__I__I(instance, x0)
} else {
return instance.codePointAt__I__I(x0)
}
}
function $dp_compareTo__O__I(instance, x0) {
switch ((typeof instance)) {
case "string": {
return $f_T__compareTo__O__I(instance, x0)
}
case "number": {
return $f_jl_Double__compareTo__O__I(instance, x0)
}
case "boolean": {
return $f_jl_Boolean__compareTo__O__I(instance, x0)
}
default: {
if ((instance instanceof $c_RTLong)) {
return $f_jl_Long__compareTo__O__I(instance, x0)
} else if ((instance instanceof $Char)) {
return $f_jl_Character__compareTo__O__I($uC(instance), x0)
} else {
return instance.compareTo__O__I(x0)
}
}
}
}
function $dp_compareTo__T__I(instance, x0) {
if (((typeof instance) === "string")) {
return $f_T__compareTo__T__I(instance, x0)
} else {
return instance.compareTo__T__I(x0)
}
}
function $dp_endsWith__T__Z(instance, x0) {
if (((typeof instance) === "string")) {
return $f_T__endsWith__T__Z(instance, x0)
} else {
return instance.endsWith__T__Z(x0)
}
}
function $dp_equals__O__Z(instance, x0) {
switch ((typeof instance)) {
case "string": {
return $f_T__equals__O__Z(instance, x0)
}
case "number": {
return $f_jl_Double__equals__O__Z(instance, x0)
}
case "boolean": {
return $f_jl_Boolean__equals__O__Z(instance, x0)
}
case "undefined": {
return $f_jl_Void__equals__O__Z(instance, x0)
}
default: {
if (((!(!(instance && instance.$classData))) || (instance === null))) {
return instance.equals__O__Z(x0)
} else if ((instance instanceof $c_RTLong)) {
return $f_jl_Long__equals__O__Z(instance, x0)
} else if ((instance instanceof $Char)) {
return $f_jl_Character__equals__O__Z($uC(instance), x0)
} else {
return $c_O.prototype.equals__O__Z.call(instance, x0)
}
}
}
}
function $dp_getChars__I__I__AC__I__V(instance, x0, x1, x2, x3) {
if (((typeof instance) === "string")) {
return $f_T__getChars__I__I__AC__I__V(instance, x0, x1, x2, x3)
} else {
return instance.getChars__I__I__AC__I__V(x0, x1, x2, x3)
}
}
function $dp_hashCode__I(instance) {
switch ((typeof instance)) {
case "string": {
return $f_T__hashCode__I(instance)
}
case "number": {
return $f_jl_Double__hashCode__I(instance)
}
case "boolean": {
return $f_jl_Boolean__hashCode__I(instance)
}
case "undefined": {
return $f_jl_Void__hashCode__I(instance)
}
default: {
if (((!(!(instance && instance.$classData))) || (instance === null))) {
return instance.hashCode__I()
} else if ((instance instanceof $c_RTLong)) {
return $f_jl_Long__hashCode__I(instance)
} else if ((instance instanceof $Char)) {
return $f_jl_Character__hashCode__I($uC(instance))
} else {
return $c_O.prototype.hashCode__I.call(instance)
}
}
}
}
function $dp_indexOf__I__I(instance, x0) {
if (((typeof instance) === "string")) {
return $f_T__indexOf__I__I(instance, x0)
} else {
return instance.indexOf__I__I(x0)
}
}
function $dp_lastIndexOf__I__I(instance, x0) {
if (((typeof instance) === "string")) {
return $f_T__lastIndexOf__I__I(instance, x0)
} else {
return instance.lastIndexOf__I__I(x0)
}
}
function $dp_repeat__I__T(instance, x0) {
if (((typeof instance) === "string")) {
return $f_T__repeat__I__T(instance, x0)
} else {
return instance.repeat__I__T(x0)
}
}
function $dp_split__T__I__AT(instance, x0, x1) {
if (((typeof instance) === "string")) {
return $f_T__split__T__I__AT(instance, x0, x1)
} else {
return instance.split__T__I__AT(x0, x1)
}
}
function $dp_subSequence__I__I__jl_CharSequence(instance, x0, x1) {
if (((typeof instance) === "string")) {
return $f_T__subSequence__I__I__jl_CharSequence(instance, x0, x1)
} else {
return instance.subSequence__I__I__jl_CharSequence(x0, x1)
}
}
function $dp_toCharArray__AC(instance) {
if (((typeof instance) === "string")) {
return $f_T__toCharArray__AC(instance)
} else {
return instance.toCharArray__AC()
}
}
function $dp_toString__T(instance) {
return ((instance === (void 0)) ? "undefined" : instance.toString())
}
function $dp_trim__T(instance) {
if (((typeof instance) === "string")) {
return $f_T__trim__T(instance)
} else {
return instance.trim__T()
}
}
function $intDiv(arg0, arg1) {
if ((arg1 === 0)) {
throw new $c_jl_ArithmeticException("/ by zero")
} else {
return ((arg0 / arg1) | 0)
}
}
function $intMod(arg0, arg1) {
if ((arg1 === 0)) {
throw new $c_jl_ArithmeticException("/ by zero")
} else {
return ((arg0 % arg1) | 0)
}
}
function $doubleToInt(arg0) {
return ((arg0 > 2147483647) ? 2147483647 : ((arg0 < (-2147483648)) ? (-2147483648) : (arg0 | 0)))
}
function $resolveSuperRef(arg0, arg1) {
var getPrototypeOf = Object.getPrototyeOf;
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
var superProto = arg0.prototype;
while ((superProto !== null)) {
var desc = getOwnPropertyDescriptor(superProto, arg1);
if ((desc !== (void 0))) {
return desc
};
superProto = getPrototypeOf(superProto)
}
}
function $superGet(arg0, arg1, arg2) {
var desc = $resolveSuperRef(arg0, arg2);
if ((desc !== (void 0))) {
var getter = desc.get;
return ((getter !== (void 0)) ? getter.call(arg1) : getter.value)
}
}
function $superSet(arg0, arg1, arg2, arg3) {
var desc = $resolveSuperRef(arg0, arg2);
if ((desc !== (void 0))) {
var setter = desc.set;
if ((setter !== (void 0))) {
setter.call(arg1, arg3);
return (void 0)
}
};
throw new TypeError((("super has no setter '" + arg2) + "'."))
}
function $arraycopyGeneric(arg0, arg1, arg2, arg3, arg4) {
if ((((arg0 !== arg2) || (arg3 < arg1)) || (((arg1 + arg4) | 0) < arg3))) {
for (var i = 0; (i < arg4); i = ((i + 1) | 0)) {
arg2[((arg3 + i) | 0)] = arg0[((arg1 + i) | 0)]
}
} else {
for (var i = ((arg4 - 1) | 0); (i >= 0); i = ((i - 1) | 0)) {
arg2[((arg3 + i) | 0)] = arg0[((arg1 + i) | 0)]
}
}
}
var $lastIDHash = 0;
var $idHashCodeMap = new WeakMap();
function $systemIdentityHashCode(obj) {
switch ((typeof obj)) {
case "string": {
return $f_T__hashCode__I(obj)
}
case "number": {
return $f_jl_Double__hashCode__I(obj)
}
case "bigint": {
var biHash = 0;
if ((obj < BigInt(0))) {
obj = (~obj)
};
while ((obj !== BigInt(0))) {
biHash = (biHash ^ Number(BigInt.asIntN(32, obj)));
obj = (obj >> BigInt(32))
};
return biHash
}
case "boolean": {
return (obj ? 1231 : 1237)
}
case "undefined": {
return 0
}
case "symbol": {
var description = obj.description;
return ((description === (void 0)) ? 0 : $f_T__hashCode__I(description))
}
default: {
if ((obj === null)) {
return 0
} else {
var hash = $idHashCodeMap.get(obj);
if ((hash === (void 0))) {
hash = (($lastIDHash + 1) | 0);
$lastIDHash = hash;
$idHashCodeMap.set(obj, hash)
};
return hash
}
}
}
}
function $isByte(arg0) {
return ((((typeof arg0) === "number") && (((arg0 << 24) >> 24) === arg0)) && ((1 / arg0) !== (1 / (-0))))
}
function $isShort(arg0) {
return ((((typeof arg0) === "number") && (((arg0 << 16) >> 16) === arg0)) && ((1 / arg0) !== (1 / (-0))))
}
function $isInt(arg0) {
return ((((typeof arg0) === "number") && ((arg0 | 0) === arg0)) && ((1 / arg0) !== (1 / (-0))))
}
function $isFloat(arg0) {
return (((typeof arg0) === "number") && ((arg0 !== arg0) || (Math.fround(arg0) === arg0)))
}
function $bC(arg0) {
return new $Char(arg0)
}
var $bC0 = $bC(0);
function $uC(arg0) {
return ((arg0 === null) ? 0 : arg0.c)
}
function $uJ(arg0) {
return ((arg0 === null) ? $L0 : arg0)
}
function $ct_O__($thiz) {
return $thiz
}
/** @constructor */
function $c_O() {
/*<skip>*/
}
$c_O.prototype.constructor = $c_O;
/** @constructor */
function $h_O() {
/*<skip>*/
}
$h_O.prototype = $c_O.prototype;
$c_O.prototype.hashCode__I = (function() {
return $systemIdentityHashCode(this)
});
$c_O.prototype.equals__O__Z = (function(that) {
return (this === that)
});
$c_O.prototype.toString__T = (function() {
var i = this.hashCode__I();
return (($objectClassName(this) + "@") + (+(i >>> 0.0)).toString(16))
});
$c_O.prototype.toString = (function() {
return this.toString__T()
});
function $ac_O(arg) {
if (((typeof arg) === "number")) {
this.u = new Array(arg);
for (var i = 0; (i < arg); (i++)) {
this.u[i] = null
}
} else {
this.u = arg
}
}
$ac_O.prototype = new $h_O();
$ac_O.prototype.constructor = $ac_O;
$ac_O.prototype.copyTo = (function(srcPos, dest, destPos, length) {
$arraycopyGeneric(this.u, srcPos, dest.u, destPos, length)
});
$ac_O.prototype.clone__O = (function() {
return new $ac_O(this.u.slice())
});
function $ah_O() {
/*<skip>*/
}
$ah_O.prototype = $ac_O.prototype;
function $ac_Z(arg) {
if (((typeof arg) === "number")) {
this.u = new Array(arg);
for (var i = 0; (i < arg); (i++)) {
this.u[i] = false
}
} else {
this.u = arg
}
}
$ac_Z.prototype = new $h_O();
$ac_Z.prototype.constructor = $ac_Z;
$ac_Z.prototype.copyTo = (function(srcPos, dest, destPos, length) {
$arraycopyGeneric(this.u, srcPos, dest.u, destPos, length)
});
$ac_Z.prototype.clone__O = (function() {
return new $ac_Z(this.u.slice())
});
function $ac_C(arg) {
if (((typeof arg) === "number")) {
this.u = new Uint16Array(arg)
} else {
this.u = arg
}
}
$ac_C.prototype = new $h_O();
$ac_C.prototype.constructor = $ac_C;
$ac_C.prototype.copyTo = (function(srcPos, dest, destPos, length) {
dest.u.set(this.u.subarray(srcPos, ((srcPos + length) | 0)), destPos)
});
$ac_C.prototype.clone__O = (function() {
return new $ac_C(this.u.slice())
});
function $ac_B(arg) {
if (((typeof arg) === "number")) {
this.u = new Int8Array(arg)
} else {
this.u = arg
}
}
$ac_B.prototype = new $h_O();
$ac_B.prototype.constructor = $ac_B;
$ac_B.prototype.copyTo = (function(srcPos, dest, destPos, length) {
dest.u.set(this.u.subarray(srcPos, ((srcPos + length) | 0)), destPos)
});
$ac_B.prototype.clone__O = (function() {
return new $ac_B(this.u.slice())
});
function $ac_S(arg) {
if (((typeof arg) === "number")) {
this.u = new Int16Array(arg)
} else {
this.u = arg
}
}
$ac_S.prototype = new $h_O();
$ac_S.prototype.constructor = $ac_S;
$ac_S.prototype.copyTo = (function(srcPos, dest, destPos, length) {
dest.u.set(this.u.subarray(srcPos, ((srcPos + length) | 0)), destPos)
});
$ac_S.prototype.clone__O = (function() {
return new $ac_S(this.u.slice())
});
function $ac_I(arg) {
if (((typeof arg) === "number")) {
this.u = new Int32Array(arg)
} else {
this.u = arg
}
}
$ac_I.prototype = new $h_O();
$ac_I.prototype.constructor = $ac_I;
$ac_I.prototype.copyTo = (function(srcPos, dest, destPos, length) {
dest.u.set(this.u.subarray(srcPos, ((srcPos + length) | 0)), destPos)
});
$ac_I.prototype.clone__O = (function() {
return new $ac_I(this.u.slice())
});
function $ac_J(arg) {
if (((typeof arg) === "number")) {
this.u = new Array(arg);
for (var i = 0; (i < arg); (i++)) {
this.u[i] = $L0
}
} else {
this.u = arg
}
}
$ac_J.prototype = new $h_O();
$ac_J.prototype.constructor = $ac_J;
$ac_J.prototype.copyTo = (function(srcPos, dest, destPos, length) {
$arraycopyGeneric(this.u, srcPos, dest.u, destPos, length)
});
$ac_J.prototype.clone__O = (function() {
return new $ac_J(this.u.slice())
});
function $ac_F(arg) {
if (((typeof arg) === "number")) {
this.u = new Float32Array(arg)
} else {
this.u = arg
}
}
$ac_F.prototype = new $h_O();
$ac_F.prototype.constructor = $ac_F;
$ac_F.prototype.copyTo = (function(srcPos, dest, destPos, length) {
dest.u.set(this.u.subarray(srcPos, ((srcPos + length) | 0)), destPos)
});
$ac_F.prototype.clone__O = (function() {
return new $ac_F(this.u.slice())
});
function $ac_D(arg) {
if (((typeof arg) === "number")) {
this.u = new Float64Array(arg)
} else {
this.u = arg
}
}
$ac_D.prototype = new $h_O();
$ac_D.prototype.constructor = $ac_D;
$ac_D.prototype.copyTo = (function(srcPos, dest, destPos, length) {
dest.u.set(this.u.subarray(srcPos, ((srcPos + length) | 0)), destPos)
});
$ac_D.prototype.clone__O = (function() {
return new $ac_D(this.u.slice())
});
function $TypeData() {
this.constr = (void 0);
this.ancestors = null;
this.componentData = null;
this.arrayBase = null;
this.arrayDepth = 0;
this.zero = null;
this.arrayEncodedName = "";
this._classOf = (void 0);
this._arrayOf = (void 0);
this.isAssignableFromFun = (void 0);
this.wrapArray = (void 0);
this.isJSType = false;
this.name = "";
this.isPrimitive = false;
this.isInterface = false;
this.isArrayClass = false;
this.isInstance = (void 0)
}
$TypeData.prototype.initPrim = (function(zero, arrayEncodedName, displayName, arrayClass, typedArrayClass) {
this.ancestors = {};
this.zero = zero;
this.arrayEncodedName = arrayEncodedName;
var self = this;
this.isAssignableFromFun = ((that) => (that === self));
this.name = displayName;
this.isPrimitive = true;
this.isInstance = ((obj) => false);
if ((arrayClass !== (void 0))) {
this._arrayOf = new $TypeData().initSpecializedArray(this, arrayClass, typedArrayClass)
};
return this
});
$TypeData.prototype.initClass = (function(internalNameObj, isInterface, fullName, ancestors, isJSType, parentData, isInstance) {
var internalName = $propertyName(internalNameObj);
this.ancestors = ancestors;
this.arrayEncodedName = (("L" + fullName) + ";");
this.isAssignableFromFun = ((that) => (!(!that.ancestors[internalName])));
this.isJSType = (!(!isJSType));
this.name = fullName;
this.isInterface = isInterface;
this.isInstance = (isInstance || ((obj) => (!(!((obj && obj.$classData) && obj.$classData.ancestors[internalName])))));
return this
});
$TypeData.prototype.initSpecializedArray = (function(componentData, arrayClass, typedArrayClass, isAssignableFromFun) {
arrayClass.prototype.$classData = this;
var name = ("[" + componentData.arrayEncodedName);
this.constr = arrayClass;
this.ancestors = {
O: 1,
jl_Cloneable: 1,
Ljava_io_Serializable: 1
};
this.componentData = componentData;
this.arrayBase = componentData;
this.arrayDepth = 1;
this.arrayEncodedName = name;
this.name = name;
this.isArrayClass = true;
var self = this;
this.isAssignableFromFun = (isAssignableFromFun || ((that) => (self === that)));
this.wrapArray = (typedArrayClass ? ((array) => new arrayClass(new typedArrayClass(array))) : ((array) => new arrayClass(array)));
this.isInstance = ((obj) => (obj instanceof arrayClass));
return this
});
$TypeData.prototype.initArray = (function(componentData) {
function ArrayClass(arg) {
if (((typeof arg) === "number")) {
this.u = new Array(arg);
for (var i = 0; (i < arg); (i++)) {
this.u[i] = null
}
} else {
this.u = arg
}
}
ArrayClass.prototype = new $ah_O();
ArrayClass.prototype.constructor = ArrayClass;
ArrayClass.prototype.copyTo = (function(srcPos, dest, destPos, length) {
$arraycopyGeneric(this.u, srcPos, dest.u, destPos, length)
});
ArrayClass.prototype.clone__O = (function() {
return new ArrayClass(this.u.slice())
});
var arrayBase = (componentData.arrayBase || componentData);
var arrayDepth = (componentData.arrayDepth + 1);
ArrayClass.prototype.$classData = this;
var name = ("[" + componentData.arrayEncodedName);
this.constr = ArrayClass;
this.ancestors = {
O: 1,
jl_Cloneable: 1,
Ljava_io_Serializable: 1
};
this.componentData = componentData;
this.arrayBase = arrayBase;
this.arrayDepth = arrayDepth;
this.arrayEncodedName = name;
this.name = name;
this.isArrayClass = true;
var isAssignableFromFun = ((that) => {
var thatDepth = that.arrayDepth;
return ((thatDepth === arrayDepth) ? arrayBase.isAssignableFromFun(that.arrayBase) : ((thatDepth > arrayDepth) && (arrayBase === $d_O)))
});
this.isAssignableFromFun = isAssignableFromFun;
this.wrapArray = ((array) => new ArrayClass(array));
var self = this;
this.isInstance = ((obj) => {
var data = (obj && obj.$classData);
return ((!(!data)) && ((data === self) || isAssignableFromFun(data)))
});
return this
});
$TypeData.prototype.getArrayOf = (function() {
if ((!this._arrayOf)) {
this._arrayOf = new $TypeData().initArray(this)
};
return this._arrayOf
});
$TypeData.prototype.getClassOf = (function() {
if ((!this._classOf)) {
this._classOf = new $c_jl_Class(this)
};
return this._classOf
});
$TypeData.prototype.isAssignableFrom = (function(that) {
return ((this === that) || this.isAssignableFromFun(that))
});
$TypeData.prototype.checkCast = (function(obj) {
/*<skip>*/
});
$TypeData.prototype.getSuperclass = (function() {
return (this.parentData ? this.parentData.getClassOf() : null)
});
$TypeData.prototype.getComponentType = (function() {
return (this.componentData ? this.componentData.getClassOf() : null)
});
$TypeData.prototype.newArrayOfThisClass = (function(lengths) {
var arrayClassData = this;
for (var i = 0; (i < lengths.length); (i++)) {
arrayClassData = arrayClassData.getArrayOf()
};
return $newArrayObject(arrayClassData, lengths)
});
function $isArrayOf_O(obj, depth) {
var data = (obj && obj.$classData);
if ((!data)) {
return false
} else {
var arrayDepth = data.arrayDepth;
return ((arrayDepth === depth) ? (!data.arrayBase.isPrimitive) : (arrayDepth > depth))
}
}
function $isArrayOf_Z(obj, depth) {
return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && (obj.$classData.arrayBase === $d_Z))))
}
function $isArrayOf_C(obj, depth) {
return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && (obj.$classData.arrayBase === $d_C))))
}
function $isArrayOf_B(obj, depth) {
return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && (obj.$classData.arrayBase === $d_B))))
}
function $isArrayOf_S(obj, depth) {
return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && (obj.$classData.arrayBase === $d_S))))
}
function $isArrayOf_I(obj, depth) {
return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && (obj.$classData.arrayBase === $d_I))))
}
function $isArrayOf_J(obj, depth) {
return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && (obj.$classData.arrayBase === $d_J))))
}
function $isArrayOf_F(obj, depth) {
return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && (obj.$classData.arrayBase === $d_F))))
}
function $isArrayOf_D(obj, depth) {
return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && (obj.$classData.arrayBase === $d_D))))
}
var $d_O = new $TypeData();
$d_O.ancestors = {
O: 1
};
$d_O.arrayEncodedName = "Ljava.lang.Object;";
$d_O.isAssignableFromFun = ((that) => (!that.isPrimitive));
$d_O.name = "java.lang.Object";
$d_O.isInstance = ((obj) => (obj !== null));
$d_O._arrayOf = new $TypeData().initSpecializedArray($d_O, $ac_O, (void 0), ((that) => {
var thatDepth = that.arrayDepth;
return ((thatDepth === 1) ? (!that.arrayBase.isPrimitive) : (thatDepth > 1))
}));
$c_O.prototype.$classData = $d_O;
var $d_V = new $TypeData().initPrim((void 0), "V", "void", (void 0), (void 0));
var $d_Z = new $TypeData().initPrim(false, "Z", "boolean", $ac_Z, (void 0));
var $d_C = new $TypeData().initPrim(0, "C", "char", $ac_C, Uint16Array);
var $d_B = new $TypeData().initPrim(0, "B", "byte", $ac_B, Int8Array);
var $d_S = new $TypeData().initPrim(0, "S", "short", $ac_S, Int16Array);
var $d_I = new $TypeData().initPrim(0, "I", "int", $ac_I, Int32Array);
var $d_J = new $TypeData().initPrim(null, "J", "long", $ac_J, (void 0));
var $d_F = new $TypeData().initPrim(0.0, "F", "float", $ac_F, Float32Array);
var $d_D = new $TypeData().initPrim(0.0, "D", "double", $ac_D, Float64Array);
function $p_Lfarjs_app_FarjsApp$__prepareDB__s_concurrent_Future($thiz) {
var this$1 = $m_Lfarjs_fs_FSFileListActions$();
var dirs = $m_Lfarjs_app_FarjsData$().getDataDir__sci_List();
var dbF = this$1.Lfarjs_fs_FSFileListActions__f_api.mkDirs__sci_List__s_concurrent_Future(dirs).map__F1__s_concurrent_ExecutionContext__s_concurrent_Future(new $c_sjsr_AnonFunction1(((x$4$2) => {
var x$4 = x$4$2;
var db = $m_Lfarjs_app_raw_BetterSqlite3WebSQL$().openDatabase__T__Lscommons_websql_Database($m_Lfarjs_app_FarjsData$().getDBFilePath__T());
return $ct_T2__O__O__(new $c_T2(), x$4, db)
})), $m_s_concurrent_ExecutionContext$().global__s_concurrent_ExecutionContextExecutor()).flatMap__F1__s_concurrent_ExecutionContext__s_concurrent_Future(new $c_sjsr_AnonFunction1(((x$6$2) => {
var x$6 = x$6$2;
if ((x$6 !== null)) {
var db$1 = x$6._2__O();
return $m_Lfarjs_app_FarjsDBMigrations$().apply__Lscommons_websql_Database__s_concurrent_Future(db$1).map__F1__s_concurrent_ExecutionContext__s_concurrent_Future(new $c_sjsr_AnonFunction1(((x$5$2) => db$1)), $m_s_concurrent_ExecutionContext$().global__s_concurrent_ExecutionContextExecutor())
} else {
throw new $c_s_MatchError(x$6)
}
})), $m_s_concurrent_ExecutionContext$().global__s_concurrent_ExecutionContextExecutor());
return dbF.recover__s_PartialFunction__s_concurrent_ExecutionContext__s_concurrent_Future(new $c_Lfarjs_app_FarjsApp$$anonfun$prepareDB$4(), $m_s_concurrent_ExecutionContext$().global__s_concurrent_ExecutionContextExecutor())
}
function $p_Lfarjs_app_FarjsApp$__createRenderer$1__sjs_js_Function2($thiz) {
return $i_react$002dblessed.default.createBlessedRenderer($i_$0040farjs$002fblessed.default)
}
/** @constructor */
function $c_Lfarjs_app_FarjsApp$() {
this.Lfarjs_app_FarjsApp$__f_g = null;
$n_Lfarjs_app_FarjsApp$ = this;
this.Lfarjs_app_FarjsApp$__f_g = $m_Lscommons_nodejs_package$().global__Lscommons_nodejs_raw_NodeJs()
}
$c_Lfarjs_app_FarjsApp$.prototype = new $h_O();
$c_Lfarjs_app_FarjsApp$.prototype.constructor = $c_Lfarjs_app_FarjsApp$;
/** @constructor */
function $h_Lfarjs_app_FarjsApp$() {
/*<skip>*/
}
$h_Lfarjs_app_FarjsApp$.prototype = $c_Lfarjs_app_FarjsApp$.prototype;
$c_Lfarjs_app_FarjsApp$.prototype.start__Z__sjs_js_$bar__sjs_js_$bar__Lscommons_react_blessed_raw_BlessedScreen = (function(showDevTools, onReady, onExit) {
var screen = $i_$0040farjs$002fblessed.default.screen((() => {
var this$1 = {};
this$1.autoPadding = null;
this$1.smartCSR = null;
this$1.tabSize = null;
this$1.fullUnicode = null;
this$1.cursorShape = null;
this$1.autoPadding = true;
this$1.smartCSR = true;
this$1.tabSize = 1;
this$1.fullUnicode = true;
this$1.cursorShape = "underline";
return this$1
})());
screen.savedRenderer = $p_Lfarjs_app_FarjsApp$__createRenderer$1__sjs_js_Function2(this);
screen.savedConsoleLog = this.Lfarjs_app_FarjsApp$__f_g.console.log;
screen.savedConsoleError = this.Lfarjs_app_FarjsApp$__f_g.console.error;
screen.key(["C-e"], ((arg1$2, arg2$2) => {
$m_Lfarjs_app_FarjsApp$().farjs$app$FarjsApp$$$anonfun$start$1__sjs_js_Object__Lscommons_react_blessed_raw_KeyboardKey__Lscommons_react_blessed_raw_BlessedScreen__sjs_js_Dynamic__sjs_js_$bar__V(arg1$2, arg2$2, screen, screen, onExit)
}));
var root = new $c_Lfarjs_app_FarjsRoot(new $c_sjsr_AnonFunction1(((dispatch$2) => {
if ((onReady !== (void 0))) {
onReady()
};
return $p_Lfarjs_app_FarjsApp$__prepareDB__s_concurrent_Future($m_Lfarjs_app_FarjsApp$()).map__F1__s_concurrent_ExecutionContext__s_concurrent_Future(new $c_sjsr_AnonFunction1(((db$2) => {
var db = db$2;
var ctx = new $c_Lfarjs_domain_FarjsDBContext(db);
var fileListModule = new $c_Lfarjs_app_filelist_FileListModule(ctx);
var this$22 = new $c_Lfarjs_app_filelist_FileListRoot($m_sjs_js_Any$().toFunction1__sjs_js_Function1__F1(dispatch$2), fileListModule, $i_$0040farjs$002fui$002fportal$002fWithPortals$002emjs.default.create(screen));
var mainUi = this$22.scommons$react$UiComponent$$reactClass__Lio_github_shogowada_scalajs_reactjs_classes_ReactClass();
var x = screen.terminal;
var y = $m_Lscommons_react_blessed_TerminalName$().Lscommons_react_blessed_TerminalName$__f_xterm$minus256color;
if ($m_sr_BoxesRunTime$().equals__O__O__Z(x, y)) {
var theme = $m_Lfarjs_filelist_theme_FileListTheme$().xterm256Theme__Lfarjs_filelist_theme_FileListTheme()
} else {
var theme = $m_Lfarjs_filelist_theme_FileListTheme$().defaultTheme__Lfarjs_filelist_theme_FileListTheme()
};
return $ct_T2__O__O__(new $c_T2(), theme, mainUi)
})), $m_s_concurrent_ExecutionContext$().global__s_concurrent_ExecutionContextExecutor())
})), (showDevTools ? $i_$0040farjs$002fui$002ftool$002fDevTool$002emjs.default.Logs : $i_$0040farjs$002fui$002ftool$002fDevTool$002emjs.default.Hidden), $m_Lfarjs_filelist_theme_FileListTheme$().defaultTheme__Lfarjs_filelist_theme_FileListTheme());
var value = screen.savedRenderer;
var renderer = ((value === (void 0)) ? $p_Lfarjs_app_FarjsApp$__createRenderer$1__sjs_js_Function2(this) : value);
$m_Lscommons_react_package$().$less__Lio_github_shogowada_scalajs_reactjs_VirtualDOM$VirtualDOMElements();
var reactClass = root.scommons$react$UiComponent$$reactClass__Lio_github_shogowada_scalajs_reactjs_classes_ReactClass();
var this$30 = new $c_Lio_github_shogowada_scalajs_reactjs_VirtualDOM$VirtualDOMElements$ReactClassElementSpec($m_Lio_github_shogowada_scalajs_reactjs_VirtualDOM$().VirtualDOMElements__Lio_github_shogowada_scalajs_reactjs_VirtualDOM$VirtualDOMElements$(), reactClass);
renderer(this$30.apply__sci_Seq__sci_Seq__Lio_github_shogowada_scalajs_reactjs_elements_ReactElement($m_sci_Nil$(), $m_sci_Nil$()), screen);
return screen
});
$c_Lfarjs_app_FarjsApp$.prototype.farjs$app$FarjsApp$$$anonfun$start$1__sjs_js_Object__Lscommons_react_blessed_raw_KeyboardKey__Lscommons_react_blessed_raw_BlessedScreen__sjs_js_Dynamic__sjs_js_$bar__V = (function(x$1, x$2, screen$1, screenObj$1, onExit$1) {
screen$1.destroy();
$m_Lfarjs_app_FarjsApp$().Lfarjs_app_FarjsApp$__f_g.console.log = screenObj$1.savedConsoleLog;
$m_Lfarjs_app_FarjsApp$().Lfarjs_app_FarjsApp$__f_g.console.error = screenObj$1.savedConsoleError;
var x1 = ((onExit$1 === (void 0)) ? $m_s_None$() : new $c_s_Some(onExit$1));
if ((x1 instanceof $c_s_Some)) {
var x2 = x1;
var onExit = x2.s_Some__f_value;
onExit()
} else {
var x = $m_s_None$();
if ((x === x1)) {
var this$6 = $m_Lscommons_nodejs_package$().process__Lscommons_nodejs_Process();
$f_Lscommons_nodejs_Process__exit__I__V(this$6, 0)
} else {
throw new $c_s_MatchError(x1)
}
}
});
$c_Lfarjs_app_FarjsApp$.prototype.start = (function(...rest) {
var prep0 = ((rest[0] === (void 0)) ? ($m_Lfarjs_app_FarjsApp$(), false) : (!(!rest[0])));
var prep1 = ((rest[1] === (void 0)) ? ($m_Lfarjs_app_FarjsApp$(), (void 0)) : rest[1]);
var prep2 = ((rest[2] === (void 0)) ? ($m_Lfarjs_app_FarjsApp$(), (void 0)) : rest[2]);
return $m_Lfarjs_app_FarjsApp$().start__Z__sjs_js_$bar__sjs_js_$bar__Lscommons_react_blessed_raw_BlessedScreen(prep0, prep1, prep2)
});
var $d_Lfarjs_app_FarjsApp$ = new $TypeData().initClass({
Lfarjs_app_FarjsApp$: 0
}, false, "farjs.app.FarjsApp$", {
Lfarjs_app_FarjsApp$: 1,
O: 1
});
$c_Lfarjs_app_FarjsApp$.prototype.$classData = $d_Lfarjs_app_FarjsApp$;
var $n_Lfarjs_app_FarjsApp$;
function $m_Lfarjs_app_FarjsApp$() {
if ((!$n_Lfarjs_app_FarjsApp$)) {
$n_Lfarjs_app_FarjsApp$ = new $c_Lfarjs_app_FarjsApp$()
};
return $n_Lfarjs_app_FarjsApp$
}
/** @constructor */
function $c_Lfarjs_app_FarjsDBMigrations$() {
/*<skip>*/
}
$c_Lfarjs_app_FarjsDBMigrations$.prototype = new $h_O();
$c_Lfarjs_app_FarjsDBMigrations$.prototype.constructor = $c_Lfarjs_app_FarjsDBMigrations$;
/** @constructor */
function $h_Lfarjs_app_FarjsDBMigrations$() {
/*<skip>*/
}
$h_Lfarjs_app_FarjsDBMigrations$.prototype = $c_Lfarjs_app_FarjsDBMigrations$.prototype;
$c_Lfarjs_app_FarjsDBMigrations$.prototype.apply__Lscommons_websql_Database__s_concurrent_Future = (function(db) {
var url = new $i_url.URL("./farjs/domain/bundle.json", import.meta.url);
var $$x2 = $i_fs.default;
var a = (() => {
var this$4 = {};
this$4.encoding = null;
this$4.encoding = "utf8";
return this$4
})();
var $$x1 = $$x2.readFileSync(url, a);
var json = $$x1;
var bundle = JSON.parse(json, (void 0));
var migrations = new $c_Lscommons_websql_migrations_WebSqlMigrations(db);
return migrations.runBundle__Lscommons_websql_migrations_raw_WebSqlMigrationBundle__s_concurrent_Future(bundle)
});
var $d_Lfarjs_app_FarjsDBMigrations$ = new $TypeData().initClass({
Lfarjs_app_FarjsDBMigrations$: 0
}, false, "farjs.app.FarjsDBMigrations$", {
Lfarjs_app_FarjsDBMigrations$: 1,
O: 1
});
$c_Lfarjs_app_FarjsDBMigrations$.prototype.$classData = $d_Lfarjs_app_FarjsDBMigrations$;
var $n_Lfarjs_app_FarjsDBMigrations$;
function $m_Lfarjs_app_FarjsDBMigrations$() {
if ((!$n_Lfarjs_app_FarjsDBMigrations$)) {
$n_Lfarjs_app_FarjsDBMigrations$ = new $c_Lfarjs_app_FarjsDBMigrations$()
};
return $n_Lfarjs_app_FarjsDBMigrations$
}
function $ct_Lfarjs_app_FarjsData__Lscommons_nodejs_Process$Platform__($thiz, platform) {
$thiz.Lfarjs_app_FarjsData__f_platform = platform;
return $thiz
}
/** @constructor */
function $c_Lfarjs_app_FarjsData() {
this.Lfarjs_app_FarjsData__f_platform = null
}
$c_Lfarjs_app_FarjsData.prototype = new $h_O();
$c_Lfarjs_app_FarjsData.prototype.constructor = $c_Lfarjs_app_FarjsData;
/** @constructor */
function $h_Lfarjs_app_FarjsData() {
/*<skip>*/
}
$h_Lfarjs_app_FarjsData.prototype = $c_Lfarjs_app_FarjsData.prototype;
$c_Lfarjs_app_FarjsData.prototype.getDBFilePath__T = (function() {
var $$x2 = $m_Lscommons_nodejs_package$().path__Lscommons_nodejs_raw_Path();
var this$1 = this.getDataDir__sci_List();
var seq = $f_sc_StrictOptimizedSeqOps__appended__O__O(this$1, "farjs.db");
var $$x1 = $$x2.join(...$m_sjsr_Compat$().toJSVarArgsImpl__sci_Seq__sjs_js_Array(seq));
return $$x1
});
$c_Lfarjs_app_FarjsData.prototype.getDataDir__sci_List = (function() {
var home = $m_Lscommons_nodejs_package$().os__Lscommons_nodejs_raw_OS().homedir();
var x = this.Lfarjs_app_FarjsData__f_platform;
var y = $m_Lscommons_nodejs_Process$Platform$().Lscommons_nodejs_Process$Platform$__f_darwin;
if ($m_sr_BoxesRunTime$().equals__O__O__Z(x, y)) {
$m_s_package$();
var array = [home, "Library", "Application Support", $m_Lfarjs_app_FarjsData$().Lfarjs_app_FarjsData$__f_farjs$app$FarjsData$$appName];
var elems = $ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), array);
return $m_sci_Nil$().prependedAll__sc_IterableOnce__sci_List(elems)
} else {
var x$1 = this.Lfarjs_app_FarjsData__f_platform;
var y$1 = $m_Lscommons_nodejs_Process$Platform$().Lscommons_nodejs_Process$Platform$__f_win32;
if ($m_sr_BoxesRunTime$().equals__O__O__Z(x$1, y$1)) {
var appData = global.process.env.APPDATA;
var x1 = ((appData === (void 0)) ? $m_s_None$() : new $c_s_Some(appData));
if ((x1 instanceof $c_s_Some)) {
var x2 = x1;
var dataDir = x2.s_Some__f_value;
$m_s_package$();
var array$1 = [dataDir, $m_Lfarjs_app_FarjsData$().Lfarjs_app_FarjsData$__f_farjs$app$FarjsData$$appName];
var elems$1 = $ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), array$1);
return $m_sci_Nil$().prependedAll__sc_IterableOnce__sci_List(elems$1)
} else {
var x$2 = $m_s_None$();
if ((x$2 === x1)) {
$m_s_package$();
var array$2 = [home, ("." + $m_Lfarjs_app_FarjsData$().Lfarjs_app_FarjsData$__f_farjs$app$FarjsData$$appName)];
var elems$2 = $ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), array$2);
return $m_sci_Nil$().prependedAll__sc_IterableOnce__sci_List(elems$2)
} else {
throw new $c_s_MatchError(x1)
}
}
} else {
$m_s_package$();
var array$3 = [home, ".local", "share", $m_Lfarjs_app_FarjsData$().Lfarjs_app_FarjsData$__f_farjs$app$FarjsData$$appName];
var elems$3 = $ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), array$3);
return $m_sci_Nil$().prependedAll__sc_IterableOnce__sci_List(elems$3)
}
}
});
/** @constructor */
function $c_Lfarjs_app_FarjsRoot$() {
this.Lfarjs_app_FarjsRoot$__f_taskControllerComp = null;
this.Lfarjs_app_FarjsRoot$__f_logControllerComp = null;
this.Lfarjs_app_FarjsRoot$__f_devToolPanelComp = null;
$n_Lfarjs_app_FarjsRoot$ = this;
$i_$0040farjs$002fui$002ftask$002fTaskManager$002emjs.default.errorHandler = $m_Lfarjs_ui_task_TaskError$().Lfarjs_ui_task_TaskError$__f_errorHandler;
this.Lfarjs_app_FarjsRoot$__f_taskControllerComp = $i_$0040farjs$002fui$002ftask$002fTaskManager$002emjs.default;
this.Lfarjs_app_FarjsRoot$__f_logControllerComp = $i_$0040farjs$002fui$002ftool$002fLogController$002emjs.default;
this.Lfarjs_app_FarjsRoot$__f_devToolPanelComp = $i_$0040farjs$002fui$002ftool$002fDevToolPanel$002emjs.default
}
$c_Lfarjs_app_FarjsRoot$.prototype = new $h_O();
$c_Lfarjs_app_FarjsRoot$.prototype.constructor = $c_Lfarjs_app_FarjsRoot$;
/** @constructor */
function $h_Lfarjs_app_FarjsRoot$() {
/*<skip>*/
}
$h_Lfarjs_app_FarjsRoot$.prototype = $c_Lfarjs_app_FarjsRoot$.prototype;
var $d_Lfarjs_app_FarjsRoot$ = new $TypeData().initClass({
Lfarjs_app_FarjsRoot$: 0
}, false, "farjs.app.FarjsRoot$", {
Lfarjs_app_FarjsRoot$: 1,
O: 1
});
$c_Lfarjs_app_FarjsRoot$.prototype.$classData = $d_Lfarjs_app_FarjsRoot$;
var $n_Lfarjs_app_FarjsRoot$;
function $m_Lfarjs_app_FarjsRoot$() {
if ((!$n_Lfarjs_app_FarjsRoot$)) {
$n_Lfarjs_app_FarjsRoot$ = new $c_Lfarjs_app_FarjsRoot$()
};
return $n_Lfarjs_app_FarjsRoot$
}
/** @constructor */
function $c_Lfarjs_app_FarjsStateReducer$() {
/*<skip>*/
}
$c_Lfarjs_app_FarjsStateReducer$.prototype = new $h_O();
$c_Lfarjs_app_FarjsStateReducer$.prototype.constructor = $c_Lfarjs_app_FarjsStateReducer$;
/** @constructor */
function $h_Lfarjs_app_FarjsStateReducer$() {
/*<skip>*/
}
$h_Lfarjs_app_FarjsStateReducer$.prototype = $c_Lfarjs_app_FarjsStateReducer$.prototype;
$c_Lfarjs_app_FarjsStateReducer$.prototype.apply__Lfarjs_app_FarjsState__O__Lfarjs_app_FarjsState = (function(state, action) {
return new $c_Lfarjs_app_FarjsState($m_Lfarjs_ui_task_TaskReducer$().apply__s_Option__O__s_Option(state.Lfarjs_app_FarjsState__f_currentTask, action))
});
var $d_Lfarjs_app_FarjsStateReducer$ = new $TypeData().initClass({
Lfarjs_app_FarjsStateReducer$: 0
}, false, "farjs.app.FarjsStateReducer$", {
Lfarjs_app_FarjsStateReducer$: 1,
O: 1
});
$c_Lfarjs_app_FarjsStateReducer$.prototype.$classData = $d_Lfarjs_app_FarjsStateReducer$;
var $n_Lfarjs_app_FarjsStateReducer$;
function $m_Lfarjs_app_FarjsStateReducer$() {
if ((!$n_Lfarjs_app_FarjsStateReducer$)) {
$n_Lfarjs_app_FarjsStateReducer$ = new $c_Lfarjs_app_FarjsStateReducer$()
};
return $n_Lfarjs_app_FarjsStateReducer$
}
/** @constructor */
function $c_Lfarjs_app_filelist_FileListModule(ctx) {
this.Lfarjs_app_filelist_FileListModule__f_folderDao = null;
this.Lfarjs_app_filelist_FileListModule__f_folderService = null;
this.Lfarjs_app_filelist_FileListModule__f_mkDirDao = null;
this.Lfarjs_app_filelist_FileListModule__f_mkDirService = null;
this.Lfarjs_app_filelist_FileListModule__f_selectPatternDao = null;
this.Lfarjs_app_filelist_FileListModule__f_selectPatternService = null;
this.Lfarjs_app_filelist_FileListModule__f_copyItemDao = null;
this.Lfarjs_app_filelist_FileListModule__f_copyItemService = null;
this.Lfarjs_app_filelist_FileListModule__f_fileListServices = null;
this.Lfarjs_app_filelist_FileListModule__f_folderShortcutDao = null;
this.Lfarjs_app_filelist_FileListModule__f_folderShortcutsService = null;
this.Lfarjs_app_filelist_FileListModule__f_fsServices = null;
this.Lfarjs_app_filelist_FileListModule__f_fileViewHistoryDao = null;
this.Lfarjs_app_filelist_FileListModule__f_fileViewHistoryService = null;
this.Lfarjs_app_filelist_FileListModule__f_fileServices = null;
this.Lfarjs_app_filelist_FileListModule__f_folderDao = new $c_Lfarjs_domain_dao_HistoryFolderDao(ctx, 100);
this.Lfarjs_app_filelist_FileListModule__f_folderService = new $c_Lfarjs_app_filelist_service_FileListHistoryServiceImpl(this.Lfarjs_app_filelist_FileListModule__f_folderDao);
this.Lfarjs_app_filelist_FileListModule__f_mkDirDao = new $c_Lfarjs_domain_dao_HistoryMkDirDao(ctx, 50);
this.Lfarjs_app_filelist_FileListModule__f_mkDirService = new $c_Lfarjs_app_filelist_service_FileListHistoryServiceImpl(this.Lfarjs_app_filelist_FileListModule__f_mkDirDao);
this.Lfarjs_app_filelist_FileListModule__f_selectPatternDao = new $c_Lfarjs_domain_dao_HistorySelectPatternDao(ctx, 50);
this.Lfarjs_app_filelist_FileListModule__f_selectPatternService = new $c_Lfarjs_app_filelist_service_FileListHistoryServiceImpl(this.Lfarjs_app_filelist_FileListModule__f_selectPatternDao);
this.Lfarjs_app_filelist_FileListModule__f_copyItemDao = new $c_Lfarjs_domain_dao_HistoryCopyItemDao(ctx, 50);
this.Lfarjs_app_filelist_FileListModule__f_copyItemService = new $c_Lfarjs_app_filelist_service_FileListHistoryServiceImpl(this.Lfarjs_app_filelist_FileListModule__f_copyItemDao);
this.Lfarjs_app_filelist_FileListModule__f_fileListServices = new $c_Lfarjs_filelist_FileListServices(this.Lfarjs_app_filelist_FileListModule__f_folderService, this.Lfarjs_app_filelist_FileListModule__f_mkDirService, this.Lfarjs_app_filelist_FileListModule__f_selectPatternService, this.Lfarjs_app_filelist_FileListModule__f_copyItemService);
this.Lfarjs_app_filelist_FileListModule__f_folderShortcutDao = new $c_Lfarjs_domain_dao_FolderShortcutDao(ctx);
this.Lfarjs_app_filelist_FileListModule__f_folderShortcutsService = new $c_Lfarjs_app_filelist_service_FolderShortcutsServiceImpl(this.Lfarjs_app_filelist_FileListModule__f_folderShortcutDao);
this.Lfarjs_app_filelist_FileListModule__f_fsServices = new $c_Lfarjs_fs_FSServices(this.Lfarjs_app_filelist_FileListModule__f_folderShortcutsService);
this.Lfarjs_app_filelist_FileListModule__f_fileViewHistoryDao = new $c_Lfarjs_domain_dao_FileViewHistoryDao(ctx, 150);
this.Lfarjs_app_filelist_FileListModule__f_fileViewHistoryService = new $c_Lfarjs_app_filelist_service_FileViewHistoryServiceImpl(this.Lfarjs_app_filelist_FileListModule__f_fileViewHistoryDao);
this.Lfarjs_app_filelist_FileListModule__f_fileServices = new $c_Lfarjs_file_FileServices(this.Lfarjs_app_filelist_FileListModule__f_fileViewHistoryService)
}
$c_Lfarjs_app_filelist_FileListModule.prototype = new $h_O();
$c_Lfarjs_app_filelist_FileListModule.prototype.constructor = $c_Lfarjs_app_filelist_FileListModule;
/** @constructor */
function $h_Lfarjs_app_filelist_FileListModule() {
/*<skip>*/
}
$h_Lfarjs_app_filelist_FileListModule.prototype = $c_Lfarjs_app_filelist_FileListModule.prototype;
var $d_Lfarjs_app_filelist_FileListModule = new $TypeData().initClass({
Lfarjs_app_filelist_FileListModule: 0
}, false, "farjs.app.filelist.FileListModule", {
Lfarjs_app_filelist_FileListModule: 1,
O: 1
});
$c_Lfarjs_app_filelist_FileListModule.prototype.$classData = $d_Lfarjs_app_filelist_FileListModule;
function $p_Lfarjs_app_filelist_FileListRoot$__plugins$lzycompute__sci_Seq($thiz) {
if ((!$thiz.Lfarjs_app_filelist_FileListRoot$__f_bitmap$0)) {
$m_s_package$();
var array = [$m_Lfarjs_viewer_quickview_QuickViewPlugin$(), $m_Lfarjs_archiver_ArchiverPlugin$(), $m_Lfarjs_viewer_ViewerPlugin$(), $m_Lfarjs_copymove_CopyMovePlugin$(), $m_Lfarjs_fs_FSPlugin$(), $m_Lfarjs_filelist_FileListUiPlugin$(), $m_Lfarjs_file_FilePlugin$()];
var elems = $ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), array);
$thiz.Lfarjs_app_filelist_FileListRoot$__f_farjs$app$filelist$FileListRoot$$plugins = $m_sci_Nil$().prependedAll__sc_IterableOnce__sci_List(elems);
$thiz.Lfarjs_app_filelist_FileListRoot$__f_bitmap$0 = true
};
return $thiz.Lfarjs_app_filelist_FileListRoot$__f_farjs$app$filelist$FileListRoot$$plugins
}
/** @constructor */
function $c_Lfarjs_app_filelist_FileListRoot$() {
this.Lfarjs_app_filelist_FileListRoot$__f_farjs$app$filelist$FileListRoot$$plugins = null;
this.Lfarjs_app_filelist_FileListRoot$__f_fileListComp = null;
this.Lfarjs_app_filelist_FileListRoot$__f_bitmap$0 = false;
$n_Lfarjs_app_filelist_FileListRoot$ = this;
var this$1 = $m_Lfarjs_app_filelist_FileListBrowser$();
this.Lfarjs_app_filelist_FileListRoot$__f_fileListComp = this$1.scommons$react$UiComponent$$reactClass__Lio_github_shogowada_scalajs_reactjs_classes_ReactClass()
}
$c_Lfarjs_app_filelist_FileListRoot$.prototype = new $h_O();
$c_Lfarjs_app_filelist_FileListRoot$.prototype.constructor = $c_Lfarjs_app_filelist_FileListRoot$;
/** @constructor */
function $h_Lfarjs_app_filelist_FileListRoot$() {
/*<skip>*/
}
$h_Lfarjs_app_filelist_FileListRoot$.prototype = $c_Lfarjs_app_filelist_FileListRoot$.prototype;
$c_Lfarjs_app_filelist_FileListRoot$.prototype.farjs$app$filelist$FileListRoot$$plugins__sci_Seq = (function() {
return ((!this.Lfarjs_app_filelist_FileListRoot$__f_bitmap$0) ? $p_Lfarjs_app_filelist_FileListRoot$__plugins$lzycompute__sci_Seq(this) : this.Lfarjs_app_filelist_FileListRoot$__f_farjs$app$filelist$FileListRoot$$plugins)
});
var $d_Lfarjs_app_filelist_FileListRoot$ = new $TypeData().initClass({
Lfarjs_app_filelist_FileListRoot$: 0
}, false, "farjs.app.filelist.FileListRoot$", {
Lfarjs_app_filelist_FileListRoot$: 1,
O: 1
});
$c_Lfarjs_app_filelist_FileListRoot$.prototype.$classData = $d_Lfarjs_app_filelist_FileListRoot$;
var $n_Lfarjs_app_filelist_FileListRoot$;
function $m_Lfarjs_app_filelist_FileListRoot$() {
if ((!$n_Lfarjs_app_filelist_FileListRoot$)) {
$n_Lfarjs_app_filelist_FileListRoot$ = new $c_Lfarjs_app_filelist_FileListRoot$()
};
return $n_Lfarjs_app_filelist_FileListRoot$
}
/** @constructor */
function $c_Lfarjs_app_raw_BetterSqlite3WebSQL$() {
/*<skip>*/
}
$c_Lfarjs_app_raw_BetterSqlite3WebSQL$.prototype = new $h_O();
$c_Lfarjs_app_raw_Bette