You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

488 lines
216 KiB

/*
THIS IS A GENERATED/BUNDLED FILE BY ESBUILD
If you want to view the source, visit the plugins github repository
https://github.com/ozntel/file-tree-alternative
*/
3 years ago
var qf=Object.create;var _n=Object.defineProperty,Gf=Object.defineProperties,Kf=Object.getOwnPropertyDescriptor,Yf=Object.getOwnPropertyDescriptors,Zf=Object.getOwnPropertyNames,Jn=Object.getOwnPropertySymbols,Xf=Object.getPrototypeOf,go=Object.prototype.hasOwnProperty,fa=Object.prototype.propertyIsEnumerable;var da=(e,t,n)=>t in e?_n(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ue=(e,t)=>{for(var n in t||(t={}))go.call(t,n)&&da(e,n,t[n]);if(Jn)for(var n of Jn(t))fa.call(t,n)&&da(e,n,t[n]);return e},_t=(e,t)=>Gf(e,Yf(t)),pa=e=>_n(e,"__esModule",{value:!0});var ha=(e,t)=>{var n={};for(var r in e)go.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Jn)for(var r of Jn(e))t.indexOf(r)<0&&fa.call(e,r)&&(n[r]=e[r]);return n};var ze=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Jf=(e,t)=>{pa(e);for(var n in t)_n(e,n,{get:t[n],enumerable:!0})},Qf=(e,t,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Zf(t))!go.call(e,r)&&r!=="default"&&_n(e,r,{get:()=>t[r],enumerable:!(n=Kf(t,r))||n.enumerable});return e},Re=e=>Qf(pa(_n(e!=null?qf(Xf(e)):{},"default",e&&e.__esModule&&"default"in e?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e);var Ee=(e,t,n)=>new Promise((r,o)=>{var i=l=>{try{s(n.next(l))}catch(c){o(c)}},a=l=>{try{s(n.throw(l))}catch(c){o(c)}},s=l=>l.done?r(l.value):Promise.resolve(l.value).then(i,a);s((n=n.apply(e,t)).next())});var ns=ze((H0,ts)=>{"use strict";var Cd="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";ts.exports=Cd});var as=ze((q0,is)=>{"use strict";var Nd=ns();function rs(){}function os(){}os.resetWarningCache=rs;is.exports=function(){function e(r,o,i,a,s,l){if(l!==Nd){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}e.isRequired=e;function t(){return e}var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:os,resetWarningCache:rs};return n.PropTypes=n,n}});var ko=ze((Y0,ss)=>{ss.exports=as()();var G0,K0});var Fs=ze((Z0,sr)=>{var ls,cs,us,fs,ds,ps,hs,ms,vs,ir,Lo,_s,gs,ys,Ht,bs,ws,Ss,Ts,xs,Es,Rs,As,ar;(function(e){var t=typeof global=="object"?global:typeof self=="object"?self:typeof this=="object"?this:{};typeof define=="function"&&define.amd?define("tslib",["exports"],function(r){e(n(t,n(r)))}):typeof sr=="object"&&typeof sr.exports=="object"?e(n(t,n(sr.exports))):e(n(t));function n(r,o){return r!==t&&(typeof Object.create=="function"?Object.defineProperty(r,"__esModule",{value:!0}):r.__esModule=!0),function(i,a){return r[i]=o?o(i,a):a}}})(function(e){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])};ls=function(r,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");t(r,o);function i(){this.constructor=r}r.prototype=o===null?Object.create(o):(i.prototype=o.prototype,new i)},cs=Object.assign||function(r){for(var o,i=1,a=arguments.length;i<a;i++){o=arguments[i];for(var s in o)Object.prototype.hasOwnProperty.call(o,s)&&(r[s]=o[s])}return r},us=function(r,o){var i={};for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&o.indexOf(a)<0&&(i[a]=r[a]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,a=Object.getOwnPropertySymbols(r);s<a.length;s++)o.indexOf(a[s])<0&&Object.prototype.propertyIsEnumerable.call(r,a[s])&&(i[a[s]]=r[a[s]]);return i},fs=function(r,o,i,a){var s=arguments.length,l=s<3?o:a===null?a=Object.getOwnPropertyDescriptor(o,i):a,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(r,o,i,a);else for(var u=r.length-1;u>=0;u--)(c=r[u])&&(l=(s<3?c(l):s>3?c(o,i,l):c(o,i))||l);return s>3&&l&&Object.defineProperty(o,i,l),l},ds=function(r,o){return function(i,a){o(i,a,r)}},ps=function(r,o){if
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function jd(e,t){if(!!e){if(typeof e=="string")return Ms(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ms(e,t)}}function Ms(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Bd(e,t){var n=e==null?null:typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],o=!0,i=!1,a,s;try{for(n=n.call(e);!(o=(a=n.next()).done)&&(r.push(a.value),!(t&&r.length===t));o=!0);}catch(l){i=!0,s=l}finally{try{!o&&n.return!=null&&n.return()}finally{if(i)throw s}}return r}}function Wd(e){if(Array.isArray(e))return e}var Hd="file-invalid-type",qd="file-too-large",Gd="file-too-small",Kd="too-many-files";var Yd=function(t){t=Array.isArray(t)&&t.length===1?t[0]:t;var n=Array.isArray(t)?"one of ".concat(t.join(", ")):t;return{code:Hd,message:"File type must be ".concat(n)}},$s=function(t){return{code:qd,message:"File is larger than ".concat(t," bytes")}},Us=function(t){return{code:Gd,message:"File is smaller than ".concat(t," bytes")}},zs={code:Kd,message:"Too many files"};function Vo(e,t){var n=e.type==="application/x-moz-file"||(0,Is.default)(e,t);return[n,n?null:Yd(t)]}function Mo(e,t,n){if(En(e.size))if(En(t)&&En(n)){if(e.size>n)return[!1,$s(n)];if(e.size<t)return[!1,Us(t)]}else{if(En(t)&&e.size<t)return[!1,Us(t)];if(En(n)&&e.size>n)return[!1,$s(n)]}return[!0,null]}function En(e){return e!=null}function js(e){var t=e.files,n=e.accept,r=e.minSize,o=e.maxSize,i=e.multiple,a=e.maxFiles;return!i&&t.length>1||i&&a>=1&&t.length>a?!1:t.every(function(s){var l=Vo(s,n),c=Vs(l,1),u=c[0],d=Mo(s,r,o),f=Vs(d,1),m=f[0];return u&&m})}function Rn(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble!="undefined"?e.cancelBubble:!1}function An(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(t){return t==="Files"||t==="application/x-moz-file"}):!!e.target&&!!e.target.files}function Io(e){e.preventDefault()}function Zd(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function Xd(e){return e.indexOf("Edge/")!==-1}function Bs(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return Zd(e)||Xd(e)}function st(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(r){for(var o=arguments.length,i=new Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];return t.some(function(s){return!Rn(r)&&s&&s.apply(void 0,[r].concat(i)),Rn(r)})}}var Jd=["children"],Qd=["open"],ep=["refKey","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],tp=["refKey","onChange","onClick"];function np(e){return ip(e)||op(e)||Ws(e)||rp()}function rp(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function op(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ip(e){if(Array.isArray(e))return Uo(e)}function $o(e,t){return lp(e)||sp(e,t)||Ws(e,t)||ap()}function ap(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ws(e,t){if(!!e){if(typeof e=="string")return Uo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Uo(e,t)}}function Uo(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function sp(e,t){var n=e==null?null:typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],o=!0,i=!1,a,s;try{for(n=n.call(e);!(o=(a=n.next()).done)&&(r.push(a.value),!(t&&r.length===t));o=!0);}catch(l){i=!0,s=l}finally{try{!o&&n.return!=null&&n.return()}finally{if(i)throw s}}return r}}function lp(e){if(Array.isArray(e))return e}function Hs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Se(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Hs(Object(n),!0).forEach(function(r){zo(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hs(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function zo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lr(e,t){if(e==null)return{};var n=cp(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(n[r]=e[r]))}return n}function cp(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var cr=No(function(e,t){var n=e.children,r=lr(e,Jd),o=up(r),i=o.open,a=lr(o,Qd);return nr(t,function(){return{open:i}},[i]),b.createElement(Ge,null,n(Se(Se({},a),{},{open:i})))});cr.displayName="Dropzone";var qs={disabled:!1,getFilesFromEvent:Po,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null};cr.defaultProps=qs;cr.propTypes={children:ve.default.func,accept:ve.default.oneOfType([ve.default.string,ve.default.arrayOf(ve.default.string)]),multiple:ve.default.bool,preventDropOnDocument:ve.default.bool,noClick:ve.default.bool,noKeyboard:ve.default.bool,noDrag:ve.default.bool,noDragEventsBubbling:ve.default.bool,minSize:ve.default.number,maxSize:ve.default.number,maxFiles:ve.default.number,disabled:ve.default.bool,getFilesFromEvent:ve.default.func,onFileDialogCancel:ve.default.func,onDragEnter:ve.default.func,onDragLeave:ve.default.func,onDragOver:ve.default.func,onDrop:ve.default.func,onDropAccepted:ve.default.func,onDropRejected:ve.default.func,validator:ve.default.func};var ur=cr,Gs={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,draggedFiles:[],acceptedFiles:[],fileRejections:[]};function up(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=Se(Se({},qs),e),n=t.accept,r=t.disabled,o=t.getFilesFromEvent,i=t.maxSize,a=t.minSize,s=t.multiple,l=t.maxFiles,c=t.onDragEnter,u=t.onDragLeave,d=t.onDragOver,f=t.onDrop,m=t.onDropAccepted,p=t.onDropRejected,y=t.onFileDialogCancel,v=t.preventDropOnDocument,w=t.noClick,S=t.noKeyboard,T=t.noDrag,R=t.noDragEventsBubbling,U=t.validator,V=yt(null),I=yt(null),B=Sn(fp,Gs),Z=$o(B,2),W=Z[0],ee=Z[1],Te=W.isFocused,Q=W.isFileDialogActive,ne=W.draggedFiles,_e=je(function(){I.current&&(ee({type:"openDialog"}),I.current.value=null,I.current.click())},[ee]),oe=function(){Q&&setTimeout(function(){if(I.current){var J=I.current.files;J.length||(ee({type:"closeDialog"}),typeof y=="function"&&y())}},300)};Le(function(){return window.addEventListener("focus",oe,!1),function(){window.removeEventListener("focus",oe,!1)}},[I,Q,y]);var ie=je(function(P){!V.current||!V.
overflow: visible;
}
.svg-inline--fa {
display: inline-block;
font-size: inherit;
height: 1em;
overflow: visible;
vertical-align: -0.125em;
}
.svg-inline--fa.fa-lg {
vertical-align: -0.225em;
}
.svg-inline--fa.fa-w-1 {
width: 0.0625em;
}
.svg-inline--fa.fa-w-2 {
width: 0.125em;
}
.svg-inline--fa.fa-w-3 {
width: 0.1875em;
}
.svg-inline--fa.fa-w-4 {
width: 0.25em;
}
.svg-inline--fa.fa-w-5 {
width: 0.3125em;
}
.svg-inline--fa.fa-w-6 {
width: 0.375em;
}
.svg-inline--fa.fa-w-7 {
width: 0.4375em;
}
.svg-inline--fa.fa-w-8 {
width: 0.5em;
}
.svg-inline--fa.fa-w-9 {
width: 0.5625em;
}
.svg-inline--fa.fa-w-10 {
width: 0.625em;
}
.svg-inline--fa.fa-w-11 {
width: 0.6875em;
}
.svg-inline--fa.fa-w-12 {
width: 0.75em;
}
.svg-inline--fa.fa-w-13 {
width: 0.8125em;
}
.svg-inline--fa.fa-w-14 {
width: 0.875em;
}
.svg-inline--fa.fa-w-15 {
width: 0.9375em;
}
.svg-inline--fa.fa-w-16 {
width: 1em;
}
.svg-inline--fa.fa-w-17 {
width: 1.0625em;
}
.svg-inline--fa.fa-w-18 {
width: 1.125em;
}
.svg-inline--fa.fa-w-19 {
width: 1.1875em;
}
.svg-inline--fa.fa-w-20 {
width: 1.25em;
}
.svg-inline--fa.fa-pull-left {
margin-right: 0.3em;
width: auto;
}
.svg-inline--fa.fa-pull-right {
margin-left: 0.3em;
width: auto;
}
.svg-inline--fa.fa-border {
height: 1.5em;
}
.svg-inline--fa.fa-li {
width: 2em;
}
.svg-inline--fa.fa-fw {
width: 1.25em;
}
.fa-layers svg.svg-inline--fa {
bottom: 0;
left: 0;
margin: auto;
position: absolute;
right: 0;
top: 0;
}
.fa-layers {
display: inline-block;
height: 1em;
position: relative;
text-align: center;
vertical-align: -0.125em;
width: 1em;
}
.fa-layers svg.svg-inline--fa {
-webkit-transform-origin: center center;
transform-origin: center center;
}
.fa-layers-counter, .fa-layers-text {
display: inline-block;
position: absolute;
text-align: center;
}
.fa-layers-text {
left: 50%;
top: 50%;
-webkit-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
-webkit-transform-origin: center center;
transform-origin: center center;
}
.fa-layers-counter {
background-color: #ff253a;
border-radius: 1em;
-webkit-box-sizing: border-box;
box-sizing: border-box;
color: #fff;
height: 1.5em;
line-height: 1;
max-width: 5em;
min-width: 1.5em;
overflow: hidden;
padding: 0.25em;
right: 0;
text-overflow: ellipsis;
top: 0;
-webkit-transform: scale(0.25);
transform: scale(0.25);
-webkit-transform-origin: top right;
transform-origin: top right;
}
.fa-layers-bottom-right {
bottom: 0;
right: 0;
top: auto;
-webkit-transform: scale(0.25);
transform: scale(0.25);
-webkit-transform-origin: bottom right;
transform-origin: bottom right;
}
.fa-layers-bottom-left {
bottom: 0;
left: 0;
right: auto;
top: auto;
-webkit-transform: scale(0.25);
transform: scale(0.25);
-webkit-transform-origin: bottom left;
transform-origin: bottom left;
}
.fa-layers-top-right {
right: 0;
top: 0;
-webkit-transform: scale(0.25);
transform: scale(0.25);
-webkit-transform-origin: top right;
transform-origin: top right;
}
.fa-layers-top-left {
left: 0;
right: auto;
top: 0;
-webkit-transform: scale(0.25);
transform: scale(0.25);
-webkit-transform-origin: top left;
transform-origin: top left;
}
.fa-lg {
font-size: 1.3333333333em;
line-height: 0.75em;
vertical-align: -0.0667em;
}
.fa-xs {
font-size: 0.75em;
}
.fa-sm {
font-size: 0.875em;
}
.fa-1x {
font-size: 1em;
}
.fa-2x {
font-size: 2em;
}
.fa-3x {
font-size: 3em;
}
.fa-4x {
font-size: 4em;
}
.fa-5x {
font-size: 5em;
}
.fa-6x {
font-size: 6em;
}
.fa-7x {
font-size: 7em;
}
.fa-8x {
font-size: 8em;
}
.fa-9x {
font-size: 9em;
}
.fa-10x {
font-size: 10em;
}
.fa-fw {
text-align: center;
width: 1.25em;
}
.fa-ul {
list-style-type: none;
margin-left: 2.5em;
padding-left: 0;
}
.fa-ul > li {
position: relative;
}
.fa-li {
left: -2em;
position: absolute;
text-align: center;
width: 2em;
line-height: inherit;
}
.fa-border {
border: solid 0.08em #eee;
border-radius: 0.1em;
padding: 0.2em 0.25em 0.15em;
}
.fa-pull-left {
float: left;
}
.fa-pull-right {
float: right;
}
.fa.fa-pull-left,
.fas.fa-pull-left,
.far.fa-pull-left,
.fal.fa-pull-left,
.fab.fa-pull-left {
margin-right: 0.3em;
}
.fa.fa-pull-right,
.fas.fa-pull-right,
.far.fa-pull-right,
.fal.fa-pull-right,
.fab.fa-pull-right {
margin-left: 0.3em;
}
.fa-spin {
-webkit-animation: fa-spin 2s infinite linear;
animation: fa-spin 2s infinite linear;
}
.fa-pulse {
-webkit-animation: fa-spin 1s infinite steps(8);
animation: fa-spin 1s infinite steps(8);
}
@-webkit-keyframes fa-spin {
0% {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
100% {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}
@keyframes fa-spin {
0% {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
100% {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}
.fa-rotate-90 {
-ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";
-webkit-transform: rotate(90deg);
transform: rotate(90deg);
}
.fa-rotate-180 {
-ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";
-webkit-transform: rotate(180deg);
transform: rotate(180deg);
}
.fa-rotate-270 {
-ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";
-webkit-transform: rotate(270deg);
transform: rotate(270deg);
}
.fa-flip-horizontal {
-ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)";
-webkit-transform: scale(-1, 1);
transform: scale(-1, 1);
}
.fa-flip-vertical {
-ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";
-webkit-transform: scale(1, -1);
transform: scale(1, -1);
}
.fa-flip-both, .fa-flip-horizontal.fa-flip-vertical {
-ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";
-webkit-transform: scale(-1, -1);
transform: scale(-1, -1);
}
:root .fa-rotate-90,
:root .fa-rotate-180,
:root .fa-rotate-270,
:root .fa-flip-horizontal,
:root .fa-flip-vertical,
:root .fa-flip-both {
-webkit-filter: none;
filter: none;
}
.fa-stack {
display: inline-block;
height: 2em;
position: relative;
width: 2.5em;
}
.fa-stack-1x,
.fa-stack-2x {
bottom: 0;
left: 0;
margin: auto;
position: absolute;
right: 0;
top: 0;
}
.svg-inline--fa.fa-stack-1x {
height: 1em;
width: 1.25em;
}
.svg-inline--fa.fa-stack-2x {
height: 2em;
width: 2.5em;
}
.fa-inverse {
color: #fff;
}
.sr-only {
border: 0;
clip: rect(0, 0, 0, 0);
height: 1px;
margin: -1px;
overflow: hidden;
padding: 0;
position: absolute;
width: 1px;
}
.sr-only-focusable:active, .sr-only-focusable:focus {
clip: auto;
height: auto;
margin: 0;
overflow: visible;
position: static;
width: auto;
}
.svg-inline--fa .fa-primary {
fill: var(--fa-primary-color, currentColor);
opacity: 1;
opacity: var(--fa-primary-opacity, 1);
}
.svg-inline--fa .fa-secondary {
fill: var(--fa-secondary-color, currentColor);
opacity: 0.4;
opacity: var(--fa-secondary-opacity, 0.4);
}
.svg-inline--fa.fa-swap-opacity .fa-primary {
opacity: 0.4;
opacity: var(--fa-secondary-opacity, 0.4);
}
.svg-inline--fa.fa-swap-opacity .fa-secondary {
opacity: 1;
opacity: var(--fa-primary-opacity, 1);
}
.svg-inline--fa mask .fa-primary,
.svg-inline--fa mask .fa-secondary {
fill: black;
}
.fad.fa-inverse {
color: #fff;
3 years ago
}`;function Zp(){var e=tl,t=nl,n=Be.familyPrefix,r=Be.replacementClass,o=Yp;if(n!==e||r!==t){var i=new RegExp("\\.".concat(e,"\\-"),"g"),a=new RegExp("\\--".concat(e,"\\-"),"g"),s=new RegExp("\\.".concat(t),"g");o=o.replace(i,".".concat(n,"-")).replace(a,"--".concat(n,"-")).replace(s,".".concat(r))}return o}var Xp=function(){function e(){dp(this,e),this.definitions={}}return pp(e,[{key:"add",value:function(){for(var n=this,r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var a=o.reduce(this._pullDefinitions,{});Object.keys(a).forEach(function(s){n.definitions[s]=ue({},n.definitions[s]||{},a[s]),gl(s,a[s]),bl()})}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(n,r){var o=r.prefix&&r.iconName&&r.icon?{0:r}:r;return Object.keys(o).map(function(i){var a=o[i],s=a.prefix,l=a.iconName,c=a.icon;n[s]||(n[s]={}),n[s][l]=c}),n}}]),e}();function Jp(){Be.autoAddCss&&!Rl&&(Op(Zp()),Rl=!0)}function Qp(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(r){return Sl(r)})}}),Object.defineProperty(e,"node",{get:function(){if(!!Bo){var r=Me.createElement("div");return r.innerHTML=e.html,r.children}}}),e}function El(e){var t=e.prefix,n=t===void 0?"fa":t,r=e.iconName;if(!!r)return wl(th.definitions,n,r)||wl(pt.styles,n,r)}function eh(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=(t||{}).icon?t:El(t||{}),o=n.mask;return o&&(o=(o||{}).icon?o:El(o||{})),e(r,ue({},n,{mask:o}))}}var th=new Xp;var Rl=!1;var gr={transform:function(t){return Kp(t)}},Al=eh(function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.transform,r=n===void 0?Kt:n,o=t.symbol,i=o===void 0?!1:o,a=t.mask,s=a===void 0?null:a,l=t.maskId,c=l===void 0?null:l,u=t.title,d=u===void 0?null:u,f=t.titleId,m=f===void 0?null:f,p=t.classes,y=p===void 0?[]:p,v=t.attributes,w=v===void 0?{}:v,S=t.styles,T=S===void 0?{}:S;if(!!e){var R=e.prefix,U=e.iconName,V=e.icon;return Qp(ue({type:"icon"},e),function(){return Jp(),Be.autoA11y&&(d?w["aria-labelledby"]="".concat(Be.replacementClass,"-title-").concat(m||vr()):(w["aria-hidden"]="true",w.focusable="false")),jp({icons:{main:xl(V),mask:s?xl(s.icon):{found:!1,width:null,height:null,icon:{}}},prefix:R,iconName:U,transform:ue({},Kt,r),symbol:i,title:d,maskId:c,titleId:m,extra:{attributes:w,styles:T,classes:y}})})}});var pe=Re(ko());function kn(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?kn=function(t){return typeof t}:kn=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},kn(e)}function Yt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Qo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Fl(Object(n),!0).forEach(function(r){Yt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fl(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function nh(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function Cl(e,t){if(e==null)return{};var n=nh(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(n[r]=e[r]))}return n}function ei(e){return rh(e)||oh(e)||ih()}function rh(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}function oh(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function ih(){throw new TypeError("Invalid attempt to sp
q0 -15 -11 -25.5t-25 -10.5z`,fill:"var(--interactive-accent)"}))),Mc=e=>b.createElement("svg",_t(Ue({},e),{viewBox:"64 -65 897 897"}),b.createElement("g",null,b.createElement("path",{d:`M888 760v0v0v-753v0h-752v0v753v0h752zM888 832h-752q-30 0 -51 -21t-21 -51v-753q0 -29 21 -50.5t51 -21.5h753q29 0 50.5 21.5t21.5 50.5v753q0 30 -21.5 51t-51.5 21v0zM732 420h-184v183q0 15 -10.5 25.5t-25.5 10.5v0q-14 0 -25 -10.5t-11 -25.5v-183h-184
q-15 0 -25.5 -11t-10.5 -25v0q0 -15 10.5 -25.5t25.5 -10.5h184v-183q0 -15 11 -25.5t25 -10.5v0q15 0 25.5 10.5t10.5 25.5v183h184q15 0 25.5 10.5t10.5 25.5v0q0 14 -10.5 25t-25.5 11z`,fill:"var(--interactive-accent)"})));var Ic=e=>b.createElement("svg",_t(Ue({},e),{viewBox:"64 -65 897 897"}),b.createElement("g",null,b.createElement("path",{d:`M717.5 589.5q-10.5 10.5 -25.5 10.5t-26 -10l-154 -155l-154 155q-11 10 -26 10t-25.5 -10.5t-10.5 -25.5t11 -25l154 -155l-154 -155q-11 -10 -11 -25t10.5 -25.5t25.5 -10.5t26 10l154 155l154 -155q11 -10 26 -10t25.5 10.5t10.5 25t-11 25.5l-154 155l154 155
q11 10 11 25t-10.5 25.5zM888 760v0v0v-753v0h-752v0v753v0h752zM888 832h-752q-30 0 -51 -21t-21 -51v-753q0 -29 21 -50.5t51 -21.5h753q29 0 50.5 21.5t21.5 50.5v753q0 30 -21.5 51t-51.5 21v0z`,fill:"var(--interactive-accent)"}))),$c='<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line><line x1="8" y1="11" x2="14" y2="11"></line></svg>',Uc='<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 50 50" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M 21 3 C 11.621094 3 4 10.621094 4 20 C 4 29.378906 11.621094 37 21 37 C 24.710938 37 28.140625 35.804688 30.9375 33.78125 L 44.09375 46.90625 L 46.90625 44.09375 L 33.90625 31.0625 C 36.460938 28.085938 38 24.222656 38 20 C 38 10.621094 30.378906 3 21 3 Z M 21 5 C 29.296875 5 36 11.703125 36 20 C 36 28.296875 29.296875 35 21 35 C 12.703125 35 6 28.296875 6 20 C 6 11.703125 12.703125 5 21 5 Z M 13 12 L 13 18 L 15.28125 15.71875 L 19.5625 20 L 15.28125 24.28125 L 13 22 L 13 28 L 19 28 L 16.71875 25.71875 L 21 21.4375 L 25.28125 25.71875 L 23 28 L 29 28 L 29 22 L 26.71875 24.28125 L 22.4375 20 L 26.71875 15.71875 L 29 18 L 29 12 L 23 12 L 25.28125 14.28125 L 21 18.5625 L 16.71875 14.28125 L 19 12 Z"/></svg>',zc='<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line><line x1="11" y1="8" x2="11" y2="14"></line><line x1="8" y1="11" x2="14" y2="11"></line></svg>';var Zt=Re(require("obsidian")),St=class extends Zt.Modal{constructor(t,n,r){super(t);this.file=n,this.action=r}onOpen(){let{contentEl:t}=this,n=this,r;this.action==="rename"?r="Rename: Provide a New Name":this.action==="create folder"?r="Create Folder: Provide Name":this.action==="create note"&&(r="Create Note: Provide Name"),t.createEl("div",{text:r}).addClass("modal-title");let i=t.createEl("input");i.style.cssText="width: 100%; height: 2.5em; margin-bottom: 15px;",this.action==="rename"&&(this.file.name.endsWith(".md")?i.value=this.file.name.substring(0,this.file.name.lastIndexOf(".")):i.value=this.file.name),i.focus();let a;this.action==="rename"?a="Change Name":this.action==="create folder"?a="Create Folder":this.action==="create note"&&(a="Create Note");let s=t.createEl("button",{text:a}),l=t.createEl("button",{text:"Cancel"});l.style.cssText="float: right;",l.addEventListener("click",()=>{n.close()});let c=()=>Ee(this,null,function*(){let u=i.value;if(this.action==="rename")this.file.name.endsWith(".md")&&(u=u+".md"),this.app.fileManager.renameFile(this.file,this.file.parent.path+"/"+u);else if(this.action==="create folder")this.app.vault.createFolder(this.file.path+"/"+u);else if(this.action==="create note"){let d=yield this.app.fileManager.createNewMarkdownFile(this.file,u);this.app.workspace.activeLeaf.setViewState({type:"markdown",state:{file:d.path}})}n.close()});s.addEventListener("click",c),i.addEventListener("keydown",u=>{u.key==="Enter"&&c()})}onClose(){let{contentEl:t}=this;t.empty()}},Ln=class extends Zt.FuzzySuggestModal{constructor(t,n){super(t);this.fileOrFolderToMove=n}getItemText(t){return t.path}getItems(){return dh(this.app)}onChooseItem(t,n){this.app.vault.rename(this.fileOrFolderToMove,t.path+"/"+this.fileOrFolderToMove.name)}};function dh(e){let t=[],n=e.vault.getRoot();t.push(n);function r(o){for(let i of o.children)if(i instanceof Zt.TFolder){let a=i;t.push(a),a.children&&r(a)}}return r(n),t}var Tt=Re(require("obsidian")),Xt=(e,t,n)=>{var r=[],o=n?!0:t.settings.showFilesFromSubFolders;i(e,t.app);function i(a,s){var l=s.vault.getAbstractFileByPath(a);if(l instanceof Tt.TFolder&&l.children)for(let c of l.children)c instanceof Tt.TFile&&r.push(c),c instanceof Tt.TFolder&&o&&i(c.path,s)}return r},
production. But it is safe to ignore this warning if it occurred because of
3 years ago
hot module replacement.`;console.warn(n)}Dt.set(e.key,e);let t=e.set==null?new Ot.RecoilValueReadOnly(e.key):new Ot.RecoilState(e.key);return Si.set(e.key,t),t}var Ti=class extends Error{};function Uh(e){let t=Dt.get(e);if(t==null)throw new Ti(`Missing definition for RecoilValue: "${e}""`);return t}function zh(e){return Dt.get(e)}var xr=new Map;function jh(e){var t;if(!he("recoil_memory_managament_2020"))return;let n=Dt.get(e);if(n==null||(t=n.shouldDeleteConfigOnRelease)===null||t===void 0?void 0:t.call(n)){var r;Dt.delete(e),(r=Zc(e))===null||r===void 0||r(),xr.delete(e)}}function Bh(e,t){!he("recoil_memory_managament_2020")||(t===void 0?xr.delete(e):xr.set(e,t))}function Zc(e){return xr.get(e)}var rt={nodes:Dt,recoilValues:Si,registerNode:$h,getNode:Uh,getNodeMaybe:zh,deleteNodeConfigIfPossible:jh,setConfigDeletionHandler:Bh,getConfigDeletionHandler:Zc,recoilValuesForKeys:Ih,NodeMissingError:Ti,DefaultValue:wi,DEFAULT_VALUE:Mh,RecoilValueNotReady:Yc},xi=class{};function Wh(){return new xi}var Er={RetentionZone:xi,retentionZone:Wh},{setByAddingToSet:Hh}=qc,{getNode:Rr,getNodeMaybe:qh,recoilValuesForKeys:Xc}=rt,{RetentionZone:Jc}=Er,Gh=Object.freeze(new Set),Qc=class extends Error{};function Kh(e,t,n){if(!he("recoil_memory_managament_2020"))return()=>{};let{nodesRetainedByZone:r}=e.getState().retention;function o(i){let a=r.get(i);a||r.set(i,a=new Set),a.add(t)}if(n instanceof Jc)o(n);else if(Array.isArray(n))for(let i of n)o(i);return()=>{if(!he("recoil_memory_managament_2020"))return;let i=e.getState().retention.nodesRetainedByZone;function a(s){let l=i.get(s);l&&l.delete(t),l&&l.size===0&&i.delete(s)}if(n instanceof Jc)a(n);else if(Array.isArray(n))for(let s of n)a(s)}}function Ei(e,t,n,r){let o=e.getState();if(o.nodeCleanupFunctions.has(n))return;let i=Rr(n),a=Kh(e,n,i.retainedBy),s=i.init(e,t,r);o.nodeCleanupFunctions.set(n,()=>{s(),a()})}function Yh(e,t){var n;let r=e.getState();(n=r.nodeCleanupFunctions.get(t))===null||n===void 0||n(),r.nodeCleanupFunctions.delete(t)}function Zh(e,t,n){return Ei(e,t,n,"get"),Rr(n).get(e,t)}function eu(e,t,n){return Rr(n).peek(e,t)}function Xh(e,t,n){var r;let o=qh(t);return o==null||(r=o.invalidate)===null||r===void 0||r.call(o,e),{...e,atomValues:e.atomValues.clone().delete(t),nonvalidatedAtoms:e.nonvalidatedAtoms.clone().set(t,n),dirtyAtoms:Hh(e.dirtyAtoms,t)}}function Jh(e,t,n,r){let o=Rr(n);if(o.set==null)throw new Qc(`Attempt to set read-only RecoilValue: ${n}`);let i=o.set;return Ei(e,t,n,"set"),i(e,t,r)}function Qh(e,t,n){var r,o,i;let a=e.getState(),s=e.getGraph(t.version),l=a.knownAtoms.has(n)?"atom":a.knownSelectors.has(n)?"selector":void 0,c=Gc(tu(e,t,new Set([n])),u=>u!==n);return{loadable:eu(e,t,n),isActive:a.knownAtoms.has(n)||a.knownSelectors.has(n),isSet:l==="selector"?!1:t.atomValues.has(n),isModified:t.dirtyAtoms.has(n),type:l,deps:Xc((r=s.nodeDeps.get(n))!==null&&r!==void 0?r:[]),subscribers:{nodes:Xc(c),components:Kc((o=(i=a.nodeToComponentSubscriptions.get(n))===null||i===void 0?void 0:i.values())!==null&&o!==void 0?o:[],([u])=>({name:u}))}}}function tu(e,t,n){let r=new Set,o=Array.from(n),i=e.getGraph(t.version);for(let s=o.pop();s;s=o.pop()){var a;r.add(s);let l=(a=i.nodeToNodeSubscriptions.get(s))!==null&&a!==void 0?a:Gh;for(let c of l)r.has(c)||o.push(c)}return r}var Qt={getNodeLoadable:Zh,peekNodeLoadable:eu,setNodeValue:Jh,cleanUpNode:Yh,setUnvalidatedAtomValue_DEPRECATED:Xh,peekNodeInfo:Qh,getDownstreamNodes:tu,initializeNodeIfNewToStore:Ei},{CANCELED:em}=Pn,{getDownstreamNodes:tm,getNodeLoadable:nu,setNodeValue:nm}=Qt,{getNodeMaybe:ru}=rt,{DefaultValue:Ri,RecoilValueNotReady:rm}=rt,{AbstractRecoilValue:om,RecoilState:im,RecoilValueReadOnly:am,isRecoilValue:sm}=Ot;function lm(e,{key:t},n=e.getState().currentTree){var r,o;let i=e.getState();n.version===i.currentTree.version||n.version===((r=i.nextTree)===null||r===void 0?void 0:r.version)||n.version===((o=i.previousTree)===null||o===void 0?void 0:o.version)||ht("Tried to read from a discarded tree");let a=nu(e,n,t);return a.state==="loading"&&a.contents.catch(()=>em),a}function cm(e,t){let n=e.cl
You need to reload the vault to make changes effective.`).addTextArea(a=>a.setValue(this.plugin.settings.excludedExtensions).onChange(s=>{this.plugin.settings.excludedExtensions=s,this.plugin.saveSettings()})),new Fe.Setting(t).setName("Excluded Folder Paths").setDesc(`Provide full path of folders, which you want to exclude from listing in file tree, divided by comma. i.e. 'Personal/Attachments, Work/Documents/Folders'.
All subfolders are going to be excluded, as well. You need to reload the vault to make changes effective.`).addTextArea(a=>a.setValue(this.plugin.settings.excludedFolders).onChange(s=>{this.plugin.settings.excludedFolders=s,this.plugin.saveSettings()})),t.createEl("h2",{text:"Clear Data"}),new Fe.Setting(t).setName("Clear All Cache Data").setDesc(`This button will clear the following cache data: "Last position of the divider" & "List of expanded folders in the folder pane",
& "Last active folder path". It will not touch your settings above and list of pinned files. It is recommended to do this clearing once in a while.`).addButton(a=>{let s=a.setTooltip("Click here to clear the cache data").setButtonText("Click for Clearing the Cache").onClick(()=>Ee(this,null,function*(){n.removeFromLocalStorage({key:this.plugin.keys.customHeightKey}),n.removeFromLocalStorage({key:this.plugin.keys.openFoldersKey}),n.removeFromLocalStorage({key:this.plugin.keys.activeFolderPathKey}),this.plugin.refreshTreeLeafs(),new Fe.Notice("The plugin cache is cleared...")}))}),new Fe.Setting(t).setName("Clear Pinned Files").setDesc("This button will clear the pinned files in the file list pane.").addButton(a=>{let s=a.setTooltip("Click here to clear the pinned files").setButtonText("Click for Clearing the Pinned files").onClick(()=>Ee(this,null,function*(){n.removeFromLocalStorage({key:this.plugin.keys.pinnedFilesKey}),this.plugin.refreshTreeLeafs(),new Fe.Notice("The pinned files are cleared...")}))})}};var ca=class extends un.Plugin{constructor(){super(...arguments);this.ribbonIconEl=void 0;this.keys={activeFolderPathKey:"fileTreePlugin-ActiveFolderPath",pinnedFilesKey:"fileTreePlugin-PinnedFiles",openFoldersKey:"fileTreePlugin-OpenFolders",customHeightKey:"fileTreePlugin-CustomHeight"};this.refreshIconRibbon=()=>{var t;(t=this.ribbonIconEl)==null||t.remove(),this.settings.ribbonIcon&&(this.ribbonIconEl=this.addRibbonIcon(aa,"File Tree Alternative Plugin",()=>Ee(this,null,function*(){yield this.openFileTreeLeaf(!0)})))};this.openFileTreeLeaf=t=>Ee(this,null,function*(){if(this.app.workspace.getLeavesOfType(cn).length==0){let n=this.app.workspace.getLeftLeaf(!1);yield n.setViewState({type:cn}),t&&this.app.workspace.revealLeaf(n)}});this.detachFileTreeLeafs=()=>{let t=this.app.workspace.getLeavesOfType(cn);for(let n of t)n.view.destroy(),n.detach()};this.refreshTreeLeafs=()=>{this.detachFileTreeLeafs(),this.openFileTreeLeaf(!0)}}onload(){return Ee(this,null,function*(){console.log("Loading Alternative File Tree Plugin"),(0,un.addIcon)("zoomInIcon",zc),(0,un.addIcon)("zoomOutIcon",$c),(0,un.addIcon)("zoomOutDoubleIcon",Uc),this.addSettingTab(new la(this.app,this)),yield this.loadSettings(),this.registerView(cn,t=>new sa(t,this)),this.app.workspace.onLayoutReady(()=>Ee(this,null,function*(){return yield this.openFileTreeLeaf(!0)})),this.addCommand({id:"open-file-tree-leaf",name:"Open File Tree Leaf",callback:()=>Ee(this,null,function*(){return yield this.openFileTreeLeaf(!0)})}),this.refreshIconRibbon()})}onunload(){console.log("Unloading Alternative File Tree Plugin"),this.detachFileTreeLeafs()}loadSettings(){return Ee(this,null,function*(){this.settings=Object.assign({},Bf,yield this.loadData())})}saveSettings(){return Ee(this,null,function*(){yield this.saveData(this.settings)})}};0&&(module.exports={});
/*!
* Font Awesome Free 5.15.4 by @fontawesome - https://fontawesome.com
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
*/
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */