filecat 6.6.0 → 6.6.2

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.
@@ -0,0 +1,2 @@
1
+ /*! For license information please see 8931.13c1dd9bfa6012882257.js.LICENSE.txt */
2
+ (self.webpackChunkfilecat=self.webpackChunkfilecat||[]).push([[4627,8931],{5219(t){!function(){var e=function(t,n){var r=this;e.count=(e.count||0)+1,this.count=e.count,this.isOpened=!1,this.input=i(t),this.input.setAttribute("autocomplete","off"),this.input.setAttribute("aria-autocomplete","list"),this.input.setAttribute("aria-expanded","false"),this.input.setAttribute("aria-controls","awesomplete_list_"+this.count),this.input.setAttribute("aria-owns","awesomplete_list_"+this.count),this.input.setAttribute("role","combobox"),this.options=n=n||{},function(t,e,n){for(var r in e){var i=e[r],o=t.input.getAttribute("data-"+r.toLowerCase());t[r]="number"==typeof i?parseInt(o):!1===i?null!==o:i instanceof Function?null:o,t[r]||0===t[r]||(t[r]=r in n?n[r]:i)}}(this,{minChars:2,maxItems:10,autoFirst:!1,data:e.DATA,filter:e.FILTER_CONTAINS,sort:!1!==n.sort&&e.SORT_BYLENGTH,container:e.CONTAINER,item:e.ITEM,replace:e.REPLACE,tabSelect:!1,listLabel:"Results List",statusNoResults:"No results found",statusXResults:"{0} results found",statusTypeXChar:"Type {0} or more characters for results"},n),this.index=-1,this.container=this.container(t),this.ul=i.create("ul",{hidden:"hidden",role:"listbox",id:"awesomplete_list_"+this.count,inside:this.container,"aria-label":this.listLabel}),this.status=i.create("span",{className:"visually-hidden",role:"status","aria-live":"assertive","aria-atomic":!0,inside:this.container,textContent:""}),this._events={input:{input:this.evaluate.bind(this),blur:this.close.bind(this,{reason:"blur"}),keydown:function(t){var e=t.keyCode;r.opened&&(13===e&&r.selected||9===e&&r.selected&&r.tabSelect?(t.preventDefault(),r.select(void 0,void 0,t)):27===e?r.close({reason:"esc"}):38!==e&&40!==e||(t.preventDefault(),r[38===e?"previous":"next"]()))}},form:{submit:this.close.bind(this,{reason:"submit"})},ul:{mousedown:function(t){t.preventDefault()},click:function(t){var e=t.target;if(e!==this){for(;e&&!/li/i.test(e.nodeName);)e=e.parentNode;e&&0===t.button&&(t.preventDefault(),r.select(e,t.target,t))}}}},i.bind(this.input,this._events.input),i.bind(this.input.form,this._events.form),i.bind(this.ul,this._events.ul),this.input.hasAttribute("list")?(this.list="#"+this.input.getAttribute("list"),this.input.removeAttribute("list")):this.list=this.input.getAttribute("data-list")||n.list||[],e.all.push(this)};function n(t){var e=Array.isArray(t)?{label:t[0],value:t[1]}:"object"==typeof t&&"label"in t&&"value"in t?t:{label:t,value:t};this.label=e.label||e.value,this.value=e.value}e.prototype={set list(t){if(Array.isArray(t))this._list=t;else if("string"==typeof t&&t.indexOf(",")>-1)this._list=t.split(/\s*,\s*/);else if((t=i(t))&&t.children){var e=[];r.apply(t.children).forEach(function(t){if(!t.disabled){var n=t.textContent.trim(),r=t.value||n,i=t.label||n;""!==r&&e.push({label:i,value:r})}}),this._list=e}document.activeElement===this.input&&this.evaluate()},get selected(){return this.index>-1},get opened(){return this.isOpened},close:function(t){this.opened&&(this.input.setAttribute("aria-expanded","false"),this.ul.setAttribute("hidden",""),this.isOpened=!1,this.index=-1,this.status.setAttribute("hidden",""),this.input.setAttribute("aria-activedescendant",""),i.fire(this.input,"awesomplete-close",t||{}))},open:function(){this.input.setAttribute("aria-expanded","true"),this.ul.removeAttribute("hidden"),this.isOpened=!0,this.status.removeAttribute("hidden"),this.autoFirst&&-1===this.index&&this.goto(0),i.fire(this.input,"awesomplete-open")},destroy:function(){if(i.unbind(this.input,this._events.input),i.unbind(this.input.form,this._events.form),!this.options.container){var t=this.container.parentNode;t.insertBefore(this.input,this.container),t.removeChild(this.container)}this.input.removeAttribute("autocomplete"),this.input.removeAttribute("aria-autocomplete"),this.input.removeAttribute("aria-expanded"),this.input.removeAttribute("aria-controls"),this.input.removeAttribute("aria-owns"),this.input.removeAttribute("role");var n=e.all.indexOf(this);-1!==n&&e.all.splice(n,1)},next:function(){var t=this.ul.children.length;this.goto(this.index<t-1?this.index+1:t?0:-1)},previous:function(){var t=this.ul.children.length,e=this.index-1;this.goto(this.selected&&-1!==e?e:t-1)},goto:function(t){var e=this.ul.children;this.selected&&e[this.index].setAttribute("aria-selected","false"),this.index=t,t>-1&&e.length>0&&(e[t].setAttribute("aria-selected","true"),this.input.setAttribute("aria-activedescendant",this.ul.id+"_item_"+this.index),this.ul.scrollTop=e[t].offsetTop-this.ul.clientHeight+e[t].clientHeight,i.fire(this.input,"awesomplete-highlight",{text:this.suggestions[this.index]}))},select:function(t,e,n){if(t?this.index=i.siblingIndex(t):t=this.ul.children[this.index],t){var r=this.suggestions[this.index];i.fire(this.input,"awesomplete-select",{text:r,origin:e||t,originalEvent:n})&&(this.replace(r),this.close({reason:"select"}),i.fire(this.input,"awesomplete-selectcomplete",{text:r,originalEvent:n}))}},evaluate:function(){var t=this,e=this.input.value;e.length>=this.minChars&&this._list&&this._list.length>0?(this.index=-1,this.ul.innerHTML="",this.suggestions=this._list.map(function(r){return new n(t.data(r,e))}).filter(function(n){return t.filter(n,e)}),!1!==this.sort&&(this.suggestions=this.suggestions.sort(this.sort)),this.suggestions=this.suggestions.slice(0,this.maxItems),this.suggestions.forEach(function(n,r){t.ul.appendChild(t.item(n,e,r))}),0===this.ul.children.length?(this.status.textContent=this.statusNoResults,this.close({reason:"nomatches"})):(this.input.setAttribute("aria-activedescendant",""),this.open(),this.status.textContent=this.statusXResults.replaceAll("{0}",this.ul.children.length))):(this.close({reason:"nomatches"}),this.minChar<=1||e.length>=this.minChars?this.status.textContent=this.statusNoResults:this.status.textContent=this.statusTypeXChar.replaceAll("{0}",this.minChars))}},e.all=[],e.FILTER_CONTAINS=function(t,e){return RegExp(i.regExpEscape(e.trim()),"i").test(t)},e.FILTER_STARTSWITH=function(t,e){return RegExp("^"+i.regExpEscape(e.trim()),"i").test(t)},e.SORT_BYLENGTH=function(t,e){return t.length!==e.length?t.length-e.length:t<e?-1:1},e.CONTAINER=function(t){return i.create("div",{className:"awesomplete",around:t})},e.ITEM=function(t,e,n){var r=""===e.trim()?t:t.replace(RegExp(i.regExpEscape(e.trim()),"gi"),"<mark>$&</mark>");return i.create("li",{innerHTML:r,role:"option","aria-selected":"false",tabindex:"-1",id:"awesomplete_list_"+this.count+"_item_"+n})},e.REPLACE=function(t){this.input.value=t.value},e.DATA=function(t){return t},Object.defineProperty(n.prototype=Object.create(String.prototype),"length",{get:function(){return this.label.length}}),n.prototype.toString=n.prototype.valueOf=function(){return""+this.label};var r=Array.prototype.slice;function i(t,e){return"string"==typeof t?(e||document).querySelector(t):t||null}function o(t,e){return r.call((e||document).querySelectorAll(t))}function a(){o("input.awesomplete").forEach(function(t){new e(t)})}i.create=function(t,e){var n=document.createElement(t);for(var r in e){var o=e[r];if("inside"===r)i(o).appendChild(n);else if("around"===r){var a=i(o);a.parentNode.insertBefore(n,a),n.appendChild(a),null!=a.getAttribute("autofocus")&&a.focus()}else r in n?n[r]=o:n.setAttribute(r,o)}return n},i.bind=function(t,e){if(t)for(var n in e){var r=e[n];n.split(/\s+/).forEach(function(e){t.addEventListener(e,r)})}},i.unbind=function(t,e){if(t)for(var n in e){var r=e[n];n.split(/\s+/).forEach(function(e){t.removeEventListener(e,r)})}},i.fire=function(t,e,n){var r=document.createEvent("HTMLEvents");for(var i in r.initEvent(e,!0,!0),n)r[i]=n[i];return t.dispatchEvent(r)},i.regExpEscape=function(t){return t.replace(/[-\\^$*+?.()|[\]{}]/g,"\\$&")},i.siblingIndex=function(t){for(var e=0;t=t.previousElementSibling;e++);return e},"undefined"!=typeof self&&(self.Awesomplete=e),"undefined"!=typeof Document&&("loading"!==document.readyState?a():document.addEventListener("DOMContentLoaded",a)),e.$=i,e.$$=o,t.exports&&(t.exports=e)}()},96(t,e,n){"use strict";n.d(e,{QW:()=>lt,Ic:()=>ut,t$:()=>st,$J:()=>ct});var r=n(6540),i=n(7022),o=n(7444),a=n(6417),l=n(7767),u=n(4694),s=n(4284),c=n(4289),f=n(3430),d=n(5997);function h(){return h=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},h.apply(null,arguments)}function p(t){return function(t){if(Array.isArray(t))return _(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||w(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(){var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function o(n,r,i,o){var u=r&&r.prototype instanceof l?r:l,s=Object.create(u.prototype);return v(s,"_invoke",function(n,r,i){var o,l,u,s=0,c=i||[],f=!1,d={p:0,n:0,v:t,a:h,f:h.bind(t,4),d:function(e,n){return o=e,l=0,u=t,d.n=n,a}};function h(n,r){for(l=n,u=r,e=0;!f&&s&&!i&&e<c.length;e++){var i,o=c[e],h=d.p,p=o[2];n>3?(i=p===r)&&(u=o[(l=o[4])?5:(l=3,3)],o[4]=o[5]=t):o[0]<=h&&((i=n<2&&h<o[1])?(l=0,d.v=r,d.n=o[1]):h<p&&(i=n<3||o[0]>r||r>p)&&(o[4]=n,o[5]=r,d.n=p,l=0))}if(i||n>1)return a;throw f=!0,r}return function(i,c,p){if(s>1)throw TypeError("Generator is already running");for(f&&1===c&&h(c,p),l=c,u=p;(e=l<2?t:u)||!f;){o||(l?l<3?(l>1&&(d.n=-1),h(l,u)):d.n=u:d.v=u);try{if(s=2,o){if(l||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,l<2&&(l=0)}else 1===l&&(e=o.return)&&e.call(o),l<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),l=1);o=t}else if((e=(f=d.n<0)?u:n.call(r,d))!==a)break}catch(e){o=t,l=1,u=e}finally{s=1}}return{value:e,done:f}}}(n,i,o),!0),s}var a={};function l(){}function u(){}function s(){}e=Object.getPrototypeOf;var c=[][r]?e(e([][r]())):(v(e={},r,function(){return this}),e),f=s.prototype=l.prototype=Object.create(c);function d(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,v(t,i,"GeneratorFunction")),t.prototype=Object.create(f),t}return u.prototype=s,v(f,"constructor",s),v(s,"constructor",u),u.displayName="GeneratorFunction",v(s,i,"GeneratorFunction"),v(f),v(f,i,"Generator"),v(f,r,function(){return this}),v(f,"toString",function(){return"[object Generator]"}),(m=function(){return{w:o,m:d}})()}function v(t,e,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}v=function(t,e,n,r){function o(e,n){v(t,e,function(t){return this._invoke(e,n,t)})}e?i?i(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r}):t[e]=n:(o("next",0),o("throw",1),o("return",2))},v(t,e,n,r)}function y(t,e,n,r,i,o,a){try{var l=t[o](a),u=l.value}catch(t){return void n(t)}l.done?e(u):Promise.resolve(u).then(r,i)}function b(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var o=t.apply(e,n);function a(t){y(o,r,i,a,l,"next",t)}function l(t){y(o,r,i,a,l,"throw",t)}a(void 0)})}}function g(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,l=[],u=!0,s=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(l.push(r.value),l.length!==e);u=!0);}catch(t){s=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw i}}return l}}(t,e)||w(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(t,e){if(t){if("string"==typeof t)return _(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_(t,e):void 0}}function _(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function A(t){var e,n,l=g((0,o.L4)(a.AG.selectedFileList),2),c=l[0],v=l[1],y=g((0,o.L4)(a.AG.nowFileList),2),w=y[0],_=(y[1],g((0,o.L4)(a.AG.confirm),2)),A=(_[0],_[1]),x=g((0,o.L4)(a.AG.user_base_info),2),E=x[0];x[1];function k(){return(k=b(m().m(function e(n){return m().w(function(e){for(;;)switch(e.n){case 0:t.click&&t.click(n,t.name);case 1:return e.a(2)}},e)}))).apply(this,arguments)}return r.createElement("div",h({},t.extraAttr,{onClick:function(){!function(t){k.apply(this,arguments)}(t.index)},className:"item",role:"button","data-type":t.isLink?"invalid_link":t.type,"data-dir":!t.type||t.type===i.Iw.folder,"aria-selected":null!==(0,u.kW)(c,t.index),"aria-label":t.name,style:{"--filewidth":null!==(e=t.itemWidth)&&void 0!==e?e:"33%"},onDragStart:function(e){return n=t.index,void(c.find(function(t){return t===n})||v([].concat(p(c),[n])));var n},onDrop:function(e){return function(e,n){for(var r,o,a=e.dataTransfer,l=!1,u=0;u<a.items.length;u++)if("file"===a.items[u].kind){l=!0;break}if(!l){var s,c,d;if((null==E||null===(r=E.user_data)||void 0===r?void 0:r.file_list_pagination_mode)===f.yM.pagination){if(s=w.files[n],(null===(c=w.files[n])||void 0===c?void 0:c.type)!==i.Iw.folder)return}else if(s=w.folders[n],w.folders.length<=n)return;A({open:!0,title:"确定将文件移动并覆盖到".concat(null===(o=s)||void 0===o?void 0:o.name,"吗?"),handle:(d=b(m().m(function e(){var n;return m().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,t.draggable_handle(null===(n=s)||void 0===n?void 0:n.name);case 1:return e.a(2)}},e)})),function(){return d.apply(this,arguments)})})}}(e,t.index)},draggable:void 0!==t.draggable_handle}),void 0===t.icon&&r.createElement("div",null,t.type!==i.Iw.image||null==t.path||null!=E&&null!==(n=E.user_data)&&void 0!==n&&n.not_pre_show_image?r.createElement(d.In,{icon:""}):r.createElement("img",{loading:"lazy",src:s.$M.getDownloadUrl(t.path,{mtime:t.mtime,cache:1}),alt:t.name})),void 0!==t.icon&&r.createElement("div",{className:"rotating-div"},r.createElement("span",{className:"material-icons"},t.icon)),r.createElement("div",null,r.createElement("p",{className:"name"},t.name),t.size?r.createElement("p",null,t.size):r.createElement("p",null,"—"),r.createElement("p",null,t.show_mtime)),t.children)}var x=n(7690),E=n(4251),k=n(2389),S=n(8247),O=n(9214);function j(){var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function o(n,r,i,o){var u=r&&r.prototype instanceof l?r:l,s=Object.create(u.prototype);return L(s,"_invoke",function(n,r,i){var o,l,u,s=0,c=i||[],f=!1,d={p:0,n:0,v:t,a:h,f:h.bind(t,4),d:function(e,n){return o=e,l=0,u=t,d.n=n,a}};function h(n,r){for(l=n,u=r,e=0;!f&&s&&!i&&e<c.length;e++){var i,o=c[e],h=d.p,p=o[2];n>3?(i=p===r)&&(u=o[(l=o[4])?5:(l=3,3)],o[4]=o[5]=t):o[0]<=h&&((i=n<2&&h<o[1])?(l=0,d.v=r,d.n=o[1]):h<p&&(i=n<3||o[0]>r||r>p)&&(o[4]=n,o[5]=r,d.n=p,l=0))}if(i||n>1)return a;throw f=!0,r}return function(i,c,p){if(s>1)throw TypeError("Generator is already running");for(f&&1===c&&h(c,p),l=c,u=p;(e=l<2?t:u)||!f;){o||(l?l<3?(l>1&&(d.n=-1),h(l,u)):d.n=u:d.v=u);try{if(s=2,o){if(l||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,l<2&&(l=0)}else 1===l&&(e=o.return)&&e.call(o),l<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),l=1);o=t}else if((e=(f=d.n<0)?u:n.call(r,d))!==a)break}catch(e){o=t,l=1,u=e}finally{s=1}}return{value:e,done:f}}}(n,i,o),!0),s}var a={};function l(){}function u(){}function s(){}e=Object.getPrototypeOf;var c=[][r]?e(e([][r]())):(L(e={},r,function(){return this}),e),f=s.prototype=l.prototype=Object.create(c);function d(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,L(t,i,"GeneratorFunction")),t.prototype=Object.create(f),t}return u.prototype=s,L(f,"constructor",s),L(s,"constructor",u),u.displayName="GeneratorFunction",L(s,i,"GeneratorFunction"),L(f),L(f,i,"Generator"),L(f,r,function(){return this}),L(f,"toString",function(){return"[object Generator]"}),(j=function(){return{w:o,m:d}})()}function L(t,e,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}L=function(t,e,n,r){function o(e,n){L(t,e,function(t){return this._invoke(e,n,t)})}e?i?i(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r}):t[e]=n:(o("next",0),o("throw",1),o("return",2))},L(t,e,n,r)}function T(t){return function(t){if(Array.isArray(t))return P(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||F(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function G(t,e,n,r,i,o,a){try{var l=t[o](a),u=l.value}catch(t){return void n(t)}l.done?e(u):Promise.resolve(u).then(r,i)}function I(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var o=t.apply(e,n);function a(t){G(o,r,i,a,l,"next",t)}function l(t){G(o,r,i,a,l,"throw",t)}a(void 0)})}}function C(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,l=[],u=!0,s=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(l.push(r.value),l.length!==e);u=!0);}catch(t){s=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw i}}return l}}(t,e)||F(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function F(t,e){if(t){if("string"==typeof t)return P(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?P(t,e):void 0}}function P(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function N(t){var e=C((0,o.L4)(a.AG.selectedFileList),2),n=e[0],f=e[1],d=C((0,o.L4)(a.AG.clickFileList),2),h=d[0],p=d[1],m=C((0,o.L4)(a.AG.nowFileList),2),v=m[0],y=m[1],b=C((0,o.L4)(a.AG.confirm),2),g=(b[0],b[1]),w=C((0,o.L4)(a.AG.enterKey),2),_=w[0],L=(w[1],(0,S.kZ)().click_file),G=((0,k.Bd)().t,(0,l.Zp)()),F=((0,l.zy)(),function(){var e=I(j().m(function e(r,o){var a,l,s,d,m,v;return j().w(function(e){for(;;)switch(e.n){case 0:if(null!==(0,u.kW)(n,r))f((0,u.P1)(n,r));else if("ctrl"===_)f([].concat(T(n),[r]));else if("shift"===_){if(a=(0,u.a7)(n),l=a.max,s=a.min,d=[],r>=l)for(m=l;m<=r;m++)d.push(m);else for(v=s;v>=r;v--)d.push(v);f(d)}else f([r]);if(p([].concat(T(h),[r])),setTimeout(function(){p((0,u.P1)(h,r))},300),t.type!==i.Iw.folder){e.n=2;break}if(void 0===h.find(function(t){return t===r})){e.n=1;break}return G((0,u.IO)((0,c.vX)(),o)),f([]),p([]),y({files:[],folders:[]}),e.a(2);case 1:e.n=3;break;case 2:void 0!==h.find(function(t){return t===r})&&L({name:o,size:t.origin_size,opt_shell:!0,mtime:t.mtime});case 3:return e.a(2)}},e)}));return function(t,n){return e.apply(this,arguments)}}()),P=C((0,o.L4)(a.AG.showPrompt),2),N=(P[0],P[1]),z=function(){var t=I(j().m(function t(e){var r,i;return j().w(function(t){for(;;)switch(t.n){case 0:return r=(0,O.ib)(v,n),i=r.map(function(t){return(0,O.Ok)(t.name)}),t.n=1,s.$M.post("cut",{files:i,to:"".concat((0,c.GG)("file",(0,c.vX)()),"/").concat(e)});case 1:t.v,f([]),g({open:!1,handle:null}),G((0,c.vX)());case 2:return t.a(2)}},t)}));return function(e){return t.apply(this,arguments)}}();return r.createElement(A,{extraAttr:{onContextMenu:function(e){!function(t,e,n,r){t.preventDefault(),t.stopPropagation();var o=new E.ik;o.path=(0,u.IO)((0,c.vX)(),e),o.filename=e,o.x=t.clientX,o.y=t.clientY,o.type=n?i.Iw.folder:(0,E.uL)(e),o.size=r,N({show:!0,type:x.PromptEnum.FileMenu,overlay:!1,data:o})}(e,t.name,t.type===i.Iw.folder,t.origin_size)}},draggable_handle:z,name:t.name,index:t.index,mtime:t.mtime,size:t.size,type:t.type,isLink:t.isLink,path:t.path,icon:t.icon,show_mtime:t.show_mtime,click:F,itemWidth:t.itemWidth})}var z=n(4405),M=n(2042),R=n(8815);function W(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=K(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){l=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw o}}}}function B(){var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function o(n,r,i,o){var u=r&&r.prototype instanceof l?r:l,s=Object.create(u.prototype);return D(s,"_invoke",function(n,r,i){var o,l,u,s=0,c=i||[],f=!1,d={p:0,n:0,v:t,a:h,f:h.bind(t,4),d:function(e,n){return o=e,l=0,u=t,d.n=n,a}};function h(n,r){for(l=n,u=r,e=0;!f&&s&&!i&&e<c.length;e++){var i,o=c[e],h=d.p,p=o[2];n>3?(i=p===r)&&(u=o[(l=o[4])?5:(l=3,3)],o[4]=o[5]=t):o[0]<=h&&((i=n<2&&h<o[1])?(l=0,d.v=r,d.n=o[1]):h<p&&(i=n<3||o[0]>r||r>p)&&(o[4]=n,o[5]=r,d.n=p,l=0))}if(i||n>1)return a;throw f=!0,r}return function(i,c,p){if(s>1)throw TypeError("Generator is already running");for(f&&1===c&&h(c,p),l=c,u=p;(e=l<2?t:u)||!f;){o||(l?l<3?(l>1&&(d.n=-1),h(l,u)):d.n=u:d.v=u);try{if(s=2,o){if(l||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,l<2&&(l=0)}else 1===l&&(e=o.return)&&e.call(o),l<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),l=1);o=t}else if((e=(f=d.n<0)?u:n.call(r,d))!==a)break}catch(e){o=t,l=1,u=e}finally{s=1}}return{value:e,done:f}}}(n,i,o),!0),s}var a={};function l(){}function u(){}function s(){}e=Object.getPrototypeOf;var c=[][r]?e(e([][r]())):(D(e={},r,function(){return this}),e),f=s.prototype=l.prototype=Object.create(c);function d(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,D(t,i,"GeneratorFunction")),t.prototype=Object.create(f),t}return u.prototype=s,D(f,"constructor",s),D(s,"constructor",u),u.displayName="GeneratorFunction",D(s,i,"GeneratorFunction"),D(f),D(f,i,"Generator"),D(f,r,function(){return this}),D(f,"toString",function(){return"[object Generator]"}),(B=function(){return{w:o,m:d}})()}function D(t,e,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}D=function(t,e,n,r){function o(e,n){D(t,e,function(t){return this._invoke(e,n,t)})}e?i?i(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r}):t[e]=n:(o("next",0),o("throw",1),o("return",2))},D(t,e,n,r)}function $(t){return function(t){if(Array.isArray(t))return J(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||K(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function H(t,e,n,r,i,o,a){try{var l=t[o](a),u=l.value}catch(t){return void n(t)}l.done?e(u):Promise.resolve(u).then(r,i)}function U(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var o=t.apply(e,n);function a(t){H(o,r,i,a,l,"next",t)}function l(t){H(o,r,i,a,l,"throw",t)}a(void 0)})}}function X(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,l=[],u=!0,s=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(l.push(r.value),l.length!==e);u=!0);}catch(t){s=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw i}}return l}}(t,e)||K(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function K(t,e){if(t){if("string"==typeof t)return J(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?J(t,e):void 0}}function J(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function Y(t){var e=X((0,o.L4)(a.AG.selectedFileList),2),n=e[0],f=e[1],d=X((0,o.L4)(a.AG.clickFileList),2),h=d[0],p=d[1],m=X((0,o.L4)(a.AG.editorSetting),2),v=(m[0],m[1]),y=X((0,o.L4)(a.AG.shellNowDir),2),b=y[0],g=(y[1],X((0,o.L4)(a.AG.sshInfo),2)),w=g[0],_=(g[1],X((0,o.L4)(a.AG.nowFileList),2)),x=_[0],E=_[1],j=X((0,o.L4)(a.AG.enterKey),2),L=j[0],T=(j[1],X((0,o.L4)(a.AG.confirm),2)),G=(T[0],T[1]),I=(0,l.Zp)(),C=(0,k.Bd)().t,F=function(){var e=U(B().m(function e(r,o){var a,l,d,m,y,b,g,_;return B().w(function(e){for(;;)switch(e.n){case 0:if(null!==(0,u.kW)(n,r))f((0,u.P1)(n,r));else if("ctrl"===L)f([].concat($(n),[r]));else if("shift"===L){if(a=(0,u.a7)(n),l=a.max,d=a.min,m=[],r>=l)for(y=l;y<=r;y++)m.push(y);else for(b=d;b>=r;b--)m.push(b);f(m)}else f([r]);if(p([].concat($(h),[r])),setTimeout(function(){p((0,u.P1)(h,r))},300),t.type!==i.Iw.folder){e.n=2;break}if(void 0===h.find(function(t){return t===r})){e.n=1;break}return(g=new z.x).key=w.key,g.dir="/".concat((0,c.GG)("remoteShell",(0,c.vX)())).concat(o),I((0,u.IO)((0,c.vX)(),o)),f([]),p([]),E({files:[],folders:[]}),e.a(2);case 1:e.n=5;break;case 2:if(void 0===h.find(function(t){return t===r})){e.n=5;break}if(_=function(){var e=U(B().m(function e(){var n,r,a;return B().w(function(e){for(;;)switch(e.n){case 0:return(n=new z.x).key=w.key,n.file="/".concat((0,c.GG)("remoteShell",(0,c.vX)())).concat(o),e.n=1,s.Fg.post("get/file/text",n);case 1:r=e.v,a=void 0,o.endsWith(i.Iw.workflow_act)?a="ace/mode/yaml":(o.endsWith(i.Iw.draw)||o.endsWith(i.Iw.excalidraw))&&(a="ace/mode/json"),v({model:a,open:!0,fileName:t.name,save:function(){var t=U(B().m(function t(e){return B().w(function(t){for(;;)switch(t.n){case 0:return n.context=e,t.n=1,s.Fg.post("update/file/text",n);case 1:0===t.v.code&&(S.xK.set_value_temp(""),(0,M.LW)("success"));case 2:return t.a(2)}},t)}));return function(e){return t.apply(this,arguments)}}()}),S.xK.set_value_temp(r.data);case 2:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}(),!("number"==typeof t.origin_size&&t.origin_size>R.o5)){e.n=3;break}return G({open:!0,title:C("提示"),sub_title:"文件超过20MB了确定要打开吗?",handle:function(){var t=U(B().m(function t(){return B().w(function(t){for(;;)switch(t.n){case 0:return G({open:!1,handle:null}),t.n=1,_();case 1:return t.a(2)}},t)}));return function(){return t.apply(this,arguments)}}()}),e.a(2);case 3:return e.n=4,_();case 4:case 5:return e.a(2)}},e)}));return function(t,n){return e.apply(this,arguments)}}(),P=function(){var e=U(B().m(function e(r){var i,o,a,l,c,d,h;return B().w(function(e){for(;;)switch(e.p=e.n){case 0:i=new z.x,Object.assign(i,w),i.target=u.HS.apply(void 0,$(b).concat([r])),o=(0,O.ib)(x,n),a=o.map(function(t){return u.HS.apply(void 0,$(b).concat([t.name]))}),l=W(a),e.p=1,l.s();case 2:if((c=l.n()).done){e.n=5;break}return d=c.value,i.source=d,e.n=3,s.Fg.post("move",i);case 3:if(e.v){e.n=4;break}return e.a(2,!1);case 4:e.n=2;break;case 5:e.n=7;break;case 6:e.p=6,h=e.v,l.e(h);case 7:return e.p=7,l.f(),e.f(7);case 8:return f([]),G({open:!1,handle:null}),e.n=9,t.fileHandler();case 9:return e.a(2)}},e,null,[[1,6,7,8]])}));return function(t){return e.apply(this,arguments)}}();return r.createElement(A,{draggable_handle:P,name:t.name,index:t.index,mtime:t.mtime,size:t.size,type:t.type,itemWidth:t.itemWidth,show_mtime:t.show_mtime,click:F})}function Z(){var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function o(n,r,i,o){var u=r&&r.prototype instanceof l?r:l,s=Object.create(u.prototype);return q(s,"_invoke",function(n,r,i){var o,l,u,s=0,c=i||[],f=!1,d={p:0,n:0,v:t,a:h,f:h.bind(t,4),d:function(e,n){return o=e,l=0,u=t,d.n=n,a}};function h(n,r){for(l=n,u=r,e=0;!f&&s&&!i&&e<c.length;e++){var i,o=c[e],h=d.p,p=o[2];n>3?(i=p===r)&&(u=o[(l=o[4])?5:(l=3,3)],o[4]=o[5]=t):o[0]<=h&&((i=n<2&&h<o[1])?(l=0,d.v=r,d.n=o[1]):h<p&&(i=n<3||o[0]>r||r>p)&&(o[4]=n,o[5]=r,d.n=p,l=0))}if(i||n>1)return a;throw f=!0,r}return function(i,c,p){if(s>1)throw TypeError("Generator is already running");for(f&&1===c&&h(c,p),l=c,u=p;(e=l<2?t:u)||!f;){o||(l?l<3?(l>1&&(d.n=-1),h(l,u)):d.n=u:d.v=u);try{if(s=2,o){if(l||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,l<2&&(l=0)}else 1===l&&(e=o.return)&&e.call(o),l<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),l=1);o=t}else if((e=(f=d.n<0)?u:n.call(r,d))!==a)break}catch(e){o=t,l=1,u=e}finally{s=1}}return{value:e,done:f}}}(n,i,o),!0),s}var a={};function l(){}function u(){}function s(){}e=Object.getPrototypeOf;var c=[][r]?e(e([][r]())):(q(e={},r,function(){return this}),e),f=s.prototype=l.prototype=Object.create(c);function d(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,q(t,i,"GeneratorFunction")),t.prototype=Object.create(f),t}return u.prototype=s,q(f,"constructor",s),q(s,"constructor",u),u.displayName="GeneratorFunction",q(s,i,"GeneratorFunction"),q(f),q(f,i,"Generator"),q(f,r,function(){return this}),q(f,"toString",function(){return"[object Generator]"}),(Z=function(){return{w:o,m:d}})()}function q(t,e,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}q=function(t,e,n,r){function o(e,n){q(t,e,function(t){return this._invoke(e,n,t)})}e?i?i(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r}):t[e]=n:(o("next",0),o("throw",1),o("return",2))},q(t,e,n,r)}function Q(t){return function(t){if(Array.isArray(t))return nt(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||et(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function V(t,e,n,r,i,o,a){try{var l=t[o](a),u=l.value}catch(t){return void n(t)}l.done?e(u):Promise.resolve(u).then(r,i)}function tt(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,l=[],u=!0,s=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(l.push(r.value),l.length!==e);u=!0);}catch(t){s=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw i}}return l}}(t,e)||et(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function et(t,e){if(t){if("string"==typeof t)return nt(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?nt(t,e):void 0}}function nt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function rt(t){var e=tt((0,o.L4)(a.AG.selectedFileList),2),n=e[0],l=e[1],c=tt((0,o.L4)(a.AG.clickFileList),2),f=c[0],d=c[1],h=tt((0,o.L4)(a.AG.enterKey),2),p=h[0],m=(h[1],(0,S.kZ)().click_file),v=tt((0,o.L4)(a.AG.nowFileList),2),y=(v[0],v[1],(0,k.Bd)().t),b=tt((0,o.L4)(a.AG.showPrompt),2),g=(b[0],b[1]),w=((0,O.oT)(),(0,O.xp)()),_=function(){var e,r=(e=Z().m(function e(r,o){var a,c,h,v,b,g,_;return Z().w(function(e){for(;;)switch(e.n){case 0:if(null!==(0,u.kW)(n,r))l((0,u.P1)(n,r));else if("ctrl"===p)l([].concat(Q(n),[r]));else if("shift"===p){if(a=(0,u.a7)(n),c=a.max,h=a.min,v=[],r>=c)for(b=c;b<=r;b++)v.push(b);else for(g=h;g>=r;g--)v.push(g);l(v)}else l([r]);if(d([].concat(Q(f),[r])),setTimeout(function(){d((0,u.P1)(f,r))},300),t.type!==i.Iw.folder){e.n=1;break}return e.a(2);case 1:if(void 0===(_=f.find(function(t){return t===r}))){e.n=3;break}if(!w(o)){e.n=2;break}return e.a(2);case 2:m({file_path:t.item_list[_].path,file_url:s.$M.getDownloadUrlV2(t.item_list[_].path,"share_download",{share_id:t.share.share_id,share_token:t.share.share_token}),name:o,size:t.origin_size,opt_shell:!0,mtime:t.mtime,not_type_tip:y("未知类型,请下载查看")});case 3:return e.a(2)}},e)}),function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function a(t){V(o,r,i,a,l,"next",t)}function l(t){V(o,r,i,a,l,"throw",t)}a(void 0)})});return function(t,e){return r.apply(this,arguments)}}(),j=function(e,n,r,o){e.preventDefault(),e.stopPropagation();var a,l=new E.ik,u=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=et(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){l=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw o}}}}(t.item_list);try{for(u.s();!(a=u.n()).done;){var s=a.value;if(s.name===n){l.path=s.path;break}}}catch(t){u.e(t)}finally{u.f()}l.is_share=!0,l.filename=n,l.x=e.clientX,l.y=e.clientY,l.type=r?i.Iw.folder:(0,E.uL)(n),l.size=o,l.share_token=t.share.share_token,l.share_id=t.share.share_id,g({show:!0,type:x.PromptEnum.FileMenu,overlay:!1,data:l})};return r.createElement(A,{extraAttr:{onContextMenu:function(e){j(e,t.name,t.type===i.Iw.folder,t.origin_size)}},name:t.name,index:t.index,mtime:t.mtime,size:t.size,type:t.type,itemWidth:t.itemWidth,show_mtime:t.show_mtime,click:_})}function it(){return it=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},it.apply(null,arguments)}function ot(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,l=[],u=!0,s=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(l.push(r.value),l.length!==e);u=!0);}catch(t){s=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw i}}return l}}(t,e)||function(t,e){if(t){if("string"==typeof t)return at(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?at(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function at(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function lt(t){var e,n,i=t.handleContextMenu,l=t.file_list,u=t.clickBlank,s=t.share,c=ot((0,o.L4)(a.AG.user_base_info),2),f=c[0],d=(c[1],(0,r.useRef)(null)),h=((0,k.Bd)().t,(0,O.OJ)()),p=(0,S.hg)().file_is_running;return(0,O.UK)(l,[],d),r.createElement("div",{onContextMenu:i,id:"listing",style:{paddingBottom:"10rem"},className:"mosaic file-icons ".concat(null!==(e=null==f||null===(n=f.user_data)||void 0===n?void 0:n.file_list_show_type)&&void 0!==e?e:""),ref:d},r.createElement("div",{onClick:u},l.map(function(t,e){return r.createElement(r.Fragment,{key:e+0},r.createElement(rt,it({share:s,item_list:l,icon:p(t.name)?"refresh":void 0,itemWidth:h,index:e+0},t)))})))}function ut(t){var e,n,i=t.handleContextMenu,l=t.file_list,u=t.folder_list,s=t.clickBlank,c=t.fileHandler,f=ot((0,o.L4)(a.AG.user_base_info),2),d=f[0],h=(f[1],(0,r.useRef)(null)),p=(0,k.Bd)().t,m=(0,O.OJ)(),v=(0,S.hg)().file_is_running,y=ot((0,o.L4)(a.AG.fileShellShow),2),b=y[0],g=y[1],w=(0,r.useMemo)(function(){var t;return null!==(t=null==u?void 0:u.length)&&void 0!==t?t:0},[u]);return(0,O.ei)(h,x.PromptEnum.SshUpload),(0,O.UK)(l,u,h),(0,r.useEffect)(function(){return function(){b.show&&g({show:!1,path:""})}},[]),r.createElement("div",{onContextMenu:i,id:"listing",style:{paddingBottom:"10rem"},className:"mosaic file-icons ".concat(null!==(e=null==d||null===(n=d.user_data)||void 0===n?void 0:n.file_list_show_type)&&void 0!==e?e:""),ref:h},u&&u.length>0&&r.createElement("h2",null,p("文件夹")),u&&r.createElement("div",{onClick:s},u.map(function(t,e){return r.createElement(r.Fragment,{key:e},r.createElement(Y,it({fileHandler:c,itemWidth:m,index:e},t)))})),l&&l.length>0&&r.createElement("h2",{onClick:s},p("文件")),l&&r.createElement("div",{onClick:s},l.map(function(t,e){return r.createElement(r.Fragment,{key:e+w},r.createElement(Y,it({fileHandler:c,icon:v(t.name)?"refresh":void 0,itemWidth:m,index:e+w},t)))})))}function st(t){var e,n,i=t.handleContextMenu,l=t.file_list,u=t.folder_list,s=t.clickBlank,c=ot((0,o.L4)(a.AG.user_base_info),2),f=c[0],d=(c[1],(0,r.useRef)(null)),h=(0,k.Bd)().t,p=ot((0,o.L4)(a.AG.zoom_style_by_percent),1)[0],m=(0,O.OJ)(),v=(0,S.hg)().file_is_running,y=ot((0,o.L4)(a.AG.fileShellShow),2),b=y[0],g=y[1],w=(0,r.useMemo)(function(){var t;return null!==(t=null==u?void 0:u.length)&&void 0!==t?t:0},[u]),_=(0,O.pi)(p);return(0,O.ei)(d,x.PromptEnum.FilesUpload),(0,O.UK)(l,u,d),(0,r.useEffect)(function(){return function(){b.show&&g({show:!1,path:""})}},[]),r.createElement("div",{onContextMenu:i,id:"listing",style:{paddingBottom:"10rem",fontSize:_.fontSize},className:"mosaic file-icons ".concat(null!==(e=null==f||null===(n=f.user_data)||void 0===n?void 0:n.file_list_show_type)&&void 0!==e?e:""),ref:d},u&&u.length>0&&r.createElement("h2",null,h("文件夹")),u&&r.createElement("div",{onClick:s},u.map(function(t,e){return r.createElement(r.Fragment,{key:e},r.createElement(N,it({itemWidth:m,index:e},t)))})),l&&l.length>0&&r.createElement("h2",{onClick:s},h("文件")),l&&r.createElement("div",{onClick:s},l.map(function(t,e){return r.createElement(r.Fragment,{key:e+w},r.createElement(N,it({icon:v(t.name)?"refresh":void 0,itemWidth:m,index:e+w},t)))})))}function ct(t){var e,n,i=t.handleContextMenu,l=t.list,u=t.clickBlank,s=ot((0,o.L4)(a.AG.user_base_info),2),c=s[0],f=(s[1],(0,r.useRef)(null)),d=((0,k.Bd)().t,ot((0,o.L4)(a.AG.zoom_style_by_percent),1)[0]),h=(0,O.OJ)(),p=(0,S.hg)().file_is_running,m=ot((0,o.L4)(a.AG.fileShellShow),2),v=m[0],y=m[1],b=ot((0,o.L4)(a.AG.enterKey),2),g=(b[0],b[1],ot((0,o.L4)(a.AG.selectedFileList),2)),w=(g[0],g[1],ot((0,o.L4)(a.AG.file_page),2)),_=(w[0],w[1]),A=(0,O.pi)(d);return(0,O.UK)(l,[],f),(0,O.ei)(f,x.PromptEnum.FilesUpload),(0,O.SQ)(f,function(){_(function(t){return t.page_num<0?t:{page_size:t.page_size,page_num:t.page_num+1}})},function(){}),(0,r.useEffect)(function(){return function(){v.show&&y({show:!1,path:""})}},[]),r.createElement("div",{onContextMenu:i,id:"listing",style:{paddingBottom:"10rem",fontSize:A.fontSize},className:"mosaic file-icons ".concat(null!==(e=null==c||null===(n=c.user_data)||void 0===n?void 0:n.file_list_show_type)&&void 0!==e?e:""),ref:f},l&&r.createElement("div",{onClick:u},l.map(function(t,e){return r.createElement(r.Fragment,{key:e},r.createElement(N,it({icon:p(t.name)?"refresh":void 0,itemWidth:h,index:e},t)))})))}},6960(t,e,n){"use strict";n.d(e,{s:()=>a});var r=n(2635),i=1440,o=525600;function a(t){t=t>1e12?t:1e3*t;var e=Date.now(),n=Math.abs(e-t)/6e4;return n<1?r.Ay.t("小于一分钟"):n<60?"".concat(n.toFixed(0)," ").concat(r.Ay.t("分钟前")):n<i?"".concat((n/60).toFixed(0)," ").concat(r.Ay.t("小时前")):n<43200?"".concat((n/i).toFixed(0)," ").concat(r.Ay.t("天前")):n<o?"".concat((n/43200).toFixed(0)," ").concat(r.Ay.t("月前")):"".concat((n/o).toFixed(0)," ").concat(r.Ay.t("年前"))}},1028(t,e,n){"use strict";n.d(e,{A:()=>l});var r=n(1601),i=n.n(r),o=n(6314),a=n.n(o)()(i());a.push([t.id,'.awesomplete [hidden] {\n display: none;\n}\n\n.awesomplete .visually-hidden {\n position: absolute;\n clip: rect(0, 0, 0, 0);\n}\n\n.awesomplete {\n display: inline-block;\n position: relative;\n}\n\n.awesomplete > input {\n display: block;\n}\n\n.awesomplete > ul {\n position: absolute;\n left: 0;\n z-index: 1;\n min-width: 100%;\n box-sizing: border-box;\n list-style: none;\n padding: 0;\n margin: 0;\n background: #fff;\n}\n\n.awesomplete > ul:empty {\n display: none;\n}\n\n.awesomplete > ul {\n\tborder-radius: .3em;\n\tmargin: .2em 0 0;\n\tbackground: hsla(0,0%,100%,.9);\n\tbackground: linear-gradient(to bottom right, white, hsla(0,0%,100%,.8));\n\tborder: 1px solid rgba(0,0,0,.3);\n\tbox-shadow: .05em .2em .6em rgba(0,0,0,.2);\n\ttext-shadow: none;\n}\n\n@supports (transform: scale(0)) {\n\t.awesomplete > ul {\n\t\ttransition: .3s cubic-bezier(.4,.2,.5,1.4);\n\t\ttransform-origin: 1.43em -.43em;\n\t}\n\t\n\t.awesomplete > ul[hidden],\n\t.awesomplete > ul:empty {\n\t\topacity: 0;\n\t\ttransform: scale(0);\n\t\tdisplay: block;\n\t\tvisibility: hidden;\n\t\ttransition-timing-function: ease;\n\t}\n}\n\n\t/* Pointer */\n\t.awesomplete > ul:before {\n\t\tcontent: "";\n\t\tposition: absolute;\n\t\ttop: -.43em;\n\t\tleft: 1em;\n\t\twidth: 0; height: 0;\n\t\tpadding: .4em;\n\t\tbackground: white;\n\t\tborder: inherit;\n\t\tborder-right: 0;\n\t\tborder-bottom: 0;\n\t\t-webkit-transform: rotate(45deg);\n\t\ttransform: rotate(45deg);\n\t}\n\n\t.awesomplete > ul > li {\n\t\tposition: relative;\n\t\tpadding: .2em .5em;\n\t\tcursor: pointer;\n\t}\n\t\n\t.awesomplete > ul > li:hover {\n\t\tbackground: hsl(200, 40%, 80%);\n\t\tcolor: black;\n\t}\n\t\n\t.awesomplete > ul > li[aria-selected="true"] {\n\t\tbackground: hsl(205, 40%, 40%);\n\t\tcolor: white;\n\t}\n\t\n\t\t.awesomplete mark {\n\t\t\tbackground: hsl(65, 100%, 50%);\n\t\t}\n\t\t\n\t\t.awesomplete li:hover mark {\n\t\t\tbackground: hsl(68, 100%, 41%);\n\t\t}\n\t\t\n\t\t.awesomplete li[aria-selected="true"] mark {\n\t\t\tbackground: hsl(86, 100%, 21%);\n\t\t\tcolor: inherit;\n\t\t}\n',""]);const l=a},9145(t,e,n){"use strict";var r=n(5072),i=n.n(r),o=n(7825),a=n.n(o),l=n(7659),u=n.n(l),s=n(5056),c=n.n(s),f=n(540),d=n.n(f),h=n(1113),p=n.n(h),m=n(1028),v={};v.styleTagTransform=p(),v.setAttributes=c(),v.insert=u().bind(null,"head"),v.domAPI=a(),v.insertStyleElement=d();i()(m.A,v),m.A&&m.A.locals&&m.A.locals}}]);
@@ -1 +1 @@
1
- <!doctype html><html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>{{{web_site_title}}}</title><link rel="icon" type="image/png" sizes="32x32" href="favicon-32x32.png"/><link rel="icon" type="image/png" sizes="16x16" href="favicon-16x16.png"/><script defer="defer" src="main.c50827cabc75f4aaf43c.js"></script></head><body><div id="root"></div></body><script id="pre_code" type="text/template">return {{{Windows_FileCat}}};</script><script>window.EXCALIDRAW_ASSET_PATH = "/";window.FileCat;</script></html>
1
+ <!doctype html><html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>{{{web_site_title}}}</title><link rel="icon" type="image/png" sizes="32x32" href="favicon-32x32.png"/><link rel="icon" type="image/png" sizes="16x16" href="favicon-16x16.png"/><script defer="defer" src="main.2f8f3931a2593fba5ed0.js"></script></head><body><div id="root"></div></body><script id="pre_code" type="text/template">return {{{Windows_FileCat}}};</script><script>window.EXCALIDRAW_ASSET_PATH = "/";window.FileCat;</script></html>