cloudcmd 19.20.8 → 19.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (111) hide show
  1. package/ChangeLog +8 -0
  2. package/HELP.md +2 -1
  3. package/README.md +1 -1
  4. package/dist/cloudcmd.common.css +1 -1
  5. package/dist/cloudcmd.common.css.map +1 -1
  6. package/dist/cloudcmd.common.js +19 -13729
  7. package/dist/cloudcmd.common.js.map +1 -1
  8. package/dist/cloudcmd.js +1 -165
  9. package/dist/cloudcmd.js.map +1 -1
  10. package/dist/columns/name-size-date-time.js +0 -7
  11. package/dist/columns/name-size-date.js +0 -7
  12. package/dist/columns/name-size.js +0 -7
  13. package/dist/config.js +0 -7
  14. package/dist/help.js +0 -7
  15. package/dist/index.html +1 -8
  16. package/dist/modules/cloud.js +1 -165
  17. package/dist/modules/cloud.js.map +1 -1
  18. package/dist/modules/command-line.js +1 -165
  19. package/dist/modules/command-line.js.map +1 -1
  20. package/dist/modules/config.js +1 -165
  21. package/dist/modules/config.js.map +1 -1
  22. package/dist/modules/contact.js +1 -165
  23. package/dist/modules/contact.js.map +1 -1
  24. package/dist/modules/edit-file-vim.js +1 -165
  25. package/dist/modules/edit-file-vim.js.map +1 -1
  26. package/dist/modules/edit-file.js +1 -165
  27. package/dist/modules/edit-file.js.map +1 -1
  28. package/dist/modules/edit-names-vim.js +1 -165
  29. package/dist/modules/edit-names-vim.js.map +1 -1
  30. package/dist/modules/edit-names.js +1 -165
  31. package/dist/modules/edit-names.js.map +1 -1
  32. package/dist/modules/edit.js +1 -165
  33. package/dist/modules/edit.js.map +1 -1
  34. package/dist/modules/help.js +1 -165
  35. package/dist/modules/help.js.map +1 -1
  36. package/dist/modules/konsole.js +1 -165
  37. package/dist/modules/konsole.js.map +1 -1
  38. package/dist/modules/markdown.js +1 -165
  39. package/dist/modules/markdown.js.map +1 -1
  40. package/dist/modules/menu.js +117 -162
  41. package/dist/modules/menu.js.map +1 -1
  42. package/dist/modules/operation.js +1 -165
  43. package/dist/modules/operation.js.map +1 -1
  44. package/dist/modules/polyfill.js +1 -165
  45. package/dist/modules/polyfill.js.map +1 -1
  46. package/dist/modules/terminal-run.js +1 -165
  47. package/dist/modules/terminal-run.js.map +1 -1
  48. package/dist/modules/terminal.js +1 -165
  49. package/dist/modules/terminal.js.map +1 -1
  50. package/dist/modules/upload.js +1 -165
  51. package/dist/modules/upload.js.map +1 -1
  52. package/dist/modules/user-menu.js +1 -165
  53. package/dist/modules/user-menu.js.map +1 -1
  54. package/dist/modules/view.js +1 -165
  55. package/dist/modules/view.js.map +1 -1
  56. package/dist/nojs.js +0 -7
  57. package/dist/sw.js +1 -354
  58. package/dist/sw.js.map +1 -1
  59. package/dist/terminal.js +0 -7
  60. package/dist/themes/dark.js +0 -7
  61. package/dist/themes/light.js +0 -7
  62. package/dist/user-menu.js +0 -7
  63. package/dist/view.js +0 -7
  64. package/dist-dev/cloudcmd.common.css +86 -86
  65. package/dist-dev/cloudcmd.common.js +27 -63
  66. package/dist-dev/cloudcmd.js +0 -7
  67. package/dist-dev/columns/name-size-date-time.css +1 -1
  68. package/dist-dev/columns/name-size-date.css +1 -1
  69. package/dist-dev/columns/name-size.css +1 -1
  70. package/dist-dev/config.css +1 -1
  71. package/dist-dev/help.css +1 -1
  72. package/dist-dev/index.html +0 -10
  73. package/dist-dev/modules/cloud.js +0 -7
  74. package/dist-dev/modules/command-line.js +0 -7
  75. package/dist-dev/modules/config.js +0 -7
  76. package/dist-dev/modules/contact.js +0 -7
  77. package/dist-dev/modules/edit-file-vim.js +0 -7
  78. package/dist-dev/modules/edit-file.js +0 -7
  79. package/dist-dev/modules/edit-names-vim.js +0 -7
  80. package/dist-dev/modules/edit-names.js +0 -7
  81. package/dist-dev/modules/edit.js +0 -7
  82. package/dist-dev/modules/help.js +0 -7
  83. package/dist-dev/modules/konsole.js +0 -7
  84. package/dist-dev/modules/markdown.js +0 -7
  85. package/dist-dev/modules/menu.js +7817 -8
  86. package/dist-dev/modules/operation.js +0 -7
  87. package/dist-dev/modules/polyfill.js +0 -7
  88. package/dist-dev/modules/terminal-run.js +0 -7
  89. package/dist-dev/modules/terminal.js +0 -7
  90. package/dist-dev/modules/upload.js +0 -7
  91. package/dist-dev/modules/user-menu.js +0 -7
  92. package/dist-dev/modules/view.js +0 -7
  93. package/dist-dev/nojs.css +1 -1
  94. package/dist-dev/sw.js +2 -2
  95. package/dist-dev/terminal.css +1 -1
  96. package/dist-dev/themes/dark.css +1 -1
  97. package/dist-dev/themes/light.css +1 -1
  98. package/dist-dev/user-menu.css +1 -1
  99. package/dist-dev/view.css +1 -1
  100. package/package.json +4 -3
  101. package/dist/columns/name-size-date-time.js.map +0 -1
  102. package/dist/columns/name-size-date.js.map +0 -1
  103. package/dist/columns/name-size.js.map +0 -1
  104. package/dist/config.js.map +0 -1
  105. package/dist/help.js.map +0 -1
  106. package/dist/nojs.js.map +0 -1
  107. package/dist/terminal.js.map +0 -1
  108. package/dist/themes/dark.js.map +0 -1
  109. package/dist/themes/light.js.map +0 -1
  110. package/dist/user-menu.js.map +0 -1
  111. package/dist/view.js.map +0 -1
