farjs-app
Version:
FAR.js - Cross-platform File and Archive Manager app in your terminal
1,274 lines • 1.3 MB
JavaScript
'use strict';
import * as $i_$002e$002e$002fapp$002fservice$002fHistoryProviderImpl$002emjs from "../app/service/HistoryProviderImpl.mjs";
import * as $i_$002e$002e$002fdao$002fFolderShortcutDao$002emjs from "../dao/FolderShortcutDao.mjs";
import * as $i_$002e$002e$002fdao$002fHistoryKindDao$002emjs from "../dao/HistoryKindDao.mjs";
import * as $i_$002e$002e$002ffile$002fFileEvent$002emjs from "../file/FileEvent.mjs";
import * as $i_$002e$002e$002ffile$002fFilePlugin$002emjs from "../file/FilePlugin.mjs";
import * as $i_$002e$002e$002ffilelist$002fFileListUiPlugin$002emjs from "../filelist/FileListUiPlugin.mjs";
import * as $i_$002e$002e$002ffs$002fFSServices$002emjs from "../fs/FSServices.mjs";
import * as $i_$002e$002e$002ffs$002fpopups$002fFolderShortcutsController$002emjs from "../fs/popups/FolderShortcutsController.mjs";
import * as $i_$002e$002e$002ffs$002fpopups$002fFolderShortcutsService$002emjs from "../fs/popups/FolderShortcutsService.mjs";
import * as $i_$002e$002e$002fviewer$002fViewItemsPopup$002emjs from "../viewer/ViewItemsPopup.mjs";
import * as $i_$002e$002e$002fviewer$002fViewerController$002emjs from "../viewer/ViewerController.mjs";
import * as $i_$002e$002e$002fviewer$002fViewerHeader$002emjs from "../viewer/ViewerHeader.mjs";
import * as $i_$002e$002e$002fviewer$002fquickview$002fQuickViewDir$002emjs from "../viewer/quickview/QuickViewDir.mjs";
import * as $i_$0040farjs$002fbetter$002dsqlite3$002dmigrate from "@farjs/better-sqlite3-migrate";
import * as $i_$0040farjs$002fbetter$002dsqlite3$002dwrapper from "@farjs/better-sqlite3-wrapper";
import * as $i_$0040farjs$002fblessed from "@farjs/blessed";
import * as $i_$0040farjs$002ffilelist$002fFileListActions$002emjs from "@farjs/filelist/FileListActions.mjs";
import * as $i_$0040farjs$002ffilelist$002fFileListEvent$002emjs from "@farjs/filelist/FileListEvent.mjs";
import * as $i_$0040farjs$002ffilelist$002fFileListPanel$002emjs from "@farjs/filelist/FileListPanel.mjs";
import * as $i_$0040farjs$002ffilelist$002fFileListPanelController$002emjs from "@farjs/filelist/FileListPanelController.mjs";
import * as $i_$0040farjs$002ffilelist$002fFileListPlugin$002emjs from "@farjs/filelist/FileListPlugin.mjs";
import * as $i_$0040farjs$002ffilelist$002fFileListState$002emjs from "@farjs/filelist/FileListState.mjs";
import * as $i_$0040farjs$002ffilelist$002fFileListStateReducer$002emjs from "@farjs/filelist/FileListStateReducer.mjs";
import * as $i_$0040farjs$002ffilelist$002fapi$002fFileListApi$002emjs from "@farjs/filelist/api/FileListApi.mjs";
import * as $i_$0040farjs$002ffilelist$002fapi$002fFileListCapability$002emjs from "@farjs/filelist/api/FileListCapability.mjs";
import * as $i_$0040farjs$002ffilelist$002fapi$002fFileListItem$002emjs from "@farjs/filelist/api/FileListItem.mjs";
import * as $i_$0040farjs$002ffilelist$002fhistory$002fHistoryProvider$002emjs from "@farjs/filelist/history/HistoryProvider.mjs";
import * as $i_$0040farjs$002ffilelist$002fsort$002fFileListSort$002emjs from "@farjs/filelist/sort/FileListSort.mjs";
import * as $i_$0040farjs$002ffilelist$002fsort$002fSortMode$002emjs from "@farjs/filelist/sort/SortMode.mjs";
import * as $i_$0040farjs$002ffilelist$002fstack$002fPanelStack$002emjs from "@farjs/filelist/stack/PanelStack.mjs";
import * as $i_$0040farjs$002ffilelist$002fstack$002fPanelStackItem$002emjs from "@farjs/filelist/stack/PanelStackItem.mjs";
import * as $i_$0040farjs$002ffilelist$002fstack$002fWithStack$002emjs from "@farjs/filelist/stack/WithStack.mjs";
import * as $i_$0040farjs$002ffilelist$002fstack$002fWithStacks$002emjs from "@farjs/filelist/stack/WithStacks.mjs";
import * as $i_$0040farjs$002ffilelist$002fstack$002fWithStacksProps$002emjs from "@farjs/filelist/stack/WithStacksProps.mjs";
import * as $i_$0040farjs$002ffilelist$002ftheme$002fFileListTheme$002emjs from "@farjs/filelist/theme/FileListTheme.mjs";
import * as $i_$0040farjs$002fui$002fButtonsPanel$002emjs from "@farjs/ui/ButtonsPanel.mjs";
import * as $i_$0040farjs$002fui$002fComboBox$002emjs from "@farjs/ui/ComboBox.mjs";
import * as $i_$0040farjs$002fui$002fProgressBar$002emjs from "@farjs/ui/ProgressBar.mjs";
import * as $i_$0040farjs$002fui$002fTextAlign$002emjs from "@farjs/ui/TextAlign.mjs";
import * as $i_$0040farjs$002fui$002fTextBox$002emjs from "@farjs/ui/TextBox.mjs";
import * as $i_$0040farjs$002fui$002fTextLine$002emjs from "@farjs/ui/TextLine.mjs";
import * as $i_$0040farjs$002fui$002fWithSize$002emjs from "@farjs/ui/WithSize.mjs";
import * as $i_$0040farjs$002fui$002fapp$002fAppRoot$002emjs from "@farjs/ui/app/AppRoot.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$002fSingleChars$002emjs from "@farjs/ui/border/SingleChars.mjs";
import * as $i_$0040farjs$002fui$002fmenu$002fBottomMenu$002emjs from "@farjs/ui/menu/BottomMenu.mjs";
import * as $i_$0040farjs$002fui$002fmenu$002fMenuBarTrigger$002emjs from "@farjs/ui/menu/MenuBarTrigger.mjs";
import * as $i_$0040farjs$002fui$002fmenu$002fMenuPopup$002emjs from "@farjs/ui/menu/MenuPopup.mjs";
import * as $i_$0040farjs$002fui$002fpopup$002fListPopup$002emjs from "@farjs/ui/popup/ListPopup.mjs";
import * as $i_$0040farjs$002fui$002fpopup$002fMessageBox$002emjs from "@farjs/ui/popup/MessageBox.mjs";
import * as $i_$0040farjs$002fui$002fpopup$002fMessageBoxAction$002emjs from "@farjs/ui/popup/MessageBoxAction.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$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$002fTheme$002emjs from "@farjs/ui/theme/Theme.mjs";
import * as $i_$0040farjs$002fui$002ftool$002fDevTool$002emjs from "@farjs/ui/tool/DevTool.mjs";
import * as $i_child$005fprocess from "child_process";
import * as $i_fs from "fs";
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 $p;
var $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 $Char(c) {
this.c = c;
}
$p = $Char.prototype;
$p.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 $objectClone(arg0) {
return Object.create(Object.getPrototypeOf(arg0), $getOwnPropertyDescriptors(arg0));
}
function $objectOrArrayClone(arg0) {
return (arg0.$classData.Z ? arg0.m() : $objectClone(arg0));
}
function $objectGetClass(arg0) {
switch ((typeof arg0)) {
case "string": {
return $d_T.l();
}
case "number": {
if ($isInt(arg0)) {
if ((((arg0 << 24) >> 24) === arg0)) {
return $d_jl_Byte.l();
} else if ((((arg0 << 16) >> 16) === arg0)) {
return $d_jl_Short.l();
} else {
return $d_jl_Integer.l();
}
} else if ($isFloat(arg0)) {
return $d_jl_Float.l();
} else {
return $d_jl_Double.l();
}
}
case "boolean": {
return $d_jl_Boolean.l();
}
case "undefined": {
return $d_jl_Void.l();
}
default: {
if ((arg0 instanceof $c_RTLong)) {
return $d_jl_Long.l();
} else if ((arg0 instanceof $Char)) {
return $d_jl_Character.l();
} else if ((!(!(arg0 && arg0.$classData)))) {
return arg0.$classData.l();
} 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 instanceof $c_RTLong)) {
return "java.lang.Long";
} else if ((arg0 instanceof $Char)) {
return "java.lang.Character";
} else if ((!(!(arg0 && arg0.$classData)))) {
return arg0.$classData.N;
} else {
return null.zS();
}
}
}
}
function $dp_codePointAt__I__I(instance, x0) {
if (((typeof instance) === "string")) {
return $f_T__codePointAt__I__I(instance, x0);
} else {
return instance.zI(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.r(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.r.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.u4(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.u();
} 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.u.call(instance);
}
}
}
}
function $dp_indexOf__I__I(instance, x0) {
if (((typeof instance) === "string")) {
return $f_T__indexOf__I__I(instance, x0);
} else {
return instance.zT(x0);
}
}
function $dp_lastIndexOf__I__I(instance, x0) {
if (((typeof instance) === "string")) {
return $f_T__lastIndexOf__I__I(instance, x0);
} else {
return instance.zV(x0);
}
}
function $dp_repeat__I__T(instance, x0) {
if (((typeof instance) === "string")) {
return $f_T__repeat__I__T(instance, x0);
} else {
return instance.zZ(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.A2(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.uE(x0, x1);
}
}
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.A6();
}
}
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 $cToS(arg0) {
return String.fromCharCode(arg0);
}
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() {
}
$p = $c_O.prototype;
$p.constructor = $c_O;
/** @constructor */
function $h_O() {
}
$h_O.prototype = $p;
$p.u = (function() {
return $systemIdentityHashCode(this);
});
$p.r = (function(that) {
return (this === that);
});
$p.p = (function() {
var i = this.u();
return (($objectClassName(this) + "@") + (+(i >>> 0.0)).toString(16));
});
$p.toString = (function() {
return this.p();
});
function $ac_O(arg) {
if (((typeof arg) === "number")) {
this.a = new Array(arg);
for (var i = 0; (i < arg); (i++)) {
this.a[i] = null;
}
} else {
this.a = arg;
}
}
$p = $ac_O.prototype = new $h_O();
$p.constructor = $ac_O;
$p.w = (function(srcPos, dest, destPos, length) {
$arraycopyGeneric(this.a, srcPos, dest.a, destPos, length);
});
$p.m = (function() {
return new $ac_O(this.a.slice());
});
function $ah_O() {
}
$ah_O.prototype = $p;
function $ac_Z(arg) {
if (((typeof arg) === "number")) {
this.a = new Array(arg);
for (var i = 0; (i < arg); (i++)) {
this.a[i] = false;
}
} else {
this.a = arg;
}
}
$p = $ac_Z.prototype = new $h_O();
$p.constructor = $ac_Z;
$p.w = (function(srcPos, dest, destPos, length) {
$arraycopyGeneric(this.a, srcPos, dest.a, destPos, length);
});
$p.m = (function() {
return new $ac_Z(this.a.slice());
});
function $ac_C(arg) {
if (((typeof arg) === "number")) {
this.a = new Uint16Array(arg);
} else {
this.a = arg;
}
}
$p = $ac_C.prototype = new $h_O();
$p.constructor = $ac_C;
$p.w = (function(srcPos, dest, destPos, length) {
dest.a.set(this.a.subarray(srcPos, ((srcPos + length) | 0)), destPos);
});
$p.m = (function() {
return new $ac_C(this.a.slice());
});
function $ac_B(arg) {
if (((typeof arg) === "number")) {
this.a = new Int8Array(arg);
} else {
this.a = arg;
}
}
$p = $ac_B.prototype = new $h_O();
$p.constructor = $ac_B;
$p.w = (function(srcPos, dest, destPos, length) {
dest.a.set(this.a.subarray(srcPos, ((srcPos + length) | 0)), destPos);
});
$p.m = (function() {
return new $ac_B(this.a.slice());
});
function $ac_S(arg) {
if (((typeof arg) === "number")) {
this.a = new Int16Array(arg);
} else {
this.a = arg;
}
}
$p = $ac_S.prototype = new $h_O();
$p.constructor = $ac_S;
$p.w = (function(srcPos, dest, destPos, length) {
dest.a.set(this.a.subarray(srcPos, ((srcPos + length) | 0)), destPos);
});
$p.m = (function() {
return new $ac_S(this.a.slice());
});
function $ac_I(arg) {
if (((typeof arg) === "number")) {
this.a = new Int32Array(arg);
} else {
this.a = arg;
}
}
$p = $ac_I.prototype = new $h_O();
$p.constructor = $ac_I;
$p.w = (function(srcPos, dest, destPos, length) {
dest.a.set(this.a.subarray(srcPos, ((srcPos + length) | 0)), destPos);
});
$p.m = (function() {
return new $ac_I(this.a.slice());
});
function $ac_J(arg) {
if (((typeof arg) === "number")) {
this.a = new Array(arg);
for (var i = 0; (i < arg); (i++)) {
this.a[i] = $L0;
}
} else {
this.a = arg;
}
}
$p = $ac_J.prototype = new $h_O();
$p.constructor = $ac_J;
$p.w = (function(srcPos, dest, destPos, length) {
$arraycopyGeneric(this.a, srcPos, dest.a, destPos, length);
});
$p.m = (function() {
return new $ac_J(this.a.slice());
});
function $ac_F(arg) {
if (((typeof arg) === "number")) {
this.a = new Float32Array(arg);
} else {
this.a = arg;
}
}
$p = $ac_F.prototype = new $h_O();
$p.constructor = $ac_F;
$p.w = (function(srcPos, dest, destPos, length) {
dest.a.set(this.a.subarray(srcPos, ((srcPos + length) | 0)), destPos);
});
$p.m = (function() {
return new $ac_F(this.a.slice());
});
function $ac_D(arg) {
if (((typeof arg) === "number")) {
this.a = new Float64Array(arg);
} else {
this.a = arg;
}
}
$p = $ac_D.prototype = new $h_O();
$p.constructor = $ac_D;
$p.w = (function(srcPos, dest, destPos, length) {
dest.a.set(this.a.subarray(srcPos, ((srcPos + length) | 0)), destPos);
});
$p.m = (function() {
return new $ac_D(this.a.slice());
});
function $TypeData() {
this.C = (void 0);
this.n = null;
this.O = null;
this.B = null;
this.D = 0;
this.z = null;
this.E = "";
this.L = (void 0);
this.A = (void 0);
this.F = (void 0);
this.w = (void 0);
this.J = false;
this.N = "";
this.X = false;
this.Y = false;
this.Z = false;
this.I = (void 0);
}
$p = $TypeData.prototype;
$p.p = (function(zero, arrayEncodedName, displayName, arrayClass, typedArrayClass) {
this.n = ({});
this.z = zero;
this.E = arrayEncodedName;
var self = this;
this.F = ((that) => (that === self));
this.N = displayName;
this.X = true;
this.I = ((obj) => false);
if ((arrayClass !== (void 0))) {
this.A = new $TypeData().y(this, arrayClass, typedArrayClass);
}
return this;
});
$p.i = (function(kindOrCtor, fullName, ancestors, isInstance) {
var internalName = Object.getOwnPropertyNames(ancestors)[0];
this.n = ancestors;
this.E = (("L" + fullName) + ";");
this.F = ((that) => (!(!that.n[internalName])));
this.J = (kindOrCtor === 2);
this.N = fullName;
this.Y = (kindOrCtor === 1);
this.I = (isInstance || ((obj) => (!(!((obj && obj.$classData) && obj.$classData.n[internalName])))));
if (((typeof kindOrCtor) !== "number")) {
kindOrCtor.prototype.$classData = this;
}
return this;
});
$p.y = (function(componentData, arrayClass, typedArrayClass, isAssignableFromFun) {
arrayClass.prototype.$classData = this;
var name = ("[" + componentData.E);
this.C = arrayClass;
this.n = ({
D: 1,
a: 1
});
this.O = componentData;
this.B = componentData;
this.D = 1;
this.E = name;
this.N = name;
this.Z = true;
var self = this;
this.F = (isAssignableFromFun || ((that) => (self === that)));
this.w = (typedArrayClass ? ((array) => new arrayClass(new typedArrayClass(array))) : ((array) => new arrayClass(array)));
this.I = ((obj) => (obj instanceof arrayClass));
return this;
});
$p.a = (function(componentData) {
function ArrayClass(arg) {
if (((typeof arg) === "number")) {
this.a = new Array(arg);
for (var i = 0; (i < arg); (i++)) {
this.a[i] = null;
}
} else {
this.a = arg;
}
}
var $p = ArrayClass.prototype = new $ah_O();
$p.constructor = ArrayClass;
$p.w = (function(srcPos, dest, destPos, length) {
$arraycopyGeneric(this.a, srcPos, dest.a, destPos, length);
});
$p.m = (function() {
return new ArrayClass(this.a.slice());
});
$p.$classData = this;
var arrayBase = (componentData.B || componentData);
var arrayDepth = (componentData.D + 1);
var name = ("[" + componentData.E);
this.C = ArrayClass;
this.n = ({
D: 1,
a: 1
});
this.O = componentData;
this.B = arrayBase;
this.D = arrayDepth;
this.E = name;
this.N = name;
this.Z = true;
var isAssignableFromFun = ((that) => {
var thatDepth = that.D;
return ((thatDepth === arrayDepth) ? arrayBase.F(that.B) : ((thatDepth > arrayDepth) && (arrayBase === $d_O)));
});
this.F = isAssignableFromFun;
this.w = ((array) => new ArrayClass(array));
var self = this;
this.I = ((obj) => {
var data = (obj && obj.$classData);
return ((!(!data)) && ((data === self) || isAssignableFromFun(data)));
});
return this;
});
$p.r = (function() {
if ((!this.A)) {
this.A = new $TypeData().a(this);
}
return this.A;
});
$p.l = (function() {
if ((!this.L)) {
this.L = new $c_jl_Class(this);
}
return this.L;
});
$p.R = (function(that) {
return ((this === that) || this.F(that));
});
$p.S = (function() {
return (this.P ? this.P.l() : null);
});
$p.Q = (function() {
return (this.O ? this.O.l() : null);
});
$p.U = (function(length) {
if ((this === $d_V)) {
throw $ct_jl_IllegalArgumentException__(new $c_jl_IllegalArgumentException());
}
return new (this.r().C)(length);
});
function $isArrayOf_O(obj, depth) {
var data = (obj && obj.$classData);
if ((!data)) {
return false;
} else {
var arrayDepth = data.D;
return ((arrayDepth === depth) ? (!data.B.X) : (arrayDepth > depth));
}
}
function $isArrayOf_Z(obj, depth) {
return (!(!(((obj && obj.$classData) && (obj.$classData.D === depth)) && (obj.$classData.B === $d_Z))));
}
function $isArrayOf_C(obj, depth) {
return (!(!(((obj && obj.$classData) && (obj.$classData.D === depth)) && (obj.$classData.B === $d_C))));
}
function $isArrayOf_B(obj, depth) {
return (!(!(((obj && obj.$classData) && (obj.$classData.D === depth)) && (obj.$classData.B === $d_B))));
}
function $isArrayOf_S(obj, depth) {
return (!(!(((obj && obj.$classData) && (obj.$classData.D === depth)) && (obj.$classData.B === $d_S))));
}
function $isArrayOf_I(obj, depth) {
return (!(!(((obj && obj.$classData) && (obj.$classData.D === depth)) && (obj.$classData.B === $d_I))));
}
function $isArrayOf_J(obj, depth) {
return (!(!(((obj && obj.$classData) && (obj.$classData.D === depth)) && (obj.$classData.B === $d_J))));
}
function $isArrayOf_F(obj, depth) {
return (!(!(((obj && obj.$classData) && (obj.$classData.D === depth)) && (obj.$classData.B === $d_F))));
}
function $isArrayOf_D(obj, depth) {
return (!(!(((obj && obj.$classData) && (obj.$classData.D === depth)) && (obj.$classData.B === $d_D))));
}
var $d_O = new $TypeData();
$d_O.n = ({});
$d_O.E = "Ljava.lang.Object;";
$d_O.F = ((that) => (!that.X));
$d_O.N = "java.lang.Object";
$d_O.I = ((obj) => (obj !== null));
$d_O.A = new $TypeData().y($d_O, $ac_O, (void 0), ((that) => {
var thatDepth = that.D;
return ((thatDepth === 1) ? (!that.B.X) : (thatDepth > 1));
}));
$c_O.prototype.$classData = $d_O;
var $d_V = new $TypeData().p((void 0), "V", "void", (void 0), (void 0));
var $d_Z = new $TypeData().p(false, "Z", "boolean", $ac_Z, (void 0));
var $d_C = new $TypeData().p(0, "C", "char", $ac_C, Uint16Array);
var $d_B = new $TypeData().p(0, "B", "byte", $ac_B, Int8Array);
var $d_S = new $TypeData().p(0, "S", "short", $ac_S, Int16Array);
var $d_I = new $TypeData().p(0, "I", "int", $ac_I, Int32Array);
var $d_J = new $TypeData().p(null, "J", "long", $ac_J, (void 0));
var $d_F = new $TypeData().p(0.0, "F", "float", $ac_F, Float32Array);
var $d_D = new $TypeData().p(0.0, "D", "double", $ac_D, Float64Array);
function $p_Lfarjs_app_FarjsApp$__prepareDB__s_concurrent_Future($thiz) {
return $m_sjs_js_Thenable$ThenableOps$().ao($m_Lfarjs_fs_FSFileListActions$().api.mkDirs([...$m_sjsr_Compat$().cd($m_Lfarjs_app_FarjsData$().u5())])).a1(new $c_sjsr_AnonFunction1(((x$4$2$2) => $ct_T2__O__O__(new $c_T2(), x$4$2$2, new $i_$0040farjs$002fbetter$002dsqlite3$002dwrapper.default($m_Lfarjs_app_FarjsData$().xK())))), $m_s_concurrent_ExecutionContext$().C()).ac(new $c_sjsr_AnonFunction1(((x$6$2$2) => {
if ((x$6$2$2 !== null)) {
var db$1 = x$6$2$2.E();
return $m_Lfarjs_app_FarjsDBMigrations$().vU(db$1).a1(new $c_sjsr_AnonFunction1(((x$5$2$2) => db$1)), $m_s_concurrent_ExecutionContext$().C());
} else {
throw new $c_s_MatchError(x$6$2$2);
}
})), $m_s_concurrent_ExecutionContext$().C()).jp(new $c_Lfarjs_app_FarjsApp$$anonfun$prepareDB$4(), $m_s_concurrent_ExecutionContext$().C());
}
function $ps_Lfarjs_app_FarjsApp$__createRenderer$1__sjs_js_Function2() {
return $i_react$002dblessed.default.createBlessedRenderer($i_$0040farjs$002fblessed.default);
}
/** @constructor */
function $c_Lfarjs_app_FarjsApp$() {
this.hU = null;
$n_Lfarjs_app_FarjsApp$ = this;
this.hU = $m_Lscommons_nodejs_package$().oG();
}
$p = $c_Lfarjs_app_FarjsApp$.prototype = new $h_O();
$p.constructor = $c_Lfarjs_app_FarjsApp$;
/** @constructor */
function $h_Lfarjs_app_FarjsApp$() {
}
$h_Lfarjs_app_FarjsApp$.prototype = $p;
$p.z9 = (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 = $ps_Lfarjs_app_FarjsApp$__createRenderer$1__sjs_js_Function2();
screen.savedConsoleLog = this.hU.console.log;
screen.savedConsoleError = this.hU.console.error;
screen.key(["C-e"], ((arg1$2, arg2$2) => {
screen.destroy();
$m_Lfarjs_app_FarjsApp$().hU.console.log = screen.savedConsoleLog;
$m_Lfarjs_app_FarjsApp$().hU.console.error = screen.savedConsoleError;
var x1 = ((onExit === (void 0)) ? $m_s_None$() : new $c_s_Some(onExit));
if ((x1 instanceof $c_s_Some)) {
var onExit$1 = x1.aA;
onExit$1();
} else if (($m_s_None$() === x1)) {
$f_Lscommons_nodejs_Process__exit__I__V($m_Lscommons_nodejs_package$().kU(), 0);
} else {
throw new $c_s_MatchError(x1);
}
}));
var value = screen.savedRenderer;
var renderer = ((value === (void 0)) ? $ps_Lfarjs_app_FarjsApp$__createRenderer$1__sjs_js_Function2() : value);
$i_$0040farjs$002fui$002ftask$002fTaskManager$002emjs.default.errorHandler = $m_Lfarjs_ui_task_TaskError$().qF;
$m_Lscommons_react_package$().o();
var reactClass = $i_$0040farjs$002fui$002fapp$002fAppRoot$002emjs.default;
renderer(new $c_Lio_github_shogowada_scalajs_reactjs_VirtualDOM$VirtualDOMElements$ReactClassElementSpec($m_Lio_github_shogowada_scalajs_reactjs_VirtualDOM$().B(), reactClass).x(new $c_sjsr_WrappedVarArgs([$m_Lscommons_react_package$().i().G().F($m_Lfarjs_ui_app_AppRootProps$().wj(((arg1$2$1) => {
if ((onReady !== (void 0))) {
onReady();
}
return $m_sjs_js_JSConverters$JSRichFuture$().bQ($p_Lfarjs_app_FarjsApp$__prepareDB__s_concurrent_Future($m_Lfarjs_app_FarjsApp$()).a1(new $c_sjsr_AnonFunction1(((db$2$2) => {
var fileListModule = new $c_Lfarjs_app_filelist_FileListModule(db$2$2);
var mainUi = new $c_Lfarjs_app_filelist_FileListRoot(arg1$2$1, fileListModule, $i_$0040farjs$002fui$002fportal$002fWithPortals$002emjs.default.create(screen)).W();
return $m_Lfarjs_ui_app_LoadResult$().w0(($m_sr_BoxesRunTime$().e(screen.terminal, "xterm-256color") ? $i_$0040farjs$002ffilelist$002ftheme$002fFileListTheme$002emjs.default.xterm256Theme : $i_$0040farjs$002ffilelist$002ftheme$002fFileListTheme$002emjs.default.defaultTheme), mainUi);
})), $m_s_concurrent_ExecutionContext$().C()), $m_s_concurrent_ExecutionContext$().C());
}), (showDevTools ? $i_$0040farjs$002fui$002ftool$002fDevTool$002emjs.default.Logs : $i_$0040farjs$002fui$002ftool$002fDevTool$002emjs.default.Hidden), $i_$0040farjs$002ffilelist$002ftheme$002fFileListTheme$002emjs.default.defaultTheme))]), $m_sci_Nil$()), screen);
return screen;
});
$p.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$().z9(prep0, prep1, prep2);
});
var $d_Lfarjs_app_FarjsApp$ = new $TypeData().i($c_Lfarjs_app_FarjsApp$, "farjs.app.FarjsApp$", ({
cU: 1
}));
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$() {
}
$p = $c_Lfarjs_app_FarjsDBMigrations$.prototype = new $h_O();
$p.constructor = $c_Lfarjs_app_FarjsDBMigrations$;
/** @constructor */
function $h_Lfarjs_app_FarjsDBMigrations$() {
}
$h_Lfarjs_app_FarjsDBMigrations$.prototype = $p;
$p.vU = (function(db) {
var url = new $i_url.URL("../dao/migrations/bundle.json", import.meta.url);
return $m_sjs_js_Thenable$ThenableOps$().ao($i_$0040farjs$002fbetter$002dsqlite3$002dmigrate.readBundle(url)).ac(new $c_sjsr_AnonFunction1(((bundle$2$2) => $m_sjs_js_Thenable$ThenableOps$().ao($i_$0040farjs$002fbetter$002dsqlite3$002dmigrate.runBundle(db, bundle$2$2)).a1(new $c_sjsr_AnonFunction1(((x$1$2$2) => (void 0))), $m_sjs_concurrent_JSExecutionContext$Implicits$().J))), $m_sjs_concurrent_JSExecutionContext$Implicits$().J);
});
var $d_Lfarjs_app_FarjsDBMigrations$ = new $TypeData().i($c_Lfarjs_app_FarjsDBMigrations$, "farjs.app.FarjsDBMigrations$", ({
cW: 1
}));
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.jw = platform;
return $thiz;
}
/** @constructor */
function $c_Lfarjs_app_FarjsData() {
this.jw = null;
}
$p = $c_Lfarjs_app_FarjsData.prototype = new $h_O();
$p.constructor = $c_Lfarjs_app_FarjsData;
/** @constructor */
function $h_Lfarjs_app_FarjsData() {
}
$h_Lfarjs_app_FarjsData.prototype = $p;
$p.xK = (function() {
return $m_Lscommons_nodejs_package$().bP().join(...$m_sjsr_Compat$().cd($f_sc_StrictOptimizedSeqOps__appended__O__O(this.u5(), "farjs.db")));
});
$p.u5 = (function() {
var home = $m_Lscommons_nodejs_package$().yD().homedir();
if ($m_sr_BoxesRunTime$().e(this.jw, "darwin")) {
return $m_sci_Nil$().bZ(new $c_sjsr_WrappedVarArgs([home, "Library", "Application Support", $m_Lfarjs_app_FarjsData$().hV]));
} else if ($m_sr_BoxesRunTime$().e(this.jw, "win32")) {
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)) {
return $m_sci_Nil$().bZ(new $c_sjsr_WrappedVarArgs([x1.aA, $m_Lfarjs_app_FarjsData$().hV]));
} else if (($m_s_None$() === x1)) {
return $m_sci_Nil$().bZ(new $c_sjsr_WrappedVarArgs([home, ("." + $m_Lfarjs_app_FarjsData$().hV)]));
} else {
throw new $c_s_MatchError(x1);
}
} else {
return $m_sci_Nil$().bZ(new $c_sjsr_WrappedVarArgs([home, ".local", "share", $m_Lfarjs_app_FarjsData$().hV]));
}
});
/** @constructor */
function $c_Lfarjs_app_filelist_FileListModule(db) {
this.pn = null;
this.po = null;
this.pk = null;
this.pl = null;
this.pm = null;
this.pn = (0, $i_$002e$002e$002fdao$002fHistoryKindDao$002emjs.default)(db);
this.po = (0, $i_$002e$002e$002fapp$002fservice$002fHistoryProviderImpl$002emjs.default)(db, this.pn);
this.pk = (0, $i_$002e$002e$002fdao$002fFolderShortcutDao$002emjs.default)(db);
this.pl = (0, $i_$002e$002e$002ffs$002fpopups$002fFolderShortcutsService$002emjs.default)(this.pk);
this.pm = (() => {
var outer = null;
outer = this;
var this$1 = ({});
this$1.folderShortcuts = null;
this$1.folderShortcuts = outer.pl;
return this$1;
})();
}
$p = $c_Lfarjs_app_filelist_FileListModule.prototype = new $h_O();
$p.constructor = $c_Lfarjs_app_filelist_FileListModule;
/** @constructor */
function $h_Lfarjs_app_filelist_FileListModule() {
}
$h_Lfarjs_app_filelist_FileListModule.prototype = $p;
var $d_Lfarjs_app_filelist_FileListModule = new $TypeData().i($c_Lfarjs_app_filelist_FileListModule, "farjs.app.filelist.FileListModule", ({
d3: 1
}));
function $p_Lfarjs_app_filelist_FileListRoot$__plugins$lzycompute__sci_Seq($thiz) {
if ((!$thiz.ld)) {
$thiz.le = $m_sci_Nil$().bZ(new $c_sjsr_WrappedVarArgs([$m_Lfarjs_viewer_quickview_QuickViewPlugin$(), $m_Lfarjs_archiver_ArchiverPlugin$(), $m_Lfarjs_viewer_ViewerPlugin$(), $m_Lfarjs_copymove_CopyMovePlugin$(), $m_Lfarjs_fs_FSPlugin$(), $i_$002e$002e$002ffilelist$002fFileListUiPlugin$002emjs.default, $i_$002e$002e$002ffile$002fFilePlugin$002emjs.default]));
$thiz.ld = true;
}
return $thiz.le;
}
/** @constructor */
function $c_Lfarjs_app_filelist_FileListRoot$() {
this.le = null;
this.pr = null;
this.ld = false;
$n_Lfarjs_app_filelist_FileListRoot$ = this;
this.pr = $m_Lfarjs_app_filelist_FileListBrowser$().W();
}
$p = $c_Lfarjs_app_filelist_FileListRoot$.prototype = new $h_O();
$p.constructor = $c_Lfarjs_app_filelist_FileListRoot$;
/** @constructor */
function $h_Lfarjs_app_filelist_FileListRoot$() {
}
$h_Lfarjs_app_filelist_FileListRoot$.prototype = $p;
$p.xu = (function() {
return ((!this.ld) ? $p_Lfarjs_app_filelist_FileListRoot$__plugins$lzycompute__sci_Seq(this) : this.le);
});
var $d_Lfarjs_app_filelist_FileListRoot$ = new $TypeData().i($c_Lfarjs_app_filelist_FileListRoot$, "farjs.app.filelist.FileListRoot$", ({
d5: 1
}));
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_archiver_AddToArchPopupProps$() {
}
$p = $c_Lfarjs_archiver_AddToArchPopupProps$.prototype = new $h_O();
$p.constructor = $c_Lfarjs_archiver_AddToArchPopupProps$;
/** @constructor */
function $h_Lfarjs_archiver_AddToArchPopupProps$() {
}
$h_Lfarjs_archiver_AddToArchPopupProps$.prototype = $p;
$p.w6 = (function(zipName, action, onAction, onCancel) {
return ({
"zipName": zipName,
"action": action,
"onAction": onAction,
"onCancel": onCancel
});
});
var $d_Lfarjs_archiver_AddToArchPopupProps$ = new $TypeData().i($c_Lfarjs_archiver_AddToArchPopupProps$, "farjs.archiver.AddToArchPopupProps$", ({
d8: 1
}));
var $n_Lfarjs_archiver_AddToArchPopupProps$;
function $m_Lfarjs_archiver_AddToArchPopupProps$() {
if ((!$n_Lfarjs_archiver_AddToArchPopupProps$)) {
$n_Lfarjs_archiver_AddToArchPopupProps$ = new $c_Lfarjs_archiver_AddToArchPopupProps$();
}
return $n_Lfarjs_archiver_AddToArchPopupProps$;
}
/** @constructor */
function $c_Lfarjs_archiver_ArchiverPluginUi$() {
this.pC = null;
$n_Lfarjs_archiver_ArchiverPluginUi$ = this;
this.pC = $m_Lfarjs_archiver_AddToArchController$();
}
$p = $c_Lfarjs_archiver_ArchiverPluginUi$.prototype = new $h_O();
$p.constructor = $c_Lfarjs_archiver_ArchiverPluginUi$;
/** @constructor */
function $h_Lfarjs_archiver_ArchiverPluginUi$() {
}
$h_Lfarjs_archiver_ArchiverPluginUi$.prototype = $p;
var $d_Lfarjs_archiver_ArchiverPluginUi$ = new $TypeData().i($c_Lfarjs_archiver_ArchiverPluginUi$, "farjs.archiver.ArchiverPluginUi$", ({
da: 1
}));
var $n_Lfarjs_archiver_ArchiverPluginUi$;
function $m_Lfarjs_archiver_ArchiverPluginUi$() {
if ((!$n_Lfarjs_archiver_ArchiverPluginUi$)) {
$n_Lfarjs_archiver_ArchiverPluginUi$ = new $c_Lfarjs_archiver_ArchiverPluginUi$();
}
return $n_Lfarjs_archiver_ArchiverPluginUi$;
}
function $p_Lfarjs_archiver_DateTimeUtil$__MMddyyyyTimeRegex$lzycompute__s_util_matching_Regex($thiz) {
if (((((1 & $thiz.dl) << 24) >> 24) === 0)) {
$thiz.ll = $ct_s_util_matching_Regex__T__sci_Seq__(new $c_s_util_matching_Regex(), "(\\d{2})-(\\d{2})-(\\d{4}) (\\d{2}):(\\d{2})", $m_sci_Nil$());
$thiz.dl = (((1 | $thiz.dl) << 24) >> 24);
}
return $thiz.ll;
}
function $p_Lfarjs_archiver_DateTimeUtil$__MMddyyyyTimeRegex__s_util_matching_Regex($thiz) {
return (((((1 & $thiz.dl) << 24) >> 24) === 0) ? $p_Lfarjs_archiver_DateTimeUtil$__MMddyyyyTimeRegex$lzycompute__s_util_matching_Regex($thiz) : $thiz.ll);
}
function $p_Lfarjs_archiver_DateTimeUtil$__ddMMyyTimeRegex$lzycompute__s_util_matching_Regex($thiz) {
if (((((2 & $thiz.dl) << 24) >> 24) === 0)) {
$thiz.lm = $ct_s_util_matching_Regex__T__sci_Seq__(new $c_s_util_matching_Regex(), "(\\d{2})\\.(\\d{2})\\.(\\d{2}) (\\d{2}):(\\d{2})", $m_sci_Nil$());
$thiz.dl = (((2 | $thiz.dl) << 24) >> 24);
}
return $thiz.lm;
}
function $p_Lfarjs_archiver_DateTimeUtil$__ddMMyyTimeRegex__s_util_matching_Regex($thiz) {
return (((((2 & $thiz.dl) << 24) >> 24) === 0) ? $p_Lfarjs_archiver_DateTimeUtil$__ddMMyyTimeRegex$lzycompute__s_util_matching_Regex($thiz) : $thiz.lm);
}
function $p_Lfarjs_archiver_DateTimeUtil$__yyyyMMddHHmmssRegex$lzycompute__s_util_matching_Regex($thiz) {
if (((((4 & $thiz.dl) << 24) >> 24) === 0)) {
$thiz.ln = $ct_s_util_matching_Regex__T__sci_Seq__(new $c_s_util_matching_Regex(), "(\\d{4})(\\d{2})(\\d{2})\\.(\\d{2})(\\d{2})(\\d{2})", $m_sci_Nil$());
$thiz.dl = (((4 | $thiz.dl) << 24) >> 24);
}
return $thiz.ln;
}
function $p_Lfarjs_archiver_DateTimeUtil$__yyyyMMddHHmmssRegex__s_util_matching_Regex($thiz) {
return (((((4 & $thiz.dl) << 24) >> 24) === 0) ? $p_Lfarjs_archiver_DateTimeUtil$__yyyyMMddHHmmssRegex$lzycompute__s_util_matching_Regex($thiz) : $thiz.ln);
}
function $p_Lfarjs_archiver_DateTimeUtil$__MMddyyyyTime$1__T__s_Option($thiz, input$1) {
var this$2 = new $c_s_Option$WithFilter($p_Lfarjs_archiver_DateTimeUtil$__MMddyyyyTimeRegex__s_util_matching_Regex($thiz).kG(input$1), new $c_sjsr_AnonFunction1(((check$ifrefutable$1$2$2) => {
if ((check$ifrefutable$1$2$2 !== null)) {
var o7 = $p_Lfarjs_archiver_DateTimeUtil$__MMddyyyyTimeRegex__s_util_matching_Regex($m_Lfarjs_archiver_DateTimeUtil$()).fI(check$ifrefutable$1$2$2);
if (((!o7.b()) && ((o7.h() !== null) && (o7.h().b7(5) === 0)))) {
return true;
}
}
return false;
})));
var this$3 = this$2.gY;
var p$1 = this$2.gZ;
var this$4 = ((this$3.b() || (!(!p$1.d(this$3.h())))) ? this$3 : $m_s_None$());
if (this$4.b()) {
return $m_s_None$();
} else {
var arg1 = this$4.h();
matchEnd4$1: {
var $x_1;
if ((arg1 !== null)) {
var o7$1 = $p_Lfarjs_archiver_DateTimeUtil$__MMddyyyyTimeRegex__s_util_matching_Regex($m_Lfarjs_archiver_DateTimeUtil$()).fI(arg1);
if (((!o7$1.b()) && ((o7$1.h() !== null) && (o7$1.h().b7(5) === 0)))) {
var month = $f_sc_LinearSeqOps__apply__I__O(o7$1.h(), 0);
var date = $f_sc_LinearSeqOps__apply__I__O(o7$1.h(), 1);
var year = $f_sc_LinearSeqOps__apply__I__O(o7$1.h(), 2);
var hours = $f_sc_LinearSeqOps__apply__I__O(o7$1.h(), 3);
var minutes = $f_sc_LinearSeqOps__apply__I__O(o7$1.h(), 4);
var $x_1 = new $c_T6($m_jl_Integer$().cc(year, 10), $m_jl_Integer$().cc(month, 10), $m_jl_Integer$().cc(date, 10), $m_jl_Integer$().cc(hours, 10), $m_jl_Integer$().cc(minutes, 10), 0);
break matchEnd4$1;
}
}
throw new $c_s_MatchError(arg1);
}
return new $c_s_Some($x_1);
}
}
function $p_Lfarjs_archiver_DateTimeUtil$__ddMMyyTime$1__T__s_Option($thiz, input$1) {
var this$2 = new $c_s_Option$WithFilter($p_Lfarjs_archiver_DateTimeUtil$__ddMMyyTimeRegex__s_util_matching_Regex($thiz).kG(input$1), new $c_sjsr_AnonFunction1(((check$ifrefutable$2$2$2) => {
if ((check$ifrefutable$2$2$2 !== null)) {
var o7 = $p_Lfarjs_archiver_DateTimeUtil$__ddMMyyTimeRegex__s_util_matching_Regex($m_Lfarjs_archiver_DateTimeUtil$()).fI(check$ifrefutable$2$2$2);
if (((!o7.b()) && ((o7.h() !== null) && (o7.h().b7(5) === 0)))) {
return true;
}
}
return false;
})));
var this$3 = this$2.gY;
var p$1 = this$2.gZ;
var this$4 = ((this$3.b() || (!(!p$1.d(this$3.h())))) ? this$3 : $m_s_None$());
if (this$4.b()) {
return $m_s_None$();
} else {
var arg1 = this$4.h();
matchEnd4$1: {
var $x_1;
if ((arg1 !== null)) {
var o7$1 = $p_Lfarjs_archiver_DateTimeUtil$__ddMMyyTimeRegex__s_util_matching_Regex($m_Lfarjs_archiver_DateTimeUtil$()).fI(arg1);
if (((!o7$1.b()) && ((o7$1.h() !== null) && (o7$1.h().b7(5) === 0)))) {
var date = $f_sc_LinearSeqOps__apply__I__O(o7$1.h(), 0);
var month = $f_sc_LinearSeqOps__apply__I__O(o7$1.h(), 1);
var year = $f_sc_LinearSeqOps__apply__I__O(o7$1.h(), 2);
var hours = $f_sc_LinearSeqOps__apply__I__O(o7$1.h(), 3);
var minutes = $f_sc_LinearSeqOps__apply__I__O(o7$1.h(), 4);
var $x_1 = new $c_T6($m_jl_Integer$().cc(year, 10), $m_jl_Integer$().cc(month, 10), $m_jl_Integer$().cc(date, 10), $m_jl_Integer$().cc(hours, 10), $m_jl_Integer$().cc(minutes, 10), 0);
break matchEnd4$1;
}
}
throw new $c_s_MatchError(arg1);
}
return new $c_s_Some($x_1);
}
}
function $p_Lfarjs_archiver_DateTimeUtil$__yyyyMMddHHmmss$1__T__s_Option($thiz, input$1) {
var this$2 = new $c_s_Option$WithFilter($p_Lfarjs_archiver_DateTimeUtil$__yyyyMMddHHmmssRegex__s_util_matching_Regex($thiz).kG(input$1), new $c_sjsr_AnonFunction1(((check$ifrefutable$3$2$2) => {
if ((check$ifrefutable$3$2$2 !== null)) {
var o7 = $p_Lfarjs_archiver_DateTimeUtil$__yyyyMMddHHmmssRegex__s_util_matching_Regex($m_Lfarjs_archiver_DateTimeUtil$()).fI(check$ifrefutable$3$2$2);
if (((!o7.b()) && ((o7.h() !== null) && (o7.h().b7(6) === 0)))) {
return true;
}
}
return false;
})));
var this$3 = this$2.gY;
var p$1 = this$2.gZ;
var this$4 = ((this$3.b() || (!(!p$1.d(this$3.h())))) ? this$3 : $m_s_None$());
if (this$4.b()) {
return $m_s_None$();
} else {
var arg1 = this$4.h();
matchEnd4$1: {
var $x_1;
if ((arg1 !== null)) {
var o7$1 = $p_Lfarjs_archiver_DateTimeUtil$__yyyyMMddHHmmssRegex__s_util_matching_Regex($m_Lfarjs_archiver_DateTimeUtil$()).fI(arg1);
if (((!o7$1.b()) && ((o7$1.h() !== null) && (o7$1.h().b7(6) === 0)))) {
var year = $f_sc_LinearSeqOps__apply__I__O(o7$1.h(), 0);
var month = $f_sc_LinearSeqOps__apply__I__O(o7$1.h(), 1);
var date = $f_sc_LinearSeqOps__apply__I__O(o7$1.h(), 2);
var hours = $f_sc_LinearSeqOps__apply__I__O(o7$1.h(), 3);
var minutes = $f_sc_LinearSeqOps__apply__I__O(o7$1.h(), 4);
var seconds = $f_sc_LinearSeqOps__apply__I__O(o7$1.h(), 5);
var $x_1 = new $c_T6($m_jl_Integer$().cc(year, 10), $m_jl_Integer$().cc(month, 10), $m_jl_Integer$().cc(date, 10), $m_jl_Integer$().cc(hours, 10), $m_jl_Integer$().cc(minutes, 10), $m_jl_Integer$().cc(seconds, 10));
break matchEnd4$1;
}
}
throw new $c_s_MatchError(arg1);
}
return new $c_s_Some($x_1);
}
}
/** @constructor */
function $c_Lfarjs_archiver_DateTimeUtil$() {
this.ll = null;
this.lm = null;
this.ln = null;
this.pD = 0;
this.dl = 0;
$n_Lfarjs_archiver_DateTimeUtil$ = this;
this.pD = $doubleToInt((+new Date().getFullYear()));
}
$p = $c_Lfarjs_archiver_DateTimeUtil$.prototype = new $h_O();
$p.constructor = $c_Lfarjs_archiver_DateTimeUtil$;
/** @constructor */
function $h_Lfarjs_archiver_DateTimeUtil$() {
}
$h_Lfarjs_archiver_DateTimeUtil$.prototype = $p;
$p.yG = (function(input) {
var this$1 = $p_Lfarjs_archiver_DateTimeUtil$__yyyyMMddHHmmss$1__T__s_Option(this, input);
var this$2 = (this$1.b() ? $p_Lfarjs_archiver_DateTimeUtil$__ddMMyyTime$1__T__s_Option(this, input) : this$1);
var this$3 = (this$2.b() ? $p_Lfarjs_archiver_DateTimeUtil$__MMddyyyyTime$1__T__s_Option(this, input) : this$2);
if (this$3.b()) {
var this$4 = $m_s_None$();
} else {
var arg1 = this$3.h();
if ((arg1 === null)) {
throw new $c_s_MatchError(arg1);
}
var year = (arg1.h5 | 0);
var month = (arg1.h6 | 0);
var date = (arg1.h7 | 0);
var hours = (arg1.h8 | 0);
var minutes = (arg1.h9 | 0);
var seconds = (arg1.ha | 0);
if ((year < 100)) {
var after2000 = ((2000 + year) | 0);
var fullYear = ((after2000 > $m_Lfarjs_archiver_DateTimeUtil$().pD) ? ((1900 + year) | 0) : after2000);
} else {
var fullYear = year;
}
var this$4 = new $c_s_Some((+new Date(fullYear, (((-1) + month) | 0), date, hours, minutes, seconds).getTime()));
}
return (+(this$4.b() ? 0.0 : this$4.h()));
});
var $d_Lfarjs_archiver_DateTimeUtil$ = new $TypeData().i($c_Lfarjs_archiver_DateTimeUtil$, "farjs.archiver.DateTimeUtil$", ({
db: 1
}));
var $n_Lfarjs_archiver_DateTimeUtil$;
function $m_Lfarjs_archiver_DateTimeUtil$() {
if ((!$n_Lfarjs_archiver_DateTimeUtil$)) {
$n_Lfarjs_archiver_DateTimeUtil$ = new $c_Lfarjs_archiver_DateTimeUtil$();
}
return $n_Lfarjs_archiver_DateTimeUtil$;
}
function $ps_Lfarjs_archiver_zip_ZipApi$__loop$1__Lscommons_nodejs_util_StreamReader__sjs_js_Array__s_concurrent_Future(reader, result) {
return $p_Lscommons_nodejs_util_StreamReader__loop$1__I__s_concurrent_Future(reader, 65536).ac(new $c_sjsr_AnonFunction1(((x0$1$2$2) => {
if (($m_s_None$() === x0$1$2$2)) {
return $m_s_concurrent_Future$().b9(result);
} else if ((x0$1$2$2 instanceof $c_s_Some)) {
var content = x0$1$2$2.aA;
result.push(content);
return $ps_Lfarjs_archiver_zip_ZipApi$__loop$1__Lscommons_nodejs_util_StreamReader__sjs_js_Array__s_concurrent_Future(reader, result);
} else {
throw new $c_s_MatchError(x0$1$2$2);
}
})), $m_sjs_concurrent_JSExecutionContext$Implicits$().J);
}
function $p_Lfarjs_archiver_zip_ZipApi$__ensureDirs$1__Lfarjs_archiver_zip_ZipEntry__sci_Map__scm_Set__sci_Map($thiz, entry, entriesByParent, processedDirs$1) {
while (true) {
var values = entriesByParent.cb(entry.d4, new $c_sjsr_AnonFunction0((() => $m_sci_Nil$())));
if ((entry.e4 === "")) {
var $x_1 = true;
} else {
var entry$1 = entry;
_re