@cubone/react-file-manager 1.0.1 → 1.1.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.
@@ -1,4 +1,4 @@
1
- (function(Se,F){typeof exports=="object"&&typeof module<"u"?F(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],F):(Se=typeof globalThis<"u"?globalThis:Se||self,F(Se.ReactFileManager={},Se.React))})(this,function(Se,F){"use strict";var xt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function jt(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var at={exports:{}},De={};/**
1
+ (function(Se,D){typeof exports=="object"&&typeof module<"u"?D(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],D):(Se=typeof globalThis<"u"?globalThis:Se||self,D(Se.ReactFileManager={},Se.React))})(this,function(Se,D){"use strict";var xt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function jt(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var at={exports:{}},De={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.min.js
4
4
  *
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var wt;function Lt(){if(wt)return De;wt=1;var n=F,v=Symbol.for("react.element"),c=Symbol.for("react.fragment"),l=Object.prototype.hasOwnProperty,d=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u={key:!0,ref:!0,__self:!0,__source:!0};function s(h,f,o){var p,O={},j=null,D=null;o!==void 0&&(j=""+o),f.key!==void 0&&(j=""+f.key),f.ref!==void 0&&(D=f.ref);for(p in f)l.call(f,p)&&!u.hasOwnProperty(p)&&(O[p]=f[p]);if(h&&h.defaultProps)for(p in f=h.defaultProps,f)O[p]===void 0&&(O[p]=f[p]);return{$$typeof:v,type:h,key:j,ref:D,props:O,_owner:d.current}}return De.Fragment=c,De.jsx=s,De.jsxs=s,De}var Fe={};/**
9
+ */var wt;function $t(){if(wt)return De;wt=1;var n=D,p=Symbol.for("react.element"),o=Symbol.for("react.fragment"),c=Object.prototype.hasOwnProperty,d=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u={key:!0,ref:!0,__self:!0,__source:!0};function l(v,f,s){var h,N={},j=null,_=null;s!==void 0&&(j=""+s),f.key!==void 0&&(j=""+f.key),f.ref!==void 0&&(_=f.ref);for(h in f)c.call(f,h)&&!u.hasOwnProperty(h)&&(N[h]=f[h]);if(v&&v.defaultProps)for(h in f=v.defaultProps,f)N[h]===void 0&&(N[h]=f[h]);return{$$typeof:p,type:v,key:j,ref:_,props:N,_owner:d.current}}return De.Fragment=o,De.jsx=l,De.jsxs=l,De}var Fe={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,47 +14,47 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var Ct;function $t(){return Ct||(Ct=1,process.env.NODE_ENV!=="production"&&function(){var n=F,v=Symbol.for("react.element"),c=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),d=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),h=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),o=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),O=Symbol.for("react.memo"),j=Symbol.for("react.lazy"),D=Symbol.for("react.offscreen"),A=Symbol.iterator,T="@@iterator";function L(t){if(t===null||typeof t!="object")return null;var b=A&&t[A]||t[T];return typeof b=="function"?b:null}var V=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function _(t){{for(var b=arguments.length,P=new Array(b>1?b-1:0),W=1;W<b;W++)P[W-1]=arguments[W];I("error",t,P)}}function I(t,b,P){{var W=V.ReactDebugCurrentFrame,ee=W.getStackAddendum();ee!==""&&(b+="%s",P=P.concat([ee]));var ae=P.map(function(e){return String(e)});ae.unshift("Warning: "+b),Function.prototype.apply.call(console[t],console,ae)}}var R=!1,x=!1,S=!1,k=!1,$=!1,te;te=Symbol.for("react.module.reference");function q(t){return!!(typeof t=="string"||typeof t=="function"||t===l||t===u||$||t===d||t===o||t===p||k||t===D||R||x||S||typeof t=="object"&&t!==null&&(t.$$typeof===j||t.$$typeof===O||t.$$typeof===s||t.$$typeof===h||t.$$typeof===f||t.$$typeof===te||t.getModuleId!==void 0))}function N(t,b,P){var W=t.displayName;if(W)return W;var ee=b.displayName||b.name||"";return ee!==""?P+"("+ee+")":P}function Q(t){return t.displayName||"Context"}function ne(t){if(t==null)return null;if(typeof t.tag=="number"&&_("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case l:return"Fragment";case c:return"Portal";case u:return"Profiler";case d:return"StrictMode";case o:return"Suspense";case p:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case h:var b=t;return Q(b)+".Consumer";case s:var P=t;return Q(P._context)+".Provider";case f:return N(t,t.render,"ForwardRef");case O:var W=t.displayName||null;return W!==null?W:ne(t.type)||"Memo";case j:{var ee=t,ae=ee._payload,e=ee._init;try{return ne(e(ae))}catch{return null}}}return null}var oe=Object.assign,de=0,ce,ve,ue,G,fe,pe,w;function z(){}z.__reactDisabledLog=!0;function Y(){{if(de===0){ce=console.log,ve=console.info,ue=console.warn,G=console.error,fe=console.group,pe=console.groupCollapsed,w=console.groupEnd;var t={configurable:!0,enumerable:!0,value:z,writable:!0};Object.defineProperties(console,{info:t,log:t,warn:t,error:t,group:t,groupCollapsed:t,groupEnd:t})}de++}}function K(){{if(de--,de===0){var t={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:oe({},t,{value:ce}),info:oe({},t,{value:ve}),warn:oe({},t,{value:ue}),error:oe({},t,{value:G}),group:oe({},t,{value:fe}),groupCollapsed:oe({},t,{value:pe}),groupEnd:oe({},t,{value:w})})}de<0&&_("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var B=V.ReactCurrentDispatcher,i;function m(t,b,P){{if(i===void 0)try{throw Error()}catch(ee){var W=ee.stack.trim().match(/\n( *(at )?)/);i=W&&W[1]||""}return`
18
- `+i+t}}var M=!1,E;{var H=typeof WeakMap=="function"?WeakMap:Map;E=new H}function U(t,b){if(!t||M)return"";{var P=E.get(t);if(P!==void 0)return P}var W;M=!0;var ee=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var ae;ae=B.current,B.current=null,Y();try{if(b){var e=function(){throw Error()};if(Object.defineProperty(e.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(e,[])}catch(ie){W=ie}Reflect.construct(t,[],e)}else{try{e.call()}catch(ie){W=ie}t.call(e.prototype)}}else{try{throw Error()}catch(ie){W=ie}t()}}catch(ie){if(ie&&W&&typeof ie.stack=="string"){for(var a=ie.stack.split(`
19
- `),g=W.stack.split(`
20
- `),y=a.length-1,C=g.length-1;y>=1&&C>=0&&a[y]!==g[C];)C--;for(;y>=1&&C>=0;y--,C--)if(a[y]!==g[C]){if(y!==1||C!==1)do if(y--,C--,C<0||a[y]!==g[C]){var X=`
21
- `+a[y].replace(" at new "," at ");return t.displayName&&X.includes("<anonymous>")&&(X=X.replace("<anonymous>",t.displayName)),typeof t=="function"&&E.set(t,X),X}while(y>=1&&C>=0);break}}}finally{M=!1,B.current=ae,K(),Error.prepareStackTrace=ee}var Z=t?t.displayName||t.name:"",J=Z?m(Z):"";return typeof t=="function"&&E.set(t,J),J}function se(t,b,P){return U(t,!1)}function re(t){var b=t.prototype;return!!(b&&b.isReactComponent)}function me(t,b,P){if(t==null)return"";if(typeof t=="function")return U(t,re(t));if(typeof t=="string")return m(t);switch(t){case o:return m("Suspense");case p:return m("SuspenseList")}if(typeof t=="object")switch(t.$$typeof){case f:return se(t.render);case O:return me(t.type,b,P);case j:{var W=t,ee=W._payload,ae=W._init;try{return me(ae(ee),b,P)}catch{}}}return""}var he=Object.prototype.hasOwnProperty,Ce={},je=V.ReactDebugCurrentFrame;function Re(t){if(t){var b=t._owner,P=me(t.type,t._source,b?b.type:null);je.setExtraStackFrame(P)}else je.setExtraStackFrame(null)}function ct(t,b,P,W,ee){{var ae=Function.call.bind(he);for(var e in t)if(ae(t,e)){var a=void 0;try{if(typeof t[e]!="function"){var g=Error((W||"React class")+": "+P+" type `"+e+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof t[e]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw g.name="Invariant Violation",g}a=t[e](b,e,W,P,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(y){a=y}a&&!(a instanceof Error)&&(Re(ee),_("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",W||"React class",P,e,typeof a),Re(null)),a instanceof Error&&!(a.message in Ce)&&(Ce[a.message]=!0,Re(ee),_("Failed %s type: %s",P,a.message),Re(null))}}}var ut=Array.isArray;function _e(t){return ut(t)}function ft(t){{var b=typeof Symbol=="function"&&Symbol.toStringTag,P=b&&t[Symbol.toStringTag]||t.constructor.name||"Object";return P}}function qe(t){try{return Je(t),!1}catch{return!0}}function Je(t){return""+t}function Ne(t){if(qe(t))return _("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",ft(t)),Je(t)}var Ee=V.ReactCurrentOwner,Ge={key:!0,ref:!0,__self:!0,__source:!0},Ae,Ve,ke;ke={};function dt(t){if(he.call(t,"ref")){var b=Object.getOwnPropertyDescriptor(t,"ref").get;if(b&&b.isReactWarning)return!1}return t.ref!==void 0}function pt(t){if(he.call(t,"key")){var b=Object.getOwnPropertyDescriptor(t,"key").get;if(b&&b.isReactWarning)return!1}return t.key!==void 0}function ht(t,b){if(typeof t.ref=="string"&&Ee.current&&b&&Ee.current.stateNode!==b){var P=ne(Ee.current.type);ke[P]||(_('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',ne(Ee.current.type),t.ref),ke[P]=!0)}}function Ie(t,b){{var P=function(){Ae||(Ae=!0,_("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",b))};P.isReactWarning=!0,Object.defineProperty(t,"key",{get:P,configurable:!0})}}function vt(t,b){{var P=function(){Ve||(Ve=!0,_("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",b))};P.isReactWarning=!0,Object.defineProperty(t,"ref",{get:P,configurable:!0})}}var mt=function(t,b,P,W,ee,ae,e){var a={$$typeof:v,type:t,key:b,ref:P,props:e,_owner:ae};return a._store={},Object.defineProperty(a._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(a,"_self",{configurable:!1,enumerable:!1,writable:!1,value:W}),Object.defineProperty(a,"_source",{configurable:!1,enumerable:!1,writable:!1,value:ee}),Object.freeze&&(Object.freeze(a.props),Object.freeze(a)),a};function gt(t,b,P,W,ee){{var ae,e={},a=null,g=null;P!==void 0&&(Ne(P),a=""+P),pt(b)&&(Ne(b.key),a=""+b.key),dt(b)&&(g=b.ref,ht(b,ee));for(ae in b)he.call(b,ae)&&!Ge.hasOwnProperty(ae)&&(e[ae]=b[ae]);if(t&&t.defaultProps){var y=t.defaultProps;for(ae in y)e[ae]===void 0&&(e[ae]=y[ae])}if(a||g){var C=typeof t=="function"?t.displayName||t.name||"Unknown":t;a&&Ie(e,C),g&&vt(e,C)}return mt(t,a,g,ee,W,Ee.current,e)}}var Le=V.ReactCurrentOwner,Xe=V.ReactDebugCurrentFrame;function Te(t){if(t){var b=t._owner,P=me(t.type,t._source,b?b.type:null);Xe.setExtraStackFrame(P)}else Xe.setExtraStackFrame(null)}var $e;$e=!1;function We(t){return typeof t=="object"&&t!==null&&t.$$typeof===v}function ze(){{if(Le.current){var t=ne(Le.current.type);if(t)return`
17
+ */var Ct;function Wt(){return Ct||(Ct=1,process.env.NODE_ENV!=="production"&&function(){var n=D,p=Symbol.for("react.element"),o=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),d=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),v=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),N=Symbol.for("react.memo"),j=Symbol.for("react.lazy"),_=Symbol.for("react.offscreen"),V=Symbol.iterator,C="@@iterator";function E(t){if(t===null||typeof t!="object")return null;var x=V&&t[V]||t[C];return typeof x=="function"?x:null}var M=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function z(t){{for(var x=arguments.length,A=new Array(x>1?x-1:0),B=1;B<x;B++)A[B-1]=arguments[B];I("error",t,A)}}function I(t,x,A){{var B=M.ReactDebugCurrentFrame,te=B.getStackAddendum();te!==""&&(x+="%s",A=A.concat([te]));var ie=A.map(function(e){return String(e)});ie.unshift("Warning: "+x),Function.prototype.apply.call(console[t],console,ie)}}var P=!1,b=!1,k=!1,T=!1,$=!1,ee;ee=Symbol.for("react.module.reference");function W(t){return!!(typeof t=="string"||typeof t=="function"||t===c||t===u||$||t===d||t===s||t===h||T||t===_||P||b||k||typeof t=="object"&&t!==null&&(t.$$typeof===j||t.$$typeof===N||t.$$typeof===l||t.$$typeof===v||t.$$typeof===f||t.$$typeof===ee||t.getModuleId!==void 0))}function O(t,x,A){var B=t.displayName;if(B)return B;var te=x.displayName||x.name||"";return te!==""?A+"("+te+")":A}function X(t){return t.displayName||"Context"}function re(t){if(t==null)return null;if(typeof t.tag=="number"&&z("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case c:return"Fragment";case o:return"Portal";case u:return"Profiler";case d:return"StrictMode";case s:return"Suspense";case h:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case v:var x=t;return X(x)+".Consumer";case l:var A=t;return X(A._context)+".Provider";case f:return O(t,t.render,"ForwardRef");case N:var B=t.displayName||null;return B!==null?B:re(t.type)||"Memo";case j:{var te=t,ie=te._payload,e=te._init;try{return re(e(ie))}catch{return null}}}return null}var ue=Object.assign,fe=0,ne,he,ce,q,de,pe,w;function L(){}L.__reactDisabledLog=!0;function U(){{if(fe===0){ne=console.log,he=console.info,ce=console.warn,q=console.error,de=console.group,pe=console.groupCollapsed,w=console.groupEnd;var t={configurable:!0,enumerable:!0,value:L,writable:!0};Object.defineProperties(console,{info:t,log:t,warn:t,error:t,group:t,groupCollapsed:t,groupEnd:t})}fe++}}function G(){{if(fe--,fe===0){var t={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:ue({},t,{value:ne}),info:ue({},t,{value:he}),warn:ue({},t,{value:ce}),error:ue({},t,{value:q}),group:ue({},t,{value:de}),groupCollapsed:ue({},t,{value:pe}),groupEnd:ue({},t,{value:w})})}fe<0&&z("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Y=M.ReactCurrentDispatcher,i;function m(t,x,A){{if(i===void 0)try{throw Error()}catch(te){var B=te.stack.trim().match(/\n( *(at )?)/);i=B&&B[1]||""}return`
18
+ `+i+t}}var H=!1,R;{var F=typeof WeakMap=="function"?WeakMap:Map;R=new F}function K(t,x){if(!t||H)return"";{var A=R.get(t);if(A!==void 0)return A}var B;H=!0;var te=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var ie;ie=Y.current,Y.current=null,U();try{if(x){var e=function(){throw Error()};if(Object.defineProperty(e.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(e,[])}catch(se){B=se}Reflect.construct(t,[],e)}else{try{e.call()}catch(se){B=se}t.call(e.prototype)}}else{try{throw Error()}catch(se){B=se}t()}}catch(se){if(se&&B&&typeof se.stack=="string"){for(var a=se.stack.split(`
19
+ `),g=B.stack.split(`
20
+ `),y=a.length-1,S=g.length-1;y>=1&&S>=0&&a[y]!==g[S];)S--;for(;y>=1&&S>=0;y--,S--)if(a[y]!==g[S]){if(y!==1||S!==1)do if(y--,S--,S<0||a[y]!==g[S]){var Z=`
21
+ `+a[y].replace(" at new "," at ");return t.displayName&&Z.includes("<anonymous>")&&(Z=Z.replace("<anonymous>",t.displayName)),typeof t=="function"&&R.set(t,Z),Z}while(y>=1&&S>=0);break}}}finally{H=!1,Y.current=ie,G(),Error.prepareStackTrace=te}var Q=t?t.displayName||t.name:"",J=Q?m(Q):"";return typeof t=="function"&&R.set(t,J),J}function le(t,x,A){return K(t,!1)}function ae(t){var x=t.prototype;return!!(x&&x.isReactComponent)}function me(t,x,A){if(t==null)return"";if(typeof t=="function")return K(t,ae(t));if(typeof t=="string")return m(t);switch(t){case s:return m("Suspense");case h:return m("SuspenseList")}if(typeof t=="object")switch(t.$$typeof){case f:return le(t.render);case N:return me(t.type,x,A);case j:{var B=t,te=B._payload,ie=B._init;try{return me(ie(te),x,A)}catch{}}}return""}var ve=Object.prototype.hasOwnProperty,Ce={},je=M.ReactDebugCurrentFrame;function Re(t){if(t){var x=t._owner,A=me(t.type,t._source,x?x.type:null);je.setExtraStackFrame(A)}else je.setExtraStackFrame(null)}function ct(t,x,A,B,te){{var ie=Function.call.bind(ve);for(var e in t)if(ie(t,e)){var a=void 0;try{if(typeof t[e]!="function"){var g=Error((B||"React class")+": "+A+" type `"+e+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof t[e]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw g.name="Invariant Violation",g}a=t[e](x,e,B,A,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(y){a=y}a&&!(a instanceof Error)&&(Re(te),z("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",B||"React class",A,e,typeof a),Re(null)),a instanceof Error&&!(a.message in Ce)&&(Ce[a.message]=!0,Re(te),z("Failed %s type: %s",A,a.message),Re(null))}}}var ut=Array.isArray;function _e(t){return ut(t)}function ft(t){{var x=typeof Symbol=="function"&&Symbol.toStringTag,A=x&&t[Symbol.toStringTag]||t.constructor.name||"Object";return A}}function qe(t){try{return Ge(t),!1}catch{return!0}}function Ge(t){return""+t}function ke(t){if(qe(t))return z("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",ft(t)),Ge(t)}var Ee=M.ReactCurrentOwner,Je={key:!0,ref:!0,__self:!0,__source:!0},Ae,Ve,Ne;Ne={};function dt(t){if(ve.call(t,"ref")){var x=Object.getOwnPropertyDescriptor(t,"ref").get;if(x&&x.isReactWarning)return!1}return t.ref!==void 0}function pt(t){if(ve.call(t,"key")){var x=Object.getOwnPropertyDescriptor(t,"key").get;if(x&&x.isReactWarning)return!1}return t.key!==void 0}function ht(t,x){if(typeof t.ref=="string"&&Ee.current&&x&&Ee.current.stateNode!==x){var A=re(Ee.current.type);Ne[A]||(z('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',re(Ee.current.type),t.ref),Ne[A]=!0)}}function Ie(t,x){{var A=function(){Ae||(Ae=!0,z("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",x))};A.isReactWarning=!0,Object.defineProperty(t,"key",{get:A,configurable:!0})}}function vt(t,x){{var A=function(){Ve||(Ve=!0,z("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",x))};A.isReactWarning=!0,Object.defineProperty(t,"ref",{get:A,configurable:!0})}}var mt=function(t,x,A,B,te,ie,e){var a={$$typeof:p,type:t,key:x,ref:A,props:e,_owner:ie};return a._store={},Object.defineProperty(a._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(a,"_self",{configurable:!1,enumerable:!1,writable:!1,value:B}),Object.defineProperty(a,"_source",{configurable:!1,enumerable:!1,writable:!1,value:te}),Object.freeze&&(Object.freeze(a.props),Object.freeze(a)),a};function gt(t,x,A,B,te){{var ie,e={},a=null,g=null;A!==void 0&&(ke(A),a=""+A),pt(x)&&(ke(x.key),a=""+x.key),dt(x)&&(g=x.ref,ht(x,te));for(ie in x)ve.call(x,ie)&&!Je.hasOwnProperty(ie)&&(e[ie]=x[ie]);if(t&&t.defaultProps){var y=t.defaultProps;for(ie in y)e[ie]===void 0&&(e[ie]=y[ie])}if(a||g){var S=typeof t=="function"?t.displayName||t.name||"Unknown":t;a&&Ie(e,S),g&&vt(e,S)}return mt(t,a,g,te,B,Ee.current,e)}}var Le=M.ReactCurrentOwner,Xe=M.ReactDebugCurrentFrame;function Te(t){if(t){var x=t._owner,A=me(t.type,t._source,x?x.type:null);Xe.setExtraStackFrame(A)}else Xe.setExtraStackFrame(null)}var $e;$e=!1;function We(t){return typeof t=="object"&&t!==null&&t.$$typeof===p}function ze(){{if(Le.current){var t=re(Le.current.type);if(t)return`
22
22
 
23
- Check the render method of \``+t+"`."}return""}}function xe(t){return""}var He={};function Ze(t){{var b=ze();if(!b){var P=typeof t=="string"?t:t.displayName||t.name;P&&(b=`
23
+ Check the render method of \``+t+"`."}return""}}function xe(t){return""}var He={};function Ze(t){{var x=ze();if(!x){var A=typeof t=="string"?t:t.displayName||t.name;A&&(x=`
24
24
 
25
- Check the top-level render call using <`+P+">.")}return b}}function Oe(t,b){{if(!t._store||t._store.validated||t.key!=null)return;t._store.validated=!0;var P=Ze(b);if(He[P])return;He[P]=!0;var W="";t&&t._owner&&t._owner!==Le.current&&(W=" It was passed a child from "+ne(t._owner.type)+"."),Te(t),_('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',P,W),Te(null)}}function Ue(t,b){{if(typeof t!="object")return;if(_e(t))for(var P=0;P<t.length;P++){var W=t[P];We(W)&&Oe(W,b)}else if(We(t))t._store&&(t._store.validated=!0);else if(t){var ee=L(t);if(typeof ee=="function"&&ee!==t.entries)for(var ae=ee.call(t),e;!(e=ae.next()).done;)We(e.value)&&Oe(e.value,b)}}}function yt(t){{var b=t.type;if(b==null||typeof b=="string")return;var P;if(typeof b=="function")P=b.propTypes;else if(typeof b=="object"&&(b.$$typeof===f||b.$$typeof===O))P=b.propTypes;else return;if(P){var W=ne(b);ct(P,t.props,"prop",W,t)}else if(b.PropTypes!==void 0&&!$e){$e=!0;var ee=ne(b);_("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",ee||"Unknown")}typeof b.getDefaultProps=="function"&&!b.getDefaultProps.isReactClassApproved&&_("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Qe(t){{for(var b=Object.keys(t.props),P=0;P<b.length;P++){var W=b[P];if(W!=="children"&&W!=="key"){Te(t),_("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",W),Te(null);break}}t.ref!==null&&(Te(t),_("Invalid attribute `ref` supplied to `React.Fragment`."),Te(null))}}var et={};function Be(t,b,P,W,ee,ae){{var e=q(t);if(!e){var a="";(t===void 0||typeof t=="object"&&t!==null&&Object.keys(t).length===0)&&(a+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var g=xe();g?a+=g:a+=ze();var y;t===null?y="null":_e(t)?y="array":t!==void 0&&t.$$typeof===v?(y="<"+(ne(t.type)||"Unknown")+" />",a=" Did you accidentally export a JSX literal instead of a component?"):y=typeof t,_("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",y,a)}var C=gt(t,b,P,ee,ae);if(C==null)return C;if(e){var X=b.children;if(X!==void 0)if(W)if(_e(X)){for(var Z=0;Z<X.length;Z++)Ue(X[Z],t);Object.freeze&&Object.freeze(X)}else _("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Ue(X,t)}if(he.call(b,"key")){var J=ne(t),ie=Object.keys(b).filter(function(ge){return ge!=="key"}),ye=ie.length>0?"{key: someKey, "+ie.join(": ..., ")+": ...}":"{key: someKey}";if(!et[J+ye]){var be=ie.length>0?"{"+ie.join(": ..., ")+": ...}":"{}";_(`A props object containing a "key" prop is being spread into JSX:
25
+ Check the top-level render call using <`+A+">.")}return x}}function Oe(t,x){{if(!t._store||t._store.validated||t.key!=null)return;t._store.validated=!0;var A=Ze(x);if(He[A])return;He[A]=!0;var B="";t&&t._owner&&t._owner!==Le.current&&(B=" It was passed a child from "+re(t._owner.type)+"."),Te(t),z('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',A,B),Te(null)}}function Ue(t,x){{if(typeof t!="object")return;if(_e(t))for(var A=0;A<t.length;A++){var B=t[A];We(B)&&Oe(B,x)}else if(We(t))t._store&&(t._store.validated=!0);else if(t){var te=E(t);if(typeof te=="function"&&te!==t.entries)for(var ie=te.call(t),e;!(e=ie.next()).done;)We(e.value)&&Oe(e.value,x)}}}function yt(t){{var x=t.type;if(x==null||typeof x=="string")return;var A;if(typeof x=="function")A=x.propTypes;else if(typeof x=="object"&&(x.$$typeof===f||x.$$typeof===N))A=x.propTypes;else return;if(A){var B=re(x);ct(A,t.props,"prop",B,t)}else if(x.PropTypes!==void 0&&!$e){$e=!0;var te=re(x);z("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",te||"Unknown")}typeof x.getDefaultProps=="function"&&!x.getDefaultProps.isReactClassApproved&&z("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Qe(t){{for(var x=Object.keys(t.props),A=0;A<x.length;A++){var B=x[A];if(B!=="children"&&B!=="key"){Te(t),z("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",B),Te(null);break}}t.ref!==null&&(Te(t),z("Invalid attribute `ref` supplied to `React.Fragment`."),Te(null))}}var et={};function Be(t,x,A,B,te,ie){{var e=W(t);if(!e){var a="";(t===void 0||typeof t=="object"&&t!==null&&Object.keys(t).length===0)&&(a+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var g=xe();g?a+=g:a+=ze();var y;t===null?y="null":_e(t)?y="array":t!==void 0&&t.$$typeof===p?(y="<"+(re(t.type)||"Unknown")+" />",a=" Did you accidentally export a JSX literal instead of a component?"):y=typeof t,z("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",y,a)}var S=gt(t,x,A,te,ie);if(S==null)return S;if(e){var Z=x.children;if(Z!==void 0)if(B)if(_e(Z)){for(var Q=0;Q<Z.length;Q++)Ue(Z[Q],t);Object.freeze&&Object.freeze(Z)}else z("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Ue(Z,t)}if(ve.call(x,"key")){var J=re(t),se=Object.keys(x).filter(function(ge){return ge!=="key"}),ye=se.length>0?"{key: someKey, "+se.join(": ..., ")+": ...}":"{key: someKey}";if(!et[J+ye]){var be=se.length>0?"{"+se.join(": ..., ")+": ...}":"{}";z(`A props object containing a "key" prop is being spread into JSX:
26
26
  let props = %s;
27
27
  <%s {...props} />
28
28
  React keys must be passed directly to JSX without using spread:
29
29
  let props = %s;
30
- <%s key={someKey} {...props} />`,ye,J,be,J),et[J+ye]=!0}}return t===l?Qe(C):yt(C),C}}function tt(t,b,P){return Be(t,b,P,!0)}function nt(t,b,P){return Be(t,b,P,!1)}var bt=nt,rt=tt;Fe.Fragment=l,Fe.jsx=bt,Fe.jsxs=rt}()),Fe}process.env.NODE_ENV==="production"?at.exports=Lt():at.exports=$t();var r=at.exports,Ot={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Et=F.createContext&&F.createContext(Ot),Wt=["attr","size","title"];function Ut(n,v){if(n==null)return{};var c=Bt(n,v),l,d;if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(n);for(d=0;d<u.length;d++)l=u[d],!(v.indexOf(l)>=0)&&Object.prototype.propertyIsEnumerable.call(n,l)&&(c[l]=n[l])}return c}function Bt(n,v){if(n==null)return{};var c={};for(var l in n)if(Object.prototype.hasOwnProperty.call(n,l)){if(v.indexOf(l)>=0)continue;c[l]=n[l]}return c}function Ye(){return Ye=Object.assign?Object.assign.bind():function(n){for(var v=1;v<arguments.length;v++){var c=arguments[v];for(var l in c)Object.prototype.hasOwnProperty.call(c,l)&&(n[l]=c[l])}return n},Ye.apply(this,arguments)}function Tt(n,v){var c=Object.keys(n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(n);v&&(l=l.filter(function(d){return Object.getOwnPropertyDescriptor(n,d).enumerable})),c.push.apply(c,l)}return c}function Ke(n){for(var v=1;v<arguments.length;v++){var c=arguments[v]!=null?arguments[v]:{};v%2?Tt(Object(c),!0).forEach(function(l){Yt(n,l,c[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(c)):Tt(Object(c)).forEach(function(l){Object.defineProperty(n,l,Object.getOwnPropertyDescriptor(c,l))})}return n}function Yt(n,v,c){return v=Kt(v),v in n?Object.defineProperty(n,v,{value:c,enumerable:!0,configurable:!0,writable:!0}):n[v]=c,n}function Kt(n){var v=qt(n,"string");return typeof v=="symbol"?v:v+""}function qt(n,v){if(typeof n!="object"||!n)return n;var c=n[Symbol.toPrimitive];if(c!==void 0){var l=c.call(n,v||"default");if(typeof l!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return(v==="string"?String:Number)(n)}function St(n){return n&&n.map((v,c)=>F.createElement(v.tag,Ke({key:c},v.attr),St(v.child)))}function le(n){return v=>F.createElement(Jt,Ye({attr:Ke({},n.attr)},v),St(n.child))}function Jt(n){var v=c=>{var{attr:l,size:d,title:u}=n,s=Ut(n,Wt),h=d||c.size||"1em",f;return c.className&&(f=c.className),n.className&&(f=(f?f+" ":"")+n.className),F.createElement("svg",Ye({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},c.attr,l,s,{className:f,style:Ke(Ke({color:n.color||c.color},c.style),n.style),height:h,width:h,xmlns:"http://www.w3.org/2000/svg"}),u&&F.createElement("title",null,u),n.children)};return Et!==void 0?F.createElement(Et.Consumer,null,c=>v(c)):v(Ot)}function Pt(n){return le({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M4 2a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2zm2-1a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1zM2 5a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1v-1h1v1a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h1v1z"},child:[]}]})(n)}function Gt(n){return le({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"m.5 3 .04.87a2 2 0 0 0-.342 1.311l.637 7A2 2 0 0 0 2.826 14H9v-1H2.826a1 1 0 0 1-.995-.91l-.637-7A1 1 0 0 1 2.19 4h11.62a1 1 0 0 1 .996 1.09L14.54 8h1.005l.256-2.819A2 2 0 0 0 13.81 3H9.828a2 2 0 0 1-1.414-.586l-.828-.828A2 2 0 0 0 6.172 1H2.5a2 2 0 0 0-2 2m5.672-1a1 1 0 0 1 .707.293L7.586 3H2.19q-.362.002-.683.12L1.5 2.98a1 1 0 0 1 1-.98z"},child:[]},{tag:"path",attr:{d:"M13.5 9a.5.5 0 0 1 .5.5V11h1.5a.5.5 0 1 1 0 1H14v1.5a.5.5 0 1 1-1 0V12h-1.5a.5.5 0 0 1 0-1H13V9.5a.5.5 0 0 1 .5-.5"},child:[]}]})(n)}function Rt(n){return le({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M3.5 3.5c-.614-.884-.074-1.962.858-2.5L8 7.226 11.642 1c.932.538 1.472 1.616.858 2.5L8.81 8.61l1.556 2.661a2.5 2.5 0 1 1-.794.637L8 9.73l-1.572 2.177a2.5 2.5 0 1 1-.794-.637L7.19 8.61zm2.5 10a1.5 1.5 0 1 0-3 0 1.5 1.5 0 0 0 3 0m7 0a1.5 1.5 0 1 0-3 0 1.5 1.5 0 0 0 3 0"},child:[]}]})(n)}function Xt(n){return le({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"23 4 23 10 17 10"},child:[]},{tag:"polyline",attr:{points:"1 20 1 14 7 14"},child:[]},{tag:"path",attr:{d:"M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15"},child:[]}]})(n)}function Zt(n){return le({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"},child:[]}]})(n)}function Qt(n){return le({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"},child:[]}]})(n)}function en(n){return le({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"},child:[]}]})(n)}function tn(n){return le({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"},child:[]}]})(n)}function Nt(n){return le({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M16 9v10H8V9h8m-1.5-6h-5l-1 1H5v2h14V4h-3.5l-1-1zM18 7H6v12c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7z"},child:[]}]})(n)}function nn(n){return le({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M18 15v3H6v-3H4v3c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-3h-2zM7 9l1.41 1.41L11 7.83V16h2V7.83l2.59 2.58L17 9l-5-5-5 5z"},child:[]}]})(n)}function rn(n){return le({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M10.02 6 8.61 7.41 13.19 12l-4.58 4.59L10.02 18l6-6-6-6z"},child:[]}]})(n)}function kt(n){return le({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M20.005 5.995h-1v2h1v8h-1v2h1c1.103 0 2-.897 2-2v-8c0-1.102-.898-2-2-2zm-14 4H15v4H6.005z"},child:[]},{tag:"path",attr:{d:"M17.005 17.995V4H20V2h-8v2h3.005v1.995h-11c-1.103 0-2 .897-2 2v8c0 1.103.897 2 2 2h11V20H12v2h8v-2h-2.995v-2.005zm-13-2v-8h11v8h-11z"},child:[]}]})(n)}function it(n){return le({tag:"svg",attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M64 464c-8.8 0-16-7.2-16-16V64c0-8.8 7.2-16 16-16H224v80c0 17.7 14.3 32 32 32h80V448c0 8.8-7.2 16-16 16H64zM64 0C28.7 0 0 28.7 0 64V448c0 35.3 28.7 64 64 64H320c35.3 0 64-28.7 64-64V154.5c0-17-6.7-33.3-18.7-45.3L274.7 18.7C262.7 6.7 246.5 0 229.5 0H64zm96 256a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zm69.2 46.9c-3-4.3-7.9-6.9-13.2-6.9s-10.2 2.6-13.2 6.9l-41.3 59.7-11.9-19.1c-2.9-4.7-8.1-7.5-13.6-7.5s-10.6 2.8-13.6 7.5l-40 64c-3.1 4.9-3.2 11.1-.4 16.2s8.2 8.2 14 8.2h48 32 40 72c6 0 11.4-3.3 14.2-8.6s2.4-11.6-1-16.5l-72-104z"},child:[]}]})(n)}function an(n){return le({tag:"svg",attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M64 464c-8.8 0-16-7.2-16-16V64c0-8.8 7.2-16 16-16H224v80c0 17.7 14.3 32 32 32h80V448c0 8.8-7.2 16-16 16H64zM64 0C28.7 0 0 28.7 0 64V448c0 35.3 28.7 64 64 64H320c35.3 0 64-28.7 64-64V154.5c0-17-6.7-33.3-18.7-45.3L274.7 18.7C262.7 6.7 246.5 0 229.5 0H64zm56 256c-13.3 0-24 10.7-24 24s10.7 24 24 24H264c13.3 0 24-10.7 24-24s-10.7-24-24-24H120zm0 96c-13.3 0-24 10.7-24 24s10.7 24 24 24H264c13.3 0 24-10.7 24-24s-10.7-24-24-24H120z"},child:[]}]})(n)}function on(n){return le({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M64 464l48 0 0 48-48 0c-35.3 0-64-28.7-64-64L0 64C0 28.7 28.7 0 64 0L229.5 0c17 0 33.3 6.7 45.3 18.7l90.5 90.5c12 12 18.7 28.3 18.7 45.3L384 304l-48 0 0-144-80 0c-17.7 0-32-14.3-32-32l0-80L64 48c-8.8 0-16 7.2-16 16l0 384c0 8.8 7.2 16 16 16zM176 352l32 0c30.9 0 56 25.1 56 56s-25.1 56-56 56l-16 0 0 32c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-48 0-80c0-8.8 7.2-16 16-16zm32 80c13.3 0 24-10.7 24-24s-10.7-24-24-24l-16 0 0 48 16 0zm96-80l32 0c26.5 0 48 21.5 48 48l0 64c0 26.5-21.5 48-48 48l-32 0c-8.8 0-16-7.2-16-16l0-128c0-8.8 7.2-16 16-16zm32 128c8.8 0 16-7.2 16-16l0-64c0-8.8-7.2-16-16-16l-16 0 0 96 16 0zm80-112c0-8.8 7.2-16 16-16l48 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-32 0 0 32 32 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-32 0 0 48c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-64 0-64z"},child:[]}]})(n)}function Mt(n){return le({tag:"svg",attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M48 448V64c0-8.8 7.2-16 16-16H224v80c0 17.7 14.3 32 32 32h80V448c0 8.8-7.2 16-16 16H64c-8.8 0-16-7.2-16-16zM64 0C28.7 0 0 28.7 0 64V448c0 35.3 28.7 64 64 64H320c35.3 0 64-28.7 64-64V154.5c0-17-6.7-33.3-18.7-45.3L274.7 18.7C262.7 6.7 246.5 0 229.5 0H64zm55 241.1c-3.8-12.7-17.2-19.9-29.9-16.1s-19.9 17.2-16.1 29.9l48 160c3 10.2 12.4 17.1 23 17.1s19.9-7 23-17.1l25-83.4 25 83.4c3 10.2 12.4 17.1 23 17.1s19.9-7 23-17.1l48-160c3.8-12.7-3.4-26.1-16.1-29.9s-26.1 3.4-29.9 16.1l-25 83.4-25-83.4c-3-10.2-12.4-17.1-23-17.1s-19.9 7-23 17.1l-25 83.4-25-83.4z"},child:[]}]})(n)}function ot(n){return le({tag:"svg",attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M320 464c8.8 0 16-7.2 16-16V160H256c-17.7 0-32-14.3-32-32V48H64c-8.8 0-16 7.2-16 16V448c0 8.8 7.2 16 16 16H320zM0 64C0 28.7 28.7 0 64 0H229.5c17 0 33.3 6.7 45.3 18.7l90.5 90.5c12 12 18.7 28.3 18.7 45.3V448c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V64z"},child:[]}]})(n)}function sn(n){return le({tag:"svg",attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M384 480h48c11.4 0 21.9-6 27.6-15.9l112-192c5.8-9.9 5.8-22.1 .1-32.1S555.5 224 544 224H144c-11.4 0-21.9 6-27.6 15.9L48 357.1V96c0-8.8 7.2-16 16-16H181.5c4.2 0 8.3 1.7 11.3 4.7l26.5 26.5c21 21 49.5 32.8 79.2 32.8H416c8.8 0 16 7.2 16 16v32h48V160c0-35.3-28.7-64-64-64H298.5c-17 0-33.3-6.7-45.3-18.7L226.7 50.7c-12-12-28.3-18.7-45.3-18.7H64C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64H87.7 384z"},child:[]}]})(n)}function st(n){return le({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M104.6 48H64C28.7 48 0 76.7 0 112V384c0 35.3 28.7 64 64 64h96V400H64c-8.8 0-16-7.2-16-16V112c0-8.8 7.2-16 16-16H80c0 17.7 14.3 32 32 32h72.4C202 108.4 227.6 96 256 96h62c-7.1-27.6-32.2-48-62-48H215.4C211.6 20.9 188.2 0 160 0s-51.6 20.9-55.4 48zM144 56a16 16 0 1 1 32 0 16 16 0 1 1 -32 0zM448 464H256c-8.8 0-16-7.2-16-16V192c0-8.8 7.2-16 16-16l140.1 0L464 243.9V448c0 8.8-7.2 16-16 16zM256 512H448c35.3 0 64-28.7 64-64V243.9c0-12.7-5.1-24.9-14.1-33.9l-67.9-67.9c-9-9-21.2-14.1-33.9-14.1H256c-35.3 0-64 28.7-64 64V448c0 35.3 28.7 64 64 64z"},child:[]}]})(n)}const lt=(n,v)=>{const c=v.filter(l=>l.path===n.path+"/"+n.name);return{...n,children:c.map(l=>lt(l,v))}},ln=({allowCreateFolder:n=!0,allowUploadFile:v=!0,handleRefresh:c,isItemSelection:l,setIsItemSelection:d,currentPath:u,selectedFile:s,setSelectedFile:h,files:f,clipBoard:o,setClipBoard:p,handlePaste:O,triggerAction:j})=>{const[D,A]=F.useState([{icon:r.jsx(Gt,{size:17,strokeWidth:.3}),text:"New Folder",permission:n,onClick:()=>j.show("createFolder")},{icon:r.jsx(nn,{size:18}),text:"Upload File",permission:v,onClick:()=>j.show("uploadFile")},{icon:r.jsx(st,{size:18}),text:"Paste",permission:!1,onClick:()=>{}}]),T=[{icon:r.jsx(Xt,{size:16}),title:"Refresh",onClick:c}],L=(_,I,R)=>{const x=R.files[0],S=_.filter(k=>{const $=k.path===x.path&&k.name===x.name,te=k.path.startsWith(x.path+"/"+x.name);return $||te});O(_,I,R,S),R.isMoving&&p(null),d(!1),h(null)};F.useEffect(()=>{A(_=>_.map(I=>I.text==="Paste"?{...I,permission:!!o,onClick:()=>L(f,u,o)}:I))},[o,u,f]);const V=_=>{p({files:[{...lt(s,f)}],isMoving:_})};if(l){const _=s.path+"/"+s.name;return r.jsx("div",{className:"toolbar file-selected",children:r.jsxs("div",{className:"file-action-container",children:[r.jsxs("div",{children:[r.jsxs("button",{className:"item-action file-action",onClick:()=>V(!0),children:[r.jsx(Rt,{size:18}),r.jsx("span",{children:"Cut"})]}),r.jsxs("button",{className:"item-action file-action",onClick:()=>V(!1),children:[r.jsx(Pt,{strokeWidth:.1,size:17}),r.jsx("span",{children:"Copy"})]}),s.isDirectory?r.jsxs("button",{className:"item-action file-action",onClick:()=>L(f,_,o),disabled:!o,children:[r.jsx(st,{size:18}),r.jsx("span",{children:"Paste"})]}):r.jsx(r.Fragment,{}),r.jsxs("button",{className:"item-action file-action",onClick:()=>j.show("rename"),children:[r.jsx(kt,{size:19}),r.jsx("span",{children:"Rename"})]}),r.jsxs("button",{className:"item-action file-action",onClick:()=>j.show("delete"),children:[r.jsx(Nt,{size:19}),r.jsx("span",{children:"Delete"})]})]}),r.jsxs("button",{className:"item-action file-action",onClick:()=>d(!1),children:[r.jsx(Qt,{size:18}),r.jsx("span",{children:"Clear Selection"})]})]})})}return r.jsx("div",{className:"toolbar",children:r.jsxs("div",{className:"fm-toolbar",children:[r.jsx("div",{children:D.filter(_=>_.permission).map((_,I)=>r.jsxs("button",{className:"item-action",onClick:_.onClick,children:[_.icon,r.jsx("span",{children:_.text})]},I))}),r.jsx("div",{children:T.map((_,I)=>r.jsxs("div",{className:"toolbar-left-items",children:[r.jsx("div",{className:"item-action icon-only",title:_.title,role:"button",onClick:_.onClick,children:_.icon}),I!==T.length-1&&r.jsx("div",{className:"item-separator"})]},I))})]})})};var _t={exports:{}};(function(n,v){(function(c,l){n.exports=l(F)})(xt,function(c){return function(l){var d={};function u(s){if(d[s])return d[s].exports;var h=d[s]={i:s,l:!1,exports:{}};return l[s].call(h.exports,h,h.exports,u),h.l=!0,h.exports}return u.m=l,u.c=d,u.d=function(s,h,f){u.o(s,h)||Object.defineProperty(s,h,{enumerable:!0,get:f})},u.r=function(s){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})},u.t=function(s,h){if(1&h&&(s=u(s)),8&h||4&h&&typeof s=="object"&&s&&s.__esModule)return s;var f=Object.create(null);if(u.r(f),Object.defineProperty(f,"default",{enumerable:!0,value:s}),2&h&&typeof s!="string")for(var o in s)u.d(f,o,(function(p){return s[p]}).bind(null,o));return f},u.n=function(s){var h=s&&s.__esModule?function(){return s.default}:function(){return s};return u.d(h,"a",h),h},u.o=function(s,h){return Object.prototype.hasOwnProperty.call(s,h)},u.p="",u(u.s=4)}([function(l,d,u){l.exports=u(2)()},function(l,d){l.exports=c},function(l,d,u){var s=u(3);function h(){}function f(){}f.resetWarningCache=h,l.exports=function(){function o(j,D,A,T,L,V){if(V!==s){var _=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 _.name="Invariant Violation",_}}function p(){return o}o.isRequired=o;var O={array:o,bigint:o,bool:o,func:o,number:o,object:o,string:o,symbol:o,any:o,arrayOf:p,element:o,elementType:o,instanceOf:p,node:o,objectOf:p,oneOf:p,oneOfType:p,shape:p,exact:p,checkPropTypes:f,resetWarningCache:h};return O.PropTypes=O,O}},function(l,d,u){l.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(l,d,u){u.r(d);var s=u(1),h=u.n(s),f=u(0),o=u.n(f),p=function(x){return x!==0};function O(){return(O=Object.assign?Object.assign.bind():function(x){for(var S=1;S<arguments.length;S++){var k=arguments[S];for(var $ in k)Object.prototype.hasOwnProperty.call(k,$)&&(x[$]=k[$])}return x}).apply(this,arguments)}function j(x){return(j=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(S){return typeof S}:function(S){return S&&typeof Symbol=="function"&&S.constructor===Symbol&&S!==Symbol.prototype?"symbol":typeof S})(x)}function D(x,S){for(var k=0;k<S.length;k++){var $=S[k];$.enumerable=$.enumerable||!1,$.configurable=!0,"value"in $&&($.writable=!0),Object.defineProperty(x,$.key,$)}}function A(x,S){return(A=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(k,$){return k.__proto__=$,k})(x,S)}function T(x){var S=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var k,$=_(x);if(S){var te=_(this).constructor;k=Reflect.construct($,arguments,te)}else k=$.apply(this,arguments);return L(this,k)}}function L(x,S){if(S&&(j(S)==="object"||typeof S=="function"))return S;if(S!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return V(x)}function V(x){if(x===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x}function _(x){return(_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(S){return S.__proto__||Object.getPrototypeOf(S)})(x)}function I(x,S,k){return S in x?Object.defineProperty(x,S,{value:k,enumerable:!0,configurable:!0,writable:!0}):x[S]=k,x}var R=function(x){(function(q,N){if(typeof N!="function"&&N!==null)throw new TypeError("Super expression must either be null or a function");q.prototype=Object.create(N&&N.prototype,{constructor:{value:q,writable:!0,configurable:!0}}),Object.defineProperty(q,"prototype",{writable:!1}),N&&A(q,N)})(te,x);var S,k,$=T(te);function te(q){var N;return function(Q,ne){if(!(Q instanceof ne))throw new TypeError("Cannot call a class as a function")}(this,te),I(V(N=$.call(this,q)),"continueOpenCollapsible",function(){var Q=V(N).innerRef;N.setState({height:Q.scrollHeight,transition:"height ".concat(N.props.transitionTime,"ms ").concat(N.props.easing),isClosed:!1,hasBeenOpened:!0,inTransition:p(Q.scrollHeight),shouldOpenOnNextCycle:!1})}),I(V(N),"handleTriggerClick",function(Q){N.props.triggerDisabled||N.state.inTransition||(Q.preventDefault(),N.props.handleTriggerClick?N.props.handleTriggerClick(N.props.accordionPosition):N.state.isClosed===!0?(N.openCollapsible(),N.props.onOpening(),N.props.onTriggerOpening()):(N.closeCollapsible(),N.props.onClosing(),N.props.onTriggerClosing()))}),I(V(N),"handleTransitionEnd",function(Q){Q.target===N.innerRef&&(N.state.isClosed?(N.setState({inTransition:!1}),N.props.onClose()):(N.setState({height:"auto",overflow:N.props.overflowWhenOpen,inTransition:!1}),N.props.onOpen()))}),I(V(N),"setInnerRef",function(Q){return N.innerRef=Q}),N.timeout=void 0,N.contentId=q.contentElementId||"collapsible-content-".concat(Date.now()),N.triggerId=q.triggerElementProps.id||"collapsible-trigger-".concat(Date.now()),q.open?N.state={isClosed:!1,shouldSwitchAutoOnNextCycle:!1,height:"auto",transition:"none",hasBeenOpened:!0,overflow:q.overflowWhenOpen,inTransition:!1}:N.state={isClosed:!0,shouldSwitchAutoOnNextCycle:!1,height:0,transition:"height ".concat(q.transitionTime,"ms ").concat(q.easing),hasBeenOpened:!1,overflow:"hidden",inTransition:!1},N}return S=te,(k=[{key:"componentDidUpdate",value:function(q,N){var Q=this;this.state.shouldOpenOnNextCycle&&this.continueOpenCollapsible(),N.height!=="auto"&&N.height!==0||this.state.shouldSwitchAutoOnNextCycle!==!0||(window.clearTimeout(this.timeout),this.timeout=window.setTimeout(function(){Q.setState({height:0,overflow:"hidden",isClosed:!0,shouldSwitchAutoOnNextCycle:!1})},50)),q.open!==this.props.open&&(this.props.open===!0?(this.openCollapsible(),this.props.onOpening()):(this.closeCollapsible(),this.props.onClosing()))}},{key:"componentWillUnmount",value:function(){window.clearTimeout(this.timeout)}},{key:"closeCollapsible",value:function(){var q=this.innerRef;this.setState({shouldSwitchAutoOnNextCycle:!0,height:q.scrollHeight,transition:"height ".concat(this.props.transitionCloseTime?this.props.transitionCloseTime:this.props.transitionTime,"ms ").concat(this.props.easing),inTransition:p(q.scrollHeight)})}},{key:"openCollapsible",value:function(){this.setState({inTransition:p(this.innerRef.scrollHeight),shouldOpenOnNextCycle:!0})}},{key:"renderNonClickableTriggerElement",value:function(){var q=this.props,N=q.triggerSibling,Q=q.classParentString;if(!N)return null;switch(j(N)){case"string":return h.a.createElement("span",{className:"".concat(Q,"__trigger-sibling")},N);case"function":return N();case"object":return N;default:return null}}},{key:"render",value:function(){var q=this,N={height:this.state.height,WebkitTransition:this.state.transition,msTransition:this.state.transition,transition:this.state.transition,overflow:this.state.overflow},Q=this.state.isClosed?"is-closed":"is-open",ne=this.props.triggerDisabled?"is-disabled":"",oe=this.state.isClosed===!1&&this.props.triggerWhenOpen!==void 0?this.props.triggerWhenOpen:this.props.trigger,de=this.props.contentContainerTagName,ce=this.props.triggerTagName,ve=this.props.lazyRender&&!this.state.hasBeenOpened&&this.state.isClosed&&!this.state.inTransition?null:this.props.children,ue=this.props,G=ue.classParentString,fe=ue.contentOuterClassName,pe=ue.contentInnerClassName,w="".concat(G,"__trigger ").concat(Q," ").concat(ne," ").concat(this.state.isClosed?this.props.triggerClassName:this.props.triggerOpenedClassName),z="".concat(G," ").concat(this.state.isClosed?this.props.className:this.props.openedClassName),Y="".concat(G,"__contentOuter ").concat(fe),K="".concat(G,"__contentInner ").concat(pe);return h.a.createElement(de,O({className:z.trim()},this.props.containerElementProps),h.a.createElement(ce,O({id:this.triggerId,className:w.trim(),onClick:this.handleTriggerClick,style:this.props.triggerStyle&&this.props.triggerStyle,onKeyPress:function(B){var i=B.key;(i===" "&&q.props.triggerTagName.toLowerCase()!=="button"||i==="Enter")&&q.handleTriggerClick(B)},tabIndex:this.props.tabIndex&&this.props.tabIndex,"aria-expanded":!this.state.isClosed,"aria-disabled":this.props.triggerDisabled,"aria-controls":this.contentId,role:"button"},this.props.triggerElementProps),oe),this.renderNonClickableTriggerElement(),h.a.createElement("div",{id:this.contentId,className:Y.trim(),style:N,onTransitionEnd:this.handleTransitionEnd,ref:this.setInnerRef,hidden:this.props.contentHiddenWhenClosed&&this.state.isClosed&&!this.state.inTransition,role:"region","aria-labelledby":this.triggerId},h.a.createElement("div",{className:K.trim()},ve)))}}])&&D(S.prototype,k),Object.defineProperty(S,"prototype",{writable:!1}),te}(s.Component);R.propTypes={transitionTime:o.a.number,transitionCloseTime:o.a.number,triggerTagName:o.a.string,easing:o.a.string,open:o.a.bool,containerElementProps:o.a.object,triggerElementProps:o.a.object,contentElementId:o.a.string,classParentString:o.a.string,className:o.a.string,openedClassName:o.a.string,triggerStyle:o.a.object,triggerClassName:o.a.string,triggerOpenedClassName:o.a.string,contentOuterClassName:o.a.string,contentInnerClassName:o.a.string,accordionPosition:o.a.oneOfType([o.a.string,o.a.number]),handleTriggerClick:o.a.func,onOpen:o.a.func,onClose:o.a.func,onOpening:o.a.func,onClosing:o.a.func,onTriggerOpening:o.a.func,onTriggerClosing:o.a.func,trigger:o.a.oneOfType([o.a.string,o.a.element]),triggerWhenOpen:o.a.oneOfType([o.a.string,o.a.element]),triggerDisabled:o.a.bool,lazyRender:o.a.bool,overflowWhenOpen:o.a.oneOf(["hidden","visible","auto","scroll","inherit","initial","unset"]),contentHiddenWhenClosed:o.a.bool,triggerSibling:o.a.oneOfType([o.a.string,o.a.element,o.a.func]),tabIndex:o.a.number,contentContainerTagName:o.a.string,children:o.a.oneOfType([o.a.string,o.a.element])},R.defaultProps={transitionTime:400,transitionCloseTime:null,triggerTagName:"span",easing:"linear",open:!1,classParentString:"Collapsible",triggerDisabled:!1,lazyRender:!1,overflowWhenOpen:"hidden",contentHiddenWhenClosed:!1,openedClassName:"",triggerStyle:null,triggerClassName:"",triggerOpenedClassName:"",contentOuterClassName:"",contentInnerClassName:"",className:"",triggerSibling:null,onOpen:function(){},onClose:function(){},onOpening:function(){},onClosing:function(){},onTriggerOpening:function(){},onTriggerClosing:function(){},tabIndex:null,contentContainerTagName:"div",triggerElementProps:{}},d.default=R}])})})(_t);var cn=_t.exports;const un=jt(cn);function At(n){return le({tag:"svg",attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M527.9 224H480v-48c0-26.5-21.5-48-48-48H272l-64-64H48C21.5 64 0 85.5 0 112v288c0 26.5 21.5 48 48 48h400c16.5 0 31.9-8.5 40.7-22.6l79.9-128c20-31.9-3-73.4-40.7-73.4zM48 118c0-3.3 2.7-6 6-6h134.1l64 64H426c3.3 0 6 2.7 6 6v42H152c-16.8 0-32.4 8.8-41.1 23.2L48 351.4zm400 282H72l77.2-128H528z"},child:[]}]})(n)}function Vt(n){return le({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M464 128H272l-54.63-54.63c-6-6-14.14-9.37-22.63-9.37H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V176c0-26.51-21.49-48-48-48zm0 272H48V112h140.12l54.63 54.63c6 6 14.14 9.37 22.63 9.37H464v224z"},child:[]}]})(n)}const zt=({folder:n,setCurrentPath:v,currentPath:c})=>{const[l,d]=F.useState(!1),[u,s]=F.useState(!1),h=`${n.path}/${n.name}`,f=()=>{s(!0),v(h)},o=p=>{p.stopPropagation(),d(O=>!O)};return F.useEffect(()=>{s(c===h);const p=c.split("/");p.pop(),p.join("/")===h&&d(!0)},[c]),n.subDirectories?r.jsxs(r.Fragment,{children:[r.jsxs("div",{className:`sb-folders-list-item ${u?"active-list-item":""}`,onClick:f,children:[r.jsx("span",{onClick:o,children:r.jsx(en,{size:20,className:`${l?"folder-rotate-down":"folder-rotate-right"}`})}),r.jsxs("div",{className:"sb-folder-details",children:[l||u?r.jsx(At,{size:20,className:"folder-open-icon"}):r.jsx(Vt,{size:17,className:"folder-close-icon"}),r.jsx("span",{className:"sb-folder-name",title:n.name,children:n.name})]})]}),r.jsx(un,{open:l,children:r.jsx("div",{className:"folder-collapsible",children:n.subDirectories.map((p,O)=>r.jsx(zt,{folder:p,setCurrentPath:v,currentPath:c},O))})})]}):r.jsxs("div",{className:`sb-folders-list-item ${u?"active-list-item":""}`,onClick:f,children:[r.jsx("span",{className:"non-expanable"}),r.jsxs("div",{className:"sb-folder-details",children:[u?r.jsx(At,{size:20,className:"folder-open-icon"}):r.jsx(Vt,{size:17,className:"folder-close-icon"}),r.jsx("span",{className:"sb-folder-name",title:n.name,children:n.name})]})]})},fn=({files:n,currentPath:v,setCurrentPath:c})=>{const[l,d]=F.useState([]),u=(s,h)=>{var o;var f=s.path+"/"+s.name;return h[f]?(o=h[f])==null?void 0:o.map(p=>({...p,subDirectories:u(p,h)})):null};return F.useEffect(()=>{const s=n.filter(f=>f.isDirectory),h=Object.groupBy(s,({path:f})=>f);d(()=>{var f;return s.length>0?(f=h[""])==null?void 0:f.map(o=>({...o,subDirectories:u(o,h)})):[]})},[n]),r.jsx("div",{className:"sb-folders-list",children:(l==null?void 0:l.length)>0?r.jsx(r.Fragment,{children:l==null?void 0:l.map((s,h)=>r.jsx(zt,{folder:s,setCurrentPath:c,currentPath:v},h))}):r.jsx("div",{className:"empty-nav-pane",children:"Nothing here yet"})})},dn=({currentPath:n,setCurrentPath:v})=>{const[c,l]=F.useState([]);F.useEffect(()=>{l(n==null?void 0:n.split("/"))},[n]);const d=u=>{u<c.length-1&&v(()=>{const s=c.length-(u+1);return c.slice(0,-s).join("/")})};return r.jsx("div",{className:"breadcrumb",children:c.map((u,s)=>r.jsx("span",{className:"folder-name",onClick:()=>d(s),children:s===0?r.jsxs(r.Fragment,{children:[r.jsx(Zt,{})," Home"]}):r.jsxs(r.Fragment,{children:[r.jsx(rn,{})," ",u]})},s))})};function pn(n){return le({tag:"svg",attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M245,110.64A16,16,0,0,0,232,104H216V88a16,16,0,0,0-16-16H130.67L102.94,51.2a16.14,16.14,0,0,0-9.6-3.2H40A16,16,0,0,0,24,64V208h0a8,8,0,0,0,8,8H211.1a8,8,0,0,0,7.59-5.47l28.49-85.47A16.05,16.05,0,0,0,245,110.64ZM93.34,64,123.2,86.4A8,8,0,0,0,128,88h72v16H69.77a16,16,0,0,0-15.18,10.94L40,158.7V64Zm112,136H43.1l26.67-80H232Z"},child:[]}]})(n)}const hn=({children:n,contextMenuRef:v,content:c,visible:l,setVisible:d})=>{const[u,s]=F.useState(0),[h,f]=F.useState(0),o=p=>{p.preventDefault(),d(!0);const O=p.clientX,j=p.clientY,D=window.innerWidth,A=window.innerHeight,T=112,L=82,V=D-O>T,_=!V,I=A-j>L,R=!I;V?s(`${O+5}px`):_&&s(`${O-T-5}px`),I?f(`${j+5}px`):R&&f(`${j-L-5}px`)};return r.jsxs("div",{onContextMenu:o,onClick:p=>d(!1),children:[n,l&&r.jsx("div",{ref:v,className:"fm-context-menu",style:{top:h,left:u},children:c})]})},vn=n=>{const v=F.useRef(null),c=l=>{var d;(d=v.current)!=null&&d.contains(l.target)||n()};return F.useEffect(()=>(document.addEventListener("mousedown",c,!0),()=>{document.removeEventListener("mousedown",c,!0)}),[]),v},Ht=n=>({pdf:r.jsx(on,{size:n}),jpg:r.jsx(it,{size:n}),jpeg:r.jsx(it,{size:n}),png:r.jsx(it,{size:n}),txt:r.jsx(an,{size:n}),doc:r.jsx(Mt,{size:n}),docx:r.jsx(Mt,{size:n})}),mn=({file:n,index:v,selectedFileIndex:c,setSelectedFileIndex:l,setCurrentPath:d,isItemSelection:u,setIsItemSelection:s,setSelectedFile:h,currentPath:f,clipBoard:o,setClipBoard:p,handlePaste:O,files:j,triggerAction:D})=>{var ve,ue;const A=Ht(48),[T,L]=F.useState(!1),[V,_]=F.useState(!1),[I,R]=F.useState(0),[x,S]=F.useState(!1),k=(o==null?void 0:o.isMoving)&&o.files.find(G=>G.name===n.name&&G.path===n.path),$=vn(()=>{L(!1)}),te=(G,fe)=>{G.stopPropagation(),p({files:[{...lt(n,j)}],isMoving:fe}),L(!1)},q=G=>{if(G.stopPropagation(),o){const fe=n.path+"/"+n.name,pe=o.files[0],w=j.filter(z=>{const Y=z.path===pe.path&&z.name===pe.name,K=z.path.startsWith(pe.path+"/"+pe.name);return Y||K});O(j,fe,o,w),o.isMoving&&p(null),s(!1),h(null),L(!1)}},N=G=>{G.stopPropagation(),L(!1),D.show("rename")},Q=G=>{G.stopPropagation(),L(!1),D.show("delete")},ne=()=>{L(!1),n.isDirectory?(d(G=>G+"/"+n.name),l(null)):S(!0)},oe=G=>{G.stopPropagation(),s(!0),h(n),l(v);const fe=new Date().getTime();fe-I<300&&(s(!1),ne()),R(fe)},de=G=>{G.key==="Enter"&&ne()};F.useEffect(()=>{_(c===v)},[c]),F.useEffect(()=>{c===v&&_(u)},[u]);const ce=r.jsx("div",{className:"file-context-menu-list",children:r.jsxs("ul",{children:[r.jsxs("li",{onClick:ne,children:[n.isDirectory?r.jsx(pn,{size:20}):r.jsx(ot,{size:16}),r.jsx("span",{children:"Open"})]}),r.jsxs("li",{onClick:G=>te(G,!0),children:[r.jsx(Rt,{size:19}),r.jsx("span",{children:"Cut"})]}),r.jsxs("li",{onClick:G=>te(G,!1),children:[r.jsx(Pt,{strokeWidth:.1,size:17}),r.jsx("span",{children:"Copy"})]}),n.isDirectory?r.jsxs("li",{onClick:q,className:`${o?"":"disable-paste"}`,children:[r.jsx(st,{size:18}),r.jsx("span",{children:"Paste"})]}):r.jsx(r.Fragment,{}),r.jsxs("li",{onClick:N,children:[r.jsx(kt,{size:19}),r.jsx("span",{children:"Rename"})]}),r.jsxs("li",{onClick:Q,children:[r.jsx(Nt,{size:19}),r.jsx("span",{children:"Delete"})]})]})});return r.jsx(r.Fragment,{children:r.jsx(hn,{contextMenuRef:$,visible:T,setVisible:L,content:ce,children:r.jsxs("div",{className:`file-item ${V?"background-secondary text-white":""} ${k?"file-moving":""}`,title:n.name,onClick:oe,onKeyUp:de,onContextMenu:()=>{s(!0),h(n),l(v)},tabIndex:0,children:[n.isDirectory?r.jsx(sn,{size:48}):r.jsx(r.Fragment,{children:A[(ue=(ve=n.name)==null?void 0:ve.split(".").pop())==null?void 0:ue.toLowerCase()]??r.jsx(ot,{size:48})}),r.jsx("span",{className:"text-truncate file-name",children:n.name})]})})})},gn=({currentPathFiles:n,setCurrentPath:v,isItemSelection:c,setIsItemSelection:l,setSelectedFile:d,currentPath:u,clipBoard:s,setClipBoard:h,handlePaste:f,files:o,triggerAction:p})=>{const[O,j]=F.useState(null);return F.useEffect(()=>{j(null),l(!1),d(null)},[u]),r.jsx("div",{className:"files",onClick:D=>{j(null),l(!1),d(null)},children:(n==null?void 0:n.length)>0?r.jsx(r.Fragment,{children:n.map((D,A)=>r.jsx(mn,{file:D,index:A,selectedFileIndex:O,setSelectedFileIndex:j,setCurrentPath:v,isItemSelection:c,setIsItemSelection:l,setSelectedFile:d,currentPath:u,clipBoard:s,setClipBoard:h,handlePaste:f,files:o,triggerAction:p},A))}):r.jsx("div",{className:"empty-folder",children:"This folder is empty."})})},yn=()=>{const[n,v]=F.useState(!1),[c,l]=F.useState(null);return{isActive:n,actionType:c,show:s=>{v(!0),l(s)},close:()=>{v(!1),l(null)}}},bn=({children:n,show:v,setShow:c,heading:l,dialogWidth:d="25%",contentClassName:u=""})=>{const s=F.useRef(null);return F.useEffect(()=>{v?s.current.showModal():s.current.close()},[v]),r.jsxs("dialog",{ref:s,className:"fm-modal dialog",style:{width:d},children:[r.jsxs("div",{className:"fm-modal-header",children:[r.jsx("span",{className:"fm-modal-heading",children:l}),r.jsx(tn,{size:18,onClick:()=>c(!1),className:"close-icon",title:"Close"})]}),n]})},Pe=({onClick:n,type:v="primary",padding:c="0.4rem 0.8rem",children:l})=>r.jsx("button",{onClick:n,className:`fm-button fm-button-${v}`,style:{padding:c},children:l}),xn=({files:n,currentPath:v,currentPathFiles:c,handleCreateFolder:l,triggerAction:d})=>{const[u,s]=F.useState("New Folder"),[h,f]=F.useState(!1),[o,p]=F.useState(""),O=T=>{s(T.target.value),f(!1)},j=T=>{/[\\/:*?"<>|]/.test(T.key)?(T.preventDefault(),p(`A file name can't contain any of the following characters: \\ / : * ? " < > |`),f(!0)):f(!1)},D=()=>{const T=u.trim();T===""?(p("Folder name cannot be empty."),f(!0)):c.find(V=>V.name.toLowerCase()===T.toLowerCase())?(p(`A folder with the name "${T}" already exits.`),f(!0)):(l(n,T,v),d.close())},A=F.useRef(null);return F.useEffect(()=>{A.current.focus(),A.current.select()},[]),r.jsxs("div",{className:"fm-create-folder-container",children:[r.jsxs("div",{className:"fm-create-folder-input",children:[r.jsx("input",{ref:A,type:"text",value:u,onChange:O,onKeyDown:j,className:"action-input"}),h&&r.jsx("div",{className:"folder-error",children:o})]}),r.jsx("div",{className:"fm-create-folder-action",children:r.jsx(Pe,{onClick:D,type:"primary",children:"Create"})})]})};function jn(n){return le({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M85.57 446.25h340.86a32 32 0 0 0 28.17-47.17L284.18 82.58c-12.09-22.44-44.27-22.44-56.36 0L57.4 399.08a32 32 0 0 0 28.17 47.17z"},child:[]},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"m250.26 195.39 5.74 122 5.73-121.95a5.74 5.74 0 0 0-5.79-6h0a5.74 5.74 0 0 0-5.68 5.95z"},child:[]},{tag:"path",attr:{d:"M256 397.25a20 20 0 1 1 20-20 20 20 0 0 1-20 20z"},child:[]}]})(n)}const wn=({files:n,selectedFile:v,currentPathFiles:c,handleRename:l,triggerAction:d,setSelectedFile:u})=>{const[s,h]=F.useState(v==null?void 0:v.name),f=F.useRef(null),[o,p]=F.useState(!1),[O,j]=F.useState(!1),[D,A]=F.useState("");F.useEffect(()=>{var V,_,I;if(v)if((V=f==null?void 0:f.current)==null||V.focus(),v.isDirectory)(_=f==null?void 0:f.current)==null||_.select();else{const R=v.name.split(".").pop(),x=v.name.length-R.length-1;(I=f==null?void 0:f.current)==null||I.setSelectionRange(0,x)}else p(!1)},[]);const T=V=>{/[\\/:*?"<>|]/.test(V.key)?(V.preventDefault(),A(`A file name can't contain any of the following characters: \\ / : * ? " < > |`),j(!0)):j(!1)},L=(V,_)=>{if(s===""){j(!0),A(`${v.isDirectory?"Folder":"File"} name is required!`);return}else if(s===v.name){d.close();return}else if(c.some(I=>I.name===s)){j(!0),A("A file or folder with the same name already exists!");return}else if(!v.isDirectory&&!_){const I=v.name.split(".").pop(),R=s.split(".").pop();if(I!==R){p(!0);return}}l(n,v,s),u(I=>({...I,name:s})),d.close()};return r.jsx(r.Fragment,{children:o?r.jsxs("div",{className:"fm-rename-folder-container",children:[r.jsx("div",{className:"fm-rename-folder-input",children:r.jsxs("div",{className:"fm-rename-warning",children:[r.jsx(jn,{size:70,color:"orange"}),r.jsx("div",{children:"If you change a file name extension, the file might become unusable. Are you sure you want to change it?"})]})}),r.jsxs("div",{className:"fm-rename-folder-action",children:[r.jsx(Pe,{type:"secondary",onClick:()=>p(!1),children:"No"}),r.jsx(Pe,{type:"danger",onClick:V=>L(V,!0),children:"Yes"})]})]}):r.jsxs("div",{className:"fm-rename-folder-container",children:[r.jsxs("div",{className:"fm-rename-folder-input",children:[r.jsx("input",{ref:f,type:"text",value:s,onChange:V=>{h(V.target.value),j(!1)},onKeyDown:T,className:"action-input"}),O&&r.jsx("div",{className:"folder-error",children:D})]}),r.jsx("div",{className:"fm-rename-folder-action",children:r.jsx(Pe,{onClick:L,type:"primary",children:"Save"})})]})})},Cn=({files:n,selectedFile:v,triggerAction:c,handleDelete:l,setIsItemSelection:d,setSelectedFile:u})=>{const s=h=>{l(n,h),d(!1),u(null),c.close()};return r.jsxs("div",{className:"file-delete-confirm",children:[r.jsxs("p",{className:"file-delete-confirm-text",children:['Are you sure you want to delete "',v==null?void 0:v.name,'"?']}),r.jsxs("div",{className:"file-delete-confirm-actions",children:[r.jsx(Pe,{type:"secondary",onClick:()=>c.close(),children:"Cancel"}),r.jsx(Pe,{type:"danger",onClick:()=>s(v),children:"Delete"})]})]})};function On(n){return le({tag:"svg",attr:{viewBox:"0 0 1024 1024",fill:"currentColor",fillRule:"evenodd"},child:[{tag:"path",attr:{d:"M799.855 166.312c.023.007.043.018.084.059l57.69 57.69c.041.041.052.06.059.084a.118.118 0 0 1 0 .069c-.007.023-.018.042-.059.083L569.926 512l287.703 287.703c.041.04.052.06.059.083a.118.118 0 0 1 0 .07c-.007.022-.018.042-.059.083l-57.69 57.69c-.041.041-.06.052-.084.059a.118.118 0 0 1-.069 0c-.023-.007-.042-.018-.083-.059L512 569.926 224.297 857.629c-.04.041-.06.052-.083.059a.118.118 0 0 1-.07 0c-.022-.007-.042-.018-.083-.059l-57.69-57.69c-.041-.041-.052-.06-.059-.084a.118.118 0 0 1 0-.069c.007-.023.018-.042.059-.083L454.073 512 166.371 224.297c-.041-.04-.052-.06-.059-.083a.118.118 0 0 1 0-.07c.007-.022.018-.042.059-.083l57.69-57.69c.041-.041.06-.052.084-.059a.118.118 0 0 1 .069 0c.023.007.042.018.083.059L512 454.073l287.703-287.702c.04-.041.06-.052.083-.059a.118.118 0 0 1 .07 0Z"},child:[]}]})(n)}function En(n){return le({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M518.3 459a8 8 0 0 0-12.6 0l-112 141.7a7.98 7.98 0 0 0 6.3 12.9h73.9V856c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V613.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 459z"},child:[]},{tag:"path",attr:{d:"M811.4 366.7C765.6 245.9 648.9 160 512.2 160S258.8 245.8 213 366.6C127.3 389.1 64 467.2 64 560c0 110.5 89.5 200 199.9 200H304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8h-40.1c-33.7 0-65.4-13.4-89-37.7-23.5-24.2-36-56.8-34.9-90.6.9-26.4 9.9-51.2 26.2-72.1 16.7-21.3 40.1-36.8 66.1-43.7l37.9-9.9 13.9-36.6c8.6-22.8 20.6-44.1 35.7-63.4a245.6 245.6 0 0 1 52.4-49.9c41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.2c19.9 14 37.5 30.8 52.4 49.9 15.1 19.3 27.1 40.7 35.7 63.4l13.8 36.5 37.8 10C846.1 454.5 884 503.8 884 560c0 33.1-12.9 64.3-36.3 87.7a123.07 123.07 0 0 1-87.6 36.3H720c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h40.1C870.5 760 960 670.5 960 560c0-92.7-63.1-170.7-148.6-193.3z"},child:[]}]})(n)}const Tn=n=>n.split(".").pop(),Sn=({percent:n=0})=>r.jsxs("div",{role:"progressbar",className:"fm-progress",children:[r.jsx("div",{className:"fm-progress-bar",children:r.jsx("div",{className:"fm-progress-bar-fill",style:{width:`${n}%`}})}),r.jsxs("div",{className:"fm-progress-status",children:[n,"% done"]})]}),Pn=({onFilesSelected:n,allowedFileExtensions:v})=>{const[c,l]=F.useState([]),[d,u]=F.useState(!1),s=Ht(33),h=o=>{o.preventDefault(),u(!1);const p=o.dataTransfer.files;p.length>0&&l(O=>[...O,...p])},f=o=>{const p=o.target.files;p.length>0&&l(O=>[...O,...p])};return r.jsxs("div",{className:`fm-upload-file ${c.length>0?"file-selcted":""}`,children:[r.jsxs("div",{className:"select-files",children:[r.jsx("div",{className:`draggable-file-input ${d?"dragging":""}`,onDrop:h,onDragOver:o=>o.preventDefault(),onDragEnter:()=>u(!0),onDragLeave:()=>u(!1),children:r.jsxs("div",{className:"input-text",children:[r.jsx(En,{size:30}),r.jsx("span",{children:"Drag files to upload"})]})}),r.jsx("div",{className:"btn-choose-file",children:r.jsxs(Pe,{padding:"0",children:[r.jsx("label",{htmlFor:"chooseFile",children:"Choose File"}),r.jsx("input",{type:"file",id:"chooseFile",className:"choose-file-input",onChange:f,multiple:!0,accept:v})]})})]}),c.length>0&&r.jsxs("div",{className:"files-progress",children:[r.jsx("h2",{children:"Uploading"}),r.jsx("ul",{children:c.map((o,p)=>r.jsxs("li",{children:[r.jsx("div",{className:"file-icon",children:s[Tn(o.name)]??r.jsx(ot,{size:33})}),r.jsxs("div",{className:"file",children:[r.jsxs("div",{className:"file-details",children:[r.jsxs("div",{className:"file-info",children:[r.jsx("span",{className:"file-name text-truncate",title:o.name,children:o.name}),r.jsxs("span",{className:"file-size",children:[" ",o.size/1e3," KB"]})]}),r.jsx("div",{className:"rm-file",title:"remove",children:r.jsx(On,{})})]}),r.jsx(Sn,{percent:20})]})]},p))})]})]})},Rn=({files:n,triggerAction:v,currentPath:c,currentPathFiles:l,selectedFile:d,setSelectedFile:u,handleCreateFolder:s,handleRename:h,setIsItemSelection:f,handleDelete:o,allowedFileExtensions:p})=>{const[O,j]=F.useState(null),D={createFolder:{title:"Create Folder",component:r.jsx(xn,{files:n,currentPath:c,currentPathFiles:l,triggerAction:v,handleCreateFolder:s}),width:"25%"},uploadFile:{title:"Upload File",component:r.jsx(Pn,{allowedFileExtensions:p}),width:"35%"},rename:{title:"Rename",component:r.jsx(wn,{files:n,selectedFile:d,currentPathFiles:l,triggerAction:v,handleRename:h,setSelectedFile:u}),width:"25%"},delete:{title:"Delete",component:r.jsx(Cn,{files:n,selectedFile:d,triggerAction:v,handleDelete:o,setIsItemSelection:f,setSelectedFile:u}),width:"25%"},preview:{title:"Preview"}};return F.useEffect(()=>{if(v.isActive){const A=v.actionType;j(D[A])}else j(null)},[v.isActive]),r.jsx(bn,{heading:O==null?void 0:O.title,show:v.isActive,setShow:v.close,dialogWidth:O==null?void 0:O.width,children:O==null?void 0:O.component})};var Dt={exports:{}};(function(n,v){(function(l,d){n.exports=d()})(typeof self<"u"?self:xt,function(){return function(c){var l={};function d(u){if(l[u])return l[u].exports;var s=l[u]={i:u,l:!1,exports:{}};return c[u].call(s.exports,s,s.exports,d),s.l=!0,s.exports}return d.m=c,d.c=l,d.d=function(u,s,h){d.o(u,s)||Object.defineProperty(u,s,{configurable:!1,enumerable:!0,get:h})},d.n=function(u){var s=u&&u.__esModule?function(){return u.default}:function(){return u};return d.d(s,"a",s),s},d.o=function(u,s){return Object.prototype.hasOwnProperty.call(u,s)},d.p="/",d(d.s=7)}([function(c,l,d){var u=function(f){};process.env.NODE_ENV!=="production"&&(u=function(f){if(f===void 0)throw new Error("invariant requires an error message argument")});function s(h,f,o,p,O,j,D,A){if(u(f),!h){var T;if(f===void 0)T=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var L=[o,p,O,j,D,A],V=0;T=new Error(f.replace(/%s/g,function(){return L[V++]})),T.name="Invariant Violation"}throw T.framesToPop=1,T}}c.exports=s},function(c,l,d){function u(h){return function(){return h}}var s=function(){};s.thatReturns=u,s.thatReturnsFalse=u(!1),s.thatReturnsTrue=u(!0),s.thatReturnsNull=u(null),s.thatReturnsThis=function(){return this},s.thatReturnsArgument=function(h){return h},c.exports=s},function(c,l,d){/*
30
+ <%s key={someKey} {...props} />`,ye,J,be,J),et[J+ye]=!0}}return t===c?Qe(S):yt(S),S}}function tt(t,x,A){return Be(t,x,A,!0)}function nt(t,x,A){return Be(t,x,A,!1)}var bt=nt,rt=tt;Fe.Fragment=c,Fe.jsx=bt,Fe.jsxs=rt}()),Fe}process.env.NODE_ENV==="production"?at.exports=$t():at.exports=Wt();var r=at.exports,Ot={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Et=D.createContext&&D.createContext(Ot),Ut=["attr","size","title"];function Bt(n,p){if(n==null)return{};var o=Yt(n,p),c,d;if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(n);for(d=0;d<u.length;d++)c=u[d],!(p.indexOf(c)>=0)&&Object.prototype.propertyIsEnumerable.call(n,c)&&(o[c]=n[c])}return o}function Yt(n,p){if(n==null)return{};var o={};for(var c in n)if(Object.prototype.hasOwnProperty.call(n,c)){if(p.indexOf(c)>=0)continue;o[c]=n[c]}return o}function Ye(){return Ye=Object.assign?Object.assign.bind():function(n){for(var p=1;p<arguments.length;p++){var o=arguments[p];for(var c in o)Object.prototype.hasOwnProperty.call(o,c)&&(n[c]=o[c])}return n},Ye.apply(this,arguments)}function Tt(n,p){var o=Object.keys(n);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(n);p&&(c=c.filter(function(d){return Object.getOwnPropertyDescriptor(n,d).enumerable})),o.push.apply(o,c)}return o}function Ke(n){for(var p=1;p<arguments.length;p++){var o=arguments[p]!=null?arguments[p]:{};p%2?Tt(Object(o),!0).forEach(function(c){Kt(n,c,o[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(o)):Tt(Object(o)).forEach(function(c){Object.defineProperty(n,c,Object.getOwnPropertyDescriptor(o,c))})}return n}function Kt(n,p,o){return p=qt(p),p in n?Object.defineProperty(n,p,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[p]=o,n}function qt(n){var p=Gt(n,"string");return typeof p=="symbol"?p:p+""}function Gt(n,p){if(typeof n!="object"||!n)return n;var o=n[Symbol.toPrimitive];if(o!==void 0){var c=o.call(n,p||"default");if(typeof c!="object")return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return(p==="string"?String:Number)(n)}function St(n){return n&&n.map((p,o)=>D.createElement(p.tag,Ke({key:o},p.attr),St(p.child)))}function oe(n){return p=>D.createElement(Jt,Ye({attr:Ke({},n.attr)},p),St(n.child))}function Jt(n){var p=o=>{var{attr:c,size:d,title:u}=n,l=Bt(n,Ut),v=d||o.size||"1em",f;return o.className&&(f=o.className),n.className&&(f=(f?f+" ":"")+n.className),D.createElement("svg",Ye({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},o.attr,c,l,{className:f,style:Ke(Ke({color:n.color||o.color},o.style),n.style),height:v,width:v,xmlns:"http://www.w3.org/2000/svg"}),u&&D.createElement("title",null,u),n.children)};return Et!==void 0?D.createElement(Et.Consumer,null,o=>p(o)):p(Ot)}function Pt(n){return oe({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M4 2a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2zm2-1a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1zM2 5a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1v-1h1v1a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h1v1z"},child:[]}]})(n)}function Xt(n){return oe({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"m.5 3 .04.87a2 2 0 0 0-.342 1.311l.637 7A2 2 0 0 0 2.826 14H9v-1H2.826a1 1 0 0 1-.995-.91l-.637-7A1 1 0 0 1 2.19 4h11.62a1 1 0 0 1 .996 1.09L14.54 8h1.005l.256-2.819A2 2 0 0 0 13.81 3H9.828a2 2 0 0 1-1.414-.586l-.828-.828A2 2 0 0 0 6.172 1H2.5a2 2 0 0 0-2 2m5.672-1a1 1 0 0 1 .707.293L7.586 3H2.19q-.362.002-.683.12L1.5 2.98a1 1 0 0 1 1-.98z"},child:[]},{tag:"path",attr:{d:"M13.5 9a.5.5 0 0 1 .5.5V11h1.5a.5.5 0 1 1 0 1H14v1.5a.5.5 0 1 1-1 0V12h-1.5a.5.5 0 0 1 0-1H13V9.5a.5.5 0 0 1 .5-.5"},child:[]}]})(n)}function Rt(n){return oe({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M3.5 3.5c-.614-.884-.074-1.962.858-2.5L8 7.226 11.642 1c.932.538 1.472 1.616.858 2.5L8.81 8.61l1.556 2.661a2.5 2.5 0 1 1-.794.637L8 9.73l-1.572 2.177a2.5 2.5 0 1 1-.794-.637L7.19 8.61zm2.5 10a1.5 1.5 0 1 0-3 0 1.5 1.5 0 0 0 3 0m7 0a1.5 1.5 0 1 0-3 0 1.5 1.5 0 0 0 3 0"},child:[]}]})(n)}function Zt(n){return oe({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"23 4 23 10 17 10"},child:[]},{tag:"polyline",attr:{points:"1 20 1 14 7 14"},child:[]},{tag:"path",attr:{d:"M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15"},child:[]}]})(n)}function Qt(n){return oe({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"},child:[]}]})(n)}function en(n){return oe({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"},child:[]}]})(n)}function tn(n){return oe({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"},child:[]}]})(n)}function nn(n){return oe({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"},child:[]}]})(n)}function kt(n){return oe({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M16 9v10H8V9h8m-1.5-6h-5l-1 1H5v2h14V4h-3.5l-1-1zM18 7H6v12c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7z"},child:[]}]})(n)}function rn(n){return oe({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M18 15v3H6v-3H4v3c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-3h-2zM7 9l1.41 1.41L11 7.83V16h2V7.83l2.59 2.58L17 9l-5-5-5 5z"},child:[]}]})(n)}function an(n){return oe({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M10.02 6 8.61 7.41 13.19 12l-4.58 4.59L10.02 18l6-6-6-6z"},child:[]}]})(n)}function Nt(n){return oe({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M20.005 5.995h-1v2h1v8h-1v2h1c1.103 0 2-.897 2-2v-8c0-1.102-.898-2-2-2zm-14 4H15v4H6.005z"},child:[]},{tag:"path",attr:{d:"M17.005 17.995V4H20V2h-8v2h3.005v1.995h-11c-1.103 0-2 .897-2 2v8c0 1.103.897 2 2 2h11V20H12v2h8v-2h-2.995v-2.005zm-13-2v-8h11v8h-11z"},child:[]}]})(n)}function it(n){return oe({tag:"svg",attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M64 464c-8.8 0-16-7.2-16-16V64c0-8.8 7.2-16 16-16H224v80c0 17.7 14.3 32 32 32h80V448c0 8.8-7.2 16-16 16H64zM64 0C28.7 0 0 28.7 0 64V448c0 35.3 28.7 64 64 64H320c35.3 0 64-28.7 64-64V154.5c0-17-6.7-33.3-18.7-45.3L274.7 18.7C262.7 6.7 246.5 0 229.5 0H64zm96 256a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zm69.2 46.9c-3-4.3-7.9-6.9-13.2-6.9s-10.2 2.6-13.2 6.9l-41.3 59.7-11.9-19.1c-2.9-4.7-8.1-7.5-13.6-7.5s-10.6 2.8-13.6 7.5l-40 64c-3.1 4.9-3.2 11.1-.4 16.2s8.2 8.2 14 8.2h48 32 40 72c6 0 11.4-3.3 14.2-8.6s2.4-11.6-1-16.5l-72-104z"},child:[]}]})(n)}function on(n){return oe({tag:"svg",attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M64 464c-8.8 0-16-7.2-16-16V64c0-8.8 7.2-16 16-16H224v80c0 17.7 14.3 32 32 32h80V448c0 8.8-7.2 16-16 16H64zM64 0C28.7 0 0 28.7 0 64V448c0 35.3 28.7 64 64 64H320c35.3 0 64-28.7 64-64V154.5c0-17-6.7-33.3-18.7-45.3L274.7 18.7C262.7 6.7 246.5 0 229.5 0H64zm56 256c-13.3 0-24 10.7-24 24s10.7 24 24 24H264c13.3 0 24-10.7 24-24s-10.7-24-24-24H120zm0 96c-13.3 0-24 10.7-24 24s10.7 24 24 24H264c13.3 0 24-10.7 24-24s-10.7-24-24-24H120z"},child:[]}]})(n)}function sn(n){return oe({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M64 464l48 0 0 48-48 0c-35.3 0-64-28.7-64-64L0 64C0 28.7 28.7 0 64 0L229.5 0c17 0 33.3 6.7 45.3 18.7l90.5 90.5c12 12 18.7 28.3 18.7 45.3L384 304l-48 0 0-144-80 0c-17.7 0-32-14.3-32-32l0-80L64 48c-8.8 0-16 7.2-16 16l0 384c0 8.8 7.2 16 16 16zM176 352l32 0c30.9 0 56 25.1 56 56s-25.1 56-56 56l-16 0 0 32c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-48 0-80c0-8.8 7.2-16 16-16zm32 80c13.3 0 24-10.7 24-24s-10.7-24-24-24l-16 0 0 48 16 0zm96-80l32 0c26.5 0 48 21.5 48 48l0 64c0 26.5-21.5 48-48 48l-32 0c-8.8 0-16-7.2-16-16l0-128c0-8.8 7.2-16 16-16zm32 128c8.8 0 16-7.2 16-16l0-64c0-8.8-7.2-16-16-16l-16 0 0 96 16 0zm80-112c0-8.8 7.2-16 16-16l48 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-32 0 0 32 32 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-32 0 0 48c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-64 0-64z"},child:[]}]})(n)}function Mt(n){return oe({tag:"svg",attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M48 448V64c0-8.8 7.2-16 16-16H224v80c0 17.7 14.3 32 32 32h80V448c0 8.8-7.2 16-16 16H64c-8.8 0-16-7.2-16-16zM64 0C28.7 0 0 28.7 0 64V448c0 35.3 28.7 64 64 64H320c35.3 0 64-28.7 64-64V154.5c0-17-6.7-33.3-18.7-45.3L274.7 18.7C262.7 6.7 246.5 0 229.5 0H64zm55 241.1c-3.8-12.7-17.2-19.9-29.9-16.1s-19.9 17.2-16.1 29.9l48 160c3 10.2 12.4 17.1 23 17.1s19.9-7 23-17.1l25-83.4 25 83.4c3 10.2 12.4 17.1 23 17.1s19.9-7 23-17.1l48-160c3.8-12.7-3.4-26.1-16.1-29.9s-26.1 3.4-29.9 16.1l-25 83.4-25-83.4c-3-10.2-12.4-17.1-23-17.1s-19.9 7-23 17.1l-25 83.4-25-83.4z"},child:[]}]})(n)}function ot(n){return oe({tag:"svg",attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M320 464c8.8 0 16-7.2 16-16V160H256c-17.7 0-32-14.3-32-32V48H64c-8.8 0-16 7.2-16 16V448c0 8.8 7.2 16 16 16H320zM0 64C0 28.7 28.7 0 64 0H229.5c17 0 33.3 6.7 45.3 18.7l90.5 90.5c12 12 18.7 28.3 18.7 45.3V448c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V64z"},child:[]}]})(n)}function ln(n){return oe({tag:"svg",attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M384 480h48c11.4 0 21.9-6 27.6-15.9l112-192c5.8-9.9 5.8-22.1 .1-32.1S555.5 224 544 224H144c-11.4 0-21.9 6-27.6 15.9L48 357.1V96c0-8.8 7.2-16 16-16H181.5c4.2 0 8.3 1.7 11.3 4.7l26.5 26.5c21 21 49.5 32.8 79.2 32.8H416c8.8 0 16 7.2 16 16v32h48V160c0-35.3-28.7-64-64-64H298.5c-17 0-33.3-6.7-45.3-18.7L226.7 50.7c-12-12-28.3-18.7-45.3-18.7H64C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64H87.7 384z"},child:[]}]})(n)}function st(n){return oe({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M104.6 48H64C28.7 48 0 76.7 0 112V384c0 35.3 28.7 64 64 64h96V400H64c-8.8 0-16-7.2-16-16V112c0-8.8 7.2-16 16-16H80c0 17.7 14.3 32 32 32h72.4C202 108.4 227.6 96 256 96h62c-7.1-27.6-32.2-48-62-48H215.4C211.6 20.9 188.2 0 160 0s-51.6 20.9-55.4 48zM144 56a16 16 0 1 1 32 0 16 16 0 1 1 -32 0zM448 464H256c-8.8 0-16-7.2-16-16V192c0-8.8 7.2-16 16-16l140.1 0L464 243.9V448c0 8.8-7.2 16-16 16zM256 512H448c35.3 0 64-28.7 64-64V243.9c0-12.7-5.1-24.9-14.1-33.9l-67.9-67.9c-9-9-21.2-14.1-33.9-14.1H256c-35.3 0-64 28.7-64 64V448c0 35.3 28.7 64 64 64z"},child:[]}]})(n)}const lt=(n,p)=>{const o=p.filter(c=>c.path===n.path+"/"+n.name);return{...n,children:o.map(c=>lt(c,p))}},cn=({allowCreateFolder:n=!0,allowUploadFile:p=!0,handleRefresh:o,isItemSelection:c,setIsItemSelection:d,currentPath:u,selectedFile:l,setSelectedFile:v,files:f,clipBoard:s,setClipBoard:h,handlePaste:N,triggerAction:j})=>{const[_,V]=D.useState([{icon:r.jsx(Xt,{size:17,strokeWidth:.3}),text:"New Folder",permission:n,onClick:()=>j.show("createFolder")},{icon:r.jsx(rn,{size:18}),text:"Upload File",permission:p,onClick:()=>j.show("uploadFile")},{icon:r.jsx(st,{size:18}),text:"Paste",permission:!1,onClick:()=>{}}]),C=[{icon:r.jsx(Zt,{size:16}),title:"Refresh",onClick:o}],E=(z,I,P)=>{const b=P.files[0];z.filter($=>{const ee=$.path===b.path&&$.name===b.name,W=$.path.startsWith(b.path+"/"+b.name);return ee||W});const k=z.find($=>$.path===I),T=P.isMoving?"move":"copy";N(b,k,T),P.isMoving&&h(null),d(!1),v(null)};D.useEffect(()=>{V(z=>z.map(I=>I.text==="Paste"?{...I,permission:!!s,onClick:()=>E(f,u,s)}:I))},[s,u,f]);const M=z=>{h({files:[{...lt(l,f)}],isMoving:z})};if(c){const z=l.path;return r.jsx("div",{className:"toolbar file-selected",children:r.jsxs("div",{className:"file-action-container",children:[r.jsxs("div",{children:[r.jsxs("button",{className:"item-action file-action",onClick:()=>M(!0),children:[r.jsx(Rt,{size:18}),r.jsx("span",{children:"Cut"})]}),r.jsxs("button",{className:"item-action file-action",onClick:()=>M(!1),children:[r.jsx(Pt,{strokeWidth:.1,size:17}),r.jsx("span",{children:"Copy"})]}),l.isDirectory?r.jsxs("button",{className:"item-action file-action",onClick:()=>E(f,z,s),disabled:!s,children:[r.jsx(st,{size:18}),r.jsx("span",{children:"Paste"})]}):r.jsx(r.Fragment,{}),r.jsxs("button",{className:"item-action file-action",onClick:()=>j.show("rename"),children:[r.jsx(Nt,{size:19}),r.jsx("span",{children:"Rename"})]}),r.jsxs("button",{className:"item-action file-action",onClick:()=>j.show("delete"),children:[r.jsx(kt,{size:19}),r.jsx("span",{children:"Delete"})]})]}),r.jsxs("button",{className:"item-action file-action",onClick:()=>d(!1),children:[r.jsx(en,{size:18}),r.jsx("span",{children:"Clear Selection"})]})]})})}return r.jsx("div",{className:"toolbar",children:r.jsxs("div",{className:"fm-toolbar",children:[r.jsx("div",{children:_.filter(z=>z.permission).map((z,I)=>r.jsxs("button",{className:"item-action",onClick:z.onClick,children:[z.icon,r.jsx("span",{children:z.text})]},I))}),r.jsx("div",{children:C.map((z,I)=>r.jsxs("div",{className:"toolbar-left-items",children:[r.jsx("div",{className:"item-action icon-only",title:z.title,role:"button",onClick:z.onClick,children:z.icon}),I!==C.length-1&&r.jsx("div",{className:"item-separator"})]},I))})]})})};var _t={exports:{}};(function(n,p){(function(o,c){n.exports=c(D)})(xt,function(o){return function(c){var d={};function u(l){if(d[l])return d[l].exports;var v=d[l]={i:l,l:!1,exports:{}};return c[l].call(v.exports,v,v.exports,u),v.l=!0,v.exports}return u.m=c,u.c=d,u.d=function(l,v,f){u.o(l,v)||Object.defineProperty(l,v,{enumerable:!0,get:f})},u.r=function(l){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(l,"__esModule",{value:!0})},u.t=function(l,v){if(1&v&&(l=u(l)),8&v||4&v&&typeof l=="object"&&l&&l.__esModule)return l;var f=Object.create(null);if(u.r(f),Object.defineProperty(f,"default",{enumerable:!0,value:l}),2&v&&typeof l!="string")for(var s in l)u.d(f,s,(function(h){return l[h]}).bind(null,s));return f},u.n=function(l){var v=l&&l.__esModule?function(){return l.default}:function(){return l};return u.d(v,"a",v),v},u.o=function(l,v){return Object.prototype.hasOwnProperty.call(l,v)},u.p="",u(u.s=4)}([function(c,d,u){c.exports=u(2)()},function(c,d){c.exports=o},function(c,d,u){var l=u(3);function v(){}function f(){}f.resetWarningCache=v,c.exports=function(){function s(j,_,V,C,E,M){if(M!==l){var z=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 z.name="Invariant Violation",z}}function h(){return s}s.isRequired=s;var N={array:s,bigint:s,bool:s,func:s,number:s,object:s,string:s,symbol:s,any:s,arrayOf:h,element:s,elementType:s,instanceOf:h,node:s,objectOf:h,oneOf:h,oneOfType:h,shape:h,exact:h,checkPropTypes:f,resetWarningCache:v};return N.PropTypes=N,N}},function(c,d,u){c.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(c,d,u){u.r(d);var l=u(1),v=u.n(l),f=u(0),s=u.n(f),h=function(b){return b!==0};function N(){return(N=Object.assign?Object.assign.bind():function(b){for(var k=1;k<arguments.length;k++){var T=arguments[k];for(var $ in T)Object.prototype.hasOwnProperty.call(T,$)&&(b[$]=T[$])}return b}).apply(this,arguments)}function j(b){return(j=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(k){return typeof k}:function(k){return k&&typeof Symbol=="function"&&k.constructor===Symbol&&k!==Symbol.prototype?"symbol":typeof k})(b)}function _(b,k){for(var T=0;T<k.length;T++){var $=k[T];$.enumerable=$.enumerable||!1,$.configurable=!0,"value"in $&&($.writable=!0),Object.defineProperty(b,$.key,$)}}function V(b,k){return(V=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(T,$){return T.__proto__=$,T})(b,k)}function C(b){var k=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var T,$=z(b);if(k){var ee=z(this).constructor;T=Reflect.construct($,arguments,ee)}else T=$.apply(this,arguments);return E(this,T)}}function E(b,k){if(k&&(j(k)==="object"||typeof k=="function"))return k;if(k!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return M(b)}function M(b){if(b===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b}function z(b){return(z=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(k){return k.__proto__||Object.getPrototypeOf(k)})(b)}function I(b,k,T){return k in b?Object.defineProperty(b,k,{value:T,enumerable:!0,configurable:!0,writable:!0}):b[k]=T,b}var P=function(b){(function(W,O){if(typeof O!="function"&&O!==null)throw new TypeError("Super expression must either be null or a function");W.prototype=Object.create(O&&O.prototype,{constructor:{value:W,writable:!0,configurable:!0}}),Object.defineProperty(W,"prototype",{writable:!1}),O&&V(W,O)})(ee,b);var k,T,$=C(ee);function ee(W){var O;return function(X,re){if(!(X instanceof re))throw new TypeError("Cannot call a class as a function")}(this,ee),I(M(O=$.call(this,W)),"continueOpenCollapsible",function(){var X=M(O).innerRef;O.setState({height:X.scrollHeight,transition:"height ".concat(O.props.transitionTime,"ms ").concat(O.props.easing),isClosed:!1,hasBeenOpened:!0,inTransition:h(X.scrollHeight),shouldOpenOnNextCycle:!1})}),I(M(O),"handleTriggerClick",function(X){O.props.triggerDisabled||O.state.inTransition||(X.preventDefault(),O.props.handleTriggerClick?O.props.handleTriggerClick(O.props.accordionPosition):O.state.isClosed===!0?(O.openCollapsible(),O.props.onOpening(),O.props.onTriggerOpening()):(O.closeCollapsible(),O.props.onClosing(),O.props.onTriggerClosing()))}),I(M(O),"handleTransitionEnd",function(X){X.target===O.innerRef&&(O.state.isClosed?(O.setState({inTransition:!1}),O.props.onClose()):(O.setState({height:"auto",overflow:O.props.overflowWhenOpen,inTransition:!1}),O.props.onOpen()))}),I(M(O),"setInnerRef",function(X){return O.innerRef=X}),O.timeout=void 0,O.contentId=W.contentElementId||"collapsible-content-".concat(Date.now()),O.triggerId=W.triggerElementProps.id||"collapsible-trigger-".concat(Date.now()),W.open?O.state={isClosed:!1,shouldSwitchAutoOnNextCycle:!1,height:"auto",transition:"none",hasBeenOpened:!0,overflow:W.overflowWhenOpen,inTransition:!1}:O.state={isClosed:!0,shouldSwitchAutoOnNextCycle:!1,height:0,transition:"height ".concat(W.transitionTime,"ms ").concat(W.easing),hasBeenOpened:!1,overflow:"hidden",inTransition:!1},O}return k=ee,(T=[{key:"componentDidUpdate",value:function(W,O){var X=this;this.state.shouldOpenOnNextCycle&&this.continueOpenCollapsible(),O.height!=="auto"&&O.height!==0||this.state.shouldSwitchAutoOnNextCycle!==!0||(window.clearTimeout(this.timeout),this.timeout=window.setTimeout(function(){X.setState({height:0,overflow:"hidden",isClosed:!0,shouldSwitchAutoOnNextCycle:!1})},50)),W.open!==this.props.open&&(this.props.open===!0?(this.openCollapsible(),this.props.onOpening()):(this.closeCollapsible(),this.props.onClosing()))}},{key:"componentWillUnmount",value:function(){window.clearTimeout(this.timeout)}},{key:"closeCollapsible",value:function(){var W=this.innerRef;this.setState({shouldSwitchAutoOnNextCycle:!0,height:W.scrollHeight,transition:"height ".concat(this.props.transitionCloseTime?this.props.transitionCloseTime:this.props.transitionTime,"ms ").concat(this.props.easing),inTransition:h(W.scrollHeight)})}},{key:"openCollapsible",value:function(){this.setState({inTransition:h(this.innerRef.scrollHeight),shouldOpenOnNextCycle:!0})}},{key:"renderNonClickableTriggerElement",value:function(){var W=this.props,O=W.triggerSibling,X=W.classParentString;if(!O)return null;switch(j(O)){case"string":return v.a.createElement("span",{className:"".concat(X,"__trigger-sibling")},O);case"function":return O();case"object":return O;default:return null}}},{key:"render",value:function(){var W=this,O={height:this.state.height,WebkitTransition:this.state.transition,msTransition:this.state.transition,transition:this.state.transition,overflow:this.state.overflow},X=this.state.isClosed?"is-closed":"is-open",re=this.props.triggerDisabled?"is-disabled":"",ue=this.state.isClosed===!1&&this.props.triggerWhenOpen!==void 0?this.props.triggerWhenOpen:this.props.trigger,fe=this.props.contentContainerTagName,ne=this.props.triggerTagName,he=this.props.lazyRender&&!this.state.hasBeenOpened&&this.state.isClosed&&!this.state.inTransition?null:this.props.children,ce=this.props,q=ce.classParentString,de=ce.contentOuterClassName,pe=ce.contentInnerClassName,w="".concat(q,"__trigger ").concat(X," ").concat(re," ").concat(this.state.isClosed?this.props.triggerClassName:this.props.triggerOpenedClassName),L="".concat(q," ").concat(this.state.isClosed?this.props.className:this.props.openedClassName),U="".concat(q,"__contentOuter ").concat(de),G="".concat(q,"__contentInner ").concat(pe);return v.a.createElement(fe,N({className:L.trim()},this.props.containerElementProps),v.a.createElement(ne,N({id:this.triggerId,className:w.trim(),onClick:this.handleTriggerClick,style:this.props.triggerStyle&&this.props.triggerStyle,onKeyPress:function(Y){var i=Y.key;(i===" "&&W.props.triggerTagName.toLowerCase()!=="button"||i==="Enter")&&W.handleTriggerClick(Y)},tabIndex:this.props.tabIndex&&this.props.tabIndex,"aria-expanded":!this.state.isClosed,"aria-disabled":this.props.triggerDisabled,"aria-controls":this.contentId,role:"button"},this.props.triggerElementProps),ue),this.renderNonClickableTriggerElement(),v.a.createElement("div",{id:this.contentId,className:U.trim(),style:O,onTransitionEnd:this.handleTransitionEnd,ref:this.setInnerRef,hidden:this.props.contentHiddenWhenClosed&&this.state.isClosed&&!this.state.inTransition,role:"region","aria-labelledby":this.triggerId},v.a.createElement("div",{className:G.trim()},he)))}}])&&_(k.prototype,T),Object.defineProperty(k,"prototype",{writable:!1}),ee}(l.Component);P.propTypes={transitionTime:s.a.number,transitionCloseTime:s.a.number,triggerTagName:s.a.string,easing:s.a.string,open:s.a.bool,containerElementProps:s.a.object,triggerElementProps:s.a.object,contentElementId:s.a.string,classParentString:s.a.string,className:s.a.string,openedClassName:s.a.string,triggerStyle:s.a.object,triggerClassName:s.a.string,triggerOpenedClassName:s.a.string,contentOuterClassName:s.a.string,contentInnerClassName:s.a.string,accordionPosition:s.a.oneOfType([s.a.string,s.a.number]),handleTriggerClick:s.a.func,onOpen:s.a.func,onClose:s.a.func,onOpening:s.a.func,onClosing:s.a.func,onTriggerOpening:s.a.func,onTriggerClosing:s.a.func,trigger:s.a.oneOfType([s.a.string,s.a.element]),triggerWhenOpen:s.a.oneOfType([s.a.string,s.a.element]),triggerDisabled:s.a.bool,lazyRender:s.a.bool,overflowWhenOpen:s.a.oneOf(["hidden","visible","auto","scroll","inherit","initial","unset"]),contentHiddenWhenClosed:s.a.bool,triggerSibling:s.a.oneOfType([s.a.string,s.a.element,s.a.func]),tabIndex:s.a.number,contentContainerTagName:s.a.string,children:s.a.oneOfType([s.a.string,s.a.element])},P.defaultProps={transitionTime:400,transitionCloseTime:null,triggerTagName:"span",easing:"linear",open:!1,classParentString:"Collapsible",triggerDisabled:!1,lazyRender:!1,overflowWhenOpen:"hidden",contentHiddenWhenClosed:!1,openedClassName:"",triggerStyle:null,triggerClassName:"",triggerOpenedClassName:"",contentOuterClassName:"",contentInnerClassName:"",className:"",triggerSibling:null,onOpen:function(){},onClose:function(){},onOpening:function(){},onClosing:function(){},onTriggerOpening:function(){},onTriggerClosing:function(){},tabIndex:null,contentContainerTagName:"div",triggerElementProps:{}},d.default=P}])})})(_t);var un=_t.exports;const fn=jt(un);function dn(n){return oe({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 8C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256 8zm0 48c110.532 0 200 89.451 200 200 0 110.532-89.451 200-200 200-110.532 0-200-89.451-200-200 0-110.532 89.451-200 200-200m140.204 130.267l-22.536-22.718c-4.667-4.705-12.265-4.736-16.97-.068L215.346 303.697l-59.792-60.277c-4.667-4.705-12.265-4.736-16.97-.069l-22.719 22.536c-4.705 4.667-4.736 12.265-.068 16.971l90.781 91.516c4.667 4.705 12.265 4.736 16.97.068l172.589-171.204c4.704-4.668 4.734-12.266.067-16.971z"},child:[]}]})(n)}function At(n){return oe({tag:"svg",attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M527.9 224H480v-48c0-26.5-21.5-48-48-48H272l-64-64H48C21.5 64 0 85.5 0 112v288c0 26.5 21.5 48 48 48h400c16.5 0 31.9-8.5 40.7-22.6l79.9-128c20-31.9-3-73.4-40.7-73.4zM48 118c0-3.3 2.7-6 6-6h134.1l64 64H426c3.3 0 6 2.7 6 6v42H152c-16.8 0-32.4 8.8-41.1 23.2L48 351.4zm400 282H72l77.2-128H528z"},child:[]}]})(n)}function Vt(n){return oe({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M464 128H272l-54.63-54.63c-6-6-14.14-9.37-22.63-9.37H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V176c0-26.51-21.49-48-48-48zm0 272H48V112h140.12l54.63 54.63c6 6 14.14 9.37 22.63 9.37H464v224z"},child:[]}]})(n)}const zt=({folder:n,setCurrentPath:p,currentPath:o})=>{const[c,d]=D.useState(!1),[u,l]=D.useState(!1),v=`${n.path}/${n.name}`,f=()=>{l(!0),p(v)},s=h=>{h.stopPropagation(),d(N=>!N)};return D.useEffect(()=>{l(o===v);const h=o.split("/");h.pop(),h.join("/")===v&&d(!0)},[o]),n.subDirectories?r.jsxs(r.Fragment,{children:[r.jsxs("div",{className:`sb-folders-list-item ${u?"active-list-item":""}`,onClick:f,children:[r.jsx("span",{onClick:s,children:r.jsx(tn,{size:20,className:`${c?"folder-rotate-down":"folder-rotate-right"}`})}),r.jsxs("div",{className:"sb-folder-details",children:[c||u?r.jsx(At,{size:20,className:"folder-open-icon"}):r.jsx(Vt,{size:17,className:"folder-close-icon"}),r.jsx("span",{className:"sb-folder-name",title:n.name,children:n.name})]})]}),r.jsx(fn,{open:c,children:r.jsx("div",{className:"folder-collapsible",children:n.subDirectories.map((h,N)=>r.jsx(zt,{folder:h,setCurrentPath:p,currentPath:o},N))})})]}):r.jsxs("div",{className:`sb-folders-list-item ${u?"active-list-item":""}`,onClick:f,children:[r.jsx("span",{className:"non-expanable"}),r.jsxs("div",{className:"sb-folder-details",children:[u?r.jsx(At,{size:20,className:"folder-open-icon"}):r.jsx(Vt,{size:17,className:"folder-close-icon"}),r.jsx("span",{className:"sb-folder-name",title:n.name,children:n.name})]})]})},pn=({files:n,currentPath:p,setCurrentPath:o})=>{const[c,d]=D.useState([]),u=(l,v)=>{var s;var f=l.path+"/"+l.name;return v[f]?(s=v[f])==null?void 0:s.map(h=>({...h,subDirectories:u(h,v)})):null};return D.useEffect(()=>{const l=n.filter(f=>f.isDirectory).map(f=>({...f,path:f.path.split("/").slice(0,-1).join("/")})),v=Object.groupBy(l,({path:f})=>f);d(()=>{var f;return l.length>0?(f=v[""])==null?void 0:f.map(s=>({...s,subDirectories:u(s,v)})):[]})},[n]),r.jsx("div",{className:"sb-folders-list",children:(c==null?void 0:c.length)>0?r.jsx(r.Fragment,{children:c==null?void 0:c.map((l,v)=>r.jsx(zt,{folder:l,setCurrentPath:o,currentPath:p},v))}):r.jsx("div",{className:"empty-nav-pane",children:"Nothing here yet"})})},hn=({currentPath:n,setCurrentPath:p})=>{const[o,c]=D.useState([]);D.useEffect(()=>{c(n==null?void 0:n.split("/"))},[n]);const d=u=>{u<o.length-1&&p(()=>{const l=o.length-(u+1);return o.slice(0,-l).join("/")})};return r.jsx("div",{className:"breadcrumb",children:o.map((u,l)=>r.jsx("span",{className:"folder-name",onClick:()=>d(l),children:l===0?r.jsxs(r.Fragment,{children:[r.jsx(Qt,{})," Home"]}):r.jsxs(r.Fragment,{children:[r.jsx(an,{})," ",u]})},l))})};function vn(n){return oe({tag:"svg",attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M245,110.64A16,16,0,0,0,232,104H216V88a16,16,0,0,0-16-16H130.67L102.94,51.2a16.14,16.14,0,0,0-9.6-3.2H40A16,16,0,0,0,24,64V208h0a8,8,0,0,0,8,8H211.1a8,8,0,0,0,7.59-5.47l28.49-85.47A16.05,16.05,0,0,0,245,110.64ZM93.34,64,123.2,86.4A8,8,0,0,0,128,88h72v16H69.77a16,16,0,0,0-15.18,10.94L40,158.7V64Zm112,136H43.1l26.67-80H232Z"},child:[]}]})(n)}const mn=({children:n,contextMenuRef:p,content:o,visible:c,setVisible:d})=>{const[u,l]=D.useState(0),[v,f]=D.useState(0),s=h=>{h.preventDefault(),d(!0);const N=h.clientX,j=h.clientY,_=window.innerWidth,V=window.innerHeight,C=112,E=82,M=_-N>C,z=!M,I=V-j>E,P=!I;M?l(`${N+5}px`):z&&l(`${N-C-5}px`),I?f(`${j+5}px`):P&&f(`${j-E-5}px`)};return r.jsxs("div",{onContextMenu:s,onClick:h=>d(!1),children:[n,c&&r.jsx("div",{ref:p,className:"fm-context-menu",style:{top:v,left:u},children:o})]})},gn=n=>{const p=D.useRef(null),o=c=>{var d;(d=p.current)!=null&&d.contains(c.target)||n()};return D.useEffect(()=>(document.addEventListener("mousedown",o,!0),()=>{document.removeEventListener("mousedown",o,!0)}),[]),p},Ht=n=>({pdf:r.jsx(sn,{size:n}),jpg:r.jsx(it,{size:n}),jpeg:r.jsx(it,{size:n}),png:r.jsx(it,{size:n}),txt:r.jsx(on,{size:n}),doc:r.jsx(Mt,{size:n}),docx:r.jsx(Mt,{size:n})}),yn=({file:n,index:p,selectedFileIndex:o,setSelectedFileIndex:c,setCurrentPath:d,isItemSelection:u,setIsItemSelection:l,setSelectedFile:v,currentPath:f,clipBoard:s,setClipBoard:h,handlePaste:N,files:j,triggerAction:_})=>{var he,ce;const V=Ht(48),[C,E]=D.useState(!1),[M,z]=D.useState(!1),[I,P]=D.useState(0),[b,k]=D.useState(!1),T=(s==null?void 0:s.isMoving)&&s.files.find(q=>q.name===n.name&&q.path===n.path),$=gn(()=>{E(!1)}),ee=(q,de)=>{q.stopPropagation(),h({files:[{...lt(n,j)}],isMoving:de}),E(!1)},W=q=>{if(q.stopPropagation(),s){const de=n.path,pe=s.files[0];j.filter(U=>{const G=U.path===pe.path&&U.name===pe.name,Y=U.path.startsWith(pe.path+"/"+pe.name);return G||Y});const w=j.find(U=>U.path===de),L=s.isMoving?"move":"copy";N(pe,w,L),s.isMoving&&h(null),l(!1),v(null),E(!1)}},O=q=>{q.stopPropagation(),E(!1),_.show("rename")},X=q=>{q.stopPropagation(),E(!1),_.show("delete")},re=()=>{E(!1),n.isDirectory?(d(q=>q+"/"+n.name),c(null)):k(!0)},ue=q=>{q.stopPropagation(),l(!0),v(n),c(p);const de=new Date().getTime();de-I<300&&(l(!1),re()),P(de)},fe=q=>{q.key==="Enter"&&re()};D.useEffect(()=>{z(o===p)},[o]),D.useEffect(()=>{o===p&&z(u)},[u]);const ne=r.jsx("div",{className:"file-context-menu-list",children:r.jsxs("ul",{children:[r.jsxs("li",{onClick:re,children:[n.isDirectory?r.jsx(vn,{size:20}):r.jsx(ot,{size:16}),r.jsx("span",{children:"Open"})]}),r.jsxs("li",{onClick:q=>ee(q,!0),children:[r.jsx(Rt,{size:19}),r.jsx("span",{children:"Cut"})]}),r.jsxs("li",{onClick:q=>ee(q,!1),children:[r.jsx(Pt,{strokeWidth:.1,size:17}),r.jsx("span",{children:"Copy"})]}),n.isDirectory?r.jsxs("li",{onClick:W,className:`${s?"":"disable-paste"}`,children:[r.jsx(st,{size:18}),r.jsx("span",{children:"Paste"})]}):r.jsx(r.Fragment,{}),r.jsxs("li",{onClick:O,children:[r.jsx(Nt,{size:19}),r.jsx("span",{children:"Rename"})]}),r.jsxs("li",{onClick:X,children:[r.jsx(kt,{size:19}),r.jsx("span",{children:"Delete"})]})]})});return r.jsx(r.Fragment,{children:r.jsx(mn,{contextMenuRef:$,visible:C,setVisible:E,content:ne,children:r.jsxs("div",{className:`file-item ${M?"background-secondary text-white":""} ${T?"file-moving":""}`,title:n.name,onClick:ue,onKeyUp:fe,onContextMenu:()=>{l(!0),v(n),c(p)},tabIndex:0,children:[n.isDirectory?r.jsx(ln,{size:48}):r.jsx(r.Fragment,{children:V[(ce=(he=n.name)==null?void 0:he.split(".").pop())==null?void 0:ce.toLowerCase()]??r.jsx(ot,{size:48})}),r.jsx("span",{className:"text-truncate file-name",children:n.name})]})})})},bn=({currentPathFiles:n,setCurrentPath:p,isItemSelection:o,setIsItemSelection:c,setSelectedFile:d,currentPath:u,clipBoard:l,setClipBoard:v,handlePaste:f,files:s,triggerAction:h})=>{const[N,j]=D.useState(null);return D.useEffect(()=>{j(null),c(!1),d(null)},[u]),r.jsx("div",{className:"files",onClick:_=>{j(null),c(!1),d(null)},children:(n==null?void 0:n.length)>0?r.jsx(r.Fragment,{children:n.map((_,V)=>r.jsx(yn,{file:_,index:V,selectedFileIndex:N,setSelectedFileIndex:j,setCurrentPath:p,isItemSelection:o,setIsItemSelection:c,setSelectedFile:d,currentPath:u,clipBoard:l,setClipBoard:v,handlePaste:f,files:s,triggerAction:h},V))}):r.jsx("div",{className:"empty-folder",children:"This folder is empty."})})},xn=()=>{const[n,p]=D.useState(!1),[o,c]=D.useState(null);return{isActive:n,actionType:o,show:l=>{p(!0),c(l)},close:()=>{p(!1),c(null)}}},jn=({children:n,show:p,setShow:o,heading:c,dialogWidth:d="25%",contentClassName:u=""})=>{const l=D.useRef(null);return D.useEffect(()=>{p?l.current.showModal():l.current.close()},[p]),r.jsxs("dialog",{ref:l,className:"fm-modal dialog",style:{width:d},children:[r.jsxs("div",{className:"fm-modal-header",children:[r.jsx("span",{className:"fm-modal-heading",children:c}),r.jsx(nn,{size:18,onClick:()=>o(!1),className:"close-icon",title:"Close"})]}),n]})},Pe=({onClick:n,type:p="primary",padding:o="0.4rem 0.8rem",children:c})=>r.jsx("button",{onClick:n,className:`fm-button fm-button-${p}`,style:{padding:o},children:c}),wn=({files:n,currentPath:p,currentPathFiles:o,handleCreateFolder:c,currentFolder:d,triggerAction:u})=>{const[l,v]=D.useState("New Folder"),[f,s]=D.useState(!1),[h,N]=D.useState(""),j=E=>{v(E.target.value),s(!1)},_=E=>{/[\\/:*?"<>|]/.test(E.key)?(E.preventDefault(),N(`A file name can't contain any of the following characters: \\ / : * ? " < > |`),s(!0)):s(!1)},V=()=>{const E=l.trim();E===""?(N("Folder name cannot be empty."),s(!0)):o.find(z=>z.name.toLowerCase()===E.toLowerCase())?(N(`A folder with the name "${E}" already exits.`),s(!0)):(c(E,d),u.close())},C=D.useRef(null);return D.useEffect(()=>{C.current.focus(),C.current.select()},[]),r.jsxs("div",{className:"fm-create-folder-container",children:[r.jsxs("div",{className:"fm-create-folder-input",children:[r.jsx("input",{ref:C,type:"text",value:l,onChange:j,onKeyDown:_,className:"action-input"}),f&&r.jsx("div",{className:"folder-error",children:h})]}),r.jsx("div",{className:"fm-create-folder-action",children:r.jsx(Pe,{onClick:V,type:"primary",children:"Create"})})]})};function Cn(n){return oe({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M85.57 446.25h340.86a32 32 0 0 0 28.17-47.17L284.18 82.58c-12.09-22.44-44.27-22.44-56.36 0L57.4 399.08a32 32 0 0 0 28.17 47.17z"},child:[]},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"m250.26 195.39 5.74 122 5.73-121.95a5.74 5.74 0 0 0-5.79-6h0a5.74 5.74 0 0 0-5.68 5.95z"},child:[]},{tag:"path",attr:{d:"M256 397.25a20 20 0 1 1 20-20 20 20 0 0 1-20 20z"},child:[]}]})(n)}const On=({files:n,selectedFile:p,currentPathFiles:o,handleRename:c,triggerAction:d,setSelectedFile:u})=>{const[l,v]=D.useState(p==null?void 0:p.name),f=D.useRef(null),[s,h]=D.useState(!1),[N,j]=D.useState(!1),[_,V]=D.useState("");D.useEffect(()=>{var M,z,I;if(p)if((M=f==null?void 0:f.current)==null||M.focus(),p.isDirectory)(z=f==null?void 0:f.current)==null||z.select();else{const P=p.name.split(".").pop(),b=p.name.length-P.length-1;(I=f==null?void 0:f.current)==null||I.setSelectionRange(0,b)}else h(!1)},[]);const C=M=>{/[\\/:*?"<>|]/.test(M.key)?(M.preventDefault(),V(`A file name can't contain any of the following characters: \\ / : * ? " < > |`),j(!0)):j(!1)},E=(M,z)=>{if(l===""){j(!0),V(`${p.isDirectory?"Folder":"File"} name is required!`);return}else if(l===p.name){d.close();return}else if(o.some(I=>I.name===l)){j(!0),V("A file or folder with the same name already exists!");return}else if(!p.isDirectory&&!z){const I=p.name.split(".").pop(),P=l.split(".").pop();if(I!==P){h(!0);return}}c(p,l),u(I=>({...I,name:l})),d.close()};return r.jsx(r.Fragment,{children:s?r.jsxs("div",{className:"fm-rename-folder-container",children:[r.jsx("div",{className:"fm-rename-folder-input",children:r.jsxs("div",{className:"fm-rename-warning",children:[r.jsx(Cn,{size:70,color:"orange"}),r.jsx("div",{children:"If you change a file name extension, the file might become unusable. Are you sure you want to change it?"})]})}),r.jsxs("div",{className:"fm-rename-folder-action",children:[r.jsx(Pe,{type:"secondary",onClick:()=>h(!1),children:"No"}),r.jsx(Pe,{type:"danger",onClick:M=>E(M,!0),children:"Yes"})]})]}):r.jsxs("div",{className:"fm-rename-folder-container",children:[r.jsxs("div",{className:"fm-rename-folder-input",children:[r.jsx("input",{ref:f,type:"text",value:l,onChange:M=>{v(M.target.value),j(!1)},onKeyDown:C,className:"action-input"}),N&&r.jsx("div",{className:"folder-error",children:_})]}),r.jsx("div",{className:"fm-rename-folder-action",children:r.jsx(Pe,{onClick:E,type:"primary",children:"Save"})})]})})},En=({files:n,selectedFile:p,triggerAction:o,handleDelete:c,setIsItemSelection:d,setSelectedFile:u})=>{const l=v=>{c(v),d(!1),u(null),o.close()};return r.jsxs("div",{className:"file-delete-confirm",children:[r.jsxs("p",{className:"file-delete-confirm-text",children:['Are you sure you want to delete "',p==null?void 0:p.name,'"?']}),r.jsxs("div",{className:"file-delete-confirm-actions",children:[r.jsx(Pe,{type:"secondary",onClick:()=>o.close(),children:"Cancel"}),r.jsx(Pe,{type:"danger",onClick:()=>l(p),children:"Delete"})]})]})};function Tn(n){return oe({tag:"svg",attr:{viewBox:"0 0 1024 1024",fill:"currentColor",fillRule:"evenodd"},child:[{tag:"path",attr:{d:"M799.855 166.312c.023.007.043.018.084.059l57.69 57.69c.041.041.052.06.059.084a.118.118 0 0 1 0 .069c-.007.023-.018.042-.059.083L569.926 512l287.703 287.703c.041.04.052.06.059.083a.118.118 0 0 1 0 .07c-.007.022-.018.042-.059.083l-57.69 57.69c-.041.041-.06.052-.084.059a.118.118 0 0 1-.069 0c-.023-.007-.042-.018-.083-.059L512 569.926 224.297 857.629c-.04.041-.06.052-.083.059a.118.118 0 0 1-.07 0c-.022-.007-.042-.018-.083-.059l-57.69-57.69c-.041-.041-.052-.06-.059-.084a.118.118 0 0 1 0-.069c.007-.023.018-.042.059-.083L454.073 512 166.371 224.297c-.041-.04-.052-.06-.059-.083a.118.118 0 0 1 0-.07c.007-.022.018-.042.059-.083l57.69-57.69c.041-.041.06-.052.084-.059a.118.118 0 0 1 .069 0c.023.007.042.018.083.059L512 454.073l287.703-287.702c.04-.041.06-.052.083-.059a.118.118 0 0 1 .07 0Z"},child:[]}]})(n)}function Sn(n){return oe({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M518.3 459a8 8 0 0 0-12.6 0l-112 141.7a7.98 7.98 0 0 0 6.3 12.9h73.9V856c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V613.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 459z"},child:[]},{tag:"path",attr:{d:"M811.4 366.7C765.6 245.9 648.9 160 512.2 160S258.8 245.8 213 366.6C127.3 389.1 64 467.2 64 560c0 110.5 89.5 200 199.9 200H304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8h-40.1c-33.7 0-65.4-13.4-89-37.7-23.5-24.2-36-56.8-34.9-90.6.9-26.4 9.9-51.2 26.2-72.1 16.7-21.3 40.1-36.8 66.1-43.7l37.9-9.9 13.9-36.6c8.6-22.8 20.6-44.1 35.7-63.4a245.6 245.6 0 0 1 52.4-49.9c41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.2c19.9 14 37.5 30.8 52.4 49.9 15.1 19.3 27.1 40.7 35.7 63.4l13.8 36.5 37.8 10C846.1 454.5 884 503.8 884 560c0 33.1-12.9 64.3-36.3 87.7a123.07 123.07 0 0 1-87.6 36.3H720c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h40.1C870.5 760 960 670.5 960 560c0-92.7-63.1-170.7-148.6-193.3z"},child:[]}]})(n)}const Pn=({percent:n=0,isCanceled:p=!1,isCompleted:o=!1})=>r.jsxs("div",{role:"progressbar",className:"fm-progress",children:[r.jsx("div",{className:"fm-progress-bar",children:r.jsx("div",{className:"fm-progress-bar-fill",style:{width:`${n}%`}})}),p?r.jsx("span",{className:"fm-upload-canceled",children:"Canceled"}):r.jsx("div",{className:"fm-progress-status",children:r.jsx("span",{children:o?"Completed":n+"% done"})})]}),Rn=n=>n.split(".").pop(),kn=n=>{const p=n/1024,o=p/1024,c=o/1024;if(p<1024)return`${p.toFixed(2)} KB`;if(o<1024)return`${o.toFixed(2)} MB`;if(o>=1024)return`${c.toFixed(2)} GB`};function Nn(n){return oe({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 388c-72.597 0-132-59.405-132-132 0-72.601 59.403-132 132-132 36.3 0 69.299 15.4 92.406 39.601L278 234h154V80l-51.698 51.702C348.406 99.798 304.406 80 256 80c-96.797 0-176 79.203-176 176s78.094 176 176 176c81.045 0 148.287-54.134 169.401-128H378.85c-18.745 49.561-67.138 84-122.85 84z"},child:[]}]})(n)}const Mn=({index:n,fileData:p,setIsUploading:o,fileUploadConfig:c,handleFileUploaded:d})=>{var E,M,z,I;const[u,l]=D.useState(0),[v,f]=D.useState(!1),[s,h]=D.useState(!1),N=Ht(33),j=D.useRef(),_=P=>new Promise((b,k)=>{const T=new XMLHttpRequest;j.current=T,o(O=>({...O,[n]:!0})),T.upload.onprogress=O=>{if(O.lengthComputable){const X=Math.round(O.loaded/O.total*100);l(X)}},T.onload=()=>{o(O=>({...O,[n]:!1})),T.status===200||T.status===201?(f(!0),d(T.response),b(T.response)):k(T.statusText)},T.onerror=()=>k(T.statusText),T.open("POST",c==null?void 0:c.url,!0);const $=c==null?void 0:c.headers;for(let O in $)T.setRequestHeader(O,$[O]);const ee=new FormData,W=P==null?void 0:P.appendData;for(let O in W)W[O]&&ee.append(O,W[O]);ee.append("file",P.file),T.send(ee)});D.useEffect(()=>{j.current||_(p)},[]);const V=()=>{j.current&&(j.current.abort(),o(P=>({...P,[n]:!1})),h(!0),l(0))},C=()=>{p!=null&&p.file&&(_(p),h(!1))};return r.jsxs("li",{children:[r.jsx("div",{className:"file-icon",children:N[Rn((E=p.file)==null?void 0:E.name)]??r.jsx(ot,{size:33})}),r.jsxs("div",{className:"file",children:[r.jsxs("div",{className:"file-details",children:[r.jsxs("div",{className:"file-info",children:[r.jsx("span",{className:"file-name text-truncate",title:(M=p.file)==null?void 0:M.name,children:(z=p.file)==null?void 0:z.name}),r.jsx("span",{className:"file-size",children:kn((I=p.file)==null?void 0:I.size)})]}),v?r.jsx(dn,{color:"#5c5bb1",title:"Uploaded"}):s?r.jsx(Nn,{className:"retry-upload",title:"Retry",onClick:C}):r.jsx("div",{className:"rm-file",title:"Abort",onClick:V,children:r.jsx(Tn,{})})]}),r.jsx(Pn,{percent:u,isCanceled:s,isCompleted:v})]})]})};var Dt={exports:{}};(function(n,p){(function(c,d){n.exports=d()})(typeof self<"u"?self:xt,function(){return function(o){var c={};function d(u){if(c[u])return c[u].exports;var l=c[u]={i:u,l:!1,exports:{}};return o[u].call(l.exports,l,l.exports,d),l.l=!0,l.exports}return d.m=o,d.c=c,d.d=function(u,l,v){d.o(u,l)||Object.defineProperty(u,l,{configurable:!1,enumerable:!0,get:v})},d.n=function(u){var l=u&&u.__esModule?function(){return u.default}:function(){return u};return d.d(l,"a",l),l},d.o=function(u,l){return Object.prototype.hasOwnProperty.call(u,l)},d.p="/",d(d.s=7)}([function(o,c,d){var u=function(f){};process.env.NODE_ENV!=="production"&&(u=function(f){if(f===void 0)throw new Error("invariant requires an error message argument")});function l(v,f,s,h,N,j,_,V){if(u(f),!v){var C;if(f===void 0)C=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var E=[s,h,N,j,_,V],M=0;C=new Error(f.replace(/%s/g,function(){return E[M++]})),C.name="Invariant Violation"}throw C.framesToPop=1,C}}o.exports=l},function(o,c,d){function u(v){return function(){return v}}var l=function(){};l.thatReturns=u,l.thatReturnsFalse=u(!1),l.thatReturnsTrue=u(!0),l.thatReturnsNull=u(null),l.thatReturnsThis=function(){return this},l.thatReturnsArgument=function(v){return v},o.exports=l},function(o,c,d){/*
31
31
  object-assign
32
32
  (c) Sindre Sorhus
33
33
  @license MIT
34
- */var u=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,h=Object.prototype.propertyIsEnumerable;function f(p){if(p==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(p)}function o(){try{if(!Object.assign)return!1;var p=new String("abc");if(p[5]="de",Object.getOwnPropertyNames(p)[0]==="5")return!1;for(var O={},j=0;j<10;j++)O["_"+String.fromCharCode(j)]=j;var D=Object.getOwnPropertyNames(O).map(function(T){return O[T]});if(D.join("")!=="0123456789")return!1;var A={};return"abcdefghijklmnopqrst".split("").forEach(function(T){A[T]=T}),Object.keys(Object.assign({},A)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}c.exports=o()?Object.assign:function(p,O){for(var j,D=f(p),A,T=1;T<arguments.length;T++){j=Object(arguments[T]);for(var L in j)s.call(j,L)&&(D[L]=j[L]);if(u){A=u(j);for(var V=0;V<A.length;V++)h.call(j,A[V])&&(D[A[V]]=j[A[V]])}}return D}},function(c,l,d){var u=d(1),s=u;if(process.env.NODE_ENV!=="production"){var h=function(o){for(var p=arguments.length,O=Array(p>1?p-1:0),j=1;j<p;j++)O[j-1]=arguments[j];var D=0,A="Warning: "+o.replace(/%s/g,function(){return O[D++]});typeof console<"u"&&console.error(A);try{throw new Error(A)}catch{}};s=function(o,p){if(p===void 0)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(p.indexOf("Failed Composite propType: ")!==0&&!o){for(var O=arguments.length,j=Array(O>2?O-2:0),D=2;D<O;D++)j[D-2]=arguments[D];h.apply(void 0,[p].concat(j))}}}c.exports=s},function(c,l,d){var u="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";c.exports=u},function(c,l,d){var u={};process.env.NODE_ENV!=="production"&&Object.freeze(u),c.exports=u},function(c,l,d){if(process.env.NODE_ENV!=="production")var u=d(0),s=d(3),h=d(4),f={};function o(p,O,j,D,A){if(process.env.NODE_ENV!=="production"){for(var T in p)if(p.hasOwnProperty(T)){var L;try{u(typeof p[T]=="function","%s: %s type `%s` is invalid; it must be a function, usually from the `prop-types` package, but received `%s`.",D||"React class",j,T,typeof p[T]),L=p[T](O,T,D,j,null,h)}catch(_){L=_}if(s(!L||L instanceof Error,"%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",D||"React class",j,T,typeof L),L instanceof Error&&!(L.message in f)){f[L.message]=!0;var V=A?A():"";s(!1,"Failed %s type: %s%s",j,L.message,V??"")}}}}c.exports=o},function(c,l,d){Object.defineProperty(l,"__esModule",{value:!0});var u=Object.assign||function(R){for(var x=1;x<arguments.length;x++){var S=arguments[x];for(var k in S)Object.prototype.hasOwnProperty.call(S,k)&&(R[k]=S[k])}return R},s=function(){function R(x,S){for(var k=0;k<S.length;k++){var $=S[k];$.enumerable=$.enumerable||!1,$.configurable=!0,"value"in $&&($.writable=!0),Object.defineProperty(x,$.key,$)}}return function(x,S,k){return S&&R(x.prototype,S),k&&R(x,k),x}}(),h=d(8),f=A(h),o=d(11),p=A(o),O=d(14),j=D(O);function D(R){if(R&&R.__esModule)return R;var x={};if(R!=null)for(var S in R)Object.prototype.hasOwnProperty.call(R,S)&&(x[S]=R[S]);return x.default=R,x}function A(R){return R&&R.__esModule?R:{default:R}}function T(R,x){var S={};for(var k in R)x.indexOf(k)>=0||Object.prototype.hasOwnProperty.call(R,k)&&(S[k]=R[k]);return S}function L(R,x){if(!(R instanceof x))throw new TypeError("Cannot call a class as a function")}function V(R,x){if(!R)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x&&(typeof x=="object"||typeof x=="function")?x:R}function _(R,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);R.prototype=Object.create(x&&x.prototype,{constructor:{value:R,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(R,x):R.__proto__=x)}var I=function(R){_(x,R);function x(){var S,k,$,te;L(this,x);for(var q=arguments.length,N=Array(q),Q=0;Q<q;Q++)N[Q]=arguments[Q];return te=(k=($=V(this,(S=x.__proto__||Object.getPrototypeOf(x)).call.apply(S,[this].concat(N))),$),$.state={delayed:$.props.delay>0},k),V($,te)}return s(x,[{key:"componentDidMount",value:function(){var k=this,$=this.props.delay,te=this.state.delayed;te&&(this.timeout=setTimeout(function(){k.setState({delayed:!1})},$))}},{key:"componentWillUnmount",value:function(){var k=this.timeout;k&&clearTimeout(k)}},{key:"render",value:function(){var k=this.props,$=k.color;k.delay;var te=k.type,q=k.height,N=k.width,Q=T(k,["color","delay","type","height","width"]),ne=this.state.delayed?"blank":te,oe=j[ne],de={fill:$,height:q,width:N};return f.default.createElement("div",u({style:de,dangerouslySetInnerHTML:{__html:oe}},Q))}}]),x}(h.Component);I.propTypes={color:p.default.string,delay:p.default.number,type:p.default.string,height:p.default.oneOfType([p.default.string,p.default.number]),width:p.default.oneOfType([p.default.string,p.default.number])},I.defaultProps={color:"#fff",delay:0,type:"balls",height:64,width:64},l.default=I},function(c,l,d){process.env.NODE_ENV==="production"?c.exports=d(9):c.exports=d(10)},function(c,l,d){/** @license React v16.3.2
34
+ */var u=Object.getOwnPropertySymbols,l=Object.prototype.hasOwnProperty,v=Object.prototype.propertyIsEnumerable;function f(h){if(h==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(h)}function s(){try{if(!Object.assign)return!1;var h=new String("abc");if(h[5]="de",Object.getOwnPropertyNames(h)[0]==="5")return!1;for(var N={},j=0;j<10;j++)N["_"+String.fromCharCode(j)]=j;var _=Object.getOwnPropertyNames(N).map(function(C){return N[C]});if(_.join("")!=="0123456789")return!1;var V={};return"abcdefghijklmnopqrst".split("").forEach(function(C){V[C]=C}),Object.keys(Object.assign({},V)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}o.exports=s()?Object.assign:function(h,N){for(var j,_=f(h),V,C=1;C<arguments.length;C++){j=Object(arguments[C]);for(var E in j)l.call(j,E)&&(_[E]=j[E]);if(u){V=u(j);for(var M=0;M<V.length;M++)v.call(j,V[M])&&(_[V[M]]=j[V[M]])}}return _}},function(o,c,d){var u=d(1),l=u;if(process.env.NODE_ENV!=="production"){var v=function(s){for(var h=arguments.length,N=Array(h>1?h-1:0),j=1;j<h;j++)N[j-1]=arguments[j];var _=0,V="Warning: "+s.replace(/%s/g,function(){return N[_++]});typeof console<"u"&&console.error(V);try{throw new Error(V)}catch{}};l=function(s,h){if(h===void 0)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(h.indexOf("Failed Composite propType: ")!==0&&!s){for(var N=arguments.length,j=Array(N>2?N-2:0),_=2;_<N;_++)j[_-2]=arguments[_];v.apply(void 0,[h].concat(j))}}}o.exports=l},function(o,c,d){var u="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";o.exports=u},function(o,c,d){var u={};process.env.NODE_ENV!=="production"&&Object.freeze(u),o.exports=u},function(o,c,d){if(process.env.NODE_ENV!=="production")var u=d(0),l=d(3),v=d(4),f={};function s(h,N,j,_,V){if(process.env.NODE_ENV!=="production"){for(var C in h)if(h.hasOwnProperty(C)){var E;try{u(typeof h[C]=="function","%s: %s type `%s` is invalid; it must be a function, usually from the `prop-types` package, but received `%s`.",_||"React class",j,C,typeof h[C]),E=h[C](N,C,_,j,null,v)}catch(z){E=z}if(l(!E||E instanceof Error,"%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",_||"React class",j,C,typeof E),E instanceof Error&&!(E.message in f)){f[E.message]=!0;var M=V?V():"";l(!1,"Failed %s type: %s%s",j,E.message,M??"")}}}}o.exports=s},function(o,c,d){Object.defineProperty(c,"__esModule",{value:!0});var u=Object.assign||function(P){for(var b=1;b<arguments.length;b++){var k=arguments[b];for(var T in k)Object.prototype.hasOwnProperty.call(k,T)&&(P[T]=k[T])}return P},l=function(){function P(b,k){for(var T=0;T<k.length;T++){var $=k[T];$.enumerable=$.enumerable||!1,$.configurable=!0,"value"in $&&($.writable=!0),Object.defineProperty(b,$.key,$)}}return function(b,k,T){return k&&P(b.prototype,k),T&&P(b,T),b}}(),v=d(8),f=V(v),s=d(11),h=V(s),N=d(14),j=_(N);function _(P){if(P&&P.__esModule)return P;var b={};if(P!=null)for(var k in P)Object.prototype.hasOwnProperty.call(P,k)&&(b[k]=P[k]);return b.default=P,b}function V(P){return P&&P.__esModule?P:{default:P}}function C(P,b){var k={};for(var T in P)b.indexOf(T)>=0||Object.prototype.hasOwnProperty.call(P,T)&&(k[T]=P[T]);return k}function E(P,b){if(!(P instanceof b))throw new TypeError("Cannot call a class as a function")}function M(P,b){if(!P)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:P}function z(P,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);P.prototype=Object.create(b&&b.prototype,{constructor:{value:P,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(P,b):P.__proto__=b)}var I=function(P){z(b,P);function b(){var k,T,$,ee;E(this,b);for(var W=arguments.length,O=Array(W),X=0;X<W;X++)O[X]=arguments[X];return ee=(T=($=M(this,(k=b.__proto__||Object.getPrototypeOf(b)).call.apply(k,[this].concat(O))),$),$.state={delayed:$.props.delay>0},T),M($,ee)}return l(b,[{key:"componentDidMount",value:function(){var T=this,$=this.props.delay,ee=this.state.delayed;ee&&(this.timeout=setTimeout(function(){T.setState({delayed:!1})},$))}},{key:"componentWillUnmount",value:function(){var T=this.timeout;T&&clearTimeout(T)}},{key:"render",value:function(){var T=this.props,$=T.color;T.delay;var ee=T.type,W=T.height,O=T.width,X=C(T,["color","delay","type","height","width"]),re=this.state.delayed?"blank":ee,ue=j[re],fe={fill:$,height:W,width:O};return f.default.createElement("div",u({style:fe,dangerouslySetInnerHTML:{__html:ue}},X))}}]),b}(v.Component);I.propTypes={color:h.default.string,delay:h.default.number,type:h.default.string,height:h.default.oneOfType([h.default.string,h.default.number]),width:h.default.oneOfType([h.default.string,h.default.number])},I.defaultProps={color:"#fff",delay:0,type:"balls",height:64,width:64},c.default=I},function(o,c,d){process.env.NODE_ENV==="production"?o.exports=d(9):o.exports=d(10)},function(o,c,d){/** @license React v16.3.2
35
35
  * react.production.min.js
36
36
  *
37
37
  * Copyright (c) 2013-present, Facebook, Inc.
38
38
  *
39
39
  * This source code is licensed under the MIT license found in the
40
40
  * LICENSE file in the root directory of this source tree.
41
- */var u=d(2),s=d(0),h=d(5),f=d(1),o=typeof Symbol=="function"&&Symbol.for,p=o?Symbol.for("react.element"):60103,O=o?Symbol.for("react.portal"):60106,j=o?Symbol.for("react.fragment"):60107,D=o?Symbol.for("react.strict_mode"):60108,A=o?Symbol.for("react.provider"):60109,T=o?Symbol.for("react.context"):60110,L=o?Symbol.for("react.async_mode"):60111,V=o?Symbol.for("react.forward_ref"):60112,_=typeof Symbol=="function"&&Symbol.iterator;function I(i){for(var m=arguments.length-1,M="http://reactjs.org/docs/error-decoder.html?invariant="+i,E=0;E<m;E++)M+="&args[]="+encodeURIComponent(arguments[E+1]);s(!1,"Minified React error #"+i+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",M)}var R={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}};function x(i,m,M){this.props=i,this.context=m,this.refs=h,this.updater=M||R}x.prototype.isReactComponent={},x.prototype.setState=function(i,m){typeof i!="object"&&typeof i!="function"&&i!=null&&I("85"),this.updater.enqueueSetState(this,i,m,"setState")},x.prototype.forceUpdate=function(i){this.updater.enqueueForceUpdate(this,i,"forceUpdate")};function S(){}S.prototype=x.prototype;function k(i,m,M){this.props=i,this.context=m,this.refs=h,this.updater=M||R}var $=k.prototype=new S;$.constructor=k,u($,x.prototype),$.isPureReactComponent=!0;var te={current:null},q=Object.prototype.hasOwnProperty,N={key:!0,ref:!0,__self:!0,__source:!0};function Q(i,m,M){var E=void 0,H={},U=null,se=null;if(m!=null)for(E in m.ref!==void 0&&(se=m.ref),m.key!==void 0&&(U=""+m.key),m)q.call(m,E)&&!N.hasOwnProperty(E)&&(H[E]=m[E]);var re=arguments.length-2;if(re===1)H.children=M;else if(1<re){for(var me=Array(re),he=0;he<re;he++)me[he]=arguments[he+2];H.children=me}if(i&&i.defaultProps)for(E in re=i.defaultProps,re)H[E]===void 0&&(H[E]=re[E]);return{$$typeof:p,type:i,key:U,ref:se,props:H,_owner:te.current}}function ne(i){return typeof i=="object"&&i!==null&&i.$$typeof===p}function oe(i){var m={"=":"=0",":":"=2"};return"$"+(""+i).replace(/[=:]/g,function(M){return m[M]})}var de=/\/+/g,ce=[];function ve(i,m,M,E){if(ce.length){var H=ce.pop();return H.result=i,H.keyPrefix=m,H.func=M,H.context=E,H.count=0,H}return{result:i,keyPrefix:m,func:M,context:E,count:0}}function ue(i){i.result=null,i.keyPrefix=null,i.func=null,i.context=null,i.count=0,10>ce.length&&ce.push(i)}function G(i,m,M,E){var H=typeof i;(H==="undefined"||H==="boolean")&&(i=null);var U=!1;if(i===null)U=!0;else switch(H){case"string":case"number":U=!0;break;case"object":switch(i.$$typeof){case p:case O:U=!0}}if(U)return M(E,i,m===""?"."+fe(i,0):m),1;if(U=0,m=m===""?".":m+":",Array.isArray(i))for(var se=0;se<i.length;se++){H=i[se];var re=m+fe(H,se);U+=G(H,re,M,E)}else if(i===null||typeof i>"u"?re=null:(re=_&&i[_]||i["@@iterator"],re=typeof re=="function"?re:null),typeof re=="function")for(i=re.call(i),se=0;!(H=i.next()).done;)H=H.value,re=m+fe(H,se++),U+=G(H,re,M,E);else H==="object"&&(M=""+i,I("31",M==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":M,""));return U}function fe(i,m){return typeof i=="object"&&i!==null&&i.key!=null?oe(i.key):m.toString(36)}function pe(i,m){i.func.call(i.context,m,i.count++)}function w(i,m,M){var E=i.result,H=i.keyPrefix;i=i.func.call(i.context,m,i.count++),Array.isArray(i)?z(i,E,M,f.thatReturnsArgument):i!=null&&(ne(i)&&(m=H+(!i.key||m&&m.key===i.key?"":(""+i.key).replace(de,"$&/")+"/")+M,i={$$typeof:p,type:i.type,key:m,ref:i.ref,props:i.props,_owner:i._owner}),E.push(i))}function z(i,m,M,E,H){var U="";M!=null&&(U=(""+M).replace(de,"$&/")+"/"),m=ve(m,U,E,H),i==null||G(i,"",w,m),ue(m)}var Y={Children:{map:function(i,m,M){if(i==null)return i;var E=[];return z(i,E,null,m,M),E},forEach:function(i,m,M){if(i==null)return i;m=ve(null,null,m,M),i==null||G(i,"",pe,m),ue(m)},count:function(i){return i==null?0:G(i,"",f.thatReturnsNull,null)},toArray:function(i){var m=[];return z(i,m,null,f.thatReturnsArgument),m},only:function(i){return ne(i)||I("143"),i}},createRef:function(){return{current:null}},Component:x,PureComponent:k,createContext:function(i,m){return m===void 0&&(m=null),i={$$typeof:T,_calculateChangedBits:m,_defaultValue:i,_currentValue:i,_changedBits:0,Provider:null,Consumer:null},i.Provider={$$typeof:A,_context:i},i.Consumer=i},forwardRef:function(i){return{$$typeof:V,render:i}},Fragment:j,StrictMode:D,unstable_AsyncMode:L,createElement:Q,cloneElement:function(i,m,M){i==null&&I("267",i);var E=void 0,H=u({},i.props),U=i.key,se=i.ref,re=i._owner;if(m!=null){m.ref!==void 0&&(se=m.ref,re=te.current),m.key!==void 0&&(U=""+m.key);var me=void 0;i.type&&i.type.defaultProps&&(me=i.type.defaultProps);for(E in m)q.call(m,E)&&!N.hasOwnProperty(E)&&(H[E]=m[E]===void 0&&me!==void 0?me[E]:m[E])}if(E=arguments.length-2,E===1)H.children=M;else if(1<E){me=Array(E);for(var he=0;he<E;he++)me[he]=arguments[he+2];H.children=me}return{$$typeof:p,type:i.type,key:U,ref:se,props:H,_owner:re}},createFactory:function(i){var m=Q.bind(null,i);return m.type=i,m},isValidElement:ne,version:"16.3.2",__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentOwner:te,assign:u}},K=Object.freeze({default:Y}),B=K&&Y||K;c.exports=B.default?B.default:B},function(c,l,d){/** @license React v16.3.2
41
+ */var u=d(2),l=d(0),v=d(5),f=d(1),s=typeof Symbol=="function"&&Symbol.for,h=s?Symbol.for("react.element"):60103,N=s?Symbol.for("react.portal"):60106,j=s?Symbol.for("react.fragment"):60107,_=s?Symbol.for("react.strict_mode"):60108,V=s?Symbol.for("react.provider"):60109,C=s?Symbol.for("react.context"):60110,E=s?Symbol.for("react.async_mode"):60111,M=s?Symbol.for("react.forward_ref"):60112,z=typeof Symbol=="function"&&Symbol.iterator;function I(i){for(var m=arguments.length-1,H="http://reactjs.org/docs/error-decoder.html?invariant="+i,R=0;R<m;R++)H+="&args[]="+encodeURIComponent(arguments[R+1]);l(!1,"Minified React error #"+i+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",H)}var P={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}};function b(i,m,H){this.props=i,this.context=m,this.refs=v,this.updater=H||P}b.prototype.isReactComponent={},b.prototype.setState=function(i,m){typeof i!="object"&&typeof i!="function"&&i!=null&&I("85"),this.updater.enqueueSetState(this,i,m,"setState")},b.prototype.forceUpdate=function(i){this.updater.enqueueForceUpdate(this,i,"forceUpdate")};function k(){}k.prototype=b.prototype;function T(i,m,H){this.props=i,this.context=m,this.refs=v,this.updater=H||P}var $=T.prototype=new k;$.constructor=T,u($,b.prototype),$.isPureReactComponent=!0;var ee={current:null},W=Object.prototype.hasOwnProperty,O={key:!0,ref:!0,__self:!0,__source:!0};function X(i,m,H){var R=void 0,F={},K=null,le=null;if(m!=null)for(R in m.ref!==void 0&&(le=m.ref),m.key!==void 0&&(K=""+m.key),m)W.call(m,R)&&!O.hasOwnProperty(R)&&(F[R]=m[R]);var ae=arguments.length-2;if(ae===1)F.children=H;else if(1<ae){for(var me=Array(ae),ve=0;ve<ae;ve++)me[ve]=arguments[ve+2];F.children=me}if(i&&i.defaultProps)for(R in ae=i.defaultProps,ae)F[R]===void 0&&(F[R]=ae[R]);return{$$typeof:h,type:i,key:K,ref:le,props:F,_owner:ee.current}}function re(i){return typeof i=="object"&&i!==null&&i.$$typeof===h}function ue(i){var m={"=":"=0",":":"=2"};return"$"+(""+i).replace(/[=:]/g,function(H){return m[H]})}var fe=/\/+/g,ne=[];function he(i,m,H,R){if(ne.length){var F=ne.pop();return F.result=i,F.keyPrefix=m,F.func=H,F.context=R,F.count=0,F}return{result:i,keyPrefix:m,func:H,context:R,count:0}}function ce(i){i.result=null,i.keyPrefix=null,i.func=null,i.context=null,i.count=0,10>ne.length&&ne.push(i)}function q(i,m,H,R){var F=typeof i;(F==="undefined"||F==="boolean")&&(i=null);var K=!1;if(i===null)K=!0;else switch(F){case"string":case"number":K=!0;break;case"object":switch(i.$$typeof){case h:case N:K=!0}}if(K)return H(R,i,m===""?"."+de(i,0):m),1;if(K=0,m=m===""?".":m+":",Array.isArray(i))for(var le=0;le<i.length;le++){F=i[le];var ae=m+de(F,le);K+=q(F,ae,H,R)}else if(i===null||typeof i>"u"?ae=null:(ae=z&&i[z]||i["@@iterator"],ae=typeof ae=="function"?ae:null),typeof ae=="function")for(i=ae.call(i),le=0;!(F=i.next()).done;)F=F.value,ae=m+de(F,le++),K+=q(F,ae,H,R);else F==="object"&&(H=""+i,I("31",H==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":H,""));return K}function de(i,m){return typeof i=="object"&&i!==null&&i.key!=null?ue(i.key):m.toString(36)}function pe(i,m){i.func.call(i.context,m,i.count++)}function w(i,m,H){var R=i.result,F=i.keyPrefix;i=i.func.call(i.context,m,i.count++),Array.isArray(i)?L(i,R,H,f.thatReturnsArgument):i!=null&&(re(i)&&(m=F+(!i.key||m&&m.key===i.key?"":(""+i.key).replace(fe,"$&/")+"/")+H,i={$$typeof:h,type:i.type,key:m,ref:i.ref,props:i.props,_owner:i._owner}),R.push(i))}function L(i,m,H,R,F){var K="";H!=null&&(K=(""+H).replace(fe,"$&/")+"/"),m=he(m,K,R,F),i==null||q(i,"",w,m),ce(m)}var U={Children:{map:function(i,m,H){if(i==null)return i;var R=[];return L(i,R,null,m,H),R},forEach:function(i,m,H){if(i==null)return i;m=he(null,null,m,H),i==null||q(i,"",pe,m),ce(m)},count:function(i){return i==null?0:q(i,"",f.thatReturnsNull,null)},toArray:function(i){var m=[];return L(i,m,null,f.thatReturnsArgument),m},only:function(i){return re(i)||I("143"),i}},createRef:function(){return{current:null}},Component:b,PureComponent:T,createContext:function(i,m){return m===void 0&&(m=null),i={$$typeof:C,_calculateChangedBits:m,_defaultValue:i,_currentValue:i,_changedBits:0,Provider:null,Consumer:null},i.Provider={$$typeof:V,_context:i},i.Consumer=i},forwardRef:function(i){return{$$typeof:M,render:i}},Fragment:j,StrictMode:_,unstable_AsyncMode:E,createElement:X,cloneElement:function(i,m,H){i==null&&I("267",i);var R=void 0,F=u({},i.props),K=i.key,le=i.ref,ae=i._owner;if(m!=null){m.ref!==void 0&&(le=m.ref,ae=ee.current),m.key!==void 0&&(K=""+m.key);var me=void 0;i.type&&i.type.defaultProps&&(me=i.type.defaultProps);for(R in m)W.call(m,R)&&!O.hasOwnProperty(R)&&(F[R]=m[R]===void 0&&me!==void 0?me[R]:m[R])}if(R=arguments.length-2,R===1)F.children=H;else if(1<R){me=Array(R);for(var ve=0;ve<R;ve++)me[ve]=arguments[ve+2];F.children=me}return{$$typeof:h,type:i.type,key:K,ref:le,props:F,_owner:ae}},createFactory:function(i){var m=X.bind(null,i);return m.type=i,m},isValidElement:re,version:"16.3.2",__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentOwner:ee,assign:u}},G=Object.freeze({default:U}),Y=G&&U||G;o.exports=Y.default?Y.default:Y},function(o,c,d){/** @license React v16.3.2
42
42
  * react.development.js
43
43
  *
44
44
  * Copyright (c) 2013-present, Facebook, Inc.
45
45
  *
46
46
  * This source code is licensed under the MIT license found in the
47
47
  * LICENSE file in the root directory of this source tree.
48
- */process.env.NODE_ENV!=="production"&&function(){var u=d(2),s=d(0),h=d(5),f=d(3),o=d(1),p=d(6),O="16.3.2",j=typeof Symbol=="function"&&Symbol.for,D=j?Symbol.for("react.element"):60103,A=j?Symbol.for("react.call"):60104,T=j?Symbol.for("react.return"):60105,L=j?Symbol.for("react.portal"):60106,V=j?Symbol.for("react.fragment"):60107,_=j?Symbol.for("react.strict_mode"):60108,I=j?Symbol.for("react.provider"):60109,R=j?Symbol.for("react.context"):60110,x=j?Symbol.for("react.async_mode"):60111,S=j?Symbol.for("react.forward_ref"):60112,k=typeof Symbol=="function"&&Symbol.iterator,$="@@iterator";function te(e){if(e===null||typeof e>"u")return null;var a=k&&e[k]||e[$];return typeof a=="function"?a:null}var q=function(){};{var N=function(e){for(var a=arguments.length,g=Array(a>1?a-1:0),y=1;y<a;y++)g[y-1]=arguments[y];var C=0,X="Warning: "+e.replace(/%s/g,function(){return g[C++]});typeof console<"u"&&console.warn(X);try{throw new Error(X)}catch{}};q=function(e,a){if(a===void 0)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(!e){for(var g=arguments.length,y=Array(g>2?g-2:0),C=2;C<g;C++)y[C-2]=arguments[C];N.apply(void 0,[a].concat(y))}}}var Q=q,ne={};function oe(e,a){{var g=e.constructor,y=g&&(g.displayName||g.name)||"ReactClass",C=y+"."+a;if(ne[C])return;f(!1,"Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",a,y),ne[C]=!0}}var de={isMounted:function(e){return!1},enqueueForceUpdate:function(e,a,g){oe(e,"forceUpdate")},enqueueReplaceState:function(e,a,g,y){oe(e,"replaceState")},enqueueSetState:function(e,a,g,y){oe(e,"setState")}};function ce(e,a,g){this.props=e,this.context=a,this.refs=h,this.updater=g||de}ce.prototype.isReactComponent={},ce.prototype.setState=function(e,a){typeof e=="object"||typeof e=="function"||e==null||s(!1,"setState(...): takes an object of state variables to update or a function which returns an object of state variables."),this.updater.enqueueSetState(this,e,a,"setState")},ce.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};{var ve={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},ue=function(e,a){Object.defineProperty(ce.prototype,e,{get:function(){Q(!1,"%s(...) is deprecated in plain JavaScript React classes. %s",a[0],a[1])}})};for(var G in ve)ve.hasOwnProperty(G)&&ue(G,ve[G])}function fe(){}fe.prototype=ce.prototype;function pe(e,a,g){this.props=e,this.context=a,this.refs=h,this.updater=g||de}var w=pe.prototype=new fe;w.constructor=pe,u(w,ce.prototype),w.isPureReactComponent=!0;function z(){var e={current:null};return Object.seal(e),e}var Y={current:null},K=Object.prototype.hasOwnProperty,B={key:!0,ref:!0,__self:!0,__source:!0},i=void 0,m=void 0;function M(e){if(K.call(e,"ref")){var a=Object.getOwnPropertyDescriptor(e,"ref").get;if(a&&a.isReactWarning)return!1}return e.ref!==void 0}function E(e){if(K.call(e,"key")){var a=Object.getOwnPropertyDescriptor(e,"key").get;if(a&&a.isReactWarning)return!1}return e.key!==void 0}function H(e,a){var g=function(){i||(i=!0,f(!1,"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://fb.me/react-special-props)",a))};g.isReactWarning=!0,Object.defineProperty(e,"key",{get:g,configurable:!0})}function U(e,a){var g=function(){m||(m=!0,f(!1,"%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://fb.me/react-special-props)",a))};g.isReactWarning=!0,Object.defineProperty(e,"ref",{get:g,configurable:!0})}var se=function(e,a,g,y,C,X,Z){var J={$$typeof:D,type:e,key:a,ref:g,props:Z,_owner:X};return J._store={},Object.defineProperty(J._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(J,"_self",{configurable:!1,enumerable:!1,writable:!1,value:y}),Object.defineProperty(J,"_source",{configurable:!1,enumerable:!1,writable:!1,value:C}),Object.freeze&&(Object.freeze(J.props),Object.freeze(J)),J};function re(e,a,g){var y=void 0,C={},X=null,Z=null,J=null,ie=null;if(a!=null){M(a)&&(Z=a.ref),E(a)&&(X=""+a.key),J=a.__self===void 0?null:a.__self,ie=a.__source===void 0?null:a.__source;for(y in a)K.call(a,y)&&!B.hasOwnProperty(y)&&(C[y]=a[y])}var ye=arguments.length-2;if(ye===1)C.children=g;else if(ye>1){for(var be=Array(ye),ge=0;ge<ye;ge++)be[ge]=arguments[ge+2];Object.freeze&&Object.freeze(be),C.children=be}if(e&&e.defaultProps){var Me=e.defaultProps;for(y in Me)C[y]===void 0&&(C[y]=Me[y])}if((X||Z)&&(typeof C.$$typeof>"u"||C.$$typeof!==D)){var we=typeof e=="function"?e.displayName||e.name||"Unknown":e;X&&H(C,we),Z&&U(C,we)}return se(e,X,Z,J,ie,Y.current,C)}function me(e,a){var g=se(e.type,a,e.ref,e._self,e._source,e._owner,e.props);return g}function he(e,a,g){e==null&&s(!1,"React.cloneElement(...): The argument must be a React element, but you passed %s.",e);var y=void 0,C=u({},e.props),X=e.key,Z=e.ref,J=e._self,ie=e._source,ye=e._owner;if(a!=null){M(a)&&(Z=a.ref,ye=Y.current),E(a)&&(X=""+a.key);var be=void 0;e.type&&e.type.defaultProps&&(be=e.type.defaultProps);for(y in a)K.call(a,y)&&!B.hasOwnProperty(y)&&(a[y]===void 0&&be!==void 0?C[y]=be[y]:C[y]=a[y])}var ge=arguments.length-2;if(ge===1)C.children=g;else if(ge>1){for(var Me=Array(ge),we=0;we<ge;we++)Me[we]=arguments[we+2];C.children=Me}return se(e.type,X,Z,J,ie,ye,C)}function Ce(e){return typeof e=="object"&&e!==null&&e.$$typeof===D}var je={};je.getCurrentStack=null,je.getStackAddendum=function(){var e=je.getCurrentStack;return e?e():null};var Re=".",ct=":";function ut(e){var a=/[=:]/g,g={"=":"=0",":":"=2"},y=(""+e).replace(a,function(C){return g[C]});return"$"+y}var _e=!1,ft=/\/+/g;function qe(e){return(""+e).replace(ft,"$&/")}var Je=10,Ne=[];function Ee(e,a,g,y){if(Ne.length){var C=Ne.pop();return C.result=e,C.keyPrefix=a,C.func=g,C.context=y,C.count=0,C}else return{result:e,keyPrefix:a,func:g,context:y,count:0}}function Ge(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,Ne.length<Je&&Ne.push(e)}function Ae(e,a,g,y){var C=typeof e;(C==="undefined"||C==="boolean")&&(e=null);var X=!1;if(e===null)X=!0;else switch(C){case"string":case"number":X=!0;break;case"object":switch(e.$$typeof){case D:case L:X=!0}}if(X)return g(y,e,a===""?Re+ke(e,0):a),1;var Z=void 0,J=void 0,ie=0,ye=a===""?Re:a+ct;if(Array.isArray(e))for(var be=0;be<e.length;be++)Z=e[be],J=ye+ke(Z,be),ie+=Ae(Z,J,g,y);else{var ge=te(e);if(typeof ge=="function"){ge===e.entries&&(_e||f(!1,"Using Maps as children is unsupported and will likely yield unexpected results. Convert it to a sequence/iterable of keyed ReactElements instead.%s",je.getStackAddendum()),_e=!0);for(var Me=ge.call(e),we=void 0,An=0;!(we=Me.next()).done;)Z=we.value,J=ye+ke(Z,An++),ie+=Ae(Z,J,g,y)}else if(C==="object"){var Ft="";Ft=" If you meant to render a collection of children, use an array instead."+je.getStackAddendum();var It=""+e;s(!1,"Objects are not valid as a React child (found: %s).%s",It==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":It,Ft)}}return ie}function Ve(e,a,g){return e==null?0:Ae(e,"",a,g)}function ke(e,a){return typeof e=="object"&&e!==null&&e.key!=null?ut(e.key):a.toString(36)}function dt(e,a,g){var y=e.func,C=e.context;y.call(C,a,e.count++)}function pt(e,a,g){if(e==null)return e;var y=Ee(null,null,a,g);Ve(e,dt,y),Ge(y)}function ht(e,a,g){var y=e.result,C=e.keyPrefix,X=e.func,Z=e.context,J=X.call(Z,a,e.count++);Array.isArray(J)?Ie(J,y,g,o.thatReturnsArgument):J!=null&&(Ce(J)&&(J=me(J,C+(J.key&&(!a||a.key!==J.key)?qe(J.key)+"/":"")+g)),y.push(J))}function Ie(e,a,g,y,C){var X="";g!=null&&(X=qe(g)+"/");var Z=Ee(a,X,y,C);Ve(e,ht,Z),Ge(Z)}function vt(e,a,g){if(e==null)return e;var y=[];return Ie(e,y,null,a,g),y}function mt(e,a){return Ve(e,o.thatReturnsNull,null)}function gt(e){var a=[];return Ie(e,a,null,o.thatReturnsArgument),a}function Le(e){return Ce(e)||s(!1,"React.Children.only expected to receive a single React element child."),e}function Xe(e,a){a===void 0?a=null:a===null||typeof a=="function"||f(!1,"createContext: Expected the optional second argument to be a function. Instead received: %s",a);var g={$$typeof:R,_calculateChangedBits:a,_defaultValue:e,_currentValue:e,_changedBits:0,Provider:null,Consumer:null};return g.Provider={$$typeof:I,_context:g},g.Consumer=g,g._currentRenderer=null,g}function Te(e){return typeof e!="function"&&f(!1,"forwardRef requires a render function but was given %s.",e===null?"null":typeof e),{$$typeof:S,render:e}}var $e=function(e,a,g){return`
49
- in `+(e||"Unknown")+(a?" (at "+a.fileName.replace(/^.*[\\\/]/,"")+":"+a.lineNumber+")":g?" (created by "+g+")":"")};function We(e){return typeof e=="string"||typeof e=="function"||e===V||e===x||e===_||typeof e=="object"&&e!==null&&(e.$$typeof===I||e.$$typeof===R||e.$$typeof===S)}function ze(e){var a=e.type;if(typeof a=="function")return a.displayName||a.name;if(typeof a=="string")return a;switch(a){case V:return"ReactFragment";case L:return"ReactPortal";case A:return"ReactCall";case T:return"ReactReturn"}if(typeof a=="object"&&a!==null)switch(a.$$typeof){case S:var g=a.render.displayName||a.render.name||"";return g!==""?"ForwardRef("+g+")":"ForwardRef"}return null}var xe=void 0,He=void 0,Ze=function(){},Oe=function(){};xe=null,He=!1,Ze=function(e){return e==null?"#empty":typeof e=="string"||typeof e=="number"?"#text":typeof e.type=="string"?e.type:e.type===V?"React.Fragment":e.type.displayName||e.type.name||"Unknown"},Oe=function(){var e="";if(xe){var a=Ze(xe),g=xe._owner;e+=$e(a,xe._source,g&&ze(g))}return e+=je.getStackAddendum()||"",e};function Ue(){if(Y.current){var e=ze(Y.current);if(e)return`
48
+ */process.env.NODE_ENV!=="production"&&function(){var u=d(2),l=d(0),v=d(5),f=d(3),s=d(1),h=d(6),N="16.3.2",j=typeof Symbol=="function"&&Symbol.for,_=j?Symbol.for("react.element"):60103,V=j?Symbol.for("react.call"):60104,C=j?Symbol.for("react.return"):60105,E=j?Symbol.for("react.portal"):60106,M=j?Symbol.for("react.fragment"):60107,z=j?Symbol.for("react.strict_mode"):60108,I=j?Symbol.for("react.provider"):60109,P=j?Symbol.for("react.context"):60110,b=j?Symbol.for("react.async_mode"):60111,k=j?Symbol.for("react.forward_ref"):60112,T=typeof Symbol=="function"&&Symbol.iterator,$="@@iterator";function ee(e){if(e===null||typeof e>"u")return null;var a=T&&e[T]||e[$];return typeof a=="function"?a:null}var W=function(){};{var O=function(e){for(var a=arguments.length,g=Array(a>1?a-1:0),y=1;y<a;y++)g[y-1]=arguments[y];var S=0,Z="Warning: "+e.replace(/%s/g,function(){return g[S++]});typeof console<"u"&&console.warn(Z);try{throw new Error(Z)}catch{}};W=function(e,a){if(a===void 0)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(!e){for(var g=arguments.length,y=Array(g>2?g-2:0),S=2;S<g;S++)y[S-2]=arguments[S];O.apply(void 0,[a].concat(y))}}}var X=W,re={};function ue(e,a){{var g=e.constructor,y=g&&(g.displayName||g.name)||"ReactClass",S=y+"."+a;if(re[S])return;f(!1,"Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",a,y),re[S]=!0}}var fe={isMounted:function(e){return!1},enqueueForceUpdate:function(e,a,g){ue(e,"forceUpdate")},enqueueReplaceState:function(e,a,g,y){ue(e,"replaceState")},enqueueSetState:function(e,a,g,y){ue(e,"setState")}};function ne(e,a,g){this.props=e,this.context=a,this.refs=v,this.updater=g||fe}ne.prototype.isReactComponent={},ne.prototype.setState=function(e,a){typeof e=="object"||typeof e=="function"||e==null||l(!1,"setState(...): takes an object of state variables to update or a function which returns an object of state variables."),this.updater.enqueueSetState(this,e,a,"setState")},ne.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};{var he={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},ce=function(e,a){Object.defineProperty(ne.prototype,e,{get:function(){X(!1,"%s(...) is deprecated in plain JavaScript React classes. %s",a[0],a[1])}})};for(var q in he)he.hasOwnProperty(q)&&ce(q,he[q])}function de(){}de.prototype=ne.prototype;function pe(e,a,g){this.props=e,this.context=a,this.refs=v,this.updater=g||fe}var w=pe.prototype=new de;w.constructor=pe,u(w,ne.prototype),w.isPureReactComponent=!0;function L(){var e={current:null};return Object.seal(e),e}var U={current:null},G=Object.prototype.hasOwnProperty,Y={key:!0,ref:!0,__self:!0,__source:!0},i=void 0,m=void 0;function H(e){if(G.call(e,"ref")){var a=Object.getOwnPropertyDescriptor(e,"ref").get;if(a&&a.isReactWarning)return!1}return e.ref!==void 0}function R(e){if(G.call(e,"key")){var a=Object.getOwnPropertyDescriptor(e,"key").get;if(a&&a.isReactWarning)return!1}return e.key!==void 0}function F(e,a){var g=function(){i||(i=!0,f(!1,"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://fb.me/react-special-props)",a))};g.isReactWarning=!0,Object.defineProperty(e,"key",{get:g,configurable:!0})}function K(e,a){var g=function(){m||(m=!0,f(!1,"%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://fb.me/react-special-props)",a))};g.isReactWarning=!0,Object.defineProperty(e,"ref",{get:g,configurable:!0})}var le=function(e,a,g,y,S,Z,Q){var J={$$typeof:_,type:e,key:a,ref:g,props:Q,_owner:Z};return J._store={},Object.defineProperty(J._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(J,"_self",{configurable:!1,enumerable:!1,writable:!1,value:y}),Object.defineProperty(J,"_source",{configurable:!1,enumerable:!1,writable:!1,value:S}),Object.freeze&&(Object.freeze(J.props),Object.freeze(J)),J};function ae(e,a,g){var y=void 0,S={},Z=null,Q=null,J=null,se=null;if(a!=null){H(a)&&(Q=a.ref),R(a)&&(Z=""+a.key),J=a.__self===void 0?null:a.__self,se=a.__source===void 0?null:a.__source;for(y in a)G.call(a,y)&&!Y.hasOwnProperty(y)&&(S[y]=a[y])}var ye=arguments.length-2;if(ye===1)S.children=g;else if(ye>1){for(var be=Array(ye),ge=0;ge<ye;ge++)be[ge]=arguments[ge+2];Object.freeze&&Object.freeze(be),S.children=be}if(e&&e.defaultProps){var Me=e.defaultProps;for(y in Me)S[y]===void 0&&(S[y]=Me[y])}if((Z||Q)&&(typeof S.$$typeof>"u"||S.$$typeof!==_)){var we=typeof e=="function"?e.displayName||e.name||"Unknown":e;Z&&F(S,we),Q&&K(S,we)}return le(e,Z,Q,J,se,U.current,S)}function me(e,a){var g=le(e.type,a,e.ref,e._self,e._source,e._owner,e.props);return g}function ve(e,a,g){e==null&&l(!1,"React.cloneElement(...): The argument must be a React element, but you passed %s.",e);var y=void 0,S=u({},e.props),Z=e.key,Q=e.ref,J=e._self,se=e._source,ye=e._owner;if(a!=null){H(a)&&(Q=a.ref,ye=U.current),R(a)&&(Z=""+a.key);var be=void 0;e.type&&e.type.defaultProps&&(be=e.type.defaultProps);for(y in a)G.call(a,y)&&!Y.hasOwnProperty(y)&&(a[y]===void 0&&be!==void 0?S[y]=be[y]:S[y]=a[y])}var ge=arguments.length-2;if(ge===1)S.children=g;else if(ge>1){for(var Me=Array(ge),we=0;we<ge;we++)Me[we]=arguments[we+2];S.children=Me}return le(e.type,Z,Q,J,se,ye,S)}function Ce(e){return typeof e=="object"&&e!==null&&e.$$typeof===_}var je={};je.getCurrentStack=null,je.getStackAddendum=function(){var e=je.getCurrentStack;return e?e():null};var Re=".",ct=":";function ut(e){var a=/[=:]/g,g={"=":"=0",":":"=2"},y=(""+e).replace(a,function(S){return g[S]});return"$"+y}var _e=!1,ft=/\/+/g;function qe(e){return(""+e).replace(ft,"$&/")}var Ge=10,ke=[];function Ee(e,a,g,y){if(ke.length){var S=ke.pop();return S.result=e,S.keyPrefix=a,S.func=g,S.context=y,S.count=0,S}else return{result:e,keyPrefix:a,func:g,context:y,count:0}}function Je(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,ke.length<Ge&&ke.push(e)}function Ae(e,a,g,y){var S=typeof e;(S==="undefined"||S==="boolean")&&(e=null);var Z=!1;if(e===null)Z=!0;else switch(S){case"string":case"number":Z=!0;break;case"object":switch(e.$$typeof){case _:case E:Z=!0}}if(Z)return g(y,e,a===""?Re+Ne(e,0):a),1;var Q=void 0,J=void 0,se=0,ye=a===""?Re:a+ct;if(Array.isArray(e))for(var be=0;be<e.length;be++)Q=e[be],J=ye+Ne(Q,be),se+=Ae(Q,J,g,y);else{var ge=ee(e);if(typeof ge=="function"){ge===e.entries&&(_e||f(!1,"Using Maps as children is unsupported and will likely yield unexpected results. Convert it to a sequence/iterable of keyed ReactElements instead.%s",je.getStackAddendum()),_e=!0);for(var Me=ge.call(e),we=void 0,Dn=0;!(we=Me.next()).done;)Q=we.value,J=ye+Ne(Q,Dn++),se+=Ae(Q,J,g,y)}else if(S==="object"){var It="";It=" If you meant to render a collection of children, use an array instead."+je.getStackAddendum();var Lt=""+e;l(!1,"Objects are not valid as a React child (found: %s).%s",Lt==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":Lt,It)}}return se}function Ve(e,a,g){return e==null?0:Ae(e,"",a,g)}function Ne(e,a){return typeof e=="object"&&e!==null&&e.key!=null?ut(e.key):a.toString(36)}function dt(e,a,g){var y=e.func,S=e.context;y.call(S,a,e.count++)}function pt(e,a,g){if(e==null)return e;var y=Ee(null,null,a,g);Ve(e,dt,y),Je(y)}function ht(e,a,g){var y=e.result,S=e.keyPrefix,Z=e.func,Q=e.context,J=Z.call(Q,a,e.count++);Array.isArray(J)?Ie(J,y,g,s.thatReturnsArgument):J!=null&&(Ce(J)&&(J=me(J,S+(J.key&&(!a||a.key!==J.key)?qe(J.key)+"/":"")+g)),y.push(J))}function Ie(e,a,g,y,S){var Z="";g!=null&&(Z=qe(g)+"/");var Q=Ee(a,Z,y,S);Ve(e,ht,Q),Je(Q)}function vt(e,a,g){if(e==null)return e;var y=[];return Ie(e,y,null,a,g),y}function mt(e,a){return Ve(e,s.thatReturnsNull,null)}function gt(e){var a=[];return Ie(e,a,null,s.thatReturnsArgument),a}function Le(e){return Ce(e)||l(!1,"React.Children.only expected to receive a single React element child."),e}function Xe(e,a){a===void 0?a=null:a===null||typeof a=="function"||f(!1,"createContext: Expected the optional second argument to be a function. Instead received: %s",a);var g={$$typeof:P,_calculateChangedBits:a,_defaultValue:e,_currentValue:e,_changedBits:0,Provider:null,Consumer:null};return g.Provider={$$typeof:I,_context:g},g.Consumer=g,g._currentRenderer=null,g}function Te(e){return typeof e!="function"&&f(!1,"forwardRef requires a render function but was given %s.",e===null?"null":typeof e),{$$typeof:k,render:e}}var $e=function(e,a,g){return`
49
+ in `+(e||"Unknown")+(a?" (at "+a.fileName.replace(/^.*[\\\/]/,"")+":"+a.lineNumber+")":g?" (created by "+g+")":"")};function We(e){return typeof e=="string"||typeof e=="function"||e===M||e===b||e===z||typeof e=="object"&&e!==null&&(e.$$typeof===I||e.$$typeof===P||e.$$typeof===k)}function ze(e){var a=e.type;if(typeof a=="function")return a.displayName||a.name;if(typeof a=="string")return a;switch(a){case M:return"ReactFragment";case E:return"ReactPortal";case V:return"ReactCall";case C:return"ReactReturn"}if(typeof a=="object"&&a!==null)switch(a.$$typeof){case k:var g=a.render.displayName||a.render.name||"";return g!==""?"ForwardRef("+g+")":"ForwardRef"}return null}var xe=void 0,He=void 0,Ze=function(){},Oe=function(){};xe=null,He=!1,Ze=function(e){return e==null?"#empty":typeof e=="string"||typeof e=="number"?"#text":typeof e.type=="string"?e.type:e.type===M?"React.Fragment":e.type.displayName||e.type.name||"Unknown"},Oe=function(){var e="";if(xe){var a=Ze(xe),g=xe._owner;e+=$e(a,xe._source,g&&ze(g))}return e+=je.getStackAddendum()||"",e};function Ue(){if(U.current){var e=ze(U.current);if(e)return`
50
50
 
51
51
  Check the render method of \``+e+"`."}return""}function yt(e){if(e!=null&&e.__source!==void 0){var a=e.__source,g=a.fileName.replace(/^.*[\\\/]/,""),y=a.lineNumber;return`
52
52
 
53
53
  Check your code at `+g+":"+y+"."}return""}var Qe={};function et(e){var a=Ue();if(!a){var g=typeof e=="string"?e:e.displayName||e.name;g&&(a=`
54
54
 
55
- Check the top-level render call using <`+g+">.")}return a}function Be(e,a){if(!(!e._store||e._store.validated||e.key!=null)){e._store.validated=!0;var g=et(a);if(!Qe[g]){Qe[g]=!0;var y="";e&&e._owner&&e._owner!==Y.current&&(y=" It was passed a child from "+ze(e._owner)+"."),xe=e,f(!1,'Each child in an array or iterator should have a unique "key" prop.%s%s See https://fb.me/react-warning-keys for more information.%s',g,y,Oe()),xe=null}}}function tt(e,a){if(typeof e=="object"){if(Array.isArray(e))for(var g=0;g<e.length;g++){var y=e[g];Ce(y)&&Be(y,a)}else if(Ce(e))e._store&&(e._store.validated=!0);else if(e){var C=te(e);if(typeof C=="function"&&C!==e.entries)for(var X=C.call(e),Z=void 0;!(Z=X.next()).done;)Ce(Z.value)&&Be(Z.value,a)}}}function nt(e){var a=e.type;if(typeof a=="function"){var g=a.displayName||a.name,y=a.propTypes;y?(xe=e,p(y,e.props,"prop",g,Oe),xe=null):a.PropTypes!==void 0&&!He&&(He=!0,f(!1,"Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",g||"Unknown")),typeof a.getDefaultProps=="function"&&(a.getDefaultProps.isReactClassApproved||f(!1,"getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead."))}}function bt(e){xe=e;for(var a=Object.keys(e.props),g=0;g<a.length;g++){var y=a[g];if(y!=="children"&&y!=="key"){f(!1,"Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.%s",y,Oe());break}}e.ref!==null&&f(!1,"Invalid attribute `ref` supplied to `React.Fragment`.%s",Oe()),xe=null}function rt(e,a,g){var y=We(e);if(!y){var C="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(C+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var X=yt(a);X?C+=X:C+=Ue(),C+=Oe()||"";var Z=void 0;e===null?Z="null":Array.isArray(e)?Z="array":Z=typeof e,f(!1,"React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Z,C)}var J=re.apply(this,arguments);if(J==null)return J;if(y)for(var ie=2;ie<arguments.length;ie++)tt(arguments[ie],e);return e===V?bt(J):nt(J),J}function t(e){var a=rt.bind(null,e);return a.type=e,Object.defineProperty(a,"type",{enumerable:!1,get:function(){return Q(!1,"Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:e}),e}}),a}function b(e,a,g){for(var y=he.apply(this,arguments),C=2;C<arguments.length;C++)tt(arguments[C],y.type);return nt(y),y}var P={Children:{map:vt,forEach:pt,count:mt,toArray:gt,only:Le},createRef:z,Component:ce,PureComponent:pe,createContext:Xe,forwardRef:Te,Fragment:V,StrictMode:_,unstable_AsyncMode:x,createElement:rt,cloneElement:b,createFactory:t,isValidElement:Ce,version:O,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentOwner:Y,assign:u}};u(P.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,{ReactDebugCurrentFrame:je,ReactComponentTreeHook:{}});var W=Object.freeze({default:P}),ee=W&&P||W,ae=ee.default?ee.default:ee;c.exports=ae}()},function(c,l,d){if(process.env.NODE_ENV!=="production"){var u=typeof Symbol=="function"&&Symbol.for&&Symbol.for("react.element")||60103,s=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===u},h=!0;c.exports=d(12)(s,h)}else c.exports=d(13)()},function(c,l,d){var u=d(1),s=d(0),h=d(3),f=d(2),o=d(4),p=d(6);c.exports=function(O,j){var D=typeof Symbol=="function"&&Symbol.iterator,A="@@iterator";function T(w){var z=w&&(D&&w[D]||w[A]);if(typeof z=="function")return z}var L="<<anonymous>>",V={array:x("array"),bool:x("boolean"),func:x("function"),number:x("number"),object:x("object"),string:x("string"),symbol:x("symbol"),any:S(),arrayOf:k,element:$(),instanceOf:te,node:ne(),objectOf:N,oneOf:q,oneOfType:Q,shape:oe,exact:de};function _(w,z){return w===z?w!==0||1/w===1/z:w!==w&&z!==z}function I(w){this.message=w,this.stack=""}I.prototype=Error.prototype;function R(w){if(process.env.NODE_ENV!=="production")var z={},Y=0;function K(i,m,M,E,H,U,se){if(E=E||L,U=U||M,se!==o){if(j)s(!1,"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");else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var re=E+":"+M;!z[re]&&Y<3&&(h(!1,"You are manually calling a React.PropTypes validation function for the `%s` prop on `%s`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details.",U,E),z[re]=!0,Y++)}}return m[M]==null?i?m[M]===null?new I("The "+H+" `"+U+"` is marked as required "+("in `"+E+"`, but its value is `null`.")):new I("The "+H+" `"+U+"` is marked as required in "+("`"+E+"`, but its value is `undefined`.")):null:w(m,M,E,H,U)}var B=K.bind(null,!1);return B.isRequired=K.bind(null,!0),B}function x(w){function z(Y,K,B,i,m,M){var E=Y[K],H=ue(E);if(H!==w){var U=G(E);return new I("Invalid "+i+" `"+m+"` of type "+("`"+U+"` supplied to `"+B+"`, expected ")+("`"+w+"`."))}return null}return R(z)}function S(){return R(u.thatReturnsNull)}function k(w){function z(Y,K,B,i,m){if(typeof w!="function")return new I("Property `"+m+"` of component `"+B+"` has invalid PropType notation inside arrayOf.");var M=Y[K];if(!Array.isArray(M)){var E=ue(M);return new I("Invalid "+i+" `"+m+"` of type "+("`"+E+"` supplied to `"+B+"`, expected an array."))}for(var H=0;H<M.length;H++){var U=w(M,H,B,i,m+"["+H+"]",o);if(U instanceof Error)return U}return null}return R(z)}function $(){function w(z,Y,K,B,i){var m=z[Y];if(!O(m)){var M=ue(m);return new I("Invalid "+B+" `"+i+"` of type "+("`"+M+"` supplied to `"+K+"`, expected a single ReactElement."))}return null}return R(w)}function te(w){function z(Y,K,B,i,m){if(!(Y[K]instanceof w)){var M=w.name||L,E=pe(Y[K]);return new I("Invalid "+i+" `"+m+"` of type "+("`"+E+"` supplied to `"+B+"`, expected ")+("instance of `"+M+"`."))}return null}return R(z)}function q(w){if(!Array.isArray(w))return process.env.NODE_ENV!=="production"&&h(!1,"Invalid argument supplied to oneOf, expected an instance of array."),u.thatReturnsNull;function z(Y,K,B,i,m){for(var M=Y[K],E=0;E<w.length;E++)if(_(M,w[E]))return null;var H=JSON.stringify(w);return new I("Invalid "+i+" `"+m+"` of value `"+M+"` "+("supplied to `"+B+"`, expected one of "+H+"."))}return R(z)}function N(w){function z(Y,K,B,i,m){if(typeof w!="function")return new I("Property `"+m+"` of component `"+B+"` has invalid PropType notation inside objectOf.");var M=Y[K],E=ue(M);if(E!=="object")return new I("Invalid "+i+" `"+m+"` of type "+("`"+E+"` supplied to `"+B+"`, expected an object."));for(var H in M)if(M.hasOwnProperty(H)){var U=w(M,H,B,i,m+"."+H,o);if(U instanceof Error)return U}return null}return R(z)}function Q(w){if(!Array.isArray(w))return process.env.NODE_ENV!=="production"&&h(!1,"Invalid argument supplied to oneOfType, expected an instance of array."),u.thatReturnsNull;for(var z=0;z<w.length;z++){var Y=w[z];if(typeof Y!="function")return h(!1,"Invalid argument supplied to oneOfType. Expected an array of check functions, but received %s at index %s.",fe(Y),z),u.thatReturnsNull}function K(B,i,m,M,E){for(var H=0;H<w.length;H++){var U=w[H];if(U(B,i,m,M,E,o)==null)return null}return new I("Invalid "+M+" `"+E+"` supplied to "+("`"+m+"`."))}return R(K)}function ne(){function w(z,Y,K,B,i){return ce(z[Y])?null:new I("Invalid "+B+" `"+i+"` supplied to "+("`"+K+"`, expected a ReactNode."))}return R(w)}function oe(w){function z(Y,K,B,i,m){var M=Y[K],E=ue(M);if(E!=="object")return new I("Invalid "+i+" `"+m+"` of type `"+E+"` "+("supplied to `"+B+"`, expected `object`."));for(var H in w){var U=w[H];if(U){var se=U(M,H,B,i,m+"."+H,o);if(se)return se}}return null}return R(z)}function de(w){function z(Y,K,B,i,m){var M=Y[K],E=ue(M);if(E!=="object")return new I("Invalid "+i+" `"+m+"` of type `"+E+"` "+("supplied to `"+B+"`, expected `object`."));var H=f({},Y[K],w);for(var U in H){var se=w[U];if(!se)return new I("Invalid "+i+" `"+m+"` key `"+U+"` supplied to `"+B+"`.\nBad object: "+JSON.stringify(Y[K],null," ")+`
56
- Valid keys: `+JSON.stringify(Object.keys(w),null," "));var re=se(M,U,B,i,m+"."+U,o);if(re)return re}return null}return R(z)}function ce(w){switch(typeof w){case"number":case"string":case"undefined":return!0;case"boolean":return!w;case"object":if(Array.isArray(w))return w.every(ce);if(w===null||O(w))return!0;var z=T(w);if(z){var Y=z.call(w),K;if(z!==w.entries){for(;!(K=Y.next()).done;)if(!ce(K.value))return!1}else for(;!(K=Y.next()).done;){var B=K.value;if(B&&!ce(B[1]))return!1}}else return!1;return!0;default:return!1}}function ve(w,z){return w==="symbol"||z["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&z instanceof Symbol}function ue(w){var z=typeof w;return Array.isArray(w)?"array":w instanceof RegExp?"object":ve(z,w)?"symbol":z}function G(w){if(typeof w>"u"||w===null)return""+w;var z=ue(w);if(z==="object"){if(w instanceof Date)return"date";if(w instanceof RegExp)return"regexp"}return z}function fe(w){var z=G(w);switch(z){case"array":case"object":return"an "+z;case"boolean":case"date":case"regexp":return"a "+z;default:return z}}function pe(w){return!w.constructor||!w.constructor.name?L:w.constructor.name}return V.checkPropTypes=p,V.PropTypes=V,V}},function(c,l,d){var u=d(1),s=d(0),h=d(4);c.exports=function(){function f(O,j,D,A,T,L){L!==h&&s(!1,"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")}f.isRequired=f;function o(){return f}var p={array:f,bool:f,func:f,number:f,object:f,string:f,symbol:f,any:f,arrayOf:o,element:f,instanceOf:o,node:f,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o};return p.checkPropTypes=u,p.PropTypes=p,p}},function(c,l,d){Object.defineProperty(l,"__esModule",{value:!0});var u=d(15);Object.defineProperty(l,"blank",{enumerable:!0,get:function(){return A(u).default}});var s=d(16);Object.defineProperty(l,"balls",{enumerable:!0,get:function(){return A(s).default}});var h=d(17);Object.defineProperty(l,"bars",{enumerable:!0,get:function(){return A(h).default}});var f=d(18);Object.defineProperty(l,"bubbles",{enumerable:!0,get:function(){return A(f).default}});var o=d(19);Object.defineProperty(l,"cubes",{enumerable:!0,get:function(){return A(o).default}});var p=d(20);Object.defineProperty(l,"cylon",{enumerable:!0,get:function(){return A(p).default}});var O=d(21);Object.defineProperty(l,"spin",{enumerable:!0,get:function(){return A(O).default}});var j=d(22);Object.defineProperty(l,"spinningBubbles",{enumerable:!0,get:function(){return A(j).default}});var D=d(23);Object.defineProperty(l,"spokes",{enumerable:!0,get:function(){return A(D).default}});function A(T){return T&&T.__esModule?T:{default:T}}},function(c,l){c.exports=`<svg class="icon-blank" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"></svg>
57
- `},function(c,l){c.exports=`<svg class="icon-loading" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
55
+ Check the top-level render call using <`+g+">.")}return a}function Be(e,a){if(!(!e._store||e._store.validated||e.key!=null)){e._store.validated=!0;var g=et(a);if(!Qe[g]){Qe[g]=!0;var y="";e&&e._owner&&e._owner!==U.current&&(y=" It was passed a child from "+ze(e._owner)+"."),xe=e,f(!1,'Each child in an array or iterator should have a unique "key" prop.%s%s See https://fb.me/react-warning-keys for more information.%s',g,y,Oe()),xe=null}}}function tt(e,a){if(typeof e=="object"){if(Array.isArray(e))for(var g=0;g<e.length;g++){var y=e[g];Ce(y)&&Be(y,a)}else if(Ce(e))e._store&&(e._store.validated=!0);else if(e){var S=ee(e);if(typeof S=="function"&&S!==e.entries)for(var Z=S.call(e),Q=void 0;!(Q=Z.next()).done;)Ce(Q.value)&&Be(Q.value,a)}}}function nt(e){var a=e.type;if(typeof a=="function"){var g=a.displayName||a.name,y=a.propTypes;y?(xe=e,h(y,e.props,"prop",g,Oe),xe=null):a.PropTypes!==void 0&&!He&&(He=!0,f(!1,"Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",g||"Unknown")),typeof a.getDefaultProps=="function"&&(a.getDefaultProps.isReactClassApproved||f(!1,"getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead."))}}function bt(e){xe=e;for(var a=Object.keys(e.props),g=0;g<a.length;g++){var y=a[g];if(y!=="children"&&y!=="key"){f(!1,"Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.%s",y,Oe());break}}e.ref!==null&&f(!1,"Invalid attribute `ref` supplied to `React.Fragment`.%s",Oe()),xe=null}function rt(e,a,g){var y=We(e);if(!y){var S="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(S+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Z=yt(a);Z?S+=Z:S+=Ue(),S+=Oe()||"";var Q=void 0;e===null?Q="null":Array.isArray(e)?Q="array":Q=typeof e,f(!1,"React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Q,S)}var J=ae.apply(this,arguments);if(J==null)return J;if(y)for(var se=2;se<arguments.length;se++)tt(arguments[se],e);return e===M?bt(J):nt(J),J}function t(e){var a=rt.bind(null,e);return a.type=e,Object.defineProperty(a,"type",{enumerable:!1,get:function(){return X(!1,"Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:e}),e}}),a}function x(e,a,g){for(var y=ve.apply(this,arguments),S=2;S<arguments.length;S++)tt(arguments[S],y.type);return nt(y),y}var A={Children:{map:vt,forEach:pt,count:mt,toArray:gt,only:Le},createRef:L,Component:ne,PureComponent:pe,createContext:Xe,forwardRef:Te,Fragment:M,StrictMode:z,unstable_AsyncMode:b,createElement:rt,cloneElement:x,createFactory:t,isValidElement:Ce,version:N,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentOwner:U,assign:u}};u(A.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,{ReactDebugCurrentFrame:je,ReactComponentTreeHook:{}});var B=Object.freeze({default:A}),te=B&&A||B,ie=te.default?te.default:te;o.exports=ie}()},function(o,c,d){if(process.env.NODE_ENV!=="production"){var u=typeof Symbol=="function"&&Symbol.for&&Symbol.for("react.element")||60103,l=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===u},v=!0;o.exports=d(12)(l,v)}else o.exports=d(13)()},function(o,c,d){var u=d(1),l=d(0),v=d(3),f=d(2),s=d(4),h=d(6);o.exports=function(N,j){var _=typeof Symbol=="function"&&Symbol.iterator,V="@@iterator";function C(w){var L=w&&(_&&w[_]||w[V]);if(typeof L=="function")return L}var E="<<anonymous>>",M={array:b("array"),bool:b("boolean"),func:b("function"),number:b("number"),object:b("object"),string:b("string"),symbol:b("symbol"),any:k(),arrayOf:T,element:$(),instanceOf:ee,node:re(),objectOf:O,oneOf:W,oneOfType:X,shape:ue,exact:fe};function z(w,L){return w===L?w!==0||1/w===1/L:w!==w&&L!==L}function I(w){this.message=w,this.stack=""}I.prototype=Error.prototype;function P(w){if(process.env.NODE_ENV!=="production")var L={},U=0;function G(i,m,H,R,F,K,le){if(R=R||E,K=K||H,le!==s){if(j)l(!1,"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");else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var ae=R+":"+H;!L[ae]&&U<3&&(v(!1,"You are manually calling a React.PropTypes validation function for the `%s` prop on `%s`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details.",K,R),L[ae]=!0,U++)}}return m[H]==null?i?m[H]===null?new I("The "+F+" `"+K+"` is marked as required "+("in `"+R+"`, but its value is `null`.")):new I("The "+F+" `"+K+"` is marked as required in "+("`"+R+"`, but its value is `undefined`.")):null:w(m,H,R,F,K)}var Y=G.bind(null,!1);return Y.isRequired=G.bind(null,!0),Y}function b(w){function L(U,G,Y,i,m,H){var R=U[G],F=ce(R);if(F!==w){var K=q(R);return new I("Invalid "+i+" `"+m+"` of type "+("`"+K+"` supplied to `"+Y+"`, expected ")+("`"+w+"`."))}return null}return P(L)}function k(){return P(u.thatReturnsNull)}function T(w){function L(U,G,Y,i,m){if(typeof w!="function")return new I("Property `"+m+"` of component `"+Y+"` has invalid PropType notation inside arrayOf.");var H=U[G];if(!Array.isArray(H)){var R=ce(H);return new I("Invalid "+i+" `"+m+"` of type "+("`"+R+"` supplied to `"+Y+"`, expected an array."))}for(var F=0;F<H.length;F++){var K=w(H,F,Y,i,m+"["+F+"]",s);if(K instanceof Error)return K}return null}return P(L)}function $(){function w(L,U,G,Y,i){var m=L[U];if(!N(m)){var H=ce(m);return new I("Invalid "+Y+" `"+i+"` of type "+("`"+H+"` supplied to `"+G+"`, expected a single ReactElement."))}return null}return P(w)}function ee(w){function L(U,G,Y,i,m){if(!(U[G]instanceof w)){var H=w.name||E,R=pe(U[G]);return new I("Invalid "+i+" `"+m+"` of type "+("`"+R+"` supplied to `"+Y+"`, expected ")+("instance of `"+H+"`."))}return null}return P(L)}function W(w){if(!Array.isArray(w))return process.env.NODE_ENV!=="production"&&v(!1,"Invalid argument supplied to oneOf, expected an instance of array."),u.thatReturnsNull;function L(U,G,Y,i,m){for(var H=U[G],R=0;R<w.length;R++)if(z(H,w[R]))return null;var F=JSON.stringify(w);return new I("Invalid "+i+" `"+m+"` of value `"+H+"` "+("supplied to `"+Y+"`, expected one of "+F+"."))}return P(L)}function O(w){function L(U,G,Y,i,m){if(typeof w!="function")return new I("Property `"+m+"` of component `"+Y+"` has invalid PropType notation inside objectOf.");var H=U[G],R=ce(H);if(R!=="object")return new I("Invalid "+i+" `"+m+"` of type "+("`"+R+"` supplied to `"+Y+"`, expected an object."));for(var F in H)if(H.hasOwnProperty(F)){var K=w(H,F,Y,i,m+"."+F,s);if(K instanceof Error)return K}return null}return P(L)}function X(w){if(!Array.isArray(w))return process.env.NODE_ENV!=="production"&&v(!1,"Invalid argument supplied to oneOfType, expected an instance of array."),u.thatReturnsNull;for(var L=0;L<w.length;L++){var U=w[L];if(typeof U!="function")return v(!1,"Invalid argument supplied to oneOfType. Expected an array of check functions, but received %s at index %s.",de(U),L),u.thatReturnsNull}function G(Y,i,m,H,R){for(var F=0;F<w.length;F++){var K=w[F];if(K(Y,i,m,H,R,s)==null)return null}return new I("Invalid "+H+" `"+R+"` supplied to "+("`"+m+"`."))}return P(G)}function re(){function w(L,U,G,Y,i){return ne(L[U])?null:new I("Invalid "+Y+" `"+i+"` supplied to "+("`"+G+"`, expected a ReactNode."))}return P(w)}function ue(w){function L(U,G,Y,i,m){var H=U[G],R=ce(H);if(R!=="object")return new I("Invalid "+i+" `"+m+"` of type `"+R+"` "+("supplied to `"+Y+"`, expected `object`."));for(var F in w){var K=w[F];if(K){var le=K(H,F,Y,i,m+"."+F,s);if(le)return le}}return null}return P(L)}function fe(w){function L(U,G,Y,i,m){var H=U[G],R=ce(H);if(R!=="object")return new I("Invalid "+i+" `"+m+"` of type `"+R+"` "+("supplied to `"+Y+"`, expected `object`."));var F=f({},U[G],w);for(var K in F){var le=w[K];if(!le)return new I("Invalid "+i+" `"+m+"` key `"+K+"` supplied to `"+Y+"`.\nBad object: "+JSON.stringify(U[G],null," ")+`
56
+ Valid keys: `+JSON.stringify(Object.keys(w),null," "));var ae=le(H,K,Y,i,m+"."+K,s);if(ae)return ae}return null}return P(L)}function ne(w){switch(typeof w){case"number":case"string":case"undefined":return!0;case"boolean":return!w;case"object":if(Array.isArray(w))return w.every(ne);if(w===null||N(w))return!0;var L=C(w);if(L){var U=L.call(w),G;if(L!==w.entries){for(;!(G=U.next()).done;)if(!ne(G.value))return!1}else for(;!(G=U.next()).done;){var Y=G.value;if(Y&&!ne(Y[1]))return!1}}else return!1;return!0;default:return!1}}function he(w,L){return w==="symbol"||L["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&L instanceof Symbol}function ce(w){var L=typeof w;return Array.isArray(w)?"array":w instanceof RegExp?"object":he(L,w)?"symbol":L}function q(w){if(typeof w>"u"||w===null)return""+w;var L=ce(w);if(L==="object"){if(w instanceof Date)return"date";if(w instanceof RegExp)return"regexp"}return L}function de(w){var L=q(w);switch(L){case"array":case"object":return"an "+L;case"boolean":case"date":case"regexp":return"a "+L;default:return L}}function pe(w){return!w.constructor||!w.constructor.name?E:w.constructor.name}return M.checkPropTypes=h,M.PropTypes=M,M}},function(o,c,d){var u=d(1),l=d(0),v=d(4);o.exports=function(){function f(N,j,_,V,C,E){E!==v&&l(!1,"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")}f.isRequired=f;function s(){return f}var h={array:f,bool:f,func:f,number:f,object:f,string:f,symbol:f,any:f,arrayOf:s,element:f,instanceOf:s,node:f,objectOf:s,oneOf:s,oneOfType:s,shape:s,exact:s};return h.checkPropTypes=u,h.PropTypes=h,h}},function(o,c,d){Object.defineProperty(c,"__esModule",{value:!0});var u=d(15);Object.defineProperty(c,"blank",{enumerable:!0,get:function(){return V(u).default}});var l=d(16);Object.defineProperty(c,"balls",{enumerable:!0,get:function(){return V(l).default}});var v=d(17);Object.defineProperty(c,"bars",{enumerable:!0,get:function(){return V(v).default}});var f=d(18);Object.defineProperty(c,"bubbles",{enumerable:!0,get:function(){return V(f).default}});var s=d(19);Object.defineProperty(c,"cubes",{enumerable:!0,get:function(){return V(s).default}});var h=d(20);Object.defineProperty(c,"cylon",{enumerable:!0,get:function(){return V(h).default}});var N=d(21);Object.defineProperty(c,"spin",{enumerable:!0,get:function(){return V(N).default}});var j=d(22);Object.defineProperty(c,"spinningBubbles",{enumerable:!0,get:function(){return V(j).default}});var _=d(23);Object.defineProperty(c,"spokes",{enumerable:!0,get:function(){return V(_).default}});function V(C){return C&&C.__esModule?C:{default:C}}},function(o,c){o.exports=`<svg class="icon-blank" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"></svg>
57
+ `},function(o,c){o.exports=`<svg class="icon-loading" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
58
58
  <path transform="translate(-8 0)" d="M4 12 A4 4 0 0 0 4 20 A4 4 0 0 0 4 12">
59
59
  <animateTransform attributeName="transform" type="translate" values="-8 0; 2 0; 2 0;" dur="0.8s" repeatCount="indefinite" begin="0" keytimes="0;.25;1" keySplines="0.2 0.2 0.4 0.8;0.2 0.6 0.4 0.8" calcMode="spline" />
60
60
  </path>
@@ -68,7 +68,7 @@ Valid keys: `+JSON.stringify(Object.keys(w),null," "));var re=se(M,U,B,i,m+"."+
68
68
  <animateTransform attributeName="transform" type="translate" values="22 0; 32 0; 32 0;" dur="0.8s" repeatCount="indefinite" begin="0" keytimes="0;.55;1" keySplines="0.2 0.2 0.4 0.8;0.2 0.6 0.4 0.8" calcMode="spline" />
69
69
  </path>
70
70
  </svg>
71
- `},function(c,l){c.exports=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
71
+ `},function(o,c){o.exports=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
72
72
  <path transform="translate(2)" d="M0 12 V20 H4 V12z">
73
73
  <animate attributeName="d" values="M0 12 V20 H4 V12z; M0 4 V28 H4 V4z; M0 12 V20 H4 V12z; M0 12 V20 H4 V12z" dur="1.2s" repeatCount="indefinite" begin="0" keytimes="0;.2;.5;1" keySplines="0.2 0.2 0.4 0.8;0.2 0.6 0.4 0.8;0.2 0.8 0.4 0.8" calcMode="spline" />
74
74
  </path>
@@ -85,7 +85,7 @@ Valid keys: `+JSON.stringify(Object.keys(w),null," "));var re=se(M,U,B,i,m+"."+
85
85
  <animate attributeName="d" values="M0 12 V20 H4 V12z; M0 4 V28 H4 V4z; M0 12 V20 H4 V12z; M0 12 V20 H4 V12z" dur="1.2s" repeatCount="indefinite" begin="0.8" keytimes="0;.2;.5;1" keySplines="0.2 0.2 0.4 0.8;0.2 0.6 0.4 0.8;0.2 0.8 0.4 0.8" calcMode="spline" />
86
86
  </path>
87
87
  </svg>
88
- `},function(c,l){c.exports=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
88
+ `},function(o,c){o.exports=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
89
89
  <circle transform="translate(8 0)" cx="0" cy="16" r="0">
90
90
  <animate attributeName="r" values="0; 4; 0; 0" dur="1.2s" repeatCount="indefinite" begin="0"
91
91
  keytimes="0;0.2;0.7;1" keySplines="0.2 0.2 0.4 0.8;0.2 0.6 0.4 0.8;0.2 0.6 0.4 0.8" calcMode="spline" />
@@ -99,7 +99,7 @@ Valid keys: `+JSON.stringify(Object.keys(w),null," "));var re=se(M,U,B,i,m+"."+
99
99
  keytimes="0;0.2;0.7;1" keySplines="0.2 0.2 0.4 0.8;0.2 0.6 0.4 0.8;0.2 0.6 0.4 0.8" calcMode="spline" />
100
100
  </circle>
101
101
  </svg>
102
- `},function(c,l){c.exports=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
102
+ `},function(o,c){o.exports=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
103
103
  <path transform="translate(-8 0)" d="M0 12 V20 H8 V12z">
104
104
  <animateTransform attributeName="transform" type="translate" values="-8 0; 2 0; 2 0;" dur="0.8s" repeatCount="indefinite" begin="0" keytimes="0;.25;1" keySplines="0.2 0.2 0.4 0.8;0.2 0.6 0.4 0.8" calcMode="spline" />
105
105
  </path>
@@ -113,7 +113,7 @@ Valid keys: `+JSON.stringify(Object.keys(w),null," "));var re=se(M,U,B,i,m+"."+
113
113
  <animateTransform attributeName="transform" type="translate" values="22 0; 32 0; 32 0;" dur="0.8s" repeatCount="indefinite" begin="0" keytimes="0;.55;1" keySplines="0.2 0.2 0.4 0.8;0.2 0.6 0.4 0.8" calcMode="spline" />
114
114
  </path>
115
115
  </svg>
116
- `},function(c,l){c.exports=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
116
+ `},function(o,c){o.exports=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
117
117
  <path transform="translate(0 0)" d="M0 12 V20 H4 V12z">
118
118
  <animateTransform attributeName="transform" type="translate" values="0 0; 28 0; 0 0; 0 0" dur="1.5s" begin="0" repeatCount="indefinite" keytimes="0;0.3;0.6;1" keySplines="0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8" calcMode="spline" />
119
119
  </path>
@@ -124,13 +124,13 @@ Valid keys: `+JSON.stringify(Object.keys(w),null," "));var re=se(M,U,B,i,m+"."+
124
124
  <animateTransform attributeName="transform" type="translate" values="0 0; 28 0; 0 0; 0 0" dur="1.5s" begin="0.2s" repeatCount="indefinite" keytimes="0;0.3;0.6;1" keySplines="0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8" calcMode="spline" />
125
125
  </path>
126
126
  </svg>
127
- `},function(c,l){c.exports=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
127
+ `},function(o,c){o.exports=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
128
128
  <path opacity=".25" d="M16 0 A16 16 0 0 0 16 32 A16 16 0 0 0 16 0 M16 4 A12 12 0 0 1 16 28 A12 12 0 0 1 16 4"/>
129
129
  <path d="M16 0 A16 16 0 0 1 32 16 L28 16 A12 12 0 0 0 16 4z">
130
130
  <animateTransform attributeName="transform" type="rotate" from="0 16 16" to="360 16 16" dur="0.8s" repeatCount="indefinite" />
131
131
  </path>
132
132
  </svg>
133
- `},function(c,l){c.exports=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
133
+ `},function(o,c){o.exports=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
134
134
  <circle cx="16" cy="3" r="0">
135
135
  <animate attributeName="r" values="0;3;0;0" dur="1s" repeatCount="indefinite" begin="0" keySplines="0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8" calcMode="spline" />
136
136
  </circle>
@@ -159,7 +159,7 @@ Valid keys: `+JSON.stringify(Object.keys(w),null," "));var re=se(M,U,B,i,m+"."+
159
159
  <animate attributeName="r" values="0;3;0;0" dur="1s" repeatCount="indefinite" begin="0.5s" keySplines="0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8" calcMode="spline" />
160
160
  </circle>
161
161
  </svg>
162
- `},function(c,l){c.exports=`<svg id="loading" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
162
+ `},function(o,c){o.exports=`<svg id="loading" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
163
163
  <path opacity=".1" d="M14 0 H18 V8 H14 z" transform="rotate(0 16 16)">
164
164
  <animate attributeName="opacity" from="1" to=".1" dur="1s" repeatCount="indefinite" begin="0"/>
165
165
  </path>
@@ -185,4 +185,4 @@ Valid keys: `+JSON.stringify(Object.keys(w),null," "));var re=se(M,U,B,i,m+"."+
185
185
  <animate attributeName="opacity" from="1" to=".1" dur="1s" repeatCount="indefinite" begin="0.875s"/>
186
186
  </path>
187
187
  </svg>
188
- `}])})})(Dt);var Nn=Dt.exports;const kn=jt(Nn),Mn=({isLoading:n})=>{if(n)return r.jsx("div",{className:"fm-loader",children:r.jsx(kn,{color:"black",type:"spokes",height:50,width:50})})},_n=({files:n,onCreateFolder:v,onRename:c,onDelete:l,onPaste:d,onRefresh:u,isLoading:s,allowedFileExtensions:h})=>{const f=yn(),[o,p]=F.useState(!1),[O,j]=F.useState(null),[D,A]=F.useState(""),[T,L]=F.useState([]),[V,_]=F.useState(null);F.useEffect(()=>{L(()=>n==null?void 0:n.filter(N=>N.path===D))},[n,D]);const[I,R]=F.useState({col1:"20",col2:"80"}),[x,S]=F.useState(!1),k=F.useRef(null),$=()=>{S(!0)},te=()=>{S(!1)},q=N=>{if(!x)return;N.preventDefault();const ne=k.current.getBoundingClientRect(),oe=(N.clientX-ne.left)/ne.width*100;oe>=15&&oe<=60&&R({col1:oe,col2:100-oe})};return r.jsxs("main",{className:"file-explorer",children:[r.jsx(Mn,{isLoading:s}),r.jsx(ln,{allowCreateFolder:!0,allowUploadFile:!0,handleRefresh:u,isItemSelection:o,setIsItemSelection:p,currentPath:D,selectedFile:O,setSelectedFile:j,files:n,clipBoard:V,setClipBoard:_,handlePaste:d,triggerAction:f}),r.jsxs("section",{ref:k,onMouseMove:q,onMouseUp:te,className:"files-container",children:[r.jsxs("div",{className:"navigation-pane",style:{width:I.col1+"%"},children:[r.jsx(fn,{files:n,currentPath:D,setCurrentPath:A}),r.jsx("div",{className:`sidebar-resize ${x?"sidebar-dragging":""}`,onMouseDown:$})]}),r.jsxs("div",{className:"folers-preview",style:{width:I.col2+"%"},children:[r.jsx(dn,{currentPath:D,setCurrentPath:A}),r.jsx(gn,{currentPathFiles:T,setCurrentPath:A,isItemSelection:o,setIsItemSelection:p,setSelectedFile:j,currentPath:D,clipBoard:V,setClipBoard:_,handlePaste:d,files:n,triggerAction:f})]})]}),r.jsx(Rn,{files:n,currentPath:D,currentPathFiles:T,selectedFile:O,triggerAction:f,handleCreateFolder:v,handleRename:c,handleDelete:l,setIsItemSelection:p,setSelectedFile:j,allowedFileExtensions:h})]})};Se.FileManager=_n,Object.defineProperty(Se,Symbol.toStringTag,{value:"Module"})});
188
+ `}])})})(Dt);var _n=Dt.exports;const Ft=jt(_n),An=({fileUploadConfig:n,allowedFileExtensions:p,handleFileUploading:o,handleFileUploaded:c,currentFolder:d})=>{const[u,l]=D.useState([]),[v,f]=D.useState(!1),[s,h]=D.useState({}),N=_=>{_.preventDefault(),f(!1);const V=Array.from(_.dataTransfer.files);if(V.length>0){const C=V.map(E=>{const M=o(E,d);return{file:E,appendData:M}});l(E=>[...E,...C])}},j=_=>{const V=Array.from(_.target.files);if(V.length>0){const C=V.map(E=>{const M=o(E,d);return{file:E,appendData:M}});l(E=>[...E,...C])}};return r.jsxs("div",{className:`fm-upload-file ${u.length>0?"file-selcted":""}`,children:[r.jsxs("div",{className:"select-files",children:[r.jsx("div",{className:`draggable-file-input ${v?"dragging":""}`,onDrop:N,onDragOver:_=>_.preventDefault(),onDragEnter:()=>f(!0),onDragLeave:()=>f(!1),children:r.jsxs("div",{className:"input-text",children:[r.jsx(Sn,{size:30}),r.jsx("span",{children:"Drag files to upload"})]})}),r.jsx("div",{className:"btn-choose-file",children:r.jsxs(Pe,{padding:"0",children:[r.jsx("label",{htmlFor:"chooseFile",children:"Choose File"}),r.jsx("input",{type:"file",id:"chooseFile",className:"choose-file-input",onChange:j,multiple:!0,accept:p})]})})]}),u.length>0&&r.jsxs("div",{className:"files-progress",children:[r.jsx("div",{className:"heading",children:Object.values(s).some(_=>_)?r.jsxs(r.Fragment,{children:[r.jsx("h2",{children:"Uploading"}),r.jsx(Ft,{type:"cylon",color:"black",height:18,width:20})]}):r.jsx("h2",{children:"Completed"})}),r.jsx("ul",{children:u.map((_,V)=>r.jsx(Mn,{index:V,fileData:_,fileUploadConfig:n,setIsUploading:h,handleFileUploaded:c},V))})]})]})},Vn=({files:n,fileUploadConfig:p,triggerAction:o,currentPath:c,currentPathFiles:d,selectedFile:u,setSelectedFile:l,handleCreateFolder:v,handleFileUploading:f,handleFileUploaded:s,currentFolder:h,handleRename:N,setIsItemSelection:j,handleDelete:_,allowedFileExtensions:V})=>{const[C,E]=D.useState(null),M={createFolder:{title:"Create Folder",component:r.jsx(wn,{files:n,currentPath:c,currentPathFiles:d,triggerAction:o,handleCreateFolder:v,currentFolder:h}),width:"25%"},uploadFile:{title:"Upload File",component:r.jsx(An,{fileUploadConfig:p,allowedFileExtensions:V,handleFileUploading:f,handleFileUploaded:s,currentFolder:h}),width:"35%"},rename:{title:"Rename",component:r.jsx(On,{files:n,selectedFile:u,currentPathFiles:d,triggerAction:o,handleRename:N,setSelectedFile:l}),width:"25%"},delete:{title:"Delete",component:r.jsx(En,{files:n,selectedFile:u,triggerAction:o,handleDelete:_,setIsItemSelection:j,setSelectedFile:l}),width:"25%"},preview:{title:"Preview"}};return D.useEffect(()=>{if(o.isActive){const z=o.actionType;E(M[z])}else E(null)},[o.isActive]),r.jsx(jn,{heading:C==null?void 0:C.title,show:o.isActive,setShow:o.close,dialogWidth:C==null?void 0:C.width,children:C==null?void 0:C.component})},zn=({isLoading:n})=>{if(n)return r.jsx("div",{className:"fm-loader",children:r.jsx(Ft,{color:"black",type:"spokes",height:50,width:50})})},Hn=({files:n,fileUploadConfig:p,isLoading:o,onCreateFolder:c,onFileUploading:d,onFileUploaded:u,onRename:l,onDelete:v,onPaste:f,onRefresh:s,allowedFileExtensions:h})=>{const N=xn(),[j,_]=D.useState(!1),[V,C]=D.useState(null),[E,M]=D.useState(""),[z,I]=D.useState(null),[P,b]=D.useState([]),[k,T]=D.useState(null);D.useEffect(()=>{b(()=>n==null?void 0:n.filter(ne=>ne.path===`${E}/${ne.name}`)),I(()=>n==null?void 0:n.find(ne=>ne.path===E))},[n,E]);const[$,ee]=D.useState({col1:"20",col2:"80"}),[W,O]=D.useState(!1),X=D.useRef(null),re=()=>{O(!0)},ue=()=>{O(!1)},fe=ne=>{if(!W)return;ne.preventDefault();const ce=X.current.getBoundingClientRect(),q=(ne.clientX-ce.left)/ce.width*100;q>=15&&q<=60&&ee({col1:q,col2:100-q})};return r.jsxs("main",{className:"file-explorer",children:[r.jsx(zn,{isLoading:o}),r.jsx(cn,{allowCreateFolder:!0,allowUploadFile:!0,handleRefresh:s,isItemSelection:j,setIsItemSelection:_,currentPath:E,selectedFile:V,setSelectedFile:C,files:n,clipBoard:k,setClipBoard:T,handlePaste:f,triggerAction:N}),r.jsxs("section",{ref:X,onMouseMove:fe,onMouseUp:ue,className:"files-container",children:[r.jsxs("div",{className:"navigation-pane",style:{width:$.col1+"%"},children:[r.jsx(pn,{files:n,currentPath:E,setCurrentPath:M}),r.jsx("div",{className:`sidebar-resize ${W?"sidebar-dragging":""}`,onMouseDown:re})]}),r.jsxs("div",{className:"folers-preview",style:{width:$.col2+"%"},children:[r.jsx(hn,{currentPath:E,setCurrentPath:M}),r.jsx(bn,{currentPathFiles:P,setCurrentPath:M,isItemSelection:j,setIsItemSelection:_,setSelectedFile:C,currentPath:E,clipBoard:k,setClipBoard:T,handlePaste:f,files:n,triggerAction:N})]})]}),r.jsx(Vn,{files:n,fileUploadConfig:p,currentPath:E,currentPathFiles:P,selectedFile:V,triggerAction:N,handleCreateFolder:c,handleFileUploading:d,handleFileUploaded:u,currentFolder:z,handleRename:l,handleDelete:v,setIsItemSelection:_,setSelectedFile:C,allowedFileExtensions:h})]})};Se.FileManager=Hn,Object.defineProperty(Se,Symbol.toStringTag,{value:"Module"})});