@@ -1,166 +1,2 @@
1
- (() => {
2
- "use strict";
3
- var __webpack_modules__ = ({});
4
- // The module cache
5
- var __webpack_module_cache__ = {};
6
-
7
- // The require function
8
- function __webpack_require__(moduleId) {
9
-
10
- // Check if module is in cache
11
- var cachedModule = __webpack_module_cache__[moduleId];
12
- if (cachedModule !== undefined) {
13
- return cachedModule.exports;
14
- }
15
- // Create a new module (and put it into the cache)
16
- var module = (__webpack_module_cache__[moduleId] = {
17
- exports: {}
18
- });
19
- // Execute the module function
20
- __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);
21
-
22
- // Return the exports of the module
23
- return module.exports;
24
-
25
- }
26
-
27
- // expose the modules object (__webpack_modules__)
28
- __webpack_require__.m = __webpack_modules__;
29
-
30
- // webpack/runtime/define_property_getters
31
- (() => {
32
- __webpack_require__.d = (exports, getters, values) => {
33
- var define = (defs, kind) => {
34
- for(var key in defs) {
35
- if(__webpack_require__.o(defs, key) && !__webpack_require__.o(exports, key)) {
36
- Object.defineProperty(exports, key, { enumerable: true, [kind]: defs[key] });
37
- }
38
- }
39
- };
40
- define(getters, "get");
41
- define(values, "value");
42
- };
43
- })();
44
- // webpack/runtime/ensure_chunk
45
- (() => {
46
- // The chunk loading function for additional chunks
47
- // Since all referenced chunks are already included
48
- // in this file, this function is empty here.
49
- __webpack_require__.e = () => (Promise.resolve())
50
- })();
51
- // webpack/runtime/global
52
- (() => {
53
- __webpack_require__.g = (() => {
54
- if (typeof globalThis === 'object') return globalThis;
55
- try {
56
- return this || new Function('return this')();
57
- } catch (e) {
58
- if (typeof window === 'object') return window;
59
- }
60
- })();
61
- })();
62
- // webpack/runtime/has_own_property
63
- (() => {
64
- __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
65
- })();
66
- // webpack/runtime/make_namespace_object
67
- (() => {
68
- // define __esModule on exports
69
- __webpack_require__.r = (exports) => {
70
- if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
71
- Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
72
- }
73
- Object.defineProperty(exports, '__esModule', { value: true });
74
- };
75
- })();
76
- // webpack/runtime/on_chunk_loaded
77
- (() => {
78
- var deferred = [];
79
- __webpack_require__.O = (result, chunkIds, fn, priority) => {
80
- if (chunkIds) {
81
- priority = priority || 0;
82
- for (var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--)
83
- deferred[i] = deferred[i - 1];
84
- deferred[i] = [chunkIds, fn, priority];
85
- return;
86
- }
87
- var notFulfilled = Infinity;
88
- for (var i = 0; i < deferred.length; i++) {
89
- var [chunkIds, fn, priority] = deferred[i];
90
- var fulfilled = true;
91
- for (var j = 0; j < chunkIds.length; j++) {
92
- if (
93
- (priority & (1 === 0) || notFulfilled >= priority) &&
94
- Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))
95
- ) {
96
- chunkIds.splice(j--, 1);
97
- } else {
98
- fulfilled = false;
99
- if (priority < notFulfilled) notFulfilled = priority;
100
- }
101
- }
102
- if (fulfilled) {
103
- deferred.splice(i--, 1);
104
- var r = fn();
105
- if (r !== undefined) result = r;
106
- }
107
- }
108
- return result;
109
- };
110
-
111
- })();
112
- // webpack/runtime/runtime_id
113
- (() => {
114
- __webpack_require__.j = "392";
115
- })();
116
- // webpack/runtime/jsonp_chunk_loading
117
- (() => {
118
-
119
- // object to store loaded and loading chunks
120
- // undefined = chunk not loaded, null = chunk preloaded/prefetched
121
- // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded
122
- var jsonpInstalledChunks = {392: 0,};
123
- __webpack_require__.O.j = (chunkId) => (jsonpInstalledChunks[chunkId] === 0);
124
- // install a JSONP callback for chunk loading
125
- var __rspack_jsonp = (parentChunkLoadingFunction, data) => {
126
- var [chunkIds, moreModules, runtime] = data;
127
- // add "moreModules" to the modules object,
128
- // then flag all "chunkIds" as loaded and fire callback
129
- var moduleId, chunkId, i = 0;
130
- if (chunkIds.some((id) => (jsonpInstalledChunks[id] !== 0))) {
131
- for (moduleId in moreModules) {
132
- if (__webpack_require__.o(moreModules, moduleId)) {
133
- __webpack_require__.m[moduleId] = moreModules[moduleId];
134
- }
135
- }
136
- if (runtime) var result = runtime(__webpack_require__);
137
- }
138
- if (parentChunkLoadingFunction) parentChunkLoadingFunction(data);
139
- for (; i < chunkIds.length; i++) {
140
- chunkId = chunkIds[i];
141
- if (
142
- __webpack_require__.o(jsonpInstalledChunks, chunkId) &&
143
- jsonpInstalledChunks[chunkId]
144
- ) {
145
- jsonpInstalledChunks[chunkId][0]();
146
- }
147
- jsonpInstalledChunks[chunkId] = 0;
148
- }
149
-
150
- return __webpack_require__.O(result);
151
-
152
- };
153
-
154
- var jsonpChunkLoadingGlobal = globalThis["rspackChunkcloudcmd"] ||= [];
155
- jsonpChunkLoadingGlobal.forEach(__rspack_jsonp.bind(null, 0));
156
- jsonpChunkLoadingGlobal.push = __rspack_jsonp.bind(null, jsonpChunkLoadingGlobal.push.bind(jsonpChunkLoadingGlobal));
157
-
158
- })();
159
- // module factories are used so entry inlining is disabled
160
- // startup
161
- // Load entry module and return exports
162
- var __webpack_exports__ = __webpack_require__.O(undefined, ["136"], () => __webpack_require__(2418));
163
- __webpack_exports__ = __webpack_require__.O(__webpack_exports__);
164
- })()
165
- ;
1
+ (()=>{"use strict";var r,e,o,t,n={},i={};function l(r){var e=i[r];if(void 0!==e)return e.exports;var o=i[r]={exports:{}};return n[r].call(o.exports,o,o.exports,l),o.exports}l.m=n,l.d=(r,e,o)=>{var t=(e,o)=>{for(var t in e)l.o(e,t)&&!l.o(r,t)&&Object.defineProperty(r,t,{enumerable:!0,[o]:e[t]})};t(e,"get"),t(o,"value")},l.g=(()=>{if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(r){if("object"==typeof window)return window}})(),l.o=(r,e)=>Object.prototype.hasOwnProperty.call(r,e),l.r=r=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},r=[],l.O=(e,o,t,n)=>{if(o){n=n||0;for(var i=r.length;i>0&&r[i-1][2]>n;i--)r[i]=r[i-1];r[i]=[o,t,n];return}for(var a=1/0,i=0;i<r.length;i++){for(var[o,t,n]=r[i],u=!0,f=0;f<o.length;f++)(!1&n||a>=n)&&Object.keys(l.O).every(r=>l.O[r](o[f]))?o.splice(f--,1):(u=!1,n<a&&(a=n));if(u){r.splice(i--,1);var s=t();void 0!==s&&(e=s)}}return e},l.j="392",e={392:0},l.O.j=r=>0===e[r],o=(r,o)=>{var t,n,[i,a,u]=o,f=0;if(i.some(r=>0!==e[r])){for(t in a)l.o(a,t)&&(l.m[t]=a[t]);if(u)var s=u(l)}for(r&&r(o);f<i.length;f++)n=i[f],l.o(e,n)&&e[n]&&e[n][0](),e[n]=0;return l.O(s)},(t=globalThis.rspackChunkcloudcmd||=[]).forEach(o.bind(null,0)),t.push=o.bind(null,t.push.bind(t));var a=l.O(void 0,["136"],()=>l(2418));a=l.O(a)})();
166
2
  //# sourceMappingURL=view.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"./modules/view.js","sources":["file://cloudcmd/webpack/runtime/define_property_getters","file://cloudcmd/webpack/runtime/ensure_chunk","file://cloudcmd/webpack/runtime/global","file://cloudcmd/webpack/runtime/has_own_property","file://cloudcmd/webpack/runtime/make_namespace_object","file://cloudcmd/webpack/runtime/on_chunk_loaded","file://cloudcmd/webpack/runtime/runtime_id","file://cloudcmd/webpack/runtime/jsonp_chunk_loading"],"sourcesContent":["__webpack_require__.d = (exports, getters, values) => {\n\tvar define = (defs, kind) => {\n\t\tfor(var key in defs) {\n\t\t\tif(__webpack_require__.o(defs, key) && !__webpack_require__.o(exports, key)) {\n\t\t\t\tObject.defineProperty(exports, key, { enumerable: true, [kind]: defs[key] });\n\t\t\t}\n\t\t}\n\t};\n\tdefine(getters, \"get\");\n\tdefine(values, \"value\");\n};","// The chunk loading function for additional chunks\n// Since all referenced chunks are already included\n// in this file, this function is empty here.\n__webpack_require__.e = () => (Promise.resolve()) ","__webpack_require__.g = (() => {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","var deferred = [];\n__webpack_require__.O = (result, chunkIds, fn, priority) => {\n\tif (chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor (var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--)\n\t\t\tdeferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar [chunkIds, fn, priority] = deferred[i];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif (\n\t\t\t\t(priority & (1 === 0) || notFulfilled >= priority) &&\n\t\t\t\tObject.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))\n\t\t\t) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif (priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif (fulfilled) {\n\t\t\tdeferred.splice(i--, 1);\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};\n","__webpack_require__.j = \"392\";","\n // object to store loaded and loading chunks\n // undefined = chunk not loaded, null = chunk preloaded/prefetched\n // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\n var jsonpInstalledChunks = {392: 0,};\n __webpack_require__.O.j = (chunkId) => (jsonpInstalledChunks[chunkId] === 0);\n// install a JSONP callback for chunk loading\nvar __rspack_jsonp = (parentChunkLoadingFunction, data) => {\n\tvar [chunkIds, moreModules, runtime] = data;\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif (chunkIds.some((id) => (jsonpInstalledChunks[id] !== 0))) {\n\t\tfor (moduleId in moreModules) {\n\t\t\tif (__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif (runtime) var result = runtime(__webpack_require__);\n\t}\n\tif (parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor (; i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif (\n\t\t\t__webpack_require__.o(jsonpInstalledChunks, chunkId) &&\n\t\t\tjsonpInstalledChunks[chunkId]\n\t\t) {\n\t\t\tjsonpInstalledChunks[chunkId][0]();\n\t\t}\n\t\tjsonpInstalledChunks[chunkId] = 0;\n\t}\n\t\n\treturn __webpack_require__.O(result);\n\t\n};\n\nvar jsonpChunkLoadingGlobal = globalThis[\"rspackChunkcloudcmd\"] ||= [];\njsonpChunkLoadingGlobal.forEach(__rspack_jsonp.bind(null, 0));\njsonpChunkLoadingGlobal.push = __rspack_jsonp.bind(null, jsonpChunkLoadingGlobal.push.bind(jsonpChunkLoadingGlobal));\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA,0CAA0C,qCAAqC;AAC/E;AACA;AACA;AACA;AACA;AACA,E;;;;ACVA;AACA;AACA;AACA,kD;;;;ACHA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,CAAC,I;;;;ACPD,wF;;;;ACAA;AACA;AACA;AACA,uDAAuD,iBAAiB;AACxE;AACA,gDAAgD,aAAa;AAC7D,E;;;;ACNA;AACA;AACA;AACA;AACA,gCAAgC,wCAAwC;AACxE;AACA;AACA;AACA;AACA;AACA,iBAAiB,qBAAqB;AACtC;AACA;AACA,kBAAkB,qBAAqB;AACvC;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;AC/BA,8B;;;;;ACCA;AACA;AACA;AACA,kCAAkC;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ,qBAAqB;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA"}
1
+ {"version":3,"file":"./modules/view.js","sources":["file://cloudcmd/webpack/runtime/on_chunk_loaded","file://cloudcmd/webpack/runtime/jsonp_chunk_loading","file://cloudcmd/webpack/runtime/define_property_getters","file://cloudcmd/webpack/runtime/global","file://cloudcmd/webpack/runtime/has_own_property","file://cloudcmd/webpack/runtime/make_namespace_object","file://cloudcmd/webpack/runtime/runtime_id"],"sourcesContent":["var deferred = [];\n__webpack_require__.O = (result, chunkIds, fn, priority) => {\n\tif (chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor (var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--)\n\t\t\tdeferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar [chunkIds, fn, priority] = deferred[i];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif (\n\t\t\t\t(priority & (1 === 0) || notFulfilled >= priority) &&\n\t\t\t\tObject.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))\n\t\t\t) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif (priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif (fulfilled) {\n\t\t\tdeferred.splice(i--, 1);\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};\n","\n // object to store loaded and loading chunks\n // undefined = chunk not loaded, null = chunk preloaded/prefetched\n // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\n var jsonpInstalledChunks = {392: 0,};\n __webpack_require__.O.j = (chunkId) => (jsonpInstalledChunks[chunkId] === 0);\n// install a JSONP callback for chunk loading\nvar __rspack_jsonp = (parentChunkLoadingFunction, data) => {\n\tvar [chunkIds, moreModules, runtime] = data;\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif (chunkIds.some((id) => (jsonpInstalledChunks[id] !== 0))) {\n\t\tfor (moduleId in moreModules) {\n\t\t\tif (__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif (runtime) var result = runtime(__webpack_require__);\n\t}\n\tif (parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor (; i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif (\n\t\t\t__webpack_require__.o(jsonpInstalledChunks, chunkId) &&\n\t\t\tjsonpInstalledChunks[chunkId]\n\t\t) {\n\t\t\tjsonpInstalledChunks[chunkId][0]();\n\t\t}\n\t\tjsonpInstalledChunks[chunkId] = 0;\n\t}\n\t\n\treturn __webpack_require__.O(result);\n\t\n};\n\nvar jsonpChunkLoadingGlobal = globalThis[\"rspackChunkcloudcmd\"] ||= [];\njsonpChunkLoadingGlobal.forEach(__rspack_jsonp.bind(null, 0));\njsonpChunkLoadingGlobal.push = __rspack_jsonp.bind(null, jsonpChunkLoadingGlobal.push.bind(jsonpChunkLoadingGlobal));\n","__webpack_require__.d = (exports, getters, values) => {\n\tvar define = (defs, kind) => {\n\t\tfor(var key in defs) {\n\t\t\tif(__webpack_require__.o(defs, key) && !__webpack_require__.o(exports, key)) {\n\t\t\t\tObject.defineProperty(exports, key, { enumerable: true, [kind]: defs[key] });\n\t\t\t}\n\t\t}\n\t};\n\tdefine(getters, \"get\");\n\tdefine(values, \"value\");\n};","__webpack_require__.g = (() => {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.j = \"392\";"],"names":["Object","globalThis","Function","window","Symbol","i"],"mappings":"uBAAI,ECIM,EAGN,EA6BA,E,oJCpCJ,EAAoB,CAAC,CAAG,CAAC,EAAS,EAAS,KAC1C,IAAI,EAAS,CAAC,EAAM,KACnB,IAAI,IAAI,KAAO,EACX,EAAoB,CAAC,CAAC,EAAM,IAAQ,CAAC,EAAoB,CAAC,CAAC,EAAS,IACtEA,OAAO,cAAc,CAAC,EAAS,EAAK,CAAE,WAAY,GAAM,CAAC,EAAK,CAAE,CAAI,CAAC,EAAI,AAAC,EAG7E,EACA,EAAO,EAAS,OAChB,EAAO,EAAQ,QAChB,ECVA,EAAoB,CAAC,CAAG,AAAC,MACxB,GAAI,AAAsB,UAAtB,OAAOC,WAAyB,OAAOA,WAC3C,GAAI,CACH,OAAO,IAAI,EAAI,AAAIC,SAAS,gBAC7B,CAAE,MAAO,EAAG,CACX,GAAI,AAAkB,UAAlB,OAAOC,OAAqB,OAAOA,MACxC,CACD,KCPA,EAAoB,CAAC,CAAG,CAAC,EAAK,IAAUH,OAAO,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,EAAK,GCClF,EAAoB,CAAC,CAAG,AAAC,IACrB,AAAkB,IAAlB,OAAOI,QAA0BA,OAAO,WAAW,EACrDJ,OAAO,cAAc,CAAC,EAASI,OAAO,WAAW,CAAE,CAAE,MAAO,QAAS,GAEtEJ,OAAO,cAAc,CAAC,EAAS,aAAc,CAAE,MAAO,EAAK,EAC5D,ELNI,EAAW,EAAE,CACjB,EAAoB,CAAC,CAAG,CAAC,EAAQ,EAAU,EAAI,KAC9C,GAAI,EAAU,CACb,EAAW,GAAY,EACvB,IAAK,IAAIK,EAAI,EAAS,MAAM,CAAEA,EAAI,GAAK,CAAQ,CAACA,EAAI,EAAE,CAAC,EAAE,CAAG,EAAUA,IACrE,CAAQ,CAACA,EAAE,CAAG,CAAQ,CAACA,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CAAC,EAAsB,IAC5C,CAAoB,CAAC,EAAQ,EAE7B,CAAoB,CAAC,EAAQ,CAAC,EAAE,GAEjC,CAAoB,CAAC,EAAQ,CAAG,EAGjC,OAAO,EAAoB,CAAC,CAAC,EAE9B,EAGA,CADI,EAA0BJ,WAAW,mBAAsB,GAAK,EAAE,EAC9C,OAAO,CAAC,EAAe,IAAI,CAAC,KAAM,IAC1D,EAAwB,IAAI,CAAG,EAAe,IAAI,CAAC,KAAM,EAAwB,IAAI,CAAC,IAAI,CAAC,I"}
package/dist/nojs.js CHANGED
@@ -1,7 +0,0 @@
1
- (() => {
2
- "use strict";
3
- // extracted by css-extract-rspack-plugin
4
-
5
- })()
6
- ;
7
- //# sourceMappingURL=nojs.js.map
package/dist/sw.js CHANGED
@@ -1,355 +1,2 @@
1
- (() => {
2
- var __webpack_modules__ = ({
3
- 4299(module) {
4
- "use strict";
5
-
6
-
7
- const f = (fn) => [
8
- /*eslint no-unused-vars: 0*/
9
- function (a) {return fn(...arguments);},
10
- function (a, b) {return fn(...arguments);},
11
- function (a, b, c) {return fn(...arguments);},
12
- function (a, b, c, d) {return fn(...arguments);},
13
- function (a, b, c, d, e) {return fn(...arguments);},
14
- ];
15
-
16
- const currify = (fn, ...args) => {
17
- check(fn);
18
-
19
- if (args.length >= fn.length)
20
- return fn(...args);
21
-
22
- const again = (...args2) => {
23
- return currify(fn, ...[...args, ...args2]);
24
- };
25
-
26
- const count = fn.length - args.length - 1;
27
- const func = f(again)[count];
28
-
29
- return func || again;
30
- };
31
-
32
- module.exports = currify;
33
-
34
- function check(fn) {
35
- if (typeof fn !== 'function')
36
- throw Error('fn should be function!');
37
- }
38
-
39
-
40
-
41
- },
42
- 5606(module) {
43
- // shim for using process in browser
44
- var process = module.exports = {};
45
-
46
- // cached from whatever global is present so that test runners that stub it
47
- // don't break things. But we need to wrap it in a try catch in case it is
48
- // wrapped in strict mode code which doesn't define any globals. It's inside a
49
- // function because try/catches deoptimize in certain engines.
50
-
51
- var cachedSetTimeout;
52
- var cachedClearTimeout;
53
-
54
- function defaultSetTimout() {
55
- throw new Error('setTimeout has not been defined');
56
- }
57
- function defaultClearTimeout () {
58
- throw new Error('clearTimeout has not been defined');
59
- }
60
- (function () {
61
- try {
62
- if (typeof setTimeout === 'function') {
63
- cachedSetTimeout = setTimeout;
64
- } else {
65
- cachedSetTimeout = defaultSetTimout;
66
- }
67
- } catch (e) {
68
- cachedSetTimeout = defaultSetTimout;
69
- }
70
- try {
71
- if (typeof clearTimeout === 'function') {
72
- cachedClearTimeout = clearTimeout;
73
- } else {
74
- cachedClearTimeout = defaultClearTimeout;
75
- }
76
- } catch (e) {
77
- cachedClearTimeout = defaultClearTimeout;
78
- }
79
- } ())
80
- function runTimeout(fun) {
81
- if (cachedSetTimeout === setTimeout) {
82
- //normal enviroments in sane situations
83
- return setTimeout(fun, 0);
84
- }
85
- // if setTimeout wasn't available but was latter defined
86
- if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {
87
- cachedSetTimeout = setTimeout;
88
- return setTimeout(fun, 0);
89
- }
90
- try {
91
- // when when somebody has screwed with setTimeout but no I.E. maddness
92
- return cachedSetTimeout(fun, 0);
93
- } catch(e){
94
- try {
95
- // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
96
- return cachedSetTimeout.call(null, fun, 0);
97
- } catch(e){
98
- // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error
99
- return cachedSetTimeout.call(this, fun, 0);
100
- }
101
- }
102
-
103
-
104
- }
105
- function runClearTimeout(marker) {
106
- if (cachedClearTimeout === clearTimeout) {
107
- //normal enviroments in sane situations
108
- return clearTimeout(marker);
109
- }
110
- // if clearTimeout wasn't available but was latter defined
111
- if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {
112
- cachedClearTimeout = clearTimeout;
113
- return clearTimeout(marker);
114
- }
115
- try {
116
- // when when somebody has screwed with setTimeout but no I.E. maddness
117
- return cachedClearTimeout(marker);
118
- } catch (e){
119
- try {
120
- // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
121
- return cachedClearTimeout.call(null, marker);
122
- } catch (e){
123
- // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.
124
- // Some versions of I.E. have different rules for clearTimeout vs setTimeout
125
- return cachedClearTimeout.call(this, marker);
126
- }
127
- }
128
-
129
-
130
-
131
- }
132
- var queue = [];
133
- var draining = false;
134
- var currentQueue;
135
- var queueIndex = -1;
136
-
137
- function cleanUpNextTick() {
138
- if (!draining || !currentQueue) {
139
- return;
140
- }
141
- draining = false;
142
- if (currentQueue.length) {
143
- queue = currentQueue.concat(queue);
144
- } else {
145
- queueIndex = -1;
146
- }
147
- if (queue.length) {
148
- drainQueue();
149
- }
150
- }
151
-
152
- function drainQueue() {
153
- if (draining) {
154
- return;
155
- }
156
- var timeout = runTimeout(cleanUpNextTick);
157
- draining = true;
158
-
159
- var len = queue.length;
160
- while(len) {
161
- currentQueue = queue;
162
- queue = [];
163
- while (++queueIndex < len) {
164
- if (currentQueue) {
165
- currentQueue[queueIndex].run();
166
- }
167
- }
168
- queueIndex = -1;
169
- len = queue.length;
170
- }
171
- currentQueue = null;
172
- draining = false;
173
- runClearTimeout(timeout);
174
- }
175
-
176
- process.nextTick = function (fun) {
177
- var args = new Array(arguments.length - 1);
178
- if (arguments.length > 1) {
179
- for (var i = 1; i < arguments.length; i++) {
180
- args[i - 1] = arguments[i];
181
- }
182
- }
183
- queue.push(new Item(fun, args));
184
- if (queue.length === 1 && !draining) {
185
- runTimeout(drainQueue);
186
- }
187
- };
188
-
189
- // v8 likes predictible objects
190
- function Item(fun, array) {
191
- this.fun = fun;
192
- this.array = array;
193
- }
194
- Item.prototype.run = function () {
195
- this.fun.apply(null, this.array);
196
- };
197
- process.title = 'browser';
198
- process.browser = true;
199
- process.env = {};
200
- process.argv = [];
201
- process.version = ''; // empty string to avoid regexp issues
202
- process.versions = {};
203
-
204
- function noop() {}
205
-
206
- process.on = noop;
207
- process.addListener = noop;
208
- process.once = noop;
209
- process.off = noop;
210
- process.removeListener = noop;
211
- process.removeAllListeners = noop;
212
- process.emit = noop;
213
- process.prependListener = noop;
214
- process.prependOnceListener = noop;
215
-
216
- process.listeners = function (name) { return [] }
217
-
218
- process.binding = function (name) {
219
- throw new Error('process.binding is not supported');
220
- };
221
-
222
- process.cwd = function () { return '/' };
223
- process.chdir = function (dir) {
224
- throw new Error('process.chdir is not supported');
225
- };
226
- process.umask = function() { return 0; };
227
-
228
-
229
- },
230
-
231
- });
232
- // The module cache
233
- var __webpack_module_cache__ = {};
234
-
235
- // The require function
236
- function __webpack_require__(moduleId) {
237
-
238
- // Check if module is in cache
239
- var cachedModule = __webpack_module_cache__[moduleId];
240
- if (cachedModule !== undefined) {
241
- return cachedModule.exports;
242
- }
243
- // Create a new module (and put it into the cache)
244
- var module = (__webpack_module_cache__[moduleId] = {
245
- exports: {}
246
- });
247
- // Execute the module function
248
- __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
249
-
250
- // Return the exports of the module
251
- return module.exports;
252
-
253
- }
254
-
255
- // This entry needs to be wrapped in an IIFE because it needs to be in strict mode.
256
- (() => {
257
- "use strict";
258
-
259
- // EXTERNAL MODULE: ./node_modules/process/browser.js
260
- var browser = __webpack_require__(5606);
261
- ;// CONCATENATED MODULE: ./node_modules/try-to-catch/lib/try-to-catch.js
262
- const isFn = (a) => typeof a === 'function';
263
-
264
- const tryToCatch = async (fn, ...args) => {
265
- check(fn);
266
-
267
- try {
268
- return [null, await fn(...args)];
269
- } catch(e) {
270
- return [e];
271
- }
272
- };
273
-
274
- function check(fn) {
275
- if (!isFn(fn))
276
- throw Error('fn should be a function!');
277
- }
278
-
279
- // EXTERNAL MODULE: ./node_modules/currify/lib/currify.js
280
- var currify = __webpack_require__(4299);
281
- ;// CONCATENATED MODULE: ./client/sw/sw.js
282
-
283
-
284
-
285
- const isDev = (/* unused pure expression or super */ null && ("production" === 'development'));
286
- const isGet = a => a.method === 'GET';
287
- const isBasic = a => a.type === 'basic';
288
- const wait = currify((f, e) => e.waitUntil(f()));
289
- const respondWith = currify((f, e) => {
290
- const {
291
- request
292
- } = e;
293
- const {
294
- url
295
- } = request;
296
- const pathname = getPathName(url);
297
- if (url.endsWith('/') || /\^\/fs/.test(pathname)) return;
298
- if (!isGet(request)) return;
299
- if (!isBasic(request)) return;
300
- if (pathname.startsWith('/api')) return;
301
- if (/^socket.io/.test(pathname)) return;
302
- e.respondWith(f(e));
303
- });
304
- const getPathName = url => new URL(url).pathname;
305
- const date = "Wed Sep 16 2026 22:04:30 GMT+0300 (Eastern European Summer Time)";
306
- const NAME = `cloudcmd: ${date}`;
307
- const createRequest = a => new Request(a, {
308
- credentials: 'same-origin'
309
- });
310
- const getRequest = (a, request) => {
311
- if (a !== '/') return request;
312
- return createRequest('/');
313
- };
314
- globalThis.addEventListener('install', wait(onInstall));
315
- globalThis.addEventListener('fetch', respondWith(onFetch));
316
- globalThis.addEventListener('activate', wait(onActivate));
317
- async function onActivate() {
318
- console.info(`cloudcmd: sw: activate: ${NAME}`);
319
- await globalThis.clients.claim();
320
- const keys = await caches.keys();
321
- const deleteCache = caches.delete.bind(caches);
322
- await Promise.all(keys.map(deleteCache));
323
- }
324
- async function onInstall() {
325
- console.info(`cloudcmd: sw: install: ${NAME}`);
326
- await globalThis.skipWaiting();
327
- }
328
- async function onFetch(event) {
329
- const {
330
- request
331
- } = event;
332
- const {
333
- url
334
- } = request;
335
- const pathname = getPathName(url);
336
- const newRequest = getRequest(pathname, event.request);
337
- const cache = await caches.open(NAME);
338
- const response = await cache.match(request);
339
- if ( true && response) return response;
340
- const [e, resp] = await tryToCatch(fetch, newRequest, {
341
- credentials: 'same-origin'
342
- });
343
- if (e) return new Response(e.message);
344
- await addToCache(request, resp.clone());
345
- return resp;
346
- }
347
- async function addToCache(request, response) {
348
- const cache = await caches.open(NAME);
349
- return cache.put(request, response);
350
- }
351
- })();
352
-
353
- })()
354
- ;
1
+ (()=>{var t={4299(t){"use strict";let e=(t,...n)=>{if(function(t){if("function"!=typeof t)throw Error("fn should be function!")}(t),n.length>=t.length)return t(...n);let r=(...r)=>e(t,...n,...r);return[function(t){return r(...arguments)},function(t,e){return r(...arguments)},function(t,e,n){return r(...arguments)},function(t,e,n,i){return r(...arguments)},function(t,e,n,i,o){return r(...arguments)}][t.length-n.length-1]||r};t.exports=e},5606(t){var e,n,r,i=t.exports={};function o(){throw Error("setTimeout has not been defined")}function a(){throw Error("clearTimeout has not been defined")}try{e="function"==typeof setTimeout?setTimeout:o}catch(t){e=o}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(t){n=a}function c(t){if(e===setTimeout)return setTimeout(t,0);if((e===o||!e)&&setTimeout)return e=setTimeout,setTimeout(t,0);try{return e(t,0)}catch(n){try{return e.call(null,t,0)}catch(n){return e.call(this,t,0)}}}var s=[],u=!1,l=-1;function f(){u&&r&&(u=!1,r.length?s=r.concat(s):l=-1,s.length&&h())}function h(){if(!u){var t=c(f);u=!0;for(var e=s.length;e;){for(r=s,s=[];++l<e;)r&&r[l].run();l=-1,e=s.length}r=null,u=!1,function(t){if(n===clearTimeout)return clearTimeout(t);if((n===a||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(t);try{n(t)}catch(e){try{return n.call(null,t)}catch(e){return n.call(this,t)}}}(t)}}function d(t,e){this.fun=t,this.array=e}function p(){}i.nextTick=function(t){var e=Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];s.push(new d(t,e)),1!==s.length||u||c(h)},d.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=p,i.addListener=p,i.once=p,i.off=p,i.removeListener=p,i.removeAllListeners=p,i.emit=p,i.prependListener=p,i.prependOnceListener=p,i.listeners=function(t){return[]},i.binding=function(t){throw Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(t){throw Error("process.chdir is not supported")},i.umask=function(){return 0}}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var o=e[r]={exports:{}};return t[r](o,o.exports,n),o.exports}(()=>{"use strict";n(5606);let t=async(t,...e)=>{var n=t;if("function"!=typeof n)throw Error("fn should be a function!");try{return[null,await t(...e)]}catch(t){return[t]}};var e=n(4299);let r=e((t,e)=>e.waitUntil(t())),i=e((t,e)=>{let{request:n}=e,{url:r}=n,i=o(r);r.endsWith("/")||/\^\/fs/.test(i)||"GET"===n.method&&("basic"!==n.type||i.startsWith("/api")||/^socket.io/.test(i)||e.respondWith(t(e)))}),o=t=>new URL(t).pathname,a="cloudcmd: Fri Sep 18 2026 22:25:36 GMT+0300 (Eastern European Summer Time)";async function c(){console.info(`cloudcmd: sw: activate: ${a}`),await globalThis.clients.claim();let t=await caches.keys(),e=caches.delete.bind(caches);await Promise.all(t.map(e))}async function s(e){var n,r;let{request:i}=e,{url:c}=i,s=(n=o(c),r=e.request,"/"!==n?r:new Request("/",{credentials:"same-origin"})),l=await caches.open(a),f=await l.match(i);if(f)return f;let[h,d]=await t(fetch,s,{credentials:"same-origin"});return h?new Response(h.message):(await u(i,d.clone()),d)}async function u(t,e){return(await caches.open(a)).put(t,e)}globalThis.addEventListener("install",r(async function t(){console.info(`cloudcmd: sw: install: ${a}`),await globalThis.skipWaiting()})),globalThis.addEventListener("fetch",i(s)),globalThis.addEventListener("activate",r(c))})()})();
355
2
  //# sourceMappingURL=sw.js.map
package/dist/sw.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"sw.js","sources":["file://cloudcmd//Users/coderaiser/cloudcmd/node_modules/currify/lib/currify.js","file://cloudcmd//Users/coderaiser/cloudcmd/node_modules/process/browser.js","file://cloudcmd//Users/coderaiser/cloudcmd/node_modules/try-to-catch/lib/try-to-catch.js","file://cloudcmd//Users/coderaiser/cloudcmd/client/sw/sw.js"],"sourcesContent":["'use strict';\n\nconst f = (fn) => [\n /*eslint no-unused-vars: 0*/\n function (a) {return fn(...arguments);},\n function (a, b) {return fn(...arguments);},\n function (a, b, c) {return fn(...arguments);},\n function (a, b, c, d) {return fn(...arguments);},\n function (a, b, c, d, e) {return fn(...arguments);},\n];\n\nconst currify = (fn, ...args) => {\n check(fn);\n \n if (args.length >= fn.length)\n return fn(...args);\n \n const again = (...args2) => {\n return currify(fn, ...[...args, ...args2]);\n };\n \n const count = fn.length - args.length - 1;\n const func = f(again)[count];\n \n return func || again;\n};\n\nmodule.exports = currify;\n\nfunction check(fn) {\n if (typeof fn !== 'function')\n throw Error('fn should be function!');\n}\n\n","// shim for using process in browser\nvar process = module.exports = {};\n\n// cached from whatever global is present so that test runners that stub it\n// don't break things. But we need to wrap it in a try catch in case it is\n// wrapped in strict mode code which doesn't define any globals. It's inside a\n// function because try/catches deoptimize in certain engines.\n\nvar cachedSetTimeout;\nvar cachedClearTimeout;\n\nfunction defaultSetTimout() {\n throw new Error('setTimeout has not been defined');\n}\nfunction defaultClearTimeout () {\n throw new Error('clearTimeout has not been defined');\n}\n(function () {\n try {\n if (typeof setTimeout === 'function') {\n cachedSetTimeout = setTimeout;\n } else {\n cachedSetTimeout = defaultSetTimout;\n }\n } catch (e) {\n cachedSetTimeout = defaultSetTimout;\n }\n try {\n if (typeof clearTimeout === 'function') {\n cachedClearTimeout = clearTimeout;\n } else {\n cachedClearTimeout = defaultClearTimeout;\n }\n } catch (e) {\n cachedClearTimeout = defaultClearTimeout;\n }\n} ())\nfunction runTimeout(fun) {\n if (cachedSetTimeout === setTimeout) {\n //normal enviroments in sane situations\n return setTimeout(fun, 0);\n }\n // if setTimeout wasn't available but was latter defined\n if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {\n cachedSetTimeout = setTimeout;\n return setTimeout(fun, 0);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedSetTimeout(fun, 0);\n } catch(e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedSetTimeout.call(null, fun, 0);\n } catch(e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error\n return cachedSetTimeout.call(this, fun, 0);\n }\n }\n\n\n}\nfunction runClearTimeout(marker) {\n if (cachedClearTimeout === clearTimeout) {\n //normal enviroments in sane situations\n return clearTimeout(marker);\n }\n // if clearTimeout wasn't available but was latter defined\n if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {\n cachedClearTimeout = clearTimeout;\n return clearTimeout(marker);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedClearTimeout(marker);\n } catch (e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedClearTimeout.call(null, marker);\n } catch (e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.\n // Some versions of I.E. have different rules for clearTimeout vs setTimeout\n return cachedClearTimeout.call(this, marker);\n }\n }\n\n\n\n}\nvar queue = [];\nvar draining = false;\nvar currentQueue;\nvar queueIndex = -1;\n\nfunction cleanUpNextTick() {\n if (!draining || !currentQueue) {\n return;\n }\n draining = false;\n if (currentQueue.length) {\n queue = currentQueue.concat(queue);\n } else {\n queueIndex = -1;\n }\n if (queue.length) {\n drainQueue();\n }\n}\n\nfunction drainQueue() {\n if (draining) {\n return;\n }\n var timeout = runTimeout(cleanUpNextTick);\n draining = true;\n\n var len = queue.length;\n while(len) {\n currentQueue = queue;\n queue = [];\n while (++queueIndex < len) {\n if (currentQueue) {\n currentQueue[queueIndex].run();\n }\n }\n queueIndex = -1;\n len = queue.length;\n }\n currentQueue = null;\n draining = false;\n runClearTimeout(timeout);\n}\n\nprocess.nextTick = function (fun) {\n var args = new Array(arguments.length - 1);\n if (arguments.length > 1) {\n for (var i = 1; i < arguments.length; i++) {\n args[i - 1] = arguments[i];\n }\n }\n queue.push(new Item(fun, args));\n if (queue.length === 1 && !draining) {\n runTimeout(drainQueue);\n }\n};\n\n// v8 likes predictible objects\nfunction Item(fun, array) {\n this.fun = fun;\n this.array = array;\n}\nItem.prototype.run = function () {\n this.fun.apply(null, this.array);\n};\nprocess.title = 'browser';\nprocess.browser = true;\nprocess.env = {};\nprocess.argv = [];\nprocess.version = ''; // empty string to avoid regexp issues\nprocess.versions = {};\n\nfunction noop() {}\n\nprocess.on = noop;\nprocess.addListener = noop;\nprocess.once = noop;\nprocess.off = noop;\nprocess.removeListener = noop;\nprocess.removeAllListeners = noop;\nprocess.emit = noop;\nprocess.prependListener = noop;\nprocess.prependOnceListener = noop;\n\nprocess.listeners = function (name) { return [] }\n\nprocess.binding = function (name) {\n throw new Error('process.binding is not supported');\n};\n\nprocess.cwd = function () { return '/' };\nprocess.chdir = function (dir) {\n throw new Error('process.chdir is not supported');\n};\nprocess.umask = function() { return 0; };\n","const isFn = (a) => typeof a === 'function';\n\nexport const tryToCatch = async (fn, ...args) => {\n check(fn);\n \n try {\n return [null, await fn(...args)];\n } catch(e) {\n return [e];\n }\n};\n\nfunction check(fn) {\n if (!isFn(fn))\n throw Error('fn should be a function!');\n}\n","import process from 'node:process';\nimport codegen from 'codegen.macro';\nimport {tryToCatch} from 'try-to-catch';\nimport currify from 'currify';\n\nconst isDev = process.env.NODE_ENV === 'development';\n\nconst isGet = (a) => a.method === 'GET';\nconst isBasic = (a) => a.type === 'basic';\n\nconst wait = currify((f, e) => e.waitUntil(f()));\nconst respondWith = currify((f, e) => {\n const {request} = e;\n const {url} = request;\n const pathname = getPathName(url);\n \n if (url.endsWith('/') || /\\^\\/fs/.test(pathname))\n return;\n \n if (!isGet(request))\n return;\n \n if (!isBasic(request))\n return;\n \n if (pathname.startsWith('/api'))\n return;\n \n if (/^socket.io/.test(pathname))\n return;\n \n e.respondWith(f(e));\n});\n\nconst getPathName = (url) => new URL(url).pathname;\n\nconst date = codegen`module.exports = '\"' + Date() + '\"'`;\nconst NAME = `cloudcmd: ${date}`;\n\nconst createRequest = (a) => new Request(a, {\n credentials: 'same-origin',\n});\n\nconst getRequest = (a, request) => {\n if (a !== '/')\n return request;\n \n return createRequest('/');\n};\n\nglobalThis.addEventListener('install', wait(onInstall));\nglobalThis.addEventListener('fetch', respondWith(onFetch));\nglobalThis.addEventListener('activate', wait(onActivate));\n\nasync function onActivate() {\n console.info(`cloudcmd: sw: activate: ${NAME}`);\n \n await globalThis.clients.claim();\n const keys = await caches.keys();\n const deleteCache = caches.delete.bind(caches);\n \n await Promise.all(keys.map(deleteCache));\n}\n\nasync function onInstall() {\n console.info(`cloudcmd: sw: install: ${NAME}`);\n \n await globalThis.skipWaiting();\n}\n\nasync function onFetch(event) {\n const {request} = event;\n const {url} = request;\n const pathname = getPathName(url);\n const newRequest = getRequest(pathname, event.request);\n \n const cache = await caches.open(NAME);\n const response = await cache.match(request);\n \n if (!isDev && response)\n return response;\n \n const [e, resp] = await tryToCatch(fetch, newRequest, {\n credentials: 'same-origin',\n });\n \n if (e)\n return new Response(e.message);\n \n await addToCache(request, resp.clone());\n \n return resp;\n}\n\nasync function addToCache(request, response) {\n const cache = await caches.open(NAME);\n return cache.put(request, response);\n}\n"],"names":[],"mappings":";;;;AAAa;;AAEb;AACA;AACA,kBAAkB,yBAAyB;AAC3C,qBAAqB,yBAAyB;AAC9C,wBAAwB,yBAAyB;AACjD,2BAA2B,yBAAyB;AACpD,8BAA8B,yBAAyB;AACvD;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,cAAc;;AAEd;AACA;AACA;AACA;;;;;;AChCA;AACA,cAAc,cAAc;;AAE5B;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA,MAAM;AACN;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;;;;AAIA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,wBAAwB,sBAAsB;AAC9C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB;AACtB;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,sCAAsC;;AAEtC;AACA;AACA;;AAEA,4BAA4B;AAC5B;AACA;AACA;AACA,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACvL7B;;AAEO;AACP;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA;;;;;ACfmC;AAEK;AACV;AAE9B,MAAM,KAAK,GAAG,4DAAoB,KAAK,aAAa;AAEpD,MAAM,KAAK,GAAI,CAAC,IAAK,CAAC,CAAC,MAAM,KAAK,KAAK;AACvC,MAAM,OAAO,GAAI,CAAC,IAAK,CAAC,CAAC,IAAI,KAAK,OAAO;AAEzC,MAAM,IAAI,GAAG,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAChD,MAAM,WAAW,GAAG,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK;EAClC,MAAM;IA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AAC;EACrC,OAAO,KAAK,CAAC,GAAG,CAAC,OAAO,EAAE,QAAQ,CAAC;AACvC,C"}
1
+ {"version":3,"file":"sw.js","sources":["file://cloudcmd//Users/coderaiser/cloudcmd/node_modules/currify/lib/currify.js","file://cloudcmd//Users/coderaiser/cloudcmd/node_modules/process/browser.js","file://cloudcmd//Users/coderaiser/cloudcmd/node_modules/try-to-catch/lib/try-to-catch.js","file://cloudcmd//Users/coderaiser/cloudcmd/client/sw/sw.js"],"sourcesContent":["'use strict';\n\nconst f = (fn) => [\n /*eslint no-unused-vars: 0*/\n function (a) {return fn(...arguments);},\n function (a, b) {return fn(...arguments);},\n function (a, b, c) {return fn(...arguments);},\n function (a, b, c, d) {return fn(...arguments);},\n function (a, b, c, d, e) {return fn(...arguments);},\n];\n\nconst currify = (fn, ...args) => {\n check(fn);\n \n if (args.length >= fn.length)\n return fn(...args);\n \n const again = (...args2) => {\n return currify(fn, ...[...args, ...args2]);\n };\n \n const count = fn.length - args.length - 1;\n const func = f(again)[count];\n \n return func || again;\n};\n\nmodule.exports = currify;\n\nfunction check(fn) {\n if (typeof fn !== 'function')\n throw Error('fn should be function!');\n}\n\n","// shim for using process in browser\nvar process = module.exports = {};\n\n// cached from whatever global is present so that test runners that stub it\n// don't break things. But we need to wrap it in a try catch in case it is\n// wrapped in strict mode code which doesn't define any globals. It's inside a\n// function because try/catches deoptimize in certain engines.\n\nvar cachedSetTimeout;\nvar cachedClearTimeout;\n\nfunction defaultSetTimout() {\n throw new Error('setTimeout has not been defined');\n}\nfunction defaultClearTimeout () {\n throw new Error('clearTimeout has not been defined');\n}\n(function () {\n try {\n if (typeof setTimeout === 'function') {\n cachedSetTimeout = setTimeout;\n } else {\n cachedSetTimeout = defaultSetTimout;\n }\n } catch (e) {\n cachedSetTimeout = defaultSetTimout;\n }\n try {\n if (typeof clearTimeout === 'function') {\n cachedClearTimeout = clearTimeout;\n } else {\n cachedClearTimeout = defaultClearTimeout;\n }\n } catch (e) {\n cachedClearTimeout = defaultClearTimeout;\n }\n} ())\nfunction runTimeout(fun) {\n if (cachedSetTimeout === setTimeout) {\n //normal enviroments in sane situations\n return setTimeout(fun, 0);\n }\n // if setTimeout wasn't available but was latter defined\n if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {\n cachedSetTimeout = setTimeout;\n return setTimeout(fun, 0);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedSetTimeout(fun, 0);\n } catch(e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedSetTimeout.call(null, fun, 0);\n } catch(e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error\n return cachedSetTimeout.call(this, fun, 0);\n }\n }\n\n\n}\nfunction runClearTimeout(marker) {\n if (cachedClearTimeout === clearTimeout) {\n //normal enviroments in sane situations\n return clearTimeout(marker);\n }\n // if clearTimeout wasn't available but was latter defined\n if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {\n cachedClearTimeout = clearTimeout;\n return clearTimeout(marker);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedClearTimeout(marker);\n } catch (e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedClearTimeout.call(null, marker);\n } catch (e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.\n // Some versions of I.E. have different rules for clearTimeout vs setTimeout\n return cachedClearTimeout.call(this, marker);\n }\n }\n\n\n\n}\nvar queue = [];\nvar draining = false;\nvar currentQueue;\nvar queueIndex = -1;\n\nfunction cleanUpNextTick() {\n if (!draining || !currentQueue) {\n return;\n }\n draining = false;\n if (currentQueue.length) {\n queue = currentQueue.concat(queue);\n } else {\n queueIndex = -1;\n }\n if (queue.length) {\n drainQueue();\n }\n}\n\nfunction drainQueue() {\n if (draining) {\n return;\n }\n var timeout = runTimeout(cleanUpNextTick);\n draining = true;\n\n var len = queue.length;\n while(len) {\n currentQueue = queue;\n queue = [];\n while (++queueIndex < len) {\n if (currentQueue) {\n currentQueue[queueIndex].run();\n }\n }\n queueIndex = -1;\n len = queue.length;\n }\n currentQueue = null;\n draining = false;\n runClearTimeout(timeout);\n}\n\nprocess.nextTick = function (fun) {\n var args = new Array(arguments.length - 1);\n if (arguments.length > 1) {\n for (var i = 1; i < arguments.length; i++) {\n args[i - 1] = arguments[i];\n }\n }\n queue.push(new Item(fun, args));\n if (queue.length === 1 && !draining) {\n runTimeout(drainQueue);\n }\n};\n\n// v8 likes predictible objects\nfunction Item(fun, array) {\n this.fun = fun;\n this.array = array;\n}\nItem.prototype.run = function () {\n this.fun.apply(null, this.array);\n};\nprocess.title = 'browser';\nprocess.browser = true;\nprocess.env = {};\nprocess.argv = [];\nprocess.version = ''; // empty string to avoid regexp issues\nprocess.versions = {};\n\nfunction noop() {}\n\nprocess.on = noop;\nprocess.addListener = noop;\nprocess.once = noop;\nprocess.off = noop;\nprocess.removeListener = noop;\nprocess.removeAllListeners = noop;\nprocess.emit = noop;\nprocess.prependListener = noop;\nprocess.prependOnceListener = noop;\n\nprocess.listeners = function (name) { return [] }\n\nprocess.binding = function (name) {\n throw new Error('process.binding is not supported');\n};\n\nprocess.cwd = function () { return '/' };\nprocess.chdir = function (dir) {\n throw new Error('process.chdir is not supported');\n};\nprocess.umask = function() { return 0; };\n","const isFn = (a) => typeof a === 'function';\n\nexport const tryToCatch = async (fn, ...args) => {\n check(fn);\n \n try {\n return [null, await fn(...args)];\n } catch(e) {\n return [e];\n }\n};\n\nfunction check(fn) {\n if (!isFn(fn))\n throw Error('fn should be a function!');\n}\n","import process from 'node:process';\nimport codegen from 'codegen.macro';\nimport {tryToCatch} from 'try-to-catch';\nimport currify from 'currify';\n\nconst isDev = process.env.NODE_ENV === 'development';\n\nconst isGet = (a) => a.method === 'GET';\nconst isBasic = (a) => a.type === 'basic';\n\nconst wait = currify((f, e) => e.waitUntil(f()));\nconst respondWith = currify((f, e) => {\n const {request} = e;\n const {url} = request;\n const pathname = getPathName(url);\n \n if (url.endsWith('/') || /\\^\\/fs/.test(pathname))\n return;\n \n if (!isGet(request))\n return;\n \n if (!isBasic(request))\n return;\n \n if (pathname.startsWith('/api'))\n return;\n \n if (/^socket.io/.test(pathname))\n return;\n \n e.respondWith(f(e));\n});\n\nconst getPathName = (url) => new URL(url).pathname;\n\nconst date = codegen`module.exports = '\"' + Date() + '\"'`;\nconst NAME = `cloudcmd: ${date}`;\n\nconst createRequest = (a) => new Request(a, {\n credentials: 'same-origin',\n});\n\nconst getRequest = (a, request) => {\n if (a !== '/')\n return request;\n \n return createRequest('/');\n};\n\nglobalThis.addEventListener('install', wait(onInstall));\nglobalThis.addEventListener('fetch', respondWith(onFetch));\nglobalThis.addEventListener('activate', wait(onActivate));\n\nasync function onActivate() {\n console.info(`cloudcmd: sw: activate: ${NAME}`);\n \n await globalThis.clients.claim();\n const keys = await caches.keys();\n const deleteCache = caches.delete.bind(caches);\n \n await Promise.all(keys.map(deleteCache));\n}\n\nasync function onInstall() {\n console.info(`cloudcmd: sw: install: ${NAME}`);\n \n await globalThis.skipWaiting();\n}\n\nasync function onFetch(event) {\n const {request} = event;\n const {url} = request;\n const pathname = getPathName(url);\n const newRequest = getRequest(pathname, event.request);\n \n const cache = await caches.open(NAME);\n const response = await cache.match(request);\n \n if (!isDev && response)\n return response;\n \n const [e, resp] = await tryToCatch(fetch, newRequest, {\n credentials: 'same-origin',\n });\n \n if (e)\n return new Response(e.message);\n \n await addToCache(request, resp.clone());\n \n return resp;\n}\n\nasync function addToCache(request, response) {\n const cache = await caches.open(NAME);\n return cache.put(request, response);\n}\n"],"names":["Error","arguments","setTimeout","clearTimeout","t","e","Array","URL","console","globalThis","caches","Promise","r","Request","fetch","Response"],"mappings":"kCAWA,IAAM,EAAU,CAAC,EAAI,GAAG,KAGpB,GAFA,AAiBJ,SAAe,CAAE,EACb,GAAI,AAAc,YAAd,OAAO,EACP,M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AI,CAAC,EAAI,EACvB,GAAG,CAAC,EAAS,EAC9B,CA/CAD,WAAW,gBAAgB,CAAC,UAAW,EAcvC,eAAe,IACXD,QAAQ,IAAI,CAAC,CAAC,uBAAuB,EAAE,EAAK,CAAC,EAE7C,MAAMC,WAAW,WAAW,EAChC,IAjBAA,WAAW,gBAAgB,CAAC,QAAS,EAAY,IACjDA,WAAW,gBAAgB,CAAC,WAAY,EAAK,G"}
package/dist/terminal.js CHANGED
@@ -1,7 +0,0 @@
1
- (() => {
2
- "use strict";
3
- // extracted by css-extract-rspack-plugin
4
-
5
- })()
6
- ;
7
- //# sourceMappingURL=terminal.js.map
@@ -1,7 +0,0 @@
1
- (() => {
2
- "use strict";
3
- // extracted by css-extract-rspack-plugin
4
-
5
- })()
6
- ;
7
- //# sourceMappingURL=dark.js.map
@@ -1,7 +0,0 @@
1
- (() => {
2
- "use strict";
3
- // extracted by css-extract-rspack-plugin
4
-
5
- })()
6
- ;
7
- //# sourceMappingURL=light.js.map
package/dist/user-menu.js CHANGED
@@ -1,7 +0,0 @@
1
- (() => {
2
- "use strict";
3
- // extracted by css-extract-rspack-plugin
4
-
5
- })()
6
- ;
7
- //# sourceMappingURL=user-menu.js.map